acpica-unix-20250404/0000775000175000017500000000000015000116662013522 5ustar ivanhuivanhuacpica-unix-20250404/libraries/0000775000175000017500000000000014773713557015524 5ustar ivanhuivanhuacpica-unix-20250404/generate/0000775000175000017500000000000014773713557015342 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/0000775000175000017500000000000014773714131016312 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/acpiexamples/0000775000175000017500000000000014773714131020765 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/acpiexamples/Makefile0000775000175000017500000000763014773714131022436 0ustar ivanhuivanhu# # acpiexamples - Example ACPICA initialization code and control # method execution. # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under generate/unix. It specifically # places all object files in a generate/unix subdirectory, not within # the various ACPICA source directories. This prevents collisions # between different compilations of the same source file with different # compile options, and prevents pollution of the source code. # include ../Makefile.config FINAL_PROG = ../$(BINDIR)/acpiexamples PROG = $(OBJDIR)/acpiexamples # # Search paths for source files # vpath %.c \ $(ACPIEXAMPLES)\ $(ACPICA_DISPATCHER)\ $(ACPICA_EVENTS)\ $(ACPICA_EXECUTER)\ $(ACPICA_HARDWARE)\ $(ACPICA_NAMESPACE)\ $(ACPICA_PARSER)\ $(ACPICA_TABLES)\ $(ACPICA_UTILITIES)\ $(ACPICA_COMMON)\ $(ACPICA_OSL) HEADERS = \ $(wildcard $(ACPIEXAMPLES)/*.h) OBJECTS = \ $(OBJDIR)/examples.o\ $(OBJDIR)/exstubs.o\ $(OBJDIR)/extables.o\ $(OBJDIR)/dsargs.o\ $(OBJDIR)/dscontrol.o\ $(OBJDIR)/dsdebug.o\ $(OBJDIR)/dsfield.o\ $(OBJDIR)/dsinit.o\ $(OBJDIR)/dsmethod.o\ $(OBJDIR)/dsmthdat.o\ $(OBJDIR)/dsobject.o\ $(OBJDIR)/dsopcode.o\ $(OBJDIR)/dspkginit.o\ $(OBJDIR)/dsutils.o\ $(OBJDIR)/dswexec.o\ $(OBJDIR)/dswload.o\ $(OBJDIR)/dswload2.o\ $(OBJDIR)/dswscope.o\ $(OBJDIR)/dswstate.o\ $(OBJDIR)/evhandler.o\ $(OBJDIR)/evmisc.o\ $(OBJDIR)/evregion.o\ $(OBJDIR)/evrgnini.o\ $(OBJDIR)/evxface.o\ $(OBJDIR)/evxfregn.o\ $(OBJDIR)/exconcat.o\ $(OBJDIR)/exconfig.o\ $(OBJDIR)/exconvrt.o\ $(OBJDIR)/excreate.o\ $(OBJDIR)/exdebug.o\ $(OBJDIR)/exdump.o\ $(OBJDIR)/exfield.o\ $(OBJDIR)/exfldio.o\ $(OBJDIR)/exmisc.o\ $(OBJDIR)/exmutex.o\ $(OBJDIR)/exnames.o\ $(OBJDIR)/exoparg1.o\ $(OBJDIR)/exoparg2.o\ $(OBJDIR)/exoparg3.o\ $(OBJDIR)/exoparg6.o\ $(OBJDIR)/exprep.o\ $(OBJDIR)/exregion.o\ $(OBJDIR)/exresnte.o\ $(OBJDIR)/exresolv.o\ $(OBJDIR)/exresop.o\ $(OBJDIR)/exserial.o\ $(OBJDIR)/exstore.o\ $(OBJDIR)/exstoren.o\ $(OBJDIR)/exstorob.o\ $(OBJDIR)/exsystem.o\ $(OBJDIR)/extrace.o\ $(OBJDIR)/exutils.o\ $(OBJDIR)/hwpci.o\ $(OBJDIR)/nsaccess.o\ $(OBJDIR)/nsalloc.o\ $(OBJDIR)/nsarguments.o\ $(OBJDIR)/nsconvert.o\ $(OBJDIR)/nsdump.o\ $(OBJDIR)/nseval.o\ $(OBJDIR)/nsinit.o\ $(OBJDIR)/nsload.o\ $(OBJDIR)/nsnames.o\ $(OBJDIR)/nsobject.o\ $(OBJDIR)/nsparse.o\ $(OBJDIR)/nspredef.o\ $(OBJDIR)/nsprepkg.o\ $(OBJDIR)/nsrepair.o\ $(OBJDIR)/nsrepair2.o\ $(OBJDIR)/nssearch.o\ $(OBJDIR)/nsutils.o\ $(OBJDIR)/nswalk.o\ $(OBJDIR)/nsxfeval.o\ $(OBJDIR)/nsxfname.o\ $(OBJDIR)/nsxfobj.o\ $(OBJDIR)/osunixxf.o\ $(OBJDIR)/psargs.o\ $(OBJDIR)/psloop.o\ $(OBJDIR)/psobject.o\ $(OBJDIR)/psopcode.o\ $(OBJDIR)/psopinfo.o\ $(OBJDIR)/psparse.o\ $(OBJDIR)/psscope.o\ $(OBJDIR)/pstree.o\ $(OBJDIR)/psutils.o\ $(OBJDIR)/pswalk.o\ $(OBJDIR)/psxface.o\ $(OBJDIR)/tbdata.o\ $(OBJDIR)/tbfadt.o\ $(OBJDIR)/tbfind.o\ $(OBJDIR)/tbinstal.o\ $(OBJDIR)/tbprint.o\ $(OBJDIR)/tbutils.o\ $(OBJDIR)/tbxface.o\ $(OBJDIR)/tbxfload.o\ $(OBJDIR)/tbxfroot.o\ $(OBJDIR)/utaddress.o\ $(OBJDIR)/utalloc.o\ $(OBJDIR)/utascii.o\ $(OBJDIR)/utbuffer.o\ $(OBJDIR)/utcache.o\ $(OBJDIR)/utcksum.o\ $(OBJDIR)/utcopy.o\ $(OBJDIR)/utdebug.o\ $(OBJDIR)/utdecode.o\ $(OBJDIR)/utdelete.o\ $(OBJDIR)/uterror.o\ $(OBJDIR)/uteval.o\ $(OBJDIR)/utexcep.o\ $(OBJDIR)/utglobal.o\ $(OBJDIR)/uthex.o\ $(OBJDIR)/utids.o\ $(OBJDIR)/utinit.o\ $(OBJDIR)/utlock.o\ $(OBJDIR)/utmath.o\ $(OBJDIR)/utmisc.o\ $(OBJDIR)/utmutex.o\ $(OBJDIR)/utobject.o\ $(OBJDIR)/utosi.o\ $(OBJDIR)/utownerid.o\ $(OBJDIR)/utnonansi.o\ $(OBJDIR)/utpredef.o\ $(OBJDIR)/utresrc.o\ $(OBJDIR)/utstate.o\ $(OBJDIR)/utstring.o\ $(OBJDIR)/utstrsuppt.o\ $(OBJDIR)/utstrtoul64.o\ $(OBJDIR)/utxface.o\ $(OBJDIR)/utxferror.o\ $(OBJDIR)/utxfinit.o # # Flags specific to acpinames utility # CFLAGS += \ -DACPI_EXAMPLE_APP\ -I$(ACPIEXAMPLES) # # Common Rules # include ../Makefile.rules acpica-unix-20250404/generate/unix/Makefile.config0000775000175000017500000001516514773714131021231 0ustar ivanhuivanhu# # Makefile.config # # Common configuration and setup file to generate the ACPICA tools and # utilities: the iASL compiler, acpiexec, acpihelp, acpisrc, acpixtract, # acpibin. # # This file is included by the individual makefiles for each tool. # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under generate/unix. It specifically # places all object files in a generate/unix subdirectory, not within # the various ACPICA source directories. This prevents collisions # between different compilations of the same source file with different # compile options, and prevents pollution of the source code. # # # Configuration # # OPT_CFLAGS can be overridden on the make command line by # adding OPT_CFLAGS="..." to the invocation. # # Notes: # gcc should be version 4 or greater, otherwise some of the options # used will not be recognized. # Optional: Set ACPI_HOST to an appropriate value (_LINUX, _FreeBSD, _APPLE, _CYGWIN, etc.) # See include/platform/acenv.h for supported values. # Note: ACPI_HOST is not nearly as important for applications as it # is for the kernel-resident version of ACPICA, and it may # not be necessary to change it. # .SUFFIXES : PROGS = acpibin acpidump acpiexamples acpiexec acpihelp acpisrc acpixtract iasl ACPI_HOST ?= _CYGWIN CC ?= gcc # # Common defines # OBJDIR = obj BINDIR = bin COMPILEOBJ = $(CC) -c $(CFLAGS) $(OPT_CFLAGS) -o $@ $< LINKPROG = $(CC) $(OBJECTS) -o $(PROG) $(LDFLAGS) $(OPT_LDFLAGS) PREFIX ?= /usr INSTALLDIR = $(PREFIX)/bin UNAME_S := $(shell uname -s) # # Host detection and configuration # ifeq ($(UNAME_S), Darwin) # Mac OS X ACPI_HOST = _APPLE endif ifeq ($(UNAME_S), DragonFly) ACPI_HOST = _DragonFly endif ifeq ($(UNAME_S), FreeBSD) ACPI_HOST = _FreeBSD endif ifeq ($(UNAME_S), NetBSD) ACPI_HOST = _NetBSD endif ifeq ($(UNAME_S), QNX) ACPI_HOST = _QNX endif ifeq ($(UNAME_S), Haiku) ACPI_HOST = _HAIKU endif ifeq ($(ACPI_HOST), _APPLE) INSTALL = cp INSTALLFLAGS ?= -f else INSTALL = install # Do not strip debug info when in debug mode ifeq ($(DEBUG),TRUE) INSTALLFLAGS ?= -m 555 else INSTALLFLAGS ?= -m 555 -s endif endif INSTALLPROG = \ mkdir -p $(DESTDIR)$(INSTALLDIR); \ $(INSTALL) $(INSTALLFLAGS) ../$(BINDIR)/$(PROG) $(DESTDIR)$(INSTALLDIR)/$(PROG) # # Rename a .exe file if necessary # RENAMEPROG = \ @if [ -e "$(PROG).exe" ] ; then \ mv $(PROG).exe $(PROG); \ echo "- Rename $(PROG).exe to $(PROG)"; \ fi; # # Copy the final executable to the local bin directory # COPYPROG = \ @mkdir -p ../$(BINDIR); \ cp -f $(PROG) ../$(BINDIR); \ echo "- Copy $(PROG) to $(FINAL_PROG)"; # # Main ACPICA source directories # ACPICA_SRC = ../../../source ACPICA_COMMON = $(ACPICA_SRC)/common ACPICA_TOOLS = $(ACPICA_SRC)/tools ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers ACPICA_CORE = $(ACPICA_SRC)/components ACPICA_INCLUDE = $(ACPICA_SRC)/include ACPICA_DEBUGGER = $(ACPICA_CORE)/debugger ACPICA_DISASSEMBLER = $(ACPICA_CORE)/disassembler ACPICA_DISPATCHER = $(ACPICA_CORE)/dispatcher ACPICA_EVENTS = $(ACPICA_CORE)/events ACPICA_EXECUTER = $(ACPICA_CORE)/executer ACPICA_HARDWARE = $(ACPICA_CORE)/hardware ACPICA_NAMESPACE = $(ACPICA_CORE)/namespace ACPICA_PARSER = $(ACPICA_CORE)/parser ACPICA_RESOURCES = $(ACPICA_CORE)/resources ACPICA_TABLES = $(ACPICA_CORE)/tables ACPICA_UTILITIES = $(ACPICA_CORE)/utilities # # ACPICA tool and utility source directories # ACPIBIN = $(ACPICA_TOOLS)/acpibin ACPIDUMP = $(ACPICA_TOOLS)/acpidump ACPIEXAMPLES = $(ACPICA_TOOLS)/examples ACPIEXEC = $(ACPICA_TOOLS)/acpiexec ACPIHELP = $(ACPICA_TOOLS)/acpihelp ACPISRC = $(ACPICA_TOOLS)/acpisrc ACPIXTRACT = $(ACPICA_TOOLS)/acpixtract ASL_COMPILER = $(ACPICA_SRC)/compiler # # Common ACPICA header files # ACPICA_HEADERS = \ $(wildcard $(ACPICA_INCLUDE)/*.h) \ $(wildcard $(ACPICA_INCLUDE)/platform/*.h) # # Common compiler flags # The _GNU_SOURCE symbol is required for many hosts. # OPT_CFLAGS ?= $(CWARNINGFLAGS) # # Debug flags # ifeq ($(DEBUG),TRUE) CFLAGS +=-g LDFLAGS +=-g endif # # Common compiler flags # The _GNU_SOURCE symbol is required for many hosts. # ifeq ($(M32),TRUE) CFLAGS +=-m32 LDFLAGS +=-m32 endif # # Optionally disable optimizations. Optimization causes problems on # some compilers such as gcc 4.4 # ifneq ($(NOOPT),TRUE) OPT_CFLAGS += -O2 else OPT_CFLAGS += -O0 endif # # Optionally disable fortify source. This option can cause # compile errors in toolchains where it is already defined. # ifneq ($(NOFORTIFY),TRUE) OPT_CFLAGS += -D_FORTIFY_SOURCE=2 endif CFLAGS += \ -D$(ACPI_HOST)\ -D_GNU_SOURCE\ -I$(ACPICA_INCLUDE) # # QNX requires __EXT to enable most functions in its C library, analogous # to _GNU_SOURCE. # ifeq ($(ACPI_HOST), _QNX) CFLAGS+=-D__EXT endif # # Common compiler warning flags. The warning flags in addition # to -Wall are not automatically included in -Wall. # CWARNINGFLAGS = \ -std=c99\ -Wall\ -Wbad-function-cast\ -Wdeclaration-after-statement\ -Wformat=2\ -Wmissing-declarations\ -Wmissing-prototypes\ -Wstrict-aliasing=0\ -Wstrict-prototypes\ -Wswitch-default\ -Wpointer-arith\ -Wundef ifneq ($(NOWERROR),TRUE) CWARNINGFLAGS += -Werror endif # # Common gcc 4+ warning flags # CWARNINGFLAGS += \ -Waddress\ -Waggregate-return\ -Winit-self\ -Winline\ -Wmissing-declarations\ -Wmissing-field-initializers\ -Wnested-externs\ -Wold-style-definition\ -Wno-format-nonliteral\ -Wredundant-decls # # Per-host flags and exclusions # ifneq ($(ACPI_HOST), _FreeBSD) CWARNINGFLAGS += \ -Wempty-body ifneq ($(ACPI_HOST), _APPLE) CWARNINGFLAGS += \ -Woverride-init\ -Wlogical-op\ -Wmissing-parameter-type\ -Wold-style-declaration\ -Wtype-limits endif endif # # Extra warning flags (for possible future use) # #CWARNINGFLAGS += \ # -Wcast-qual\ # -Wconversion\ # -Wshadow\ # # M4 macro processor is used to build the final parser file # # Bison/Flex configuration # # -y: act like yacc # # -i: generate case insensitive scanner # -s: suppress default rule, abort on unknown input # # Optional for Bison/yacc: # -v: verbose, produces a .output file # -d: produces the defines header file # # Berkeley yacc configuration # #YACC= byacc #YFLAGS += # YACC= bison YFLAGS += -y MACROPROC= m4 MFLAGS= -P -I$(ASL_COMPILER) LEX= flex LFLAGS += -i -s DLFLAGS += -i acpica-unix-20250404/generate/unix/readme.txt0000775000175000017500000000626314773714131020322 0ustar ivanhuivanhuGeneric Unix ACPICA makefiles ----------------------------- These makefiles are intended to generate the ACPICA utilities in a Unix-like environment, with the original ACPICA code (not linuxized), and in the original (git tree) ACPICA directory structure. Windows binary versions of these tools are available at: http://www.acpica.org/downloads/binary_tools.php Documentation is available at acpica.org: http://www.acpica.org/documentation/ The top level makefile will generate the following utilities: Note: These utilities are tested and supported as 32-bit versions only. acpibin acpiexec acpihelp acpinames acpisrc acpixtract iasl To generate all utilities: cd acpica/generate/unix make make install /* install all binaries to /usr/bin */ Requirements ------------ make gcc compiler (4+) bison or yacc flex or lex Configuration ------------- The Makefile.config file contains the configuration information: HOST = _CYGWIN /* Host system, must appear in acenv.h */ CC = gcc /* C compiler */ ACPICA_SRC = ../../../source /* Location of acpica source tree */ Intermediate Files ------------------ The intermediate files for each utility (.o, etc.) are placed in the subdirectory corresponding to each utility, not in the source code tree itself. This prevents collisions when different utilities compile the same source modules with different options. Output ------ The executable utilities are copied to the local bin directory. "make install" will install the binaries to /usr/bin 1) acpibin, an AML file tool acpibin compares AML files, dumps AML binary files to text files, extracts binary AML from text files, and other AML file manipulation. 2) acpiexec, a user-space AML interpreter acpiexec allows the loading of ACPI tables and execution of control methods from user space. Useful for debugging AML code and testing the AML interpreter. Hardware access is simulated. 3) acpihelp, syntax help for ASL operators and reserved names acpihelp displays the syntax for all of the ASL operators, as well as information about the ASL/ACPI reserved names (4-char names that start with underscore.) 4) acpinames, load and dump acpi namespace acpinames loads an ACPI namespace from a binary ACPI table file. This is a smaller version of acpiexec that loads an acpi table and dumps the resulting namespace. It is primarily intended to demonstrate the configurability of ACPICA. 5) acpisrc, a source code conversion tool acpisrc converts the standard form of the acpica source release (included here) into a version that meets Linux coding guidelines. This consists mainly of performing a series of string replacements and transformations to the code. It can also be used to clean the acpica source and generate statistics. 6) acpixtract, extract binary ACPI tables from an acpidump acpixtract is used to extract binary ACPI tables from the ASCII text output of an acpidump utility (available on several different hosts.) 7) iasl, an optimizing ASL compiler/disassembler iasl compiles ASL (ACPI Source Language) into AML (ACPI Machine Language). This AML is suitable for inclusion as a DSDT in system firmware. It also can disassemble AML, for debugging purposes. acpica-unix-20250404/generate/unix/acpixtract/0000775000175000017500000000000014773714131020454 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/acpixtract/Makefile0000775000175000017500000000227514773714131022125 0ustar ivanhuivanhu# # acpixtract - extract binary ACPI tables from acpidump text output # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under generate/unix. It specifically # places all object files in a generate/unix subdirectory, not within # the various ACPICA source directories. This prevents collisions # between different compilations of the same source file with different # compile options, and prevents pollution of the source code. # include ../Makefile.config FINAL_PROG = ../$(BINDIR)/acpixtract PROG = $(OBJDIR)/acpixtract # # Search paths for source files # vpath %.c \ $(ACPIXTRACT)\ $(ACPICA_UTILITIES)\ $(ACPICA_COMMON)\ $(ACPICA_OSL) HEADERS = \ $(wildcard $(ACPIXTRACT)/*.h) OBJECTS = \ $(OBJDIR)/acpixtract.o\ $(OBJDIR)/axmain.o\ $(OBJDIR)/axutils.o\ $(OBJDIR)/getopt.o\ $(OBJDIR)/osunixxf.o\ $(OBJDIR)/utascii.o\ $(OBJDIR)/utdebug.o\ $(OBJDIR)/utexcep.o\ $(OBJDIR)/utglobal.o\ $(OBJDIR)/uthex.o\ $(OBJDIR)/utmath.o\ $(OBJDIR)/utnonansi.o\ $(OBJDIR)/utxferror.o # # Flags specific to acpixtract # CFLAGS += \ -DACPI_XTRACT_APP # # Common Rules # include ../Makefile.rules acpica-unix-20250404/generate/unix/Makefile.common0000775000175000017500000000300414773714131021241 0ustar ivanhuivanhu# # Common make for acpica tools and utilities # all: $(PROGS) $(PROGS): FORCE @cd $(BUILD_DIRECTORY_PATH)/$@; \ mkdir -p obj; \ $(MAKE) || exit "$$?"; \ echo ""; # # List just shows the status of each tool # status: FORCE @for toolname in $(PROGS); do \ (cd $(BUILD_DIRECTORY_PATH)/$$toolname; \ pwd; \ if [ -d "obj" ] ; then \ echo " `ls -1 obj | wc -l` files, `stat -c%s obj/$$toolname` bytes"; \ else \ echo " Clean"; \ fi; \ ); \ done; # # Simple clean removes all .obj files, but leaves the executables # in the local bin directory # clean: FORCE @for toolname in $(PROGS); do \ (cd $(BUILD_DIRECTORY_PATH)/$$toolname; \ pwd; \ if [ -d "obj" ] ; then \ echo " Removing `ls -1 obj | wc -l` files"; \ rm -r obj; \ else \ echo " Clean"; \ fi; \ ); \ done; # # Very clean removes all executables and the local bin directory # veryclean: FORCE @for toolname in $(PROGS); do \ (cd $(BUILD_DIRECTORY_PATH)/$$toolname; \ if [ -d "obj" ] ; then \ echo "Removing $$toolname:"; \ pwd; \ $(MAKE) clean; \ rmdir obj; \ echo ""; \ fi; \ ); \ if [ -e "$(BUILD_DIRECTORY_PATH)/bin/$$toolname" ] ; then \ rm $(BUILD_DIRECTORY_PATH)/bin/$$toolname; \ fi; \ done; \ if [ -d "bin" ] ; then \ rmdir bin; \ fi; install: FORCE @for toolname in $(PROGS); do \ (cd $(BUILD_DIRECTORY_PATH)/$$toolname; \ pwd; \ if [ -d "obj" ] ; then \ $(MAKE) PROG=$$toolname install; \ else \ echo " Clean"; \ fi; \ ); \ done; machine: FORCE FORCE: acpica-unix-20250404/generate/unix/iasl/0000775000175000017500000000000014773714131017242 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/iasl/Makefile0000775000175000017500000002367214773714131020717 0ustar ivanhuivanhu# # iASL compiler/disassembler # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under generate/unix. It specifically # places all object files in a generate/unix subdirectory, not within # the various ACPICA source directories. This prevents collisions # between different compilations of the same source file with different # compile options, and prevents pollution of the source code. # include ../Makefile.config FINAL_PROG = ../$(BINDIR)/iasl PROG = $(OBJDIR)/iasl # # Search paths for source files # vpath %.c \ $(ASL_COMPILER)\ $(ACPICA_DEBUGGER)\ $(ACPICA_DISASSEMBLER)\ $(ACPICA_DISPATCHER)\ $(ACPICA_EXECUTER)\ $(ACPICA_NAMESPACE)\ $(ACPICA_PARSER)\ $(ACPICA_TABLES)\ $(ACPICA_UTILITIES)\ $(ACPICA_COMMON)\ $(ACPICA_OSL) HEADERS = \ $(wildcard $(ASL_COMPILER)/*.h)\ $(OBJDIR)/aslcompiler.y.h\ $(OBJDIR)/dtcompilerparser.y.h\ $(OBJDIR)/dtparser.y.h\ $(OBJDIR)/prparser.y.h OBJECTS = \ $(OBJDIR)/aslcompilerlex.o\ $(OBJDIR)/aslcompilerparse.o\ $(OBJDIR)/dtcompilerparserlex.o\ $(OBJDIR)/dtcompilerparserparse.o\ $(OBJDIR)/dtparserlex.o\ $(OBJDIR)/dtparserparse.o\ $(OBJDIR)/prparserlex.o\ $(OBJDIR)/prparserparse.o\ $(OBJDIR)/acfileio.o\ $(OBJDIR)/adfile.o\ $(OBJDIR)/adisasm.o\ $(OBJDIR)/adwalk.o\ $(OBJDIR)/ahids.o\ $(OBJDIR)/ahpredef.o\ $(OBJDIR)/ahtable.o\ $(OBJDIR)/ahuuids.o\ $(OBJDIR)/aslallocate.o\ $(OBJDIR)/aslanalyze.o\ $(OBJDIR)/aslascii.o\ $(OBJDIR)/aslbtypes.o\ $(OBJDIR)/aslcache.o\ $(OBJDIR)/aslcodegen.o\ $(OBJDIR)/aslcompile.o\ $(OBJDIR)/asldebug.o\ $(OBJDIR)/aslerror.o\ $(OBJDIR)/aslexternal.o\ $(OBJDIR)/aslfiles.o\ $(OBJDIR)/aslfileio.o\ $(OBJDIR)/aslfold.o\ $(OBJDIR)/aslhelp.o\ $(OBJDIR)/aslhex.o\ $(OBJDIR)/asllength.o\ $(OBJDIR)/asllisting.o\ $(OBJDIR)/asllistsup.o\ $(OBJDIR)/aslload.o\ $(OBJDIR)/asllookup.o\ $(OBJDIR)/aslmain.o\ $(OBJDIR)/aslmap.o\ $(OBJDIR)/aslmapenter.o\ $(OBJDIR)/aslmapoutput.o\ $(OBJDIR)/aslmaputils.o\ $(OBJDIR)/aslmessages.o\ $(OBJDIR)/aslmethod.o\ $(OBJDIR)/aslnamesp.o\ $(OBJDIR)/asloffset.o\ $(OBJDIR)/aslopcodes.o\ $(OBJDIR)/asloperands.o\ $(OBJDIR)/aslopt.o\ $(OBJDIR)/asloptions.o\ $(OBJDIR)/aslparseop.o\ $(OBJDIR)/aslpredef.o\ $(OBJDIR)/aslprepkg.o\ $(OBJDIR)/aslprintf.o\ $(OBJDIR)/aslprune.o\ $(OBJDIR)/aslresource.o\ $(OBJDIR)/aslrestype1.o\ $(OBJDIR)/aslrestype1i.o\ $(OBJDIR)/aslrestype2.o\ $(OBJDIR)/aslrestype2d.o\ $(OBJDIR)/aslrestype2e.o\ $(OBJDIR)/aslrestype2q.o\ $(OBJDIR)/aslrestype2s.o\ $(OBJDIR)/aslrestype2w.o\ $(OBJDIR)/aslstartup.o\ $(OBJDIR)/aslstubs.o\ $(OBJDIR)/aslpld.o\ $(OBJDIR)/asltransform.o\ $(OBJDIR)/asltree.o\ $(OBJDIR)/aslutils.o\ $(OBJDIR)/asluuid.o\ $(OBJDIR)/aslwalks.o\ $(OBJDIR)/aslxref.o\ $(OBJDIR)/aslxrefout.o\ $(OBJDIR)/cvcompiler.o\ $(OBJDIR)/cvdisasm.o\ $(OBJDIR)/cvparser.o\ $(OBJDIR)/cmfsize.o\ $(OBJDIR)/dbfileio.o\ $(OBJDIR)/dmbuffer.o\ $(OBJDIR)/dmcstyle.o\ $(OBJDIR)/dmdeferred.o\ $(OBJDIR)/dmextern.o\ $(OBJDIR)/dmnames.o\ $(OBJDIR)/dmopcode.o\ $(OBJDIR)/dmresrc.o\ $(OBJDIR)/dmresrcl.o\ $(OBJDIR)/dmresrcl2.o\ $(OBJDIR)/dmresrcs.o\ $(OBJDIR)/dmrestag.o\ $(OBJDIR)/dmswitch.o\ $(OBJDIR)/dmtable.o\ $(OBJDIR)/dmtables.o\ $(OBJDIR)/dmtbdump.o\ $(OBJDIR)/dmtbdump1.o\ $(OBJDIR)/dmtbdump2.o\ $(OBJDIR)/dmtbdump3.o\ $(OBJDIR)/dmtbinfo.o\ $(OBJDIR)/dmtbinfo1.o\ $(OBJDIR)/dmtbinfo2.o\ $(OBJDIR)/dmtbinfo3.o\ $(OBJDIR)/dmutils.o\ $(OBJDIR)/dmwalk.o\ $(OBJDIR)/dsargs.o\ $(OBJDIR)/dscontrol.o\ $(OBJDIR)/dsfield.o\ $(OBJDIR)/dsobject.o\ $(OBJDIR)/dsopcode.o\ $(OBJDIR)/dspkginit.o\ $(OBJDIR)/dsutils.o\ $(OBJDIR)/dswexec.o\ $(OBJDIR)/dswload.o\ $(OBJDIR)/dswload2.o\ $(OBJDIR)/dswscope.o\ $(OBJDIR)/dswstate.o\ $(OBJDIR)/dtcompile.o\ $(OBJDIR)/dtexpress.o\ $(OBJDIR)/dtfield.o\ $(OBJDIR)/dtio.o\ $(OBJDIR)/dtsubtable.o\ $(OBJDIR)/dttable.o\ $(OBJDIR)/dttable1.o\ $(OBJDIR)/dttable2.o\ $(OBJDIR)/dttemplate.o\ $(OBJDIR)/dtutils.o\ $(OBJDIR)/exconcat.o\ $(OBJDIR)/exconvrt.o\ $(OBJDIR)/excreate.o\ $(OBJDIR)/exdump.o\ $(OBJDIR)/exmisc.o\ $(OBJDIR)/exmutex.o\ $(OBJDIR)/exnames.o\ $(OBJDIR)/exoparg1.o\ $(OBJDIR)/exoparg2.o\ $(OBJDIR)/exoparg3.o\ $(OBJDIR)/exoparg6.o\ $(OBJDIR)/exprep.o\ $(OBJDIR)/exregion.o\ $(OBJDIR)/exresnte.o\ $(OBJDIR)/exresolv.o\ $(OBJDIR)/exresop.o\ $(OBJDIR)/exstore.o\ $(OBJDIR)/exstoren.o\ $(OBJDIR)/exstorob.o\ $(OBJDIR)/exsystem.o\ $(OBJDIR)/exutils.o\ $(OBJDIR)/getopt.o\ $(OBJDIR)/nsaccess.o\ $(OBJDIR)/nsalloc.o\ $(OBJDIR)/nsdump.o\ $(OBJDIR)/nsnames.o\ $(OBJDIR)/nsobject.o\ $(OBJDIR)/nsparse.o\ $(OBJDIR)/nssearch.o\ $(OBJDIR)/nsutils.o\ $(OBJDIR)/nswalk.o\ $(OBJDIR)/nsxfobj.o\ $(OBJDIR)/osunixxf.o\ $(OBJDIR)/prexpress.o\ $(OBJDIR)/prmacros.o\ $(OBJDIR)/prscan.o\ $(OBJDIR)/prutils.o\ $(OBJDIR)/psargs.o\ $(OBJDIR)/psloop.o\ $(OBJDIR)/psobject.o\ $(OBJDIR)/psopcode.o\ $(OBJDIR)/psopinfo.o\ $(OBJDIR)/psparse.o\ $(OBJDIR)/psscope.o\ $(OBJDIR)/pstree.o\ $(OBJDIR)/psutils.o\ $(OBJDIR)/pswalk.o\ $(OBJDIR)/tbdata.o\ $(OBJDIR)/tbfadt.o\ $(OBJDIR)/tbinstal.o\ $(OBJDIR)/tbprint.o\ $(OBJDIR)/tbutils.o\ $(OBJDIR)/tbxface.o\ $(OBJDIR)/tbxfload.o\ $(OBJDIR)/utaddress.o\ $(OBJDIR)/utalloc.o\ $(OBJDIR)/utascii.o\ $(OBJDIR)/utbuffer.o\ $(OBJDIR)/utcache.o\ $(OBJDIR)/utcksum.o\ $(OBJDIR)/utcopy.o\ $(OBJDIR)/utdebug.o\ $(OBJDIR)/utdecode.o\ $(OBJDIR)/utdelete.o\ $(OBJDIR)/uterror.o\ $(OBJDIR)/utexcep.o\ $(OBJDIR)/utglobal.o\ $(OBJDIR)/uthex.o\ $(OBJDIR)/utinit.o\ $(OBJDIR)/utlock.o\ $(OBJDIR)/utmath.o\ $(OBJDIR)/utmisc.o\ $(OBJDIR)/utmutex.o\ $(OBJDIR)/utnonansi.o\ $(OBJDIR)/utobject.o\ $(OBJDIR)/utownerid.o\ $(OBJDIR)/utpredef.o\ $(OBJDIR)/utresdecode.o\ $(OBJDIR)/utresrc.o\ $(OBJDIR)/utstate.o\ $(OBJDIR)/utstrtoul64.o\ $(OBJDIR)/utstrsuppt.o\ $(OBJDIR)/utstring.o\ $(OBJDIR)/utuuid.o\ $(OBJDIR)/utxface.o\ $(OBJDIR)/utxferror.o INTERMEDIATES = \ $(OBJDIR)/aslcompiler.y\ $(OBJDIR)/aslcompilerlex.c\ $(OBJDIR)/aslcompilerparse.c\ $(OBJDIR)/dtparserlex.c\ $(OBJDIR)/dtparserparse.c\ $(OBJDIR)/dtcompilerparserlex.c\ $(OBJDIR)/dtcompilerparserparse.c\ $(OBJDIR)/prparserlex.c\ $(OBJDIR)/prparserparse.c MISC = \ $(OBJDIR)/aslcompiler.y.h\ $(OBJDIR)/dtcompilerparser.y.h\ $(OBJDIR)/dtparser.y.h\ $(OBJDIR)/prparser.y.h ASL_PARSER = \ $(ASL_COMPILER)/aslcstyle.y\ $(ASL_COMPILER)/aslhelpers.y\ $(ASL_COMPILER)/aslparser.y\ $(ASL_COMPILER)/aslprimaries.y\ $(ASL_COMPILER)/aslresources.y\ $(ASL_COMPILER)/aslrules.y\ $(ASL_COMPILER)/aslsupport.y\ $(ASL_COMPILER)/asltokens.y\ $(ASL_COMPILER)/asltypes.y ASL_LEXER = \ $(ASL_COMPILER)/aslcompiler.l\ $(ASL_COMPILER)/aslsupport.l\ $(OBJDIR)/aslcompiler.y.h # # Flags specific to iASL compiler # CFLAGS += \ -DACPI_ASL_COMPILER\ -I$(ASL_COMPILER)\ -I$(OBJDIR) ifeq ($(NOWERROR),TRUE) WERROR_FLAGS= else WERROR_FLAGS=-Werror endif # # Common Rules # include ../Makefile.rules # # Function to safely execute yacc: # Generate the output files to a temporary directory, # move the file to $(OBJDIR), and discard the directory. # safe_yacc = \ _d=`mktemp -d $(OBJDIR)/$(1).XXXXXX` &&\ cd $$_d &&\ $(YACC) $(YFLAGS) -v -d -p$(1) "$(abspath $(2))" &&\ cd - > /dev/null;\ mv $$_d/y.tab$(suffix $(3)) $(3);\ _r=$$?;\ rm -fr $$_d;\ exit $$_r # # Macro processing for iASL .y files # $(OBJDIR)/aslcompiler.y : $(ASL_PARSER) @echo "- " $(MACROPROC) " Preprocess main iASL parser" @$(MACROPROC) $(MFLAGS) $(ASL_COMPILER)/aslparser.y > $@ # # Parser and Lexer - intermediate C files # $(OBJDIR)/aslcompilerlex.c : $(ASL_LEXER) @echo "- " $(LEX) " "$< @$(LEX) $(LFLAGS) -PAslCompiler -o$@ $(ASL_COMPILER)/aslcompiler.l $(OBJDIR)/aslcompilerparse.c $(OBJDIR)/aslcompiler.y.h : $(OBJDIR)/aslcompiler.y @echo "- " $(YACC) " "$< @$(call safe_yacc,AslCompiler,$<,$@) $(OBJDIR)/dtcompilerparserlex.c : $(ASL_COMPILER)/dtcompilerparser.l $(OBJDIR)/dtcompilerparser.y.h @echo "- " $(LEX) " "$< @$(LEX) $(DLFLAGS) -PDtCompilerParser -o$@ $< $(OBJDIR)/dtcompilerparserparse.c $(OBJDIR)/dtcompilerparser.y.h : $(ASL_COMPILER)/dtcompilerparser.y @echo "- " $(YACC) " "$< @$(call safe_yacc,DtCompilerParser,$<,$@) $(OBJDIR)/dtparserlex.c : $(ASL_COMPILER)/dtparser.l $(OBJDIR)/dtparser.y.h @echo "- " $(LEX) " "$< @$(LEX) $(DLFLAGS) -PDtParser -o$@ $< $(OBJDIR)/dtparserparse.c $(OBJDIR)/dtparser.y.h : $(ASL_COMPILER)/dtparser.y @echo "- " $(YACC) " "$< @$(call safe_yacc,DtParser,$<,$@) $(OBJDIR)/prparserlex.c : $(ASL_COMPILER)/prparser.l $(OBJDIR)/prparser.y.h @echo "- " $(LEX) " "$< @$(LEX) $(LFLAGS) -PPrParser -o$@ $< $(OBJDIR)/prparserparse.c $(OBJDIR)/prparser.y.h : $(ASL_COMPILER)/prparser.y @echo "- " $(YACC) " "$< @$(call safe_yacc,PrParser,$<,$@) # # Parsers and Lexers - final object files # # Cannot use the common compile warning flags since the C files are created # by the utilities above and they are not necessarily ANSI C, etc. # $(OBJDIR)/aslcompilerlex.o : $(OBJDIR)/aslcompilerlex.c @echo "- " "Intermediate" $< @$(CC) -c $(CFLAGS) -Wall $(WERROR_FLAGS) -o$@ $< $(OBJDIR)/aslcompilerparse.o : $(OBJDIR)/aslcompilerparse.c @echo "- " "Intermediate" $< @$(CC) -c $(CFLAGS) -Wall $(WERROR_FLAGS) -o$@ $< $(OBJDIR)/dtcompilerparserlex.o : $(OBJDIR)/dtcompilerparserlex.c @echo "- " "Intermediate" $< @$(CC) -c $(CFLAGS) -Wall $(WERROR_FLAGS) -o$@ $< $(OBJDIR)/dtcompilerparserparse.o : $(OBJDIR)/dtcompilerparserparse.c @echo "- " "Intermediate" $< @$(CC) -c $(CFLAGS) -Wall $(WERROR_FLAGS) -o$@ $< $(OBJDIR)/dtparserlex.o : $(OBJDIR)/dtparserlex.c @echo "- " "Intermediate" $< @$(CC) -c $(CFLAGS) -Wall $(WERROR_FLAGS) -o$@ $< $(OBJDIR)/dtparserparse.o : $(OBJDIR)/dtparserparse.c @echo "- " "Intermediate" $< @$(CC) -c $(CFLAGS) -Wall $(WERROR_FLAGS) -o$@ $< $(OBJDIR)/prparserlex.o : $(OBJDIR)/prparserlex.c @echo "- " "Intermediate" $< @$(CC) -c $(CFLAGS) -Wall $(WERROR_FLAGS) -o$@ $< $(OBJDIR)/prparserparse.o : $(OBJDIR)/prparserparse.c @echo "- " "Intermediate" $< @$(CC) -c $(CFLAGS) -Wall $(WERROR_FLAGS) -o$@ $< acpica-unix-20250404/generate/unix/acpidump/0000775000175000017500000000000014773714131020114 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/acpidump/Makefile0000775000175000017500000000336514773714131021566 0ustar ivanhuivanhu# # acpidump - ACPI table dump utility (binary to ascii hex) # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under generate/unix. It specifically # places all object files in a generate/unix subdirectory, not within # the various ACPICA source directories. This prevents collisions # between different compilations of the same source file with different # compile options, and prevents pollution of the source code. # include ../Makefile.config FINAL_PROG = ../$(BINDIR)/acpidump PROG = $(OBJDIR)/acpidump # # Search paths for source files # vpath %.c \ $(ACPIDUMP)\ $(ACPICA_TABLES)\ $(ACPICA_UTILITIES)\ $(ACPICA_COMMON)\ $(ACPICA_OSL) HEADERS = \ $(wildcard $(ACPIDUMP)/*.h) OBJECTS = \ $(OBJDIR)/apdump.o\ $(OBJDIR)/apfiles.o\ $(OBJDIR)/apmain.o\ $(OBJDIR)/cmfsize.o\ $(OBJDIR)/getopt.o\ $(OBJDIR)/osunixdir.o\ $(OBJDIR)/osunixmap.o\ $(OBJDIR)/osunixxf.o\ $(OBJDIR)/tbprint.o\ $(OBJDIR)/tbxfroot.o\ $(OBJDIR)/utascii.o\ $(OBJDIR)/utbuffer.o\ $(OBJDIR)/utcksum.o\ $(OBJDIR)/utdebug.o\ $(OBJDIR)/utexcep.o\ $(OBJDIR)/utglobal.o\ $(OBJDIR)/uthex.o\ $(OBJDIR)/utmath.o\ $(OBJDIR)/utnonansi.o\ $(OBJDIR)/utstring.o\ $(OBJDIR)/utstrsuppt.o\ $(OBJDIR)/utstrtoul64.o\ $(OBJDIR)/utxferror.o # # Per-host interfaces # ifeq ($(ACPI_HOST), _DragonFly) HOST_FAMILY = BSD endif ifeq ($(ACPI_HOST), _FreeBSD) HOST_FAMILY = BSD endif ifeq ($(ACPI_HOST), _NetBSD) HOST_FAMILY = BSD endif ifeq ($(ACPI_HOST), _QNX) HOST_FAMILY = BSD endif ifeq ($(HOST_FAMILY), BSD) OBJECTS += \ $(OBJDIR)/osbsdtbl.o else OBJECTS += \ $(OBJDIR)/oslinuxtbl.o endif # # Flags specific to acpidump # CFLAGS += \ -DACPI_DUMP_APP\ -I$(ACPIDUMP) # # Common Rules # include ../Makefile.rules acpica-unix-20250404/generate/unix/Makefile.rules0000775000175000017500000000110314773714131021101 0ustar ivanhuivanhu# # Common rules for generation of ACPICA utilities # # FINAL_PROG - Copies the utility to the local bin directory # PROG - Builds the utility (links the object files) # # Note: $(INTERMEDIATES) and $(MISC) are used for iASL compiler only. # $(FINAL_PROG) : $(PROG) $(COPYPROG) $(PROG) : $(INTERMEDIATES) $(MISC) $(OBJECTS) @echo "- Link" $(PROG) @$(LINKPROG) $(RENAMEPROG) $(OBJDIR)/%.o : %.c $(HEADERS) $(ACPICA_HEADERS) @echo $(PROG) $< @$(COMPILEOBJ) clean : @rm -f $(PROG) $(PROG).exe $(OBJECTS) $(OBJDIR)/*.o $(INTERMEDIATES) $(MISC) install : $(INSTALLPROG) acpica-unix-20250404/generate/unix/Makefile0000775000175000017500000000103714773714131017756 0ustar ivanhuivanhu# # Common make for acpica tools and utilities # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under the generate/unix directory. # It specifically places all the object files for each tool in separate # generate/unix subdirectories, not within the various ACPICA source # code directories. This prevents collisions between different # compilations of the same source file with different compile options. # BUILD_DIRECTORY_PATH = "." include Makefile.config include Makefile.common acpica-unix-20250404/generate/unix/acpihelp/0000775000175000017500000000000014773714131020077 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/acpihelp/Makefile0000775000175000017500000000267114773714131021550 0ustar ivanhuivanhu# # acpihelp - ACPI Help utility. Displays ASL operator syntax and # information about ACPI predefined names. # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under generate/unix. It specifically # places all object files in a generate/unix subdirectory, not within # the various ACPICA source directories. This prevents collisions # between different compilations of the same source file with different # compile options, and prevents pollution of the source code. # include ../Makefile.config FINAL_PROG = ../$(BINDIR)/acpihelp PROG = $(OBJDIR)/acpihelp # # Search paths for source files # vpath %.c \ $(ACPIHELP)\ $(ACPICA_COMMON)\ $(ACPICA_UTILITIES)\ $(ACPICA_OSL)\ $(ASL_COMPILER) HEADERS = \ $(wildcard $(ACPIHELP)/*.h) OBJECTS = \ $(OBJDIR)/ahaml.o\ $(OBJDIR)/ahamlops.o\ $(OBJDIR)/ahasl.o\ $(OBJDIR)/ahaslkey.o\ $(OBJDIR)/ahaslops.o\ $(OBJDIR)/ahdecode.o\ $(OBJDIR)/ahgrammar.o\ $(OBJDIR)/ahids.o\ $(OBJDIR)/ahpredef.o\ $(OBJDIR)/ahmain.o\ $(OBJDIR)/ahtable.o\ $(OBJDIR)/ahuuids.o\ $(OBJDIR)/aslmessages.o\ $(OBJDIR)/getopt.o\ $(OBJDIR)/osunixxf.o\ $(OBJDIR)/utdebug.o\ $(OBJDIR)/utexcep.o\ $(OBJDIR)/utglobal.o\ $(OBJDIR)/uthex.o\ $(OBJDIR)/utmath.o\ $(OBJDIR)/utnonansi.o\ $(OBJDIR)/utpredef.o\ $(OBJDIR)/utuuid.o # # Flags specific to acpihelp # CFLAGS += \ -DACPI_HELP_APP\ -I$(ACPIHELP) # # Common Rules # include ../Makefile.rules acpica-unix-20250404/generate/unix/acpibin/0000775000175000017500000000000014773714131017717 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/acpibin/Makefile0000775000175000017500000000242514773714131021365 0ustar ivanhuivanhu# # acpibin - Binary ACPI table utility # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under generate/unix. It specifically # places all object files in a generate/unix subdirectory, not within # the various ACPICA source directories. This prevents collisions # between different compilations of the same source file with different # compile options, and prevents pollution of the source code. # include ../Makefile.config FINAL_PROG = ../$(BINDIR)/acpibin PROG = $(OBJDIR)/acpibin # # Search paths for source files # vpath %.c \ $(ACPIBIN)\ $(ACPICA_UTILITIES)\ $(ACPICA_COMMON)\ $(ACPICA_OSL) HEADERS = \ $(wildcard $(ACPIBIN)/*.h) OBJECTS = \ $(OBJDIR)/abcompare.o\ $(OBJDIR)/abmain.o\ $(OBJDIR)/cmfsize.o\ $(OBJDIR)/getopt.o\ $(OBJDIR)/utalloc.o\ $(OBJDIR)/utascii.o\ $(OBJDIR)/utbuffer.o\ $(OBJDIR)/utcache.o\ $(OBJDIR)/utdebug.o\ $(OBJDIR)/utdecode.o\ $(OBJDIR)/utexcep.o\ $(OBJDIR)/utglobal.o\ $(OBJDIR)/utlock.o\ $(OBJDIR)/utmath.o\ $(OBJDIR)/utmisc.o\ $(OBJDIR)/utmutex.o\ $(OBJDIR)/utstate.o\ $(OBJDIR)/utstring.o\ $(OBJDIR)/utxferror.o\ $(OBJDIR)/osunixxf.o # # Flags specific to acpibin # CFLAGS += \ -DACPI_BIN_APP\ -I$(ACPIBIN) # # Common Rules # include ../Makefile.rules acpica-unix-20250404/generate/unix/acpisrc/0000775000175000017500000000000014773714131017736 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/acpisrc/Makefile0000775000175000017500000000257614773714131021413 0ustar ivanhuivanhu# # acpisrc - ACPICA source code conversion utility # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under generate/unix. It specifically # places all object files in a generate/unix subdirectory, not within # the various ACPICA source directories. This prevents collisions # between different compilations of the same source file with different # compile options, and prevents pollution of the source code. # include ../Makefile.config FINAL_PROG = ../$(BINDIR)/acpisrc PROG = $(OBJDIR)/acpisrc # # Search path for source files and individual source files # vpath %.c \ $(ACPISRC)\ $(ACPICA_UTILITIES)\ $(ACPICA_COMMON)\ $(ACPICA_OSL) HEADERS = \ $(wildcard $(ACPISRC)/*.h) OBJECTS = \ $(OBJDIR)/ascase.o\ $(OBJDIR)/asconvrt.o\ $(OBJDIR)/asfile.o\ $(OBJDIR)/asmain.o\ $(OBJDIR)/asremove.o\ $(OBJDIR)/astable.o\ $(OBJDIR)/asutils.o\ $(OBJDIR)/cmfsize.o\ $(OBJDIR)/getopt.o \ $(OBJDIR)/osunixdir.o\ $(OBJDIR)/osunixxf.o\ $(OBJDIR)/utascii.o\ $(OBJDIR)/utdebug.o\ $(OBJDIR)/utexcep.o\ $(OBJDIR)/utglobal.o\ $(OBJDIR)/uthex.o\ $(OBJDIR)/utmath.o\ $(OBJDIR)/utnonansi.o\ $(OBJDIR)/utstring.o\ $(OBJDIR)/utxferror.o # # Compile flags specific to acpisrc # CFLAGS += \ -DACPI_SRC_APP\ -I$(ACPISRC) # # Common Rules # include ../Makefile.rules acpica-unix-20250404/generate/unix/acpiexec/0000775000175000017500000000000014773714131020073 5ustar ivanhuivanhuacpica-unix-20250404/generate/unix/acpiexec/Makefile0000775000175000017500000001362514773714131021545 0ustar ivanhuivanhu# # acpiexec: ACPI execution simulator. Runs ACPICA code in user # space. Loads ACPI tables, displays the namespace, and allows # execution of control methods. # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under generate/unix. It specifically # places all object files in a generate/unix subdirectory, not within # the various ACPICA source directories. This prevents collisions # between different compilations of the same source file with different # compile options, and prevents pollution of the source code. # include ../Makefile.config FINAL_PROG = ../$(BINDIR)/acpiexec PROG = $(OBJDIR)/acpiexec # # Search paths for source files # vpath %.c \ $(ACPIEXEC)\ $(ACPICA_DEBUGGER)\ $(ACPICA_DISASSEMBLER)\ $(ACPICA_DISPATCHER)\ $(ACPICA_EVENTS)\ $(ACPICA_EXECUTER)\ $(ACPICA_HARDWARE)\ $(ACPICA_NAMESPACE)\ $(ACPICA_PARSER)\ $(ACPICA_RESOURCES)\ $(ACPICA_TABLES)\ $(ACPICA_UTILITIES)\ $(ACPICA_COMMON)\ $(ACPICA_OSL) HEADERS = \ $(wildcard $(ACPIEXEC)/*.h) OBJECTS = \ $(OBJDIR)/acgetline.o\ $(OBJDIR)/acfileio.o\ $(OBJDIR)/aeexec.o\ $(OBJDIR)/aeexception.o\ $(OBJDIR)/aehandlers.o\ $(OBJDIR)/aeinitfile.o\ $(OBJDIR)/aeinstall.o\ $(OBJDIR)/aemain.o\ $(OBJDIR)/aeregion.o\ $(OBJDIR)/aetables.o\ $(OBJDIR)/aetests.o\ $(OBJDIR)/ahids.o\ $(OBJDIR)/ahuuids.o\ $(OBJDIR)/cmfsize.o\ $(OBJDIR)/dbcmds.o\ $(OBJDIR)/dbconvert.o\ $(OBJDIR)/dbdisply.o\ $(OBJDIR)/dbexec.o\ $(OBJDIR)/dbfileio.o\ $(OBJDIR)/dbhistry.o\ $(OBJDIR)/dbinput.o\ $(OBJDIR)/dbmethod.o\ $(OBJDIR)/dbnames.o\ $(OBJDIR)/dbobject.o\ $(OBJDIR)/dbstats.o\ $(OBJDIR)/dbtest.o\ $(OBJDIR)/dbutils.o\ $(OBJDIR)/dbxface.o\ $(OBJDIR)/dmbuffer.o\ $(OBJDIR)/dmcstyle.o\ $(OBJDIR)/dmdeferred.o\ $(OBJDIR)/dmnames.o\ $(OBJDIR)/dmopcode.o\ $(OBJDIR)/dmresrc.o\ $(OBJDIR)/dmresrcl.o\ $(OBJDIR)/dmresrcl2.o\ $(OBJDIR)/dmresrcs.o\ $(OBJDIR)/dmutils.o\ $(OBJDIR)/dmwalk.o\ $(OBJDIR)/dsargs.o\ $(OBJDIR)/dscontrol.o\ $(OBJDIR)/dsdebug.o\ $(OBJDIR)/dsfield.o\ $(OBJDIR)/dsinit.o\ $(OBJDIR)/dsmethod.o\ $(OBJDIR)/dsmthdat.o\ $(OBJDIR)/dsobject.o\ $(OBJDIR)/dsopcode.o\ $(OBJDIR)/dspkginit.o\ $(OBJDIR)/dsutils.o\ $(OBJDIR)/dswexec.o\ $(OBJDIR)/dswload.o\ $(OBJDIR)/dswload2.o\ $(OBJDIR)/dswscope.o\ $(OBJDIR)/dswstate.o\ $(OBJDIR)/evevent.o\ $(OBJDIR)/evglock.o\ $(OBJDIR)/evgpe.o\ $(OBJDIR)/evgpeblk.o\ $(OBJDIR)/evgpeinit.o\ $(OBJDIR)/evgpeutil.o\ $(OBJDIR)/evhandler.o\ $(OBJDIR)/evmisc.o\ $(OBJDIR)/evregion.o\ $(OBJDIR)/evrgnini.o\ $(OBJDIR)/evsci.o\ $(OBJDIR)/evxface.o\ $(OBJDIR)/evxfevnt.o\ $(OBJDIR)/evxfgpe.o\ $(OBJDIR)/evxfregn.o\ $(OBJDIR)/exconfig.o\ $(OBJDIR)/exconcat.o\ $(OBJDIR)/exconvrt.o\ $(OBJDIR)/excreate.o\ $(OBJDIR)/exdebug.o\ $(OBJDIR)/exdump.o\ $(OBJDIR)/exfield.o\ $(OBJDIR)/exfldio.o\ $(OBJDIR)/exmisc.o\ $(OBJDIR)/exmutex.o\ $(OBJDIR)/exnames.o\ $(OBJDIR)/exoparg1.o\ $(OBJDIR)/exoparg2.o\ $(OBJDIR)/exoparg3.o\ $(OBJDIR)/exoparg6.o\ $(OBJDIR)/exprep.o\ $(OBJDIR)/exregion.o\ $(OBJDIR)/exresnte.o\ $(OBJDIR)/exresolv.o\ $(OBJDIR)/exresop.o\ $(OBJDIR)/exserial.o\ $(OBJDIR)/exstore.o\ $(OBJDIR)/exstoren.o\ $(OBJDIR)/exstorob.o\ $(OBJDIR)/exsystem.o\ $(OBJDIR)/extrace.o\ $(OBJDIR)/exutils.o\ $(OBJDIR)/getopt.o\ $(OBJDIR)/hwacpi.o\ $(OBJDIR)/hwesleep.o\ $(OBJDIR)/hwgpe.o\ $(OBJDIR)/hwpci.o\ $(OBJDIR)/hwregs.o\ $(OBJDIR)/hwsleep.o\ $(OBJDIR)/hwtimer.o\ $(OBJDIR)/hwvalid.o\ $(OBJDIR)/hwxface.o\ $(OBJDIR)/hwxfsleep.o\ $(OBJDIR)/nsaccess.o\ $(OBJDIR)/nsalloc.o\ $(OBJDIR)/nsarguments.o\ $(OBJDIR)/nsconvert.o\ $(OBJDIR)/nsdump.o\ $(OBJDIR)/nsdumpdv.o\ $(OBJDIR)/nseval.o\ $(OBJDIR)/nsinit.o\ $(OBJDIR)/nsload.o\ $(OBJDIR)/nsnames.o\ $(OBJDIR)/nsobject.o\ $(OBJDIR)/nsparse.o\ $(OBJDIR)/nspredef.o\ $(OBJDIR)/nsprepkg.o\ $(OBJDIR)/nsrepair.o\ $(OBJDIR)/nsrepair2.o\ $(OBJDIR)/nssearch.o\ $(OBJDIR)/nsutils.o\ $(OBJDIR)/nswalk.o\ $(OBJDIR)/nsxfeval.o\ $(OBJDIR)/nsxfname.o\ $(OBJDIR)/nsxfobj.o\ $(OBJDIR)/osgendbg.o\ $(OBJDIR)/osunixxf.o\ $(OBJDIR)/psargs.o\ $(OBJDIR)/psloop.o\ $(OBJDIR)/psobject.o\ $(OBJDIR)/psopcode.o\ $(OBJDIR)/psopinfo.o\ $(OBJDIR)/psparse.o\ $(OBJDIR)/psscope.o\ $(OBJDIR)/pstree.o\ $(OBJDIR)/psutils.o\ $(OBJDIR)/pswalk.o\ $(OBJDIR)/psxface.o\ $(OBJDIR)/rsaddr.o\ $(OBJDIR)/rscalc.o\ $(OBJDIR)/rscreate.o\ $(OBJDIR)/rsdump.o\ $(OBJDIR)/rsdumpinfo.o\ $(OBJDIR)/rsinfo.o\ $(OBJDIR)/rsio.o\ $(OBJDIR)/rsirq.o\ $(OBJDIR)/rslist.o\ $(OBJDIR)/rsmemory.o\ $(OBJDIR)/rsmisc.o\ $(OBJDIR)/rsserial.o\ $(OBJDIR)/rsutils.o\ $(OBJDIR)/rsxface.o\ $(OBJDIR)/tbdata.o\ $(OBJDIR)/tbfadt.o\ $(OBJDIR)/tbfind.o\ $(OBJDIR)/tbinstal.o\ $(OBJDIR)/tbprint.o\ $(OBJDIR)/tbutils.o\ $(OBJDIR)/tbxface.o\ $(OBJDIR)/tbxfload.o\ $(OBJDIR)/tbxfroot.o\ $(OBJDIR)/utaddress.o\ $(OBJDIR)/utalloc.o\ $(OBJDIR)/utascii.o\ $(OBJDIR)/utbuffer.o\ $(OBJDIR)/utcache.o\ $(OBJDIR)/utcksum.o\ $(OBJDIR)/utcopy.o\ $(OBJDIR)/utdebug.o\ $(OBJDIR)/utdecode.o\ $(OBJDIR)/utdelete.o\ $(OBJDIR)/uterror.o\ $(OBJDIR)/uteval.o\ $(OBJDIR)/utexcep.o\ $(OBJDIR)/utglobal.o\ $(OBJDIR)/uthex.o\ $(OBJDIR)/utids.o\ $(OBJDIR)/utinit.o\ $(OBJDIR)/utlock.o\ $(OBJDIR)/utmath.o\ $(OBJDIR)/utmisc.o\ $(OBJDIR)/utmutex.o\ $(OBJDIR)/utobject.o\ $(OBJDIR)/utosi.o\ $(OBJDIR)/utownerid.o\ $(OBJDIR)/utnonansi.o\ $(OBJDIR)/utpredef.o\ $(OBJDIR)/utresdecode.o\ $(OBJDIR)/utresrc.o\ $(OBJDIR)/utstate.o\ $(OBJDIR)/utstring.o\ $(OBJDIR)/utstrsuppt.o\ $(OBJDIR)/utstrtoul64.o\ $(OBJDIR)/uttrack.o\ $(OBJDIR)/utuuid.o\ $(OBJDIR)/utxface.o\ $(OBJDIR)/utxferror.o\ $(OBJDIR)/utxfinit.o\ $(OBJDIR)/utxfmutex.o # # Flags specific to acpiexec utility # CFLAGS += \ -DACPI_EXEC_APP\ -I$(ACPIEXEC) ifeq ($(ASLTS),TRUE) CFLAGS += \ -DACPI_CHECKSUM_ABORT=TRUE endif ifneq ($(ACPI_HOST),_QNX) LDFLAGS += -lpthread endif ifneq ($(ACPI_HOST),_APPLE) ifneq ($(ACPI_HOST),_QNX) ifneq ($(ACPI_HOST),_HAIKU) LDFLAGS += -lrt endif endif endif # # Common Rules # include ../Makefile.rules acpica-unix-20250404/generate/release/0000775000175000017500000000000014773714131016747 5ustar ivanhuivanhuacpica-unix-20250404/generate/release/release.sh0000775000175000017500000000614214773714131020731 0ustar ivanhuivanhu#!/bin/bash #****************************************************************************** # # ACPICA release generation script for Cygwin/Windows execution # # front end for build.sh # # Copies any existing packages to the archive directory. # # Generates 3 types of package: # 1) Standard ACPICA source, everything except test suites # 2) ACPICA test suites (very large) # 3) Windows binary tools (Windows does not include generation tools) # # Note: "unix" generation builds the source with the standard Intel license # in each file header. "unix2" builds the source with the dual license instead. # this has been requested by some OS vendors, notably FreeBSD. # #****************************************************************************** # Configuration NPARAM=$# BUILD_TESTS=1 # Filenames and paths ARCHIVE_DIR=archive RELEASE_DIR=current #****************************************************************************** # # Miscellaneous utility functions # #****************************************************************************** usage() { echo "$1" echo echo "Master script to create ACPICA release packages" echo "Usage:" echo " $0 [notest]" } move_all_files_to_archive() { cd $RELEASE_DIR for file in * do if [ -d $file ]; then rm -r -f ../$ARCHIVE_DIR/$file mv -f $file ../$ARCHIVE_DIR echo "Moved directory $file to $ARCHIVE_DIR directory" else cp $file ../$ARCHIVE_DIR echo "Moved $file ($(ls -al $file | awk '{print $5}') bytes) to $ARCHIVE_DIR directory" rm $file fi done cd .. } #****************************************************************************** # # main # # Arguments: # $1 (optional) notest - do not generate the ACPICA test suite packages # #****************************************************************************** set -e # Abort on any error # # Parameter evaluation # if [ $NPARAM -gt 1 ]; then usage "Wrong argument count ($NPARAM)" exit 1 elif [ $NPARAM -eq 1 ]; then if [ $1 == notest ]; then BUILD_TESTS=0 else usage "Invalid argument ($1)" exit 1 fi fi # # Move and preserve any previous versions of the various release packages # if [ -e $RELEASE_DIR ]; then # Create archive directory if necessary mkdir -p $ARCHIVE_DIR # # Save any older versions of the release packages # if [ "$(ls -A $RELEASE_DIR)" ]; then echo "Moving previous packages to $ARCHIVE_DIR directory" move_all_files_to_archive echo "Completed move of previous packages to $ARCHIVE_DIR directory" fi else # Just create the release directory mkdir -p $RELEASE_DIR fi # ACPICA source code (core subsystem and all tools/utilities) bash build.sh source win bash build.sh source unix bash build.sh source unix2 # Optionally build the test suite packages (built by default) if [ $BUILD_TESTS -eq 1 ]; then # ACPICA test suites (A unix2 build has not been requested by users) bash build.sh test win bash build.sh test unix else echo "**** Test suites not built because the notest option was used" fi # ACPICA binary tools (Windows only) bash build.sh binary win echo echo "ACPICA - Summary of generated packages:" echo ls $RELEASE_DIR -g -G -t acpica-unix-20250404/generate/release/build.sh0000775000175000017500000002661614773714131020420 0ustar ivanhuivanhu#!/bin/bash #****************************************************************************** # # ACPICA package generation script for Cygwin/Windows execution # # Requires cygwin be installed - http://www.cygwin.com # and its /bin be *first* in your path. # # Windows packages require pkzip25 (free, and is available from numerous # sources - search for "pkzip25" or "pkzip25.exe") # # Execute this script from the acpica/generate/release directory. # # Constructed packages are placed in the acpica/generate/release/current # directory. # # Line Terminators: Windows source packages leave the CR/LF terminator. # Unix packages convert the CR/LF terminators to LF only. # # Usage: # # build # # where: # is one of: # source - Build an ACPICA source package (core and all tools) # test - Build an ACPICA test suite package # binary - Build an ACPICA binary tools package # # is one of: # win - Generate Windows package (Intel license, CRLF line terminators) # unix - Generate Unix package (Intel license, LF line terminators) # unix2 - Generate Unix package (dual license, LF line terminators) # #****************************************************************************** # Configuration ZIP_UTILITY="/cygdrive/c/windows/pkzip25.exe" ACPISRC="libraries/acpisrc_dbg.exe" DOS2UNIX="dos2unix" UNIX2DOS="unix2dos" # Filenames and paths TARGET_DIR="generate/release/current" TEMP_DIR=acpitemp TEST_PREFIX=acpitests SOURCE_PREFIX=acpica BINARY_PREFIX=iasl PACKAGE_SUFFIX=`date +%Y%m%d` NPARAM=$# #****************************************************************************** # # Miscellaneous utility functions # #****************************************************************************** usage() { echo "$1" echo echo "Low-level build script for ACPICA release packages" echo "Usage:" echo " $0 source " echo " $0 test " echo " $0 binary " } banner() { echo echo "$1" echo } check_zip_utility_exists() { # # Need pkzip (or similar) to build the windows packages # if [ ! -e "$ZIP_UTILITY" ]; then echo "ZIP_UTILITY ($ZIP_UTILITY) does not exist!" exit 1 fi } convert_to_unix_line_terminators() { # # Convert all CR/LF pairs to Unix format (LF only) # cd $TEMP_DIR echo "Starting CR/LF to LF (UNIX) full source conversion" find . -name "*" | xargs $DOS2UNIX -q echo "Completed CR/LF to LF (UNIX) full source conversion" cd .. } convert_to_dos_line_terminators() { # # Convert all lone LF terminators to CR/LF # Note: Checks shell scripts only (*.sh) # cd $TEMP_DIR echo "Starting LF to CR/LF (DOS) script conversion" find . -name "*.sh" | xargs $UNIX2DOS -q echo "Completed LF to CR/LF (DOS) script conversion" cd .. } insert_dual_license_headers() { # # Need acpisrc utility to insert the headers # if [ ! -e "$ACPISRC" ]; then echo "acpisrc ($ACPISRC) does not exist!" exit 1 fi # # Insert the dual license into *.c and *.h files # echo "Inserting dual-license into all source files" $ACPISRC -h -y $TEMP_DIR } build_unix_package() { convert_to_unix_line_terminators # # Build release package # rm -r -f $PACKAGE_FILENAME mv $TEMP_DIR $PACKAGE_FILENAME tar czf $PACKAGE_FILENAME.tar.gz $PACKAGE_FILENAME # # Move the completed package # mv $PACKAGE_FILENAME.tar.gz $TARGET_DIR mv $PACKAGE_FILENAME $TEMP_DIR } build_windows_package() { convert_to_dos_line_terminators # # Build release package # cd $TEMP_DIR rm -r -f ../$TARGET_DIR/$PACKAGE_FILENAME $ZIP_UTILITY -silent -add -max -dir -sort=name ../$TARGET_DIR/$PACKAGE_FILENAME cd .. } #****************************************************************************** # # generate_source_package # # Generates the ACPICA source code packages (core and all tools) # # Arguments: # %1 - Target type (win or unix or unix2) # #****************************************************************************** generate_source_package () { # # Parameter evaluation # if [ $1 == win ]; then PACKAGE_NAME=Windows PACKAGE_TYPE=Win LICENSE=Intel check_zip_utility_exists elif [ $1 == unix ]; then PACKAGE_NAME="Unix (Intel License)" PACKAGE_TYPE=Unix LICENSE=Intel elif [ $1 == unix2 ]; then PACKAGE_NAME="Unix (Dual License)" PACKAGE_TYPE=Unix LICENSE=Dual else usage "Invalid argument ($1)" exit 1 fi PACKAGE_FILENAME=$SOURCE_PREFIX-$1-$PACKAGE_SUFFIX banner "ACPICA - Generating $PACKAGE_NAME source code package ($PACKAGE_FILENAME)" # # Make directories common to all source packages # mkdir $TEMP_DIR mkdir $TEMP_DIR/libraries mkdir $TEMP_DIR/generate mkdir $TEMP_DIR/generate/lint mkdir $TEMP_DIR/generate/release mkdir $TEMP_DIR/generate/unix mkdir $TEMP_DIR/generate/unix/acpibin mkdir $TEMP_DIR/generate/unix/acpidump mkdir $TEMP_DIR/generate/unix/acpiexamples mkdir $TEMP_DIR/generate/unix/acpiexec mkdir $TEMP_DIR/generate/unix/acpihelp mkdir $TEMP_DIR/generate/unix/acpisrc mkdir $TEMP_DIR/generate/unix/acpixtract mkdir $TEMP_DIR/generate/unix/iasl mkdir $TEMP_DIR/tests mkdir $TEMP_DIR/tests/misc mkdir $TEMP_DIR/tests/templates mkdir -p $TEMP_DIR/source/os_specific/service_layers # # Copy ACPICA subsystem source code # cp -r documents/changes.txt $TEMP_DIR/changes.txt cp -r source/common $TEMP_DIR/source/common cp -r source/components $TEMP_DIR/source/ cp -r source/include $TEMP_DIR/source/include cp -r generate/release/*.sh $TEMP_DIR/generate/release # # Copy iASL compiler and tools source # cp -r source/compiler $TEMP_DIR/source/compiler cp -r source/tools $TEMP_DIR/source/tools # # Copy iASL/ACPICA miscellaneous tests (not full test suites) # cp -r tests/misc/*.asl $TEMP_DIR/tests/misc cp -r tests/templates/Makefile $TEMP_DIR/tests/templates cp -r tests/templates/templates.sh $TEMP_DIR/tests/templates # # Copy all OS-specific interfaces # cp source/os_specific/service_layers/*.c $TEMP_DIR/source/os_specific/service_layers # # Copy generic UNIX makefiles # cp Makefile $TEMP_DIR cp generate/unix/readme.txt $TEMP_DIR/generate/unix/readme.txt cp generate/unix/Makefile* $TEMP_DIR/generate/unix cp generate/unix/acpibin/Makefile $TEMP_DIR/generate/unix/acpibin cp generate/unix/acpidump/Makefile $TEMP_DIR/generate/unix/acpidump cp generate/unix/acpiexamples/Makefile $TEMP_DIR/generate/unix/acpiexamples cp generate/unix/acpiexec/Makefile $TEMP_DIR/generate/unix/acpiexec cp generate/unix/acpihelp/Makefile $TEMP_DIR/generate/unix/acpihelp cp generate/unix/acpisrc/Makefile $TEMP_DIR/generate/unix/acpisrc cp generate/unix/acpixtract/Makefile $TEMP_DIR/generate/unix/acpixtract cp generate/unix/iasl/Makefile $TEMP_DIR/generate/unix/iasl # # Copy Lint directory # cp -r generate/lint $TEMP_DIR/generate rm -f $TEMP_DIR/generate/lint/co* rm -f $TEMP_DIR/generate/lint/env* rm -f $TEMP_DIR/generate/lint/lib* rm -f $TEMP_DIR/generate/lint/LintOut.txt if [ $PACKAGE_TYPE == Unix ]; then # # Unix/Linux-specific activities # # For Unix2 case, insert the dual license header into all source files # if [ $LICENSE == Dual ]; then insert_dual_license_headers fi build_unix_package else # # Windows-specific activities # # Copy project files for MS Visual Studio 2017 mkdir $TEMP_DIR/generate/msvc2017 cp -r generate/msvc2017/*.sln $TEMP_DIR/generate/msvc2017/ cp -r generate/msvc2017/*.dsp $TEMP_DIR/generate/msvc2017/ cp -r generate/msvc2017/*.dsw $TEMP_DIR/generate/msvc2017/ cp -r generate/msvc2017/*.vcxproj $TEMP_DIR/generate/msvc2017/ build_windows_package fi banner "ACPICA - Completed $PACKAGE_NAME source code package ($PACKAGE_FILENAME)" } #****************************************************************************** # # generate_test_package # # Generates the ACPICA test suite packages # # Arguments: # %1 - Target type (win or unix) # #****************************************************************************** generate_test_package() { # # Parameter evaluation # if [ $1 == win ]; then PACKAGE_NAME=Windows PACKAGE_TYPE=Win check_zip_utility_exists elif [ $1 == unix ]; then PACKAGE_NAME="Unix" PACKAGE_TYPE=Unix else usage "Invalid argument ($1)" exit 1 fi PACKAGE_FILENAME=$TEST_PREFIX-$1-$PACKAGE_SUFFIX banner "ACPICA - Generating $PACKAGE_NAME test suite package ($PACKAGE_FILENAME)" # # Copy the ASL Test source # mkdir $TEMP_DIR cp -r tests $TEMP_DIR/tests # # Delete extraneous files # cd $TEMP_DIR find . -name "tmp" | xargs rm -r -f find . -name "aml" | xargs rm -r -f find . -name "CVS" | xargs rm -r -f cd .. if [ $PACKAGE_TYPE == Unix ]; then # # Unix/Linux-specific activities # build_unix_package else # # Windows-specific activities # build_windows_package fi banner "ACPICA - Completed $PACKAGE_NAME test suite package ($PACKAGE_FILENAME)" } #****************************************************************************** # # generate_binary_package # # Generates the ACPICA binary package (Currently Windows only) # # Arguments: # %1 - Target type (win) # #****************************************************************************** generate_binary_package() { # # Parameter evaluation # if [ $1 == win ]; then PACKAGE_NAME=Windows PACKAGE_TYPE=Win check_zip_utility_exists else usage "Invalid argument ($1)" exit 1 fi PACKAGE_FILENAME=$BINARY_PREFIX-$1-$PACKAGE_SUFFIX banner "ACPICA - Generating $PACKAGE_NAME binary tools package ($PACKAGE_FILENAME)" # # Copy executables and documentation # mkdir $TEMP_DIR cp -r documents/changes.txt $TEMP_DIR/changes.txt cp libraries/acpibin.exe $TEMP_DIR cp libraries/acpidump.exe $TEMP_DIR cp libraries/acpiexec.exe $TEMP_DIR cp libraries/acpihelp.exe $TEMP_DIR cp libraries/acpisrc.exe $TEMP_DIR cp libraries/acpixtract.exe $TEMP_DIR cp libraries/iasl.exe $TEMP_DIR cp tests/misc/badcode.asl $TEMP_DIR build_windows_package banner "ACPICA - Completed $PACKAGE_NAME binary tools package ($PACKAGE_FILENAME)" } #****************************************************************************** # # main # # Arguments: # $1 (package_type) is one of: # source - Build an ACPICA source package (core and all tools) # test - Build an ACPICA test suite package # binary - Build an ACPICA binary tools package # # $2 (target_type) is one of: # win - Generate Windows package (Intel license, CRLF line terminators) # unix - Generate Unix package (Intel license, LF line terminators) # unix2 - Generate Unix package (dual license, LF line terminators) # #****************************************************************************** set -e # Abort on any error if [ $NPARAM -ne 2 ]; then usage "Wrong argument count ($NPARAM)" exit 1 fi # # cd from acpica/generate/release to acpica # cd ../.. # # Ensure that the temporary directory is created fresh # rm -rf $TEMP_DIR # # Parameter evaluation # if [ $1 == source ]; then generate_source_package $2 elif [ $1 == test ]; then generate_test_package $2 elif [ $1 == binary ]; then generate_binary_package $2 else usage "Invalid argument ($1)" exit 1 fi # # Remove temporary directory # rm -rf $TEMP_DIR acpica-unix-20250404/generate/lint/0000775000175000017500000000000014773714131016275 5ustar ivanhuivanhuacpica-unix-20250404/generate/lint/lint.bat0000775000175000017500000000067314773714131017744 0ustar ivanhuivanhudel LintOut.txt echo Begin 64-bit lint >> LintOut.txt "C:\Program Files\Lint\Lint-nt" +v std64.lnt +os(LintOut.txt) files.lnt echo 64-bit lint completed >> LintOut.txt echo -------------------------------------------- >> LintOut.txt echo Begin 32-bit lint >> LintOut.txt "C:\Program Files\Lint\Lint-nt" +v std32.lnt +os(LintOut.txt) files.lnt echo 32-bit lint completed >> LintOut.txt @echo off echo --- echo Output placed in LintOut.txt acpica-unix-20250404/generate/lint/std64.lnt0000775000175000017500000000045714773714131017771 0ustar ivanhuivanhu// Generic Compilers, -si4 -sl4 -sp8 // Standard lint options -dACPI_MACHINE_WIDTH=64 -e747 // Compiler supports parameter conversions -e46 // Compiler supports bitfields other than int -d_IA64 -dWIN64 -d_WIN64 -d_MAC +fll // enable long long -si4 -sl4 -sp8 -sll8 co.lnt options.lnt acpica-unix-20250404/generate/lint/files.lnt0000775000175000017500000000067314773714131020127 0ustar ivanhuivanhu// // Basic ACPICA components // ..\..\source\components\debugger\*.c ..\..\source\components\disassembler\*.c ..\..\source\components\dispatcher\*.c ..\..\source\components\events\*.c ..\..\source\components\executer\*.c ..\..\source\components\hardware\*.c ..\..\source\components\namespace\*.c ..\..\source\components\parser\*.c ..\..\source\components\resources\*.c ..\..\source\components\tables\*.c ..\..\source\components\utilities\*.c acpica-unix-20250404/generate/lint/readme.txt0000775000175000017500000000065214773714131020301 0ustar ivanhuivanhu Lint files for PC-Lint (FlexLint) by Gimpel Software, Inc. These are the configuration and option files used to lint the ACPI-CA software. lset.bat - adds lint directory to the command line search path lint.bat - lint batch file for 32 and 64 bit lint std16.lnt - 16-bit options std32.lnt - 32-bit options std64.lnt - 64-bit options options.lnt - common options others - windows/dos compiler option files acpica-unix-20250404/generate/lint/options.lnt0000775000175000017500000000730714773714131020521 0ustar ivanhuivanhu// Please note -- this is a representative set of error suppression // options. Please adjust to suit your own policies // See manual (chapter LIVING WITH LINT) // for further details. -i"..\..\source\include" -i"..\..\source\include\platform" /* Global options */ -A // ANSI C only +fie // Enum is integer -dACPI_USE_DO_WHILE_0 -dACPI_DEBUG_OUTPUT //-dACPI_APPLICATION -dACPI_DEBUGGER -dACPI_DISASSEMBLER -dACPI_ENABLE_OBJECT_CACHE -dACPI_DBG_TRACK_ALLOCATIONS -dACPI_USE_LOCAL_CACHE -dACPI_CACHE_T=ACPI_MEMORY_LIST -d_LINT=1 -printf(4, AcpiUtDebugPrint, AcpiUtDebugPrintRaw) -printf(1, AcpiOsPrintf, AcpiOsVprintf) /* Macro exceptions */ -emacro( (413), ACPI_OFFSET ) // use of NULL pointer creates a stir -emacro( (413), ACPI_TO_INTEGER ) // use of NULL pointer creates a stir -emacro( (413), ACPI_TO_POINTER ) // use of NULL pointer creates a stir -emacro( (413), ACPI_ADD_PTR ) // use of NULL pointer creates a stir -emacro( (413), ACPI_PTR_DIFF ) // use of NULL pointer creates a stir -emacro( (413), ACPI_FADT_OFFSET ) // use of NULL pointer creates a stir -emacro( (413), ASL_RESDESC_OFFSET ) // use of NULL pointer creates a stir -emacro( (662), ACPI_ADD_PTR ) // allow pointer overrun for dynamic structs -emacro( (797), ACPI_ADD_PTR ) // allow pointer overrun for dynamic structs -emacro( 826, ACPI_NEXT_RESOURCE) // Pointer cast -emacro( 826, ACPI_MOVE_UNALIGNED16_TO_16) // Pointer cast -emacro( 826, ACPI_MOVE_UNALIGNED16_TO_32) // Pointer cast -emacro( 826, ACPI_MOVE_UNALIGNED32_TO_32) // Pointer cast -emacro( 826, ACPI_MOVE_32_TO_32) // Pointer cast -emacro( 950, ACPI_INTERNAL_VAR_XFACE) // Uses non-ANSI -emacro( 950, ACPI_SYSTEM_XFACE) // Uses non-ANSI -emacro( 826, ACPI_CAST_PTR) // Pointer cast -emacro( 826, ACPI_ADD_PTR) // Pointer cast -emacro( 826, ACPI_LODWORD) // Pointer cast -emacro( 826, ACPI_HIDWORD) // Pointer cast /* Symbol exceptions */ -esym( 528, _AcpiModuleName) // Symbol not always used, but always present -esym( 550, CurrentSp) // Used to track stack use -esym( 789, CurrentSp) // Used to track stack use -esym( 534, AcpiDmDumpName) // Return value not always used -esym( 534, AcpiDmCommaIfListMember) // Return value not always used // Suppress warning about redefinition during lint of multiple modules -esym(767,_COMPONENT) /* Symbol exceptions for generation of iASL compiler */ -esym( 534, TrWalkParseTree) // Return value not always used -esym( 534, AslCompilerparse) // Return value not always used -esym( 534, OpcSetOptimalIntegerSize) // Return value not always used -esym( 534, AslCompilererror) // Return value not always used /* Global exceptions */ -e716 // Allow while(1) -e717 // Allow do..while(0) -e801 // Allow judicious use of goto without incurring complaint -e818 // Don't make suggestions about const to avoid "const" pollution -e715 // Ignore non-referenced formal parameters -e750 // Ignore non-referenced local macros (_MODULE_NAME, _COMPONENT, etc.) -e834 // - followed by + is "confusing" NOT. -e820 // Allow Boolean test of a parenthesized assignment -e778 // Allow constant expressions to evaluate to zero -e662 // Allow "pointer overrun" for dynamic structures -e831 -e784 // Allow "Nul character truncated from string" for lookup tables -e661 // Allow access beyond "end of pointer" for ACPI tables declared with x[1] fields -e796 // Allow access beyond "end of pointer" for namestrings acpica-unix-20250404/generate/lint/std16.lnt0000775000175000017500000000046214773714131017762 0ustar ivanhuivanhu// Microsoft C and Visual C++ 4.x, -mL -si2 -spN2 -spF4, lib-win.lnt // Standard lint options c:\acpi\generate\lint\co-msc40.lnt //c:\acpi\generate\lint\lib-win.lnt -dMSDOS -dACPI_MACHINE_WIDTH=16 //-d_MSC_VER -e747 // Compiler supports parameter conversions options.lnt -mL -si2 -spN2 -spF4 -sl4 acpica-unix-20250404/generate/lint/std32.lnt0000775000175000017500000000043314773714131017756 0ustar ivanhuivanhu// Generic Compilers, -si4 -sp4 // Standard lint options -dACPI_MACHINE_WIDTH=32 -dWIN32=1 -d_MSC_VER=1 +fll // enable long long +rw(__asm) // enable in-line assembly -esym( 950, __asm) // Used to track stack use -si4 -sp4 co.lnt options.lnt acpica-unix-20250404/generate/lint/lset.bat0000775000175000017500000000002314773714131017732 0ustar ivanhuivanhuset path=%PATH%;$G acpica-unix-20250404/tests/0000700000175000017500000000000014773714160014665 5ustar ivanhuivanhuacpica-unix-20250404/tests/misc/0000700000175000017500000000000014773714160015620 5ustar ivanhuivanhuacpica-unix-20250404/tests/misc/converterSample.asl0000700000175000017500000000366014773714160021502 0ustar ivanhuivanhu/* * top of the * definition block */ DefinitionBlock( "converterSample.aml", /* These comments */ "DSDT", /* within the */ 0x02, /* definition block header */ "Intel", /* are not retained. */ "Many", /* They will be */ 0x00000001 /* Discarded */) { /* first comment of named object b */ Name (b, 5) Name(p008, Package() { 0, 0, 0, 0xffffffff, 0x00012345, 0x00007abc, 0x00000012, 0x00000034, 0x00000001, 0x000000ff, 0x00000001, 0x0000ffff, 0x00000001, 0xffffffff, // bit-size of multiplicand 0x67812345, 2, // bit-size of multiplier 3, 0x45678123, 0xffffffff, 0xffffffff, // ACPI: Overflow conditions are ignored and results are undefined. }) Method(MAIN) { /********************************************************************** * * * This is a long * * multi-line * * comment * * * **********************************************************************/ //c12 if(1==1)//c13 { //c14 Name(b,0); } //c15 } //c16 Name (a, Package(3) {/*c20*/ 0x04, /*c21*/ /*c22*/ 0x05, /*c23*/ 0x06 /*c24*/ }/*c25*/ )/*c26*/ //c34 Method(SCOP) { //c35 Name (a1, 0x04) } OperationRegion(GNVS,SystemMemory,0xFFFF0000,0xAA55) Field(GNVS,AnyAcc,Lock,Preserve) { //c36 Offset(0),//c37 OSYS, 8//c38 } } //c39 /*ending comment*/ acpica-unix-20250404/tests/misc/grammar.asl0000700000175000017500000117010514773714160017757 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2020, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // // // Grammar.asl - Minimally exercises most ASL constructs // // NOTE -- use: iasl -f -of grammar.asl to compile // // This 1) Ignores errors (checks compiler error handling) // 2) Disables constant folding // // /******************************************************************************* Compilation should look like this: C:\acpica\tests\misc>iasl -f -of grammar.asl Intel ACPI Component Architecture ASL Optimizing Compiler version 20090422 [Apr 22 2009] Copyright (C) 2000 - 2009 Intel Corporation Supports ACPI Specification Revision 3.0a grammar.asl 187: Name (_NPK, Package (8) Warning 1098 - ^ Unknown reserved name (_NPK) grammar.asl 510: NAME (ESC1, "abcdefg\x00hijklmn") Warning 1042 - ^ Invalid Hex/Octal Escape - Non-ASCII or NULL grammar.asl 511: NAME (ESC2, "abcdefg\000hijklmn") Warning 1042 - ^ Invalid Hex/Octal Escape - Non-ASCII or NULL grammar.asl 601: Method (RCIV, 1) Warning 1087 - ^ Not all control paths return a value (RCIV) grammar.asl 608: RCIV (Subtract (Arg0, 1)) Remark 5073 - ^ Recursive method call (RCIV) grammar.asl 937: Method (_ERR, 2) Warning 1077 - ^ Reserved method has too few arguments (_ERR requires 3) grammar.asl 1377: Store (0x1234567887654321, QWD2) Warning 1032 - ^ 64-bit integer in 32-bit table, truncating grammar.asl 1379: if (LNotEqual (Local0, 0x1234567887654321)) Warning 1032 - 64-bit integer in 32-bit table, truncating ^ grammar.asl 1459: SizeOf (BUFO) Warning 1105 - ^ Result is not used, operator has no effect grammar.asl 1485: Acquire (MTX2, 1) Warning 1104 - ^ Possible operator timeout is ignored grammar.asl 1633: Add (Local0, Local1) Warning 1105 - ^ Result is not used, operator has no effect grammar.asl 1804: Method (COND) Warning 1087 - ^ Not all control paths return a value (COND) grammar.asl 6010: Name (_HID, "*PNP0A06") Error 4001 - ^ String must be entirely alphanumeric (*PNP0A06) grammar.asl 6461: Name (_CRS, Buffer(26) {"\_SB_.PCI2._CRS..........."}) Warning 1038 - Invalid or unknown escape sequence ^ grammar.asl 6800: And (Local0, 1, Local0) // Local0 &= 1 Error 4050 - ^ Method local variable is not initialized (Local0) grammar.asl 6886: Name (_HID, "*PNP0C0A") // Control Method Battey ID Error 4001 - ^ String must be entirely alphanumeric (*PNP0C0A) ASL Input: grammar.asl - 10254 lines, 322162 bytes, 4810 keywords AML Output: grammar.aml - 43392 bytes, 669 named objects, 4141 executable opcodes Compilation complete. 3 Errors, 12 Warnings, 1 Remarks, 1101 Optimizations ***************************************************************************************************/ DefinitionBlock ( "grammar.aml", //Output filename "DSDT", //Signature 0x01, //DSDT Revision ---> 32-bit table "Intel", //OEMID "GRMTEST", //TABLE ID 0x20090511 //OEM Revision ) { External (\ABCD, UnknownObj) /* Device with _STA and _INI */ Device (A1) { Method (_STA) { Return (0x0F) } Method (_INI) { Return } } /* Device with no _STA, has _INI */ Device (A2) { Method (_INI) { Return } } /* Device with _STA, no _INI */ Device (A3) { Method (_STA) { Return (0x0F) } } /* Device with _STA and _INI, but not present */ Device (A4) { Method (_STA) { Return (Zero) } Method (_INI) { Return } } /* Resource descriptors */ Device (IRES) { Name (PRT0, ResourceTemplate () { IRQ (Edge, ActiveHigh, Exclusive) {3,4,5,6,7,9,10,11,14,15} StartDependentFn (1,1) { IRQNoFlags () {0,1,2} } EndDependentFn () }) Method (_CRS, 0, NotSerialized) { Store ("_CRS:", Debug) Store (PRT0, Debug) Return (PRT0) } Method (_SRS, 1, Serialized) { Store ("_SRS:", Debug) Store (Arg0, Debug) Return (Zero) } } Name (_NPK, Package () { 0x1111, 0x2222, 0x3333, 0x4444 }) Device (RES) { Name (_PRT, Package (0x04) { Package (0x04) { 0x0002FFFF, Zero, Zero, Zero }, Package (0x04) { 0x0002FFFF, One, Zero, Zero }, Package (0x04) { 0x000AFFFF, Zero, Zero, Zero }, Package (0x04) { 0x000BFFFF, Zero, Zero, Zero } }) Method (_CRS, 0, Serialized) { Name (PRT0, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0x0000, // Address Space Granularity 0xFFF2, // Address Range Minimum 0xFFF3, // Address Range Maximum 0x0032, // Address Translation Offset 0x0002,,,) WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, 0x0000, // Address Space Granularity 0x0000, // Address Range Minimum 0x00FF, // Address Range Maximum 0x0000, // Address Translation Offset 0x0100,,,) WordSpace (0xC3, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xA5, 0x0000, // Address Space Granularity 0xA000, // Address Range Minimum 0xBFFF, // Address Range Maximum 0x0000, // Address Translation Offset 0x2000,,,) IO (Decode16, 0x0CF8, 0x0CFF, 0x01, 0x08) WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000, // Address Space Granularity 0x0000, // Address Range Minimum 0x0CF7, // Address Range Maximum 0x0000, // Address Translation Offset 0x0CF8,,, , TypeStatic) WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000, // Address Space Granularity 0x0D00, // Address Range Minimum 0xFFFF, // Address Range Maximum 0x0000, // Address Translation Offset 0xF300,,, , TypeStatic) DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Address Space Granularity 0x00000000, // Address Range Minimum 0x00000CF7, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00000CF8,,, , TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000C8000, // Address Range Minimum 0x000EFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00028000,,, , AddressRangeMemory, TypeStatic) DWordSpace (0xC3, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xA5, 0x00000000, // Address Space Granularity 0x000C8000, // Address Range Minimum 0x000EFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00028000,,,) QWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000000000000000, // Address Space Granularity 0x0000000000000000, // Address Range Minimum 0x0000000000000CF7, // Address Range Maximum 0x0000000000000000, // Address Translation Offset 0x0000000000000CF8, 0x44, "This is a ResouceSource string", , TypeStatic) QWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000000000000000, // Address Space Granularity 0x0000000000000000, // Address Range Minimum 0x0000000000000CF7, // Address Range Maximum 0x0000000000000000, // Address Translation Offset 0x0000000000000CF8,,, , TypeStatic) QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x0000000000000000, // Address Space Granularity 0x0000000000100000, // Address Range Minimum 0x00000000FFDFFFFF, // Address Range Maximum 0x0000000000000000, // Address Translation Offset 0x00000000FFD00000,,, , AddressRangeMemory, TypeStatic) QWordSpace (0xC3, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xA5, 0x0000000000000000, // Address Space Granularity 0x0000000000000000, // Address Range Minimum 0x0000000000000CF7, // Address Range Maximum 0x0000000000000000, // Address Translation Offset 0x0000000000000CF8,,,) ExtendedIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000000000000000, // Address Space Granularity 0x0000000000000000, // Address Range Minimum 0x0000000000000CF7, // Address Range Maximum 0x0000000000000000, // Address Translation Offset 0x0000000000000CF8, // Address Length 0x0000000000000000, // Type Specific Attributes , TypeStatic) ExtendedMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x0000000000000000, // Address Space Granularity 0x0000000000100000, // Address Range Minimum 0x00000000FFDFFFFF, // Address Range Maximum 0x0000000000000000, // Address Translation Offset 0x00000000FFD00000, // Address Length 0x0000000000000000, // Type Specific Attributes , AddressRangeMemory, TypeStatic) ExtendedSpace (0xC3, ResourceProducer, PosDecode, MinFixed, MaxFixed, 0xA3, 0x0000000000000000, // Address Space Granularity 0x0000000000100000, // Address Range Minimum 0x00000000FFDFFFFF, // Address Range Maximum 0x0000000000000000, // Address Translation Offset 0x00000000FFD00000, // Address Length 0x0000000000000000) // Type Specific Attributes IO (Decode16, 0x0010, 0x0020, 0x01, 0x10) IO (Decode16, 0x0090, 0x00A0, 0x01, 0x10) FixedIO (0x0061, 0x01) IRQNoFlags () {2} DMA (Compatibility, BusMaster, Transfer8_16) {4} DMA (Compatibility, BusMaster, Transfer8) {2,5,7} Memory32Fixed (ReadWrite, 0x00100000, 0x00000000) Memory32Fixed (ReadOnly, 0xFFFE0000, 0x00020000) Memory32 (ReadOnly, 0x00020000, 0xFFFE0000, 0x00000004, 0x00000200) Memory24 (ReadOnly, 0x1111, 0x2222, 0x0004, 0x0200) Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, 0xE, "\\_SB_.TEST") { 0x00000E01, } Interrupt (ResourceConsumer, Edge, ActiveHigh, Exclusive, 0x6, "xxxx") { 0x00000601, 0x00000003, 0x00000002, 0x00000001, } Interrupt (ResourceProducer, Edge, ActiveHigh, Exclusive) { 0xFFFF0000, 0x00000003, 0x00000002, 0x00000001, 0x00000005, 0x00000007, 0x00000009, } VendorShort () {0x01, 0x02, 0x03} VendorLong () { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09 } Register (SystemIO, 0x08, 0x00, 0x00000000000000B2, , R000) Register (SystemMemory, 0x08, 0x00, 0x00000000000000B2) StartDependentFnNoPri () { IRQNoFlags () {0,1,2} IRQ (Level, ActiveLow, Shared) {3,4,5,6,7,9,10,11,14,15} } EndDependentFn () }) CreateWordField (PRT0, 0x08, BMIN) CreateByteField (PRT0, R000._ASZ, RSIZ) Store (0x03, BMIN) Return (PRT0) } Method (_PRS, 0, Serialized) { Name (BUF0, ResourceTemplate () { StartDependentFn (0x01, 0x02) { IO (Decode16, 0x03D8, 0x03F8, 0x01, 0x08) IRQNoFlags () {4} } StartDependentFn (0x02, 0x01) { IO (Decode16, 0x03D8, 0x03E8, 0x01, 0x08) IRQNoFlags () {4} } StartDependentFn (0x00, 0x02) { IO (Decode16, 0x02E8, 0x02F8, 0x01, 0x08) IRQNoFlags () {3} } StartDependentFn (0x00, 0x02) { IO (Decode16, 0x02D8, 0x02E8, 0x01, 0x08) IRQNoFlags () {3} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x0100, 0x03F8, 0x08, 0x08) IRQNoFlags () {1,3,4,5,6,7,8,10,11,12,13,14,15} } EndDependentFn () }) Return (BUF0) } Method (_SRS, 1, Serialized) { Return (Zero) } } Name(\_S0,Package(0x04){ 0x00, 0x00, 0x00, 0x00 }) Name(\_S3,Package(0x04){ 0x05, 0x05, 0x00, 0x00 }) Name(\_S4,Package(0x04){ 0x06, 0x06, 0x00, 0x00 }) Name(\_S5,Package(0x04){ 0x07, 0x07, 0x00, 0x00 }) /* Examine this table header (DSDT) */ /* DataTableRegion (HDR, "DSDT", "", "") Field (HDR, AnyAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8, OID, 48, OTID, 64, OREV, 32, CID, 32, CREV, 32 } Method (SIZE) { If (LLess (REV, 2)) { Store ("32-bit table", Debug) } else { Store ("64-bit table", Debug) } Return (0) } */ Name (SIZE, 0) /* Custom operation region */ OperationRegion(MYOP,0x80,0xFD60,0x6) Field(MYOP,ByteAcc,NoLock,Preserve) { MFLD,8 } Method (TCOP,, Serialized) { Name (_STR, Unicode ("test")) Store (4, MFLD) Store (MFLD, Local0) } Name (ERRS, 0x0) /* Warning should be issued for premature string termination */ NAME (ESC1, "abcdefg\x00hijklmn") NAME (ESC2, "abcdefg\000hijklmn") Name (ESC3, "abc\a\bdef\f\n\r\t\v\x03ffff\432") Name(CRSA,ResourceTemplate() { WORDBusNumber(ResourceProducer,MinFixed,MaxFixed,PosDecode,0x0000,0x0019,0x001D,0x0000,0x0005) WORDIO(ResourceProducer,MinFixed,MaxFixed,PosDecode,NonISAOnlyRanges,0x0000,0xC000,0xCFFF,0x0000,0x1000) DWORDMemory(ResourceProducer,PosDecode,MinFixed,MaxFixed,NonCacheable,ReadWrite,0x00000000,0xD8000000,0xDBFFFFFF,0x00000000,0x04000000) }) Name(CRSB,ResourceTemplate() { DWORDMemory(ResourceProducer,PosDecode,MinFixed,MaxFixed,NonCacheable,ReadWrite,0x00000000,0xD8000000,0xDBFFFFFF,0x00000000,0x04000000) }) Name(CRSC,ResourceTemplate() { VendorShort () {0x1, 0x2, 0x3} }) Name(CRSD,ResourceTemplate() { VendorLong (VNDL) {0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9} }) Name(CRSE,ResourceTemplate() { IRQNoFlags(){3,4,10,11} IRQNoFlags(xxxt){3,4,10,11} }) Name(CRSR, Buffer (Add (SizeOf(CRSA),SizeOf(CRSB))){}) Method(_CRS,0,NotSerialized) { Return(CRSR) } // // Unnamed scope // Scope (\) { Name(Bxxx,0xFFFFFFFF) } Name (LANS, 0x0) PowerResource(LANP,1,0) { Method(_STA){ If(LEqual(And(LANS,0x30),0x30)){ Return(One) } Else { Return(Zero) } } Method(_ON){ If(LNot(_STA())){ Store (0x30, LANS) } } Method(_OFF){ If(_STA()){ Store (0, LANS) } } } /* Can a method define another method? */ /********************************** Method (TASK, 2, SERIALIZED) { Sleep (100) Method (TAS2) { Sleep (100) } TAS2() Return } ************************************/ /* A recursive method */ Method (RCIV, 1) { Store (Arg0, Debug) If (Lequal (Arg0, 0)) { Return () } RCIV (Subtract (Arg0, 1)) } Method (RTOP) { RCIV (100) } Scope(\_PR) { Processor(CPU0,0x0,0xFFFFFFFF,0x0) {} } Name(B1TP,0xFFFFFFFF) Name(B2TP,0xFFFFFFFF) Name(ADPS,0xFFFFFFFF) Name(B1PS,0xFFFFFFFF) Name(B1RS,0xFFFFFFFF) Name(B1CS,0xFFFFFFFF) Name(B2PS,0xFFFFFFFF) Name(B2RS,0xFFFFFFFF) Name(B2CS,0xFFFFFFFF) Name(B1DC,3000) Name(B2DC,2600) Name(B1LF,3000) Name(B2LF,2600) Name(BPIF,0) Name(PBLL,0) Name(RBIF,Package() { 0x1, 2200, 2200, 0x1, 10800, 0, 0, 1, 1, "CA54200-5003/5", "1", "LION", "Fujitsu" }) Method(SMWE, 4) { return(ONES) } Method(SMRE, 4) { return(ONES) } /* Method(RDBT,0,Serialized){ If(LNot(SMWE(0x09,0x15,1,1))){ Store(0x18,Local2) } } */ Scope(_SB) { Name (SBUF, Buffer (128) {}) CreateBitField (SBUF, 3, BITY) CreateByteField (SBUF, 1, BYTY) CreateWordField (SBUF, 2, WRDZ) CreateDwordField (SBUF, 4, DWDZ) CreateQwordField (SBUF, 8, QWDZ) CreateField (SBUF, 128, 12, FLDZ) CreateField (SBUF, 148, 96, FLDY) CreateField (SBUF, 148, 96, \_SB_.FLDW) Method (_INI) { CreateField (\_SB_.SBUF, 148, 96, FLDV) } Device(PCI0) { Name(_HID,EISAID("PNP0A03")) Name(_ADR,0x0) Method(_CRS,, Serialized) { Name(PRT0, ResourceTemplate() { WORDBusNumber( // Bus number resource(0) ResourceConsumer, // bit 0 of general flags is 1 MinFixed, // Range is notfixed MaxFixed, // Range is not fixed SubDecode, // SubDecode 0x0000, // Granularity 0xfff1, // Min 0xfff2, // Max 0x0032, // Translation 0x0002,,, // Range Length BUS0 ) } )// PRT0 CreateWordField(PRT0, BUS0._MIN, BMIN) //Minimum bus number supported under this bridge. Store(3, BMIN) Return(PRT0) } // _CRS Method(_SRS) { Return () } Device(EIO) { OperationRegion(FJIO,SystemIO,0xFD60,0x6) Field(FJIO,ByteAcc,NoLock,Preserve) { GIDX,8, GDTA,8, PIDX,8, PDTA,8, SIDX,8, SDTA,8 } IndexField(GIDX,GDTA,ByteAcc,NoLock,Preserve) { Offset(0x2), ,5, VGAS,2, Offset(0x4), ,4, DCKE,1, Offset(0x5), ,6, ACPW,1, Offset(0xA), B1P,1, B2P,1, B1C,1, B2C,1, B1ER,1, B2ER,1, Offset(0xB), B1CP,8, B2CP,8, BCP,8, B1VH,8, B1VL,8, B2VH,8, B2VL,8, B1TM,8, B2TM,8, B1CH,8, B1CL,8, B2CH,8, B2CL,8 } } } } Method(RDBT,3,Serialized){ Store(0x1FFF,Local1) If( Arg0 ){ Store(0x2FFF,Local1) } Store(0x18,Local2) If( Arg1 ){ Store(0x10,Local2) } If(LNot(SMRE(0x09,0x15,1,RefOf(Local0)))){ If(LNot(SMWE(0x08,0x14,1,Local1))){ If(LNot(SMRE(0x09,0x17,Local2,RefOf(Local3)))){ Store(Local1,Arg2) } } Or(Local0,0xFFF,Local0) SMWE(0x08,0x14,1,Local0) } } Method(MKWD,2) { If(And(Arg1,0x80)) { Or(0xFFFF0000,Arg0,Local0) Or(Local0,ShiftLeft(Arg1,8),Local0) Subtract(Zero,Local0,Local0) } else { Store(Arg0,Local0) Or(Local0,ShiftLeft(Arg1,8),Local0) } Return(Local0) } Device(CMB1) { Name(_HID,EISAID("PNP0C0A")) Name(_UID,0x1) Alias(\_SB.PCI0.EIO.B1P,\_SB_.PCI0.XXXX) Alias(\_SB.PCI0.EIO.B1P,B1P) Alias(\_SB.PCI0.EIO.B1C,B1C) Alias(\_SB.PCI0.EIO.B1CH,B1CH) Alias(\_SB.PCI0.EIO.B1CL,B1CL) Alias(\_SB.PCI0.EIO.B1VH,B1VH) Alias(\_SB.PCI0.EIO.B1VL,B1VL) Alias(\_SB.PCI0.EIO.B1CP,B1CP) Method(_INI) { Store(B1P, B1PS) Store(B1CP,B1RS) Store(B1C, B1CS) } Method(_BIF){ RDBT(Zero,Zero,RefOf(B1DC)) RDBT(Zero,One,RefOf(B1LF)) Store(B1DC,Index(RBIF,1)) Store(B1LF,Index(RBIF,2)) Store("CA54200-5003/5",Index(RBIF,9)) Store("1",Index(RBIF,10)) Return(RBIF) } Method(_BST,, Serialized) { _INI() Store(Zero,Local0) if (LAnd(B1P,LNot(B1C))){ Or(Local0,1,Local0) } if (LAnd(B1P,B1C)) { Or(Local0,2,Local0) } if (LLessEqual(B1CP,1)) { Or(Local0,4,Local0) } Store(MKWD(B1CL,B1CH),Local1) Store(Divide(Add(Multiply(B1CP,B1LF),99),100),Local2) Store(MKWD(B1VL,B1VH),Local3) Name(STAT,Package(4){}) Store(Local0,Index(STAT,0)) Store(Local1,Index(STAT,1)) Store(Local2,Index(STAT,2)) Store(Local3,Index(STAT,3)) If(LNot(BPIF)){ // \_SB.PCI0.EIO.EC0.IECT() // \_SB.PCI0.EIO.EC0.SECT() Store(One,BPIF) } return(STAT) } } Device (DEV1) { } Scope(\_TZ) { ThermalZone(TZ1) { Name(_PSL,Package() { \_PR.CPU0 }) } } Method (TZ2, 0, SERIALIZED) { Name(_PSL,Package() { \_PR.CPU0 }) Return (_PSL) } ThermalZone (THM1) { } Method (NOTI) { Notify (\DEV1, 0) Notify (\THM1, 0) Notify (\_PR.CPU0, 0) } Method (_ERR, 3) { Increment (ERRS) Store ("Run-time exception:", Debug) Store (Arg0, Debug) Store (Arg1, Debug) Return (0) // Map error to AE_OK } Method (DIV0) { Store (1, Local0) Store (0, Local1) Divide (Local0, Local1, Local3) Store ("DIV0 - noabort", Debug) } Method (ERR_, 2) { Local0 = ToDecimalString (Arg1) if (LEqual (Arg0, 0)) { Printf ("+*+*+*+* MTHD_ERROR at line %o: Results not equal!", Local0) } if (LEqual (Arg0, 1)) { Printf ("+*+*+*+* MTHD_ERROR at line %o: Numeric result is incorrect!", Local0) } if (LEqual (Arg0, 2)) { Printf ("+*+*+*+* MTHD_ERROR at line %o: Operand was clobbered!", Local0) } Notify (DEV1, Arg0) Increment (ERRS) } Method (R226, 2) { } Method (R225, 2) { R226 (Arg0, Arg1) } Method (R224, 2) { R225 (Arg1, Arg0) } Method (R223, 2) { R224 (Arg0, Arg1) } Method (R222, 2) { R223 (Arg1, Arg0) } Method (R111) { Store (0x01010101, Local0) R222 (0xABAB, Local0) Store (Local0, Local1) } Method (MAIN) { // SIZE() Store (NUM1(), Local0) \CMB1._BST() RDBT(1,2,3) OBJ1(1) OBJ2(2) CHEK() RETZ() BITZ() LOGS() REFS() COND() TZ2() // // iPCO tests added // Store (\IFEL.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\NOSV.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\IDXF.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\_SB_.NSTL.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\RTBF.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\_SB_.RTLV.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\_SB_.RETP.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\WHLR.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\ANDO.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\BRKP.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\ADSU.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\INDC.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\LOPS.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\FDSO.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\MLDV.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\NBIT.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\SHFT.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\XORD.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\CRBF.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\IDX4.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\EVNT.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\SZLV.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\_SB_.BYTF.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\DWDF.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\DVAX.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\IDX6.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\IDX5.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\_SB_.IDX0.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\_SB_.IDX3.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\IDX7.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\MTCH.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\WHLB.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\_SB_.IDX2.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\SIZO.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } Store (\_SB_.SMIS.TEST(), Local0) if (LGreater (Local0, 0)) { ERR_ (1, __LINE__) Return(Local0) } if (LGreater (ERRS, 0)) { Store ("****** There were errors during the execution of the test ******", Debug) } // Flush all notifies Sleep (250) // // Last Test // Return(0) // Success } Method (OBJ1, 1, SERIALIZED) { Store (3, Local0) Name(BUFR, Buffer (Local0) {}) Name(BUF1, Buffer (4) {1,2,3,4}) Name(BUF2, Buffer (4) {}) Store (BUF1, BUF2) Mutex (MTX1, 4) Alias (MTX1, MTX2) } Mutex (MTXT, 0) Mutex (MTXX, 0) /* * Field Creation */ Method (FLDS,, Serialized) { Store ("++++++++ Creating BufferFields", Debug) Name (BUF2, Buffer (128) {}) CreateBitField (BUF2, 3, BIT2) CreateByteField (BUF2, 1, BYT2) CreateWordField (BUF2, 2, WRD2) CreateDwordField (BUF2, 4, DWD2) CreateQwordField (BUF2, 8, QWD2) CreateField (BUF2, 128, 12, FLD2) CreateField (BUF2, 148, 96, FLD3) Store (0x1, BIT2) Store (BIT2, Local0) if (LNotEqual (Local0, 0x1)) { ERR_ (1, __LINE__) } else { Store (DerefOf (Index (BUF2, 0)), Local0) if (LNotEqual (Local0, 0x08)) { ERR_ (1, __LINE__) } else { Store ("++++++++ Bit BufferField I/O PASS", Debug) } } Store (0x1A, BYT2) Store (BYT2, Local0) if (LNotEqual (Local0, 0x1A)) { ERR_ (1, __LINE__) } else { Store ("++++++++ Byte BufferField I/O PASS", Debug) } Store (0x1234, WRD2) Store (WRD2, Local0) if (LNotEqual (Local0, 0x1234)) { ERR_ (1, __LINE__) } else { Store ("++++++++ Word BufferField I/O PASS", Debug) } Store (0x123, FLD2) Store (FLD2, Local0) if (LNotEqual (Local0, 0x123)) { ERR_ (1, __LINE__) } else { Store ("++++++++ 12-bit BufferField I/O PASS", Debug) } Store (0x12345678, DWD2) Store (DWD2, Local0) if (LNotEqual (Local0, 0x12345678)) { ERR_ (1, __LINE__) } else { Store ("++++++++ Dword BufferField I/O PASS", Debug) } Store (0x1234567887654321, QWD2) Store (QWD2, Local0) if (LNotEqual (Local0, 0x1234567887654321)) { ERR_ (1, __LINE__) } else { Store ("++++++++ Qword BufferField I/O PASS", Debug) } } /* Field execution */ Method (FLDX,, Serialized) { Field (\_SB_.MEM.SMEM, AnyAcc, NoLock, Preserve) { // Field: SMEM overlay using 32-bit field elements SMD0, 32, // 32-bits SMD1, 32, // 32-bits SMD2, 32, // 32-bits SMD3, 32 // 32-bits } // Field: SMEM overlay using 32-bit field elements Field (\_SB_.MEM.SMEM, AnyAcc, NoLock, Preserve) { // Field: SMEM overlay using greater than 32-bit field elements SME0, 69, // larger than an integer (32 or 64) SME1, 97 // larger than an integer } // Field: SMEM overlay using greater than 32-bit field elements } Method (MTX_, ) { /* Test "Force release" of mutex on method exit */ Acquire (MTXT, 0xFFFF) Acquire (MTXX, 0xFFFF) Store ("++++++++ Acquiring Mutex MTX2", Debug) Acquire (_GL_, 0xFFFF) Store ("++++++++ Releasing Mutex MTX2", Debug) Release (_GL_) } Method (OBJ2, 1, Serialized) { Store ("++++++++ Creating Buffer BUFO", Debug) Name (BUFO, Buffer (32) {}) Store ("++++++++ Creating OpRegion OPR2", Debug) OperationRegion (OPR2, SystemMemory, Arg0, 256) Store ("++++++++ Creating Field(s) in OpRegion OPR2", Debug) Field (OPR2, ByteAcc, NoLock, Preserve) { IDX2, 8, DAT2, 8, BNK2, 4 } Store ("++++++++ Creating BankField BNK2 in OpRegion OPR2", Debug) // // mcw 3/20/00 - changed FET0, 4, FET1, 3 to FET0, 1, FET1, 1 // BankField (OPR2, BNK2, 0, ByteAcc, NoLock, Preserve) { FET0, 4, FET1, 3 } Store ("++++++++ Creating IndexField", Debug) IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) { FET2, 4, FET3, 3 } Store ("++++++++ SizeOf (BUFO)", Debug) SizeOf (BUFO) Store ("++++++++ Store (SizeOf (BUFO), Local0)", Debug) Store (SizeOf (BUFO), Local0) Store ("++++++++ Concatenate (\"abd\", \"def\", Local0)", Debug) Concatenate ("abd", "def", Local0) Store (Local0, Debug) Store ("++++++++ Concatenate (\"abd\", 0x7B, Local0)", Debug) Concatenate ("abd", 0x7B, Local0) Store (Local0, Debug) Store ("++++++++ Creating Event EVT2", Debug) Event (EVT2) Store ("++++++++ Creating Mutex MTX2", Debug) Mutex (MTX2, 0) Store ("++++++++ Creating Alias MTXA to MTX2", Debug) Alias (MTX2, MTXA) Store ("++++++++ Acquiring Mutex MTX2", Debug) Acquire (MTX2, 0xFFFF) Store ("++++++++ Acquiring Mutex MTX2 (2nd acquire)", Debug) Acquire (MTX2, 1) Store ("++++++++ Releasing Mutex MTX2", Debug) Release (MTX2) // Type 1 opcodes Store ("++++++++ Signalling Event EVT2", Debug) Signal (EVT2) Store ("++++++++ Resetting Event EVT2", Debug) Reset (EVT2) Store ("++++++++ Signalling Event EVT2", Debug) Signal (EVT2) Store ("++++++++ Waiting Event EVT2", Debug) Wait (EVT2, 0xFFFF) Store ("++++++++ Sleep", Debug) Sleep (100) Store ("++++++++ Stall", Debug) Stall (254) Store ("++++++++ NoOperation", Debug) Noop // Type 2 Opcodes Store ("++++++++ Return from Method OBJ2", Debug) return (4) } Method (NUM1, 0) { /* ADD */ Store ("++++++++ Add (0x12345678, 0x11111111, Local0)", Debug) Add (0x12345678, 0x11111111, Local0) Store ("++++++++ Store (Add (0x12345678, 0x11111111), Local1)", Debug) Store (Add (0x12345678, 0x11111111), Local1) Store ("++++++++ Checking result from ADD", Debug) if (LNotEqual (Local0, Local1)) { ERR_ (0, __LINE__) } /* SUBTRACT */ Store ("++++++++ Subtract (0x87654321, 0x11111111, Local4)", Debug) Subtract (0x87654321, 0x11111111, Local4) Store ("++++++++ Store (Subtract (0x87654321, 0x11111111), Local5)", Debug) Store (Subtract (0x87654321, 0x11111111), Local5) Store ("++++++++ Checking result from SUBTRACT", Debug) if (LNotEqual (Local4, Local5)) { ERR_ (0, __LINE__) } /* MULTIPLY */ Store ("++++++++ Multiply (33, 10, Local6)", Debug) Multiply (33, 10, Local6) Store ("++++++++ Store (Multiply (33, 10), Local7)", Debug) Store (Multiply (33, 10), Local7) Store ("++++++++ Checking result from MULTIPLY", Debug) if (LNotEqual (Local6, Local7)) { ERR_ (0, __LINE__) } /* DIVIDE */ Store ("++++++++ Divide (100, 9, Local1, Local2)", Debug) Divide (100, 9, Local1, Local2) Store ("++++++++ Store (Divide (100, 9), Local3)", Debug) Store (Divide (100, 9), Local3) Store ("++++++++ Checking (quotient) result from DIVIDE", Debug) if (LNotEqual (Local2, Local3)) { ERR_ (0, __LINE__) } /* INCREMENT */ Store ("++++++++ Increment (Local0)", Debug) Store (1, Local0) Store (2, Local1) Increment (Local0) Store ("++++++++ Checking result from INCREMENT", Debug) if (LNotEqual (Local0, Local1)) { ERR_ (0, __LINE__) } /* DECREMENT */ Store ("++++++++ Decrement (Local0)", Debug) Store (2, Local0) Store (1, Local1) Decrement (Local0) Store ("++++++++ Checking result from DECREMENT", Debug) if (LNotEqual (Local0, Local1)) { ERR_ (0, __LINE__) } /* TOBCD */ /* FROMBCD */ Store ("++++++++ ToBCD (0x1234, Local5)", Debug) ToBCD (0x1234, Local5) Store ("++++++++ FromBCD (Local5, Local6)", Debug) FromBCD (Local5, Local6) Store ("++++++++ Return (Local6)", Debug) Return (Local6) } Method (CHEK) { Store (3, Local0) Store (3, Debug) Store (Local0, Debug) Store (7, Local1) Add (Local0, Local1) if (LNotEqual (Local0, 3)) { ERR_ (2, __LINE__) } if (LNotEqual (Local1, 7)) { ERR_ (2, __LINE__) } Add (Local0, Local1, Local2) if (LNotEqual (Local0, 3)) { ERR_ (2, __LINE__) } if (LNotEqual (Local1, 7)) { ERR_ (2, __LINE__) } } Method (RET1) { Store (3, Local0) Return (Local0) } Method (RET2) { Return (RET1()) } Method (RETZ) { RET2 () } Method (BITZ) { Store ("++++++++ FindSetLeftBit (0x00100100, Local0)", Debug) FindSetLeftBit (0x00100100, Local0) if (LNotEqual (Local0, 21)) { ERR_ (1, __LINE__) } Store ("++++++++ FindSetRightBit (0x00100100, Local1)", Debug) FindSetRightBit (0x00100100, Local1) if (LNotEqual (Local1, 9)) { ERR_ (1, __LINE__) } Store ("++++++++ And (0xF0F0F0F0, 0x11111111, Local2)", Debug) And (0xF0F0F0F0, 0x11111111, Local2) if (LNotEqual (Local2, 0x10101010)) { ERR_ (1, __LINE__) } Store ("++++++++ NAnd (0xF0F0F0F0, 0x11111111, Local3)", Debug) NAnd (0xF0F0F0F0, 0x11111111, Local3) if (LNotEqual (Local3, 0xEFEFEFEF)) { ERR_ (1, __LINE__) } Store ("++++++++ Or (0x11111111, 0x22222222, Local4)", Debug) Or (0x11111111, 0x22222222, Local4) if (LNotEqual (Local4, 0x33333333)) { ERR_ (1, __LINE__) } Store ("++++++++ NOr (0x11111111, 0x22222222, Local5)", Debug) NOr (0x11111111, 0x22222222, Local5) if (LNotEqual (Local5, 0xCCCCCCCC)) { ERR_ (1, __LINE__) } Store ("++++++++ XOr (0x11113333, 0x22222222, Local6)", Debug) XOr (0x11113333, 0x22222222, Local6) if (LNotEqual (Local6, 0x33331111)) { ERR_ (1, __LINE__) } Store ("++++++++ ShiftLeft (0x11112222, 2, Local7)", Debug) ShiftLeft (0x11112222, 2, Local7) if (LNotEqual (Local7, 0x44448888)) { ERR_ (1, __LINE__) } Store ("++++++++ ShiftRight (Local7, 2, Local7)", Debug) ShiftRight (Local7, 2, Local7) if (LNotEqual (Local7, 0x11112222)) { ERR_ (1, __LINE__) } Store ("++++++++ Not (Local0, Local1)", Debug) Store (0x22224444, Local0) Not (Local0, Local1) if (LNotEqual (Local0, 0x22224444)) { ERR_ (2, __LINE__) } if (LNotEqual (Local1, 0xDDDDBBBB)) { ERR_ (1, __LINE__) } Return (Local7) } Method (LOGS) { Store ("++++++++ Store (LAnd (0xFFFFFFFF, 0x11111111), Local0)", Debug) Store (LAnd (0xFFFFFFFF, 0x11111111), Local0) Store ("++++++++ Store (LEqual (0xFFFFFFFF, 0x11111111), Local)", Debug) Store (LEqual (0xFFFFFFFF, 0x11111111), Local1) Store ("++++++++ Store (LGreater (0xFFFFFFFF, 0x11111111), Local2)", Debug) Store (LGreater (0xFFFFFFFF, 0x11111111), Local2) Store ("++++++++ Store (LGreaterEqual (0xFFFFFFFF, 0x11111111), Local3)", Debug) Store (LGreaterEqual (0xFFFFFFFF, 0x11111111), Local3) Store ("++++++++ Store (LLess (0xFFFFFFFF, 0x11111111), Local4)", Debug) Store (LLess (0xFFFFFFFF, 0x11111111), Local4) Store ("++++++++ Store (LLessEqual (0xFFFFFFFF, 0x11111111), Local5)", Debug) Store (LLessEqual (0xFFFFFFFF, 0x11111111), Local5) Store ("++++++++ Store (LNot (0x31313131), Local6)", Debug) Store (0x00001111, Local6) Store (LNot (Local6), Local7) if (LNotEqual (Local6, 0x00001111)) { ERR_ (2, __LINE__) } if (LNotEqual (Local7, 0x0)) { ERR_ (1, __LINE__) } Store ("++++++++ Store (LNotEqual (0xFFFFFFFF, 0x11111111), Local7)", Debug) Store (LNotEqual (0xFFFFFFFF, 0x11111111), Local7) Store ("++++++++ Lor (0x0, 0x1)", Debug) if (Lor (0x0, 0x1)) { Store ("+_+_+_+_+ Lor (0x0, 0x1) returned TRUE", Debug) } return (Local7) } Method (COND) { Store ("++++++++ Store (0x4, Local0)", Debug) Store (0x4, Local0) Store ("++++++++ While (Local0)", Debug) While (Local0) { Store ("++++++++ Decrement (Local0)", Debug) Decrement (Local0) } Store ("++++++++ Store (0x3, Local6)", Debug) Store (0x3, Local6) Store ("++++++++ While (Subtract (Local6, 1))", Debug) While (Subtract (Local6, 1)) { Store ("++++++++ Decrement (Local6)", Debug) Decrement (Local6) } Store ("++++++++ [LVL1] If (LGreater (0x2, 0x1))", Debug) If (LGreater (0x2, 0x1)) { Store ("++++++++ [LVL2] If (LEqual (0x11111111, 0x22222222))", Debug) If (LEqual (0x11111111, 0x22222222)) { Store ("++++++++ ERROR: If (LEqual (0x11111111, 0x22222222)) returned TRUE", Debug) } else { Store ("++++++++ [LVL3] If (LNot (0x0))", Debug) If (LNot (0x0)) { Store ("++++++++ [LVL4] If (LAnd (0xEEEEEEEE, 0x2))", Debug) If (LAnd (0xEEEEEEEE, 0x2)) { Store ("++++++++ [LVL5] If (LLess (0x44444444, 0x3))", Debug) If (LLess (0x44444444, 0x3)) { Store ("++++++++ ERROR: If (LLess (0x44444444, 0x3)) returned TRUE", Debug) } else { Store ("++++++++ Exiting from nested IF/ELSE statements", Debug) } } } } } Store ("++++++++ [LVL1] If (LGreater (0x2, 0x1))", Debug) If (LGreater (0x2, 0x1)) { Store ("++++++++ [LVL2] If (LEqual (0x11111111, 0x22222222))", Debug) If (LEqual (0x11111111, 0x22222222)) { Store ("++++++++ ERROR: If (LEqual (0x11111111, 0x22222222)) returned TRUE", Debug) } else { Store ("++++++++ [LVL3] If (LNot (0x0))", Debug) If (LNot (0x0)) { Store ("++++++++ [LVL4] If (LAnd (0xEEEEEEEE, 0x2))", Debug) If (LAnd (0xEEEEEEEE, 0x2)) { Store ("++++++++ [LVL5] If (LLess (0x44444444, 0x3))", Debug) If (LLess (0x44444444, 0x3)) { Store ("++++++++ ERROR: If (LLess (0x44444444, 0x3)) returned TRUE", Debug) } else { Store ("++++++++ Returning from nested IF/ELSE statements", Debug) Return (Local6) } } } } } } Method (REFS,, Serialized) { Name (BBUF, Buffer() {0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7}) Name (NEST, Package () { Package () { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }, Package () { 0x11, 0x12, 0x12, 0x14, 0x15, 0x16 } }) Store (RefOf (MAIN), Local5) // For this to work, ABCD must NOT exist. Store (CondRefOf (ABCD, Local0), Local1) if (LNotEqual (Local1, 0)) { ERR_ (2, __LINE__) } Store (CondRefOf (BBUF, Local0), Local1) if (LNotEqual (Local1, Ones)) { ERR_ (2, __LINE__) } Store (DeRefOf (Index (BBUF, 3)), Local6) if (LNotEqual (Local6, 0xB3)) { ERR_ (2, __LINE__) } Store (DeRefOf (Index (DeRefOf (Index (NEST, 1)), 3)), Local0) if (LNotEqual (Local0, 0x14)) { ERR_ (2, __LINE__) } Store (0x11223344, Local0) Store (RefOf (Local0), Local1) Store (DerefOf (Local1), Local2) If (LNotEqual (Local2, 0x11223344)) { ERR_ (2, __LINE__) } /* Parser thinks this is a method invocation!! */ // RefOf (MAIN) // RefOf (R___) // RefOf (BBUF) // Store (RefOf (Local0), Local1) // CondRefOf (BBUF, Local2) // CondRefOf (R___, Local3) // Store (DerefOf (Local1), Local4) // Return (Local4) } Method (INDX, 0, Serialized) { Name(STAT,Package(4){}) Store(0x44443333,Index(STAT,0)) } //================================================================= //================================================================= //===================== iPCO TESTS ================================ //================================================================= //================================================================= // // // test IfElseOp.asl // // test for IfOp and ElseOp, including validation of object stack cleanup // Device (IFEL) { Name (DWRD, 1) Name (RSLT, 0) // IFNR control method executes IfOp branch with NO nested Return // and no Else branch Method (IFNR) { Store (DWRD, RSLT) If (LEqual (DWRD, 1)) { Store (0, RSLT) } } // IFNR // NINR control method does not execute If branch and has no Else branch Method (NINR) { Store (0, RSLT) If (LNotEqual (DWRD, 1)) { Store (DWRD, RSLT) } } // NINR // IENR control method executes IfOp branch with NO nested Return Method (IENR) { If (LEqual (DWRD, 1)) { Store (0, RSLT) } Else { Store (DWRD, RSLT) } } // IENR // ELNR control method executes ElseOp branch with NO nested Return Method (ELNR) { If (LNotEqual (DWRD, 1)) { Store (DWRD, RSLT) } Else { Store (0, RSLT) } } // ELNR // IFRT control method executes IfOp branch with nested Return with // no Else branch Method (IFRT) { If (LEqual (DWRD, 1)) { Return (0) } Return (DWRD) } // IFRT // IERT control method executes IfOp branch with nested Return with // Else branch Method (IERT) { If (LEqual (DWRD, 1)) { Return (0) } Else { Return (DWRD) } } // IERT // ELRT control method executes ElseOp branch with nested Return Method (ELRT) { If (LNotEqual (DWRD, 1)) { Return (DWRD) } Else { Return (0) } } // ELRT Method (TEST) { Store ("++++++++ IfElseOp Test", Debug) // IfOp with NO return value IFNR() If (LNotEqual (RSLT, 0)) { Return (RSLT) } // IfOp with NO return value NINR() If (LNotEqual (RSLT, 0)) { Return (RSLT) } // IfOp with NO return value IENR() If (LNotEqual (RSLT, 0)) { Return (RSLT) } // ElseOp with NO return value ELNR() If (LNotEqual (RSLT, 0)) { Return (RSLT) } // IfOp with return value Store (IFRT, RSLT) If (LNotEqual (RSLT, 0)) { Return (RSLT) } // IfOp with return value Store (IERT, RSLT) If (LNotEqual (RSLT, 0)) { Return (RSLT) } // ElseOp with return value Store (ELRT, RSLT) If (LNotEqual (RSLT, 0)) { Return (RSLT) } Return (0) } // TEST } // IFEL // // test NoSave.asl // // // Internal test cases to validate IfOp (Operator (,,)) where Operator // target is ZeroOp to throw away the results. // Includes internal test cases for logical operators with no destination // operands. // Device (NOSV) { Method (TEST,, Serialized) { Store ("++++++++ NoSave Test", Debug) Name (WRD, 0x1234) // // Begin test of nested operators without saving results // // Test If (And ()) with no save of And result If (And (3, 1, )) { Store (1, WRD) // pass -- just do something } else { Return (1) // fail } // Test If (And ()) with no save of And result If (And (4, 1, )) { Return (2) // fail } else { Store (2, WRD) // pass -- just do something } // Test If (NAnd ()) with no save of NAnd result If (NAnd (3, 1, )) { Store (3, WRD) // pass -- just do something } else { Return (3) // fail } // Test If (NAnd ()) with no save of NAnd result If (NAnd (0xFFFFFFFF, 0xFFFFFFFF, )) { Return (4) // fail } else { Store (4, WRD) // pass -- just do something } // Test If (NOr ()) with no save of NOr result If (NOr (0, 1, )) { Store (5, WRD) // pass -- just do something } else { Return (5) // fail } // Test If (NOr ()) with no save of NOr result If (NOr (0xFFFFFFFE, 1, )) { Return (6) // fail } else { Store (6, WRD) // pass -- just do something } // Test If (Not ()) with no save of Not result If (Not (1, )) { Store (7, WRD) // pass -- just do something } else { Return (7) // fail } // Test If (Not ()) with no save of Not result If (Not (0xFFFFFFFF, )) { Return (8) // fail } else { Store (8, WRD) // pass -- just do something } // Test If (Or ()) with no save of Or result If (Or (3, 1, )) { Store (9, WRD) // pass -- just do something } else { Return (9) // fail } // Test If (Or ()) with no save of Or result If (Or (0, 0, )) { Return (10) // fail } else { Store (10, WRD) // pass -- just do something } // Test If (XOr ()) with no save of XOr result If (XOr (3, 1, )) { Store (11, WRD) // pass -- just do something } else { Return (11) // fail } // Test If (XOr ()) with no save of XOr result If (XOr (3, 3, )) { Return (12) // fail } else { Store (12, WRD) // pass -- just do something } // // Begin test of logical operators with no destination operands // // Test If (LAnd ()) with no save of LAnd result If (LAnd (3, 3)) { Store (21, WRD) // pass -- just do something } else { Return (21) // fail } // Test If (LAnd ()) with no save of LAnd result If (LAnd (3, 0)) { Return (22) // fail } else { Store (22, WRD) // pass -- just do something } // Test If (LAnd ()) with no save of LAnd result If (LAnd (0, 3)) { Return (23) // fail } else { Store (23, WRD) // pass -- just do something } // Test If (LAnd ()) with no save of LAnd result If (LAnd (0, 0)) { Return (24) // fail } else { Store (24, WRD) // pass -- just do something } // Test If (LEqual ()) with no save of LEqual result If (LEqual (3, 3)) { Store (31, WRD) // pass -- just do something } else { Return (31) // fail } // Test If (LEqual ()) with no save of LEqual result If (LEqual (1, 3)) { Return (32) // fail } else { Store (32, WRD) // pass -- just do something } // Test If (LGreater ()) with no save of LGreater result If (LGreater (3, 1)) { Store (41, WRD) // pass -- just do something } else { Return (41) // fail } // Test If (LGreater ()) with no save of LGreater result If (LGreater (4, 4)) { Return (42) // fail } else { Store (42, WRD) // pass -- just do something } // Test If (LGreater ()) with no save of LGreater result If (LGreater (1, 4)) { Return (43) // fail } else { Store (43, WRD) // pass -- just do something } // Test If (LGreaterEqual ()) with no save of LGreaterEqual result If (LGreaterEqual (3, 1)) { Store (44, WRD) // pass -- just do something } else { Return (44) // fail } // Test If (LGreaterEqual ()) with no save of LGreaterEqual result If (LGreaterEqual (3, 3)) { Store (45, WRD) // pass -- just do something } else { Return (45) // fail } // Test If (LGreaterEqual ()) with no save of LGreaterEqual result If (LGreaterEqual (3, 4)) { Return (46) // fail } else { Store (46, WRD) // pass -- just do something } // Test If (LLess ()) with no save of LLess result If (LLess (1, 3)) { Store (51, WRD) // pass -- just do something } else { Return (51) // fail } // Test If (LLess ()) with no save of LLess result If (LLess (2, 2)) { Return (52) // fail } else { Store (52, WRD) // pass -- just do something } // Test If (LLess ()) with no save of LLess result If (LLess (4, 2)) { Return (53) // fail } else { Store (53, WRD) // pass -- just do something } // Test If (LLessEqual ()) with no save of LLessEqual result If (LLessEqual (1, 3)) { Store (54, WRD) // pass -- just do something } else { Return (54) // fail } // Test If (LLessEqual ()) with no save of LLessEqual result If (LLessEqual (2, 2)) { Store (55, WRD) // pass -- just do something } else { Return (55) // fail } // Test If (LLessEqual ()) with no save of LLessEqual result If (LLessEqual (4, 2)) { Return (56) // fail } else { Store (56, WRD) // pass -- just do something } // Test If (LNot ()) with no save of LNot result If (LNot (0)) { Store (61, WRD) // pass -- just do something } else { Return (61) // fail } // Test If (LNot ()) with no save of LNot result If (LNot (1)) { Return (62) // fail } else { Store (62, WRD) // pass -- just do something } // Test If (LNotEqual ()) with no save of LNotEqual result If (LNotEqual (3, 3)) { Return (63) // fail } else { Store (63, WRD) // pass -- just do something } // Test If (LNotEqual ()) with no save of LNotEqual result If (LNotEqual (1, 3)) { Store (64, WRD) // pass -- just do something } else { Return (64) // fail } // Test If (LOr ()) with no save of LOr result If (LOr (3, 1)) { Store (71, WRD) // pass -- just do something } else { Return (71) // fail } // Test If (LOr ()) with no save of LOr result If (LOr (0, 1)) { Store (72, WRD) // pass -- just do something } else { Return (72) // fail } // Test If (LOr ()) with no save of LOr result If (LOr (3, 0)) { Store (73, WRD) // pass -- just do something } else { Return (73) // fail } // Test If (LOr ()) with no save of LOr result If (LOr (0, 0)) { Return (74) // fail } else { Store (74, WRD) // pass -- just do something } Return (0) } // TEST } // NOSV // // test IndxFld.asl // // IndexFld test // This is just a subset of the many RegionOp/Index Field test cases. // Tests index field element AccessAs macro. // Device (IDXF) { // Test device name OperationRegion (SIO, SystemIO, 0x100, 2) Field (SIO, ByteAcc, NoLock, Preserve) { INDX, 8, DATA, 8 } IndexField (INDX, DATA, AnyAcc, NoLock, WriteAsOnes) { AccessAs (ByteAcc, 0), IFE0, 8, IFE1, 8, IFE2, 8, IFE3, 8, IFE4, 8, IFE5, 8, IFE6, 8, IFE7, 8, IFE8, 8, IFE9, 8, } Method (TEST) { Store ("++++++++ IndxFld Test", Debug) Store (IFE0, Local0) Store (IFE1, Local1) Store (IFE2, Local2) Return (0) } // TEST } // IDXF // // test NestdLor.asl // Scope (\_SB) // System Bus { // _SB system bus Name (ZER0, 0) Name (ZER1, 0) Name (ZER2, 0) Name (ONE0, 1) Device (NSTL) { Method (TEST) { Store ("++++++++ NestdLor Test", Debug) If (Lor (ZER0, Lor (ZER1, Lor (ZER2, ONE0)))) { // Indicate Pass Store (0x00, Local0) } Else { // Indicate Fail Store (0x01, Local0) } Return (Local0) } // End Method TEST } // Device NSTL } // _SB system bus // // test RetBuf.asl // // Test ReturnOp(Buffer) // This is required to support Control Method Batteries on // Dell Latitude Laptops (e.g., CP1-A) // Device (RTBF) { Method (SUBR, 1) { Return (Arg0) } Method (RBUF,, Serialized) { // RBUF: Return Buffer from local variable Name (ABUF, Buffer() {"ARBITRARY_BUFFER"}) // store local buffer ABUF into Local0 Store (ABUF, Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Buffer If (LNotEqual (Local1, 3)) // Buffer type is 3 { Return (1) // failure } // store value returned by control method SUBR into Local0 Store (SUBR (ABUF), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Buffer If (LNotEqual (Local1, 3)) // Buffer type is 3 { Return (2) // failure } // allocate buffer using Local1 as buffer size (run-time evaluation) Store (5, Local1) Name (BUFR, Buffer(Local1) {}) // store value returned by control method SUBR into Local0 Store (SUBR (BUFR), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Buffer If (LNotEqual (Local1, 3)) // Buffer type is 3 { Return (3) // failure } // store BUFR Buffer into Local0 Store (BUFR, Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Buffer If (LNotEqual (Local1, 3)) // Buffer type is 3 { Return (4) // failure } // return Local0 Buffer Return (Local0) } // RBUF Method (TEST) { Store ("++++++++ RetBuf Test", Debug) // store RBUF Buffer return value into Local0 Store (RBUF, Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Buffer If (LNotEqual (Local1, 3)) // Buffer type is 3 { Return (10) // failure } Else { Return (0) // success } } // TEST } // RTBF // // test RetLVal.asl // // Test ReturnOp(Lvalue) // This is required to support _PSR on IBM ThinkPad 560D and // _DCK on Toshiba Tecra 8000. // Device (GPE2) { Method (_L03) { Store ("Method GPE2._L03 invoked", Debug) Return () } Method (_E05) { Store ("Method GPE2._E05 invoked", Debug) Return () } } Device (PRW2) { Name (_PRW, Package(2) {Package(2){\GPE2, 0x05}, 3}) } Scope (\_GPE) { Name (ACST, 0xFF) Method (_L08) { Store ("Method _GPE._L08 invoked", Debug) Return () } Method (_E09) { Store ("Method _GPE._E09 invoked", Debug) Return () } Method (_E11) { Store ("Method _GPE._E11 invoked", Debug) Notify (\PRW1, 2) } Method (_L22) { Store ("Method _GPE._L22 invoked", Debug) Return () } Method (_L33) { Store ("Method _GPE._L33 invoked", Debug) Return () } Method (_E64) { Store ("Method _GPE._E64 invoked", Debug) Return () } } // _GPE Device (PRW1) { Name (_PRW, Package(2) {0x11, 3}) } Device (PWRB) { Name (_HID, EISAID("PNP0C0C")) Name (_PRW, Package(2) {0x33, 3}) } Scope (\_SB) // System Bus { // _SB system bus Device (ACAD) { // ACAD: AC adapter device Name (_HID, "ACPI0003") // AC adapter device Name (_PCL, Package () {\_SB}) OperationRegion (AREG, SystemIO, 0x0372, 2) Field (AREG, ByteAcc, NoLock, Preserve) { AIDX, 8, ADAT, 8 } IndexField (AIDX, ADAT, ByteAcc, NoLock, Preserve) { , 1, // skips ACIN, 1, , 2, // skips CHAG, 1, , 3, // skips , 7, // skips ABAT, 1, } // IndexField Method (_PSR) { Store (\_GPE.ACST, Local0) Store (ACIN, Local1) If (LNotEqual (\_GPE.ACST, Local1)) { Store (Local1, \_GPE.ACST) // This Notify is commented because it causes a // method error when running on a system without the // specific device. // Notify (\_SB_.ACAD, 0) } Return (Local0) } // _PSR Method (_STA) { Return (0x0F) } Method (_INI) { Store (ACIN, \_GPE.ACST) } } // ACAD: AC adapter device // test implicit return from control method Method (DIS_, 1) { Store (Arg0, Local0) } Device (RTLV) { // test implicit return inside nested if with explicit return of Lvalue Method (_DCK, 1) // Arg0: 1 == dock, 0 == undock { If (Arg0) { // dock Store (0x87, Local0) If (Local0) { DIS_ (0x23) Return (1) } Return (0) } // dock Else { // undock Store (Arg0, Local0) If (Local0) { DIS_ (0x23) Return (1) } Return (0) } // undock } // _DCK control method Method (TEST) { Store ("++++++++ RetLVal Test", Debug) // store _PSR return value into Local0 Store (\_SB_.ACAD._PSR, Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number/Integer type is 1 { Return (1) // failure } // test implicit return inside nested if with explicit return of Lvalue Store (_DCK (1), Local2) // save Local2 object type value into Local3 Store (ObjectType (Local2), Local3) // validate Local2 is a Number If (LNotEqual (Local3, 1)) // Number/Integer type is 1 { Return (2) // failure } If (LNotEqual (Local2, 1)) { Return (3) // failure } Return (0) // success } // TEST } // RTLV } // _SB system bus // // test RetPkg.asl // // Test ReturnOp(Package) // This is required to support _PRT on Dell Optiplex Workstations (e.g. GX1) // Scope (\_SB) // System Bus { // _SB system bus Device(LNKA) { Name (_HID, EISAID("PNP0C0F")) // PCI interrupt link Name (_UID, 1) } Device(LNKB) { Name (_HID, EISAID("PNP0C0F")) // PCI interrupt link Name (_UID, 2) } Device(LNKC) { Name (_HID, EISAID("PNP0C0F")) // PCI interrupt link Name (_UID, 3) } Device(LNKD) { Name (_HID, EISAID("PNP0C0F")) // PCI interrupt link Name (_UID, 4) } Device (PCI1) { // PCI1: Root PCI Bus Name (_HID, "PNP0A03") // Need _HID for root device (String format) Name (_ADR,0x00000000) Name (_CRS,0) Name (_PRT, Package () { Package () {0x0004ffff, 0, LNKA, 0}, // Slot 1, INTA Package () {0x0004ffff, 1, LNKB, 0}, // Slot 1, INTB Package () {0x0004ffff, 2, LNKC, 0}, // Slot 1, INTC Package () {0x0004ffff, 3, LNKD, 0}, // Slot 1, INTD Package () {0x0005ffff, 0, \_SB_.LNKB, 0}, // Slot 2, INTA Package () {0x0005ffff, 1, \_SB_.LNKC, 0}, // Slot 2, INTB Package () {0x0005ffff, 2, \_SB_.LNKD, 0}, // Slot 2, INTC Package () {0x0006ffff, 3, \_SB_.LNKA, 0}, // Slot 2, INTD Package () {0x0006ffff, 0, LNKC, 0}, // Slot 3, INTA Package () {0x0006ffff, 1, LNKD, 0}, // Slot 3, INTB Package () {0x0006ffff, 2, LNKA, 0}, // Slot 3, INTC Package () {0x0006ffff, 3, LNKB, 0}, // Slot 3, INTD }) Device (PX40) { // Map f0 space, Start PX40 Name (_ADR,0x00070000) // Address+function. } } // PCI0: Root PCI Bus Device (RETP) { Method (RPKG) { // RPKG: Return Package from local variable // store _PRT package into Local0 Store (\_SB_.PCI1._PRT, Local0) // return Local0 Package Return (Local0) } // RPKG Method (TEST) { Store ("++++++++ RetPkg Test", Debug) // store RPKG package return value into Local0 Store (RPKG, Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Package If (LNotEqual (Local1, 4)) // Package type is 4 { Return (1) } // failure Else { Return (0) } // success } // TEST } // RETP } // _SB_ // // test WhileRet.asl // // WhileRet.asl tests a ReturnOp nested in a IfOp nested in a WhileOp. // Device (WHLR) { Name (LCNT, 0) Method (WIR) { // WIR: control method that returns inside of IfOp inside of WhileOp While (LLess (LCNT, 4)) { If (LEqual (LCNT, 2)) { Return (0) } Increment (LCNT) } Return (LCNT) } // WIR: control method that returns inside of IfOp inside of WhileOp Method (TEST) { Store ("++++++++ WhileRet Test", Debug) Store (WIR, Local0) Return (Local0) } // TEST } // WHLR // // test AndOrOp.asl // //This code tests the bitwise AndOp and OrOp Operator terms // //Syntax of Andop term //And - Bitwise And //AndTerm := And( // Source1, //TermArg=>Integer // Source2, //TermArg=>Integer // Result //Nothing | SuperName //) => Integer //Source1 and Source2 are evaluated as integer data types, // a bit-wise AND is performed, and the result is optionally //stored into Result. // // //Syntax of OrOp //Or - Bit-wise Or //OrTerm := Or( // Source1, //TermArg=>Integer // Source2 //TermArg=>Integer // Result //Nothing | SuperName //) => Integer //Source1 and Source2 are evaluated as integer data types, // a bit-wide OR is performed, and the result is optionally //stored in Result // Device (ANDO) { OperationRegion (TMEM, SystemMemory, 0xC4, 0x02) Field (TMEM, ByteAcc, NoLock, Preserve) { , 3, TOUD, 13 } //Create System Memory Operation Region and field overlays OperationRegion (RAM, SystemMemory, 0x400000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { SMDW, 32, // 32-bit DWORD SMWD, 16, // 16-bit WORD SMBY, 8, // 8-bit BYTE }// Field(RAM) //And with Byte Data Name (BYT1, 0xff) Name (BYT2, 0xff) Name (BRSL, 0x00) //And with Word Data Name (WRD1, 0xffff) Name (WRD2, 0xffff) Name (WRSL, 0x0000) //And with DWord Data Name (DWD1, 0xffffffff) Name (DWD2, 0xffffffff) Name (DRSL, 0x00000000) Method (ANDP) { //Check with 1 And 1 on byte data And(BYT1, BYT2, BRSL) if(LNotEqual(BRSL,0xff)) {Return(1)} //Check with 1 And 1 on Word data And(WRD1, WRD2, WRSL) if(LNotEqual(WRSL,0xffff)) { Return (1) // failure } //Check with 1 And 1 Dword And(DWD1, DWD2, DRSL) if(LNotEqual(DRSL,0xffffffff)) { Return (1) // failure } //Check with 0 And 0 on byte data Store(0x00,BYT1) Store(0x00,BYT2) Store(0x00,BRSL) And(BYT1, BYT2, BRSL) if(LNotEqual(BRSL,0x00)) { Return (1) // failure } //Check with 0 And 0 on Word data Store (0x0000,WRD1) Store (0x0000,WRD2) Store (0x0000,WRSL) And(WRD1, WRD2, WRSL) if(LNotEqual(WRSL,0x0000)) { Return (1) // failure } //Check with 0 And 0 Dword Store (0x00000000,DWD1) Store (0x00000000,DWD2) Store (0x00000000,DRSL) And(DWD1, DWD2, DRSL) if(LNotEqual(DRSL,0x00000000)) { Return (1) // failure } //Check with 1 And 0 on byte data Store(0x55,BYT1) Store(0xAA,BYT2) Store(0x00,BRSL) And(BYT1, BYT2, BRSL) if(LNotEqual(BRSL,0x00)) { Return (1) // failure } //Check with 1 And 0 on Word data Store (0x5555,WRD1) Store (0xAAAA,WRD2) Store (0x0000,WRSL) And(WRD1, WRD2, WRSL) if(LNotEqual(WRSL,0x0000)) { Return (1) // failure } //Check with 1 And 0 on Dword Store (0x55555555,DWD1) Store (0xAAAAAAAA,DWD2) Store (0x00000000,DRSL) And(DWD1, DWD2, DRSL) if(LNotEqual(DRSL,0x00000000)) { Return (1) // failure } Store (0x1FFF, TOUD) Store (TOUD, Local0) if(LNotEqual(Local0,0x1FFF)) { Return (1) // failure } //TBD- Do We need to check for system memory data also for each test case ?? Return(0) }//ANDP Method (OROP) { //Check with 1 Ored with 1 on byte data Store(0xff,BYT1) Store(0xff,BYT2) Store(0x00,BRSL) Or(BYT1, BYT2, BRSL) if(LNotEqual(BRSL,0xff)) { Return (1) // failure } //Check with 1 Ored with 1 on Word data Store(0xffff,WRD1) Store(0xffff,WRD2) Store(0x0000,WRSL) Or(WRD1, WRD2, WRSL) if(LNotEqual(WRSL,0xffff)) { Return (1) // failure } //Check with 1 Ored with 1 on Dword data Store(0xffffffff,DWD1) Store(0xffffffff,DWD2) Store(0x00000000,DRSL) Or(DWD1, DWD2, DRSL) if(LNotEqual(DRSL,0xffffffff)) { Return (1) // failure } //Check with 0 Ored with 0 on byte data Store(0x00,BYT1) Store(0x00,BYT2) Store(0x00,BRSL) Or(BYT1, BYT2, BRSL) if(LNotEqual(BRSL,0x00)) { Return (1) // failure } //Check with 0 Ored with 0 on Word data Store (0x0000,WRD1) Store (0x0000,WRD2) Store (0x0000,WRSL) Or(WRD1, WRD2, WRSL) if(LNotEqual(WRSL,0x0000)) { Return (1) // failure } //Check with 0 Ored with 0 Dword data Store (0x00000000,DWD1) Store (0x00000000,DWD2) Store (0x00000000,DRSL) Or(DWD1, DWD2, DRSL) if(LNotEqual(DRSL,0x00000000)) { Return (1) // failure } //Check with 1 Ored with 0 on byte data Store(0x55,BYT1) Store(0xAA,BYT2) Store(0x00,BRSL) Or(BYT1, BYT2, BRSL) if(LNotEqual(BRSL,0xff)) { Return (1) // failure } //Check with 1 Ored with 0 on Word data Store (0x5555,WRD1) Store (0xAAAA,WRD2) Store (0x0000,WRSL) Or(WRD1, WRD2, WRSL) if(LNotEqual(WRSL,0xffff)) { Return (1) // failure } //Check with 1 Ored with 0 on Dword data Store (0x55555555,DWD1) Store (0xAAAAAAAA,DWD2) Store (0x00000000,DRSL) Or(DWD1, DWD2, DRSL) if(LNotEqual(DRSL,0xffffffff)) { Return (1) // failure } //TBD - Do We need to check for system memory data also for each test case ?? Return(0) }//OROP Method(TEST,, Serialized) { Store ("++++++++ AndOrOp Test", Debug) Name(RSLT,1) //Call Andop method Store(ANDP,RSLT) if(LEqual(RSLT,1)) { Return (RSLT) } //Call OrOp Method Store(OROP,RSLT) if(LEqual(RSLT,1)) { Return(RSLT) } // // Return original conditions to allow iterative execution // Store(0xff,BYT1) Store(0xff,BYT2) Store(0x00,BRSL) Store (0xffff,WRD1) Store (0xffff,WRD2) Store (0x0000,WRSL) Store (0xffffffff,DWD1) Store (0xffffffff,DWD2) Store (0x00000000,DRSL) Return(0) } //TEST } //ANDO // // test BreakPnt.asl // // This code tests the BreakPoint opcode term. The syntax of BreakPoint Term is // BreakPointTerm := BreakPoint // Used for debugging, the Breakpoint opcode stops the execution and enters the AML debugger. // In the non-debug version of the interpreter, BreakPoint is equivalent to Noop. // Device (BRKP) { Name(CNT0,0) Method (BK1) { BreakPoint Return(0) } Method (TEST) { Store ("++++++++ BreakPnt Test", Debug) Store(0,CNT0) //Check BreakPoint statement While(LLess(CNT0,10)) { Increment(CNT0) } //Check the BreakPoint statement If(LEqual(CNT0,10)) { // BreakPoint Return(0) } //failed Return(1) } } // // test AddSubOp.asl // Device (ADSU) { // create System Memory Operation Region and field overlays OperationRegion (RAM, SystemMemory, 0x400000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { SMDW, 32, // 32-bit DWORD SMWD, 16, // 16-bit WORD SMBY, 8, // 8-bit BYTE } // Field(RAM) Method (TEST,, Serialized) { Store ("++++++++ AddSubOp Test", Debug) Name (DWRD, 0x12345678) Name (WRD, 0x1234) Name (BYT, 0x12) // Test AddOp with DWORD data Store (0x12345678, DWRD) Add (DWRD, 7, DWRD) If (LNotEqual (DWRD, 0x1234567F)) { Return (DWRD) } // Test AddOp with WORD data Add (WRD, 5, WRD) If (LNotEqual (WRD, 0x1239)) { Return (WRD) } // Test AddOp with BYTE data Add (BYT, 3, BYT) If (LNotEqual (BYT, 0x15)) { Return (BYT) } // Test SubtractOp with DWORD data Subtract (DWRD, 7, DWRD) If (LNotEqual (DWRD, 0x12345678)) { Return (DWRD) } // Test SubtractOp with WORD data Subtract (WRD, 3, WRD) If (LNotEqual (WRD, 0x1236)) { Return (WRD) } // Test SubtractOp with BYTE data Subtract (BYT, 3, BYT) If (LNotEqual (BYT, 0x12)) { Return (BYT) } // test AddOp with DWORD SystemMemory OpRegion Store (0x01234567, SMDW) Add (SMDW, 8, SMDW) If (LNotEqual (SMDW, 0x0123456F)) { Return (SMDW) } // test SubtractOp with DWORD SystemMemory OpRegion Subtract (SMDW, 7, SMDW) If (LNotEqual (SMDW, 0x01234568)) { Return (SMDW) } // test AddOp with WORD SystemMemory OpRegion Store (0x0123, SMWD) Add (SMWD, 6, SMWD) If (LNotEqual (SMWD, 0x0129)) { Return (SMWD) } // test SubtractOp with WORD SystemMemory OpRegion Subtract (SMWD, 5, SMWD) If (LNotEqual (SMWD, 0x0124)) { Return (SMWD) } // test AddOp with BYTE SystemMemory OpRegion Store (0x01, SMBY) Add (SMBY, 4, SMBY) If (LNotEqual (SMBY, 0x05)) { Return (SMBY) } // test SubtractOp with BYTE SystemMemory OpRegion Subtract (SMBY, 3, SMBY) If (LNotEqual (SMBY, 0x02)) { Return (SMBY) } Return (0) } // TEST } // ADSU // // test IncDecOp.asl // Device (INDC) { // create System Memory Operation Region and field overlays OperationRegion (RAM, SystemMemory, 0x400000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { SMDW, 32, // 32-bit DWORD SMWD, 16, // 16-bit WORD SMBY, 8, // 8-bit BYTE } // Field(RAM) Method (TEST,, Serialized) { Store ("++++++++ IncDecOp Test", Debug) Name (DWRD, 0x12345678) Name (WRD, 0x1234) Name (BYT, 0x12) // Test IncrementOp with DWORD data Store (0x12345678, DWRD) Increment (DWRD) If (LNotEqual (DWRD, 0x12345679)) { Return (DWRD) } // Test IncrementOp with WORD data Increment (WRD) If (LNotEqual (WRD, 0x1235)) { Return (WRD) } // Test IncrementOp with BYTE data Increment (BYT) If (LNotEqual (BYT, 0x13)) { Return (BYT) } // Test DecrementOp with DWORD data Decrement (DWRD) If (LNotEqual (DWRD, 0x12345678)) { Return (DWRD) } // Test DecrementOp with WORD data Decrement (WRD) If (LNotEqual (WRD, 0x1234)) { Return (WRD) } // Test DecrementOp with BYTE data Decrement (BYT) If (LNotEqual (BYT, 0x12)) { Return (BYT) } // test IncrementOp with DWORD SystemMemory OpRegion Store (0x01234567, SMDW) Increment (SMDW) If (LNotEqual (SMDW, 0x01234568)) { Return (SMDW) } // test DecrementOp with DWORD SystemMemory OpRegion Decrement (SMDW) If (LNotEqual (SMDW, 0x01234567)) { Return (SMDW) } // test IncrementOp with WORD SystemMemory OpRegion Store (0x0123, SMWD) Increment (SMWD) If (LNotEqual (SMWD, 0x0124)) { Return (SMWD) } // test DecrementOp with WORD SystemMemory OpRegion Decrement (SMWD) If (LNotEqual (SMWD, 0x0123)) { Return (SMWD) } // test IncrementOp with BYTE SystemMemory OpRegion Store (0x01, SMBY) Increment (SMBY) If (LNotEqual (SMBY, 0x02)) { Return (SMBY) } // test DecrementOp with BYTE SystemMemory OpRegion Decrement (SMBY) If (LNotEqual (SMBY, 0x01)) { Return (SMBY) } Return (0) } // TEST } // INDC // // test LOps.asl // //This source tests all the logical operators. Logical operators in ASL are as follows. //LAnd, LEqual, LGreater, LLess, LNot, LNotEqual, LOr. // Success will return 0 and failure will return a non zero number. Check the source code for // non zero number to find where the test failed Device (LOPS) { //Create System Memory Operation Region and field overlays OperationRegion (RAM, SystemMemory, 0x400000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { SMDW, 32, // 32-bit DWORD SMWD, 16, // 16-bit WORD SMBY, 8, // 8-bit BYTE }// Field(RAM) //And with Byte Data Name (BYT1, 0xff) Name (BYT2, 0xff) Name (BRSL, 0x00) //And with Word Data Name (WRD1, 0xffff) Name (WRD2, 0xffff) Name (WRSL, 0x0000) //And with DWord Data Name (DWD1, 0xffffffff) Name (DWD2, 0xffffffff) Name (DRSL, 0x00000000) Name(RSLT,1) Method (ANDL,2) // Test Logical And { //test with the arguments passed if(LEqual(Arg0,Arg1)) { Store(LAnd(Arg0,Arg1),RSLT) if(LNotEqual(Ones,RSLT)) {Return(11)} } //test with he locals Store(Arg0,Local0) Store(Arg1,Local1) if(LEqual(Local0,Local1)) { Store(LAnd(Local0,Local1),RSLT) if(LNotEqual(Ones,RSLT)) {Return(12)} } //test with BYTE data if(LEqual(BYT1,BYT2)) { Store(LAnd(BYT1,BYT2),BRSL) if(LNotEqual(Ones,BRSL)) {Return(13)} } //test with WORD data if(LEqual(WRD1,WRD2)) { Store(LAnd(WRD1,WRD2),WRSL) if(LNotEqual(Ones,WRSL)) {Return(14)} } //test with DWORD data if(LEqual(DWD1,DWD2)) { Store(LAnd(DWD1,DWD2),DRSL) if(LNotEqual(Ones,DRSL)) {Return(15)} } //Test for system memory data for each test case. Store(0xff,BYT1) Store(0xff,SMBY) Store(0x00,BRSL) //test with BYTE system memory data if(LEqual(BYT1,SMBY)) { Store(LAnd(BYT1,SMBY),BRSL) if(LNotEqual(Ones,BRSL)) {Return(16)} } Store (0xffff,WRD1) Store(0xffff,SMWD) Store(0x0000,WRSL) //test with WORD system memory data if(LEqual(WRD1,SMWD)) { Store(LAnd(WRD1,SMWD),WRSL) if(LNotEqual(Ones,WRSL)) {Return(17)} } Store(0x000000,DRSL) Store (0xffffff,DWD1) Store(0xffffff,SMDW) //test with DWORD system memory data if(LEqual(DWD1,SMDW)) { Store(LAnd(DWD1,SMDW),DRSL) if(LNotEqual(Ones,DRSL)) {Return(18)} } Return(0) }//ANDL //Test the LOr Operator Method (ORL_,2) {//ORL_ //test with the arguments passed if(LEqual(Arg0,Arg1)) { Store(LOr(Arg0,Arg1),RSLT) if(LNotEqual(Ones,RSLT)) { Return(21) } } //test with he locals Store(Arg0,Local0) Store(Arg1,Local1) if(LEqual(Local0,Local1)) { Store(LOr(Local0,Local1),RSLT) if(LNotEqual(Ones,RSLT)) {Return(22)} } //Check with 1 LOred with 0 on byte data Store(0xff,BYT1) Store(0x00,BYT2) Store(0x00,BRSL) if(LNotEqual(BYT1, BYT2)) { Store(LOr(BYT1, BYT2), BRSL) if(LNotEqual(Ones,BRSL)) {Return(23)} } //Check with 1 LOred with 0 on WORD data Store(0xffff,WRD1) Store(0x0000,WRD2) Store(0x0000,WRSL) if(LNotEqual(WRD1, WRD2)) { Store(LOr(WRD1, WRD2), WRSL) if(LNotEqual(Ones,WRSL)) {Return(24)} } //Check with 1 LOred with 0 on DWORD data Store(0xffffffff,DWD1) Store(0x00000000,DWD2) Store(0x00000000,DRSL) if(LNotEqual(DWD1, DWD2)) { Store(LOr(DWD1, DWD2), DRSL) if(LNotEqual(Ones,DRSL)) {Return(25)} } Store(0x00,BYT1) Store(0xff,SMBY) Store(0x00,BRSL) //test with BYTE system memory data if(LEqual(BYT1,SMBY)) { Store(LOr(BYT1,SMBY),BRSL) if(LNotEqual(Ones,BRSL)) {Return(26)} } Store (0x0000,WRD1) Store(0xffff,SMWD) Store(0x0000,WRSL) //test with WORD system memory data if(LEqual(WRD1,SMWD)) { Store(LOr(WRD1,SMWD),WRSL) if(LNotEqual(Ones,WRSL)) {Return(27)} } Store(0x00000000,DWD1) Store(0xffffffff,SMDW) Store(0x00000000,DRSL) //test with DWORD system memory data if(LEqual(DWD1,SMDW)) { Store(LAnd(DWD1,SMDW),DRSL) if(LNotEqual(Ones,DRSL)) {Return(28)} } Return(0) }//ORL_ //This method tests LGreater and LNot operator Method(LSGR,2) {//LSGR //Test on arguments passed //in test data, Arg1 > Arg0 if(LEqual(Ones,LNot(LGreater(Arg1,Arg0)))) {Return(31)} //test LLessEqual if(LEqual(Ones,LNot(LGreaterEqual(Arg1,Arg0)))) {Return(32)} if(LEqual(Ones,LLess(Arg1,Arg0))) {Return(33)} //test LLessEqual if(LEqual(Ones,LLessEqual(Arg1,Arg0))) {Return(34)} Store(Arg0,Local0) Store(Arg1,Local1) //test with the locals if(LNot(LGreater(Local1,Local0))) {Return(35)} //test on Byte data Store(0x12,BYT1) Store(0x21,BYT2) if(LNot(LGreater(BYT2,BYT1))) {Return(36)} if(LNot(LLess(BYT1,BYT2))) {Return(37)} //test LGreaterEqual with byte data if(LNot(LGreaterEqual(BYT2,BYT1))) {Return(38)} //test LLessEqual byte data if(LNot(LLessEqual(BYT1,BYT2))) {Return(39)} //test on Word data Store(0x1212,WRD1) Store(0x2121,WRD2) if(LNot(LGreater(WRD2,WRD1))) {Return(310)} if(LNot(LLess(WRD1,WRD2))) {Return(311)} //Test LGreaterEqual with Word Data if(LNot(LGreaterEqual(WRD2,WRD1))) {Return(312)} //Test LLessEqual with Word Data if(LNot(LLessEqual(WRD1,WRD2))) {Return(313)} //test on DWord data Store(0x12121212,DWD1) Store(0x21212121,DWD2) if(LNot(LGreater(DWD2,DWD1))) {Return(314)} if(LNot(LLess(DWD1,DWD2))) {Return(315)} //Test LGreaterEqual with Dword if(LNot(LGreaterEqual(DWD2,DWD1))) {Return(316)} //Test LLessEqual DWord if(LNot(LLessEqual(DWD1,DWD2))) {Return(317)} Return(0) }//LSGR //The test method Method(TEST) { Store ("++++++++ LOps Test", Debug) Store(0,RSLT) //Call LAndOp method Store(ANDL(2,2),RSLT) if(LNotEqual(RSLT,0)) {Return(RSLT)} //Call LOrOp Method Store(ORL_(5,5),RSLT) if(LNotEqual(RSLT,0)) {Return(RSLT)} //Call LSGR Method Store(LSGR(5,7),RSLT) if(LNotEqual(RSLT,0)) {Return(RSLT)} Return(0) }//TEST }//LOPS // // test FdSetOps.asl // // FindSetLeftBit - Find Set Left Bit // FindSetLeftBitTerm := FindSetLeftBit // ( Source, //TermArg=>Integer // Result //Nothing | SuperName // ) => Integer // Source is evaluated as integer data type, and the one-based bit location of // the first MSb (most significant set bit) is optionally stored into Result. // The result of 0 means no bit was set, 1 means the left-most bit set is the // first bit, 2 means the left-most bit set is the second bit, and so on. // FindSetRightBit - Find Set Right Bit // FindSetRightBitTerm := FindSetRightBit // ( Source, //TermArg=>Integer // Result //Nothing | SuperName // ) => Integer // Source is evaluated as integer data type, and the one-based bit location of // the most LSb (least significant set bit) is optionally stored in Result. // The result of 0 means no bit was set, 32 means the first bit set is the // 32nd bit, 31 means the first bit set is the 31st bit, and so on. // If the Control method is success Zero is returned. Otherwise a non-zero // number is returned. // Device (FDSO) { // FDSO // Create System Memory Operation Region and field overlays OperationRegion (RAM, SystemMemory, 0x400000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { SMDW, 32, // 32-bit DWORD SMWD, 16, // 16-bit WORD SMBY, 8, // 8-bit BYTE } // Field(RAM) // Byte Data Name (BYT1, 1) Name (BRSL, 0x00) // Word Data Name (WRD1, 0x100) Name (WRSL, 0x0000) // DWord Data Name (DWD1, 0x10000) Name (DRSL, 0x00000000) Name (RSLT, 1) Name (CNTR, 1) Method (SHFT,2) // Arg0 is the actual data and Arg1 is the bit position { // SHFT Store (Arg0, Local0) Store (Arg1, Local1) FindSetLeftBit (Arg0, BRSL) If (LNotEqual (BRSL, Arg1)) { Return (0x11) } If (LNotEqual (Arg0, Local0)) { Return (0x12) } FindSetLeftBit (Local0, BRSL) If (LNotEqual (BRSL, Local1)) { Return (0x13) } If (LNotEqual (Arg0, Local0)) { Return (0x14) } // test the byte value for SetLeftBit Store (7, BYT1) FindSetLeftBit (BYT1, BRSL) If (LNotEqual (BRSL, 3)) { Return (0x15) } If (LNotEqual (BYT1, 7)) { Return (0x16) } Store (1, BYT1) Store (1, CNTR) While (LLessEqual (CNTR, 8)) { // FindSetLeftBit check loop for byte data FindSetLeftBit (BYT1, BRSL) If (LNotEqual (BRSL, CNTR)) { Return (0x17) } // Shift the bits to check the same ShiftLeft (BYT1, 1, BYT1) Increment (CNTR) } // FindSetLeftBit check loop for byte data // Check BYTE value for SetRightBit Store (7, BYT1) FindSetRightBit (BYT1, BRSL) If (LNotEqual (BRSL, 1)) { Return (0x21) } If (LNotEqual (BYT1, 7)) { Return (0x22) } Store (1, CNTR) Store (0xFF, BYT1) While (LLessEqual (CNTR, 8)) { // FindSetRightBit check loop for byte data FindSetRightBit (BYT1, BRSL) If (LNotEqual (BRSL, CNTR)) { Return (0x23) } ShiftLeft (BYT1, 1, BYT1) Increment (CNTR) } // FindSetRightBit check loop for byte data // Test Word value for SetLeftBit Store (9, CNTR) Store (0x100, WRD1) While (LLessEqual (CNTR, 16)) { // FindSetLeftBit check loop for Word data FindSetLeftBit (WRD1, WRSL) If (LNotEqual (WRSL, CNTR)) { Return (0x31) } // Shift the bits to check the same ShiftLeft (WRD1, 1, WRD1) Increment (CNTR) } // FindSetLeftBit check loop for Word data // Check Word value for SetRightBit Store (9, CNTR) Store (0xFF00, WRD1) While (LLessEqual (CNTR, 16)) { // FindSetRightBit check loop for Word data FindSetRightBit (WRD1, WRSL) If (LNotEqual (WRSL, CNTR)) { Return (0x32) } ShiftLeft (WRD1, 1, WRD1) Increment (CNTR) } // FindSetRightBit check loop for Word data // Test the DWord value for SetLeftBit Store (17, CNTR) Store (0x10000, DWD1) While (LLessEqual (CNTR, 32)) { // FindSetLeftBit check loop for Dword FindSetLeftBit (DWD1, DRSL) If (LNotEqual (DRSL, CNTR)) { Return (0x41) } // Shift the bits to check the same ShiftLeft (DWD1, 1, DWD1) Increment (CNTR) } // FindSetLeftBit check loop for Dword // Check DWord value for SetRightBit Store (17, CNTR) Store (0xFFFF0000, DWD1) While (LLessEqual (CNTR, 32)) { // FindSetRightBit Check loop for DWORD FindSetRightBit (DWD1, DRSL) If (LNotEqual (DRSL, CNTR)) { Return (0x42) } ShiftLeft (DWD1, 1, DWD1) Increment (CNTR) } // FindSetRightBit Check loop for DWORD Return (0) } // SHFT // Test method called from amlexec Method (TEST) { // TEST Store ("++++++++ FdSetOps Test", Debug) Store (SHFT (0x80, 8), RSLT) If (LNotEqual (RSLT, 0)) { Return (RSLT) } Return (0) // pass } // TEST } // Device FDSO // // test MulDivOp.asl // Device (MLDV) { // create System Memory Operation Region and field overlays OperationRegion (RAM, SystemMemory, 0x400000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { SMDW, 32, // 32-bit DWORD SMWD, 16, // 16-bit WORD SMBY, 8, // 8-bit BYTE } // Field(RAM) Method (TEST,, Serialized) { Store ("++++++++ MulDivOp Test", Debug) Name (RMDR, 0) Name (DWRD, 0x12345678) Name (WRD, 0x1234) Name (BYT, 0x12) // Test MultiplyOp with DWORD data Store (0x12345678, DWRD) Multiply (DWRD, 3, DWRD) If (LNotEqual (DWRD, 0x369D0368)) { Return (DWRD) } // Test MultiplyOp with WORD data Multiply (WRD, 4, WRD) If (LNotEqual (WRD, 0x48D0)) { Return (WRD) } // Test MultiplyOp with BYTE data Multiply (BYT, 5, BYT) If (LNotEqual (BYT, 0x5A)) { Return (BYT) } // Test DivideOp with DWORD data Divide (DWRD, 3, DWRD, RMDR) If (LNotEqual (DWRD, 0x12345678)) { Return (DWRD) } If (LNotEqual (RMDR, 0)) { Return (RMDR) } // Test DivideOp with WORD data Divide (WRD, 4, WRD, RMDR) If (LNotEqual (WRD, 0x1234)) { Return (WRD) } If (LNotEqual (RMDR, 0)) { Return (RMDR) } // Test DivideOp with BYTE data Divide (BYT, 5, BYT, RMDR) If (LNotEqual (BYT, 0x12)) { Return (BYT) } If (LNotEqual (RMDR, 0)) { Return (RMDR) } // test MultiplyOp with DWORD SystemMemory OpRegion Store (0x01234567, SMDW) Multiply (SMDW, 2, SMDW) If (LNotEqual (SMDW, 0x02468ACE)) { Return (SMDW) } // test DivideOp with DWORD SystemMemory OpRegion Divide (SMDW, 3, SMDW, RMDR) If (LNotEqual (SMDW, 0x00C22E44)) { Return (SMDW) } If (LNotEqual (RMDR, 2)) { Return (RMDR) } // test MultiplyOp with WORD SystemMemory OpRegion Store (0x0123, SMWD) Multiply (SMWD, 3, SMWD) If (LNotEqual (SMWD, 0x369)) { Return (SMWD) } // test DivideOp with WORD SystemMemory OpRegion Divide (SMWD, 2, SMWD, RMDR) If (LNotEqual (SMWD, 0x01B4)) { Return (SMWD) } If (LNotEqual (RMDR, 1)) { Return (RMDR) } // test MultiplyOp with BYTE SystemMemory OpRegion Store (0x01, SMBY) Multiply (SMBY, 7, SMBY) If (LNotEqual (SMBY, 0x07)) { Return (SMBY) } // test DivideOp with BYTE SystemMemory OpRegion Divide (SMBY, 4, SMBY, RMDR) If (LNotEqual (SMBY, 0x01)) { Return (SMBY) } If (LNotEqual (RMDR, 3)) { Return (RMDR) } Return (0) } // TEST } // MLDV // // test NBitOps.asl // //NAnd - Bit-wise NAnd //NAndTerm := NAnd( // Source1, //TermArg=>Integer // Source2 //TermArg=>Integer // Result //Nothing | SuperName //) => Integer //Source1 and Source2 are evaluated as integer data types, a bit-wise NAND is performed, and the result is optionally //stored in Result. //NOr - Bitwise NOr //NOrTerm := NOr( // Source1, //TermArg=>Integer // Source2 //TermArg=>Integer // Result //Nothing | SuperName //) => Integer //Source1 and Source2 are evaluated as integer data types, a bit-wise NOR is performed, and the result is optionally //stored in Result. // Not - Not //NotTerm := Not( // Source, //TermArg=>Integer // Result //Nothing | SuperName //) => Integer //Source1 is evaluated as an integer data type, a bit-wise NOT is performed, and the result is optionally stored in //Result. //If the Control method is success Zero is returned else a non-zero number is returned Device (NBIT) {//NBIT //Create System Memory Operation Region and field overlays OperationRegion (RAM, SystemMemory, 0x400000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { SMDW, 32, // 32-bit DWORD SMWD, 16, // 16-bit WORD SMBY, 8, // 8-bit BYTE }// Field(RAM) //And with Byte Data Name (BYT1, 0xff) Name (BYT2, 0xff) Name (BRSL, 0x00) //And with Word Data Name (WRD1, 0xffff) Name (WRD2, 0xffff) Name (WRSL, 0x0000) //And with DWord Data Name (DWD1, 0xffffffff) Name (DWD2, 0xffffffff) Name (DRSL, 0x00000000) Name(RSLT,1) Name(ARSL,0x00) Name(LRSL,0x00) Method(NNDB,2) {//NNDB Store(0xffffffff,SMDW) Store(0xffff,SMWD) Store(0xff,SMBY) NAnd(Arg0,Arg1,ARSL) if(LNotEqual(ARSL,0xfffffffd)) {Return(11)} Store(Arg0,local0) Store(Arg1,Local1) NAnd(Local0,Local1,LRSL) if(LNotEqual(LRSL,0xfffffffd)) {Return(12)} //Byte data NAnd(BYT1,BYT2,BRSL) if(LNotEqual(BRSL,0xffffff00)) {Return(13)} //Word Data NAnd(WRD1,WRD2,WRSL) if(LNotEqual(WRSL,0xffff0000)) {Return(14)} //DWord Data NAnd(DWD1,DWD2,DRSL) if(LNotEqual(DRSL,0x00000000)) {Return(15)} //Byte data NAnd(SMBY,0xff,BRSL) if(LNotEqual(BRSL,0xffffff00)) {Return(16)} //Word Data NAnd(SMWD,0xffff,WRSL) if(LNotEqual(WRSL,0xffff0000)) {Return(17)} //DWord Data NAnd(SMDW,0xffffffff,DRSL) if(LNotEqual(DRSL,0x00000000)) {Return(18)} Return(0) }//NNDB Method(NNOR,2) {//NNOR NOr(Arg0,Arg1,ARSL) if(LNotEqual(ARSL,0xfffffffd)) {Return(21)} Store(Arg0,local0) Store(Arg1,Local1) NOr(Local0,Local1,LRSL) if(LNotEqual(LRSL,0xfffffffd)) {Return(22)} //Byte data NOr(BYT1,BYT2,BRSL) if(LNotEqual(BRSL,0xffffff00)) {Return(23)} //Word Data NOr(WRD1,WRD2,WRSL) if(LNotEqual(WRSL,0xffff0000)) {Return(24)} //DWord Data NOr(DWD1,DWD2,DRSL) if(LNotEqual(DRSL,0x00000000)) {Return(25)} //System Memory Byte data NOr(SMBY,0xff,BRSL) if(LNotEqual(BRSL,0xffffff00)) {Return(26)} //System Memory Word Data NOr(SMWD,0xffff,WRSL) if(LNotEqual(WRSL,0xffff0000)) {Return(27)} //System Memory DWord Data NOr(SMDW,0xffffffff,DRSL) if(LNotEqual(DRSL,0x00000000)) {Return(28)} Return(0) }//NNOR Method(NNOT,2) {//NNOT Or(Arg0,Arg1,ARSL) Not(ARSL,ARSL) if(LNotEqual(ARSL,0xfffffffd)) {Return(31)} Store(Arg0,local0) Store(Arg1,Local1) Or(Local0,Local1,LRSL) Not(LRSL,LRSL) if(LNotEqual(LRSL,0xfffffffd)) {Return(32)} //Byte data Or(BYT1,BYT2,BRSL) Not(BRSL,BRSL) if(LNotEqual(BRSL,0xffffff00)) {Return(33)} //Word Data Or(WRD1,WRD2,WRSL) Not(WRSL,WRSL) if(LNotEqual(WRSL,0xffff0000)) {Return(34)} //DWord Data Or(DWD1,DWD2,DRSL) Not(DRSL,DRSL) if(LNotEqual(DRSL,0x00000000)) {Return(35)} //System Memory Byte data Or(SMBY,0xff,BRSL) Not(BRSL,BRSL) if(LNotEqual(BRSL,0xffffff00)) {Return(36)} //System Memory Word Data Or(SMWD,0xffff,WRSL) Not(WRSL,WRSL) if(LNotEqual(WRSL,0xffff0000)) {Return(37)} //System Memory DWord Data Or(SMDW,0xffffffff,DRSL) Not(DRSL,DRSL) if(LNotEqual(DRSL,0x00000000)) {Return(38)} Return(0) }//NNOT Method(TEST) { Store ("++++++++ NBitOps Test", Debug) Store(NNDB(2,2),RSLT) if(LNotEqual(RSLT,0)) {Return(RSLT)} Store(NNOR(2,2),RSLT) if(LNotEqual(RSLT,0)) {Return(RSLT)} Store(NNOT(2,2),RSLT) if(LNotEqual(RSLT,0)) {Return(RSLT)} Return(0) } }//Device NBIT // // test ShftOp.asl // //ShiftRightTerm := ShiftRight( // Source, //TermArg=>Integer // ShiftCount //TermArg=>Integer // Result //Nothing | SuperName //) => Integer //Source and ShiftCount are evaluated as integer data types. Source is shifted right with the most significant bit //zeroed ShiftCount times. The result is optionally stored into Result. //ShiftLeft( // Source, //TermArg=>Integer // ShiftCount //TermArg=>Integer // Result //Nothing | SuperName //) => Integer //Source and ShiftCount are evaluated as integer data types. Source is shifted left with the least significant //bit zeroed ShiftCount times. The result is optionally stored into Result. //If the Control method is success Zero is returned else a non-zero number is returned Device (SHFT) {//SHFT //Create System Memory Operation Region and field overlays OperationRegion (RAM, SystemMemory, 0x400000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { SMDW, 32, // 32-bit DWORD SMWD, 16, // 16-bit WORD SMBY, 8, // 8-bit BYTE }// Field(RAM) Name(SHFC,0x00) //And with Byte Data Name (BYT1, 0xff) Name (BRSL, 0x00) //And with Word Data Name (WRD1, 0xffff) Name (WRSL, 0x0000) //And with DWord Data Name (DWD1, 0xffffffff) Name (DRSL, 0x00000000) Name(RSLT,1) Name(ARSL,0x00) Name(LRSL,0x00) Method(SLFT,2) {//SLFT Store(0xffffffff,SMDW) Store(0xffff,SMWD) Store(0xff,SMBY) //Arg0-> 2 & Arg1->2 ShiftLeft(Arg0,Arg1,ARSL) if(LNotEqual(ARSL,8)) {Return(11)} Store(Arg0,local0) Store(Arg1,Local1) //Local0->8 and Local1->2 ShiftLeft(Local0,Local1,LRSL) if(LNotEqual(LRSL,8)) {Return(12)} Store(2,SHFC) //Byte data ShiftLeft(BYT1,SHFC,BRSL) if(LNotEqual(BRSL,0x3FC)) {Return(13)} Store(4,SHFC) //Word Data ShiftLeft(WRD1,SHFC,WRSL) if(LNotEqual(WRSL,0xFFFF0)) {Return(14)} Store(8,SHFC) //DWord Data ShiftLeft(DWD1,SHFC,DRSL) if(LNotEqual(DRSL,0xFFFFFF00)) {Return(15)} //System Memory Byte data Store(4,SHFC) ShiftLeft(SMBY,SHFC,BRSL) if(LNotEqual(BRSL,0xFF0)) {Return(16)} //Word Data Store(4,SHFC) ShiftLeft(SMWD,SHFC,WRSL) if(LNotEqual(WRSL,0xffff0)) {Return(17)} //DWord Data Store(8,SHFC) ShiftLeft(SMDW,SHFC,DRSL) if(LNotEqual(DRSL,0xFFFFFF00)) {Return(18)} Return(0) }//SLFT Method(SRGT,2) {//SRGT //And with Byte Data Store (0xff,BYT1) Store (0x00,BRSL) //And with Word Data Store (0xffff,WRD1) Store (0x0000,WRSL) //And with DWord Data Store(0xffffffff,DWD1) Store (0x00000000,DRSL) //Reinitialize the result objects Store(0x00,ARSL) Store(0x00,LRSL) Store(0xffffffff,SMDW) Store(0xffff,SMWD) Store(0xff,SMBY) //Arg0-> 2 & Arg1->2 ShiftRight(Arg0,Arg1,ARSL) if(LNotEqual(ARSL,0)) {Return(21)} Store(Arg0,local0) Store(Arg1,Local1) //Local0->8 and Local1->2 ShiftRight(Local0,Local1,LRSL) if(LNotEqual(LRSL,0)) {Return(22)} Store(2,SHFC) //Byte data ShiftRight(BYT1,SHFC,BRSL) if(LNotEqual(BRSL,0x3F)) {Return(23)} Store(4,SHFC) //Word Data ShiftRight(WRD1,SHFC,WRSL) if(LNotEqual(WRSL,0xFFF)) {Return(24)} Store(8,SHFC) //DWord Data ShiftRight(DWD1,SHFC,DRSL) if(LNotEqual(DRSL,0xFFFFFF)) {Return(25)} //System Memory Byte data Store(4,SHFC) ShiftRight(SMBY,SHFC,BRSL) if(LNotEqual(BRSL,0xF)) {Return(26)} //Word Data Store(4,SHFC) ShiftRight(SMWD,SHFC,WRSL) if(LNotEqual(WRSL,0xFFF)) {Return(27)} //DWord Data Store(8,SHFC) ShiftRight(SMDW,SHFC,DRSL) if(LNotEqual(DRSL,0xFFFFFF)) {Return(28)} Return(0) }//SRGT //Test method called from amlexec Method(TEST) { Store ("++++++++ ShftOp Test", Debug) Store(SLFT(2,2),RSLT) if(LNotEqual(RSLT,0)) {Return(RSLT)} Store(SRGT(2,2),RSLT) if(LNotEqual(RSLT,0)) {Return(RSLT)} Return(0) } }//Device SHFT // // test Xor.asl and slightly modified // //This code tests the XOR opcode term //Syntax of XOR term // XOr( // Source1 //TermArg=>BufferTerm // Source2 //TermArg=>Integer // Result //NameString // ) //"Source1" and "Source2" are evaluated as integers, a bit-wise XOR is performed, and the result is optionally stored in // Result Device (XORD) { //This Method tests XOr operator for all the data types i.e. BYTE, WORD and DWORD Method (TEST,, Serialized) { Store ("++++++++ Xor Test", Debug) //Overlay in system memory OperationRegion (RAM, SystemMemory, 0x800000, 256) Field (RAM, ByteAcc, NoLock, Preserve) { RES1, 1, //Offset BYT1, 8, //First BYTE BYT2, 8, //Second BYTE RBYT, 8, //Result Byte RES2, 1, //Offset WRD1, 16, //First WORD field WRD2, 16, //Second WORD field RWRD, 16, //RSLT WORD field RES3, 1, //Offset DWD1, 32, //First Dword DWD2, 32, //Second Dword RDWD, 32, //Result Dword RES4, 1, //Offset } // Store bits in the single bit fields for checking // at the end Store(1, RES1) Store(1, RES2) Store(1, RES3) Store(1, RES4) // Check the stored single bits if(LNotEqual(RES1, 1)) { Return(1) } if(LNotEqual(RES2, 1)) { Return(1) } if(LNotEqual(RES3, 1)) { Return(1) } if(LNotEqual(RES4, 1)) { Return(1) } //************************************************ // (BYT1) Bit1 ->0 and (BYT2)Bit2 -> 0 condition Store(0x00,BYT1) Store(0x00,BYT2) XOr(BYT1,BYT2,Local0) Store (Local0, RBYT) if(LNotEqual(RBYT,0)) { Return(1)} // (BYT1) Bit1 ->1 and (BYT2)Bit2 -> 1 condition Store(0xff,BYT1) Store(0xff,BYT2) XOr(BYT1,BYT2,Local0) Store (Local0, RBYT) if(LNotEqual(RBYT,0)) { Return(1)} // (BYT1) Bit1 ->1 and (BYT)Bit2 -> 0 condition Store(0x55,BYT1) Store(0xAA,BYT2) XOr(BYT1,BYT2,Local0) Store (Local0, RBYT) if(LNotEqual(RBYT,0xFF)) { Return(1)} //(BYT1) Bit1 ->0 and (BYT2)Bit2 -> 1 condition Store(0xAA,BYT1) Store(0x55,BYT2) XOr(BYT1,BYT2,Local0) Store (Local0, RBYT) if(LNotEqual(RBYT,0xFF)) { Return(1)} Store(0x12,BYT1) Store(0xED,BYT2) XOr(BYT1,BYT2,Local0) Store (Local0, RBYT) if(LNotEqual(RBYT,0xFF)) { Return(1) } // Store known values for checking later Store(0x12, BYT1) if(LNotEqual(BYT1, 0x12)) { Return(1) } Store(0xFE, BYT2) if(LNotEqual(BYT2, 0xFE)) { Return(1) } Store(0xAB, RBYT) if(LNotEqual(RBYT, 0xAB)) { Return(1) } //*********************************************** // (WRD1) Bit1 ->0 and (WRD2)Bit2 -> 0 condition Store(0x0000,WRD1) Store(0x0000,WRD2) XOr(WRD1,WRD2,RWRD) if(LNotEqual(RWRD,0)) { Return(1)} // (WRD1) Bit1 ->1 and (WRD2)Bit2 -> 1 condition Store(0xffff,WRD1) Store(0xffff,WRD2) XOr(WRD1,WRD2,RWRD) if(LNotEqual(RWRD,0)) { Return(1)} // (WRD1) Bit1 ->1 and (WRD2)Bit2 -> 0 condition Store(0x5555,WRD1) Store(0xAAAA,WRD2) XOr(WRD1,WRD2,RWRD) if(LNotEqual(RWRD,0xFFFF)) { Return(1)} //(WRD1) Bit1 ->0 and (WRD2)Bit2 -> 1 condition Store(0xAAAA,WRD1) Store(0x5555,WRD2) XOr(WRD1,WRD2,RWRD) if(LNotEqual(RWRD,0xFFFF)) { Return(1)} Store(0x1234,WRD1) Store(0xEDCB,WRD2) XOr(WRD1,WRD2,RWRD) if(LNotEqual(RWRD,0xFFFF)) { Return(1)} // Store known values for checking later Store(0x1234, WRD1) if(LNotEqual(WRD1, 0x1234)) { Return(1) } Store(0xFEDC, WRD2) if(LNotEqual(WRD2, 0xFEDC)) { Return(1) } Store(0x87AB, RWRD) if(LNotEqual(RWRD, 0x87AB)) { Return(1) } //************************************************** // (DWD1) Bit1 ->0 and (DWD2)Bit2 -> 0 condition Store(0x00000000,DWD1) Store(0x00000000,DWD2) XOr(DWD1,DWD2,RDWD) if(LNotEqual(RDWD,0)) { Return(1)} // (DWD1) Bit1 ->1 and (DWD2)Bit2 -> 1 condition Store(0xffffffff,DWD1) Store(0xffffffff,DWD2) XOr(DWD1,DWD2,RDWD) if(LNotEqual(RDWD,0)) { Return(1)} // (DWD1) Bit1 ->1 and (DWD2)Bit2 -> 0 condition Store(0x55555555,DWD1) Store(0xAAAAAAAA,DWD2) XOr(DWD1,DWD2,RDWD) if(LNotEqual(RDWD,0xFFFFFFFF)) { Return(1)} //(DWD1) Bit1 ->0 and (DWD2)Bit2 -> 1 condition Store(0xAAAAAAAA,DWD1) Store(0x55555555,DWD2) XOr(DWD1,DWD2,RDWD) if(LNotEqual(RDWD,0xFFFFFFFF)) { Return(1)} // (DWD1) Bit1 ->1 and (DWD2)Bit2 -> 0 condition Store(0x12345678,DWD1) Store(0xEDCBA987,DWD2) XOr(DWD1,DWD2,RDWD) if(LNotEqual(RDWD,0xFFFFFFFF)) { Return(1)} Store(0x12345678,DWD1) if(LNotEqual(DWD1,0x12345678)) { Return(1) } Store(0xFEDCBA98,DWD2) if(LNotEqual(DWD2,0xFEDCBA98)) { Return(1) } Store(0x91827364,RDWD) if(LNotEqual(RDWD,0x91827364)) { Return(1) } //**************************************************** // Check the stored single bits if(LNotEqual(RES1, 1)) { Return(1) } if(LNotEqual(RES2, 1)) { Return(1) } if(LNotEqual(RES3, 1)) { Return(1) } if(LNotEqual(RES4, 1)) { Return(1) } // Change all of the single bit fields to zero Store(0, RES1) Store(0, RES2) Store(0, RES3) Store(0, RES4) // Now, check all of the fields // Byte if(LNotEqual(BYT1, 0x12)) { Return(1) } if(LNotEqual(BYT2, 0xFE)) { Return(1) } if(LNotEqual(RBYT, 0xAB)) { Return(1) } // Word if(LNotEqual(WRD1, 0x1234)) { Return(1) } if(LNotEqual(WRD2, 0xFEDC)) { Return(1) } if(LNotEqual(RWRD, 0x87AB)) { Return(1) } // Dword if(LNotEqual(DWD1, 0x12345678)) { Return(1) } if(LNotEqual(DWD2, 0xFEDCBA98)) { Return(1) } if(LNotEqual(RDWD, 0x91827364)) { Return(1) } // Bits if(LNotEqual(RES1, 0)) { Return(1) } if(LNotEqual(RES2, 0)) { Return(1) } if(LNotEqual(RES3, 0)) { Return(1) } if(LNotEqual(RES4, 0)) { Return(1) } Return(0) } // TEST } // XORD // // test CrBytFld.asl // // CrBytFld test // Test for CreateByteField. // Tests creating byte field overlay of buffer stored in Local0. // Tests need to be added for Arg0 and Name buffers. // Device (CRBF) { // Test device name Method (TEST) { Store ("++++++++ CrBytFld Test", Debug) // Local0 is uninitialized buffer with 4 elements Store (Buffer (4) {}, Local0) // create Byte Field named BF0 based on Local0 element 0 CreateByteField (Local0, 0, BF0) // validate CreateByteField did not alter Local0 Store (ObjectType (Local0), Local1) // Local1 = Local0 object type If (LNotEqual (Local1, 3)) // Buffer object type value is 3 { Return (2) } // store something into BF0 Store (1, BF0) // validate Store did not alter Local0 object type Store (ObjectType (Local0), Local1) // Local1 = Local0 object type If (LNotEqual (Local1, 3)) // Buffer object type value is 3 { Return (3) } // verify that the Store into BF0 was successful If (LNotEqual (BF0, 1)) { Return (4) } // create Byte Field named BF1 based on Local0 element 1 CreateByteField (Local0, 1, BF1) // validate CreateByteField did not alter Local0 Store (ObjectType (Local0), Local1) // Local1 = Local0 object type If (LNotEqual (Local1, 3)) // Buffer object type value is 3 { Return (10) } // store something into BF1 Store (5, BF1) // validate Store did not alter Local0 object type Store (ObjectType (Local0), Local1) // Local1 = Local0 object type If (LNotEqual (Local1, 3)) // Buffer object type value is 3 { Return (11) } // verify that the Store into BF1 was successful If (LNotEqual (BF1, 5)) { Return (12) } // verify that the Store into BF1 did not alter BF0 If (LNotEqual (BF0, 1)) { Return (13) } // store something into BF0 Store (0xFFFF, BF0) // verify that the Store into BF0 was successful If (LNotEqual (BF0, 0xFF)) { Return (20) } // verify that the Store into BF0 did not alter BF1 If (LNotEqual (BF1, 5)) { Return (21) } Return (0) } // TEST } // CRBF // // test IndexOp4.asl // // IndexOp4 test // This is just a subset of the many RegionOp/Index Field test cases. // Tests access of index fields smaller than 8 bits. // Device (IDX4) { // Test device name // MADM: Misaligned Dynamic RAM SystemMemory OperationRegion // Tests OperationRegion memory access using misaligned BYTE, // WORD, and DWORD field element accesses. Validation is performed // using both misaligned field entries and aligned field entries. // // MADM returns 0 if all test cases pass or non-zero identifying // the failing test case for debug purposes. This non-zero numbers // are not guaranteed to be in perfect sequence (i.e., test case // index), but are guaranteed to be unique so the failing test // case can be uniquely identified. // Method (MADM, 1, Serialized) // Misaligned Dynamic RAM SystemMemory OperationRegion // Arg0 -- SystemMemory OperationRegion base address { // MADM: Misaligned Dynamic RAM SystemMemory OperationRegion OperationRegion (RAM, SystemMemory, Arg0, 0x100) Field (RAM, DwordAcc, NoLock, Preserve) { // aligned field definition (for verification) DWD0, 32, // aligned DWORD field DWD1, 32 // aligned DWORD field } Field (RAM, ByteAcc, NoLock, Preserve) { // bit access field definition BIT0, 1, // single bit field entry BIT1, 1, // single bit field entry BIT2, 1, // single bit field entry BIT3, 1, // single bit field entry BIT4, 1, // single bit field entry BIT5, 1, // single bit field entry BIT6, 1, // single bit field entry BIT7, 1, // single bit field entry BIT8, 1, // single bit field entry BIT9, 1, // single bit field entry BITA, 1, // single bit field entry BITB, 1, // single bit field entry BITC, 1, // single bit field entry BITD, 1, // single bit field entry BITE, 1, // single bit field entry BITF, 1, // single bit field entry BI10, 1, // single bit field entry BI11, 1, // single bit field entry BI12, 1, // single bit field entry BI13, 1, // single bit field entry BI14, 1, // single bit field entry BI15, 1, // single bit field entry BI16, 1, // single bit field entry BI17, 1, // single bit field entry BI18, 1, // single bit field entry BI19, 1, // single bit field entry BI1A, 1, // single bit field entry BI1B, 1, // single bit field entry BI1C, 1, // single bit field entry BI1D, 1, // single bit field entry BI1E, 1, // single bit field entry BI1F, 1 // single bit field entry } // bit access field definition Field (RAM, ByteAcc, NoLock, Preserve) { // two-bit access field definition B2_0, 2, // single bit field entry B2_1, 2, // single bit field entry B2_2, 2, // single bit field entry B2_3, 2, // single bit field entry B2_4, 2, // single bit field entry B2_5, 2, // single bit field entry B2_6, 2, // single bit field entry B2_7, 2, // single bit field entry B2_8, 2, // single bit field entry B2_9, 2, // single bit field entry B2_A, 2, // single bit field entry B2_B, 2, // single bit field entry B2_C, 2, // single bit field entry B2_D, 2, // single bit field entry B2_E, 2, // single bit field entry B2_F, 2 // single bit field entry } // bit access field definition // initialize memory contents using aligned field entries Store (0x5AA55AA5, DWD0) Store (0x5AA55AA5, DWD1) // set memory contents to known values using misaligned field entries Store (0, BIT0) // verify memory contents using misaligned field entries If (LNotEqual (BIT0, 0)) { Return (1) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55AA4)) { Return (2) } // set memory contents to known values using misaligned field entries Store (1, BIT1) // verify memory contents using misaligned field entries If (LNotEqual (BIT1, 1)) { Return (3) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55AA6)) { Return (4) } // set memory contents to known values using misaligned field entries Store (0, BIT2) // verify memory contents using misaligned field entries If (LNotEqual (BIT2, 0)) { Return (5) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55AA2)) { Return (6) } // set memory contents to known values using misaligned field entries Store (1, BIT3) // verify memory contents using misaligned field entries If (LNotEqual (BIT3, 1)) { Return (7) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55AAA)) { Return (8) } // set memory contents to known values using misaligned field entries Store (1, BIT4) // verify memory contents using misaligned field entries If (LNotEqual (BIT4, 1)) { Return (9) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55ABA)) { Return (10) } // set memory contents to known values using misaligned field entries Store (0, BIT5) // verify memory contents using misaligned field entries If (LNotEqual (BIT5, 0)) { Return (11) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55A9A)) { Return (12) } // set memory contents to known values using misaligned field entries Store (1, BIT6) // verify memory contents using misaligned field entries If (LNotEqual (BIT6, 1)) { Return (13) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55ADA)) { Return (14) } // set memory contents to known values using misaligned field entries Store (0, BIT7) // verify memory contents using misaligned field entries If (LNotEqual (BIT7, 0)) { Return (15) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55A5A)) { Return (16) } // set memory contents to known values using misaligned field entries Store (1, BIT8) // verify memory contents using misaligned field entries If (LNotEqual (BIT8, 1)) { Return (17) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55B5A)) { Return (18) } // set memory contents to known values using misaligned field entries Store (0, BIT9) // verify memory contents using misaligned field entries If (LNotEqual (BIT9, 0)) { Return (19) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA5595A)) { Return (20) } // set memory contents to known values using misaligned field entries Store (1, BITA) // verify memory contents using misaligned field entries If (LNotEqual (BITA, 1)) { Return (21) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA55D5A)) { Return (22) } // set memory contents to known values using misaligned field entries Store (0, BITB) // verify memory contents using misaligned field entries If (LNotEqual (BITB, 0)) { Return (23) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA5555A)) { Return (24) } // set memory contents to known values using misaligned field entries Store (0, BITC) // verify memory contents using misaligned field entries If (LNotEqual (BITC, 0)) { Return (25) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA5455A)) { Return (26) } // set memory contents to known values using misaligned field entries Store (1, BITD) // verify memory contents using misaligned field entries If (LNotEqual (BITD, 1)) { Return (27) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA5655A)) { Return (28) } // set memory contents to known values using misaligned field entries Store (0, BITE) // verify memory contents using misaligned field entries If (LNotEqual (BITE, 0)) { Return (29) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA5255A)) { Return (30) } // set memory contents to known values using misaligned field entries Store (1, BITF) // verify memory contents using misaligned field entries If (LNotEqual (BITF, 1)) { Return (31) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA5A55A)) { Return (32) } // set memory contents to known values using misaligned field entries Store (0, BI10) // verify memory contents using misaligned field entries If (LNotEqual (BI10, 0)) { Return (33) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA4A55A)) { Return (34) } // set memory contents to known values using misaligned field entries Store (1, BI11) // verify memory contents using misaligned field entries If (LNotEqual (BI11, 1)) { Return (35) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA6A55A)) { Return (36) } // set memory contents to known values using misaligned field entries Store (0, BI12) // verify memory contents using misaligned field entries If (LNotEqual (BI12, 0)) { Return (37) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AA2A55A)) { Return (38) } // set memory contents to known values using misaligned field entries Store (1, BI13) // verify memory contents using misaligned field entries If (LNotEqual (BI13, 1)) { Return (39) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5AAAA55A)) { Return (40) } // set memory contents to known values using misaligned field entries Store (1, BI14) // verify memory contents using misaligned field entries If (LNotEqual (BI14, 1)) { Return (41) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5ABAA55A)) { Return (42) } // set memory contents to known values using misaligned field entries Store (0, BI15) // verify memory contents using misaligned field entries If (LNotEqual (BI15, 0)) { Return (43) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5A9AA55A)) { Return (44) } // set memory contents to known values using misaligned field entries Store (1, BI16) // verify memory contents using misaligned field entries If (LNotEqual (BI16, 1)) { Return (45) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5ADAA55A)) { Return (46) } // set memory contents to known values using misaligned field entries Store (0, BI17) // verify memory contents using misaligned field entries If (LNotEqual (BI17, 0)) { Return (47) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5A5AA55A)) { Return (48) } // set memory contents to known values using misaligned field entries Store (1, BI18) // verify memory contents using misaligned field entries If (LNotEqual (BI18, 1)) { Return (49) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5B5AA55A)) { Return (50) } // set memory contents to known values using misaligned field entries Store (0, BI19) // verify memory contents using misaligned field entries If (LNotEqual (BI19, 0)) { Return (51) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x595AA55A)) { Return (52) } // set memory contents to known values using misaligned field entries Store (1, BI1A) // verify memory contents using misaligned field entries If (LNotEqual (BI1A, 1)) { Return (53) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x5D5AA55A)) { Return (54) } // set memory contents to known values using misaligned field entries Store (0, BI1B) // verify memory contents using misaligned field entries If (LNotEqual (BI1B, 0)) { Return (55) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x555AA55A)) { Return (56) } // set memory contents to known values using misaligned field entries Store (0, BI1C) // verify memory contents using misaligned field entries If (LNotEqual (BI1C, 0)) { Return (57) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x455AA55A)) { Return (58) } // set memory contents to known values using misaligned field entries Store (1, BI1D) // verify memory contents using misaligned field entries If (LNotEqual (BI1D, 1)) { Return (59) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x655AA55A)) { Return (60) } // set memory contents to known values using misaligned field entries Store (0, BI1E) // verify memory contents using misaligned field entries If (LNotEqual (BI1E, 0)) { Return (61) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x255AA55A)) { Return (62) } // set memory contents to known values using misaligned field entries Store (1, BI1F) // verify memory contents using misaligned field entries If (LNotEqual (BI1F, 1)) { Return (63) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55AA55A)) { Return (64) } // set memory contents to known values using misaligned field entries Store (3, B2_0) // verify memory contents using misaligned field entries If (LNotEqual (B2_0, 3)) { Return (65) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55AA55B)) { Return (66) } // set memory contents to known values using misaligned field entries Store (1, B2_1) // verify memory contents using misaligned field entries If (LNotEqual (B2_1, 1)) { Return (67) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55AA557)) { Return (68) } // set memory contents to known values using misaligned field entries Store (0, B2_2) // verify memory contents using misaligned field entries If (LNotEqual (B2_2, 0)) { Return (69) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55AA547)) { Return (70) } // set memory contents to known values using misaligned field entries Store (3, B2_3) // verify memory contents using misaligned field entries If (LNotEqual (B2_3, 3)) { Return (71) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55AA5C7)) { Return (72) } // set memory contents to known values using misaligned field entries Store (3, B2_4) // verify memory contents using misaligned field entries If (LNotEqual (B2_4, 3)) { Return (73) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55AA7C7)) { Return (74) } // set memory contents to known values using misaligned field entries Store (0, B2_5) // verify memory contents using misaligned field entries If (LNotEqual (B2_5, 0)) { Return (75) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55AA3C7)) { Return (76) } // set memory contents to known values using misaligned field entries Store (1, B2_6) // verify memory contents using misaligned field entries If (LNotEqual (B2_6, 1)) { Return (77) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55A93C7)) { Return (78) } // set memory contents to known values using misaligned field entries Store (1, B2_7) // verify memory contents using misaligned field entries If (LNotEqual (B2_7, 1)) { Return (79) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55A53C7)) { Return (80) } // set memory contents to known values using misaligned field entries Store (0, B2_8) // verify memory contents using misaligned field entries If (LNotEqual (B2_8, 0)) { Return (81) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55853C7)) { Return (82) } // set memory contents to known values using misaligned field entries Store (1, B2_9) // verify memory contents using misaligned field entries If (LNotEqual (B2_9, 1)) { Return (83) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA55453C7)) { Return (84) } // set memory contents to known values using misaligned field entries Store (2, B2_A) // verify memory contents using misaligned field entries If (LNotEqual (B2_A, 2)) { Return (85) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA56453C7)) { Return (86) } // set memory contents to known values using misaligned field entries Store (2, B2_B) // verify memory contents using misaligned field entries If (LNotEqual (B2_B, 2)) { Return (87) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA5A453C7)) { Return (88) } // set memory contents to known values using misaligned field entries Store (3, B2_C) // verify memory contents using misaligned field entries If (LNotEqual (B2_C, 3)) { Return (89) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xA7A453C7)) { Return (90) } // set memory contents to known values using misaligned field entries Store (3, B2_D) // verify memory contents using misaligned field entries If (LNotEqual (B2_D, 3)) { Return (91) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0xAFA453C7)) { Return (92) } // set memory contents to known values using misaligned field entries Store (1, B2_E) // verify memory contents using misaligned field entries If (LNotEqual (B2_E, 1)) { Return (93) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x9FA453C7)) { Return (94) } // set memory contents to known values using misaligned field entries Store (0, B2_F) // verify memory contents using misaligned field entries If (LNotEqual (B2_F, 0)) { Return (95) } // verify memory contents using aligned field entries If (LNotEqual (DWD0, 0x1FA453C7)) { Return (96) } Return (0) // pass } // MADM: Misaligned Dynamic RAM SystemMemory OperationRegion Method (TEST) { Store ("++++++++ IndexOp4 Test", Debug) // MADM (Misaligned Dynamic RAM SystemMemory OperationRegion) arguments: // Arg0 -- SystemMemory OperationRegion base address Store (MADM (0x800000), Local0) If (LNotEqual (Local0, 0)) // MADM returns zero if successful { Return (Local0) } // failure: return MADM error code Return (Local0) } // TEST } // IDX4 // // test Event.asl // // EventOp, ResetOp, SignalOp, and WaitOp test cases. // Device (EVNT) { Event (EVNT) // event synchronization object Method (TEVN, 1) // Arg0: time to Wait for event in milliseconds { // TEVN control method to test ResetOp, SignalOp, and WaitOp // reset EVNT to initialization (zero) state Reset (EVNT) // prime EVNT with two outstanding signals Signal (EVNT) Signal (EVNT) // acquire existing signal Store (Wait (EVNT, Arg0), Local0) // validate Local0 is a Number Store (ObjectType (Local0), Local1) If (LNotEqual (Local1, 1)) // Number is type 1 { Return (0x21) } // Local1 indicates Local0 is not a Number If (LNotEqual (Local0, 0)) // Number is type 1 { Return (0x22) } // timeout occurred without acquiring signal Store ("Acquire 1st existing signal PASS", Debug) // acquire existing signal Store (Wait (EVNT, Arg0), Local0) // validate Local0 is a Number Store (ObjectType (Local0), Local1) If (LNotEqual (Local1, 1)) // Number is type 1 { Return (0x31) } // Local1 indicates Local0 is not a Number If (LNotEqual (Local0, 0)) // Number is type 1 { Return (0x32) } // timeout occurred without acquiring signal Store ("Acquire 2nd existing signal PASS", Debug) // ensure WaitOp timeout test cases do not hang if (LEqual (Arg0, 0xFFFF)) { Store (0xFFFE, Arg0) } // acquire non-existing signal Store (Wait (EVNT, Arg0), Local0) // validate Local0 is a Number Store (ObjectType (Local0), Local1) If (LNotEqual (Local1, 1)) // Number is type 1 { Return (0x41) } // Local1 indicates Local0 is not a Number If (LEqual (Local0, 0)) // Number is type 1 { Return (0x42) } // non-existent signal was acquired Store ("Acquire signal timeout PASS", Debug) // prime EVNT with two outstanding signals Signal (EVNT) Signal (EVNT) // reset EVNT to initialization (zero) state Reset (EVNT) // acquire non-existing signal Store (Wait (EVNT, Arg0), Local0) // validate Local0 is a Number Store (ObjectType (Local0), Local1) If (LNotEqual (Local1, 1)) // Number is type 1 { Return (0x51) } // Local1 indicates Local0 is not a Number If (LEqual (Local0, 0)) // Number is type 1 { Return (0x52) } // non-existent signal was acquired Store ("Reset signal PASS", Debug) // acquire non-existing signal using Lvalue timeout Store (Wait (EVNT, Zero), Local0) // validate Local0 is a Number Store (ObjectType (Local0), Local1) If (LNotEqual (Local1, 1)) // Number is type 1 { Return (0x61) } // Local1 indicates Local0 is not a Number If (LEqual (Local0, 0)) // Number is type 1 { Return (0x62) } // non-existent signal was acquired Store ("Zero Lvalue PASS", Debug) // acquire non-existing signal using Lvalue timeout Store (Wait (EVNT, One), Local0) // validate Local0 is a Number Store (ObjectType (Local0), Local1) If (LNotEqual (Local1, 1)) // Number is type 1 { Return (0x71) } // Local1 indicates Local0 is not a Number If (LEqual (Local0, 0)) // Number is type 1 { Return (0x72) } // non-existent signal was acquired Store ("One Lvalue PASS", Debug) // Lvalue Event test cases // ILLEGAL SOURCE OPERAND Store (EVNT, Local2) // validate Local2 is an Event Store (ObjectType (EVNT), Local1) If (LNotEqual (Local1, 7)) // Event is type 7 { Return (0x81) } // Local1 indicates Local0 is not a Number // reset EVNT to initialization (zero) state Reset (EVNT) // prime EVNT with two outstanding signals Signal (EVNT) // acquire existing signal Store (Wait (EVNT, Arg0), Local0) // validate Local0 is a Number Store (ObjectType (Local0), Local1) If (LNotEqual (Local1, 1)) // Number is type 1 { Return (0x82) } // Local1 indicates Local0 is not a Number If (LNotEqual (Local0, 0)) // Number is type 1 { Return (0x83) } // timeout occurred without acquiring signal Store ("Acquire Lvalue existing signal PASS", Debug) // acquire non-existing signal Store (Wait (EVNT, Arg0), Local0) // validate Local0 is a Number Store (ObjectType (Local0), Local1) If (LNotEqual (Local1, 1)) // Number is type 1 { Return (0x84) } // Local1 indicates Local0 is not a Number If (LEqual (Local0, 0)) // Number is type 1 { Return (0x85) } // non-existent signal was acquired Store ("Acquire Lvalue signal timeout PASS", Debug) Return (0) // success } // TEVN control method to test ResetOp, SignalOp, and WaitOp Method (TEST) { Store ("++++++++ Event Test", Debug) Store (TEVN (100), Local0) Return (Local0) } // TEST } // EVNT // // test SizeOfLv.asl // // Test for SizeOf (Lvalue) // // This next section will contain the packages that the SizeOfOp will be // exercised on. The first one, PKG0, is a regular package of 3 elements. // The 2nd one, PKG1, is a nested package with 3 packages inside it, each // with 3 elements. It is expected that SizeOf operator will return the // same value for these two packages since they both have 3 elements. The // final package, PKG2, has 4 elements and the SizeOf operator is expected // to return different results for this package. Name (PKG0, Package (3) {0x0123, 0x4567, 0x89AB} ) // PKG0 Name (PKG1, Package (3) { Package (3) {0x0123, 0x4567, 0x89AB}, Package (3) {0xCDEF, 0xFEDC, 0xBA98}, Package (3) {0x7654, 0x3210, 0x1234} } ) // PKG1 Name (PKG2, Package (4) {0x0123, 0x4567, 0x89AB, 0x8888} ) // PKG2 Name (PKG3, Package (5) {0x0123, 0x4567, 0x89AB, 0x8888, 0x7777} ) // PKG3 // End Packages ********************************************************** // The following section will declare the data strings that will be used to // exercise the SizeOf operator. STR0 and STR1 are expected to be equal, // STR2 is expected to have a different SizeOf value than STR0 and STR1. Name (STR0, "ACPI permits very flexible methods of expressing a system") Name (STR1, "MIKE permits very flexible methods of expressing a system") Name (STR2, "Needless to say, Mike and ACPI are frequently at odds") // This string is being made in case we want to do a SizeOf comparison // between strings and packages or buffers Name (STR3, "12345") // End Strings ********************************************************** // The following section will declare the buffers that will be used to exercise // the SizeOf operator. Name (BUF0, Buffer (10) {}) Name (BUF1, Buffer (10) {}) Name (BUF2, Buffer (8) {}) Name (BUF3, Buffer (5) {}) // End Buffers ********************************************************** Device (SZLV) { Method (CMPR, 2) { // CMPR is passed two arguments. If unequal, return 1 to indicate // that, otherwise return 0 to indicate SizeOf each is equal. Store (0x01, Local0) if (LEqual (SizeOf(Arg0), SizeOf(Arg1))) { Store (0x00, Local0) } return (Local0) } // CMPR Method (TEST) { Store ("++++++++ SizeOfLv Test", Debug) // TBD: SizeOf ("string") // SizeOf (Buffer) // SizeOf (Package) // SizeOf (String) // SizeOf (STR0) -- where Name (STR0,...) -- lot's of cases // buffer, string, package, // SizeOf (METH) -- where METH control method returns // buffer, string, package, // TBD: SLOC [SizeOf (Local0)] -- dup SARG // Compare the elements that we expect to be the same. Exit out with an error // code on the first failure. if (LNotEqual (0x00, CMPR (STR0, STR1))) { Return (0x01) } if (LNotEqual (0x00, CMPR (STR3, BUF3))) { Return (0x02) } if (LNotEqual (0x00, CMPR (STR3, PKG3))) { Return (0x03) } // In the following section, this test will cover the SizeOf // operator for Local values. // In this case, both Local0 and Local1 should have the same Size Store (STR0, Local0) Store (STR1, Local1) if (LNotEqual (SizeOf (Local0), SizeOf (Local1))) { Return (0x04) } // Now create a case where Local0 and Local1 are different Store (STR2, Local1) if (LEqual (SizeOf (Local0), SizeOf (Local1))) { Return (0x05) } // Finally, check for the return of SizeOf for a known Buffer. Just // in case we magically pass above cases due to all Buffers being Zero // bytes in size, or Infinity, etc. if (LNotEqual (0x05, SizeOf (BUF3))) { Return (0x06) } Return (0) } // TEST } // SZLV // // test BytField.asl // // BytField test // This is just a subset of the many RegionOp/Index Field test cases. // Tests access of TBD. // Scope (\_SB) // System Bus { // _SB system bus Device (BYTF) { // Test device name Method (TEST) { Store ("++++++++ BytField Test", Debug) Return (\_TZ.C19B.RSLT) } // TEST } // BYTF Device (C005) { // Device C005 Device (C013) { // Device C013 } // Device C013 } // Device C005 Method (C115) { // C115 control method Acquire (\_GL, 0xFFFF) Store (\_SB.C005.C013.C058.C07E, Local0) Release (\_GL) And (Local0, 16, Local0) Store (ShiftRight (Local0, 4, ), Local1) If (LEqual (Local1, 0)) { Return (1) } Else { Return (0) } } // C115 control method } // _SB system bus OperationRegion (C018, SystemIO, 0x5028, 4) Field (C018, AnyAcc, NoLock, Preserve) { // Field overlaying C018 C019, 32 } // Field overlaying C018 OperationRegion (C01A, SystemIO, 0x5030, 4) Field (C01A, ByteAcc, NoLock, Preserve) { // Field overlaying C01A C01B, 8, C01C, 8, C01D, 8, C01E, 8 } // Field overlaying C01A Mutex (\C01F, 0) Name (\C020, 0) Name (\C021, 0) Method (\C022, 0) { // \C022 control method Acquire (\C01F, 0xFFFF) If (LEqual (\C021, 0)) { Store (C019, Local0) And (Local0, 0xFFFEFFFE, Local0) Store (Local0, C019) Increment (\C021) } Release (\C01F) } // \C022 control method Scope (\_SB.C005.C013) { // Scope \_SB.C005.C013 Device (C058) { // Device C058 Name (_HID, "*PNP0A06") OperationRegion (C059, SystemIO, 0xE0, 2) Field (C059, ByteAcc, NoLock, Preserve) { // Field overlaying C059 C05A, 8, C05B, 8 } // Field overlaying C059 OperationRegion (C05C, SystemIO, 0xE2, 2) Field (C05C, ByteAcc, NoLock, Preserve) { // Field overlaying C05C C05D, 8, C05E, 8 } // Field overlaying C05C IndexField (C05D, C05E, ByteAcc, NoLock, Preserve) { // IndexField overlaying C05D/C05E , 0x410, // skip C05F, 8, C060, 8, C061, 8, C062, 8, C063, 8, C064, 8, C065, 8, C066, 8, C067, 8, C068, 8, C069, 8, C06A, 8, C06B, 8, C06C, 8, C06D, 8, C06E, 8, , 0x70, // skip C06F, 8, C070, 8, C071, 8, C072, 8, C073, 8, C074, 8, C075, 8, C076, 8, C077, 8, C078, 8, C079, 8, C07A, 8, C07B, 8, C07C, 8, C07D, 8, C07E, 8 } // IndexField overlaying C05D/C05E OperationRegion (C07F, SystemIO, 0xE4, 2) Field (C07F, ByteAcc, NoLock, Preserve) { // Field overlaying C07F C080, 8, C081, 8 } // Field overlaying C07F OperationRegion (C082, SystemIO, 0xE0, 1) Field (C082, ByteAcc, NoLock, Preserve) { // Field overlaying C082 C083, 8 } // Field overlaying C082 OperationRegion (C084, SystemIO, 0xFF, 1) Field (C084, ByteAcc, NoLock, Preserve) { // Field overlaying C084 C085, 8 } // Field overlaying C084 OperationRegion (C086, SystemIO, 0xFD, 1) Field (C086, ByteAcc, NoLock, Preserve) { // Field overlaying C086 C087, 8 } // Field overlaying C086 Mutex (C088, 0) Mutex (C089, 0) Mutex (C08A, 0) Mutex (C08B, 0) Mutex (C08C, 0) Mutex (C08D, 0) Name (C08E, 0xFFFFFFFD) Name (C08F, 0) Method (C0AA, 4) { // C0AA control method Store (Buffer (4) {}, Local7) CreateByteField (Local7, 0, C0AB) CreateByteField (Local7, 1, C0AC) CreateByteField (Local7, 2, C0AD) CreateByteField (Local7, 3, C0AE) Acquire (^C08B, 0xFFFF) Acquire (\_GL, 0xFFFF) \C022 () Store (1, \_SB.C005.C013.C058.C06B) While (LNot (LEqual (0, \_SB.C005.C013.C058.C06B))) { Stall (100) } Store (Arg3, \_SB.C005.C013.C058.C06E) Store (Arg2, \_SB.C005.C013.C058.C06D) Store (Arg1, \_SB.C005.C013.C058.C06C) Store (Arg0, \_SB.C005.C013.C058.C06B) While (LNot (LEqual (0, \_SB.C005.C013.C058.C06B))) { Stall (100) } Store (\_SB.C005.C013.C058.C06E, C0AB) Store (\_SB.C005.C013.C058.C06D, C0AC) Store (\_SB.C005.C013.C058.C06C, C0AD) Store (\_SB.C005.C013.C058.C06B, C0AE) If (LNot (LEqual (Arg0, 23))) { Store (2, \_SB.C005.C013.C058.C06B) Stall (100) } Release (\_GL) Release (^C08B) Return (Local7) } // C0AA control method } // Device C058 } // Scope \_SB.C005.C013 Scope (\_TZ) { // \_TZ thermal zone scope Name (C18B, Package (2) { Package (2) { Package (5) {0x05AC, 0x0CD2, 0x0D68, 0x0DE0, 0x0E4E}, Package (5) {0x0D04, 0x0D9A, 0x0DFE, 0x0E80, 0x0FA2} }, Package (2) { Package (5) {0x05AC, 0x0CD2, 0x0D68, 0x0DE0, 0x0E4E}, Package (5) {0x0D04, 0x0D9A, 0x0DFE, 0x0E80, 0x0FA2} } }) // C18B Name (C18C, Package (2) { Package (2) { Package (3) {0x64, 0x4B, 0x32}, Package (3) {0x64, 0x4B, 0x32} } }) // C81C Name (C18D, 0) Name (C18E, 0) Name (C18F, 0) Name (C190, 0) Name (C191, 3) Name (C192, 0) Name (C193, 1) Name (C194, 2) Mutex (C195, 0) Name (C196, 1) Name (C197, 0x0B9C) Name (C198, 0x0B9C) Name (C199, 0xFFFFFFFD) Name (C19A, 0) Device (C19B) { // Device C19B Name (RSLT, 0) // default to zero Method (XINI) { // _INI control method (Uses Global Lock -- can't run under AcpiExec) Store (\_SB.C115, C19A) \_TZ.C19C._SCP (0) Subtract (0x0EB2, 0x0AAC, Local1) // Local1 = AACh - EB2h Divide (Local1, 10, Local0, Local2) // Local0 = Local1 / 10 // Local2 = Local1 % 10 \_SB.C005.C013.C058.C0AA (14, Local2, 0, 0) Store (DerefOf (Index (DerefOf (Index (\_TZ.C18C, C19A, )), 0, )), C18D) Store (DerefOf (Index (DerefOf (Index (\_TZ.C18C, C19A, )), 1, )), C18E) Store (DerefOf (Index (DerefOf (Index (\_TZ.C18C, C19A, )), 2, )), C18F) Store (1, RSLT) // set RSLT to 1 if _INI control method completes } // _INI control method // PowerResource (C19D) {...} } // Device C19B ThermalZone (C19C) { Method (_SCP, 1) { // _SCP control method Store (Arg0, Local0) If (LEqual (Local0, 0)) { Store (0, \_TZ.C192) Store (1, \_TZ.C193) Store (2, \_TZ.C194) Store (3, \_TZ.C191) } Else { Store (0, \_TZ.C191) Store (1, \_TZ.C192) Store (2, \_TZ.C193) Store (3, \_TZ.C194) } } // _SCP control method } // ThermalZone C19C } // \_TZ thermal zone scope // // test DwrdFld.asl // Name (BUFR, buffer(10) {0,0,0,0,0,0,0,0,0,0} ) Device (DWDF) { Method (TEST) { Store ("++++++++ DwrdFld Test", Debug) CreateByteField (BUFR, 0, BYTE) Store (0xAA, BYTE) CreateWordField (BUFR, 1, WORD) Store (0xBBCC, WORD) CreateDWordField (BUFR, 3, DWRD) Store (0xDDEEFF00, DWRD) CreateByteField (BUFR, 7, BYT2) Store (0x11, BYT2) CreateWordField (BUFR, 8, WRD2) Store (0x2233, WRD2) Return (0) } // End Method TEST } // Device DWDF // // test DivAddx.asl // Name (B1LO, 0xAA) Name (B1HI, 0xBB) Method (MKW_, 2) { // This control method will take two bytes and make them into a WORD Multiply (B1HI, 256, Local0) // Make high byte.....high Or (Local0, B1LO, Local0) // OR in the low byte Return (Local0) // Return the WORD } // MKW_ Device (DVAX) { Method (TEST) { Store ("++++++++ DivAddx Test", Debug) Store (25, B1LO) Store (0, B1HI) // We'll multiply 25 * 3 to get 75, add 99 to it then divide // by 100. We expect to get 74 for the remainder and 1 for // the quotient. Divide( Add (Multiply (3, MKW_ (B1LO, B1HI)), 0x63), // Dividend, 100, // Divisor Local4, // Remainder Local2) // Quotient If (LAnd (LEqual (74, Local4), LEqual (1, Local2))) { // Indicate Pass Store (0x00, Local0) } Else { // Indicate Fail Store (0x01, Local0) } Return (Local0) } // End Method TEST } // Device DVAX // // test IndexFld.asl (IndexOp6.asl) // // IndexFld test // This is just a subset of the many RegionOp/Index Field test cases. // Tests index field element AccessAs macro. // Also tests name resolution of index field elements with same names // but different namespace scopes. // Device (IDX6) { // Test device name OperationRegion (SIO, SystemIO, 0x100, 2) Field (SIO, ByteAcc, NoLock, Preserve) { INDX, 8, DATA, 8 } IndexField (INDX, DATA, AnyAcc, NoLock, WriteAsOnes) { AccessAs (ByteAcc, 0), IFE0, 8, IFE1, 8, IFE2, 8, IFE3, 8, IFE4, 8, IFE5, 8, IFE6, 8, IFE7, 8, IFE8, 8, IFE9, 8, } Device (TST_) { // TST_: provides a different namespace scope for IFE0 and IFE1 OperationRegion (SIO2, SystemIO, 0x100, 2) Field (SIO2, ByteAcc, NoLock, Preserve) { IND2, 8, DAT2, 8 } IndexField (IND2, DAT2, AnyAcc, NoLock, WriteAsOnes) { IFE0, 8, // duplicate IndexField name with different scope IFE1, 8 } } // TST_: provides a different namespace scope for IFE0 and IFE1 Method (TEST) { Store ("++++++++ IndexOp6 Test", Debug) Store (IFE0, Local0) Store (IFE1, Local1) Store (IFE2, Local2) // validate name resolution of IndexFields with different scopes Store (\IDX6.IFE0, Local3) Store (\IDX6.IFE1, Local4) // verioading of namespace can resolve following names Store (\IDX6.TST_.IFE0, Local5) Store (\IDX6.TST_.IFE1, Local6) Return (0) } // TEST } // IDX6 // // test IndexOp5.asl // // IndexOp5 test // This is just a subset of the many RegionOp/Index Field test cases. // Tests copying string into buffer then performing IndexOp on result. // Device (IDX5) { // Test device name Name (OSFL, 0) // 0 == Windows 98, 1 == Windows NT // MCTH is a control method to compare two strings. It returns // zero if the strings mismatch, or 1 if the strings match. // This exercises the test case of copying a string into a buffer // and performing an IndexOp on the resulting buffer. Method (MCTH, 2, Serialized) // Control Method to compare two strings { // MCTH: Control Method to compare two strings // Arg0: first string to compare // Arg1: second string to compare // Return: zero if strings mismatch, 1 if strings match // check if first string's length is less than second string's length If (LLess (SizeOf (Arg0), SizeOf (Arg1))) { Return (0) } // increment length to include NULL termination character Add (SizeOf (Arg0), 1, Local0) // Local0 = strlen(Arg0) + 1 // create two buffers of size Local0 [strlen(Arg0)+1] Name (BUF0, Buffer (Local0) {}) Name (BUF1, Buffer (Local0) {}) // copy strings into buffers Store (Arg0, BUF0) Store (Arg1, BUF1) // validate BUF0 and BUF1 are still buffers Store (ObjectType (BUF0), Local1) If (LNotEqual (Local1, 3)) // Buffer is type 3 { Return (20) } Store (ObjectType (BUF1), Local1) If (LNotEqual (Local1, 3)) // Buffer is type 3 { Return (21) } // Decrement because the Index base below is zero based // while Local0 length is one based. Decrement (Local0) While (Local0) { // loop through all BUF0 buffer elements Decrement (Local0) // check if BUF0[n] == BUF1[n] If (LEqual (DerefOf (Index (BUF0, Local0, )), DerefOf (Index (BUF1, Local0, )))) { } // this is how the code was really implemented Else { Return (Zero) } } // loop through all BUF0 buffer elements Return (One) // strings / buffers match } // MCTH: Control Method to compare two strings Method (TEST) { Store ("++++++++ IndexOp5 Test", Debug) If (MCTH (\_OS, "Microsoft Windows NT")) { Store (1, OSFL) } If (LNotEqual (OSFL, 1)) { Return (11) } Return (0) } // TEST } // IDX5 // // test IndexOp.asl // Scope (\_SB) // System Bus { // _SB system bus Method (C097) { Return (1) } Device (PCI2) { // Root PCI Bus Name (_HID, EISAID("PNP0A03")) Name (_ADR, 0x00000000) Name (_CRS, Buffer(26) {"\_SB_.PCI2._CRS..........."}) Method (_STA) {Return (0x0F)} Device (ISA) { // ISA bridge Name (_ADR, 0x00030000) // ISA bus ID Device (EC0) { // Embedded Controller Name (_GPE, 0) // EC use GPE0 Name (_ADR, 0x0030000) // PCI address Method (_STA,0) // EC Status { Return(0xF) } // EC is functioning Name (_CRS, ResourceTemplate() { IO (Decode16, 0x62, 0x62, 1, 1) IO (Decode16, 0x66, 0x66, 1, 1) } ) // create EC's region and field OperationRegion (RAM, SystemMemory, 0x400000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { // AC information ADP, 1, // AC Adapter 1:On-line, 0:Off-line AFLT, 1, // AC Adapter Fault 1:Fault 0:Normal BAT0, 1, // BAT0 1:present, 0:not present , 1, // reserved , 28, // filler to force DWORD alignment // CMBatt information BPU0, 32, // Power Unit BDC0, 32, // Designed Capacity BFC0, 32, // Last Full Charge Capacity BTC0, 32, // Battery Technology BDV0, 32, // Design Voltage BST0, 32, // Battery State BPR0, 32, // Battery Present Rate // (Designed Capacity)x(%)/{(h)x100} BRC0, 32, // Battery Remaining Capacity // (Designed Capacity)(%)^100 BPV0, 32, // Battery Present Voltage BTP0, 32, // Trip Point BCW0, 32, // Design capacity of Warning BCL0, 32, // Design capacity of Low BCG0, 32, // capacity granularity 1 BG20, 32, // capacity granularity 2 BMO0, 32, // Battery model number field BIF0, 32, // OEM Information(00h) BSN0, 32, // Battery Serial Number BTY0, 32, // Battery Type (e.g., "Li-Ion") BTY1, 32 // Battery Type (e.g., "Li-Ion") } // Field } // EC0: Embedded Controller } // ISA bridge } // PCI2 Root PCI Bus Device (IDX0) { // Test device name Name (_HID, EISAID ("PNP0C0A")) // Control Method Battey ID Name (_PCL, Package() {\_SB}) Method (_STA) { // _STA bits 0-3 indicate existence of battery slot // _STA bit 4 indicates battery (not) present If (\_SB.PCI2.ISA.EC0.BAT0) { Return (0x1F) } // Battery present else { Return (0x0F) } // Battery not present } // _STA Method (_BIF,, Serialized) { Name (BUFR, Package(13) {}) Store (\_SB.PCI2.ISA.EC0.BPU0, Index (BUFR,0)) // Power Unit Store (\_SB.PCI2.ISA.EC0.BDC0, Index (BUFR,1)) // Designed Capacity Store (\_SB.PCI2.ISA.EC0.BFC0, Index (BUFR,2)) // Last Full Charge Capa. Store (\_SB.PCI2.ISA.EC0.BTC0, Index (BUFR,3)) // Battery Technology Store (\_SB.PCI2.ISA.EC0.BDV0, Index (BUFR,4)) // Designed Voltage Store (\_SB.PCI2.ISA.EC0.BCW0, Index (BUFR,5)) // Designed warning level Store (\_SB.PCI2.ISA.EC0.BCL0, Index (BUFR,6)) // Designed Low level Store (\_SB.PCI2.ISA.EC0.BCG0, Index (BUFR,7)) // Capacity granularity 1 Store (\_SB.PCI2.ISA.EC0.BG20, Index (BUFR,8)) // Capacity granularity 2 Store ("", Index (BUFR,9)) // Model Number Store ("", Index (BUFR,10)) // Serial Number Store ("LiOn", Index (BUFR,11)) // Battery Type Store ("Chicony", Index (BUFR,12)) // OEM Information Return (BUFR) } // _BIF Method (_BST,, Serialized) { Name (BUFR, Package(4) {1, 0x100, 0x76543210, 0x180}) Return (BUFR) } // _BST Method (_BTP,1) { Store (arg0, \_SB.PCI2.ISA.EC0.BTP0) // Set Battery Trip point } Method (TEST,, Serialized) { Store ("++++++++ IndexOp Test", Debug) // test storing into uninitialized package elements Name (PBUF, Package(4) {}) // leave uninitialized Store (0x01234567, Index (PBUF,0)) Store (0x89ABCDEF, Index (PBUF,1)) Store (0xFEDCBA98, Index (PBUF,2)) Store (0x76543210, Index (PBUF,3)) // verify values stored into uninitialized package elements If (LNotEqual (DerefOf (Index (PBUF,0)), 0x01234567)) { Return (0x10) } If (LNotEqual (DerefOf (Index (PBUF,1)), 0x89ABCDEF)) { Return (0x11) } If (LNotEqual (DerefOf (Index (PBUF,2)), 0xFEDCBA98)) { Return (0x12) } If (LNotEqual (DerefOf (Index (PBUF,3)), 0x76543210)) { Return (0x13) } // store _BIF package return value into Local0 Store (_BIF, Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Package If (LNotEqual (Local1, 4)) // Package type is 4 { Return (0x21) } // failure // test storing into buffer field elements Name (BUFR, Buffer(16) { // initial values 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, } ) // BUFR // test storing into buffer field elements Store (0x01234567, Index (BUFR,0)) // should only store 0x67 Store (0x89ABCDEF, Index (BUFR,4)) // should only store 0xEF Store (0xFEDCBA98, Index (BUFR,8)) // should only store 0x98 Store (0x76543210, Index (BUFR,12)) // should only store 0x10 // verify storing into buffer field elements If (LNotEqual (DerefOf (Index (BUFR,0)), 0x67)) { Return (0x30) } If (LNotEqual (DerefOf (Index (BUFR,1)), 0)) { Return (0x31) } If (LNotEqual (DerefOf (Index (BUFR,4)), 0xEF)) { Return (0x34) } If (LNotEqual (DerefOf (Index (BUFR,8)), 0x98)) { Return (0x38) } If (LNotEqual (DerefOf (Index (BUFR,12)), 0x10)) { Return (0x3C) } Return (0) // pass } // TEST } // IDX0 } // _SB system bus // // test BitIndex.asl // // BitIndex test // This is a test case for accessing fields defined as single bits in // memory. This is done by creating two index fields that overlay the // same DWORD in memory. One field accesses the DWORD as a DWORD, the // other accesses individual bits of the same DWORD field in memory. // Scope (\_SB) // System Bus { // _SB system bus OperationRegion (RAM, SystemMemory, 0x800000, 0x100) Field (RAM, AnyAcc, NoLock, Preserve) { // Any access TREE, 3, WRD0, 16, WRD1, 16, WRD2, 16, WRD3, 16, WRD4, 16, DWRD, 32, // DWORD field } Field (RAM, AnyAcc, NoLock, Preserve) { // Any access THRE, 3, WD00, 16, WD01, 16, WD02, 16, WD03, 16, WD04, 16, BYT0, 8, // Start off with a BYTE BIT0, 1, // single-bit field BIT1, 1, // single-bit field BIT2, 1, // single-bit field BIT3, 1, // single-bit field BIT4, 1, // single-bit field BIT5, 1, // single-bit field BIT6, 1, // single-bit field BIT7, 1, // single-bit field BIT8, 1, // single-bit field BIT9, 1, // single-bit field BITA, 1, // single-bit field BITB, 1, // single-bit field BITC, 1, // single-bit field BITD, 1, // single-bit field BITE, 1, // single-bit field BITF, 1, // single-bit field BYTZ, 8, // End with a BYTE for a total of 32 bits } Device (BITI) { // Test device name Method (MBIT) // Test single bit memory accesses { If (LNotEqual (DWRD, 0x00)) { Store (0xFF00, Local0) } Else { // Prime Local0 with 0...assume passing condition Store (0, Local0) // set memory contents to known values using DWORD field Store (0x5A5A5A5A, DWRD) // Given the value programmed into DWRD, only the odd bits // of the lower nibble should be set. BIT1, BIT3 should be set. // BIT0 and BIT2 should be clear If (BIT0) { Or (Local0, 0x01, Local0) } If (LNot (BIT1)) { Or (Local0, 0x02, Local0) } If (BIT2) { Or (Local0, 0x04, Local0) } If (LNot (BIT3)) { Or (Local0, 0x08, Local0) } // Now check the upper nibble. Only the "even" bits should // be set. BIT4, BIT6. BIT5 and BIT7 should be clear. If (LNot (BIT4)) { Or (Local0, 0x10, Local0) } If (BIT5) { Or (Local0, 0x20, Local0) } If (LNot (BIT6)) { Or (Local0, 0x40, Local0) } If (BIT7) { Or (Local0, 0x80, Local0) } } // End Else DWRD zeroed out Return (Local0) } // MBIT: Test single bit memory accesses Method (TEST) { Store ("++++++++ BitIndex Test", Debug) // Zero out DWRD Store (0x00000000, DWRD) // MBIT returns zero if successful // This may be causing problems -- Return (MBIT) Store (MBIT, Local0) Return (Local0) } // TEST } // BITI } // _SB system bus // // test IndexOp3.asl // // Additional IndexOp test cases to support ACPICMB (control method battery // test) on Compaq laptops. Test cases include storing a package into // an IndexOp target and validating that changing source and destination // package contents are independent of each other. // Scope (\_SB) // System Bus { // _SB system bus Name (C174, 13) Name (C175, 8) Device (C158) { // C158: AC Adapter device Name (_HID, "ACPI0003") // AC Adapter device Name (_PCL, Package (1) {\_SB}) Method (_PSR) { Acquire (\_GL, 0xFFFF) Release (\_GL) And (Local0, 1, Local0) // Local0 &= 1 Return (Local0) } // _PSR } // C158: AC Adapter device Name (C176, Package (4) {"Primary", "MultiBay", "DockRight", "DockLeft"}) Name (C177, Package (4) {0x99F5, 0x99F5, 0x995F, 0x995F}) Name (C178, Package (4) { Package (4) {0, 0, 0x966B, 0x4190}, Package (4) {0, 0, 0x966B, 0x4190}, Package (4) {0, 0, 0x966B, 0x4190}, Package (4) {0, 0, 0x966B, 0x4190} }) // C178 Name (C179, Package (4) {0, 0, 0x966B, 0x4190}) Name (C17A, Package (4) { Package (3) {0, 0, 0}, Package (3) {0, 0, 0}, Package (3) {0, 0, 0}, Package (3) {0, 0, 0} }) // C17A Method (C17B, 1, Serialized) { // C17B: _BIF implementation Name (C17C, Package (13) { // C17C: _BIF control method return package 0, // Power Unit (0 ==> mWh and mW) 0x99F5, // Design Capacity 0x99F5, // Last Full Charge Capacity 1, // Battery Technology (1 ==> rechargeable) 0x3840, // Design Voltage 0x1280, // Design Capacity of Warning 0x0AC7, // Design Capacity of Low 1, // Battery Capacity Granularity 1 (Low -- Warning) 1, // Battery Capacity Granularity 2 (Warning -- Full) "2891", // Model Number (ASCIIZ) "(-Unknown-)", // Serial Number (ASCIIZ) "LIon", // Battery Type (ASCIIZ) 0 // OEM Information (ASCIIZ) }) // C17C: _BIF control method return package And (Arg0, 7, Local0) // Local0 = Arg0 & 7 ShiftRight (Local0, 1, Local4) // Local4 = Local0 >> 1 Store (C179, Index (C178, Local4, )) // C178->Local4 = C179 // verify source and destination packages can be altered independent // of each other (i.e., changing one's contents does NOT change other's // contents) Store (0x1234, Index (C179, 2, )) // C179[2] = 0x1234 Store (DerefOf (Index (C179, 2, )), Local2) // Local2 = C179[2] if (LNotEqual (Local2, 0x1234)) { Return (0x1234) } // Local2 = C178[0,2] Store (DerefOf (Index (DerefOf (Index (C178, 0, )), 2, )), Local2) if (LNotEqual (Local2, 0x966B)) { Return (0x1234) } // Restore data to allow iterative execution Store (0x966B, Index (C179, 2, )) // C179[2] = 0x966B // C178[0,3] = 0x5678 Store (0x5678, Index (DerefOf (Index (C178, 0, )), 3, )) // Local2 = C178[0,3] Store (DerefOf (Index (DerefOf (Index (C178, 0, )), 3, )), Local2) if (LNotEqual (Local2, 0x5678)) { Return (0x5678) } Store (DerefOf (Index (C179, 3, )), Local2) // Local2 = C179[3] if (LNotEqual (Local2, 0x4190)) { Return (0x5678) } // Restore data to allow iterative execution Store (0x4190, Index (DerefOf (Index (C178, 0, )), 3, )) // C179[2] = 0x4190 Return (C17C) } // C17B: _BIF implementation Device (C154) { // C154: Battery 0 Name (_HID, "*PNP0C0A") // Control Method Battey ID Name (_UID, 0) // first instance Method (_BIF) { // _BIF Return (C17B (48)) } // _BIF } // C154: Battery 0 Device (IDX3) { Method (LCLB,, Serialized) { // LCLB control method: test Index(Local#) where Local# is buffer // Local0 is index counter // Local1 is buffer // Local2 receives BUFR[Local0] via Deref(Index(Local1...)) // Local3 is Local1 or Local2 object type // Local4 is return error code Name (BUFR, Buffer () {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}) // save PKG into Local1 Store (BUFR, Local1) // save Local2 object type value into Local3 Store (ObjectType (Local1), Local3) // validate Local1 is a Buffer If (LNotEqual (Local3, 3)) // Buffer type is 3 { Return (0x9F) } Store (0, Local0) While (LLess (Local0, 5)) { // While (Local0 < 5) // Local2 = Local1[Local0] Store (DerefOf (Index (Local1, Local0, )), Local2) // save Local2 object type value into Local3 Store (ObjectType (Local2), Local3) // validate Local2 is a Number If (LNotEqual (Local3, 1)) // Number type is 1 { Return (0x9E) } // validate Local1[Local0] value == Local0 If (LNotEqual (Local0, Local2)) { // Local0 != Local2 == PKG[Local0] // Local4 = 0x90 + loop index (Local0) Add (0x90, Local0, Local4) // return 0x90 + loop index Return (Local4) } Increment (Local0) } // While (Local0 < 5) Store ("DerefOf(Index(LocalBuffer,,)) PASS", Debug) Return (0) // Pass } // LCLB control method: test Index(Local#) where Local# is buffer Method (LCLP,, Serialized) { // LCLP control method: test Index(Local#) where Local# is package // Local0 is index counter // Local1 is package // Local2 receives PKG[Local0] via Deref(Index(Local1...)) // Local3 is Local1 or Local2 object type // Local4 is return error code Name (PKG, Package () {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}) // save PKG into Local1 Store (PKG, Local1) // save Local2 object type value into Local3 Store (ObjectType (Local1), Local3) // validate Local1 is a Package If (LNotEqual (Local3, 4)) // Package type is 4 { Return (0x8F) } Store (0, Local0) While (LLess (Local0, 5)) { // While (Local0 < 5) // Local2 = Local1[Local0] Store (DerefOf (Index (Local1, Local0, )), Local2) // save Local2 object type value into Local3 Store (ObjectType (Local2), Local3) // validate Local2 is a Number If (LNotEqual (Local3, 1)) // Number type is 1 { Return (0x8E) } // validate Local1[Local0] value == Local0 If (LNotEqual (Local0, Local2)) { // Local0 != Local2 == PKG[Local0] // Local4 = 0x80 + loop index (Local0) Add (0x80, Local0, Local4) // return 0x80 + loop index Return (Local4) } Increment (Local0) } // While (Local0 < 5) Store ("DerefOf(Index(LocalPackage,,)) PASS", Debug) Return (0) // Pass } // LCLP control method: test Index(Local#) where Local# is package Method (TEST) { Store ("++++++++ IndexOp3 Test", Debug) // store _BIF package return value into Local0 Store (\_SB.C154._BIF, Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Package If (LNotEqual (Local1, 4)) // Package type is 4 { // failure: did not return a Package (type 4) // if Local0 is a Number, it contains an error code If (LEqual (Local1, 1)) // Number type is 1 { Return (Local0) } // return Local0 error code Else // Local0 is not a Number { Return (1) } // return default error code } // failure: did not return a Package (type 4) // save LCLB control method return value into Local2 Store (LCLB, Local2) If (LNotEqual (Local2, 0)) { Return (Local2) } // return failure code // save LCLP control method return value into Local2 Store (LCLP, Local2) If (LNotEqual (Local2, 0)) { Return (Local2) } // return failure code Return (0) // Pass } // TEST } // IDX3: Test device name } // _SB system bus // // MTL developed test to exercise Indexes into buffers // Device(IDX7) { Name (PKG4, Package() { 0x2, "A short string", Buffer() {0xA, 0xB, 0xC, 0xD}, 0x1234, Package() {IDX7, 0x3} }) // // Generic Test method // // This test returns 0xE (14) - ObjectType = Buffer Field Method(TST1,, Serialized) { Name (DEST, Buffer () // 62 characters plus NULL {"Destination buffer that is longer than the short source buffer"}) // verify object type returned by Index(Buffer,Element,) Store (Index (DEST, 2, ), Local1) Store (ObjectType (Local1), Local2) If (LEqual(Local2, 14)) { Return(0) } Else { Return(0x1) } } Method(TST2,, Serialized) { Name (BUF0, Buffer() {0x1, 0x2, 0x3, 0x4, 0x5}) Store(0x55, Index(BUF0, 2)) Store(DerefOf(Index(BUF0, 2)), Local0) If (LEqual(Local0, 0x55)) { Return(0) } Else { Return(0x2) } } Method(TST3,, Serialized) { Name (BUF1, Buffer() {0x1, 0x2, 0x3, 0x4, 0x5}) Store(Index(BUF1, 1), Local0) Store(DerefOf(Local0), Local1) If (LEqual(Local1, 0x2)) { Return(0) } Else { Return(0x3) } } Method(TST4) { // Index (PKG4, 0) is a Number Store (Index (PKG4, 0), Local0) Store (ObjectType(Local0), Local1) If (LEqual(Local1, 0x1)) { Return(0) } Else { Return(0x4) } } Method(TST5) { // Index (PKG4, 1) is a String Store (Index (PKG4, 1), Local0) Store (ObjectType(Local0), Local1) If (LEqual(Local1, 0x2)) { Return(0) } Else { Return(0x5) } } Method(TST6) { // Index (PKG4, 2) is a Buffer Store (Index (PKG4, 2), Local0) Store (ObjectType(Local0), Local1) If (LEqual(Local1, 0x3)) { Return(0) } Else { Return(0x6) } } Method(TST7) { // Index (PKG4, 3) is a Number Store (Index (PKG4, 3), Local0) Store (ObjectType(Local0), Local1) If (LEqual(Local1, 0x1)) { Return(0) } Else { Return(0x7) } } Method(TST8) { // Index (PKG4, 4) is a Package Store (Index (PKG4, 4), Local0) Store (ObjectType(Local0), Local1) If (LEqual(Local1, 0x4)) { Return(0) } Else { Return(0x8) } } Method(TST9) { // DerefOf (Index (PKG4, 0)) is a Number Store (DerefOf (Index (PKG4, 0)), Local0) If (LEqual(Local0, 0x2)) { Return(0) } Else { Return(0x9) } } Method(TSTA) { // DerefOf (Index (PKG4, 1)) is a String Store (DerefOf (Index (PKG4, 1)), Local0) Store (SizeOf(Local0), Local1) If (LEqual(Local1, 0xE)) { Return(0) } Else { Return(0xA) } } Method(TSTB) { // DerefOf (Index (PKG4, 2)) is a Buffer Store (DerefOf (Index (PKG4, 2)), Local0) Store (SizeOf(Local0), Local1) If (LEqual(Local1, 0x4)) { Return(0) } Else { Return(0xB) } } Method(TSTC) { // DerefOf (Index (PKG4, 3)) is a Number Store (DerefOf (Index (PKG4, 3)), Local0) If (LEqual(Local0, 0x1234)) { Return(0) } Else { Return(0xC) } } Method(TSTD) { // DerefOf (Index (PKG4, 4)) is a Package Store (DerefOf (Index (PKG4, 4)), Local0) Store (SizeOf(Local0), Local1) If (LEqual(Local1, 0x2)) { Return(0) } Else { Return(0xD) } } Method(TSTE) { // DerefOf (Index (PKG4, 2)) is a Buffer Store (DerefOf (Index (PKG4, 2)), Local0) // DerefOf (Index (Local0, 1)) is a Number Store (DerefOf (Index (Local0, 1)), Local1) If (LEqual(Local1, 0xB)) { Return(0) } Else { Return(0xE) } } Method (TSTF,, Serialized) { Name (SRCB, Buffer (12) {}) // 12 characters Store ("Short Buffer", SRCB) Name (DEST, Buffer () // 62 characters plus NULL {"Destination buffer that is longer than the short source buffer"}) // overwrite DEST contents, starting at buffer position 2 Store (SRCB, Index (DEST, 2)) // // The DEST buffer element should be replaced with the last element of // the SRCB element (i.e. 's'->'r') Store (DerefOf (Index (DEST, 2)), Local0) If (LNotEqual (Local0, 0x72)) // 'r' { // DEST element does not match the value from SRCB Return(Or(Local0, 0x1000)) } Return(0) } Method (TSTG,, Serialized) { Name (SRCB, Buffer (12) {}) // 12 characters Store ("Short Buffer", SRCB) Name (DEST, Buffer () // 62 characters plus NULL {"Destination buffer that is longer than the short source buffer"}) // overwrite DEST contents, starting at buffer position 2 Store (SRCB, Index (DEST, 2)) // // The next element of DEST should be unchanged // Store (DerefOf (Index (DEST, 3)), Local0) If (LNotEqual (Local0, 0x74)) // 't' { // DEST has been changed Return(Or(Local0, 0x2000)) } // // The next element of DEST should be unchanged // Store (DerefOf (Index (DEST, 4)), Local0) If (LNotEqual (Local0, 0x69)) // 'i' { // DEST has been changed Return(Or(Local0, 0x2100)) } // // The next element of DEST should be unchanged // Store (DerefOf (Index (DEST, 5)), Local0) If (LNotEqual (Local0, 0x6E)) // 'n' { // DEST has been changed Return(Or(Local0, 0x2200)) } // // The next element of DEST should be unchanged // Store (DerefOf (Index (DEST, 6)), Local0) If (LNotEqual (Local0, 0x61)) // 'a' { // DEST has been changed Return(Or(Local0, 0x2300)) } // // The next element of DEST should be unchanged // Store (DerefOf (Index (DEST, 7)), Local0) If (LNotEqual (Local0, 0x74)) // 't' { // DEST has been changed Return(Or(Local0, 0x2400)) } // // Verify DEST elements beyond end of SRCB buffer copy // have not been changed Store (DerefOf (Index (DEST, 14)), Local0) If (LNotEqual (Local0, 0x66)) // 'f' { // DEST has been changed Return(Or(Local0, 0x2400)) } Return(0) } // // This test shows that MS ACPI.SYS stores only the lower 8-bits of a 32-bit // number into the index'ed buffer // Method (TSTH,, Serialized) { // Create a Destination Buffer Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) // Store a number > UINT8 into an index of the buffer Store (0x12345678, Index(DBUF, 2)) // Check the results Store (DerefOf (Index (DBUF, 2)), Local0) If (LNotEqual (Local0, 0x78)) // 0x78 { Return(Or(Local0, 0x3000)) } Store (DerefOf (Index (DBUF, 3)), Local0) If (LNotEqual (Local0, 0x64)) // 'd' { Return(Or(Local0, 0x3100)) } Store (DerefOf (Index (DBUF, 4)), Local0) If (LNotEqual (Local0, 0x65)) // 'e' { Return(Or(Local0, 0x3200)) } Store (DerefOf (Index (DBUF, 5)), Local0) If (LNotEqual (Local0, 0x66)) // 'f' { Return(Or(Local0, 0x3300)) } Return(0) } Method (TSTI,, Serialized) { // Create a Destination Buffer Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) // Store a String into an index of the buffer Store ("ABCDEFGH", Index(DBUF, 2)) // Check the results Store (DerefOf (Index (DBUF, 2)), Local0) If (LNotEqual (Local0, 0x48)) // 'H' { Return(Or(Local0, 0x4000)) } Store (DerefOf (Index (DBUF, 3)), Local0) If (LNotEqual (Local0, 0x64)) // 'd' { Return(Or(Local0, 0x4100)) } Store (DerefOf (Index (DBUF, 4)), Local0) If (LNotEqual (Local0, 0x65)) // 'e' { Return(Or(Local0, 0x4200)) } Store (DerefOf (Index (DBUF, 5)), Local0) If (LNotEqual (Local0, 0x66)) // 'f' { Return(Or(Local0, 0x4300)) } Return(0) } Method(TSTJ,, Serialized) { // Create a Destination Buffer Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) // Store a number > UINT8 into an index of the buffer Store (0x1234, Index(DBUF, 2)) // Check the results Store (DerefOf (Index (DBUF, 2)), Local0) If (LNotEqual (Local0, 0x34)) // 0x34 { Return(Or(Local0, 0x3000)) } Store (DerefOf (Index (DBUF, 3)), Local0) If (LNotEqual (Local0, 0x64)) // 'd' { Return(Or(Local0, 0x3100)) } Store (DerefOf (Index (DBUF, 4)), Local0) If (LNotEqual (Local0, 0x65)) // 'e' { Return(Or(Local0, 0x3200)) } Store (DerefOf (Index (DBUF, 5)), Local0) If (LNotEqual (Local0, 0x66)) // 'f' { Return(Or(Local0, 0x3300)) } Return(0) } Method(TSTK,, Serialized) { // Create a Destination Buffer Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) // Store a number > UINT8 into an index of the buffer Store (0x123456, Index(DBUF, 2)) // Check the results Store (DerefOf (Index (DBUF, 2)), Local0) If (LNotEqual (Local0, 0x56)) // 0x56 { Return(Or(Local0, 0x3000)) } Store (DerefOf (Index (DBUF, 3)), Local0) If (LNotEqual (Local0, 0x64)) // 'd' { Return(Or(Local0, 0x3100)) } Store (DerefOf (Index (DBUF, 4)), Local0) If (LNotEqual (Local0, 0x65)) // 'e' { Return(Or(Local0, 0x3200)) } Store (DerefOf (Index (DBUF, 5)), Local0) If (LNotEqual (Local0, 0x66)) // 'f' { Return(Or(Local0, 0x3300)) } Return(0) } Method(TSTL,, Serialized) { // Create a Destination Buffer Name (DBUF, Buffer () {"abcdefghijklmnopqrstuvwxyz"}) // Store a number > UINT8 into an index of the buffer Store (0x12, Index(DBUF, 2)) // Check the results Store (DerefOf (Index (DBUF, 2)), Local0) If (LNotEqual (Local0, 0x12)) // 0x12 { Return(Or(Local0, 0x3000)) } Store (DerefOf (Index (DBUF, 3)), Local0) If (LNotEqual (Local0, 0x64)) // 'd' { Return(Or(Local0, 0x3100)) } Store (DerefOf (Index (DBUF, 4)), Local0) If (LNotEqual (Local0, 0x65)) // 'e' { Return(Or(Local0, 0x3200)) } Store (DerefOf (Index (DBUF, 5)), Local0) If (LNotEqual (Local0, 0x66)) // 'f' { Return(Or(Local0, 0x3300)) } Return(0) } Method(TEST) { Store ("++++++++ IndexOp7 Test", Debug) Store(TST1(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TST2(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TST3(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TST4(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TST5(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TST6(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TST7(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TST8(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TST9(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TSTA(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TSTB(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TSTC(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TSTD(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TSTE(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } /* No longer ACPI compliant */ /* Store(TSTF(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } */ Store(TSTG(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TSTH(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } /* No longer ACPI compliant */ /* Store(TSTI(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } */ Store(TSTJ(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TSTK(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Store(TSTL(), Local0) if (LGreater (Local0, 0)) { Return(Local0) } Return(Local0) } } // Device(IDX7) // // test MatchOp.asl // // MatchOp test cases that utilize nested DerefOf(Index(...)) to validate // MatchOp, DerefOfOp, and IndexOp of nested packages. // Device (MTCH) { Method (TEST,, Serialized) { Store ("++++++++ MatchOp Test", Debug) Name (TIM0, Package () { Package () {0x78, 0xB4, 0xF0, 0x0384}, Package () {0x23, 0x21, 0x10, 0}, Package () {0x0B, 9, 4, 0}, Package () {0x70, 0x49, 0x36, 0x27, 0x19}, Package () {0, 1, 2, 1, 2}, Package () {0, 0, 0, 1, 1}, Package () {4, 3, 2, 0}, Package () {2, 1, 0, 0} }) // TIM0 Name (TMD0, Buffer (20) {0xFF, 0xFF, 0xFF, 0xFF }) CreateDWordField (TMD0, 0, PIO0) // 0xFFFFFFFF CreateDWordField (TMD0, 4, DMA0) CreateDWordField (TMD0, 8, PIO1) CreateDWordField (TMD0, 12, DMA1) CreateDWordField (TMD0, 16, CHNF) // validate PIO0 value Store (PIO0, Local3) // save Local3 object type value into Local2 Store (ObjectType (Local3), Local2) // validate Local3 is a Number If (LNotEqual (Local2, 1)) // Number type is 1 { Return (2) } // failure // validate Local3 Number value If (LNotEqual (Local3, 0xFFFFFFFF)) // Number value 0xFFFFFFFF { Return (3) } // failure Store ("DWordField PASS", Debug) Store (0, Local5) Store (Match (DerefOf (Index (TIM0, 1, )), MLE, Local5, MTR, 0, 0), Local6) // save Local6 object type value into Local2 Store (ObjectType (Local6), Local2) // validate Local6 is a Number If (LNotEqual (Local2, 1)) // Number type is 1 { Return (4) } // failure Store ("Match(DerefOf(Index(TIM0,1)),... PASS", Debug) // validate following produces a nested package to validate // that MatchOp did not corrupt SearchPackage (TIM0) Store (DerefOf (Index (TIM0, 1, )), Local4) // save Local4 object type value into Local2 Store (ObjectType (Local4), Local2) // validate Local4 is a Package If (LNotEqual (Local2, 4)) // Package type is 4 { Return (5) } // failure Store ("DerefOf(Index(TIM0,1)),... PASS", Debug) And (Match (DerefOf (Index (TIM0, 0, )), MGE, PIO0, MTR, 0, 0), 3, Local0) // save Local0 object type value into Local2 Store (ObjectType (Local0), Local2) // validate Local0 is a Number If (LNotEqual (Local2, 1)) // Number type is 1 { Return (6) } // failure // validate Local0 Number value If (LNotEqual (Local0, 3)) // Number value 3 { Return (7) } // failure Store ("And(Match(DerefOf(Index(TIM0,0)),... PASS", Debug) // again, validate following produces a nested package Store (DerefOf (Index (TIM0, 1, )), Local4) // save Local4 object type value into Local2 Store (ObjectType (Local4), Local2) // validate Local4 is a Package If (LNotEqual (Local2, 4)) // Package type is 4 { Return (8) } // failure Store ("DerefOf(Index(TIM0,1)),... PASS again", Debug) // again, validate following produces a nested package Store (DerefOf (Index (TIM0, 1, )), Local4) // save Local4 object type value into Local2 Store (ObjectType (Local4), Local2) // validate Local4 is a Package If (LNotEqual (Local2, 4)) // Package type is 4 { Return (9) } // failure Store ("DerefOf(Index(TIM0,1)),... PASS again", Debug) // test nested DerefOf(Index) operators Store (DerefOf (Index (DerefOf (Index (TIM0, 1, )), Local0, )), Local1) // save Local1 object type value into Local2 Store (ObjectType (Local1), Local2) // validate Local1 is a Number If (LNotEqual (Local2, 1)) // Number type is 1 { Return (10) } // failure // zero indicates pass, non-zero is an error code If (LNotEqual (Local1, 0)) { Return (11) } // failure Store ("DerefOf(Index(DerefOf(Index(TIM0,1)),... PASS", Debug) // again, validate following produces a nested package Store (DerefOf (Index (TIM0, 1, )), Local4) // save Local4 object type value into Local2 Store (ObjectType (Local4), Local2) // validate Local4 is a Package If (LNotEqual (Local2, 4)) // Package type is 4 { Return (12) } // failure Store ("DerefOf(Index(TIM0,1)),... PASS again", Debug) // retest nested DerefOf(Index) operators Store (DerefOf (Index (DerefOf (Index (TIM0, 1, )), Local0, )), Local1) // save Local1 object type value into Local2 Store (ObjectType (Local1), Local2) // validate Local1 is a Number If (LNotEqual (Local2, 1)) // Number type is 1 { Return (13) } // failure // zero indicates pass, non-zero is an error code If (LNotEqual (Local1, 0)) { Return (14) } // failure Store ("DerefOf(Index(DerefOf(Index(TIM0,1)),... PASS again", Debug) // again, validate following produces a nested package Store (DerefOf (Index (TIM0, 1, )), Local4) // save Local4 object type value into Local2 Store (ObjectType (Local4), Local2) // validate Local4 is a Package If (LNotEqual (Local2, 4)) // Package type is 4 { Return (15) } // failure Store ("DerefOf(Index(TIM0,1)),... PASS again", Debug) Return (0) // pass } // TEST } // MTCH // // test WhileBrk.asl // // This code tests the Break term and While term // // Syntax of Break term // BreakTerm := Break // The break operation causes the current package execution to complete. // // Syntax of While Term // WhileTerm := While( // Predicate //TermArg=>Integer // ) {TermList} // Predicate is evaluated as an integer. // If the integer is non-zero, the list of terms in TermList is executed. // The operation repeats until the Predicate evaluates to zero. // // MTL NOTE: This test has been modified to reflect ACPI 2.0 break // NOTE: This test, when run under the MS ACPI.SYS grinds the system to // a halt. // Device (WHLB) { Name (CNT0, 0) Name (CNT1, 0) Method (TEST) { // Check Break statement nested in If nested in While nested in // While only exits inner-most While loop Store (0, CNT0) While (LLess (CNT0, 4)) { Store (0, CNT1) While (LLess (CNT1, 10)) { if (LEqual (CNT1, 1)) { Break // exit encompassing loop } Increment (CNT1) } If (LNotEqual (CNT1, 1)) { // failure Return (7) } Increment (CNT0) } // Verify Break only exited inner-most While loop If (LNotEqual (CNT0, 4)) { // failure Return (8) } Store ("While/While/If/Break PASS", Debug) Store ("++++++++ WhileBrk Test", Debug) // Check Break statement nested in While Store (0, CNT0) While (LLess (CNT0, 10)) { Break // exit encompassing package Increment (CNT0) } If (LNotEqual (CNT0, 0)) // instruction after Break executed { Return (4) } Store (0, CNT0) // Test While Term While (LLess (CNT0, 10)) { Increment (CNT0) } // Check if the while loop was executed until the condition is satisfied. If (LNotEqual (CNT0, 10)) { Return (1) } // While loop in a reverse order While (LGreater (CNT0, 0)) { Decrement (CNT0) } // Check if the while loop was executed until the condition is satisfied. If (LNotEqual (CNT0, 0)) { Return (2) } Store ("While/Break PASS", Debug) // Check Break statement nested in If nested in While Store (0, CNT0) While (LLess (CNT0, 10)) { if (LEqual (CNT0, 5)) { Break // exit encompassing Package (If) // if we execute the next instruction, // Break did not exit the loop Store (20, CNT0) // exit While loop with value larger // than above } Increment (CNT0) // check if Break exited both If and While } // While If (LGreater (CNT0, 19)) { // instruction after Break inside IfOp executed Return (5) } // // Break will exit out of the while loop, therefore // the CNT0 counter should still Increment until 5 // If (LNotEqual (CNT0, 5)) { // instruction after Break inside WhileOp executed Return (6) } Store ("While/If/Break PASS", Debug) // All the conditions passed Return (0) } // TEST } // WHLB // // test IndexOp2.asl // // Additional IndexOp test cases to support ACPICMB (control method battery // test) on Toshiba Portege 7020CT. Test cases include appropriate bit // shifting of Field elements and reading Field elements greater than 64 bits. // // MTL NOTE: This test has been modified slightly from the original test // to take into account ACPI specification limitations. // Scope (\_SB) // System Bus { // _SB system bus Device (MEM) { // MEM Name (_HID, 0x010CD041) Name (_STA, 0x0F) OperationRegion (SMEM, SystemMemory, 0x800000, 0x100) Field (SMEM, AnyAcc, NoLock, Preserve) { // Field: SMEM overlay using 32-bit field elements SMD0, 32, // 32-bits SMD1, 32, // 32-bits SMD2, 32, // 32-bits SMD3, 32 // 32-bits } // Field: SMEM overlay using 32-bit field elements Field (SMEM, AnyAcc, NoLock, Preserve) { // Field: SMEM overlay using greater than 32-bit field elements SME0, 69, // larger than an integer (32 or 64) SME1, 97 // larger than an integer } // Field: SMEM overlay using greater than 32-bit field elements OperationRegion (SRAM, SystemMemory, 0x100B0000, 0xF000) Field (SRAM, AnyAcc, NoLock, Preserve) { // Field: SRAM overlay , 0x34000, // skip IEAX, 0x20, IEBX, 0x20, IECX, 0x20, IEDX, 0x20, IESI, 0x20, IEDI, 0x20, IEBP, 0x20, , 0x20, OEAX, 0x20, OEBX, 0x20, OECX, 0x20, OEDX, 0x20, OESI, 0x20, OEDI, 0x20, OEBP, 0x20, , 0x618, // skip ACST, 1, BES1, 1, BES2, 1, , 5, // skip BMN1, 0x68, BSN1, 0x58, BTP1, 0x48, BPU1, 0x20, BDC1, 0x20, BLF1, 0x20, BTC1, 0x20, BDV1, 0x20, BST1, 0x20, BPR1, 0x20, BRC1, 0x20, BPV1, 0x20, , 0x20, BCW1, 0x20, BCL1, 0x20, BG11, 0x20, BG21, 0x20, BOI1, 0x20, , 0x530, // skip BMN2, 0x68, BSN2, 0x58, BTP2, 0x48, BPU2, 0x20, BDC2, 0x20, BLF2, 0x20, BTC2, 0x20, BDV2, 0x20, BST2, 0x20, BPR2, 0x20, BRC2, 0x20, BPV2, 0x20, , 0x20, BCW2, 0x20, BCL2, 0x20, BG12, 0x20, BG22, 0x20, BOI2, 0x20, , 0x518, // skip AC01, 0x10, AC11, 0x10, PSV1, 0x10, CRT1, 0x10, TMP1, 0x10, AST1, 0x10, AC21, 0x10, AC31, 0x10, AC02, 0x10, AC12, 0x10, PSV2, 0x10, CRT2, 0x10, TMP2, 0x10, AST2, 0x10, AC22, 0x10, AC32, 0x10, AC03, 0x10, AC13, 0x10, PSV3, 0x10, CRT3, 0x10, TMP3, 0x10, AST3, 0x10, AC23, 0x10, AC33, 0x10, , 0x80, // skip TMPF, 0x10, , 0x570, // skip FANH, 1, FANL, 7, TF11, 1, TF21, 1, TF31, 1, , 1, TF10, 1, TF20, 1, TF30, 1, , 1, TP11, 1, TP21, 1, TP31, 1, , 0x6D, // 109 GP50, 1, GP51, 1, GP52, 1, GP53, 1, , 4, GP60, 1, GP61, 1, GP62, 1, GP63, 1, GP64, 1, GP65, 1, GP66, 1, , 1, GP70, 1, GP71, 1, GP72, 1, GP73, 1, GP74, 1, GP75, 1, GP76, 1, , 1, WED0, 1, WED1, 1, WED2, 1, WED3, 1, WED4, 1, , 3, SBL0, 1, SBL1, 1, SBL2, 1, SBL3, 1, , 4, LIDS, 1, VALF, 1, , 2, DCKI, 1, DCKF, 1, BT1F, 1, BT2F, 1, , 0x7D0, // skip HKCD, 8, , 8, DLID, 0x20, DSRN, 0x20, , 0x20, BDID, 0x20, DSPW, 1, VGAF, 1, VWE0, 1, VWE1, 1, PPSC, 1, SPSC, 1, EWLD, 1, EWPS, 1, , 0x1768, // skip PRES, 0x8000 } // Field: SRAM overlay } // MEM Device (BAT1) { // BAT1 Name (_HID, EISAID ("PNP0C0A")) // Control Method Battey ID Name (_UID, 1) Name (_PCL, Package (1) {\_SB}) Method (_STA) { // _STA If (\_SB.MEM.BES1) { Return (0x1F) } // battery present Else { Return (0x0F) } // battery not present } // _STA Method (_BIF,, Serialized) { // _BIF Name (BUFR, Package (13) {}) Store (\_SB.MEM.BPU1, Index (BUFR, 0)) Store (\_SB.MEM.BDC1, Index (BUFR, 1)) Store (\_SB.MEM.BLF1, Index (BUFR, 2)) Store (\_SB.MEM.BTC1, Index (BUFR, 3)) Store (\_SB.MEM.BDV1, Index (BUFR, 4)) Store (\_SB.MEM.BCW1, Index (BUFR, 5)) Store (\_SB.MEM.BCL1, Index (BUFR, 6)) Store (\_SB.MEM.BG11, Index (BUFR, 7)) Store (\_SB.MEM.BG21, Index (BUFR, 8)) Store (\_SB.MEM.BMN1, Index (BUFR, 9)) Store (\_SB.MEM.BSN1, Index (BUFR, 10)) Store (\_SB.MEM.BTP1, Index (BUFR, 11)) Store (\_SB.MEM.BOI1, Index (BUFR, 12)) Return (BUFR) } // _BIF } // BAT1 Device (IDX2) { Method (B2IB,, Serialized) { // B2IB: store from Buffer into Index'ed Buffer Name (SRCB, Buffer () {"Short Buffer"}) // 12 characters plus NULL Name (DEST, Buffer () // 62 characters plus NULL {"Destination buffer that is longer than the short source buffer"}) // verify object type returned by Index(Buffer,Element,) Store (Index (DEST, 2, ), Local1) Store (ObjectType (Local1), Local2) If (LNotEqual (Local2, 14)) // Buffer Field is type 14 { // Local2 indicates Local1 is not a Buffer Field Return (0x61) } // verify object type and value returned by DerefOf(Index(Buffer,Element,)) // should return Number containing element value Store (DerefOf (Local1), Local3) Store (ObjectType (Local3), Local4) If (LNotEqual (Local4, 1)) // Number is type 1 { // Local2 indicates Local1 is not a Number Return (0x62) } Else { If (LNotEqual (Local3, 0x73)) // expect 's' element from DEST { Return (0x63) } } Store ("DerefOf(Index(Buffer,,)) PASS", Debug) // // The following sections have been rewritten because storing into // an Indexed buffer only changes one byte - the FIRST byte of the // buffer is written to the source index. This is the ONLY byte // written -- as per ACPI 2.0 // // Overwrite DEST contents, at buffer position 2 [only] Store (SRCB, Index (DEST, 2, )) // // Check that the next byte is not changed // Store (DerefOf (Index (DEST, 3, )), Local0) If (LNotEqual (Local0, 0x74)) // 't' { // DEST element is not matching original value If (LEqual (Local0, 0x68)) { // DEST element was altered to 'h' Return (0x68) } Else { // DEST element is an unknown value Return (0x69) } } // // Check that the elements beyond the SRCB buffer copy // have not been altered. // Store (DerefOf (Index (DEST, 14)), Local0) // // This should be an 'f'. // If (LNotEqual (Local0, 0x66)) { // DEST element was zero'd by buffer copy If (LEqual (Local0, 0)) { // DEST element is zero Return (0x6A) } Else { // DEST element is unknown value Return (0x6B) } } Store ("Store(SRCB,Index(Buffer,,)) PASS", Debug) // // verify altering SRCB does NOT alter DEST // Store (0x6A, Index (SRCB, 1)) // SRCB = "Sjort Buffer" Store (DerefOf (Index (SRCB, 1)), Local0) If (LNotEqual (Local0, 0x6A)) // 'j' { // SRCB element is unaltered Return (0x71) } Store (DerefOf (Index (DEST, 3)), Local0) // DEST = "Destination buffer that... If (LNotEqual (Local0, 0x74)) // 't' { // DEST element is altered If (LEqual (Local0, 0x6A)) // 'j' { // SRCB change altered DEST element Return (0x72) } Else { // DEST element is unknown value Return (0x73) } } // verify altering DEST does NOT alter SRCB Store (0x6B, Index (DEST, 4, )) // DEST = "DeSkination buffer..." Store (DerefOf (Index (DEST, 4, )), Local0) If (LNotEqual (Local0, 0x6B)) // 'k' { // DEST element is unaltered Return (0x74) } Store (DerefOf (Index (SRCB, 2, )), Local0) If (LNotEqual (Local0, 0x6F)) // 'o' { // SRC element is altered If (LEqual (Local0, 0x6B)) // 'k' { // DEST change altered SRCB element Return (0x75) } Else { // SRCB element is unknown value Return (0x76) } } Store ("SRCB and DEST independent PASS", Debug) // verify string can be written to Index target/destination // Only FIRST byte is written Store ("New Buff", Index (DEST, 2, )) // DEST = "DeNkination buffer..." Store (DerefOf (Index (DEST, 2, )), Local0) If (LNotEqual (Local0, 0x4E)) // 'N' { // DEST element is unaltered Return (0x81) } Store (DerefOf (Index (DEST, 6, )), Local0) If (LNotEqual (Local0, 0x61)) // 'a' { // DEST element is unaltered Return (0x82) } Store (DerefOf (Index (DEST, 10, )), Local0) If (LNotEqual (Local0, 0x6E)) // 'n' { // DEST element is unaltered Return (0x83) } Store ("Store(String,Index) PASS", Debug) Return (0) // pass } // B2IB: store from Buffer into Index'ed Buffer Method (FB2P,, Serialized) { // FB2P: store from Field Buffer into Index'ed Package Name (DEST, Package (2) {}) // initialize memory using 32-bit field elements Store (0x01234567, \_SB.MEM.SMD0) Store (0x89ABCDEF, \_SB.MEM.SMD1) Store (0xFEDCBA98, \_SB.MEM.SMD2) Store (0x76543210, \_SB.MEM.SMD3) // move greater than 64-bit buffers into DEST package Store (\_SB.MEM.SME0, Index (DEST, 0)) Store (\_SB.MEM.SME1, Index (DEST, 1)) // validate DEST contents Store (DerefOf (Index (DEST, 0, )), Local0) Store (DerefOf (Index (DEST, 1, )), Local1) // verify Local0 and Local1 are Buffers Store (ObjectType (Local0), Local2) if (LNotEqual (Local2, 3)) // Buffer type is 3 { Return (0x11) } Store (ObjectType (Local1), Local3) if (LNotEqual (Local3, 3)) // Buffer type is 3 { Return (0x12) } // validate DEST buffer contents Store (DerefOf (Index (DerefOf (Index (DEST, 0)), 0)), Local4) If (LNotEqual (Local4, 0x67)) { Return (0x13) } Store (DerefOf (Index (DerefOf (Index (DEST, 0)), 1)), Local4) If (LNotEqual (Local4, 0x45)) { Return (0x14) } Store (DerefOf (Index (DerefOf (Index (DEST, 0)), 4)), Local4) If (LNotEqual (Local4, 0xEF)) { Return (0x15) } Store (DerefOf (Index (DerefOf (Index (DEST, 0, )), 5, )), Local4) If (LNotEqual (Local4, 0xCD)) { Return (0x16) } Store ("Store(Mem,PkgElement) PASS", Debug) // validate changing source \_SB.MEM.SMD* does not impact DEST Store (0x12345678, \_SB.MEM.SMD0) Store (DerefOf (Index (DerefOf (Index (DEST, 0, )), 0, )), Local5) If (LNotEqual (Local5, 0x67)) { Return (0x21) } Store (DerefOf (Index (DerefOf (Index (DEST, 0, )), 1, )), Local5) If (LNotEqual (Local5, 0x45)) { Return (0x22) } // validate changing DEST does not impact source \_SB.MEM.SMD* Store (0x30, Index (DerefOf (Index (DEST, 0)), 0)) Store (DerefOf(Index (DerefOf (Index (DEST, 0)), 0)), Local5) If (LNotEqual (Local5, 0x30)) { Return (0x23) } // // This section was modified from the original iPCO code because // it attempted to compare two buffers. This is not allowed until // ACPI v2.0, so the test has been modified to just check the // changed \_SB.MEM.SMD0 // Store (\_SB.MEM.SMD0, Local5) If(LNotEqual(Local5, 0x12345678)) { Return (0x24) } Store ("Mem and Pkg independent PASS", Debug) Return (0) } // FB2P: store from Field Buffer into Index'ed Package Method (TEST) { Store ("++++++++ IndexOp2 Test", Debug) // store _BIF package return value into Local0 Store (\_SB.BAT1._BIF, Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Package If (LNotEqual (Local1, 4)) // Package type is 4 { // failure Return (2) } // validate source and destination buffers are independent of each // of each other (i.e., changing one's contents does not change // other's contents) using B2IB (store from Buffer into Index'ed // Buffer) and FB2P (store from Field Buffer into Index'ed Package) // call B2IB (store from Buffer into Index'ed Buffer) Store (B2IB, Local2) // Local2 is B2IB return value // save Local2 object type value into Local3 Store (ObjectType (Local2), Local3) // validate Local2 is a Number If (LNotEqual (Local3, 1)) // Number type is 1 { // failure Return (4) } // zero indicates pass, non-zero is an error code If (LNotEqual (Local2, 0)) { // return B2IB error code Return (Local2) } // call FB2P (store from Field Buffer into Index'ed Package) Store (FB2P, Local2) // Local2 is FB2P return value // save Local2 object type value into Local3 Store (ObjectType (Local2), Local3) // validate Local2 is a Number If (LNotEqual (Local3, 1)) // Number type is 1 { // failure Return (5) } // zero indicates pass, non-zero is an error code If (LNotEqual (Local2, 0)) { // return FB2P error code Return (Local2) } Return (0) } // TEST } // IDX2: Test device name } // _SB system bus // // test SizeOf.asl // // Test for SizeOf // test cases include following SizeOf arguments: // buffer, buffer field; // control method argument, control method local variable; // control method return values; // direct string, string; // package; // buffer, package, and string package elements // // MTL NOTE: This test has been modified to remove any SizeOf(Index(Buff,... // calls because it is not legal to perform a SizeOf operation on a Buffer Field. // This test has also been extended to test additional Package element sizes. // Device (SIZO) { // SAR0 control method validates SizeOf(Arg) // SAR0 should only be called by SARG Method (SAR0, 2) // Arg0 object to determine size of // Arg1 expected Arg length { // SAR0: SizeOf(Arg) test control method // Local0 Arg0 length // Local1 Local0 object type // Store first string size (Arg0) into Local7 Store (SizeOf (Arg0), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x21) } // If strings are not of equal size, return error code If (LNotEqual (Local0, Arg1)) { Return (0x22) } Return (0) } // SAR0: SizeOf(Arg) test control method Method (SARG,, Serialized) { // SARG: SizeOf(Arg) test control method Name (BUFR, Buffer (12) {}) // uninitialized Buffer Name (BUF1, Buffer() {0x01, 0x02, 0x03, 0x04, 0x05}) Name (PKG0, Package (4) {}) // uninitialized Package Name (STR0, "String") Name (PKG1, Package (4) { BUFR, "String2", STR0, PKG0 }) // PKG1 Name (PKG2, Package (4) { Buffer (15) {}, "String 1", Package (2) {} }) // PKG2 // Namespace entry buffer reference Store (SAR0 (BUFR, 12), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x23) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=BUFR) PASS", Debug) // Namespace entry package reference Store (SAR0 (PKG0, 4), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x24) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=PKG0) PASS", Debug) // Namespace entry string reference Store (SAR0 (STR0, 6), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x25) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=STR0) PASS", Debug) // direct string reference Store (SAR0 ("String", 6), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x26) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=String) PASS", Debug) Store (0x55, Index (BUF1, 2)) /**************************************************** // // This section is commented because it is illegal to // perform a SizeOf operation on a Buffer Field // // Namespace BufferField reference Store (SAR0 (Index (BUFR, 2, ), 10), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x27) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=BufferField) PASS", Debug) ****************************************************/ // Namespace BufferPackageElement reference // Store (SAR0 (Index(PKG1, 0), 12), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x28) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=PackageBuffer NTE Reference Element) PASS", Debug) // Namespace StringPackageElement reference Store (SAR0 (Index (PKG1, 1, ), 7), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x29) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=Package String Element) PASS", Debug) // Namespace StringPackageElement reference Store (SAR0 (Index (PKG1, 2, ), 6), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x2A) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=Package String NTE Reference Element) PASS", Debug) // Namespace PackagePackageElement reference Store (SAR0 (Index (PKG1, 3, ), 4), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x2B) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=Package Package NTE Reference Element) PASS", Debug) // Package Buffer Element Store (SAR0 (Index (PKG2, 0), 15), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x2B) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=Package Buffer Element) PASS", Debug) // Package String Element Store (SAR0 (Index (PKG2, 1), 8), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x2B) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=Package String Element) PASS", Debug) // Package Package Element Store (SAR0 (Index (PKG2, 2), 2), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x2B) } If (LNotEqual (Local0, 0)) // Local0 is SAR0 return error code { Return (Local0) } Store ("SizeOf(Arg=Package Package Element) PASS", Debug) Store ("SizeOf(Arg) PASS", Debug) Return (0) } // SARG: SizeOf(Arg) test control method Method (SBUF,, Serialized) { // SBUF: SizeOf(Buffer) test control method Name (BUFR, Buffer (12) {}) // store size of BUFR buffer into Local0 Store (SizeOf (BUFR), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x31) } If (LNotEqual (Local0, 12)) // BUFR size is 12 { Return (0x32) } Store ("SizeOf(BUFR) PASS", Debug) Return (0) } // SBUF: SizeOf(Buffer) test control method /**************************************************** // // This section is commented because it is illegal to // perform a SizeOf operation on a Buffer Field // Method (SIND) { // SIND: SizeOf(Index(,,)) test control method Name (BUFR, Buffer (12) {}) // store size of Index(BUFR,2,) buffer into Local0 Store (SizeOf (Index (BUFR, 2, )), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x41) } If (LNotEqual (Local0, 10)) // 12 - 2 = 10 { Return (0x42) } Store ("SizeOf(Index(BUFR,,)) PASS", Debug) // TBD: strings and packages Return (0) } // SIND: SizeOf(Index(,,)) test control method ****************************************************/ Method (SLOC,, Serialized) { // SLOC: SizeOf(Local) test control method Name (BUFR, Buffer (12) {}) // uninitialized Buffer Name (STR0, "String") Name (PKG0, Package (4) {}) // uninitialized Package // store BUFR Buffer into Local2 Store (BUFR, Local2) // store size of BUFR buffer into Local0 Store (SizeOf (Local2), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x51) } If (LNotEqual (Local0, 12)) // BUFR size is 12 { Return (0x52) } Store ("SizeOf(Local2=Buffer) PASS", Debug) // store STR0 string into Local2 Store (STR0, Local2) // store size of STR0 buffer into Local0 Store (SizeOf (Local2), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x53) } If (LNotEqual (Local0, 6)) // STR0 size is 6 { Return (0x54) } Store ("SizeOf(Local2=String) PASS", Debug) // store PKG0 Package into Local2 Store (PKG0, Local2) // store size of PKG0 buffer into Local0 Store (SizeOf (Local2), Local0) // save Local0 object type value into Local1 Store (ObjectType (Local0), Local1) // validate Local0 is a Number If (LNotEqual (Local1, 1)) // Number type is 1 { Return (0x55) } If (LNotEqual (Local0, 4)) // PKG0 size is 4 { Return (0x56) } Store ("SizeOf(Local2=Package) PASS", Debug) Return (0) } // SLOC: SizeOf(Local) test control method Method (TEST) { Store ("++++++++ SizeOf Test", Debug) // Store current operating system string into Local0 Store (_OS, Local0) Store (SizeOf (_OS), Local3) // save Local3 object type value into Local4 Store (ObjectType (Local3), Local4) // validate Local3 is a Number If (LNotEqual (Local4, 1)) // Number type is 1 { // failure Return (0x61) } // Store current operating system string into Local0 // This verifies above SizeOf(_OS) did not corrupt ACPI namespace Store (_OS, Local0) // Store SARG [Validate SizeOf(Arg)] return value into Local1 Store (SARG, Local1) // save Local1 object type value into Local2 Store (ObjectType (Local1), Local2) // validate Local1 is a Number If (LNotEqual (Local2, 1)) // Number type is 1 { // failure Return (0x62) } // zero indicates pass, non-zero is an error code If (LNotEqual (Local1, 0)) { // return SARG error code Return (Local1) } // Store SBUF [Validate SizeOf(Buffer)] return value into Local1 Store (SBUF, Local1) // save Local1 object type value into Local2 Store (ObjectType (Local1), Local2) // validate Local1 is a Number If (LNotEqual (Local2, 1)) // Number type is 1 { // failure Return (0x63) } // zero indicates pass, non-zero is an error code If (LNotEqual (Local1, 0)) { // return SBUF error code Return (Local1) } /**************************************************** // // This section is commented because it is illegal to // perform a SizeOf operation on a Buffer Field // // Store SIND [verify SizeOf(Index(,,))] return value into Local1 Store (SIND, Local1) // save Local1 object type value into Local2 Store (ObjectType (Local1), Local2) // validate Local1 is a Number If (LNotEqual (Local2, 1)) // Number type is 1 { // failure Return (0x64) } // zero indicates pass, non-zero is an error code If (LNotEqual (Local1, 0)) { // return SARG error code Return (Local1) } ****************************************************/ // Store SLOC [verify SizeOf(Local)] return value into Local1 Store (SLOC, Local1) // save Local1 object type value into Local2 Store (ObjectType (Local1), Local2) // validate Local1 is a Number If (LNotEqual (Local2, 1)) // Number type is 1 { // failure Return (0x65) } // zero indicates pass, non-zero is an error code If (LNotEqual (Local1, 0)) { // return SLOC error code Return (Local1) } // TBD: SizeOf (METH) -- where METH control method returns // buffer, BufferField, string, package, package element Return (0) } // TEST } // SIZO // // test SmiShare.asl // Scope (\_SB) // System Bus { // _SB system bus // Declare an OpRegion in Memory starting at offset 0x400000 that is 10 bytes long OperationRegion(RAM1, SystemMemory, 0x400000, 0xA) Field (RAM1, AnyAcc, NoLock, Preserve) { BI1T, 1, // Create some bits in memory to access BI2T, 2, BI3T, 3, LST2, 2 } // End Field RAM1 Field (RAM1, WordAcc, NoLock, WriteAsZeros) { WRD, 16 } // End 2nd Field RAM1 Field (RAM1, ByteAcc, NoLock, WriteAsOnes) { BYTE, 8 } // End 3rd Field RAM1 Field (RAM1, ByteAcc, NoLock, Preserve) { SMIC, 8, SMID, 8 } Device (MBIT) { Method (_INI) { Store (0, BI1T) Store (3, BI2T) Store (7, BI3T) Store (0, LST2) } // End _INI Method } // End Device MBIT Device (MWRD) { Method (_INI) { Store (0, WRD) } // End _INI Method } // End Device MWRD Device (MBYT) { Method (_INI) { Store (0, BYTE) Store (0xC, SMIC) Store (0xD, SMID) } // End _INI Method } // End Device MBYT /* // Declare an OpRegion in Memory starting at offset 0x400000 that is 10 bytes long OperationRegion(\RAM1, SystemMemory, 0x400000, 0xA) Field (\RAM1, AnyAcc, NoLock, Preserve) { BI1T, 1, // Create some bits in memory to access BI2T, 2, BI3T, 3, LST2, 2 } // End Field RAM1 Field (\RAM1, WordAcc, NoLock, WriteAsZeros) { WRD, 16 } // End 2nd Field RAM1 Field (\RAM1, ByteAcc, NoLock, WriteAsOnes) { BYTE, 8 } // End 3rd Field RAM1 Field (\RAM1, ByteAcc, NoLock, Preserve) { SMIC, 8, SMID, 8 } */ Method (SMIX) { Return (BYTE) } // End SMIX Method (EVNT) { Store (SMIX, Local0) Notify (\_SB_, 0x29) If (And (Local0, 0x01)) { Notify (\_SB_.SMIS, 0x21)} If (And (Local0, 0x02)) { Notify (\_SB_.SMIS, 0x22)} If (And (Local0, 0x04)) { Notify (\_SB_.SMIS, 0x24)} If (And (Local0, 0x08)) { Notify (\_SB_.SMIS, 0x28)} } // End Method EVNT Method (NTFY) { Notify (\_SB_, 1) Notify (\_TZ_.TZ1, 2) Notify (\_PR_.CPU0, 3) Notify (\_SB_, 0x81) Notify (\_TZ_.TZ1, 0x82) Notify (\_PR_.CPU0, 0x83) } Device (SMIS) { Method (BINK) { Store (0, Local0) // Zero out Local0 If (LNotEqual (SMID, 0xD)) { Or (0x80, Local0, Local0)} If (LNotEqual (SMIC, 0xC)) { Or (0x40, Local0, Local0)} If (LNotEqual (BYTE, 0)) { Or (0x20, Local0, Local0)} If (LNotEqual (WRD, 0)) { Or (0x10, Local0, Local0)} If (LNotEqual (LST2, 0)) { Or (0x8, Local0, Local0)} If (LNotEqual (BI3T, 0x7)) { Or (0x4, Local0, Local0)} If (LNotEqual (BI2T, 0x3)) { Or (0x2, Local0, Local0)} If (LNotEqual (BI1T, 0)) { Or (0x1, Local0, Local0)} Return (Local0) } // End Method BINK Method (TEST) { Store ("++++++++ SmiShare Test", Debug) // Expect EVNT to generate Notify value we just previously // stored in BYTE Store (0x20, BYTE) EVNT () Store (0x21, BYTE) EVNT () Store (0x22, BYTE) EVNT () Store (0x23, BYTE) EVNT () NTFY () Return (0) // pass } // End Method TEST } // Device SMIS Device(CNDT) { Method(TEST) { If (ECOK) { return("Broken") } Else { return("Works") } } Method(ECOK) { Return(0x0) } } } // _SB system bus /* Test a very big buffer */ Name(WQAB, Buffer(6756) { 0x46,0x4F,0x4D,0x42,0x01,0x00,0x00,0x00, 0x54,0x1A,0x00,0x00,0xBA,0xAD,0x00,0x00, 0x44,0x53,0x00,0x01,0x1A,0x7D,0xDA,0x54, 0x98,0xBD,0x92,0x00,0x01,0x06,0x18,0x42, 0x10,0x47,0x10,0x92,0x46,0x62,0x02,0x89, 0x80,0x90,0x18,0x18,0x14,0x81,0x85,0x00, 0x49,0x02,0x88,0xC4,0x41,0xE1,0x20,0xD4, 0x9F,0x40,0x7E,0x05,0x20,0x74,0x28,0x40, 0xA6,0x00,0x83,0x02,0x9C,0x22,0x88,0xA0, 0x57,0x01,0x36,0x05,0x98,0x14,0x60,0x51, 0x80,0x76,0x01,0x96,0x05,0xE8,0x16,0x20, 0x1D,0x96,0x88,0x04,0x47,0x89,0x01,0x47, 0xE9,0xC4,0x16,0x6E,0xD8,0xE0,0x85,0xA2, 0x68,0x06,0x51,0x12,0x94,0x8B,0x20,0x5D, 0x10,0x52,0x2E,0xC0,0x37,0x82,0x06,0x10, 0xA5,0x77,0x01,0xB6,0x05,0x98,0x86,0x27, 0xD2,0x20,0xE4,0x60,0x08,0x54,0xCE,0x80, 0x20,0x69,0x44,0x21,0x1E,0xA7,0x44,0x08, 0x0A,0x84,0x90,0xD4,0xF1,0xA0,0xA0,0x71, 0x88,0xAD,0xCE,0x46,0x93,0xA9,0x74,0x7E, 0x48,0x82,0x70,0xC6,0x2A,0x7E,0x3A,0x9A, 0xD0,0xD9,0x9C,0x60,0xE7,0x18,0x72,0x3C, 0x48,0xF4,0x20,0xB8,0x00,0x0F,0x1C,0x2C, 0x34,0x84,0x22,0x6B,0x80,0xC1,0x8C,0xDD, 0x63,0xB1,0x0B,0x4E,0x0A,0xEC,0x61,0xB3, 0x01,0x19,0xA2,0x24,0x38,0xD4,0x11,0xC0, 0x12,0x05,0x98,0x1F,0x87,0x0C,0x0F,0x95, 0x8C,0x25,0x24,0x1B,0xAB,0x87,0xC2,0xA5, 0x40,0x68,0x6C,0x27,0xED,0x19,0x45,0x2C, 0x79,0x4A,0x82,0x49,0xE0,0x51,0x44,0x36, 0x1A,0x27,0x28,0x1B,0x1A,0x25,0x03,0x42, 0x9E,0x05,0x58,0x07,0x26,0x04,0x76,0x2F, 0xC0,0x9A,0x00,0x73,0xB3,0x90,0xB1,0xB9, 0xE8,0xFF,0x0F,0x71,0xB0,0x31,0xDA,0x9A, 0xAE,0x90,0xC2,0xC4,0x88,0x12,0x2C,0x5E, 0xC5,0xC3,0x10,0xCA,0x93,0x42,0xA8,0x48, 0x95,0xA1,0x68,0xB4,0x51,0x2A,0x14,0xE0, 0x4C,0x80,0x30,0x5C,0x1D,0x03,0x82,0x46, 0x88,0x15,0x29,0x56,0xFB,0x83,0x20,0xF1, 0x2D,0x40,0x54,0x01,0xA2,0x48,0xA3,0x41, 0x9D,0x03,0x3C,0x5C,0x0F,0xF5,0xF0,0x3D, 0xF6,0x93,0x0C,0x72,0x90,0x67,0xF1,0xA8, 0x70,0x9C,0x06,0x49,0xE0,0x0B,0x80,0x4F, 0x08,0x1E,0x38,0xDE,0x35,0xA0,0x66,0x7C, 0xBC,0x4C,0x10,0x1C,0x6A,0x88,0x1E,0x68, 0xB8,0x13,0x38,0x44,0x06,0xE8,0x49,0x3D, 0x52,0x60,0x07,0x77,0x32,0xEF,0x01,0xAF, 0x0A,0xCD,0x5E,0x12,0x08,0xC1,0xF1,0xF8, 0x7E,0xC0,0x26,0x9C,0xC0,0xF2,0x07,0x81, 0x1A,0x99,0xA1,0x3D,0xCA,0xD3,0x8A,0x19, 0xF2,0x31,0xC1,0x04,0x16,0x0B,0x21,0x05, 0x10,0x1A,0x0F,0xF8,0x6F,0x00,0x8F,0x17, 0xBE,0x12,0xC4,0xF6,0x80,0x12,0x0C,0x0B, 0x21,0x23,0xAB,0xF0,0x78,0xE8,0x28,0x7C, 0x95,0x38,0x9C,0xD3,0x8A,0x67,0x82,0xE1, 0x20,0xF4,0x05,0x90,0x00,0x51,0xE7,0x0C, 0xD4,0x61,0xC1,0xE7,0x04,0x76,0x33,0x38, 0x83,0x47,0x00,0x8F,0xE4,0x84,0xFC,0x2B, 0xF1,0xC0,0xE0,0x03,0xE2,0xEF,0x1F,0xA7, 0xEC,0x11,0x9C,0xA9,0x01,0x7D,0x1C,0xF0, 0xFF,0x7F,0x28,0x7C,0x88,0x1E,0xDF,0x29, 0x1F,0xAF,0x4F,0x17,0x96,0x35,0x4E,0xE8, 0x77,0x08,0x9F,0x38,0x7C,0x64,0x71,0x44, 0x08,0x39,0x39,0x05,0xA0,0x81,0x4F,0xF7, 0xEC,0x22,0x9C,0xAE,0x27,0xE5,0x40,0xC3, 0xA0,0xE3,0x04,0xC7,0x79,0x00,0x1C,0xE3, 0x84,0x7F,0x2E,0x80,0x3F,0x40,0x7E,0xCA, 0x78,0xC5,0x48,0xE0,0x98,0x23,0x44,0x9F, 0x6B,0x3C,0x42,0x2C,0xFC,0x53,0x45,0xE1, 0x03,0x21,0x63,0x04,0x17,0xA0,0xC7,0x08, 0x7C,0x03,0x8E,0x11,0x7D,0x94,0xE0,0xEA, 0x0F,0x1A,0x74,0x80,0xB8,0xFF,0xFF,0x00, 0xE1,0x83,0x7A,0x80,0xC0,0x37,0xFA,0xD1, 0x03,0x3D,0x2E,0x8B,0x3E,0x0F,0xC8,0xF8, 0x89,0x46,0xF3,0xE2,0xA7,0x03,0x7E,0xF8, 0x00,0x0F,0xA8,0x87,0x84,0x03,0xC5,0x4C, 0x9B,0x83,0x3E,0xBB,0x1C,0x3A,0x76,0xB8, 0xE0,0x3F,0x81,0x80,0x4B,0xDE,0x21,0x0C, 0x14,0x23,0xC6,0x9F,0x83,0x7C,0x0A,0x03, 0xFF,0xFF,0xFF,0x14,0x06,0xFE,0xE1,0xF0, 0x20,0x4F,0x07,0x9F,0xB6,0xA8,0x74,0x18, 0xD4,0x81,0x0B,0xB0,0x32,0x89,0x08,0xCF, 0x12,0xB5,0x41,0xE8,0xD4,0xF0,0x36,0xF1, 0xB6,0xE5,0x5B,0x40,0x9C,0xD3,0xEC,0xED, 0xC0,0x45,0x30,0x22,0xD4,0x0C,0x45,0x4E, 0x5A,0x11,0x63,0x44,0x79,0xDC,0x32,0xCA, 0xDB,0xD6,0x0B,0x40,0xBC,0x13,0x7B,0xDE, 0x32,0x46,0xF0,0xC8,0x0F,0x5C,0x2C,0xC6, 0xEA,0xF5,0x5F,0xF3,0x81,0x0B,0x70,0xF6, 0xFF,0x3F,0x70,0x01,0x1C,0x0A,0x7A,0x18, 0x42,0x0F,0xC3,0x53,0x39,0x97,0x87,0xC8, 0x53,0x89,0x18,0x35,0x4C,0xD4,0x67,0x28, 0xDF,0x2D,0x7C,0x20,0x02,0xDF,0x99,0x0B, 0xF8,0xFD,0xFF,0x0F,0x44,0x70,0x8E,0x29, 0xB8,0x33,0x0D,0x78,0x7C,0xCE,0x40,0x20, 0xA7,0xE2,0x43,0x0D,0x60,0x41,0xF4,0x13, 0xC2,0x27,0x1A,0x2A,0x13,0x06,0x75,0xA8, 0x01,0xAC,0x5C,0x61,0x9E,0x46,0xCF,0xF9, 0x59,0xC6,0xA7,0x1A,0x1F,0x4A,0x8D,0x63, 0x88,0x97,0x99,0x87,0x1A,0x1F,0x0B,0x5E, 0x49,0x7D,0xA8,0x31,0x54,0x9C,0x87,0x1A, 0x0F,0x37,0x50,0xD4,0x37,0x9B,0x67,0x1B, 0xA3,0xC7,0xF7,0x0D,0xD5,0x10,0x0F,0x35, 0x4C,0xF2,0x4A,0x35,0x16,0x1F,0x6A,0xC0, 0xF1,0xFF,0x3F,0xD4,0x00,0xFC,0xFF,0xFF, 0x1F,0x6A,0x00,0x47,0x47,0x03,0x38,0x47, 0x46,0xDC,0xD1,0x00,0x5C,0x87,0x52,0xE0, 0x70,0x34,0x00,0x1E,0x47,0x21,0x30,0x5F, 0x68,0x7C,0x14,0x02,0x16,0xFF,0xFF,0xA3, 0x10,0xF8,0x65,0x9F,0x83,0x50,0x42,0x8F, 0x42,0x80,0xA0,0xDB,0xCF,0x53,0xC4,0xB3, 0x8F,0x2F,0x3F,0x0F,0x04,0x11,0x5E,0xF3, 0x7D,0x0A,0xF2,0x21,0xDF,0x47,0x21,0x06, 0x63,0x28,0x5F,0x83,0x7C,0x14,0x62,0x50, 0xAF,0x41,0xBE,0xEF,0x1B,0xE4,0xF1,0x22, 0x48,0xEC,0x67,0x02,0x1F,0x85,0x98,0xE8, 0xA3,0x10,0xA0,0xF0,0xFF,0x7F,0x14,0x02, 0xF8,0xFF,0xFF,0x3F,0x0A,0x01,0xCE,0x02, 0x1C,0x0D,0x40,0x37,0xAD,0x47,0x21,0xF0, 0xDE,0x59,0x4E,0xFB,0x04,0x7C,0x16,0x02, 0xCC,0xFE,0xFF,0xCF,0x42,0xC0,0xEC,0x28, 0x74,0x14,0x67,0xF9,0x2A,0xF4,0x04,0xF0, 0x02,0x10,0x23,0xCC,0x3B,0xD0,0x4B,0x26, 0xBB,0x8B,0x1B,0xE7,0xC9,0xE5,0x2C,0x9E, 0xC4,0x7D,0x09,0xF2,0x81,0xE2,0x59,0xC8, 0x50,0xA7,0x1B,0xF4,0x8D,0xDC,0x03,0x8B, 0x19,0x3F,0xC4,0xF3,0x90,0x21,0x9E,0x85, 0x00,0x76,0xFD,0xFF,0xCF,0x42,0x00,0xFF, 0xFF,0xFF,0x47,0x03,0xF8,0x2F,0x00,0x9F, 0x85,0x80,0xE7,0x09,0xE0,0x41,0xDB,0x67, 0x21,0x80,0x33,0x87,0xCB,0xF3,0x7F,0x05, 0x3A,0x96,0xF7,0x08,0xCF,0xFA,0x24,0x5F, 0x2F,0x3D,0xD3,0x87,0x82,0x67,0x21,0x86, 0x75,0x18,0x3E,0x0B,0x31,0x88,0x17,0x4D, 0x43,0xBC,0x70,0xFA,0x30,0xE0,0xFF,0x3F, 0x5E,0xE0,0x57,0x4E,0x03,0x05,0x09,0xF4, 0x2C,0x04,0x30,0xFE,0xFF,0x7F,0x16,0x02, 0xC8,0xB8,0x46,0x9D,0x85,0x80,0xE5,0x6D, 0xE5,0x19,0xDB,0xA7,0x95,0x04,0xFF,0xFF, 0x67,0x21,0xC0,0x41,0x2E,0x23,0x07,0x21, 0x4C,0xC4,0x87,0x83,0x8F,0x99,0x80,0x9E, 0x29,0xBE,0xB8,0x1B,0xE3,0x09,0xE0,0x45, 0xE2,0x31,0x93,0x1D,0x35,0x0D,0xF3,0x2C, 0x64,0xBC,0xB3,0x78,0x0D,0x78,0x82,0xF7, 0xE4,0x9F,0x85,0x18,0xD8,0x61,0x05,0x7B, 0x14,0x32,0xA8,0xC1,0x63,0x87,0x08,0x13, 0xE8,0x59,0x88,0xC5,0x7D,0xAE,0xE8,0x3C, 0xE1,0xB3,0x10,0xF0,0xFE,0xFF,0x9F,0x25, 0xE0,0x5E,0x0D,0x9E,0x85,0x00,0x13,0x87, 0x0D,0x9F,0x35,0xC0,0x33,0x7C,0x8F,0xEA, 0x1C,0x1E,0x8F,0x81,0x7F,0x56,0x1D,0xE7, 0x04,0x96,0x7B,0xD1,0xB2,0x71,0xA0,0xA1, 0x23,0xB2,0x3A,0x20,0x8D,0x0D,0x73,0x29, 0x89,0x7C,0x72,0x6C,0xD4,0x56,0x04,0xA7, 0x33,0x93,0x4F,0x00,0xD6,0x42,0x21,0x05, 0x34,0x1A,0x8B,0xE1,0x9D,0xF9,0xE8,0x44, 0x41,0x0C,0xE8,0xE3,0x90,0x6D,0x1C,0x0A, 0x50,0x7B,0xD1,0x14,0xC8,0x39,0x07,0xA3, 0x7F,0x76,0x74,0x36,0xBE,0x13,0x70,0x0D, 0x10,0x3A,0x25,0x18,0xDA,0x6A,0x04,0xFC, 0xFF,0x67,0x89,0x01,0x33,0xFE,0x53,0x8C, 0x09,0x7C,0x8E,0xC1,0x1F,0x0C,0xF0,0x03, 0x7F,0x31,0xA8,0xFA,0x5E,0xA0,0xFB,0x82, 0xD5,0xDD,0x64,0x20,0xCC,0xC8,0x04,0xF5, 0x9D,0x0E,0x40,0x01,0xE4,0x0B,0x81,0xCF, 0x51,0x0F,0x05,0x6C,0x22,0x21,0xC2,0x44, 0x33,0x3A,0x62,0xC2,0xA8,0xE8,0x13,0xA6, 0x20,0x9E,0xB0,0x63,0x4D,0x18,0x3D,0x13, 0x5F,0x74,0xD8,0x88,0x31,0x21,0xAE,0x1E, 0xD0,0x26,0x18,0xD4,0x97,0x22,0x58,0x43, 0xE6,0x63,0xF1,0x05,0x02,0x37,0x65,0x30, 0xCE,0x89,0x5D,0x13,0x7C,0xD9,0xC1,0xCD, 0x19,0x8C,0xF0,0x98,0xBB,0x18,0xBF,0x3A, 0x79,0x74,0xFC,0xA0,0xE0,0x1B,0x0E,0xC3, 0x7E,0x32,0xF3,0x8C,0xDE,0xCB,0x7C,0x8D, 0xC3,0xC0,0x7A,0xBC,0x1C,0xD6,0x68,0x61, 0x0F,0xED,0x3D,0xC4,0xFF,0xFF,0x43,0x8C, 0xCF,0x13,0xC6,0x08,0xEB,0xDB,0x0B,0x38, 0xEE,0x59,0xF0,0xEF,0x1A,0xE0,0xB9,0x84, 0xF8,0xAE,0x01,0x30,0xF0,0xFF,0x7F,0xD7, 0x00,0x4E,0xD7,0x04,0xDF,0x35,0x80,0xF7, 0xD0,0x7D,0xD7,0x00,0xAE,0xD9,0xEF,0x1A, 0xA8,0x63,0x80,0x15,0xDE,0x35,0xA0,0x5D, 0xD9,0xDE,0xD7,0x9E,0xB0,0xAC,0xE9,0xB2, 0x81,0x52,0x73,0xD9,0x00,0x14,0xFC,0xFF, 0x2F,0x1B,0x80,0x01,0x29,0x13,0x46,0x85, 0x9F,0x30,0x05,0xF1,0x84,0x1D,0xEC,0xB2, 0x01,0x8A,0x18,0x97,0x0D,0xD0,0x8F,0xED, 0x65,0x03,0x18,0xDC,0x13,0xF8,0x6D,0x03, 0x78,0x43,0xFA,0xB6,0x01,0xD6,0xFF,0xFF, 0x6D,0x03,0xAC,0xF9,0x6F,0x1B,0x28,0x0E, 0xAB,0xBC,0x6D,0x40,0x3C,0xC9,0x33,0x02, 0xAB,0xBA,0x6E,0xA0,0xF4,0x5C,0x37,0x00, 0x12,0x88,0x99,0x30,0x2A,0xFE,0x84,0x29, 0x88,0x27,0xEC,0x68,0xD7,0x0D,0x50,0x04, 0xB9,0x6E,0x80,0x7E,0x5E,0x09,0xFE,0xFF, 0xAF,0x1B,0xC0,0xE0,0xA2,0x80,0xB9,0x6F, 0x00,0x6F,0x58,0x7E,0xDF,0x00,0x7C,0xDC, 0xC4,0x31,0xF7,0x0D,0xC0,0xCC,0xFF,0xFF, 0xBE,0x01,0xB0,0xE7,0xA2,0x80,0xBB,0x6F, 0x00,0xEF,0x8B,0xB4,0xEF,0x1B,0x60,0xFE, 0xFF,0xDF,0x37,0xC0,0x28,0x6D,0xFD,0x1E, 0x1C,0x3D,0x21,0x78,0x7C,0xB8,0xFB,0xA5, 0xC7,0xE7,0xBB,0x39,0x38,0x06,0x79,0x8C, 0x87,0x76,0xC0,0xAF,0xEF,0x9E,0x98,0xEF, 0xE6,0xC0,0xFF,0x4C,0x70,0x3C,0x18,0x68, 0x1C,0x62,0xAB,0x97,0x06,0x72,0x34,0x38, 0x3F,0xDC,0x19,0x81,0x61,0x15,0x7F,0xF2, 0x47,0x38,0xC7,0xD0,0xD9,0xE1,0x20,0xB1, 0x83,0xE0,0xC1,0x56,0x6D,0x02,0x85,0x86, 0x50,0x14,0x18,0x14,0x8B,0x0F,0x18,0xF8, 0x61,0xB3,0xB3,0x00,0x93,0x04,0x87,0x3A, 0x02,0xF8,0x3E,0xD1,0xFC,0x38,0x74,0x37, 0x38,0x54,0x8F,0xE5,0xA1,0x80,0x9E,0x01, 0x71,0xC7,0x0C,0x32,0x69,0xCF,0x28,0xE2, 0x53,0xC2,0x29,0x85,0x49,0xE0,0xF3,0x03, 0x43,0xE3,0x04,0xAF,0x0D,0xA1,0xF9,0xFF, 0xFF,0xA4,0xC0,0x3C,0xDF,0x31,0x04,0x6C, 0x02,0xBB,0xBF,0x64,0xC8,0xDA,0xC0,0x75, 0x4B,0x32,0x44,0x6F,0x38,0xB2,0x85,0xA2, 0xE9,0x44,0x79,0xDF,0x88,0x62,0x67,0x08, 0xC2,0x88,0x12,0x2C,0xC8,0xA3,0x42,0xAC, 0x28,0x2F,0x05,0x46,0x88,0x18,0xE2,0x95, 0x23,0xD0,0x09,0x87,0x0F,0xF2,0xD8,0x14, 0xA7,0xFD,0x41,0x90,0x58,0x4F,0x02,0x8D, 0xC5,0x91,0x46,0x83,0x3A,0x07,0x78,0xB8, 0x3E,0xC4,0x78,0xF8,0x0F,0x21,0x06,0x39, 0xC8,0x73,0x7B,0x54,0x38,0x4E,0x5F,0x25, 0x4C,0xF0,0x02,0xE0,0x83,0x0A,0x1C,0xD7, 0x80,0x9A,0xF1,0x33,0x06,0x58,0x8E,0xE3, 0x3E,0xA9,0xC0,0x1D,0x8F,0xEF,0x07,0x6C, 0xC2,0x09,0x2C,0x7F,0x10,0xA8,0xE3,0x0C, 0x9F,0xE7,0x0B,0x8B,0x21,0x1F,0x13,0x4C, 0x60,0xB1,0x27,0x1B,0x3A,0x1E,0xF0,0xDF, 0x63,0x1E,0x2F,0x7C,0x32,0xF1,0x7C,0x4D, 0x30,0x22,0x84,0x9C,0x8C,0x07,0x7D,0x87, 0xC0,0x5C,0x6F,0xD8,0xB9,0x85,0x8B,0x3A, 0x68,0xA0,0x4E,0x0B,0x3E,0x28,0xB0,0x9B, 0x11,0xE6,0xB8,0xCE,0xCF,0x2A,0x60,0xF8, 0xFF,0x9F,0x55,0x60,0x8F,0x10,0xFE,0xED, 0xC1,0xF3,0xF2,0x95,0xE1,0xD5,0x21,0x81, 0x43,0x8E,0x10,0x3D,0x2E,0x8F,0x10,0x73, 0x3E,0xC2,0x0C,0x11,0x5C,0x67,0x01,0x70, 0x0C,0x11,0xF8,0x1C,0x70,0xC0,0x71,0x69, 0xE2,0x03,0xF5,0x01,0x07,0x70,0x70,0x4D, 0xC3,0x1D,0x70,0xC0,0x71,0x16,0x60,0xFF, 0xFF,0xC3,0x0D,0x2C,0x49,0x26,0x0E,0x23, 0x18,0x11,0x30,0x28,0x02,0x02,0xA4,0xB3, 0x80,0x0F,0x29,0x00,0x1F,0xAE,0x0C,0x0F, 0x29,0xD8,0x93,0x86,0x07,0x8E,0x1B,0x85, 0x07,0x8D,0x0B,0x30,0x68,0x7A,0xE2,0x80, 0x7F,0x4C,0xF0,0x19,0x05,0x1C,0xE3,0x06, 0xDF,0x2A,0x0C,0xFC,0xFF,0x3F,0x30,0xCC, 0xE1,0xC2,0x63,0x39,0x8A,0xA0,0x07,0x1E, 0xD4,0xF7,0x8C,0x33,0xF7,0x24,0x8F,0xD1, 0x51,0x0F,0x27,0xF4,0xE4,0x85,0x3B,0x57, 0xF9,0x0A,0x71,0x14,0x18,0xB8,0x77,0x29, 0x8F,0xCF,0x17,0x2B,0xC3,0x63,0x46,0xFB, 0x1E,0x72,0xD6,0x11,0x02,0xE2,0x2F,0x75, 0x6C,0xC0,0x60,0x39,0x18,0x00,0x87,0x01, 0xE3,0x13,0x0D,0x58,0x67,0x1B,0x3C,0xF4, 0x69,0x31,0xC4,0xE3,0x0B,0xFB,0x56,0x61, 0x82,0xEA,0x41,0x75,0x12,0xF4,0xD0,0xC0, 0x01,0xE8,0xA1,0xC1,0x3F,0xB9,0x90,0xFB, 0x2B,0x1D,0x82,0xB5,0xE2,0x69,0xDE,0x47, 0x1E,0xF3,0xDC,0xA2,0xBC,0x0D,0x3C,0x07, 0xF0,0xD3,0x82,0x87,0xE3,0x63,0x81,0xC7, 0xE9,0x4B,0x58,0x82,0xF7,0x1A,0x9F,0x6C, 0x1E,0x5C,0x58,0xB2,0x21,0xA0,0x06,0xEB, 0x21,0x60,0xA6,0x9A,0xC0,0x49,0x46,0x80, 0xCA,0x00,0xA1,0x1B,0xCB,0xE9,0x3E,0x8B, 0x84,0x38,0xCD,0x47,0x99,0xC7,0x02,0x8F, 0xF5,0xC1,0xC0,0xFF,0x7F,0xCD,0x23,0xD4, 0x7D,0xCD,0x33,0x7B,0x3A,0xC0,0xAC,0x22, 0xDC,0x7B,0xCE,0x1B,0x86,0xD1,0x9E,0x2D, 0x7C,0xCD,0x78,0xD6,0x34,0x42,0x38,0x76, 0x83,0xF3,0x48,0x8C,0xF0,0x82,0xC0,0x4E, 0x0C,0x0F,0x30,0xC6,0x39,0x79,0xC3,0xFA, 0xC2,0xCB,0x40,0x83,0x19,0xDB,0x97,0x01, 0x36,0x2A,0xDF,0x88,0xC0,0x97,0xFC,0x62, 0x00,0x65,0x16,0xBE,0x9E,0xF8,0xA0,0xC4, 0x2E,0x06,0x2C,0xE5,0xC5,0x00,0x54,0x37, 0x0C,0x5F,0x0C,0xE0,0x5F,0x89,0x5E,0x0C, 0xC0,0x70,0x71,0xF2,0x3D,0xC0,0x1E,0xEE, 0xA3,0x74,0x9C,0xBE,0xFD,0xBD,0x19,0xF8, 0x6C,0xC0,0x60,0x3C,0xC3,0x30,0xC6,0x08, 0xE3,0x51,0x86,0x31,0xC1,0xDC,0xB7,0x03, 0xE8,0x39,0x87,0x81,0x4A,0x78,0x3B,0x80, 0x72,0x0E,0xE8,0xF2,0x68,0x42,0x4F,0x01, 0x4F,0x07,0x3E,0x29,0x1A,0xA2,0xAF,0xB1, 0x0A,0x26,0x50,0xC4,0x07,0x0D,0x3E,0xB5, 0x28,0x3E,0x15,0x78,0x2D,0xCF,0x4E,0xE1, 0xE2,0x9C,0x89,0xA7,0x6A,0x38,0x03,0xBD, 0xE6,0x86,0x63,0xFF,0x7F,0x38,0xFC,0xA9, 0xE0,0x35,0x80,0x1D,0x24,0x3D,0x2D,0x23, 0xC2,0x38,0xA4,0x3C,0x32,0xF8,0xB6,0x18, 0xC7,0x90,0x0F,0x91,0xBE,0x13,0x18,0xF2, 0x21,0xEF,0x79,0xC7,0xC0,0xAF,0x08,0x71, 0x9E,0xB2,0x7C,0x67,0xF0,0x65,0x01,0x7C, 0x91,0x2E,0x0B,0x68,0x68,0x9F,0x64,0x7C, 0x41,0x30,0xEC,0x89,0xB3,0x00,0x77,0x05, 0x50,0x81,0xFA,0xAE,0x00,0xFF,0x42,0xF0, 0xAE,0x00,0x86,0x79,0xF9,0x56,0xC0,0x35, 0x1D,0x4A,0xD0,0x67,0x12,0x5F,0x17,0x70, 0x53,0x64,0xA9,0x8E,0x0A,0xD0,0x53,0x4C, 0x02,0x75,0x47,0xF7,0x51,0x01,0xC6,0x4D, 0xD9,0x07,0x54,0x76,0x5A,0x60,0x67,0x21, 0x76,0x1D,0xC1,0x5D,0x49,0x18,0xCA,0xB3, 0x81,0x2F,0x59,0xFC,0x70,0x00,0x03,0xDC, 0xB3,0x38,0xC4,0x08,0xB1,0xD9,0x81,0xEB, 0x75,0xD2,0x70,0x2F,0x44,0xEC,0xFF,0x7F, 0x32,0x00,0xE3,0x51,0x1B,0x1C,0x27,0x9D, 0xF0,0x91,0x9E,0x59,0xF8,0x49,0x19,0x30, 0x71,0xF2,0x03,0xE3,0xC9,0x1A,0xC6,0x00, 0xB8,0xBC,0x57,0x95,0x81,0xFC,0x43,0x90, 0x20,0x18,0xD4,0x29,0x19,0x38,0x1C,0xC5, 0x70,0xA7,0x64,0x78,0x50,0xF8,0xC3,0x00, 0xE6,0x46,0xE8,0x7B,0x82,0xA1,0xDE,0x93, 0x0E,0xE3,0x91,0xD0,0x04,0x3E,0x2D,0xC3, 0xFA,0xFF,0x9F,0x96,0x81,0xD5,0xB1,0xDD, 0x43,0xF6,0x59,0x01,0x77,0x76,0x80,0x3B, 0x3D,0x7E,0x7A,0x00,0x9C,0x00,0x3D,0x3D, 0x80,0xED,0xBC,0x01,0xF7,0x40,0x80,0x38, 0xFE,0xA3,0x82,0x5F,0x59,0x28,0x1C,0x3F, 0xB6,0xF3,0x63,0x09,0xEE,0x70,0xE0,0x23, 0x83,0x0F,0x90,0xB8,0xA1,0xF8,0x50,0x81, 0x3C,0x0B,0x80,0x62,0xF4,0x6C,0x04,0xEC, 0x06,0xF3,0xD2,0x12,0xE5,0xFF,0xFF,0xDE, 0xC0,0x4E,0x29,0xB8,0x83,0x00,0xF8,0x8E, 0x01,0xE0,0x1D,0x0C,0x97,0x35,0x66,0x94, 0x10,0x18,0x8D,0x19,0x77,0x08,0xE1,0x27, 0x02,0xDC,0x98,0x3D,0x6E,0x8F,0x19,0x77, 0x9C,0xE5,0xA3,0x7A,0xCA,0x08,0xE5,0x03, 0x07,0x3B,0x67,0xBC,0x11,0xF0,0xA1,0x03, 0x8F,0x03,0x0C,0xEE,0x48,0x01,0xC6,0xCB, 0x01,0x1B,0x3B,0xB8,0x83,0x90,0x53,0x20, 0x4B,0x87,0xD1,0xD8,0x71,0xB2,0x81,0x74, 0x8C,0xF1,0x21,0xD7,0x63,0xC7,0x0D,0xD6, 0x63,0xC7,0x1D,0x5F,0xB0,0xFF,0xFF,0xE3, 0x0B,0x18,0xC6,0xC0,0xC5,0x0F,0x03,0x7D, 0xF3,0xF3,0xE8,0x0C,0xEE,0x61,0xFB,0x04, 0x13,0xE3,0xF9,0x25,0xC4,0x23,0xCC,0x8B, 0x4B,0x84,0xA3,0x08,0xF2,0xE6,0x12,0xE7, 0xD5,0x20,0xCC,0x63,0x4B,0x94,0x10,0x11, 0x0E,0x26,0xCE,0x13,0x8C,0x11,0x0E,0x3C, 0x8A,0x21,0x22,0x9C,0x40,0x88,0x93,0x3E, 0xD9,0x20,0xE1,0x63,0x84,0x8D,0xF6,0x04, 0xC3,0xC7,0xC2,0xCF,0x2B,0x1E,0x3C,0x3F, 0xAD,0xF9,0x2E,0xE8,0xC9,0x9C,0xE3,0x43, 0x96,0xA7,0xF6,0x38,0xE9,0xC3,0x2C,0x6E, 0x50,0x0F,0x8E,0xEC,0xAE,0xE3,0xE3,0x35, 0xF6,0x14,0xE4,0x21,0xF0,0x13,0x81,0x2F, 0x88,0x9E,0xAC,0xEF,0x7A,0xEC,0x5E,0x66, 0x8C,0xEA,0xA7,0x80,0x3A,0xA6,0x9C,0xC1, 0x2B,0x04,0xBB,0xE7,0xF9,0x90,0xED,0xBB, 0x24,0x1B,0x05,0xEE,0x90,0xE0,0x33,0x12, 0x3F,0x55,0x78,0x18,0x1E,0x05,0x8C,0x19, 0xBC,0x23,0x1C,0x5A,0x88,0x03,0x7E,0xDF, 0x65,0x43,0x8D,0x71,0x7A,0x3E,0x7F,0xB0, 0x41,0xC0,0x87,0x3A,0x54,0x0F,0xF3,0xA8, 0x5E,0x0A,0x19,0xCE,0xD9,0xC1,0x1D,0x04, 0xF6,0xF8,0xE1,0x41,0xF0,0x9B,0x25,0x1F, 0x04,0x3B,0xDF,0xBC,0xC1,0x19,0xE4,0xFF, 0x7F,0x0C,0xB0,0xCF,0x54,0x3E,0x9A,0x20, 0x8E,0x80,0xE8,0xF3,0x87,0xC7,0xF0,0x26, 0xC7,0x87,0x83,0x3D,0x7A,0xE0,0x4E,0x22, 0x70,0x8F,0x5D,0x07,0xED,0x6B,0x9C,0x2F, 0x5A,0x30,0xEE,0x7B,0xCF,0x22,0xE0,0xC7, 0x78,0x6C,0x01,0xC7,0xA1,0x04,0xDC,0xC1, 0x8E,0x6B,0x1C,0x42,0x51,0x60,0x74,0x28, 0xC1,0xC5,0x00,0x12,0x8C,0x63,0x9C,0xD1, 0xD0,0x97,0x48,0x1F,0xD2,0xE0,0x0C,0x1A, 0xF6,0x3C,0x9F,0x50,0xB8,0x3D,0x01,0x8A, 0x4E,0x28,0x20,0xC3,0x7D,0x06,0xC1,0x9E, 0x10,0xF8,0x19,0x84,0xFD,0xFF,0x0F,0x8E, 0x1E,0xF7,0x7B,0xA3,0x4F,0x8D,0x6C,0xEE, 0x0F,0x01,0x27,0x70,0xEE,0xEC,0xD4,0x8C, 0x3B,0x33,0x60,0xCF,0x1F,0x1E,0x02,0x3F, 0x17,0x78,0xF8,0x1E,0x02,0x7E,0xF0,0x0F, 0xCC,0x06,0x07,0xE3,0x29,0xC2,0xD7,0x0E, 0x0E,0xCE,0x4F,0x03,0x06,0xE7,0xAF,0x50, 0x9F,0xE7,0x19,0x38,0xF6,0xD4,0xEB,0x7B, 0x87,0xE7,0xEB,0x43,0x05,0xFE,0xA6,0xE7, 0x43,0x05,0x38,0x0E,0x0F,0xFC,0xB0,0xC2, 0x86,0xF0,0x28,0x80,0x3F,0xB5,0xF8,0xF8, 0x17,0xE7,0x29,0x82,0xDD,0x46,0xB0,0x87, 0x0B,0xC0,0x51,0xB4,0xB3,0x18,0x2A,0xCC, 0x59,0x8C,0xFC,0xFF,0xCF,0x51,0xA8,0xB3, 0x18,0x3D,0x5C,0x00,0x2E,0x04,0x1F,0x0F, 0x40,0x73,0x10,0x78,0x5C,0xF0,0x85,0xE0, 0x48,0x0E,0xE4,0xE9,0x00,0xF0,0x19,0x4A, 0xC3,0xA1,0x09,0x13,0x03,0x06,0x75,0x3E, 0xF0,0x09,0xC5,0xC7,0x0E,0x7E,0x36,0xF0, 0x8D,0xDC,0x43,0xE5,0xA7,0x66,0x5F,0xF2, 0x11,0xE0,0x02,0x75,0xA0,0x61,0xA0,0x46, 0xE4,0x23,0xD2,0xFF,0xFF,0xB9,0x0D,0x1B, 0x60,0x68,0xF4,0x1C,0x0E,0xE3,0x80,0xEB, 0x73,0x38,0x76,0x40,0x3E,0x87,0xC3,0x3F, 0x47,0xC3,0x1F,0x1B,0x3B,0xDD,0xF3,0x81, 0xC1,0xBA,0x7E,0x63,0x06,0x06,0xB6,0x6F, 0x91,0x07,0x06,0x1C,0x51,0xCF,0xC6,0x57, 0x08,0x0F,0x0C,0x6C,0x80,0x1E,0x18,0xF0, 0x89,0x05,0x21,0x27,0x03,0x43,0x9D,0x32, 0x8C,0x1C,0xF3,0x89,0xC3,0xC3,0xF0,0xA1, 0x22,0xEA,0x33,0xC0,0x23,0x1E,0x1B,0x1B, 0xFB,0xFF,0x8F,0x0D,0x2C,0xC7,0x16,0x8F, 0x0D,0xFC,0x47,0x78,0xFC,0xD8,0xE0,0x8C, 0xE5,0xD1,0xC4,0x97,0x99,0x23,0x3B,0x8D, 0x33,0x7B,0x0D,0xF1,0xD1,0xEE,0xF1,0xDB, 0x63,0x03,0x97,0x85,0xB1,0x01,0xA5,0x90, 0x63,0x43,0x1F,0x52,0x7C,0x0A,0xB0,0x71, 0x54,0x32,0x0F,0x1F,0xAF,0x7C,0x62,0x38, 0xBA,0x20,0x6F,0xE8,0xBE,0x5C,0xF8,0x48, 0x63,0x30,0x5F,0x5A,0x7C,0x06,0xE5,0x43, 0x04,0xD7,0x57,0xC5,0x43,0x04,0x3E,0xA1, 0x86,0x88,0x1E,0xCF,0xFF,0xFF,0x11,0xCC, 0x43,0x64,0x43,0x03,0xAF,0x87,0xA1,0x01, 0xA5,0x98,0xC0,0x5E,0x85,0x87,0x46,0x4F, 0x3F,0x3E,0x04,0x30,0x08,0xDF,0x06,0xD8, 0x55,0xC0,0x57,0x21,0x83,0x24,0x18,0xE7, 0x64,0x41,0x07,0x07,0x8E,0x21,0x79,0x70, 0xF0,0x07,0xE3,0x21,0x70,0x60,0xCF,0xE0, 0xB9,0xE8,0x31,0xD8,0xA7,0x1D,0x9F,0x4A, 0xC0,0x77,0xE6,0x04,0xC7,0xE9,0x1D,0x7B, 0x29,0xF0,0x08,0x1E,0xAD,0x3C,0x02,0x7E, 0xB4,0x02,0x66,0xFF,0xFF,0xA3,0x15,0x30, 0x09,0x7A,0xE6,0xA4,0x03,0x77,0x34,0x18, 0xD4,0xD1,0x0A,0x5C,0x11,0xC0,0x75,0xDC, 0xF0,0xD1,0x02,0xCE,0x50,0x0F,0xDA,0x07, 0x65,0xCF,0xDA,0x97,0x21,0x76,0xB4,0x00, 0x97,0x89,0x43,0x08,0xD0,0x04,0x3E,0x89, 0x67,0xEF,0x43,0x03,0xB3,0x8A,0xA1,0x01, 0xA5,0xA3,0x01,0xEE,0x44,0x81,0xFD,0xFF, 0x9F,0x28,0x60,0xDE,0x30,0x70,0x07,0x0A, 0xC0,0xCD,0xE9,0xDB,0xE3,0xE2,0xD0,0x38, 0xC4,0xE7,0xA7,0x73,0xF6,0xD1,0xE8,0x4C, 0x71,0x67,0x11,0x30,0x9C,0x7D,0x11,0x8F, 0x18,0x03,0xF9,0x81,0x21,0x59,0x30,0x28, 0x16,0x0F,0xC5,0x07,0x03,0x0E,0xEC,0x23, 0x02,0x3B,0x17,0xB0,0x73,0xAD,0xE1,0xF8, 0x59,0xC0,0xA7,0x84,0xB7,0xA6,0x17,0x7B, 0x9F,0xD7,0x7D,0xD6,0x08,0xC9,0xCE,0xF4, 0x3E,0x89,0xE2,0x0E,0xA2,0x70,0x4E,0x9F, 0xE0,0x22,0xF0,0x65,0xDF,0xA3,0xE0,0xA7, 0x07,0xCF,0xF1,0x8D,0xC1,0xA7,0x07,0xE6, 0x7E,0xF8,0x9A,0xF1,0x33,0xC3,0xE3,0x43, 0x88,0x27,0xE2,0xDA,0xA6,0x20,0x5B,0x18, 0x42,0x09,0xF4,0xFF,0x8F,0x10,0xE5,0x6D, 0x20,0xCA,0x29,0x44,0x88,0x12,0xA4,0xB1, 0xC9,0x0B,0x35,0xCA,0xD9,0x45,0x6E,0x6D, 0xF6,0x82,0x0B,0x14,0x2A,0x66,0x9C,0x28, 0xEF,0x10,0xB1,0xDA,0x1F,0x04,0x91,0xF4, 0x32,0xD0,0x71,0xC9,0x91,0x0E,0x7D,0xE8, 0x61,0xFB,0x04,0x8C,0x3F,0x48,0xE2,0xAE, 0x2A,0x3E,0x28,0xF8,0x00,0x80,0x77,0x09, 0xA8,0x5B,0x9D,0xC7,0xED,0xF3,0x06,0xF8, 0xAF,0x17,0x58,0x82,0xF2,0x07,0x81,0x1A, 0x99,0xA1,0x3D,0xCC,0xB7,0x19,0x43,0xBE, 0x07,0x1C,0x16,0x3B,0x27,0xF9,0xF0,0x08, 0x1C,0x8E,0x01,0x4F,0x1B,0xBE,0x51,0x7B, 0xBE,0x3E,0x62,0x01,0x8E,0xFE,0xFF,0x47, 0x2C,0x30,0x9D,0xDF,0x7D,0x82,0x01,0xC7, 0xCD,0x82,0x9F,0x61,0x00,0x67,0x40,0xCF, 0x30,0x60,0x1F,0x2A,0x6E,0x08,0x5C,0xEE, 0x8A,0x28,0x90,0x05,0xC2,0xA0,0x0E,0xFD, 0xE4,0x08,0x42,0xCF,0x9C,0x70,0x86,0x72, 0xB2,0xBD,0x5F,0x1D,0xC8,0x2D,0xC2,0x43, 0x3D,0x8B,0xC7,0x04,0x76,0xDA,0x02,0x36, 0xFF,0xFF,0xE3,0x29,0xB0,0x98,0xF7,0xD3, 0x69,0x84,0x63,0x03,0xFB,0x71,0x0B,0x38, 0x1D,0xCC,0xE0,0xDC,0x7F,0xD8,0x2D,0x1A, 0x37,0x34,0xB0,0x0D,0xCC,0x43,0x03,0x3E, 0x27,0x47,0x30,0x9E,0x98,0xF8,0x55,0xE2, 0xE1,0x89,0x1F,0x43,0xC0,0xFA,0xFF,0x3F, 0x99,0x01,0xF6,0x84,0x1E,0xCB,0x50,0xD2, 0x4E,0x66,0x80,0xC0,0xFB,0xD8,0x3B,0xC3, 0x4B,0x83,0xE7,0x74,0xD2,0xCF,0x62,0x3E, 0x99,0x19,0x21,0x0A,0xBB,0x8F,0x19,0xAD, 0x37,0x14,0xCD,0x3C,0xE8,0x3B,0x99,0x51, 0x62,0x46,0x6A,0x0E,0x4C,0x48,0x11,0x0F, 0x27,0x4A,0x88,0x60,0xAF,0x13,0x6F,0x67, 0x4F,0x66,0x4C,0xD6,0xC9,0x0C,0x24,0xFF, 0xFF,0x93,0x19,0x98,0x5C,0x9F,0xCC,0x80, 0xCA,0x39,0x0A,0x7F,0x32,0x03,0x78,0x74, 0xC0,0xC2,0x9D,0xCC,0xC0,0xF2,0xFF,0x3F, 0xC4,0x00,0xCE,0xC7,0x0A,0x63,0x0C,0x3C, 0xDA,0xC1,0x0C,0x15,0xE6,0x6C,0x86,0x0E, 0x72,0x08,0xA1,0xC1,0x0E,0x21,0x50,0xE6, 0x72,0xA0,0xA7,0xF0,0x9A,0xE0,0x73,0x14, 0xD8,0x0F,0x67,0xC0,0xE1,0xD4,0x80,0x0F, 0x74,0xE2,0x42,0x8F,0xC2,0x23,0x0E,0x58, 0xFD,0xC0,0xC8,0xFF,0xFF,0x64,0x06,0x18, 0x78,0x6A,0xF8,0x40,0x82,0x63,0x31,0xEA, 0x1B,0xC4,0x21,0xBE,0x8D,0xF8,0xE8,0xFE, 0x6A,0xE2,0x4B,0x00,0xE6,0x42,0xE2,0xD3, 0x09,0xB3,0x70,0x38,0x03,0x5A,0x43,0x60, 0x57,0x26,0xCF,0x9C,0x0F,0xE1,0x6C,0x3C, 0x7A,0xDC,0xE9,0x04,0xDE,0x38,0x7C,0x3A, 0x01,0x5E,0x07,0x0C,0xCC,0x0C,0xC2,0x3F, 0x84,0xB0,0x21,0x9C,0xAA,0xC7,0x70,0xEE, 0xAF,0x38,0x3E,0x9D,0x80,0xF3,0xFF,0x7F, 0x62,0x03,0x0C,0x0A,0x7E,0x32,0xF8,0xB8, 0x46,0x25,0xC2,0xA0,0x8E,0xE6,0x80,0x7B, 0x98,0x27,0x36,0x26,0x6F,0xC5,0x1A,0x8B, 0x4F,0x6C,0x30,0xFF,0xFF,0x27,0x36,0x80, 0xD1,0x87,0x20,0xB0,0xFD,0xFF,0x0F,0x41, 0x60,0x1C,0xA0,0x0F,0x41,0x80,0x9B,0xD3, 0x09,0xEE,0xC4,0x07,0xB6,0x63,0x10,0x60, 0x6D,0xE8,0x3E,0x06,0x81,0xF9,0xFF,0x3F, 0x5A,0x98,0xA3,0xE0,0xC2,0x8E,0x7C,0x28, 0x29,0xA7,0x3E,0xB4,0x0C,0x20,0x69,0x38, 0xC9,0x01,0x9D,0xD3,0x3D,0x70,0x92,0x75, 0xEA,0x40,0x8F,0xC7,0xA0,0xAF,0x1C,0xBE, 0x12,0xF0,0x23,0x07,0x93,0x00,0xAA,0x41, 0xFA,0xCC,0x07,0x9C,0x8E,0x1C,0xE0,0x38, 0x26,0x05,0xC6,0xDE,0x0E,0xDE,0x22,0x3D, 0x89,0xA7,0xA1,0xE3,0x0C,0x51,0x38,0x26, 0x39,0x18,0x44,0x7A,0x95,0x62,0x03,0x7C, 0xAB,0xF1,0xD9,0xC8,0x07,0x10,0x78,0xE3, 0xF6,0xD8,0x61,0xFF,0xFF,0x0F,0x75,0xC0, 0x01,0xE2,0xA4,0xF8,0x21,0xC3,0x98,0x67, 0xC5,0x0F,0x75,0x80,0xF5,0x18,0x27,0x3A, 0x94,0xF0,0x43,0x1D,0x20,0xE8,0xFF,0x7F, 0xA8,0x03,0x86,0x38,0x6F,0x24,0xD1,0x1E, 0xEA,0x98,0xE8,0x43,0x1D,0x40,0xC8,0xFF, 0xFF,0xA1,0x0E,0x18,0x9E,0x87,0x00,0xAE, 0x9C,0xEF,0xC0,0x7C,0x22,0x02,0xEF,0xFF, 0xFF,0x7C,0x07,0xB8,0x1B,0x2D,0xCC,0x51, 0x70,0x41,0xAF,0x0E,0x03,0x51,0x09,0x30, 0x28,0x02,0xC7,0x5F,0x9B,0x60,0x1C,0xEA, 0x7C,0x87,0x3E,0x2F,0x78,0xD8,0x4F,0x05, 0x9E,0xC4,0xA9,0xFA,0x5A,0x70,0x14,0x4F, 0x00,0x3E,0xE1,0x01,0xFF,0xA1,0xC1,0x9A, 0x44,0xF1,0x43,0x03,0xF5,0x11,0xE4,0xFF, 0x7F,0x68,0xC0,0x28,0xEA,0xF9,0x06,0x7D, 0xCC,0xF2,0xD9,0x20,0xE6,0x0B,0x48,0x84, 0x07,0x10,0x5F,0x1F,0xD8,0x71,0xD2,0x67, 0xA0,0x40,0x51,0xDE,0x37,0xF8,0x09,0x07, 0x5C,0x83,0xF3,0x09,0x07,0xBC,0x87,0x23, 0x1F,0x4B,0xC0,0x77,0xD0,0x84,0x73,0x81, 0xF1,0x8D,0x8D,0x9D,0x06,0xC0,0x76,0x00, 0x06,0xDF,0x69,0x00,0x1C,0xC7,0x24,0x7E, 0x3A,0x04,0x13,0xCC,0xC1,0xBC,0x34,0xFB, 0xFF,0xEF,0xFD,0x94,0x43,0xCF,0x86,0x80, 0x75,0x49,0x07,0x43,0x94,0x88,0xB3,0x21, 0x20,0xFD,0xFF,0x7F,0x36,0xC4,0x20,0xC4, 0x09,0xFC,0x12,0xD1,0xDC,0xD9,0x90,0xAE, 0xD8,0x67,0x43,0x80,0xE1,0xFF,0xFF,0x23, 0x00,0xF6,0x7C,0x04,0x38,0x3D,0x64,0x83, 0xE7,0x14,0x08,0xE3,0xE4,0x03,0x38,0xFE, 0xFF,0x8F,0x15,0xE6,0x18,0x78,0xEA,0x97, 0x9B,0x8F,0x03,0x54,0xD4,0x2B,0xC2,0x30, 0x94,0xC5,0x87,0x05,0x1F,0x11,0xF8,0x61, 0xC1,0x23,0xA8,0x78,0x9C,0xF4,0x74,0xE3, 0x33,0x21,0x3B,0x24,0x38,0xFC,0x20,0xE9, 0x41,0x13,0x3C,0xE7,0x23,0x78,0xB7,0x1E, 0x38,0xA7,0x02,0xC0,0x4D,0xAE,0x27,0xA3, 0x4E,0x17,0x0E,0x70,0x8E,0x92,0x8D,0x63, 0x08,0xE5,0x70,0xCC,0xB7,0x87,0xA6,0xC9, 0x4E,0x56,0x30,0x63,0x41,0xEA,0x24,0xE0, 0x01,0x38,0x10,0x8C,0xB4,0x93,0x68,0x34, 0x86,0xB3,0x5A,0x18,0xC1,0x19,0xC4,0xC7, 0x11,0xE7,0x3A,0x19,0xA1,0x3F,0x07,0x3E, 0x15,0x61,0x82,0xDC,0x4B,0xE8,0xBC,0x7D, 0x37,0xE0,0x57,0x61,0x8F,0xC5,0xFF,0x7F, 0x60,0xDF,0x4E,0xC0,0x31,0x17,0xAB,0x01, 0x45,0x0D,0xC0,0x68,0x98,0x53,0xC0,0x53, 0x09,0xB8,0x82,0xCD,0x0D,0x7D,0x61,0xB1, 0xD6,0xA9,0xE8,0x14,0xF4,0x3E,0x70,0x70, 0xC0,0x63,0xF6,0x1E,0x1C,0x2C,0x34,0x0F, 0x0E,0x6C,0xD9,0x06,0x87,0x56,0x72,0x17, 0x21,0x87,0x0F,0xFC,0xEC,0x80,0x03,0xA0, 0x67,0x07,0x0B,0xC9,0xB3,0x03,0x9B,0xBE, 0xB3,0x08,0x28,0x70,0xFE,0xFF,0x11,0xDE, 0x3B,0x7C,0x6E,0x79,0xF6,0x60,0x63,0x78, 0x74,0x31,0x9A,0xD1,0xB9,0xA6,0xDB,0x04, 0x4A,0xC5,0x6D,0x82,0x82,0xF8,0x06,0xE0, 0x84,0x34,0xBA,0x75,0xE2,0x66,0x62,0xFC, 0x47,0x0C,0x1F,0x11,0x0E,0xE9,0x6C,0x4D, 0x30,0x0F,0xA4,0x9E,0x81,0xBE,0xB3,0xE1, 0x67,0x1F,0xF2,0xC1,0xC5,0xD3,0xF0,0xF5, 0x86,0xDC,0x3B,0xE8,0xB4,0x7D,0x66,0xC0, 0x1C,0x74,0x7D,0x9D,0x7A,0x83,0x27,0x57, 0x09,0xEA,0xE1,0x02,0x42,0x2F,0x34,0xBE, 0xDC,0x25,0x78,0xE0,0xF4,0xE9,0xEE,0xBD, 0x84,0x9D,0xF1,0x12,0xBC,0xE0,0x25,0x98, 0x77,0x10,0xA8,0x51,0x79,0x10,0x98,0xAB, 0x3C,0xCB,0x37,0x06,0x54,0xB2,0x8B,0x16, 0x3D,0xC3,0xBC,0xC3,0xF8,0x92,0xE0,0xEB, 0x87,0xCF,0x2D,0x5E,0xC0,0xEB,0x16,0x0C, 0x82,0x67,0xA0,0x57,0x17,0xDF,0xD9,0x0D, 0xFC,0x2A,0xF0,0x46,0x13,0x22,0x98,0x61, 0x0F,0xFF,0xDD,0xDD,0xA8,0xBE,0xE9,0x18, 0xEB,0x75,0xC4,0x23,0xE5,0xC7,0x96,0x03, 0x8A,0xF4,0xF2,0xE6,0x09,0xF8,0x2C,0xE3, 0x53,0xDD,0x49,0xF9,0x7A,0x68,0xF4,0x57, 0x08,0x1F,0x7E,0x8C,0xEC,0x73,0x0E,0x3B, 0xDF,0xB1,0x41,0x71,0xC4,0x07,0x86,0x97, 0x1A,0x4F,0x85,0x9D,0xBB,0x60,0x1C,0x1C, 0xD8,0xB1,0x08,0x73,0x7C,0x05,0xD7,0xC9, 0xE6,0xFF,0xFF,0xE4,0x00,0x6E,0x78,0xCC, 0xC1,0xD7,0xE7,0x0D,0xDF,0x0C,0x3C,0x2E, 0x7E,0xE4,0xF0,0x49,0xE3,0xA5,0xD3,0xD8, 0xA7,0xE9,0xA3,0xD1,0xCB,0x9B,0x4F,0x2F, 0x18,0x58,0x5F,0x1A,0x38,0xAC,0xD1,0xC2, 0x3E,0x06,0x9C,0xB9,0x2F,0x44,0xB8,0xC3, 0x23,0x58,0x00,0xF1,0xB7,0x92,0x47,0x0E, 0x4F,0xC0,0x80,0x4C,0xD3,0xBA,0x74,0x20, 0xE2,0xA7,0x3C,0x2B,0x5F,0x99,0x2E,0x43, 0x0C,0xE3,0xA9,0xF2,0xF1,0xC3,0xB3,0xF1, 0x51,0xC0,0xC7,0x28,0xCF,0xFC,0x8C,0x22, 0xBD,0x32,0x10,0x50,0x9D,0x88,0xB8,0x42, 0x18,0x89,0xA1,0xD1,0x9D,0x83,0xC7,0x1F, 0x22,0x05,0x31,0xA0,0x6F,0x2E,0xC0,0xF4, 0x4C,0x04,0x5C,0xFE,0xFF,0x37,0x17,0x80, 0xFF,0xFF,0xFF,0x9B,0x0B,0xE0,0xE6,0xFE, 0xE0,0x9B,0x0B,0x70,0x8D,0xB4,0x2A,0x7A, 0x61,0x77,0x08,0x18,0xD4,0x9D,0x1D,0x70, 0x78,0x2B,0x78,0x67,0x87,0xF5,0xFF,0xBF, 0xB3,0xC3,0xC3,0x8C,0x13,0xE5,0x85,0x21, 0xC6,0x3B,0x3B,0x0B,0xF0,0x26,0xD0,0x51, 0xC6,0x77,0x76,0x80,0x1F,0x67,0xD8,0x77, 0x69,0xF0,0x5E,0x75,0x81,0xF5,0xFF,0xFF, 0xAA,0x0B,0x3C,0x04,0xDF,0xA7,0x41,0x3E, 0x5E,0x30,0x8C,0x83,0x2B,0x27,0xA1,0xC7, 0x02,0x6B,0x85,0x41,0xDD,0xA9,0xC1,0xA5, 0x09,0x5C,0x17,0x5F,0x1F,0x6A,0x7C,0xA4, 0xC5,0x9F,0x2F,0x70,0x01,0x86,0x4C,0x4F, 0x65,0x30,0xAE,0x29,0x3E,0x95,0x61,0xEE, 0x0E,0x1E,0x90,0x8F,0x18,0xC0,0x67,0x15, 0x1E,0x18,0xEE,0xB4,0xE0,0x9B,0x92,0x41, 0xCF,0x31,0xA8,0x8F,0x3C,0x27,0xEF,0x7B, 0xC2,0xE3,0x84,0xA3,0x9E,0x83,0xE8,0xD8, 0xC0,0x71,0xDC,0xC0,0xFD,0xFF,0xC7,0x06, 0xEF,0x70,0x83,0x3B,0xE8,0xF8,0x62,0x70, 0x5C,0x18,0xB8,0xE7,0x02,0x0F,0xC3,0x37, 0x1D,0x8F,0x08,0x33,0xFE,0xD7,0x3F,0x23, 0x04,0xC4,0x5F,0x8C,0xD8,0x80,0xC1,0x78, 0x6B,0xF3,0xF5,0x0D,0x37,0x60,0x5F,0x1D, 0x7C,0xC1,0xF0,0x09,0xCC,0xE8,0x2F,0x30, 0x4F,0x62,0x3E,0x36,0x90,0x0B,0x1C,0x1D, 0x30,0x38,0x00,0x3D,0x60,0xF8,0x87,0x8B, 0x77,0x39,0x30,0x5C,0x05,0x7D,0x5C,0xF0, 0xB1,0xC7,0x8A,0xEE,0x72,0xE8,0x9B,0x9C, 0x61,0xE2,0x18,0xE2,0x0D,0x8C,0xDD,0x25, 0xC8,0x61,0x0E,0xEA,0x5D,0xC2,0x73,0xE0, 0x67,0x0B,0x9F,0xE0,0x7C,0xF3,0x09,0x71, 0xAA,0x8F,0x56,0xEF,0x01,0x3E,0x7A,0xBC, 0x77,0xF9,0xEC,0xC4,0x2E,0x02,0x3E,0x72, 0x19,0xC7,0xD3,0xF4,0x15,0xD0,0x43,0x36, 0xD8,0xAB,0x86,0x4F,0x60,0x3E,0xBA,0xE1, 0x8E,0x51,0x9E,0x89,0xA7,0xEF,0x3B,0x08, 0x3B,0x92,0x1C,0x75,0xA8,0x6B,0x7A,0x44, 0xF9,0xFF,0x9F,0xD0,0x81,0xF8,0xD6,0x06, 0xCE,0x68,0xF7,0x0F,0xF4,0x36,0x3D,0x32, 0xCC,0xD1,0x00,0xD6,0x25,0x04,0x5C,0x77, 0x0C,0x5F,0x42,0x80,0x4F,0xD0,0x4B,0x04, 0xFA,0x9A,0xE1,0xD1,0x3D,0x02,0x60,0xAE, 0x18,0xEC,0x58,0xE0,0xC3,0x86,0xAF,0x01, 0xEC,0x5E,0xE0,0x30,0xF7,0x08,0x50,0x81, 0x7A,0x78,0xF0,0xD5,0xDE,0x23,0x40,0x71, 0xB2,0xF4,0xA1,0xC1,0x03,0xB5,0xAA,0x33, 0x26,0x94,0x23,0x26,0x3F,0x9B,0xF9,0x26, 0x81,0xB9,0x5D,0xFA,0x26,0x01,0x37,0xCF, 0x2C,0x50,0x49,0x20,0xF4,0xFF,0xBF,0x49, 0xC0,0x85,0xE9,0xF2,0x32,0x43,0xE7,0x7F, 0xE0,0xBE,0xD5,0x79,0x84,0x3E,0x44,0x30, 0x94,0xF7,0x3C,0x9F,0xC2,0xF8,0x19,0xC2, 0x07,0x4C,0x76,0xA6,0xE0,0x67,0x4D,0xDC, 0x1D,0xC0,0x28,0x6F,0x9E,0x9E,0x00,0x3B, 0x7F,0x1A,0xF9,0xDD,0xE0,0x5D,0xC0,0xD3, 0xF7,0xBD,0x88,0x9F,0x28,0xC0,0x17,0xEC, 0x4E,0x07,0x05,0xFA,0x84,0x3C,0x22,0xA3, 0xFA,0x88,0xC0,0x2F,0x49,0x60,0x3C,0x92, 0xF8,0x40,0x01,0x84,0xEE,0x05,0xA8,0xD3, 0x07,0x47,0x3D,0xE3,0x17,0x54,0x63,0xBE, 0x5B,0x3D,0xC2,0x79,0x72,0x98,0xCB,0x01, 0x8B,0x73,0x4D,0x02,0xD5,0x71,0x97,0x8F, 0x0E,0xEE,0xB5,0x15,0xFB,0xFF,0x27,0x38, 0xB8,0x77,0x96,0x77,0x3E,0x43,0x79,0x90, 0xE0,0xBB,0xB6,0x82,0xE3,0xAA,0x06,0xE3, 0xD8,0xC2,0x2F,0x79,0x80,0x9D,0x61,0x71, 0xC1,0x7F,0x0F,0x03,0x51,0x89,0x30,0x28, 0x02,0xCB,0xBB,0xB7,0x52,0xF8,0x43,0x06, 0xE3,0x4D,0x81,0x4F,0x1A,0x3B,0x6A,0xE0, 0xFB,0xFF,0x1F,0x35,0xD8,0x86,0x8A,0xBB, 0x29,0x82,0x75,0xAA,0x98,0x21,0xF0,0x60, 0x0F,0x00,0x9F,0xAF,0x7C,0x06,0x50,0x14, 0x18,0xD4,0xA1,0x1D,0xCE,0x6D,0x18,0x70, 0x30,0x62,0xDC,0xA5,0x10,0xEE,0x94,0xDF, 0x51,0x62,0x3F,0x97,0xB3,0xE9,0xE2,0xAE, 0xE6,0x3E,0x9D,0xB0,0x0B,0x32,0x8C,0xB3, 0xC0,0x23,0xC0,0xAB,0x39,0xBF,0x20,0x3F, 0x17,0xBF,0x10,0x3C,0x26,0x85,0x78,0x53, 0x7A,0x25,0x36,0xC6,0x93,0x71,0x73,0xB7, 0x62,0x72,0xDE,0x79,0x41,0x36,0xC6,0xD1, 0x44,0x8C,0x72,0x6E,0x0F,0x03,0x91,0x5F, 0x90,0x7D,0x3F,0x79,0x21,0x88,0x18,0xCD, 0x10,0x41,0x9F,0x97,0x8D,0x15,0x28,0xDE, 0x0B,0x32,0x13,0xF8,0x56,0xD0,0xC1,0xC5, 0x17,0x64,0xEC,0xFF,0xFF,0x82,0x0C,0x30, 0xE2,0x64,0x04,0xF8,0x3C,0x71,0xE0,0xCE, 0x35,0x30,0xFE,0xFF,0x97,0x6A,0xD8,0x27, 0x1B,0xC0,0xD9,0xD0,0x7D,0xB2,0x01,0xF7, 0x68,0xE1,0x1D,0x4D,0x10,0x27,0x1B,0x0A, 0xE4,0xE0,0xEB,0xA2,0x70,0x3C,0xF4,0x49, 0x84,0x1E,0x9D,0x7C,0x94,0xC4,0x9D,0x19, 0x3C,0x91,0x77,0x16,0x8F,0xE2,0x65,0xD0, 0xF7,0x82,0x13,0x79,0x7D,0xB0,0x9C,0x63, 0x24,0xA8,0x46,0xE2,0xE3,0x03,0xFC,0xEB, 0x8B,0x8F,0x91,0xF0,0xF9,0xFC,0xC3,0xF2, 0x60,0x0C,0xF9,0xFF,0x7F,0x8A,0xC4,0x80, 0x3C,0xBB,0x3C,0x86,0xF0,0x0B,0x24,0xDC, 0xD3,0xCC,0x01,0x60,0x64,0x5D,0x1E,0xD1, 0x67,0x47,0x8E,0x11,0xD7,0x17,0x45,0x5F, 0x81,0x7D,0x10,0x38,0x9F,0xE7,0x44,0xB0, 0x8E,0x9A,0x1F,0x6D,0xF8,0xF8,0x39,0xF8, 0x5B,0xC1,0x03,0xA5,0x8F,0x45,0x21,0x1E, 0x91,0xF8,0x39,0x11,0x5C,0x26,0xCE,0x89, 0x40,0xE2,0xD0,0x0B,0xE3,0xB4,0x80,0x1B, 0x88,0xCF,0x94,0xD8,0x29,0x9F,0x08,0x3B, 0x97,0x60,0x46,0x07,0xAE,0xCB,0xBD,0x47, 0x07,0xFE,0x93,0x00,0x1E,0xEB,0xFF,0xFF, 0x78,0x07,0xBE,0x93,0xBA,0xEF,0x26,0xBE, 0xC8,0xF8,0x50,0xF4,0x7C,0x07,0xF8,0x0F, 0x77,0xB8,0x43,0xC5,0x39,0xDF,0x01,0xD2, 0xFE,0xFF,0xE7,0x3B,0x60,0x79,0xB6,0x7E, 0xBE,0x03,0xBB,0xC8,0xF3,0x1D,0x40,0xAC, 0xFF,0xFF,0xF9,0x0E,0xB0,0x73,0x46,0xC3, 0x9D,0xEF,0xC0,0x76,0xB4,0x01,0xCC,0x4D, 0xE3,0xD1,0x06,0xDC,0xC3,0x85,0x3D,0x0C, 0xAE,0xD0,0xA6,0x4F,0x8D,0x46,0xAD,0x1A, 0x94,0xA9,0x51,0xE6,0xFF,0xDF,0xA0,0x56, 0x9F,0x4A,0x8D,0x19,0xCB,0x0E,0xA5,0x80, 0x8F,0x0A,0x8D,0xCD,0xF2,0x28,0x04,0x62, 0x31,0xAF,0x06,0x81,0x38,0x2C,0x08,0x8D, 0xF4,0xCA,0x11,0x88,0x25,0x3F,0xFB,0x05, 0x62,0xB9,0x6F,0x06,0x81,0x38,0xE0,0x1B, 0x4C,0xE0,0xE4,0x61,0x25,0x70,0xF2,0x6E, 0x10,0x88,0x23,0x83,0x50,0xA1,0x3A,0x40, 0x58,0x4C,0x10,0x1A,0xCA,0x07,0x08,0x93, 0xFE,0x48,0x10,0x20,0x31,0x02,0xC2,0xC2, 0xBD,0xBF,0x04,0x62,0x69,0xEF,0x09,0x81, 0x58,0x88,0x15,0x10,0x16,0x17,0x84,0x86, 0xD3,0x02,0xC2,0x24,0x99,0x01,0x61,0x81, 0x40,0xA8,0x7C,0x35,0x20,0x4C,0xA4,0x1B, 0x40,0xBA,0x7A,0x81,0x38,0x88,0x1E,0x10, 0x26,0xC3,0x0F,0x08,0x0B,0x0D,0x42,0xA3, 0x3D,0x30,0x04,0x48,0x0C,0x81,0xB0,0xF8, 0x8E,0x40,0x98,0xF8,0x57,0x91,0x40,0x9C, 0xDF,0x12,0xC4,0x4D,0x69,0x88,0x35,0x01, 0x31,0x0D,0x9E,0x80,0x98,0x22,0x10,0x01, 0x39,0xF6,0xD3,0x43,0x40,0xD6,0x60,0x0A, 0x88,0x45,0x07,0x11,0x90,0x85,0xA8,0x02, 0x62,0x79,0x5D,0x01,0xB1,0xF0,0x20,0x02, 0x72,0xE6,0x97,0x9F,0x80,0xAC,0xE0,0xA5, 0xF3,0x10,0xC0,0xDE,0x10,0x81,0x48,0x72, 0x10,0x01,0x39,0xB0,0x2F,0x20,0x16,0x1F, 0x44,0x40,0xCE,0xFA,0x28,0x14,0x90,0x83, 0x83,0x68,0x10,0xE4,0x6B,0x26,0x20,0xA7, 0x07,0x11,0x10,0xF9,0x04,0x05,0x21,0x6A, 0xBD,0x81,0x30,0x3D,0x8F,0x42,0x0D,0x85, 0x80,0x50,0xE5,0xEA,0xCE,0x31,0x2C,0x07, 0x08,0xCD,0x05,0x22,0x30,0xAB,0x70,0x07, 0xC4,0x54,0x81,0x08,0xC8,0x09,0x80,0xC8, 0xFF,0x9F,0x60,0x2A,0x10,0x9A,0x12,0x8C, 0xEA,0x92,0x07,0xC4,0x12,0x80,0xD0,0x54, 0x20,0x34,0x25,0x88,0x00,0xAD,0xCA,0x1E, 0x10,0x53,0x0A,0x42,0x95,0x83,0xD0,0x74, 0x20,0x54,0xB6,0xBE,0xC3,0x02,0x05,0x11, 0x90,0xA3,0x83,0x50,0xE1,0xFE,0x40,0x98, 0xDE,0x97,0x86,0x00,0x9D,0x0E,0x44,0x40, 0x4E,0x0C,0x42,0x15,0x7C,0x32,0x82,0x10, 0xB1,0x20,0x54,0xC1,0x27,0x23,0x28,0xD1, 0xF2,0xB2,0x13,0x90,0xF5,0x81,0x50,0xBD, 0x20,0x02,0x73,0x36,0x20,0x9A,0x17,0x84, 0xE6,0x07,0xA3,0x5A,0x8D,0x02,0x31,0xFD, 0x20,0x34,0x0F,0x88,0xC0,0xAC,0xE0,0xF9, 0x71,0xC0,0x0C,0x84,0xAA,0x04,0x11,0x98, 0x73,0x01,0xD1,0xAC,0x20,0x34,0x3B,0x18, 0xD5,0xFE,0x0F,0xD1,0x00,0x08,0x08,0xCD, 0x07,0xA2,0xC3,0x00,0x79,0x96,0x09,0xC8, 0x1A,0x41,0xA8,0x66,0x10,0x81,0x39,0x27, 0x10,0xCD,0x0E,0x42,0x95,0xFD,0x4D,0x82, 0x91,0x8C,0x0F,0xD0,0x40,0x24,0x37,0x08, 0xD5,0xF1,0x0C,0x0A,0x46,0x74,0x83,0x08, 0xC8,0x59,0x40,0x68,0x36,0x30,0x9A,0x4C, 0xED,0x91,0x80,0xBA,0x05,0x61,0xE9,0x41, 0x68,0x3A,0xBB,0x83,0xA7,0x20,0x54,0x81, 0x5E,0x30,0xA6,0x19,0x44,0x87,0x05,0x02, 0x42,0x73,0x81,0x51,0x1D,0xAF,0x96,0x40, 0x44,0x1B,0x08,0xD5,0x0A,0xA2,0x81,0x93, 0x1F,0x53,0x10,0x92,0x14,0x84,0xFC,0xFF, 0x07,0xAA,0xC7,0x9C,0x40,0xAC,0xFA,0x5B, 0x25,0x50,0x27,0x01,0xA1,0xC9,0x40,0x74, 0x7C,0x20,0x0F,0xB8,0x83,0x64,0x20,0x54, 0x29,0x88,0xC0,0xAC,0xF4,0x63,0xA4,0x23, 0x05,0x51,0x7D,0xBC,0xA0,0x20,0x34,0xD1, 0x3B,0x2C,0x08,0x7B,0xB8,0x69,0xA8,0xE4, 0x59,0xA5,0xA1,0x12,0x10,0x9A,0x0D,0x44, 0xC7,0x04,0xF2,0xAA,0x79,0x4C,0x60,0x20, 0x54,0x2F,0x08,0xCD,0x01,0x42,0x13,0x83, 0x08,0xD4,0xA9,0xBF,0x37,0x1A,0x2A,0xF9, 0x5B,0x09,0xC4,0xCA,0x5E,0x69,0x02,0xB1, 0xDE,0xA7,0x4E,0x20,0xE6,0x1D,0x98,0xA9, 0x05,0xA1,0xEA,0x41,0x04,0xE6,0xB4,0x40, 0x54,0x81,0x78,0x10,0xA6,0x08,0x44,0x60, 0x4E,0x02,0x44,0xD3,0x81,0xD0,0xEC,0x60, 0x54,0xE7,0xA3,0x4D,0x40,0xD6,0x0E,0x42, 0xB3,0x80,0x08,0xCC,0x59,0x1E,0x69,0x02, 0xB1,0x92,0x2F,0x9D,0x0E,0x24,0x04,0x84, 0x26,0xD3,0x7F,0x68,0xA1,0x05,0x80,0x99, 0x84,0x04,0x20,0x4C,0x16,0x88,0x0E,0x27, 0xD6,0x08,0x22,0x40,0xC7,0x01,0xA3,0xD1, 0x40,0x68,0x5C,0x40,0x9A,0x1D,0x90,0x2A, 0x6D,0x00,0xC6,0x54,0x83,0xD0,0x24,0x20, 0x02,0x74,0x2C,0x10,0x01,0x5A,0x74,0x04, 0x30,0x16,0x01,0x84,0x46,0x05,0xA1,0xC9, 0x2A,0x80,0xB2,0x9C,0x20,0x1A,0x20,0xC9, 0x30,0x60,0x0A,0x42,0x33,0x81,0xD0,0x8C, 0x20,0x54,0x7C,0x07,0x10,0x16,0x04,0x84, 0x86,0x03,0xD1,0x00,0xFE,0xFF,0x8F,0x0C, 0x02,0xD1,0x00,0x9C,0x23,0xC4,0x61,0x85, 0x82,0xD0,0xF4,0x20,0x34,0x6C,0x09,0x50, 0x16,0x1D,0x44,0xC7,0x23,0x92,0x02,0x8C, 0x05,0x02,0xA1,0x31,0x41,0x68,0x6C,0x10, 0x1A,0x29,0x06,0x28,0x13,0x54,0xE3,0x50, 0x44,0x7B,0x80,0x31,0x99,0x20,0x54,0x36, 0x88,0xC0,0x1C,0x14,0x88,0x86,0x07,0xA1, 0x62,0x82,0x00,0x52,0x10,0x01,0x12,0x20, 0x1A,0x1E,0x84,0x8A,0x29,0x32,0x74,0x0A, 0x42,0x55,0x24,0x39,0x9A,0x50,0x10,0x1D, 0x4D,0x08,0x08,0xCD,0x07,0x46,0x75,0x35, 0x39,0x6E,0x50,0x10,0xAA,0x1D,0x84,0x06, 0x05,0xA1,0x39,0xA2,0x80,0xB2,0xEC,0x20, 0x02,0xB2,0x9E,0x2A,0x87,0x0A,0x0A,0x22, 0x30,0xA7,0x02,0xA2,0x49,0x41,0xA8,0x8E, 0x2C,0x47,0x0A,0x9A,0x06,0x84,0x25,0x06, 0xA1,0xC9,0xDA,0x80,0xB0,0x0C,0x75,0x0E, 0x24,0x14,0x84,0xE6,0x04,0xA1,0x4A,0xF2, 0x0C,0x8F,0x82,0xE8,0x38,0x42,0x80,0x68, 0x7A,0x10,0xAA,0xA6,0xCF,0x00,0x28,0x88, 0x06,0x40,0x40,0x68,0x4E,0x30,0xAA,0xA8, 0xD1,0xD1,0x84,0x82,0x50,0xDD,0x2F,0x4E, 0x81,0xF8,0xFF,0x0F, }) // END MBUF } //end DefinitionBlock acpica-unix-20250404/tests/misc/badcode.asl0000700000175000017500000002650414773714160017714 0ustar ivanhuivanhu/* * badcode.asl * * This file contains examples of the extended error checking and * typechecking capabilities of the iASL compiler. Other ASL compilers * may ignore these errors completely. Note - this is not an exhaustive * list of errors detected by iASL, it shows many of the errors that * are not detected by other ASL compilers. * * To compile, use: * iasl badcode.asl * * Output: * Compilation complete. 45 Errors, 28 Warnings, 11 Remarks, 14 Optimizations * */ DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001) { Name (INT1, 0) Name (BUF1, Buffer() {0,1,2,3}) Event (EVT1) // Invalid SyncLevel in Mutex declaration Mutex (MTX1, 32) // Integer beyond the table integer size (32 bits) Name (BIG, 0x1234567887654321) // CPackage length does not match initializer list length Name (PKG1, Package(5) {0,1}) // Inadvertent use of single backslash in a string Name (PATH, Buffer() {"\_SB_.PCI2._CRS"}) // Invalid hex escape sequence Name (ESC1, "abcdefg\x00hijklmn") // Field access beyond region bounds OperationRegion (OPR1, SystemMemory, 0x2000, 6) Field (OPR1, DWordAcc, NoLock, Preserve) { Offset (4), FLD1, 8 } // Some address spaces support only ByteAcc or BufferAcc OperationRegion (OPR2, EmbeddedControl, 0x4000, 8) Field (OPR2, DWordAcc, NoLock, Preserve) { FLD2, 8 } OperationRegion (OPR3, SMBus, 0x8000, 16) Field (OPR3, WordAcc, NoLock, Preserve) { FLD3, 8 } // Invalid SyncLevel in method declaration Method (MTH1, 0, NotSerialized, 32) { // Invalid arguments and uninitialized locals Store (Arg3, Local0) Store (Local1, Local2) // Parameter typechecking (MTX1 is invalid type) Subtract (MTX1, 4, Local3) // Various invalid parameters CreateField (BUF1, 0, Subtract (4, 4), FLD1) // Unchecked mutex and event timeouts Acquire (MTX1, 100) Wait (EVT1, 1) // Result from operation is not used - statement has no effect Add (INT1, 8) // Unreachable code Return (0) Store (5, INT1) } Method (MTH2) { // Switch with no Case statements Switch (ToInteger (INT1)) { Default { } } if (LEqual (INT1, 0)) { Return (INT1) } // Fallthrough exit path does not return a value } Method (MTH3) { // Method MTH2 above does not always return a value Store (MTH2 (), Local0) } // Method MTH4 does not explicitly return a value Method (MTH4) {} Method (MTH5) {Store (MTH4(), Local0)} // Invalid _HID values Device (H1) { Name (_HID, "*PNP0C0A") // Illegal leading asterisk } Device (H2) { Name (_HID, "PNP") // Too short, must be 7 or 8 chars } Device (H3) { Name (_HID, "MYDEVICE01") // Too long, must be 7 or 8 chars } Device (H4) { Name (_HID, "acpi0001") // non-hex chars must be uppercase } Device (H5) { Name (_HID, "PNP-123") // HID must be alphanumeric } Device (H6) { Name (_HID, "") // Illegal Null HID Name (_CID, "") // Illegal Null CID } // Predefined Name typechecking Name (_PRW, 4) Name (_FDI, Buffer () {0}) // Predefined Name argument count validation // and return value validation Method (_OSC, 5) { } // Predefined Names that must be implemented as control methods Name (_L01, 1) Name (_E02, 2) Name (_Q03, 3) Name (_ON, 0) Name (_INI, 1) Name (_PTP, 2) // GPE methods that cause type collision (L vs. E) Scope (\_GPE) { Method (_L1D) { } Method (_E1D) { } } // Predefined names that should not have a return value Method (_FDM, 1) { Return (Buffer(1){0x33}) } Method (_Q22) { Return ("Unexpected Return Value") } // _REG must have a corresponding Operation Region declaration // within the same scope Device (EC) { Method (_REG, 2) { } } /* * Resource Descriptor error checking */ Name (RSC1, ResourceTemplate () { // Illegal nested StartDependent macros StartDependentFn (0, 0) { StartDependentFn (0, 0) { } } // Missing EndDependentFn macro }) Name (RSC2, ResourceTemplate () { // AddressMin is larger than AddressMax IO (Decode16, 0x07D0, // Range Minimum 0x03E8, // Range Maximum 0x01, // Alignment 0x20, // Length ) // Length larger than Min/Max window size Memory32 (ReadOnly, 0x00001000, // Range Minimum 0x00002000, // Range Maximum 0x00000004, // Alignment 0x00002000, // Length ) // Min and Max not multiples of alignment value Memory32 (ReadOnly, 0x00001001, // Range Minimum 0x00002002, // Range Maximum 0x00000004, // Alignment 0x00000200, // Length ) // 10-bit ISA I/O address has a max of 0x3FF FixedIO ( 0xFFFF, // Address 0x20, // Length ) // Invalid AccessSize parameter Register (SystemIO, 0x08, // Bit Width 0x00, // Bit Offset 0x0000000000000100, // Address 0x05 // Access Size ) // Invalid ResourceType (0xB0) QWordSpace (0xB0, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xA5, 0x0000, // Granularity 0xA000, // Range Minimum 0xBFFF, // Range Maximum 0x0000, // Translation Offset 0x2000, // Length ,, ) // AddressMin is larger than AddressMax WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000, // Granularity 0x0200, // Range Minimum 0x0100, // Range Maximum 0x0000, // Translation Offset 0x0100, // Length ,, , TypeStatic) // Length larger than Min/Max window size DWordSpace (0xC3, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xA5, 0x00000000, // Granularity 0x000C8000, // Range Minimum 0x000C9000, // Range Maximum 0x00000000, // Translation Offset 0x00001002, // Length ,, ) // Granularity must be (power-of-two -1) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0x00000010, 0x40000000, 0xFED9FFFF, 0x00000000, 0xBECA0000) // Address Min (with zero length) not on granularity boundary QWordIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0x0000000000000003, // Granularity 0x0000000000000B02, // Range Minimum 0x0000000000000C00, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length ,, , TypeStatic) // Address Max (with zero length) not on (granularity boundary -1) QWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, Cacheable, ReadWrite, 0x0000000000000001, // Granularity 0x0000000000100000, // Range Minimum 0x00000000002FFFFE, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length ,, , AddressRangeMemory, TypeStatic) // Invalid combination: zero length, both Min and Max are fixed DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Granularity 0x000C8000, // Range Minimum 0x000C8FFF, // Range Maximum 0x00000000, // Translation Offset 0x00000000, // Length ,, ) // Invalid combination: non-zero length, Min Fixed, Max not fixed DWordIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0x00000001, // Granularity 0x000C8000, // Range Minimum 0x000C8FFF, // Range Maximum 0x00000000, // Translation Offset 0x00000100, // Length ,, ) // Invalid combination: non-zero length, Min not Fixed, Max fixed DWordIO (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0x00000001, // Granularity 0x000C8000, // Range Minimum 0x000C8FFF, // Range Maximum 0x00000000, // Translation Offset 0x00000200, // Length ,, ) // Granularity must be zero if non-zero length, min/max fixed DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000000F, // Granularity 0x000C8000, // Range Minimum 0x000C8FFF, // Range Maximum 0x00000000, // Translation Offset 0x00001000, // Length ,, ) // Null descriptor (intended to be modified at runtime) must // have a resource tag (to allow it to be modified at runtime) DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Granularity 0x00000000, // Range Minimum 0x00000000, // Range Maximum 0x00000000, // Translation Offset 0x00000000, // Length ,, ) // Missing StartDependentFn macro EndDependentFn () }) // Test descriptor for CreateXxxxField operators in REM1 below Name (RSC3, ResourceTemplate () { DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Granularity 0x000C8000, // Range Minimum 0x000C8FFF, // Range Maximum 0x00000000, // Translation Offset 0x00001000, // Length ,, DWI1) }) Method (REM1) { // Tagged resource field larger than field being created CreateWordField (RSC3, \DWI1._LEN, LEN) CreateByteField (RSC3, \DWI1._MIN, MIN) CreateBitField (RSC3, \DWI1._RNG, RNG1) // Tagged resource field smaller than field being created CreateQWordField (RSC3, \DWI1._MAX, MAX) CreateBitField (RSC3, \DWI1._GRA, GRA) CreateField (RSC3, \DWI1._MIF, 5, MIF) CreateField (RSC3, \DWI1._RNG, 3, RNG2) } Method (L100) { /* Method Local is set but never used */ Store (40, Local0) } } acpica-unix-20250404/tests/templates/0000700000175000017500000000000014773714160016663 5ustar ivanhuivanhuacpica-unix-20250404/tests/templates/templates.sh0000700000175000017500000000165314773714160021225 0ustar ivanhuivanhu#!/bin/bash rm -f *.aml *.asl *.dsl *.log files=`ls` if [ "$1" == 1 ]; then ASL_COMPILER="../../generate/unix/bin/iasl" else ASL_COMPILER="iasl" fi echo "Using $ASL_COMPILER" # # Create and compile the terse (normal) templates just # to ensure that they will emit and compile # $ASL_COMPILER -T ALL > /dev/null 2>&1 $ASL_COMPILER *.asl > /dev/null 2>&1 rm -f *.aml *.asl *.dsl *.log # Create the templates (use verbose mode) $ASL_COMPILER -vt -T ALL > /dev/null 2>&1 # Compile the templates $ASL_COMPILER *.asl > /dev/null 2>&1 # Disassemble the compiled templates $ASL_COMPILER -d *.aml > /dev/null 2>&1 > diff.log # # Compare templates to compiled/disassembled templates # for f in $files ; do if [ "$f" != "$0" ] && [ "$f" != "Makefile" ]; then sig=`echo $f | awk -F. '{print $1}'` # Ignore differences in the comment/header field diff -pu -I" \*" $sig.asl $sig.dsl >> diff.log fi done acpica-unix-20250404/tests/templates/Makefile0000700000175000017500000000136314773714160020331 0ustar ivanhuivanhu# Before running this file, we assume we have generated all tables by running # the command `$(ASL) -T ALL` # # Note: the NAME flag is required when running the test aml_obj=$(NAME).aml dsl_obj=$(NAME).dsl aml_obj2=$(NAME)_recomp.aml all: $(aml_obj2) # recompile and binary compare $(aml_obj2): %_recomp.aml: %.dsl $(ASL) -p `basename $@` $< > /dev/null 2> /dev/null $(acpibin) -c $@ $(patsubst %_recomp.aml,%.aml,$@) > /dev/null 2> /dev/null printf "Data table %s PASS\n" $(basename $< .dsl) # disassemble $(dsl_obj): %.dsl: %.aml $(ASL) -d $< > /dev/null 2> /dev/null # initial compile $(aml_obj): %.aml: %.asl $(ASL) $< > /dev/null 2> /dev/null templates : sh templates.sh .PHONY: clean clean: rm -f *.asl *.aml *.dsl *.hex diff.log acpica-unix-20250404/tests/.cygwin0000700000175000017500000000033314773714146016174 0ustar ivanhuivanhuexport ASL="c:/acpica/libraries/iasl.exe" export acpiexec="c:/acpica/libraries/acpiexec.exe" export ASLTSDIR="c:/acpica/tests/aslts" PATH=$PATH:/cygdrive/c/acpica/tests/aslts/bin PATH=$PATH:/cygdrive/c/acpica/libraries acpica-unix-20250404/tests/aslts/0000700000175000017500000000000014773714160016013 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/doc/0000700000175000017500000000000014773714147016565 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/doc/CurrentState0000700000175000017500000000457614773714146021151 0ustar ivanhuivanhu Free layout. Some remarks about the current state of the aslts test suite vs ACPICA. Written up to 20050729 [Jul 30 2005] ACPICA (some stuff can be obsolete nevertheless useful to pay attention to the important things). ================================================================ MANY TESTS ARE DISABLED: Many pieces of AML tests code are now excluded by means of y and qXXX disable/enable variables. aslts/src/runtime/cntl/runmode.asl: See description of y which disable many crashing/failing tests executions. There are 49 such y and 6 qXXX/rnXX conditional variables set to zero in runmode.asl file now - the relevant tests are disabled in order not to cause crashes, hangs etc... ================================================================== Information to the new Dynamic Object Deletion complex test. aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/dynobj.asl: 1. These tests require support of ACPICA (_TCI). We have not yet delivered it. So, now the result of run is like this below. - ex main Executing \MAIN tbxfroot-0267 [12] TbFindTable : Found table [DSDT] [ACPI Debug] String: [0x0B] "64-bit mode" [ACPI Debug] String: [0x34] "TEST (complex), Dynamic Object Deletion complex test" [ACPI Debug] String: [0x42] "The Test Command interface with the ACPICA (_TCI) is not supported" [ACPI Debug] String: [0x12] "Test DYN0 skipped!" [ACPI Debug] String: [0x29] "Run time (in seconds): 0x0000000000000000" [ACPI Debug] String: [0x38] "The total number of exceptions handled: 0000000000000000" [ACPI Debug] String: [0x1A] "TEST ACPICA: 64-bit : PASS" Execution of \MAIN returned object 00326E38 Buflen 10 [Integer] = 0000000000000000 - q utalloc-1049 [03] UtDumpAllocations : No outstanding allocations. 2. Many issues are excluded from execution by the variables (rn01 - rn04). They are set to zeros now. Set them up to non-zeros, run the test and investigate errors: IMPL/ACPICA/common/icommon.asl: Name(rn00, 1) // Correct, no any remarks Name(rn01, 0) // Investigation needed Name(rn02, 0) // Classified as a bug Name(rn03, 0) // Causes exception Name(rn04, 0) // Regression 3. Many minor issues are to be reported like this: 1. In optimized mode Add(3, 4) created 4 objects, though 1 is enough as that is in Store(Add(3, 4), i000) case... ================================================================== acpica-unix-20250404/tests/aslts/doc/README0000700000175000017500000000170714773714147017455 0ustar ivanhuivanhu CONTENTS miscellaneous descriptive information docs designing the Source Operand Complex test (and similar) was quite complicated work; to concentarate on the main aspects of it and to prove ourselves being on the proper way and break hesitating in details these principles were outlined (file TestOfOperands); principles could be useful in general to design ASL tests plan remaining work, our ideas about which more tests should be designed, the time and priority of work estimation StoreCopyTestPrototype these demo programs may be considered as a prototypes of separate functional tests for CopyObject and Store operators CurrentState remarks about the current state of tests; for example some sub-tests of tests are suppressed due to the fact they cause abort of execution; after fixing the root problems in ACPICA these sub-tests must be enabled; these and similar information about the tests is here acpica-unix-20250404/tests/aslts/doc/docs/0000700000175000017500000000000014773714147017515 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/doc/docs/TestOfOperands0000700000175000017500000010315114773714147022344 0ustar ivanhuivanhuSome information can be obsolete. It was useful when we started designing the tests to attempt to gather ideas about the subject of testing and approach of testing. ================================ Source Operand Complex test specification (guideline of designing the test) Collection of remarks not intended to constitute the facile joined statement. These considerations should be taken into account while designing the Source Operand Complex test. Some of them are applicable in general while designing the ASL tests. All the ASL declarartions allowed by the ASL compiler have to work in compliance with the ACPI specification, in a predictable and convenient for users manner (so, ACPI could be changed as well). Outlined are the subject of testing, the main aspects of it, the main points to be concentrated on while designing the test and the practical steps which should be performed to achieve the worthy coverage of the test. Also the objective difficulties which are on that way are explained. This text is for ourselves in the first order. Allow, some statements to be abstract, non-strict and questionable. Bilieve, the abstraction will be useful. Writing the Operand Complex test is quite complicated (it is not a functional test were you simply verify each feature separately), so after implementing some its part you see some ASL functionality is involved by test repeatedly though you thought about different things. This text is in particular intended to enumerate all the aspects to be verified, and don't further hesitate if all them are applied. The intention of the test is to verify all the grammar rules of specifying and delivering operands to operators. This is a wide range of issues which are simpler to understand and embrace given together as a separate particular topic, as a separate approach. Each the particular relevant aspect should be given separately, the approach of how to test it should be designed and then applied to all the ASL operators. Then the next aspect should be taken separately and also verified for all the operators. This would allow to concentrate deeply on each aspect and to observe the coverage provided by the test which would be impossible to do in the contrary case when the per-operator tests each contains all the aspects checkings. All the relevant aspects should be verified for each particular operator (or at least for one member of each group of operators divided according to the considered aspects of delivering operands to operators if only you can found such division to groups). While building the tests we have observed many confirmations of the idea that aspects of delivering operands to operators can work differently for different operators, while being proper for some of them it fails for other. Minimum functionality of operators should be involved there to prove only the fact that operands are delivered to operators correctly. To check functionality of operators is up to other tests. The test should also check that the source values which were referred to as parameters were not corrupted by the execution of the particular operator, which are the situations being in practice revealed by our other tests many times. The test verifies processing of both the valid operands and invalid operands. Building the invalid operand checkings is a simple task - pass operator with the inappropriate type operand and check that the exception occurs. So, below are mostly about the valid operand checkings. The valid operand checkings verify all the legal ways of specifying and delivering operands to ASL operators. The following section describes the essential aspects of that process. Note: some particularities are obsolete due to the change of ACPI specification since that. ESSENTIAL ASPECTS OF OPERAND DELIVERING ======================================= IMAGES All the vatiety of ways specifying the immediate images of ASL objects of all types should be represented. All the types are given in the table 17-20 of ACPI specification: Uninitialized * Integer * String * Buffer * Package * Field Unit Device Event Method Mutex Operation Region Power Resource Processor Thermal Zone * Buffer Field DDB Handle (*) - computational types. The table #1 below shows all the variety of computational type images () - the remained types are mostly used in the invalid operand checkings LOCATIONS The location of the object in the name space relating to the operator where that object is utilized. - statically accessible global object located immediately in the DefinitionBlock - statically accessible declared locally in the current scope - statically accessible declared locally in the surrounding upper scope, (1,2,3,...,LOC_LEVELS levels up) - inaccessible statically, declared locally in the sequence of the calling methods, (1,2,3,...,LOC_LEVELS levels up) Note: all the functionality of all scope generating concepts: DefinitionBlock, Scope, Device, Method, Function, Processor, PowerResource, ThermalZone,... will be verified in the relevant complex tests, not here. REFERENCES References to objects, dereferred then by DeRefOf. References by Index Index(String, Index) Index(Buffer, Index) Index(Package, Index) Index(String, Index, Destination) Index(Buffer, Index, Destination) Index(Package, Index, Destination) DerefOf(Index(String, Index)) DerefOf(Index(Buffer, Index)) DerefOf(Index(Package, Index)) DerefOf(Index(String, Index, Destination)) DerefOf(Index(Buffer, Index, Destination)) DerefOf(Index(Package, Index, Destination)) References by RefOf RefOf(Integer) RefOf(String) RefOf(Buffer) RefOf(Package) DerefOf(RefOf(Integer)) DerefOf(RefOf(String)) DerefOf(RefOf(Buffer)) DerefOf(RefOf(Package)) References by CondRefOf CondRefOf(Integer) CondRefOf(String) CondRefOf(Buffer) CondRefOf(Package) CondRefOf(Integer, Result) CondRefOf(String, Result) CondRefOf(Buffer, Result) CondRefOf(Package, Result) DerefOf(CondRefOf(Integer)) DerefOf(CondRefOf(String)) DerefOf(CondRefOf(Buffer)) DerefOf(CondRefOf(Package)) DerefOf(CondRefOf(Integer, Result)) DerefOf(CondRefOf(String, Result)) DerefOf(CondRefOf(Buffer, Result)) DerefOf(CondRefOf(Package, Result)) Note: it was observed earlier that logical operators didn't cause exceptions when using references. This looks incorrect. Keep attention to that. Don't forget to build the test for it. Note: specification of Reference test contains more exact list. EXPRESSIONS The way how the object is specified for operator in place of operand. - immediate image - ArgX - LocalX - NamedX - expression as such, immediate result of other operators (references are some of operators as well) like this: Operator(Operator(Operator(Operator(...)))) Operator([Operand,]Operator([Operand,]Operator(...))) Depth: 1,2,3,...,EXP_LEVELS - use execution of other Methods as a kind of expressions as well Note: expressions in place of locations for results (Destinations) should be verified in this test as well, because together with the expressions of operands they can influence each other. Issue: expressions in result, is that possible to use? METHODS - use Methods as elements of expressions - use all kind expressions as parameters to Methods CONVERSION The Implicit Source Operand Conversion functionality (17.2.5.7 Data Type Conversion Rules) should be verified also. The table # 1 below proposes the particular values for to initiate all the variety of Implicit Source Operand Conversion rules. OPERATORS As it was mentioned above, the particular target operator can impact delivering operands to it. Thus, we can't build the test for only one particular operator but should be bent on building the checkings for many (to all is the best) of them or for one member of each group (if manage found division). An aspect can work correctly while delivering operand to one operator but fail while delivering to other. Pay attention to both: - the complete and the reduced forms of operators - the target operators and operators used in expressions MISCELLANEOUS Additional miscellaneous features, particular situations which should be verified. They are descended from the aspects above (as the particular elements of an absolute test (see below)). These notes allow to keep additional attention to them. They look to be a complicated modes for ACPICA. Note: add this aspect with more new complicated checkings. 1. Use the same object more than one time in expressions of operands and destinations: - in expression of one operand of target operator - in expressions of different operands of the target operator - in expression of one operand and the result is stored into the object - in expressions of different operands of target operator and the result is located into the object... - in other words, continue combinations of these features: (one operand)/(some (all) operands) (one operator)/(several operators) (store result in it)/(don't store result in it)... 2. Pass the object of upper level (or even global) accessible statically by ArgX of sequence of calling methods (operand1) and specify the same object as another operand immediately by its NameX (operand2) and use them both in turn (operand1/operand2) as locations for result. 3. Other cases. ABSOLUTE TEST ABSTRACTION ========================= So, all the aspects which can impact delivering operands to operators and thus should be verified are these: Images Locations References Expressions Methods Conversion Operators Miscellaneous The more you mix these aspects the more comprehensive test you have. Each impact generated and verified by test is a function of (N1,N2,N3,N4,N5,N6,N7,N8) parameters. So, to build the total absolute comprehensive test we have to build and verify all the possible combinations of these input states. In this case we will miss nothing and the total coverage of testing the operand delivering will be achieved. To build the test as a simple enumeration and verification of all possible combinations of given above parameters would be the simplest way. Though it would be usually much redundant we would be happy and assured that the total coverage would be actually achieved. Note: what actually is the mix of these (N1-N8) aspects? REALITY, LIMITATIONS OF ACPICA ASL ================================== But there are several limitations of ACPICA ASL which make such simplest and the total coverage assured approach (absolute test) impossible, because they prevent automated processing. About all that below. In consequence of all that, it is remained only to rely on the human factor, intuition and skill to achieve the worthy coverage of the test. Elements of ASL Package could be only Integer, String, Buffer and Package type objects. Other type objects could not be represented immediately in Package. So, it is impossible to collect all the desirable different type objects in Package and then refer them in cycle. We can't pass Method with the Uninitialized object, so these conditions should be also provided by the test as the immediate references to the Uninitialized objects which prevents automated processing as well. One more inconvenience for testing arises from the type conversion functionality. Due to that some type objects could not be represented not only as elements of Package, but also be passed to Method as parameters (Buffer Field, Field Unit, etc..), since they are converted to either Integer or Buffer types in the latter case. As a result, these conditions should be provided by the test immediately also and can not be referred in cycle. The are similar limitations on return from method as well. Some groups of operators (Concatenate; Logical operators) have particularities of Implicit Source Operand Conversion functionality which also restricts uniformity of test for different operators. So, we can't run in cycle all the possible desirable combinations (and aspects) of operands for all the ASL operators, because the ASL limitations don't allow to achieve uniformity of the test building. It is impossible to build the test which simply enumerates all combinations and so achieve the total coverage. One more, such the test will go during the huge boundless time. Thus, it is up to the skill of the designer of the test to choose the main points to be verified in order to build the test which would achieve the worthy coverage for the acceptable time of execution. So, maybe, attempt to divide operators on groups according to the specific of their operands and one operator of each group verify comprehensively, while other members of groups verify in a simplified manner. Do that if the run time of the test increases extremely. So, because of the ASL limitations described above we can't implement the comprehencive test, which would be proven to approximate to the absolute test on coverage. But this specification and the tests adhered to it would allow us to feel ourselves to be on the firm way to achieve the worthy coverage and consider that we have done all needed from our side to achieve the comprehencive tests. So, due to the limitations of ASL above, we refuse attempts to write the common engine which would simplify our work and ensure the high coverage of test. Nevertheless, write and apply where possible the common use methods. Bugs of product revealed must be fixed in real time! Very, very much important! Basing on the proper functionality provided by the target product you achieve more and more deep testing. Once again, it is very much important. Otherwise, the testing turns sour. COMPUTATIONAL DATA IMMEDIATE IMAGES =================================== The table below contains the recommended variety of immediate images for computational types: Integer, String, Buffer, Buffer Field, Field Unit, Package. The table pretends to enumerate all the variety of them. (the Implicit Source Operand Conversion Rules are marked in the table #x with (*). They are ... in this table. For example 8,32:b4,b25,b28 means ...) Table 1. Computational data, immediate images Features of source Operands Features of target Operands | Integer | String | Buffer | ================================================================================== | i1| 0321 | | 25 | 17 | | i2| 9876543210 | | | | I | i3| 0xc179b3fe | | 25,32:i3 | 17,32:i3 | n | i4| 0xfe7cb391d650a284 | | 25,64:i4 | 17,64:i4 | t | i5| 0 | | | | e | i6| 0xffffffff | | | | g | i7| 0xffffffffffffffff | | | | e | i8| 0xabcdef | | | | r | i9| 0xABCDEF | | | | | i10| 0xff | | | | | i11| 0xffffffffff | | | | ---------------------------------------------------------------------------------- | s1| "0321" | 36 | | 28 | | s2| "321" | | | | | s3| "ba9876" | 36,32:s1,s4 | | 28,32:s1,s14, | | s4| "c179b3fe" | 36,64:s1,s5 | | s12 | | s5| "fe7cb391d650a284" | | | 28,64:s1,s14, | | s6| "ffffffff" | 32:s8(exc) | | s12 | S | s7| "ffffffffffffffff" | 64:s8(exc) | | | t | s8| "fe7cb391d650a2841" | 32:s11(exc) | | | r | s9| "9876543210" | 64:s11(exc) | | | i | s10| "0xfe7cb3" | 32:s12(exc) | | | n | s11| "1234q" | 64:s12(exc) | | | g | s12| "" | 32:s13(exc) | | | | s13| " " | 64:s13(exc) | | | | s14| of size 200 bytes | 32:s10(exc) | | | | - | >200, imps, bugs fix | 64:s10(exc) | | | | s15| | | | | | s16| "abcdef" | | | | | s17| "ABCDEF" | | | | | s18| "ff" | | | | | s19| "ffffffffff" | | | | ---------------------------------------------------------------------------------- | b1| B(1){b0} | 6,7 | 8,9 | | | b2| B(2){b0,b1} | | | | | b3| B() {b0,b1,b2} | 6,32:b6 | 8,32:b6,b20 | | | b4| B(2){b0,b1,b2} | 6,64:b6 | 8,64:b6,b20 | | | b5| B(3){b0,b1} | | | | | b6| B(3){b0,b1,b2} | 7,32:b10 | 9,32:b21(exc) | | | b7| B(4){b0,...,b3} | 7,64:b10 | 9,64:b21(exc) | | | b8| B(5){b0,...,b4} | | | | | b9| B(8){b0,...,b7} | | 32:b22(exc) | | | b10| B(9){b0,b1,...,b8} | | 64:b22(exc) | | | b11| B(257){b0} | | | | | b12| B(257){b0,...,b256} | | | | | b13| B(){b0,...,b256} | | | | | b14| B(ArgX){=} | | | | B | b15| B(ArgX){<} | | | | u | b16| B(ArgX){>} | | | | f | b17| B(LocalX){=} | | | | f | b18| B(LocalX){<} | | | | e | b19| B(LocalX){>} | | | | r | b20| B(67){b0,...,b66} | | | | | b21| B(68){b0,...,b67} | | | | | b22| B(ArgX/LocalX==0){} | | | | | b23| B(1){} | | | | | b24| B(5){} | | | | | b25| B(9){} | | | | | b26| B(4){0,...,0} | | | | | b27| B(8){0,...,0} | | | | | b28| B(1){0xff} | | | | | b29| B(4){0xff,...,0xff} | | | | | b30| B(5){0xff,...,0xff} | | | | | b31| B(8){0xff,...,0xff} | | | | | b32| B(9){0xff,...,0xff} | | | | | b33| B(5){0x12,...,0x90} | | | | | b34| B(3){0xab,0xcd,0xef} | | | | | b35| B(3){0xAB,0xCD,0xEF} | | | | | b36| B(200){b0,...,b199} | | | | | b37| B(201){b0,...,b200} | | | | ---------------------------------------------------------------------------------- B | bf1| CF(:31) | 10 | | 11 | u | bf2| CF(:32) | | | | f | bf3| CF(:33) | 10,32:bf1,bf2 | | 11,32:bf3 | f | bf4| CF(:63) | 10,64:bf4,bf5 | | 11,32:bf6 | e | bf5| CF(:64) | | | | r | bf6| CF(:65) | | 32:bf10(exc) | | | bf7| CF(:0) | | 64:bf10(exc) | | F | bf9| CF(:67*8) | | | | i |bf10| CF(:68*8) | | | | e |bf11| CF(:257*8) | | | | l |bf12| BfField,3bytes+{0-16}| | | | d |bf13| BfField,7bytes+{0-16}| | | | ---------------------------------------------------------------------------------- | fu1| F(:31) | 14 | | 15 | F | fu2| F(:32) | | | | i | fu3| F(:33) | 14,32:fu1,fu2 | | 15,32:fu3 | e | fu4| F(:63) | 14,64:fu4,fu5 | | 15,32:fu6 | l | fu5| F(:64) | | | | d | fu6| F(:65) | | 32:fu10(exc) | | | fu7| F(:0) | | 64:fu10(exc) | | U | fu9| F(:67*8) | | | | n |fu10| F(:68*8) | | | | i |fu11| F(:257*8) | | | | t |fu12| Field,3bytes+{0-16} | | | | |fu13| Field,7bytes+{0-16} | | | | ---------------------------------------------------------------------------------- Package ================================================================================== Note: the Implicit Rules were a few changed since that! START WITH THESE OPERATORS (and maybe don't go beyond that) ========================== This is a list of operators which are recommended to be implemented in the first turn. List of operators which should be verified completely (all the aspects of delivering operands to them should be verified). One-parameter operators: - Increment - Decrement - FindSetLeftBit - one of these: ToBuffer, ToDecimalString, ToHexString, ToInteger, ToBCD, FromBCD - Not - SizeOf - Store - CopyObject All other one-parameter operators may be verified partially. Two-parameters operators: - Add - Divide - Multiply - LGreater - ToString - Concatenate - ShiftLeft - Lor - NAnd - XOr All other two-parameters operators may be verified partially. Three-parameters operators: - Mid Six-parameters operators: - Match The tests of operands for the following operators may be implemented separately in their per-operator tests: - If,Elseif - While The positive (not exceptions) tests of operands for the following operators have been done in per-operator tests: - Switch, Case OPERATORS INFO ============== The table below contains the list of operators assigned with digital indexes in the alphabetical order: - one-parameter (25 Operators) - two-parameters (26 Operators) - three-parameters (2 Operators) - six-parameters (1 Operator) Table 2. Operators // ////////////////////////////////////////////////////////////////////////// // // 1 parameter (25 Operators) // // 5 - CondRefOf (any, Result) => Boolean // 6 - CopyObject (any, Destination) => DataRefObject // * 7 - Decrement (int) => Integer // 8 - DerefOf ({ref|str}) => Object // * 11 - FindSetLeftBit (int, Result) => Integer // * 12 - FindSetRightBit (int, Result) => Integer // * 13 - FromBCD (int, Result) => Integer // * 14 - Increment (int) => Integer // * 22 - LNot (int) => Boolean // * 31 - Not (int, Result) => Integer // 32 - ObjectType (any) => Integer // 34 - RefOf (any) => ObjectReference // 35 - Release (mux) // 36 - Reset (evt) // 37 - Return ({any|ref}) // 40 - Signal (evt) // * 41 - SizeOf ({int|str|buf|pkg}) => Integer // * 42 - Sleep (int) // * 43 - Stall (int) // 44 - Store (any, Destination) => DataRefObject // * 46 - ToBCD (int, Result) => Integer // * 47 - ToBuffer ({int|str|buf}, Result) => Buffer // * 48 - ToDecimalString ({int|str|buf}, Result) => String // * 49 - ToHexString ({int|str|buf}, Result) => String // * 50 - ToInteger ({int|str|buf}, Result) => Integer // // 2 parameters (26 Operators) // // 0 - Acquire (mux, wrd) => Boolean // * 1 - Add (int, int, Result) => Integer // * 2 - And (int, int, Result) => Integer // * 3 - Concatenate ({int|str|buf}, {int|str|buf}, Result) => ComputationalData // * 4 - ConcatResTempl (rtb, rtb, Result) => Buffer // * 9 - Divide (int, int, Remainder, Result) => Integer // 15 - Index ({str|buf|pkg}, int, Destination) => ObjectReference // * 16 - LAnd (int, int) => Boolean // * 17 - LEqual ({int|str|buf}, {int|str|buf}) => Boolean // * 18 - LGreater ({int|str|buf}, {int|str|buf}) => Boolean // * 19 - LGreaterEqual ({int|str|buf}, {int|str|buf}) => Boolean // * 20 - LLess ({int|str|buf}, {int|str|buf}) => Boolean // * 21 - LLessEqual ({int|str|buf}, {int|str|buf}) => Boolean // * 23 - LNotEqual ({int|str|buf}, {int|str|buf}) => Boolean // * 24 - LOr (int, int) => Boolean // * 27 - Mod (int, int, Result) => Integer // * 28 - Multiply (int, int, Result) => Integer // * 29 - NAnd (int, int, Result) => Integer // * 30 - NOr (int, int, Result) => Integer // * 33 - Or (int, int, Result) => Integer // * 38 - ShiftLeft (int, int, Result) => Integer // * 39 - ShiftRight (int, int, Result) => Integer // * 45 - Subtract (int, int, Result) => Integer // * 51 - ToString (buf, int, Result) => String // * 52 - Wait (evt, int) => Boolean // * 53 - XOr (int, int, Result) => Integer // // 3 parameters (2 Operators) // // 10 - Fatal (byt, dwd, int) // * 26 - Mid ({str|buf}, int, int, Result) => Buffer or String // // 6 parameters (1 Operator) // // * 25 - Match (pkg, byt, int, byt, int, int) => Ones | Integer // // 1 parameter (5 Operators) // // * 54 - If (int) // * 55 - Elseif (int) // 56 - Switch ({int|str|buf}) // 57 - Case ({int|str|buf|pkg}) // * 58 - While (int) // // (*) - conversion is expected. Operators which are expected // to have conversion of their operands. // // ////////////////////////////////////////////////////////////////////////// STRUCTURE OF TEST ================= 1. Sub-test for aspect 1, verifications for all operators. 2. Sub-test for aspect 2, verifications for all operators. N. Sub-test for aspect N, verifications for all operators. The valid operand checkings and invalid operand checkings should be structurized as different runs - no exceptions should be exercised during the valid operand checkings execution. TABLE OF AVAILABLE MIX OF ASPECTS ================================= 1 2 3 4 5 6 7 8 im loc ref exp mth conv oper misc ---------------------------------------------------------------------------- A | Images | | | | | | | | | B | Locations | | | | | | | | | C | References | | | | | | | | | D | Expressions | | | | | | | | | E | Methods | | | | | | | | | F | Conversion | | | | | | | | | G | Operators | | | | | | | | | H | Miscellaneous | | | | | | | | | ---------------------------------------------------------------------------- Example: A1 means ... Note: you see, it is not ready. PARTICULAR INFORMATION ====================== Buffer Field operators should be passed directly only because ASL doesn't allow to pass Buffer Field type objects without conversion (they are converted to either Integer or Buffer types). Allocate Buffer Fields for both operands from the same buffer (Buffer(20){}). Fill the entire Buffer with the zeros (units), then fill the fields with the units (zeros) and check the contents of the whole Buffer after Operator completion. Results should be written into LocalX, not to involve the "Implicit Result Object Conversion". Perhaps, groups of operators can have the same checkings which can be handled by the same methods (with different benchmark values) so simplifying the designing of tests. But the rest of checkings should be provided by the actions individual for the particular operators. BRIEF RECOMMENDATIONS (summary from above) ===================== There should be the most important or usually forgotten things 1. use all type immediate Images 2. use all type Locations 3. use all type References 4. use all type Expressions 5. use Methods in expressions and expressions as parameters to Methods 6. initiate all kind of Implicit Source Operand Conversion 7. exercise all Operators 8. apply recommendations given in Miscellaneous section 9. use full and reduced forms of operators (mean optional Results) 10. use zero length Buffers 11. use uninitialized elements of Packages 12. use non-computational elements of Packages to (initiate/NOT initiate) exceptions during conversion (Match..) 13. use Packages: uninitialized,...,uninitialized, 14. use all operators - ObjectType, SizeOf and LEqual to verify results 15. verify all the obtained results 16. check that the source objects were not corrupted by execution (use all - ObjectType, SizeOf and LEqual) 17. remember about the NULL symbols of strings 18. mix different (all) aspects; the more you mix aspects the more comprehensive test you have 19. add directives into Miscellaneous section and here while increasing your skill of building the test 20. use the same object (and several such objects) (ArgX,LocalX,Name(X)) in different operands and Destination of the same operator 21. use the same object (and several such objects) (ArgX,LocalX,Name(X)) in different operands of different operators of the same expression 22. do the input control (ObjectType, SizeOf, LEqual) of passed values (where needed) 23. check operators for unacceptable types of operands (exception occur) 24. for the acceptable types of operands check particular unacceptable values (exception occur) 25. check that the result is of the same type as the benchmark (use ObjectType, don't be satisfied with LEqual only) 26. the second operands of Logical operators are converted to the type of the first ones; do the checkings which show and confirm that 27. conversion of the second operands of Concatenate operator is performed according to the table; do the checkings which show and confirm that 28. use immediate invocations of operators in place of operands of other operators 29. each operand of several-operands oprerators should be verified 30. before running the operation initialize the destination area with the contr-data (zero expected, take unit; unit expected, take zero); so you see that result does actual change 31. ... --------------------------------------------------------- /* Do the table (or section): ========================== Constants Global named objects Dynamical named objects LocalX ArgX Element of Buffer Element of String Element of Package (DerefOf(Index())) Return of Method Object by reference ... */ /* SEE: update all concerning the Table 17-8 Object Conversion Rules (because specs where changed!): Table 1 file: conversion_table tests:... */ /* See: LocalX/ArgX - different size of source operator Integer, 0xff, 0xffff, 0xffffff, ... - bit of sign of value - all the available symbols (in all positions of 0-9,a-f,A-F) - 32/64 - all unavailable symbols (all except 0-9,a-f,A-F) - combinations of all available/unavailable symbols - B(ArgX){...} - B(LocalX){...} - particular test: Store Buffer/Integer into String which (String) is far longer then Buffer/Integer. The String immage will be reduces. Then attempt to work with the rest of String outside of the new its contents (behind the null symbol of String). - reference as an element of Package - verify 64-bit values in 32-bit mode */ /* SEE: pseudo accidental test */ /* ???????? what in practice are this mix of aspects ??????????? ??????? see is that possible to use expressions in result ?????? ????? uninitialized data of Package - use them ????? */ acpica-unix-20250404/tests/aslts/doc/docs/ConversionTable0000700000175000017500000001336214773714147022545 0ustar ivanhuivanhu A few obsolete too. ================================================ Implicit Source Operand Conversion, Complex test ================================================ Features of target Operands ------------------------------- |Integer | String | Buffer | Features of source Operands | | | | ---------------------------------------------------------------------- Integer |i1| 0x89abcdef |32/64 | | | |i2| 0xfedcba9876543201 |i1 - i4 |i1 - i4 |i1 - i4 | |i3| 0 | | | | |i4| 0xffffffffffffffff | | | | |i5| 0xffffffff | | | | ---------------------------------------------------------------------- String =6|s1| "ba9876" |32: s1,s2| | | =8|s2| "89abcdef" |64: s1,s3|s4,s5,s6 |s4,s5,s6 | =16|s3| "fedcba9876543201" | | | | =3|s4| "321" |exc32: | | | =200|s5| | s6,s7, | | | =0|s6| "" | s8,sc | | | |s7| "1234q" |exc64: | | | =9|s8| "987654321" | s6,s7, | | | =17|s9| "9fedcba9876543210" | s9,sc | | | |sa| "ffffffffffffffff" | | | | |sb| "ffffffff" | | | | |sc| "0xfedcba" | | | | ---------------------------------------------------------------------- Buffer |b1| B(3){b0,b1,b2} |32: b1,b2|b1,b4,b7 |b1,b5,b7 | |b2| B(6){b0,b1,...,b5} |64: b2,b3| | | |b3| B(9){b0,b1,...,b8} | |exc: b6 | | |b4| B(200){b0,...,b199} | | | | |b5| B(257){b0,...,b256} | | | | |b6| B(201){b0,...,b200} | | | | |b7| B(0){} | | | | |b8| B(){ff,ff,ff,ff, | | | | | | ff,ff,ff,ff} | | | | |b9| B(){ff,ff,ff,ff} | | | | ---------------------------------------------------------------------- Buffer Field |f1| CF(11:23) |32: f1,f2|32: f5,f6|32: f5,f6| |f2| CF(38:51) |64: f2,f3|64: f7,f8|64: f7,f8| |f3| CF(101:74) | | | | |f4| CF(179:0) |both: f4 |both: f4,|both: f4,| |f5| CF(183:32) | | f9 | fb | |f6| CF(219:33) | | | | |f7| CF(257:64) | |exc: fa | | |f8| CF(325:65) | | | | |f9| CF(17:67*8) | | | | |fa| CF(17:68*8) | | | | |fb| CF(17:257*8) | | | | ---------------------------------------------------------------------- Prepare the summary table: which operands which results: Buffer -> Buffer Field 1: 2: Buffer -> Debug Object 3: Buffer -> Field Unit 4: 5: Buffer -> Integer 6: b1 7: b3 Buffer -> String 8: b1,b4,b7 9: b6 Buffer Field -> [See Rule] 10, 32: f4,f5 10, 64: f4,f7 11, 32: f6,f9,fb 11, 64: f8,f9,fb Buffer Field -> Debug Object 12: DDB Handle -> 13: Field Unit -> /* SEE: 14, 32: f4,f5 14, 64: f4,f7 15, 32: f6,f9,fb 15, 64: f8,f9,fb */ Field Unit -> Debug Object 16: Integer -> Buffer 17: i2 18: 19: Integer -> Buffer Field 20: 21: Integer -> Debug Object 22: Integer -> Field Unit 23: 24: Integer -> String 25, 32: i1, i2 25, 64: i2 Package -> Package 26: Package -> Debug Object 27: String -> Buffer 28: s4,s5,s6 29: 30: String -> Buffer Field 31: 32: String -> Debug Object 33: String -> Field Unit 34: 35: String -> Integer 36, 32: s2 36, 64: s3 Coverage of Table 17-8 ("Object Conversion Rules"): |Integer | String | Buffer | | | | | -------------------------------------------------------------- | | 25 | 17 | Integer 32| i1,i2 | i1,i2 | | 64| i2 | i2 | i2 | | | | | -------------------------------------------------------------- | 36 | | 28 | String 32| s2 exc:s8 | | | 64| s3 exc:s9 | s4,s5,s6 | s4,s5,s6 | | exc: s6,s7 | | | -------------------------------------------------------------- | 6,7 | 8,9 | | Buffer 32| | | | 64| 6:b1 7:b3 |8:b1,b4,b7 9:b6| b1,b5,b7 | | | | | -------------------------------------------------------------- | 10 | 10,11| 10,11| Buffer 32| f4,f5 |14:f4,f5 15:f6 |14:f4,f5 15:f6 | Field 64| f4,f7 |14:f4,f7 15:f8 |14:f4,f7 15:f8 | | |15:f9 exc:fa |15:fb | -------------------------------------------------------------- acpica-unix-20250404/tests/aslts/doc/docs/ConversionRules0000700000175000017500000001417014773714147022606 0ustar ivanhuivanhu Now it is a few obsolete. 17.2.5.7 Data Type Conversion Rules Buffer -> Buffer Field The contents of the buffer are copied to the Buffer Field. 1. If the buffer is smaller than the size of the buffer field, it is zero extended. 2. If the buffer is larger than the size of the buffer field, the upper bits are truncated. Buffer -> Debug Object 3. Each buffer byte is displayed as a hexadecimal integer, delimited by spaces and/or commas. Buffer -> Field Unit The entire contents of the buffer are copied to the Field Unit. 4. If the buffer is larger (in bits) than the size of the Field Unit, it is broken into pieces and completely written to the Field Unit, lower chunks first. 5. If the integer (or the last piece of the integer, if broken up) is smaller or equal in size to the Field Unit, then it is zero extended before being written. Buffer -> Integer If no integer object exists, a new integer is created. The contents of the buffer are copied to the Integer, starting with the least-significant bit * 6. and continuing until the buffer has been completely copied * 7. — up to the maximum number of bits in an Integer (64 starting in ACPI 2.0). Buffer -> String If no string object exists, a new string is created. * 8. The entire contents of the buffer are converted to a string of two-character hexadecimal numbers, each separated by a space. * 9. A fatal error is generated if greater than two hundred ASCII characters are created. Buffer Field -> [See Rule] * 10. If the Buffer Field is smaller than or equal to the size of an Integer (in bits), it will be treated as an Integer. * 11. Otherwise, it will be treated as a Buffer. (See the conversion rules for the Integer and Buffer data types.) Buffer Field -> Debug Object 12. Each byte is displayed as hexadecimal integer, delimited by spaces and/or commas DDB Handle -> * 13. [See Rule] The object is treated as an Integer (See conversion rules for the Integer data type.) Field Unit -> * 14. [See Rule] If the Field Unit is smaller than or equal to the size of an Integer (in bits), it will be treated as an Integer. * 15. If the Field Unit is larger than the size of an Integer, it will be treated as a Buffer. The size of an Integer is indicated by the Definition Block table header’s Revision field. A Revision field value less than 2 indicates that the size of an Integer is 32-bits. A value greater than or equal to 2 signifies that the size of an Integer is 64-bits. (See the conversion rules for the Integer and Buffer data types.) Field Unit -> Debug Object 16. Each byte is displayed as hexadecimal integer, delimited by spaces and/or commas Integer -> Buffer * 17. If no buffer object exists, a new buffer object is created based on the size of the integer (4 bytes for 32-bit integers and 8 bytes for 64-bit integers). If a buffer object already exists, the Integer overwrites the entire Buffer object. 18. If the integer requires more bits than the size of the Buffer, then the integer is truncated before being copied to the Buffer. 19. If the integer contains fewer bits than the size of the buffer, the Integer is zero-extended to fill the entire buffer Integer -> Buffer Field The Integer overwrites the entire Buffer Field. 20. If the integer is smaller than the size of the buffer field, it is zero-extended. 21. If the integer is larger than the size of the buffer field, the upper bits are truncated. Integer -> Debug Object 22. The integer is displayed as a hexadecimal value. Integer -> Field Unit The Integer overwrites the entire Field Unit. 23. If the integer is smaller than the size of the buffer field, it is zero-extended. 24. If the integer is larger than the size of the buffer field, the upper bits are truncated. Integer -> String * 25. Creates an ASCII hexadecimal string. Package -> Package 26. All existing contents (if any) of the target package are deleted, and the contents of the source package are copied into the target package. (In other words, overwrites the same as any other object.) Package -> Debug Object 27. Each element of the package is displayed based on its type. String -> Buffer * 28. If no buffer object exists, a new buffer object is created. If a buffer object already exists, it is completely overwritten. 29. If the string is longer than the buffer, the string is truncated before copying. 30. If the string is shorter than the buffer, the buffer size is reduced. In either case, the string is treated as a buffer, with each ASCII string character copied to one buffer byte. String -> Buffer Field The string is treated as a buffer. 31. If this buffer is smaller than the size of the buffer field, it is zero extended. 32. If the buffer is larger than the size of the buffer field, the upper bits are truncated. String -> Debug Object 33. Each string character is displayed as an ASCII character String -> Field Unit Each character of the string is written, starting with the first, to the Field Unit. 34. If the Field Unit is less than eight bits, then the upper bits of each character are lost. 35. If the Field Unit is greater than eight bits, then the additional bits are zeroed. String -> Integer * 36. If no integer object exists, a new integer is created. The ASCII string is interpreted as a hexadecimal constant. Each string character is interpreted as a hexadecimal value, starting with the first hexadecimal ASCII character (‘0’-‘9’, ‘A’-‘F’, ‘a’, ‘f’) as the most significant digit, and ends with the first non-hexadecimal character or end-of-string as the least significant digit. (*) - rules affecting operands (6, 7, 8, 9, 10, 11, 13, 14, 15, 17, 25, 28, 36) (+) - rules affecting results () acpica-unix-20250404/tests/aslts/doc/plan/0000700000175000017500000000000014773714147017517 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/doc/plan/RemainingWork.htm0000700000175000017500000023376314773714147023026 0ustar ivanhuivanhu From: Podrezov, Valery A
Sent: Friday, April 22, 2005 6:17 PM
To: Brown, Len
Cc: Moore, Robert; Khartikov, Denis M; Suietov, Fiodor F
Subject: Remaining work

Attachments: operators_have_no_separate_tests

 

   Remained work,

   the time and priority of work estimation.

 

   We are open for discussion.

 

Thanks

 

 

PRIORITIES OF TESTS

 

   0  highest, important for correct and effective work

   1  verified functionality is not of high importance

   2  mostly verified by other tests

   3  verifying of not "standard" features

   4  (bit fields of operation region) looks very important,

      but hardware dependent and insufficiently specified for

      to be verified; it is not clear from the specification

      which actions and the relevant reactions we can operate

      to verify this functionality; thus, it looks that only

      low range of functionality can actually be there verified;

      we can spend much time on trying to find out the grains

      of hardware independent features capable for testing

      but obtain the low effect in result.

 

      To continue our efforts in this direction

      we have to obtain clear information of the

      features (expected actions & reactions) and

      the information which of them are actually

      supported by AcpiExec.

 

  NO  omit testing at all, impossible to verify

      in our test suite

 

SUMMARY TIME ESTIMATION (in weeks for one person)

 

      TIME(priority): <time/person>

 

   1. TIME(2):  1 week/person

   2. TIME(1):  1 hour/person

   3. TIME(1):  1 day/person

   4. TIME(3):  1 week/person

   5. TIME(0):  1 week/person

   6. TIME(0):  3 days/person

   7. TIME(4):  find difficulty in time estimation

   8. TIME(NO): 0

   9. TIME(0):  4 weeks/person (at least)

  10. TIME(0):  4 weeks/person

  11. TIME(0):  2 weeks/person

  12. TIME(0):  3 weeks/person

  13. TIME(0):  1 week/person

  14. TIME(2):  1 week/person

  15. TIME(3):  1 week/person

  16. TIME(3):  1 week/person

  17. TIME(3):  1 week/person

  18. TIME(3):  2 days/person

 

      Summary Time by priorities (in weeks for one person):

 

         Priority 0: 16 weeks/person

         Priority 1:  1 week/person

         Priority 2:  2 weeks/person

         Priority 3:  5 weeks/person

         Priority 4:    XXX

 

 

Time of test design/implementing depends on:

 

 1) the considerable part of time is usually spent on

    clarification of the actually expected behaviour of

    the subject of testing.

 

 2) fixing of current bugs is an actually essential point

    in designing and implementing the tests. It allows more

    deep and more quick implementation of the tests. Basing

    on the current set of correct functionality we feel the

    product by our tests more and more deeply. The current

    bugs forces us to comment parts of tests, stop implementing

    the new parts of tests based on the features which work

    improperly.

 

 

DETAILS

 

 

      * ====================================================== *

      *    A. Functional tests for particular ASL operators    *

      * ====================================================== *

 

   1. TIME(2): 1 week/person

 

      Do simplest separate test for each of these operators

      which will be locations for further possible additions

 

      (see e-mail RE:Planning ACPICA validation 19.11.2004,

       304_simple_tests attachment for more details)

 

      a) intensively applied in other tests and thus

         might be considered being already verified

 

ArgX

LocalX

Name

Integer

String

Buffer

Store

CopyObject

 

      b) will be verified comprehensively

         in the new Name Space Complex test

 

Scope

Device

Processor

ThermalZone

PowerResource

 

   2. TIME(1): 1 hour/person

 

      Do simplest test, check only that execution

      of this operator doesn't produce exception.

 

      It is of low importance but doesn't require much time.

 

      (see operators_have_no_separate_tests for more information)

 

NoOp

 

   3. TIME(1): 1 day/person

 

      Do the simple test, but not comprehensive

 

      (see operators_have_no_separate_tests for more information)

 

Alias

 

   4. TIME(3): 1 week/person

 

      The test of "implicit return".

 

      Implement the slack-mode test suite run,

      and the test of "implicit return".

      Add the relevant comment in README.

 

Return

 

   5. TIME(0): 1 week/person

 

      The functional test Return.

 

      1. All different type declaration of Return.

      2. Return different type objects.

      3. Return references to different type objects.

      4. Return Index references to elements of String,

         Buffer and Package.

      5. Return from different critical points of

         the Method execution control operations:

         If,ElseIf,Else,While,Switch,Case,Default.

 

Return

 

   6. TIME(0): 3 days/person

 

      Verify all assertions given in 17.5.49,

      17.5.75 and 5.5.2 of ACPI specification.

 

Method

Function

 

   7. TIME(4): find difficulty in time estimation

 

      Bit fields complex test.

 

      Very important, but looks hardware dependent

      and insufficiently specified for to be verified.

 

      Depends on particularities emulated by AcpiExec.

      Looks that the tests will mostly verify emulation

      (if any) of hardware which task is not important

      as such, and it (emulation) may even be not provided

      at all.

 

      The ACPI specification is not sufficient to

      understand which actions we can perform and

      which reactions we should expect for those

      actions.

 

      It is not clear, which of these actions and reactions

      are hardware dependent and, thus, could not be verified

      in our test suite and which actions and reactions are

      emulated and thus can be verified in our test suite.

 

Field

BankField

IndexField

OperationRegion

Offset

AccessAs

 

   8. TIME(NO): 0

 

      Omit testing at all, impossible to verify

      in our test suite.

 

      (see operators_have_no_separate_tests for more information)

 

Debug

Include

Fatal

Notify

Load

Unload

External

LoadTable

BreakPoint

DefinitionBlock

DataTableRegion

 

 

      * ====================== *

      *    B. Complex tests    *

      * ====================== *

 

   9. TIME(0): 4 weeks/person (at least)

 

      The name space complex test.

 

      Important.

 

      Check the proper read and write access to the

      objects in the namespace hierarchy generated by

      the operators which open the new name scopes:

 

         Scope

         Device

         Processor

         ThermalZone

         PowerResource

 

         Method

         Function

         DefinitionBlock

 

      These will be a group of sub-tests which will be

      generating the different hierarchies of different

      type objects (opening the new name scopes) and do

      read and write operations in the critical points

      passing them with the operands by all the possible

      ways (mean absolute name, parent relative name,

      current scope relative name, simple (search rules

      apply) name, by reference, by alias, etc..) and

      verify the obtained values.

 

      From different nodes of the tree do access

      (write/read) to different objects of other

      nodes of the tree.

 

      (see e-mail RE:Planning ACPICA validation 19.11.2004,

       312_path_name attachment for more details)

 

  10. TIME(0): 4 weeks/person

 

      The declaration complex test.

 

      Important and don't clear from ACPI specs.

 

      The ACPICA allows an arbitrary place of different

      declarations. Nevertheless, this causes some warnings,

      crashes and other issues. This should be clarified and

      verified.

 

      (see e-mail RE:Planning ACPICA validation 19.11.2004,

       311_test_names_accessibility attachment

       for more details)

 

       Addition feature: check that names declared by

       Method are dead after the Method completion.

 

  11. TIME(0): 2 weeks/person

 

      Dynamic object deletion complex test.

 

      Important for interpreter effective work.

 

      To implement the "ACPICA extension",

      a set of common ASL Methods to verify

      the obtained memory consumption statistics

      and the base set of the relevant ASL tests.

 

 

THE TESTS IN PROGRESS

 

  12. TIME(0): 3 weeks/person

 

      Complex test of references.

 

      Verify all the aspects of access by

      Object and Index references.

 

      Remained to do:

 

   a) Specify about 10 new sub-tests which now are

      designated only. The total amount of sub-tests

      will be then about 90.

 

   b) Report the current bugs which are revealed

      by the current state of test.

 

   c) Wait for discussing and fixing current bugs.

      After that implement the remained sub-tests.

      Before that do something of scheduled.

 

      Implemented for now are 60 sub-tests.

 

   d) The reference beheviour is estimated on

      ACPI compliance, legacy and sufficiency,

      convenience and predictability.

 

   e) Report remarks about the free and wide use of

      "reference" word in ACPI specification which

      produces the real mistakes and contradictions

      of ACPI specification.

 

  13. TIME(0): 1 week/person

 

      Functional test of Match operator.

      Functional test of Switch/Case/Default operators.

 

      Update of these tests started after change of the

      Match operator (bug 88) has not yet been completed.

 

 

THE TESTS REQUIRE UPDATE

 

  The tests which don’t conform to the new

  changed ACPI specification.

 

  14. TIME(2): 1 week/person

 

      Some tests were broken after the change of

      functionality of Store operator (started with

      e-mail "Behavior of Store() ASL operator").

 

      Tests:

 

         aslts/src/runtime/collections/complex/result/tests/rconversion

         aslts/src/runtime/collections/complex/operand/tests/oconversion

 

 

REVIEW ACPICA AGAINST ASLTS

 

  15. TIME(3): 1 week/person

 

      Review the state of ACPICA against the

      tests suite and prepare summary of bugs.

 

 

PREPARE THE SECOND RELEASE OF TEST SUITE

 

      (see e-mail RE:Planning ACPICA validation 19.11.2004,

       200_prepare_version and 201_cosmetic_update

       attachments)

 

  16. TIME(3): 1 week/person

 

      Clean up code, remove the working comments.

      Prepare files commented "in progress".

      Comment the particular tests.

      Do READMEs and HOW_TO_* files up to date and prepare some new.

 

  17. TIME(3): 1 week/person

 

      Prepare the test suite description.

 

 

NEW ADDITIONAL TESTS AND IMPROVEMENTS

 

  18. TIME(3): 2 days/person

 

      Describe all the thoughts of possible

      improvement and new additional tests

      and put it with the test suite.

 

-end

 

 

 

acpica-unix-20250404/tests/aslts/doc/plan/addition0000700000175000017500000000237714773714147021251 0ustar ivanhuivanhuFree layout to record remarks about additional tests to be done ever (some remarks can be obsolete). ==================================================== 1. See file aslts/NOTE for the issues to be verified. 2. At present, no tests which automatically verify the constant folding. The tests can be implemented basing on: - analyzing the output of AML disassembler - our "Test Command Interface with the ACPI implementation (_TCI)" instrumentation 3. It seems that we have no simple tests for Store/Copy without expected conversions: String -->> String Buffer -->> Buffer Package -->> Package ... 4. http://bugzilla.kernel.org/show_bug.cgi?id=5490 check exception AE_AML_METHOD_LIMIT checking of AE_AML_METHOD_LIMIT limits (32 and 256) should be performed in a separate tests. 5. Do the tests which will show that inappropriate bit-sizes are applied. For example, exoparg2.c: Operand[0]->Buffer.Length - 32-bit while "ACPI_SIZE Length" - 16/32/64. Bug 124 was about something like that. 6. Multi-threading (now (07.07.2006) started, in progress) to check different functionality of ACPICA in the multi-threading conditions. 7. Continue mt-tests. 8. Compare the raw performance of the two interpreters (MS and ACPICA).acpica-unix-20250404/tests/aslts/doc/plan/OperatorsHaveNoSeparateTests0000700000175000017500000000674114773714147025244 0ustar ivanhuivanhuFriday, April 22, 2005 6:17 PM (some stuff can be obsolete) ============================== Below are enumerated all the ASL operators (32) which for now have no separate tests. 1. Intensively applied in other tests and thus might be considered being already verified. Do simple separate test for each of these operators which will be the places where, in the future, the additional sub-tests for these operators, if any, could be located. ArgX LocalX Name Buffer String Store CopyObject 2. Indirectly verified Include 3. There is no usual way to verify them. The tests might be either omitted or could be done basing on the extension of the "memory consumption instrumentation" supplying the ASL tests with the required internal information. Fatal Notify 4. Can't be verified in our test suite Load Unload External LoadTable BreakPoint DefinitionBlock (each test is represented as this kind block) DataTableRegion 5. It is not worthy of to be definitely verified. Do simplest test, check only that execution of this operator doesn't produce exception. 17.5.83 NoOp Description: This operation has no effect. To verify the sentence like the above definitely is too complicated thing - if you have proved it for N conditions it nevertheless can fail in (N+1)-th condition. The relevant test should involve all the possible functionality of the interpreter inserting everywhere this NoOp and verifying everything each time. Apparently, it is not worth the trouble. It is a simple operator and it can be and should be implemented with the care once. NoOp 6. Can in principle be ever in the future verified (applying auxiliary script) (see e-mail RE:Planning ACPICA validation 19.11.2004, 303_test_for_debug attachment for more details) Debug 7. Do the simple test, but not comprehensive The comprehensive verification of this operator could be conceived based on the following principle - do replacement of all (or most of them, or at least globally declared of them) the objects applied in the test suite by the Aliases to them. This could be done basing on the conditional #if ASL compilation which is not provided now by iASL, and require the separate compilation and run of the test suite. Such the comprehensive test would actually show that "AliasObject acts exactly the same as SourceObject" (as far as the test suite actually provides coverage). But we have at least one reason for the simple test, but not comprehensive - there is no #if ASL ability, and the second issue is either the verification of this operator is worthy of the considerable and full of work restructurization of the test suite. We propose to do the simple test which use only ObjectType (and SizeOf) for verification of each type of SourceObject. One more checking will be the overwritings with the different type object: CopyObject(XXX, AliasObject) --> check SourceObject CopyObject(XXX, SourceObject) --> check AliasObject This operator doesn't add functionality, it is only for convenience (but since provided it should be verified). Alias 8. Require the new tests designing and implementing Return Method Function Field BankField IndexField OperationRegion Scope Device Processor ThermalZone PowerResource acpica-unix-20250404/tests/aslts/doc/StoreCopyTestPrototype/0000700000175000017500000000000014773714147023302 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/doc/StoreCopyTestPrototype/gr4.asl0000700000175000017500000002062214773714147024504 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "gr4.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Method(mm04) { Store("Store to NamedX without any conversion", Debug) Store("mm04 started", Debug) Name(i000, 0x12345678) Name(i001, 0x12345678) Name(i002, 0x12345678) Name(i003, 0x12345678) Name(i004, 0x12345678) Name(i005, 0x12345678) Name(i006, 0x12345678) Name(i007, 0x12345678) Name(i008, 0x12345678) Name(i009, 0x12345678) Name(i00a, 0x12345678) Name(i00b, 0x12345678) Name(s000, "12345678") Name(s001, "12345678") Name(s002, "12345678") Name(s003, "12345678") Name(s004, "12345678") Name(s005, "12345678") Name(s006, "12345678") Name(s007, "12345678") Name(s008, "12345678") Name(s009, "12345678") Name(s00a, "12345678") Name(s00b, "12345678") Name(b000, Buffer() {1,2,3,4,5}) Name(b001, Buffer() {1,2,3,4,5}) Name(b002, Buffer() {1,2,3,4,5}) Name(b003, Buffer() {1,2,3,4,5}) Name(b004, Buffer() {1,2,3,4,5}) Name(b005, Buffer() {1,2,3,4,5}) Name(b006, Buffer() {1,2,3,4,5}) Name(b007, Buffer() {1,2,3,4,5}) Name(b008, Buffer() {1,2,3,4,5}) Name(b009, Buffer() {1,2,3,4,5}) Name(b00a, Buffer() {1,2,3,4,5}) Name(b00b, Buffer() {1,2,3,4,5}) Name(p000, Package() {0}) Name(p001, Package() {0}) Name(p002, Package() {0}) Name(p003, Package() {0}) Name(p004, Package() {0}) Name(p005, Package() {0}) Name(p006, Package() {0}) Name(p007, Package() {0}) Name(p008, Package() {0}) Name(p009, Package() {0}) Name(p00a, Package() {0}) Name(p00b, Package() {0}) Device(d000) { Name(i900, 0xabcd0017) } Device(d001) { Name(i900, 0xabcd0017) } Device(d002) { Name(i900, 0xabcd0017) } Device(d003) { Name(i900, 0xabcd0017) } Device(d004) { Name(i900, 0xabcd0017) } Device(d005) { Name(i900, 0xabcd0017) } Device(d006) { Name(i900, 0xabcd0017) } Device(d007) { Name(i900, 0xabcd0017) } Device(d008) { Name(i900, 0xabcd0017) } Device(d009) { Name(i900, 0xabcd0017) } Device(d00a) { Name(i900, 0xabcd0017) } Device(d00b) { Name(i900, 0xabcd0017) } Event(e000) Event(e001) Event(e002) Event(e003) Event(e004) Event(e005) Event(e006) Event(e007) Event(e008) Event(e009) Event(e00a) Event(e00b) Method(m000) { return (0) } Method(m001) { return (0) } Method(m002) { return (0) } Method(m003) { return (0) } Method(m004) { return (0) } Method(m005) { return (0) } Method(m006) { return (0) } Method(m007) { return (0) } Method(m008) { return (0) } Method(m009) { return (0) } Method(m00a) { return (0) } Method(m00b) { return (0) } Mutex(mx00, 0) Mutex(mx01, 0) Mutex(mx02, 0) Mutex(mx03, 0) Mutex(mx04, 0) Mutex(mx05, 0) Mutex(mx06, 0) Mutex(mx07, 0) Mutex(mx08, 0) Mutex(mx09, 0) Mutex(mx0a, 0) Mutex(mx0b, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) OperationRegion(r001, SystemMemory, 0x100, 0x100) OperationRegion(r002, SystemMemory, 0x100, 0x100) OperationRegion(r003, SystemMemory, 0x100, 0x100) OperationRegion(r004, SystemMemory, 0x100, 0x100) OperationRegion(r005, SystemMemory, 0x100, 0x100) OperationRegion(r006, SystemMemory, 0x100, 0x100) OperationRegion(r007, SystemMemory, 0x100, 0x100) OperationRegion(r008, SystemMemory, 0x100, 0x100) OperationRegion(r009, SystemMemory, 0x100, 0x100) OperationRegion(r00a, SystemMemory, 0x100, 0x100) OperationRegion(r00b, SystemMemory, 0x100, 0x100) PowerResource(pw00, 1, 0) {} PowerResource(pw01, 1, 0) {} PowerResource(pw02, 1, 0) {} PowerResource(pw03, 1, 0) {} PowerResource(pw04, 1, 0) {} PowerResource(pw05, 1, 0) {} PowerResource(pw06, 1, 0) {} PowerResource(pw07, 1, 0) {} PowerResource(pw08, 1, 0) {} PowerResource(pw09, 1, 0) {} PowerResource(pw0a, 1, 0) {} PowerResource(pw0b, 1, 0) {} Processor(pr00, 0, 0xFFFFFFFF, 0) {} Processor(pr01, 0, 0xFFFFFFFF, 0) {} Processor(pr02, 0, 0xFFFFFFFF, 0) {} Processor(pr03, 0, 0xFFFFFFFF, 0) {} Processor(pr04, 0, 0xFFFFFFFF, 0) {} Processor(pr05, 0, 0xFFFFFFFF, 0) {} Processor(pr06, 0, 0xFFFFFFFF, 0) {} Processor(pr07, 0, 0xFFFFFFFF, 0) {} Processor(pr08, 0, 0xFFFFFFFF, 0) {} Processor(pr09, 0, 0xFFFFFFFF, 0) {} Processor(pr0a, 0, 0xFFFFFFFF, 0) {} Processor(pr0b, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} ThermalZone(tz01) {} ThermalZone(tz02) {} ThermalZone(tz03) {} ThermalZone(tz04) {} ThermalZone(tz05) {} ThermalZone(tz06) {} ThermalZone(tz07) {} ThermalZone(tz08) {} ThermalZone(tz09) {} ThermalZone(tz0a) {} ThermalZone(tz0b) {} // i000 Store(i000, p000) Store(i000, d000) Store(i000, e000) Store(i000, m000) Store(i000, mx00) Store(i000, r000) Store(i000, pw00) Store(i000, pr00) Store(i000, tz00) // s000 Store(s000, p001) Store(s000, d001) Store(s000, e001) Store(s000, m001) Store(s000, mx01) Store(s000, r001) Store(s000, pw01) Store(s000, pr01) Store(s000, tz01) // b000 Store(b000, p002) Store(b000, d002) Store(b000, e002) Store(b000, m002) Store(b000, mx02) Store(b000, r002) Store(b000, pw02) Store(b000, pr02) Store(b000, tz02) // p000 Store(p000, p003) Store(p000, d003) Store(p000, e003) Store(p000, m003) Store(p000, mx03) Store(p000, r003) Store(p000, pw03) Store(p000, pr03) Store(p000, tz03) // d000 Store(d000, p004) Store(d000, d004) Store(d000, e004) Store(d000, m004) Store(d000, mx04) Store(d000, r004) Store(d000, pw04) Store(d000, pr04) Store(d000, tz04) // e000 Store(e000, p005) Store(e000, d005) Store(e000, e005) Store(e000, m005) Store(e000, mx05) Store(e000, r005) Store(e000, pw05) Store(e000, pr05) Store(e000, tz05) // m000 Store(m000, p006) Store(m000, d006) Store(m000, e006) Store(m000, m006) Store(m000, mx06) Store(m000, r006) Store(m000, pw06) Store(m000, pr06) Store(m000, tz06) // mx00 Store(mx00, p007) Store(mx00, d007) Store(mx00, e007) Store(mx00, m007) Store(mx00, mx07) Store(mx00, r007) Store(mx00, pw07) Store(mx00, pr07) Store(mx00, tz07) // r000 Store(r000, p008) Store(r000, d008) Store(r000, e008) Store(r000, m008) Store(r000, mx08) Store(r000, r008) Store(r000, pw08) Store(r000, pr08) Store(r000, tz08) // pw00 Store(pw00, p009) Store(pw00, d009) Store(pw00, e009) Store(pw00, m009) Store(pw00, mx09) Store(pw00, r009) Store(pw00, pw09) Store(pw00, pr09) Store(pw00, tz09) // pr00 Store(pr00, p00a) Store(pr00, d00a) Store(pr00, e00a) Store(pr00, m00a) Store(pr00, mx0a) Store(pr00, r00a) Store(pr00, pw0a) Store(pr00, pr0a) Store(pr00, tz0a) // tz00 Store(tz00, p00b) Store(tz00, d00b) Store(tz00, e00b) Store(tz00, m00b) Store(tz00, mx0b) Store(tz00, r00b) Store(tz00, pw0b) Store(tz00, pr0b) Store(tz00, tz0b) Store("mm04 finished", Debug) } Method(MAIN) { mm04() } } acpica-unix-20250404/tests/aslts/doc/StoreCopyTestPrototype/gr2.asl0000700000175000017500000000570314773714147024505 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "gr2.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Method(mm02, 1) { Store("Store any type object to ArgX, effectively local", Debug) Store("mm02 started", Debug) Name(i000, 0x12345678) Name(s000, "12345678") Name(b000, Buffer() {1,2,3,4,5}) Name(p000, Package() {0}) Device(d000) { Name(i900, 0xabcd0017) } Event(e000) Method(m000) { return (0) } Mutex(mx00, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) PowerResource(pw00, 1, 0) {} Processor(pr00, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} Store(i000, Arg0) Store(s000, Arg0) Store(b000, Arg0) Store(p000, Arg0) Store(d000, Arg0) Store(e000, Arg0) Store(m000, Arg0) Store(mx00, Arg0) Store(r000, Arg0) Store(pw00, Arg0) Store(pr00, Arg0) Store(tz00, Arg0) Store(i000, Arg0) Store(s000, Arg0) Store(b000, Arg0) Store(p000, Arg0) Store(i000, Arg0) Store(d000, Arg0) Store(i000, Arg0) Store(e000, Arg0) Store(i000, Arg0) Store(m000, Arg0) Store(i000, Arg0) Store(mx00, Arg0) Store(i000, Arg0) Store(r000, Arg0) Store(i000, Arg0) Store(pw00, Arg0) Store(i000, Arg0) Store(pr00, Arg0) Store(i000, Arg0) Store(tz00, Arg0) Store(i000, Arg0) Store("mm02 finished", Debug) } Method(MAIN) { Name(ii00, 0x12345678) mm02(ii00) } } acpica-unix-20250404/tests/aslts/doc/StoreCopyTestPrototype/gr1.asl0000700000175000017500000000572314773714147024506 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "gr1.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Method(mm01) { Store("Store any type object to LocalX", Debug) Store("mm01 started", Debug) Name(i000, 0x12345678) Name(s000, "12345678") Name(b000, Buffer() {1,2,3,4,5}) Name(p000, Package() {0}) Device(d000) { Name(i900, 0xabcd0017) } Event(e000) Method(m000) { return (0) } Mutex(mx00, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) PowerResource(pw00, 1, 0) {} Processor(pr00, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} Store(i000, Local0) Store(s000, Local0) Store(b000, Local0) Store(p000, Local0) Store(d000, Local0) Store(e000, Local0) Store(m000, Local0) Store(mx00, Local0) Store(r000, Local0) Store(pw00, Local0) Store(pr00, Local0) Store(tz00, Local0) Store(i000, Local0) Store(s000, Local0) Store(b000, Local0) Store(p000, Local0) Store(i000, Local0) Store(d000, Local0) Store(i000, Local0) Store(e000, Local0) Store(i000, Local0) Store(m000, Local0) Store(i000, Local0) Store(mx00, Local0) Store(i000, Local0) Store(r000, Local0) Store(i000, Local0) Store(pw00, Local0) Store(i000, Local0) Store(pr00, Local0) Store(i000, Local0) Store(tz00, Local0) Store(i000, Local0) Store("mm01 finished", Debug) } Method(MAIN) { mm01() } } acpica-unix-20250404/tests/aslts/doc/StoreCopyTestPrototype/gr5.asl0000700000175000017500000000551014773714147024504 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "gr5.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Method(mm05, 1) { Store("Store to NamedX with the improper conversion", Debug) Store("mm05 started", Debug) Name(i000, 0x12345678) Name(s000, "12345678") Name(b000, Buffer() {1,2,3,4,5}) Name(p000, Package() {0}) Device(d000) { Name(i900, 0xabcd0017) } Event(e000) Method(m000) { return (0) } Mutex(mx00, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) PowerResource(pw00, 1, 0) {} Processor(pr00, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} if (LEqual(Arg0, 0)) { Store(p000, i000) } elseif (LEqual(Arg0, 1)) { Store(p000, s000) } elseif (LEqual(Arg0, 2)) { Store(p000, b000) } elseif (LEqual(Arg0, 3)) { Store(d000, i000) } elseif (LEqual(Arg0, 4)) { Store(e000, i000) } elseif (LEqual(Arg0, 5)) { Store(m000, i000) } elseif (LEqual(Arg0, 6)) { Store(mx00, i000) } elseif (LEqual(Arg0, 7)) { Store(r000, i000) } elseif (LEqual(Arg0, 8)) { Store(pw00, i000) } elseif (LEqual(Arg0, 9)) { Store(pr00, i000) } elseif (LEqual(Arg0, 10)) { Store(tz00, i000) } Store("mm05 finished", Debug) } Method(MAIN) { mm05(0) } } acpica-unix-20250404/tests/aslts/doc/StoreCopyTestPrototype/gr3.asl0000700000175000017500000000464014773714147024505 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "gr3.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Name(i000, 0x12345678) Name(s000, "12345678") Name(b000, Buffer() {1,2,3,4,5}) Name(i001, 0x12345678) Name(s001, "12345678") Name(b001, Buffer() {1,2,3,4,5}) Name(i002, 0x12345678) Name(s002, "12345678") Name(b002, Buffer() {1,2,3,4,5}) Name(i003, 0x12345678) Name(s003, "12345678") Name(b003, Buffer() {1,2,3,4,5}) Method(mm03) { Store("Store to NamedX with the proper conversion", Debug) Store("mm03 started", Debug) Store(i000, i001) Store(i000, s001) Store(i000, b001) Store(s000, i002) Store(s000, s002) Store(s000, b002) Store(b000, i003) Store(b000, s003) Store(b000, b003) Store("mm03 finished", Debug) } Method(MAIN) { mm03() } } acpica-unix-20250404/tests/aslts/README0000700000175000017500000000744114773714147016711 0ustar ivanhuivanhu CONTENTS ACPICA ASL grammar validation Test Suite (ASLTS) ASLTS verifies, in "hardware-independent" mode, conformity of ACPICA ASL compiler and interpreter to the ACPI ASL grammar specification. The more common task of ASLTS is to check, in "hardware-independent" mode also, all the functionality of ACPICA which can be initiated and then verified from inside the test modules coded in ASL. The first local task is performed by the test collection named 'functional', to achieve the second one the tests of other collections are intended: complex, exceptions, etc. The conditional difference between the tests of 'functional' and 'complex' collections is that the tests of 'functional' collection checks specific functionality of the particular ASL operator while the tests of 'complex' collection verify the more common functionality. The testing is performed in "hardware-independent" mode without any access to ACPI subsystem hardware. In this purpose the AcpiExec utility is used which includes the entire ACPICA subsystem and allows to execute the AML code and thus verify functionality of ACPICA subsystem. The ASL source code is compiled to AML code and then passed to AcpiExec utility. In this relation one more type tests are provided, so called ASL-compilation control test collection, which check ability of ASL compiler to reveal and report incorrect ASL code. The tests of the exceptional conditions test collection initiate and verify exceptional conditions, check that the exceptions occur (or not occur) in the expected specified way. The testing is provided in both 32-bit and 64-bit modes (option -r of ASL compiler) as well both normal and slack modes (option -s of AcpiExec). tmp directory is automatically created (if doesn't exist) while installing or running the tests performed by the utility Do tmp/aml directory is automatically created (if doesn't exist) while installing the tests performed by the utility Do and contains 32-bit and 64-bit AML codes of the tests tmp/RESULTS directory is automatically created during the test execution (if doesn't exist) initiated by the Do utility and contains results (so called multi-results) of runs of tests - utility Do performs each run of tests is several modes: 32-bit norm mode 64-bit norm mode 32-bit slack mode 32-bit slack mode so the result of run of tests is called multi-result. It is located into RESULTS/ directory. bin utilities to manager the tests src source code of tests TESTS per-collection list of run-time tests HOW_TO_INSTALL actions needed to prepare the tests for running HOW_TO_USE how to run the tests and explain the result of run Makefile.def the common use targets and rules Makefile.switch the uniform targets and rules to pass commands of make utility to the specified enclosed directories Makefile current directory targets and rules THE UNIFORM STRUCTURE OF ASLTS SOURCE CODE The ASLTS source code contains files of the same name which are of the same functionality described below. DECL.asl contains all the declarations corresponding to some test RUN.asl contains all the invocations corresponding to some test MAIN.asl contains declaration of DefinitionBlock corresponding to some test; the DefinitionBlock contains method MAIN which is a starting method of the test; as a rule, this file contains the relevant DECL.asl and RUN.asl includes README the brief description of the contents of the inclusive directory (hierarchy of README files explaining the contents of directories) FULL contains declaration of DefinitionBlock corresponding to some test which is conglomeration of several other tests NOTE any notes to not forget something to do etc. - end acpica-unix-20250404/tests/aslts/adm/0000700000175000017500000000000014773714143016555 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/adm/BugState/0000700000175000017500000000000014773714146020276 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/adm/BugState/ALLBUGS_DUP0000700000175000017500000007720314773714146022036 0ustar ivanhuivanhuALLBUGS| Dont remove this line, it is used in the automatic processing of the table! | | This is a STATE-MANUALLY table. | |IID COMP LBZID KBZID STATE-MANUALLY PR SUMMARY |=================================================| 0| I | | | | | Logical operators return True equal to One but not Ones 1| C | 419 | | | 100 | The ASL Compiler doesn't allow non-constant TimeoutValue for Acquire 2| I | | | | | The elseif operator works incorrectly 3| C | 420 | | | 100 | The ASL Compiler should reject Switch operators with the identical Case operators in it 4| I | | | | | Concatenate being invoked in Method M000 changes the type of LocalX of calling Method passed as operand to M000 5| I | | | | | Switch operator doesn't provide Default branch 6| I | | | | | ToInteger converts a decimal string the same way as a hexadecimal one 7| I | | | | | ToString updates the LocalX value (if it is zero) passed as Length parameter 8| I | | | | | The type returned by ObjectType for Object created by Field operator is not Field 9| I | | | | | Exception on ObjectType passed with not initialized values (in LocalX) 10| I | | | | | ToBuffer transforms operand (in local variable) to reference 11| C | | | FIXED | | The ASL Compiler crashes on Create*Field for invalid FieldName parameter 12| I | | 5360 | INTEGRATED | | DerefOf doesn't evaluate String to Object 13| I | | | | | The type returned by ObjectType for Object created by Create*Field operator is not BufferField 14| I,S | 421 | | | 100 | Implementation differs the specified Maximal value of MicroSeconds 15| I | | | | | ToDecimalString produces the Strings which have the length greater than expected 16| I | | | REJECTED | | Concatenate operator produces the resulting String exceeding 200 symbols without generating exception 17| I | | | | | LEqual works incorrectly for Buffer-operands containing zero 18| I | | | | | LGreater works incorrectly for Buffer-operands containing zero 19| I | | | | | LGreaterEqual works incorrectly for Buffer-operands containing zero 20| I | | | | | LLess works incorrectly for Buffer-operands containing zero 21| I | | | | | LLessEqual works incorrectly for Buffer-operands containing zero 22| I | | | | | LNotEqual works incorrectly for Buffer-operands containing zero 23| I | 435 | | | 100 | FromBCD/ToBCD works incorrectly in 64-bit mode starting with the large enough values 24| C | | | FIXED | | The EISAID doesn't provides input control of "uppercase letter" part (UUU) of EisaIdString 25| S | | | REJECTED | | The maximal length exceeding exception should be additionally specified for some operators 26| C | | | REJECTED | | The ASL Compiler doesn't forbid images of Strings exceeding maximum 27| I | | | | | Crash of ObjectType for the particular BufferFields 28| I | | | | | No exception on Create*Field for out of Buffer range 29| M | | | | 100 | Looks, like Sleep (or Wait) spend less time than specified 30| I | | | | | Crash of ObjectType for the particular Fields 31| C | 422 | | | 100 | The ASL Compiler doesn't try to detect and reject attempts to use object before its declaration is evaluated 32| C | | | FIXED | | The ASL Compiler should reject the same and out of range IRQ numbers (IRQ and IRQNoFlags macros) 33| C | | | FIXED | | The ASL-compiler doesn't refuse the same descriptor names present in the same scope (Method) 34| I | | | | | Some data tables are corrupted when _BAS field of FixedIO Resource Descriptor Macro is specified 35| C,S | | | FIXED | | The DMA Resource Descriptor Macro (specification, compilation error, to strengthen the ASL Compiler input control) 36| C | | | FIXED | | The ASL compiler should reject the VendorShort Resource Descriptor Macro with the out of range bytes number 37| S,C | 424 | | | | The Memory24 Resource Descriptor Macro specification should be updated 38| I | 418 | | | | LGreater passed with Integer and String works incorrectly in 32-bit mode 39| C | | | | | The ASL Compiler fails on specific expressions with ObjectType 40| I | | | | | Crash on sync-objects reusing 41| I | | | | | ToInteger transforms operand to reference when no conversion is required 42| I | | | | | ToDecimalString transforms operand to reference when no conversion is required 43| I | | | | | ToHexString transforms operand to reference when no conversion is required 44| I | | | | | The ToUUID Macro loses the high hex-digit of each byte 45| I | | | | | Exception on ToDecimalString for Buffer with 51 elements 46| I | | | | | Exception on ToHexString for Buffer with 67 elements 47| M | | | | 100 | Timer operator doesn’t provide gradually increased values 48| I | | | REJECTED | | No exception on result of Concatenate longer than 210 bytes 49| I | | | REJECTED | | No exception on result of ToDecimalString longer than 210 bytes 50| I | | | REJECTED | | No exception on result of ToHexString longer than 210 bytes 51| S,C,I | 371 | | | | Register() macro missing parameter 52| I | | | | | The EdgeLevel offset of Interrupt macro (_HE) is specified as 25-th bit but actually it is implemented as 24-th bit 53| C | | | FIXED | | The ASL Compiler doesn't reject the out of range number of interrupts for Interrupt macro 54| I | | | | | All ASL Operators causes exceptions on two immediately passed Buffers 55| C | | | FIXED | | The ASL Compiler should reject the same Interrupt numbers (Interrupt macros) 56| C | 423 | | | 100 | The ASL Compiler generates a one element descriptor for Interrupt macro with the empty InterruptList 57| I | | | | | The standalone Return is processed incorrectly 58| I | 417 | | INTEGRATED | | Concatenate of two Integers may operates in 32-bit mode as in 64-bit mode 59| I | | | | | String to Buffer conversion doesn't reduce the size of resulting Buffer 60| I | | | | | "Outstanding allocations" on processing the Type Conversion 61| I | | | | | Crash on Store the OperationRegion result returned by Method 62| C | 436 | | | 100 | Crash of the iASL Compiler when ASL-code contains a long String declaration 63| I | | 5329 | INTEGRATED | | String to Integer conversion contradicts new April 2005 Conversion Rules 64| I | | | | | Specific operations should initiate AE_BAD_HEX_CONSTANT exceptions 65| I | | | REJECTED | | BufferField type object should be passed to Methods without any conversion (to Buffer or Integer) 66| I | | | REJECTED | | FieldUnit type object should be passed to Methods without any conversion (to Buffer or Integer) 67| I | | | REJECTED | | BufferField type object should be returned by Methods without any conversion (to Buffer or Integer) 68| I | | | REJECTED | | FieldUnit type object should be returned by Methods without any conversion (to Buffer or Integer) 69| I | | | | | Exception on storing the result of Mid operation 70| C | 425 | | REJECTED | | The ASL Compiler should reject Resource Descriptors where ResourceSourceIndex is present but ResourceSource is omitted 71| C | | | FIXED | | The ASL Compiler should reject Resource Descriptors where ResourceSourceIndex is omitted but ResourceSource is present 72| C | | | FIXED | | The ASL Compiler program returns improper status after compiling invalid ASL code 73| C | | | FIXED | | The ASL Compiler fails and reports a large number of "Recursive method call" remarks 74| I | | | | | Ones is not equal to 0xFFFFFFFF in 32-bit mode 75| C | | | | | Each scope of DefinitionBlock should be supplied with its set of _T_x objects 76| I | | | | | Unexpected dereference of Index reference in Store operator 77| I | | | | | Exception on ToInteger operator under specific conditions 78| I | | | | | Specific expression Derefof(Refof(i000)) causes deletion of object (i000) 79| I | | | | | Specific expression with ToBuffer causes exception 80| C,S | 416 | | | 100 | The ASL compiler should report Error when the name of Method (but not invocation of it) is specified in expressions 81| C,I,S | 415 | | | 100 | Call to Method immediately passed to ObjectType is evaluated improperly 82| S | 414 | | | 100 | The Data Type Conversion Rules table should be updated 83| I | | 5387 | INTEGRATED | | No exception on DerefOf of an arbitrary Source 84| I | | 5361 | INTEGRATED | | Failed to interpret AML code alternated with Method declarations 85| I | | | | | Exception on DeRefOf operator applied to IRef to Uninitialized element of Package 86| I | | | | | ToString operator produces one "Outstanding allocation" 87| I | | | | | Exception on Switch operator applied to the result of ToBuffer operator 88| S | | | REJECTED | | Spec of Match operator should be changed (conversion/null package entries) 89| S | | | | 100 | Clarifying what does the ASL Method as an element of Package mean 90| S | 412 | | | 100 | Spec of Match operator should be changed (conversion/null package entries) 91| S | 411 | | | 100 | The result of String-to-Buffer conversion should include the string null terminator 92| I | | | | | Invalid result of Index operator passed with the immediate image of Package 93| I | | | | | Invalid result of Index operator passed with the immediate image of Buffer 94| I | | | | | Invalid result of Index operator passed with the immediate image of String 95| I | | | | | Big amount of invocations of Methods causes overlap of OwnerId counter 96| C | 410 | | | 100 | The ASL Compiler fails to recognize specific Uninitialized LocalX 97| I | | | | | Crash on ObjectType passed with IRef to Method which is an element of Package 98| I | | | | | Crash on a specific AML code 99| I | | | | | The specific sequence of operations dealing with IRef/ORef corrupts the source object 100| I | | | | | The specific combination of operators aborts execution 101| C | | | | | The ASL compiler fails to create RefOf reference to Method not returning explicitly any object 102| I | | | | | The specific combination of operators produces one "Outstanding allocation" 103| I | | | | | The Method type element of Package is being invoked 104| I | | | | | The ObjectType operator being passed with the IRef to the Uninitialized element of Package causes crash 105| I | | | | | The ObjectType operator being passed with the IRef obtained by the specific way causes crash 106| I | | 5388 | | 100 | Crash on RefOf(Debug) operation 107| C | | | | | The ASL Compiler crashes when tries to convert data that can not be converted 108| C | | | FIXED | | The ASL Compiler crashes when the result of ToBCD exceeds the current range of Integer 109| C | | | FIXED | | The ASL Compiler crashes on FromBCD being passed with the invalid data (hex image containing not only decimal digits) 110| I ML | | | FIXED | | The Memory Leak anomaly on a While operator (the first anomaly encountered by PMEMCV instrumentation) 111| I | | | | | No String to Integer and Buffer to Integer conversions of the Predicate Value in If, ElseIf and While operators 112| C | | | | | The ASL compiler refuses passing the Named Objects and String constants as a MicroSecs operand of the Stall operator 113| I | | 5389 | | 100 | Unexpected dereference of Index reference immediately passed to Method 114| C | 407 | | | 100 | Method object as a Source of Index operation is treated by iASL mistakenly as a call to that Method 115| I | | 5390 | | 100 | Unexpected dereference of Index reference returned by Method and immediately passed to another Method 116| C | | | FIXED | | The ASL Compiler doesn't recognize attempts to generate IRefs to arbitrary type objects 117| I | | | | | Modifying the copy of the String obtained by the Store operator modifies the initial String Object also 118| I | | 5328 | | 100 | Access to FieldObject element of Package causes exception 119| I | 413 | | INTEGRATED | | The Logical operators in 32-bit mode act with 64-bit values 120| I | | 5370 | INTEGRATED | | Unexpected exception on Store of Device and ThermalZone elements of Package to Debug operation 121| I | 406 | | | 100 | Crash on attempt to deal with the invalid BufferFields (zero NumBits passed to CreateField) 122| C | 405 | | FIXED INTEGRATED | | The ASL Compiler doesn't report Error/Warning for zero NumBits parameter of CreateField operator 123| I | 404 | | | | No exception when StartIndex in Match operator is equal to or greater than the size of SourcePackage 124| I | 403 | | | | No exception when the Index argument on Index() operator is out of the Source 125| I | | | | | The Mid operator in 64-bit mode returns non-empty result for improper Index 126| I | | 5372 | | 100 | The Read access automatic dereference for RefOf reference doesn't work 127| I | | 5391 | | 100 | Unexpectedly CopyObject of immediately passed Index reference is not reference 128| I | | 5392 | INTEGRATED | | Copying the RefOf reference to Named object spoils that reference 129| I,C,S | | | | | Creating Package of an arbitrary length, Package & VarPackage 130| I | | | | | Reference to String works differently to like the references to Buffer and Package work 131| I | | 5394 | | 100 | Store to the Index reference immediately returned by Method doesn't work 132| I | | 5373 | | 100 | The Read access automatic dereference for Index reference doesn't work 133| I | | 5374 | | 100 | The Write access automatic dereference for Index reference doesn't work 134| I | | 5375 | | 100 | Writing RefOf reference from inside Method breaks effectively local Arg 135| I | | 5358 | | | Store of Index reference to another element of the same Package causes hang 136| I | | | | | CopyObject of named Buffer to the longer named Buffer works incorrectly 137| I | | | | | The Implicit Result Object conversion is mistakenly applied to the optional storing of FromBCD 138| I | | | | | 8 bytes but not 4 expected ones are written to BufferField in 32-bit mode 139| I | | | | | DeRefof and Store operations on 64-bit Integers of 32-bit AML table has been loaded modify them 140| C | | | FIXED | | The ASL Compiler doesn't report NumElements being less than the number of elements in the PackageList 141| S | 402 | | | 100 | The term 'object reference' in DMA Resource Descriptor Macro specs sounds ambiguously 142| C | 401 | | | 100 | The ASL Compiler doesn't support non-empty list of parameters of Function Declaration 143| C | | | | | The ASL Compiler doesn't support more than two-element long list of ParameterTypes argument of Method 144| C | | | | | The ASL Compiler doesn't support multiple type list for particular ParameterType of Method 145| C | | | FIXED | | The ASL Compiler should report an error for SyncLevel argument of Method outside of range 146| C | | | | | The ASL compiler refuses Package in Case operator 147| S | 400 | | | | ProcessorObj Object Type Keyword is not present in ObjectTypeKeyword 148| C | 399 | | | 100 | Additional errors to be reported by iASL for Control Method Declaration 149| S | 398 | | | 100 | Spec of Function should be clarified 150| I | | 5334 | INTEGRATED | | No exception when Serialized Method is run after the higher level mutex acquiring 151| I | | | | | The zero-length resulting String of Mid operator passed to Concatenate operator causes crash 152| C | 394 | | | 100 | Decrease severity of iASL error for non-Computational types in the Computational data positions 153| I | | 5314 | | 1 | Source and Target objects after ACPI AML StoreOp behave identically 154| I | | | | | Exception occurs on attempt to rewrite Device type object passed by ArgX to Method 155| I | | | | | Global level AML code execution is performed twice 156| I ML | | 5422 | FIXED INTEGRATED | | Memory leak till the Method exit for each execution of If(TRUE)-Else/ElseIf 157| C | 397 | | | 100 | Exception while processing the empty ParameterTypes list of Method 158| I ML | | 5423 | FIXED INTEGRATED | | Memory leak till the Method exit for each execution of Break 159| I ML | | 5424 | FIXED INTEGRATED | | Memory leak till the Method exit for each execution of Continue 160| I | | | | | Attempt to declare Field inside the If scope causes exception 161| I | | 5359 | INTEGRATED | | Named object passed as a BitIndex or NumBits to CreateField causes hang 162| I | | 5326 | INTEGRATED | | Crash while processing the global level execution exception 163| I ML | | 5425 | | 100 | The copy of Device object to LocalX is not ever released 164| I | | | FIXED | | Subtest m22d of Reference test started causing exceptions since 20050526 165| I ML | | 5426 | FIXED | | Unnecessary memory allocation for CreateField should be eliminated 166| I ML | | 5427 | INTEGRATED | | Releasing memory of the inside Method scopes surrounding Return operation is needed 167| I | | | | | Manipulation test PASS but started reporting suspicious diagnostic 168| C,I | | | FIXED | | Wrong specific Package obtained for not optimized AML code 169| I | 395 | | INTEGRATED | | Improper work of ShiftLeft and ShiftRight operators on Linux in a specific case 170| I | | | REJECTED | | -- see if to rewrite it for Fields but not for BufferFields 171| I | 396 | | INTEGRATED | | Improper Integer to String implicit conversion in a specific case 172| I | | | FIXED | | Outstanding allocations to be investigated 173| I | | 5336 | FIXED INTEGRATED | | Two the same fragments of code should be compacted to one 174| I | | | | | Inappropriate constant in DescriptorType field of the Descriptor->Address64 structure 175| I | | 5369 | INTEGRATED | | Unexpected exception on Store of ThermalZone to Debug operation 176| I | | 5466 | | 100 | Store-to-Debug an element of Package having reference to itself results in an infinite loop 177| I | | 5480 | INTEGRATED | | Exception BUFFER_LIMIT occurs instead of STRING_LIMIT one 178| I | 393 | | | 100 | Unexpected exception occurs on access to the Fields specified by BankField 179| I | | | | | ConcatenateResTemplate operation falls into an endless loop 180| C | | | | | Failed to compiler Switch/Case operators 181| C | | | | | Failed to compiler specific Method 182| I | | | | | Exception on a specific declarations of objects of the same name 183| C | | | | | Stack OverFlow of ASL compiler on processing the specific recursive method call 184| I | | | | | Nesting Methods cause exceptions 185| I | 392 | | | 100 | In a slack mode Method should implicitly return zero (0) as a default value 186| I | 391 | | | 100 | The predicate value of If/While operations is not implicitly returned in slack mode 187| I | 389 | | | 100 | No exception in non-slack mode on attempt to obtain value from Method terminated by the standalone Return 188| I | 390 | | INTEGRATED | | ConcatenateResTemplate doesn't consume an empty buffer 189| I | | | | | The 1-byte buffer passed to ConcatenateResTemplate doesn't cause a run-time error 190| I | | | | | In ConcatenateResTemplate an operand ending only with the first byte of the end tag doesn't cause a run-time error 191| I,S | 388 | | | 100 | CopyObject to Buffer Field specification/implementation should be clarified/fixed 192| I | 387 | | | 100 | Incorrect value of Bank register after storing to its banked field 193| I | 354 | | | 100 | storing opt. results of Not/NAnd/NOr into Buffer Field in 32-bit mode can soil the higher bits of BF 194| I | 386 | | | 100 | Incorrect length of result of ToBuffer in case it is stored into a Named Buffer 195| I | 353 | | | 100 | Increment and Decrement of String or Buffer changes the type of operand 196| I | | | | | Incorrect conversion of String to Integer for ToInteger("0x0x12345678") 197| I | | | | | No exception occurs for incorrect String-image of Integer passed to ToInteger like "0x 1234" 198| I | | 6028 | INTEGRATED | | AML interpretation in 32-bit slack mode becomes unstable after some exceptions 199| I | | | | | No exception on DerefOf for parameter which is none of ObjectReference/IndexReference/String 200| I | 352 | | | 100 | the code path taken after exception in AcpiPsParseLoop is incorrect 201| I | 385 | | | 100 | Many Outstanding allocations on ASLTS tests run 202| I | | 6151 | FIXED INTEGRATED | | The ASLTS test b129 falls into an infinitive loop in a 32-bit slack mode 203| I | 348 | | | 100 | ObjectType operation falls into infinite loop for ring of RefOf references 204| I | 347 | | | 100 | SizeOf operation falls into infinite loop for ring of RefOf references 205| I | 346 | | | 100 | Store-to-Debug operation falls into infinite loop for ring of RefOf references 206| I | 345 | | | 100 | ObjectType operation falls into infinite loop for ring of Index references 207| I | 344 | | | 100 | SizeOf operation falls into infinite loop for ring of Index references 208| I | 343 | | | 100 | Store-to-Debug operation falls into infinite loop for ring of Index references 209| I | | 6220 | REJECTED | | Ineffective memory consumption detected by b135 ASLTS tests 210| I | 349 | | | 100 | Implicit return objects are not released in Slack Mode 211| I | | 6514 | INTEGRATED | | ACPI-CA memory leak due to optionally stored AML Object passed through "child" Method 212| I | | 6389 | | 100 | AML interpreter doesn't prevent dead RefOf-references 213| I | 342 | | | 100 | abort of AcpiExec on accessing internal object of terminated method by returned IRef 214| I | 350 | | | 100 | crash of AcpiExec on repeated CopyObject of OpRegion 215| I | 351 | | | 100 | exception on accessing IndexField with IndexName Region Field exceeding 32 bits 216| I | 341 | | | 100 | exception AE_NOT_FOUND on CreateField under specific conditions 217| I | 409 | | | 100 | Dynamic OpRegion _REG method execution problem 218| I | 408 | | | 100 | Access to internal object of Method is lost after returning from the recursive call to that Method 219| I | 426 | | | 100 | The result of Interrupt Resource Template macro is incorrect when ResourceSource is omitted 220| I | 427 | | | 100 | Inconsistent "Access is available/unavailable" _REG method calls 221| I | 428 | | | 100 | AcpiExec improper emulates alternating access to OpRegions covering different ranges 222| I | 429 | | | 100 | Alternating access to OpRegions of different Address Spaces issue 223| I | 430 | | | 100 | DataTableRegion with the non-constant *String arguments unexpectedly causes an exception or crash 224| I | 431 | | | 100 | AcpiExec is unable to emulate access to IndexField Object 225| C | 432 | | FIXED INTEGRATED | | Crash of the ASL compiler for large Offset or Length in Field Unit list 226| I | 433 | | INTEGRATED | | Excessive data is written to the Data field if it is wider than Access Width of the IndexField 227| C | | | FIXED | | The ASL Compiler fails on ASL file which ends up with the symbol of comment '/' without the following '\n' 228| I | | 5395 | | 100 | Store to the RefOf reference immediately returned by Method doesn't work 229| I | 434 | | | 100 | Clarify what is the proper behaviour in case of the zero length buffer 230| C | 437 | | | 100 | ReturnType argument of Method declaration is not supported 231| C | 438 | | | 100 | ParameterTypes argument of Method declaration is not supported 232| I | 440 | | | 100 | No exception on the repeated declaration 233| C | 441 | | | 100 | An invalid non-ASCII letter in declaration passed to ASL Compiler by Include operator causes hang of it |=================================================| | | | The symbol of comment is character '|' in the first position of line of file. | The column-separator symbol is '|'. | | | The contents of fields of the table: | | ========= | COMP - component the bug relates to: | I - AML Interpreter | C - iASL compiler | M - simulation purposes (OS Layer insertions for simulation purposes only) | U - utility | S - specs | ML - memory leak (additional information but not component) | IID - internal ID of bug | LBZID - local bugzilla ID | KBZID - kernel bugzilla ID | PR - priority for fixing the bug. Should be non-empty for each not fixed | bug and empty otherwise: | 1 - will be fixed in the first turn | 2 - will be fixed in the second turn.. | SUMMARY - summary. Short description of bug. | | STATE-MANUALLY - the state of bug set up/confirmed (if needed) manually: | FIXED - bug is fixed. It is to be filled only when there is no | ability to create the relevant bdemo test which shows | the current state of the bug. | REJECTED - not a bug more. Each rejected bug should be confirmed | by this entry here. | INTEGRATED - bug-fix is olready integrated. Each fixed bug should be | confirmed by this entry here that its patch/update is | integrated. | ========= | | | COMMENTS: | | Floating point fix proposed: 29,47 | | About how INTEGRATED was set up: | | (did not check the code update, but only PASS of test): 58,119,169,171 | | About how FIXED was set up: | | checked out visually: 53 | | About how REJECTED was set up: | | 88 -- duplicate of 90 | 170 -- duplicate of 191 | | Specs: | | 37,51,147: | the bugs are filed against specification, so the expected result | is fixing ACPI specification. It should be checked out manually | that the relevant part of specification is actually fixed/updated. | After that write manually INTEGRATED key in the STATE-MANUALLY | column of the relevant bug to confirm completion of bug. Some | these bugs against specs may nevertheless have the relevant bdemo | tests which make use just of the relevant functionality touched | by the part of specification. But nevertheless PASS of these | tests is not enough to set up INTEGRATED for these bugs of specs. acpica-unix-20250404/tests/aslts/adm/BugState/BugList_AML_LB_SUM00000700000175000017500000000747614773714146023465 0ustar ivanhuivanhuBug List: AML_LB_SUM0This is Bugzilla Bugzilla Version 2.22.1 Bug List: AML_LB_SUM0 Tue Mar 20 2007 23:56:19 Bugzilla would like to put a random quip here, but no one has entered any. 118 bugs found. ID Status Resolution Comp 341 ASSI Core/Int 342 ASSI Core/Int 343 ASSI Core/Int 344 ASSI Core/Int 345 ASSI Core/Int 346 ASSI Core/Int 347 ASSI Core/Int 348 ASSI Core/Int 349 ASSI Core/Int 350 ASSI Core/Int 351 ASSI Core/Int 352 ASSI Core/Int 353 ASSI Core/Int 354 ASSI Core/Int 371 RESO FIXE ACPI Spe 385 ASSI Core/Int 386 ASSI Core/Int 387 ASSI Core/Int 388 ASSI Core/Int 389 ASSI Core/Int 390 CLOS FIXE Core/Int 391 ASSI Core/Int 392 ASSI Core/Int 393 ASSI Core/Int 394 ASSI iASL Com 395 CLOS FIXE Core/Int 396 CLOS FIXE Core/Int 397 ASSI iASL Com 398 RESO FIXE ACPI Spe 399 ASSI iASL Com 400 RESO FIXE ACPI Spe 401 ASSI iASL Com 402 RESO FIXE ACPI Spe 403 CLOS FIXE Core/Int 404 CLOS FIXE Core/Int 405 CLOS FIXE iASL Com 406 ASSI Core/Int 407 ASSI iASL Com 408 ASSI Core/Int 409 ASSI Core/Int 410 ASSI iASL Com 411 RESO FIXE ACPI Spe 412 RESO FIXE ACPI Spe 413 CLOS FIXE Core/Int 414 RESO FIXE ACPI Spe 415 RESO WONT iASL Com 416 ASSI iASL Com 417 CLOS FIXE Core/Int 418 CLOS FIXE Core/Int 419 ASSI iASL Com 420 ASSI iASL Com 421 ASSI Core/Int 422 ASSI iASL Com 423 ASSI iASL Com 424 ASSI ACPI Spe 425 RESO INVA iASL Com 426 ASSI Core/Int 427 ASSI Core/Int 428 ASSI Core/Int 429 RESO FIXE Core/Int 430 ASSI Core/Int 431 ASSI Core/Int 432 CLOS FIXE iASL Com 433 CLOS FIXE Core/Int 434 ASSI Core/Int 435 ASSI Core/Int 436 CLOS FIXE iASL Com 437 ASSI iASL Com 438 ASSI iASL Com 440 RESO FIXE Core/Int 441 ASSI iASL Com 448 NEW Utilitie 453 RESO FIXE iASL Com 454 ASSI iASL Com 455 ASSI Core/Int 456 ASSI Core/Int 458 RESO FIXE Core/Int 459 ASSI ACPI Spe 460 RESO FIXE iASL Com 461 ASSI iASL Com 465 RESO FIXE Utilitie 466 RESO FIXE Utilitie 467 ASSI Core/Int 468 ASSI iASL Com 469 ASSI Core/Int 470 ASSI Core/Int 471 ASSI Core/Int 472 ASSI Core/Int 473 ASSI Core/Int 480 RESO FIXE Core/Int 481 RESO FIXE Core/Int 482 ASSI Core/Int 484 ASSI Core/Int 486 ASSI Core/Int 487 ASSI Core/Int 498 NEW Core/Int 499 RESO FIXE Core/Int 500 RESO FIXE Core/Int 501 ASSI Core/Int 508 NEW Core/Int 509 NEW iASL Com 516 NEW iASL Com 576 NEW Core/Int 577 NEW Core/Int 578 NEW Core/Int 579 NEW Core/Int 580 NEW Core/Int 581 NEW Core/Int 582 NEW Core/Int 583 NEW iASL Com 584 NEW Core/Int 585 NEW Core/Int 586 NEW Utilitie 587 NEW iASL Com 588 NEW Core/Int 589 NEW Core/Int 590 NEW iASL Com 591 NEW Core/Int 118 bugs found. CSV | Feed | iCalendar | Change Columns | Change Several Bugs at Once | Edit Search as Actions:Home | New | Search | | Reports | My Requests | My Votes | Log out valery.a.podrezov@intel.com Edit:Prefs Saved Searches: My Bugs | AML_LB_SUM0 bugs to the new saved search: acpica-unix-20250404/tests/aslts/adm/BugState/README0000700000175000017500000000104614773714146021162 0ustar ivanhuivanhuFILES: These files are for using in bdemostabs utility as arg3,arg4,arg5. See comment to bdemostabs utility in aslts/bin/HOW_TO_USE. ALLBUGS - arg3 - manually prepared description of all bugs, the features of current state of bugs which could not be obtained automatically. NOTE: it should be kept up to date regularly BugList_AML_KB_SUM0 - arg4 - kernel bugzilla Bug List file BugList_AML_LB_SUM0 - arg5 - local bugzilla Bug List file acpica-unix-20250404/tests/aslts/adm/BugState/BugList_AML_KB_SUM00000700000175000017500000000316514773714146023453 0ustar ivanhuivanhuBug List Kernel Bug Tracker Bug List Tue Mar 20 08:51:30 PDT 2007 41 bugs found. ID State Result Category 5314 ASSI ACPI 5326 CLOS CODE ACPI 5328 ASSI ACPI 5329 CLOS CODE ACPI 5334 CLOS CODE ACPI 5336 CLOS CODE ACPI 5358 ASSI ACPI 5359 CLOS CODE ACPI 5360 CLOS CODE ACPI 5361 CLOS CODE ACPI 5369 CLOS CODE ACPI 5370 CLOS CODE ACPI 5372 ASSI ACPI 5373 ASSI ACPI 5374 ASSI ACPI 5375 ASSI ACPI 5387 CLOS CODE ACPI 5388 ASSI ACPI 5389 ASSI ACPI 5390 ASSI ACPI 5391 ASSI ACPI 5392 CLOS CODE ACPI 5394 ASSI ACPI 5395 ASSI ACPI 5422 CLOS CODE ACPI 5423 CLOS CODE ACPI 5424 CLOS CODE ACPI 5425 ASSI ACPI 5426 CLOS PATC ACPI 5427 CLOS CODE ACPI 5466 ASSI ACPI 5480 CLOS CODE ACPI 6028 CLOS CODE ACPI 6151 CLOS CODE ACPI 6220 REJE DOCU ACPI 6389 ASSI ACPI 6514 CLOS CODE ACPI 7871 RESO CODE ACPI 7872 RESO CODE ACPI 7873 RESO CODE ACPI 7874 RESO CODE ACPI 41 bugs found. Query Page Enter New Bug Change Columns Edit this Query Actions: New | Query | bug # | Reports Edit prefs | Log out Valery.A.Podrezov@intel.com Preset Queries: My Bugs | AML_KB_SUM0 This is based on Bugzilla: the Mozilla bug system. For more information about what Bugzilla is and what it can do, see bugzilla.org. Bugzilla version 2.16.10 acpica-unix-20250404/tests/aslts/adm/BugState/ARX/0000700000175000017500000000000014773714143020725 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/adm/BugState/ARX/0000/0000700000175000017500000000000014773714146021307 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/adm/BugState/ARX/0000/BugList_AML_LB_SUM00000700000175000017500000000531714773714146024466 0ustar ivanhuivanhuBug List: AML_LB_SUM0Linux OS Bugzilla linuxos.sh.intel.com Bug List: AML_LB_SUM0 Thu Jul 13 00:19:55 WST 2006 "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan 71 bugs found. ID State Result Comp 341 ASSI Core/Int 342 ASSI Core/Int 343 ASSI Core/Int 344 ASSI Core/Int 345 ASSI Core/Int 346 ASSI Core/Int 347 ASSI Core/Int 348 ASSI Core/Int 349 ASSI Core/Int 350 ASSI Core/Int 351 ASSI Core/Int 352 ASSI Core/Int 353 ASSI Core/Int 354 ASSI Core/Int 371 RESO FIXE ACPI Spe 385 ASSI Core/Int 386 ASSI Core/Int 387 ASSI Core/Int 388 ASSI Core/Int 389 ASSI Core/Int 390 CLOS FIXE Core/Int 391 ASSI Core/Int 392 ASSI Core/Int 393 ASSI Core/Int 394 ASSI iASL Com 395 CLOS FIXE Core/Int 396 CLOS FIXE Core/Int 397 ASSI iASL Com 398 RESO FIXE ACPI Spe 399 ASSI iASL Com 400 RESO FIXE ACPI Spe 401 ASSI iASL Com 402 RESO FIXE ACPI Spe 403 CLOS FIXE Core/Int 404 CLOS FIXE Core/Int 405 CLOS FIXE iASL Com 406 ASSI Core/Int 407 ASSI iASL Com 408 ASSI Core/Int 409 ASSI Core/Int 410 ASSI iASL Com 411 RESO FIXE ACPI Spe 412 RESO FIXE ACPI Spe 413 CLOS FIXE Core/Int 414 RESO FIXE ACPI Spe 415 ASSI iASL Com 416 ASSI iASL Com 417 CLOS FIXE Core/Int 418 CLOS FIXE Core/Int 419 ASSI iASL Com 420 ASSI iASL Com 421 ASSI Core/Int 422 ASSI iASL Com 423 ASSI iASL Com 424 ASSI ACPI Spe 425 RESO INVA iASL Com 426 ASSI Core/Int 427 ASSI Core/Int 428 ASSI Core/Int 429 ASSI Core/Int 430 ASSI Core/Int 431 ASSI Core/Int 432 CLOS FIXE iASL Com 433 CLOS FIXE Core/Int 434 ASSI Core/Int 435 ASSI Core/Int 436 CLOS FIXE iASL Com 437 ASSI iASL Com 438 ASSI iASL Com 440 ASSI Core/Int 441 ASSI iASL Com 71 bugs found. Query Page Enter New Bug Change Columns Change Several Bugs at Once Edit this Query This is Bugzilla: the Mozilla bug system. For more information about what Bugzilla is and what it can do, see bugzilla.org. Actions: New | Query | bug # | Reports | My Votes Edit prefs | Log out valery.a.podrezov@intel.com Personal Queries: My Bugs | AML_LB_SUM0* Shared Queries: acpica-unix-20250404/tests/aslts/adm/BugState/ARX/0000/BugList_AML_KB_SUM00000700000175000017500000000305514773714146024462 0ustar ivanhuivanhuBug List: AML_KB_SUM0 Kernel Bug Tracker Bug List: AML_KB_SUM0 Wed Jul 12 05:37:04 PDT 2006 37 bugs found. ID State Result Category 5314 RESO CODE ACPI 5326 CLOS CODE ACPI 5328 ASSI ACPI 5329 CLOS CODE ACPI 5334 RESO CODE ACPI 5336 CLOS CODE ACPI 5358 RESO CODE ACPI 5359 RESO CODE ACPI 5360 CLOS CODE ACPI 5361 CLOS CODE ACPI 5369 CLOS CODE ACPI 5370 CLOS CODE ACPI 5372 ASSI ACPI 5373 ASSI ACPI 5374 ASSI ACPI 5375 ASSI ACPI 5387 CLOS CODE ACPI 5388 ASSI ACPI 5389 ASSI ACPI 5390 ASSI ACPI 5391 ASSI ACPI 5392 CLOS CODE ACPI 5394 ASSI ACPI 5395 ASSI ACPI 5422 CLOS CODE ACPI 5423 RESO CODE ACPI 5424 RESO CODE ACPI 5425 ASSI ACPI 5426 RESO PATC ACPI 5427 CLOS CODE ACPI 5466 ASSI ACPI 5480 CLOS CODE ACPI 6028 CLOS CODE ACPI 6151 CLOS CODE ACPI 6220 REJE DOCU ACPI 6389 NEED ACPI 6514 CLOS CODE ACPI 37 bugs found. Query Page Enter New Bug Change Columns Edit this Query Actions: New | Query | bug # | Reports Edit prefs | Log out Valery.A.Podrezov@intel.com Preset Queries: My Bugs | AML_KB_SUM0 This is based on Bugzilla: the Mozilla bug system. For more information about what Bugzilla is and what it can do, see bugzilla.org. Bugzilla version 2.16.10 acpica-unix-20250404/tests/aslts/adm/BugState/ARX/0001/0000700000175000017500000000000014773714146021310 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/adm/BugState/ARX/0001/BugList_AML_LB_SUM00000700000175000017500000000535414773714146024470 0ustar ivanhuivanhuBug List: AML_LB_SUM0Linux OS Bugzilla linuxos.sh.intel.com Bug List: AML_LB_SUM0 Wed Jul 26 22:36:30 WST 2006 "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan 72 bugs found. ID State Result Comp 341 ASSI Core/Int 342 ASSI Core/Int 343 ASSI Core/Int 344 ASSI Core/Int 345 ASSI Core/Int 346 ASSI Core/Int 347 ASSI Core/Int 348 ASSI Core/Int 349 ASSI Core/Int 350 ASSI Core/Int 351 ASSI Core/Int 352 ASSI Core/Int 353 ASSI Core/Int 354 ASSI Core/Int 371 RESO FIXE ACPI Spe 385 ASSI Core/Int 386 ASSI Core/Int 387 ASSI Core/Int 388 ASSI Core/Int 389 ASSI Core/Int 390 CLOS FIXE Core/Int 391 ASSI Core/Int 392 ASSI Core/Int 393 ASSI Core/Int 394 ASSI iASL Com 395 CLOS FIXE Core/Int 396 CLOS FIXE Core/Int 397 ASSI iASL Com 398 RESO FIXE ACPI Spe 399 ASSI iASL Com 400 RESO FIXE ACPI Spe 401 ASSI iASL Com 402 RESO FIXE ACPI Spe 403 CLOS FIXE Core/Int 404 CLOS FIXE Core/Int 405 CLOS FIXE iASL Com 406 ASSI Core/Int 407 ASSI iASL Com 408 ASSI Core/Int 409 ASSI Core/Int 410 ASSI iASL Com 411 RESO FIXE ACPI Spe 412 RESO FIXE ACPI Spe 413 CLOS FIXE Core/Int 414 RESO FIXE ACPI Spe 415 RESO WONT iASL Com 416 ASSI iASL Com 417 CLOS FIXE Core/Int 418 CLOS FIXE Core/Int 419 ASSI iASL Com 420 ASSI iASL Com 421 ASSI Core/Int 422 ASSI iASL Com 423 ASSI iASL Com 424 ASSI ACPI Spe 425 RESO INVA iASL Com 426 ASSI Core/Int 427 ASSI Core/Int 428 ASSI Core/Int 429 ASSI Core/Int 430 ASSI Core/Int 431 ASSI Core/Int 432 CLOS FIXE iASL Com 433 CLOS FIXE Core/Int 434 ASSI Core/Int 435 ASSI Core/Int 436 CLOS FIXE iASL Com 437 ASSI iASL Com 438 ASSI iASL Com 440 ASSI Core/Int 441 ASSI iASL Com 448 NEW Utilitie 72 bugs found. Query Page Enter New Bug Change Columns Change Several Bugs at Once Edit this Query This is Bugzilla: the Mozilla bug system. For more information about what Bugzilla is and what it can do, see bugzilla.org. Actions: New | Query | bug # | Reports | My Votes Edit prefs | Log out valery.a.podrezov@intel.com Personal Queries: My Bugs | AML_LB_SUM0* Shared Queries: acpica-unix-20250404/tests/aslts/adm/BugState/ARX/0001/BugList_AML_KB_SUM00000700000175000017500000000305514773714146024463 0ustar ivanhuivanhuBug List: AML_KB_SUM0 Kernel Bug Tracker Bug List: AML_KB_SUM0 Wed Jul 26 07:34:25 PDT 2006 37 bugs found. ID State Result Category 5314 RESO CODE ACPI 5326 CLOS CODE ACPI 5328 ASSI ACPI 5329 CLOS CODE ACPI 5334 RESO CODE ACPI 5336 CLOS CODE ACPI 5358 RESO CODE ACPI 5359 RESO CODE ACPI 5360 CLOS CODE ACPI 5361 CLOS CODE ACPI 5369 CLOS CODE ACPI 5370 CLOS CODE ACPI 5372 ASSI ACPI 5373 ASSI ACPI 5374 ASSI ACPI 5375 ASSI ACPI 5387 CLOS CODE ACPI 5388 ASSI ACPI 5389 ASSI ACPI 5390 ASSI ACPI 5391 ASSI ACPI 5392 CLOS CODE ACPI 5394 ASSI ACPI 5395 ASSI ACPI 5422 CLOS CODE ACPI 5423 RESO CODE ACPI 5424 RESO CODE ACPI 5425 ASSI ACPI 5426 CLOS PATC ACPI 5427 CLOS CODE ACPI 5466 ASSI ACPI 5480 CLOS CODE ACPI 6028 CLOS CODE ACPI 6151 CLOS CODE ACPI 6220 REJE DOCU ACPI 6389 NEED ACPI 6514 CLOS CODE ACPI 37 bugs found. Query Page Enter New Bug Change Columns Edit this Query Actions: New | Query | bug # | Reports Edit prefs | Log out Valery.A.Podrezov@intel.com Preset Queries: My Bugs | AML_KB_SUM0 This is based on Bugzilla: the Mozilla bug system. For more information about what Bugzilla is and what it can do, see bugzilla.org. Bugzilla version 2.16.10 acpica-unix-20250404/tests/aslts/adm/BugState/ALLBUGS0000700000175000017500000012131214773714146021315 0ustar ivanhuivanhuALLBUGS| Dont remove this line, it is used in the automatic processing of the table! | | This is a STATE-MANUALLY table. | |IID COMP LBZID KBZID STATE-MANUALLY PR SUMMARY |=================================================| 0| I | | | | | Logical operators return True equal to One but not Ones 1| C | 419 | | | 100 | The ASL Compiler doesn't allow non-constant TimeoutValue for Acquire 2| I | | | | | The elseif operator works incorrectly 3| C | 420 | | | 100 | The ASL Compiler should reject Switch operators with the identical Case operators in it 4| I | | | | | Concatenate being invoked in Method M000 changes the type of LocalX of calling Method passed as operand to M000 5| I | | | | | Switch operator doesn't provide Default branch 6| I | | | | | ToInteger converts a decimal string the same way as a hexadecimal one 7| I | | | | | ToString updates the LocalX value (if it is zero) passed as Length parameter 8| I | | | | | The type returned by ObjectType for Object created by Field operator is not Field 9| I | | | | | Exception on ObjectType passed with not initialized values (in LocalX) 10| I | | | | | ToBuffer transforms operand (in local variable) to reference 11| C | | | FIXED | | The ASL Compiler crashes on Create*Field for invalid FieldName parameter 12| I | | 5360 | INTEGRATED | | DerefOf doesn't evaluate String to Object 13| I | | | | | The type returned by ObjectType for Object created by Create*Field operator is not BufferField 14| I,S | 421 | | | 100 | Implementation differs the specified Maximal value of MicroSeconds 15| I | | | | | ToDecimalString produces the Strings which have the length greater than expected 16| I | | | REJECTED | | Concatenate operator produces the resulting String exceeding 200 symbols without generating exception 17| I | | | | | LEqual works incorrectly for Buffer-operands containing zero 18| I | | | | | LGreater works incorrectly for Buffer-operands containing zero 19| I | | | | | LGreaterEqual works incorrectly for Buffer-operands containing zero 20| I | | | | | LLess works incorrectly for Buffer-operands containing zero 21| I | | | | | LLessEqual works incorrectly for Buffer-operands containing zero 22| I | | | | | LNotEqual works incorrectly for Buffer-operands containing zero 23| I | 435 | | | 100 | FromBCD/ToBCD works incorrectly in 64-bit mode starting with the large enough values 24| C | | | FIXED | | The EISAID doesn't provides input control of "uppercase letter" part (UUU) of EisaIdString 25| S | | | REJECTED | | The maximal length exceeding exception should be additionally specified for some operators 26| C | | | REJECTED | | The ASL Compiler doesn't forbid images of Strings exceeding maximum 27| I | | | | | Crash of ObjectType for the particular BufferFields 28| I | | | | | No exception on Create*Field for out of Buffer range 29| M | | | | 100 | Looks, like Sleep (or Wait) spend less time than specified 30| I | | | | | Crash of ObjectType for the particular Fields 31| C | 422 | | | 100 | The ASL Compiler doesn't try to detect and reject attempts to use object before its declaration is evaluated 32| C | | | FIXED | | The ASL Compiler should reject the same and out of range IRQ numbers (IRQ and IRQNoFlags macros) 33| C | | | FIXED | | The ASL-compiler doesn't refuse the same descriptor names present in the same scope (Method) 34| I | | | | | Some data tables are corrupted when _BAS field of FixedIO Resource Descriptor Macro is specified 35| C,S | | | FIXED | | The DMA Resource Descriptor Macro (specification, compilation error, to strengthen the ASL Compiler input control) 36| C | | | FIXED | | The ASL compiler should reject the VendorShort Resource Descriptor Macro with the out of range bytes number 37| S,C | 424 | | | | The Memory24 Resource Descriptor Macro specification should be updated 38| I | 418 | | INTEGRATED | | LGreater passed with Integer and String works incorrectly in 32-bit mode 39| C | | | | | The ASL Compiler fails on specific expressions with ObjectType 40| I | | | | | Crash on sync-objects reusing 41| I | | | | | ToInteger transforms operand to reference when no conversion is required 42| I | | | | | ToDecimalString transforms operand to reference when no conversion is required 43| I | | | | | ToHexString transforms operand to reference when no conversion is required 44| I | | | | | The ToUUID Macro loses the high hex-digit of each byte 45| I | | | | | Exception on ToDecimalString for Buffer with 51 elements 46| I | | | | | Exception on ToHexString for Buffer with 67 elements 47| M | | | | 100 | Timer operator doesn’t provide gradually increased values 48| I | | | REJECTED | | No exception on result of Concatenate longer than 210 bytes 49| I | | | REJECTED | | No exception on result of ToDecimalString longer than 210 bytes 50| I | | | REJECTED | | No exception on result of ToHexString longer than 210 bytes 51| S,C,I | 371 | | | | Register() macro missing parameter 52| I | | | | | The EdgeLevel offset of Interrupt macro (_HE) is specified as 25-th bit but actually it is implemented as 24-th bit 53| C | | | FIXED | | The ASL Compiler doesn't reject the out of range number of interrupts for Interrupt macro 54| I | | | | | All ASL Operators causes exceptions on two immediately passed Buffers 55| C | | | FIXED | | The ASL Compiler should reject the same Interrupt numbers (Interrupt macros) 56| C | 423 | | | 100 | The ASL Compiler generates a one element descriptor for Interrupt macro with the empty InterruptList 57| I | | | | | The standalone Return is processed incorrectly 58| I | 417 | | INTEGRATED | | Concatenate of two Integers may operates in 32-bit mode as in 64-bit mode 59| I | | | | | String to Buffer conversion doesn't reduce the size of resulting Buffer 60| I | | | | | "Outstanding allocations" on processing the Type Conversion 61| I | | | | | Crash on Store the OperationRegion result returned by Method 62| C | 436 | | INTEGRATED | | Crash of the iASL Compiler when ASL-code contains a long String declaration 63| I | | 5329 | INTEGRATED | | String to Integer conversion contradicts new April 2005 Conversion Rules 64| I | | | | | Specific operations should initiate AE_BAD_HEX_CONSTANT exceptions 65| I | | | REJECTED | | BufferField type object should be passed to Methods without any conversion (to Buffer or Integer) 66| I | | | REJECTED | | FieldUnit type object should be passed to Methods without any conversion (to Buffer or Integer) 67| I | | | REJECTED | | BufferField type object should be returned by Methods without any conversion (to Buffer or Integer) 68| I | | | REJECTED | | FieldUnit type object should be returned by Methods without any conversion (to Buffer or Integer) 69| I | | | | | Exception on storing the result of Mid operation 70| C | 425 | | REJECTED | | The ASL Compiler should reject Resource Descriptors where ResourceSourceIndex is present but ResourceSource is omitted 71| C | | | FIXED | | The ASL Compiler should reject Resource Descriptors where ResourceSourceIndex is omitted but ResourceSource is present 72| C | | | FIXED | | The ASL Compiler program returns improper status after compiling invalid ASL code 73| C | | | FIXED | | The ASL Compiler fails and reports a large number of "Recursive method call" remarks 74| I | | | | | Ones is not equal to 0xFFFFFFFF in 32-bit mode 75| C | | | | | Each scope of DefinitionBlock should be supplied with its set of _T_x objects 76| I | | | | | Unexpected dereference of Index reference in Store operator 77| I | | | | | Exception on ToInteger operator under specific conditions 78| I | | | | | Specific expression Derefof(Refof(i000)) causes deletion of object (i000) 79| I | | | | | Specific expression with ToBuffer causes exception 80| C,S | 416 | | | 100 | The ASL compiler should report Error when the name of Method (but not invocation of it) is specified in expressions 81| C,I,S | 415 | | | 100 | Call to Method immediately passed to ObjectType is evaluated improperly 82| S | 414 | | | 100 | The Data Type Conversion Rules table should be updated 83| I | | 5387 | INTEGRATED | | No exception on DerefOf of an arbitrary Source 84| I | | 5361 | INTEGRATED | | Failed to interpret AML code alternated with Method declarations 85| I | | | | | Exception on DeRefOf operator applied to IRef to Uninitialized element of Package 86| I | | | | | ToString operator produces one "Outstanding allocation" 87| I | | | | | Exception on Switch operator applied to the result of ToBuffer operator 88| S | | | REJECTED | | Spec of Match operator should be changed (conversion/null package entries) 89| S | | | | 100 | Clarifying what does the ASL Method as an element of Package mean 90| S | 412 | | | 100 | Spec of Match operator should be changed (conversion/null package entries) 91| S | 411 | | | 100 | The result of String-to-Buffer conversion should include the string null terminator 92| I | | | | | Invalid result of Index operator passed with the immediate image of Package 93| I | | | | | Invalid result of Index operator passed with the immediate image of Buffer 94| I | | | | | Invalid result of Index operator passed with the immediate image of String 95| I | | | | | Big amount of invocations of Methods causes overlap of OwnerId counter 96| C | 410 | | | 100 | The ASL Compiler fails to recognize specific Uninitialized LocalX 97| I | | | | | Crash on ObjectType passed with IRef to Method which is an element of Package 98| I | | | | | Crash on a specific AML code 99| I | | | | | The specific sequence of operations dealing with IRef/ORef corrupts the source object 100| I | | | | | The specific combination of operators aborts execution 101| C | | | | | The ASL compiler fails to create RefOf reference to Method not returning explicitly any object 102| I | | | | | The specific combination of operators produces one "Outstanding allocation" 103| I | | | | | The Method type element of Package is being invoked 104| I | | | | | The ObjectType operator being passed with the IRef to the Uninitialized element of Package causes crash 105| I | | | | | The ObjectType operator being passed with the IRef obtained by the specific way causes crash 106| I | | 5388 | | 100 | Crash on RefOf(Debug) operation 107| C | | | | | The ASL Compiler crashes when tries to convert data that can not be converted 108| C | | | FIXED | | The ASL Compiler crashes when the result of ToBCD exceeds the current range of Integer 109| C | | | FIXED | | The ASL Compiler crashes on FromBCD being passed with the invalid data (hex image containing not only decimal digits) 110| I ML | | | FIXED | | The Memory Leak anomaly on a While operator (the first anomaly encountered by PMEMCV instrumentation) 111| I | | | | | No String to Integer and Buffer to Integer conversions of the Predicate Value in If, ElseIf and While operators 112| C | | | | | The ASL compiler refuses passing the Named Objects and String constants as a MicroSecs operand of the Stall operator 113| I | | 5389 | | 100 | Unexpected dereference of Index reference immediately passed to Method 114| C | 407 | | | 100 | Method object as a Source of Index operation is treated by iASL mistakenly as a call to that Method 115| I | | 5390 | | 100 | Unexpected dereference of Index reference returned by Method and immediately passed to another Method 116| C | | | FIXED | | The ASL Compiler doesn't recognize attempts to generate IRefs to arbitrary type objects 117| I | | | | | Modifying the copy of the String obtained by the Store operator modifies the initial String Object also 118| I | | 5328 | | 100 | Access to FieldObject element of Package causes exception 119| I | 413 | | INTEGRATED | | The Logical operators in 32-bit mode act with 64-bit values 120| I | | 5370 | INTEGRATED | | Unexpected exception on Store of Device and ThermalZone elements of Package to Debug operation 121| I | 406 | | | 100 | Crash on attempt to deal with the invalid BufferFields (zero NumBits passed to CreateField) 122| C | 405 | | FIXED INTEGRATED | | The ASL Compiler doesn't report Error/Warning for zero NumBits parameter of CreateField operator 123| I | 404 | | INTEGRATED | | No exception when StartIndex in Match operator is equal to or greater than the size of SourcePackage 124| I | 403 | | INTEGRATED | | No exception when the Index argument on Index() operator is out of the Source 125| I | | | | | The Mid operator in 64-bit mode returns non-empty result for improper Index 126| I | | 5372 | | 100 | The Read access automatic dereference for RefOf reference doesn't work 127| I | | 5391 | | 100 | Unexpectedly CopyObject of immediately passed Index reference is not reference 128| I | | 5392 | INTEGRATED | | Copying the RefOf reference to Named object spoils that reference 129| I,C,S | | | | | Creating Package of an arbitrary length, Package & VarPackage 130| I | | | | | Reference to String works differently to like the references to Buffer and Package work 131| I | | 5394 | | 100 | Store to the Index reference immediately returned by Method doesn't work 132| I | | 5373 | | 100 | The Read access automatic dereference for Index reference doesn't work 133| I | | 5374 | | 100 | The Write access automatic dereference for Index reference doesn't work 134| I | | 5375 | | 100 | Writing RefOf reference from inside Method breaks effectively local Arg 135| I | | 5358 | | | Store of Index reference to another element of the same Package causes hang 136| I | | | | | CopyObject of named Buffer to the longer named Buffer works incorrectly 137| I | | | | | The Implicit Result Object conversion is mistakenly applied to the optional storing of FromBCD 138| I | | | | | 8 bytes but not 4 expected ones are written to BufferField in 32-bit mode 139| I | | | | | DeRefof and Store operations on 64-bit Integers of 32-bit AML table has been loaded modify them 140| C | | | FIXED | | The ASL Compiler doesn't report NumElements being less than the number of elements in the PackageList 141| S | 402 | | | 100 | The term 'object reference' in DMA Resource Descriptor Macro specs sounds ambiguously 142| C | 401 | | | 100 | The ASL Compiler doesn't support non-empty list of parameters of Function Declaration 143| C | | | | | The ASL Compiler doesn't support more than two-element long list of ParameterTypes argument of Method 144| C | | | | | The ASL Compiler doesn't support multiple type list for particular ParameterType of Method 145| C | | | FIXED | | The ASL Compiler should report an error for SyncLevel argument of Method outside of range 146| C | | | | | The ASL compiler refuses Package in Case operator 147| S | 400 | | | | ProcessorObj Object Type Keyword is not present in ObjectTypeKeyword 148| C | 399 | | | 100 | Additional errors to be reported by iASL for Control Method Declaration 149| S | 398 | | | 100 | Spec of Function should be clarified 150| I | | 5334 | INTEGRATED | | No exception when Serialized Method is run after the higher level mutex acquiring 151| I | | | | | The zero-length resulting String of Mid operator passed to Concatenate operator causes crash 152| C | 394 | | | 100 | Decrease severity of iASL error for non-Computational types in the Computational data positions 153| I | | 5314 | | 1 | Source and Target objects after ACPI AML StoreOp behave identically 154| I | | | | | Exception occurs on attempt to rewrite Device type object passed by ArgX to Method 155| I | | | | | Global level AML code execution is performed twice 156| I ML | | 5422 | FIXED INTEGRATED | | Memory leak till the Method exit for each execution of If(TRUE)-Else/ElseIf 157| C | 397 | | | 100 | Exception while processing the empty ParameterTypes list of Method 158| I ML | | 5423 | FIXED INTEGRATED | | Memory leak till the Method exit for each execution of Break 159| I ML | | 5424 | FIXED INTEGRATED | | Memory leak till the Method exit for each execution of Continue 160| I | | | | | Attempt to declare Field inside the If scope causes exception 161| I | | 5359 | INTEGRATED | | Named object passed as a BitIndex or NumBits to CreateField causes hang 162| I | | 5326 | INTEGRATED | | Crash while processing the global level execution exception 163| I ML | | 5425 | | 100 | The copy of Device object to LocalX is not ever released 164| I | | | FIXED | | Subtest m22d of Reference test started causing exceptions since 20050526 165| I ML | | 5426 | FIXED INTEGRATED | | Unnecessary memory allocation for CreateField should be eliminated 166| I ML | | 5427 | INTEGRATED | | Releasing memory of the inside Method scopes surrounding Return operation is needed 167| I | | | | | Manipulation test PASS but started reporting suspicious diagnostic 168| C,I | | | FIXED | | Wrong specific Package obtained for not optimized AML code 169| I | 395 | | INTEGRATED | | Improper work of ShiftLeft and ShiftRight operators on Linux in a specific case 170| I | | | REJECTED | | -- see if to rewrite it for Fields but not for BufferFields 171| I | 396 | | INTEGRATED | | Improper Integer to String implicit conversion in a specific case 172| I | | | FIXED | | Outstanding allocations to be investigated 173| I | | 5336 | FIXED INTEGRATED | | Two the same fragments of code should be compacted to one 174| I | | | | | Inappropriate constant in DescriptorType field of the Descriptor->Address64 structure 175| I | | 5369 | INTEGRATED | | Unexpected exception on Store of ThermalZone to Debug operation 176| I | | 5466 | | 100 | Store-to-Debug an element of Package having reference to itself results in an infinite loop 177| I | | 5480 | INTEGRATED | | Exception BUFFER_LIMIT occurs instead of STRING_LIMIT one 178| I | 393 | | | 100 | Unexpected exception occurs on access to the Fields specified by BankField 179| I | | | | | ConcatenateResTemplate operation falls into an endless loop 180| C | | | | | Failed to compiler Switch/Case operators 181| C | | | | | Failed to compiler specific Method 182| I | | | | | Exception on a specific declarations of objects of the same name 183| C | | | | | Stack OverFlow of ASL compiler on processing the specific recursive method call 184| I | | | | | Nesting Methods cause exceptions 185| I | 392 | | | 100 | In a slack mode Method should implicitly return zero (0) as a default value 186| I | 391 | | | 100 | The predicate value of If/While operations is not implicitly returned in slack mode 187| I | 389 | | | 100 | No exception in non-slack mode on attempt to obtain value from Method terminated by the standalone Return 188| I | 390 | | INTEGRATED | | ConcatenateResTemplate doesn't consume an empty buffer 189| I | | | | | The 1-byte buffer passed to ConcatenateResTemplate doesn't cause a run-time error 190| I | | | | | In ConcatenateResTemplate an operand ending only with the first byte of the end tag doesn't cause a run-time error 191| I,S | 388 | | | 100 | CopyObject to Buffer Field specification/implementation should be clarified/fixed 192| I | 387 | | | 100 | Incorrect value of Bank register after storing to its banked field 193| I | 354 | | | 100 | storing opt. results of Not/NAnd/NOr into Buffer Field in 32-bit mode can soil the higher bits of BF 194| I | 386 | | | 100 | Incorrect length of result of ToBuffer in case it is stored into a Named Buffer 195| I | 353 | | | 100 | Increment and Decrement of String or Buffer changes the type of operand 196| I | | | | | Incorrect conversion of String to Integer for ToInteger("0x0x12345678") 197| I | | | | | No exception occurs for incorrect String-image of Integer passed to ToInteger like "0x 1234" 198| I | | 6028 | INTEGRATED | | AML interpretation in 32-bit slack mode becomes unstable after some exceptions 199| I | | | | | No exception on DerefOf for parameter which is none of ObjectReference/IndexReference/String 200| I | 352 | | | 100 | the code path taken after exception in AcpiPsParseLoop is incorrect 201| I | 385 | | | 100 | Many Outstanding allocations on ASLTS tests run 202| I | | 6151 | FIXED INTEGRATED | | The ASLTS test b129 falls into an infinitive loop in a 32-bit slack mode 203| I | 348 | | | 100 | ObjectType operation falls into infinite loop for ring of RefOf references 204| I | 347 | | | 100 | SizeOf operation falls into infinite loop for ring of RefOf references 205| I | 346 | | | 100 | Store-to-Debug operation falls into infinite loop for ring of RefOf references 206| I | 345 | | | 100 | ObjectType operation falls into infinite loop for ring of Index references 207| I | 344 | | | 100 | SizeOf operation falls into infinite loop for ring of Index references 208| I | 343 | | | 100 | Store-to-Debug operation falls into infinite loop for ring of Index references 209| I | | 6220 | REJECTED | | Ineffective memory consumption detected by b135 ASLTS tests 210| I | 349 | | | 100 | Implicit return objects are not released in Slack Mode 211| I | | 6514 | INTEGRATED | | ACPI-CA memory leak due to optionally stored AML Object passed through "child" Method 212| I | | 6389 | | 100 | AML interpreter doesn't prevent dead RefOf-references 213| I | 342 | | | 100 | abort of AcpiExec on accessing internal object of terminated method by returned IRef 214| I | 350 | | | 100 | crash of AcpiExec on repeated CopyObject of OpRegion 215| I | 351 | | | 100 | exception on accessing IndexField with IndexName Region Field exceeding 32 bits 216| I | 341 | | | 100 | exception AE_NOT_FOUND on CreateField under specific conditions 217| I | 409 | | | 100 | Dynamic OpRegion _REG method execution problem 218| I | 408 | | | 100 | Access to internal object of Method is lost after returning from the recursive call to that Method 219| I | 426 | | | 100 | The result of Interrupt Resource Template macro is incorrect when ResourceSource is omitted 220| I | 427 | | | 100 | Inconsistent "Access is available/unavailable" _REG method calls 221| I | 428 | | | 100 | AcpiExec improper emulates alternating access to OpRegions covering different ranges 222| I | 429 | | | 100 | Alternating access to OpRegions of different Address Spaces issue 223| I | 430 | | | 100 | DataTableRegion with the non-constant *String arguments unexpectedly causes an exception or crash 224| I | 431 | | | 100 | AcpiExec is unable to emulate access to IndexField Object 225| C | 432 | | FIXED INTEGRATED | | Crash of the ASL compiler for large Offset or Length in Field Unit list 226| I | 433 | | INTEGRATED | | Excessive data is written to the Data field if it is wider than Access Width of the IndexField 227| C | | | FIXED | | The ASL Compiler fails on ASL file which ends up with the symbol of comment '/' without the following '\n' 228| I | | 5395 | | 100 | Store to the RefOf reference immediately returned by Method doesn't work 229| I | 434 | | | 100 | Clarify what is the proper behaviour in case of the zero length buffer 230| C | 437 | | | 100 | ReturnType argument of Method declaration is not supported 231| C | 438 | | | 100 | ParameterTypes argument of Method declaration is not supported 232| I | 440 | | | 100 | No exception on the repeated declaration 233| C | 441 | | | 100 | An invalid non-ASCII letter in declaration passed to ASL Compiler by Include operator causes hang of it 234| M | 448 | | | 100 | The UNIX OSL synchronization interfaces should be developed to support testing 235| M | | | | 100 | Acpiexec hangs on absent global lock on Linux, but does not hang on Windows 236| C | 453 | | | 100 | The ASL Compiler hangs on incorrect ElseIf 237| C | 454 | | | 100 | The ASL Compiler fails to recognize specific Uninitialized LocalX (for Switch) 238| I,S | 455 | | | 100 | The jumping over levels in releasing mutexes is not prohibited 239| I | 456 | | | 100 | Crash in a slack-multi-threading mode when returning from the method experienced exception 240| I | 467 | | | 100 | No exception when not owner thread runs Release of Global lock 241| I | 458 | | | 100 | Crash of AML interpreter after an exception in AcpiExReadDataFromField called from AcpiExResolveObjectToValue 242| I | 471 | | | 100 | Releasing the mutex the first Acquired on the non-zero level makes Releasing the residuary mutexes of that level impossible 243| I | 470 | | | 100 | The normal work with mutexes is broken after the mutex Release order violation 244| I | 472 | | | 100 | Acquire/Release in a global level AML code don't work 245| S | 459 | | | 100 | Switch statement translation example in ACPI Spec is contradictory 246| C | 460 | | | 100 | Switch implementation can cause AE_ALREADY_EXISTS exception when Switch is within While 247| C | 461 | | | 100 | ASL compiler incorrectly implements Break within Switch 248| I | | | | 100 | Incorrect ReferenceCount on Switch operation 249| I | | | | 100 | Strengthen the type control for AcpiExResolveOperands 250| I | | | | 100 | The ReferenceCount mechanism should be added with the internal control 251| I,C,S | 469 | | | 100 | AE_ALREADY_EXISTS on multi-threading on Switch operator 252| C | 468 | | | 100 | ASL compiler crashes on incorrect expression with Switch 253| M | 465 | | | 100 | Option -b of AcpiExec should be generalized to run any command of ACPICA debugger in a Batch mode 254| M | 466 | | | 100 | Adjust the Threads command of AcpiExec to the actual need of mt-testing 255| I | 473 | | | 100 | The multi-threading test mt_mutex/mf07 fails/crashes/hangs on 20060828 256| I | | | | 100 | Removing the useless code increases essentially the rate of interpretation 257| I | 480 | | | 100 | Unexpected AE_AML_OPERAND_TYPE when the Object in Load is a Region Field 258| I | 481 | | | 100 | Load operator should fail if its Object parameter being a Region is not in SystemMemory 259| I | 482 | | | 100 | _REG method execution during Load operator processing issue 260| I | 484 | | | 100 | For a DDBHandle Object ObjectType unexpectedly results in AE_AML_INTERNAL 261| I | 486 | | | 100 | Crash when DDBHandle parameter of Load is an Indexed Reference 262| I | 487 | 7873 | INTEGRATED | | Unexpected AE_STACK_OVERFLOW for a method call expression with nested calls 263| I | 499 | 7871 | INTEGRATED | | The sequence of evaluating operands of expression with the named objects is violated 264| I | | | | 100 | Crash on re-writing named element of Package 265| I | | | | 100 | The second run to method calculating the IRef-to-String expression is evaluated incorrectly 266| I | | 7874 | FIXED INTEGRATED | | Code of ACPICA which handles AML_NAME_OP as ObjDesc->Reference.Opcode is unused 267| M | | | | 100 | Add the BatchMode with the AcpiTerminate 268| I | | | | 100 | The manner parameters are passed to method in ACPICA contradicts to MS 269| I | | | | 100 | The sequence of evaluating Named object operands passed to method is violated 270| S | | | | 100 | ACPI control method calling convention and MS interpreter don't fit each other 271| I | | | | 100 | CopyObject of Device works incorrectly 272| I | | | | 100 | CopyObject of ThermalZone works incorrectly 273| I | 498 | | | 100 | Implementation of LoadTable operator should take into account its RootPathString parameter 274| I | | | | 100 | Named object as element of Package is handled by ACPICA differently than by MS 275| I | 500 | 7872 | INTEGRATED | | Pop result from bottom principle doesn't work 276| I | | | | 100 | 'Large Reference Count' on AML code with LoadTable/UnLoad in a slack mode 277| I | 501 | | | 100 | Crash of AML interpreter under the specific conditions (see 7466) 278| I | 508 | | | 100 | Namespace location to be relative" functionality of Load operator issue 279| C | 509 | | | 100 | iASL unexpected behavior for the same multiple External 280| C | 516 | | | 100 | iASL can unexpectedly emit the "not accessible" error for Source parameter of CondRefof 281| I | 576 | | | 100 | Normal strings as the LoadTable parameters can cause the matching table to be not found 282| I | 577 | | | 100 | Crash when the Buffer Object parameter of Load is used after an exception in it 283| I | 578 | | | 100 | When the Object parameter of Load is a Field the checksum of the supplied SSDT should be verified 284| I | 579 | | | 100 | An exception should be emitted on Load if the Length field of SSDT exceeds length of its source 285| I | 580 | | | 100 | AE_AML_OPERAND_TYPE unexpectedly occurs when the Handle parameter of Unload is a Method call 286| I | 581 | | | 100 | After an exception the elements of the Package passed to Unload are unexpectedly deleted 287| I | 582 | | | 100 | If any string to match a proper field on LoadTable exceeds field's length an exception should be emitted 288| C | 583 | | | 100 | iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm 289| I | 584 | | | 100 | Search of the table matched Loadtable parameters should be restricted to XSDT 290| I | 586 | | | 100 | AcpiExec is unable to emulate Load from OpRegion 291| C | 587 | | | 100 | iASL inconsistence on compilation of LoadTable with/without the -oa option 292| I | 588 | | | 100 | Different second and third UnLoad execution with the same argument behavior 293| I | 585 | | | 100 | Incorrect zero-length Buffer to String conversion 294| I | 589 | | | 100 | _ERR method can not be evaluated when AE_OWNER_ID_LIMIT is emitted 295| C | 590 | | | 100 | iASL reports the improper "operator has no effect" warning for LoadTable 296| I | 591 | | | 100 | AE_AML_INTERNAL unexpectedly occurs when the Loadtable ParameterData and its Target differ in the types 297| I | | | | 100 | After AE_LIMIT the further work of ACPICA mutex framework looks unstable 298| I | | | FIXED INTEGRATED | | AcpiExOpcode_XA_XT_XR routines assign addresses of released cache objects to WalkState->ResultObj causing further problems 299| I | | | | 100 | Many outstanding allocations on abnormal termination of AcpiDsCallControlMethod 300| I | | | | 100 | Recursive calls to methods with the internal declarations (and Switches) should be provided 301| I | | | | 100 | Recursive calls to methods with the internal declarations (and Switches) causes AE_AML_INTERNAL and crash 302| I | | | | 100 | Scope operation doesn't work for the root node Location 303| I | | | | 100 | Name operation performed from inside the If operation doesn't work for the full-path ObjectName 304| I | | | | 100 | No exception AE_AML_METHOD_LIMIT for the number of method invocations exceeding 255 305| I | | | | 100 | Not owner recursive method call releases global object created by method 306| I | | | | 100 | Complex indirect storing to a LocalX violates the Writing to LocalX Rule |=================================================| | | | The symbol of comment is character '|' in the first position of line of file. | The column-separator symbol is '|'. | | | The contents of fields of the table: | | ========= | COMP - component the bug relates to: | I - AML Interpreter | C - iASL compiler | M - simulation purposes (OS Layer insertions for simulation purposes only) | U - utility | S - specs | ML - memory leak (additional information but not component) | IID - internal ID of bug | LBZID - local bugzilla ID | KBZID - kernel bugzilla ID | PR - priority for fixing the bug. Should be non-empty for each not fixed | bug and empty otherwise: | 1 - will be fixed in the first turn | 2 - will be fixed in the second turn.. | SUMMARY - summary. Short description of bug. | | STATE-MANUALLY - the state of bug set up/confirmed (if needed) manually: | FIXED - bug is fixed. It is to be filled only when there is no | ability to create the relevant bdemo test which shows | the current state of the bug. | REJECTED - not a bug more. Each rejected bug should be confirmed | by this entry here. | INTEGRATED - bug-fix is olready integrated. Each fixed bug should be | confirmed by this entry here that its patch/update is | integrated. | ========= | | | COMMENTS: | | Floating point fix proposed: 29,47 | | About how INTEGRATED was set up: | | (did not check the code update, but only PASS of test): 58,119,169,171 | | About how FIXED was set up: | | checked out visually: 53 | | About how REJECTED was set up: | | 88 -- duplicate of 90 | 170 -- duplicate of 191 | | Specs: | | 37,51,147: | the bugs are filed against specification, so the expected result | is fixing ACPI specification. It should be checked out manually | that the relevant part of specification is actually fixed/updated. | After that write manually INTEGRATED key in the STATE-MANUALLY | column of the relevant bug to confirm completion of bug. Some | these bugs against specs may nevertheless have the relevant bdemo | tests which make use just of the relevant functionality touched | by the part of specification. But nevertheless PASS of these | tests is not enough to set up INTEGRATED for these bugs of specs. acpica-unix-20250404/tests/aslts/src/0000700000175000017500000000000014773714147016607 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/README0000700000175000017500000000067214773714147017477 0ustar ivanhuivanhu CONTENTS source code of tests compilation ASL-compilation control test collection. The tests check ability of ASL compiler to reveal and report incorrect ASL code. No AML code is produces in result. The output of compilation should contain all the expected Error/Warning messages. runtime The tests of these collections are correct ASL codes which should be compiled to AML code and then passed to acpiexec utility.acpica-unix-20250404/tests/aslts/src/runtime/0000700000175000017500000000000014773714160020265 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/README0000700000175000017500000000043514773714160021152 0ustar ivanhuivanhu CONTENTS run-time test collections cntl Files provide the common control of test run, provide the uniform structure of all run-time tests. common Objects of common use which may be useful in more then one test collections particular run-time test collections acpica-unix-20250404/tests/aslts/src/runtime/collections/0000700000175000017500000000000014773714160022603 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/0000700000175000017500000000000014773714153023673 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/README0000700000175000017500000000032614773714153024557 0ustar ivanhuivanhu CONTENTS bug demonstrating and proving bug fixes test collections ACPICA bdemo tests for all bugs encountered and filed against ACPICA. Nevertheless, these tests can be run on any ACPI implementation. acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0000700000175000017500000000000014773714153024613 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0147/0000700000175000017500000000000014773714151025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0147/DECL.asl0000700000175000017500000000412414773714151026420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 147: * * SUMMARY: ProcessorObj Object Type Keyword is not present in ObjectTypeKeyword */ /* Check ProcessorObj */ Method (MF3C, 0, NotSerialized) { Return ("mf3czxcvbnm") } Method (MF3D, 0, NotSerialized) { Local0 = MF3C () If ((Local0 != "mf3czxcvbnm")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "mf3czxcvbnm") } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0147/RUN.asl0000700000175000017500000000361714773714151026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 147", TCLD, 0x93, W017)) { SRMT ("mf3d") MF3D () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0147/MAIN.asl0000700000175000017500000000413214773714151026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B147.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0147/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0147/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemof/0000700000175000017500000000000014773714153026047 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemof/DECL.asl0000700000175000017500000000357514773714153027274 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug-demo tests collection, to be compiled all together as one module * * The test requires utilyzing of * the -f option on the ASL compilation * stage. * * ASL Compiler: * * -f - Ignore errors, force creation of AML output file(s) */ Include("../../../../../runtime/collections/bdemo/ACPICA/0232_F_OPTION/DECL.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemof/RUN.asl0000700000175000017500000000334414773714153027223 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Store("COLLECTION: all bug-demo tests, which require -f option on the ASL compilation stage", Debug) Include("../../../../../runtime/collections/bdemo/ACPICA/0232_F_OPTION/RUN.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemof/MAIN.asl0000700000175000017500000000501114773714153027274 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug-demo collection * * The test requires utilyzing of * the -f option on the ASL compilation * stage. * * ASL Compiler: * * -f - Ignore errors, force creation of AML output file(s) */ DefinitionBlock( "bdemof.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/bdemof/DECL.asl") Method(MAIN) { // Flag of presence of demo-162 test. if (id02) { // Check, register errors and reset the global level execution exception. md7d() } // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/bdemof/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemof/Makefile0000700000175000017500000000016014773714153027507 0ustar ivanhuivanhu# bdemof AMLMOD= bdemof COLL= ../../.. ADD_ASLFLAGS=-f TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0074/0000700000175000017500000000000014773714150025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0074/DECL.asl0000700000175000017500000000433414773714150026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0074: * * SUMMARY: Ones is not equal to 0xFFFFFFFF in 32-bit mode * * COMMENT: * * The demo program shows that Ones * is not equal to 0xFFFFFFFF in 32-bit mode. * * The ComplianceRevision field of demo program should be 2, * but run ASL compiler with “-r 1” option. */ Method (ME0B, 0, NotSerialized) { If (F64) { SKIP () } ElseIf ((Ones != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Ones, 0xFFFFFFFF) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0074/RUN.asl0000700000175000017500000000361614773714150026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 74", TCLD, 0x4A, W017)) { SRMT ("me0b") ME0B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0074/MAIN.asl0000700000175000017500000000413114773714150026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B74.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0074/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0074/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0013/0000700000175000017500000000000014773714147025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0013/DECL.asl0000700000175000017500000000672514773714147026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0013: * * SUMMARY: The type returned by ObjectType for Object created by Create*Field operator is not BufferField */ Method (MDAD, 0, NotSerialized) { Local0 = Buffer (0x64){} CreateBitField (Local0, 0x00, BF00) CreateByteField (Local0, 0x00, BF01) CreateDWordField (Local0, 0x00, BF02) CreateField (Local0, 0x00, 0x20, BF03) CreateField (Local0, 0x00, 0x40, BF04) CreateField (Local0, 0x00, 0x41, BF05) CreateQWordField (Local0, 0x00, BF06) CreateWordField (Local0, 0x00, BF07) Local7 = ObjectType (BF00) If ((Local7 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C016) } Local7 = ObjectType (BF01) If ((Local7 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C016) } Local7 = ObjectType (BF02) If ((Local7 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C016) } Local7 = ObjectType (BF03) If ((Local7 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C016) } Local7 = ObjectType (BF04) If ((Local7 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C016) } Local7 = ObjectType (BF05) If ((Local7 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C016) } Local7 = ObjectType (BF06) If ((Local7 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C016) } Local7 = ObjectType (BF07) If ((Local7 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C016) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0013/RUN.asl0000700000175000017500000000361614773714147026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 13", TCLD, 0x0D, W017)) { SRMT ("mdad") MDAD () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0013/MAIN.asl0000700000175000017500000000413114773714147026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B13.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0013/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0013/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0075/0000700000175000017500000000000014773714150025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0075/DECL.asl0000700000175000017500000003003714773714150026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0075: * * SUMMARY: Each scope of DefinitionBlock should be supplied with its set of _T_x objects * * Compiler should return an error... */ Method (ME0C, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x01) { Local0 = 0x01 } } Switch (ToInteger (Arg0)) { Case (0x02) { Local0 = 0x02 } } Switch (ToInteger (Arg0)) { Case (0x03) { Local0 = 0x03 } } Switch (ToInteger (Arg0)) { Case (0x04) { Local0 = 0x04 } } Switch (ToInteger (Arg0)) { Case (0x05) { Local0 = 0x05 } } Switch (ToInteger (Arg0)) { Case (0x06) { Local0 = 0x06 } } Switch (ToInteger (Arg0)) { Case (0x07) { Local0 = 0x07 } } Switch (ToInteger (Arg0)) { Case (0x08) { Local0 = 0x08 } } Switch (ToInteger (Arg0)) { Case (0x09) { Local0 = 0x09 } } Switch (ToInteger (Arg0)) { Case (0x0A) { Local0 = 0x0A } } Switch (ToInteger (Arg0)) { Case (0x0B) { Local0 = 0x0B } } Switch (ToInteger (Arg0)) { Case (0x0C) { Local0 = 0x0C } } Switch (ToInteger (Arg0)) { Case (0x0D) { Local0 = 0x0D } } Switch (ToInteger (Arg0)) { Case (0x0E) { Local0 = 0x0E } } Switch (ToInteger (Arg0)) { Case (0x0F) { Local0 = 0x0F } } Switch (ToInteger (Arg0)) { Case (0x10) { Local0 = 0x10 } } Switch (ToInteger (Arg0)) { Case (0x11) { Local0 = 0x11 } } Switch (ToInteger (Arg0)) { Case (0x12) { Local0 = 0x12 } } Switch (ToInteger (Arg0)) { Case (0x13) { Local0 = 0x13 } } Switch (ToInteger (Arg0)) { Case (0x14) { Local0 = 0x14 } } Switch (ToInteger (Arg0)) { Case (0x15) { Local0 = 0x15 } } Switch (ToInteger (Arg0)) { Case (0x16) { Local0 = 0x16 } } Switch (ToInteger (Arg0)) { Case (0x17) { Local0 = 0x17 } } Switch (ToInteger (Arg0)) { Case (0x18) { Local0 = 0x18 } } Switch (ToInteger (Arg0)) { Case (0x19) { Local0 = 0x19 } } Switch (ToInteger (Arg0)) { Case (0x1A) { Local0 = 0x1A } } Switch (ToInteger (Arg0)) { Case (0x1B) { Local0 = 0x1B } } Return (Local0) } Method (ME0D, 0, NotSerialized) { Local7 = 0x01 While ((Local7 <= 0x1B)) { Local0 = ME0C (Local7) If ((Local0 != Local7)) { Debug = "Error:" Debug = Local7 } Local7++ } Return (0x00) } /* ////////////////////// */ Method (ME0E, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x01) { Local0 = 0x01 } } Return (Local0) } Method (ME0F, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x02) { Local0 = 0x02 } } Return (Local0) } Method (ME10, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x03) { Local0 = 0x03 } } Return (Local0) } Method (ME11, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x04) { Local0 = 0x04 } } Return (Local0) } Method (ME12, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x05) { Local0 = 0x05 } } Return (Local0) } Method (ME13, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x06) { Local0 = 0x06 } } Return (Local0) } Method (ME14, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x07) { Local0 = 0x07 } } Return (Local0) } Method (ME15, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x08) { Local0 = 0x08 } } Return (Local0) } Method (ME16, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x09) { Local0 = 0x09 } } Return (Local0) } Method (ME17, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x0A) { Local0 = 0x0A } } Return (Local0) } Method (ME18, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x0B) { Local0 = 0x0B } } Return (Local0) } Method (ME19, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x0C) { Local0 = 0x0C } } Return (Local0) } Method (ME1A, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x0D) { Local0 = 0x0D } } Return (Local0) } Method (ME1B, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x0E) { Local0 = 0x0E } } Return (Local0) } Method (ME1C, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x0F) { Local0 = 0x0F } } Return (Local0) } Method (ME1D, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x10) { Local0 = 0x10 } } Return (Local0) } Method (ME1E, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x11) { Local0 = 0x11 } } Return (Local0) } Method (ME1F, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x12) { Local0 = 0x12 } } Return (Local0) } Method (ME20, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x13) { Local0 = 0x13 } } Return (Local0) } Method (ME21, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x14) { Local0 = 0x14 } } Return (Local0) } Method (ME22, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x15) { Local0 = 0x15 } } Return (Local0) } Method (ME23, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x16) { Local0 = 0x16 } } Return (Local0) } Method (ME24, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x17) { Local0 = 0x17 } } Return (Local0) } Method (ME25, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x18) { Local0 = 0x18 } } Return (Local0) } Method (ME26, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x19) { Local0 = 0x19 } } Return (Local0) } Method (ME27, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x1A) { Local0 = 0x1A } } Return (Local0) } Method (ME28, 1, Serialized) { Local0 = 0x0100 Switch (ToInteger (Arg0)) { Case (0x1B) { Local0 = 0x1B } } Return (Local0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0075/RUN.asl0000700000175000017500000000361614773714150026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 75", TCLD, 0x4B, W017)) { SRMT ("me0d") ME0D () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0075/MAIN.asl0000700000175000017500000000413114773714150026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B75.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0075/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0075/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0186/0000700000175000017500000000000014773714151025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0186/DECL.asl0000700000175000017500000001134714773714151026430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 186: * * SUMMARY: The predicate value of If/While operations is implicitly returned in slack mode */ Method (MF6D, 0, Serialized) { Name (FL00, 0x00) Name (I000, 0xABCD0000) Name (I001, 0xABCD0001) Method (M000, 0, Serialized) { Switch (ToInteger (I001 = 0xABCD0000)) { Case (0x00) { If (FL00) { Return (0x00) } } } } Method (M001, 0, NotSerialized) { If (I001 = 0xABCD0001) { If (FL00) { Return (0x00) } } } Method (M002, 0, NotSerialized) { While (I001 = 0xABCD0002) { If (FL00) { Return (0x00) } Break } } /* m000 */ I000 = 0xDDDD0000 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) I000 = M000 () If (SLCK) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /*y901: Predicate generates Implicit Return since ACPICA release 20080926 */ If (Y901) { Local0 = 0x00 } Else { Local0 = 0xABCD0000 } If ((I000 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, Local0) } } Else { CH07 ("", 0x00, 0xFF, 0x00, 0x03, 0x00, 0x00) } /* m001 */ I000 = 0xDDDD0001 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) I000 = M001 () If (SLCK) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /*y901: Predicate generates Implicit Return since ACPICA release 20080926 */ If (Y901) { Local0 = 0x00 } Else { Local0 = 0xABCD0001 } If ((I000 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, Local0) } } Else { CH07 ("", 0x00, 0xFF, 0x00, 0x07, 0x00, 0x00) } /* m002 */ I000 = 0xDDDD0002 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) I000 = M001 () If (SLCK) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /*y901: Predicate generates Implicit Return since ACPICA release 20080926 */ If (Y901) { Local0 = 0x00 } Else { Local0 = 0xABCD0002 } If ((I000 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, Local0) } } Else { CH07 ("", 0x00, 0xFF, 0x00, 0x0B, 0x00, 0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0186/RUN.asl0000700000175000017500000000361714773714151026366 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 186", TCLD, 0xBA, W017)) { SRMT ("mf6d") MF6D () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0186/MAIN.asl0000700000175000017500000000413114773714151026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B186.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0186/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0186/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0061/0000700000175000017500000000000014773714150025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0061/DECL.asl0000700000175000017500000000712414773714150026415 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0061: * * SUMMARY: Crash on Store the OperationRegion result returned by Method * * Methods return the object of type OperationRegion * and just this causes the problems. */ Method (M206, 2, NotSerialized) { If (SLCK) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0x2F, 0x00, __LINE__, 0x00, 0x00) } } Method (ME02, 0, NotSerialized) { Local0 = 0x00 /* Store directly a region should not be allowed. */ /* // Removed 09/2015 CH03("", 0, 0x000, __LINE__, 0) Store(rd01, Local7) m206(0x001, 0x002) */ Return (Local0) } Method (ME03, 0, NotSerialized) { Debug = "============= Start of test" Local0 = ME02 () Debug = "============= Finish of test" } Method (ME04, 0, NotSerialized) { Local0 = 0x00 /* Store directly a region should not be allowed. */ /* // Removed 09/2015 CH03("", 0, 0x003, __LINE__, 0) Store(rd02, Local7) m206(0x004, 0x005) */ Return (Local0) } Method (ME05, 0, NotSerialized) { Debug = "me05, point 0" Local0 = ME04 () Debug = "me05, point 1" Local1 = ME04 () Debug = "me05, point 2" } Method (ME06, 0, NotSerialized) { Debug = "============= me05 0" ME05 () Debug = "============= me05 1" ME05 () Debug = "============= me05 2" ME05 () /* The message below doesn't appear */ Debug = "============= me05 3" ID09 = 0x01 } Method (ME07, 0, NotSerialized) { ID09 = 0x00 ME03 () ME06 () If ((ID09 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID09, 0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0061/RUN.asl0000700000175000017500000000361614773714150026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 61", TCLD, 0x3D, W017)) { SRMT ("me07") ME07 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0061/MAIN.asl0000700000175000017500000000424514773714150026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B61.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0061/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0061/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0240_ACTION_REQUIRED/0000700000175000017500000000000014773714152027534 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0240_ACTION_REQUIRED/DECL.asl0000700000175000017500000001103314773714152030745 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 240: * * SUMMARY: No exception when not owner thread runs Release of Global lock * * Note: * * Run this demo by the Threads debug operation * on two threads (use command). */ Mutex(MX00, 0) Name(i000, 0) // thread 0: succeeded to Acquire Mutex Name(i001, 0) // thread 1: after attempt to Release Mutex Name(cnt0, 0) Name(cnt1, 0) /* * Demo 1: * The expected exception AE_AML_NOT_OWNER doesn't occur when * some thread (thread 1) attempt to Release the Global lock * which is successfully Acquired by another thread (thread 0). * * Thread 0 Acquires the Global lock (\_GL), * then thread 1 attempts to Release that Global lock. * The mentioned exception should arisen there, but in fact - no exception - * the Global lock is successfully Released by another thread (by thread 1). * It is a bug. * * arg0 - Index of current thread */ Method(m032, 1) { While (1) { if (LEqual(arg0, 0)) { Store("Thread 0: start of cycle", Debug) if (LNot(cnt0)) { Store(Acquire(\_GL, 0xffff), Local0) if (Local0) { Store("Thread 0: failed to Acquire GL", Debug) err("", zFFF, __LINE__, 0, 0, 0, 0) } else { Store("Thread 0: succeeded to Acquire GL", Debug) Store(1, i000) } } Increment(cnt0) if (LEqual(cnt0, 20)) { break } } elseif (LEqual(arg0, 1)) { Store("Thread 1: start of cycle", Debug) if (i000) { if (LNot(i001)) { Store("Thread 1: before attempt to Release GL", Debug) Release(\_GL) CH04("", 0, 63, 0, __LINE__, 0, 0) // AE_AML_NOT_OWNER Store("Thread 1: after attempt to Release GL", Debug) Store(1, i001) } } Increment(cnt1) if (LEqual(cnt1, 20)) { break } } else { break } Sleep(100) } } /* * Demo 2: * The expected exception AE_AML_NOT_OWNER occurs when some * thread (thread 1) attempt to Release the usual mutex which * is successfully Acquired by another thread (thread 0). * * Identical to m000 but the usual mutex MX00 is substituted instead of Global lock. * * arg0 - Index of current thread */ Method(m033, 1) { While (1) { if (LEqual(arg0, 0)) { Store("Thread 0: start of cycle", Debug) if (LNot(cnt0)) { Store(Acquire(MX00, 0xffff), Local0) if (Local0) { Store("Thread 0: failed to Acquire MX00", Debug) err("", zFFF, __LINE__, 0, 0, 0, 0) } else { Store("Thread 0: succeeded to Acquire MX00", Debug) Store(1, i000) } } Increment(cnt0) if (LEqual(cnt0, 20)) { break } } elseif (LEqual(arg0, 1)) { Store("Thread 1: start of cycle", Debug) if (i000) { if (LNot(i001)) { Store("Thread 1: before attempt to Release MX00", Debug) Release(MX00) CH04("", 0, 63, 0, __LINE__, 0, 0) // AE_AML_NOT_OWNER Store("Thread 1: after attempt to Release MX00", Debug) Store(1, i001) } } Increment(cnt1) if (LEqual(cnt1, 20)) { break } } else { break } Sleep(100) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0240_ACTION_REQUIRED/RUN.asl0000700000175000017500000000353614773714152030713 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Run printing only on the Control Thread (non-zero Local0). */ if (Local0) { STTT("Demo of bug 240", TCLD, 240, W017) } // Run one of these sub-tests at a time: if (1) { if (Local0) { SRMT("m032") } m032(arg2) } else { if (Local0) { SRMT("m033") } m033(arg2) } if (Local0) { FTTT() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0240_ACTION_REQUIRED/MAIN.asl0000700000175000017500000000553314773714152030772 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B240.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/common.asl") Include("../../../../../runtime/cntl/mt_runpoint.asl") Include("../../../../../runtime/cntl/runmode.asl") Include("../../../../../runtime/cntl/ehandle.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0240_ACTION_REQUIRED/DECL.asl") /* * Arguments passed to MAIN method are these * (MAIN there - the name of method passed to * Threads command of AcpiExec): * * arg0 - number of threads. * arg1 - ID of current thread. * arg2 - Index of current thread inside all participating threads. * The thread of Index 0 is considered as Control Thread. */ Method(MAIN, 3) { /* Non-zero Local0 means the current thread is a Control Thread */ Store(1, Local0) if (arg2) { /* Worker threads */ Store(0, Local0) } else { /* Control thread */ // Initialization STRT(0) } // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0240_ACTION_REQUIRED/RUN.asl") Store(0, Local7) if (Local0) { // Final actions Store(FNSH(), Local7) } return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0145_ASL/0000700000175000017500000000000014773714151025701 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0145_ASL/DECL.asl0000700000175000017500000000346414773714151027123 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 145: * * SUMMARY: The ASL Compiler should report an error for SyncLevel argument of Method outside of range * * Compiler should return error... */ // SyncLevel is outside of valid range 0x0-0xf Method(mf39, 0, Serialized, 16) { Return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0145_ASL/MAIN.asl0000700000175000017500000000402414773714151027131 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B145.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0145_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0185/0000700000175000017500000000000014773714151025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0185/DECL.asl0000700000175000017500000000622014773714151026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 185: * * SUMMARY: In a slack mode Method should implicitly return zero (0) as a default value */ Method (MFC2, 0, Serialized) { Name (FL00, 0x00) Name (I000, 0xABCD0000) Name (I001, 0xABCD0001) Method (M000, 0, NotSerialized) { If (FL00) { Return (0x00) } } Method (M009, 0, NotSerialized) { Method (M000, 0, NotSerialized) { } If (FL00) { Return (0x00) } M000 () } /* m000 */ I000 = 0xDDDD9000 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) I000 = M000 () If (SLCK) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((I000 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x00) } } Else { CH07 ("", 0x00, 0xFF, 0x00, 0x03, 0x00, 0x00) } /* m009 */ I000 = 0xDDDD9000 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) I000 = M009 () If (SLCK) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((I000 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x00) } } Else { CH07 ("", 0x00, 0xFF, 0x00, 0x07, 0x00, 0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0185/RUN.asl0000700000175000017500000000361714773714151026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 185", TCLD, 0xB9, W017)) { SRMT ("mfc2") MFC2 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0185/MAIN.asl0000700000175000017500000000413114773714151026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B185.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0185/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0185/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0107/0000700000175000017500000000000014773714150025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0107/DECL.asl0000700000175000017500000000511414773714150026413 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0107: * * SUMMARY: The ASL Compiler crashes when tries to convert data that can not be converted */ Method (ME6C, 0, NotSerialized) { Local0 = (0x01 < "1234q") Debug = Local0 If ((Local0 != Ones)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Ones) } } Method (ME6D, 0, NotSerialized) { Store (("1234q" + 0x01), Local0) Debug = Local0 If ((Local0 != 0x1235)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1235) } } Method (ME6E, 0, NotSerialized) { Store (~"1234q", Local0) Debug = Local0 If ((Local0 != 0xFFFFFFFFFFFFEDCB)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFFFFFFEDCB) } } Method (ME6F, 0, NotSerialized) { ME6C () ME6D () ME6E () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0107/RUN.asl0000700000175000017500000000361714773714150026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 107", TCLD, 0x6B, W017)) { SRMT ("me6f") ME6F () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0107/MAIN.asl0000700000175000017500000000413114773714150026426 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B107.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0107/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0107/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0123/0000700000175000017500000000000014773714150025175 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0123/DECL.asl0000700000175000017500000000437014773714150026414 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 123: * * SUMMARY: No exception when StartIndex in Match operator is equal to or greater than the size of SourcePackage */ Method (MF05, 0, Serialized) { Name (P000, Package (0x02) { 0x00, 0x01 }) /* a) StartIndex > 0xffffffff */ /* c) Modulo(StartIndex, 0x100000000) < Size. */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = Match (P000, MEQ, 0x01, MEQ, 0x01, 0x0000000100000001) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0123/RUN.asl0000700000175000017500000000401114773714150026341 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 123", TCLD, 0x7B, W017)) { SRMT ("mf05") If (F64) { MF05 () } Else { SKIP () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0123/MAIN.asl0000700000175000017500000000413114773714150026424 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B123.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0123/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0123/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0291_ASL_RUNTIME/0000700000175000017500000000000014773714153027110 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0291_ASL_RUNTIME/DECL.asl0000700000175000017500000000377714773714153030341 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 291: * * SUMMARY: iASL inconsistence on compilation of LoadTable with/without the -oa option */ Device (D291) { Name(PLDT, 0) Method(M000, 1) {Return (Arg0)} Method(T291) { Name(DDBH, 0) Store(LoadTable("OEM1", "", "", "\\", "\\D291.PLDT", Subtract(M000(3), 1)), DDBH) if (LNotEqual(PLDT, 2)) { err("", zFFF, __LINE__, 0, 0, PLDT, 2) return } UnLoad(DDBH) Store("Table unloaded", Debug) } } Method(m291) { \D291.T291() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0291_ASL_RUNTIME/RUN.asl0000700000175000017500000000317414773714153030265 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 291", TCLD, 291, W017)) { SRMT("m291") m291() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0291_ASL_RUNTIME/MAIN.asl0000700000175000017500000000427714773714153030352 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B291.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0291_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0291_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0264/0000700000175000017500000000000014773714152025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0264/DECL.asl0000700000175000017500000001143014773714152026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 264: * * SUMMARY: Crash on re-writing named element of Package */ /* * To be done: * * 1) Do then the bdemo-test for different type element of Package * (not only Integer i000 as now). * * 2) See below: what should be there the result of Store operations? * * 3) After (2) do the relevant tests - writing/rewriting to such type elements of packages. */ Method (M025, 0, NotSerialized) { Method (M000, 0, Serialized) { Name (I000, 0xABCD0000) Name (P000, Package (0x01) { I000 }) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) DerefOf (P000 [0x00]) = 0xABCD0001 /* Specify then what should be there the result of Store operation above? Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0000) } */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M001, 0, Serialized) { Name (I000, 0xABCD0000) Name (P000, Package (0x01) { I000 }) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) DerefOf (Local0 = P000 [0x00]) = 0xABCD0001 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M002, 0, Serialized) { Name (I000, 0xABCD0000) Name (P000, Package (0x01) { I000 }) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = P000 [0x00] DerefOf (Local0) = 0xABCD0001 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M003, 0, Serialized) { Name (I000, 0xABCD0000) Name (P000, Package (0x01) { I000 }) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (P000 [0x00], Local0) DerefOf (Local0) = 0xABCD0001 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M004, 0, Serialized) { Name (I000, 0xABCD0000) Name (P000, Package (0x01) { I000 }) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = Local0 = P000 [0x00] DerefOf (Local0) = 0xABCD0001 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M005, 0, Serialized) { Name (I000, 0xABCD0000) Name (P000, Package (0x01) { I000 }) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = Local0 = P000 [0x00] DerefOf (Local1) = 0xABCD0001 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M006, 0, NotSerialized) { M000 () M001 () M002 () M003 () M004 () M005 () } M006 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0264/RUN.asl0000700000175000017500000000401414773714152026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 264", TCLD, 0x0108, W017)) { SRMT ("m025") If (Y264) { M025 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0264/MAIN.asl0000700000175000017500000000413114773714152026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B264.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0264/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0264/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0177/0000700000175000017500000000000014773714151025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0177/DECL.asl0000700000175000017500000001320314773714151026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 177: * * SUMMARY: Exception BUFFER_LIMIT occurs instead of STRING_LIMIT one */ Method (MF07, 0, Serialized) { Name (I000, 0x01) OperationRegion (R000, SystemMemory, 0x00, I000) Field (R000, ByteAcc, NoLock, Preserve) { F000, 8 } Field (R000, ByteAcc, NoLock, Preserve) { F001, 9 } Name (P000, Package (0x02) { 0x00, 0x01 }) Name (B000, Buffer (0x03) { 0x02, 0x03, 0x04 // ... }) Name (S000, "5678") Name (I001, 0x00) OperationRegion (R001, SystemMemory, 0x0100, 0x0100) Field (R001, ByteAcc, NoLock, Preserve) { BNK0, 2 } BankField (R001, BNK0, 0x04, ByteAcc, NoLock, Preserve) { BKF0, 9 } /* Named */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (P000 [0x02], Local1) CH04 (__METHOD__, 0x01, 0x37, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (B000 [0x03], Local1) CH04 (__METHOD__, 0x01, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (S000 [0x04], Local1) CH04 (__METHOD__, 0x01, 0x3D, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ /* Immediate */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (Index (Package (0x02) { 0x00, 0x01 }, 0x02), Local1) If (Y900) { CH04 (__METHOD__, 0x01, 0x37, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ } Else { CH04 (__METHOD__, 0x00, 0x55, 0x00, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (Index (Buffer (0x03) { 0x02, 0x03, 0x04 // ... }, 0x03), Local1) If (Y900) { CH04 (__METHOD__, 0x01, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ } Else { CH04 (__METHOD__, 0x00, 0x55, 0x00, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (Index ("5678", 0x04), Local1) If (Y900) { CH04 (__METHOD__, 0x01, 0x3D, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ } Else { CH04 (__METHOD__, 0x00, 0x55, 0x00, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Fields */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = F000 /* \MF07.F000 */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = F001 /* \MF07.F001 */ If (Y263) { /* * After the bug 263 fixed we started actually * have there several exceptions: * - on evaluation of f001 stage * - and on Store-to-debug stage * Check opcode of the last exception. */ CH04 (__METHOD__, 0x02, 0x35, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGION_LIMIT */ } Else { CH04 (__METHOD__, 0x00, 0x35, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGION_LIMIT */ } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = BKF0 /* \MF07.BKF0 */ If (Y263) { /* See comment to sub-test above */ CH04 (__METHOD__, 0x02, 0x44, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGISTER_LIMIT */ } Else { CH04 (__METHOD__, 0x00, 0x44, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGISTER_LIMIT */ } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0177/RUN.asl0000700000175000017500000000361714773714151026366 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 177", TCLD, 0xB1, W017)) { SRMT ("mf07") MF07 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0177/MAIN.asl0000700000175000017500000000413114773714151026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B177.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0177/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0177/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0036_ASL/0000700000175000017500000000000014773714147025705 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0036_ASL/DECL.asl0000700000175000017500000000362414773714147027125 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0036: * * SUMMARY: The ASL compiler should reject the VendorShort Resource Descriptor Macro with the out of range bytes number * * ASL compiler should report errors. */ Method(mdcd) { Name (VS00, ResourceTemplate () { VendorShort () {0x00, 0xa2, 0xb3, 0x76, 0xd5, 0xe6, 0xf7, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99} }) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0036_ASL/MAIN.asl0000700000175000017500000000402314773714147027134 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B36.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0036_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0029/0000700000175000017500000000000014773714147025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0029/DECL.asl0000700000175000017500000000666614773714147026441 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0029: * * SUMMARY: Looks, like Sleep (or Wait) spend less time than specified */ Method (MDBF, 2, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Local1 = Timer Sleep (Arg1) Local2 = Timer Local6 = (Local2 - Local1) Local4 = (Arg1 * 0x2710) If ((Local6 < Local4)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local6, Local4) } } Case (0x01) { Local1 = Timer Stall (Arg1) Local2 = Timer Local6 = (Local2 - Local1) Local4 = (Arg1 * 0x0A) If ((Local6 < Local4)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local6, Local4) } } Case (0x02) { Local1 = Timer Wait (ED00, Arg1) Local2 = Timer Local6 = (Local2 - Local1) Local4 = (Arg1 * 0x2710) If ((Local6 < Local4)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local6, Local4) } } } } /* Sleep */ Method (MDC0, 0, NotSerialized) { MDBF (0x00, 0x0A) MDBF (0x00, 0x64) MDBF (0x00, 0x01F4) MDBF (0x00, 0x03E8) MDBF (0x00, 0x07D0) } /* Wait */ Method (MDC1, 0, NotSerialized) { MDBF (0x02, 0x0A) MDBF (0x02, 0x64) MDBF (0x02, 0x03E8) MDBF (0x02, 0x07D0) } Method (MDC2, 0, NotSerialized) { MDC0 () MDC1 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0029/RUN.asl0000700000175000017500000000361614773714147026366 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 29", TCLD, 0x1D, W017)) { SRMT ("mdc2") MDC2 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0029/MAIN.asl0000700000175000017500000000424514773714147026445 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B29.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0029/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0029/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0287/0000700000175000017500000000000014773714152025212 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0287/DECL.asl0000700000175000017500000000615314773714152026432 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 287: * * SUMMARY: If any string to match a proper field on LoadTable exceeds field's length * an exception should be emitted */ Device (D287) { Name (PLDT, 0x00) Method (TST0, 0, NotSerialized) { /* SignatureString is greater than four characters */ LoadTable ("OEMXX", "", "", "", "\\D287.PLDT", 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) If ((PLDT != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, PLDT, 0x00) Return (0x01) } /* OEMIDString is greater than six characters */ LoadTable ("OEM1", "IntelXX", "", "", "\\D287.PLDT", 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) If ((PLDT != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, PLDT, 0x00) Return (0x01) } /* OEMTableID is greater than eight characters */ LoadTable ("OEM1", "", "ManyXXXXX", "", "\\D287.PLDT", 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) If ((PLDT != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, PLDT, 0x00) Return (0x01) } Return (0x00) } } Method (M287, 0, NotSerialized) { \D287.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0287/RUN.asl0000700000175000017500000000362114773714152026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 287", TCLD, 0x011F, W017)) { SRMT ("m287") M287 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0287/MAIN.asl0000700000175000017500000000413114773714152026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B287.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0287/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0287/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0192/0000700000175000017500000000000014773714151025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0192/DECL.asl0000700000175000017500000007513414773714151026431 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 192: * * SUMMARY: Incorrect value of Bank register after storing to its banked field */ Method (MFA4, 0, Serialized) { /* CHK0 (CheckValue, BenchMarkValue, CheckNum) */ Method (CHK0, 3, NotSerialized) { If ((Arg0 != Arg1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Arg1) } } /* 8-bit Bank field */ Method (M010, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (R000, BNK0, 0x00, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, 0x01, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x00) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x01) CHK0 (BF00, 0x87, 0x02) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x03) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x04) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x05) CHK0 (BF01, 0x96, 0x06) /* Deal with 0xFF-th bank layout: */ BNK0 = 0xFF CHK0 (BNK0, 0xFF, 0x07) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x08) BFFF = 0xC3 CHK0 (BNK0, 0xFF, 0x09) CHK0 (BFFF, 0xC3, 0x0A) } /* 16-bit Bank field */ Method (M011, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, WordAcc, NoLock, Preserve) { BNK0, 16 } BankField (R000, BNK0, 0x00, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, 0x01, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, 0xFFFF, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x0B) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x0C) CHK0 (BF00, 0x87, 0x0D) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x0E) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x0F) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x10) CHK0 (BF01, 0x96, 0x11) /* Deal with 0xFFFF-th bank layout: */ BNK0 = 0xFFFF CHK0 (BNK0, 0xFFFF, 0x12) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x13) BFFF = 0xC3 CHK0 (BNK0, 0xFFFF, 0x14) CHK0 (BFFF, 0xC3, 0x15) } /* 32-bit Bank field */ Method (M012, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, DWordAcc, NoLock, Preserve) { BNK0, 32 } BankField (R000, BNK0, 0x00, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, 0x01, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, 0xFFFFFFFF, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x16) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x17) CHK0 (BF00, 0x87, 0x18) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x19) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x1A) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x1B) CHK0 (BF01, 0x96, 0x1C) /* Deal with 0xFFFFFFFF-th bank layout: */ BNK0 = 0xFFFFFFFF CHK0 (BNK0, 0xFFFFFFFF, 0x1D) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x1E) BFFF = 0xC3 CHK0 (BNK0, 0xFFFFFFFF, 0x1F) CHK0 (BFFF, 0xC3, 0x20) } /* 33-bit Bank field and QWordAcc */ Method (M013, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, QWordAcc, NoLock, Preserve) { BNK0, 33 } BankField (R000, BNK0, 0x00000001FFFFFFFF, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0x1FFFFFFFF-th bank layout: */ BNK0 = 0x00000001FFFFFFFF CHK0 (BNK0, 0x00000001FFFFFFFF, 0x21) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x22) BFFF = 0xC3 CHK0 (BNK0, 0x00000001FFFFFFFF, 0x23) CHK0 (BFFF, 0xC3, 0x24) } /* BankValues set up with Integer Constants */ Method (M001, 0, NotSerialized) { /* 8-bit Bank field */ M010 () /* 16-bit Bank field */ M011 () /* 32-bit Bank field */ M012 () /* 33-bit Bank field and QWordAcc */ If (Y215) { M013 () } } /* BankValues set up with Named Integers */ Name (I000, 0x00) Name (I001, 0x01) Name (I002, 0xFF) Name (I003, 0xFFFF) Name (I004, 0xFFFFFFFF) Name (I005, 0x00000001FFFFFFFF) /* 8-bit Bank field */ Method (M020, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (R000, BNK0, I000, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, I001, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, I002, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x25) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x01) CHK0 (BF00, 0x87, 0x26) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x27) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x28) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x29) CHK0 (BF01, 0x96, 0x2A) /* Deal with 0xFF-th bank layout: */ BNK0 = 0xFF CHK0 (BNK0, 0xFF, 0x2B) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x2C) BFFF = 0xC3 CHK0 (BNK0, 0xFF, 0x2D) CHK0 (BFFF, 0xC3, 0x2E) } /* 16-bit Bank field */ Method (M021, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, WordAcc, NoLock, Preserve) { BNK0, 16 } BankField (R000, BNK0, I000, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, I001, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, I003, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x2F) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x30) CHK0 (BF00, 0x87, 0x31) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x32) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x33) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x34) CHK0 (BF01, 0x96, 0x35) /* Deal with 0xFFFF-th bank layout: */ BNK0 = 0xFFFF CHK0 (BNK0, 0xFFFF, 0x36) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x13) BFFF = 0xC3 CHK0 (BNK0, 0xFFFF, 0x37) CHK0 (BFFF, 0xC3, 0x38) } /* 32-bit Bank field */ Method (M022, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, DWordAcc, NoLock, Preserve) { BNK0, 32 } BankField (R000, BNK0, I000, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, I001, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, I004, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x39) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x3A) CHK0 (BF00, 0x87, 0x3B) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x3C) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x3E) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x3F) CHK0 (BF01, 0x96, 0x40) /* Deal with 0xFFFFFFFF-th bank layout: */ BNK0 = 0xFFFFFFFF CHK0 (BNK0, 0xFFFFFFFF, 0x41) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x42) BFFF = 0xC3 CHK0 (BNK0, 0xFFFFFFFF, 0x43) CHK0 (BFFF, 0xC3, 0x44) } /* 33-bit Bank field and QWordAcc */ Method (M023, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, QWordAcc, NoLock, Preserve) { BNK0, 33 } BankField (R000, BNK0, I005, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0x1FFFFFFFF-th bank layout: */ BNK0 = 0x00000001FFFFFFFF CHK0 (BNK0, 0x00000001FFFFFFFF, 0x45) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x4E) BFFF = 0xC3 CHK0 (BNK0, 0x00000001FFFFFFFF, 0x46) CHK0 (BFFF, 0xC3, 0x47) } /* BankValues set up with Named Integers */ Method (M002, 0, NotSerialized) { /* 8-bit Bank field */ M020 () /* 16-bit Bank field */ M021 () /* 32-bit Bank field */ M022 () /* 33-bit Bank field and QWordAcc */ If (Y215) { M023 () } } /* BankValues set up with LocalX */ /* 8-bit Bank field */ Method (M030, 0, Serialized) { Local0 = 0x00 Local1 = 0x01 Local2 = 0xFF OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (R000, BNK0, Local0, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, Local1, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, Local2, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x48) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x49) CHK0 (BF00, 0x87, 0x4A) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x4B) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x4C) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x4E) CHK0 (BF01, 0x96, 0x4F) /* Deal with 0xFF-th bank layout: */ BNK0 = 0xFF CHK0 (BNK0, 0xFF, 0x50) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x08) BFFF = 0xC3 CHK0 (BNK0, 0xFF, 0x51) CHK0 (BFFF, 0xC3, 0x52) } /* 16-bit Bank field */ Method (M031, 0, Serialized) { Local0 = 0x00 Local1 = 0x01 Local3 = 0xFFFF OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, WordAcc, NoLock, Preserve) { BNK0, 16 } BankField (R000, BNK0, Local0, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, Local1, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, Local3, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x53) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x54) CHK0 (BF00, 0x87, 0x55) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x56) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x57) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x58) CHK0 (BF01, 0x96, 0x59) /* Deal with 0xFFFF-th bank layout: */ BNK0 = 0xFFFF CHK0 (BNK0, 0xFFFF, 0x5A) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x5B) BFFF = 0xC3 CHK0 (BNK0, 0xFFFF, 0x5C) CHK0 (BFFF, 0xC3, 0x5D) } /* 32-bit Bank field */ Method (M032, 0, Serialized) { Local0 = 0x00 Local1 = 0x01 Local4 = 0xFFFFFFFF OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, DWordAcc, NoLock, Preserve) { BNK0, 32 } BankField (R000, BNK0, Local0, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, Local1, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, Local4, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x5E) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x5F) CHK0 (BF00, 0x87, 0x60) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x61) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x62) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x63) CHK0 (BF01, 0x96, 0x64) /* Deal with 0xFFFFFFFF-th bank layout: */ BNK0 = 0xFFFFFFFF CHK0 (BNK0, 0xFFFFFFFF, 0x65) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x66) BFFF = 0xC3 CHK0 (BNK0, 0xFFFFFFFF, 0x67) CHK0 (BFFF, 0xC3, 0x68) } /* 33-bit Bank field and QWordAcc */ Method (M033, 0, Serialized) { Local5 = 0x00000001FFFFFFFF OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, QWordAcc, NoLock, Preserve) { BNK0, 33 } BankField (R000, BNK0, Local5, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0x1FFFFFFFF-th bank layout: */ BNK0 = 0x00000001FFFFFFFF CHK0 (BNK0, 0x00000001FFFFFFFF, 0x69) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x6A) BFFF = 0xC3 CHK0 (BNK0, 0x00000001FFFFFFFF, 0x6B) CHK0 (BFFF, 0xC3, 0x6C) } /* BankValues set up with LocalX */ Method (M003, 0, NotSerialized) { /* 8-bit Bank field */ M030 () /* 16-bit Bank field */ M031 () /* 32-bit Bank field */ M032 () /* 33-bit Bank field and QWordAcc */ If (Y215) { M033 () } } /* BankValues set up with ArgX */ /* 8-bit Bank field */ Method (M040, 3, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (R000, BNK0, Arg0, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, Arg1, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x6E) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x6F) CHK0 (BF00, 0x87, 0x70) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x71) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x72) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x73) CHK0 (BF01, 0x96, 0x74) /* Deal with 0xFF-th bank layout: */ BNK0 = 0xFF CHK0 (BNK0, 0xFF, 0x75) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x76) BFFF = 0xC3 CHK0 (BNK0, 0xFF, 0x77) CHK0 (BFFF, 0xC3, 0x78) } /* 16-bit Bank field */ Method (M041, 3, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, WordAcc, NoLock, Preserve) { BNK0, 16 } BankField (R000, BNK0, Arg0, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, Arg1, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x79) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x7A) CHK0 (BF00, 0x87, 0x7B) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x7C) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x7E) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x7F) CHK0 (BF01, 0x96, 0x80) /* Deal with 0xFFFF-th bank layout: */ BNK0 = 0xFFFF CHK0 (BNK0, 0xFFFF, 0x81) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x82) BFFF = 0xC3 CHK0 (BNK0, 0xFFFF, 0x83) CHK0 (BFFF, 0xC3, 0x84) } /* 32-bit Bank field */ Method (M042, 3, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, DWordAcc, NoLock, Preserve) { BNK0, 32 } BankField (R000, BNK0, Arg0, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, Arg1, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x85) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x86) CHK0 (BF00, 0x87, 0x87) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x88) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x89) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x8A) CHK0 (BF01, 0x96, 0x8B) /* Deal with 0xFFFFFFFF-th bank layout: */ BNK0 = 0xFFFFFFFF CHK0 (BNK0, 0xFFFFFFFF, 0x8C) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x8D) BFFF = 0xC3 CHK0 (BNK0, 0xFFFFFFFF, 0x8E) CHK0 (BFFF, 0xC3, 0x8F) } /* 33-bit Bank field and QWordAcc */ Method (M043, 1, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, QWordAcc, NoLock, Preserve) { BNK0, 33 } BankField (R000, BNK0, Arg0, ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0x1FFFFFFFF-th bank layout: */ BNK0 = 0x00000001FFFFFFFF CHK0 (BNK0, 0x00000001FFFFFFFF, 0x90) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x91) BFFF = 0xC3 CHK0 (BNK0, 0x00000001FFFFFFFF, 0x92) CHK0 (BFFF, 0xC3, 0x93) } /* BankValues set up with ArgX */ Method (M004, 0, NotSerialized) { /* 8-bit Bank field */ M040 (0x00, 0x01, 0xFF) /* 16-bit Bank field */ M041 (0x00, 0x01, 0xFFFF) /* 32-bit Bank field */ M042 (0x00, 0x01, 0xFFFFFFFF) /* 33-bit Bank field and QWordAcc */ If (Y215) { M043 (0x00000001FFFFFFFF) } } /* BankValues set up with Expressions */ /* 8-bit Bank field */ Method (M050, 3, Serialized) { Local0 = 0x00 Local1 = 0x01 OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (R000, BNK0, (Arg0 + Local0), ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, (Arg1 + 0x01), ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, (Arg2 + Local1), ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x94) BF00 = 0x87 CHK0 (BNK0, 0x00, 0x95) CHK0 (BF00, 0x87, 0x96) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0x97) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x98) BF01 = 0x96 CHK0 (BNK0, 0x01, 0x99) CHK0 (BF01, 0x96, 0x9A) /* Deal with 0xFF-th bank layout: */ BNK0 = 0xFF CHK0 (BNK0, 0xFF, 0x9B) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x9C) BFFF = 0xC3 CHK0 (BNK0, 0xFF, 0x9D) CHK0 (BFFF, 0xC3, 0x9E) } /* 16-bit Bank field */ Method (M051, 3, Serialized) { Local0 = 0x00 Local1 = 0x01 OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, WordAcc, NoLock, Preserve) { BNK0, 16 } BankField (R000, BNK0, (Arg0 + Local0), ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, (Arg1 + Local1), ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, (Arg2 + 0x01), ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0x9F) BF00 = 0x87 CHK0 (BNK0, 0x00, 0xA0) CHK0 (BF00, 0x87, 0xA1) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0xA2) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0xA3) BF01 = 0x96 CHK0 (BNK0, 0x01, 0xA4) CHK0 (BF01, 0x96, 0xA5) /* Deal with 0xFFFF-th bank layout: */ BNK0 = 0xFFFF CHK0 (BNK0, 0xFFFF, 0xA6) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0xA7) BFFF = 0xC3 CHK0 (BNK0, 0xFFFF, 0xA8) CHK0 (BFFF, 0xC3, 0xA9) } /* 32-bit Bank field */ Method (M052, 3, Serialized) { Local0 = 0x00 Local1 = 0x01 OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, DWordAcc, NoLock, Preserve) { BNK0, 32 } BankField (R000, BNK0, (Arg0 + Local0), ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, (Arg1 + Local1), ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } BankField (R000, BNK0, (Arg2 + 0x01), ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 CHK0 (BNK0, 0x00, 0xAA) BF00 = 0x87 CHK0 (BNK0, 0x00, 0xAB) CHK0 (BF00, 0x87, 0xAC) /* Deal with 1-th bank layout: */ BNK0 = 0x01 CHK0 (BNK0, 0x01, 0xAD) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0xAE) BF01 = 0x96 CHK0 (BNK0, 0x01, 0xAF) CHK0 (BF01, 0x96, 0xB0) /* Deal with 0xFFFFFFFF-th bank layout: */ BNK0 = 0xFFFFFFFF CHK0 (BNK0, 0xFFFFFFFF, 0xB1) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0xB2) BFFF = 0xC3 CHK0 (BNK0, 0xFFFFFFFF, 0xB3) CHK0 (BFFF, 0xC3, 0xB4) } /* 33-bit Bank field and QWordAcc */ Method (M053, 1, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, QWordAcc, NoLock, Preserve) { BNK0, 33 } BankField (R000, BNK0, (Arg0 + 0x01), ByteAcc, NoLock, Preserve) { Offset (0x12), BFFF, 8 } /* Deal with 0x1FFFFFFFF-th bank layout: */ BNK0 = 0x00000001FFFFFFFF CHK0 (BNK0, 0x00000001FFFFFFFF, 0xB5) BNK0 = 0x00 CHK0 (BNK0, 0x00, 0xB6) BFFF = 0xC3 CHK0 (BNK0, 0x00000001FFFFFFFF, 0xB7) CHK0 (BFFF, 0xC3, 0xB8) } /* BankValues set up with Expressions */ Method (M005, 0, NotSerialized) { /* 8-bit Bank field */ M050 (0x00, 0x00, 0xFE) /* 16-bit Bank field */ M051 (0x00, 0x00, 0xFFFE) /* 32-bit Bank field */ M052 (0x00, 0x00, 0xFFFFFFFE) /* 33-bit Bank field and QWordAcc */ If (Y215) { M053 (0x00000001FFFFFFFE) } } Debug = "BankValues set up with Integer Constants" M001 () Debug = "BankValues set up with Named Integers" M002 () Debug = "BankValues set up with LocalX" M003 () Debug = "BankValues set up with ArgX" M004 () Debug = "BankValues set up with Expressions" M005 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0192/RUN.asl0000700000175000017500000000361714773714151026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 192", TCLD, 0xC0, W017)) { SRMT ("mfa4") MFA4 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0192/MAIN.asl0000700000175000017500000000413114773714151026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B192.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0192/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0192/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0167/0000700000175000017500000000000014773714151025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0167/DECL.asl0000700000175000017500000002133314773714151026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 167: * * SUMMARY: Manipulation test PASS but started reporting suspicious diagnostic * * Check that messages doesn't occur... * but since it was due to the incorrect size of Package * generated in that case we do this test as runtime test * (but not ACTION_REQUIRED type). * * NOTE: checking of AE_AML_METHOD_LIMIT limits (32 and 256) * should be performed in a separate tests (see plan/addition). * * This is regression. * It did not take place earlier. * Our test (manipulation) results in PASS, and no exceptions, * but some diagnostic information is suspicious (see below). * The anomalies are revealed by the test package.asl, * methods m1f3 and m203. See attachment. * ......... */ /* gr1.asl */ Method (MF54, 0, Serialized) { Name (P000, Package (0x0100) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x0100 }) Local0 = SizeOf (P000) If ((Local0 != 0x0100)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0100) } Else { Local1 = 0x01 Local2 = 0x00 While (Local0) { Local3 = DerefOf (P000 [Local2]) If ((Local3 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local3, Local1) Break } Local0-- Local1++ Local2++ } If (!Local0) { Debug = "Ok" } } } /* gr2.asl */ Method (MF55, 1, NotSerialized) { If (Arg0) { Return ((Arg0 * MF55 ((Arg0 - 0x01)))) } Else { Return (0x01) } } Method (MF56, 0, NotSerialized) { Debug = "mf55(4):" MF55 (0x04) Debug = "mf55(25):" MF55 (0x19) } /* gr3.asl */ Method (MF57, 0, Serialized) { Name (I000, 0x00) Method (MM00, 1, NotSerialized) { I000++ If (Arg0) { MM01 () } } Method (MM01, 0, NotSerialized) { MM00 (0x00) } I000 = 0x00 MM00 (0x00) If ((I000 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x01) } I000 = 0x00 MM00 (0x01) If ((I000 != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x02) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0167/RUN.asl0000700000175000017500000000375314773714151026366 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 167", TCLD, 0xA7, W017)) { SRMT ("mf54") MF54 () SRMT ("mf56") MF56 () SRMT ("mf57") MF57 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0167/MAIN.asl0000700000175000017500000000413214773714151026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B167.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0167/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0167/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0275/0000700000175000017500000000000014773714152025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0275/DECL.asl0000700000175000017500000000626214773714152026430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 275: * * SUMMARY: pop result from bottom principle doesn't work */ Method (MC75, 0, Serialized) { Name (I000, 0x11000000) Name (I001, 0x00220000) Name (P000, Package (0x03) { 0xABCD0000, 0xABCD0001, 0xABCD0002 }) Method (M000, 0, NotSerialized) { Return (P000) /* \MC75.P000 */ } Method (M001, 1, NotSerialized) { Return (0xABCD0003) } Method (M002, 2, NotSerialized) { Local0 = Arg0 [0x01] If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x01)) { Return (Zero) } Local1 = DerefOf (Local0) If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x01)) { Return (Zero) } If ((Local1 != 0xABCD0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0xABCD0001) } Return (Zero) } /* ################################## How it should work */ /* ================================== Example 0: */ M002 (P000, 0xABCD0004) /* ================================== Example 1: */ M002 (M000 (), 0xABCD0004) /* ================================== Example 2: */ M002 (P000, M001 ((I000 + I001))) /* ################################## How it actually works: */ M002 (M000 (), M001 ((I000 + I001))) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0275/RUN.asl0000700000175000017500000000362114773714152026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 275", TCLD, 0x0113, W017)) { SRMT ("mc75") MC75 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0275/MAIN.asl0000700000175000017500000000413114773714152026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B275.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0275/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0275/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0277_ACTION_REQUIRED/0000700000175000017500000000000014773714152027546 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0277_ACTION_REQUIRED/Info.txt0000700000175000017500000000471714773714152031216 0ustar ivanhuivanhuSUMMARY: Crash of AML interpreter under the specific conditions (see 7466) See bug -- 7466 (weird battery charge level reported) and its DSDT. Evaluation of its \_SB.BAT0._BST method in multi-threading mode results in failure. >-----Original Message----- >From: Lebedev, Vladimir P >Sent: Monday, December 25, 2006 3:42 PM >To: Starikovskiy, Alexey Y >Subject: RE: [Bug 7466] weird battery charge level reported - ACPI Error method parse / execution failed CPU:    0 EIP:    0060:[]    Not tainted VLI EFLAGS: 00010282   (2.6.19-gentoo-r2 #1) EIP is at acpi_ex_store+0x138/0x245 eax: 00000000   ebx: dee12c7c   ecx: 00000000   edx: 00000000 esi: 00000000   edi: 00000000   ebp: dc90a2a4   esp: dd139d74 ds: 007b   es: 007b   ss: 0068 Process cat (pid: 5916, ti=dd138000 task=de114070 task.ti=dd138000) Stack: c0212461 deba5c00 deba5c00 00000080 c0212cf6 dee12c7c 00000000 deba5d80        deba5d80 deba5c00 c020758b 00000014 00000000 00000003 00000002 deba5c00        00880000 00000088 deba5d80 00000004 00000000 dee12c7c deba5c00 00000000 Call Trace:  [] acpi_ut_update_object_reference+0xbc/0x123  [] acpi_ut_create_internal_object_dbg+0x15/0x67  [] acpi_ex_opcode_2A_1T_1R+0x374/0x3a0  [] acpi_ds_exec_end_op+0xc2/0x3d1  [] acpi_ps_get_next_simple_arg+0xe3/0xed  [] acpi_ps_append_arg+0x16/0x75  [] acpi_ps_parse_loop+0x5bd/0x8d8  [] acpi_ps_parse_aml+0x60/0x205  [] acpi_ds_init_aml_walk+0xb4/0xfe  [] acpi_ps_execute_pass+0x7d/0x90  [] acpi_ps_execute_method+0xc8/0x157  [] acpi_ns_evaluate+0x9d/0xfc  [] acpi_evaluate_object+0x120/0x1ca  [] seq_open+0x4d/0x63  [] acpi_battery_get_info+0x6e/0x180  [] cp_new_stat64+0xfc/0x10e  [] acpi_battery_read_info+0x3b/0x253  [] seq_read+0xe7/0x274  [] sys_fstat64+0x1e/0x23  [] seq_read+0x0/0x274  [] vfs_read+0xa6/0x157  [] sys_read+0x41/0x67  [] sysenter_past_esp+0x56/0x79  ======================= From: Podrezov, Valery A Sent: Monday, December 25, 2006 7:14 PM To: Lebedev, Vladimir P; Starikovskiy, Alexey Y; Suietov, Fiodor F Subject: RE: [Bug 7466] weird battery charge level reported - ACPI Error method parse / execution failed It is ours. I submitted bug into our local Bugzilla (you are not registered in it): Bug 501, Crash of AML interpreter under the specific conditions (see 7466) Thanks  Valery acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0253_DEMO_IMPOSSIBLE/0000700000175000017500000000000014773714152027535 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0253_DEMO_IMPOSSIBLE/DECL.asl0000700000175000017500000000326114773714152030752 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 253: * * SUMMARY: Option -b of AcpiExec should be generalized to run any command of ACPICA debugger in a Batch mode */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0092/0000700000175000017500000000000014773714150025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0092/DECL.asl0000700000175000017500000001057214773714150026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0092: * * SUMMARY: Invalid result of Index operator passed with the immediate image of Package */ Method (ME40, 1, Serialized) { Name (P000, Package (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }) If ((Arg0 == 0x00)) { Debug = "Package as a named object:" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = DerefOf (P000 [0x05]) If ((Local0 != 0x06)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x06) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } ElseIf ((Arg0 == 0x01)) { Debug = "The same Package but substituted immediately:" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (Index (Package (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }, 0x05), Local1) If (Y900) { Local0 = DerefOf (Local1) If ((Local0 != 0x06)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x06) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } Else { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = DerefOf (Index (Package (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }, 0x05)) If (Y900) { If ((Local0 != 0x06)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x06) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } } Method (ME41, 0, NotSerialized) { /* 0,1 - success, 2 - crash */ ME40 (0x00) ME40 (0x01) ME40 (0x02) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0092/RUN.asl0000700000175000017500000000361614773714150026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 92", TCLD, 0x5C, W017)) { SRMT ("me41") ME41 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0092/MAIN.asl0000700000175000017500000000413114773714150026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B92.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0092/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0092/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0002/0000700000175000017500000000000014773714147025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0002/DECL.asl0000700000175000017500000000444614773714147026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0002: * * SUMMARY: The elseif operator works incorrectly */ Method (MD9C, 0, NotSerialized) { Local0 = 0x55555555 Local1 = 0x11111111 If ((Local1 == 0x00)) { Local0 = 0x00 } ElseIf ((Local1 <= 0x03)) { Local0 = 0x01 If ((Local1 == 0x02)) { Local0 = 0x02 } Else { Local0 = 0x03 } } If ((Local0 != 0x55555555)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x55555555) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0002/RUN.asl0000700000175000017500000000361514773714147026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 2", TCLD, 0x02, W017)) { SRMT ("md9c") MD9C () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0002/MAIN.asl0000700000175000017500000000413114773714147026426 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B2.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0002/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0002/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0257/0000700000175000017500000000000014773714152025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0257/DECL.asl0000700000175000017500000001014314773714152026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 257: * * SUMMARY: Unexpected AE_AML_OPERAND_TYPE when the Object in Load is a Region Field */ /* * Original source code: DefinitionBlock("ssdt.aml", "SSDT", 0x02, "Intel", "Many", 0x00000001) { Device(AUXD) { Method(M000) { Return ("\\AUXD.M000 ()") } } } */ Name (B257, Buffer (0x42) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x42, 0x00, 0x00, 0x00, // SSDTB... /* 0008 */ 0x02, 0x81, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x11, 0x10, 0x06, 0x20, 0x5B, 0x82, 0x1C, 0x41, // ... [..A /* 0028 */ 0x55, 0x58, 0x44, 0x14, 0x16, 0x4D, 0x30, 0x30, // UXD..M00 /* 0030 */ 0x30, 0x00, 0xA4, 0x0D, 0x5C, 0x41, 0x55, 0x58, // 0...\AUX /* 0038 */ 0x44, 0x2E, 0x4D, 0x30, 0x30, 0x30, 0x20, 0x28, // D.M000 ( /* 0040 */ 0x29, 0x00 // ). }) Name (H257, 0x00) OperationRegion (R257, SystemMemory, 0x00, 0x42) Field (R257, ByteAcc, NoLock, Preserve) { F257, 528 } Method (M17D, 0, NotSerialized) { External (\AUXD.M000, UnknownObj) F257 = B257 /* \B257 */ If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) Return (Zero) } If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } Load (F257, H257) /* \H257 */ If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } If (CondRefOf (\AUXD, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x00) Return (Zero) } Local1 = ObjectType (Local0) If ((Local1 != 0x06)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x06) Return (Zero) } Local0 = ObjectType (\AUXD.M000) If ((Local0 != 0x08)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x08) Return (Zero) } Unload (H257) If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0257/RUN.asl0000700000175000017500000000362114773714152026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 257", TCLD, 0x0101, W017)) { SRMT ("m17d") M17D () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0257/MAIN.asl0000700000175000017500000000413114773714152026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B257.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0257/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0257/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0259/0000700000175000017500000000000014773714152025211 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0259/DECL.asl0000700000175000017500000001245714773714152026435 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 259: * * SUMMARY: _REG method execution during Load operator processing issue */ Name (B259, Buffer (0xD1) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0xD1, 0x00, 0x00, 0x00, // SSDT.... /* 0008 */ 0x02, 0xE1, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x11, 0x10, 0x06, 0x20, 0x5B, 0x82, 0x4B, 0x0A, // ... [.K. /* 0028 */ 0x41, 0x55, 0x58, 0x44, 0x5B, 0x80, 0x4F, 0x50, // AUXD[.OP /* 0030 */ 0x52, 0x30, 0x80, 0x0A, 0x00, 0x0A, 0x04, 0x5B, // R0.....[ /* 0038 */ 0x81, 0x0B, 0x4F, 0x50, 0x52, 0x30, 0x03, 0x52, // ..OPR0.R /* 0040 */ 0x46, 0x30, 0x30, 0x20, 0x08, 0x52, 0x45, 0x47, // F00 .REG /* 0048 */ 0x43, 0xFF, 0x08, 0x52, 0x45, 0x47, 0x50, 0x0A, // C..REGP. /* 0050 */ 0x00, 0x14, 0x33, 0x5F, 0x52, 0x45, 0x47, 0x02, // ..3_REG. /* 0058 */ 0x70, 0x0D, 0x5C, 0x41, 0x55, 0x58, 0x44, 0x2E, // p.\AUXD. /* 0060 */ 0x5F, 0x52, 0x45, 0x47, 0x3A, 0x00, 0x5B, 0x31, // _REG:.[1 /* 0068 */ 0x70, 0x68, 0x5B, 0x31, 0x70, 0x69, 0x5B, 0x31, // ph[1pi[1 /* 0070 */ 0xA0, 0x14, 0x93, 0x68, 0x0A, 0x80, 0x70, 0x52, // ...h..pR /* 0078 */ 0x45, 0x47, 0x43, 0x52, 0x45, 0x47, 0x50, 0x70, // EGCREGPp /* 0080 */ 0x69, 0x52, 0x45, 0x47, 0x43, 0x14, 0x4B, 0x04, // iREGC.K. /* 0088 */ 0x41, 0x43, 0x43, 0x30, 0x00, 0x70, 0x0D, 0x5C, // ACC0.p.\ /* 0090 */ 0x41, 0x55, 0x58, 0x44, 0x2E, 0x41, 0x43, 0x43, // AUXD.ACC /* 0098 */ 0x30, 0x3A, 0x00, 0x5B, 0x31, 0x70, 0x52, 0x46, // 0:.[1pRF /* 00A0 */ 0x30, 0x30, 0x5B, 0x31, 0x70, 0x52, 0x45, 0x47, // 00[1pREG /* 00A8 */ 0x50, 0x5B, 0x31, 0xA0, 0x25, 0x92, 0x93, 0x52, // P[1.%..R /* 00B0 */ 0x45, 0x47, 0x43, 0x0A, 0x01, 0x70, 0x0D, 0x45, // EGC..p.E /* 00B8 */ 0x72, 0x72, 0x6F, 0x72, 0x3A, 0x20, 0x52, 0x45, // rror: RE /* 00C0 */ 0x47, 0x43, 0x20, 0x21, 0x3D, 0x20, 0x31, 0x00, // GC != 1. /* 00C8 */ 0x5B, 0x31, 0x70, 0x52, 0x45, 0x47, 0x43, 0x5B, // [1pREGC[ /* 00D0 */ 0x31 // 1 }) Name (H259, 0x00) OperationRegion (R259, SystemMemory, 0x00, 0xD1) Field (R259, ByteAcc, NoLock, Preserve) { F259, 1672 } Method (M17F, 0, NotSerialized) { External (\AUXD.REGC, UnknownObj) F259 = B259 /* \B259 */ If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) Return (Zero) } If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } Load (R259, H259) /* \H259 */ If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } If (CondRefOf (\AUXD, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x00) Return (Zero) } Local1 = ObjectType (Local0) If ((Local1 != 0x06)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x06) Return (Zero) } Local0 = \AUXD.REGC /* External reference */ If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) Return (Zero) } Unload (H259) If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0259/RUN.asl0000700000175000017500000000362114773714152026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 259", TCLD, 0x0103, W017)) { SRMT ("m17f") M17F () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0259/MAIN.asl0000700000175000017500000000413114773714152026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B259.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0259/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0259/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0259/ssdt.asl0000700000175000017500000000133114773714152026670 0ustar ivanhuivanhuDefinitionBlock( "ssdt.aml", // Output filename "SSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Device (AUXD) { OperationRegion (OPR0, 0x80, 0x00, 0x4) Field (OPR0, DWordAcc, NoLock, Preserve) { RF00, 32} Name (REGC, Ones) Name (REGP, 0) Method(_REG, 2) { Store("\\AUXD._REG:", Debug) Store(arg0, Debug) Store(arg1, Debug) if (LEqual(arg0, 0x80)) { Store(REGC, REGP) Store(arg1, REGC) } } Method(ACC0) { Store("\\AUXD.ACC0:", Debug) Store(RF00, Debug) Store(REGP, Debug) if (LNotEqual(REGC, 1)) { Store("Error: REGC != 1", Debug) Store(REGC, Debug) } } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0120/0000700000175000017500000000000014773714150025172 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0120/DECL.asl0000700000175000017500000001126114773714150026406 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 120: * * SUMMARY: Unexpected exception on Store of Device and ThermalZone elements of Package to Debug operation */ Method (MF64, 0, Serialized) { Name (PP00, Package (0x01) { PRD2 }) Local0 = PP00 [0x00] Debug = ObjectType (Local0) Debug = DerefOf (Local0) Local1 = ObjectType (Local0) If ((Local1 != C014)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C014) } } Method (MF65, 0, Serialized) { Name (PP00, Package (0x01) { RD07 }) Local0 = PP00 [0x00] Debug = ObjectType (Local0) Debug = DerefOf (Local0) Local1 = ObjectType (Local0) If ((Local1 != C012)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C012) } } Method (MF66, 0, Serialized) { Name (PP00, Package (0x01) { PWD2 }) Local0 = PP00 [0x00] Debug = ObjectType (Local0) Debug = DerefOf (Local0) Local1 = ObjectType (Local0) If ((Local1 != C013)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C013) } } Method (MF67, 0, Serialized) { Name (PP00, Package (0x01) { ED05 }) Local0 = PP00 [0x00] Debug = ObjectType (Local0) Debug = DerefOf (Local0) Local1 = ObjectType (Local0) If ((Local1 != C00F)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C00F) } } Method (MF68, 0, Serialized) { Name (PP00, Package (0x01) { MXD3 }) Local0 = PP00 [0x00] Debug = ObjectType (Local0) Debug = DerefOf (Local0) Local1 = ObjectType (Local0) If ((Local1 != C011)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C011) } } Method (MF69, 0, Serialized) { Name (PP00, Package (0x01) { DD0D }) Local0 = PP00 [0x00] CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = ObjectType (Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = DerefOf (Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = ObjectType (Local0) If ((Local1 != C00E)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C00E) } } Method (MF6A, 0, Serialized) { Name (PP00, Package (0x01) { TZD2 }) Local0 = PP00 [0x00] CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = ObjectType (Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = DerefOf (Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = ObjectType (Local0) If ((Local1 != C015)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C015) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0120/RUN.asl0000700000175000017500000000424314773714150026345 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 120", TCLD, 0x78, W017)) { SRMT ("mf64") MF64 () SRMT ("mf65") MF65 () SRMT ("mf66") MF66 () SRMT ("mf67") MF67 () SRMT ("mf68") MF68 () SRMT ("mf69") MF69 () SRMT ("mf6a") MF6A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0120/MAIN.asl0000700000175000017500000000424514773714150026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B120.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0120/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0120/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0181_ASL_RUNTIME/0000700000175000017500000000000014773714151027104 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0181_ASL_RUNTIME/DECL.asl0000700000175000017500000000402714773714151030322 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0181: * * SUMMARY: Failed to compiler specific Method */ Method (ME8B, 0, Serialized) { Name (I000, 0x00) Method (MM20, 1, NotSerialized) { I000 = 0x20 } MM20 (0x01) If ((I000 != 0x20)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x20) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0181_ASL_RUNTIME/RUN.asl0000700000175000017500000000361714773714151030263 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 181", TCLD, 0xB5, W017)) { SRMT ("me8b") ME8B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0181_ASL_RUNTIME/MAIN.asl0000700000175000017500000000427714773714151030346 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B181.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0181_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0181_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0226/0000700000175000017500000000000014773714152025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0226/DECL.asl0000700000175000017500000000602514773714152026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 226: * * SUMMARY: Excessive data is written to the Data field if * it is wider than Access Width of the IndexField */ Method (M10E, 0, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, 0x0100) Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { IDX0, 8, DTA0, 24 } Field (OPR0, ByteAcc, NoLock, Preserve) { TOT0, 32 } IndexField (IDX0, DTA0, ByteAcc, NoLock, WriteAsZeros) { , 15, IDF0, 1 } IDF0 = 0x03FF Local0 = TOT0 /* \M10E.TOT0 */ If ((Local0 != 0x8001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x8001) } } Method (M17A, 0, Serialized) { Name (B000, Buffer (0x40){}) Name (B001, Buffer (0x08) { 0xF0, 0xDE, 0xBC, 0x9A, 0x00, 0x00, 0x00, 0x00 // ........ }) CreateQWordField (B000, 0x05, BF00) BF00 = 0x123456789ABCDEF0 If (F64) { If ((BF00 != 0x123456789ABCDEF0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF00, 0x123456789ABCDEF0) } } ElseIf ((BF00 != B001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF00, B001) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0226/RUN.asl0000700000175000017500000000367514773714152026366 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 226", TCLD, 0xE2, W017)) { SRMT ("m10e") M10E () SRMT ("m17a") M17A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0226/MAIN.asl0000700000175000017500000000413114773714152026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B226.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0226/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0226/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0235_ASL_RUNTIME/0000700000175000017500000000000014773714152027105 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0235_ASL_RUNTIME/DECL.asl0000700000175000017500000000331614773714152030323 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 235: * * SUMMARY: Acpiexec hangs on absent global lock on Linux, but does not hang on Windows * * Do the run_time demo when bug will be fixed. */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0165_ML/0000700000175000017500000000000014773714151025574 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0165_ML/DECL.asl0000700000175000017500000000441314773714151027011 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 165: * * SUMMARY: Unnecessary memory allocation for CreateField should be eliminated * * Only, to run some CreateField-s (it is * checked completely by the bfield.asl test) */ Method(mf4d) { CreateField(bd0a, 0, 8, bfd2) } Method(mf4e) { Name(b001, Buffer(9){0x20,0x21,0x22,0x23}) CreateField(bd0a, 8, 8, bf01) CreateField(b001, 0, 8, bf02) Store(bfd2, Debug) if (LNotEqual(bfd2, 0x10)) { Store("Error 0", Debug) } else { Store("Ok 0", Debug) } Store(bf01, Debug) if (LNotEqual(bf01, 0x11)) { Store("Error 1", Debug) } else { Store("Ok 1", Debug) } Store(bf02, Debug) if (LNotEqual(bf02, 0x20)) { Store("Error 2", Debug) } else { Store("Ok 2", Debug) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0165_ML/RUN.asl0000700000175000017500000000322214773714151026743 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 165", TCLD, 165, W017)) { SRMT("mf4d") mf4d() SRMT("mf4e") mf4e() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0165_ML/MAIN.asl0000700000175000017500000000425314773714151027030 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B165.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0165_ML/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0165_ML/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0292/0000700000175000017500000000000014773714153025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0292/DECL.asl0000700000175000017500000000652414773714153026431 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 292: * * SUMMARY: Different second and third UnLoad execution with the same argument behavior */ Device (D292) { Name (BUF4, Buffer (0x44) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x44, 0x00, 0x00, 0x00, // SSDTD... /* 0008 */ 0x02, 0x08, 0x69, 0x41, 0x53, 0x4C, 0x54, 0x53, // ..iASLTS /* 0010 */ 0x4C, 0x54, 0x42, 0x4C, 0x30, 0x30, 0x30, 0x31, // LTBL0001 /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x10, 0x1F, 0x5C, 0x00, // ... ..\. /* 0028 */ 0x08, 0x5F, 0x58, 0x54, 0x32, 0x0D, 0x61, 0x62, // ._XT2.ab /* 0030 */ 0x73, 0x6F, 0x6C, 0x75, 0x74, 0x65, 0x20, 0x6C, // solute l /* 0038 */ 0x6F, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, // ocation /* 0040 */ 0x6F, 0x62, 0x6A, 0x00 // obj. }) OperationRegion (IST4, SystemMemory, 0x0600, 0x44) Field (IST4, ByteAcc, NoLock, Preserve) { RFU4, 544 } Method (TST0, 0, Serialized) { Name (DDB0, 0x00) RFU4 = BUF4 /* \D292.BUF4 */ Load (RFU4, DDB0) /* \D292.TST0.DDB0 */ Debug = "SSDT loaded" Unload (DDB0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "SSDT unloaded" Unload (DDB0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) Unload (DDB0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } } Method (M292, 0, NotSerialized) { \D292.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0292/RUN.asl0000700000175000017500000000362114773714153026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 292", TCLD, 0x0124, W017)) { SRMT ("m292") M292 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0292/MAIN.asl0000700000175000017500000000413114773714153026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B292.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0292/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0292/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0305/0000700000175000017500000000000014773714153025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0305/DECL.asl0000700000175000017500000000504514773714153026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 305: * * SUMMARY: Not owner recursive method call releases global object created by method */ Method (MFF2, 0, NotSerialized) { Method (M000, 1, Serialized, 3) { If (!Arg0) { Scope (\_SB) { Name (I2Z6, 0xABCD0000) } } If (!Arg0) { M000 (0x01) } Debug = "==================== 0" Debug = Arg0 Local0 = (\_SB.I2Z6 + 0x03) Debug = "==================== 1" If ((Local0 != 0xABCD0003)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCD0003) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M000 (0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0305/RUN.asl0000700000175000017500000000362114773714153026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 305", TCLD, 0x0131, W017)) { SRMT ("mff2") MFF2 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0305/MAIN.asl0000700000175000017500000000413214773714153026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B305.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0305/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0305/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0205/0000700000175000017500000000000014773714152025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0205/DECL.asl0000700000175000017500000000427614773714152026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 205 (local-bugzilla-346): * * SUMMARY: Store-to-Debug operation falls into infinite loop for ring of RefOf references * * Note: add verifications while sorting out and fixing the bug (CH03/CH04/..) */ Method (M815, 0, NotSerialized) { Method (M000, 0, NotSerialized) { Local1 = RefOf (Local0) Local2 = RefOf (Local1) Local0 = RefOf (Local2) Debug = Local0 /* RING_OF_REFS_EXCEPTION? */ } M000 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0205/RUN.asl0000700000175000017500000000401214773714152026345 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 205", TCLD, 0xCD, W017)) { SRMT ("m815") If (Y205) { M815 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0205/MAIN.asl0000700000175000017500000000413114773714152026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B205.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0205/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0205/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemo/0000700000175000017500000000000014773714153025701 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemo/DECL.asl0000700000175000017500000005633614773714153027131 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug-demo tests collection, to be compiled all together as one module */ /* * 162, (causes exception during the table load) */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0000/DECL.asl") /* 0001_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0002/DECL.asl") /* 0003_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0004/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0005/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0006/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0007/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0008/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0009/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0010/DECL.asl") /* 0011_ASL */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0012/DECL.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0013/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0014/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0015/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0016/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0017/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0018/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0019/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0020/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0021/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0022/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0023/DECL.asl") /* 0024_ASL */ /* 0025_SPEC */ /* 0026_ASL_NOT_BUG_NOW */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0027/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0028/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0029/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0030/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0031_ASL_RUNTIME/DECL.asl") /* 0032_ASL */ /* 0033_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0034/DECL.asl") /* 0035_ASL */ /* 0036_ASL */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0037/DECL.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0038/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0039_ASL_RUNTIME/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0040/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0041/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0042/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0043/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0044/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0045/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0046/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0047/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0048/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0049/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0050/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0051_ASL_RUNTIME/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0052/DECL.asl") /* 0053_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0054/DECL.asl") /* 0055_ASL */ /* 0056_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0057/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0058/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0059/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0060/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0061/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0063/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0064/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0065/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0066/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0067/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0068/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0069/DECL.asl") /* 0070_ASL */ /* 0071_ASL */ /* 0072_ASL */ /* 0073_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0074/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0075/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0076/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0077/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0078/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0079/DECL.asl") /* 0080_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0081/DECL.asl") /* 0082_SPEC */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0083/DECL.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0084/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0085/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0086/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0087/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0088/DECL.asl") /* 0089_SPEC */ /* 0090_SPEC */ /* 0091_SPEC */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0092/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0093/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0094/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0095/DECL.asl") /* 0096_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0097/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0098/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0099/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0100/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0101/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0102/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0103/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0104/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0105/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0106/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0107/DECL.asl") /* 0108_ASL */ /* 0109_ASL */ /* 0110_ML */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0111/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0112/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0113/DECL.asl") /* 0114_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0115/DECL.asl") /* 0116_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0117/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0118/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0119/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0120/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0121/DECL.asl") /* 0122_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0123/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0124/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0125/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0126/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0127/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0128/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0129/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0130/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0131/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0132/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0133/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0134/DECL.asl") /*Include("../../../../../runtime/collections/bdemo/ACPICA/0135/DECL.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0136/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0137/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0138/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0139/DECL.asl") /* 0140_ASL */ /* 0141_SPEC */ /* 0142_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0143/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0144/DECL.asl") /* 0145_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0146/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0147/DECL.asl") /* 0148_ASL */ /* 0149_SPEC */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0150/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0151/DECL.asl") /* 0152_ASL */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0153/DECL.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0154/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0155/DECL.asl") /* 0156_ML */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0157/DECL.asl") /* 0158_ML */ /* 0159_ML */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0160/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0161/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0162/DECL.asl") /* 0163_ML */ /* 0164_ACTION_REQUIRED */ /* 0165_ML */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0166_ML/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0167/DECL.asl") /* 0168_ACT_REQ_NOPT */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0169/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0170/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0171_ACTION_REQUIRED/DECL.asl") /* 0172_OUTSTAND_ALLOC */ /* 0173_DEMO_IMPOSSIBLE */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0174/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0175/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0176/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0177/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0178/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0179/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0180_ASL_RUNTIME/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0181_ASL_RUNTIME/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0182/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0183/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0184/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0185/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0186/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0187/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0188/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0189/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0190/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0191/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0192/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0193/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0194/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0195/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0196/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0197/DECL.asl") /*Include("../../../../../runtime/collections/bdemo/ACPICA/0198/DECL.asl") */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0199/DECL.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0200/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0201_OUTSTAND_ALLOC/DECL.asl") /* 0202_SEE_129 */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0203/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0204/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0205/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0206/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0207/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0208/DECL.asl") /* 0209_ML_SEE_135 */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0210/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0211/DECL.asl") /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 212: * * SUMMARY: AML interpreter doesn't prevent dead RefOf-references * * DESCRIPTION: RefOf operation doesn't increment the ref count * of parent object which causes undefined results. */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0212/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0213/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0214/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0215/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0216/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0217/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0218/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0219/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0220/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0221/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0222/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0223/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0224/DECL.asl") /* 0225_ASL/DECL.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0226/DECL.asl") /* 0227_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0228/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0229/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0230/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0231/DECL.asl") /* 0232_F_OPTION */ /* 0233_ASL */ /* 0234_ASL_RUNTIME */ /* 0235_ASL_RUNTIME */ /* 0236_ASL */ /* 0237_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0238/DECL.asl") /* 0239_ACTION_REQUIRED */ /* 0240_ACTION_REQUIRED */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0241/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0242/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0243/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0244/DECL.asl") /* 0245_SPEC */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0246/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0247/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0248/DECL.asl") /* 0249_DEMO_IMPOSSIBLE */ /* 0250_DEMO_IMPOSSIBLE */ /* 0251_ACTION_REQUIRED */ /* 0252_ASL */ /* 0253_DEMO_IMPOSSIBLE */ /* 0254_DEMO_IMPOSSIBLE */ /* 0255_DEMO_IMPOSSIBLE */ /* 0256_DEMO_IMPOSSIBLE */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0257/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0258/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0259/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0260/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0261/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0262/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0263/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0264/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0265/DECL.asl") /* 0266_DEMO_IMPOSSIBLE */ /* 0267_DEMO_IMPOSSIBLE */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0268/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0269/DECL.asl") /* 0270_SPEC */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0271/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0272/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0273/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0274/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0275/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0276_LARGE_REF_COUNT/DECL.asl") /* 0277_ACTION_REQUIRED */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0278/DECL.asl") /* 0279_ASL_RUNTIME */ /* 0280_ASL_RUNTIME */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0281/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0282/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0283/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0284/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0285/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0286/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0287/DECL.asl") /* 0288_ASL_RUNTIME */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0289/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0290/DECL.asl") /* 0291_ASL_RUNTIME */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0292/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0293/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0294/DECL.asl") /* 0295_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0296/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0297_ACTIONS_REQUIRED/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0298_ACTIONS_REQUIRED/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0299_ACTIONS_REQUIRED/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0300/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0301/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0302/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0303/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0304/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0305/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0306/DECL.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemo/RUN.asl0000700000175000017500000005447714773714153027072 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Store ("COLLECTION: all bug-demo tests", Debug) Include ("../../../../../runtime/collections/bdemo/ACPICA/0000/RUN.asl") /* 0001_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0002/RUN.asl") /* 0003_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0004/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0005/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0006/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0007/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0008/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0009/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0010/RUN.asl") /* 0011_ASL */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0012/RUN.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0013/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0014/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0015/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0016/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0017/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0018/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0019/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0020/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0021/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0022/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0023/RUN.asl") /* 0024_ASL */ /* 0025_SPEC */ /* 0026_ASL_NOT_BUG_NOW */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0027/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0028/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0029/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0030/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0031_ASL_RUNTIME/RUN.asl") /* 0032_ASL */ /* 0033_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0034/RUN.asl") /* 0035_ASL */ /* 0036_ASL */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0037/RUN.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0038/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0039_ASL_RUNTIME/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0040/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0041/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0042/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0043/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0044/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0045/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0046/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0047/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0048/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0049/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0050/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0051_ASL_RUNTIME/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0052/RUN.asl") /* 0053_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0054/RUN.asl") /* 0055_ASL */ /* 0056_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0057/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0058/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0059/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0060/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0061/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0063/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0064/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0065/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0066/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0067/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0068/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0069/RUN.asl") /* 0070_ASL */ /* 0071_ASL */ /* 0072_ASL */ /* 0073_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0074/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0075/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0076/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0077/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0078/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0079/RUN.asl") /* 0080_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0081/RUN.asl") /* 0082_SPEC */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0083/RUN.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0084/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0085/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0086/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0087/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0088/RUN.asl") /* 0089_SPEC */ /* 0090_SPEC */ /* 0091_SPEC */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0092/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0093/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0094/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0095/RUN.asl") /* 0096_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0097/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0098/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0099/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0100/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0101/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0102/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0103/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0104/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0105/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0106/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0107/RUN.asl") /* 0108_ASL */ /* 0109_ASL */ /* 0110_ML */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0111/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0112/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0113/RUN.asl") /* 0114_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0115/RUN.asl") /* 0116_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0117/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0118/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0119/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0120/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0121/RUN.asl") /* 0122_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0123/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0124/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0125/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0126/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0127/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0128/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0129/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0130/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0131/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0132/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0133/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0134/RUN.asl") /*Include("../../../../../runtime/collections/bdemo/ACPICA/0135/RUN.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0136/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0137/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0138/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0139/RUN.asl") /* 0140_ASL */ /* 0141_SPEC */ /* 0142_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0143/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0144/RUN.asl") /* 0145_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0146/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0147/RUN.asl") /* 0148_ASL */ /* 0149_SPEC */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0150/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0151/RUN.asl") /* 0152_ASL */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0153/RUN.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0154/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0155/RUN.asl") /* 0156_ML */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0157/RUN.asl") /* 0158_ML */ /* 0159_ML */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0160/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0161/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0162/RUN.asl") /* 0163_ML */ /* 0164_ACTION_REQUIRED */ /* 0165_ML */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0166_ML/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0167/RUN.asl") /* 0168_ACT_REQ_NOPT */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0169/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0170/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0171_ACTION_REQUIRED/RUN.asl") /* 0172_OUTSTAND_ALLOC */ /* 0173_DEMO_IMPOSSIBLE */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0174/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0175/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0176/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0177/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0178/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0179/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0180_ASL_RUNTIME/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0181_ASL_RUNTIME/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0182/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0183/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0184/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0185/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0186/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0187/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0188/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0189/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0190/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0191/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0192/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0193/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0194/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0195/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0196/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0197/RUN.asl") /*Include("../../../../../runtime/collections/bdemo/ACPICA/0198/RUN.asl") */ /*Include("../../../../../runtime/collections/bdemo/ACPICA/0199/RUN.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0200/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0201_OUTSTAND_ALLOC/RUN.asl") /* 0202_SEE_129 */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0203/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0204/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0205/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0206/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0207/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0208/RUN.asl") /* 0209_ML_SEE_135 */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0210/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0211/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0212/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0213/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0214/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0215/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0216/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0217/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0218/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0219/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0220/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0221/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0222/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0223/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0224/RUN.asl") /* 0225_ASL/RUN.asl") */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0226/RUN.asl") /* 0227_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0228/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0229/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0230/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0231/RUN.asl") /* 0232_F_OPTION */ /* 0233_ASL */ /* 0234_ASL_RUNTIME */ /* 0235_ASL_RUNTIME */ /* 0236_ASL */ /* 0237_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0238/RUN.asl") /* 0239_ACTION_REQUIRED */ /* 0240_ACTION_REQUIRED */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0241/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0242/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0243/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0244/RUN.asl") /* 0245_SPEC */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0246/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0247/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0248/RUN.asl") /* 0249_DEMO_IMPOSSIBLE */ /* 0250_DEMO_IMPOSSIBLE */ /* 0251_ACTION_REQUIRED */ /* 0252_ASL */ /* 0253_DEMO_IMPOSSIBLE */ /* 0254_DEMO_IMPOSSIBLE */ /* 0255_DEMO_IMPOSSIBLE */ /* 0256_DEMO_IMPOSSIBLE */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0257/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0258/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0259/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0260/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0261/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0262/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0263/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0264/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0265/RUN.asl") /* 0266_DEMO_IMPOSSIBLE */ /* 0267_DEMO_IMPOSSIBLE */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0268/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0269/RUN.asl") /* 0270_SPEC */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0271/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0272/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0273/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0274/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0275/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0276_LARGE_REF_COUNT/RUN.asl") /* 0277_ACTION_REQUIRED */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0278/RUN.asl") /* 0279_ASL_RUNTIME */ /* 0280_ASL_RUNTIME */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0281/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0282/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0283/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0284/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0285/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0286/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0287/RUN.asl") /* 0288_ASL_RUNTIME */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0289/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0290/RUN.asl") /* 0291_ASL_RUNTIME */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0292/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0293/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0294/RUN.asl") /* 0295_ASL */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0296/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0297_ACTIONS_REQUIRED/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0298_ACTIONS_REQUIRED/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0299_ACTIONS_REQUIRED/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0300/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0301/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0302/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0303/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0304/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0305/RUN.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0306/RUN.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemo/MAIN.asl0000700000175000017500000000516114773714153027134 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug-demo collection */ DefinitionBlock ("bdemo", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../runtime/cntl/DECL_5UP.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/bdemo/DECL.asl") Method (MAIN, 0, NotSerialized) { /* // Flag of presence of demo-162 test. if (id02) { // Check, register errors and reset the global level execution exception. md7d() } // Check, register errors and reset the global level execution exception // md7d() - do it while BUF1 creation just after BUF0, // otherwise, if doing that there, some other // exception may distort picture. */ /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../runtime/collections/bdemo/ACPICA/bdemo/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/bdemo/Makefile0000700000175000017500000000036214773714153027345 0ustar ivanhuivanhu# bdemo AMLMOD= bdemo COLL= ../../.. ADD_ASLFLAGS=-vx 6142 #illegal forward reference ADD_ASLFLAGS+=-vx 6152 #recursive method call ADD_ASLFLAGS+=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0295_ASL/0000700000175000017500000000000014773714153025711 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0295_ASL/DECL.asl0000700000175000017500000000337414773714153027133 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 295: * * SUMMARY: iASL reports the improper "operator has no effect" warning for LoadTable */ Device (D295) { Name(PLDT, 0) } Method(m295) { LoadTable("OEM1", "", "", , "\\D294.PLDT", 1) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0295_ASL/MAIN.asl0000700000175000017500000000407314773714153027145 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B295.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0295_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Error of ASL Compiler is expected // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0124/0000700000175000017500000000000014773714150025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0124/DECL.asl0000700000175000017500000000534114773714150026414 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 124: * * SUMMARY: No exception when the Index argument on Index() operator is out of the Source */ Method (MF06, 0, Serialized) { Name (P000, Package (0x02) { 0x00, 0x01 }) Name (B000, Buffer (0x03) { 0x02, 0x03, 0x04 // ... }) Name (S000, "5678") /* a) Index > 0xffffffff */ /* c) Modulo(Index, 0x100000000) < Size. */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (P000 [0x0000000100000001], Local0) CH04 (__METHOD__, 0x01, 0x37, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (B000 [0x0000000100000002], Local0) CH04 (__METHOD__, 0x01, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (S000 [0x0000000100000003], Local0) CH04 (__METHOD__, 0x01, 0x3D, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0124/RUN.asl0000700000175000017500000000401114773714150026342 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 124", TCLD, 0x7C, W017)) { SRMT ("mf06") If (F64) { MF06 () } Else { SKIP () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0124/MAIN.asl0000700000175000017500000000413114773714150026425 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B124.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0124/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0124/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0094/0000700000175000017500000000000014773714150025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0094/DECL.asl0000700000175000017500000000720714773714150026425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0094: * * SUMMARY: Invalid result of Index operator passed with the immediate image of String */ Method (ME44, 1, Serialized) { Name (S000, "qwrtyuiop") If ((Arg0 == 0x00)) { Debug = "String as a named object:" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = DerefOf (S000 [0x05]) If ((Local0 != 0x75)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x75) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } ElseIf ((Arg0 == 0x01)) { Debug = "The same String but substituted immediately:" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (Index ("qwrtyuiop", 0x05), Local1) If (Y900) { Local0 = DerefOf (Local1) If ((Local0 != 0x75)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x75) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } Else { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = DerefOf (Index ("qwrtyuiop", 0x05)) If (Y900) { If ((Local0 != 0x75)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x75) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } } Method (ME45, 0, NotSerialized) { /* 0 - success, 1,2 - exception */ ME44 (0x00) ME44 (0x01) ME44 (0x02) Return (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0094/RUN.asl0000700000175000017500000000361614773714150026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 94", TCLD, 0x5E, W017)) { SRMT ("me45") ME45 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0094/MAIN.asl0000700000175000017500000000413114773714150026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B94.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0094/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0094/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0252_ASL/0000700000175000017500000000000014773714152025701 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0252_ASL/DECL.asl0000700000175000017500000000321014773714152027110 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 252: * * SUMMARY: ASL compiler crashes on incorrect expression with Switch */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0252_ASL/MAIN.asl0000700000175000017500000000404614773714152027135 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "gr.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Method(m000) { Store(0, Local0) While (1) { if (LEqual(Local0, 0) { Store("Case 0", Debug) } elseif (LEqual(Local0, 1) { Store("Case 1", Debug) } elseif (LEqual(Local0, 2) { Switch (Local0) { Case (0) { Store("Case 2", Debug) } } } } } Method(MAIN) { m000() } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0237_ASL/0000700000175000017500000000000014773714152025704 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0237_ASL/DECL.asl0000700000175000017500000000421014773714152027114 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 237: * * SUMMARY: The ASL Compiler fails to recognize specific Uninitialized LocalX (for Switch) */ Method(m03a) { Method(m000, 1) { Switch (arg0) { Case (0) { Store(0, Local0) } } return (Local0) } Method(m001, 1) { Switch (arg0) { Case (0) { Store(0, Local1) } Default { Store(100, Local1) } } return (Local1) } /* Method without any initialization of Local2 */ Method(m002, 1) { Switch (arg0) { Case (0) { Store("Hello", Debug) // Store(0, Local2) } } return (Local2) } Method(mm00) { m000(1) } mm00() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0237_ASL/MAIN.asl0000700000175000017500000000407314773714152027140 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B237.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0237_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Error of ASL Compiler is expected // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0207/0000700000175000017500000000000014773714152025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0207/DECL.asl0000700000175000017500000000476014773714152026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 207 (local-bugzilla-344): * * SUMMARY: SizeOf operation falls into infinite loop for ring of Index references * * Note: add verifications while sorting out and fixing the bug (CH03/CH04/..) */ Method (M817, 0, NotSerialized) { Method (M000, 0, Serialized) { Name (P000, Package (0x04) { 0x10, 0x11, 0x12, 0x13 }) Store (P000 [0x00], P000 [0x01]) Store (P000 [0x01], P000 [0x02]) Store (P000 [0x02], P000 [0x00]) Store (P000 [0x00], Local0) Local7 = SizeOf (Local0) /* RING_OF_REFS_EXCEPTION? */ Local7 = SizeOf (P000 [0x00]) /* RING_OF_REFS_EXCEPTION? */ } M000 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0207/RUN.asl0000700000175000017500000000401214773714152026347 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 207", TCLD, 0xCF, W017)) { SRMT ("m817") If (Y207) { M817 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0207/MAIN.asl0000700000175000017500000000413114773714152026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B207.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0207/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0207/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0178/0000700000175000017500000000000014773714151025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0178/DECL.asl0000700000175000017500000001112514773714151026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 178: * * SUMMARY: Unexpected exception occurs on access to the Fields specified by BankField */ Method (MF0A, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 2 } BankField (R000, BNK0, 0x04, ByteAcc, NoLock, Preserve) { BKF0, 9 } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = BKF0 /* \MF0A.BKF0 */ If (Y263) { /* * After the bug 263 fixed we started actually * have there several exceptions: * - on evaluation of f001 stage * - and on Store-to-debug stage * Check opcode of the last exception. */ CH04 (__METHOD__, 0x02, 0x44, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGISTER_LIMIT */ } Else { CH04 (__METHOD__, 0x00, 0x44, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGISTER_LIMIT */ } } Method (MF0B, 0, Serialized) { Name (I000, 0x04) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 2 } BankField (R000, BNK0, I000, ByteAcc, NoLock, Preserve) { BKF0, 9 } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = BKF0 /* \MF0B.BKF0 */ CH04 (__METHOD__, 0x00, 0x44, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGISTER_LIMIT */ } Method (MF0C, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 2 } BankField (R000, BNK0, 0x00, ByteAcc, NoLock, Preserve) { BKF0, 9 } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = BKF0 /* \MF0C.BKF0 */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (MF0D, 0, Serialized) { Name (I000, 0x00) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 2 } BankField (R000, BNK0, (I000 + 0x00), ByteAcc, NoLock, Preserve) { BKF0, 9 } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = BKF0 /* \MF0D.BKF0 */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (MF0E, 0, Serialized) { Name (I000, 0x00) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 2 } BankField (R000, BNK0, I000, ByteAcc, NoLock, Preserve) { BKF0, 9 } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = BKF0 /* \MF0E.BKF0 */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0178/RUN.asl0000700000175000017500000000430314773714151026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 178", TCLD, 0xB2, W017)) { SRMT ("mf0a") MF0A () SRMT ("mf0b") MF0B () SRMT ("mf0c") MF0C () SRMT ("mf0d") If (Y178) { MF0D () } Else { BLCK () } SRMT ("mf0e") MF0E () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0178/MAIN.asl0000700000175000017500000000413114773714151026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B178.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0178/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0178/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/0000700000175000017500000000000014773714150027101 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/DECL.asl0000700000175000017500000001476114773714150030325 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 62: * * SUMMARY: Crash of the iASL Compiler when ASL-code contains * a long String declaration */ Method (MB62, 0, Serialized) { Name (S000, /* Lines 14 - 91: 78 * 50 + 21 = 3921 bytes */"0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n0123456789012345678901234567890123456789012345678\n012345678901234567890") Name (S001, "0123456789012345678901234567890123456789012345678\n") /* Prepare a benchmark Buffer (in Local2) */ Local5 = 0x0F51 Local2 = Buffer (Local5){} Local3 = 0x00 Local1 = Local5 While (Local1) { Divide (Local3, 0x32, Local4) Local2 [Local3] = DerefOf (S001 [Local4]) Local3++ Local1-- } /* Convert the benchmark Buffer into the String */ ToString (Local2, Local5, Local0) /* Check the original long String Literal */ If ((Local0 != S000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, S000, Local0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/RUN.asl0000700000175000017500000000361614773714150030257 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 62", TCLD, 0x3E, W017)) { SRMT ("mb62") MB62 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/MAIN.asl0000700000175000017500000000416114773714150030333 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B62.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/old_test/0000700000175000017500000000000014773714150030716 5ustar ivanhuivanhu././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/old_test/DECL.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/old_test/DECL0000700000175000017500000000321714773714150031356 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 62: * * SUMMARY: Crash of ASL Compiler on incorrect string with '"' and '\' in it */ ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/old_test/MAIN.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0062_ASL_RUNTIME/old_test/MAIN0000700000175000017500000001371714773714150031401 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0062: * * COMPONENT: iASL * * SUMMARY: * * Crash of ASL compiler... */ DefinitionBlock( "gr.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { /* Method(m000, 1) { Name(s000, "\sq"v") } */ Method(m001, 1) { // Name(s001, "\\sq\"v") Name(s002, "\sq"v") } /* Method(m002, 1) { Name(p000, Package() { // X - Buffer Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x83,0x84,0x85,0x86,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x83,0x84,0x85,0x86}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x87,0x98,0x99,0x9A,0x9B,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x87,0x98,0x99,0x9A}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3}, Buffer() {0x78,0x56,0x34,0x42,0x9C,0x9D,0x9E,0x9F}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB}, Buffer() {0x78,0x56,0x34,0x42,0xA4,0xA5,0xA6,0xA7}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62}, Buffer() {0x78,0x56,0x34,0x42,0x91,0x92,0x93,0x94}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 1,2,3,4,5,6,7,8}, Buffer() {0x78,0x56,0x34,0x42,1,2,3,4}, // X - Field Unit Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x7f,0,0,0,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x7f,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x07,0,0,0,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x07,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x8d,0,0,0,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x8d,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x8d,0x8c,0,0,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x8d,0x8c,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x8D,0x8C,0x8B,0x8A,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x8D,0x8C,0x8B,0x8A}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0xFF,0xFF,0xFF,0xFF,0x01,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0xFF,0xFF,0xFF,0xFF}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C}, Buffer() {0x78,0x56,0x34,0x42,0x58,0x46,0x37,0x88}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x58,0x9a,0x37,0x88,0x19,0xFA,0xDE,0xDC}, Buffer() {0x78,0x56,0x34,0x42,0x58,0x9a,0x37,0x88}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC}, Buffer() {0x78,0x56,0x34,0x42,0x58,0xc7,0x37,0x88}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF}, Buffer() {0x78,0x56,0x34,0x42,0x82,0x34,0x56,0x78}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52}, Buffer() {0x78,0x56,0x34,0x42,0x93,0xAB,0xCD,0xEF}, // X - Buffer Field Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0xAB,0x54,0x86,0x91,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0xAB,0x54,0x86,0x91}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x07,0,0,0,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x07,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x8d,0,0,0,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x8d,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x8d,0x8c,0,0,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x8d,0x8c,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x8D,0x8C,0x8B,0x8A,0,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0x8D,0x8C,0x8B,0x8A}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0xFF,0xFF,0xFF,0xFF,0x01,0,0,0}, Buffer() {0x78,0x56,0x34,0x42,0xFF,0xFF,0xFF,0xFF}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C}, Buffer() {0x78,0x56,0x34,0x42,0x58,0x46,0x37,0x88}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x58,0x9a,0x37,0x88,0x19,0xFA,0xDE,0xDC}, Buffer() {0x78,0x56,0x34,0x42,0x58,0x9a,0x37,0x88}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC}, Buffer() {0x78,0x56,0x34,0x42,0x58,0xc7,0x37,0x88}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF}, Buffer() {0x78,0x56,0x34,0x42,0x82,0x34,0x56,0x78}, Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB, 0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52}, Buffer() {0x78,0x56,0x34,0x42,0x93,0xAB,0xCD,0xEF}, }) } */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0227_ASL/0000700000175000017500000000000014773714152025703 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0227_ASL/DECL.asl0000700000175000017500000000327114773714152027121 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug -1: * * SUMMARY: The ASL Compiler fails on ASL file which ends up with the symbol of comment '/' without the following '\n' */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0227_ASL/MAIN.asl0000700000175000017500000000566414773714152027146 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 00 * * SUMMARY: * * COMPONENT: iASL * * Demo of ASL-incorrectness, - "// comment in the last line". * * If the last line of ASL-file ends with the comment (in our case * "} //") and there is no '\n' (new line) symbol after that comment * (check that before exercising the demo) then the iASL, mistakenly, * results in Error and reports the "Premature end-of-file reached" * (produced by AslCompiler.l->comment2() routine) message like below. * * If we remove the mentioned comment or insert the '\n' symbol * after it, or replace it by ** comment - all became Ok. * See details below: * * iasl.exe "gr4.asl" * * Intel ACPI Component Architecture * ASL Optimizing Compiler / AML Disassembler version 20040527 [May 27 2004] * Copyright (C) 2000 - 2004 Intel Corporation * Supports ACPI Specification Revision 2.0c * * gr4.asl 35: } // * Error 1080 - Premature end-of-file reached ^ * * ASL Input: gr4.asl - 36 lines, 1494 bytes, 0 keywords * Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations */ DefinitionBlock ( "grammar.aml", //Output filename "DSDT", //Signature 0x01, //DSDT Revision "Intel", //OEMID "Many", //TABLE ID 0x00000001 //OEM Revision ) { } //acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0038/0000700000175000017500000000000014773714147025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0038/DECL.asl0000700000175000017500000000664114773714147026432 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0038: * * SUMMARY: LGreater passed with Integer and String works incorrectly in 32-bit mode */ Method (MDCE, 0, Serialized) { Local7 = 0x00 /* Show that (in 32-bit mode) "FdeAcb0132547698" passed to Name */ /* operator is correctly implicitly converted to Integer 0xfdeacb01 */ Name (N000, 0x00) N000 = "FdeAcb0132547698" Debug = N000 /* \MDCE.N000 */ If ((N000 != 0xFDEACB01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, N000, 0xFDEACB01) } /* Show that LGreater operator indicates correctly */ /* that 0x42345678 is greater than 0x32547698 */ If ((0x42345678 > 0x32547698)) { Local7 = 0x01 } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x42345678, 0x32547698) } /* Show that (in 32-bit mode) "FdeAcb0132547698" passed to Name operator */ /* is implicitly converted to some Integer (0xfdeacb01) which is actually */ /* treated by LGreater as being greater than 0x42345678 */ If ((N000 > 0x42345678)) { Local7 = 0x01 } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, N000, 0x42345678) } /* Show that, nevertheless, (in 32-bit mode) "FdeAcb01Fdeacb03" passed */ /* to LGreater operator is implicitly converted to some unexpected value */ /* which is NOT equal to the expected correct 0xfdeacb01 value. */ If ((0xFDEACB02 > "FdeAcb01Fdeacb03")) { Local7 = 0x01 } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0xFDEACB02, "FdeAcb01Fdeacb03") } Return (Local7) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0038/RUN.asl0000700000175000017500000000401014773714147026353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 38", TCLD, 0x26, W017)) { SRMT ("mdce") If (F64) { SKIP () } Else { MDCE () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0038/MAIN.asl0000700000175000017500000000413114773714147026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B38.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0038/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0038/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0073_ASL/0000700000175000017500000000000014773714150025700 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0073_ASL/DECL.asl0000700000175000017500000000431314773714150027114 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0073: * * SUMMARY: The ASL Compiler fails and reports a large number of "Recursive method call" remarks * * While compiling full test the ASL compiler results in Error: * nssearch-0397: *** Error: NsSearchAndEnter: Bad character in ACPI Name: 5B5F545F * nssearch-0397: *** Error: NsSearchAndEnter: Bad character in ACPI Name: 5B5F545F * MAIN.asl 9: 0x00000001 // OEM Revision * Error 1078 -^ From ACPI CA Subsystem (AE_BAD_CHARACTER Failure from lookup %s) * and reports a large number of "Recursive method call" remarks. * * ASL Optimizing Compiler / AML Disassembler version 20041210 [Dec 10 2004] */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0073_ASL/MAIN.asl0000700000175000017500000001137614773714150027140 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "full.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/functional/arithmetic/arithmetic.asl") Include("../../../../../runtime/collections/functional/bfield/crbuffield.asl") Include("../../../../../runtime/collections/functional/control/ctl0.asl") Include("../../../../../runtime/collections/functional/control/ctl1.asl") Include("../../../../../runtime/collections/functional/control/ctl2.asl") Include("../../../../../runtime/collections/functional/control/timing.asl") Include("../../../../../runtime/collections/functional/control/switch1.asl") Include("../../../../../runtime/collections/functional/control/switch2.asl") Include("../../../../../runtime/collections/functional/control/switch3.asl") Include("../../../../../runtime/collections/functional/control/switch4.asl") Include("../../../../../runtime/collections/functional/control/switch5.asl") Include("../../../../../runtime/collections/functional/control/switch6.asl") Include("../../../../../runtime/collections/functional/control/while.asl") Include("../../../../../runtime/collections/functional/control/Return/return.asl") Include("../../../../../runtime/collections/functional/control/ImplicitReturn/add.asl") Include("../../../../../runtime/collections/functional/control/ImplicitReturn/store.asl") Include("../../../../../runtime/collections/functional/control/ImplicitReturn/standaloneret.asl") Include("../../../../../runtime/collections/functional/manipulation/mid.asl") Include("../../../../../runtime/collections/functional/manipulation/concatenate.asl") Include("../../../../../runtime/collections/functional/manipulation/tointeger.asl") Include("../../../../../runtime/collections/functional/manipulation/tostring.asl") Include("../../../../../runtime/collections/functional/manipulation/tobuffer.asl") Include("../../../../../runtime/collections/functional/manipulation/todecimalstring.asl") Include("../../../../../runtime/collections/functional/manipulation/tohexstring.asl") Include("../../../../../runtime/collections/functional/manipulation/tofrombcd.asl") Include("../../../../../runtime/collections/functional/manipulation/eisaid.asl") Include("../../../../../runtime/collections/functional/manipulation/touuid.asl") Include("../../../../../runtime/collections/functional/manipulation/unicode.asl") Include("../../../../../runtime/collections/functional/manipulation/objecttype.asl") Include("../../../../../runtime/collections/functional/manipulation/store.asl") Include("../../../../../runtime/collections/functional/manipulation/match1.asl") Include("../../../../../runtime/collections/functional/manipulation/match2.asl") Include("../../../../../runtime/collections/functional/manipulation/sizeof.asl") Include("../../../../../runtime/collections/functional/logic/logical.asl") Include("../../../../../runtime/common/operations.asl") Include("../../../../../runtime/common/conversion/oproc.asl") Include("../../../../../runtime/common/conversion/otest.asl") Include("./misc.asl") Method(MAIN) { return (0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0073_ASL/misc.old.asl0000700000175000017500000003052314773714150030117 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Miscellaneous not systematized tests Name(z054, 54) // Looks like Default is at all not implemented Method(m100, 1) { Store(0, Local0) Store(0, Local1) // Bug XXX. This Switch code below causes ASL-compiler to fail // for full.asl file with the diagnostics like this: // nssearch-0397: *** Error: NsSearchAndEnter: // Bad character in ACPI Name: 5B5F545F // and fall into recursion: // Remark 3040 - Recursive method call ^ (ERR_) // Note: (0x5B5F545F is equal to "[_T_") Switch (Local1) { Case (5) { Store(5, Local0) } Default { Store(1, Local0) } } if (LNotEqual(Local0, 1)) { err(arg0, z054, __LINE__, Local0, 0) } } // Concatenate operator affects the object passed as Source2 parameter Method(m101, 1) { Concatenate("qwertyuiop", arg0) } Method(m102, 1) { Store(0, Local0) m101(Local0) if (LNotequal(Local0, 0)) { err(arg0, z054, __LINE__, Local0, 0) } Store(0, Local0) Concatenate("qwertyuiop", Local0) if (LNotequal(Local0, 0)) { err(arg0, z054, __LINE__, Local0, 0) } } // Unexpected value returned by ObjectType for Field Unit objects // The field passed as explicit reference (RefOf) Method(m105, 1) { OperationRegion(r000, SystemMemory, 0x100, 0x100) Field (r000, ByteAcc, NoLock, Preserve) { f000, 32 } Store(ObjectType(RefOf(f000)), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, Local0, 0) } } // The BankField corrupts the contents of OperationRegion Method(m106, 1) { OperationRegion(r000, SystemMemory, 0x100, 0x100) Field (r000, ByteAcc, NoLock, Preserve) { bnk0, 8 } BankField (r000, bnk0, 0, ByteAcc, NoLock, Preserve) { Offset(16), bf00, 8, } BankField (r000, bnk0, 1, ByteAcc, NoLock, Preserve) { Offset(17), bf01, 8, } Store(1, bnk0) if (LNotEqual(bnk0, 1)) { err(arg0, z054, __LINE__, bnk0, 0) } Store(0x96, bf01) if (LNotEqual(bnk0, 1)) { err(arg0, z054, __LINE__, bnk0, 0) } Store(0x87, bf00) if (LNotEqual(bnk0, 1)) { err(arg0, z054, __LINE__, bnk0, 0) } if (LNotEqual(bf00, 0x87)) { err(arg0, z054, __LINE__, bf00, 0) } if (LNotEqual(bf01, 0x96)) { err(arg0, z054, __LINE__, bf01, 0) } } // ToBuffer caused destroying of source buffer passed by Data parameter Method(m107, 1) { Store(Buffer(4){10, 11, 12, 13}, Local0) Store(ObjectType(Local0), Local1) if (LNotEqual(Local1, c00b)) { err(arg0, z054, __LINE__, Local1, 0) } ToBuffer(Local0, Local2) Store(0xaa, Local3) Store(ObjectType(Local0), Local3) if (LNotEqual(Local3, c00b)) { err(arg0, z054, __LINE__, Local3, 0) } } // ObjectType() operator should be allowed to deal with the // uninitialized objects. // Uncomment this when the problem will be fixed and compile // will not fail in this case like it do now: "Method local // variable is not initialized (Local0)". Method(m108, 1) { Store(ObjectType(Local0), Local1) } // Now, this cause exception but should not Method(m109, 2) { if (arg1) { Store(0, Local0) } CH03() Store(ObjectType(Local0), Local1) if (LNotEqual(Local1, 0)) { err(arg0, z054, __LINE__, Local1, 0) } CH03() } Method(m10a, 1) { m109(arg0, 0) } // DerefOf. If the Source evaluates to a string, the string is evaluated // as an ASL name (relative to the current scope) and the contents of that // object are returned. Method(m10b, 1) { Name(b000, Buffer(){ 1, 2, 3, 4, 5, 6, 7, 8 }) Store("b000", Local0) Store("================ 0:", Debug) Store(DerefOf(Local0), Local1) Store("================ 1:", Debug) Store(ObjectType(Local1), Local2) if (LNotEqual(Local2, 3)) { err(arg0, z054, __LINE__, Local2, 0) } Store("================ 2:", Debug) Store(Local1, Debug) Store(Local2, Debug) return (0) } /* // Currently, incorrect test // The size of Strings in Package is determined incorrectly Method(m10c, 1) { Name(p000, Package() { "012", "0123456789abcdef", Buffer() {17,28,69,11,22,34,35,56,67,11}, "012345", }) Store(DeRefOf(Index(p000, 1)), Local0) Store(0, Index(Local0, 5)) Store(0, Index(p000, 1)) Store(DeRefOf(Index(p000, 1)), Local0) // Store(0, Index(Local0, 5)) Store("=================:", Debug) Store(Local0, Debug) // 0 Store(DeRefOf(Index(p000, 0)), Local2) Store(SizeOf(Local2), Local3) Store(Local3, Debug) if (LNotEqual(Local3, 3)) { err(arg0, z054, __LINE__, Local3, 3) } // 1 Store(DeRefOf(Index(p000, 1)), Local2) Store(SizeOf(Local2), Local3) Store(Local3, Debug) if (LNotEqual(Local3, 9)) { err(arg0, z054, __LINE__, Local3, 9) } // 2 Store(DeRefOf(Index(p000, 2)), Local2) Store(SizeOf(Local2), Local3) Store(Local3, Debug) if (LNotEqual(Local3, 6)) { err(arg0, z054, __LINE__, Local3, 6) } Store(SizeOf(p000), Local0) Store(Local0, Debug) if (LNotEqual(Local0, 3)) { err(arg0, z054, __LINE__, Local0, 3) } } */ /* // ATTENTION: such type tests have to be added and extended Method(m10d, 1) { Name(p000, Package() { 0x12345678, 0x90abcdef, }) Name(b000, Buffer() {0x78,0x56,0x34,0x12, 0xef,0xcd,0xab,0x90}) Store(DeRefOf(Index(p000, 0)), Local7) if (LEqual(b000, Local7)) { err(arg0, z054, __LINE__, b000, Local7) } if (LEqual(Local7, b000)) { err(arg0, z054, __LINE__, Local7, b000) } return (0) } */ // Bug 54: All the ASL Operators which deal with at least two Buffer type // objects cause unexpected exceptions in cases when both Buffer type objects // are passed immediately Method(m10e, 1) { CH03() Add( Buffer() {0x79}, Buffer() {0x79} ) CH03() } // Bug 57: The empty Return operator (without specifying the returning value) // is processed incorrectly Method(m10f, 1) { Method(m110, 2) { if (arg1) { return (0x1234) // ASL-compiler report Warning in this case // Store("ERROR 0: m113, after Return !!!", Debug) } err(arg0, z054, __LINE__, 0, 0) return (0x5678) } Method(m111, 2) { if (arg1) { return // ASL-compiler DOESN'T report Warning in this case!!! // And the Store operator below is actually processed!!! err(arg0, z054, __LINE__, 0, 0) } err(arg0, z054, __LINE__, 0, 0) return } Store(m110(arg0, 1), Local7) m111(arg0, 1) return (0) } // Bug 59: The String to Buffer Rule from the Table 17-8 "Object Conversion // Rules" says "If the string is shorter than the buffer, the buffer size is // reduced". Method(m110, 1) { Name(str0, "\x01\x02") Name(buf0, Buffer(){0x03, 0x04, 0x05}) Store(str0, buf0) if (LNotEqual(Sizeof(buf0), 2)) { // Error: length of the buffer not reduced to the stored string err(arg0, z054, __LINE__, 0, 0) } return (0) } // Bug 65: The Buffer Field type objects should be passed // to Methods without any conversion, but instead // they are converted to Buffers or Integers depending // on the size of the Buffer Field object and the // run mode (32-bit or 64/bit mode). Method(m111, 1) { Name(b000, Buffer(200) {}) CreateField(b000, 0, 8, bf00) Method(m000, 2) { Store(ObjectType(arg1), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z054, __LINE__, Local0, 14) } } Method(m001, 1) { Store(ObjectType(bf00), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z054, __LINE__, Local0, 14) } else { m000(arg0, bf00) } } m001(arg0) } // Bug 66: The Field Unit type objects should be passed // to Methods without any conversion, but instead // they are converted to Buffers or Integers depending // on the size of the Buffer Field object and the // run mode (32-bit or 64/bit mode). Method(m112, 1) { OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8 } Method(m000, 2) { Store(ObjectType(arg1), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, Local0, 5) } } Method(m001, 1) { Store(ObjectType(f000), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, Local0, 5) } else { m000(arg0, f000) } } m001(arg0) } // Bug 67: The Buffer Field type objects should be RETURNED // by Methods without any conversion, but instead // they are converted to Buffers or Integers depending // on the size of the Buffer Field object and the // run mode (32-bit or 64/bit mode). Method(m113, 1) { Name(b000, Buffer(200) {}) CreateField(b000, 0, 8, bf00) Method(m000) { return (bf00) } Method(m001, 1) { Store(ObjectType(bf00), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z054, __LINE__, Local0, 14) } else { Store(m000(), Local7) Store(ObjectType(Local7), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z054, __LINE__, Local0, 14) } } } m001(arg0) } // Bug 68: The Field Unit type objects should be RETURNED // by Methods without any conversion, but instead // they are converted to Buffers or Integers depending // on the size of the Buffer Field object and the // run mode (32-bit or 64/bit mode). Method(m114, 1) { OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8 } Method(m000) { return (f000) } Method(m001, 1) { Store(ObjectType(f000), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, Local0, 5) } else { Store(m000(), Local7) Store(ObjectType(Local7), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, Local0, 5) } } } m001(arg0) } // Bug 30. This test may be removed there after // the Field relative tests will be implemented. // Caused crash. Method(m115, 1) { Method(m000) { // Field Unit OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8, f001, 16, f002, 32, f003, 33, f004, 1, f005, 64, } Store("------------ Fields:", Debug) Store(f000, Debug) Store(f001, Debug) Store(f002, Debug) Store(f003, Debug) Store(f004, Debug) Store(f005, Debug) Store("------------.", Debug) return (0) } Method(m001) { // Field Unit OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8, f001, 16, f002, 32, f003, 33, f004, 7, f005, 64, } Store("------------ Fields:", Debug) Store(f000, Debug) Store(f001, Debug) Store(f002, Debug) Store(f003, Debug) Store(f004, Debug) Store(f005, Debug) Store("------------.", Debug) return (0) } m000() m001() return (0) } Method(m116, 1) { Method(m000) { return (0x12345678) } Method(m001, 1) { return (0x12345678) } Store(ObjectType(m000), Local0) if (LNotEqual(Local0, c010)) { err(arg0, z054, __LINE__, Local0, c010) } /* Nov. 2012: Method invocation as arg to ObjectType is now illegal */ // // Store(ObjectType(m000()), Local0) // if (LNotEqual(Local0, c009)) { // err(arg0, z054, __LINE__, Local0, c009) // } // // Store(ObjectType(m001(123)), Local1) // if (LNotEqual(Local1, c009)) { // err(arg0, z054, __LINE__, Local1, c009) // } } // Run-method Method(MSC0) { Name(ts, "MSC0") m100(ts) m102(ts) m105(ts) m106(ts) m107(ts) m108(ts) m10a(ts) m10b(ts) m10e(ts) m10f(ts) m110(ts) m111(ts) m112(ts) m113(ts) m114(ts) m115(ts) m116(ts) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0073_ASL/misc.asl0000700000175000017500000003116314773714150027343 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Miscellaneous not systematized tests Name(z054, 54) // Looks like Default is at all not implemented Method(mZ00, 1) { Store(0, Local0) Store(0, Local1) // Bug XXX. This Switch code below causes ASL-compiler to fail // for full.asl file with the diagnostics like this: // nssearch-0397: *** Error: NsSearchAndEnter: // Bad character in ACPI Name: 5B5F545F // and fall into recursion: // Remark 3040 - Recursive method call ^ (ERR_) // Note: (0x5B5F545F is equal to "[_T_") Switch (Local1) { Case (5) { Store(5, Local0) } Default { Store(1, Local0) } } if (LNotEqual(Local0, 1)) { err(arg0, z054, __LINE__, 0, 0, Local0, 0) } } // Concatenate operator affects the object passed as Source2 parameter Method(mZ01, 1) { Concatenate("qwertyuiop", arg0) } Method(mZ02, 1) { Store(0, Local0) mZ01(Local0) if (LNotequal(Local0, 0)) { err(arg0, z054, __LINE__, 0, 0, Local0, 0) } Store(0, Local0) Concatenate("qwertyuiop", Local0) if (LNotequal(Local0, 0)) { err(arg0, z054, __LINE__, 0, 0, Local0, 0) } } // Unexpected value returned by ObjectType for Field Unit objects // The field passed as explicit reference (RefOf) Method(mZ05, 1) { OperationRegion(r000, SystemMemory, 0x100, 0x100) Field (r000, ByteAcc, NoLock, Preserve) { f000, 32 } Store(ObjectType(RefOf(f000)), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, 0, 0, Local0, 0) } } // The BankField corrupts the contents of OperationRegion Method(mZ06, 1) { OperationRegion(r000, SystemMemory, 0x100, 0x100) Field (r000, ByteAcc, NoLock, Preserve) { bnk0, 8 } BankField (r000, bnk0, 0, ByteAcc, NoLock, Preserve) { Offset(16), bf00, 8, } BankField (r000, bnk0, 1, ByteAcc, NoLock, Preserve) { Offset(17), bf01, 8, } Store(1, bnk0) if (LNotEqual(bnk0, 1)) { err(arg0, z054, __LINE__, 0, 0, bnk0, 0) } Store(0x96, bf01) if (LNotEqual(bnk0, 1)) { err(arg0, z054, __LINE__, 0, 0, bnk0, 0) } Store(0x87, bf00) if (LNotEqual(bnk0, 1)) { err(arg0, z054, __LINE__, 0, 0, bnk0, 0) } if (LNotEqual(bf00, 0x87)) { err(arg0, z054, __LINE__, 0, 0, bf00, 0) } if (LNotEqual(bf01, 0x96)) { err(arg0, z054, __LINE__, 0, 0, bf01, 0) } } // ToBuffer caused destroying of source buffer passed by Data parameter Method(mZ07, 1) { Store(Buffer(4){10, 11, 12, 13}, Local0) Store(ObjectType(Local0), Local1) if (LNotEqual(Local1, c00b)) { err(arg0, z054, __LINE__, 0, 0, Local1, 0) } ToBuffer(Local0, Local2) Store(0xaa, Local3) Store(ObjectType(Local0), Local3) if (LNotEqual(Local3, c00b)) { err(arg0, z054, __LINE__, 0, 0, Local3, 0) } } // ObjectType() operator should be allowed to deal with the // uninitialized objects. // Uncomment this when the problem will be fixed and compile // will not fail in this case like it do now: "Method local // variable is not initialized (Local0)". Method(mZ08, 1) { Store(ObjectType(Local0), Local1) } // Now, this cause exception but should not Method(mZ09, 2) { if (arg1) { Store(0, Local0) } CH03("", 0, 0, __LINE__, 0) Store(ObjectType(Local0), Local1) if (LNotEqual(Local1, 0)) { err(arg0, z054, __LINE__, 0, 0, Local1, 0) } CH03("", 0, 0, __LINE__, 0) } Method(mZ0a, 1) { mZ09(arg0, 0) } // DerefOf. If the Source evaluates to a string, the string is evaluated // as an ASL name (relative to the current scope) and the contents of that // object are returned. Method(mZ0b, 1) { Name(b000, Buffer(){ 1, 2, 3, 4, 5, 6, 7, 8 }) Store("b000", Local0) Store("================ 0:", Debug) Store(DerefOf(Local0), Local1) Store("================ 1:", Debug) Store(ObjectType(Local1), Local2) if (LNotEqual(Local2, 3)) { err(arg0, z054, __LINE__, 0, 0, Local2, 0) } Store("================ 2:", Debug) Store(Local1, Debug) Store(Local2, Debug) return (0) } /* // Currently, incorrect test // The size of Strings in Package is determined incorrectly Method(mZ0c, 1) { Name(p000, Package() { "012", "0123456789abcdef", Buffer() {17,28,69,11,22,34,35,56,67,11}, "012345", }) Store(DeRefOf(Index(p000, 1)), Local0) Store(0, Index(Local0, 5)) Store(0, Index(p000, 1)) Store(DeRefOf(Index(p000, 1)), Local0) // Store(0, Index(Local0, 5)) Store("=================:", Debug) Store(Local0, Debug) // 0 Store(DeRefOf(Index(p000, 0)), Local2) Store(SizeOf(Local2), Local3) Store(Local3, Debug) if (LNotEqual(Local3, 3)) { err(arg0, z054, __LINE__, 0, 0, Local3, 3) } // 1 Store(DeRefOf(Index(p000, 1)), Local2) Store(SizeOf(Local2), Local3) Store(Local3, Debug) if (LNotEqual(Local3, 9)) { err(arg0, z054, __LINE__, 0, 0, Local3, 9) } // 2 Store(DeRefOf(Index(p000, 2)), Local2) Store(SizeOf(Local2), Local3) Store(Local3, Debug) if (LNotEqual(Local3, 6)) { err(arg0, z054, __LINE__, 0, 0, Local3, 6) } Store(SizeOf(p000), Local0) Store(Local0, Debug) if (LNotEqual(Local0, 3)) { err(arg0, z054, __LINE__, 0, 0, Local0, 3) } } */ /* // ATTENTION: such type tests have to be added and extended Method(mZ0d, 1) { Name(p000, Package() { 0x12345678, 0x90abcdef, }) Name(b000, Buffer() {0x78,0x56,0x34,0x12, 0xef,0xcd,0xab,0x90}) Store(DeRefOf(Index(p000, 0)), Local7) if (LEqual(b000, Local7)) { err(arg0, z054, __LINE__, 0, 0, b000, Local7) } if (LEqual(Local7, b000)) { err(arg0, z054, __LINE__, 0, 0, Local7, b000) } return (0) } */ // Bug 54: All the ASL Operators which deal with at least two Buffer type // objects cause unexpected exceptions in cases when both Buffer type objects // are passed immediately Method(mZ0e, 1) { CH03("", 0, 0, __LINE__, 0) Add( Buffer() {0x79}, Buffer() {0x79} ) CH03("", 0, 0, __LINE__, 0) } // Bug 57: The empty Return operator (without specifying the returning value) // is processed incorrectly Method(mZ0f, 1) { Method(mZ10, 2) { if (arg1) { return (0x1234) // ASL-compiler report Warning in this case // Store("ERROR 0: mZ13, after Return !!!", Debug) } err(arg0, z054, __LINE__, 0, 0, 0, 0) return (0x5678) } Method(mZ11, 2) { if (arg1) { return // ASL-compiler DOESN'T report Warning in this case!!! // And the Store operator below is actually processed!!! err(arg0, z054, __LINE__, 0, 0, 0, 0) } err(arg0, z054, __LINE__, 0, 0, 0, 0) return } Store(mZ10(arg0, 1), Local7) mZ11(arg0, 1) return (0) } // Bug 59: The String to Buffer Rule from the Table 17-8 "Object Conversion // Rules" says "If the string is shorter than the buffer, the buffer size is // reduced". Method(mZ10, 1) { Name(str0, "\x01\x02") Name(buf0, Buffer(){0x03, 0x04, 0x05}) Store(str0, buf0) if (LNotEqual(Sizeof(buf0), 2)) { // Error: length of the buffer not reduced to the stored string err(arg0, z054, __LINE__, 0, 0, 0, 0) } return (0) } // Bug 65: The Buffer Field type objects should be passed // to Methods without any conversion, but instead // they are converted to Buffers or Integers depending // on the size of the Buffer Field object and the // run mode (32-bit or 64/bit mode). Method(mZ11, 1) { Name(b000, Buffer(200) {}) CreateField(b000, 0, 8, bf00) Method(m000, 2) { Store(ObjectType(arg1), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z054, __LINE__, 0, 0, Local0, 14) } } Method(m001, 1) { Store(ObjectType(bf00), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z054, __LINE__, 0, 0, Local0, 14) } else { m000(arg0, bf00) } } m001(arg0) } // Bug 66: The Field Unit type objects should be passed // to Methods without any conversion, but instead // they are converted to Buffers or Integers depending // on the size of the Buffer Field object and the // run mode (32-bit or 64/bit mode). Method(mZ12, 1) { OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8 } Method(m000, 2) { Store(ObjectType(arg1), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, 0, 0, Local0, 5) } } Method(m001, 1) { Store(ObjectType(f000), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, 0, 0, Local0, 5) } else { m000(arg0, f000) } } m001(arg0) } // Bug 67: The Buffer Field type objects should be RETURNED // by Methods without any conversion, but instead // they are converted to Buffers or Integers depending // on the size of the Buffer Field object and the // run mode (32-bit or 64/bit mode). Method(mZ13, 1) { Name(b000, Buffer(200) {}) CreateField(b000, 0, 8, bf00) Method(m000) { return (bf00) } Method(m001, 1) { Store(ObjectType(bf00), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z054, __LINE__, 0, 0, Local0, 14) } else { Store(m000(), Local7) Store(ObjectType(Local7), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z054, __LINE__, 0, 0, Local0, 14) } } } m001(arg0) } // Bug 68: The Field Unit type objects should be RETURNED // by Methods without any conversion, but instead // they are converted to Buffers or Integers depending // on the size of the Buffer Field object and the // run mode (32-bit or 64/bit mode). Method(mZ14, 1) { OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8 } Method(m000) { return (f000) } Method(m001, 1) { Store(ObjectType(f000), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, 0, 0, Local0, 5) } else { Store(m000(), Local7) Store(ObjectType(Local7), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z054, __LINE__, 0, 0, Local0, 5) } } } m001(arg0) } // Bug 30. This test may be removed there after // the Field relative tests will be implemented. // Caused crash. Method(mZ15, 1) { Method(m000) { // Field Unit OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8, f001, 16, f002, 32, f003, 33, f004, 1, f005, 64, } Store("------------ Fields:", Debug) Store(f000, Debug) Store(f001, Debug) Store(f002, Debug) Store(f003, Debug) Store(f004, Debug) Store(f005, Debug) Store("------------.", Debug) return (0) } Method(m001) { // Field Unit OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8, f001, 16, f002, 32, f003, 33, f004, 7, f005, 64, } Store("------------ Fields:", Debug) Store(f000, Debug) Store(f001, Debug) Store(f002, Debug) Store(f003, Debug) Store(f004, Debug) Store(f005, Debug) Store("------------.", Debug) return (0) } m000() m001() return (0) } Method(mZ16, 1) { Method(m000) { return (0x12345678) } Method(m001, 1) { return (0x12345678) } Store(ObjectType(m000), Local0) if (LNotEqual(Local0, c010)) { err(arg0, z054, __LINE__, 0, 0, Local0, c010) } /* Nov. 2012: Method invocation as arg to ObjectType is now illegal */ // // Store(ObjectType(m000()), Local0) // if (LNotEqual(Local0, c009)) { // err(arg0, z054, __LINE__, 0, 0, Local0, c009) // } // // Store(ObjectType(m001(123)), Local1) // if (LNotEqual(Local1, c009)) { // err(arg0, z054, __LINE__, 0, 0, Local1, c009) // } } // Run-method Method(MSC0) { Name(ts, "MSC0") mZ00(ts) mZ02(ts) mZ05(ts) mZ06(ts) mZ07(ts) mZ08(ts) mZ0a(ts) mZ0b(ts) mZ0e(ts) mZ0f(ts) mZ10(ts) mZ11(ts) mZ12(ts) mZ13(ts) mZ14(ts) mZ15(ts) mZ16(ts) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0262/0000700000175000017500000000000014773714152025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0262/DECL.asl0000700000175000017500000000653314773714152026425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 262: * * SUMMARY: Unexpected AE_STACK_OVERFLOW for a method call expression with nested calls */ Method (M027, 0, Serialized) { Name (IAD1, 0x01) Name (IAD2, 0x10) Name (IAD3, 0x0100) Name (IAD4, 0x1000) Name (IAD5, 0x00010000) Name (IAD6, 0x00100000) Name (IAD7, 0x01000000) Method (MAD1, 1, NotSerialized) { Return (Arg0) } Method (MAD7, 7, NotSerialized) { Return (((((((Arg0 + Arg1) + Arg2) + Arg3) + Arg4) + Arg5) + Arg6)) } Method (M000, 0, NotSerialized) { Local0 = MAD7 (MAD1 (IAD1), MAD1 (IAD2), MAD1 (IAD3), MAD1 (IAD4), MAD1 ( IAD5), MAD1 (IAD6), MAD7 (MAD1 (IAD1), MAD1 (IAD2), MAD1 (IAD3), MAD1 (IAD4), MAD1 ( IAD5), MAD1 (IAD6), MAD7 (MAD1 (IAD1), MAD1 (IAD2), MAD1 (IAD3), MAD1 (IAD4), MAD1 ( IAD5), MAD1 (IAD6), MAD7 (MAD1 (IAD1), MAD1 (IAD2), MAD1 (IAD3), MAD1 (IAD4), MAD1 ( IAD5), MAD1 (IAD6), MAD7 (MAD1 (IAD1), MAD1 (IAD2), MAD1 (IAD3), MAD1 (IAD4), MAD1 ( IAD5), MAD1 (IAD6), MAD7 (MAD1 (IAD1), MAD1 (IAD2), MAD1 (IAD3), MAD1 (IAD4), MAD1 ( IAD5), MAD1 (IAD6), MAD7 (MAD1 (IAD1), MAD1 (IAD2), MAD1 (IAD3), MAD1 (IAD4), MAD1 ( IAD5), MAD1 (IAD6), MAD1 (IAD7)))))))) Debug = Local0 If ((Local0 != 0x01777777)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01777777) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0262/RUN.asl0000700000175000017500000000401414773714152026352 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 262", TCLD, 0x0106, W017)) { SRMT ("m027") If (Y262) { M027 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0262/MAIN.asl0000700000175000017500000000413114773714152026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B262.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0262/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0262/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0263/0000700000175000017500000000000014773714152025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0263/DECL.asl0000700000175000017500000001177214773714152026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 263: * * SUMMARY: The sequence of evaluating operands of expression with the named objects is violated */ Method (M026, 0, NotSerialized) { Method (MM00, 0, Serialized) { Name (I000, 0x01) Method (M001, 0, NotSerialized) { I000 = 0x50000000 Return (I000) /* \M026.MM00.I000 */ } Store ((I000 + M001 ()), Local0) Debug = Local0 Debug = I000 /* \M026.MM00.I000 */ If ((Local0 != 0x50000001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x50000001) } If ((I000 != 0x50000000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x50000000) } } Method (MM01, 1, Serialized) { Name (I000, 0x01) Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, I000) /* \M026.MM01.I000 */ } Return (0x00) } I000 = 0x80000000 Return ((I000 + M008 ())) } I000 = 0x07000000 Return ((I000 + M007 ())) } I000 = 0x00600000 Return ((I000 + M006 ())) } I000 = 0x00050000 Return ((I000 + M005 ())) } I000 = 0x4000 Return ((I000 + M004 ())) } I000 = 0x0300 Return ((I000 + M003 ())) } I000 = 0x20 Return ((I000 + M002 ())) } Store ((I000 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If ((I000 != 0x80000000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x80000000) } } MM00 () MM01 (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0263/RUN.asl0000700000175000017500000000362114773714152026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 263", TCLD, 0x0107, W017)) { SRMT ("m026") M026 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0263/MAIN.asl0000700000175000017500000000413114773714152026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B263.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0263/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0263/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0041/0000700000175000017500000000000014773714147025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0041/DECL.asl0000700000175000017500000000411214773714147026413 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0041: * * SUMMARY: ToInteger transforms operand to reference when no conversion is required */ Method (MDD2, 0, NotSerialized) { Local0 = 0x00 Debug = Local0 Local1 = ToInteger (Local0) Debug = Local0 Local7 = (Local0 + 0x01) If ((Local7 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, 0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0041/RUN.asl0000700000175000017500000000361614773714147026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 41", TCLD, 0x29, W017)) { SRMT ("mdd2") MDD2 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0041/MAIN.asl0000700000175000017500000000413114773714147026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B41.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0041/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0041/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0281/0000700000175000017500000000000014773714152025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0281/DECL.asl0000700000175000017500000001047614773714152026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 281: * * SUMMARY: Normal strings as the LoadTable parameters can cause * the matching table to be not found */ Device (D281) { Name (SOID, "Intel ") Name (STID, "Many ") Name (PLDT, 0x00) Method (TST0, 0, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) /* Unhappy case: space-ended strings */ PLDT = 0x00 DDB0 = LoadTable ("OEM1", SOID, STID, "\\", "\\D281.PLDT", 0x01) If ((PLDT != 0x00)) { Debug = PLDT /* \D281.PLDT */ ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, PLDT, 0x00) Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } /* Successful case: spaces is replaced with zeroes */ PLDT = 0x00 SOID [0x05] = 0x00 STID [0x04] = 0x00 STID [0x05] = 0x00 STID [0x06] = 0x00 STID [0x07] = 0x00 DDB0 = LoadTable ("OEM1", SOID, STID, "\\", "\\D281.PLDT", 0x01) If ((PLDT != 0x01)) { Debug = PLDT /* \D281.PLDT */ ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, PLDT, 0x01) Return (0x01) } Debug = "OEM1 loaded" If (CondRefOf (\_XT2, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDB0) Debug = "OEM1 unloaded" If (CondRefOf (\_XT2, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } /* Unhappy case: normal strings */ PLDT = 0x00 DDB1 = LoadTable ("OEM1", "Intel", "Many", "\\", "\\D281.PLDT", 0x01) If ((PLDT != 0x01)) { Debug = PLDT /* \D281.PLDT */ ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, PLDT, 0x01) Return (0x01) } Debug = "OEM1 loaded" If (CondRefOf (\_XT2, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDB1) Debug = "OEM1 unloaded" If (CondRefOf (\_XT2, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } Return (0x00) } } Method (M281, 0, NotSerialized) { \D281.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0281/RUN.asl0000700000175000017500000000362114773714152026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 281", TCLD, 0x0119, W017)) { SRMT ("m281") M281 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0281/MAIN.asl0000700000175000017500000000413114773714152026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B281.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0281/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0281/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0193/0000700000175000017500000000000014773714151025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0193/DECL.asl0000700000175000017500000000703614773714151026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 193 (local-bugzilla-354): * * SUMMARY: storing opt. results of Not/NAnd/NOr into Buffer Field in 32-bit mode can soil the higher bits of BF * * In 32-bit mode optional storing of the result of any of * Not, NAnd, and NOr ASL operators to Buffer Field of more * than 4 bytes in length can produce non-zero bits outside * the first 32 bits (though zeros are expected): */ Method (MFA5, 1, Serialized) { /* Source Named Object */ Name (SRC0, 0xFEDCBA9876543210) /* Target Buffer Field Object */ CreateField (BD0F, 0x00, 0x45, BFL1) /* Explicit storing */ BFL1 = 0x00 If ((Arg0 == 0x00)) { Store (~SRC0, BFL1) /* \MFA5.BFL1 */ } ElseIf ((Arg0 == 0x01)) { BFL1 = NAnd (SRC0, Ones) } ElseIf ((Arg0 == 0x02)) { BFL1 = NOr (SRC0, Zero) } If ((BFL1 == BD10)) { Debug = "Ok 1" } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BFL1, BD10) } /* Optional storing */ BFL1 = 0x00 If ((Arg0 == 0x00)) { BFL1 = ~SRC0 /* \MFA5.SRC0 */ } ElseIf ((Arg0 == 0x01)) { NAnd (SRC0, Ones, BFL1) /* \MFA5.BFL1 */ } ElseIf ((Arg0 == 0x02)) { NOr (SRC0, Zero, BFL1) /* \MFA5.BFL1 */ } If ((BFL1 == BD10)) { Debug = "Ok 2" } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BFL1, BD10) } } Method (MFA6, 0, NotSerialized) { Store (~0xFEDCBA9876543210, BD10) /* \BD10 */ Debug = "Not operator" MFA5 (0x00) Debug = "NAnd operator" MFA5 (0x01) Debug = "NOr operator" MFA5 (0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0193/RUN.asl0000700000175000017500000000361714773714151026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 193", TCLD, 0xC1, W017)) { SRMT ("mfa6") MFA6 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0193/MAIN.asl0000700000175000017500000000424514773714151026442 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B193.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0193/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0193/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0063/0000700000175000017500000000000014773714150025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0063/DECL.asl0000700000175000017500000000400214773714150026407 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 63: * * SUMMARY: String to Integer conversion contradicts new April 2005 Conversion Rules */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0063/Misc.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0063/File0.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0063/File1.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0063/RUN.asl0000700000175000017500000000462214773714150026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 63", TCLD, 0x3F, W017)) { /* SRMT("md76") */ /* md76() */ SRMT ("mf92") MF92 () SRMT ("mf93") MF93 () SRMT ("mf94") MF94 () SRMT ("mf95") MF95 () SRMT ("mf96") MF96 () SRMT ("mf97") MF97 () SRMT ("mf98") MF98 () SRMT ("mf99") MF99 () SRMT ("mf9a") MF9A () SRMT ("mf9b") MF9B () SRMT ("mf9c") MF9C () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0063/File0.asl0000700000175000017500000005501614773714150026652 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * ToInteger(<0x-hex-dec>) */ Method (MF92, 0, NotSerialized) { /* Hex: 0x - dec */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) ToInteger ("0x0", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger ("0x0000000", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger ("0x1", Local0) If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } ToInteger ("0x12345678", Local0) If ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } ToInteger ("0x12345", Local0) If ((Local0 != 0x00012345)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00012345) } If (F64) { Local1 = "0x1234567890123456" ToInteger (Local1, Local0) If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } Local1 = "0x123456789012345" ToInteger (Local1, Local0) If ((Local0 != 0x0123456789012345)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0123456789012345) } } /* Hex: 0x - hex */ ToInteger ("0xabcdefef", Local0) If ((Local0 != 0xABCDEFEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEF) } ToInteger ("0xabcdef", Local0) If ((Local0 != 0x00ABCDEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00ABCDEF) } If (F64) { Local1 = "0xabcdefefadefbcdf" ToInteger (Local1, Local0) If ((Local0 != 0xABCDEFEFADEFBCDF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEFADEFBCDF) } Local1 = "0xabcdefefadefbcd" ToInteger (Local1, Local0) If ((Local0 != 0x0ABCDEFEFADEFBCD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0ABCDEFEFADEFBCD) } } /* Hex: 0x - dec/hex */ ToInteger ("0x1ab2cd34", Local0) If ((Local0 != 0x1AB2CD34)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD34) } If (F64) { Local1 = "0x1ab2cd340fe05678" ToInteger (Local1, Local0) If ((Local0 != 0x1AB2CD340FE05678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD340FE05678) } Local1 = "0x1ab2cd340fe0" ToInteger (Local1, Local0) If ((Local0 != 0x00001AB2CD340FE0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00001AB2CD340FE0) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * ToInteger() */ Method (MF93, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) ToInteger ("0", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger ("0000000", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger ("000000000000000", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger ("000000000000000000000000000000000000000000", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger ("1", Local0) If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } ToInteger ("1234567890", Local0) If ((Local0 != 0x499602D2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x499602D2) } ToInteger ("1234567", Local0) If ((Local0 != 0x0012D687)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0012D687) } ToInteger ("4294967295", Local0) If ((Local0 != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } If (F64) { Local1 = "18446744073709551615" ToInteger (Local1, Local0) If ((Local0 != 0xFFFFFFFFFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * White space before image of Data is skipped * (all examples above). */ Method (MF94, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) ToInteger (" 0x0", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger (" 0x00000", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger (" 0x1", Local0) If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } ToInteger (" 0x12345678", Local0) If ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } ToInteger (" 0x12345", Local0) If ((Local0 != 0x00012345)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00012345) } If (F64) { Local1 = " 0x1234567890123456" ToInteger (Local1, Local0) If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } Local1 = " 0x123456789012345" ToInteger (Local1, Local0) If ((Local0 != 0x0123456789012345)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0123456789012345) } } ToInteger (" 0xabcdefef", Local0) If ((Local0 != 0xABCDEFEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEF) } ToInteger (" 0xabcdef", Local0) If ((Local0 != 0x00ABCDEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00ABCDEF) } ToInteger ("\t0xabcdef", Local0) If ((Local0 != 0x00ABCDEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00ABCDEF) } If (F64) { Local1 = " 0xabcdefefadefbcdf" ToInteger (Local1, Local0) If ((Local0 != 0xABCDEFEFADEFBCDF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEFADEFBCDF) } Local1 = " 0xabcdefefadefbcd" ToInteger (Local1, Local0) If ((Local0 != 0x0ABCDEFEFADEFBCD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0ABCDEFEFADEFBCD) } } ToInteger (" 0x1ab2cd34", Local0) If ((Local0 != 0x1AB2CD34)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD34) } If (F64) { Local1 = " 0x1ab2cd340fe05678" ToInteger (Local1, Local0) If ((Local0 != 0x1AB2CD340FE05678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD340FE05678) } Local1 = " 0x1ab2cd340fe0" ToInteger (Local1, Local0) If ((Local0 != 0x00001AB2CD340FE0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00001AB2CD340FE0) } } ToInteger (" 0", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger (" \t0000000", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger ("\t000000000000000", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger (" 000000000000000000000000000000000000000000", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger (" 1", Local0) If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } ToInteger (" 1234567890", Local0) If ((Local0 != 0x499602D2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x499602D2) } ToInteger ("\t1234567890", Local0) If ((Local0 != 0x499602D2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x499602D2) } ToInteger ("\t\t\t\t\t\t\t\t\t1234567890", Local0) If ((Local0 != 0x499602D2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x499602D2) } ToInteger (" \t 1234567", Local0) If ((Local0 != 0x0012D687)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0012D687) } ToInteger (" \t 4294967295", Local0) If ((Local0 != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } If (F64) { Local1 = " \t18446744073709551615" ToInteger (Local1, Local0) If ((Local0 != 0xFFFFFFFFFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * Zeros before significant characters in image without '0x' are skipped). */ Method (MF95, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) ToInteger (" 0", Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } ToInteger (" 2", Local0) If ((Local0 != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x02) } ToInteger (" 0xa", Local0) If ((Local0 != 0x0A)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0A) } ToInteger (" 04294967295", Local0) If ((Local0 != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } ToInteger ("04294967295", Local0) If ((Local0 != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } ToInteger ("000000000000000000004294967295", Local0) If ((Local0 != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } ToInteger (" 000000000000000000004294967295", Local0) If ((Local0 != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } ToInteger ("\t000000000000000000004294967295", Local0) If ((Local0 != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } ToInteger ("\t \t \t \t \t000000000000000000004294967295", Local0) If ((Local0 != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } ToInteger ("\t \t \t \t \t04294967295", Local0) If ((Local0 != 0xFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } ToInteger ("\t \t \t \t \t0123456789", Local0) If ((Local0 != 0x075BCD15)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x075BCD15) } ToInteger ("0123456789", Local0) If ((Local0 != 0x075BCD15)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x075BCD15) } ToInteger ("00123456789", Local0) If ((Local0 != 0x075BCD15)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x075BCD15) } If (F64) { Local1 = " \t018446744073709551615" ToInteger (Local1, Local0) If ((Local0 != 0xFFFFFFFFFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) } Local1 = "018446744073709551615" ToInteger (Local1, Local0) If ((Local0 != 0xFFFFFFFFFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) } Local1 = "000000000000000000000000000000000000000018446744073709551615" ToInteger (Local1, Local0) If ((Local0 != 0xFFFFFFFFFFFFFFFF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * ToInteger, exceptions */ Method (MF96, 0, NotSerialized) { /* 5. "1234cd" (non-decimal character in dec-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "1234cd" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 6. "000x1234" (non-decimal character in dec-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "000x1234" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 7. "0x1234cdQ" (non-hex character in '0x'-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x1234cdQ" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x0x12345" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 8. "1234 " (white space in dec image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "1234 " ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 9. "0x1234cd " (white space in '0x'-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x1234cd " ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 10. "0x 1234cdQ" (white space after '0x') */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x 1234" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x0x 1234" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x0x 0x 1234" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x 0x 1234" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 11. (decimal image exceeding maximal) */ /* 32-bit mode – the value exceeding "4294967295" */ If (!F64) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "4294967296" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "123456789012345678904294967296" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = " \t \t\t00004294967296" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "\t0123456789012345678904294967296" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0123456789012345678904294967296" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = " 123456789012345678904294967296" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "\t123456789012345678904294967296" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } /* 64-bit mode – the value exceeding "18446744073709551615" */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "18446744073709551616" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "\t18446744073709551616" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = " 18446744073709551616" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "018446744073709551616" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = " \t000000000018446744073709551616" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 12. "0x12345678901234567" (hex image exceeding maximal) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x12345678901234567" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 13. "0x00000000000001234" (hex image exceeding maximal; no matter that zeros) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x00000000000001234" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x0000000000000000000001234" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 14. "0x123456789" (hex image exceeding maximal; for 32-bit mode only) */ If (!F64) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x123456789" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } /* 15. "0x" (incomplete '0x' image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x " ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x\t" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x 1234" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x\t1234" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* 16. Empty string */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0063/MAIN.asl0000700000175000017500000000413114773714150026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B63.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0063/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0063/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0063/Misc.asl0000700000175000017500000003647214773714150026613 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 63: * * SUMMARY * * String to Integer conversion contradicts new April 2005 Conversion Rules * * EXAMPLES * * Add("0x1111", 0) returns 0x1111 but 0 is expected * Add("12345678901234560", 0x1111111111111111) causes AE_BAD_HEX_CONSTANT * Add("00000000000012345678", 0) returns 0x12345678 but 0x1234 is expected * * ROOT CAUSE * * SPECS (NEW, March 12 2005) * * String --> Integer * * If no integer object exists, a new integer is created. * The integer is initialized to the value zero and the ASCII * string is interpreted as a hexadecimal constant. Each string * character is interpreted as a hexadecimal value (‘0’-‘9’, ‘A’-‘F’, ‘a’-‘f’), * starting with the first character as the most significant digit and ending * with the first non-hexadecimal character, end-of-string, or when the size * of an integer is reached (8 characters for 32-bit integers and 16 characters * for 64-bit integers). Note: the first non-hex character terminates the * conversion without error, and a “0x” prefix is not allowed. */ /* * To be completed !!!!!!! * * What to do else below: * * 1. Set correct results in 32 and 64 bit modes (now it is not done!) * 2. Change places of operands, that is use both: Add("12345678", 0x11111111, Local0) Add(0x11111111, "12345678", Local0) * 3. Pass operators by parameters !!!! * 4. Issues: * 1) octal - 01232211 * 2) zeros at the beginning - 0000000abcdef * 3) large hex image - abcdef123456789123456789 */ /* Store("VVVVVVVVVVVVVVVVVVVVVVVVVV", Debug) Store(0123, Debug) Store(83, Debug) Add(0x1234, 83, Local0) Store(Local0, Debug) return */ /* * All the possible attempts to confuse calculation */ Method (MD74, 0, Serialized) { /* 8 decimal */ Local0 = ("12345678" + 0x11111111) If ((Local0 != 0x23456789)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x23456789) } /* 8 hex */ Local0 = ("abcdefab" + 0x11111111) If ((Local0 != 0xBCDF00BC)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xBCDF00BC) } /* 16 decimal */ Local0 = ("1234567890876543" + 0x1111111111111111) If ((Local0 != 0x23456789A1987654)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x23456789A1987654) } /* 16 hex */ Local0 = ("abcdefababcdfead" + 0x1111111111111111) If ((Local0 != 0xBCDF00BCBCDF0FBE)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xBCDF00BCBCDF0FBE) } /* 17 hex */ Local0 = ("1234567890123456z" + 0x1111111111111111) If ((Local0 != 0x23456789A1234567)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x23456789A1234567) } /* 17 hex (caused AE_BAD_HEX_CONSTANT, 28.09.2005) */ Local0 = ("12345678901234560" + 0x1111111111111111) If ((Local0 != 0x23456789A1234567)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x23456789A1234567) } /* Looks like octal, but should be treated as hex */ Local0 = ("01111" + 0x2222) If ((Local0 != 0x3333)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x3333) } /* The first zeros each must be put into value */ Local0 = ("000010234" + 0x00) If ((Local0 != 0x00010234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00010234) } Local0 = ("000000000000000010234" + 0x00) If ((Local0 != 0x00010234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00010234) } Local0 = ("00000000000000010234" + 0x00) If ((Local0 != 0x00010234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00010234) } Local0 = ("0000000010234" + 0x00) If ((Local0 != 0x00010234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00010234) } Local0 = ("000000010234" + 0x00) If ((Local0 != 0x00010234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00010234) } /* Non-complete 4 hex, should be extended with zeros */ Local0 = ("abcd" + 0x1111) If ((Local0 != 0xBCDE)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xBCDE) } /* Non-complete 5 decimal, should be extended with zeros */ Local0 = ("12345" + 0x1111) If ((Local0 != 0x00013456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00013456) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Too large, all hex, should be trancated */ Local0 = ("abcdef0123456789112233445566778890" + 0x00) If (F64) { If ((Local0 != 0xABCDEF0123456789)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEF0123456789) } } ElseIf ((Local0 != 0xABCDEF01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEF01) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Large, all hex, looks like octal, should be trancated */ Local0 = ("0abcdef0123456789112233445566778890" + 0x1234) If (F64) { If ((Local0 != 0xABCDEF0123456789)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEF0123456789) } } ElseIf ((Local0 != 0xABCDEF01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEF01) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Looks like usual hex, but 'x' terminates conversion */ Local0 = ("0x1111" + 0x2222) If ((Local0 != 0x2222)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x2222) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Empty string, no action - the relevant parameter of Add remains zero */ Local0 = ("" + 0xDE) If ((Local0 != 0xDE)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xDE) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Blank string, no action - the relevant parameter of Add remains zero */ Local0 = (" " + 0x0333) If ((Local0 != 0x0333)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0333) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Blank string, no action - the relevant parameter of Add remains zero */ Local0 = (" " + 0x92) If ((Local0 != 0x92)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x92) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Conversion is terminated just by the first symbol (non-hex) though followed by hex-es, remains zero */ Local0 = ("k1234567" + 0x01E9) If ((Local0 != 0x01E9)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01E9) } /* Conversion is terminated just by the first symbol (non-hex), single */ Local0 = ("k" + 0x000000ABCDEF0000) If ((Local0 != 0x000000ABCDEF0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x000000ABCDEF0000) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Looks like designation of hex (terminated by x) */ Local0 = ("0x" + 0x12345678) If ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Special symbol in the hex designation (terminated by x) */ Local0 = ("x" + 0x00BC614E) If ((Local0 != 0x00BC614E)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00BC614E) } /* Starts with the special symbol in the hex designation (terminated by x) */ Local0 = ("x12345" + 0x6F) If ((Local0 != 0x6F)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x6F) } /* No one hex, conversion is terminated just by the first symbol Z */ Local0 = ("ZZZZ" + 0x0001E240) If ((Local0 != 0x0001E240)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0001E240) } /* Short <= 8, conversion is terminated by non-hex symbol Z */ Local0 = ("abcdZZZZ" + 0x11) If ((Local0 != 0xABDE)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABDE) } /* Short <= 8, hex in the middle (terminated by Z) */ Local0 = ("ZQ123MMM" + 0x0001E240) If ((Local0 != 0x0001E240)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0001E240) } /* Short <= 8, hex at the end (terminated by Z) */ Local0 = ("ZQMMM123" + 0x0001E240) If ((Local0 != 0x0001E240)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0001E240) } /* Long exceeding 16, no one hex */ Local0 = ("zxswqrrrrrrrrrrrrrrtttttttttttttttttttttttttyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuuuu" + 0x7B) If ((Local0 != 0x7B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x7B) } /* Long exceeding 16, hex at the beginning */ Local0 = ("1234zxswqrrrrrrrrrrrrrrtttttttttttttttttttttttttyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuuuu" + 0x53) If ((Local0 != 0x1287)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1287) } /* Long exceeding 16, hex everywhere */ Local0 = ("123z4s5qr6rr7rrrrrrrrr8ttttttt9ttttttattttbttttcyyyydyyeyyyyyyyyuuuuuuuuuuuuuuuuuuuuf" + 0x53) If ((Local0 != 0x0176)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0176) } /* Long exceeding 16, hex at the end */ Local0 = ("zxswqrrrrrrrrrrrrrrtttttttttttttttttttttttttyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuuuu1234" + 0x14D1) If ((Local0 != 0x14D1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x14D1) } /* Long exceeding 16, hex in the middle inside the possible Integer */ Local0 = ("zx1234swqrrrrrrrrrrrrrrtttttttttttttttttttttttttyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuuuu" + 0x00012321) If ((Local0 != 0x00012321)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00012321) } /* Long exceeding 16, hex in the middle beyond the bounds of the possible Integer */ Local0 = ("zxswqrrrrrrrrrrrrrrtttttttttttttttttttttttttyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuu1234uu" + 0x3021) If ((Local0 != 0x3021)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x3021) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Only decimal, much more than 16 */ Store (("123456789012345601112223334446667788990087654" + 0x00), Local1) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Only hex, much more than 16 */ Store (("abcdefabcdefabcdefabcdefabcdefabcdefabcdefabc" + 0x00), Local1) If (F64) { If ((Local0 != 0xABCDEFABCDEFABCD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFABCDEFABCD) } } ElseIf ((Local0 != 0xABCDEFAB)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFAB) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Only decimal, much more than 16, non-hex at the end */ Store (("123456789012345601112223334446667788990087654ZZZZ" + 0x00), Local1) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) /* Only hex, much more than 16, non-hex at the end */ Store (("abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcZZZZ" + 0x00), Local1) If (F64) { If ((Local0 != 0xABCDEFABCDEFABCD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFABCDEFABCD) } } ElseIf ((Local0 != 0xABCDEFAB)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFAB) } CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) } Method (MD75, 0, NotSerialized) { /* Do here the same as md74 but store Result by Store */ } Method (MD76, 0, Serialized) { CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) MD74 () CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) MD75 () CH03 (__METHOD__, ZFFF, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0063/File1.asl0000700000175000017500000014432314773714150026653 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Implicit String to Integer (<0x-hex-dec>) */ Method (MF97, 0, NotSerialized) { /* Hex: 0x - dec */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("0x0" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("0x1" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("0x12345678" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("0x1234567890123456" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* Hex: 0x - hex */ Local0 = ("0xabcdefef" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("0xabcdefefadefbcdf" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* Hex: 0x - dec/hex */ Local0 = ("0x1ab2cd340fe05678" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x1ab2cd340fe0567823456789123456789987" + 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * Implicit String to Integer () */ Method (MF98, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0000000" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("000000000000000000000000000000" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("1" + 0x00) If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("12345678" + 0x00) If ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * Implicit String to Integer () */ Method (MF99, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* Hex: 0x - dec */ Local0 = ("1234567890123456" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } /* Hex: 0x - hex */ Local0 = ("abcdefef" + 0x00) If ((Local0 != 0xABCDEFEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEF) } Local0 = ("abcdefe" + 0x00) If ((Local0 != 0x0ABCDEFE)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0ABCDEFE) } Local0 = ("abcdefefadefbcdf" + 0x00) If (F64) { If ((Local0 != 0xABCDEFEFADEFBCDF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEFADEFBCDF) } } ElseIf ((Local0 != 0xABCDEFEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEF) } /* Hex: 0x - dec/hex */ Local0 = ("1ab2cd340fe05678" + 0x00) If (F64) { If ((Local0 != 0x1AB2CD340FE05678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD340FE05678) } } ElseIf ((Local0 != 0x1AB2CD34)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD34) } Local0 = ("1ab2cd340fe05" + 0x00) If (F64) { If ((Local0 != 0x0001AB2CD340FE05)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0001AB2CD340FE05) } } ElseIf ((Local0 != 0x1AB2CD34)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD34) } Local0 = ("1a" + 0x00) If ((Local0 != 0x1A)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1A) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * No exceptions in special cases which force exceptions on ToInteger */ Method (MF9A, 0, NotSerialized) { /* 5. "1234cd" (non-decimal character in dec-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("1234cd" + 0x00) If ((Local0 != 0x001234CD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x001234CD) } /* 6. "000x1234" (non-decimal character in dec-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("000x1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 7. "0x1234cdQ" (non-hex character in '0x'-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x1234cdQ" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("1234cdQ" + 0x00) If ((Local0 != 0x001234CD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x001234CD) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x0x12345" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 8. "1234 " (white space in dec image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("1234 " + 0x00) If ((Local0 != 0x1234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234) } /* 9. "0x1234cd " (white space in '0x'-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("1234cd " + 0x00) If ((Local0 != 0x001234CD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x001234CD) } /* 10. "0x 1234cdQ" (white space after '0x') */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x0x 0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x 0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 11. (decimal image exceeding maximal) */ /* 32-bit mode – the value exceeding "4294967295" */ If (0x01) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("4294967296" + 0x00) If (F64) { If ((Local0 != 0x0000004294967296)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0000004294967296) } } ElseIf ((Local0 != 0x42949672)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x42949672) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t\t00004294967296" + 0x00) If (F64) { If ((Local0 != 0x0000004294967296)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0000004294967296) } } ElseIf ((Local0 != 0x42949672)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x42949672) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t0123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } } /* 64-bit mode – the value exceeding "18446744073709551615" */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("18446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t18446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 18446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("018446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t000000000018446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } /* 12. "0x12345678901234567" (hex image exceeding maximal) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x12345678901234567" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 13. "0x00000000000001234" (hex image exceeding maximal; no matter that zeros) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x00000000000001234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x0000000000000000000001234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 14. "0x123456789" (hex image exceeding maximal; for 32-bit mode only) */ If (0x01) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x123456789" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } } /* 15. "0x" (incomplete '0x' image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * 2. " 0x1234cd" (white space before image of Data is skipped) * * All the above examples but with the white space before image of Data. */ Method (MF9B, 0, NotSerialized) { /* Hex: 0x - dec */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 0x0" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("\t0x1" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("\t 0x12345678" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = (" \t0x1234567890123456" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* Hex: 0x - hex */ Local0 = (" 0xabcdefef" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("\t\t0xabcdefefadefbcdf" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* Hex: 0x - dec/hex */ Local0 = (" \t \t \t \t \t0x1ab2cd340fe05678" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t \t \t \t \t \t0x1ab2cd340fe0567823456789123456789987" + 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * Implicit String to Integer () * * Method(mf98) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 0" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t\t\t\t0000000" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 000000000000000000000000000000" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t\t\t\t\t000000000000000000000000000000" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t 1" + 0x00) If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t \t12345678" + 0x00) If ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * Implicit String to Integer () * * Method(mf99) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* Hex: 0x - dec */ Local0 = ("\t\t\t\t1234567890123456" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } /* Hex: 0x - hex */ Local0 = ("\t\t\t\tabcdefef" + 0x00) If ((Local0 != 0xABCDEFEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEF) } Local0 = (" abcdefe" + 0x00) If ((Local0 != 0x0ABCDEFE)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0ABCDEFE) } Local0 = (" abcdefefadefbcdf" + 0x00) If (F64) { If ((Local0 != 0xABCDEFEFADEFBCDF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEFADEFBCDF) } } ElseIf ((Local0 != 0xABCDEFEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEF) } /* Hex: 0x - dec/hex */ Local0 = ("\t \t\t\t \t 1ab2cd340fe05678" + 0x00) If (F64) { If ((Local0 != 0x1AB2CD340FE05678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD340FE05678) } } ElseIf ((Local0 != 0x1AB2CD34)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD34) } Local0 = (" 1ab2cd340fe05" + 0x00) If (F64) { If ((Local0 != 0x0001AB2CD340FE05)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0001AB2CD340FE05) } } ElseIf ((Local0 != 0x1AB2CD34)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD34) } Local0 = ("\t1a" + 0x00) If ((Local0 != 0x1A)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1A) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * No exceptions in special cases which force exceptions on ToInteger * * Method(mf9a) */ /* 5. "1234cd" (non-decimal character in dec-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t1234cd" + 0x00) If ((Local0 != 0x001234CD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x001234CD) } /* 6. "000x1234" (non-decimal character in dec-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t\t\t 000x1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 7. "0x1234cdQ" (non-hex character in '0x'-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t\t\t\t 0x1234cdQ" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 1234cdQ" + 0x00) If ((Local0 != 0x001234CD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x001234CD) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t0x0x12345" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 8. "1234 " (white space in dec image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t1234 " + 0x00) If ((Local0 != 0x1234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234) } /* 9. "0x1234cd " (white space in '0x'-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t 1234cd " + 0x00) If ((Local0 != 0x001234CD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x001234CD) } /* 10. "0x 1234cdQ" (white space after '0x') */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t\t \t \t \t\t0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t \t\t \t0x0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t \t \t\t0x0x 0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t \t \t \t\t 0x 0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 11. (decimal image exceeding maximal) */ /* 32-bit mode – the value exceeding "4294967295" */ If (0x01) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t4294967296" + 0x00) If (F64) { If ((Local0 != 0x0000004294967296)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0000004294967296) } } ElseIf ((Local0 != 0x42949672)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x42949672) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t \t\t\t123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t\t00004294967296" + 0x00) If (F64) { If ((Local0 != 0x0000004294967296)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0000004294967296) } } ElseIf ((Local0 != 0x42949672)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x42949672) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t0123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t0123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } } /* 64-bit mode – the value exceeding "18446744073709551615" */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t18446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t18446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 18446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t018446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t000000000018446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } /* 12. "0x12345678901234567" (hex image exceeding maximal) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t0x12345678901234567" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 13. "0x00000000000001234" (hex image exceeding maximal; no matter that zeros) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 0x00000000000001234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t0x0000000000000000000001234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 14. "0x123456789" (hex image exceeding maximal; for 32-bit mode only) */ If (0x01) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x123456789" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } } /* 15. "0x" (incomplete '0x' image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t0x" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 0x" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * 4. "0000000000000000000000001234" * (zeros before significant characters in image without '0x' are skipped). * * Examples: mf9b + 000000000 * * All the above examples but * * with the white space before image of Data * + 000000000 zeros before image */ Method (MF9C, 0, NotSerialized) { /* Hex: 0x - dec */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 0000000000x0" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("\t0000000000x1" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("\t 0000000000x12345678" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = (" \t0000000000x1234567890123456" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* Hex: 0x - hex */ Local0 = (" 0000000000xabcdefef" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = ("\t\t0000000000xabcdefefadefbcdf" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* Hex: 0x - dec/hex */ Local0 = (" \t \t \t \t \t0000000000x1ab2cd340fe05678" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t \t \t \t \t \t0000000000x1ab2cd340fe0567823456789123456789987" + 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * Implicit String to Integer () * * Method(mf98) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 0000000000" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t\t\t\t0000000000000000" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 000000000000000000000000000000000000000" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t\t\t\t\t000000000000000000000000000000000000000" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t 0000000001" + 0x00) If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t \t00000000012345678" + 0x00) If ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * Implicit String to Integer () * * Method(mf99) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* Hex: 0x - dec */ Local0 = ("\t\t\t\t0000000001234567890123456" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } /* Hex: 0x - hex */ Local0 = ("\t\t\t\t000000000abcdefef" + 0x00) If ((Local0 != 0xABCDEFEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEF) } Local0 = (" 000000000abcdefe" + 0x00) If ((Local0 != 0x0ABCDEFE)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0ABCDEFE) } Local0 = (" 000000000abcdefefadefbcdf" + 0x00) If (F64) { If ((Local0 != 0xABCDEFEFADEFBCDF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEFADEFBCDF) } } ElseIf ((Local0 != 0xABCDEFEF)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCDEFEF) } /* Hex: 0x - dec/hex */ Local0 = ("\t \t\t\t \t 0000000001ab2cd340fe05678" + 0x00) If (F64) { If ((Local0 != 0x1AB2CD340FE05678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD340FE05678) } } ElseIf ((Local0 != 0x1AB2CD34)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD34) } Local0 = (" 0000000001ab2cd340fe05" + 0x00) If (F64) { If ((Local0 != 0x0001AB2CD340FE05)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0001AB2CD340FE05) } } ElseIf ((Local0 != 0x1AB2CD34)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1AB2CD34) } Local0 = ("\t0000000001a" + 0x00) If ((Local0 != 0x1A)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1A) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * No exceptions in special cases which force exceptions on ToInteger * * Method(mf9a) */ /* 5. "1234cd" (non-decimal character in dec-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t0000000001234cd" + 0x00) If ((Local0 != 0x001234CD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x001234CD) } /* 6. "000x1234" (non-decimal character in dec-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t\t\t 000000000000x1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 7. "0x1234cdQ" (non-hex character in '0x'-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t\t\t\t 0000000000x1234cdQ" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 0000000001234cdQ" + 0x00) If ((Local0 != 0x001234CD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x001234CD) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t0000000000x0x12345" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 8. "1234 " (white space in dec image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t0000000001234 " + 0x00) If ((Local0 != 0x1234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234) } /* 9. "0x1234cd " (white space in '0x'-image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t 0000000001234cd " + 0x00) If ((Local0 != 0x001234CD)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x001234CD) } /* 10. "0x 1234cdQ" (white space after '0x') */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t\t \t \t \t\t0000000000x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t \t\t \t0000000000x0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t \t \t\t0000000000x0x 0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t \t \t \t\t 0000000000x 0x 1234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 11. (decimal image exceeding maximal) */ /* 32-bit mode – the value exceeding "4294967295" */ If (0x01) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t0000000004294967296" + 0x00) If (F64) { If ((Local0 != 0x0000004294967296)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0000004294967296) } } ElseIf ((Local0 != 0x42949672)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x42949672) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t \t\t\t000000000123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t \t\t00000000000004294967296" + 0x00) If (F64) { If ((Local0 != 0x0000004294967296)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0000004294967296) } } ElseIf ((Local0 != 0x42949672)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x42949672) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t0000000000123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t0000000000123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 000000000123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t000000000123456789012345678904294967296" + 0x00) If (F64) { If ((Local0 != 0x1234567890123456)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1234567890123456) } } ElseIf ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } } /* 64-bit mode – the value exceeding "18446744073709551615" */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t\t00000000018446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t00000000018446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 00000000018446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t000000000018446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t000000000000000000018446744073709551616" + 0x00) If (F64) { If ((Local0 != 0x1844674407370955)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1844674407370955) } } ElseIf ((Local0 != 0x18446744)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x18446744) } /* 12. "0x12345678901234567" (hex image exceeding maximal) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t\t0000000000x12345678901234567" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 13. "0x00000000000001234" (hex image exceeding maximal; no matter that zeros) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 0000000000x00000000000001234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" \t\t0000000000x0000000000000000000001234" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* 14. "0x123456789" (hex image exceeding maximal; for 32-bit mode only) */ If (0x01) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("0x123456789" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } } /* 15. "0x" (incomplete '0x' image) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("\t0000000000x" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" 0000000000x" + 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0021/0000700000175000017500000000000014773714147025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0021/DECL.asl0000700000175000017500000000431114773714147026412 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0021: * * SUMMARY: LLessEqual works incorrectly for Buffer-operands containing zero */ Method (MDB6, 0, NotSerialized) { Local0 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x26 // !".& } Local1 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x25 // !".% } If ((Local0 <= Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0021/RUN.asl0000700000175000017500000000361614773714147026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 21", TCLD, 0x15, W017)) { SRMT ("mdb6") MDB6 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0021/MAIN.asl0000700000175000017500000000413114773714147026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B21.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0021/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0021/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0268/0000700000175000017500000000000014773714152025211 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0268/DECL.asl0000700000175000017500000000563614773714152026436 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 268: * * SUMMARY: The manner parameters are passed to method in ACPICA contradicts to MS */ Method (M023, 0, Serialized) { Name (I000, 0xABCD0000) Method (MM00, 1, NotSerialized) { Debug = "The view from inside method MM00:" Debug = "--------- i000 before re-writing i000:" Debug = I000 /* \M023.I000 */ Debug = "--------- Arg0 before re-writing i000:" Debug = Arg0 I000 = 0x11223344 Debug = "--------- Arg0 after re-writing i000:" Debug = Arg0 Debug = "--------- i000 after re-writing i000:" Debug = I000 /* \M023.I000 */ If ((Arg0 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, 0xABCD0000) } } Debug = "m000: test 0 (Integer passed to method)" Debug = "========= i000 from m000 before re-writing i000:" Debug = I000 /* \M023.I000 */ MM00 (I000) Debug = "========= i000 from m000 after re-writing i000:" Debug = I000 /* \M023.I000 */ If ((I000 != 0x11223344)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x11223344) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0268/RUN.asl0000700000175000017500000000362114773714152026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 268", TCLD, 0x010C, W017)) { SRMT ("m023") M023 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0268/MAIN.asl0000700000175000017500000000413114773714152026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B268.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0268/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0268/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0246/0000700000175000017500000000000014773714152025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0246/DECL.asl0000700000175000017500000000532314773714152026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 246: * * SUMMARY: Switch implementation can cause AE_ALREADY_EXISTS exception when Switch * is within While */ Method (M17B, 0, Serialized) { Local0 = 0x02 Local1 = 0x00 Local2 = 0x00 While (Local0) { If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } Local2++ Switch (ToInteger (Local0)) { Case (0x01) { Debug = "Case 1" Local1 += 0x01 } Case (0x02) { Debug = "Case 2" Local1 += 0x02 } } If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } Local2++ Local0-- } If ((Local1 != 0x03)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x03) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0246/RUN.asl0000700000175000017500000000361714773714152026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 246", TCLD, 0xF6, W017)) { SRMT ("m17b") M17B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0246/MAIN.asl0000700000175000017500000000413114773714152026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "b246.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0246/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0246/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0241/0000700000175000017500000000000014773714152025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0241/DECL.asl0000700000175000017500000000553514773714152026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 241: * * SUMMARY: Crash of AML interpreter after an exception in * AcpiExReadDataFromField called from AcpiExResolveObjectToValue * * Note. The crash occurred when acpiexec is compiled in DEBUG mode. * July 2013: Problem is fixed with change for DeRefOf operator with FieldUnits. */ Method (M129, 0, NotSerialized) { Method (M000, 1, Serialized) { OperationRegion (RGN1, SystemMemory, 0x0200, Arg0) Field (RGN1, ByteAcc, NoLock, Preserve) { FU01, 2049 } Local2 = RefOf (FU01) If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } /* Read, Access out of OpRegion */ Local0 = DerefOf (Local2) /* Store above should cause 2 errors: * 1) AE_AML_REGION_LIMIT * 2) AE_AML_NO_RETURN_VALUE */ If ((EXC0 == 0x02)) { EXC0 = 0x01 } CH04 (__METHOD__, 0x00, 0x3E, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_NO_RETURN_VALUE */ } M000 (0x0100) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0241/RUN.asl0000700000175000017500000000361714773714152026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 241", TCLD, 0xF1, W017)) { SRMT ("m129") M129 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0241/MAIN.asl0000700000175000017500000000413114773714152026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B241.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0241/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0241/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0245_SPEC/0000700000175000017500000000000014773714152026016 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0245_SPEC/DECL.asl0000700000175000017500000000322214773714152027230 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 245: * * SUMMARY: Switch statement translation example in ACPI Spec is contradictory */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0142_ASL/0000700000175000017500000000000014773714151025676 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0142_ASL/DECL.asl0000700000175000017500000000354114773714151027114 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 142: * * SUMMARY: The ASL Compiler doesn't support non-empty list of parameters of Function Declaration */ Function(mf2d, IntObj) { Return (0) } Function(mf2e, IntObj, IntObj) { Return (1) } Method(mf2f) { Store(mf2d(), Debug) Store(mf2e(), Debug) Store(mf2e(1), Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0142_ASL/MAIN.asl0000700000175000017500000000402414773714151027126 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B142.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0142_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0216/0000700000175000017500000000000014773714152025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0216/DECL.asl0000700000175000017500000007077614773714152026436 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 216(local-bugzilla-341): * * SUMMARY: exception AE_NOT_FOUND on CreateField under specific conditions * * Failed to find Buffer for CreateField both declared inside * some of these types: Device/ThermalZone/Processor/PowerResource * which in turn are declared inside some method thus created * dynamically. * * APPEARANCE: * Call method which declares object of any of these types: * Device * ThermalZone * Processor * PowerResource * which contains internal declarations of Buffer of name which * there are no in the higher levels and run CreateField for that * Buffer. If run method then get mentioned exception. * * May suspect, at first glance, that if the name of that Buffer fit * the name of some higher level Buffer (no exception in that case) * then CreateField deals with that higher level Buffer. Though, the * example with dd12 doesn't count in favour of that reason. * * Note: add verifications while fixing the bug (access to Buffer Fields..). */ /* ======== 0 ======= */ Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) Name (BD12, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) Device (DD12) { } Device (DD0E) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } ThermalZone (TZD3) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } PowerResource (PWD3, 0x01, 0x0000) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Method (M81E, 0, Serialized) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } /* ======== 1 ======= */ Device (DD0F) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD4) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD4, 0x00, 0xFFFFFFFF, 0x00) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD4, 0x01, 0x0000) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Method (M81F, 0, Serialized) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } /* ======== 2 ======= */ Device (DD10) { CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD5) { CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD5, 0x00, 0xFFFFFFFF, 0x00) { CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD5, 0x01, 0x0000) { CreateField (BD11, 0x00, 0x08, BF00) } Method (M820, 0, NotSerialized) { CreateField (BD11, 0x00, 0x08, BF00) } /* ======== 3 ======= */ Device (DD11) { /* ======== 0 ======= */ Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) Device (DD0E) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } ThermalZone (TZD3) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } PowerResource (PWD3, 0x01, 0x0000) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Method (M81E, 0, Serialized) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } /* ======== 1 ======= */ Device (DD0F) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD4) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD4, 0x00, 0xFFFFFFFF, 0x00) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD4, 0x01, 0x0000) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Method (M81F, 0, Serialized) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } /* ======== 2 ======= */ Device (DD10) { CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD5) { CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD5, 0x00, 0xFFFFFFFF, 0x00) { CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD5, 0x01, 0x0000) { CreateField (BD11, 0x00, 0x08, BF00) } Method (M820, 0, NotSerialized) { CreateField (BD11, 0x00, 0x08, BF00) } } ThermalZone (TZD6) { /* ======== 0 ======= */ Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) Device (DD0E) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } ThermalZone (TZD3) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } PowerResource (PWD3, 0x01, 0x0000) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Method (M81E, 0, Serialized) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } /* ======== 1 ======= */ Device (DD0F) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD4) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD4, 0x00, 0xFFFFFFFF, 0x00) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD4, 0x01, 0x0000) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Method (M81F, 0, Serialized) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } /* ======== 2 ======= */ Device (DD10) { CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD5) { CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD5, 0x00, 0xFFFFFFFF, 0x00) { CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD5, 0x01, 0x0000) { CreateField (BD11, 0x00, 0x08, BF00) } Method (M820, 0, NotSerialized) { CreateField (BD11, 0x00, 0x08, BF00) } } Processor (PRD6, 0x00, 0xFFFFFFFF, 0x00) { /* ======== 0 ======= */ Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) Device (DD0E) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } ThermalZone (TZD3) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } PowerResource (PWD3, 0x01, 0x0000) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Method (M81E, 0, Serialized) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } /* ======== 1 ======= */ Device (DD0F) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD4) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD4, 0x00, 0xFFFFFFFF, 0x00) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD4, 0x01, 0x0000) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Method (M81F, 0, Serialized) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } /* ======== 2 ======= */ Device (DD10) { CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD5) { CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD5, 0x00, 0xFFFFFFFF, 0x00) { CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD5, 0x01, 0x0000) { CreateField (BD11, 0x00, 0x08, BF00) } Method (M820, 0, NotSerialized) { CreateField (BD11, 0x00, 0x08, BF00) } } PowerResource (PWD6, 0x01, 0x0000) { /* ======== 0 ======= */ Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) Device (DD0E) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } ThermalZone (TZD3) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } PowerResource (PWD3, 0x01, 0x0000) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Method (M81E, 0, Serialized) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } /* ======== 1 ======= */ Device (DD0F) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD4) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD4, 0x00, 0xFFFFFFFF, 0x00) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD4, 0x01, 0x0000) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Method (M81F, 0, Serialized) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } /* ======== 2 ======= */ Device (DD10) { CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD5) { CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD5, 0x00, 0xFFFFFFFF, 0x00) { CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD5, 0x01, 0x0000) { CreateField (BD11, 0x00, 0x08, BF00) } Method (M820, 0, NotSerialized) { CreateField (BD11, 0x00, 0x08, BF00) } } Method (M821, 0, Serialized) { /* ======== 0 ======= */ Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) Device (DD0E) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } ThermalZone (TZD3) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } PowerResource (PWD3, 0x01, 0x0000) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } Method (M81E, 0, Serialized) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } /* ======== 1 ======= */ Device (DD0F) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD4) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD4, 0x00, 0xFFFFFFFF, 0x00) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD4, 0x01, 0x0000) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } Method (M81F, 0, Serialized) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } /* ======== 2 ======= */ Device (DD10) { CreateField (BD11, 0x00, 0x08, BF00) } ThermalZone (TZD5) { CreateField (BD11, 0x00, 0x08, BF00) } Processor (PRD5, 0x00, 0xFFFFFFFF, 0x00) { CreateField (BD11, 0x00, 0x08, BF00) } PowerResource (PWD5, 0x01, 0x0000) { CreateField (BD11, 0x00, 0x08, BF00) } Method (M820, 0, NotSerialized) { CreateField (BD11, 0x00, 0x08, BF00) } M81E () M81F () M820 () } /* ======== 4 ======= */ Method (M822, 0, Serialized) { Device (DD0E) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } } Method (M823, 0, Serialized) { ThermalZone (TZD3) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } } Method (M824, 0, Serialized) { Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } } Method (M825, 0, Serialized) { PowerResource (PWD3, 0x01, 0x0000) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } } Method (M826, 0, NotSerialized) { Method (M000, 0, Serialized) { Name (BD13, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD13, 0x00, 0x08, BF00) } } /* ======== 5 ======= */ Method (M827, 0, Serialized) { Device (DD0E) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } } Method (M828, 0, Serialized) { ThermalZone (TZD3) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } } Method (M829, 0, Serialized) { Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } } Method (M82A, 0, Serialized) { PowerResource (PWD3, 0x01, 0x0000) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } } Method (M82B, 0, NotSerialized) { Method (M000, 0, Serialized) { Name (BD11, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (BD11, 0x00, 0x08, BF00) } } /* ======== 6 ======= */ Method (M82C, 0, Serialized) { Device (DD0E) { CreateField (BD12, 0x00, 0x08, BF00) } } Method (M82D, 0, Serialized) { ThermalZone (TZD3) { CreateField (BD12, 0x00, 0x08, BF00) } } Method (M82E, 0, Serialized) { Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { CreateField (BD12, 0x00, 0x08, BF00) } } Method (M82F, 0, Serialized) { PowerResource (PWD3, 0x01, 0x0000) { CreateField (BD12, 0x00, 0x08, BF00) } } Method (M830, 0, NotSerialized) { Method (M000, 0, NotSerialized) { CreateField (BD12, 0x00, 0x08, BF00) } } /* ======== 7 ======= */ Method (M832, 0, Serialized) { Device (DD0E) { Name (DD12, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (DD12, 0x00, 0x08, BF00) } } Method (M833, 0, Serialized) { ThermalZone (TZD3) { Name (DD12, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (DD12, 0x00, 0x08, BF00) } } Method (M834, 0, Serialized) { Processor (PRD3, 0x00, 0xFFFFFFFF, 0x00) { Name (DD12, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (DD12, 0x00, 0x08, BF00) } } Method (M835, 0, Serialized) { PowerResource (PWD3, 0x01, 0x0000) { Name (DD12, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (DD12, 0x00, 0x08, BF00) } } Method (M836, 0, NotSerialized) { Method (M000, 0, Serialized) { Name (DD12, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (DD12, 0x00, 0x08, BF00) } } Method (M831, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m831-0") If (0x01) { M81E () M81F () M820 () M821 () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m831-1") If (0x01) { M822 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M823 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M824 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M825 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M826 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m831-2") If (0x01) { M827 () M828 () M829 () M82A () M82B () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m831-3") If (0x01) { M82C () M82D () M82E () M82F () M830 () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m831-4") If (0x01) { M832 () M833 () M834 () M835 () M836 () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0216/RUN.asl0000700000175000017500000000356514773714152026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 216", TCLD, 0xD8, W017)) { M831 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0216/MAIN.asl0000700000175000017500000000413114773714152026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B216.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0216/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0216/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0196/0000700000175000017500000000000014773714151025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0196/DECL.asl0000700000175000017500000000403314773714151026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 196: * * SUMMARY: Incorrect conversion of String to Integer for ToInteger("0x0x12345678") */ Method (MFB0, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x0x12345678" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0x22, 0x00, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0196/RUN.asl0000700000175000017500000000361714773714151026367 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 196", TCLD, 0xC4, W017)) { SRMT ("mfb0") MFB0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0196/MAIN.asl0000700000175000017500000000413114773714151026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B196.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0196/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0196/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0009/0000700000175000017500000000000014773714147025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0009/DECL.asl0000700000175000017500000000451114773714147026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0009: * * SUMMARY: Exception on ObjectType passed with not initialized values (in LocalX) */ Method (MDA6, 0, NotSerialized) { Local7 = ObjectType (Local0) If ((Local7 != C008)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C008) } } Method (MDA7, 1, NotSerialized) { If (Arg0) { Local0 = 0x00 } Local7 = ObjectType (Local0) If ((Local7 != C008)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C008) } } Method (MDA8, 0, NotSerialized) { MDA6 () MDA7 (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0009/RUN.asl0000700000175000017500000000361514773714147026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 9", TCLD, 0x09, W017)) { SRMT ("mda8") MDA8 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0009/MAIN.asl0000700000175000017500000000413114773714147026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B9.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0009/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0009/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/README0000700000175000017500000000323514773714153025501 0ustar ivanhuivanhuCONTENTS The tests to demonstrate the encountered bugs of ACPICA and prove their actual fixes. Pass of the test means the relevant bug has been fixed. All the useful additional tests designed during the work on bug fixes and related to those bug's nearest conditions could be accumulated here as well. N - internal number of bug N_ASL - demo test for iASL type bug, no .aml result code is expected or produced, nothing to verify in run-mode. Should be checked separately by running iASl and checking the result of compilation. N_SPEC - bug of specification N_ML - demo test for Memory leak type bug, usually contains the program allowing to compare (to visually observe) the rate of execution before and after fixing the bug N - independing on the actual component producing bug #N there is an .aml result code of compilation of test which performs some operations and verifies their results, so should be run. PASS result of run means the bug #N has been fixed. ASL_RUNTIME - when bug of iASL has been fixed add this test to bdemo/bdemo to run it too ACTION_REQUIRED - could not be run automatically, to check this bug-fix some actions are required DEMO_IMPOSSIBLE - impossible to verify bug-fix, so no demo test provided bdemo to compile all the bdemo tests as one DefinitionBlock bdemof to compile all the bdemof tests as one DefinitionBlock The tests require utilyzing of the -f option on the ASL compilation stage. ASL Compiler: -f - Ignore errors, force creation of AML output file(s) acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0180_ASL_RUNTIME/0000700000175000017500000000000014773714151027103 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0180_ASL_RUNTIME/DECL.asl0000700000175000017500000000537714773714151030332 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0180: * * SUMMARY: Failed to compiler Switch/Case operators */ Method (ME89, 1, Serialized) { Local0 = 0xFF Switch (ToInteger (Arg0)) { Case (0x00) { Local0 = 0x00 } Case (0x01) { Local0 = 0x01 } Default { Local0 = 0x02 } } If ((Arg0 == 0x00)) { If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } } If ((Arg0 == 0x01)) { If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } } If ((Arg0 == 0x02)) { If ((Local0 != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x02) } } } Method (ME8A, 0, NotSerialized) { ME89 (0x00) ME89 (0x01) ME89 (0x02) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0180_ASL_RUNTIME/RUN.asl0000700000175000017500000000361714773714151030262 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 180", TCLD, 0xB4, W017)) { SRMT ("me8a") ME8A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0180_ASL_RUNTIME/MAIN.asl0000700000175000017500000000427714773714151030345 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B180.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0180_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0180_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0213/0000700000175000017500000000000014773714152025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0213/DECL.asl0000700000175000017500000000514314773714152026415 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 213 (local-bugzilla-342): * * SUMMARY: abort of AcpiExec on accessing internal object of terminated method by returned IRef * * Crash of AcpiExec occurs when an attempt is * made to access an internal object of method * by Index reference to that object returned * by method (so, the object is dead at the * time it is tried). */ Method (M81B, 0, NotSerialized) { Method (M000, 0, Serialized) { Name (S000, "string") Name (P000, Package (0x01) { S000 }) Store (P000 [0x00], Local0) Debug = DerefOf (Local0) Return (Local0) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = M000 () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) Debug = DerefOf (Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0213/RUN.asl0000700000175000017500000000401214773714152026344 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 213", TCLD, 0xD5, W017)) { SRMT ("m81b") If (Y213) { M81B () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0213/MAIN.asl0000700000175000017500000000413114773714152026426 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B213.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0213/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0213/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0127/0000700000175000017500000000000014773714150025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0127/DECL.asl0000700000175000017500000000755414773714150026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 127: * * SUMMARY: Unexpectedly CopyObject of immediately passed Index reference is not reference */ /* Store */ Method (MF13, 0, NotSerialized) { Local1 = Local0 = PD11 [0x00] CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Local0 + 0x00), Local2) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Local1 + 0x00), Local2) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local1 = Local0 = PD11 [0x01] CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Local0 + 0x00), Local2) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Local1 + 0x00), Local2) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } /* CopyObject */ Method (MF14, 0, NotSerialized) { CopyObject (Local0 = PD11 [0x00], Local1) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Local0 + 0x00), Local2) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Local1 + 0x00), Local2) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Method (MF15, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (Local0 = PD11 [0x01], Local1) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Local0 + 0x00), Local2) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Local1 + 0x00), Local2) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Method (MF16, 0, NotSerialized) { If (0x01) { MF13 () } If (0x01) { MF14 () } If (0x01) { MF15 () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0127/RUN.asl0000700000175000017500000000361714773714150026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 127", TCLD, 0x7F, W017)) { SRMT ("mf16") MF16 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0127/MAIN.asl0000700000175000017500000000413114773714150026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B127.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0127/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0127/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0071_ASL/0000700000175000017500000000000014773714150025676 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0071_ASL/DECL.asl0000700000175000017500000000607614773714150027122 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0071: * * SUMMARY: The ASL Compiler should reject Resource Descriptors where ResourceSourceIndex is omitted but ResourceSource is present * * Compiler should return error... */ Method(me0a) { Name (RT00, ResourceTemplate () { DWordIO ( , , , , , 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff,, "PATHPATHPATH") DWordMemory ( , , , , , ReadOnly, 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff,, "PATHPATHPATH") Interrupt (ResourceConsumer, Edge, ActiveLow, Shared ,, "PATHPATHPATH") {0xfcfdfeff} QWordIO ( , , , , , 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff ,, "PATHPATHPATH") QWordMemory ( , , , , , ReadOnly, 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff ,, "PATHPATHPATH") WordBusNumber ( , , , , 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff ,, "PATHPATHPATH") WordIO ( , , , , , 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff ,, "PATHPATHPATH") DWordSpace (0xc0, , , , , 0x5a, 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff,, "PATHPATHPATH") QWordSpace (0xc0, , , , , 0x5a, 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff ,, "PATHPATHPATH") WordSpace (0xc0, , , , , 0x5a, 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff ,, "PATHPATHPATH") }) Store(RT00, Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0071_ASL/MAIN.asl0000700000175000017500000000402314773714150027125 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B71.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0071_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0150/0000700000175000017500000000000014773714151025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0150/DECL.asl0000700000175000017500000001273514773714151026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 150: * * SUMMARY: No exception when Serialized Method is run after the higher level mutex acquiring * * EXAMPLES * * ROOT CAUSE * * SEE ALSO: */ /* 1. Acquire of the same mux several times without Releases 2. Acquire+Releases sequence of the same mux several times 3. Acquire mux level 7 then Release it and try Acquire mux level 6 4. Acquire mux level 7 then try Acquire mux level 6 5. Check all the specified features */ /* * The proper sequence of several enclosed Acquire operations. * * Acquire N level mutex then acquire (N+k) level mutex. */ Method (MD8A, 0, Serialized) { Mutex (MX00, 0x00) Mutex (MX01, 0x01) Local0 = 0x00 Local1 = 0x00 If (Acquire (MX00, 0x0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Local0 = 0x01 If (Acquire (MX01, 0x0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Local1 = 0x01 } } If (Local1) { Release (MX01) } If (Local0) { Release (MX00) } } /* * Improper sequence of several enclosed Acquire operations. * * Acquire N level mutex then acquire (N-k) level mutex. * Exception AE_AML_MUTEX_ORDER is expected in this case. */ Method (MD8B, 0, Serialized) { Mutex (MX00, 0x01) Mutex (MX01, 0x00) Local0 = 0x00 Local1 = 0x00 If (Acquire (MX00, 0x0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Local0 = 0x01 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Acquire (MX01, 0x0001) CH04 (__METHOD__, 0x00, 0x40, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ } If (Local0) { Release (MX00) } } /* * The proper sequence of several enclosed operations. * * Acquire N level mutex then call to Serialized Method * declared with (N+k) SyncLevel. */ Method (MD8C, 0, Serialized) { Mutex (MX00, 0x00) Method (MX01, 0, Serialized, 1) { Debug = "Run Method mx01" } Local0 = 0x00 Local1 = 0x00 If (Acquire (MX00, 0x0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Local0 = 0x01 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MX01 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } If (Local0) { Release (MX00) } } /* * Improper sequence of several enclosed operations. * * Acquire N level mutex then call to Serialized Method declared with (N-k) SyncLevel. * Exception AE_AML_MUTEX_ORDER is expected in this case. */ Method (MD8D, 0, Serialized) { Mutex (MX00, 0x01) Method (MX01, 0, Serialized) { Debug = "Run Method mx01" } Local0 = 0x00 Local1 = 0x00 If (Acquire (MX00, 0x0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Local0 = 0x01 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MX01 () CH04 (__METHOD__, 0x00, 0x40, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ } If (Local0) { Release (MX00) } } Method (MD8E, 0, NotSerialized) { MD8A () MD8B () MD8C () MD8D () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0150/RUN.asl0000700000175000017500000000361714773714151026355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 150", TCLD, 0x96, W017)) { SRMT ("md8e") MD8E () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0150/MAIN.asl0000700000175000017500000000424514773714151026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B150.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0150/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0150/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0197/0000700000175000017500000000000014773714151025211 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0197/DECL.asl0000700000175000017500000000406314773714151026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 197: * * SUMMARY: No exception occurs for incorrect String-image of Integer passed to ToInteger like "0x 1234" */ Method (MFB1, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "0x 12345678" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0x22, 0x00, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0197/RUN.asl0000700000175000017500000000361714773714151026370 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 197", TCLD, 0xC5, W017)) { SRMT ("mfb1") MFB1 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0197/MAIN.asl0000700000175000017500000000413114773714151026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B197.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0197/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0197/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0188/0000700000175000017500000000000014773714151025211 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0188/DECL.asl0000700000175000017500000000476014773714151026433 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 188: * * SUMMARY: ConcatenateResTemplate doesn't consume an empty buffer */ Method (MF7C, 0, Serialized) { Name (B000, ResourceTemplate () { IRQNoFlags () {1} }) Name (RT00, ResourceTemplate () { IRQNoFlags () {1} }) /* Empty buffer */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = 0x00 Local1 = Buffer (Local0){} Local2 = ConcatenateResTemplate (RT00, Local1) If ((Local2 != B000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, B000) } If ((RT00 != B000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, RT00, B000) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0188/RUN.asl0000700000175000017500000000361714773714151026370 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 188", TCLD, 0xBC, W017)) { SRMT ("mf7c") MF7C () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0188/MAIN.asl0000700000175000017500000000413114773714151026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B188.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0188/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0188/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0117/0000700000175000017500000000000014773714150025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0117/DECL.asl0000700000175000017500000000446514773714150026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 117: * * SUMMARY: Modifying the copy of the String obtained by the Store operator modifies the initial String Object also */ Method (ME88, 0, Serialized) { Name (S000, "String") Local0 = S000 /* \ME88.S000 */ Debug = S000 /* \ME88.S000 */ Debug = Local0 Local0 [0x03] = 0x61 Debug = "Modification of the copied string" If ((Local0 != "Strang")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "Strang") } If ((S000 != "String")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, S000, "String") } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0117/RUN.asl0000700000175000017500000000361714773714150026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 117", TCLD, 0x75, W017)) { SRMT ("me88") ME88 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0117/MAIN.asl0000700000175000017500000000413114773714150026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B117.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0117/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0117/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0220/0000700000175000017500000000000014773714152025175 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0220/DECL.asl0000700000175000017500000000533614773714152026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 220: * * SUMMARY: Inconsistent "Access is available/unavailable" _REG method calls */ Device (D220) { Name (ACTV, 0x00) Name (DACT, 0x00) Name (NERR, 0x00) Method (_REG, 2, NotSerialized) // _REG: Region Availability { Debug = "_REG:" Debug = Arg0 Debug = Arg1 If (Arg0) { NERR++ } ElseIf ((Arg1 > 0x01)) { NERR++ } ElseIf (Arg1) { ACTV++ } Else { DACT++ } } OperationRegion (OPR0, SystemMemory, 0x2000, 0x0100) } Method (M108, 0, NotSerialized) { If (\D220.NERR) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, \D220.NERR, 0x00) } Local0 = (\D220.ACTV - \D220.DACT) If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0220/RUN.asl0000700000175000017500000000361714773714152026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 220", TCLD, 0xDC, W017)) { SRMT ("m108") M108 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0220/MAIN.asl0000700000175000017500000000413114773714152026424 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B220.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0220/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0220/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0143/0000700000175000017500000000000014773714151025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0143/DECL.asl0000700000175000017500000000524214773714151026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 143: * * SUMMARY: The ASL Compiler doesn't support more than two-element long list of ParameterTypes argument of Method */ Method (MF30, 2, Serialized) { Return ((Arg0 + Arg1)) } Method (MF31, 1, Serialized) { Return (Arg0) } Method (MF32, 3, Serialized) { Return (((Arg0 + Arg1) + Arg2)) } Method (MF33, 0, NotSerialized) { Local0 = MF30 (0x01, 0x02) If ((Local0 != 0x03)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x03) } Local0 = MF31 ("FFFF") If ((Local0 != "FFFF")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "FFFF") } Local0 = MF32 (0x03, "F", Buffer (0x01) { 0xFF // . }) If ((Local0 != 0x0111)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0111) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0143/RUN.asl0000700000175000017500000000361714773714151026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 143", TCLD, 0x8F, W017)) { SRMT ("mf33") MF33 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0143/MAIN.asl0000700000175000017500000000413214773714151026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B143.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0143/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0143/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0172_OUTSTAND_ALLOC/0000700000175000017500000000000014773714151027435 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0172_OUTSTAND_ALLOC/DECL.asl0000700000175000017500000000402114773714151030645 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 172: * * SUMMARY: Outstanding allocations to be investigated * * COMMENT: * * The message Outstanding: 0xFFFFFFFE allocations after execution * is caused by the Store(id1e, ) operations (see demo). * There is no any visible reason to get it. * The cause should be investigated (and eliminated). */ Method(mf5f) { Store(id1e, ed04) Store(id1e, pd10) // Store("Outstanding allocations to be investigated!", Debug) // err("", zFFF, __LINE__, 0, 0, 0, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0172_OUTSTAND_ALLOC/RUN.asl0000700000175000017500000000317414773714151030612 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 172", TCLD, 172, W017)) { SRMT("mf5f") mf5f() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0172_OUTSTAND_ALLOC/MAIN.asl0000700000175000017500000000430414773714151030666 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B172.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0172_OUTSTAND_ALLOC/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0172_OUTSTAND_ALLOC/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0184/0000700000175000017500000000000014773714151025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0184/DECL.asl0000700000175000017500000000401214773714151026415 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 184: * * SUMMARY: Nesting Methods cause exceptions */ Method (MF7B, 0, NotSerialized) { Method (M000, 0, NotSerialized) { Debug = "m000" } Debug = "mf7b" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0184/RUN.asl0000700000175000017500000000361714773714151026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 184", TCLD, 0xB8, W017)) { SRMT ("mf7b") MF7B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0184/MAIN.asl0000700000175000017500000000413114773714151026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B184.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0184/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0184/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0228/0000700000175000017500000000000014773714152025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0228/DECL.asl0000700000175000017500000000451514773714152026425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 228: * * SUMMARY: Store to the RefOf reference immediately returned by Method doesn't work */ Method (MF1C, 0, NotSerialized) { Return (RefOf (ID12)) } Method (MF1D, 0, NotSerialized) { Local0 = RefOf (ID12) Return (Local0) } Method (MF1E, 0, NotSerialized) { /* // Removed 09/2015 Store to method invocation is not supported // Case mf1c Store(5, mf1c()) if (LNotEqual(id12, 5)) { err("", zFFF, __LINE__, 0, 0, id12, 5) } // Case mf1d Store(6, mf1d()) if (LNotEqual(id12, 6)) { err("", zFFF, __LINE__, 0, 0, id12, 6) } */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0228/RUN.asl0000700000175000017500000000361714773714152026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 228", TCLD, 0xE4, W017)) { SRMT ("mf1e") MF1E () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0228/MAIN.asl0000700000175000017500000000424514773714152026442 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B228.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0228/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0228/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0072_ASL/0000700000175000017500000000000014773714150025677 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0072_ASL/DECL.asl0000700000175000017500000000465014773714150027117 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0072: * * SUMMARY: The ASL Compiler program returns improper status after compiling invalid ASL code * * Compiler should return error... * The ASL compiler returns zero (SUCCESS) while reporting Errors * of compilation but FAILURE (non-zero value) should be returned * in those cases. * * Strictly speaking, one more collection of tests is required * to check the resulting status of ASL compilation. It may be * a set of a little ASL-code files each forcing one specified * Error (or Warning or no Error/Warning) of compilation and * a control script run in cycle compilation of those ASL codes * and verifies the return code of ASL-compiler and distinguish * the cases: * * - no Errors or Warnings of compilation * - no Errors but Warnings of compilation take place * - has Errors of compilation */ Method(me0a) { Store(jjjjjjjj, Debug) return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0072_ASL/MAIN.asl0000700000175000017500000000402314773714150027126 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B72.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0072_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0242/0000700000175000017500000000000014773714152025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0242/DECL.asl0000700000175000017500000002340314773714152026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 242: * * SUMMARY: Releasing the mutex the first Acquired on the non-zero level makes Releasing the residuary mutexes of that level impossible */ Method (M031, 0, Serialized) { Mutex (T000, 0x00) Mutex (T001, 0x00) Mutex (T002, 0x00) Mutex (T003, 0x00) Mutex (T100, 0x01) Mutex (T101, 0x01) Mutex (T102, 0x01) Mutex (T103, 0x01) /* * Direct order for mutexes of level 0 * * STATUS: works correctly - no exceptions */ Method (M000, 0, NotSerialized) { Debug = "******** Test 0, for mutexes of level 0" Debug = "Acquiring mutexes of level 0:" Local0 = Acquire (T000, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T000 (Level 0, index 0)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T000 (Level 0, index 0)" } Local0 = Acquire (T001, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T001 (Level 0, index 1)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T001 (Level 0, index 1)" } Local0 = Acquire (T002, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T002 (Level 0, index 2)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T002 (Level 0, index 2)" } Local0 = Acquire (T003, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T003 (Level 0, index 3)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T003 (Level 0, index 3)" } Debug = "Releasing mutexes of level 0:" Debug = "Release T000 (Level 0, index 0)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T000) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "Release T001 (Level 0, index 1)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T001) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "Release T002 (Level 0, index 2)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T002) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "Release T003 (Level 0, index 3)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T003) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * Direct order for mutexes of level 1 * * STATUS: works incorrectly - has exceptions */ Method (M001, 0, NotSerialized) { Debug = "******** Test 1, for mutexes of level 1" Debug = "Acquiring mutexes of level 1:" Local0 = Acquire (T100, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T100 (Level 1, index 0)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T100 (Level 1, index 0)" } Local0 = Acquire (T101, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T101 (Level 1, index 1)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T101 (Level 1, index 1)" } Local0 = Acquire (T102, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T102 (Level 1, index 2)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T102 (Level 1, index 2)" } Local0 = Acquire (T103, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T103 (Level 1, index 3)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T103 (Level 1, index 3)" } Debug = "Releasing mutexes of Level 1:" Debug = "Release T100 (Level 1, index 0)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T100) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "Release T101 (Level 1, index 1)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T101) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "Release T102 (Level 1, index 2)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T102) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "Release T103 (Level 1, index 3)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T103) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * The test shows that no exception when the first * Acquired mutex is Released in the last turn. * * STATUS: works correctly - no exception */ Method (M002, 0, NotSerialized) { Debug = "******** Test 2, for mutexes of level 1" Debug = "Acquiring mutexes of level 1:" Local0 = Acquire (T100, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T100 (Level 1, index 0)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T100 (Level 1, index 0)" } Local0 = Acquire (T101, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T101 (Level 1, index 1)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T101 (Level 1, index 1)" } Local0 = Acquire (T102, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T102 (Level 1, index 2)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T102 (Level 1, index 2)" } Local0 = Acquire (T103, 0xFFFF) If (Local0) { Debug = "ERROR: Acquire T103 (Level 1, index 3)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire T103 (Level 1, index 3)" } Debug = "Releasing mutexes of Level 1:" Debug = "Release T101 (Level 1, index 1)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T101) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "Release T102 (Level 1, index 2)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T102) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "Release T103 (Level 1, index 3)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T103) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "Release T100 (Level 1, index 0)" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (T100) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (MM00, 0, NotSerialized) { M000 () M001 () M002 () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MM00 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0242/RUN.asl0000700000175000017500000000361714773714152026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 242", TCLD, 0xF2, W017)) { SRMT ("m031") M031 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0242/MAIN.asl0000700000175000017500000000413114773714152026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B242.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0242/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0242/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0293/0000700000175000017500000000000014773714153025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0293/DECL.asl0000700000175000017500000000610414773714153026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 293: * * SUMMARY: Incorrect zero-length Buffer to String conversion */ Method (M293, 0, NotSerialized) { /* Prepare zero-length Buffer */ Local0 = 0x00 Local1 = Buffer (Local0){} Local2 = ToHexString (Local1) Debug = Local2 Debug = SizeOf (Local2) Local3 = ToDecimalString (Local1) Debug = Local3 Debug = SizeOf (Local3) If ((SizeOf (Local2) != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, SizeOf (Local2), 0x00) } If ((SizeOf (Local3) != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, SizeOf (Local3), 0x00) } If (("" != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "", Local1) } If (("" != Local2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "", Local2) } If (("" != Local3)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "", Local3) } If ((Local2 != Local3)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, Local3) } If ((Local2 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, Local1) } If ((Local3 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local3, Local1) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0293/RUN.asl0000700000175000017500000000362114773714153026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 293", TCLD, 0x0125, W017)) { SRMT ("m293") M293 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0293/MAIN.asl0000700000175000017500000000413114773714153026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B293.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0293/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0293/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0202_SEE_129/0000700000175000017500000000000014773714151026263 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0202_SEE_129/DECL.asl0000700000175000017500000000343414773714151027502 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 202: * * SUMMARY: The ASLTS test b129 falls into an infinitive loop in a 32-bit slack mode * * It was regression revealed by some test of b129, * so run the test b129. * * Doesn't need separate demo. */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0269/0000700000175000017500000000000014773714152025212 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0269/DECL.asl0000700000175000017500000001054714773714152026434 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 269: * * SUMMARY: The sequence of evaluating Named object operands passed to method is violated */ Method (M022, 0, Serialized) { Name (I000, 0x01) Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) I001 = 0x00 Method (MADD, 2, NotSerialized) { Local0 = (Arg0 + Arg1) Return (Local0) } Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, I000) /* \M022.I000 */ } Return (0x00) } I000 = 0x80000000 Return (MADD (I000, M008 ())) } I000 = 0x07000000 Return (MADD (I000, M007 ())) } I000 = 0x00600000 Return (MADD (I000, M006 ())) } I000 = 0x00050000 Return (MADD (I000, M005 ())) } I000 = 0x4000 Return (MADD (I000, M004 ())) } I000 = 0x0300 Return (MADD (I000, M003 ())) } I000 = 0x20 Return (MADD (I000, M002 ())) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = MADD (I000, M001 ()) If ((Local0 != 0x87654321)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00E) } If ((I000 != 0x80000000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00E) } Debug = "Result:" Debug = Local0 Debug = "i000:" Debug = I000 /* \M022.I000 */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0269/RUN.asl0000700000175000017500000000362114773714152026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 269", TCLD, 0x010D, W017)) { SRMT ("m022") M022 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0269/MAIN.asl0000700000175000017500000000413114773714152026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B269.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0269/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0269/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0043/0000700000175000017500000000000014773714147025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0043/DECL.asl0000700000175000017500000000411514773714147026420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0043: * * SUMMARY: ToHexString transforms operand to reference when no conversion is required */ Method (MDD4, 0, NotSerialized) { Local0 = "a" Debug = Local0 Local1 = ToHexString (Local0) Debug = Local0 Local7 = (Local0 + 0x01) If ((Local7 != 0x0B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, 0x0B) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0043/RUN.asl0000700000175000017500000000361614773714147026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 43", TCLD, 0x2B, W017)) { SRMT ("mdd4") MDD4 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0043/MAIN.asl0000700000175000017500000000413114773714147026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B43.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0043/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0043/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0141_SPEC/0000700000175000017500000000000014773714151026010 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0141_SPEC/DECL.asl0000700000175000017500000000324414773714151027226 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 141: * * SUMMARY: The term 'object reference' in DMA Resource Descriptor Macro specs sounds ambiguously */acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0109_ASL/0000700000175000017500000000000014773714150025700 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0109_ASL/DECL.asl0000700000175000017500000000337014773714150027116 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 109: * * SUMMARY: The ASL Compiler crashes on FromBCD being passed with the invalid data (hex image containing not only decimal digits) */ Method(me71) { Store(FromBCD(0xa), Local0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0109_ASL/MAIN.asl0000700000175000017500000000414314773714150027132 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B109.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0109_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Include("../../../../../runtime/collections/bdemo/ACPICA/0109_ASL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0057/0000700000175000017500000000000014773714150025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0057/DECL.asl0000700000175000017500000000602614773714150026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0057: * * SUMMARY: The standalone Return is processed incorrectly */ Method (MDEF, 0, NotSerialized) { Debug = "mdef" } Method (MDF0, 0, NotSerialized) { Debug = "mdf0" } Method (MDF1, 0, NotSerialized) { Debug = "mdf1" } Method (MDF2, 1, NotSerialized) { Debug = "mdf2" MDEF () If (Arg0) { Debug = "mdf2: before Return" Return (0x1234) /* ASL-compiler report Warning in this case */ /* Store("ERROR 0: mdf2, after Return !!!", Debug) */ } ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) MDF0 () MDF1 () Return (0x5678) } Method (MDF3, 1, NotSerialized) { Debug = "mdf3" MDEF () If (Arg0) { Debug = "mdf3: before Return" Return ( /* ASL-compiler DOESN'T report Warning in this case!!! */ /* And the Store operator below is actually processed!!! */ Zero) ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) MDF0 () MDF1 () Return (Zero) } Method (MDF4, 0, NotSerialized) { Local7 = MDF2 (0x01) Debug = Local7 MDF3 (0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0057/RUN.asl0000700000175000017500000000361614773714150026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 57", TCLD, 0x39, W017)) { SRMT ("mdf4") MDF4 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0057/MAIN.asl0000700000175000017500000000413114773714150026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B57.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0057/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0057/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0101/0000700000175000017500000000000014773714150025171 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0101/DECL.asl0000700000175000017500000000530714773714150026411 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0101: * * SUMMARY: The ASL compiler fails to create RefOf reference to Method not returning explicitly any object */ /* //////// */ Method (ME5E, 0, NotSerialized) { } Method (ME5F, 0, NotSerialized) { Local0 = RefOf (ME5E) Debug = ObjectType (Local0) Local1 = ObjectType (Local0) If ((Local1 != C010)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C010) } Return (0x00) } /* //////// */ Method (ME60, 0, NotSerialized) { Return (0x01) } Method (ME61, 0, NotSerialized) { Debug = "Start of test" Local0 = RefOf (ME60) Debug = "ObjectType(Local0):" Local1 = ObjectType (Local0) Debug = Local1 If ((Local1 != C010)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C010) } Debug = "Finish of test" Return (0x00) } Method (ME62, 0, NotSerialized) { ME5F () ME61 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0101/RUN.asl0000700000175000017500000000361714773714150026350 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 101", TCLD, 0x65, W017)) { SRMT ("me62") ME62 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0101/MAIN.asl0000700000175000017500000000413114773714150026420 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B101.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0101/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0101/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0283/0000700000175000017500000000000014773714152025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0283/DECL.asl0000700000175000017500000000650014773714152026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 283: * * SUMMARY: When the Object parameter of Load is a Field the checksum * of the supplied SSDT should be verified */ Device (D283) { Name (BUF0, Buffer (0x34) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x34, 0x00, 0x00, 0x00, // SSDT4... /* 0008 */ 0x02, 0xEB, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x08, 0x12, 0x06, 0x20, 0x14, 0x0F, 0x5C, 0x53, // ... ..\S /* 0028 */ 0x53, 0x30, 0x30, 0x00, 0xA4, 0x0D, 0x5C, 0x53, // S00...\S /* 0030 */ 0x53, 0x30, 0x30, 0x00 // S00. }) OperationRegion (IST0, SystemMemory, 0x00, 0x34) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 416 } Field (IST0, ByteAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8 } Method (TST0, 0, Serialized) { Name (HI0, 0x00) RFU0 = BUF0 /* \D283.BUF0 */ /* Spoil the CheckSum */ Store ((SUM + 0x01), SUM) /* \D283.SUM_ */ /* "Incorrect checksum" ACPI warning is expected */ Load (RFU0, HI0) /* \D283.TST0.HI0_ */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Unload (HI0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } } Method (M283, 0, NotSerialized) { \D283.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0283/RUN.asl0000700000175000017500000000401414773714152026355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 283", TCLD, 0x011B, W017)) { SRMT ("m283") If (Y283) { M283 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0283/MAIN.asl0000700000175000017500000000413114773714152026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B283.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0283/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0283/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0078/0000700000175000017500000000000014773714150025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0078/DECL.asl0000700000175000017500000000362214773714150026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0078: * * SUMMARY: Specific expression Derefof(Refof(i000)) causes deletion of object (i000) */ Method (ME2B, 0, NotSerialized) { Local0 = DerefOf (RefOf (ID0B)) Debug = ID0B /* \ID0B */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0078/RUN.asl0000700000175000017500000000361614773714150026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 78", TCLD, 0x4E, W017)) { SRMT ("me2b") ME2B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0078/MAIN.asl0000700000175000017500000000424514773714150026443 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B78.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0078/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0078/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0051_ASL_RUNTIME/0000700000175000017500000000000014773714147027105 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0051_ASL_RUNTIME/DECL.asl0000700000175000017500000000721414773714147030324 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0051: * * SUMMARY: Register() macro missing parameter * * NOTE: introduce into FULL after fixing bug of iASL */ Method (MDDB, 5, NotSerialized) { If ((Arg0 != Arg1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Arg1) } If ((Arg2 != Arg3)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Method (MDDC, 0, Serialized) { Name (RT00, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x01, // Access Size ) }) Name (BUF0, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x01, // Access Size ) }) /* Currently Register macro DescriptorName is not implemented */ Local0 = ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) } MDDB (0x18, 0x03, 0x90, 0x12, "_ASI") MDDB (0x20, 0x04, 0x98, 0x13, "_RBW") MDDB (0x28, 0x05, 0xA0, 0x14, "_RBO") MDDB (0x30, 0x06, 0xA8, 0x15, "_ASZ") MDDB (0x38, 0x07, 0xB0, 0x16, "_ADR") If ((RT00 != BUF0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, RT00, BUF0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0051_ASL_RUNTIME/RUN.asl0000700000175000017500000000361614773714147030263 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 51", TCLD, 0x33, W017)) { SRMT ("mddc") MDDC () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0051_ASL_RUNTIME/MAIN.asl0000700000175000017500000000416114773714147030337 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B51.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0051_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0051_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0154/0000700000175000017500000000000014773714151025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0154/DECL.asl0000700000175000017500000000540614773714151026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 154: * * SUMMARY: Exception occurs on attempt to rewrite Device type object passed by ArgX to Method * * Check that exception doesn't occur */ Method (MF43, 1, NotSerialized) { Debug = Concatenate ("ObjectType(Arg0): 0x", Mid (ToHexString (ObjectType (Arg0)), 0x0F, 0x01) ) Arg0 = 0x00 Debug = "Store(0, Arg0) done" } Method (MF44, 0, NotSerialized) { MF43 (ID1D) Local0 = ObjectType (ID1D) If ((Local0 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } If ((ID1D != 0xFEDCBA9876543210)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID1D, 0xFEDCBA9876543210) } MF43 (ED02) Local0 = ObjectType (ED02) If ((Local0 != C00F)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00F) } MF43 (DD0B) Local0 = ObjectType (DD0B) If ((Local0 != C00E)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00E) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0154/RUN.asl0000700000175000017500000000361714773714151026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 154", TCLD, 0x9A, W017)) { SRMT ("mf44") MF44 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0154/MAIN.asl0000700000175000017500000000424614773714151026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B154.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0154/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0154/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0048/0000700000175000017500000000000014773714147025211 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0048/DECL.asl0000700000175000017500000000505114773714147026425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0048: * * SUMMARY: No exception on result of Concatenate longer than 210 bytes */ Method (MDD8, 0, NotSerialized) { /* 100 characters */ Local0 = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" /* 101 characters */ Local1 = "01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" /* Concatenate 100-byte long string with 101-byte long */ /* string and expect AE_AML_STRING_LIMIT exception. */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local2 = Concatenate (Local0, Local1) /* * No restriction on the length of String objects now: * * CH04("", 0, 61, 0, __LINE__, 0, 0) // AE_AML_STRING_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0048/RUN.asl0000700000175000017500000000361614773714147026367 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 48", TCLD, 0x30, W017)) { SRMT ("mdd8") MDD8 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0048/MAIN.asl0000700000175000017500000000413114773714147026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B48.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0048/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0048/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0012/0000700000175000017500000000000014773714147025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0012/DECL.asl0000700000175000017500000000421114773714147026411 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0012: * * SUMMARY: DerefOf doesn't evaluate String to Object * * * This functionality, DerefOf passed with String, * should be verified comprehensively in NameSpace tests. */ Include("../../../../../runtime/collections/bdemo/ACPICA/0012/DataLevel10.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0012/DataLevel20.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0012/DataLevel21_DeclUp.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0012/DataLevel21_DeclDown.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0012/Method.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0012/RUN.asl0000700000175000017500000000321414773714147026350 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 12", TCLD, 12, W017)) { m12a() m12b() m12d() m12e() m12f() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0012/DataLevel20.asl0000700000175000017500000003402414773714147027712 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * 2-level model: \\m12b. * * Data for DerefOf() are 0 levels up. * * DataLevel.asl * * * 1. mfa0: * see mfa0 - after bug fix add checking of values of UnitFields not only type checks */ Method(m12b) { /* * 0 - Check different ways to pass String */ Method(mdac,, Serialized) { Method(mm00) { Return("b000") } Method(mm01, 1) { Return(arg0) } Method(mm02, 1) { Store(DerefOf(arg0), Local7) Return(Local7) } Name(b000, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb00, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s000, "b000") Name(ss00, "b000") Name(i000, 0) Store("b000", Local0) CopyObject("b000", i000) Store(s000, Local7) // Checkings CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf("b000"), Local1) mf88(Local1, c00b, bb00, 0x001, 0x002, 1) Store(DerefOf(Local0), Local1) mf88(Local1, c00b, bb00, 0x003, 0x004, 1) Store(DerefOf(Local7), Local1) mf88(Local1, c00b, bb00, 0x005, 0x006, 1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) mf88(Local1, c00b, bb00, 0x007, 0x008, 1) Store(DerefOf(mm00()), Local1) mf88(Local1, c00b, bb00, 0x009, 0x00a, 1) Store(DerefOf(mm01(ss00)), Local1) mf88(Local1, c00b, bb00, 0x00b, 0x00c, 1) Store(DerefOf(ToString("b000")), Local1) mf88(Local1, c00b, bb00, 0x00d, 0x00e, 1) Store(DerefOf(Store("b000", Local6)), Local1) mf88(Local1, c00b, bb00, 0x00f, 0x010, 1) Store(DerefOf(i000), Local1) mf88(Local1, c00b, bb00, 0x011, 0x012, 1) Store(mm02("^b000"), Local1) mf88(Local1, c00b, bb00, 0x013, 0x014, 1) CH03("", 0, 0x015, __LINE__, 0) } /* * 1 - Check different ways to specify elements of NameSpace */ Method(mf89,, Serialized) { Name(i010, 0xaabc0123) Processor(pr01, 0, 0xFFFFFFFF, 0) { Name(i000, 0xaabc0000) } Name(ii00, 0xaabc0123) Name(b001, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb01, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) // Checkings CH03("", 0, 0x00f, __LINE__, 0) Store(DerefOf("b001"), Local1) mf88(Local1, c00b, bb01, 0x000, 0x001, 1) Store(DerefOf("^mf89.b001"), Local1) if (FLG9) { mf88(Local1, c00b, bb01, 0x002, 0x003, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Store(DerefOf("^mf89.pr01.i000"), Local1) if (FLG9) { mf88(Local1, c009, 0xaabc0000, 0x005, 0x006, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Store(DerefOf("\\m12b.mf89.pr01.i000"), Local1) if (FLG9) { mf88(Local1, c009, 0xaabc0000, 0x008, 0x009, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_NOT_FOUND } Store(DerefOf("^mf89.i010"), Local1) if (FLG9) { mf88(Local1, c009, ii00, 0x00b, 0x00c, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_NOT_FOUND } CH03("", 0, 0x00e, __LINE__, 0) } /* * 2 - Check access to calculated type objects - DerefOf() */ Method(mf8a,, Serialized) { Name(b002, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb02, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s002, "String") Name(ss02, "String") Name(i002, 0xabbc0000) Name(ii02, 0xabbc0000) Name(p002, Package() {1,2,3,4}) CH03("", 0, 0x01f, __LINE__, 0) // Checkings Store(DerefOf("b002"), Local1) mf88(Local1, c00b, bb02, 0x020, 0x021, 1) Store(DerefOf("s002"), Local1) mf88(Local1, c00a, ss02, 0x022, 0x023, 1) Store(DerefOf("i002"), Local1) mf88(Local1, c009, ii02, 0x024, 0x025, 1) Store(DerefOf("p002"), Local1) mf88(Local1, c00c, 0, 0x026, 0x027, 0) CH03("", 0, 0x028, __LINE__, 0) } /* * 3 - Check access to special type objects - DerefOf() */ Method(mf8b,, Serialized) { Event(e003) Mutex(mx03, 0) Device(d003) { Name(i900, 0xabcd0017) } ThermalZone(tz03) {} Processor(pr03, 0, 0xFFFFFFFF, 0) {} OperationRegion(r003, SystemMemory, 0x100, 0x100) PowerResource(pw03, 1, 0) {Method(mmmm){return (0)}} // Checkings CH03("", 0, 0x029, __LINE__, 0) CopyObject(DerefOf("e003"), Local1) mf88(Local1, c00f, 0, 0x02a, 0x02b, 0) CH03("", 0, 0x02c, __LINE__, 0) CopyObject(DerefOf("mx03"), Local1) mf88(Local1, c011, 0, 0x02d, 0x02e, 0) CH03("", 0, 0x02f, __LINE__, 0) CopyObject(DerefOf("d003"), Local1) mf88(Local1, c00e, 0, 0x030, 0x031, 0) CH03("", 0, 0x032, __LINE__, 0) CopyObject(DerefOf("tz03"), Local1) mf88(Local1, c015, 0, 0x033, 0x034, 0) CH03("", 0, 0x035, __LINE__, 0) CopyObject(DerefOf("pr03"), Local1) mf88(Local1, c014, 0, 0x036, 0x037, 0) if (y510) { CH03("", 0, 0x038, __LINE__, 0) CopyObject(DerefOf("r003"), Local1) mf88(Local1, c012, 0, 0x039, 0x03a, 0) } CH03("", 0, 0x03b, __LINE__, 0) CopyObject(DerefOf("pw03"), Local1) mf88(Local1, c013, 0, 0x03c, 0x03d, 0) } /* * 4 - Check DerefOf() - calculated type objects */ Method(mf8c,, Serialized) { Name(b004, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(i004, 0xabbc0000) Name(p004, Package() {1,2,3,4}) // Checkings CH03("", 0, 0x03e, __LINE__, 0) Store(DerefOf(b004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x040, __LINE__, 0) Store(DerefOf(i004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x042, __LINE__, 0) Store(DerefOf(p004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 5 - Check DerefOf() - but String doesn't refer NameSpace object */ Method(mf8d) { CH03("", 0, 0x044, __LINE__, 0) Store(DerefOf("0123"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x046, __LINE__, 0) Store(DerefOf("zxcvbnm,./;'\][0123"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x048, __LINE__, 0) Store(DerefOf("b0qv"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 6 - Check different ways to pass String (mdac * but without Store). Check - no exceptions. */ Method(mf8e,, Serialized) { Method(mm60) { Return("b006") } Method(mm61, 1) { Return(arg0) } Name(b006, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb06, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s006, "b006") Name(ss06, "b006") Name(i006, 0) Store("b006", Local0) CopyObject("b006", i006) Store(s006, Local7) // Checkings CH03("", 0, 0x04a, __LINE__, 0) Store(DerefOf("b006"), Local2) Store(DerefOf(Local0), Local2) Store(DerefOf(Local7), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(mm60()), Local2) Store(DerefOf(mm61(ss06)), Local2) Store(DerefOf(ToString("b006")), Local2) Store(DerefOf(Store("b006", Local6)), Local2) Store(DerefOf(i006), Local2) CH03("", 0, 0x04b, __LINE__, 0) } /* * 7 - Check access to special type objects - DerefOf() */ Method(mf8f,, Serialized) { Event(e007) Mutex(mx07, 0) Device(d007) { Name(i900, 0xabcd0017) } ThermalZone(tz07) {} Processor(pr07, 0, 0xFFFFFFFF, 0) {} OperationRegion(r007, SystemMemory, 0x100, 0x100) PowerResource(pw07, 1, 0) {Method(mmmm){return (0)}} // Checkings CH03("", 0, 0x04c, __LINE__, 0) Store(DerefOf("e007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x04e, __LINE__, 0) Store(DerefOf("mx07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x050, __LINE__, 0) Store(DerefOf("d007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x052, __LINE__, 0) Store(DerefOf("tz07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x054, __LINE__, 0) Store(DerefOf("pr07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x056, __LINE__, 0) Store(DerefOf("r007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x058, __LINE__, 0) Store(DerefOf("pw07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } } /* * 8 - Check DerefOf() - calculated type objects */ Method(mf90,, Serialized) { Name(b008, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(i008, 0xabbc0000) Name(p008, Package() {1,2,3,4}) // Checkings CH03("", 0, 0x05a, __LINE__, 0) Store(DerefOf(b008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x05c, __LINE__, 0) Store(DerefOf(i008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x05e, __LINE__, 0) Store(DerefOf(p008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 9 - Check DerefOf() - but String doesn't refer NameSpace object */ Method(mf91) { CH03("", 0, 0x060, __LINE__, 0) Store(DerefOf("0123"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x062, __LINE__, 0) Store(DerefOf("zxcvbnm,./;'\][0123"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x064, __LINE__, 0) Store(DerefOf("mf_d"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x066, __LINE__, 0) Store(DerefOf("b009"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * a - Check access to special type objects - DerefOf() */ Method(mfa0,, Serialized) { Name(b00a, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) OperationRegion(r00a, SystemMemory, 0x100, 0x100) CreateField(b00a, 8, 8, bfa0) Field(r00a, ByteAcc, NoLock, Preserve) {f0a0,8,f0a1,8,f0a2,8,f0a3,8} BankField(r00a, f0a1, 0, ByteAcc, NoLock, Preserve) {bna0,4} IndexField(f0a2, f0a3, ByteAcc, NoLock, Preserve) {ifa0,8,ifa1,8} CH03("", 0, 0x068, __LINE__, 0) Store(DerefOf("bfa0"), Local1) mf88(Local1, c009, 0xb1, 0x069, 0x06a, 1) Store(DerefOf("f0a0"), Local1) mf88(Local1, c009, 0, 0x06b, 0x06c, 0) Store(DerefOf("f0a1"), Local1) mf88(Local1, c009, 0, 0x06d, 0x06e, 0) Store(DerefOf("f0a2"), Local1) mf88(Local1, c009, 0, 0x06f, 0x070, 0) Store(DerefOf("f0a3"), Local1) mf88(Local1, c009, 0, 0x071, 0x072, 0) Store(DerefOf("bna0"), Local1) mf88(Local1, c009, 0, 0x073, 0x074, 0) Store(DerefOf("ifa0"), Local1) mf88(Local1, c009, 0, 0x075, 0x076, 0) Store(DerefOf("ifa1"), Local1) mf88(Local1, c009, 0, 0x077, 0x078, 0) CH03("", 0, 0x079, __LINE__, 0) } // b Method(mfa1,, Serialized) { Name(b00b, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) OperationRegion(r00b, SystemMemory, 0x100, 0x100) CreateField(b00b, 8, 8, bfb0) Field(r00b, ByteAcc, NoLock, Preserve) {f0b0,8,f0b1,8,f0b2,8,f0b3,8} BankField(r00b, f0b1, 0, ByteAcc, NoLock, Preserve) {bnb0,4} IndexField(f0b2, f0b3, ByteAcc, NoLock, Preserve) {ifb0,8,ifb1,8} CH03("", 0, 0x07a, __LINE__, 0) Store(DerefOf(bfb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x07c, __LINE__, 0) Store(DerefOf(f0b0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x07e, __LINE__, 0) Store(DerefOf(f0b1), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x080, __LINE__, 0) Store(DerefOf(f0b2), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x082, __LINE__, 0) Store(DerefOf(f0b3), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x084, __LINE__, 0) Store(DerefOf(bnb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x086, __LINE__, 0) Store(DerefOf(ifb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x088, __LINE__, 0) Store(DerefOf(ifb1), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } // c Method(mfa2,, Serialized) { Event(e00c) Mutex(mx0c, 0) Device(d00c) { Name(i900, 0xabcd0017) } ThermalZone(tz0c) {} Processor(pr0c, 0, 0xFFFFFFFF, 0) {} OperationRegion(r00c, SystemMemory, 0x100, 0x100) PowerResource(pw0c, 1, 0) {Method(mmmm){return (0)}} // Checkings CH03("", 0, 0x08a, __LINE__, 0) Store(DerefOf(e00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x08c, __LINE__, 0) Store(DerefOf(mx0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x08e, __LINE__, 0) Store(DerefOf(d00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x090, __LINE__, 0) Store(DerefOf(tz0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x092, __LINE__, 0) Store(DerefOf(pr0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x094, __LINE__, 0) Store(DerefOf(r00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x096, __LINE__, 0) Store(DerefOf(pw0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Method(m12a) { SRMT("mdac-20") mdac() SRMT("mf89-20") mf89() SRMT("mf8a-20") mf8a() SRMT("mf8b-20") mf8b() SRMT("mf8c-20") mf8c() SRMT("mf8d-20") mf8d() SRMT("mf8e-20") mf8e() SRMT("mf8f-20") mf8f() SRMT("mf90-20") mf90() SRMT("mf91-20") mf91() SRMT("mfa0-20") mfa0() SRMT("mfa1-20") mfa1() SRMT("mfa2-20") mfa2() } m12a() } /* m12b */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0012/DataLevel21_DeclUp.asl0000700000175000017500000003345214773714147031153 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * 2-level model: \\m12d. * * Data for DerefOf() are 1 levels up. * * DataLevel.asl */ Method(m12d,, Serialized) { /* 0 */ Method(mm00) { Return("b000") } Method(mm01, 1) { Return(arg0) } Method(mm02, 1) { Store(DerefOf(arg0), Local7) Return(Local7) } Name(b000, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb00, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s000, "b000") Name(ss00, "b000") Name(i000, 0) /* 1 */ Name(i010, 0xaabc0123) Name(i987, 0xaabc0987) Processor(pr01, 0, 0xFFFFFFFF, 0) { Name(i000, 0xaabc0000) } Name(ii00, 0xaabc0123) Name(ii01, 0xaabc0987) Name(b001, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb01, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) /* 2 */ Name(b002, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb02, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s002, "String") Name(ss02, "String") Name(i002, 0xabbc0000) Name(ii02, 0xabbc0000) Name(p002, Package() {1,2,3,4}) /* 3 */ Event(e003) Mutex(mx03, 0) Device(d003) { Name(i900, 0xabcd0017) } ThermalZone(tz03) {} Processor(pr03, 0, 0xFFFFFFFF, 0) {} OperationRegion(r003, SystemMemory, 0x100, 0x100) PowerResource(pw03, 1, 0) {Method(mmmm){return (0)}} /* 4 */ Name(b004, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(i004, 0xabbc0000) Name(p004, Package() {1,2,3,4}) /* 6 */ Method(mm60) { Return("b006") } Method(mm61, 1) { Return(arg0) } Name(b006, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb06, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s006, "b006") Name(ss06, "b006") Name(i006, 0) /* 7 */ Event(e007) Mutex(mx07, 0) Device(d007) { Name(i900, 0xabcd0017) } ThermalZone(tz07) {} Processor(pr07, 0, 0xFFFFFFFF, 0) {} OperationRegion(r007, SystemMemory, 0x100, 0x100) PowerResource(pw07, 1, 0) {Method(mmmm){return (0)}} /* 8 */ Name(b008, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(i008, 0xabbc0000) Name(p008, Package() {1,2,3,4}) /* a */ Name(b00a, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) OperationRegion(r00a, SystemMemory, 0x100, 0x100) CreateField(b00a, 8, 8, bfa0) Field(r00a, ByteAcc, NoLock, Preserve) {f0a0,8,f0a1,8,f0a2,8,f0a3,8} BankField(r00a, f0a1, 0, ByteAcc, NoLock, Preserve) {bna0,4} IndexField(f0a2, f0a3, ByteAcc, NoLock, Preserve) {ifa0,8,ifa1,8} /* b */ Name(b00b, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) OperationRegion(r00b, SystemMemory, 0x100, 0x100) CreateField(b00b, 8, 8, bfb0) Field(r00b, ByteAcc, NoLock, Preserve) {f0b0,8,f0b1,8,f0b2,8,f0b3,8} BankField(r00b, f0b1, 0, ByteAcc, NoLock, Preserve) {bnb0,4} IndexField(f0b2, f0b3, ByteAcc, NoLock, Preserve) {ifb0,8,ifb1,8} /* c */ Event(e00c) Mutex(mx0c, 0) Device(d00c) { Name(i900, 0xabcd0017) } ThermalZone(tz0c) {} Processor(pr0c, 0, 0xFFFFFFFF, 0) {} OperationRegion(r00c, SystemMemory, 0x100, 0x100) PowerResource(pw0c, 1, 0) {Method(mmmm){return (0)}} /* * 0 - Check different ways to pass String */ Method(mdac) { Store("b000", Local0) CopyObject("b000", i000) Store(s000, Local7) // Checkings CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf("b000"), Local1) mf88(Local1, c00b, bb00, 0x001, 0x002, 1) Store(DerefOf(Local0), Local1) mf88(Local1, c00b, bb00, 0x003, 0x004, 1) Store(DerefOf(Local7), Local1) mf88(Local1, c00b, bb00, 0x005, 0x006, 1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) mf88(Local1, c00b, bb00, 0x007, 0x008, 1) Store(DerefOf(mm00()), Local1) mf88(Local1, c00b, bb00, 0x009, 0x00a, 1) Store(DerefOf(mm01(ss00)), Local1) mf88(Local1, c00b, bb00, 0x00b, 0x00c, 1) Store(DerefOf(ToString("b000")), Local1) mf88(Local1, c00b, bb00, 0x00d, 0x00e, 1) Store(DerefOf(Store("b000", Local6)), Local1) mf88(Local1, c00b, bb00, 0x00f, 0x010, 1) Store(DerefOf(i000), Local1) mf88(Local1, c00b, bb00, 0x011, 0x012, 1) Store(mm02("^b000"), Local1) mf88(Local1, c00b, bb00, 0x013, 0x014, 1) CH03("", 0, 0x015, __LINE__, 0) } /* * 1 - Check different ways to specify elements of NameSpace */ Method(mf89) { // Checkings Store(DerefOf("b001"), Local1) mf88(Local1, c00b, bb01, 0x016, 0x017, 1) Store(DerefOf("^b001"), Local1) mf88(Local1, c00b, bb01, 0x018, 0x019, 1) Store(DerefOf("^pr01.i000"), Local1) mf88(Local1, c009, 0xaabc0000, 0x01a, 0x01b, 1) Store(DerefOf("\\m12d.pr01.i000"), Local1) if (FLG9) { mf88(Local1, c009, 0xaabc0000, 0x01c, 0x01d, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_NOT_FOUND } Store(DerefOf("^i010"), Local1) mf88(Local1, c009, ii00, 0x01f, 0x020, 1) Store(DerefOf("^i987"), Local1) mf88(Local1, c009, ii01, 0x021, 0x022, 1) CH03("", 0, 0x023, __LINE__, 0) } /* * 2 - Check access to calculated type objects - DerefOf() */ Method(mf8a) { CH03("", 0, 0x01f, __LINE__, 0) // Checkings Store(DerefOf("b002"), Local1) mf88(Local1, c00b, bb02, 0x020, 0x021, 1) Store(DerefOf("s002"), Local1) mf88(Local1, c00a, ss02, 0x022, 0x023, 1) Store(DerefOf("i002"), Local1) mf88(Local1, c009, ii02, 0x024, 0x025, 1) Store(DerefOf("p002"), Local1) mf88(Local1, c00c, 0, 0x026, 0x027, 0) CH03("", 0, 0x028, __LINE__, 0) } /* * 3 - Check access to special type objects - DerefOf() */ Method(mf8b) { // Checkings CH03("", 0, 0x029, __LINE__, 0) CopyObject(DerefOf("e003"), Local1) mf88(Local1, c00f, 0, 0x02a, 0x02b, 0) CH03("", 0, 0x02c, __LINE__, 0) CopyObject(DerefOf("mx03"), Local1) mf88(Local1, c011, 0, 0x02d, 0x02e, 0) CH03("", 0, 0x02f, __LINE__, 0) CopyObject(DerefOf("d003"), Local1) mf88(Local1, c00e, 0, 0x030, 0x031, 0) CH03("", 0, 0x032, __LINE__, 0) CopyObject(DerefOf("tz03"), Local1) mf88(Local1, c015, 0, 0x033, 0x034, 0) CH03("", 0, 0x035, __LINE__, 0) CopyObject(DerefOf("pr03"), Local1) mf88(Local1, c014, 0, 0x036, 0x037, 0) if (y510) { CH03("", 0, 0x038, __LINE__, 0) CopyObject(DerefOf("r003"), Local1) mf88(Local1, c012, 0, 0x039, 0x03a, 0) } CH03("", 0, 0x03b, __LINE__, 0) CopyObject(DerefOf("pw03"), Local1) mf88(Local1, c013, 0, 0x03c, 0x03d, 0) } /* * 4 - Check DerefOf() - calculated type objects */ Method(mf8c) { // Checkings CH03("", 0, 0x03e, __LINE__, 0) Store(DerefOf(b004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x040, __LINE__, 0) Store(DerefOf(i004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x042, __LINE__, 0) Store(DerefOf(p004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 5 - Check DerefOf() - but String doesn't refer NameSpace object */ Method(mf8d) { CH03("", 0, 0x044, __LINE__, 0) Store(DerefOf("0123"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x046, __LINE__, 0) Store(DerefOf("zxcvbnm,./;'\][0123"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x048, __LINE__, 0) Store(DerefOf("b0qv"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 6 - Check different ways to pass String (mdac * but without Store). Check - no exceptions. */ Method(mf8e) { Store("b006", Local0) CopyObject("b006", i006) Store(s006, Local7) // Checkings CH03("", 0, 0x04a, __LINE__, 0) Store(DerefOf("b006"), Local2) Store(DerefOf(Local0), Local2) Store(DerefOf(Local7), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(mm60()), Local2) Store(DerefOf(mm61(ss06)), Local2) Store(DerefOf(ToString("b006")), Local2) Store(DerefOf(Store("b006", Local6)), Local2) Store(DerefOf(i006), Local2) CH03("", 0, 0x04b, __LINE__, 0) } /* * 7 - Check access to special type objects - DerefOf() */ Method(mf8f) { // Checkings CH03("", 0, 0x04c, __LINE__, 0) Store(DerefOf("e007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x04e, __LINE__, 0) Store(DerefOf("mx07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x050, __LINE__, 0) Store(DerefOf("d007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x052, __LINE__, 0) Store(DerefOf("tz07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x054, __LINE__, 0) Store(DerefOf("pr07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x056, __LINE__, 0) Store(DerefOf("r007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x058, __LINE__, 0) Store(DerefOf("pw07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } } /* * 8 - Check DerefOf() - calculated type objects */ Method(mf90) { // Checkings CH03("", 0, 0x05a, __LINE__, 0) Store(DerefOf(b008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x05c, __LINE__, 0) Store(DerefOf(i008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x05e, __LINE__, 0) Store(DerefOf(p008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 9 - Check DerefOf() - but String doesn't refer NameSpace object */ Method(mf91) { CH03("", 0, 0x060, __LINE__, 0) Store(DerefOf("0123"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x062, __LINE__, 0) Store(DerefOf("zxcvbnm,./;'\][0123"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x064, __LINE__, 0) Store(DerefOf("mf_d"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x066, __LINE__, 0) Store(DerefOf("b009"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * a - Check access to special type objects - DerefOf() */ Method(mfa0) { CH03("", 0, 0x068, __LINE__, 0) Store(DerefOf("bfa0"), Local1) mf88(Local1, c009, 0xb1, 0x069, 0x06a, 1) Store(DerefOf("f0a0"), Local1) mf88(Local1, c009, 0, 0x06b, 0x06c, 0) Store(DerefOf("f0a1"), Local1) mf88(Local1, c009, 0, 0x06d, 0x06e, 0) Store(DerefOf("f0a2"), Local1) mf88(Local1, c009, 0, 0x06f, 0x070, 0) Store(DerefOf("f0a3"), Local1) mf88(Local1, c009, 0, 0x071, 0x072, 0) Store(DerefOf("bna0"), Local1) mf88(Local1, c009, 0, 0x073, 0x074, 0) Store(DerefOf("ifa0"), Local1) mf88(Local1, c009, 0, 0x075, 0x076, 0) Store(DerefOf("ifa1"), Local1) mf88(Local1, c009, 0, 0x077, 0x078, 0) CH03("", 0, 0x079, __LINE__, 0) } // b Method(mfa1) { CH03("", 0, 0x07a, __LINE__, 0) Store(DerefOf(bfb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x07c, __LINE__, 0) Store(DerefOf(f0b0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x07e, __LINE__, 0) Store(DerefOf(f0b1), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x080, __LINE__, 0) Store(DerefOf(f0b2), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x082, __LINE__, 0) Store(DerefOf(f0b3), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x084, __LINE__, 0) Store(DerefOf(bnb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x086, __LINE__, 0) Store(DerefOf(ifb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x088, __LINE__, 0) Store(DerefOf(ifb1), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } // c Method(mfa2) { // Checkings CH03("", 0, 0x08a, __LINE__, 0) Store(DerefOf(e00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x08c, __LINE__, 0) Store(DerefOf(mx0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x08e, __LINE__, 0) Store(DerefOf(d00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x090, __LINE__, 0) Store(DerefOf(tz0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x092, __LINE__, 0) Store(DerefOf(pr0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x094, __LINE__, 0) Store(DerefOf(r00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x096, __LINE__, 0) Store(DerefOf(pw0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Method(m12a) { SRMT("mdac-21-up") mdac() SRMT("mf89-21-up") mf89() SRMT("mf8a-21-up") mf8a() SRMT("mf8b-21-up") mf8b() SRMT("mf8c-21-up") mf8c() SRMT("mf8d-21-up") mf8d() SRMT("mf8e-21-up") mf8e() SRMT("mf8f-21-up") mf8f() SRMT("mf90-21-up") mf90() SRMT("mf91-21-up") mf91() SRMT("mfa0-21-up") mfa0() SRMT("mfa1-21-up") mfa1() SRMT("mfa2-21-up") mfa2() } m12a() } /* m12d */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0012/MAIN.asl0000700000175000017500000000424514773714147026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B12.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0012/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0012/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0012/Method.asl0000700000175000017500000000673314773714147027135 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Access to Method type objects * * SEE ALSO: misc/m15b * * Add here the tests of types: * - \xx.xx (relative to the root) * - ^xx.xx (relative to the parent) * - xx.xx * - Methods inside another type objects */ /* Access to Method in one level up */ Method(m13b) { return (0xabcd0000) } Method(m138) { CH03("", 0, 0x098, __LINE__, 0) Store(DerefOf("m13b"), Local0) if (SLCK) { CH03("", 0, 0x099, __LINE__, 0) Store(ObjectType(Local0), Local1) if (LNotEqual(Local1, c010)) { err("", zFFF, __LINE__, 0, 0, Local1, c010) } } else { CH04("", 0, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } } /* Access to the Method itself */ Method(m12c) { CH03("", 0, 0x09c, __LINE__, 0) Store(DerefOf("m12c"), Local0) if (SLCK) { CH03("", 0, 0x09d, __LINE__, 0) Store(ObjectType(Local0), Local1) if (LNotEqual(Local1, c010)) { err("", zFFF, __LINE__, 0, 0, Local1, c010) } } else { CH04("", 0, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } } /* Access to Method of the same level */ Method(m139) { Method(m13c) { return (0xabcd0003) } CH03("", 0, 0x0a0, __LINE__, 0) Store(DerefOf("m13c"), Local0) if (SLCK) { CH03("", 0, 0x0a1, __LINE__, 0) Store(ObjectType(Local0), Local1) if (LNotEqual(Local1, c010)) { err("", zFFF, __LINE__, 0, 0, Local1, c010) } } else { CH04("", 0, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } } /* Access to Method in one level up inside another Method */ Method(m13a) { Method(m13d) { return (0xabcd0004) } Method(m138) { CH03("", 0, 0x0a4, __LINE__, 0) Store(DerefOf("m13d"), Local0) if (SLCK) { CH03("", 0, 0x0a5, __LINE__, 0) Store(ObjectType(Local0), Local1) if (LNotEqual(Local1, c010)) { err("", zFFF, __LINE__, 0, 0, Local1, c010) } } else { CH04("", 0, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } } m138() } Method(m12f) { SRMT("m138") m138() SRMT("m12c") m12c() SRMT("m139") m139() SRMT("m13a") m13a() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0012/DataLevel10.asl0000700000175000017500000003403114773714147027707 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * 1-level model: \\ * * Data for DerefOf() are 0 levels up. * (data being referred are in the same Method which * initiates DerefOf()). * * DataLevel.asl * * * 1. mfa0: * see mfa0 - after bug fix add checking of values of UnitFields not only type checks */ /* * 0 - Check different ways to pass String */ Method(mdac,, Serialized) { Method(mm00) { Return("b000") } Method(mm01, 1) { Return(arg0) } Method(mm02, 1) { Store(DerefOf(arg0), Local7) Return(Local7) } Name(b000, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb00, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s000, "b000") Name(ss00, "b000") Name(i000, 0) Store("b000", Local0) CopyObject("b000", i000) Store(s000, Local7) // Checkings CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf("b000"), Local1) mf88(Local1, c00b, bb00, 0x001, 0x002, 1) Store(DerefOf(Local0), Local1) mf88(Local1, c00b, bb00, 0x003, 0x004, 1) Store(DerefOf(Local7), Local1) mf88(Local1, c00b, bb00, 0x005, 0x006, 1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) mf88(Local1, c00b, bb00, 0x007, 0x008, 1) Store(DerefOf(mm00()), Local1) mf88(Local1, c00b, bb00, 0x009, 0x00a, 1) Store(DerefOf(mm01(ss00)), Local1) mf88(Local1, c00b, bb00, 0x00b, 0x00c, 1) Store(DerefOf(ToString("b000")), Local1) mf88(Local1, c00b, bb00, 0x00d, 0x00e, 1) Store(DerefOf(Store("b000", Local6)), Local1) mf88(Local1, c00b, bb00, 0x00f, 0x010, 1) Store(DerefOf(i000), Local1) mf88(Local1, c00b, bb00, 0x011, 0x012, 1) Store(mm02("^b000"), Local1) mf88(Local1, c00b, bb00, 0x013, 0x014, 1) CH03("", 0, 0x015, __LINE__, 0) } /* * 1 - Check different ways to specify elements of NameSpace */ Method(mf89,, Serialized) { Name(i010, 0xaabc0123) Processor(pr01, 0, 0xFFFFFFFF, 0) { Name(i000, 0xaabc0000) } Name(ii00, 0xaabc0123) Name(b001, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb01, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) // Checkings Store(DerefOf("b001"), Local1) mf88(Local1, c00b, bb01, 0x000, 0x001, 1) Store(DerefOf("^mf89.b001"), Local1) if (FLG9) { mf88(Local1, c00b, bb01, 0x002, 0x003, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Store(DerefOf("^mf89.pr01.i000"), Local1) if (FLG9) { mf88(Local1, c009, 0xaabc0000, 0x005, 0x006, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Store(DerefOf("\\mf89.pr01.i000"), Local1) if (FLG9) { mf88(Local1, c009, 0xaabc0000, 0x008, 0x009, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_NOT_FOUND } Store(DerefOf("^mf89.i010"), Local1) if (FLG9) { mf88(Local1, c009, ii00, 0x00b, 0x00c, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_NOT_FOUND } CH03("", 0, 0x00e, __LINE__, 0) } /* * 2 - Check access to calculated type objects - DerefOf() */ Method(mf8a,, Serialized) { Name(b002, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb02, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s002, "String") Name(ss02, "String") Name(i002, 0xabbc0000) Name(ii02, 0xabbc0000) Name(p002, Package() {1,2,3,4}) CH03("", 0, 0x01f, __LINE__, 0) // Checkings Store(DerefOf("b002"), Local1) mf88(Local1, c00b, bb02, 0x020, 0x021, 1) Store(DerefOf("s002"), Local1) mf88(Local1, c00a, ss02, 0x022, 0x023, 1) Store(DerefOf("i002"), Local1) mf88(Local1, c009, ii02, 0x024, 0x025, 1) Store(DerefOf("p002"), Local1) mf88(Local1, c00c, 0, 0x026, 0x027, 0) CH03("", 0, 0x028, __LINE__, 0) } /* * 3 - Check access to special type objects - DerefOf() */ Method(mf8b,, Serialized) { Event(e003) Mutex(mx03, 0) Device(d003) { Name(i900, 0xabcd0017) } ThermalZone(tz03) {} Processor(pr03, 0, 0xFFFFFFFF, 0) {} OperationRegion(r003, SystemMemory, 0x100, 0x100) PowerResource(pw03, 1, 0) {Method(mmmm){return (0)}} // Checkings CH03("", 0, 0x029, __LINE__, 0) CopyObject(DerefOf("e003"), Local1) mf88(Local1, c00f, 0, 0x02a, 0x02b, 0) CH03("", 0, 0x02c, __LINE__, 0) CopyObject(DerefOf("mx03"), Local1) mf88(Local1, c011, 0, 0x02d, 0x02e, 0) CH03("", 0, 0x02f, __LINE__, 0) CopyObject(DerefOf("d003"), Local1) mf88(Local1, c00e, 0, 0x030, 0x031, 0) CH03("", 0, 0x032, __LINE__, 0) CopyObject(DerefOf("tz03"), Local1) mf88(Local1, c015, 0, 0x033, 0x034, 0) CH03("", 0, 0x035, __LINE__, 0) CopyObject(DerefOf("pr03"), Local1) mf88(Local1, c014, 0, 0x036, 0x037, 0) if (y510) { CH03("", 0, 0x038, __LINE__, 0) CopyObject(DerefOf("r003"), Local1) mf88(Local1, c012, 0, 0x039, 0x03a, 0) } CH03("", 0, 0x03b, __LINE__, 0) CopyObject(DerefOf("pw03"), Local1) mf88(Local1, c013, 0, 0x03c, 0x03d, 0) } /* * 4 - Check DerefOf() - calculated type objects */ Method(mf8c,, Serialized) { Name(b004, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(i004, 0xabbc0000) Name(p004, Package() {1,2,3,4}) // Checkings CH03("", 0, 0x03e, __LINE__, 0) Store(DerefOf(b004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x040, __LINE__, 0) Store(DerefOf(i004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x042, __LINE__, 0) Store(DerefOf(p004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 5 - Check DerefOf() - but String doesn't refer NameSpace object */ Method(mf8d) { CH03("", 0, 0x044, __LINE__, 0) Store(DerefOf("0123"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x046, __LINE__, 0) Store(DerefOf("zxcvbnm,./;'\][0123"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x048, __LINE__, 0) Store(DerefOf("b0qv"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 6 - Check different ways to pass String (mdac * but without Store). Check - no exceptions. */ Method(mf8e,, Serialized) { Method(mm60) { Return("b006") } Method(mm61, 1) { Return(arg0) } Name(b006, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb06, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s006, "b006") Name(ss06, "b006") Name(i006, 0) Store("b006", Local0) CopyObject("b006", i006) Store(s006, Local7) // Checkings CH03("", 0, 0x04a, __LINE__, 0) Store(DerefOf("b006"), Local2) Store(DerefOf(Local0), Local2) Store(DerefOf(Local7), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(mm60()), Local2) Store(DerefOf(mm61(ss06)), Local2) Store(DerefOf(ToString("b006")), Local2) Store(DerefOf(Store("b006", Local6)), Local2) Store(DerefOf(i006), Local2) CH03("", 0, 0x04b, __LINE__, 0) } /* * 7 - Check access to special type objects - DerefOf() */ Method(mf8f,, Serialized) { Event(e007) Mutex(mx07, 0) Device(d007) { Name(i900, 0xabcd0017) } ThermalZone(tz07) {} Processor(pr07, 0, 0xFFFFFFFF, 0) {} OperationRegion(r007, SystemMemory, 0x100, 0x100) PowerResource(pw07, 1, 0) {Method(mmmm){return (0)}} // Checkings CH03("", 0, 0x04c, __LINE__, 0) Store(DerefOf("e007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x04e, __LINE__, 0) Store(DerefOf("mx07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x050, __LINE__, 0) Store(DerefOf("d007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x052, __LINE__, 0) Store(DerefOf("tz07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x054, __LINE__, 0) Store(DerefOf("pr07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x056, __LINE__, 0) Store(DerefOf("r007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x058, __LINE__, 0) Store(DerefOf("pw07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } } /* * 8 - Check DerefOf() - calculated type objects */ Method(mf90,, Serialized) { Name(b008, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(i008, 0xabbc0000) Name(p008, Package() {1,2,3,4}) // Checkings CH03("", 0, 0x05a, __LINE__, 0) Store(DerefOf(b008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x05c, __LINE__, 0) Store(DerefOf(i008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x05e, __LINE__, 0) Store(DerefOf(p008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 9 - Check DerefOf() - but String doesn't refer NameSpace object */ Method(mf91) { CH03("", 0, 0x060, __LINE__, 0) Store(DerefOf("0123"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x062, __LINE__, 0) Store(DerefOf("zxcvbnm,./;'\][0123"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x064, __LINE__, 0) Store(DerefOf("mf_d"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x066, __LINE__, 0) Store(DerefOf("b009"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * a - Check access to special type objects - DerefOf() */ Method(mfa0,, Serialized) { Name(b00a, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) OperationRegion(r00a, SystemMemory, 0x100, 0x100) CreateField(b00a, 8, 8, bfa0) Field(r00a, ByteAcc, NoLock, Preserve) {f0a0,8,f0a1,8,f0a2,8,f0a3,8} BankField(r00a, f0a1, 0, ByteAcc, NoLock, Preserve) {bna0,4} IndexField(f0a2, f0a3, ByteAcc, NoLock, Preserve) {ifa0,8,ifa1,8} CH03("", 0, 0x068, __LINE__, 0) Store(DerefOf("bfa0"), Local1) mf88(Local1, c009, 0xb1, 0x069, 0x06a, 1) Store(DerefOf("f0a0"), Local1) mf88(Local1, c009, 0, 0x06b, 0x06c, 0) Store(DerefOf("f0a1"), Local1) mf88(Local1, c009, 0, 0x06d, 0x06e, 0) Store(DerefOf("f0a2"), Local1) mf88(Local1, c009, 0, 0x06f, 0x070, 0) Store(DerefOf("f0a3"), Local1) mf88(Local1, c009, 0, 0x071, 0x072, 0) Store(DerefOf("bna0"), Local1) mf88(Local1, c009, 0, 0x073, 0x074, 0) Store(DerefOf("ifa0"), Local1) mf88(Local1, c009, 0, 0x075, 0x076, 0) Store(DerefOf("ifa1"), Local1) mf88(Local1, c009, 0, 0x077, 0x078, 0) CH03("", 0, 0x079, __LINE__, 0) } // b Method(mfa1,, Serialized) { Name(b00b, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) OperationRegion(r00b, SystemMemory, 0x100, 0x100) CreateField(b00b, 8, 8, bfb0) Field(r00b, ByteAcc, NoLock, Preserve) {f0b0,8,f0b1,8,f0b2,8,f0b3,8} BankField(r00b, f0b1, 0, ByteAcc, NoLock, Preserve) {bnb0,4} IndexField(f0b2, f0b3, ByteAcc, NoLock, Preserve) {ifb0,8,ifb1,8} CH03("", 0, 0x07a, __LINE__, 0) Store(DerefOf(bfb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x07c, __LINE__, 0) Store(DerefOf(f0b0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x07e, __LINE__, 0) Store(DerefOf(f0b1), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x080, __LINE__, 0) Store(DerefOf(f0b2), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x082, __LINE__, 0) Store(DerefOf(f0b3), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x084, __LINE__, 0) Store(DerefOf(bnb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x086, __LINE__, 0) Store(DerefOf(ifb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x088, __LINE__, 0) Store(DerefOf(ifb1), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } // c Method(mfa2,, Serialized) { Event(e00c) Mutex(mx0c, 0) Device(d00c) { Name(i900, 0xabcd0017) } ThermalZone(tz0c) {} Processor(pr0c, 0, 0xFFFFFFFF, 0) {} OperationRegion(r00c, SystemMemory, 0x100, 0x100) PowerResource(pw0c, 1, 0) {Method(mmmm){return (0)}} // Checkings CH03("", 0, 0x08a, __LINE__, 0) Store(DerefOf(e00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x08c, __LINE__, 0) Store(DerefOf(mx0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x08e, __LINE__, 0) Store(DerefOf(d00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x090, __LINE__, 0) Store(DerefOf(tz0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x092, __LINE__, 0) Store(DerefOf(pr0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x094, __LINE__, 0) Store(DerefOf(r00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x096, __LINE__, 0) Store(DerefOf(pw0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Method(m12a) { SRMT("mdac-10") mdac() SRMT("mf89-10") mf89() SRMT("mf8a-10") mf8a() SRMT("mf8b-10") mf8b() SRMT("mf8c-10") mf8c() SRMT("mf8d-10") mf8d() SRMT("mf8e-10") mf8e() SRMT("mf8f-10") mf8f() SRMT("mf90-10") mf90() SRMT("mf91-10") mf91() SRMT("mfa0-10") mfa0() SRMT("mfa1-10") mfa1() SRMT("mfa2-10") mfa2() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0012/DataLevel21_DeclDown.asl0000700000175000017500000003350514773714147031475 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * 2-level model: \\m12e. * * Data for DerefOf() are 1 levels up. * * DataLevel.asl */ Method(m12e,, Serialized) { /* * 0 - Check different ways to pass String */ Method(mdac) { Store("b000", Local0) CopyObject("b000", i000) Store(s000, Local7) // Checkings CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf("b000"), Local1) mf88(Local1, c00b, bb00, 0x001, 0x002, 1) Store(DerefOf(Local0), Local1) mf88(Local1, c00b, bb00, 0x003, 0x004, 1) Store(DerefOf(Local7), Local1) mf88(Local1, c00b, bb00, 0x005, 0x006, 1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) Store(DerefOf(s000), Local1) mf88(Local1, c00b, bb00, 0x007, 0x008, 1) Store(DerefOf(mm00()), Local1) mf88(Local1, c00b, bb00, 0x009, 0x00a, 1) Store(DerefOf(mm01(ss00)), Local1) mf88(Local1, c00b, bb00, 0x00b, 0x00c, 1) Store(DerefOf(ToString("b000")), Local1) mf88(Local1, c00b, bb00, 0x00d, 0x00e, 1) Store(DerefOf(Store("b000", Local6)), Local1) mf88(Local1, c00b, bb00, 0x00f, 0x010, 1) Store(DerefOf(i000), Local1) mf88(Local1, c00b, bb00, 0x011, 0x012, 1) Store(mm02("^b000"), Local1) mf88(Local1, c00b, bb00, 0x013, 0x014, 1) CH03("", 0, 0x015, __LINE__, 0) } /* * 1 - Check different ways to specify elements of NameSpace */ Method(mf89) { // Checkings Store(DerefOf("b001"), Local1) mf88(Local1, c00b, bb01, 0x016, 0x017, 1) Store(DerefOf("^b001"), Local1) mf88(Local1, c00b, bb01, 0x018, 0x019, 1) Store(DerefOf("^pr01.i000"), Local1) mf88(Local1, c009, 0xaabc0000, 0x01a, 0x01b, 1) Store(DerefOf("\\m12e.pr01.i000"), Local1) if (FLG9) { mf88(Local1, c009, 0xaabc0000, 0x01c, 0x01d, 1) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_NOT_FOUND } Store(DerefOf("^i010"), Local1) mf88(Local1, c009, ii00, 0x01f, 0x020, 1) Store(DerefOf("^i987"), Local1) mf88(Local1, c009, ii01, 0x021, 0x022, 1) CH03("", 0, 0x023, __LINE__, 0) } /* * 2 - Check access to calculated type objects - DerefOf() */ Method(mf8a) { CH03("", 0, 0x01f, __LINE__, 0) // Checkings Store(DerefOf("b002"), Local1) mf88(Local1, c00b, bb02, 0x020, 0x021, 1) Store(DerefOf("s002"), Local1) mf88(Local1, c00a, ss02, 0x022, 0x023, 1) Store(DerefOf("i002"), Local1) mf88(Local1, c009, ii02, 0x024, 0x025, 1) Store(DerefOf("p002"), Local1) mf88(Local1, c00c, 0, 0x026, 0x027, 0) CH03("", 0, 0x028, __LINE__, 0) } /* * 3 - Check access to special type objects - DerefOf() */ Method(mf8b) { // Checkings CH03("", 0, 0x029, __LINE__, 0) CopyObject(DerefOf("e003"), Local1) mf88(Local1, c00f, 0, 0x02a, 0x02b, 0) CH03("", 0, 0x02c, __LINE__, 0) CopyObject(DerefOf("mx03"), Local1) mf88(Local1, c011, 0, 0x02d, 0x02e, 0) CH03("", 0, 0x02f, __LINE__, 0) CopyObject(DerefOf("d003"), Local1) mf88(Local1, c00e, 0, 0x030, 0x031, 0) CH03("", 0, 0x032, __LINE__, 0) CopyObject(DerefOf("tz03"), Local1) mf88(Local1, c015, 0, 0x033, 0x034, 0) CH03("", 0, 0x035, __LINE__, 0) CopyObject(DerefOf("pr03"), Local1) mf88(Local1, c014, 0, 0x036, 0x037, 0) if (y510) { CH03("", 0, 0x038, __LINE__, 0) CopyObject(DerefOf("r003"), Local1) mf88(Local1, c012, 0, 0x039, 0x03a, 0) } CH03("", 0, 0x03b, __LINE__, 0) CopyObject(DerefOf("pw03"), Local1) mf88(Local1, c013, 0, 0x03c, 0x03d, 0) } /* * 4 - Check DerefOf() - calculated type objects */ Method(mf8c) { // Checkings CH03("", 0, 0x03e, __LINE__, 0) Store(DerefOf(b004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x040, __LINE__, 0) Store(DerefOf(i004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x042, __LINE__, 0) Store(DerefOf(p004), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 5 - Check DerefOf() - but String doesn't refer NameSpace object */ Method(mf8d) { CH03("", 0, 0x044, __LINE__, 0) Store(DerefOf("0123"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x046, __LINE__, 0) Store(DerefOf("zxcvbnm,./;'\][0123"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x048, __LINE__, 0) Store(DerefOf("b0qv"), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 6 - Check different ways to pass String (mdac * but without Store). Check - no exceptions. */ Method(mf8e) { Store("b006", Local0) CopyObject("b006", i006) Store(s006, Local7) // Checkings CH03("", 0, 0x04a, __LINE__, 0) Store(DerefOf("b006"), Local2) Store(DerefOf(Local0), Local2) Store(DerefOf(Local7), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(s006), Local2) Store(DerefOf(mm60()), Local2) Store(DerefOf(mm61(ss06)), Local2) Store(DerefOf(ToString("b006")), Local2) Store(DerefOf(Store("b006", Local6)), Local2) Store(DerefOf(i006), Local2) CH03("", 0, 0x04b, __LINE__, 0) } /* * 7 - Check access to special type objects - DerefOf() */ Method(mf8f) { // Checkings CH03("", 0, 0x04c, __LINE__, 0) Store(DerefOf("e007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x04e, __LINE__, 0) Store(DerefOf("mx07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x050, __LINE__, 0) Store(DerefOf("d007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x052, __LINE__, 0) Store(DerefOf("tz07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x054, __LINE__, 0) Store(DerefOf("pr07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x056, __LINE__, 0) Store(DerefOf("r007"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } CH03("", 0, 0x058, __LINE__, 0) Store(DerefOf("pw07"), Local2) if(LNot(SLCK)){ CH04("", 0, 47, 0, __LINE__, 0, 0) } } /* * 8 - Check DerefOf() - calculated type objects */ Method(mf90) { // Checkings CH03("", 0, 0x05a, __LINE__, 0) Store(DerefOf(b008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x05c, __LINE__, 0) Store(DerefOf(i008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x05e, __LINE__, 0) Store(DerefOf(p008), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * 9 - Check DerefOf() - but String doesn't refer NameSpace object */ Method(mf91) { CH03("", 0, 0x060, __LINE__, 0) Store(DerefOf("0123"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x062, __LINE__, 0) Store(DerefOf("zxcvbnm,./;'\][0123"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x064, __LINE__, 0) Store(DerefOf("mf_d"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x066, __LINE__, 0) Store(DerefOf("b009"), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } /* * a - Check access to special type objects - DerefOf() */ Method(mfa0) { CH03("", 0, 0x068, __LINE__, 0) Store(DerefOf("bfa0"), Local1) mf88(Local1, c009, 0xb1, 0x069, 0x06a, 1) Store(DerefOf("f0a0"), Local1) mf88(Local1, c009, 0, 0x06b, 0x06c, 0) Store(DerefOf("f0a1"), Local1) mf88(Local1, c009, 0, 0x06d, 0x06e, 0) Store(DerefOf("f0a2"), Local1) mf88(Local1, c009, 0, 0x06f, 0x070, 0) Store(DerefOf("f0a3"), Local1) mf88(Local1, c009, 0, 0x071, 0x072, 0) Store(DerefOf("bna0"), Local1) mf88(Local1, c009, 0, 0x073, 0x074, 0) Store(DerefOf("ifa0"), Local1) mf88(Local1, c009, 0, 0x075, 0x076, 0) Store(DerefOf("ifa1"), Local1) mf88(Local1, c009, 0, 0x077, 0x078, 0) CH03("", 0, 0x079, __LINE__, 0) } // b Method(mfa1) { CH03("", 0, 0x07a, __LINE__, 0) Store(DerefOf(bfb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x07c, __LINE__, 0) Store(DerefOf(f0b0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x07e, __LINE__, 0) Store(DerefOf(f0b1), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x080, __LINE__, 0) Store(DerefOf(f0b2), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x082, __LINE__, 0) Store(DerefOf(f0b3), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x084, __LINE__, 0) Store(DerefOf(bnb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x086, __LINE__, 0) Store(DerefOf(ifb0), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x088, __LINE__, 0) Store(DerefOf(ifb1), Local1) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } // c Method(mfa2) { // Checkings CH03("", 0, 0x08a, __LINE__, 0) Store(DerefOf(e00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x08c, __LINE__, 0) Store(DerefOf(mx0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x08e, __LINE__, 0) Store(DerefOf(d00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x090, __LINE__, 0) Store(DerefOf(tz0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x092, __LINE__, 0) Store(DerefOf(pr0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x094, __LINE__, 0) Store(DerefOf(r00c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x096, __LINE__, 0) Store(DerefOf(pw0c), Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Method(m12a) { SRMT("mdac-21-down") mdac() SRMT("mf89-21-down") mf89() SRMT("mf8a-21-down") mf8a() SRMT("mf8b-21-down") mf8b() SRMT("mf8c-21-down") mf8c() SRMT("mf8d-21-down") mf8d() SRMT("mf8e-21-down") mf8e() SRMT("mf8f-21-down") mf8f() SRMT("mf90-21-down") mf90() SRMT("mf91-21-down") mf91() SRMT("mfa0-21-down") mfa0() SRMT("mfa1-21-down") mfa1() SRMT("mfa2-21-down") mfa2() } /* 0 */ Method(mm00) { Return("b000") } Method(mm01, 1) { Return(arg0) } Method(mm02, 1) { Store(DerefOf(arg0), Local7) Return(Local7) } Name(b000, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb00, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s000, "b000") Name(ss00, "b000") Name(i000, 0) /* 1 */ Name(i010, 0xaabc0123) Name(i987, 0xaabc0987) Processor(pr01, 0, 0xFFFFFFFF, 0) { Name(i000, 0xaabc0000) } Name(ii00, 0xaabc0123) Name(ii01, 0xaabc0987) Name(b001, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb01, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) /* 2 */ Name(b002, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb02, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s002, "String") Name(ss02, "String") Name(i002, 0xabbc0000) Name(ii02, 0xabbc0000) Name(p002, Package() {1,2,3,4}) /* 3 */ Event(e003) Mutex(mx03, 0) Device(d003) { Name(i900, 0xabcd0017) } ThermalZone(tz03) {} Processor(pr03, 0, 0xFFFFFFFF, 0) {} OperationRegion(r003, SystemMemory, 0x100, 0x100) PowerResource(pw03, 1, 0) {Method(mmmm){return (0)}} /* 4 */ Name(b004, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(i004, 0xabbc0000) Name(p004, Package() {1,2,3,4}) /* 6 */ Method(mm60) { Return("b006") } Method(mm61, 1) { Return(arg0) } Name(b006, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(bb06, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(s006, "b006") Name(ss06, "b006") Name(i006, 0) /* 7 */ Event(e007) Mutex(mx07, 0) Device(d007) { Name(i900, 0xabcd0017) } ThermalZone(tz07) {} Processor(pr07, 0, 0xFFFFFFFF, 0) {} OperationRegion(r007, SystemMemory, 0x100, 0x100) PowerResource(pw07, 1, 0) {Method(mmmm){return (0)}} /* 8 */ Name(b008, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(i008, 0xabbc0000) Name(p008, Package() {1,2,3,4}) /* a */ Name(b00a, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) OperationRegion(r00a, SystemMemory, 0x100, 0x100) CreateField(b00a, 8, 8, bfa0) Field(r00a, ByteAcc, NoLock, Preserve) {f0a0,8,f0a1,8,f0a2,8,f0a3,8} BankField(r00a, f0a1, 0, ByteAcc, NoLock, Preserve) {bna0,4} IndexField(f0a2, f0a3, ByteAcc, NoLock, Preserve) {ifa0,8,ifa1,8} /* b */ Name(b00b, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) OperationRegion(r00b, SystemMemory, 0x100, 0x100) CreateField(b00b, 8, 8, bfb0) Field(r00b, ByteAcc, NoLock, Preserve) {f0b0,8,f0b1,8,f0b2,8,f0b3,8} BankField(r00b, f0b1, 0, ByteAcc, NoLock, Preserve) {bnb0,4} IndexField(f0b2, f0b3, ByteAcc, NoLock, Preserve) {ifb0,8,ifb1,8} /* c */ Event(e00c) Mutex(mx0c, 0) Device(d00c) { Name(i900, 0xabcd0017) } ThermalZone(tz0c) {} Processor(pr0c, 0, 0xFFFFFFFF, 0) {} OperationRegion(r00c, SystemMemory, 0x100, 0x100) PowerResource(pw0c, 1, 0) {Method(mmmm){return (0)}} m12a() } /* m12e */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0301/0000700000175000017500000000000014773714153025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0301/DECL.asl0000700000175000017500000001211714773714153026413 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 301: * * SUMMARY: Recursive calls to methods with the internal declarations (and Switches) causes AE_AML_INTERNAL and crash */ Method (M1EA, 0, NotSerialized) { Method (M19C, 0, Serialized) { Name (RPT0, 0x00) /* * Total number of calls of the same Recursively Called method (RCM), * the first call is counted there too. */ Name (N000, 0x03) Name (CNT0, 0x00) /* how many methods are in progress simultaneously */ Name (MAX0, 0x00) /* maximal number of methods being in progress simultaneously */ /* * Open method execution * * arg0 - ID of method (1,2,3...) * arg1 - the message to be reported */ Method (M800, 2, NotSerialized) { If (RPT0) { Debug = Arg1 } CNT0++ If ((CNT0 > MAX0)) { MAX0 = CNT0 /* \M1EA.M19C.CNT0 */ } } /* * Close method execution * * arg0 - ID of method (1,2,3...) */ Method (M801, 1, NotSerialized) { CNT0-- } /* * Arguments of methods: * arg0 - 0 - the first call, otherwise - recursive calls */ Name (C000, 0x03) Method (M100, 0, Serialized) { Name (C100, 0x03) Method (M200, 0, Serialized) { Name (C200, 0x03) Method (M300, 0, Serialized) { Name (C300, 0x03) Method (M400, 0, NotSerialized) { M800 (0x04, "m400") C300-- If ((C300 == 0x00)) { M300 () } Else { M400 () } M801 (0x04) } M800 (0x03, "m300") C200-- If ((C200 == 0x00)) { M200 () } Else { M400 () } M801 (0x03) } M800 (0x02, "m200") C100-- If ((C100 == 0x00)) { M100 () } Else { M300 () } M801 (0x02) } M800 (0x01, "m100") C000-- If ((C000 == 0x00)){ /* m000() */ } Else { M200 () } M801 (0x01) } M100 () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M19C () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0301/RUN.asl0000700000175000017500000000401414773714153026345 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 301", TCLD, 0x012D, W017)) { SRMT ("m1ea") If (Y301) { M1EA () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0301/MAIN.asl0000700000175000017500000000413214773714153026426 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B301.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0301/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0301/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0090_SPEC/0000700000175000017500000000000014773714150026012 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0090_SPEC/DECL.asl0000700000175000017500000000323114773714150027224 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 90: * * SUMMARY: Spec of Match operator should be changed (conversion/null package entries) */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0254_DEMO_IMPOSSIBLE/0000700000175000017500000000000014773714152027536 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0254_DEMO_IMPOSSIBLE/DECL.asl0000700000175000017500000000322714773714152030755 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 254: * * SUMMARY: Adjust the Threads command of AcpiExec to the actual need of mt-testing */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0288_ASL_RUNTIME/0000700000175000017500000000000014773714152027115 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0288_ASL_RUNTIME/DECL.asl0000700000175000017500000000415114773714152030331 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 288: * * SUMMARY: iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm */ Device (D288) { Name(PLDT, 0) Method(m000, 1) {Return (Arg0)} Method(T288) { Store(1, Local0) Store(LoadTable("OEM1", "", "", , "\\D288.PLDT", Local0), Local1) if (LNotEqual(PLDT, 1)) { err("", zFFF, __LINE__, 0, 0, PLDT, 1) } UnLoad(Local1) Store(LoadTable("OEM1", "", "", , "\\PLDT", m000(2)), Local1) if (LNotEqual(PLDT, 2)) { err("", zFFF, __LINE__, 0, 0, PLDT, 2) } UnLoad(Local1) } } Method(m288) { \D288.T288() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0288_ASL_RUNTIME/RUN.asl0000700000175000017500000000317414773714152030272 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 288", TCLD, 288, W017)) { SRMT("m288") m288() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0288_ASL_RUNTIME/MAIN.asl0000700000175000017500000000427714773714152030357 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B288.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0288_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0288_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0258/0000700000175000017500000000000014773714152025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0258/DECL.asl0000700000175000017500000001016714773714152026430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 258: * * SUMMARY: Load operator should fail if its Object parameter being a Region * is not in SystemMemory */ /* * Original source code: DefinitionBlock("ssdt.aml", "SSDT", 0x02, "Intel", "Many", 0x00000001) { Device(AUXD) { Method(M000) { Return ("\\AUXD.M000 ()") } } } */ Name (B258, Buffer (0x42) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x42, 0x00, 0x00, 0x00, // SSDTB... /* 0008 */ 0x02, 0x81, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x11, 0x10, 0x06, 0x20, 0x5B, 0x82, 0x1C, 0x41, // ... [..A /* 0028 */ 0x55, 0x58, 0x44, 0x14, 0x16, 0x4D, 0x30, 0x30, // UXD..M00 /* 0030 */ 0x30, 0x00, 0xA4, 0x0D, 0x5C, 0x41, 0x55, 0x58, // 0...\AUX /* 0038 */ 0x44, 0x2E, 0x4D, 0x30, 0x30, 0x30, 0x20, 0x28, // D.M000 ( /* 0040 */ 0x29, 0x00 // ). }) Name (H258, 0x00) OperationRegion (R258, 0x80, 0x00, 0x42) Field (R258, ByteAcc, NoLock, Preserve) { F258, 528 } Method (M17E, 0, NotSerialized) { F258 = B258 /* \B258 */ If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) Return (Zero) } If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } Load (R258, H258) /* \H258 */ If (CH04 (__METHOD__, 0x00, 0x08, 0x00, __LINE__, 0x00, 0x00)) { Return ( /* AE_TYPE */ Zero) } If (CondRefOf (\AUXD, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x00) Return (Zero) } Local1 = ObjectType (Local0) If ((Local1 != 0x06)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x06) Return (Zero) } Local0 = ObjectType (\AUXD.M000) If ((Local0 != 0x08)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x08) Return (Zero) } Unload (H258) If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0258/RUN.asl0000700000175000017500000000362114773714152026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 258", TCLD, 0x0102, W017)) { SRMT ("m17e") M17E () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0258/MAIN.asl0000700000175000017500000000413114773714152026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B258.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0258/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0258/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0032_ASL/0000700000175000017500000000000014773714147025701 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0032_ASL/DECL.asl0000700000175000017500000000407214773714147027117 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0032: * * SUMMARY: The ASL Compiler should reject the same and out of range IRQ numbers (IRQ and IRQNoFlags macros) * * ASL compiler should report error... */ Method(mf62) { Name (p000, Package() { ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, IRQ0) {16} }, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, IRQ1) {9, 9} }, }) Store(DeRefOf(Index(p000, 0)), Local0) Store(Local0, Debug) Store(DeRefOf(Index(p000, 1)), Local0) Store(Local0, Debug) return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0032_ASL/MAIN.asl0000700000175000017500000000402314773714147027130 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B32.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0032_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0215/0000700000175000017500000000000014773714152025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0215/DECL.asl0000700000175000017500000000714314773714152026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 215 (local-bugzilla-351): * * SUMMARY: exception on accessing IndexField with IndexName Region Field exceeding 32 bits * * Exception AE_BUFFER_OVERFLOW unexpectedly * occurs on access to an IndexField object if * the length of the respective IndexName Region * Field exceeds 32 bits. */ Method (M81D, 0, NotSerialized) { Method (M000, 0, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, 0x30) Field (OPR0, ByteAcc, NoLock, Preserve) { IDX0, 32, DTA0, 32 } Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), IDX1, 32, Offset (0x10), DTA1, 33 } Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x18), IDX2, 33, Offset (0x20), DTA2, 32 } IndexField (IDX0, DTA0, ByteAcc, NoLock, Preserve) { IDF0, 1 } IndexField (IDX1, DTA1, ByteAcc, NoLock, Preserve) { IDF1, 1 } IndexField (IDX2, DTA2, ByteAcc, NoLock, Preserve) { IDF2, 1 } IDF0 = 0x01 If ((IDF0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, IDF0, 0x01) } IDF1 = 0x01 If ((IDF1 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, IDF1, 0x01) } IDF2 = 0x01 If ((IDF2 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, IDF2, 0x01) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0215/RUN.asl0000700000175000017500000000361714773714152026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 215", TCLD, 0xD7, W017)) { SRMT ("m81d") M81D () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0215/MAIN.asl0000700000175000017500000000413114773714152026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B215.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0215/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0215/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0008/0000700000175000017500000000000014773714147025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0008/DECL.asl0000700000175000017500000000420314773714147026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0008: * * SUMMARY: The type returned by ObjectType for Object created by Field operator is not Field */ Method (MDA5, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0125, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 32 } Local0 = ObjectType (F000) If ((Local0 != C00D)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00D) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0008/RUN.asl0000700000175000017500000000361514773714147026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 8", TCLD, 0x08, W017)) { SRMT ("mda5") MDA5 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0008/MAIN.asl0000700000175000017500000000413114773714147026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B8.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0008/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0008/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0019/0000700000175000017500000000000014773714147025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0019/DECL.asl0000700000175000017500000000431414773714147026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0019: * * SUMMARY: LGreaterEqual works incorrectly for Buffer-operands containing zero */ Method (MDB4, 0, NotSerialized) { Local0 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x25 // !".% } Local1 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x26 // !".& } If ((Local0 >= Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0019/RUN.asl0000700000175000017500000000361614773714147026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 19", TCLD, 0x13, W017)) { SRMT ("mdb4") MDB4 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0019/MAIN.asl0000700000175000017500000000413114773714147026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B19.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0019/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0019/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0049/0000700000175000017500000000000014773714147025212 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0049/DECL.asl0000700000175000017500000000671614773714147026437 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0049: * * SUMMARY: No exception on result of ToDecimalString longer than 210 bytes */ Method (MDD9, 0, Serialized) { /* 101-byte long buffer */ Name (B000, Buffer (0x65) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0038 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0040 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0048 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0050 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0058 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0060 */ 0x01, 0x01, 0x01, 0x01, 0x01 // ..... }) /* ToDecimalString for 101-byte long buffer attempt */ /* to produce 201 byte long string and have to result */ /* in AE_AML_STRING_LIMIT exception. */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) ToDecimalString (B000, Local0) /* * No restriction on the length of String objects now: * * CH04("", 0, 61, 0, __LINE__, 0, 0) // AE_AML_STRING_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0049/RUN.asl0000700000175000017500000000361614773714147026370 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 49", TCLD, 0x31, W017)) { SRMT ("mdd9") MDD9 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0049/MAIN.asl0000700000175000017500000000413114773714147026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B49.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0049/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0049/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0276_LARGE_REF_COUNT/0000700000175000017500000000000014773714152027566 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0276_LARGE_REF_COUNT/DECL.asl0000700000175000017500000001036714773714152031010 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 276: * * SUMMARY: 'Large Reference Count' on AML code with LoadTable/UnLoad in a slack mode * * Note: Check the result of this test manually that there are no * 'Large Reference Count' reported. * * Note: these 'Large Reference Count' could be detected automatically by Do utility */ Method (MC76, 0, Serialized) { Name (ERR5, 0x00) Name (ERRS, 0x00) Name (TMT0, 0x00) Name (TCLL, 0x00) Name (RMRC, 0x00) Name (RP0P, Package (0x08){}) Name (NRMT, "") Name (STST, "STST") Name (TCNP, Package (0x09) { "compilation", "functional", "complex", "exceptions", "bug-demo", "service", "mt", "Identity2MS", "IMPL" }) Method (TCN0, 1, NotSerialized) { Local7 = "?" Local7 = DerefOf (TCNP [Arg0]) Return (Local7) } Method (MMM0, 0, NotSerialized) { ERRS++ } Method (MC73, 0, Serialized) { Name (DDBH, 0x00) Method (M000, 0, NotSerialized) { } Method (M001, 0, NotSerialized) { } DDBH = LoadTable ("OEM1", "", "", "", "", 0x01) MMM0 () Unload (DDBH) Debug = "OEM1 unloaded" } Method (MMM2, 5, NotSerialized) { } Method (MMM3, 0, Serialized) { Name (B000, Buffer (0x04){}) Concatenate (":", TCN0 (TCLL), Local1) Concatenate (Local1, ":", Local0) Concatenate (Local0, "?", Local1) Concatenate (Local1, ":", Local0) Concatenate (Local0, NRMT, Local1) Concatenate (Local1, ":", Local0) Local7 = (ERRS - ERR5) /* \MC76.ERR5 */ Concatenate (Local0, "FAIL:Errors # ", Local2) Concatenate (Local2, Local7, Local0) Concatenate (Local0, Local1, Local2) Debug = Local2 Concatenate (":", STST, Local2) Concatenate (Local2, Local1, Local0) RP0P [RMRC] = Local0 } Method (MMM1, 0, NotSerialized) { MMM2 (0x00, 0x00, 0x00, 0x00, 0x00) MMM3 () } Method (MMM4, 1, NotSerialized) { TMT0 = Timer } Method (MMM5, 0, NotSerialized) { MMM4 (0x00) MC73 () MMM1 () } MMM5 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0276_LARGE_REF_COUNT/RUN.asl0000700000175000017500000000424714773714152030745 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 276", TCLD, 0x0114, W017)) { SRMT ("mc76") If ((!SLCK || Y276)) { MC76 () } Else { /* * Blocked because it is followed by mass of * 'Large Reference Count'. */ BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0276_LARGE_REF_COUNT/MAIN.asl0000700000175000017500000000417114773714152031021 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B276.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0276_LARGE_REF_COUNT/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0276_LARGE_REF_COUNT/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0286/0000700000175000017500000000000014773714152025211 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0286/DECL.asl0000700000175000017500000000717714773714152026440 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 286: * * SUMMARY: After an exception the elements of the Package passed to Unload * are unexpectedly deleted */ Device (D286) { Name (BUF3, Buffer (0x58) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x58, 0x00, 0x00, 0x00, // SSDTX... /* 0008 */ 0x02, 0xD4, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x5B, 0x82, 0x32, 0x41, // ... [.2A /* 0028 */ 0x55, 0x58, 0x44, 0x08, 0x50, 0x41, 0x43, 0x30, // UXD.PAC0 /* 0030 */ 0x12, 0x27, 0x03, 0x0E, 0x1F, 0x32, 0x54, 0x76, // .'...2Tv /* 0038 */ 0x98, 0xBA, 0xDC, 0xFE, 0x0D, 0x74, 0x65, 0x73, // .....tes /* 0040 */ 0x74, 0x20, 0x70, 0x61, 0x63, 0x6B, 0x61, 0x67, // t packag /* 0048 */ 0x65, 0x30, 0x00, 0x11, 0x0C, 0x0A, 0x09, 0x13, // e0...... /* 0050 */ 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, 0x0B // ........ }) OperationRegion (IST3, SystemMemory, 0x0400, 0x58) Field (IST3, ByteAcc, NoLock, Preserve) { RFU3, 704 } Method (M000, 1, NotSerialized) { Unload (DerefOf (Arg0)) } Method (TST0, 0, Serialized) { Name (DDB0, 0x00) External (\AUXD.PAC0, UnknownObj) RFU3 = BUF3 /* \D286.BUF3 */ Load (RFU3, DDB0) /* \D286.TST0.DDB0 */ M000 (RefOf (\AUXD.PAC0)) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) Debug = DerefOf (\AUXD.PAC0 [0x00]) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Unload (DDB0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } } Method (M286, 0, NotSerialized) { \D286.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0286/RUN.asl0000700000175000017500000000401414773714152026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 286", TCLD, 0x011E, W017)) { SRMT ("m286") If (Y286) { M286 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0286/MAIN.asl0000700000175000017500000000413114773714152026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B286.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0286/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0286/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0034/0000700000175000017500000000000014773714147025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0034/DECL.asl0000700000175000017500000000507114773714147026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0034: * * SUMMARY: Some data tables are corrupted when _BAS field of FixedIO Resource Descriptor Macro is specified */ Method (MDC9, 0, Serialized) { Name (RT00, ResourceTemplate () { FixedIO ( 0x0001, // Address 0xFF, // Length ) }) Debug = 0x08 } Method (MDCA, 0, Serialized) { Name (RT00, ResourceTemplate () { FixedIO ( 0x0001, // Address 0xFF, // Length ) FixedIO ( 0x0001, // Address 0xFF, // Length ) }) Debug = 0x18 Debug = 0x38 Debug = 0x28 } Method (MDCB, 0, NotSerialized) { MDC9 () MDCA () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0034/RUN.asl0000700000175000017500000000361614773714147026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 34", TCLD, 0x22, W017)) { SRMT ("mdcb") MDCB () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0034/MAIN.asl0000700000175000017500000000413114773714147026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B34.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0034/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0034/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0243/0000700000175000017500000000000014773714152025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0243/DECL.asl0000700000175000017500000001115214773714152026415 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 243: * * SUMMARY: The normal work with mutexes is broken after the mutex Release order violation */ Method (M02F, 0, Serialized) { Mutex (T500, 0x05) Mutex (T600, 0x06) Mutex (T700, 0x07) Method (M000, 0, NotSerialized) { Debug = "******** Test started" /* (1) */ Debug = "Acquiring mutex of level 5:" Local0 = Acquire (T500, 0xFFFF) If (Local0) { Debug = "!!!!!!!! ERROR 0: Acquire T500 (Level 5, index 0)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquired T500 (Level 5, index 0)" } /* (2) */ Debug = "Acquiring mutex of level 6:" Local0 = Acquire (T600, 0xFFFF) If (Local0) { Debug = "!!!!!!!! ERROR 1: Acquire T600 (Level 6, index 0)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquired T600 (Level 6, index 0)" } /* (3) */ Debug = "Run Release of mutex of level 5 - exception AE_AML_MUTEX_ORDER is expected on it!" Debug = "Release T500 (Level 5, index 0)" Release (T500) /* * If no exception there: * ERROR: NO exception though expected! (it is the contents of bug 238) */ CH04 (__METHOD__, 0x00, 0x40, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ /* (4) */ Debug = "Acquiring mutex of level 7:" Local0 = Acquire (T700, 0xFFFF) If (Local0) { Debug = "!!!!!!!! ERROR 3: Acquire T700 (Level 7, index 0)" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquired T700 (Level 7, index 0)" Debug = "Current level is equal to 7!" } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* (5) */ Debug = "Releasing the mutex of the current level: T700 (Level 7, index 0)" Release (T700) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * (6) * * AE_AML_MUTEX_ORDER exception here which takes place * is an essence of this bug 243. */ Debug = "Releasing mutex of level 6: T600 (Level 6, index 0)" Release (T600) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* (7) */ Debug = "Releasing mutex of level 5: T500 (Level 5, index 0)" Release (T500) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (MM00, 0, NotSerialized) { M000 () } MM00 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0243/RUN.asl0000700000175000017500000000361714773714152026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 243", TCLD, 0xF3, W017)) { SRMT ("m02f") M02F () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0243/MAIN.asl0000700000175000017500000000413114773714152026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B243.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0243/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0243/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0024_ASL/0000700000175000017500000000000014773714147025702 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0024_ASL/DECL.asl0000700000175000017500000000421014773714147027112 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0024: * * SUMMARY: The EISAID doesn't provides input control of "uppercase letter" part (UUU) of EisaIdString * * Error/Warning expected but doesn't occur */ Method(mdb9) { /* * Store(EISAID("QWT012R"), Local0) * * gr.asl 12: Store(EISAID("QWT012R"), Local0) * Error 1065 - ^ EISAID string must be of the form * "UUUXXXX" (3 uppercase, 4 hex digits) * (QWT012R) */ Store(EISAID("QWT0123"), Local0) Store(EISAID("qWT0123"), Local1) Store(Local0, Debug) Store(Local1, Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0024_ASL/MAIN.asl0000700000175000017500000000402314773714147027131 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B24.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0024_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0080_ASL/0000700000175000017500000000000014773714150025676 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0080_ASL/DECL.asl0000700000175000017500000000400014773714150027103 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0080: * * SUMMARY: The ASL compiler should report Error when the name of Method (but not invocation of it) is specified in expressions * * Compiler should return error... */ Method(me2d) { Store("Method me2d started", Debug) // return (0) } Method(me2e, 1) { Store("Method me2e started", Debug) return (0) } Method(me2f, 2) { Store("Method me2f started", Debug) return (0) } Method(me30) { me2f(me2d, 0) me2f(me2e, 1) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0080_ASL/MAIN.asl0000700000175000017500000000402314773714150027125 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B80.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0080_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0065/0000700000175000017500000000000014773714150025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0065/DECL.asl0000700000175000017500000000572714773714150026430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 65: CANCELED * * SUMMARY: BufferField type object should be passed to Methods without any conversion (to Buffer or Integer) * * EXAMPLES: * * ROOT CAUSE: * * SEE ALSO: bugs 65,66,67,68,118 */ Method (MD7E, 1, NotSerialized) { /* ObjectType of the value passed to Method */ /* (BufferField is converted to Integer). */ Local0 = ObjectType (Arg0) If ((Local0 != C00B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } } Method (MD7F, 1, NotSerialized) { /* ObjectType of the value passed to Method */ /* (BufferField is converted to Buffer). */ Local0 = ObjectType (Arg0) If ((Local0 != C00B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00B) } } Method (MD80, 0, NotSerialized) { /* ObjectType of the BufferField immediately */ Local0 = ObjectType (BF30) If ((Local0 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C016) } Local0 = ObjectType (BF31) If ((Local0 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C016) } MD7E (BF30) MD7F (BF31) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0065/RUN.asl0000700000175000017500000000361614773714150026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 65", TCLD, 0x41, W017)) { SRMT ("md80") MD80 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0065/MAIN.asl0000700000175000017500000000424514773714150026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B65.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0065/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0065/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0099/0000700000175000017500000000000014773714150025211 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0099/DECL.asl0000700000175000017500000000445414773714150026433 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0099: * * SUMMARY: The specific sequence of operations dealing with IRef/ORef corrupts the source object */ Method (ME5B, 0, Serialized) { Name (S000, "12345678") Name (B000, Buffer (0x02) { 0x11, 0x22 // ." }) Name (P000, Package (0x02) { 0x33, 0x44 }) Local0 = DerefOf (Local1 = P000 [0x00]) Local0 = DerefOf (RefOf (P000)) Local0 = DerefOf (RefOf (S000)) Local0 = DerefOf (RefOf (B000)) Debug = S000 /* \ME5B.S000 */ Return (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0099/RUN.asl0000700000175000017500000000361614773714150026367 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 99", TCLD, 0x63, W017)) { SRMT ("me5b") ME5B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0099/MAIN.asl0000700000175000017500000000413114773714150026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B99.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0099/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0099/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0256_DEMO_IMPOSSIBLE/0000700000175000017500000000000014773714152027540 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0256_DEMO_IMPOSSIBLE/DECL.asl0000700000175000017500000000323214773714152030753 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 256: * * SUMMARY: Removing the useless code increases essentially the rate of interpretation */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0273/0000700000175000017500000000000014773714152025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0273/DECL.asl0000700000175000017500000001001314773714152026413 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 273: * * SUMMARY: Implementation of LoadTable operator should take into account its RootPathString parameter */ Name (SSDT, Buffer (0x38) { /* 0000 */ 0x4F, 0x45, 0x4D, 0x31, 0x38, 0x00, 0x00, 0x00, // OEM18... /* 0008 */ 0x01, 0x4B, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // .KIntel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x18, 0x09, 0x03, 0x20, 0x08, 0x5F, 0x58, 0x54, // ... ._XT /* 0028 */ 0x32, 0x0A, 0x04, 0x14, 0x0C, 0x5F, 0x58, 0x54, // 2...._XT /* 0030 */ 0x31, 0x00, 0x70, 0x01, 0x5F, 0x58, 0x54, 0x32 // 1.p._XT2 }) DataTableRegion (DR73, "OEM1", "", "") Field (DR73, AnyAcc, NoLock, Preserve) { F273, 448 } Device (D273) { Name (S000, "D273") } Name (RPST, "\\D273") Name (PLDT, 0x00) Name (PPST, "\\PLDT") External (\_XT2, UnknownObj) External (\D273._XT2, UnknownObj) Method (MC73, 0, Serialized) { Name (DDBH, 0x00) Method (LD, 0, NotSerialized) { DDBH = LoadTable ("OEM1", "", "", RPST, PPST, 0x01) Debug = "OEM1 loaded" } Method (UNLD, 0, NotSerialized) { Unload (DDBH) Debug = "OEM1 unloaded" } If ((F273 != SSDT)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, F273, SSDT) } If (CondRefOf (\_XT2, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } If (CondRefOf (\D273._XT2, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\D273._XT2", 0x01) } LD () If (CondRefOf (\_XT2, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } If (CondRefOf (\D273._XT2, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\D273._XT2", 0x00) } UNLD () If (CondRefOf (\_XT2, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } If (CondRefOf (\D273._XT2, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\D273._XT2", 0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0273/RUN.asl0000700000175000017500000000443514773714152026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 273", TCLD, 0x0111, W017)) { SRMT ("mc73") If ((!SLCK || Y276)) { MC73 () } Else { /* * b276: 'Large Reference Count' on AML code with LoadTable/UnLoad in a slack mode * * Blocked because it is followed by mass of * 'Large Reference Count'. */ BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0273/oem1.asl0000700000175000017500000000115214773714152026551 0ustar ivanhuivanhu/* * Intel ACPI Component Architecture * AML Disassembler version 20061109 * * Disassembly of oem1.aml, Thu Nov 16 18:41:26 2006 * * * Original Table Header: * Signature "OEM1" * Length 0x00000038 (56) * Revision 0x01 * OEM ID "Intel" * OEM Table ID "Many" * OEM Revision 0x00000001 (1) * Creator ID "INTL" * Creator Revision 0x20030918 (537069848) */ DefinitionBlock ("oem1.aml", "OEM1", 1, "Intel", "Many", 0x00000001) { Name (_XT2, 0x04) Method (_XT1, 0, NotSerialized) { Store (One, _XT2) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0273/MAIN.asl0000700000175000017500000000413114773714152026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B273.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0273/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0273/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0174/0000700000175000017500000000000014773714151025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0174/DECL.asl0000700000175000017500000000371114773714151026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 174: * * SUMMARY: Inappropriate constant in DescriptorType field of the Descriptor->Address64 structure */ Method (MF60, 0, NotSerialized) { If ((RTD1 != BD0C)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, RTD1, BD0C) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0174/RUN.asl0000700000175000017500000000361714773714151026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 174", TCLD, 0xAE, W017)) { SRMT ("mf60") MF60 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0174/MAIN.asl0000700000175000017500000000424614773714151026442 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B174.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0174/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0174/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0161/0000700000175000017500000000000014773714151025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0161/DECL.asl0000700000175000017500000002235614773714151026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 161: * * SUMMARY: Named object passed as a BitIndex or NumBits to CreateField causes hang * * ROOT CAUSE */ /* Global CreateField declarations */ Method (MD8F, 0, NotSerialized) { If ((BF32 != Buffer(){0x14})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF32, Buffer(){0x14}) } If ((BF33 != Buffer(){0x15, 0x16})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF33, Buffer(){0x15, 0x16}) } } Method (MD90, 0, NotSerialized) { If ((BF34 != Buffer() {0x18})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF34, Buffer(){0x18}) } If ((BF35 != Buffer() {0x19})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF35, Buffer(){0x19}) } } Method (MD91, 0, NotSerialized) { If ((BF36 != Buffer() {0x1A})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF36, Buffer(){0x1A}) } If ((BF37 != Buffer(){0x1B, 0x1C})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF37, Buffer(){0x1B, 0x1C}) } } /* Local CreateField declarations, another buffer than used in md8f-md91 */ Method (MD92, 0, NotSerialized) { CreateField (BD02, 0x20, ID03, BF32) CreateField (BD02, 0x28, (ID03 + 0x08), BF33) If ((BF32 != Buffer(){0x14})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF32, Buffer(){0x14}) } If ((BF33 != Buffer(){0x15, 0x16})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF33, Buffer(){0x15, 0x16}) } } Method (MD93, 0, NotSerialized) { CreateField (BD02, ID04, 0x08, BF34) CreateField (BD02, (ID04 + 0x08), 0x08, BF35) If ((BF34 != Buffer() {0x18})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF34, Buffer(){0x18}) } If ((BF35 != Buffer() {0x19})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF35, Buffer(){0x19}) } } Method (MD94, 0, NotSerialized) { CreateField (BD02, ID05, ID06, BF36) CreateField (BD02, (ID07 + 0x08), (ID08 + 0x08), BF37) If ((BF36 != Buffer() {0x1A})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF36, Buffer(){0x1A}) } If ((BF37 != Buffer(){0x1B, 0x1C})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF37, Buffer(){0x1B, 0x1C}) } } /* Local CreateField declarations, the same buffer that used in md8f-md91 */ Method (MD95, 0, NotSerialized) { CreateField (BD03, 0x20, ID03, BF32) CreateField (BD03, 0x28, (ID03 + 0x08), BF33) If ((BF32 != Buffer(){0x14})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF32, Buffer(){0x14}) } If ((BF33 != Buffer(){0x15, 0x16})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF33, Buffer(){0x15, 0x16}) } } Method (MD96, 0, NotSerialized) { CreateField (BD03, ID04, 0x08, BF34) CreateField (BD03, (ID04 + 0x08), 0x08, BF35) If ((BF34 != Buffer() {0x18})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF34, Buffer(){0x18}) } If ((BF35 != Buffer() {0x19})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF35, Buffer(){0x19}) } } Method (MD97, 0, NotSerialized) { CreateField (BD03, ID05, ID06, BF36) CreateField (BD03, (ID07 + 0x08), (ID08 + 0x08), BF37) If ((BF36 != Buffer() {0x1A})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF36, Buffer(){0x1A}) } If ((BF37 != Buffer(){0x1B, 0x1C})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF37, Buffer(){0x1B, 0x1C}) } } Method (M075, 6, Serialized) { Name (B000, Buffer (0x08) { 0x5D, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 // ]....... }) If ((Arg0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, 0x01) } If ((Arg1 != 0x5D)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg1, 0x5D) } If ((Arg2 != 0x125D)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg2, 0x125D) } If ((Arg3 != 0x1413125D)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg3, 0x1413125D) } If (F64) { If ((Arg4 != 0x181716151413125D)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg4, 0x181716151413125D) } } ElseIf ((Arg4 != B000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg4, B000) } If ((Arg5 != Buffer(){0x5D})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg5, Buffer(){0x5D}) } } Method (M076, 2, NotSerialized) { If ((Arg0 != Buffer(){0x5D})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Buffer(){0x5D}) } If ((Arg1 != Buffer(){0x5D})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg1, Buffer(){0x5D}) } } Method (MD98, 0, NotSerialized) { MD8F () MD90 () MD91 () MD92 () MD93 () MD94 () MD95 () MD96 () MD97 () } Method (MF7F, 0, NotSerialized) { SRMT ("mf7f-0") M075 (BF40, BF41, BF42, BF43, BF44, BF45) SRMT ("mf7f-1") M075 (BF46, BF47, BF48, BF49, BF4A, BF4B) M076 (BF4C, BF4D) } Method (M077, 0, Serialized) { CreateBitField (BD03, 0x08, BF40) CreateByteField (BD03, 0x01, BF41) CreateWordField (BD03, 0x01, BF42) CreateDWordField (BD03, 0x01, BF43) CreateQWordField (BD03, 0x01, BF44) CreateField (BD03, 0x08, 0x08, BF45) Name (ID21, 0x01) Name (ID22, 0x08) CreateBitField (BD03, ID22, BF46) CreateByteField (BD03, ID21, BF47) CreateWordField (BD03, ID21, BF48) CreateDWordField (BD03, ID21, BF49) CreateQWordField (BD03, ID21, BF4A) CreateField (BD03, 0x08, ID22, BF4B) CreateField (BD03, ID22, 0x08, BF4C) CreateField (BD03, ID22, ID22, BF4D) SRMT ("m077-0") M075 (BF40, BF41, BF42, BF43, BF44, BF45) SRMT ("m077-1") M075 (BF46, BF47, BF48, BF49, BF4A, BF4B) M076 (BF4C, BF4D) } Method (MF83, 0, NotSerialized) { Local0 = 0x01 Local1 = 0x08 CreateBitField (BD03, Local1, BF46) CreateByteField (BD03, Local0, BF47) CreateWordField (BD03, Local0, BF48) CreateDWordField (BD03, Local0, BF49) CreateQWordField (BD03, Local0, BF4A) CreateField (BD03, 0x08, Local1, BF4B) CreateField (BD03, Local1, 0x08, BF4C) CreateField (BD03, Local1, Local1, BF4D) SRMT ("mf83") M075 (BF46, BF47, BF48, BF49, BF4A, BF4B) M076 (BF4C, BF4D) } Method (MF84, 2, NotSerialized) { CreateBitField (BD03, Arg1, BF46) CreateByteField (BD03, Arg0, BF47) CreateWordField (BD03, Arg0, BF48) CreateDWordField (BD03, Arg0, BF49) CreateQWordField (BD03, Arg0, BF4A) CreateField (BD03, 0x08, Arg1, BF4B) CreateField (BD03, Arg1, 0x08, BF4C) CreateField (BD03, Arg1, Arg1, BF4D) SRMT ("mf84") M075 (BF46, BF47, BF48, BF49, BF4A, BF4B) M076 (BF4C, BF4D) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0161/RUN.asl0000700000175000017500000000405414773714151026353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 161", TCLD, 0xA1, W017)) { SRMT ("md98") /* Failed even to load without my bug-fix reported */ MD98 () MF7F () M077 () MF83 () MF84 (0x01, 0x08) } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0161/MAIN.asl0000700000175000017500000000424614773714151026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B161.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0161/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0161/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0189/0000700000175000017500000000000014773714151025212 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0189/DECL.asl0000700000175000017500000000474414773714151026436 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 189: * * SUMMARY: The 1-byte buffer passed to ConcatenateResTemplate doesn't cause a run-time error */ Method (MF7D, 0, Serialized) { Name (RT00, ResourceTemplate () { IRQNoFlags () {1} }) Local0 = Buffer (0x01) { 0x79 // y } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = ConcatenateResTemplate (RT00, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) Local0 = Buffer (0x01) { 0x78 // x } Local1 = ConcatenateResTemplate (RT00, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0189/RUN.asl0000700000175000017500000000361714773714151026371 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 189", TCLD, 0xBD, W017)) { SRMT ("mf7d") MF7D () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0189/MAIN.asl0000700000175000017500000000413114773714151026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B189.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0189/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0189/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0267_DEMO_IMPOSSIBLE/0000700000175000017500000000000014773714152027542 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0267_DEMO_IMPOSSIBLE/DECL.asl0000700000175000017500000000317014773714152030756 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 267: * * SUMMARY: Add the BatchMode with the AcpiTerminate */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0229/0000700000175000017500000000000014773714152025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0229/DECL.asl0000700000175000017500000000424514773714152026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 229: * * SUMMARY: Clarify what is the proper behaviour in case of the zero length buffer */ Method (M10F, 1, Serialized) { Name (B000, Buffer (Arg0){}) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (B000 + 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) ToInteger (B000, Local0) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0229/RUN.asl0000700000175000017500000000362314773714152026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 229", TCLD, 0xE5, W017)) { SRMT ("m10f") M10F (0x00) } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0229/MAIN.asl0000700000175000017500000000413114773714152026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B229.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0229/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0229/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0285/0000700000175000017500000000000014773714152025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0285/DECL.asl0000700000175000017500000000627514773714152026435 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 285: * * SUMMARY: AE_AML_OPERAND_TYPE unexpectedly occurs when the Handle parameter * of Unload is a Method call */ Device (D285) { Name (BUF0, Buffer (0x34) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x34, 0x00, 0x00, 0x00, // SSDT4... /* 0008 */ 0x02, 0xEB, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x08, 0x12, 0x06, 0x20, 0x14, 0x0F, 0x5C, 0x53, // ... ..\S /* 0028 */ 0x53, 0x30, 0x30, 0x00, 0xA4, 0x0D, 0x5C, 0x53, // S00...\S /* 0030 */ 0x53, 0x30, 0x30, 0x00 // S00. }) OperationRegion (IST0, SystemMemory, 0x00, 0x34) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 416 } Method (TST0, 0, Serialized) { Name (HI0, 0x00) Method (M000, 0, NotSerialized) { Return (HI0) /* \D285.TST0.HI0_ */ } RFU0 = BUF0 /* \D285.BUF0 */ Load (RFU0, HI0) /* \D285.TST0.HI0_ */ Unload (M000 ()) If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Unload (HI0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } } } Method (M285, 0, NotSerialized) { \D285.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0285/RUN.asl0000700000175000017500000000362114773714152026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 285", TCLD, 0x011D, W017)) { SRMT ("m285") M285 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0285/MAIN.asl0000700000175000017500000000413114773714152026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B285.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0285/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0285/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0056_ASL/0000700000175000017500000000000014773714150025701 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0056_ASL/DECL.asl0000700000175000017500000000505314773714150027117 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0056: * * SUMMARY: The ASL Compiler generates a one element descriptor for Interrupt macro with the empty InterruptList * * Compiler should return error... */ Method(mdec) { // Compiler should return error Name(RT00, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) {} }) Name(RT01, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) {0} }) Store("The contents of the Interrupt(...){} Descriptor:", Debug) Store(RT00, Debug) Store("The contents of the Interrupt(...){0} Descriptor:", Debug) Store(RT01, Debug) if (LEqual(RT00, RT01)) { Store("Error: Descriptors are the same:", Debug) } else { Store("Ok: Descriptors differ each other:", Debug) } } Method(mded) { // Compiler should return error Name(RT00, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) {0} }) Store("The contents of the obtained Interrupt Descriptor:", Debug) Store(RT00, Debug) } Method(mdee) { mdec() mded() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0056_ASL/MAIN.asl0000700000175000017500000000402314773714150027130 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B56.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0056_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0089_SPEC/0000700000175000017500000000000014773714150026022 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0089_SPEC/DECL.asl0000700000175000017500000000322014773714150027232 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 89: * * SUMMARY: Clarifying what does the ASL Method as an element of Package mean */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0195/0000700000175000017500000000000014773714151025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0195/DECL.asl0000700000175000017500000000773214773714151026433 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 195 (local-bugzilla-353): * * SUMMARY: Increment and Decrement of String or Buffer changes the type of operand * * Increment and Decrement of either String or Buffer Object * unexpectedly change the type of operand (Addend and Minuend * respectively) to Integer. Operands should preserve the initial * types. * * By the way, the relevant "equivalent" operations * Add(Addend, 1, Addend) and Subtract(Minuend, 1, Minuend) * don't change the type of Addend and Minuend respectively. */ Method (MFAF, 0, Serialized) { Name (S000, "0321") Name (S001, "0321") Name (B000, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B001, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) S000-- S001 -= 0x01 Debug = "======== :" Debug = S000 /* \MFAF.S000 */ Debug = S001 /* \MFAF.S001 */ Debug = "========." Local0 = ObjectType (S000) Local1 = ObjectType (S001) If ((Local0 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } ElseIf ((S000 != S001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, S000, S001) } If ((Local0 != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x02) } If ((Local1 != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x02) } B000++ B001 += 0x01 Debug = "======== :" Debug = B000 /* \MFAF.B000 */ Debug = B001 /* \MFAF.B001 */ Debug = "========." Local0 = ObjectType (B000) Local1 = ObjectType (B001) If ((Local0 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } ElseIf ((B000 != B001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, B000, B001) } If ((Local0 != 0x03)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x03) } If ((Local1 != 0x03)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x03) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0195/RUN.asl0000700000175000017500000000361714773714151026366 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 195", TCLD, 0xC3, W017)) { SRMT ("mfaf") MFAF () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0195/MAIN.asl0000700000175000017500000000413114773714151026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B195.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0195/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0195/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0140_ASL/0000700000175000017500000000000014773714151025674 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0140_ASL/DECL.asl0000700000175000017500000000355714773714151027121 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 140: * * SUMMARY: The ASL Compiler doesn't report NumElements being less than the number of elements in the PackageList * * Compiler should return error... */ Name(p000, Package(7) {1,2,3,4,5,6,7,8}) Method(mf2c) { Store("mf2c started", Debug) Store(p000, Debug) Store("mf2c finished", Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0140_ASL/MAIN.asl0000700000175000017500000000402414773714151027124 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B140.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0140_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0214/0000700000175000017500000000000014773714152025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0214/DECL.asl0000700000175000017500000000625314773714152026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 214 (local-bugzilla-350): * * * SUMMARY: crash of AcpiExec on repeated CopyObject of OpRegion * * Repeated duplication of an OpRegion to another * dynamic OpRegion by CopyObject ASL operator causes * crash of AcpiExec. */ Method (M81C, 0, Serialized) { Method (M000, 1, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, 0x10) CopyObject (Arg0, OPR0) /* \M81C.M000.OPR0 */ } OperationRegion (OPR1, SystemMemory, 0x00, 0x10) Method (M001, 0, Serialized) { Field (OPR1, ByteAcc, NoLock, WriteAsZeros) { RFU0, 8 } RFU0 = 0x01 M000 (OPR1) If ((RFU0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, RFU0, 0x01) } RFU0 = 0x02 M000 (OPR1) If ((RFU0 != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, RFU0, 0x02) } RFU0 = 0x03 M000 (OPR1) If ((RFU0 != 0x03)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, RFU0, 0x03) } RFU0 = 0x04 If ((RFU0 != 0x04)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, RFU0, 0x04) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M001 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0214/RUN.asl0000700000175000017500000000401214773714152026345 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 214", TCLD, 0xD6, W017)) { SRMT ("m81c") If (Y214) { M81C () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0214/MAIN.asl0000700000175000017500000000413114773714152026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B214.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0214/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0214/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0297_ACTIONS_REQUIRED/0000700000175000017500000000000014773714153027674 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0297_ACTIONS_REQUIRED/DECL.asl0000700000175000017500000011142014773714153031106 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 297: * * SUMMARY: After AE_LIMIT the further work of ACPICA mutex framework looks unstable */ /* * It is m369 od Synchronization test */ Method (M1E4, 1, Serialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Mutex (MT00, 0x00) Mutex (MT10, 0x01) Mutex (MT20, 0x02) Mutex (MT30, 0x03) Mutex (MT40, 0x04) Mutex (MT50, 0x05) Mutex (MT60, 0x06) Mutex (MT70, 0x07) Mutex (MT80, 0x08) Mutex (MT90, 0x09) Mutex (MTA0, 0x0A) Mutex (MTB0, 0x0B) Mutex (MTC0, 0x0C) Mutex (MTD0, 0x0D) Mutex (MTE0, 0x0E) Mutex (MTF0, 0x0F) Mutex (MT01, 0x00) Mutex (MT11, 0x01) Mutex (MT21, 0x02) Mutex (MT31, 0x03) Mutex (MT41, 0x04) Mutex (MT51, 0x05) Mutex (MT61, 0x06) Mutex (MT71, 0x07) Mutex (MT81, 0x08) Mutex (MT91, 0x09) Mutex (MTA1, 0x0A) Mutex (MTB1, 0x0B) Mutex (MTC1, 0x0C) Mutex (MTD1, 0x0D) Mutex (MTE1, 0x0E) If (Arg0) { /* Should be enough to exceed the maximal available number of mutexes */ Mutex (M000, 0x0A) Mutex (M001, 0x0A) Mutex (M002, 0x0A) Mutex (M003, 0x0A) Mutex (M004, 0x0A) Mutex (M005, 0x0A) Mutex (M006, 0x0A) Mutex (M007, 0x0A) Mutex (M008, 0x0A) Mutex (M009, 0x0A) Mutex (M010, 0x0A) Mutex (M011, 0x0A) Mutex (M012, 0x0A) Mutex (M013, 0x0A) Mutex (M014, 0x0A) Mutex (M015, 0x0A) Mutex (M016, 0x0A) Mutex (M017, 0x0A) Mutex (M018, 0x0A) Mutex (M019, 0x0A) Mutex (M020, 0x0A) Mutex (M021, 0x0A) Mutex (M022, 0x0A) Mutex (M023, 0x0A) Mutex (M024, 0x0A) Mutex (M025, 0x0A) Mutex (M026, 0x0A) Mutex (M027, 0x0A) Mutex (M028, 0x0A) Mutex (M029, 0x0A) Mutex (M030, 0x0A) Mutex (M031, 0x0A) Mutex (M032, 0x0A) Mutex (M033, 0x0A) Mutex (M034, 0x0A) Mutex (M035, 0x0A) Mutex (M036, 0x0A) Mutex (M037, 0x0A) Mutex (M038, 0x0A) Mutex (M039, 0x0A) Mutex (MTB2, 0x0B) Mutex (MTB3, 0x0B) Mutex (MTB4, 0x0B) Mutex (MTB5, 0x0B) Mutex (MTB6, 0x0B) Mutex (MTB7, 0x0B) Mutex (MTB8, 0x0B) Mutex (MTB9, 0x0B) Mutex (MTBA, 0x0B) Mutex (MTBB, 0x0B) Mutex (MTBC, 0x0B) Mutex (MTBD, 0x0B) Mutex (MTBE, 0x0B) Mutex (MTBF, 0x0B) Mutex (MTC2, 0x0C) Mutex (MTC3, 0x0C) Mutex (MTC4, 0x0C) Mutex (MTC5, 0x0C) Mutex (MTC6, 0x0C) Mutex (MTC7, 0x0C) Mutex (MTC8, 0x0C) Mutex (MTC9, 0x0C) Mutex (MTCA, 0x0C) Mutex (MTCB, 0x0C) Mutex (MTCC, 0x0C) Mutex (MTCD, 0x0C) Mutex (MTCE, 0x0C) Mutex (MTCF, 0x0C) Mutex (MTD2, 0x0D) Mutex (MTD3, 0x0D) Mutex (MTD4, 0x0D) Mutex (MTD5, 0x0D) Mutex (MTD6, 0x0D) Mutex (MTD7, 0x0D) Mutex (MTD8, 0x0D) Mutex (MTD9, 0x0D) Mutex (MTDA, 0x0D) Mutex (MTDB, 0x0D) Mutex (MTDC, 0x0D) Mutex (MTDD, 0x0D) Mutex (MTDE, 0x0D) Mutex (MTDF, 0x0D) Mutex (MTE2, 0x0E) Mutex (MTE3, 0x0E) Mutex (MTE4, 0x0E) Mutex (MTE5, 0x0E) Mutex (MTE6, 0x0E) Mutex (MTE7, 0x0E) Mutex (MTE8, 0x0E) Mutex (MTE9, 0x0E) Mutex (MTEA, 0x0E) Mutex (MTEB, 0x0E) Mutex (MTEC, 0x0E) Mutex (MTED, 0x0E) Mutex (MTEE, 0x0E) Mutex (MTEF, 0x0E) Mutex (MTF1, 0x0F) Mutex (MTF2, 0x0F) Mutex (MTF3, 0x0F) Mutex (MTF4, 0x0F) Mutex (MTF5, 0x0F) Mutex (MTF6, 0x0F) Mutex (MTF7, 0x0F) Mutex (MTF8, 0x0F) Mutex (MTF9, 0x0F) Mutex (MTFA, 0x0F) Mutex (MTFB, 0x0F) Mutex (MTFC, 0x0F) Mutex (MTFD, 0x0F) Mutex (MTFE, 0x0F) Mutex (MTFF, 0x0F) } Local0 = Acquire (MT00, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT01, 0xFFFF) /* the same level */ If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (\_GL, 0xFFFF) /* GL */ If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT10, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT11, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT20, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT21, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT30, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT31, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT40, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT41, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT50, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT51, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT60, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT61, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT70, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT71, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT80, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT81, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT90, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT91, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTA0, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTA1, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTB0, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTB1, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTC0, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTC1, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTD0, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTD1, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTE0, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTE1, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTF0, 0xFFFF) If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If (Arg0) { Local0 = Acquire (MTF1, 0xFFFF) } Else { Local0 = 0x00 } If (Local0) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If (Arg0) { Release (MTF1) } Release (MTF0) Release (MTE1) Release (MTE0) Release (MTD1) Release (MTD0) Release (MTC1) Release (MTC0) Release (MTB1) Release (MTB0) Release (MTA1) Release (MTA0) Release (MT91) Release (MT90) Release (MT81) Release (MT80) Release (MT71) Release (MT70) Release (MT61) Release (MT60) Release (MT51) Release (MT50) Release (MT41) Release (MT40) Release (MT31) Release (MT30) Release (MT21) Release (MT20) Release (MT11) Release (MT10) Release (\_GL) Release (MT01) Release (MT00) } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } If (Arg0) { CH04 (__METHOD__, 0x01, 0x12, 0x00, __LINE__, 0x00, 0x00) /* AE_LIMIT */ } Else { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } } Method (M1E5, 0, NotSerialized) { /* * This DECLARATION causes hang forever * * Event(E000) */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * This causes messages (but no exceptions): * * ACPI Error (utmutex-0421): Mutex [0] is not acquired, cannot release [20061215] * ACPI Error (exutils-0250): Could not release AML Interpreter mutex [20061215] * ACPI Exception (utmutex-0376): AE_BAD_PARAMETER, Thread B45 could not acquire Mutex [0] [20061215] * ACPI Error (exutils-0180): Could not acquire AML Interpreter mutex [20061215] */ Sleep (0x64) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M1E6, 0, NotSerialized) { SRMT ("m1e4-1") M1E4 (0x01) SRMT ("m1e4-0") M1E4 (0x00) SRMT ("m1e5") M1E5 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * m1e5 shows appearance of bug but doesn't cause exceptions * (so it is not detected automatically), so actions are required * for to see result of this bug until it is actually fixed. Then * (when fixed) uncomment Event(E000) in m1e5 and remove this error * report below (or try to find how to detect this situation * automatically now (for not fixed yet)): */ ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0297_ACTIONS_REQUIRED/RUN.asl0000700000175000017500000000356714773714153031057 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 297", TCLD, 0x0129, W017)) { M1E6 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0297_ACTIONS_REQUIRED/MAIN.asl0000700000175000017500000000417414773714153031132 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B297.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0297_ACTIONS_REQUIRED/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0297_ACTIONS_REQUIRED/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0050/0000700000175000017500000000000014773714147025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0050/DECL.asl0000700000175000017500000000575314773714147026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0050: * * SUMMARY: No exception on result of ToHexString longer than 210 bytes */ Method (MDDA, 0, Serialized) { /* 68-byte long buffer */ Name (B000, Buffer (0x44) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0038 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0040 */ 0x01, 0x01, 0x01, 0x01 // .... }) /* ToHexString for 68-byte long buffer attempt */ /* to produce 203 byte long string and have to */ /* result in AE_AML_STRING_LIMIT exception. */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) ToHexString (B000, Local0) CH04 (__METHOD__, 0x00, 0x3D, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0050/RUN.asl0000700000175000017500000000361614773714147026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 50", TCLD, 0x32, W017)) { SRMT ("mdda") MDDA () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0050/MAIN.asl0000700000175000017500000000413114773714147026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B50.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0050/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0050/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0236_ASL/0000700000175000017500000000000014773714152025703 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0236_ASL/DECL.asl0000700000175000017500000000413614773714152027122 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 236: * * SUMMARY: The ASL Compiler hangs on incorrect ElseIf */ Method(m03b) { Method(m000) { Name(i000, 0) Name(i001, 0) if (i000) { Store("Any operation 0", Debug) } elseif (i001) { Store("Any operation 1", Debug) } elseif { Store("Any operation 2", Debug) } } Method(m001) { Name(i000, 0) Name(i001, 0) if (i000) { Store("Any operation 0", Debug) } elseif (i001) { Store("Any operation 1", Debug) } elseuuuuuuuuuu { Store("Any operation 2", Debug) } } Method(mm00) { m000() m001() } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0236_ASL/MAIN.asl0000700000175000017500000000347014773714152027137 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B236.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Include("../../../../../runtime/collections/bdemo/ACPICA/0236_ASL/DECL.asl") } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0060/0000700000175000017500000000000014773714150025175 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0060/DECL.asl0000700000175000017500000000723214773714150026414 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0060: * * SUMMARY: "Outstanding allocations" on processing the Type Conversion * * Methods show "outstanding allocations" errors produced * by ACPICA during processing the Type Conversion. When the * "Dynamic object deletion" test will be implemented the * memory consumption problems like these will be encountered * by it. */ /* No outstanding allocations */ Method (MDFA, 0, Serialized) { OperationRegion (R001, SystemMemory, 0x10, 0x10) Field (R001, ByteAcc, NoLock, Preserve) { F001, 32, F002, 32 } F001 = 0x01 F002 = 0x02 Store ((F001 + F002), Local0) } /* Outstanding: 0x1 allocations after execution */ Method (MDFB, 0, Serialized) { OperationRegion (R001, SystemMemory, 0x10, 0x10) Field (R001, ByteAcc, NoLock, Preserve) { F001, 32, F002, 72 } F001 = 0x01 F002 = 0x02 Store ((F001 + F002), Local0) } /* No outstanding allocations */ Method (MDFC, 0, NotSerialized) { Store ((0x01 + 0x02), Local0) } /* Outstanding: 0x1 allocations after execution */ Method (MDFD, 0, NotSerialized) { Store ((0x01 + "2"), Local0) } /* Outstanding: 0x1 allocations after execution */ Method (MDFE, 0, NotSerialized) { Store (("1" + 0x02), Local0) } /* Outstanding: 0x2 allocations after execution */ Method (MDFF, 0, NotSerialized) { Store (("1" + "2"), Local0) } /* Outstanding: 0x1 allocations after execution */ Method (ME00, 0, Serialized) { Name (B000, Buffer (0x01) { 0x91 // . }) Store ((B000 + 0x02), Local0) } Method (ME01, 0, NotSerialized) { MDFA () MDFB () MDFC () MDFD () MDFE () MDFF () ME00 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0060/RUN.asl0000700000175000017500000000361614773714150026353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 60", TCLD, 0x3C, W017)) { SRMT ("me01") ME01 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0060/MAIN.asl0000700000175000017500000000413114773714150026424 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B60.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0060/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0060/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0221/0000700000175000017500000000000014773714152025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0221/DECL.asl0000700000175000017500000000552214773714152026415 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 221: * * SUMMARY: AcpiExec improper emulates alternating access to OpRegions * covering different ranges */ Method (M109, 0, Serialized) { Method (CHCK, 3, NotSerialized) { If ((Arg0 != Arg1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Arg1) } } OperationRegion (OPR0, SystemMemory, 0x00, 0x02) OperationRegion (OPR1, SystemMemory, 0x00, 0x01) OperationRegion (OPR2, SystemMemory, 0x01, 0x01) Field (OPR0, ByteAcc, NoLock, Preserve) { F000, /* Byte 0 */ 8, F001, /* Byte 1 */ 8 } Field (OPR1, ByteAcc, NoLock, Preserve) { F002, /* Byte 0 */ 8 } Field (OPR2, ByteAcc, NoLock, Preserve) { F003, /* Byte 1 */ 8 } F001 = 0x5A /* Byte 1 */ CHCK (F001, 0x5A, 0x00) F002 = 0xC3 /* Byte 0 */ CHCK (F002, 0xC3, 0x01) CHCK (F000, 0xC3, 0x02) /* Byte 0 */ CHCK (F001, 0x5A, 0x03) /* Byte 1 */ CHCK (F003, 0x5A, 0x04) /* Byte 1 */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0221/RUN.asl0000700000175000017500000000361714773714152026355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 221", TCLD, 0xDD, W017)) { SRMT ("m109") M109 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0221/MAIN.asl0000700000175000017500000000413114773714152026425 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B221.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0221/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0221/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0006/0000700000175000017500000000000014773714147025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0006/DECL.asl0000700000175000017500000000424014773714147026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0006: * * SUMMARY: ToInteger converts a decimal string the same way as a hexadecimal one */ Method (MDA3, 0, NotSerialized) { ToInteger ("0x12345678", Local0) If ((Local0 != 0x12345678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x12345678) } ToInteger ("12345678", Local0) If ((Local0 != 0x00BC614E)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00BC614E) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0006/RUN.asl0000700000175000017500000000361514773714147026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 6", TCLD, 0x06, W017)) { SRMT ("mda3") MDA3 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0006/MAIN.asl0000700000175000017500000000413114773714147026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B6.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0006/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0006/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0053_ASL/0000700000175000017500000000000014773714147025704 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0053_ASL/DECL.asl0000700000175000017500000001020414773714147027114 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0053: * * SUMMARY: The ASL Compiler doesn't reject the out of range number of interrupts for Interrupt macro * * ASL compiler should return an error... */ Method(mdde) { Name(RT00, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112, 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128, 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144, 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160, 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176, 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192, 193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208, 209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224, 225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240, 241,242,243,244,245,246,247,248,249,250,251,252,253,254,255} }) Name(RT01, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112, 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128, 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144, 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160, 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176, 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192, 193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208, 209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224, 225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240, 241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,0} }) Store("The contents of the obtained Interrupt Descriptor:", Debug) Store(RT01, Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0053_ASL/MAIN.asl0000700000175000017500000000402314773714147027133 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B53.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0053_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0054/0000700000175000017500000000000014773714150025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0054/DECL.asl0000700000175000017500000002455614773714147026435 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0054: * * SUMMARY: All ASL Operators causes exceptions on two immediately passed Buffers * * All the ASL Operators which deal with * at least two Buffer type objects cause * unexpected exceptions in cases when both * Buffer type objects are passed immediately. */ Method (MDDF, 0, Serialized) { Name (B000, Buffer (0x02) { 0x79, 0x00 // y. }) Name (B001, Buffer (0x02) { 0x79, 0x00 // y. }) Local0 = ConcatenateResTemplate (B000, B001) If ((Local0 != Buffer (0x02) { 0x79, 0x00 // y. })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x02) { 0x79, 0x00 // y. }) } } /* ConcatenateResTemplate */ Method (MDE0, 0, Serialized) { Name (B000, Buffer (0x02) { 0x79, 0x00 // y. }) Local0 = ConcatenateResTemplate (B000, Buffer (0x02) { 0x79, 0x00 // y. }) If ((Local0 != Buffer (0x02) { 0x79, 0x00 // y. })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x02) { 0x79, 0x00 // y. }) } Local0 = ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, B000) If ((Local0 != Buffer (0x02) { 0x79, 0x00 // y. })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x02) { 0x79, 0x00 // y. }) } } Method (MDE1, 0, NotSerialized) { Local0 = ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Buffer (0x02) { 0x79, 0x00 // y. }) If ((Local0 != Buffer (0x02) { 0x79, 0x00 // y. })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x02) { 0x79, 0x00 // y. }) } } /* LEqual */ Method (MDE2, 0, Serialized) { Name (B000, Buffer (0x01) { 0x79 // y }) Local0 = (B000 == Buffer (0x01) { 0x79 // y }) If ((Local0 != Ones)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Ones) } Local0 = (Buffer (0x01) { 0x79 // y } == B000) If ((Local0 != Ones)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Ones) } } Method (MDE3, 0, NotSerialized) { Local0 = (Buffer (0x01) { 0x79 // y } == Buffer (0x01) { 0x79 // y }) If ((Local0 != Ones)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Ones) } } /* LGreater */ Method (MDE4, 0, Serialized) { Name (B000, Buffer (0x01) { 0x79 // y }) Local0 = (B000 > Buffer (0x01) { 0x79 // y }) If ((Local0 != Zero)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Zero) } Local0 = (Buffer (0x01) { 0x79 // y } > B000) If ((Local0 != Zero)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Zero) } } Method (MDE5, 0, NotSerialized) { Local0 = (Buffer (0x01) { 0x79 // y } > Buffer (0x01) { 0x79 // y }) If ((Local0 != Zero)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Zero) } } /* .......... */ /* Concatenate */ Method (MDE6, 0, Serialized) { Name (B000, Buffer (0x01) { 0x79 // y }) Local0 = Concatenate (B000, Buffer (0x01) { 0x79 // y }) If ((Local0 != Buffer (0x02) { 0x79, 0x79 // yy })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x02) { 0x79, 0x79 // yy }) } Local0 = Concatenate (Buffer (0x01) { 0x79 // y }, B000) If ((Local0 != Buffer (0x02) { 0x79, 0x79 // yy })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x02) { 0x79, 0x79 // yy }) } } Method (MDE7, 0, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x79 // y }, Buffer (0x01) { 0x79 // y }) If ((Local0 != Buffer (0x02) { 0x79, 0x79 // yy })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x02) { 0x79, 0x79 // yy }) } } /* Add */ Method (MDE8, 0, Serialized) { Name (B000, Buffer (0x01) { 0x79 // y }) Local0 = (B000 + Buffer (0x01) { 0x79 // y }) If ((Local0 != 0xF2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xF2) } Local0 = (Buffer (0x01) { 0x79 // y } + B000) /* \MDE8.B000 */ If ((Local0 != 0xF2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xF2) } } Method (MDE9, 0, NotSerialized) { Local0 = (Buffer (0x01) { 0x79 // y } + Buffer (0x01) { 0x79 // y }) If ((Local0 != 0xF2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xF2) } } /* .......... */ Method (MDEA, 0, NotSerialized) { MDDF () /* ConcatenateResTemplate */ MDE0 () MDE1 () /* LEqual */ MDE2 () MDE3 () /* LGreater */ MDE4 () MDE5 () /* Concatenate */ MDE6 () MDE7 () /* Add */ MDE8 () MDE9 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0054/RUN.asl0000700000175000017500000000361614773714150026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 54", TCLD, 0x36, W017)) { SRMT ("mdea") MDEA () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0054/MAIN.asl0000700000175000017500000000413114773714147026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B54.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0054/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0054/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0282/0000700000175000017500000000000014773714152025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0282/DECL.asl0000700000175000017500000000450714773714152026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 282: * * SUMMARY: Crash when the Buffer Object parameter of Load is used after an exception in it */ Device (D282) { Name (BUF0, Buffer (0x09) { /* 0000 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0008 */ 0x01 // . }) Method (TST0, 0, NotSerialized) { Debug = BUF0 /* \D282.BUF0 */ Load (BUF0, Local0) Debug = BUF0 /* \D282.BUF0 */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } } Method (M282, 0, NotSerialized) { \D282.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0282/RUN.asl0000700000175000017500000000401414773714152026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 282", TCLD, 0x011A, W017)) { SRMT ("m282") If (Y282) { M282 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0282/MAIN.asl0000700000175000017500000000413114773714152026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B282.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0282/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0282/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0093/0000700000175000017500000000000014773714150025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0093/DECL.asl0000700000175000017500000000776714773714150026437 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0093: * * SUMMARY: Invalid result of Index operator passed with the immediate image of Buffer */ Method (ME42, 1, Serialized) { Name (B000, Buffer (0x08) { 0x0B, 0x16, 0x21, 0x2C, 0x37, 0x42, 0x4D, 0x58 // ..!,7BMX }) If ((Arg0 == 0x00)) { Debug = "Buffer as a named object:" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = DerefOf (B000 [0x05]) If ((Local0 != 0x42)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x42) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } ElseIf ((Arg0 == 0x01)) { Debug = "The same Buffer but substituted immediately:" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store (Index (Buffer (0x08) { 0x0B, 0x16, 0x21, 0x2C, 0x37, 0x42, 0x4D, 0x58 // ..!,7BMX }, 0x05), Local1) If (Y900) { Local0 = DerefOf (Local1) If ((Local0 != 0x42)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x42) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } Else { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = DerefOf (Index (Buffer (0x08) { 0x0B, 0x16, 0x21, 0x2C, 0x37, 0x42, 0x4D, 0x58 // ..!,7BMX }, 0x05)) If (Y900) { If ((Local0 != 0x42)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x42) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } } Method (ME43, 0, NotSerialized) { /* 0,1 - success, 2 - crash */ ME42 (0x00) ME42 (0x01) ME42 (0x02) Return (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0093/RUN.asl0000700000175000017500000000361614773714150026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 93", TCLD, 0x5D, W017)) { SRMT ("me43") ME43 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0093/MAIN.asl0000700000175000017500000000413114773714150026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B93.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0093/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0093/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0059/0000700000175000017500000000000014773714150025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0059/DECL.asl0000700000175000017500000001162314773714150026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0059: * * SUMMARY: String to Buffer conversion doesn't reduce the size of resulting Buffer */ Method (MDF9, 0, Serialized) { /* Table 17-8 Object Conversion Rules, */ /* String -->> Buffer Rule: */ /* "If the string is shorter than the buffer, */ /* the buffer size is reduced". */ /* * New reduction of 12.03.05: * "If the string is shorter than the buffer, * the remaining buffer bytes are set to zero". */ Name (B000, Buffer (0xCA) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0xC9, 0xCA // .. }) Name (B001, Buffer (0xCA) { "zxqwrt" }) B000 = "zxqwrt" Local0 = ObjectType (B000) Local1 = SizeOf (B000) If ((Local0 != 0x03)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x03) } ElseIf ((Local1 != 0xCA)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xCA) } ElseIf ((B000 != B001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, B000, B001) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0059/RUN.asl0000700000175000017500000000361614773714150026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 59", TCLD, 0x3B, W017)) { SRMT ("mdf9") MDF9 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0059/MAIN.asl0000700000175000017500000000413114773714150026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B59.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0059/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0059/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0126/0000700000175000017500000000000014773714150025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0126/DECL.asl0000700000175000017500000000547514773714150026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 126: * * SUMMARY: The Read access automatic dereference for RefOf reference doesn't work */ Method (MF0F, 1, NotSerialized) { Debug = "m000 started, apply DerefOf()" Local0 = DerefOf (Arg0) Local7 = (Local0 + 0x01) If ((Local0 != 0x07)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x07) } If ((Local7 != 0x08)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, 0x08) } Debug = "m000 finished" } Method (MF10, 1, Serialized) { Name (I001, 0x00) Debug = "m001 started, DON'T apply DerefOf()" Local7 = (Arg0 + 0x01) If ((Arg0 != 0x07)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, 0x07) } If ((Local7 != 0x08)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, 0x08) } Debug = "m001 finished" } Method (MF11, 0, Serialized) { Name (I000, 0x07) MF0F (RefOf (I000)) } Method (MF12, 0, Serialized) { Name (I000, 0x07) MF10 (RefOf (I000)) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0126/RUN.asl0000700000175000017500000000407014773714150026351 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 126", TCLD, 0x7E, W017)) { SRMT ("mf11") MF11 () SRMT ("mf12") If (Y126) { MF12 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0126/MAIN.asl0000700000175000017500000000413114773714150026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B126.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0126/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0126/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0098/0000700000175000017500000000000014773714150025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0098/DECL.asl0000700000175000017500000002710414773714150026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0098: * * SUMMARY: Crash on a specific AML code */ Method (ME51, 1, NotSerialized) { Local0 = ObjectType (Arg0) Debug = Local0 } Method (ME52, 0, Serialized) { Name (RUN0, 0x01) Name (RUN1, 0x01) Name (RUN2, 0x01) Name (P000, Package (0x20) { 0x00, DD08, SD01, BD04, 0x00 }) Debug = "============= Test started:" If (RUN0) { Debug = "============= Integer:" Local0 = Local1 = P000 [0x01] Debug = Local1 ME51 (Local1) Debug = Local0 } If (RUN1) { Debug = "============= String:" Local0 = Local1 = P000 [0x02] Debug = Local1 ME51 (Local1) Debug = Local0 } If (RUN2) { Debug = "============= Buffer:" Local0 = Local1 = P000 [0x03] Debug = Local1 ME51 (Local1) Debug = Local0 } Debug = "============= Test finished." } /* Arg0 - the type of object */ /* (for 8 (- Method) causes crash, Bug 0097) */ Method (ME54, 1, Serialized) { Name (PD02, Package (0x20) { 0x00, ID0C, SD02, BD05, PD02, FD02, DD09, ED01, ME53, MXD1, RD03, PWD0, PRD0, TZD0, BFD0 }) Debug = "============= Test started:" Switch (ToInteger (Arg0)) { Case (0x00) { Debug = "============= Uninitialized:" } Case (0x01) { Debug = "============= Integer:" Local0 = Local1 = PD02 [0x01] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x02) { Debug = "============= String:" Local0 = Local1 = PD02 [0x02] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x03) { Debug = "============= Buffer:" Local0 = Local1 = PD02 [0x03] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x04) { Debug = "============= Package:" Local0 = Local1 = PD02 [0x04] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x05) { Debug = "============= Field Unit:" Local0 = Local1 = PD02 [0x05] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x06) { Debug = "============= Device:" Local0 = Local1 = PD02 [0x06] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x07) { Debug = "============= Event:" Local0 = Local1 = PD02 [0x07] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x08) { Debug = "============= Method:" Local0 = Local1 = PD02 [0x08] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x09) { Debug = "============= Mutex:" Local0 = Local1 = PD02 [0x09] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x0A) { Debug = "============= OperationRegion:" Local0 = Local1 = PD02 [0x0A] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x0B) { Debug = "============= PowerResource:" Local0 = Local1 = PD02 [0x0B] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x0C) { Debug = "============= Processor:" Local0 = Local1 = PD02 [0x0C] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x0D) { Debug = "============= ThermalZone:" Local0 = Local1 = PD02 [0x0D] Debug = Local1 ME56 (Local1) Debug = Local0 } Case (0x0E) { Debug = "============= Buffer Field:" Local0 = Local1 = PD02 [0x0E] Debug = Local1 ME56 (Local1) Debug = Local0 } } /* Switch */ Debug = "============= Test finished." } /* * The same as me54 but all the cases are invoked not * one by one calling to the me54() Method with the next * in turn type of data but all the types of data are * exercised simultaneously during one call to me55 * method. */ Method (ME55, 0, Serialized) { Name (PD02, Package (0x20) { 0x00, ID0C, SD02, BD05, PD02, FD02, DD09, ED01, ME53, MXD1, RD03, PWD0, PRD0, TZD0, BFD0 }) Debug = "============= Test started:" /* Switch (Arg0) { */ /* Case (0) { */ Debug = "============= Uninitialized:" /* } */ /* Case (1) { */ Debug = "============= Integer:" Local0 = Local1 = PD02 [0x01] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (2) { */ Debug = "============= String:" Local0 = Local1 = PD02 [0x02] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (3) { */ Debug = "============= Buffer:" Local0 = Local1 = PD02 [0x03] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (4) { */ Debug = "============= Package:" Local0 = Local1 = PD02 [0x04] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (5) { */ Debug = "============= Field Unit:" Local0 = Local1 = PD02 [0x05] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (6) { */ Debug = "============= Device:" Local0 = Local1 = PD02 [0x06] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (7) { */ Debug = "============= Event:" Local0 = Local1 = PD02 [0x07] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* * Causes crash, Bug 0097 * * // Case (8) { * Store("============= Method:", Debug) * Store(Index(pd02, 8, Local1), Local0) * Store(Local1, Debug) * me56(Local1) * Store(Local0, Debug) * // } */ /* Case (9) { */ Debug = "============= Mutex:" Local0 = Local1 = PD02 [0x09] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (10) { */ Debug = "============= OperationRegion:" Local0 = Local1 = PD02 [0x0A] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (11) { */ Debug = "============= PowerResource:" Local0 = Local1 = PD02 [0x0B] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (12) { */ Debug = "============= Processor:" Local0 = Local1 = PD02 [0x0C] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (13) { */ Debug = "============= ThermalZone:" Local0 = Local1 = PD02 [0x0D] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* Case (14) { */ Debug = "============= Buffer Field:" Local0 = Local1 = PD02 [0x0E] Debug = Local1 ME56 (Local1) Debug = Local0 /* } */ /* } // Switch */ Debug = "============= Test finished." } Method (ME56, 1, NotSerialized) { Local0 = ObjectType (Arg0) Debug = Local0 } Method (ME57, 0, NotSerialized) { ME54 (0x00) ME54 (0x01) ME54 (0x02) ME54 (0x03) ME54 (0x04) ME54 (0x05) ME54 (0x06) ME54 (0x07) /* * Causes crash, Bug 0097 * me54(8) */ ME54 (0x09) ME54 (0x0A) ME54 (0x0B) ME54 (0x0C) ME54 (0x0D) ME54 (0x0E) } Method (ME58, 0, NotSerialized) { /* * Exercise one particular type of data * which is specified by Arg0. * * Arg0 - the type of object (0-14) * for 8 (Method) causes crash, Bug 0097 */ ME54 (0x0E) /* * Call to me54 for each type of data excluding * 8 (Method) (causes crash, Bug 0097). */ ME57 () /* * The same as me54 but all the cases are invoked not * one by one calling to the me54() Method with the next * in turn type of data but all the types of data are * exercised simultaneously during one call to me55 * method. */ ME55 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0098/RUN.asl0000700000175000017500000000432214773714150026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 98", TCLD, 0x62, W017)) { SRMT ("me52") ME52 () If (Y176) { /* * Method me52 is enough to identify this bug, * so don't set up BLOCKED for this me58. * me58 will be added after bug-176 fixing. */ SRMT ("me58") ME58 () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0098/MAIN.asl0000700000175000017500000000424514773714150026445 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B98.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0098/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0098/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/0000700000175000017500000000000014773714151025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/DECL.asl0000700000175000017500000000523214773714151026416 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 135: * * SUMMARY: Store of Index reference to another element of the same Package causes hang * * DESCRIPTION: infinite loops for self and cross Index-References * between Packages. * * * Checking the cross references of type (mostly) Index: * * 1. IRef type element of package refers to element of the same package. * 2. Cross references between Packages: * - IRef0 type element of package P0 refers to element package P1 * - IRef1 type element of package P1 refers to element package P0 */ Include("../../../../../runtime/collections/bdemo/ACPICA/0135/Common.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0135/SimplePkgs.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0135/PkgsHierarchy.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0135/Misc1.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0135/Misc2.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0135/Mix.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0135/Methods.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0135/GrInvest.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/RUN.asl0000700000175000017500000000374314773714151026360 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Total: 0x96 Outstanding allocations because of * AcpiExec doesn't run the unload of the table have been processed. * * Outstanding: 0x96 allocations after execution. */ if (STTT("Demo of bug 135", TCLD, 135, W017)) { if (y135) { mfc5() // SimplePkgs mfca() // Misc1 mfee() // Misc2 m808() // Mix mfda() // Methods mfdb() // PkgsHierarchy mfe6() // GrInvest } else { SRMT("TESTS-OF-B135") BLCK() } } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/Methods.asl0000700000175000017500000003217014773714151027313 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method invocations do add layers of Packages processing * * 0x1 Outstanding allocations because of * AcpiExec doesn't run the unload of the table have been processed. * All they are caused by call to SRMT Method. * * Outstanding: 0x1 allocations after execution. */ /* * Web of references performed by several method invocations */ Method(mfd9,, Serialized) { Name(sz, 32) // full size of Package applied in algorithm Name(szzz, 64) // full size of Package Name(prt, 16) // number of different parts Name(nm16, 0) // 1/16 of size Name(i1, 0) // 1/16 of size Name(i2, 0) // 2/16 of size Name(i3, 0) Name(i4, 0) Name(i5, 0) Name(i6, 0) Name(i8, 0) Name(i9, 0) Name(i10, 0) Name(i11, 0) Name(i12, 0) Name(i13, 0) Name(i14, 0) Name(i16, 0) Name(p000, Package(szzz) {}) Name(p001, Package(szzz) {}) Name(p002, Package(szzz) {}) Name(p003, Package(szzz) {}) Name(p004, Package(szzz) {}) Name(p005, Package(szzz) {}) Name(p006, Package(szzz) {}) Name(p007, Package(szzz) {}) Name(i000, 0xabcd0000) Name(i001, 0xabcd0100) Name(i002, 0xabcd0200) Name(i003, 0xabcd0300) Name(i004, 0xabcd0400) Name(i005, 0xabcd0500) Name(i006, 0xabcd0600) Name(i007, 0xabcd0700) Divide(sz, prt, Local0, nm16) Store(nm16, i1) Multiply(nm16, 2, i2) Multiply(nm16, 3, i3) Multiply(nm16, 4, i4) Multiply(nm16, 5, i5) Multiply(nm16, 6, i6) Multiply(nm16, 8, i8) Multiply(nm16, 9, i9) Multiply(nm16, 10, i10) Multiply(nm16, 11, i11) Multiply(nm16, 12, i12) Multiply(nm16, 13, i13) Multiply(nm16, 14, i14) Multiply(nm16, 16, i16) /* Initializing full Packages with monotone increasing Integers */ Method(m000,, Serialized) { Name(qq00, 0) Name(qq01, 0) Method(m000) { mfc7(p000, 0, sz, i000) mfc7(p001, 0, sz, i001) } Method(m001) { if (qq00) { m000() } mfc7(p002, 0, sz, i002) mfc7(p003, 0, sz, i003) mfc7(p004, 0, sz, i004) } Method(m002) { mfc7(p005, 0, sz, i005) if (qq01) { Store("never", Debug) } else { mfc7(p006, 0, sz, i006) } } Store(1, qq00) if (qq00) { m001() } m002() if (qq00) { mfc7(p007, 0, sz, i007) } } /* Initializing the Package with IRefs */ /* Generate two-directional ring of references */ Method(m001,, Serialized) { Name(uu00, 0xeeff0000) Name(ii00, 0xabcd0000) Name(pp00, Package(sz) {}) Name(qq00, 0) Method(m001) { mfc8(p000, p001, 0, i8, nm16, 0, 0) } Method(m002) { mfc8(p001, p002, 0, i8, nm16, 0, 0) } Method(m003) { m001() m002() mfc8(p002, p003, 0, i8, nm16, 0, 0) } Method(m004) { m003() mfc8(p003, p004, 0, i8, nm16, 0, 0) } Method(m005) { m004() mfc8(p004, p005, 0, i8, nm16, 0, 0) } Method(m006) { mfc8(p005, p006, 0, i8, nm16, 0, 0) } Method(m007) { if (qq00) { mfc8(p006, p007, 0, i8, nm16, 0, 0) } } Method(m008) { if (qq00) { m005() m006() m007() mfc8(p007, p000, 0, i8, nm16, 0, 0) } } Method(m009) { if (qq00) { mfc8(p007, p006, i1, i9, nm16, 0, 0) } } Method(m00a) { if (qq00) { mfc8(p006, p005, i1, i9, nm16, 0, 0) } } Method(m00b) { if (qq00) { mfc8(p005, p004, i1, i9, nm16, 0, 0) } } Method(m00c) { if (qq00) { mfc8(p004, p003, i1, i9, nm16, 0, 0) } } Method(m00d) { if (qq00) { mfc8(p003, p002, i1, i9, nm16, 0, 0) } } Method(m00e) { if (qq00) { mfc8(p002, p001, i1, i9, nm16, 0, 0) } } Method(m00f) { if (qq00) { mfc8(p001, p000, i1, i9, nm16, 0, 0) } } Method(m010) { m00b() m00c() m00d() m00e() m00f() mfc8(p000, p007, i1, i9, nm16, 0, 0) } Store(1, qq00) m000() if (qq00) { m008() m009() m00a() } mfc7(pp00, 0, sz, uu00) // Causes Outstanding allocations mfc8(p000, pp00, 0, i8, nm16, 0, 0) mfc8(pp00, p000, 0, i16, nm16, 0, 0) m010() mfcc(pp00, i8, nm16, ii00, 0, 0x100) mfcc(p000, i16, nm16, uu00, 0, 0x101) } /* * Join all other packages * (two directions for each two points) */ Method(m002,, Serialized) { Name(qq01, 0) m001() if (qq01) { Store("never", Debug) } else { mfc8(p002, p000, i2, i10, nm16, 0, 0) mfc8(p003, p000, i3, i11, nm16, 0, 0) if (qq01) { Store("never", Debug) } else { mfc8(p004, p000, i4, i12, nm16, 0, 0) mfc8(p005, p000, i5, i13, nm16, 0, 0) } mfc8(p006, p000, i6, i14, nm16, 0, 0) } mfc8(p003, p001, i3, i11, nm16, 0, 0) mfc8(p004, p001, i4, i12, nm16, 0, 0) mfc8(p005, p001, i5, i13, nm16, 0, 0) mfc8(p006, p001, i6, i14, nm16, 0, 0) mfc8(p007, p001, i2, i10, nm16, 0, 0) mfc8(p004, p002, i4, i12, nm16, 0, 0) mfc8(p005, p002, i5, i13, nm16, 0, 0) mfc8(p006, p002, i6, i14, nm16, 0, 0) mfc8(p007, p002, i2, i10, nm16, 0, 0) mfc8(p000, p002, i3, i11, nm16, 0, 0) mfc8(p005, p003, i5, i13, nm16, 0, 0) mfc8(p006, p003, i6, i14, nm16, 0, 0) mfc8(p007, p003, i2, i10, nm16, 0, 0) mfc8(p000, p003, i3, i11, nm16, 0, 0) mfc8(p001, p003, i4, i12, nm16, 0, 0) mfc8(p006, p004, i6, i14, nm16, 0, 0) mfc8(p007, p004, i2, i10, nm16, 0, 0) mfc8(p000, p004, i3, i11, nm16, 0, 0) mfc8(p001, p004, i4, i12, nm16, 0, 0) mfc8(p002, p004, i5, i13, nm16, 0, 0) mfc8(p007, p005, i2, i10, nm16, 0, 0) mfc8(p000, p005, i3, i11, nm16, 0, 0) mfc8(p001, p005, i4, i12, nm16, 0, 0) mfc8(p002, p005, i5, i13, nm16, 0, 0) mfc8(p003, p005, i6, i14, nm16, 0, 0) mfc8(p000, p006, i3, i11, nm16, 0, 0) mfc8(p001, p006, i4, i12, nm16, 0, 0) mfc8(p002, p006, i5, i13, nm16, 0, 0) mfc8(p003, p006, i6, i14, nm16, 0, 0) mfc8(p004, p006, i2, i10, nm16, 0, 0) mfc8(p001, p007, i4, i12, nm16, 0, 0) mfc8(p002, p007, i5, i13, nm16, 0, 0) mfc8(p003, p007, i6, i14, nm16, 0, 0) mfc8(p004, p007, i2, i10, nm16, 0, 0) mfc8(p005, p007, i3, i11, nm16, 0, 0) } /* Verifying access to Packages through the IRefs */ /* Two-directional ring of references */ Method(m003) { m002() mfcc(p001, i8, nm16, i000, 0, 0x102) mfcc(p002, i8, nm16, i001, 0, 0x103) mfcc(p003, i8, nm16, i002, 0, 0x104) mfcc(p004, i8, nm16, i003, 0, 0x105) mfcc(p005, i8, nm16, i004, 0, 0x106) mfcc(p006, i8, nm16, i005, 0, 0x107) mfcc(p007, i8, nm16, i006, 0, 0x108) mfcc(p000, i8, nm16, i007, 0, 0x109) } Method(m004) { Method(m000) { Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p006, i9, nm16, i007, 0, 0x10a) mfcc(p005, i9, nm16, i006, 0, 0x10b) } m003() Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) m000() mfcc(p004, i9, nm16, i005, 0, 0x10c) mfcc(p003, i9, nm16, i004, 0, 0x10d) mfcc(p002, i9, nm16, i003, 0, 0x10e) mfcc(p001, i9, nm16, i002, 0, 0x10f) mfcc(p000, i9, nm16, i001, 0, 0x110) mfcc(p007, i9, nm16, i000, 0, 0x111) } /* Verify other references */ Method(m005) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { Method(m000) { mfcc(p006, i10, nm16, i004, 0, 0x112) mfcc(p007, i10, nm16, i004, 0, 0x113) } mfcc(p005, i10, nm16, i007, 0, 0x114) m000() } mfcc(p004, i10, nm16, i007, 0, 0x115) m000() } mfcc(p003, i10, nm16, i007, 0, 0x116) m000() } mfcc(p002, i10, nm16, i007, 0, 0x117) m000() } mfcc(p001, i10, nm16, i007, 0, 0x118) m000() } mfcc(p000, i10, nm16, i002, 0, 0x119) m000() } Add(i000, nm16, i000) m000() } Add(i001, nm16, i001) m000() } Add(i002, nm16, i002) m000() } Add(i003, nm16, i003) m000() } Add(i004, nm16, i004) m000() } Add(i005, nm16, i005) m000() } Add(i006, nm16, i006) m000() } Add(i007, nm16, i007) m000() } m004() m000() } Method(m006) { m005() Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i11, nm16, i003, 0, 0x11a) mfcc(p001, i11, nm16, i003, 0, 0x11b) mfcc(p002, i11, nm16, i000, 0, 0x11c) mfcc(p003, i11, nm16, i000, 0, 0x11d) mfcc(p004, i11, nm16, i000, 0, 0x11e) mfcc(p005, i11, nm16, i000, 0, 0x11f) mfcc(p006, i11, nm16, i000, 0, 0x120) mfcc(p007, i11, nm16, i005, 0, 0x121) } Method(m007,, Serialized) { Name(qq00, 0) m006() Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) if (qq00) { Store("never", Debug) } else { mfcc(p000, i12, nm16, i004, 0, 0x122) mfcc(p001, i12, nm16, i004, 0, 0x123) mfcc(p002, i12, nm16, i004, 0, 0x124) mfcc(p003, i12, nm16, i001, 0, 0x125) mfcc(p004, i12, nm16, i001, 0, 0x126) mfcc(p005, i12, nm16, i001, 0, 0x127) mfcc(p006, i12, nm16, i001, 0, 0x128) mfcc(p007, i12, nm16, i001, 0, 0x129) } } Method(m008) { m007() Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i13, nm16, i005, 0, 0x12a) mfcc(p001, i13, nm16, i005, 0, 0x12b) mfcc(p002, i13, nm16, i005, 0, 0x12c) mfcc(p003, i13, nm16, i005, 0, 0x12d) mfcc(p004, i13, nm16, i002, 0, 0x12e) mfcc(p005, i13, nm16, i002, 0, 0x12f) mfcc(p006, i13, nm16, i002, 0, 0x130) mfcc(p007, i13, nm16, i002, 0, 0x131) } Method(m009,, Serialized) { Name(uu00, 0xeeff0000) Name(ii00, 0xabcd0000) Name(pp00, Package(sz) {}) m008() Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfc7(pp00, 0, sz, uu00) mfc8(p000, pp00, 0, i8, nm16, 0, 0) mfc8(pp00, p000, 0, i16, nm16, 0, 0) mfcc(p000, i14, nm16, i006, 0, 0x132) mfcc(p001, i14, nm16, i006, 0, 0x133) mfcc(p002, i14, nm16, i006, 0, 0x134) mfcc(p003, i14, nm16, i006, 0, 0x135) mfcc(p004, i14, nm16, i006, 0, 0x136) mfcc(p005, i14, nm16, i003, 0, 0x137) mfcc(p006, i14, nm16, i003, 0, 0x138) mfcc(p007, i14, nm16, i003, 0, 0x139) mfcc(pp00, i8, nm16, ii00, 0, 0x13a) mfcc(p000, i16, nm16, uu00, 0, 0x13b) } m009() } Method(mfda) { SRMT("mfd9") mfd9() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/Mix.asl0000700000175000017500000004535214773714151026453 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Mix of IRefs which have different type parents - * Packages, Buffers and Strings. * * Outstanding: 0x7 allocations after execution. */ Method(m80a, 4) { Store(DerefOf(DerefOf(Index(arg0, arg1))), Local0) if (LNotEqual(Local0, arg2)) { err("", zFFF, __LINE__, 0, 0, Local0, arg2) } } Method(m809, 1) { Method(mm00, 1, Serialized) { Name(FL00, 0) Name(i000, 0) Name(i001, 0) Name(i002, 0) Name(i003, 0) Name(rd00, 0) Name(wr00, 8) Name(p000, Package(64){0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07}) Name(b000, Buffer(64) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Name(b001, Buffer(64) {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27}) Name(s000, "01234567") Name(p001, Package(64){0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47}) Name(b002, Buffer(64) {0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57}) Name(s001, "`abcdefg") Name(p002, Package(64){0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77}) Store(arg0, FL00) Concatenate("Run with FL00 equal to ", FL00, Debug) /* Writing IRefs to the same element of package */ Store(0, rd00) Store(8, wr00) Store(Index(p000, rd00), Index(p000, wr00)) m80a(p000, wr00, 0x00, 0x500) Store(Index(b000, rd00), Index(p000, wr00)) m80a(p000, wr00, 0x10, 0x501) Store(Index(b001, rd00), Index(p000, wr00)) m80a(p000, wr00, 0x20, 0x502) Store(Index(s000, rd00), Index(p000, wr00)) m80a(p000, wr00, 0x30, 0x503) Store(Index(p001, rd00), Index(p000, wr00)) m80a(p000, wr00, 0x40, 0x504) Store(Index(b002, rd00), Index(p000, wr00)) m80a(p000, wr00, 0x50, 0x505) Store(Index(s001, rd00), Index(p000, wr00)) m80a(p000, wr00, 0x60, 0x506) Store(Index(p002, rd00), Index(p000, wr00)) m80a(p000, wr00, 0x70, 0x507) Method(m001, 7, Serialized) { Name(i104, 0) Name(i105, 0) Name(i106, 0) if (LEqual(FL00, 1)) { Store(arg0, Local0) Store(arg1, Local1) Store(arg2, Local2) Store(arg3, Local3) Store(arg4, Local4) Store(arg5, Local5) Store(arg6, Local6) CopyObject(Local0, i000) CopyObject(Local1, i001) CopyObject(Local2, i002) CopyObject(Local3, i003) CopyObject(Local4, i104) CopyObject(Local5, i105) CopyObject(Local6, i106) Store(i000, arg0) Store(i001, arg1) Store(i002, arg2) Store(i003, arg3) Store(i104, arg4) Store(i105, arg5) Store(i106, arg6) } /* IRefs(1): Write IRefs into 9,10.. */ Store(1, rd00) Store(8, wr00) Store(Index(arg0, rd00), Index(arg0, Increment(wr00))) Store(Index(arg1, rd00), Index(arg0, Increment(wr00))) Store(Index(arg2, rd00), Index(arg0, Increment(wr00))) Store(Index(arg3, rd00), Index(arg0, Increment(wr00))) Store(Index(arg4, rd00), Index(arg0, Increment(wr00))) Store(Index(arg5, rd00), Index(arg0, Increment(wr00))) Store(Index(arg6, rd00), Index(arg0, Increment(wr00))) Store(2, rd00) Store(8, wr00) Store(Index(arg2, rd00), Index(arg4, Increment(wr00))) Store(Index(arg3, rd00), Index(arg4, Increment(wr00))) Store(Index(arg4, rd00), Index(arg4, Increment(wr00))) Store(Index(arg5, rd00), Index(arg4, Increment(wr00))) Store(Index(arg6, rd00), Index(arg4, Increment(wr00))) Store(3, rd00) Store(15, wr00) Store(Index(arg1, rd00), Index(arg0, Increment(wr00))) Store(Index(arg3, rd00), Index(arg0, Increment(wr00))) Store(Index(arg4, rd00), Index(arg0, Increment(wr00))) /* Writing IRefs to the same (8-th) element of package */ Store(0, rd00) Store(8, wr00) Store(Index(arg0, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x00, 0x508) Store(Index(arg1, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x10, 0x509) Store(Index(arg2, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x20, 0x50a) Store(Index(arg3, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x30, 0x50b) Store(Index(arg4, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x40, 0x50c) Store(Index(arg5, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x50, 0x50d) Store(Index(arg6, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x60, 0x50e) Store(4, rd00) Store(20, wr00) Store(Index(arg0, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x04, 0x50f) Store(Index(arg0, rd00), Index(arg4, wr00)) m80a(arg4, wr00, 0x04, 0x510) Store(Index(arg1, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x14, 0x511) Store(Index(arg1, rd00), Index(arg4, wr00)) m80a(arg4, wr00, 0x14, 0x512) Store(Index(arg2, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x24, 0x513) Store(Index(arg2, rd00), Index(arg4, wr00)) m80a(arg4, wr00, 0x24, 0x514) Store(Index(arg3, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x34, 0x515) Store(Index(arg3, rd00), Index(arg4, wr00)) m80a(arg4, wr00, 0x34, 0x516) Store(Index(arg4, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x44, 0x517) Store(Index(arg4, rd00), Index(arg4, wr00)) m80a(arg4, wr00, 0x44, 0x518) Store(Index(arg5, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x54, 0x519) Store(Index(arg5, rd00), Index(arg4, wr00)) m80a(arg4, wr00, 0x54, 0x51a) Store(Index(arg6, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x64, 0x51b) Store(Index(arg6, rd00), Index(arg4, wr00)) m80a(arg4, wr00, 0x64, 0x51c) /* Read by IRefs (1) */ Store(8, wr00) m80a(arg0, Increment(wr00), 0x01, 0x51d) m80a(arg0, Increment(wr00), 0x11, 0x51e) m80a(arg0, Increment(wr00), 0x21, 0x51f) m80a(arg0, Increment(wr00), 0x31, 0x520) m80a(arg0, Increment(wr00), 0x41, 0x521) m80a(arg0, Increment(wr00), 0x51, 0x522) m80a(arg0, Increment(wr00), 0x61, 0x523) Store(8, wr00) m80a(arg4, Increment(wr00), 0x22, 0x524) m80a(arg4, Increment(wr00), 0x32, 0x525) m80a(arg4, Increment(wr00), 0x42, 0x526) m80a(arg4, Increment(wr00), 0x52, 0x527) m80a(arg4, Increment(wr00), 0x62, 0x528) Store(15, wr00) m80a(arg0, Increment(wr00), 0x13, 0x529) m80a(arg0, Increment(wr00), 0x33, 0x52a) m80a(arg0, Increment(wr00), 0x43, 0x52b) } m001(p000,b000,b001,s000,p001,b002,s001) Method(m002, 7, Serialized) { Name(i104, 0) Name(i105, 0) Name(i106, 0) Store(0, rd00) Store(8, wr00) Store(arg0, Local0) Store(Index(Local0, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x00, 0x52c) Store(arg1, Local0) Store(Index(Local0, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x10, 0x52d) Store(arg2, Local0) Store(Index(Local0, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x20, 0x52e) Store(arg3, Local0) Store(Index(Local0, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x30, 0x52f) Store(arg4, Local0) Store(Index(Local0, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x40, 0x530) Store(arg5, Local0) Store(Index(Local0, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x50, 0x531) Store(arg6, Local0) Store(Index(Local0, rd00), Index(arg0, wr00)) m80a(arg0, wr00, 0x60, 0x532) m001(arg0,arg1,arg2,arg3,arg4,arg5,arg6) Store(arg0, Local0) Store(arg1, Local1) Store(arg2, Local2) Store(arg3, Local3) Store(arg4, Local4) Store(arg5, Local5) Store(arg6, Local6) m001(Local0,Local1,Local2,Local3,Local4,Local5,Local6) CopyObject(arg0, i000) CopyObject(arg1, i001) CopyObject(arg2, i002) CopyObject(arg3, i003) CopyObject(arg4, i104) CopyObject(arg5, i105) CopyObject(arg6, i106) m001(i000,i001,i002,i003,i104,i105,i106) Store(arg0, Local0) Store(arg1, Local1) Store(arg2, Local2) Store(arg3, Local3) Store(arg4, Local4) Store(arg5, Local5) Store(arg6, Local6) Store(Local0, arg0) Store(Local1, arg1) Store(Local2, arg2) Store(Local3, arg3) Store(Local4, arg4) Store(Local5, arg5) Store(Local6, arg6) m001(arg0,arg1,arg2,arg3,arg4,arg5,arg6) CopyObject(arg0, i000) CopyObject(arg1, i001) CopyObject(arg2, i002) CopyObject(arg3, i003) CopyObject(arg4, i104) CopyObject(arg5, i105) CopyObject(arg6, i106) Store(i000, arg0) Store(i001, arg1) Store(i002, arg2) Store(i003, arg3) Store(i104, arg4) Store(i105, arg5) Store(i106, arg6) m001(arg0,arg1,arg2,arg3,arg4,arg5,arg6) } m002(p000,b000,b001,s000,p001,b002,s001) } /* mm00 */ mm00(arg0) } Method(m80b,, Serialized) { Name(rd00, 0) Name(wr00, 8) Name(wr01, 9) Name(p000, Package(64){0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07}) Name(p001, Package(64){0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Name(p002, Package(64){0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27}) Name(p003, Package(64){0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37}) /* * 1 - * write reference to p001[0] into p002[wr00] * save reference to p002[wr00] into Local0 */ Store(0, rd00) Store(8, wr00) Store(Index(p001, rd00), Index(p002, wr00)) m80a(p002, wr00, 0x10, 0x533) Store(Index(p002, wr00), Local0) Store(DerefOf(DerefOf(Local0)), Local1) if (LNotEqual(Local1, 0x10)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x10) } /* * 2 - * re-write reference to p001[5] into p002[wr00] * use the old reference to p002[wr00] saved into Local0 */ Store(DerefOf(DerefOf(Local0)), Local1) if (LNotEqual(Local1, 0x10)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x10) } Store(5, rd00) Store(8, wr00) Store(Index(p001, rd00), Index(p002, wr00)) m80a(p002, wr00, 0x15, 0x535) Store(DerefOf(DerefOf(Local0)), Local1) if (LNotEqual(Local1, 0x15)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x15) } /* * 1 - * write reference to p001[0] into p001[wr00] * save reference to p001[wr00] into Local0 */ Store(0, rd00) Store(8, wr00) Store(Index(p001, rd00), Index(p001, wr00)) m80a(p001, wr00, 0x10, 0x537) Store(Index(p001, wr00), Local0) Store(DerefOf(DerefOf(Local0)), Local1) if (LNotEqual(Local1, 0x10)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x10) } /* * 2 - * re-write reference to p001[5] into p001[wr00] * use the old reference to p001[wr00] saved into Local0 */ Store(DerefOf(DerefOf(Local0)), Local1) if (LNotEqual(Local1, 0x10)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x10) } Store(5, rd00) Store(8, wr00) Store(Index(p001, rd00), Index(p001, wr00)) m80a(p001, wr00, 0x15, 0x53a) Store(DerefOf(DerefOf(Local0)), Local1) if (LNotEqual(Local1, 0x15)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x15) } /* * 1 - * write reference to p001[0] into p002[wr00] * save reference to p002[wr00] into p003[wr00] */ Store(7, rd00) Store(8, wr00) Store(Index(p001, rd00), Index(p002, wr00)) m80a(p002, wr00, 0x17, 0x53c) Store(Index(p002, wr00), Index(p003, wr00)) Store(DerefOf(DerefOf(DerefOf(Index(p003, wr00)))), Local1) if (LNotEqual(Local1, 0x17)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x17) } /* * 2 - * re-write reference to p001[5] into p002[wr00] * use the old reference to p002[wr00] saved into p003[wr00] */ Store(DerefOf(DerefOf(DerefOf(Index(p003, wr00)))), Local1) if (LNotEqual(Local1, 0x17)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x17) } Store(6, rd00) Store(8, wr00) Store(Index(p001, rd00), Index(p002, wr00)) m80a(p002, wr00, 0x16, 0x53f) Store(DerefOf(DerefOf(DerefOf(Index(p003, wr00)))), Local1) if (LNotEqual(Local1, 0x16)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x16) } /* * 1 - * write reference to p001[0] into p001[wr00] * save reference to p001[wr00] into p003[wr00] */ Store(7, rd00) Store(8, wr00) Store(Index(p001, rd00), Index(p001, wr00)) m80a(p001, wr00, 0x17, 0x541) Store(Index(p001, wr00), Index(p003, wr00)) Store(DerefOf(DerefOf(DerefOf(Index(p003, wr00)))), Local1) if (LNotEqual(Local1, 0x17)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x17) } /* * 2 - * re-write reference to p001[5] into p001[wr00] * use the old reference to p001[wr00] saved into p003[wr00] */ Store(DerefOf(DerefOf(DerefOf(Index(p003, wr00)))), Local1) if (LNotEqual(Local1, 0x17)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x17) } Store(6, rd00) Store(8, wr00) Store(Index(p001, rd00), Index(p001, wr00)) m80a(p001, wr00, 0x16, 0x544) Store(DerefOf(DerefOf(DerefOf(Index(p003, wr00)))), Local1) if (LNotEqual(Local1, 0x16)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x16) } /* * 1 - * write reference to p001[0] into p001[wr00] * save reference to p001[wr00] into p001[wr00] */ Store(7, rd00) Store(8, wr00) Store(9, wr01) Store(Index(p001, rd00), Index(p001, wr00)) m80a(p001, wr00, 0x17, 0x546) Store(Index(p001, wr00), Index(p001, wr01)) Store(DerefOf(DerefOf(DerefOf(Index(p001, wr01)))), Local1) if (LNotEqual(Local1, 0x17)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x17) } /* * 2 - * re-write reference to p001[5] into p001[wr00] * use the old reference to p001[wr00] saved into p001[wr01] */ Store(DerefOf(DerefOf(DerefOf(Index(p001, wr01)))), Local1) if (LNotEqual(Local1, 0x17)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x17) } Store(6, rd00) Store(8, wr00) Store(Index(p001, rd00), Index(p001, wr00)) m80a(p001, wr00, 0x16, 0x549) Store(DerefOf(DerefOf(DerefOf(Index(p001, wr01)))), Local1) if (LNotEqual(Local1, 0x16)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x16) } } Method(m80c,, Serialized) { Name(p000, Package(8) {0x78,1,2}) Name(p001, Package(8) {0,1,2,3,4,5,6,7}) Store(Index(p000, 0), Local0) Store(Local0, Index(p001, 0)) Store(Local0, Index(p001, 1)) Store(Local0, Index(p001, 2)) Store(Local0, Index(p001, 3)) Store(Local0, Index(p001, 4)) Store(Local0, Index(p001, 5)) Store(Local0, Index(p001, 6)) Store(Local0, Index(p001, 7)) Store(Local0, Index(p000, 0)) Store(Local0, Index(p000, 1)) Store(Local0, Index(p000, 2)) Store(Local0, Index(p000, 3)) Store(Local0, Index(p000, 4)) Store(Local0, Index(p000, 5)) Store(Local0, Index(p000, 6)) Store(Local0, Index(p000, 7)) Store(Local0, Index(p001, 0)) Store(Local0, Index(p000, 0)) Store(Local0, Index(p001, 1)) Store(Local0, Index(p000, 1)) Store(Local0, Index(p001, 2)) Store(Local0, Index(p000, 2)) Store(Local0, Index(p001, 3)) Store(Local0, Index(p000, 3)) Store(Local0, Index(p001, 4)) Store(Local0, Index(p000, 4)) Store(Local0, Index(p001, 5)) Store(Local0, Index(p000, 5)) Store(Local0, Index(p001, 6)) Store(Local0, Index(p000, 6)) Store(Local0, Index(p001, 7)) Store(Local0, Index(p000, 7)) Store(p000, Index(p001, 7)) Store(p000, Index(p000, 7)) Store(p001, Index(p001, 6)) Store(p001, Index(p000, 6)) } Method(m80d,, Serialized) { Name(p000, Package(8) {0x78,1,2}) Name(p001, Package(8) {0,1,2,3,4,5,6,7}) Store(Index(p000, 0), Index(p001, 0)) Store(DerefOf(Index(p001, 0)), Index(p001, 1)) Store(DerefOf(Index(p001, 0)), Index(p001, 2)) Store(DerefOf(Index(p001, 0)), Index(p001, 3)) Store(DerefOf(Index(p001, 0)), Index(p001, 4)) Store(DerefOf(Index(p001, 0)), Index(p001, 5)) Store(DerefOf(Index(p001, 0)), Index(p001, 6)) Store(DerefOf(Index(p001, 0)), Index(p001, 7)) Store(Index(p001, 0), Index(p000, 0)) Store(DerefOf(Index(p000, 0)), Index(p000, 1)) Store(DerefOf(Index(p000, 0)), Index(p000, 2)) Store(DerefOf(Index(p000, 0)), Index(p000, 3)) Store(DerefOf(Index(p000, 0)), Index(p000, 4)) Store(DerefOf(Index(p000, 0)), Index(p000, 5)) Store(DerefOf(Index(p000, 0)), Index(p000, 6)) Store(DerefOf(Index(p000, 0)), Index(p000, 7)) Store(Index(p000, 0), Index(p001, 0)) Store(DerefOf(Index(p001, 0)), Index(p001, 1)) Store(DerefOf(Index(p001, 0)), Index(p001, 2)) Store(DerefOf(Index(p001, 0)), Index(p001, 3)) Store(DerefOf(Index(p001, 0)), Index(p001, 4)) Store(DerefOf(Index(p001, 0)), Index(p001, 5)) Store(DerefOf(Index(p001, 0)), Index(p001, 6)) Store(DerefOf(Index(p001, 0)), Index(p001, 7)) Store(Index(p001, 0), Index(p000, 0)) Store(DerefOf(Index(p000, 0)), Index(p000, 1)) Store(DerefOf(Index(p000, 0)), Index(p000, 2)) Store(DerefOf(Index(p000, 0)), Index(p000, 3)) Store(DerefOf(Index(p000, 0)), Index(p000, 4)) Store(DerefOf(Index(p000, 0)), Index(p000, 5)) Store(DerefOf(Index(p000, 0)), Index(p000, 6)) Store(DerefOf(Index(p000, 0)), Index(p000, 7)) Store(p000, Index(p001, 7)) Store(p000, Index(p000, 7)) Store(p001, Index(p001, 6)) Store(p001, Index(p000, 6)) } Method(m80e,, Serialized) { Name(p000, Package(64){0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07}) Name(b000, Buffer(64) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Method(m000, 2) { Store(DerefOf(DerefOf(Index(p000, arg1))), Local0) } Method(m001) { Method(m002) { Store(Index(p000, 1), Index(p000, 9)) Store(Index(b000, 1), Index(p000, 10)) m000(p000,9) m000(p000,10) } m002() } Method(m003, 2) { Store(DerefOf(DerefOf(Index(arg0, arg1))), Local0) } Method(m004,, Serialized) { Name(p000, Package(64){0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07}) Name(b000, Buffer(64) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Method(m005) { Store(Index(p000, 1), Index(p000, 9)) Store(Index(b000, 1), Index(p000, 10)) m003(p000,9) m003(p000,10) } m005() } Method(m006, 2) { Store(Index(p000, arg1), Local0) Store(DerefOf(Local0), Local1) Store(DerefOf(Local1), Local2) } Method(m007) { Method(m008) { Store(Index(p000, 1), Index(p000, 9)) Store(Index(b000, 1), Index(p000, 10)) m006(p000,9) m006(p000,10) } m008() } m001() m004() m007() } Method(m812,, Serialized) { Name(p000, Package(64){0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07}) Name(b000, Buffer(64) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Method(m000, 2) { Store(Index(p000, arg1), Local0) Store(DerefOf(Local0), Local1) Store(DerefOf(Local1), Local2) } Method(m001) { Method(m002) { Store(Index(p000, 1), Index(p000, 9)) Store(Index(b000, 1), Index(p000, 10)) m000(p000,9) m000(p000,10) } m002() } m001() } Method(m808) { SRMT("m809-0") m809(0) SRMT("m809-1") m809(1) SRMT("m80b") m80b() SRMT("m80c") m80c() SRMT("m80d") m80d() SRMT("m80e") m80e() SRMT("m812") m812() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/Misc2.asl0000700000175000017500000004652614773714151026677 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Outstanding: 0x1 allocations after execution. */ Name(id27, 64) /* Create and write IRef */ Method(mf02, 6, Serialized) { Name(i001, 0) Name(i002, 0) Name(i003, 0) Name(i004, 0) Name(ii01, 0) Name(ii02, 0) Name(ii03, 0) Name(ii04, 0) if (LEqual(arg1, 1)) { Store(DerefOf(Index(arg2, 0)), i001) Store(Index(arg0, i001), Local7) } elseif (LEqual(arg1, 2)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(Index(arg2, 1)), i002) Store(Index(DerefOf(Index(arg0, i001)), i002), Local7) } elseif (LEqual(arg1, 3)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(Index(arg2, 1)), i002) Store(DerefOf(Index(arg2, 2)), i003) Store(Index(DerefOf(Index(DerefOf(Index(arg0, i001)), i002)), i003), Local7) } elseif (LEqual(arg1, 4)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(Index(arg2, 1)), i002) Store(DerefOf(Index(arg2, 2)), i003) Store(DerefOf(Index(arg2, 3)), i004) Store(Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, i001)), i002)), i003)), i004), Local7) } else { err("", zFFF, __LINE__, 0, 0, 0, 0) return } if (LEqual(arg4, 1)) { Store(DerefOf(Index(arg5, 0)), ii01) Store(Local7, Index(arg3, ii01)) } elseif (LEqual(arg4, 2)) { Store(DerefOf(Index(arg5, 0)), ii01) Store(DerefOf(Index(arg5, 1)), ii02) Store(Local7, Index(DerefOf(Index(arg3, ii01)), ii02)) } elseif (LEqual(arg4, 3)) { Store(DerefOf(Index(arg5, 0)), ii01) Store(DerefOf(Index(arg5, 1)), ii02) Store(DerefOf(Index(arg5, 2)), ii03) Store(Local7, Index(DerefOf(Index(DerefOf(Index(arg3, ii01)), ii02)), ii03)) } elseif (LEqual(arg4, 4)) { Store(DerefOf(Index(arg5, 0)), ii01) Store(DerefOf(Index(arg5, 1)), ii02) Store(DerefOf(Index(arg5, 2)), ii03) Store(DerefOf(Index(arg5, 3)), ii04) Store(Local7, Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg3, ii01)), ii02)), ii03)), ii04)) } else { err("", zFFF, __LINE__, 0, 0, 0, 0) return } } /* Read by means of IRef-to-Integer */ Method(mfec, 4, Serialized) { Name(i001, 0) Name(i002, 0) Name(i003, 0) Name(i004, 0) if (LEqual(arg1, 1)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(DerefOf(Index(arg0, i001))), Local7) } elseif (LEqual(arg1, 2)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(Index(arg2, 1)), i002) Store(DerefOf(DerefOf(Index(DerefOf(Index(arg0, i001)), i002))), Local7) } elseif (LEqual(arg1, 3)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(Index(arg2, 1)), i002) Store(DerefOf(Index(arg2, 2)), i003) Store(DerefOf(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, i001)), i002)), i003))), Local7) } elseif (LEqual(arg1, 4)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(Index(arg2, 1)), i002) Store(DerefOf(Index(arg2, 2)), i003) Store(DerefOf(Index(arg2, 3)), i004) Store(DerefOf(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, i001)), i002)), i003)), i004))), Local7) } else { err("", zFFF, __LINE__, 0, 0, 0, 0) return } if (LNotEqual(Local7, arg3)) { err("", zFFF, __LINE__, 0, 0, Local7, arg3) } } /* Read by means of IRef-to-Package */ Method(mfed, 5, Serialized) { Name(i001, 0) Name(i002, 0) Name(i003, 0) Name(i004, 0) if (LEqual(arg1, 1)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(DerefOf(Index(arg0, i001))), Local7) } elseif (LEqual(arg1, 2)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(Index(arg2, 1)), i002) Store(DerefOf(DerefOf(Index(DerefOf(Index(arg0, i001)), i002))), Local7) } elseif (LEqual(arg1, 3)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(Index(arg2, 1)), i002) Store(DerefOf(Index(arg2, 2)), i003) Store(DerefOf(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, i001)), i002)), i003))), Local7) } elseif (LEqual(arg1, 4)) { Store(DerefOf(Index(arg2, 0)), i001) Store(DerefOf(Index(arg2, 1)), i002) Store(DerefOf(Index(arg2, 2)), i003) Store(DerefOf(Index(arg2, 3)), i004) Store(DerefOf(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, i001)), i002)), i003)), i004))), Local7) } else { err("", zFFF, __LINE__, 0, 0, 0, 0) return } Store(DerefOf(Index(Local7, arg3)), Local0) if (LNotEqual(Local0, arg4)) { err("", zFFF, __LINE__, 0, 0, Local0, arg4) } } Method(mfee,, Serialized) { Name(p000, Package(id27) { Package(id27) { Package(id27) { Package(id27) {0x40000000}, 0x30000000, Package(id27) {0x40000001}, 0x30000001, 0x30000002, }, 0x20000000, Package(id27) { Package(id27) {0x40000002}, 0x30000003, Package(id27) {0x40000003}, 0x30000004, 0x30000005, }, 0x20000001, 0x20000002, }, 0x10000000, Package(id27) { Package(id27) { Package(id27) {0x40000004}, 0x30000006, Package(id27) {0x40000005}, 0x30000007, 0x30000008, }, 0x20000003, Package(id27) { Package(id27) {0x40000006}, 0x30000009, Package(id27) {0x40000007}, 0x3000000a, 0x3000000b, }, 0x20000004, 0x20000005, }, 0x10000001, 0x10000002, }) Name(p001, Package(id27) { Package(id27) { Package(id27) { Package(id27) {0x40000000}, 0x30000000, Package(id27) {0x40000001}, 0x30000001, 0x30000002, }, 0x20000000, Package(id27) { Package(id27) {0x40000002}, 0x30000003, Package(id27) {0x40000003}, 0x30000004, 0x30000005, }, 0x20000001, 0x20000002, }, 0x10000000, Package(id27) { Package(id27) { Package(id27) {0x40000004}, 0x30000006, Package(id27) {0x40000005}, 0x30000007, 0x30000008, }, 0x20000003, Package(id27) { Package(id27) {0x40000006}, 0x30000009, Package(id27) {0x40000007}, 0x3000000a, 0x3000000b, }, 0x20000004, 0x20000005, }, 0x10000001, 0x10000002, }) /* Write access */ Method(mm04, 6) { Store(arg5, Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, arg1)), arg2)), arg3)), arg4)) } Method(mm03, 5) { Store(arg4, Index(DerefOf(Index(DerefOf(Index(arg0, arg1)), arg2)), arg3)) } Method(mm02, 4) { Store(arg3, Index(DerefOf(Index(arg0, arg1)), arg2)) } Method(mm01, 3) { Store(arg2, Index(arg0, arg1)) } /* Read access */ Method(m004, 6) { Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, arg1)), arg2)), arg3)), arg4)), Local0) if (LNotEqual(Local0, arg5)) { err("", zFFF, __LINE__, 0, 0, Local0, arg5) } } Method(m003, 5) { Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, arg1)), arg2)), arg3)), Local0) if (LNotEqual(Local0, arg4)) { err("", zFFF, __LINE__, 0, 0, Local0, arg4) } } Method(m002, 4) { Store(DerefOf(Index(DerefOf(Index(arg0, arg1)), arg2)), Local0) if (LNotEqual(Local0, arg3)) { err("", zFFF, __LINE__, 0, 0, Local0, arg3) } } Method(m001, 3) { Store(DerefOf(Index(arg0, arg1)), Local0) if (LNotEqual(Local0, arg2)) { err("", zFFF, __LINE__, 0, 0, Local0, arg2) } } /* * On each level from 1 to 4 create the following structure of data - * create IRefs to all levels and alternate them with Packages. * Verify access through the created IRefs. * * Refer packages p000 and p001 directly by names. * * arg0 - the start index inside arg1 where to store created objects. */ Method(mmm0, 1, Serialized) { Name(i000, 0) /* * Create IRefs to all levels from 4-level Package. * Alternate IRefs with Packages. */ Store(arg0, i000) mf02(p000, 4, Buffer(){0,0,0,0}, p000, 4, Package(){0,0,0,i000}) mfec(p000, 4, Package(){0,0,0,i000}, 0x40000000) Increment(i000) mm04(p000, 0, 0, 0, i000, Package(){0x51000000}) Increment(i000) mf02(p000, 3, Buffer(){0,0,4}, p000, 4, Package(){0,0,0,i000}) mfec(p000, 4, Package(){0,0,0,i000}, 0x30000002) Increment(i000) mm04(p000, 0, 0, 0, i000, Package(){0x51000001}) Increment(i000) mf02(p000, 2, Buffer(){0,4}, p000, 4, Package(){0,0,0,i000}) mfec(p000, 4, Package(){0,0,0,i000}, 0x20000002) Increment(i000) mm04(p000, 0, 0, 0, i000, Package(){0x51000002}) Increment(i000) mf02(p000, 1, Buffer(){4}, p000, 4, Package(){0,0,0,i000}) mfec(p000, 4, Package(){0,0,0,i000}, 0x10000002) Increment(i000) mm04(p000, 0, 0, 0, i000, Package(){0x51000003}) Increment(i000) /* Reference to Package */ mf02(p000, 3, Buffer(){0,0,0}, p000, 4, Package(){0,0,0,i000}) mfed(p000, 4, Package(){0,0,0,i000}, 0, 0x40000000) Increment(i000) /* * Create IRefs to all levels from 3-level Package. * Alternate IRefs with Packages. */ Store(arg0, i000) mf02(p000, 4, Buffer(){0,0,0,0}, p000, 3, Package(){0,0,i000}) mfec(p000, 3, Package(){0,0,i000}, 0x40000000) Increment(i000) mm03(p000, 0, 0, i000, Package(){0x41000000}) Increment(i000) mf02(p000, 3, Buffer(){0,0,4}, p000, 3, Package(){0,0,i000}) mfec(p000, 3, Package(){0,0,i000}, 0x30000002) Increment(i000) mm03(p000, 0, 0, i000, Package(){0x41000001}) Increment(i000) mf02(p000, 2, Buffer(){0,4}, p000, 3, Package(){0,0,i000}) mfec(p000, 3, Package(){0,0,i000}, 0x20000002) Increment(i000) mm03(p000, 0, 0, i000, Package(){0x41000002}) Increment(i000) mf02(p000, 1, Buffer(){4}, p000, 3, Package(){0,0,i000}) mfec(p000, 3, Package(){0,0,i000}, 0x10000002) Increment(i000) mm03(p000, 0, 0, i000, Package(){0x41000003}) Increment(i000) /* * Create IRefs to all levels from 2-level Package. * Alternate IRefs with Packages. */ Store(arg0, i000) mf02(p000, 4, Buffer(){0,0,0,0}, p000, 2, Package(){0,i000}) mfec(p000, 2, Package(){0,i000}, 0x40000000) Increment(i000) mm02(p000, 0, i000, Package(){0x31000000}) Increment(i000) mf02(p000, 3, Buffer(){0,0,4}, p000, 2, Package(){0,i000}) mfec(p000, 2, Package(){0,i000}, 0x30000002) Increment(i000) mm02(p000, 0, i000, Package(){0x31000001}) Increment(i000) mf02(p000, 2, Buffer(){0,4}, p000, 2, Package(){0,i000}) mfec(p000, 2, Package(){0,i000}, 0x20000002) Increment(i000) mm02(p000, 0, i000, Package(){0x31000002}) Increment(i000) mf02(p000, 1, Buffer(){4}, p000, 2, Package(){0,i000}) mfec(p000, 2, Package(){0,i000}, 0x10000002) Increment(i000) mm02(p000, 0, i000, Package(){0x31000003}) Increment(i000) /* * Create IRefs to all levels from 1-level Package. * Alternate IRefs with Packages. */ Store(arg0, i000) mf02(p000, 4, Buffer(){0,0,0,0}, p000, 1, Package(){i000}) mfec(p000, 1, Package(){i000}, 0x40000000) Increment(i000) mm01(p000, i000, Package(){0x21000000}) Increment(i000) mf02(p000, 3, Buffer(){0,0,4}, p000, 1, Package(){i000}) mfec(p000, 1, Package(){i000}, 0x30000002) Increment(i000) mm01(p000, i000, Package(){0x21000001}) Increment(i000) mf02(p000, 2, Buffer(){0,4}, p000, 1, Package(){i000}) mfec(p000, 1, Package(){i000}, 0x20000002) Increment(i000) mm01(p000, i000, Package(){0x21000002}) Increment(i000) mf02(p000, 1, Buffer(){4}, p000, 1, Package(){i000}) mfec(p000, 1, Package(){i000}, 0x10000002) Increment(i000) mm01(p000, i000, Package(){0x21000003}) Increment(i000) } /* * On each level from 1 to 4 create the following structure of data - * create IRefs to all levels and alternate them with Packages. * Verify access through the created IRefs. * * arg0 - Package, IRefs are pointing to elements of this Package, * arg1 - Package, IRefs alternated with Packages are stored as * elements of this Package, * arg2 - the start index inside arg1 where to store created objects, * arg3 - create structure, * arg4 - read. */ Method(mmm1, 5, Serialized) { Name(i000, 0) /* * Create IRefs to all levels from 4-level Package. * Alternate IRefs with Packages. */ Store(arg2, i000) if (arg3) { mf02(arg0, 4, Buffer(){0,0,0,0}, arg1, 4, Package(){0,0,0,i000}) } if (arg4) { mfec(arg1, 4, Package(){0,0,0,i000}, 0x40000000) } Increment(i000) if (arg3) { mm04(arg1, 0, 0, 0, i000, Package(){0x51000000}) } Increment(i000) if (arg3) { mf02(arg0, 3, Buffer(){0,0,4}, arg1, 4, Package(){0,0,0,i000}) } if (arg4) { mfec(arg1, 4, Package(){0,0,0,i000}, 0x30000002) } Increment(i000) if (arg3) { mm04(arg1, 0, 0, 0, i000, Package(){0x51000001}) } Increment(i000) if (arg3) { mf02(arg0, 2, Buffer(){0,4}, arg1, 4, Package(){0,0,0,i000}) } if (arg4) { mfec(arg1, 4, Package(){0,0,0,i000}, 0x20000002) } Increment(i000) if (arg3) { mm04(arg1, 0, 0, 0, i000, Package(){0x51000002}) } Increment(i000) if (arg3) { mf02(arg0, 1, Buffer(){4}, arg1, 4, Package(){0,0,0,i000}) } if (arg4) { mfec(arg1, 4, Package(){0,0,0,i000}, 0x10000002) } Increment(i000) if (arg3) { mm04(arg1, 0, 0, 0, i000, Package(){0x51000003}) } Increment(i000) /* Reference to Package */ if (arg3) { mf02(arg0, 3, Buffer(){0,0,0}, arg1, 4, Package(){0,0,0,i000}) } if (arg4) { mfed(arg1, 4, Package(){0,0,0,i000}, 0, 0x40000000) } Increment(i000) /* * Create IRefs to all levels from 3-level Package. * Alternate IRefs with Packages. */ Store(arg2, i000) if (arg3) { mf02(arg0, 4, Buffer(){0,0,0,0}, arg1, 3, Package(){0,0,i000}) } if (arg4) { mfec(arg1, 3, Package(){0,0,i000}, 0x40000000) } Increment(i000) if (arg3) { mm03(arg1, 0, 0, i000, Package(){0x41000000}) } Increment(i000) if (arg3) { mf02(arg0, 3, Buffer(){0,0,4}, arg1, 3, Package(){0,0,i000}) } if (arg4) { mfec(arg1, 3, Package(){0,0,i000}, 0x30000002) } Increment(i000) if (arg3) { mm03(arg1, 0, 0, i000, Package(){0x41000001}) } Increment(i000) if (arg3) { mf02(arg0, 2, Buffer(){0,4}, arg1, 3, Package(){0,0,i000}) } if (arg4) { mfec(arg1, 3, Package(){0,0,i000}, 0x20000002) } Increment(i000) if (arg3) { mm03(arg1, 0, 0, i000, Package(){0x41000002}) } Increment(i000) if (arg3) { mf02(arg0, 1, Buffer(){4}, arg1, 3, Package(){0,0,i000}) } if (arg4) { mfec(arg1, 3, Package(){0,0,i000}, 0x10000002) } Increment(i000) if (arg3) { mm03(arg1, 0, 0, i000, Package(){0x41000003}) } Increment(i000) /* * Create IRefs to all levels from 2-level Package. * Alternate IRefs with Packages. */ Store(arg2, i000) if (arg3) { mf02(arg0, 4, Buffer(){0,0,0,0}, arg1, 2, Package(){0,i000}) } if (arg4) { mfec(arg1, 2, Package(){0,i000}, 0x40000000) } Increment(i000) if (arg3) { mm02(arg1, 0, i000, Package(){0x31000000}) } Increment(i000) if (arg3) { mf02(arg0, 3, Buffer(){0,0,4}, arg1, 2, Package(){0,i000}) } if (arg4) { mfec(arg1, 2, Package(){0,i000}, 0x30000002) } Increment(i000) if (arg3) { mm02(arg1, 0, i000, Package(){0x31000001}) } Increment(i000) if (arg3) { mf02(arg0, 2, Buffer(){0,4}, arg1, 2, Package(){0,i000}) } if (arg4) { mfec(arg1, 2, Package(){0,i000}, 0x20000002) } Increment(i000) if (arg3) { mm02(arg1, 0, i000, Package(){0x31000002}) } Increment(i000) if (arg3) { mf02(arg0, 1, Buffer(){4}, arg1, 2, Package(){0,i000}) } if (arg4) { mfec(arg1, 2, Package(){0,i000}, 0x10000002) } Increment(i000) if (arg3) { mm02(arg1, 0, i000, Package(){0x31000003}) } Increment(i000) /* * Create IRefs to all levels from 1-level Package. * Alternate IRefs with Packages. */ Store(arg2, i000) if (arg3) { mf02(arg0, 4, Buffer(){0,0,0,0}, arg1, 1, Package(){i000}) } if (arg4) { mfec(arg1, 1, Package(){i000}, 0x40000000) } Increment(i000) if (arg3) { mm01(arg1, i000, Package(){0x21000000}) } Increment(i000) if (arg3) { mf02(arg0, 3, Buffer(){0,0,4}, arg1, 1, Package(){i000}) } if (arg4) { mfec(arg1, 1, Package(){i000}, 0x30000002) } Increment(i000) if (arg3) { mm01(arg1, i000, Package(){0x21000001}) } Increment(i000) if (arg3) { mf02(arg0, 2, Buffer(){0,4}, arg1, 1, Package(){i000}) } if (arg4) { mfec(arg1, 1, Package(){i000}, 0x20000002) } Increment(i000) if (arg3) { mm01(arg1, i000, Package(){0x21000002}) } Increment(i000) if (arg3) { mf02(arg0, 1, Buffer(){4}, arg1, 1, Package(){i000}) } if (arg4) { mfec(arg1, 1, Package(){i000}, 0x10000002) } Increment(i000) if (arg3) { mm01(arg1, i000, Package(){0x21000003}) } Increment(i000) } /* Verification */ Method(mmm2) { m004(p000, 0, 0, 0, 0, 0x40000000) m004(p000, 0, 0, 2, 0, 0x40000001) m004(p000, 0, 2, 0, 0, 0x40000002) m004(p000, 0, 2, 2, 0, 0x40000003) m004(p000, 2, 0, 0, 0, 0x40000004) m004(p000, 2, 0, 2, 0, 0x40000005) m004(p000, 2, 2, 0, 0, 0x40000006) m004(p000, 2, 2, 2, 0, 0x40000007) m003(p000, 0, 0, 4, 0x30000002) m003(p000, 0, 2, 4, 0x30000005) m003(p000, 2, 0, 4, 0x30000008) m003(p000, 2, 2, 4, 0x3000000b) m002(p000, 0, 4, 0x20000002) m002(p000, 2, 4, 0x20000005) m001(p000, 4, 0x10000002) } SRMT("mfee") mmm0(8) mmm1(p000, p000, 18, 1, 1) mmm1(p000, p001, 28, 1, 1) mmm1(p001, p001, 38, 1, 1) mmm1(p001, p000, 48, 1, 1) mmm1(0, p000, 18, 0, 1) mmm1(0, p001, 28, 0, 1) mmm1(0, p001, 38, 0, 1) mmm1(0, p000, 48, 0, 1) mmm2() /* Repeat the same */ mmm0(8) mmm1(p000, p000, 18, 1, 1) mmm1(p000, p001, 28, 1, 1) mmm1(p001, p001, 38, 1, 1) mmm1(p001, p000, 48, 1, 1) mmm1(0, p000, 18, 0, 1) mmm1(0, p001, 28, 0, 1) mmm1(0, p001, 38, 0, 1) mmm1(0, p000, 48, 0, 1) mmm2() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/PkgsHierarchy.asl0000700000175000017500000014305014773714151030453 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Hierarchy of Packages * * It is a 4-level (not including the root Package-node) hierarchy * of Packages. Each package (pkg-node), including the root Package, * has 4 Packages which (not including Package-nodes of the last * 3-th level) in turn has 4 children. * Generate and put into each pkg-node references to all other * pkg-nodes. Then go round all the pkg-nodes and verify read-access * through all the references packed into each of those nodes. * * 0x22 Outstanding allocations because of * AcpiExec doesn't run the unload of the table have been processed. * All they are caused by call to SRMT Method. * * Outstanding: 0x22 allocations after execution. * * chn0 - set it to either 1 or 2: * Name(chn0, 1) // number of children of pkg-node to be actually processed (1,2,3,4) */ /* * Bit-maps of operations */ Name(OP00, 0x01) // read and verify Integer-IDs Name(OP01, 0x02) // re-write Integer-IDs Name(OP02, 0x04) // re-write the whole pkg-nodes Name(OP03, 0x08) // re-write references Name(OPFF, 0x0F) // mask of opcode of operation Name(OP10, 0x0f0000) // type of current (read) Integer-IDs Name(OP11, 0x0f00000) // type of new (re-write) Integer-IDs /* * Generate references to arg2-number elements of all pkg-nodes * of arg0 and pack up them per-level into arg1. * * arg0 - reference to (Package,pHR0), IRefs to arg2 elements of Pkg-nodes of pHR0 * arg1 - (Package,pIRx), are to be stored into elements of pIRx (from 0). * arg2 - number of children of pkg-node to be actually processed * arg3 - index of elements of pkg-nodes of arg0 to be pointed to by ref */ Method(mfdd, 4, Serialized) { Name(ind0, 0) // cur index of element of arg1-Package where to store ref Name(ind1, 0) Name(ind2, 0) Name(ind3, 0) Name(lpN0, 0) Name(lpC0, 0) Name(lpN1, 0) Name(lpC1, 0) Name(lpN2, 0) Name(lpC2, 0) Name(lpN3, 0) Name(lpC3, 0) Store(arg2, lpN0) Store(0, lpC0) While (lpN0) { Store(Index(DerefOf(arg0), lpC0), Index(DerefOf(Index(arg1, 0)), ind0)) Store(arg2, lpN1) Store(0, lpC1) While (lpN1) { Store(Index(DerefOf(Index(DerefOf(arg0), lpC0)), lpC1), Index(DerefOf(Index(arg1, 1)), ind1)) Store(arg2, lpN2) Store(0, lpC2) While (lpN2) { Store(Index(DerefOf(Index(DerefOf(Index(DerefOf(arg0), lpC0)), lpC1)), lpC2), Index(DerefOf(Index(arg1, 2)), ind2)) Store(arg2, lpN3) Store(0, lpC3) While (lpN3) { Store(Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(arg0), lpC0)), lpC1)), lpC2)), lpC3), Index(DerefOf(Index(arg1, 3)), ind3)) Increment(ind3) Decrement(lpN3) Increment(lpC3) } Increment(ind2) Decrement(lpN2) Increment(lpC2) } Increment(ind1) Decrement(lpN1) Increment(lpC1) } Increment(ind0) Decrement(lpN0) Increment(lpC0) } } /* * Put reference arg3 into arg2-th elements of all Pkg-nodes of pHR0 Package * * arg0 - reference to Package,pHR0 * arg1 - number of children of pkg-node to be actually processed * arg2 - index in arg0-pkg-nodes where to store reference * arg3 - reference */ Method(mfde, 4, Serialized) { Name(lpN0, 0) Name(lpC0, 0) Name(lpN1, 0) Name(lpC1, 0) Name(lpN2, 0) Name(lpC2, 0) Name(lpN3, 0) Name(lpC3, 0) Store(arg1, lpN0) Store(0, lpC0) While (lpN0) { Index(DerefOf(arg0), lpC0, Local0) Store(arg3, Index(DerefOf(Local0), arg2)) Store(arg1, lpN1) Store(0, lpC1) While (lpN1) { Index(DerefOf(arg0), lpC0, Local0) Store(arg3, Index(DerefOf(Index(DerefOf(Local0), lpC1)), arg2)) Store(arg1, lpN2) Store(0, lpC2) While (lpN2) { Index(DerefOf(arg0), lpC0, Local0) Store(arg3, Index(DerefOf(Index(DerefOf(Index(DerefOf(Local0), lpC1)), lpC2)), arg2)) Store(arg1, lpN3) Store(0, lpC3) While (lpN3) { Index(DerefOf(arg0), lpC0, Local0) Store(arg3, Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(Local0), lpC1)), lpC2)), lpC3)), arg2)) Decrement(lpN3) Increment(lpC3) } Decrement(lpN2) Increment(lpC2) } Decrement(lpN1) Increment(lpC1) } Decrement(lpN0) Increment(lpC0) } } /* * Put elements of package arg0 (references) into elements of arg1 * * arg0 - pIRx-Package (references) * arg1 - reference to pHRx-Package (hierarchy) - where to put references * arg2 - number of children of pkg-node to be actually processed * arg3 - start index in arg1 where to store references */ Method(mfdf, 4, Serialized) { Name(ind0, 0) Name(num, 0) Name(lpN0, 0) Name(lpC0, 0) Name(pp00, Package(1) {}) Name(pp01, Package(1) {}) Store(arg2, num) /* Level 0 */ Store(Index(arg0, 0), Local0) Store(DerefOf(Local0), pp00) Store(arg3, ind0) Store(num, lpN0) Store(0, lpC0) While (lpN0) { Index(pp00, lpC0, Local0) Store(DerefOf(Local0), Local1) mfde(arg1, arg2, ind0, Local1) Increment(ind0) Decrement(lpN0) Increment(lpC0) } /* Level 1 */ Store(Index(arg0, 1), Local0) Store(DerefOf(Local0), pp00) Multiply(num, arg2, num) Store(num, lpN0) Store(0, lpC0) While (lpN0) { Index(pp00, lpC0, Local0) Store(DerefOf(Local0), Local1) mfde(arg1, arg2, ind0, Local1) Increment(ind0) Decrement(lpN0) Increment(lpC0) } /* Level 2 */ Store(Index(arg0, 2), Local0) Store(DerefOf(Local0), pp00) Multiply(num, arg2, num) Store(num, lpN0) Store(0, lpC0) While (lpN0) { Index(pp00, lpC0, Local0) Store(DerefOf(Local0), Local1) mfde(arg1, arg2, ind0, Local1) Increment(ind0) Decrement(lpN0) Increment(lpC0) } /* Level 3 */ Store(Index(arg0, 3), Local0) Store(DerefOf(Local0), pp00) Multiply(num, arg2, num) Store(num, lpN0) Store(0, lpC0) While (lpN0) { Index(pp00, lpC0, Local0) Store(DerefOf(Local0), Local1) mfde(arg1, arg2, ind0, Local1) Increment(ind0) Decrement(lpN0) Increment(lpC0) } } /* * Generate the benchmark value of Integer-ID and * verify by it the actual value of Integer-ID. * * arg0 - coefficient of maximal hierarchy of Packages * arg1 - number of children of pkg-node to be actually processed * arg2 - level + index inside level of source pkg-node * arg3 - level + index inside level of target pkg-node * arg4 - the value of Integer-ID * arg5 - bit-map of operations */ Method(mfe2, 6, Serialized) { /* Index */ Name(lpN0, 0) Name(lpC0, 0) Name(lls0, 0) // level of source pkg-node Name(ins0, 0) // index inside level of source pkg-node Name(llt0, 0) // level of target pkg-node Name(int0, 0) // index inside level of target pkg-node Store(0, Local7) And(arg2, 0x0ffff, ins0) ShiftRight(arg2, 16, Local0) And(Local0, 0x0ffff, lls0) And(arg3, 0x0ffff, int0) ShiftRight(arg3, 16, Local0) And(Local0, 0x0ffff, llt0) And(int0, 0x0ffff, Local2) if (llt0) { /* * ASSUMPTION: 256 on 3-th level is maximum * for this model of packages */ Divide(Local2, 8, Local0, Local1) Multiply(Local1, 64, Local5) Divide(Local0, 4, Local0, Local1) Multiply(Local1, 16, Local6) Add(Local5, Local6, Local5) Divide(Local0, 2, Local0, Local1) Multiply(Local1, 4, Local6) Add(Local5, Local6, Local5) Add(Local5, Local0, Local5) } else { Store(Local2, Local5) } Or(0xab000000, Local5, Local3) /* Level */ And(llt0, 0x0f, Local0) ShiftLeft(Local0, 16, Local1) Or(Local1, Local3, Local0) Store(mfe3(Local0, arg5, 0), Local1) if (LNotEqual(arg4, Local1)) { Store(1, Local7) err("", zFFF, __LINE__, 0, 0, arg4, Local1) Store("================= Params:", debug) Store(arg0, Debug) Store(arg1, Debug) Store(arg2, Debug) Store(arg3, Debug) Store(arg4, Debug) Store(arg5, Debug) Store(lls0, Debug) Store(ins0, Debug) Store(llt0, Debug) Store(int0, Debug) Store("=================.", debug) } return (Local7) } /* * Modify Integer-ID * * arg0 - the value of Integer-ID * arg1 - bit-map of operations * arg2 - 0 - for read, 1 - for re-write */ Method(mfe3, 3) { And(arg0, 0xff0fffff, Local0) if (arg2) { And(arg1, OP11, Local1) } else { And(arg1, OP10, Local2) ShiftLeft(Local2, 4, Local1) } Or(Local0, Local1, Local7) return (Local7) } /* * Verify the value of Integer-ID of pkg-node * * arg0 - pkg-node Package of pHRx-Package * arg1 - coefficient of maximal hierarchy of Packages * arg2 - number of children of pkg-node to be actually processed * arg3 - start index of location of references in pkg-nodes * arg4 - level of arg0 + index inside level of arg0 * arg5 - bit-map of operations * arg6 - index of Integer-ID in pkg-nodes */ Method(mfe0, 7, Serialized) { Name(ind0, 0) Name(num, 0) Name(lpN0, 0) Name(lpC0, 0) Store(arg2, num) /* Level 0 */ Store(arg3, ind0) Store(num, lpN0) Store(0, lpC0) While (lpN0) { Index(arg0, ind0, Local0) // IRef to some ref of pkg-node Store(DerefOf(Local0), Local1) // reference Store(DerefOf(Local1), Local2) // another pkg-node referred to Store(DerefOf(Index(Local2, arg6)), Local3) // Integer-ID mfe2(arg1, arg2, arg4, lpC0, Local3, arg5) Increment(ind0) Decrement(lpN0) Increment(lpC0) } /* Level 1 */ Multiply(num, arg2, num) Store(num, lpN0) Store(0, lpC0) While (lpN0) { Index(arg0, ind0, Local0) Store(DerefOf(Local0), Local1) Store(DerefOf(Local1), Local2) Store(DerefOf(Index(Local2, arg6)), Local3) Or(0x10000, lpC0, Local7) mfe2(arg1, arg2, arg4, Local7, Local3, arg5) Increment(ind0) Decrement(lpN0) Increment(lpC0) } /* Level 2 */ Multiply(num, arg2, num) Store(num, lpN0) Store(0, lpC0) While (lpN0) { Index(arg0, ind0, Local0) Store(DerefOf(Local0), Local1) Store(DerefOf(Local1), Local2) Store(DerefOf(Index(Local2, arg6)), Local3) Or(0x20000, lpC0, Local7) mfe2(arg1, arg2, arg4, Local7, Local3, arg5) Increment(ind0) Decrement(lpN0) Increment(lpC0) } /* Level 3 */ Multiply(num, arg2, num) Store(num, lpN0) Store(0, lpC0) While (lpN0) { Index(arg0, ind0, Local0) Store(DerefOf(Local0), Local1) Store(DerefOf(Local1), Local2) Store(DerefOf(Index(Local2, arg6)), Local3) Or(0x30000, lpC0, Local7) mfe2(arg1, arg2, arg4, Local7, Local3, arg5) Increment(ind0) Decrement(lpN0) Increment(lpC0) } } /* * Verify the contents of pHRx-Package (Integer-IDs) by read access * through References packed into all pkg-nodes. * * arg0 - pHRx-Package (hierarchy), fully initialized * arg1 - number of children of pkg-node to be actually processed * arg2 - start index of location of references in arg0-pkg-nodes * arg3 - coefficient of maximal hierarchy of Packages * arg4 - bit-map of operations * arg5 - index of Integer-ID in pkg-nodes */ Method(mfe1, 6, Serialized) { Name(lpN0, 0) Name(lpC0, 0) Name(lpN1, 0) Name(lpC1, 0) Name(lpN2, 0) Name(lpC2, 0) Name(lpN3, 0) Name(lpC3, 0) Name(pkg0, Package(1) {}) Name(pkg1, Package(1) {}) Name(pkg2, Package(1) {}) Name(pkg3, Package(1) {}) Store(arg1, lpN0) Store(0, lpC0) While (lpN0) { Index(arg0, lpC0, Local0) CopyObject(DerefOf(Local0), pkg0) mfe0(pkg0, arg3, arg1, arg2, lpC0, arg4, arg5) Store(arg1, lpN1) Store(0, lpC1) While (lpN1) { Index(pkg0, lpC1, Local1) CopyObject(DerefOf(Local1), pkg1) Or(0x10000, lpC1, Local7) mfe0(pkg1, arg3, arg1, arg2, Local7, arg4, arg5) Store(arg1, lpN2) Store(0, lpC2) While (lpN2) { Index(pkg1, lpC2, Local2) CopyObject(DerefOf(Local2), pkg2) Or(0x20000, lpC2, Local7) mfe0(pkg2, arg3, arg1, arg2, Local7, arg4, arg5) Store(arg1, lpN3) Store(0, lpC3) While (lpN3) { Index(pkg2, lpC3, Local3) CopyObject(DerefOf(Local3), pkg3) Or(0x30000, lpC3, Local7) mfe0(pkg3, arg3, arg1, arg2, Local7, arg4, arg5) Decrement(lpN3) Increment(lpC3) } Decrement(lpN2) Increment(lpC2) } Decrement(lpN1) Increment(lpC1) } Decrement(lpN0) Increment(lpC0) } } /* * Rewrite Integer-IDs for all pkg-nodes of hierarchy - * read previous value generate new and write back to pkg-node. * * arg0 - reference to Package,pHR0 * arg1 - number of children of pkg-node to be actually processed * arg2 - index of Integer-ID in pkg-nodes * arg3 - start index of location of references in pkg-nodes * arg4 - bit-map of operations */ Method(mfe4, 5, Serialized) { Name(lpN0, 0) Name(lpC0, 0) Name(lpN1, 0) Name(lpC1, 0) Name(lpN2, 0) Name(lpC2, 0) Name(lpN3, 0) Name(lpC3, 0) Name(lpN4, 0) Name(lpC4, 0) Name(nds0, 0) // number of pkg-nodes actually processed Name(iRF0, 0) // current index of element with reference Name(op00, 0) Name(wrID, 0) Name(wrPK, 0) Name(wrRF, 0) Name(pkg0, Package(1) {}) Name(pkg, Package(1) {}) And(arg4, OPFF, op00) Switch (ToInteger (op00)) { Case (0x02) { /* re-write Integer-IDs */ Store(1, wrID) } Case (0x04) { /* re-write pkg-nodes */ Store(1, wrPK) } Case (0x08) { /* re-write references */ Store(mfe5(arg1), nds0) Store(1, wrRF) } Default { return }} Store(arg1, lpN0) Store(0, lpC0) While (lpN0) { Index(DerefOf(arg0), lpC0, pkg0) // lpC0-th pkg-node of 0 level if (wrID) { Store(DerefOf(Index(DerefOf(pkg0), arg2)), Local7) // Integer-ID Store(mfe3(Local7, arg4, 1), Local6) Store(Local6, Index(DerefOf(pkg0), arg2)) } elseif (wrRF) { Store(nds0, lpN4) Store(0, lpC4) Store(arg3, iRF0) While (lpN4) { Store(DerefOf(Index(DerefOf(pkg0), iRF0)), Local7) // reference Store(Local7, Index(DerefOf(pkg0), iRF0)) Increment(iRF0) Decrement(lpN4) Increment(lpC4) } } Store(arg1, lpN1) Store(0, lpC1) While (lpN1) { if (wrID) { Store(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), arg2)), Local7) Store(mfe3(Local7, arg4, 1), Local6) Store(Local6, Index(DerefOf(Index(DerefOf(pkg0), lpC1)), arg2)) } elseif (wrRF) { Store(nds0, lpN4) Store(0, lpC4) Store(arg3, iRF0) While (lpN4) { Store(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), iRF0)), Local7) Store(Local7, Index(DerefOf(Index(DerefOf(pkg0), lpC1)), iRF0)) Store(Local7, Index(DerefOf(Index(DerefOf(pkg0), lpC1)), iRF0)) Increment(iRF0) Decrement(lpN4) Increment(lpC4) } } Store(arg1, lpN2) Store(0, lpC2) While (lpN2) { if (wrID) { Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), arg2)), Local7) Store(mfe3(Local7, arg4, 1), Local6) Store(Local6, Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), arg2)) } elseif (wrRF) { Store(nds0, lpN4) Store(0, lpC4) Store(arg3, iRF0) While (lpN4) { Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), iRF0)), Local7) Store(Local7, Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), iRF0)) Store(Local7, Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), iRF0)) Store(Local7, Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), iRF0)) Increment(iRF0) Decrement(lpN4) Increment(lpC4) } } Store(arg1, lpN3) Store(0, lpC3) While (lpN3) { if (wrID) { Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)), arg2)), Local7) Store(mfe3(Local7, arg4, 1), Local6) Store(Local6, Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)), arg2)) } elseif (wrPK) { Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)), pkg) if (LEqual(lpC3, 1)) { Store(pkg, Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)) Store(pkg, Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)) Store(pkg, Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)) } else { Store(pkg, Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)) } } elseif (wrRF) { Store(nds0, lpN4) Store(0, lpC4) Store(arg3, iRF0) While (lpN4) { Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)), iRF0)), Local7) Store(Local7, Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)), iRF0)) Store(Local7, Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)), iRF0)) Store(Local7, Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)), iRF0)) Store(Local7, Index(DerefOf(Index(DerefOf(Index(DerefOf(Index(DerefOf(pkg0), lpC1)), lpC2)), lpC3)), iRF0)) Increment(iRF0) Decrement(lpN4) Increment(lpC4) } } Decrement(lpN3) Increment(lpC3) } Decrement(lpN2) Increment(lpC2) } Decrement(lpN1) Increment(lpC1) } Decrement(lpN0) Increment(lpC0) } } /* * Return number of pkg-nodes actually processed. * * arg0 - number of children of pkg-node to be actually processed */ Method(mfe5, 1) { Store(arg0, Local0) Multiply(Local0, arg0, Local1) Multiply(Local1, arg0, Local2) Multiply(Local2, arg0, Local3) Add(Local0, Local1, Local4) Add(Local2, Local3, Local5) Add(Local4, Local5, Local7) return (Local7) } /* * Static hierarchy of Packages (maximal): * * 1. Levels: root + 4 * 2. Pkg-node: 4 children-Packages * 3. Integer-ID: reflects level (0-3) and index inside level of pkg-node * 4. References: (4+16+64+256) == 340 maximum * 5 Total == 4 (Pkg-nodes) * + 1 (Integer-ID) * + 340 (References to inner nodes) * + 340 (References to nodes of another hierarchy) * === * 685 */ Method(mfdc,, Serialized) { Name(pr00, 0) /* * Coefficient of maximal hierarchy of Packages * represented by this model. */ Name(HR00, 4) Name(iint, 4) // index of Integer-ID in pkg-nodes Name(iirf, 0) // start index of location of INTERNAL-references in pkg-nodes Name(icrf, 345) // start index of location of CROSS-references in pkg-nodes Name(sz, 685) // full size of Package Name(chn0, 1) // number of children of pkg-node to be actually processed (1,2,3,4) /* Package of hierarchy */ Name(pHR0, Package(sz) { Package(sz) { Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030000, }, Package(sz) {0,1,2,3, 0xab030001, }, Package(sz) {0,1,2,3, 0xab030002, }, Package(sz) {0,1,2,3, 0xab030003, }, 0xab020000 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030004, }, Package(sz) {0,1,2,3, 0xab030005, }, Package(sz) {0,1,2,3, 0xab030006, }, Package(sz) {0,1,2,3, 0xab030007, }, 0xab020001 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030008, }, Package(sz) {0,1,2,3, 0xab030009, }, Package(sz) {0,1,2,3, 0xab03000a, }, Package(sz) {0,1,2,3, 0xab03000b, }, 0xab020002 }, Package(sz) { Package(sz) {0,1,2,3, 0xab03000c, }, Package(sz) {0,1,2,3, 0xab03000d, }, Package(sz) {0,1,2,3, 0xab03000e, }, Package(sz) {0,1,2,3, 0xab03000f, }, 0xab020003 }, 0xab010000 }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030010, }, Package(sz) {0,1,2,3, 0xab030011, }, Package(sz) {0,1,2,3, 0xab030012, }, Package(sz) {0,1,2,3, 0xab030013, }, 0xab020004 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030014, }, Package(sz) {0,1,2,3, 0xab030015, }, Package(sz) {0,1,2,3, 0xab030016, }, Package(sz) {0,1,2,3, 0xab030017, }, 0xab020005 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030018, }, Package(sz) {0,1,2,3, 0xab030019, }, Package(sz) {0,1,2,3, 0xab03001a, }, Package(sz) {0,1,2,3, 0xab03001b, }, 0xab020006 }, Package(sz) { Package(sz) {0,1,2,3, 0xab03001c, }, Package(sz) {0,1,2,3, 0xab03001d, }, Package(sz) {0,1,2,3, 0xab03001e, }, Package(sz) {0,1,2,3, 0xab03001f, }, 0xab020007 }, 0xab010001 }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030020, }, Package(sz) {0,1,2,3, 0xab030021, }, Package(sz) {0,1,2,3, 0xab030022, }, Package(sz) {0,1,2,3, 0xab030023, }, 0xab020008 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030024, }, Package(sz) {0,1,2,3, 0xab030025, }, Package(sz) {0,1,2,3, 0xab030026, }, Package(sz) {0,1,2,3, 0xab030027, }, 0xab020009 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030028, }, Package(sz) {0,1,2,3, 0xab030029, }, Package(sz) {0,1,2,3, 0xab03002a, }, Package(sz) {0,1,2,3, 0xab03002b, }, 0xab02000a }, Package(sz) { Package(sz) {0,1,2,3, 0xab03002c, }, Package(sz) {0,1,2,3, 0xab03002d, }, Package(sz) {0,1,2,3, 0xab03002e, }, Package(sz) {0,1,2,3, 0xab03002f, }, 0xab02000b }, 0xab010002 }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030030, }, Package(sz) {0,1,2,3, 0xab030031, }, Package(sz) {0,1,2,3, 0xab030032, }, Package(sz) {0,1,2,3, 0xab030033, }, 0xab02000c }, Package(sz) { Package(sz) {0,1,2,3, 0xab030034, }, Package(sz) {0,1,2,3, 0xab030035, }, Package(sz) {0,1,2,3, 0xab030036, }, Package(sz) {0,1,2,3, 0xab030037, }, 0xab02000d }, Package(sz) { Package(sz) {0,1,2,3, 0xab030038, }, Package(sz) {0,1,2,3, 0xab030039, }, Package(sz) {0,1,2,3, 0xab03003a, }, Package(sz) {0,1,2,3, 0xab03003b, }, 0xab02000e }, Package(sz) { Package(sz) {0,1,2,3, 0xab03003c, }, Package(sz) {0,1,2,3, 0xab03003d, }, Package(sz) {0,1,2,3, 0xab03003e, }, Package(sz) {0,1,2,3, 0xab03003f, }, 0xab02000f }, 0xab010003 }, 0xab000000 }, Package(sz) { Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030040, }, Package(sz) {0,1,2,3, 0xab030041, }, Package(sz) {0,1,2,3, 0xab030042, }, Package(sz) {0,1,2,3, 0xab030043, }, 0xab020010 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030044, }, Package(sz) {0,1,2,3, 0xab030045, }, Package(sz) {0,1,2,3, 0xab030046, }, Package(sz) {0,1,2,3, 0xab030047, }, 0xab020011 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030048, }, Package(sz) {0,1,2,3, 0xab030049, }, Package(sz) {0,1,2,3, 0xab03004a, }, Package(sz) {0,1,2,3, 0xab03004b, }, 0xab020012 }, Package(sz) { Package(sz) {0,1,2,3, 0xab03004c, }, Package(sz) {0,1,2,3, 0xab03004d, }, Package(sz) {0,1,2,3, 0xab03004e, }, Package(sz) {0,1,2,3, 0xab03004f, }, 0xab020013 }, 0xab010004 }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030050, }, Package(sz) {0,1,2,3, 0xab030051, }, Package(sz) {0,1,2,3, 0xab030052, }, Package(sz) {0,1,2,3, 0xab030053, }, 0xab020014 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030054, }, Package(sz) {0,1,2,3, 0xab030055, }, Package(sz) {0,1,2,3, 0xab030056, }, Package(sz) {0,1,2,3, 0xab030057, }, 0xab020015 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030058, }, Package(sz) {0,1,2,3, 0xab030059, }, Package(sz) {0,1,2,3, 0xab03005a, }, Package(sz) {0,1,2,3, 0xab03005b, }, 0xab020016 }, Package(sz) { Package(sz) {0,1,2,3, 0xab03005c, }, Package(sz) {0,1,2,3, 0xab03005d, }, Package(sz) {0,1,2,3, 0xab03005e, }, Package(sz) {0,1,2,3, 0xab03005f, }, 0xab020017 }, 0xab010005 }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030060, }, Package(sz) {0,1,2,3, 0xab030061, }, Package(sz) {0,1,2,3, 0xab030062, }, Package(sz) {0,1,2,3, 0xab030063, }, 0xab020018 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030064, }, Package(sz) {0,1,2,3, 0xab030065, }, Package(sz) {0,1,2,3, 0xab030066, }, Package(sz) {0,1,2,3, 0xab030067, }, 0xab020019 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030068, }, Package(sz) {0,1,2,3, 0xab030069, }, Package(sz) {0,1,2,3, 0xab03006a, }, Package(sz) {0,1,2,3, 0xab03006b, }, 0xab02001a }, Package(sz) { Package(sz) {0,1,2,3, 0xab03006c, }, Package(sz) {0,1,2,3, 0xab03006d, }, Package(sz) {0,1,2,3, 0xab03006e, }, Package(sz) {0,1,2,3, 0xab03006f, }, 0xab02001b }, 0xab010006 }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030070, }, Package(sz) {0,1,2,3, 0xab030071, }, Package(sz) {0,1,2,3, 0xab030072, }, Package(sz) {0,1,2,3, 0xab030073, }, 0xab02001c }, Package(sz) { Package(sz) {0,1,2,3, 0xab030074, }, Package(sz) {0,1,2,3, 0xab030075, }, Package(sz) {0,1,2,3, 0xab030076, }, Package(sz) {0,1,2,3, 0xab030077, }, 0xab02001d }, Package(sz) { Package(sz) {0,1,2,3, 0xab030078, }, Package(sz) {0,1,2,3, 0xab030079, }, Package(sz) {0,1,2,3, 0xab03007a, }, Package(sz) {0,1,2,3, 0xab03007b, }, 0xab02001e }, Package(sz) { Package(sz) {0,1,2,3, 0xab03007c, }, Package(sz) {0,1,2,3, 0xab03007d, }, Package(sz) {0,1,2,3, 0xab03007e, }, Package(sz) {0,1,2,3, 0xab03007f, }, 0xab02001f }, 0xab010007 }, 0xab000001 }, Package(sz) { Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030080, }, Package(sz) {0,1,2,3, 0xab030081, }, Package(sz) {0,1,2,3, 0xab030082, }, Package(sz) {0,1,2,3, 0xab030083, }, 0xab020020 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030084, }, Package(sz) {0,1,2,3, 0xab030085, }, Package(sz) {0,1,2,3, 0xab030086, }, Package(sz) {0,1,2,3, 0xab030087, }, 0xab020021 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030088, }, Package(sz) {0,1,2,3, 0xab030089, }, Package(sz) {0,1,2,3, 0xab03008a, }, Package(sz) {0,1,2,3, 0xab03008b, }, 0xab020022 }, Package(sz) { Package(sz) {0,1,2,3, 0xab03008c, }, Package(sz) {0,1,2,3, 0xab03008d, }, Package(sz) {0,1,2,3, 0xab03008e, }, Package(sz) {0,1,2,3, 0xab03008f, }, 0xab020023 }, 0xab010008 }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab030090, }, Package(sz) {0,1,2,3, 0xab030091, }, Package(sz) {0,1,2,3, 0xab030092, }, Package(sz) {0,1,2,3, 0xab030093, }, 0xab020024 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030094, }, Package(sz) {0,1,2,3, 0xab030095, }, Package(sz) {0,1,2,3, 0xab030096, }, Package(sz) {0,1,2,3, 0xab030097, }, 0xab020025 }, Package(sz) { Package(sz) {0,1,2,3, 0xab030098, }, Package(sz) {0,1,2,3, 0xab030099, }, Package(sz) {0,1,2,3, 0xab03009a, }, Package(sz) {0,1,2,3, 0xab03009b, }, 0xab020026 }, Package(sz) { Package(sz) {0,1,2,3, 0xab03009c, }, Package(sz) {0,1,2,3, 0xab03009d, }, Package(sz) {0,1,2,3, 0xab03009e, }, Package(sz) {0,1,2,3, 0xab03009f, }, 0xab020027 }, 0xab010009 }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab0300a0, }, Package(sz) {0,1,2,3, 0xab0300a1, }, Package(sz) {0,1,2,3, 0xab0300a2, }, Package(sz) {0,1,2,3, 0xab0300a3, }, 0xab020028 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300a4, }, Package(sz) {0,1,2,3, 0xab0300a5, }, Package(sz) {0,1,2,3, 0xab0300a6, }, Package(sz) {0,1,2,3, 0xab0300a7, }, 0xab020029 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300a8, }, Package(sz) {0,1,2,3, 0xab0300a9, }, Package(sz) {0,1,2,3, 0xab0300aa, }, Package(sz) {0,1,2,3, 0xab0300ab, }, 0xab02002a }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300ac, }, Package(sz) {0,1,2,3, 0xab0300ad, }, Package(sz) {0,1,2,3, 0xab0300ae, }, Package(sz) {0,1,2,3, 0xab0300af, }, 0xab02002b }, 0xab01000a }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab0300b0, }, Package(sz) {0,1,2,3, 0xab0300b1, }, Package(sz) {0,1,2,3, 0xab0300b2, }, Package(sz) {0,1,2,3, 0xab0300b3, }, 0xab02002c }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300b4, }, Package(sz) {0,1,2,3, 0xab0300b5, }, Package(sz) {0,1,2,3, 0xab0300b6, }, Package(sz) {0,1,2,3, 0xab0300b7, }, 0xab02002d }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300b8, }, Package(sz) {0,1,2,3, 0xab0300b9, }, Package(sz) {0,1,2,3, 0xab0300ba0, }, Package(sz) {0,1,2,3, 0xab0300bb, }, 0xab02002e }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300bc, }, Package(sz) {0,1,2,3, 0xab0300bd, }, Package(sz) {0,1,2,3, 0xab0300be, }, Package(sz) {0,1,2,3, 0xab0300bf, }, 0xab02002f }, 0xab01000b }, 0xab000002 }, Package(sz) { Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab0300c0, }, Package(sz) {0,1,2,3, 0xab0300c1, }, Package(sz) {0,1,2,3, 0xab0300c2, }, Package(sz) {0,1,2,3, 0xab0300c3, }, 0xab020030 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300c4, }, Package(sz) {0,1,2,3, 0xab0300c5, }, Package(sz) {0,1,2,3, 0xab0300c6, }, Package(sz) {0,1,2,3, 0xab0300c7, }, 0xab020031 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300c8, }, Package(sz) {0,1,2,3, 0xab0300c9, }, Package(sz) {0,1,2,3, 0xab0300ca, }, Package(sz) {0,1,2,3, 0xab0300cb, }, 0xab020032 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300cc, }, Package(sz) {0,1,2,3, 0xab0300cd, }, Package(sz) {0,1,2,3, 0xab0300ce, }, Package(sz) {0,1,2,3, 0xab0300cf, }, 0xab020033 }, 0xab01000c }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab0300d0, }, Package(sz) {0,1,2,3, 0xab0300d1, }, Package(sz) {0,1,2,3, 0xab0300d2, }, Package(sz) {0,1,2,3, 0xab0300d3, }, 0xab020034 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300d4, }, Package(sz) {0,1,2,3, 0xab0300d5, }, Package(sz) {0,1,2,3, 0xab0300d6, }, Package(sz) {0,1,2,3, 0xab0300d7, }, 0xab020035 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300d8, }, Package(sz) {0,1,2,3, 0xab0300d9, }, Package(sz) {0,1,2,3, 0xab0300da, }, Package(sz) {0,1,2,3, 0xab0300db, }, 0xab020036 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300dc, }, Package(sz) {0,1,2,3, 0xab0300dd, }, Package(sz) {0,1,2,3, 0xab0300de, }, Package(sz) {0,1,2,3, 0xab0300df, }, 0xab020037 }, 0xab01000d }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab0300e0, }, Package(sz) {0,1,2,3, 0xab0300e1, }, Package(sz) {0,1,2,3, 0xab0300e2, }, Package(sz) {0,1,2,3, 0xab0300e3, }, 0xab020038 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300e4, }, Package(sz) {0,1,2,3, 0xab0300e5, }, Package(sz) {0,1,2,3, 0xab0300e6, }, Package(sz) {0,1,2,3, 0xab0300e7, }, 0xab020039 }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300e8, }, Package(sz) {0,1,2,3, 0xab0300e9, }, Package(sz) {0,1,2,3, 0xab0300ea, }, Package(sz) {0,1,2,3, 0xab0300eb, }, 0xab02003a }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300ec, }, Package(sz) {0,1,2,3, 0xab0300ed, }, Package(sz) {0,1,2,3, 0xab0300ee, }, Package(sz) {0,1,2,3, 0xab0300ef, }, 0xab02003b }, 0xab01000e }, Package(sz) { Package(sz) { Package(sz) {0,1,2,3, 0xab0300f0, }, Package(sz) {0,1,2,3, 0xab0300f1, }, Package(sz) {0,1,2,3, 0xab0300f2, }, Package(sz) {0,1,2,3, 0xab0300f3, }, 0xab02003c }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300f4, }, Package(sz) {0,1,2,3, 0xab0300f5, }, Package(sz) {0,1,2,3, 0xab0300f6, }, Package(sz) {0,1,2,3, 0xab0300f7, }, 0xab02003d }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300f8, }, Package(sz) {0,1,2,3, 0xab0300f9, }, Package(sz) {0,1,2,3, 0xab0300fa, }, Package(sz) {0,1,2,3, 0xab0300fb, }, 0xab02003e }, Package(sz) { Package(sz) {0,1,2,3, 0xab0300fc, }, Package(sz) {0,1,2,3, 0xab0300fd, }, Package(sz) {0,1,2,3, 0xab0300fe, }, Package(sz) {0,1,2,3, 0xab0300ff, }, 0xab02003f }, 0xab01000f }, 0xab000003 }, 0xabababab }) Name(pIR0, Package(4) { Package(4) {}, Package(16) {}, Package(64) {}, Package(256) {} }) Name(pIR1, Package(4) { Package(4) {}, Package(16) {}, Package(64) {}, Package(256) {} }) Name(pHR1, Package(1) {}) Name(pHR2, Package(1) {}) Add(iint, 1, iirf) Concatenate("chn0 of model is equal to ", chn0, Debug) /* * ########## References to pkg-nodes inside one hierarchy ########## */ SRMT("gen-inner-refs-to-pkg-nodes-of-pHR0") /* * Generate references to chn0-number elements of all pkg-nodes of pHR0 * and pack up them per-level into pIR0. */ mfdd(RefOf(pHR0), pIR0, chn0, iint) /* * Put elements of package pIR0 (references) into relevant elements * of pkg-nodes of pHR0. */ mfdf(pIR0, RefOf(pHR0), chn0, iirf) SRMT("verify-0-of-pHR0-by-inner-refs") /* * Verify the contents of pHR0 (Integer-IDs of pkg-nodes) * by read access through References packed into all its pkg-nodes. * * mfe1() does reading unconditionally: * read: 0 - type of current (read) Integer-IDs */ mfe1(pHR0, chn0, iirf, HR00, 0, iint) SRMT("rewrite-1-Integer-IDs-of-pHR0") /* * Rewrite Integer-IDs for all pkg-nodes of hierarchy (pHR0) - * read previous value, generate new and write back to pkg-node. * * re-write I-ID: 1 - type of new (re-write) Integer-IDs */ Or(OP01, 0x100000, Local0) // re-write I-ID + type of new (re-write) Integer-IDs mfe4(RefOf(pHR0), chn0, iint, iirf, Local0) SRMT("verify-1-of-pHR0-by-inner-refs") /* * Verify the new Integer-IDs of hierarchy. * * mfe1() does reading unconditionally: * read: 1 - type of current (read) Integer-IDs */ Or(0, 0x10000, Local0) // type of current (read) Integer-IDs mfe1(pHR0, chn0, iirf, HR00, Local0, iint) SRMT("rewrite-pkg-nodes-of-pHR0") /* * Rewrite the whole pkg-nodes of hierarchy - * take each pkg-node and re-write it back to the same location. * * re-write pkg-nodes */ mfe4(RefOf(pHR0), chn0, iint, iirf, OP02) SRMT("verify-1-of-pHR0-by-inner-refs") /* * Verify Integer-IDs of hierarchy: nothing should change. * * mfe1() does reading unconditionally: * read: 1 - type of current (read) Integer-IDs */ Or(0, 0x10000, Local0) // type of current (read) Integer-IDs mfe1(pHR0, chn0, iirf, HR00, Local0, iint) /* * ############# Duplicate of hierarchy ############# */ SRMT("Duplicate-pHR0-to-pHR1") /* * Copy hierarchy to another object */ Store(pHR0, pHR1) /* * Verify Integer-IDs of both instances of hierarchy: * nothing should change. References of both hierarchies * point to the same pkg-nodes, so, Integer-IDs should * be the same. * * mfe1() does reading unconditionally: * read: 1 - type of current (read) Integer-IDs */ Or(0, 0x10000, Local0) // type of current (read) Integer-IDs SRMT("verify-1-of-pHR0-by-inner-refs") mfe1(pHR0, chn0, iirf, HR00, Local0, iint) SRMT("verify-1-of-pHR0-by-inner-refs-duplicated-to-pHR1") mfe1(pHR1, chn0, iirf, HR00, Local0, iint) SRMT("rewrite-2-Integer-IDs-of-pHR0") /* * Rewrite Integer-IDs for all pkg-nodes of source hierarchy. * * re-write I-ID: 2 - type of new (re-write) Integer-IDs */ Or(OP01, 0x200000, Local0) // re-write I-ID + type of new (re-write) Integer-IDs mfe4(RefOf(pHR0), chn0, iint, iirf, Local0) /* * Verify new Integer-IDs through the References of both hierarchies * (both point to the same pkg-nodes). * * mfe1() does reading unconditionally: * read: 2 - type of current (read) Integer-IDs */ Or(0, 0x20000, Local0) // type of current (read) Integer-IDs SRMT("verify-2-of-pHR0-by-inner-refs") mfe1(pHR0, chn0, iirf, HR00, Local0, iint) SRMT("verify-2-of-pHR0-by-inner-refs-duplicated-to-pHR1") mfe1(pHR1, chn0, iirf, HR00, Local0, iint) SRMT("rewrite-inner-references-of-pHR0") /* * Rewrite all references present in pkg-nodes of hierarchy pHR0 - * take each reference and re-write it back to the same location. * * re-write references */ mfe4(RefOf(pHR0), chn0, iint, iirf, OP03) /* * Verify Integer-IDs of both instances of hierarchy: nothing should change. * * mfe1() does reading unconditionally: * read: 2 - type of current (read) Integer-IDs */ Or(0, 0x20000, Local0) // type of current (read) Integer-IDs SRMT("verify-2-of-pHR0-by-inner-refs") mfe1(pHR0, chn0, iirf, HR00, Local0, iint) SRMT("verify-2-of-pHR0-by-inner-refs-duplicated-to-pHR1") mfe1(pHR1, chn0, iirf, HR00, Local0, iint) /* * ####### Cross references ####### * ####### ####### * ####### References to pkg-nodes inside each of two hierarchies ####### * ####### added with references between those two hierarchies. ####### */ SRMT("Duplicate-pHR0-to-pHR2") /* * Copy hierarchy to another object */ Store(pHR0, pHR2) SRMT("gen-inner-refs-to-pkg-nodes-of-pHR2") /* * Generate references to chn0-number elements of all pkg-nodes of pHR2 * and pack up them per-level into pIR1. */ mfdd(RefOf(pHR2), pIR1, chn0, iint) /* * Put elements of package pIR1 (references) into relevant elements * of pkg-nodes of pHR2. */ mfdf(pIR1, RefOf(pHR2), chn0, iirf) /* ===== Add cross references between two hierarchies, (pHR0 & pHR2) ===== */ SRMT("add-inner-refs-to-pkg-nodes-of-pHR2-into-pHR0") /* * Put references to pkg-nodes of pHR2 into nodes of pHR0. */ mfdf(pIR1, RefOf(pHR0), chn0, icrf) SRMT("add-inner-refs-to-pkg-nodes-of-pHR0-into-pHR2") /* * Put references to pkg-nodes of pHR0 into nodes of pHR2. */ mfdf(pIR0, RefOf(pHR2), chn0, icrf) /* Re-write + Verify Integer-IDs */ SRMT("rewrite-3-Integer-IDs-of-pHR2") Or(OP01, 0x300000, Local0) mfe4(RefOf(pHR2), chn0, iint, iirf, Local0) SRMT("verify-3-of-pHR2-by-cross-refs-of-pHR0") Or(0, 0x30000, Local0) mfe1(pHR0, chn0, icrf, HR00, Local0, iint) SRMT("verify-2-of-pHR0-by-cross-refs-of-pHR2") Or(0, 0x20000, Local0) mfe1(pHR2, chn0, icrf, HR00, Local0, iint) SRMT("rewrite-4-Integer-IDs-of-pHR0") Or(OP01, 0x400000, Local0) mfe4(RefOf(pHR0), chn0, iint, iirf, Local0) SRMT("verify-4-of-pHR0-by-cross-refs-of-pHR2") Or(0, 0x40000, Local0) mfe1(pHR2, chn0, icrf, HR00, Local0, iint) /* Re-write pkg-nodes + Verify */ SRMT("rewrite-pkg-nodes-of-pHR0") mfe4(RefOf(pHR0), chn0, iint, icrf, OP02) SRMT("rewrite-pkg-nodes-of-pHR2") mfe4(RefOf(pHR2), chn0, iint, icrf, OP02) SRMT("verify-3-of-pHR2-by-cross-refs-of-pHR0") Or(0, 0x30000, Local0) mfe1(pHR0, chn0, icrf, HR00, Local0, iint) SRMT("verify-4-of-pHR0-by-cross-refs-of-pHR2") Or(0, 0x40000, Local0) mfe1(pHR2, chn0, icrf, HR00, Local0, iint) /* Re-write inner references + Verify */ /* Re-write cross references + Verify */ SRMT("rewrite-inner-references-of-pHR0") mfe4(RefOf(pHR0), chn0, iint, iirf, OP03) SRMT("rewrite-inner-references-of-pHR2") mfe4(RefOf(pHR2), chn0, iint, iirf, OP03) SRMT("rewrite-cross-references-of-pHR0") mfe4(RefOf(pHR0), chn0, iint, icrf, OP03) SRMT("rewrite-cross-references-of-pHR2") mfe4(RefOf(pHR2), chn0, iint, icrf, OP03) SRMT("verify-3-of-pHR2-by-cross-refs-of-pHR0") Or(0, 0x30000, Local0) mfe1(pHR0, chn0, icrf, HR00, Local0, iint) SRMT("verify-4-of-pHR0-by-cross-refs-of-pHR2") Or(0, 0x40000, Local0) mfe1(pHR2, chn0, icrf, HR00, Local0, iint) } Method(mfdb) { CH03("", 0, 0x200, __LINE__, 0) mfdc() CH03("", 0, 0x202, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/SimplePkgs.asl0000700000175000017500000000643114773714151027767 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Checkings for simple one-level hierarchy of Packages. * * 0x5C Outstanding allocations because of * AcpiExec doesn't run the unload of the table have been processed. * * Outstanding: 0x5C allocations after execution. */ Method(mfc5,, Serialized) { Name(num0, 12) // different types of packages Pkg0 and Pkg1 Name(num1, 19) // opcodes of additional assignments of packages Pkg0 and Pkg1 Name(num2, 13) // max opcode of additional assignments of References (0-12) Name(cur0, 0) // cur opcode of additional assignments of References (0-12) Name(i000, 0) Name(AR20, 0) Name(lpN0, 0) Name(lpC0, 0) Name(lpN1, 0) Name(lpC1, 0) Name(loc0, Package(Multiply(id26, 2)) {}) Name(loc1, Package(Multiply(id26, 2)) {}) Store(num1, lpN1) Store(0, lpC1) SRMT("Simple-Pkg") While (lpN1) { Store(num0, lpN0) Store(0, lpC0) While (lpN0) { Divide(i000, num2, cur0) Increment(i000) Store(mfc9(lpC1, lpC0, 0, 0, cur0), Local0) mfc6(loc0, loc1, Local0, 0, 0, 0, 0) Divide(i000, num2, cur0) Increment(i000) Store(mfc9(lpC1, lpC0, 0, 1, cur0), Local0) mfc6(loc0, loc1, Local0, 0, 0, 0, 0) Divide(i000, num2, cur0) Increment(i000) Store(mfc9(lpC1, lpC0, 1, 0, cur0), Local0) mfc6(loc0, loc1, Local0, 0, 0, 0, 0) Divide(i000, num2, cur0) Increment(i000) Store(mfc9(lpC1, lpC0, 1, 1, cur0), Local0) mfc6(loc0, loc1, Local0, 0, 0, 0, 0) Decrement(lpN0) Increment(lpC0) } Decrement(lpN1) Increment(lpC1) } /* * To eliminate the known outstanding allocations - * releasing of global data are not forces by AcpiExec - * no unload of the processed ACPI table is automatically * initiated by AcpiExec after completion the ex command. */ if (0) { mfe8() } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/Misc1.asl0000700000175000017500000022173414773714151026672 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check self-references * * 0xE Outstanding allocations because of * AcpiExec doesn't run the unload of the table have been processed. * All they are caused by call to SRMT Method. * * Outstanding: 0xE allocations after execution. */ Method(mfcb,, Serialized) { Name(p000, Package(16) {}) Name(num, 8) // half-size of Package Name(i000, 0xabcd0000) // value of the first element of Package /* 1 */ Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 9)) Store(Index(p000, 2), Index(p000, 10)) Store(Index(p000, 3), Index(p000, 11)) Store(Index(p000, 4), Index(p000, 12)) Store(Index(p000, 5), Index(p000, 13)) Store(Index(p000, 6), Index(p000, 14)) Store(Index(p000, 7), Index(p000, 15)) mfc7(p000, 0, num, i000) mfcc(p000, num, num, i000, 0, 0x003) /* 2 */ mfcd(p000, 0, num, 0) Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 0), Index(p000, 9)) Store(Index(p000, 0), Index(p000, 10)) Store(Index(p000, 0), Index(p000, 11)) Store(Index(p000, 0), Index(p000, 12)) Store(Index(p000, 0), Index(p000, 13)) Store(Index(p000, 0), Index(p000, 14)) Store(Index(p000, 0), Index(p000, 15)) Store(0xabcd0100, i000) Store(i000, Index(p000, 0)) mfce(p000, num, num, i000, 0, 0x004) /* 3 */ mfcd(p000, 0, num, 0) mfc7(p000, 0, num, 0xabcd0200) Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 8)) Store(Index(p000, 2), Index(p000, 8)) Store(Index(p000, 3), Index(p000, 8)) Store(Index(p000, 4), Index(p000, 8)) Store(Index(p000, 5), Index(p000, 8)) Store(Index(p000, 6), Index(p000, 8)) Store(Index(p000, 7), Index(p000, 8)) mfce(p000, num, 1, 0xabcd0207, 0, 0x005) /* 4 */ mfcd(p000, 0, num, 0) mfc7(p000, 0, num, 0xabcd0300) Store(Index(p000, 1), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 8)) mfce(p000, num, 1, 0xabcd0301, 0, 0x006) } /* * LocalX involved */ Method(mfcf,, Serialized) { Name(p000, Package(16) {}) Store(Index(p000, 0), Local0) Store(Local0, Index(p000, 1)) Store(0xabcd0000, Index(p000, 0)) Store(Index(p000, 1), Local0) Store(DerefOf(Local0), Local1) Store(DerefOf(Local1), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0000) } } /* * One-directional list of references */ Method(mfd0,, Serialized) { Name(sz, 16) // full size of Package Name(num, 0) // half-size of Package Name(p000, Package(sz) {}) Name(p001, Package(sz) {}) Name(p002, Package(sz) {}) Name(p003, Package(sz) {}) Name(p004, Package(sz) {}) Name(p005, Package(sz) {}) Name(p006, Package(sz) {}) Name(p007, Package(sz) {}) Name(i000, 0xabcd0000) Name(i001, 0xabcd0100) Name(i002, 0xabcd0200) Name(i003, 0xabcd0300) Name(i004, 0xabcd0400) Name(i005, 0xabcd0500) Name(i006, 0xabcd0600) Name(i007, 0xabcd0700) Divide(sz, 2, Local0, num) /* Initializing Packages with monotone increasing Integers */ mfc7(p000, 0, sz, i000) mfc7(p001, 0, sz, i001) mfc7(p002, 0, sz, i002) mfc7(p003, 0, sz, i003) mfc7(p004, 0, sz, i004) mfc7(p005, 0, sz, i005) mfc7(p006, 0, sz, i006) mfc7(p007, 0, sz, i007) /* Initializing the Package with IRefs */ mfc8(p000, p001, 0, num, num, 0, 0) mfc8(p001, p002, 0, num, num, 0, 0) mfc8(p002, p003, 0, num, num, 0, 0) mfc8(p003, p004, 0, num, num, 0, 0) mfc8(p004, p005, 0, num, num, 0, 0) mfc8(p005, p006, 0, num, num, 0, 0) mfc8(p006, p007, 0, num, num, 0, 0) /* Verifying access to the first parts of Packages through the IRefs */ mfcc(p001, num, num, i000, 0, 0x008) mfcc(p002, num, num, i001, 0, 0x009) mfcc(p003, num, num, i002, 0, 0x00a) mfcc(p004, num, num, i003, 0, 0x00b) mfcc(p005, num, num, i004, 0, 0x00c) mfcc(p006, num, num, i005, 0, 0x00d) mfcc(p007, num, num, i006, 0, 0x00e) } /* * 0-Ring of references */ Method(mfd1,, Serialized) { Name(sz, 16) // full size of Package Name(num, 0) // half-size of Package Name(p000, Package(sz) {}) Name(p001, Package(sz) {}) Name(p002, Package(sz) {}) Name(p003, Package(sz) {}) Name(p004, Package(sz) {}) Name(p005, Package(sz) {}) Name(p006, Package(sz) {}) Name(p007, Package(sz) {}) Name(i000, 0xabcd0000) Name(i001, 0xabcd0100) Name(i002, 0xabcd0200) Name(i003, 0xabcd0300) Name(i004, 0xabcd0400) Name(i005, 0xabcd0500) Name(i006, 0xabcd0600) Name(i007, 0xabcd0700) Divide(sz, 2, Local0, num) /* Initializing Packages with monotone increasing Integers */ mfc7(p000, 0, sz, i000) mfc7(p001, 0, sz, i001) mfc7(p002, 0, sz, i002) mfc7(p003, 0, sz, i003) mfc7(p004, 0, sz, i004) mfc7(p005, 0, sz, i005) mfc7(p006, 0, sz, i006) mfc7(p007, 0, sz, i007) /* Initializing the Package with IRefs */ mfc8(p000, p001, 0, num, num, 0, 0) mfc8(p001, p002, 0, num, num, 0, 0) mfc8(p002, p003, 0, num, num, 0, 0) mfc8(p003, p004, 0, num, num, 0, 0) mfc8(p004, p005, 0, num, num, 0, 0) mfc8(p005, p006, 0, num, num, 0, 0) mfc8(p006, p007, 0, num, num, 0, 0) mfc8(p007, p000, 0, num, num, 0, 0) /* Verifying access to the first parts of Packages through the IRefs */ mfcc(p001, num, num, i000, 0, 0x00f) mfcc(p002, num, num, i001, 0, 0x010) mfcc(p003, num, num, i002, 0, 0x011) mfcc(p004, num, num, i003, 0, 0x012) mfcc(p005, num, num, i004, 0, 0x013) mfcc(p006, num, num, i005, 0, 0x014) mfcc(p007, num, num, i006, 0, 0x015) mfcc(p000, num, num, i007, 0, 0x016) } /* * 9-Ring of references */ Method(mfd2,, Serialized) { Name(sz, 16) // full size of Package Name(num, 0) // half-size of Package Name(p000, Package(sz) {}) Name(p001, Package(sz) {}) Name(p002, Package(sz) {}) Name(p003, Package(sz) {}) Name(p004, Package(sz) {}) Name(p005, Package(sz) {}) Name(p006, Package(sz) {}) Name(p007, Package(sz) {}) Name(i000, 0xabcd0000) Name(i001, 0xabcd0100) Name(i002, 0xabcd0200) Name(i003, 0xabcd0300) Name(i004, 0xabcd0400) Name(i005, 0xabcd0500) Name(i006, 0xabcd0600) Name(i007, 0xabcd0700) Divide(sz, 2, Local0, num) /* Initializing Packages with monotone increasing Integers */ mfc7(p000, 0, sz, i000) mfc7(p001, 0, sz, i001) mfc7(p002, 0, sz, i002) mfc7(p003, 0, sz, i003) mfc7(p004, 0, sz, i004) mfc7(p005, 0, sz, i005) mfc7(p006, 0, sz, i006) mfc7(p007, 0, sz, i007) /* Initializing the Package with IRefs */ mfc8(p000, p001, 0, num, num, 0, 0) mfc8(p001, p002, 0, num, num, 0, 0) mfc8(p002, p003, 0, num, num, 0, 0) mfc8(p003, p000, 0, num, num, 0, 0) mfc8(p003, p004, 0, num, num, 0, 0) mfc8(p004, p005, 0, num, num, 0, 0) mfc8(p005, p006, 0, num, num, 0, 0) mfc8(p006, p007, 0, num, num, 0, 0) /* Verifying access to the first parts of Packages through the IRefs */ mfcc(p001, num, num, i000, 0, 0x017) mfcc(p002, num, num, i001, 0, 0x018) mfcc(p003, num, num, i002, 0, 0x019) mfcc(p000, num, num, i003, 0, 0x01a) mfcc(p004, num, num, i003, 0, 0x01b) mfcc(p005, num, num, i004, 0, 0x01c) mfcc(p006, num, num, i005, 0, 0x01d) mfcc(p007, num, num, i006, 0, 0x01e) } /* * Bush of references */ Method(mfd3,, Serialized) { Name(sz, 16) // full size of Package Name(num, 0) // half-size of Package Name(p000, Package(sz) {}) Name(p001, Package(sz) {}) Name(p002, Package(sz) {}) Name(p003, Package(sz) {}) Name(p004, Package(sz) {}) Name(p005, Package(sz) {}) Name(p006, Package(sz) {}) Name(p007, Package(sz) {}) Name(p008, Package(sz) {}) Name(i000, 0xabcd0000) Name(i001, 0xabcd0100) Name(i002, 0xabcd0200) Name(i003, 0xabcd0300) Name(i004, 0xabcd0400) Name(i005, 0xabcd0500) Name(i006, 0xabcd0600) Name(i007, 0xabcd0700) Name(i008, 0xabcd0800) Divide(sz, 2, Local0, num) /* Initializing Packages with monotone increasing Integers */ mfc7(p000, 0, sz, i000) mfc7(p001, 0, sz, i001) mfc7(p002, 0, sz, i002) mfc7(p003, 0, sz, i003) mfc7(p004, 0, sz, i004) mfc7(p005, 0, sz, i005) mfc7(p006, 0, sz, i006) mfc7(p007, 0, sz, i007) mfc7(p008, 0, sz, i008) /* Initializing the Package with IRefs */ mfc8(p005, p005, 0, num, num, 0, 0) mfc8(p005, p000, 0, num, num, 0, 0) mfc8(p000, p001, 0, num, num, 0, 0) mfc8(p005, p002, 0, num, num, 0, 0) mfc8(p002, p003, 0, num, num, 0, 0) mfc8(p005, p004, 0, num, num, 0, 0) mfc8(p004, p006, 0, num, num, 0, 0) mfc8(p005, p007, 0, num, num, 0, 0) mfc8(p007, p008, 0, num, num, 0, 0) /* Do self-references repeatedly */ mfc8(p005, p005, 0, num, num, 0, 0) mfc8(p005, p005, 0, num, num, 0, 0) mfc8(p005, p005, 0, num, num, 0, 0) mfc8(p005, p005, 0, num, num, 0, 0) mfc8(p005, p005, 0, num, num, 0, 0) /* Verifying access to the first parts of Packages through the IRefs */ mfcc(p005, num, num, i005, 0, 0x01f) mfcc(p000, num, num, i005, 0, 0x020) mfcc(p001, num, num, i000, 0, 0x021) mfcc(p002, num, num, i005, 0, 0x022) mfcc(p003, num, num, i002, 0, 0x023) mfcc(p004, num, num, i005, 0, 0x024) mfcc(p006, num, num, i004, 0, 0x025) mfcc(p007, num, num, i005, 0, 0x026) mfcc(p008, num, num, i007, 0, 0x027) } /* * Two-directional list of references */ Method(mfd4,, Serialized) { Name(sz, 16) // full size of Package Name(nm2, 0) // half-size of Package Name(nm4, 0) // one fourth of size of Package Name(nm34, 0) // three fourth of size of Package Name(p000, Package(sz) {}) Name(p001, Package(sz) {}) Name(p002, Package(sz) {}) Name(p003, Package(sz) {}) Name(p004, Package(sz) {}) Name(p005, Package(sz) {}) Name(p006, Package(sz) {}) Name(p007, Package(sz) {}) Name(i000, 0xabcd0000) Name(i001, 0xabcd0100) Name(i002, 0xabcd0200) Name(i003, 0xabcd0300) Name(i004, 0xabcd0400) Name(i005, 0xabcd0500) Name(i006, 0xabcd0600) Name(i007, 0xabcd0700) Divide(sz, 2, Local0, nm2) Divide(sz, 4, Local0, nm4) Add(nm2, nm4, nm34) /* Initializing Packages with monotone increasing Integers */ mfc7(p000, 0, sz, i000) mfc7(p001, 0, sz, i001) mfc7(p002, 0, sz, i002) mfc7(p003, 0, sz, i003) mfc7(p004, 0, sz, i004) mfc7(p005, 0, sz, i005) mfc7(p006, 0, sz, i006) mfc7(p007, 0, sz, i007) /* Initializing the Package with IRefs */ mfc8(p000, p001, 0, nm2, nm4, 0, 0) mfc8(p001, p002, 0, nm2, nm4, 0, 0) mfc8(p002, p003, 0, nm2, nm4, 0, 0) mfc8(p003, p004, 0, nm2, nm4, 0, 0) mfc8(p004, p005, 0, nm2, nm4, 0, 0) mfc8(p005, p006, 0, nm2, nm4, 0, 0) mfc8(p006, p007, 0, nm2, nm4, 0, 0) mfc8(p007, p006, nm4, nm34, nm4, 0, 0) mfc8(p006, p005, nm4, nm34, nm4, 0, 0) mfc8(p005, p004, nm4, nm34, nm4, 0, 0) mfc8(p004, p003, nm4, nm34, nm4, 0, 0) mfc8(p003, p002, nm4, nm34, nm4, 0, 0) mfc8(p002, p001, nm4, nm34, nm4, 0, 0) mfc8(p001, p000, nm4, nm34, nm4, 0, 0) /* Verifying access to the first parts of Packages through the IRefs */ mfcc(p001, nm2, nm4, i000, 0, 0x028) mfcc(p002, nm2, nm4, i001, 0, 0x029) mfcc(p003, nm2, nm4, i002, 0, 0x02a) mfcc(p004, nm2, nm4, i003, 0, 0x02b) mfcc(p005, nm2, nm4, i004, 0, 0x02c) mfcc(p006, nm2, nm4, i005, 0, 0x02d) mfcc(p007, nm2, nm4, i006, 0, 0x02e) Add(i007, nm4, i007) Add(i006, nm4, i006) Add(i005, nm4, i005) Add(i004, nm4, i004) Add(i003, nm4, i003) Add(i002, nm4, i002) Add(i001, nm4, i001) mfcc(p006, nm34, nm4, i007, 0, 0x02f) mfcc(p005, nm34, nm4, i006, 0, 0x030) mfcc(p004, nm34, nm4, i005, 0, 0x031) mfcc(p003, nm34, nm4, i004, 0, 0x032) mfcc(p002, nm34, nm4, i003, 0, 0x033) mfcc(p001, nm34, nm4, i002, 0, 0x034) mfcc(p000, nm34, nm4, i001, 0, 0x035) } /* * Ring of two-directional references */ Method(mfd5,, Serialized) { Name(sz, 16) // full size of Package Name(nm2, 0) // half-size of Package Name(nm4, 0) // one fourth of size of Package Name(nm34, 0) // three fourth of size of Package Name(p000, Package(sz) {}) Name(p001, Package(sz) {}) Name(p002, Package(sz) {}) Name(p003, Package(sz) {}) Name(p004, Package(sz) {}) Name(p005, Package(sz) {}) Name(p006, Package(sz) {}) Name(p007, Package(sz) {}) Name(i000, 0xabcd0000) Name(i001, 0xabcd0100) Name(i002, 0xabcd0200) Name(i003, 0xabcd0300) Name(i004, 0xabcd0400) Name(i005, 0xabcd0500) Name(i006, 0xabcd0600) Name(i007, 0xabcd0700) Divide(sz, 2, Local0, nm2) Divide(sz, 4, Local0, nm4) Add(nm2, nm4, nm34) /* Initializing Packages with monotone increasing Integers */ mfc7(p000, 0, sz, i000) mfc7(p001, 0, sz, i001) mfc7(p002, 0, sz, i002) mfc7(p003, 0, sz, i003) mfc7(p004, 0, sz, i004) mfc7(p005, 0, sz, i005) mfc7(p006, 0, sz, i006) mfc7(p007, 0, sz, i007) /* Initializing the Package with IRefs */ mfc8(p000, p001, 0, nm2, nm4, 0, 0) mfc8(p001, p002, 0, nm2, nm4, 0, 0) mfc8(p002, p003, 0, nm2, nm4, 0, 0) mfc8(p003, p004, 0, nm2, nm4, 0, 0) mfc8(p004, p005, 0, nm2, nm4, 0, 0) mfc8(p005, p006, 0, nm2, nm4, 0, 0) mfc8(p006, p007, 0, nm2, nm4, 0, 0) mfc8(p007, p000, 0, nm2, nm4, 0, 0) mfc8(p007, p006, nm4, nm34, nm4, 0, 0) mfc8(p006, p005, nm4, nm34, nm4, 0, 0) mfc8(p005, p004, nm4, nm34, nm4, 0, 0) mfc8(p004, p003, nm4, nm34, nm4, 0, 0) mfc8(p003, p002, nm4, nm34, nm4, 0, 0) mfc8(p002, p001, nm4, nm34, nm4, 0, 0) mfc8(p001, p000, nm4, nm34, nm4, 0, 0) mfc8(p000, p007, nm4, nm34, nm4, 0, 0) /* Verifying access to the first parts of Packages through the IRefs */ mfcc(p001, nm2, nm4, i000, 0, 0x036) mfcc(p002, nm2, nm4, i001, 0, 0x037) mfcc(p003, nm2, nm4, i002, 0, 0x038) mfcc(p004, nm2, nm4, i003, 0, 0x039) mfcc(p005, nm2, nm4, i004, 0, 0x03a) mfcc(p006, nm2, nm4, i005, 0, 0x03b) mfcc(p007, nm2, nm4, i006, 0, 0x03c) mfcc(p000, nm2, nm4, i007, 0, 0x03d) Add(i007, nm4, i007) Add(i006, nm4, i006) Add(i005, nm4, i005) Add(i004, nm4, i004) Add(i003, nm4, i003) Add(i002, nm4, i002) Add(i001, nm4, i001) Add(i000, nm4, i000) mfcc(p006, nm34, nm4, i007, 0, 0x03e) mfcc(p005, nm34, nm4, i006, 0, 0x03f) mfcc(p004, nm34, nm4, i005, 0, 0x040) mfcc(p003, nm34, nm4, i004, 0, 0x041) mfcc(p002, nm34, nm4, i003, 0, 0x042) mfcc(p001, nm34, nm4, i002, 0, 0x043) mfcc(p000, nm34, nm4, i001, 0, 0x044) mfcc(p007, nm34, nm4, i000, 0, 0x045) } /* * Web of references */ Method(mfd6,, Serialized) { Name(sz, 32) // full size of Package Name(prt, 16) // number of different parts Name(nm16, 0) // 1/16 of size Name(i1, 0) // 1/16 of size Name(i2, 0) // 2/16 of size Name(i3, 0) Name(i4, 0) Name(i5, 0) Name(i6, 0) Name(i8, 0) Name(i9, 0) Name(i10, 0) Name(i11, 0) Name(i12, 0) Name(i13, 0) Name(i14, 0) Name(p000, Package(sz) {}) Name(p001, Package(sz) {}) Name(p002, Package(sz) {}) Name(p003, Package(sz) {}) Name(p004, Package(sz) {}) Name(p005, Package(sz) {}) Name(p006, Package(sz) {}) Name(p007, Package(sz) {}) Name(i000, 0xabcd0000) Name(i001, 0xabcd0100) Name(i002, 0xabcd0200) Name(i003, 0xabcd0300) Name(i004, 0xabcd0400) Name(i005, 0xabcd0500) Name(i006, 0xabcd0600) Name(i007, 0xabcd0700) Divide(sz, prt, Local0, nm16) Store(nm16, i1) Multiply(nm16, 2, i2) Multiply(nm16, 3, i3) Multiply(nm16, 4, i4) Multiply(nm16, 5, i5) Multiply(nm16, 6, i6) Multiply(nm16, 8, i8) Multiply(nm16, 9, i9) Multiply(nm16, 10, i10) Multiply(nm16, 11, i11) Multiply(nm16, 12, i12) Multiply(nm16, 13, i13) Multiply(nm16, 14, i14) /* Initializing full Packages with monotone increasing Integers */ mfc7(p000, 0, sz, i000) mfc7(p001, 0, sz, i001) mfc7(p002, 0, sz, i002) mfc7(p003, 0, sz, i003) mfc7(p004, 0, sz, i004) mfc7(p005, 0, sz, i005) mfc7(p006, 0, sz, i006) mfc7(p007, 0, sz, i007) /* Initializing the Package with IRefs */ /* Generate two-directional ring of references */ mfc8(p000, p001, 0, i8, nm16, 0, 0) mfc8(p001, p002, 0, i8, nm16, 0, 0) mfc8(p002, p003, 0, i8, nm16, 0, 0) mfc8(p003, p004, 0, i8, nm16, 0, 0) mfc8(p004, p005, 0, i8, nm16, 0, 0) mfc8(p005, p006, 0, i8, nm16, 0, 0) mfc8(p006, p007, 0, i8, nm16, 0, 0) mfc8(p007, p000, 0, i8, nm16, 0, 0) mfc8(p007, p006, i1, i9, nm16, 0, 0) mfc8(p006, p005, i1, i9, nm16, 0, 0) mfc8(p005, p004, i1, i9, nm16, 0, 0) mfc8(p004, p003, i1, i9, nm16, 0, 0) mfc8(p003, p002, i1, i9, nm16, 0, 0) mfc8(p002, p001, i1, i9, nm16, 0, 0) mfc8(p001, p000, i1, i9, nm16, 0, 0) mfc8(p000, p007, i1, i9, nm16, 0, 0) /* * Join all other packages * (two directions for each two points) */ mfc8(p002, p000, i2, i10, nm16, 0, 0) mfc8(p003, p000, i3, i11, nm16, 0, 0) mfc8(p004, p000, i4, i12, nm16, 0, 0) mfc8(p005, p000, i5, i13, nm16, 0, 0) mfc8(p006, p000, i6, i14, nm16, 0, 0) mfc8(p003, p001, i3, i11, nm16, 0, 0) mfc8(p004, p001, i4, i12, nm16, 0, 0) mfc8(p005, p001, i5, i13, nm16, 0, 0) mfc8(p006, p001, i6, i14, nm16, 0, 0) mfc8(p007, p001, i2, i10, nm16, 0, 0) mfc8(p004, p002, i4, i12, nm16, 0, 0) mfc8(p005, p002, i5, i13, nm16, 0, 0) mfc8(p006, p002, i6, i14, nm16, 0, 0) mfc8(p007, p002, i2, i10, nm16, 0, 0) mfc8(p000, p002, i3, i11, nm16, 0, 0) mfc8(p005, p003, i5, i13, nm16, 0, 0) mfc8(p006, p003, i6, i14, nm16, 0, 0) mfc8(p007, p003, i2, i10, nm16, 0, 0) mfc8(p000, p003, i3, i11, nm16, 0, 0) mfc8(p001, p003, i4, i12, nm16, 0, 0) mfc8(p006, p004, i6, i14, nm16, 0, 0) mfc8(p007, p004, i2, i10, nm16, 0, 0) mfc8(p000, p004, i3, i11, nm16, 0, 0) mfc8(p001, p004, i4, i12, nm16, 0, 0) mfc8(p002, p004, i5, i13, nm16, 0, 0) mfc8(p007, p005, i2, i10, nm16, 0, 0) mfc8(p000, p005, i3, i11, nm16, 0, 0) mfc8(p001, p005, i4, i12, nm16, 0, 0) mfc8(p002, p005, i5, i13, nm16, 0, 0) mfc8(p003, p005, i6, i14, nm16, 0, 0) mfc8(p000, p006, i3, i11, nm16, 0, 0) mfc8(p001, p006, i4, i12, nm16, 0, 0) mfc8(p002, p006, i5, i13, nm16, 0, 0) mfc8(p003, p006, i6, i14, nm16, 0, 0) mfc8(p004, p006, i2, i10, nm16, 0, 0) mfc8(p001, p007, i4, i12, nm16, 0, 0) mfc8(p002, p007, i5, i13, nm16, 0, 0) mfc8(p003, p007, i6, i14, nm16, 0, 0) mfc8(p004, p007, i2, i10, nm16, 0, 0) mfc8(p005, p007, i3, i11, nm16, 0, 0) /* Verifying access to Packages through the IRefs */ /* Two-directional ring of references */ mfcc(p001, i8, nm16, i000, 0, 0x046) mfcc(p002, i8, nm16, i001, 0, 0x047) mfcc(p003, i8, nm16, i002, 0, 0x048) mfcc(p004, i8, nm16, i003, 0, 0x049) mfcc(p005, i8, nm16, i004, 0, 0x04a) mfcc(p006, i8, nm16, i005, 0, 0x04b) mfcc(p007, i8, nm16, i006, 0, 0x04c) mfcc(p000, i8, nm16, i007, 0, 0x04d) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p006, i9, nm16, i007, 0, 0x04e) mfcc(p005, i9, nm16, i006, 0, 0x04f) mfcc(p004, i9, nm16, i005, 0, 0x050) mfcc(p003, i9, nm16, i004, 0, 0x051) mfcc(p002, i9, nm16, i003, 0, 0x052) mfcc(p001, i9, nm16, i002, 0, 0x053) mfcc(p000, i9, nm16, i001, 0, 0x054) mfcc(p007, i9, nm16, i000, 0, 0x055) /* Verify other references */ Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i10, nm16, i002, 0, 0x056) mfcc(p001, i10, nm16, i007, 0, 0x057) mfcc(p002, i10, nm16, i007, 0, 0x058) mfcc(p003, i10, nm16, i007, 0, 0x059) mfcc(p004, i10, nm16, i007, 0, 0x05a) mfcc(p005, i10, nm16, i007, 0, 0x05b) mfcc(p006, i10, nm16, i004, 0, 0x05c) mfcc(p007, i10, nm16, i004, 0, 0x05d) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i11, nm16, i003, 0, 0x05e) mfcc(p001, i11, nm16, i003, 0, 0x05f) mfcc(p002, i11, nm16, i000, 0, 0x060) mfcc(p003, i11, nm16, i000, 0, 0x061) mfcc(p004, i11, nm16, i000, 0, 0x062) mfcc(p005, i11, nm16, i000, 0, 0x063) mfcc(p006, i11, nm16, i000, 0, 0x064) mfcc(p007, i11, nm16, i005, 0, 0x065) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i12, nm16, i004, 0, 0x066) mfcc(p001, i12, nm16, i004, 0, 0x067) mfcc(p002, i12, nm16, i004, 0, 0x068) mfcc(p003, i12, nm16, i001, 0, 0x069) mfcc(p004, i12, nm16, i001, 0, 0x06a) mfcc(p005, i12, nm16, i001, 0, 0x06b) mfcc(p006, i12, nm16, i001, 0, 0x06c) mfcc(p007, i12, nm16, i001, 0, 0x06d) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i13, nm16, i005, 0, 0x06e) mfcc(p001, i13, nm16, i005, 0, 0x06f) mfcc(p002, i13, nm16, i005, 0, 0x070) mfcc(p003, i13, nm16, i005, 0, 0x071) mfcc(p004, i13, nm16, i002, 0, 0x072) mfcc(p005, i13, nm16, i002, 0, 0x073) mfcc(p006, i13, nm16, i002, 0, 0x074) mfcc(p007, i13, nm16, i002, 0, 0x075) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i14, nm16, i006, 0, 0x076) mfcc(p001, i14, nm16, i006, 0, 0x077) mfcc(p002, i14, nm16, i006, 0, 0x078) mfcc(p003, i14, nm16, i006, 0, 0x079) mfcc(p004, i14, nm16, i006, 0, 0x07a) mfcc(p005, i14, nm16, i003, 0, 0x07b) mfcc(p006, i14, nm16, i003, 0, 0x07c) mfcc(p007, i14, nm16, i003, 0, 0x07d) } /* * Extended Web of references */ Method(mfd7, 7, Serialized) { Name(lpN0, 0) Name(lpC0, 0) Name(sz, 32) // full size of Package Name(prt, 16) // number of different parts Name(nm16, 0) // 1/16 of size Name(i1, 0) // 1/16 of size Name(i2, 0) // 2/16 of size Name(i3, 0) Name(i4, 0) Name(i5, 0) Name(i6, 0) Name(i8, 0) Name(i9, 0) Name(i10, 0) Name(i11, 0) Name(i12, 0) Name(i13, 0) Name(i14, 0) Name(p000, Package(sz) {}) Name(p001, Package(sz) {}) Name(p002, Package(sz) {}) Name(p003, Package(sz) {}) Name(p004, Package(sz) {}) Name(p005, Package(sz) {}) Name(p006, Package(sz) {}) Name(p007, Package(sz) {}) Name(i000, 0xabcd0000) Name(i001, 0xabcd0100) Name(i002, 0xabcd0200) Name(i003, 0xabcd0300) Name(i004, 0xabcd0400) Name(i005, 0xabcd0500) Name(i006, 0xabcd0600) Name(i007, 0xabcd0700) Name(iii0, 0) Name(iii1, 0) Name(iii2, 0) Name(iii3, 0) Name(iii4, 0) Name(iii5, 0) Name(iii6, 0) Name(iii7, 0) Divide(sz, prt, Local0, nm16) Store(nm16, i1) Multiply(nm16, 2, i2) Multiply(nm16, 3, i3) Multiply(nm16, 4, i4) Multiply(nm16, 5, i5) Multiply(nm16, 6, i6) Multiply(nm16, 8, i8) Multiply(nm16, 9, i9) Multiply(nm16, 10, i10) Multiply(nm16, 11, i11) Multiply(nm16, 12, i12) Multiply(nm16, 13, i13) Multiply(nm16, 14, i14) /* Initializing full Packages with monotone increasing Integers */ mfc7(p000, 0, sz, i000) mfc7(p001, 0, sz, i001) mfc7(p002, 0, sz, i002) mfc7(p003, 0, sz, i003) mfc7(p004, 0, sz, i004) mfc7(p005, 0, sz, i005) mfc7(p006, 0, sz, i006) mfc7(p007, 0, sz, i007) /* Initializing the Package with IRefs */ /* Generate two-directional ring of references */ mfc8(p000, p001, 0, i8, nm16, 0, 0) mfc8(p001, p002, 0, i8, nm16, 0, 0) mfc8(p002, p003, 0, i8, nm16, 0, 0) mfc8(p003, p004, 0, i8, nm16, 0, 0) mfc8(p004, p005, 0, i8, nm16, 0, 0) mfc8(p005, p006, 0, i8, nm16, 0, 0) mfc8(p006, p007, 0, i8, nm16, 0, 0) mfc8(p007, p000, 0, i8, nm16, 0, 0) /* Do some initialization repeatedly so writing upon references */ Store(2, lpN0) Store(0, lpC0) While (lpN0) { mfc8(p007, p006, i1, i9, nm16, 0, 0) mfc8(p006, p005, i1, i9, nm16, 0, 0) mfc8(p005, p004, i1, i9, nm16, 0, 0) mfc8(p004, p003, i1, i9, nm16, 0, 0) mfc8(p003, p002, i1, i9, nm16, 0, 0) mfc8(p002, p001, i1, i9, nm16, 0, 0) mfc8(p001, p000, i1, i9, nm16, 0, 0) mfc8(p000, p007, i1, i9, nm16, 0, 0) Decrement(lpN0) Increment(lpC0) } /* Store references additionally to LocalX */ Store(Index(p000, 0), Local0) Store(Index(p000, 0), Local1) Store(Index(p000, 0), Local2) Store(Index(p000, 0), Local3) Store(Index(p000, 0), Local4) Store(Index(p000, 0), Local5) Store(Index(p000, 0), Local6) Store(Index(p000, 0), Local7) /* Re-write */ Store(Index(p000, 0), Local0) Store(Index(p000, 0), Local1) Store(Index(p000, 0), Local2) Store(Index(p000, 0), Local3) Store(Index(p001, 0), Local4) Store(Index(p002, 0), Local5) Store(Index(p003, 0), Local6) Store(Index(p004, 0), Local7) /* Store references additionally to ArgX */ Store(Index(p000, 0), arg0) Store(Index(p000, 0), arg1) Store(Index(p000, 0), arg2) Store(Index(p000, 0), arg3) Store(Index(p000, 0), arg4) Store(Index(p000, 0), arg5) Store(Index(p000, 0), arg6) /* Re-write */ Store(Index(p000, 0), arg0) Store(Index(p000, 0), arg1) Store(Index(p000, 0), arg2) Store(Index(p000, 0), arg3) Store(Index(p001, 0), arg4) Store(Index(p002, 0), arg5) Store(Index(p003, 0), arg6) /* Store references additionally to NamedX */ CopyObject(Index(p000, 0), iii0) CopyObject(Index(p000, 0), iii1) CopyObject(Index(p000, 0), iii2) CopyObject(Index(p000, 0), iii3) CopyObject(Index(p000, 0), iii4) CopyObject(Index(p000, 0), iii5) CopyObject(Index(p000, 0), iii6) CopyObject(Index(p000, 0), iii7) /* Re-write */ CopyObject(Index(p000, 0), iii0) CopyObject(Index(p000, 0), iii1) CopyObject(Index(p000, 0), iii2) CopyObject(Index(p000, 0), iii3) CopyObject(Index(p001, 0), iii4) CopyObject(Index(p002, 0), iii5) CopyObject(Index(p003, 0), iii6) CopyObject(Index(p004, 0), iii7) /* * Join all other packages * (two directions for each two points) */ mfc8(p002, p000, i2, i10, nm16, 0, 0) mfc8(p003, p000, i3, i11, nm16, 0, 0) mfc8(p004, p000, i4, i12, nm16, 0, 0) mfc8(p005, p000, i5, i13, nm16, 0, 0) mfc8(p006, p000, i6, i14, nm16, 0, 0) mfc8(p003, p001, i3, i11, nm16, 0, 0) mfc8(p004, p001, i4, i12, nm16, 0, 0) mfc8(p005, p001, i5, i13, nm16, 0, 0) mfc8(p006, p001, i6, i14, nm16, 0, 0) mfc8(p007, p001, i2, i10, nm16, 0, 0) /* Do some initialization repeatedly so writing upon references */ Store(2, lpN0) Store(0, lpC0) While (lpN0) { mfc8(p004, p002, i4, i12, nm16, 0, 0) mfc8(p005, p002, i5, i13, nm16, 0, 0) mfc8(p006, p002, i6, i14, nm16, 0, 0) mfc8(p007, p002, i2, i10, nm16, 0, 0) mfc8(p000, p002, i3, i11, nm16, 0, 0) mfc8(p005, p003, i5, i13, nm16, 0, 0) mfc8(p006, p003, i6, i14, nm16, 0, 0) mfc8(p007, p003, i2, i10, nm16, 0, 0) mfc8(p000, p003, i3, i11, nm16, 0, 0) mfc8(p001, p003, i4, i12, nm16, 0, 0) mfc8(p006, p004, i6, i14, nm16, 0, 0) mfc8(p007, p004, i2, i10, nm16, 0, 0) mfc8(p000, p004, i3, i11, nm16, 0, 0) mfc8(p001, p004, i4, i12, nm16, 0, 0) mfc8(p002, p004, i5, i13, nm16, 0, 0) mfc8(p007, p005, i2, i10, nm16, 0, 0) mfc8(p000, p005, i3, i11, nm16, 0, 0) mfc8(p001, p005, i4, i12, nm16, 0, 0) mfc8(p002, p005, i5, i13, nm16, 0, 0) mfc8(p003, p005, i6, i14, nm16, 0, 0) Decrement(lpN0) Increment(lpC0) } mfc8(p000, p006, i3, i11, nm16, 0, 0) mfc8(p001, p006, i4, i12, nm16, 0, 0) mfc8(p002, p006, i5, i13, nm16, 0, 0) mfc8(p003, p006, i6, i14, nm16, 0, 0) mfc8(p004, p006, i2, i10, nm16, 0, 0) mfc8(p001, p007, i4, i12, nm16, 0, 0) mfc8(p002, p007, i5, i13, nm16, 0, 0) mfc8(p003, p007, i6, i14, nm16, 0, 0) mfc8(p004, p007, i2, i10, nm16, 0, 0) mfc8(p005, p007, i3, i11, nm16, 0, 0) /* Verifying access to Packages through the IRefs */ /* Two-directional ring of references */ mfcc(p001, i8, nm16, i000, 0, 0x07e) mfcc(p002, i8, nm16, i001, 0, 0x07f) mfcc(p003, i8, nm16, i002, 0, 0x080) mfcc(p004, i8, nm16, i003, 0, 0x081) mfcc(p005, i8, nm16, i004, 0, 0x082) mfcc(p006, i8, nm16, i005, 0, 0x083) mfcc(p007, i8, nm16, i006, 0, 0x084) mfcc(p000, i8, nm16, i007, 0, 0x085) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p006, i9, nm16, i007, 0, 0x086) mfcc(p005, i9, nm16, i006, 0, 0x087) mfcc(p004, i9, nm16, i005, 0, 0x088) mfcc(p003, i9, nm16, i004, 0, 0x089) mfcc(p002, i9, nm16, i003, 0, 0x08a) mfcc(p001, i9, nm16, i002, 0, 0x08b) mfcc(p000, i9, nm16, i001, 0, 0x08c) mfcc(p007, i9, nm16, i000, 0, 0x08d) /* Verify other references */ Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i10, nm16, i002, 0, 0x08e) mfcc(p001, i10, nm16, i007, 0, 0x08f) mfcc(p002, i10, nm16, i007, 0, 0x090) mfcc(p003, i10, nm16, i007, 0, 0x091) mfcc(p004, i10, nm16, i007, 0, 0x092) mfcc(p005, i10, nm16, i007, 0, 0x093) mfcc(p006, i10, nm16, i004, 0, 0x094) mfcc(p007, i10, nm16, i004, 0, 0x095) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i11, nm16, i003, 0, 0x096) mfcc(p001, i11, nm16, i003, 0, 0x097) mfcc(p002, i11, nm16, i000, 0, 0x098) mfcc(p003, i11, nm16, i000, 0, 0x099) mfcc(p004, i11, nm16, i000, 0, 0x09a) mfcc(p005, i11, nm16, i000, 0, 0x09b) mfcc(p006, i11, nm16, i000, 0, 0x09c) mfcc(p007, i11, nm16, i005, 0, 0x09d) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i12, nm16, i004, 0, 0x09e) mfcc(p001, i12, nm16, i004, 0, 0x09f) mfcc(p002, i12, nm16, i004, 0, 0x0a0) mfcc(p003, i12, nm16, i001, 0, 0x0a1) mfcc(p004, i12, nm16, i001, 0, 0x0a2) mfcc(p005, i12, nm16, i001, 0, 0x0a3) mfcc(p006, i12, nm16, i001, 0, 0x0a4) mfcc(p007, i12, nm16, i001, 0, 0x0a5) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i13, nm16, i005, 0, 0x0a6) mfcc(p001, i13, nm16, i005, 0, 0x0a7) mfcc(p002, i13, nm16, i005, 0, 0x0a8) mfcc(p003, i13, nm16, i005, 0, 0x0a9) mfcc(p004, i13, nm16, i002, 0, 0x0aa) mfcc(p005, i13, nm16, i002, 0, 0x0ab) mfcc(p006, i13, nm16, i002, 0, 0x0ac) mfcc(p007, i13, nm16, i002, 0, 0x0ad) Add(i007, nm16, i007) Add(i006, nm16, i006) Add(i005, nm16, i005) Add(i004, nm16, i004) Add(i003, nm16, i003) Add(i002, nm16, i002) Add(i001, nm16, i001) Add(i000, nm16, i000) mfcc(p000, i14, nm16, i006, 0, 0x0ae) mfcc(p001, i14, nm16, i006, 0, 0x0af) mfcc(p002, i14, nm16, i006, 0, 0x0b0) mfcc(p003, i14, nm16, i006, 0, 0x0b1) mfcc(p004, i14, nm16, i006, 0, 0x0b2) mfcc(p005, i14, nm16, i003, 0, 0x0b3) mfcc(p006, i14, nm16, i003, 0, 0x0b4) mfcc(p007, i14, nm16, i003, 0, 0x0b5) mfd8(Local0, 0xabcd0000, 0x0b6) mfd8(Local1, 0xabcd0000, 0x0b7) mfd8(Local2, 0xabcd0000, 0x0b8) mfd8(Local3, 0xabcd0000, 0x0b9) mfd8(Local4, 0xabcd0100, 0x0ba) mfd8(Local5, 0xabcd0200, 0x0bb) mfd8(Local6, 0xabcd0300, 0x0bc) mfd8(Local7, 0xabcd0400, 0x0bd) mfd8(arg0, 0xabcd0000, 0x0be) mfd8(arg1, 0xabcd0000, 0x0bf) mfd8(arg2, 0xabcd0000, 0x0c0) mfd8(arg3, 0xabcd0000, 0x0c1) mfd8(arg4, 0xabcd0100, 0x0c2) mfd8(arg5, 0xabcd0200, 0x0c3) mfd8(arg6, 0xabcd0300, 0x0c4) if (y127) { mfd8(iii0, 0xabcd0000, 0x0c5) mfd8(iii1, 0xabcd0000, 0x0c6) mfd8(iii2, 0xabcd0000, 0x0c7) mfd8(iii3, 0xabcd0000, 0x0c8) mfd8(iii4, 0xabcd0100, 0x0c9) mfd8(iii5, 0xabcd0200, 0x0ca) mfd8(iii6, 0xabcd0300, 0x0cb) mfd8(iii7, 0xabcd0400, 0x0cc) } } Method(mfe9,, Serialized) { Name(p000, Package(101) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f}) Name(p002, Package(102) {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27}) Method(m000,, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p002, 0), Index(p001, 8)) Store(Index(p001, 0), Index(p000, 0)) Store(Index(p002, 0), Index(p000, 8)) Store(Index(p000, 16), Index(p000, 16)) Store(Index(p000, 16), Index(p000, 17)) Store(Index(p000, 18), Index(p000, 19)) Store(Index(p001, 16), Index(p001, 16)) Store(Index(p001, 16), Index(p001, 17)) Store(Index(p001, 18), Index(p001, 19)) Store(Index(p002, 16), Index(p002, 16)) Store(Index(p002, 16), Index(p002, 17)) Store(Index(p002, 18), Index(p002, 19)) } Method(m001,, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(p000, 1), Index(p001, 1)) Store(Index(p002, 1), Index(p001, 9)) Store(Index(p001, 1), Index(p000, 1)) Store(Index(p002, 1), Index(p000, 9)) Store(Index(p000, 20), Index(p000, 20)) Store(Index(p000, 20), Index(p000, 21)) Store(Index(p000, 22), Index(p000, 23)) Store(Index(p001, 20), Index(p001, 20)) Store(Index(p001, 20), Index(p001, 21)) Store(Index(p001, 22), Index(p001, 23)) Store(Index(p002, 20), Index(p002, 20)) Store(Index(p002, 20), Index(p002, 21)) Store(Index(p002, 22), Index(p002, 23)) m000() } Method(m002,, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(p000, 2), Index(p001, 2)) Store(Index(p002, 2), Index(p001, 10)) Store(Index(p001, 2), Index(p000, 2)) Store(Index(p002, 2), Index(p000, 10)) Store(Index(p000, 30), Index(p000, 30)) Store(Index(p000, 30), Index(p000, 31)) Store(Index(p000, 32), Index(p000, 33)) Store(Index(p001, 30), Index(p001, 30)) Store(Index(p001, 30), Index(p001, 31)) Store(Index(p001, 32), Index(p001, 33)) Store(Index(p002, 30), Index(p002, 30)) Store(Index(p002, 30), Index(p002, 31)) Store(Index(p002, 32), Index(p002, 33)) m001() } Method(m003,, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(p000, 3), Index(p001, 3)) Store(Index(p002, 3), Index(p001, 11)) Store(Index(p001, 3), Index(p000, 3)) Store(Index(p002, 3), Index(p000, 11)) Store(Index(p000, 40), Index(p000, 40)) Store(Index(p000, 40), Index(p000, 41)) Store(Index(p000, 42), Index(p000, 43)) Store(Index(p001, 40), Index(p001, 40)) Store(Index(p001, 40), Index(p001, 41)) Store(Index(p001, 42), Index(p001, 43)) Store(Index(p002, 40), Index(p002, 40)) Store(Index(p002, 40), Index(p002, 41)) Store(Index(p002, 42), Index(p002, 43)) m002() } Method(m004,, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(p000, 4), Index(p001, 4)) Store(Index(p002, 4), Index(p001, 12)) Store(Index(p001, 4), Index(p000, 4)) Store(Index(p002, 4), Index(p000, 12)) Store(Index(p000, 50), Index(p000, 50)) Store(Index(p000, 50), Index(p000, 51)) Store(Index(p000, 52), Index(p000, 53)) Store(Index(p001, 50), Index(p001, 50)) Store(Index(p001, 50), Index(p001, 51)) Store(Index(p001, 52), Index(p001, 53)) Store(Index(p002, 50), Index(p002, 50)) Store(Index(p002, 50), Index(p002, 51)) Store(Index(p002, 52), Index(p002, 53)) m003() } Method(m005,, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(p000, 5), Index(p001, 5)) Store(Index(p002, 5), Index(p001, 13)) Store(Index(p001, 5), Index(p000, 5)) Store(Index(p002, 5), Index(p000, 13)) Store(Index(p000, 60), Index(p000, 60)) Store(Index(p000, 60), Index(p000, 61)) Store(Index(p000, 62), Index(p000, 63)) Store(Index(p001, 60), Index(p001, 60)) Store(Index(p001, 60), Index(p001, 61)) Store(Index(p001, 62), Index(p001, 63)) Store(Index(p002, 60), Index(p002, 60)) Store(Index(p002, 60), Index(p002, 61)) Store(Index(p002, 62), Index(p002, 63)) m004() } Method(m006,, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(p000, 6), Index(p001, 6)) Store(Index(p002, 6), Index(p001, 14)) Store(Index(p001, 6), Index(p000, 6)) Store(Index(p002, 6), Index(p000, 14)) Store(Index(p000, 70), Index(p000, 70)) Store(Index(p000, 70), Index(p000, 71)) Store(Index(p000, 72), Index(p000, 73)) Store(Index(p001, 70), Index(p001, 70)) Store(Index(p001, 70), Index(p001, 71)) Store(Index(p001, 72), Index(p001, 73)) Store(Index(p002, 70), Index(p002, 70)) Store(Index(p002, 70), Index(p002, 71)) Store(Index(p002, 72), Index(p002, 73)) m005() } Method(m007,, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(p000, 7), Index(p001, 7)) Store(Index(p002, 7), Index(p001, 15)) Store(Index(p001, 7), Index(p000, 7)) Store(Index(p002, 7), Index(p000, 15)) Store(Index(p000, 80), Index(p000, 80)) Store(Index(p000, 80), Index(p000, 81)) Store(Index(p000, 82), Index(p000, 83)) Store(Index(p001, 80), Index(p001, 80)) Store(Index(p001, 80), Index(p001, 81)) Store(Index(p001, 82), Index(p001, 83)) Store(Index(p002, 80), Index(p002, 80)) Store(Index(p002, 80), Index(p002, 81)) Store(Index(p002, 82), Index(p002, 83)) m006() } m007() m007() } Method(mfea,, Serialized) { Name(p000, Package(101) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f}) Name(p002, Package(102) {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27}) Method(m000, 1, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(arg0, 0), Index(p001, 0)) Store(Index(p002, 0), Index(p001, 8)) Store(Index(p001, 0), Index(arg0, 0)) Store(Index(p002, 0), Index(arg0, 8)) Store(Index(arg0, 16), Index(arg0, 16)) Store(Index(arg0, 16), Index(arg0, 17)) Store(Index(arg0, 18), Index(arg0, 19)) Store(Index(p001, 16), Index(p001, 16)) Store(Index(p001, 16), Index(p001, 17)) Store(Index(p001, 18), Index(p001, 19)) Store(Index(p002, 16), Index(p002, 16)) Store(Index(p002, 16), Index(p002, 17)) Store(Index(p002, 18), Index(p002, 19)) } Method(m001, 1, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(arg0, 1), Index(p001, 1)) Store(Index(p002, 1), Index(p001, 9)) Store(Index(p001, 1), Index(arg0, 1)) Store(Index(p002, 1), Index(arg0, 9)) Store(Index(arg0, 20), Index(arg0, 20)) Store(Index(arg0, 20), Index(arg0, 21)) Store(Index(arg0, 22), Index(arg0, 23)) Store(Index(p001, 20), Index(p001, 20)) Store(Index(p001, 20), Index(p001, 21)) Store(Index(p001, 22), Index(p001, 23)) Store(Index(p002, 20), Index(p002, 20)) Store(Index(p002, 20), Index(p002, 21)) Store(Index(p002, 22), Index(p002, 23)) m000(arg0) } Method(m002, 1, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(arg0, 2), Index(p001, 2)) Store(Index(p002, 2), Index(p001, 10)) Store(Index(p001, 2), Index(arg0, 2)) Store(Index(p002, 2), Index(arg0, 10)) Store(Index(arg0, 30), Index(arg0, 30)) Store(Index(arg0, 30), Index(arg0, 31)) Store(Index(arg0, 32), Index(arg0, 33)) Store(Index(p001, 30), Index(p001, 30)) Store(Index(p001, 30), Index(p001, 31)) Store(Index(p001, 32), Index(p001, 33)) Store(Index(p002, 30), Index(p002, 30)) Store(Index(p002, 30), Index(p002, 31)) Store(Index(p002, 32), Index(p002, 33)) m001(arg0) } Method(m003, 1, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(arg0, 3), Index(p001, 3)) Store(Index(p002, 3), Index(p001, 11)) Store(Index(p001, 3), Index(arg0, 3)) Store(Index(p002, 3), Index(arg0, 11)) Store(Index(arg0, 40), Index(arg0, 40)) Store(Index(arg0, 40), Index(arg0, 41)) Store(Index(arg0, 42), Index(arg0, 43)) Store(Index(p001, 40), Index(p001, 40)) Store(Index(p001, 40), Index(p001, 41)) Store(Index(p001, 42), Index(p001, 43)) Store(Index(p002, 40), Index(p002, 40)) Store(Index(p002, 40), Index(p002, 41)) Store(Index(p002, 42), Index(p002, 43)) m002(arg0) } Method(m004, 1, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(arg0, 4), Index(p001, 4)) Store(Index(p002, 4), Index(p001, 12)) Store(Index(p001, 4), Index(arg0, 4)) Store(Index(p002, 4), Index(arg0, 12)) Store(Index(arg0, 50), Index(arg0, 50)) Store(Index(arg0, 50), Index(arg0, 51)) Store(Index(arg0, 52), Index(arg0, 53)) Store(Index(p001, 50), Index(p001, 50)) Store(Index(p001, 50), Index(p001, 51)) Store(Index(p001, 52), Index(p001, 53)) Store(Index(p002, 50), Index(p002, 50)) Store(Index(p002, 50), Index(p002, 51)) Store(Index(p002, 52), Index(p002, 53)) m003(arg0) } Method(m005, 1, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(arg0, 5), Index(p001, 5)) Store(Index(p002, 5), Index(p001, 13)) Store(Index(p001, 5), Index(arg0, 5)) Store(Index(p002, 5), Index(arg0, 13)) Store(Index(arg0, 60), Index(arg0, 60)) Store(Index(arg0, 60), Index(arg0, 61)) Store(Index(arg0, 62), Index(arg0, 63)) Store(Index(p001, 60), Index(p001, 60)) Store(Index(p001, 60), Index(p001, 61)) Store(Index(p001, 62), Index(p001, 63)) Store(Index(p002, 60), Index(p002, 60)) Store(Index(p002, 60), Index(p002, 61)) Store(Index(p002, 62), Index(p002, 63)) m004(arg0) } Method(m006, 1, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(arg0, 6), Index(p001, 6)) Store(Index(p002, 6), Index(p001, 14)) Store(Index(p001, 6), Index(arg0, 6)) Store(Index(p002, 6), Index(arg0, 14)) Store(Index(arg0, 70), Index(arg0, 70)) Store(Index(arg0, 70), Index(arg0, 71)) Store(Index(arg0, 72), Index(arg0, 73)) Store(Index(p001, 70), Index(p001, 70)) Store(Index(p001, 70), Index(p001, 71)) Store(Index(p001, 72), Index(p001, 73)) Store(Index(p002, 70), Index(p002, 70)) Store(Index(p002, 70), Index(p002, 71)) Store(Index(p002, 72), Index(p002, 73)) m005(arg0) } Method(m007, 1, Serialized) { Name(p001, Package(100) {0,1}) Store(Index(arg0, 7), Index(p001, 7)) Store(Index(p002, 7), Index(p001, 15)) Store(Index(p001, 7), Index(arg0, 7)) Store(Index(p002, 7), Index(arg0, 15)) Store(Index(arg0, 80), Index(arg0, 80)) Store(Index(arg0, 80), Index(arg0, 81)) Store(Index(arg0, 82), Index(arg0, 83)) Store(Index(p001, 80), Index(p001, 80)) Store(Index(p001, 80), Index(p001, 81)) Store(Index(p001, 82), Index(p001, 83)) Store(Index(p002, 80), Index(p002, 80)) Store(Index(p002, 80), Index(p002, 81)) Store(Index(p002, 82), Index(p002, 83)) m006(arg0) } m007(p000) m007(p000) } Method(mfeb,, Serialized) { Name(cmd0, 0) Name(p000, Package(30) {0,1,2,3,4,5,6,7,8,9}) Name(p001, Package(31) {0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79}) Name(p002, Package(32) {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89}) Name(p003, Package(33) {0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99}) Name(p004, Package(34) {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9}) Name(p005, Package(35) {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9}) Name(p006, Package(36) {0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9}) Name(p007, Package(37) {0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9}) Method(m000, 7, Serialized) { Name(pp00, Package(64) {0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7}) Name(pp01, Package(64) {0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7}) Store(Index(arg0, 0), Index(pp01, 8)) Store(Index(arg1, 1), Index(pp01, 9)) Store(Index(arg2, 2), Index(pp01, 10)) Store(Index(arg3, 3), Index(pp01, 11)) Store(Index(arg4, 4), Index(pp01, 12)) Store(Index(arg5, 5), Index(pp01, 13)) Store(Index(arg6, 6), Index(pp01, 14)) Store(Index(pp00, 0), Index(pp01, 15)) Store(Index(pp01, 0), Index(pp01, 16)) Store(Index(pp01, 9), Index(pp01, 17)) Store(Index(p000, 0), Index(pp01, 18)) Store(Index(p001, 0), Index(pp01, 19)) Store(Index(p002, 0), Index(pp01, 20)) Store(Index(p003, 0), Index(pp01, 21)) Store(Index(p004, 0), Index(pp01, 22)) Store(Index(p005, 0), Index(pp01, 23)) Store(Index(p006, 0), Index(pp01, 24)) Store(Index(arg0, 0), Index(pp00, 8)) Store(Index(arg0, 1), Index(pp00, 9)) Store(Index(arg0, 2), Index(pp00, 10)) Store(Index(arg0, 3), Index(pp00, 11)) Store(Index(arg0, 4), Index(pp00, 12)) Store(Index(arg0, 5), Index(pp00, 13)) Store(Index(arg0, 6), Index(pp00, 14)) Store(Index(pp00, 0), Index(pp00, 15)) Store(Index(pp01, 0), Index(pp00, 16)) Store(Index(pp01, 9), Index(pp00, 17)) Store(Index(p000, 0), Index(pp00, 18)) Store(Index(p001, 0), Index(pp00, 19)) Store(Index(p002, 0), Index(pp00, 20)) Store(Index(p003, 0), Index(pp00, 21)) Store(Index(p004, 0), Index(pp00, 22)) Store(Index(p005, 0), Index(pp00, 23)) Store(Index(p006, 0), Index(pp00, 24)) Store(Index(arg0, 0), Index(p000, 8)) Store(Index(arg1, 1), Index(p000, 9)) Store(Index(arg2, 2), Index(p000, 10)) Store(Index(arg3, 3), Index(p000, 11)) Store(Index(arg4, 4), Index(p000, 12)) Store(Index(arg5, 5), Index(p000, 13)) Store(Index(arg6, 6), Index(p000, 14)) Store(Index(pp00, 0), Index(p000, 15)) Store(Index(pp01, 0), Index(p000, 16)) Store(Index(pp01, 9), Index(p000, 17)) Store(Index(p000, 0), Index(p000, 18)) Store(Index(p001, 0), Index(p000, 19)) Store(Index(p002, 0), Index(p000, 20)) Store(Index(p003, 0), Index(p000, 21)) Store(Index(p004, 0), Index(p000, 22)) Store(Index(p005, 0), Index(p000, 23)) Store(Index(p006, 0), Index(p000, 24)) Store(Index(arg0, 0), Index(p001, 8)) Store(Index(arg0, 1), Index(p001, 9)) Store(Index(arg0, 2), Index(p001, 10)) Store(Index(arg0, 3), Index(p001, 11)) Store(Index(arg0, 4), Index(p001, 12)) Store(Index(arg0, 5), Index(p001, 13)) Store(Index(arg0, 6), Index(p001, 14)) Store(Index(pp00, 0), Index(p001, 15)) Store(Index(pp01, 0), Index(p001, 16)) Store(Index(pp01, 9), Index(p001, 17)) Store(Index(p000, 0), Index(p001, 18)) Store(Index(p001, 0), Index(p001, 19)) Store(Index(p002, 0), Index(p001, 20)) Store(Index(p003, 0), Index(p001, 21)) Store(Index(p004, 0), Index(p001, 22)) Store(Index(p005, 0), Index(p001, 23)) Store(Index(p006, 0), Index(p001, 24)) Store(DerefOf(Index(arg0, 3)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DerefOf(Index(arg1, 3)), Local0) if (LNotEqual(Local0, 0x13)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x13) } Store(DerefOf(Index(arg2, 3)), Local0) if (LNotEqual(Local0, 0x23)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x23) } Store(DerefOf(Index(arg3, 3)), Local0) if (LNotEqual(Local0, 0x33)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x33) } Store(DerefOf(Index(arg4, 3)), Local0) if (LNotEqual(Local0, 0x43)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x43) } Store(DerefOf(Index(arg5, 3)), Local0) if (LNotEqual(Local0, 0x53)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x53) } Store(DerefOf(Index(arg6, 3)), Local0) if (LNotEqual(Local0, 0x63)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x63) } Store(DerefOf(Index(p000, 14)), Local0) Store(DerefOf(Local0), Local1) if (LNotEqual(Local1, 0x66)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x66) } if (LEqual(cmd0, 1)) { Store(p007, arg0) Store(p001, arg1) Store(p002, arg2) Store(p003, arg3) Store(p004, arg4) Store(p005, arg5) Store(p006, arg6) Store(Index(arg0, 0), Index(pp01, 8)) Store(Index(arg1, 1), Index(pp01, 9)) Store(Index(arg2, 2), Index(pp01, 10)) Store(Index(arg3, 3), Index(pp01, 11)) Store(Index(arg4, 4), Index(pp01, 12)) Store(Index(arg5, 5), Index(pp01, 13)) Store(Index(arg6, 6), Index(pp01, 14)) Store(Index(pp00, 0), Index(pp01, 15)) Store(Index(pp01, 0), Index(pp01, 16)) Store(Index(pp01, 9), Index(pp01, 17)) Store(Index(p000, 0), Index(pp01, 18)) Store(Index(p001, 0), Index(pp01, 19)) Store(Index(p002, 0), Index(pp01, 20)) Store(Index(p003, 0), Index(pp01, 21)) Store(Index(p004, 0), Index(pp01, 22)) Store(Index(p005, 0), Index(pp01, 23)) Store(Index(p006, 0), Index(pp01, 24)) Store(Index(arg0, 0), Index(pp00, 8)) Store(Index(arg0, 1), Index(pp00, 9)) Store(Index(arg0, 2), Index(pp00, 10)) Store(Index(arg0, 3), Index(pp00, 11)) Store(Index(arg0, 4), Index(pp00, 12)) Store(Index(arg0, 5), Index(pp00, 13)) Store(Index(arg0, 6), Index(pp00, 14)) Store(Index(pp00, 0), Index(pp00, 15)) Store(Index(pp01, 0), Index(pp00, 16)) Store(Index(pp01, 9), Index(pp00, 17)) Store(Index(p000, 0), Index(pp00, 18)) Store(Index(p001, 0), Index(pp00, 19)) Store(Index(p002, 0), Index(pp00, 20)) Store(Index(p003, 0), Index(pp00, 21)) Store(Index(p004, 0), Index(pp00, 22)) Store(Index(p005, 0), Index(pp00, 23)) Store(Index(p006, 0), Index(pp00, 24)) Store(Index(arg0, 0), Index(p000, 8)) Store(Index(arg1, 1), Index(p000, 9)) Store(Index(arg2, 2), Index(p000, 10)) Store(Index(arg3, 3), Index(p000, 11)) Store(Index(arg4, 4), Index(p000, 12)) Store(Index(arg5, 5), Index(p000, 13)) Store(Index(arg6, 6), Index(p000, 14)) Store(Index(pp00, 0), Index(p000, 15)) Store(Index(pp01, 0), Index(p000, 16)) Store(Index(pp01, 9), Index(p000, 17)) Store(Index(p000, 0), Index(p000, 18)) Store(Index(p001, 0), Index(p000, 19)) Store(Index(p002, 0), Index(p000, 20)) Store(Index(p003, 0), Index(p000, 21)) Store(Index(p004, 0), Index(p000, 22)) Store(Index(p005, 0), Index(p000, 23)) Store(Index(p006, 0), Index(p000, 24)) Store(Index(arg0, 0), Index(p001, 8)) Store(Index(arg0, 1), Index(p001, 9)) Store(Index(arg0, 2), Index(p001, 10)) Store(Index(arg0, 3), Index(p001, 11)) Store(Index(arg0, 4), Index(p001, 12)) Store(Index(arg0, 5), Index(p001, 13)) Store(Index(arg0, 6), Index(p001, 14)) Store(Index(pp00, 0), Index(p001, 15)) Store(Index(pp01, 0), Index(p001, 16)) Store(Index(pp01, 9), Index(p001, 17)) Store(Index(p000, 0), Index(p001, 18)) Store(Index(p001, 0), Index(p001, 19)) Store(Index(p002, 0), Index(p001, 20)) Store(Index(p003, 0), Index(p001, 21)) Store(Index(p004, 0), Index(p001, 22)) Store(Index(p005, 0), Index(p001, 23)) Store(Index(p006, 0), Index(p001, 24)) Store(DerefOf(Index(arg0, 3)), Local0) if (LNotEqual(Local0, 0xd3)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xd3) } Store(DerefOf(Index(arg1, 3)), Local0) if (LNotEqual(Local0, 0x73)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x73) } Store(DerefOf(Index(arg2, 3)), Local0) if (LNotEqual(Local0, 0x83)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x83) } Store(DerefOf(Index(arg3, 3)), Local0) if (LNotEqual(Local0, 0x93)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x93) } Store(DerefOf(Index(arg4, 3)), Local0) if (LNotEqual(Local0, 0xa3)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xa3) } Store(DerefOf(Index(arg5, 3)), Local0) if (LNotEqual(Local0, 0xb3)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xb3) } Store(DerefOf(Index(arg6, 3)), Local0) if (LNotEqual(Local0, 0xc3)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xc3) } Store(DerefOf(Index(p000, 14)), Local0) Store(DerefOf(Local0), Local1) if (LNotEqual(Local1, 0xc6)) { err("", zFFF, __LINE__, 0, 0, Local1, 0xc6) } } } Method(m001, 7, Serialized) { Name(pp00, Package(64) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Name(pp01, Package(64) {0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7}) m000(arg0,pp00,arg2,arg3,arg4,arg5,arg6) if (LEqual(cmd0, 0)) { Store(p007, arg0) Store(p001, arg1) Store(p002, arg2) Store(p003, arg3) Store(p004, arg4) Store(p005, arg5) Store(p006, arg6) Store(Index(arg0, 0), Index(pp01, 8)) Store(Index(arg1, 1), Index(pp01, 9)) Store(Index(arg2, 2), Index(pp01, 10)) Store(Index(arg3, 3), Index(pp01, 11)) Store(Index(arg4, 4), Index(pp01, 12)) Store(Index(arg5, 5), Index(pp01, 13)) Store(Index(arg6, 6), Index(pp01, 14)) Store(Index(pp00, 0), Index(pp01, 15)) Store(Index(pp01, 0), Index(pp01, 16)) Store(Index(pp01, 9), Index(pp01, 17)) Store(Index(p000, 0), Index(pp01, 18)) Store(Index(p001, 0), Index(pp01, 19)) Store(Index(p002, 0), Index(pp01, 20)) Store(Index(p003, 0), Index(pp01, 21)) Store(Index(p004, 0), Index(pp01, 22)) Store(Index(p005, 0), Index(pp01, 23)) Store(Index(p006, 0), Index(pp01, 24)) Store(Index(arg0, 0), Index(pp00, 8)) Store(Index(arg0, 1), Index(pp00, 9)) Store(Index(arg0, 2), Index(pp00, 10)) Store(Index(arg0, 3), Index(pp00, 11)) Store(Index(arg0, 4), Index(pp00, 12)) Store(Index(arg0, 5), Index(pp00, 13)) Store(Index(arg0, 6), Index(pp00, 14)) Store(Index(pp00, 0), Index(pp00, 15)) Store(Index(pp01, 0), Index(pp00, 16)) Store(Index(pp01, 9), Index(pp00, 17)) Store(Index(p000, 0), Index(pp00, 18)) Store(Index(p001, 0), Index(pp00, 19)) Store(Index(p002, 0), Index(pp00, 20)) Store(Index(p003, 0), Index(pp00, 21)) Store(Index(p004, 0), Index(pp00, 22)) Store(Index(p005, 0), Index(pp00, 23)) Store(Index(p006, 0), Index(pp00, 24)) Store(Index(arg0, 0), Index(p000, 8)) Store(Index(arg1, 1), Index(p000, 9)) Store(Index(arg2, 2), Index(p000, 10)) Store(Index(arg3, 3), Index(p000, 11)) Store(Index(arg4, 4), Index(p000, 12)) Store(Index(arg5, 5), Index(p000, 13)) Store(Index(arg6, 6), Index(p000, 14)) Store(Index(pp00, 0), Index(p000, 15)) Store(Index(pp01, 0), Index(p000, 16)) Store(Index(pp01, 9), Index(p000, 17)) Store(Index(p000, 0), Index(p000, 18)) Store(Index(p001, 0), Index(p000, 19)) Store(Index(p002, 0), Index(p000, 20)) Store(Index(p003, 0), Index(p000, 21)) Store(Index(p004, 0), Index(p000, 22)) Store(Index(p005, 0), Index(p000, 23)) Store(Index(p006, 0), Index(p000, 24)) Store(Index(arg0, 0), Index(p001, 8)) Store(Index(arg0, 1), Index(p001, 9)) Store(Index(arg0, 2), Index(p001, 10)) Store(Index(arg0, 3), Index(p001, 11)) Store(Index(arg0, 4), Index(p001, 12)) Store(Index(arg0, 5), Index(p001, 13)) Store(Index(arg0, 6), Index(p001, 14)) Store(Index(pp00, 0), Index(p001, 15)) Store(Index(pp01, 0), Index(p001, 16)) Store(Index(pp01, 9), Index(p001, 17)) Store(Index(p000, 0), Index(p001, 18)) Store(Index(p001, 0), Index(p001, 19)) Store(Index(p002, 0), Index(p001, 20)) Store(Index(p003, 0), Index(p001, 21)) Store(Index(p004, 0), Index(p001, 22)) Store(Index(p005, 0), Index(p001, 23)) Store(Index(p006, 0), Index(p001, 24)) Store(DerefOf(Index(arg0, 3)), Local0) if (LNotEqual(Local0, 0xd3)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xd3) } Store(DerefOf(Index(arg1, 3)), Local0) if (LNotEqual(Local0, 0x73)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x73) } Store(DerefOf(Index(arg2, 3)), Local0) if (LNotEqual(Local0, 0x83)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x83) } Store(DerefOf(Index(arg3, 3)), Local0) if (LNotEqual(Local0, 0x93)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x93) } Store(DerefOf(Index(arg4, 3)), Local0) if (LNotEqual(Local0, 0xa3)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xa3) } Store(DerefOf(Index(arg5, 3)), Local0) if (LNotEqual(Local0, 0xb3)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xb3) } Store(DerefOf(Index(arg6, 3)), Local0) if (LNotEqual(Local0, 0xc3)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xc3) } Store(DerefOf(Index(p000, 14)), Local0) Store(DerefOf(Local0), Local1) if (LNotEqual(Local1, 0xc6)) { err("", zFFF, __LINE__, 0, 0, Local1, 0xc6) } } } Method(m002, 7, Serialized) { Name(pp00, Package(64) {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27}) m001(arg0,arg1,pp00,arg3,arg4,arg5,arg6) Store(pp00, arg0) } Method(m003, 7, Serialized) { Name(pp00, Package(64) {0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37}) m002(arg0,arg1,arg2,pp00,arg4,arg5,arg6) Store(pp00, arg0) } Method(m004, 7, Serialized) { Name(pp00, Package(64) {0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47}) m003(arg0,arg1,arg2,arg3,pp00,arg5,arg6) Store(pp00, arg0) } Method(m005, 7, Serialized) { Name(pp00, Package(64) {0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57}) m004(arg0,arg1,arg2,arg3,arg4,pp00,arg6) Store(pp00, arg0) } Method(m006, 7, Serialized) { Name(pp00, Package(64) {0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67}) m005(arg0,arg1,arg2,arg3,arg4,arg5,pp00) Store(pp00, arg0) } Store(0, cmd0) m006(p000,p001,p002,p003,p004,p005,p006) Store(1, cmd0) m006(p000,p001,p002,p003,p004,p005,p006) } Method(mf01,, Serialized) { Name(i000, 0) Name(i001, 1) Name(i002, 2) Name(i003, 3) /* 4-level hierarchy model: 0,1,2,3 */ Name(pp00, Package(8){0x44}) Name(pp10, Package(8){0x1044}) Name(p000, Package() { Package() {0x00,0x01,0x02,0x03,Package(8){0x04},0x05,0x06,0x07}, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, Package() {0x10,0x11,0x12,0x13,Package(8){0x14},0x15,0x16,0x17}, Package() {0x18},0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, Package() {0x10,0x21,0x22,0x23,Package(8){0x24},0x25,0x26,0x27}, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, Package() {0x20,0x31,0x32,0x33,Package(8){0x34},0x35,0x36,0x37}, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, Package() {0x30,0x41,0x42,0x43,pp00,0x45,0x46,0x47}, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, Package() {0x40,0x51,0x52,0x53,Package(8){0x54},0x55,0x56,0x57}, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, Package() {0x50,0x61,0x62,0x63,Package(8){0x64},0x65,0x66,0x67}, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, Package() {0x60,0x71,0x72,0x73,Package(8){0x74},0x75,0x76,0x77}, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, Package() {0x80,0x81,0x82,0x83,Package(8){0x84},0x85,0x86,0x87}, Package() {0x88},0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, Package() {0x90,0x91,0x92,0x93,Package(8){0x94},0x95,0x96,0x97}, Package() {0x98},0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, Package() {0xa0,0xa1,0xa2,0xa3,Package(8){0xa4},0xa5,0xa6,0xa7}, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, Package() {0xb0,0xb1,0xb2,0xb3,Package(8){0xb4},0xb5,0xb6,0xb7}, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, Package() {0xc0,0xc1,0xc2,0xc3,Package(8){0xc4},0xc5,0xc6,0xc7}, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, Package() {0xd0,0xd1,0xd2,0xd3,Package(8){0xd4},0xd5,0xd6,0xd7}, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, Package() {0xe0,0xe1,0xe2,0xe3,Package(8){0xe4},0xe5,0xe6,0xe7}, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, Package() {0xf0,0xf1,0xf2,0xf3,Package(8){0xf4},0xf5,0xf6,0xf7}, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, }) Name(p001, Package() { Package() {0x1000,0x1001,0x1002,0x1003,Package(8){0x1004},0x1005,0x1006,0x1007}, 0x1008,0x1009,0x100a,0x100b,0x100c,0x100d,0x100e,0x100f, Package() {0x1010,0x1011,0x1012,0x1013,Package(8){0x1014},0x1015,0x1016,0x1017}, Package() {0x1018},0x1019,0x101a,0x101b,0x101c,0x101d,0x101e,0x101f, Package() {0x1010,0x1021,0x1022,0x1023,Package(8){0x1024},0x1025,0x1026,0x1027}, 0x1028,0x1029,0x102a,0x102b,0x102c,0x102d,0x102e,0x102f, Package() {0x1020,0x1031,0x1032,0x1033,Package(8){0x1034},0x1035,0x1036,0x1037}, 0x1038,0x1039,0x103a,0x103b,0x103c,0x103d,0x103e,0x103f, Package() {0x1030,0x1041,0x1042,0x1043,pp10,0x1045,0x1046,0x1047}, 0x1048,0x1049,0x104a,0x104b,0x104c,0x104d,0x104e,0x104f, Package() {0x1040,0x1051,0x1052,0x1053,Package(8){0x1054},0x1055,0x1056,0x1057}, 0x1058,0x1059,0x105a,0x105b,0x105c,0x105d,0x105e,0x105f, Package() {0x1050,0x1061,0x1062,0x1063,Package(8){0x1064},0x1065,0x1066,0x1067}, 0x1068,0x1069,0x106a,0x106b,0x106c,0x106d,0x106e,0x106f, Package() {0x1060,0x1071,0x1072,0x1073,Package(8){0x1074},0x1075,0x1076,0x1077}, 0x1078,0x1079,0x107a,0x107b,0x107c,0x107d,0x107e,0x107f, Package() {0x1080,0x1081,0x1082,0x1083,Package(8){0x1084},0x1085,0x1086,0x1087}, Package() {0x1088},0x1089,0x108a,0x108b,0x108c,0x108d,0x108e,0x108f, Package() {0x1090,0x1091,0x1092,0x1093,Package(8){0x1094},0x1095,0x1096,0x1097}, Package() {0x1098},0x1099,0x109a,0x109b,0x109c,0x109d,0x109e,0x109f, Package() {0x10a0,0x10a1,0x10a2,0x10a3,Package(8){0x10a4},0x10a5,0x10a6,0x10a7}, 0x10a8,0x10a9,0x10aa,0x10ab,0x10ac,0x10ad,0x10ae,0x10af, Package() {0x10b0,0x10b1,0x10b2,0x10b3,Package(8){0x10b4},0x10b5,0x10b6,0x10b7}, 0x10b8,0x10b9,0x10ba,0x10bb,0x10bc,0x10bd,0x10be,0x10bf, Package() {0x10c0,0x10c1,0x10c2,0x10c3,Package(8){0x10c4},0x10c5,0x10c6,0x10c7}, 0x10c8,0x10c9,0x10ca,0x10cb,0x10cc,0x10cd,0x10ce,0x10cf, Package() {0x10d0,0x10d1,0x10d2,0x10d3,Package(8){0x10d4},0x10d5,0x10d6,0x10d7}, 0x10d8,0x10d9,0x10da,0x10db,0x10dc,0x10dd,0x10de,0x10df, Package() {0x10e0,0x10e1,0x10e2,0x10e3,Package(8){0x10e4},0x10e5,0x10e6,0x10e7}, 0x10e8,0x10e9,0x10ea,0x10eb,0x10ec,0x10ed,0x10ee,0x10ef, Package() {0x10f0,0x10f1,0x10f2,0x10f3,Package(8){0x10f4},0x10f5,0x10f6,0x10f7}, 0x10f8,0x10f9,0x10fa,0x10fb,0x10fc,0x10fd,0x10fe,0x10ff, }) /* * Store additionally IRefs into Named. * Test is not correct and completed. * Develop it after Bug 127 resolving. */ Method(m004) { Store(Index(DerefOf(Index(DerefOf(Index(p000, 0)), 4)), 0), Local0) CopyObject(Local0, i000) CopyObject(Index(DerefOf(Index(DerefOf(Index(p001, 0)), 4)), 0), Local0) CopyObject(Local0, i001) m005(i000, 0) m005(i001, 1) /* The same repeatedly */ Store(Index(DerefOf(Index(DerefOf(Index(p000, 0)), 4)), 0), Local0) CopyObject(Local0, i000) CopyObject(Index(DerefOf(Index(DerefOf(Index(p001, 0)), 4)), 0), Local0) CopyObject(Local0, i001) m005(i000, 0) m005(i001, 1) /* Directly by CopyObject */ CopyObject(Index(DerefOf(Index(DerefOf(Index(p000, 0)), 4)), 0), i000) CopyObject(Index(DerefOf(Index(DerefOf(Index(p000, 1)), 4)), 0), i001) m005(i000, 0) m005(i001, 1) } Method(m005, 2) { Store(DerefOf(arg0), Local0) if (LNotEqual(Local0, arg1)) { err("", zFFF, __LINE__, 0, 0, Local0, arg1) } } /* * Store additionally IRefs into LocalX * (Identical to m004). */ Method(m006) { Store(Index(DerefOf(Index(DerefOf(Index(p000, 0)), 4)), 0), Local0) Store(Index(DerefOf(Index(DerefOf(Index(p001, 0)), 4)), 0), Local1) m005(Local0, 0x0004) m005(Local1, 0x1004) /* The same repeatedly */ Store(Index(DerefOf(Index(DerefOf(Index(p000, 0)), 4)), 0), Local0) Store(Index(DerefOf(Index(DerefOf(Index(p001, 0)), 4)), 0), Local1) m005(Local0, 0x0004) m005(Local1, 0x1004) } /* * Store additionally ORef into packages. */ Method(m007, 3, Serialized) { Name(ii00, 0) Name(ii01, 0) Name(ii02, 0) /* ORef to LocalX */ Store(RefOf(Local0), Index(p000, 2)) Store(RefOf(Local1), Index(p000, 3)) Store(RefOf(Local2), Index(p000, 4)) Store(RefOf(Local0), Index(p001, 2)) Store(RefOf(Local1), Index(p001, 3)) Store(RefOf(Local2), Index(p001, 4)) Store(RefOf(Local0), Index(arg0, 5)) Store(RefOf(Local1), Index(arg0, 6)) Store(RefOf(Local2), Index(arg0, 7)) Store(RefOf(Local0), Index(arg1, 5)) Store(RefOf(Local1), Index(arg1, 6)) Store(RefOf(Local2), Index(arg1, 7)) /* ORef to ArgX */ Store(RefOf(arg2), Index(p000, 20)) Store(RefOf(arg2), Index(p000, 21)) Store(RefOf(arg2), Index(p000, 22)) Store(RefOf(arg2), Index(p001, 20)) Store(RefOf(arg2), Index(p001, 21)) Store(RefOf(arg2), Index(p001, 22)) Store(RefOf(arg2), Index(arg0, 23)) Store(RefOf(arg2), Index(arg0, 24)) Store(RefOf(arg2), Index(arg0, 25)) Store(RefOf(arg2), Index(arg1, 23)) Store(RefOf(arg2), Index(arg1, 24)) Store(RefOf(arg2), Index(arg1, 25)) /* ORef to Named */ Store(RefOf(ii00), Index(p000, 29)) Store(RefOf(ii01), Index(p000, 30)) Store(RefOf(ii02), Index(p000, 31)) Store(RefOf(ii00), Index(p001, 29)) Store(RefOf(ii01), Index(p001, 30)) Store(RefOf(ii02), Index(p001, 31)) Store(RefOf(ii00), Index(arg0, 32)) Store(RefOf(ii01), Index(arg0, 33)) Store(RefOf(ii02), Index(arg0, 34)) Store(RefOf(ii00), Index(arg1, 32)) Store(RefOf(ii01), Index(arg1, 33)) Store(RefOf(ii02), Index(arg1, 34)) /* ORef to Named */ Store(RefOf(i000), Index(p000, 39)) Store(RefOf(i001), Index(p000, 40)) Store(RefOf(i002), Index(p000, 41)) Store(RefOf(i000), Index(p001, 39)) Store(RefOf(i001), Index(p001, 40)) Store(RefOf(i002), Index(p001, 41)) Store(RefOf(i000), Index(arg0, 42)) Store(RefOf(i001), Index(arg0, 43)) Store(RefOf(i002), Index(arg0, 44)) Store(RefOf(i000), Index(arg1, 42)) Store(RefOf(i001), Index(arg1, 43)) Store(RefOf(i002), Index(arg1, 44)) } Method(m000, 3) { Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, arg1)), 4)), 0)), Local0) if (LNotEqual(Local0, arg2)) { err("", zFFF, __LINE__, 0, 0, Local0, arg2) } } Method(m001, 3) { Store(arg2, Index(DerefOf(Index(DerefOf(Index(arg0, arg1)), 4)), 0)) } Method(m002, 3) { Store(DerefOf(DerefOf(Index(DerefOf(Index(DerefOf(Index(arg0, arg1)), 4)), 0))), Local0) if (LNotEqual(Local0, arg2)) { err("", zFFF, __LINE__, 0, 0, Local0, arg2) } } Method(m003, 3) { Store(DerefOf(DerefOf(Index(arg0, arg1))), Local0) if (LNotEqual(Local0, arg2)) { err("", zFFF, __LINE__, 0, 0, Local0, arg2) } } m000(p000, 0, 0x0004) m000(p000, 9, 0x0014) m000(p000, 18, 0x0024) m000(p000, 27, 0x0034) m000(p000, 36, 0x0044) m000(p000, 45, 0x0054) m000(p000, 54, 0x0064) m000(p000, 63, 0x0074) m000(p000, 72, 0x0084) m000(p000, 81, 0x0094) m000(p000, 90, 0x00a4) m000(p000, 99, 0x00b4) m000(p000, 108, 0x00c4) m000(p000, 117, 0x00d4) m000(p000, 126, 0x00e4) m000(p000, 135, 0x00f4) m000(p001, 0, 0x1004) m000(p001, 9, 0x1014) m000(p001, 18, 0x1024) m000(p001, 27, 0x1034) m000(p001, 36, 0x1044) m000(p001, 45, 0x1054) m000(p001, 54, 0x1064) m000(p001, 63, 0x1074) m000(p001, 72, 0x1084) m000(p001, 81, 0x1094) m000(p001, 90, 0x10a4) m000(p001, 99, 0x10b4) m000(p001, 108, 0x10c4) m000(p001, 117, 0x10d4) m000(p001, 126, 0x10e4) m000(p001, 135, 0x10f4) /* 3-th level access */ /* Store IRef to element of p000 into element of p001 */ Store(Index(DerefOf(Index(DerefOf(Index(p000, 0)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 72)), 4)), 0)) m002(p001, 72, 0x0004) Store(Index(DerefOf(Index(DerefOf(Index(p000, 9)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 81)), 4)), 0)) m002(p001, 81, 0x0014) Store(Index(DerefOf(Index(DerefOf(Index(p000, 18)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 90)), 4)), 0)) m002(p001, 90, 0x0024) Store(Index(DerefOf(Index(DerefOf(Index(p000, 27)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 99)), 4)), 0)) m002(p001, 99, 0x0034) Store(Index(DerefOf(Index(DerefOf(Index(p000, 36)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 108)), 4)), 0)) m002(p001, 108, 0x0044) Store(Index(DerefOf(Index(DerefOf(Index(p000, 45)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 117)), 4)), 0)) m002(p001, 117, 0x0054) Store(Index(DerefOf(Index(DerefOf(Index(p000, 54)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 126)), 4)), 0)) m002(p001, 126, 0x0064) Store(Index(DerefOf(Index(DerefOf(Index(p000, 63)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 135)), 4)), 0)) m002(p001, 135, 0x0074) /* Store IRef to element of p001 into element of p000 */ Store(Index(DerefOf(Index(DerefOf(Index(p001, 0)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 72)), 4)), 0)) m002(p000, 72, 0x1004) Store(Index(DerefOf(Index(DerefOf(Index(p001, 9)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 81)), 4)), 0)) m002(p000, 81, 0x1014) Store(Index(DerefOf(Index(DerefOf(Index(p001, 18)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 90)), 4)), 0)) m002(p000, 90, 0x1024) Store(Index(DerefOf(Index(DerefOf(Index(p001, 27)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 99)), 4)), 0)) m002(p000, 99, 0x1034) Store(Index(DerefOf(Index(DerefOf(Index(p001, 36)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 108)), 4)), 0)) m002(p000, 108, 0x1044) Store(Index(DerefOf(Index(DerefOf(Index(p001, 45)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 117)), 4)), 0)) m002(p000, 117, 0x1054) Store(Index(DerefOf(Index(DerefOf(Index(p001, 54)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 126)), 4)), 0)) m002(p000, 126, 0x1064) Store(Index(DerefOf(Index(DerefOf(Index(p001, 63)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 135)), 4)), 0)) m002(p000, 135, 0x1074) /* The same repeatedly */ /* Store IRef to element of p000 into element of p001 */ Store(Index(DerefOf(Index(DerefOf(Index(p000, 0)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 72)), 4)), 0)) m002(p001, 72, 0x0004) Store(Index(DerefOf(Index(DerefOf(Index(p000, 9)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 81)), 4)), 0)) m002(p001, 81, 0x0014) Store(Index(DerefOf(Index(DerefOf(Index(p000, 18)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 90)), 4)), 0)) m002(p001, 90, 0x0024) Store(Index(DerefOf(Index(DerefOf(Index(p000, 27)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 99)), 4)), 0)) m002(p001, 99, 0x0034) Store(Index(DerefOf(Index(DerefOf(Index(p000, 36)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 108)), 4)), 0)) m002(p001, 108, 0x0044) Store(Index(DerefOf(Index(DerefOf(Index(p000, 45)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 117)), 4)), 0)) m002(p001, 117, 0x0054) Store(Index(DerefOf(Index(DerefOf(Index(p000, 54)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 126)), 4)), 0)) m002(p001, 126, 0x0064) Store(Index(DerefOf(Index(DerefOf(Index(p000, 63)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p001, 135)), 4)), 0)) m002(p001, 135, 0x0074) /* Store IRef to element of p001 into element of p000 */ Store(Index(DerefOf(Index(DerefOf(Index(p001, 0)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 72)), 4)), 0)) m002(p000, 72, 0x1004) Store(Index(DerefOf(Index(DerefOf(Index(p001, 9)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 81)), 4)), 0)) m002(p000, 81, 0x1014) Store(Index(DerefOf(Index(DerefOf(Index(p001, 18)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 90)), 4)), 0)) m002(p000, 90, 0x1024) Store(Index(DerefOf(Index(DerefOf(Index(p001, 27)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 99)), 4)), 0)) m002(p000, 99, 0x1034) Store(Index(DerefOf(Index(DerefOf(Index(p001, 36)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 108)), 4)), 0)) m002(p000, 108, 0x1044) Store(Index(DerefOf(Index(DerefOf(Index(p001, 45)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 117)), 4)), 0)) m002(p000, 117, 0x1054) Store(Index(DerefOf(Index(DerefOf(Index(p001, 54)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 126)), 4)), 0)) m002(p000, 126, 0x1064) Store(Index(DerefOf(Index(DerefOf(Index(p001, 63)), 4)), 0), Index(DerefOf(Index(DerefOf(Index(p000, 135)), 4)), 0)) m002(p000, 135, 0x1074) /* Restore the initial state of Packages */ m001(p000, 72, 0x0084) m001(p000, 81, 0x0094) m001(p000, 90, 0x00a4) m001(p000, 99, 0x00b4) m001(p000, 108, 0x00c4) m001(p000, 117, 0x00d4) m001(p000, 126, 0x00e4) m001(p000, 135, 0x00f4) m001(p001, 72, 0x1084) m001(p001, 81, 0x1094) m001(p001, 90, 0x10a4) m001(p001, 99, 0x10b4) m001(p001, 108, 0x10c4) m001(p001, 117, 0x10d4) m001(p001, 126, 0x10e4) m001(p001, 135, 0x10f4) /* Check the initial state of Packages */ m000(p000, 0, 0x0004) m000(p000, 9, 0x0014) m000(p000, 18, 0x0024) m000(p000, 27, 0x0034) m000(p000, 36, 0x0044) m000(p000, 45, 0x0054) m000(p000, 54, 0x0064) m000(p000, 63, 0x0074) m000(p000, 72, 0x0084) m000(p000, 81, 0x0094) m000(p000, 90, 0x00a4) m000(p000, 99, 0x00b4) m000(p000, 108, 0x00c4) m000(p000, 117, 0x00d4) m000(p000, 126, 0x00e4) m000(p000, 135, 0x00f4) m000(p001, 0, 0x1004) m000(p001, 9, 0x1014) m000(p001, 18, 0x1024) m000(p001, 27, 0x1034) m000(p001, 36, 0x1044) m000(p001, 45, 0x1054) m000(p001, 54, 0x1064) m000(p001, 63, 0x1074) m000(p001, 72, 0x1084) m000(p001, 81, 0x1094) m000(p001, 90, 0x10a4) m000(p001, 99, 0x10b4) m000(p001, 108, 0x10c4) m000(p001, 117, 0x10d4) m000(p001, 126, 0x10e4) m000(p001, 135, 0x10f4) /* 1-th level access */ /* Store IRef to element of p000 into element of p001 */ Store(Index(p000, 1), Index(p001, 72)) m003(p001, 72, 0x0008) Store(Index(p000, 19), Index(p001, 81)) m003(p001, 81, 0x0028) Store(Index(p000, 28), Index(p001, 90)) m003(p001, 90, 0x0038) Store(Index(p000, 37), Index(p001, 99)) m003(p001, 99, 0x0048) Store(Index(p000, 46), Index(p001, 108)) m003(p001, 108, 0x0058) Store(Index(p000, 55), Index(p001, 117)) m003(p001, 117, 0x0068) Store(Index(p000, 64), Index(p001, 126)) m003(p001, 126, 0x0078) Store(Index(p000, 71), Index(p001, 135)) m003(p001, 135, 0x007f) /* Store IRef to element of p001 into element of p000 */ Store(Index(p001, 1), Index(p000, 72)) m003(p000, 72, 0x1008) Store(Index(p001, 19), Index(p000, 81)) m003(p000, 81, 0x1028) Store(Index(p001, 28), Index(p000, 90)) m003(p000, 90, 0x1038) Store(Index(p001, 37), Index(p000, 99)) m003(p000, 99, 0x1048) Store(Index(p001, 46), Index(p000, 108)) m003(p000, 108, 0x1058) Store(Index(p001, 55), Index(p000, 117)) m003(p000, 117, 0x1068) Store(Index(p001, 64), Index(p000, 126)) m003(p000, 126, 0x1078) Store(Index(p001, 71), Index(p000, 135)) m003(p000, 135, 0x107f) if (y127) { m004() } m006() m007(p000, p001, 0x12345678) } Method(mfca) { SRMT("mfcb") mfcb() SRMT("mfcf") mfcf() SRMT("mfd0") mfd0() SRMT("mfd1") mfd1() SRMT("mfd2") mfd2() SRMT("mfd3") mfd3() SRMT("mfd4") mfd4() SRMT("mfd5") mfd5() SRMT("mfd6") mfd6() SRMT("mfd7") mfd7(0,0,0,0,0,0,0) SRMT("mfe9") mfe9() SRMT("mfea") mfea() SRMT("mfeb") mfeb() SRMT("mf01") mf01() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/MAIN.asl0000700000175000017500000000424614773714151026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B135.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0135/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0135/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/Common.asl0000700000175000017500000021062714773714151027145 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Methods of common use. * * Note: writing to the global objects - nm03, pd12 and pd13 forces * outstanding allocation reports. */ Name(id26, 8) Name(nm03, 0) Name(pd12, Package(Multiply(id26, 2)) {}) Name(pd13, Package(Multiply(id26, 2)) {}) /* * AcpiExec doesn't run the unload of the table have been processed. * Because of that the global objects are not forced to release. Thus, * if nm03, pd12 or pd13 were rewritten by the new objects during the * testing the outstanding allocations are reported. * * To get this known case of outstanding reports the same predictable * view this method could be used after completion of testing to rewrite * nm03, pd12 and pd13 with the same values. * * Nevertheless, these outstandings should be discussed and probably * eliminated by updating of AcpiExec (unload the table). */ Method(mfe8) { mfe7(pd12, Multiply(id26, 2)) mfe7(pd13, Multiply(id26, 2)) Store(0, nm03) } /* * arg0 - Package * arg1 - number of elements in arg0 */ Method(mfe7, 2, Serialized) { Name(lpN0, 0) Name(lpC0, 0) Store(arg1, lpN0) Store(0, lpC0) While (lpN0) { Store(0, Index(arg0, lpC0)) Decrement(lpN0) Increment(lpC0) } } /* * Initializing the Package with the monotone increasing Integers. * * arg0 - Package * arg1 - index of first element to be initialized * arg2 - number of elements to be initialized * arg3 - value to be written into first element (+1 for other) */ Method(mfc7, 4) { While (arg2) { Store(arg3, Index(arg0, arg1)) Increment(arg1) Increment(arg3) Decrement(arg2) } } /* * Initializing the Package with the same Integer. * * arg0 - Package * arg1 - index of first element to be initialized * arg2 - number of elements to be initialized * arg3 - value to be written */ Method(mfcd, 4) { While (arg2) { Store(arg3, Index(arg0, arg1)) Increment(arg1) Decrement(arg2) } } /* * Initializing the Package with IRefs. * * arg0 - (Package), IRefs to elements of this Package * arg1 - (Package), are stored into elements of this Package. * arg2 - first element inside arg0 * arg3 - first element inside arg1 * arg4 - number of elements to be initialized * arg5 - opcode of additional assignments of References (0-12): * - none * - to NamedX * - to LocalX * - to ArgX * * Store(Index(arg0, arg2[, X0]), Index(arg1, arg3[, X1])) * * X0 X1 * * none , none * LocalX , none * ArgX , none * none , LocalX * LocalX , LocalX * ArgX , LocalX * none , ArgX * LocalX , ArgX * (ArgX , ArgX) - not enough arg-variables for this * * ************* exceptions: * NamedX , none * NamedX , LocalX * NamedX , ArgX * none , NamedX * NamedX , NamedX * LocalX , NamedX * ArgX , NamedX * * arg6 - for auxiliary usage */ Method(mfc8, 7, Serialized) { Name(i000, 0) Name(i001, 0) While (arg4) { Switch (ToInteger (arg5)) { /* (none, none) */ Case (0) { Store(Index(arg0, arg2), Index(arg1, arg3)) } /* (LocalX, none) */ Case (1) { Index(arg0, arg2, Local0) Store(Local0, Index(arg1, arg3)) } Case (2) { Store(Index(arg0, arg2, Local0), Index(arg1, arg3)) } /* (ArgX, none) */ Case (3) { Index(arg0, arg2, arg6) Store(arg6, Index(arg1, arg3)) } Case (4) { Store(Index(arg0, arg2, arg6), Index(arg1, arg3)) } /* (none, LocalX) */ Case (5) { Store(Index(arg0, arg2), Index(arg1, arg3, Local0)) } /* (LocalX, LocalX) */ Case (6) { Index(arg0, arg2, Local0) Store(Local0, Index(arg1, arg3, Local1)) } Case (7) { Store(Index(arg0, arg2, Local0), Index(arg1, arg3, Local1)) } /* (ArgX, LocalX) */ Case (8) { Index(arg0, arg2, arg6) Store(arg6, Index(arg1, arg3, Local1)) } Case (9) { Store(Index(arg0, arg2, arg6), Index(arg1, arg3, Local1)) } /* (none, ArgX) */ Case (10) { Store(Index(arg0, arg2), Index(arg1, arg3, arg6)) } /* (LocalX, ArgX) */ Case (11) { Index(arg0, arg2, Local0) Store(Local0, Index(arg1, arg3, arg6)) } Case (12) { Store(Index(arg0, arg2, Local0), Index(arg1, arg3, arg6)) } /* (ArgX, ArgX) */ Default { /* (none, none) */ Store(Index(arg0, arg2), Index(arg1, arg3)) }} Increment(arg2) Increment(arg3) Decrement(arg4) } } /* * Pack parameters for mfc6 * * arg0 - opcode of additional assignments of packages Pkg0 and Pkg1 * arg1 - different type of packages Pkg0 and Pkg1 * arg2 - different type access through the IRefs * arg3 - what to do first * arg4 - opcode of additional assignments of References */ Method(mfc9, 5) { And(arg0, 0x0ff, Local0) And(arg1, 0x0f, Local1) And(arg2, 0x0f, Local2) And(arg3, 0x0f, Local3) ShiftLeft(Local1, 8, Local4) ShiftLeft(Local2, 12, Local5) ShiftLeft(Local3, 16, Local6) Or(Local0, Local4, Local7) Or(Local7, Local5, Local0) Or(Local0, Local6, Local7) And(arg4, 0x0f, Local0) ShiftLeft(Local0, 20, Local1) Or(Local1, Local7, Local0) return (Local0) } /* * Self references. * * Different type packages * * arg0 - Package P0 * arg1 - Package P1 * * arg2 - * * 4. opcode of additional assignments of packages Pkg0 and Pkg1: * Pkg0 (LocalX or ArgX or NamedX) * Pkg1 (LocalX or ArgX or NamedX) * * 0 , , ; , , * * 1 , , Named0; , , Named1 * 2 , Arg5, ; , , Named1 * 3 Loc4, , ; , , Named1 * 4 , , Named0; , Arg6, * 5 , Arg5, ; , Arg6, * 6 Loc4, , ; , Arg6, * 7 , , Named0; Loc5, , * 8 , Arg5, ; Loc5, , * 9 Loc4, , ; Loc5, , * * 10 Arg5 ; Arg5 * 11 Loc4 ; Loc4 * 12 Named0 ; Named0 * * 13 , , Named0; , , * 14 , Arg5, ; , , * 15 Loc4, , ; , , * 16 , , ; , , Named1 * 17 , , ; , Arg6, * 18 , , ; Loc5, , * 1. different type of packages Pkg0 and Pkg1: * Pkg0 (P0 or p000 or pd12) * Pkg1 (P1 or p001 or pd13) * * 0 , , pd12; , , pd13 * 1 , , pd12; , p001, * 2 , , pd12; P1, , * 3 , p000, ; , , pd13 * 4 , p000, ; , p001, * 5 , p000, ; P1, , * 6 P0, , ; , , pd13 * 7 P0, , ; , p001, * 8 P0, , ; P1, , * 9 p000 ; p000 * 10 pd12 ; pd12 * 11 P0 ; P0 * * 2. different type access through the IRefs * 1 - DerefOf() * DerefOf() * 0 - DerefOf(DerefOf()) * * 3. what to do first: * 1 - initializing elements of Pkg to be then accessed by references * 0 - or references to those elements. * * * arg3 - reserved * arg4 - reserved * * arg5 - for auxiliary usage (see comment to "additional assignments") * arg6 - for auxiliary usage (see comment to "additional assignments") */ Method(mfc6, 7, Serialized) { Name(pr00, 0) Name(num, 0) // half-size of Package Name(i000, 0xabcd0000) // value of the first element of Package Name(i001, 0) Name(targ, 0) Name(b000, Buffer(1) {0}) Name(nm00, 0) /* arg2 is divided to these */ Name(AR20, 0) Name(AR21, 0) Name(AR22, 0) Name(AR23, 0) Name(AR24, 0) Name(lpN0, 0) Name(lpC0, 0) Store(id26, num) Name(p000, Package(Multiply(num, 2)) {}) Name(p001, Package(Multiply(num, 2)) {}) CH03("", 0, 0x000, __LINE__, 0) /* Unpack arg2 */ And(arg2, 0x0ff, AR23) ShiftRight(arg2, 8, Local0) And(Local0, 0x0f, AR20) ShiftRight(arg2, 12, Local0) And(Local0, 0x0f, AR21) ShiftRight(arg2, 16, Local0) And(Local0, 0x0f, AR22) ShiftRight(arg2, 20, Local0) And(Local0, 0x0f, AR24) if (pr00) { Store(AR23, b000) Concatenate("mfc6: assign Pkgs ", b000, Local0) Store(AR24, b000) Concatenate(Local0, ", assign Refs ", Local1) Concatenate(Local1, b000, Local0) Store(AR20, b000) Concatenate(Local0, ", Pkg0/Pkg1 ", Local1) Concatenate(Local1, b000, Local0) Store(AR21, b000) Concatenate(Local0, ", IRef access ", Local1) Concatenate(Local1, b000, Local0) Store(AR22, b000) Concatenate(Local0, ", first ", Local1) Concatenate(Local1, b000, Local0) Store(Local0, Debug) } /* Identical calculations for different AR20 below */ Switch (ToInteger (AR23)) { Case (0) { /* AR23: 0 ( , ) */ Switch (ToInteger (AR20)) { Case (0) { /* 0 - (pd12, pd13) */ /* AR22 allows to change order of execution */ if (AR22) { /* * Initializing the first part of Package */ mfc7(pd12, 0, num, i000) } else { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(pd12, pd13, 0, num, num, AR24, 0) } if (AR22) { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(pd12, pd13, 0, num, num, AR24, 0) } else { /* * Initializing the first part of Package */ mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(pd13, Local7) } Case (1) { /* 1 - (pd12, p001) */ if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, p001, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(p001, Local7) } Case (2) { /* 2 - (pd12, P1) */ if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, arg1, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(arg1, Local7) } Case (3) { /* 3 - (p000, pd13) */ if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, pd13, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, pd13, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(pd13, Local7) } Case (4) { /* 4 - (p000, p001) */ if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, p001, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(p001, Local7) } Case (5) { /* 5 - (p000, P1) */ if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, arg1, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(arg1, Local7) } Case (6) { /* 6 - (P0, pd13) */ if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, pd13, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, pd13, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(pd13, Local7) } Case (7) { /* 7 - (P0, p001) */ if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, p001, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(p001, Local7) } Case (8) { /* 8 - (P0, P1) */ if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, arg1, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(arg1, Local7) } Case (9) { /* 9 - (p000, p000) */ if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, p000, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, p000, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(p000, Local7) } Case (10) { /* 10 - (pd12, pd12) */ if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, pd12, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, pd12, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(pd12, Local7) } Case (11) { /* 11 - (P0, P0) */ if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, arg0, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, arg0, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(arg0, Local7) }} } /* Case(0)/Switch(AR23) */ Case (1) { /* AR23: 1 (Named0, Named1) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, nm00) CopyObject(pd13, nm03) mfc7(nm00, 0, num, i000) mfc8(nm00, nm03, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm03, Local7) } Case (1) { CopyObject(pd12, nm00) CopyObject(p001, nm03) mfc8(nm00, nm03, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm03, Local7) } Case (2) { CopyObject(pd12, nm00) CopyObject(arg1, nm03) mfc7(nm00, 0, num, i000) mfc8(nm00, nm03, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm03, Local7) } Case (3) { CopyObject(p000, nm00) CopyObject(pd13, nm03) mfc8(nm00, nm03, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm03, Local7) } Case (4) { CopyObject(p000, nm00) CopyObject(p001, nm03) mfc7(nm00, 0, num, i000) mfc8(nm00, nm03, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm03, Local7) } Case (5) { CopyObject(p000, nm00) CopyObject(arg1, nm03) mfc8(nm00, nm03, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm03, Local7) } Case (6) { CopyObject(arg0, nm00) CopyObject(pd13, nm03) mfc7(nm00, 0, num, i000) mfc8(nm00, nm03, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm03, Local7) } Case (7) { CopyObject(arg0, nm00) CopyObject(p001, nm03) mfc8(nm00, nm03, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm03, Local7) } Case (8) { CopyObject(arg0, nm00) CopyObject(arg1, nm03) mfc7(nm00, 0, num, i000) mfc8(nm00, nm03, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm03, Local7) } Case (9) { CopyObject(p000, nm00) CopyObject(p000, nm03) mfc8(nm00, nm03, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm03, Local7) } Case (10) { CopyObject(pd12, nm00) CopyObject(pd12, nm03) mfc7(nm00, 0, num, i000) mfc8(nm00, nm03, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm03, Local7) } Case (11) { CopyObject(arg0, nm00) CopyObject(arg0, nm03) mfc8(nm00, nm03, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm03, Local7) }} } /* Case(1)/Switch(AR23) */ Case (2) { /* AR23: 2 (arg5, Named1) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, arg5) CopyObject(pd13, nm03) mfc7(arg5, 0, num, i000) mfc8(arg5, nm03, 0, num, num, AR24, 0) Store(arg5, Local6) Store(nm03, Local7) } Case (1) { CopyObject(pd12, arg5) CopyObject(p001, nm03) mfc8(arg5, nm03, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(nm03, Local7) } Case (2) { CopyObject(pd12, arg5) CopyObject(arg1, nm03) mfc7(arg5, 0, num, i000) mfc8(arg5, nm03, 0, num, num, AR24, 0) Store(arg5, Local6) Store(nm03, Local7) } Case (3) { CopyObject(p000, arg5) CopyObject(pd13, nm03) mfc8(arg5, nm03, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(nm03, Local7) } Case (4) { CopyObject(p000, arg5) CopyObject(p001, nm03) mfc7(arg5, 0, num, i000) mfc8(arg5, nm03, 0, num, num, AR24, 0) Store(arg5, Local6) Store(nm03, Local7) } Case (5) { CopyObject(p000, arg5) CopyObject(arg1, nm03) mfc8(arg5, nm03, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(nm03, Local7) } Case (6) { CopyObject(arg0, arg5) CopyObject(pd13, nm03) mfc7(arg5, 0, num, i000) mfc8(arg5, nm03, 0, num, num, AR24, 0) Store(arg5, Local6) Store(nm03, Local7) } Case (7) { CopyObject(arg0, arg5) CopyObject(p001, nm03) mfc8(arg5, nm03, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(nm03, Local7) } Case (8) { CopyObject(arg0, arg5) CopyObject(arg1, nm03) mfc7(arg5, 0, num, i000) mfc8(arg5, nm03, 0, num, num, AR24, 0) Store(arg5, Local6) Store(nm03, Local7) } Case (9) { CopyObject(p000, arg5) CopyObject(p000, nm03) mfc8(arg5, nm03, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(nm03, Local7) } Case (10) { CopyObject(pd12, arg5) CopyObject(pd12, nm03) mfc7(arg5, 0, num, i000) mfc8(arg5, nm03, 0, num, num, AR24, 0) Store(arg5, Local6) Store(nm03, Local7) } Case (11) { CopyObject(arg0, arg5) CopyObject(arg0, nm03) mfc8(arg5, nm03, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(nm03, Local7) }} } /* Case(2)/Switch(AR23) */ Case (3) { /* AR23: 3 (Loc4, Named1) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, Local4) CopyObject(pd13, nm03) mfc7(Local4, 0, num, i000) mfc8(Local4, nm03, 0, num, num, AR24, 0) Store(Local4, Local6) Store(nm03, Local7) } Case (1) { CopyObject(pd12, Local4) CopyObject(p001, nm03) mfc8(Local4, nm03, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(nm03, Local7) } Case (2) { CopyObject(pd12, Local4) CopyObject(arg1, nm03) mfc7(Local4, 0, num, i000) mfc8(Local4, nm03, 0, num, num, AR24, 0) Store(Local4, Local6) Store(nm03, Local7) } Case (3) { CopyObject(p000, Local4) CopyObject(pd13, nm03) mfc8(Local4, nm03, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(nm03, Local7) } Case (4) { CopyObject(p000, Local4) CopyObject(p001, nm03) mfc7(Local4, 0, num, i000) mfc8(Local4, nm03, 0, num, num, AR24, 0) Store(Local4, Local6) Store(nm03, Local7) } Case (5) { CopyObject(p000, Local4) CopyObject(arg1, nm03) mfc8(Local4, nm03, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(nm03, Local7) } Case (6) { CopyObject(arg0, Local4) CopyObject(pd13, nm03) mfc7(Local4, 0, num, i000) mfc8(Local4, nm03, 0, num, num, AR24, 0) Store(Local4, Local6) Store(nm03, Local7) } Case (7) { CopyObject(arg0, Local4) CopyObject(p001, nm03) mfc8(Local4, nm03, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(nm03, Local7) } Case (8) { CopyObject(arg0, Local4) CopyObject(arg1, nm03) mfc7(Local4, 0, num, i000) mfc8(Local4, nm03, 0, num, num, AR24, 0) Store(Local4, Local6) Store(nm03, Local7) } Case (9) { CopyObject(p000, Local4) CopyObject(p000, nm03) mfc8(Local4, nm03, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(nm03, Local7) } Case (10) { CopyObject(pd12, Local4) CopyObject(pd12, nm03) mfc7(Local4, 0, num, i000) mfc8(Local4, nm03, 0, num, num, AR24, 0) Store(Local4, Local6) Store(nm03, Local7) } Case (11) { CopyObject(arg0, Local4) CopyObject(arg0, nm03) mfc8(Local4, nm03, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(nm03, Local7) }} } /* Case(3)/Switch(AR23) */ Case (4) { /* AR23: 4 (Named0, Arg6) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, nm00) CopyObject(pd13, arg6) mfc7(nm00, 0, num, i000) mfc8(nm00, arg6, 0, num, num, AR24, 0) Store(nm00, Local6) Store(arg6, Local7) } Case (1) { CopyObject(pd12, nm00) CopyObject(p001, arg6) mfc8(nm00, arg6, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(arg6, Local7) } Case (2) { CopyObject(pd12, nm00) CopyObject(arg1, arg6) mfc7(nm00, 0, num, i000) mfc8(nm00, arg6, 0, num, num, AR24, 0) Store(nm00, Local6) Store(arg6, Local7) } Case (3) { CopyObject(p000, nm00) CopyObject(pd13, arg6) mfc8(nm00, arg6, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(arg6, Local7) } Case (4) { CopyObject(p000, nm00) CopyObject(p001, arg6) mfc7(nm00, 0, num, i000) mfc8(nm00, arg6, 0, num, num, AR24, 0) Store(nm00, Local6) Store(arg6, Local7) } Case (5) { CopyObject(p000, nm00) CopyObject(arg1, arg6) mfc8(nm00, arg6, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(arg6, Local7) } Case (6) { CopyObject(arg0, nm00) CopyObject(pd13, arg6) mfc7(nm00, 0, num, i000) mfc8(nm00, arg6, 0, num, num, AR24, 0) Store(nm00, Local6) Store(arg6, Local7) } Case (7) { CopyObject(arg0, nm00) CopyObject(p001, arg6) mfc8(nm00, arg6, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(arg6, Local7) } Case (8) { CopyObject(arg0, nm00) CopyObject(arg1, arg6) mfc7(nm00, 0, num, i000) mfc8(nm00, arg6, 0, num, num, AR24, 0) Store(nm00, Local6) Store(arg6, Local7) } Case (9) { CopyObject(p000, nm00) CopyObject(p000, arg6) mfc8(nm00, arg6, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(arg6, Local7) } Case (10) { CopyObject(pd12, nm00) CopyObject(pd12, arg6) mfc7(nm00, 0, num, i000) mfc8(nm00, arg6, 0, num, num, AR24, 0) Store(nm00, Local6) Store(arg6, Local7) } Case (11) { CopyObject(arg0, nm00) CopyObject(arg0, arg6) mfc8(nm00, arg6, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(arg6, Local7) }} } /* Case(4)/Switch(AR23) */ Case (5) { /* AR23: 5 (Arg5, Arg6) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, arg5) CopyObject(pd13, arg6) mfc7(arg5, 0, num, i000) mfc8(arg5, arg6, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg6, Local7) } Case (1) { CopyObject(pd12, arg5) CopyObject(p001, arg6) mfc8(arg5, arg6, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg6, Local7) } Case (2) { CopyObject(pd12, arg5) CopyObject(arg1, arg6) mfc7(arg5, 0, num, i000) mfc8(arg5, arg6, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg6, Local7) } Case (3) { CopyObject(p000, arg5) CopyObject(pd13, arg6) mfc8(arg5, arg6, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg6, Local7) } Case (4) { CopyObject(p000, arg5) CopyObject(p001, arg6) mfc7(arg5, 0, num, i000) mfc8(arg5, arg6, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg6, Local7) } Case (5) { CopyObject(p000, arg5) CopyObject(arg1, arg6) mfc8(arg5, arg6, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg6, Local7) } Case (6) { CopyObject(arg0, arg5) CopyObject(pd13, arg6) mfc7(arg5, 0, num, i000) mfc8(arg5, arg6, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg6, Local7) } Case (7) { CopyObject(arg0, arg5) CopyObject(p001, arg6) mfc8(arg5, arg6, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg6, Local7) } Case (8) { CopyObject(arg0, arg5) CopyObject(arg1, arg6) mfc7(arg5, 0, num, i000) mfc8(arg5, arg6, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg6, Local7) } Case (9) { CopyObject(p000, arg5) CopyObject(p000, arg6) mfc8(arg5, arg6, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg6, Local7) } Case (10) { CopyObject(pd12, arg5) CopyObject(pd12, arg6) mfc7(arg5, 0, num, i000) mfc8(arg5, arg6, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg6, Local7) } Case (11) { CopyObject(arg0, arg5) CopyObject(arg0, arg6) mfc8(arg5, arg6, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg6, Local7) }} } /* Case(5)/Switch(AR23) */ Case (6) { /* AR23: 6 (Loc4, Arg6) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, Local4) CopyObject(pd13, arg6) mfc7(Local4, 0, num, i000) mfc8(Local4, arg6, 0, num, num, AR24, 0) Store(Local4, Local6) Store(arg6, Local7) } Case (1) { CopyObject(pd12, Local4) CopyObject(p001, arg6) mfc8(Local4, arg6, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(arg6, Local7) } Case (2) { CopyObject(pd12, Local4) CopyObject(arg1, arg6) mfc7(Local4, 0, num, i000) mfc8(Local4, arg6, 0, num, num, AR24, 0) Store(Local4, Local6) Store(arg6, Local7) } Case (3) { CopyObject(p000, Local4) CopyObject(pd13, arg6) mfc8(Local4, arg6, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(arg6, Local7) } Case (4) { CopyObject(p000, Local4) CopyObject(p001, arg6) mfc7(Local4, 0, num, i000) mfc8(Local4, arg6, 0, num, num, AR24, 0) Store(Local4, Local6) Store(arg6, Local7) } Case (5) { CopyObject(p000, Local4) CopyObject(arg1, arg6) mfc8(Local4, arg6, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(arg6, Local7) } Case (6) { CopyObject(arg0, Local4) CopyObject(pd13, arg6) mfc7(Local4, 0, num, i000) mfc8(Local4, arg6, 0, num, num, AR24, 0) Store(Local4, Local6) Store(arg6, Local7) } Case (7) { CopyObject(arg0, Local4) CopyObject(p001, arg6) mfc8(Local4, arg6, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(arg6, Local7) } Case (8) { CopyObject(arg0, Local4) CopyObject(arg1, arg6) mfc7(Local4, 0, num, i000) mfc8(Local4, arg6, 0, num, num, AR24, 0) Store(Local4, Local6) Store(arg6, Local7) } Case (9) { CopyObject(p000, Local4) CopyObject(p000, arg6) mfc8(Local4, arg6, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(arg6, Local7) } Case (10) { CopyObject(pd12, Local4) CopyObject(pd12, arg6) mfc7(Local4, 0, num, i000) mfc8(Local4, arg6, 0, num, num, AR24, 0) Store(Local4, Local6) Store(arg6, Local7) } Case (11) { CopyObject(arg0, Local4) CopyObject(arg0, arg6) mfc8(Local4, arg6, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(arg6, Local7) }} } /* Case(6)/Switch(AR23) */ Case (7) { /* AR23: 7 (Named0, Loc5) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, nm00) CopyObject(pd13, Local5) mfc7(nm00, 0, num, i000) mfc8(nm00, Local5, 0, num, num, AR24, 0) Store(nm00, Local6) Store(Local5, Local7) } Case (1) { CopyObject(pd12, nm00) CopyObject(p001, Local5) mfc8(nm00, Local5, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(Local5, Local7) } Case (2) { CopyObject(pd12, nm00) CopyObject(arg1, Local5) mfc7(nm00, 0, num, i000) mfc8(nm00, Local5, 0, num, num, AR24, 0) Store(nm00, Local6) Store(Local5, Local7) } Case (3) { CopyObject(p000, nm00) CopyObject(pd13, Local5) mfc8(nm00, Local5, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(Local5, Local7) } Case (4) { CopyObject(p000, nm00) CopyObject(p001, Local5) mfc7(nm00, 0, num, i000) mfc8(nm00, Local5, 0, num, num, AR24, 0) Store(nm00, Local6) Store(Local5, Local7) } Case (5) { CopyObject(p000, nm00) CopyObject(arg1, Local5) mfc8(nm00, Local5, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(Local5, Local7) } Case (6) { CopyObject(arg0, nm00) CopyObject(pd13, Local5) mfc7(nm00, 0, num, i000) mfc8(nm00, Local5, 0, num, num, AR24, 0) Store(nm00, Local6) Store(Local5, Local7) } Case (7) { CopyObject(arg0, nm00) CopyObject(p001, Local5) mfc8(nm00, Local5, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(Local5, Local7) } Case (8) { CopyObject(arg0, nm00) CopyObject(arg1, Local5) mfc7(nm00, 0, num, i000) mfc8(nm00, Local5, 0, num, num, AR24, 0) Store(nm00, Local6) Store(Local5, Local7) } Case (9) { CopyObject(p000, nm00) CopyObject(p000, Local5) mfc8(nm00, Local5, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(Local5, Local7) } Case (10) { CopyObject(pd12, nm00) CopyObject(pd12, Local5) mfc7(nm00, 0, num, i000) mfc8(nm00, Local5, 0, num, num, AR24, 0) Store(nm00, Local6) Store(Local5, Local7) } Case (11) { CopyObject(arg0, nm00) CopyObject(arg0, Local5) mfc8(nm00, Local5, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(Local5, Local7) }} } /* Case(7)/Switch(AR23) */ Case (8) { /* AR23: 8 (Arg5, Loc5) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, arg5) CopyObject(pd13, Local5) mfc7(arg5, 0, num, i000) mfc8(arg5, Local5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(Local5, Local7) } Case (1) { CopyObject(pd12, arg5) CopyObject(p001, Local5) mfc8(arg5, Local5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(Local5, Local7) } Case (2) { CopyObject(pd12, arg5) CopyObject(arg1, Local5) mfc7(arg5, 0, num, i000) mfc8(arg5, Local5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(Local5, Local7) } Case (3) { CopyObject(p000, arg5) CopyObject(pd13, Local5) mfc8(arg5, Local5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(Local5, Local7) } Case (4) { CopyObject(p000, arg5) CopyObject(p001, Local5) mfc7(arg5, 0, num, i000) mfc8(arg5, Local5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(Local5, Local7) } Case (5) { CopyObject(p000, arg5) CopyObject(arg1, Local5) mfc8(arg5, Local5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(Local5, Local7) } Case (6) { CopyObject(arg0, arg5) CopyObject(pd13, Local5) mfc7(arg5, 0, num, i000) mfc8(arg5, Local5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(Local5, Local7) } Case (7) { CopyObject(arg0, arg5) CopyObject(p001, Local5) mfc8(arg5, Local5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(Local5, Local7) } Case (8) { CopyObject(arg0, arg5) CopyObject(arg1, Local5) mfc7(arg5, 0, num, i000) mfc8(arg5, Local5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(Local5, Local7) } Case (9) { CopyObject(p000, arg5) CopyObject(p000, Local5) mfc8(arg5, Local5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(Local5, Local7) } Case (10) { CopyObject(pd12, arg5) CopyObject(pd12, Local5) mfc7(arg5, 0, num, i000) mfc8(arg5, Local5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(Local5, Local7) } Case (11) { CopyObject(arg0, arg5) CopyObject(arg0, Local5) mfc8(arg5, Local5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(Local5, Local7) }} } /* Case(8)/Switch(AR23) */ Case (9) { /* AR23: 9 (Loc4, Loc5) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, Local4) CopyObject(pd13, Local5) mfc7(Local4, 0, num, i000) mfc8(Local4, Local5, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local5, Local7) } Case (1) { CopyObject(pd12, Local4) CopyObject(p001, Local5) mfc8(Local4, Local5, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local5, Local7) } Case (2) { CopyObject(pd12, Local4) CopyObject(arg1, Local5) mfc7(Local4, 0, num, i000) mfc8(Local4, Local5, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local5, Local7) } Case (3) { CopyObject(p000, Local4) CopyObject(pd13, Local5) mfc8(Local4, Local5, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local5, Local7) } Case (4) { CopyObject(p000, Local4) CopyObject(p001, Local5) mfc7(Local4, 0, num, i000) mfc8(Local4, Local5, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local5, Local7) } Case (5) { CopyObject(p000, Local4) CopyObject(arg1, Local5) mfc8(Local4, Local5, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local5, Local7) } Case (6) { CopyObject(arg0, Local4) CopyObject(pd13, Local5) mfc7(Local4, 0, num, i000) mfc8(Local4, Local5, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local5, Local7) } Case (7) { CopyObject(arg0, Local4) CopyObject(p001, Local5) mfc8(Local4, Local5, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local5, Local7) } Case (8) { CopyObject(arg0, Local4) CopyObject(arg1, Local5) mfc7(Local4, 0, num, i000) mfc8(Local4, Local5, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local5, Local7) } Case (9) { CopyObject(p000, Local4) CopyObject(p000, Local5) mfc8(Local4, Local5, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local5, Local7) } Case (10) { CopyObject(pd12, Local4) CopyObject(pd12, Local5) mfc7(Local4, 0, num, i000) mfc8(Local4, Local5, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local5, Local7) } Case (11) { CopyObject(arg0, Local4) CopyObject(arg0, Local5) mfc8(Local4, Local5, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local5, Local7) }} } /* Case(9)/Switch(AR23) */ Case (10) { /* AR23: 10 (Arg5, Arg5) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, arg5) CopyObject(pd13, arg5) mfc7(arg5, 0, num, i000) mfc8(arg5, arg5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg5, Local7) } Case (1) { CopyObject(pd12, arg5) CopyObject(p001, arg5) mfc8(arg5, arg5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg5, Local7) } Case (2) { CopyObject(pd12, arg5) CopyObject(arg1, arg5) mfc7(arg5, 0, num, i000) mfc8(arg5, arg5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg5, Local7) } Case (3) { CopyObject(p000, arg5) CopyObject(pd13, arg5) mfc8(arg5, arg5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg5, Local7) } Case (4) { CopyObject(p000, arg5) CopyObject(p001, arg5) mfc7(arg5, 0, num, i000) mfc8(arg5, arg5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg5, Local7) } Case (5) { CopyObject(p000, arg5) CopyObject(arg1, arg5) mfc8(arg5, arg5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg5, Local7) } Case (6) { CopyObject(arg0, arg5) CopyObject(pd13, arg5) mfc7(arg5, 0, num, i000) mfc8(arg5, arg5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg5, Local7) } Case (7) { CopyObject(arg0, arg5) CopyObject(p001, arg5) mfc8(arg5, arg5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg5, Local7) } Case (8) { CopyObject(arg0, arg5) CopyObject(arg1, arg5) mfc7(arg5, 0, num, i000) mfc8(arg5, arg5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg5, Local7) } Case (9) { CopyObject(p000, arg5) CopyObject(p000, arg5) mfc8(arg5, arg5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg5, Local7) } Case (10) { CopyObject(pd12, arg5) CopyObject(pd12, arg5) mfc7(arg5, 0, num, i000) mfc8(arg5, arg5, 0, num, num, AR24, 0) Store(arg5, Local6) Store(arg5, Local7) } Case (11) { CopyObject(arg0, arg5) CopyObject(arg0, arg5) mfc8(arg5, arg5, 0, num, num, AR24, 0) mfc7(arg5, 0, num, i000) Store(arg5, Local6) Store(arg5, Local7) }} } /* Case(10)/Switch(AR23) */ Case (11) { /* AR23: 11 (Loc4, Loc4) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, Local4) CopyObject(pd13, Local4) mfc7(Local4, 0, num, i000) mfc8(Local4, Local4, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local4, Local7) } Case (1) { CopyObject(pd12, Local4) CopyObject(p001, Local4) mfc8(Local4, Local4, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local4, Local7) } Case (2) { CopyObject(pd12, Local4) CopyObject(arg1, Local4) mfc7(Local4, 0, num, i000) mfc8(Local4, Local4, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local4, Local7) } Case (3) { CopyObject(p000, Local4) CopyObject(pd13, Local4) mfc8(Local4, Local4, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local4, Local7) } Case (4) { CopyObject(p000, Local4) CopyObject(p001, Local4) mfc7(Local4, 0, num, i000) mfc8(Local4, Local4, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local4, Local7) } Case (5) { CopyObject(p000, Local4) CopyObject(arg1, Local4) mfc8(Local4, Local4, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local4, Local7) } Case (6) { CopyObject(arg0, Local4) CopyObject(pd13, Local4) mfc7(Local4, 0, num, i000) mfc8(Local4, Local4, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local4, Local7) } Case (7) { CopyObject(arg0, Local4) CopyObject(p001, Local4) mfc8(Local4, Local4, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local4, Local7) } Case (8) { CopyObject(arg0, Local4) CopyObject(arg1, Local4) mfc7(Local4, 0, num, i000) mfc8(Local4, Local4, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local4, Local7) } Case (9) { CopyObject(p000, Local4) CopyObject(p000, Local4) mfc8(Local4, Local4, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local4, Local7) } Case (10) { CopyObject(pd12, Local4) CopyObject(pd12, Local4) mfc7(Local4, 0, num, i000) mfc8(Local4, Local4, 0, num, num, AR24, 0) Store(Local4, Local6) Store(Local4, Local7) } Case (11) { CopyObject(arg0, Local4) CopyObject(arg0, Local4) mfc8(Local4, Local4, 0, num, num, AR24, 0) mfc7(Local4, 0, num, i000) Store(Local4, Local6) Store(Local4, Local7) }} } /* Case(11)/Switch(AR23) */ Case (12) { /* AR23: 12 (Named0, Named0) */ Switch (ToInteger (AR20)) { Case (0) { CopyObject(pd12, nm00) CopyObject(pd13, nm00) mfc7(nm00, 0, num, i000) mfc8(nm00, nm00, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm00, Local7) } Case (1) { CopyObject(pd12, nm00) CopyObject(p001, nm00) mfc8(nm00, nm00, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm00, Local7) } Case (2) { CopyObject(pd12, nm00) CopyObject(arg1, nm00) mfc7(nm00, 0, num, i000) mfc8(nm00, nm00, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm00, Local7) } Case (3) { CopyObject(p000, nm00) CopyObject(pd13, nm00) mfc8(nm00, nm00, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm00, Local7) } Case (4) { CopyObject(p000, nm00) CopyObject(p001, nm00) mfc7(nm00, 0, num, i000) mfc8(nm00, nm00, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm00, Local7) } Case (5) { CopyObject(p000, nm00) CopyObject(arg1, nm00) mfc8(nm00, nm00, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm00, Local7) } Case (6) { CopyObject(arg0, nm00) CopyObject(pd13, nm00) mfc7(nm00, 0, num, i000) mfc8(nm00, nm00, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm00, Local7) } Case (7) { CopyObject(arg0, nm00) CopyObject(p001, nm00) mfc8(nm00, nm00, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm00, Local7) } Case (8) { CopyObject(arg0, nm00) CopyObject(arg1, nm00) mfc7(nm00, 0, num, i000) mfc8(nm00, nm00, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm00, Local7) } Case (9) { CopyObject(p000, nm00) CopyObject(p000, nm00) mfc8(nm00, nm00, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm00, Local7) } Case (10) { CopyObject(pd12, nm00) CopyObject(pd12, nm00) mfc7(nm00, 0, num, i000) mfc8(nm00, nm00, 0, num, num, AR24, 0) Store(nm00, Local6) Store(nm00, Local7) } Case (11) { CopyObject(arg0, nm00) CopyObject(arg0, nm00) mfc8(nm00, nm00, 0, num, num, AR24, 0) mfc7(nm00, 0, num, i000) Store(nm00, Local6) Store(nm00, Local7) }} } /* Case(12)/Switch(AR23) */ Case (13) { /* AR23: 13 (Named0, ) */ Switch (ToInteger (AR20)) { Case (0) { /* 0 - (pd12, pd13) */ CopyObject(pd12, nm00) /* AR22 allows to change order of execution */ if (AR22) { /* * Initializing the first part of Package */ mfc7(nm00, 0, num, i000) } else { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(nm00, pd13, 0, num, num, AR24, 0) } if (AR22) { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(nm00, pd13, 0, num, num, AR24, 0) } else { /* * Initializing the first part of Package */ mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(pd13, Local7) } Case (1) { /* 1 - (pd12, p001) */ CopyObject(pd12, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, p001, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(p001, Local7) } Case (2) { /* 2 - (pd12, P1) */ CopyObject(pd12, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, arg1, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(arg1, Local7) } Case (3) { /* 3 - (p000, pd13) */ CopyObject(p000, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, pd13, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, pd13, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(pd13, Local7) } Case (4) { /* 4 - (p000, p001) */ CopyObject(p000, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, p001, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(p001, Local7) } Case (5) { /* 5 - (p000, P1) */ CopyObject(p000, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, arg1, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(arg1, Local7) } Case (6) { /* 6 - (P0, pd13) */ CopyObject(arg0, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, pd13, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, pd13, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(pd13, Local7) } Case (7) { /* 7 - (P0, p001) */ CopyObject(arg0, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, p001, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(p001, Local7) } Case (8) { /* 8 - (P0, P1) */ CopyObject(arg0, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, arg1, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(arg1, Local7) } Case (9) { /* 9 - (p000, p000) */ CopyObject(p000, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, p000, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, p000, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(p000, Local7) } Case (10) { /* 10 - (pd12, pd12) */ CopyObject(pd12, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, pd12, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, pd12, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(pd12, Local7) } Case (11) { /* 11 - (P0, P0) */ CopyObject(arg0, nm00) if (AR22) { mfc7(nm00, 0, num, i000) } else { mfc8(nm00, arg0, 0, num, num, AR24, 0) } if (AR22) { mfc8(nm00, arg0, 0, num, num, AR24, 0) } else { mfc7(nm00, 0, num, i000) } Store(nm00, Local6) Store(arg0, Local7) }} } /* Case(13)/Switch(AR23) */ Case (14) { /* AR23: 14 (Arg5, ) */ Switch (ToInteger (AR20)) { Case (0) { /* 0 - (pd12, pd13) */ CopyObject(pd12, arg5) /* AR22 allows to change order of execution */ if (AR22) { /* * Initializing the first part of Package */ mfc7(arg5, 0, num, i000) } else { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(arg5, pd13, 0, num, num, AR24, 0) } if (AR22) { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(arg5, pd13, 0, num, num, AR24, 0) } else { /* * Initializing the first part of Package */ mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(pd13, Local7) } Case (1) { /* 1 - (pd12, p001) */ CopyObject(pd12, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, p001, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(p001, Local7) } Case (2) { /* 2 - (pd12, P1) */ CopyObject(pd12, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, arg1, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(arg1, Local7) } Case (3) { /* 3 - (p000, pd13) */ CopyObject(p000, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, pd13, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, pd13, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(pd13, Local7) } Case (4) { /* 4 - (p000, p001) */ CopyObject(p000, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, p001, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(p001, Local7) } Case (5) { /* 5 - (p000, P1) */ CopyObject(p000, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, arg1, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(arg1, Local7) } Case (6) { /* 6 - (P0, pd13) */ CopyObject(arg0, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, pd13, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, pd13, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(pd13, Local7) } Case (7) { /* 7 - (P0, p001) */ CopyObject(arg0, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, p001, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(p001, Local7) } Case (8) { /* 8 - (P0, P1) */ CopyObject(arg0, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, arg1, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(arg1, Local7) } Case (9) { /* 9 - (p000, p000) */ CopyObject(p000, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, p000, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, p000, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(p000, Local7) } Case (10) { /* 10 - (pd12, pd12) */ CopyObject(pd12, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, pd12, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, pd12, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(pd12, Local7) } Case (11) { /* 11 - (P0, P0) */ CopyObject(arg0, arg5) if (AR22) { mfc7(arg5, 0, num, i000) } else { mfc8(arg5, arg0, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg5, arg0, 0, num, num, AR24, 0) } else { mfc7(arg5, 0, num, i000) } Store(arg5, Local6) Store(arg0, Local7) }} } /* Case(14)/Switch(AR23) */ Case (15) { /* AR23: 15 (Loc4, ) */ Switch (ToInteger (AR20)) { Case (0) { /* 0 - (pd12, pd13) */ CopyObject(pd12, Local4) /* AR22 allows to change order of execution */ if (AR22) { /* * Initializing the first part of Package */ mfc7(Local4, 0, num, i000) } else { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(Local4, pd13, 0, num, num, AR24, 0) } if (AR22) { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(Local4, pd13, 0, num, num, AR24, 0) } else { /* * Initializing the first part of Package */ mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(pd13, Local7) } Case (1) { /* 1 - (pd12, p001) */ CopyObject(pd12, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, p001, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(p001, Local7) } Case (2) { /* 2 - (pd12, P1) */ CopyObject(pd12, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, arg1, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(arg1, Local7) } Case (3) { /* 3 - (p000, pd13) */ CopyObject(p000, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, pd13, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, pd13, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(pd13, Local7) } Case (4) { /* 4 - (p000, p001) */ CopyObject(p000, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, p001, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(p001, Local7) } Case (5) { /* 5 - (p000, P1) */ CopyObject(p000, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, arg1, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(arg1, Local7) } Case (6) { /* 6 - (P0, pd13) */ CopyObject(arg0, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, pd13, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, pd13, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(pd13, Local7) } Case (7) { /* 7 - (P0, p001) */ CopyObject(arg0, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, p001, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, p001, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(p001, Local7) } Case (8) { /* 8 - (P0, P1) */ CopyObject(arg0, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, arg1, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, arg1, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(arg1, Local7) } Case (9) { /* 9 - (p000, p000) */ CopyObject(p000, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, p000, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, p000, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(p000, Local7) } Case (10) { /* 10 - (pd12, pd12) */ CopyObject(pd12, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, pd12, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, pd12, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(pd12, Local7) } Case (11) { /* 11 - (P0, P0) */ CopyObject(arg0, Local4) if (AR22) { mfc7(Local4, 0, num, i000) } else { mfc8(Local4, arg0, 0, num, num, AR24, 0) } if (AR22) { mfc8(Local4, arg0, 0, num, num, AR24, 0) } else { mfc7(Local4, 0, num, i000) } Store(Local4, Local6) Store(arg0, Local7) }} } /* Case(15)/Switch(AR23) */ Case (16) { /* AR23: 16 ( , Named1) */ Switch (ToInteger (AR20)) { Case (0) { /* 0 - (pd12, pd13) */ CopyObject(pd13, nm03) /* AR22 allows to change order of execution */ if (AR22) { /* * Initializing the first part of Package */ mfc7(pd12, 0, num, i000) } else { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(pd12, nm03, 0, num, num, AR24, 0) } if (AR22) { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(pd12, nm03, 0, num, num, AR24, 0) } else { /* * Initializing the first part of Package */ mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(nm03, Local7) } Case (1) { /* 1 - (pd12, p001) */ CopyObject(p001, nm03) if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, nm03, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(nm03, Local7) } Case (2) { /* 2 - (pd12, P1) */ CopyObject(arg1, nm03) if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, nm03, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(nm03, Local7) } Case (3) { /* 3 - (p000, pd13) */ CopyObject(pd13, nm03) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, nm03, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(nm03, Local7) } Case (4) { /* 4 - (p000, p001) */ CopyObject(p001, nm03) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, nm03, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(nm03, Local7) } Case (5) { /* 5 - (p000, P1) */ CopyObject(arg1, nm03) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, nm03, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(nm03, Local7) } Case (6) { /* 6 - (P0, pd13) */ CopyObject(pd13, nm03) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, nm03, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(nm03, Local7) } Case (7) { /* 7 - (P0, p001) */ CopyObject(p001, nm03) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, nm03, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(nm03, Local7) } Case (8) { /* 8 - (P0, P1) */ CopyObject(arg1, nm03) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, nm03, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(nm03, Local7) } Case (9) { /* 9 - (p000, p000) */ CopyObject(p000, nm03) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, nm03, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(nm03, Local7) } Case (10) { /* 10 - (pd12, pd12) */ CopyObject(pd12, nm03) if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, nm03, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(nm03, Local7) } Case (11) { /* 11 - (P0, P0) */ CopyObject(arg0, nm03) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, nm03, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, nm03, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(nm03, Local7) }} } /* Case(16)/Switch(AR23) */ Case (17) { /* AR23: 17 ( , Arg6) */ Switch (ToInteger (AR20)) { Case (0) { /* 0 - (pd12, pd13) */ CopyObject(pd13, arg6) /* AR22 allows to change order of execution */ if (AR22) { /* * Initializing the first part of Package */ mfc7(pd12, 0, num, i000) } else { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(pd12, arg6, 0, num, num, AR24, 0) } if (AR22) { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(pd12, arg6, 0, num, num, AR24, 0) } else { /* * Initializing the first part of Package */ mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(arg6, Local7) } Case (1) { /* 1 - (pd12, p001) */ CopyObject(p001, arg6) if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, arg6, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(arg6, Local7) } Case (2) { /* 2 - (pd12, P1) */ CopyObject(arg1, arg6) if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, arg6, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(arg6, Local7) } Case (3) { /* 3 - (p000, pd13) */ CopyObject(pd13, arg6) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, arg6, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(arg6, Local7) } Case (4) { /* 4 - (p000, p001) */ CopyObject(p001, arg6) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, arg6, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(arg6, Local7) } Case (5) { /* 5 - (p000, P1) */ CopyObject(arg1, arg6) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, arg6, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(arg6, Local7) } Case (6) { /* 6 - (P0, pd13) */ CopyObject(pd13, arg6) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, arg6, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(arg6, Local7) } Case (7) { /* 7 - (P0, p001) */ CopyObject(p001, arg6) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, arg6, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(arg6, Local7) } Case (8) { /* 8 - (P0, P1) */ CopyObject(arg1, arg6) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, arg6, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(arg6, Local7) } Case (9) { /* 9 - (p000, p000) */ CopyObject(p000, arg6) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, arg6, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(arg6, Local7) } Case (10) { /* 10 - (pd12, pd12) */ CopyObject(pd12, arg6) if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, arg6, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(arg6, Local7) } Case (11) { /* 11 - (P0, P0) */ CopyObject(arg0, arg6) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, arg6, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, arg6, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(arg6, Local7) }} } /* Case(17)/Switch(AR23) */ Case (18) { /* AR23: 18 ( , Loc5) */ Switch (ToInteger (AR20)) { Case (0) { /* 0 - (pd12, pd13) */ CopyObject(pd13, Local5) /* AR22 allows to change order of execution */ if (AR22) { /* * Initializing the first part of Package */ mfc7(pd12, 0, num, i000) } else { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(pd12, Local5, 0, num, num, AR24, 0) } if (AR22) { /* * Initializing the second part of Package with IRefs * to elements of its first part. */ mfc8(pd12, Local5, 0, num, num, AR24, 0) } else { /* * Initializing the first part of Package */ mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(Local5, Local7) } Case (1) { /* 1 - (pd12, p001) */ CopyObject(p001, Local5) if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, Local5, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(Local5, Local7) } Case (2) { /* 2 - (pd12, P1) */ CopyObject(arg1, Local5) if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, Local5, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(Local5, Local7) } Case (3) { /* 3 - (p000, pd13) */ CopyObject(pd13, Local5) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, Local5, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(Local5, Local7) } Case (4) { /* 4 - (p000, p001) */ CopyObject(p001, Local5) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, Local5, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(Local5, Local7) } Case (5) { /* 5 - (p000, P1) */ CopyObject(arg1, Local5) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, Local5, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(Local5, Local7) } Case (6) { /* 6 - (P0, pd13) */ CopyObject(pd13, Local5) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, Local5, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(Local5, Local7) } Case (7) { /* 7 - (P0, p001) */ CopyObject(p001, Local5) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, Local5, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(Local5, Local7) } Case (8) { /* 8 - (P0, P1) */ CopyObject(arg1, Local5) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, Local5, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(Local5, Local7) } Case (9) { /* 9 - (p000, p000) */ CopyObject(p000, Local5) if (AR22) { mfc7(p000, 0, num, i000) } else { mfc8(p000, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(p000, Local5, 0, num, num, AR24, 0) } else { mfc7(p000, 0, num, i000) } Store(p000, Local6) Store(Local5, Local7) } Case (10) { /* 10 - (pd12, pd12) */ CopyObject(pd12, Local5) if (AR22) { mfc7(pd12, 0, num, i000) } else { mfc8(pd12, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(pd12, Local5, 0, num, num, AR24, 0) } else { mfc7(pd12, 0, num, i000) } Store(pd12, Local6) Store(Local5, Local7) } Case (11) { /* 11 - (P0, P0) */ CopyObject(arg0, Local5) if (AR22) { mfc7(arg0, 0, num, i000) } else { mfc8(arg0, Local5, 0, num, num, AR24, 0) } if (AR22) { mfc8(arg0, Local5, 0, num, num, AR24, 0) } else { mfc7(arg0, 0, num, i000) } Store(arg0, Local6) Store(Local5, Local7) }} } /* Case(18)/Switch(AR23) */ } /* Switch(AR23) */ /* * Verifying the contents of Package by * accessing elements of its first part * (monotone increasing Integers) through * the IRefs of its second part. */ mfcc(Local7, num, num, i000, AR21, 0x001) CH03("", 0, 0x002, __LINE__, 0) } /* * Verifying the contents of Package by * accessing elements of its first part * (monotone increasing Integers) through * the IRefs of its second part. * * arg0 - Package to be verified * arg1 - index inside of Package * arg2 - how many elements to check * arg3 - expected value of the first element of Package * arg4 - type of access through the IRefs * arg5 - index of error (inside the file) */ Method(mfcc, 6, Serialized) { Name(lpN0, 0) Name(lpC0, 0) Name(i000, 0) Name(targ, 0) Store(arg2, lpN0) Store(0, lpC0) Store(arg1, targ) Store(arg3, i000) While (lpN0) { Store(Index(arg0, targ), Local0) if (arg4) { Store(DerefOf(Local0), Local1) Store(DerefOf(Local1), Local2) } else { Store(DerefOf(DerefOf(Local0)), Local2) } if (LNotEqual(Local2, i000)) { err("", zFFF, __LINE__, 0, 0, Local2, i000) } Increment(i000) Increment(targ) Decrement(lpN0) Increment(lpC0) } } /* * Verifying the contents of Package by * accessing elements of its first part * through the IRefs of its second part. * All IRefs points to the same element. * * arg0 - Package to be verified * arg1 - index inside of Package * arg2 - how many elements to check * arg3 - expected value of element * arg4 - type of access through the IRefs * arg5 - index of error (inside the file) */ Method(mfce, 6, Serialized) { Name(lpN0, 0) Name(lpC0, 0) Name(targ, 0) Store(arg2, lpN0) Store(0, lpC0) Store(arg1, targ) While (lpN0) { Store(Index(arg0, targ), Local0) if (arg4) { Store(DerefOf(Local0), Local1) Store(DerefOf(Local1), Local2) } else { Store(DerefOf(DerefOf(Local0)), Local2) } if (LNotEqual(Local2, arg3)) { err("", zFFF, __LINE__, 0, 0, Local2, arg3) } Increment(targ) Decrement(lpN0) Increment(lpC0) } } /* * Verifying the contents of value pointed to by Reference. * * arg0 - Index reference * arg1 - expected value of element * arg2 - index of error (inside the file) */ Method(mfd8, 3) { Store(DerefOf(arg0), Local0) if (LNotEqual(Local0, arg1)) { err("", zFFF, __LINE__, 0, 0, Local0, arg1) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0135/GrInvest.asl0000700000175000017500000007206414773714151027457 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Auxiliary tests used during investigating of the problem. * Without verification. * * 0x1 Outstanding allocations because of * AcpiExec doesn't run the unload of the table have been processed. * All they are caused by call to SRMT Method. * * Outstanding: 0x1 allocations after execution. */ Method(mfe6) { Method(m000,, Serialized) { Name(p000, Package(16) {0x40,0x41,0x42,0x43,0x45,0x46,0x47,0x48,0x49,0x4a}) if (1) { Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 9)) Store(Index(p000, 2), Index(p000, 10)) Store(Index(p000, 3), Index(p000, 11)) Store(Index(p000, 4), Index(p000, 12)) Store(Index(p000, 5), Index(p000, 13)) Store(Index(p000, 6), Index(p000, 14)) Store(Index(p000, 7), Index(p000, 15)) } if (1) { Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 0), Index(p000, 9)) Store(Index(p000, 0), Index(p000, 10)) Store(Index(p000, 0), Index(p000, 11)) Store(Index(p000, 0), Index(p000, 12)) Store(Index(p000, 0), Index(p000, 13)) Store(Index(p000, 0), Index(p000, 14)) Store(Index(p000, 0), Index(p000, 15)) } if (1) { Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 1), Index(p000, 8)) Store(Index(p000, 2), Index(p000, 8)) Store(Index(p000, 3), Index(p000, 8)) Store(Index(p000, 4), Index(p000, 8)) Store(Index(p000, 5), Index(p000, 8)) Store(Index(p000, 6), Index(p000, 8)) Store(Index(p000, 7), Index(p000, 8)) } if (1) { Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 0), Index(p000, 8)) Store(Index(p000, 0), Index(p000, 8)) } } Method(m001,, Serialized) { Name(p000, Package() {0x54,0x55,0x56,0x57}) // Name(p001, Package() {1,2,3,4}) Store("----------------------------- 0, p000:", Debug) Store(p000, Debug) Store("----------------------------- 1, Local0 == Store(Index(p000, 0), Local0)", Debug) Store(Index(p000, 0), Local0) Store(Local0, Debug) Store("----------------------------- 2, p000:", Debug) Store(p000, Debug) Store("----------------------------- 3, p000 == Store(Local0, Index(p000, 1)):", Debug) Store(Local0, Index(p000, 1)) Store(p000, Debug) Store("----------------------------- End.", Debug) } Method(m002,, Serialized) { Name(p000, Package() {0x68,0x69,0x6a,0x6b}) Store("-----------------------------", Debug) Store(Index(p000, 1), Local0) Store("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", Debug) Store(Local0, Debug) Store("=============================", Debug) } Method(m003,, Serialized) { Name(p000, Package() {0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77}) Name(p001, Package() {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87}) Name(p002, Package(8) {0x90}) Name(p003, Package() {0xa0,0xa1,0xa2,0xa3}) Name(p004, Package() {0xb0,0xb1,0xb2,0xb3}) Store("----------------------------- 0, p000:", Debug) Store(p000, Debug) Store("----------------------------- 1, IRef to 1-th element of p000 (into Local0):", Debug) Index(p000, 1, Local0) Store(Local0, Debug) Store("----------------------------- 2, p000:", Debug) Store(p000, Debug) Store("----------------------------- 3, IRef to 2-th element of p000 (into Local1):", Debug) Index(p000, 2, Local1) Store(Local1, Debug) Store("----------------------------- 4, p000:", Debug) Store(p000, Debug) Store("----------------------------- 5, IRef to 3-th element of p000 (again into Local1):", Debug) Index(p000, 3, Local1) Store(Local1, Debug) Store("----------------------------- 6, p000:", Debug) Store(p000, Debug) Store("----------------------------- 7, IRef to 4-th element of p000 (into Local2):", Debug) Index(p000, 4, Local2) Store(Local2, Debug) Store("----------------------------- 8, p000:", Debug) Store(p000, Debug) Store("----------------------------- 9, IRef to 4-th element of p000 (into Local3):", Debug) Index(p000, 4, Local3) Store(Local3, Debug) Store("----------------------------- 10, p000:", Debug) Store(p000, Debug) Store("----------------------------- 11, IRef to 1-th element of p001 (into Local4):", Debug) Index(p001, 1, Local4) Store(Local4, Debug) Store("----------------------------- 12, p001:", Debug) Store(p001, Debug) Store("----------------------------- 13, p000:", Debug) Store(p000, Debug) Store("----------------------------- 14, IRef to 1-th element of p001 (Local4) into 5-th element of p000:", Debug) Store(Local4, Index(p000, 5)) Store("----------------------------- 15, p000:", Debug) Store(p000, Debug) Store("----------------------------- 16, p001:", Debug) Store(p001, Debug) ////////////////////////////// Store("----------------------------- 17, IRef to 2-th element of p001 (into Local5):", Debug) Index(p001, 2, Local5) Store(Local5, Debug) Store("----------------------------- 18, p001:", Debug) Store(p001, Debug) Store("----------------------------- 19, p000:", Debug) Store(p000, Debug) Store("----------------------------- 20, IRef to 2-th element of p001 (Local5) into 6-th element of p000:", Debug) Store(Local5, Index(p000, 6)) Store("----------------------------- 21, p001:", Debug) Store(p001, Debug) ////////////////////////////// Store("----------------------------- 22, p000:", Debug) Store(p000, Debug) Store("----------------------------- 23, p000:", Debug) Store(0, Local0) Store(p000, Debug) Store("----------------------------- 24, Local2 == IRef to 4-th element of p000:", Debug) Store(Local2, Debug) ////////////////////////////// Store("----------------------------- 25, p002:", Debug) Store(p002, Debug) Store("----------------------------- 26, p002:", Debug) Store(0x93, Index(p002, 3)) Store(p002, Debug) Store("----------------------------- 27, p002:", Debug) Store(p003, Index(p002, 4)) Store(p002, Debug) Store("----------------------------- 28, p002:", Debug) Store(p004, Index(p002, 6)) Store(p002, Debug) Store("----------------------------- 29, p002:", Debug) Store(p003, Index(p002, 7)) Store(p002, Debug) Store("----------------------------- 30, p003:", Debug) Store(p003, Debug) Store("----------------------------- End.", Debug) } Method(m004,, Serialized) { Name(p000, Package() {0x54,0x55,0x56,0x57}) Store("----------------------------- 0", Debug) Store(Index(p000, 0), Local0) Store("----------------------------- 1", Debug) Store(Local0, Index(p000, 1)) Store("----------------------------- 2", Debug) Store(p000, Debug) Store("----------------------------- End.", Debug) Store(0, Local0) } Method(m005,, Serialized) { Name(p000, Package() {0x54,0x55,0x56,0x57}) Name(p001, Package() {0x64,0x65,0x66,0x67}) Store(Index(p000, 0), Local0) Store(Local0, Index(p001, 1)) Store(p000, Debug) Store(Local0, Debug) } Method(m006,, Serialized) { Name(p000, Package() {0x54,0x55}) Name(p001, Package() {0x54,0x55,0x56,0x57}) Store(Index(p000, 0), Index(p001, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(0x29, Index(p000, 1)) Store(p000, Debug) } Method(m007,, Serialized) { Name(p000, Package(16) {0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57}) Name(p001, Package() {0x54,0x55,0x56,0x57}) Store(Index(p000, 0), Index(p000, 4)) Store(Index(p000, 0), Index(p000, 4)) Store(Index(p000, 1), Index(p000, 4)) Store(Index(p000, 2), Index(p000, 5)) Store(Index(p000, 3), Index(p000, 6)) Store(Index(p000, 4), Index(p000, 7)) Store(Index(p001, 0), Index(p000, 4)) Store(Index(p001, 0), Index(p000, 8)) Store(Index(p001, 0), Index(p000, 8)) Store(Index(p001, 0), Index(p000, 9)) Store(p000, Debug) } Method(m008,, Serialized) { Name(i000, 0xabcd0001) Name(p000, Package() {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f}) Name(p001, Package() {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f}) Store(RefOf(i000), Index(p000, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p001, 0), Index(p000, 1)) } Method(m009,, Serialized) { Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7}) Store(Index(p000, 1), Index(p001, 2)) Store(Index(p001, 3), Index(p000, 4)) Store(Index(p000, 0), Index(p001, 4)) } Method(m00a,, Serialized) { // Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7}) // Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7}) Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb}) Store(0x80, Index(p001, 3)) Store(0x90, Index(p001, 4)) Store(Index(p000, 1), Index(p001, 6)) Store(Index(p000, 2), Index(p001, 7)) Store(Index(p000, 3), Index(p001, 8)) Store(Index(p000, 4), Index(p001, 9)) Store(Index(p000, 5), Index(p001, 10)) Store(Index(p000, 2), Index(p001, 2)) Store(Index(p000, 3), Index(p001, 3)) Store(Index(p000, 4), Index(p001, 4)) Store(p000, Debug) Store(p001, Debug) } Method(m00b,, Serialized) { Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7}) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 1), Index(p001, 1)) Store(Index(p000, 2), Index(p001, 2)) Store(Index(p000, 3), Index(p001, 3)) Store(Index(p000, 4), Index(p001, 4)) Store(Index(p000, 5), Index(p001, 5)) Store(Index(p000, 1), Index(p001, 2)) Store(Index(p001, 3), Index(p000, 4)) Store(p000, Debug) Store(p001, Debug) } Method(m00c,, Serialized) { // Name(i000, 0xabcd0000) // Name(i001, 0xabcd0001) // Name(i002, 0xabcd0002) // Name(i003, 0xabcd0003) Name(p000, Package() {0xa0,0xa1,0xa2}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4}) Name(p002, Package(16) {0xc0,0xc1,0xc2}) Store(Index(p001, 0), Index(p002, 0)) Store(Index(p001, 0), Index(p002, 1)) Store(Index(p001, 0), Index(p002, 2)) Store(Index(p001, 0), Index(p002, 3)) Store(Index(p001, 0), Index(p002, 4)) Store(Index(p001, 0), Index(p002, 5)) Store(Index(p001, 0), Index(p002, 6)) Store(Index(p001, 0), Index(p002, 7)) Store(Index(p001, 0), Index(p002, 8)) Store(Index(p001, 0), Index(p002, 9)) Store(Index(p001, 0), Index(p002, 10)) Store(Index(p001, 0), Index(p002, 11)) Store(Index(p001, 0), Index(p002, 12)) Store(Index(p000, 1), Index(p001, 3)) Store(Index(p000, 2), Index(p001, 4)) // Add(Local0, Local1, Local7) // Add(Local2, Local3, Local7) // Add(Local4, Local5, Local7) // Add(Local6, Local7, Local7) // Return (Local7) } Method(m00d,, Serialized) { Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc}) Store(Index(p001, 1), Index(p000, 2)) Store(Index(p000, 3), Index(p001, 4)) Store(Index(p000, 5), Index(p000, 6)) Store(Index(p000, 7), Index(p000, 8)) Store(Index(p001, 9), Index(p001, 10)) Store(p000, Debug) Store(p001, Debug) } Method(m00e,, Serialized) { Name(p000, Package() {0x54,0x55,0x56,0x57}) Name(p001, Package() {0x64,0x65,0x66,0x67}) Store(Index(p000, 0), Local0) Store(Local0, Index(p001, 1)) Store(Index(p000, 0), Index(p000, 1)) } Method(m00f,, Serialized) { Name(p000, Package() {0x54,0x55,0x56,0x57}) Store(Index(p000, 0), Local0) Store(Local0, Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) } Method(m010,, Serialized) { Name(p000, Package() {0x54,0x55,0x56,0x57}) Store(Index(p000, 0), Index(p000, 0)) } Method(m011,, Serialized) { Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7}) Store(Index(p001, 0), Index(p000, 1)) Store(Index(p000, 2), Index(p000, 3)) Store(Index(p000, 4), Index(p000, 5)) Store(Index(p001, 6), Index(p001, 7)) } Method(m012,, Serialized) { Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7}) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 1), Index(p001, 1)) Store(Index(p000, 2), Index(p001, 2)) Store(Index(p000, 3), Index(p001, 3)) Store(Index(p000, 4), Index(p001, 4)) Store(Index(p000, 5), Index(p001, 5)) Store(Index(p000, 1), Index(p001, 2)) Store(Index(p001, 3), Index(p000, 4)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(p000, Debug) Store(p001, Debug) } Method(m013,, Serialized) { Name(p000, Package() {0xa0,0xa1}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4}) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) } Method(m014,, Serialized) { Name(p000, Package() { 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, }) Name(p001, Package() { 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, }) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p001, 1), Index(p000, 1)) Store(Index(p000, 2), Index(p001, 2)) Store(Index(p001, 3), Index(p000, 3)) Store(Index(p000, 4), Index(p001, 4)) Store(Index(p001, 5), Index(p000, 5)) Store(Index(p000, 6), Index(p001, 6)) Store(Index(p001, 7), Index(p000, 7)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p001, 1), Index(p000, 1)) Store(Index(p001, 1), Index(p000, 1)) Store(Index(p000, 2), Index(p001, 2)) Store(Index(p000, 2), Index(p001, 2)) Store(Index(p001, 3), Index(p000, 3)) Store(Index(p001, 3), Index(p000, 3)) Store(Index(p000, 4), Index(p001, 4)) Store(Index(p000, 4), Index(p001, 4)) Store(Index(p001, 5), Index(p000, 5)) Store(Index(p001, 5), Index(p000, 5)) Store(Index(p000, 6), Index(p001, 6)) Store(Index(p000, 6), Index(p001, 6)) Store(Index(p001, 7), Index(p000, 7)) Store(Index(p001, 7), Index(p000, 7)) Store(Index(p000, 0), Local0) Store(Local0, Index(p001, 0)) Store(Index(p000, 0), Local0) Store(Local0, Index(p001, 0)) } Method(m015,, Serialized) { Name(p000, Package() {0xa0,0xa1,0xa2}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3}) Store(p000, Index(p001, 0)) Store(0xabcd0000, Index(p001, 1)) Store(0xabcd0001, Index(p001, 0)) Store(0xabcd0001, Local0) Store(Local0, Index(p001, 2)) Store(Local0, Index(p001, 0)) Store(Local0, Index(p001, 1)) Store(Local0, Index(p001, 2)) Store(p001, Debug) } Method(m016,, Serialized) { Name(p000, Package() {0xabcd0000}) Name(p001, Package() {0xabcd0001, 0xabcd0002}) CopyObject(p001, p000) Store(p001, Debug) } Method(m017,, Serialized) { Name(p000, Package() {0x20, 0x21}) Name(p001, Package(18) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Method(m000, 1) { Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 1), Index(arg0, 1)) // + self Store(Index(p000, 0), Index(arg0, 0)) arg0 - p000 // Store(Index(arg0, 2), Index(p001, 2)) // Store(Index(arg0, 3), Index(p001, 3)) // Store(Index(arg0, 2), Index(arg1, 2)) // Store(Index(arg0, 3), Index(arg1, 3)) // Store(Index(arg1, 2), Index(arg0, 2)) // Store(Index(arg1, 3), Index(arg0, 3)) // ................. } Method(m001, 1) { m000(arg0) } Method(m002, 1) { m001(arg0) } m000(p001) m000(Package(18) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) m000(p000) Store(p000, Debug) Store(p001, Debug) } Method(m018,, Serialized) { Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5}) Store(Index(p000, 0), Index(p001, 1)) Store(Index(p001, 2), Index(p000, 3)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 1), Index(p001, 1)) Store(Index(p000, 2), Index(p001, 2)) Store(Index(p000, 3), Index(p001, 3)) Store(Index(p000, 4), Index(p001, 4)) Store(Index(p000, 5), Index(p001, 5)) Store(Index(p001, 2), Index(p000, 3)) Store(Index(p000, 4), Index(p001, 5)) } Method(m019,, Serialized) { Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5}) Name(p002, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5}) Method(m000) { Store(Index(p000, 0), Index(p001, 0)) } Store(Index(p000, 0), Index(p002, 0)) Store(Index(p000, 1), Index(p002, 1)) Store(Index(p000, 2), Index(p002, 2)) Store(Index(p000, 3), Index(p002, 3)) Store(Refof(p000), Index(p002, 4)) Store(Index(p000, 5), Index(p002, 5)) m000() Store(Index(p000, 0), Index(p001, 0)) } Method(m01a,, Serialized) { Name(p000, Package() {0xa0,0xa1,0xa2,0xa3,0xa4,0xa5}) Name(p001, Package() {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5}) Store(Index(p000, 0), Index(p001, 0)) Store(Refof(p000), Index(p001, 1)) } Method(m01b,, Serialized) { Name(p000, Package() {0x20,0x21,0x22,0x23,0x24,0x25}) Name(p001, Package(18) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Method(m000, 1) { Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(arg0, 0), Index(p000, 1)) Store(Index(arg0, 0), Index(p000, 1)) Store(Index(arg0, 0), Index(p000, 1)) Store(Index(arg0, 0), Index(p000, 1)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 2), Index(p000, 1)) Store(Index(arg0, 0), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 2), Index(p000, 2)) Store(Index(arg0, 3), Index(p000, 3)) Store(Index(arg0, 4), Index(p000, 4)) Store(Index(arg0, 5), Index(p000, 5)) Store(Index(arg0, 0), Index(p000, 0)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(arg0, 2), Index(p000, 2)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(arg0, 3), Index(p000, 3)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(arg0, 4), Index(p000, 4)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(arg0, 5), Index(p000, 5)) Store(Index(p000, 0), Index(arg0, 0)) } Method(m001, 1) { Store("Start m001", Debug) m000(arg0) Store("Finish m001", Debug) } Method(m002, 1) { m001(arg0) } Method(m003, 1) { m002(arg0) } Method(m004, 1) { Store("Start m004", Debug) m003(arg0) Store("Finish m004", Debug) } Store(Index(p000, 0), Index(p001, 0)) Store(Index(p000, 0), Index(p001, 0)) m004(p000) m000(p001) m001(p000) m002(p001) m003(p000) m004(p001) m000(p000) m001(p001) m002(p000) m003(p001) m004(p000) } Method(m01c,, Serialized) { Name(p000, Package() {0x20,0x21,0x22,0x23,0x24,0x25}) Name(p001, Package(18) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Name(p002, Package(18) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Method(m000, 1) { Store(Index(arg0, 0), Index(p000, 1)) } m000(p001) m000(p000) m000(p001) m000(p001) m000(p000) m000(p001) } Method(m01d,, Serialized) { Name(p000, Package() {0x20,0x21,0x22,0x23,0x24,0x25}) Name(p001, Package(18) {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17}) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p001, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p001, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p001, 0)) Store(Index(p001, 0), Index(p000, 0)) Store(Index(p000, 1), Index(p001, 1)) Store(p000, Index(p001, 1)) } Method(m01e,, Serialized) { Name(p000, Package() {0x10, 0x11}) Name(p001, Package() {0x20, 0x21}) Method(m000, 1) { Store(Index(p000, 0), Index(arg0, 0)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(arg0, 0), Index(p000, 0)) Store(Index(arg0, 0), Index(p000, 1)) Store(Index(arg0, 0), Index(arg0, 0)) Store(Index(arg0, 0), Index(arg0, 1)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 1), Index(arg0, 1)) Store(Index(arg0, 1), Index(arg0, 1)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 1), Index(p000, 0)) Store(Index(p000, 1), Index(p000, 1)) Store(Index(p000, 1), Index(arg0, 0)) Store(Index(p000, 1), Index(arg0, 1)) Store(Index(arg0, 0), Index(p000, 0)) Store(Index(arg0, 0), Index(p000, 0)) Store(Index(arg0, 0), Index(p000, 0)) Store(Index(arg0, 0), Index(p000, 1)) Store(Index(arg0, 0), Index(p000, 1)) Store(Index(arg0, 0), Index(p000, 1)) Store(Index(arg0, 0), Index(arg0, 0)) Store(Index(arg0, 0), Index(arg0, 0)) Store(Index(arg0, 0), Index(arg0, 0)) Store(Index(arg0, 0), Index(arg0, 1)) Store(Index(arg0, 0), Index(arg0, 1)) Store(Index(arg0, 0), Index(arg0, 1)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 0)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 1), Index(p000, 1)) Store(Index(arg0, 1), Index(arg0, 1)) Store(Index(arg0, 1), Index(arg0, 1)) Store(Index(arg0, 1), Index(arg0, 1)) Store(Index(arg0, 1), Index(arg0, 1)) Store(Index(arg0, 1), Index(arg0, 1)) Store(Index(arg0, 1), Index(arg0, 1)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 0)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(p000, 1)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 0)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 0), Index(arg0, 1)) Store(Index(p000, 1), Index(p000, 0)) Store(Index(p000, 1), Index(p000, 0)) Store(Index(p000, 1), Index(p000, 0)) Store(Index(p000, 1), Index(p000, 1)) Store(Index(p000, 1), Index(p000, 1)) Store(Index(p000, 1), Index(p000, 1)) Store(Index(p000, 1), Index(arg0, 0)) Store(Index(p000, 1), Index(arg0, 0)) Store(Index(p000, 1), Index(arg0, 0)) Store(Index(p000, 1), Index(arg0, 1)) Store(Index(p000, 1), Index(arg0, 1)) Store(Index(p000, 1), Index(arg0, 1)) } Method(m001, 1) { m000(arg0) } Method(m002, 1) { m001(arg0) } m000(Package(2) {0x10,0x11}) m000(Package(4) {0x20,0x21,0x22,0x23}) m000(Package(4) {0x30,0x31,0x32,0x33}) m000(Package(4) {0x40,0x41,0x42,0x43}) m000(Package(4) {0x50,0x51,0x52,0x53}) m000(Package(4) {0x60,0x61,0x62,0x63}) m000(Package(4) {0x70,0x71,0x72,0x73}) m000(Package(4) {0x80,0x81,0x82,0x83}) m000(Package(4) {0x40,0x41,0x42,0x43}) m000(Package(4) {0x40,0x41,0x42,0x43}) m000(Package(4) {0x40,0x41,0x42,0x43}) m000(Package(4) {0x40,0x41,0x42,0x43}) m000(Package(4) {0x40,0x41,0x42,0x43}) m000(Package(4) {0x40,0x41,0x42,0x43}) m000(Package(7) {0x40,0x41,0x42,0x43}) m000(Package(7) {0x40,0x41,0x42,0x43}) m000(Package(9) {0x30,0x31,0x32,0x33}) m000(Package(18) {0x30,0x31,0x32,0x33}) m001(Package(18) {0x30,0x31,0x32,0x33}) m001(Package(18) {0x30,0x31,0x32,0x33}) m001(Package(18) {0x30,0x31,0x32,0x33}) m001(Package(18) {0x30,0x31,0x32,0x33}) m001(Package(18) {0x30,0x31,0x32,0x33}) m002(Package(18) {0x30,0x31,0x32,0x33}) m002(Package(18) {0x30,0x31,0x32,0x33}) m002(Package(18) {0x30,0x31,0x32,0x33}) m002(Package(18) {0x30,0x31,0x32,0x33}) m002(Package(18) {0x30,0x31,0x32,0x33}) m000(p000) m000(p001) m001(p000) m001(p001) m002(p000) m002(p001) } Method(m01f,, Serialized) { Name(s900, "qwertyuiop") Method(m000, 1) { Store(RefOf(arg0), Local0) Store(DerefOf(Local0), Local7) return (Local7) } Method(m001, 1) { Store(RefOf(arg0), Local0) Store(DerefOf(Local0), Local7) Store(m000(Local7), Local0) } Store(Index(s900, 0), Local0) m001(Local0) Store(DerefOf(Local0), Local2) Store(Index(Package(){0xabcd0000}, 0), Local0) m001(Local0) Store(DerefOf(Local0), Local2) } Method(m020) { Method(m000,, Serialized) { Name(p953, Package() {0xabcd2018, 0xabcd2019}) Name(p954, Package() {0xabcd2018, 0xabcd2019}) CopyObject(p954, p953) } m000() } Method(m021) { Method(m000, 1) { Store(0xabcd0000, arg0) } Method(m001,, Serialized) { Name(pp00, Package() {0xabcd0001}) Name(p000, Package() {0xabcd0002, 0xabcd0003}) Name(p001, Package() {0xabcd0004, 0xabcd0005}) Store(RefOf(p000), Local0) m000(Local0) CopyObject(p001, p000) } m001() } Method(m022,, Serialized) { Name(i000, 0xabcd0000) Name(p000, Package() {0xabcd0001}) CopyObject(i000, p000) Store(i000, p000) } Method(m023,, Serialized) { Name(p000, Package() {0xabcd0000}) Name(p001, Package() {0xabcd0001, 0xabcd0002}) CopyObject(p000, p001) CopyObject(p001, p000) } Method(m024,, Serialized) { Name(p000, Package() {0xabcd0000}) Name(i000, 0xabcd0000) CopyObject(p000, i000) m006() m021() m022() m023() if (1) { m000() m001() m002() m003() m004() m005() m006() m007() m008() m009() m00a() m00b() m00c() m00d() m00e() m00f() m010() m011() m012() m013() m014() m015() m016() m017() m018() m019() m01a() m01b() m01c() m01d() m01e() m01f() m020() m021() m022() m023() } } SRMT("mfe6") m024() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0239_ACTION_REQUIRED/0000700000175000017500000000000014773714152027544 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0239_ACTION_REQUIRED/DECL.asl0000700000175000017500000000517014773714152030762 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 239: * * SUMMARY: Crash in a slack-multi-threading mode when returning from the method experienced exception * * Note: * * Run this in a slack mode (use AcpiExec -s ) * by the Threads debug operation on more than one thread * (use command). In this case the example * causes crash of AcpiExec for any exception occurred during * execution of methods (m000, m001). */ Mutex(MX08, 8) Mutex(MX09, 9) Method(m034) { Method(mm00, 1) { Method(m000) { Acquire(MX09, 0xffff) /* * Operation below causes AE_AML_MUTEX_ORDER exception * (it is correct). */ Acquire(MX08, 0xffff) } Method(m001, 1) { /* * Operation below causes AE_AML_DIVIDE_BY_ZERO exception */ Divide(1, arg0) } /* Any of these calls causes crash of AcpiExec */ if (0) { m000() } if (1) { m001(0) } } /* This example doesn't cause crash */ Method(mm01, 1) { Divide(1, arg0) } Method(mm02) { if (1) { mm00(0) } if (0) { /* This example doesn't cause crash */ mm01(0) } } mm02() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0239_ACTION_REQUIRED/RUN.asl0000700000175000017500000000335414773714152030721 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Run printing only on the Control Thread (non-zero Local0). */ if (Local0) { STTT("Demo of bug 239", TCLD, 239, W017) } if (Local0) { SRMT("m034") } m034() if (Local0) { FTTT() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0239_ACTION_REQUIRED/MAIN.asl0000700000175000017500000000553314773714152031002 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B239.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/common.asl") Include("../../../../../runtime/cntl/mt_runpoint.asl") Include("../../../../../runtime/cntl/runmode.asl") Include("../../../../../runtime/cntl/ehandle.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0239_ACTION_REQUIRED/DECL.asl") /* * Arguments passed to MAIN method are these * (MAIN there - the name of method passed to * Threads command of AcpiExec): * * arg0 - number of threads. * arg1 - ID of current thread. * arg2 - Index of current thread inside all participating threads. * The thread of Index 0 is considered as Control Thread. */ Method(MAIN, 3) { /* Non-zero Local0 means the current thread is a Control Thread */ Store(1, Local0) if (arg2) { /* Worker threads */ Store(0, Local0) } else { /* Control thread */ // Initialization STRT(0) } // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0239_ACTION_REQUIRED/RUN.asl") Store(0, Local7) if (Local0) { // Final actions Store(FNSH(), Local7) } return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0068/0000700000175000017500000000000014773714150025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0068/DECL.asl0000700000175000017500000000512714773714150026425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 68: CANCELED * * SUMMARY: FieldUnit type object should be returned by Methods without any conversion (to Buffer or Integer) * * EXAMPLES: * * ROOT CAUSE: * * SEE ALSO: bugs 65,66,67,68,118 */ Method (MD87, 0, NotSerialized) { Return (FD00) /* \FD00 */ } Method (MD88, 0, NotSerialized) { Return (FD01) /* \FD01 */ } Method (MD89, 0, NotSerialized) { /* FiledUnit converted to Integer before return */ Local7 = MD87 () Local0 = ObjectType (Local7) If ((Local0 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } /* FiledUnit converted to Buffer before return */ Local7 = MD88 () Local0 = ObjectType (Local7) If ((Local0 != C00B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00B) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0068/RUN.asl0000700000175000017500000000361614773714150026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 68", TCLD, 0x44, W017)) { SRMT ("md89") MD89 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0068/MAIN.asl0000700000175000017500000000424514773714150026442 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B68.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0068/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0068/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0115/0000700000175000017500000000000014773714150025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0115/DECL.asl0000700000175000017500000001120514773714150026410 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 115: * * SUMMARY: Unexpected dereference of Index reference returned by Method and immediately passed to another Method */ Method (ME7E, 2, NotSerialized) { Debug = Arg0 Arg0 = Arg1 } Method (ME7F, 0, NotSerialized) { Return (PD04 [0x00]) } Method (ME80, 0, NotSerialized) { Store (PD05 [0x00], Local0) Return (Local0) } Method (ME81, 0, NotSerialized) { Return (Local0 = PD06 [0x00]) } Method (ME82, 0, NotSerialized) { Local0 = PD07 [0x00] Return (Local0) } Method (ME83, 0, NotSerialized) { Local1 = Local0 = PD08 [0x00] Return (Local0) } Method (ME84, 0, NotSerialized) { Local1 = Local0 = PD09 [0x00] Return (Local1) } Method (ME85, 0, NotSerialized) { Return (RefOf (ID10)) } Method (ME86, 0, Serialized) { Name (PRN0, 0x00) /* To show: the RefOf reference is actually passed to method (Ok) */ If (PRN0) { Debug = ME85 () } Local0 = 0xABCD0000 ME7E (ME85 (), Local0) If ((ID10 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID10, Local0) } /* To show: all methods return Index references (Ok) */ If (PRN0) { Debug = ME7F () Debug = ME80 () Debug = ME81 () Debug = ME82 () Debug = ME83 () Debug = ME84 () } /* To show: passed to methods are objects but */ /* not Index references to them as expected (Bug) */ Local0 = 0xABCD0001 ME7E (ME7F (), Local0) Local1 = DerefOf (PD04 [0x00]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } Local0 = 0xABCD0002 ME7E (ME80 (), Local0) Local1 = DerefOf (PD05 [0x00]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } Local0 = 0xABCD0003 ME7E (ME81 (), Local0) Local1 = DerefOf (PD06 [0x00]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } Local0 = 0xABCD0004 ME7E (ME82 (), Local0) Local1 = DerefOf (PD07 [0x00]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } Local0 = 0xABCD0005 ME7E (ME83 (), Local0) Local1 = DerefOf (PD08 [0x00]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } Local0 = 0xABCD0006 ME7E (ME84 (), Local0) Local1 = DerefOf (PD09 [0x00]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0115/RUN.asl0000700000175000017500000000361714773714150026355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 115", TCLD, 0x73, W017)) { SRMT ("me86") ME86 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0115/MAIN.asl0000700000175000017500000000424514773714150026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B115.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0115/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0115/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0299_ACTIONS_REQUIRED/0000700000175000017500000000000014773714153027676 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0299_ACTIONS_REQUIRED/DECL.asl0000700000175000017500000001332214773714153031112 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 299: * * SUMMARY: Many outstanding allocations on abnormal termination of AcpiDsCallControlMethod * * * [ACPI Debug] String: [0x29] "========= ROOT METHODS SUMMARY (max 600):" * [ACPI Debug] String: [0x3E] ":STST:bug-demo:Demo of bug 299:m1e8:FAIL:Errors # 01 00 00 00:" * [ACPI Debug] String: [0x0E] "========= END." * [ACPI Debug] String: [0x5B] "TEST ACPICA: 64-bit : FAIL : Errors # 0x0000000000000001, Failed tests # 0x0000000000000001" * Outstanding: 0x14 allocations after execution * Execution of \MAIN returned object 00327E40 Buflen 10 * [Integer] = 0000000000000001 * - q * 0047DDE8 Len 0028 utcache-414 [Operand] Integer R1 * 0047DE48 Len 0028 utcache-414 [Operand] Integer R1 * 0047DEA8 Len 0028 utcache-414 [Operand] Integer R1 * 0047DF08 Len 0028 utcache-414 [Operand] Integer R1 * 0047DF68 Len 0028 utcache-414 [Operand] Integer R1 * 0047DFC8 Len 0028 utcache-414 [Operand] Integer R1 * 0047C988 Len 0028 utcache-414 [Operand] Integer R1 * 0047C9E8 Len 0028 utcache-414 [Operand] Integer R1 * 0047CA48 Len 0028 utcache-414 [Operand] Integer R1 * 0047CAA8 Len 0028 utcache-414 [Operand] Integer R1 * 0047CB08 Len 0028 utcache-414 [Operand] Integer R1 * 0047CB68 Len 0028 utcache-414 [Operand] Integer R1 * 0047C328 Len 0028 utcache-414 [Operand] Integer R1 * 0047C848 Len 0028 utcache-414 [Operand] Integer R1 * 0047B398 Len 0028 utcache-414 [Operand] Integer R1 * 0047A128 Len 0028 utcache-414 [Operand] Integer R1 * ACPI Error (uttrack-0719): 16(10) Outstanding allocations [20061215] */ Method (M1E8, 0, NotSerialized) { Method (M306, 2, Serialized) { Name (I000, 0x00) Name (I001, 0x00) Name (I002, 0x34) Name (I003, 0xABCD0003) Name (I004, 0xABCD0004) Method (M000, 1, Serialized) { If (Arg0) { I004 = 0x00 } Else { I003 = 0x00 } MM00 (0x07, I000, I001) } Method (M001, 1, Serialized, 1) { If (Arg0) { I004 = 0x01 } Else { I003 = 0x01 } MM00 (0x08, I000, I001) } Method (MM00, 3, NotSerialized) { Local0 = I002 /* \M1E8.M306.I002 */ I002++ If ((I002 > 0x36)) { Return (Zero) } If (Arg0) { Local1 = Arg2 } Else { Local1 = Arg1 } If ((Local1 == 0x00)) { M000 (Local0) } Else { M001 (Local0) } } I000 = Arg0 I001 = Arg1 MM00 (0x00, I000, I001) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) M306 (0x09, 0x00) CH04 (__METHOD__, 0x01, 0x40, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ /* * The problem is not automatically detected, * so remove this error report after the problem has been resolved. */ ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0299_ACTIONS_REQUIRED/RUN.asl0000700000175000017500000000362114773714153031050 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 299", TCLD, 0x012B, W017)) { SRMT ("m1e8") M1E8 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0299_ACTIONS_REQUIRED/MAIN.asl0000700000175000017500000000417414773714153031134 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B299.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0299_ACTIONS_REQUIRED/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0299_ACTIONS_REQUIRED/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0129/0000700000175000017500000000000014773714150025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0129/DECL.asl0000700000175000017500000000401014773714150026411 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 129: * * SUMMARY: Creating Package of an arbitrary length, Package & VarPackage */ Include ("../../../../../runtime/collections/bdemo/ACPICA/0129/StaticLocal.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0129/StaticGlobal.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/0129/Dynamic.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0129/RUN.asl0000700000175000017500000000406414773714150026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 129", TCLD, 0x81, W017)) { /* TRC8() */ SRMT ("StaticLocal") MD6D () SRMT ("StaticGlobal") MD6C () SRMT ("Dynamic") MD73 () /* TRC9() */ } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0129/StaticLocal.asl0000700000175000017500000003115014773714150030111 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Absolutely the same as md6c but all the Packages * are declared statically as locals of Method. */ Method (MD6D, 0, Serialized) { Name (P500, Package (0x0100) { /* 0-127 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, /* 128-(255-8) */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7 }) Name (P501, Package (0x0100) { /* 0-127 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, /* 128-255 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF }) Name (P502, Package (0x09) { /* 0-8 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }) Name (P503, Package (0x0B) { /* 0-10 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }) Name (P504, Package (0x00010000){}) Name (I500, 0x00) Name (I501, 0xFF) Name (P505, Package ((0x63 + 0x01)){}) Name (P506, Package (I500 = I501 /* \MD6D.I501 */){}) MD6A (P500, 0x0100, (0x0100 - 0x08), (0x0100 - 0x07), 0x06, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P501, 0x0100, 0x0100, 0x00, 0x00, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P501, 0x0100, 0x0100, 0x00, 0x10, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P502, 0x09, 0x09, 0x02, 0x05, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P503, 0x0B, 0x09, 0x02, 0x05, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P504, 0x00010000, 0x00, 0x9345, 0x39, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P505, 0x64, 0x00, 0x49, 0x13, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P506, 0xFF, 0x00, 0x11, 0x13, 0x0A, 0x0A) /* maximal number of written elements to be verified */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0129/StaticGlobal.asl0000700000175000017500000002466114773714150030270 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * All the Packages are declared globally (statically) */ Name (P500, Package (0x0100) { /* 0-127 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, /* 128-(255-8) */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7 }) Name (P501, Package (0x0100) { /* 0-127 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, /* 128-255 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF }) Name (P502, Package (0x09) { /* 0-8 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }) Name (P503, Package (0x0B) { /* 0-10 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }) Name (P504, Package (0x00010000){}) Name (I500, 0x00) Name (I501, 0xFF) Name (P505, Package ((0x63 + 0x01)){}) Name (P506, Package (I500 = I501 /* \I501 */){}) Method (MD6C, 0, NotSerialized) { MD6A (P500, 0x0100, (0x0100 - 0x08), (0x0100 - 0x07), 0x06, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P501, 0x0100, 0x0100, 0x00, 0x00, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P501, 0x0100, 0x0100, 0x00, 0x10, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P502, 0x09, 0x09, 0x02, 0x05, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P503, 0x0B, 0x09, 0x02, 0x05, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P504, 0x00010000, 0x00, 0x9345, 0x39, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P505, 0x64, 0x00, 0x49, 0x13, 0x0A, 0x0A) /* maximal number of written elements to be verified */ MD6A (P506, 0xFF, 0x00, 0x11, 0x13, 0x0A, 0x0A) /* maximal number of written elements to be verified */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0129/Dynamic.asl0000700000175000017500000000576014773714150027303 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * All the Packages are declared dynamically * (NumElements specified by arg0) as locals * of Methods. */ Method (MD6E, 1, Serialized) { Name (P504, Package (Arg0){}) MD6A (P504, 0x00010000, 0x00, 0x9345, 0x39, 0x0A, 0x0A) /* maximal number of written elements to be verified */ } Method (MD6F, 1, Serialized) { Name (P505, Package (Arg0){}) MD6A (P505, 0x64, 0x00, 0x49, 0x13, 0x0A, 0x0A) /* maximal number of written elements to be verified */ } Method (MD70, 1, Serialized) { Name (P506, Package (Arg0){}) MD6A (P506, 0xFF, 0x00, 0x11, 0x13, 0x0A, 0x0A) /* maximal number of written elements to be verified */ } Method (MD71, 1, Serialized) { Name (P000, Package (Arg0){}) MD6A (P000, 0x0100, 0x00, 0x11, 0x13, 0x0A, 0x0A) /* maximal number of written elements to be verified */ } Method (MD72, 1, Serialized) { Name (P000, Package (Arg0){}) MD6A (P000, 0x0101, 0x00, (0x0101 - 0x37), 0x37, 0x0A, 0x37) /* maximal number of written elements to be verified */ } Method (MD73, 0, NotSerialized) { MD6E (0x00010000) MD6F (0x64) MD70 (0xFF) MD71 (0x0100) MD72 (0x0101) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0129/MAIN.asl0000700000175000017500000000424514773714150026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B129.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0129/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0129/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0160/0000700000175000017500000000000014773714151025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0160/DECL.asl0000700000175000017500000000473214773714151026420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 160: * * SUMMARY: Attempt to declare Field inside the If scope causes exception * * Check that exception doesn't occur */ Method (MF48, 0, Serialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "mf48 started" Field (RD05, ByteAcc, NoLock, Preserve) { F000, 8 } Debug = "mf48 finished" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (MF49, 0, Serialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "mf49 started" If (0x01) { Field (RD05, ByteAcc, NoLock, Preserve) { F000, 8 } } Debug = "mf49 finished" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0160/RUN.asl0000700000175000017500000000367514773714151026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 160", TCLD, 0xA0, W017)) { SRMT ("mf48") MF48 () SRMT ("mf49") MF49 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0160/MAIN.asl0000700000175000017500000000424614773714151026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B160.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0160/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0160/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0052/0000700000175000017500000000000014773714147025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0052/DECL.asl0000700000175000017500000000473314773714147026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0052: * * SUMMARY: The EdgeLevel offset of Interrupt macro (_HE) is specified as 25-th bit but actually it is implemented as 24-th bit */ Method (MDDD, 0, Serialized) { Name (RT00, ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveLow, Shared, ,, ) { 0x00000000, } }) Local0 = 0x19 If ((Local0 != 0x19)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x19) } Local0 = 0x1A If ((Local0 != 0x1A)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1A) } Local0 = 0x1B If ((Local0 != 0x1B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x1B) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0052/RUN.asl0000700000175000017500000000361614773714147026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 52", TCLD, 0x34, W017)) { SRMT ("mddd") MDDD () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0052/MAIN.asl0000700000175000017500000000413114773714147026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B52.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0052/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0052/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0151/0000700000175000017500000000000014773714151025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0151/DECL.asl0000700000175000017500000001111114773714151026405 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 151: * * SUMMARY: The zero-length resulting String of Mid operator passed to Concatenate operator causes crash * * Check absence of crash.. */ Method (MF3F, 1, Serialized) { Name (B000, Buffer (Arg0){}) Name (B001, Buffer (0x07) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 // ....... }) Name (B002, Buffer (0x07) { 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E // ....... }) Debug = "Buffer case" Debug = B000 /* \MF3F.B000 */ Debug = SizeOf (B000) /* 1. */ Local1 = Concatenate (B000, B001) Debug = "Ok: Concatenate(, ...)" Concatenate (B000, B001, Local0) If ((Local0 != Buffer (0x07) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 // ....... })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x07) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 // ....... }) } /* 2. */ Local0 = Mid (B002, 0x07, 0x01) Debug = Local0 Debug = SizeOf (Local0) Debug = "Try: Concatenate(, ...)" Local1 = Concatenate (Local0, B001) Debug = "Ok: Concatenate(, ...)" Concatenate (Local0, B001, Local0) If ((Local0 != Buffer (0x07) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 // ....... })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x07) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 // ....... }) } } Method (MF40, 0, Serialized) { Name (S000, "") Name (S001, "String1") Name (S002, "String2") Debug = "String case" Debug = S000 /* \MF40.S000 */ Debug = SizeOf (S000) /* 3. */ Local1 = Concatenate (S000, S001) Debug = "Ok: Concatenate(, ...)" Concatenate (S000, S001, Local0) If ((Local0 != "String1")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "String1") } /* 4. */ Local0 = Mid (S002, 0x07, 0x01) Debug = Local0 Debug = SizeOf (Local0) Debug = "Try: Concatenate(, ...)" Local1 = Concatenate (Local0, S001) Debug = "Ok: Concatenate(, ...)" Concatenate (Local0, S001, Local0) If ((Local0 != "String1")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "String1") } } Method (MF41, 0, NotSerialized) { MF3F (0x00) MF40 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0151/RUN.asl0000700000175000017500000000361714773714151026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 151", TCLD, 0x97, W017)) { SRMT ("mf41") MF41 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0151/MAIN.asl0000700000175000017500000000413214773714151026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B151.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0151/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0151/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0016/0000700000175000017500000000000014773714147025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0016/DECL.asl0000700000175000017500000000467114773714147026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0016: * * SUMMARY: Concatenate operator produces the resulting String exceeding 200 symbols without generating exception */ Method (MDB1, 0, NotSerialized) { /* 100 characters */ Local0 = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" /* 101 characters */ Local1 = "01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Concatenate (Local0, Local1, Local2) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * The length of String is no more restricted. * * CH04("", 0, 61, 0, __LINE__, 0, 0) // AE_AML_STRING_LIMIT */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0016/RUN.asl0000700000175000017500000000361614773714147026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 16", TCLD, 0x10, W017)) { SRMT ("mdb1") MDB1 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0016/MAIN.asl0000700000175000017500000000413114773714147026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B16.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0016/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0016/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0212/0000700000175000017500000000000014773714152025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0212/DECL.asl0000700000175000017500000000011614773714152026407 0ustar ivanhuivanhu Include ("../../../../../runtime/collections/bdemo/ACPICA/0212/Misc.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0212/RUN.asl0000700000175000017500000000356514773714152026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 212", TCLD, 0xD4, W017)) { M805 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0212/MAIN.asl0000700000175000017500000000424614773714152026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B212.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0212/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0212/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0212/Misc.asl0000700000175000017500000003653114773714152026605 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Methods of common use. */ /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * RefCounts of named objects are incremented * and then decremented just after completions * of operations applied to them - it is true * for the following operations: * * - object used in AML operations except Index one * - object passed as parameter to Method * * The following AML operations increment the RefCounts * of objects which are decremented only while deleting * the objects where the results of these operations are * saved: * * - Index AML operation * - RefOf AML operation */ Method (M806, 0, Serialized) { Name (P000, Package (0x40){}) Name (P001, Package (0x40){}) Name (S000, "01234567890-qwertyuiop[]") Name (B000, Buffer (0x07) { 0x10, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17 // ....... }) Name (I000, 0xABCD0000) Name (I001, 0xABCD0001) Name (I002, 0xABCD0002) Name (I003, 0xABCD0003) Name (I004, 0xABCD0004) Name (I005, 0xABCD0005) Name (I006, 0xABCD0006) Name (I007, 0xABCD0007) Method (M000, 0, NotSerialized) { Store (S000 [0x00], P001 [0x04]) Store (S000 [0x00], P001 [0x04]) } Method (M001, 0, NotSerialized) { Store (B000 [0x00], P001 [0x07]) Store (B000 [0x00], P001 [0x07]) } M000 () M001 () } Method (M807, 0, Serialized) { Name (P000, Package (0x40){}) Name (P001, Package (0x40){}) Name (S000, "01234567890-qwertyuiop[]") Name (B000, Buffer (0x07) { 0x10, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17 // ....... }) Name (I000, 0xABCD0000) Name (I001, 0xABCD0001) Name (I002, 0xABCD0002) Name (I003, 0xABCD0003) Name (I004, 0xABCD0004) Name (I005, 0xABCD0005) Name (I006, 0xABCD0006) Name (I007, 0xABCD0007) Method (MM00, 2, NotSerialized) { Method (M000, 0, NotSerialized) { Store (P000 [0x00], P001 [0x00]) Store (P000 [0x01], P001 [0x01]) Store (P000 [0x02], P001 [0x02]) Store (P000 [0x03], P001 [0x03]) Store (S000 [0x00], P001 [0x04]) Store (S000 [0x01], P001 [0x05]) Store (S000 [0x02], P001 [0x06]) Store (B000 [0x00], P001 [0x07]) Store (B000 [0x01], P001 [0x08]) Store (B000 [0x02], P001 [0x09]) } Method (M001, 0, NotSerialized) { Store (P000 [0x00], P001 [0x00]) Store (P000 [0x01], P001 [0x01]) Store (P000 [0x02], P001 [0x02]) Store (P000 [0x03], P001 [0x03]) Store (P001 [0x00], P000 [0x00]) Store (P001 [0x01], P000 [0x01]) Store (P001 [0x02], P000 [0x02]) Store (P001 [0x03], P000 [0x03]) Store (S000 [0x00], P001 [0x04]) Store (S000 [0x01], P001 [0x05]) Store (S000 [0x02], P001 [0x06]) Store (B000 [0x00], P001 [0x07]) Store (B000 [0x01], P001 [0x08]) Store (B000 [0x02], P001 [0x09]) } Method (M002, 0, NotSerialized) { Store (P000 [0x00], Local0) Store (P000 [0x01], Local1) Store (P000 [0x02], Local2) Store (P000 [0x03], Local3) } Method (M003, 4, NotSerialized) { Store (P000 [0x00], Arg0) Store (P000 [0x01], Arg1) Store (P000 [0x02], Arg2) Store (P000 [0x03], Arg3) } Method (M004, 4, NotSerialized) { Store (P000 [0x00], P001 [0x00]) Store (P000 [0x01], P001 [0x01]) Store (P000 [0x02], P001 [0x02]) Store (P000 [0x03], P001 [0x03]) Store (P001 [0x00], P000 [0x00]) Store (P001 [0x01], P000 [0x01]) Store (P001 [0x02], P000 [0x02]) Store (P001 [0x03], P000 [0x03]) Store (S000 [0x00], P001 [0x04]) Store (S000 [0x01], P001 [0x05]) Store (S000 [0x02], P001 [0x06]) Store (B000 [0x00], P001 [0x07]) Store (B000 [0x01], P001 [0x08]) Store (B000 [0x02], P001 [0x09]) Store (P000 [0x00], Local0) Store (P000 [0x01], Local1) Store (P000 [0x02], Local2) Store (P000 [0x03], Local3) Store (P000 [0x00], Arg0) Store (P000 [0x01], Arg1) Store (P000 [0x02], Arg2) Store (P000 [0x03], Arg3) } Method (M005, 6, NotSerialized) { Store (Arg0 [0x00], Arg1 [0x00]) Store (Arg0 [0x01], Arg1 [0x01]) Store (Arg0 [0x02], Arg1 [0x02]) Store (Arg0 [0x03], Arg1 [0x03]) Store (Arg1 [0x00], Arg0 [0x00]) Store (Arg1 [0x01], Arg0 [0x01]) Store (Arg1 [0x02], Arg0 [0x02]) Store (Arg1 [0x03], Arg0 [0x03]) Store (S000 [0x00], P001 [0x04]) Store (S000 [0x01], P001 [0x05]) Store (S000 [0x02], P001 [0x06]) Store (B000 [0x00], P001 [0x07]) Store (B000 [0x01], P001 [0x08]) Store (B000 [0x02], P001 [0x09]) Store (Arg0 [0x00], Local0) Store (Arg0 [0x01], Local1) Store (Arg0 [0x02], Local2) Store (Arg0 [0x03], Local3) Store (Arg0 [0x00], Arg2) Store (Arg0 [0x01], Arg3) Store (Arg0 [0x02], Arg4) Store (Arg0 [0x03], Arg5) } M000 () M001 () M002 () M003 (0x00, 0x00, 0x00, 0x00) M004 (0x00, 0x00, 0x00, 0x00) M005 (P000, P001, 0x00, 0x00, 0x00, 0x00) M005 (Arg0, Arg1, 0x00, 0x00, 0x00, 0x00) } Method (MM01, 2, NotSerialized) { M000 () M001 () M002 () M003 (0x00, 0x00, 0x00, 0x00) M004 (0x00, 0x00, 0x00, 0x00) M005 (P000, P001, 0x00, 0x00, 0x00, 0x00) M005 (Arg0, Arg1, 0x00, 0x00, 0x00, 0x00) } Method (M000, 0, NotSerialized) { Store (P000 [0x00], P001 [0x00]) Store (P000 [0x01], P001 [0x01]) Store (P000 [0x02], P001 [0x02]) Store (P000 [0x03], P001 [0x03]) } Method (M001, 0, NotSerialized) { Store (P000 [0x00], P001 [0x00]) Store (P000 [0x01], P001 [0x01]) Store (P000 [0x02], P001 [0x02]) Store (P000 [0x03], P001 [0x03]) Store (P001 [0x00], P000 [0x00]) Store (P001 [0x01], P000 [0x01]) Store (P001 [0x02], P000 [0x02]) Store (P001 [0x03], P000 [0x03]) } Method (M002, 0, NotSerialized) { Store (P000 [0x00], Local0) Store (P000 [0x01], Local1) Store (P000 [0x02], Local2) Store (P000 [0x03], Local3) } Method (M003, 4, NotSerialized) { Store (P000 [0x00], Arg0) Store (P000 [0x01], Arg1) Store (P000 [0x02], Arg2) Store (P000 [0x03], Arg3) } Method (M004, 4, NotSerialized) { Store (P000 [0x00], P001 [0x00]) Store (P000 [0x01], P001 [0x01]) Store (P000 [0x02], P001 [0x02]) Store (P000 [0x03], P001 [0x03]) Store (P001 [0x00], P000 [0x00]) Store (P001 [0x01], P000 [0x01]) Store (P001 [0x02], P000 [0x02]) Store (P001 [0x03], P000 [0x03]) Store (S000 [0x00], P001 [0x04]) Store (S000 [0x01], P001 [0x05]) Store (S000 [0x02], P001 [0x06]) Store (B000 [0x00], P001 [0x07]) Store (B000 [0x01], P001 [0x08]) Store (B000 [0x02], P001 [0x09]) Store (P000 [0x00], Local0) Store (P000 [0x01], Local1) Store (P000 [0x02], Local2) Store (P000 [0x03], Local3) Store (P000 [0x00], Arg0) Store (P000 [0x01], Arg1) Store (P000 [0x02], Arg2) Store (P000 [0x03], Arg3) } Method (M005, 6, NotSerialized) { Store (Arg0 [0x00], Arg1 [0x00]) Store (Arg0 [0x01], Arg1 [0x01]) Store (Arg0 [0x02], Arg1 [0x02]) Store (Arg0 [0x03], Arg1 [0x03]) Store (Arg1 [0x00], Arg0 [0x00]) Store (Arg1 [0x01], Arg0 [0x01]) Store (Arg1 [0x02], Arg0 [0x02]) Store (Arg1 [0x03], Arg0 [0x03]) Store (S000 [0x00], P001 [0x04]) Store (S000 [0x01], P001 [0x05]) Store (S000 [0x02], P001 [0x06]) Store (B000 [0x00], P001 [0x07]) Store (B000 [0x01], P001 [0x08]) Store (B000 [0x02], P001 [0x09]) Store (Arg0 [0x00], Local0) Store (Arg0 [0x01], Local1) Store (Arg0 [0x02], Local2) Store (Arg0 [0x03], Local3) Store (Arg0 [0x00], Arg2) Store (Arg0 [0x01], Arg3) Store (Arg0 [0x02], Arg4) Store (Arg0 [0x03], Arg5) } Method (M006, 0, Serialized) { Name (P000, Package (0x08){}) Name (P001, Package (0x08){}) P001 [0x00] = RefOf (P000) P000 [0x00] = RefOf (P001) P000 [0x01] = RefOf (P000) P001 [0x01] = RefOf (P001) /* Repeat the same */ P001 [0x00] = RefOf (P000) P000 [0x00] = RefOf (P001) P000 [0x01] = RefOf (P000) P001 [0x01] = RefOf (P001) } M000 () M001 () M002 () M003 (0x00, 0x00, 0x00, 0x00) M004 (0x00, 0x00, 0x00, 0x00) M005 (P000, P001, 0x00, 0x00, 0x00, 0x00) MM00 (P000, P001) MM01 (P000, P001) M006 () } Method (M80F, 0, Serialized) { Name (IG00, 0xABCD0001) Name (IR00, 0xABCD0002) Method (M000, 0, Serialized) { Name (I000, 0xABCD0003) CopyObject (RefOf (I000), IR00) /* \M80F.IR00 */ } Method (M001, 1, Serialized) { Name (III0, 0xABCD0004) Name (III1, 0xABCD0005) Name (III2, 0xABCD0006) Name (III3, 0xABCD0007) Name (III4, 0xABCD0008) Name (III5, 0xABCD0009) Name (III6, 0xABCD000A) Name (III7, 0xABCD000B) CopyObject (DerefOf (IR00), Local0) If ((Local0 != Arg0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Arg0) } } M000 () M001 (0xABCD0003) } Method (M810, 0, Serialized) { Name (P000, Package (0x04) { 0x00, 0x01, 0x02, 0x03 }) Method (M000, 0, NotSerialized) { Local0 = 0xABCD0009 P000 [0x02] = RefOf (Local0) } M000 () } Method (M811, 0, Serialized) { Name (P000, Package (0x04) { 0x00, 0x01, 0x02, 0x03 }) Method (M000, 0, NotSerialized) { P000 [0x02] = RefOf (Local0) } M000 () } Method (M805, 0, NotSerialized) { SRMT ("m806") M806 () SRMT ("m807") If (Y135) { M807 () } Else { BLCK () } SRMT ("m80f") M80F () SRMT ("m810") M810 () SRMT ("m811") M811 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0212/Common.asl0000700000175000017500000000311614773714152027133 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Methods of common use. */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0249_DEMO_IMPOSSIBLE/0000700000175000017500000000000014773714152027542 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0249_DEMO_IMPOSSIBLE/DECL.asl0000700000175000017500000000320514773714152030755 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 249: * * SUMMARY: Strengthen the type control for AcpiExResolveOperands */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0289/0000700000175000017500000000000014773714152025214 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0289/DECL.asl0000700000175000017500000000657114773714152026440 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 289: * * SUMMARY: Search of the table matched Loadtable parameters should be restricted to XSDT */ Device (D289) { Name (BUF4, Buffer (0x44) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x44, 0x00, 0x00, 0x00, // SSDTD... /* 0008 */ 0x02, 0x08, 0x69, 0x41, 0x53, 0x4C, 0x54, 0x53, // ..iASLTS /* 0010 */ 0x4C, 0x54, 0x42, 0x4C, 0x30, 0x30, 0x30, 0x31, // LTBL0001 /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x10, 0x1F, 0x5C, 0x00, // ... ..\. /* 0028 */ 0x08, 0x5F, 0x58, 0x54, 0x32, 0x0D, 0x61, 0x62, // ._XT2.ab /* 0030 */ 0x73, 0x6F, 0x6C, 0x75, 0x74, 0x65, 0x20, 0x6C, // solute l /* 0038 */ 0x6F, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, // ocation /* 0040 */ 0x6F, 0x62, 0x6A, 0x00 // obj. }) OperationRegion (IST4, SystemMemory, 0x0600, 0x44) Field (IST4, ByteAcc, NoLock, Preserve) { RFU4, 544 } Name (PLDT, 0x00) Method (TST0, 0, Serialized) { Name (DDBH, 0x02) /* Load/Unload SSDT */ RFU4 = BUF4 /* \D289.BUF4 */ Load (RFU4, Local0) Unload (Local0) /* Try to load that SSDT through LoadTable */ DDBH = LoadTable ("SSDT", "iASLTS", "LTBL0001", "\\", "\\D289.PLDT", 0x01) If ((PLDT == 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "PLDT", 0x01) Unload (DDBH) } } } Method (M289, 0, NotSerialized) { \D289.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0289/RUN.asl0000700000175000017500000000362114773714152026366 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 289", TCLD, 0x0121, W017)) { SRMT ("m289") M289 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0289/MAIN.asl0000700000175000017500000000413114773714152026443 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B289.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0289/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0289/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0173_DEMO_IMPOSSIBLE/0000700000175000017500000000000014773714151027535 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0173_DEMO_IMPOSSIBLE/DECL.asl0000700000175000017500000000426014773714151030752 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 173: * * SUMMARY: Two the same fragments of code should be compacted to one */ COMMENT There are two the same fragments of code in the same routine (AcpiExResolveMultiple, file interpreter/executer/exresolv.c) which could be compacted to one. The patch attached provides that minor update. The only difference between the two fragments of code (34 lines each) is like this: ............................. < case AML_REF_OF_OP: --- > case AML_INT_NAMEPATH_OP: < Node = ObjDesc->Reference.Object; --- > Node = ObjDesc->Reference.Node; ............................. acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0037/0000700000175000017500000000000014773714147025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0037/DECL.asl0000700000175000017500000000407514773714147026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0037: * * SUMMARY: The Memory24 Resource Descriptor Macro specification should be updated */ Method(mf63,, Serialized) { Name (M241, ResourceTemplate () { Memory24 (, 0xf0f1, 0xf2f3, 0xf4f5, 0xf6f7, M240) }) Name (M242, Buffer () {0x81, 0x09, 0x00, 0x01, 0xf1, 0xf0, 0xf3, 0xf2, 0xf5, 0xf4, 0xf7, 0xf6, 0x79, 0x00, }) if (LNotEqual(M241, M242)) { err("", zFFF, __LINE__, 0, 0, M241, M242) } if (LNotEqual(M240._RW, 0x18)) { err("", zFFF, __LINE__, 0, 0, M240._RW, 0x18) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0037/RUN.asl0000700000175000017500000000317214773714147026362 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 37", TCLD, 37, W017)) { SRMT("mf63") mf63() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0037/MAIN.asl0000700000175000017500000000413114773714147026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B37.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0037/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0037/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0210/0000700000175000017500000000000014773714152025174 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0210/DECL.asl0000700000175000017500000000551714773714152026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 210 (local-bugzilla-349): * * COMPONENT: * * SUMMARY: Implicit return objects are not released in Slack Mode * (Now on Slack Mode when an exception occurs and all nested control * methods are terminated, Implicit return objects are not released). * * Note: automate in future counting the number of Outstanding allocations * per-test and expect here zero which would mean success of test. * Currently, always FAILURE. * * Note: the mentioned Outstanding allocation is not visible when _ERR * is defined. */ Method (M819, 0, NotSerialized) { Method (M000, 1, NotSerialized) { Local0 = 0x02 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Divide (0x01, Arg0, Local0) CH04 (__METHOD__, 0x00, 0x38, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_DIVIDE_BY_ZERO */ } Method (M001, 0, NotSerialized) { Local0 = 0x01 M000 (0x00) } M001 () Debug = "Fight Outstanding allocations here" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0210/RUN.asl0000700000175000017500000000361714773714152026353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 210", TCLD, 0xD2, W017)) { SRMT ("m819") M819 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0210/MAIN.asl0000700000175000017500000000413114773714152026423 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B210.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0210/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0210/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0026_ASL_NOT_BUG_NOW/0000700000175000017500000000000014773714147027644 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0026_ASL_NOT_BUG_NOW/DECL.asl0000700000175000017500000000411714773714147031062 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0026: * * SUMMARY: The ASL Compiler doesn't forbid images of Strings exceeding maximum * * Error of compilation is expected here for the 201-symbol length String */ /* * Not more a bug. * Now the length of String is not anyhow restricted. */ Method(mdba) { Store("012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", Local0) Store(SizeOf(Local0), Local1) Return(Local1) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0026_ASL_NOT_BUG_NOW/MAIN.asl0000700000175000017500000000402314773714147031073 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B26.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0026_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0087/0000700000175000017500000000000014773714150025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0087/DECL.asl0000700000175000017500000000742714773714150026433 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0087: * * SUMMARY: Exception on Switch operator applied to the result of ToBuffer operator */ Method (ME3C, 0, Serialized) { Name (B000, Buffer (0x01) { 0x0A // . }) Name (S000, "qwrtyuiop") If (0x01) { /* This code shows that ToBuffer() works correctly */ Debug = "======================: ToBuffer(Buffer)" Local0 = ToBuffer (B000) Debug = Local0 Local1 = ObjectType (Local0) Debug = Local1 Local2 = SizeOf (Local0) Debug = Local2 Debug = "======================: ToBuffer(String)" Local0 = ToBuffer (S000) Debug = Local0 Local1 = ObjectType (Local0) Debug = Local1 Local2 = SizeOf (Local0) Debug = Local2 Debug = "======================." } /* This code shows that ToBuffer() causes exceptions in cases #2, #3 */ /* if (0) { */ /* Case 1 */ Switch (Buffer (0x01) { 0x0A // . }) { Case ("N") { Debug = "Case (A)" } Default { Debug = "Default (A)" } } /* } elseif (1) { */ /* Case 2 */ Switch (ToBuffer (Buffer (0x01) { 0x0A // . })) { Case ("N") { Debug = "Case (B)" } Default { Debug = "Default (B)" } } /* } else { */ /* Case 3 */ Switch (ToBuffer (B000)) { Case ("N") { Debug = "Case (C)" } Default { Debug = "Default (C)" } } /* } */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0087/RUN.asl0000700000175000017500000000361614773714150026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 87", TCLD, 0x57, W017)) { SRMT ("me3c") ME3C () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0087/MAIN.asl0000700000175000017500000000413114773714150026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B87.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0086/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0086/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0144/0000700000175000017500000000000014773714151025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0144/DECL.asl0000700000175000017500000000530114773714151026413 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 144: * * SUMMARY: The ASL Compiler doesn't support multiple type list for particular ParameterType of Method */ Method (MF34, 1, Serialized) { Return (Arg0) } Method (MF35, 1, Serialized) { Return (Arg0) } Method (MF36, 1, Serialized) { Return (Arg0) } Method (MF37, 1, Serialized) { Return (Arg0) } Method (MF38, 0, NotSerialized) { Local0 = MF34 (0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = MF35 (0x01) If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } Local0 = MF36 (0x02) If ((Local0 != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x02) } Local0 = MF37 ("3") If ((Local0 != "3")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "3") } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0144/RUN.asl0000700000175000017500000000361714773714151026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 144", TCLD, 0x90, W017)) { SRMT ("mf38") MF38 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0144/MAIN.asl0000700000175000017500000000413214773714151026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B144.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0144/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0144/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0261/0000700000175000017500000000000014773714152025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0261/DECL.asl0000700000175000017500000001012114773714152026410 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 261: * * SUMMARY: Crash when DDBHandle parameter of Load is an Indexed Reference */ Method (M028, 0, Serialized) { Name (BUF0, Buffer (0x4D) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x4D, 0x00, 0x00, 0x00, // SSDTM... /* 0008 */ 0x02, 0x95, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x02, 0x11, 0x06, 0x20, 0x5B, 0x82, 0x1C, 0x41, // ... [..A /* 0028 */ 0x55, 0x58, 0x44, 0x14, 0x16, 0x4D, 0x30, 0x30, // UXD..M00 /* 0030 */ 0x30, 0x00, 0x70, 0x0D, 0x5C, 0x41, 0x55, 0x58, // 0.p.\AUX /* 0038 */ 0x44, 0x2E, 0x4D, 0x30, 0x30, 0x30, 0x3A, 0x00, // D.M000:. /* 0040 */ 0x5B, 0x31, 0x10, 0x0A, 0x5C, 0x00, 0x08, 0x45, // [1..\..E /* 0048 */ 0x58, 0x53, 0x54, 0x0A, 0x02 // XST.. }) OperationRegion (IST0, SystemMemory, 0x00, 0x4D) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 616 } External (\AUXZ, UnknownObj) Method (M000, 0, Serialized) { Name (PAC0, Package (0x01){}) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) RFU0 = BUF0 /* \M028.BUF0 */ If (CondRefOf (\AUXZ, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01777777) Return (Zero) } Load (RFU0, PAC0 [0x00]) Debug = "SSDT loaded" If (CondRefOf (\AUXZ, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01777777) Return (Zero) } Local1 = ObjectType (PAC0 [0x00]) If ((Local1 != 0x0F)) { Debug = Local1 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01777777) Return (Zero) } Unload (DerefOf (PAC0 [0x00])) Debug = "SSDT unloaded" If (CondRefOf (\AUXZ, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01777777) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Return (Zero) } M000 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0261/RUN.asl0000700000175000017500000000401414773714152026351 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 261", TCLD, 0x0105, W017)) { SRMT ("m028") If (Y261) { M028 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0261/MAIN.asl0000700000175000017500000000413114773714152026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B261.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0261/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0261/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0222/0000700000175000017500000000000014773714152025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0222/DECL.asl0000700000175000017500000000471314773714152026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 222: * * SUMMARY: Alternating access to OpRegions of different Address Spaces issue */ Method (M10A, 0, Serialized) { Method (CHCK, 3, NotSerialized) { If ((Arg0 != Arg1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Arg1) } } OperationRegion (OPR0, SystemMemory, 0x00, 0x01) OperationRegion (OPR1, SystemIO, 0x00, 0x01) Field (OPR0, ByteAcc, NoLock, Preserve) { F000, 8 } Field (OPR1, ByteAcc, NoLock, Preserve) { F001, 8 } F000 = 0x5A CHCK (F000, 0x5A, 0x00) F001 = 0xC3 CHCK (F001, 0xC3, 0x01) CHCK (F000, 0x5A, 0x02) CHCK (F001, 0xC3, 0x03) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0222/RUN.asl0000700000175000017500000000361714773714152026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 222", TCLD, 0xDE, W017)) { SRMT ("m10a") M10A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0222/MAIN.asl0000700000175000017500000000413114773714152026426 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B222.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0222/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0222/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0280_ASL_RUNTIME/0000700000175000017500000000000014773714152027105 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0280_ASL_RUNTIME/DECL.asl0000700000175000017500000000362514773714152030326 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 280: * * SUMMARY: iASL can unexpectedly emit the "not accessible" error for Source parameter of CondRefof */ Device (D280) { Method(T280) { if (CondRefof(NABS, Local0)) { err("", zFFF, __LINE__, 0, 0, "NABS", 1) } } } Method(T280) { Name(NABS, "\\T280.NABS") Return (NABS) } Method(m280) { Store (\T280(), Debug) \D280.T280() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0280_ASL_RUNTIME/RUN.asl0000700000175000017500000000317414773714152030262 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 280", TCLD, 280, W017)) { SRMT("m280") m280() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0280_ASL_RUNTIME/MAIN.asl0000700000175000017500000000427714773714152030347 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B280.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0280_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0280_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0171_ACTION_REQUIRED/0000700000175000017500000000000014773714151027536 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0171_ACTION_REQUIRED/DECL.asl0000700000175000017500000000503514773714151030754 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 171: * * SUMMARY: Improper Integer to String implicit conversion in a specific case * * COMMENT: * * The demo program shows that the result * of Integer to String implicit conversion * in 32-bit mode can look like 64-bit mode * takes place. * The ComplianceRevision field of the demo program * should be 2, but run ASL compiler with "-r 1" option. * The anomaly is not observed when AML code is obtained * with "-r 1 -oa" options. */ Method (MF5E, 0, NotSerialized) { Local0 = ("C179B3FE" == 0xC179B3FE) If ((Local0 != Ones)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Ones) } Local0 = (0xC179B3FE == "C179B3FE") If ((Local0 != Ones)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Ones) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0171_ACTION_REQUIRED/RUN.asl0000700000175000017500000000401114773714151030702 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 171", TCLD, 0xAB, W017)) { SRMT ("mf5e") If (F64) { SKIP () } Else { MF5E () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0171_ACTION_REQUIRED/MAIN.asl0000700000175000017500000000417214773714151030772 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B171.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0171_ACTION_REQUIRED/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0171_ACTION_REQUIRED/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0131/0000700000175000017500000000000014773714150025174 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0131/DECL.asl0000700000175000017500000000671414773714150026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 131: * * SUMMARY: Store to the Index reference immediately returned by Method doesn't work */ Method (M126, 0, Serialized) { Name (P000, Package (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }) Method (M002, 0, NotSerialized) { Debug = "m002 started" Return (P000 [0x01]) } Method (M003, 0, NotSerialized) { Debug = "m003 started" Store (P000 [0x01], Local0) Return (Local0) } Method (M004, 1, NotSerialized) { Debug = "m004 started" Store (P000 [Arg0], Local0) Return (Local0) } Method (M005, 0, NotSerialized) { P000 [0x00] = 0xABCD0001 Local0 = DerefOf (P000 [0x00]) If ((Local0 != 0xABCD0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCD0001) } /* // Removed 09/2015 Store to method invocation is not supported Store(0xabcd0004, m002()) Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0004)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0004) } Store(0xabcd0005, m003()) Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0005)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0005) } Store(0xabcd0006, m004(1)) Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0006) } */ } M005 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0131/RUN.asl0000700000175000017500000000361714773714150026353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 131", TCLD, 0x83, W017)) { SRMT ("m126") M126 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0131/MAIN.asl0000700000175000017500000000413114773714150026423 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B131.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0131/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0131/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0201_OUTSTAND_ALLOC/0000700000175000017500000000000014773714151027426 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0201_OUTSTAND_ALLOC/DECL.asl0000700000175000017500000000430214773714151030640 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 201: * * SUMMARY: Many Outstanding allocations on ASLTS tests run * * Note: automate in future counting the number of Outstanding allocations * per-test and expect here zero which would mean success of test. * Currently, always FAILURE. */ Method (MFC1, 0, NotSerialized) { Debug = "To be investigated:" Debug = "many Outstanding allocations on Reference ASLTS test run and other ASLTS tests." ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0201_OUTSTAND_ALLOC/RUN.asl0000700000175000017500000000361714773714151030605 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 201", TCLD, 0xC9, W017)) { SRMT ("mfc1") MFC1 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0201_OUTSTAND_ALLOC/MAIN.asl0000700000175000017500000000416714773714151030666 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B201.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0201_OUTSTAND_ALLOC/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0201_OUTSTAND_ALLOC/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0028/0000700000175000017500000000000014773714147025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0028/DECL.asl0000700000175000017500000000773214773714147026433 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0028: * * SUMMARY: No exception on Create*Field for out of Buffer range */ Method (MDBC, 0, Serialized) { Name (B000, Buffer (0x10){}) CreateBitField (B000, 0x7F, F000) CreateByteField (B000, 0x0F, F001) CreateWordField (B000, 0x0E, F002) CreateDWordField (B000, 0x0C, F003) CreateQWordField (B000, 0x08, F004) CreateField (B000, 0x7F, 0x01, F005) CreateField (B000, 0x78, 0x08, F006) } Method (MDBD, 0, Serialized) { Name (B000, Buffer (0x10){}) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateBitField (B000, 0x80, F000) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateByteField (B000, 0x10, F001) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateWordField (B000, 0x0F, F002) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateDWordField (B000, 0x0D, F003) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateQWordField (B000, 0x09, F004) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x7F, 0x02, F005) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x78, 0x09, F006) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x80, 0x01, F007) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x79, 0x08, F008) CH04 (__METHOD__, 0x00, 0x36, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ } Method (MDBE, 0, NotSerialized) { MDBC () MDBD () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0028/RUN.asl0000700000175000017500000000361614773714147026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 28", TCLD, 0x1C, W017)) { SRMT ("mdbe") MDBE () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0028/MAIN.asl0000700000175000017500000000413114773714147026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B28.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0028/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0028/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0091_SPEC/0000700000175000017500000000000014773714150026013 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0091_SPEC/DECL.asl0000700000175000017500000000324214773714150027227 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 91: * * SUMMARY: The result of String-to-Buffer conversion should include the string null terminator */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0042/0000700000175000017500000000000014773714147025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0042/DECL.asl0000700000175000017500000000412514773714147026420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0042: * * SUMMARY: ToDecimalString transforms operand to reference when no conversion is required */ Method (MDD3, 0, NotSerialized) { Local0 = "0" Debug = Local0 Local2 = ToDecimalString (Local0) Debug = Local0 Local7 = (Local0 + 0x01) If ((Local7 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, 0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0042/RUN.asl0000700000175000017500000000361614773714147026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 42", TCLD, 0x2A, W017)) { SRMT ("mdd3") MDD3 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0042/MAIN.asl0000700000175000017500000000413114773714147026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B42.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0042/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0042/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0198/0000700000175000017500000000000014773714151025212 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0198/DECL.asl0000700000175000017500000001341014773714151026424 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 198: * * SUMMARY: AML interpretation in 32-bit slack mode becomes unstable after some exceptions */ /* SEE below: "Would be useful to continue for other ASL operators" */ Name(id24, 0) Method(mfa9,, Serialized) { Event(e900) Event(e9Z0) Mutex(mx90, 0) Mutex(mx91, 0) Device(d900) { Name(i900, 0xabcd0017) } Device(d9Z0) { Name(i900, 0xabcd0017) } ThermalZone(tz90) {} ThermalZone(tz91) {} Processor(pr90, 0, 0xFFFFFFFF, 0) {} Processor(pr91, 0, 0xFFFFFFFF, 0) {} OperationRegion(r900, SystemMemory, 0x100, 0x100) OperationRegion(r9Z0, SystemMemory, 0x100, 0x100) PowerResource(pw90, 1, 0) {Method(mmmm){return (0)}} PowerResource(pw91, 1, 0) {Method(mmmm){return (0)}} Name(RMRC, 0) Name(NRMT, "QQQQ") Name(CTST, "CTST") Name(RR44, Package(8) {}) Name(RR55, Package(8) {}) Name(s000, "The expected contents of 0-th elements of both Packages - RR44 and RR55") // Error checking Method(m000, 1) { Store("======================================== sit 1", Debug) Store(arg0, Debug) Store(RMRC, Debug) Store(DerefOf(Index(RR44, 0)), Debug) Store(DerefOf(Index(RR55, 0)), Debug) Store(DerefOf(Index(RR44, 0)), Local0) Store(DerefOf(Index(RR55, 0)), Local1) if (LNotEqual(Local0, s000)) { // Store("Error 0", Debug) err("", zFFF, __LINE__, 0, 0, Local0, s000) } if (LNotEqual(Local1, s000)) { // Store("Error 1", Debug) err("", zFFF, __LINE__, 0, 0, Local0, s000) } Store("========================================.", Debug) } Method(m001,, Serialized) { Name(b000, Buffer(4) {}) if (SizeOf(NRMT)) { Store("vvvvvv", Local0) Concatenate(Local0, "PASS:", Local1) Concatenate(":", CTST, Local0) // This - eliminates the effect // Store(s000, Local0) Store("The expected contents of 0-th elements of both Packages - RR44 and RR55", Local0) // The order of RR55 and RR44 is essential, only the first is then corrupted: Store(Local0, Index(RR44, RMRC)) Store(Local0, Index(RR55, RMRC)) m000(0x1000) // m000() Increment(RMRC) } m000(0x1001) // m000() } Method(m002) { Store("ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ RR44", Index(RR44, 0)) Store("ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ RR55", Index(RR55, 0)) Store(10000000000, Local0) Store(0, Local1) if (LEqual(id24, 0)) { // Only this causes the effect: ToBCD(Local0, Local2) } elseif (LEqual(id24, 1)) { Divide(1, Local1, Local2) } elseif (LEqual(id24, 2)) { Divide(1, Local1, Local7, Local2) } elseif (LEqual(id24, 3)) { Store(SizeOf(d9Z0), Local2) } elseif (LEqual(id24, 4)) { Store(0, Local0) Store(Acquire (Local0, 1), Local2) } elseif (LEqual(id24, 5)) { CopyObject(e900, Local0) Add(0, Local0, Local2) } elseif (LEqual(id24, 6)) { CopyObject(e900, Local0) And(0, Local0, Local2) } elseif (LEqual(id24, 7)) { Store("zzzzzxx", Local0) CopyObject(e900, Local1) Concatenate(Local0, Local1, Local2) } elseif (LEqual(id24, 8)) { CopyObject(e900, Local0) CondRefOf(Local0, Local2) } if (LNotEqual(Local2, 0)) { Store("Zizi 012345", Debug) } // If you uncomment this Store the effect will disappear // Store(0, Local0) } // If you uncomment this Store then another one of RR44 and RR55 will be corrupted // (see comment to m001) // Store("m002", NRMT) // Store("--------------!!!!!!!!!!!--------- RR44", Debug) // Store(Index(RR44, 0), Debug) // Store("--------------!!!!!!!!!!!--------- RR55", Debug) // Store(Index(RR55, 0), Debug) Store("---------------------------------- SSSSSSSS 0", Debug) CH03("", 0, 0x002, __LINE__, 0) m002() // Store("---------------------------------- SSSSSSSS 1", Debug) m001() // Store("---------------------------------- SSSSSSSS 2", Debug) m000(0x1009) // m000() if (LEqual(id24, 0)) { if (F64) { CH03("", 0, 0x003, __LINE__, 0) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_AML_NUMERIC_OVERFLOW } } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_AML_NUMERIC_OVERFLOW } } Method(mfaa) { Store(0, id24) mfa9() Store(1, id24) mfa9() Store(2, id24) mfa9() Store(3, id24) mfa9() Store(4, id24) mfa9() Store(5, id24) mfa9() Store(6, id24) mfa9() Store(7, id24) mfa9() Store(8, id24) mfa9() /* Would be useful to continue for other ASL operators */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0198/RUN.asl0000700000175000017500000000317414773714151026367 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 198", TCLD, 198, W017)) { SRMT("mfaa") mfaa() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0198/MAIN.asl0000700000175000017500000000413114773714151026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B198.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0198/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0198/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0198/DECL.0000.asl0000700000175000017500000001117314773714151027006 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 198: * * COMPONENT: * * SUMMARY: */ Method(mfa9) { Event(e900) Event(e9Z0) Mutex(mx90, 0) Mutex(mx91, 0) Device(d900) { Name(i900, 0xabcd0017) } Device(d9Z0) { Name(i900, 0xabcd0017) } ThermalZone(tz90) {} ThermalZone(tz91) {} Processor(pr90, 0, 0xFFFFFFFF, 0) {} Processor(pr91, 0, 0xFFFFFFFF, 0) {} OperationRegion(r900, SystemMemory, 0x100, 0x100) OperationRegion(r9Z0, SystemMemory, 0x100, 0x100) PowerResource(pw90, 1, 0) {Method(mmmm){return (0)}} PowerResource(pw91, 1, 0) {Method(mmmm){return (0)}} Name(RMRC, 0) Name(NRMT, "QQQQ") Name(CTST, "CTST") Name(RR44, Package(8) {}) Name(RR55, Package(8) {}) Name(s000, "The expected contents of 0-th elements of both Packages - RR44 and RR55") // Error checking Method(m000, 1) { Store("======================================== sit 1", Debug) Store(arg0, Debug) Store(RMRC, Debug) Store(DerefOf(Index(RR44, 0)), Debug) Store(DerefOf(Index(RR55, 0)), Debug) Store(DerefOf(Index(RR44, 0)), Local0) Store(DerefOf(Index(RR55, 0)), Local1) if (LNotEqual(Local0, s000)) { // Store("Error 0", Debug) err("", zFFF, __LINE__, 0, 0, Local0, s000) } if (LNotEqual(Local1, s000)) { // Store("Error 1", Debug) err("", zFFF, __LINE__, 0, 0, Local0, s000) } Store("========================================.", Debug) } Method(m001) { Name(b000, Buffer(4) {}) if (SizeOf(NRMT)) { Store("vvvvvv", Local0) Concatenate(Local0, "PASS:", Local1) Concatenate(":", CTST, Local0) // This - eliminates the effect // Store(s000, Local0) Store("The expected contents of 0-th elements of both Packages - RR44 and RR55", Local0) // The order of RR55 and RR44 is essential, only the first is then corrupted: Store(Local0, Index(RR44, RMRC)) Store(Local0, Index(RR55, RMRC)) m000(0x1000) // m000() Increment(RMRC) } m000(0x1001) // m000() } Method(m002) { Store("ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ RR44", Index(RR44, 0)) Store("ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ RR55", Index(RR55, 0)) Store(10000000000, Local0) // Store(1000000, Local0) Store(0, Local1) ToBCD(Local0, Local2) // These don't cause the effect: // Divide(1, Local1, Local2) // Divide(1, Local1, Local7, Local2) // Store(SizeOf(d9Z0), Local2) if (LNotEqual(Local2, 0)) { Store("Zizi 012345", Debug) } // If you uncomment this Store the effect will disappear // Store(0, Local0) } // If you uncomment this Store then another one of RR44 and RR55 will be corrupted // (see comment to m001) // Store("m002", NRMT) // Store("--------------!!!!!!!!!!!--------- RR44", Debug) // Store(Index(RR44, 0), Debug) // Store("--------------!!!!!!!!!!!--------- RR55", Debug) // Store(Index(RR55, 0), Debug) Store("---------------------------------- SSSSSSSS 0", Debug) CH03("", 0, 0x002, __LINE__, 0) m002() // Store("---------------------------------- SSSSSSSS 1", Debug) m001() // Store("---------------------------------- SSSSSSSS 2", Debug) m000(0x1009) // m000() if (F64) { CH03("", 0, 0x003, __LINE__, 0) } else { CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_AML_NUMERIC_OVERFLOW } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0255_DEMO_IMPOSSIBLE/0000700000175000017500000000000014773714152027537 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0255_DEMO_IMPOSSIBLE/DECL.asl0000700000175000017500000000330214773714152030750 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 255: * * SUMMARY: The multi-threading test mt_mutex/mf07 fails/crashes/hangs on 20060828 * * Note: it requires to run on 20060828. */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0278/0000700000175000017500000000000014773714152025212 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0278/DECL.asl0000700000175000017500000001270314773714152026430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 278: * * SUMMARY: "Namespace location to be relative" functionality of Load operator issue */ Device (D278) { Name (SSDT, Buffer (0x5F) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x5F, 0x00, 0x00, 0x00, // SSDT_... /* 0008 */ 0x02, 0x2D, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // .-Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x10, 0x1F, 0x5C, 0x00, // ... ..\. /* 0028 */ 0x08, 0x4E, 0x41, 0x42, 0x53, 0x0D, 0x61, 0x62, // .NABS.ab /* 0030 */ 0x73, 0x6F, 0x6C, 0x75, 0x74, 0x65, 0x20, 0x6C, // solute l /* 0038 */ 0x6F, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, // ocation /* 0040 */ 0x6F, 0x62, 0x6A, 0x00, 0x08, 0x4E, 0x43, 0x52, // obj..NCR /* 0048 */ 0x52, 0x0D, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6E, // R.curren /* 0050 */ 0x74, 0x20, 0x6C, 0x6F, 0x63, 0x61, 0x74, 0x69, // t locati /* 0058 */ 0x6F, 0x6E, 0x20, 0x6F, 0x62, 0x6A, 0x00 // on obj. }) OperationRegion (IST0, SystemMemory, 0x00, 0x5F) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 760 } Name (DDBH, 0x00) Method (TST0, 0, NotSerialized) { /* Check absence */ If (CondRefOf (NABS, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "NABS", 0x01) } If (CondRefOf (NCRR, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "NCRR", 0x01) } RFU0 = SSDT /* \D278.SSDT */ Load (RFU0, DDBH) /* \D278.DDBH */ Debug = "SSDT loaded" /* Check existence */ If (CondRefOf (NABS, Local0)) { If (("absolute location obj" != DerefOf (Local0))) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "absolute location NABS", 0x01) } } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "NABS", 0x00) } If (CondRefOf (NCRR, Local0)) { If (("current location obj" != DerefOf (Local0))) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "current location NCRR", 0x01) } } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "NCRR", 0x00) } /* Check location */ If (CondRefOf (\NABS, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\NABS", 0x00) } If (CondRefOf (\NCRR, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\NCRR", 0x01) } If (CondRefOf (\D278.NCRR, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\D278.NCRR", 0x01) } If (CondRefOf (\D278.TST0.NCRR, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\D278.TST0.NCRR", 0x00) } Unload (DDBH) Debug = "SSDT unloaded" /* Check absence */ If (CondRefOf (NABS, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "NABS", 0x01) } If (CondRefOf (NCRR, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "NCRR", 0x01) } } } Method (M278, 0, NotSerialized) { \D278.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0278/RUN.asl0000700000175000017500000000362114773714152026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 278", TCLD, 0x0116, W017)) { SRMT ("m278") M278 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0278/MAIN.asl0000700000175000017500000000413114773714152026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B278.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0278/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0278/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0278/ssdt.asl0000700000175000017500000000350614773714152026677 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "ssdt.aml", // Output filename "SSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Scope(\) { Name(NABS, "absolute location obj") } Name(NCRR, "current location obj") } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0011_ASL/0000700000175000017500000000000014773714147025676 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0011_ASL/DECL.asl0000700000175000017500000000572114773714147027116 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0011: * * SUMMARY: The ASL Compiler crashes on Create*Field for invalid FieldName parameter * * ASL-compile crashes while parsing the code below */ Method(mdaa, 4) { // Compiler succeeds for these Create*Field // (FieldName specified directly): CreateBitField (arg0, arg1, bf00) CreateByteField (arg0, arg1, bf01) CreateDWordField (arg0, arg1, bf02) CreateField (arg0, arg1, arg2, bf03) CreateQWordField (arg0, arg1, bf04) CreateWordField (arg0, arg1, bf05) // Compiler crashes for each of these Create*Field // (FieldName specified by LocalX): Store("bf06", Local0) Store("bf07", Local1) Store("bf08", Local2) Store("bf09", Local3) Store("bf0a", Local4) Store("bf0b", Local5) CreateBitField (arg0, arg1, Local0) CreateByteField (arg0, arg1, Local1) CreateDWordField (arg0, arg1, Local2) CreateField (arg0, arg1, arg2, Local3) CreateQWordField (arg0, arg1, Local4) CreateWordField (arg0, arg1, Local5) // Compiler crashes for each of these Create*Field // (FieldName specified by ArgX): CreateBitField (arg0, arg1, arg3) CreateByteField (arg0, arg1, arg3) CreateDWordField (arg0, arg1, arg3) CreateField (arg0, arg1, arg2, arg3) CreateQWordField (arg0, arg1, arg3) CreateWordField (arg0, arg1, arg3) } Method(mdab) { Name(b000, Buffer(100){}) mdaa(b000, 0, 0, "d000") } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0011_ASL/MAIN.asl0000700000175000017500000000414114773714147027126 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B11.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0011_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0011_ASL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0298_ACTIONS_REQUIRED/0000700000175000017500000000000014773714153027675 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0298_ACTIONS_REQUIRED/DECL.asl0000700000175000017500000000671514773714153031121 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 298: * * SUMMARY: AcpiExOpcode_XA_XT_XR routines assign addresses of released cache objects to WalkState->ResultObj causing further problems * * Note: appearance of bug greatly depends on the memory cache dynamics * * So, PASS of this test doesn't mean yet that the root cause of the problem * has been resolved. */ Mutex (MX00, 0x00) Mutex (MX01, 0x01) Mutex (MX02, 0x02) Mutex (MX03, 0x03) Name (P000, Package (0x01) { 0x67890000 }) Method (M1E7, 0, NotSerialized) { Local0 = 0x0123 Acquire (MX03, 0x0100) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Acquire (MX02, 0x0100) CH04 (__METHOD__, 0x00, 0x40, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ Local2 = RefOf (P000) /* L0(0x004d5ec8, 0x123), L2 (0x004d5dc8, res of RefOf) */ Local3 = DerefOf (Local2) Debug = "Sit 1: Local2 contains bad object there!!!!!" Local5 = (0xABCD0000 && 0xABCD0001) Local0-- /* L0(0x004d5ec8, 0x123), L2 (0x004d5dc8, 0xCACA) */ Debug = "============================== 0" Debug = Local0 Debug = "============================== 1" Local2 = RefOf (P000) Debug = "============================== 2" Local4 = (Local0 + 0x11111111) Debug = Local4 If ((Local4 != 0x11111233)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local4, 0x11111233) } Debug = "============================== 3" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* * The problem is not automatically detected, * so remove this error report after the problem has been resolved. */ ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0298_ACTIONS_REQUIRED/RUN.asl0000700000175000017500000000362114773714153031047 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 298", TCLD, 0x012A, W017)) { SRMT ("m1e7") M1E7 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0298_ACTIONS_REQUIRED/MAIN.asl0000700000175000017500000000417414773714153031133 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B298.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0298_ACTIONS_REQUIRED/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0298_ACTIONS_REQUIRED/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0162/0000700000175000017500000000000014773714151025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0162/DECL.asl0000700000175000017500000000643314773714151026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 162: * * SUMMARY: Crash while processing the global level execution exception * * ROOT CAUSE * * While executing the AML code on a global level (out * of any Method, immediately on a DefinitionBlock level) * and being forced to handle some exception, ACPICA attempts * to retrieve elements of WalkState->MethodNode structure which * is a NULL pointer in that case (global level AML code execution * case). * * TO BE VERIFIED * * Run any Method to check that just after processing * the global level execution exception all became stable. */ /* Set flag - demo-162 is there, allow compiling without it */ Name (BD01, Buffer (ID02 = 0x01){}) /* This declarations forces exception during the load of DefinitionBlock */ Name (I002, 0x0A) Name (BUF0, Buffer ((I002 / 0x00)) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0xFF // . }) /* * md7d - check, register errors and reset the global level execution exception, * set up id01 to non-zero in error case. */ Name (BUF1, Buffer (MD7D ()){}) Method (MD78, 0, NotSerialized) { Debug = "Just after processing the global level execution exception all became stable!" /* * Since exception should be verified before STRT (see MAIN) we * have to initiate err here, to log the error in a usual way. */ If (ID01) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0162/RUN.asl0000700000175000017500000000361714773714151026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 162", TCLD, 0xA2, W017)) { SRMT ("md78") MD78 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0162/MAIN.asl0000700000175000017500000000460114773714151026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B162.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0162/DECL.asl") Method(MAIN) { // Check, register errors and reset the global level execution exception // md7d() - do it while BUF1 creation just after BUF0, // otherwise, if doing that there, some other // exception may distort picture. // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0162/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/common/0000700000175000017500000000000014773714153026103 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/common/data.asl0000700000175000017500000002631214773714153027524 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Common use Data */ Name (ID00, 0xE0385BCD) Name (ID01, 0x00) /* Flag of error, used by demo-162 */ Name (ID02, 0x00) /* Flag of presence of demo-162 test */ Name (ID09, 0x00) Name (ID0A, 0x00) Name (ID0B, 0x89ABCDEF) Name (SD00, "String") Name (BD00, Buffer (0x20) { 0x01, 0x02, 0x03, 0x04 // .... }) Name (BD02, Buffer (0x14) { /* 0000 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, // ........ /* 0008 */ 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, // ........ /* 0010 */ 0x20, 0x21, 0x22, 0x23 // !"# }) CreateField (BD00, 0x00, 0x08, BF30) CreateField (BD00, 0x08, 0x41, BF31) Name (PD00, Package (0x01) { Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... } }) Device (DD00) { Name (I900, 0xABCD0017) } Device (DD01) { Name (I900, 0xABCD0017) } Device (DD02) { Name (I900, 0xABCD0017) } Device (DD03) { Name (I900, 0xABCD0017) } Device (DD04) { Name (I900, 0xABCD0017) } Device (DD05) { Name (I900, 0xABCD0017) } Device (DD06) { Name (I900, 0xABCD0017) } Device (DD07) { Name (I900, 0xABCD0017) } OperationRegion (RD00, SystemMemory, 0x0100, 0x0100) Field (RD00, ByteAcc, NoLock, Preserve) { FD00, 8, FD01, 65 } /* * Global CreateField declarations for bug 161 */ /* Comment/uncomment it */ Name (ID03, 0x08) Name (ID04, 0x40) Name (ID05, 0x50) Name (ID06, 0x08) Name (ID07, 0x50) Name (ID08, 0x08) Name (BD03, Buffer (0x14) { /* 0000 */ 0x10, 0x5D, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, // .]...... /* 0008 */ 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, // ........ /* 0010 */ 0x20, 0x21, 0x22, 0x23 // !"# }) /* Caused stack overflow */ CreateField (BD03, 0x20, ID03, BF32) /* CreateField(bd03, 32, 8, bf32) */ CreateField (BD03, 0x28, (ID03 + 0x08), BF33) /* Caused stack overflow */ CreateField (BD03, ID04, 0x08, BF34) /* CreateField(bd03, 64, 8, bf34) */ CreateField (BD03, (ID04 + 0x08), 0x08, BF35) /* Caused stack overflow */ CreateField (BD03, ID05, ID06, BF36) /* CreateField(bd03, 80, 8, bf36) */ CreateField (BD03, (ID07 + 0x08), (ID08 + 0x08), BF37) /* ==================== Additional: */ CreateBitField (BD03, 0x08, BF40) CreateByteField (BD03, 0x01, BF41) CreateWordField (BD03, 0x01, BF42) CreateDWordField (BD03, 0x01, BF43) CreateQWordField (BD03, 0x01, BF44) CreateField (BD03, 0x08, 0x08, BF45) Name (ID21, 0x01) Name (ID22, 0x08) CreateBitField (BD03, ID22, BF46) CreateByteField (BD03, ID21, BF47) CreateWordField (BD03, ID21, BF48) CreateDWordField (BD03, ID21, BF49) CreateQWordField (BD03, ID21, BF4A) CreateField (BD03, 0x08, ID22, BF4B) CreateField (BD03, ID22, 0x08, BF4C) CreateField (BD03, ID22, ID22, BF4D) /* ==================== bug 161. */ /* 161 */ Mutex (MXD0, 0x00) Event (ED00) OperationRegion (RD01, SystemMemory, 0x0100, 0x0100) OperationRegion (RD02, SystemMemory, 0x0100, 0x0100) Name (PD01, Package (0x01) { 0x89ABCDEF }) Name (DD08, 0x12) Name (SD01, "123456789") Name (BD04, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }) Name (ID0C, 0x12) Name (SD02, "123456789") Name (BD05, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }) Name (PD02, Package (0x09) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09 }) OperationRegion (RD03, SystemMemory, 0x0100, 0x0100) Field (RD03, ByteAcc, NoLock, Preserve) { FD02, 8 } Device (DD09) { } Event (ED01) Method (ME53, 0, NotSerialized) { Return (0x12) } Mutex (MXD1, 0x00) PowerResource (PWD0, 0x01, 0x0000) { Method (M001, 0, NotSerialized) { Return (0x00) } } Processor (PRD0, 0x00, 0xFFFFFFFF, 0x00){} ThermalZone (TZD0) { } CreateField (BD05, 0x00, 0x08, BFD0) Name (ID0D, 0x00) Name (ID0E, 0x00) Method (ME69, 0, NotSerialized) { Return (0x12345678) } Name (PD03, Package (0x01) { ME69 }) Name (ID0F, 0x00) Name (ID10, 0x1234) Name (PD04, Package (0x01) { 0x10 }) Name (PD05, Package (0x01) { 0x20 }) Name (PD06, Package (0x01) { 0x30 }) Name (PD07, Package (0x01) { 0x40 }) Name (PD08, Package (0x01) { 0x50 }) Name (PD09, Package (0x01) { 0x60 }) Name (ID11, 0xFE7CB391D650A284) Name (BD06, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x59, 0x06, 0x07, 0x08, // ....Y... /* 0008 */ 0x09 // . }) CreateField (BD06, 0x28, 0x08, BFD1) OperationRegion (RD04, SystemMemory, 0x0100, 0x0100) Field (RD04, ByteAcc, NoLock, Preserve) { FD03, 8 } Name (PD0A, Package (0x01) { ID11 }) Name (PD0B, Package (0x01) { BFD1 }) Name (PD0C, Package (0x01) { FD03 }) Name (SD03, "0123456789a") Name (BD07, Buffer (0x2001){}) Name (SD04, "qwer0000") Name (BD08, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (PD0D, Package (0x03) { 0x05, 0x77, 0x07 }) Name (ID12, 0x77) Name (PD0E, Package (0x01) { 0x77 }) Name (ID13, 0x00) Name (SD05, "q_er0000") Name (BD09, Buffer (0x04) { 0x01, 0x00, 0x03, 0x04 // .... }) Name (PD0F, Package (0x03) { 0x05, 0x00, 0x07 }) Name (ID14, 0x11) Name (ID15, 0x22) Name (ID16, 0x33) Name (ID17, 0x44) Name (ID18, 0x55) Name (ID19, 0x66) Name (ID1A, 0x77) Name (ID1B, 0xFEDCBA9876543210) Name (ID1C, 0xFEDCBA9876543211) Name (ID1D, 0xFEDCBA9876543210) Device (DD0B) { Name (S000, "DEV0") } Event (ED02) OperationRegion (RD05, SystemMemory, 0x0100, 0x0100) Name (BD0A, Buffer (0x09) { 0x10, 0x11, 0x12, 0x13 // .... }) CreateField (BD0A, 0x00, 0x08, BFD2) Name (RTD0, ResourceTemplate () { IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} }) Name (BD0B, ResourceTemplate () { IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} }) Device (DD0C) { } Processor (PRD1, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (RD06, SystemMemory, 0x0100, 0x0100) PowerResource (PWD1, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } ThermalZone (TZD1) { } Event (ED03) Mutex (MXD2, 0x00) Event (ED04) Name (ID1E, 0x19283746) Name (PD10, Package (0x01) { "Package" }) Name (RTD1, ResourceTemplate () { QWordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }) Name (BD0C, ResourceTemplate () { QWordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }) Device (DD0D) { } Processor (PRD2, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (RD07, SystemMemory, 0x0100, 0x0100) PowerResource (PWD2, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } ThermalZone (TZD2) { } Event (ED05) Mutex (MXD3, 0x00) Name (ID1F, 0x31) Name (ID20, 0x07) OperationRegion (RD08, SystemMemory, 0x00, ID1F++) Name (BD0D, Buffer (0x08) { 0x80, 0x99, 0xFF, 0x83, 0x84, 0x85, 0x86, 0x87 // ........ }) CreateField (BD0D, 0x08, ID20++, BFD3) Name (PD11, Package (0x02) { 0x01 }) Name (BD0E, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) /* Base of Buffer Field */ Name (BD0F, Buffer (0x09){}) /* Benchmark buffer */ Name (BD10, Buffer (0x09){}) /* It is used in b198 Name(id24, 0) */ /* Name(id25, 0) */ /* Don't use this name bd13! */ /* Name(bd13, Buffer(9){}) */ Name (ID29, 0x00) Name (ID2A, 0x00) Name (ID2B, 0x00) acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/common/DECL.asl0000700000175000017500000000347014773714153027322 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../../runtime/collections/bdemo/ACPICA/common/data.asl") Include ("../../../../../runtime/collections/bdemo/ACPICA/common/proc.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/common/proc.asl0000700000175000017500000003161714773714153027562 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Common use Methods */ /* * Verification of Package * * arg0 - Package * arg1 - size of Package * arg2 - size of pre-initialized area * arg3 - index of area to be written * arg4 - size of area to be written * arg5 - maximal number of pre-initialized elements to be verified * arg6 - maximal number of written elements to be verified */ Method (MD6A, 7, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) /* Writing */ If (Arg4) { LPN0 = Arg4 LPC0 = Arg3 While (LPN0) { TRC0 (Arg0, LPC0, LPC0) Arg0 [LPC0] = LPC0 /* \MD6A.LPC0 */ LPN0-- LPC0++ } } /* Verifying pre-initialized area */ If ((Arg2 && Arg5)) { If ((Arg2 < Arg5)) { Arg5 = Arg2 } LPN0 = Arg5 LPC0 = 0x00 While (LPN0) { Local0 = DerefOf (Arg0 [LPC0]) TRC1 (Arg0, LPC0, Local0) If ((Local0 != LPC0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, LPC0) } LPN0-- LPC0++ } } If (Arg2) { /* First pre-initialized element */ Local0 = DerefOf (Arg0 [0x00]) TRC1 (Arg0, 0x00, Local0) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } /* Last pre-initialized element */ Local0 = (Arg2 - 0x01) Local1 = DerefOf (Arg0 [Local0]) TRC1 (Arg0, Local0, Local1) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } /* Middle pre-initialized element */ Divide (Arg2, 0x02, Local1, Local0) Local1 = DerefOf (Arg0 [Local0]) TRC1 (Arg0, Local0, Local1) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } } /* Verifying written area */ If ((Arg4 && Arg6)) { If ((Arg4 < Arg6)) { Arg6 = Arg4 } LPN0 = Arg6 LPC0 = Arg3 While (LPN0) { Local0 = DerefOf (Arg0 [LPC0]) TRC1 (Arg0, LPC0, Local0) If ((Local0 != LPC0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, LPC0) } LPN0-- LPC0++ } } If (Arg4) { /* First written element */ Local0 = DerefOf (Arg0 [Arg3]) TRC1 (Arg0, Arg3, Local0) If ((Local0 != Arg3)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Arg3) } /* Last written element */ Local0 = (Arg3 + Arg4) Local0-- Local1 = DerefOf (Arg0 [Local0]) TRC1 (Arg0, Local0, Local1) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } /* Middle written element */ Divide (Arg4, 0x02, Local0, Local1) Local0 = (Arg3 + Local1) Local1 = DerefOf (Arg0 [Local0]) TRC1 (Arg0, Local0, Local1) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } } /* Check exception on access to the uninitialized element */ If ((Arg2 < Arg1)) { If (Arg4) { If ((Arg3 > Arg2)) { /* Just after pre-initialized area */ TRC1 (Arg0, Arg2, 0xF0F0F0F0) Store (Arg0 [Arg2], Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x01, 0x33, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_ELEMENT */ /* Just before written area */ Local1 = (Arg3 - 0x01) TRC1 (Arg0, Local1, 0xF0F0F0F0) Store (Arg0 [Local1], Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x01, 0x33, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_ELEMENT */ } /* Just after pre-initialized and written areas */ Local7 = (Arg3 + Arg4) If ((Arg2 > Local7)) { Local7 = Arg2 } If ((Local7 < Arg1)) { TRC1 (Arg0, Local7, 0xF0F0F0F0) Store (Arg0 [Local7], Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x01, 0x33, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_ELEMENT */ /* Last element of Package */ Local1 = (Arg1 - 0x01) TRC1 (Arg0, Local1, 0xF0F0F0F0) Store (Arg0 [Local1], Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x01, 0x33, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_ELEMENT */ } } Else { /* Just after pre-initialized area */ TRC1 (Arg0, Arg2, 0xF0F0F0F0) Store (Arg0 [Arg2], Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x01, 0x33, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_ELEMENT */ /* Last element of Package */ Local1 = (Arg1 - 0x01) TRC1 (Arg0, Local1, 0xF0F0F0F0) Store (Arg0 [Local1], Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x01, 0x33, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_ELEMENT */ } } /* Check exception on out of Package access */ TRC1 (Arg0, Arg1, 0xF0F0F0F0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = Arg0 [Arg1] CH04 (__METHOD__, 0x00, 0x37, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ Local7 = (Arg1 + 0x01) If ((Local7 >= Arg1)) { TRC1 (Arg0, Local7, 0xF0F0F0F0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = Arg0 [Local7] CH04 (__METHOD__, 0x00, 0x37, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ } If ((0xFFFFFFFFFFFFFFFF >= Arg1)) { TRC1 (Arg0, 0xFFFFFFFFFFFFFFFF, 0xF0F0F0F0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = Arg0 [0xFFFFFFFFFFFFFFFF] CH04 (__METHOD__, 0x00, 0x37, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ } /* Check near the maximal bound of a simple Package */ /* (not VarPackage) - 254, 255, 256, 257 elements: */ MD6B (Arg0, Arg1, Arg2, Arg3, Arg4, 0xFE) MD6B (Arg0, Arg1, Arg2, Arg3, Arg4, 0xFF) MD6B (Arg0, Arg1, Arg2, Arg3, Arg4, 0x0100) MD6B (Arg0, Arg1, Arg2, Arg3, Arg4, 0x0101) TRC2 ("The test run up to the end") } /* * Verification of Package * * arg0 - Package * arg1 - size of Package * arg2 - size of pre-initialized area * arg3 - index of area to be written * arg4 - size of area to be written * arg5 - index of element of Package to be verified */ Method (MD6B, 6, NotSerialized) { Local7 = 0x00 If ((Arg5 < Arg2)) { Local7 = 0x01 } ElseIf ((Arg5 >= Arg3)) { Local0 = (Arg3 + Arg4) If ((Arg5 < Local0)) { Local7 = 0x01 } } If (Local7) { /* Was initialized */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = DerefOf (Arg0 [Arg5]) TRC1 (Arg0, Arg5, Local0) If ((Local0 != Arg5)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Arg5) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } ElseIf ((Arg5 < Arg1)) { /* Check exception on access to the uninitialized element */ TRC1 (Arg0, Arg5, 0xF0F0F0F0) Store (Arg0 [Arg5], Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x01, 0x33, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_ELEMENT */ } Else { /* Check exception on out of Package access */ TRC1 (Arg0, Arg5, 0xF0F0F0F0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = Arg0 [Arg5] CH04 (__METHOD__, 0x00, 0x37, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ } } /* * Check, register errors and reset the global level * execution exception AE_AML_DIVIDE_BY_ZERO caused in * demo-test of bug 162. */ Method (MD7D, 0, NotSerialized) { ID01 = 0x00 Local0 = ERRS /* \ERRS */ /* * Slacken expectations: * * - check opcode of the FIRST exception * - number of exceptions NOT GREATER than two */ /* Check opcode of the first exception */ CH04 (__METHOD__, 0x01, 0x38, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_DIVIDE_BY_ZERO */ /* Number of exceptions not greater than two */ If ((EXC1 > 0x02)) { ID01 = 0x01 } /* Reset the number of exceptions */ EXC1 = 0x00 If ((ERRS != Local0)) { ID01 = 0x01 } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Return (0x01) } /* * Check result * arg0 - result * arg1 - expected type of result * arg2 - expected result * arg3 - index of checking * arg4 - index of checking * arg5 - tag, to check the value of object */ Method (MF88, 6, NotSerialized) { Local0 = ObjectType (Arg0) If ((Local0 != Arg1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Arg1) } If (Arg5) { If ((Arg0 != Arg2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Arg2) } } } Method (M02A, 0, NotSerialized) { Debug = "Check the error manually and remove call to m02a() when the bug is fixed." ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/common/data.src.asl0000700000175000017500000001642014773714153030311 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Common use Data */ Name(id00, 0xe0385bcd) Name(id01, 0) // Flag of error, used by demo-162 Name(id02, 0) // Flag of presence of demo-162 test Name(id09, 0) Name(id0a, 0) Name(id0b, 0x89abcdef) Name(sd00, "String") Name(bd00, Buffer(32) {1,2,3,4}) Name(bd02, Buffer() {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19, 0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x21,0x22,0x23}) CreateField(bd00, 0, 8, bf30) CreateField(bd00, 8, 65, bf31) Name(pd00, Package(1){Buffer() {1,2,3,4}}) Device(dd00) { Name(i900, 0xabcd0017) } Device(dd01) { Name(i900, 0xabcd0017) } Device(dd02) { Name(i900, 0xabcd0017) } Device(dd03) { Name(i900, 0xabcd0017) } Device(dd04) { Name(i900, 0xabcd0017) } Device(dd05) { Name(i900, 0xabcd0017) } Device(dd06) { Name(i900, 0xabcd0017) } Device(dd07) { Name(i900, 0xabcd0017) } OperationRegion(rd00, SystemMemory, 0x100, 0x100) Field(rd00, ByteAcc, NoLock, Preserve) {fd00,8,fd01,65} /* * Global CreateField declarations for bug 161 */ /* !!!!!!!!!!!!!! uncomment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Name(id03, 8) Name(id04, 64) Name(id05, 80) Name(id06, 8) Name(id07, 80) Name(id08, 8) Name(bd03, Buffer() {0x10,0x5d,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19, 0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x21,0x22,0x23}) // Caused stack overflow // CreateField(bd03, 32, id03, bf32) CreateField(bd03, 32, 8, bf32) CreateField(bd03, 40, Add(id03, 8), bf33) // Caused stack overflow // CreateField(bd03, id04, 8, bf34) CreateField(bd03, 64, 8, bf34) CreateField(bd03, Add(id04, 8), 8, bf35) // Caused stack overflow // CreateField(bd03, id05, id06, bf36) CreateField(bd03, 80, 8, bf36) CreateField(bd03, Add(id07, 8), Add(id08, 8), bf37) // ==================== Additional: CreateBitField(bd03, 8, bf40) CreateByteField(bd03, 1, bf41) CreateWordField(bd03, 1, bf42) CreateDWordField(bd03, 1, bf43) CreateQWordField(bd03, 1, bf44) CreateField(bd03, 8, 8, bf45) Name(id21, 1) Name(id22, 8) CreateBitField(bd03, id22, bf46) CreateByteField(bd03, id21, bf47) CreateWordField(bd03, id21, bf48) CreateDWordField(bd03, id21, bf49) CreateQWordField(bd03, id21, bf4a) CreateField(bd03, 8, id22, bf4b) CreateField(bd03, id22, 8, bf4c) CreateField(bd03, id22, id22, bf4d) */ // ==================== bug 161. Mutex(mxd0, 0) Event(ed00) OperationRegion(rd01, SystemMemory, 0x100, 0x100) OperationRegion(rd02, SystemMemory, 0x100, 0x100) Name(pd01, Package(){0x89abcdef}) Name(dd08, 0x12) Name(sd01, "123456789") Name(bd04, Buffer() {1,2,3,4,5,6,7,8,9}) Name(id0c, 0x12) Name(sd02, "123456789") Name(bd05, Buffer() {1,2,3,4,5,6,7,8,9}) Name(pd02, Package() {1,2,3,4,5,6,7,8,9}) OperationRegion(rd03, SystemMemory, 0x100, 0x100) Field(rd03, ByteAcc, NoLock, Preserve) { fd02, 8 } Device(dd09) {} Event(ed01) Method(me53) { return (0x12) } Mutex(mxd1, 0) PowerResource(pwd0, 1, 0) {Method(m001){return (0)}} Processor(prd0, 0, 0xFFFFFFFF, 0) {} ThermalZone(tzd0) {} CreateField(bd05, 0, 8, bfd0) Name(id0d, 0) Name(id0e, 0) Method(me69) { return (0x12345678) } Name(pd03, Package() {me69}) Name(id0f, 0) Name(id10, 0x1234) Name(pd04, Package(){0x10}) Name(pd05, Package(){0x20}) Name(pd06, Package(){0x30}) Name(pd07, Package(){0x40}) Name(pd08, Package(){0x50}) Name(pd09, Package(){0x60}) Name(id11, 0xfe7cb391d650a284) Name(bd06, Buffer() {1,2,3,4,0x59,6,7,8,9}) CreateField(bd06, 40, 8, bfd1) OperationRegion(rd04, SystemMemory, 0x100, 0x100) Field(rd04, ByteAcc, NoLock, Preserve) {fd03,8} Name(pd0a, Package() {id11}) Name(pd0b, Package() {bfd1}) Name(pd0c, Package() {fd03}) Name(sd03, "0123456789a") Name(bd07, Buffer(8193){}) Name(sd04, "qwer0000") Name(bd08, Buffer(4) {1,0x77,3,4}) Name(pd0d, Package(3) {5,0x77,7}) Name(id12, 0x77) Name(pd0e, Package(1) {0x77}) Name(id13, 0) Name(sd05, "q_er0000") Name(bd09, Buffer(4) {1,0,3,4}) Name(pd0f, Package(3) {5,0,7}) Name(id14, 0x11) Name(id15, 0x22) Name(id16, 0x33) Name(id17, 0x44) Name(id18, 0x55) Name(id19, 0x66) Name(id1a, 0x77) Name(id1b, 0xfedcba9876543210) Name(id1c, 0xfedcba9876543211) Name(id1d, 0xfedcba9876543210) Device(dd0b) {Name(s000, "DEV0")} Event(ed02) OperationRegion(rd05, SystemMemory, 0x100, 0x100) Name(bd0a, Buffer(9){0x10,0x11,0x12,0x13}) CreateField(bd0a, 0, 8, bfd2) Name (rtd0, ResourceTemplate () { IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16) {2} }) Name (bd0b, Buffer () { 0x22, 0x02, 0x00, 0x2a, 0x04, 0x02, 0x22, 0x02, 0x00, 0x2a, 0x04, 0x02, 0x79, 0xdf, }) Device(dd0c){} Processor(prd1, 0, 0xFFFFFFFF, 0) {} OperationRegion(rd06, SystemMemory, 0x100, 0x100) PowerResource(pwd1, 1, 0) {Method(mmmm){return (0)}} ThermalZone(tzd1) {} Event(ed03) Mutex(mxd2, 0) Event(ed04) Name(id1e, 0x19283746) Name(pd10, Package(1){"Package"}) Name (rtd1, ResourceTemplate () { QWordSpace (0xc0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0a, 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff)}) Name (bd0c, Buffer () { 0x8a, 0x2b, 0x00, 0xc0, 0x00, 0x0a, 0xdf, 0xde, 0xdd, 0xdc, 0xdb, 0xda, 0xd9, 0xd8, 0xe7, 0xe6, 0xe5, 0xe4, 0xe3, 0xe2, 0xe1, 0xe0, 0xef, 0xee, 0xed, 0xec, 0xeb, 0xea, 0xe9, 0xe8, 0xf7, 0xf6, 0xf5, 0xf4, 0xf3, 0xf2, 0xf1, 0xf0, 0xff, 0xfe, 0xfd, 0xfc, 0xfb, 0xfa, 0xf9, 0xf8, 0x79, 0x00}) Device(dd0d){} Processor(prd2, 0, 0xFFFFFFFF, 0) {} OperationRegion(rd07, SystemMemory, 0x100, 0x100) PowerResource(pwd2, 1, 0) {Method(mmmm){return (0)}} ThermalZone(tzd2) {} Event(ed05) Mutex(mxd3, 0) Name(id1f, 49) Name(id20, 7) OperationRegion(rd08, SystemMemory, 0, Increment(id1f)) Name(bd0d, Buffer(8) {0x80, 0x99, 0xff, 0x83, 0x84, 0x85, 0x86, 0x87}) CreateField(bd0d, 8, Increment(id20), bfd3) Name(pd11, Package(2) {1}) Name(bd0e, Buffer(4) {1,0x77,3,4}) // Base of Buffer Field Name(bd0f, Buffer(9){}) // Benchmark buffer Name(bd10, Buffer(9){}) acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0058/0000700000175000017500000000000014773714150025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0058/DECL.asl0000700000175000017500000001422514773714150026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0058: * * SUMMARY: Concatenate of two Integers may operates in 32-bit mode as in 64-bit mode * * These are three appearances probably * of one the same differently looking bug. * Concatenate Operator seems to have * indirect effect in all those cases. */ Method (MDF5, 1, NotSerialized) { Debug = "Run mdf5:" If (Arg0) { Debug = "===================== 0:" Local0 = Concatenate (0x01, 0x02) If (F64) { If ((Local0 != Buffer (0x10) { /* 0000 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x10) { /* 0000 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }) } } ElseIf ((Local0 != Buffer (0x08) { 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 // ........ })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x08) { 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 // ........ }) } } Else { Debug = "===================== 1:" } } Method (MDF6, 1, NotSerialized) { Debug = "Run mdf6:" If (Arg0) { Debug = "===================== 2:" Local0 = Concatenate (0x1234, 0x7890) If (F64) { If ((Local0 != Buffer (0x10) { /* 0000 */ 0x34, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 4....... /* 0008 */ 0x90, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // .x...... })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x10) { /* 0000 */ 0x34, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 4....... /* 0008 */ 0x90, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // .x...... }) } } ElseIf ((Local0 != Buffer (0x08) { 0x34, 0x12, 0x00, 0x00, 0x90, 0x78, 0x00, 0x00 // 4....x.. })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x08) { 0x34, 0x12, 0x00, 0x00, 0x90, 0x78, 0x00, 0x00 // 4....x.. }) } } Else { Debug = "===================== 3:" } } Method (MDF7, 0, NotSerialized) { Debug = "Run mdf7:" Local0 = Concatenate (0x01, 0x02) If (F64) { If ((Local0 != Buffer (0x10) { /* 0000 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x10) { /* 0000 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }) } } ElseIf ((Local0 != Buffer (0x08) { 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 // ........ })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x08) { 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 // ........ }) } Debug = Local0 } Method (MDF8, 0, NotSerialized) { MDF5 (0x00) MDF6 (0x00) MDF7 () MDF5 (0x01) MDF6 (0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0058/RUN.asl0000700000175000017500000000361614773714150026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 58", TCLD, 0x3A, W017)) { SRMT ("mdf8") MDF8 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0058/MAIN.asl0000700000175000017500000000413114773714150026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B58.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0058/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0058/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0163_ML/0000700000175000017500000000000014773714151025572 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0163_ML/DECL.asl0000700000175000017500000000421614773714151027010 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 163: * * SUMMARY: The copy of Device object to LocalX is not ever released * * Only, to demonstrate visually the rate of execution * before and after the patch has been applied. */ Method(mf4a) { Device(d900) {} CopyObject(d900, Local0) } Method(mf4b) { Store("mf4b started", Debug) Device(d900) {} Name(num, 100) Name(lpN0, 0) Name(lpC0, 0) Store(num, lpN0) Store(0, lpC0) While (lpN0) { CopyObject(d900, Local0) Store(lpC0, Debug) Decrement(lpN0) Increment(lpC0) } Store("mf4b finished", Debug) } Method(mf4c) { mf4a() mf4b() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0163_ML/RUN.asl0000700000175000017500000000317414773714151026747 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 163", TCLD, 163, W017)) { SRMT("mf4c") mf4c() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0163_ML/MAIN.asl0000700000175000017500000000413714773714151027027 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B163.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0163_ML/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0163_ML/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0023/0000700000175000017500000000000014773714147025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0023/DECL.asl0000700000175000017500000000553114773714147026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0023: * * SUMMARY: FromBCD/ToBCD works incorrectly in 64-bit mode starting with the large enough values */ Method (MDB8, 0, NotSerialized) { /* Ok, FromBCD(0x9999999999) */ Local0 = 0x0000009999999999 Local1 = 0x00000002540BE3FF CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) FromBCD (Local0, Local2) If ((Local2 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, Local1) } /* Bug, FromBCD(0x10000000000) */ Local0 = 0x0000010000000000 Local1 = 0x00000002540BE400 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) FromBCD (Local0, Local2) If ((Local2 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, Local1) } /* Ok, ToBCD(10000000000) */ Local0 = 0x00000002540BE400 Local1 = 0x0000010000000000 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) ToBCD (Local0, Local2) If ((Local2 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, Local1) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0023/RUN.asl0000700000175000017500000000401014773714147026345 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 23", TCLD, 0x17, W017)) { SRMT ("mdb8") If (F64) { MDB8 () } Else { SKIP () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0023/MAIN.asl0000700000175000017500000000413114773714147026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B23.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0023/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0023/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0164_ACTION_REQUIRED/0000700000175000017500000000000014773714151027540 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0164_ACTION_REQUIRED/DECL.asl0000700000175000017500000000362014773714151030754 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 164: * * SUMMARY: Subtest m22d of Reference test started causing exceptions since 20050526 */ Check the result of sub-test m22d of test of references. Below, from bug report # 164: This is a regression. I don't investigate it. The subtest m22d() of Reference test passed on 20050513 but started to cause exceptions since 20050526. Thanks acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0224/0000700000175000017500000000000014773714152025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0224/DECL.asl0000700000175000017500000000603714773714152026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 224: * * SUMMARY: AcpiExec is unable to emulate access to IndexField Object */ Method (M10C, 0, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, 0x0100) Method (CHCK, 3, NotSerialized) { If ((Arg0 != Arg1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Field (OPR0, WordAcc, NoLock, WriteAsZeros) { IDX0, 16, DTA0, 16 } IndexField (IDX0, DTA0, WordAcc, NoLock, WriteAsZeros) { IDF0, 8, , 4, IDF1, 8, IDF2, 8, Offset (0x04), IDF3, 8 } Method (M000, 3, NotSerialized) { Local0 = RefOf (Arg1) DerefOf (Local0) = Arg2 Local1 = DerefOf (Arg1) CHCK (Local1, Arg2, Arg0) } Method (M001, 3, NotSerialized) { Local1 = DerefOf (Arg1) CHCK (Local1, Arg2, Arg0) } M000 (0x00, RefOf (IDF0), 0x12) M000 (0x01, RefOf (IDF1), 0x34) M000 (0x02, RefOf (IDF2), 0x56) M000 (0x03, RefOf (IDF3), 0x78) M000 (0x04, RefOf (IDF0), 0x12) M000 (0x05, RefOf (IDF1), 0x34) M000 (0x06, RefOf (IDF2), 0x56) M000 (0x07, RefOf (IDF3), 0x78) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0224/RUN.asl0000700000175000017500000000361714773714152026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 224", TCLD, 0xE0, W017)) { SRMT ("m10c") M10C () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0224/MAIN.asl0000700000175000017500000000413114773714152026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B224.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0224/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0224/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0168_ACT_REQ_NOPT/0000700000175000017500000000000014773714151027245 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0168_ACT_REQ_NOPT/DECL.asl0000700000175000017500000000516114773714151030463 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 168: * * SUMMARY: Wrong specific Package obtained for not optimized AML code * * The demo shows different behavior of the AML codes * obtained without and with -oa option: * * Method(mf59, 1) {Return(Index(Package(){2, 12}, arg0)} * Both AML codes deal with 2-element Packages, but unexpectedly * the elements of the Package in the not optimized case are: * * [ACPI Debug] (00) Integer: 0x000000000000000C * [ACPI Debug] (01) * * against the properly built elements in the optimized case: * * [ACPI Debug] (00) Integer: 0x0000000000000002 * [ACPI Debug] (01) Integer: 0x000000000000000C * * * NOTE: run it in both modes - opt & nopt */ Method(mf59, 1) {Return (Index(Package(){2, 12}, arg0))} Method(mf5a) { Store(mf59(0), Debug) Store(mf59(0), Local0) Store(DerefOf(Local0), Local1) if (LNotEqual(Local1, 2)){ err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(mf59(1), Debug) Store(mf59(1), Local0) Store(DerefOf(Local0), Local1) if (LNotEqual(Local1, 12)){ err("", zFFF, __LINE__, 0, 0, Local1, 12) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0168_ACT_REQ_NOPT/RUN.asl0000700000175000017500000000317414773714151030422 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 168", TCLD, 168, W017)) { SRMT("mf5a") mf5a() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0168_ACT_REQ_NOPT/MAIN.asl0000700000175000017500000000416414773714151030502 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B168.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0168_ACT_REQ_NOPT/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0168_ACT_REQ_NOPT/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0035_ASL/0000700000175000017500000000000014773714147025704 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0035_ASL/DECL.asl0000700000175000017500000000401614773714147027120 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0035: * * SUMMARY: The DMA Resource Descriptor Macro (specification, compilation error, to strengthen the ASL Compiler input control) * * ASL compiler should report errors. */ Method(mdcc) { Name(RT00, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8) {8} }) Name(RT01, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8) {1,1} }) Name(RT02, ResourceTemplate () { DMA (Compatibility, , Transfer8) {1,2} }) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0035_ASL/MAIN.asl0000700000175000017500000000402314773714147027133 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B35.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0035_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0031_ASL_RUNTIME/0000700000175000017500000000000014773714147027103 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0031_ASL_RUNTIME/DECL.asl0000700000175000017500000001523314773714147030322 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0031: * * SUMMARY: The ASL Compiler doesn't try to detect and reject attempts to use object before its declaration is evaluated * * ASL-compiler doesn't result in Error * * ATTENTION: * * Note 1: This test now is a run-time test because the ASL compiler doesn't * actually detect and prohibit (my mistake) use of object before its * declaration. After this bug of ASL compiler is fixed move this bdemo * to non-run-time bug tests but don't forget to move all positive checkings * of it in other run-time tests. * * Note 2: Since the ability itself to tun this test is error * the test returns Error unconditionally (Method m1dc). * But only one that error is expected. When the bug is * fixed we will encounter that the test is no more * compiled and fix it (see Note 1). */ Name (ID28, 0x00) Method (MDC7, 0, Serialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) I000 = 0x12345678 Name (I000, 0x00) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } Method (M800, 0, Serialized) { Name (I000, 0x00) Method (M000, 0, Serialized) { Debug = I000 /* \M800.M000.I000 */ Name (I000, 0xFFFFFFFF) } } Method (M801, 0, NotSerialized) { Method (M000, 0, Serialized) { Debug = ID28 /* \M801.M000.ID28 */ Name (ID28, 0xFFFFFFFF) } } Method (M802, 0, Serialized) { Name (I000, 0x00) I000 = 0xABCD0000 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Name (I001, 0x00) I001 = 0xABCD0001 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Name (I002, 0xABCD0002) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If (Y084) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Method (M000, 0, Serialized) { Name (I000, 0xABCD0003) If ((I000 != 0xABCD0003)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0003) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Method (M001, 0, Serialized) { Name (I000, 0xABCD0004) I000 = 0xABCD0005 If ((I000 != 0xABCD0005)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0005) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Method (M002, 0, Serialized) { Debug = I000 /* \M802.M002.I000 */ Name (I000, 0xABCD0006) I000 = 0xABCD0007 If ((I000 != 0xABCD0007)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0007) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Method (M003, 0, Serialized) { Debug = "------------------------------ 000000000" Debug = ID28 /* \M802.M003.ID28 */ Name (ID28, 0xABCD0008) If ((ID28 != 0xABCD0008)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID28, 0xABCD0008) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((I000 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0000) } If ((I001 != 0xABCD0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I001, 0xABCD0001) } If ((I002 != 0xABCD0002)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I002, 0xABCD0002) } If (Y084) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M001 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M002 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M003 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Else { SRMT ("sub-tests-of-m802") BLCK () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) II99 = 0xABCD0009 Name (II99, 0x00) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } Method (M1DC, 0, NotSerialized) { /* Successful compilation itself of this test is error */ ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Method (MDC6, 0, NotSerialized) { SRMT ("mdc7") MDC7 () SRMT ("m800") M800 () SRMT ("m801") M801 () SRMT ("m802") M802 () SRMT ("m1dc") M1DC () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0031_ASL_RUNTIME/RUN.asl0000700000175000017500000000356414773714147030263 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 31", TCLD, 0x1F, W017)) { MDC6 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0031_ASL_RUNTIME/MAIN.asl0000700000175000017500000000416114773714147030335 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B31.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0031_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0031_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0260/0000700000175000017500000000000014773714152025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0260/DECL.asl0000700000175000017500000000760114773714152026420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 260: * * SUMMARY: For a DDBHandle Object ObjectType unexpectedly results in AE_AML_INTERNAL */ Method (M029, 0, Serialized) { Name (BUF0, Buffer (0x42) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x42, 0x00, 0x00, 0x00, // SSDTB... /* 0008 */ 0x02, 0x81, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x11, 0x10, 0x06, 0x20, 0x5B, 0x82, 0x1C, 0x41, // ... [..A /* 0028 */ 0x55, 0x58, 0x44, 0x14, 0x16, 0x4D, 0x30, 0x30, // UXD..M00 /* 0030 */ 0x30, 0x00, 0xA4, 0x0D, 0x5C, 0x41, 0x55, 0x58, // 0...\AUX /* 0038 */ 0x44, 0x2E, 0x4D, 0x30, 0x30, 0x30, 0x20, 0x28, // D.M000 ( /* 0040 */ 0x29, 0x00 // ). }) OperationRegion (IST0, SystemMemory, 0x00, 0x42) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 528 } Method (M000, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) RFU0 = BUF0 /* \M029.BUF0 */ If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (Zero) } Load (IST0, Local2) Debug = "SSDT loaded" If (CondRefOf (\AUXD, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (Zero) } Local1 = ObjectType (Local2) If ((Local1 != 0x0F)) { Debug = Local1 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x0F) Return (Zero) } Unload (Local2) Debug = "SSDT unloaded" If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Return (Zero) } M000 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0260/RUN.asl0000700000175000017500000000362114773714152026353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 260", TCLD, 0x0104, W017)) { SRMT ("m029") M029 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0260/MAIN.asl0000700000175000017500000000413114773714152026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B260.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0260/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0260/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0055_ASL/0000700000175000017500000000000014773714150025700 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0055_ASL/DECL.asl0000700000175000017500000000362714773714150027123 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0055: * * SUMMARY: The ASL Compiler should reject the same Interrupt numbers (Interrupt macros) * * Compiler should return error... */ Method(mdeb) { Name(RT00, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) {9, 9} }) Store("The contents of the obtained Interrupt Descriptor:", Debug) Store(RT00, Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0055_ASL/MAIN.asl0000700000175000017500000000402314773714150027127 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B55.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0055_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0122_ASL/0000700000175000017500000000000014773714150025673 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0122_ASL/DECL.asl0000700000175000017500000000346014773714150027111 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 122: * * SUMMARY: The ASL Compiler doesn't report Error/Warning for zero NumBits parameter of CreateField operator * * Compiler should return error... */ Method(mf04) { Name(b000, Buffer(2){0xff, 0xff}) CreateField(b000, 3, 0, bf00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0122_ASL/MAIN.asl0000700000175000017500000000402314773714150027122 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B122.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0122_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0199/0000700000175000017500000000000014773714151025213 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0199/DECL.asl0000700000175000017500000000641714773714151026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 199: * * SUMMARY: No exception on DerefOf for parameter which is none of ObjectReference/IndexReference/String */ Method(mfb2,, Serialized) { Name(b000, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) Name(i000, 0xabbc0000) Name(p000, Package() {1,2,3,4}) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(b000), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE CH03("", 0, 0x002, __LINE__, 0) Store(DerefOf(i000), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE CH03("", 0, 0x004, __LINE__, 0) Store(DerefOf(p000), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } Method(mfb3,, Serialized) { Event(e000) Mutex(mx00, 0) Device(d000) { Name(i900, 0xabcd0017) } ThermalZone(tz00) {} Processor(pr00, 0, 0xFFFFFFFF, 0) {} OperationRegion(r000, SystemMemory, 0x100, 0x100) PowerResource(pw00, 1, 0) {Method(mmmm){return (0)}} CH03("", 0, 0x006, __LINE__, 0) Store(DerefOf(e000), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE CH03("", 0, 0x008, __LINE__, 0) Store(DerefOf(mx00), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE CH03("", 0, 0x00a, __LINE__, 0) Store(DerefOf(d000), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE CH03("", 0, 0x00c, __LINE__, 0) Store(DerefOf(tz00), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE CH03("", 0, 0x00e, __LINE__, 0) Store(DerefOf(pr00), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE CH03("", 0, 0x010, __LINE__, 0) Store(DerefOf(r000), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE CH03("", 0, 0x012, __LINE__, 0) Store(DerefOf(pw00), Local0) CH04("", 1, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0199/RUN.asl0000700000175000017500000000322214773714151026362 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 199", TCLD, 199, W017)) { SRMT("mfb2") mfb2() SRMT("mfb3") mfb3() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0199/MAIN.asl0000700000175000017500000000413114773714151026442 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B199.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0199/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0199/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0138/0000700000175000017500000000000014773714151025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0138/DECL.asl0000700000175000017500000000502714773714151026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 138: * * SUMMARY: 8 bytes but not 4 expected ones are written to BufferField in 32-bit mode * * ROOT CAUSE */ Method (MF29, 0, Serialized) { Name (B000, Buffer (0x0C){}) CreateField (B000, 0x00, 0x48, BF00) BF00 = 0xFEDCBA9876543210 If ((BF00 != Buffer (0x09) { /* 0000 */ 0x10, 0x32, 0x54, 0x76, 0x00, 0x00, 0x00, 0x00, // .2Tv.... /* 0008 */ 0x00 // . })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF00, Buffer (0x09) { /* 0000 */ 0x10, 0x32, 0x54, 0x76, 0x00, 0x00, 0x00, 0x00, // .2Tv.... /* 0008 */ 0x00 // . }) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0138/RUN.asl0000700000175000017500000000401114773714151026350 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 138", TCLD, 0x8A, W017)) { SRMT ("mf29") If (F64) { SKIP () } Else { MF29 () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0138/MAIN.asl0000700000175000017500000000413214773714151026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B138.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0138/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0138/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0017/0000700000175000017500000000000014773714147025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0017/DECL.asl0000700000175000017500000000570114773714147026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0017: * * SUMMARY: LEqual works incorrectly for Buffer-operands containing zero */ Method (MDB2, 0, NotSerialized) { Local0 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x25 // !".% } Local1 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x26 // !".& } If ((Local0 == Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } If ((Local0 != Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x25 // !".% })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x25 // !".% }) } If ((Local1 != Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x26 // !".& })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x26 // !".& }) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0017/RUN.asl0000700000175000017500000000361614773714147026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 17", TCLD, 0x11, W017)) { SRMT ("mdb2") MDB2 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0017/MAIN.asl0000700000175000017500000000413114773714147026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B17.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0017/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0017/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0119/0000700000175000017500000000000014773714150025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0119/DECL.asl0000700000175000017500000000440314773714150026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 119: * * SUMMARY: The Logical operators in 32-bit mode act with 64-bit values */ Method (MF00, 0, NotSerialized) { Local0 = (0xFFFFFFFF == 0x00000001FFFFFFFF) If (Local0) { Debug = "Ok: LEqual" } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Ones) } Local1 = (0xFFFFFFFF < 0x0000000100000000) If (Local1) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Zero) } Else { Debug = "Ok: LLess" } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0119/RUN.asl0000700000175000017500000000401114773714150026346 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 119", TCLD, 0x77, W017)) { SRMT ("mf00") If (F64) { SKIP () } Else { MF00 () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0119/MAIN.asl0000700000175000017500000000413114773714150026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B119.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0119/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0119/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0081/0000700000175000017500000000000014773714150025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0081/DECL.asl0000700000175000017500000000526514773714150026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0081: * * SUMMARY: Call to Method immediately passed to ObjectType is evaluated improperly */ Method (ME31, 0, NotSerialized) { Debug = "Run me31" Return (0x12345678) } Method (ME32, 1, NotSerialized) { Debug = "Run me32" Debug = Arg0 Return (Arg0) } Method (ME33, 0, NotSerialized) { /* Store(me32, Local0) */ /* Store(me32("String"), Local0) */ Local0 = ObjectType (ME31) If ((Local0 != C010)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C010) } /* Nov. 2012: Method invocation as arg to ObjectType is now illegal */ /* */ /* Store(ObjectType(me31()), Local0) */ /* if (LNotEqual(Local0, c009)) { */ /* err("", zFFF, __LINE__, 0, 0, Local0, c009) */ /* } */ /* */ /* Store(ObjectType(me32("String")), Local0) */ /* if (LNotEqual(Local0, c00a)) { */ /* err("", zFFF, __LINE__, 0, 0, Local0, c00a) */ /* } */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0081/RUN.asl0000700000175000017500000000361614773714150026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 81", TCLD, 0x51, W017)) { SRMT ("me33") ME33 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0081/MAIN.asl0000700000175000017500000000413114773714150026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B81.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0081/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0081/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0179/0000700000175000017500000000000014773714151025211 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0179/DECL.asl0000700000175000017500000000375214773714151026433 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 179: * * SUMMARY: ConcatenateResTemplate operation falls into an endless loop */ Method (MF58, 0, NotSerialized) { Local0 = ConcatenateResTemplate (RTD0, RTD0) If ((Local0 != BD0B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0100) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0179/RUN.asl0000700000175000017500000000361714773714151026370 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 179", TCLD, 0xB3, W017)) { SRMT ("mf58") MF58 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0179/MAIN.asl0000700000175000017500000000424614773714151026447 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B179.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0179/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0179/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0271/0000700000175000017500000000000014773714152025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0271/DECL.asl0000700000175000017500000000560014773714152026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 271: * * SUMMARY: CopyObject of Device works incorrectly */ Method (M021, 0, Serialized) { Name (I000, 0xABCD0000) Name (I001, 0xABCD0001) Name (I002, 0xABCD0002) Device (D000) { Name (I002, 0xABCD0002) } Method (M123, 1, NotSerialized) { CopyObject (D000, Arg0) CopyObject (D000, Local0) CopyObject (D000, I001) /* \M021.I001 */ Debug = "------------------------- Resulting devices:" Debug = Arg0 Debug = Local0 Debug = I001 /* \M021.I001 */ Debug = "-------------------------." } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M123 (I000) Local0 = ObjectType (I001) If ((Local0 != C00E)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00E) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (I002, I001) /* \M021.I001 */ Local0 = ObjectType (I001) If ((Local0 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0271/RUN.asl0000700000175000017500000000362114773714152026355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 271", TCLD, 0x010F, W017)) { SRMT ("m021") M021 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0271/MAIN.asl0000700000175000017500000000424514773714152026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B271.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0271/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0271/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0000/0000700000175000017500000000000014773714147025175 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0000/DECL.asl0000700000175000017500000000675314773714147026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0000: * * SUMMARY: Logical operators return True equal to One but not Ones */ Method (MD9A, 0, Serialized) { Name (ON00, 0xFFFFFFFFFFFFFFFF) /* * Additional checking to prevent errors unrelated to this test. * * Check that exceptions initiated by some bdemo tests on the * global level are all actually handled and reset at this point. */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (0x01 && 0x01) If ((Local0 != ON00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ON00) } Local0 = (0x00 == 0x00) If ((Local0 != ON00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ON00) } Local0 = (0x01 > 0x00) If ((Local0 != ON00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ON00) } Local0 = (0x01 >= 0x01) If ((Local0 != ON00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ON00) } Local0 = (0x00 < 0x01) If ((Local0 != ON00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ON00) } Local0 = (0x01 <= 0x01) If ((Local0 != ON00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ON00) } Local0 = !0x00 If ((Local0 != ON00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ON00) } Local0 = (0x01 != 0x00) If ((Local0 != ON00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ON00) } Local0 = (0x00 || 0x01) If ((Local0 != ON00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ON00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0000/RUN.asl0000700000175000017500000000361514773714147026352 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 0", TCLD, 0x00, W017)) { SRMT ("md9a") MD9A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0000/MAIN.asl0000700000175000017500000000413014773714147026423 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B0.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0000/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0000/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0209_ML_SEE_135/0000700000175000017500000000000014773714152026660 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0209_ML_SEE_135/DECL.asl0000700000175000017500000000352314773714152030076 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 209: * * SUMMARY: Ineffective memory consumption detected by b135 ASLTS tests * * Inefficient memory consumption during executing the mfdc sub-test * of b135 tests has been revealed. * So, refer to the test b129. * * Doesn't need separate demo. */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0104/0000700000175000017500000000000014773714150025174 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0104/DECL.asl0000700000175000017500000000434214773714150026412 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0104: * * SUMMARY: The ObjectType operator being passed with the IRef to the Uninitialized element of Package causes crash */ Method (ME68, 0, Serialized) { Debug = "Start of test" Name (P000, Package (0x01){}) Store (P000 [0x00], Local0) Debug = Local0 Debug = "ObjectType(Local0):" Local1 = ObjectType (Local0) Debug = Local1 If ((Local1 != C008)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C008) } Debug = "Finish of test" } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0104/RUN.asl0000700000175000017500000000361714773714150026353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 104", TCLD, 0x68, W017)) { SRMT ("me68") ME68 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0104/MAIN.asl0000700000175000017500000000413114773714150026423 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B104.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0104/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0104/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0208/0000700000175000017500000000000014773714152025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0208/DECL.asl0000700000175000017500000000654714773714152026432 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 208 (local-bugzilla-343): * * SUMMARY: Store-to-Debug operation falls into infinite loop for ring of Index references * * Note: add verifications while sorting out and fixing the bug (CH03/CH04/..) */ Method (M818, 0, NotSerialized) { Method (M000, 0, Serialized) { Name (P000, Package (0x04) { 0x10, 0x11, 0x12, 0x13 }) Store (P000 [0x00], P000 [0x01]) Store (P000 [0x01], P000 [0x02]) Store (P000 [0x02], P000 [0x00]) Store (P000 [0x00], Local0) Debug = Local0 /* RING_OF_REFS_EXCEPTION? */ } Method (M001, 0, Serialized) { Name (P000, Package (0x04) { 0x10, 0x11, 0x12, 0x13 }) Name (P001, Package (0x04) { 0x20, 0x21, 0x22, 0x23 }) Store (P000 [0x00], P001 [0x01]) Store (P001 [0x00], P000 [0x01]) Store (P000 [0x00], Local0) Debug = Local0 /* RING_OF_REFS_EXCEPTION? */ } Method (M002, 0, Serialized) { Name (P000, Package (0x04) { 0x10, 0x11, 0x12, 0x13 }) Store (P000 [0x00], P000 [0x01]) Store (P000 [0x03], Local0) Debug = Local0 /* RING_OF_REFS_EXCEPTION? */ } M000 () M001 () M002 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0208/RUN.asl0000700000175000017500000000401214773714152026350 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 208", TCLD, 0xD0, W017)) { SRMT ("m818") If (Y208) { M818 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0208/MAIN.asl0000700000175000017500000000413114773714152026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B208.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0208/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0208/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0146/0000700000175000017500000000000014773714151025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0146/DECL.asl0000700000175000017500000000500314773714151026414 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 146: * * SUMMARY: The ASL compiler refuses Package in Case operator */ Method (MF3A, 1, Serialized) { Local7 = 0x00 Switch (ToInteger (Arg0)) { Case (Package (0x01) { Buffer (0x01) { 0x0A // . } } ) { Local7 = 0x00012389 } } Return (Local7) } Method (MF3B, 0, NotSerialized) { Local0 = MF3A (Buffer (0x01) { 0x0A // . }) If ((Local0 != 0x00012389)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00012389) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0146/RUN.asl0000700000175000017500000000361714773714151026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 146", TCLD, 0x92, W017)) { SRMT ("mf3b") MF3B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0146/MAIN.asl0000700000175000017500000000413214773714151026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B146.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0146/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0146/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0223/0000700000175000017500000000000014773714152025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0223/DECL.asl0000700000175000017500000001026014773714152026412 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 223: * * SUMMARY: DataTableRegion with the non-constant *String arguments * unexpectedly causes an exception or crash */ Device (D223) { DataTableRegion (DR00, "SSDT", "", "") Field (DR00, AnyAcc, NoLock, Preserve) { FU00, 496 } /* 0x1F0 == length of SSDT */ } Method (M10B, 0, Serialized) { /* This SSDT must be identical to SSDT1 in the AcpiExec utility */ Name (SSDT, Buffer (0x3E) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x3E, 0x00, 0x00, 0x00, // SSDT>... /* 0008 */ 0x02, 0x08, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x73, 0x73, 0x64, 0x74, 0x31, 0x00, 0x00, 0x00, // ssdt1... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x20, 0x06, 0x12, 0x20, 0x14, 0x19, 0x5F, 0x54, // .. .._T /* 0028 */ 0x39, 0x38, 0x01, 0x70, 0x0D, 0x53, 0x53, 0x44, // 98.p.SSD /* 0030 */ 0x54, 0x31, 0x20, 0x2D, 0x20, 0x5F, 0x54, 0x39, // T1 - _T9 /* 0038 */ 0x38, 0x00, 0x5B, 0x31, 0xA4, 0x00 // 8.[1.. }) Method (CHCK, 3, NotSerialized) { If ((Arg0 != Arg1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Method (M000, 1, Serialized) { DataTableRegion (DR00, "SSDT", "", "") Field (DR00, AnyAcc, NoLock, Preserve) { FU00, 496 } /* 0x1F0 == length of SSDT */ CHCK (FU00, SSDT, Arg0) } Method (M001, 4, Serialized) { DataTableRegion (DR00, Arg0, Arg1, Arg2) Field (DR00, AnyAcc, NoLock, Preserve) { FU00, 496 } /* 0x1F0 == length of SSDT */ CHCK (FU00, SSDT, Arg3) } Name (S000, "SSDT") Name (S001, "") Name (S002, "") Method (M002, 1, Serialized) { DataTableRegion (DR00, S000, S001, S002) Field (DR00, AnyAcc, NoLock, Preserve) { FU00, 496 } /* 0x1F0 == length of SSDT */ CHCK (FU00, SSDT, Arg0) } CHCK (\D223.FU00, SSDT, 0x00) M000 (0x01) If (0x01) { M001 ("SSDT", "", "", 0x02) } Else { M002 (0x03) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0223/RUN.asl0000700000175000017500000000401214773714152026345 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 223", TCLD, 0xDF, W017)) { SRMT ("m10b") If (Y223) { M10B () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0223/MAIN.asl0000700000175000017500000000413114773714152026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B223.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0223/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0223/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0296/0000700000175000017500000000000014773714153025213 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0296/DECL.asl0000700000175000017500000000511614773714153026431 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 296: * * SUMMARY: AE_AML_INTERNAL unexpectedly occurs when the Loadtable ParameterData * and its Target differ in the types */ Device (D296) { Name (PLDT, 0x00) Method (TST0, 0, NotSerialized) { Local0 = LoadTable ("OEM1", "", "", "", "\\PLDT", "1") If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } Local1 = ObjectType (PLDT) If ((Local1 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x01) } ElseIf ((0x01 != PLDT)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x01, PLDT) } Unload (Local0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } } Method (M296, 0, NotSerialized) { \D296.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0296/RUN.asl0000700000175000017500000000362114773714153026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 296", TCLD, 0x0128, W017)) { SRMT ("m296") M296 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0296/MAIN.asl0000700000175000017500000000413114773714153026442 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B296.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0296/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0296/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0134/0000700000175000017500000000000014773714151025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0134/DECL.asl0000700000175000017500000000723114773714151026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 134: * * SUMMARY: Writing RefOf reference from inside Method breaks effectively local Arg */ Method (MF23, 7, NotSerialized) { Debug = "LocalX case of Method started:" Local0 = RefOf (ID14) Local1 = Local0 Local2 = Local1 Local3 = Local2 Local4 = Local3 Local5 = Local4 Local6 = Local5 Local6 = DerefOf (Local0) Debug = Local6 If ((Local6 != 0x11)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local6, 0x11) } Debug = "LocalX case of Method finished" } Method (MF24, 7, NotSerialized) { Debug = "ArgX case (1) of Method started:" Arg0 = RefOf (ID14) Arg1 = Arg0 Arg2 = Arg1 Arg3 = Arg2 Arg4 = Arg3 Arg5 = Arg4 Arg6 = Arg5 Arg6 = DerefOf (Arg0) Debug = Arg6 If ((Arg6 != 0x11)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg6, 0x11) } Debug = "ArgX case (1) of Method finished" } Method (MF25, 7, NotSerialized) { Debug = "ArgX case (2) of Method started:" Local0 = RefOf (ID14) Arg1 = Local0 Arg2 = Local0 Arg3 = Local0 Arg4 = Local0 Arg5 = Local0 Arg6 = Local0 Arg6 = DerefOf (Arg0) Debug = Arg6 If ((Arg6 != 0x11)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg6, 0x11) } Debug = "ArgX case (2) of Method finished" } Method (MF26, 0, NotSerialized) { SRMT ("mf23") MF23 (ID14, ID15, ID16, ID17, ID18, ID19, ID1A) SRMT ("mf24") If (Y134) { MF24 (ID14, ID15, ID16, ID17, ID18, ID19, ID1A) } Else { BLCK () } SRMT ("mf25") If (Y134) { MF25 (ID14, ID15, ID16, ID17, ID18, ID19, ID1A) } Else { BLCK () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0134/RUN.asl0000700000175000017500000000362514773714151026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 134", TCLD, 0x86, W017)) { /* SRMT("mf26") */ MF26 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0134/MAIN.asl0000700000175000017500000000424514773714151026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B134.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0134/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0134/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0079/0000700000175000017500000000000014773714150025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0079/DECL.asl0000700000175000017500000000362414773714150026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0079: * * SUMMARY: Specific expression with ToBuffer causes exception */ Method (ME2C, 0, NotSerialized) { Local0 = 0x00 Local1 = ToBuffer ("1234567") Local0 = ToBuffer ("1234567") } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0079/RUN.asl0000700000175000017500000000361614773714150026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 79", TCLD, 0x4F, W017)) { SRMT ("me2c") ME2C () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0079/MAIN.asl0000700000175000017500000000424514773714150026444 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B79.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0079/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0079/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0183/0000700000175000017500000000000014773714151025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0183/DECL.asl0000700000175000017500000000460514773714151026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 183: * * SUMMARY: Stack OverFlow of ASL compiler on processing the specific recursive method call */ Method (MF79, 1, NotSerialized) { If (Arg0) { Return (MF79 ((Arg0 - 0x01))) } Else { Return (0x00) } } Method (MF7A, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "mf79(250):" Debug = MF79 (0xFA) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M27E, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "mf79(248):" Debug = MF79 (0xF8) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0183/RUN.asl0000700000175000017500000000407114773714151026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 183", TCLD, 0xB7, W017)) { SRMT ("mf7a") If (Y200) { MF7A () } Else { BLCK () } SRMT ("m27e") M27E () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0183/MAIN.asl0000700000175000017500000000413114773714151026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B183.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0183/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0183/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0157/0000700000175000017500000000000014773714151025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0157/DECL.asl0000700000175000017500000000644014773714151026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 157: * Exception occurs while executing method md00. * * SUMMARY: Exception while processing the empty ParameterTypes list of Method * * ROOT CAUSE * * 19.09.2005, the root cause of it is the raw state of * implementation of "parametertypes list" feature of iASL. * iASL generates a wrong AML code for md00 as if it has one * parameter. Stopped fixing. * * * NOTE: add here new failing examples from name/method.asl and * name/function.asl tests when starts fixing the bug. */ Method (MD00, 0, NotSerialized) { Method (M000, 0, NotSerialized) { Return ("md00.m000") } Method (MM00, 0, NotSerialized) { Return ("md00.mm00") } /* Auxiliary names for to eliminate side-effects of the bug */ Method (MMM0, 0, NotSerialized) { Return (Zero) } Method (MMM1, 0, NotSerialized) { Return (Zero) } /* Method */ Local0 = "Local0" Local0 = M000 () MMM0 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If (("md00.m000" != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "md00.m000") } /* Function */ Local0 = "Local0" Local0 = MM00 () MMM1 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If (("md00.mm00" != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "md00.mm00") } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0157/RUN.asl0000700000175000017500000000361714773714151026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 157", TCLD, 0x9D, W017)) { SRMT ("md00") MD00 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0157/MAIN.asl0000700000175000017500000000413114773714151026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B157.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0157/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0157/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0001_ASL/0000700000175000017500000000000014773714147025675 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0001_ASL/DECL.asl0000700000175000017500000000744514773714147027122 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0001: * * COMPONENT: Will not be fixed * * SUMMARY: The ASL Compiler doesn't allow non-constant TimeoutValue for Acquire */ Method(md9b) { Name(TOUT, 0) Store(Acquire(mxd0, 0), Local0) if (Local0) { err("", zFFF, __LINE__, 0, 0, 0, Local0) } Store(Acquire(mxd0, 0x1000), Local0) if (Local0) { err("", zFFF, __LINE__, 0, 0, 0, Local0) } Store(0x1000, Local1) Store(Acquire(mxd0, Local1), Local0) if (Local0) { err("", zFFF, __LINE__, 0, 0, 0, Local0) } Store(Acquire(mxd0, TOUT), Local0) if (Local0) { err("", zFFF, __LINE__, 0, 0, 0, Local0) } } /* Intel ACPI Component Architecture ASL Optimizing Compiler version 20050930 [Oct 15 2005] Copyright (C) 2000 - 2005 Intel Corporation Supports ACPI Specification Revision 3.0 ../../../../runtime/cntl/common.asl 1139: switch (arg0) { Warning 2092 - ^ Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer ../../../../runtime/cntl/common.asl 1353: Switch (Local0) { Warning 2092 - ^ Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer ../../../../runtime/collections/bdemo/0001/DECL.asl 24: Store(Acquire(mxd0, Local1), Local0) Error 1094 - parse error ^ ../../../../runtime/collections/bdemo/0001/DECL.asl 24: Store(Acquire(mxd0, Local1), Local0) Error 1043 - Invalid type ^ ([NoReturnValue] found, Store operator requires [Integer|String|Buffer|Package|DdbHandle|Reference]) ../../../../runtime/collections/bdemo/0001/DECL.asl 29: Store(Acquire(mxd0, TOUT), Local0) Error 1094 - parse error ^ ../../../../runtime/collections/bdemo/0001/DECL.asl 29: Store(Acquire(mxd0, TOUT), Local0) Error 1043 - Invalid type ^ ([NoReturnValue] found, Store operator requires [Integer|String|Buffer|Package|DdbHandle|Reference]) ASL Input: main.asl - 41 lines, 154106 bytes, 3969 keywords Compilation complete. 4 Errors, 2 Warnings, 0 Remarks, 1818 Optimizations */acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0001_ASL/RUN.asl0000700000175000017500000000317014773714147027046 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 1", TCLD, 1, W017)) { SRMT("md9b") md9b() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0001_ASL/MAIN.asl0000700000175000017500000000425514773714147027133 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B1.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0001_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0001_ASL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0130/0000700000175000017500000000000014773714150025173 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0130/DECL.asl0000700000175000017500000000565114773714150026415 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 130: * * SUMMARY: Reference to String works differently to like the references to Buffer and Package work */ Method (MF19, 1, NotSerialized) { Local2 = DerefOf (Arg0) Local2 [0x01] = 0x2B /* Store(0x2b, Index(DerefOf(arg0), 1)) */ } Method (MF1A, 1, NotSerialized) { Local0 = RefOf (Arg0) MF19 (Local0) } Method (MF1B, 0, NotSerialized) { /* Index of String */ MF1A (SD04) If ((SD04 != "qwer0000")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, SD04, "qwer0000") } /* Index of Buffer */ MF1A (BD08) If ((BD08 != Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BD08, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) } /* Index of Package */ MF1A (PD0D) Local0 = PD0D [0x01] Local1 = DerefOf (Local0) If ((Local1 != 0x77)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x77) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0130/RUN.asl0000700000175000017500000000361714773714150026352 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 130", TCLD, 0x82, W017)) { SRMT ("mf1b") MF1B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0130/MAIN.asl0000700000175000017500000000424514773714150026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B130.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0130/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0130/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0219/0000700000175000017500000000000014773714152025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0219/DECL.asl0000700000175000017500000000451414773714152026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 219: * * SUMMARY: The result of Interrupt Resource Template macro is incorrect when ResourceSource is omitted */ Method (M107, 0, Serialized) { Name (RT00, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x0F,, ) { 0xFCFDFEFF, } }) Name (BUF0, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x0F,, ) { 0xFCFDFEFF, } }) If ((RT00 != BUF0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, RT00, BUF0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0219/RUN.asl0000700000175000017500000000361714773714152026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 219", TCLD, 0xDB, W017)) { SRMT ("m107") M107 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0219/MAIN.asl0000700000175000017500000000413114773714152026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B219.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0219/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0219/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0170/0000700000175000017500000000000014773714151025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0170/DECL.asl0000700000175000017500000000506614773714151026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 170: * * SUMMARY: identical to bug 191 * * see if to rewrite it for Fields but not for BufferFields */ Method (MF5C, 0, Serialized) { Name (B010, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) CreateField (B010, 0x08, 0x08, BF90) Local0 = ObjectType (BF90) If ((Local0 != 0x0E)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0E) } Else { BF90 = 0x9999992B Local1 = ObjectType (BF90) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } ElseIf ((BF90 != Buffer(){0x2B})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF90, Buffer(){0x2B}) } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0170/RUN.asl0000700000175000017500000000361714773714151026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 170", TCLD, 0xAA, W017)) { SRMT ("mf5c") MF5C () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0170/MAIN.asl0000700000175000017500000000413214773714151026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B170.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0170/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0170/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0113/0000700000175000017500000000000014773714150025174 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0113/DECL.asl0000700000175000017500000001020714773714150026407 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 113: * * SUMMARY: Unexpected dereference of Index reference immediately passed to Method */ Method (ME79, 6, NotSerialized) { Debug = Arg0 Debug = Arg1 Debug = Arg2 Debug = Arg3 Debug = Arg4 Debug = Arg5 Debug = "Test 0" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Arg0 + 0x01), Local5) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Debug = "Test 1" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Arg1 + 0x01), Local5) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Debug = "Test 2" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Arg2 + 0x01), Local5) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Debug = "Test 3" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Arg3 + 0x01), Local5) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Debug = "Test 4" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Arg4 + 0x01), Local5) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Debug = "Test 5" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Store ((Arg5 + 0x01), Local5) CH04 (__METHOD__, 0x01, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Method (ME7A, 0, Serialized) { Name (P000, Package (0x05) { 0x00, 0x01, 0x02, 0x03, 0x04 }) Name (P001, Package (0x05) { 0x10, 0x11, 0x12, 0x13, 0x14 }) Name (P002, Package (0x05) { 0x20, 0x21, 0x22, 0x23, 0x24 }) Name (P003, Package (0x05) { 0x30, 0x31, 0x32, 0x33, 0x34 }) Name (P004, Package (0x05) { 0x40, 0x41, 0x42, 0x43, 0x44 }) Store (P002 [0x02], Local0) Local1 = P003 [0x03] Local3 = Local2 = P004 [0x04] ME79 (P000 [0x00], Local4 = P001 [0x01], Local0, Local1, Local2, Local3) Debug = Local4 } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0113/RUN.asl0000700000175000017500000000361714773714150026353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 113", TCLD, 0x71, W017)) { SRMT ("me7a") ME7A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0113/MAIN.asl0000700000175000017500000000413114773714150026423 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B113.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0113/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0113/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0047/0000700000175000017500000000000014773714147025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0047/DECL.asl0000700000175000017500000001045214773714147026425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 47: * * SUMMARY: Timer operator doesn’t provide gradually increased values * * APPEARANCE * * The ASL Timer operator is declared as a 64-bit one * "17.5.117 Timer (Get 64-Bit Timer Value)" but actually, * we observe it is overrun during each 15 minutes, but we * expect that to be one time in more than 50 thousand years! * * SPECS (17.5.117) * * The value resulting from this opcode is 64-bits. * It is monotonically increasing, but it is not guaranteed * that every result will be unique, i.e. two subsequent * instructions may return the same value. The only guarantee * is that each subsequent evaluation will be greater-than or * equal to the previous ones. * * Timer operator doesn’t provide * gradually increased values. The test takes long time, * and ends only when encounters error. Since the test is * based on Timer operator which is under testing and works * incorrectly we excluded this test from the normally run * tests set. We can't even control the time the run of test * is in progress from inside the test. */ Method (MD77, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (TSLP, 0x1388) /* MilliSecs to sleep each cycle (5 secs) */ Name (NCCL, 0xB4) /* Number of cycles */ LPN0 = NCCL /* \MD77.NCCL */ LPC0 = 0x00 Local0 = (TSLP * LPN0) /* \MD77.LPN0 */ Divide (Local0, 0x03E8, Local1, Local2) Debug = Concatenate ("Maximal time of execution (in seconds): 0x", Local2) Local0 = Timer Local5 = 0x00 Debug = Concatenate ("Start value of Timer : 0x", Local0) While (LPN0) { Local7 = Timer Debug = Concatenate ("Timer: 0x", Local7) If ((Local0 > Local7)) { /* if (Local5) { */ ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local7) Debug = Concatenate ("Cur timer : 0x", Local7) Debug = Concatenate ("Start timer : 0x", Local0) Debug = Concatenate ("Step of cycle : 0x", TSLP) Break /* } */ /* First time in more than 50 thousand years! */ Local5 = 0x01 } Sleep (TSLP) LPN0-- LPC0++ } Debug = Concatenate ("Start timer: 0x", Local0) Debug = Concatenate ("Finish timer: 0x", Local7) Local6 = (Local7 - Local0) Local0 = TMR0 (Local6) Debug = Concatenate ("Run time (in seconds): 0x", Local0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0047/RUN.asl0000700000175000017500000000401114773714147026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 47", TCLD, 0x2F, W017)) { SRMT ("md77") If (RN05) { MD77 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0047/MAIN.asl0000700000175000017500000000413114773714147026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B47.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0047/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0047/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0069/0000700000175000017500000000000014773714150025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0069/DECL.asl0000700000175000017500000000461514773714150026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0069: * * SUMMARY: Exception on storing the result of Mid operation */ Method (ME08, 0, Serialized) { Name (B000, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }) Debug = "Start of test" Local0 = Mid (B000, 0x01, 0x01) If ((Local0 != Buffer (0x01) { 0x02 // . })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x01) { 0x02 // . }) } Debug = "Finish of test" } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0069/RUN.asl0000700000175000017500000000361614773714150026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 69", TCLD, 0x45, W017)) { SRMT ("me08") ME08 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0069/MAIN.asl0000700000175000017500000000413114773714150026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B69.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0069/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0069/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0191/0000700000175000017500000000000014773714151025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0191/DECL.asl0000700000175000017500000000505314773714151026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 191: * * SUMMARY: CopyObject to Buffer Field specification/implementation should be clarified/fixed */ Method (MFA3, 0, NotSerialized) { CreateField (BD0E, 0x08, 0x08, BF90) Local0 = ObjectType (BF90) If ((Local0 != 0x0E)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0E) } If ((BF90 != Buffer(){0x77})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF90, Buffer(){0x77}) } CopyObject (0x9999992B, BF90) /* \MFA3.BF90 */ Local0 = ObjectType (BF90) If ((Local0 != 0x0E)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x0E) } If ((BF90 != Buffer(){0x2B})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BF90, Buffer(){0x2B}) Debug = BF90 /* \MFA3.BF90 */ } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0191/RUN.asl0000700000175000017500000000361714773714151026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 191", TCLD, 0xBF, W017)) { SRMT ("mfa3") MFA3 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0191/MAIN.asl0000700000175000017500000000424514773714151026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B191.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0191/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0191/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0284/0000700000175000017500000000000014773714152025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0284/DECL.asl0000700000175000017500000000654714773714152026436 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 284: * * SUMMARY: An exception should be emitted on Load if the Length field of SSDT * exceeds length of its source */ Device (D284) { Name (BUF0, Buffer (0x34) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x34, 0x00, 0x00, 0x00, // SSDT4... /* 0008 */ 0x02, 0xEB, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x08, 0x12, 0x06, 0x20, 0x14, 0x0F, 0x5C, 0x53, // ... ..\S /* 0028 */ 0x53, 0x30, 0x30, 0x00, 0xA4, 0x0D, 0x5C, 0x53, // S00...\S /* 0030 */ 0x53, 0x30, 0x30, 0x00 // S00. }) OperationRegion (IST0, SystemMemory, 0x00, 0x34) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 416 } Field (IST0, ByteAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8 } Method (TST0, 0, Serialized) { Name (HI0, 0x00) RFU0 = BUF0 /* \D284.BUF0 */ /* Set the Length field of SSDT to exceed the OpRegion length */ LENG = 0x49 /* An exception is expected */ Load (RFU0, HI0) /* \D284.TST0.HI0_ */ If (CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00)) { Unload (HI0) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } } } Method (M284, 0, NotSerialized) { \D284.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0284/RUN.asl0000700000175000017500000000401414773714152026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 284", TCLD, 0x011C, W017)) { SRMT ("m284") If (Y284) { M284 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0284/MAIN.asl0000700000175000017500000000413114773714152026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B284.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0284/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0284/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0270_SPEC/0000700000175000017500000000000014773714152026014 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0270_SPEC/DECL.asl0000700000175000017500000000323614773714152027233 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 270: * * SUMMARY: ACPI control method calling convention and MS interpreter don't fit each other */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/Makefile0000700000175000017500000000012114773714153026250 0ustar ivanhuivanhu# bdemo MDIRS= bdemo bdemof TOP= ../../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0149_SPEC/0000700000175000017500000000000014773714151026020 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0149_SPEC/DECL.asl0000700000175000017500000000316314773714151027236 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 149: * * SUMMARY: Spec of Function should be clarified */acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0082_SPEC/0000700000175000017500000000000014773714150026013 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0082_SPEC/DECL.asl0000700000175000017500000000320514773714150027226 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 82: * * SUMMARY: The Data Type Conversion Rules table should be updated */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0083/0000700000175000017500000000000014773714150025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0083/DECL.asl0000700000175000017500000001052214773714150026415 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0083: * * SUMMARY: No exception on DerefOf of an arbitrary Source */ Method(me34,, Serialized) { Event(e000) Mutex(mx00, 0) ThermalZone(tz00) {} Processor(pr00, 0, 0xFFFFFFFF, 0) {} PowerResource(pw00, 1, 0) {Method(mmmm){return (0)}} OperationRegion(r000, SystemMemory, 0x100, 0x100) Name(b9Z0, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) OperationRegion(r9Z0, SystemMemory, 0x100, 0x100) CreateField(b9Z0, 0, 8, bf90) Field(r9Z0, ByteAcc, NoLock, Preserve) {f900,8,f901,8,f902,8,f903,8} BankField(r9Z0, f901, 0, ByteAcc, NoLock, Preserve) {bn90,4} IndexField(f902, f903, ByteAcc, NoLock, Preserve) {if90,8,if91,8} Device(d000) {} Name(i000, 0x89abcdef) Name(b000, Buffer() {1,2,3,4}) Name(p000, Package() {1,2,3,4}) /* * Derefof(0x89abcdef) * Invalid type ^ ([Integer] found, DerefOf operator requires [String|Reference]) */ // Expected exception for each DerefOf below CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(i000), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(b000), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(p000), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(d000), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(e000), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(mx00), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(tz00), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(pr00), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(pw00), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(r000), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(bf90), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(f900), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(f901), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(f902), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(f903), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(bn90), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(if90), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x000, __LINE__, 0) Store(DerefOf(if91), Local0) CH04("", 0, 0xff, 0, __LINE__, 0, 0) // And so on.. } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0083/RUN.asl0000700000175000017500000000317214773714150026355 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 83", TCLD, 83, W017)) { SRMT("me34") me34() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0083/MAIN.asl0000700000175000017500000000413114773714150026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B83.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0083/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0083/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0086/0000700000175000017500000000000014773714150025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0086/DECL.asl0000700000175000017500000000622714773714150026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0086: * * SUMMARY: ToString operator produces one "Outstanding allocation" */ Method (ME3B, 0, NotSerialized) { If (0x00) { /* 1 Outstanding allocation */ Local0 = ToString ("qwrtyu", Ones) } ElseIf (0x00) { /* 6 Outstanding allocations */ Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) } Else { /* 17 Outstanding allocations */ Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) Local0 = ToString ("qwrtyu", Ones) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0086/RUN.asl0000700000175000017500000000361614773714150026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 86", TCLD, 0x56, W017)) { SRMT ("me3b") ME3B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0086/MAIN.asl0000700000175000017500000000413114773714150026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B86.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0086/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0086/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0169/0000700000175000017500000000000014773714151025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0169/DECL.asl0000700000175000017500000000475514773714151026436 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 169: * * SUMMARY: Improper work of ShiftLeft and ShiftRight operators on Linux in a specific case */ Method (MF5B, 0, NotSerialized) { Local0 = (0xFFFFFFFFFFFFFFFF << 0x40) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = (0xFFFFFFFFFFFFFFFF << 0x41) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = (0xFFFFFFFFFFFFFFFF >> 0x40) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = (0xFFFFFFFFFFFFFFFF >> 0x41) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0169/RUN.asl0000700000175000017500000000361714773714151026367 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 169", TCLD, 0xA9, W017)) { SRMT ("mf5b") MF5B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0169/MAIN.asl0000700000175000017500000000413214773714151026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B169.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0169/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0169/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0112/0000700000175000017500000000000014773714150025173 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0112/DECL.asl0000700000175000017500000000462614773714150026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 112: * * SUMMARY: The ASL compiler refuses passing the Named Objects and String constants as a MicroSecs operand of the Stall operator */ Method (ME77, 1, NotSerialized) { Stall (Arg0) } Method (ME78, 0, Serialized) { Name (I000, 0x0B) Local0 = I000 /* \ME78.I000 */ /* These calls are compiled */ /* and executed successfully */ ME77 (I000) Stall (Local0) Stall ((I000 + Local0)) Stall (ToHexString (I000)) Stall (Buffer (0x01) { 0x0B // . }) /* ASL compiler results in Errors for these */ Stall (I000) Stall ("B") } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0112/RUN.asl0000700000175000017500000000361714773714150026352 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 112", TCLD, 0x70, W017)) { SRMT ("me78") ME78 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0112/MAIN.asl0000700000175000017500000000413114773714150026422 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B112.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0112/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0112/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0114_ASL/0000700000175000017500000000000014773714150025674 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0114_ASL/DECL.asl0000700000175000017500000000424214773714150027111 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 114: * * SUMMARY: Method object as a Source of Index operation is treated by iASL mistakenly as a call to that Method */ Method(me7b) { Store("Start of test", Debug) Method(m001) { return (0x12345678) } Store(Index(m001, 0), Local0) Store(Local0, Debug) Store("Finish of test", Debug) return (0) } Method(me7c) { Store("Start of test", Debug) Method(m001) { return ("zxvgswquiy") } Store(Index(m001, 0), Local0) Store(Local0, Debug) Store(DerefOf(Local0), Local1) Store(Local1, Debug) Store("Finish of test", Debug) return (0) } Method(me7d) { me7b() me7c() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0114_ASL/MAIN.asl0000700000175000017500000000402314773714150027123 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B114.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0114_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0152_ASL/0000700000175000017500000000000014773714151025677 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0152_ASL/DECL.asl0000700000175000017500000000472314773714151027120 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 152: * * SUMMARY: Decrease severity of iASL error for non-Computational types in the Computational data positions * * Compiler should return error... */ Method(mf42) { Name(INT0, 0xfedcba9876543210) Name(STR0, "source string") Name(BUF0, Buffer(9){9,8,7,6,5,4,3,2,1}) Name(PAC0, Package(3) {"test package"}) Device(DEV0) {Name(s000, "DEV0")} Event(EVE0) Method(MMM0) {Return ("ff0X")} Mutex(MTX0, 0) OperationRegion(OPR0, SystemMemory, 0, 48) PowerResource(PWR0, 0, 0) {Name(s000, "PWR0")} Processor(CPU0, 0x0, 0xFFFFFFFF, 0x0) {Name(s000, "CPU0")} ThermalZone(TZN0) {Name(s000, "TZN0")} Field(OPR0, ByteAcc, NoLock, Preserve) {FLU0, 69} Createfield(BUF0, 0, 69, BFL0) Add(INT0, 1) Add(STR0, 2) Add(BUF0, 3) Add(PAC0, 4) Add(FLU0, 4) Add(DEV0, 6) Add(EVE0, 7) Add(MMM0, 8) Add(MTX0, 9) Add(OPR0, 10) Add(PWR0, 11) Add(CPU0, 12) Add(TZN0, 13) Add(BFL0, 14) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0152_ASL/MAIN.asl0000700000175000017500000000402414773714151027127 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B152.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0152_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0014/0000700000175000017500000000000014773714147025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0014/DECL.asl0000700000175000017500000000453514773714147026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0014: * * SUMMARY: Implementation differs the specified Maximal value of MicroSeconds */ Method (MDAE, 1, NotSerialized) { Stall (Arg0) } Method (MDAF, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MDAE (0x64) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MDAE (0x65) CH04 (__METHOD__, 0x00, 0x30, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_VALUE */ MDAE (0xFF) CH04 (__METHOD__, 0x00, 0x30, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_VALUE */ MDAE (0x0100) CH04 (__METHOD__, 0x00, 0x30, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_VALUE */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0014/RUN.asl0000700000175000017500000000361614773714147026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 14", TCLD, 0x0E, W017)) { SRMT ("mdaf") MDAF () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0014/MAIN.asl0000700000175000017500000000413114773714147026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B14.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0014/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0014/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0203/0000700000175000017500000000000014773714152025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0203/DECL.asl0000700000175000017500000002160214773714151026411 0ustar ivanhuivanhu /* To be investigated. Many Outstanding allocations on Reference ASLTS test run: Outstanding: 0xDB allocations after execution ACPI Error (utalloc-1053): 100(64) Outstanding allocations [20060127] .............. Output of test: (.......) [ACPI Debug] String: [0x25] ":STST:functional:reference:m26a:PASS:" [ACPI Debug] String: [0x3A] ":STST:functional:reference:m26b:FAIL:Errors # 11 00 00 00:" [ACPI Debug] String: [0x25] ":STST:functional:reference:m26c:PASS:" [ACPI Debug] String: [0x25] ":STST:functional:reference:m26d:PASS:" [ACPI Debug] String: [0x3A] ":STST:functional:reference:m26e:FAIL:Errors # 01 00 00 00:" [ACPI Debug] String: [0x25] ":STST:functional:reference:m26f:PASS:" [ACPI Debug] String: [0x25] ":STST:functional:reference:m270:PASS:" [ACPI Debug] String: [0x25] ":STST:functional:reference:m276:PASS:" [ACPI Debug] String: [0x0E] "========= END." [ACPI Debug] String: [0x5B] "TEST ACPICA: 64-bit : FAIL : Errors # 0x0000000000000016, Failed tests # 0x0000000000000004" Outstanding: 0xDB allocations after execution Execution of \MAIN returned object 00326E38 Buflen 10 [Integer] = 0000000000000001 - q 0049CCB8 Len 0028 utcache-407 [Operand] Integer R1 00495CB8 Len 0005 dsobject-333 [UNDEFINED] 0048C488 Len 0028 utcache-407 [Operand] Integer R1 0047F068 Len 0028 utcache-407 [Operand] BankField R1 0047C108 Len 0028 utcache-407 [Operand] RegionField R1 0047D178 Len 0028 utcache-407 [Operand] IndexField R1 0047EB88 Len 0028 utcache-407 [Operand] BufferField R1 0047CF68 Len 0028 utcache-407 [Operand] RegionField R1 0047E5B8 Len 0028 utcache-407 [Operand] Extra R1 0047FFC8 Len 0028 utcache-407 [Operand] RegionField R1 0047CE98 Len 0028 utcache-407 [Operand] RegionField R1 0047CAB8 Len 0028 utcache-407 [Operand] IndexField R1 0047FDD8 Len 0028 utcache-407 [Operand] BankField R1 0047D748 Len 0028 utcache-407 [Operand] RegionField R1 0046A2A8 Len 0028 utcache-407 [Operand] RegionField R1 00459598 Len 0028 utcache-407 [Operand] RegionField R1 00452F68 Len 0028 utcache-407 [Operand] RegionField R1 00452FC8 Len 0028 utcache-407 [Operand] Extra R1 004511B8 Len 0005 dsobject-333 [UNDEFINED] 004532F8 Len 0028 utcache-407 [Operand] BufferField R1 00451098 Len 0028 utcache-407 [Operand] Buffer R1 00472138 Len 0028 utcache-407 [Operand] Buffer R1 00495748 Len 0028 utcache-407 [Operand] Extra R1 004934A8 Len 0028 utcache-407 [Node] ???? 00495058 Len 0028 utcache-407 [Node] ???? 004950B8 Len 0028 utcache-407 [Operand] Extra R1 004951D8 Len 0028 utcache-407 [Operand] Region R5 00495298 Len 0028 utcache-407 [Node] ???? 00495358 Len 0028 utcache-407 [Node] ???? 00490C88 Len 0028 utcache-407 [Node] ???? 00495C58 Len 0028 utcache-407 [Operand] Region R5 0048F4D8 Len 0028 utcache-407 [Node] ???? 0048CB78 Len 0028 utcache-407 [Node] ???? 00497DE8 Len 0028 utcache-407 [Node] ???? 00497F08 Len 0028 utcache-407 [Node] ???? 00493B68 Len 0028 utcache-407 [Node] ???? 00493BC8 Len 0028 utcache-407 [Node] ???? 00493E68 Len 0028 utcache-407 [Node] ???? 00492278 Len 0028 utcache-407 [Node] ???? 00492528 Len 0028 utcache-407 [Node] ???? 00492AF8 Len 0028 utcache-407 [Node] ???? 00492CD8 Len 0028 utcache-407 [Node] ???? 00496F68 Len 0028 utcache-407 [Node] ???? 004972B8 Len 0028 utcache-407 [Node] ???? 004973D8 Len 0028 utcache-407 [Node] ???? 0048CAB8 Len 0028 utcache-407 [Node] ???? 0048F7F8 Len 0028 utcache-407 [Node] ???? 0048F398 Len 0028 utcache-407 [Node] ???? 0048B068 Len 0028 utcache-407 [Node] ???? 0047B198 Len 0028 utcache-407 [Node] ???? 004914E8 Len 0028 utcache-407 [Node] ???? 00491EA8 Len 0028 utcache-407 [Node] ???? 00491F08 Len 0028 utcache-407 [Node] ???? 00481F08 Len 0028 utcache-407 [Node] ???? 0047D358 Len 0005 dsobject-333 [UNDEFINED] 00494468 Len 0028 utcache-407 [Node] ???? 0048F458 Len 0028 utcache-407 [Node] ???? 0048F858 Len 0028 utcache-407 [Operand] BankField R1 0048F8F8 Len 0028 utcache-407 [Operand] RegionField R1 0048F958 Len 0028 utcache-407 [Operand] IndexField R1 0048FA08 Len 0028 utcache-407 [Operand] BufferField R1 0048FAA8 Len 0028 utcache-407 [Operand] RegionField R1 0048FB58 Len 0028 utcache-407 [Operand] Extra R1 0048FBB8 Len 0028 utcache-407 [Operand] RegionField R1 0048FC68 Len 0028 utcache-407 [Operand] RegionField R1 0048FCC8 Len 0028 utcache-407 [Operand] IndexField R1 0048FDC8 Len 0028 utcache-407 [Operand] BankField R1 0048FE78 Len 0028 utcache-407 [Operand] RegionField R1 0048FED8 Len 0028 utcache-407 [Operand] RegionField R1 0048E0C8 Len 0028 utcache-407 [Operand] RegionField R1 0048E128 Len 0028 utcache-407 [Operand] RegionField R1 0048E188 Len 0028 utcache-407 [Operand] Extra R1 0048E238 Len 0005 dsobject-333 [UNDEFINED] 0048E278 Len 0028 utcache-407 [Operand] BufferField R1 0048E368 Len 0028 utcache-407 [Operand] Buffer R1 0048E528 Len 0028 utcache-407 [Operand] Buffer R1 0048E898 Len 0028 utcache-407 [Node] ???? 0048ED08 Len 0028 utcache-407 [Node] ???? 0048EF18 Len 0028 utcache-407 [Operand] Extra R1 0048EFC8 Len 0028 utcache-407 [Operand] Region R5 0048D0E8 Len 0028 utcache-407 [Operand] Region R5 0048C938 Len 0028 utcache-407 [Operand] Extra R1 0048BB48 Len 0028 utcache-407 [Node] ???? 00489648 Len 0028 utcache-407 [Node] ???? 00489708 Len 0028 utcache-407 [Node] ???? 00489828 Len 0028 utcache-407 [Node] ???? 00489B88 Len 0028 utcache-407 [Node] ???? 0047E948 Len 0005 dsobject-333 [UNDEFINED] 00471428 Len 0028 utcache-407 [Operand] AddrHandler R5 0046E618 Len 0028 utcache-407 [Operand] IndexField R4 0046E678 Len 0028 utcache-407 [Operand] BankField R4 0046E6D8 Len 0028 utcache-407 [Operand] RegionField R4 0046E738 Len 0028 utcache-407 [Operand] RegionField R4 0046E798 Len 0028 utcache-407 [Operand] RegionField R4 0046E7F8 Len 0028 utcache-407 [Operand] RegionField R4 0046E858 Len 0028 utcache-407 [Operand] Extra R1 0046E8B8 Len 0028 utcache-407 [Operand] BufferField R4 0046E968 Len 0028 utcache-407 [Operand] Buffer R4 00459C68 Len 0028 utcache-407 [Operand] Extra R1 00459CC8 Len 0028 utcache-407 [Operand] Region R20 ACPI Error (utalloc-1053): 100(64) Outstanding allocations [20060127] # .............................. */ /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 203 (local-bugzilla-348): * * SUMMARY: ObjectType operation falls into infinite loop for ring of RefOf references * * Note: add verifications while sorting out and fixing the bug (CH03/CH04/..) */ Method (M813, 0, NotSerialized) { Method (M000, 0, NotSerialized) { Local1 = RefOf (Local0) Local2 = RefOf (Local1) Local0 = RefOf (Local2) Local7 = ObjectType (Local0) /* ? */ If ((Local7 != C008)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, C008) } /* or RING_OF_REFS_EXCEPTION? */ } M000 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0203/RUN.asl0000700000175000017500000000401214773714152026343 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 203", TCLD, 0xCB, W017)) { SRMT ("m813") If (Y203) { M813 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0203/MAIN.asl0000700000175000017500000000413114773714151026424 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B203.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0203/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0203/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0108_ASL/0000700000175000017500000000000014773714150025677 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0108_ASL/DECL.asl0000700000175000017500000000425014773714150027113 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0108: * * SUMMARY: The ASL Compiler crashes when the result of ToBCD exceeds the current range of Integer * * Crash on compilation... */ Method(me70) { Store(ToBCD(0x5F5E0FF), Local0) if (LNotEqual(Local0, 0)) { err("", zFFF, __LINE__, 0, 0, Local0, 0) } Store(ToBCD(0x5F5E100), Local0) if (LNotEqual(Local0, 0)) { err("", zFFF, __LINE__, 0, 0, Local0, 0) } Store(ToBCD(0x2386F26FC0FFFF), Local0) if (LNotEqual(Local0, 0)) { err("", zFFF, __LINE__, 0, 0, Local0, 0) } Store(ToBCD(0x2386F26FC10000), Local0) if (LNotEqual(Local0, 0)) { err("", zFFF, __LINE__, 0, 0, Local0, 0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0108_ASL/RUN.asl0000700000175000017500000000317414773714150027054 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 108", TCLD, 108, W017)) { SRMT("me70") me70() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0108_ASL/MAIN.asl0000700000175000017500000000414114773714150027127 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B108.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0108_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0108_ASL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0302/0000700000175000017500000000000014773714153025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0302/DECL.asl0000700000175000017500000000672314773714153026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 302: * * SUMMARY: Scope operation doesn't work for the root node Location */ Method (M1EB, 0, NotSerialized) { Method (M100, 0, NotSerialized) { Method (M200, 0, Serialized) { Debug = "---------------- Before " Scope (\_SB) { Name (I2Z7, 0xABCD0007) } Debug = "---------------- After Scope(\\_SB)" M201 () Debug = "---------------- Completed." } Method (M201, 0, NotSerialized) { If ((\_SB.I2Z7 != 0xABCD0007)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, \_SB.I2Z7, 0xABCD0007) } } M200 () } Method (M101, 0, NotSerialized) { Method (M202, 0, Serialized) { Debug = "---------------- Before " Scope (\) { Name (I2Z4, 0xABCD0004) } Debug = "---------------- After Scope(\\)" M203 () Debug = "---------------- Completed." } Method (M203, 0, NotSerialized) { If ((\I2Z4 != 0xABCD0004)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, \I2Z4, 0xABCD0004) } } M202 () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m1eb-m100") M100 () SRMT ("m1eb-m101") If (Y302) { M101 () } Else { BLCK () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0302/RUN.asl0000700000175000017500000000356714773714153026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 302", TCLD, 0x012E, W017)) { M1EB () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0302/MAIN.asl0000700000175000017500000000413214773714153026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B302.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0302/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0302/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0232_F_OPTION/0000700000175000017500000000000014773714152026535 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0232_F_OPTION/DECL.asl0000700000175000017500000000443414773714152027755 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 232: * * SUMMARY: no exception on the repeated declaration * * The test requires utilyzing of * the -f option on the ASL compilation * stage. * * ASL Compiler: * * -f - Ignore errors, force creation of AML output file(s) */ /* * Name(n000, 0) * Error 1034 - ^ Name already exists in scope (N000) */ Method(m15c,, Serialized) { Name (VV, 0x1234) Store (32, Local0) CH03("", 0, 0x000, __LINE__, 0) Name (VV, 0xBBBBAAAA) Store (12, Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Method(m15f) { Method(m000) {} Store (32, Local0) CH03("", 0, 0x000, __LINE__, 0) Method(m000) {} Store (12, Local2) CH04("", 0, 0xff, 0, __LINE__, 0, 0) } Method(m160) { SRMT("m15c") m15c() SRMT("m15f") m15f() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0232_F_OPTION/RUN.asl0000700000175000017500000000315614773714152027712 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 232", TCLD, 232, W017)) { m160() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0232_F_OPTION/MAIN.asl0000700000175000017500000000413114773714152027764 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B232.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0232/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0232/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0088/0000700000175000017500000000000014773714150025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0088/DECL.asl0000700000175000017500000000537514773714150026434 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0088: * * SUMMARY: Spec of Match operator should be changed (conversion/null package entries) */ Method (ME3D, 1, Serialized) { Local0 = 0x00 Switch (ToInteger (Arg0)) { Case ("c179b3fe") { Local0 = 0x01 } Default { Local0 = 0x02 } } If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } } Method (ME3E, 1, Serialized) { Local0 = 0x00 Switch (ToInteger (Arg0)) { Case (Package (0x01) { "c179b3fe" } ) { Local0 = 0x01 } Default { Local0 = 0x02 } } If ((Local0 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01) } } Method (ME3F, 0, NotSerialized) { ME3D (0xC179B3FE) ME3E (0xC179B3FE) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0088/RUN.asl0000700000175000017500000000361614773714150026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 88", TCLD, 0x58, W017)) { SRMT ("me3f") ME3F () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0088/MAIN.asl0000700000175000017500000000413114773714150026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B88.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0088/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0088/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0039_ASL_RUNTIME/0000700000175000017500000000000014773714147027113 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0039_ASL_RUNTIME/DECL.asl0000700000175000017500000000452714773714147030336 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0039: * * SUMMARY: The ASL Compiler fails on specific expressions with ObjectType */ Method (MDCF, 0, Serialized) { Name (C010, 0x08) /* Method */ Name (C018, 0x10) /* Debug Object */ /* Debug Object */ Local0 = ObjectType (Debug) If ((Local0 != C018)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C018) } /* Method */ Method (M0F2, 0, NotSerialized) { Return (0x1234) } Local0 = ObjectType (M0F2) If ((Local0 != C010)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C010) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0039_ASL_RUNTIME/RUN.asl0000700000175000017500000000361614773714147030271 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 39", TCLD, 0x27, W017)) { SRMT ("mdcf") MDCF () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0039_ASL_RUNTIME/MAIN.asl0000700000175000017500000000416114773714147030345 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B39.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0039_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0039_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0251_ACTION_REQUIRED/0000700000175000017500000000000014773714152027536 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0251_ACTION_REQUIRED/DECL.asl0000700000175000017500000000320714773714152030753 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 251: * * SUMMARY: AE_ALREADY_EXISTS on multi-threading on Switch operator */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0251_ACTION_REQUIRED/MAIN.asl0000700000175000017500000000715614773714152030777 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B251.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/common.asl") Include("../../../../../runtime/cntl/mt_runpoint.asl") Include("../../../../../runtime/cntl/runmode.asl") Include("../../../../../runtime/cntl/ehandle.asl") Name(num, 10) // repetition of While number Method(m02b) { Store("================ Test m02b started", Debug) Store(num, Local0) While (Local0) { Concatenate("Iteration ", Local0, Debug) Store(0, Local3) Switch (Local3) { Case (0) { Store("Case (0)", Debug) } } Sleep(100) Decrement(Local0) } Store("================ Test m02b completed", Debug) } /* The same as m02b but without While */ Method(m02c) { Store("================ Test m02c started", Debug) Store(num, Local0) // While (Local0) { Concatenate("Iteration ", Local0, Debug) Store(0, Local3) Switch (Local3) { Case (0) { Store("Case (0)", Debug) } } Sleep(100) Decrement(Local0) // } Store("================ Test m02c completed", Debug) } /* * Note: advanced for mt-tests - * in case of Threads command * the arguments passed to method are: * * arg0 - total number of threads created by Threads command * arg1 - ID of the current thread * arg2 - index of the current thread (0, 1, 2 ... ) */ Method(MAIN, 3) { // Initialization STRT(0) // Run verification methods CH03("", 0, 0x000, __LINE__, 0) if (LEqual(arg1, "AML Debugger")) { Store("========== args of Execute command of AcpiExec:", Debug) Store(arg0, Debug) Store(arg1, Debug) Store("==========.", Debug) } else { Store("========== args of Threads command of AcpiExec:", Debug) Store(arg0, Debug) Store(arg1, Debug) Store(arg2, Debug) Store("==========.", Debug) if (1) { m02b() } else { m02c() } } CH03("", 0, 0x001, __LINE__, 0) // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0020/0000700000175000017500000000000014773714147025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0020/DECL.asl0000700000175000017500000000445514773714147026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0020: * * SUMMARY: LLess works incorrectly for Buffer-operands containing zero */ Method (MDB5, 0, NotSerialized) { Local7 = 0x00 Local0 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x25 // !".% } Local1 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x26 // !".& } If ((Local0 < Local1)) { Local7 = 0x01 } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } Return (Local7) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0020/RUN.asl0000700000175000017500000000361614773714147026355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 20", TCLD, 0x14, W017)) { SRMT ("mdb5") MDB5 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0020/MAIN.asl0000700000175000017500000000413114773714147026426 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B20.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0020/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0020/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0137/0000700000175000017500000000000014773714151025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0137/DECL.asl0000700000175000017500000000451214773714151026420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 137: * * SUMMARY: The Implicit Result Object conversion is mistakenly applied to the optional storing of FromBCD * * ROOT CAUSE */ Method (MF28, 0, Serialized) { Name (STR0, "STR0") Name (STR1, "STR1") ToBCD (0x00BC614E, STR0) /* \MF28.STR0 */ Local0 = ObjectType (STR0) If ((Local0 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } FromBCD (0x12345678, STR1) /* \MF28.STR1 */ Local0 = ObjectType (STR1) If ((Local0 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0137/RUN.asl0000700000175000017500000000361714773714151026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 137", TCLD, 0x89, W017)) { SRMT ("mf28") MF28 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0137/MAIN.asl0000700000175000017500000000413214773714151026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B137.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0137/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0137/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0159_ML/0000700000175000017500000000000014773714151025577 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0159_ML/DECL.asl0000700000175000017500000000417314773714151027017 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 159: * * SUMMARY: Memory leak till the Method exit for each execution of Continue * * Only, to demonstrate visually the rate of execution * before and after the patch has been applied. */ Method(mf47) { Store("mf47 started", Debug) Name(i000, 0) Name(num, 0) Name(lpN0, 0) Name(lpC0, 0) Store(0xA000, num) // Store(0x14000, num) Store(num, i000) Store(1, lpN0) Store(0, lpC0) While (lpN0) { if (i000) { Store(i000, Debug) Decrement(i000) Continue } Decrement(lpN0) Increment(lpC0) } Store("mf47 finished", Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0159_ML/RUN.asl0000700000175000017500000000317414773714151026754 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 159", TCLD, 159, W017)) { SRMT("mf47") mf47() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0159_ML/MAIN.asl0000700000175000017500000000413714773714151027034 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B159.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0159_ML/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0159_ML/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0300/0000700000175000017500000000000014773714153025175 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0300/DECL.asl0000700000175000017500000000665014773714153026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 300: * * SUMMARY: Recursive calls to methods with the internal declarations (and Switches) should be provided */ Method (M1E9, 0, NotSerialized) { Method (M000, 0, Serialized) { Name (I000, 0x00) Name (MAX0, 0x0A) I000 = MAX0 /* \M1E9.M000.MAX0 */ Method (M100, 1, Serialized) { /* * Method m100 contains internal declarations and Switch and * is invoked recursively but no exceptions should be there, * and the proper execution provided. */ Name (II00, 0x00) Name (II01, 0x00) Name (II02, 0x00) Name (II03, 0x00) II00 = Arg0 II01 = 0x00 II02 = 0x00 II03 = 0x00 Local5 = Arg0 Concatenate ("================== i000: ", I000, Debug) I000-- Switch (I000) { Case (0x00) { Debug = "No more recursive calls" } Default { M100 (I000) } } If ((Arg0 != II00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, II00) } If ((Arg0 != Local5)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Local5) } } M100 (0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0300/RUN.asl0000700000175000017500000000362114773714153026347 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 300", TCLD, 0x012C, W017)) { SRMT ("m1e9") M1E9 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0300/MAIN.asl0000700000175000017500000000413214773714153026425 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B300.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0300/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0300/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0095/0000700000175000017500000000000014773714150025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0095/DECL.asl0000700000175000017500000000441214773714150026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0095: * * SUMMARY: Big amount of invocations of Methods causes overlap of OwnerId counter */ Method (ME46, 1, NotSerialized) { Return (Arg0) } Method (ME47, 1, Serialized) { Name (LPN0, 0xF101) While (LPN0) { Local0 = LPN0-- ME46 (Local0) If (((Local0 % 0x0100) == 0x01)) { /* Store(Local0, Debug) */ Local7 = 0x00 } } Return (Arg0) } Method (ME48, 0, NotSerialized) { ME47 (0x01) Return (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0095/RUN.asl0000700000175000017500000000361614773714150026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 95", TCLD, 0x5F, W017)) { SRMT ("me48") ME48 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0095/MAIN.asl0000700000175000017500000000413114773714150026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B95.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0095/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0095/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0070_ASL/0000700000175000017500000000000014773714150025675 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0070_ASL/DECL.asl0000700000175000017500000000572014773714150027114 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0070: * * SUMMARY: The ASL Compiler should reject Resource Descriptors where ResourceSourceIndex is present but ResourceSource is omitted * * Compiler should return error... */ Method(me09) { Name (RT00, ResourceTemplate () { DWordIO ( , , , , , 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff, 0x0f) DWordMemory ( , , , , , ReadOnly, 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff, 0x0f) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x0f) {0xfcfdfeff} QWordIO ( , , , , , 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff, 0x0f) QWordMemory ( , , , , , ReadOnly, 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff, 0x0f) WordBusNumber ( , , , , 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff, 0x0f) WordIO ( , , , , , 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff, 0x0f) DWordSpace (0xc0, , , , , 0x5a, 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff, 0x0f) QWordSpace (0xc0, , , , , 0x5a, 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff, 0x0f) WordSpace (0xc0, , , , , 0x5a, 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff, 0x0f) }) Store(RT00, Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0070_ASL/MAIN.asl0000700000175000017500000000402314773714150027124 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B70.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0070_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0018/0000700000175000017500000000000014773714147025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0018/DECL.asl0000700000175000017500000000446014773714147026425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0018: * * SUMMARY: LGreater works incorrectly for Buffer-operands containing zero */ Method (MDB3, 0, NotSerialized) { Local7 = 0x00 Local0 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x26 // !".& } Local1 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x25 // !".% } If ((Local0 > Local1)) { Local7 = 0x01 } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } Return (Local7) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0018/RUN.asl0000700000175000017500000000361614773714147026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 18", TCLD, 0x12, W017)) { SRMT ("mdb3") MDB3 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0018/MAIN.asl0000700000175000017500000000413114773714147026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B18.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0018/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0018/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0116_ASL/0000700000175000017500000000000014773714150025676 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0116_ASL/DECL.asl0000700000175000017500000000454414773714150027120 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 116: * * SUMMARY: The ASL Compiler doesn't recognize attempts to generate IRefs to arbitrary type objects * * Compiler should return error... */ Method(me87) { Name(i000, 0xabcdef) Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,8} Field(r000, ByteAcc, NoLock, Preserve) {bnk0,8,f00a,8,f00b,8} BankField(r000, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0,4} IndexField(f00a, f00b, ByteAcc, NoLock, Preserve) {if00,1,if01,1} CreateField(b000, 0, 8, bf00) Index(i000, 0) // i000 - Integer Index(bf00, 0) // bf00 - Buffer Field Index(f000, 0) // f000 - Field Unit by Field() Index(bkf0, 0) // bkf0 - Field Unit by BankField() Index(if00, 0) // if00 - Field Unit by IndexField() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0116_ASL/MAIN.asl0000700000175000017500000000402314773714150027125 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B116.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0116_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0005/0000700000175000017500000000000014773714147025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0005/DECL.asl0000700000175000017500000000475114773714147026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0005: * * SUMMARY: Switch operator doesn't provide Default branch * * Default is not yet implemented at all. */ Method (MDA1, 1, Serialized) { Local7 = 0x00 Switch (ToInteger (Arg0)) { Case (0x05) { Local7 = 0x1234 } Default { Local7 = 0x5678 } } If ((Arg0 == 0x05)) { If ((Local7 != 0x1234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, 0x1234) } } ElseIf ((Local7 != 0x5678)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local7, 0x5678) } } Method (MDA2, 0, NotSerialized) { MDA1 (0x05) MDA1 (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0005/RUN.asl0000700000175000017500000000361514773714147026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 5", TCLD, 0x05, W017)) { SRMT ("mda2") MDA2 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0005/MAIN.asl0000700000175000017500000000413114773714147026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B5.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0005/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0005/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0247/0000700000175000017500000000000014773714152025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0247/DECL.asl0000700000175000017500000000745014773714152026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 247: * * SUMMARY: ASL compiler incorrectly implements Break within Switch */ Method (M17C, 0, Serialized) { Name (ERRN, 0x00) Method (M000, 3, Serialized) { Name (CH10, 0x00) Name (CH11, 0x00) Name (CH20, 0x00) Name (CH21, 0x00) Debug = Arg0 Local0 = 0x02 While (Local0) { If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } ERRN++ Switch (Local0) { Case (0x01) { If (Arg1) { CH10 = 0x01 Break } CH11 = 0x01 } Case (0x02) { If (Arg2) { CH20 = 0x01 Break } CH21 = 0x01 } } If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } ERRN++ Local0-- } If ((CH10 != Arg1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, CH10, Arg1) } ERRN++ If ((CH11 == Arg1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, CH11, Arg1) } ERRN++ If ((CH20 != Arg2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, CH20, Arg2) } ERRN++ If ((CH21 == Arg2)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, CH21, Arg2) } ERRN++ } M000 ("No Breaks", 0x00, 0x00) M000 ("Break 2", 0x00, 0x01) M000 ("Break 1", 0x01, 0x00) M000 ("2 Breaks", 0x01, 0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0247/RUN.asl0000700000175000017500000000361714773714152026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 247", TCLD, 0xF7, W017)) { SRMT ("m17c") M17C () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0247/MAIN.asl0000700000175000017500000000413114773714152026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B247.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0247/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0247/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0158_ML/0000700000175000017500000000000014773714151025576 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0158_ML/DECL.asl0000700000175000017500000000422014773714151027007 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 158: * * SUMMARY: Memory leak till the Method exit for each execution of Break * * Only, to demonstrate visually the rate of execution * before and after the patch has been applied. */ Method(mf46) { Store("mf46 started", Debug) Name(i000, 0) Name(num, 0) Name(lpN0, 0) Name(lpC0, 0) Store(0xA000, num) // Store(0x14000, num) Store(num, i000) Store(num, lpN0) Store(0, lpC0) While (lpN0) { if (i000) { While (1) { Store(lpC0, Debug) Decrement(i000) Break } } Decrement(lpN0) Increment(lpC0) } Store("mf46 finished", Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0158_ML/RUN.asl0000700000175000017500000000317414773714151026753 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 158", TCLD, 158, W017)) { SRMT("mf46") mf46() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0158_ML/MAIN.asl0000700000175000017500000000413714773714151027033 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B158.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0158_ML/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0158_ML/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0166_ML/0000700000175000017500000000000014773714151025575 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0166_ML/DECL.asl0000700000175000017500000001376614773714151027025 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 166: * * SUMMARY: Releasing memory of the inside Method scopes surrounding Return operation is needed * * Only, to initiate Return operation from the inside * Method scopes surrounding that Return operation (If, * While, Switch, etc..) */ Method (MF4F, 0, NotSerialized) { } Method (MF50, 0, NotSerialized) { If (0xABCD0001) { Return (0xABCD0010) } } Method (MF51, 0, NotSerialized) { If (0xABCD0000) { If (0xABCD0001) { Return (0xABCD0010) } } } Method (MF52, 0, NotSerialized) { While (0xABCD0000) { Return (0xABCD0020) } } Method (MF53, 0, NotSerialized) { MF4F () MF50 () MF51 () MF52 () While (0xABCD0000) { MF4F () MF50 () MF51 () MF52 () If (0xABCD0001) { While (0xABCD0002) { If (0xABCD0003) { While (0xABCD0004) { If (0xABCD0005) { While (0xABCD0006) { If (0xABCD0007) { MF4F () MF50 () MF51 () MF52 () While (0xABCD0008) { If (0xABCD0009) { While (0xABCD000A) { If (0xABCD000B) { While (0xABCD000C) { If (0xABCD000D) { While (0xABCD000E) { If (0xABCD000F) { If (0x00) { Debug = "Impossible 0" } ElseIf (0xABCD0010) { Return (0xABCD0030) } } } } } MF4F () MF50 () MF51 () MF52 () } } } } MF4F () MF50 () MF51 () MF52 () } } } } } } } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0166_ML/RUN.asl0000700000175000017500000000361714773714151026754 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 166", TCLD, 0xA6, W017)) { SRMT ("mf53") MF53 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0166_ML/MAIN.asl0000700000175000017500000000413714773714151027032 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B166.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0166_ML/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0166_ML/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0139/0000700000175000017500000000000014773714151025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0139/DECL.asl0000700000175000017500000000566114773714151026430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 139: * * SUMMARY: DeRefof and Store operations on 64-bit Integers of 32-bit AML table has been loaded modify them * * ROOT CAUSE */ Method (MF2A, 0, NotSerialized) { If ((ID1B != 0xFEDCBA9876543210)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID1B, 0xFEDCBA9876543210) } Else { Debug = "Ok, initially id1b = 0xfedcba9876543210" Debug = "Store(id1b, Local0)" Local0 = ID1B /* \ID1B */ If ((ID1B != 0xFEDCBA9876543210)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID1B, 0xFEDCBA9876543210) } } } Method (MF2B, 0, NotSerialized) { Debug = "Store(Refof(id1c), Local0)" Local0 = RefOf (ID1C) If ((ID1C != 0xFEDCBA9876543211)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID1C, 0xFEDCBA9876543211) } Else { Debug = "Ok, initially id1c = 0xfedcba9876543211" Debug = "DeRefof(Local0)" Local1 = DerefOf (Local0) If ((ID1C != 0xFEDCBA9876543211)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID1C, 0xFEDCBA9876543211) } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0139/RUN.asl0000700000175000017500000000367514773714151026370 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 139", TCLD, 0x8B, W017)) { SRMT ("mf2a") MF2A () SRMT ("mf2b") MF2B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0139/MAIN.asl0000700000175000017500000000424614773714151026443 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B139.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0139/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0139/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0010/0000700000175000017500000000000014773714147025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0010/DECL.asl0000700000175000017500000000603014773714147026410 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0010: * * SUMMARY: ToBuffer transforms operand (in local variable) to reference */ Method (MDA9, 0, NotSerialized) { Local0 = Buffer (0x04) { 0x0A, 0x0B, 0x0C, 0x0D // .... } ToBuffer (Local0, Local1) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x04) { 0x0A, 0x0B, 0x0C, 0x0D // .... })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Buffer (0x04) { 0x0A, 0x0B, 0x0C, 0x0D // .... }) } Local2 = ObjectType (Local0) If ((Local2 != C00B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local0 != Buffer (0x04) { 0x0A, 0x0B, 0x0C, 0x0D // .... })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Buffer (0x04) { 0x0A, 0x0B, 0x0C, 0x0D // .... }) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0010/RUN.asl0000700000175000017500000000361614773714147026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 10", TCLD, 0x0A, W017)) { SRMT ("mda9") MDA9 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0010/MAIN.asl0000700000175000017500000000413114773714147026425 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B10.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0010/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0010/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0304/0000700000175000017500000000000014773714153025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0304/DECL.asl0000700000175000017500000002760214773714153026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 304: * * SUMMARY: No exception AE_AML_METHOD_LIMIT for the number of method invocations exceeding 255 */ Method (M1ED, 0, NotSerialized) { Method (M18A, 1, Serialized, 3) { Name (RPT0, 0x00) Name (I000, 0x00) /* * Total number of calls of the same Recursively Called method (RCM), * the first call is counted there too. */ Name (N000, 0x03) Name (CNT0, 0x00) /* how many methods are in progress simultaneously */ Name (MAX0, 0x00) /* maximal number of methods being in progress simultaneously */ Name (CNT1, 0x00) /* summary of total indexes */ Name (IX00, 0x00) /* total index of current call */ Name (IND1, 0x00) /* index of call to m100 */ Name (IND2, 0x00) /* index of call to m200 */ Name (IND3, 0x00) /* index of call to m300 */ Name (IND4, 0x00) /* index of call to m400 */ Name (N100, 0x03) /* number of calls to m100 */ Name (N200, 0x06) /* number of calls to m200 */ Name (N300, 0x0C) /* number of calls to m300 */ Name (N400, 0x18) /* number of calls to m400 */ Name (P100, Package (N100){}) /* Package to keep total indexes of call to m100 */ Name (P200, Package (N200){}) /* Package to keep total indexes of call to m200 */ Name (P300, Package (N300){}) /* Package to keep total indexes of call to m300 */ Name (P400, Package (0x0100){}) /* Package to keep total indexes of call to m400 */ /* Benchmarks of indexes */ Name (B1B0, Buffer (N100) { 0x00, 0x16, 0x2C // .., }) Name (B2B0, Buffer (N200) { 0x01, 0x0B, 0x15, 0x17, 0x21, 0x2B // ....!+ }) Name (B3B0, Buffer (N300) { /* 0000 */ 0x02, 0x06, 0x0A, 0x0C, 0x10, 0x14, 0x18, 0x1C, // ........ /* 0008 */ 0x20, 0x22, 0x26, 0x2A // "&* }) Name (B4B0, Buffer (0x0100) { /* 0000 */ 0x03, 0x04, 0x05, 0x07, 0x08, 0x09, 0x0D, 0x0E, // ........ /* 0008 */ 0x0F, 0x11, 0x12, 0x13, 0x19, 0x1A, 0x1B, 0x1D, // ........ /* 0010 */ 0x1E, 0x1F, 0x23, 0x24, 0x25, 0x27, 0x28, 0x29 // ..#$%'() }) /* * Open method execution * * arg0 - ID of method (1,2,3...) * arg1 - the message to be reported */ Method (M800, 2, Serialized) { If (RPT0) { Debug = Arg1 } CNT0++ If ((CNT0 > MAX0)) { MAX0 = CNT0 /* \M1ED.M18A.CNT0 */ } Switch (ToInteger (Arg0)) { Case (0x01) { P100 [IND1] = IX00 /* \M1ED.M18A.IX00 */ IND1++ } Case (0x02) { P200 [IND2] = IX00 /* \M1ED.M18A.IX00 */ IND2++ } Case (0x03) { P300 [IND3] = IX00 /* \M1ED.M18A.IX00 */ IND3++ } Case (0x04) { P400 [IND4] = IX00 /* \M1ED.M18A.IX00 */ IND4++ } } IX00++ /* total index */ } /* * Close method execution * * arg0 - ID of method (1,2,3...) */ Method (M801, 1, NotSerialized) { CNT0-- } /* * arg0 - ID of method (1,2,3...) * arg1 - number of elements to be compared * arg2 - Package * arg3 - Package with the benchmark values */ Method (M802, 4, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { Local0 = DerefOf (Arg2 [LPC0]) Local1 = DerefOf (Arg3 [LPC0]) If ((Local0 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) Debug = Arg0 Debug = LPC0 /* \M1ED.M18A.M802.LPC0 */ } LPN0-- LPC0++ } Switch (ToInteger (Arg0)) { Case (0x01) { If ((IND1 != N100)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, IND1, N100) } } Case (0x02) { If ((IND2 != N200)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, IND2, N200) } } Case (0x03) { If ((IND3 != N300)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, IND3, N300) } } Case (0x04) { If ((IND4 != N400)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, IND4, N400) } } } } /* * Arguments of methods: * arg0 - 0 - the first call, otherwise - recursive calls */ Name (C000, 0x03) Name (C100, 0x03) Name (C200, 0x03) Name (C300, 0x03) /* * None internal objects (including Methods) or Switches in Serialized methods below * * Note: if Serialized method has internal objects (including Methods and Switches) * it could not be invoked recursively by the same thread. */ Method (M100, 0, Serialized) { C100 = 0x03 Local1 = IND1 /* \M1ED.M18A.IND1 */ Local0 = IX00 /* \M1ED.M18A.IX00 */ M800 (0x01, "m100") C000-- If ((C000 == 0x00)){ /* m000() */ } Else { M200 () } M801 (0x01) CNT1 += Local0 Local1 = DerefOf (P100 [Local1]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } } Method (M200, 0, Serialized) { C200 = 0x03 Local1 = IND2 /* \M1ED.M18A.IND2 */ Local0 = IX00 /* \M1ED.M18A.IX00 */ M800 (0x02, "m200") C100-- If ((C100 == 0x00)) { M100 () } Else { M300 () } M801 (0x02) CNT1 += Local0 Local1 = DerefOf (P200 [Local1]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } } Method (M300, 0, Serialized) { If (I000) { C300 = 0x1F /* Store(32, c300) // AE_AML_METHOD_LIMIT occurs for this number (0x111 == 273) */ } Else { C300 = 0x03 } Local1 = IND3 /* \M1ED.M18A.IND3 */ Local0 = IX00 /* \M1ED.M18A.IX00 */ M800 (0x03, "m300") C200-- If ((C200 == 0x00)) { M200 () } Else { M400 () } M801 (0x03) CNT1 += Local0 Local1 = DerefOf (P300 [Local1]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } } Method (M400, 0, Serialized) { Local1 = IND4 /* \M1ED.M18A.IND4 */ Local0 = IX00 /* \M1ED.M18A.IX00 */ M800 (0x04, "m400") C300-- If ((C300 == 0x00)) { M300 () } Else { M400 () } M801 (0x04) CNT1 += Local0 Local1 = DerefOf (P400 [Local1]) If ((Local1 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, Local0) } } I000 = Arg0 M100 () Concatenate ("Maximal number of methods being in progress simultaneously ", MAX0, Debug) /* Check if exception takes place (AE_AML_METHOD_LIMIT) */ If (Arg0) { CH04 (__METHOD__, 0x00, 0x54, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_METHOD_LIMIT */ } Else { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m18a-0") M18A (0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m18a-1") M18A (0x01) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0304/RUN.asl0000700000175000017500000000356714773714153026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 304", TCLD, 0x0130, W017)) { M1ED () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0304/MAIN.asl0000700000175000017500000000413214773714153026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B304.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0304/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0304/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0156_ML/0000700000175000017500000000000014773714151025574 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0156_ML/DECL.asl0000700000175000017500000000407714773714151027017 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 156: * * SUMMARY: Memory leak till the Method exit for each execution of If(TRUE)-Else/ElseIf * * Only, to demonstrate visually the rate of execution * before and after the patch has been applied. */ Method(mf45) { Store("mf45 started", Debug) Name(i000, 1) Name(lpN0, 0) Name(lpC0, 0) Store(0, lpC0) Store(0xa000, lpN0) While (lpN0) { if (i000) { Store(lpC0, Debug) } else { Store(lpN0, Debug) } Decrement(lpN0) Increment(lpC0) } Store("mf45 finished", Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0156_ML/RUN.asl0000700000175000017500000000317414773714151026751 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 156", TCLD, 156, W017)) { SRMT("mf45") mf45() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0156_ML/MAIN.asl0000700000175000017500000000413714773714151027031 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B156.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0156_ML/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0156_ML/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0155/0000700000175000017500000000000014773714151025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0155/DECL.asl0000700000175000017500000000463414773714151026425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 155: * * SUMMARY: Global level AML code execution is performed twice */ /* Should be completed !!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!! SEE: all the type declarations must be verified in this manner not only Operregion and Buffield !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ Method (MF6B, 0, NotSerialized) { If ((ID1F != 0x32)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID1F, 0x32) } If ((ID20 != 0x08)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID20, 0x08) } If ((BFD3 != Buffer(){0x99})) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BFD3, Buffer(){0x99}) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0155/RUN.asl0000700000175000017500000000361714773714151026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 155", TCLD, 0x9B, W017)) { SRMT ("mf6b") MF6B () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0155/MAIN.asl0000700000175000017500000000424514773714151026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B155.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0155/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0155/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0045/0000700000175000017500000000000014773714147025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0045/DECL.asl0000700000175000017500000001031514773714147026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0045: * * SUMMARY: Exception on ToDecimalString for Buffer with 51 elements */ Method (MDD6, 0, Serialized) { /* ToDecimalString() when the number of result characters in string */ /* exceeds 200. Results into 204 (51 * 4) characters. */ Name (B000, Buffer (0x33) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01 // ... }) Name (B001, Buffer (0x32) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01 // .. }) ToDecimalString (B001, Local0) If ((Local0 != "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1") } Local1 = SizeOf (Local0) If ((Local1 != 0x63)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x63) } ToDecimalString (B000, Local0) If ((Local0 != "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1") } Local1 = SizeOf (Local0) If ((Local1 != 0x65)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x65) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0045/RUN.asl0000700000175000017500000000361614773714147026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 45", TCLD, 0x2D, W017)) { SRMT ("mdd6") MDD6 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0045/MAIN.asl0000700000175000017500000000413114773714147026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B45.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0045/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0045/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0027/0000700000175000017500000000000014773714147025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0027/DECL.asl0000700000175000017500000000742014773714147026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0027: * * SUMMARY: Crash of ObjectType for the particular BufferFields * * Crash on ObjectType() in different conditions depending on F64. * Test remained as is (due to crash as a main symptom). */ Method (MDBB, 0, Serialized) { Name (B001, Buffer (0xC8){}) If ((F64 == 0x01)) { /*//////////////// 64-bit mode //////////////////////////// */ /* Field(1,71) - before the critical field */ CreateField (B001, 0x01, 0x47, F004) Local0 = ObjectType (F004) Debug = "ObjectType of f004(1,71) field is equal to:" Debug = Local0 /* Field(1,73) - after the critical field */ CreateField (B001, 0x01, 0x49, F005) Local0 = ObjectType (F005) Debug = "ObjectType of f005(1,73) field is equal to:" Debug = Local0 /* Field(1,72) - the field crashes the ACPICA in 64-bit mode */ CreateField (B001, 0x01, 0x48, F006) Debug = "Before running ObjectType of f006(1,72) field." Local0 = ObjectType (F006) Debug = "ObjectType of f006(1,72) field is equal to:" Debug = Local0 } Else { /*//////////////// 32-bit mode //////////////////////////// */ /* Field(1,39) - before the critical field */ CreateField (B001, 0x01, 0x27, F001) Local0 = ObjectType (F001) Debug = "ObjectType of f001(1,39) field is equal to:" Debug = Local0 /* Field(1,41) - after the critical field */ CreateField (B001, 0x01, 0x29, F002) Local0 = ObjectType (F002) Debug = "ObjectType of f002(1,41) field is equal to:" Debug = Local0 /* Field(1,40) - the field crashes the ACPICA in 64-bit mode */ CreateField (B001, 0x01, 0x28, F003) Debug = "Before running ObjectType of f003(1,40) field." Local0 = ObjectType (F003) Debug = "ObjectType of f003(1,40) field is equal to:" Debug = Local0 } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0027/RUN.asl0000700000175000017500000000361614773714147026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 27", TCLD, 0x1B, W017)) { SRMT ("mdbb") MDBB () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0027/MAIN.asl0000700000175000017500000000413114773714147026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B27.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0027/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0027/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0015/0000700000175000017500000000000014773714147025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0015/DECL.asl0000700000175000017500000000440514773714147026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0015: * * SUMMARY: ToDecimalString produces the Strings which have the length greater than expected */ Method (MDB0, 0, Serialized) { Name (B000, Buffer (0x02) { 0x01, 0x01 // .. }) ToDecimalString (B000, Local0) If ((Local0 != "1,1")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "1,1") } Local1 = SizeOf (Local0) If ((Local1 != 0x03)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x03) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0015/RUN.asl0000700000175000017500000000361614773714147026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 15", TCLD, 0x0F, W017)) { SRMT ("mdb0") MDB0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0015/MAIN.asl0000700000175000017500000000413114773714147026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B15.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0015/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0015/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0244/0000700000175000017500000000000014773714152025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0244/DECL.asl0000700000175000017500000002277314773714152026431 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 244: * * SUMMARY: Acquire/Release in a global level AML code is not valid, * removed from test suite. */ /*Mutex(T804, 8) */ /*Mutex(T805, 8) */ /*Mutex(T806, 8) */ /*Mutex(T807, 8) */ /* * These declarations are used for to check the Acquire * and Release operations in a global level AML code. */ /*Name(i101, 0) // non-zero means that this test was run */ /*Name(i104, 1) */ /*Name(i105, 1) */ /*Name(i106, 1) */ /*Name(i107, 1) */ /* Method(m137) { Store(1, i101) Store("m137 started", Debug) if (LNot(i104)) { Release(T804) } Store("m137 completed", Debug) return (1) } Method(m13e) { Store(1, i101) Store("m13e started", Debug) Store(Acquire(T805, 0xffff), i105) Store("m13e completed", Debug) return (1) } Method(m13f) { Store(1, i101) Store("m13f started", Debug) if (LNot(i105)) { Release(T805) } Store("m13f completed", Debug) return (1) } Method(m140) { Store(1, i101) Store("m140 started", Debug) Store(Acquire(T807, 0xffff), i107) Store("m140 completed", Debug) return (1) } */ /* Acquire/Release T804 */ /*Name(b11c, Buffer(Add(1, Store(Acquire(T804, 0xffff), i104))){0}) */ /*Name(b11d, Buffer(m137()){0}) */ /* Acquire/Release T805 */ /*Name(b11e, Buffer(m13e()){0}) */ /*Name(b11f, Buffer(m13f()){0}) */ /* Acquire T806 */ /*Name(b120, Buffer(Add(1, Store(Acquire(T806, 0xffff), i106))){0}) */ /* Acquire T807 */ /*Name(b121, Buffer(m140()){0}) */ /* * m03c - check, register errors and reset the global level execution exception, * set up id01 to non-zero in error case. */ /*Name(i108, 0) */ /*Name(BUF2, Buffer(m03c()){}) */ /* Method(m03c) { if (CH03("", 0, 0x000, __LINE__, 0)) { Store(1, i108) } } */ Method (M02E, 0, NotSerialized) { /* Method(m0b9) { if (i108) { err("", zFFF, __LINE__, 0, 0, 0, 0) } if (LNot(i101)) { Store("******** Test was not run !!!!!!!!!!!!!", Debug) err("", zFFF, __LINE__, 0, 0, 0, 0) return } Store("******** Test started", Debug) CH03("", 0, 0x003, __LINE__, 0) if (i104) { Store("!!!!!!!! ERROR 1: Acquire(T804, 0xffff) failed", Debug) err("", zFFF, __LINE__, 0, 0, 0, 0) } else { Store("Ok: Acquire(T804, 0xffff)", Debug) } if (i105) { Store("!!!!!!!! ERROR 2: Acquire(T805, 0xffff) failed", Debug) err("", zFFF, __LINE__, 0, 0, 0, 0) } else { Store("Ok: Acquire(T805, 0xffff)", Debug) } Release(T804) CH04("", 0, 65, 0, __LINE__, 0, 0) // AE_AML_MUTEX_NOT_ACQUIRED Release(T805) CH04("", 0, 65, 0, __LINE__, 0, 0) // AE_AML_MUTEX_NOT_ACQUIRED // Release T807 if (LNot(i107)) { Release(T807) } else { Store("!!!!!!!! ERROR 7: Acquire(T807, 0xffff) failed", Debug) err("", zFFF, __LINE__, 0, 0, 0, 0) } CH03("", 0, 0x009, __LINE__, 0) // Release T806 if (LNot(i106)) { Release(T806) } else { Store("!!!!!!!! ERROR 5: Acquire(T806, 0xffff) failed", Debug) err("", zFFF, __LINE__, 0, 0, 0, 0) } CH03("", 0, 0x00b, __LINE__, 0) Store("******** Test finished", Debug) } Method(mm00) { m0b9() } mm00() */ } Method (M030, 0, Serialized) { Mutex (T804, 0x08) Mutex (T805, 0x08) Mutex (T806, 0x08) Mutex (T807, 0x08) /* * These declarations are used for to check the Acquire * and Release operations in a global level AML code. */ Name (I101, 0x00) /* non-zero means that this test was run */ Name (I104, 0x01) Name (I105, 0x01) Name (I106, 0x01) Name (I107, 0x01) Method (M137, 0, NotSerialized) { I101 = 0x01 Debug = "m137 started" If (!I104) { Release (T804) } Debug = "m137 completed" Return (0x01) } Method (M13E, 0, NotSerialized) { I101 = 0x01 Debug = "m13e started" I105 = Acquire (T805, 0xFFFF) Debug = "m13e completed" Return (0x01) } Method (M13F, 0, NotSerialized) { I101 = 0x01 Debug = "m13f started" If (!I105) { Release (T805) } Debug = "m13f completed" Return (0x01) } Method (M140, 0, NotSerialized) { I101 = 0x01 Debug = "m140 started" I107 = Acquire (T807, 0xFFFF) Debug = "m140 completed" Return (0x01) } /* Acquire/Release T804 */ Name (B11C, Buffer ((0x01 + I104 = Acquire (T804, 0xFFFF))) { 0x00 // . }) Name (B11D, Buffer (M137 ()) { 0x00 // . }) /* Acquire/Release T805 */ Name (B11E, Buffer (M13E ()) { 0x00 // . }) Name (B11F, Buffer (M13F ()) { 0x00 // . }) /* Acquire T806 */ Name (B120, Buffer ((0x01 + I106 = Acquire (T806, 0xFFFF))) { 0x00 // . }) /* Acquire T807 */ Name (B121, Buffer (M140 ()) { 0x00 // . }) Method (M0B9, 0, NotSerialized) { If (!I101) { Debug = "******** Test was not run !!!!!!!!!!!!!" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (Zero) } Debug = "******** Test started" CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If (I104) { Debug = "!!!!!!!! ERROR 1: Acquire(T804, 0xffff) failed" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire(T804, 0xffff)" } If (I105) { Debug = "!!!!!!!! ERROR 2: Acquire(T805, 0xffff) failed" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } Else { Debug = "Ok: Acquire(T805, 0xffff)" } Release (T804) CH04 (__METHOD__, 0x00, 0x41, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ Release (T805) CH04 (__METHOD__, 0x00, 0x41, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ /* Release T807 */ If (!I107) { Release (T807) } Else { Debug = "!!!!!!!! ERROR 7: Acquire(T807, 0xffff) failed" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* Release T806 */ If (!I106) { Release (T806) } Else { Debug = "!!!!!!!! ERROR 5: Acquire(T806, 0xffff) failed" ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "******** Test finished" } Method (MM00, 0, NotSerialized) { M0B9 () } MM00 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0244/RUN.asl0000700000175000017500000000367514773714152026366 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 244", TCLD, 0xF4, W017)) { SRMT ("m02e") M02E () SRMT ("m030") M030 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0244/MAIN.asl0000700000175000017500000000413114773714152026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B244.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0244/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0244/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0100/0000700000175000017500000000000014773714150025170 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0100/DECL.asl0000700000175000017500000000403014773714150026400 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0100: * * SUMMARY: The specific combination of operators aborts execution */ Method (ME5C, 0, NotSerialized) { Return (0x00) } Method (ME5D, 0, Serialized) { Debug = "Start of test:" ME5C () Device (D000) { } Name (I000, 0x00ABCDEF) Debug = "Finish of test." } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0100/RUN.asl0000700000175000017500000000361714773714150026347 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 100", TCLD, 0x64, W017)) { SRMT ("me5d") ME5D () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0100/MAIN.asl0000700000175000017500000000413214773714150026420 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B100.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0100/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0100/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0231/0000700000175000017500000000000014773714152025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0231/DECL.asl0000700000175000017500000001101114773714152026404 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 231: * * SUMMARY: ParameterTypes argument of Method declaration is not supported */ Method (M128, 0, Serialized) { /* Data to be passed to Method */ Name (I000, 0xFE7CB391D65A0000) Name (S000, "12340002") Name (B000, Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... }) Name (B001, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) Event (E000) Mutex (MX00, 0x00) Device (D000) { Name (I000, 0xABCD0017) } ThermalZone (TZ00) { } Processor (PR00, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (R900, SystemMemory, 0x0100, 0x0100) OperationRegion (R9Z0, SystemMemory, 0x0100, 0x0100) PowerResource (PW90, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } CreateField (B001, 0x00, 0x08, BF90) Field (R9Z0, ByteAcc, NoLock, Preserve) { F900, 8, F901, 8, F902, 8, F903, 8 } BankField (R9Z0, F901, 0x00, ByteAcc, NoLock, Preserve) { BN90, 4 } IndexField (F902, F903, ByteAcc, NoLock, Preserve) { IF90, 8, IF91, 8 } Method (MMM0, 0, NotSerialized) { Return ("mmm0") } /* Method */ Method (M000, 1, NotSerialized) { Debug = Arg0 } Method (M100, 0, NotSerialized) { Debug = "Start of test" M000 (I000) M000 (S000) M000 (B000) M000 (P000) M000 (E000) M000 (MX00) M000 (D000) M000 (TZ00) M000 (PR00) M000 (R900) M000 (PW90) M000 (BF90) M000 (F900) M000 (BN90) M000 (IF90) M000 (MMM0 ()) M000 (0xFE7CB391D65A0000) M000 ("12340002") M000 (Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... }) M000 (Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) Debug = "Finish of test" } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M100 () /* Expect either ASL compiler error or any AML interpreter exception */ CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0231/RUN.asl0000700000175000017500000000361714773714152026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 231", TCLD, 0xE7, W017)) { SRMT ("m128") M128 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0231/MAIN.asl0000700000175000017500000000413114773714152026426 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B231.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0231/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0231/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0133/0000700000175000017500000000000014773714151025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0133/DECL.asl0000700000175000017500000000606414773714151026420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 133: * * SUMMARY: The Write access automatic dereference for Index reference doesn't work */ Method (MF21, 1, NotSerialized) { Arg0 = 0x77 } Method (MF22, 0, NotSerialized) { /* Writing by RefOf reference to Integer */ Local0 = RefOf (ID13) MF21 (Local0) If ((ID13 != 0x77)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID13, 0x77) } /* Writing by Index to String */ Local0 = SD05 [0x01] MF21 (Local0) If ((SD05 != "qwer0000")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, SD05, "qwer0000") } /* Writing by Index to Buffer */ Local0 = BD09 [0x01] MF21 (Local0) If ((BD09 != Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. })) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, BD09, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) } /* Writing by Index to Package */ Local0 = PD0F [0x01] MF21 (Local0) Local0 = PD0F [0x01] Local1 = DerefOf (Local0) If ((Local1 != 0x77)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x77) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0133/RUN.asl0000700000175000017500000000361714773714151026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 133", TCLD, 0x85, W017)) { SRMT ("mf22") MF22 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0133/MAIN.asl0000700000175000017500000000424514773714151026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B133.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0133/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0133/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0111/0000700000175000017500000000000014773714150025172 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0111/DECL.asl0000700000175000017500000001230514773714150026406 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 111: * * SUMMARY: No String to Integer and Buffer to Integer conversions of the Predicate Value in If, ElseIf and While operators */ Method (ME73, 1, NotSerialized) { If (Arg0) { Debug = "If done" ID0F = 0x01 } } Method (ME74, 2, NotSerialized) { If (Arg1) { ID0F = 0x01 } ElseIf (Arg0) { ID0F = 0x02 } } Method (ME75, 1, NotSerialized) { While (Arg0) { ID0F = 0x01 Break } } Method (ME76, 0, NotSerialized) { /* ////////// */ ID0F = 0x00 ME73 ("1") If (!ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME73 (Buffer (0x01) { 0x01 // . }) If (!ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME73 ("0") If (ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME73 (Buffer (0x01) { 0x00 // . }) If (ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* ////////// */ ID0F = 0x00 ME74 ("1", 0x00) If ((ID0F != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME74 (Buffer (0x04) { 0x00, 0x00, 0x01, 0x00 // .... }, 0x00) If ((ID0F != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME74 ("0", 0x00) If (ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME74 (Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 // .... }, 0x00) If (ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME74 ("1", 0x01) If ((ID0F != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME74 (Buffer (0x04) { 0x00, 0x00, 0x01, 0x00 // .... }, 0x01) If ((ID0F != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME75 ("0") If (ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME75 (Buffer (0x01) { 0x00 // . }) If (ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME75 ("01") If (!ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } ID0F = 0x00 ME75 (Buffer (0x04) { 0x00, 0x00, 0x01, 0x00 // .... }) If (!ID0F) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0111/RUN.asl0000700000175000017500000000361714773714150026351 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 111", TCLD, 0x6F, W017)) { SRMT ("me76") ME76 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0111/MAIN.asl0000700000175000017500000000424514773714150026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B111.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0111/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0111/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0033_ASL/0000700000175000017500000000000014773714147025702 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0033_ASL/DECL.asl0000700000175000017500000000627114773714147027123 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0033: * * SUMMARY: The ASL-compiler doesn't refuse the same descriptor names present in the same scope (Method) * * The ASL-compiler doesn't refuse the same descriptor names * (Resource Descriptor Macros) present in the same scope (Method). */ Method(mdc8) { Name(RT00, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, DN00) {} IRQ (Edge, ActiveLow, Shared, DN00) {} }) Name(RT01, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8, DN00) {} DMA (Compatibility, NotBusMaster, Transfer8, DN00) {} }) Name(RT02, ResourceTemplate () { IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN00) IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN00) }) Name(RT03, ResourceTemplate () { Memory24 (ReadOnly, 0x0000, 0xffff, 0x0001, 0xfffe, DN00) Memory24 (ReadOnly, 0x0000, 0xffff, 0x0001, 0xfffe, DN00) }) Name(RT04, ResourceTemplate () { IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN00) IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN00) }) } Method(m208) { Name(RT00, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, DN01) {} }) Name(RT01, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8, DN01) {} }) Name(RT02, ResourceTemplate () { IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN01) }) Name(RT03, ResourceTemplate () { Memory24 (ReadOnly, 0x0000, 0xffff, 0x0001, 0xfffe, DN01) }) Name(RT04, ResourceTemplate () { IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN01) }) } Method(m209) { Name(RT00, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, DN02) {} }) Name(RT01, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, DN02) {} }) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0033_ASL/MAIN.asl0000700000175000017500000000402314773714147027131 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B33.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0033_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0294/0000700000175000017500000000000014773714153025211 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0294/DECL.asl0000700000175000017500000002644414773714153026436 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 294: * * SUMMARY: _ERR method can not be evaluated when AE_OWNER_ID_LIMIT is emitted */ Device (D294) { Name (BUF0, Buffer (0x34) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x34, 0x00, 0x00, 0x00, // SSDT4... /* 0008 */ 0x02, 0xEB, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x08, 0x12, 0x06, 0x20, 0x14, 0x0F, 0x5C, 0x53, // ... ..\S /* 0028 */ 0x53, 0x30, 0x30, 0x00, 0xA4, 0x0D, 0x5C, 0x53, // S00...\S /* 0030 */ 0x53, 0x30, 0x30, 0x00 // S00. }) Name (BUF1, Buffer (0x5F) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x5F, 0x00, 0x00, 0x00, // SSDT_... /* 0008 */ 0x02, 0x33, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // .3Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x10, 0x1F, 0x5C, 0x00, // ... ..\. /* 0028 */ 0x08, 0x4E, 0x41, 0x42, 0x53, 0x0D, 0x61, 0x62, // .NABS.ab /* 0030 */ 0x73, 0x6F, 0x6C, 0x75, 0x74, 0x65, 0x20, 0x6C, // solute l /* 0038 */ 0x6F, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, // ocation /* 0040 */ 0x6F, 0x62, 0x6A, 0x00, 0x08, 0x4E, 0x43, 0x52, // obj..NCR /* 0048 */ 0x52, 0x0D, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6E, // R.curren /* 0050 */ 0x74, 0x20, 0x6C, 0x6F, 0x63, 0x61, 0x74, 0x69, // t locati /* 0058 */ 0x6F, 0x6E, 0x20, 0x6F, 0x62, 0x6A, 0x00 // on obj. }) OperationRegion (IST1, SystemMemory, 0x0100, 0x5F) Field (IST1, ByteAcc, NoLock, Preserve) { RFU1, 760 } Name (BUF3, Buffer (0x011F) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x1F, 0x01, 0x00, 0x00, // SSDT.... /* 0008 */ 0x02, 0x58, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // .XIntel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x5B, 0x82, 0x49, 0x0F, // ... [.I. /* 0028 */ 0x41, 0x55, 0x58, 0x44, 0x08, 0x49, 0x4E, 0x54, // AUXD.INT /* 0030 */ 0x30, 0x0E, 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, // 0..2Tv.. /* 0038 */ 0xDC, 0xFE, 0x08, 0x53, 0x54, 0x52, 0x30, 0x0D, // ...STR0. /* 0040 */ 0x73, 0x6F, 0x75, 0x72, 0x63, 0x65, 0x20, 0x73, // source s /* 0048 */ 0x74, 0x72, 0x69, 0x6E, 0x67, 0x30, 0x00, 0x08, // tring0.. /* 0050 */ 0x42, 0x55, 0x46, 0x30, 0x11, 0x0C, 0x0A, 0x09, // BUF0.... /* 0058 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0060 */ 0x01, 0x08, 0x50, 0x41, 0x43, 0x30, 0x12, 0x27, // ..PAC0.' /* 0068 */ 0x03, 0x0E, 0x1F, 0x32, 0x54, 0x76, 0x98, 0xBA, // ...2Tv.. /* 0070 */ 0xDC, 0xFE, 0x0D, 0x74, 0x65, 0x73, 0x74, 0x20, // ...test /* 0078 */ 0x70, 0x61, 0x63, 0x6B, 0x61, 0x67, 0x65, 0x30, // package0 /* 0080 */ 0x00, 0x11, 0x0C, 0x0A, 0x09, 0x13, 0x12, 0x11, // ........ /* 0088 */ 0x10, 0x0F, 0x0E, 0x0D, 0x0C, 0x0B, 0x5B, 0x81, // ......[. /* 0090 */ 0x0B, 0x4F, 0x50, 0x52, 0x30, 0x01, 0x46, 0x4C, // .OPR0.FL /* 0098 */ 0x55, 0x30, 0x20, 0x5B, 0x82, 0x10, 0x44, 0x45, // U0 [..DE /* 00A0 */ 0x56, 0x30, 0x08, 0x53, 0x30, 0x30, 0x30, 0x0D, // V0.S000. /* 00A8 */ 0x44, 0x45, 0x56, 0x30, 0x00, 0x5B, 0x02, 0x45, // DEV0.[.E /* 00B0 */ 0x56, 0x45, 0x30, 0x14, 0x09, 0x4D, 0x4D, 0x4D, // VE0..MMM /* 00B8 */ 0x30, 0x00, 0xA4, 0x0A, 0x00, 0x5B, 0x01, 0x4D, // 0....[.M /* 00C0 */ 0x54, 0x58, 0x30, 0x00, 0x5B, 0x80, 0x4F, 0x50, // TX0.[.OP /* 00C8 */ 0x52, 0x30, 0x00, 0x0C, 0x21, 0x43, 0x65, 0x07, // R0..!Ce. /* 00D0 */ 0x0A, 0x98, 0x5B, 0x84, 0x13, 0x50, 0x57, 0x52, // ..[..PWR /* 00D8 */ 0x30, 0x00, 0x00, 0x00, 0x08, 0x53, 0x30, 0x30, // 0....S00 /* 00E0 */ 0x30, 0x0D, 0x50, 0x57, 0x52, 0x30, 0x00, 0x5B, // 0.PWR0.[ /* 00E8 */ 0x83, 0x16, 0x43, 0x50, 0x55, 0x30, 0x00, 0xFF, // ..CPU0.. /* 00F0 */ 0xFF, 0xFF, 0xFF, 0x00, 0x08, 0x53, 0x30, 0x30, // .....S00 /* 00F8 */ 0x30, 0x0D, 0x43, 0x50, 0x55, 0x30, 0x00, 0x5B, // 0.CPU0.[ /* 0100 */ 0x85, 0x10, 0x54, 0x5A, 0x4E, 0x30, 0x08, 0x53, // ..TZN0.S /* 0108 */ 0x30, 0x30, 0x30, 0x0D, 0x54, 0x5A, 0x4E, 0x30, // 000.TZN0 /* 0110 */ 0x00, 0x5B, 0x13, 0x42, 0x55, 0x46, 0x30, 0x0A, // .[.BUF0. /* 0118 */ 0x00, 0x0A, 0x45, 0x42, 0x46, 0x4C, 0x30 // ..EBFL0 }) OperationRegion (IST3, SystemMemory, 0x0400, 0x011F) Field (IST3, ByteAcc, NoLock, Preserve) { RFU3, 2296 } Name (SNML, "0123456789ABCDEF") Name (NNML, 0x10) /* <= sizeof (SNML) */ /* Take into account AE_OWNER_ID_LIMIT */ Name (HI0M, 0x0100) /* <= (NNML * NNML) */ Name (HI0N, 0x00) Name (INIF, 0x00) Method (_ERR, 3, NotSerialized) { Debug = "_ERR exception handler" Return (0x00) } Method (CHSM, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Local0 = 0x00 /* sum */ LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { Local1 = DerefOf (Arg0 [LPC0]) Local0 += Local1 Local0 %= 0x0100 LPN0-- LPC0++ } Local0 = (0x00 - Local0) Local0 %= 0x0100 Debug = "checksum" Debug = Local0 Return (Local0) } /* Initializes multiple Tables Load test */ Method (INIT, 0, NotSerialized) { Local0 = SizeOf (SNML) If ((NNML > Local0)) { Debug = Concatenate ("INIT: test error, check NNML <= Sizeof(SNML):", ToDecimalString (Local0)) Return (0x01) } Local0 *= Local0 If ((HI0M > Local0)) { Debug = Concatenate ("INIT: test error, check HI0M <= 0x", Local0) Return (0x01) } Return (0x00) } /* Prepares and Loads the next Table of multiple Tables Load test */ Method (LD, 0, Serialized) { If ((HI0N >= HI0M)) { Debug = "LD: too many tables loaded" Return (0x01) } Local2 = (HI0N * 0x30) OperationRegion (IST0, SystemMemory, Local2, 0x34) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 416 } Field (IST0, ByteAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8, OID, 48, OTID, 64, OREV, 32, CID, 32, CREV, 32, Offset (0x27), SSNM, 32, Offset (0x2F), SSRT, 32 } RFU0 = BUF0 /* \D294.BUF0 */ /* Modify Revision field of SSDT */ Store ((CREV + 0x01), CREV) /* \D294.LD__.CREV */ /* Modify SSNM Object Name */ Divide (HI0N, NNML, Local0, Local1) Local1 = DerefOf (SNML [Local1]) Local1 <<= 0x10 Local0 = DerefOf (SNML [Local0]) Local0 <<= 0x18 Local0 += Local1 Local0 += 0x5353 SSNM = Local0 Debug = SSNM /* \D294.LD__.SSNM */ /* Modify SSNM Method Return String */ SSRT = Local0 /* Recalculate and save CheckSum */ Local0 = RFU0 /* \D294.LD__.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \D294.LD__.SUM_ */ Load (RFU0, Local3) HI0N++ Debug = "LD: SSDT Loaded" Return (0x00) } Method (TST0, 0, Serialized) { Name (MAXT, 0xFA) Name (DDB1, 0x00) Name (DDB3, 0x00) If (INIT ()) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (0x01) } RFU1 = BUF1 /* \D294.BUF1 */ RFU3 = BUF3 /* \D294.BUF3 */ Local0 = MAXT /* \D294.TST0.MAXT */ While (Local0) { /* Store(HI0N, Debug) */ If (LD ()) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, HI0N) Return (0x01) } Local0-- } /* Methods can not be called after the following Load */ /* (OWNER_ID is exhausted) */ Load (RFU1, DDB1) /* \D294.TST0.DDB1 */ Debug = "SSDT1 Loaded" /* The following Load should cause AE_OWNER_ID_LIMIT */ Load (RFU3, DDB3) /* \D294.TST0.DDB3 */ CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) Return (0x00) } } Method (M294, 0, NotSerialized) { \D294.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0294/RUN.asl0000700000175000017500000000401414773714153026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 294", TCLD, 0x0126, W017)) { SRMT ("m294") If (Y294) { M294 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0294/MAIN.asl0000700000175000017500000000413114773714153026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B294.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0294/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0294/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0206/0000700000175000017500000000000014773714152025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0206/DECL.asl0000700000175000017500000000477414773714152026430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 206 (local-bugzilla-345): * * SUMMARY: ObjectType operation falls into infinite loop for ring of Index references * * Note: add verifications while sorting out and fixing the bug (CH03/CH04/..) */ Method (M816, 0, NotSerialized) { Method (M000, 0, Serialized) { Name (P000, Package (0x04) { 0x10, 0x11, 0x12, 0x13 }) Store (P000 [0x00], P000 [0x01]) Store (P000 [0x01], P000 [0x02]) Store (P000 [0x02], P000 [0x00]) Store (P000 [0x00], Local0) Local7 = ObjectType (Local0) /* RING_OF_REFS_EXCEPTION? */ Local7 = ObjectType (P000 [0x00]) /* RING_OF_REFS_EXCEPTION? */ } M000 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0206/RUN.asl0000700000175000017500000000401214773714152026346 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 206", TCLD, 0xCE, W017)) { SRMT ("m816") If (Y206) { M816 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0206/MAIN.asl0000700000175000017500000000413114773714152026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B206.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0206/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0206/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0200/0000700000175000017500000000000014773714151025172 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0200/DECL.asl0000700000175000017500000001447514773714151026420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 200 (local-bugzilla-352): * * SUMMARY: the code path taken after exception is incorrect * * AcpiPsParseLoop --> AcpiDsGetPredicateValue --> FAILURE -->> * doesn't fall into AcpiDsMethodError routine after FAILURE (exception) * (the ASLTS-testing stops after these FAILUREs). */ Method (MFB4, 0, NotSerialized) { Debug = "Message from mfb4 -------------------------------!!!" } Method (MFB5, 0, NotSerialized) { Local7 = 0x00 Divide (0x01, Local7, Local2) If ((Local2 != 0x00)) { MFB4 () } } Method (MFB6, 0, NotSerialized) { Local7 = 0x00 Divide (0x01, Local7, Local2) If ((Local2 != 0x00)) { Debug = "Message 0 !!!!!!!!!!!!!!!!!!!!!!" MFB4 () } } Method (MFB7, 0, NotSerialized) { Local7 = 0x00 Divide (0x01, Local7, Local2) } Method (MFB8, 0, NotSerialized) { Local7 = 0x00 Divide (0x01, Local7, Local2) While ((Local2 != 0x00)) { MFB4 () Break } } Method (MFB9, 0, NotSerialized) { Local7 = 0x00 Divide (0x01, Local7, Local2) While ((Local2 != 0x00)) { Debug = "Message 1 !!!!!!!!!!!!!!!!!!!!!!" MFB4 () Break } } Method (MFBA, 0, Serialized) { Local7 = 0x00 Divide (0x01, Local7, Local2) Switch ((Local2 != 0x00)) { Case (0x00) { MFB4 () } } } Method (MFBB, 0, Serialized) { Local7 = 0x00 Divide (0x01, Local7, Local2) Switch ((Local2 != 0x00)) { Case (0x00) { Debug = "Message 2 !!!!!!!!!!!!!!!!!!!!!!" MFB4 () } } } Method (MFBC, 0, NotSerialized) { Local7 = 0x00 Divide (0x01, Local7, Local2) Return (Local2) } Method (MFBD, 0, NotSerialized) { If (MFBC ()) { Debug = "Message 3 !!!!!!!!!!!!!!!!!!!!!!" } } Method (MFBE, 0, NotSerialized) { While (MFBC ()) { Break } } Method (MFBF, 0, Serialized) { Switch (ToInteger (MFBC ())) { Case (0x00) { Debug = "Message 4 !!!!!!!!!!!!!!!!!!!!!!" } } } Method (MFC0, 0, NotSerialized) { /* * The code path taken after the exception here * is not correct for each of these Method calls: */ SRMT ("mfb5") If (Y200) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFB5 () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } Else { BLCK () } SRMT ("mfbd") If (Y200) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFBD () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } Else { BLCK () } SRMT ("mfbe") If (Y200) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFBE () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } Else { BLCK () } /* * These work Ok: */ SRMT ("mfb6") CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFB6 () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) SRMT ("mfb7") CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFB7 () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) SRMT ("mfb8") CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFB8 () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) SRMT ("mfb9") CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFB9 () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) SRMT ("mfba") CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFBA () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) SRMT ("mfbb") CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFBB () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) SRMT ("mfbf") CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MFBF () CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) Debug = "mfc0 ==== successfully returned to mfc0; finished !!!!!" } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0200/RUN.asl0000700000175000017500000000356514773714151026353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 200", TCLD, 0xC8, W017)) { MFC0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0200/MAIN.asl0000700000175000017500000000413114773714151026421 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B200.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0200/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0200/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0187/0000700000175000017500000000000014773714151025210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0187/DECL.asl0000700000175000017500000000462714773714151026434 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 187: * * SUMMARY: No exception in non-slack mode on attempt to obtain value from Method terminated by the standalone Return */ Method (MF70, 0, Serialized) { Name (I000, 0xABCD0000) Method (M000, 0, NotSerialized) { Return (0x00) } /* m000 */ I000 = 0xDDDD9000 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) I000 = M000 () If (SLCK) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((I000 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x00) } } Else { CH07 ("", 0x00, 0xFF, 0x00, 0x03, 0x00, 0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0187/RUN.asl0000700000175000017500000000361714773714151026367 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 187", TCLD, 0xBB, W017)) { SRMT ("mf70") MF70 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0187/MAIN.asl0000700000175000017500000000413114773714151026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B187.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0187/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0187/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0003_ASL/0000700000175000017500000000000014773714147025677 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0003_ASL/DECL.asl0000700000175000017500000000402414773714147027112 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0003: * * COMPONENT: Will not be fixed * * SUMMARY: The ASL Compiler should reject Switch operators with the identical Case operators in it * * Expected: Error of iASL * Two the same values of Case should be reporeted as Error by iASL */ Method(md9d, 1) { Switch (arg0) { case (0) { Store("The first case 0", Debug) } case (0) { Store("The second case 0", Debug) } case (1) { Store("The case 1", Debug) } } } Method(md9e) { md9d(0) md9d(1) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0003_ASL/RUN.asl0000700000175000017500000000317014773714147027050 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 3", TCLD, 3, W017)) { SRMT("md9e") md9e() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0003_ASL/MAIN.asl0000700000175000017500000000414114773714147027127 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B3.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0003_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0003_ASL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0266_DEMO_IMPOSSIBLE/0000700000175000017500000000000014773714152027541 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0266_DEMO_IMPOSSIBLE/DECL.asl0000700000175000017500000000323714773714152030761 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 266: * * SUMMARY: Code of ACPICA which handles AML_NAME_OP as ObjDesc->Reference.Opcode is unused */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0265/0000700000175000017500000000000014773714152025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0265/DECL.asl0000700000175000017500000001062214773714152026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 265: * * SUMMARY: The second run to method calculating the IRef-to-String expression is evaluated incorrectly */ Method (M024, 0, NotSerialized) { Method (MM00, 0, Serialized) { Name (I001, 0x00) Name (S000, "q\x01ertyuiop") Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { Return (0x00) } S000 [0x01] = 0x08 Return ((DerefOf (S000 [0x01]) + M008 ())) } S000 [0x01] = 0x07 Return ((DerefOf (S000 [0x01]) + M007 ())) } S000 [0x01] = 0x06 Return ((DerefOf (S000 [0x01]) + M006 ())) } S000 [0x01] = 0x05 Return ((DerefOf (S000 [0x01]) + M005 ())) } S000 [0x01] = 0x04 Return ((DerefOf (S000 [0x01]) + M004 ())) } S000 [0x01] = 0x03 Return ((DerefOf (S000 [0x01]) + M003 ())) } S000 [0x01] = 0x02 Return ((DerefOf (S000 [0x01]) + M002 ())) } Store ((DerefOf (S000 [0x01]) + M001 ()), Local0) If ((Local0 != 0x24)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x24) } Local0 = DerefOf (S000 [0x01]) Local1 = 0x08 If ((Local0 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } } Method (MM01, 0, NotSerialized) { Debug = "The first run to mm00:" MM00 () Debug = "The second run to mm00:" MM00 () Debug = "The third run to mm00:" MM00 () } MM01 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0265/RUN.asl0000700000175000017500000000362114773714152026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 265", TCLD, 0x0109, W017)) { SRMT ("m024") M024 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0265/MAIN.asl0000700000175000017500000000413114773714152026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B265.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0265/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0265/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0272/0000700000175000017500000000000014773714152025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0272/DECL.asl0000700000175000017500000000561214773714152026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 272: * * SUMMARY: CopyObject of ThermalZone works incorrectly */ Method (M020, 0, Serialized) { Name (I000, 0xABCD0000) Name (I001, 0xABCD0001) Name (I002, 0xABCD0002) ThermalZone (TZ00) { Name (I001, 0xABCD0001) } Method (M123, 1, NotSerialized) { CopyObject (TZ00, Arg0) CopyObject (TZ00, Local0) CopyObject (TZ00, I001) /* \M020.I001 */ Debug = "------------------------- Resulting devices:" Debug = Arg0 Debug = Local0 Debug = I001 /* \M020.I001 */ Debug = "-------------------------." } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M123 (I000) Local0 = ObjectType (I001) If ((Local0 != C015)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C015) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (I002, I001) /* \M020.I001 */ Local0 = ObjectType (I001) If ((Local0 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0272/RUN.asl0000700000175000017500000000362114773714152026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 272", TCLD, 0x0110, W017)) { SRMT ("m020") M020 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0272/MAIN.asl0000700000175000017500000000424514773714152026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B272.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0272/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0272/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0211/0000700000175000017500000000000014773714152025175 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0211/DECL.asl0000700000175000017500000000503314773714152026411 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 211: * * COMPONENT: * * SUMMARY: ACPI-CA memory leak due to optionally stored AML Object passed through "child" Method * (On Slack mode outstanding allocations are detected) * * Note: automate in future counting the number of Outstanding allocations * per-test and expect here zero which would mean success of test. * Currently, always FAILURE. */ Method (M81A, 0, NotSerialized) { Method (M000, 1, NotSerialized) { Debug = Arg0 } Local0 = (0xF0 | 0x01) M000 (Local0) Debug = "Fight Outstanding allocations here" /* * FIXED: * * ------- Additional Comment #8 From Len Brown 2006-06-25 21:49 ------- * ACPICA 20060608 shipped in 2.6.17-git9, closed. * * err("", zFFF, __LINE__, 0, 0, 0, 0) */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0211/RUN.asl0000700000175000017500000000361714773714152026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 211", TCLD, 0xD3, W017)) { SRMT ("m81a") M81A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0211/MAIN.asl0000700000175000017500000000413114773714152026424 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B211.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0211/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0211/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0044/0000700000175000017500000000000014773714147025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0044/DECL.asl0000700000175000017500000000461514773714147026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0044: * * SUMMARY: The ToUUID Macro loses the high hex-digit of each byte */ Method (MDD5, 0, NotSerialized) { Local0 = Buffer (0x10) { /* 0000 */ 0x3D, 0x2C, 0x1B, 0x0A, 0x5F, 0x4E, 0x71, 0x60, // =,.._Nq` /* 0008 */ 0x82, 0x93, 0xA4, 0xB5, 0xC6, 0xD7, 0xE8, 0xF9 // ........ } Local1 = Buffer (0x10) { /* 0000 */ 0x3D, 0x2C, 0x1B, 0x0A, 0x5F, 0x4E, 0x71, 0x60, // =,.._Nq` /* 0008 */ 0x82, 0x93, 0xA4, 0xB5, 0xC6, 0xD7, 0xE8, 0xF9 // ........ } If ((Local0 != Local1)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0044/RUN.asl0000700000175000017500000000361614773714147026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 44", TCLD, 0x2C, W017)) { SRMT ("mdd5") MDD5 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0044/MAIN.asl0000700000175000017500000000413114773714147026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B44.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0044/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0044/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0004/0000700000175000017500000000000014773714147025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0004/DECL.asl0000700000175000017500000000444614773714147026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0004: * * SUMMARY: Concatenate being invoked in Method M000 changes the type of LocalX of calling Method passed as operand to M000 */ Method (MD9F, 1, NotSerialized) { Concatenate ("qwertyuiop", Arg0, Local1) } Method (MDA0, 0, NotSerialized) { Local5 = 0x00 MD9F (Local5) Local0 = ObjectType (Local5) If ((Local0 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } Local5++ If ((Local5 != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local5, 0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0004/RUN.asl0000700000175000017500000000361514773714147026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 4", TCLD, 0x04, W017)) { SRMT ("mda0") MDA0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0004/MAIN.asl0000700000175000017500000000413114773714147026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B4.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0004/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0004/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0125/0000700000175000017500000000000014773714150025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0125/DECL.asl0000700000175000017500000000623314773714150026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 125: * * SUMMARY: The Mid operator in 64-bit mode returns non-empty result for improper Index */ Method (MF08, 5, NotSerialized) { Debug = Arg0 Debug = "source" Debug = Arg1 Debug = Arg2 Debug = Arg3 Debug = "expected" Debug = Arg4 Mid (Arg1, Arg2, Arg3, Local0) If ((Arg4 != Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg4, Local0) } } Method (MF09, 0, NotSerialized) { Local0 = 0x00 /* Mid (Source, Index, Length, Result) */ /* a) Index >= 0x100000000 */ /* b) Modulo(Index, 0x100000000) < Size. */ If (0x0000000100000000) { MF08 ("Buffer: Index >= 0x100000000, Modulo(Index, 0x100000000) < Size:", BD07, 0x0000000100001FFF, 0x8000, Buffer (Local0){}) MF08 ("String: Index >= 0x100000000, Modulo(Index, 0x100000000) < Size:", SD03, 0x0000000100000005, 0x0A, "") } /* a) Index < Size */ /* b) Index + Length >= 0x100000000 */ /* c) Modulo(Index + Length, 0x100000000) < Size. */ /* Now causes exception AE_NO_MEMORY */ If (0x01) { MF08 ("Buffer: Index < Size, Index + Length >= 0x100000000:", BD07, 0x1388, 0xFFFFF000, Buffer (0x0C79){}) } /* Now causes CRASH */ If (0x01) { MF08 ("String: Index < Size, Index + Length >= 0x100000000:", SD03, 0x08, 0xFFFFFFFC, "89a") } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0125/RUN.asl0000700000175000017500000000361714773714150026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 125", TCLD, 0x7D, W017)) { SRMT ("mf09") MF09 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0125/MAIN.asl0000700000175000017500000000424514773714150026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B125.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0125/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0125/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0025_SPEC/0000700000175000017500000000000014773714147026016 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0025_SPEC/DECL.asl0000700000175000017500000000325114773714147027232 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 25: * * SUMMARY: The maximal length exceeding exception should be additionally specified for some operators */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/0000700000175000017500000000000014773714152025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/DECL.asl0000700000175000017500000001553514773714152026433 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 248: * * SUMMARY: Incorrect ReferenceCount on Switch operation */ Method (M02D, 0, NotSerialized) { /* * NoOp - * all them are for tracking only - to simplify debugging */ Method (M003, 1, Serialized) { Noop Switch (ToInteger (Arg0)) { Case (0x00) { Debug = "m003" } } Noop } Method (M004, 1, NotSerialized) { Noop If (Arg0) { Debug = "m004" } Noop } Method (M1A8, 2, NotSerialized) { If (Arg1) { M003 (Arg0) } Else { M004 (Arg0) } } Method (M1A9, 0, Serialized) { Name (SW00, 0x01) Name (HG00, 0x00) /* if non-zero - the test hangs */ Name (P91E, Package (0x01) { 0xABCD0000 }) If (0x01) { Local0 = Local1 = P91E [0x00] } Else { Local0 = 0xABCD0000 Local1 = 0xABCD0001 } If ((DerefOf (Local0) != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, DerefOf (Local0), 0xABCD0000) } Debug = "============== sit 0 (Local0):" M1A8 (Local0, SW00) /* * At this point, after returning from m1a8 * for the non-zero sw00, the object attached * to Local0 has been deleted. It is the essence * of the bug. */ If (HG00) { /* * To show visually the consequences of the anomaly * run this code. It causes hang. */ Debug = "============== sit 1 (Local1):" M1A8 (Local1, SW00) Debug = "============== sit 2:" Local7 = ObjectType (Local0) Debug = Local7 Local7 = ObjectType (Local1) Debug = Local7 Debug = Local0 Debug = Local1 } Debug = "============== before checking:" If ((DerefOf (Local0) != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, DerefOf (Local0), 0xABCD0000) } Debug = "============== end of test" } Method (MM00, 0, NotSerialized) { M1A9 () } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) MM00 () /* Check opcode of the last exception */ CH04 (__METHOD__, 0x02, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } /* * It is Functional:Reference:ref07.asl:Method(m1d5) */ Method (M03D, 0, Serialized) { Name (I001, 0x00) Name (P000, Package (0x02) { 0x77, 0x88 }) Name (SW00, 0x01) Name (HG00, 0x01) /* if non-zero - the test hangs */ Name (HG01, 0x01) /* if non-zero - the test hangs */ Name (HG02, 0x01) /* if non-zero - the test hangs */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (Local0 = P000 [0x01], I001) /* \M03D.I001 */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* Type of i001 should be already IRef here, */ /* so, don't expect exception. */ I001 = Local0 = P000 [0x00] CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local7 = (Local0 + 0x01) If (Y248) { HG00 = 0x01 HG01 = 0x01 HG02 = 0x01 } /* * To show visually the consequences of the anomaly * run one of code below. They cause hang. */ If (HG00) { /* Infinite loop of printing */ Local1 = 0x00 Debug = Local0 } If (HG01) { /* Infinite loop of printing */ Debug = Local0 Debug = Local0 } If (HG02) { Local1 = 0x00 Debug = "============== sit 2:" Local7 = ObjectType (Local0) Debug = Local7 } CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) Local7 = (I001 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) /* * Looks identical to b248: "Incorrect ReferenceCount on Switch operation" * (though there is no Switch operation) * * Reference count of Local0 is mistakenly zeroed there too. * * [ACPI Debug] String: [0x0F] "<-------- 0000>" * [ACPI Debug] Reference: [Debug] * [ACPI Debug] String: [0x0F] "<-------- 1111>" * * [ACPI Debug] String: [0x0F] "<-------- 0000>" * [ACPI Debug] [ACPI Debug] String: [0x0F] "<-------- 1111>" */ Debug = "<-------- 0000>" Debug = Local0 Debug = "<-------- 1111>" } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/RUN.asl0000700000175000017500000000426414773714152026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 248", TCLD, 0xF8, W017)) { SRMT ("m02d") If (Y200) { M02D () } Else { BLCK () } SRMT ("m03d") If (Y248) { M03D () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/MAIN.asl0000700000175000017500000000413114773714152026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B248.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0248/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0248/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0190/0000700000175000017500000000000014773714151025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0190/DECL.asl0000700000175000017500000000447414773714151026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 190: * * SUMMARY: In ConcatenateResTemplate an operand ending only with the first byte of the end tag doesn't cause a run-time error */ Method (MF7E, 0, Serialized) { Name (RT00, ResourceTemplate () { IRQNoFlags () {1} }) /* Nearly resource template buffer */ Local0 = Buffer (0x04) { 0x2A, 0x10, 0x05, 0x79 // *..y } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = ConcatenateResTemplate (RT00, Local0) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0190/RUN.asl0000700000175000017500000000361714773714151026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 190", TCLD, 0xBE, W017)) { SRMT ("mf7e") MF7E () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0190/MAIN.asl0000700000175000017500000000413114773714151026431 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B190.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0190/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0190/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0250_DEMO_IMPOSSIBLE/0000700000175000017500000000000014773714152027532 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0250_DEMO_IMPOSSIBLE/DECL.asl0000700000175000017500000000322614773714152030750 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 250: * * SUMMARY: The ReferenceCount mechanism should be added with the internal control */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0046/0000700000175000017500000000000014773714147025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0046/DECL.asl0000700000175000017500000001141714773714147026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0046: * * SUMMARY: Exception on ToHexString for Buffer with 67 elements */ Method (MDD7, 0, Serialized) { Name (B000, Buffer (0x43) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0038 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0040 */ 0x01, 0x01, 0x01 // ... }) Name (B001, Buffer (0x42) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0038 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0040 */ 0x01, 0x01 // .. }) ToHexString (B001, Local0) If ((Local0 != "01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01") } Local1 = SizeOf (Local0) If ((Local1 != 0xC5)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0xC5) } ToHexString (B000, Local0) If ((Local0 != "01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01")) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, "01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01") } Local1 = SizeOf (Local0) If ((Local1 != 0xC8)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0xC8) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0046/RUN.asl0000700000175000017500000000361614773714147026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 46", TCLD, 0x2E, W017)) { SRMT ("mdd7") MDD7 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0046/MAIN.asl0000700000175000017500000000413114773714147026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B46.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0046/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0046/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0030/0000700000175000017500000000000014773714147025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0030/DECL.asl0000700000175000017500000000633614773714147026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0030: * * SUMMARY: Crash of ObjectType for the particular Fields * * Crash. Test remained as is (due to crash as a main symptom). */ Method (MDC3, 0, Serialized) { /* Field Unit */ OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 8, F001, 16, F002, 32, F003, 33, F004, 1, F005, 64 } Debug = "------------ Fields:" Debug = F000 /* \MDC3.F000 */ Debug = F001 /* \MDC3.F001 */ Debug = F002 /* \MDC3.F002 */ Debug = F003 /* \MDC3.F003 */ Debug = F004 /* \MDC3.F004 */ Debug = F005 /* \MDC3.F005 */ Debug = "------------." Return (0x00) } Method (MDC4, 0, Serialized) { /* Field Unit */ OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 8, F001, 16, F002, 32, F003, 33, F004, 7, F005, 64 } Debug = "------------ Fields:" Debug = F000 /* \MDC4.F000 */ Debug = F001 /* \MDC4.F001 */ Debug = F002 /* \MDC4.F002 */ Debug = F003 /* \MDC4.F003 */ Debug = F004 /* \MDC4.F004 */ Debug = F005 /* \MDC4.F005 */ Debug = "------------." Return (0x00) } Method (MDC5, 0, NotSerialized) { MDC3 () MDC4 () Return (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0030/RUN.asl0000700000175000017500000000361614773714147026356 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 30", TCLD, 0x1E, W017)) { SRMT ("mdc5") MDC5 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0030/MAIN.asl0000700000175000017500000000413114773714147026427 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B30.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0030/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0030/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0136/0000700000175000017500000000000014773714151025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0136/DECL.asl0000700000175000017500000000437014773714151026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 136: * * SUMMARY: CopyObject of named Buffer to the longer named Buffer works incorrectly * * ROOT CAUSE */ Method (MF27, 0, Serialized) { Name (B000, Buffer (0x01) { 0x3C // < }) Name (B001, Buffer (0x03) { 0x01, 0x02, 0x03 // ... }) CopyObject (B000, B001) /* \MF27.B001 */ If ((B000 != B001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, B000, B001) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0136/RUN.asl0000700000175000017500000000361714773714151026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 136", TCLD, 0x88, W017)) { SRMT ("mf27") MF27 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0136/MAIN.asl0000700000175000017500000000413214773714151026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B136.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0136/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0136/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0274/0000700000175000017500000000000014773714152025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0274/DECL.asl0000700000175000017500000000673014773714152026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 274: * * SUMMARY: Named object as element of Package is handled by ACPICA differently than by MS */ Method (MC74, 0, Serialized) { Name (I000, 0xABCD0000) Name (I001, 0xABCD0001) Name (I002, 0xABCD0002) Name (I003, 0xABCD0003) Name (II00, 0x11112222) Name (P000, Package (0x06) { I000, I001, I002, "i000", \MC74.I003, 0xABCD0004 }) Method (CHCK, 4, NotSerialized) { Local0 = DerefOf (Arg1 [Arg2]) If ((Local0 != Arg0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Arg0, Local0) } } /* Choose benchmark package */ If (SLCK) { Local2 = Package (0x06) { "I000", "I001", "I002", "i000", "I003", 0xABCD0004 } } Else { Local2 = Package (0x06) { 0xABCD0000, 0xABCD0001, 0xABCD0002, "i000", 0xABCD0003, 0xABCD0004 } } Local0 = DerefOf (P000 [0x00]) CHCK (Local0, Local2, 0x00, 0x01) Local0 = DerefOf (P000 [0x01]) CHCK (Local0, Local2, 0x01, 0x02) Local0 = DerefOf (P000 [0x02]) CHCK (Local0, Local2, 0x02, 0x03) Local0 = DerefOf (P000 [0x03]) CHCK (Local0, Local2, 0x03, 0x04) Local0 = DerefOf (P000 [0x04]) CHCK (Local0, Local2, 0x04, 0x05) Local0 = DerefOf (P000 [0x05]) CHCK (Local0, Local2, 0x05, 0x06) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0274/RUN.asl0000700000175000017500000000362114773714152026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 274", TCLD, 0x0112, W017)) { SRMT ("mc74") MC74 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0274/MAIN.asl0000700000175000017500000000413114773714152026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B274.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0274/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0274/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0110_ML/0000700000175000017500000000000014773714150025561 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0110_ML/DECL.asl0000700000175000017500000000402114773714150026771 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 110: * * SUMMARY: The Memory Leak anomaly on a While operator (the first anomaly encountered by PMEMCV instrumentation) * * Only, to demonstrate visually the rate of execution * before and after the patch has been applied. */ Method(me72) { Name(lpN0, 10000) Name(lpC0, 0) Store("################################# Start of test", Debug) While (lpN0) { Store(lpC0, Debug) Decrement(lpN0) Increment(lpC0) } Store("Finish of test", Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0110_ML/RUN.asl0000700000175000017500000000317414773714150026736 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 110", TCLD, 110, W017)) { SRMT("me72") me72() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0110_ML/MAIN.asl0000700000175000017500000000413714773714150027016 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B110.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0110_ML/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0110_ML/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0118/0000700000175000017500000000000014773714150025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0118/DECL.asl0000700000175000017500000002061014773714150026413 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 118: * * SUMMARY: Access to FieldObject element of Package causes exception * * EXAMPLES: * * ROOT CAUSE: * * SEE ALSO: bugs 65,66,67,68,118 */ /* Access to the named Integer object as an element of Package */ Method (MF80, 0, Serialized) { Name (I000, 0xAAAA0000) Name (P000, Package (0x01) { I000 }) I000 = 0xAAAA0100 Store (P000 [0x00], Local0) I000 = 0xAAAA0200 Local1 = DerefOf (Local0) I000 = 0xAAAA0300 Local2 = ObjectType (I000) Local3 = ObjectType (Local0) Local4 = ObjectType (Local1) Local5 = (Local1 + 0x79) If ((Local4 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local4, C009) } ElseIf ((Local5 != 0xAAAA0279)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local5, 0xAAAA0279) } If ((I000 != 0xAAAA0300)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xAAAA0300) } If ((Local2 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local3 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local3, C009) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local5 = (Local0 + 0x79) CH04 (__METHOD__, 0x00, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Method (MF81, 0, Serialized) { Name (II00, 0x00) Name (II01, 0x00) Name (II02, 0x00) Name (II03, 0x00) Name (II04, 0x00) Name (II05, 0x00) Name (I000, 0xAAAA0000) Name (P000, Package (0x01) { I000 }) I000 = 0xAAAA0100 /* Store(Index(p000, 0), ii00) */ /* CopyObject(Index(p000, 0), ii00) */ Store (P000 [0x00], Local0) I000 = 0xAAAA0200 II01 = DerefOf (Local0) I000 = 0xAAAA0300 II02 = ObjectType (I000) II03 = ObjectType (Local0) II04 = ObjectType (II01) II05 = (II01 + 0x79) If ((II04 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, II04, C009) } ElseIf ((II05 != 0xAAAA0279)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, II05, 0xAAAA0279) } If ((I000 != 0xAAAA0300)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xAAAA0300) } If ((II02 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, II02, C009) } If ((II03 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, II03, C009) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) II05 = (Local0 + 0x79) CH04 (__METHOD__, 0x00, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Method (MF82, 0, Serialized) { Name (II00, 0x00) Name (II01, 0x00) Name (II02, 0x00) Name (II03, 0x00) Name (II04, 0x00) Name (II05, 0x00) Name (I000, 0xAAAA0000) Name (P000, Package (0x01) { I000 }) I000 = 0xAAAA0100 CopyObject (P000 [0x00], II00) /* \MF82.II00 */ I000 = 0xAAAA0200 II01 = DerefOf (II00) I000 = 0xAAAA0300 II02 = ObjectType (I000) II03 = ObjectType (II00) II04 = ObjectType (II01) II05 = (II01 + 0x79) If ((II04 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, II04, C009) } ElseIf ((II05 != 0xAAAA0279)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, II05, 0xAAAA0279) } If ((I000 != 0xAAAA0300)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xAAAA0300) } If ((II02 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, II02, C009) } If ((II03 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, II03, C009) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) II05 = (II00 + 0x79) CH04 (__METHOD__, 0x00, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Method (MD79, 0, NotSerialized) { Store (PD0A [0x00], Local0) Local1 = DerefOf (Local0) Local0 = ObjectType (Local1) If ((Local0 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } ElseIf ((Local1 != 0xFE7CB391D650A284)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0xFE7CB391D650A284) } } /* Access to the Buffer Field object as an element of Package */ Method (MD7A, 0, NotSerialized) { Store (PD0B [0x00], Local0) Local1 = DerefOf (Local0) Local0 = ObjectType (Local1) If ((Local0 != C016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C016) } Else { Debug = "=======================================" Debug = Local1 Debug = BFD1 /* \BFD1 */ Local0 = Local1 Debug = Local0 Debug = "=======================================" If (0x01) { If ((Local1 != 0x59)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x59) } } } } /* Access to the Field Unit object as an element of Package */ Method (MD7B, 0, NotSerialized) { Store (PD0C [0x00], Local0) Local1 = DerefOf (Local0) Local0 = ObjectType (Local1) If ((Local0 != C00D)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00D) } Else { Debug = "=======================================" Debug = Local1 Debug = FD03 /* \FD03 */ Local0 = Local1 Debug = Local0 Debug = "=======================================" If (0x01) { If ((Local1 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x00) } } } } Method (MD7C, 0, NotSerialized) { /* Named Integer object as an element of Package */ /* SRMT("mf80") mf80() SRMT("mf81") mf81() SRMT("mf82") if (y127) { mf82() } else { BLCK() } SRMT("md79") md79() */ SRMT ("md7a") MD7A () SRMT ("md7b") MD7B () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0118/RUN.asl0000700000175000017500000000432114773714150026351 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 118", TCLD, 0x76, W017)) { /* ????????????????????????????? */ /* 1. set y118 to 1 */ /* 2. see the test: decl.asl */ /* ?????????????????????????????? */ /* ???? */ SRMT ("md7c") If (Y118) { MD7C () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0118/MAIN.asl0000700000175000017500000000424614773714150026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B118.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0118/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0118/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0118/DECL.0000.asl0000700000175000017500000000623114773714150026774 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 118: * * SUMMARY * * EXAMPLES * * ROOT CAUSE * * SEE ALSO: bugs 65,66,67,68,118 */ // Access to the named Integer object as an element of Package Method(md79) { Store(Index(pd0a, 0), Local0) Store(DerefOf(Local0), Local1) Store(ObjectType(Local1), Local0) if (LNotEqual(Local0, c009)) { err("", zFFF, __LINE__, 0, 0, Local0, c009) } else { if (LNotEqual(Local1, 0xfe7cb391d650a284)) { err("", zFFF, __LINE__, 0, 0, Local1, 0xfe7cb391d650a284) } } } // Access to the Buffer Field object as an element of Package Method(md7a) { Store(Index(pd0b, 0), Local0) Store(DerefOf(Local0), Local1) Store(ObjectType(Local1), Local0) if (LNotEqual(Local0, c016)) { err("", zFFF, __LINE__, 0, 0, Local0, c016) } else { Store("=======================================", Debug) Store(Local1, Debug) Store(bfd1, Debug) Store(Local1, Local0) Store(Local0, Debug) Store("=======================================", Debug) if (1) { if (LNotEqual(Local1, 0x59)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x59) } } } } // Access to the Field Unit object as an element of Package Method(md7b) { Store(Index(pd0c, 0), Local0) Store(DerefOf(Local0), Local1) Store(ObjectType(Local1), Local0) if (LNotEqual(Local0, c00d)) { err("", zFFF, __LINE__, 0, 0, Local0, c00d) } else { Store("=======================================", Debug) Store(Local1, Debug) Store(fd03, Debug) Store(Local1, Local0) Store(Local0, Debug) Store("=======================================", Debug) if (1) { if (LNotEqual(Local1, 0)) { err("", zFFF, __LINE__, 0, 0, Local1, 0) } } } } Method(md7c) { md79() md7a() md7b() } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0077/0000700000175000017500000000000014773714150025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0077/DECL.asl0000700000175000017500000000426514773714150026427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0077: * * SUMMARY: Exception on ToInteger operator under specific conditions */ Method (ME2A, 0, Serialized) { Name (I000, 0x89ABCDEF) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ToInteger ("0") /* AE_BAD_DECIMAL_CONSTANT */ Local0 = ToInteger ("0x0") /* AE_BAD_HEX_CONSTANT */ Store (("0" + 0x01), Local0) /* AE_BAD_HEX_CONSTANT */ I000 = "0" /* AE_BAD_HEX_CONSTANT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0077/RUN.asl0000700000175000017500000000361614773714150026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 77", TCLD, 0x4D, W017)) { SRMT ("me2a") ME2A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0077/MAIN.asl0000700000175000017500000000413114773714150026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B77.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0077/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0077/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0176/0000700000175000017500000000000014773714151025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0176/DECL.asl0000700000175000017500000000433214773714151026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 176: * * SUMMARY: Store-to-Debug an element of Package having reference to itself results in an infinite loop */ Method (ME59, 0, Serialized) { Name (P000, Package (0x20) { 0x00, P000 }) Store (P000 [0x00], Local0) Local1 = Local0 Debug = Local0 } Method (ME5A, 0, Serialized) { Name (P000, Package (0x20) { 0x00, P000 }) Local0 = P000 [0x00] Local1 = Local0 Debug = Local0 } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0176/RUN.asl0000700000175000017500000000426414773714151026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 176", TCLD, 0xB0, W017)) { SRMT ("me59") If (Y176) { ME59 () } Else { BLCK () } SRMT ("me5a") If (Y176) { ME5A () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0176/MAIN.asl0000700000175000017500000000413214773714151026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B176.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0176/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0176/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0234_ASL_RUNTIME/0000700000175000017500000000000014773714152027104 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0234_ASL_RUNTIME/DECL.asl0000700000175000017500000000332114773714152030316 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 234: * * SUMMARY: The UNIX OSL synchronization interfaces should be developed to support testing * * Do the run_time demo when bug will be fixed. */ acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0132/0000700000175000017500000000000014773714151025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0132/DECL.asl0000700000175000017500000000430614773714150026413 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 132: * * SUMMARY: The Read access automatic dereference for Index reference doesn't work */ Method (MF1F, 2, NotSerialized) { Debug = Arg0 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local7 = (Arg0 + 0x01) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((Local7 != 0x78)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID12, 0x05) } } Method (MF20, 0, NotSerialized) { Local0 = PD0E [0x00] MF1F (Local0, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0132/RUN.asl0000700000175000017500000000401214773714150026342 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 132", TCLD, 0x84, W017)) { SRMT ("mf20") If (Y132) { MF20 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0132/MAIN.asl0000700000175000017500000000424514773714150026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B132.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0132/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0132/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0007/0000700000175000017500000000000014773714147025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0007/DECL.asl0000700000175000017500000000417514773714147026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0007: * * SUMMARY: ToString updates the LocalX value (if it is zero) passed as Length parameter */ Method (MDA4, 0, Serialized) { Name (B000, Buffer (0x04) { 0x21, 0x21, 0x21, 0x21 // !!!! }) Local0 = 0x00 ToString (B000, Local0, Local1) If ((Local0 != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0007/RUN.asl0000700000175000017500000000361514773714147026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 7", TCLD, 0x07, W017)) { SRMT ("mda4") MDA4 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0007/MAIN.asl0000700000175000017500000000413114773714147026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B7.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0007/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0007/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0103/0000700000175000017500000000000014773714150025173 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0103/DECL.asl0000700000175000017500000000513214773714150026407 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0103: * * SUMMARY: The Method type element of Package is being invoked */ Method (ME64, 0, NotSerialized) { Debug = "me64 invoked" ID0D = 0x01 Return (0x07) } Method (ME65, 0, NotSerialized) { Debug = "me65 invoked" ID0E = 0x01 Return (0x7B) } Method (ME66, 0, Serialized) { Debug = "Start of test" Name (P000, Package (0x08) { 0x01, 0x02, ME64, 0x04, ME64, ME65, 0x07, ME64 }) Debug = "Finish of test" Return (0x00) } Method (ME67, 0, NotSerialized) { ME66 () If (ID0D) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (ID0E) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, 0x00, 0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0103/RUN.asl0000700000175000017500000000361714773714150026352 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 103", TCLD, 0x67, W017)) { SRMT ("me67") ME67 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0103/MAIN.asl0000700000175000017500000000424514773714150026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B103.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0103/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0103/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0022/0000700000175000017500000000000014773714147025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0022/DECL.asl0000700000175000017500000000446214773714147026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0022: * * SUMMARY: LNotEqual works incorrectly for Buffer-operands containing zero */ Method (MDB7, 0, NotSerialized) { Local7 = 0x00 Local0 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x25 // !".% } Local1 = Buffer (0x05) { 0x20, 0x21, 0x22, 0x00, 0x26 // !".& } If ((Local0 != Local1)) { Local7 = 0x01 } Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, Local1) } Return (Local7) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0022/RUN.asl0000700000175000017500000000361614773714147026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 22", TCLD, 0x16, W017)) { SRMT ("mdb7") MDB7 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0022/MAIN.asl0000700000175000017500000000413114773714147026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B22.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0022/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0022/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0182/0000700000175000017500000000000014773714151025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0182/DECL.asl0000700000175000017500000000547414773714151026430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 182: * * SUMMARY: Exception on a specific declarations of objects of the same name * * (no exception is expected here because id23 has already * been defined at the first use of it). */ Name (ID23, 0xABCD0000) Method (MF78, 0, Serialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((ID23 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID23, 0xABCD0000) } Name (ID23, 0xABCD0001) If ((ID23 != 0xABCD0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID23, 0xABCD0001) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } /* * ATTENTION: i9z8 should be unique in the namespace, * not declared somewhere else in the NS tree. */ Method (MF85, 0, Serialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If ((I9Z8 != 0xABCD0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I9Z8, 0xABCD0001) } Name (I9Z8, 0xABCD0001) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0182/RUN.asl0000700000175000017500000000367514773714151026366 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 182", TCLD, 0xB6, W017)) { SRMT ("mf78") MF78 () SRMT ("mf85") MF85 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0182/MAIN.asl0000700000175000017500000000413114773714151026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B182.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0182/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0182/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0175/0000700000175000017500000000000014773714151025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0175/DECL.asl0000700000175000017500000000433514773714151026425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 175: * * SUMMARY: Unexpected exception on Store of ThermalZone to Debug operation */ Method (MF5D, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = PRD1 /* \PRD1 */ Debug = RD06 /* \RD06 */ Debug = PWD1 /* \PWD1 */ Debug = ED03 /* \ED03 */ Debug = MXD2 /* \MXD2 */ Debug = DD0C /* \DD0C */ /* Unexpected exception */ Debug = "Printing ThermalZone:" Debug = TZD1 /* \TZD1 */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0175/RUN.asl0000700000175000017500000000361714773714151026364 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 175", TCLD, 0xAF, W017)) { SRMT ("mf5d") MF5D () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0175/MAIN.asl0000700000175000017500000000424614773714151026443 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B175.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0175/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0175/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0194/0000700000175000017500000000000014773714151025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0194/DECL.asl0000700000175000017500000000661614773714151026432 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 194: * * SUMMARY: Incorrect length of result of ToBuffer in case it is stored into a Named Buffer */ Method (BCMP, 2, NotSerialized) { Local0 = SizeOf (Arg0) Local1 = SizeOf (Arg1) If ((Local0 > Local1)) { Local0 = Local1 } While (Local0) { Local0-- Debug = Local0 Local1 = DerefOf (Arg0 [Local0]) Local2 = DerefOf (Arg1 [Local0]) If ((Local1 != Local2)) { Return (0x00) } } Return (0x01) } Method (MFA7, 1, Serialized) { Name (B000, Buffer (0x01) { 0x3C // < }) Name (B001, Buffer (0x03) { 0x01, 0x02, 0x03 // ... }) Name (BB00, Buffer (0x01) { 0x3C // < }) Name (BB01, Buffer (0x03) { 0x01, 0x02, 0x03 // ... }) If (Arg0) { Debug = "ToBuffer(b001, b000)" ToBuffer (B001, B000) /* \MFA7.B000 */ If (!BCMP (B000, BB01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, B000, BB01) } } Else { Debug = "ToBuffer(b000, b001)" ToBuffer (B000, B001) /* \MFA7.B001 */ If (!BCMP (B001, BB00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, B001, BB00) } } } Method (MFA8, 0, NotSerialized) { MFA7 (0x00) MFA7 (0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0194/RUN.asl0000700000175000017500000000361714773714151026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 194", TCLD, 0xC2, W017)) { SRMT ("mfa8") MFA8 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0194/MAIN.asl0000700000175000017500000000413114773714151026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B194.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0194/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0194/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0306/0000700000175000017500000000000014773714153025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0306/DECL.asl0000700000175000017500000000531214773714153026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 306: * * SUMMARY: Complex indirect storing to a LocalX violates the Writing to LocalX Rule */ Method (MFF3, 0, NotSerialized) { Method (M000, 1, NotSerialized) { Arg0 = 0x12345678 Arg0 = "87654321" } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = 0x12345678 Local0 = "87654321" If ((ObjectType (Local0) != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ObjectType (Local0), 0x02) } M000 (RefOf (Local1)) If ((ObjectType (Local1) != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ObjectType (Local1), 0x02) } Local3 = RefOf (Local2) Local4 = RefOf (Local3) DerefOf (Local4) = 0x12345678 DerefOf (Local4) = "87654321" If ((ObjectType (Local2) != 0x02)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ObjectType (Local2), 0x02) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0306/RUN.asl0000700000175000017500000000362114773714153026355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 306", TCLD, 0x0132, W017)) { SRMT ("mff3") MFF3 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0306/MAIN.asl0000700000175000017500000000413214773714153026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B306.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0306/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0306/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0233_ASL/0000700000175000017500000000000014773714152025700 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0233_ASL/DECL.asl0000700000175000017500000000376514773714152027126 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 233: * * SUMMARY: An invalid non-ASCII letter in declaration passed to ASL Compiler by Include operator causes hang of it */ /* * The Method below contains an invalid non-ASCII letters * and it causes hang of ASL Compiler in case this definition * is passed to ASL Compiler by Include operator. */ Method(m161) { // Device(d00ñ) { Name(i900, 0xabcd0017) } // ThermalZone(tz0ñ) {} // Name(i00ñ, 0) // Name(i00ì, 0) // ì Store(ì, Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0233_ASL/MAIN.asl0000700000175000017500000000402414773714152027130 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B233.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0233_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0217/0000700000175000017500000000000014773714152025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0217/DECL.asl0000700000175000017500000000452314773714152026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 217: * * SUMMARY: Dynamic OpRegion _REG method execution problem */ Method (M035, 0, Serialized) { Method (_REG, 2, NotSerialized) // _REG: Region Availability { Debug = "m035._REG" Debug = Arg0 Debug = Arg1 ID2A++ } OperationRegion (OPR0, SystemMemory, 0x2000, 0x0100) If ((ID2A != 0x01)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID2A, 0x01) } } Method (M036, 0, NotSerialized) { If ((ID2A != 0x00)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, ID2A, 0x00) } M035 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0217/RUN.asl0000700000175000017500000000361714773714152026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 217", TCLD, 0xD9, W017)) { SRMT ("m036") M036 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0217/MAIN.asl0000700000175000017500000000424514773714152026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B217.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0217/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0217/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0105/0000700000175000017500000000000014773714150025175 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0105/DECL.asl0000700000175000017500000000426414773714150026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0105: * * SUMMARY: The ObjectType operator being passed with the IRef obtained by the specific way causes crash */ Method (ME6A, 0, NotSerialized) { Debug = "Start of test" Store (PD03 [0x00], Local0) Debug = Local0 Debug = "ObjectType(Local0):" Local1 = ObjectType (Local0) Debug = Local1 If ((Local1 != C010)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, C010) } Debug = "Finish of test" } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0105/RUN.asl0000700000175000017500000000361714773714150026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 105", TCLD, 0x69, W017)) { SRMT ("me6a") ME6A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0105/MAIN.asl0000700000175000017500000000424514773714150026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B105.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0105/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0105/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0303/0000700000175000017500000000000014773714153025200 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0303/DECL.asl0000700000175000017500000001053314773714153026415 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 303: * * SUMMARY: Name operation performed from inside the If operation doesn't work for the full-path ObjectName */ Method (M1EC, 0, NotSerialized) { /* The usual case, it works */ Method (M000, 0, NotSerialized) { Method (M100, 1, Serialized, 3) { Name (\I4Z0, 0xABCD0000) If ((I4Z0 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I4Z0, 0xABCD0000) } If ((\I4Z0 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, \I4Z0, 0xABCD0000) } M101 () } Method (M101, 0, NotSerialized) { If ((I4Z0 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I4Z0, 0xABCD0000) } If ((\I4Z0 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, \I4Z0, 0xABCD0000) } } Debug = "---------------- The case 1 started:" M100 (0x00) Debug = "---------------- Completed." } /* The case where Name(\i4z1, 0xabcd0000) is performed from If, it doesn't work. */ Method (M001, 0, NotSerialized) { Method (M100, 1, Serialized) { If (!Arg0) { Name (\I4Z1, 0xABCD0000) } If ((I4Z1 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I4Z1, 0xABCD0000) } If ((\I4Z1 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, \I4Z1, 0xABCD0000) } M101 () } Method (M101, 0, NotSerialized) { If ((I4Z1 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I4Z1, 0xABCD0000) } If ((\I4Z1 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, \I4Z1, 0xABCD0000) } } Debug = "---------------- The case 2 started:" M100 (0x00) Debug = "---------------- Completed" } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m1ec-m000") M000 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) SRMT ("m1ec-m001") M001 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0303/RUN.asl0000700000175000017500000000356714773714153026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 303", TCLD, 0x012F, W017)) { M1EC () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0303/MAIN.asl0000700000175000017500000000413214773714153026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B303.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0303/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0303/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0097/0000700000175000017500000000000014773714150025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0097/DECL.asl0000700000175000017500000000551714773714150026432 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0097: * * SUMMARY: Crash on ObjectType passed with IRef to Method which is an element of Package */ Method (ME4C, 0, NotSerialized) { Return (0x00) } Method (ME4D, 1, NotSerialized) { Debug = "============= Run ObjectType:" Local0 = ObjectType (Arg0) Debug = "============= Print result of ObjectType:" Debug = Local0 } Method (ME4E, 0, Serialized) { Name (P000, Package (0x20) { 0x01, 0x02, ME4C, 0x03, 0x04 }) Debug = "============= Test me4e started:" Local0 = Local1 = P000 [0x02] ME4D (Local1) Debug = "============= Test me4e finished." } Method (ME4F, 0, Serialized) { Name (P000, Package (0x20) { 0x01, 0x02, ME4C, 0x03, 0x04 }) Debug = "============= Test me4f started:" Local0 = Local1 = P000 [0x02] ME4D (Local0) Debug = "============= Test me4f finished." } Method (ME50, 0, NotSerialized) { ME4E () ME4F () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0097/RUN.asl0000700000175000017500000000361614773714150026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 97", TCLD, 0x61, W017)) { SRMT ("me50") ME50 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0097/MAIN.asl0000700000175000017500000000413114773714150026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B97.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0097/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0097/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0204/0000700000175000017500000000000014773714152025177 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0204/DECL.asl0000700000175000017500000000442214773714152026414 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 204 (local-bugzilla-347): * * SUMMARY: SizeOf operation falls into infinite loop for ring of RefOf references * * Note: add verifications while sorting out and fixing the bug (CH03/CH04/..) */ Method (M814, 0, NotSerialized) { Method (M000, 0, NotSerialized) { Local1 = RefOf (Local0) Local2 = RefOf (Local1) Local0 = RefOf (Local2) Local7 = SizeOf (Local0) /* * What # of exception? * AE_AML_UNINITIALIZED_LOCAL or RING_OF_REFS_EXCEPTION? */ } M000 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0204/RUN.asl0000700000175000017500000000401214773714152026344 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 204", TCLD, 0xCC, W017)) { SRMT ("m814") If (Y204) { M814 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0204/MAIN.asl0000700000175000017500000000413114773714152026426 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B204.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0204/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0204/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0084/0000700000175000017500000000000014773714150025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0084/DECL.asl0000700000175000017500000001776714773714150026440 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0084: * * SUMMARY: Failed to interpret AML code alternated with Method declarations */ Method (ME35, 1, NotSerialized) { Method (M001, 0, NotSerialized) { Return (0x00) } Debug = "Before m001 run" If (Arg0) { Debug = "m001 started" M001 () Debug = "m001 finished" } Debug = "After m001 run" Method (M002, 0, NotSerialized) { Return (0x00) } Method (M003, 0, NotSerialized) { Return (0x00) } Debug = "Before return from me35" Return (0x00) } Method (ME36, 0, NotSerialized) { Debug = "Before me35(0) run" ME35 (0x00) Debug = "After me35(0) completion" Debug = "Before me35(1) run" ME35 (0x01) Debug = "After me35(1) completion" } Method (M803, 0, Serialized) { Name (I000, 0xABCD0000) Method (M000, 0, NotSerialized) { If ((I000 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0000) } I000 = 0xABCD0001 Return (0xABCD0002) } M000 () Method (M001, 0, NotSerialized) { If ((I000 != 0xABCD0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0001) } I000 = 0xABCD0003 Return (0xABCD0004) } M001 () Method (M002, 0, NotSerialized) { If ((I000 != 0xABCD0003)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0003) } I000 = 0xABCD0005 Return (0xABCD0006) } M002 () Method (M003, 0, NotSerialized) { If ((I000 != 0xABCD0005)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0005) } I000 = 0xABCD0007 Return (0xABCD0008) } M003 () } Method (M804, 0, Serialized) { Name (I000, 0xABCD0000) Method (M000, 0, NotSerialized) { Method (M000, 0, NotSerialized) { If ((I000 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0000) } I000 = 0xABCD0001 Return (0xABCD0002) } M000 () Method (M001, 0, NotSerialized) { If ((I000 != 0xABCD0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0001) } I000 = 0xABCD0003 Return (0xABCD0004) } M001 () Method (M002, 0, NotSerialized) { If ((I000 != 0xABCD0003)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0003) } I000 = 0xABCD0005 Return (0xABCD0006) } M002 () Method (M003, 0, NotSerialized) { If ((I000 != 0xABCD0005)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0005) } I000 = 0xABCD0007 Return (0xABCD0008) } M003 () } M000 () Method (M001, 0, NotSerialized) { Method (M000, 0, NotSerialized) { If ((I000 != 0xABCD0007)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0007) } I000 = 0xABCD0008 Return (0xABCD0009) } M000 () Method (M001, 0, NotSerialized) { If ((I000 != 0xABCD0008)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0008) } I000 = 0xABCD000A Return (0xABCD000B) } M001 () Method (M002, 0, NotSerialized) { If ((I000 != 0xABCD000A)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD000A) } I000 = 0xABCD000C Return (0xABCD000D) } M002 () Method (M003, 0, NotSerialized) { If ((I000 != 0xABCD000C)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD000C) } I000 = 0xABCD000E Return (0xABCD000F) } M003 () } M001 () Method (M002, 0, NotSerialized) { Method (M000, 0, NotSerialized) { If ((I000 != 0xABCD000E)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD000E) } I000 = 0xABCD0010 Return (0xABCD0011) } M000 () Method (M001, 0, NotSerialized) { If ((I000 != 0xABCD0010)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0010) } I000 = 0xABCD0012 Return (0xABCD0013) } M001 () Method (M002, 0, NotSerialized) { If ((I000 != 0xABCD0012)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0012) } I000 = 0xABCD0014 Return (0xABCD0015) } M002 () Method (M003, 0, NotSerialized) { If ((I000 != 0xABCD0014)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0014) } I000 = 0xABCD0016 Return (0xABCD0017) } M003 () } M002 () If ((I000 != 0xABCD0016)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0016) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0084/RUN.asl0000700000175000017500000000375214773714150026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 84", TCLD, 0x54, W017)) { SRMT ("me36") ME36 () SRMT ("m803") M803 () SRMT ("m804") M804 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0084/MAIN.asl0000700000175000017500000000413114773714150026432 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B84.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0084/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0084/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0128/0000700000175000017500000000000014773714150025202 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0128/DECL.asl0000700000175000017500000001320614773714150026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 128: * * SUMMARY: Copying the RefOf reference to Named object spoils that reference */ Method (MF17, 0, Serialized) { Name (I000, 0x1234) CopyObject (RefOf (I000), Local0) Debug = Local0 Local1 = DerefOf (Local0) Debug = Local1 If ((Local1 != 0x1234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x1234) } } Method (MF18, 0, Serialized) { Name (REF0, 0x00) Name (I000, 0x1234) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (RefOf (I000), REF0) /* \MF18.REF0 */ Debug = "Before printing ref0" Debug = REF0 /* \MF18.REF0 */ Debug = "Before DerefOf" Local1 = DerefOf (REF0) Debug = "Before printing Local1" Debug = Local1 Debug = "Before LNotEqual" If ((Local1 != 0x1234)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x1234) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (MF9E, 0, Serialized) { Name (I000, 0xABBC0000) Name (II00, 0xABBC0000) Name (B000, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x95, 0x06, 0x07, 0x08 // ........ }) Name (BB00, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x95, 0x06, 0x07, 0x08 // ........ }) Name (S000, "String") Name (SS00, "String") Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) Name (REF0, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (RefOf (I000), REF0) /* \MF9E.REF0 */ MF88 (DerefOf (REF0), C009, II00, 0x01, 0x02, 0x01) CopyObject (RefOf (B000), REF0) /* \MF9E.REF0 */ MF88 (DerefOf (REF0), C00B, BB00, 0x03, 0x04, 0x01) CopyObject (RefOf (S000), REF0) /* \MF9E.REF0 */ MF88 (DerefOf (REF0), C00A, SS00, 0x03, 0x04, 0x01) CopyObject (RefOf (P000), REF0) /* \MF9E.REF0 */ MF88 (DerefOf (REF0), C00C, SS00, 0x05, 0x06, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (MF9F, 0, Serialized) { Name (REF0, 0x00) Event (E000) Mutex (MX00, 0x00) Device (D000) { Name (I900, 0xABCD0017) } ThermalZone (TZ00) { } Processor (PR00, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (R000, SystemMemory, 0x0100, 0x0100) PowerResource (PW00, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } /* Checkings */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (RefOf (E000), REF0) /* \MF9F.REF0 */ MF88 (DerefOf (REF0), C00F, 0x00, 0x27, 0x28, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (RefOf (MX00), REF0) /* \MF9F.REF0 */ MF88 (DerefOf (REF0), C011, 0x00, 0x2A, 0x2B, 0x00) If (Y511) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (RefOf (D000), REF0) /* \MF9F.REF0 */ MF88 (DerefOf (REF0), C00E, 0x00, 0x2D, 0x2E, 0x00) } If (Y508) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (RefOf (TZ00), REF0) /* \MF9F.REF0 */ MF88 (DerefOf (REF0), C015, 0x00, 0x30, 0x31, 0x00) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (RefOf (PR00), REF0) /* \MF9F.REF0 */ MF88 (DerefOf (REF0), C014, 0x00, 0x33, 0x34, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (RefOf (R000), REF0) /* \MF9F.REF0 */ MF88 (DerefOf (REF0), C012, 0x00, 0x36, 0x37, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CopyObject (RefOf (PW00), REF0) /* \MF9F.REF0 */ MF88 (DerefOf (REF0), C013, 0x00, 0x39, 0x3A, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0128/RUN.asl0000700000175000017500000000432714773714150026360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 128", TCLD, 0x80, W017)) { If (Y128) { SRMT ("mf17") MF17 () SRMT ("mf18") MF18 () SRMT ("mf9e") MF9E () SRMT ("mf9f") MF9F () } Else { SRMT ("TESTS-OF-B128") BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0128/MAIN.asl0000700000175000017500000000424514773714150026437 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B128.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0128/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0128/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0218/0000700000175000017500000000000014773714152025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0218/DECL.asl0000700000175000017500000000705014773714152026421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 218: * * SUMMARY: Access to internal object of Method is lost after returning from the recursive call to that Method * * NOTE: Reaction on the situation generated by the test should be fixed according to this: * * >-----Original Message----- * >From: Moore, Robert * >Sent: Tuesday, September 12, 2006 10:56 PM * >To: Moore, Robert * >Subject: ACPICA version 20060912 released [Code Attached] * > * >12 September 2006. Summary of changes for version 20060912: * > * >1) ACPI CA Core Subsystem: * > * > ..................... * > * >Fixed a regression where an error was no longer emitted if a control method * >attempts to create 2 objects of the same name. This once again returns * >AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism * >that will dynamically serialize the control method to possibly prevent * >future errors. (BZ 440) * > ..................... */ Method (M037, 0, Serialized) { Name (I000, 0x00) I000 = ID29 /* \ID29 */ Local0 = ID29 /* \ID29 */ Debug = "===== Start of test" Debug = ID29 /* \ID29 */ Debug = I000 /* \M037.I000 */ Debug = Local0 ID29++ If ((ID29 < 0x0A)) { M037 () } ID29-- Debug = "===== Finish of test" Debug = ID29 /* \ID29 */ Debug = I000 /* \M037.I000 */ Debug = Local0 If ((I000 != ID29)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, ID29) } If ((Local0 != ID29)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, ID29) } } Method (M038, 0, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M037 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0218/RUN.asl0000700000175000017500000000361714773714152026363 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 218", TCLD, 0xDA, W017)) { SRMT ("m038") M038 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0218/MAIN.asl0000700000175000017500000000424514773714152026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B218.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0218/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0218/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0066/0000700000175000017500000000000014773714150025203 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0066/DECL.asl0000700000175000017500000000571714773714150026430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 66: CANCELED * * SUMMARY: FieldUnit type object should be passed to Methods without any conversion (to Buffer or Integer) * * EXAMPLES: * * ROOT CAUSE: * * SEE ALSO: bugs 65,66,67,68,118 */ Method (MD81, 1, NotSerialized) { /* ObjectType of the value passed to Method */ /* (FieldUnit is converted to Integer). */ Local0 = ObjectType (Arg0) If ((Local0 != C009)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } } Method (MD82, 1, NotSerialized) { /* ObjectType of the value passed to Method */ /* (FieldUnit is converted to Buffer). */ Local0 = ObjectType (Arg0) If ((Local0 != C00B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00B) } } Method (MD83, 0, NotSerialized) { /* ObjectType of the FieldUnit immediately */ Local0 = ObjectType (FD00) If ((Local0 != C00D)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00D) } Local0 = ObjectType (FD01) If ((Local0 != C00D)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00D) } MD81 (FD00) MD82 (FD01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0066/RUN.asl0000700000175000017500000000361614773714150026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 66", TCLD, 0x42, W017)) { SRMT ("md83") MD83 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0066/MAIN.asl0000700000175000017500000000424514773714150026440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B66.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0066/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0066/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0230/0000700000175000017500000000000014773714152025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0230/DECL.asl0000700000175000017500000001440614773714152026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 230: * * SUMMARY: ReturnType argument of Method declaration is not supported */ Method (M127, 0, Serialized) { /* Data to be passed to Method */ Name (I000, 0xFE7CB391D65A0000) Name (S000, "12340002") Name (B000, Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... }) Name (B001, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) Event (E000) Mutex (MX00, 0x00) Device (D000) { Name (I000, 0xABCD0017) } ThermalZone (TZ00) { } Processor (PR00, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (R900, SystemMemory, 0x0100, 0x0100) OperationRegion (R9Z0, SystemMemory, 0x0100, 0x0100) PowerResource (PW90, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } CreateField (B001, 0x00, 0x08, BF90) Field (R9Z0, ByteAcc, NoLock, Preserve) { F900, 8, F901, 8, F902, 8, F903, 8 } BankField (R9Z0, F901, 0x00, ByteAcc, NoLock, Preserve) { BN90, 4 } IndexField (F902, F903, ByteAcc, NoLock, Preserve) { IF90, 8, IF91, 8 } Method (MMM0, 0, NotSerialized) { Return ("mmm0") } /* Method */ Method (M000, 0, NotSerialized) { Return (I000) /* \M127.I000 */ } Method (M001, 0, NotSerialized) { Return (S000) /* \M127.S000 */ } Method (M002, 0, NotSerialized) { Return (B000) /* \M127.B000 */ } Method (M003, 0, NotSerialized) { Return (P000) /* \M127.P000 */ } Method (M004, 0, NotSerialized) { Return (E000) /* \M127.E000 */ } Method (M005, 0, NotSerialized) { Return (MX00) /* \M127.MX00 */ } Method (M006, 0, NotSerialized) { Return (D000) /* \M127.D000 */ } Method (M007, 0, NotSerialized) { Return (TZ00) /* \M127.TZ00 */ } Method (M008, 0, NotSerialized) { Return (PR00) /* \M127.PR00 */ } Method (M009, 0, NotSerialized) { Return (R900) /* \M127.R900 */ } Method (M00A, 0, NotSerialized) { Return (PW90) /* \M127.PW90 */ } Method (M00B, 0, NotSerialized) { Return (BF90) /* \M127.BF90 */ } Method (M00C, 0, NotSerialized) { Return (F900) /* \M127.F900 */ } Method (M00D, 0, NotSerialized) { Return (BN90) /* \M127.BN90 */ } Method (M00E, 0, NotSerialized) { Return (IF90) /* \M127.IF90 */ } Method (M00F, 0, NotSerialized) { Return (MMM0 ()) } Method (M010, 0, NotSerialized) { Return (0xFE7CB391D65A0000) } Method (M011, 0, NotSerialized) { Return ("12340002") } Method (M012, 0, NotSerialized) { Return (Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... }) } Method (M013, 0, NotSerialized) { Return (Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) } Method (M100, 0, NotSerialized) { Debug = "Start of test" M000 () M001 () M002 () M003 () M004 () M005 () M006 () M007 () M008 () M009 () M00A () M00B () M00C () M00D () M00E () M00F () M010 () M011 () M012 () M013 () Debug = "Finish of test" } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M100 () /* Expect either ASL compiler error or any AML interpreter exception */ CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0230/RUN.asl0000700000175000017500000000361714773714152026355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 230", TCLD, 0xE6, W017)) { SRMT ("m127") M127 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0230/MAIN.asl0000700000175000017500000000413114773714152026425 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B230.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0230/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0230/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/0000700000175000017500000000000014773714151025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/DECL.asl0000700000175000017500000000716214773714151026422 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 153: * * SUMMARY: Source and Target objects after ACPI AML StoreOp behave identically * * Perform any available Store(OOO1, OOO2) operation such that * it changes the type of the target named object (OOO2). Then * Store anything into OOO2 once again. In a result of these * operations OOO1 is changed also identically to OOO2. * * That is the contents of bug, OOO1 must be unchanged. * * ROOT CAUSE * * Incorrectly implemented the case when the type of the target named * object is changed in result of the Store operation - the source object * itself but not a copy of it is attached to the namespace node of the * target object (previous one detached). So, in a result, the same internal * object is attached to two namespace nodes. Due to that, the following * storing into OOO2 appears like changing of OOO1 as well. * * OOO2 should be a duplicate of OOO1, see spec below. * * * Check storing of Computational and Package type data, Named and * immediate images, to all the available types. */ Include("../../../../../runtime/collections/bdemo/ACPICA/0153/Exc.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/Mix.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToBuffer.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToDevice.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToDeviceGlob.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToEvent.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToInteger.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToMutex.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToPackage.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToPowerRes.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToProcessor.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToRegion.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToString.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/ToThermalZone.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/RUN.asl0000700000175000017500000000370014773714151026351 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 153", TCLD, 153, W017)) { SRMT("Exc") md04() SRMT("Mix") md07() SRMT("ToBuffer") m00e() SRMT("ToDevice") md17() md67() SRMT("ToEvent") md20() SRMT("ToInteger") md23() SRMT("ToMutex") md2c() SRMT("ToPackage") md31() SRMT("ToPowerRes") md3a() SRMT("ToProcessor") md43() SRMT("ToRegion") md4c() SRMT("ToString") md50() SRMT("ToThermalZone") md58() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToDeviceGlob.asl0000700000175000017500000002214214773714151030214 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer/Package to Device (global objects) */ // Glob to Loc // Integer Method(md5b,, Serialized) { Device(OOO2) { Name(i900, 0xabcd0017) } Store(id00, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(id00, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, id00, 0xe0385bcd) } } // String Method(md5c,, Serialized) { Device(OOO2) { Name(i900, 0xabcd0017) } Store(sd00, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(sd00, "String")) { err("", zFFF, __LINE__, 0, 0, sd00, "String") } } // Buffer Method(md5d,, Serialized) { Device(OOO2) { Name(i900, 0xabcd0017) } Store(bd00, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer(32) {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(bd00, Buffer(32) {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, bd00, Buffer() {1,2,3,4}) } } // Package Method(md5e,, Serialized) { Device(OOO2) { Name(i900, 0xabcd0017) } Store(pd00, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pd00 Store(DeRefof(Index(DerefOf(Index(pd00, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pd00, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pd00, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pd00, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } // All objects are global // Integer Method(md5f) { Store(id00, dd00) Store (0x61, dd00) Store(DeRefof(Refof(dd00)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(id00, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, id00, 0xe0385bcd) } } // String Method(md60,, Serialized) { Device(dd01) { Name(i900, 0xabcd0017) } Store(sd00, dd01) Store(Refof(dd01), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(dd01), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(sd00, "String")) { err("", zFFF, __LINE__, 0, 0, sd00, "String") } } // Buffer Method(md61,, Serialized) { Device(dd02) { Name(i900, 0xabcd0017) } Store(bd00, dd02) Store(Refof(dd02), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer(32) {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(bd00, Buffer(32) {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, bd00, Buffer() {1,2,3,4}) } } // Package Method(md62,, Serialized) { Device(dd03) { Name(i900, 0xabcd0017) } Store(pd00, dd03) Store(Refof(dd03), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // dd03 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pd00 Store(DeRefof(Index(DerefOf(Index(pd00, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pd00, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pd00, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pd00, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } // Loc to Glob // Integer Method(md63,, Serialized) { Name(i000, 0xe0385bcd) Store(i000, dd04) Store (0x61, dd04) Store(DeRefof(Refof(dd04)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } } // String Method(md64,, Serialized) { Name(s000, "String") Store(s000, dd05) Store(Refof(dd05), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(dd05), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md65,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Store(b000, dd06) Store(Refof(dd06), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } // Package Method(md66,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) Store(pppp, dd07) Store(Refof(dd07), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // dd07 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pppp Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } Method(md67) { CH03("", 0, 0xf08, __LINE__, 0) md5b() md5c() md5d() md5e() md5f() md60() md61() md62() md63() md64() md65() md66() CH03("", 0, 0xf09, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToThermalZone.asl0000700000175000017500000001356714773714151030454 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer/Package to ThermalZone */ // Integer Method(md5a,, Serialized) { Name(i000, 0xe0385bcd) ThermalZone(OOO2) {} Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } } // String Method(md51,, Serialized) { Name(s000, "String") ThermalZone(OOO2) {} Store(s000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md52,, Serialized) { Name(b000, Buffer() {1,2,3,4}) ThermalZone(OOO2) {} Store(b000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } // Package Method(md53,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) ThermalZone(OOO2) {} Store(pppp, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pppp Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } /* Constant */ // Integer Method(md54,, Serialized) { ThermalZone(OOO2) {} Store(0xe0385bcd, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } // String Method(md55,, Serialized) { ThermalZone(OOO2) {} Store("String", OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } } // Buffer Method(md56,, Serialized) { ThermalZone(OOO2) {} Store(Buffer() {1,2,3,4}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } } // Package Method(md57,, Serialized) { ThermalZone(OOO2) {} Store(Package(1){Buffer() {1,2,3,4}}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } Method(md58) { CH03("", 0, 0xf1a, __LINE__, 0) md5a() md51() md52() md53() md54() md55() md56() md57() CH03("", 0, 0xf1b, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/Mix.asl0000700000175000017500000002205714773714151026450 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Method(md05,, Serialized) { Event(e000) Mutex(mx00, 0) ThermalZone(tz00) {} Processor(pr00, 0, 0xFFFFFFFF, 0) {} PowerResource(pw00, 1, 0) {Method(mmmm){return (0)}} Method(m000) {return (0xabcd0006)} Device(d000) { Name(i900, 0xabcd0017) } OperationRegion(r000, SystemMemory, 0x100, 0x100) Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Name(i002, 0xabcd0002) Name(i003, 0xabcd0003) Name(i004, 0xabcd0004) Name(i005, 0xabcd0005) Store(Store(Store(Store(Store(Store(Store(Store(0x1a2b3c4d, i000), i001), i002), i003), i004), i005), d000), r000) if (LNotEqual(i000, 0x1a2b3c4d)) { err("", zFFF, __LINE__, 0, 0, i000, 0x1a2b3c4d) } if (LNotEqual(i001, 0x1a2b3c4d)) { err("", zFFF, __LINE__, 0, 0, i001, 0x1a2b3c4d) } if (LNotEqual(i002, 0x1a2b3c4d)) { err("", zFFF, __LINE__, 0, 0, i002, 0x1a2b3c4d) } if (LNotEqual(i003, 0x1a2b3c4d)) { err("", zFFF, __LINE__, 0, 0, i003, 0x1a2b3c4d) } if (LNotEqual(i004, 0x1a2b3c4d)) { err("", zFFF, __LINE__, 0, 0, i004, 0x1a2b3c4d) } if (LNotEqual(i005, 0x1a2b3c4d)) { err("", zFFF, __LINE__, 0, 0, i005, 0x1a2b3c4d) } Store(Refof(d000), Local0) if (LNotEqual(DerefOf(Local0), 0x1a2b3c4d)) { err("", zFFF, __LINE__, 0, 0, d000, 0x1a2b3c4d) } Store(Refof(r000), Local0) if (LNotEqual(DerefOf(Local0), 0x1a2b3c4d)) { err("", zFFF, __LINE__, 0, 0, r000, 0x1a2b3c4d) } Store(Store(Store(Store(Store(Store(Store(Store(Store(0x91827364, e000), mx00), tz00), pr00), pw00), m000), i000), d000), r000) Store(Refof(e000), Local0) if (LNotEqual(DerefOf(Local0), 0x91827364)) { err("", zFFF, __LINE__, 0, 0, e000, 0x91827364) } Store(Refof(mx00), Local0) if (LNotEqual(DerefOf(Local0), 0x91827364)) { err("", zFFF, __LINE__, 0, 0, mx00, 0x91827364) } Store(Refof(tz00), Local0) if (LNotEqual(DerefOf(Local0), 0x91827364)) { err("", zFFF, __LINE__, 0, 0, tz00, 0x91827364) } Store(Refof(pr00), Local0) if (LNotEqual(DerefOf(Local0), 0x91827364)) { err("", zFFF, __LINE__, 0, 0, pr00, 0x91827364) } Store(Refof(pw00), Local0) if (LNotEqual(DerefOf(Local0), 0x91827364)) { err("", zFFF, __LINE__, 0, 0, pw00, 0x91827364) } Store(Refof(m000), Local0) if (LNotEqual(DerefOf(Local0), 0x91827364)) { err("", zFFF, __LINE__, 0, 0, m000, 0x91827364) } Store(Refof(i000), Local0) if (LNotEqual(DerefOf(Local0), 0x91827364)) { err("", zFFF, __LINE__, 0, 0, i000, 0x91827364) } Store(Refof(d000), Local0) if (LNotEqual(DerefOf(Local0), 0x91827364)) { err("", zFFF, __LINE__, 0, 0, d000, 0x91827364) } Store(Refof(r000), Local0) if (LNotEqual(DerefOf(Local0), 0x91827364)) { err("", zFFF, __LINE__, 0, 0, r000, 0x91827364) } } Method(md06,, Serialized) { Event(e000) Mutex(mx00, 0) ThermalZone(tz00) {} Processor(pr00, 0, 0xFFFFFFFF, 0) {} PowerResource(pw00, 1, 0) {Method(mmmm){return (0)}} Method(m000) {return (0xabcd0006)} Device(d000) { Name(i900, 0xabcd0017) } OperationRegion(r000, SystemMemory, 0x100, 0x100) Name(i000, 0xabcd0006) Name(i001, 0xabcd0007) Name(i002, 0xabcd0008) Name(i003, 0xabcd0009) Name(i004, 0xabcd000a) Name(i005, 0xabcd000b) Name(i006, 0xabcd000c) Store(Store(Store(Store(Store(Store(i006, i000), i001), i002), i003), i004), i005) if (LNotEqual(i006, i000)) { err("", zFFF, __LINE__, 0, 0, i006, i000) } if (LNotEqual(i006, i001)) { err("", zFFF, __LINE__, 0, 0, i006, i001) } if (LNotEqual(i006, i002)) { err("", zFFF, __LINE__, 0, 0, i006, i002) } if (LNotEqual(i006, i003)) { err("", zFFF, __LINE__, 0, 0, i006, i003) } if (LNotEqual(i006, i004)) { err("", zFFF, __LINE__, 0, 0, i006, i004) } if (LNotEqual(i006, i005)) { err("", zFFF, __LINE__, 0, 0, i006, i005) } if (LNotEqual(i006, i006)) { err("", zFFF, __LINE__, 0, 0, i006, i006) } Store(Store(Store(Store(Store(Store(Store(i006, e000), mx00), tz00), pr00), pw00), m000), i000) Store(Refof(e000), Local0) if (LNotEqual(DerefOf(Local0), i006)) { err("", zFFF, __LINE__, 0, 0, e000, i006) } Store(Refof(mx00), Local0) if (LNotEqual(DerefOf(Local0), i006)) { err("", zFFF, __LINE__, 0, 0, mx00, i006) } Store(Refof(tz00), Local0) if (LNotEqual(DerefOf(Local0), i006)) { err("", zFFF, __LINE__, 0, 0, tz00, i006) } Store(Refof(pr00), Local0) if (LNotEqual(DerefOf(Local0), i006)) { err("", zFFF, __LINE__, 0, 0, pr00, i006) } Store(Refof(pw00), Local0) if (LNotEqual(DerefOf(Local0), i006)) { err("", zFFF, __LINE__, 0, 0, pw00, i006) } Store(Refof(m000), Local0) if (LNotEqual(DerefOf(Local0), i006)) { err("", zFFF, __LINE__, 0, 0, m000, i006) } Store(Refof(i000), Local0) if (LNotEqual(DerefOf(Local0), i006)) { err("", zFFF, __LINE__, 0, 0, i000, i006) } } Method(md68,, Serialized) { Name(i000, 0xe0385bcd) Event(OOO2) Name(p000, Package(8){}) Name(p001, Package(8){OOO2}) Store(Refof(OOO2), Local7) Store(Refof(OOO2), Index(p000, 0)) Store(ObjectType(DeRefof(Local7)), Local0) if (LNotEqual(Local0, c00f)) { err("", zFFF, __LINE__, 0, 0, Local0, c00f) } Store(Derefof(Index(p000, 0)), Local6) Store(ObjectType(DeRefof(Local6)), Local0) if (LNotEqual(Local0, c00f)) { err("", zFFF, __LINE__, 0, 0, Local0, c00f) } Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local0) if (LNotEqual(Local0, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } Store(ObjectType(DeRefof(Local7)), Local0) if (LNotEqual(Local0, c009)) { err("", zFFF, __LINE__, 0, 0, Local0, c009) } Store(Refof(OOO2), Local7) Store(ObjectType(DeRefof(Local7)), Local0) if (LNotEqual(Local0, c009)) { err("", zFFF, __LINE__, 0, 0, Local0, c009) } Store(ObjectType(OOO2), Local0) if (LNotEqual(Local0, c009)) { err("", zFFF, __LINE__, 0, 0, Local0, c009) } Store(Derefof(Index(p000, 0)), Local7) Store(ObjectType(DeRefof(Local7)), Local0) if (LNotEqual(Local0, c009)) { err("", zFFF, __LINE__, 0, 0, Local0, c009) } } Method(md69,, Serialized) { Name(i000, 0xe0385bcd) Device(OOO2) { Name(i001, 0xabcd0011) Name(i002, 0xabcd0012) Name(i003, 0xabcd0013) Name(i004, 0xabcd0014) Name(i005, 0xabcd0015) Name(i006, 0xabcd0016) Name(i007, 0xabcd0017) } Store(RefOf(OOO2.i001), Local1) Store(RefOf(OOO2.i002), Local2) Store(RefOf(OOO2.i003), Local3) Store(RefOf(OOO2.i004), Local4) Store(RefOf(OOO2.i005), Local5) Store(RefOf(OOO2.i006), Local6) Store(RefOf(OOO2.i007), Local7) Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local0) if (LNotEqual(Local0, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } // Are the locals save? Store(DerefOf(Local1), Local0) if (LNotEqual(Local0, 0xabcd0011)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0011) } Store(DerefOf(Local2), Local0) if (LNotEqual(Local0, 0xabcd0012)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0012) } Store(DerefOf(Local3), Local0) if (LNotEqual(Local0, 0xabcd0013)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0013) } Store(DerefOf(Local4), Local0) if (LNotEqual(Local0, 0xabcd0014)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0014) } Store(DerefOf(Local5), Local0) if (LNotEqual(Local0, 0xabcd0015)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0015) } Store(DerefOf(Local6), Local0) if (LNotEqual(Local0, 0xabcd0016)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0016) } Store(DerefOf(Local7), Local0) if (LNotEqual(Local0, 0xabcd0017)) { err("", zFFF, __LINE__, 0, 0, Local0, 0xabcd0017) } } Method(md07) { CH03("", 0, 0xf02, __LINE__, 0) md05() md06() md68() md69() CH03("", 0, 0xf03, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToBuffer.asl0000700000175000017500000000675214773714151027433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer to Buffer */ // Integer Method(md08,, Serialized) { Name(i000, 0xabcd) Name(b000, Buffer() {1,2,3,4}) Store(i000, b000) Store (0x61, b000) if (LNotEqual(b000, Buffer() {0x61,0,0,0})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {0x61,0,0,0}) } if (LNotEqual(i000, 0xabcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xabcd) } } // String Method(md09,, Serialized) { Name(s000, "zxcvbqwertynm") Name(b000, Buffer() {1,2,3,4}) Store(s000, b000) Store("ADb", b000) if (LNotEqual(b000, Buffer() {0x41,0x44,0x62,0})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {0x41,0x44,0x62,0}) } if (LNotEqual(s000, "zxcvbqwertynm")) { err("", zFFF, __LINE__, 0, 0, s000, "zxcvbqwertynm") } } // Buffer Method(md0a,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Name(b001, Buffer() {5,6,7,8}) Store(b000, b001) Store (Buffer() {5,6}, b001) if (LNotEqual(b001, Buffer() {5,6,0,0})) { err("", zFFF, __LINE__, 0, 0, b001, Buffer() {5,6,0,0}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } /* Constants */ // Integer Method(md0b,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Store(0xabcd, b000) Store (0x61, b000) if (LNotEqual(b000, Buffer() {0x61,0,0,0})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {0x61,0,0,0}) } } // String Method(md0c,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Store("zxcvbqwertynm", b000) Store("ADb", b000) if (LNotEqual(b000, Buffer() {0x41,0x44,0x62,0})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {0x41,0x44,0x62,0}) } } // Buffer Method(md0d,, Serialized) { Name(b001, Buffer() {5,6,7,8}) Store(Buffer() {1,2,3,4}, b001) Store (Buffer() {5,6}, b001) if (LNotEqual(b001, Buffer() {5,6,0,0})) { err("", zFFF, __LINE__, 0, 0, b001, Buffer() {5,6,0,0}) } } Method(m00e) { CH03("", 0, 0xf04, __LINE__, 0) md08() md09() md0a() md0b() md0c() md0d() CH03("", 0, 0xf05, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToPowerRes.asl0000700000175000017500000001417114773714151027762 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer/Package to PowerResource */ // Integer Method(md32,, Serialized) { Name(i000, 0xe0385bcd) PowerResource(OOO2, 1, 0) {Method(mmmm){return (0)}} Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } } // String Method(md33,, Serialized) { Name(s000, "String") PowerResource(OOO2, 1, 0) {Method(mmmm){return (0)}} Store(s000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md34,, Serialized) { Name(b000, Buffer() {1,2,3,4}) PowerResource(OOO2, 1, 0) {Method(mmmm){return (0)}} Store(b000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } // Package Method(md35,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) PowerResource(OOO2, 1, 0) {Method(mmmm){return (0)}} Store(pppp, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pppp Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } /* Constant */ // Integer Method(md36,, Serialized) { PowerResource(OOO2, 1, 0) {Method(mmmm){return (0)}} Store(0xe0385bcd, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } // String Method(md37,, Serialized) { PowerResource(OOO2, 1, 0) {Method(mmmm){return (0)}} Store("String", OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } } // Buffer Method(md38,, Serialized) { PowerResource(OOO2, 1, 0) {Method(mmmm){return (0)}} Store(Buffer() {1,2,3,4}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } } // Package Method(md39,, Serialized) { PowerResource(OOO2, 1, 0) {Method(mmmm){return (0)}} Store(Package(1){Buffer() {1,2,3,4}}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } Method(md3a) { CH03("", 0, 0xf12, __LINE__, 0) md32() md33() md34() md35() md36() md37() md38() md39() CH03("", 0, 0xf13, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToProcessor.asl0000700000175000017500000001376514773714151030203 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer/Package to Processor */ // Integer Method(md3b,, Serialized) { Name(i000, 0xe0385bcd) Processor(OOO2, 0, 0xFFFFFFFF, 0) {} Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } } // String Method(md3c,, Serialized) { Name(s000, "String") Processor(OOO2, 0, 0xFFFFFFFF, 0) {} Store(s000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md3d,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Processor(OOO2, 0, 0xFFFFFFFF, 0) {} Store(b000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } // Package Method(md3e,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) Processor(OOO2, 0, 0xFFFFFFFF, 0) {} Store(pppp, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pppp Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } /* Constant */ // Integer Method(md3f,, Serialized) { Processor(OOO2, 0, 0xFFFFFFFF, 0) {} Store(0xe0385bcd, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } // String Method(md40,, Serialized) { Processor(OOO2, 0, 0xFFFFFFFF, 0) {} Store("String", OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } } // Buffer Method(md41,, Serialized) { Processor(OOO2, 0, 0xFFFFFFFF, 0) {} Store(Buffer() {1,2,3,4}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } } // Package Method(md42,, Serialized) { Processor(OOO2, 0, 0xFFFFFFFF, 0) {} Store(Package(1){Buffer() {1,2,3,4}}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } Method(md43) { CH03("", 0, 0xf14, __LINE__, 0) md3b() md3c() md3d() md3e() md3f() md40() md41() md42() CH03("", 0, 0xf15, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToInteger.asl0000700000175000017500000000505414773714151027611 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer to Integer */ // Integer Method(md59,, Serialized) { Name(i000, 0) Name(i001, 1) Store(i000, i001) Store (0x61, i001) if (LNotEqual(i001, 0x61)) { err("", zFFF, __LINE__, 0, 0, i001, 0x61) } if (LNotEqual(i000, 0)) { err("", zFFF, __LINE__, 0, 0, i000, 0) } } // String Method(md21,, Serialized) { Name(s000, "String") Name(i000, 0x1234) Store(s000, i000) Store(0x61, i000) if (LNotEqual(i000, 0x61)) { err("", zFFF, __LINE__, 0, 0, i000, 0x61) } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md22,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Name(i000, 0x5678) Store(b000, i000) Store (0x61, i000) if (LNotEqual(i000, 0x61)) { err("", zFFF, __LINE__, 0, 0, i000, 0x61) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } Method(md23) { CH03("", 0, 0xf0c, __LINE__, 0) md59() md21() md22() CH03("", 0, 0xf0d, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToMutex.asl0000700000175000017500000001350114773714151027312 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer/Package to Mutex */ // Integer Method(md24,, Serialized) { Name(i000, 0xe0385bcd) Mutex(OOO2, 0) Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } } // String Method(md25,, Serialized) { Name(s000, "String") Mutex(OOO2, 0) Store(s000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md26,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Mutex(OOO2, 0) Store(b000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } // Package Method(md27,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) Mutex(OOO2, 0) Store(pppp, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pppp Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } /* Constant */ // Integer Method(md28,, Serialized) { Mutex(OOO2, 0) Store(0xe0385bcd, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } // String Method(md29,, Serialized) { Mutex(OOO2, 0) Store("String", OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } } // Buffer Method(md2a,, Serialized) { Mutex(OOO2, 0) Store(Buffer() {1,2,3,4}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } } // Package Method(md2b,, Serialized) { Mutex(OOO2, 0) Store(Package(1){Buffer() {1,2,3,4}}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } Method(md2c) { CH03("", 0, 0xf0e, __LINE__, 0) md24() md25() md26() md27() md28() md29() md2a() md2b() CH03("", 0, 0xf0f, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/MAIN.asl0000700000175000017500000000424514773714151026436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B153.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0153/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0153/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToEvent.asl0000700000175000017500000001345114773714151027275 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer/Package to Event */ // Integer Method(md18,, Serialized) { Name(i000, 0xe0385bcd) Event(OOO2) Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } } // String Method(md19,, Serialized) { Name(s000, "String") Event(OOO2) Store(s000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md1a,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Event(OOO2) Store(b000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } // Package Method(md1b,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) Event(OOO2) Store(pppp, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pppp Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } /* Constant */ // Integer Method(md1c,, Serialized) { Event(OOO2) Store(0xe0385bcd, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } // String Method(md1d,, Serialized) { Event(OOO2) Store("String", OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } } // Buffer Method(md1e,, Serialized) { Event(OOO2) Store(Buffer() {1,2,3,4}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } } // Package Method(md1f,, Serialized) { Event(OOO2) Store(Package(1){Buffer() {1,2,3,4}}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } Method(md20) { CH03("", 0, 0xf0a, __LINE__, 0) md18() md19() md1a() md1b() md1c() md1d() md1e() md1f() CH03("", 0, 0xf0b, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToPackage.asl0000700000175000017500000001022114773714151027537 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer/Package to Package */ // Integer Method(md2d,, Serialized) { Name(i000, 0xe0385bcd) Name(OOO2, Package(1){"Package"}) Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } } // String Method(md2e,, Serialized) { Name(s000, "String") Name(OOO2, Package(1){"Package"}) Store(s000, OOO2) Store (0x61, Index(OOO2, 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md2f,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Name(OOO2, Package(1){Buffer() {5,6,7,8}}) Store(b000, OOO2) Store (0x61, Index(OOO2, 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } // Package Method(md30,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) Name(OOO2, Package(1){Buffer() {5,6,7,8}}) Store(pppp, OOO2) Store (0x61, Index(DerefOf(Index(OOO2, 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(OOO2, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(OOO2, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(OOO2, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(OOO2, 0)), 3)), Local0) if (LNotEqual(Local0, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local0, 0x61) } // pppp Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } Method(md31) { CH03("", 0, 0xf10, __LINE__, 0) md2d() md2e() md2f() md30() CH03("", 0, 0xf11, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/Exc.asl0000700000175000017500000000470614773714151026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Spec: Store of Non-computational type objects * to Computational type object causes exceptions. */ // Package --> Integer Method(md01,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) Name(i000, 0x5678) CH03("", 0, 0x000, __LINE__, 0) Store(pppp, i000) CH04("", 0, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } // Package --> String Method(md02,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) Name(s000, "String") CH03("", 0, 0x002, __LINE__, 0) Store(pppp, s000) CH04("", 0, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } // Package --> Buffer Method(md03,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) Name(b000, Buffer() {1,2,3,4}) CH03("", 0, 0x004, __LINE__, 0) Store(pppp, b000) CH04("", 0, 47, 0, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } Method(md04) { CH03("", 0, 0xf00, __LINE__, 0) md01() md02() md03() CH03("", 0, 0xf01, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToString.asl0000700000175000017500000000517314773714151027464 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer to String */ // Integer Method(md4d,, Serialized) { Name(i000, 0xabcd) Name(s000, "String") Store(i000, s000) Store (0x61, s000) if (LNotEqual(s000, 0x61)) { err("", zFFF, __LINE__, 0, 0, s000, 0x61) } if (LNotEqual(i000, 0xabcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xabcd) } } // String Method(md4e,, Serialized) { Name(s000, "zxcvbqwertynm") Name(s001, "String") Store(s000, s001) Store("ADb", s001) if (LNotEqual(s001, "ADb")) { err("", zFFF, __LINE__, 0, 0, s001, "ADb") } if (LNotEqual(s000, "zxcvbqwertynm")) { err("", zFFF, __LINE__, 0, 0, s000, "zxcvbqwertynm") } } // Buffer Method(md4f,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Name(s000, "String") Store(b000, s000) Store (Buffer() {5,6}, s000) if (LNotEqual(s000, Buffer() {5,6})) { err("", zFFF, __LINE__, 0, 0, s000, Buffer() {5,6}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } Method(md50) { CH03("", 0, 0xf18, __LINE__, 0) md4d() md4e() md4f() CH03("", 0, 0xf19, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToRegion.asl0000700000175000017500000001414314773714151027436 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer/Package to OperationRegion */ // Integer Method(md44,, Serialized) { Name(i000, 0xe0385bcd) OperationRegion(OOO2, SystemMemory, 0x100, 0x100) Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } } // String Method(md45,, Serialized) { Name(s000, "String") OperationRegion(OOO2, SystemMemory, 0x100, 0x100) Store(s000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md46,, Serialized) { Name(b000, Buffer() {1,2,3,4}) OperationRegion(OOO2, SystemMemory, 0x100, 0x100) Store(b000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } // Package Method(md47,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) OperationRegion(OOO2, SystemMemory, 0x100, 0x100) Store(pppp, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pppp Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } /* Constant */ // Integer Method(md48,, Serialized) { OperationRegion(OOO2, SystemMemory, 0x100, 0x100) Store(0xe0385bcd, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } // String Method(md49,, Serialized) { OperationRegion(OOO2, SystemMemory, 0x100, 0x100) Store("String", OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } } // Buffer Method(md4a,, Serialized) { OperationRegion(OOO2, SystemMemory, 0x100, 0x100) Store(Buffer() {1,2,3,4}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } } // Package Method(md4b,, Serialized) { OperationRegion(OOO2, SystemMemory, 0x100, 0x100) Store(Package(1){Buffer() {1,2,3,4}}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } Method(md4c) { CH03("", 0, 0xf16, __LINE__, 0) md44() md45() md46() md47() md48() md49() md4a() md4b() CH03("", 0, 0xf17, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0153/ToDevice.asl0000700000175000017500000001401214773714151027405 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Store Integer/String/Buffer/Package to Device */ // Integer Method(md0f,, Serialized) { Name(i000, 0xe0385bcd) Device(OOO2) { Name(i900, 0xabcd0017) } Store(i000, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } if (LNotEqual(i000, 0xe0385bcd)) { err("", zFFF, __LINE__, 0, 0, i000, 0xe0385bcd) } } // String Method(md10,, Serialized) { Name(s000, "String") Device(OOO2) { Name(i900, 0xabcd0017) } Store(s000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } if (LNotEqual(s000, "String")) { err("", zFFF, __LINE__, 0, 0, s000, "String") } } // Buffer Method(md11,, Serialized) { Name(b000, Buffer() {1,2,3,4}) Device(OOO2) { Name(i900, 0xabcd0017) } Store(b000, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } if (LNotEqual(b000, Buffer() {1,2,3,4})) { err("", zFFF, __LINE__, 0, 0, b000, Buffer() {1,2,3,4}) } } // Package Method(md12,, Serialized) { Name(pppp, Package(1){Buffer() {1,2,3,4}}) Device(OOO2) { Name(i900, 0xabcd0017) } Store(pppp, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } // pppp Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 0)), Local0) if (LNotEqual(Local0, 1)) { err("", zFFF, __LINE__, 0, 0, Local0, 1) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 1)), Local0) if (LNotEqual(Local0, 2)) { err("", zFFF, __LINE__, 0, 0, Local0, 2) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 2)), Local0) if (LNotEqual(Local0, 3)) { err("", zFFF, __LINE__, 0, 0, Local0, 3) } Store(DeRefof(Index(DerefOf(Index(pppp, 0)), 3)), Local0) if (LNotEqual(Local0, 4)) { err("", zFFF, __LINE__, 0, 0, Local0, 4) } } /* Constant */ // Integer Method(md13,, Serialized) { Device(OOO2) { Name(i900, 0xabcd0017) } Store(0xe0385bcd, OOO2) Store (0x61, OOO2) Store(DeRefof(Refof(OOO2)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } // String Method(md14,, Serialized) { Device(OOO2) { Name(i900, 0xabcd0017) } Store("String", OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(Refof(OOO2), Local0) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, "Strang")) { err("", zFFF, __LINE__, 0, 0, Local1, "Strang") } } // Buffer Method(md15,, Serialized) { Device(OOO2) { Name(i900, 0xabcd0017) } Store(Buffer() {1,2,3,4}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DeRefof(Local0), 3)) Store(DeRefof(Local0), Local1) if (LNotEqual(Local1, Buffer() {1,2,3,0x61})) { err("", zFFF, __LINE__, 0, 0, Local1, Buffer() {1,2,3,0x61}) } } // Package Method(md16,, Serialized) { Device(OOO2) { Name(i900, 0xabcd0017) } Store(Package(1){Buffer() {1,2,3,4}}, OOO2) Store(Refof(OOO2), Local0) Store (0x61, Index(DerefOf(Index(DeRefof(Local0), 0)), 3)) // OOO2 Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 0)), Local1) if (LNotEqual(Local1, 1)) { err("", zFFF, __LINE__, 0, 0, Local1, 1) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 1)), Local1) if (LNotEqual(Local1, 2)) { err("", zFFF, __LINE__, 0, 0, Local1, 2) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 2)), Local1) if (LNotEqual(Local1, 3)) { err("", zFFF, __LINE__, 0, 0, Local1, 3) } Store(DeRefof(Index(DerefOf(Index(DeRefof(Local0), 0)), 3)), Local1) if (LNotEqual(Local1, 0x61)) { err("", zFFF, __LINE__, 0, 0, Local1, 0x61) } } Method(md17) { CH03("", 0, 0xf06, __LINE__, 0) md0f() md10() md11() md12() md13() md14() md15() md16() CH03("", 0, 0xf07, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0096_ASL/0000700000175000017500000000000014773714150025705 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0096_ASL/DECL.asl0000700000175000017500000000505214773714150027122 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0096: * * SUMMARY: The ASL Compiler fails to recognize specific Uninitialized LocalX */ Method(me49, 1) { Store("============= Test started:", Debug) if (Arg0) { Store(0, Local0) } else { Store("============= Before using uninitialized Local0:", Debug) Store(Local0, Debug) } Store("============= Test finished.", Debug) } Method(me4a, 1) { Store("============= Test started:", Debug) if (Arg0) { Store(0, Local0) } Store("============= Before using uninitialized Local0:", Debug) Store(Local0, Debug) Store("============= Test finished.", Debug) } Method(me4b) { if (SLCK) { CH03("", 0, 0x000, __LINE__, 0) me49(0) CH03("", 0, 0x001, __LINE__, 0) me4a(0) CH03("", 0, 0x002, __LINE__, 0) } else { CH03("", 0, 0x003, __LINE__, 0) me49(0) CH04("", 0, 49, 0, __LINE__, 0, 0) // AE_AML_UNINITIALIZED_LOCAL CH03("", 0, 0x005, __LINE__, 0) me4a(0) CH04("", 0, 49, 0, __LINE__, 0, 0) // AE_AML_UNINITIALIZED_LOCAL } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0096_ASL/RUN.asl0000700000175000017500000000317214773714150027060 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 96", TCLD, 96, W017)) { SRMT("me4b") me4b() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0096_ASL/MAIN.asl0000700000175000017500000000414114773714150027135 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B96.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0096_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0096_ASL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0040/0000700000175000017500000000000014773714147025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0040/DECL.asl0000700000175000017500000000401714773714147026416 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0040: * * SUMMARY: Crash on sync-objects reusing */ Method (MDD0, 0, Serialized) { Mutex (MTX0, 0x00) Local0 = Acquire (MTX0, 0x0000) Release (MTX0) } Method (MDD1, 0, NotSerialized) { Local0 = 0x78 While (Local0) { MDD0 () Local0-- } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0040/RUN.asl0000700000175000017500000000361614773714147026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 40", TCLD, 0x28, W017)) { SRMT ("mdd1") MDD1 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0040/MAIN.asl0000700000175000017500000000413114773714147026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B40.aml", // Output filename "DSDT", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0040/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0040/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0076/0000700000175000017500000000000014773714150025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0076/DECL.asl0000700000175000017500000000422214773714150026417 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0076: * * SUMMARY: Unexpected dereference of Index reference in Store operator */ Method (ME29, 0, NotSerialized) { Local0 = PD01 [0x00] Debug = Local0 Store (PD01 [0x00], Local1) Debug = Local1 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local7 = (Local1 + 0x00) CH04 (__METHOD__, 0x00, 0x2F, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local2 = RefOf (ID0A) Debug = Local2 } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0076/RUN.asl0000700000175000017500000000361614773714150026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 76", TCLD, 0x4C, W017)) { SRMT ("me29") ME29 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0076/MAIN.asl0000700000175000017500000000424514773714150026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B76.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0076/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0076/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0064/0000700000175000017500000000000014773714150025201 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0064/DECL.asl0000700000175000017500000000743214773714150026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 64: * * SUMMARY: Specific operations should initiate AE_BAD_HEX_CONSTANT exceptions */ Method (MF61, 1, NotSerialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("" + 0xABCD0000) If ((Local0 != 0xABCD0000)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCD0000) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = (" " + 0xABCD0001) If ((Local0 != 0xABCD0001)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCD0001) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0x24, 0x00, __LINE__, 0x00, 0x00) /* AE_BAD_DECIMAL_CONSTANT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = " " ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0x24, 0x00, __LINE__, 0x00, 0x00) /* AE_BAD_DECIMAL_CONSTANT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("q" + 0xABCD0002) If ((Local0 != 0xABCD0002)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCD0002) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local0 = ("q " + 0xABCD0003) If ((Local0 != 0xABCD0003)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0xABCD0003) } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "q" ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0x24, 0x00, __LINE__, 0x00, 0x00) /* AE_BAD_DECIMAL_CONSTANT */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local1 = "q " ToInteger (Local1, Local0) CH04 (__METHOD__, 0x00, 0x24, 0x00, __LINE__, 0x00, 0x00) /* AE_BAD_DECIMAL_CONSTANT */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0064/RUN.asl0000700000175000017500000000362214773714150026354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 64", TCLD, 0x40, W017)) { SRMT ("mf61") MF61 (0x00) } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0064/MAIN.asl0000700000175000017500000000413114773714150026430 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B64.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0064/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0064/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0067/0000700000175000017500000000000014773714150025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0067/DECL.asl0000700000175000017500000000513514773714150026423 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 67: CANCELED * * SUMMARY: BufferField type object should be returned by Methods without any conversion (to Buffer or Integer) * * EXAMPLES: * * ROOT CAUSE: * * SEE ALSO: bugs 65,66,67,68,118 */ Method (MD84, 0, NotSerialized) { Return (BF30) /* \BF30 */ } Method (MD85, 0, NotSerialized) { Return (BF31) /* \BF31 */ } Method (MD86, 0, NotSerialized) { /* BufferField converted to Integer before return */ Local7 = MD84 () Local0 = ObjectType (Local7) If ((Local0 != C00B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C009) } /* BufferField converted to Buffer before return */ Local7 = MD85 () Local0 = ObjectType (Local7) If ((Local0 != C00B)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, C00B) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0067/RUN.asl0000700000175000017500000000361614773714150026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 67", TCLD, 0x43, W017)) { SRMT ("md86") MD86 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0067/MAIN.asl0000700000175000017500000000424514773714150026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B67.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0067/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0067/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0102/0000700000175000017500000000000014773714150025172 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0102/DECL.asl0000700000175000017500000000375614773714150026420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0102: * * SUMMARY: The specific combination of operators produces one "Outstanding allocation" */ Method (ME63, 0, Serialized) { Method (M001, 0, NotSerialized) { Return (0x12345678) } Name (P000, Package (0x01) { M001 }) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0102/RUN.asl0000700000175000017500000000361714773714150026351 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 102", TCLD, 0x66, W017)) { SRMT ("me63") ME63 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0102/MAIN.asl0000700000175000017500000000413114773714150026421 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B102.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0102/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0102/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0085/0000700000175000017500000000000014773714150025204 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0085/DECL.asl0000700000175000017500000000525114773714150026422 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0085: * * SUMMARY: Exception on DeRefOf operator applied to IRef to Uninitialized element of Package */ /* Uninitialized element of Package */ Method (ME37, 0, Serialized) { /* Ref #1 */ Name (P000, Package (0x01){}) Local1 = DerefOf (P000 [0x00]) Local0 = P000 [0x00] Debug = Local0 Local1 = DerefOf (Local0) Local0 = P000 [0x00] Debug = Local0 } /* Reference to Uninitialized Local */ Method (ME38, 1, NotSerialized) { If (0x01) { /* Ref #2 */ Debug = Arg0 Local1 = DerefOf (Arg0) CH04 (__METHOD__, 0x02, 0x3E, 0x01, __LINE__, 0x00, 0x00) } Else { DerefOf (Arg0)++ } } Method (ME39, 1, NotSerialized) { If (Arg0) { Local0 = 0x00 } ME38 (RefOf (Local0)) } Method (ME3A, 0, NotSerialized) { ME37 () ME39 (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0085/RUN.asl0000700000175000017500000000361614773714150026362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 85", TCLD, 0x55, W017)) { SRMT ("me3a") ME3A () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0085/MAIN.asl0000700000175000017500000000413114773714150026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B85.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0085/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0085/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0106/0000700000175000017500000000000014773714150025176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0106/DECL.asl0000700000175000017500000000414514773714150026415 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 0106: * * SUMMARY: Crash on RefOf(Debug) operation */ Method (ME6B, 0, NotSerialized) { Local0 = RefOf (Debug) Debug = Local0 DerefOf (Local0) = "Run printing in a such way!" Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) Debug = Local2 If ((Local2 != C018)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local2, C018) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0106/RUN.asl0000700000175000017500000000401214773714150026343 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 106", TCLD, 0x6A, W017)) { SRMT ("me6b") If (Y106) { ME6B () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0106/MAIN.asl0000700000175000017500000000424514773714150026433 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B106.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0106/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0106/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0225_ASL/0000700000175000017500000000000014773714152025701 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0225_ASL/DECL.asl0000700000175000017500000000407014773714152027115 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 225: * * SUMMARY: Crash of the ASL compiler for large Offset or Length in Field Unit list * * Compiler should return error... */ Method(m10c) { OperationRegion(OPR0, SystemMemory, 0, 0x2000001) Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x2000000), f000, 1, } Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { , 0xffffffc, f001, 6, } Field(OPR0, ByteAcc, NoLock, WriteAsOnes) { f002, 0xffffffc, } Store(0x10, f001) if (LNotEqual(f000, 1)) { Store("Err 0", Debug) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0225_ASL/MAIN.asl0000700000175000017500000000402414773714152027131 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B225.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0225_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0121/0000700000175000017500000000000014773714150025173 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0121/DECL.asl0000700000175000017500000000725014773714150026412 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 121: * * SUMMARY: Crash on attempt to deal with the invalid BufferFields (zero NumBits passed to CreateField) * * This DECL.asl is for AML Interpreter, it should result in exceptions for this DECL.asl. */ Method (MF03, 0, Serialized) { Name (B000, Buffer (0x02) { 0xFF, 0xFF // .. }) Name (I000, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x00, 0x10, BF00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x00, I000, BF01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x01, I000, BF02) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x07, I000, BF03) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x08, I000, BF04) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x0F, I000, BF05) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) CreateField (B000, 0x10, I000, BF06) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Debug = "All CreateField-s finished" Debug = BF00 /* \MF03.BF00 */ Debug = BF01 /* \MF03.BF01 */ Debug = BF02 /* \MF03.BF02 */ Debug = BF03 /* \MF03.BF03 */ Debug = BF04 /* \MF03.BF04 */ Debug = BF05 /* \MF03.BF05 */ Debug = BF06 /* \MF03.BF06 */ CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) Debug = "All Store-to-Debug-s finished" } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0121/RUN.asl0000700000175000017500000000401214773714150026340 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 121", TCLD, 0x79, W017)) { SRMT ("mf03") If (Y121) { MF03 () } Else { BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0121/DECL.for_iASL.asl0000700000175000017500000000553214773714150030050 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 121: * * SUMMARY: Crash on attempt to deal with the invalid BufferFields (zero NumBits passed to CreateField) * * This DECL.asl is for iASL compiler, it should result in Error for this DECL.asl. */ Method(mf03) { Name(b000, Buffer(2){0xff, 0xff}) CH03("", 0, 0x000, __LINE__, 0) CreateField(b000, 0,16, bf00) CH03("", 0, 0x000, __LINE__, 0) CH03("", 0, 0x002, __LINE__, 0) CreateField(b000, 0, 0, bf01) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x004, __LINE__, 0) CreateField(b000, 1, 0, bf02) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x006, __LINE__, 0) CreateField(b000, 7, 0, bf03) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x008, __LINE__, 0) CreateField(b000, 8, 0, bf04) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x00a, __LINE__, 0) CreateField(b000,15, 0, bf05) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x00c, __LINE__, 0) CreateField(b000,16, 0, bf06) CH04("", 0, 0xff, 0, __LINE__, 0, 0) CH03("", 0, 0x00e, __LINE__, 0) Store("All CreateField-s finished", Debug) Store(bf00, Debug) Store(bf01, Debug) Store(bf02, Debug) Store(bf03, Debug) Store(bf04, Debug) Store(bf05, Debug) Store(bf06, Debug) CH04("", 0, 0xff, 0, __LINE__, 0, 0) Store("All Store-to-Debug-s finished", Debug) } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0121/MAIN.asl0000700000175000017500000000413114773714150026422 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B121.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0121/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0121/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0279_ASL_RUNTIME/0000700000175000017500000000000014773714152027115 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0279_ASL_RUNTIME/DECL.asl0000700000175000017500000000343514773714152030335 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 279: * * SUMMARY: iASL unexpected behavior for the same multiple External */ External(\SS00) External(\SS00) External(\SS00) Method(m279) { if (CondRefof(\SS00, Local0)) { err("", zFFF, __LINE__, 0, 0, "\\SS00", 1) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0279_ASL_RUNTIME/RUN.asl0000700000175000017500000000317414773714152030272 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Demo of bug 279", TCLD, 279, W017)) { SRMT("m279") m279() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0279_ASL_RUNTIME/MAIN.asl0000700000175000017500000000427714773714152030357 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B279.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/common/DECL.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0279_ASL_RUNTIME/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0279_ASL_RUNTIME/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0148_ASL/0000700000175000017500000000000014773714151025704 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0148_ASL/DECL.asl0000700000175000017500000000655414773714151027131 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 148: * * SUMMARY: Additional errors to be reported by iASL for Control Method Declaration * * Compiler should return error... */ Method(mf3e) { // Some different from UnknownObj ObjectType Keyword specified in the // ReturnType position but no any actual Object specified to be returned. Method(mm1b, , , , IntObj) {Store(1, Debug)} // The same specific keyword in the ReturnType list twice Method(mm1c, , , , {IntObj, IntObj}) {Store(1, Debug)} Method(mm1d, , , , {UnknownObj, UnknownObj}) {Store(1, Debug)} // Simulteneously UnknownObj and a specific keyword in the ReturnType list Method(mm1e, , , , {UnknownObj, IntObj}) {Store(1, Debug)} // NumArgs 0 but non-empty list of parameters Method(mm1f, 0, , , , IntObj) {Return ("mm1f")} Method(mm20, 0, , , , {IntObj}) {Return ("mm20")} Method(mm21, , , , , {IntObj}) {Return ("mm21")} // NumArgs 1 but 2-element list of parameters Method(mm22, 1, , , , {IntObj, IntObj}) {Return ("mm22")} // NumArgs 2 but 1-element list of parameters Method(mm23, 2, , , , {IntObj}) {Return ("mm23")} // The same specific keyword in the ParameterType list twice Method(mm24, 1, , , , {{IntObj, IntObj}}) {Store(1, Debug)} Method(mm25, 1, , , , {{UnknownObj, UnknownObj}}) {Store(1, Debug)} // Simulteneously UnknownObj and a specific keyword in the ParameterType list Method(mm26, 1, , , , {{UnknownObj, IntObj}}) {Store(1, Debug)} // NumArgs 6 but 5-element list of parameters Method(mm27, 6, , , , {IntObj, IntObj, IntObj, IntObj, IntObj}) {Return ("mm27")} // NumArgs 6 but 7-element list of parameters Method(mm28, 7, , , , {IntObj, IntObj, IntObj, IntObj, IntObj, IntObj, IntObj}) {Return ("mm28")} // NumArgs 7 but 8-element list of parameters Method(mm29, 7, , , , {IntObj, IntObj, IntObj, IntObj, IntObj, IntObj, IntObj, IntObj}) {Return ("mm29")} } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0148_ASL/MAIN.asl0000700000175000017500000000402414773714151027134 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B148.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0148_ASL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0238/0000700000175000017500000000000014773714152025206 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0238/DECL.asl0000700000175000017500000000604314773714152026424 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 238: * * SUMMARY: The jumping over levels in releasing mutexes is not prohibited */ Method (M039, 0, Serialized) { Mutex (MX07, 0x07) Mutex (MX08, 0x08) Mutex (MX09, 0x09) Method (M000, 0, NotSerialized) { Acquire (MX07, 0xFFFF) Acquire (MX08, 0xFFFF) Acquire (MX09, 0xFFFF) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Release (MX08) /* * Release(MX08) above doesn't cause exception * but, seems, it should. */ CH04 (__METHOD__, 0x00, 0x40, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ /* Also this */ Release (MX07) CH04 (__METHOD__, 0x00, 0x40, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ /* * Now, the Release(MX09) below causes exception, * so we have no way to release MX09. * * Considered: * 1. Both Releases above should cause AE_AML_MUTEX_ORDER * 2. The failed Releases above should not change the current level * 3. So, the Release below should succeed */ Release (MX09) Release (MX08) Release (MX07) CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } M000 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0238/RUN.asl0000700000175000017500000000361714773714152026365 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 238", TCLD, 0xEE, W017)) { SRMT ("m039") M039 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0238/MAIN.asl0000700000175000017500000000413114773714152026435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B238.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0238/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0238/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0290/0000700000175000017500000000000014773714153025205 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0290/DECL.asl0000700000175000017500000000741414773714153026426 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Bug 290: * * SUMMARY: AcpiExec is unable to emulate Load from OpRegion */ Device (D290) { Name (BUF0, Buffer (0x4D) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x4D, 0x00, 0x00, 0x00, // SSDTM... /* 0008 */ 0x02, 0x95, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x02, 0x11, 0x06, 0x20, 0x5B, 0x82, 0x1C, 0x41, // ... [..A /* 0028 */ 0x55, 0x58, 0x44, 0x14, 0x16, 0x4D, 0x30, 0x30, // UXD..M00 /* 0030 */ 0x30, 0x00, 0x70, 0x0D, 0x5C, 0x41, 0x55, 0x58, // 0.p.\AUX /* 0038 */ 0x44, 0x2E, 0x4D, 0x30, 0x30, 0x30, 0x3A, 0x00, // D.M000:. /* 0040 */ 0x5B, 0x31, 0x10, 0x0A, 0x5C, 0x00, 0x08, 0x45, // [1..\..E /* 0048 */ 0x58, 0x53, 0x54, 0x0A, 0x02 // XST.. }) OperationRegion (IST0, SystemMemory, 0x00, 0x4D) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 616 } Method (TST0, 0, NotSerialized) { RFU0 = BUF0 /* \D290.BUF0 */ If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) Return (Zero) } Load (IST0, Local1) If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } ElseIf (CondRefOf (\AUXD, Local0)){} Else { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x00) Return (Zero) } Debug = "SSDT loaded" Unload (Local1) Debug = "SSDT unloaded" If (CondRefOf (\AUXD, Local0)) { ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) } Return (Zero) } } Method (M290, 0, NotSerialized) { \D290.TST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0290/RUN.asl0000700000175000017500000000362114773714153026357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Demo of bug 290", TCLD, 0x0122, W017)) { SRMT ("m290") M290 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/ACPICA/0290/MAIN.asl0000700000175000017500000000413114773714153026434 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "B290.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/bdemo/ACPICA/0290/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/bdemo/ACPICA/0290/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/bdemo/Makefile0000700000175000017500000000011014773714153025326 0ustar ivanhuivanhu# bdemo MDIRS= ACPICA TOP= ../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/TMP/0000700000175000017500000000000014773714143023244 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/TMP/level/0000700000175000017500000000000014773714160024352 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/TMP/level/MAIN.asl0000700000175000017500000000431014773714160025600 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* The test sample */ DefinitionBlock( "tmp.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../runtime/cntl/DECL.asl") Method(m000) { Name(S000, "") Name(b000, Buffer(16) {0x5b,0x5f,0x54,0x5f}) Store(b000, s000) Store(b000, Debug) Store(s000, Debug) Store("asdf", b000) Store(b000, Debug) Store("[_T_", b000) Store(b000, Debug) } Method(MAIN) { // Initialization STRT(0) // Run verification methods m000() // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/0000700000175000017500000000000014773714160023223 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/mt/README0000700000175000017500000000014114773714160024102 0ustar ivanhuivanhu CONTENTS tests of multi-threading functionality (mt-tests) mutex the tests of mutexes acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/Makefile0000700000175000017500000000010514773714160024662 0ustar ivanhuivanhu# mt MDIRS = mutex TOP= ../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/0000700000175000017500000000000014773714160024365 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/RUN.asl0000700000175000017500000000411314773714160025534 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Run printing only on the Control Thread (non-zero Local0). */ If (Local0) { STTT ("Check mutex related interfaces in a real multi-threading mode", TCLM, 0x00, 0x00) } MF00 (Arg0, Arg1, Arg2) If (Local0) { FTTT () } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/SPEC0000700000175000017500000004100714773714160025047 0ustar ivanhuivanhuDescriptions of tests Thread means below the Worker thread (if another is not specified explicitly). Active agents of subject of mt-testing (attention to be drawn to in mt-tests). - Threads - Methods (Serialized/non-Serialized) - Mutexes (Acquire/Release) - Level of mutex - order of correct dealing with levels 1) mix on the same level Acquire {0,1,2}, Release {1,2,0} 2) Acquire+Release {0,1,2..,F}, {F..,2,1,0} - Milliseconds to wait - Events (Wait/Signal) - global lock (_GL) - OperationRegion (SystemMemory/SystemIO/PCI_Config/ EmbeddedControl/SMBus/CMOS/PCIBARTarget) - Field,BankField,IndexFiled (Lock/NoLock) of different type OperationRegions - context (GPE/usual) - OS side - firmware side - Notify ======================== see: - invocation (?) -- is not thread (?) - can invocation have several different threads? - "interpretation of the current invocation could not be transferred to different invocation until the current says - 'ok I complete'" ======================== Note: the Global lock in mt-tests is mutex of 0-th level 1-th index (mux-0-1). THR-NUMBER: this entry describes how many threads are needed for the test, and the role of threads. The 0-th thread, so-called Control Thread, is not counted in this entry. --------. # ========================= # # === TEST 001 (mf01) === # # ========================= # FUNCTION OF EACH WORKER THREAD: Acquire one mutex of i-th level, Sleep, then Release it. Check the mutually exclusive ownership of mutex. Do it for all levels. Check that GL behaves as 0-level mutex. After all threads Acquire/Release each mutex of the current level one by one in the same order go to the next level. So, from level 0 up to 15. GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: arbitrary, all threads do the same DETAILS: 1. The Control thread resets all flags and counters of all mutexes. 2. The Worker threads do the same actions with each of the same N mutexes of i-th level: - acquire the mutex - check that flag of the mutex is zero (not set up yet) - set up flag of the mutex to the index of this thread - increment the counter of this mutex - fall into sleep for the specified time - wake up - check up flag of the mutex that it was not changed by other threads while this one was sleeping - reset flag of the mutex - release mutex 3. Control thread after all the worker threads complete with all N mutexes of i-th level: - checks that the counter of each relevant mutex is correct - report errors detected by Worker threads - report other errors 4. Control thread initiates and Worker threads fulfill actions (2) for mutexes of all levels one after another from 0 up to 15 (and GL too). # ========================= # # === TEST 002 (mf02) === # # ========================= # FUNCTION OF EACH WORKER THREAD: Acquire mutexes of all levels then Release them in the inverse order. Check that particular thread is allowed to nestedly acquire mutexes of level not less than the current one. The inverse order is true for Releasing mutexes by the particular thread. Several mutexes of the same level can be simultaneously owned by the same thread. While one thread owns all the mutexes other threads hang on Acquire of the first 0-level mutex (because of the same order of mutexes to be Acquired for all threads), then after the thread releases all the mutexes another thread starts actually owning all the mutexes. All threads own all mutexes in this way. GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: arbitrary, all threads do the same DETAILS: 1. The Worker threads do the same actions described below: - acquire one by one mutexes of all levels from 0 up to 15 (N mutexes per level) - after acquiring the mutex of 15-th level start releaseng them in the inverse order - do the control actions with the flags and counters of mutexes (see comment to mf01) # ========================= # # === TEST 003 (mf03) === # # ========================= # Example 0, taken from the real bug GL-LOCK: if GL00 is non-zero, mux-0-1 is GL; the test involves only mux-0-1 THR-NUMBER: arbitrary, odd and even threads fulfill two different methods, N times # ========================= # # === TEST 004 (mf04) === # # ========================= # The available levels of mutexes on thread_1 don't depend on mutex levels occupied by other threads GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 2 or greater; only 2 work effectively other sleep DETAILS: I. 1. Thread_1 owns mutexes of all levels and fall into sleeping 2. Thread_2 owns mutexes of all levels too not touching those occuppied by Thread_1 3. Thread_2 Releases its mutexes 4. Thread_1 Releases its mutexes II. Do the same as (I) but {1,2,4,3}. III. 1. Thread_1 owns one (non-zero level) mutex and falls into sleeping 2. Thread_2 owns mutexes of all levels not touching that occuppied by Thread_1 3. Thread_2 Releases its mutex 4. Thread_1 Releases its mutexes # ========================= # # === TEST 005 (mf05) === # # ========================= # Another thread tries to Release mutex and gets exception GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 2 or greater; only 2 work effectively other sleep DETAILS: 1. Thread_1 owns all-level mutexes and falls into sleeping 2. Thread_2 tries to Release all those mutexes owned by Thread_1 3. Exception is expected 4. Thread_2 owns all-level mutexes (not intersecting with Thread_1) 5. Thread_2 tries again to Release mutexes owned by Thread_1 6. Exception is expected 7. Thread_1 tries to Release mutexes owned by Thread_2 8. Exception is expected 9. Thread_1 Releases its mutexes 10. Thread_2 Releases its mutexes # ========================= # # === TEST 006 (mf06) === # # ========================= # Modification of TEST 005 (Another thread tries to Release mutex and gets exception) GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 2 or greater; maximum 4 (min0) work effectively, other sleep 1.Threads thr-1, thr-2, thr-3, thr-4 Acquire mutexes of the same i-th level but different Indexes. 2. Threads thr-2, thr-3, thr-4 attempt (one by one) to Release mutex of thr-1, and gets exception 3. Threads thr-1, thr-3, thr-4 attempt (one by one) to Release mutex of thr-2, and gets exception 4. Threads thr-1, thr-2, thr-4 attempt (one by one) to Release mutex of thr-3, and gets exception 5. Threads thr-1, thr-2, thr-3, attempt (one by one) to Release mutex of thr-4, and gets exception 6. Threads thr-1, thr-2, thr-3, thr-4 Release their mutexes. Go to the next level of mutexes. # ========================= # # === TEST 007 (mf07) === # # ========================= # Attempt to Acquire mutex of lower than the current level causes exception GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 1 or greater; maximum 4 (min0) work effectively and do the same, other sleep DETAILS: All threads do the same not intersecting with mutexes. 1. Do below for all levels (N) from 15 up to 0 2. Set up current level (N) to 15 3. Acquire mutexes from 0 to (N-1) levels 4. Release mutexes 5. Acquire mutex of level N 6. Attempt to Acquire mutexes from 0 to (N-1) levels 7. Exception is expected 8. Acquire mutexes from (N+1) to 15 levels 9. Release all mutexes 10. Acquire mutexes from 0 to (N-1) levels 11. Release mutexes 12. Decrement the current level 13. Go to (3) # ========================= # # === TEST 008 (mf08) === # # ========================= # Threads simultaneously own different mutexes of the same level (prove that mutexes of different indexes of the same level allow real competition (not one by one owning)). GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 4 or greater; only 4 work effectively other sleep DETAILS: Mapping of ownerships of mutexes {n0,n1,n2,n3} in test by threads {thread_1-thread_2,thread_3,thread_4}: x-0-123, x-1-230, x-2-301, x-3-012, x-0-123 x - Control thread x-0-123: All threads acquire different mutexes of the same n-th level: thread_1 n0_mutex thread_2 n1_mutex thread_3 n2_mutex thread_4 n3_mutex - acquire i-th mutex of n-th level (ni_mutex) - check the mutually exclusive ownership of ni_mutex - report that ni_mutex is owned - check that all mutexes are owned by the relevant threads x-1-230: Threads thread_2, thread_3 and thread_4 acquire mutexes n2_mutex, n3_mutex and n0_mutex respectively and hang because all those mutexes are busy by other threads. After making sure that threads thread_2, thread_3 and thread_4 hang the thread_1 is initiated to release n0_mutex and acquire n1_mutex. It allows thread_4 to own n0_mutex. It releases n3_mutex. It allows thread_3 to own n3_mutex. It releases n2_mutex. It allows thread_2 to own n2_mutex. It releases n1_mutex. It allows thread_1 to own n1_mutex. x-2-301, x-3-012, x-0-123: identically to . # ========================= # # === TEST 009 (mf09) === # # ========================= # Another implementation of TEST 008. GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 4 or greater; only 4 work effectively other sleep # ========================= # # === TEST 010 (mf10) === # # ========================= # Threads simultaneously own different mutexes of different levels (prove that mutexes of different levels allow real competition (not one by one owning)). Similar to the TEST 008 but mutexes differ with their Levels but not Indexes. GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 4 or greater; only 4 work effectively other sleep # ========================= # # === TEST 011 (mf11) === # # ========================= # ACPI allows to multiply Acquire the same mutex. GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 1 or greater; maximum 4 (min0) work effectively, other sleep Each thread deals with its set of mutexes not intersecting with other threads. 1. Each thread Acquires successfully its mutex N times (do it for increasing levels 0-15) 2. Each thread Releases successfully its mutex N times (do it in inverse order, levels 15-0) 3. Each thread gets exception AE_AML_MUTEX_NOT_ACQUIRED on additional Release # ========================= # # === TEST 012 (mf12) === # # ========================= # ACPI allows to Acquire repeatedly the same mutex over the pending requests of other threads to that mutex. GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 2 or greater; maximum 4 (min0) work effectively, other sleep 1. Thread thr-i Acquires successfully mutex M0 of (i-1)-th index for N times 2. Other threads Acquire M0 too and hang 3. Thread thr-i Acquires successfully mutex M0 for N times again 4. Thread thr-i Releases mutex M0 for 2*N times 5. One of other threads (thr-j) owns M0 6. Thread thr-j Releases M0 7. Do 5-6 items for all 'other' threads 8. Do 1-7 for all threads one by one (so, for 0-3 Indexes of mutex as well) 9. Do 1-8 for all Levels of mutex one by one # ========================= # # === TEST 013 (mf13) === # # ========================= # Acquire the same mutex by the same thread 'many times' (say 256). GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 1 or greater; maximum 4 (min0) work effectively, other sleep # ========================= # # === TEST 014 (mf14) === # # ========================= # Check that all mutexes Acquired by thread and not explicitly Released are Released implicitly by ACPICA when the thread completes. GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 2 or greater; only 2 work effectively other sleep NOTE: the thread with the greatest index terminates at the end of this test 1. Thread thr-N Acquires all the mutexes on all levels 2. Thread thr-1 tries to Acquire all the same mutexes and gets FAIL (TimeOutValue is not 0xFFFF) 3. Thread thr-N terminates 4. Thread thr-1 tries to Acquire all those mutexes again and gets success (TimeOutValue is 0xFFFF) 5. Thread thr-1 Releases all mutexes # ========================= # # === TEST 015 (mf15) === # # ========================= # Modification of test 014. GL-LOCK: if GL00 is non-zero, mux-0-1 is GL THR-NUMBER: 2 or greater; only 2 work effectively other sleep NOTE: the thread with the greatest index terminates at the end of this test 1. Thread thr-N Acquires all the mutexes on all levels 2. Thread thr-1 tries to Acquire all the same mutexes and gets FAIL (TimeOutValue is not 0xFFFF) 3. Thread thr-1 tries to Acquire all the same mutexes and hang (TimeOutValue is 0xFFFF) 4. Thread thr-N terminates 5. Thread thr-1 owns all those mutexes 6. Thread thr-1 Releases all mutexes # ========================= # # === TEST 016 (mf16) === # # ========================= # THR-NUMBER: 2 or greater; only 2 work effectively other sleep 1. Thread thr-N - invokes Serialized method MXXX - waits for another thread (thr-1) trying to invoke same method MXXX - falls into sleep (several times) - awakes - check that thr-1 continue hanging trying to get into MXXX - exit MXXX 2. Check that thr-1 succeeds getting into MXXX # ========================= # # === TEST 017 (mf17) === # # ========================= # Modification of test 016. Similar to test 016 but instead of Serialized method a mutex is used for exclisive access to critical section. # ========================= # # === TEST 018 (mf18) === # # ========================= # Modification of test 016. Similar to test 016 check for non-serialized method. #################################################################### #################################################################### #################################################################### #################################################################### #################################################################### ========================================= XXXXX: acquire mutex on a global level but don't release it - check that it is released automatically ??? (code in initialization of global variables) ========================================= XXXXX: Simulate interconnection between Firmware and OS. ========================================= XXXXX,serialized-method: check serialized method (immediately, and calls to other methods inside the serialized method) 1) access to different type data inside serialized method ========================================= XXXXX, serialized-method: try to Acq/Rel mutex of inappropriate level LL from method MT0 of synclevel NN. - immediately from that method - from invoking more the intermittent methods enclosed statically or only dynamically in that method ========================================= XXXXX: check blocked: check that when one thread fall to sleep another can own that mutex ????????????? ========================================= XXXXX: > Fixed a regression where an error was no longer emitted if a control method attempts > to create 2 objects of the same name. This once again returns AE_ALREADY_EXISTS. > When this exception occurs, it invokes the mechanism that will dynamically serialize the > control method to possibly prevent future errors. (BZ 440) Test: 1. thr-1 - come into test and creates the internal object 2. thr-2 - come in starts creating that same object and gets exception 3. thr-3 - it should be blocked because method is serialized at step 2 ========================================= XXXXX: multi-threading and Switch multi-threading and While etc.. ========================================= XXXXX: Now the mutex tests (in Sinchronization and mt-tests) do Acquire/Release mutexes of monotone increasing/decreasing levels (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 and inversely). Do tests where these levels jump over levels: (0, 2, 4, 6, 8,9,10, 12, 14,15 and inversely). Will it check 'acquisition depth' below? ACPI_STATUS AcpiDsBeginMethodExecution ( ACPI_NAMESPACE_NODE *MethodNode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { /* Always increase acquisition depth */ ObjDesc->Method.Mutex->Mutex.AcquisitionDepth++; } ========================================= XXXXX: ======================== work for 2,3,4,5,and more threads: + mf01 + mf02 + mf03 + mf04 + mf05 + mf06 + mf07 + mf08 + mf09 + mf10 + mf11 + mf12 + mf13 ======================== work for 2 and more threads: + mf01 + mf02 + mf03 + mf04 + mf05 + mf06 + mf07 + mf08 (4 and greater) run time == 0x10 + mf09 (4 and greater) run time == 0x60 + mf10 (4 and greater) run time == 0x60 + mf11 + mf12 + mf13 ======================== + mf01 + mf02 + mf03 + mf04 + mf05 + mf06 + mf07 + mf08 (4 and greater) run time == 0x10 + mf09 (4 and greater) run time == 0x60 + mf10 (4 and greater) run time == 0x60 + mf11 + mf12 + mf13 ======================== acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/mxs.asl0000700000175000017500000011313214773714160025701 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Access to mutexes routines */ Name (Z149, 0x95) /* * Opcodes of initialization of set of mutexes * * c300 - usual * c301 - one mutex of Index equal to ((Index of current thread) - 1) */ Name (C300, 0x00) Name (C301, 0x01) /* * Flags corresponding to Mutexes */ Name (FL00, Package (MAX0) { Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){} }) /* * Counters (current) corresponding to Mutexes * (how many times the relevant mutex has been * successfully Acquired (may be repeatedly) * (by the same thread)) * * - incremented on Acquire * - decremented on Release */ Name (FL01, Package (MAX0) { Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){} }) /* * Counters corresponding to Mutexes * * how many times the mutex has successfully Acquired * by different threads. * * - incremented on Acquire * - reset to zero by the Control thread */ Name (CNT0, Package (MAX0) { Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){}, Package (MAX1){} }) /* * Acquire mutex * * arg0 - ID of current thread * arg1 - Index of thread * arg2 - Level of mutex * arg3 - Index of mutex * arg4 - opcode of exception to be generated or zero * arg5 - opcode of TimeOutValue (see comment to ma00) * arg6 - if fall into sleep */ Method (M310, 7, Serialized) { Local0 = M21E ("Acquire mutex, ", Arg2, Arg3) M201 (Arg1, VB03, Local0) /* Increment statistics of Acquire */ If (VB04) { M212 (RefOf (P105), Arg1) } If ((Arg4 == EX0D)) { /* FAIL expected */ Local6 = 0x00 } Else { Local6 = Arg4 } Local7 = 0x01 /* Init with FAIL */ Switch (Arg2) { Case (0x00) { Local7 = MA00 (Arg3, Local6, Arg5) } Case (0x01) { Local7 = MA01 (Arg3, Local6, Arg5) } Case (0x02) { Local7 = MA02 (Arg3, Local6, Arg5) } Case (0x03) { Local7 = MA03 (Arg3, Local6, Arg5) } Case (0x04) { Local7 = MA04 (Arg3, Local6, Arg5) } Case (0x05) { Local7 = MA05 (Arg3, Local6, Arg5) } Case (0x06) { Local7 = MA06 (Arg3, Local6, Arg5) } Case (0x07) { Local7 = MA07 (Arg3, Local6, Arg5) } Case (0x08) { Local7 = MA08 (Arg3, Local6, Arg5) } Case (0x09) { Local7 = MA09 (Arg3, Local6, Arg5) } Case (0x0A) { Local7 = MA0A (Arg3, Local6, Arg5) } Case (0x0B) { Local7 = MA0B (Arg3, Local6, Arg5) } Case (0x0C) { Local7 = MA0C (Arg3, Local6, Arg5) } Case (0x0D) { Local7 = MA0D (Arg3, Local6, Arg5) } Case (0x0E) { Local7 = MA0E (Arg3, Local6, Arg5) } Case (0x0F) { Local7 = MA0F (Arg3, Local6, Arg5) } } If ((Arg4 == EX0D)) { /* FAIL expected */ If (Local7) { M201 (Arg1, VB03, "Acquire returned non-zero, it was expected") } Else { M201 (Arg1, VB03, "Error 9: Acquire returned zero but FAIL expected!") SE00 (Arg1, ER09, "Error er09") } Return (Local7) } ElseIf (Arg4) { Return (0x01) } ElseIf (Local7) { M201 (Arg1, VB03, "Error 0: Acquire returned non-zero!") SE00 (Arg1, ER00, "Error er00") Return (0x01) } Else { /* * Increment counter (cnt0) and set up flag (fl00) * corresponding to mutex. Report error in case the * flag is non-zero. */ Local7 = M21E ("Incrementing count of mutex, ", Arg2, Arg3) Concatenate (Local7, " and set up its flag", Local1) M201 (Arg1, VB03, Local1) M331 (Arg1, Arg2, Arg3) If (Arg6) { M201 (Arg1, VB03, "Fall into sleep") If (SLM0) { Divide (Arg1, 0x05, Local1) Local2 = 0x64 Switch (Local1) { Case (0x00) { Local2 = I100 /* \I100 */ } Case (0x01) { Local2 = I101 /* \I101 */ } Case (0x02) { Local2 = I102 /* \I102 */ } Case (0x03) { Local2 = I103 /* \I103 */ } Case (0x04) { Local2 = I104 /* \I104 */ } Case (0x05) { Local2 = I105 /* \I105 */ } Case (0x06) { Local2 = I106 /* \I106 */ } Case (0x07) { Local2 = I107 /* \I107 */ } Case (0x08) { Local2 = I108 /* \I108 */ } } M206 (Arg1, Local2) } Else { M206 (Arg1, SL01) } } } Return (0x00) } /* * Release mutex * * arg0 - ID of current thread * arg1 - Index of thread * arg2 - Level of mutex * arg3 - Index of mutex * arg4 - opcode of exception to be generated or zero * arg5 - if fall into sleep */ Method (M311, 6, Serialized) { Local0 = M21E ("Release mutex, ", Arg2, Arg3) M201 (Arg1, VB03, Local0) /* Increment statistics of Release */ If (VB04) { M212 (RefOf (P106), Arg1) } /* * Check up and reset flag (fl00) corresponding to this Mutex * (check that it was not changed by other threads while this * one was sleeping). */ If (!Arg4) { M332 (Arg1, Arg2, Arg3) } Switch (Arg2) { Case (0x00) { MA10 (Arg3) } Case (0x01) { MA11 (Arg3) } Case (0x02) { MA12 (Arg3) } Case (0x03) { MA13 (Arg3) } Case (0x04) { MA14 (Arg3) } Case (0x05) { MA15 (Arg3) } Case (0x06) { MA16 (Arg3) } Case (0x07) { MA17 (Arg3) } Case (0x08) { MA18 (Arg3) } Case (0x09) { MA19 (Arg3) } Case (0x0A) { MA1A (Arg3) } Case (0x0B) { MA1B (Arg3) } Case (0x0C) { MA1C (Arg3) } Case (0x0D) { MA1D (Arg3) } Case (0x0E) { MA1E (Arg3) } Case (0x0F) { MA1F (Arg3) } } If (Arg5) { M206 (Arg1, SL01) } } /* * Reset all counters (cnt0) and flags (fl00) * corresponding to all Mutexes. */ Method (M330, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { LPN1 = MAX1 /* \MAX1 */ LPC1 = 0x00 While (LPN1) { DerefOf (CNT0 [LPC0]) [LPC1] = 0x00 DerefOf (FL00 [LPC0]) [LPC1] = 0x00 LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * For Acquire * * Increment counter (cnt0) and set up flag (fl00) * corresponding to the mutex of arg1-Level and * arg2-Index. Report error in case the flag is non-zero. * * arg0 - Index of thread * arg1 - Level of mutex * arg2 - Index of mutex */ Method (M331, 3, NotSerialized) { /* Local1 - the value of flag (index of thread owning the mutex) */ Local0 = DerefOf (FL00 [Arg1]) Local1 = DerefOf (Local0 [Arg2]) If (Local1) { If ((Local1 == Arg0)) { Local7 = M21E ("Mutex ", Arg1, Arg2) Concatenate (Local7, " is already owned by thr ", Local7) Concatenate (Local7, Arg0, Local7) WRN0 (Arg0, WN00, Local7) } Else { SE00 (Arg0, ER01, "Error er01") } } /* Set up flag */ DerefOf (FL00 [Arg1]) [Arg2] = Arg0 /* Increment counter cnt0 (owning by all threads) */ Local0 = DerefOf (CNT0 [Arg1]) Local1 = DerefOf (Local0 [Arg2]) Local1++ DerefOf (CNT0 [Arg1]) [Arg2] = Local1 /* Increment counter fl01 (owning by one thread) */ Local0 = DerefOf (FL01 [Arg1]) Local1 = DerefOf (Local0 [Arg2]) Local1++ DerefOf (FL01 [Arg1]) [Arg2] = Local1 } /* * For Release * * Check up and reset flag (fl00) corresponding to this Mutex * (check that it was not changed by other threads while this * one was sleeping). * * arg0 - Index of thread * arg1 - Level of mutex * arg2 - Index of mutex */ Method (M332, 3, NotSerialized) { /* Local1 - the value of flag (index of thread owning the mutex) */ Local0 = DerefOf (FL00 [Arg1]) Local1 = DerefOf (Local0 [Arg2]) If ((Local1 != Arg0)) { SE00 (Arg0, ER02, "Error er02") } Else { /* Reset flag */ /* Local1 - counter of owning the mutex by the same thread */ Local0 = DerefOf (FL01 [Arg1]) Local1 = DerefOf (Local0 [Arg2]) If ((Local1 == 0x00)) { SE00 (Arg0, ER08, "Error er08") } Else { Local1-- If ((Local1 == 0x00)) { /* * May be greater than one when owning mutex by the * same thread several times (allowed for ACPI mutex). */ DerefOf (FL00 [Arg1]) [Arg2] = 0x00 } DerefOf (FL01 [Arg1]) [Arg2] = Local1 } } } /* * Check up the value of counter corresponding to this Mutex * * arg0 - Level of mutex * arg1 - Index of mutex * arg2 - expected value of counter */ Method (M333, 3, NotSerialized) { Local0 = DerefOf (CNT0 [Arg0]) Local1 = DerefOf (Local0 [Arg1]) If ((Local1 != Arg2)) { ERR ("m333", Z149, __LINE__, 0x00, 0x00, Local1, Arg2) Debug = Arg0 Debug = Arg1 } } /* * Specify the per-thread set of mutexes to deal with in operation * * arg0 - number of threads (threads actually in work) * arg1 - opcode of initialization * arg2 - Level of mutex (initial) * arg3 - Number of levels of mutexes * arg4 - Index of mutex (inside the level) * arg5 - Number of mutexes of the same level */ Method (M334, 6, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { /* For not a Control thread only */ If ((LPC0 != 0x00)) { Switch (Arg1) { Case (0x01) { /* c301 */ /* * One mutex of Index equal to * ((Index of current thread) - 1) */ P200 [LPC0] = Arg2 P201 [LPC0] = Arg3 Local0 = (LPC0 - 0x01) P202 [LPC0] = Local0 P203 [LPC0] = 0x01 } /* c300 */ Default { P200 [LPC0] = Arg2 P201 [LPC0] = Arg3 P202 [LPC0] = Arg4 P203 [LPC0] = Arg5 } } /* Switch() */ } /* if() */ LPN0-- LPC0++ } } /* * Control thread initiates workers to Acquire * specified set of mutexes - on each specified * level - one mutex of Index which is equal to * ((Index of thread) - 1). * * When all workers complete that operation checks up * the state of execution of operation provided by * workers. * * arg0 - number of threads (total) * arg1 - number of threads (threads actually in work) * * ====== as for m334: * arg2 - Level of mutex (initial) * arg3 - Number of levels of mutexes * * arg4 - expected value of counter * arg5 - exceptional conditions flags (buffer/Integer) */ Method (M337, 6, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) /* Acquire specified set of mutexes */ /* Set up per-thread set of mutexes */ M334 (Arg1, C301, Arg2, Arg3, 0x00, 0x00) /* Init the exceptional conditions flags */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M20F (Arg1, Arg5, 0x00) /* c106 for all first arg1 threads */ M210 (BS00, Arg0, C106, 0x00, Arg1, 0x01, C102) /* cmd: Acquire specified set of mutexes */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* Check up the values of counters of all Mutexes */ LPN0 = Arg3 LPC0 = Arg2 While (LPN0) { M333 (LPC0, 0x00, Arg4) LPN0-- LPC0++ } } /* * Control thread initiates workers to Release * specified set of mutexes - on each specified * level - one mutex of Index which is equal to * ((Index of thread) - 1). * * Control thread initiates workers to Release * specified set of mutexes. * * arg0 - number of threads (total) * arg1 - number of threads (threads actually in work) * * ====== as for m334: * arg2 - Level of mutex (initial) * arg3 - Number of levels of mutexes */ Method (M338, 4, NotSerialized) { /* Set up per-thread set of mutexes */ M334 (Arg1, C301, Arg2, Arg3, 0x00, 0x00) /* c107 for all first arg1 threads */ M210 (BS00, Arg0, C107, 0x00, Arg1, 0x01, C102) /* cmd: Release specified set of mutexes */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) } /* * Control thread checks that the specified set of worker threads * hang on the specified operations or completed the operations. * * See m10e for args: * arg0 - number of threads * arg1 - buffer */ Method (M33D, 2, NotSerialized) { Local0 = M10F (Arg0, Arg1) If ((Local0 & 0x01)) { ERR ("m33d", Z149, __LINE__, 0x00, 0x00, Local0, 0x00) } If ((Local0 & 0x02)) { ERR ("m33d", Z149, __LINE__, 0x00, 0x00, Local0, 0x00) } } /* * Run command for the specified set of workers * * arg0 - number of threads * arg1 - specificator of elements (see m20a) * arg2 - command */ Method (M33E, 3, NotSerialized) { M20A (BS00, Arg0, Arg2, Arg1) /* cmd */ M114 (Arg0) /* Wait for Worker threads */ M103 (Arg0) } /* * Control thread initiates commands for workers to be fulfilled. * After commands execution checks the statuses of all threads. * * It should be one of the following: * - thread completed the specified command * - thread hangs (on the specified command) * - all other idle threads completed the 'idle-command' * (for all those threads not enumerated in either 'Expected * completion statuses' or 'Expected hang statuses' lists). * * Note: because of the restricted number of ACPI arguments available, * the input data are combined. * * arg0 - numbers of threads (buffer/Integer). * Integer: * number of threads both total and 'actually in work' * Buffer (elements of buffer): * 0-th element - number of threads (total) * 1-th element - number of threads (threads actually in work, not extra idle ones) * * arg1 - Commands (buffer/Integer). * * buffer/Integer, per-thread commands to be fulfilled * Integer: * 0 - undefined * non-zero - the same command for all worker threads * Buffer (elements of buffer): * 0 - undefined * non-zero - command for the relevant worker thread * * arg2 - Exceptional conditions flags (buffer/Integer) * * buffer/Integer, per-thread flags of exceptional conditions * Integer: * - non-zero means that we generate the same * exceptional condition for all worker threads * Buffer (elements of buffer): * 0 - exception is not expected * non-zero - means that we generate exceptional condition * for the relevant thread * * The particular value (X0) of the exceptional condition flag * corresponding to the particular thread means the following: * * 0: do nothing * non-zero: * * 1) before to run operation: * * check absence of any exception occurred on this thread * * 2) after the operation is completed depending on X0: * * EX0E (particular undefined opcode of exception): * * check that no any exception occurred on this thread * * otherwise: * * check that exception with opcode equal to X0 * has occurred on this thread * * arg3 - Levels of mutexes (buffer/Integer). * * buffer/Integer, per-thread levels of mutexes * Integer: * - the same level of mutex for all worker threads * (number of levels is 1) * Buffer (elements of buffer): * Pairs: * - start level of mutex for the relevant thread * - number of levels * * arg4 - Indexes of mutexes (buffer/Integer). * * buffer/Integer, per-thread indexes of mutexes * Integer: * - the same index of mutex for all worker threads * (number of mutexes of the same level is 1) * Buffer (elements of buffer): * Pairs: * - start index of mutex for the relevant thread * - number of mutexes of the same level * * arg5 - Expected completion statuses (the same semantics as Commands) (buffer/Integer). * * buffer/Integer, per-thread commands to check for completion * Integer: * 0 - do nothing * non-zero - the same command for all worker threads * Buffer (elements of buffer): * 0 - do nothing * non-zero - command for the relevant worker thread * * arg6 - Expected hang statuses (the same semantics as Commands) (buffer/Integer). * * buffer/Integer, per-thread commands to check for hang * Integer: * 0 - do nothing * non-zero - the same command for all worker threads * Buffer (elements of buffer): * 0 - do nothing * non-zero - command for the relevant worker thread * * Note: non-zero 0-th element of the buffer means the * number of hanging threads expected to wake up * after some command of arg1 will be executed. */ Method (M33F, 7, Serialized) { Name (NTH0, 0x00) /* total */ Name (NTH1, 0x00) /* actually in work */ Name (HAS1, 0x00) /* has non-zero exception expectations */ /* Check params */ Local0 = M344 (Arg5, Arg6) If (Local0) { ERR ("m33f: incorrect parameters", Z149, __LINE__, 0x00, 0x00, Arg5, Arg6) Debug = Local0 Return (Zero) } /* Parse number of threads */ If ((ObjectType (Arg0) == C009)) { NTH0 = Arg0 NTH1 = Arg0 } Else { NTH0 = DerefOf (Arg0 [0x00]) NTH1 = DerefOf (Arg0 [0x01]) } /* 1) Command execution */ /* * Prepare buffers of per-thread commands and arguments * * Resulting data: bs00, p200, p201, p202, p203, p204 * * Note: not specified elements of buffers are not touched. */ HAS1 = M340 (NTH1, Arg1, Arg2, Arg3, Arg4) /* Allow workers to execute their commands */ M114 (NTH0) /* 2) Check status of execution of commands */ /* Calculate the per-thread expectations of completion statuses */ Local0 = M342 (NTH0, NTH1, Arg5) /* Calculate the per-thread expectations of hang statuses */ Local1 = M342 (NTH0, NTH1, Arg6) /* Calculate the idle-threads mapping buffer */ Local2 = M343 (NTH0, NTH1, Local0, Local1) /* * So, each thread is represented in one and only one of sets: * * Local0 - expectations of completion * Local1 - expectations of hang * Local2 - idle */ /* Wait for all Worker threads and check their statuses */ M110 (NTH0, Local0, Local1, Local2) /* Reset exception expectation */ M336 (NTH0, HAS1) } /* * Prepare buffers of per-thread commands and arguments * * Resulting data: bs00, p200, p201, p202, p203 * * Note: don't touch not specified elements of buffer. * * arg0 - number of threads (threads actually in work) * arg1 - Commands (see m33f) * arg2 - Exceptional conditions flags (see m33f) * arg3 - Levels of mutexes (see m33f) * arg4 - Indexes of mutexes (see m33f) */ Method (M340, 5, Serialized) { Name (HAS0, 0x00) Name (HAS1, 0x00) /* has non-zero exception expectations */ Name (LPN0, 0x00) Name (LPC0, 0x00) Name (SLCT, 0x00) Name (CMD0, 0x00) Name (B000, Buffer (Arg0){}) Name (B200, Buffer (Arg0){}) Name (B201, Buffer (Arg0){}) Name (B202, Buffer (Arg0){}) Name (B203, Buffer (Arg0){}) Local0 = ObjectType (Arg1) If ((Local0 == C009)) { /* Integer */ CMD0 = Arg1 If (!CMD0) { Return (Zero) } } Else { /* Buffer/Package */ SLCT = 0x01 } LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { /* For not a Control thread only */ If ((LPC0 != 0x00)) { If (SLCT) { CMD0 = DerefOf (Arg1 [LPC0]) } If (CMD0) { HAS0 = 0x01 B000 [LPC0] = CMD0 /* \M340.CMD0 */ /* Prepare arguments of command */ Local0 = M341 (CMD0, LPC0, Arg3, Arg4) If ((ObjectType (Local0) == C00C)) { Local1 = DerefOf (Local0 [0x00]) B200 [LPC0] = Local1 Local1 = DerefOf (Local0 [0x01]) B201 [LPC0] = Local1 Local1 = DerefOf (Local0 [0x02]) B202 [LPC0] = Local1 Local1 = DerefOf (Local0 [0x03]) B203 [LPC0] = Local1 } } } LPN0-- LPC0++ } /* Prepare the exceptional conditions flags buffer */ Local1 = M20E (Arg0, Arg2) /* * Prepare all the commands and arguments and then re-write * them into the target buffers looks there useful for debugging. */ If (HAS0) { LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { CMD0 = DerefOf (B000 [LPC0]) If (CMD0) { BS00 [LPC0] = CMD0 /* \M340.CMD0 */ Local0 = DerefOf (B200 [LPC0]) P200 [LPC0] = Local0 Local0 = DerefOf (B201 [LPC0]) P201 [LPC0] = Local0 Local0 = DerefOf (B202 [LPC0]) P202 [LPC0] = Local0 Local0 = DerefOf (B203 [LPC0]) P203 [LPC0] = Local0 Local0 = DerefOf (Local1 [LPC0]) If (Local0) { HAS1 = 0x01 } P204 [LPC0] = Local0 P205 [LPC0] = TOVF /* \TOVF */ } LPN0-- LPC0++ } } Return (HAS1) /* \M340.HAS1 */ } /* * Prepare arguments of command * * arg0 - command * arg1 - index of thread * arg2 - Levels of mutexes (see m33f) * arg3 - Indexes of mutexes (see m33f) * * Return (no free ArgX to pass references to target Packages there, * so using Return): * - Package with elements to be filled * into p200, p201, p202, p203. * - Integer if no arguments. */ Method (M341, 4, Serialized) { Name (HAS0, 0x00) Name (P000, Package (0x04) { 0x00, 0x00, 0x00, 0x00 }) Name (I000, 0x00) Name (I001, 0x00) Name (I002, 0x00) Name (I003, 0x00) Switch (Arg0) { Case (Package (0x03) { 0xF6, 0xF7, 0xF3 } ) { /* 0xf6, c106 - Acquire specified set of mutexes */ /* 0xf7, c107 - Release specified set of mutexes */ /* 0xf3, c103 - Acquire/Sleep/Release */ /* * To calculate: * * i000 - starting level of mutex * i001 - number of levels * i002 - starting index of mutex (of the same level) * i003 - number of mutexes (of the same level) */ /* Levels */ Local0 = ObjectType (Arg2) If ((Local0 == C009)) { /* Integer */ I000 = Arg2 I001 = 0x01 } Else { /* Buffer/Package */ Local0 = (Arg1 * 0x02) I000 = DerefOf (Arg2 [Local0]) Local0++ I001 = DerefOf (Arg2 [Local0]) } /* Indexes */ Local0 = ObjectType (Arg3) If ((Local0 == C009)) { /* Integer */ I002 = Arg3 I003 = 0x01 } Else { /* Buffer/Package */ Local0 = (Arg1 * 0x02) I002 = DerefOf (Arg3 [Local0]) Local0++ I003 = DerefOf (Arg3 [Local0]) } HAS0 = 0x01 } Default { ERR ("m341: unexpected command:", Z149, __LINE__, 0x00, 0x00, 0x00, Arg0) } } If (HAS0) { P000 [0x00] = I000 /* \M341.I000 */ P000 [0x01] = I001 /* \M341.I001 */ P000 [0x02] = I002 /* \M341.I002 */ P000 [0x03] = I003 /* \M341.I003 */ Return (P000) /* \M341.P000 */ } Return (0x00) } /* * Prepare the per-thread status expectations mapping buffer * * arg0 - number of threads (total) * arg1 - number of threads (threads actually in work) * arg2 - Expected completion/hang statuses (see m33f) * * Return: * * Buffer (elements of buffer): * 0 - nothing to do for the relevant thread * non-zero - element of buffer means the last command * specified for the relevant thread. */ Method (M342, 3, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (SLCT, 0x00) Name (CMD0, 0x00) Name (B000, Buffer (Arg0){}) Local0 = ObjectType (Arg2) If ((Local0 == C009)) { /* Integer */ CMD0 = Arg2 If (!CMD0) { Return (B000) /* \M342.B000 */ } } Else { /* Buffer/Package */ SLCT = 0x01 } LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { If (SLCT) { CMD0 = DerefOf (Arg2 [LPC0]) } If (CMD0) { B000 [LPC0] = CMD0 /* \M342.CMD0 */ } LPN0-- LPC0++ } Return (B000) /* \M342.B000 */ } /* * Prepare the idle-threads mapping buffer * * arg0 - number of threads (total) * arg1 - number of threads (threads actually in work, not extra idle ones) * arg2 - Buffer, expected completion statuses (see m33f) * arg3 - Buffer, Expected hang statuses (see m33f) * * Return: * * Buffer (elements of buffer): * 0 - the relevant thread is non-idle * non-zero - the relevant thread is idle */ Method (M343, 4, Serialized) { Name (ERR0, 0x00) Name (IDLE, 0x00) Name (LPN0, 0x00) Name (LPC0, 0x00) Name (B000, Buffer (Arg0){}) LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { IDLE = 0x00 If ((LPC0 >= Arg1)) { IDLE = 0x01 } Else { Local0 = DerefOf (Arg2 [LPC0]) Local1 = DerefOf (Arg3 [LPC0]) If ((Local0 && Local1)) { /* Expects both completion and hang simultaneously */ ERR0 = 0x01 } ElseIf ((!Local0 && !Local1)) { IDLE = 0x01 } } B000 [LPC0] = IDLE /* \M343.IDLE */ LPN0-- LPC0++ } If (ERR0) { ERR ("m333", Z149, __LINE__, 0x00, 0x00, 0x00, 0x00) } Return (B000) /* \M343.B000 */ } /* * Check pair of parameters * * arg0 - Expected completion statuses (see m33f). * arg1 - Expected hang statuses (see m33f). */ Method (M344, 2, Serialized) { Name (INT0, 0x00) Name (INT1, 0x00) Name (ALL0, 0x00) Name (ALL1, 0x00) If ((ObjectType (Arg0) == C009)) { INT0 = 0x01 If (Arg0) { ALL0 = 0x01 } } If ((ObjectType (Arg1) == C009)) { INT1 = 0x01 If (Arg1) { ALL1 = 0x01 } } If ((ALL0 || ALL1)) { If ((INT0 && INT0)) { If ((ALL0 && ALL1)) { Return (0x01) } } Else { Return (0x02) } } Return (0x00) } /* * Reset exception expectation * * arg0 - number of threads (total) * arg1 - non-zero -- has non-zero exception expectations */ Method (M336, 2, NotSerialized) { /* Add statistics of exceptions (total) */ EX10 += EXC0 /* \EXC0 */ If (Arg1) { If (!EXC0) { /* Expected exceptions but have none */ ERR ("m333", Z149, __LINE__, 0x00, 0x00, EXC0, 0x00) } } ElseIf (EXC0) { /* Unexpected exceptions */ ERR ("m333", Z149, __LINE__, 0x00, 0x00, EXC0, 0x00) } /*Reset EXC0 (the current number of exceptions handled) */ CH0A () M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ } /* Init fl01 */ Method (M339, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { LPN1 = MAX1 /* \MAX1 */ LPC1 = 0x00 While (LPN1) { DerefOf (FL01 [LPC0]) [LPC1] = 0x00 LPN1-- LPC1++ } LPN0-- LPC0++ } } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/tests.asl0000700000175000017500000022642414773714160026245 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The test strategies to be managed and controlled by the * Control Thread and fulfilled by the Worker Threads (Workers). */ Name (Z152, 0x98) /* * Acquire/Sleep/Release * * All workers: * - Acquire the same mutex * - increment global counter * - set up another global to its Index * - sleep for the specified period * - check that the global contains just its Index * - Release mutex * Control thread: * - check after all threads complete that counter is correct * * arg0 - number of threads * arg1 - Level of mutex * arg2 - Index of mutex * arg3 - Number of mutexes of the same level */ Method (M801, 4, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (NUMW, 0x00) /* number of threads in work */ /* Number of threads to be actually in work */ NUMW = M213 (Arg0, 0x05, 0x04) /* Set up per-thread set of mutexes */ M334 (NUMW, C300, Arg1, 0x00, Arg2, Arg3) /* c103 for all first num threads */ M210 (BS00, Arg0, C103, 0x00, NUMW, 0x01, C102) /* cmd: Acquire/Sleep/Release */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* Check up the values of counters of all Mutexes */ /* lpC0 - Index of mutex */ Local0 = (NUMW - 0x01) /* exclude the Control thread */ LPN0 = Arg3 LPC0 = Arg2 While (LPN0) { M333 (Arg1, LPC0, Local0) LPN0-- LPC0++ } } /* * (0-15 levels)/Release(15-0 levels) * * arg0 - number of threads * arg1 - Index of mutex * arg2 - Number of mutexes of the same level */ Method (M802, 3, Serialized) { Name (NUMW, 0x00) /* number of threads in work */ Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) /* Number of threads to be actually in work */ NUMW = M213 (Arg0, 0x05, 0x05) /* Set up per-thread set of mutexes */ M334 (NUMW, C300, 0x00, 0x00, Arg1, Arg2) /* c104 for all first num threads */ M210 (BS00, Arg0, C104, 0x00, NUMW, 0x01, C102) /* cmd: (0-15 levels)/Release(15-0 levels) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* Check up the values of counters of all Mutexes */ Local0 = (NUMW - 0x01) LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { /* lpC0 - Level */ LPN1 = Arg2 LPC1 = Arg1 While (LPN1) { /* lpC1 - Index of mutex */ M333 (LPC0, LPC1, Local0) LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * Example 0 * * arg0 - number of threads * arg1 - Index of mutex * arg2 - Number of mutexes of the same level */ Method (M803, 1, Serialized) { Name (NUMW, 0x00) /* number of threads in work */ Name (LPN0, 0x00) Name (LPC0, 0x00) /* Number of threads to be actually in work */ NUMW = M213 (Arg0, 0x06, 0x06) /* c105 for all first num threads */ M210 (BS00, Arg0, C105, 0x00, NUMW, 0x01, C102) /* cmd: Example 0 */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) } /* * Manage the test m804 * * arg0 - number of threads * arg1 - 0 - thread_2 Releases than thread_1 Releases * non-zero - thread_1 Releases than thread_2 Releases * Thread_1: * arg2 - Level of mutex (initial) * arg3 - Number of levels of mutexes * Thread_2: * arg4 - Level of mutex (initial) * arg5 - Number of levels of mutexes */ Method (M8FF, 6, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (THR, 0x00) /* ACQUIRING */ /* === Thread 1 === */ THR = 0x01 /* Set up per-thread set of mutexes */ M334 (Arg0, C300, Arg2, Arg3, 0x00, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) /* Check up the values of counters of all Mutexes */ LPN0 = Arg3 LPC0 = Arg2 While (LPN0) { M333 (LPC0, 0x00, 0x01) LPN0-- LPC0++ } /* === Thread 2 === */ THR = 0x02 /* Set up per-thread set of mutexes */ M334 (Arg0, C300, Arg4, Arg5, 0x01, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) /* Check up the values of counters of all Mutexes */ LPN0 = Arg5 LPC0 = Arg4 While (LPN0) { M333 (LPC0, 0x01, 0x01) LPN0-- LPC0++ } /* RELEASING */ If (!Arg1) { /* === Thread 2 === */ THR = 0x02 /* Set up per-thread set of mutexes */ M334 (Arg0, C300, Arg4, Arg5, 0x01, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C107) /* cmd: Release specified set of mutexes */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) } /* === Thread 1 === */ THR = 0x01 /* Set up per-thread set of mutexes */ M334 (Arg0, C300, Arg2, Arg3, 0x00, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C107) /* cmd: Release specified set of mutexes */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) If (Arg1) { /* === Thread 2 === */ THR = 0x02 /* Set up per-thread set of mutexes */ M334 (Arg0, C300, Arg4, Arg5, 0x01, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C107) /* cmd: Release specified set of mutexes */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) } } /* * arg0 - number of threads */ Method (M804, 1, NotSerialized) { /* I */ M8FF (Arg0, 0x00, 0x00, MAX0, 0x00, MAX0) /* Reset all counters (cnt0) and flags (fl00) corresponding to all Mutexes */ M330 () /* II */ M8FF (Arg0, 0x01, 0x00, MAX0, 0x00, MAX0) /* Reset all counters (cnt0) and flags (fl00) corresponding to all Mutexes */ M330 () /* III */ M8FF (Arg0, 0x01, 0x07, 0x01, 0x00, MAX0) } /* * arg0 - number of threads */ Method (M805, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (THR, 0x00) Name (EE01, Buffer (Arg0) { 0x00, 0x3F, 0x00 // .?. }) /* AE_AML_NOT_OWNER */ Name (EE02, Buffer (Arg0) { 0x00, 0x00, 0x3F // ..? }) /* AE_AML_NOT_OWNER */ /* 1. Thread_1 owns its set of all-level mutexes and falls into sleeping */ THR = 0x01 /* Set up per-thread set of mutexes */ M334 (Arg0, C300, 0x00, MAX0, 0x00, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) /* Check up the values of counters of all Mutexes */ LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { M333 (LPC0, 0x00, 0x01) LPN0-- LPC0++ } /* 2,3. Thread_2 tries to Release all those mutexes owned by Thread_1 */ THR = 0x02 /* Set up exception expectation on Release operation */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M20F (Arg0, EE02, 0x00) /* Init the exceptional conditions flags (AE_AML_NOT_OWNER) */ /* Set up per-thread set of mutexes */ M334 (Arg0, C300, 0x00, MAX0, 0x00, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C107) /* cmd: Release specified set of mutexes */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) /* Reset exception expectation */ M336 (Arg0, 0x01) /* 4. Thread_2 owns its set of all-level mutexes (not intersecting with Thread_1) */ THR = 0x02 /* Set up per-thread set of mutexes */ M334 (Arg0, C300, 0x00, MAX0, 0x01, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) /* Check up the values of counters of all Mutexes */ LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { M333 (LPC0, 0x00, 0x01) LPN0-- LPC0++ } /* 5,6. Thread_2 tries again to Release mutexes owned by Thread_1 */ THR = 0x02 /* Set up exception expectation on Release operation */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M20F (Arg0, EE02, 0x00) /* Init the exceptional conditions flags (AE_AML_NOT_OWNER) */ /* Set up per-thread set of mutexes */ M334 (Arg0, C300, 0x00, MAX0, 0x00, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C107) /* cmd: Release specified set of mutexes */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) /* Reset exception expectation */ M336 (Arg0, 0x01) /* 7,8. Thread_1 tries to Release mutexes owned by Thread_2 */ THR = 0x01 /* Set up exception expectation on Release operation */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M20F (Arg0, EE01, 0x00) /* Init the exceptional conditions flags (AE_AML_NOT_OWNER) */ /* Set up per-thread set of mutexes */ M334 (Arg0, C300, 0x00, MAX0, 0x01, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C107) /* cmd: Release specified set of mutexes */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) /* Reset exception expectation */ M336 (Arg0, 0x01) /* 9. Thread_1 Releases its mutexes */ THR = 0x01 /* Set up per-thread set of mutexes */ M334 (Arg0, C300, 0x00, MAX0, 0x00, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C107) /* cmd: Release specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) /* 10. Thread_2 Releases its mutexes */ THR = 0x02 /* Set up per-thread set of mutexes */ M334 (Arg0, C300, 0x00, MAX0, 0x01, 0x01) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR, C107) /* cmd: Release specified set of mutexes */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) } /* * arg0 - number of threads (total) */ Method (M806, 1, Serialized) { Name (NUMW, 0x00) /* number of threads in work */ Name (LPN0, 0x00) Name (LPC0, 0x00) Name (NTH0, Buffer (0x02){}) Name (IX00, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x02, 0x01, // ........ /* 0008 */ 0x03, 0x01 // .. }) /* * arg0-arg5 - same as m33f * arg6 - index of thread according to the test scenario */ Method (M000, 7, Serialized) { Name (NTH1, 0x00) /* actually in work */ NTH1 = DerefOf (Arg0 [0x01]) If ((Arg6 < NTH1)) { M33F (Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, 0x00) } } /* Number of threads to be actually in work */ NUMW = M213 (Arg0, MIN1, 0x04) /* Pack numbers of threads */ NTH0 = M20D (Arg0, NUMW) /* Data */ Name (B001, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, // ........ /* 0008 */ 0x00, 0x01 // .. }) Name (B002, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01 // .. }) Name (B003, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x02, 0x01, 0x02, 0x01, 0x00, 0x00, // ........ /* 0008 */ 0x02, 0x01 // .. }) Name (B004, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x03, 0x01, 0x03, 0x01, 0x03, 0x01, // ........ /* 0008 */ 0x00, 0x00 // .. }) Name (CM01, Package (MIN1) { 0x00, C107, 0x00, 0x00, 0x00 }) Name (EE01, Buffer (MIN1) { 0x00, 0x3F, 0x00, 0x00, 0x00 // .?... }) /* AE_AML_NOT_OWNER */ Name (CM02, Package (MIN1) { 0x00, 0x00, C107, 0x00, 0x00 }) Name (EE02, Buffer (MIN1) { 0x00, 0x00, 0x3F, 0x00, 0x00 // ..?.. }) /* AE_AML_NOT_OWNER */ Name (CM03, Package (MIN1) { 0x00, 0x00, 0x00, C107, 0x00 }) Name (EE03, Buffer (MIN1) { 0x00, 0x00, 0x00, 0x3F, 0x00 // ...?. }) /* AE_AML_NOT_OWNER */ Name (CM04, Package (MIN1) { 0x00, 0x00, 0x00, 0x00, C107 }) Name (EE04, Buffer (MIN1) { 0x00, 0x00, 0x00, 0x00, 0x3F // ....? }) /* AE_AML_NOT_OWNER */ /* Acquire */ LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { /* All threads Acquire their mutexes */ M33F (NTH0, C106, 0x00, LPC0, IX00, C106, 0x00) /* Expected hang statuses (buffer/Integer) */ /* 2. Threads thr-2, thr-3, thr-4 attempt to Release mutex of thr-1 */ If ((NUMW > 0x01)) { M000 (NTH0, CM02, EE02, LPC0, B001, CM02, 0x02) M000 (NTH0, CM03, EE03, LPC0, B001, CM03, 0x03) M000 (NTH0, CM04, EE04, LPC0, B001, CM04, 0x04) } /* 3. Threads thr-1, thr-3, thr-4 attempt to Release mutex of thr-2 */ If ((NUMW > 0x02)) { M000 (NTH0, CM01, EE01, LPC0, B002, CM01, 0x01) M000 (NTH0, CM03, EE03, LPC0, B002, CM03, 0x03) M000 (NTH0, CM04, EE04, LPC0, B002, CM04, 0x04) } /* 4. Threads thr-1, thr-2, thr-4 attempt to Release mutex of thr-3 */ If ((NUMW > 0x03)) { M000 (NTH0, CM01, EE01, LPC0, B003, CM01, 0x01) M000 (NTH0, CM02, EE02, LPC0, B003, CM02, 0x02) M000 (NTH0, CM04, EE04, LPC0, B003, CM04, 0x04) } /* 5. Threads thr-1, thr-2, thr-3 attempt to Release mutex of thr-4 */ If ((NUMW > 0x04)) { M000 (NTH0, CM01, EE01, LPC0, B004, CM01, 0x01) M000 (NTH0, CM02, EE02, LPC0, B004, CM02, 0x02) M000 (NTH0, CM03, EE03, LPC0, B004, CM03, 0x03) } /* All threads Release their mutexes */ M33F (NTH0, C107, 0x00, LPC0, IX00, C107, 0x00) /* Expected hang statuses (buffer/Integer) */ LPN0-- LPC0++ } } /* * arg0 - number of threads */ Method (M807, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) Name (IX00, 0x00) Name (NUMW, 0x00) /* number of threads in work */ /* Number of threads to be actually in work */ NUMW = M213 (Arg0, MIN1, 0x03) /* From 15 to 0 */ LPN0 = MAX0 /* \MAX0 */ IX00 = MAX0 /* \MAX0 */ IX00-- LPC0 = IX00 /* \M807.IX00 */ While (LPN0) { If ((LPC0 != 0x00)) { /* * 3. Acquire mutexes from 0 to (N-1) levels: * - Set up per-thread set of mutexes * - Acquire specified set of mutexes * - Wait for all Worker threads * - Check up the values of counters of all Mutexes */ M337 (Arg0, NUMW, 0x00, LPC0, 0x01, 0x00) /* * 4. Release mutexes from 0 to (N-1) levels: * - Set up per-thread set of mutexes * - Release specified set of mutexes * - Wait for all Worker threads */ M338 (Arg0, NUMW, 0x00, LPC0) /* Reset all counters (cnt0) and flags (fl00) corresponding to all Mutexes */ M330 () } /* 5. Acquire mutex of level N */ M337 (Arg0, NUMW, LPC0, 0x01, 0x01, 0x00) If ((LPC0 != 0x00)) { /* * 6. Attempt to Acquire mutexes from 0 to (N-1) levels * 7. Exception is expected */ M337 (Arg0, NUMW, 0x00, LPC0, 0x00, 0x40) /* With exceptional conditions flags (AE_AML_MUTEX_ORDER) */ /* Reset exception expectation */ M336 (Arg0, 0x01) } If ((LPC0 != IX00)) { /* * 8. Acquire mutexes from (N+1) to 15 levels * - Set up per-thread set of mutexes * - Acquire specified set of mutexes * - Wait for all Worker threads * - Check up the values of counters of all Mutexes */ Local0 = (LPC0 + 0x01) Local1 = (IX00 - LPC0) /* \M807.LPC0 */ M337 (Arg0, NUMW, Local0, Local1, 0x01, 0x00) } /* * 9. Release all mutexes (starting with lpC0 up to 15 level): * - Set up per-thread set of mutexes * - Release specified set of mutexes * - Wait for all Worker threads */ Local1 = (MAX0 - LPC0) /* \M807.LPC0 */ M338 (Arg0, NUMW, LPC0, Local1) /* Reset all counters (cnt0) and flags (fl00) corresponding to all Mutexes */ M330 () If ((LPC0 != 0x00)) { /* * 10. Acquire mutexes from 0 to (N-1) levels: * - Set up per-thread set of mutexes * - Acquire specified set of mutexes * - Wait for all Worker threads * - Check up the values of counters of all Mutexes */ M337 (Arg0, NUMW, 0x00, LPC0, 0x01, 0x00) /* * 11. Release mutexes (from 0 to (N-1) levels): * - Set up per-thread set of mutexes * - Release specified set of mutexes * - Wait for all Worker threads */ M338 (Arg0, NUMW, 0x00, LPC0) /* Reset all counters (cnt0) and flags (fl00) corresponding to all Mutexes */ M330 () } LPN0-- LPC0-- } } /* * arg0 - number of threads (total) */ Method (M808, 1, Serialized) { Name (PR, 0x00) Name (L000, 0x00) Name (NTH0, Buffer (0x02){}) /* * Per-thread indexes of mutexes * * Ctl-thr, thr-1, thr-2, thr-3, thr-4 */ Name (B000, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x02, 0x01, // ........ /* 0008 */ 0x03, 0x01 // .. }) Name (B001, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x01, 0x01, 0x02, 0x01, 0x03, 0x01, // ........ /* 0008 */ 0x00, 0x01 // .. }) Name (B002, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x02, 0x01, 0x03, 0x01, 0x00, 0x01, // ........ /* 0008 */ 0x01, 0x01 // .. }) Name (B003, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x03, 0x01, 0x00, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x02, 0x01 // .. }) /* Pack numbers of threads */ NTH0 = M20D (Arg0, MIN1) /* x-0-123 */ /* * Acquire all x-0-123 and check owning * * Threads thr-1, thr-2, thr-3, thr-4 * acquire respectively all x-0-123 mutexes * and check owning of all those mutexes. */ M33F (NTH0, C106, 0x00, L000, B000, C106, 0x00) /* Expected hang statuses (buffer/Integer) */ If (PR) { M20B (0x00, "Acquire all x-0-123") } /* At this point threads have Acquired: x-0-123 */ M8FE (NTH0, L000, B000, B001, PR) M8FE (NTH0, L000, B001, B002, PR) M8FE (NTH0, L000, B002, B003, PR) M8FE (NTH0, L000, B003, B000, PR) /* At this point threads have Acquired: x-0-123 */ /* Release mutexes on all threads */ Name (CM00, Package (MIN1) { 0x00, C107, C107, C107, C107 }) Name (CP00, Package (MIN1) { 0x00, C107, C107, C107, C107 }) M33F (NTH0, CM00, 0x00, L000, B000, CP00, 0x00) /* Expected hang statuses (buffer/Integer) */ If (PR) { M20B (0x00, "Release all") } } /* * Manage the test m808 * * agr0 - numbers of threads (buffer/Integer) * arg1 - levels of mutexes (buffer/Integer) * arg2 - indexes of mutexes (buffer/Integer) - start point * arg3 - indexes of mutexes (buffer/Integer) - target point * arg4 - printing flag */ Method (M8FE, 5, Serialized) { /* * Comments are for one particular transfer step from * x-0-123 to x-1-230, other steps are identical. */ /* At this point threads have Acquired: x-0-123 */ /* x-1-230 */ /* Acquire x-x-230 and check that all -230- hang */ Name (CM00, Package (MIN1) { 0x00, 0x00, C106, C106, C106 }) M33F (Arg0, CM00, 0x00, Arg1, Arg3, 0x00, CM00) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Acquire x-x-230") } /* Release x-0-xxx, this frees mux for thr-4 */ Name (CM01, Package (MIN1) { 0x00, C107, 0x00, 0x00, 0x00 }) Name (CP01, Package (MIN1) { 0x00, C107, 0x00, 0x00, C106 }) Name (HG01, Package (MIN1) { 0x00, 0x00, C106, C106, 0x00 }) M33F (Arg0, CM01, 0x00, Arg1, Arg2, CP01, HG01) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-0-xxx") } /* Acquire x-1-xxx and check that it hangs too */ Name (CM02, Package (MIN1) { 0x00, C106, 0x00, 0x00, 0x00 }) Name (HG02, Package (MIN1) { 0x00, C106, C106, C106, 0x00 }) M33F (Arg0, CM02, 0x00, Arg1, Arg3, 0x00, HG02) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Acquire x-1-xxx") } /* Release x-x-xx3, this frees mux for thr-3 */ Name (CM03, Package (MIN1) { 0x00, 0x00, 0x00, 0x00, C107 }) Name (CP03, Package (MIN1) { 0x00, 0x00, 0x00, C106, C107 }) Name (HG03, Package (MIN1) { 0x00, C106, C106, 0x00, 0x00 }) M33F (Arg0, CM03, 0x00, Arg1, Arg2, CP03, HG03) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-x-xx3") } /* Release x-x-x2x, this frees mux for thr-2 */ Name (CM04, Package (MIN1) { 0x00, 0x00, 0x00, C107, 0x00 }) Name (CP04, Package (MIN1) { 0x00, 0x00, C106, C107, 0x00 }) Name (HG04, Package (MIN1) { 0x00, C106, 0x00, 0x00, 0x00 }) M33F (Arg0, CM04, 0x00, Arg1, Arg2, CP04, HG04) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-x-x2x") } /* Release x-x-1xx, this frees mux for thr-1 */ Name (CM05, Package (MIN1) { 0x00, 0x00, C107, 0x00, 0x00 }) Name (CP05, Package (MIN1) { 0x00, C106, C107, 0x00, 0x00 }) M33F (Arg0, CM05, 0x00, Arg1, Arg2, CP05, 0x00) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-x-1xx") } /* At this point threads have Acquired: x-1-230 */ } /* * arg0 - number of threads (total) */ Method (M809, 1, NotSerialized) { M80C (Arg0, 0x01) } /* * arg0 - number of threads (total) * arg1 - variant (of parameters passed to m8fd): * 0: * arg1 - indexes of mutexes (buffer/Integer) * arg2 - levels of mutexes (buffer/Integer) - start point * arg3 - levels of mutexes (buffer/Integer) - target point * 1: * arg1 - levels of mutexes (buffer/Integer) * arg2 - indexes of mutexes (buffer/Integer) - start point * arg3 - indexes of mutexes (buffer/Integer) - target point */ Method (M80C, 2, Serialized) { Name (PR, 0x00) Name (IXLL, 0x00) Name (NTH0, Buffer (0x02){}) /* * Per-thread indexes/levels (depending on arg1) of mutexes * * Ctl-thr, thr-1, thr-2, thr-3, thr-4 */ Name (B000, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x02, 0x01, // ........ /* 0008 */ 0x03, 0x01 // .. }) Name (B001, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x01, 0x01, 0x02, 0x01, 0x03, 0x01, // ........ /* 0008 */ 0x04, 0x01 // .. }) Name (B002, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x02, 0x01, 0x03, 0x01, 0x04, 0x01, // ........ /* 0008 */ 0x05, 0x01 // .. }) Name (B003, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x03, 0x01, 0x04, 0x01, 0x05, 0x01, // ........ /* 0008 */ 0x06, 0x01 // .. }) Name (B004, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x04, 0x01, 0x05, 0x01, 0x06, 0x01, // ........ /* 0008 */ 0x07, 0x01 // .. }) Name (B005, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x05, 0x01, 0x06, 0x01, 0x07, 0x01, // ........ /* 0008 */ 0x08, 0x01 // .. }) Name (B006, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x06, 0x01, 0x07, 0x01, 0x08, 0x01, // ........ /* 0008 */ 0x09, 0x01 // .. }) Name (B007, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x07, 0x01, 0x08, 0x01, 0x09, 0x01, // ........ /* 0008 */ 0x0A, 0x01 // .. }) Name (B008, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x08, 0x01, 0x09, 0x01, 0x0A, 0x01, // ........ /* 0008 */ 0x0B, 0x01 // .. }) Name (B009, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x09, 0x01, 0x0A, 0x01, 0x0B, 0x01, // ........ /* 0008 */ 0x0C, 0x01 // .. }) Name (B00A, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x0A, 0x01, 0x0B, 0x01, 0x0C, 0x01, // ........ /* 0008 */ 0x0D, 0x01 // .. }) Name (B00B, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x0B, 0x01, 0x0C, 0x01, 0x0D, 0x01, // ........ /* 0008 */ 0x0E, 0x01 // .. }) Name (B00C, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x0C, 0x01, 0x0D, 0x01, 0x0E, 0x01, // ........ /* 0008 */ 0x0F, 0x01 // .. }) If (Arg1) { /* The same level of mutexes */ IXLL = 0x00 } Else { /* The same index of mutexes */ IXLL = 0x00 } /* Pack numbers of threads */ NTH0 = M20D (Arg0, MIN1) /* x-0123 */ /* * x-0-1-2-3 * Acquire all x-0123 and check owning * * Threads thr-1, thr-2, thr-3, thr-4 * acquire respectively all x-0123 mutexes * and check owning of all those mutexes. */ If (Arg1) { Local6 = IXLL /* \M80C.IXLL */ Local7 = B000 /* \M80C.B000 */ } Else { Local6 = B000 /* \M80C.B000 */ Local7 = IXLL /* \M80C.IXLL */ } M33F (NTH0, C106, 0x00, Local6, Local7, C106, 0x00) /* Expected hang statuses (buffer/Integer) */ If (PR) { M20B (0x00, "Acquire all x-0123") } M8FD (NTH0, IXLL, B000, B001, PR, Arg1) M8FD (NTH0, IXLL, B001, B002, PR, Arg1) M8FD (NTH0, IXLL, B002, B003, PR, Arg1) M8FD (NTH0, IXLL, B003, B004, PR, Arg1) M8FD (NTH0, IXLL, B004, B005, PR, Arg1) M8FD (NTH0, IXLL, B005, B006, PR, Arg1) M8FD (NTH0, IXLL, B006, B007, PR, Arg1) M8FD (NTH0, IXLL, B007, B008, PR, Arg1) M8FD (NTH0, IXLL, B008, B009, PR, Arg1) M8FD (NTH0, IXLL, B009, B00A, PR, Arg1) M8FD (NTH0, IXLL, B00A, B00B, PR, Arg1) M8FD (NTH0, IXLL, B00B, B00C, PR, Arg1) /* x-(12)-(13)-(14)-(15), Release=x-(12)(13)(14)(15), hang=x-xxxx, success=x-(12)(13)(14)(15) */ If (Arg1) { Local6 = IXLL /* \M80C.IXLL */ Local7 = B00C /* \M80C.B00C */ } Else { Local6 = B00C /* \M80C.B00C */ Local7 = IXLL /* \M80C.IXLL */ } M33F (NTH0, C107, 0x00, Local6, Local7, C107, 0x00) /* Expected hang statuses (buffer/Integer) */ If (PR) { M20B (0x00, "Release x-(12)(13)(14)(15)") } } /* * arg0 - numbers of threads (buffer/Integer) * arg1 - indexes/levels of mutexes (buffer/Integer) * arg2 - levels/indexes of mutexes (buffer/Integer) - start point * arg3 - levels/indexes of mutexes (buffer/Integer) - target point * arg4 - printing flag * arg5 - variant (see m80c) */ Method (M8FD, 6, Serialized) { /* At this point threads have Acquired: x-0123 */ /* * Comments are given for one particular transfer step * from x-0-123 to x-1-230, other steps are identical. */ /* x-01-12-23-34, Acquire=x-1234, hang=x-123x, success=x-xxx4 */ Name (CM00, Package (MIN1) { 0x00, C106, C106, C106, C106 }) Name (CP00, Package (MIN1) { 0x00, 0x00, 0x00, 0x00, C106 }) Name (HG00, Package (MIN1) { 0x00, C106, C106, C106, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg3 } Else { Local6 = Arg3 Local7 = Arg1 } M33F (Arg0, CM00, 0x00, Local6, Local7, CP00, HG00) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Acquire x-1234") } /* x-01-12-23-3, Release=x-xxx4, hang=x-123x, success=x-xxx4 */ Name (CM01, Package (MIN1) { 0x00, 0x00, 0x00, 0x00, C107 }) Name (CP01, Package (MIN1) { 0x00, 0x00, 0x00, 0x00, C107 }) Name (HG01, Package (MIN1) { 0x00, C106, C106, C106, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg3 } Else { Local6 = Arg3 Local7 = Arg1 } M33F (Arg0, CM01, 0x00, Local6, Local7, CP01, HG01) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-xxx4") } /* x-01-12-23-x, Release=x-xxx3, hang=x-12xx, success=x-xx33 */ Name (CM02, Package (MIN1) { 0x00, 0x00, 0x00, 0x00, C107 }) Name (CP02, Package (MIN1) { 0x00, 0x00, 0x00, C106, C107 }) Name (HG02, Package (MIN1) { 0x00, C106, C106, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg2 } Else { Local6 = Arg2 Local7 = Arg1 } M33F (Arg0, CM02, 0x00, Local6, Local7, CP02, HG02) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-xxx3") } /* x-01-12-23-4, Acquire=x-xxx4, hang=x-12xx, success=x-xxx4 */ Name (CM03, Package (MIN1) { 0x00, 0x00, 0x00, 0x00, C106 }) Name (CP03, Package (MIN1) { 0x00, 0x00, 0x00, 0x00, C106 }) Name (HG03, Package (MIN1) { 0x00, C106, C106, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg3 } Else { Local6 = Arg3 Local7 = Arg1 } M33F (Arg0, CM03, 0x00, Local6, Local7, CP03, HG03) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Acquire x-xxx4") } /* x-01-12-2-4, Release=x-xx3x, hang=x-12xx, success=x-xx3x */ Name (CM05, Package (MIN1) { 0x00, 0x00, 0x00, C107, 0x00 }) Name (CP05, Package (MIN1) { 0x00, 0x00, 0x00, C107, 0x00 }) Name (HG05, Package (MIN1) { 0x00, C106, C106, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg3 } Else { Local6 = Arg3 Local7 = Arg1 } M33F (Arg0, CM05, 0x00, Local6, Local7, CP05, HG05) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-xx3x") } /* x-01-12-x-4, Release=x-xx2x, hang=x-1xxx, success=x-x22x */ Name (CM06, Package (MIN1) { 0x00, 0x00, 0x00, C107, 0x00 }) Name (CP06, Package (MIN1) { 0x00, 0x00, C106, C107, 0x00 }) Name (HG06, Package (MIN1) { 0x00, C106, 0x00, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg2 } Else { Local6 = Arg2 Local7 = Arg1 } M33F (Arg0, CM06, 0x00, Local6, Local7, CP06, HG06) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-xx2x") } /* x-01-12-3-4, Acquire=x-xx3x, hang=x-1xxx, success=x-xx3x */ Name (CM07, Package (MIN1) { 0x00, 0x00, 0x00, C106, 0x00 }) Name (CP07, Package (MIN1) { 0x00, 0x00, 0x00, C106, 0x00 }) Name (HG07, Package (MIN1) { 0x00, C106, 0x00, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg3 } Else { Local6 = Arg3 Local7 = Arg1 } M33F (Arg0, CM07, 0x00, Local6, Local7, CP07, HG07) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Acquire x-xx3x") } /* x-01-1-3-4, Release=x-x2xx, hang=x-1xxx, success=x-x2xx */ Name (CM08, Package (MIN1) { 0x00, 0x00, C107, 0x00, 0x00 }) Name (CP08, Package (MIN1) { 0x00, 0x00, C107, 0x00, 0x00 }) Name (HG08, Package (MIN1) { 0x00, C106, 0x00, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg3 } Else { Local6 = Arg3 Local7 = Arg1 } M33F (Arg0, CM08, 0x00, Local6, Local7, CP08, HG08) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-x2xx") } /* x-01-x-3-4, Release=x-x1xx, hang=x-xxxx, success=x-11xx */ Name (CM09, Package (MIN1) { 0x00, 0x00, C107, 0x00, 0x00 }) Name (CP09, Package (MIN1) { 0x00, C106, C107, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg2 } Else { Local6 = Arg2 Local7 = Arg1 } M33F (Arg0, CM09, 0x00, Local6, Local7, CP09, 0x00) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-x1xx") } /* x-01-2-3-4, Acquire=x-x2xx, hang=x-xxxx, success=x-x2xx */ Name (CM0A, Package (MIN1) { 0x00, 0x00, C106, 0x00, 0x00 }) Name (CP0A, Package (MIN1) { 0x00, 0x00, C106, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg3 } Else { Local6 = Arg3 Local7 = Arg1 } M33F (Arg0, CM0A, 0x00, Local6, Local7, CP0A, 0x00) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Acquire x-x2xx") } /* x-0-2-3-4, Release=x-1xxx, hang=x-xxxx, success=x-1xxx */ Name (CM0B, Package (MIN1) { 0x00, C107, 0x00, 0x00, 0x00 }) Name (CP0B, Package (MIN1) { 0x00, C107, 0x00, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg3 } Else { Local6 = Arg3 Local7 = Arg1 } M33F (Arg0, CM0B, 0x00, Local6, Local7, CP0B, 0x00) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-1xxx") } /* x-x-2-3-4, Release=x-0xxx, hang=x-xxxx, success=x-0xxx */ Name (CM0C, Package (MIN1) { 0x00, C107, 0x00, 0x00, 0x00 }) Name (CP0C, Package (MIN1) { 0x00, C107, 0x00, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg2 } Else { Local6 = Arg2 Local7 = Arg1 } M33F (Arg0, CM0C, 0x00, Local6, Local7, CP0C, 0x00) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Release x-0xxx") } /* x-1-2-3-4, Acquire=x-1xxx, hang=x-xxxx, success=x-1xxx */ Name (CM0D, Package (MIN1) { 0x00, C106, 0x00, 0x00, 0x00 }) Name (CP0D, Package (MIN1) { 0x00, C106, 0x00, 0x00, 0x00 }) If (Arg5) { Local6 = Arg1 Local7 = Arg3 } Else { Local6 = Arg3 Local7 = Arg1 } M33F (Arg0, CM0D, 0x00, Local6, Local7, CP0D, 0x00) /* Expected hang statuses (buffer/Integer) */ If (Arg4) { M20B (0x00, "Acquire x-1xxx") } /* At this point threads have Acquired: x-1234 */ } /* * arg0 - number of threads (total) */ Method (M810, 1, NotSerialized) { M80C (Arg0, 0x00) } /* * arg0 - number of threads (total) */ Method (M811, 1, Serialized) { Name (RPT, 0x04) Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) Name (NTH0, Buffer (0x02){}) Name (IX00, Buffer ((MIN1 * 0x02)) { /* 0000 */ 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x02, 0x01, // ........ /* 0008 */ 0x03, 0x01 // .. }) Name (NUMW, 0x00) /* number of threads in work */ /* Number of threads to be actually in work */ NUMW = M213 (Arg0, MIN1, 0x04) /* Pack numbers of threads */ NTH0 = M20D (Arg0, NUMW) /* Each thread Acquires successfully its mutex N times */ LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { LPN1 = RPT /* \M811.RPT_ */ LPC1 = 0x00 /* Repetition */ While (LPN1) { M33F (NTH0, C106, 0x00, LPC0, IX00, C106, 0x00) /* Expected hang statuses (buffer/Integer) */ LPN1-- LPC1++ } LPN0-- LPC0++ } /* Each thread Releases successfully its mutex N times */ LPN0 = MAX0 /* \MAX0 */ LPC0 = (MAX0 - 0x01) While (LPN0) { LPN1 = RPT /* \M811.RPT_ */ LPC1 = 0x00 /* Repetition */ While (LPN1) { M33F (NTH0, C107, 0x00, LPC0, IX00, C107, 0x00) /* Expected hang statuses (buffer/Integer) */ LPN1-- LPC1++ } LPN0-- LPC0-- } /* * Each thread gets exception AE_AML_MUTEX_NOT_ACQUIRED (65) * on additional Release. */ LPN0 = MAX0 /* \MAX0 */ LPC0 = (MAX0 - 0x01) While (LPN0) { M33F (NTH0, C107, 0x41, LPC0, IX00, C107, 0x00) /* Expected hang statuses (buffer/Integer) */ LPN0-- LPC0-- } } /* * arg0 - number of threads (total) */ Method (M812, 1, Serialized) { Name (RPT, 0x03) /* number of repetition */ Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) Name (LPN1, 0x00) /* index-thread */ Name (LPC1, 0x00) Name (INDT, 0x00) /* index of thread */ Name (LPN2, 0x00) /* repetition */ Name (LPC2, 0x00) Name (LLS0, 0x00) Name (NUM2, 0x00) Name (IXSZ, 0x00) Name (NUMW, 0x00) /* number of threads in work */ Store ((MIN1 * 0x02), IXSZ) /* \M812.IXSZ */ Name (NTH0, Buffer (0x02){}) /* Buffers of indexes of mutexes */ Name (PIXS, Package (MIN1) { 0x00, Buffer (IXSZ) { /* 0000 */ 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, // ........ /* 0008 */ 0x00, 0x01 // .. }, Buffer (IXSZ) { /* 0000 */ 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01 // .. }, Buffer (IXSZ) { /* 0000 */ 0x00, 0x00, 0x02, 0x01, 0x02, 0x01, 0x02, 0x01, // ........ /* 0008 */ 0x02, 0x01 // .. }, Buffer (IXSZ) { /* 0000 */ 0x00, 0x00, 0x03, 0x01, 0x03, 0x01, 0x03, 0x01, // ........ /* 0008 */ 0x03, 0x01 // .. } }) Name (BIXS, Buffer (IXSZ){}) Name (CM00, Buffer (MIN1){}) Name (CP00, Buffer (MIN1){}) Name (HG00, Buffer (MIN1){}) /* * Determine num - number of threads actually in work * * Note: maximum for num is min1 here but it can be diminished * to reduce the time of execution. */ NUMW = M213 (Arg0, MIN1, 0x03) NUM2 = (NUMW - 0x01) /* except the control thread */ /* Pack numbers of threads */ NTH0 = M20D (Arg0, NUMW) /* * Determine lls0 - number of levels to be in work * * Note: maximum for lls0 is max0 here but it can be diminished * to reduce the time of execution. */ If (REDM) { LLS0 = 0x03 } Else { LLS0 = MAX0 /* \MAX0 */ } /* 9. Do 1-8 for all Levels of mutex one by one */ LPN0 = LLS0 /* \M812.LLS0 */ LPC0 = 0x00 While (LPN0) { /* * 8. Do 1-7 for all threads one by one (so, for 0-3 Indexes of mutex as well) */ LPN1 = NUM2 /* \M812.NUM2 */ LPC1 = 0x00 While (LPN1) { INDT = (LPC1 + 0x01) BIXS = DerefOf (PIXS [INDT]) /* 1. Thread thr-i Acquires successfully mutex M0 of (i-1)-th index for N times */ /* c106 for indt-th thread */ M210 (CM00, NUMW, C106, INDT, 0x01, 0x01, 0x00) /* Repetition */ LPN2 = RPT /* \M812.RPT_ */ LPC2 = 0x00 While (LPN2) { M33F (NTH0, CM00, 0x00, LPC0, BIXS, CM00, 0x00) /* Expected hang statuses (buffer/Integer) */ LPN2-- LPC2++ } /* 2. Other threads Acquire M0 too and hang */ /* * c103 for all except indt-th thread * (and except 0-th thread naturally, * not mentioned more below) */ M200 (CM00, NUMW, C103) M208 (CM00, INDT, 0x00) M33F (NTH0, CM00, 0x00, LPC0, BIXS, 0x00, CM00) /* 3. Thread thr-i Acquires successfully mutex M0 for N times again */ /* c106 for indt-th thread */ M210 (CM00, NUMW, C106, INDT, 0x01, 0x01, 0x00) /* c103 for all except indt-th thread */ M200 (HG00, NUMW, C103) M208 (HG00, INDT, 0x00) /* Repetition */ LPN2 = RPT /* \M812.RPT_ */ LPC2 = 0x00 While (LPN2) { M33F (NTH0, CM00, 0x00, LPC0, BIXS, CM00, HG00) LPN2-- LPC2++ } /* 4. Thread thr-i Releases mutex M0 for 2*N times */ /* c107 for indt-th thread */ M210 (CM00, NUMW, C107, INDT, 0x01, 0x01, 0x00) /* c103 for all except indt-th thread */ M200 (HG00, NUMW, C103) M208 (HG00, INDT, 0x00) /* Repetition */ LPN2 = (RPT * 0x02) LPN2-- LPC2 = 0x00 While (LPN2) { M33F (NTH0, CM00, 0x00, LPC0, BIXS, CM00, HG00) LPN2-- LPC2++ } /* * 5. One of other threads (thr-j) owns M0 * 6. Thread thr-j Release M0 * 7. Do 5-6 items for all 'other' threads */ /* c107 for indt-th thread */ M210 (CM00, NUMW, C107, INDT, 0x01, 0x01, 0x00) /* c103 for all except indt-th thread, and c107 for indt-th thread */ M200 (CP00, NUMW, C103) M208 (CP00, INDT, C107) M33F (NTH0, CM00, 0x00, LPC0, BIXS, CP00, 0x00) LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * arg0 - number of threads (total) */ Method (M813, 1, Serialized) { Name (RPT, 0x0100) /* number of repetition */ Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) Name (LPN1, 0x00) /* index-thread */ Name (LPC1, 0x00) Name (INDT, 0x00) /* index of thread */ Name (LPN2, 0x00) /* repetition */ Name (LPC2, 0x00) Name (LLS0, 0x00) /* number of levels */ Name (NUM2, 0x00) Name (IXSZ, 0x00) Name (NUMW, 0x00) /* number of threads in work */ Store ((MIN1 * 0x02), IXSZ) /* \M813.IXSZ */ Name (NTH0, Buffer (0x02){}) /* Buffer of per-thread indexes of mutexes */ Name (IX00, Buffer (IXSZ) { /* 0000 */ 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x02, 0x01, // ........ /* 0008 */ 0x03, 0x01 // .. }) Name (CM00, Buffer (MIN1){}) /* * Determine num - number of threads actually in work * See input control on arg0 (before m813) * * Note: maximum for num is min1 here but it can be diminished * to reduce the time of execution. */ NUMW = M213 (Arg0, 0x03, 0x02) NUM2 = (NUMW - 0x01) /* except the control thread */ /* Pack numbers of threads */ NTH0 = M20D (Arg0, NUMW) /* * Determine lls0 - number of levels to be in work * * Note: maximum for lls0 is max0 here but it can be diminished * to reduce the time of execution. */ If (REDM) { LLS0 = 0x01 } Else { LLS0 = MAX0 /* \MAX0 */ } /* For all Levels of mutex one by one */ LPN0 = LLS0 /* \M813.LLS0 */ LPC0 = 0x00 While (LPN0) { /* For different indexes-threads one by one */ LPN1 = NUM2 /* \M813.NUM2 */ LPC1 = 0x00 While (LPN1) { INDT = (LPC1 + 0x01) /* Thread thr-i Acquires successfully mutex M0 of (i-1)-th index for N times */ /* c106 for indt-th thread */ M210 (CM00, NUMW, C106, INDT, 0x01, 0x01, 0x00) /* Repetition */ LPN2 = RPT /* \M813.RPT_ */ LPC2 = 0x00 While (LPN2) { M33F (NTH0, CM00, 0x00, LPC0, IX00, CM00, 0x00) /* Expected hang statuses (buffer/Integer) */ LPN2-- LPC2++ } /* Thread thr-i Releases mutex M0 for N times */ /* c107 for indt-th thread */ M210 (CM00, NUMW, C107, INDT, 0x01, 0x01, 0x00) /* Repetition */ LPN2 = RPT /* \M813.RPT_ */ LPC2 = 0x00 While (LPN2) { M33F (NTH0, CM00, 0x00, LPC0, IX00, CM00, 0x00) LPN2-- LPC2++ } LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * arg0 - number of threads (total) */ Method (M814, 1, Serialized) { Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) Name (LPN1, 0x00) /* index */ Name (LPC1, 0x00) Name (THR1, 0x00) Name (THR2, 0x00) THR1 = 0x01 THR2 = M115 (Arg0) /* thread with the greatest index */ If ((THR2 >= Arg0)) { Debug = "No alive threads for Test!" Debug = "Test mf14 skipped!" SKIP () Return (Zero) } If ((THR2 <= THR1)) { Debug = "Insufficient number of threads for Test!" Debug = "Test mf14 skipped!" SKIP () Return (Zero) } /* 1. Thread thr-N Acquires all the mutexes on all levels */ /* Set up per-thread set of mutexes */ M334 (Arg0, C300, 0x00, MAX0, 0x00, MIN0) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR2, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* Check up the values of counters of all Mutexes */ LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { LPN1 = MIN0 /* \MIN0 */ LPC1 = 0x00 While (LPN1) { M333 (LPC0, LPC1, 0x01) LPN1-- LPC1++ } LPN0-- LPC0++ } /* * 2. Thread thr-1 tries to Acquire all the same mutexes * and gets FAIL (TimeOutValue is not 0xFFFF). */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M214 (Arg0, Arg0, TOV1) /* TimeOutValue equal to 1 msec */ M20F (Arg0, EX0D, 0x00) /* Init the exceptional conditions flags (FAIL) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* 3. Thread thr-N terminates */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR2, C108) /* cmd: Terminate thread */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* * 4. Thread thr-1 Acquire all those mutexes again * and gets success (TimeOutValue is 0xFFFF) */ /* Sleep, to ensure the thread thr-N terminates */ M206 (0x00, 0xC8) /* * Reset all counters (cnt0) and flags (fl00) corresponding * to all Mutexes which were set up by thread thr-N. */ M330 () M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* 5. Thread thr-1 Releases all mutexes */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, C107) /* cmd: Release specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) } /* * arg0 - number of threads (total) */ Method (M815, 1, Serialized) { Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) Name (LPN1, 0x00) /* index */ Name (LPC1, 0x00) Name (THR1, 0x00) Name (THR2, 0x00) THR1 = 0x01 THR2 = M115 (Arg0) /* thread with the greatest index */ If ((THR2 >= Arg0)) { Debug = "No alive threads for Test!" Debug = "Test mf14 skipped!" SKIP () Return (Zero) } If ((THR2 <= THR1)) { Debug = "Insufficient number of threads for Test!" Debug = "Test mf15 skipped!" SKIP () Return (Zero) } /* 1. Thread thr-N Acquires all the mutexes on all levels */ /* Set up per-thread set of mutexes */ M334 (Arg0, C300, 0x00, MAX0, 0x00, MIN0) M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR2, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* Check up the values of counters of all Mutexes */ LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { LPN1 = MIN0 /* \MIN0 */ LPC1 = 0x00 While (LPN1) { M333 (LPC0, LPC1, 0x01) LPN1-- LPC1++ } LPN0-- LPC0++ } /* * 2. Thread thr-1 tries to Acquire all the same mutexes * and gets FAIL (TimeOutValue is not 0xFFFF). */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M214 (Arg0, Arg0, TOV1) /* TimeOutValue equal to 1 msec */ M20F (Arg0, EX0D, 0x00) /* Init the exceptional conditions flags (FAIL) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* * 3. Thread thr-1 tries to Acquire all the same mutexes * and hang (TimeOutValue is 0xFFFF). */ /* * Reset all counters (cnt0) and flags (fl00) corresponding * to all Mutexes which were set up by thread thr-N. */ M330 () M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, C106) /* cmd: Acquire specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ Name (CP00, Buffer (Arg0){}) Name (HG00, Buffer (Arg0){}) Name (ID00, Buffer (Arg0){}) CopyObject (BS00, CP00) /* \M815.CP00 */ CP00 [THR1] = 0x00 HG00 [THR1] = C106 /* \C106 */ M110 (Arg0, CP00, HG00, ID00) /* * 4. Thread thr-N terminates * 5. Thread thr-1 owns all those mutexes */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR2, C108) /* cmd: Terminate thread */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ Name (CP01, Buffer (Arg0){}) Name (HG01, Buffer (Arg0){}) Name (ID01, Buffer (Arg0){}) BS00 [THR1] = C106 /* thr-1 hangs on c106 */ /* \C106 */ CopyObject (BS00, CP01) /* \M815.CP01 */ M110 (Arg0, CP01, HG01, ID01) /* 6. Thread thr-1 Releases all mutexes */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, C107) /* cmd: Release specified set of mutexes */ M215 (Arg0) /* Reset TimeOutValue and exceptional condition flags */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) } /* * Serialized method to be executed by Worker thread * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (M8FC, 3, Serialized) { If (FLG2) { SE00 (Arg2, ER10, "Error er10") } FLG2 = Arg1 M201 (Arg2, VB03, "Execution of Serialized method started") M206 (Arg2, SL01) /* Sleep */ /* * NOTE: it is a recurcive second call to m101: * * MAIN * mf00 * mf16 * m101 * m8fc * m101 * * So, additional command c101 is needed for it to exit that second call to m101. */ M201 (Arg2, VB03, "Call recursively m101") M101 (Arg0, Arg1, Arg2, 0x01) M206 (Arg2, SL01) /* Sleep */ M201 (Arg2, VB03, "Execution of Serialized method completed") If ((FLG2 != Arg1)) { SE00 (Arg2, ER11, "Error er11") } FLG2 = 0x00 } /* * Non-serialized method to be executed by Worker thread, * use mutex for exclusive access to critical section. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (M8FA, 3, NotSerialized) { Local0 = MA00 (0x00, 0x00, 0xFFFF) If (Local0) { SE00 (Arg2, ER00, "Error er00") } If (FLG2) { SE00 (Arg2, ER10, "Error er10") } FLG2 = Arg1 M201 (Arg2, VB03, "Execution of critical section started") M206 (Arg2, SL01) /* Sleep */ /* * NOTE: it is a recurcive second call to m101: * * MAIN * mf00 * mf16 * m101 * m8fc * m101 * * So, additional command c101 is needed for it to exit that second call to m101. */ M201 (Arg2, VB03, "Call recursively m101") M101 (Arg0, Arg1, Arg2, 0x01) M206 (Arg2, SL01) /* Sleep */ M201 (Arg2, VB03, "Execution of critical section completed") If ((FLG2 != Arg1)) { SE00 (Arg2, ER11, "Error er11") } FLG2 = 0x00 If (!Local0) { MA10 (0x00) } } /* * Non-serialized method to be executed by Worker thread * * non-serialized method is grabbed simultaneously by several threads * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (M8F9, 3, NotSerialized) { /* * Index of one of two threads participating in test is 1 */ If ((Arg2 == 0x01)) { If (FLG2) { SE00 (Arg2, ER12, "Error er12") } Else { FLG2 = Arg2 } } ElseIf (FLG3) { SE00 (Arg2, ER12, "Error er12") } Else { FLG3 = Arg2 } M201 (Arg2, VB03, "Execution of non-serialized method started") M206 (Arg2, SL01) /* Sleep */ /* * NOTE: it is a recurcive second call to m101: * * MAIN * mf00 * mf16 * m101 * m8fc * m101 * * So, additional command c101 is needed for it to exit that second call to m101. */ M201 (Arg2, VB03, "Call recursively m101") M101 (Arg0, Arg1, Arg2, 0x01) M206 (Arg2, SL01) /* Sleep */ M201 (Arg2, VB03, "Execution of non-serialized method completed") If (!FLG2) { SE00 (Arg2, ER12, "Error er12") } If (!FLG3) { SE00 (Arg2, ER13, "Error er13") } } /* * arg0 - number of threads (total) * arg1 - main command for worker thread */ Method (M8FB, 2, Serialized) { Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) Name (LPN1, 0x00) /* index */ Name (LPC1, 0x00) Name (THR1, 0x00) Name (THR2, 0x00) THR1 = 0x01 THR2 = M115 (Arg0) /* thread with the greatest index */ If ((THR2 >= Arg0)) { Debug = "No alive threads for Test!" Debug = "Test mf14 skipped!" SKIP () Return (Zero) } If ((THR2 <= THR1)) { Debug = "Insufficient number of threads for Test!" Debug = "Test mf15 skipped!" SKIP () Return (Zero) } /* * 1. Thread thr-1 invokes method MXXX (by c109/c10a) which allows * exclusive access to the critical section. * Then it calls recursively m101 (infinite loop of worker threads) * so becomes identical to other threads for managing it. */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, Arg1) /* cmd: c109/c10a */ M20F (Arg0, 0x00, 0x00) /* Init (Reset) the exceptional conditions flags (SUCCESS) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* * 2. Thread thr-2 invokes the same method MXXX (by c109/c10a) and hangs * because method MXXX provides exclusive access and is already grabbed by thr-1. */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR2, Arg1) /* cmd: c109/c10a */ M20F (Arg0, 0x00, 0x00) /* Init (Reset) the exceptional conditions flags (SUCCESS) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ Name (CP00, Buffer (Arg0){}) Name (HG00, Buffer (Arg0){}) Name (ID00, Buffer (Arg0){}) CopyObject (BS00, CP00) /* \M8FB.CP00 */ CP00 [THR2] = 0x00 HG00 [THR2] = Arg1 M110 (Arg0, CP00, HG00, ID00) /* * 3. Sleep for all */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ Name (CP01, Buffer (Arg0){}) Name (HG01, Buffer (Arg0){}) Name (ID01, Buffer (Arg0){}) CopyObject (BS00, CP01) /* \M8FB.CP01 */ CP01 [THR2] = 0x00 HG01 [THR2] = Arg1 M110 (Arg0, CP01, HG01, ID01) /* * 4. Thread thr-1 is directed to exit recursive (second) call to m101 * (infinite loop of worker threads). */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, C101) /* cmd: Exit the infinite loop */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ Name (CP02, Buffer (Arg0){}) Name (HG02, Buffer (Arg0){}) Name (ID02, Buffer (Arg0){}) CopyObject (BS00, CP02) /* \M8FB.CP02 */ CP02 [THR2] = 0x00 HG02 [THR2] = Arg1 M110 (Arg0, CP02, HG02, ID02) /* * 5. Thread thr-2 is directed to exit recursive (second) call to m101 * (infinite loop of worker threads). */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR2, C101) /* cmd: Exit the infinite loop */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) } /* * Use Serialized method for exclusive access to critical section * * arg0 - number of threads (total) */ Method (M816, 1, NotSerialized) { M8FB (Arg0, C109) } /* * Use Mutex for exclusive access to critical section, invoke non-Serialized method * * arg0 - number of threads (total) */ Method (M817, 1, NotSerialized) { M8FB (Arg0, C10A) } /* * Non-serialized method is grabbed simultaneously * * arg0 - number of threads (total) */ Method (M818, 1, Serialized) { Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) Name (LPN1, 0x00) /* index */ Name (LPC1, 0x00) Name (THR1, 0x00) Name (THR2, 0x00) FLG2 = 0x00 FLG3 = 0x00 THR1 = 0x01 THR2 = M115 (Arg0) /* thread with the greatest index */ If ((THR2 >= Arg0)) { Debug = "No alive threads for Test!" Debug = "Test mf14 skipped!" SKIP () Return (Zero) } If ((THR2 <= THR1)) { Debug = "Insufficient number of threads for Test!" Debug = "Test mf15 skipped!" SKIP () Return (Zero) } /* * 1. Thread thr-1 invokes non-Serialized method MXXX. * Then it calls recursively m101 (infinite loop of worker threads) * so becomes identical to other threads for managing it. */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, C10B) /* cmd: Invoke non-Serialized method */ M20F (Arg0, 0x00, 0x00) /* Init (Reset) the exceptional conditions flags (SUCCESS) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* * 2. Sleep for all */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M20F (Arg0, 0x00, 0x00) /* Init (Reset) the exceptional conditions flags (SUCCESS) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* * 3. Thread thr-N invokes non-Serialized method MXXX. * Then it calls recursively m101 (infinite loop of worker threads) * so becomes identical to other threads for managing it. */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR2, C10B) /* cmd: Invoke non-Serialized method */ M20F (Arg0, 0x00, 0x00) /* Init (Reset) the exceptional conditions flags (SUCCESS) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* * 4. Sleep for all */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M20F (Arg0, 0x00, 0x00) /* Init (Reset) the exceptional conditions flags (SUCCESS) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) /* * 5. Both threads thr-1 and thr-N are directed to exit recursive (second) calls to m101 * (infinite loops of worker threads). */ M200 (BS00, Arg0, C102) /* cmd: Sleep */ M208 (BS00, THR1, C101) /* cmd: Exit the infinite loop */ M208 (BS00, THR2, C101) /* cmd: Exit the infinite loop */ M20F (Arg0, 0x00, 0x00) /* Init (Reset) the exceptional conditions flags (SUCCESS) */ M114 (Arg0) /* run */ /* Wait for all Worker threads */ M103 (Arg0) If ((FLG2 != THR1)) { ERR (Arg0, Z152, __LINE__, 0x00, 0x00, FLG2, THR1) } If ((FLG3 != THR2)) { ERR (Arg0, Z152, __LINE__, 0x00, 0x00, FLG3, THR2) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/mt_access.asl0000700000175000017500000001265414773714160027042 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Multi access to different type data * * Types: * - Buffer * - Package * * Notations: * * Leading thread - the worker thread #1 which plays in the relevant test * some control role. */ /* Leading thread (thread #1) put there commands for other threads */ Name(b900, Buffer(){0,0,0,0,0,0,0,0}) /* * This buffer is zeroed by the leading thread and then to * be filled by other worker threads, some non-zero respond to * the leading thread. */ Name(b901, Buffer(){0,0,0,0,0,0,0,0}) /* * This buffer is zeroed by the leading thread and then to be * filled by other worker threads when they see that i900 is zero. * * The leading thread uses it to check that all the worker threads * saw zero i900 before to start the next command. */ Name(b902, Buffer(){0,0,0,0,0,0,0,0}) Name(i900, 0) // signal start fulfilling command Name(i901, 0x30) // to do command 0x30 once only Name(c900, 0x31) // /* * Test #. * * Leading thread (thread #1) is a controlling thread other are worker threads here. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method(m900, 1) { if (LGreater(arg0, 8)) { se00(arg2, er06) return } if (LGreaterEqual(arg2, arg0)) { se00(arg2, er06) } if (LEqual(arg2, 1)) { /* Leading thread */ While (1) { if (i901) { Store(0, i901) m200(b900, arg0, 0x30) m200(b901, arg0, 0) Store(1, i900) } m206(arg2, sl01) } } else { While (1) { /* Determine the command for particular thread */ Store(c900, Local0) /* Control thread allows for worker threads to fulfill their commands */ if (i900) { Store(DerefOf(Index(b901, arg2)), Local1) /* This thread doesn't yet fulfill its command */ if (LNot(Local1)) { /* Command to be fulfilled */ Store(DerefOf(Index(b900, arg2)), Local0) } /* Unnecessary */ if (LNot(i900)) { Store(c900, Local0) } } if (LNot(i900)) { Store(DerefOf(Index(b902, arg2)), Local0) if (LNot(Local0)) { /* Any non-zero value */ Store(rs00, Index(b902, arg2)) } } m206(arg2, sl01) } } } /* * Thread 1 waits for all the worker threads to * fulfill the specified for them the buffer of commands. * * arg0 - number of threads * arg1 - flag if to check that all the worker threads saw my zero do00 */ Method(m9ff, 2) { Name(lpN0, 0) Name(lpC0, 0) Name(find, 0) /* * Check that all the worker threads saw my * non-zero do00 and fulfilled the proper command. */ While (1) { Store(0, find) Store(arg0, lpN0) Store(0, lpC0) While (lpN0) { /* For not a Control thread only */ if (LNotEqual(lpC0, 0)) { Store(DerefOf(Index(b900, lpC0)), Local0) Store(DerefOf(Index(b901, lpC0)), Local1) if (LNotEqual(Local0, Local1)) { Store(1, find) break } } Decrement(lpN0) Increment(lpC0) } if (LNot(find)) { break } /* * Don't report about Control thread sleeping - * don't use m206(0, sl00). */ Sleep(sl00) } /* * Check that all the worker threads saw my zero do00 * (if only it is not the EXIT command). * Note: assumed that EXIT command is specified for all * the threads simultaneously, so only. */ if (arg1) { if (fl01) { m109() } else { m200(b902, arg0, 0) } Store(0, do00) While (1) { Store(0, find) if (fl01) { Store(m10a(), find) } else { Store(arg0, lpN0) Store(0, lpC0) While (lpN0) { /* For not a Control thread only */ if (LNotEqual(lpC0, 0)) { Store(DerefOf(Index(b902, lpC0)), Local0) if (LNot(Local0)) { Store(1, find) break } } Decrement(lpN0) Increment(lpC0) } } if (LNot(find)) { break } /* * Don't report about Control thread sleeping - * don't use m206(0, sl00). */ Sleep(sl00) } /* All the worker threads are ready for any next command */ } } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/service.asl0000700000175000017500000003767614773714160026554 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Service routines of common use */ Name (Z153, 0x99) /* * Fill the buffer with the same value * * arg0 - buffer * arg1 - the length of buffer * arg2 - the value */ Method (M200, 3, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { /* For not a Control thread only */ If ((LPC0 != 0x00)) { Arg0 [LPC0] = Arg2 } LPN0-- LPC0++ } } /* * Fill the region of buffer with the same value * * arg0 - buffer * arg1 - the length of buffer * arg2 - the value * * arg3 - start index * arg4 - the length of region to be filled * 0 - everywhere from index to the end of buffer * arg5 - if non-zero than fill the ground value arg6 into the buffer * everywhere outside the specified region * arg6 - the value of ground */ Method (M210, 7, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (SZ01, 0x00) Name (IX02, 0x00) If ((Arg3 >= Arg1)) { ERR ("m210", Z153, __LINE__, 0x00, 0x00, Arg3, Arg1) Return (Zero) } /* Sizes of fields */ If (Arg4) { SZ01 = Arg4 } Else { SZ01 = (Arg1 - Arg3) } IX02 = (Arg3 + SZ01) /* \M210.SZ01 */ If ((IX02 > Arg1)) { ERR ("m210", Z153, __LINE__, 0x00, 0x00, IX02, Arg1) Debug = Arg1 Debug = Arg3 Debug = Arg4 Debug = Arg5 Return (Zero) } If (Arg5) { LPN0 = Arg1 LPC0 = 0x00 } Else { LPN0 = SZ01 /* \M210.SZ01 */ LPC0 = Arg3 } While (LPN0) { If (((LPC0 < Arg3) || (LPC0 >= IX02))) { Local0 = Arg6 } Else { Local0 = Arg2 } Arg0 [LPC0] = Local0 LPN0-- LPC0++ } } /* * Report message of thread * (adds index of thread and reports the message) * * arg0 - Index of current thread * arg1 - s-flag of verbal mode * arg2 - string */ Method (M201, 3, NotSerialized) { If (Arg1) { Concatenate ("THREAD ", Arg0, Local0) Concatenate (Local0, ": ", Local1) Concatenate (Local1, Arg2, Local0) Debug = Local0 } } /* * Report the message conditionally according to the relevant * flag of verbal mode. * * arg0 - Index of current thread * arg1 - mc-flag of verbal mode * arg2 - if do printing actually (or only return flag) * arg3 - message - object to be sent to Debug */ Method (M202, 4, Serialized) { Local0 = 0x00 Switch (Arg1) { Case (0x01) { /* allow only for Control Thread to report */ If (!Arg0) { Local0 = 0x01 } } Case (0x02) { /* allow only for Worker Threads to report */ If (Arg0) { Local0 = 0x01 } } Case (0x03) { /* allow for all threads to report */ Local0 = 0x01 } } If ((Local0 && Arg2)) { Debug = Arg3 } Return (Local0) } /* * Report start of test * * arg0 - name of test * arg1 - number of threads * arg2 - ID of current thread * arg3 - Index of current thread */ Method (M204, 4, NotSerialized) { If (M202 (Arg3, VB01, 0x00, 0x00)) { Concatenate ("Test ", Arg0, Local0) Concatenate (Local0, " started", Local1) Concatenate (Local1, ", threads num ", Local0) Concatenate (Local0, Arg1, Local1) Concatenate (Local1, ", ID of thread ", Local0) Concatenate (Local0, Arg2, Local1) Concatenate (Local1, ", Index of thread ", Local0) Concatenate (Local0, Arg3, Local1) Debug = Local1 } } /* * Fulfill and report Sleep * * arg0 - Index of current thread * arg1 - number of milliseconds to sleep */ Method (M206, 2, NotSerialized) { M201 (Arg0, VB03, "Sleep") /* Increment statistics of Sleep */ If ((VB04 && CTL0)) { M212 (RefOf (P104), Arg0) } Sleep (Arg1) } /* * Fulfill and report Stall * * arg0 - Index of current thread * arg1 - number of MicroSeconds to Stall */ Method (M207, 2, NotSerialized) { M201 (Arg0, VB03, "Stall") Stall (Arg1) } /* * Put the value into i-th element of the buffer * * arg0 - buffer * arg1 - index * arg2 - the value */ Method (M208, 3, NotSerialized) { Arg0 [Arg1] = Arg2 } /* * Set up a sleeping mode * * arg0 - opcode of sleeping mode */ Method (M209, 0, Serialized) { /* Milliseconds to sleep for non-zero slm0 */ Switch (0x00) { Case (0x00) { I100 = 0x0A I101 = 0x0A I102 = 0x0A I103 = 0x0A I104 = 0x0A I105 = 0x0A I106 = 0x0A I107 = 0x0A I108 = 0x0A } Default { I100 = 0x32 I101 = 0x64 I102 = 0xC8 I103 = 0x0190 I104 = 0x01F4 I105 = 0x4B I106 = 0x96 I107 = 0xFA I108 = 0x012C } } } /* * Fill specified elements of buffer with the same value * * arg0 - buffer * arg1 - the length of buffer * arg2 - the value * arg3 - specificator of elements: * Integer - all elements of arg0 * Buffer - for non-zero elements of arg3 only */ Method (M20A, 4, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (SLCT, 0x00) Name (RUN0, 0x00) Local0 = ObjectType (Arg3) If ((Local0 != C009)) { SLCT = 0x01 } LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { RUN0 = 0x01 If (SLCT) { RUN0 = DerefOf (Arg3 [LPC0]) } If (RUN0) { Arg0 [LPC0] = Arg2 } LPN0-- LPC0++ } } /* * Print out all the auxiliary buffers * * arg0 - Index of current thread * arg1 - message */ Method (M20B, 2, NotSerialized) { Concatenate ("Print out the auxiliary buffers (bs00,bs01,bs02) <", Arg1, Local0) Concatenate (Local0, ">", Local1) M201 (Arg0, 0x01, Local1) M201 (Arg0, 0x01, BS00) M201 (Arg0, 0x01, BS01) M201 (Arg0, 0x01, BS02) M201 (Arg0, 0x01, BS03) } /* * Return numbers of threads Buffer * * arg0 - number of threads (total) * arg1 - number of threads (threads actually in work, not extra idle ones) */ Method (M20D, 2, Serialized) { Name (NTH0, Buffer (0x02){}) NTH0 [0x00] = Arg0 NTH0 [0x01] = Arg1 Return (NTH0) /* \M20D.NTH0 */ } /* * Prepare the exceptional conditions flags buffer * * arg0 - number of threads * arg1 - Exceptional conditions flags (buffer/Integer) */ Method (M20E, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Local0 = ObjectType (Arg1) If ((Local0 != C009)) { /* Not Integer */ Return (Arg1) } Name (B000, Buffer (Arg0){}) LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { /* Flag of exceptional condition */ B000 [LPC0] = Arg1 LPN0-- LPC0++ } Return (B000) /* \M20E.B000 */ } /* * Initialize the exceptional conditions flags (p204 & FLG0) * (initialize expectation of exceptions). * * arg0 - number of threads * arg1 - exceptional conditions flags (buffer/Integer) * arg2 - non-zero means to check absence of exception * before and after each operation additionally * to the checking (if any) specified per-operation. */ Method (M20F, 3, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (SLCT, 0x00) Name (EX00, 0x00) Local0 = ObjectType (Arg1) If ((Local0 == C009)) { /* Integer */ EX00 = Arg1 } Else { /* Buffer/Package */ SLCT = 0x01 } LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { If (SLCT) { /* Flag of exceptional condition */ EX00 = DerefOf (Arg1 [LPC0]) } P204 [LPC0] = EX00 /* \M20F.EX00 */ LPN0-- LPC0++ } FLG0 = Arg2 } /* * Initialize the TimeOutValue mapping buffer * * arg0 - number of threads (total) * arg1 - number of threads (threads actually in work) * arg2 - (buffer/Integer) of TimeOutValue */ Method (M214, 3, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (SLCT, 0x00) Name (TOPC, 0x00) Local0 = ObjectType (Arg2) If ((Local0 == C009)) { /* Integer */ TOPC = Arg2 } Else { /* Buffer/Package */ SLCT = 0x01 } LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { If (SLCT) { TOPC = DerefOf (Arg2 [LPC0]) } P205 [LPC0] = TOPC /* \M214.TOPC */ LPN0-- LPC0++ } } /* * Reset TimeOutValue and exceptional conditions flags to default * * arg0 - number of threads (total) */ Method (M215, 1, NotSerialized) { M20F (Arg0, 0x00, 0x00) /* Reset the exceptional conditions flags */ M214 (Arg0, Arg0, TOVF) /* Set TimeOutValue to default */ } /* * Report statistics * * arg0 - number of threads */ Method (M211, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) /* global data not initialized */ If (!GLDI) { Return (Zero) } Debug = "================ Per-thread statistics: ================" Local0 = "Errors scale : " Local1 = " number : " Local2 = "Warnings scale : " Local3 = " number : " Local4 = "Sleep number : " Local5 = "Acquire number : " Local6 = "Release number : " LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { Local7 = DerefOf (P100 [LPC0]) Concatenate (Local0, Local7, Local0) If ((LPN0 != 0x01)) { Concatenate (Local0, ", ", Local0) } Local7 = DerefOf (P101 [LPC0]) Concatenate (Local1, Local7, Local1) If ((LPN0 != 0x01)) { Concatenate (Local1, ", ", Local1) } Local7 = DerefOf (P102 [LPC0]) Concatenate (Local2, Local7, Local2) If ((LPN0 != 0x01)) { Concatenate (Local2, ", ", Local2) } Local7 = DerefOf (P103 [LPC0]) Concatenate (Local3, Local7, Local3) If ((LPN0 != 0x01)) { Concatenate (Local3, ", ", Local3) } Local7 = DerefOf (P104 [LPC0]) Concatenate (Local4, Local7, Local4) If ((LPN0 != 0x01)) { Concatenate (Local4, ", ", Local4) } Local7 = DerefOf (P105 [LPC0]) Concatenate (Local5, Local7, Local5) If ((LPN0 != 0x01)) { Concatenate (Local5, ", ", Local5) } Local7 = DerefOf (P106 [LPC0]) Concatenate (Local6, Local7, Local6) If ((LPN0 != 0x01)) { Concatenate (Local6, ", ", Local6) } LPN0-- LPC0++ } Debug = Local0 Debug = Local1 Debug = Local2 Debug = Local3 Debug = Local4 Debug = Local5 Debug = Local6 Concatenate ("Exceptions total : ", EX10, Debug) Debug = "========================================================" } /* * Increment element of Package * * arg0 - RefOf of Package * arg1 - index of element */ Method (M212, 2, NotSerialized) { Local0 = DerefOf (DerefOf (Arg0) [Arg1]) Local0++ DerefOf (Arg0) [Arg1] = Local0 } /* * Return the number of threads to be the number of threads actually in work * (including Control thread). * Should be not less than 3. * * Note: to be provided that arg0 is not less than the test needs * to perform effective checking according to its scenario. * * arg0 - number of threads (total) * arg1 - maximal number of threads according to scenario of test (including Control thread) * arg2 - if non-zero, then the number of treads to be actually in work in reduced mode (including Control thread) */ Method (M213, 3, Serialized) { Name (NUM, 0x00) NUM = Arg0 If (Arg1) { NUM = Arg1 } If (REDM) { If (Arg2) { NUM = Arg2 } } If ((Arg0 < NUM)) { NUM = Arg0 } Return (NUM) /* \M213.NUM_ */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/common.asl0000700000175000017500000011365014773714160026367 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * SEE: * ??????????? Multi-threading common definitions * see: see structure and the name of this file also later !!!!!!!!!!!!!! * ?????????????????????????????????????????????????????????????????????? * * * NOTIONS and NOTATIONS: * * ID and Index of thread: * * each thread is identified by its ID (delivered from the underlying system) * and its calculated unique index between all the threads participating in * the test. * * Control Thread - the thread with index equal to 0 * Worker Threads - all other threads with the non-zero index * * Number of threads (total) - * the value passed to AcpiExec Threads command * as a number of threads parameter. * * Number of threads actually in work - * number of threads actually participating the relevant test. * Note: this value includes the Control Thread too. */ Name (Z147, 0x93) /* * Common data of threads * * Usage: * * command line: Threads 6 1 MAIN * 6 - number of threads, it can be greater or less than 6 * * redm - set it to zero to reduce the run time * vb00-vb06 - use them to suppress the output * * FLG1 - the _TCI-based Initialization of multithreading interconnection * (run command TCI_CMD_GET_ID_OF_THREADS to determine indexes of threads) */ /* * Flags */ Name (CTL0, 0x00) /* the Control thread is ready */ Name (REDM, 0x01) /* run tests in reduced mode */ Name (GLDI, 0x00) /* global data initialized */ /* * Simple switch of the verbal mode * * 0 - silent * otherwise - allow * * s-flags (defaults are given in comment (0/1)) */ Name (VB00, 0x00) /* (0) common messages */ Name (VB02, 0x01) /* (1) trace Control thread */ Name (VB03, 0x00) /* (0) trace Worker threads */ Name (VB04, 0x01) /* (1) report statistics */ Name (VB05, 0x00) /* (0) report warnings by worker-threads */ Name (VB06, 0x01) /* (1) report errors by worker-threads */ /* * Multi-conditional switches of the verbal mode * * 0 - silent * 1 - allow only for Control Thread to report * 2 - allow only for Worker Threads to report * 3 - allow for all threads to report * * mc-flags */ Name (VB01, 0x01) /* header of test */ /* Sleep mode */ Name (SL00, 0x32) /* Default milliseconds to sleep for Control thread */ Name (SL01, 0x32) /* Default milliseconds to sleep for Worker threads */ /* * Default milliseconds to sleep for Control thread * before to check hang status of worker threads on * operations. */ Name (SL02, 0x01F4) /* How many times maximum to repeat sl02 sleeping */ Name (SL03, 0x01) Name (SLM0, 0x00) /* Sleeping mode for worker threads */ /* Milliseconds to sleep for non-zero slm0 */ Name (I100, 0x32) Name (I101, 0x64) Name (I102, 0xC8) Name (I103, 0x0190) Name (I104, 0x01F4) Name (I105, 0x4B) Name (I106, 0x96) Name (I107, 0xFA) Name (I108, 0x012C) /* Commands for workers */ Name (C100, 0xF0) /* Idle thread */ Name (C101, 0xF1) /* Exit the infinite loop */ Name (C102, 0xF2) /* Sleep for the specified number of Milliseconds */ Name (C103, 0xF3) /* Acquire/Sleep/Release */ Name (C104, 0xF4) /* (0-15 levels)/Release(15-0 levels) */ Name (C105, 0xF5) /* Example 0 */ Name (C106, 0xF6) /* Acquire specified set of mutexes */ Name (C107, 0xF7) /* Release specified set of mutexes */ Name (C108, 0xF8) /* Terminate thread */ Name (C109, 0xF9) /* Invoke Serialized method */ Name (C10A, 0xFA) /* Invoke non-Serialized method, use Mutex for exclusive access to critical section */ Name (C10B, 0xFB) /* Non-serialized method is grabbed simultaneously */ /* Responds of worker threads (not intersect with 'Commands for workers') */ Name (RS00, 0x97) /* "I see zero do00" */ /* Common use strategies provided by the Control thread */ Name (CM01, 0x01) /* all workers to exit the infinite loop */ Name (CM02, 0x02) /* all workers to sleep for the specified period */ /* * This buffer is to be filled by the control thread. * It is filed with the commands to be fulfilled by the * worker threads. * * The thread of i-th index takes the command from the * i-th element of Buffer. * * It is read-only for worker threads. */ Name (BS00, Buffer (0x01) { 0x00 // . }) /* * This buffer is zeroed by the control thread and then to be * filled by the worker threads with the commands they have been * fulfilled. */ Name (BS01, Buffer (0x01) { 0x00 // . }) /* * This buffer is zeroed by the control thread and then to be * filled by the worker threads when they see that do00 is zero. * * The control thread uses it to check that all the worker threads * saw zero do00 (are idle) before to start the next command. */ Name (BS02, Buffer (0x01) { 0x00 // . }) /* * This buffer is zeroed by the control thread and then to * be filled by the idle worker threads. */ Name (BS03, Buffer (0x01) { 0x00 // . }) /* * This buffer is zeroed by the control thread and then to be * set up by the worker threads when they complete. */ Name (BS04, Buffer (0x01) { 0x00 // . }) /* * p10X - statistics */ /* * These package are zeroed by the control thread, * the worker threads accumulate there: * - errors * - number of errors * - warnings * - number of warnings */ Name (P100, Package (0x01) { 0x00 }) /* scale of errors */ Name (P101, Package (0x01) { 0x00 }) /* number of errors */ Name (P102, Package (0x01) { 0x00 }) /* scale of warnings */ Name (P103, Package (0x01) { 0x00 }) /* number of warnings */ /* Command statistics */ Name (P104, Package (0x01) { 0x00 }) /* number of Sleep */ Name (P105, Package (0x01) { 0x00 }) /* number of Acquire */ Name (P106, Package (0x01) { 0x00 }) /* number of Release */ /* * To be filled by the control thread, * non-zero enables to fulfill the commands specified by bs00. */ Name (DO00, 0x00) /* Opcodes of errors reported by worker threads */ Name (ER00, 0x01) /* Acquire failed */ Name (ER01, 0x02) /* Flag of mutex is already non-zero (set up by some thread(s)) */ Name (ER02, 0x04) /* Invalid flag of mutex (changed by other thread while this one owned that mutex) */ Name (ER03, 0x08) /* Unexpected exception */ Name (ER04, 0x10) /* Improper exception (no exception, or unexpected opcode, or more than one exception) */ Name (ER05, 0x20) /* Invalid command */ Name (ER06, 0x40) /* Invalid Index of current thread */ Name (ER07, 0x80) /* Too big Index of current thread */ Name (ER08, 0x0100) /* Invalid counter of mutex owning */ Name (ER09, 0x0200) /* Acquire returned zero but FAIL expected */ Name (ER10, 0x0400) /* Serialized method doesn't provide exclusive call */ Name (ER11, 0x0800) /* Serialized method doesn't provide exclusive call */ Name (ER12, 0x1000) /* Non-serialized method thr-1 didn't get into method */ Name (ER13, 0x2000) /* Non-serialized method thr-N didn't get into method */ /* Opcodes of warnings reported by worker threads */ Name (WN00, 0x01) /* Acquire repeatedly the same mutex by thread which already owns it */ /* * These packages are to be filled by the control thread. * They are filed with the arguments of commands specified * for the worker threads. * * The thread of i-th index takes the arguments from the * i-th elements of Packages. * * These are read-only for worker threads. * * For Acquire/Release: * * p200 - starting level of mutex * p201 - number of Levels of mutexes * p202 - starting index of mutex (on the specified level) * p203 - number of mutexes of the same level * p204 - exceptional conditions * p205 - opcode of TimeOutValue (see comment to ma00) */ Name (P200, Package (0x01) { 0x00 }) Name (P201, Package (0x01) { 0x00 }) Name (P202, Package (0x01) { 0x00 }) Name (P203, Package (0x01) { 0x00 }) Name (P204, Package (0x01) { 0x00 }) Name (P205, Package (0x01) { 0x00 }) /* Exceptions total number */ Name (EX10, 0x00) /* * p30X - Current state */ Name (P300, Package (0x01) { 0x00 }) /* scale of errors */ Name (P301, Package (0x01) { 0x00 }) /* scale of warnings */ /* * Non-zero means to check absence of exception * before and after each operation additionally * to the checking (if any) specified per-operation. */ Name (FLG0, 0x00) /* * Handle exceptions * * Exceptional condition flag: * * EX0D - FAIL expected * EX0E - check for "no exception" * otherwise - opcode of exception expected */ /* * The _TCI-based Initialization of multithreading interconnection * (run command TCI_CMD_GET_ID_OF_THREADS to determine indexes of threads). * * Note: now when arguments (arg0, arg1, arg2) are determined * by Threads command of AcpiExec and passed to test, it * is unnecessary to do "The _TCI-based Initialization of * multithreading interconnection" below. Used temporary. */ Name (FLG1, 0x00) /* * Variables used by particular tests * * FLG2, * FLG3 * 1) To show that Serialized method is grabbed exclusively * 2) To show that non-Serialized method is grabbed by two threads simultaneously */ Name (FLG2, 0x00) Name (FLG3, 0x00) /* * The Control Thread manages and controls the specified testing strategy * to be fulfilled by the Worker Threads. * * arg0 - number of threads * arg1 - ID of current thread (0, can be used for control only) * arg2 - Index of current thread * arg3 - cammand - index of the test strategy to be * managed and controlled by the Control Thread * and fulfilled by the Worker Threads (Workers). * * Arguments of the command arg3: * * arg4 * arg5 * arg6 */ Method (M100, 7, Serialized) { /* Prohibits activity of all the worker threads */ Switch (Arg3) { Case (0x01) { /* CM01: All workers to exit the infinite loop */ M10C (Arg0) } Case (0x02) { /* CM02: All workers to sleep for the specified period */ M10D (Arg0) } } } /* * Open testing - init interaction data * * arg0 - number of threads */ Method (M102, 1, Serialized) { Name (B000, Buffer (Arg0){}) Name (P000, Package (Arg0){}) Name (LPN0, 0x00) Name (LPC0, 0x00) DO00 = 0x00 CopyObject (B000, BS00) /* \BS00 */ CopyObject (B000, BS01) /* \BS01 */ CopyObject (B000, BS02) /* \BS02 */ CopyObject (B000, BS03) /* \BS03 */ CopyObject (P000, P200) /* \P200 */ CopyObject (P000, P201) /* \P201 */ CopyObject (P000, P202) /* \P202 */ CopyObject (P000, P203) /* \P203 */ CopyObject (P000, P204) /* \P204 */ CopyObject (P000, P205) /* \P205 */ CopyObject (P000, P300) /* \P300 */ CopyObject (P000, P301) /* \P301 */ LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { P300 [LPC0] = 0x00 P301 [LPC0] = 0x00 LPN0-- LPC0++ } /* * Initialization to be done once */ If (!GLDI) { /* Statistics */ CopyObject (P000, P100) /* \P100 */ CopyObject (P000, P101) /* \P101 */ CopyObject (P000, P102) /* \P102 */ CopyObject (P000, P103) /* \P103 */ CopyObject (P000, P104) /* \P104 */ CopyObject (P000, P105) /* \P105 */ CopyObject (P000, P106) /* \P106 */ CopyObject (B000, BS04) /* \BS04 */ LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { P100 [LPC0] = 0x00 P101 [LPC0] = 0x00 P102 [LPC0] = 0x00 P103 [LPC0] = 0x00 P104 [LPC0] = 0x00 P105 [LPC0] = 0x00 P106 [LPC0] = 0x00 LPN0-- LPC0++ } } /* Init fl01 */ M339 () /* * Reset all counters (cnt0) and flags (fl00) * corresponding to all Mutexes. */ M330 () /* Report that the Control thread is ready */ CTL0 = 0x01 GLDI = 0x01 } /* * Control thread waits for all the worker threads to * fulfill the specified for them buffer of commands. * * arg0 - number of threads */ Method (M103, 1, Serialized) { /* Wait for all Worker threads and check their statuses */ Name (B000, Buffer (Arg0){}) Name (B001, Buffer (Arg0){}) Name (B002, Buffer (Arg0){}) CopyObject (BS00, B000) /* \M103.B000 */ M110 (Arg0, B000, B001, B002) } /* * The _TCI-based initialization of multithreading interconnection * * In result each thread knows its ID and calculated its index * between all threads participating in the test. * * arg0 - number of threads * * Return: * success - II-Package * otherwise - 0 */ Method (M104, 1, NotSerialized) { /* * Local0 - array of thread IDs * Local1 - auxiliary * Local2 - auxiliary * Local7 - II-Package */ If (VB00) { Debug = "Checking for the Test Command Interface with the ACPICA (_TCI) support" } If (!M3A5 ()) { Debug = "The Test Command Interface with the ACPICA (_TCI) is not supported" Return (0x00) } If (VB00) { Debug = "Getting array of thread IDs" } Local0 = M163 (Arg0) Local1 = ObjectType (Local0) If ((Local1 != C00C)) { Debug = "Failed to get array of thread indexes" Return (0x00) } If (VB00) { Debug = "Calculating index of thread" } Local7 = M105 (Local0, Arg0) Local2 = ObjectType (Local7) If ((Local2 != C00C)) { Debug = "Invalid contents of Package of threads" Return (0x00) } Return (Local7) } /* * Calculate and return II-Package with Index of current thread between * all threads participating in the test and ID of that thread. * * arg0 - the Package of thread IDs returned by m163 which * executes the command TCI_CMD_GET_ID_OF_THREADS. * arg1 - number of threads * * Return: * II-Package in success: * 0-th element - ID of that current thread * 1-th element - Index of current thread between all threads participating in test * Integer otherwise: * 0 */ Method (M105, 2, NotSerialized) { /* * Local0 - auxiliary * Local1 - auxiliary * Local2 - lpN0 * Local3 - lpC0 * Local4 - TCI_PACKAGE_THR_NUM * Local5 - TCI_PACKAGE_THR_NUM_REAL * Local6 - TCI_PACKAGE_THR_ID (ID of thread) * Local7 - Index of thread */ Local7 = FF32 /* \FF32 */ /* Store(arg0, Debug) */ Local4 = DerefOf (Arg0 [C22C]) /* TCI_PACKAGE_THR_NUM */ If (!Local4) { Debug = "TCI_PACKAGE_THR_NUM is zero" Return (0x00) } Local5 = DerefOf (Arg0 [C22D]) /* TCI_PACKAGE_THR_NUM_REAL */ If (!Local5) { Debug = "TCI_PACKAGE_THR_NUM_REAL is zero" Return (0x00) } Local6 = DerefOf (Arg0 [C22E]) /* TCI_PACKAGE_THR_ID */ If (!Local6) { Debug = "TCI_PACKAGE_THR_ID is zero" Return (0x00) } If ((Local4 != Local5)) { Debug = "TCI_PACKAGE_THR_NUM != TCI_PACKAGE_THR_NUM_REAL" Debug = Local4 Debug = Local5 Return (0x00) } If ((Local4 != Arg1)) { Debug = "TCI_PACKAGE_THR_NUM != Number of threads" Debug = Local4 Debug = Arg1 Return (0x00) } /* Calculate index of thread */ Local2 = Arg1 Local3 = 0x00 Local0 = C22F /* \C22F */ While (Local2) { Local1 = DerefOf (Arg0 [Local0]) If (!Local1) { Debug = "thread ID is zero" Return (0x00) } ElseIf ((Local1 == Local6)) { If ((Local7 != FF32)) { Debug = "thread ID encountered twice" Return (0x00) } Local7 = Local3 } Local0++ Local2-- Local3++ } /* Return Package: Index of current thread, ID of current thread */ Local0 = Package (0x02){} Local0 [0x00] = Local6 Local0 [0x01] = Local7 Return (Local0) } /* * Report errors detected by the worker threads * * arg0 - name of test * arg1 - number of threads */ Method (M106, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { Local0 = DerefOf (P300 [LPC0]) If (Local0) { /* * Reports: * lpC0 - Index of thread * Local0 - the scale of its errors */ ERR (Arg0, Z147, __LINE__, 0x00, 0x00, LPC0, Local0) } LPN0-- LPC0++ } } /* * Initialization of multithreading interconnection * * Note: now when arguments (arg0, arg1, arg2) are determined * by Threads command of AcpiExec and passed to test, it * is unnecessary to do "The _TCI-based Initialization of * multithreading interconnection" below. Used temporary. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread * arg3 - minimal number of threads needed for test */ Method (M107, 4, NotSerialized) { /* Set the multi-threading mode flag */ SET3 (0x01) /* * Local0 - auxiliary * Local1 - auxiliary * Local6 - ID of thread * Local7 - Index of thread */ /* The _TCI-based Initialization of multithreading interconnection */ If (FLG1) { Local0 = M104 (Arg0) Local1 = ObjectType (Local0) If ((Local1 != C00C)) { ERR ("m107", Z147, __LINE__, 0x00, 0x00, Local1, C00C) Return (0x00) } /* Get ID and Index of current thread */ Local6 = DerefOf (Local0 [0x00]) Local7 = DerefOf (Local0 [0x01]) If ((Local6 != Arg1)) { ERR ("m107", Z147, __LINE__, 0x00, 0x00, Local6, Arg1) Return (0x00) } If ((Local7 != Arg2)) { ERR ("m107", Z147, __LINE__, 0x00, 0x00, Local7, Arg2) Return (0x00) } } If (((Arg0 < 0x02) || (Arg0 < Arg3))) { Debug = "Insufficient number of threads for Test!" Return (0x00) } Return (0x01) } /* * Close testing * * arg0 - name of test * arg1 - number of threads * arg2 - ID of current thread * arg3 - Index of current thread */ Method (M108, 4, NotSerialized) { /* all workers to exit the infinite loop */ M100 (Arg1, Arg2, Arg3, CM01, 0x00, 0x00, 0x00) /* Report errors detected by the worker threads */ M106 (Arg0, Arg1) } /* * CM01: all workers to exit the infinite loop * * arg0 - number of threads */ Method (M10C, 1, Serialized) { /* All workers to exit the infinite loop */ M200 (BS00, Arg0, C101) /* cmd: Exit the infinite loop */ M114 (Arg0) /* Wait for all Worker threads */ Name (B000, Buffer (Arg0){}) Name (B001, Buffer (Arg0){}) Name (B002, Buffer (Arg0){}) CopyObject (BS00, B000) /* \M10C.B000 */ M110 (Arg0, B000, B001, B002) } /* * CM02: all workers to sleep for the specified period * * arg0 - number of threads */ Method (M10D, 1, NotSerialized) { /* All workers to sleep for the specified period */ M200 (BS00, Arg0, C102) /* cmd: Sleep for the specified number of Milliseconds */ M114 (Arg0) /* Wait for all Worker threads */ M103 (Arg0) } /* * Control thread checks that the specified set of worker threads * hang on the specified operations or completed the operations. * * arg0 - number of threads * arg1 - buffer of arg0 length * 1 - check completion of operation * 2 - check hang * * Return: * These mean unexpected behaviour: * 0x01 - some threads has not completed operation * 0x02 - some threads are not hang on operation * These report the contents of buffer: * 0x10 - has checkings of completed operation * 0x20 - has checkings of hang on operation */ Method (M10E, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (RVAL, 0x00) LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { /* For not a Control thread only */ If ((LPC0 != 0x00)) { Local0 = DerefOf (Arg1 [LPC0]) Local1 = DerefOf (BS01 [LPC0]) If ((Local0 == 0x01)) { /* check completion of operation */ RVAL |= 0x10 If (!Local1) { RVAL |= 0x01 } } ElseIf ((Local0 == 0x02)) { /* check hang */ RVAL |= 0x20 If (Local1) { RVAL |= 0x02 } } } LPN0-- LPC0++ } Return (RVAL) /* \M10E.RVAL */ } /* * Run and analyze result of m10e() * * arg0, * arg1 - see m10e */ Method (M10F, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (RVAL, 0x00) LPN0 = SL03 /* \SL03 */ LPC0 = 0x00 While (LPN0) { Sleep (SL02) RVAL = M10E (Arg0, Arg1) If (!(RVAL & 0x20)) { /* doesn't have checkings of hang */ If (!(RVAL & 0x01)) { /* all examined have completed */ Break } } LPN0-- LPC0++ } Return (RVAL) /* \M10F.RVAL */ } /* * Control thread waits for all the worker threads to * fulfill the specified for them buffer of commands. * * arg0 - number of threads (total) * arg1 - the per-thread expectations of completion status mapping buffer * arg2 - the per-thread expectations of hang status mapping buffer * arg3 - the per-thread expectations of idle status mapping buffer */ Method (M110, 4, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (FIND, 0x00) Name (SL80, 0x00) Name (SL81, 0x00) Name (CMD0, 0x00) Name (HNG0, 0x00) Name (IDL0, 0x00) Name (QUIT, 0x00) /* * Check that all the worker threads saw my * non-zero do00 and fulfilled the proper command. */ While (0x01) { FIND = 0x00 LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { /* For not a Control thread only */ If ((LPC0 != 0x00)) { CMD0 = DerefOf (Arg1 [LPC0]) HNG0 = DerefOf (Arg2 [LPC0]) IDL0 = DerefOf (Arg3 [LPC0]) Local0 = DerefOf (BS00 [LPC0]) Local1 = DerefOf (BS01 [LPC0]) Local2 = DerefOf (BS03 [LPC0]) Local3 = DerefOf (BS04 [LPC0]) /* terminated threads */ If (Local3){ /* Thread already completed by c108 */ } ElseIf (CMD0) { If ((Local0 != CMD0)) { ERR ("m110", Z147, __LINE__, 0x00, 0x00, Local0, CMD0) Debug = LPC0 /* \M110.LPC0 */ } If (!Local1) { /* Not completed yet */ FIND = 0x01 Break } ElseIf ((Local1 != Local0)) { /* Has executed unexpected command */ ERR ("m110", Z147, __LINE__, 0x00, 0x00, Local1, Local0) Debug = LPC0 /* \M110.LPC0 */ } } ElseIf (HNG0) { SL81 = 0x01 If ((SL80 < SL03)) { /* * Delay here is some pure attempt to be objective - * it can look like hang now but go just after this * checking. */ SL80++ Sleep (SL02) } Local4 = DerefOf (BS01 [LPC0]) If (Local4) { /* Doesn't hang */ If ((Local4 != Local0)) { /* Has executed unexpected command */ ERR ("m110", Z147, __LINE__, 0x00, 0x00, Local1, Local0) Debug = LPC0 /* \M110.LPC0 */ } ERR ("m110", Z147, __LINE__, 0x00, 0x00, Local0, Local4) Debug = LPC0 /* \M110.LPC0 */ } } ElseIf (IDL0) { If ((Local0 != C100)) { ERR ("m110", Z147, __LINE__, 0x00, 0x00, Local0, CMD0) Debug = LPC0 /* \M110.LPC0 */ } If (!Local2) { /* Not completed yet */ FIND = 0x01 Break } ElseIf ((Local2 != C100)) { /* Has executed unexpected command */ ERR ("m110", Z147, __LINE__, 0x00, 0x00, Local0, CMD0) Debug = LPC0 /* \M110.LPC0 */ } } Else { ERR ("m110", Z147, __LINE__, 0x00, 0x00, LPC0, Local0) Debug = LPC0 /* \M110.LPC0 */ } } LPN0-- LPC0++ } QUIT = 0x00 If (!FIND) { QUIT = 0x01 /* * All threads except those being checked for hang status * have completed their commands. */ If (SL81) { /* Has threads to check hang status */ If ((SL80 < SL03)) { /* Not completed yet the specified delay */ QUIT = 0x00 } } } If (QUIT) { Break } /* * Don't report about Control thread sleeping - * don't use m206(0, sl00). */ Sleep (SL00) } /* * Set do00 to zero and check that all the worker threads * saw my zero do00 (if only it is not the EXIT command). */ M200 (BS02, Arg0, 0x00) DO00 = 0x00 While (0x01) { FIND = 0x00 LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { /* For not a Control thread only */ If ((LPC0 != 0x00)) { /* * Reset the specified command for each thread * which in fact doesn't hang. */ Local0 = DerefOf (BS02 [LPC0]) If (Local0) { /* Alive, doesn't hang, so reset its command */ BS00 [LPC0] = C100 /* \C100 */ BS01 [LPC0] = 0x00 } /* * For all threads except those being checked for * hang status and completed already. */ HNG0 = DerefOf (Arg2 [LPC0]) Local0 = DerefOf (BS04 [LPC0]) If ((!HNG0 && !Local0)) { Local0 = DerefOf (BS02 [LPC0]) If (!Local0) { FIND = 0x01 Break } } } LPN0-- LPC0++ } /* * All threads except those being checked for hang status * have zeroed do00. */ If (!FIND) { Break } /* * Don't report about Control thread sleeping - * don't use m206(0, sl00). */ Sleep (SL00) } /* All the worker threads are ready for any next command */ } /* * Check absence of exception * * arg0 - ID of current thread * arg1 - Index of current thread * arg2 - exceptional condition flag * arg3 - the name of operation * * Return opcode of exception to be generated or zero */ Method (M111, 4, Serialized) { If ((FLG0 || Arg2)) { Local0 = CH08 ("m111", Arg0, Z147, 0x0C, 0x00, 0x00) If (Local0) { SE00 (Arg1, ER03, "Error er03") } } /* Analyze opcode of exception to be generated */ Switch (Arg2) { Case (0x00) { Local0 = 0x00 } Case (0xFE) { /* EX0E - check "no exception" */ Local0 = 0x00 } Case (0xFD) { /* EX0D - FAIL expected */ Local0 = Arg2 Concatenate (Arg3, ", generating FAIL condition ", Local1) M201 (Arg1, VB03, Local1) } Default { Local0 = Arg2 Concatenate (Arg3, ", generating exceptional condition ", Local1) Concatenate (Local1, Local0, Local1) M201 (Arg1, VB03, Local1) } } Return (Local0) } /* * Check exception * * arg0 - ID of current thread * arg1 - Index of current thread * arg2 - exceptional condition flag * arg3 - return code of operation */ Method (M112, 4, NotSerialized) { Local2 = 0x00 If ((Arg2 == EX0E)) { /* check "no exception" */ Local0 = CH08 ("m112", Arg0, Z147, 0x0D, 0x00, 0x00) If (Local0) { SE00 (Arg1, ER03, "Error er03") } } ElseIf ((Arg2 == EX0D)) { /* FAIL of operation expected */ If (!Arg3) { ERR ("m112", Z147, __LINE__, 0x00, 0x00, Arg3, 0x01) } } ElseIf (Arg2) { /* check presence of particular exception */ Local0 = CH09 (0x00, Arg0, Arg2, Z147, 0x0F, RefOf (Local2)) If (Local0) { SE00 (Arg1, ER04, "Error er04") } } If (FLG0) { Local0 = CH08 ("m112", Arg0, Z147, 0x10, 0x00, 0x00) If (Local0) { SE00 (Arg1, ER03, "Error er03") } } } /* * Control thread initiates execution of commands by the worker threads * * arg0 - number of threads (total) */ Method (M114, 1, NotSerialized) { M200 (BS01, Arg0, 0x00) M200 (BS03, Arg0, 0x00) DO00 = 0x01 } /* * Return index of the greatest alive non-terminated yet thread * * arg0 - number of threads */ Method (M115, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) /* Means 'not found' */ Local7 = Arg0 /* Inverse order, excluding a Control thread */ LPN0 = (Arg0 - 0x01) LPC0 = (Arg0 - 0x01) While (LPN0) { Local0 = DerefOf (BS04 [LPC0]) If (!Local0) { Local7 = LPC0 /* \M115.LPC0 */ Break } LPN0-- LPC0-- } Return (Local7) } /* * Add error-bit relative to arg0-th thread * * arg0 - Index of thread * arg1 - error-bit * arg2 - message */ Method (SE00, 3, NotSerialized) { Local0 = DerefOf (P300 [Arg0]) Local1 = (Arg1 | Local0) P300 [Arg0] = Local1 If (VB04) { /* Add scale of Errors */ Local0 = DerefOf (P100 [Arg0]) Local1 = (Arg1 | Local0) P100 [Arg0] = Local1 /* Increment statistics of Errors (number) */ M212 (RefOf (P101), Arg0) } If (VB06) { Concatenate ("ERROR: ", Arg2, Local0) M201 (Arg0, 0x01, Local0) } } /* * Add warning-bit relative to arg0-th thread * * arg0 - Index of thread * arg1 - warning-bit * arg2 - message */ Method (WRN0, 3, NotSerialized) { Local0 = DerefOf (P301 [Arg0]) Local1 = (Arg1 | Local0) P301 [Arg0] = Local1 If (VB04) { /* Add scale of Warnings */ Local0 = DerefOf (P102 [Arg0]) Local1 = (Arg1 | Local0) P102 [Arg0] = Local1 /* Increment statistics of Warnings (number) */ M212 (RefOf (P103), Arg0) } If (VB05) { Concatenate ("WARNING: ", Arg2, Local0) M201 (Arg0, 0x01, Local0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/MAIN.asl0000700000175000017500000000666714773714160025634 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("mt_mutex", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/MT_DECL.asl") Include ("../../../../runtime/common/TCI/tcicmd.asl") Include ("../../../../runtime/common/mx_objects.asl") Include ("../../../../runtime/collections/mt/mutex/common.asl") Include ("../../../../runtime/collections/mt/mutex/service.asl") Include ("../../../../runtime/collections/mt/mutex/tests.asl") Include ("../../../../runtime/collections/mt/mutex/mutex.asl") Include ("../../../../runtime/collections/mt/mutex/mxs.asl") Include ("../../../../runtime/collections/mt/mutex/example0.asl") Include ("../../../../runtime/collections/mt/mutex/worker_thr.asl") /* * Arguments passed to MAIN method are: * * arg0 - number of threads. * arg1 - ID of current thread. * arg2 - Index of current thread inside all participating threads. * The thread of Index 0 is considered as Control Thread. */ Method (MAIN, 3, NotSerialized) { If ((Arg1 == "AML Debugger")) { Debug = "Either the Threads command is old," Debug = "or even some another command was initiated." Return (0x00) } /* Non-zero Local0 means the current thread is a Control Thread */ Local0 = 0x01 If (Arg2) { /* Wait for Control thread saying 'go further' */ M116 (Arg2) Local0 = 0x00 } Else { /* Control thread */ /* Initialization */ STRT (0x00) } /* Run verification methods */ Include ("../../../../runtime/collections/mt/mutex/RUN.asl") Store (0x00, Local7) If (Local0) { /* Final actions */ Store (FNSH (), Local7) } Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/Makefile0000700000175000017500000000013614773714160026030 0ustar ivanhuivanhu# mutex AMLMOD= mt_mutex COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/mutex.asl0000700000175000017500000007174714773714160026253 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check mutex related interfaces in a real multi-threading mode */ Name (Z148, 0x94) /* in progress SEE: ?????????????????????????????????????????? 1) See sleeping mode ... and m209 3) remove all mf0X - workers only once go into } else { // Worker Threads m101(arg0, arg1, arg2, 0) } and Ctl Thread do mf00() 4) do the same number of mutexes (indexes) for all mutex levels then uni0 will work in cm06/cm07... properly 5) actually properly split methods among files and files among directories 6) groups of methods - m340-m344 and m20d-m20e in the same group and name 6) some methods are not used? 7) m33f - does it have "Check up the values of counters of all Mutexes"? 8) allow tests to run for 3 and 2 threads (excluding some) without SKIPPED */ /* * Test mf01. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF01, 3, Serialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf01 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf01", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* * These variables are to be actually used * by the Control Thread only */ Name (LPN0, 0x00) Name (LPC0, 0x00) /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Acquire/Sleep/Release for all 0-15 levels and GL */ LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { /* * Reset all counters (cnt0) and flags (fl00) * corresponding to all Mutexes. */ M330 () /* * Acquire/Sleep/Release * * - Number of threads * - Level of mutex * - Index of mutex * - Number of mutexes of the same level */ M801 (Arg0, LPC0, 0x00, MIN0) LPN0-- LPC0++ } /* Close testing */ M108 ("mf01", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf02. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF02, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf02 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf02", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* * (0-15 levels) and GL/Release(15-0 levels) and GL * - Number of threads * - Index of mutex * - Number of mutexes of the same level */ M802 (Arg0, 0x00, 0x02) /* Close testing */ M108 ("mf02", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf03. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF03, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf03 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf03", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* * Example 0 * - Number of threads */ M803 (Arg0) /* Close testing */ M108 ("mf03", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf04. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF04, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x03)) { If (!Arg2) { Debug = "Test mf04 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf04", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf04) */ M804 (Arg0) /* Close testing */ M108 ("mf04", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf05. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF05, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x03)) { If (!Arg2) { Debug = "Test mf05 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf05", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf05) */ M805 (Arg0) /* Close testing */ M108 ("mf05", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf06. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF06, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x03)) { If (!Arg2) { Debug = "Test mf06 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf06", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf06) */ M806 (Arg0) /* Close testing */ M108 ("mf06", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf07. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF07, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf07 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf07", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf07) */ M807 (Arg0) /* Close testing */ M108 ("mf07", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf08. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF08, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, MIN1)) { If (!Arg2) { Debug = "Test mf08 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf08", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf08) */ M808 (Arg0) /* Close testing */ M108 ("mf08", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf09. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF09, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, MIN1)) { If (!Arg2) { Debug = "Test mf09 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf09", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf09) */ M809 (Arg0) /* Close testing */ M108 ("mf09", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf10. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF10, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, MIN1)) { If (!Arg2) { Debug = "Test mf10 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf10", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf10) */ M810 (Arg0) /* Close testing */ M108 ("mf10", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf11. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF11, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf11 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf11", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf11) */ M811 (Arg0) /* Close testing */ M108 ("mf11", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf12. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF12, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x03)) { If (!Arg2) { Debug = "Test mf12 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf12", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf12) */ M812 (Arg0) /* Close testing */ M108 ("mf12", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf13. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF13, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf13 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf13", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf13) */ M813 (Arg0) /* Close testing */ M108 ("mf13", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf14. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF14, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf14 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf14", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf14) */ M814 (Arg0) /* Close testing */ M108 ("mf14", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf15. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF15, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf15 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf15", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf15) */ M815 (Arg0) /* Close testing */ M108 ("mf15", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf16. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF16, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf16 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf16", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf16) */ M816 (Arg0) /* Close testing */ M108 ("mf16", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf17. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF17, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf17 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf17", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf17) */ M817 (Arg0) /* Close testing */ M108 ("mf17", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * Test mf18. * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF18, 3, NotSerialized) { /* Initialization of multithreading interconnection */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { If (!Arg2) { Debug = "Test mf18 skipped!" SKIP () } Return (Zero) } /* Report start of test: depending on vb01 can be reported by each thread */ M204 ("mf18", Arg0, Arg1, Arg2) /* * The Worker Threads loop forever executing strategies * specified and controlled by the Control Thread. */ If ((Arg2 == 0x00)) { /* Control Thread */ /* Open testing */ M102 (Arg0) /* All workers to sleep */ M100 (Arg0, Arg1, Arg2, CM02, 0x00, 0x00, 0x00) /* Test (see SPEC for mf18) */ M818 (Arg0) /* Close testing */ M108 ("mf18", Arg0, Arg1, Arg2) } Else { /* Worker Threads */ M101 (Arg0, Arg1, Arg2, 0x00) } } /* * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread */ Method (MF00, 3, NotSerialized) { If (!Arg2) { /* Sleeping mode */ SL00 = 0x0A /* default milliseconds to sleep for Control thread */ SL01 = 0x0A /* default milliseconds to sleep for Worker threads */ SLM0 = 0x00 /* sleeping mode for worker threads */ } If (!Y251) { If (!Arg2) { /* * Initialization of multithreading interconnection: * only to check that mt-technique itself works. */ If (!M107 (Arg0, Arg1, Arg2, 0x00)) { Debug = "Mt-technique doesn\'t work!" } Else { Debug = "Mt-technique works" } VB04 = 0x00 /* don't print statistics */ CTL0 = 0x01 /* Worker threads - go! */ SRMT ("mt_mutex_tests") } Return (Zero) } If (0x01) { /* Tests */ If (!Arg2) { SRMT ("mf01") } MF01 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf02") } MF02 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf03") } MF03 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf04") } MF04 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf05") } MF05 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf06") } MF06 (Arg0, Arg1, Arg2) If (0x01) { If (!Arg2) { SRMT ("mf07") } MF07 (Arg0, Arg1, Arg2) } ElseIf (!Arg2) { SRMT ("mf07") BLCK () } If (!Arg2) { SRMT ("mf08") } MF08 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf09") } MF09 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf10") } MF10 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf11") } MF11 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf12") } MF12 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf13") } MF13 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf14") } MF14 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf15") } MF15 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf16") } MF16 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf17") } MF17 (Arg0, Arg1, Arg2) If (!Arg2) { SRMT ("mf18") } MF18 (Arg0, Arg1, Arg2) } Else { If (!Arg2) { SRMT ("mf01") } MF01 (Arg0, Arg1, Arg2) } /* Report statistics */ If ((Arg2 == 0x00)) { /* Control Thread */ If (VB04) { M211 (Arg0) } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/worker_thr.asl0000700000175000017500000004015114773714160027260 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Run only for the Worker threads, * they wait there for the Control * thread says 'all is ready', * 'go further'. * * arg0 - Index of current thread */ Method (M116, 1, NotSerialized) { While (0x01) { If (CTL0) { /* Control thread says 'all is ready' */ Break } M201 (Arg0, VB03, "Sleep, waiting for Control thread") M206 (Arg0, SL01) } } /* * Infinite loop of the Worker Threads * * arg0 - number of threads * arg1 - ID of current thread * arg2 - Index of current thread * arg3 - the depth of recursion of call */ Method (M101, 4, Serialized) { /* * These internal variables are specified only to show that * recursive calls to methods having internal declarations * (as well as Switch operators) of objects works. */ Name (I000, 0xABCD0000) Name (I001, 0xABCD0001) Name (I002, 0xABCD0002) Name (I003, 0xABCD0003) Local0 = DerefOf (BS04 [Arg2]) If (Local0) { Return ( /* Go everywhere to the exit to "Terminate thread" */ Zero) } /* Wait for Control thread saying 'go further' */ M116 (Arg2) /* * Local0 - command for worker to be executed * * Local7 - non-zero means to do break after * confirming "I see zero do00". * Keep Local7 zero otherwise. */ Local7 = 0x00 While (0x01) { If ((Arg2 >= Arg0)) { SE00 (Arg2, ER06, "Error er06") } /* Determine the command for particular thread */ Local0 = C100 /* \C100 */ /* Control thread allows for worker threads to fulfill their commands */ If (DO00) { Local1 = DerefOf (BS01 [Arg2]) /* This thread doesn't yet fulfill its command */ If (!Local1) { /* Command to be fulfilled */ Local0 = DerefOf (BS00 [Arg2]) } /* Unnecessary */ If (!DO00) { Local0 = C100 /* \C100 */ } } If (!DO00) { Local1 = DerefOf (BS02 [Arg2]) If (!Local1) { /* Worker thread reports: "I see zero do00" */ BS02 [Arg2] = RS00 /* \RS00 */ If (Local7) { M201 (Arg2, VB03, "Break completed: exit invinitive loop") Break } } } Switch (Local0) { Case (0xF0) { /* c100 (Idle thread) */ /* * This command is fulfilled by worker thread * without directive of Control thread. */ M201 (Arg2, VB03, "Sleep") M206 (Arg2, SL01) BS03 [Arg2] = C100 /* \C100 */ } Case (0xF1) { /* c101 */ M201 (Arg2, VB03, "Break started") BS01 [Arg2] = C101 /* \C101 */ /* * se00(3, 0x12345, "") * break * * Note: * Non-zero Local7 means to do break after * confirming "I see zero do00". * Keep Local7 zero in all other entries. */ Local7 = 0x01 } Case (0xF2) { /* c102 */ M201 (Arg2, VB03, "Sleep, command") M206 (Arg2, SL01) BS01 [Arg2] = C102 /* \C102 */ } Case (0xF3) { /* c103 */ M201 (Arg2, VB03, "Acquire/Release") /* * Local1 - Level of mutex * Local2 - number of Levels of mutexes (only 1 here) * Local3 - Index of mutex * Local4 - number of mutexes of the same level */ Local1 = DerefOf (P200 [Arg2]) /* Local2 - number of Levels of mutexes is 1 here, not used */ Local3 = DerefOf (P202 [Arg2]) Local4 = DerefOf (P203 [Arg2]) While (Local4) { /* Acquire */ Local7 = M310 (Arg1, Arg2, Local1, Local3, 0x00, 0x00, 0x01) If (!Local7) { /* Release */ M311 (Arg1, Arg2, Local1, Local3, 0x00, 0x01) } Local4-- Local3++ } BS01 [Arg2] = C103 /* \C103 */ Local7 = 0x00 /* keep Local7 zero */ } Case (0xF4) { /* c104 */ M201 (Arg2, VB03, "c104") /* * Local1 - Level of mutex * Local2 - number of Levels of mutexes (only 1 here) * Local3 - Index of mutex * Local4 - number of mutexes of the same level */ /* Acquire mutexes from 0 up to 15 level */ Local2 = MAX0 /* \MAX0 */ Local1 = 0x00 While (Local2) { Local3 = DerefOf (P202 [Arg2]) Local4 = DerefOf (P203 [Arg2]) While (Local4) { M310 (Arg1, Arg2, Local1, Local3, 0x00, 0x00, 0x01) Local4-- Local3++ } Local2-- Local1++ } /* Levels - in the inverse order */ /* Release mutexes from 15 down t0 0 level */ Local2 = MAX0 /* \MAX0 */ Local1 = (MAX0 - 0x01) While (Local2) { Local3 = DerefOf (P202 [Arg2]) Local4 = DerefOf (P203 [Arg2]) /* Indexes - in the inverse order too */ Local3 += Local4 Local3-- While (Local4) { M311 (Arg1, Arg2, Local1, Local3, 0x00, 0x01) Local4-- Local3-- } Local2-- Local1-- } BS01 [Arg2] = C104 /* \C104 */ } Case (0xF5) { /* c105 */ M201 (Arg2, VB03, "Example 0") Local1 = 0x0A While (Local1) { Switch (Arg2) { Case (0x02) { C0AB (Arg1, Arg2) } Case (0x04) { C0AB (Arg1, Arg2) } Case (0x06) { C0AB (Arg1, Arg2) } Default { C0A2 (Arg1, Arg2, 0x01, 0x01, 0x01) } } Local1-- } BS01 [Arg2] = C105 /* \C105 */ } Case (0xF6) { /* c106 */ M201 (Arg2, VB03, "Acquire specified set of mutexes") /* * Local0 - auxiliary * Local1 - Level of mutex * Local2 - number of Levels of mutexes (only 1 here) * Local3 - Index of mutex * Local4 - number of mutexes of the same level * Local5 - non-zero means that we generate exceptional condition * Local6 - opcode of TimeOutValue * Local7 - auxiliary */ Local1 = DerefOf (P200 [Arg2]) Local2 = DerefOf (P201 [Arg2]) While (Local2) { Local3 = DerefOf (P202 [Arg2]) Local4 = DerefOf (P203 [Arg2]) Local5 = DerefOf (P204 [Arg2]) Local6 = DerefOf (P205 [Arg2]) While (Local4) { Local7 = M111 (Arg1, Arg2, Local5, "Acquire") Local0 = M310 (Arg1, Arg2, Local1, Local3, Local7, Local6, 0x01) M112 (Arg1, Arg2, Local5, Local0) Local4-- Local3++ } Local2-- Local1++ } BS01 [Arg2] = C106 /* \C106 */ Local7 = 0x00 /* keep Local7 zero */ } Case (0xF7) { /* c107 */ M201 (Arg2, VB03, "Release specified set of mutexes") /* * Local1 - Level of mutex * Local2 - number of Levels of mutexes (only 1 here) * Local3 - Index of mutex * Local4 - number of mutexes of the same level * Local5 - non-zero means that we generate exceptional condition * Local7 - auxiliary */ Local1 = DerefOf (P200 [Arg2]) Local2 = DerefOf (P201 [Arg2]) /* Levels - in the inverse order */ Local1 += Local2 Local1-- While (Local2) { Local3 = DerefOf (P202 [Arg2]) Local4 = DerefOf (P203 [Arg2]) Local5 = DerefOf (P204 [Arg2]) /* Indexes - in the inverse order too */ Local3 += Local4 Local3-- While (Local4) { Local7 = M111 (Arg1, Arg2, Local5, "Release") M311 (Arg1, Arg2, Local1, Local3, Local7, 0x01) M112 (Arg1, Arg2, Local5, 0x00) Local4-- Local3-- } Local2-- Local1-- } BS01 [Arg2] = C107 /* \C107 */ Local7 = 0x00 /* keep Local7 zero */ } Case (0xF8) { /* c108 */ M201 (Arg2, VB03, "Terminate thread") BS04 [Arg2] = 0x01 Break } Case (0xF9) { /* c109 */ If (!Arg3) { M201 (Arg2, VB03, "Invoke Serialized method") M8FC (Arg0, Arg1, Arg2) } Else { /* * Only after falling down to the second recurcive call * to m101 report that you are completed c109 command and * ready handle following commands. */ M201 (Arg2, VB03, "Recursive call to m101 for \'Invoke Serialized method\'") BS01 [Arg2] = C109 /* \C109 */ } } Case (0xFA) { /* c10a */ If (!Arg3) { M201 (Arg2, VB03, "Invoke non-serialized method, use Mutex for critical section") M8FA (Arg0, Arg1, Arg2) } Else { /* * Only after falling down to the second recurcive call * to m101 report that you are completed c109 command and * ready handle following commands. */ M201 (Arg2, VB03, "Recursive call to m101 for \'Mutex for critical section\'") BS01 [Arg2] = C10A /* \C10A */ } } Case (0xFB) { /* c10b */ If (!Arg3) { M201 (Arg2, VB03, "Non-serialized method is grabbed simultaneously by several threads") M8F9 (Arg0, Arg1, Arg2) } Else { /* * Only after falling down to the second recurcive call * to m101 report that you are completed c109 command and * ready handle following commands. */ M201 (Arg2, VB03, "Recursive call to m101 for \'Non-serialized method\'") BS01 [Arg2] = C10B /* \C10B */ } } Default { SE00 (Arg2, ER05, "Error er05") M201 (Arg2, VB03, "Sleep, bad command") Debug = Local0 M206 (Arg2, SL01) } } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/mt/mutex/example0.asl0000700000175000017500000000722714773714160026614 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Example 0 (from some particular failed table) * * arg0 - ID of current thread * arg1 - Index of current thread * arg2 - Integer * arg3 - Integer * arg4 - Integer */ Method (C0A2, 5, Serialized) { OperationRegion (C0A3, SystemIO, C0A1 (), 0x07) Field (C0A3, ByteAcc, NoLock, Preserve) { C0A4, 8, C0A5, 8, C0A6, 8, C0A7, 8, C0A8, 8, C0A9, 8, C0AA, 8 } M310 (Arg0, Arg1, GLLL, GLIX, 0x00, 0x00, 0x00) /* Acquire */ Local0 = 0x10 While (Local0) { Local1 = C0A4 /* \C0A2.C0A4 */ M207 (Arg1, 0x64) /* Stall */ Local0-- } Local0 = 0x01 If (Local0) { C0A7 = Arg3 C0A8 = Arg2 If (((Arg2 & 0x01) == 0x00)) { C0A9 = Arg4 } C0A4 = 0xFF C0A6 = 0x48 Local0 = 0x0B While (Local0) { Local1 = C0A4 /* \C0A2.C0A4 */ M207 (Arg1, 0x64) /* Stall */ Local0-- } Local1 = (C0A4 & 0x1C) C0A4 = 0xFF If (((Local1 == 0x00) && (Arg2 & 0x01))) { Local2 = C0A9 /* \C0A2.C0A9 */ } } Else { Local1 = 0x01 } M311 (Arg0, Arg1, GLLL, GLIX, 0x00, 0x00) /* Release */ Return (Local1) } Method (C0A1, 0, Serialized) { Return (0x0100) } /* * arg0 - ID of current thread * arg1 - Index of current thread */ Method (C0AB, 2, NotSerialized) { M310 (Arg0, Arg1, GLLL, GLIX, 0x00, 0x00, 0x00) /* Acquire */ Local0 = 0x10 While (Local0) { M207 (Arg1, 0x32) /* Stall */ Local0-- } M311 (Arg0, Arg1, GLLL, GLIX, 0x00, 0x00) /* Release */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/README0000700000175000017500000000144514773714160023472 0ustar ivanhuivanhu CONTENTS particular run-time test collections bdemo bug demonstrating and proving bug fixes test collection complex complex test collection exceptions exceptional conditions test collection functional functional test collection mt tests of multi-threading functionality (mt-tests) IMPL Implementation dependent tests. These tests may be based on some internal features of the particular implementation of ACPI. FULL full test - all the test collections (functional + complex + exceptions + etc.) compiled together as one DefinitionBlock service service tests TMP the test sample Identity2MS tests to prove identity of ACPICA to MS Makefile.install the uniform targets and rules to perform make-install and other standard features acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/0000700000175000017500000000000014773714155024770 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_tbl/0000700000175000017500000000000014773714155026410 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_tbl/RUN.asl0000700000175000017500000000371714773714155027570 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Exceptions caused by inappropriate use of Load, UnLoad, LoadTable", TCLE, 0x06, W019)) { TLD1 () TUL1 () TLT1 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_tbl/MAIN.asl0000700000175000017500000000407014773714155027641 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("exc_tbl", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/table/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/exceptions/exc_tbl/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_tbl/Makefile0000700000175000017500000000022214773714155030047 0ustar ivanhuivanhu# exc_tbl AMLMOD= exc_tbl COLL= ../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/README0000700000175000017500000000105214773714155025651 0ustar ivanhuivanhu CONTENTS exceptional conditions test collection exc initiate and verify exceptional conditions exc_operand exceptions caused by inappropriate type of operands exc_result exceptions caused by inappropriate type of destination exc_ref exceptions caused by inappropriate use of references exc_tbl exceptions caused by inappropriate use of table management FULL full the exceptional conditions test collection - all the tests of the exceptional conditions test collection are compiled together as one DefinitionBlock acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/Makefile0000700000175000017500000000021114773714155026425 0ustar ivanhuivanhu# exceptions MDIRS = \ exc \ exc_operand \ exc_ref \ exc_tbl \ exc_result # FULL TOP= ../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/0000700000175000017500000000000014773714155027145 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result2/0000700000175000017500000000000014773714155031404 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result2/RUN.asl0000700000175000017500000000361414773714155032560 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Exceptions on Result Object processing", TCLE, 0x04, W015)) { RES5 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result2/MAIN.asl0000700000175000017500000000476314773714155032646 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("exc_result2", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../runtime/cntl/DECL_5UP.asl") Include ("../../../../../runtime/collections/complex/result/common/rcommon.asl") Include ("../../../../../runtime/collections/complex/result/tests/rindecrement/rindecrement.asl") Include ("../../../../../runtime/collections/complex/result/tests/rexplicitconv/rexplicitconv.asl") Include ("../../../../../runtime/collections/complex/result/tests/roptional/roptional.asl") Include ("../../../../../runtime/collections/exceptions/exc_result/exc_result2/exc_result2.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../runtime/collections/exceptions/exc_result/exc_result2/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result2/Makefile0000700000175000017500000000021114773714155033041 0ustar ivanhuivanhu# exc_result2 AMLMOD= exc_result2 COLL= ../../.. ADD_ASLFLAGS=-vx 6163 -vx 6142 TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result2/exc_result2.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result2/exc_resul0000700000175000017500000000574314773714155033334 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check exceptions on storing */ /* Run-method */ Method (RES5, 0, NotSerialized) { Debug = "TEST: RES5, Exceptions on Result Object processing" /* Store */ M689 ("RES5-m689", 0x00, 0x01) /*CopyObject */ M689 ("RES5-m689", 0x01, 0x01) /* Increment */ M692 (0x00, 0x01) /* Decrement */ M692 (0x01, 0x01) /* Store the result of the explicit conversion operators */ M693 (0x00, 0x01, B676, B677, 0x00) M693 (0x00, 0x01, B67D, B677, 0x01) /* CopyObject the result of the explicit conversion operators */ M693 (0x01, 0x01, B676, B677, 0x00) M693 (0x01, 0x01, B67D, B677, 0x01) /* Optional storing of the result of the explicit conversion operators */ M693 (0x02, 0x01, B676, B677, 0x00) M693 (0x02, 0x01, B67D, B677, 0x01) /* Store the result of the normal operators */ M694 (0x00, 0x01, B676, B677, 0x00) M694 (0x00, 0x01, B67D, B677, 0x01) /* CopyObject the result of the normal operators */ M694 (0x01, 0x01, B676, B677, 0x00) M694 (0x01, 0x01, B67D, B677, 0x01) /* Optional storing of the result of the normal operators */ M694 (0x02, 0x01, B676, B677, 0x00) M694 (0x02, 0x01, B67D, B677, 0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result1/0000700000175000017500000000000014773714155031403 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result1/RUN.asl0000700000175000017500000000366614773714155032566 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Exceptions caused by inappropriate type of destination", TCLE, 0x03, W015)) { SRMT ("OCV3") OCV3 () } FTTT () ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result1/exc_result1.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result1/exc_resul0000700000175000017500000000412014773714155033317 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * This test should be investigated and probably fixed because * it most likely not conforms with the changed functionality of * the Store operator - storing of non-computational data and * BufferFields and Fields was once disabled. * * Such are exc_operand1, exc_result, oconversion and rconversion tests. */ /* Run-method */ Method (OCV3, 0, NotSerialized) { M560 (0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result1/MAIN.asl0000700000175000017500000000436614773714155032644 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("exc_result1", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../runtime/cntl/DECL_5UP.asl") Include ("../../../../../runtime/common/conversion/rproc.asl") Include ("../../../../../runtime/common/conversion/rtest.asl") Include ("../../../../../runtime/collections/exceptions/exc_result/exc_result1/exc_result1.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../runtime/collections/exceptions/exc_result/exc_result1/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/exc_result1/Makefile0000700000175000017500000000015214773714155033044 0ustar ivanhuivanhu# exc_result1 AMLMOD= exc_result1 COLL= ../../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_result/Makefile0000700000175000017500000000016014773714155030605 0ustar ivanhuivanhu# exc_result MDIRS = \ exc_result1 \ exc_result2 # FULL TOP= ../../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_ref/0000700000175000017500000000000014773714155026403 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_ref/RUN.asl0000700000175000017500000000363214773714155027557 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Exceptions caused by inappropriate use of references", TCLE, 0x05, W016)) { REF5 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_ref/MAIN.asl0000700000175000017500000000455314773714155027642 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("exc_ref", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/common/data.asl") Include ("../../../../runtime/common/dataproc.asl") Include ("../../../../runtime/common/datastproc.asl") Include ("../../../../runtime/common/operations.asl") Include ("../../../../runtime/collections/functional/reference/DECL.asl") Include ("../../../../runtime/collections/functional/reference/ref70.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/exceptions/exc_ref/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_ref/Makefile0000700000175000017500000000022214773714155030042 0ustar ivanhuivanhu# exc_ref AMLMOD= exc_ref COLL= ../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc/0000700000175000017500000000000014773714155025547 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc/RUN.asl0000700000175000017500000000362014773714155026720 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Initiate and verify exceptional conditions", TCLE, 0x00, W013)) { EXCP () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc/exc.asl0000700000175000017500000014015214773714155027035 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Initiate exceptional conditions by all the known ways. * Verify the reaction. * * Current max index of checking is 170 */ Name (Z058, 0x3A) /* Divide by zero */ Method (M140, 0, Serialized) { CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local1 = 0x01 Local0 = 0x02 Divide (Local1, Local0, Local2) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0 = 0x00 Divide (Local1, Local0, Local2) CH04 (__METHOD__, 0x00, 0x38, Z058, __LINE__, 0x00, 0x00) /* AE_AML_DIVIDE_BY_ZERO */ Local0 = 0x02 Divide (Local1, Local0, Local2) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } /* Modulo divide by zero */ Method (M141, 0, Serialized) { CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local1 = 0x01 Local0 = 0x02 Local2 = (Local1 % Local0) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0 = 0x00 Local2 = (Local1 % Local0) CH04 (__METHOD__, 0x00, 0x38, Z058, __LINE__, 0x00, 0x00) /* AE_AML_DIVIDE_BY_ZERO */ Local0 = 0x02 Local2 = (Local1 % Local0) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } /* Release ownership on a Mutex that is not currently owned */ Method (M142, 0, Serialized) { Mutex (MTX0, 0x00) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Release (MTX0) CH04 (__METHOD__, 0x00, 0x41, Z058, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ } /* SizeOf for data types not an Integer, Buffer, String or Package object */ Method (M143, 0, Serialized) { /* Method */ /* DDB Handle */ /* Debug Object */ /* Uninitialized */ /* Integer */ Name (INT0, 0x00) /* String */ Name (STR0, "string") /* Buffer */ Name (BUF0, Buffer (0x0A) { 0x00 // . }) /* Package */ Name (PAC0, Package (0x01) { 0x00 }) /* Device */ Device (DEV0) { } /* Event */ Event (EVE0) /* Mutex */ Mutex (MTX0, 0x00) /* Operation Region */ OperationRegion (OPR0, SystemMemory, 0x00, 0x04) /* Power Resource */ PowerResource (PWR0, 0x00, 0x0000){} /* Processor */ Processor (CPU0, 0x00, 0xFFFFFFFF, 0x00){} /* Thermal Zone */ ThermalZone (TZN0) { } /* Buffer Field */ Local0 = BUF0 [0x00] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = SizeOf (STR0) Local5 = SizeOf (BUF0) Local5 = SizeOf (PAC0) Local5 = SizeOf (INT0) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) If (INT0) { Local1 = 0x00 } Local5 = SizeOf (Local1) CH04 (__METHOD__, 0x01, 0x31, Z058, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_LOCAL */ /* These are now caught by the compiler - Aug 2015 */ /* Store(SizeOf(DEV0), Local5) */ /* CH04(ts, 1, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* */ /* Store(SizeOf(EVE0), Local5) */ /* CH04(ts, 1, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* */ /* Store(SizeOf(MTX0), Local5) */ /* CH04(ts, 1, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* */ /* Store(SizeOf(OPR0), Local5) */ /* CH04(ts, 1, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* */ /* Store(SizeOf(PWR0), Local5) */ /* CH04(ts, 1, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* */ /* Store(SizeOf(CPU0), Local5) */ /* CH04(ts, 1, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* */ /* Store(SizeOf(TZN0), Local5) */ /* CH04(ts, 1, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ } /* ToString() when the number of characters copied from buffer exceeds 200 */ Method (M144, 0, Serialized) { Name (B000, Buffer (0xC8){}) Local0 = 0x00 While ((Local0 < 0xC8)) { B000 [Local0] = 0xFF Local0++ } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) ToString (B000, Ones, Local5) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Name (B001, Buffer (0xC9){}) Local0 = 0x00 While ((Local0 < 0xC9)) { B001 [Local0] = 0xFF Local0++ } ToString (B001, Ones, Local5) /* * CH04(ts, 0, 61, z058, __LINE__, 0, 0) // AE_AML_STRING_LIMIT * * 20.12.2005. * No more limit of string size. */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } /* Access out of Package */ Method (M145, 0, Serialized) { Name (P000, Package (0x03) { 0x00, 0x01, 0x02 }) Name (P001, Package (0x03) { 0x00, 0x01, 0x02 }) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Package() */ Store (P000 [0x02], Local5) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Store (P000 [0x03], Local5) CH04 (__METHOD__, 0x01, 0x37, Z058, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ Local0 = P000 [0x02] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0 = P000 [0x03] CH04 (__METHOD__, 0x00, 0x37, Z058, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ /* Package(3) */ Store (P001 [0x02], Local5) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = P001 [0x03] CH04 (__METHOD__, 0x00, 0x37, Z058, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ Local0 = P001 [0x02] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0 = P001 [0x03] CH04 (__METHOD__, 0x00, 0x37, Z058, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ } /* Access out of String */ Method (M085, 0, Serialized) { Name (S000, "123") CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = S000 [0x02] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = S000 [0x03] /* Bug 177, Bugzilla 5480. */ CH04 (__METHOD__, 0x00, 0x3D, Z058, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ Local0 = S000 [0x02] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0 = S000 [0x03] CH04 (__METHOD__, 0x00, 0x3D, Z058, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ } /* Access out of Buffer */ Method (M086, 0, Serialized) { Name (B000, Buffer (0x03) { 0x00, 0x01, 0x02 // ... }) Name (B001, Buffer (0x03) { 0x00, 0x01, 0x02 // ... }) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Buffer() */ Local5 = B000 [0x02] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = B000 [0x03] CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ Local0 = B000 [0x02] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0 = B000 [0x03] CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ /* Buffer(3) */ Local5 = B001 [0x02] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = B001 [0x03] CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ Local0 = B001 [0x02] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0 = B001 [0x03] CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ } /* ToInteger() passed with an image of a number which value */ /* exceeds the maximum of an integer for the current mode. */ Method (M146, 0, Serialized) { CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) If ((F64 == 0x01)) { Local0 = "0xffffffffffffffff" } Else { Local0 = "0xffffffff" } ToInteger (Local0, Local5) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) If ((F64 == 0x01)) { Local0 = "0x11111111111111111" } Else { Local0 = "0x111111111" } ToInteger (Local0, Local5) CH04 (__METHOD__, 0x00, 0x2E, Z058, __LINE__, 0x00, 0x00) /* AE_AML_NO_OPERAND */ } /* [Uninitialized] None. */ /* Causes a fatal error when used as a source */ /* operand in any ASL statement. */ Method (M147, 1, Serialized) { If (Arg0) { Local0 = 0x00 } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0++ CH04 (__METHOD__, 0x00, 0x31, Z058, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_LOCAL */ } Method (M148, 0, NotSerialized) { M147 (0x00) } /* Stall, Time parameter is too large (> 100) */ Method (M149, 1, Serialized) { CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Stall (Arg0) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } Method (M14A, 1, Serialized) { CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Stall (Arg0) /* It is now bug 14. */ CH04 (__METHOD__, 0x00, 0x30, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_VALUE */ } /* Bug 14. */ Method (M14B, 0, NotSerialized) { M149 (0x64) /* * We are forced by Windows and BIOS code to increase the maximum stall * time to 255, this is in violation of the ACPI specification. * ACPI specification requires that Stall() does not relinquish the * processor, and delays longer than 100 usec should use Sleep() * instead. We allow stall up to 255 usec for compatibility with other * interpreters and existing BIOS. * * So we remove this test from test suite. * * m14a(101) */ } /* Concatenate() when the number of result characters in string exceeds 200 */ Method (M14C, 0, Serialized) { /* 100 characters */ Local0 = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" /* 101 characters */ Local1 = "01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Concatenate (Local0, Local0, Local5) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Concatenate (Local0, Local1, Local5) /* * CH04(ts, 0, 61, z058, __LINE__, 0, 0) // AE_AML_STRING_LIMIT * * 20.12.2005. * No more limit of string size. */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } /* ToDecimalString() when the number of result characters in string exceeds 200 */ Method (M14D, 0, Serialized) { /* Results into 200 (99 * 2 + 2) characters */ Name (B000, Buffer (0x64) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0038 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0040 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0048 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0050 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0058 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0060 */ 0x01, 0x01, 0x01, 0x0B // .... }) /* Results into 201 (100 * 2 + 1) characters */ Name (B001, Buffer (0x65) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0038 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0040 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0048 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0050 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0058 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0060 */ 0x01, 0x01, 0x01, 0x01, 0x01 // ..... }) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) ToDecimalString (B000, Local5) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) ToDecimalString (B001, Local5) /* * CH04(ts, 0, 61, z058, __LINE__, 0, 0) // AE_AML_STRING_LIMIT * * 20.12.2005. * No more limit of string size. */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } /* ToBCD() when a specified integer overflows a number of the BCD format */ Method (M14E, 0, Serialized) { CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) If ((F64 == 0x01)) { Local4 = 0x002386F26FC0FFFF ToBCD (Local4, Local5) } Else { ToBCD (0x05F5E0FF, Local5) } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) If ((F64 == 0x01)) { Local4 = 0x002386F26FC10000 ToBCD (Local4, Local5) } Else { Local4 = 0x05F5E100 ToBCD (Local4, Local5) } CH04 (__METHOD__, 0x00, 0x34, Z058, __LINE__, 0x00, 0x00) /* AE_AML_NUMERIC_OVERFLOW */ } /* Create field out of buffer */ Method (M14F, 0, Serialized) { Name (B001, Buffer (0x10){}) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateBitField (B001, 0x7F, F000) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateBitField (B001, 0x80, F001) CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateByteField (B001, 0x0F, F002) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateByteField (B001, 0x10, F003) CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateWordField (B001, 0x0E, F004) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateWordField (B001, 0x0F, F005) CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateDWordField (B001, 0x0C, F006) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateDWordField (B001, 0x0D, F007) CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateQWordField (B001, 0x08, F008) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateQWordField (B001, 0x09, F009) CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateField (B001, 0x7F, 0x01, F00A) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateField (B001, 0x80, 0x01, F00B) CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateField (B001, 0x78, 0x08, F00C) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) CreateField (B001, 0x78, 0x09, F00D) CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ } /* Access to uninitialized local */ Method (M150, 1, Serialized) { If (Arg0) { Local0 = 0x00 } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = Local0 [0x00] CH04 (__METHOD__, 0x00, 0x31, Z058, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_LOCAL */ } /* Access to an uninitialized element of package */ Method (M151, 0, Serialized) { Name (P000, Package (0x04) { 0x00, 0x01, 0x02 }) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = DerefOf (P000 [0x02]) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = DerefOf (P000 [0x03]) /* * Obsolete: * CH04(ts, 0, 51, z058, __LINE__, 0, 0) // AE_AML_UNINITIALIZED_ELEMENT * * Updated according to Bug 85 fix: no exception is expected * since the value is not processed. */ /* * OBSOLETE July 2013. DerefOf on an empty package element now causes error * CH04(ts, 0, 62, z058, __LINE__, 0, 0) */ CH04 (__METHOD__, 0x01, 0x33, Z058, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_ELEMENT */ Local5 = (DerefOf (P000 [0x03]) + 0x01) If (EXCV) { CH04 (__METHOD__, 0x00, 0x33, Z058, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_ELEMENT */ } Else { CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } Return (0x00) } /* ToHexString() when the number of result characters in string exceeds 200 */ Method (M152, 0, Serialized) { /* Results into 200 (67 * 3 - 1) characters */ Name (B000, Buffer (0x43) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0038 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0040 */ 0x01, 0x01, 0x01 // ... }) /* Results into 203 (68 * 3 - 1) characters */ Name (B001, Buffer (0x44) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0038 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0040 */ 0x01, 0x01, 0x01, 0x01 // .... }) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) ToHexString (B000, Local5) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) ToHexString (B001, Local5) /* * CH04(ts, 0, 61, z058, __LINE__, 0, 0) // AE_AML_STRING_LIMIT * * 20.12.2005. * No more limit of string size. */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } /* StartIndex in Match greater than the package size */ Method (M153, 0, Serialized) { Name (PAC0, Package (0x01) { 0x00 }) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = Match (PAC0, MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = Match (PAC0, MTR, 0x00, MTR, 0x00, 0x01) CH04 (__METHOD__, 0x01, 0x37, Z058, __LINE__, 0x00, 0x00) /* AE_AML_PACKAGE_LIMIT */ } /* Exceptional conditions of ConcatenateResTemplate */ Method (M154, 0, Serialized) { Name (RT00, ResourceTemplate () { IRQNoFlags () {1} }) /* Empty buffer */ Local0 = 0x00 Local2 = Buffer (Local0){} CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) ConcatenateResTemplate (RT00, RT00, Local5) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) ConcatenateResTemplate (RT00, Local2, Local5) /* Bug 188. */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* CH04(ts, 0, 71, z058, __LINE__, 0, 0) // AE_AML_NO_RESOURCE_END_TAG */ /* One-element buffer */ Local2 = Buffer (0x01) { 0x00 // . } ConcatenateResTemplate (RT00, Local2, Local5) /* * Note: As for there is not a separate type for ResourceTemplate, * ResourceTemplate is in fact a buffer but interpreted as * ResourceTemplate. If the buffer has no complete END_TAG descriptor, * we get AE_AML_NO_RESOURCE_END_TAG instead of AE_AML_OPERAND_TYPE. */ If (EXCV) { CH04 (__METHOD__, 0x00, 0x47, Z058, __LINE__, 0x00, 0x00) /* AE_AML_NO_RESOURCE_END_TAG */ } Else { CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } /* One-element 0x79 buffer */ Local2 = Buffer (0x01) { 0x79 // y } ConcatenateResTemplate (RT00, Local2, Local5) /* Bug 189. */ CH04 (__METHOD__, 0x00, 0x47, Z058, __LINE__, 0x00, 0x00) /* AE_AML_NO_RESOURCE_END_TAG */ /* Not resource template buffer */ Local2 = Buffer (0x03) { 0x2A, 0x04, 0x02 // *.. } ConcatenateResTemplate (RT00, Local2, Local5) If (EXCV) { CH04 (__METHOD__, 0x00, 0x47, Z058, __LINE__, 0x00, 0x00) /* AE_AML_NO_RESOURCE_END_TAG */ } Else { CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } /* Nearly resource template buffer */ Local2 = Buffer (0x04) { 0x2A, 0x10, 0x05, 0x79 // *..y } ConcatenateResTemplate (RT00, Local2, Local5) /* Bug 190. */ CH04 (__METHOD__, 0x00, 0x47, Z058, __LINE__, 0x00, 0x00) /* AE_AML_NO_RESOURCE_END_TAG */ /* Like resource template buffer */ Local2 = Buffer (0x05) { 0x00, 0x00, 0x00, 0x79, 0x00 // ...y. } ConcatenateResTemplate (RT00, Local2, Local5) If (EXCV) { CH04 (__METHOD__, 0x00, 0x47, Z058, __LINE__, 0x00, 0x00) /* AE_AML_NO_RESOURCE_END_TAG */ } Else { CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } /* * Obsolete: * Bug 63: The following operation should initiate * AE_BAD_HEX_CONSTANT exception * * * Bug 63, Bugzilla 5329. * * Updated specs 12.03.05: * "Note: the first non-hex character terminates the conversion * without error, and a '0x' prefix is not allowed." * * Update 08.10.17 * Allow '0x' prefix for usability and clarity. */ Method (M155, 0, Serialized) { CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0 = ("0x1111" + 0x00) /* * Obsolete: * CH04(ts, 0, 34, z058, __LINE__, 0, 0) // AE_BAD_HEX_CONSTANT * * New: */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) If ((Local0 != 0x1111)) { /* Bug 63, Bugzilla 5329. */ ERR (__METHOD__, Z058, __LINE__, 0x00, 0x00, Local0, 0x00) } } /* * Bug 64: The following operations should initiate exceptions. * AE_BAD_HEX_CONSTANT is the most appropreate, but it was decided * to weaken demands - it is enough that some exception arises * even if it is not the most appropreate one. * See 111,112,113. */ Method (M156, 0, Serialized) { Local0 = 0x00 Name (B000, Buffer (Local0){}) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Add, empty String */ Local5 = ("" + 0x00) /* CH04(ts, 0, 34, z058, __LINE__, 0, 0) // AE_BAD_HEX_CONSTANT */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Add, String filled with blanks */ Local5 = (" " + 0x00) /* CH04(ts, 0, 34, z058, __LINE__, 0, 0) // AE_BAD_HEX_CONSTANT */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* ToInteger, empty String */ Local4 = "" ToInteger (Local4, Local5) CH04 (__METHOD__, 0x00, 0x24, Z058, __LINE__, 0x00, 0x00) /* AE_BAD_DECIMAL_CONSTANT */ /* ToInteger, String filled with blanks */ Local4 = " " ToInteger (Local4, Local5) /* CH04(ts, 0, 34, z058, __LINE__, 0, 0) // AE_BAD_HEX_CONSTANT */ CH04 (__METHOD__, 0x00, 0x24, Z058, __LINE__, 0x00, 0x00) /* AE_BAD_DECIMAL_CONSTANT */ /* Add, zero-length Buffer */ Local5 = (B000 + 0x00) /* CH04(ts, 0, 34, z058, __LINE__, 0, 0) // AE_BAD_HEX_CONSTANT */ CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ /* ToInteger, zero-length Buffer */ ToInteger (B000, Local5) /* CH04(ts, 0, 34, z058, __LINE__, 0, 0) // AE_BAD_HEX_CONSTANT */ CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ } /* ////////////////////////////////////////////////////////// */ /* */ /* Attempt to generate references upon an arbitrary addresses */ /* */ /* ////////////////////////////////////////////////////////// */ /* Index(Integer) */ Method (M157, 0, Serialized) { Name (I000, 0xAAAAAAAA) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Store (I000 [0x00], Local5) CH04 (__METHOD__, 0x01, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = I000 [0x00] CH04 (__METHOD__, 0x00, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Store (I000 [0x00], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local1 = Local0 = I000 [0x00] CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } /* Bug 83 */ /* DerefOf(Integer) */ Method (M158, 0, Serialized) { Name (I000, 0xAAAAAAAA) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Bug 83, Bugzilla 5387. */ Local5 = DerefOf (I000) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local0 = DerefOf (I000) /* Bug 83, Bugzilla 5387. */ CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } /* Index(Local7-Integer) */ /* DerefOf(Integer) */ Method (M087, 0, Serialized) { Name (I000, 0xAAAAAAAA) Local7 = I000 /* \M087.I000 */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Index(Integer) */ Store (Local7 [0x00], Local5) CH04 (__METHOD__, 0x01, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = Local7 [0x00] CH04 (__METHOD__, 0x00, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Store (Local7 [0x00], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local1 = Local0 = Local7 [0x00] CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) /* DerefOf(Integer) */ Local5 = DerefOf (Local7) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local0 = DerefOf (Local7) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } /* Index(Buffer Field) */ Method (M159, 0, Serialized) { Name (B000, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }) CreateField (B000, 0x00, 0x08, BF00) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Store (BF00 [0x00], Local5) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local0 = BF00 [0x00] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Store (BF00 [0x00], Local0) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Store (BF00 [0x00], Local0) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local1 = Local0 = BF00 [0x00] CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } /* Bug 83 */ /* DerefOf(Buffer Field) */ Method (M15A, 0, Serialized) { Name (B000, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }) CreateField (B000, 0x00, 0x08, BF00) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) Local5 = DerefOf (BF00) /* Bug 83, Bugzilla 5387. */ CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local0 = DerefOf (BF00) /* Bug 83, Bugzilla 5387. */ CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } /* Index(Field Unit) */ Method (M15D, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 8 } Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 8, F00A, 8, F00B, 8 } BankField (R000, BNK0, 0x00, ByteAcc, NoLock, Preserve) { BKF0, 4 } IndexField (F00A, F00B, ByteAcc, NoLock, Preserve) { IF00, 1, IF01, 1 } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Field */ Store (F000 [0x00], Local5) CH04 (__METHOD__, 0x01, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = F000 [0x00] CH04 (__METHOD__, 0x00, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Store (F000 [0x00], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Store (F000 [0x00], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local1 = Local0 = F000 [0x00] CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) /* BankField */ Store (BKF0 [0x00], Local5) CH04 (__METHOD__, 0x01, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = BKF0 [0x00] CH04 (__METHOD__, 0x00, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Store (BKF0 [0x00], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Store (BKF0 [0x00], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local1 = Local0 = BKF0 [0x00] CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) /* IndexField */ Store (IF00 [0x00], Local5) CH04 (__METHOD__, 0x01, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = IF00 [0x00] CH04 (__METHOD__, 0x00, 0x2F, Z058, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Store (IF00 [0x00], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Store (IF00 [0x00], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local1 = Local0 = IF00 [0x00] CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } /* Bug 83 */ /* DerefOf(Field Unit) */ Method (M15E, 0, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 8 } Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 8, F00A, 8, F00B, 8 } BankField (R000, BNK0, 0x00, ByteAcc, NoLock, Preserve) { BKF0, 4 } IndexField (F00A, F00B, ByteAcc, NoLock, Preserve) { IF00, 1, IF01, 1 } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Field */ Local5 = DerefOf (F000) /* Bug 83, Bugzilla 5387. */ CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local0 = DerefOf (F000) /* Bug 83, Bugzilla 5387. */ CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) /* BankField */ Local5 = DerefOf (BKF0) /* Bug 83, Bugzilla 5387. */ CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local0 = DerefOf (BKF0) /* Bug 83, Bugzilla 5387. */ CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) /* IndexField */ Local5 = DerefOf (IF00) /* Bug 83, Bugzilla 5387. */ CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) Local0 = DerefOf (IF00) /* Bug 83, Bugzilla 5387. */ CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } /* UPDATE exc.m084: Implement this test for all the types of objects */ /* (see for example ref.asl files about objects) and */ /* all the types of operators. */ Method (M084, 1, Serialized) { If (Arg0) { Name (I000, 0x12345678) Name (S000, "12345678") Name (B000, Buffer (0x01) { 0x12 // . }) Name (P000, Package (0x01) { 0x12345678 }) } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Discuss: now the ObjectType doesn't cause exception! Is it correct? Understand and discuss it. Store(ObjectType(i000), Local0) CH04(ts, 0, 46, z058, __LINE__, 0, 0) // AE_AML_NO_OPERAND Store(ObjectType(s000), Local0) CH04(ts, 0, 46, z058, __LINE__, 0, 0) // AE_AML_NO_OPERAND Store(ObjectType(b000), Local0) CH04(ts, 0, 46, z058, __LINE__, 0, 0) // AE_AML_NO_OPERAND Store(ObjectType(p000), Local0) CH04(ts, 0, 46, z058, __LINE__, 0, 0) // AE_AML_NO_OPERAND */ Store (P000 [0x00], Local0) If (!Arg0) { CH04 (__METHOD__, 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } Else { CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) } Method (MF9D, 0, NotSerialized) { Method (M000, 0, NotSerialized) { Local7 = 0x00 Divide (0x01, Local7, Local2) If ((Local2 != 0x00)) { M002 () } } Method (M001, 0, NotSerialized) { Local7 = 0x00 If (Divide (0x01, Local7, Local2)) { M002 () } } Method (M002, 0, NotSerialized) { } CH03 ("mf9d", Z058, __LINE__, 0x00, 0x00) M000 () CH04 ("mf9d", 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) CH03 ("mf9d", Z058, __LINE__, 0x00, 0x00) M001 () CH04 ("mf9d", 0x00, 0xFF, Z058, __LINE__, 0x00, 0x00) } /* Access out of OpRegion and DataTableRegion */ Method (M708, 0, Serialized) { Method (M000, 1, Serialized) { OperationRegion (RGN0, SystemMemory, 0x00, Arg0) OperationRegion (RGN1, SystemIO, 0x0200, Arg0) /* UserDefRegionSpace */ OperationRegion (RGN2, 0x80, 0x0D00, Arg0) DataTableRegion (DR00, "SSDT", "", "") Field (RGN0, ByteAcc, NoLock, Preserve) { FU00, 2049 } Field (RGN1, ByteAcc, NoLock, Preserve) { FU01, 2049 } Field (RGN2, ByteAcc, NoLock, Preserve) { FU02, 2049 } Field (DR00, AnyAcc, NoLock, Preserve) { FU03, 497 } /* 0x1F0 == length of SSDT */ Local0 = 0x04 Local1 = 0x00 While (Local0) { Switch (Local1) { Case (0x00) { Local2 = RefOf (FU00) } Case (0x01) { Local2 = RefOf (FU01) } Case (0x02) { Local2 = RefOf (FU02) } Case (0x03) { Local2 = RefOf (FU03) } } Local3 = RefOf (Local2) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Write: except DataTableRegion */ If ((Local1 < 0x03)) { DerefOf (Local3) = 0x12345678 CH04 (__METHOD__, 0x00, 0x35, Z058, __LINE__, 0x00, 0x00)/* AE_AML_REGION_LIMIT */ } /* Read */ Local4 = DerefOf (Local2) /* July 2013 * * The Store above should actually cause two errors * 1) AE_AML_REGION_LIMIT * 2) AE_AML_NO_RETURN_VALUE * * Indicate we only care about the first by placing a 1 * in the second argument */ CH04 (__METHOD__, 0x01, 0x35, Z058, __LINE__, 0x00, 0x00) /* AE_AML_REGION_LIMIT */ Local0-- Local1++ } } M000 (0x0100) } /* Try non-copmputational data OpRegion arguments */ Method (M709, 0, Serialized) { Name (OFFP, Package (0x01) { 0xFEDCBA987654321F }) Name (LENP, Package (0x01) { 0x0123 }) Name (I000, 0x0100) /* These are now caught by the compiler - Aug 2015 */ /* */ /* Method(m000,, Serialized) { */ /* OperationRegion(OPR0, SystemMemory, offp, 1) */ /* } */ /* */ /* CH03(ts, z058, 188, __LINE__, 0) */ /* */ /* m000() */ /* */ /* CH04(ts, 0, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* */ /* OperationRegion(OPR1, SystemMemory, 1, lenp) */ /* */ /* CH04(ts, 0, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ } /* Try OpRegion arguments when Offset + Length > MaxInteger */ Method (M70A, 0, Serialized) { Name (OFF0, 0xFFFFFFFFFFFFFFF0) Name (LEN0, 0x11) OperationRegion (OPR0, SystemMemory, OFF0, LEN0) /*17+1 > 17. */ Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x11), FU00, 8 } /*16+2 > 17. */ Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x10), FU01, 8 } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) FU00 = 0x12 CH04 (__METHOD__, 0x00, 0x35, Z058, __LINE__, 0x00, 0x00) /* AE_AML_REGION_LIMIT */ FU01 = 0x12 CH04 (__METHOD__, 0x00, 0x35, Z058, __LINE__, 0x00, 0x00) /* AE_AML_REGION_LIMIT */ } /* Attempt to write into DataTableRegion */ Method (M70B, 0, Serialized) { DataTableRegion (DR00, "SSDT", "", "") Field (DR00, AnyAcc, NoLock, Preserve) { FU00, 384 } Local0 = FU00 /* \M70B.FU00 */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) FU00 = 0x00 CH04 (__METHOD__, 0x00, 0x10, Z058, __LINE__, 0x00, 0x00) /* AE_SUPPORT */ } /* Check non-String DataTableRegion *String arguments */ Method (M7F5, 0, Serialized) { Name (B000, Buffer (0x01) { 0x12 // . }) Name (I000, 0x12) Name (P000, Package (0x01) { 0x12 }) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) DataTableRegion (DR00, B000, "", "") CH04 (__METHOD__, 0x00, 0x05, Z058, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ DataTableRegion (DR01, "SSDT", B000, "") CH04 (__METHOD__, 0x00, 0x05, Z058, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ DataTableRegion (DR02, "SSDT", "", B000) CH04 (__METHOD__, 0x00, 0x05, Z058, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ DataTableRegion (DR03, I000, "", "") CH04 (__METHOD__, 0x00, 0x05, Z058, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ DataTableRegion (DR04, "SSDT", I000, "") CH04 (__METHOD__, 0x00, 0x05, Z058, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ DataTableRegion (DR05, "SSDT", "", I000) CH04 (__METHOD__, 0x00, 0x05, Z058, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ /* These are now caught by the compiler - Aug 2015 */ /* */ /* DataTableRegion (DR06, p000, "", i000) */ /* CH04(ts, 0, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* */ /* DataTableRegion (DR07, "SSDT", p000, "") */ /* CH04(ts, 0, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* */ /* DataTableRegion (DR08, "SSDT", "", p000) */ /* CH04(ts, 0, 47, z058, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ } /* Check SMBus OpRegion restictions */ Method (M7F6, 0, Serialized) { OperationRegion (SMBD, SMBus, 0x4200, 0x0100) Field (SMBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribQuick), FLD0, 8 } /* Create improper SMBus data buffer */ Name (BUFF, Buffer (0x21){}) CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) /* Invoke Write Quick transaction */ FLD0 = BUFF /* \M7F6.BUFF */ CH04 (__METHOD__, 0x00, 0x36, Z058, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ } /* Name space issues */ Method (M0BC, 0, Serialized) { Method (M000, 0, NotSerialized) { Return (0xABCD0000) } Method (M001, 0, NotSerialized) { Local0 = M000 () Method (M000, 0, NotSerialized) { Return (0xABCD0001) } Local1 = M000 () If ((Local0 != 0xABCD0000)) { ERR (__METHOD__, Z058, __LINE__, 0x00, 0x00, Local0, 0xABCD0000) } If ((Local1 != 0xABCD0001)) { ERR (__METHOD__, Z058, __LINE__, 0x00, 0x00, Local1, 0xABCD0001) } } Method (M002, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Return (0xABCD0002) } CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) M004 () CH04 (__METHOD__, 0x00, 0x05, Z058, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ } Method (M003, 0, NotSerialized) { /* Recursion */ CH03 (__METHOD__, Z058, __LINE__, 0x00, 0x00) M003 () CH04 (__METHOD__, 0x00, 0x54, Z058, __LINE__, 0x00, 0x00) /* AE_AML_METHOD_LIMIT */ Method (M003, 0, NotSerialized) { Return (0xABCD0002) } } M001 () M002 () /* m003() */ } /* Run-method */ Method (EXCP, 0, NotSerialized) { SRMT ("m140") M140 () SRMT ("m141") M141 () SRMT ("m142") M142 () SRMT ("m143") M143 () SRMT ("m144") M144 () SRMT ("m145") M145 () SRMT ("m085") M085 () SRMT ("m086") M086 () SRMT ("m148") M148 () SRMT ("m14b") M14B () SRMT ("m14c") M14C () SRMT ("m14d") M14D () SRMT ("m14e") M14E () SRMT ("m14f") M14F () SRMT ("m150") M150 (0x00) SRMT ("m151") M151 () SRMT ("m152") M152 () SRMT ("m153") M153 () SRMT ("m154") M154 () SRMT ("m155") M155 () SRMT ("m156") M156 () SRMT ("m157") M157 () SRMT ("m158") M158 () SRMT ("m087") M087 () SRMT ("m159") M159 () SRMT ("m15a") M15A () SRMT ("m15d") M15D () SRMT ("m15e") M15E () /* The sequence of calls below is important, */ /* since not initialized names can refer to */ /* the objects moved improperly into the cash */ /* between two calls to the same Method: */ SRMT ("m084-0") M084 (0x00) SRMT ("m084-1") M084 (0x01) SRMT ("m084-0-2") M084 (0x00) SRMT ("m1b3") M1B3 () SRMT ("mf9d") If (Y200) { MF9D () } Else { BLCK () } SRMT ("m708") M708 () SRMT ("m709") M709 () SRMT ("m70a") M70A () SRMT ("m70b") M70B () SRMT ("m7f5") If (Y223) { M7F5 () } Else { BLCK () } SRMT ("m7f6") M7F6 () SRMT ("m0bc") M0BC () } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc/MAIN.asl0000700000175000017500000000456114773714155027005 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* Run exceptional conditions complex test */ DefinitionBlock ("exc", "DSDT", 2, "Intel", "Many", 0x00000001) { /*TMP */ Method (XXXX, 1, NotSerialized) { Local0 = (Arg0 + 0x04) } /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/common/data.asl") Include ("../../../../runtime/collections/exceptions/exc/exc.asl") Include ("../../../../runtime/collections/functional/reference/ref71.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/exceptions/exc/RUN.asl") /* Final actions */ Store (FNSH (), Local7) /* TMP: */ Local0 = (Local7 + 0x01) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc/Makefile0000700000175000017500000000012714773714155027212 0ustar ivanhuivanhu# exc AMLMOD= exc COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/0000700000175000017500000000000014773714155027257 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/Makefile0000700000175000017500000000016314773714155030722 0ustar ivanhuivanhu# exc_operand MDIRS = \ exc_operand1 \ exc_operand2 # FULL TOP= ../../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/0000700000175000017500000000000014773714155031630 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/RUN.asl0000700000175000017500000000363114773714155033003 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Exceptions caused by inappropriate type of operands", TCLE, 0x02, W014)) { EOP2 () } FTTT () ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_01_int.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_01_0000700000175000017500000003347314773714155033006 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Integer * * (verify exceptions caused by the imprope use of Integer type objects) */ Name (Z093, 0x5D) Name (I100, 0xABCD1234) /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* Note: an object reference is defined by spec */ /* to be an Integer, nevertheless it is supposed */ /* that the product should distinguish Integer Data */ /* from a reference. */ /* */ Method (M4B1, 1, Serialized) { Name (I000, 0x76543210) Event (E000) /* Local Named Object */ Method (M000, 1, Serialized) { Name (I000, 0x89ABCDEF) /* DerefOf */ If (Y083) { Local1 = DerefOf (I000) CH06 (Arg0, 0x00, 0x2F) } /* Index */ Local1 = I000 [0x00] CH06 (Arg0, 0x02, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (I000, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x05, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, I000, Local1) CH06 (Arg0, 0x06, 0x2F) } /* Global Named Object */ Method (M001, 1, NotSerialized) { /* DerefOf */ If (Y083) { Local1 = DerefOf (I100) CH06 (Arg0, 0x07, 0x2F) } /* Index */ Local1 = I100 [0x00] CH06 (Arg0, 0x09, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (I100, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x0C, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, I100, Local1) CH06 (Arg0, 0x0D, 0x2F) } /* Argument */ Method (M002, 2, NotSerialized) { /* DerefOf */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x0E, 0x2F) /* Release */ Release (Arg1) CH06 (Arg0, 0x0F, 0x2F) /* Reset */ Reset (Arg1) CH06 (Arg0, 0x10, 0x2F) /* Signal */ Signal (Arg1) CH06 (Arg0, 0x11, 0x2F) /* Acquire */ Local1 = Acquire (Arg1, 0x0000) CH06 (Arg0, 0x12, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Arg1, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x15, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Arg1, Local1) CH06 (Arg0, 0x16, 0x2F) /* Index */ Local1 = Arg1 [0x00] CH06 (Arg0, 0x18, 0x2F) /* Wait */ Local1 = Wait (Arg1, 0x00) CH06 (Arg0, 0x19, 0x2F) /* Match */ Local1 = Match (Arg1, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x1A, 0x2F) } /* Local */ Method (M003, 1, NotSerialized) { Local0 = 0x89ABCDEF /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x1B, 0x2F) /* Release */ Release (Local0) CH06 (Arg0, 0x1C, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x1D, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x1E, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0000) CH06 (Arg0, 0x1F, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x22, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x23, 0x2F) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x25, 0x2F) /* Wait */ Local1 = Wait (Local0, 0x00) CH06 (Arg0, 0x26, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x27, 0x2F) } /* An element of Package */ Method (M004, 1, Serialized) { Name (P000, Package (0x01) { 0x89ABCDEF }) /* DeRefOf(Index(Package, Ind)) */ Local1 = DerefOf (DerefOf (P000 [0x00])) CH06 (Arg0, 0x28, 0x2F) Store (DerefOf (P000 [0x00]) [0x00], Local1) CH06 (Arg0, 0x29, 0x2F) Local1 = Match (DerefOf (P000 [0x00]), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x2A, 0x2F) /* DeRefOf(Index(Package, Ind, Dest)) */ Local1 = DerefOf (DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x2B, 0x2F) Store (DerefOf (Local0 = P000 [0x00]) [0x00], Local1) CH06 (Arg0, 0x2C, 0x2F) Local1 = Match (DerefOf (Local0 = P000 [0x00]), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x2D, 0x2F) } /* Reference to Object */ Method (M005, 2, NotSerialized) { Debug = Arg0 Debug = Arg1 Local0 = ObjectType (Arg1) If ((Local0 != 0x01)) { ERR (Arg0, Z093, __LINE__, 0x00, 0x00, Local0, 0x01) Return (0x01) } Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z093, __LINE__, 0x00, 0x00) Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x2F, 0x2F) Store (DerefOf (Arg1) [0x00], Local1) CH06 (Arg0, 0x30, 0x2F) Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x31, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M006, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 1, NotSerialized) { I000 = Arg0 Local0 = 0x89ABCDEF Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z093, __LINE__, 0x00, 0x00, I000, Arg1) } } Local1 = DerefOf (M000 (0x01)) CH06 (Arg0, 0x33, 0x2F) CH00 (Arg0, 0x01) Release (M000 (0x02)) CH06 (Arg0, 0x34, 0x2F) If (Y600) { CH00 (Arg0, 0x02) } Reset (M000 (0x03)) CH06 (Arg0, 0x35, 0x2F) If (Y600) { CH00 (Arg0, 0x03) } Signal (M000 (0x04)) CH06 (Arg0, 0x36, 0x2F) If (Y600) { CH00 (Arg0, 0x04) } Local1 = Acquire (M000 (0x05), 0x0000) CH06 (Arg0, 0x37, 0x2F) If (Y600) { CH00 (Arg0, 0x05) } Store (M000 (0x06) [0x00], Local1) CH06 (Arg0, 0x38, 0x2F) CH00 (Arg0, 0x06) Local1 = Wait (M000 (0x07), 0x00) CH06 (Arg0, 0x39, 0x2F) If (Y600) { CH00 (Arg0, 0x07) } Local1 = Match (M000 (0x08), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x3A, 0x2F) CH00 (Arg0, 0x08) } /* Reference to Object as Result of Method invocation */ Method (M007, 1, Serialized) { Name (I000, 0x89ABCDEF) Name (I001, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I001 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (I100) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (I000) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I001 != Arg1)) { ERR (Arg0, Z093, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4B1.M007.LPC0 */ I001 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) CH03 (__METHOD__, Z093, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) CH06 (Arg0, (0x3C + Local0), 0x2F) CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x3D + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x3E + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } CH03 (__METHOD__, Z093, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Argument */ M002 (__METHOD__, 0x76543210) /* Local */ M003 (__METHOD__) /* An element of Package */ M004 (__METHOD__) /* Reference to Local Named Object */ M005 (Concatenate (__METHOD__, "-m005-RefLocName"), RefOf (I000)) Local0 = RefOf (I000) M005 (Concatenate (__METHOD__, "-m005-RefLocName2"), Local0) CondRefOf (I000, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefLocName"), Local0) M005 (Concatenate (__METHOD__, "-m005-RefGlobName"), RefOf (I100)) Local0 = RefOf (I100) M005 (Concatenate (__METHOD__, "-m005-RefGlobName2"), Local0) CondRefOf (I100, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefGlobName"), Local0) /* Reference to Local */ Local0 = 0x89ABCDEF M005 (Concatenate (__METHOD__, "-m005-RefLocal"), RefOf (Local0)) Local1 = RefOf (Local0) M005 (Concatenate (__METHOD__, "-m005-RefLocal2"), Local1) CondRefOf (Local0, Local1) M005 (Concatenate (__METHOD__, "-m005-CondRefLocal"), Local1) /* Reference to Arg */ M005 (Concatenate (__METHOD__, "-m005-RefArg"), RefOf (Arg0)) Local0 = RefOf (Arg0) M005 (Concatenate (__METHOD__, "-m005-RefArg2"), Local0) CondRefOf (Arg0, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefArg"), Local0) /* Index to Package */ Name (P000, Package (0x01) { 0x76543210 }) If (Y113) { M005 (Concatenate (__METHOD__, "-m005-Index"), P000 [0x00]) } Store (P000 [0x00], Local0) M005 (Concatenate (__METHOD__, "-m005-Index2"), Local0) If (Y113) { M005 (Concatenate (__METHOD__, "-m005-Index3"), Local0 = P000 [0x00]) } Local0 = P000 [0x00] M005 (Concatenate (__METHOD__, "-m005-Index4"), Local0) Local1 = Local0 = P000 [0x00] M005 (Concatenate (__METHOD__, "-m005-Index5"), Local1) /* Result of Method invocation */ M006 (__METHOD__) /* Reference to Object as Result of Method invocation */ If (Y500) { M007 (__METHOD__) } } ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_08_method.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_08_0000700000175000017500000010147114773714155033007 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method * * (verify exceptions caused by the imprope use of Method type objects) */ Name (Z100, 0x64) Method (M4F0, 0, NotSerialized) { Return ("m4f0") } /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* */ Method (M4B8, 0, Serialized) { Method (M4F1, 0, NotSerialized) { Return ("m4f1") } Event (E000) Name (I000, 0x00) /* Local Named Object */ Method (M000, 1, NotSerialized) { Method (M4F2, 0, NotSerialized) { Return ("m4f2") } If (Y083) { Local1 = DerefOf (M4F2 ()) CH06 (Arg0, 0x00, 0x2F) } } /* Global Named Object */ Method (M001, 1, NotSerialized) { If (Y083) { Local1 = DerefOf (M4F0 ()) CH06 (Arg0, 0x01, 0x2F) } } /* Local */ Method (M002, 1, Serialized) { Method (M4F2, 0, NotSerialized) { Return ("m4f2") } Event (E000) CopyObject (DerefOf (RefOf (M4F2)), Local0) /* CondRefOf */ CondRefOf (Local0, Local1) CH03 (__METHOD__, Z100, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH03 (__METHOD__, Z100, __LINE__, 0x00, 0x00) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z100, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z100, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (Local0) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Local0 CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (Local0 + I000) /* \M4B8.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Local0 & I000) /* \M4B8.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Local0 % I000) /* \M4B8.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Local0 * I000) /* \M4B8.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Local0 | I000) /* \M4B8.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4B8.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4B8.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Local0 - I000) /* \M4B8.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Local0, I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Local0 ^ I000) /* \M4B8.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object */ Method (M003, 2, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != 0x08)) { ERR (Arg0, Z100, __LINE__, 0x00, 0x00, Local0, 0x08) Return (0x01) } Local1 = DerefOf (Arg1) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z100, __LINE__, 0x00, 0x00) } /* CondRefOf */ CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH03 (__METHOD__, Z100, __LINE__, 0x00, 0x00) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, 0x2F) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, 0x2F) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, 0x2F) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, 0x2F) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, 0x2F) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, 0x2F) /* Not */ Local1 = ~DerefOf (Arg1) CH06 (Arg0, 0x0E, 0x2F) /* ObjectType */ Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z100, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, 0x2F) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4B8.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4B8.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4B8.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4B8.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4B8.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4B8.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4B8.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4B8.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4B8.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M004, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 0, NotSerialized) { CopyObject (DerefOf (RefOf (M4F0)), Local0) Return (Local0) } /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ If (Y601) { Local1 = CondRefOf (M000) CH06 (Arg0, 0x00, 0x2F) CondRefOf (M000, Local1) CH06 (Arg0, 0x01, 0x2F) } /* CopyObject */ CopyObject (M000 (), Local1) CH03 (__METHOD__, Z100, __LINE__, 0x00, 0x00) /* Decrement */ M000 ()-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (M000 ()) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (M000 (), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (M000 (), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (M000 (), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ M000 ()++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !M000 () CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~M000 () CH06 (Arg0, 0x0D, 0x2F) /* ObjectType */ /* **** Nov. 2016: Method invocation as arg to ObjectType is now illegal */ Local0 = ObjectType (M000) CH03 (__METHOD__, Z100, __LINE__, 0x00, 0x00) /* RefOf */ /* **** Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* if (y601) { */ /* Store (RefOf(m000()), Local1) */ /* CH06(arg0, 14, 47) */ /* } */ /* Release */ Release (M000 ()) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (M000 ()) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (M000 ()) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (M000 ()) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (M000 ()) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (M000 ()) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = M000 () CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (M000 (), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (M000 (), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (M000 (), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (M000 (), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (M000 (), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (M000 (), 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (M000 () + I000) /* \M4B8.M004.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + M000 ()) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (M000 () & I000) /* \M4B8.M004.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & M000 ()) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (M000 (), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, M000 (), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (M000 (), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, M000 (), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (M000 (), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, M000 (), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (M000 (), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, M000 (), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, M000 ()) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = M000 () [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", M000 (), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (M000 () == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == M000 ()) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (M000 () > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > M000 ()) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (M000 () >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= M000 ()) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (M000 () < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < M000 ()) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (M000 () <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= M000 ()) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (M000 () != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != M000 ()) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (M000 () || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || M000 ()) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (M000 () % I000) /* \M4B8.M004.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % M000 ()) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (M000 () * I000) /* \M4B8.M004.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * M000 ()) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (M000 (), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, M000 (), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (M000 (), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, M000 (), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (M000 () | I000) /* \M4B8.M004.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | M000 ()) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (M000 () << I000) /* \M4B8.M004.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << M000 ()) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (M000 () >> I000) /* \M4B8.M004.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> M000 ()) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (M000 () - I000) /* \M4B8.M004.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - M000 ()) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (M000 (), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, M000 (), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (M000 (), I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, M000 ()) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (M000 () ^ I000) /* \M4B8.M004.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ M000 ()) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (M000 (), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", M000 (), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, M000 (), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (M000 (), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, M000 (), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, M000 (), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, M000 ()) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object as Result of Method invocation */ Method (M005, 1, Serialized) { Method (M4F2, 0, NotSerialized) { Return ("m4f2") } Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (M4F0) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (M4F2) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z100, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4B8.M005.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z100, __LINE__, 0x00, 0x00) } CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) If (!SLCK) { CH06 (Arg0, (0x01 + Local0), 0x2F) } CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x02 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x03 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } SET0 (Z100, __METHOD__, 0x00) CH03 (__METHOD__, Z100, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Local */ M002 (Concatenate (__METHOD__, "-m002")) /* Reference to Local Named Object */ M003 (Concatenate (__METHOD__, "-m003-RefLocName"), RefOf (M4F1)) Local0 = RefOf (M4F1) M003 (Concatenate (__METHOD__, "-m003-RefLocName2"), Local0) CondRefOf (M4F1, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefLocName"), Local0) M003 (Concatenate (__METHOD__, "-m003-RefGlobName"), RefOf (M4F0)) Local0 = RefOf (M4F0) M003 (Concatenate (__METHOD__, "-m003-RefGlobName2"), Local0) CondRefOf (M4F0, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefGlobName"), Local0) /* Reference to Object as element of Package */ Name (PP00, Package (0x01) { M4F0 }) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index"), PP00 [0x00]) } Store (PP00 [0x00], Local1) M003 (Concatenate (__METHOD__, "-m003-Index2"), Local1) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index3"), Local2 = PP00 [0x00]) } Local3 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index4"), Local3) Local5 = Local4 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index5"), Local5) /* Result of Method invocation */ M004 (Concatenate (__METHOD__, "-m004")) /* Reference to Object as Result of Method invocation */ M005 (Concatenate (__METHOD__, "-m005")) RST0 () } ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_11_pwr.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_11_0000700000175000017500000010222014773714155032772 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Power Resource * * (verify exceptions caused by the imprope use of Power Resource type objects) */ Name (Z103, 0x67) PowerResource (PW00, 0x01, 0x0000) { Method (M000, 0, NotSerialized) { Return (0x00) } } /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* */ Method (M4BB, 0, Serialized) { PowerResource (PW01, 0x01, 0x0000) { Method (M000, 0, NotSerialized) { Return (0x00) } } Event (E000) Name (I000, 0x00) /* Local Named Object */ Method (M000, 1, Serialized) { /* These are now caught by the compiler - Aug 2015 PowerResource(pw02, 1, 0) {Method(m000){return (0)}} if (y083) { Store (DerefOf(pw02), Local1) CH06(arg0, 0, 47) } */ } /* Global Named Object */ Method (M001, 1, NotSerialized) { /* These are now caught by the compiler - Aug 2015 if (y083) { Store (DerefOf(pw00), Local1) CH06(arg0, 1, 47) } */ } /* Local */ Method (M002, 1, Serialized) { PowerResource (PW02, 0x01, 0x0000) { Method (M000, 0, NotSerialized) { Return (0x00) } } Event (E000) CopyObject (PW02, Local0) /* CondRefOf */ CondRefOf (Local0, Local1) CH03 (__METHOD__, Z103, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH03 (__METHOD__, Z103, __LINE__, 0x00, 0x00) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z103, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z103, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (Local0) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Local0 CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (Local0 + I000) /* \M4BB.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Local0 & I000) /* \M4BB.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Local0 % I000) /* \M4BB.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Local0 * I000) /* \M4BB.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Local0 | I000) /* \M4BB.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4BB.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4BB.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Local0 - I000) /* \M4BB.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Local0, I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Local0 ^ I000) /* \M4BB.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object */ Method (M003, 2, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != 0x0B)) { ERR (Arg0, Z103, __LINE__, 0x00, 0x00, Local0, 0x0B) Return (0x01) } Local1 = DerefOf (Arg1) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z103, __LINE__, 0x00, 0x00) } /* CondRefOf */ CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH03 (__METHOD__, Z103, __LINE__, 0x00, 0x00) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, 0x2F) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, 0x2F) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, 0x2F) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, 0x2F) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, 0x2F) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, 0x2F) /* Not */ Local1 = ~DerefOf (Arg1) CH06 (Arg0, 0x0E, 0x2F) /* ObjectType */ Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z103, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, 0x2F) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4BB.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4BB.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4BB.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4BB.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4BB.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4BB.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4BB.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4BB.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4BB.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M004, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 0, NotSerialized) { CopyObject (PW00, Local0) Return (Local0) } /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ If (Y601) { Local1 = CondRefOf (M000) CH06 (Arg0, 0x00, 0x2F) Local1 = CondRefOf (M000) CH06 (Arg0, 0x01, 0x2F) } /* CopyObject */ CopyObject (M000 (), Local1) CH03 (__METHOD__, Z103, __LINE__, 0x00, 0x00) /* Decrement */ M000 ()-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (M000 ()) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (M000 (), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (M000 (), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (M000 (), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ M000 ()++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !M000 () CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~M000 () CH06 (Arg0, 0x0D, 0x2F) /* ObjectType */ /* **** Nov. 2016: Method invocation as arg to ObjectType is now illegal */ Local0 = ObjectType (M000) CH03 (__METHOD__, Z103, __LINE__, 0x00, 0x00) /* RefOf */ /* **** Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* if (y601) { */ /* Store (RefOf(m000()), Local1) */ /* CH06(arg0, 14, 47) */ /* } */ /* Release */ Release (M000 ()) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (M000 ()) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (M000 ()) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (M000 ()) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (M000 ()) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (M000 ()) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = M000 () CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (M000 (), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (M000 (), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (M000 (), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (M000 (), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (M000 (), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (M000 (), 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (M000 () + I000) /* \M4BB.M004.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + M000 ()) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (M000 () & I000) /* \M4BB.M004.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & M000 ()) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (M000 (), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, M000 (), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (M000 (), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, M000 (), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (M000 (), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, M000 (), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (M000 (), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, M000 (), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, M000 ()) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = M000 () [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", M000 (), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (M000 () == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == M000 ()) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (M000 () > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > M000 ()) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (M000 () >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= M000 ()) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (M000 () < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < M000 ()) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (M000 () <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= M000 ()) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (M000 () != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != M000 ()) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (M000 () || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || M000 ()) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (M000 () % I000) /* \M4BB.M004.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % M000 ()) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (M000 () * I000) /* \M4BB.M004.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * M000 ()) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (M000 (), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, M000 (), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (M000 (), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, M000 (), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (M000 () | I000) /* \M4BB.M004.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | M000 ()) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (M000 () << I000) /* \M4BB.M004.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << M000 ()) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (M000 () >> I000) /* \M4BB.M004.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> M000 ()) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (M000 () - I000) /* \M4BB.M004.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - M000 ()) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (M000 (), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, M000 (), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (M000 (), I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, M000 ()) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (M000 () ^ I000) /* \M4BB.M004.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ M000 ()) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (M000 (), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", M000 (), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, M000 (), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (M000 (), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, M000 (), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, M000 (), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, M000 ()) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object as Result of Method invocation */ Method (M005, 1, Serialized) { PowerResource (PW02, 0x01, 0x0000) { Method (M000, 0, NotSerialized) { Return (0x00) } } Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (PW00) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (PW02) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z103, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4BB.M005.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z103, __LINE__, 0x00, 0x00) } CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) If (!SLCK) { CH06 (Arg0, (0x01 + Local0), 0x2F) } CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x02 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x03 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } SET0 (Z103, __METHOD__, 0x00) CH03 (__METHOD__, Z103, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Local */ M002 (Concatenate (__METHOD__, "-m002")) /* Reference to Local Named Object */ M003 (Concatenate (__METHOD__, "-m003-RefLocName"), RefOf (PW01)) Local0 = RefOf (PW01) M003 (Concatenate (__METHOD__, "-m003-RefLocName2"), Local0) CondRefOf (PW01, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefLocName"), Local0) M003 (Concatenate (__METHOD__, "-m003-RefGlobName"), RefOf (PW00)) Local0 = RefOf (PW00) M003 (Concatenate (__METHOD__, "-m003-RefGlobName2"), Local0) CondRefOf (PW00, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefGlobName"), Local0) /* Reference to Object as element of Package */ Name (PP00, Package (0x01) { PW00 }) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index"), PP00 [0x00]) } Store (PP00 [0x00], Local1) M003 (Concatenate (__METHOD__, "-m003-Index2"), Local1) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index3"), Local2 = PP00 [0x00]) } Local3 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index4"), Local3) Local5 = Local4 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index5"), Local5) /* Result of Method invocation */ M004 (Concatenate (__METHOD__, "-m004")) /* Reference to Object as Result of Method invocation */ M005 (Concatenate (__METHOD__, "-m005")) RST0 () } ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_12_proc.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_12_0000700000175000017500000010123214773714155032775 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Processor * * (verify exceptions caused by the imprope use of Processor type objects) */ Name (Z104, 0x68) Processor (PR10, 0x00, 0xFFFFFFFF, 0x00){} /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* */ Method (M4BC, 0, Serialized) { Processor (PRC1, 0x00, 0xFFFFFFFF, 0x00){} Event (E000) Name (I000, 0x00) /* Local Named Object */ Method (M000, 1, Serialized) { /* These are now caught by the compiler - Aug 2015 Processor(prc2, 0, 0xFFFFFFFF, 0) {} if (y083) { Store (DerefOf(prc2), Local1) CH06(arg0, 0, 47) } */ } /* Global Named Object */ Method (M001, 1, NotSerialized) { /* These are now caught by the compiler - Aug 2015 if (y083) { Store (DerefOf(pr10), Local1) CH06(arg0, 1, 47) } */ } /* Local */ Method (M002, 1, Serialized) { Processor (PRC2, 0x00, 0xFFFFFFFF, 0x00){} Event (E000) CopyObject (PRC2, Local0) /* CondRefOf */ CondRefOf (Local0, Local1) CH03 (__METHOD__, Z104, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH03 (__METHOD__, Z104, __LINE__, 0x00, 0x00) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z104, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z104, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (Local0) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Local0 CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (Local0 + I000) /* \M4BC.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Local0 & I000) /* \M4BC.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Local0 % I000) /* \M4BC.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Local0 * I000) /* \M4BC.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Local0 | I000) /* \M4BC.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4BC.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4BC.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Local0 - I000) /* \M4BC.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Local0, I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Local0 ^ I000) /* \M4BC.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object */ Method (M003, 2, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != 0x0C)) { ERR (Arg0, Z104, __LINE__, 0x00, 0x00, Local0, 0x0C) Return (0x01) } Local1 = DerefOf (Arg1) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z104, __LINE__, 0x00, 0x00) } /* CondRefOf */ CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH03 (__METHOD__, Z104, __LINE__, 0x00, 0x00) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, 0x2F) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, 0x2F) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, 0x2F) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, 0x2F) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, 0x2F) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, 0x2F) /* Not */ Local1 = ~DerefOf (Arg1) CH06 (Arg0, 0x0E, 0x2F) /* ObjectType */ Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z104, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, 0x2F) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4BC.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4BC.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4BC.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4BC.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4BC.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4BC.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4BC.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4BC.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4BC.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M004, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 0, NotSerialized) { CopyObject (PR10, Local0) Return (Local0) } /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ If (Y601) { Local1 = CondRefOf (M000) CH06 (Arg0, 0x00, 0x2F) Local1 = CondRefOf (M000, Local1) CH06 (Arg0, 0x01, 0x2F) } /* CopyObject */ CopyObject (M000 (), Local1) CH03 (__METHOD__, Z104, __LINE__, 0x00, 0x00) /* Decrement */ M000 ()-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (M000 ()) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (M000 (), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (M000 (), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (M000 (), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ M000 ()++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !M000 () CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~M000 () CH06 (Arg0, 0x0D, 0x2F) /* ObjectType */ /* **** Nov. 2016: Method invocation as arg to ObjectType is now illegal */ Local0 = ObjectType (M000) CH03 (__METHOD__, Z104, __LINE__, 0x00, 0x00) /* RefOf */ /* **** Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* if (y601) { */ /* Store (RefOf(m000()), Local1) */ /* CH06(arg0, 14, 47) */ /* } */ /* Release */ Release (M000 ()) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (M000 ()) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (M000 ()) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (M000 ()) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (M000 ()) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (M000 ()) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = M000 () CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (M000 (), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (M000 (), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (M000 (), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (M000 (), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (M000 (), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (M000 (), 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (M000 () + I000) /* \M4BC.M004.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + M000 ()) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (M000 () & I000) /* \M4BC.M004.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & M000 ()) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (M000 (), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, M000 (), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (M000 (), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, M000 (), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (M000 (), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, M000 (), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (M000 (), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, M000 (), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, M000 ()) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = M000 () [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", M000 (), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (M000 () == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == M000 ()) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (M000 () > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > M000 ()) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (M000 () >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= M000 ()) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (M000 () < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < M000 ()) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (M000 () <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= M000 ()) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (M000 () != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != M000 ()) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (M000 () || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || M000 ()) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (M000 () % I000) /* \M4BC.M004.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % M000 ()) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (M000 () * I000) /* \M4BC.M004.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * M000 ()) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (M000 (), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, M000 (), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (M000 (), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, M000 (), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (M000 () | I000) /* \M4BC.M004.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | M000 ()) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (M000 () << I000) /* \M4BC.M004.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << M000 ()) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (M000 () >> I000) /* \M4BC.M004.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> M000 ()) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (M000 () - I000) /* \M4BC.M004.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - M000 ()) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (M000 (), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, M000 (), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (M000 (), I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, M000 ()) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (M000 () ^ I000) /* \M4BC.M004.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ M000 ()) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (M000 (), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", M000 (), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, M000 (), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (M000 (), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, M000 (), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, M000 (), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, M000 ()) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object as Result of Method invocation */ Method (M005, 1, Serialized) { Processor (PRC2, 0x00, 0xFFFFFFFF, 0x00){} Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (PR10) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (PRC2) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z104, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4BC.M005.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z104, __LINE__, 0x00, 0x00) } CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) If (!SLCK) { CH06 (Arg0, (0x01 + Local0), 0x2F) } CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x02 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x03 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } SET0 (Z104, __METHOD__, 0x00) CH03 (__METHOD__, Z104, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Local */ M002 (Concatenate (__METHOD__, "-m002")) /* Reference to Local Named Object */ M003 (Concatenate (__METHOD__, "-m003-RefLocName"), RefOf (PRC1)) Local0 = RefOf (PRC1) M003 (Concatenate (__METHOD__, "-m003-RefLocName2"), Local0) CondRefOf (PRC1, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefLocName"), Local0) M003 (Concatenate (__METHOD__, "-m003-RefGlobName"), RefOf (PR10)) Local0 = RefOf (PR10) M003 (Concatenate (__METHOD__, "-m003-RefGlobName2"), Local0) CondRefOf (PR10, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefGlobName"), Local0) /* Reference to Object as element of Package */ Name (PP00, Package (0x01) { PR10 }) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index"), PP00 [0x00]) } Store (PP00 [0x00], Local1) M003 (Concatenate (__METHOD__, "-m003-Index2"), Local1) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index3"), Local2 = PP00 [0x00]) } Local3 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index4"), Local3) Local5 = Local4 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index5"), Local5) /* Result of Method invocation */ M004 (Concatenate (__METHOD__, "-m004")) /* Reference to Object as Result of Method invocation */ M005 (Concatenate (__METHOD__, "-m005")) RST0 () } ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_04_pckg.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_04_0000700000175000017500000021334414773714155033006 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Package * * (verify exceptions caused by the imprope use of Package type objects) */ Name (Z096, 0x60) Name (P100, Package (0x01) { 0x61 }) /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* Note: Package can be used with Index */ Method (M4B4, 1, Serialized) { Name (P000, Package (0x01) { 0x62 }) Event (E000) Name (I000, 0x00) /* Local Named Object */ /* ASL compiler prohibits to use Package */ /* Named Objects in the most of operators */ Method (M000, 1, Serialized) { Name (P000, Package (0x01) { 0x63 }) /* CondRefOf */ Local1 = CondRefOf (P000) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) CondRefOf (P000, Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (P000, Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Decrement */ /* DerefOf */ /* These are now caught by the compiler - Aug 2015 if (y083) { Store (DerefOf(p000), Local1) CH06(arg0, 0, 47) } */ /* FindSetLeftBit */ /* FindSetRightBit */ /* FromBCD */ /* Increment */ /* LNot */ /* Not */ /* ObjectType */ Local1 = ObjectType (P000) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (P000) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (P000) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Sleep */ /* Stall */ /* Store */ Local1 = P000 /* \M4B4.M000.P000 */ CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* ToBCD */ /* ToBuffer */ /* ToDecimalString */ /* ToHexString */ /* ToInteger */ /* Acquire */ /* Add */ /* And */ /* Concatenate */ /* ConcatenateResTemplate */ /* Divide */ /* Fatal */ /* Index */ Local1 = P000 [0x00] CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Store (P000 [0x00], Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* LEqual */ /* LGreater */ /* LGreaterEqual */ /* LLess */ /* LLessEqual */ /* LNotEqual */ /* LOr */ /* Mod */ /* Multiply */ /* NAnd */ /* NOr */ /* Or */ /* ShiftLeft */ /* ShiftRight */ /* Subtract */ /* ToString */ /* Wait */ /* XOr */ /* Mid */ /* Match */ Local1 = Match (P000, MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) } /* Global Named Object */ Method (M001, 1, NotSerialized) { /* CondRefOf */ CondRefOf (P100, Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (P100, Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Decrement */ /* DerefOf */ /* These are now caught by the compiler - Aug 2015 if (y083) { Store (DerefOf(p100), Local1) CH06(arg0, 1, 47) } */ /* FindSetLeftBit */ /* FindSetRightBit */ /* FromBCD */ /* Increment */ /* LNot */ /* Not */ /* ObjectType */ Local1 = ObjectType (P100) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (P100) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (P100) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Sleep */ /* Stall */ /* Store */ Local1 = P100 /* \P100 */ CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* ToBCD */ /* ToBuffer */ /* ToDecimalString */ /* ToHexString */ /* ToInteger */ /* Acquire */ /* Add */ /* And */ /* Concatenate */ /* ConcatenateResTemplate */ /* Divide */ /* Fatal */ /* Index */ Store (P100 [0x00], Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* LEqual */ /* LGreater */ /* LGreaterEqual */ /* LLess */ /* LLessEqual */ /* LNotEqual */ /* LOr */ /* Mod */ /* Multiply */ /* NAnd */ /* NOr */ /* Or */ /* ShiftLeft */ /* ShiftRight */ /* Subtract */ /* ToString */ /* Wait */ /* XOr */ /* Mid */ /* Match */ Local1 = Match (P100, MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) } /* Argument */ Method (M002, 2, Serialized) { Event (E000) /* CondRefOf */ CondRefOf (Arg1, Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Arg1, Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Decrement */ Arg1-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Arg1, Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (Arg1, Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (Arg1, Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ Arg1++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !Arg1 CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~Arg1 CH06 (Arg0, 0x0D, 0x2F) /* ObjectType */ Local1 = ObjectType (Arg1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Arg1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Release */ Release (Arg1) CH06 (Arg0, 0x0E, 0x2F) /* Reset */ Reset (Arg1) CH06 (Arg0, 0x0F, 0x2F) /* Signal */ Signal (Arg1) CH06 (Arg0, 0x10, 0x2F) /* SizeOf */ Local1 = SizeOf (Arg1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Sleep */ Sleep (Arg1) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Arg1) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Arg1 CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* ToBCD */ ToBCD (Arg1, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Arg1, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Arg1, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Arg1, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Arg1, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Arg1, 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (Arg1 + I000) /* \M4B4.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + Arg1) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Arg1 & I000) /* \M4B4.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Arg1) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Arg1, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Arg1, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Arg1, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Arg1, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Arg1, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Arg1, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Arg1, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Arg1, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Arg1) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Arg1 [0x00] CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Index ("0", Arg1, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Arg1 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Arg1) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Arg1 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Arg1) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Arg1 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Arg1) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Arg1 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Arg1) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Arg1 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Arg1) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Arg1 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Arg1) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Arg1 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Arg1) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Arg1 % I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Arg1) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Arg1 * I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Arg1) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Arg1, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Arg1, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Arg1, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Arg1, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Arg1 | I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Arg1) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Arg1 << I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Arg1) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Arg1 >> I000) /* \M4B4.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Arg1) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Arg1 - I000) /* \M4B4.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Arg1) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Arg1, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Arg1, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Arg1, I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, Arg1) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Arg1 ^ I000) /* \M4B4.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Arg1) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Arg1, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Arg1, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Arg1, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Arg1, MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Local1 = Match (Package (0x01) { 0x01 }, MTR, Arg1, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Arg1, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Arg1) CH06 (Arg0, 0x7B, 0x2F) } /* Local */ Method (M003, 1, NotSerialized) { Local0 = Package (0x01) { 0x63 } /* CondRefOf */ CondRefOf (Local0, Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (Local0) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Local0 CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Local0 & I000) /* \M4B4.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Local0 [0x00] CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Local0 % I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Local0 * I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Local0 | I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4B4.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Local0 - I000) /* \M4B4.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Local0, I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Local0 ^ I000) /* \M4B4.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x2F) } /* An element of Package */ Method (M004, 1, Serialized) { Name (P000, Package (0x01) { Package (0x01) { 0x63 } }) /* DeRefOf(Index(Package, Ind)) */ /* CondRefOf */ CondRefOf (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (DerefOf (P000 [0x00]), Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Decrement */ DerefOf (P000 [0x00])-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (DerefOf (P000 [0x00])) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ DerefOf (P000 [0x00])++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !DerefOf (P000 [0x00]) CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~DerefOf (P000 [0x00]) CH06 (Arg0, 0x0D, 0x2F) /* ObjectType */ Local1 = ObjectType (DerefOf (P000 [0x00])) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (P000 [0x00])) CH06 (Arg0, 0x0E, 0x2F) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (P000 [0x00])) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Sleep */ Sleep (DerefOf (P000 [0x00])) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (DerefOf (P000 [0x00])) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = DerefOf (P000 [0x00]) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* ToBCD */ ToBCD (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ /* Add */ Local1 = (DerefOf (P000 [0x00]) + I000) /* \M4B4.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + DerefOf (P000 [0x00])) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (DerefOf (P000 [0x00]) & I000) /* \M4B4.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & DerefOf (P000 [0x00])) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (DerefOf (P000 [0x00]), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (P000 [0x00]), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (DerefOf (P000 [0x00]), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, DerefOf (P000 [0x00]), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (DerefOf (P000 [0x00]), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, DerefOf (P000 [0x00]), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (P000 [0x00])) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = DerefOf (P000 [0x00]) [0x00] CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Index ("0", DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (DerefOf (P000 [0x00]) == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == DerefOf (P000 [0x00])) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (DerefOf (P000 [0x00]) > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > DerefOf (P000 [0x00])) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (DerefOf (P000 [0x00]) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (P000 [0x00])) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (P000 [0x00]) < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < DerefOf (P000 [0x00])) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (DerefOf (P000 [0x00]) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (P000 [0x00])) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (P000 [0x00]) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (P000 [0x00])) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (P000 [0x00]) || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || DerefOf (P000 [0x00])) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (DerefOf (P000 [0x00]) % I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % DerefOf (P000 [0x00])) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (DerefOf (P000 [0x00]) * I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * DerefOf (P000 [0x00])) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (DerefOf (P000 [0x00]), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (DerefOf (P000 [0x00]), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (DerefOf (P000 [0x00]) | I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | DerefOf (P000 [0x00])) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (DerefOf (P000 [0x00]) << I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << DerefOf (P000 [0x00])) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (DerefOf (P000 [0x00]) >> I000) /* \M4B4.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> DerefOf (P000 [0x00])) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (DerefOf (P000 [0x00]) - I000) /* \M4B4.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - DerefOf (P000 [0x00])) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (DerefOf (P000 [0x00]), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (E000, DerefOf (P000 [0x00])) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (DerefOf (P000 [0x00]) ^ I000) /* \M4B4.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ DerefOf (P000 [0x00])) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (DerefOf (P000 [0x00]), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", DerefOf (P000 [0x00]), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (DerefOf (P000 [0x00]), MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (P000 [0x00]), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (P000 [0x00]), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (P000 [0x00])) CH06 (Arg0, 0x7B, 0x2F) /* DeRefOf(Index(Package, Ind, Dest)) */ /* CondRefOf */ CondRefOf (DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0xCC, 0x2F) /* CopyObject */ CopyObject (DerefOf (Local0 = P000 [0x00]), Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Decrement */ DerefOf (Local0 = P000 [0x00])-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ DerefOf (Local0 = P000 [0x00])++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !DerefOf (Local0 = P000 [0x00]) CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~DerefOf (Local0 = P000 [0x00]) CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (DerefOf (Local0 = P000 [0x00])) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0xCD, 0x2F) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Local0 = P000 [0x00])) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Sleep */ Sleep (DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = DerefOf (Local0 = P000 [0x00]) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* ToBCD */ ToBCD (DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ /* Add */ Local1 = (DerefOf (Local0 = P000 [0x00]) + I000) /* \M4B4.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (DerefOf (Local0 = P000 [0x00]) & I000) /* \M4B4.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (DerefOf (Local0 = P000 [0x00]), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Local0 = P000 [0x00]), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (DerefOf (Local0 = P000 [0x00]), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, DerefOf (Local0 = P000 [0x00]), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (DerefOf (Local0 = P000 [0x00]), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, DerefOf (Local0 = P000 [0x00]), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = DerefOf (Local0 = P000 [0x00]) [0x00] CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Index ("0", DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (DerefOf (Local0 = P000 [0x00]) == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (DerefOf (Local0 = P000 [0x00]) > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (DerefOf (Local0 = P000 [0x00]) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Local0 = P000 [0x00]) < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (DerefOf (Local0 = P000 [0x00]) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Local0 = P000 [0x00]) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Local0 = P000 [0x00]) || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (DerefOf (Local0 = P000 [0x00]) % I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (DerefOf (Local0 = P000 [0x00]) * I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (DerefOf (Local0 = P000 [0x00]), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (DerefOf (Local0 = P000 [0x00]), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (DerefOf (Local0 = P000 [0x00]) | I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (DerefOf (Local0 = P000 [0x00]) << I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (DerefOf (Local0 = P000 [0x00]) >> I000) /* \M4B4.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (DerefOf (Local0 = P000 [0x00]) - I000) /* \M4B4.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (DerefOf (Local0 = P000 [0x00]), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (E000, DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (DerefOf (Local0 = P000 [0x00]) ^ I000) /* \M4B4.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (DerefOf (Local0 = P000 [0x00]), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", DerefOf (Local0 = P000 [0x00]), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, DerefOf (Local0 = P000 [0x00]), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (DerefOf (Local0 = P000 [0x00]), MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Local0 = P000 [0x00]), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Local0 = P000 [0x00]), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object */ Method (M005, 2, NotSerialized) { Debug = Arg0 Debug = Arg1 Local0 = ObjectType (Arg1) If ((Local0 != 0x04)) { ERR (Arg0, Z096, __LINE__, 0x00, 0x00, Local0, 0x04) Return (0x01) } Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* CondRefOf */ Local1 = CondRefOf (DerefOf (Arg1)) CH06 (Arg0, 0x01, 0x2F) Local1 = CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x02, 0x2F) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, 0x2F) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, 0x2F) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, 0x2F) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, 0x2F) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, 0x2F) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, 0x2F) /* Not */ Local1 = ~DerefOf (Arg1) CH06 (Arg0, 0x0E, 0x2F) /* ObjectType */ Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, 0x2F) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4B4.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4B4.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4B4.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4B4.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4B4.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M006, 1, Serialized) { Method (M000, 0, NotSerialized) { /* intermediate storing to force ASL compiler */ /* not report "Invalid type (Method returns)" */ Local0 = Package (0x01) { 0x63 } Return (Local0) } Name (SS00, "0") /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ If (Y601) { Local1 = CondRefOf (M000) CH06 (Arg0, 0x00, 0x2F) CondRefOf (M000, Local1) CH06 (Arg0, 0x01, 0x2F) } /* CopyObject */ CopyObject (M000 (), Local1) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Decrement */ M000 ()-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (M000 ()) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (M000 (), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (M000 (), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (M000 (), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ M000 ()++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !M000 () CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~M000 () CH06 (Arg0, 0x0D, 0x2F) /* **** ObjectType */ /* Nov. 2012: Method invocation as arg to ObjectType is now illegal */ Local0 = ObjectType (M000) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* RefOf */ /* **** Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* if (y601) { */ /* Store (RefOf(m000()), Local1) */ /* CH06(arg0, 14, 47) */ /* } */ /* Release */ Release (M000 ()) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (M000 ()) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (M000 ()) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (M000 ()) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (M000 ()) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (M000 ()) CH06 (Arg0, 0x12, 0x2F) /* Store */ /* ToBCD */ ToBCD (M000 (), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (M000 (), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (M000 (), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (M000 (), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (M000 (), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (M000 (), 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (M000 () + I000) /* \M4B4.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + M000 ()) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (M000 () & I000) /* \M4B4.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & M000 ()) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (M000 (), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, M000 (), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (M000 (), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, M000 (), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (M000 (), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, M000 (), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (M000 (), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, M000 (), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, M000 ()) CH06 (Arg0, 0x35, 0x2F) /* Index */ If (Y900) { Local1 = M000 () [0x00] CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Index ("0", M000 (), Local1) CH06 (Arg0, 0x39, 0x2F) } Else { CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Local1 = M000 () [0x00] CH04 (__METHOD__, 0x00, 0x55, Z094, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Index ("0", M000 (), Local1) CH04 (__METHOD__, 0x00, 0xFF, Z094, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Local1 = SS00 [M000 ()] CH04 (__METHOD__, 0x00, 0x2F, Z094, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* LEqual */ Local1 = (M000 () == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == M000 ()) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (M000 () > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > M000 ()) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (M000 () >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= M000 ()) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (M000 () < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < M000 ()) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (M000 () <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= M000 ()) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (M000 () != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != M000 ()) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (M000 () || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || M000 ()) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (M000 () % I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % M000 ()) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (M000 () * I000) /* \M4B4.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * M000 ()) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (M000 (), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, M000 (), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (M000 (), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, M000 (), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (M000 () | I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | M000 ()) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (M000 () << I000) /* \M4B4.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << M000 ()) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (M000 () >> I000) /* \M4B4.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> M000 ()) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (M000 () - I000) /* \M4B4.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - M000 ()) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (M000 (), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, M000 (), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (M000 (), I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, M000 ()) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (M000 () ^ I000) /* \M4B4.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ M000 ()) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (M000 (), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", M000 (), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, M000 (), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (M000 (), MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) Local1 = Match (Package (0x01) { 0x01 }, MTR, M000 (), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, M000 (), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, M000 ()) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object as Result of Method invocation */ Method (M007, 1, Serialized) { Name (P000, Package (0x01) { 0x63 }) Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (P100) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (P000) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z096, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4B4.M007.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) CH06 (Arg0, (0x01 + Local0), 0x2F) CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x02 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x03 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } /* Result of Method with checking of invocation */ Method (M008, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 1, NotSerialized) { I000 = Arg0 Local0 = Package (0x01) { 0x63 } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z096, __LINE__, 0x00, 0x00, I000, Arg1) } } /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ If (Y601) { Local1 = CondRefOf (M000) CH06 (Arg0, 0x01, 0x2F) CH00 (Arg0, 0x01) } Local1 = CondRefOf (M000) CH06 (Arg0, 0x02, 0x2F) If (Y600) { CH00 (Arg0, 0x02) } /* DerefOf */ Local1 = DerefOf (M000 (0x03)) CH06 (Arg0, 0x03, 0x2F) CH00 (Arg0, 0x03) /* RefOf */ /* Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* if (y601) { */ /* Store (RefOf(m000(4)), Local1) */ /* CH06(arg0, 4, 47) */ /* CH00(arg0, 4) */ /* } */ /* Release */ Release (M000 (0x05)) CH06 (Arg0, 0x05, 0x2F) If (Y600) { CH00 (Arg0, 0x05) } /* Reset */ Reset (M000 (0x06)) CH06 (Arg0, 0x06, 0x2F) If (Y600) { CH00 (Arg0, 0x06) } /* Signal */ Signal (M000 (0x07)) CH06 (Arg0, 0x07, 0x2F) If (Y600) { CH00 (Arg0, 0x07) } /* Acquire */ Local1 = Acquire (M000 (0x08), 0x0000) CH06 (Arg0, 0x08, 0x2F) If (Y600) { CH00 (Arg0, 0x08) } /* Index */ CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) Store (M000 (0x09) [0x00], Local1) If (Y900) { CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x09) } Else { CH04 (__METHOD__, 0x00, 0x55, Z094, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Wait */ Local1 = Wait (M000 (0x0A), 0x00) CH06 (Arg0, 0x09, 0x2F) If (Y600) { CH00 (Arg0, 0x0A) } /* Match */ Local1 = Match (M000 (0x0B), MTR, 0x00, MTR, 0x00, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x0B) } SET0 (Z096, __METHOD__, 0x00) CH03 (__METHOD__, Z096, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Argument */ M002 (__METHOD__, Package (0x01) { 0x62 }) /* Local */ M003 (Concatenate (__METHOD__, "-m003")) /* An element of Package */ M004 (Concatenate (__METHOD__, "-m004")) /* Reference to Local Named Object */ M005 (Concatenate (__METHOD__, "-m005-RefLocName"), RefOf (P000)) Local0 = RefOf (P000) M005 (Concatenate (__METHOD__, "-m005-RefLocName2"), Local0) CondRefOf (P000, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefLocName"), Local0) M005 (Concatenate (__METHOD__, "-m005-RefGlobName"), RefOf (P100)) Local0 = RefOf (P100) M005 (Concatenate (__METHOD__, "-m005-RefGlobName2"), Local0) CondRefOf (P100, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefGlobName"), Local0) /* Reference to Local */ Local0 = Package (0x01) { 0x62 } M005 (Concatenate (__METHOD__, "-m005-RefLocal"), RefOf (Local0)) Local1 = RefOf (Local0) M005 (Concatenate (__METHOD__, "-m005-RefLocal2"), Local1) CondRefOf (Local0, Local1) M005 (Concatenate (__METHOD__, "-m005-CondRefLocal"), Local1) /* Reference to Arg */ M005 (Concatenate (__METHOD__, "-m005-RefArg"), RefOf (Arg0)) Local0 = RefOf (Arg0) M005 (Concatenate (__METHOD__, "-m005-RefArg2"), Local0) CondRefOf (Arg0, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefArg"), Local0) /* Index to Package */ Name (PP00, Package (0x01) { Package (0x01) { 0x62 } }) If (Y113) { M005 (Concatenate (__METHOD__, "-m005-Index"), PP00 [0x00]) } Store (PP00 [0x00], Local0) M005 (Concatenate (__METHOD__, "-m005-Index2"), Local0) If (Y113) { M005 (Concatenate (__METHOD__, "-m005-Index3"), Local0 = PP00 [0x00]) } Local0 = PP00 [0x00] M005 (Concatenate (__METHOD__, "-m005-Index4"), Local0) Local1 = Local0 = PP00 [0x00] M005 (Concatenate (__METHOD__, "-m005-Index5"), Local1) /* Result of Method invocation */ M006 (Concatenate (__METHOD__, "-m006")) /* Reference to Object as Result of Method invocation */ If (Y500) { M007 (Concatenate (__METHOD__, "-m007")) } /* Result of Method with checking of invocation */ M008 (Concatenate (__METHOD__, "-m008")) RST0 () } ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_06_dev.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_06_0000700000175000017500000010052514773714155033004 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Device * * (verify exceptions caused by the imprope use of Device type objects) */ Name (Z098, 0x62) Device (DEV0) { } /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* */ Method (M4B6, 0, Serialized) { Device (DEV1) { } Event (E000) Name (I000, 0x00) /* Local Named Object */ /* These are now caught by the compiler - Aug 2015 Method(m000, 1, Serialized) { Device(dev2) {} Store (DerefOf(dev2), Local1) CH06(arg0, 0, 47) } */ /* Global Named Object */ /* These are now caught by the compiler - Aug 2015 Method(m001, 1) { if (y083) { Store (DerefOf(dev0), Local1) CH06(arg0, 1, 47) } } */ /* Local */ Method (M002, 1, Serialized) { Device (DEV2) { } Event (E000) CopyObject (DEV2, Local0) /* CondRefOf */ CondRefOf (Local0, Local1) CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (Local0) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Local0 CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (Local0 + I000) /* \M4B6.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Local0 & I000) /* \M4B6.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Local0 % I000) /* \M4B6.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Local0 * I000) /* \M4B6.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Local0 | I000) /* \M4B6.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4B6.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4B6.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Local0 - I000) /* \M4B6.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Local0, I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Local0 ^ I000) /* \M4B6.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object */ Method (M003, 3, Serialized) { Name (EXC0, 0x2F) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (Arg1) If ((Local0 != 0x06)) { ERR (Arg0, Z098, __LINE__, 0x00, 0x00, Local0, 0x06) Return (0x01) } If (Arg2) { If (!Y503) { EXC0 = 0x3E /* AE_AML_NO_RETURN_VALUE */ } } Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) /* CondRefOf */ CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x01, EXC0) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH06 (Arg0, 0x02, EXC0) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, EXC0) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, EXC0) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, EXC0) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, EXC0) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, EXC0) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, EXC0) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, EXC0) /* Not */ Local1 = ~DerefOf (Arg1) CH06 (Arg0, 0x0E, EXC0) /* ObjectType */ Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, EXC0) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH06 (Arg0, 0x10, EXC0) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, EXC0) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, EXC0) /* Store */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x13, EXC0) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, EXC0) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, EXC0) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, EXC0) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, EXC0) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, EXC0) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4B6.I000 */ CH06 (Arg0, 0x21, EXC0) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, EXC0) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4B6.I000 */ CH06 (Arg0, 0x25, EXC0) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, EXC0) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, EXC0) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, EXC0) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, EXC0) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, EXC0) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, EXC0) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, EXC0) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, EXC0) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, EXC0) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, EXC0) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH06 (Arg0, 0x38, EXC0) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, EXC0) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, EXC0) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, EXC0) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, EXC0) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, EXC0) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, EXC0) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, EXC0) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, EXC0) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, EXC0) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4B6.I000 */ CH06 (Arg0, 0x4A, EXC0) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, EXC0) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4B6.I000 */ CH06 (Arg0, 0x4E, EXC0) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, EXC0) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, EXC0) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, EXC0) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, EXC0) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, EXC0) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4B6.I000 */ CH06 (Arg0, 0x5A, EXC0) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, EXC0) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4B6.I000 */ CH06 (Arg0, 0x5E, EXC0) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, EXC0) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4B6.I000 */ CH06 (Arg0, 0x62, EXC0) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, EXC0) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4B6.I000 */ CH06 (Arg0, 0x66, EXC0) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, EXC0) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, EXC0) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, EXC0) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, EXC0) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4B6.I000 */ CH06 (Arg0, 0x70, EXC0) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, EXC0) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, EXC0) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, EXC0) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, EXC0) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, EXC0) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, EXC0) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, EXC0) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, EXC0) Return (0x00) } /* Result of Method invocation */ Method (M004, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 0, NotSerialized) { CopyObject (DEV0, Local0) Return (Local0) } /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ CondRefOf (M000, Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (M000 (), Local1) CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) /* Decrement */ M000 ()-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (M000 ()) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (M000 (), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (M000 (), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (M000 (), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ M000 ()++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !M000 () CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~M000 () CH06 (Arg0, 0x0D, 0x2F) /* **** ObjectType */ /* Nov. 2016: Method invocation as arg to ObjectType is now illegal */ Local0 = ObjectType (M000) CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) /* RefOf */ /* **** Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* Store (RefOf(m000()), Local1) */ /* CH06(arg0, 14, 47) */ /* Release */ Release (M000 ()) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (M000 ()) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (M000 ()) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (M000 ()) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (M000 ()) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (M000 ()) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = M000 () CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (M000 (), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (M000 (), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (M000 (), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (M000 (), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (M000 (), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (M000 (), 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (M000 () + I000) /* \M4B6.M004.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + M000 ()) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (M000 () & I000) /* \M4B6.M004.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & M000 ()) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (M000 (), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, M000 (), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (M000 (), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, M000 (), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (M000 (), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, M000 (), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (M000 (), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, M000 (), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, M000 ()) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = M000 () [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", M000 (), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (M000 () == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == M000 ()) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (M000 () > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > M000 ()) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (M000 () >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= M000 ()) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (M000 () < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < M000 ()) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (M000 () <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= M000 ()) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (M000 () != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != M000 ()) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (M000 () || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || M000 ()) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (M000 () % I000) /* \M4B6.M004.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % M000 ()) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (M000 () * I000) /* \M4B6.M004.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * M000 ()) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (M000 (), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, M000 (), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (M000 (), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, M000 (), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (M000 () | I000) /* \M4B6.M004.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | M000 ()) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (M000 () << I000) /* \M4B6.M004.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << M000 ()) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (M000 () >> I000) /* \M4B6.M004.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> M000 ()) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (M000 () - I000) /* \M4B6.M004.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - M000 ()) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (M000 (), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, M000 (), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (M000 (), I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, M000 ()) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (M000 () ^ I000) /* \M4B6.M004.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ M000 ()) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (M000 (), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", M000 (), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, M000 (), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (M000 (), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, M000 (), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, M000 (), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, M000 ()) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object as Result of Method invocation */ Method (M005, 1, Serialized) { Device (DEV2) { } Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (DEV0) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (DEV2) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z098, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4B6.M005.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) CH06 (Arg0, (0x01 + Local0), 0x2F) CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x02 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x03 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } CH03 (__METHOD__, Z098, __LINE__, 0x00, 0x00) /* Local Named Object */ /* m000(ts) */ /* Global Named Object */ /* m001(ts) */ /* Local */ M002 (Concatenate (__METHOD__, "-m002")) /* Reference to Local Named Object */ M003 (Concatenate (__METHOD__, "-m003-RefLocName"), RefOf (DEV1), 0x01) Local0 = RefOf (DEV1) M003 (Concatenate (__METHOD__, "-m003-RefLocName2"), Local0, 0x01) CondRefOf (DEV1, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefLocName"), Local0, 0x01) M003 (Concatenate (__METHOD__, "-m003-RefGlobName"), RefOf (DEV0), 0x01) Local0 = RefOf (DEV0) M003 (Concatenate (__METHOD__, "-m003-RefGlobName2"), Local0, 0x01) CondRefOf (DEV0, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefGlobName"), Local0, 0x01) /* Reference to Object as element of Package */ Name (PP00, Package (0x01) { DEV0 }) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index"), PP00 [0x00], 0x00) } Store (PP00 [0x00], Local1) M003 (Concatenate (__METHOD__, "-m003-Index2"), Local1, 0x00) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index3"), Local2 = PP00 [0x00], 0x00) } Local3 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index4"), Local3, 0x00) Local5 = Local4 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index5"), Local5, 0x00) /* Result of Method invocation */ M004 (Concatenate (__METHOD__, "-m004")) /* Reference to Object as Result of Method invocation */ M005 (Concatenate (__METHOD__, "-m005")) } ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_operand2.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_ope0000700000175000017500000000553014773714155033203 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Exceptions caused by inappropriate type of operands */ Name (Z107, 0x6B) /* Run-method */ Method (EOP2, 0, NotSerialized) { SRMT ("m4b0") M4B0 (0x00) SRMT ("m4b1") M4B1 (0x76543210) SRMT ("m4b2") M4B2 ("2") SRMT ("m4b3") M4B3 (Buffer (0x01) { 0x62 // b }) SRMT ("m4b4") M4B4 (Package (0x01) { 0x62 }) SRMT ("m4b5") M4B5 () SRMT ("m4b6") If (Y120) { M4B6 () } Else { BLCK () } SRMT ("m4b7") M4B7 () SRMT ("m4b8") M4B8 () SRMT ("m4b9") M4B9 () SRMT ("m4ba") If (Y362) { M4BA () } Else { BLCK () } SRMT ("m4bb") M4BB () SRMT ("m4bc") M4BC () SRMT ("m4bd") If (Y120) { M4BD () } Else { BLCK () } SRMT ("m4be") M4BE () } ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_10_oreg.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_10_0000700000175000017500000010046414773714155033001 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Operation Region * * (verify exceptions caused by the imprope use of Operation Region type objects) */ Name (Z102, 0x66) OperationRegion (OPR9, SystemMemory, 0x0100, 0x0100) /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* */ Method (M4BA, 0, Serialized) { OperationRegion (OPR1, SystemMemory, 0x0100, 0x0100) Event (E000) Name (I000, 0x00) /* Local Named Object */ Method (M000, 1, Serialized) { /* These are now caught by the compiler - Aug 2015 OperationRegion(opr2, SystemMemory, 0x100, 0x100) Store (DerefOf(opr2), Local1) CH06(arg0, 0, 47) */ } /* Global Named Object */ Method (M001, 1, NotSerialized) { /* These are now caught by the compiler - Aug 2015 if (y083) { Store (DerefOf(opr9), Local1) CH06(arg0, 1, 47) } */ } /* Local */ Method (M002, 1, Serialized) { OperationRegion (OPR2, SystemMemory, 0x0100, 0x0100) Event (E000) CopyObject (OPR2, Local0) /* CondRefOf */ Local1 = CondRefOf (Local0) CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) CondRefOf (Local0, Local1) CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (Local0) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Local0 CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (Local0 + I000) /* \M4BA.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Local0 & I000) /* \M4BA.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Local0 % I000) /* \M4BA.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Local0 * I000) /* \M4BA.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Local0 | I000) /* \M4BA.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4BA.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4BA.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Local0 - I000) /* \M4BA.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Local0, I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Local0 ^ I000) /* \M4BA.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object */ Method (M003, 2, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != 0x0A)) { ERR (Arg0, Z102, __LINE__, 0x00, 0x00, Local0, 0x0A) Return (0x01) } Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) /* CondRefOf */ CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH06 (Arg0, 0x02, 0x2F) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, 0x2F) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, 0x2F) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, 0x2F) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, 0x2F) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, 0x2F) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, 0x2F) /* Not */ Local1 = ~DerefOf (Arg1) CH06 (Arg0, 0x0E, 0x2F) /* ObjectType */ Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, 0x2F) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4BA.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4BA.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4BA.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4BA.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4BA.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4BA.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4BA.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4BA.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4BA.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M004, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 0, NotSerialized) { CopyObject (OPR9, Local0) Return (Local0) } /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ CondRefOf (M000, Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (M000 (), Local1) CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) /* Decrement */ M000 ()-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (M000 ()) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (M000 (), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (M000 (), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (M000 (), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ M000 ()++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !M000 () CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~M000 () CH06 (Arg0, 0x0D, 0x2F) /* ObjectType */ /* **** Nov. 2016: Method invocation as arg to ObjectType is now illegal */ Local0 = ObjectType (M000) CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) /* RefOf */ /* **** Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* Store (RefOf(m000()), Local1) */ /* CH06(arg0, 14, 47) */ /* Release */ Release (M000 ()) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (M000 ()) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (M000 ()) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (M000 ()) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (M000 ()) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (M000 ()) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = M000 () CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (M000 (), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (M000 (), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (M000 (), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (M000 (), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (M000 (), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (M000 (), 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (M000 () + I000) /* \M4BA.M004.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + M000 ()) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (M000 () & I000) /* \M4BA.M004.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & M000 ()) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (M000 (), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, M000 (), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (M000 (), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, M000 (), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (M000 (), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, M000 (), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (M000 (), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, M000 (), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, M000 ()) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = M000 () [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", M000 (), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (M000 () == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == M000 ()) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (M000 () > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > M000 ()) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (M000 () >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= M000 ()) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (M000 () < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < M000 ()) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (M000 () <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= M000 ()) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (M000 () != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != M000 ()) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (M000 () || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || M000 ()) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (M000 () % I000) /* \M4BA.M004.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % M000 ()) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (M000 () * I000) /* \M4BA.M004.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * M000 ()) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (M000 (), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, M000 (), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (M000 (), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, M000 (), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (M000 () | I000) /* \M4BA.M004.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | M000 ()) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (M000 () << I000) /* \M4BA.M004.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << M000 ()) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (M000 () >> I000) /* \M4BA.M004.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> M000 ()) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (M000 () - I000) /* \M4BA.M004.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - M000 ()) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (M000 (), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, M000 (), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (M000 (), I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, M000 ()) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (M000 () ^ I000) /* \M4BA.M004.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ M000 ()) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (M000 (), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", M000 (), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, M000 (), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (M000 (), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, M000 (), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, M000 (), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, M000 ()) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object as Result of Method invocation */ Method (M005, 1, Serialized) { OperationRegion (OPR2, SystemMemory, 0x0100, 0x0100) Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (OPR9) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (OPR2) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z102, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4BA.M005.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) CH03 (__METHOD__, Z102, (0x09 + LPC0), 0x00, 0x00) CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) CH06 (Arg0, (0x01 + Local0), 0x2F) CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x02 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x03 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } CH03 (__METHOD__, Z102, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Local */ M002 (Concatenate (__METHOD__, "-m002")) /* Reference to Local Named Object */ M003 (Concatenate (__METHOD__, "-m003-RefLocName"), RefOf (OPR1)) Local0 = RefOf (OPR1) M003 (Concatenate (__METHOD__, "-m003-RefLocName2"), Local0) CondRefOf (OPR1, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefLocName"), Local0) M003 (Concatenate (__METHOD__, "-m003-RefGlobName"), RefOf (OPR9)) Local0 = RefOf (OPR9) M003 (Concatenate (__METHOD__, "-m003-RefGlobName2"), Local0) CondRefOf (OPR9, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefGlobName"), Local0) /* Reference to Object as element of Package */ Name (PP00, Package (0x01) { OPR9 }) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index"), PP00 [0x00]) } Store (PP00 [0x00], Local1) M003 (Concatenate (__METHOD__, "-m003-Index2"), Local1) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index3"), Local2 = PP00 [0x00]) } Local3 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index4"), Local3) Local5 = Local4 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index5"), Local5) /* Result of Method invocation */ M004 (Concatenate (__METHOD__, "-m004")) /* Reference to Object as Result of Method invocation */ M005 (Concatenate (__METHOD__, "-m005")) } ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_07_event.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_07_0000700000175000017500000010071614773714155033007 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Event * * (verify exceptions caused by the imprope use of Event type objects) */ Name (Z099, 0x63) Event (EV00) /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* */ Method (M4B7, 0, Serialized) { Event (EV01) Event (E000) Name (I000, 0x00) /* These are now caught by the compiler - Aug 2015 // Local Named Object Method(m000, 1, Serialized) { Event(ev02) if (y083) { Store (DerefOf(ev02), Local1) CH06(arg0, 0x100, 47) } } // Global Named Object Method(m001, 1) { if (y083) { Store (DerefOf(ev00), Local1) CH06(arg0, 0x101, 47) } } */ /* Local */ Method (M002, 1, Serialized) { Event (EV02) Event (E000) CopyObject (EV02, Local0) /* CondRefOf */ CondRefOf (Local0, Local1) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (Local0) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* Signal */ Signal (Local0) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* SizeOf */ Local1 = SizeOf (Local0) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Local0 CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (Local0 + I000) /* \M4B7.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Local0 & I000) /* \M4B7.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Local0 % I000) /* \M4B7.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Local0 * I000) /* \M4B7.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Local0 | I000) /* \M4B7.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4B7.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4B7.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Local0 - I000) /* \M4B7.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Local0, I000) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Local0 ^ I000) /* \M4B7.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object */ Method (M003, 2, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != 0x07)) { ERR (Arg0, Z099, __LINE__, 0x00, 0x00, Local0, 0x07) Return (0x01) } Local1 = DerefOf (Arg1) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z099, __LINE__, 0x00, 0x00) } /* CondRefOf */ CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, 0x2F) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, 0x2F) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, 0x2F) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, 0x2F) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, 0x2F) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, 0x2F) /* Not */ Local1 = ~DerefOf (Arg1) CH06 (Arg0, 0x0E, 0x2F) /* ObjectType */ Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, 0x2F) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4B7.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4B7.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4B7.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4B7.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4B7.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4B7.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4B7.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4B7.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4B7.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M004, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 0, NotSerialized) { CopyObject (EV00, Local0) Return (Local0) } /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ If (Y601) { Local1 = CondRefOf (M000) CH06 (Arg0, 0x00, 0x2F) CondRefOf (M000, Local1) CH06 (Arg0, 0x01, 0x2F) } /* CopyObject */ CopyObject (M000 (), Local1) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* Decrement */ M000 ()-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (M000 ()) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (M000 (), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (M000 (), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (M000 (), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ M000 ()++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !M000 () CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~M000 () CH06 (Arg0, 0x0D, 0x2F) /* ObjectType */ /* **** Nov. 2016: Method invocation as arg to ObjectType is now illegal */ Local0 = ObjectType (M000) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* RefOf */ /* **** Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* if (y601) { */ /* Store (RefOf(m000()), Local1) */ /* CH06(arg0, 14, 47) */ /* } */ /* Release */ Release (M000 ()) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (M000 ()) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (M000 ()) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (M000 ()) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (M000 ()) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (M000 ()) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = M000 () CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (M000 (), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (M000 (), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (M000 (), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (M000 (), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (M000 (), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (M000 (), 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (M000 () + I000) /* \M4B7.M004.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + M000 ()) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (M000 () & I000) /* \M4B7.M004.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & M000 ()) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (M000 (), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, M000 (), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (M000 (), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, M000 (), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (M000 (), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, M000 (), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (M000 (), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, M000 (), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, M000 ()) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = M000 () [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", M000 (), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (M000 () == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == M000 ()) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (M000 () > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > M000 ()) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (M000 () >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= M000 ()) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (M000 () < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < M000 ()) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (M000 () <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= M000 ()) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (M000 () != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != M000 ()) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (M000 () || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || M000 ()) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (M000 () % I000) /* \M4B7.M004.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % M000 ()) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (M000 () * I000) /* \M4B7.M004.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * M000 ()) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (M000 (), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, M000 (), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (M000 (), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, M000 (), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (M000 () | I000) /* \M4B7.M004.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | M000 ()) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (M000 () << I000) /* \M4B7.M004.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << M000 ()) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (M000 () >> I000) /* \M4B7.M004.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> M000 ()) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (M000 () - I000) /* \M4B7.M004.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - M000 ()) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (M000 (), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, M000 (), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (M000 (), I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, M000 ()) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (M000 () ^ I000) /* \M4B7.M004.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ M000 ()) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (M000 (), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", M000 (), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, M000 (), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (M000 (), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, M000 (), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, M000 (), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, M000 ()) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object as Result of Method invocation */ Method (M005, 1, Serialized) { Event (EV02) Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (EV00) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (EV02) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z099, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4B7.M005.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z099, __LINE__, 0x00, 0x00) } CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) If (!SLCK) { CH06 (Arg0, (0x01 + Local0), 0x2F) } CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x02 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x03 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } SET0 (Z099, __METHOD__, 0x00) CH03 (__METHOD__, Z099, __LINE__, 0x00, 0x00) /* Local Named Object */ /* m000(ts) */ /* Global Named Object */ /* m001(ts) */ /* Local */ M002 (Concatenate (__METHOD__, "-m002")) /* Reference to Local Named Object */ M003 (Concatenate (__METHOD__, "-m003-RefLocName"), RefOf (EV01)) Local0 = RefOf (EV01) M003 (Concatenate (__METHOD__, "-m003-RefLocName2"), Local0) CondRefOf (EV01, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefLocName"), Local0) M003 (Concatenate (__METHOD__, "-m003-RefGlobName"), RefOf (EV00)) Local0 = RefOf (EV00) M003 (Concatenate (__METHOD__, "-m003-RefGlobName2"), Local0) CondRefOf (EV00, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefGlobName"), Local0) /* Reference to Object as element of Package */ Name (PP00, Package (0x01) { EV00 }) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index"), PP00 [0x00]) } Store (PP00 [0x00], Local1) M003 (Concatenate (__METHOD__, "-m003-Index2"), Local1) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index3"), Local2 = PP00 [0x00]) } Local3 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index4"), Local3) Local5 = Local4 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index5"), Local5) /* Result of Method invocation */ M004 (Concatenate (__METHOD__, "-m004")) /* Reference to Object as Result of Method invocation */ M005 (Concatenate (__METHOD__, "-m005")) RST0 () } ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/MAIN.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/MAIN.as0000700000175000017500000000720114773714155032704 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("exc_operand2", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../runtime/cntl/DECL_5UP.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_00_undef.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_01_int.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_02_str.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_03_buf.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_04_pckg.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_05_funit.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_06_dev.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_07_event.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_08_method.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_09_mux.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_10_oreg.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_11_pwr.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_12_proc.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_13_tzone.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_14_bfield.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_operand2.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/Makefileacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/Makefil0000700000175000017500000000023714773714155033130 0ustar ivanhuivanhu# exc_operand2 AMLMOD= exc_operand2 COLL= ../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_00_undef.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_00_0000700000175000017500000013153214773714155033000 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Uninitialized Data * * (verify exceptions caused by use of Uninitialized Data) */ Name (Z092, 0x5C) /* Expected exceptions: */ /* */ /* 49 - AE_AML_UNINITIALIZED_LOCAL */ /* 50 - AE_AML_UNINITIALIZED_ARG */ /* 51 - AE_AML_UNINITIALIZED_ELEMENT */ Method (M4B0, 1, Serialized) { Name (I000, 0x00) Event (E000) /* Uninitialized Local */ Method (M000, 2, NotSerialized) { If (Arg1) { Local0 = 0x00 } /* CondRefOf */ CondRefOf (Local0, Local1) CH03 (__METHOD__, Z092, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH06 (Arg0, 0x00, 0x31) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x31) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x31) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x31) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x31) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x31) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x31) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x31) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x31) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z092, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z092, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x31) /* Reset */ Reset (Local0) CH06 (Arg0, 0x0E, 0x31) /* Signal */ Signal (Local0) CH06 (Arg0, 0x0F, 0x31) /* SizeOf */ Local1 = SizeOf (Local0) CH06 (Arg0, 0x10, 0x31) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x31) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x31) /* Store */ Local1 = Local0 CH06 (Arg0, 0x13, 0x31) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x31) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x31) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x31) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x31) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x31) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH06 (Arg0, 0x1E, 0x31) /* Add */ Local1 = (Local0 + I000) /* \M4B0.I000 */ CH06 (Arg0, 0x21, 0x31) Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x31) /* And */ Local1 = (Local0 & I000) /* \M4B0.I000 */ CH06 (Arg0, 0x25, 0x31) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x31) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x31) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x31) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x31) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x31) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x31) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x31) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x31) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x31) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x31) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x38, 0x31) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x31) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x31) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x31) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x31) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x31) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x31) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x31) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x31) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x31) /* Mod */ Local1 = (Local0 % I000) /* \M4B0.I000 */ CH06 (Arg0, 0x4A, 0x31) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x31) /* Multiply */ Local1 = (Local0 * I000) /* \M4B0.I000 */ CH06 (Arg0, 0x4E, 0x31) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x31) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x31) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x31) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x31) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x31) /* Or */ Local1 = (Local0 | I000) /* \M4B0.I000 */ CH06 (Arg0, 0x5A, 0x31) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x31) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4B0.I000 */ CH06 (Arg0, 0x5E, 0x31) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x31) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4B0.I000 */ CH06 (Arg0, 0x62, 0x31) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x31) /* Subtract */ Local1 = (Local0 - I000) /* \M4B0.I000 */ CH06 (Arg0, 0x66, 0x31) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x31) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x31) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x31) /* Wait */ Local1 = Wait (Local0, I000) CH06 (Arg0, 0x6C, 0x31) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x31) /* XOr */ Local1 = (Local0 ^ I000) /* \M4B0.I000 */ CH06 (Arg0, 0x70, 0x31) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x31) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x31) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x31) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x31) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x31) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x31) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x31) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x31) } /* Uninitialized element of Package */ Method (M001, 1, Serialized) { Name (P000, Package (0x01){}) /* DeRefOf(Index(Package, Ind)) */ Local1 = DerefOf (P000 [0x00]) CH04 (__METHOD__, 0x01, 0x33, Z092, __LINE__, 0x00, 0x00) /* CondRefOf */ CondRefOf (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x01, 0xFF) /* CopyObject */ CopyObject (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x02, 0xFF) /* Decrement */ DerefOf (P000 [0x00])-- CH06 (Arg0, 0x03, 0xFF) /* DerefOf */ Local1 = DerefOf (DerefOf (P000 [0x00])) CH06 (Arg0, 0x04, 0xFF) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x06, 0xFF) /* FindSetRightBit */ FindSetRightBit (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x08, 0xFF) /* FromBCD */ FromBCD (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x0A, 0xFF) /* Increment */ DerefOf (P000 [0x00])++ CH06 (Arg0, 0x0B, 0xFF) /* LNot */ Local1 = !DerefOf (P000 [0x00]) CH06 (Arg0, 0x0C, 0xFF) /* Not */ Local1 = ~DerefOf (P000 [0x00]) CH06 (Arg0, 0x0E, 0xFF) /* ObjectType */ If (X104) { Local1 = ObjectType (DerefOf (P000 [0x00])) CH03 (__METHOD__, Z092, __LINE__, 0x00, 0x00) } /* RefOf */ Local1 = RefOf (DerefOf (P000 [0x00])) CH06 (Arg0, 0x0F, 0xFF) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (P000 [0x00])) CH06 (Arg0, 0x10, 0xFF) /* Sleep */ Sleep (DerefOf (P000 [0x00])) CH06 (Arg0, 0x11, 0xFF) /* Stall */ Stall (DerefOf (P000 [0x00])) CH06 (Arg0, 0x12, 0xFF) /* Store */ Local1 = DerefOf (P000 [0x00]) CH06 (Arg0, 0x13, 0xFF) /* ToBCD */ ToBCD (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x15, 0xFF) /* ToBuffer */ ToBuffer (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x17, 0xFF) /* ToDecimalString */ ToDecimalString (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x19, 0xFF) /* ToHexString */ ToHexString (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x1B, 0xFF) /* ToInteger */ ToInteger (DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x1D, 0xFF) /* Acquire */ /* Add */ Local1 = (DerefOf (P000 [0x00]) + I000) /* \M4B0.I000 */ CH06 (Arg0, 0x21, 0xFF) Local1 = (I000 + DerefOf (P000 [0x00])) CH06 (Arg0, 0x22, 0xFF) /* And */ Local1 = (DerefOf (P000 [0x00]) & I000) /* \M4B0.I000 */ CH06 (Arg0, 0x25, 0xFF) Local1 = (I000 & DerefOf (P000 [0x00])) CH06 (Arg0, 0x26, 0xFF) /* Concatenate */ Concatenate (DerefOf (P000 [0x00]), I000, Local1) CH06 (Arg0, 0x29, 0xFF) Concatenate (I000, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x2A, 0xFF) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (P000 [0x00]), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0xFF) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x2E, 0xFF) /* Divide */ Divide (DerefOf (P000 [0x00]), I000, Local2) CH06 (Arg0, 0x31, 0xFF) Divide (I000, DerefOf (P000 [0x00]), Local2) CH06 (Arg0, 0x32, 0xFF) Divide (DerefOf (P000 [0x00]), I000, Local2, Local1) CH06 (Arg0, 0x33, 0xFF) Divide (I000, DerefOf (P000 [0x00]), Local2, Local1) CH06 (Arg0, 0x34, 0xFF) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (P000 [0x00])) CH06 (Arg0, 0x35, 0xFF) /* Index */ Local1 = DerefOf (P000 [0x00]) [0x00] CH06 (Arg0, 0x38, 0xFF) Index ("0", DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x39, 0xFF) /* LEqual */ Local1 = (DerefOf (P000 [0x00]) == I000) CH06 (Arg0, 0x3A, 0xFF) Local1 = (I000 == DerefOf (P000 [0x00])) CH06 (Arg0, 0x3B, 0xFF) /* LGreater */ Local1 = (DerefOf (P000 [0x00]) > I000) CH06 (Arg0, 0x3C, 0xFF) Local1 = (I000 > DerefOf (P000 [0x00])) CH06 (Arg0, 0x3D, 0xFF) /* LGreaterEqual */ Local1 = (DerefOf (P000 [0x00]) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (P000 [0x00])) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (P000 [0x00]) < I000) CH06 (Arg0, 0x40, 0xFF) Local1 = (I000 < DerefOf (P000 [0x00])) CH06 (Arg0, 0x41, 0xFF) /* LLessEqual */ Local1 = (DerefOf (P000 [0x00]) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (P000 [0x00])) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (P000 [0x00]) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (P000 [0x00])) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (P000 [0x00]) || I000) CH06 (Arg0, 0x46, 0xFF) Local1 = (I000 || DerefOf (P000 [0x00])) CH06 (Arg0, 0x47, 0xFF) /* Mod */ Local1 = (DerefOf (P000 [0x00]) % I000) /* \M4B0.I000 */ CH06 (Arg0, 0x4A, 0xFF) Local1 = (I000 % DerefOf (P000 [0x00])) CH06 (Arg0, 0x4B, 0xFF) /* Multiply */ Local1 = (DerefOf (P000 [0x00]) * I000) /* \M4B0.I000 */ CH06 (Arg0, 0x4E, 0xFF) Local1 = (I000 * DerefOf (P000 [0x00])) CH06 (Arg0, 0x4F, 0xFF) /* NAnd */ NAnd (DerefOf (P000 [0x00]), I000, Local1) CH06 (Arg0, 0x52, 0xFF) NAnd (I000, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x53, 0xFF) /* NOr */ NOr (DerefOf (P000 [0x00]), I000, Local1) CH06 (Arg0, 0x56, 0xFF) NOr (I000, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x57, 0xFF) /* Or */ Local1 = (DerefOf (P000 [0x00]) | I000) /* \M4B0.I000 */ CH06 (Arg0, 0x5A, 0xFF) Local1 = (I000 | DerefOf (P000 [0x00])) CH06 (Arg0, 0x5B, 0xFF) /* ShiftLeft */ Local1 = (DerefOf (P000 [0x00]) << I000) /* \M4B0.I000 */ CH06 (Arg0, 0x5E, 0xFF) Local1 = (I000 << DerefOf (P000 [0x00])) CH06 (Arg0, 0x5F, 0xFF) /* ShiftRight */ Local1 = (DerefOf (P000 [0x00]) >> I000) /* \M4B0.I000 */ CH06 (Arg0, 0x62, 0xFF) Local1 = (I000 >> DerefOf (P000 [0x00])) CH06 (Arg0, 0x63, 0xFF) /* Subtract */ Local1 = (DerefOf (P000 [0x00]) - I000) /* \M4B0.I000 */ CH06 (Arg0, 0x66, 0xFF) Local1 = (I000 - DerefOf (P000 [0x00])) CH06 (Arg0, 0x67, 0xFF) /* ToString */ ToString (DerefOf (P000 [0x00]), 0x01, Local1) CH06 (Arg0, 0x6A, 0xFF) ToString (I000, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x6B, 0xFF) /* Wait */ Local1 = Wait (E000, DerefOf (P000 [0x00])) CH06 (Arg0, 0x6D, 0xFF) /* XOr */ Local1 = (DerefOf (P000 [0x00]) ^ I000) /* \M4B0.I000 */ CH06 (Arg0, 0x70, 0xFF) Local1 = (I000 ^ DerefOf (P000 [0x00])) CH06 (Arg0, 0x71, 0xFF) /* Mid */ Mid (DerefOf (P000 [0x00]), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0xFF) Mid ("123", DerefOf (P000 [0x00]), 0x01, Local1) CH06 (Arg0, 0x76, 0xFF) Mid ("123", 0x01, DerefOf (P000 [0x00]), Local1) CH06 (Arg0, 0x77, 0xFF) /* Match */ Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (P000 [0x00]), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0xFF) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (P000 [0x00]), 0x00) CH06 (Arg0, 0x7A, 0xFF) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (P000 [0x00])) CH06 (Arg0, 0x7B, 0xFF) /* DeRefOf(Index(Package, Ind, Dest)) */ /* This should cause an exception */ /* on storing to Dest (see m001) */ Return (0x00) } /* // Causes Remark on compilation // Uninitialized Arg Method(m002, 2) { if (arg1) { Store(0, arg2) } // CondRefOf CondRefOf(arg2) CH03(ts, z092, 6, __LINE__, 0) CondRefOf(arg2, Local1) CH03(ts, z092, 7, __LINE__, 0) // CopyObject CopyObject(arg2, Local1) CH06(arg0, 0, 50) // Decrement Decrement(arg2) CH06(arg0, 1, 50) // DerefOf DerefOf(arg2) CH06(arg0, 2, 50) // FindSetLeftBit FindSetLeftBit(arg2) CH06(arg0, 3, 50) FindSetLeftBit(arg2, Local1) CH06(arg0, 4, 50) // FindSetRightBit FindSetRightBit(arg2) CH06(arg0, 5, 50) FindSetRightBit(arg2, Local1) CH06(arg0, 6, 50) // FromBCD FromBCD(arg2) CH06(arg0, 7, 50) FromBCD(arg2, Local1) CH06(arg0, 8, 50) // Increment Increment(arg2) CH06(arg0, 9, 50) // LNot LNot(arg2) CH06(arg0, 10, 50) // Not Not(arg2) CH06(arg0, 11, 50) Not(arg2, Local1) CH06(arg0, 12, 50) // ObjectType ObjectType(arg2) CH03(ts, z092, 8, __LINE__, 0) // RefOf RefOf(arg2) CH03(ts, z092, 9, __LINE__, 0) // Release Release(arg2) CH06(arg0, 13, 50) // Reset Reset(arg2) CH06(arg0, 14, 50) // Signal Signal(arg2) CH06(arg0, 15, 50) // SizeOf SizeOf(arg2) CH06(arg0, 16, 50) // Sleep Sleep(arg2) CH06(arg0, 17, 50) // Stall Stall(arg2) CH06(arg0, 18, 50) // Store Store(arg2, Local1) CH06(arg0, 19, 50) // ToBCD ToBCD(arg2) CH06(arg0, 20, 50) ToBCD(arg2, Local1) CH06(arg0, 21, 50) // ToBuffer ToBuffer(arg2) CH06(arg0, 22, 50) ToBuffer(arg2, Local1) CH06(arg0, 23, 50) // ToDecimalString ToDecimalString(arg2) CH06(arg0, 24, 50) ToDecimalString(arg2, Local1) CH06(arg0, 25, 50) // ToHexString ToHexString(arg2) CH06(arg0, 26, 50) ToHexString(arg2, Local1) CH06(arg0, 27, 50) // ToInteger ToInteger(arg2) CH06(arg0, 28, 50) ToInteger(arg2, Local1) CH06(arg0, 29, 50) // Acquire Store(Acquire(arg2, 100), Local1) CH06(arg0, 30, 50) // Add Add(arg2, i000) CH06(arg0, 31, 50) Add(i000, arg2) CH06(arg0, 32, 50) Add(arg2, i000, Local1) CH06(arg0, 33, 50) Add(i000, arg2, Local1) CH06(arg0, 34, 50) // And And(arg2, i000) CH06(arg0, 35, 50) And(i000, arg2) CH06(arg0, 36, 50) And(arg2, i000, Local1) CH06(arg0, 37, 50) And(i000, arg2, Local1) CH06(arg0, 38, 50) // Concatenate Concatenate(arg2, i000) CH06(arg0, 39, 50) Concatenate(i000, arg2) CH06(arg0, 40, 50) Concatenate(arg2, i000, Local1) CH06(arg0, 41, 50) Concatenate(i000, arg2, Local1) CH06(arg0, 42, 50) // ConcatenateResTemplate ConcatenateResTemplate(arg2, ResourceTemplate(){}) CH06(arg0, 43, 50) ConcatenateResTemplate(ResourceTemplate(){}, arg2) CH06(arg0, 44, 50) ConcatenateResTemplate(arg2, ResourceTemplate(){}, Local1) CH06(arg0, 45, 50) ConcatenateResTemplate(ResourceTemplate(){}, arg2, Local1) CH06(arg0, 46, 50) // Divide Divide(arg2, i000) CH06(arg0, 47, 50) Divide(i000, arg2) CH06(arg0, 48, 50) Divide(arg2, i000, Local2) CH06(arg0, 49, 50) Divide(i000, arg2, Local2) CH06(arg0, 50, 50) Divide(arg2, i000, Local2, Local1) CH06(arg0, 51, 50) Divide(i000, arg2, Local2, Local1) CH06(arg0, 52, 50) // Fatal Fatal(0xff, 0xffffffff, arg2) CH06(arg0, 53, 50) // Index Index(arg2, 0) CH06(arg0, 54, 50) Index("0", arg2) CH06(arg0, 55, 50) Index(arg2, 0, Local1) CH06(arg0, 56, 50) Index("0", arg2, Local1) CH06(arg0, 57, 50) // LEqual LEqual(arg2, i000) CH06(arg0, 58, 50) LEqual(i000, arg2) CH06(arg0, 59, 50) // LGreater LGreater(arg2, i000) CH06(arg0, 60, 50) LGreater(i000, arg2) CH06(arg0, 61, 50) // LGreaterEqual LGreaterEqual(arg2, i000) CH06(arg0, 62, 0xff) LGreaterEqual(i000, arg2) CH06(arg0, 63, 0xff) // LLess LLess(arg2, i000) CH06(arg0, 64, 50) LLess(i000, arg2) CH06(arg0, 65, 50) // LLessEqual LLessEqual(arg2, i000) CH06(arg0, 66, 0xff) LLessEqual(i000, arg2) CH06(arg0, 67, 0xff) // LNotEqual LNotEqual(arg2, i000) CH06(arg0, 68, 0xff) LNotEqual(i000, arg2) CH06(arg0, 69, 0xff) // LOr LOr(arg2, i000) CH06(arg0, 70, 50) LOr(i000, arg2) CH06(arg0, 71, 50) // Mod Mod(arg2, i000) CH06(arg0, 72, 50) Mod(i000, arg2) CH06(arg0, 73, 50) Mod(arg2, i000, Local1) CH06(arg0, 74, 50) Mod(i000, arg2, Local1) CH06(arg0, 75, 50) // Multiply Multiply(arg2, i000) CH06(arg0, 76, 50) Multiply(i000, arg2) CH06(arg0, 77, 50) Multiply(arg2, i000, Local1) CH06(arg0, 78, 50) Multiply(i000, arg2, Local1) CH06(arg0, 79, 50) // NAnd NAnd(arg2, i000) CH06(arg0, 80, 50) NAnd(i000, arg2) CH06(arg0, 81, 50) NAnd(arg2, i000, Local1) CH06(arg0, 82, 50) NAnd(i000, arg2, Local1) CH06(arg0, 83, 50) // NOr NOr(arg2, i000) CH06(arg0, 84, 50) NOr(i000, arg2) CH06(arg0, 85, 50) NOr(arg2, i000, Local1) CH06(arg0, 86, 50) NOr(i000, arg2, Local1) CH06(arg0, 87, 50) // Or Or(arg2, i000) CH06(arg0, 88, 50) Or(i000, arg2) CH06(arg0, 89, 50) Or(arg2, i000, Local1) CH06(arg0, 90, 50) Or(i000, arg2, Local1) CH06(arg0, 91, 50) // ShiftLeft ShiftLeft(arg2, i000) CH06(arg0, 92, 50) ShiftLeft(i000, arg2) CH06(arg0, 93, 50) ShiftLeft(arg2, i000, Local1) CH06(arg0, 94, 50) ShiftLeft(i000, arg2, Local1) CH06(arg0, 95, 50) // ShiftRight ShiftRight(arg2, i000) CH06(arg0, 96, 50) ShiftRight(i000, arg2) CH06(arg0, 97, 50) ShiftRight(arg2, i000, Local1) CH06(arg0, 98, 50) ShiftRight(i000, arg2, Local1) CH06(arg0, 99, 50) // Subtract Subtract(arg2, i000) CH06(arg0, 100, 50) Subtract(i000, arg2) CH06(arg0, 101, 50) Subtract(arg2, i000, Local1) CH06(arg0, 102, 50) Subtract(i000, arg2, Local1) CH06(arg0, 103, 50) // ToString ToString(arg2, 1) CH06(arg0, 104, 50) ToString(i000, arg2) CH06(arg0, 105, 50) ToString(arg2, 1, Local1) CH06(arg0, 106, 50) ToString(i000, arg2, Local1) CH06(arg0, 107, 50) // Wait Store(Wait(arg2, i000), Local1) CH06(arg0, 108, 50) Store(Wait(e000, arg2), Local1) CH06(arg0, 109, 50) // XOr XOr(arg2, i000) CH06(arg0, 110, 50) XOr(i000, arg2) CH06(arg0, 111, 50) XOr(arg2, i000, Local1) CH06(arg0, 112, 50) XOr(i000, arg2, Local1) CH06(arg0, 113, 50) // Mid Mid(arg2, 1, 1) CH06(arg0, 114, 50) Mid("123", arg2, 1) CH06(arg0, 115, 50) Mid("123", 1, arg2) CH06(arg0, 116, 50) Mid(arg2, 1, 1, Local1) CH06(arg0, 117, 50) Mid("123", arg2, 1, Local1) CH06(arg0, 118, 50) Mid("123", 1, arg2, Local1) CH06(arg0, 119, 50) // Match Match(arg2, MTR, 0, MTR, 0, 0) CH06(arg0, 120, 50) Match(Package(){1}, MTR, arg2, MTR, 0, 0) CH06(arg0, 121, 50) Match(Package(){1}, MTR, 0, MTR, arg2, 0) CH06(arg0, 122, 50) Match(Package(){1}, MTR, 0, MTR, 0, arg2) CH06(arg0, 123, 50) } */ /* Reference to Uninitialized Object */ Method (M003, 2, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != 0x00)) { ERR (Arg0, Z092, __LINE__, 0x00, 0x00, Local0, 0x00) Return (0x01) } Local1 = DerefOf (Arg1) CH04 (__METHOD__, 0x00, 0x3E, Z092, __LINE__, 0x00, 0x00) /* CondRefOf */ CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x01, 0xFF) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH06 (Arg0, 0x02, 0xFF) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, 0xFF) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, 0xFF) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, 0xFF) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, 0xFF) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, 0xFF) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, 0xFF) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, 0xFF) /* Not */ Store (~DerefOf (Arg1), Local1) CH06 (Arg0, 0x0E, 0xFF) /* ObjectType */ If (X104) { Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z092, __LINE__, 0x00, 0x00) } /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, 0xFF) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH06 (Arg0, 0x10, 0xFF) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, 0xFF) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, 0xFF) /* Store */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x13, 0xFF) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, 0xFF) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, 0xFF) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, 0xFF) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, 0xFF) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, 0xFF) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4B0.I000 */ CH06 (Arg0, 0x21, 0xFF) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, 0xFF) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4B0.I000 */ CH06 (Arg0, 0x25, 0xFF) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, 0xFF) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, 0xFF) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, 0xFF) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0xFF) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, 0xFF) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, 0xFF) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, 0xFF) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, 0xFF) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, 0xFF) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, 0xFF) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH06 (Arg0, 0x38, 0xFF) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, 0xFF) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, 0xFF) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, 0xFF) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, 0xFF) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, 0xFF) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, 0xFF) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, 0xFF) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, 0xFF) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, 0xFF) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4B0.I000 */ CH06 (Arg0, 0x4A, 0xFF) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, 0xFF) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4B0.I000 */ CH06 (Arg0, 0x4E, 0xFF) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, 0xFF) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, 0xFF) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, 0xFF) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, 0xFF) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, 0xFF) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4B0.I000 */ CH06 (Arg0, 0x5A, 0xFF) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, 0xFF) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4B0.I000 */ CH06 (Arg0, 0x5E, 0xFF) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, 0xFF) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4B0.I000 */ CH06 (Arg0, 0x62, 0xFF) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, 0xFF) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4B0.I000 */ CH06 (Arg0, 0x66, 0xFF) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, 0xFF) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, 0xFF) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, 0xFF) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, 0xFF) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4B0.I000 */ CH06 (Arg0, 0x70, 0xFF) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, 0xFF) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0xFF) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, 0xFF) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, 0xFF) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0xFF) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0xFF) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, 0xFF) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, 0xFF) Return (0x00) } /* Uninitialized Local in Return */ Method (M004, 1, NotSerialized) { If (Arg0) { Local0 = 0x00 } Return (Local0) } /* Uninitialized element of Package in Return */ Method (M005, 0, Serialized) { Name (P000, Package (0x01){}) Return (DerefOf (P000 [0x00])) } /* // Causes Remark on compilation // Uninitialized Arg in Return Method(m006, 1) { if (arg0) { Store(0, arg1) } Return (arg1) } */ /* Uninitialized Local in If */ Method (M007, 1, NotSerialized) { If (Arg0) { Local0 = 0x00 } Local1 = 0x00 If (Local0) { Local1 = 0x01 } Return (Local1) } /* Uninitialized element of Package in If */ Method (M008, 0, Serialized) { Name (P000, Package (0x01){}) Local1 = 0x00 If (DerefOf (P000 [0x00])) { Local1 = 0x01 } Return (Local1) } /* // Causes Remark on compilation // Uninitialized Arg in If Method(m009, 1) { if (arg0) { Store(0, arg1) } Store(0, Local1) if (arg1) { Store(1, Local1) } Return (Local1) } */ /* Uninitialized Local in Elseif */ Method (M00A, 1, NotSerialized) { If (Arg0) { Local0 = 0x00 } Local1 = 0x00 If (Arg0) { Local1 = 0x01 } ElseIf (Local0) { Local1 = 0x02 } Return (Local1) } /* Uninitialized element of Package in Elseif */ Method (M00B, 1, Serialized) { Name (P000, Package (0x01){}) Local1 = 0x00 If (Arg0) { Local1 = 0x01 } ElseIf (DerefOf (P000 [0x00])) { Local1 = 0x02 } Return (Local1) } /* // Causes Remark on compilation // Uninitialized Arg in If Method(m00c, 1) { if (arg0) { Store(0, arg1) } Store(0, Local1) if (arg0) { Store(1, Local1) } elseif (arg1) { Store(2, Local1) } Return (Local1) } */ Name (I001, 0x00) Method (M00D, 1, NotSerialized) { I001 = 0x01 } /* Uninitialized element of Package as parameter of a method */ Method (M00E, 1, Serialized) { Name (P000, Package (0x01){}) I001 = 0x00 M00D (DerefOf (P000 [0x00])) CH06 (Arg0, 0x00, 0x33) If ((I001 != 0x00)) { ERR (Arg0, Z092, __LINE__, 0x00, 0x00, I001, 0x00) } I001 = 0x00 Store (P000 [0x00], Local1) M00D (DerefOf (Local1)) CH06 (Arg0, 0x02, 0x33) If ((I001 != 0x00)) { ERR (Arg0, Z092, __LINE__, 0x00, 0x00, I001, 0x00) } I001 = 0x00 M00D (DerefOf (Local2 = P000 [0x00])) CH06 (Arg0, 0x04, 0x33) If ((I001 != 0x00)) { ERR (Arg0, Z092, __LINE__, 0x00, 0x00, I001, 0x00) } I001 = 0x00 Local3 = P000 [0x00] M00D (DerefOf (Local3)) CH06 (Arg0, 0x06, 0x33) If ((I001 != 0x00)) { ERR (Arg0, Z092, __LINE__, 0x00, 0x00, I001, 0x00) } I001 = 0x00 Local5 = Local4 = P000 [0x00] M00D (DerefOf (Local5)) CH06 (Arg0, 0x08, 0x33) If ((I001 != 0x00)) { ERR (Arg0, Z092, __LINE__, 0x00, 0x00, I001, 0x00) } } CH03 (__METHOD__, Z092, __LINE__, 0x00, 0x00) /* Uninitialized Local */ M000 (Concatenate (__METHOD__, "-m000"), 0x00) /* Uninitialized element of Package */ M001 (Concatenate (__METHOD__, "-m001")) /* // Causes Remark on compilation // Uninitialized Arg m002(Concatenate(ts, "-m002"), 0) */ /* Reference to Uninitialized Local */ If (Arg0) { Local0 = 0x00 } M003 (Concatenate (__METHOD__, "-m003-RefLocal"), RefOf (Local0)) /* Reference (Index) to Uninitialized element of Package */ If (Y502) { Name (P000, Package (0x01){}) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index"), P000 [0x00]) } Store (P000 [0x00], Local1) M003 (Concatenate (__METHOD__, "-m003-Index2"), Local1) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index3"), Local2 = P000 [0x00]) } Local3 = P000 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index4"), Local3) Local5 = Local4 = P000 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index5"), Local5) } /* Uninitialized Local in Return */ M004 (0x00) CH06 (__METHOD__, 0x00, 0x31) /* Uninitialized element of Package in Return */ If (Y502) { M005 () CH06 (__METHOD__, 0x01, 0x33) } /* // Causes Remark on compilation // Uninitialized Arg in Return m006(0) CH06(ts, 2, 50) */ /* Uninitialized Local in If */ M007 (0x00) CH06 (__METHOD__, 0x03, 0x31) /* Uninitialized element of Package in If */ If (Y502) { M008 () CH06 (__METHOD__, 0x04, 0x33) } /* // Causes Remark on compilation // Uninitialized Arg in If m009(0) CH06(ts, 5, 50) */ /* Uninitialized Local in Elseif */ M00A (0x00) CH06 (__METHOD__, 0x06, 0x31) /* Uninitialized element of Package in Elseif */ If (Y502) { M00B (0x00) CH06 (__METHOD__, 0x07, 0x33) } /* // Causes Remark on compilation // Uninitialized Arg in Elseif m00c(0) CH06(ts, 8, 50) */ /* Uninitialized Local as parameter of a method */ I001 = 0x00 M00D (Local0) CH06 (__METHOD__, 0x09, 0x31) If ((I001 != 0x00)) { ERR (__METHOD__, Z092, __LINE__, 0x00, 0x00, I001, 0x00) } /* Uninitialized element of Package as parameter of a method */ If (Y502) { M00E (Concatenate (__METHOD__, "-m00e")) } /* // Causes Remark on compilation // Uninitialized Arg as parameter of a method Store(0, i001) m00d(Arg1) CH06(ts, 11, 50) if (LNotEqual(i001, 0)) { err(ts, z092, __LINE__, i001, 0) } */ } ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_05_funit.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_05_0000700000175000017500000002355014773714155033005 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Field Unit * * (verify exceptions caused by the imprope use of Field Unit type objects) */ Name (Z097, 0x61) OperationRegion (RG01, SystemMemory, 0x0100, 0x0100) Field (RG01, ByteAcc, NoLock, Preserve) { FU00, 31, FU01, 65 } Name (II70, 0xABCD1234) Name (BI00, Buffer (0x09) { /* 0000 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB, // ........ /* 0008 */ 0xBC // . }) /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* See notes to m4b1 and m4b3 */ /* */ Method (M4B5, 0, Serialized) { Field (RG01, ByteAcc, NoLock, Preserve) { Offset (0x0C), FU02, 31, FU03, 65 } /* Local Named Object */ Method (M000, 1, Serialized) { Field (RG01, ByteAcc, NoLock, Preserve) { Offset (0x18), FU02, 31, FU03, 65 } FU02 = II70 /* \II70 */ FU03 = BI00 /* \BI00 */ /* Like Integer behaviour */ If (Y083) { Local1 = DerefOf (FU02) CH06 (Arg0, 0x00, 0x2F) } Store (FU02 [0x00], Local1) CH06 (Arg0, 0x01, 0x2F) /* Like Buffer behaviour */ If (Y083) { Local1 = DerefOf (FU03) CH06 (Arg0, 0x02, 0x2F) } Store (FU03 [0x00], Local1) If (Y900) { CH03 (__METHOD__, Z097, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0x55, Z094, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } /* Global Named Object */ Method (M001, 1, NotSerialized) { FU00 = II70 /* \II70 */ FU01 = BI00 /* \BI00 */ /* Like Integer behaviour */ If (Y083) { Local1 = DerefOf (FU00) CH06 (Arg0, 0x03, 0x2F) } Store (FU00 [0x00], Local1) CH06 (Arg0, 0x04, 0x2F) /* Like Buffer behaviour */ If (Y083) { Local1 = DerefOf (FU01) CH06 (Arg0, 0x05, 0x2F) } Store (FU01 [0x00], Local1) If (Y900) { CH03 (__METHOD__, Z097, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0x55, Z094, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } /* Reference to Object */ Method (M002, 3, NotSerialized) { Debug = Arg0 Debug = Arg1 Local0 = ObjectType (Arg1) If ((Local0 != 0x05)) { ERR (Arg0, Z097, __LINE__, 0x00, 0x00, Local0, 0x05) Return (0x01) } Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z097, __LINE__, 0x00, 0x00) Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x07, 0x2F) Store (DerefOf (Arg1) [0x00], Local1) If (Arg2) { /* Like Buffer behaviour */ If (Y900) { CH03 (__METHOD__, Z097, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0x55, Z097, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } Else { /* Like Integer behaviour */ CH06 (Arg0, 0x08, 0x2F) } Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x09, 0x2F) Return (0x00) } /* Reference to Object as Result of Method invocation */ Method (M003, 1, Serialized) { Field (RG01, ByteAcc, NoLock, Preserve) { Offset (0x18), FU02, 31, FU03, 65 } Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (FU00) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (FU01) } ElseIf ((Arg1 == 0x02)) { Local0 = RefOf (FU02) } ElseIf ((Arg1 == 0x03)) { Local0 = RefOf (FU03) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z097, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x04) Name (LPC0, 0x00) FU00 = II70 /* \II70 */ FU01 = BI00 /* \BI00 */ FU02 = II70 /* \II70 */ FU03 = BI00 /* \BI00 */ While (LPN0) { Local0 = (0x03 * LPC0) /* \M4B5.M003.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) CH03 (__METHOD__, Z097, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) CH06 (Arg0, (0x0B + Local0), 0x2F) CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) If ((LPC0 % 0x02)) { /* Like Buffer behaviour */ If (Y900) { CH03 (__METHOD__, Z097, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0x55, Z097, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } Else { /* Like Integer behaviour */ CH06 (Arg0, (0x0C + Local0), 0x2F) } CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x0D + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } CH03 (__METHOD__, Z097, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Reference to Local Named Object */ FU02 = II70 /* \II70 */ FU03 = BI00 /* \BI00 */ M002 (Concatenate (__METHOD__, "-m002-RefLocNameI"), RefOf (FU02), 0x00) Local0 = RefOf (FU02) M002 (Concatenate (__METHOD__, "-m002-RefLocName2I"), Local0, 0x00) CondRefOf (FU02, Local0) M002 (Concatenate (__METHOD__, "-m002-CondRefLocNameI"), Local0, 0x00) M002 (Concatenate (__METHOD__, "-m002-RefLocNameB"), RefOf (FU03), 0x01) Local0 = RefOf (FU03) M002 (Concatenate (__METHOD__, "-m002-RefLocName2B"), Local0, 0x01) CondRefOf (FU03, Local0) M002 (Concatenate (__METHOD__, "-m002-CondRefLocNameB"), Local0, 0x01) FU00 = II70 /* \II70 */ FU01 = BI00 /* \BI00 */ M002 (Concatenate (__METHOD__, "-m002-RefGlobNameI"), RefOf (FU00), 0x00) Local0 = RefOf (FU00) M002 (Concatenate (__METHOD__, "-m002-RefGlobName2I"), Local0, 0x00) CondRefOf (FU00, Local0) M002 (Concatenate (__METHOD__, "-m002-CondRefGlobNameI"), Local0, 0x00) M002 (Concatenate (__METHOD__, "-m002-RefGlobNameB"), RefOf (FU01), 0x01) Local0 = RefOf (FU01) M002 (Concatenate (__METHOD__, "-m002-RefGlobName2B"), Local0, 0x01) CondRefOf (FU01, Local0) M002 (Concatenate (__METHOD__, "-m002-CondRefGlobNameB"), Local0, 0x01) /* Reference to Object as Result of Method invocation */ M003 (__METHOD__) } ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_13_tzone.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_13_0000700000175000017500000010122014773714155032773 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Thermal Zone * * (verify exceptions caused by the imprope use of Thermal Zone type objects) */ Name (Z105, 0x69) ThermalZone (TZ00) { Name (N000, "tz00") } /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* */ Method (M4BD, 0, Serialized) { ThermalZone (TZ01) { Name (N000, "tz01") } Event (E000) Name (I000, 0x00) /* Local Named Object */ Method (M000, 1, Serialized) { /* These are now caught by the compiler - Aug 2015 ThermalZone (tz02) {Name(n000, "tz02")} Store (DerefOf(tz02), Local1) CH06(arg0, 0, 47) */ } /* Global Named Object */ Method (M001, 1, NotSerialized) { /* These are now caught by the compiler - Aug 2015 if (y083) { Store (DerefOf(tz00), Local1) CH06(arg0, 1, 47) } */ } /* Local */ Method (M002, 1, Serialized) { ThermalZone (TZ02) { Name (N000, "tz02") } Event (E000) CopyObject (TZ02, Local0) /* CondRefOf */ CondRefOf (Local0, Local1) CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (Local0) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Local0 CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (Local0 + I000) /* \M4BD.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Local0 & I000) /* \M4BD.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Local0 % I000) /* \M4BD.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Local0 * I000) /* \M4BD.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Local0 | I000) /* \M4BD.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4BD.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4BD.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Local0 - I000) /* \M4BD.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Local0, I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Local0 ^ I000) /* \M4BD.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object */ Method (M003, 3, Serialized) { Name (EXC0, 0x2F) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (Arg1) If ((Local0 != 0x0D)) { ERR (Arg0, Z105, __LINE__, 0x00, 0x00, Local0, 0x0D) Return (0x01) } If (Arg2) { If (!Y503) { EXC0 = 0x3E /* AE_AML_NO_RETURN_VALUE */ } } Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) /* CondRefOf */ CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x01, EXC0) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH06 (Arg0, 0x02, EXC0) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, EXC0) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, EXC0) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, EXC0) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, EXC0) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, EXC0) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, EXC0) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, EXC0) /* Not */ Local1 = ~DerefOf (Arg1) CH06 (Arg0, 0x0E, EXC0) /* ObjectType */ Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, EXC0) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH06 (Arg0, 0x10, EXC0) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, EXC0) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, EXC0) /* Store */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x13, EXC0) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, EXC0) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, EXC0) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, EXC0) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, EXC0) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, EXC0) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4BD.I000 */ CH06 (Arg0, 0x21, EXC0) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, EXC0) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4BD.I000 */ CH06 (Arg0, 0x25, EXC0) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, EXC0) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, EXC0) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, EXC0) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, EXC0) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, EXC0) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, EXC0) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, EXC0) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, EXC0) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, EXC0) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, EXC0) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH06 (Arg0, 0x38, EXC0) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, EXC0) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, EXC0) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, EXC0) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, EXC0) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, EXC0) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, EXC0) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, EXC0) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, EXC0) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, EXC0) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4BD.I000 */ CH06 (Arg0, 0x4A, EXC0) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, EXC0) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4BD.I000 */ CH06 (Arg0, 0x4E, EXC0) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, EXC0) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, EXC0) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, EXC0) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, EXC0) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, EXC0) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4BD.I000 */ CH06 (Arg0, 0x5A, EXC0) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, EXC0) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4BD.I000 */ CH06 (Arg0, 0x5E, EXC0) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, EXC0) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4BD.I000 */ CH06 (Arg0, 0x62, EXC0) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, EXC0) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4BD.I000 */ CH06 (Arg0, 0x66, EXC0) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, EXC0) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, EXC0) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, EXC0) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, EXC0) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4BD.I000 */ CH06 (Arg0, 0x70, EXC0) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, EXC0) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, EXC0) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, EXC0) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, EXC0) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, EXC0) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, EXC0) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, EXC0) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, EXC0) Return (0x00) } /* Result of Method invocation */ Method (M004, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 0, NotSerialized) { CopyObject (TZ00, Local0) Return (Local0) } /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ CondRefOf (M000, Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (M000 (), Local1) CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) /* Decrement */ M000 ()-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (M000 ()) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (M000 (), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (M000 (), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (M000 (), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ M000 ()++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !M000 () CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~M000 () CH06 (Arg0, 0x0D, 0x2F) /* ObjectType */ /* **** Nov. 2016: Method invocation as arg to ObjectType is now illegal */ Local0 = ObjectType (M000) CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) /* RefOf */ /* **** Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* Store (RefOf(m000()), Local1) */ /* CH06(arg0, 14, 47) */ /* Release */ Release (M000 ()) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (M000 ()) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (M000 ()) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (M000 ()) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (M000 ()) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (M000 ()) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = M000 () CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (M000 (), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (M000 (), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (M000 (), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (M000 (), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (M000 (), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (M000 (), 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (M000 () + I000) /* \M4BD.M004.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + M000 ()) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (M000 () & I000) /* \M4BD.M004.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & M000 ()) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (M000 (), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, M000 (), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (M000 (), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, M000 (), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (M000 (), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, M000 (), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (M000 (), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, M000 (), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, M000 ()) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = M000 () [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", M000 (), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (M000 () == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == M000 ()) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (M000 () > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > M000 ()) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (M000 () >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= M000 ()) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (M000 () < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < M000 ()) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (M000 () <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= M000 ()) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (M000 () != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != M000 ()) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (M000 () || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || M000 ()) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (M000 () % I000) /* \M4BD.M004.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % M000 ()) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (M000 () * I000) /* \M4BD.M004.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * M000 ()) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (M000 (), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, M000 (), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (M000 (), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, M000 (), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (M000 () | I000) /* \M4BD.M004.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | M000 ()) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (M000 () << I000) /* \M4BD.M004.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << M000 ()) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (M000 () >> I000) /* \M4BD.M004.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> M000 ()) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (M000 () - I000) /* \M4BD.M004.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - M000 ()) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (M000 (), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, M000 (), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (M000 (), I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, M000 ()) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (M000 () ^ I000) /* \M4BD.M004.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ M000 ()) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (M000 (), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", M000 (), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, M000 (), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (M000 (), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, M000 (), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, M000 (), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, M000 ()) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object as Result of Method invocation */ Method (M005, 1, Serialized) { ThermalZone (TZ02) { Name (N000, "tz02") } Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (TZ00) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (TZ02) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z105, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4BD.M005.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) CH06 (Arg0, (0x01 + Local0), 0x2F) CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x02 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x03 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } CH03 (__METHOD__, Z105, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Local */ If (Y504) { M002 (Concatenate (__METHOD__, "-m002")) } /* Reference to Local Named Object */ M003 (Concatenate (__METHOD__, "-m003-RefLocName"), RefOf (TZ01), 0x01) Local0 = RefOf (TZ01) M003 (Concatenate (__METHOD__, "-m003-RefLocName2"), Local0, 0x01) CondRefOf (TZ01, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefLocName"), Local0, 0x01) M003 (Concatenate (__METHOD__, "-m003-RefGlobName"), RefOf (TZ00), 0x01) Local0 = RefOf (TZ00) M003 (Concatenate (__METHOD__, "-m003-RefGlobName2"), Local0, 0x01) CondRefOf (TZ00, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefGlobName"), Local0, 0x01) /* Reference to Object as element of Package */ Name (PP00, Package (0x01) { TZ00 }) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index"), PP00 [0x00], 0x00) } Store (PP00 [0x00], Local1) M003 (Concatenate (__METHOD__, "-m003-Index2"), Local1, 0x00) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index3"), Local2 = PP00 [0x00], 0x00) } Local3 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index4"), Local3, 0x00) Local5 = Local4 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index5"), Local5, 0x00) /* Result of Method invocation */ If (Y504) { M004 (Concatenate (__METHOD__, "-m004")) } /* Reference to Object as Result of Method invocation */ M005 (Concatenate (__METHOD__, "-m005")) } ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_09_mux.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_09_0000700000175000017500000010106214773714155033004 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Mutex * * (verify exceptions caused by the imprope use of Mutex type objects) */ Name (Z101, 0x65) Mutex (MX10, 0x00) /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* */ Method (M4B9, 0, Serialized) { Mutex (MX01, 0x00) Event (E000) Name (I000, 0x00) /* Local Named Object */ Method (M000, 1, Serialized) { /* These are now caught by the compiler - Aug 2015 Mutex(mx02, 0) if (y083) { Store (DerefOf(mx02), Local1) CH06(arg0, 0, 47) } */ } /* Global Named Object */ Method (M001, 1, NotSerialized) { /* These are now caught by the compiler - Aug 2015 if (y083) { Store (DerefOf(mx10), Local1) CH06(arg0, 1, 47) } */ } /* Local */ Method (M002, 1, Serialized) { Mutex (MX02, 0x00) Event (E000) CopyObject (MX02, Local0) /* CondRefOf */ CondRefOf (Local0, Local1) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* CopyObject */ CopyObject (Local0, Local1) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* Decrement */ Local0-- CH06 (Arg0, 0x01, 0x2F) /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x02, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (Local0, Local1) CH06 (Arg0, 0x04, 0x2F) /* FindSetRightBit */ FindSetRightBit (Local0, Local1) CH06 (Arg0, 0x06, 0x2F) /* FromBCD */ FromBCD (Local0, Local1) CH06 (Arg0, 0x08, 0x2F) /* Increment */ Local0++ CH06 (Arg0, 0x09, 0x2F) /* LNot */ Local1 = !Local0 CH06 (Arg0, 0x0A, 0x2F) /* Not */ Local1 = ~Local0 CH06 (Arg0, 0x0C, 0x2F) /* ObjectType */ Local1 = ObjectType (Local0) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (Local0) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* Release */ Release (Local0) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (Local0) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (Local0) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (Local0) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = Local0 CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (Local0, Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (Local0, Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (Local0, Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (Local0, Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0064) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* Add */ Local1 = (Local0 + I000) /* \M4B9.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + Local0) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (Local0 & I000) /* \M4B9.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & Local0) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (Local0, I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, Local0, Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (Local0, I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, Local0, Local2) CH06 (Arg0, 0x32, 0x2F) Divide (Local0, I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, Local0, Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, Local0) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = Local0 [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", Local0, Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (Local0 == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == Local0) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (Local0 > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > Local0) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (Local0 >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= Local0) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (Local0 < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < Local0) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (Local0 <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= Local0) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (Local0 != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != Local0) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (Local0 || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || Local0) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (Local0 % I000) /* \M4B9.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % Local0) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (Local0 * I000) /* \M4B9.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * Local0) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (Local0, I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, Local0, Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (Local0, I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, Local0, Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (Local0 | I000) /* \M4B9.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | Local0) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (Local0 << I000) /* \M4B9.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << Local0) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (Local0 >> I000) /* \M4B9.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> Local0) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (Local0 - I000) /* \M4B9.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - Local0) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (Local0, 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, Local0, Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (Local0, I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, Local0) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (Local0 ^ I000) /* \M4B9.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ Local0) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (Local0, 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", Local0, 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, Local0, Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, Local0, MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, Local0, 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, Local0) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object */ Method (M003, 2, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != 0x09)) { ERR (Arg0, Z101, __LINE__, 0x00, 0x00, Local0, 0x09) Return (0x01) } Local1 = DerefOf (Arg1) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z101, __LINE__, 0x00, 0x00) } /* CondRefOf */ CondRefOf (DerefOf (Arg1), Local1) CH06 (Arg0, 0x01, 0x2F) /* CopyObject */ CopyObject (DerefOf (Arg1), Local1) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* Decrement */ DerefOf (Arg1)-- CH06 (Arg0, 0x03, 0x2F) /* DerefOf */ Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x04, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x06, 0x2F) /* FindSetRightBit */ FindSetRightBit (DerefOf (Arg1), Local1) CH06 (Arg0, 0x08, 0x2F) /* FromBCD */ FromBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x0A, 0x2F) /* Increment */ DerefOf (Arg1)++ CH06 (Arg0, 0x0B, 0x2F) /* LNot */ Local1 = !DerefOf (Arg1) CH06 (Arg0, 0x0C, 0x2F) /* Not */ Local1 = ~DerefOf (Arg1) CH06 (Arg0, 0x0E, 0x2F) /* ObjectType */ Local1 = ObjectType (DerefOf (Arg1)) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* RefOf */ Local1 = RefOf (DerefOf (Arg1)) CH06 (Arg0, 0x0F, 0x2F) /* Release */ /* Reset */ /* Signal */ /* SizeOf */ Local1 = SizeOf (DerefOf (Arg1)) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (DerefOf (Arg1)) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (DerefOf (Arg1)) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (DerefOf (Arg1), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (DerefOf (Arg1), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (DerefOf (Arg1), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ /* Add */ Local1 = (DerefOf (Arg1) + I000) /* \M4B9.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + DerefOf (Arg1)) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (DerefOf (Arg1) & I000) /* \M4B9.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & DerefOf (Arg1)) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (DerefOf (Arg1), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, DerefOf (Arg1), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (DerefOf (Arg1), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, DerefOf (Arg1), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (DerefOf (Arg1), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, DerefOf (Arg1), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, DerefOf (Arg1)) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = DerefOf (Arg1) [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", DerefOf (Arg1), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (DerefOf (Arg1) == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == DerefOf (Arg1)) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (DerefOf (Arg1) > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > DerefOf (Arg1)) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (DerefOf (Arg1) >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= DerefOf (Arg1)) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (DerefOf (Arg1) < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < DerefOf (Arg1)) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (DerefOf (Arg1) <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= DerefOf (Arg1)) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (DerefOf (Arg1) != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != DerefOf (Arg1)) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (DerefOf (Arg1) || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || DerefOf (Arg1)) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (DerefOf (Arg1) % I000) /* \M4B9.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % DerefOf (Arg1)) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (DerefOf (Arg1) * I000) /* \M4B9.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * DerefOf (Arg1)) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (DerefOf (Arg1), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (DerefOf (Arg1) | I000) /* \M4B9.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | DerefOf (Arg1)) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (DerefOf (Arg1) << I000) /* \M4B9.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << DerefOf (Arg1)) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (DerefOf (Arg1) >> I000) /* \M4B9.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> DerefOf (Arg1)) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (DerefOf (Arg1) - I000) /* \M4B9.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - DerefOf (Arg1)) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, DerefOf (Arg1), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (E000, DerefOf (Arg1)) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (DerefOf (Arg1) ^ I000) /* \M4B9.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ DerefOf (Arg1)) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (DerefOf (Arg1), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", DerefOf (Arg1), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, DerefOf (Arg1), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, DerefOf (Arg1), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, DerefOf (Arg1), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, DerefOf (Arg1)) CH06 (Arg0, 0x7B, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M004, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 0, NotSerialized) { CopyObject (MX10, Local0) Return (Local0) } /* CondRefOf */ /* **** 10/2016 changed method invocation to just a namestring */ /* CondRefOf no longer invokes the method */ If (Y601) { Local1 = CondRefOf (M000) CH06 (Arg0, 0x00, 0x2F) Local1 = CondRefOf (M000, Local1) CH06 (Arg0, 0x01, 0x2F) } /* CopyObject */ CopyObject (M000 (), Local1) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* Decrement */ M000 ()-- CH06 (Arg0, 0x02, 0x2F) /* DerefOf */ Local1 = DerefOf (M000 ()) CH06 (Arg0, 0x03, 0x2F) /* FindSetLeftBit */ FindSetLeftBit (M000 (), Local1) CH06 (Arg0, 0x05, 0x2F) /* FindSetRightBit */ FindSetRightBit (M000 (), Local1) CH06 (Arg0, 0x07, 0x2F) /* FromBCD */ FromBCD (M000 (), Local1) CH06 (Arg0, 0x09, 0x2F) /* Increment */ M000 ()++ CH06 (Arg0, 0x0A, 0x2F) /* LNot */ Local1 = !M000 () CH06 (Arg0, 0x0B, 0x2F) /* Not */ Local1 = ~M000 () CH06 (Arg0, 0x0D, 0x2F) /* ObjectType */ /* **** Nov. 2016: Method invocation as arg to ObjectType is now illegal */ Local0 = ObjectType (M000) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* RefOf */ /* **** Oct. 2016: Method invocation as arg to RefOf is now illegal */ /* if (y601) { */ /* Store (RefOf(m000()), Local1) */ /* CH06(arg0, 14, 47) */ /* } */ /* Release */ Release (M000 ()) CH06 (Arg0, 0x0D, 0x2F) /* Reset */ Reset (M000 ()) CH06 (Arg0, 0x0E, 0x2F) /* Signal */ Signal (M000 ()) CH06 (Arg0, 0x0F, 0x2F) /* SizeOf */ Local1 = SizeOf (M000 ()) CH06 (Arg0, 0x10, 0x2F) /* Sleep */ Sleep (M000 ()) CH06 (Arg0, 0x11, 0x2F) /* Stall */ Stall (M000 ()) CH06 (Arg0, 0x12, 0x2F) /* Store */ Local1 = M000 () CH06 (Arg0, 0x13, 0x2F) /* ToBCD */ ToBCD (M000 (), Local1) CH06 (Arg0, 0x15, 0x2F) /* ToBuffer */ ToBuffer (M000 (), Local1) CH06 (Arg0, 0x17, 0x2F) /* ToDecimalString */ ToDecimalString (M000 (), Local1) CH06 (Arg0, 0x19, 0x2F) /* ToHexString */ ToHexString (M000 (), Local1) CH06 (Arg0, 0x1B, 0x2F) /* ToInteger */ ToInteger (M000 (), Local1) CH06 (Arg0, 0x1D, 0x2F) /* Acquire */ Local1 = Acquire (M000 (), 0x0064) CH06 (Arg0, 0x1E, 0x2F) /* Add */ Local1 = (M000 () + I000) /* \M4B9.M004.I000 */ CH06 (Arg0, 0x21, 0x2F) Local1 = (I000 + M000 ()) CH06 (Arg0, 0x22, 0x2F) /* And */ Local1 = (M000 () & I000) /* \M4B9.M004.I000 */ CH06 (Arg0, 0x25, 0x2F) Local1 = (I000 & M000 ()) CH06 (Arg0, 0x26, 0x2F) /* Concatenate */ Concatenate (M000 (), I000, Local1) CH06 (Arg0, 0x29, 0x2F) Concatenate (I000, M000 (), Local1) CH06 (Arg0, 0x2A, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (M000 (), Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x2D, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, M000 (), Local1) CH06 (Arg0, 0x2E, 0x2F) /* Divide */ Divide (M000 (), I000, Local2) CH06 (Arg0, 0x31, 0x2F) Divide (I000, M000 (), Local2) CH06 (Arg0, 0x32, 0x2F) Divide (M000 (), I000, Local2, Local1) CH06 (Arg0, 0x33, 0x2F) Divide (I000, M000 (), Local2, Local1) CH06 (Arg0, 0x34, 0x2F) /* Fatal */ Fatal (0xFF, 0xFFFFFFFF, M000 ()) CH06 (Arg0, 0x35, 0x2F) /* Index */ Local1 = M000 () [0x00] CH06 (Arg0, 0x38, 0x2F) Index ("0", M000 (), Local1) CH06 (Arg0, 0x39, 0x2F) /* LEqual */ Local1 = (M000 () == I000) CH06 (Arg0, 0x3A, 0x2F) Local1 = (I000 == M000 ()) CH06 (Arg0, 0x3B, 0x2F) /* LGreater */ Local1 = (M000 () > I000) CH06 (Arg0, 0x3C, 0x2F) Local1 = (I000 > M000 ()) CH06 (Arg0, 0x3D, 0x2F) /* LGreaterEqual */ Local1 = (M000 () >= I000) CH06 (Arg0, 0x3E, 0xFF) Local1 = (I000 >= M000 ()) CH06 (Arg0, 0x3F, 0xFF) /* LLess */ Local1 = (M000 () < I000) CH06 (Arg0, 0x40, 0x2F) Local1 = (I000 < M000 ()) CH06 (Arg0, 0x41, 0x2F) /* LLessEqual */ Local1 = (M000 () <= I000) CH06 (Arg0, 0x42, 0xFF) Local1 = (I000 <= M000 ()) CH06 (Arg0, 0x43, 0xFF) /* LNotEqual */ Local1 = (M000 () != I000) CH06 (Arg0, 0x44, 0xFF) Local1 = (I000 != M000 ()) CH06 (Arg0, 0x45, 0xFF) /* LOr */ Local1 = (M000 () || I000) CH06 (Arg0, 0x46, 0x2F) Local1 = (I000 || M000 ()) CH06 (Arg0, 0x47, 0x2F) /* Mod */ Local1 = (M000 () % I000) /* \M4B9.M004.I000 */ CH06 (Arg0, 0x4A, 0x2F) Local1 = (I000 % M000 ()) CH06 (Arg0, 0x4B, 0x2F) /* Multiply */ Local1 = (M000 () * I000) /* \M4B9.M004.I000 */ CH06 (Arg0, 0x4E, 0x2F) Local1 = (I000 * M000 ()) CH06 (Arg0, 0x4F, 0x2F) /* NAnd */ NAnd (M000 (), I000, Local1) CH06 (Arg0, 0x52, 0x2F) NAnd (I000, M000 (), Local1) CH06 (Arg0, 0x53, 0x2F) /* NOr */ NOr (M000 (), I000, Local1) CH06 (Arg0, 0x56, 0x2F) NOr (I000, M000 (), Local1) CH06 (Arg0, 0x57, 0x2F) /* Or */ Local1 = (M000 () | I000) /* \M4B9.M004.I000 */ CH06 (Arg0, 0x5A, 0x2F) Local1 = (I000 | M000 ()) CH06 (Arg0, 0x5B, 0x2F) /* ShiftLeft */ Local1 = (M000 () << I000) /* \M4B9.M004.I000 */ CH06 (Arg0, 0x5E, 0x2F) Local1 = (I000 << M000 ()) CH06 (Arg0, 0x5F, 0x2F) /* ShiftRight */ Local1 = (M000 () >> I000) /* \M4B9.M004.I000 */ CH06 (Arg0, 0x62, 0x2F) Local1 = (I000 >> M000 ()) CH06 (Arg0, 0x63, 0x2F) /* Subtract */ Local1 = (M000 () - I000) /* \M4B9.M004.I000 */ CH06 (Arg0, 0x66, 0x2F) Local1 = (I000 - M000 ()) CH06 (Arg0, 0x67, 0x2F) /* ToString */ ToString (M000 (), 0x01, Local1) CH06 (Arg0, 0x6A, 0x2F) ToString (I000, M000 (), Local1) CH06 (Arg0, 0x6B, 0x2F) /* Wait */ Local1 = Wait (M000 (), I000) CH06 (Arg0, 0x6C, 0x2F) Local1 = Wait (E000, M000 ()) CH06 (Arg0, 0x6D, 0x2F) /* XOr */ Local1 = (M000 () ^ I000) /* \M4B9.M004.I000 */ CH06 (Arg0, 0x70, 0x2F) Local1 = (I000 ^ M000 ()) CH06 (Arg0, 0x71, 0x2F) /* Mid */ Mid (M000 (), 0x01, 0x01, Local1) CH06 (Arg0, 0x75, 0x2F) Mid ("123", M000 (), 0x01, Local1) CH06 (Arg0, 0x76, 0x2F) Mid ("123", 0x01, M000 (), Local1) CH06 (Arg0, 0x77, 0x2F) /* Match */ Local1 = Match (M000 (), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x78, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, M000 (), MTR, 0x00, 0x00) CH06 (Arg0, 0x79, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, M000 (), 0x00) CH06 (Arg0, 0x7A, 0x2F) Local1 = Match (Package (0x01) { 0x01 }, MTR, 0x00, MTR, 0x00, M000 ()) CH06 (Arg0, 0x7B, 0x2F) } /* Reference to Object as Result of Method invocation */ Method (M005, 1, Serialized) { Mutex (MX02, 0x00) Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (MX10) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (MX02) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z101, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4B9.M005.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) If (!SLCK) { CH04 (__METHOD__, 0x00, 0x2F, Z101, __LINE__, 0x00, 0x00) } CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) If (!SLCK) { CH06 (Arg0, (0x01 + Local0), 0x2F) } CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x02 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x03 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } SET0 (Z101, __METHOD__, 0x00) CH03 (__METHOD__, Z101, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Local */ M002 (Concatenate (__METHOD__, "-m002")) /* Reference to Local Named Object */ M003 (Concatenate (__METHOD__, "-m003-RefLocName"), RefOf (MX01)) Local0 = RefOf (MX01) M003 (Concatenate (__METHOD__, "-m003-RefLocName2"), Local0) CondRefOf (MX01, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefLocName"), Local0) M003 (Concatenate (__METHOD__, "-m003-RefGlobName"), RefOf (MX10)) Local0 = RefOf (MX10) M003 (Concatenate (__METHOD__, "-m003-RefGlobName2"), Local0) CondRefOf (MX10, Local0) M003 (Concatenate (__METHOD__, "-m003-CondRefGlobName"), Local0) /* Reference to Object as element of Package */ Name (PP00, Package (0x01) { MX10 }) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index"), PP00 [0x00]) } Store (PP00 [0x00], Local1) M003 (Concatenate (__METHOD__, "-m003-Index2"), Local1) If (Y113) { M003 (Concatenate (__METHOD__, "-m003-Index3"), Local2 = PP00 [0x00]) } Local3 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index4"), Local3) Local5 = Local4 = PP00 [0x00] M003 (Concatenate (__METHOD__, "-m003-Index5"), Local5) /* Result of Method invocation */ M004 (Concatenate (__METHOD__, "-m004")) /* Reference to Object as Result of Method invocation */ M005 (Concatenate (__METHOD__, "-m005")) RST0 () } ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_14_bfield.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_14_0000700000175000017500000002322214773714155033001 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Buffer Field * * (verify exceptions caused by the imprope use of Buffer Field type objects) */ Name (Z106, 0x6A) Name (B700, Buffer (0x14){}) CreateField (B700, 0x0B, 0x1F, BF20) CreateField (B700, 0x3A, 0x41, BF21) Name (II71, 0xABCD1234) Name (BI01, Buffer (0x09) { /* 0000 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB, // ........ /* 0008 */ 0xBC // . }) /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* See notes to m4b1 and m4b3 */ /* */ Method (M4BE, 0, Serialized) { Name (BBF1, Buffer (0x14){}) CreateField (BBF1, 0x0B, 0x1F, BF02) CreateField (BBF1, 0x3A, 0x41, BF03) /* Local Named Object */ Method (M000, 1, Serialized) { Name (BBF1, Buffer (0x14){}) CreateField (BBF1, 0x0B, 0x1F, BF02) CreateField (BBF1, 0x3A, 0x41, BF03) BF02 = II71 /* \II71 */ BF03 = BI01 /* \BI01 */ /* Like Integer behaviour */ If (Y083) { Local1 = DerefOf (BF02) CH06 (Arg0, 0x00, 0x2F) } Store (BF02 [0x00], Local1) CH03 (__METHOD__, Z106, __LINE__, 0x00, 0x00) /* Like Buffer behaviour */ If (Y083) { Local1 = DerefOf (BF03) CH06 (Arg0, 0x02, 0x2F) } Store (BF03 [0x00], Local1) If (Y900) { CH03 (__METHOD__, Z106, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0x55, Z106, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } /* Global Named Object */ Method (M001, 1, NotSerialized) { BF20 = II71 /* \II71 */ BF21 = BI01 /* \BI01 */ /* Like Integer behaviour */ If (Y083) { Local1 = DerefOf (BF20) CH06 (Arg0, 0x03, 0x2F) } Store (BF20 [0x00], Local1) CH03 (__METHOD__, Z106, __LINE__, 0x00, 0x00) /* Like Buffer behaviour */ If (Y083) { Local1 = DerefOf (BF21) CH06 (Arg0, 0x05, 0x2F) } Store (BF21 [0x00], Local1) If (Y900) { CH03 (__METHOD__, Z106, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0x55, Z106, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } /* Reference to Object */ Method (M002, 3, NotSerialized) { Debug = Arg0 Debug = Arg1 Local0 = ObjectType (Arg1) If ((Local0 != 0x0E)) { ERR (Arg0, Z106, __LINE__, 0x00, 0x00, Local0, 0x0E) Return (0x01) } Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z106, __LINE__, 0x00, 0x00) Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x07, 0x2F) Store (DerefOf (Arg1) [0x00], Local1) If (Arg2) { /* Like Buffer behaviour */ If (Y900) { CH03 (__METHOD__, Z106, __LINE__, 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0x55, Z106, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } Else { /* Like Integer behaviour */ CH06 (Arg0, 0x08, 0x2F) } Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x09, 0x2F) Return (0x00) } /* Reference to Object as Result of Method invocation */ Method (M003, 1, Serialized) { Name (BBF1, Buffer (0x14){}) CreateField (BBF1, 0x0B, 0x1F, BF02) CreateField (BBF1, 0x3A, 0x41, BF03) Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (BF20) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (BF21) } ElseIf ((Arg1 == 0x02)) { Local0 = RefOf (BF02) } ElseIf ((Arg1 == 0x03)) { Local0 = RefOf (BF03) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z106, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x04) Name (LPC0, 0x00) BF20 = II71 /* \II71 */ BF21 = BI01 /* \BI01 */ BF02 = II71 /* \II71 */ BF03 = BI01 /* \BI01 */ While (LPN0) { Local0 = (0x03 * LPC0) /* \M4BE.M003.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) CH03 (__METHOD__, Z106, (0x04 + LPC0), 0x00, 0x00) CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) CH06 (Arg0, (0x0B + Local0), 0x2F) CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) If ((LPC0 % 0x02)) { /* Like Buffer behaviour */ If (Y900) { CH03 (__METHOD__, Z106, (0x08 + LPC0), 0x00, 0x00) } Else { CH04 (__METHOD__, 0x00, 0x55, Z106, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } } CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x0D + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } CH03 (__METHOD__, Z106, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Reference to Local Named Object */ BF02 = II71 /* \II71 */ BF03 = BI01 /* \BI01 */ M002 (Concatenate (__METHOD__, "-m002-RefLocNameI"), RefOf (BF02), 0x01) Local0 = RefOf (BF02) M002 (Concatenate (__METHOD__, "-m002-RefLocName2I"), Local0, 0x01) CondRefOf (BF02, Local0) M002 (Concatenate (__METHOD__, "-m002-CondRefLocNameI"), Local0, 0x01) M002 (Concatenate (__METHOD__, "-m002-RefLocNameB"), RefOf (BF03), 0x01) Local0 = RefOf (BF03) M002 (Concatenate (__METHOD__, "-m002-RefLocName2B"), Local0, 0x01) CondRefOf (BF03, Local0) M002 (Concatenate (__METHOD__, "-m002-CondRefLocNameB"), Local0, 0x01) BF20 = II71 /* \II71 */ BF21 = BI01 /* \BI01 */ M002 (Concatenate (__METHOD__, "-m002-RefGlobNameI"), RefOf (BF20), 0x01) Local0 = RefOf (BF20) M002 (Concatenate (__METHOD__, "-m002-RefGlobName2I"), Local0, 0x01) CondRefOf (BF20, Local0) M002 (Concatenate (__METHOD__, "-m002-CondRefGlobNameI"), Local0, 0x01) M002 (Concatenate (__METHOD__, "-m002-RefGlobNameB"), RefOf (BF21), 0x01) Local0 = RefOf (BF21) M002 (Concatenate (__METHOD__, "-m002-RefGlobName2B"), Local0, 0x01) CondRefOf (BF21, Local0) M002 (Concatenate (__METHOD__, "-m002-CondRefGlobNameB"), Local0, 0x01) /* Reference to Object as Result of Method invocation */ M003 (__METHOD__) } ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_03_buf.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_03_0000700000175000017500000003061214773714155033000 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Buffer * * (verify exceptions caused by the imprope use of Buffer type objects) */ Name (Z095, 0x5F) Name (B100, Buffer (0x01) { 0x61 // a }) /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* Note: Buffer can be used with Index */ Method (M4B3, 1, Serialized) { Name (B000, Buffer (0x01) { 0x62 // b }) /* Local Named Object */ Method (M000, 1, Serialized) { Name (B000, Buffer (0x01) { 0x63 // c }) If (Y083) { Local1 = DerefOf (B000) CH06 (Arg0, 0x00, 0x2F) } Store (B000 [0x00], Local1) CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) } /* Global Named Object */ Method (M001, 1, NotSerialized) { If (Y083) { Local1 = DerefOf (B100) CH06 (Arg0, 0x01, 0x2F) } Store (B100 [0x00], Local1) CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) } /* Argument */ Method (M002, 2, NotSerialized) { Local1 = DerefOf (Arg1) CH06 (Arg0, 0x02, 0x2F) Release (Arg1) CH06 (Arg0, 0x03, 0x2F) Reset (Arg1) CH06 (Arg0, 0x04, 0x2F) Signal (Arg1) CH06 (Arg0, 0x05, 0x2F) Local1 = Acquire (Arg1, 0x0000) CH06 (Arg0, 0x06, 0x2F) Store (Arg1 [0x00], Local1) CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) Local1 = Wait (Arg1, 0x00) CH06 (Arg0, 0x07, 0x2F) Local1 = Match (Arg1, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x08, 0x2F) } /* Local */ Method (M003, 1, NotSerialized) { Local0 = Buffer (0x01) { 0x63 // c } Local1 = DerefOf (Local0) CH06 (Arg0, 0x09, 0x2F) Release (Local0) CH06 (Arg0, 0x0A, 0x2F) Reset (Local0) CH06 (Arg0, 0x0B, 0x2F) Signal (Local0) CH06 (Arg0, 0x0C, 0x2F) Local1 = Acquire (Local0, 0x0000) CH06 (Arg0, 0x0D, 0x2F) Store (Local0 [0x00], Local1) CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) Local1 = Wait (Local0, 0x00) CH06 (Arg0, 0x0E, 0x2F) Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x0F, 0x2F) } /* An element of Package */ Method (M004, 1, Serialized) { Name (P000, Package (0x01) { Buffer (0x01) { 0x63 // c } }) /* DeRefOf(Index(Package, Ind, Dest)) */ Local1 = DerefOf (DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x12, 0x2F) Store (DerefOf (Local0 = P000 [0x00]) [0x00], Local1) CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) Local1 = Match (DerefOf (Local0 = P000 [0x00]), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x13, 0x2F) } /* Reference to Object */ Method (M005, 2, NotSerialized) { Debug = Arg0 Debug = Arg1 Local0 = ObjectType (Arg1) If ((Local0 != 0x03)) { ERR (Arg0, Z095, __LINE__, 0x00, 0x00, Local0, 0x03) Return (0x01) } Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x15, 0x2F) Store (DerefOf (Arg1) [0x00], Local1) CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x16, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M006, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 1, NotSerialized) { I000 = Arg0 Local0 = Buffer (0x01) { 0x63 // c } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z095, __LINE__, 0x00, 0x00, I000, Arg1) } } Local1 = DerefOf (M000 (0x01)) CH06 (Arg0, 0x18, 0x2F) CH00 (Arg0, 0x01) Release (M000 (0x02)) CH06 (Arg0, 0x19, 0x2F) If (Y600) { CH00 (Arg0, 0x02) } Reset (M000 (0x03)) CH06 (Arg0, 0x1A, 0x2F) If (Y600) { CH00 (Arg0, 0x03) } Signal (M000 (0x04)) CH06 (Arg0, 0x1B, 0x2F) If (Y600) { CH00 (Arg0, 0x04) } Local1 = Acquire (M000 (0x05), 0x0000) CH06 (Arg0, 0x1C, 0x2F) If (Y600) { CH00 (Arg0, 0x05) } CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) Store (M000 (0x06) [0x00], Local1) If (Y900) { CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x06) } Else { CH04 (__METHOD__, 0x00, 0x55, Z095, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } Local1 = Wait (M000 (0x07), 0x00) CH06 (Arg0, 0x1D, 0x2F) If (Y600) { CH00 (Arg0, 0x07) } Local1 = Match (M000 (0x08), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x1E, 0x2F) CH00 (Arg0, 0x08) } /* Reference to Object as Result of Method invocation */ Method (M007, 1, Serialized) { Name (B000, Buffer (0x01) { 0x63 // c }) Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (B100) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (B000) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z095, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4B3.M007.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) CH06 (Arg0, (0x20 + Local0), 0x2F) CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x21 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x22 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } CH03 (__METHOD__, Z095, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Argument */ M002 (__METHOD__, Buffer (0x01) { 0x62 // b }) /* Local */ M003 (__METHOD__) /* An element of Package */ M004 (__METHOD__) /* Reference to Local Named Object */ M005 (Concatenate (__METHOD__, "-m005-RefLocName"), RefOf (B000)) Local0 = RefOf (B000) M005 (Concatenate (__METHOD__, "-m005-RefLocName2"), Local0) CondRefOf (B000, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefLocName"), Local0) M005 (Concatenate (__METHOD__, "-m005-RefGlobName"), RefOf (B100)) Local0 = RefOf (B100) M005 (Concatenate (__METHOD__, "-m005-RefGlobName2"), Local0) CondRefOf (B100, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefGlobName"), Local0) /* Reference to Local */ Local0 = Buffer (0x01) { 0x62 // b } M005 (Concatenate (__METHOD__, "-m005-RefLocal"), RefOf (Local0)) Local1 = RefOf (Local0) M005 (Concatenate (__METHOD__, "-m005-RefLocal2"), Local1) CondRefOf (Local0, Local1) M005 (Concatenate (__METHOD__, "-m005-CondRefLocal"), Local1) /* Reference to Arg */ M005 (Concatenate (__METHOD__, "-m005-RefArg"), RefOf (Arg0)) Local0 = RefOf (Arg0) M005 (Concatenate (__METHOD__, "-m005-RefArg2"), Local0) CondRefOf (Arg0, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefArg"), Local0) /* Index to Package */ Name (P000, Package (0x01) { Buffer (0x01) { 0x62 // b } }) If (Y113) { M005 (Concatenate (__METHOD__, "-m005-Index"), P000 [0x00]) } Store (P000 [0x00], Local0) M005 (Concatenate (__METHOD__, "-m005-Index2"), Local0) If (Y113) { M005 (Concatenate (__METHOD__, "-m005-Index3"), Local0 = P000 [0x00]) } Local0 = P000 [0x00] M005 (Concatenate (__METHOD__, "-m005-Index4"), Local0) Local1 = Local0 = P000 [0x00] M005 (Concatenate (__METHOD__, "-m005-Index5"), Local1) /* Result of Method invocation */ M006 (__METHOD__) /* Reference to Object as Result of Method invocation */ If (Y500) { M007 (__METHOD__) } } ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_02_str.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand2/exc_02_0000700000175000017500000003404514773714155033003 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * String * * (verify exceptions caused by the imprope use of String type objects) */ Name (Z094, 0x5E) Name (S100, "1") /* Expected exceptions: */ /* */ /* 47 - AE_AML_OPERAND_TYPE */ /* 5 - AE_NOT_FOUND (when DerefOf(String)) */ /* */ /* Note: String can be used with DerefOf and Index */ Method (M4B2, 1, Serialized) { Name (S000, "2") /* Local Named Object */ Method (M000, 1, Serialized) { Name (S000, "3") /* DerefOf */ If (Y083) { Local1 = DerefOf (S000) CH06 (Arg0, 0x00, 0x2F) } /* Index */ Local1 = S000 [0x00] CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) /* ConcatenateResTemplate */ ConcatenateResTemplate (S000, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x03, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, S000, Local1) CH06 (Arg0, 0x04, 0x2F) } /* Global Named Object */ Method (M001, 1, NotSerialized) { If (Y083) { Local1 = DerefOf (S100) CH06 (Arg0, 0x05, 0x2F) } /* Index */ Local1 = S100 [0x00] CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) /* ConcatenateResTemplate */ ConcatenateResTemplate (S100, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x08, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, S100, Local1) CH06 (Arg0, 0x09, 0x2F) } /* Argument */ Method (M002, 2, NotSerialized) { /* DerefOf */ Local1 = DerefOf (Arg1) CH06 (Arg0, 0x0A, 0x2F) /* Release */ Release (Arg1) CH06 (Arg0, 0x0B, 0x2F) /* Reset */ Reset (Arg1) CH06 (Arg0, 0x0C, 0x2F) /* Signal */ Signal (Arg1) CH06 (Arg0, 0x0D, 0x2F) /* Acquire */ Local1 = Acquire (Arg1, 0x0000) CH06 (Arg0, 0x0E, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Arg1, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x11, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Arg1, Local1) CH06 (Arg0, 0x12, 0x2F) /* Index */ Local1 = Arg1 [0x00] CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) /* Wait */ Local1 = Wait (Arg1, 0x00) CH06 (Arg0, 0x13, 0x2F) /* Match */ Local1 = Match (Arg1, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x14, 0x2F) } /* Local */ Method (M003, 1, NotSerialized) { Local0 = "3" /* DerefOf */ Local1 = DerefOf (Local0) CH06 (Arg0, 0x15, 0x2F) /* Release */ Release (Local0) CH06 (Arg0, 0x16, 0x2F) /* Reset */ Reset (Local0) CH06 (Arg0, 0x17, 0x2F) /* Signal */ Signal (Local0) CH06 (Arg0, 0x18, 0x2F) /* Acquire */ Local1 = Acquire (Local0, 0x0000) CH06 (Arg0, 0x19, 0x2F) /* ConcatenateResTemplate */ ConcatenateResTemplate (Local0, Buffer (0x02) { 0x79, 0x00 // y. }, Local1) CH06 (Arg0, 0x1C, 0x2F) ConcatenateResTemplate (Buffer (0x02) { 0x79, 0x00 // y. }, Local0, Local1) CH06 (Arg0, 0x1D, 0x2F) /* Index */ Local1 = Local0 [0x00] CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) /* Wait */ Local1 = Wait (Local0, 0x00) CH06 (Arg0, 0x1E, 0x2F) /* Match */ Local1 = Match (Local0, MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x1F, 0x2F) } /* An element of Package */ Method (M004, 1, Serialized) { Name (P000, Package (0x01) { "3" }) /* DeRefOf(Index(Package, Ind)) */ Local1 = DerefOf (DerefOf (P000 [0x00])) CH06 (Arg0, 0x20, 0x05) Store (DerefOf (P000 [0x00]) [0x00], Local1) CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) Local1 = Match (DerefOf (P000 [0x00]), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x21, 0x2F) /* DeRefOf(Index(Package, Ind, Dest)) */ Local1 = DerefOf (DerefOf (Local0 = P000 [0x00])) CH06 (Arg0, 0x22, 0x05) Store (DerefOf (Local0 = P000 [0x00]) [0x00], Local1) CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) Local1 = Match (DerefOf (Local0 = P000 [0x00]), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x23, 0x2F) } /* Reference to Object */ Method (M005, 2, NotSerialized) { Debug = Arg0 Debug = Arg1 Local0 = ObjectType (Arg1) If ((Local0 != 0x02)) { ERR (Arg0, Z094, __LINE__, 0x00, 0x00, Local0, 0x02) Return (0x01) } Local1 = DerefOf (Arg1) CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) Local1 = DerefOf (DerefOf (Arg1)) CH06 (Arg0, 0x25, 0x05) Store (DerefOf (Arg1) [0x00], Local1) CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) Local1 = Match (DerefOf (Arg1), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x26, 0x2F) Return (0x00) } /* Result of Method invocation */ Method (M006, 1, Serialized) { Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 1, NotSerialized) { I000 = Arg0 Local0 = "3" Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z094, __LINE__, 0x00, 0x00, I000, Arg1) } } Local1 = DerefOf (M000 (0x01)) CH06 (Arg0, 0x28, 0x05) CH00 (Arg0, 0x01) Release (M000 (0x02)) CH06 (Arg0, 0x29, 0x2F) If (Y600) { CH00 (Arg0, 0x02) } Reset (M000 (0x03)) CH06 (Arg0, 0x2A, 0x2F) If (Y600) { CH00 (Arg0, 0x03) } Signal (M000 (0x04)) CH06 (Arg0, 0x2B, 0x2F) If (Y600) { CH00 (Arg0, 0x04) } Local1 = Acquire (M000 (0x05), 0x0000) CH06 (Arg0, 0x2C, 0x2F) If (Y600) { CH00 (Arg0, 0x05) } CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) Store (M000 (0x06) [0x00], Local1) If (Y900) { CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x06) } Else { CH04 (__METHOD__, 0x00, 0x55, Z094, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } Local1 = Wait (M000 (0x07), 0x00) CH06 (Arg0, 0x2D, 0x2F) If (Y600) { CH00 (Arg0, 0x07) } Local1 = Match (M000 (0x08), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, 0x2E, 0x2F) CH00 (Arg0, 0x08) } /* Reference to Object as Result of Method invocation */ Method (M007, 1, Serialized) { Name (S000, "3") Name (I000, 0x00) /* Label to check m000 invocations */ Method (M000, 2, NotSerialized) { I000 = Arg0 If ((Arg1 == 0x00)) { Local0 = RefOf (S100) } ElseIf ((Arg1 == 0x01)) { Local0 = RefOf (S000) } Return (Local0) } Method (CH00, 2, NotSerialized) { If ((I000 != Arg1)) { ERR (Arg0, Z094, __LINE__, 0x00, 0x00, I000, Arg1) } } Name (LPN0, 0x02) Name (LPC0, 0x00) While (LPN0) { Local0 = (0x03 * LPC0) /* \M4B2.M007.LPC0 */ I000 = 0x00 Local1 = DerefOf (M000 (0x01, LPC0)) CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) CH00 (Arg0, 0x01) Local1 = DerefOf (DerefOf (M000 (0x02, LPC0))) CH06 (Arg0, (0x30 + Local0), 0x2F) CH00 (Arg0, 0x02) Store (DerefOf (M000 (0x03, LPC0)) [0x00], Local1) CH06 (Arg0, (0x31 + Local0), 0x2F) CH00 (Arg0, 0x03) Local1 = Match (DerefOf (M000 (0x04, LPC0)), MTR, 0x00, MTR, 0x00, 0x00) CH06 (Arg0, (0x32 + Local0), 0x2F) CH00 (Arg0, 0x04) LPN0-- LPC0++ } } CH03 (__METHOD__, Z094, __LINE__, 0x00, 0x00) /* Local Named Object */ M000 (__METHOD__) /* Global Named Object */ M001 (__METHOD__) /* Argument */ M002 (__METHOD__, "2") /* Local */ M003 (__METHOD__) /* An element of Package */ M004 (__METHOD__) /* Reference to Local Named Object */ M005 (Concatenate (__METHOD__, "-m005-RefLocName"), RefOf (S000)) Local0 = RefOf (S000) M005 (Concatenate (__METHOD__, "-m005-RefLocName2"), Local0) CondRefOf (S000, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefLocName"), Local0) M005 (Concatenate (__METHOD__, "-m005-RefGlobName"), RefOf (S100)) Local0 = RefOf (S100) M005 (Concatenate (__METHOD__, "-m005-RefGlobName2"), Local0) CondRefOf (S100, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefGlobName"), Local0) /* Reference to Local */ Local0 = "2" M005 (Concatenate (__METHOD__, "-m005-RefLocal"), RefOf (Local0)) Local1 = RefOf (Local0) M005 (Concatenate (__METHOD__, "-m005-RefLocal2"), Local1) CondRefOf (Local0, Local1) M005 (Concatenate (__METHOD__, "-m005-CondRefLocal"), Local1) /* Reference to Arg */ M005 (Concatenate (__METHOD__, "-m005-RefArg"), RefOf (Arg0)) Local0 = RefOf (Arg0) M005 (Concatenate (__METHOD__, "-m005-RefArg2"), Local0) CondRefOf (Arg0, Local0) M005 (Concatenate (__METHOD__, "-m005-CondRefArg"), Local0) /* Index to Package */ Name (P000, Package (0x01) { "2" }) If (Y113) { M005 (Concatenate (__METHOD__, "-m005-Index"), P000 [0x00]) } Store (P000 [0x00], Local0) M005 (Concatenate (__METHOD__, "-m005-Index2"), Local0) If (Y113) { M005 (Concatenate (__METHOD__, "-m005-Index3"), Local0 = P000 [0x00]) } Local0 = P000 [0x00] M005 (Concatenate (__METHOD__, "-m005-Index4"), Local0) Local1 = Local0 = P000 [0x00] M005 (Concatenate (__METHOD__, "-m005-Index5"), Local1) /* Result of Method invocation */ M006 (__METHOD__) /* Reference to Object as Result of Method invocation */ If (Y500) { M007 (__METHOD__) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/FULL/0000700000175000017500000000000014773714155030021 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/FULL/MAIN.asl0000700000175000017500000000771614773714155031264 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "full.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/common/operations.asl") Include("../../../../../runtime/common/conversion/oproc.asl") Include("../../../../../runtime/common/conversion/otest.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_00_undef.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_01_int.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_02_str.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_03_buf.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_04_pckg.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_05_funit.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_06_dev.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_07_event.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_08_method.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_09_mux.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_10_oreg.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_11_pwr.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_12_proc.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_13_tzone.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_14_bfield.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_operand2.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand1/exc_operand1.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand1/RUN.asl") Include("../../../../../runtime/collections/exceptions/exc_operand/exc_operand2/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand1/0000700000175000017500000000000014773714155031627 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand1/RUN.asl0000700000175000017500000000366314773714155033007 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Exceptions caused by inappropriate type of operands", TCLE, 0x01, W014)) { SRMT ("EOP1") EOP1 () } FTTT () ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand1/MAIN.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand1/MAIN.as0000700000175000017500000000447114773714155032711 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("exc_operand1", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../runtime/cntl/DECL_5UP.asl") Include ("../../../../../runtime/common/operations.asl") Include ("../../../../../runtime/common/conversion/oproc.asl") Include ("../../../../../runtime/common/conversion/otest.asl") Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand1/exc_operand1.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../runtime/collections/exceptions/exc_operand/exc_operand1/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand1/Makefileacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand1/Makefil0000700000175000017500000000015414773714155033125 0ustar ivanhuivanhu# exc_operand1 AMLMOD= exc_operand1 COLL= ../../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand1/exc_operand1.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/exc_operand/exc_operand1/exc_ope0000700000175000017500000000412014773714155033174 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * This test should be investigated and probably fixed because * it most likely not conforms with the changed functionality of * the Store operator - storing of non-computational data and * BufferFields and Fields was once disabled. * * Such are exc_operand1, exc_result, oconversion and rconversion tests. */ /* Run-method */ Method (EOP1, 0, NotSerialized) { M460 (0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/FULL/0000700000175000017500000000000014773714155025532 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/FULL/DECL.asl0000700000175000017500000000764014773714155026754 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Exceptional conditions tests collection Include("../../../../runtime/collections/exceptions/exc/exc.asl") Include("../../../../runtime/collections/exceptions/exc_result/exc_result1/exc_result1.asl") Include("../../../../runtime/collections/complex/result/common/rcommon.asl") Include("../../../../runtime/collections/complex/result/tests/rindecrement/rindecrement.asl") Include("../../../../runtime/collections/complex/result/tests/rexplicitconv/rexplicitconv.asl") Include("../../../../runtime/collections/complex/result/tests/roptional/roptional.asl") Include("../../../../runtime/collections/exceptions/exc_result/exc_result2/exc_result2.asl") Include("../../../../runtime/collections/functional/reference/ref70.asl") Include("../../../../runtime/collections/functional/reference/ref71.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand1/exc_operand1.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_operand2.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_00_undef.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_01_int.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_02_str.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_03_buf.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_04_pckg.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_05_funit.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_06_dev.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_07_event.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_08_method.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_09_mux.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_10_oreg.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_11_pwr.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_12_proc.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_13_tzone.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/exc_14_bfield.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/FULL/RUN.asl0000700000175000017500000000412414773714155026703 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Store("COLLECTION: all exceptional conditions complex tests", Debug) Include("../../../../runtime/collections/exceptions/exc/RUN.asl") Include("../../../../runtime/collections/exceptions/exc_result/exc_result1/RUN.asl") Include("../../../../runtime/collections/exceptions/exc_result/exc_result2/RUN.asl") Include("../../../../runtime/collections/exceptions/exc_ref/RUN.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand1/RUN.asl") Include("../../../../runtime/collections/exceptions/exc_operand/exc_operand2/RUN.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/exceptions/FULL/MAIN.asl0000700000175000017500000000473414773714155026772 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Run exceptional conditions tests collection DefinitionBlock( "exceptions.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../runtime/cntl/DECL.asl") Include("../../../../runtime/common/data.asl") Include("../../../../runtime/common/dataproc.asl") Include("../../../../runtime/common/datastproc.asl") Include("../../../../runtime/common/conversion/oDECL.asl") Include("../../../../runtime/common/conversion/rDECL.asl") Include("../../../../runtime/collections/exceptions/FULL/DECL.asl") Include("../../../../runtime/collections/functional/reference/DECL.asl") Method(MAIN) { // Initialization STRT(1) // Run verification methods Include("../../../../runtime/collections/exceptions/FULL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/Makefile.install0000700000175000017500000000021014773714160025704 0ustar ivanhuivanhu all: compile_test_case install: install_test_case clean: clobber clobber: FORCE $(RM) *.aml include $(TOP)/Makefile.def FORCE: acpica-unix-20250404/tests/aslts/src/runtime/collections/service/0000700000175000017500000000000014773714160024243 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/service/README0000700000175000017500000000073414773714160025132 0ustar ivanhuivanhu CONTENTS service tests condbranches This service-test reports failures when some conditional branches, which were introduced for to exclude code causing crashes or hangs or other troubles are disabled (the relevant variables are set to zero). This is for to remind of that bug-fixes are needed and not to forget to enable finally these branches of tests) and is some criteria of completeness - all or not all branches of tests were executed. acpica-unix-20250404/tests/aslts/src/runtime/collections/service/Makefile0000700000175000017500000000012414773714160025703 0ustar ivanhuivanhu# service MDIRS = \ condbranches TOP= ../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/service/condbranches/0000700000175000017500000000000014773714160026674 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/service/condbranches/DECL.asl0000700000175000017500000000335614773714160030116 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/service/condbranches/condbranches.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/service/condbranches/RUN.asl0000700000175000017500000000365214773714160030052 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Service test for watching the excluded conditional branches of tests", TCLS, 0x00, W018)) { SRV0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/service/condbranches/condbranches.asl0000700000175000017500000001507414773714160032040 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * (service-test) * * This service-test reports failures when * some conditional branches are disabled. * * Note: check periodically that all the relevant variables * are introduced here (see file runtime/ctl/runmode.asl). */ Name (Z135, 0x87) Method (SRV0, 0, Serialized) { Name (I000, 0x00) Method (M280, 2, NotSerialized) { SRMT (Arg1) If (!Arg0) { ERR (Arg0, Z135, __LINE__, 0x00, 0x00, 0x00, 0x01) } I000++ } M280 (EXCV, "EXCV") M280 (X104, "X104") M280 (X114, "X114") M280 (X127, "X127") M280 (X128, "X128") M280 (X131, "X131") M280 (X132, "X132") M280 (X133, "X133") M280 (X153, "X153") M280 (X170, "X170") M280 (X191, "X191") M280 (X192, "X192") M280 (X193, "X193") M280 (X194, "X194") /* * X195 is about Increment and Decrement of an either String or Buffer * Since object will not change the type of the Object to Integer * So this conditional branches should be disabled. */ /*m280(X195, "X195") */ M280 (Q001, "q001") M280 (Q002, "q002") M280 (Q003, "q003") M280 (Q004, "q004") M280 (Q005, "q005") M280 (Q006, "q006") M280 (Q007, "q007") M280 (Q008, "q008") M280 (Q009, "q009") M280 (Q00A, "q00a") M280 (Q00B, "q00b") M280 (RN00, "rn00") M280 (RN01, "rn01") M280 (RN02, "rn02") M280 (RN03, "rn03") M280 (RN04, "rn04") M280 (RN05, "rn05") M280 (RN06, "rn06") M280 (Y078, "y078") M280 (Y083, "y083") M280 (Y084, "y084") M280 (Y098, "y098") M280 (Y100, "y100") M280 (Y103, "y103") M280 (Y104, "y104") M280 (Y105, "y105") M280 (Y106, "y106") M280 (Y111, "y111") M280 (Y113, "y113") M280 (Y114, "y114") M280 (Y118, "y118") M280 (Y119, "y119") M280 (Y120, "y120") M280 (Y121, "y121") M280 (Y126, "y126") M280 (Y127, "y127") M280 (Y128, "y128") M280 (Y132, "y132") M280 (Y133, "y133") M280 (Y134, "y134") M280 (Y135, "y135") M280 (Y136, "y136") M280 (Y157, "y157") M280 (Y164, "y164") M280 (Y176, "y176") M280 (Y178, "y178") M280 (Y182, "y182") M280 (Y192, "y192") M280 (Y200, "y200") M280 (Y203, "y203") M280 (Y204, "y204") M280 (Y205, "y205") M280 (Y206, "y206") M280 (Y207, "y207") M280 (Y208, "y208") M280 (Y213, "y213") M280 (Y214, "y214") M280 (Y215, "y215") M280 (Y216, "y216") M280 (Y217, "y217") M280 (Y220, "y220") M280 (Y221, "y221") M280 (Y222, "y222") M280 (Y223, "y223") M280 (Y224, "y224") M280 (Y238, "y238") M280 (Y242, "y242") M280 (Y243, "y243") M280 (Y248, "y248") M280 (Y251, "y251") M280 (Y260, "y260") M280 (Y261, "y261") M280 (Y262, "y262") M280 (Y263, "y263") M280 (Y264, "y264") M280 (Y275, "y275") M280 (Y276, "y276") M280 (Y281, "y281") M280 (Y282, "y282") M280 (Y283, "y283") M280 (Y284, "y284") M280 (Y286, "y286") M280 (Y287, "y287") M280 (Y288, "y288") M280 (Y289, "y289") M280 (Y290, "y290") M280 (Y292, "y292") M280 (Y293, "y293") M280 (Y294, "y294") M280 (Y296, "y296") M280 (Y297, "y297") M280 (Y300, "y300") M280 (Y301, "y301") M280 (Y302, "y302") M280 (Y349, "y349") M280 (Y350, "y350") M280 (Y361, "y361") M280 (Y362, "y362") M280 (Y364, "y364") M280 (Y365, "y365") M280 (Y366, "y366") M280 (Y367, "y367") M280 (Y500, "y500") M280 (Y501, "y501") M280 (Y502, "y502") M280 (Y503, "y503") M280 (Y504, "y504") M280 (Y505, "y505") M280 (Y506, "y506") M280 (Y507, "y507") M280 (Y508, "y508") M280 (Y509, "y509") M280 (Y510, "y510") M280 (Y511, "y511") M280 (Y512, "y512") M280 (Y513, "y513") M280 (Y514, "y514") M280 (Y516, "y516") M280 (Y517, "y517") M280 (Y518, "y518") M280 (Y519, "y519") M280 (Y520, "y520") M280 (Y521, "y521") M280 (Y522, "y522") M280 (Y523, "y523") M280 (Y524, "y524") M280 (Y525, "y525") M280 (Y526, "y526") M280 (Y527, "y527") M280 (Y600, "y600") M280 (Y601, "y601") M280 (Y602, "y602") M280 (Y603, "y603") M280 (Y900, "y900") M280 (Y901, "y901") } acpica-unix-20250404/tests/aslts/src/runtime/collections/service/condbranches/MAIN.asl0000700000175000017500000000410314773714160030122 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("condbranches", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/service/condbranches/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/service/condbranches/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/service/condbranches/Makefile0000700000175000017500000000023414773714160030336 0ustar ivanhuivanhu# condbranches AMLMOD= condbranches COLL= ../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/0000700000175000017500000000000014773714160023344 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/README0000700000175000017500000000036514773714160024233 0ustar ivanhuivanhu CONTENTS Implementation dependent tests. These tests may be based on some internal features of the particular implementation of ACPI. ACPICA The tests to be run on ACPICA (will not go on other implementations of ACPI).acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/0000700000175000017500000000000014773714160024264 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/README0000700000175000017500000000020014773714160025137 0ustar ivanhuivanhu CONTENTS the tests dependent on ACPICA internal features common common data and methods of tests tests the tests acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/0000700000175000017500000000000014773714160025426 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/README0000700000175000017500000000103714773714160026312 0ustar ivanhuivanhu CONTENTS the tests dependent on ACPICA internal features dynobj The ASL Dynamical Object support tests. The tests reflects the current dynamic of using memory during interpretation of different ASL expressions and reports deviation (if any) from the expected structure of memory to be consumed in that process. NOTE: The test dynobj requires the Test Command Interface with the ACPI implementation (_TCI) to be supported. In case, _TCI is not supported, the test reports the message and exits with PASS. acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/0000700000175000017500000000000014773714160026713 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/RUN.asl0000700000175000017500000001363414773714160030072 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The Dynamic Object Deletion complex test * * The complex test reflects the current dynamic of using the memory * for ASL objects and will be reporting any change in this process. * It is based on _TCI interface provided by ACPI implementation. * In case, _TCI is not supported, the test is quit. */ /* Run-method */ Method (DYN0, 0, Serialized) { Name (PP00, Package (0x01){}) Name (PP0A, Package (0x01){}) /* Create and initialize the Memory Consumption Statistics Packages */ Local0 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ Debug = "Check for the Test Command Interface with the ACPICA (_TCI) support" If (!M3A5 ()) { Debug = "The Test Command Interface with the ACPICA (_TCI) is not supported" Debug = "Test DYN0 skipped!" Return (0x01) } Debug = "Check that the Memory Consumption Statistics is handled properly" /* Check that the Memory Consumption Statistics */ /* is handled properly - the difference between */ /* two _TCI-end statistics and _TCI-begin statistics */ /* must be zero. */ _TCI (C200, Local0) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () If (M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB9)) { Debug = "the Memory Consumption Statistics is not properly handled" Debug = "Test DYN0 skipped!" Return (0x01) } /* Determine the flag of optimization */ M3AA () If ((FOPT == 0x01)) { Debug = "Optimization is tuned on" } ElseIf ((FOPT == 0x00)) { Debug = "Optimization is tuned off" Debug = "The tests are not yet adopted for this mode!" Debug = "Test DYN0 skipped!" Return (Zero) } Else { Debug = "Test DYN0 skipped!" Return (Zero) } /* * // Apply the same technique to the entire test. * * // ################################## Check all the test: * * // Packages for _TCI statistics * Name(LLL0, Package(1) {}) * Name(LLL1, Package(1) {}) * Name(LLL2, Package(1) {}) * * // Create and initialize the Memory Consumption Statistics Packages * * Store(m3a0(c200), LLL0) // _TCI-end statistics * Store(m3a0(c201), LLL1) // _TCI-begin statistics * Store(m3a0(0), LLL2) // difference * * _TCI(c200, LLL0) * // ################################## Check all the test. */ /* Run the tests */ If (0x01) { SRMT ("dobexec-m370") M370 () SRMT ("dobexec-m371") M371 () SRMT ("dobctl-m372") M372 () SRMT ("dobdecl-m373") M373 () /* SRMT("dobexceptions-m374") */ /* m374() */ /* SRMT("dobmisc-m375") */ /* m375() */ } Else { SRMT ("dobdecl-m373") M373 () } /* * // ################################## Check all the test: * _TCI(c201, LLL1) * m3a3(LLL0, LLL1, LLL2) * m3a4(LLL0, LLL1, LLL2, 0, 0, 0, 0xff1) * // ################################## Check all the test. */ Return (0x00) } If (STTT ("Dynamic Object Deletion implementation dependent test", TCLI, 0x00, W021)) { SRMT ("DYN0") DYN0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/dobexceptions.asl0000700000175000017500000000525014773714160032267 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * DynObj: Exceptions */ Name (Z132, 0x84) /* Check exceptions */ Method (M374, 0, Serialized) { /* Package for _TCI-begin statistics */ /* (use NamedX, don't use ArgX/LocalX). */ Name (PP0A, Package (0x01){}) Method (M000, 1, NotSerialized) { Divide (0x01, Arg0, Local0, Local1) } /* Create and initialize the Memory Consumption Statistics Packages */ Local1 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local3 = M3A0 (0x00) /* difference */ SET0 (Z132, __METHOD__, 0x00) If (RN00) { CH03 (__METHOD__, Z132, __LINE__, 0x00, 0x00) _TCI (C200, Local1) M000 (0x00) _TCI (C201, PP0A) CH04 (__METHOD__, 0x00, 0xFF, Z132, __LINE__, 0x00, 0x00) M3A3 (Local1, PP0A, Local3) M3A4 (Local1, PP0A, Local3, 0x00, 0x00, 0x00, 0x00) } RST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/MAIN.asl0000700000175000017500000000501714773714160030146 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("dynobj", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/common/TCI/tcicmd.asl") Include ("../../../../../../runtime/collections/IMPL/ACPICA/tests/dynobj/dobdecl.asl") Include ("../../../../../../runtime/collections/IMPL/ACPICA/tests/dynobj/dobctl.asl") Include ("../../../../../../runtime/collections/IMPL/ACPICA/tests/dynobj/dobexec.asl") Include ("../../../../../../runtime/collections/IMPL/ACPICA/tests/dynobj/dobexceptions.asl") Include ("../../../../../../runtime/collections/IMPL/ACPICA/tests/dynobj/dobmisc.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/IMPL/ACPICA/tests/dynobj/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/dobmisc.asl0000700000175000017500000000616114773714160031043 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * DynObj: miscellaneous tests */ Name (Z140, 0x8C) Method (M375, 0, Serialized) { /* The Created Objects benchmark Package */ Name (PP00, Package (0x01){}) /* The Deleted Objects benchmark Package */ Name (PP01, Package (0x01){}) /* The per-memory type benchmark Package */ Name (PP02, Package (0x01){}) /* Package for _TCI-begin statistics */ /* (use NamedX, don't use ArgX/LocalX). */ Name (PP0A, Package (0x01){}) /* Create and initialize the Memory Consumption Statistics Packages */ Local0 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ SET0 (Z140, "m375", 0x00) /* Start of all sub-tests */ Debug = "Test misc 0" _TCI (C200, Local0) /* ASL-construction being investigated */ /* to be implemented, now arbitrary operation only */ Store ((0x00 + 0x01), Local2) /* Use NamedX for _TCI-begin statistics Package */ /* not to touch the LOCAL_REFERENCE entry. */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) /* calculate difference */ /* Verify result */ /* Is not correct yet !!! */ PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x04) /* End of all sub-tests */ RST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/dobdecl.asl0000700000175000017500000003505014773714160031016 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * DynObj: ASL declarations */ Name (Z130, 0x82) /* Check declarations */ Method (M373, 0, Serialized) { /* The Created Objects benchmark Package */ Name (PP00, Package (0x01){}) /* The Deleted Objects benchmark Package */ Name (PP01, Package (0x01){}) /* The per-memory type benchmark Package */ Name (PP02, Package (0x01){}) /* Package for _TCI-begin statistics */ /* (use NamedX, don't use ArgX/LocalX). */ Name (PP0A, Package (0x01){}) /* Objects for verified operators */ Name (NUM, 0x05) Name (LPN0, 0x00) Name (LPC0, 0x00) Name (BCF0, Buffer (0x08){}) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Name (I000, 0x00) /* Create and initialize the Memory Consumption Statistics Packages */ Local0 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ /* Available free locals */ Local2 = 0x00 Local3 = 0x00 Local4 = 0x00 Local5 = 0x00 Local6 = 0x00 Local7 = 0x00 SET0 (Z130, "m373", 0x00) /* ======================== Name */ If (RN00) { Debug = "Name" _TCI (C200, Local0) Name (I100, 0x00) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP01 = M3A8 () PP02 = M3A9 () PP02 [C226] = 0x01 /* CLIST_ID_NAMESPACE */ PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x00) } If (RN00) { _TCI (C200, Local0) Name (S100, "qsdrtghyuiopmngsxz") _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP01 = M3A8 () PP02 = M3A9 () PP02 [C226] = 0x01 /* CLIST_ID_NAMESPACE */ PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x01) _TCI (C200, Local0) Name (B100, Buffer (0x10) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP02 = M3A9 () PP02 [C226] = 0x01 /* CLIST_ID_NAMESPACE */ PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x02) _TCI (C200, Local0) Name (P100, Package (0x10) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x09 /* Integer */ PP00 [C00C] = 0x01 /* Package */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP02 = M3A9 () PP02 [C226] = 0x01 /* CLIST_ID_NAMESPACE */ PP02 [C228] = 0x09 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x03) } If (RN00) { _TCI (C200, Local0) Name (P101, Package (0x10) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, I000 }) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x09 /* Integer */ PP00 [C00C] = 0x01 /* Package */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP02 = M3A9 () PP02 [C226] = 0x01 /* CLIST_ID_NAMESPACE */ PP02 [C228] = 0x0A /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x04) } /* ======================== CreateField */ If (RN00) { Debug = "CreateField" _TCI (C200, Local0) CreateField (BCF0, 0x01, 0x03, BF00) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C016] = 0x01 /* BufferField */ PP00 [C024] = 0x01 /* LOCAL_EXTRA */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP02 = M3A9 () PP02 [C226] = 0x01 /* CLIST_ID_NAMESPACE */ PP02 [C228] = 0x02 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x05) } /* //////// Resource Descriptor macros */ /* ======================== DMA */ If (RN00) { Debug = "DMA" _TCI (C200, Local0) Name (RT00, ResourceTemplate () /* Integer */ /* Buffer */ /* Integer */ /* CLIST_ID_NAMESPACE */ /* CLIST_ID_OPERAND */ { DMA (Compatibility, NotBusMaster, Transfer8, ) {} }) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 PP00 [C00B] = 0x01 PP01 = M3A8 () PP01 [C009] = 0x01 PP02 = M3A9 () PP02 [C226] = 0x01 PP02 [C228] = 0x01 M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x06) } /* ======================== DataTableRegion */ If (RN00) { Debug = "DataTableRegion" _TCI (C200, Local0) DataTableRegion (HDR, "DSDT", "", "") _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x03 /* String */ PP00 [C012] = 0x01 /* Operation Region */ PP00 [C024] = 0x01 /* LOCAL_EXTRA */ PP01 = M3A8 () PP01 [C00A] = 0x03 /* String */ PP02 = M3A9 () PP02 [C226] = 0x01 /* CLIST_ID_NAMESPACE */ PP02 [C228] = 0x02 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x07) } /* ======================== Field */ If (RN04) { Debug = "Field" _TCI (C200, Local0) Field (R000, ByteAcc, NoLock, Preserve) { F000, 8 } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C019] = 0x01 /* LOCAL_REGION_FIELD */ PP01 = M3A8 () PP02 = M3A9 () PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x08) } /* ======================== BankField */ If (RN04) { Debug = "BankField" Field (R000, ByteAcc, NoLock, Preserve) { F001, 8 } _TCI (C200, Local0) BankField (R000, F001, 0x00, ByteAcc, NoLock, Preserve) { BN00, 4 } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01A] = 0x01 /* LOCAL_BANK_FIELD */ PP01 = M3A8 () PP02 = M3A9 () PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x09) } /* ======================== IndexField */ If (RN04) { Debug = "IndexField" Field (R000, ByteAcc, NoLock, Preserve) { F002, 8, F003, 8 } _TCI (C200, Local0) IndexField (F002, F003, ByteAcc, NoLock, Preserve) { IF00, 8, IF01, 8 } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01B] = 0x02 /* LOCAL_INDEX_FIELD */ PP01 = M3A8 () PP02 = M3A9 () PP02 [C228] = 0x02 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x0A) } /* ======================== Event */ If (RN00) { Debug = "Event" _TCI (C200, Local0) Event (E900) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00F] = 0x01 /* Event */ PP01 = M3A8 () PP02 = M3A9 () PP02 [C226] = 0x01 /* CLIST_ID_NAMESPACE */ PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x0B) } /* ======================== Mutex */ If (RN00) { Debug = "Mutex" _TCI (C200, Local0) Mutex (MT00, 0x00) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C011] = 0x01 /* Mutex */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP02 = M3A9 () PP02 [C226] = 0x01 /* CLIST_ID_NAMESPACE */ PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x0C) } /* ======================== OperationRegion */ If (RN04) { Debug = "OperationRegion" _TCI (C200, Local0) OperationRegion (R001, SystemMemory, 0x0100, 0x0100) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ /* Store(1, Index(pp00, c012)) // OperationRegion */ PP01 = M3A8 () PP02 = M3A9 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0D) } /* ======================== Device */ If (RN03) { /* Causes AE_AML_NAME_NOT_FOUND exception */ Debug = "Device" _TCI (C200, Local0) Device (D000) { } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00E] = 0x01 /* Device */ PP01 = M3A8 () PP02 = M3A9 () M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x0E) } /* ======================== Method */ If (RN03) { /* Causes AE_AML_NAME_NOT_FOUND exception */ Debug = "Method" _TCI (C200, Local0) Method (M000, 0, NotSerialized) { } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C010] = 0x01 /* Method */ PP01 = M3A8 () PP02 = M3A9 () M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x0F) } /* ======================== ThermalZone */ If (RN03) { /* Causes AE_AML_NAME_NOT_FOUND exception */ Debug = "ThermalZone" _TCI (C200, Local0) ThermalZone (TZ00) { } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C015] = 0x01 /* ThermalZone */ PP01 = M3A8 () PP02 = M3A9 () M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x10) } /* ======================== Processor */ If (RN03) { /* Causes AE_AML_NAME_NOT_FOUND exception */ Debug = "Processor" _TCI (C200, Local0) Processor (PR00, 0x00, 0xFFFFFFFF, 0x00){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C014] = 0x01 /* Processor */ PP01 = M3A8 () PP02 = M3A9 () M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x11) } /* ======================== PowerResource */ If (RN03) { /* Causes AE_AML_NAME_NOT_FOUND exception */ Debug = "PowerResource" _TCI (C200, Local0) PowerResource (PW00, 0x01, 0x0000){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C013] = 0x01 /* PowerResource */ PP01 = M3A8 () PP02 = M3A9 () M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x12) } RST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/Makefile0000700000175000017500000000014314773714160030354 0ustar ivanhuivanhu# dynobj AMLMOD= dynobj COLL= ../../../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/dobexec.asl0000700000175000017500000031771014773714160031041 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * DynObj: executable ASL operators */ Name (Z129, 0x81) /* The sample test */ Method (M370, 0, Serialized) { /* Flag of printing */ Name (PR, 0x00) /* Check that _TCI is supported */ If (!M3A5 ()) { Debug = "The Test Command interface with the ACPICA (_TCI) is not supported" Debug = "Test m370 skipped" Return (0x01) } /* The benchmark Package */ Name (PP00, Package (0x20) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }) /* Package for _TCI-begin statistics */ /* (use NamedX, don't use ArgX/LocalX). */ Name (PP0A, Package (0x01){}) /* Auxiliary objects for ASL-construction */ /* being investigated: */ Name (NUM, 0x05) Name (LPN0, 0x00) Name (LPC0, 0x00) /* Create and initialize the Memory Consumption Statistics Packages */ Local0 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ /* Available free locals */ Local2 = 0x00 Local3 = 0x00 Local4 = 0x00 Local5 = 0x00 Local6 = 0x00 Local7 = 0x00 /* ======================== While */ If (RN00) { Debug = "While" LPN0 = NUM /* \M370.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) /* ASL-construction being investigated */ While (LPN0) { LPN0-- LPC0++ } /* Use NamedX for _TCI-begin statistics Package */ /* not to touch the LOCAL_REFERENCE entry. */ _TCI (C201, PP0A) /* Print out the _TCI-end statistics */ /* and _TCI-begin statistics Packages */ If (PR) { M3A2 (Local0, 0x00) M3A2 (PP0A, 0x01) } /* Calculate difference of Packages */ M3A3 (Local0, PP0A, Local1) /* Print out the difference between the two */ /* Memory Consumption Statistics Packages. */ If (PR) { M3A2 (Local1, 0x02) } /* Verify result */ Local4 = M3A8 () Local5 = (0x02 * NUM) /* \M370.NUM_ */ Local4 [C009] = Local5 M3A4 (Local0, PP0A, Local1, Local4, 0x00, 0x00, 0x00) } Return (0x00) } /* Check simple particular operations */ Method (M371, 0, Serialized) { /* Because Local0-7 all have been taken, we declare a new variable here. */ Name (TEMP, 0x00) /* The Created Objects benchmark Package */ Name (PP00, Package (0x01){}) /* The Deleted Objects benchmark Package */ Name (PP01, Package (0x01){}) /* The per-memory type benchmark Package */ Name (PP02, Package (0x01){}) /* Package for _TCI-begin statistics */ /* (use NamedX, don't use ArgX/LocalX). */ Name (PP0A, Package (0x01){}) /* Objects for verified operators */ Mutex (MT00, 0x00) Event (EV00) Name (I000, 0x00) Name (I001, 0x00) Name (I002, 0x00) Name (I003, 0x00) Name (NUM, 0x05) Name (LPN0, 0x00) Name (LPC0, 0x00) Name (B000, Buffer (0x08){}) Name (B001, Buffer (0x08){}) Name (B002, Buffer (0x08){}) Name (B003, Buffer (0x01){}) Name (B004, Buffer (0x08){}) Name (RTP0, ResourceTemplate () { IRQNoFlags () {1} }) Name (RTP1, ResourceTemplate () { IRQNoFlags () {1} }) Name (P001, Package (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }) Name (P002, Package (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }) Name (S000, "s") Name (S001, "x") Name (S002, "swqrtyuiopnm") /* Optional Results, writing into uninitialized LocalX */ /* Add */ Method (M000, 0, Serialized) { Name (PP00, Package (0x01){}) Name (PP01, Package (0x01){}) Name (PP02, Package (0x01){}) Name (PP0A, Package (0x01){}) Local0 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ _TCI (C200, Local0) /* Store(Add(3, 4, Local2), i000) */ Local2 = (0x03 + 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ /* Since Local2 was uninitialized, */ /* acq0 is greater than rel0 by 1. */ PP02 = M3A9 () PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x01) } /* And */ Method (M001, 0, Serialized) { Name (PP00, Package (0x01){}) Name (PP01, Package (0x01){}) Name (PP02, Package (0x01){}) Name (PP0A, Package (0x01){}) Local0 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ _TCI (C200, Local0) /* Store(And(3, 4, Local2), i000) */ Local2 = (0x03 & 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ /* Since Local2 was uninitialized, */ /* acq0 is greater than rel0 by 1. */ PP02 = M3A9 () PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x02) } /* Store */ Method (M002, 0, Serialized) { Name (PP00, Package (0x01){}) Name (PP01, Package (0x01){}) Name (PP02, Package (0x01){}) Name (PP0A, Package (0x01){}) Local0 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ _TCI (C200, Local0) Local2 = "ssss" _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x02 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ /* Since Local2 was uninitialized, */ /* acq0 is greater than rel0 by 1. */ PP02 = M3A9 () PP02 [C228] = 0x01 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x03) } /* * // Apply the same technique to the entire test. * * // ################################## Check all the test: * * // Packages for _TCI statistics * Name(LLL0, Package(1) {}) * Name(LLL1, Package(1) {}) * Name(LLL2, Package(1) {}) * * // Create and initialize the Memory Consumption Statistics Packages * * Store(m3a0(c200), LLL0) // _TCI-end statistics * Store(m3a0(c201), LLL1) // _TCI-begin statistics * Store(m3a0(0), LLL2) // difference * * _TCI(c200, LLL0) * // ################################## Check all the test. */ /* Create and initialize the Memory Consumption Statistics Packages */ Local0 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ /* Available free locals */ Local2 = 0x00 Local3 = 0x00 Local4 = 0x00 Local5 = 0x00 Local6 = 0x00 Local7 = 0x00 SET0 (Z129, "m371", 0x00) /* ======================== Acquire */ If (RN00) { Debug = "Acquire" _TCI (C200, Local0) /* ASL-construction being investigated */ Acquire (MT00, 0x0064) /* Use NamedX for _TCI-begin statistics Package */ /* not to touch the LOCAL_REFERENCE entry. */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) /* calculate difference */ /* Verify result */ PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x04) } /* ======================== Add */ If (RN00) { Debug = "Add" /* Writing into uninitialized LocalX test */ M000 () _TCI (C200, Local0) Store ((0x03 + 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x05) _TCI (C200, Local0) Store ((0x03 + 0x04), TEMP) /* \M371.TEMP */ Store ((0x03 + 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x08 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x06) LPN0 = NUM /* \M371.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { Store ((0x03 + 0x04), TEMP) /* \M371.TEMP */ LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x06 * NUM) /* \M371.NUM_ */ PP00 [C009] = Local5 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x07) I000 = 0x03 I001 = 0x04 _TCI (C200, Local0) Store ((I000 + I001), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x08) Local4 = 0x00 _TCI (C200, Local0) Local4 = (I000 + I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x09) Local4 = 0x00 Local4 = "ssss" _TCI (C200, Local0) Local4 = (I000 + I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x0A) _TCI (C200, Local0) Local4 = (I000 + I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0B) Local4 = "ssss" _TCI (C200, Local0) Local4 = (I000 + I001) /* \M371.I001 */ Local4 = (I000 + I001) /* \M371.I001 */ Local4 = (I000 + I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x03 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x03 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x0C) Local4 = 0x00 Local5 = 0x00 Local6 = 0x00 _TCI (C200, Local0) Local6 = (Local4 + Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x03 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0D) Local6 = 0x00 _TCI (C200, Local0) I000 = (0x03 + Local6) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0E) /* Initialized Package example */ Local4 = Package (0x09) { 0x01, "", "1", 0x02, 0x03, Buffer (0x07) { 0x08 // . }, Package (0x14) { 0x08, 0x09, "q", 0x0A, 0x0B, Buffer (0x03) { 0x06 // . } } } _TCI (C200, Local0) Local4 = (I000 + I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00C] = 0x02 /* Package */ PP01 [C009] = 0x07 /* Integer */ PP01 [C00A] = 0x03 /* String */ PP01 [C00B] = 0x02 /* Buffer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ /* These 13 objects of "Store(Package(9) {1,..." */ /* being deleted inside _TCI brackets were created */ /* outside it before that: */ PP02 = M3A9 () Local4 = (0x02 - 0x0F) PP02 [C228] = Local4 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0x0F) } /* ======================== And */ If (RN00) { Debug = "And" /* Writing into uninitialized LocalX test */ M001 () _TCI (C200, Local0) Store ((0x03 & 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x10) Local4 = Package (0x09){} _TCI (C200, Local0) Local4 = (0x03 & 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x11) _TCI (C200, Local0) I000 = (0x03 & 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x12) } /* ======================== Concatenate */ If (RN00) { Debug = "Concatenate" _TCI (C200, Local0) TEMP = Concatenate (0x03, 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x13) _TCI (C200, Local0) Concatenate (0x03, 0x04, B000) /* \M371.B000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x14) _TCI (C200, Local0) Concatenate (0x03, 0x04, B003) /* \M371.B003 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x15) _TCI (C200, Local0) TEMP = Concatenate ("3", "4") _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C00A] = 0x03 /* String */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x16) _TCI (C200, Local0) Concatenate ("3", "4", S000) /* \M371.S000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x03 /* String */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x17) I000 = 0x02 I001 = 0x03 _TCI (C200, Local0) TEMP = Concatenate (Buffer (I000) { 0x03, 0x04 // .. }, Buffer (I001) { 0x06, 0x07, 0x08 // ... }) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C00B] = 0x03 /* Buffer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x18) _TCI (C200, Local0) Concatenate (Buffer (I000) { 0x03, 0x04 // .. }, Buffer (I001) { 0x06, 0x07, 0x08 // ... }, B002) /* \M371.B002 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00B] = 0x03 /* Buffer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x19) _TCI (C200, Local0) Concatenate (Buffer (I000) { 0x03, 0x04 // .. }, Buffer (I001) { 0x06, 0x07, 0x08 // ... }, S000) /* \M371.S000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C00B] = 0x03 /* Buffer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x1A) CopyObject ("", S000) /* \M371.S000 */ _TCI (C200, Local0) Concatenate ("3", "4", B001) /* \M371.B001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00B] = 0x01 /* Buffer */ PP00 [C00A] = 0x03 /* String */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x1B) Local4 = Package (0x09){} _TCI (C200, Local0) Concatenate (0x03, 0x04, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x1C) Local4 = "sss" _TCI (C200, Local0) Concatenate ("3", "4", Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x03 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x1D) Local4 = 0x00 _TCI (C200, Local0) Concatenate ("3", "4", Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x03 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00A] = 0x02 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x1E) Local4 = Package (0x09){} _TCI (C200, Local0) Concatenate (Buffer (0x03){}, Buffer (0x04){}, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00B] = 0x03 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00B] = 0x02 /* Buffer */ PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x1F) } /* ======================== ConcatenateResTemplate */ If (RN00) { Debug = "ConcatenateResTemplate" Local4 = 0x00 _TCI (C200, Local0) ConcatenateResTemplate (RTP0, RTP1, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x20) } /* ======================== CondRefOf */ If (RN01) { Debug = "CondRefOf" /* Investigate: why 3 objects, but not 2 */ _TCI (C200, Local0) TEMP = CondRefOf (I003) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x21) CopyObject ("sssss", S000) /* \M371.S000 */ _TCI (C200, Local0) TEMP = CondRefOf (S000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x22) _TCI (C200, Local0) TEMP = CondRefOf (I003) TEMP = CondRefOf (I003) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x23) } If (RN00) { Local4 = Package (0x09){} _TCI (C200, Local0) CondRefOf (S001, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x24) Local4 = Buffer (0x09){} Local5 = Package (0x09){} _TCI (C200, Local0) CondRefOf (Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x03 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x25) } /* ======================== CopyObject */ If (RN00) { Debug = "CopyObject" _TCI (C200, Local0) CopyObject (I000, I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x26) Local4 = Buffer (0x09){} I000 = 0x02 _TCI (C200, Local0) CopyObject (I000, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x27) CondRefOf (Local4, Local5) _TCI (C200, Local0) CopyObject (Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C01C] = 0x03 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x28) _TCI (C200, Local0) CopyObject (Local4, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x29) } /* ======================== Decrement */ If (RN00) { Debug = "Decrement" _TCI (C200, Local0) I000-- _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2A) _TCI (C200, Local0) Local4-- _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2B) } /* ======================== DerefOf */ If (RN00) { Debug = "DerefOf" CopyObject (0x00, I000) /* \M371.I000 */ CopyObject (0x00, I001) /* \M371.I001 */ Local4 = RefOf (I000) _TCI (C200, Local0) TEMP = DerefOf (Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2C) Local4 = RefOf (I000) _TCI (C200, Local0) I001 = DerefOf (Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2D) } /* ======================== Divide */ If (RN01) { Debug = "Divide" /* Investigate: why 6 objects, but not 5 */ _TCI (C200, Local0) Store ((0x01 / 0x02), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x06 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2E) _TCI (C200, Local0) Divide (0x01, 0x02, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x05 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2F) _TCI (C200, Local0) Divide (0x01, 0x02, I000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x05 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x30) _TCI (C200, Local0) Divide (0x01, 0x02, I000, I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x31) _TCI (C200, Local0) Divide (0x01, 0x02, Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x32) Local4 = 0x1111111111111111 Local5 = 0x12345678 Local6 = "sssssssss" Local7 = Buffer (0x11){} _TCI (C200, Local0) Divide (Local4, Local5, Local6, Local7) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x04 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00A] = 0x01 /* String */ PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x04 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x33) } /* ======================== Fatal */ If (RN00) { Debug = "Fatal" _TCI (C200, Local0) Fatal (0x01, 0x00000002, 0x03) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x34) } I000 = 0x01 I001 = 0x01 /* ======================== FindSetLeftBit */ If (RN00) { Debug = "FindSetLeftBit" _TCI (C200, Local0) TEMP = FindSetLeftBit (0x05) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x35) _TCI (C200, Local0) TEMP = FindSetLeftBit (I000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x36) _TCI (C200, Local0) FindSetLeftBit (I000, I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x37) _TCI (C200, Local0) FindSetLeftBit (I000, I000) /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x38) Local4 = 0x01 Local5 = 0x01 _TCI (C200, Local0) FindSetLeftBit (Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x39) _TCI (C200, Local0) FindSetLeftBit (I000, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3A) } /* ======================== FindSetRightBit */ If (RN00) { Debug = "FindSetRightBit" _TCI (C200, Local0) TEMP = FindSetRightBit (0x05) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3B) _TCI (C200, Local0) TEMP = FindSetRightBit (I000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3C) _TCI (C200, Local0) FindSetRightBit (I000, I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3D) _TCI (C200, Local0) FindSetRightBit (I000, I000) /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3E) Local4 = 0x01 Local5 = 0x01 _TCI (C200, Local0) FindSetRightBit (Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3F) _TCI (C200, Local0) FindSetRightBit (I000, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x40) Local5 = Package (0x09){} _TCI (C200, Local0) FindSetRightBit (I000, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x41) } /* ======================== FromBCD */ If (RN00) { Debug = "FromBCD" _TCI (C200, Local0) TEMP = FromBCD (0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x42) I000 = 0x01 I001 = 0x01 _TCI (C200, Local0) TEMP = FromBCD (I000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x43) _TCI (C200, Local0) FromBCD (I000, I000) /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x44) _TCI (C200, Local0) FromBCD (I000, I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x45) Local4 = 0x01 Local5 = Buffer (0x09){} _TCI (C200, Local0) FromBCD (Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x46) } /* ======================== Increment */ If (RN00) { Debug = "Increment" I000 = 0x01 _TCI (C200, Local0) I000++ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x47) Local4 = 0x01 _TCI (C200, Local0) Local4++ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x48) } /* ======================== Index */ If (RN00) { Debug = "Index" /* Package */ _TCI (C200, Local0) Store (P001 [0x01], TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x49) _TCI (C200, Local0) Store (Index (Package (0x10) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }, 0x01), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x0B /* Integer */ PP00 [C00C] = 0x01 /* Package */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x4A) Local4 = Buffer (0x01){} _TCI (C200, Local0) Local4 = P001 [0x01] _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x4B) I000 = 0x01 Local4 = "ssssss" _TCI (C200, Local0) Local4 = P001 [I000] /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x4C) /* Buffer */ _TCI (C200, Local0) Store (B004 [0x01], TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x4D) _TCI (C200, Local0) Store (Index (Buffer (0x10) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, 0x01), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x4E) Local4 = "ssssssssss" _TCI (C200, Local0) Local4 = B004 [0x01] _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x4F) I000 = 0x01 Local4 = "ssssss" _TCI (C200, Local0) Local4 = B004 [I000] /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x50) Local4 = Buffer (0x09){} _TCI (C200, Local0) Local4 = B004 [0x01] _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x51) /* String */ _TCI (C200, Local0) Store (S002 [0x01], TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x52) _TCI (C200, Local0) Store (Index ("sdrtghjkiopuiy", 0x01), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x53) Local4 = Buffer (0x01){} _TCI (C200, Local0) Local4 = S002 [0x01] _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x54) I000 = 0x01 Local4 = "ssssss" _TCI (C200, Local0) Local4 = S002 [I000] /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x55) } /* ======================== LAnd */ If (RN00) { Debug = "LAnd" I000 = 0x01 I001 = 0x01 _TCI (C200, Local0) TEMP = (0x03 && 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x56) _TCI (C200, Local0) TEMP = (I000 && I001) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x57) Local4 = 0x01 Local5 = 0x01 _TCI (C200, Local0) TEMP = (Local4 && Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x58) Local5 = 0x01 _TCI (C200, Local0) TEMP = (I000 && Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x59) } /* ======================== LEqual */ If (RN00) { Debug = "LEqual" Local4 = 0x01 Local5 = 0x01 I000 = 0x01 I001 = 0x01 _TCI (C200, Local0) TEMP = (0x03 == 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x5A) _TCI (C200, Local0) TEMP = (I000 == I001) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x5B) _TCI (C200, Local0) TEMP = (Local4 == Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x5C) _TCI (C200, Local0) TEMP = (I000 == Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x5D) } /* ======================== LGreater */ If (RN00) { Debug = "LGreater" _TCI (C200, Local0) TEMP = (0x03 > 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x5E) _TCI (C200, Local0) TEMP = (I000 > I001) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x5F) _TCI (C200, Local0) TEMP = (Local4 > Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x60) _TCI (C200, Local0) TEMP = (I000 > Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x61) } /* ======================== LGreaterEqual */ If (RN01) { Debug = "LGreaterEqual" /* Investigate: why the numbers differ */ /* those of LGreater (+1 Integer). */ _TCI (C200, Local0) TEMP = (0x03 >= 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x62) _TCI (C200, Local0) TEMP = (I000 >= I001) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x63) _TCI (C200, Local0) TEMP = (Local4 >= Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x64) _TCI (C200, Local0) TEMP = (I000 >= Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x65) } /* ======================== LLess */ If (RN00) { Debug = "LLess" _TCI (C200, Local0) TEMP = (0x03 < 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x66) _TCI (C200, Local0) TEMP = (I000 < I001) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x67) _TCI (C200, Local0) TEMP = (Local4 < Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x68) _TCI (C200, Local0) TEMP = (I000 < Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x69) } /* ======================== LLessEqual */ If (RN01) { Debug = "LLessEqual" /* Investigate: why the numbers differ */ /* those of LGreater (+1 Integer) (but */ /* identical to LGreaterEqual). */ _TCI (C200, Local0) TEMP = (0x03 <= 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x6A) _TCI (C200, Local0) TEMP = (I000 <= I001) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x6B) _TCI (C200, Local0) TEMP = (Local4 <= Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x6C) _TCI (C200, Local0) TEMP = (I000 <= Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x6D) } /* ======================== LNot */ If (RN00) { Debug = "LNot" _TCI (C200, Local0) TEMP = !0x03 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x6E) _TCI (C200, Local0) TEMP = !I000 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x6F) _TCI (C200, Local0) TEMP = !Local4 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x70) } /* ======================== LNotEqual */ If (RN01) { Debug = "LNotEqual" /* Investigate: why the numbers differ */ /* those of LGreater (+1 Integer) (but */ /* identical to LGreaterEqual). */ _TCI (C200, Local0) TEMP = (0x03 != 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x71) _TCI (C200, Local0) TEMP = (I000 != I001) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x72) _TCI (C200, Local0) TEMP = (Local4 != Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x73) _TCI (C200, Local0) TEMP = (I000 != Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x74) } /* ======================== LOr */ If (RN00) { Debug = "LOr" _TCI (C200, Local0) TEMP = (0x03 || 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x75) _TCI (C200, Local0) TEMP = (I000 || I001) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x76) _TCI (C200, Local0) TEMP = (Local4 || Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x77) _TCI (C200, Local0) TEMP = (I000 || Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x78) } /* ======================== Match */ If (RN00) { Debug = "Match" Local4 = 0x01 Local5 = 0x01 I000 = 0x01 I001 = 0x01 _TCI (C200, Local0) TEMP = Match (Package (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }, MTR, 0x02, MTR, 0x03, 0x00) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x0F /* Integer */ PP00 [C00C] = 0x01 /* Package */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x79) _TCI (C200, Local0) TEMP = Match (Package (I001) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }, MTR, I000, MTR, Local4, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x0B /* Integer */ PP00 [C00C] = 0x01 /* Package */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x7A) _TCI (C200, Local0) TEMP = Match (P002, MTR, I000, MTR, Local4, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x7B) } /* ======================== Mid */ If (RN00) { Debug = "Mid" _TCI (C200, Local0) TEMP = Mid ("asdfghjk", 0x00, 0x01) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C00A] = 0x02 /* String */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x7C) Local4 = Package (0x09){} _TCI (C200, Local0) Mid ("gsqrtsghjkmnh", 0x00, 0x09, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x02 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00A] = 0x01 /* String */ PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x7D) Local4 = Package (0x09){} _TCI (C200, Local0) Mid (S000, 0x00, 0x01, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x7E) Local4 = Buffer (0x09){} _TCI (C200, Local0) Mid (B000, 0x00, 0x01, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x7F) } /* ======================== Mod */ If (RN00) { Debug = "Mod" _TCI (C200, Local0) Store ((0x03 % 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x80) Local4 = Buffer (0x09){} _TCI (C200, Local0) Local4 = (0x03 % 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x81) Local4 = 0x01 _TCI (C200, Local0) I001 = (I000 % Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x82) } /* ======================== Multiply */ If (RN00) { Debug = "Multiply" _TCI (C200, Local0) Store ((0x03 * 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x83) _TCI (C200, Local0) I000 = (0x03 * 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x84) Local4 = 0x01 _TCI (C200, Local0) Local4 *= Local4 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x03 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x85) } /* ======================== NAnd */ If (RN00) { Debug = "NAnd" _TCI (C200, Local0) TEMP = NAnd (0x03, 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x86) _TCI (C200, Local0) NAnd (I000, 0x04, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x87) _TCI (C200, Local0) NAnd (I000, I001, I002) /* \M371.I002 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x88) } /* ======================== NOr */ If (RN00) { Debug = "NOr" _TCI (C200, Local0) TEMP = NOr (0x03, 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x89) _TCI (C200, Local0) NOr (I000, 0x04, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x8A) _TCI (C200, Local0) NOr (I000, I001, I002) /* \M371.I002 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x8B) } /* ======================== Not */ If (RN00) { Debug = "Not" _TCI (C200, Local0) Store (~0x03, TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x8C) _TCI (C200, Local0) I001 = ~0x03 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x8D) _TCI (C200, Local0) I001 = ~I000 /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x8E) Local4 = 0x01 _TCI (C200, Local0) Local4 = ~Local4 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x8F) Local5 = "sssssssssss" _TCI (C200, Local0) Local5 = ~I000 /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x90) } /* ======================== ObjectType */ If (RN00) { Debug = "ObjectType" _TCI (C200, Local0) TEMP = ObjectType (I000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x91) Local4 = Package (0x01){} _TCI (C200, Local0) TEMP = ObjectType (Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x92) } /* ======================== Or */ If (RN00) { Debug = "Or" _TCI (C200, Local0) Store ((0x03 | 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x93) Local4 = Package (0x09){} _TCI (C200, Local0) Local4 = (I000 | 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x94) _TCI (C200, Local0) I002 = (I000 | I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x95) } /* ======================== RefOf */ If (RN00) { Debug = "RefOf" _TCI (C200, Local0) TEMP = RefOf (I000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x96) Local4 = 0x01 _TCI (C200, Local0) TEMP = RefOf (Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x97) } /* ======================== Release */ If (RN00) { Debug = "Release" Acquire (MT00, 0x0064) _TCI (C200, Local0) Release (MT00) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x98) } /* ======================== Reset */ If (RN00) { Debug = "Reset" _TCI (C200, Local0) Reset (EV00) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x99) } /* ======================== ShiftLeft */ If (RN00) { Debug = "ShiftLeft" _TCI (C200, Local0) Store ((0x03 << 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x9A) Local4 = "qqqqqqqqqqqqq" _TCI (C200, Local0) Local4 = (0x03 << 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x9B) _TCI (C200, Local0) I001 = (I000 << Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x9C) } /* ======================== ShiftRight */ If (RN00) { Debug = "ShiftRight" _TCI (C200, Local0) Store ((0x03 >> 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x9D) Local4 = "qqqqqqqqqqqqq" _TCI (C200, Local0) Local4 = (0x03 >> 0x04) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0x9E) _TCI (C200, Local0) I001 = (I000 >> Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x9F) } /* ======================== Signal */ If (RN00) { Debug = "Signal" Reset (EV00) _TCI (C200, Local0) Signal (EV00) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xA0) } /* ======================== SizeOf */ If (RN00) { Debug = "SizeOf" Local4 = Package (0x09){} _TCI (C200, Local0) TEMP = SizeOf (Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xA1) _TCI (C200, Local0) TEMP = SizeOf (B000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xA2) } /* ======================== Sleep */ If (RN00) { Debug = "Sleep" _TCI (C200, Local0) Sleep (0x01) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xA3) I000 = 0x01 _TCI (C200, Local0) Sleep (I000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xA4) Local4 = 0x01 _TCI (C200, Local0) Sleep (Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xA5) } /* ======================== Stall */ If (RN00) { Debug = "Stall" _TCI (C200, Local0) Stall (0x01) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xA6) _TCI (C200, Local0) Stall (I000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xA7) _TCI (C200, Local0) Stall (Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xA8) } /* ======================== Store */ If (RN01) { /* Investigate and analyze the logic of */ /* crreating/deleting objects while processing */ /* the Store operator (the number of objects in */ /* different cases applying the Store operator). */ Debug = "Store" /* Writing into uninitialized LocalX */ M002 () Local4 = "ssssssssss" _TCI (C200, Local0) Local4 = 0x05 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xA9) I000 = 0x01 I001 = 0x01 _TCI (C200, Local0) I001 = I000 /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xAA) /* But why this example contains three objects, */ /* just as expected. */ Local4 = "sssssssss" Local5 = Package (0x09){} _TCI (C200, Local0) Local5 = Local4 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xAB) Local4 = Package (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 } Local5 = 0x01 _TCI (C200, Local0) Local5 = Local4 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x08 /* Integer */ PP00 [C00C] = 0x01 /* Package */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C01C] = 0x02 /* LOCAL_REFERENCE */ /* Package is not being removed, */ /* its elements created outide are */ /* not removed as well. */ PP02 = M3A9 () PP02 [C228] = 0x08 /* CLIST_ID_OPERAND */ M3A4 (Local0, PP0A, Local1, PP00, PP01, PP02, 0xAC) Local4 = Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ } Local5 = "q" _TCI (C200, Local0) Local5 = Local4 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00A] = 0x01 /* String */ PP01 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xAD) Local4 = "sghjklopiuytrwq" Local5 = Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ } _TCI (C200, Local0) Local5 = Local4 _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xAE) Local4 = "a" _TCI (C200, Local0) Local4 = "ssss" _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xAF) Local4 = Buffer (0x03){} _TCI (C200, Local0) Local4 = Buffer (0x03){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB0) /* Why there is no one new Integer? */ I000 = 0x00 I001 = 0x00 _TCI (C200, Local0) I001 = I000 /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB1) } /* ======================== Subtract */ If (RN00) { Debug = "Subtract" _TCI (C200, Local0) Store ((0x03 - 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB2) _TCI (C200, Local0) Store ((0x03 - 0x04), TEMP) /* \M371.TEMP */ Store ((0x03 - 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x08 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB3) NUM = 0x05 LPN0 = NUM /* \M371.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { Store ((0x03 - 0x04), TEMP) /* \M371.TEMP */ LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x06 * NUM) /* \M371.NUM_ */ PP00 [C009] = Local5 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB4) I000 = 0x03 I001 = 0x04 _TCI (C200, Local0) Store ((I000 - I001), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB5) Local4 = 0x00 _TCI (C200, Local0) Local4 = (I000 - I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB6) Local4 = 0x02 Local5 = 0x01 Local6 = 0x00 _TCI (C200, Local0) Local6 = (Local4 - Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x03 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB7) _TCI (C200, Local0) I000 = (0x03 - Local6) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB8) } /* ======================== ToBCD */ If (RN00) { Debug = "ToBCD" _TCI (C200, Local0) TEMP = ToBCD (0x03) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xB9) _TCI (C200, Local0) ToBCD (0x03, I000) /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xBA) _TCI (C200, Local0) ToBCD (0x03, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xBB) _TCI (C200, Local0) ToBCD (I000, I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xBC) _TCI (C200, Local0) ToBCD (Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xBD) } /* ======================== ToBuffer */ If (RN00) { Debug = "ToBuffer" _TCI (C200, Local0) TEMP = ToBuffer (0x03) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xBE) Local4 = 0x01 _TCI (C200, Local0) ToBuffer (0x03, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xBF) Local4 = 0x01 _TCI (C200, Local0) ToBuffer (Local4, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xC0) Local4 = 0x01 _TCI (C200, Local0) ToBuffer (Buffer (0x03){}, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C00B] = 0x02 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x02 /* Integer */ PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xC1) } If (RN01) { /* Investigate, why only two objects */ Local4 = Buffer (0x03){} _TCI (C200, Local0) ToBuffer (Local4, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xC2) } If (RN00) { Local4 = Buffer (0x03){} Local5 = Buffer (0x03){} _TCI (C200, Local0) ToBuffer (Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xC3) } /* ======================== ToDecimalString */ If (RN00) { Debug = "ToDecimalString" _TCI (C200, Local0) TEMP = ToDecimalString (0x03) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x01 /* String */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xC4) Local4 = Buffer (0x03){} _TCI (C200, Local0) ToDecimalString (0x03, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xC5) Local4 = "aaa" _TCI (C200, Local0) ToDecimalString (I000, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xC6) Local4 = 0x01 Local5 = Package (0x09){} _TCI (C200, Local0) ToDecimalString (Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xC7) Local4 = 0x01 _TCI (C200, Local0) ToDecimalString (Local4, S000) /* \M371.S000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xC8) } /* ======================== ToHexString */ If (RN00) { Debug = "ToHexString" _TCI (C200, Local0) TEMP = ToHexString (0x03) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x01 /* String */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xC9) Local4 = Buffer (0x03){} _TCI (C200, Local0) ToHexString (0x03, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00B] = 0x01 /* Buffer */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xCA) Local4 = "aaa" _TCI (C200, Local0) ToHexString (I000, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xCB) Local4 = 0x01 Local5 = Package (0x09){} _TCI (C200, Local0) ToHexString (Local4, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xCC) Local4 = 0x01 _TCI (C200, Local0) ToHexString (Local4, S000) /* \M371.S000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xCD) } /* ======================== ToInteger */ If (RN01) { Debug = "ToInteger" /* Investigate: why only 2 objects, but not 3 */ _TCI (C200, Local0) TEMP = ToInteger (0x03) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xCE) _TCI (C200, Local0) ToInteger (0x03, I000) /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xCF) /* Inv: why only one object, no Integer */ Local4 = 0x01 _TCI (C200, Local0) ToInteger (Local4, I000) /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xD0) Local4 = Package (0x09){} _TCI (C200, Local0) ToInteger (I000, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xD1) /* See: there are created all the expected 3 objects */ _TCI (C200, Local0) TEMP = ToInteger ("0xaaaa") _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x01 /* String */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xD2) _TCI (C200, Local0) ToInteger ("0xaaaa", I000) /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C00A] = 0x01 /* String */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xD3) Local4 = "0xaaaa" _TCI (C200, Local0) ToInteger (Local4, I000) /* \M371.I000 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xD4) S000 = "0xaaaa" Local4 = Package (0x09){} _TCI (C200, Local0) ToInteger (S000, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xD5) _TCI (C200, Local0) TEMP = ToInteger (Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C00B] = 0x01 /* Buffer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xD6) } /* ======================== ToString */ If (RN02) { Debug = "ToString" /* Integer */ /* Inv: Buffer is result of conversion of Integer 2? */ /* Error: 1 Integer is not deleted */ _TCI (C200, Local0) TEMP = ToString (0x02, Ones) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C00A] = 0x01 /* String */ PP00 [C00B] = 0x01 /* Buffer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xD7) } If (RN00) { Local5 = "sssss" _TCI (C200, Local0) Local5 = ToString (0x02, Ones) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xD8) I000 = 0x02 Local5 = "sssss" _TCI (C200, Local0) Local5 = ToString (I000, Ones) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x01 /* String */ PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xD9) } If (RN02) { /* Error: 1 Integer is not deleted */ Local5 = "sssss" _TCI (C200, Local0) ToString (0x02, 0x00, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x01 /* String */ PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xDA) } /* Buffer */ If (RN00) { Local5 = "sssss" B000 = Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } _TCI (C200, Local0) Local5 = ToString (B000, Ones) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xDB) Local5 = "sssss" _TCI (C200, Local0) ToString (Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x00, Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C00A] = 0x01 /* String */ PP00 [C00B] = 0x01 /* Buffer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xDC) Local4 = Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } Local5 = 0x01 Local6 = "sssssss" _TCI (C200, Local0) ToString (Local4, Local5, Local6) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C00A] = 0x01 /* String */ PP00 [C01C] = 0x03 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xDD) } /* ======================== Wait */ If (RN00) { Debug = "Wait" _TCI (C200, Local0) Wait (EV00, 0x01) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xDE) Local4 = 0x01 _TCI (C200, Local0) Wait (EV00, Local4) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xDF) I000 = 0x01 _TCI (C200, Local0) Wait (EV00, I000) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xE0) } /* ======================== XOr */ If (RN00) { Debug = "XOr" _TCI (C200, Local0) Store ((0x03 ^ 0x04), TEMP) /* \M371.TEMP */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xE1) Local4 = 0x01 Local5 = 0x01 Local6 = 0x01 _TCI (C200, Local0) Local6 = (Local4 ^ Local5) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x03 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xE2) I000 = 0x01 I001 = 0x01 I002 = 0x01 _TCI (C200, Local0) I002 = (I000 ^ I001) /* \M371.I001 */ _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0xE3) Local6 = Package (0x09){} _TCI (C200, Local0) Local6 = (I000 ^ 0x03) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x02 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ PP01 = M3A8 () PP01 [C009] = 0x01 /* Integer */ PP01 [C00C] = 0x01 /* Package */ PP01 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, PP01, 0x00, 0xE4) } RST0 () /* * // ################################## Check all the test: * _TCI(c201, LLL1) * m3a3(LLL0, LLL1, LLL2) * m3a4(LLL0, LLL1, LLL2, 0, 0, 0, 0xff0) * // ################################## Check all the test. */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/dynobj/dobctl.asl0000700000175000017500000011762314773714160030700 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * DynObj: Method execution control operators */ Name (Z131, 0x83) /* Check the Method Execution Control operators */ Method (M372, 0, Serialized) { /* The Created Objects benchmark Package */ Name (PP00, Package (0x01){}) /* The Deleted Objects benchmark Package */ Name (PP01, Package (0x01){}) /* The per-memory type benchmark Package */ Name (PP02, Package (0x01){}) /* Package for _TCI-begin statistics */ /* (use NamedX, don't use ArgX/LocalX). */ Name (PP0A, Package (0x01){}) /* Objects for verified operators */ Name (NUM, 0x00) Name (NUM2, 0x00) Name (LPN0, 0x00) Name (LPC0, 0x00) Name (I000, 0x00) Name (I001, 0x00) Name (I002, 0x00) /* Methods verified */ Method (M000, 0, NotSerialized) { } Method (M001, 0, NotSerialized) { Return (0x03E8) } Method (M002, 6, NotSerialized) { } Method (M003, 7, NotSerialized) { Return (0x03E8) } Method (M004, 7, NotSerialized) { Local0 = 0x00 Local1 = 0x00 Local2 = 0x00 Local3 = 0x00 Local4 = 0x00 Local5 = 0x00 Local6 = 0x00 Local7 = 0x00 Local7 = (Local0 + Local1) Return (Local7) } /* Create and initialize the Memory Consumption Statistics Packages */ Local0 = M3A0 (C200) /* _TCI-end statistics */ PP0A = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ /* Available free locals */ Local2 = 0x00 Local3 = 0x00 Local4 = 0x00 Local5 = 0x00 Local6 = 0x00 Local7 = 0x00 SET0 (Z131, "m372", 0x00) /* ======================== While */ If (RN00) { Debug = "While, Continue, Break" NUM = 0x49 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x00) /* Inv: why (3*num)+1, why +1? */ NUM = 0x25 Local4 = NUM /* \M372.NUM_ */ Local5 = 0x00 _TCI (C200, Local0) While (Local4) { Local4-- Local5++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local6 = (0x02 * NUM) /* \M372.NUM_ */ Local7 = (0x03 * NUM) /* \M372.NUM_ */ Local7++ PP00 [C009] = Local6 /* Integer */ PP00 [C01C] = Local7 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x01) } If (RN02) { /* Error: memory is lost */ NUM2 = 0xC8 I000 = NUM2 /* \M372.NUM2 */ NUM = 0xC8 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { If (I000) { I000-- Continue } LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x02 * NUM) /* \M372.NUM_ */ Local4 = (Local5 + NUM2) /* \M372.NUM2 */ PP00 [C009] = Local4 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x02) } If (RN02) { /* Error: memory is lost */ NUM2 = 0x64 Local4 = NUM2 /* \M372.NUM2 */ NUM = 0xC8 Local5 = NUM /* \M372.NUM_ */ Local6 = 0x00 _TCI (C200, Local0) While (Local5) { If (Local4) { Local4-- Continue } Local5-- Local6++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x02 * NUM) /* \M372.NUM_ */ Local4 = (Local5 + NUM2) /* \M372.NUM2 */ PP00 [C009] = Local4 /* Integer */ Local7 = (0x04 * NUM) /* \M372.NUM_ */ Local7++ Local6 = (0x03 * NUM2) /* \M372.NUM2 */ Local5 = (Local7 + Local6) PP00 [C01C] = Local5 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x03) } If (RN02) { NUM = 0x64 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { Break LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x04) } /* ======================== If */ If (RN00) { Debug = "If, ElseIf, Else" _TCI (C200, Local0) If (0x00){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x05) _TCI (C200, Local0) If (0x01){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x06) I000 = 0x00 _TCI (C200, Local0) If (I000){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x07) I000 = 0x01 _TCI (C200, Local0) If (I000){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x08) Local4 = 0x00 _TCI (C200, Local0) If (Local4){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x09) Local4 = 0x01 _TCI (C200, Local0) If (Local4){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0A) I000 = 0x00 NUM = 0x13 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { If (I000){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0B) I000 = 0x01 NUM = 0x13 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { If (I000){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0C) Local4 = 0x00 NUM = 0x13 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { If (Local4){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ PP00 [C01C] = NUM /* LOCAL_REFERENCE */ /* \M372.NUM_ */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0D) Local4 = 0x01 NUM = 0x13 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { If (Local4){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ PP00 [C01C] = NUM /* LOCAL_REFERENCE */ /* \M372.NUM_ */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0E) /* LEqual */ NUM = 0x64 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 Local4 = 0x01 Local5 = 0x01 _TCI (C200, Local0) While (LPN0) { If ((Local4 == Local5)){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x03 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C01C] = Local5 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x0F) NUM = 0x64 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 Local4 = 0x00 Local5 = 0x01 _TCI (C200, Local0) While (LPN0) { If ((Local4 == Local5)){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x03 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C01C] = Local5 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x10) } /* ======================== If, Else */ If (RN02) { /* Error: 1 ACPI_MEM_LIST_STATE is not deleted */ Local4 = 0x01 Local5 = 0x01 _TCI (C200, Local0) If ((Local4 == Local5)){} Else { } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x11) Local4 = 0x00 Local5 = 0x00 _TCI (C200, Local0) If ((Local4 == Local5)){} Else { } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x12) I000 = 0x01 I001 = 0x01 _TCI (C200, Local0) If ((I000 == I001)){} Else { } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x13) I000 = 0x00 I001 = 0x00 _TCI (C200, Local0) If ((I000 == I001)){} Else { } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x14) } If (RN00) { Local4 = 0x00 Local5 = 0x01 _TCI (C200, Local0) If ((Local4 == Local5)){} Else { } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x15) I000 = 0x00 I001 = 0x01 _TCI (C200, Local0) If ((I000 == I001)){} Else { } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x16) } /* ======================== If, ElseIf */ If (RN02) { /* Error: 1 ACPI_MEM_LIST_STATE is not deleted */ Local4 = 0x01 _TCI (C200, Local0) If (Local4){} ElseIf (Local4){} ElseIf (Local4){} ElseIf (Local4){} ElseIf (Local4){} ElseIf (Local4){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x17) /* Error: 1 ACPI_MEM_LIST_STATE is not deleted */ I000 = 0x01 _TCI (C200, Local0) If (I000){} ElseIf (I000){} ElseIf (I000){} ElseIf (I000){} ElseIf (I000){} ElseIf (I000){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x18) /* Error: (1*num) ACPI_MEM_LIST_STATE are not deleted */ NUM = 0x64 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 Local4 = 0x01 _TCI (C200, Local0) While (LPN0) { If (Local4){} ElseIf (Local4){} ElseIf (Local4){} ElseIf (Local4){} ElseIf (Local4){} ElseIf (Local4){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ PP00 [C01C] = NUM /* LOCAL_REFERENCE */ /* \M372.NUM_ */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x19) } If (RN00) { Local4 = 0x00 _TCI (C200, Local0) If (Local4){} ElseIf (Local4){} ElseIf (Local4){} ElseIf (Local4){} ElseIf (Local4){} ElseIf (Local4){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C01C] = 0x06 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x1A) I000 = 0x00 _TCI (C200, Local0) If (I000){} ElseIf (I000){} ElseIf (I000){} ElseIf (I000){} ElseIf (I000){} ElseIf (I000){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x1B) } If (RN02) { /* Error: 1 ACPI_MEM_LIST_STATE is not deleted */ Local4 = 0x01 Local5 = 0x01 _TCI (C200, Local0) If ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ PP00 [C01C] = 0x02 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x1C) /* Error: (1*num) ACPI_MEM_LIST_STATE are not deleted */ NUM = 0x64 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 Local4 = 0x01 Local5 = 0x01 _TCI (C200, Local0) While (LPN0) { If ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x03 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C01C] = Local5 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x1D) /* Error: (1*num) ACPI_MEM_LIST_STATE are not deleted */ NUM = 0x64 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 I000 = 0x01 I001 = 0x01 _TCI (C200, Local0) While (LPN0) { If ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x03 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x1E) /* Error: (1*num) ACPI_MEM_LIST_STATE are not deleted */ NUM = 0x64 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 I000 = 0x00 I001 = 0x00 _TCI (C200, Local0) While (LPN0) { If ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x03 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x1F) } If (RN00) { NUM = 0x11 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 Local4 = 0x00 Local5 = 0x01 _TCI (C200, Local0) While (LPN0) { If ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x08 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ Local5 = (0x0C * NUM) /* \M372.NUM_ */ PP00 [C01C] = Local5 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x20) NUM = 0x11 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 I000 = 0x00 I001 = 0x01 _TCI (C200, Local0) While (LPN0) { If ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} ElseIf ((I000 == I001)){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x08 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x21) } If (RN02) { /* Error: (1*num) ACPI_MEM_LIST_STATE are not deleted */ NUM = 0x64 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 Local4 = 0x00 Local5 = 0x01 _TCI (C200, Local0) While (LPN0) { If ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == 0x00)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x06 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ Local5 = (0x05 * NUM) /* \M372.NUM_ */ PP00 [C01C] = Local5 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x22) } /* ======================== If, ElseIf, Else */ If (RN02) { /* Error: (1*num) ACPI_MEM_LIST_STATE are not deleted */ NUM = 0x64 LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 Local4 = 0x01 Local5 = 0x01 _TCI (C200, Local0) While (LPN0) { If ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} ElseIf ((Local4 == Local5)){} Else { } LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x03 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ Local5 = (0x02 * NUM) /* \M372.NUM_ */ PP00 [C01C] = Local5 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x23) } /* ======================== Switch, Case, Default */ /* CAUTION: these tests should be a few updated after fixing interpreter */ If (RN02) { Debug = "Switch, Case, Default" /* Inv: why so many Integers, 4 */ /* Error: why is one Integer not deleted */ _TCI (C200, Local0) Switch (0x00) { Case (0x01) { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x24) _TCI (C200, Local0) Switch (0x01) { Case (0x01) { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x25) } If (RN02) { /* Inv: why so many Integers, 4 */ /* Error: why is one Integer not deleted */ /* Error: 1 ACPI_MEM_LIST_STATE is not deleted */ _TCI (C200, Local0) Switch (0x00) { Case (0x01) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x26) _TCI (C200, Local0) Switch (0x01) { Case (0x01) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x04 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x27) } If (RN02) { /* Inv: what is the number of Integers */ /* Error: why is one Integer not deleted */ /* Error: (1*num) ACPI_MEM_LIST_STATE are not deleted */ NUM = 0x0A LPN0 = NUM /* \M372.NUM_ */ LPC0 = 0x00 _TCI (C200, Local0) While (LPN0) { Switch (0x01) { Case (0x01) { } Default { } } LPN0-- LPC0++ } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () Local5 = (0x06 * NUM) /* \M372.NUM_ */ PP00 [C009] = Local5 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x28) } /* ///////////////////// NamedX & LocalX */ If (RN02) { /* NamedX */ /* Error: why is one Integer not deleted */ I000 = 0x00 _TCI (C200, Local0) Switch (ToInteger (I000)) { Case (0x00) { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x29) I000 = 0x01 _TCI (C200, Local0) Switch (ToInteger (I000)) { Case (0x01) { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2A) I000 = 0x00 _TCI (C200, Local0) Switch (ToInteger (I000)) { Case (0x01) { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2B) /* LocalX */ Local4 = 0x00 _TCI (C200, Local0) Switch (ToInteger (Local4)) { Case (0x00) { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2C) Local4 = 0x01 _TCI (C200, Local0) Switch (ToInteger (Local4)) { Case (0x01) { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2D) Local4 = 0x00 _TCI (C200, Local0) Switch (ToInteger (Local4)) { Case (0x01) { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2E) } If (RN02) { /* NamedX */ /* Error: why is one Integer not deleted */ I000 = 0x00 _TCI (C200, Local0) Switch (ToInteger (I000)) { Case (0x00) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x2F) I000 = 0x01 _TCI (C200, Local0) Switch (ToInteger (I000)) { Case (0x01) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x30) I000 = 0x00 _TCI (C200, Local0) Switch (ToInteger (I000)) { Case (0x01) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x31) /* LocalX */ Local4 = 0x00 _TCI (C200, Local0) Switch (ToInteger (Local4)) { Case (0x00) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x32) Local4 = 0x01 _TCI (C200, Local0) Switch (ToInteger (Local4)) { Case (0x01) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x33) Local4 = 0x00 _TCI (C200, Local0) Switch (ToInteger (Local4)) { Case (0x01) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ PP00 [C01C] = 0x01 /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x34) } If (RN02) { I000 = 0x01 _TCI (C200, Local0) Switch (ToInteger (I000)) { Case (0x01) { } Case (0x02) { } Case (0x03) { } Case (0x04) { } Case (0x05) { } Case (0x06) { } Case (0x07) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x35) I000 = 0x07 _TCI (C200, Local0) Switch (ToInteger (I000)) { Case (0x01) { } Case (0x02) { } Case (0x03) { } Case (0x04) { } Case (0x05) { } Case (0x06) { } Case (0x07) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x11 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x36) I000 = 0x2710 _TCI (C200, Local0) Switch (ToInteger (I000)) { Case (0x01) { } Case (0x02) { } Case (0x03) { } Case (0x04) { } Case (0x05) { } Case (0x06) { } Case (0x07) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x11 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x37) } If (RN02) { Local4 = 0x01 _TCI (C200, Local0) Switch (ToInteger (Local4)) { Case (0x01) { } Case (0x02) { } Case (0x03) { } Case (0x04) { } Case (0x05) { } Case (0x06) { } Case (0x07) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x03 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x38) Local4 = 0x07 _TCI (C200, Local0) Switch (ToInteger (Local4)) { Case (0x01) { } Case (0x02) { } Case (0x03) { } Case (0x04) { } Case (0x05) { } Case (0x06) { } Case (0x07) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x11 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x39) Local4 = 0x2710 _TCI (C200, Local0) Switch (ToInteger (Local4)) { Case (0x01) { } Case (0x02) { } Case (0x03) { } Case (0x04) { } Case (0x05) { } Case (0x06) { } Case (0x07) { } Default { } } _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x11 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3A) } /* ======================== Method */ If (RN00) { Debug = "Method" _TCI (C200, Local0) M000 () _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3B) _TCI (C200, Local0) M001 () _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x01 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3C) _TCI (C200, Local0) M002 (0x01, 0x02, 0x03, 0x04, 0x05, 0x06) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x06 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3D) _TCI (C200, Local0) M003 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x08 /* Integer */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3E) _TCI (C200, Local0) M004 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () PP00 [C009] = 0x10 /* Integer */ PP00 [C01C] = 0x0C /* LOCAL_REFERENCE */ M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x3F) } /* ======================== NoOp */ If (RN00) { Debug = "NoOp" _TCI (C200, Local0) Noop _TCI (C201, PP0A) M3A3 (Local0, PP0A, Local1) PP00 = M3A8 () M3A4 (Local0, PP0A, Local1, PP00, 0x00, 0x00, 0x40) } RST0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/tests/Makefile0000700000175000017500000000011614773714160027067 0ustar ivanhuivanhu# tests MDIRS= dynobj TOP= ../../../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/ACPICA/Makefile0000700000175000017500000000011314773714160025722 0ustar ivanhuivanhu# ACPICA MDIRS= tests TOP= ../../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/IMPL/Makefile0000700000175000017500000000010714773714160025005 0ustar ivanhuivanhu# IMPL MDIRS= ACPICA TOP= ../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/0000700000175000017500000000000014773714156024752 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/local/0000700000175000017500000000000014773714156026044 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/local/DECL.asl0000700000175000017500000000316414773714156027263 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include("../../../../runtime/collections/functional/local/local.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/local/RUN.asl0000700000175000017500000000320214773714156027211 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Control method objects", TCLF, 6, W006)) { SRMT("CMO0") CMO0() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/local/local.asl0000700000175000017500000000732514773714156027651 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Control method objects */ /* * local.asl is not introduced in aslts. * See, if it should be advanced and introduced. */ Name(z999, 1) Method(ma00, 7) { Method(m000, 6) { Method(m000, 5) { Method(m000, 4) { Method(m000, 3) { Method(m000, 2) { Method(m000, 1) { Method(m000, 0) { Method(m000) { } m000() } m000() } m000(28) } m000(26,27) } m000(23,24,25) } m000(19,20,21,22) } // 5 if (LNotEqual(arg0, 8)) { err(arg0, z999, __LINE__, 0, 0, arg0, 8) } if (LNotEqual(arg1, 9)) { err(arg0, z999, __LINE__, 0, 0, arg0, 9) } if (LNotEqual(arg2, 10)) { err(arg0, z999, __LINE__, 0, 0, arg0, 10) } if (LNotEqual(arg3, 11)) { err(arg0, z999, __LINE__, 0, 0, arg0, 11) } if (LNotEqual(arg4, 12)) { err(arg0, z999, __LINE__, 0, 0, arg0, 12) } if (LNotEqual(arg5, 13)) { err(arg0, z999, __LINE__, 0, 0, arg0, 13) } // if (LNotEqual(arg6, 7)) { // err(arg0, z999, __LINE__, 0, 0, arg0, 7) // } m000(14,15,16,17,18) } // 6 if (LNotEqual(arg0, 1)) { err(arg0, z999, __LINE__, 0, 0, arg0, 1) } if (LNotEqual(arg1, 2)) { err(arg0, z999, __LINE__, 0, 0, arg0, 2) } if (LNotEqual(arg2, 3)) { err(arg0, z999, __LINE__, 0, 0, arg0, 3) } if (LNotEqual(arg3, 4)) { err(arg0, z999, __LINE__, 0, 0, arg0, 4) } if (LNotEqual(arg4, 5)) { err(arg0, z999, __LINE__, 0, 0, arg0, 5) } if (LNotEqual(arg5, 6)) { err(arg0, z999, __LINE__, 0, 0, arg0, 6) } if (LNotEqual(arg6, 7)) { err(arg0, z999, __LINE__, 0, 0, arg0, 7) } m000(8,9,10,11,12,13) if (LNotEqual(arg0, 1)) { err(arg0, z999, __LINE__, 0, 0, arg0, 1) } if (LNotEqual(arg1, 2)) { err(arg0, z999, __LINE__, 0, 0, arg0, 2) } if (LNotEqual(arg2, 3)) { err(arg0, z999, __LINE__, 0, 0, arg0, 3) } if (LNotEqual(arg3, 4)) { err(arg0, z999, __LINE__, 0, 0, arg0, 4) } if (LNotEqual(arg4, 5)) { err(arg0, z999, __LINE__, 0, 0, arg0, 5) } if (LNotEqual(arg5, 6)) { err(arg0, z999, __LINE__, 0, 0, arg0, 6) } if (LNotEqual(arg6, 7)) { err(arg0, z999, __LINE__, 0, 0, arg0, 7) } } // Run-method Method(CMO0) { ma00(1,2,3,4,5,6,7) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/local/MAIN.asl0000700000175000017500000000411514773714156027275 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "local.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../runtime/cntl/DECL.asl") Include("../../../../runtime/collections/functional/local/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../runtime/collections/functional/local/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/copyobject/0000700000175000017500000000000014773714155027112 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/copyobject/DECL.asl0000700000175000017500000000316414773714155030331 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Separate test for CopyObject ASL operator should be implemented there.acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/arithmetic/0000700000175000017500000000000014773714155027102 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/arithmetic/DECL.asl0000700000175000017500000000335514773714155030323 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/arithmetic/arithmetic.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/arithmetic/RUN.asl0000700000175000017500000000516214773714155030256 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Integer arithmetic", TCLF, 0x00, W000)) { SRMT ("ADD0") ADD0 () SRMT ("SUB0") SUB0 () SRMT ("MTP0") MTP0 () SRMT ("DVD0") DVD0 () SRMT ("ICR0") ICR0 () SRMT ("DCR0") DCR0 () SRMT ("AND0") AND0 () SRMT ("NAN0") NAN0 () SRMT ("NOR0") NOR0 () SRMT ("NOT0") NOT0 () SRMT ("OR00") OR00 () SRMT ("XOR0") XOR0 () SRMT ("MOD0") MOD0 () SRMT ("SHL0") SHL0 () SRMT ("SHR0") SHR0 () SRMT ("FSL0") FSL0 () SRMT ("FSR0") FSR0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/arithmetic/arithmetic.asl0000700000175000017500000011511714773714155031745 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Integer arithmetic */ Name (Z083, 0x53) /* Verifying 2-parameters, 1-result operator */ Method (M000, 6, Serialized) { Local5 = 0x00 Local3 = Arg1 While (Local3) { /* Operands */ Local6 = (Local5 * 0x02) Local0 = DerefOf (Arg3 [Local6]) Local6++ Local1 = DerefOf (Arg3 [Local6]) /* Expected result */ Local2 = DerefOf (Arg4 [Local5]) Switch (ToInteger (Arg5)) { Case (0x00) { Local7 = (Local0 + Local1) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } Local7 = (Local1 + Local0) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x01) { Local7 = (Local0 - Local1) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x02) { Local7 = (Local0 * Local1) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } Local7 = (Local1 * Local0) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x03) { Local7 = (Local0 & Local1) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } Local7 = (Local1 & Local0) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x04) { NAnd (Local0, Local1, Local7) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } NAnd (Local1, Local0, Local7) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x05) { NOr (Local0, Local1, Local7) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } NOr (Local1, Local0, Local7) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x06) { Local7 = (Local0 | Local1) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } Local7 = (Local1 | Local0) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x07) { Local7 = (Local0 ^ Local1) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } Local7 = (Local1 ^ Local0) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x08) { Local7 = (Local0 % Local1) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x09) { Local7 = (Local0 << Local1) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x0A) { Local7 = (Local0 >> Local1) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } } Local5++ Local3-- } } /* Verifying 2-parameters, 2-results operator */ Method (M001, 6, Serialized) { Local5 = 0x00 Local4 = Arg1 While (Local4) { /* Operands */ Local6 = (Local5 * 0x02) Local0 = DerefOf (Arg3 [Local6]) Local6++ Local1 = DerefOf (Arg3 [Local6]) /* Expected result */ Local6 = (Local5 * 0x02) Local2 = DerefOf (Arg4 [Local6]) Local6++ Local3 = DerefOf (Arg4 [Local6]) Switch (ToInteger (Arg5)) { Case (0x00) { Divide (Local0, Local1, Local6, Local7) If ((Local7 != Local2)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } If ((Local6 != Local3)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } } Local5++ Local4-- } } /* Verifying 1-parameter, 1-result operator */ Method (M002, 6, Serialized) { Local5 = 0x00 Local3 = Arg1 While (Local3) { /* Operand */ Local0 = DerefOf (Arg3 [Local5]) /* Expected result */ Local1 = DerefOf (Arg4 [Local5]) Switch (ToInteger (Arg5)) { Case (0x00) { Local0++ If ((Local0 != Local1)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x01) { Local0-- If ((Local0 != Local1)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x02) { Local2 = ~Local0 If ((Local2 != Local1)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x03) { FindSetLeftBit (Local0, Local2) If ((Local2 != Local1)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x04) { FindSetRightBit (Local0, Local2) If ((Local2 != Local1)) { ERR (Arg0, Z083, __LINE__, 0x00, 0x00, Local5, Arg2) } } } Local5++ Local3-- } } /* =================================== // */ /* Bitwise operands // */ /* // */ /* (utilized by different operators) // */ /* =================================== // */ Name (P030, Package (0x14) { 0x00, 0x00, 0x00, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xF0F0F0F0, 0xFFFFFFFF, 0x0F0F0F0F, 0xFFFFFFFF, 0xF0F0F0F0, 0x00, 0x0F0F0F0F, 0x00, 0xF0F0F0F0, 0x11111111, 0x0F0F0F0F, 0x11111111, 0x87654321, 0x90ABCDFE }) Name (P031, Package (0x14) { 0x00, 0x00, 0x00, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xF0F0F0F0F0F0F0F0, 0xFFFFFFFFFFFFFFFF, 0x0F0F0F0F0F0F0F0F, 0xFFFFFFFFFFFFFFFF, 0xF0F0F0F0F0F0F0F0, 0x00, 0x0F0F0F0F0F0F0F0F, 0x00, 0xF0F0F0F0F0F0F0F0, 0x1111111111111111, 0x0F0F0F0F0F0F0F0F, 0x1111111111111111, 0x8765432199118822, 0x90AB66887799CDFE }) Name (P032, Package (0x05) { 0x00, 0xFFFFFFFF, 0xF0F0F0F0, 0x0F0F0F0F, 0x12345678 }) Name (P033, Package (0x05) { 0x00, 0xFFFFFFFFFFFFFFFF, 0xF0F0F0F0F0F0F0F0, 0x0F0F0F0F0F0F0F0F, 0x123456780AF9BCED }) /* ===================================== Add */ Name (P000, Package (0x14) { 0x12345678, 0x6BCDEF01, 0x62345678, 0x4BCDEF01, 0x00, 0x00, 0x10000000, 0x90000000, 0x00, 0xFF, 0x00, 0xFFFF, 0x00, 0xFFFFFFFF, /* 32-overflow */ 0x12345678, 0xF0000000, 0xFFFFFFFF, 0xFFFFFFFF, 0x01, 0xFFFFFFFF }) Name (P001, Package (0x0A) { 0x7E024579, 0xAE024579, 0x00, 0xA0000000, 0xFF, 0xFFFF, 0xFFFFFFFF, /* 32-overflow */ 0x02345678, 0xFFFFFFFE, 0x00 }) Name (P002, Package (0x1A) { /* 32-overflow */ 0x12345678, 0xF0000000, 0xFFFFFFFF, 0xFFFFFFFF, 0x12345678DCABEF98, 0x6BCDEF0119283746, 0x72345678DCABEF98, 0x5BCDEF0119283746, 0x00, 0x00, 0x1000000000000000, 0x9000000000000000, 0x00, 0xFF, 0x00, 0xFFFF, 0x00, 0xFFFFFFFF, 0x00, 0xFFFFFFFFFFFFFFFF, /* 64-overflow */ 0x12345678DCABEF98, 0xF000000000000000, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0x01, 0xFFFFFFFFFFFFFFFF }) Name (P003, Package (0x0D) { /* 32-overflow */ 0x0000000102345678, 0x00000001FFFFFFFE, 0x7E024579F5D426DE, 0xCE024579F5D426DE, 0x00, 0xA000000000000000, 0xFF, 0xFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, /* 64-overflow */ 0x02345678DCABEF98, 0xFFFFFFFFFFFFFFFE, 0x00 }) Method (ADD0, 0, Serialized) { Debug = "TEST: ADD0, Integer Add" If ((F64 == 0x01)) { M000 (__METHOD__, 0x07, "p000", P000, P001, 0x00) M000 (__METHOD__, 0x0D, "p002", P002, P003, 0x00) } Else { M000 (__METHOD__, 0x0A, "p000", P000, P001, 0x00) } } /* ===================================== Subtract */ Name (P004, Package (0x18) { 0x62345678, 0x4BCDEF01, 0x00, 0x00, 0x90000000, 0x10000000, 0xFF, 0x00, 0xFFFF, 0x00, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00, /* 32-overflow */ 0x00, 0x87654321, 0x12345678, 0x6BCDEF01, 0x10000000, 0x90000000, 0x00, 0xFF, 0x00, 0xFFFF }) Name (P005, Package (0x0C) { 0x16666777, 0x00, 0x80000000, 0xFF, 0xFFFF, 0x00, 0xFFFFFFFF, /* 32-overflow */ 0x789ABCDF, 0xA6666777, 0x80000000, 0xFFFFFF01, 0xFFFF0001 }) Name (P006, Package (0x28) { /* 32-overflow */ 0x00, 0x87654321, 0x12345678, 0x6BCDEF01, 0x10000000, 0x90000000, 0x00, 0xFF, 0x00, 0xFFFF, 0x12345678DCABEF98, 0x6BCDEF0119283746, 0x72345678DCABEF98, 0x5BCDEF0119283746, 0x00, 0x00, 0xFFFFFFFFFFFFFFFF, 0x00, 0x00, 0xFFFFFFFFFFFFFFFF, 0x9000000000000000, 0x1000000000000000, 0x1000000000000000, 0x9000000000000000, 0xFF, 0x00, 0x00, 0xFF, 0xFFFF, 0x00, 0x00, 0xFFFF, 0xFFFFFFFF, 0x00, 0x00, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0x12345678DCABEF98, 0xF000000000000000 }) Name (P007, Package (0x14) { /* 32-overflow */ 0xFFFFFFFF789ABCDF, 0xFFFFFFFFA6666777, 0xFFFFFFFF80000000, 0xFFFFFFFFFFFFFF01, 0xFFFFFFFFFFFF0001, 0xA6666777C383B852, 0x16666777C383B852, 0x00, 0xFFFFFFFFFFFFFFFF, 0x01, 0x8000000000000000, 0x8000000000000000, 0xFF, 0xFFFFFFFFFFFFFF01, 0xFFFF, 0xFFFFFFFFFFFF0001, 0xFFFFFFFF, 0xFFFFFFFF00000001, 0x00, 0x22345678DCABEF98 }) Method (SUB0, 0, Serialized) { Debug = "TEST: SUB0, Integer Subtract" If ((F64 == 0x01)) { M000 (__METHOD__, 0x07, "p004", P004, P005, 0x01) M000 (__METHOD__, 0x14, "p006", P006, P007, 0x01) } Else { M000 (__METHOD__, 0x0C, "p004", P004, P005, 0x01) } } /* ===================================== Multiply */ Name (P008, Package (0x14) { 0x00, 0x00, 0x00, 0xFFFFFFFF, 0x00012345, 0x7ABC, 0x12, 0x34, 0x01, 0xFF, 0x01, 0xFFFF, 0x01, 0xFFFFFFFF, /* bit-size of multiplicand */ 0x67812345, 0x02, /* bit-size of multiplier */ 0x03, 0x45678123, 0xFFFFFFFF, 0xFFFFFFFF /* ACPI: Overflow conditions are ignored and results are undefined. */ }) Name (P009, Package (0x0A) { 0x00, 0x00, 0x8BA4C8AC, 0x03A8, 0xFF, 0xFFFF, 0xFFFFFFFF, /* bit-size of multiplicand */ 0xCF02468A, /* bit-size of multiplier */ 0xD0368369, 0x01 /* ACPI: Overflow conditions are ignored and results are undefined. */ }) Name (P00A, Package (0x0E) { 0x92345678, 0xABCDEF68, 0xF2345678, 0xABCDEF68, 0x00, 0xFFFFFFFFFFFFFFFF, 0x01, 0xFFFFFFFFFFFFFFFF, /* bit-size of multiplicand */ 0x6781234511992288, 0x02, /* bit-size of multiplier */ 0x03, 0x4567812377665544, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF /* ACPI: Overflow conditions are ignored and results are undefined. */ }) Name (P00B, Package (0x07) { 0x621E9265A81528C0, 0xA28BCC2CA81528C0, 0x00, 0xFFFFFFFFFFFFFFFF, /* bit-size of multiplicand */ 0xCF02468A23324510, /* bit-size of multiplier */ 0xD036836A6632FFCC, 0x01 /* ACPI: Overflow conditions are ignored and results are undefined. */ }) Method (MTP0, 0, Serialized) { Debug = "TEST: MTP0, Integer Multiply" If ((F64 == 0x01)) { M000 (__METHOD__, 0x09, "p008", P008, P009, 0x02) M000 (__METHOD__, 0x07, "p00a", P00A, P00B, 0x02) } Else { M000 (__METHOD__, 0x0A, "p008", P008, P009, 0x02) } } /* ===================================== Divide */ Name (P00C, Package (0x10) { /* divident divisor */ 0x12345678, 0x1000, 0xFFFFFFFF, 0x00400000, /* bit-size of operands */ 0x78123456, 0x80000000, 0x78123456, 0x02, 0x00, 0x01, 0x78123456, 0x11223344, /* bit-size of result */ 0xFFFFFFFF, 0x01, /* bit-size of remainder */ 0xFFFFFFFF, 0x80000000 }) Name (P00D, Package (0x10) { /* result remainder */ 0x00012345, 0x0678, 0x03FF, 0x003FFFFF, 0x00, 0x78123456, 0x3C091A2B, 0x00, 0x00, 0x00, 0x07, 0x0022CD7A, 0xFFFFFFFF, 0x00, 0x01, 0x7FFFFFFF }) Name (P00E, Package (0x10) { /* divident divisor */ 0x1234567811223344, 0x1000, 0xFFFFFFFFFFFFFFFF, 0x4000000000000000, 0x7812345699887766, 0x8000000000000000, 0x7812345600448866, 0x02, 0x00, 0x01, 0x78123456AABBCCDD, 0x110022BD33CA4784, 0xFFFFFFFFFFFFFFFF, 0x01, 0xFFFFFFFFFFFFFFFF, 0x8000000000000000 }) Name (P00F, Package (0x10) { /* result remainder */ 0x0001234567811223, 0x0344, 0x03, 0x3FFFFFFFFFFFFFFF, 0x00, 0x7812345699887766, 0x3C091A2B00224433, 0x00, 0x00, 0x00, 0x07, 0x0111412A4033D841, 0xFFFFFFFFFFFFFFFF, 0x00, 0x01, 0x7FFFFFFFFFFFFFFF }) Method (DVD0, 0, Serialized) { Debug = "TEST: DVD0, Integer Divide" If ((F64 == 0x01)) { M001 (__METHOD__, 0x08, "p00c", P00C, P00D, 0x00) M001 (__METHOD__, 0x08, "p00e", P00E, P00F, 0x00) } Else { M001 (__METHOD__, 0x08, "p00c", P00C, P00D, 0x00) } } /* ===================================== Increment */ Name (P014, Package (0x06) { 0x00, 0xFFFFFFFE, 0x12334579, 0x7FFFFFFF, 0x80000000, 0xFFFFFFFF }) Name (P015, Package (0x06) { 0x01, 0xFFFFFFFF, 0x1233457A, 0x80000000, 0x80000001, 0x00 }) Name (P016, Package (0x06) { 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFE, 0x1233457988339042, 0x7FFFFFFFFFFFFFFF, 0x8000000000000000, 0xFFFFFFFFFFFFFFFF }) Name (P017, Package (0x06) { 0x0000000100000000, 0xFFFFFFFFFFFFFFFF, 0x1233457988339043, 0x8000000000000000, 0x8000000000000001, 0x00 }) Method (ICR0, 0, Serialized) { Debug = "TEST: ICR0, Increment an Integer" If ((F64 == 0x01)) { M002 (__METHOD__, 0x05, "p014", P014, P015, 0x00) M002 (__METHOD__, 0x06, "p016", P016, P017, 0x00) } Else { M002 (__METHOD__, 0x06, "p014", P014, P015, 0x00) } } /* ===================================== Decrement */ Name (P018, Package (0x06) { 0xFFFFFFFF, 0x12334579, 0x80000000, 0x7FFFFFFF, 0x80000001, 0x00 }) Name (P019, Package (0x06) { 0xFFFFFFFE, 0x12334578, 0x7FFFFFFF, 0x7FFFFFFE, 0x80000000, 0xFFFFFFFF }) Name (P01A, Package (0x06) { 0x00, 0xFFFFFFFFFFFFFFFF, 0x1233457966887700, 0x8000000000000000, 0x7FFFFFFFFFFFFFFF, 0x8000000000000001 }) Name (P01B, Package (0x06) { 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFE, 0x12334579668876FF, 0x7FFFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFFE, 0x8000000000000000 }) Method (DCR0, 0, Serialized) { Debug = "TEST: DCR0, Decrement an Integer" If ((F64 == 0x01)) { M002 (__METHOD__, 0x05, "p018", P018, P019, 0x01) M002 (__METHOD__, 0x06, "p01a", P01A, P01B, 0x01) } Else { M002 (__METHOD__, 0x06, "p018", P018, P019, 0x01) } } /* ===================================== And */ Name (P01C, Package (0x0A) { 0x00, 0x00, 0xFFFFFFFF, 0xF0F0F0F0, 0x0F0F0F0F, 0x00, 0x00, 0x10101010, 0x01010101, 0x80214120 }) Name (P01D, Package (0x0A) { 0x00, 0x00, 0xFFFFFFFFFFFFFFFF, 0xF0F0F0F0F0F0F0F0, 0x0F0F0F0F0F0F0F0F, 0x00, 0x00, 0x1010101010101010, 0x0101010101010101, 0x8021420011118822 }) Method (AND0, 0, Serialized) { Debug = "TEST: AND0, Integer Bitwise And" If ((F64 == 0x01)) { M000 (__METHOD__, C000, "p030", P030, P01C, 0x03) M000 (__METHOD__, C000, "p031", P031, P01D, 0x03) } Else { M000 (__METHOD__, C000, "p030", P030, P01C, 0x03) } } /* ===================================== Nand */ Name (P01E, Package (0x02) { 0x9A3353AC, 0x39A966CA }) Name (P01F, Package (0x01) { 0xE7DEBD77 }) Name (P020, Package (0x01) { 0xFFFFFFFFE7DEBD77 }) Name (P021, Package (0x02) { 0x9A3353AC395C9353, 0x39A966CAA36A3A66 }) Name (P022, Package (0x01) { 0xE7DEBD77DEB7EDBD }) Name (P023, Package (0x0A) { 0xFFFFFFFF, 0xFFFFFFFF, 0x00, 0x0F0F0F0F, 0xF0F0F0F0, 0xFFFFFFFF, 0xFFFFFFFF, 0xEFEFEFEF, 0xFEFEFEFE, 0x7FDEBEDF }) Name (P024, Package (0x0A) { 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFF00000000, 0xFFFFFFFF0F0F0F0F, 0xFFFFFFFFF0F0F0F0, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFEFEFEFEF, 0xFFFFFFFFFEFEFEFE, 0xFFFFFFFF7FDEBEDF }) Name (P025, Package (0x0A) { 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0x00, 0x0F0F0F0F0F0F0F0F, 0xF0F0F0F0F0F0F0F0, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xEFEFEFEFEFEFEFEF, 0xFEFEFEFEFEFEFEFE, 0x7FDEBDFFEEEE77DD }) Method (NAN0, 0, Serialized) { Debug = "TEST: NAN0, Integer Bitwise Nand" If ((F64 == 0x01)) { M000 (__METHOD__, 0x01, "p01e", P01E, P020, 0x04) M000 (__METHOD__, 0x01, "p021", P021, P022, 0x04) M000 (__METHOD__, C000, "p030", P030, P024, 0x04) M000 (__METHOD__, C000, "p031", P031, P025, 0x04) } Else { M000 (__METHOD__, 0x01, "p01e", P01E, P01F, 0x04) M000 (__METHOD__, C000, "p030", P030, P023, 0x04) } } /* ===================================== Nor */ Name (P026, Package (0x02) { 0x9A3353AC, 0x39A966CA }) Name (P027, Package (0x01) { 0x44448811 }) Name (P028, Package (0x01) { 0xFFFFFFFF44448811 }) Name (P029, Package (0x02) { 0x9A3353AC993CA39C, 0x39A966CA3356A5C9 }) Name (P02A, Package (0x01) { 0x4444881144815822 }) Name (P02B, Package (0x0A) { 0xFFFFFFFF, 0x00, 0x00, 0x00, 0x00, 0x0F0F0F0F, 0xF0F0F0F0, 0x0E0E0E0E, 0xE0E0E0E0, 0x68103000 }) Name (P02C, Package (0x0A) { 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFF00000000, 0xFFFFFFFF00000000, 0xFFFFFFFF00000000, 0xFFFFFFFF00000000, 0xFFFFFFFF0F0F0F0F, 0xFFFFFFFFF0F0F0F0, 0xFFFFFFFF0E0E0E0E, 0xFFFFFFFFE0E0E0E0, 0xFFFFFFFF68103000 }) Name (P02D, Package (0x0A) { 0xFFFFFFFFFFFFFFFF, 0x00, 0x00, 0x00, 0x00, 0x0F0F0F0F0F0F0F0F, 0xF0F0F0F0F0F0F0F0, 0x0E0E0E0E0E0E0E0E, 0xE0E0E0E0E0E0E0E0, 0x6810985600663201 }) Method (NOR0, 0, Serialized) { Debug = "TEST: NOR0, Integer Bitwise Nor" If ((F64 == 0x01)) { M000 (__METHOD__, 0x01, "p026", P026, P028, 0x05) M000 (__METHOD__, 0x01, "p029", P029, P02A, 0x05) M000 (__METHOD__, C000, "p030", P030, P02C, 0x05) M000 (__METHOD__, C000, "p031", P031, P02D, 0x05) } Else { M000 (__METHOD__, 0x01, "p026", P026, P027, 0x05) M000 (__METHOD__, C000, "p030", P030, P02B, 0x05) } } /* ===================================== Not */ Name (P02E, Package (0x05) { 0xFFFFFFFF, 0x00, 0x0F0F0F0F, 0xF0F0F0F0, 0xEDCBA987 }) Name (P02F, Package (0x05) { 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFF00000000, 0xFFFFFFFF0F0F0F0F, 0xFFFFFFFFF0F0F0F0, 0xFFFFFFFFEDCBA987 }) Name (P040, Package (0x05) { 0xFFFFFFFFFFFFFFFF, 0x00, 0x0F0F0F0F0F0F0F0F, 0xF0F0F0F0F0F0F0F0, 0xEDCBA987F5064312 }) Method (NOT0, 0, Serialized) { Debug = "TEST: NOT0, Integer Bitwise Not" If ((F64 == 0x01)) { M002 (__METHOD__, C001, "p032", P032, P02F, 0x02) M002 (__METHOD__, C001, "p033", P033, P040, 0x02) } Else { M002 (__METHOD__, C001, "p032", P032, P02E, 0x02) } } /* ===================================== Or */ Name (P041, Package (0x02) { 0x9A3353AC, 0x39A966CA }) Name (P042, Package (0x01) { 0xBBBB77EE }) Name (P043, Package (0x02) { 0x9A3353AC99A3DCEB, 0x39A966CA12887634 }) Name (P044, Package (0x01) { 0xBBBB77EE9BABFEFF }) Name (P045, Package (0x0A) { 0x00, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xF0F0F0F0, 0x0F0F0F0F, 0xF1F1F1F1, 0x1F1F1F1F, 0x97EFCFFF }) Name (P046, Package (0x0A) { 0x00, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xF0F0F0F0F0F0F0F0, 0x0F0F0F0F0F0F0F0F, 0xF1F1F1F1F1F1F1F1, 0x1F1F1F1F1F1F1F1F, 0x97EF67A9FF99CDFE }) Method (OR00, 0, Serialized) { Debug = "TEST: OR00, Integer Bitwise Or" If ((F64 == 0x01)) { M000 (__METHOD__, 0x01, "p041", P041, P042, 0x06) M000 (__METHOD__, 0x01, "p043", P043, P044, 0x06) M000 (__METHOD__, C000, "p030", P030, P045, 0x06) M000 (__METHOD__, C000, "p031", P031, P046, 0x06) } Else { M000 (__METHOD__, 0x01, "p041", P041, P042, 0x06) M000 (__METHOD__, C000, "p030", P030, P045, 0x06) } } /* ===================================== Xor */ Name (P047, Package (0x02) { 0x9A3653AC, 0x39A966CA }) Name (P048, Package (0x01) { 0xA39F3566 }) Name (P049, Package (0x02) { 0x9A3653AC19283745, 0x39A966CABBAAEF45 }) Name (P04A, Package (0x01) { 0xA39F3566A282D800 }) Name (P04B, Package (0x0A) { 0x00, 0xFFFFFFFF, 0x00, 0x0F0F0F0F, 0xF0F0F0F0, 0xF0F0F0F0, 0x0F0F0F0F, 0xE1E1E1E1, 0x1E1E1E1E, 0x17CE8EDF }) Name (P04C, Package (0x0A) { 0x00, 0xFFFFFFFFFFFFFFFF, 0x00, 0x0F0F0F0F0F0F0F0F, 0xF0F0F0F0F0F0F0F0, 0xF0F0F0F0F0F0F0F0, 0x0F0F0F0F0F0F0F0F, 0xE1E1E1E1E1E1E1E1, 0x1E1E1E1E1E1E1E1E, 0x17CE25A9EE8845DC }) Name (P04D, Package (0x0A) { 0x00, 0xFFFFFFFF, 0x00, 0x0F0F0F0F, 0xF0F0F0F0, 0xF0F0F0F0, 0x0F0F0F0F, 0xE1E1E1E1, 0x1E1E1E1E, 0x17CE8EDF }) Method (XOR0, 0, Serialized) { Debug = "TEST: XOR0, Integer Bitwise Xor" If ((F64 == 0x01)) { M000 (__METHOD__, 0x01, "p047", P047, P048, 0x07) M000 (__METHOD__, 0x01, "p049", P049, P04A, 0x07) M000 (__METHOD__, C000, "p030", P030, P04B, 0x07) M000 (__METHOD__, 0x01, "p031", P031, P04C, 0x07) M000 (__METHOD__, C000, "p031", P031, P04C, 0x07) } Else { M000 (__METHOD__, 0x01, "p047", P047, P048, 0x07) M000 (__METHOD__, C000, "p030", P030, P04D, 0x07) } } /* ===================================== Mod */ Name (P04E, Package (0x08) { /* remainder */ 0x0678, 0x003FFFFF, 0x78123456, 0x00, 0x00, 0x0022CD7A, 0x00, 0x7FFFFFFF }) Name (P04F, Package (0x08) { /* remainder */ 0x0344, 0x3FFFFFFFFFFFFFFF, 0x7812345699887766, 0x00, 0x00, 0x0111412A4033D841, 0x00, 0x7FFFFFFFFFFFFFFF }) Method (MOD0, 0, Serialized) { Debug = "TEST: MOD0, Integer Modulo" If ((F64 == 0x01)) { M000 (__METHOD__, 0x08, "p00c", P00C, P04E, 0x08) M000 (__METHOD__, 0x08, "p00e", P00E, P04F, 0x08) } Else { M000 (__METHOD__, 0x08, "p00c", P00C, P04E, 0x08) } } /* ===================================== ShiftLeft */ Name (P050, Package (0x34) { 0x00, 0x00, 0x00, 0x01, 0x00, 0x11, 0x00, 0x1F, 0x00, 0x20, 0x00, 0x21, 0x00, 0x40, 0x00, 0x41, 0xFFFFFFFF, 0x00, 0xFFFFFFFF, 0x01, 0xFFFFFFFF, 0x0E, 0xFFFFFFFF, 0x1F, 0xFFFFFFFF, 0x20, 0xFFFFFFFF, 0x21, 0xFFFFFFFF, 0x40, 0xFFFFFFFF, 0x41, 0xF0F0F0F0, 0x00, 0xF0F0F0F0, 0x01, 0xF0F0F0F0, 0x11, 0xF0F0F0F0, 0x1F, 0xF0F0F0F0, 0x20, 0x87654321, 0x00, 0x87654321, 0x01, 0x87654321, 0x11, 0x87654321, 0x1F, 0x87654321, 0x20 }) Name (P051, Package (0x1A) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFC000, 0x80000000, 0x00, 0x00, 0x00, 0x00, 0xF0F0F0F0, 0xE1E1E1E0, 0xE1E00000, 0x00, 0x00, 0x87654321, 0x0ECA8642, 0x86420000, 0x80000000, 0x00 }) Name (P052, Package (0x1A) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFFFFFFFF, 0x00000001FFFFFFFE, 0x00003FFFFFFFC000, 0x7FFFFFFF80000000, 0xFFFFFFFF00000000, 0xFFFFFFFE00000000, 0x00, 0x00, 0xF0F0F0F0, 0x00000001E1E1E1E0, 0x0001E1E1E1E00000, 0x7878787800000000, 0xF0F0F0F000000000, 0x87654321, 0x000000010ECA8642, 0x00010ECA86420000, 0x43B2A19080000000, 0x8765432100000000 }) Name (P053, Package (0x14) { 0xFFFFFFFFFFFFFFFF, 0x00, 0xFFFFFFFFFFFFFFFF, 0x01, 0xFFFFFFFFFFFFFFFF, 0x11, 0xFFFFFFFFFFFFFFFF, 0x31, 0xFFFFFFFFFFFFFFFF, 0x40, 0xFFFFFFFFFFFFFFFF, 0x41, 0xF0F0F0F0F0F0F0F0, 0x0F, 0xF0F0F0F0F0F0F0F0, 0x23, 0x87654321BCDEF098, 0x0B, 0x87654321BCDEF098, 0x32 }) Name (P054, Package (0x0A) { 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFE, 0xFFFFFFFFFFFE0000, 0xFFFE000000000000, 0x00, 0x00, 0x7878787878780000, 0x8787878000000000, 0x2A190DE6F784C000, 0xC260000000000000 }) Method (SHL0, 0, Serialized) { Debug = "TEST: SHL0, Integer shift value left" If ((F64 == 0x01)) { M000 (__METHOD__, 0x1A, "p050", P050, P052, 0x09) M000 (__METHOD__, 0x0A, "p053", P053, P054, 0x09) } Else { M000 (__METHOD__, 0x1A, "p050", P050, P051, 0x09) } } /* ===================================== ShiftRight */ Name (P055, Package (0x1A) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFFFFFFFF, 0x7FFFFFFF, 0x0003FFFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0xF0F0F0F0, 0x78787878, 0x7878, 0x01, 0x00, 0x87654321, 0x43B2A190, 0x43B2, 0x01, 0x00 }) Name (P056, Package (0x0A) { 0xFFFFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFFF, 0x00007FFFFFFFFFFF, 0x7FFF, 0x00, 0x00, 0x0001E1E1E1E1E1E1, 0x1E1E1E1E, 0x0010ECA864379BDE, 0x21D9 }) Method (SHR0, 0, Serialized) { Debug = "TEST: SHR0, Integer shift value right" If ((F64 == 0x01)) { M000 (__METHOD__, 0x1A, "p050", P050, P055, 0x0A) M000 (__METHOD__, 0x0A, "p053", P053, P056, 0x0A) } Else { M000 (__METHOD__, 0x1A, "p050", P050, P055, 0x0A) } } /* ===================================== FindSetLeftBit */ Name (P057, Package (0x06) { 0x00, 0xFFFFFFFF, 0x80000000, 0x01, 0x02A0FD40, 0x0456F200 }) Name (P058, Package (0x06) { 0x00, 0x20, 0x20, 0x01, 0x1A, 0x1B }) Name (P059, Package (0x06) { 0x00, 0xFFFFFFFFFFFFFFFF, 0x8000000000000000, 0x01, 0x02A0FD4119FD0560, 0x0456F2007CED8400 }) Name (P05A, Package (0x06) { 0x00, 0x40, 0x40, 0x01, 0x3A, 0x3B }) Method (FSL0, 0, Serialized) { Debug = "TEST: FSL0, Index of first least significant bit set" If ((F64 == 0x01)) { M002 (__METHOD__, 0x06, "p057", P057, P058, 0x03) M002 (__METHOD__, 0x06, "p059", P059, P05A, 0x03) } Else { M002 (__METHOD__, 0x06, "p057", P057, P058, 0x03) } If ((F64 == 0x01)) { Local0 = 0x40 } Else { Local0 = 0x20 } Local1 = 0x00 Local5 = 0x00 While (Local0) { If ((Local1 == 0x00)) { Local2 = 0x01 } Else { Local2 = (0x03 << Local5) Local5++ } FindSetLeftBit (Local2, Local3) Local4 = (Local1 + 0x01) If ((Local3 != Local4)) { ERR (__METHOD__, Z083, __LINE__, 0x00, 0x00, Local0, 0x00) } Local1++ Local0-- } } /* ===================================== FindSetRightBit */ Name (P05B, Package (0x06) { 0x00, 0x01, 0x20, 0x01, 0x07, 0x0A }) Name (P05C, Package (0x06) { 0x00, 0x01, 0x40, 0x01, 0x06, 0x0B }) Method (FSR0, 0, Serialized) { Debug = "TEST: FSR0, Index of first most significant bit set" If ((F64 == 0x01)) { M002 (__METHOD__, 0x06, "p057", P057, P05B, 0x04) M002 (__METHOD__, 0x06, "p059", P059, P05C, 0x04) } Else { M002 (__METHOD__, 0x06, "p057", P057, P05B, 0x04) } If ((F64 == 0x01)) { Local0 = 0x40 } Else { Local0 = 0x20 } Local1 = 0x00 Local5 = 0x00 While (Local0) { If ((Local1 == 0x00)) { Local2 = 0x01 Local4 = 0x01 } Else { Local2 = (0x03 << Local5) Local4 = Local1 Local5++ } FindSetRightBit (Local2, Local3) If ((Local3 != Local4)) { ERR (__METHOD__, Z083, __LINE__, 0x00, 0x00, Local0, 0x00) } Local1++ Local0-- } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/arithmetic/MAIN.asl0000700000175000017500000000410314773714155030330 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("arithmetic", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/arithmetic/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/arithmetic/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/arithmetic/Makefile0000700000175000017500000000014514773714155030545 0ustar ivanhuivanhu# arithmetic AMLMOD= arithmetic COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/README0000700000175000017500000000263014773714156025636 0ustar ivanhuivanhu CONTENTS Functional test collection The following directories contain the functional tests of groups of ASL operators. Name of directory Name of group of ASL operators (name of test) ___________________________________________________________ 0 | arithmetic | Integer arithmetic | 1 | bfield | Buffer Fields | 2 | constant | Constants | 3 | control | Method execution control | 4 | descriptor | Resource Descriptor macros | 5 | extern | ASL compiler controls | 6 | local | Control method objects | 7 | logic | Logical operators | 8 | manipulation | Data type conversion and manipulation | 9 | name | Miscellaneous named object creation | 10 | reference | Object references | 11 | region | Operation Regions | 12 | synchronization | Synchronization | 13 | table | ACPI table management | 14 | module | Module level code execution | ___________________________________________________________ FULL full the functional test collection - all the tests of the functional test collection are compiled together as one DefinitionBlock acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/0000700000175000017500000000000014773714157026711 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/DECL.asl0000700000175000017500000000453714773714156030134 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/reference/ref00.asl") Include ("../../../../runtime/collections/functional/reference/ref01.asl") Include ("../../../../runtime/collections/functional/reference/ref02.asl") Include ("../../../../runtime/collections/functional/reference/ref03.asl") Include ("../../../../runtime/collections/functional/reference/ref04.asl") Include ("../../../../runtime/collections/functional/reference/ref05.asl") Include ("../../../../runtime/collections/functional/reference/ref06.asl") Include ("../../../../runtime/collections/functional/reference/ref07.asl") Include ("../../../../runtime/collections/functional/reference/ref50.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/RUN.asl0000700000175000017500000000420314773714157030060 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Object references", TCLF, 0x0A, W00A)) { REF9 () /* Uncomment when the most bugs are fixed! */ /* */ /* SRMT("REF1") */ /* REF1() */ /* SRMT("REF2") */ /* REF2() */ /* SRMT("REF3") */ /* REF3() */ /* SRMT("REF4") */ /* REF4() */ } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/SPEC0000700000175000017500000015131414773714157027376 0ustar ivanhuivanhu Specification of test of the Object and Index References and the call-by-reference convention. The test verifies most of the relevant important cases and combinations but not all. The layout of test specification: The first sentence of each sub-test (say test) specification contains the main purpose of the test and is the most strict part of its specification. The additional infortmation of the test specification are more or less up to date and contains some reflections about the test, they may contain even incorrect or obsolete information, they may be ignored in the actual implementation of the tests. We dont delete the specifications of the incorrect tests in order not to attempt to specify them again in the future. Some purposes of the tests dont contain the specification of the expected normal behaviour of the feature under testing. This takes place when the ACPI specification doesn't assert anything definitely on that or when an additional investigation involving the BlackBox are needed. FEATURE: The FEATURE entry of test designates briefly the contents of sub-test (test), shows the main purpose of the test and thus serve to avoid specifying the same test repeatedly and simplifies to see the summary coverage of all sub-tests. Nevertheless, we dont exclude that some assertions are verified several times in different sub-tests. Some actions really verified in test might not be shown in FEATURE, though we were aimed to reflect that. For improving these specs: 1) see the text references inserted through the specs below on appropriateness of them and may be remove them at all or catch them here at the top or.. ACPI sections and terms involved: 5.5.2.3 Method Calling Convention Call-by-reference convention 17.2.5.8 Rules for Storing and Copying Objects Table 17-9 Object Storing and Copying Rules 17.2.5.9 Rules for Reading and Writing Objects 17.2.5.9.1 ArgX Objects 17.2.5.9.2 LocalX Objects 17.2.5.9.3 Named Objects Operators involved: RefOf, CondRefOf, Index, DerefOf, Method, Return, ArgX, LocalX, NamedX, String, Buffer, Package, ObjectType, SizeOf, Alias, Field, IndexField, BankField, CreateField Note: the implicit conversion of result is verified in the Complex Test of Result, but not verified here. Note: the {type,size,value} features of the references to all type obects passed to Method (call-by-reference convention) is verified by the (TEST_00.2) entry. Note: check in tests all the ways of keeping and passing (delivering) References and Objects. Keep into mind while implementing the tests (this may not be mentioned explicitly) that very important is how the object is represented in operation: - specify (Object or Reference) immediately - pass them by LocalX - pass by ArgX (intermediate keeping) - pass by NamedX - pass by the element of Package - pass by the Method call (return value) - pass as results of other operators Note: Field Unit and Buffer Field types passed to Method are being converted to the Integer/Buffer. Use BlackBox for to confirm this feature of Field Unit and Buffer Field. Improve implementation of tests: 1) the tests (sub-tests) specified below may currently be implemented not completely - specification of test may be more wide than the provided implementation of it. So, the ways of improving the tests are implementing the specified write/read operations for all the specified in test types of WRITE/READ operators; implement the specified checkings for all the specified in test types of DATA. 2) add different type of name references: \x.x.x, ^x. 3) the tests are mostly implemented for Arg0 and Local0. Extend them for Arg{1-6} and Local{1-7} too. 4) improve FEATURE entries: the way of improving the test is analysing the implemented sub-tests describing them more exactly by FEATURE entries and then examining the summary coverage of sub-tests basing on the FEATURE entries of them propose the additional sub-tests. 5) do additional sub-tests for all the situations which you can think (propose) incorrect implementation. Global variables assignment applied in the tests: c080 - name of test c081 - absolute index of file initiating the checking c082 - flag of test of exceptions c083 - run verification of references (write/read): 1 - Store 2 - CopyObject 3 - both Store and CopyObject c084 - run verification of references (reading) c085 - create the chain of references to LocalX, then dereference them c086 - flag, run test till the first error c087 - apply DeRefOf to ArgX-ObjectReference (but not rely on the automatic dereference): 17.2.5.9.1 ArgX Objects 1) Read from ArgX parameters ObjectReference - Automatic dereference, return the target of the reference. Use of DeRefOf returns the same. c088 - test run mode; if non-zero, then run the entire tests, but not only the simple example of test c089 - flag of Reference, object otherwise c08a - the value of the written Integer c08b - do RefOf(ArgX) checkings 1 - RefOf 2 - CondRefOf Notation: Read, READ_OPERATOR, Read operation - any access to the object which assumes evaluating the object Write, WRITE_OPERATOR, Write operation - designates all the ASL Operators which write results ORef - the reference obtained by RefOf or CondRefOf (Object Reference) IRef - the reference obtained by Index (Index Reference) ORef-LocalX - ORef assigned to LocalX IRef-LocalX - IRef assigned to LocalX ORef-NamedX - ORef assigned to NamedX IRef-NamedX - IRef assigned to NamedX ORef-El_of_Package - ORef assigned to element of Package IRef-El_of_Package - IRef assigned to element of Package ORef-ArgX - ORef assigned to ArgX IRef-ArgX - IRef assigned to ArgX Arguments of Method ArgX-Object - any type Object passed to Method by ArgX ArgX- - type Object passed to Method by ArgX ArgX-ORef - ORef passed to Method by ArgX ArgX-IRef - IRef passed to Method by ArgX RefOf - means both RefOf and CondRefOf operators M0 - start Method of test M1,M2... - Methods invoked from M0 M1-M2-M3 - the chain of invocations of Methods (started from M0) ========= * TEST 00 (description referred to in other test specifications, not applied as a particular test itself). ========= 1. Pass Method with the following: a) Constants: types {1-16} b) ArgX {0-6} c) LocalX {0-7} d) Named: types {1-16} e) Immediate result of other operators f) Immediate result of some Method g) Immediate element of Package Pass each of the ArgX of invoked Method with each of the {a,b,c,d,e,f,g} values above. In cases {b,c} the contents of {ArgX,LocalX} should be each of types {1-16}. 2. Check inside the Method that {types,values,size} of the passed values are as expected. 3. For all the ASL Operators which write results direct the results into ArgX(s) of that Method. 4. Check inside the Method that the types of ArgX(s) after writing into them are as expected. 5. After completion of the Method call, returning from it, check that the original objects are not changed {type,size,value}. SPEC: 17.2.5.9.1 ArgX Objects 1) Read from ArgX parameters ObjectReference - Automatic dereference, return the target of the reference. Use of DeRefOf returns the same. ========== * TEST 01: Read of ArgX-ORef with DerefOf ========== SPEC: "Use of DeRefOf returns the same" as "automatic dereference" Do the same as in test TEST 00 (b,c,d), but before passing the objects to Method (M1) make references to them by RefOf and pass those References to Method (M1) but not Objects themselves. Before read operations do one DerefOf of the relevant ArgX. Read operations are any access (as an operand of any operator) to the contents of the object referenced by ArgX-ORef. Omit all the write operations to ArgX inside the invoked Method. FEATURE: ArgX-ORef:DerefOf:read ========== * TEST 02: Read of ArgX-ORef without DerefOf (automatic dereference) ========== FEATURE: ArgX-ORef:(NO DerefOf):read SPEC: "automatic dereference" Do the same as in test TEST 01, but omit DerefOf of the relevant ArgX. ========== * TEST 03: Read of ArgX-IRef with DerefOf ========== SPEC: "Use of DeRefOf returns the same" as "automatic dereference" Do the same as in test TEST 01, but for IRef. WARNING: The specification of DerefOf (see below) sounds incorrectly, because it works not only with Object Reference (ORef) but with IRef as well. 17.5.27 DerefOf (Dereference an Object Reference) If the Source evaluates to an object reference, the actual contents of the object referred to are returned. FEATURE: ArgX-IRef:DerefOf:read ========== * TEST 04: Read of ArgX-IRef without DerefOf (automatic dereference) ========== SPEC: "automatic dereference" Do the same as in test TEST 03, but omit DerefOf of the relevant ArgX. FEATURE: ArgX-IRef:(NO DerefOf):read ========== * TEST 05: Write into ArgX-Object ========== Check that writing into ArgX-Object doesn't change the original objects passed to Method {type,size,value}. Actions differ the test TEST 01 only with the writing being performed. Do all the {1-5} items of TEST 00. FEATURE: ArgX-Object:write ========== * TEST 06: Write into ArgX-ORef ========== Check that writing into ArgX-ORef do change of the original objects {type,size,value}. Do the same as in test TEST 00 (b,c,d), but before passing the objects to Method (M1) make references to them by RefOf and pass those References to Method (M1) but not Objects themselves. Check that the original objects are changed {type,size,value}. FEATURE: ArgX-ORef:write ========== * TEST 07: Write into ArgX-IRef ========== Check the writing into ArgX-IRef (IRef to elements of String, Buffer and Package). Note (current implementation): (ORef & IRef) ArgX-IRef require applying of DerefOf, though DerefOf is specified only for ORef. But, attempts to write into ArgX-IRef fail. 1. Pass Method with the following: Name(s000, "qwertyuiop") Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) Name(p000, Package() {10,11,12,13,14,15,16}) Store(Index(s000, 0, Local0), Local1) m000(Local0) m000(Local1) m000(Index(s000, 0, Local0)) Store(Index(b000, 0, Local0), Local1) m000(Local0) m000(Local1) m000(Index(b000, 0, Local0)) Store(Index(p000, 0, Local0), Local1) m000(Local0) m000(Local1) m000(Index(p000, 0, Local0)) Note: use there (and everywhere else) these forms too: Store(Index(b000, 0), Local1) m000(Index(p000, 0)) Do the same actions as in the TEST 00. 5. After completion of the Method call, returning from it, check the original objects {type,size,value}. Use BlackBox for to clarify ACPI specification. FEATURE: ArgX-IRef:write ========== * TEST 08: Write into IRef to ArgX-String-Buffer-Package obtained in Method ========== Check the writing into IRef obtained inside the Method (M1) to the elements of the objects passed to it as parameters (ArgX-String, ArgX-Buffer, ArgX-Package). Note (current implementation): (ORef & IRef) IRef obtained inside the Method allows to change the original object passed by ArgX. But, there is no way to obtain ORef to the original object and change that original object by writing into reference (see RefOf tests below). 1. Pass Method with the following: Name(s000, "qwertyuiop") Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) Name(p000, Package() {10,11,12,13,14,15,16}) m000(s000) m000(b000) m000(p000) m000("qwertyuiop") m000(Buffer(n){}) m000(Package(n){}) Do the same actions as in the TEST 00. 3. Obtain the reference to the element of Object passed by ArgX: Store(Index(ArgX, 0, Local0), Local1) Index(ArgX, 0) and pass it to writing operators as a target reference for all the ASL Operators which write results, like these: Store(0x55555, Local0) Store(0x66666, Local1) Store(0x77777, Index(arg0, 0)) 5. After completion of the Method call, returning from it, check the original objects {type,size,value}. Use BlackBox for to clarify ACPI specification. FEATURE: ArgX-String:Index:IRef:write FEATURE: ArgX-Buffer:Index:IRef:write FEATURE: ArgX-Package:Index:IRef:write ========== * TEST 09 (no test): Write into FieldUnit of ArgX-OperationRegion obtained in Method ========== Check the writing into the Field Unit obtained inside the Method (M1) to the OperationRegion passed to it as a parameter. INCORRECT: ASL-gramaticaly incorrect, the test is omitted. Field(arg0, ...) {} Note: Field Unit passed to Method converts to Integer/Buffer (see the test in complex/misc.asl) thus not requires the test where Field Unit is passed as a parameter. See: Use BlackBox for to confirm this feature of Field Unit. 1. Pass Method with the following: OperationRegion(r900, SystemMemory, 0x100, 0x100) m000(r900) 3. Obtain the Field Unit to the OperationRegion passed by ArgX: Field(ArgX, ByteAcc, NoLock, Preserve) {f900,8,f901,8,f902,8,f903,8} BankField(ArgX, f901, 0, ByteAcc, NoLock, Preserve) {bn90,4} IndexField(f902, f903, ByteAcc, NoLock, Preserve) {if90,8,if91,8} and pass it to writing operators as a target reference for all the ASL Operators which write results. 5. After completion of the Method call, returning from it, check the original objects {value}. Use BlackBox for to clarify ACPI specification. FEATURE: ArgX-OperationRegion:Field:FieldUnit:write ========== * TEST 10: Write into BufferField of ArgX-Buffer obtained in Method ========== Check the writing into the Buffer Field obtained inside the Method (M1) to the ArgX-Buffer passed to it as a parameter. Note: Buffer Field passed to Method converts to Integer/Buffer (see the test in complex/misc.asl) thus not requires the test where Buffer Field is passed as a parameter. See: Use BlackBox for to confirm this feature of Buffer Field. 1. Pass Method with the following: Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) m000(b000) Do the same actions as in the TEST 00. 3. Obtain the Buffer Field to the Buffer passed by ArgX: CreateField(ArgX, 0, 8, bf90) and pass it to writing operators as a target reference for all the ASL Operators which write results. 5. After completion of the Method call, returning from it, check the original objects {value}. Use BlackBox for to clarify ACPI specification. FEATURE: ArgX-Buffer:CreateField:BufferField:write SPEC: 17.2.5.9.1 ArgX Objects 1) Read from ArgX parameters Buffer – ... can create an Index, Field, or Reference to the buffer. Package – ... can create an Index or Reference to the package. But why don't to create References to all other object types. Check RefOf of ArgX passed to Method. ========== * TEST 11: RefOf(ArgX-Object) ========== Check RefOf of ArgX-Object (ArgX is any type Object). Start Method (M0) the same as the TEST 00, but inside the invoked Method (M1), do RefOf to the ArgX containing the OBJECT. Verify the obtained ORef (ObjectType, SizeOf, DerefOf, value). Write into the obtained ORef and verify result (use immediate, ArgX, LocalX and NamedX ways delivering reference to the writing operator). Pass the result of RefOf to another Method (M2) for the following calculations as in the original test TEST 00. Check that the data referred to by ArgX of (M1) are changed {type,size,value}. Check that the original objects (M0) are not changed {type,size,value}. M0 {Object} --> M1 {RefOf(ArgX);write} --> M2 {write(ArgX)} ^ Unchanged ^ Changed Check that M1-LocalX-ORef remains up to date after writing into M2-ArgX in M2 and thus updating the contents of the object referenced by M1-LocalX. FEATURE: ArgX-Object:RefOf:ORef:write:read FEATURE: ArgX-Object:RefOf:ORef:M2:write:read ========== * TEST 12: DerefOf(RefOf(ArgX-Object)) ========== Check DerefOf(RefOf) of ArgX-Object (ArgX is any type Object) FEATURE: ArgX-Object:RefOf:ORef:DerefOf ========== * TEST 13: RefOf(ArgX-ORef) ========== Check RefOf of ArgX-ORef. The same as the TEST 06, but at first do RefOf to the ArgX containing the ORef to Object (M1), then pass the result of RefOf to another Method (M2) for the following calculations as in the original test. Actions similar to TEST 11. FEATURE: ArgX-ORef:RefOf:ORef:write:read FEATURE: ArgX-ORef:RefOf:ORef:M2:write:read ========== * TEST 14: DerefOf(RefOf(ArgX-ORef)) ========== Check DerefOf(RefOf) of ArgX-ORef FEATURE: ArgX-ORef:RefOf:ORef:DerefOf ========== * TEST 15: RefOf(ArgX-IRef) ========== Check RefOf of ArgX-IRef. The same as the TEST 07, but at first do RefOf to the ArgX containing the IRef to Object (M1), then pass the result of RefOf to another Method (M2) for the following calculations as in the original test. FEATURE: ArgX-IRef:RefOf:ORef:write:read FEATURE: ArgX-IRef:RefOf:ORef:M2:write:read ========== * TEST 16: DerefOf(RefOf(ArgX-IRef)) ========== Check DerefOf(RefOf) of ArgX-IRef FEATURE: ArgX-IRef:RefOf:ORef:DerefOf ========== * TEST 17: RefOf(ArgX-String-Buffer-Package), check IRef ========== Check RefOf of ArgX-String, ArgX-Buffer, ArgX-Package (check IRef). The same as the TEST 08, but at first do RefOf to the ArgX containing the (String/Buffer/Package) (M1), then pass the result of RefOf to another Method (M2) for the following calculations as in the original test. FEATURE: ArgX-String:RefOf:ORef:Index:IRef:write FEATURE: ArgX-Buffer:RefOf:ORef:Index:IRef:write FEATURE: ArgX-Package:RefOf:ORef:Index:IRef:write ========== * TEST 18: RefOf(ArgX-OperationRegion), check FieldUnit ========== Check RefOf of ArgX-OperationRegion (check Field Unit based on that OperationRegion). INCORRECT: ASL-gramaticaly incorrect, the test is omitted. Field(DerefOf(arg0), ...) {} Field(Local0, ...) {} Field(arg0, ...) {} The same as the TEST 09, but at first do RefOf to the ArgX containing the OperationRegion (M1), then pass the result of RefOf to another Method (M2) for the following calculations as in the original test. FEATURE: ArgX-OperationRegion:RefOf:ORef:DerefOf:Field:FieldUnit:write FEATURE: ArgX-OperationRegion:RefOf:ORef:M2:DerefOf:Field:FieldUnit:write ========== * TEST 19: RefOf(ArgX-Buffer), check BufferField ========== Check RefOf of ArgX-Buffer (check Buffer Field based on that Buffer). The same as the TEST 10, but at first do RefOf to the ArgX containing the Buffer (M1), then pass the result of RefOf to another Method (M2) for the following calculations as in the original test. FEATURE: ArgX-Buffer:RefOf:ORef:CreateField:BufferField:write ========== * TEST XX: ArgX-ORef on place of ArgY ========== Check ArgX-ORef on the another than actually passed place (ArgY) (transfer ArgX to ArgY and run the TEST 06) FEATURE: ArgX-ORef:write_into_ArgY:write INCORRECT: not quite correct, because there is no way to "transfer" ArgX-Reference from ArgX to ArgY. In fact, the object associated with ArgX-Reference is copied into ArgY or into the Object associated with ArgY in ArgY-Reference case for any ASL-operation. So, the test is transformed into another one (see below). The same as the TEST 06, but at first write ORef passed by Arg0 into Arg1 and then do all the read/write actions with Arg1 (but not with Arg0). Method(m000, 2) { Store(Arg0,Arg1) CopyObject(Arg0,Arg1) ... Read/Write with Arg1 only } Method(m001, 2) { Store(Arg0,Arg1) CopyObject(Arg0,Arg1) ... Read/Write with Arg1 only } Store(RefOf(X000), Local0) m000(Local0,0) m000(RefOf(X000),0) ... Check the value of X000, Y000 and Local0. Store(RefOf(X000), Local0) m001(Local0,0) m001(RefOf(X000),0) ... Check the value of X000, Y000 and Local0. Do the same actions as in the TEST 00. 5. After completion of the Method call, returning from it, check the original object {type,size,value} corresponding to Arg0. Use BlackBox for to clarify ACPI specification. ========== * TEST 20: Write ArgX to ArgY ========== Check writing from ArgX to ArgY FEATURE: Store/CopyObject(ArgX-Object, ArgY-Object) FEATURE: Store/CopyObject(ArgX-Object, ArgY-ORef) FEATURE: Store/CopyObject(ArgX-Object, ArgY-IRef) FEATURE: Store/CopyObject(ArgX-ORef, ArgY-Object) FEATURE: Store/CopyObject(ArgX-ORef, ArgY-ORef) FEATURE: Store/CopyObject(ArgX-ORef, ArgY-IRef) FEATURE: Store/CopyObject(ArgX-IRef, ArgY-Object) FEATURE: Store/CopyObject(ArgX-IRef, ArgY-ORef) FEATURE: Store/CopyObject(ArgX-IRef, ArgY-IRef) SPEC: 17.2.5.9.2 LocalX Objects 1) Read from LocalX variables ObjectReference - If performing a DeRefOf return the target of the reference. Otherwise, return the reference. ========== * TEST XX: ArgX-ORef on place of LocalY ========== Check that ArgX-ORef being transfer into LocalX lost its features (transfer ArgX to LocalX and run the TEST 06). FEATURE: ArgX-ORef:write_into_LocalX:write INCORRECT: not quite correct, because there is no way to "transfer" ArgX-Reference from ArgX to LocalX. In fact, the object associated with ArgX-Reference is copied into LocalX (independently on the value of LocalX). So, the test is transformed into another one (see below). ========== * TEST 21: Write ArgX to LocalY ========== Check writing from ArgX to LocalY FEATURE: Store/CopyObject(ArgX-Object, LocalY) FEATURE: Store/CopyObject(ArgX-ORef, LocalY) FEATURE: Store/CopyObject(ArgX-IRef, LocalY) then overwrite LocalY which contains either Object or ORef or IRef. ========== * TEST XX: ArgX-IRef on place of LocalY ========== ========== * TEST 22: ========== The same as the TEST 21, but pass the IRef but not ORef. Done, in TEST 21. See INCORRECT in TEST 21. ========== * TEST 23: Write into LocalX-ORef ========== Generate LocalX-ORef and write to it. The same as the TEST 21, but obtain the ORef immediately and store it into LocalX. Example: Store(RefOf(b000), Local0) Store(0x11, Local0) After write operation into LocalX check that the original objects are unchanged {type,size,value}. FEATURE: ORef:write_into_LocalX:write ========== * TEST 24: Write into LocalX-IRef ========== The same as the TEST 23, but pass the IRef but not ORef. FEATURE: IRef:write_into_LocalX:write ========== * TEST 25: Write into ArgX filled with ORef to global obtained in Method ========== Check writing into ArgX which contains ORef to global object generated inside the Method (but not passed to it). The same as the TEST 20, but at first obtain the ORef to some global object and put it into ArgX and do all the read/write actions with that ArgX. Check the original object {type,size,value} corresponding to ArgX. Use BlackBox for to clarify ACPI specification. Example: Store(RefOf(i000), ArgX) Store(CondRefOf(i000), ArgX) FEATURE: ORef-to-global:write_into_ArgX:write ========== * TEST 26: Write into ArgX filled with ORef to local obtained in Method ========== Check writing into ArgX which contains ORef to local object generated inside the Method (but not passed to it). The same as the TEST 25 but use not global but local source objects: c) LocalX {0-7} d) Named: types {1-16} Check the original object {type,size,value} corresponding to ArgX. Use BlackBox for to clarify ACPI specification. Example: Store(RefOf(i000), ArgX) Store(CondRefOf(i000), ArgX) FEATURE: ORef-to-local:write_into_ArgX:write ISSUE: the same test for IRef SPEC: 17.2.5.9.2 LocalX Objects 17.2.5.8 Rules for Storing and Copying Objects Method LocalX variable: The object is copied to the destination with no conversion applied. Even if LocalX contains an Object Reference, it is overwritten. ========== * TEST 27: CopyObject Object to LocalX ========== Local0-Local7 can be written with any type object without any conversion (check CopyObject to LocalX). Write the same LocalX variable (use all the write operators for writing into LocalX) with all possible object types and ways of representing the source objects. Check that the resulting objects referenced by LocalX are the same as the original (or expected) ones {type,size,value}. Do these write and check actions for different type objects for the same LocalX, so we show that no conversion depending on the previous contents of the same LocalX takes place. Repeat the described checkings for each LocalX: {0-7}. FEATURE: Object:CopyObject_into_LocalX:verify ========== * TEST 28: Store Object to LocalX ========== Check the same as TEST 27 but for Store (check Store to LocalX) A set of available for Store types is restricted FEATURE: Object:Store_into_LocalX:verify ========== * TEST 29: CopyObject ORef to LocalX ========== Local0-Local7 can be written with ORef referencing any type object without any conversion. CopyObject the result of RefOf to LocalX Example: CopyObject(RefOf(i000), Local0) CopyObject(CondRefOf(i000), Local0) The same as the TEST 27, but obtain and write the ORef into LocalX and verify the contents of LocalX. FEATURE: ORef:CopyObject_into_LocalX:verify ========== * TEST 30: Store ORef to LocalX ========== Store the result of RefOf to LocalX (the same as TEST 29 but Store instead of CopyObject). Example: Store(RefOf(i000), Local0) Store(CondRefOf(i000), Local0) FEATURE: ORef:Store_into_LocalX:verify ========== * TEST 31: CopyObject IRef to LocalX ========== Local0-Local7 can be written with IRef without any conversion. CopyObject the result of Index to LocalX Example: CopyObject(Index(s000, 1, Local0), Local1) The same as the TEST 29, but obtain and write the IRef but not ORef. FEATURE: IRef:CopyObject_into_LocalX:verify ========== * TEST 32: Store IRef to LocalX ========== Store the result of Index to LocalX (the same as TEST 31 but Store instead of CopyObject). Example: Store(Index(s000, 1, Local0), Local1) FEATURE: IRef:Store_into_LocalX:verify ========== * TEST 33: Mix of writing to LocalX ========== Mix of all the legal ways enumerated in tests (TEST 27 - TEST 32) of initializing the LocalX: Example: Store(RefOf(i000), Local0) Store(CondRefOf(i000), Local0) Store(Index(s000, 1, Local0), Local1) Store(i000, Local0) CopyObject(RefOf(i000), Local0) CopyObject(CondRefOf(i000), Local0) CopyObject(Index(s000, 1, Local0), Local1) CopyObject(i000, Local0) Add(x, y, Local0) ... ISSUE: the same test for "initializing the ArgX" FEATURE: MIX:Object:CopyObject_into_LocalX:verify FEATURE: MIX:Object:Store_into_LocalX:verify FEATURE: MIX:ORef:CopyObject_into_LocalX:verify FEATURE: MIX:ORef:Store_into_LocalX:verify FEATURE: MIX:IRef:CopyObject_into_LocalX:verify FEATURE: MIX:IRef:Store_into_LocalX:verify SPEC: 17.2.5.9.3 Named Objects ========== * TEST 34: NamedX of any type ========== Obtain the NamedX objects of all the types and check their {type,size,value}. SEE: it is implemented in name/name.asl FEATURE: NamedX:verify {type,size,value} ========== * TEST 35: ORef and IRef to NamedX of any type ========== The same as the TEST 34, but obtain and verify the ORef and IRef to named objects {type,size,value}. SEE: it is already verified by the following tests: TEST 01 TEST 02 TEST 03 TEST 04 TEST 06 TEST 07 FEATURE: NamedX:RefOf:ORef:verify {type,size,value} FEATURE: NamedX:Index:IRef:verify {type,size,value} ========== * TEST 36: ArgX-ORef passed to another Method ========== Check ArgX-ORef being passed further to another Method The same as the TEST 06, but from inside the Method (M1), call to another Method (M2) and pass it with the ArgX of (M1) containing the ORef. FEATURE: ArgX-ORef:M2:write:read FEATURE: ArgX-ORef:M2:...:M*:write:read ========== * TEST 37: ArgX-IRef passed to another Method ========== Check ArgX-IRef being passed further to another Method The same as the TEST 36, but for IRef. FEATURE: ArgX-IRef:M2:write:read FEATURE: ArgX-IRef:M2:...:M*:write:read ========== * TEST 38: Write immediately into result of RefOf(Object) ========== Check the immediate ORef (to any type object) being passed as a target destination of write operators. Do the following: WRITE_OPERATOR(XXXX, RefOf(ArgX)) WRITE_OPERATOR(XXXX, RefOf(LocalX)) WRITE_OPERATOR(XXXX, RefOf(NamedX)) Example: Store(XXX, RefOf(YYY)) Initialize ArgX, LocalX, NamedX cosequetly with each {1-16} type object. Do this for all the ASL Operators which write results. Use BlackBox for to clarify ACPI specification. Note: though these expressions are applied in other sub-tests, nevertheles, this one (and some the following sub-tests which verify similar constructions) are supposed and have the perpose to verify this ability - immediate use of result of the operator generating reference - comprehensively. FEATURE: write(Object:RefOf:ORef) ========== * TEST 39: Write immediately into result of Index(String) ========== Check the immediate IRef to the element of String being passed as a target destination of write operators. Do the following: WRITE_OPERATOR(XXXX, Index(ArgX, 0)) WRITE_OPERATOR(XXXX, Index(LocalX, 0)) WRITE_OPERATOR(XXXX, Index(NamedX, 0)) Example: Store(XXX, Index(YYY, 1)) Store(XXX, Index(YYY, 1, ArgX)) Store(XXX, Index(YYY, 1, LocalX)) Store(XXX, Index(YYY, 1, NamedX)) Do this for all the ASL Operators which write results. FEATURE: write(String:Index:IRef) ========== * TEST 40: Write immediately into result of Index(Buffer) ========== Check the immediate IRef to the element of Buffer being passed as a target destination of write operators. Do the following: WRITE_OPERATOR(XXXX, Index(ArgX, 0)) WRITE_OPERATOR(XXXX, Index(LocalX, 0)) WRITE_OPERATOR(XXXX, Index(NamedX, 0)) Do this for all the ASL Operators which write results. FEATURE: write(Buffer:Index:IRef) ========== * TEST 41: Store Object immediately into result of Index(Package(){Uninitialized}) ========== Check Store of available type Objects to the immediate IRef to the element of Package. Element of Package is an Uninitialized. Example: Store(Object, Index(ArgX, 0)) Store(Object, Index(LocalX, 0)) Store(Object, Index(NamedX, 0)) A set of available for Store types is restricted FEATURE: Store(Object, Index(Package(){Uninitialized})) ========== * TEST 42 (no test): CopyObject Object immediately into result of Index(Package(){Uninitialized}) ========== Check CopyObject of any type Objects to the immediate IRef to the element of Package. Element of Package is an Uninitialized. CURRENTLY: compiler failed CopyObject(xx, Index(xx,xx)), so - no test. Example: CopyObject(Object, Index(ArgX, 0)) CopyObject(Object, Index(LocalX, 0)) CopyObject(Object, Index(NamedX, 0)) FEATURE: CopyObject(Object, Index(Package(){Uninitialized})) ========= * TEST 43: Store ORef immediately into result of Index(Package(){Uninitialized}) ========= Check Store of ORef to the immediate IRef to the element of Package. Element of Package is an Uninitialized. Example: Store(RefOf(Object), Index(ArgX, 0)) Store(RefOf(Object), Index(LocalX, 0)) Store(RefOf(Object), Index(NamedX, 0)) FEATURE: Store(RefOf(Object), Index(Package(){Uninitialized})) ========== * TEST 44: Store IRef immediately into result of Index(Package(){Uninitialized}) ========== Check Store of IRef to the immediate IRef to the element of Package. Element of Package is an Uninitialized. Example: Store(Index(Object, 0), Index(ArgX, 0)) Store(Index(Object, 0), Index(LocalX, 0)) Store(Index(Object, 0), Index(NamedX, 0)) FEATURE: Store(Index(Object,x), Index(Package(){Uninitialized})) ========== * TEST 45: Store immediately into result of Index(Package(){Constants}) ========== Check the immediate IRef to the element of Package being passed as a target destination of write operators. Element of Package is an immediate constant {Integer,String,Buffer,Package}. Do the following: WRITE_OPERATOR(XXXX, Index(ArgX, 0)) WRITE_OPERATOR(XXXX, Index(LocalX, 0)) WRITE_OPERATOR(XXXX, Index(NamedX, 0)) Do this for all the ASL Operators which write results. FEATURE: write(x, Index(Package(){Constant})) ========== * TEST 46: Store immediately into result of Index(Package(){NamedX {1-16}}) ========== Check the immediate IRef to the element of Package being passed as a target destination of write operators. Element of Package is a named object of any type: NamedX {1-16}. Do the following: WRITE_OPERATOR(XXXX, Index(ArgX, 0)) WRITE_OPERATOR(XXXX, Index(LocalX, 0)) WRITE_OPERATOR(XXXX, Index(NamedX, 0)) Do this for all the ASL Operators which write results. FEATURE: write(x, Index(Package(){NamedX})) ========== * TEST 47: Store immediately into result of Index(Package(){ORef to NamedX {1-16}}) ========== Check the immediate IRef to the element of Package being passed as a target destination of write operators. Element of Package is a ORef to the named object of any type: NamedX {1-16}. Do the following: WRITE_OPERATOR(XXXX, Index(ArgX, 0)) WRITE_OPERATOR(XXXX, Index(LocalX, 0)) WRITE_OPERATOR(XXXX, Index(NamedX, 0)) Do this for all the ASL Operators which write results. Check that the relevant elements of Package are properly changed. Check that the original data are not changed. FEATURE: Store(Object, Index(Package(){ORef})) ========== * TEST 48: Store immediately into result of Index(Package(){IRef}) ========== Check the immediate IRef to the element of Package being passed as a target destination of write operators. Element of Package is an IRef to the element of another object: {String, Buffer, Package}. Do the following: WRITE_OPERATOR(XXXX, Index(ArgX, 0)) WRITE_OPERATOR(XXXX, Index(LocalX, 0)) WRITE_OPERATOR(XXXX, Index(NamedX, 0)) Do this for all the ASL Operators which write results. Check that the relevant elements of Package are properly changed. Check that the original data are not changed. Note: TEST 07 checks the writing into IRef passed to Method referencing elements of Package. FEATURE: Store(Object, Index(Package(){IRef})) ========== * TEST 49: ORef-LocalX ========== FEATURE: Store(RefOf(), LocalX) FEATURE: Copy(RefOf(), LocalX) ========== * TEST 50: ORef-ArgX ========== FEATURE: Store(RefOf(), ArgX) FEATURE: Copy(RefOf(), ArgX) SPEC: 5.5.2.3 Method Calling Convention Generally, the objects passed to a control method via the ArgX terms cannot be directly written or modified by the called method. In other words, when an ArgX term is used as a target operand in an ASL statement, the existing ArgX object is not modified. Instead, the new object replaces the existing object and the ArgX term effectively becomes a LocalX term. ========== * TEST 51: ORef-NamedX ========== FEATURE: Store(RefOf(), NamedX) FEATURE: Copy(RefOf(), NamedX) ========== * TEST 52: ORef-El_of_Package ========== FEATURE: Store(RefOf(), Index()) FEATURE: Copy(RefOf(), Index()) ========== * TEST 53: IRef-LocalX ========== FEATURE: Store(Index(), LocalX) FEATURE: Store(LocalX, Index()) FEATURE: Copy(Index(), LocalX) FEATURE: Copy(LocalX, Index()) ========== * TEST 54: IRef-ArgX ========== FEATURE: Store(Index(), ArgX) FEATURE: Store(ArgX, Index()) FEATURE: Copy(Index(), ArgX) FEATURE: Copy(ArgX, Index()) ========== * TEST 55: IRef-NamedX ========== FEATURE: Store(Index(), NamedX) FEATURE: Store(NamedX, Index()) FEATURE: Copy(Index(), NamedX) FEATURE: Copy(NamedX, Index()) ========== * TEST 56: IRef-El_of_Package ========== FEATURE: Store(Index(), Index()) FEATURE: Copy(Index(), Index()) FEATURE: Store(Index(arg0, x), Local0) ========== * TEST 57: Store total ========== When this start work the user will feel himself free in the way coding its thoughts. Store(ImageX , RefOf()) Store(ArgX , RefOf()) Store(LocalX , RefOf()) Store(NamedX , RefOf()) Store(RefOf() , RefOf()) Store(Index() , RefOf()) Store(DerefOf() , RefOf()) Store(ImageX , Index()) Store(ArgX , Index()) Store(LocalX , Index()) Store(NamedX , Index()) Store(RefOf() , Index()) Store(Index() , Index()) Store(DerefOf() , Index()) Store(ImageX , DerefOf()) Store(ArgX , DerefOf()) Store(LocalX , DerefOf()) Store(NamedX , DerefOf()) Store(RefOf() , DerefOf()) Store(Index() , DerefOf()) Store(DerefOf() , DerefOf()) Store(ImageX , ArgX) Store(ArgX , ArgX) Store(LocalX , ArgX) Store(NamedX , ArgX) Store(RefOf() , ArgX) Store(Index() , ArgX) Store(DerefOf() , ArgX) Store(ImageX , LocalX) Store(ArgX , LocalX) Store(LocalX , LocalX) Store(NamedX , LocalX) Store(RefOf() , LocalX) Store(Index() , LocalX) Store(DerefOf() , LocalX) Store(ImageX , NamedX) Store(ArgX , NamedX) Store(LocalX , NamedX) Store(NamedX , NamedX) Store(RefOf() , NamedX) Store(Index() , NamedX) Store(DerefOf() , NamedX) Verify all the aspects not including conversion issues. Verify all the actions comprehensively enumerated in the table. Do this comprehensive test after all the particular bugs will be fixed. Now, due to the bugs, it looks difficult. Extend in every possible way this test, see top of this spec, as far as fixing the bugs. ========== * TEST 58: CopyObject total ========== When this start work the user will feel himself free in the way coding its thoughts. Copy(ImageX , RefOf()) Copy(ArgX , RefOf()) Copy(LocalX , RefOf()) Copy(NamedX , RefOf()) Copy(RefOf() , RefOf()) Copy(Index() , RefOf()) Copy(DerefOf() , RefOf()) Copy(ImageX , Index()) Copy(ArgX , Index()) Copy(LocalX , Index()) Copy(NamedX , Index()) Copy(RefOf() , Index()) Copy(Index() , Index()) Copy(DerefOf() , Index()) Copy(ImageX , DerefOf()) Copy(ArgX , DerefOf()) Copy(LocalX , DerefOf()) Copy(NamedX , DerefOf()) Copy(RefOf() , DerefOf()) Copy(Index() , DerefOf()) Copy(DerefOf() , DerefOf()) Copy(ImageX , ArgX) Copy(ArgX , ArgX) Copy(LocalX , ArgX) Copy(NamedX , ArgX) Copy(RefOf() , ArgX) Copy(Index() , ArgX) Copy(DerefOf() , ArgX) Copy(ImageX , LocalX) Copy(ArgX , LocalX) Copy(LocalX , LocalX) Copy(NamedX , LocalX) Copy(RefOf() , LocalX) Copy(Index() , LocalX) Copy(DerefOf() , LocalX) Copy(ImageX , NamedX) Copy(ArgX , NamedX) Copy(LocalX , NamedX) Copy(NamedX , NamedX) Copy(RefOf() , NamedX) Copy(Index() , NamedX) Copy(DerefOf() , NamedX) Verify all the aspects not including conversion issues. Verify all the actions comprehensively enumerated in the table. Do this comprehensive test after all the particular bugs will be fixed. Now, due to the bugs, it looks difficult. Extend in every possible way this test, see top of this spec, as far as fixing the bugs. ========== * TEST 59: Mix of Store and CopyObject total ========== Mix of all the actions enumerated in two tests above. Do it after the current bugs fixing. ========== * TEST 60: Package total ========== When this starts work the user will feel himself free in the way coding its thoughts. Do this comprehensive test after all the particular bugs will be fixed. Now, due to the bugs, it looks difficult. Extend in every possible way this test, see top of this spec, as far as fixing the bugs. Duplicate it for Store and Copy. Concentrate all the issues declaring and accessing elements of Package. Would be useful consider the particular aspects enumerated below as elements of the total table - do (in maximum) all the combinations of the elements of the table. Specify as many different aspects as possible. Aspects: Read immediate image element of Package All the ways reading element of Package ...will be continued /* SEE these and add to "Aspects": 1. Put immediate constant as an element of Package and access it with and without additional DerefOf. 2. Put NamedX {1-16} as an element of Package and access it with and without additional DerefOf. REMAINED TO DO THESE: 3 and 4 ===================== 3. Put ORef (to any type object) as an element of Package and access it with and without additional DerefOf. 4. Put IRef (to element of String, Buffer, Package) as an element of Package and access it with and without additional DerefOf. * TEST 6x: Read element of Package without DerefOf * TEST 6x: Write element of Package * TEST 6x: Read element of Package * TEST 6x: Method as an element of Package */ ========== * TEST 61: String total ========== Do this test similar to "Package total" when the major bugs will be fixed. ========== * TEST 62: Buffer total ========== Do this test similar to "Package total" when the major bugs will be fixed. THE REFERENCE CALCULATIONS ========================== ========== * TEST 63: All the legal ways of WRITING ORef reference to target location ========== All the locations should show the same identical functionality. NamedX - types 1-16 Named_X - types 1-4,6-13,15,16 (except Buffer Field & Field Unit) 63.0 Store 1. Store(RefOf(NamedX), LocalX) 2. Store(RefOf(NamedX), ArgX-Object) 3. CopyObject( RefOf(NamedX), Named_X) Store(RefOf(NamedX), Named_X) 4. Store(RefOf(NamedX), ArgX-ORef-to-LocalX) 5. Store(RefOf(NamedX), ArgX-ORef-to-ArgX) 6. CopyObject( RefOf(NamedX), ArgX-ORef-to-Named_X) Store(RefOf(NamedX), ArgX-ORef-to-Named_X) 7. Store(RefOf(NamedX), ArgX-IRef-to-El_of_Package) 8. Store(RefOf(NamedX), RefOf(Named_X)) 9. Store(RefOf(NamedX), Index(Package, 0)) 10. Store(RefOf(NamedX), Method()) 11. Store(RefOf(NamedX), Method(x)) 12. Store(RefOf(NamedX), DerefOf(Expr_resulting_in_ORef)) 63.1 Particular (not all) cases of (12) 13. Store(RefOf(NamedX), DerefOf(ArgX-ORef-to-LocalX)) 14. Store(RefOf(NamedX), DerefOf(ArgX-ORef-to-ArgX)) 15. CopyObject( RefOf(NamedX), ArgX-ORef-to-Named_X) Store(RefOf(NamedX), DerefOf(ArgX-ORef-to-Named_X)) 16. Store(RefOf(NamedX), DerefOf(ArgX-IRef-to-El_of_Package)) 17. Store(RefOf(NamedX), DerefOf(RefOf(Named_X))) 18. Store(RefOf(NamedX), DerefOf(Index(Package, 0))) 19. Store(RefOf(NamedX), DerefOf(Method())) 20. Store(RefOf(NamedX), DerefOf(Method(x))) 63.2 CopyObject 21. CopyObject(RefOf(NamedX), LocalX) 22. CopyObject(RefOf(NamedX), ArgX-Object) 23. CopyObject(RefOf(NamedX), Named_X) 24. CopyObject(RefOf(NamedX), ArgX-ORef-to-LocalX) 25. CopyObject(RefOf(NamedX), ArgX-ORef-to-ArgX) 26. CopyObject(RefOf(NamedX), ArgX-ORef-to-Named_X) 27. CopyObject(RefOf(NamedX), ArgX-IRef-to-El_of_Package) 63.3 CopyObject (Compiler failed) 28. CopyObject(RefOf(NamedX), Index(Package, 0)) ========== * TEST 64: All the legal ways of WRITING IRef reference to target location ========== The same as TEST 63 but Index() instead of RefOf() Example: 1. Store(Index(XXX,0), LocalX) XXX - String, Buffer, Package. Additional are these given by Y below: a. Index(x,0,y) b. Store(Index(x,0,y), XXX) ========== * TEST 65: All the legal SOURCES of ORef reference ========== Full test. Do all the options enumerated in the tables 63.0-63.2. Take each element of table 65.x below (XXX) instead of RefOf() in 63.0-63.2. Example: 1. Store(XXX, LocalX) XXX - all the types of sources of reference Types of locations according to the right parts of 63.x tables 65.0 (from 63.0 Store) 1. ORef-LocalX // ORef reference assigned to LocalX 2. ORef-ArgX // ORef reference assigned to ArgX effectively local 3. ORef-Named_X // ORef reference assigned to Named_X 4. ORef-ArgX-ORef-to-LocalX // ORef reference assigned to LocalX, and ORef reference // to that LocalX is passed to Method 5. ORef-ArgX-ORef-to-ArgX // ORef reference assigned to "ArgX effectively local", // and ORef reference to that ArgX is passed to Method 6. ORef-ArgX-ORef-to-Named_X // ORef reference assigned to Named_X, and ORef reference // to that Named_X is passed to Method 7. ORef-ArgX-IRef-to-El_of_Package // ORef reference assigned to the element of Package, // and IRef reference to that element is passed to Method 8. RefOf(Named_X) 9. Index(Package, 0) 10. Method() 11. Method(x) 12. DerefOf(Expr_resulting_in_ORef) 65.1 (from 63.1 Particular (not all) cases of (12)) 13. DerefOf(ArgX-ORef-to-LocalX) 14. DerefOf(ArgX-ORef-to-ArgX) 15. DerefOf(ArgX-ORef-to-Named_X) 16. DerefOf(ArgX-IRef-to-El_of_Package) 17. DerefOf(RefOf(Named_X)) 18. DerefOf(Index(Package, 0)) 19. DerefOf(Method()) 20. DerefOf(Method(x)) Note: DerefOf(X) here means returning some reference pointed by X ========== * TEST 66: All the legal SOURCES of IRef reference ========== ========== * TEST 67: All the legal ways to READ the object pointed to by ORef reference ========== ========== * TEST 68: All the legal ways to READ the object pointed to by IRef reference ========== ========== * TEST 69: All the legal ways to WRITE to the object pointed to by ORef reference ========== ========== * TEST 70: All the legal ways to WRITE to the object pointed to by IRef reference ========== ========== * TEST 71: All the legal ways of READ automatic dereference ========== ========== * TEST 72: All the legal ways of WRITE automatic dereference ========== ==================================================================== ==== SEE LATER CAREFULLY, SOME OF THE SUB-TESTS BELOW PERHAPS ==== ==== ARE OLREADY IMPLEMENTED IN THE TESTS ABOVE: ==== ==================================================================== SPEC: 17.5.102 Return Arg can be any valid object or reference. ========== * TEST 73: Return ORef reference ========== Clarify that the talk is actually about the ORef and IRef (otherwise do only fixing of the ACPI specification and omit the things below). Pass the ORef and IRef references through the Method without any change only returning it. After returning from the Method, check that all the source features of the references are unchanged. ========== * TEST 74: Return IRef reference ========== SPEC: 17.5.13 CondRefOf On failure, Destination is unchanged and the execution result of this operation is the value False. ========== * TEST 75: ========== Run CondRefOf in false conditions and check that FALSE is returned and check that Destination is unchanged. SPEC: 17.5.27 DerefOf If the Source evaluates to a string, the string is evaluated as an ASL name (relative to the current scope) and the contents of that object are returned. ========== * TEST 76: ========== Check the assertion above. SPEC: 17.5.27 DerefOf If the object specified by Source does not exist then a fatal error is generated. ========== * TEST 77: ========== Check the assertion above. SPEC: 17.5.86 ObjectType Notice that if this operation is performed on an object reference such as one produced by the Alias, Index, or RefOf statements, the object type of the base object is returned. ========== * TEST 78: ========== The assertion above has been verified for Index and RefOf cases by all the tests above by the (TEST_00.2) entry. Check it for the Alias case in this test. SPEC: 17.5.108 SizeOf For an object reference, the size of the referenced object is returned. ========== * TEST 79: ========== Check SizeOf for ORef. ========== * TEST 80: ========== Check SizeOf for IRef. ========== * TEST 81: ========== Check SizeOf for Alias. SPEC: 17.5.97 RefOf If the Object does not exist, the result of a RefOf operation is fatal. ========== * TEST 82: ========== Run RefOf in false conditions and check that exception occurs. ========== * TEST 83: ========== All the possible ways to keep/pass/transfer the ORef safes all its features. ========== * TEST 84: ========== All the possible ways to keep/pass/transfer the IRef safes all its features. ========== * TEST 85: ========== Exercise the tricky way of writing everywhere. Attempt to work with the keeped somewhere references. Store everywhere the reference than do DerefOf and pass the result immediately to the write operators. Store(0x12345678, Local0) Store(Index(xxx, 0), Local0) Store(RefOf(xxx, 0), Local0) ORef passed by ArgX IRef passed by ArgX ... Store(0, Derefof(Refof(Local0))) ========== * TEST 86: ========== Check presence/absence of Result conversion while writing to ORef. Do that without details. Details are to be exercised in another separate test. ========== * TEST 87: ========== Check attempts to keep References in NamedX. ========== * TEST 88: ========== Check DerefOf(RefOf(DerefOf(RefOf(ArgX))) See the test of exceptions exc_ref. ========== * TEST 89: ========== The same as TEST 26 but for IRef. Example: Store(Index(s000, 1, Arg0), Arg1) ========== * TEST 90: ========== Check References to the different relative and root names. Example: ^XXXX \XXXX.XXXX ... ========== * TEST 91: ========== In all the cases specified by tests TEST 38 - TEST 48 check ObjectType and SizeOf operators and say there that DerefOf of these immediate cases is verified in TEST XX - TEST XX (no more ability to use immediate result of RefOf/Index). ========== * TEST 92: ========== From: Moore, Robert Sent: Thursday, November 10, 2005 2:35 AM To: Podrezov, Valery A; Suietov, Fiodor F Subject: FW: Support of Local Reference in the ACPI CA Separately (though such are already): put reference into element of Package and then write another reference into that element of that Package. No any correlation must be. SEE LATER AND REMOVE THESE RECORDS: =================================== /* SEE: where these take place, note them: FEATURE: write any type reference: Store(RefOf(Int,Str,...TZone,Region), XXXX) FEATURE: write into LocalX containing any type Index/RefOf reference: Store(RefOf(Int,Str,...TZone,Region), XXXX) */ /* SEE: Index(XXXX, x, NamedX) DerefOf(NamedX) Store(RefOf(XXXX), NamedX)) DerefOf(NamedX) */ /* specify and verify all the ways storing,keeping references and the following using of reference */ /* 1.1.1 RefOf (Create Object Reference) Syntax RefOf (Object) => ObjectReference Arguments Object can be any object type (for example, a package, a device object, and so on). Description Returns an object reference to Object. If the Object does not exist, the result of a RefOf operation is fatal. Use the CondRefOf term in cases where the Object might not exist. The primary purpose of RefOf() is to allow an object to be passed to a method as an argument to the method without the object being evaluated ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ at the time the method was loaded. */ /* collect all the ways writing the value by the references in the particular test */ /* RefOf(ArgX) RefOf(LocalX) */ /* Remove it!!!!!!!!!!!!! TEST 49 Do the same as the tests {TEST 38 - TEST 48}, but store intermediately the values of both type References, RefOf(X) and Index(X), into ArgX, LocalX, NamedX before passing them to WRITE_OPERATOR: Do the following: Store(RefOf(ArgX), LocalY) Store(RefOf(LocalX), LocalY) Store(RefOf(NamedX), LocalY) Store(Index(ArgX, 0, LocalY), LocalZ) Store(Index(LocalX, 0, LocalY), LocalZ) Store(Index(NamedX, 0, LocalY), LocalZ) Store(RefOf(ArgX), ArgY) Store(RefOf(LocalX), ArgY) Store(RefOf(NamedX), ArgY) Store(Index(ArgX, 0, ArgY), ArgZ) Store(Index(LocalX, 0, ArgY), ArgZ) Store(Index(NamedX, 0, ArgY), ArgZ) Store(RefOf(ArgX), NamedY) Store(RefOf(LocalX), NamedY) Store(RefOf(NamedX), NamedY) Store(Index(ArgX, 0, NamedY), NamedZ) Store(Index(LocalX, 0, NamedY), NamedZ) Store(Index(NamedX, 0, NamedY), NamedZ) WRITE_OPERATOR(XXXX, ArgY) WRITE_OPERATOR(XXXX, LocalY) WRITE_OPERATOR(XXXX, NamedY) WRITE_OPERATOR(XXXX, ArgZ) WRITE_OPERATOR(XXXX, LocalZ) WRITE_OPERATOR(XXXX, NamedZ) INCORRECT: there is no any way, except DerefOf operator, how to use the value of Reference keeped intermediately in any type object. So, all the write operators: WRITE_OPERATOR(XXXX, ArgZ) WRITE_OPERATOR(XXXX, LocalZ) WRITE_OPERATOR(XXXX, NamedZ) will write into ArgZ, LocalZ and NamedZ but NOT into the References containend into them (mean containend into ArgZ, LocalZ and NamedZ). ????????????????? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! enumerate here (or specify and implement) the tests which verify: "will write into ArgZ, LocalZ and NamedZ but NOT into the References containend into them" ????????????????? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ /* SEE: 0011_take_this/bugs/0012 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! SEE aslts that all these are implemented. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Store(Index(arg0, V001), i003) Store(RefOf(i000), i003) Store(Index(arg0, V001, Index(p000, 0)), Index(p000, 1)) Store(RefOf(xxx), RefOf(xxx)) test of printing references to all the possible types: */ /* describe and demo for the implicit conversion of String (references to the end of string should ???????) - also Packages, Buffers,... presence of references to such objects should cause exceptions (???????????? !!!!!!!!!!!!). */ acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref05.asl0000700000175000017500000030656414773714157030354 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * References */ Name (Z108, 0x6C) /* m16a */ Method (M1B0, 0, NotSerialized) { If (Y100) { TS00 ("m1b0") } Else { Debug = "m1b0" } /* T2:R1-R14 */ /* Computational Data */ M1A2 (I900, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) M1A2 (I901, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) M1A2 (S900, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) M1A2 (S901, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) M1A2 (B900, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x04) M1A2 (F900, C009, 0x00, 0x00, C009, 0x00, __LINE__) M1A2 (BN90, C009, 0x00, 0x00, C009, 0x00, __LINE__) M1A2 (IF90, C009, 0x00, 0x00, C009, 0x00, __LINE__) M1A2 (BF90, C00B, 0x00, 0x00, C00B, Buffer() {0xB0}, __LINE__) /* Not Computational Data */ M1A0 (E900, C00F, Ones, 0x09) M1A0 (MX90, C011, Ones, 0x0A) If (Y511) { M1A0 (D900, C00E, Ones, 0x0B) } If (Y508) { M1A0 (TZ90, C015, Ones, 0x0C) } M1A0 (PR90, C014, Ones, 0x0D) M1A0 (R900, C012, Ones, 0x0E) M1A0 (PW90, C013, Ones, 0x0F) /* Elements of Package are Uninitialized */ M1A0 (P900, C00C, Ones, 0x10) /* Elements of Package are Computational Data */ M1A2 (P901, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (P901, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) M1A2 (P902, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (P902, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) M1A2 (P903, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (P903, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) M1A2 (P904, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x17) M1A2 (P905, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (P905, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) M1A2 (P906, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) M1A2 (P907, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) M1A2 (P908, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x1C) M1A2 (P909, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) M1A2 (P90A, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) M1A2 (P90B, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) M1A2 (P90C, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x20) M1A2 (P90D, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) M1A2 (P90E, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) M1A2 (P90F, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) M1A2 (P910, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) M1A2 (P911, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x25) If (Y118) { M1A2 (P912, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) M1A2 (P913, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) M1A2 (P914, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) M1A2 (P915, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ M1A0 (P916, C00C, Ones, 0x2A) M1A0 (P917, C00C, Ones, 0x2B) M1A0 (P918, C00C, Ones, 0x2C) M1A0 (P919, C00C, Ones, 0x2D) M1A0 (P91A, C00C, Ones, 0x2E) M1A0 (P91B, C00C, Ones, 0x2F) M1A0 (P91C, C00C, Ones, 0x30) /* Elements of Package are Methods */ M1A0 (P91D, C00C, Ones, 0x31) M1A0 (P91E, C00C, Ones, 0x32) M1A0 (P91F, C00C, Ones, 0x33) M1A0 (P920, C00C, Ones, 0x34) M1A0 (P921, C00C, Ones, 0x35) M1A0 (P922, C00C, Ones, 0x36) M1A0 (P923, C00C, Ones, 0x37) M1A0 (P924, C00C, Ones, 0x38) M1A0 (P925, C00C, Ones, 0x39) M1A0 (P926, C00C, Ones, 0x3A) M1A0 (P927, C00C, Ones, 0x3B) M1A0 (P928, C00C, Ones, 0x3C) M1A0 (P929, C00C, Ones, 0x3D) M1A0 (P92A, C00C, Ones, 0x3E) M1A0 (P92B, C00C, Ones, 0x3F) M1A0 (P92C, C00C, Ones, 0x40) M1A0 (P92D, C00C, Ones, 0x41) M1A0 (P92E, C00C, Ones, 0x42) M1A0 (P92F, C00C, Ones, 0x43) M1A0 (P930, C00C, Ones, 0x44) M1A0 (P931, C00C, Ones, 0x45) M1A0 (P932, C00C, Ones, 0x46) M1A0 (P933, C00C, Ones, 0x47) M1A0 (P934, C00C, Ones, 0x48) M1A0 (P935, C00C, Ones, 0x49) M1A0 (P936, C00C, Ones, 0x4A) M1A0 (P937, C00C, Ones, 0x4B) M1A0 (P938, C00C, Ones, 0x4C) M1A0 (P939, C00C, Ones, 0x4D) M1A0 (P93A, C00C, Ones, 0x4E) M1A0 (P93B, C00C, Ones, 0x4F) M1A0 (P93C, C00C, Ones, 0x50) M1A0 (P93D, C00C, Ones, 0x51) M1A0 (P93E, C00C, Ones, 0x52) M1A0 (P93F, C00C, Ones, 0x53) M1A0 (P940, C00C, Ones, 0x54) M1A0 (P941, C00C, Ones, 0x55) M1A0 (P942, C00C, Ones, 0x56) M1A0 (P943, C00C, Ones, 0x57) M1A0 (P944, C00C, Ones, 0x58) M1A0 (P945, C00C, Ones, 0x59) M1A0 (P946, C00C, Ones, 0x5A) M1A0 (P947, C00C, Ones, 0x5B) M1A0 (P948, C00C, Ones, 0x5C) M1A0 (P949, C00C, Ones, 0x5D) M1A0 (P94A, C00C, Ones, 0x5E) M1A0 (P94B, C00C, Ones, 0x5F) M1A0 (P94C, C00C, Ones, 0x60) M1A0 (P94D, C00C, Ones, 0x61) M1A0 (P94E, C00C, Ones, 0x62) M1A0 (P94F, C00C, Ones, 0x63) M1A0 (P950, C00C, Ones, 0x64) M1A0 (P951, C00C, Ones, 0x65) M1A0 (P952, C00C, Ones, 0x66) M1A0 (P953, C00C, Ones, 0x67) /* Methods */ If (Y509) { M1A0 (M900 (), C010, Ones, 0x68) M1A0 (M901 (), C010, Ones, 0x69) M1A0 (M902 (), C010, Ones, 0x6A) M1A0 (M903 (), C010, Ones, 0x6B) M1A0 (M904 (), C010, Ones, 0x6C) M1A0 (M905 (), C010, Ones, 0x6D) M1A0 (M906 (), C010, Ones, 0x6E) M1A0 (M907 (), C010, Ones, 0x6F) M1A0 (M908 (), C010, Ones, 0x70) M1A0 (M909 (), C010, Ones, 0x71) M1A0 (M90A (), C010, Ones, 0x72) M1A0 (M90B (), C010, Ones, 0x73) M1A0 (M90C (), C010, Ones, 0x74) M1A0 (M90D (), C010, Ones, 0x75) M1A0 (M90E (), C010, Ones, 0x76) M1A0 (M90F (), C010, Ones, 0x77) M1A0 (M910 (), C010, Ones, 0x78) M1A0 (M911 (), C010, Ones, 0x79) M1A0 (M912 (), C010, Ones, 0x7A) M1A0 (M913 (), C010, Ones, 0x7B) M1A0 (M914 (), C010, Ones, 0x7C) M1A0 (M915 (), C010, Ones, 0x7D) M1A0 (M916 (), C010, Ones, 0x7E) M1A0 (M917 (), C010, Ones, 0x7F) M1A0 (M918 (), C010, Ones, 0x80) M1A0 (M919 (), C010, Ones, 0x81) M1A0 (M91A (), C010, Ones, 0x82) M1A0 (M91B (), C010, Ones, 0x83) M1A0 (M91C (), C010, Ones, 0x84) M1A0 (M91D (), C010, Ones, 0x85) M1A0 (M91E (), C010, Ones, 0x86) M1A0 (M91F (), C010, Ones, 0x87) M1A0 (M920 (), C010, Ones, 0x88) M1A0 (M921 (), C010, Ones, 0x89) M1A0 (M922 (), C010, Ones, 0x8A) M1A0 (M923 (), C010, Ones, 0x8B) M1A0 (M924 (), C010, Ones, 0x8C) M1A0 (M925 (), C010, Ones, 0x8D) M1A0 (M926 (), C010, Ones, 0x8E) M1A0 (M927 (), C010, Ones, 0x8F) M1A0 (M928 (), C010, Ones, 0x90) M1A0 (M929 (), C010, Ones, 0x91) M1A0 (M92A (), C010, Ones, 0x92) M1A0 (M92B (), C010, Ones, 0x93) M1A0 (M92C (), C010, Ones, 0x94) M1A0 (M92D (), C010, Ones, 0x95) M1A0 (M92E (), C010, Ones, 0x96) M1A0 (M92F (), C010, Ones, 0x97) M1A0 (M930 (), C010, Ones, 0x98) M1A0 (M931 (), C010, Ones, 0x99) M1A0 (M932 (), C010, Ones, 0x9A) M1A0 (M933 (), C010, Ones, 0x9B) M1A0 (M934 (), C010, Ones, 0x9C) M1A0 (M935 (), C010, Ones, 0x9D) } M1A6 () } /* * CopyObject of Object to LocalX: * * Local0-Local7 can be written with any * type object without any conversion. * * Check each type after each one. */ Method (M1B1, 0, Serialized) { C081 = Z108 /* absolute index of file initiating the checking */ /* \Z108 */ /* All types */ CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) /*///////////////////// All after Integer */ CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (I900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) /*///////////////////// All-Integer after String */ CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (S900, Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) /*///////////////////// All-(Integer+String) after Buffer */ CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (B900, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Package */ CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (P900, Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Field Unit */ CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (F900, Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Device */ CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (D900, Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Event */ CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (E900, Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Method */ If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) If (RN06) { CopyObject (M901 (), Local0) } Else { CopyObject (DerefOf (RefOf (M901)), Local0) } M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Mutex */ CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (MX90, Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Operation Region */ If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) If (Y510) { CopyObject (R900, Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) } /*///////////////////// All-(...) after Power Resource */ CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (PW90, Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Processor */ CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (PR90, Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Thermal Zone */ If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) If (Y508) { CopyObject (TZ90, Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) } /*///////////////////// All-(...) after Buffer Field */ CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) } /* * Store of Object to LocalX: * * Local0-Local7 can be written without any conversion * * A set of available for Store types is restricted * * Check each available type after each one */ Method (M1B2, 0, Serialized) { C081 = Z108 /* absolute index of file initiating the checking */ /* \Z108 */ /* All available for Store types */ Local0 = I900 /* \I900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = S900 /* \S900 */ M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = B900 /* \B900 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = P900 /* \P900 */ M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = F900 /* \F900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = BF90 /* \BF90 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) /*///////////////////// All after Integer */ Local0 = I900 /* \I900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = I900 /* \I900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = S900 /* \S900 */ M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = I900 /* \I900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = B900 /* \B900 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = I900 /* \I900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = P900 /* \P900 */ M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = I900 /* \I900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = F900 /* \F900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = I900 /* \I900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = BF90 /* \BF90 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = I900 /* \I900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) /*///////////////////// All-Integer after String */ Local0 = S900 /* \S900 */ M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = S900 /* \S900 */ M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = B900 /* \B900 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = S900 /* \S900 */ M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = P900 /* \P900 */ M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = S900 /* \S900 */ M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = F900 /* \F900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = S900 /* \S900 */ M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = BF90 /* \BF90 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = S900 /* \S900 */ M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) /*///////////////////// All-(Integer+String) after Buffer */ Local0 = B900 /* \B900 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = B900 /* \B900 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = P900 /* \P900 */ M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = B900 /* \B900 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = F900 /* \F900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = B900 /* \B900 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = BF90 /* \BF90 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = B900 /* \B900 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Package */ Local0 = P900 /* \P900 */ M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = P900 /* \P900 */ M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = F900 /* \F900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = P900 /* \P900 */ M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = BF90 /* \BF90 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = P900 /* \P900 */ M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Field Unit */ Local0 = F900 /* \F900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = F900 /* \F900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = BF90 /* \BF90 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = F900 /* \F900 */ M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Buffer Field */ Local0 = BF90 /* \BF90 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = BF90 /* \BF90 */ M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) } /* * CopyObject the result of RefOf/CondRefOf to LocalX * * Local0-Local7 can be written with RefOf_References * to any type object without any conversion. * * Check each type after each one. * * The same as m1b1 but RefOf() added. */ Method (M1B4, 0, Serialized) { C081 = Z108 /* absolute index of file initiating the checking */ /* \Z108 */ /* All types */ CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) /*///////////////////// All after Integer */ CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) /*///////////////////// All-Integer after String */ CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) /*///////////////////// All-(Integer+String) after Buffer */ CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Package */ CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Field Unit */ CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Device */ CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Event */ CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Method */ CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Mutex */ CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Operation Region */ CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Power Resource */ CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Processor */ CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Thermal Zone */ CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Buffer Field */ CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) } /* * Store the result of RefOf/CondRefOf to LocalX * * The same as m1b4 but Store instead of CopyObject. */ Method (M1B5, 0, Serialized) { C081 = Z108 /* absolute index of file initiating the checking */ /* \Z108 */ /* All types */ Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) /*///////////////////// All after Integer */ Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (I900) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) /*///////////////////// All-Integer after String */ Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (S900) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) /*///////////////////// All-(Integer+String) after Buffer */ Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (B900) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Package */ Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (P900) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Field Unit */ Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (F900) M1A3 (Local0, C00D, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Device */ Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (D900) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Event */ Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (E900) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Method */ Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (M901) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Mutex */ Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (MX90) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Operation Region */ Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (R900) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Power Resource */ Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (PW90) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Processor */ Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (PR90) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Thermal Zone */ Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) /*///////////////////// All-(...) after Buffer Field */ Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) Local0 = RefOf (BF90) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) } /* CopyObject the result of Index to LocalX */ Method (M1B6, 0, Serialized) { C081 = Z108 /* absolute index of file initiating the checking */ /* \Z108 */ /* Computational Data */ CopyObject (Local0 = S900 [0x01], Local1) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) M1A3 (Local1, C016, Z108, __METHOD__, __LINE__) CopyObject (Local0 = B900 [0x01], Local1) M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) M1A3 (Local1, C016, Z108, __METHOD__, __LINE__) /* Elements of Package are Uninitialized */ If (Y127) { CopyObject (Local0 = P900 [0x00], Local1) M1A3 (Local0, C008, Z108, __METHOD__, __LINE__) M1A3 (Local1, C008, Z108, __METHOD__, __LINE__) } /* Elements of Package are Computational Data */ CopyObject (Local0 = P901 [0x01], Local1) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P904 [0x01], Local1) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P905 [0x00], Local1) M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00C, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P90D [0x00], Local1) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P90E [0x00], Local1) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P90F [0x00], Local1) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00A, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P910 [0x00], Local1) M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00A, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P911 [0x00], Local1) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z108, __METHOD__, __LINE__) /* These objects become an integer in a package */ CopyObject (Local0 = P912 [0x00], Local1) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P913 [0x00], Local1) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P914 [0x00], Local1) M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P915 [0x00], Local1) M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z108, __METHOD__, __LINE__) /* Elements of Package are NOT Computational Data */ CopyObject (Local0 = P916 [0x00], Local1) M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00E, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P917 [0x00], Local1) M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00F, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P918 [0x00], Local1) M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) M1A3 (Local1, C011, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P919 [0x00], Local1) M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) M1A3 (Local1, C012, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P91A [0x00], Local1) M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) M1A3 (Local1, C013, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P91B [0x00], Local1) M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) M1A3 (Local1, C014, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P91C [0x00], Local1) M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) M1A3 (Local1, C015, Z108, __METHOD__, __LINE__) /* Elements of Package are Methods */ CopyObject (Local0 = P91D [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P91E [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P91F [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P920 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P921 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P922 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P923 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P924 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P925 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P926 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P927 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P928 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P929 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P92A [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P92B [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P92C [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P92D [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P92E [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P92F [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P930 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P931 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P932 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P933 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P934 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P935 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P936 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P937 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P938 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P939 [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P93A [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) CopyObject (Local0 = P93B [0x00], Local1) M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) M1A6 () } /* Store the result of Index to LocalX. */ /* */ /* The same as m1b6 but Store instead of CopyObject. */ Method (M1B7, 0, Serialized) { C081 = Z108 /* absolute index of file initiating the checking */ /* \Z108 */ /* Computational Data */ Local1 = Local0 = S900 [0x01] M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) M1A3 (Local1, C016, Z108, __METHOD__, __LINE__) Local1 = Local0 = B900 [0x01] M1A3 (Local0, C016, Z108, __METHOD__, __LINE__) M1A3 (Local1, C016, Z108, __METHOD__, __LINE__) /* Elements of Package are Uninitialized */ Local1 = Local0 = P900 [0x00] M1A3 (Local0, C008, Z108, __METHOD__, __LINE__) M1A3 (Local1, C008, Z108, __METHOD__, __LINE__) /* Elements of Package are Computational Data */ Local1 = Local0 = P901 [0x01] M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) Local1 = Local0 = P904 [0x01] M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z108, __METHOD__, __LINE__) Local1 = Local0 = P905 [0x00] M1A3 (Local0, C00C, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00C, Z108, __METHOD__, __LINE__) Local1 = Local0 = P90D [0x00] M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) Local1 = Local0 = P90E [0x00] M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) Local1 = Local0 = P90F [0x00] M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00A, Z108, __METHOD__, __LINE__) Local1 = Local0 = P910 [0x00] M1A3 (Local0, C00A, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00A, Z108, __METHOD__, __LINE__) Local1 = Local0 = P911 [0x00] M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z108, __METHOD__, __LINE__) /* These objects become an integer in a package */ Local1 = Local0 = P912 [0x00] M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) Local1 = Local0 = P913 [0x00] M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) Local1 = Local0 = P914 [0x00] M1A3 (Local0, C009, Z108, __METHOD__, __LINE__) M1A3 (Local1, C009, Z108, __METHOD__, __LINE__) Local1 = Local0 = P915 [0x00] M1A3 (Local0, C00B, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z108, __METHOD__, __LINE__) /* Elements of Package are NOT Computational Data */ Local1 = Local0 = P916 [0x00] M1A3 (Local0, C00E, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00E, Z108, __METHOD__, __LINE__) Local1 = Local0 = P917 [0x00] M1A3 (Local0, C00F, Z108, __METHOD__, __LINE__) M1A3 (Local1, C00F, Z108, __METHOD__, __LINE__) Local1 = Local0 = P918 [0x00] M1A3 (Local0, C011, Z108, __METHOD__, __LINE__) M1A3 (Local1, C011, Z108, __METHOD__, __LINE__) Local1 = Local0 = P919 [0x00] M1A3 (Local0, C012, Z108, __METHOD__, __LINE__) M1A3 (Local1, C012, Z108, __METHOD__, __LINE__) Local1 = Local0 = P91A [0x00] M1A3 (Local0, C013, Z108, __METHOD__, __LINE__) M1A3 (Local1, C013, Z108, __METHOD__, __LINE__) Local1 = Local0 = P91B [0x00] M1A3 (Local0, C014, Z108, __METHOD__, __LINE__) M1A3 (Local1, C014, Z108, __METHOD__, __LINE__) Local1 = Local0 = P91C [0x00] M1A3 (Local0, C015, Z108, __METHOD__, __LINE__) M1A3 (Local1, C015, Z108, __METHOD__, __LINE__) /* Elements of Package are Methods */ Local1 = Local0 = P91D [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P91E [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P91F [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P920 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P921 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P922 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P923 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P924 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P925 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P926 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P927 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P928 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P929 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P92A [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P92B [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P92C [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P92D [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P92E [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P92F [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P930 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P931 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P932 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P933 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P934 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P935 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P936 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P937 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P938 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P939 [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P93A [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) Local1 = Local0 = P93B [0x00] M1A3 (Local0, C010, Z108, __METHOD__, __LINE__) M1A3 (Local1, C010, Z108, __METHOD__, __LINE__) M1A6 () } Method (M1C0, 0, NotSerialized) { C081 = Z108 /* absolute index of file initiating the checking */ /* \Z108 */ C089 = 0x00 /* flag of Reference, object otherwise */ M1B0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref01.asl0000700000175000017500000113760714773714156030350 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * References * * (named objects, if present, are the local objects of Method) * * TABLE 1: all the legal ways to generate references to the * immediate images (constants) * TABLE 2: all the legal ways to generate references to the * named objects * TABLE 3: all the legal ways to generate references to the * immediate images (constants) being elements of Package * TABLE 4: all the legal ways to generate references to the * named objects being elements of Package * * Producing Reference operators: * * Index, RefOf, CondRefOf */ /* ??????????????????????????????????????? SEE: after fixing bug 118 of ACPICA change all the local data so that they differ the relevant global ones. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ Name (Z077, 0x4D) /* /////////////////////////////////////////////////////////////////////////// */ /* */ /* TABLE 1: all the legal ways to generate references */ /* to the immediate images (constants) */ /* */ /* /////////////////////////////////////////////////////////////////////////// */ Method (M168, 0, NotSerialized) { If (Y100) { TS00 ("m168") } Else { Debug = "m168" } If (!Y900) { Debug = "Test m168 skipped!" Return (Zero) } /* T1:I2-I4 */ Store (Index ("123456789", 0x05), Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x36, __LINE__) Store (Index ("qwrtyuiop", 0x05), Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x75, __LINE__) Store (Index (Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, 0x05), Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x06, __LINE__) Store (Index (Package (0x01) { 0x00ABCDEF }, 0x00), Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00ABCDEF, __LINE__) Store (Index (Package (0x01) { "123456789" }, 0x00), Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "123456789", __LINE__) Store (Index (Package (0x01) { "qwrtyuiop" }, 0x00), Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop", __LINE__) Store (Index (Package (0x01) { Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } }, 0x00), Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x04F2) Store (Index (Package (0x01) { Package (0x01) { 0x00ABCDEF } }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x00ABCDEF, __LINE__) Store (Index (Package (0x01) { Package (0x01) { "123456789" } }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "123456789", __LINE__) Store (Index (Package (0x01) { Package (0x01) { "qwrtyuiop" } }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop", __LINE__) Store (Index (Package (0x01) { Package (0x01) { Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x04F6) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { 0x00ABCDEF } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x00ABCDEF, __LINE__) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { "123456789" } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "123456789", __LINE__) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { "qwrtyuiop" } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "qwrtyuiop", __LINE__) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x04FA) /* T1:IR2-IR4 */ If (Y098) { Local0 = Index ("qwrtyuiop", 0x05, Local1) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x75, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x75, __LINE__) Local0 = Index (Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, 0x05, Local1) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x06, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x06, __LINE__) Local0 = Index (Package (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }, 0x05, Local1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x06, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0x06, __LINE__) } } /* /////////////////////////////////////////////////////////////////////////// */ /* */ /* TABLE 2: all the legal ways to generate references to the named objects */ /* */ /* /////////////////////////////////////////////////////////////////////////// */ Method (M169, 0, Serialized) { If (Y100) { TS00 ("m169") } Else { Debug = "m169" } /* Not Computational Data */ Event (E900) Event (E9Z0) Mutex (MX90, 0x00) Mutex (MX91, 0x00) Device (D900) { Name (I900, 0xABCD1017) } Device (D9Z0) { Name (I900, 0xABCD1017) } ThermalZone (TZ90) { } ThermalZone (TZ91) { } Processor (PR90, 0x00, 0xFFFFFFFF, 0x00){} Processor (PR91, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (R900, SystemMemory, 0x0100, 0x0100) OperationRegion (R9Z0, SystemMemory, 0x0100, 0x0100) PowerResource (PW90, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } PowerResource (PW91, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } /* Computational Data */ Name (I900, 0xFE7CB391D65A1000) Name (I9Z0, 0xFE7CB391D65A1000) Name (I901, 0xC1791001) Name (I9Z1, 0xC1791001) Name (I902, 0x00) Name (I903, 0xFFFFFFFFFFFFFFFF) Name (I904, 0xFFFFFFFF) Name (S900, "12341002") Name (S9Z0, "12341002") Name (S901, "qwrtyu1003") Name (S9Z1, "qwrtyu1003") Name (B900, Buffer (0x05) { 0x10, 0x11, 0x12, 0x13, 0x14 // ..... }) Name (B9Z0, Buffer (0x05) { 0x10, 0x11, 0x12, 0x13, 0x14 // ..... }) CreateField (B9Z0, 0x00, 0x08, BF90) Field (R9Z0, ByteAcc, NoLock, Preserve) { F900, 8, F901, 8, F902, 8, F903, 8 } BankField (R9Z0, F901, 0x00, ByteAcc, NoLock, Preserve) { BN90, 4 } IndexField (F902, F903, ByteAcc, NoLock, Preserve) { IF90, 8, IF91, 8 } /* Elements of Package are Uninitialized */ Name (P900, Package (0x01){}) /* Elements of Package are Computational Data */ Name (P901, Package (0x02) { 0xABCD1004, 0x1122334455661005 }) Name (P902, Package (0x02) { "12341006", "q1w2e3r4t5y6u7i81007" }) Name (P903, Package (0x02) { "qwrtyuiop1008", "1234567890abdef0251009" }) Name (P904, Package (0x02) { Buffer (0x03) { 0xA0, 0xA1, 0xA2 // ... }, Buffer (0x02) { 0xA3, 0xA4 // .. } }) Name (P905, Package (0x01) { Package (0x03) { 0x0ABC100A, "0xabc100b", "abc100c" } }) Name (P906, Package (0x01) { Package (0x01) { "abc100d" } }) Name (P907, Package (0x01) { Package (0x01) { "aqwevbgnm100e" } }) Name (P908, Package (0x01) { Package (0x01) { Buffer (0x05) { 0xA5, 0xA6, 0xA7, 0xA8, 0xA9 // ..... } } }) Name (P909, Package (0x01) { Package (0x01) { Package (0x01) { 0x0ABC100F } } }) Name (P90A, Package (0x01) { Package (0x01) { Package (0x01) { "12341010" } } }) Name (P90B, Package (0x01) { Package (0x01) { Package (0x01) { "zxswefas1011" } } }) Name (P90C, Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x03) { 0xAA, 0xAB, 0xAC // ... } } } }) Name (P90D, Package (0x01) { I900 }) Name (P90E, Package (0x01) { I901 }) Name (P90F, Package (0x01) { S900 }) Name (P910, Package (0x01) { S901 }) Name (P911, Package (0x01) { B9Z0 }) Name (P912, Package (0x01) { F900 }) Name (P913, Package (0x01) { BN90 }) Name (P914, Package (0x01) { IF90 }) Name (P915, Package (0x01) { BF90 }) /* Elements of Package are NOT Computational Data */ Name (P916, Package (0x01) { D900 }) Name (P917, Package (0x01) { E900 }) Name (P918, Package (0x01) { MX90 }) Name (P919, Package (0x01) { R9Z0 }) Name (P91A, Package (0x01) { PW90 }) Name (P91B, Package (0x01) { PR90 }) Name (P91C, Package (0x01) { TZ90 }) /* Methods */ Method (M900, 0, NotSerialized) { } Method (M901, 0, NotSerialized) { Return (0x0ABC1012) } Method (M902, 0, NotSerialized) { Return ("zxvgswquiy1013") } Method (M903, 0, NotSerialized) { Return (Buffer (0x01) { 0xAD // . }) } Method (M904, 0, NotSerialized) { Return (Package (0x01) { 0x0ABC1014 }) } Method (M905, 0, NotSerialized) { Return (Package (0x01) { "lkjhgtre1015" }) } Method (M906, 0, NotSerialized) { Return (Package (0x01) { Buffer (0x01) { 0xAE // . } }) } Method (M907, 0, NotSerialized) { Return (Package (0x01) { Package (0x01) { 0x0ABC1016 } }) } Method (M908, 0, NotSerialized) { Return (I900) /* \M169.I900 */ } Method (M909, 0, NotSerialized) { Return (I901) /* \M169.I901 */ } Method (M90A, 0, NotSerialized) { Return (S900) /* \M169.S900 */ } Method (M90B, 0, NotSerialized) { Return (S901) /* \M169.S901 */ } Method (M90C, 0, NotSerialized) { Return (B9Z0) /* \M169.B9Z0 */ } Method (M90D, 0, NotSerialized) { Return (F900) /* \M169.F900 */ } Method (M90E, 0, NotSerialized) { Return (BN90) /* \M169.BN90 */ } Method (M90F, 0, NotSerialized) { Return (IF90) /* \M169.IF90 */ } Method (M910, 0, NotSerialized) { Return (BF90) /* \M169.BF90 */ } Method (M911, 0, NotSerialized) { Return (D900) /* \M169.D900 */ } Method (M912, 0, NotSerialized) { Return (E900) /* \M169.E900 */ } Method (M913, 0, NotSerialized) { Return (M901 ()) } Method (M914, 0, NotSerialized) { Return (MX90) /* \M169.MX90 */ } Method (M915, 0, NotSerialized) { Return (R9Z0) /* \M169.R9Z0 */ } Method (M916, 0, NotSerialized) { Return (PW90) /* \M169.PW90 */ } Method (M917, 0, NotSerialized) { Return (PR90) /* \M169.PR90 */ } Method (M918, 0, NotSerialized) { Return (TZ90) /* \M169.TZ90 */ } Method (M919, 0, NotSerialized) { Return (P900) /* \M169.P900 */ } Method (M91A, 0, NotSerialized) { Return (P901) /* \M169.P901 */ } Method (M91B, 0, NotSerialized) { Return (P902) /* \M169.P902 */ } Method (M91C, 0, NotSerialized) { Return (P903) /* \M169.P903 */ } Method (M91D, 0, NotSerialized) { Return (P904) /* \M169.P904 */ } Method (M91E, 0, NotSerialized) { Return (P905) /* \M169.P905 */ } Method (M91F, 0, NotSerialized) { Return (P906) /* \M169.P906 */ } Method (M920, 0, NotSerialized) { Return (P907) /* \M169.P907 */ } Method (M921, 0, NotSerialized) { Return (P908) /* \M169.P908 */ } Method (M922, 0, NotSerialized) { Return (P909) /* \M169.P909 */ } Method (M923, 0, NotSerialized) { Return (P90A) /* \M169.P90A */ } Method (M924, 0, NotSerialized) { Return (P90B) /* \M169.P90B */ } Method (M925, 0, NotSerialized) { Return (P90C) /* \M169.P90C */ } Method (M926, 0, NotSerialized) { Return (P90D) /* \M169.P90D */ } Method (M927, 0, NotSerialized) { Return (P90E) /* \M169.P90E */ } Method (M928, 0, NotSerialized) { Return (P90F) /* \M169.P90F */ } Method (M929, 0, NotSerialized) { Return (P910) /* \M169.P910 */ } Method (M92A, 0, NotSerialized) { Return (P911) /* \M169.P911 */ } Method (M92B, 0, NotSerialized) { Return (P912) /* \M169.P912 */ } Method (M92C, 0, NotSerialized) { Return (P913) /* \M169.P913 */ } Method (M92D, 0, NotSerialized) { Return (P914) /* \M169.P914 */ } Method (M92E, 0, NotSerialized) { Return (P915) /* \M169.P915 */ } Method (M92F, 0, NotSerialized) { Return (P916) /* \M169.P916 */ } Method (M930, 0, NotSerialized) { Return (P917) /* \M169.P917 */ } Method (M931, 0, NotSerialized) { Return (P918) /* \M169.P918 */ } Method (M932, 0, NotSerialized) { Return (P919) /* \M169.P919 */ } Method (M933, 0, NotSerialized) { Return (P91A) /* \M169.P91A */ } Method (M934, 0, NotSerialized) { Return (P91B) /* \M169.P91B */ } Method (M935, 0, NotSerialized) { Return (P91C) /* \M169.P91C */ } /* Elements of Package are Methods */ Name (P91D, Package (0x01) { M900 }) Name (P91E, Package (0x01) { M901 }) Name (P91F, Package (0x01) { M902 }) Name (P920, Package (0x01) { M903 }) Name (P921, Package (0x01) { M904 }) Name (P922, Package (0x01) { M905 }) Name (P923, Package (0x01) { M906 }) Name (P924, Package (0x01) { M907 }) Name (P925, Package (0x01) { M908 }) Name (P926, Package (0x01) { M909 }) Name (P927, Package (0x01) { M90A }) Name (P928, Package (0x01) { M90B }) Name (P929, Package (0x01) { M90C }) Name (P92A, Package (0x01) { M90D }) Name (P92B, Package (0x01) { M90E }) Name (P92C, Package (0x01) { M90F }) Name (P92D, Package (0x01) { M910 }) Name (P92E, Package (0x01) { M911 }) Name (P92F, Package (0x01) { M912 }) Name (P930, Package (0x01) { M913 }) Name (P931, Package (0x01) { M914 }) Name (P932, Package (0x01) { M915 }) Name (P933, Package (0x01) { M916 }) Name (P934, Package (0x01) { M917 }) If (Y103) { Name (P935, Package (0x01) { M918 }) } Name (P936, Package (0x01) { M919 }) Name (P937, Package (0x01) { M91A }) Name (P938, Package (0x01) { M91B }) Name (P939, Package (0x01) { M91C }) Name (P93A, Package (0x01) { M91D }) Name (P93B, Package (0x01) { M91E }) Name (P93C, Package (0x01) { M91F }) Name (P93D, Package (0x01) { M920 }) Name (P93E, Package (0x01) { M921 }) Name (P93F, Package (0x01) { M922 }) Name (P940, Package (0x01) { M923 }) Name (P941, Package (0x01) { M924 }) Name (P942, Package (0x01) { M925 }) Name (P943, Package (0x01) { M926 }) Name (P944, Package (0x01) { M927 }) Name (P945, Package (0x01) { M928 }) Name (P946, Package (0x01) { M929 }) Name (P947, Package (0x01) { M92A }) Name (P948, Package (0x01) { M92B }) Name (P949, Package (0x01) { M92C }) Name (P94A, Package (0x01) { M92D }) Name (P94B, Package (0x01) { M92E }) Name (P94C, Package (0x01) { M92F }) Name (P94D, Package (0x01) { M930 }) Name (P94E, Package (0x01) { M931 }) Name (P94F, Package (0x01) { M932 }) Name (P950, Package (0x01) { M933 }) Name (P951, Package (0x01) { M934 }) Name (P952, Package (0x01) { M935 }) Name (P953, Package (0x02) { 0xABCD1018, 0xABCD1019 }) Name (P954, Package (0x02) { 0xABCD1018, 0xABCD1019 }) /* Check that all the data (local) are not corrupted */ Method (M000, 0, NotSerialized) { /* Computational Data */ /* Integer */ Local0 = ObjectType (I900) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I900 != 0xFE7CB391D65A1000)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I900, 0xFE7CB391D65A1000) } Local0 = ObjectType (I901) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I901 != 0xC1791001)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I901, 0xC1791001) } Local0 = ObjectType (I902) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I902 != 0x00)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I902, 0x00) } Local0 = ObjectType (I903) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I903 != 0xFFFFFFFFFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I903, 0xFFFFFFFFFFFFFFFF) } Local0 = ObjectType (I904) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I904 != 0xFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I904, 0xFFFFFFFF) } /* String */ Local0 = ObjectType (S900) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S900 != "12341002")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S900, "12341002") } Local0 = ObjectType (S901) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S901 != "qwrtyu1003")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S901, "qwrtyu1003") } /* Buffer */ Local0 = ObjectType (B900) If ((Local0 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00B) } If ((B900 != Buffer (0x05) { 0x10, 0x11, 0x12, 0x13, 0x14 // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, B900, Buffer (0x05) { 0x10, 0x11, 0x12, 0x13, 0x14 // ..... }) } /* Buffer Field */ Local0 = ObjectType (BF90) If ((Local0 != C016)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C016) } If (BF90 != Buffer(){0x10}) { ERR (C080, Z077, __LINE__, 0x00, 0x00, BF90, Buffer(){0x10}) } /* One level Package */ Store (P900 [0x00], Local0) Local1 = ObjectType (Local0) If ((Local1 != C008)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, C008) } Store (P901 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD1004)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD1004) } Store (P901 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0x1122334455661005)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0x1122334455661005) } Store (P902 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "12341006")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "12341006") } Store (P902 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "q1w2e3r4t5y6u7i81007")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "q1w2e3r4t5y6u7i81007") } Store (P903 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "qwrtyuiop1008")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "qwrtyuiop1008") } Store (P903 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "1234567890abdef0251009")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "1234567890abdef0251009") } Store (P904 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x03) { 0xA0, 0xA1, 0xA2 // ... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x03) { 0xA0, 0xA1, 0xA2 // ... }) } Store (P904 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x02) { 0xA3, 0xA4 // .. })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x02) { 0xA3, 0xA4 // .. }) } /* Two level Package */ Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C009) } If ((Local3 != 0x0ABC100A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, 0x0ABC100A) } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x01], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "0xabc100b")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "0xabc100b") } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x02], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc100c")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc100c") } Store (P906 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc100d")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc100d") } Store (P907 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "aqwevbgnm100e")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "aqwevbgnm100e") } Store (P908 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00B) } If ((Local3 != Buffer (0x05) { 0xA5, 0xA6, 0xA7, 0xA8, 0xA9 // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, Buffer (0x05) { 0xA5, 0xA6, 0xA7, 0xA8, 0xA9 // ..... }) } /* Three level Package */ Store (P909 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C009) } If ((Local5 != 0x0ABC100F)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, 0x0ABC100F) } Store (P90A [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "12341010")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "12341010") } Store (P90B [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "zxswefas1011")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "zxswefas1011") } Store (P90C [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00B) } If ((Local5 != Buffer (0x03) { 0xAA, 0xAB, 0xAC // ... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, Buffer (0x03) { 0xAA, 0xAB, 0xAC // ... }) } Store (P953 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD1018)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD1018) } Store (P953 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD1019)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD1019) } /* Not Computational Data */ M1AA (C080, E900, C00F, 0x00, 0x013B) M1AA (C080, MX90, C011, 0x00, 0x013C) M1AA (C080, D900, C00E, 0x00, 0x013D) If (Y508) { M1AA (C080, TZ90, C015, 0x00, 0x013E) } M1AA (C080, PR90, C014, 0x00, 0x013F) M1AA (C080, R900, C012, 0x00, 0x0140) M1AA (C080, PW90, C013, 0x00, 0x0141) /* * // Field Unit (Field) * * if (LNotEqual(f900, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, f900, 0xd7) * } * * // Field Unit (IndexField) * * if (LNotEqual(if90, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, if90, 0xd7) * } */ } /* m000 */ /* T2:I2-I4 */ If (Y114) { Store (M902 () [0x00], Local0) M1A0 (Local0, C010, Ones, 0x00) } /* Computational Data */ Store (S900 [0x00], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x31, __LINE__) Store (S901 [0x02], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x72, __LINE__) Store (B900 [0x03], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x13, __LINE__) /* Package */ Store (P953 [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xABCD1018, __LINE__) /* Elements of Package are Uninitialized */ If (Y104) { Store (P900 [0x00], Local0) M1A0 (Local0, C008, Ones, 0x04) } /* Elements of Package are Computational Data */ Store (P901 [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xABCD1004, __LINE__) Store (P901 [0x01], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x1122334455661005, __LINE__) Store (P902 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12341006", __LINE__) Store (P902 [0x01], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i81007", __LINE__) Store (P903 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop1008", __LINE__) Store (P903 [0x01], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "1234567890abdef0251009", __LINE__) Store (P904 [0x00], Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xA0, 0xA1, 0xA2 // ... }, 0x0B) Store (P905 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x0ABC100A, __LINE__) Store (P905 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "0xabc100b", __LINE__) Store (P906 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "abc100d", __LINE__) Store (P907 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "aqwevbgnm100e", __LINE__) Store (P908 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xA5, 0xA6, 0xA7, 0xA8, 0xA9 // ..... }, 0x10) Store (P909 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC100F, __LINE__) Store (P90A [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "12341010", __LINE__) Store (P90B [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "zxswefas1011", __LINE__) Store (P90C [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xAA, 0xAB, 0xAC // ... }, 0x14) Store (P90D [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A1000, __LINE__) Store (P90E [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1791001, __LINE__) Store (P90F [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12341002", __LINE__) Store (P910 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu1003", __LINE__) Store (P911 [0x00], Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0x10, 0x11, 0x12, 0x13, 0x14 // ..... }, 0x19) If (Y118) { Store (P912 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (P913 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (P914 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (P915 [0x00], Local0) M1A2 (Local0, C016, 0x00, 0x00, C016, 0x10, __LINE__) } /* Elements of Package are NOT Computational Data */ Store (P916 [0x00], Local0) M1A0 (Local0, C00E, Ones, 0x1E) Store (P917 [0x00], Local0) M1A0 (Local0, C00F, Ones, 0x1F) Store (P918 [0x00], Local0) M1A0 (Local0, C011, Ones, 0x20) Store (P919 [0x00], Local0) M1A0 (Local0, C012, Ones, 0x21) Store (P91A [0x00], Local0) M1A0 (Local0, C013, Ones, 0x22) Store (P91B [0x00], Local0) M1A0 (Local0, C014, Ones, 0x23) Store (P91C [0x00], Local0) M1A0 (Local0, C015, Ones, 0x24) /* Elements of Package are Methods */ If (Y105) { Store (P91D [0x00], Local0) M1A0 (Local0, C010, Ones, 0x25) Store (P91E [0x00], Local0) M1A0 (Local0, C010, Ones, 0x26) Store (P91F [0x00], Local0) M1A0 (Local0, C010, Ones, 0x27) Store (P920 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x28) Store (P921 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x29) Store (P922 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2A) Store (P923 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2B) Store (P924 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2C) Store (P925 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2D) Store (P926 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2E) Store (P927 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2F) Store (P928 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x30) Store (P929 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x31) Store (P92A [0x00], Local0) M1A0 (Local0, C010, Ones, 0x32) Store (P92B [0x00], Local0) M1A0 (Local0, C010, Ones, 0x33) Store (P92C [0x00], Local0) M1A0 (Local0, C010, Ones, 0x34) Store (P92D [0x00], Local0) M1A0 (Local0, C010, Ones, 0x35) Store (P92E [0x00], Local0) M1A0 (Local0, C010, Ones, 0x36) Store (P92F [0x00], Local0) M1A0 (Local0, C010, Ones, 0x37) Store (P930 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x38) Store (P931 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x39) Store (P932 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3A) Store (P933 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3B) Store (P934 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3C) If (Y103) { Store (P935 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3D) } Store (P936 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3E) Store (P937 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3F) Store (P938 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x40) Store (P939 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x41) Store (P93A [0x00], Local0) M1A0 (Local0, C010, Ones, 0x42) Store (P93B [0x00], Local0) M1A0 (Local0, C010, Ones, 0x43) Store (P93C [0x00], Local0) M1A0 (Local0, C010, Ones, 0x44) Store (P93D [0x00], Local0) M1A0 (Local0, C010, Ones, 0x45) Store (P93E [0x00], Local0) M1A0 (Local0, C010, Ones, 0x46) Store (P93F [0x00], Local0) M1A0 (Local0, C010, Ones, 0x47) Store (P940 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x48) Store (P941 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x49) Store (P942 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4A) Store (P943 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4B) Store (P944 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4C) Store (P945 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4D) Store (P946 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4E) Store (P947 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4F) Store (P948 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x50) Store (P949 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x51) Store (P94A [0x00], Local0) M1A0 (Local0, C010, Ones, 0x52) Store (P94B [0x00], Local0) M1A0 (Local0, C010, Ones, 0x53) Store (P94C [0x00], Local0) M1A0 (Local0, C010, Ones, 0x54) Store (P94D [0x00], Local0) M1A0 (Local0, C010, Ones, 0x55) Store (P94E [0x00], Local0) M1A0 (Local0, C010, Ones, 0x56) Store (P94F [0x00], Local0) M1A0 (Local0, C010, Ones, 0x57) Store (P950 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x58) Store (P951 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x59) Store (P952 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x5A) } /* T2:IR2-IR4 */ /* Computational Data */ Local0 = Local1 = S900 [0x00] M1A2 (Local0, C016, 0x00, 0x00, C009, 0x31, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x31, __LINE__) Local0 = Local1 = S901 [0x02] M1A2 (Local0, C016, 0x00, 0x00, C009, 0x72, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x72, __LINE__) Local0 = Local1 = B900 [0x04] M1A2 (Local0, C016, 0x00, 0x00, C009, 0x14, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x14, __LINE__) /* Elements of Package are Uninitialized */ If (Y104) { Local0 = Local1 = P900 [0x00] M1A0 (Local0, C008, Ones, 0x61) M1A0 (Local1, C008, Ones, 0x62) } /* Elements of Package are Computational Data */ Local0 = Local1 = P901 [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xABCD1004, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xABCD1004, __LINE__) Local0 = Local1 = P901 [0x01] M1A2 (Local0, C009, 0x00, 0x00, C009, 0x1122334455661005, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0x1122334455661005, __LINE__) Local0 = Local1 = P902 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12341006", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12341006", __LINE__) Local0 = Local1 = P902 [0x01] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i81007", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i81007", __LINE__) Local0 = Local1 = P903 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop1008", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyuiop1008", __LINE__) Local0 = Local1 = P903 [0x01] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "1234567890abdef0251009", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "1234567890abdef0251009", __LINE__) Local0 = Local1 = P904 [0x00] M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xA0, 0xA1, 0xA2 // ... }, 0x6F) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xA0, 0xA1, 0xA2 // ... }, 0x70) Local0 = Local1 = P905 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x0ABC100A, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0x0ABC100A, __LINE__) Local0 = Local1 = P905 [0x00] M1A2 (Local0, C00C, 0x01, 0x01, C00A, "0xabc100b", __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C00A, "0xabc100b", __LINE__) Local0 = Local1 = P906 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00A, "abc100d", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "abc100d", __LINE__) Local0 = Local1 = P907 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00A, "aqwevbgnm100e", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "aqwevbgnm100e", __LINE__) Local0 = Local1 = P908 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xA5, 0xA6, 0xA7, 0xA8, 0xA9 // ..... }, 0x79) M1A2 (Local1, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xA5, 0xA6, 0xA7, 0xA8, 0xA9 // ..... }, 0x7A) Local0 = Local1 = P909 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC100F, __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C009, 0x0ABC100F, __LINE__) Local0 = Local1 = P90A [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00A, "12341010", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "12341010", __LINE__) Local0 = Local1 = P90B [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00A, "zxswefas1011", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "zxswefas1011", __LINE__) Local0 = Local1 = P90C [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xAA, 0xAB, 0xAC // ... }, 0x81) M1A2 (Local1, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xAA, 0xAB, 0xAC // ... }, 0x82) Local0 = Local1 = P90D [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A1000, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xFE7CB391D65A1000, __LINE__) Local0 = Local1 = P90E [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1791001, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xC1791001, __LINE__) Local0 = Local1 = P90F [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12341002", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12341002", __LINE__) Local0 = Local1 = P910 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu1003", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyu1003", __LINE__) Local0 = Local1 = P911 [0x00] M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0x10, 0x11, 0x12, 0x13, 0x14 // ..... }, 0x8B) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0x10, 0x11, 0x12, 0x13, 0x14 // ..... }, 0x8C) If (Y118) { Local0 = Local1 = P912 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local0 = Local1 = P913 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local0 = Local1 = P914 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local0 = Local1 = P915 [0x00] M1A2 (Local0, C016, 0x00, 0x00, C016, 0x10, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C016, 0x10, __LINE__) } /* Elements of Package are NOT Computational Data */ Local0 = Local1 = P916 [0x00] M1A0 (Local0, C00E, Ones, 0x95) M1A0 (Local1, C00E, Ones, 0x96) Local0 = Local1 = P917 [0x00] M1A0 (Local0, C00F, Ones, 0x97) M1A0 (Local1, C00F, Ones, 0x98) Local0 = Local1 = P918 [0x00] M1A0 (Local0, C011, Ones, 0x99) M1A0 (Local1, C011, Ones, 0x9A) Local0 = Local1 = P919 [0x00] M1A0 (Local0, C012, Ones, 0x9B) M1A0 (Local1, C012, Ones, 0x9C) Local0 = Local1 = P91A [0x00] M1A0 (Local0, C013, Ones, 0x9D) M1A0 (Local1, C013, Ones, 0x9E) Local0 = Local1 = P91B [0x00] M1A0 (Local0, C014, Ones, 0x9F) M1A0 (Local1, C014, Ones, 0xA0) Local0 = Local1 = P91C [0x00] M1A0 (Local0, C015, Ones, 0xA1) M1A0 (Local1, C015, Ones, 0xA2) /* Elements of Package are Methods */ If (Y105) { Local0 = Local1 = P91D [0x00] M1A0 (Local0, C010, Ones, 0xA3) M1A0 (Local1, C010, Ones, 0xA4) Local0 = Local1 = P91E [0x00] M1A0 (Local0, C010, Ones, 0xA5) M1A0 (Local1, C010, Ones, 0xA6) Local0 = Local1 = P91F [0x00] M1A0 (Local0, C010, Ones, 0xA7) M1A0 (Local1, C010, Ones, 0xA8) Local0 = Local1 = P920 [0x00] M1A0 (Local0, C010, Ones, 0xA9) M1A0 (Local1, C010, Ones, 0xAA) Local0 = Local1 = P921 [0x00] M1A0 (Local0, C010, Ones, 0xAB) M1A0 (Local1, C010, Ones, 0xAC) Local0 = Local1 = P922 [0x00] M1A0 (Local0, C010, Ones, 0xAD) M1A0 (Local1, C010, Ones, 0xAE) Local0 = Local1 = P923 [0x00] M1A0 (Local0, C010, Ones, 0xAF) M1A0 (Local1, C010, Ones, 0xB0) Local0 = Local1 = P924 [0x00] M1A0 (Local0, C010, Ones, 0xB1) M1A0 (Local1, C010, Ones, 0xB2) Local0 = Local1 = P925 [0x00] M1A0 (Local0, C010, Ones, 0xB3) M1A0 (Local1, C010, Ones, 0xB4) Local0 = Local1 = P926 [0x00] M1A0 (Local0, C010, Ones, 0xB5) M1A0 (Local1, C010, Ones, 0xB6) Local0 = Local1 = P927 [0x00] M1A0 (Local0, C010, Ones, 0xB7) M1A0 (Local1, C010, Ones, 0xB8) Local0 = Local1 = P928 [0x00] M1A0 (Local0, C010, Ones, 0xB9) M1A0 (Local1, C010, Ones, 0xBA) Local0 = Local1 = P929 [0x00] M1A0 (Local0, C010, Ones, 0xBB) M1A0 (Local1, C010, Ones, 0xBC) Local0 = Local1 = P92A [0x00] M1A0 (Local0, C010, Ones, 0xBD) M1A0 (Local1, C010, Ones, 0xBE) Local0 = Local1 = P92B [0x00] M1A0 (Local0, C010, Ones, 0xBF) M1A0 (Local1, C010, Ones, 0xC0) Local0 = Local1 = P92C [0x00] M1A0 (Local0, C010, Ones, 0xC1) M1A0 (Local1, C010, Ones, 0xC2) Local0 = Local1 = P92D [0x00] M1A0 (Local0, C010, Ones, 0xC3) M1A0 (Local1, C010, Ones, 0xC4) Local0 = Local1 = P92E [0x00] M1A0 (Local0, C010, Ones, 0xC5) M1A0 (Local1, C010, Ones, 0xC6) Local0 = Local1 = P92F [0x00] M1A0 (Local0, C010, Ones, 0xC7) M1A0 (Local1, C010, Ones, 0xC8) Local0 = Local1 = P930 [0x00] M1A0 (Local0, C010, Ones, 0xC9) M1A0 (Local1, C010, Ones, 0xCA) Local0 = Local1 = P931 [0x00] M1A0 (Local0, C010, Ones, 0xCB) M1A0 (Local1, C010, Ones, 0xCC) Local0 = Local1 = P932 [0x00] M1A0 (Local0, C010, Ones, 0xCD) M1A0 (Local1, C010, Ones, 0xCE) Local0 = Local1 = P933 [0x00] M1A0 (Local0, C010, Ones, 0xCF) M1A0 (Local1, C010, Ones, 0xD0) Local0 = Local1 = P934 [0x00] M1A0 (Local0, C010, Ones, 0xD1) M1A0 (Local1, C010, Ones, 0xD2) If (Y103) { Local0 = Local1 = P935 [0x00] M1A0 (Local0, C010, Ones, 0xD3) M1A0 (Local1, C010, Ones, 0xD4) } Local0 = Local1 = P936 [0x00] M1A0 (Local0, C010, Ones, 0xD5) M1A0 (Local1, C010, Ones, 0xD6) Local0 = Local1 = P937 [0x00] M1A0 (Local0, C010, Ones, 0xD7) M1A0 (Local1, C010, Ones, 0xD8) Local0 = Local1 = P938 [0x00] M1A0 (Local0, C010, Ones, 0xD9) M1A0 (Local1, C010, Ones, 0xDA) Local0 = Local1 = P939 [0x00] M1A0 (Local0, C010, Ones, 0xDB) M1A0 (Local1, C010, Ones, 0xDC) Local0 = Local1 = P93A [0x00] M1A0 (Local0, C010, Ones, 0xDD) M1A0 (Local1, C010, Ones, 0xDE) Local0 = Local1 = P93B [0x00] M1A0 (Local0, C010, Ones, 0xDF) M1A0 (Local1, C010, Ones, 0xE0) Local0 = Local1 = P93C [0x00] M1A0 (Local0, C010, Ones, 0xE1) M1A0 (Local1, C010, Ones, 0xE2) Local0 = Local1 = P93D [0x00] M1A0 (Local0, C010, Ones, 0xE3) M1A0 (Local1, C010, Ones, 0xE4) Local0 = Local1 = P93E [0x00] M1A0 (Local0, C010, Ones, 0xE5) M1A0 (Local1, C010, Ones, 0xE6) Local0 = Local1 = P93F [0x00] M1A0 (Local0, C010, Ones, 0xE7) M1A0 (Local1, C010, Ones, 0xE8) Local0 = Local1 = P940 [0x00] M1A0 (Local0, C010, Ones, 0xE9) M1A0 (Local1, C010, Ones, 0xEA) Local0 = Local1 = P941 [0x00] M1A0 (Local0, C010, Ones, 0xEB) M1A0 (Local1, C010, Ones, 0xEC) Local0 = Local1 = P942 [0x00] M1A0 (Local0, C010, Ones, 0xED) M1A0 (Local1, C010, Ones, 0xEE) Local0 = Local1 = P943 [0x00] M1A0 (Local0, C010, Ones, 0xEF) M1A0 (Local1, C010, Ones, 0xF0) Local0 = Local1 = P944 [0x00] M1A0 (Local0, C010, Ones, 0xF1) M1A0 (Local1, C010, Ones, 0xF2) Local0 = Local1 = P945 [0x00] M1A0 (Local0, C010, Ones, 0xF3) M1A0 (Local1, C010, Ones, 0xF4) Local0 = Local1 = P946 [0x00] M1A0 (Local0, C010, Ones, 0xF5) M1A0 (Local1, C010, Ones, 0xF6) Local0 = Local1 = P947 [0x00] M1A0 (Local0, C010, Ones, 0xF7) M1A0 (Local1, C010, Ones, 0xF8) Local0 = Local1 = P948 [0x00] M1A0 (Local0, C010, Ones, 0xF9) M1A0 (Local1, C010, Ones, 0xFA) Local0 = Local1 = P949 [0x00] M1A0 (Local0, C010, Ones, 0xFB) M1A0 (Local1, C010, Ones, 0xFC) Local0 = Local1 = P94A [0x00] M1A0 (Local0, C010, Ones, 0xFD) M1A0 (Local1, C010, Ones, 0xFE) Local0 = Local1 = P94B [0x00] M1A0 (Local0, C010, Ones, 0xFF) M1A0 (Local1, C010, Ones, 0x0100) Local0 = Local1 = P94C [0x00] M1A0 (Local0, C010, Ones, 0x0101) M1A0 (Local1, C010, Ones, 0x0102) Local0 = Local1 = P94D [0x00] M1A0 (Local0, C010, Ones, 0x0103) M1A0 (Local1, C010, Ones, 0x0104) Local0 = Local1 = P94E [0x00] M1A0 (Local0, C010, Ones, 0x0105) M1A0 (Local1, C010, Ones, 0x0106) Local0 = Local1 = P94F [0x00] M1A0 (Local0, C010, Ones, 0x0107) M1A0 (Local1, C010, Ones, 0x0108) Local0 = Local1 = P950 [0x00] M1A0 (Local0, C010, Ones, 0x0109) M1A0 (Local1, C010, Ones, 0x010A) Local0 = Local1 = P951 [0x00] M1A0 (Local0, C010, Ones, 0x010B) M1A0 (Local1, C010, Ones, 0x010C) Local0 = Local1 = P952 [0x00] M1A0 (Local0, C010, Ones, 0x010D) M1A0 (Local1, C010, Ones, 0x010E) } M000 () M1A6 () } /* arg0 - writing mode */ Method (M16A, 1, Serialized) { If (Y100) { TS00 ("m16a") } Else { Debug = "m16a" } /* Not Computational Data */ Event (E900) Event (E9Z0) Mutex (MX90, 0x00) Mutex (MX91, 0x00) Device (D900) { Name (I900, 0xABCD2017) } Device (D9Z0) { Name (I900, 0xABCD2017) } ThermalZone (TZ90) { } ThermalZone (TZ91) { } Processor (PR90, 0x00, 0xFFFFFFFF, 0x00){} Processor (PR91, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (R900, SystemMemory, 0x0100, 0x0100) OperationRegion (R9Z0, SystemMemory, 0x0100, 0x0100) PowerResource (PW90, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } PowerResource (PW91, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } /* Computational Data */ Name (I900, 0xFE7CB391D65A2000) Name (I9Z0, 0xFE7CB391D65A2000) Name (I901, 0xC1792001) Name (I9Z1, 0xC1792001) Name (I902, 0x00) Name (I903, 0xFFFFFFFFFFFFFFFF) Name (I904, 0xFFFFFFFF) Name (S900, "12342002") Name (S9Z0, "12342002") Name (S901, "qwrtyu2003") Name (S9Z1, "qwrtyu2003") Name (B900, Buffer (0x05) { 0xC0, 0xC1, 0xC2, 0xC3, 0xC4 // ..... }) Name (B9Z0, Buffer (0x05) { 0xC0, 0xC1, 0xC2, 0xC3, 0xC4 // ..... }) CreateField (B9Z0, 0x00, 0x08, BF90) Field (R9Z0, ByteAcc, NoLock, Preserve) { F900, 8, F901, 8, F902, 8, F903, 8 } BankField (R9Z0, F901, 0x00, ByteAcc, NoLock, Preserve) { BN90, 4 } IndexField (F902, F903, ByteAcc, NoLock, Preserve) { IF90, 8, IF91, 8 } /* Elements of Package are Uninitialized */ Name (P900, Package (0x01){}) /* Elements of Package are Computational Data */ Name (P901, Package (0x02) { 0xABCD2004, 0x1122334455662005 }) Name (P902, Package (0x02) { "12342006", "q1w2e3r4t5y6u7i82007" }) Name (P903, Package (0x02) { "qwrtyuiop2008", "1234567890abdef0252009" }) Name (P904, Package (0x02) { Buffer (0x03) { 0xC5, 0xC6, 0xC7 // ... }, Buffer (0x02) { 0xC8, 0xC9 // .. } }) Name (P905, Package (0x01) { Package (0x03) { 0x0ABC200A, "0xabc200b", "abc200c" } }) Name (P906, Package (0x01) { Package (0x01) { "abc200d" } }) Name (P907, Package (0x01) { Package (0x01) { "aqwevbgnm200e" } }) Name (P908, Package (0x01) { Package (0x01) { Buffer (0x05) { 0xCA, 0xCB, 0xCC, 0xCD, 0xCE // ..... } } }) Name (P909, Package (0x01) { Package (0x01) { Package (0x01) { 0x0ABC200F } } }) Name (P90A, Package (0x01) { Package (0x01) { Package (0x01) { "12342010" } } }) Name (P90B, Package (0x01) { Package (0x01) { Package (0x01) { "zxswefas2011" } } }) Name (P90C, Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x03) { 0xCF, 0xD0, 0xD1 // ... } } } }) Name (P90D, Package (0x01) { I900 }) Name (P90E, Package (0x01) { I901 }) Name (P90F, Package (0x01) { S900 }) Name (P910, Package (0x01) { S901 }) Name (P911, Package (0x01) { B9Z0 }) Name (P912, Package (0x01) { F900 }) Name (P913, Package (0x01) { BN90 }) Name (P914, Package (0x01) { IF90 }) Name (P915, Package (0x01) { BF90 }) /* Elements of Package are NOT Computational Data */ Name (P916, Package (0x01) { D900 }) Name (P917, Package (0x01) { E900 }) Name (P918, Package (0x01) { MX90 }) Name (P919, Package (0x01) { R9Z0 }) Name (P91A, Package (0x01) { PW90 }) Name (P91B, Package (0x01) { PR90 }) Name (P91C, Package (0x01) { TZ90 }) /* Methods */ Method (M900, 0, NotSerialized) { } Method (M901, 0, NotSerialized) { Return (0x0ABC2012) } Method (M902, 0, NotSerialized) { Return ("zxvgswquiy2013") } Method (M903, 0, NotSerialized) { Return (Buffer (0x01) { 0xD2 // . }) } Method (M904, 0, NotSerialized) { Return (Package (0x01) { 0x0ABC2014 }) } Method (M905, 0, NotSerialized) { Return (Package (0x01) { "lkjhgtre2015" }) } Method (M906, 0, NotSerialized) { Return (Package (0x01) { Buffer (0x01) { 0xD3 // . } }) } Method (M907, 0, NotSerialized) { Return (Package (0x01) { Package (0x01) { 0x0ABC2016 } }) } Method (M908, 0, NotSerialized) { Return (I900) /* \M16A.I900 */ } Method (M909, 0, NotSerialized) { Return (I901) /* \M16A.I901 */ } Method (M90A, 0, NotSerialized) { Return (S900) /* \M16A.S900 */ } Method (M90B, 0, NotSerialized) { Return (S901) /* \M16A.S901 */ } Method (M90C, 0, NotSerialized) { Return (B9Z0) /* \M16A.B9Z0 */ } Method (M90D, 0, NotSerialized) { Return (F900) /* \M16A.F900 */ } Method (M90E, 0, NotSerialized) { Return (BN90) /* \M16A.BN90 */ } Method (M90F, 0, NotSerialized) { Return (IF90) /* \M16A.IF90 */ } Method (M910, 0, NotSerialized) { Return (BF90) /* \M16A.BF90 */ } Method (M911, 0, NotSerialized) { Return (D900) /* \M16A.D900 */ } Method (M912, 0, NotSerialized) { Return (E900) /* \M16A.E900 */ } Method (M913, 0, NotSerialized) { Return (M901 ()) } Method (M914, 0, NotSerialized) { Return (MX90) /* \M16A.MX90 */ } Method (M915, 0, NotSerialized) { Return (R9Z0) /* \M16A.R9Z0 */ } Method (M916, 0, NotSerialized) { Return (PW90) /* \M16A.PW90 */ } Method (M917, 0, NotSerialized) { Return (PR90) /* \M16A.PR90 */ } Method (M918, 0, NotSerialized) { Return (TZ90) /* \M16A.TZ90 */ } Method (M919, 0, NotSerialized) { Return (P900) /* \M16A.P900 */ } Method (M91A, 0, NotSerialized) { Return (P901) /* \M16A.P901 */ } Method (M91B, 0, NotSerialized) { Return (P902) /* \M16A.P902 */ } Method (M91C, 0, NotSerialized) { Return (P903) /* \M16A.P903 */ } Method (M91D, 0, NotSerialized) { Return (P904) /* \M16A.P904 */ } Method (M91E, 0, NotSerialized) { Return (P905) /* \M16A.P905 */ } Method (M91F, 0, NotSerialized) { Return (P906) /* \M16A.P906 */ } Method (M920, 0, NotSerialized) { Return (P907) /* \M16A.P907 */ } Method (M921, 0, NotSerialized) { Return (P908) /* \M16A.P908 */ } Method (M922, 0, NotSerialized) { Return (P909) /* \M16A.P909 */ } Method (M923, 0, NotSerialized) { Return (P90A) /* \M16A.P90A */ } Method (M924, 0, NotSerialized) { Return (P90B) /* \M16A.P90B */ } Method (M925, 0, NotSerialized) { Return (P90C) /* \M16A.P90C */ } Method (M926, 0, NotSerialized) { Return (P90D) /* \M16A.P90D */ } Method (M927, 0, NotSerialized) { Return (P90E) /* \M16A.P90E */ } Method (M928, 0, NotSerialized) { Return (P90F) /* \M16A.P90F */ } Method (M929, 0, NotSerialized) { Return (P910) /* \M16A.P910 */ } Method (M92A, 0, NotSerialized) { Return (P911) /* \M16A.P911 */ } Method (M92B, 0, NotSerialized) { Return (P912) /* \M16A.P912 */ } Method (M92C, 0, NotSerialized) { Return (P913) /* \M16A.P913 */ } Method (M92D, 0, NotSerialized) { Return (P914) /* \M16A.P914 */ } Method (M92E, 0, NotSerialized) { Return (P915) /* \M16A.P915 */ } Method (M92F, 0, NotSerialized) { Return (P916) /* \M16A.P916 */ } Method (M930, 0, NotSerialized) { Return (P917) /* \M16A.P917 */ } Method (M931, 0, NotSerialized) { Return (P918) /* \M16A.P918 */ } Method (M932, 0, NotSerialized) { Return (P919) /* \M16A.P919 */ } Method (M933, 0, NotSerialized) { Return (P91A) /* \M16A.P91A */ } Method (M934, 0, NotSerialized) { Return (P91B) /* \M16A.P91B */ } Method (M935, 0, NotSerialized) { Return (P91C) /* \M16A.P91C */ } /* Elements of Package are Methods */ Name (P91D, Package (0x01) { M900 }) Name (P91E, Package (0x01) { M901 }) Name (P91F, Package (0x01) { M902 }) Name (P920, Package (0x01) { M903 }) Name (P921, Package (0x01) { M904 }) Name (P922, Package (0x01) { M905 }) Name (P923, Package (0x01) { M906 }) Name (P924, Package (0x01) { M907 }) Name (P925, Package (0x01) { M908 }) Name (P926, Package (0x01) { M909 }) Name (P927, Package (0x01) { M90A }) Name (P928, Package (0x01) { M90B }) Name (P929, Package (0x01) { M90C }) Name (P92A, Package (0x01) { M90D }) Name (P92B, Package (0x01) { M90E }) Name (P92C, Package (0x01) { M90F }) Name (P92D, Package (0x01) { M910 }) Name (P92E, Package (0x01) { M911 }) Name (P92F, Package (0x01) { M912 }) Name (P930, Package (0x01) { M913 }) Name (P931, Package (0x01) { M914 }) Name (P932, Package (0x01) { M915 }) Name (P933, Package (0x01) { M916 }) Name (P934, Package (0x01) { M917 }) If (Y103) { Name (P935, Package (0x01) { M918 }) } Name (P936, Package (0x01) { M919 }) Name (P937, Package (0x01) { M91A }) Name (P938, Package (0x01) { M91B }) Name (P939, Package (0x01) { M91C }) Name (P93A, Package (0x01) { M91D }) Name (P93B, Package (0x01) { M91E }) Name (P93C, Package (0x01) { M91F }) Name (P93D, Package (0x01) { M920 }) Name (P93E, Package (0x01) { M921 }) Name (P93F, Package (0x01) { M922 }) Name (P940, Package (0x01) { M923 }) Name (P941, Package (0x01) { M924 }) Name (P942, Package (0x01) { M925 }) Name (P943, Package (0x01) { M926 }) Name (P944, Package (0x01) { M927 }) Name (P945, Package (0x01) { M928 }) Name (P946, Package (0x01) { M929 }) Name (P947, Package (0x01) { M92A }) Name (P948, Package (0x01) { M92B }) Name (P949, Package (0x01) { M92C }) Name (P94A, Package (0x01) { M92D }) Name (P94B, Package (0x01) { M92E }) Name (P94C, Package (0x01) { M92F }) Name (P94D, Package (0x01) { M930 }) Name (P94E, Package (0x01) { M931 }) Name (P94F, Package (0x01) { M932 }) Name (P950, Package (0x01) { M933 }) Name (P951, Package (0x01) { M934 }) Name (P952, Package (0x01) { M935 }) Name (P953, Package (0x02) { 0xABCD2018, 0xABCD2019 }) Name (P954, Package (0x02) { 0xABCD2018, 0xABCD2019 }) /* Check that all the data (local) are not corrupted */ Method (M000, 0, NotSerialized) { /* Computational Data */ /* Integer */ Local0 = ObjectType (I900) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I900 != 0xFE7CB391D65A2000)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I900, 0xFE7CB391D65A2000) } Local0 = ObjectType (I901) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I901 != 0xC1792001)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I901, 0xC1792001) } Local0 = ObjectType (I902) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I902 != 0x00)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I902, 0x00) } Local0 = ObjectType (I903) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I903 != 0xFFFFFFFFFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I903, 0xFFFFFFFFFFFFFFFF) } Local0 = ObjectType (I904) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I904 != 0xFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I904, 0xFFFFFFFF) } /* String */ Local0 = ObjectType (S900) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S900 != "12342002")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S900, "12342002") } Local0 = ObjectType (S901) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S901 != "qwrtyu2003")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S901, "qwrtyu2003") } /* Buffer */ Local0 = ObjectType (B900) If ((Local0 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00B) } If ((B900 != Buffer (0x05) { 0xC0, 0xC1, 0xC2, 0xC3, 0xC4 // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, B900, Buffer (0x05) { 0xC0, 0xC1, 0xC2, 0xC3, 0xC4 // ..... }) } /* Buffer Field */ Local0 = ObjectType (BF90) If ((Local0 != C016)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C016) } If ((BF90 != Buffer(){0xC0})) { ERR (C080, Z077, __LINE__, 0x00, 0x00, BF90, Buffer() {0xC0}) } /* One level Package */ Store (P900 [0x00], Local0) Local1 = ObjectType (Local0) If ((Local1 != C008)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, C008) } Store (P901 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD2004)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD2004) } Store (P901 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0x1122334455662005)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0x1122334455662005) } Store (P902 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "12342006")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "12342006") } Store (P902 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "q1w2e3r4t5y6u7i82007")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "q1w2e3r4t5y6u7i82007") } Store (P903 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "qwrtyuiop2008")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "qwrtyuiop2008") } Store (P903 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "1234567890abdef0252009")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "1234567890abdef0252009") } Store (P904 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x03) { 0xC5, 0xC6, 0xC7 // ... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x03) { 0xC5, 0xC6, 0xC7 // ... }) } Store (P904 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x02) { 0xC8, 0xC9 // .. })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x02) { 0xC8, 0xC9 // .. }) } /* Two level Package */ Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C009) } If ((Local3 != 0x0ABC200A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, 0x0ABC200A) } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x01], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "0xabc200b")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "0xabc200b") } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x02], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc200c")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc200c") } Store (P906 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc200d")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc200d") } Store (P907 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "aqwevbgnm200e")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "aqwevbgnm200e") } Store (P908 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00B) } If ((Local3 != Buffer (0x05) { 0xCA, 0xCB, 0xCC, 0xCD, 0xCE // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, Buffer (0x05) { 0xCA, 0xCB, 0xCC, 0xCD, 0xCE // ..... }) } /* Three level Package */ Store (P909 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C009) } If ((Local5 != 0x0ABC200F)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, 0x0ABC200F) } Store (P90A [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "12342010")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "12342010") } Store (P90B [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "zxswefas2011")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "zxswefas2011") } Store (P90C [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00B) } If ((Local5 != Buffer (0x03) { 0xCF, 0xD0, 0xD1 // ... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, Buffer (0x03) { 0xCF, 0xD0, 0xD1 // ... }) } Store (P953 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD2018)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD2018) } Store (P953 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD2019)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD2019) } /* Not Computational Data */ M1AA (C080, E900, C00F, 0x00, 0x013B) M1AA (C080, MX90, C011, 0x00, 0x013C) M1AA (C080, D900, C00E, 0x00, 0x013D) If (Y508) { M1AA (C080, TZ90, C015, 0x00, 0x013E) } M1AA (C080, PR90, C014, 0x00, 0x013F) M1AA (C080, R900, C012, 0x00, 0x0140) M1AA (C080, PW90, C013, 0x00, 0x0141) /* * // Field Unit (Field) * * if (LNotEqual(f900, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, f900, 0xd7) * } * * // Field Unit (IndexField) * * if (LNotEqual(if90, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, if90, 0xd7) * } */ } /* m000 */ /* Check and restore the global data after writing into them */ Method (M001, 0, NotSerialized) { /* Computational Data */ M1AA (C080, I900, C009, C08A, 0x0144) CopyObject (I9Z0, I900) /* \M16A.I900 */ M1AA (C080, I901, C009, C08A, 0x0145) CopyObject (I9Z1, I901) /* \M16A.I901 */ M1AA (C080, S900, C009, C08A, 0x0146) CopyObject (S9Z0, S900) /* \M16A.S900 */ M1AA (C080, S901, C009, C08A, 0x0147) CopyObject (S9Z1, S901) /* \M16A.S901 */ M1AA (C080, B900, C009, C08A, 0x0148) CopyObject (B9Z0, B900) /* \M16A.B900 */ /* Package */ M1AA (C080, P953, C009, C08A, 0x0149) CopyObject (P954, P953) /* \M16A.P953 */ /* Not Computational Data */ M1AA (C080, E900, C009, C08A, 0x014A) CopyObject (E9Z0, E900) /* \M16A.E900 */ M1AA (C080, MX90, C009, C08A, 0x014B) CopyObject (MX91, MX90) /* \M16A.MX90 */ M1AA (C080, D900, C009, C08A, 0x014C) CopyObject (D9Z0, D900) /* \M16A.D900 */ If (Y508) { M1AA (C080, TZ90, C009, C08A, 0x014D) CopyObject (TZ91, TZ90) /* \M16A.TZ90 */ } M1AA (C080, PR90, C009, C08A, 0x014E) CopyObject (PR91, PR90) /* \M16A.PR90 */ If (Y510) { M1AA (C080, R900, C009, C08A, 0x014F) CopyObject (R9Z0, R900) /* \M16A.R900 */ } M1AA (C080, PW90, C009, C08A, 0x0150) CopyObject (PW91, PW90) /* \M16A.PW90 */ M000 () } /* m001 */ /* T2:R1-R14 */ /* Computational Data */ Local0 = RefOf (I900) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A2000, __LINE__) Local0 = RefOf (I901) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1792001, __LINE__) Local0 = RefOf (S900) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12342002", __LINE__) Local0 = RefOf (S901) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu2003", __LINE__) Local0 = RefOf (B900) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xC0, 0xC1, 0xC2, 0xC3, 0xC4 // ..... }, 0x0113) /* Not Computational Data */ Local0 = RefOf (E900) M1A0 (Local0, C00F, Ones, 0x0118) Local0 = RefOf (MX90) M1A0 (Local0, C011, Ones, 0x0119) Local0 = RefOf (D900) M1A0 (Local0, C00E, Ones, 0x011A) If (Arg0) { If (Y508) { Local0 = RefOf (TZ90) M1A0 (Local0, C015, Ones, 0x011B) } } Else { Local0 = RefOf (TZ90) M1A0 (Local0, C015, Ones, 0x011B) } Local0 = RefOf (PR90) M1A0 (Local0, C014, Ones, 0x011C) If (Arg0) { If (Y510) { Local0 = RefOf (R900) M1A0 (Local0, C012, Ones, 0x011D) } } Else { Local0 = RefOf (R900) M1A0 (Local0, C012, Ones, 0x03EA) } Local0 = RefOf (PW90) M1A0 (Local0, C013, Ones, 0x011E) /* Package */ Local0 = RefOf (P953) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD2018, __LINE__) If (Arg0) { M001 () Return (Zero) } /* Computational Data (Field Unit and Buffer Field) */ Local0 = RefOf (F900) M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) Local0 = RefOf (BN90) M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) Local0 = RefOf (IF90) M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) Local0 = RefOf (BF90) M1A2 (Local0, C016, 0x00, 0x00, C00B, Buffer(){0xC0}, __LINE__) /* Elements of Package are Uninitialized */ Local0 = RefOf (P900) M1A0 (Local0, C00C, Ones, 0x011F) /* Elements of Package are Computational Data */ Local0 = RefOf (P901) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD2004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455662005, __LINE__) Local0 = RefOf (P902) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12342006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i82007", __LINE__) Local0 = RefOf (P903) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop2008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0252009", __LINE__) Local0 = RefOf (P904) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xC5, 0xC6, 0xC7 // ... }, 0x0126) Local0 = RefOf (P905) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC200A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc200b", __LINE__) Local0 = RefOf (P906) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc200d", __LINE__) Local0 = RefOf (P907) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm200e", __LINE__) Local0 = RefOf (P908) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xCA, 0xCB, 0xCC, 0xCD, 0xCE // ..... }, 0x012B) Local0 = RefOf (P909) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC200F, __LINE__) Local0 = RefOf (P90A) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12342010", __LINE__) Local0 = RefOf (P90B) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas2011", __LINE__) Local0 = RefOf (P90C) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xCF, 0xD0, 0xD1 // ... }, 0x012F) Local0 = RefOf (P90D) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A2000, __LINE__) Local0 = RefOf (P90E) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1792001, __LINE__) Local0 = RefOf (P90F) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12342002", __LINE__) Local0 = RefOf (P910) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu2003", __LINE__) Local0 = RefOf (P911) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xC0, 0xC1, 0xC2, 0xC3, 0xC4 // ..... }, 0x0134) If (Y118) { Local0 = RefOf (P912) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = RefOf (P913) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = RefOf (P914) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = RefOf (P915) M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xC0, __LINE__) } /* Elements of Package are NOT Computational Data */ Local0 = RefOf (P916) M1A0 (Local0, C00C, Ones, 0x0139) Local0 = RefOf (P917) M1A0 (Local0, C00C, Ones, 0x013A) Local0 = RefOf (P918) M1A0 (Local0, C00C, Ones, 0x013B) Local0 = RefOf (P919) M1A0 (Local0, C00C, Ones, 0x013C) Local0 = RefOf (P91A) M1A0 (Local0, C00C, Ones, 0x013D) Local0 = RefOf (P91B) M1A0 (Local0, C00C, Ones, 0x013E) Local0 = RefOf (P91C) M1A0 (Local0, C00C, Ones, 0x013F) /* Elements of Package are Methods */ Local0 = RefOf (P91D) M1A0 (Local0, C00C, Ones, 0x0140) Local0 = RefOf (P91E) M1A0 (Local0, C00C, Ones, 0x0141) Local0 = RefOf (P91F) M1A0 (Local0, C00C, Ones, 0x0142) Local0 = RefOf (P920) M1A0 (Local0, C00C, Ones, 0x0143) Local0 = RefOf (P921) M1A0 (Local0, C00C, Ones, 0x0144) Local0 = RefOf (P922) M1A0 (Local0, C00C, Ones, 0x0145) Local0 = RefOf (P923) M1A0 (Local0, C00C, Ones, 0x0146) Local0 = RefOf (P924) M1A0 (Local0, C00C, Ones, 0x0147) Local0 = RefOf (P925) M1A0 (Local0, C00C, Ones, 0x0148) Local0 = RefOf (P926) M1A0 (Local0, C00C, Ones, 0x0149) Local0 = RefOf (P927) M1A0 (Local0, C00C, Ones, 0x014A) Local0 = RefOf (P928) M1A0 (Local0, C00C, Ones, 0x014B) Local0 = RefOf (P929) M1A0 (Local0, C00C, Ones, 0x014C) Local0 = RefOf (P92A) M1A0 (Local0, C00C, Ones, 0x014D) Local0 = RefOf (P92B) M1A0 (Local0, C00C, Ones, 0x014E) Local0 = RefOf (P92C) M1A0 (Local0, C00C, Ones, 0x014F) Local0 = RefOf (P92D) M1A0 (Local0, C00C, Ones, 0x0150) Local0 = RefOf (P92E) M1A0 (Local0, C00C, Ones, 0x0151) Local0 = RefOf (P92F) M1A0 (Local0, C00C, Ones, 0x0152) Local0 = RefOf (P930) M1A0 (Local0, C00C, Ones, 0x0153) Local0 = RefOf (P931) M1A0 (Local0, C00C, Ones, 0x0154) Local0 = RefOf (P932) M1A0 (Local0, C00C, Ones, 0x0155) Local0 = RefOf (P933) M1A0 (Local0, C00C, Ones, 0x0156) Local0 = RefOf (P934) M1A0 (Local0, C00C, Ones, 0x0157) Local0 = RefOf (P935) M1A0 (Local0, C00C, Ones, 0x0158) Local0 = RefOf (P936) M1A0 (Local0, C00C, Ones, 0x0159) Local0 = RefOf (P937) M1A0 (Local0, C00C, Ones, 0x015A) Local0 = RefOf (P938) M1A0 (Local0, C00C, Ones, 0x015B) Local0 = RefOf (P939) M1A0 (Local0, C00C, Ones, 0x015C) Local0 = RefOf (P93A) M1A0 (Local0, C00C, Ones, 0x015D) Local0 = RefOf (P93B) M1A0 (Local0, C00C, Ones, 0x015E) Local0 = RefOf (P93C) M1A0 (Local0, C00C, Ones, 0x015F) Local0 = RefOf (P93D) M1A0 (Local0, C00C, Ones, 0x0160) Local0 = RefOf (P93E) M1A0 (Local0, C00C, Ones, 0x0161) Local0 = RefOf (P93F) M1A0 (Local0, C00C, Ones, 0x0162) Local0 = RefOf (P940) M1A0 (Local0, C00C, Ones, 0x0163) Local0 = RefOf (P941) M1A0 (Local0, C00C, Ones, 0x0164) Local0 = RefOf (P942) M1A0 (Local0, C00C, Ones, 0x0165) Local0 = RefOf (P943) M1A0 (Local0, C00C, Ones, 0x0166) Local0 = RefOf (P944) M1A0 (Local0, C00C, Ones, 0x0167) Local0 = RefOf (P945) M1A0 (Local0, C00C, Ones, 0x0168) Local0 = RefOf (P946) M1A0 (Local0, C00C, Ones, 0x0169) Local0 = RefOf (P947) M1A0 (Local0, C00C, Ones, 0x016A) Local0 = RefOf (P948) M1A0 (Local0, C00C, Ones, 0x016B) Local0 = RefOf (P949) M1A0 (Local0, C00C, Ones, 0x016C) Local0 = RefOf (P94A) M1A0 (Local0, C00C, Ones, 0x016D) Local0 = RefOf (P94B) M1A0 (Local0, C00C, Ones, 0x016E) Local0 = RefOf (P94C) M1A0 (Local0, C00C, Ones, 0x016F) Local0 = RefOf (P94D) M1A0 (Local0, C00C, Ones, 0x0170) Local0 = RefOf (P94E) M1A0 (Local0, C00C, Ones, 0x0171) Local0 = RefOf (P94F) M1A0 (Local0, C00C, Ones, 0x0172) Local0 = RefOf (P950) M1A0 (Local0, C00C, Ones, 0x0173) Local0 = RefOf (P951) M1A0 (Local0, C00C, Ones, 0x0174) Local0 = RefOf (P952) M1A0 (Local0, C00C, Ones, 0x0175) /* Methods */ Local0 = RefOf (M900) M1A0 (Local0, C010, Ones, 0x0176) Local0 = RefOf (M901) M1A0 (Local0, C010, Ones, 0x0177) Local0 = RefOf (M902) M1A0 (Local0, C010, Ones, 0x0178) Local0 = RefOf (M903) M1A0 (Local0, C010, Ones, 0x0179) Local0 = RefOf (M904) M1A0 (Local0, C010, Ones, 0x017A) Local0 = RefOf (M905) M1A0 (Local0, C010, Ones, 0x017B) Local0 = RefOf (M906) M1A0 (Local0, C010, Ones, 0x017C) Local0 = RefOf (M907) M1A0 (Local0, C010, Ones, 0x017D) Local0 = RefOf (M908) M1A0 (Local0, C010, Ones, 0x017E) Local0 = RefOf (M909) M1A0 (Local0, C010, Ones, 0x017F) Local0 = RefOf (M90A) M1A0 (Local0, C010, Ones, 0x0180) Local0 = RefOf (M90B) M1A0 (Local0, C010, Ones, 0x0181) Local0 = RefOf (M90C) M1A0 (Local0, C010, Ones, 0x0182) Local0 = RefOf (M90D) M1A0 (Local0, C010, Ones, 0x0183) Local0 = RefOf (M90E) M1A0 (Local0, C010, Ones, 0x0184) Local0 = RefOf (M90F) M1A0 (Local0, C010, Ones, 0x0185) Local0 = RefOf (M910) M1A0 (Local0, C010, Ones, 0x0186) Local0 = RefOf (M911) M1A0 (Local0, C010, Ones, 0x0187) Local0 = RefOf (M912) M1A0 (Local0, C010, Ones, 0x0188) Local0 = RefOf (M913) M1A0 (Local0, C010, Ones, 0x0189) Local0 = RefOf (M914) M1A0 (Local0, C010, Ones, 0x018A) Local0 = RefOf (M915) M1A0 (Local0, C010, Ones, 0x018B) Local0 = RefOf (M916) M1A0 (Local0, C010, Ones, 0x018C) Local0 = RefOf (M917) M1A0 (Local0, C010, Ones, 0x018D) Local0 = RefOf (M918) M1A0 (Local0, C010, Ones, 0x018E) Local0 = RefOf (M919) M1A0 (Local0, C010, Ones, 0x018F) Local0 = RefOf (M91A) M1A0 (Local0, C010, Ones, 0x0190) Local0 = RefOf (M91B) M1A0 (Local0, C010, Ones, 0x0191) Local0 = RefOf (M91C) M1A0 (Local0, C010, Ones, 0x0192) Local0 = RefOf (M91D) M1A0 (Local0, C010, Ones, 0x0193) Local0 = RefOf (M91E) M1A0 (Local0, C010, Ones, 0x0194) Local0 = RefOf (M91F) M1A0 (Local0, C010, Ones, 0x0195) Local0 = RefOf (M920) M1A0 (Local0, C010, Ones, 0x0196) Local0 = RefOf (M921) M1A0 (Local0, C010, Ones, 0x0197) Local0 = RefOf (M922) M1A0 (Local0, C010, Ones, 0x0198) Local0 = RefOf (M923) M1A0 (Local0, C010, Ones, 0x0199) Local0 = RefOf (M924) M1A0 (Local0, C010, Ones, 0x019A) Local0 = RefOf (M925) M1A0 (Local0, C010, Ones, 0x019B) Local0 = RefOf (M926) M1A0 (Local0, C010, Ones, 0x019C) Local0 = RefOf (M927) M1A0 (Local0, C010, Ones, 0x019D) Local0 = RefOf (M928) M1A0 (Local0, C010, Ones, 0x019E) Local0 = RefOf (M929) M1A0 (Local0, C010, Ones, 0x019F) Local0 = RefOf (M92A) M1A0 (Local0, C010, Ones, 0x01A0) Local0 = RefOf (M92B) M1A0 (Local0, C010, Ones, 0x01A1) Local0 = RefOf (M92C) M1A0 (Local0, C010, Ones, 0x01A2) Local0 = RefOf (M92D) M1A0 (Local0, C010, Ones, 0x01A3) Local0 = RefOf (M92E) M1A0 (Local0, C010, Ones, 0x01A4) Local0 = RefOf (M92F) M1A0 (Local0, C010, Ones, 0x01A5) Local0 = RefOf (M930) M1A0 (Local0, C010, Ones, 0x01A6) Local0 = RefOf (M931) M1A0 (Local0, C010, Ones, 0x01A7) Local0 = RefOf (M932) M1A0 (Local0, C010, Ones, 0x01A8) Local0 = RefOf (M933) M1A0 (Local0, C010, Ones, 0x01A9) Local0 = RefOf (M934) M1A0 (Local0, C010, Ones, 0x01AA) Local0 = RefOf (M935) M1A0 (Local0, C010, Ones, 0x01AB) M000 () M1A6 () Return (Zero) } Method (M16B, 0, Serialized) { If (Y100) { TS00 ("m16b") } Else { Debug = "m16b" } /* Not Computational Data */ Event (E900) Mutex (MX90, 0x00) Device (D900) { } ThermalZone (TZ90) { } Processor (PR90, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (R900, SystemMemory, 0x0100, 0x0100) OperationRegion (R9Z0, SystemMemory, 0x0100, 0x0100) PowerResource (PW90, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } /* Computational Data */ Name (I900, 0xFE7CB391D65A3000) Name (I901, 0x21793001) Name (I902, 0x00) Name (I903, 0xFFFFFFFFFFFFFFFF) Name (I904, 0xFFFFFFFF) Name (S900, "12343002") Name (S901, "qwrtyu3003") Name (B900, Buffer (0x05) { 0xD0, 0xD1, 0xD2, 0xD3, 0xD4 // ..... }) Name (B9Z0, Buffer (0x05) { 0xD0, 0xD1, 0xD2, 0xD3, 0xD4 // ..... }) CreateField (B900, 0x00, 0x08, BF90) Field (R900, ByteAcc, NoLock, Preserve) { F900, 8, F901, 8, F902, 8, F903, 8 } BankField (R900, F901, 0x00, ByteAcc, NoLock, Preserve) { BN90, 4 } IndexField (F902, F903, ByteAcc, NoLock, Preserve) { IF90, 8, IF91, 8 } /* Elements of Package are Uninitialized */ Name (P900, Package (0x01){}) /* Elements of Package are Computational Data */ Name (P901, Package (0x02) { 0xABCD3004, 0x1122334455663005 }) Name (P902, Package (0x02) { "12343006", "q1w2e3r4t5y6u7i83007" }) Name (P903, Package (0x02) { "qwrtyuiop3008", "1234567890abdef0253009" }) Name (P904, Package (0x02) { Buffer (0x03) { 0xD5, 0xD6, 0xD7 // ... }, Buffer (0x02) { 0xD8, 0xD9 // .. } }) Name (P905, Package (0x01) { Package (0x03) { 0x0ABC300A, "0xabc300b", "abc300c" } }) Name (P906, Package (0x01) { Package (0x01) { "abc300d" } }) Name (P907, Package (0x01) { Package (0x01) { "aqwevbgnm300e" } }) Name (P908, Package (0x01) { Package (0x01) { Buffer (0x05) { 0xDA, 0xDB, 0xDC, 0xDD, 0xDE // ..... } } }) Name (P909, Package (0x01) { Package (0x01) { Package (0x01) { 0x0ABC300F } } }) Name (P90A, Package (0x01) { Package (0x01) { Package (0x01) { "12343010" } } }) Name (P90B, Package (0x01) { Package (0x01) { Package (0x01) { "zxswefas3011" } } }) Name (P90C, Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x03) { 0xDF, 0x20, 0x21 // . ! } } } }) Name (P90D, Package (0x01) { I900 }) Name (P90E, Package (0x01) { I901 }) Name (P90F, Package (0x01) { S900 }) Name (P910, Package (0x01) { S901 }) Name (P911, Package (0x01) { B9Z0 }) Name (P912, Package (0x01) { F900 }) Name (P913, Package (0x01) { BN90 }) Name (P914, Package (0x01) { IF90 }) Name (P915, Package (0x01) { BF90 }) /* Elements of Package are NOT Computational Data */ Name (P916, Package (0x01) { D900 }) Name (P917, Package (0x01) { E900 }) Name (P918, Package (0x01) { MX90 }) Name (P919, Package (0x01) { R900 }) Name (P91A, Package (0x01) { PW90 }) Name (P91B, Package (0x01) { PR90 }) Name (P91C, Package (0x01) { TZ90 }) /* Methods */ Method (M900, 0, NotSerialized) { } Method (M901, 0, NotSerialized) { Return (0x0ABC3012) } Method (M902, 0, NotSerialized) { Return ("zxvgswquiy3013") } Method (M903, 0, NotSerialized) { Return (Buffer (0x01) { 0x22 // " }) } Method (M904, 0, NotSerialized) { Return (Package (0x01) { 0x0ABC3014 }) } Method (M905, 0, NotSerialized) { Return (Package (0x01) { "lkjhgtre3015" }) } Method (M906, 0, NotSerialized) { Return (Package (0x01) { Buffer (0x01) { 0x23 // # } }) } Method (M907, 0, NotSerialized) { Return (Package (0x01) { Package (0x01) { 0x0ABC3016 } }) } Method (M908, 0, NotSerialized) { Return (I900) /* \M16B.I900 */ } Method (M909, 0, NotSerialized) { Return (I901) /* \M16B.I901 */ } Method (M90A, 0, NotSerialized) { Return (S900) /* \M16B.S900 */ } Method (M90B, 0, NotSerialized) { Return (S901) /* \M16B.S901 */ } Method (M90C, 0, NotSerialized) { Return (B9Z0) /* \M16B.B9Z0 */ } Method (M90D, 0, NotSerialized) { Return (F900) /* \M16B.F900 */ } Method (M90E, 0, NotSerialized) { Return (BN90) /* \M16B.BN90 */ } Method (M90F, 0, NotSerialized) { Return (IF90) /* \M16B.IF90 */ } Method (M910, 0, NotSerialized) { Return (BF90) /* \M16B.BF90 */ } Method (M911, 0, NotSerialized) { Return (D900) /* \M16B.D900 */ } Method (M912, 0, NotSerialized) { Return (E900) /* \M16B.E900 */ } Method (M913, 0, NotSerialized) { Return (M901 ()) } Method (M914, 0, NotSerialized) { Return (MX90) /* \M16B.MX90 */ } Method (M915, 0, NotSerialized) { Return (R900) /* \M16B.R900 */ } Method (M916, 0, NotSerialized) { Return (PW90) /* \M16B.PW90 */ } Method (M917, 0, NotSerialized) { Return (PR90) /* \M16B.PR90 */ } Method (M918, 0, NotSerialized) { Return (TZ90) /* \M16B.TZ90 */ } Method (M919, 0, NotSerialized) { Return (P900) /* \M16B.P900 */ } Method (M91A, 0, NotSerialized) { Return (P901) /* \M16B.P901 */ } Method (M91B, 0, NotSerialized) { Return (P902) /* \M16B.P902 */ } Method (M91C, 0, NotSerialized) { Return (P903) /* \M16B.P903 */ } Method (M91D, 0, NotSerialized) { Return (P904) /* \M16B.P904 */ } Method (M91E, 0, NotSerialized) { Return (P905) /* \M16B.P905 */ } Method (M91F, 0, NotSerialized) { Return (P906) /* \M16B.P906 */ } Method (M920, 0, NotSerialized) { Return (P907) /* \M16B.P907 */ } Method (M921, 0, NotSerialized) { Return (P908) /* \M16B.P908 */ } Method (M922, 0, NotSerialized) { Return (P909) /* \M16B.P909 */ } Method (M923, 0, NotSerialized) { Return (P90A) /* \M16B.P90A */ } Method (M924, 0, NotSerialized) { Return (P90B) /* \M16B.P90B */ } Method (M925, 0, NotSerialized) { Return (P90C) /* \M16B.P90C */ } Method (M926, 0, NotSerialized) { Return (P90D) /* \M16B.P90D */ } Method (M927, 0, NotSerialized) { Return (P90E) /* \M16B.P90E */ } Method (M928, 0, NotSerialized) { Return (P90F) /* \M16B.P90F */ } Method (M929, 0, NotSerialized) { Return (P910) /* \M16B.P910 */ } Method (M92A, 0, NotSerialized) { Return (P911) /* \M16B.P911 */ } Method (M92B, 0, NotSerialized) { Return (P912) /* \M16B.P912 */ } Method (M92C, 0, NotSerialized) { Return (P913) /* \M16B.P913 */ } Method (M92D, 0, NotSerialized) { Return (P914) /* \M16B.P914 */ } Method (M92E, 0, NotSerialized) { Return (P915) /* \M16B.P915 */ } Method (M92F, 0, NotSerialized) { Return (P916) /* \M16B.P916 */ } Method (M930, 0, NotSerialized) { Return (P917) /* \M16B.P917 */ } Method (M931, 0, NotSerialized) { Return (P918) /* \M16B.P918 */ } Method (M932, 0, NotSerialized) { Return (P919) /* \M16B.P919 */ } Method (M933, 0, NotSerialized) { Return (P91A) /* \M16B.P91A */ } Method (M934, 0, NotSerialized) { Return (P91B) /* \M16B.P91B */ } Method (M935, 0, NotSerialized) { Return (P91C) /* \M16B.P91C */ } /* Elements of Package are Methods */ Name (P91D, Package (0x01) { M900 }) Name (P91E, Package (0x01) { M901 }) Name (P91F, Package (0x01) { M902 }) Name (P920, Package (0x01) { M903 }) Name (P921, Package (0x01) { M904 }) Name (P922, Package (0x01) { M905 }) Name (P923, Package (0x01) { M906 }) Name (P924, Package (0x01) { M907 }) Name (P925, Package (0x01) { M908 }) Name (P926, Package (0x01) { M909 }) Name (P927, Package (0x01) { M90A }) Name (P928, Package (0x01) { M90B }) Name (P929, Package (0x01) { M90C }) Name (P92A, Package (0x01) { M90D }) Name (P92B, Package (0x01) { M90E }) Name (P92C, Package (0x01) { M90F }) Name (P92D, Package (0x01) { M910 }) Name (P92E, Package (0x01) { M911 }) Name (P92F, Package (0x01) { M912 }) Name (P930, Package (0x01) { M913 }) Name (P931, Package (0x01) { M914 }) Name (P932, Package (0x01) { M915 }) Name (P933, Package (0x01) { M916 }) Name (P934, Package (0x01) { M917 }) If (Y103) { Name (P935, Package (0x01) { M918 }) } Name (P936, Package (0x01) { M919 }) Name (P937, Package (0x01) { M91A }) Name (P938, Package (0x01) { M91B }) Name (P939, Package (0x01) { M91C }) Name (P93A, Package (0x01) { M91D }) Name (P93B, Package (0x01) { M91E }) Name (P93C, Package (0x01) { M91F }) Name (P93D, Package (0x01) { M920 }) Name (P93E, Package (0x01) { M921 }) Name (P93F, Package (0x01) { M922 }) Name (P940, Package (0x01) { M923 }) Name (P941, Package (0x01) { M924 }) Name (P942, Package (0x01) { M925 }) Name (P943, Package (0x01) { M926 }) Name (P944, Package (0x01) { M927 }) Name (P945, Package (0x01) { M928 }) Name (P946, Package (0x01) { M929 }) Name (P947, Package (0x01) { M92A }) Name (P948, Package (0x01) { M92B }) Name (P949, Package (0x01) { M92C }) Name (P94A, Package (0x01) { M92D }) Name (P94B, Package (0x01) { M92E }) Name (P94C, Package (0x01) { M92F }) Name (P94D, Package (0x01) { M930 }) Name (P94E, Package (0x01) { M931 }) Name (P94F, Package (0x01) { M932 }) Name (P950, Package (0x01) { M933 }) Name (P951, Package (0x01) { M934 }) Name (P952, Package (0x01) { M935 }) Name (P953, Package (0x02) { 0xABCD3018, 0xABCD3019 }) Name (P954, Package (0x02) { 0xABCD3018, 0xABCD3019 }) /* Check that all the data (local) are not corrupted */ Method (M000, 0, NotSerialized) { /* Computational Data */ /* Integer */ Local0 = ObjectType (I900) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I900 != 0xFE7CB391D65A3000)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I900, 0xFE7CB391D65A3000) } Local0 = ObjectType (I901) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I901 != 0x21793001)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I901, 0x21793001) } Local0 = ObjectType (I902) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I902 != 0x00)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I902, 0x00) } Local0 = ObjectType (I903) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I903 != 0xFFFFFFFFFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I903, 0xFFFFFFFFFFFFFFFF) } Local0 = ObjectType (I904) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I904 != 0xFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I904, 0xFFFFFFFF) } /* String */ Local0 = ObjectType (S900) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S900 != "12343002")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S900, "12343002") } Local0 = ObjectType (S901) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S901 != "qwrtyu3003")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S901, "qwrtyu3003") } /* Buffer */ Local0 = ObjectType (B900) If ((Local0 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00B) } If ((B900 != Buffer (0x05) { 0xD0, 0xD1, 0xD2, 0xD3, 0xD4 // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, B900, Buffer (0x05) { 0xD0, 0xD1, 0xD2, 0xD3, 0xD4 // ..... }) } /* Buffer Field */ Local0 = ObjectType (BF90) If ((Local0 != C016)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C016) } If (BF90 != Buffer(){0xD0}) { ERR (C080, Z077, __LINE__, 0x00, 0x00, BF90, Buffer(){0xD0}) } /* One level Package */ Store (P900 [0x00], Local0) Local1 = ObjectType (Local0) If ((Local1 != C008)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, C008) } Store (P901 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD3004)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD3004) } Store (P901 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0x1122334455663005)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0x1122334455663005) } Store (P902 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "12343006")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "12343006") } Store (P902 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "q1w2e3r4t5y6u7i83007")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "q1w2e3r4t5y6u7i83007") } Store (P903 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "qwrtyuiop3008")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "qwrtyuiop3008") } Store (P903 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "1234567890abdef0253009")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "1234567890abdef0253009") } Store (P904 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x03) { 0xD5, 0xD6, 0xD7 // ... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x03) { 0xD5, 0xD6, 0xD7 // ... }) } Store (P904 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x02) { 0xD8, 0xD9 // .. })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x02) { 0xD8, 0xD9 // .. }) } /* Two level Package */ Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C009) } If ((Local3 != 0x0ABC300A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, 0x0ABC300A) } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x01], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "0xabc300b")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "0xabc300b") } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x02], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc300c")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc300c") } Store (P906 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc300d")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc300d") } Store (P907 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "aqwevbgnm300e")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "aqwevbgnm300e") } Store (P908 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00B) } If ((Local3 != Buffer (0x05) { 0xDA, 0xDB, 0xDC, 0xDD, 0xDE // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, Buffer (0x05) { 0xDA, 0xDB, 0xDC, 0xDD, 0xDE // ..... }) } /* Three level Package */ Store (P909 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C009) } If ((Local5 != 0x0ABC300F)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, 0x0ABC300F) } Store (P90A [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "12343010")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "12343010") } Store (P90B [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "zxswefas3011")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "zxswefas3011") } Store (P90C [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00B) } If ((Local5 != Buffer (0x03) { 0xDF, 0x20, 0x21 // . ! })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, Buffer (0x03) { 0xDF, 0x20, 0x21 // . ! }) } Store (P953 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD3018)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD3018) } Store (P953 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD3019)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD3019) } /* Not Computational Data */ M1AA (C080, E900, C00F, 0x00, 0x013B) M1AA (C080, MX90, C011, 0x00, 0x013C) M1AA (C080, D900, C00E, 0x00, 0x013D) If (Y508) { M1AA (C080, TZ90, C015, 0x00, 0x013E) } M1AA (C080, PR90, C014, 0x00, 0x013F) M1AA (C080, R900, C012, 0x00, 0x0140) M1AA (C080, PW90, C013, 0x00, 0x0141) /* * // Field Unit (Field) * * if (LNotEqual(f900, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, f900, 0xd7) * } * * // Field Unit (IndexField) * * if (LNotEqual(if90, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, if90, 0xd7) * } */ } /* m000 */ /* T2:C1-C14 */ /* Computational Data */ Local0 = CondRefOf (I900) M1A4 (Local0, 0x01AC) Local0 = CondRefOf (I901) M1A4 (Local0, 0x01AD) Local0 = CondRefOf (S900) M1A4 (Local0, 0x01AE) Local0 = CondRefOf (S901) M1A4 (Local0, 0x01AF) Local0 = CondRefOf (B900) M1A4 (Local0, 0x01B0) Local0 = CondRefOf (F900) M1A4 (Local0, 0x01B1) Local0 = CondRefOf (BN90) M1A4 (Local0, 0x01B2) Local0 = CondRefOf (IF90) M1A4 (Local0, 0x01B3) Local0 = CondRefOf (BF90) M1A4 (Local0, 0x01B4) /* Not Computational Data */ Local0 = CondRefOf (E900) M1A4 (Local0, 0x01B5) Local0 = CondRefOf (MX90) M1A4 (Local0, 0x01B6) Local0 = CondRefOf (D900) M1A4 (Local0, 0x01B7) Local0 = CondRefOf (TZ90) M1A4 (Local0, 0x01C2) Local0 = CondRefOf (PR90) M1A4 (Local0, 0x01C3) Local0 = CondRefOf (R900) M1A4 (Local0, 0x01C4) Local0 = CondRefOf (PW90) M1A4 (Local0, 0x01C5) /* Elements of Package are Uninitialized */ Local0 = CondRefOf (P900) M1A4 (Local0, 0x01C6) /* Elements of Package are Computational Data */ Local0 = CondRefOf (P901) M1A4 (Local0, 0x01C7) Local0 = CondRefOf (P902) M1A4 (Local0, 0x01C8) Local0 = CondRefOf (P903) M1A4 (Local0, 0x01C9) Local0 = CondRefOf (P904) M1A4 (Local0, 0x01CA) Local0 = CondRefOf (P905) M1A4 (Local0, 0x01CB) Local0 = CondRefOf (P906) M1A4 (Local0, 0x01CC) Local0 = CondRefOf (P907) M1A4 (Local0, 0x01CD) Local0 = CondRefOf (P908) M1A4 (Local0, 0x01CE) Local0 = CondRefOf (P909) M1A4 (Local0, 0x01CF) Local0 = CondRefOf (P90A) M1A4 (Local0, 0x01D0) Local0 = CondRefOf (P90B) M1A4 (Local0, 0x01D1) Local0 = CondRefOf (P90C) M1A4 (Local0, 0x01D2) Local0 = CondRefOf (P90D) M1A4 (Local0, 0x01D3) Local0 = CondRefOf (P90E) M1A4 (Local0, 0x01D4) Local0 = CondRefOf (P90F) M1A4 (Local0, 0x01D5) Local0 = CondRefOf (P910) M1A4 (Local0, 0x01D6) Local0 = CondRefOf (P911) M1A4 (Local0, 0x01D7) Local0 = CondRefOf (P912) M1A4 (Local0, 0x01D8) Local0 = CondRefOf (P913) M1A4 (Local0, 0x01D9) Local0 = CondRefOf (P914) M1A4 (Local0, 0x01DA) Local0 = CondRefOf (P915) M1A4 (Local0, 0x01DB) /* Elements of Package are NOT Computational Data */ Local0 = CondRefOf (P916) M1A4 (Local0, 0x01DC) Local0 = CondRefOf (P917) M1A4 (Local0, 0x01DD) Local0 = CondRefOf (P918) M1A4 (Local0, 0x01DE) Local0 = CondRefOf (P919) M1A4 (Local0, 0x01DF) Local0 = CondRefOf (P91A) M1A4 (Local0, 0x01E0) Local0 = CondRefOf (P91B) M1A4 (Local0, 0x01E1) Local0 = CondRefOf (P91C) M1A4 (Local0, 0x01E2) /* Elements of Package are Methods */ Local0 = CondRefOf (P91D) M1A4 (Local0, 0x01E3) Local0 = CondRefOf (P91E) M1A4 (Local0, 0x01E4) Local0 = CondRefOf (P91F) M1A4 (Local0, 0x01E5) Local0 = CondRefOf (P920) M1A4 (Local0, 0x01E6) Local0 = CondRefOf (P921) M1A4 (Local0, 0x01E7) Local0 = CondRefOf (P922) M1A4 (Local0, 0x01E8) Local0 = CondRefOf (P923) M1A4 (Local0, 0x01E9) Local0 = CondRefOf (P924) M1A4 (Local0, 0x01EA) Local0 = CondRefOf (P925) M1A4 (Local0, 0x01EB) Local0 = CondRefOf (P926) M1A4 (Local0, 0x01EC) Local0 = CondRefOf (P927) M1A4 (Local0, 0x01ED) Local0 = CondRefOf (P928) M1A4 (Local0, 0x01EE) Local0 = CondRefOf (P929) M1A4 (Local0, 0x01EF) Local0 = CondRefOf (P92A) M1A4 (Local0, 0x01F0) Local0 = CondRefOf (P92B) M1A4 (Local0, 0x01F1) Local0 = CondRefOf (P92C) M1A4 (Local0, 0x01F2) Local0 = CondRefOf (P92D) M1A4 (Local0, 0x01F3) Local0 = CondRefOf (P92E) M1A4 (Local0, 0x01F4) Local0 = CondRefOf (P92F) M1A4 (Local0, 0x01F5) Local0 = CondRefOf (P930) M1A4 (Local0, 0x01F6) Local0 = CondRefOf (P931) M1A4 (Local0, 0x01F7) Local0 = CondRefOf (P932) M1A4 (Local0, 0x01F8) Local0 = CondRefOf (P933) M1A4 (Local0, 0x01F9) Local0 = CondRefOf (P934) M1A4 (Local0, 0x01FA) Local0 = CondRefOf (P935) M1A4 (Local0, 0x01FB) Local0 = CondRefOf (P936) M1A4 (Local0, 0x01FC) Local0 = CondRefOf (P937) M1A4 (Local0, 0x01FD) Local0 = CondRefOf (P938) M1A4 (Local0, 0x01FE) Local0 = CondRefOf (P939) M1A4 (Local0, 0x01FF) Local0 = CondRefOf (P93A) M1A4 (Local0, 0x0200) Local0 = CondRefOf (P93B) M1A4 (Local0, 0x0201) Local0 = CondRefOf (P93C) M1A4 (Local0, 0x0202) Local0 = CondRefOf (P93D) M1A4 (Local0, 0x0203) Local0 = CondRefOf (P93E) M1A4 (Local0, 0x0204) Local0 = CondRefOf (P93F) M1A4 (Local0, 0x0205) Local0 = CondRefOf (P940) M1A4 (Local0, 0x0206) Local0 = CondRefOf (P941) M1A4 (Local0, 0x0207) Local0 = CondRefOf (P942) M1A4 (Local0, 0x0208) Local0 = CondRefOf (P943) M1A4 (Local0, 0x0209) Local0 = CondRefOf (P944) M1A4 (Local0, 0x020A) Local0 = CondRefOf (P945) M1A4 (Local0, 0x020B) Local0 = CondRefOf (P946) M1A4 (Local0, 0x020C) Local0 = CondRefOf (P947) M1A4 (Local0, 0x020D) Local0 = CondRefOf (P948) M1A4 (Local0, 0x020E) Local0 = CondRefOf (P949) M1A4 (Local0, 0x020F) Local0 = CondRefOf (P94A) M1A4 (Local0, 0x0210) Local0 = CondRefOf (P94B) M1A4 (Local0, 0x0211) Local0 = CondRefOf (P94C) M1A4 (Local0, 0x0212) Local0 = CondRefOf (P94D) M1A4 (Local0, 0x0213) Local0 = CondRefOf (P94E) M1A4 (Local0, 0x0214) Local0 = CondRefOf (P94F) M1A4 (Local0, 0x0215) Local0 = CondRefOf (P950) M1A4 (Local0, 0x0216) Local0 = CondRefOf (P951) M1A4 (Local0, 0x0217) Local0 = CondRefOf (P952) M1A4 (Local0, 0x0218) /* Methods */ Local0 = CondRefOf (M900) M1A4 (Local0, 0x0219) Local0 = CondRefOf (M901) M1A4 (Local0, 0x021A) Local0 = CondRefOf (M902) M1A4 (Local0, 0x021B) Local0 = CondRefOf (M903) M1A4 (Local0, 0x021C) Local0 = CondRefOf (M904) M1A4 (Local0, 0x021D) Local0 = CondRefOf (M905) M1A4 (Local0, 0x021E) Local0 = CondRefOf (M906) M1A4 (Local0, 0x021F) Local0 = CondRefOf (M907) M1A4 (Local0, 0x0220) Local0 = CondRefOf (M908) M1A4 (Local0, 0x0221) Local0 = CondRefOf (M909) M1A4 (Local0, 0x0222) Local0 = CondRefOf (M90A) M1A4 (Local0, 0x0223) Local0 = CondRefOf (M90B) M1A4 (Local0, 0x0224) Local0 = CondRefOf (M90C) M1A4 (Local0, 0x0225) Local0 = CondRefOf (M90D) M1A4 (Local0, 0x0226) Local0 = CondRefOf (M90E) M1A4 (Local0, 0x0227) Local0 = CondRefOf (M90F) M1A4 (Local0, 0x0228) Local0 = CondRefOf (M910) M1A4 (Local0, 0x0229) Local0 = CondRefOf (M911) M1A4 (Local0, 0x022A) Local0 = CondRefOf (M912) M1A4 (Local0, 0x022B) Local0 = CondRefOf (M913) M1A4 (Local0, 0x022C) Local0 = CondRefOf (M914) M1A4 (Local0, 0x022D) Local0 = CondRefOf (M915) M1A4 (Local0, 0x022E) Local0 = CondRefOf (M916) M1A4 (Local0, 0x022F) Local0 = CondRefOf (M917) M1A4 (Local0, 0x0230) Local0 = CondRefOf (M918) M1A4 (Local0, 0x0231) Local0 = CondRefOf (M919) M1A4 (Local0, 0x0232) Local0 = CondRefOf (M91A) M1A4 (Local0, 0x0233) Local0 = CondRefOf (M91B) M1A4 (Local0, 0x0234) Local0 = CondRefOf (M91C) M1A4 (Local0, 0x0235) Local0 = CondRefOf (M91D) M1A4 (Local0, 0x0236) Local0 = CondRefOf (M91E) M1A4 (Local0, 0x0237) Local0 = CondRefOf (M91F) M1A4 (Local0, 0x0238) Local0 = CondRefOf (M920) M1A4 (Local0, 0x0239) Local0 = CondRefOf (M921) M1A4 (Local0, 0x023A) Local0 = CondRefOf (M922) M1A4 (Local0, 0x023B) Local0 = CondRefOf (M923) M1A4 (Local0, 0x023C) Local0 = CondRefOf (M924) M1A4 (Local0, 0x023D) Local0 = CondRefOf (M925) M1A4 (Local0, 0x023E) Local0 = CondRefOf (M926) M1A4 (Local0, 0x023F) Local0 = CondRefOf (M927) M1A4 (Local0, 0x0240) Local0 = CondRefOf (M928) M1A4 (Local0, 0x0241) Local0 = CondRefOf (M929) M1A4 (Local0, 0x0242) Local0 = CondRefOf (M92A) M1A4 (Local0, 0x0243) Local0 = CondRefOf (M92B) M1A4 (Local0, 0x0244) Local0 = CondRefOf (M92C) M1A4 (Local0, 0x0245) Local0 = CondRefOf (M92D) M1A4 (Local0, 0x0246) Local0 = CondRefOf (M92E) M1A4 (Local0, 0x0247) Local0 = CondRefOf (M92F) M1A4 (Local0, 0x0248) Local0 = CondRefOf (M930) M1A4 (Local0, 0x0249) Local0 = CondRefOf (M931) M1A4 (Local0, 0x024A) Local0 = CondRefOf (M932) M1A4 (Local0, 0x024B) Local0 = CondRefOf (M933) M1A4 (Local0, 0x024C) Local0 = CondRefOf (M934) M1A4 (Local0, 0x024D) Local0 = CondRefOf (M935) M1A4 (Local0, 0x024E) M000 () M1A6 () } /* arg0 - writing mode */ Method (M16C, 1, Serialized) { If (Y100) { TS00 ("m16c") } Else { Debug = "m16c" } /* Not Computational Data */ Event (E900) Event (E9Z0) Mutex (MX90, 0x00) Mutex (MX91, 0x00) Device (D900) { Name (I900, 0xABCD4017) } Device (D9Z0) { Name (I900, 0xABCD4017) } ThermalZone (TZ90) { } ThermalZone (TZ91) { } Processor (PR90, 0x00, 0xFFFFFFFF, 0x00){} Processor (PR91, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (R900, SystemMemory, 0x0100, 0x0100) OperationRegion (R9Z0, SystemMemory, 0x0100, 0x0100) PowerResource (PW90, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } PowerResource (PW91, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } /* Computational Data */ Name (I900, 0xFE7CB391D65A4000) Name (I9Z0, 0xFE7CB391D65A4000) Name (I901, 0xC1794001) Name (I9Z1, 0xC1794001) Name (I902, 0x00) Name (I903, 0xFFFFFFFFFFFFFFFF) Name (I904, 0xFFFFFFFF) Name (S900, "12344002") Name (S9Z0, "12344002") Name (S901, "qwrtyu4003") Name (S9Z1, "qwrtyu4003") Name (B900, Buffer (0x05) { 0xE0, 0xE1, 0xE2, 0xE3, 0xE4 // ..... }) Name (B9Z0, Buffer (0x05) { 0xE0, 0xE1, 0xE2, 0xE3, 0xE4 // ..... }) CreateField (B9Z0, 0x00, 0x08, BF90) Field (R9Z0, ByteAcc, NoLock, Preserve) { F900, 8, F901, 8, F902, 8, F903, 8 } BankField (R9Z0, F901, 0x00, ByteAcc, NoLock, Preserve) { BN90, 4 } IndexField (F902, F903, ByteAcc, NoLock, Preserve) { IF90, 8, IF91, 8 } /* Elements of Package are Uninitialized */ Name (P900, Package (0x01){}) /* Elements of Package are Computational Data */ Name (P901, Package (0x02) { 0xABCD4004, 0x1122334455664005 }) Name (P902, Package (0x02) { "12344006", "q1w2e3r4t5y6u7i84007" }) Name (P903, Package (0x02) { "qwrtyuiop4008", "1234567890abdef0254009" }) Name (P904, Package (0x02) { Buffer (0x03) { 0xE5, 0xE6, 0xE7 // ... }, Buffer (0x02) { 0xE8, 0xE9 // .. } }) Name (P905, Package (0x01) { Package (0x03) { 0x0ABC400A, "0xabc400b", "abc400c" } }) Name (P906, Package (0x01) { Package (0x01) { "abc400d" } }) Name (P907, Package (0x01) { Package (0x01) { "aqwevbgnm400e" } }) Name (P908, Package (0x01) { Package (0x01) { Buffer (0x05) { 0xEA, 0xEB, 0xEC, 0xED, 0xEE // ..... } } }) Name (P909, Package (0x01) { Package (0x01) { Package (0x01) { 0x0ABC400F } } }) Name (P90A, Package (0x01) { Package (0x01) { Package (0x01) { "12344010" } } }) Name (P90B, Package (0x01) { Package (0x01) { Package (0x01) { "zxswefas4011" } } }) Name (P90C, Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x03) { 0xEF, 0x30, 0x31 // .01 } } } }) Name (P90D, Package (0x01) { I900 }) Name (P90E, Package (0x01) { I901 }) Name (P90F, Package (0x01) { S900 }) Name (P910, Package (0x01) { S901 }) Name (P911, Package (0x01) { B9Z0 }) Name (P912, Package (0x01) { F900 }) Name (P913, Package (0x01) { BN90 }) Name (P914, Package (0x01) { IF90 }) Name (P915, Package (0x01) { BF90 }) /* Elements of Package are NOT Computational Data */ Name (P916, Package (0x01) { D900 }) Name (P917, Package (0x01) { E900 }) Name (P918, Package (0x01) { MX90 }) Name (P919, Package (0x01) { R9Z0 }) Name (P91A, Package (0x01) { PW90 }) Name (P91B, Package (0x01) { PR90 }) Name (P91C, Package (0x01) { TZ90 }) /* Methods */ Method (M900, 0, NotSerialized) { } Method (M901, 0, NotSerialized) { Return (0x0ABC4012) } Method (M902, 0, NotSerialized) { Return ("zxvgswquiy4013") } Method (M903, 0, NotSerialized) { Return (Buffer (0x01) { 0x32 // 2 }) } Method (M904, 0, NotSerialized) { Return (Package (0x01) { 0x0ABC4014 }) } Method (M905, 0, NotSerialized) { Return (Package (0x01) { "lkjhgtre4015" }) } Method (M906, 0, NotSerialized) { Return (Package (0x01) { Buffer (0x01) { 0x33 // 3 } }) } Method (M907, 0, NotSerialized) { Return (Package (0x01) { Package (0x01) { 0x0ABC4016 } }) } Method (M908, 0, NotSerialized) { Return (I900) /* \M16C.I900 */ } Method (M909, 0, NotSerialized) { Return (I901) /* \M16C.I901 */ } Method (M90A, 0, NotSerialized) { Return (S900) /* \M16C.S900 */ } Method (M90B, 0, NotSerialized) { Return (S901) /* \M16C.S901 */ } Method (M90C, 0, NotSerialized) { Return (B9Z0) /* \M16C.B9Z0 */ } Method (M90D, 0, NotSerialized) { Return (F900) /* \M16C.F900 */ } Method (M90E, 0, NotSerialized) { Return (BN90) /* \M16C.BN90 */ } Method (M90F, 0, NotSerialized) { Return (IF90) /* \M16C.IF90 */ } Method (M910, 0, NotSerialized) { Return (BF90) /* \M16C.BF90 */ } Method (M911, 0, NotSerialized) { Return (D900) /* \M16C.D900 */ } Method (M912, 0, NotSerialized) { Return (E900) /* \M16C.E900 */ } Method (M913, 0, NotSerialized) { Return (M901 ()) } Method (M914, 0, NotSerialized) { Return (MX90) /* \M16C.MX90 */ } Method (M915, 0, NotSerialized) { Return (R9Z0) /* \M16C.R9Z0 */ } Method (M916, 0, NotSerialized) { Return (PW90) /* \M16C.PW90 */ } Method (M917, 0, NotSerialized) { Return (PR90) /* \M16C.PR90 */ } Method (M918, 0, NotSerialized) { Return (TZ90) /* \M16C.TZ90 */ } Method (M919, 0, NotSerialized) { Return (P900) /* \M16C.P900 */ } Method (M91A, 0, NotSerialized) { Return (P901) /* \M16C.P901 */ } Method (M91B, 0, NotSerialized) { Return (P902) /* \M16C.P902 */ } Method (M91C, 0, NotSerialized) { Return (P903) /* \M16C.P903 */ } Method (M91D, 0, NotSerialized) { Return (P904) /* \M16C.P904 */ } Method (M91E, 0, NotSerialized) { Return (P905) /* \M16C.P905 */ } Method (M91F, 0, NotSerialized) { Return (P906) /* \M16C.P906 */ } Method (M920, 0, NotSerialized) { Return (P907) /* \M16C.P907 */ } Method (M921, 0, NotSerialized) { Return (P908) /* \M16C.P908 */ } Method (M922, 0, NotSerialized) { Return (P909) /* \M16C.P909 */ } Method (M923, 0, NotSerialized) { Return (P90A) /* \M16C.P90A */ } Method (M924, 0, NotSerialized) { Return (P90B) /* \M16C.P90B */ } Method (M925, 0, NotSerialized) { Return (P90C) /* \M16C.P90C */ } Method (M926, 0, NotSerialized) { Return (P90D) /* \M16C.P90D */ } Method (M927, 0, NotSerialized) { Return (P90E) /* \M16C.P90E */ } Method (M928, 0, NotSerialized) { Return (P90F) /* \M16C.P90F */ } Method (M929, 0, NotSerialized) { Return (P910) /* \M16C.P910 */ } Method (M92A, 0, NotSerialized) { Return (P911) /* \M16C.P911 */ } Method (M92B, 0, NotSerialized) { Return (P912) /* \M16C.P912 */ } Method (M92C, 0, NotSerialized) { Return (P913) /* \M16C.P913 */ } Method (M92D, 0, NotSerialized) { Return (P914) /* \M16C.P914 */ } Method (M92E, 0, NotSerialized) { Return (P915) /* \M16C.P915 */ } Method (M92F, 0, NotSerialized) { Return (P916) /* \M16C.P916 */ } Method (M930, 0, NotSerialized) { Return (P917) /* \M16C.P917 */ } Method (M931, 0, NotSerialized) { Return (P918) /* \M16C.P918 */ } Method (M932, 0, NotSerialized) { Return (P919) /* \M16C.P919 */ } Method (M933, 0, NotSerialized) { Return (P91A) /* \M16C.P91A */ } Method (M934, 0, NotSerialized) { Return (P91B) /* \M16C.P91B */ } Method (M935, 0, NotSerialized) { Return (P91C) /* \M16C.P91C */ } /* Elements of Package are Methods */ Name (P91D, Package (0x01) { M900 }) Name (P91E, Package (0x01) { M901 }) Name (P91F, Package (0x01) { M902 }) Name (P920, Package (0x01) { M903 }) Name (P921, Package (0x01) { M904 }) Name (P922, Package (0x01) { M905 }) Name (P923, Package (0x01) { M906 }) Name (P924, Package (0x01) { M907 }) Name (P925, Package (0x01) { M908 }) Name (P926, Package (0x01) { M909 }) Name (P927, Package (0x01) { M90A }) Name (P928, Package (0x01) { M90B }) Name (P929, Package (0x01) { M90C }) Name (P92A, Package (0x01) { M90D }) Name (P92B, Package (0x01) { M90E }) Name (P92C, Package (0x01) { M90F }) Name (P92D, Package (0x01) { M910 }) Name (P92E, Package (0x01) { M911 }) Name (P92F, Package (0x01) { M912 }) Name (P930, Package (0x01) { M913 }) Name (P931, Package (0x01) { M914 }) Name (P932, Package (0x01) { M915 }) Name (P933, Package (0x01) { M916 }) Name (P934, Package (0x01) { M917 }) If (Y103) { Name (P935, Package (0x01) { M918 }) } Name (P936, Package (0x01) { M919 }) Name (P937, Package (0x01) { M91A }) Name (P938, Package (0x01) { M91B }) Name (P939, Package (0x01) { M91C }) Name (P93A, Package (0x01) { M91D }) Name (P93B, Package (0x01) { M91E }) Name (P93C, Package (0x01) { M91F }) Name (P93D, Package (0x01) { M920 }) Name (P93E, Package (0x01) { M921 }) Name (P93F, Package (0x01) { M922 }) Name (P940, Package (0x01) { M923 }) Name (P941, Package (0x01) { M924 }) Name (P942, Package (0x01) { M925 }) Name (P943, Package (0x01) { M926 }) Name (P944, Package (0x01) { M927 }) Name (P945, Package (0x01) { M928 }) Name (P946, Package (0x01) { M929 }) Name (P947, Package (0x01) { M92A }) Name (P948, Package (0x01) { M92B }) Name (P949, Package (0x01) { M92C }) Name (P94A, Package (0x01) { M92D }) Name (P94B, Package (0x01) { M92E }) Name (P94C, Package (0x01) { M92F }) Name (P94D, Package (0x01) { M930 }) Name (P94E, Package (0x01) { M931 }) Name (P94F, Package (0x01) { M932 }) Name (P950, Package (0x01) { M933 }) Name (P951, Package (0x01) { M934 }) Name (P952, Package (0x01) { M935 }) Name (P953, Package (0x02) { 0xABCD4018, 0xABCD4019 }) Name (P954, Package (0x02) { 0xABCD4018, 0xABCD4019 }) /* Check that all the data (local) are not corrupted */ Method (M000, 0, NotSerialized) { /* Computational Data */ /* Integer */ Local0 = ObjectType (I900) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I900 != 0xFE7CB391D65A4000)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I900, 0xFE7CB391D65A4000) } Local0 = ObjectType (I901) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I901 != 0xC1794001)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I901, 0xC1794001) } Local0 = ObjectType (I902) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I902 != 0x00)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I902, 0x00) } Local0 = ObjectType (I903) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I903 != 0xFFFFFFFFFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I903, 0xFFFFFFFFFFFFFFFF) } Local0 = ObjectType (I904) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I904 != 0xFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I904, 0xFFFFFFFF) } /* String */ Local0 = ObjectType (S900) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S900 != "12344002")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S900, "12344002") } Local0 = ObjectType (S901) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S901 != "qwrtyu4003")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S901, "qwrtyu4003") } /* Buffer */ Local0 = ObjectType (B900) If ((Local0 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00B) } If ((B900 != Buffer (0x05) { 0xE0, 0xE1, 0xE2, 0xE3, 0xE4 // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, B900, Buffer (0x05) { 0xE0, 0xE1, 0xE2, 0xE3, 0xE4 // ..... }) } /* Buffer Field */ Local0 = ObjectType (BF90) If ((Local0 != C016)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C016) } If (BF90 != Buffer() {0xE0}) { ERR (C080, Z077, __LINE__, 0x00, 0x00, BF90, Buffer(){0xE0}) } /* One level Package */ Store (P900 [0x00], Local0) Local1 = ObjectType (Local0) If ((Local1 != C008)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, C008) } Store (P901 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD4004)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD4004) } Store (P901 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0x1122334455664005)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0x1122334455664005) } Store (P902 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "12344006")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "12344006") } Store (P902 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "q1w2e3r4t5y6u7i84007")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "q1w2e3r4t5y6u7i84007") } Store (P903 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "qwrtyuiop4008")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "qwrtyuiop4008") } Store (P903 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "1234567890abdef0254009")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "1234567890abdef0254009") } Store (P904 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x03) { 0xE5, 0xE6, 0xE7 // ... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x03) { 0xE5, 0xE6, 0xE7 // ... }) } Store (P904 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x02) { 0xE8, 0xE9 // .. })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x02) { 0xE8, 0xE9 // .. }) } /* Two level Package */ Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C009) } If ((Local3 != 0x0ABC400A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, 0x0ABC400A) } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x01], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "0xabc400b")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "0xabc400b") } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x02], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc400c")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc400c") } Store (P906 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc400d")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc400d") } Store (P907 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "aqwevbgnm400e")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "aqwevbgnm400e") } Store (P908 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00B) } If ((Local3 != Buffer (0x05) { 0xEA, 0xEB, 0xEC, 0xED, 0xEE // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, Buffer (0x05) { 0xEA, 0xEB, 0xEC, 0xED, 0xEE // ..... }) } /* Three level Package */ Store (P909 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C009) } If ((Local5 != 0x0ABC400F)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, 0x0ABC400F) } Store (P90A [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "12344010")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "12344010") } Store (P90B [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "zxswefas4011")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "zxswefas4011") } Store (P90C [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00B) } If ((Local5 != Buffer (0x03) { 0xEF, 0x30, 0x31 // .01 })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, Buffer (0x03) { 0xEF, 0x30, 0x31 // .01 }) } Store (P953 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD4018)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD4018) } Store (P953 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD4019)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD4019) } /* Not Computational Data */ M1AA (C080, E900, C00F, 0x00, 0x013B) M1AA (C080, MX90, C011, 0x00, 0x013C) M1AA (C080, D900, C00E, 0x00, 0x013D) If (Y508) { M1AA (C080, TZ90, C015, 0x00, 0x013E) } M1AA (C080, PR90, C014, 0x00, 0x013F) M1AA (C080, R900, C012, 0x00, 0x0140) M1AA (C080, PW90, C013, 0x00, 0x0141) /* * // Field Unit (Field) * * if (LNotEqual(f900, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, f900, 0xd7) * } * * // Field Unit (IndexField) * * if (LNotEqual(if90, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, if90, 0xd7) * } */ } /* m000 */ /* Check and restore the global data after writing into them */ Method (M001, 0, NotSerialized) { /* Computational Data */ M1AA (C080, I900, C009, C08A, 0x0144) CopyObject (I9Z0, I900) /* \M16C.I900 */ M1AA (C080, I901, C009, C08A, 0x0145) CopyObject (I9Z1, I901) /* \M16C.I901 */ M1AA (C080, S900, C009, C08A, 0x0146) CopyObject (S9Z0, S900) /* \M16C.S900 */ M1AA (C080, S901, C009, C08A, 0x0147) CopyObject (S9Z1, S901) /* \M16C.S901 */ M1AA (C080, B900, C009, C08A, 0x0148) CopyObject (B9Z0, B900) /* \M16C.B900 */ /* Package */ M1AA (C080, P953, C009, C08A, 0x0149) CopyObject (P954, P953) /* \M16C.P953 */ /* Not Computational Data */ M1AA (C080, E900, C009, C08A, 0x014A) CopyObject (RefOf (E9Z0), E900) /* \M16C.E900 */ M1AA (C080, MX90, C009, C08A, 0x014B) CopyObject (RefOf (MX91), MX90) /* \M16C.MX90 */ M1AA (C080, D900, C009, C08A, 0x014C) CopyObject (RefOf (D9Z0), D900) /* \M16C.D900 */ If (Y508) { M1AA (C080, TZ90, C009, C08A, 0x014D) CopyObject (RefOf (TZ91), TZ90) /* \M16C.TZ90 */ } M1AA (C080, PR90, C009, C08A, 0x014E) CopyObject (RefOf (PR91), PR90) /* \M16C.PR90 */ If (Y510) { M1AA (C080, R900, C009, C08A, 0x014F) CopyObject (RefOf (R9Z0), R900) /* \M16C.R900 */ } M1AA (C080, PW90, C009, C08A, 0x0150) CopyObject (RefOf (PW91), PW90) /* \M16C.PW90 */ M000 () } /* m001 */ /* T2:CR1-CR14 */ /* Computational Data */ Local1 = CondRefOf (I900, Local0) If (M1A4 (Local1, 0x024F)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A4000, __LINE__) } Local1 = CondRefOf (I901, Local0) If (M1A4 (Local1, 0x0251)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1794001, __LINE__) } Local1 = CondRefOf (S900, Local0) If (M1A4 (Local1, 0x0253)) { M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12344002", __LINE__) } Local1 = CondRefOf (S901, Local0) If (M1A4 (Local1, 0x0255)) { M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu4003", __LINE__) } Local1 = CondRefOf (B900, Local0) If (M1A4 (Local1, 0x0257)) { M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xE0, 0xE1, 0xE2, 0xE3, 0xE4 // ..... }, 0x0258) } /* Not Computational Data */ Local1 = CondRefOf (E900, Local0) M1A0 (Local0, C00F, Local1, 0x0261) Local1 = CondRefOf (MX90, Local0) M1A0 (Local0, C011, Local1, 0x0262) Local1 = CondRefOf (D900, Local0) M1A0 (Local0, C00E, Local1, 0x0263) If (Arg0) { If (Y508) { Local1 = CondRefOf (TZ90, Local0) M1A0 (Local0, C015, Local1, 0x0264) } } Else { Local1 = CondRefOf (TZ90, Local0) M1A0 (Local0, C015, Local1, 0x03EC) } Local1 = CondRefOf (PR90, Local0) M1A0 (Local0, C014, Local1, 0x0265) If (Arg0) { If (Y510) { Local1 = CondRefOf (R900, Local0) M1A0 (Local0, C012, Local1, 0x0266) } } Else { Local1 = CondRefOf (R900, Local0) M1A0 (Local0, C012, Local1, 0x0266) } Local1 = CondRefOf (PW90, Local0) M1A0 (Local0, C013, Local1, 0x0267) /* Package */ Local1 = CondRefOf (P953, Local0) If (M1A4 (Local1, 0x03ED)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD4018, __LINE__) } If (Arg0) { M001 () Return (Zero) } /* Computational Data (Field Unit and Buffer Field) */ Local1 = CondRefOf (F900, Local0) If (M1A4 (Local1, 0x0259)) { M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) } Local1 = CondRefOf (BN90, Local0) If (M1A4 (Local1, 0x025B)) { M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) } Local1 = CondRefOf (IF90, Local0) If (M1A4 (Local1, 0x025D)) { M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) } Local1 = CondRefOf (BF90, Local0) If (M1A4 (Local1, 0x025F)) { M1A2 (Local0, C016, 0x00, 0x00, C00B, Buffer(){0xE0}, __LINE__) } /* Elements of Package are Uninitialized */ Local1 = CondRefOf (P900, Local0) M1A0 (Local0, C00C, Local1, 0x0268) /* Elements of Package are Computational Data */ Local1 = CondRefOf (P901, Local0) If (M1A4 (Local1, 0x0269)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD4004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455664005, __LINE__) } Local1 = CondRefOf (P902, Local0) If (M1A4 (Local1, 0x026C)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12344006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i84007", __LINE__) } Local1 = CondRefOf (P903, Local0) If (M1A4 (Local1, 0x026F)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop4008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0254009", __LINE__) } Local1 = CondRefOf (P904, Local0) If (M1A4 (Local1, 0x0272)) { M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xE5, 0xE6, 0xE7 // ... }, 0x0273) } Local1 = CondRefOf (P905, Local0) If (M1A4 (Local1, 0x0274)) { M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC400A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc400b", __LINE__) } Local1 = CondRefOf (P906, Local0) If (M1A4 (Local1, 0x0277)) { M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc400d", __LINE__) } Local1 = CondRefOf (P907, Local0) If (M1A4 (Local1, 0x0279)) { M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm400e", __LINE__) } Local1 = CondRefOf (P908, Local0) If (M1A4 (Local1, 0x027B)) { M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xEA, 0xEB, 0xEC, 0xED, 0xEE // ..... }, 0x027C) } Local1 = CondRefOf (P909, Local0) If (M1A4 (Local1, 0x027D)) { M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC400F, __LINE__) } Local1 = CondRefOf (P90A, Local0) If (M1A4 (Local1, 0x027F)) { M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12344010", __LINE__) } Local1 = CondRefOf (P90B, Local0) If (M1A4 (Local1, 0x0281)) { M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas4011", __LINE__) } Local1 = CondRefOf (P90C, Local0) If (M1A4 (Local1, 0x0283)) { M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xEF, 0x30, 0x31 // .01 }, 0x0284) } Local1 = CondRefOf (P90D, Local0) If (M1A4 (Local1, 0x0285)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A4000, __LINE__) } Local1 = CondRefOf (P90E, Local0) If (M1A4 (Local1, 0x0287)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1794001, __LINE__) } Local1 = CondRefOf (P90F, Local0) If (M1A4 (Local1, 0x0289)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12344002", __LINE__) } Local1 = CondRefOf (P910, Local0) If (M1A4 (Local1, 0x028B)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu4003", __LINE__) } Local1 = CondRefOf (P911, Local0) If (M1A4 (Local1, 0x028D)) { M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xE0, 0xE1, 0xE2, 0xE3, 0xE4 // ..... }, 0x028E) } If (Y118) { Local1 = CondRefOf (P912, Local0) If (M1A4 (Local1, 0x028F)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Local1 = CondRefOf (P913, Local0) If (M1A4 (Local1, 0x0291)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Local1 = CondRefOf (P914, Local0) If (M1A4 (Local1, 0x0293)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Local1 = CondRefOf (P915, Local0) If (M1A4 (Local1, 0x0295)) { M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xE0, __LINE__) } } /* Elements of Package are NOT Computational Data */ Local1 = CondRefOf (P916, Local0) M1A0 (Local0, C00C, Local1, 0x0297) Local1 = CondRefOf (P917, Local0) M1A0 (Local0, C00C, Local1, 0x0298) Local1 = CondRefOf (P918, Local0) M1A0 (Local0, C00C, Local1, 0x19FF) Local1 = CondRefOf (P919, Local0) M1A0 (Local0, C00C, Local1, 0x029A) Local1 = CondRefOf (P91A, Local0) M1A0 (Local0, C00C, Local1, 0x029B) Local1 = CondRefOf (P91B, Local0) M1A0 (Local0, C00C, Local1, 0x029C) Local1 = CondRefOf (P91C, Local0) M1A0 (Local0, C00C, Local1, 0x029D) /* Elements of Package are Methods */ Local1 = CondRefOf (P91D, Local0) M1A0 (Local0, C00C, Local1, 0x029E) Local1 = CondRefOf (P91E, Local0) M1A0 (Local0, C00C, Local1, 0x029F) Local1 = CondRefOf (P91F, Local0) M1A0 (Local0, C00C, Local1, 0x02A0) Local1 = CondRefOf (P920, Local0) M1A0 (Local0, C00C, Local1, 0x02A1) Local1 = CondRefOf (P921, Local0) M1A0 (Local0, C00C, Local1, 0x02A2) Local1 = CondRefOf (P922, Local0) M1A0 (Local0, C00C, Local1, 0x02A3) Local1 = CondRefOf (P923, Local0) M1A0 (Local0, C00C, Local1, 0x02A4) Local1 = CondRefOf (P924, Local0) M1A0 (Local0, C00C, Local1, 0x02A5) Local1 = CondRefOf (P925, Local0) M1A0 (Local0, C00C, Local1, 0x02A6) Local1 = CondRefOf (P926, Local0) M1A0 (Local0, C00C, Local1, 0x02A7) Local1 = CondRefOf (P927, Local0) M1A0 (Local0, C00C, Local1, 0x02A8) Local1 = CondRefOf (P928, Local0) M1A0 (Local0, C00C, Local1, 0x02A9) Local1 = CondRefOf (P929, Local0) M1A0 (Local0, C00C, Local1, 0x02AA) Local1 = CondRefOf (P92A, Local0) M1A0 (Local0, C00C, Local1, 0x02AB) Local1 = CondRefOf (P92B, Local0) M1A0 (Local0, C00C, Local1, 0x02AC) Local1 = CondRefOf (P92C, Local0) M1A0 (Local0, C00C, Local1, 0x02AD) Local1 = CondRefOf (P92D, Local0) M1A0 (Local0, C00C, Local1, 0x02AE) Local1 = CondRefOf (P92E, Local0) M1A0 (Local0, C00C, Local1, 0x02AF) Local1 = CondRefOf (P92F, Local0) M1A0 (Local0, C00C, Local1, 0x02B0) Local1 = CondRefOf (P930, Local0) M1A0 (Local0, C00C, Local1, 0x02B1) Local1 = CondRefOf (P931, Local0) M1A0 (Local0, C00C, Local1, 0x02B2) Local1 = CondRefOf (P932, Local0) M1A0 (Local0, C00C, Local1, 0x02B3) Local1 = CondRefOf (P933, Local0) M1A0 (Local0, C00C, Local1, 0x02B4) Local1 = CondRefOf (P934, Local0) M1A0 (Local0, C00C, Local1, 0x02B5) Local1 = CondRefOf (P935, Local0) M1A0 (Local0, C00C, Local1, 0x02B6) Local1 = CondRefOf (P936, Local0) M1A0 (Local0, C00C, Local1, 0x02B7) Local1 = CondRefOf (P937, Local0) M1A0 (Local0, C00C, Local1, 0x02B8) Local1 = CondRefOf (P938, Local0) M1A0 (Local0, C00C, Local1, 0x02B9) Local1 = CondRefOf (P939, Local0) M1A0 (Local0, C00C, Local1, 0x02BA) Local1 = CondRefOf (P93A, Local0) M1A0 (Local0, C00C, Local1, 0x02BB) Local1 = CondRefOf (P93B, Local0) M1A0 (Local0, C00C, Local1, 0x02BC) Local1 = CondRefOf (P93C, Local0) M1A0 (Local0, C00C, Local1, 0x02BD) Local1 = CondRefOf (P93D, Local0) M1A0 (Local0, C00C, Local1, 0x02BE) Local1 = CondRefOf (P93E, Local0) M1A0 (Local0, C00C, Local1, 0x02BF) Local1 = CondRefOf (P93F, Local0) M1A0 (Local0, C00C, Local1, 0x02C0) Local1 = CondRefOf (P940, Local0) M1A0 (Local0, C00C, Local1, 0x02C1) Local1 = CondRefOf (P941, Local0) M1A0 (Local0, C00C, Local1, 0x02C2) Local1 = CondRefOf (P942, Local0) M1A0 (Local0, C00C, Local1, 0x02C3) Local1 = CondRefOf (P943, Local0) M1A0 (Local0, C00C, Local1, 0x02C4) Local1 = CondRefOf (P944, Local0) M1A0 (Local0, C00C, Local1, 0x02C5) Local1 = CondRefOf (P945, Local0) M1A0 (Local0, C00C, Local1, 0x02C6) Local1 = CondRefOf (P946, Local0) M1A0 (Local0, C00C, Local1, 0x02C7) Local1 = CondRefOf (P947, Local0) M1A0 (Local0, C00C, Local1, 0x02C8) Local1 = CondRefOf (P948, Local0) M1A0 (Local0, C00C, Local1, 0x02C9) Local1 = CondRefOf (P949, Local0) M1A0 (Local0, C00C, Local1, 0x02CA) Local1 = CondRefOf (P94A, Local0) M1A0 (Local0, C00C, Local1, 0x02CB) Local1 = CondRefOf (P94B, Local0) M1A0 (Local0, C00C, Local1, 0x02CC) Local1 = CondRefOf (P94C, Local0) M1A0 (Local0, C00C, Local1, 0x02CD) Local1 = CondRefOf (P94D, Local0) M1A0 (Local0, C00C, Local1, 0x02CE) Local1 = CondRefOf (P94E, Local0) M1A0 (Local0, C00C, Local1, 0x02CF) Local1 = CondRefOf (P94F, Local0) M1A0 (Local0, C00C, Local1, 0x02D0) Local1 = CondRefOf (P950, Local0) M1A0 (Local0, C00C, Local1, 0x02D1) Local1 = CondRefOf (P951, Local0) M1A0 (Local0, C00C, Local1, 0x02D2) Local1 = CondRefOf (P952, Local0) M1A0 (Local0, C00C, Local1, 0x02D3) /* Methods */ Local1 = CondRefOf (M900, Local0) M1A0 (Local0, C010, Local1, 0x02D4) Local1 = CondRefOf (M901, Local0) M1A0 (Local0, C010, Local1, 0x02D5) Local1 = CondRefOf (M902, Local0) M1A0 (Local0, C010, Local1, 0x02D6) Local1 = CondRefOf (M903, Local0) M1A0 (Local0, C010, Local1, 0x02D7) Local1 = CondRefOf (M904, Local0) M1A0 (Local0, C010, Local1, 0x02D8) Local1 = CondRefOf (M905, Local0) M1A0 (Local0, C010, Local1, 0x02D9) Local1 = CondRefOf (M906, Local0) M1A0 (Local0, C010, Local1, 0x02DA) Local1 = CondRefOf (M907, Local0) M1A0 (Local0, C010, Local1, 0x02DB) Local1 = CondRefOf (M908, Local0) M1A0 (Local0, C010, Local1, 0x02DC) Local1 = CondRefOf (M909, Local0) M1A0 (Local0, C010, Local1, 0x02DD) Local1 = CondRefOf (M90A, Local0) M1A0 (Local0, C010, Local1, 0x02DE) Local1 = CondRefOf (M90B, Local0) M1A0 (Local0, C010, Local1, 0x02DF) Local1 = CondRefOf (M90C, Local0) M1A0 (Local0, C010, Local1, 0x02E0) Local1 = CondRefOf (M90D, Local0) M1A0 (Local0, C010, Local1, 0x02E1) Local1 = CondRefOf (M90E, Local0) M1A0 (Local0, C010, Local1, 0x02E2) Local1 = CondRefOf (M90F, Local0) M1A0 (Local0, C010, Local1, 0x02E3) Local1 = CondRefOf (M910, Local0) M1A0 (Local0, C010, Local1, 0x02E4) Local1 = CondRefOf (M911, Local0) M1A0 (Local0, C010, Local1, 0x02E5) Local1 = CondRefOf (M912, Local0) M1A0 (Local0, C010, Local1, 0x02E6) Local1 = CondRefOf (M913, Local0) M1A0 (Local0, C010, Local1, 0x02E7) Local1 = CondRefOf (M914, Local0) M1A0 (Local0, C010, Local1, 0x02E8) Local1 = CondRefOf (M915, Local0) M1A0 (Local0, C010, Local1, 0x02E9) Local1 = CondRefOf (M916, Local0) M1A0 (Local0, C010, Local1, 0x02EA) Local1 = CondRefOf (M917, Local0) M1A0 (Local0, C010, Local1, 0x02EB) Local1 = CondRefOf (M918, Local0) M1A0 (Local0, C010, Local1, 0x02EC) Local1 = CondRefOf (M919, Local0) M1A0 (Local0, C010, Local1, 0x02ED) Local1 = CondRefOf (M91A, Local0) M1A0 (Local0, C010, Local1, 0x02EE) Local1 = CondRefOf (M91B, Local0) M1A0 (Local0, C010, Local1, 0x02EF) Local1 = CondRefOf (M91C, Local0) M1A0 (Local0, C010, Local1, 0x02F0) Local1 = CondRefOf (M91D, Local0) M1A0 (Local0, C010, Local1, 0x02F1) Local1 = CondRefOf (M91E, Local0) M1A0 (Local0, C010, Local1, 0x02F2) Local1 = CondRefOf (M91F, Local0) M1A0 (Local0, C010, Local1, 0x02F3) Local1 = CondRefOf (M920, Local0) M1A0 (Local0, C010, Local1, 0x02F4) Local1 = CondRefOf (M921, Local0) M1A0 (Local0, C010, Local1, 0x02F5) Local1 = CondRefOf (M922, Local0) M1A0 (Local0, C010, Local1, 0x02F6) Local1 = CondRefOf (M923, Local0) M1A0 (Local0, C010, Local1, 0x02F7) Local1 = CondRefOf (M924, Local0) M1A0 (Local0, C010, Local1, 0x02F8) Local1 = CondRefOf (M925, Local0) M1A0 (Local0, C010, Local1, 0x02F9) Local1 = CondRefOf (M926, Local0) M1A0 (Local0, C010, Local1, 0x02FA) Local1 = CondRefOf (M927, Local0) M1A0 (Local0, C010, Local1, 0x02FB) Local1 = CondRefOf (M928, Local0) M1A0 (Local0, C010, Local1, 0x02FC) Local1 = CondRefOf (M929, Local0) M1A0 (Local0, C010, Local1, 0x02FD) Local1 = CondRefOf (M92A, Local0) M1A0 (Local0, C010, Local1, 0x02FE) Local1 = CondRefOf (M92B, Local0) M1A0 (Local0, C010, Local1, 0x02FF) Local1 = CondRefOf (M92C, Local0) M1A0 (Local0, C010, Local1, 0x0300) Local1 = CondRefOf (M92D, Local0) M1A0 (Local0, C010, Local1, 0x0301) Local1 = CondRefOf (M92E, Local0) M1A0 (Local0, C010, Local1, 0x030C) Local1 = CondRefOf (M92F, Local0) M1A0 (Local0, C010, Local1, 0x030D) Local1 = CondRefOf (M930, Local0) M1A0 (Local0, C010, Local1, 0x030E) Local1 = CondRefOf (M931, Local0) M1A0 (Local0, C010, Local1, 0x030F) Local1 = CondRefOf (M932, Local0) M1A0 (Local0, C010, Local1, 0x0310) Local1 = CondRefOf (M933, Local0) M1A0 (Local0, C010, Local1, 0x0311) Local1 = CondRefOf (M934, Local0) M1A0 (Local0, C010, Local1, 0x0312) Local1 = CondRefOf (M935, Local0) M1A0 (Local0, C010, Local1, 0x0313) M000 () M1A6 () Return (Zero) } /* /////////////////////////////////////////////////////////////////////////// */ /* */ /* TABLE 3: all the legal ways to generate references to the */ /* immediate images (constants) being elements of Package */ /* */ /* /////////////////////////////////////////////////////////////////////////// */ Method (M16D, 0, NotSerialized) { If (Y100) { TS00 ("m16d") } Else { Debug = "m16d" } If (!Y900) { Debug = "Test m16d skipped!" Return (Zero) } /* T3:I0-I4 */ If (Y104) { Store (Index (Package (0x01){}, 0x00), Local0) M1A0 (Local0, C008, Ones, 0x0501) } Store (Index (Package (0x01) { 0x00ABCDEF }, 0x00), Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00ABCDEF, __LINE__) Store (Index (Package (0x01) { "123456789" }, 0x00), Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "123456789", __LINE__) Store (Index (Package (0x01) { "qwrtyuiop" }, 0x00), Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop", __LINE__) Store (Index (Package (0x01) { Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ } }, 0x00), Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, 0x0505) Store (Index (Package (0x01) { Package (0x01) { 0x00ABCDEF } }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x00ABCDEF, __LINE__) Store (Index (Package (0x01) { Package (0x01) { "123456789" } }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "123456789", __LINE__) Store (Index (Package (0x01) { Package (0x01) { "qwrtyuiop" } }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop", __LINE__) Store (Index (Package (0x01) { Package (0x01) { Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x0509) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { 0x00ABCDEF } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x00ABCDEF, __LINE__) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { "123456789" } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "123456789", __LINE__) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { "qwrtyuiop" } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "qwrtyuiop", __LINE__) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x050D) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { 0x00ABCDEF } } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x00ABCDEF, __LINE__) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { "123456789" } } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "123456789", __LINE__) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { "qwrtyuiop" } } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "qwrtyuiop", __LINE__) Store (Index (Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } } } } }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x0511) /* T3:IR0-IR4 */ If (Y104) { Local0 = Index (Package (0x01){}, 0x00, Local1) M1A0 (Local0, C008, Ones, 0x0512) M1A0 (Local1, C008, Ones, 0x0513) } Local0 = Index (Package (0x01) { 0x00ABCDEF }, 0x00, Local1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00ABCDEF, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0x00ABCDEF, __LINE__) Local0 = Index (Package (0x01) { "123456789" }, 0x00, Local1) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "123456789", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "123456789", __LINE__) Local0 = Index (Package (0x01) { "qwrtyuiop" }, 0x00, Local1) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyuiop", __LINE__) Local0 = Index (Package (0x01) { Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ } }, 0x00, Local1) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, 0x051A) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, 0x051B) Local0 = Index (Package (0x01) { Package (0x01) { 0x00ABCDEF } }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x00ABCDEF, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0x00ABCDEF, __LINE__) Local0 = Index (Package (0x01) { Package (0x01) { "123456789" } }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "123456789", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "123456789", __LINE__) Local0 = Index (Package (0x01) { Package (0x01) { "qwrtyuiop" } }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "qwrtyuiop", __LINE__) Local0 = Index (Package (0x01) { Package (0x01) { Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } } }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x0522) M1A2 (Local1, C00C, 0x01, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x0523) Local0 = Index (Package (0x01) { Package (0x01) { Package (0x01) { 0x00ABCDEF } } }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x00ABCDEF, __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C009, 0x00ABCDEF, __LINE__) Local0 = Index (Package (0x01) { Package (0x01) { Package (0x01) { "123456789" } } }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "123456789", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "123456789", __LINE__) Local0 = Index (Package (0x01) { Package (0x01) { Package (0x01) { "qwrtyuiop" } } }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "qwrtyuiop", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "qwrtyuiop", __LINE__) Local0 = Index (Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } } } }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x052A) M1A2 (Local1, C00C, 0x02, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x052B) Local0 = Index (Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { 0x00ABCDEF } } } }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x00ABCDEF, __LINE__) M1A2 (Local1, C00C, 0x03, 0x00, C009, 0x00ABCDEF, __LINE__) Local0 = Index (Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { "123456789" } } } }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "123456789", __LINE__) M1A2 (Local1, C00C, 0x03, 0x00, C00A, "123456789", __LINE__) Local0 = Index (Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { "qwrtyuiop" } } } }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "qwrtyuiop", __LINE__) M1A2 (Local1, C00C, 0x03, 0x00, C00A, "qwrtyuiop", __LINE__) Local0 = Index (Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . } } } } }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x0532) M1A2 (Local1, C00C, 0x03, 0x00, C00B, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x0533) } /* /////////////////////////////////////////////////////////////////////////// */ /* */ /* TABLE 4: all the legal ways to generate references to the named objects */ /* being elements of Package */ /* */ /* /////////////////////////////////////////////////////////////////////////// */ Method (M16E, 0, Serialized) { If (Y100) { TS00 ("m16e") } Else { Debug = "m16e" } If (!Y900) { Debug = "Test m16e skipped!" Return (Zero) } /* Not Computational Data */ Event (E900) Mutex (MX90, 0x00) Device (D900) { } ThermalZone (TZ90) { } Processor (PR90, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (R900, SystemMemory, 0x0100, 0x0100) OperationRegion (R9Z0, SystemMemory, 0x0100, 0x0100) PowerResource (PW90, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } /* Computational Data */ Name (I900, 0xFE7CB391D65A5000) Name (I901, 0x41795001) Name (I902, 0x00) Name (I903, 0xFFFFFFFFFFFFFFFF) Name (I904, 0xFFFFFFFF) Name (S900, "12345002") Name (S901, "qwrtyu5003") Name (B900, Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... }) Name (B9Z0, Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... }) CreateField (B900, 0x00, 0x08, BF90) Field (R900, ByteAcc, NoLock, Preserve) { F900, 8, F901, 8, F902, 8, F903, 8 } BankField (R900, F901, 0x00, ByteAcc, NoLock, Preserve) { BN90, 4 } IndexField (F902, F903, ByteAcc, NoLock, Preserve) { IF90, 8, IF91, 8 } /* Elements of Package are Uninitialized */ Name (P900, Package (0x01){}) /* Elements of Package are Computational Data */ Name (P901, Package (0x02) { 0xABCD5004, 0x1122334455665005 }) Name (P902, Package (0x02) { "12345006", "q1w2e3r4t5y6u7i85007" }) Name (P903, Package (0x02) { "qwrtyuiop5008", "1234567890abdef0255009" }) Name (P904, Package (0x02) { Buffer (0x03) { 0xF5, 0xF6, 0xF7 // ... }, Buffer (0x02) { 0xF8, 0xF9 // .. } }) Name (P905, Package (0x01) { Package (0x03) { 0x0ABC500A, "0xabc500b", "abc500c" } }) Name (P906, Package (0x01) { Package (0x01) { "abc500d" } }) Name (P907, Package (0x01) { Package (0x01) { "aqwevbgnm500e" } }) Name (P908, Package (0x01) { Package (0x01) { Buffer (0x05) { 0xFA, 0xFB, 0xFC, 0xFD, 0xFE // ..... } } }) Name (P909, Package (0x01) { Package (0x01) { Package (0x01) { 0x0ABC500F } } }) Name (P90A, Package (0x01) { Package (0x01) { Package (0x01) { "12345010" } } }) Name (P90B, Package (0x01) { Package (0x01) { Package (0x01) { "zxswefas5011" } } }) Name (P90C, Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x03) { 0xFF, 0x40, 0x41 // .@A } } } }) Name (P90D, Package (0x01) { I900 }) Name (P90E, Package (0x01) { I901 }) Name (P90F, Package (0x01) { S900 }) Name (P910, Package (0x01) { S901 }) Name (P911, Package (0x01) { B9Z0 }) Name (P912, Package (0x01) { F900 }) Name (P913, Package (0x01) { BN90 }) Name (P914, Package (0x01) { IF90 }) Name (P915, Package (0x01) { BF90 }) /* Elements of Package are NOT Computational Data */ Name (P916, Package (0x01) { D900 }) Name (P917, Package (0x01) { E900 }) Name (P918, Package (0x01) { MX90 }) Name (P919, Package (0x01) { R900 }) Name (P91A, Package (0x01) { PW90 }) Name (P91B, Package (0x01) { PR90 }) Name (P91C, Package (0x01) { TZ90 }) /* Methods */ Method (M900, 0, NotSerialized) { } Method (M901, 0, NotSerialized) { Return (0x0ABC5012) } Method (M902, 0, NotSerialized) { Return ("zxvgswquiy5013") } Method (M903, 0, NotSerialized) { Return (Buffer (0x01) { 0x42 // B }) } Method (M904, 0, NotSerialized) { Return (Package (0x01) { 0x0ABC5014 }) } Method (M905, 0, NotSerialized) { Return (Package (0x01) { "lkjhgtre5015" }) } Method (M906, 0, NotSerialized) { Return (Package (0x01) { Buffer (0x01) { 0x43 // C } }) } Method (M907, 0, NotSerialized) { Return (Package (0x01) { Package (0x01) { 0x0ABC5016 } }) } Method (M908, 0, NotSerialized) { Return (I900) /* \M16E.I900 */ } Method (M909, 0, NotSerialized) { Return (I901) /* \M16E.I901 */ } Method (M90A, 0, NotSerialized) { Return (S900) /* \M16E.S900 */ } Method (M90B, 0, NotSerialized) { Return (S901) /* \M16E.S901 */ } Method (M90C, 0, NotSerialized) { Return (B9Z0) /* \M16E.B9Z0 */ } Method (M90D, 0, NotSerialized) { Return (F900) /* \M16E.F900 */ } Method (M90E, 0, NotSerialized) { Return (BN90) /* \M16E.BN90 */ } Method (M90F, 0, NotSerialized) { Return (IF90) /* \M16E.IF90 */ } Method (M910, 0, NotSerialized) { Return (BF90) /* \M16E.BF90 */ } Method (M911, 0, NotSerialized) { Return (D900) /* \M16E.D900 */ } Method (M912, 0, NotSerialized) { Return (E900) /* \M16E.E900 */ } Method (M913, 0, NotSerialized) { Return (M901 ()) } Method (M914, 0, NotSerialized) { Return (MX90) /* \M16E.MX90 */ } Method (M915, 0, NotSerialized) { Return (R900) /* \M16E.R900 */ } Method (M916, 0, NotSerialized) { Return (PW90) /* \M16E.PW90 */ } Method (M917, 0, NotSerialized) { Return (PR90) /* \M16E.PR90 */ } Method (M918, 0, NotSerialized) { Return (TZ90) /* \M16E.TZ90 */ } Method (M919, 0, NotSerialized) { Return (P900) /* \M16E.P900 */ } Method (M91A, 0, NotSerialized) { Return (P901) /* \M16E.P901 */ } Method (M91B, 0, NotSerialized) { Return (P902) /* \M16E.P902 */ } Method (M91C, 0, NotSerialized) { Return (P903) /* \M16E.P903 */ } Method (M91D, 0, NotSerialized) { Return (P904) /* \M16E.P904 */ } Method (M91E, 0, NotSerialized) { Return (P905) /* \M16E.P905 */ } Method (M91F, 0, NotSerialized) { Return (P906) /* \M16E.P906 */ } Method (M920, 0, NotSerialized) { Return (P907) /* \M16E.P907 */ } Method (M921, 0, NotSerialized) { Return (P908) /* \M16E.P908 */ } Method (M922, 0, NotSerialized) { Return (P909) /* \M16E.P909 */ } Method (M923, 0, NotSerialized) { Return (P90A) /* \M16E.P90A */ } Method (M924, 0, NotSerialized) { Return (P90B) /* \M16E.P90B */ } Method (M925, 0, NotSerialized) { Return (P90C) /* \M16E.P90C */ } Method (M926, 0, NotSerialized) { Return (P90D) /* \M16E.P90D */ } Method (M927, 0, NotSerialized) { Return (P90E) /* \M16E.P90E */ } Method (M928, 0, NotSerialized) { Return (P90F) /* \M16E.P90F */ } Method (M929, 0, NotSerialized) { Return (P910) /* \M16E.P910 */ } Method (M92A, 0, NotSerialized) { Return (P911) /* \M16E.P911 */ } Method (M92B, 0, NotSerialized) { Return (P912) /* \M16E.P912 */ } Method (M92C, 0, NotSerialized) { Return (P913) /* \M16E.P913 */ } Method (M92D, 0, NotSerialized) { Return (P914) /* \M16E.P914 */ } Method (M92E, 0, NotSerialized) { Return (P915) /* \M16E.P915 */ } Method (M92F, 0, NotSerialized) { Return (P916) /* \M16E.P916 */ } Method (M930, 0, NotSerialized) { Return (P917) /* \M16E.P917 */ } Method (M931, 0, NotSerialized) { Return (P918) /* \M16E.P918 */ } Method (M932, 0, NotSerialized) { Return (P919) /* \M16E.P919 */ } Method (M933, 0, NotSerialized) { Return (P91A) /* \M16E.P91A */ } Method (M934, 0, NotSerialized) { Return (P91B) /* \M16E.P91B */ } Method (M935, 0, NotSerialized) { Return (P91C) /* \M16E.P91C */ } /* Elements of Package are Methods */ Name (P91D, Package (0x01) { M900 }) Name (P91E, Package (0x01) { M901 }) Name (P91F, Package (0x01) { M902 }) Name (P920, Package (0x01) { M903 }) Name (P921, Package (0x01) { M904 }) Name (P922, Package (0x01) { M905 }) Name (P923, Package (0x01) { M906 }) Name (P924, Package (0x01) { M907 }) Name (P925, Package (0x01) { M908 }) Name (P926, Package (0x01) { M909 }) Name (P927, Package (0x01) { M90A }) Name (P928, Package (0x01) { M90B }) Name (P929, Package (0x01) { M90C }) Name (P92A, Package (0x01) { M90D }) Name (P92B, Package (0x01) { M90E }) Name (P92C, Package (0x01) { M90F }) Name (P92D, Package (0x01) { M910 }) Name (P92E, Package (0x01) { M911 }) Name (P92F, Package (0x01) { M912 }) Name (P930, Package (0x01) { M913 }) Name (P931, Package (0x01) { M914 }) Name (P932, Package (0x01) { M915 }) Name (P933, Package (0x01) { M916 }) Name (P934, Package (0x01) { M917 }) If (Y103) { Name (P935, Package (0x01) { M918 }) } Name (P936, Package (0x01) { M919 }) Name (P937, Package (0x01) { M91A }) Name (P938, Package (0x01) { M91B }) Name (P939, Package (0x01) { M91C }) Name (P93A, Package (0x01) { M91D }) Name (P93B, Package (0x01) { M91E }) Name (P93C, Package (0x01) { M91F }) Name (P93D, Package (0x01) { M920 }) Name (P93E, Package (0x01) { M921 }) Name (P93F, Package (0x01) { M922 }) Name (P940, Package (0x01) { M923 }) Name (P941, Package (0x01) { M924 }) Name (P942, Package (0x01) { M925 }) Name (P943, Package (0x01) { M926 }) Name (P944, Package (0x01) { M927 }) Name (P945, Package (0x01) { M928 }) Name (P946, Package (0x01) { M929 }) Name (P947, Package (0x01) { M92A }) Name (P948, Package (0x01) { M92B }) Name (P949, Package (0x01) { M92C }) Name (P94A, Package (0x01) { M92D }) Name (P94B, Package (0x01) { M92E }) Name (P94C, Package (0x01) { M92F }) Name (P94D, Package (0x01) { M930 }) Name (P94E, Package (0x01) { M931 }) Name (P94F, Package (0x01) { M932 }) Name (P950, Package (0x01) { M933 }) Name (P951, Package (0x01) { M934 }) Name (P952, Package (0x01) { M935 }) Name (P953, Package (0x02) { 0xABCD5018, 0xABCD5019 }) Name (P954, Package (0x02) { 0xABCD5018, 0xABCD5019 }) /* Check that all the data (local) are not corrupted */ Method (M000, 0, NotSerialized) { /* Computational Data */ /* Integer */ Local0 = ObjectType (I900) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I900 != 0xFE7CB391D65A5000)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I900, 0xFE7CB391D65A5000) } Local0 = ObjectType (I901) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I901 != 0x41795001)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I901, 0x41795001) } Local0 = ObjectType (I902) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I902 != 0x00)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I902, 0x00) } Local0 = ObjectType (I903) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I903 != 0xFFFFFFFFFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I903, 0xFFFFFFFFFFFFFFFF) } Local0 = ObjectType (I904) If ((Local0 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C009) } If ((I904 != 0xFFFFFFFF)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, I904, 0xFFFFFFFF) } /* String */ Local0 = ObjectType (S900) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S900 != "12345002")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S900, "12345002") } Local0 = ObjectType (S901) If ((Local0 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S901 != "qwrtyu5003")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, S901, "qwrtyu5003") } /* Buffer */ Local0 = ObjectType (B900) If ((Local0 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C00B) } If ((B900 != Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, B900, Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... }) } /* Buffer Field */ Local0 = ObjectType (BF90) If ((Local0 != C016)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local0, C016) } If (BF90 != Buffer(){0xF0}) { ERR (C080, Z077, __LINE__, 0x00, 0x00, BF90, Buffer(){0xF0}) } /* One level Package */ Store (P900 [0x00], Local0) Local1 = ObjectType (Local0) If ((Local1 != C008)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, C008) } Store (P901 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD5004)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD5004) } Store (P901 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0x1122334455665005)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0x1122334455665005) } Store (P902 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "12345006")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "12345006") } Store (P902 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "q1w2e3r4t5y6u7i85007")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "q1w2e3r4t5y6u7i85007") } Store (P903 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "qwrtyuiop5008")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "qwrtyuiop5008") } Store (P903 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "1234567890abdef0255009")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, "1234567890abdef0255009") } Store (P904 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x03) { 0xF5, 0xF6, 0xF7 // ... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x03) { 0xF5, 0xF6, 0xF7 // ... }) } Store (P904 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x02) { 0xF8, 0xF9 // .. })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, Buffer (0x02) { 0xF8, 0xF9 // .. }) } /* Two level Package */ Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C009) } If ((Local3 != 0x0ABC500A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, 0x0ABC500A) } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x01], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "0xabc500b")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "0xabc500b") } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x02], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc500c")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc500c") } Store (P906 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc500d")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "abc500d") } Store (P907 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "aqwevbgnm500e")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, "aqwevbgnm500e") } Store (P908 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local4, C00B) } If ((Local3 != Buffer (0x05) { 0xFA, 0xFB, 0xFC, 0xFD, 0xFE // ..... })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local3, Buffer (0x05) { 0xFA, 0xFB, 0xFC, 0xFD, 0xFE // ..... }) } /* Three level Package */ Store (P909 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C009) } If ((Local5 != 0x0ABC500F)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, 0x0ABC500F) } Store (P90A [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "12345010")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "12345010") } Store (P90B [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "zxswefas5011")) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, "zxswefas5011") } Store (P90C [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00B)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local6, C00B) } If ((Local5 != Buffer (0x03) { 0xFF, 0x40, 0x41 // .@A })) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local5, Buffer (0x03) { 0xFF, 0x40, 0x41 // .@A }) } Store (P953 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD5018)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD5018) } Store (P953 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD5019)) { ERR (C080, Z077, __LINE__, 0x00, 0x00, Local1, 0xABCD5019) } /* Not Computational Data */ M1AA (C080, E900, C00F, 0x00, 0x013B) M1AA (C080, MX90, C011, 0x00, 0x013C) M1AA (C080, D900, C00E, 0x00, 0x013D) If (Y508) { M1AA (C080, TZ90, C015, 0x00, 0x013E) } M1AA (C080, PR90, C014, 0x00, 0x013F) M1AA (C080, R900, C012, 0x00, 0x0140) M1AA (C080, PW90, C013, 0x00, 0x0141) /* * // Field Unit (Field) * * if (LNotEqual(f900, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, f900, 0xd7) * } * * // Field Unit (IndexField) * * if (LNotEqual(if90, 0xd7)) { * err(c080, z077, __LINE__, 0, 0, if90, 0xd7) * } */ } /* m000 */ /* T4:x,I1-I14,x,x */ /* Computational Data */ Store (Index (Package (0x01) { I900 }, 0x00), Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A5000, __LINE__) Store (Index (Package (0x01) { I901 }, 0x00), Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x41795001, __LINE__) Store (Index (Package (0x01) { S900 }, 0x00), Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12345002", __LINE__) Store (Index (Package (0x01) { S901 }, 0x00), Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu5003", __LINE__) Store (Index (Package (0x01) { B900 }, 0x00), Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... }, 0x0318) If (Y118) { Store (Index (Package (0x01) { F900 }, 0x00), Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { BN90 }, 0x00), Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { IF90 }, 0x00), Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { BF90 }, 0x00), Local0) M1A2 (Local0, C016, 0x00, 0x00, C016, 0xF0, __LINE__) } /* Not Computational Data */ Store (Index (Package (0x01) { E900 }, 0x00), Local0) M1A0 (Local0, C00F, Ones, 0x031D) Store (Index (Package (0x01) { MX90 }, 0x00), Local0) M1A0 (Local0, C011, Ones, 0x031E) Store (Index (Package (0x01) { D900 }, 0x00), Local0) M1A0 (Local0, C00E, Ones, 0x031F) Store (Index (Package (0x01) { TZ90 }, 0x00), Local0) M1A0 (Local0, C015, Ones, 0x0320) Store (Index (Package (0x01) { PR90 }, 0x00), Local0) M1A0 (Local0, C014, Ones, 0x0321) Store (Index (Package (0x01) { R900 }, 0x00), Local0) M1A0 (Local0, C012, Ones, 0x0322) Store (Index (Package (0x01) { PW90 }, 0x00), Local0) M1A0 (Local0, C013, Ones, 0x0323) /* Elements of Package are Uninitialized */ Store (Index (Package (0x01) { P900 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0324) /* Elements of Package are Computational Data */ Store (Index (Package (0x01) { P901 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD5004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455665005, __LINE__) Store (Index (Package (0x01) { P902 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12345006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i85007", __LINE__) Store (Index (Package (0x01) { P903 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop5008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0255009", __LINE__) Store (Index (Package (0x01) { P904 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xF5, 0xF6, 0xF7 // ... }, 0x032B) Store (Index (Package (0x01) { P905 }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC500A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc500b", __LINE__) Store (Index (Package (0x01) { P906 }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc500d", __LINE__) Store (Index (Package (0x01) { P907 }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm500e", __LINE__) Store (Index (Package (0x01) { P908 }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xFA, 0xFB, 0xFC, 0xFD, 0xFE // ..... }, 0x0330) Store (Index (Package (0x01) { P909 }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC500F, __LINE__) Store (Index (Package (0x01) { P90A }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12345010", __LINE__) Store (Index (Package (0x01) { P90B }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas5011", __LINE__) Store (Index (Package (0x01) { P90C }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xFF, 0x40, 0x41 // .@A }, 0x0334) Store (Index (Package (0x01) { P90D }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A5000, __LINE__) Store (Index (Package (0x01) { P90E }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x41795001, __LINE__) Store (Index (Package (0x01) { P90F }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12345002", __LINE__) Store (Index (Package (0x01) { P910 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu5003", __LINE__) Store (Index (Package (0x01) { P911 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... }, 0x0339) If (Y118) { Store (Index (Package (0x01) { P912 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { P913 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { P914 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { P915 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xF0, __LINE__) } /* Elements of Package are NOT Computational Data */ Store (Index (Package (0x01) { P916 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x033E) Store (Index (Package (0x01) { P917 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x033F) Store (Index (Package (0x01) { P918 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0340) Store (Index (Package (0x01) { P919 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0341) Store (Index (Package (0x01) { P91A }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0342) Store (Index (Package (0x01) { P91B }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0343) Store (Index (Package (0x01) { P91C }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0344) /* Elements of Package are Methods */ Store (Index (Package (0x01) { P91D }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0345) Store (Index (Package (0x01) { P91E }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0346) Store (Index (Package (0x01) { P91F }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0347) Store (Index (Package (0x01) { P920 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0348) Store (Index (Package (0x01) { P921 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0349) Store (Index (Package (0x01) { P922 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034A) Store (Index (Package (0x01) { P923 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034B) Store (Index (Package (0x01) { P924 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034C) Store (Index (Package (0x01) { P925 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034D) Store (Index (Package (0x01) { P926 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034E) Store (Index (Package (0x01) { P927 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034F) Store (Index (Package (0x01) { P928 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0350) Store (Index (Package (0x01) { P929 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0351) Store (Index (Package (0x01) { P92A }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0352) Store (Index (Package (0x01) { P92B }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0353) Store (Index (Package (0x01) { P92C }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0354) Store (Index (Package (0x01) { P92D }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0355) Store (Index (Package (0x01) { P92E }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0356) Store (Index (Package (0x01) { P92F }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0357) Store (Index (Package (0x01) { P930 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0358) Store (Index (Package (0x01) { P931 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0359) Store (Index (Package (0x01) { P932 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035A) Store (Index (Package (0x01) { P933 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035B) Store (Index (Package (0x01) { P934 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035C) Store (Index (Package (0x01) { P935 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035D) Store (Index (Package (0x01) { P936 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035E) Store (Index (Package (0x01) { P937 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035F) Store (Index (Package (0x01) { P938 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0360) Store (Index (Package (0x01) { P939 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0361) Store (Index (Package (0x01) { P93A }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0362) Store (Index (Package (0x01) { P93B }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0363) Store (Index (Package (0x01) { P93C }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0364) Store (Index (Package (0x01) { P93D }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0365) Store (Index (Package (0x01) { P93E }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0366) Store (Index (Package (0x01) { P93F }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0367) Store (Index (Package (0x01) { P940 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0368) Store (Index (Package (0x01) { P941 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0369) Store (Index (Package (0x01) { P942 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036A) Store (Index (Package (0x01) { P943 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036B) Store (Index (Package (0x01) { P944 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036C) Store (Index (Package (0x01) { P945 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036D) Store (Index (Package (0x01) { P946 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036E) Store (Index (Package (0x01) { P947 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036F) Store (Index (Package (0x01) { P948 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0370) Store (Index (Package (0x01) { P949 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0371) Store (Index (Package (0x01) { P94A }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0372) Store (Index (Package (0x01) { P94B }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0373) Store (Index (Package (0x01) { P94C }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0374) Store (Index (Package (0x01) { P94D }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0375) Store (Index (Package (0x01) { P94E }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0376) Store (Index (Package (0x01) { P94F }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0377) Store (Index (Package (0x01) { P950 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0378) Store (Index (Package (0x01) { P951 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0379) Store (Index (Package (0x01) { P952 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x037A) /* Methods */ Store (Index (Package (0x01) { M900 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037B) Store (Index (Package (0x01) { M901 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037C) Store (Index (Package (0x01) { M902 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037D) Store (Index (Package (0x01) { M903 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037E) Store (Index (Package (0x01) { M904 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037F) Store (Index (Package (0x01) { M905 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0380) Store (Index (Package (0x01) { M906 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0381) Store (Index (Package (0x01) { M907 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0382) Store (Index (Package (0x01) { M908 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0383) Store (Index (Package (0x01) { M909 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0384) Store (Index (Package (0x01) { M90A }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0385) Store (Index (Package (0x01) { M90B }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0386) Store (Index (Package (0x01) { M90C }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0387) Store (Index (Package (0x01) { M90D }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0388) Store (Index (Package (0x01) { M90E }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0389) Store (Index (Package (0x01) { M90F }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038A) Store (Index (Package (0x01) { M910 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038B) Store (Index (Package (0x01) { M911 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038C) Store (Index (Package (0x01) { M912 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038D) Store (Index (Package (0x01) { M913 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038E) Store (Index (Package (0x01) { M914 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038F) Store (Index (Package (0x01) { M915 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0390) Store (Index (Package (0x01) { M916 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0391) Store (Index (Package (0x01) { M917 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0392) Store (Index (Package (0x01) { M918 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0393) Store (Index (Package (0x01) { M919 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0394) Store (Index (Package (0x01) { M91A }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0395) Store (Index (Package (0x01) { M91B }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0396) Store (Index (Package (0x01) { M91C }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0397) Store (Index (Package (0x01) { M91D }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0398) Store (Index (Package (0x01) { M91E }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0399) Store (Index (Package (0x01) { M91F }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039A) Store (Index (Package (0x01) { M920 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039B) Store (Index (Package (0x01) { M921 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039C) Store (Index (Package (0x01) { M922 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039D) Store (Index (Package (0x01) { M923 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039E) Store (Index (Package (0x01) { M924 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039F) Store (Index (Package (0x01) { M925 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A0) Store (Index (Package (0x01) { M926 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A1) Store (Index (Package (0x01) { M927 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A2) Store (Index (Package (0x01) { M928 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A3) Store (Index (Package (0x01) { M929 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A4) Store (Index (Package (0x01) { M92A }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A5) Store (Index (Package (0x01) { M92B }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A6) Store (Index (Package (0x01) { M92C }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A7) Store (Index (Package (0x01) { M92D }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A8) Store (Index (Package (0x01) { M92E }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A9) Store (Index (Package (0x01) { M92F }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AA) Store (Index (Package (0x01) { M930 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AB) Store (Index (Package (0x01) { M931 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AC) Store (Index (Package (0x01) { M932 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AD) Store (Index (Package (0x01) { M933 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AE) Store (Index (Package (0x01) { M934 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AF) Store (Index (Package (0x01) { M935 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03B0) /* T4:x,IR1-IR14,x,x */ /* Computational Data */ Local0 = Index (Package (0x01) { I900 }, 0x00, Local1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A5000, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xFE7CB391D65A5000, __LINE__) Local0 = Index (Package (0x01) { I901 }, 0x00, Local1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x41795001, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0x41795001, __LINE__) Local0 = Index (Package (0x01) { S900 }, 0x00, Local1) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12345002", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12345002", __LINE__) Local0 = Index (Package (0x01) { S901 }, 0x00, Local1) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu5003", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyu5003", __LINE__) Local0 = Index (Package (0x01) { B900 }, 0x00, Local1) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... }, 0x03B9) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... }, 0x03BA) If (Y118) { Local0 = Index (Package (0x01) { F900 }, 0x00, Local1) M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C009, 0x00, __LINE__) Local0 = Index (Package (0x01) { BN90 }, 0x00, Local1) M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C009, 0x00, __LINE__) Local0 = Index (Package (0x01) { IF90 }, 0x00, Local1) M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C009, 0x00, __LINE__) Local0 = Index (Package (0x01) { BF90 }, 0x00, Local1) M1A2 (Local0, C016, 0x00, 0x00, C009, 0xF0, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0xF0, __LINE__) } /* Not Computational Data */ Local0 = Index (Package (0x01) { E900 }, 0x00, Local1) M1A0 (Local0, C00F, Ones, 0x03C3) M1A0 (Local1, C00F, Ones, 0x03C4) Local0 = Index (Package (0x01) { MX90 }, 0x00, Local1) M1A0 (Local0, C011, Ones, 0x03C5) M1A0 (Local1, C011, Ones, 0x03C6) Local0 = Index (Package (0x01) { D900 }, 0x00, Local1) M1A0 (Local0, C00E, Ones, 0x03C7) M1A0 (Local1, C00E, Ones, 0x03C8) Local0 = Index (Package (0x01) { TZ90 }, 0x00, Local1) M1A0 (Local0, C015, Ones, 0x03C9) M1A0 (Local1, C015, Ones, 0x03CA) Local0 = Index (Package (0x01) { PR90 }, 0x00, Local1) M1A0 (Local0, C014, Ones, 0x03CB) M1A0 (Local1, C014, Ones, 0x03CC) Local0 = Index (Package (0x01) { R900 }, 0x00, Local1) M1A0 (Local0, C012, Ones, 0x03CD) M1A0 (Local1, C012, Ones, 0x03CE) Local0 = Index (Package (0x01) { PW90 }, 0x00, Local1) M1A0 (Local0, C013, Ones, 0x03CF) M1A0 (Local1, C013, Ones, 0x03D0) /* Elements of Package are Uninitialized */ Local0 = Index (Package (0x01) { P900 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x03D1) M1A0 (Local1, C00C, Ones, 0x03D2) /* Elements of Package are Computational Data */ Local0 = Index (Package (0x01) { P901 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD5004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455665005, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0xABCD5004, __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C009, 0x1122334455665005, __LINE__) Local0 = Index (Package (0x01) { P902 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12345006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i85007", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "12345006", __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i85007", __LINE__) Local0 = Index (Package (0x01) { P903 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop5008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0255009", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "qwrtyuiop5008", __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C00A, "1234567890abdef0255009", __LINE__) Local0 = Index (Package (0x01) { P904 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xF5, 0xF6, 0xF7 // ... }, 0x03DF) M1A2 (Local1, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xF5, 0xF6, 0xF7 // ... }, 0x03E0) Local0 = Index (Package (0x01) { P905 }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC500A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc500b", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C009, 0x0ABC500A, __LINE__) M1A2 (Local1, C00C, 0x02, 0x01, C00A, "0xabc500b", __LINE__) Local0 = Index (Package (0x01) { P906 }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc500d", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "abc500d", __LINE__) Local0 = Index (Package (0x01) { P907 }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm500e", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "aqwevbgnm500e", __LINE__) Local0 = Index (Package (0x01) { P908 }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xFA, 0xFB, 0xFC, 0xFD, 0xFE // ..... }, 0x03E9) M1A2 (Local1, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xFA, 0xFB, 0xFC, 0xFD, 0xFE // ..... }, 0x03EA) Local0 = Index (Package (0x01) { P909 }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC500F, __LINE__) M1A2 (Local1, C00C, 0x03, 0x00, C009, 0x0ABC500F, __LINE__) Local0 = Index (Package (0x01) { P90A }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12345010", __LINE__) M1A2 (Local1, C00C, 0x03, 0x00, C00A, "12345010", __LINE__) Local0 = Index (Package (0x01) { P90B }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas5011", __LINE__) M1A2 (Local1, C00C, 0x03, 0x00, C00A, "zxswefas5011", __LINE__) Local0 = Index (Package (0x01) { P90C }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xFF, 0x40, 0x41 // .@A }, 0x03F1) M1A2 (Local1, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xFF, 0x40, 0x41 // .@A }, 0x03F2) Local0 = Index (Package (0x01) { P90D }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A5000, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A5000, __LINE__) Local0 = Index (Package (0x01) { P90E }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x41795001, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0x41795001, __LINE__) Local0 = Index (Package (0x01) { P90F }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12345002", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "12345002", __LINE__) Local0 = Index (Package (0x01) { P910 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu5003", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "qwrtyu5003", __LINE__) Local0 = Index (Package (0x01) { P911 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... }, 0x03FB) M1A2 (Local1, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 // ..... }, 0x03FC) If (Y118) { Local0 = Index (Package (0x01) { P912 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = Index (Package (0x01) { P913 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = Index (Package (0x01) { P914 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = Index (Package (0x01) { P915 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xF0, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C016, 0xF0, __LINE__) } /* Elements of Package are NOT Computational Data */ Local0 = Index (Package (0x01) { P916 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0405) M1A0 (Local1, C00C, Ones, 0x0406) Local0 = Index (Package (0x01) { P917 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0407) M1A0 (Local1, C00C, Ones, 0x0408) Local0 = Index (Package (0x01) { P918 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0409) M1A0 (Local1, C00C, Ones, 0x040A) Local0 = Index (Package (0x01) { P919 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x040B) M1A0 (Local1, C00C, Ones, 0x040C) Local0 = Index (Package (0x01) { P91A }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x040D) M1A0 (Local1, C00C, Ones, 0x040E) Local0 = Index (Package (0x01) { P91B }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x040F) M1A0 (Local1, C00C, Ones, 0x0410) Local0 = Index (Package (0x01) { P91C }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0411) M1A0 (Local1, C00C, Ones, 0x0412) /* Elements of Package are Methods */ Local0 = Index (Package (0x01) { P91D }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0413) M1A0 (Local1, C00C, Ones, 0x0414) Local0 = Index (Package (0x01) { P91E }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0415) M1A0 (Local1, C00C, Ones, 0x0416) Local0 = Index (Package (0x01) { P91F }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0417) M1A0 (Local1, C00C, Ones, 0x0418) Local0 = Index (Package (0x01) { P920 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0419) M1A0 (Local1, C00C, Ones, 0x041A) Local0 = Index (Package (0x01) { P921 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x041B) M1A0 (Local1, C00C, Ones, 0x041C) Local0 = Index (Package (0x01) { P922 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x041D) M1A0 (Local1, C00C, Ones, 0x041E) Local0 = Index (Package (0x01) { P923 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x041F) M1A0 (Local1, C00C, Ones, 0x0420) Local0 = Index (Package (0x01) { P924 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0421) M1A0 (Local1, C00C, Ones, 0x0422) Local0 = Index (Package (0x01) { P925 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0423) M1A0 (Local1, C00C, Ones, 0x0424) Local0 = Index (Package (0x01) { P926 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0425) M1A0 (Local1, C00C, Ones, 0x0426) Local0 = Index (Package (0x01) { P927 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0427) M1A0 (Local1, C00C, Ones, 0x0428) Local0 = Index (Package (0x01) { P928 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0429) M1A0 (Local1, C00C, Ones, 0x042A) Local0 = Index (Package (0x01) { P929 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x042B) M1A0 (Local1, C00C, Ones, 0x042C) Local0 = Index (Package (0x01) { P92A }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x042D) M1A0 (Local1, C00C, Ones, 0x042E) Local0 = Index (Package (0x01) { P92B }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x042F) M1A0 (Local1, C00C, Ones, 0x0430) Local0 = Index (Package (0x01) { P92C }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0431) M1A0 (Local1, C00C, Ones, 0x0432) Local0 = Index (Package (0x01) { P92D }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0433) M1A0 (Local1, C00C, Ones, 0x0434) Local0 = Index (Package (0x01) { P92E }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0435) M1A0 (Local1, C00C, Ones, 0x0436) Local0 = Index (Package (0x01) { P92F }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0437) M1A0 (Local1, C00C, Ones, 0x0438) Local0 = Index (Package (0x01) { P930 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0439) M1A0 (Local1, C00C, Ones, 0x043A) Local0 = Index (Package (0x01) { P931 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x043B) M1A0 (Local1, C00C, Ones, 0x043C) Local0 = Index (Package (0x01) { P932 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x043D) M1A0 (Local1, C00C, Ones, 0x043E) Local0 = Index (Package (0x01) { P933 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x043F) M1A0 (Local1, C00C, Ones, 0x0440) Local0 = Index (Package (0x01) { P934 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0441) M1A0 (Local1, C00C, Ones, 0x0442) Local0 = Index (Package (0x01) { P935 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0443) M1A0 (Local1, C00C, Ones, 0x0444) Local0 = Index (Package (0x01) { P936 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0445) M1A0 (Local1, C00C, Ones, 0x0446) Local0 = Index (Package (0x01) { P937 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0447) M1A0 (Local1, C00C, Ones, 0x0448) Local0 = Index (Package (0x01) { P938 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0449) M1A0 (Local1, C00C, Ones, 0x044A) Local0 = Index (Package (0x01) { P939 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x044B) M1A0 (Local1, C00C, Ones, 0x044C) Local0 = Index (Package (0x01) { P93A }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x044D) M1A0 (Local1, C00C, Ones, 0x044E) Local0 = Index (Package (0x01) { P93B }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x044F) M1A0 (Local1, C00C, Ones, 0x0450) Local0 = Index (Package (0x01) { P93C }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0451) M1A0 (Local1, C00C, Ones, 0x0452) Local0 = Index (Package (0x01) { P93D }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0453) M1A0 (Local1, C00C, Ones, 0x0454) Local0 = Index (Package (0x01) { P93E }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0455) M1A0 (Local1, C00C, Ones, 0x0456) Local0 = Index (Package (0x01) { P93F }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0457) M1A0 (Local1, C00C, Ones, 0x0458) Local0 = Index (Package (0x01) { P940 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0459) M1A0 (Local1, C00C, Ones, 0x045A) Local0 = Index (Package (0x01) { P941 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x045B) M1A0 (Local1, C00C, Ones, 0x045C) Local0 = Index (Package (0x01) { P942 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x045D) M1A0 (Local1, C00C, Ones, 0x045E) Local0 = Index (Package (0x01) { P943 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x045F) M1A0 (Local1, C00C, Ones, 0x0460) Local0 = Index (Package (0x01) { P944 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0461) M1A0 (Local1, C00C, Ones, 0x0462) Local0 = Index (Package (0x01) { P945 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0463) M1A0 (Local1, C00C, Ones, 0x0464) Local0 = Index (Package (0x01) { P946 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0465) M1A0 (Local1, C00C, Ones, 0x0466) Local0 = Index (Package (0x01) { P947 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0467) M1A0 (Local1, C00C, Ones, 0x0468) Local0 = Index (Package (0x01) { P948 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0469) M1A0 (Local1, C00C, Ones, 0x046A) Local0 = Index (Package (0x01) { P949 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x046B) M1A0 (Local1, C00C, Ones, 0x046C) Local0 = Index (Package (0x01) { P94A }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x046D) M1A0 (Local1, C00C, Ones, 0x046E) Local0 = Index (Package (0x01) { P94B }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x046F) M1A0 (Local1, C00C, Ones, 0x0470) Local0 = Index (Package (0x01) { P94C }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0471) M1A0 (Local1, C00C, Ones, 0x0472) Local0 = Index (Package (0x01) { P94D }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0473) M1A0 (Local1, C00C, Ones, 0x0474) Local0 = Index (Package (0x01) { P94E }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0475) M1A0 (Local1, C00C, Ones, 0x0476) Local0 = Index (Package (0x01) { P94F }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0477) M1A0 (Local1, C00C, Ones, 0x0478) Local0 = Index (Package (0x01) { P950 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0479) M1A0 (Local1, C00C, Ones, 0x047A) Local0 = Index (Package (0x01) { P951 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x047B) M1A0 (Local1, C00C, Ones, 0x047C) Local0 = Index (Package (0x01) { P952 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x047D) M1A0 (Local1, C00C, Ones, 0x047E) /* Methods */ Local0 = Index (Package (0x01) { M900 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x047F) M1A0 (Local1, C010, Ones, 0x0480) Local0 = Index (Package (0x01) { M901 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0481) M1A0 (Local1, C010, Ones, 0x0482) Local0 = Index (Package (0x01) { M902 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0483) M1A0 (Local1, C010, Ones, 0x0484) Local0 = Index (Package (0x01) { M903 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0485) M1A0 (Local1, C010, Ones, 0x0486) Local0 = Index (Package (0x01) { M904 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0487) M1A0 (Local1, C010, Ones, 0x0488) Local0 = Index (Package (0x01) { M905 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0489) M1A0 (Local1, C010, Ones, 0x048A) Local0 = Index (Package (0x01) { M906 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x048B) M1A0 (Local1, C010, Ones, 0x048C) Local0 = Index (Package (0x01) { M907 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x048D) M1A0 (Local1, C010, Ones, 0x048E) Local0 = Index (Package (0x01) { M908 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x048F) M1A0 (Local1, C010, Ones, 0x0490) Local0 = Index (Package (0x01) { M909 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0491) M1A0 (Local1, C010, Ones, 0x0492) Local0 = Index (Package (0x01) { M90A }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0493) M1A0 (Local1, C010, Ones, 0x0494) Local0 = Index (Package (0x01) { M90B }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0495) M1A0 (Local1, C010, Ones, 0x0496) Local0 = Index (Package (0x01) { M90C }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0497) M1A0 (Local1, C010, Ones, 0x0498) Local0 = Index (Package (0x01) { M90D }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0499) M1A0 (Local1, C010, Ones, 0x049A) Local0 = Index (Package (0x01) { M90E }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x049B) M1A0 (Local1, C010, Ones, 0x049C) Local0 = Index (Package (0x01) { M90F }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x049D) M1A0 (Local1, C010, Ones, 0x049E) Local0 = Index (Package (0x01) { M910 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x049F) M1A0 (Local1, C010, Ones, 0x04A0) Local0 = Index (Package (0x01) { M911 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A1) M1A0 (Local1, C010, Ones, 0x04A2) Local0 = Index (Package (0x01) { M912 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A3) M1A0 (Local1, C010, Ones, 0x04A4) Local0 = Index (Package (0x01) { M913 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A5) M1A0 (Local1, C010, Ones, 0x04A6) Local0 = Index (Package (0x01) { M914 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A7) M1A0 (Local1, C010, Ones, 0x04A8) Local0 = Index (Package (0x01) { M915 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A9) M1A0 (Local1, C010, Ones, 0x04AA) Local0 = Index (Package (0x01) { M916 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04AB) M1A0 (Local1, C010, Ones, 0x04AC) Local0 = Index (Package (0x01) { M917 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04AD) M1A0 (Local1, C010, Ones, 0x04AE) Local0 = Index (Package (0x01) { M918 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04AF) M1A0 (Local1, C010, Ones, 0x04B0) Local0 = Index (Package (0x01) { M919 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B1) M1A0 (Local1, C010, Ones, 0x04B2) Local0 = Index (Package (0x01) { M91A }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B3) M1A0 (Local1, C010, Ones, 0x04B4) Local0 = Index (Package (0x01) { M91B }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B5) M1A0 (Local1, C010, Ones, 0x04B6) Local0 = Index (Package (0x01) { M91C }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B7) M1A0 (Local1, C010, Ones, 0x04B8) Local0 = Index (Package (0x01) { M91D }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B9) M1A0 (Local1, C010, Ones, 0x04BA) Local0 = Index (Package (0x01) { M91E }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04BB) M1A0 (Local1, C010, Ones, 0x04BC) Local0 = Index (Package (0x01) { M91F }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04BD) M1A0 (Local1, C010, Ones, 0x04BE) Local0 = Index (Package (0x01) { M920 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04BF) M1A0 (Local1, C010, Ones, 0x04C0) Local0 = Index (Package (0x01) { M921 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C1) M1A0 (Local1, C010, Ones, 0x04C2) Local0 = Index (Package (0x01) { M922 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C3) M1A0 (Local1, C010, Ones, 0x04C4) Local0 = Index (Package (0x01) { M923 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C5) M1A0 (Local1, C010, Ones, 0x04C6) Local0 = Index (Package (0x01) { M924 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C7) M1A0 (Local1, C010, Ones, 0x04C8) Local0 = Index (Package (0x01) { M925 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C9) M1A0 (Local1, C010, Ones, 0x04CA) Local0 = Index (Package (0x01) { M926 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04CB) M1A0 (Local1, C010, Ones, 0x04CC) Local0 = Index (Package (0x01) { M927 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04CD) M1A0 (Local1, C010, Ones, 0x04CE) Local0 = Index (Package (0x01) { M928 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04CF) M1A0 (Local1, C010, Ones, 0x04D0) Local0 = Index (Package (0x01) { M929 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D1) M1A0 (Local1, C010, Ones, 0x04D2) Local0 = Index (Package (0x01) { M92A }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D3) M1A0 (Local1, C010, Ones, 0x04D4) Local0 = Index (Package (0x01) { M92B }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D5) M1A0 (Local1, C010, Ones, 0x04D6) Local0 = Index (Package (0x01) { M92C }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D7) M1A0 (Local1, C010, Ones, 0x04D8) Local0 = Index (Package (0x01) { M92D }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D9) M1A0 (Local1, C010, Ones, 0x04DA) Local0 = Index (Package (0x01) { M92E }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04DB) M1A0 (Local1, C010, Ones, 0x04DC) Local0 = Index (Package (0x01) { M92F }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04DD) M1A0 (Local1, C010, Ones, 0x04DE) Local0 = Index (Package (0x01) { M930 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04DF) M1A0 (Local1, C010, Ones, 0x04E0) Local0 = Index (Package (0x01) { M931 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E1) M1A0 (Local1, C010, Ones, 0x04E2) Local0 = Index (Package (0x01) { M932 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E3) M1A0 (Local1, C010, Ones, 0x04E4) Local0 = Index (Package (0x01) { M933 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E5) M1A0 (Local1, C010, Ones, 0x04E6) Local0 = Index (Package (0x01) { M934 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E7) M1A0 (Local1, C010, Ones, 0x04E8) Local0 = Index (Package (0x01) { M935 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E9) M1A0 (Local1, C010, Ones, 0x04EA) M000 () M1A6 () } Method (M16F, 7, NotSerialized) { C081 = Z077 /* absolute index of file initiating the checking */ /* \Z077 */ C089 = 0x01 /* flag of Reference, object otherwise */ If (Arg0) { M168 () } If (Arg1) { M169 () } If (Arg2) { M16A (C083) } If (Arg3) { M16B () } If (Arg4) { M16C (C083) } If (Arg5) { M16D () } If (Arg6) { M16E () } } /* Usual mode */ Method (M178, 0, NotSerialized) { C084 = 0x01 /* run verification of references (reading) */ C085 = 0x00 /* create the chain of references to LocalX, then dereference them */ Debug = "Usual mode:" M16F (0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01) } /* The mode with the chain of references to LocalX */ Method (M179, 0, NotSerialized) { C084 = 0x01 /* run verification of references (reading) */ C085 = 0x01 /* create the chain of references to LocalX, then dereference them */ Debug = "The mode with the chain of references to LocalX:" M16F (0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01) } /* Run-method */ Method (REF1, 0, NotSerialized) { Debug = "TEST: REF1, References" C080 = "REF1" /* name of test */ C082 = 0x00 /* flag of test of exceptions */ C083 = 0x00 /* run verification of references (write/read) */ C086 = 0x00 /* flag, run test till the first error */ C087 = 0x01 /* apply DeRefOf to ArgX-ObjectReference */ M178 () M179 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref06.asl0000700000175000017500000007265214773714157030353 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * References */ Name (Z110, 0x6E) /* The number of repetitions */ /* */ /* Minimum: 26*6=156 */ Name (REP0, 0x03E8) /* Strategies of traveling the Cases of Switch */ /* Total number of Cases */ Name (MAXF, 0x64) /* Current indexes inside groups */ Name (I200, 0x00) Name (I201, 0x00) Name (I202, 0x00) Name (I203, 0x00) Name (I204, 0x00) Name (I205, 0x00) /* * Mix of groups strategy * * Distribution of (6) groups: * * 0) Cases 0 - 13 (14) * 1) Cases 14 - 19 (6) * 2) Cases 20 - 33 (14) * 3) Cases 34 - 47 (14) * 4) Cases 48 - 73 (26) * 5) Cases 74 - 99 (26) * * arg0 - index of iteration */ Method (M1E1, 1, Serialized) { Local7 = (Arg0 % 0x06) /* Groups */ Switch (ToInteger (Local7)) { Case (0x00) { Local1 = (I200 % 0x0E) I200++ } Case (0x01) { Local0 = (I201 % 0x06) Local1 = (0x0E + Local0) I201++ } Case (0x02) { Local0 = (I202 % 0x0E) Local1 = (0x14 + Local0) I202++ } Case (0x03) { Local0 = (I203 % 0x0E) Local1 = (0x22 + Local0) I203++ } Case (0x04) { Local0 = (I204 % 0x1A) Local1 = (0x30 + Local0) I204++ } Case (0x05) { Local0 = (I205 % 0x1A) Local1 = (0x4A + Local0) I205++ } Default { ERR ("m1e2", Z110, __LINE__, 0x00, 0x00, Local7, 0x00) } } Return (Local1) } /* Mod-6 strategy */ /* */ /* Observed, it causes many "Outstanding allocations" */ /* */ /* arg0 - index of iteration */ Method (M1E2, 1, NotSerialized) { Local7 = (Arg0 % 0x06) Return (Local7) } /* Linear strategy */ /* */ /* arg0 - index of iteration */ Method (M1E3, 1, NotSerialized) { Local7 = (Arg0 % MAXF) /* \MAXF */ Return (Local7) } /* arg0 - strategy of traveling the Cases of Switch */ Method (M1E0, 1, Serialized) { /* // ################################## Check all the test: // Packages for _TCI statistics Name(LLL0, Package(1) {}) Name(LLL1, Package(1) {}) Name(LLL2, Package(1) {}) // Create and initialize the Memory Consumption Statistics Packages Store(m3a0(c200), LLL0) // _TCI-end statistics Store(m3a0(c201), LLL1) // _TCI-begin statistics Store(m3a0(0), LLL2) // difference _TCI(c200, LLL0) // ################################## Check all the test. */ Name (PR, 0x00) Name (IND0, 0x00) Name (LPN0, 0x00) Name (LPC0, 0x00) C081 = Z110 /* absolute index of file initiating the checking */ /* \Z110 */ LPN0 = REP0 /* \REP0 */ LPC0 = 0x00 If ((Arg0 == 0x01)) { Debug = "Mix of groups strategy" } ElseIf ((Arg0 == 0x02)) { Debug = "Mod-6 strategy" } Else { Debug = "Linear strategy" } While (LPN0) { If (PR) { Debug = LPC0 /* \M1E0.LPC0 */ } If ((Arg0 == 0x01)) { IND0 = M1E1 (LPC0) } ElseIf ((Arg0 == 0x02)) { IND0 = M1E2 (LPC0) } Else { IND0 = M1E3 (LPC0) } Switch (ToInteger (IND0)) { /* ========================= Group 0: */ /* All types */ /* (from m1b1: CopyObject of Object to LocalX) */ Case (0x00) { CopyObject (I900, Local0) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) } Case (0x01) { CopyObject (S900, Local0) M1A3 (Local0, C00A, Z110, __METHOD__, __LINE__) } Case (0x02) { CopyObject (B900, Local0) M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) } Case (0x03) { CopyObject (P900, Local0) M1A3 (Local0, C00C, Z110, __METHOD__, __LINE__) } Case (0x04) { CopyObject (F900, Local0) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) } Case (0x05) { CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z110, __METHOD__, __LINE__) } Case (0x06) { CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z110, __METHOD__, __LINE__) } Case (0x07) { If (RN06) { CopyObject (RefOf (M901), Local0) } Else { CopyObject (RefOf (M901), Local0) } M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) } Case (0x08) { CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z110, __METHOD__, __LINE__) } Case (0x09) { If (Y510) { CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z110, __METHOD__, __LINE__) } } Case (0x0A) { CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z110, __METHOD__, __LINE__) } Case (0x0B) { CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z110, __METHOD__, __LINE__) } Case (0x0C) { If (Y508) { CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z110, __METHOD__, __LINE__) } } Case (0x0D) { CopyObject (BF90, Local0) M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) } Case /* ========================= Group 1: */ /* All available for Store types */ /* (from m1b2: Store of Object to LocalX) */ (0x0E) { Local0 = I900 /* \I900 */ M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) } Case (0x0F) { Local0 = S900 /* \S900 */ M1A3 (Local0, C00A, Z110, __METHOD__, __LINE__) } Case (0x10) { Local0 = B900 /* \B900 */ M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) } Case (0x11) { Local0 = P900 /* \P900 */ M1A3 (Local0, C00C, Z110, __METHOD__, __LINE__) } Case (0x12) { Local0 = F900 /* \F900 */ M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) } Case (0x13) { Local0 = BF90 /* \BF90 */ M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) } Case /* ========================= Group 2: */ /* All types */ /* (from m1b4: CopyObject the result of RefOf/CondRefOf to LocalX) */ (0x14) { CopyObject (RefOf (I900), Local0) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) } Case (0x15) { CopyObject (RefOf (S900), Local0) M1A3 (Local0, C00A, Z110, __METHOD__, __LINE__) } Case (0x16) { CopyObject (RefOf (B900), Local0) M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) } Case (0x17) { CopyObject (RefOf (P900), Local0) M1A3 (Local0, C00C, Z110, __METHOD__, __LINE__) } Case (0x18) { CopyObject (RefOf (F900), Local0) M1A3 (Local0, C00D, Z110, __METHOD__, __LINE__) } Case (0x19) { CopyObject (RefOf (D900), Local0) M1A3 (Local0, C00E, Z110, __METHOD__, __LINE__) } Case (0x1A) { CopyObject (RefOf (E900), Local0) M1A3 (Local0, C00F, Z110, __METHOD__, __LINE__) } Case (0x1B) { CopyObject (RefOf (M901), Local0) M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) } Case (0x1C) { CopyObject (RefOf (MX90), Local0) M1A3 (Local0, C011, Z110, __METHOD__, __LINE__) } Case (0x1D) { CopyObject (RefOf (R900), Local0) M1A3 (Local0, C012, Z110, __METHOD__, __LINE__) } Case (0x1E) { CopyObject (RefOf (PW90), Local0) M1A3 (Local0, C013, Z110, __METHOD__, __LINE__) } Case (0x1F) { CopyObject (RefOf (PR90), Local0) M1A3 (Local0, C014, Z110, __METHOD__, __LINE__) } Case (0x20) { CopyObject (RefOf (TZ90), Local0) M1A3 (Local0, C015, Z110, __METHOD__, __LINE__) } Case (0x21) { CopyObject (RefOf (BF90), Local0) M1A3 (Local0, C016, Z110, __METHOD__, __LINE__) } Case /* ========================= Group 3: */ /* All types */ /* (from m1b5: Store the result of RefOf/CondRefOf to LocalX) */ (0x22) { Local0 = RefOf (I900) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) } Case (0x23) { Local0 = RefOf (S900) M1A3 (Local0, C00A, Z110, __METHOD__, __LINE__) } Case (0x24) { Local0 = RefOf (B900) M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) } Case (0x25) { Local0 = RefOf (P900) M1A3 (Local0, C00C, Z110, __METHOD__, __LINE__) } Case (0x26) { Local0 = RefOf (F900) M1A3 (Local0, C00D, Z110, __METHOD__, __LINE__) } Case (0x27) { Local0 = RefOf (D900) M1A3 (Local0, C00E, Z110, __METHOD__, __LINE__) } Case (0x28) { Local0 = RefOf (E900) M1A3 (Local0, C00F, Z110, __METHOD__, __LINE__) } Case (0x29) { Local0 = RefOf (M901) M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) } Case (0x2A) { Local0 = RefOf (MX90) M1A3 (Local0, C011, Z110, __METHOD__, __LINE__) } Case (0x2B) { Local0 = RefOf (R900) M1A3 (Local0, C012, Z110, __METHOD__, __LINE__) } Case (0x2C) { Local0 = RefOf (PW90) M1A3 (Local0, C013, Z110, __METHOD__, __LINE__) } Case (0x2D) { Local0 = RefOf (PR90) M1A3 (Local0, C014, Z110, __METHOD__, __LINE__) } Case (0x2E) { Local0 = RefOf (TZ90) M1A3 (Local0, C015, Z110, __METHOD__, __LINE__) } Case (0x2F) { Local0 = RefOf (BF90) M1A3 (Local0, C016, Z110, __METHOD__, __LINE__) } Case /* ========================= Group 4: */ /* From m1b6: CopyObject the result of Index to LocalX */ /* Computational Data */ (0x30) { CopyObject (Local0 = S900 [0x01], Local1) M1A3 (Local0, C016, Z110, __METHOD__, __LINE__) M1A3 (Local1, C016, Z110, __METHOD__, __LINE__) } Case (0x31) { CopyObject (Local0 = B900 [0x01], Local1) M1A3 (Local0, C016, Z110, __METHOD__, __LINE__) M1A3 (Local1, C016, Z110, __METHOD__, __LINE__) } Case /* Elements of Package are Uninitialized */ (0x32) { If (Y127) { CopyObject (Local0 = P900 [0x00], Local1) M1A3 (Local0, C008, Z110, __METHOD__, __LINE__) M1A3 (Local1, C008, Z110, __METHOD__, __LINE__) } } Case /* Elements of Package are Computational Data */ (0x33) { CopyObject (Local0 = P901 [0x01], Local1) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x34) { CopyObject (Local0 = P904 [0x01], Local1) M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z110, __METHOD__, __LINE__) } Case (0x35) { CopyObject (Local0 = P905 [0x00], Local1) M1A3 (Local0, C00C, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00C, Z110, __METHOD__, __LINE__) } Case (0x36) { CopyObject (Local0 = P90D [0x00], Local1) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x37) { CopyObject (Local0 = P90E [0x00], Local1) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x38) { CopyObject (Local0 = P90F [0x00], Local1) M1A3 (Local0, C00A, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00A, Z110, __METHOD__, __LINE__) } Case (0x39) { CopyObject (Local0 = P910 [0x00], Local1) M1A3 (Local0, C00A, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00A, Z110, __METHOD__, __LINE__) } Case (0x3A) { CopyObject (Local0 = P911 [0x00], Local1) M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z110, __METHOD__, __LINE__) } Case (0x3B) { CopyObject (Local0 = P912 [0x00], Local1) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x3C) { CopyObject (Local0 = P913 [0x00], Local1) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x3D) { CopyObject (Local0 = P914 [0x00], Local1) M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x3E) { CopyObject (Local0 = P915 [0x00], Local1) M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z110, __METHOD__, __LINE__) } Case /* Elements of Package are NOT Computational Data */ (0x3F) { CopyObject (Local0 = P916 [0x00], Local1) M1A3 (Local0, C00E, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00E, Z110, __METHOD__, __LINE__) } Case (0x40) { CopyObject (Local0 = P917 [0x00], Local1) M1A3 (Local0, C00F, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00F, Z110, __METHOD__, __LINE__) } Case (0x41) { CopyObject (Local0 = P918 [0x00], Local1) M1A3 (Local0, C011, Z110, __METHOD__, __LINE__) M1A3 (Local1, C011, Z110, __METHOD__, __LINE__) } Case (0x42) { CopyObject (Local0 = P919 [0x00], Local1) M1A3 (Local0, C012, Z110, __METHOD__, __LINE__) M1A3 (Local1, C012, Z110, __METHOD__, __LINE__) } Case (0x43) { CopyObject (Local0 = P91A [0x00], Local1) M1A3 (Local0, C013, Z110, __METHOD__, __LINE__) M1A3 (Local1, C013, Z110, __METHOD__, __LINE__) } Case (0x44) { CopyObject (Local0 = P91B [0x00], Local1) M1A3 (Local0, C014, Z110, __METHOD__, __LINE__) M1A3 (Local1, C014, Z110, __METHOD__, __LINE__) } Case (0x45) { CopyObject (Local0 = P91C [0x00], Local1) M1A3 (Local0, C015, Z110, __METHOD__, __LINE__) M1A3 (Local1, C015, Z110, __METHOD__, __LINE__) } Case /* Elements of Package are Methods */ (0x46) { CopyObject (Local0 = P91D [0x00], Local1) M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) M1A3 (Local1, C010, Z110, __METHOD__, __LINE__) } Case (0x47) { CopyObject (Local0 = P91E [0x00], Local1) M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) M1A3 (Local1, C010, Z110, __METHOD__, __LINE__) } Case (0x48) { CopyObject (Local0 = P91F [0x00], Local1) M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) M1A3 (Local1, C010, Z110, __METHOD__, __LINE__) } Case (0x49) { CopyObject (Local0 = P920 [0x00], Local1) M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) M1A3 (Local1, C010, Z110, __METHOD__, __LINE__) } Case /* ========================= Group 5: */ /* From m1b7: Store the result of Index to LocalX */ /* Computational Data */ (0x4A) { Local1 = Local0 = S900 [0x01] M1A3 (Local0, C016, Z110, __METHOD__, __LINE__) M1A3 (Local1, C016, Z110, __METHOD__, __LINE__) } Case (0x4B) { Local1 = Local0 = B900 [0x01] M1A3 (Local0, C016, Z110, __METHOD__, __LINE__) M1A3 (Local1, C016, Z110, __METHOD__, __LINE__) } Case /* Elements of Package are Uninitialized */ (0x4C) { Local1 = Local0 = P900 [0x00] M1A3 (Local0, C008, Z110, __METHOD__, __LINE__) M1A3 (Local1, C008, Z110, __METHOD__, __LINE__) } Case /* Elements of Package are Computational Data */ (0x4D) { Local1 = Local0 = P901 [0x01] M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x4E) { Local1 = Local0 = P904 [0x01] M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z110, __METHOD__, __LINE__) } Case (0x4F) { Local1 = Local0 = P905 [0x00] M1A3 (Local0, C00C, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00C, Z110, __METHOD__, __LINE__) } Case (0x50) { Local1 = Local0 = P90D [0x00] M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x51) { Local1 = Local0 = P90E [0x00] M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x52) { Local1 = Local0 = P90F [0x00] M1A3 (Local0, C00A, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00A, Z110, __METHOD__, __LINE__) } Case (0x53) { Local1 = Local0 = P910 [0x00] M1A3 (Local0, C00A, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00A, Z110, __METHOD__, __LINE__) } Case (0x54) { Local1 = Local0 = P911 [0x00] M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z110, __METHOD__, __LINE__) } Case (0x55) { Local1 = Local0 = P912 [0x00] M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x56) { Local1 = Local0 = P913 [0x00] M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x57) { Local1 = Local0 = P914 [0x00] M1A3 (Local0, C009, Z110, __METHOD__, __LINE__) M1A3 (Local1, C009, Z110, __METHOD__, __LINE__) } Case (0x58) { Local1 = Local0 = P915 [0x00] M1A3 (Local0, C00B, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00B, Z110, __METHOD__, __LINE__) } Case /* Elements of Package are NOT Computational Data */ (0x59) { Local1 = Local0 = P916 [0x00] M1A3 (Local0, C00E, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00E, Z110, __METHOD__, __LINE__) } Case (0x5A) { Local1 = Local0 = P917 [0x00] M1A3 (Local0, C00F, Z110, __METHOD__, __LINE__) M1A3 (Local1, C00F, Z110, __METHOD__, __LINE__) } Case (0x5B) { Local1 = Local0 = P918 [0x00] M1A3 (Local0, C011, Z110, __METHOD__, __LINE__) M1A3 (Local1, C011, Z110, __METHOD__, __LINE__) } Case (0x5C) { Local1 = Local0 = P919 [0x00] M1A3 (Local0, C012, Z110, __METHOD__, __LINE__) M1A3 (Local1, C012, Z110, __METHOD__, __LINE__) } Case (0x5D) { Local1 = Local0 = P91A [0x00] M1A3 (Local0, C013, Z110, __METHOD__, __LINE__) M1A3 (Local1, C013, Z110, __METHOD__, __LINE__) } Case (0x5E) { Local1 = Local0 = P91B [0x00] M1A3 (Local0, C014, Z110, __METHOD__, __LINE__) M1A3 (Local1, C014, Z110, __METHOD__, __LINE__) } Case (0x5F) { Local1 = Local0 = P91C [0x00] M1A3 (Local0, C015, Z110, __METHOD__, __LINE__) M1A3 (Local1, C015, Z110, __METHOD__, __LINE__) } Case /* Elements of Package are Methods */ (0x60) { Local1 = Local0 = P91D [0x00] M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) M1A3 (Local1, C010, Z110, __METHOD__, __LINE__) } Case (0x61) { Local1 = Local0 = P91E [0x00] M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) M1A3 (Local1, C010, Z110, __METHOD__, __LINE__) } Case (0x62) { Local1 = Local0 = P91F [0x00] M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) M1A3 (Local1, C010, Z110, __METHOD__, __LINE__) } Case (0x63) { Local1 = Local0 = P920 [0x00] M1A3 (Local0, C010, Z110, __METHOD__, __LINE__) M1A3 (Local1, C010, Z110, __METHOD__, __LINE__) } Default { ERR (__METHOD__, Z110, __LINE__, 0x00, 0x00, IND0, 0x00) } } /* Switch */ LPN0-- LPC0++ } /* While */ /* // ################################## Check all the test: _TCI(c201, LLL1) m3a3(LLL0, LLL1, LLL2) m3a4(LLL0, LLL1, LLL2, 0, 0, 0, 0x12345678) // ################################## Check all the test. */ /* m1a6() */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref70.asl0000700000175000017500000006336214773714157030352 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * References * * Verify exceptions for different operators dealing with references */ /* SEE: FILE BUG: hangs without printing error SEE: FILE BUG: CondRefOf doesn't cause an exception but only under some conditions */ Name (Z081, 0x51) /* Run operator and expect ANY exception(s) */ Method (M1A7, 7, Serialized) { FLG3 = 0x01 FLG4 = 0x01 /* flag, run test till the first error */ If (C086) { /* Get current indicator of errors */ If (GET2 ()) { Return (Zero) } } CH03 (__METHOD__, Z081, __LINE__, 0x00, Arg6) /* // FILE BUG: hangs without printing error Store(CH03(ts, z081, 0x200, __LINE__, arg6), Local0) if (Local0) { Concatenate("Operation: 0x", arg6, Local0) Store(Local0, Debug) } */ Switch (ToInteger (Arg6)) { Case (0x07) { Local7 = Acquire (Arg0, 0x0064) } Default { M480 (Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) } } CH04 (C080, 0x00, 0xFF, Z081, __LINE__, Arg6, Arg6) /* // FILE BUG: hangs without printing error Store(CH04(c080, 0, 0xff, z081, __LINE__, arg6, arg6), Local0) if (Local0) { Concatenate("Operation: 0x", arg6, Local0) Store(Local0, Debug) } */ FLG3 = 0x00 FLG4 = 0x00 } /* * Switch * * This sub-test causes break of exc_ref due to the bug 248 * (lose path after exception or hang). * So, it is blocked, and in order to show 'Test is blocked' * it is run also additionally separately. */ Method (M167, 1, Serialized) { CH03 ("m167", Z081, __LINE__, 0x00, 0x38) Switch (ToInteger (Arg0)) { Case (0x00) { Local7 = 0x00 } Default { Local7 = 0x01 } } CH04 (C080, 0x00, 0xFF, Z081, __LINE__, 0x38, 0x38) } /* Check reaction on OPERAND-REFERENCE (exceptions are expected in most cases) */ /* arg0 - reference to the value of arbitrary type */ /* arg1 - absolute index of file initiating the checking */ /* arg2 - index of checking (inside the file) */ Method (M1A8, 3, Serialized) { /* Return */ Method (M000, 1, NotSerialized) { Return (Arg0) } /* If */ Method (M001, 1, NotSerialized) { CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x36) If (Arg0) { Local7 = 0x00 } CH04 (C080, 0x00, 0xFF, Z081, __LINE__, 0x36, 0x36) } /* ElseIf */ Method (M002, 1, NotSerialized) { CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x37) If (0x00) { Local7 = 0x00 } ElseIf (Arg0) { Local7 = 0x01 } CH04 (C080, 0x00, 0xFF, Z081, __LINE__, 0x37, 0x37) } /* While */ Method (M004, 1, NotSerialized) { CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x3A) While (Arg0) { Local7 = 0x00 Break } CH04 (C080, 0x00, 0xFF, Z081, __LINE__, 0x3A, 0x3A) } /* Set parameters of current checking */ If (Arg1) { SET0 (Arg1, 0x00, Arg2) } /* flag, run test till the first error */ If (C086) { /* Get current indicator of errors */ If (GET2 ()) { Return (Zero) } } /* Split into groups for debugging: some of them */ /* were crashing the system. */ Name (RN00, 0x01) /* CondRefOf */ Name (RN01, 0x00) /* DerefOf */ If (Y506) { /* Crash */ RN01 = 0x01 } Name (RN02, 0x01) /* ObjectType */ Name (RN03, 0x01) /* RefOf */ Name (RN04, 0x01) /* SizeOf */ Name (RN05, 0x01) /* CopyObject */ Name (RN06, 0x01) /* Return */ Name (RN07, 0x01) /* If,ElseIf,Switch,While */ Name (RN08, 0x01) /* All other operators */ Name (B000, Buffer (0x0A){}) Name (S000, "qwertyuiopasdfghjklz") Name (P000, Package (0x09) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09 }) FLG4 = 0x01 If (RN00) { /* CondRefOf */ CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) M480 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05) CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) } If (RN01) { /* DerefOf */ CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) M480 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08) CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) } If (RN02) { /* ObjectType */ CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) M480 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20) CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) } If (RN03) { /* RefOf */ CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) M480 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22) CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) } If (RN04) { /* SizeOf */ Local0 = 0x00 Local1 = ObjectType (Arg0) Switch (ToInteger (Local1)) { Case (0x01) { /* Integer */ Local0 = 0x01 } Case (0x02) { /* String */ Local0 = 0x01 } Case (0x03) { /* Buffer */ Local0 = 0x01 } Case (0x04) { /* Package */ Local0 = 0x01 } } If (Y505) { /* Buffer Field and Field Unit types should allow SizeOf() */ Switch (ToInteger (Local1)) { Case (0x05) { /* Field Unit */ Local0 = 0x01 } Case (0x0E) { /* Buffer Field */ Local0 = 0x01 } } } If (Local0) { CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) M480 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29) CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) } Else { M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29) } } /* if(rn04) */ If (RN05) { /* CopyObject */ CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) CopyObject (Arg0, Local7) CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) } If (RN06) { /* Return */ CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) M000 (Arg0) CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) } If (RN07) { /* If */ M001 (Arg0) /* ElseIf */ M002 (Arg0) /* Switch */ If (Y248) { M167 (Arg0) } Else { Debug = "WARNING: test m1a8:m1a8 blocked due to the bug 248!" } /* While */ M004 (Arg0) } /* if(rn07) */ If (RN08) { /* Acquire */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) /* Add */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x01) /* And */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x02) /* Concatenate */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x03) /* ConcatenateResTemplate */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x04) /* Decrement */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07) /* Divide */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x09) M1A7 (0x01, Arg0, 0x00, 0x00, 0x00, 0x00, 0x09) /* Fatal */ /* FindSetLeftBit */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B) /* FindSetRightBit */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C) /* FromBCD */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0D) /* Increment */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E) /* Index */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F) M1A7 (B000, Arg0, 0x00, 0x00, 0x00, 0x00, 0x0F) /* LAnd */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x10) /* LEqual */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x11) /* LGreater */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x12) /* LGreaterEqual */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x13) /* LLess */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x14) /* LLessEqual */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x15) /* LNot */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16) /* LNotEqual */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x17) /* LOr */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18) M1A7 (0x00, Arg0, 0x00, 0x00, 0x00, 0x00, 0x18) /* Match */ M1A7 (Arg0, 0x00, 0x01, 0x01, 0x01, 0x00, 0x19) M1A7 (P000, 0x00, Arg0, 0x01, 0x01, 0x00, 0x19) M1A7 (P000, 0x00, 0x01, Arg0, 0x01, 0x00, 0x19) M1A7 (P000, 0x00, 0x01, 0x01, Arg0, 0x00, 0x19) /* Mid */ M1A7 (Arg0, 0x00, 0x05, 0x00, 0x00, 0x00, 0x1A) M1A7 (S000, Arg0, 0x05, 0x00, 0x00, 0x00, 0x1A) M1A7 (S000, 0x00, Arg0, 0x00, 0x00, 0x00, 0x1A) /* Mod */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x1B) M1A7 (0x01, Arg0, 0x00, 0x00, 0x00, 0x00, 0x1B) /* Multiply */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x1C) M1A7 (0x01, Arg0, 0x00, 0x00, 0x00, 0x00, 0x1C) /* NAnd */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x1D) M1A7 (0x01, Arg0, 0x00, 0x00, 0x00, 0x00, 0x1D) /* NOr */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x1E) M1A7 (0x01, Arg0, 0x00, 0x00, 0x00, 0x00, 0x1E) /* Not */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x1F) /* Or */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x21) M1A7 (0x01, Arg0, 0x00, 0x00, 0x00, 0x00, 0x21) /* Release */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23) /* Reset */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24) /* ShiftLeft */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x26) M1A7 (0x01, Arg0, 0x00, 0x00, 0x00, 0x00, 0x26) /* ShiftRight */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x27) M1A7 (0x01, Arg0, 0x00, 0x00, 0x00, 0x00, 0x27) /* Signal */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28) /* Sleep */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2A) /* Stall */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2B) /* Store */ CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) Local7 = Arg0 CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) /* Subtract */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x2D) M1A7 (0x01, Arg0, 0x00, 0x00, 0x00, 0x00, 0x2D) /* ToBCD */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2E) /* ToBuffer */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2F) /* ToDecimalString */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30) /* ToHexString */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31) /* ToInteger */ M1A7 (Arg0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32) /* ToString */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x33) M1A7 (B000, Arg0, 0x00, 0x00, 0x00, 0x00, 0x33) /* Wait */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x34) M1A7 (B000, Arg0, 0x00, 0x00, 0x00, 0x00, 0x34) /* XOr */ M1A7 (Arg0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x35) M1A7 (B000, Arg0, 0x00, 0x00, 0x00, 0x00, 0x35) } /* if(rn08) */ FLG4 = 0x00 RST0 () Return (Zero) } /* Simple test, only some particular ways of obtaining references */ Method (M1A9, 0, Serialized) { /* FILE BUG: CondRefOf doesn't cause an exception but only under some conditions, */ /* namely for rn00 == 2. */ Name (RN00, 0x02) /* Simplest modes, for debugging */ Name (RN01, 0x01) /* Crash */ If ((RN00 == 0x00)) { /* Simplest mode, ONE-TWO operations of those below */ Local0 = RefOf (I900) M1A8 (Local0, Z081, 0x0F) Local1 = CondRefOf (I900, Local0) If (M1A4 (Local1, 0x22)) { M1A8 (Local0, Z081, 0x23) } } ElseIf ((RN00 == 0x01)) { /* Simplest mode, SOME of operations below */ Store (S900 [0x00], Local0) M1A8 (Local0, Z081, 0x00) Store (B900 [0x03], Local0) M1A8 (Local0, Z081, 0x01) Store (P901 [0x00], Local0) M1A8 (Local0, Z081, 0x02) Store (P91E [0x00], Local0) M1A8 (Local0, Z081, 0x04) Local0 = Local1 = P901 [0x00] M1A8 (Local1, Z081, 0x0A) Local0 = Local1 = P91E [0x00] M1A8 (Local1, Z081, 0x0E) Local0 = RefOf (I900) M1A8 (Local0, Z081, 0x0F) Local0 = RefOf (F900) M1A8 (Local0, Z081, 0x12) Local0 = RefOf (BN90) M1A8 (Local0, Z081, 0x13) Local0 = RefOf (IF90) M1A8 (Local0, Z081, 0x14) Local0 = RefOf (BF90) M1A8 (Local0, Z081, 0x15) Local1 = CondRefOf (I900, Local0) If (M1A4 (Local1, 0x22)) { M1A8 (Local0, Z081, 0x23) } } Else { /* Index */ Store (S900 [0x00], Local0) M1A8 (Local0, Z081, 0x00) Store (B900 [0x03], Local0) M1A8 (Local0, Z081, 0x01) Store (P901 [0x00], Local0) M1A8 (Local0, Z081, 0x02) If (RN01) { Store (P916 [0x00], Local0) M1A8 (Local0, Z081, 0x03) } Store (P91E [0x00], Local0) M1A8 (Local0, Z081, 0x04) Local0 = Local1 = S900 [0x00] M1A8 (Local0, Z081, 0x05) M1A8 (Local1, Z081, 0x06) Local0 = Local1 = B900 [0x03] M1A8 (Local0, Z081, 0x07) M1A8 (Local1, Z081, 0x08) Local0 = Local1 = P901 [0x00] M1A8 (Local0, Z081, 0x09) M1A8 (Local1, Z081, 0x0A) If (RN01) { Local0 = Local1 = P916 [0x00] M1A8 (Local0, Z081, 0x0B) M1A8 (Local1, Z081, 0x0C) } Local0 = Local1 = P91E [0x00] M1A8 (Local0, Z081, 0x0D) M1A8 (Local1, Z081, 0x0E) /* RefOf */ Local0 = RefOf (I900) M1A8 (Local0, Z081, 0x0F) Local0 = RefOf (S900) M1A8 (Local0, Z081, 0x10) Local0 = RefOf (B900) M1A8 (Local0, Z081, 0x11) Local0 = RefOf (F900) M1A8 (Local0, Z081, 0x12) Local0 = RefOf (BN90) M1A8 (Local0, Z081, 0x13) Local0 = RefOf (IF90) M1A8 (Local0, Z081, 0x14) Local0 = RefOf (BF90) M1A8 (Local0, Z081, 0x15) Local0 = RefOf (E900) M1A8 (Local0, Z081, 0x16) Local0 = RefOf (MX90) M1A8 (Local0, Z081, 0x17) Local0 = RefOf (D900) M1A8 (Local0, Z081, 0x18) Local0 = RefOf (TZ90) M1A8 (Local0, Z081, 0x19) Local0 = RefOf (PR90) M1A8 (Local0, Z081, 0x1A) Local0 = RefOf (R900) M1A8 (Local0, Z081, 0x1B) Local0 = RefOf (PW90) M1A8 (Local0, Z081, 0x1C) Local0 = RefOf (P900) M1A8 (Local0, Z081, 0x1D) Local0 = RefOf (P901) M1A8 (Local0, Z081, 0x1E) Local0 = RefOf (P916) M1A8 (Local0, Z081, 0x1F) Local0 = RefOf (P91D) M1A8 (Local0, Z081, 0x20) Local0 = RefOf (P91E) M1A8 (Local0, Z081, 0x21) /* CondRefOf */ Local1 = CondRefOf (I900, Local0) If (M1A4 (Local1, 0x22)) { M1A8 (Local0, Z081, 0x23) } Local1 = CondRefOf (S900, Local0) If (M1A4 (Local1, 0x24)) { M1A8 (Local0, Z081, 0x25) } Local1 = CondRefOf (B900, Local0) If (M1A4 (Local1, 0x26)) { M1A8 (Local0, Z081, 0x27) } Local1 = CondRefOf (F900, Local0) If (M1A4 (Local1, 0x28)) { M1A8 (Local0, Z081, 0x29) } Local1 = CondRefOf (BN90, Local0) If (M1A4 (Local1, 0x2A)) { M1A8 (Local0, Z081, 0x2B) } Local1 = CondRefOf (IF90, Local0) If (M1A4 (Local1, 0x2C)) { M1A8 (Local0, Z081, 0x2D) } Local1 = CondRefOf (BF90, Local0) If (M1A4 (Local1, 0x2E)) { M1A8 (Local0, Z081, 0x2F) } Local1 = CondRefOf (E900, Local0) If (M1A4 (Local1, 0x30)) { M1A8 (Local0, Z081, 0x31) } Local1 = CondRefOf (MX90, Local0) If (M1A4 (Local1, 0x32)) { M1A8 (Local0, Z081, 0x33) } Local1 = CondRefOf (D900, Local0) If (M1A4 (Local1, 0x34)) { M1A8 (Local0, Z081, 0x35) } Local1 = CondRefOf (TZ90, Local0) If (M1A4 (Local1, 0x36)) { M1A8 (Local0, Z081, 0x37) } Local1 = CondRefOf (PR90, Local0) If (M1A4 (Local1, 0x38)) { M1A8 (Local0, Z081, 0x39) } Local1 = CondRefOf (R900, Local0) If (M1A4 (Local1, 0x3A)) { M1A8 (Local0, Z081, 0x3B) } Local1 = CondRefOf (PW90, Local0) If (M1A4 (Local1, 0x3C)) { M1A8 (Local0, Z081, 0x3D) } Local1 = CondRefOf (P900, Local0) If (M1A4 (Local1, 0x3E)) { M1A8 (Local0, Z081, 0x3F) } Local1 = CondRefOf (P901, Local0) If (M1A4 (Local1, 0x40)) { M1A8 (Local0, Z081, 0x41) } Local1 = CondRefOf (P916, Local0) If (M1A4 (Local1, 0x42)) { M1A8 (Local0, Z081, 0x43) } Local1 = CondRefOf (P91D, Local0) If (M1A4 (Local1, 0x44)) { M1A8 (Local0, Z081, 0x45) } Local1 = CondRefOf (P91E, Local0) If (M1A4 (Local1, 0x46)) { M1A8 (Local0, Z081, 0x47) } } } Method (M106, 0, Serialized) { Name (I000, 0xABCD0000) Method (M000, 1, NotSerialized) { CH03 (__METHOD__, Z081, __LINE__, 0x00, 0x00) Debug = DerefOf (RefOf (DerefOf (RefOf (Arg0)))) CH04 (C080, 0x00, 0xFF, Z081, __LINE__, 0x00, 0x00) } M000 (I000) } /* Run-method */ Method (REF5, 0, Serialized) { Name (P91E, Package (0x01) { 0xABCD0000 }) Debug = "TEST: REF5, References, check exceptions" C080 = "REF5" /* name of test */ C081 = Z081 /* absolute index of file initiating the checking */ /* \Z081 */ C082 = 0x01 /* flag of test of exceptions */ C083 = 0x00 /* run verification of references (write/read) */ C084 = 0x00 /* run verification of references (reading) */ C085 = 0x00 /* create the chain of references to LocalX, then dereference them */ C086 = 0x00 /* flag, run test till the first error */ C087 = 0x01 /* apply DeRefOf to ArgX-ObjectReference */ C089 = 0x01 /* flag of Reference, object otherwise */ If (0x00) { /* This mode of test run takes much time, moreover, */ /* due to the bug 95 of ACPICA it fails to complete. */ /* So, if run it then do it with the flag c086 set up */ /* - run test till the first error. */ C086 = 0x01 /* flag, run test till the first error */ /* For local data (methods of ref1.asl) */ /* Reset current indicator of errors */ RST2 () C081 = Z077 /* absolute index of file initiating the checking */ /* \Z077 */ SRMT ("m168") M168 () SRMT ("m169") M169 () SRMT ("m16a") M16A (0x00) SRMT ("m16b") M16B () SRMT ("m16c") M16C (0x00) SRMT ("m16d") M16D () SRMT ("m16e") M16E () /* For global data (methods of ref4.asl) */ C081 = Z080 /* absolute index of file initiating the checking */ /* \Z080 */ SRMT ("m190") M190 () SRMT ("m191") M191 (0x00) SRMT ("m192") M192 () SRMT ("m193") M193 (0x00) SRMT ("m194") M194 () } Else { /* Run simple test only for some particular ways of */ /* obtaining references. */ C086 = 0x00 /* don't break testing on error appearance */ SRMT ("m1a9") M1A9 () } /* Particular tests */ SRMT ("m106") M106 () SRMT ("m167") If (Y248) { /* This code here only to not forget to run m1a8:m167 */ Local0 = Local1 = P91E [0x00] M167 (Local0) } Else { BLCK () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref50.asl0000700000175000017500000047106714773714157030355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Test of the Object and Index References * and the call-by-reference convention. * * SPEC2 file contains specification of the tests. */ /* ?????????????????? SEE: current number of errors (17.04.2005): 0x26 SEE: report the name of each started test SEE: q000,q001... SEE: extend in every possible way the "total tests", see top of this spec, as far as fixing the bugs. SEE: continue to work on "Package total" SEE: extend the test "The chain of Index_References" after bug fixing SEE: CURRENTLY: compiler failed, Too few arguments (M002 requires X) SEE: test ref70 now works in accordance with the current behaviour - expects exceptions when dealing with ArgX-ORef & ArgX-IRef. should be re-dericted: when read automatic dereference will be done properly. ?????????????????????? */ Name (Z111, 0x6F) /* TEST 1: Read of ArgX-ORef with DerefOf */ Method (M221, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x00, 0x01, 0x01, 0x01, 0x00) M341 () If (C088) { M4D0 () } } /* TEST 2: Read of ArgX-ORef without DerefOf (automatic dereference) */ Method (M222, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x00, 0x01, 0x01, 0x00, 0x00) If (Y507) { M342 () If (C088) { M4D0 () } } Else { M1AE (__METHOD__, "read of ArgX-ORef without DerefOf", "AE_AML_OPERAND_TYPE exception instead of automatic dereference") } } /* TEST 3: Read of ArgX-IRef with DerefOf */ Method (M223, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x00, 0x01, 0x01, 0x01, 0x00) M343 () If (C088) { M4D1 () } } /* TEST 4: Read of ArgX-IRef without DerefOf */ Method (M224, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x00, 0x01, 0x01, 0x00, 0x00) If (Y507) { M344 () If (C088) { M4D1 () } } Else { M1AE (__METHOD__, "read of ArgX-IRef without DerefOf", "AE_AML_OPERAND_TYPE exception instead of automatic dereference") } } /* TEST 5.0: Store into ArgX-object doesn't change original data */ Method (M225, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x01, 0x01, 0x00, 0x00, 0x00) M1C0 () } /* TEST 5.1: CopyObject into ArgX-object doesn't change original data */ Method (M226, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x02, 0x01, 0x00, 0x00, 0x00) M1C0 () } /* TEST 6.0: Store into ArgX-ORef changes original data */ Method (M227, 0, Serialized) { TS00 (__METHOD__) M362 () M363 () M364 () If (C088) { M1AD (__METHOD__, 0x01, 0x01, 0x01, 0x01, 0x00) M4D0 () } } /* TEST 6.1: CopyObject into ArgX-ORef changes original data */ Method (M228, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x02, 0x01, 0x01, 0x01, 0x00) M4D0 () } /* TEST 7.0: Store into ArgX-IRef */ /* */ /* ACTUALLY: doesn't write to the original object. */ Method (M229, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x01, 0x01, 0x01, 0x01, 0x00) M4D1 () } /* TEST 7.1: CopyObject into ArgX-IRef */ /* */ /* ACTUALLY: doesn't write to the original object. */ Method (M22A, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x02, 0x01, 0x01, 0x01, 0x00) M4D1 () } /* TEST 8: */ /* ArgX-object is one of String, Buffer and Package. */ /* Create IRef to the elements of the */ /* ArgX-object inside the Method and write to them. */ /* */ /* ACTUALLY: writes to the original object. */ Method (M22B, 0, NotSerialized) { TS00 ("m22b") /* Store and CopyObject */ M345 () } /* TEST 10: Check Buffer passed as a parameter. */ /* Create Buffer Field inside Method and write to it. */ /* */ /* ACTUALLY: writes to the original object. */ Method (M22C, 0, Serialized) { If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M22C.TS__ */ } Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (B010, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Method (M000, 1, NotSerialized) { CreateField (Arg0, 0x08, 0x08, BF90) If (BF90 != Buffer(){0x77}) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, BF90, 0x77) } BF90 = 0x9999992B If (BF90 != Buffer(){0x2B}) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, BF90, 0x2B) } } Method (M001, 1, NotSerialized) { CreateField (Arg0, 0x08, 0x08, BF90) If (BF90 != Buffer(){0x77}) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, BF90, 0x77) } BF90 = 0x2B CopyObject (0x9999992B, BF90) /* \M22C.M001.BF90 */ If (BF90 != Buffer(){0x2B}) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, BF90, 0x2B) } } BEG0 (Z111, __METHOD__) M000 (B000) If (X191) { M001 (B010) } M386 (__METHOD__, B000, 0x00, __LINE__) If (X191) { M386 (__METHOD__, B010, 0x00, __LINE__) } END0 () } /* TEST 11: Check RefOf of ArgX-Object (ArgX is any type Object) */ Method (M22D, 0, Serialized) { TS00 (__METHOD__) M346 () If (C088) { /* RefOf */ C08B = 0x01 /* do RefOf(ArgX) checkings */ M1AD (__METHOD__, 0x00, 0x01, 0x00, 0x00, 0x00) M1C0 () /* CondRefOf */ C08B = 0x02 /* do RefOf(ArgX) checkings */ M1AD (__METHOD__, 0x00, 0x01, 0x00, 0x00, 0x00) M1C0 () C08B = 0x00 /* do RefOf(ArgX) checkings */ } } /* TEST 12: Check DerefOf(RefOf) of ArgX-Object (ArgX is any type Object) */ Method (M22E, 0, NotSerialized) { TS00 ("m22e") M347 () } /* TEST 13: Check RefOf of ArgX-ORef */ Method (M22F, 0, NotSerialized) { TS00 ("m22f") M348 () } /* TEST 14: Check DerefOf(RefOf) of ArgX-ORef */ /* */ /* ACTUALLY: writes to the original object. */ Method (M230, 0, NotSerialized) { TS00 ("m230") M349 () } /* TEST 15: Check RefOf of ArgX-IRef */ Method (M231, 0, NotSerialized) { TS00 ("m231") M34A () } /* TEST 16: Check DerefOf(RefOf) of ArgX-IRef */ Method (M232, 0, NotSerialized) { TS00 ("m232") M34B () } /* TEST 17: Check RefOf of ArgX-String, ArgX-Buffer, ArgX-Package */ /* */ /* ACTUALLY: */ /* */ /* ArgX-String - writes to the original String */ /* ArgX-Buffer - doesn't */ /* ArgX-Package - doesn't */ Method (M233, 0, NotSerialized) { TS00 ("m233") M34C () } /* TEST 19: Check RefOf of ArgX-Buffer (check its Buffer Field) */ /* */ /* ACTUALLY: doesn't write to the original object. */ Method (M234, 0, Serialized) { If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M234.TS__ */ } Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Method (M000, 1, NotSerialized) { Local2 = DerefOf (Arg0) CreateField (Local2, 0x08, 0x08, BF90) If (BF90 != Buffer(){0x77}) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, BF90, 0x77) } BF90 = 0x9999992B If (BF90 != Buffer(){0x2B}) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, BF90, 0x2B) } } Method (M001, 1, NotSerialized) { Local2 = DerefOf (Arg0) CreateField (Local2, 0x08, 0x08, BF90) If (BF90 != Buffer(){0x77}) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, BF90, 0x77) } CopyObject (0x9999992B, BF90) /* \M234.M001.BF90 */ If (BF90 != Buffer(){0x2B}) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, BF90, 0x2B) } } Method (M010, 2, NotSerialized) { Local0 = RefOf (Arg0) M000 (Local0) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } Method (M020, 2, NotSerialized) { M000 (RefOf (Arg0)) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } Method (M011, 2, NotSerialized) { Local0 = RefOf (Arg0) M001 (Local0) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } Method (M021, 2, NotSerialized) { M001 (RefOf (Arg0)) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } BEG0 (Z111, __METHOD__) M010 (B000, C00B) M382 (__METHOD__, B000, 0x00, __LINE__) M020 (B000, C00B) M382 (__METHOD__, B000, 0x00, __LINE__) If (X191) { M011 (B000, C00B) M382 (__METHOD__, B000, 0x00, __LINE__) } If (X191) { M021 (B000, C00B) M382 (__METHOD__, B000, 0x00, __LINE__) } END0 () } /* * TEST 20: Check writing from ArgX to ArgY * * ACTUALLY: * * '+' writes * '-' not writes * 'e' exceptions occurs * * * - from ArgX-Object to ArgY-Object * + from ArgX-Object to ArgY-ORef * - from ArgX-Object to ArgY-IRef * * - from ArgX-ORef to ArgY-Object * e from ArgX-ORef to ArgY-ORef * - from ArgX-ORef to ArgY-IRef * * - from ArgX-IRef to ArgY-Object * e from ArgX-IRef to ArgY-ORef * - from ArgX-IRef to ArgY-IRef */ Method (M235, 0, Serialized) { If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M235.TS__ */ } Name (I000, 0x77) Name (I010, 0x77) Name (I020, 0x77) Name (S000, "qwer0000") Name (S010, "qwer0000") Name (S021, "q+er0000") Name (S031, "q+er0000") Name (I001, 0x2B) Name (I011, 0x2B) Name (I021, 0x2B) Name (I031, 0x2B) Name (I041, 0x2B) Name (I051, 0x2B) Name (I061, 0x2B) Method (M000, 3, NotSerialized) { Arg1 = Arg0 If ((Arg2 == C009)) { M380 (__METHOD__, Arg1, 0x00, __LINE__) } ElseIf ((Arg2 == C00A)) { M381 (__METHOD__, Arg1, 0x00, __LINE__) } ElseIf ((Arg2 == C00B)) { M382 (__METHOD__, Arg1, 0x00, __LINE__) } ElseIf ((Arg2 == C00C)) { M383 (__METHOD__, Arg1, 0x00, __LINE__) } } Method (M001, 3, NotSerialized) { CopyObject (Arg0, Arg1) If ((Arg2 == C009)) { M380 (__METHOD__, Arg1, 0x00, __LINE__) } ElseIf ((Arg2 == C00A)) { M381 (__METHOD__, Arg1, 0x00, __LINE__) } ElseIf ((Arg2 == C00B)) { M382 (__METHOD__, Arg1, 0x00, __LINE__) } ElseIf ((Arg2 == C00C)) { M383 (__METHOD__, Arg1, 0x00, __LINE__) } } Method (M002, 3, NotSerialized) { Arg1 = Arg0 Local2 = DerefOf (Arg1) If ((Arg2 == C009)) { M380 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg2 == C00A)) { M381 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg2 == C00B)) { M382 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg2 == C00C)) { M383 (__METHOD__, Local2, 0x00, __LINE__) } } Method (M003, 3, NotSerialized) { CopyObject (Arg0, Arg1) Local2 = DerefOf (Arg1) If ((Arg2 == C009)) { M380 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg2 == C00A)) { M381 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg2 == C00B)) { M382 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg2 == C00C)) { M383 (__METHOD__, Local2, 0x00, __LINE__) } } Method (M004, 2, NotSerialized) { Arg1 = Arg0 M380 (__METHOD__, Arg1, 0x00, __LINE__) } Method (M005, 2, NotSerialized) { Arg1 = Arg0 } BEG0 (Z111, __METHOD__) /* ArgX-Object -->> ArgY-Object */ M000 (I000, I001, C009) M380 (__METHOD__, I000, 0x00, __LINE__) M384 (__METHOD__, I001, 0x00, __LINE__) M001 (I000, I001, C009) M380 (__METHOD__, I000, 0x00, __LINE__) M384 (__METHOD__, I001, 0x00, __LINE__) /* ArgX-Object -->> ArgY-ORef */ M002 (I000, RefOf (I001), C009) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, I001, 0x00, __LINE__) M003 (I000, RefOf (I021), C009) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, I021, 0x00, __LINE__) Local0 = RefOf (I031) M002 (I000, Local0, C009) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, I031, 0x00, __LINE__) Local2 = DerefOf (Local0) M380 (__METHOD__, Local2, 0x00, __LINE__) Local0 = RefOf (I041) M003 (I000, Local0, C009) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, I041, 0x00, __LINE__) Local2 = DerefOf (Local0) M380 (__METHOD__, Local2, 0x00, __LINE__) /* ArgX-Object -->> ArgY-IRef */ M004 (I000, Local0 = S021 [0x01]) M380 (__METHOD__, I000, 0x00, __LINE__) M385 (__METHOD__, S021, 0x00, __LINE__) Local2 = DerefOf (Local0) M384 (__METHOD__, Local2, 0x00, __LINE__) Local1 = Local0 = S021 [0x01] M004 (I000, Local0) M380 (__METHOD__, I000, 0x00, __LINE__) M385 (__METHOD__, S021, 0x00, __LINE__) Local2 = DerefOf (Local0) M384 (__METHOD__, Local2, 0x00, __LINE__) M004 (I000, Local1) M380 (__METHOD__, I000, 0x00, __LINE__) M385 (__METHOD__, S021, 0x00, __LINE__) Local2 = DerefOf (Local1) M384 (__METHOD__, Local2, 0x00, __LINE__) /* ArgX-ORef -->> ArgY-Object */ M005 (RefOf (I000), S000) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M005 (RefOf (I000), I051) M380 (__METHOD__, I000, 0x00, __LINE__) M384 (__METHOD__, I051, 0x00, __LINE__) Local0 = RefOf (I000) M005 (Local0, S000) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M005 (Local0, I051) M380 (__METHOD__, I000, 0x00, __LINE__) M384 (__METHOD__, I051, 0x00, __LINE__) /* ArgX-IRef -->> ArgY-Object */ M005 (Local0 = S000 [0x01], I000) M381 (__METHOD__, S000, 0x00, __LINE__) M380 (__METHOD__, I000, 0x00, __LINE__) /* The entire expression (exercised below): */ /* m005(Index(s021, 1, Local0), RefOf(i010)) */ /* here is executed step by step: */ M385 (__METHOD__, S021, 0x00, __LINE__) M380 (__METHOD__, I010, 0x00, __LINE__) M005 (Local0 = S021 [0x01], I010) M385 (__METHOD__, S021, 0x00, __LINE__) M380 (__METHOD__, I010, 0x00, __LINE__) M005 (I051, RefOf (I010)) M385 (__METHOD__, S021, 0x00, __LINE__) M384 (__METHOD__, I051, 0x00, __LINE__) M384 (__METHOD__, I010, 0x00, __LINE__) If (Y513) { /* ArgX-IRef -->> ArgY-ORef */ M005 (Local0 = S021 [0x01], RefOf (I020)) M385 (__METHOD__, S021, 0x00, __LINE__) M384 (__METHOD__, I020, 0x00, __LINE__) Local1 = DerefOf (Local0) M384 (__METHOD__, Local1, 0x00, __LINE__) } /* ArgX-IRef -->> ArgY-IRef */ M005 (Local0 = S021 [0x01], Local1 = S010 [0x01]) M385 (__METHOD__, S021, 0x00, __LINE__) M381 (__METHOD__, S010, 0x00, __LINE__) Local2 = DerefOf (Local0) M384 (__METHOD__, Local2, 0x00, __LINE__) Local2 = DerefOf (Local1) M380 (__METHOD__, Local2, 0x00, __LINE__) If (Y513) { /* ArgX-ORef -->> ArgY-ORef */ M005 (RefOf (I000), RefOf (I061)) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, I061, 0x00, __LINE__) } /* ArgX-ORef -->> ArgY-IRef */ M005 (RefOf (I000), Local0 = S031 [0x01]) M380 (__METHOD__, I000, 0x00, __LINE__) M385 (__METHOD__, S031, 0x00, __LINE__) Local2 = DerefOf (Local0) M384 (__METHOD__, Local2, 0x00, __LINE__) END0 () } /* * TEST 21: Check writing from ArgX to LocalX * * ACTUALLY: * * - from ArgX-Object to LocalX * - from ArgX-ORef to LocalX * - from ArgX-IRef to LocalX */ Method (M236, 0, Serialized) { If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M236.TS__ */ } Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I001, 0x2B) Name (S001, "q+er0000") Method (M000, 2, NotSerialized) { Local0 = Arg0 If ((Arg1 == C009)) { M380 (__METHOD__, Local0, 0x00, __LINE__) } ElseIf ((Arg1 == C00A)) { M381 (__METHOD__, Local0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Local0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Local0, 0x00, __LINE__) } Local0 = 0x11 } Method (M001, 2, NotSerialized) { Local0 = Arg0 Local0 = ObjectType (Arg0) If ((Local0 != Arg1)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, Arg1) } /* Overwrite LocalX which contains either */ /* Object or ORef or IRef. */ Local0 = 0x11 } BEG0 (Z111, __METHOD__) /* ArgX-Object -->> LocalX */ M000 (I000, C009) M000 (S000, C00A) M000 (B000, C00B) M000 (P000, C00C) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) /* ArgX-ORef -->> LocalX */ M001 (RefOf (I000), C009) M001 (RefOf (S000), C00A) M001 (RefOf (B000), C00B) M001 (RefOf (P000), C00C) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) /* ArgX-IRef -->> LocalX */ M001 (S000 [0x01], C016) M001 (B000 [0x01], C016) M001 (P000 [0x01], C009) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) END0 () } /* * TEST 23: Generate LocalX-ORef and write to it * * ACTUALLY: doesn't write to the original object */ Method (M237, 0, Serialized) { If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M237.TS__ */ } Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) /* Overwrite LocalX-ORef */ Method (M000, 1, NotSerialized) { Local0 = RefOf (Arg0) Local0 = 0x11 Local0 = RefOf (I000) Local0 = 0x11 Local0 = RefOf (S000) Local0 = 0x11 Local0 = RefOf (B000) Local0 = 0x11 Local0 = RefOf (P000) Local0 = 0x11 } BEG0 (Z111, __METHOD__) M000 (I000) M000 (S000) M000 (B000) M000 (P000) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) END0 () } /* * TEST 24: Generate LocalX-IRef and write to it * * ACTUALLY: doesn't write to the original object */ Method (M238, 0, Serialized) { If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M238.TS__ */ } Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) /* Overwrite LocalX-ORef */ Method (M000, 1, NotSerialized) { Local1 = Local0 = Arg0 [0x01] Local0 = 0x11 Local1 = 0x22 Local1 = Local0 = S000 [0x01] Local0 = 0x11 Local1 = 0x22 Local1 = Local0 = B000 [0x01] Local0 = 0x11 Local1 = 0x22 Local1 = Local0 = P000 [0x01] Local0 = 0x11 Local1 = 0x22 } Method (M001, 1, NotSerialized) { Local1 = Local0 = Arg0 [0x01] CopyObject (0x11, Local0) CopyObject (0x22, Local1) Local1 = Local0 = S000 [0x01] CopyObject (0x11, Local0) CopyObject (0x22, Local1) Local1 = Local0 = B000 [0x01] CopyObject (0x11, Local0) CopyObject (0x22, Local1) Local1 = Local0 = P000 [0x01] CopyObject (0x11, Local0) CopyObject (0x22, Local1) } BEG0 (Z111, __METHOD__) M000 (S000) M000 (B000) M000 (P000) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M001 (S000) M001 (B000) M001 (P000) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) END0 () } /* * TEST 25: Generate ORef to global Object into ArgX and write to it * * ACTUALLY: * * - doesn't write to the original object * - the repeated attempts to overwrite ORef-ArgX cause exceptions */ Method (M239, 0, Serialized) { If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M239.TS__ */ } /* Local Objects */ Method (M000, 2, NotSerialized) { Arg1 = RefOf (Arg0) Arg1 = 0x11 } Method (M001, 2, NotSerialized) { Arg1 = RefOf (Arg0) Arg1 = 0x11 Arg1 = RefOf (IA00) Arg1 = 0x11 Arg1 = RefOf (SA00) Arg1 = 0x11 Arg1 = RefOf (BA00) Arg1 = 0x11 Arg1 = RefOf (PA00) Arg1 = 0x11 } Method (M002, 2, NotSerialized) { Arg1 = RefOf (Arg0) CopyObject (0x11, Arg1) Arg1 = RefOf (IA00) CopyObject (0x11, Arg1) Arg1 = RefOf (SA00) CopyObject (0x11, Arg1) Arg1 = RefOf (BA00) CopyObject (0x11, Arg1) Arg1 = RefOf (PA00) CopyObject (0x11, Arg1) } Method (M003, 2, NotSerialized) { CopyObject (RefOf (Arg0), Arg1) CopyObject (0x11, Arg1) CopyObject (RefOf (IA00), Arg1) CopyObject (0x11, Arg1) CopyObject (RefOf (SA00), Arg1) CopyObject (0x11, Arg1) CopyObject (RefOf (BA00), Arg1) CopyObject (0x11, Arg1) CopyObject (RefOf (PA00), Arg1) CopyObject (0x11, Arg1) } BEG0 (Z111, __METHOD__) /* m000 */ M000 (IA00, IA10) M000 (SA00, SA10) M000 (BA00, BA10) M000 (PA00, PA10) M380 (__METHOD__, IA00, 0x00, __LINE__) M381 (__METHOD__, SA00, 0x00, __LINE__) M382 (__METHOD__, BA00, 0x00, __LINE__) M383 (__METHOD__, PA00, 0x00, __LINE__) M380 (__METHOD__, IA10, 0x00, __LINE__) M381 (__METHOD__, SA10, 0x00, __LINE__) M382 (__METHOD__, BA10, 0x00, __LINE__) M383 (__METHOD__, PA10, 0x00, __LINE__) If (Y514) { /* m001 */ M001 (IA00, IA10) M001 (SA00, SA10) M001 (BA00, BA10) M001 (PA00, PA10) M380 (__METHOD__, IA00, 0x00, __LINE__) M381 (__METHOD__, SA00, 0x00, __LINE__) M382 (__METHOD__, BA00, 0x00, __LINE__) M383 (__METHOD__, PA00, 0x00, __LINE__) M380 (__METHOD__, IA10, 0x00, __LINE__) M381 (__METHOD__, SA10, 0x00, __LINE__) M382 (__METHOD__, BA10, 0x00, __LINE__) M383 (__METHOD__, PA10, 0x00, __LINE__) /* m002 */ M002 (IA00, IA10) M002 (SA00, SA10) M002 (BA00, BA10) M002 (PA00, PA10) M380 (__METHOD__, IA00, 0x00, __LINE__) M381 (__METHOD__, SA00, 0x00, __LINE__) M382 (__METHOD__, BA00, 0x00, __LINE__) M383 (__METHOD__, PA00, 0x00, __LINE__) M380 (__METHOD__, IA10, 0x00, __LINE__) M381 (__METHOD__, SA10, 0x00, __LINE__) M382 (__METHOD__, BA10, 0x00, __LINE__) M383 (__METHOD__, PA10, 0x00, __LINE__) } /* m003 */ M003 (IA00, IA10) M003 (SA00, SA10) M003 (BA00, BA10) M003 (PA00, PA10) M380 (__METHOD__, IA00, 0x00, __LINE__) M381 (__METHOD__, SA00, 0x00, __LINE__) M382 (__METHOD__, BA00, 0x00, __LINE__) M383 (__METHOD__, PA00, 0x00, __LINE__) M380 (__METHOD__, IA10, 0x00, __LINE__) M381 (__METHOD__, SA10, 0x00, __LINE__) M382 (__METHOD__, BA10, 0x00, __LINE__) M383 (__METHOD__, PA10, 0x00, __LINE__) END0 () } /* * TEST 26: Generate ORef to local Object into ArgX and write to it * * ACTUALLY: * * - doesn't write to the original object * - the repeated attempts to overwrite ORef-ArgX cause exceptions */ Method (M23A, 0, Serialized) { If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M23A.TS__ */ } /* Local Objects */ Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I010, 0x77) Name (S010, "qwer0000") Name (B010, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P010, Package (0x03) { 0x05, 0x77, 0x07 }) Method (M000, 2, NotSerialized) { Arg1 = RefOf (Arg0) Arg1 = 0x11 } Method (M001, 2, NotSerialized) { Arg1 = RefOf (Arg0) Arg1 = 0x11 Arg1 = RefOf (I000) Arg1 = 0x11 Arg1 = RefOf (S000) Arg1 = 0x11 Arg1 = RefOf (B000) Arg1 = 0x11 Arg1 = RefOf (P000) Arg1 = 0x11 } Method (M002, 2, NotSerialized) { Arg1 = RefOf (Arg0) CopyObject (0x11, Arg1) Arg1 = RefOf (I000) CopyObject (0x11, Arg1) Arg1 = RefOf (S000) CopyObject (0x11, Arg1) Arg1 = RefOf (B000) CopyObject (0x11, Arg1) Arg1 = RefOf (P000) CopyObject (0x11, Arg1) } Method (M003, 2, NotSerialized) { CopyObject (RefOf (Arg0), Arg1) CopyObject (0x11, Arg1) CopyObject (RefOf (I000), Arg1) CopyObject (0x11, Arg1) CopyObject (RefOf (S000), Arg1) CopyObject (0x11, Arg1) CopyObject (RefOf (B000), Arg1) CopyObject (0x11, Arg1) CopyObject (RefOf (P000), Arg1) CopyObject (0x11, Arg1) } BEG0 (Z111, __METHOD__) /* m000 */ M000 (I000, I010) M000 (S000, S010) M000 (B000, B010) M000 (P000, P010) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M380 (__METHOD__, I010, 0x00, __LINE__) M381 (__METHOD__, S010, 0x00, __LINE__) M382 (__METHOD__, B010, 0x00, __LINE__) M383 (__METHOD__, P010, 0x00, __LINE__) If (Y514) { /* m001 */ M001 (I000, I010) M001 (S000, S010) M001 (B000, B010) M001 (P000, P010) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M380 (__METHOD__, I010, 0x00, __LINE__) M381 (__METHOD__, S010, 0x00, __LINE__) M382 (__METHOD__, B010, 0x00, __LINE__) M383 (__METHOD__, P010, 0x00, __LINE__) /* m002 */ M002 (I000, I010) M002 (S000, S010) M002 (B000, B010) M002 (P000, P010) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M380 (__METHOD__, I010, 0x00, __LINE__) M381 (__METHOD__, S010, 0x00, __LINE__) M382 (__METHOD__, B010, 0x00, __LINE__) M383 (__METHOD__, P010, 0x00, __LINE__) } /* m003 */ M003 (I000, I010) M003 (S000, S010) M003 (B000, B010) M003 (P000, P010) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M380 (__METHOD__, I010, 0x00, __LINE__) M381 (__METHOD__, S010, 0x00, __LINE__) M382 (__METHOD__, B010, 0x00, __LINE__) M383 (__METHOD__, P010, 0x00, __LINE__) END0 () } /* * TEST 27: Check CopyObject to LocalX * * Local0-Local7 can be written with any type object without any conversion * * Check each type after each one */ Method (M23B, 0, NotSerialized) { TS00 ("m23b") M1B1 () } /* * TEST 28: Check Store to LocalX * * Local0-Local7 can be written without any conversion * * Check each type after each one */ Method (M23C, 0, NotSerialized) { TS00 ("m23c") M1B2 () } /* * TEST 29: CopyObject the result of RefOf to LocalX * * References to any type Objects are available. */ Method (M23D, 0, NotSerialized) { TS00 ("m23d") M1B4 () } /* * TEST 30: Store the result of RefOf to LocalX * * ACTUALLY: references to any type Objects are available */ Method (M23E, 0, NotSerialized) { TS00 ("m23e") M1B5 () } /* * TEST 31: CopyObject the result of Index to LocalX */ Method (M23F, 0, NotSerialized) { TS00 ("m23f") M1B6 () } /* * TEST 32: Store the result of Index to LocalX */ Method (M250, 0, NotSerialized) { TS00 ("m250") M1B7 () } /* * TEST 33: mix of all the legal ways (enumerated in * tests TEST 27 - TEST 35) of initializing * the LocalX. */ Method (M251, 0, NotSerialized) { TS00 ("m251") /* Strategies: */ /* 1 - mix of groups, 2 - Mod-6 strategy, otherwise - linear */ M1E0 (0x01) } /* * TEST 34: Obtain the NamedX objects of all the types * and check their {type,size,value}. * * SEE: it is implemented in name/name.asl */ /* * TEST 35 * * Obtain and verify the ORef * and IRef to named objects * {type,size,value}. */ Method (M252, 0, Serialized) { TS00 (__METHOD__) M1AD (__METHOD__, 0x00, 0x01, 0x01, 0x01, 0x00) /* NamedX-ORef */ M4D2 () /* NamedX-IRef */ M4D3 () } /* * TEST 36: Check ArgX-ORef being passed further to another Method * * ACTUALLY: writes to the original object * Object:RefOf:ORef:ArgX-ORef:M2:M3:...:M*:write * ^ Changed * * A set of available for Store types for to write into is restricted */ Method (M253, 0, NotSerialized) { TS00 ("m253") /* Store */ M34D (0x00) /* CopyObject */ M34D (0x01) } /* * TEST 37: Check ArgX-IRef being passed further to another Method * * ACTUALLY: doesn't write to the original object */ Method (M254, 0, NotSerialized) { TS00 ("m254") /* Store */ M34E (0x00) /* CopyObject */ M34E (0x01) } /* * TEST 38: Check write(x, RefOf(y)) */ Method (M255, 0, NotSerialized) { TS00 ("m255") /* Store */ M34F () /* CopyObject */ /* CURRENTLY: compiler failed CopyObject(xx, RefOf(xx)) */ /* m350() */ } /* * TEST 39: Check write(x, Index(String)) */ Method (M256, 0, Serialized) { TS00 (__METHOD__) Name (S000, "qwer0000") Name (S010, "qwer0000") BEG0 (Z111, __METHOD__) /* Store */ S000 [0x01] = 0x2B M385 (__METHOD__, S000, 0x00, __LINE__) Local0 = S010 [0x01] S010 [0x01] = 0x2B M385 (__METHOD__, S010, 0x00, __LINE__) /* CopyObject */ /* CURRENTLY: compiler failed CopyObject(xx, Index(xx,xx)) */ /* CopyObject(0x2b, Index(s020, 1)) */ /* m385 (ts, s020, 0, __LINE__)*/ END0 () } /* * TEST 40: Check write(x, Index(Buffer)) */ Method (M257, 0, Serialized) { TS00 (__METHOD__) Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (B010, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) BEG0 (Z111, __METHOD__) /* Store */ B000 [0x01] = 0x2B M386 (__METHOD__, B000, 0x00, __LINE__) Local0 = B010 [0x01] B010 [0x01] = 0x2B M386 (__METHOD__, B010, 0x00, __LINE__) END0 () } /* * TEST 41: Check Store(Object, Index(Package(){Uninitialized})) */ Method (M258, 1, Serialized) { TS00 (__METHOD__) Name (P100, Package (0x12){}) P100 [0x00] = 0x00 P100 [0x01] = I900 /* \I900 */ P100 [0x02] = S900 /* \S900 */ P100 [0x03] = B900 /* \B900 */ P100 [0x04] = P953 /* \P953 */ P100 [0x05] = F900 /* \F900 */ /* // Removed 09/2015. iASL now disallows these stores if (arg0) { // Check these for exceptions but not there Store(d900, Index(p100, 6)) Store(e900, Index(p100, 7)) Store(m914, Index(p100, 8)) Store(mx90, Index(p100, 9)) Store(r900, Index(p100, 10)) Store(pw90, Index(p100, 11)) Store(pr90, Index(p100, 12)) Store(tz90, Index(p100, 13)) } */ P100 [0x0E] = BF90 /* \BF90 */ P100 [0x0F] = 0x0F P100 [0x10] = 0x10 /* Verify p955-like Package */ M1AF (P100, 0x00, 0x00, 0x00) M1A6 () } /* * TEST 42: Check CopyObject(Object, Index(Package(){Uninitialized})) * * CURRENTLY: compiler failed CopyObject(xx, Index(xx,xx)) */ Method (M259, 0, Serialized) { TS00 ("m259") Name (P100, Package (0x12){}) /* * CopyObject(i900, Index(p100, 1)) * CopyObject(s900, Index(p100, 2)) * CopyObject(b900, Index(p100, 3)) * CopyObject(p953, Index(p100, 4)) * CopyObject(f900, Index(p100, 5)) * CopyObject(d900, Index(p100, 6)) * CopyObject(e900, Index(p100, 7)) * CopyObject(m914, Index(p100, 8)) * CopyObject(mx90, Index(p100, 9)) * CopyObject(r900, Index(p100, 10)) * CopyObject(pw90, Index(p100, 11)) * CopyObject(pr90, Index(p100, 12)) * CopyObject(tz90, Index(p100, 13)) * CopyObject(bf90, Index(p100, 14)) * * m1af(p100, 1, 0, 0) * * * m1a6() */ } /* * TEST 43: Check Store(RefOf(Object), Index(Package(){Uninitialized})) */ Method (M25A, 0, Serialized) { TS00 ("m25a") Name (P100, Package (0x12){}) M352 (P100) M1AF (P100, 0x01, 0x01, 0x01) M1A6 () } /* * TEST 44: Check Store(Index(Object,x), Index(Package(){Uninitialized})) */ Method (M25B, 0, Serialized) { TS00 ("m25b") Name (P100, Package (0x12){}) /* Store IRef (Index(p955, x)) into Package */ M353 (P100, 0x00) /* Verify p955-like Package */ M1AF (P100, 0x01, 0x00, 0x01) M1A6 () } /* * TEST 45: Check write(x, Index(Package(){Constant})) */ Method (M25C, 0, Serialized) { TS00 (__METHOD__) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Name (P010, Package (0x03) { 0x05, 0x77, 0x07 }) BEG0 (Z111, __METHOD__) /* Store */ P000 [0x01] = 0x2B M387 (__METHOD__, P000, 0x00, __LINE__) Local0 = P010 [0x01] P010 [0x01] = 0x2B M387 (__METHOD__, P010, 0x00, __LINE__) END0 () } /* * TEST 46: Check write(x, Index(Package(){NamedX})) */ Method (M25D, 0, NotSerialized) { TS00 ("m25d") /* Write Integer into Package and verify the obtained contents */ M351 (P955) /* Restore p955 Package */ M1C6 () /* Check that the original data (i900,...) */ /* are unchanged: */ M1A6 () } /* * TEST 47: Check Store(Object, Index(Package(){ORef})) */ Method (M25E, 0, Serialized) { TS00 ("m25e") Name (P100, Package (0x12){}) /* Prepare Package with ORef elements */ /* pointing to the global *9** data: */ M352 (P100) /* Verify p955-like Package */ M1AF (P100, 0x01, 0x01, 0x01) /* Check the global *9** data are safe: */ M1A6 () /* Write Integer into Package over the ORef */ /* and verify the obtained contents */ M351 (P100) /* Check the global *9** data are safe: */ M1A6 () } /* * TEST 48: Check Store(Object, Index(Package(){IRef})) */ Method (M25F, 0, Serialized) { TS00 ("m25f") Name (P100, Package (0x12){}) /* Store IRef (Index(p955, x)) into Package */ /* (p955 belongs to *9** data): */ M353 (P100, 0x00) /* Verify p955-like Package */ M1AF (P100, 0x01, 0x00, 0x01) M1A6 () /* Write Integer into Package over the IRef */ /* and verify the obtained contents */ M351 (P100) /* Check the global *9** data are safe: */ M1A6 () } /* * TEST 49: ORef-LocalX */ Method (M260, 0, NotSerialized) { TS00 ("m260") /* Store */ M354 () /* CopyObject */ M355 () } Method (M354, 0, Serialized) { Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Device (D000) { Name (I000, 0xABCD0017) } Method (M000, 1, NotSerialized) { Arg0 = 0x2B } BEG0 (Z111, __METHOD__) Local0 = RefOf (I000) If (0x00) { /* This is a reference */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local7 = (Local0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } M1A3 (Local0, C009, 0x00, 0x00, __LINE__) M380 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) Local0 = RefOf (S000) M1A3 (Local0, C00A, 0x00, 0x00, __LINE__) M381 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) Local0 = RefOf (B000) M1A3 (Local0, C00B, 0x00, 0x00, __LINE__) M382 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) Local0 = RefOf (P000) M1A3 (Local0, C00C, 0x00, 0x00, __LINE__) M383 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) Local0 = RefOf (D000) M1A3 (Local0, C00E, 0x00, 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) END0 () } Method (M355, 0, Serialized) { Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Device (D000) { Name (I000, 0xABCD0017) } Method (M000, 1, NotSerialized) { CopyObject (0x2B, Arg0) } BEG0 (Z111, __METHOD__) CopyObject (RefOf (I000), Local0) If (0x00) { /* This is a reference */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local7 = (Local0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } M1A3 (Local0, C009, 0x00, 0x00, __LINE__) M380 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) CopyObject (RefOf (S000), Local0) M1A3 (Local0, C00A, 0x00, 0x00, __LINE__) M381 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) CopyObject (RefOf (B000), Local0) M1A3 (Local0, C00B, 0x00, 0x00, __LINE__) M382 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) CopyObject (RefOf (P000), Local0) M1A3 (Local0, C00C, 0x00, 0x00, __LINE__) M383 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) CopyObject (RefOf (D000), Local0) M1A3 (Local0, C00E, 0x00, 0x00, __LINE__) M000 (Local0) M384 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) END0 () } /* * TEST 50: ORef-ArgX */ Method (M261, 0, Serialized) { TS00 (__METHOD__) Name (I000, 0x77) Name (I001, 0x77) BEG0 (Z111, __METHOD__) /* Store */ If (Y519) { M356 (I000) M380 (__METHOD__, I000, 0x00, __LINE__) } Else { M1AE (__METHOD__, "Store ORef to ArgX", "AE_AML_OPERAND_TYPE exception occurs") } /* CopyObject */ If (Y520) { M357 (I001) M380 (__METHOD__, I001, 0x00, __LINE__) } Else { M1AE (__METHOD__, "CopyObject ORef to ArgX", "AE_AML_OPERAND_TYPE exception occurs") } END0 () } Method (M356, 1, Serialized) { Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Device (D000) { Name (I000, 0xABCD0017) } Method (M000, 1, NotSerialized) { Arg0 = 0x2B } BEG0 (Z111, __METHOD__) Arg0 = RefOf (I000) If (0x00) { /* This is a reference */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local7 = (Arg0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } M1A3 (Arg0, C009, 0x00, 0x00, __LINE__) M380 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) Arg0 = RefOf (S000) M1A3 (Arg0, C00A, 0x00, 0x00, __LINE__) M381 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) Arg0 = RefOf (B000) M1A3 (Arg0, C00B, 0x00, 0x00, __LINE__) M382 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) Arg0 = RefOf (P000) M1A3 (Arg0, C00C, 0x00, 0x00, __LINE__) M383 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) Arg0 = RefOf (D000) M1A3 (Arg0, C00E, 0x00, 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) END0 () } Method (M357, 1, Serialized) { Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Device (D000) { Name (I000, 0xABCD0017) } Method (M000, 1, NotSerialized) { CopyObject (0x2B, Arg0) } BEG0 (Z111, __METHOD__) CopyObject (RefOf (I000), Arg0) If (0x00) { /* This is a reference */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local7 = (Arg0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } M1A3 (Arg0, C009, 0x00, 0x00, __LINE__) M380 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) CopyObject (RefOf (S000), Arg0) M1A3 (Arg0, C00A, 0x00, 0x00, __LINE__) M381 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) CopyObject (RefOf (B000), Arg0) M1A3 (Arg0, C00B, 0x00, 0x00, __LINE__) M382 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) CopyObject (RefOf (P000), Arg0) M1A3 (Arg0, C00C, 0x00, 0x00, __LINE__) M383 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) CopyObject (RefOf (D000), Arg0) M1A3 (Arg0, C00E, 0x00, 0x00, __LINE__) M000 (Arg0) M384 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) END0 () } /* * TEST 51: ORef-NamedX */ Method (M262, 0, Serialized) { TS00 (__METHOD__) /* Store */ If (Y521) { M358 () } Else { M1AE (__METHOD__, "Store ORef to NamedX", "AE_AML_OPERAND_TYPE exception occurs") } /* CopyObject */ If (Y522) { M359 () } Else { M1AE (__METHOD__, "CopyObject ORef to NamedX", "AE_AML_OPERAND_TYPE exception occurs") } } Method (M358, 0, Serialized) { Name (III0, 0x00) Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Device (D000) { Name (I000, 0xABCD0017) } Method (M000, 1, NotSerialized) { Arg0 = 0x2B } BEG0 (Z111, __METHOD__) III0 = RefOf (I000) If (0x00) { /* This is a reference */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local7 = (III0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } M1A3 (III0, C009, 0x00, 0x00, __LINE__) M380 (__METHOD__, DerefOf (III0), 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) III0 = RefOf (S000) M1A3 (III0, C00A, 0x00, 0x00, __LINE__) M381 (__METHOD__, DerefOf (III0), 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) III0 = RefOf (B000) M1A3 (III0, C00B, 0x00, 0x00, __LINE__) M382 (__METHOD__, DerefOf (III0), 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) III0 = RefOf (P000) M1A3 (III0, C00C, 0x00, 0x00, __LINE__) M383 (__METHOD__, DerefOf (III0), 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) III0 = RefOf (D000) M1A3 (III0, C00E, 0x00, 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) END0 () } Method (M359, 0, Serialized) { Name (III0, 0x00) Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Device (D000) { Name (I000, 0xABCD0017) } Method (M000, 1, NotSerialized) { CopyObject (0x2B, Arg0) } BEG0 (Z111, __METHOD__) CopyObject (RefOf (I000), III0) /* \M359.III0 */ If (0x00) { /* This is a reference */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) Local7 = (III0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) } M1A3 (III0, C009, 0x00, 0x00, __LINE__) M380 (__METHOD__, DerefOf (III0), 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) CopyObject (RefOf (S000), III0) /* \M359.III0 */ M1A3 (III0, C00A, 0x00, 0x00, __LINE__) M381 (__METHOD__, DerefOf (III0), 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) CopyObject (RefOf (B000), III0) /* \M359.III0 */ M1A3 (III0, C00B, 0x00, 0x00, __LINE__) M382 (__METHOD__, DerefOf (III0), 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) CopyObject (RefOf (P000), III0) /* \M359.III0 */ M1A3 (III0, C00C, 0x00, 0x00, __LINE__) M383 (__METHOD__, DerefOf (III0), 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) CopyObject (RefOf (D000), III0) /* \M359.III0 */ M1A3 (III0, C00E, 0x00, 0x00, __LINE__) M000 (III0) M384 (__METHOD__, DerefOf (III0), 0x00, __LINE__) END0 () } /* * TEST 52: ORef-El_of_Package */ Method (M263, 0, NotSerialized) { TS00 ("m263") /* Store */ M35A () /* CopyObject */ M35B () } Method (M35A, 0, Serialized) { Name (PPP0, Package (0x05){}) Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Device (D000) { Name (I000, 0xABCD0017) } BEG0 (Z111, __METHOD__) PPP0 [0x00] = RefOf (I000) PPP0 [0x01] = RefOf (S000) PPP0 [0x02] = RefOf (B000) PPP0 [0x03] = RefOf (P000) PPP0 [0x04] = RefOf (D000) Local0 = DerefOf (PPP0 [0x00]) M1A3 (Local0, C009, 0x00, 0x00, __LINE__) M380 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) Local0 = DerefOf (PPP0 [0x01]) M1A3 (Local0, C00A, 0x00, 0x00, __LINE__) M381 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) Local0 = DerefOf (PPP0 [0x02]) M1A3 (Local0, C00B, 0x00, 0x00, __LINE__) M382 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) Local0 = DerefOf (PPP0 [0x03]) M1A3 (Local0, C00C, 0x00, 0x00, __LINE__) M383 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) Local0 = DerefOf (PPP0 [0x04]) M1A3 (Local0, C00E, 0x00, 0x00, __LINE__) /* Replace */ PPP0 [0x00] = RefOf (I000) Local0 = DerefOf (PPP0 [0x00]) M1A3 (Local0, C009, 0x00, 0x00, __LINE__) M380 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) PPP0 [0x00] = RefOf (S000) Local0 = DerefOf (PPP0 [0x00]) M1A3 (Local0, C00A, 0x00, 0x00, __LINE__) M381 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) PPP0 [0x00] = RefOf (B000) Local0 = DerefOf (PPP0 [0x00]) M1A3 (Local0, C00B, 0x00, 0x00, __LINE__) M382 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) PPP0 [0x00] = RefOf (P000) Local0 = DerefOf (PPP0 [0x00]) M1A3 (Local0, C00C, 0x00, 0x00, __LINE__) M383 (__METHOD__, DerefOf (Local0), 0x00, __LINE__) PPP0 [0x00] = RefOf (D000) Local0 = DerefOf (PPP0 [0x00]) M1A3 (Local0, C00E, 0x00, 0x00, __LINE__) END0 () } /* CURRENTLY: compiler failed CopyObject(xx, Index(xx,xx)) */ Method (M35B, 0, NotSerialized) { /* Name(ts, "m35b") Name(ppp0, Package(5) {}) Name(i000, 0x77) Name(s000, "qwer0000") Name(b000, Buffer(4) {1,0x77,3,4}) Name(p000, Package(3) {5,0x77,7}) Device(d000) { Name(i000, 0xabcd0017) } BEG0(z111, ts) CopyObject(RefOf(i000), Index(ppp0, 0)) CopyObject(RefOf(s000), Index(ppp0, 1)) CopyObject(RefOf(b000), Index(ppp0, 2)) CopyObject(RefOf(p000), Index(ppp0, 3)) CopyObject(RefOf(d000), Index(ppp0, 4)) CopyObject(DerefOf(Index(ppp0, 0)), Local0) m1a3(Local0, c009, 0, 0, 0) m380 (ts, DerefOf(Local0), 0, __LINE__) CopyObject(DerefOf(Index(ppp0, 1)), Local0) m1a3(Local0, c00a, 0, 0, 2) m381 (ts, DerefOf(Local0), 0, __LINE__) CopyObject(DerefOf(Index(ppp0, 2)), Local0) m1a3(Local0, c00b, 0, 0, 4) m382 (ts, DerefOf(Local0), 0, __LINE__) CopyObject(DerefOf(Index(ppp0, 3)), Local0) m1a3(Local0, c00c, 0, 0, 6) m383 (ts, DerefOf(Local0), 0, __LINE__) CopyObject(DerefOf(Index(ppp0, 4)), Local0) m1a3(Local0, c00e, 0, 0, 8) // Replace CopyObject(RefOf(i000), Index(ppp0, 0)) CopyObject(DerefOf(Index(ppp0, 0)), Local0) m1a3(Local0, c009, 0, 0, 9) m380 (ts, DerefOf(Local0), 0, __LINE__) CopyObject(RefOf(s000), Index(ppp0, 0)) CopyObject(DerefOf(Index(ppp0, 0)), Local0) m1a3(Local0, c00a, 0, 0, 11) m381 (ts, DerefOf(Local0), 0, __LINE__) CopyObject(RefOf(b000), Index(ppp0, 0)) CopyObject(DerefOf(Index(ppp0, 0)), Local0) m1a3(Local0, c00b, 0, 0, 13) m382 (ts, DerefOf(Local0), 0, __LINE__) CopyObject(RefOf(p000), Index(ppp0, 0)) CopyObject(DerefOf(Index(ppp0, 0)), Local0) m1a3(Local0, c00c, 0, 0, 15) m383 (ts, DerefOf(Local0), 0, __LINE__) CopyObject(RefOf(d000), Index(ppp0, 0)) CopyObject(DerefOf(Index(ppp0, 0)), Local0) m1a3(Local0, c00e, 0, 0, 17) END0() */ } /* * TEST 53: IRef-LocalX */ Method (M264, 0, NotSerialized) { TS00 ("m264") /* Store */ M35C () /* CopyObject */ M35D () } Method (M35C, 0, Serialized) { Name (P000, Package (0x12){}) BEG0 (Z111, __METHOD__) /* Construct the p955-like Package p000 applying LocalX-IRef */ Store (P956 [0x00], Local0) P000 [0x00] = Local0 Store (P956 [0x01], Local0) P000 [0x01] = Local0 Store (P956 [0x02], Local0) P000 [0x02] = Local0 Store (P956 [0x03], Local0) P000 [0x03] = Local0 Store (P956 [0x04], Local0) P000 [0x04] = Local0 Store (P956 [0x05], Local0) P000 [0x05] = Local0 Store (P956 [0x06], Local0) P000 [0x06] = Local0 Store (P956 [0x07], Local0) P000 [0x07] = Local0 Store (P956 [0x08], Local0) P000 [0x08] = Local0 Store (P956 [0x09], Local0) P000 [0x09] = Local0 Store (P956 [0x0A], Local0) P000 [0x0A] = Local0 Store (P956 [0x0B], Local0) P000 [0x0B] = Local0 Store (P956 [0x0C], Local0) P000 [0x0C] = Local0 Store (P956 [0x0D], Local0) P000 [0x0D] = Local0 Store (P956 [0x0E], Local0) P000 [0x0E] = Local0 Store (P956 [0x0F], Local0) P000 [0x0F] = Local0 Store (P956 [0x10], Local0) P000 [0x10] = Local0 P000 [0x00] = 0x00 P000 [0x0F] = 0x0F P000 [0x10] = 0x10 /* Verify p955-like Package */ M1AF (P000, 0x01, 0x00, 0x01) M1A6 () END0 () } /* CURRENTLY: compiler failed CopyObject(xx, Index(xx,xx)) */ Method (M35D, 0, NotSerialized) { /* Name(ts, "m35d") Name(p000, Package(18) {}) BEG0(z111, ts) // Construct the p955-like Package p000 applying LocalX-IRef CopyObject(Index(p956, 0), Local0) CopyObject(Local0, Index(p000, 0)) CopyObject(Index(p956, 1), Local0) CopyObject(Local0, Index(p000, 1)) CopyObject(Index(p956, 2), Local0) CopyObject(Local0, Index(p000, 2)) CopyObject(Index(p956, 3), Local0) CopyObject(Local0, Index(p000, 3)) CopyObject(Index(p956, 4), Local0) CopyObject(Local0, Index(p000, 4)) CopyObject(Index(p956, 5), Local0) CopyObject(Local0, Index(p000, 5)) CopyObject(Index(p956, 6), Local0) CopyObject(Local0, Index(p000, 6)) CopyObject(Index(p956, 7), Local0) CopyObject(Local0, Index(p000, 7)) CopyObject(Index(p956, 8), Local0) CopyObject(Local0, Index(p000, 8)) CopyObject(Index(p956, 9), Local0) CopyObject(Local0, Index(p000, 9)) CopyObject(Index(p956, 10), Local0) CopyObject(Local0, Index(p000, 10)) CopyObject(Index(p956, 11), Local0) CopyObject(Local0, Index(p000, 11)) CopyObject(Index(p956, 12), Local0) CopyObject(Local0, Index(p000, 12)) CopyObject(Index(p956, 13), Local0) CopyObject(Local0, Index(p000, 13)) CopyObject(Index(p956, 14), Local0) CopyObject(Local0, Index(p000, 14)) CopyObject(Index(p956, 15), Local0) CopyObject(Local0, Index(p000, 15)) CopyObject(Index(p956, 16), Local0) CopyObject(Local0, Index(p000, 16)) CopyObject(0, Index(p000, 0)) CopyObject(15, Index(p000, 15)) CopyObject(16, Index(p000, 16)) // Verify p955-like Package m1af(p000, 1, 0, 1) m1a6() END0() */ } /* * TEST 54: IRef-ArgX */ Method (M265, 0, Serialized) { TS00 (__METHOD__) Name (I000, 0x77) Name (I010, 0x77) /* Store */ M35E (I000) M380 (__METHOD__, I000, Z111, __LINE__) /* CopyObject */ M35F (I010) M380 (__METHOD__, I010, Z111, __LINE__) } Method (M35E, 1, Serialized) { Name (P000, Package (0x12){}) BEG0 (Z111, __METHOD__) /* Construct the p955-like Package p000 applying LocalX-IRef */ Store (P956 [0x00], Arg0) P000 [0x00] = Arg0 Store (P956 [0x01], Arg0) P000 [0x01] = Arg0 Store (P956 [0x02], Arg0) P000 [0x02] = Arg0 Store (P956 [0x03], Arg0) P000 [0x03] = Arg0 Store (P956 [0x04], Arg0) P000 [0x04] = Arg0 Store (P956 [0x05], Arg0) P000 [0x05] = Arg0 Store (P956 [0x06], Arg0) P000 [0x06] = Arg0 Store (P956 [0x07], Arg0) P000 [0x07] = Arg0 Store (P956 [0x08], Arg0) P000 [0x08] = Arg0 Store (P956 [0x09], Arg0) P000 [0x09] = Arg0 Store (P956 [0x0A], Arg0) P000 [0x0A] = Arg0 Store (P956 [0x0B], Arg0) P000 [0x0B] = Arg0 Store (P956 [0x0C], Arg0) P000 [0x0C] = Arg0 Store (P956 [0x0D], Arg0) P000 [0x0D] = Arg0 Store (P956 [0x0E], Arg0) P000 [0x0E] = Arg0 Store (P956 [0x0F], Arg0) P000 [0x0F] = Arg0 Store (P956 [0x10], Arg0) P000 [0x10] = Arg0 P000 [0x00] = 0x00 P000 [0x0F] = 0x0F P000 [0x10] = 0x10 /* Verify p955-like Package */ M1AF (P000, 0x01, 0x00, 0x01) M1A6 () END0 () } /* CURRENTLY: compiler failed CopyObject(xx, Index(xx,xx)) */ Method (M35F, 1, NotSerialized) { /* Name(ts, "m35f") Name(p000, Package(18) {}) BEG0(z111, ts) // Construct the p955-like Package p000 applying LocalX-IRef CopyObject(Index(p956, 0), Arg0) CopyObject(Arg0, Index(p000, 0)) CopyObject(Index(p956, 1), Arg0) CopyObject(Arg0, Index(p000, 1)) CopyObject(Index(p956, 2), Arg0) CopyObject(Arg0, Index(p000, 2)) CopyObject(Index(p956, 3), Arg0) CopyObject(Arg0, Index(p000, 3)) CopyObject(Index(p956, 4), Arg0) CopyObject(Arg0, Index(p000, 4)) CopyObject(Index(p956, 5), Arg0) CopyObject(Arg0, Index(p000, 5)) CopyObject(Index(p956, 6), Arg0) CopyObject(Arg0, Index(p000, 6)) CopyObject(Index(p956, 7), Arg0) CopyObject(Arg0, Index(p000, 7)) CopyObject(Index(p956, 8), Arg0) CopyObject(Arg0, Index(p000, 8)) CopyObject(Index(p956, 9), Arg0) CopyObject(Arg0, Index(p000, 9)) CopyObject(Index(p956, 10), Arg0) CopyObject(Arg0, Index(p000, 10)) CopyObject(Index(p956, 11), Arg0) CopyObject(Arg0, Index(p000, 11)) CopyObject(Index(p956, 12), Arg0) CopyObject(Arg0, Index(p000, 12)) CopyObject(Index(p956, 13), Arg0) CopyObject(Arg0, Index(p000, 13)) CopyObject(Index(p956, 14), Arg0) CopyObject(Arg0, Index(p000, 14)) CopyObject(Index(p956, 15), Arg0) CopyObject(Arg0, Index(p000, 15)) CopyObject(Index(p956, 16), Arg0) CopyObject(Arg0, Index(p000, 16)) CopyObject(0, Index(p000, 0)) CopyObject(15, Index(p000, 15)) CopyObject(16, Index(p000, 16)) // Verify p955-like Package m1af(p000, 1, 0, 1) m1a6() END0() */ } /* * TEST 55: IRef-NamedX */ Method (M266, 0, Serialized) { TS00 (__METHOD__) /* Store */ If (Y521) { M360 () } Else { M1AE (__METHOD__, "Store IRef to NamedX", "AE_AML_OPERAND_TYPE exception occurs") } /* CopyObject */ M361 () } Method (M360, 0, Serialized) { Name (III0, 0x00) Name (P000, Package (0x12){}) BEG0 (Z111, __METHOD__) /* Construct the p955-like Package p000 applying LocalX-IRef */ Store (P956 [0x00], III0) /* \M360.III0 */ P000 [0x00] = III0 /* \M360.III0 */ Store (P956 [0x01], III0) /* \M360.III0 */ P000 [0x01] = III0 /* \M360.III0 */ Store (P956 [0x02], III0) /* \M360.III0 */ P000 [0x02] = III0 /* \M360.III0 */ Store (P956 [0x03], III0) /* \M360.III0 */ P000 [0x03] = III0 /* \M360.III0 */ Store (P956 [0x04], III0) /* \M360.III0 */ P000 [0x04] = III0 /* \M360.III0 */ Store (P956 [0x05], III0) /* \M360.III0 */ P000 [0x05] = III0 /* \M360.III0 */ Store (P956 [0x06], III0) /* \M360.III0 */ P000 [0x06] = III0 /* \M360.III0 */ Store (P956 [0x07], III0) /* \M360.III0 */ P000 [0x07] = III0 /* \M360.III0 */ Store (P956 [0x08], III0) /* \M360.III0 */ P000 [0x08] = III0 /* \M360.III0 */ Store (P956 [0x09], III0) /* \M360.III0 */ P000 [0x09] = III0 /* \M360.III0 */ Store (P956 [0x0A], III0) /* \M360.III0 */ P000 [0x0A] = III0 /* \M360.III0 */ Store (P956 [0x0B], III0) /* \M360.III0 */ P000 [0x0B] = III0 /* \M360.III0 */ Store (P956 [0x0C], III0) /* \M360.III0 */ P000 [0x0C] = III0 /* \M360.III0 */ Store (P956 [0x0D], III0) /* \M360.III0 */ P000 [0x0D] = III0 /* \M360.III0 */ Store (P956 [0x0E], III0) /* \M360.III0 */ P000 [0x0E] = III0 /* \M360.III0 */ Store (P956 [0x0F], III0) /* \M360.III0 */ P000 [0x0F] = III0 /* \M360.III0 */ Store (P956 [0x10], III0) /* \M360.III0 */ P000 [0x10] = III0 /* \M360.III0 */ P000 [0x00] = 0x00 P000 [0x0F] = 0x0F P000 [0x10] = 0x10 /* Verify p955-like Package */ M1AF (P000, 0x01, 0x00, 0x01) M1A6 () END0 () } /* CURRENTLY: compiler failed CopyObject(xx, Index(xx,xx)) */ Method (M361, 0, NotSerialized) { /* Name(ts, "m361") Name(iii0, 0) Name(p000, Package(18) {}) BEG0(z111, ts) // Construct the p955-like Package p000 applying LocalX-IRef CopyObject(Index(p956, 0), iii0) CopyObject(iii0, Index(p000, 0)) CopyObject(Index(p956, 1), iii0) CopyObject(iii0, Index(p000, 1)) CopyObject(Index(p956, 2), iii0) CopyObject(iii0, Index(p000, 2)) CopyObject(Index(p956, 3), iii0) CopyObject(iii0, Index(p000, 3)) CopyObject(Index(p956, 4), iii0) CopyObject(iii0, Index(p000, 4)) CopyObject(Index(p956, 5), iii0) CopyObject(iii0, Index(p000, 5)) CopyObject(Index(p956, 6), iii0) CopyObject(iii0, Index(p000, 6)) CopyObject(Index(p956, 7), iii0) CopyObject(iii0, Index(p000, 7)) CopyObject(Index(p956, 8), iii0) CopyObject(iii0, Index(p000, 8)) CopyObject(Index(p956, 9), iii0) CopyObject(iii0, Index(p000, 9)) CopyObject(Index(p956, 10), iii0) CopyObject(iii0, Index(p000, 10)) CopyObject(Index(p956, 11), iii0) CopyObject(iii0, Index(p000, 11)) CopyObject(Index(p956, 12), iii0) CopyObject(iii0, Index(p000, 12)) CopyObject(Index(p956, 13), iii0) CopyObject(iii0, Index(p000, 13)) CopyObject(Index(p956, 14), iii0) CopyObject(iii0, Index(p000, 14)) CopyObject(Index(p956, 15), iii0) CopyObject(iii0, Index(p000, 15)) CopyObject(Index(p956, 16), iii0) CopyObject(iii0, Index(p000, 16)) CopyObject(0, Index(p000, 0)) CopyObject(15, Index(p000, 15)) CopyObject(16, Index(p000, 16)) // Verify p955-like Package m1af(p000, 1, 0, 1) m1a6() END0() */ } /* * TEST 56: IRef-El_of_Package */ Method (M267, 0, Serialized) { TS00 ("m267") Name (P100, Package (0x12){}) /* Store */ M25B () If (Q003) { /* CopyObject */ /* CopyObject IRef (Index(p955, x)) into Package */ M353 (P100, 0x01) /* Verify p955-like Package */ M1AF (P100, 0x01, 0x00, 0x01) M1A6 () } } /* * TEST 57: Store total */ Method (M268, 0, NotSerialized) { M1AE ("m268", "Store total", "Not implemented yet") } /* * TEST 58: CopyObject total */ Method (M269, 0, NotSerialized) { M1AE ("m269", "CopyObject total", "Not implemented yet") } /* * TEST 59: Mix of Store and CopyObject total */ Method (M26A, 0, NotSerialized) { M1AE ("m26a", "Mix of Store and CopyObject total", "Not implemented yet") } /* * TEST 60: Package total */ Method (M26B, 0, Serialized) { TS00 (__METHOD__) Name (I000, 0x77) Name (I001, 0x77) /* READ */ /* m1c1 & m1c2 - perform all the ways reading */ /* element of Package passed by ArgX. */ /* Read immediate image element of Package */ /* */ /* Package specified by the immediate */ /* images of {Integer, String, Buffer, Package}. */ M1C1 () /* Read NamedX element of Package */ /* {Integer, String, Buffer, Package}. */ M1C2 () /* Read any type named object element of Package */ M1AF (P955, 0x01, 0x01, 0x00) /* Check Uninitialized element of Package */ M1C4 () /* The chain of Index_References */ M1C5 () /* Access to the Method named object element of Package */ M1C7 () M1C8 () /* Read automatic dereference expected */ /* when accessing element of Package. */ M1CE () If (X132) { M1CF () /* bug 132 */ M1D0 () /* bug 132 */ } /* WRITE */ /* Write to element of Package specified as */ /* immediate IRef passed to method. */ If (X133) { M1D9 () /* bug 133 */ M1DA () /* bug 133 */ } /* EXCEPTIONS */ /* No read automatic dereference expected */ M1D1 () If (X127) { M1D2 () /* bug 127 */ } M1D3 (I000, I001) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, I001, 0x00, __LINE__) If (X127) { M1D4 (I000, I001) /* bug 127 */ } M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, I001, 0x00, __LINE__) If (X127) { M1D5 () /* bug 127 */ M1D6 () /* bug 127 */ M1DB () /* bug 127 */ } /* Other */ M1D7 () M1D8 () /* DerefOf of the Method named object element of Package */ M1C9 () /* Size of Package */ /* m1ca: bug 129 (not a bug, in case of */ /* dynamically created Package non-limited */ /* size Package is allowed. Handled by the */ /* particular AML opcode VarPackage). */ M1CA () M1CB () } /* * TEST 61: String total */ Method (M26C, 0, NotSerialized) { M1AE ("m26c", "String total", "Not implemented yet") } /* * TEST 62: Buffer total */ Method (M26D, 0, NotSerialized) { CH03 ("m26d", 0x00, __LINE__, 0x00, 0x00) M1AE ("m26d", "Buffer total", "Not implemented yet") CH03 ("m26d", 0x00, __LINE__, 0x00, 0x00) } /* * TEST 63: All the legal ways of WRITING ORef reference to some target location */ Method (M26E, 0, Serialized) { If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M26E.TS__ */ } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* Store */ M365 () /* CopyObject */ M366 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M365, 0, Serialized) { Name (I000, 0x77) Name (I001, 0x77) Name (I002, 0x77) Name (I003, 0x00) Name (I004, 0x77) Name (III0, 0x11) Name (III1, 0x22) Name (III2, 0x33) Name (III3, 0x44) Name (III4, 0x55) Name (III5, 0x66) Name (III6, 0x88) Name (III7, 0x99) Name (PPP0, Package (0x01) { 0x11 }) Name (PPP1, Package (0x01){}) Method (M000, 1, Serialized) { Name (I002, 0x77) Arg0 = RefOf (I002) M380 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M380 (__METHOD__, I002, 0x00, __LINE__) } Method (M001, 1, NotSerialized) { Arg0 = RefOf (I000) } Method (M002, 2, NotSerialized) { Arg0 = 0x00 M001 (RefOf (Arg0)) Arg1 = DerefOf (Arg0) M380 (__METHOD__, Arg1, 0x00, __LINE__) } Method (M003, 0, NotSerialized) { Local0 = RefOf (III1) Return (Local0) } Method (M004, 1, NotSerialized) { Local0 = RefOf (III2) Return (Local0) } Method (M009, 0, NotSerialized) { Return (RefOf (III7)) } Method (M005, 1, NotSerialized) { DerefOf (Arg0) = RefOf (I000) } Method (M006, 2, NotSerialized) { Arg0 = 0x00 M005 (RefOf (Arg0)) Arg1 = DerefOf (Arg0) M380 (__METHOD__, Arg1, 0x00, __LINE__) } Method (M007, 1, NotSerialized) { Arg0 = RefOf (I004) } Method (M008, 1, NotSerialized) { DerefOf (Arg0) = RefOf (I004) } BEG0 (Z111, __METHOD__) /* 1. */ Local0 = RefOf (I000) Local1 = DerefOf (Local0) M380 (__METHOD__, Local1, 0x00, __LINE__) M380 (__METHOD__, I000, 0x00, __LINE__) /* 2. */ M000 (I001) M380 (__METHOD__, I001, 0x00, __LINE__) /* 3. */ CopyObject (RefOf (I000), III0) /* \M365.III0 */ III0 = RefOf (I001) Local1 = DerefOf (III0) M380 (__METHOD__, I001, 0x00, __LINE__) If (Y523) { M380 (__METHOD__, Local1, 0x00, __LINE__) } /* 4. */ Local0 = 0x00 M001 (RefOf (Local0)) Local1 = DerefOf (Local0) M380 (__METHOD__, Local1, 0x00, __LINE__) /* 5. */ M002 (I001, I002) M380 (__METHOD__, I001, 0x00, __LINE__) M380 (__METHOD__, I002, 0x00, __LINE__) /* 6. */ If (Y526) { CopyObject (RefOf (I003), III5) /* \M365.III5 */ M007 (RefOf (III5)) Local1 = DerefOf (III5) M380 (__METHOD__, Local1, 0x00, __LINE__) } /* 7. */ If (Y113) { M001 (PPP0 [0x00]) Store (PPP0 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = DerefOf (Local1) M380 (__METHOD__, Local2, 0x00, __LINE__) } /* 8. */ If (Y525) { CopyObject (RefOf (III3), III4) /* \M365.III4 */ RefOf (III4) = RefOf (I000) Local1 = DerefOf (III4) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, Local1, 0x00, __LINE__) } /* 9. */ PPP1 [0x00] = RefOf (I000) Local2 = DerefOf (PPP1 [0x00]) Local1 = DerefOf (Local2) M380 (__METHOD__, Local1, 0x00, __LINE__) M380 (__METHOD__, I000, 0x00, __LINE__) /* 10. */ /* * There are some statements try to pass a value of an integer to a LocalX via reference, * But they all use the wrong expression, so they are removed from here. */ /* 11. */ /* 12. */ If (Y524) { Local7 = 0x12 Local6 = RefOf (Local7) DerefOf (Local6) = RefOf (I000) Local0 = DerefOf (Local7) M380 (__METHOD__, Local0, 0x00, __LINE__) M380 (__METHOD__, I000, 0x00, __LINE__) } /* Particular cases of (12): */ If (Y524) { /* 13. (4) */ Local0 = 0x00 M005 (RefOf (Local0)) Local1 = DerefOf (Local0) M380 (__METHOD__, Local1, 0x00, __LINE__) /* 14. (5) */ M006 (I001, I002) M380 (__METHOD__, I001, 0x00, __LINE__) M380 (__METHOD__, I002, 0x00, __LINE__) /* 15. (6) */ If (Y526) { CopyObject (RefOf (I003), III6) /* \M365.III6 */ M008 (RefOf (III6)) Local1 = DerefOf (III6) M380 (__METHOD__, Local1, 0x00, __LINE__) } /* 16. (7) */ If (Y113) { M005 (PPP0 [0x00]) Store (PPP0 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = DerefOf (Local1) M380 (__METHOD__, Local2, 0x00, __LINE__) } /* 17. (8) */ If (Y525) { CopyObject (RefOf (III3), III4) /* \M365.III4 */ DerefOf (RefOf (III4)) = RefOf (I000) Local1 = DerefOf (III4) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, Local1, 0x00, __LINE__) } /* 18. (9) */ DerefOf (PPP1 [0x00]) = RefOf (I000) Local2 = DerefOf (PPP1 [0x00]) Local1 = DerefOf (Local2) M380 (__METHOD__, Local1, 0x00, __LINE__) M380 (__METHOD__, I000, 0x00, __LINE__) /* 19. (10) */ DerefOf (M003 ()) = RefOf (I000) Local1 = DerefOf (III1) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, Local1, 0x00, __LINE__) /* 20. (11) */ DerefOf (M004 (0x00)) = RefOf (I000) Local1 = DerefOf (III2) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, Local1, 0x00, __LINE__) } END0 () } Method (M366, 0, Serialized) { Name (I000, 0x77) Name (I001, 0x77) Name (I002, 0x77) Name (III0, 0x00) Name (III1, 0x00) Name (PPP0, Package (0x01){}) Name (PPP1, Package (0x01) { 0x00 }) Method (M000, 1, Serialized) { Name (I002, 0x77) CopyObject (RefOf (I002), Arg0) M380 (__METHOD__, DerefOf (Arg0), 0x00, __LINE__) M380 (__METHOD__, I002, 0x00, __LINE__) } Method (M001, 1, NotSerialized) { CopyObject (RefOf (I000), Arg0) } Method (M002, 2, NotSerialized) { Arg0 = 0x00 M001 (RefOf (Arg0)) Arg1 = DerefOf (Arg0) M380 (__METHOD__, Arg1, 0x00, __LINE__) } BEG0 (Z111, __METHOD__) /* 21. */ CopyObject (RefOf (I000), Local0) Local1 = DerefOf (Local0) M380 (__METHOD__, Local1, 0x00, __LINE__) M380 (__METHOD__, I000, 0x00, __LINE__) /* 22. */ M000 (I001) M380 (__METHOD__, I001, 0x00, __LINE__) /* 23. */ If (Y128) { CopyObject (RefOf (I000), III0) /* \M366.III0 */ Local1 = DerefOf (III0) M380 (__METHOD__, Local1, 0x00, __LINE__) M380 (__METHOD__, I000, 0x00, __LINE__) } /* 24. */ Local0 = 0x00 M001 (RefOf (Local0)) Local1 = DerefOf (Local0) M380 (__METHOD__, Local1, 0x00, __LINE__) /* 25. */ M002 (I001, I002) M380 (__METHOD__, I001, 0x00, __LINE__) M380 (__METHOD__, I002, 0x00, __LINE__) /* 26. */ If (Y526) { III1 = 0x00 M001 (RefOf (III1)) Local1 = DerefOf (III1) M380 (__METHOD__, Local1, 0x00, __LINE__) } /* 27. */ If (Y113) { M001 (PPP1 [0x00]) Store (PPP1 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = DerefOf (Local1) M380 (__METHOD__, Local2, 0x00, __LINE__) } /* * 28. (Compiler failed) * * CopyObject(RefOf(i000), Index(ppp0, 0)) * Store(DerefOf(Index(ppp0, 0)), Local2) * Store(DerefOf(Local2), Local1) * m380 (ts, Local1, 0, __LINE__) * m380 (ts, i000, 0, __LINE__) */ END0 () } /* * TEST 64: All the legal ways of WRITING IRef reference to some target location */ Method (M26F, 0, NotSerialized) { CH03 ("m26f", 0x00, __LINE__, 0x00, 0x00) M1AE ("m26f", "All the legal ways of writing IRef reference to some target location", "Not implemented yet") CH03 ("m26f", 0x00, __LINE__, 0x00, 0x00) } /* * TEST 65: All the legal SOURCES of references (both ORef and IRef) */ Method (M270, 0, Serialized) { CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) If (Y100) { TS00 (__METHOD__) } Else { Debug = __METHOD__ /* \M270.TS__ */ } CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* Store */ M367 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) /* CopyObject */ M368 () CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) M1AE ("m270", "All the legal sources of references (ORef and IRef)", "Started, but not implemented yet") CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) } Method (M367, 0, Serialized) { Name (I000, 0x77) Name (I001, 0x77) Name (I002, 0x77) Name (I003, 0x77) Name (I004, 0x77) Name (I005, 0x77) Name (I006, 0x77) Name (III0, 0x11) Name (III1, 0x22) Method (M001, 7, NotSerialized) { Local0 = RefOf (I000) Arg0 = Local0 Arg1 = Local0 Arg2 = Local0 Arg3 = Local0 Arg4 = Local0 Arg5 = Local0 Arg6 = Local0 Local7 = DerefOf (Arg0) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Arg1) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Arg2) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Arg3) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Arg4) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Arg5) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Arg6) M380 (__METHOD__, Local7, 0x00, __LINE__) } Method (M002, 7, NotSerialized) { Arg0 = RefOf (I000) Arg1 = Arg0 Arg2 = Arg1 Arg3 = Arg2 Arg4 = Arg3 Arg5 = Arg4 Arg6 = Arg5 M380 (__METHOD__, DerefOf (Arg6), 0x00, __LINE__) Arg6 = DerefOf (Arg0) M380 (__METHOD__, Arg6, 0x00, __LINE__) Arg6 = DerefOf (Arg1) M380 (__METHOD__, Arg6, 0x00, __LINE__) Arg6 = DerefOf (Arg2) M380 (__METHOD__, Arg6, 0x00, __LINE__) Arg6 = DerefOf (Arg3) M380 (__METHOD__, Arg6, 0x00, __LINE__) Arg6 = DerefOf (Arg4) M380 (__METHOD__, Arg6, 0x00, __LINE__) Arg6 = DerefOf (Arg5) M380 (__METHOD__, Arg6, 0x00, __LINE__) } BEG0 (Z111, __METHOD__) /* 1. ORef-LocalX */ Local0 = RefOf (I000) Local1 = Local0 Local2 = Local1 Local3 = Local2 Local4 = Local3 Local5 = Local4 Local6 = Local5 Local7 = Local6 M380 (__METHOD__, DerefOf (Local7), 0x00, __LINE__) Local7 = DerefOf (Local0) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Local1) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Local2) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Local3) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Local4) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Local5) M380 (__METHOD__, Local7, 0x00, __LINE__) Local7 = DerefOf (Local6) M380 (__METHOD__, Local7, 0x00, __LINE__) /* 2. ORef-LocalX */ M001 (I000, I001, I002, I003, I004, I005, I006) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, I001, 0x00, __LINE__) M380 (__METHOD__, I002, 0x00, __LINE__) M380 (__METHOD__, I003, 0x00, __LINE__) M380 (__METHOD__, I004, 0x00, __LINE__) M380 (__METHOD__, I005, 0x00, __LINE__) M380 (__METHOD__, I006, 0x00, __LINE__) If (Y134) { /* 2. ORef-ArgX */ M002 (I000, I001, I002, I003, I004, I005, I006) M380 (__METHOD__, I000, 0x00, __LINE__) M380 (__METHOD__, I001, 0x00, __LINE__) M380 (__METHOD__, I002, 0x00, __LINE__) M380 (__METHOD__, I003, 0x00, __LINE__) M380 (__METHOD__, I004, 0x00, __LINE__) M380 (__METHOD__, I005, 0x00, __LINE__) M380 (__METHOD__, I006, 0x00, __LINE__) } /* 3. ORef-LocalX */ If (X128) { /* This operation causes Bug 128 */ CopyObject (RefOf (III1), III0) /* \M367.III0 */ Local0 = RefOf (I000) III0 = Local0 Local1 = DerefOf (III0) M380 (__METHOD__, I000, 0x00, __LINE__) If (Y523) { M380 (__METHOD__, Local1, 0x00, __LINE__) } } END0 () } Method (M368, 0, Serialized) { Name (I000, 0x77) BEG0 (Z111, __METHOD__) /* 21. ORef-LocalX */ CopyObject (RefOf (I000), Local0) CopyObject (Local0, Local1) CopyObject (Local1, Local2) CopyObject (Local2, Local3) CopyObject (Local3, Local4) CopyObject (Local4, Local5) CopyObject (Local5, Local6) CopyObject (Local6, Local7) M380 (__METHOD__, DerefOf (Local7), 0x00, __LINE__) CopyObject (DerefOf (Local0), Local7) M380 (__METHOD__, Local7, 0x00, __LINE__) CopyObject (DerefOf (Local1), Local7) M380 (__METHOD__, Local7, 0x00, __LINE__) CopyObject (DerefOf (Local2), Local7) M380 (__METHOD__, Local7, 0x00, __LINE__) CopyObject (DerefOf (Local3), Local7) M380 (__METHOD__, Local7, 0x00, __LINE__) CopyObject (DerefOf (Local4), Local7) M380 (__METHOD__, Local7, 0x00, __LINE__) CopyObject (DerefOf (Local5), Local7) M380 (__METHOD__, Local7, 0x00, __LINE__) CopyObject (DerefOf (Local6), Local7) M380 (__METHOD__, Local7, 0x00, __LINE__) END0 () } /* * Separately (though such are already): * put reference into element of Package * and then write another reference into * that element of that Package. * No any correlation must be. */ Name (I003, 0x12345678) Name (P090, Package (0x09){}) Name (P091, Package (0x09) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09 }) Method (M271, 2, NotSerialized) { P090 [Arg1] = Arg0 } /* IRef upon IRef */ Method (M272, 0, NotSerialized) { M271 (P091 [0x01], 0x03) M271 (P091 [0x01], 0x03) } /* IRef upon ORef */ Method (M273, 0, NotSerialized) { M271 (RefOf (I003), 0x04) M271 (P091 [0x01], 0x04) } /* ORef upon IRef */ Method (M274, 0, NotSerialized) { M271 (P091 [0x01], 0x05) M271 (RefOf (I003), 0x05) } /* ORef upon ORef */ Method (M275, 0, NotSerialized) { M271 (RefOf (I003), 0x06) M271 (RefOf (I003), 0x06) } Method (M276, 0, NotSerialized) { M272 () M273 () M274 () M275 () } /* * * Simple Tests * */ /* Simple TEST 1: read of ArgX-ORef with DerefOf */ Method (M341, 0, Serialized) { Name (I000, 0x19283746) Local0 = RefOf (I000) Method (M000, 1, NotSerialized) { Local0 = DerefOf (Arg0) Local7 = (Local0 + 0x05) If ((Local7 != 0x1928374B)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local7, 0x1928374B) } } M000 (Local0) } /* Simple TEST 2: read of ArgX-ORef without DerefOf */ Method (M342, 0, Serialized) { Name (I000, 0x00) BEG0 (Z111, __METHOD__) Local0 = RefOf (I000) M1CC (__METHOD__, Local0, 0x01, 0x00) M1CD (__METHOD__, Local0, 0x01, 0x00) M1CC (__METHOD__, RefOf (I000), 0x01, 0x00) M1CD (__METHOD__, RefOf (I000), 0x01, 0x00) END0 () } /* Simple TEST 3: read of ArgX-IRef with DerefOf */ Method (M343, 0, Serialized) { Name (P000, Package (0x05) { 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }) Store (P000 [0x03], Local0) Method (M000, 1, NotSerialized) { Local0 = DerefOf (Arg0) Local7 = (Local0 + 0x05) If ((Local7 != 0x13)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local7, 0x13) } } M000 (Local0) } /* Simple TEST 4: read of ArgX-IRef without DerefOf */ Method (M344, 0, Serialized) { Name (P000, Package (0x05) { 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }) Store (P000 [0x03], Local0) Method (M000, 1, NotSerialized) { Local7 = (Arg0 + 0x05) If ((Local7 != 0x13)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local7, 0x13) } } M000 (Local0) } /* Simple TEST 8 */ Method (M345, 0, Serialized) { Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Name (S010, "qwer0000") Name (B010, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P010, Package (0x03) { 0x05, 0x77, 0x07 }) /* Store to reference keeping in LocalX */ Method (M000, 1, NotSerialized) { Local1 = Local0 = Arg0 [0x01] Local0 = 0x90 If ((Local0 != 0x90)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, 0x90) } Local1 = 0x91 If ((Local1 != 0x91)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, 0x91) } } /* CopyObject to reference keeping in LocalX */ Method (M001, 1, NotSerialized) { Local1 = Local0 = Arg0 [0x01] CopyObject (0x94, Local0) If ((Local0 != 0x94)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, 0x94) } CopyObject (0x95, Local1) If ((Local1 != 0x95)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, 0x95) } } /* Store to reference immediately */ Method (M002, 1, NotSerialized) { Arg0 [0x01] = 0x2B } /* Store to reference immediately */ Method (M003, 1, NotSerialized) { Local0 = Arg0 [0x01] Arg0 [0x01] = 0x2B } /* CopyObject to reference immediately */ Method (M004, 1, NotSerialized) { /* CopyObject(0x96, Index(arg0, 1)) */ /* CopyObject(0x97, Index(arg0, 1, Local0)) */ } BEG0 (Z111, __METHOD__) M000 (S000) M000 (B000) M000 (P000) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M001 (S000) M001 (B000) M001 (P000) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M002 (S000) M002 (B000) M002 (P000) M385 (__METHOD__, S000, 0x00, __LINE__) M386 (__METHOD__, B000, 0x00, __LINE__) M387 (__METHOD__, P000, 0x00, __LINE__) M003 (S010) M003 (B010) M003 (P010) M385 (__METHOD__, S010, 0x00, __LINE__) M386 (__METHOD__, B010, 0x00, __LINE__) M387 (__METHOD__, P010, 0x00, __LINE__) END0 () } Method (M346, 0, Serialized) { Name (I000, 0xABCD0000) Method (M000, 1, NotSerialized) { Local0 = RefOf (Arg0) Local6 = DerefOf (Local0) RefOf (Arg0) = 0x11111111 /* CopyObject(0x11111111, RefOf(arg0)) */ Local7 = DerefOf (Local0) Local1 = ObjectType (Local0) If ((Local1 != C009)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, C009) } Else { Local1 = SizeOf (Local0) If ((Local1 != ISZ0)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, ISZ0) } If ((Local6 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local6, 0xABCD0000) } If ((Local7 != 0x11111111)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local7, 0x11111111) } } } M000 (I000) If ((I000 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, I000, 0xABCD0000) } } Method (M347, 0, Serialized) { Name (I000, 0xABCD0000) Method (M000, 1, NotSerialized) { Local0 = DerefOf (RefOf (Arg0)) Local1 = ObjectType (Local0) If ((Local1 != C009)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, C009) } Else { Local1 = SizeOf (Local0) If ((Local1 != ISZ0)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, ISZ0) } If ((Local0 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, 0xABCD0000) } } } M000 (I000) If ((I000 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, I000, 0xABCD0000) } } Method (M348, 0, Serialized) { Name (I000, 0xABCD0000) Method (M000, 1, NotSerialized) { Local0 = RefOf (Arg0) Local1 = DerefOf (Local0) Local2 = DerefOf (Local1) If ((Local2 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0xABCD0000) } RefOf (Arg0) = 0x11111111 Local0 = RefOf (Arg0) Local0 = 0x11111111 If ((Local0 != 0x11111111)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, 0x11111111) } } M000 (RefOf (I000)) If ((I000 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, I000, 0xABCD0000) } Local0 = RefOf (I000) M000 (Local0) If ((I000 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, I000, 0xABCD0000) } Local2 = DerefOf (Local0) If ((Local2 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0xABCD0000) } } Method (M349, 0, Serialized) { Name (I000, 0xABCD0000) Name (I001, 0xABCD0001) Method (M000, 1, NotSerialized) { Local1 = DerefOf (RefOf (Arg0)) Local2 = DerefOf (Local1) If ((Local2 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0xABCD0000) } } Method (M001, 1, NotSerialized) { DerefOf (RefOf (Arg0)) = 0x11111111 /* CopyObject(0x11111111, DerefOf(RefOf(arg0))) */ } /* Reading */ M000 (RefOf (I000)) If ((I000 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, I000, 0xABCD0000) } Local0 = RefOf (I000) M000 (Local0) If ((I000 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, I000, 0xABCD0000) } If (Y512) { Local2 = DerefOf (Local0) If ((Local2 != 0xABCD0000)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0xABCD0000) } } /* Writing */ M001 (RefOf (I001)) If ((I001 != 0x11111111)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, I001, 0x11111111) } Local0 = RefOf (I001) M001 (Local0) If ((I001 != 0x11111111)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, I001, 0x11111111) } If (Y512) { Local2 = DerefOf (Local0) If ((Local2 != 0x11111111)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x11111111) } } } Method (M34A, 0, Serialized) { Name (B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) Method (M000, 1, NotSerialized) { Local2 = DerefOf (Arg0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } } /* The same but use RefOf and than back DerefOf */ Method (M001, 1, NotSerialized) { Local0 = RefOf (Arg0) Local1 = DerefOf (Local0) Local2 = DerefOf (Local1) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } } Method (M002, 1, NotSerialized) { RefOf (Arg0) = 0x11111111 Local0 = RefOf (Arg0) Local0 = 0x11111111 If ((Local0 != 0x11111111)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, 0x11111111) } } /* m000 */ M000 (B000 [0x02]) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Store (B000 [0x02], Local0) M000 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } Local1 = Local0 = B000 [0x02] M000 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } M000 (Local1) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local1) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } /* m001 */ M001 (B000 [0x02]) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Store (B000 [0x02], Local0) M001 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } Local1 = Local0 = B000 [0x02] M001 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } M001 (Local1) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local1) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } /* m002 */ M002 (B000 [0x02]) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Store (B000 [0x02], Local0) M002 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } Local1 = Local0 = B000 [0x02] M002 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } M002 (Local1) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local1) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } } Method (M34B, 0, Serialized) { Name (B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) Name (B001, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) Method (M000, 1, NotSerialized) { Local2 = DerefOf (Arg0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } } /* The same but use RefOf and than back DerefOf */ Method (M001, 1, NotSerialized) { Local1 = DerefOf (RefOf (Arg0)) Local2 = DerefOf (Local1) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } } Method (M002, 1, NotSerialized) { DerefOf (RefOf (Arg0)) = 0x11111111 /* CopyObject(0x11111111, DerefOf(RefOf(arg0))) */ } /* m000 */ M000 (B000 [0x02]) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Store (B000 [0x02], Local0) M000 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } Local1 = Local0 = B000 [0x02] M000 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } M000 (Local1) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Local2 = DerefOf (Local1) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } /* m001 */ M001 (B000 [0x02]) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } Store (B000 [0x02], Local0) M001 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } If (Y512) { Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } } Local1 = Local0 = B000 [0x02] M001 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } If (Y512) { Local2 = DerefOf (Local0) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } } M001 (Local1) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x69, 0x04, 0x05 // ..i.. }) } If (Y512) { Local2 = DerefOf (Local1) If ((Local2 != 0x69)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x69) } } /* m002 */ M002 (B000 [0x02]) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x11, 0x04, 0x05 // ..... })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x11, 0x04, 0x05 // ..... }) } Store (B000 [0x02], Local0) M002 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x11, 0x04, 0x05 // ..... })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x11, 0x04, 0x05 // ..... }) } If (Y512) { Local2 = DerefOf (Local0) If ((Local2 != 0x11)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x11) } } Local1 = Local0 = B000 [0x02] M002 (Local0) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x11, 0x04, 0x05 // ..... })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x11, 0x04, 0x05 // ..... }) } If (Y512) { Local2 = DerefOf (Local0) If ((Local2 != 0x11)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x11) } } M002 (Local1) If ((B000 != Buffer (0x05) { 0x01, 0x02, 0x11, 0x04, 0x05 // ..... })) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, B000, Buffer (0x05) { 0x01, 0x02, 0x11, 0x04, 0x05 // ..... }) } If (Y512) { Local2 = DerefOf (Local1) If ((Local2 != 0x11)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x11) } } } /* Simple TEST 17 */ Method (M34C, 0, Serialized) { Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Name (S010, "qwer0000") Name (B010, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P010, Package (0x03) { 0x05, 0x77, 0x07 }) Name (S020, "qwer0000") Name (B020, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P020, Package (0x03) { 0x05, 0x77, 0x07 }) Name (S030, "qwer0000") Name (B030, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P030, Package (0x03) { 0x05, 0x77, 0x07 }) /* Store to reference keeping in LocalX */ Method (M000, 2, NotSerialized) { Local2 = DerefOf (Arg0) Local3 = ObjectType (Local2) If ((Local3 != Arg1)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local3, Arg1) } Local1 = Local0 = Local2 [0x01] Local0 = 0x90 If ((Local0 != 0x90)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, 0x90) } Local1 = 0x91 If ((Local1 != 0x91)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, 0x91) } } /* CopyObject to reference keeping in LocalX */ Method (M001, 1, NotSerialized) { Local2 = DerefOf (Arg0) Local1 = Local0 = Local2 [0x01] CopyObject (0x94, Local0) If ((Local0 != 0x94)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, 0x94) } CopyObject (0x95, Local1) If ((Local1 != 0x95)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, 0x95) } } /* Store to reference immediately */ Method (M002, 2, NotSerialized) { Local2 = DerefOf (Arg0) Local2 [0x01] = 0x2B If ((Arg1 == C00A)) { M385 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M386 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M387 (__METHOD__, Local2, 0x00, __LINE__) } } /* Store to reference immediately */ Method (M003, 2, NotSerialized) { Local2 = DerefOf (Arg0) Local0 = Local2 [0x01] Local2 [0x01] = 0x2B If ((Arg1 == C00A)) { M385 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M386 (__METHOD__, Local2, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M387 (__METHOD__, Local2, 0x00, __LINE__) } Local2 = DerefOf (Local0) If ((Local2 != 0x2B)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local2, 0x2B) } } Method (M010, 2, NotSerialized) { Local0 = RefOf (Arg0) M000 (Local0, Arg1) M000 (RefOf (Arg0), Arg1) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } Method (M011, 2, NotSerialized) { Local0 = RefOf (Arg0) M001 (Local0) M001 (RefOf (Arg0)) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } Method (M012, 2, NotSerialized) { Local0 = RefOf (Arg0) M002 (Local0, Arg1) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } Method (M022, 2, NotSerialized) { M002 (RefOf (Arg0), Arg1) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } Method (M013, 2, NotSerialized) { Local0 = RefOf (Arg0) M003 (Local0, Arg1) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } Method (M023, 2, NotSerialized) { M003 (RefOf (Arg0), Arg1) If ((Arg1 == C00A)) { M381 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (__METHOD__, Arg0, 0x00, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (__METHOD__, Arg0, 0x00, __LINE__) } } BEG0 (Z111, __METHOD__) M010 (S000, C00A) M010 (B000, C00B) M010 (P000, C00C) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M011 (S000, C00A) M011 (B000, C00B) M011 (P000, C00C) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M012 (S000, C00A) M012 (B000, C00B) M012 (P000, C00C) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) M022 (S010, C00A) M022 (B010, C00B) M022 (P010, C00C) M381 (__METHOD__, S010, 0x00, __LINE__) M382 (__METHOD__, B010, 0x00, __LINE__) M383 (__METHOD__, P010, 0x00, __LINE__) M013 (S020, C00A) M013 (B020, C00B) M013 (P020, C00C) M381 (__METHOD__, S020, 0x00, __LINE__) M382 (__METHOD__, B020, 0x00, __LINE__) M383 (__METHOD__, P020, 0x00, __LINE__) M023 (S030, C00A) M023 (B030, C00B) M023 (P030, C00C) M381 (__METHOD__, S030, 0x00, __LINE__) M382 (__METHOD__, B030, 0x00, __LINE__) M383 (__METHOD__, P030, 0x00, __LINE__) END0 () } Method (M34D, 1, Serialized) { Name (OP00, 0x00) Name (OP01, 0x01) OP00 = Arg0 Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I010, 0x77) Name (S010, "qwer0000") Name (B010, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P010, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I020, 0x77) Name (S020, "qwer0000") Name (B020, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P020, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I030, 0x77) Name (S030, "qwer0000") Name (B030, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P030, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I040, 0x77) Name (S040, "qwer0000") Name (B040, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P040, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I050, 0x77) Name (S050, "qwer0000") Name (B050, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P050, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I060, 0x77) Name (S060, "qwer0000") Name (B060, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P060, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I070, 0x77) Name (S070, "qwer0000") Name (B070, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P070, Package (0x03) { 0x05, 0x77, 0x07 }) Name (I001, 0x2B) Name (S001, "q+er0000") Name (B001, Buffer (0x04) { 0x01, 0x2B, 0x03, 0x04 // .+.. }) Name (P001, Package (0x03) { 0x05, 0x2B, 0x07 }) Method (M000, 3, NotSerialized) { Method (M000, 3, NotSerialized) { Method (M000, 3, NotSerialized) { Method (M000, 3, NotSerialized) { Local0 = ObjectType (Arg0) If ((Local0 != Arg2)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, Arg2) } If (OP00) { /* CopyObject */ If ((Arg1 == C009)) { CopyObject (0x2B, Arg0) } ElseIf ((Arg1 == C00A)) { CopyObject ("q+er0000", Arg0) } ElseIf ((Arg1 == C00B)) { CopyObject (Buffer (0x04) { 0x01, 0x2B, 0x03, 0x04 // .+.. }, Arg0) } ElseIf ((Arg1 == C00C)) { CopyObject (Package (0x03) { 0x05, 0x2B, 0x07 }, Arg0) } } ElseIf /* Store */ ((Arg1 == C009)) { Arg0 = 0x2B } ElseIf ((Arg1 == C00A)) { Arg0 = "q+er0000" } ElseIf ((Arg1 == C00B)) { Arg0 = Buffer (0x04) { 0x01, 0x2B, 0x03, 0x04 // .+.. } } ElseIf ((Arg1 == C00C)) { Arg0 = Package (0x03) { 0x05, 0x2B, 0x07 } } Local0 = DerefOf (Arg0) M391 (Local0, Arg1, 0x00, __LINE__) } M000 (Arg0, Arg1, Arg2) Local0 = DerefOf (Arg0) M391 (Local0, Arg1, 0x00, __LINE__) } M000 (Arg0, Arg1, Arg2) Local0 = DerefOf (Arg0) M391 (Local0, Arg1, 0x00, __LINE__) } M000 (Arg0, Arg1, Arg2) Local0 = DerefOf (Arg0) M391 (Local0, Arg1, 0x00, __LINE__) } BEG0 (Z111, __METHOD__) /* Write Integer */ Local0 = RefOf (I000) M000 (Local0, C009, C009) M391 (I000, C009, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C009, 0x00, __LINE__) Local0 = RefOf (S000) M000 (Local0, C009, C00A) M391 (S000, C009, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C009, 0x00, __LINE__) Local0 = RefOf (B000) M000 (Local0, C009, C00B) M391 (B000, C009, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C009, 0x00, __LINE__) /* Write String */ Local0 = RefOf (I010) M000 (Local0, C00A, C009) M391 (I010, C00A, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00A, 0x00, __LINE__) Local0 = RefOf (S010) M000 (Local0, C00A, C00A) M391 (S010, C00A, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00A, 0x00, __LINE__) Local0 = RefOf (B010) M000 (Local0, C00A, C00B) M391 (B010, C00A, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00A, 0x00, __LINE__) /* Write Buffer */ Local0 = RefOf (I020) M000 (Local0, C00B, C009) M391 (I020, C00B, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00B, 0x00, __LINE__) Local0 = RefOf (S020) M000 (Local0, C00B, C00A) M391 (S020, C00B, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00B, 0x00, __LINE__) Local0 = RefOf (B020) M000 (Local0, C00B, C00B) M391 (B020, C00B, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00B, 0x00, __LINE__) /* Write Package */ If (!OP00) { If (!Y516) { OP01 = 0x00 } } If (OP01) { Local0 = RefOf (I030) M000 (Local0, C00C, C009) M391 (I030, C00C, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00C, 0x00, __LINE__) Local0 = RefOf (S030) M000 (Local0, C00C, C00A) M391 (S030, C00C, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00C, 0x00, __LINE__) Local0 = RefOf (B030) M000 (Local0, C00C, C00B) M391 (B030, C00C, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00C, 0x00, __LINE__) Local0 = RefOf (P030) M000 (Local0, C00C, C00C) M391 (P030, C00C, 0x00, __LINE__) Local2 = DerefOf (Local0) M391 (Local2, C00C, 0x00, __LINE__) } /* Write Integer */ M000 (RefOf (I040), C009, C009) M391 (I040, C009, 0x00, __LINE__) M000 (RefOf (S040), C009, C00A) M391 (I040, C009, 0x00, __LINE__) M000 (RefOf (B040), C009, C00B) M391 (I040, C009, 0x00, __LINE__) /* Write String */ M000 (RefOf (I050), C00A, C009) M391 (I050, C00A, 0x00, __LINE__) M000 (RefOf (S050), C00A, C00A) M391 (I050, C00A, 0x00, __LINE__) M000 (RefOf (B050), C00A, C00B) M391 (I050, C00A, 0x00, __LINE__) /* Write Buffer */ M000 (RefOf (I060), C00B, C009) M391 (I060, C00B, 0x00, __LINE__) M000 (RefOf (S060), C00B, C00A) M391 (I060, C00B, 0x00, __LINE__) M000 (RefOf (B060), C00B, C00B) M391 (I060, C00B, 0x00, __LINE__) /* Write Package */ If (OP01) { M000 (RefOf (I070), C00C, C009) M391 (I070, C00C, 0x00, __LINE__) M000 (RefOf (S070), C00C, C00A) M391 (I070, C00C, 0x00, __LINE__) M000 (RefOf (B070), C00C, C00B) M391 (I070, C00C, 0x00, __LINE__) M000 (RefOf (P070), C00C, C00C) M391 (I070, C00C, 0x00, __LINE__) } END0 () } Method (M34E, 1, Serialized) { Name (OP00, 0x00) OP00 = Arg0 Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Method (M000, 3, NotSerialized) { Method (M000, 3, NotSerialized) { Method (M000, 3, NotSerialized) { Method (M000, 3, NotSerialized) { Local0 = ObjectType (Arg0) If ((Local0 != Arg2)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local0, Arg2) } If (OP00) { CopyObject (0x2B, Arg0) } Else { Arg0 = 0x2B } M391 (Arg0, Arg1, 0x00, __LINE__) } M000 (Arg0, Arg1, Arg2) Local0 = DerefOf (Arg0) M390 (Local0, Arg1, 0x00, __LINE__) } M000 (Arg0, Arg1, Arg2) Local0 = DerefOf (Arg0) M390 (Local0, Arg1, 0x00, __LINE__) } M000 (Arg0, Arg1, Arg2) Local0 = DerefOf (Arg0) M390 (Local0, Arg1, 0x00, __LINE__) } BEG0 (Z111, __METHOD__) /* String */ Store (S000 [0x01], Local0) M000 (Local0, C009, C016) M390 (S000, C00A, 0x00, __LINE__) Local2 = DerefOf (Local0) M380 (__METHOD__, Local2, 0x00, __LINE__) /* Buffer */ Store (B000 [0x01], Local0) M000 (Local0, C009, C016) M390 (B000, C00B, 0x00, __LINE__) Local2 = DerefOf (Local0) M380 (__METHOD__, Local2, 0x00, __LINE__) /* Package */ Store (P000 [0x01], Local0) M000 (Local0, C009, C009) M390 (P000, C00C, 0x00, __LINE__) Local2 = DerefOf (Local0) M380 (__METHOD__, Local2, 0x00, __LINE__) END0 () } Method (M34F, 0, Serialized) { BEG0 (Z111, __METHOD__) RefOf (I900) = 0x77 M380 (__METHOD__, I900, 0x00, __LINE__) RefOf (S900) = 0x77 M4C0 (__METHOD__, S900, "0000000000000077", "00000077") RefOf (B900) = 0x77 M1AA (__METHOD__, B900, C00B, Buffer (0x05) { 0x77, 0x00, 0x00, 0x00, 0x00 // w.... }, 0x01) RefOf (P953) = 0x77 M380 (__METHOD__, P953, 0x00, __LINE__) RefOf (E900) = 0x77 M380 (__METHOD__, E900, 0x00, __LINE__) RefOf (MX90) = 0x77 M380 (__METHOD__, MX90, 0x00, __LINE__) RefOf (D900) = 0x77 M380 (__METHOD__, D900, 0x00, __LINE__) If (Y508) { RefOf (TZ90) = 0x77 M380 (__METHOD__, TZ90, 0x00, __LINE__) } RefOf (PR90) = 0x77 M380 (__METHOD__, PR90, 0x00, __LINE__) If (Y510) { RefOf (R900) = 0x77 M380 (__METHOD__, R900, 0x00, __LINE__) } RefOf (PW90) = 0x77 M380 (__METHOD__, PW90, 0x00, __LINE__) M1AC () M1A6 () END0 () } /* CURRENTLY: compiler failed CopyObject(xx, RefOf(xx)) */ Method (M350, 0, Serialized) { /* CopyObject(0x77, RefOf(i900)) */ } /* Write Integer into Package and verify the obtained contents */ /* arg0 - Package */ Method (M351, 1, Serialized) { Name (LPN0, 0x11) Name (LPC0, 0x00) Local6 = 0x10 While (LPN0) { Arg0 [LPC0] = Local6 Local6++ LPN0-- LPC0++ } /* Check that elements of Package are properly changed */ LPN0 = 0x11 LPC0 = 0x00 Local6 = 0x10 While (LPN0) { Store (Arg0 [LPC0], Local0) Local1 = ObjectType (Local0) If ((Local1 != C009)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, C009) } Else { Local1 = DerefOf (Local0) If ((Local1 != Local6)) { ERR (__METHOD__, Z111, __LINE__, 0x00, 0x00, Local1, Local6) } } Local6++ LPN0-- LPC0++ } } /* Write ORef into Package */ /* arg0 - Package */ Method (M352, 1, NotSerialized) { Arg0 [0x00] = 0x00 Arg0 [0x01] = RefOf (I900) Arg0 [0x02] = RefOf (S900) Arg0 [0x03] = RefOf (B900) Arg0 [0x04] = RefOf (P953) Arg0 [0x05] = RefOf (F900) Arg0 [0x06] = RefOf (D900) Arg0 [0x07] = RefOf (E900) Arg0 [0x08] = RefOf (M914) Arg0 [0x09] = RefOf (MX90) Arg0 [0x0A] = RefOf (R900) Arg0 [0x0B] = RefOf (PW90) Arg0 [0x0C] = RefOf (PR90) Arg0 [0x0D] = RefOf (TZ90) Arg0 [0x0E] = RefOf (BF90) Arg0 [0x0F] = 0x0F Arg0 [0x10] = 0x10 } /* Write IRef (Index(p955, x)) into Package */ /* arg0 - Package */ /* arg1 - 0 - Store, otherwise - CopyObject */ Method (M353, 2, Serialized) { Name (LPN0, 0x11) Name (LPC0, 0x00) If (Arg1){ /* * While (lpN0) { * CopyObject(Index(p955, lpC0), Index(arg0, lpC0)) * Decrement(lpN0) * Increment(lpC0) * } * CopyObject(0, Index(arg0, 0)) * CopyObject(15, Index(arg0, 15)) * CopyObject(16, Index(arg0, 16)) */ } Else { While (LPN0) { Store (P955 [LPC0], Arg0 [LPC0]) LPN0-- LPC0++ } Arg0 [0x00] = 0x00 Arg0 [0x0F] = 0x0F Arg0 [0x10] = 0x10 } } Method (M362, 0, Serialized) { Name (I000, 0x00) Method (M000, 1, NotSerialized) { Local0 = (0x76 + 0x01) Arg0 = Local0 } M000 (RefOf (I000)) M380 ("m362", I000, Z111, __LINE__) } Method (M363, 0, Serialized) { Name (I000, 0x00) Method (M000, 1, NotSerialized) { Arg0 = (0x76 + 0x01) } M000 (RefOf (I000)) M380 ("m363", I000, Z111, __LINE__) } Method (M364, 0, Serialized) { Name (I000, 0x00) Method (M000, 1, NotSerialized) { Arg0 = (0x76 + 0x01) } Local0 = RefOf (I000) M000 (Local0) M380 ("m364", I000, Z111, __LINE__) } /* * * Auxiliary Methods * */ /* Run all the ORef relevant Methods of ref1-ref4 */ Method (M4D0, 0, NotSerialized) { M16F (0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00) M175 (0x00, 0x01, 0x01) M185 (0x00, 0x01, 0x01) M195 (0x00, 0x01, 0x01, 0x01, 0x00) } /* Run all the IRef relevant Methods of ref1-ref4 */ Method (M4D1, 0, NotSerialized) { M16F (0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01) M175 (0x01, 0x00, 0x00) M185 (0x01, 0x00, 0x00) M195 (0x01, 0x00, 0x00, 0x00, 0x01) } /* Run all the NamedX-ORef relevant Methods of ref1-ref4 */ Method (M4D2, 0, NotSerialized) { M16F (0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00) M175 (0x00, 0x01, 0x01) M185 (0x00, 0x01, 0x01) M195 (0x00, 0x01, 0x01, 0x01, 0x00) } /* Run all the NamedX-IRef relevant Methods of ref1-ref4 */ Method (M4D3, 0, NotSerialized) { M16F (0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01) M175 (0x01, 0x00, 0x00) M185 (0x01, 0x00, 0x00) M195 (0x01, 0x00, 0x00, 0x00, 0x01) } /* Method(m4d0) {} Method(m4d1) {} Method(m4d2) {} Method(m4d3) {} Method(m1e0, 1) {} */ Method (MFAB, 0, Serialized) { /* * Update required: do this test for different type target objects * and reference elements (Iref/Oref; LocalX/ArgX/NamedX/...). */ Name (PP00, Package (0x08) { 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87 }) Name (P000, Package (0x10) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }) /* Over Integers */ P000 [0x00] = RefOf (PP00) Store (P000 [0x00], P000 [0x01]) Store (P000 [0x01], P000 [0x02]) Store (P000 [0x02], P000 [0x03]) Store (P000 [0x03], P000 [0x04]) Store (P000 [0x04], P000 [0x05]) Store (P000 [0x05], P000 [0x06]) Store (P000 [0x06], P000 [0x07]) Store (P000 [0x07], P000 [0x08]) Store (P000 [0x08], P000 [0x09]) Store (P000 [0x09], P000 [0x0A]) Store (P000 [0x0A], P000 [0x0B]) Store (P000 [0x0B], P000 [0x0C]) Store (P000 [0x0C], P000 [0x0D]) Store (P000 [0x0D], P000 [0x0E]) Store (P000 [0x0E], P000 [0x0F]) Local0 = P000 [0x0F] Local1 = ObjectType (Local0) If ((Local1 != C01C)) { ERR ("mfab", Z111, __LINE__, 0x00, 0x00, Local1, C01C) } Local1 = ObjectType (DerefOf (Local0)) If ((Local1 != C01C)) { ERR ("mfab", Z111, __LINE__, 0x00, 0x00, Local1, C01C) } } Method (MFAD, 0, Serialized) { /* * Update required: do this test for different type target objects * and reference elements (Iref/Oref; LocalX/ArgX/NamedX/...). */ Name (I000, 0xABCD0000) Name (P000, Package (0x10) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }) /* Over Integers */ P000 [0x00] = RefOf (I000) Store (P000 [0x00], P000 [0x01]) Store (P000 [0x01], P000 [0x02]) Store (P000 [0x02], P000 [0x03]) Store (P000 [0x03], P000 [0x04]) Store (P000 [0x04], P000 [0x05]) Store (P000 [0x05], P000 [0x06]) Store (P000 [0x06], P000 [0x07]) Store (P000 [0x07], P000 [0x08]) Store (P000 [0x08], P000 [0x09]) Store (P000 [0x09], P000 [0x0A]) Store (P000 [0x0A], P000 [0x0B]) Store (P000 [0x0B], P000 [0x0C]) Store (P000 [0x0C], P000 [0x0D]) Store (P000 [0x0D], P000 [0x0E]) Store (P000 [0x0E], P000 [0x0F]) Store (P000 [0x0F], P000 [0x00]) Local0 = P000 [0x0F] Debug = Local0 If (0x00) { Local1 = ObjectType (Local0) Debug = Local1 If ((Local1 != C01C)) { ERR ("mfad", Z111, __LINE__, 0x00, 0x00, Local1, C01C) } } Else { /* * ObjectType here falls into the infinitive loop. * Sort this out! */ ERR ("mfad", Z111, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Method (MFC3, 0, Serialized) { /* * Update required: do this test for different type target objects * and reference elements (Iref/Oref; LocalX/ArgX/NamedX/...). */ Name (I000, 0xABCD0000) Name (P000, Package (0x10) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }) /* Over Integers */ P000 [0x00] = RefOf (I000) Store (P000 [0x00], P000 [0x01]) Store (P000 [0x01], P000 [0x02]) Store (P000 [0x02], P000 [0x03]) Store (P000 [0x03], P000 [0x04]) Store (P000 [0x04], P000 [0x05]) Store (P000 [0x05], P000 [0x06]) Store (P000 [0x06], P000 [0x07]) Store (P000 [0x07], P000 [0x08]) Store (P000 [0x08], P000 [0x09]) Store (P000 [0x09], P000 [0x0A]) Store (P000 [0x0A], P000 [0x0B]) Store (P000 [0x0B], P000 [0x0C]) Store (P000 [0x0C], P000 [0x0D]) Store (P000 [0x0D], P000 [0x0E]) Store (P000 [0x0E], P000 [0x0F]) Store (P000 [0x0F], P000 [0x00]) Local0 = P000 [0x0F] Debug = Local0 If (0x00) { Local1 = SizeOf (Local0) Debug = Local1 If ((Local1 != 0x64)) { ERR ("mfc3", Z111, __LINE__, 0x00, 0x00, Local1, 0x64) } } Else { /* * SizeOf here falls into the infinitive loop. * Sort this out! */ ERR ("mfc3", Z111, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Method (MFC4, 0, Serialized) { /* * Update required: do this test for different type target objects * and reference elements (Iref/Oref; LocalX/ArgX/NamedX/...). */ Name (I000, 0xABCD0000) Name (P000, Package (0x10) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }) /* Over Integers */ P000 [0x00] = RefOf (I000) Store (P000 [0x00], P000 [0x01]) Store (P000 [0x01], P000 [0x02]) Store (P000 [0x02], P000 [0x03]) Store (P000 [0x03], P000 [0x04]) Store (P000 [0x04], P000 [0x05]) Store (P000 [0x05], P000 [0x06]) Store (P000 [0x06], P000 [0x07]) Store (P000 [0x07], P000 [0x08]) Store (P000 [0x08], P000 [0x09]) Store (P000 [0x09], P000 [0x0A]) Store (P000 [0x0A], P000 [0x0B]) Store (P000 [0x0B], P000 [0x0C]) Store (P000 [0x0C], P000 [0x0D]) Store (P000 [0x0D], P000 [0x0E]) Store (P000 [0x0E], P000 [0x0F]) Store (P000 [0x0F], P000 [0x00]) Local0 = P000 [0x0F] Debug = Local0 If (0x01) { Local1 = DerefOf (Local0) Debug = Local1 If ((Local1 != 0x64)) { ERR ("mfc4", Z111, __LINE__, 0x00, 0x00, Local1, 0x64) } } Else { /* * SizeOf here falls into the infinitive loop. * Sort this out! */ ERR ("mfc4", Z111, __LINE__, 0x00, 0x00, 0x00, 0x00) } } /* !!!!!!!!!!!!!!!!!!!!!!! Do this test, like this - run Derefof for the chain of references (IR/OR) and for ring of them. I don't remember if we have already such test. !!!!!!!!!!!!!!!!!!!!!!! Method(m000) { * * Printing excluded while bug 206 (Store-to-Debug operation * falls into infinite loop for ring of RefOf references) is * not fixed. * Store(RefOf(Local0), Local1) Store(RefOf(Local1), Local2) Store(RefOf(Local2), Local0) Store(DerefOf(Local0), Local7) Store(Local7, Debug) Store(DerefOf(Local7), Local6) Store(Local6, Debug) Store(DerefOf(Local6), Local5) Store(Local5, Debug) } */ /* Run-method */ Method (REF9, 0, NotSerialized) { Debug = "TEST: REF9, Object and Index References and the call-by-reference convention" C085 = 0x01 /* create the chain of references to LocalX, then dereference them */ C086 = 0x00 /* flag, run test till the first error */ C088 = 0x01 /* test run mode */ C089 = 0x00 /* flag of Reference, object otherwise */ C08B = 0x00 /* do RefOf(ArgX) checkings */ If (!C088) { Debug = "A T T E N T I O N: simple mode!" } If (0x01) { SRMT ("m221") M221 () SRMT ("m222") M222 () SRMT ("m223") M223 () SRMT ("m224") M224 () SRMT ("m225") M225 () SRMT ("m226") M226 () SRMT ("m227") M227 () SRMT ("m228") M228 () SRMT ("m229") M229 () SRMT ("m22a") M22A () SRMT ("m22b") M22B () SRMT ("m22c") M22C () SRMT ("m22d") If (Y164) { M22D () } Else { BLCK () } SRMT ("m22e") M22E () SRMT ("m22f") M22F () SRMT ("m230") M230 () SRMT ("m231") M231 () SRMT ("m232") M232 () SRMT ("m233") M233 () /* bug 130 (m34c) */ SRMT ("m234") M234 () SRMT ("m235") M235 () SRMT ("m236") M236 () SRMT ("m237") M237 () SRMT ("m238") M238 () SRMT ("m239") M239 () SRMT ("m23a") M23A () SRMT ("m23b") M23B () SRMT ("m23c") M23C () SRMT ("m23d") M23D () SRMT ("m23e") M23E () SRMT ("m23f") M23F () SRMT ("m250") M250 () SRMT ("m251") M251 () SRMT ("m252") M252 () SRMT ("m253") M253 () SRMT ("m254") M254 () SRMT ("m255") M255 () SRMT ("m256") M256 () SRMT ("m257") M257 () SRMT ("m258") M258 (0x00) SRMT ("m259") M259 () SRMT ("m25a") M25A () SRMT ("m25b") M25B () SRMT ("m25c") M25C () SRMT ("m25d") M25D () SRMT ("m25e") M25E () SRMT ("m25f") M25F () SRMT ("m260") M260 () SRMT ("m261") M261 () SRMT ("m262") M262 () SRMT ("m263") M263 () SRMT ("m264") M264 () SRMT ("m265") M265 () SRMT ("m266") M266 () SRMT ("m267") M267 () SRMT ("m268") M268 () SRMT ("m269") M269 () SRMT ("m26a") M26A () SRMT ("m26b") If (Y164) { M26B () /* bugs, see inside */ } Else { BLCK () } SRMT ("m26c") M26C () SRMT ("m26d") M26D () SRMT ("m26e") M26E () /* bug 131 (m365) */ SRMT ("m26f") M26F () SRMT ("m270") M270 () /* bug 134 */ SRMT ("m276") M276 () SRMT ("mfab") If (Y603) { MFAB () } Else { BLCK () } SRMT ("mfad") If (Y603) { MFAD () } Else { BLCK () } SRMT ("mfc3") If (Y603) { MFC3 () } Else { BLCK () } SRMT ("mfc4") If (Y603) { MFC4 () } Else { BLCK () } } /* SRMT("m23b") m23b() SRMT("m251") m251() */ /* SRMT("mfab") mfab() SRMT("mfad") mfad() SRMT("mfc3") mfc3() SRMT("mfc4") mfc4() // SRMT("m234") // m234() // SRMT("m26b") // m26b() // m251() // m22d() // m26b() // m276() */ Else { /* To run particular sub-tests here */ SRMT ("m1d5") M1D5 () } /* SEE and do these below: */ /* 1. See bug 130, add this checking: see this when worked on m233() Method(m000, 1) { // Store(DerefOf(arg0), Local2) // Store(0x2b, Index(Local2, 1)) Store(0x2b, Index(DerefOf(arg0), 1)) } 2. do many enclosed method calls to show that index to Str,Buf,Pckg changes the initial object nevertheless */ /* Method (M001) { Name(P004, Package(Add (128, 3)) {}) Name(P005, Package(Add (128, 1024)) {}) } */ /* Use the same object in several operands and results */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref03.asl0000700000175000017500000016742414773714156030351 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * References * * TABLE 6: all the legal ways to generate references to ArgX * * Producing Reference operators: * * Index, RefOf, CondRefOf */ Name (Z079, 0x4F) /* /////////////////////////////////////////////////////////////////////////// */ /* */ /* TABLE 6: all the legal ways to generate references to ArgX */ /* */ /* /////////////////////////////////////////////////////////////////////////// */ /* m169,m190,m170 */ Method (M180, 2, NotSerialized) { If (Y100) { TS00 ("m180") } Else { Debug = "m180" } /* T6:I2-I4 */ /* Computational Data */ Arg1 = S900 /* \S900 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x31, __LINE__) Arg1 = S901 /* \S901 */ Store (Arg1 [0x02], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x72, __LINE__) Arg1 = B900 /* \B900 */ Store (Arg1 [0x03], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0xB3, __LINE__) /* Elements of Package are Uninitialized */ If (Y104) { Arg1 = P900 /* \P900 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C008, Ones, 0x04) } /* Elements of Package are Computational Data */ Arg1 = P901 /* \P901 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xABCD0004, __LINE__) Arg1 = P901 /* \P901 */ Store (Arg1 [0x01], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x1122334455660005, __LINE__) Arg1 = P902 /* \P902 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340006", __LINE__) Arg1 = P902 /* \P902 */ Store (Arg1 [0x01], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Arg1 = P903 /* \P903 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop0008", __LINE__) Arg1 = P903 /* \P903 */ Store (Arg1 [0x01], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "1234567890abdef0250009", __LINE__) Arg1 = P904 /* \P904 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x0B) Arg1 = P905 /* \P905 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x0ABC000A, __LINE__) Arg1 = P905 /* \P905 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "0xabc000b", __LINE__) Arg1 = P906 /* \P906 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "abc000d", __LINE__) Arg1 = P907 /* \P907 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "aqwevbgnm000e", __LINE__) Arg1 = P908 /* \P908 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x10) Arg1 = P909 /* \P909 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000F, __LINE__) Arg1 = P90A /* \P90A */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "12340010", __LINE__) Arg1 = P90B /* \P90B */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "zxswefas0011", __LINE__) Arg1 = P90C /* \P90C */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x14) Arg1 = P90D /* \P90D */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Arg1 = P90E /* \P90E */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Arg1 = P90F /* \P90F */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Arg1 = P910 /* \P910 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Arg1 = P911 /* \P911 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x19) If (Y118) { Arg1 = P912 /* \P912 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Arg1 = P913 /* \P913 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Arg1 = P914 /* \P914 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Arg1 = P915 /* \P915 */ Store (Arg1 [0x00], Local0) M1A2 (Local0, C016, 0x00, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Arg1 = P916 /* \P916 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C00E, Ones, 0x1E) Arg1 = P917 /* \P917 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C00F, Ones, 0x1F) Arg1 = P918 /* \P918 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C011, Ones, 0x20) Arg1 = P919 /* \P919 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C012, Ones, 0x21) Arg1 = P91A /* \P91A */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C013, Ones, 0x22) Arg1 = P91B /* \P91B */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C014, Ones, 0x23) Arg1 = P91C /* \P91C */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C015, Ones, 0x24) /* Elements of Package are Methods */ If (Y105) { Arg1 = P91D /* \P91D */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x25) Arg1 = P91E /* \P91E */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x26) Arg1 = P91F /* \P91F */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x27) Arg1 = P920 /* \P920 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x28) Arg1 = P921 /* \P921 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x29) Arg1 = P922 /* \P922 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2A) Arg1 = P923 /* \P923 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2B) Arg1 = P924 /* \P924 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2C) Arg1 = P925 /* \P925 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2D) Arg1 = P926 /* \P926 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2E) Arg1 = P927 /* \P927 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2F) Arg1 = P928 /* \P928 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x30) Arg1 = P929 /* \P929 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x31) Arg1 = P92A /* \P92A */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x32) Arg1 = P92B /* \P92B */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x33) Arg1 = P92C /* \P92C */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x34) Arg1 = P92D /* \P92D */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x35) Arg1 = P92E /* \P92E */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x36) Arg1 = P92F /* \P92F */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x37) Arg1 = P930 /* \P930 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x38) Arg1 = P931 /* \P931 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x39) Arg1 = P932 /* \P932 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3A) Arg1 = P933 /* \P933 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3B) Arg1 = P934 /* \P934 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3C) If (Y103) { Arg1 = P935 /* \P935 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3D) } Arg1 = P936 /* \P936 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3E) Arg1 = P937 /* \P937 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3F) Arg1 = P938 /* \P938 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x40) Arg1 = P939 /* \P939 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x41) Arg1 = P93A /* \P93A */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x42) Arg1 = P93B /* \P93B */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x43) Arg1 = P93C /* \P93C */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x44) Arg1 = P93D /* \P93D */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x45) Arg1 = P93E /* \P93E */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x46) Arg1 = P93F /* \P93F */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x47) Arg1 = P940 /* \P940 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x48) Arg1 = P941 /* \P941 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x49) Arg1 = P942 /* \P942 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4A) Arg1 = P943 /* \P943 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4B) Arg1 = P944 /* \P944 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4C) Arg1 = P945 /* \P945 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4D) Arg1 = P946 /* \P946 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4E) Arg1 = P947 /* \P947 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4F) Arg1 = P948 /* \P948 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x50) Arg1 = P949 /* \P949 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x51) Arg1 = P94A /* \P94A */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x52) Arg1 = P94B /* \P94B */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x53) Arg1 = P94C /* \P94C */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x54) Arg1 = P94D /* \P94D */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x55) Arg1 = P94E /* \P94E */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x56) Arg1 = P94F /* \P94F */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x57) Arg1 = P950 /* \P950 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x58) Arg1 = P951 /* \P951 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x59) Arg1 = P952 /* \P952 */ Store (Arg1 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x5A) } /* T6:IR2-IR4 */ /* Computational Data */ Arg1 = S900 /* \S900 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C016, 0x00, 0x00, C009, 0x31, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x31, __LINE__) Arg1 = S901 /* \S901 */ Local0 = Local1 = Arg1 [0x02] M1A2 (Local0, C016, 0x00, 0x00, C009, 0x72, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x72, __LINE__) Arg1 = B900 /* \B900 */ Local0 = Local1 = Arg1 [0x04] M1A2 (Local0, C016, 0x00, 0x00, C009, 0xB4, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0xB4, __LINE__) /* Elements of Package are Uninitialized */ If (Y104) { Arg1 = P900 /* \P900 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C008, Ones, 0x61) M1A0 (Local1, C008, Ones, 0x62) } /* Elements of Package are Computational Data */ Arg1 = P901 /* \P901 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xABCD0004, __LINE__) Arg1 = P901 /* \P901 */ Local0 = Local1 = Arg1 [0x01] M1A2 (Local0, C009, 0x00, 0x00, C009, 0x1122334455660005, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0x1122334455660005, __LINE__) Arg1 = P902 /* \P902 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340006", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12340006", __LINE__) Arg1 = P902 /* \P902 */ Local0 = Local1 = Arg1 [0x01] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Arg1 = P903 /* \P903 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyuiop0008", __LINE__) Arg1 = P903 /* \P903 */ Local0 = Local1 = Arg1 [0x01] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "1234567890abdef0250009", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "1234567890abdef0250009", __LINE__) Arg1 = P904 /* \P904 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x6F) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x70) Arg1 = P905 /* \P905 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0x0ABC000A, __LINE__) Arg1 = P905 /* \P905 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00C, 0x01, 0x01, C00A, "0xabc000b", __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C00A, "0xabc000b", __LINE__) Arg1 = P906 /* \P906 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00A, "abc000d", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "abc000d", __LINE__) Arg1 = P907 /* \P907 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00A, "aqwevbgnm000e", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "aqwevbgnm000e", __LINE__) Arg1 = P908 /* \P908 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x79) M1A2 (Local1, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x7A) Arg1 = P909 /* \P909 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000F, __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C009, 0x0ABC000F, __LINE__) Arg1 = P90A /* \P90A */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00A, "12340010", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "12340010", __LINE__) Arg1 = P90B /* \P90B */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00A, "zxswefas0011", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "zxswefas0011", __LINE__) Arg1 = P90C /* \P90C */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x81) M1A2 (Local1, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x82) Arg1 = P90D /* \P90D */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Arg1 = P90E /* \P90E */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Arg1 = P90F /* \P90F */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Arg1 = P910 /* \P910 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Arg1 = P911 /* \P911 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x8B) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x8C) If (Y118) { Arg1 = P912 /* \P912 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Arg1 = P913 /* \P913 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Arg1 = P914 /* \P914 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Arg1 = P915 /* \P915 */ Local0 = Local1 = Arg1 [0x00] M1A2 (Local0, C016, 0x00, 0x00, C016, 0xB0, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Arg1 = P916 /* \P916 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C00E, Ones, 0x95) M1A0 (Local1, C00E, Ones, 0x96) Arg1 = P917 /* \P917 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C00F, Ones, 0x97) M1A0 (Local1, C00F, Ones, 0x98) Arg1 = P918 /* \P918 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C011, Ones, 0x99) M1A0 (Local1, C011, Ones, 0x9A) Arg1 = P919 /* \P919 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C012, Ones, 0x9B) M1A0 (Local1, C012, Ones, 0x9C) Arg1 = P91A /* \P91A */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C013, Ones, 0x9D) M1A0 (Local1, C013, Ones, 0x9E) Arg1 = P91B /* \P91B */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C014, Ones, 0x9F) M1A0 (Local1, C014, Ones, 0xA0) Arg1 = P91C /* \P91C */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C015, Ones, 0xA1) M1A0 (Local1, C015, Ones, 0xA2) /* Elements of Package are Methods */ If (Y105) { Arg1 = P91D /* \P91D */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xA3) M1A0 (Local1, C010, Ones, 0xA4) Arg1 = P91E /* \P91E */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xA5) M1A0 (Local1, C010, Ones, 0xA6) Arg1 = P91F /* \P91F */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xA7) M1A0 (Local1, C010, Ones, 0xA8) Arg1 = P920 /* \P920 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xA9) M1A0 (Local1, C010, Ones, 0xAA) Arg1 = P921 /* \P921 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xAB) M1A0 (Local1, C010, Ones, 0xAC) Arg1 = P922 /* \P922 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xAD) M1A0 (Local1, C010, Ones, 0xAE) Arg1 = P923 /* \P923 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xAF) M1A0 (Local1, C010, Ones, 0xB0) Arg1 = P924 /* \P924 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xB1) M1A0 (Local1, C010, Ones, 0xB2) Arg1 = P925 /* \P925 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xB3) M1A0 (Local1, C010, Ones, 0xB4) Arg1 = P926 /* \P926 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xB5) M1A0 (Local1, C010, Ones, 0xB6) Arg1 = P927 /* \P927 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xB7) M1A0 (Local1, C010, Ones, 0xB8) Arg1 = P928 /* \P928 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xB9) M1A0 (Local1, C010, Ones, 0xBA) Arg1 = P929 /* \P929 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xBB) M1A0 (Local1, C010, Ones, 0xBC) Arg1 = P92A /* \P92A */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xBD) M1A0 (Local1, C010, Ones, 0xBE) Arg1 = P92B /* \P92B */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xBF) M1A0 (Local1, C010, Ones, 0xC0) Arg1 = P92C /* \P92C */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xC1) M1A0 (Local1, C010, Ones, 0xC2) Arg1 = P92D /* \P92D */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xC3) M1A0 (Local1, C010, Ones, 0xC4) Arg1 = P92E /* \P92E */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xC5) M1A0 (Local1, C010, Ones, 0xC6) Arg1 = P92F /* \P92F */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xC7) M1A0 (Local1, C010, Ones, 0xC8) Arg1 = P930 /* \P930 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xC9) M1A0 (Local1, C010, Ones, 0xCA) Arg1 = P931 /* \P931 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xCB) M1A0 (Local1, C010, Ones, 0xCC) Arg1 = P932 /* \P932 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xCD) M1A0 (Local1, C010, Ones, 0xCE) Arg1 = P933 /* \P933 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xCF) M1A0 (Local1, C010, Ones, 0xD0) Arg1 = P934 /* \P934 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xD1) M1A0 (Local1, C010, Ones, 0xD2) If (Y103) { Arg1 = P935 /* \P935 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xD3) M1A0 (Local1, C010, Ones, 0xD4) } Arg1 = P936 /* \P936 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xD5) M1A0 (Local1, C010, Ones, 0xD6) Arg1 = P937 /* \P937 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xD7) M1A0 (Local1, C010, Ones, 0xD8) Arg1 = P938 /* \P938 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xD9) M1A0 (Local1, C010, Ones, 0xDA) Arg1 = P939 /* \P939 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xDB) M1A0 (Local1, C010, Ones, 0xDC) Arg1 = P93A /* \P93A */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xDD) M1A0 (Local1, C010, Ones, 0xDE) Arg1 = P93B /* \P93B */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xDF) M1A0 (Local1, C010, Ones, 0xE0) Arg1 = P93C /* \P93C */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xE1) M1A0 (Local1, C010, Ones, 0xE2) Arg1 = P93D /* \P93D */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xE3) M1A0 (Local1, C010, Ones, 0xE4) Arg1 = P93E /* \P93E */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xE5) M1A0 (Local1, C010, Ones, 0xE6) Arg1 = P93F /* \P93F */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xE7) M1A0 (Local1, C010, Ones, 0xE8) Arg1 = P940 /* \P940 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xE9) M1A0 (Local1, C010, Ones, 0xEA) Arg1 = P941 /* \P941 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xEB) M1A0 (Local1, C010, Ones, 0xEC) Arg1 = P942 /* \P942 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xED) M1A0 (Local1, C010, Ones, 0xEE) Arg1 = P943 /* \P943 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xEF) M1A0 (Local1, C010, Ones, 0xF0) Arg1 = P944 /* \P944 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xF1) M1A0 (Local1, C010, Ones, 0xF2) Arg1 = P945 /* \P945 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xF3) M1A0 (Local1, C010, Ones, 0xF4) Arg1 = P946 /* \P946 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xF5) M1A0 (Local1, C010, Ones, 0xF6) Arg1 = P947 /* \P947 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xF7) M1A0 (Local1, C010, Ones, 0xF8) Arg1 = P948 /* \P948 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xF9) M1A0 (Local1, C010, Ones, 0xFA) Arg1 = P949 /* \P949 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xFB) M1A0 (Local1, C010, Ones, 0xFC) Arg1 = P94A /* \P94A */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xFD) M1A0 (Local1, C010, Ones, 0xFE) Arg1 = P94B /* \P94B */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0xFF) M1A0 (Local1, C010, Ones, 0x0100) Arg1 = P94C /* \P94C */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0x0101) M1A0 (Local1, C010, Ones, 0x0102) Arg1 = P94D /* \P94D */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0x0103) M1A0 (Local1, C010, Ones, 0x0104) Arg1 = P94E /* \P94E */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0x0105) M1A0 (Local1, C010, Ones, 0x0106) Arg1 = P94F /* \P94F */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0x0107) M1A0 (Local1, C010, Ones, 0x0108) Arg1 = P950 /* \P950 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0x0109) M1A0 (Local1, C010, Ones, 0x010A) Arg1 = P951 /* \P951 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0x010B) M1A0 (Local1, C010, Ones, 0x010C) Arg1 = P952 /* \P952 */ Local0 = Local1 = Arg1 [0x00] M1A0 (Local0, C010, Ones, 0x010D) M1A0 (Local1, C010, Ones, 0x010E) } M1A6 () } /* m16a,m191,m171 */ /* arg2 - writing mode */ Method (M181, 3, NotSerialized) { If (Y100) { TS00 ("m181") } Else { Debug = "m181" } /* T6:R0-R5,R14 */ /* Uninitialized Local */ If (Arg0) { Arg6 = 0x00 } Local0 = RefOf (Arg6) M1A0 (Local0, C008, Ones, 0x03E8) /* Computational Data */ Arg1 = I900 /* \I900 */ Local0 = RefOf (Arg1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Arg1 = I901 /* \I901 */ Local0 = RefOf (Arg1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Arg1 = S900 /* \S900 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Arg1 = S901 /* \S901 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Arg1 = B900 /* \B900 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0113) /* Not Computational Data */ /* Package */ Arg1 = P953 /* \P953 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0018, __LINE__) If (Arg2) { /* Data are unchanged, because writings were made */ /* into the new objects associated with arg1. */ M1A6 () Return (Zero) } /* Computational Data (Field Unit and Buffer Field) */ Arg1 = F900 /* \F900 */ Local0 = RefOf (Arg1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) Arg1 = BN90 /* \BN90 */ Local0 = RefOf (Arg1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) Arg1 = IF90 /* \IF90 */ Local0 = RefOf (Arg1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) Arg1 = BF90 /* \BF90 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer(){0xB0}, __LINE__) /* Elements of Package are Uninitialized */ Arg1 = P900 /* \P900 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x011F) /* Elements of Package are Computational Data */ Arg1 = P901 /* \P901 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) Arg1 = P902 /* \P902 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Arg1 = P903 /* \P903 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) Arg1 = P904 /* \P904 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x0126) Arg1 = P905 /* \P905 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) Arg1 = P906 /* \P906 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) Arg1 = P907 /* \P907 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) Arg1 = P908 /* \P908 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x012B) Arg1 = P909 /* \P909 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) Arg1 = P90A /* \P90A */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) Arg1 = P90B /* \P90B */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) Arg1 = P90C /* \P90C */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x012F) Arg1 = P90D /* \P90D */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Arg1 = P90E /* \P90E */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) Arg1 = P90F /* \P90F */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) Arg1 = P910 /* \P910 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) Arg1 = P911 /* \P911 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0134) If (Y118) { Arg1 = P912 /* \P912 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Arg1 = P913 /* \P913 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Arg1 = P914 /* \P914 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Arg1 = P915 /* \P915 */ Local0 = RefOf (Arg1) M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Arg1 = P916 /* \P916 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0139) Arg1 = P917 /* \P917 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x013A) Arg1 = P918 /* \P918 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x013B) Arg1 = P919 /* \P919 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x013C) Arg1 = P91A /* \P91A */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x013D) Arg1 = P91B /* \P91B */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x013E) Arg1 = P91C /* \P91C */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x013F) /* Elements of Package are Methods */ Arg1 = P91D /* \P91D */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0140) Arg1 = P91E /* \P91E */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0141) Arg1 = P91F /* \P91F */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0142) Arg1 = P920 /* \P920 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0143) Arg1 = P921 /* \P921 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0144) Arg1 = P922 /* \P922 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0145) Arg1 = P923 /* \P923 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0146) Arg1 = P924 /* \P924 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0147) Arg1 = P925 /* \P925 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0148) Arg1 = P926 /* \P926 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0149) Arg1 = P927 /* \P927 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x014A) Arg1 = P928 /* \P928 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x014B) Arg1 = P929 /* \P929 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x014C) Arg1 = P92A /* \P92A */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x014D) Arg1 = P92B /* \P92B */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x014E) Arg1 = P92C /* \P92C */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x014F) Arg1 = P92D /* \P92D */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0150) Arg1 = P92E /* \P92E */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0151) Arg1 = P92F /* \P92F */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0152) Arg1 = P930 /* \P930 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0153) Arg1 = P931 /* \P931 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0154) Arg1 = P932 /* \P932 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0155) Arg1 = P933 /* \P933 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0156) Arg1 = P934 /* \P934 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0157) Arg1 = P935 /* \P935 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0158) Arg1 = P936 /* \P936 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0159) Arg1 = P937 /* \P937 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x015A) Arg1 = P938 /* \P938 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x015B) Arg1 = P939 /* \P939 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x015C) Arg1 = P93A /* \P93A */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x015D) Arg1 = P93B /* \P93B */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x015E) Arg1 = P93C /* \P93C */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x015F) Arg1 = P93D /* \P93D */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0160) Arg1 = P93E /* \P93E */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0161) Arg1 = P93F /* \P93F */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0162) Arg1 = P940 /* \P940 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0163) Arg1 = P941 /* \P941 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0164) Arg1 = P942 /* \P942 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0165) Arg1 = P943 /* \P943 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0166) Arg1 = P944 /* \P944 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0167) Arg1 = P945 /* \P945 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0168) Arg1 = P946 /* \P946 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0169) Arg1 = P947 /* \P947 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x016A) Arg1 = P948 /* \P948 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x016B) Arg1 = P949 /* \P949 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x016C) Arg1 = P94A /* \P94A */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x016D) Arg1 = P94B /* \P94B */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x016E) Arg1 = P94C /* \P94C */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x016F) Arg1 = P94D /* \P94D */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0170) Arg1 = P94E /* \P94E */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0171) Arg1 = P94F /* \P94F */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0172) Arg1 = P950 /* \P950 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0173) Arg1 = P951 /* \P951 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0174) Arg1 = P952 /* \P952 */ Local0 = RefOf (Arg1) M1A0 (Local0, C00C, Ones, 0x0175) M1A6 () Return (Zero) } /* m16c,m193,m172 */ /* arg2 - writing mode */ Method (M182, 3, NotSerialized) { If (Y100) { TS00 ("m182") } Else { Debug = "m182" } /* T6:CR0-CR5,CR14 */ /* Uninitialized Local */ If (Arg0) { Arg6 = 0x00 } Local1 = CondRefOf (Arg6, Local0) If (M1A4 (Local1, 0x024D)) { M1A0 (Local0, C008, Ones, 0x024E) } /* Computational Data */ Arg1 = I900 /* \I900 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x024F)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) } Arg1 = I901 /* \I901 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0251)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) } Arg1 = S900 /* \S900 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0253)) { M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) } Arg1 = S901 /* \S901 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0255)) { M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) } Arg1 = B900 /* \B900 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0257)) { M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0258) } /* Not Computational Data */ /* Package */ Arg1 = P953 /* \P953 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x03F0)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0018, __LINE__) } If (Arg2) { /* Data are unchanged, because writings were made */ /* into the new objects associated with arg1. */ M1A6 () Return (Zero) } /* Computational Data (Field Unit and Buffer Field) */ Arg1 = F900 /* \F900 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0259)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) } Arg1 = BN90 /* \BN90 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x025B)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) } Arg1 = IF90 /* \IF90 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x025D)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) } Arg1 = BF90 /* \BF90 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x025F)) { M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer(){0xB0}, __LINE__) } /* Elements of Package are Uninitialized */ Arg1 = P900 /* \P900 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x0268) /* Elements of Package are Computational Data */ Arg1 = P901 /* \P901 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0269)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) } Arg1 = P902 /* \P902 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x026C)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) } Arg1 = P903 /* \P903 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x026F)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) } Arg1 = P904 /* \P904 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0272)) { M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x0273) } Arg1 = P905 /* \P905 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0274)) { M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) } Arg1 = P906 /* \P906 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0277)) { M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) } Arg1 = P907 /* \P907 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0279)) { M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) } Arg1 = P908 /* \P908 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x027B)) { M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x027C) } Arg1 = P909 /* \P909 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x027D)) { M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) } Arg1 = P90A /* \P90A */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x027F)) { M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) } Arg1 = P90B /* \P90B */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0281)) { M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) } Arg1 = P90C /* \P90C */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0283)) { M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x0284) } Arg1 = P90D /* \P90D */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0285)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) } Arg1 = P90E /* \P90E */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0287)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) } Arg1 = P90F /* \P90F */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0289)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) } Arg1 = P910 /* \P910 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x028B)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) } Arg1 = P911 /* \P911 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x028D)) { M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x028E) } If (Y118) { Arg1 = P912 /* \P912 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x028F)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Arg1 = P913 /* \P913 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0291)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Arg1 = P914 /* \P914 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0293)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Arg1 = P915 /* \P915 */ Local1 = CondRefOf (Arg1, Local0) If (M1A4 (Local1, 0x0295)) { M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) } } /* Elements of Package are NOT Computational Data */ Arg1 = P916 /* \P916 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x0297) Arg1 = P917 /* \P917 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x0298) Arg1 = P918 /* \P918 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x19FF) Arg1 = P919 /* \P919 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x029A) Arg1 = P91A /* \P91A */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x029B) Arg1 = P91B /* \P91B */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x029C) Arg1 = P91C /* \P91C */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x029D) /* Elements of Package are Methods */ Arg1 = P91D /* \P91D */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x029E) Arg1 = P91E /* \P91E */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x029F) Arg1 = P91F /* \P91F */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A0) Arg1 = P920 /* \P920 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A1) Arg1 = P921 /* \P921 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A2) Arg1 = P922 /* \P922 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A3) Arg1 = P923 /* \P923 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A4) Arg1 = P924 /* \P924 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A5) Arg1 = P925 /* \P925 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A6) Arg1 = P926 /* \P926 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A7) Arg1 = P927 /* \P927 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A8) Arg1 = P928 /* \P928 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02A9) Arg1 = P929 /* \P929 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02AA) Arg1 = P92A /* \P92A */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02AB) Arg1 = P92B /* \P92B */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02AC) Arg1 = P92C /* \P92C */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02AD) Arg1 = P92D /* \P92D */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02AE) Arg1 = P92E /* \P92E */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02AF) Arg1 = P92F /* \P92F */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B0) Arg1 = P930 /* \P930 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B1) Arg1 = P931 /* \P931 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B2) Arg1 = P932 /* \P932 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B3) Arg1 = P933 /* \P933 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B4) Arg1 = P934 /* \P934 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B5) Arg1 = P935 /* \P935 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B6) Arg1 = P936 /* \P936 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B7) Arg1 = P937 /* \P937 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B8) Arg1 = P938 /* \P938 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02B9) Arg1 = P939 /* \P939 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02BA) Arg1 = P93A /* \P93A */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02BB) Arg1 = P93B /* \P93B */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02BC) Arg1 = P93C /* \P93C */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02BD) Arg1 = P93D /* \P93D */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02BE) Arg1 = P93E /* \P93E */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02BF) Arg1 = P93F /* \P93F */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C0) Arg1 = P940 /* \P940 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C1) Arg1 = P941 /* \P941 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C2) Arg1 = P942 /* \P942 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C3) Arg1 = P943 /* \P943 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C4) Arg1 = P944 /* \P944 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C5) Arg1 = P945 /* \P945 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C6) Arg1 = P946 /* \P946 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C7) Arg1 = P947 /* \P947 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C8) Arg1 = P948 /* \P948 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02C9) Arg1 = P949 /* \P949 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02CA) Arg1 = P94A /* \P94A */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02CB) Arg1 = P94B /* \P94B */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02CC) Arg1 = P94C /* \P94C */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02CD) Arg1 = P94D /* \P94D */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02CE) Arg1 = P94E /* \P94E */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02CF) Arg1 = P94F /* \P94F */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02D0) Arg1 = P950 /* \P950 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02D1) Arg1 = P951 /* \P951 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02D2) Arg1 = P952 /* \P952 */ Local1 = CondRefOf (Arg1, Local0) M1A0 (Local0, C00C, Local1, 0x02D3) M1A6 () Return (Zero) } Method (M185, 3, NotSerialized) { C081 = Z079 /* absolute index of file initiating the checking */ /* \Z079 */ C089 = 0x01 /* flag of Reference, object otherwise */ If (Arg0) { M180 (0x00, 0x00) } If (Arg1) { M181 (0x00, 0x00, C083) } If (Arg2) { M182 (0x00, 0x00, C083) } } /* The mode with the chain of references to LocalX */ Method (M186, 0, NotSerialized) { C084 = 0x01 /* run verification of references (reading) */ C085 = 0x01 /* create the chain of references to LocalX, then dereference them */ Debug = "The mode with the chain of references to LocalX:" M185 (0x01, 0x01, 0x01) } /* Run-method */ Method (REF3, 0, NotSerialized) { Debug = "TEST: REF3, References" C080 = "REF3" /* name of test */ C082 = 0x00 /* flag of test of exceptions */ C083 = 0x00 /* run verification of references (write/read) */ C086 = 0x00 /* flag, run test till the first error */ C087 = 0x01 /* apply DeRefOf to ArgX-ObjectReference */ M186 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/TABLES0000700000175000017500000005163214773714157027620 0ustar ivanhuivanhu Collection of the functional information about the Object Reference and the call-by-reference convention. NOTATIONS: x - impossible to generate situation c - expected is a compiler error e - is not caught by compiler but causes exception + - expected is a positive result ? - should be more investigated ... - means everywhere below too A. ALL THE LEGAL WAYS TO GENERATE REFERENCES (means that Debug reports the obtained object like this: [ACPI Debug] Reference: 004D4068) ^^^^^^^^^^ TABLE 1: all the legal ways to generate references to the immediate images (constants) --------------------|---------------------------|-----------|-----------|-----------| Type | Examples | Index | RefOf | CondRefOf | | | I IR | R | C CR | --------------------|---------------------------|-----------|-----------|-----------| 0 Uninitialized | | x x | x | x x | 1 Integer | 0xabcdef | c c | c | c c | 2 String | "qwrtu" | + + | c | c c | 3 Buffer | Buffer(){7} | + + | c | c c | 4 Package | Package(){8} | + + | c | c c | 5 Field Unit | Field(..) {f000,..} | c c | c | c c | | BankField(..) {bkf0..} | c c | c | c c | | IndexField(..) {if00..} | c c | c | c c | 6 Device | Device(d000) {OL} | c c | c | c c | 7 Event | Event(e000) | c c | c | c c | 8 Method | Method(m000) {return(0)} | c c | c | c c | 9 Mutex | Mutex(mx00, 0) | c c | c | c c | 10 Operation Region | OperationRegion(r000,..) | c c | c | c c | 11 Power Resource | PowerResource(pwr0,..){OL}| c c | c | c c | 12 Processor | Processor(prc0,..){OL} | c c | c | c c | 13 Thermal Zone | ThermalZone(tz00){OL} | c c | c | c c | 14 Buffer Field | Create*Field(..,bf00) | c c | c | c c | 15 DDB Handle | | x x | x | x x | 16 Debug Object | Debug | c c | c | c c | --------------------|---------------------------|-----------|-----------|-----------| Examples of I: Store(Index("qwrtyuiop", 5), Local0) Store(Index(Buffer() {1,2,3,4,5,6,7,8}, 5), Local0) Store(Index(Package() {1,2,3,4,5,6,7,8}, 5), Local0) Examples of IR: Store(Index("qwrtyuiop", 5, Local1), Local0) Store(Index(Buffer() {1,2,3,4,5,6,7,8}, 5, Local1), Local0) Store(Index(Package() {1,2,3,4,5,6,7,8}, 5, Local1), Local0) TABLE 2: all the legal ways to generate references to the named objects --------------------|---------------------------|-----------|-----------|-----------| Type | Examples | Index | RefOf | CondRefOf | | | I IR | R | C CR | --------------------|---------------------------|-----------|-----------|-----------| 0 Uninitialized | | x x | x | x x | 1 Integer | Name(i000, 0xabcdef)) | ?2004 ? | + | + + | 2 String | Name(s000, "qwrtu") | + + | + | + + | 3 Buffer | Name(b000, Buffer(){7}) | + + | + | + + | 4 Package | Name(p000, Package(){8}) | + + | + | + + | 5 Field Unit | Field(..) {f000,..} | ?2004 ? | + | + + | | BankField(..) {bkf0..} | ?2004 ? | + | + + | | IndexField(..) {if00..} | ?2004 ? | + | + + | 6 Device | Device(d000) {OL} | c c | + | + + | 7 Event | Event(e000) | c c | + | + + | 8 Method | Method(m000) {return(0)} | ?2006 ? | + | + + | 9 Mutex | Mutex(mx00, 0) | c c | + | + + | 10 Operation Region | OperationRegion(r000,..) | c c | + | + + | 11 Power Resource | PowerResource(pwr0,..){OL}| c c | + | + + | 12 Processor | Processor(prc0,..){OL} | c c | + | + + | 13 Thermal Zone | ThermalZone(tz00){OL} | c c | + | + + | 14 Buffer Field | Create*Field(..,bf00) | ?2004 ? | + | + + | 15 DDB Handle | | x x | x | x x | 16 Debug Object | | x x | x | x x | --------------------|---------------------------|-----------|-----------|-----------| Examples of I: Store(Index(s000, 0), Local0) Store(Index(b000, 0), Local0) Store(Index(p000, 0), Local0) Examples of IR: Store(Index(s000, 0, Local1), Local0) Store(Index(b000, 0, Local1), Local0) Store(Index(p000, 0, Local1), Local0) Examples of R: Store(RefOf(i000), Local0) Store(RefOf(s000), Local0) Store(RefOf(b000), Local0) Store(RefOf(p000), Local0) Store(RefOf(f000), Local0) Store(RefOf(bkf0), Local0) Store(RefOf(if00), Local0) Store(RefOf(d000), Local0) Store(RefOf(e000), Local0) Store(RefOf(m000), Local0) Store(RefOf(mx00), Local0) Store(RefOf(r000), Local0) Store(RefOf(pwr0), Local0) Store(RefOf(prc0), Local0) Store(RefOf(tz00), Local0) Store(RefOf(bf00), Local0) Examples of C: Store(CondRefOf(i000), Local0) Store(CondRefOf(s000), Local0) Store(CondRefOf(b000), Local0) Store(CondRefOf(p000), Local0) Store(CondRefOf(f000), Local0) Store(CondRefOf(bkf0), Local0) Store(CondRefOf(if00), Local0) Store(CondRefOf(d000), Local0) Store(CondRefOf(e000), Local0) Store(CondRefOf(m000), Local0) Store(CondRefOf(mx00), Local0) Store(CondRefOf(r000), Local0) Store(CondRefOf(pwr0), Local0) Store(CondRefOf(prc0), Local0) Store(CondRefOf(tz00), Local0) Store(CondRefOf(bf00), Local0) Examples of CR: Store(CondRefOf(i000, Local1), Local0) Store(CondRefOf(s000, Local1), Local0) Store(CondRefOf(b000, Local1), Local0) Store(CondRefOf(p000, Local1), Local0) Store(CondRefOf(f000, Local1), Local0) Store(CondRefOf(bkf0, Local1), Local0) Store(CondRefOf(if00, Local1), Local0) Store(CondRefOf(d000, Local1), Local0) Store(CondRefOf(e000, Local1), Local0) Store(CondRefOf(m000, Local1), Local0) Store(CondRefOf(mx00, Local1), Local0) Store(CondRefOf(r000, Local1), Local0) Store(CondRefOf(pwr0, Local1), Local0) Store(CondRefOf(prc0, Local1), Local0) Store(CondRefOf(tz00, Local1), Local0) Store(CondRefOf(bf00, Local1), Local0) TABLE 3: all the legal ways to generate references to the immediate images (constants) being elements of Package --------------------|----------------------------|-----------|-----------|-----------| Type | Examples | Index | RefOf | CondRefOf | | | I IR | R | C CR | --------------------|----------------------------|-----------|-----------|-----------| 0 Uninitialized | Package(1){} | + + | x | x x | 1 Integer | Package(){0xabcdef} | + + | ... | ... ...| 2 String | Package(){"qwrtu"} | + + | | | 3 Buffer | Package(){Buffer(){7}} | + + | | | 4 Package | Package(){Package(){8}} | + + | | | 5 Field Unit | Package(){Field(f000)} | x x | | | | Package(){BankField(bkf0)} | ... ...| | | | Package(){IndexField(if00)}| | | | 6 Device | Package(){Device(d000)} | | | | 7 Event | Package(){Event(e000)} | | | | 8 Method | Package(){Method(m000)} | | | | 9 Mutex | Package(){Mutex(mx00)} | | | | 10 Operation Region | Package(){OperRegion(r000)}| | | | 11 Power Resource | Package(){PwResource(pwr0)}| | | | 12 Processor | Package(){Processor(prc0)} | | | | 13 Thermal Zone | Package(){ThermZone(tz00)} | | | | 14 Buffer Field | Package(){Cr*Field(bf00)} | | | | 15 DDB Handle | | | | | 16 Debug Object | Package(){Debug} | | | | --------------------|----------------------------|-----------|-----------|-----------| Examples of I: Store(Index(Package(1){}, 0), Local0) Store(Index(Package(){0xabcdef}, 0), Local0) Store(Index(Package(){"qwrtyuiop"}, 0), Local0) Store(Index(Package(){Buffer() {1,2,3,4,5,6,7,8,9}}, 0), Local0) Store(Index(Package(){Package(){0xabcdef}}, 0), Local0) Store(Index(Package(){Package(){"qwrtyuiop"}}, 0), Local0) Store(Index(Package(){Package(){Buffer() {1,2,3,4,5,6,7,8,9}}}, 0), Local0) Store(Index(Package(){Package(){Package(){0xabcdef}}}, 0), Local0) Examples of IR: Store(Index(Package(1){}, 0, Local1), Local0) Store(Index(Package(){0xabcdef}, 0, Local1), Local0) Store(Index(Package(){"qwrtyuiop"}, 0, Local1), Local0) Store(Index(Package(){Buffer() {1,2,3,4,5,6,7,8,9}}, 0, Local1), Local0) Store(Index(Package(){Package(){0xabcdef}}, 0, Local1), Local0) Store(Index(Package(){Package(){"qwrtyuiop"}}, 0, Local1), Local0) Store(Index(Package(){Package(){Buffer() {1,2,3,4,5,6,7,8,9}}}, 0, Local1), Local0) Store(Index(Package(){Package(){Package(){0xabcdef}}}, 0, Local1), Local0) TABLE 4: all the legal ways to generate references to the named objects being elements of Package --------------------|---------------------------|-----------|-----------|-----------| Type | Examples | Index | RefOf | CondRefOf | | | I IR | R | C CR | --------------------|---------------------------|-----------|-----------|-----------| 0 Uninitialized | | x x | x | x x | 1 Integer | Package(){i000} | + + | ... | ... ...| 2 String | Package(){s000} | + + | | | 3 Buffer | Package(){b000} | ... ...| | | 4 Package | Package(){p000} | | | | 5 Field Unit | Package(){f000} | | | | | Package(){bkf0} | | | | | Package(){if00} | | | | 6 Device | Package(){d000} | | | | 7 Event | Package(){e000} | | | | 8 Method | Package(){m000} | | | | 9 Mutex | Package(){mx00} | | | | 10 Operation Region | Package(){r000} | | | | 11 Power Resource | Package(){pwr0} | | | | 12 Processor | Package(){prc0} | | | | 13 Thermal Zone | Package(){tz00} | | | | 14 Buffer Field | Package(){bf00} | | | | 15 DDB Handle | | x x | | | 16 Debug Object | | x x | | | --------------------|---------------------------|-----------|-----------|-----------| Examples of I: Store(Index(Package(){i000}, 0), Local0) Store(Index(Package(){s000}, 0), Local0) Store(Index(Package(){b000}, 0), Local0) Store(Index(Package(){p000}, 0), Local0) Store(Index(Package(){f000}, 0), Local0) Store(Index(Package(){bkf0}, 0), Local0) Store(Index(Package(){if00}, 0), Local0) Store(Index(Package(){d000}, 0), Local0) Store(Index(Package(){e000}, 0), Local0) Store(Index(Package(){m000}, 0), Local0) Store(Index(Package(){mx00}, 0), Local0) Store(Index(Package(){r000}, 0), Local0) Store(Index(Package(){pwr0}, 0), Local0) Store(Index(Package(){prc0}, 0), Local0) Store(Index(Package(){tz00}, 0), Local0) Store(Index(Package(){bf00}, 0), Local0) Examples of IR: Store(Index(Package(){i000}, 0, Local1), Local0) Store(Index(Package(){s000}, 0, Local1), Local0) Store(Index(Package(){b000}, 0, Local1), Local0) Store(Index(Package(){p000}, 0, Local1), Local0) Store(Index(Package(){f000}, 0, Local1), Local0) Store(Index(Package(){bkf0}, 0, Local1), Local0) Store(Index(Package(){if00}, 0, Local1), Local0) Store(Index(Package(){d000}, 0, Local1), Local0) Store(Index(Package(){e000}, 0, Local1), Local0) Store(Index(Package(){m000}, 0, Local1), Local0) Store(Index(Package(){mx00}, 0, Local1), Local0) Store(Index(Package(){r000}, 0, Local1), Local0) Store(Index(Package(){pwr0}, 0, Local1), Local0) Store(Index(Package(){prc0}, 0, Local1), Local0) Store(Index(Package(){tz00}, 0, Local1), Local0) Store(Index(Package(){bf00}, 0, Local1), Local0) TABLE 5: all the legal ways to generate references to LocalX --------------------|---------------------------|-----------|-----------|-----------| Type | Examples | Index | RefOf | CondRefOf | | | I IR | R | C CR | --------------------|---------------------------|-----------|-----------|-----------| 0 Uninitialized | Store(UNIN, Local0); RF(L)| e e | + | + + | 1 Integer | Store(i000, Local0); RF(L)| e e | + | + + | 2 String | Store(s000, Local0); RF(L)| + + | + | + + | 3 Buffer | Store(b000, Local0); RF(L)| + + | + | + + | 4 Package | Store(p000, Local0); RF(L)| + + | + | + + | 5 Field Unit | Store(f000, Local0); RF(L)| e e | + | + + | | Store(bkf0, Local0); RF(L)| e e | + | + + | | Store(if00, Local0); RF(L)| e e | + | + + | 6 Device | Store(d000, Local0); RF(L)| x x | x | x x | 7 Event | Store(e000, Local0); RF(L)| ... ...| ... | ... ...| 8 Method | Store(m000, Local0); RF(L)| | | | 9 Mutex | Store(mx00, Local0); RF(L)| | | | 10 Operation Region | Store(r000, Local0); RF(L)| | | | 11 Power Resource | Store(pwr0, Local0); RF(L)| | | | 12 Processor | Store(prc0, Local0); RF(L)| | | | 13 Thermal Zone | Store(tz00, Local0); RF(L)| | | | 14 Buffer Field | Store(bf00, Local0); RF(L)| e e | + | + + | 15 DDB Handle | Store(HDL, Local0); RF(L)| | | | 16 Debug Object | Store(Debug,Local0); RF(L)| | | | --------------------|---------------------------|-----------|-----------|-----------| Examples of I: Store(s000, Local7) Store(Index(Local7, 0), Local0) Store(b000, Local7) Store(Index(Local7, 0), Local0) Store(p000, Local7) Store(Index(Local7, 0), Local0) Examples of IR: Store(s000, Local7) Store(Index(Local7, 0, Local1), Local0) Store(b000, Local7) Store(Index(Local7, 0, Local1), Local0) Store(p000, Local7) Store(Index(Local7, 0, Local1), Local0) Examples of R: Store(i000, Local7) Store(RefOf(Local7), Local0) Store(s000, Local7) Store(RefOf(Local7), Local0) Store(b000, Local7) Store(RefOf(Local7), Local0) Store(p000, Local7) Store(RefOf(Local7), Local0) Store(f000, Local7) Store(RefOf(Local7), Local0) Store(bkf0, Local7) Store(RefOf(Local7), Local0) Store(if00, Local7) Store(RefOf(Local7), Local0) Examples of C: Store(i000, Local7) Store(CondRefOf(Local7), Local0) Store(s000, Local7) Store(CondRefOf(Local7), Local0) Store(b000, Local7) Store(CondRefOf(Local7), Local0) Store(p000, Local7) Store(CondRefOf(Local7), Local0) Store(f000, Local7) Store(CondRefOf(Local7), Local0) Store(bkf0, Local7) Store(CondRefOf(Local7), Local0) Store(if00, Local7) Store(CondRefOf(Local7), Local0) Examples of CR: Store(i000, Local7) Store(CondRefOf(Local7, Local1), Local0) Store(s000, Local7) Store(CondRefOf(Local7, Local1), Local0) Store(b000, Local7) Store(CondRefOf(Local7, Local1), Local0) Store(p000, Local7) Store(CondRefOf(Local7, Local1), Local0) Store(f000, Local7) Store(CondRefOf(Local7, Local1), Local0) Store(bkf0, Local7) Store(CondRefOf(Local7, Local1), Local0) Store(if00, Local7) Store(CondRefOf(Local7, Local1), Local0) TABLE 6: all the legal ways to generate references to ArgX --------------------|---------------------------|-----------|-----------|-----------| Type | Examples | Index | RefOf | CondRefOf | | | I IR | R | C CR | --------------------|---------------------------|-----------|-----------|-----------| 0 Uninitialized | Store(UNIN, Arg0); RF(L) | e e | + | + + | 1 Integer | Store(i000, Arg0); RF(L) | e e | + | + + | 2 String | Store(s000, Arg0); RF(L) | + + | + | + + | 3 Buffer | Store(b000, Arg0); RF(L) | + + | + | + + | 4 Package | Store(p000, Arg0); RF(L) | + + | + | + + | 5 Field Unit | Store(f000, Arg0); RF(L) | e e | + | + + | | Store(bkf0, Arg0); RF(L) | e e | + | + + | | Store(if00, Arg0); RF(L) | e e | + | + + | 6 Device | Store(d000, Arg0); RF(L) | x x | x | x x | 7 Event | Store(e000, Arg0); RF(L) | ... ...| ... | ... ...| 8 Method | Store(m000, Arg0); RF(L) | | | | 9 Mutex | Store(mx00, Arg0); RF(L) | | | | 10 Operation Region | Store(r000, Arg0); RF(L) | | | | 11 Power Resource | Store(pwr0, Arg0); RF(L) | | | | 12 Processor | Store(prc0, Arg0); RF(L) | | | | 13 Thermal Zone | Store(tz00, Arg0); RF(L) | | | | 14 Buffer Field | Store(bf00, Arg0); RF(L) | e e | + | + + | 15 DDB Handle | Store(HDL, Arg0); RF(L) | | | | 16 Debug Object | Store(Debug,Arg0); RF(L) | | | | --------------------|---------------------------|-----------|-----------|-----------| Examples of I: Store(s000, Arg6) Store(Index(Arg6, 0), Local0) Store(b000, Arg6) Store(Index(Arg6, 0), Local0) Store(p000, Arg6) Store(Index(Arg6, 0), Local0) Examples of IR: Store(s000, Arg6) Store(Index(Arg6, 0, Local1), Local0) Store(b000, Arg6) Store(Index(Arg6, 0, Local1), Local0) Store(p000, Arg6) Store(Index(Arg6, 0, Local1), Local0) Examples of R: Store(i000, Arg6) Store(RefOf(Arg6), Local0) Store(s000, Arg6) Store(RefOf(Arg6), Local0) Store(b000, Arg6) Store(RefOf(Arg6), Local0) Store(p000, Arg6) Store(RefOf(Arg6), Local0) Store(f000, Arg6) Store(RefOf(Arg6), Local0) Store(bkf0, Arg6) Store(RefOf(Arg6), Local0) Store(if00, Arg6) Store(RefOf(Arg6), Local0) Examples of C: Store(i000, Arg6) Store(CondRefOf(Arg6), Local0) Store(s000, Arg6) Store(CondRefOf(Arg6), Local0) Store(b000, Arg6) Store(CondRefOf(Arg6), Local0) Store(p000, Arg6) Store(CondRefOf(Arg6), Local0) Store(f000, Arg6) Store(CondRefOf(Arg6), Local0) Store(bkf0, Arg6) Store(CondRefOf(Arg6), Local0) Store(if00, Arg6) Store(CondRefOf(Arg6), Local0) Examples of CR: Store(i000, Arg6) Store(CondRefOf(Arg6, Local1), Local0) Store(s000, Arg6) Store(CondRefOf(Arg6, Local1), Local0) Store(b000, Arg6) Store(CondRefOf(Arg6, Local1), Local0) Store(p000, Arg6) Store(CondRefOf(Arg6, Local1), Local0) Store(f000, Arg6) Store(CondRefOf(Arg6, Local1), Local0) Store(bkf0, Arg6) Store(CondRefOf(Arg6, Local1), Local0) Store(if00, Arg6) Store(CondRefOf(Arg6, Local1), Local0) B. ALL THE LEGAL WAYS TO USE REFERENCES The ways of using the RefOf and Index References are comprehensively specified and commented in the test specification (see file SPEC2). acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/MAIN.asl0000700000175000017500000000475014773714156030146 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("reference", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/common/data.asl") Include ("../../../../runtime/common/dataproc.asl") Include ("../../../../runtime/common/datastproc.asl") Include ("../../../../runtime/common/operations.asl") Include ("../../../../runtime/collections/functional/reference/DECL.asl") /* Include("../../../../runtime/collections/IMPL/ACPICA/common/icommon.asl") */ Method (M1A8, 3, NotSerialized) { Debug = "It is implemented in exc_ref.asl, not used here" } Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/reference/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref02.asl0000700000175000017500000017226714773714156030351 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * References * * TABLE 5: all the legal ways to generate references to LocalX * * Producing Reference operators: * * Index, RefOf, CondRefOf */ Name (Z078, 0x4E) /* /////////////////////////////////////////////////////////////////////////// */ /* */ /* TABLE 5: all the legal ways to generate references to LocalX */ /* */ /* /////////////////////////////////////////////////////////////////////////// */ /* m169,m190 */ Method (M170, 0, NotSerialized) { If (Y100) { TS00 ("m170") } Else { Debug = "m170" } /* T5:I2-I4 */ /* Computational Data */ Local7 = S900 /* \S900 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x31, __LINE__) Local7 = S901 /* \S901 */ Store (Local7 [0x02], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x72, __LINE__) Local7 = B900 /* \B900 */ Store (Local7 [0x03], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0xB3, __LINE__) /* Elements of Package are Uninitialized */ If (Y104) { Local7 = P900 /* \P900 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C008, Ones, 0x04) } /* Elements of Package are Computational Data */ Local7 = P901 /* \P901 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xABCD0004, __LINE__) Local7 = P901 /* \P901 */ Store (Local7 [0x01], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x1122334455660005, __LINE__) Local7 = P902 /* \P902 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340006", __LINE__) Local7 = P902 /* \P902 */ Store (Local7 [0x01], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Local7 = P903 /* \P903 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop0008", __LINE__) Local7 = P903 /* \P903 */ Store (Local7 [0x01], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "1234567890abdef0250009", __LINE__) Local7 = P904 /* \P904 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x0B) Local7 = P905 /* \P905 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x0ABC000A, __LINE__) Local7 = P905 /* \P905 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "0xabc000b", __LINE__) Local7 = P906 /* \P906 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "abc000d", __LINE__) Local7 = P907 /* \P907 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "aqwevbgnm000e", __LINE__) Local7 = P908 /* \P908 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x10) Local7 = P909 /* \P909 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000F, __LINE__) Local7 = P90A /* \P90A */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "12340010", __LINE__) Local7 = P90B /* \P90B */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "zxswefas0011", __LINE__) Local7 = P90C /* \P90C */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x14) Local7 = P90D /* \P90D */ Store (Local7 [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Local7 = P90E /* \P90E */ Store (Local7 [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Local7 = P90F /* \P90F */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Local7 = P910 /* \P910 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Local7 = P911 /* \P911 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x19) If (Y118) { Local7 = P912 /* \P912 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local7 = P913 /* \P913 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local7 = P914 /* \P914 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local7 = P915 /* \P915 */ Store (Local7 [0x00], Local0) M1A2 (Local0, C016, 0x00, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Local7 = P916 /* \P916 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C00E, Ones, 0x1E) Local7 = P917 /* \P917 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C00F, Ones, 0x1F) Local7 = P918 /* \P918 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C011, Ones, 0x20) Local7 = P919 /* \P919 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C012, Ones, 0x21) Local7 = P91A /* \P91A */ Store (Local7 [0x00], Local0) M1A0 (Local0, C013, Ones, 0x22) Local7 = P91B /* \P91B */ Store (Local7 [0x00], Local0) M1A0 (Local0, C014, Ones, 0x23) Local7 = P91C /* \P91C */ Store (Local7 [0x00], Local0) M1A0 (Local0, C015, Ones, 0x24) /* Elements of Package are Methods */ If (Y105) { Local7 = P91D /* \P91D */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x25) Local7 = P91E /* \P91E */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x26) Local7 = P91F /* \P91F */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x27) Local7 = P920 /* \P920 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x28) Local7 = P921 /* \P921 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x29) Local7 = P922 /* \P922 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2A) Local7 = P923 /* \P923 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2B) Local7 = P924 /* \P924 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2C) Local7 = P925 /* \P925 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2D) Local7 = P926 /* \P926 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2E) Local7 = P927 /* \P927 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2F) Local7 = P928 /* \P928 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x30) Local7 = P929 /* \P929 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x31) Local7 = P92A /* \P92A */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x32) Local7 = P92B /* \P92B */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x33) Local7 = P92C /* \P92C */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x34) Local7 = P92D /* \P92D */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x35) Local7 = P92E /* \P92E */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x36) Local7 = P92F /* \P92F */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x37) Local7 = P930 /* \P930 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x38) Local7 = P931 /* \P931 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x39) Local7 = P932 /* \P932 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3A) Local7 = P933 /* \P933 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3B) Local7 = P934 /* \P934 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3C) If (Y103) { Local7 = P935 /* \P935 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3D) } Local7 = P936 /* \P936 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3E) Local7 = P937 /* \P937 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3F) Local7 = P938 /* \P938 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x40) Local7 = P939 /* \P939 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x41) Local7 = P93A /* \P93A */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x42) Local7 = P93B /* \P93B */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x43) Local7 = P93C /* \P93C */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x44) Local7 = P93D /* \P93D */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x45) Local7 = P93E /* \P93E */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x46) Local7 = P93F /* \P93F */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x47) Local7 = P940 /* \P940 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x48) Local7 = P941 /* \P941 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x49) Local7 = P942 /* \P942 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4A) Local7 = P943 /* \P943 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4B) Local7 = P944 /* \P944 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4C) Local7 = P945 /* \P945 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4D) Local7 = P946 /* \P946 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4E) Local7 = P947 /* \P947 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4F) Local7 = P948 /* \P948 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x50) Local7 = P949 /* \P949 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x51) Local7 = P94A /* \P94A */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x52) Local7 = P94B /* \P94B */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x53) Local7 = P94C /* \P94C */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x54) Local7 = P94D /* \P94D */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x55) Local7 = P94E /* \P94E */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x56) Local7 = P94F /* \P94F */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x57) Local7 = P950 /* \P950 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x58) Local7 = P951 /* \P951 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x59) Local7 = P952 /* \P952 */ Store (Local7 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x5A) } /* T5:IR2-IR4 */ /* Computational Data */ Local7 = S900 /* \S900 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C016, 0x00, 0x00, C009, 0x31, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x31, __LINE__) Local7 = S901 /* \S901 */ Local0 = Local1 = Local7 [0x02] M1A2 (Local0, C016, 0x00, 0x00, C009, 0x72, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x72, __LINE__) Local7 = B900 /* \B900 */ Local0 = Local1 = Local7 [0x04] M1A2 (Local0, C016, 0x00, 0x00, C009, 0xB4, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0xB4, __LINE__) /* Elements of Package are Uninitialized */ If (Y104) { Local7 = P900 /* \P900 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C008, Ones, 0x61) M1A0 (Local1, C008, Ones, 0x62) } /* Elements of Package are Computational Data */ Local7 = P901 /* \P901 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xABCD0004, __LINE__) Local7 = P901 /* \P901 */ Local0 = Local1 = Local7 [0x01] M1A2 (Local0, C009, 0x00, 0x00, C009, 0x1122334455660005, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0x1122334455660005, __LINE__) Local7 = P902 /* \P902 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340006", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12340006", __LINE__) Local7 = P902 /* \P902 */ Local0 = Local1 = Local7 [0x01] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Local7 = P903 /* \P903 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyuiop0008", __LINE__) Local7 = P903 /* \P903 */ Local0 = Local1 = Local7 [0x01] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "1234567890abdef0250009", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "1234567890abdef0250009", __LINE__) Local7 = P904 /* \P904 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x6F) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x70) Local7 = P905 /* \P905 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0x0ABC000A, __LINE__) Local7 = P905 /* \P905 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00C, 0x01, 0x01, C00A, "0xabc000b", __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C00A, "0xabc000b", __LINE__) Local7 = P906 /* \P906 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00A, "abc000d", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "abc000d", __LINE__) Local7 = P907 /* \P907 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00A, "aqwevbgnm000e", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "aqwevbgnm000e", __LINE__) Local7 = P908 /* \P908 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x79) M1A2 (Local1, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x7A) Local7 = P909 /* \P909 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000F, __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C009, 0x0ABC000F, __LINE__) Local7 = P90A /* \P90A */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00A, "12340010", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "12340010", __LINE__) Local7 = P90B /* \P90B */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00A, "zxswefas0011", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "zxswefas0011", __LINE__) Local7 = P90C /* \P90C */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x81) M1A2 (Local1, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x82) Local7 = P90D /* \P90D */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Local7 = P90E /* \P90E */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Local7 = P90F /* \P90F */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Local7 = P910 /* \P910 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Local7 = P911 /* \P911 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x8B) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x8C) If (Y118) { Local7 = P912 /* \P912 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local7 = P913 /* \P913 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local7 = P914 /* \P914 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local7 = P915 /* \P915 */ Local0 = Local1 = Local7 [0x00] M1A2 (Local0, C016, 0x00, 0x00, C016, 0xB0, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Local7 = P916 /* \P916 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C00E, Ones, 0x95) M1A0 (Local1, C00E, Ones, 0x96) Local7 = P917 /* \P917 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C00F, Ones, 0x97) M1A0 (Local1, C00F, Ones, 0x98) Local7 = P918 /* \P918 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C011, Ones, 0x99) M1A0 (Local1, C011, Ones, 0x9A) Local7 = P919 /* \P919 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C012, Ones, 0x9B) M1A0 (Local1, C012, Ones, 0x9C) Local7 = P91A /* \P91A */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C013, Ones, 0x9D) M1A0 (Local1, C013, Ones, 0x9E) Local7 = P91B /* \P91B */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C014, Ones, 0x9F) M1A0 (Local1, C014, Ones, 0xA0) Local7 = P91C /* \P91C */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C015, Ones, 0xA1) M1A0 (Local1, C015, Ones, 0xA2) /* Elements of Package are Methods */ If (Y105) { Local7 = P91D /* \P91D */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xA3) M1A0 (Local1, C010, Ones, 0xA4) Local7 = P91E /* \P91E */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xA5) M1A0 (Local1, C010, Ones, 0xA6) Local7 = P91F /* \P91F */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xA7) M1A0 (Local1, C010, Ones, 0xA8) Local7 = P920 /* \P920 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xA9) M1A0 (Local1, C010, Ones, 0xAA) Local7 = P921 /* \P921 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xAB) M1A0 (Local1, C010, Ones, 0xAC) Local7 = P922 /* \P922 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xAD) M1A0 (Local1, C010, Ones, 0xAE) Local7 = P923 /* \P923 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xAF) M1A0 (Local1, C010, Ones, 0xB0) Local7 = P924 /* \P924 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xB1) M1A0 (Local1, C010, Ones, 0xB2) Local7 = P925 /* \P925 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xB3) M1A0 (Local1, C010, Ones, 0xB4) Local7 = P926 /* \P926 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xB5) M1A0 (Local1, C010, Ones, 0xB6) Local7 = P927 /* \P927 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xB7) M1A0 (Local1, C010, Ones, 0xB8) Local7 = P928 /* \P928 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xB9) M1A0 (Local1, C010, Ones, 0xBA) Local7 = P929 /* \P929 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xBB) M1A0 (Local1, C010, Ones, 0xBC) Local7 = P92A /* \P92A */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xBD) M1A0 (Local1, C010, Ones, 0xBE) Local7 = P92B /* \P92B */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xBF) M1A0 (Local1, C010, Ones, 0xC0) Local7 = P92C /* \P92C */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xC1) M1A0 (Local1, C010, Ones, 0xC2) Local7 = P92D /* \P92D */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xC3) M1A0 (Local1, C010, Ones, 0xC4) Local7 = P92E /* \P92E */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xC5) M1A0 (Local1, C010, Ones, 0xC6) Local7 = P92F /* \P92F */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xC7) M1A0 (Local1, C010, Ones, 0xC8) Local7 = P930 /* \P930 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xC9) M1A0 (Local1, C010, Ones, 0xCA) Local7 = P931 /* \P931 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xCB) M1A0 (Local1, C010, Ones, 0xCC) Local7 = P932 /* \P932 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xCD) M1A0 (Local1, C010, Ones, 0xCE) Local7 = P933 /* \P933 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xCF) M1A0 (Local1, C010, Ones, 0xD0) Local7 = P934 /* \P934 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xD1) M1A0 (Local1, C010, Ones, 0xD2) If (Y103) { Local7 = P935 /* \P935 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xD3) M1A0 (Local1, C010, Ones, 0xD4) } Local7 = P936 /* \P936 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xD5) M1A0 (Local1, C010, Ones, 0xD6) Local7 = P937 /* \P937 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xD7) M1A0 (Local1, C010, Ones, 0xD8) Local7 = P938 /* \P938 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xD9) M1A0 (Local1, C010, Ones, 0xDA) Local7 = P939 /* \P939 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xDB) M1A0 (Local1, C010, Ones, 0xDC) Local7 = P93A /* \P93A */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xDD) M1A0 (Local1, C010, Ones, 0xDE) Local7 = P93B /* \P93B */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xDF) M1A0 (Local1, C010, Ones, 0xE0) Local7 = P93C /* \P93C */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xE1) M1A0 (Local1, C010, Ones, 0xE2) Local7 = P93D /* \P93D */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xE3) M1A0 (Local1, C010, Ones, 0xE4) Local7 = P93E /* \P93E */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xE5) M1A0 (Local1, C010, Ones, 0xE6) Local7 = P93F /* \P93F */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xE7) M1A0 (Local1, C010, Ones, 0xE8) Local7 = P940 /* \P940 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xE9) M1A0 (Local1, C010, Ones, 0xEA) Local7 = P941 /* \P941 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xEB) M1A0 (Local1, C010, Ones, 0xEC) Local7 = P942 /* \P942 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xED) M1A0 (Local1, C010, Ones, 0xEE) Local7 = P943 /* \P943 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xEF) M1A0 (Local1, C010, Ones, 0xF0) Local7 = P944 /* \P944 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xF1) M1A0 (Local1, C010, Ones, 0xF2) Local7 = P945 /* \P945 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xF3) M1A0 (Local1, C010, Ones, 0xF4) Local7 = P946 /* \P946 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xF5) M1A0 (Local1, C010, Ones, 0xF6) Local7 = P947 /* \P947 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xF7) M1A0 (Local1, C010, Ones, 0xF8) Local7 = P948 /* \P948 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xF9) M1A0 (Local1, C010, Ones, 0xFA) Local7 = P949 /* \P949 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xFB) M1A0 (Local1, C010, Ones, 0xFC) Local7 = P94A /* \P94A */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xFD) M1A0 (Local1, C010, Ones, 0xFE) Local7 = P94B /* \P94B */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0xFF) M1A0 (Local1, C010, Ones, 0x0100) Local7 = P94C /* \P94C */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0x0101) M1A0 (Local1, C010, Ones, 0x0102) Local7 = P94D /* \P94D */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0x0103) M1A0 (Local1, C010, Ones, 0x0104) Local7 = P94E /* \P94E */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0x0105) M1A0 (Local1, C010, Ones, 0x0106) Local7 = P94F /* \P94F */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0x0107) M1A0 (Local1, C010, Ones, 0x0108) Local7 = P950 /* \P950 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0x0109) M1A0 (Local1, C010, Ones, 0x010A) Local7 = P951 /* \P951 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0x010B) M1A0 (Local1, C010, Ones, 0x010C) Local7 = P952 /* \P952 */ Local0 = Local1 = Local7 [0x00] M1A0 (Local0, C010, Ones, 0x010D) M1A0 (Local1, C010, Ones, 0x010E) } M1A6 () } /* m16a,m191 */ /* arg1 - writing mode */ Method (M171, 2, NotSerialized) { If (Y100) { TS00 ("m171") } Else { Debug = "m171" } /* T5:R0-R5,R14 */ /* Uninitialized Local */ If (Arg0) { Local7 = 0x00 } Local0 = RefOf (Local7) M1A0 (Local0, C008, Ones, 0x03E8) /* Computational Data */ Local7 = I900 /* \I900 */ Local0 = RefOf (Local7) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Local7 = I901 /* \I901 */ Local0 = RefOf (Local7) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Local7 = S900 /* \S900 */ Local0 = RefOf (Local7) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Local7 = S901 /* \S901 */ Local0 = RefOf (Local7) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Local7 = B900 /* \B900 */ Local0 = RefOf (Local7) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0113) /* Not Computational Data */ /* Package */ Local7 = P953 /* \P953 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0018, __LINE__) If (Arg1) { /* Data are unchanged, because writings were made */ /* into the new objects associated with Local7. */ M1A6 () Return (Zero) } /* Computational Data (Field Unit and Buffer Field) */ Local7 = F900 /* \F900 */ Local0 = RefOf (Local7) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) Local7 = BN90 /* \BN90 */ Local0 = RefOf (Local7) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) Local7 = IF90 /* \IF90 */ Local0 = RefOf (Local7) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) Local7 = BF90 /* \BF90 */ Local0 = RefOf (Local7) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer(){0xB0}, __LINE__) /* Elements of Package are Uninitialized */ Local7 = P900 /* \P900 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x011F) /* Elements of Package are Computational Data */ Local7 = P901 /* \P901 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) Local7 = P902 /* \P902 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Local7 = P903 /* \P903 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) Local7 = P904 /* \P904 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x0126) Local7 = P905 /* \P905 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) Local7 = P906 /* \P906 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) Local7 = P907 /* \P907 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) Local7 = P908 /* \P908 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x012B) Local7 = P909 /* \P909 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) Local7 = P90A /* \P90A */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) Local7 = P90B /* \P90B */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) Local7 = P90C /* \P90C */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x012F) Local7 = P90D /* \P90D */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Local7 = P90E /* \P90E */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) Local7 = P90F /* \P90F */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) Local7 = P910 /* \P910 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) Local7 = P911 /* \P911 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0134) If (Y118) { Local7 = P912 /* \P912 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local7 = P913 /* \P913 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local7 = P914 /* \P914 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local7 = P915 /* \P915 */ Local0 = RefOf (Local7) M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Local7 = P916 /* \P916 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0139) Local7 = P917 /* \P917 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x013A) Local7 = P918 /* \P918 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x013B) Local7 = P919 /* \P919 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x013C) Local7 = P91A /* \P91A */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x013D) Local7 = P91B /* \P91B */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x013E) Local7 = P91C /* \P91C */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x013F) /* Elements of Package are Methods */ Local7 = P91D /* \P91D */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0140) Local7 = P91E /* \P91E */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0141) Local7 = P91F /* \P91F */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0142) Local7 = P920 /* \P920 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0143) Local7 = P921 /* \P921 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0144) Local7 = P922 /* \P922 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0145) Local7 = P923 /* \P923 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0146) Local7 = P924 /* \P924 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0147) Local7 = P925 /* \P925 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0148) Local7 = P926 /* \P926 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0149) Local7 = P927 /* \P927 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x014A) Local7 = P928 /* \P928 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x014B) Local7 = P929 /* \P929 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x014C) Local7 = P92A /* \P92A */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x014D) Local7 = P92B /* \P92B */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x014E) Local7 = P92C /* \P92C */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x014F) Local7 = P92D /* \P92D */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0150) Local7 = P92E /* \P92E */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0151) Local7 = P92F /* \P92F */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0152) Local7 = P930 /* \P930 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0153) Local7 = P931 /* \P931 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0154) Local7 = P932 /* \P932 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0155) Local7 = P933 /* \P933 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0156) Local7 = P934 /* \P934 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0157) Local7 = P935 /* \P935 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0158) Local7 = P936 /* \P936 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0159) Local7 = P937 /* \P937 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x015A) Local7 = P938 /* \P938 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x015B) Local7 = P939 /* \P939 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x015C) Local7 = P93A /* \P93A */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x015D) Local7 = P93B /* \P93B */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x015E) Local7 = P93C /* \P93C */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x015F) Local7 = P93D /* \P93D */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0160) Local7 = P93E /* \P93E */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0161) Local7 = P93F /* \P93F */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0162) Local7 = P940 /* \P940 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0163) Local7 = P941 /* \P941 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0164) Local7 = P942 /* \P942 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0165) Local7 = P943 /* \P943 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0166) Local7 = P944 /* \P944 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0167) Local7 = P945 /* \P945 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0168) Local7 = P946 /* \P946 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0169) Local7 = P947 /* \P947 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x016A) Local7 = P948 /* \P948 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x016B) Local7 = P949 /* \P949 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x016C) Local7 = P94A /* \P94A */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x016D) Local7 = P94B /* \P94B */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x016E) Local7 = P94C /* \P94C */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x016F) Local7 = P94D /* \P94D */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0170) Local7 = P94E /* \P94E */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0171) Local7 = P94F /* \P94F */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0172) Local7 = P950 /* \P950 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0173) Local7 = P951 /* \P951 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0174) Local7 = P952 /* \P952 */ Local0 = RefOf (Local7) M1A0 (Local0, C00C, Ones, 0x0175) M1A6 () Return (Zero) } /* m16c,m193 */ /* arg1 - writing mode */ Method (M172, 2, NotSerialized) { If (Y100) { TS00 ("m172") } Else { Debug = "m172" } /* T5:CR0-CR5,CR14 */ /* Uninitialized Local */ If (Arg0) { Local7 = 0x00 } Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x024D)) { M1A0 (Local0, C008, Ones, 0x024E) } /* Computational Data */ Local7 = I900 /* \I900 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x024F)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) } Local7 = I901 /* \I901 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0251)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) } Local7 = S900 /* \S900 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0253)) { M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) } Local7 = S901 /* \S901 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0255)) { M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) } Local7 = B900 /* \B900 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0257)) { M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0258) } /* Not Computational Data */ /* Package */ Local7 = P953 /* \P953 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x03F2)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0018, __LINE__) } If (Arg1) { /* Data are unchanged, because writings were made */ /* into the new objects associated with Local7. */ M1A6 () Return (Zero) } /* Computational Data (Field Unit and Buffer Field) */ Local7 = F900 /* \F900 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0259)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) } Local7 = BN90 /* \BN90 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x025B)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) } Local7 = IF90 /* \IF90 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x025D)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0x00, __LINE__) } Local7 = BF90 /* \BF90 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x025F)) { M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer(){0xB0}, __LINE__) } /* Elements of Package are Uninitialized */ Local7 = P900 /* \P900 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x0268) /* Elements of Package are Computational Data */ Local7 = P901 /* \P901 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0269)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) } Local7 = P902 /* \P902 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x026C)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) } Local7 = P903 /* \P903 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x026F)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) } Local7 = P904 /* \P904 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0272)) { M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x0273) } Local7 = P905 /* \P905 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0274)) { M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) } Local7 = P906 /* \P906 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0277)) { M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) } Local7 = P907 /* \P907 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0279)) { M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) } Local7 = P908 /* \P908 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x027B)) { M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x027C) } Local7 = P909 /* \P909 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x027D)) { M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) } Local7 = P90A /* \P90A */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x027F)) { M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) } Local7 = P90B /* \P90B */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0281)) { M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) } Local7 = P90C /* \P90C */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0283)) { M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x0284) } Local7 = P90D /* \P90D */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0285)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) } Local7 = P90E /* \P90E */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0287)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) } Local7 = P90F /* \P90F */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0289)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) } Local7 = P910 /* \P910 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x028B)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) } Local7 = P911 /* \P911 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x028D)) { M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x028E) } If (Y118) { Local7 = P912 /* \P912 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x028F)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Local7 = P913 /* \P913 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0291)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Local7 = P914 /* \P914 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0293)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Local7 = P915 /* \P915 */ Local1 = CondRefOf (Local7, Local0) If (M1A4 (Local1, 0x0295)) { M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) } } /* Elements of Package are NOT Computational Data */ Local7 = P916 /* \P916 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x0297) Local7 = P917 /* \P917 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x0298) Local7 = P918 /* \P918 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x19FF) Local7 = P919 /* \P919 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x029A) Local7 = P91A /* \P91A */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x029B) Local7 = P91B /* \P91B */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x029C) Local7 = P91C /* \P91C */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x029D) /* Elements of Package are Methods */ Local7 = P91D /* \P91D */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x029E) Local7 = P91E /* \P91E */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x029F) Local7 = P91F /* \P91F */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A0) Local7 = P920 /* \P920 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A1) Local7 = P921 /* \P921 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A2) Local7 = P922 /* \P922 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A3) Local7 = P923 /* \P923 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A4) Local7 = P924 /* \P924 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A5) Local7 = P925 /* \P925 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A6) Local7 = P926 /* \P926 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A7) Local7 = P927 /* \P927 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A8) Local7 = P928 /* \P928 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02A9) Local7 = P929 /* \P929 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02AA) Local7 = P92A /* \P92A */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02AB) Local7 = P92B /* \P92B */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02AC) Local7 = P92C /* \P92C */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02AD) Local7 = P92D /* \P92D */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02AE) Local7 = P92E /* \P92E */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02AF) Local7 = P92F /* \P92F */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B0) Local7 = P930 /* \P930 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B1) Local7 = P931 /* \P931 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B2) Local7 = P932 /* \P932 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B3) Local7 = P933 /* \P933 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B4) Local7 = P934 /* \P934 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B5) Local7 = P935 /* \P935 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B6) Local7 = P936 /* \P936 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B7) Local7 = P937 /* \P937 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B8) Local7 = P938 /* \P938 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02B9) Local7 = P939 /* \P939 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02BA) Local7 = P93A /* \P93A */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02BB) Local7 = P93B /* \P93B */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02BC) Local7 = P93C /* \P93C */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02BD) Local7 = P93D /* \P93D */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02BE) Local7 = P93E /* \P93E */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02BF) Local7 = P93F /* \P93F */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C0) Local7 = P940 /* \P940 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C1) Local7 = P941 /* \P941 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C2) Local7 = P942 /* \P942 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C3) Local7 = P943 /* \P943 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C4) Local7 = P944 /* \P944 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C5) Local7 = P945 /* \P945 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C6) Local7 = P946 /* \P946 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C7) Local7 = P947 /* \P947 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C8) Local7 = P948 /* \P948 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02C9) Local7 = P949 /* \P949 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02CA) Local7 = P94A /* \P94A */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02CB) Local7 = P94B /* \P94B */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02CC) Local7 = P94C /* \P94C */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02CD) Local7 = P94D /* \P94D */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02CE) Local7 = P94E /* \P94E */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02CF) Local7 = P94F /* \P94F */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02D0) Local7 = P950 /* \P950 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02D1) Local7 = P951 /* \P951 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02D2) Local7 = P952 /* \P952 */ Local1 = CondRefOf (Local7, Local0) M1A0 (Local0, C00C, Local1, 0x02D3) M1A6 () Return (Zero) } Method (M175, 3, NotSerialized) { C081 = Z078 /* absolute index of file initiating the checking */ /* \Z078 */ C089 = 0x01 /* flag of Reference, object otherwise */ If (Arg0) { M170 () } If (Arg1) { M171 (0x00, C083) } If (Arg2) { M172 (0x00, C083) } } /* The mode with the chain of references to LocalX */ Method (M176, 0, NotSerialized) { C084 = 0x01 /* run verification of references (reading) */ C085 = 0x01 /* create the chain of references to LocalX, then dereference them */ Debug = "The mode with the chain of references to LocalX:" M175 (0x01, 0x01, 0x01) } /* Run-method */ Method (REF2, 0, NotSerialized) { Debug = "TEST: REF2, References" C080 = "REF2" /* name of test */ C082 = 0x00 /* flag of test of exceptions */ C083 = 0x00 /* run verification of references (write/read) */ C086 = 0x00 /* flag, run test till the first error */ C087 = 0x01 /* apply DeRefOf to ArgX-ObjectReference */ M176 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref71.asl0000700000175000017500000001236614773714157030351 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * References * * (exceptions) */ Name (Z109, 0x6D) /* * Check exceptions for unavailable types of Store */ Method (M1B3, 0, Serialized) { C081 = Z109 /* absolute index of file initiating the checking */ /* \Z109 */ Method (M000, 1, NotSerialized) { If (Arg0) { Local7 = 0x00 } CH03 (__METHOD__, Z109, __LINE__, 0x00, 0x00) Local0 = Local7 If (!SLCK) { CH04 (__METHOD__, 0x00, 0xFF, Z109, __LINE__, 0x00, 0x00) } } Method (M901, 0, NotSerialized) { Return (0x0ABC0012) } M000 (0x00) Local0 = I900 /* \I900 */ Local7 = ObjectType (Local0) If ((Local7 != C009)) { ERR (__METHOD__, Z109, __LINE__, 0x00, 0x00, Local7, C009) } Local0 = S900 /* \S900 */ Local7 = ObjectType (Local0) If ((Local7 != C00A)) { ERR (__METHOD__, Z109, __LINE__, 0x00, 0x00, Local7, C00A) } Local0 = B900 /* \B900 */ Local7 = ObjectType (Local0) If ((Local7 != C00B)) { ERR (__METHOD__, Z109, __LINE__, 0x00, 0x00, Local7, C00B) } Local0 = P900 /* \P900 */ Local7 = ObjectType (Local0) If ((Local7 != C00C)) { ERR (__METHOD__, Z109, __LINE__, 0x00, 0x00, Local7, C00C) } Local0 = F900 /* \F900 */ Local7 = ObjectType (Local0) If ((Local7 != C009)) { ERR (__METHOD__, Z109, __LINE__, 0x00, 0x00, Local7, C009) } /* // Removed 09/2015. iASL now disallows these stores CH03(ts, z109, 7, __LINE__, 0) Store(d900, Local0) if (LNot(SLCK)){ CH04(ts, 0, 0xff, z109, __LINE__, 0, 0) } CH03(ts, z109, 9, __LINE__, 0) Store(e900, Local0) if (LNot(SLCK)){ CH04(ts, 0, 0xff, z109, __LINE__, 0, 0) } */ /* * 21.12.2005. * No exception now. * Bug 114: could work improperly by the same reason as Bug 114. * MS compiler allow this situation, iASL compiler just allows this * for compatibility, iASL assume this is compiled to a method * invacation. */ If (X114) { CH03 (__METHOD__, Z109, __LINE__, 0x00, 0x00) Local0 = M901 () /*CH04(ts, 0, 0xff, z109, __LINE__, 0, 0) */ } /* // Removed 09/2015. iASL now disallows these stores CH03(ts, z109, 13, __LINE__, 0) Store(mx90, Local0) if (LNot(SLCK)){ CH04(ts, 0, 0xff, z109, __LINE__, 0, 0) } CH03(ts, z109, 15, __LINE__, 0) Store(r900, Local0) if (LNot(SLCK)){ CH04(ts, 0, 0xff, z109, __LINE__, 0, 0) } CH03(ts, z109, 17, __LINE__, 0) Store(pw90, Local0) if (LNot(SLCK)){ CH04(ts, 0, 0xff, z109, __LINE__, 0, 0) } CH03(ts, z109, 19, __LINE__, 0) Store(pr90, Local0) if (LNot(SLCK)){ CH04(ts, 0, 0xff, z109, __LINE__, 0, 0) } CH03(ts, z109, 21, __LINE__, 0) Store(tz90, Local0) if (LNot(SLCK)) { CH04(ts, 0, 0xff, z109, __LINE__, 0, 0) } */ Local0 = BF90 /* \BF90 */ Local7 = ObjectType (Local0) If ((Local7 != C00B)) { ERR (__METHOD__, Z109, __LINE__, 0x00, 0x00, Local7, C009) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/Makefile0000700000175000017500000000022614773714156030353 0ustar ivanhuivanhu# reference AMLMOD= reference COLL= ../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref04.asl0000700000175000017500000040060714773714156030343 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * References * * (named objects, if present, are the global objects (from DefinitionBlock)) * * TABLE 2: all the legal ways to generate references to the * named objects * TABLE 4: all the legal ways to generate references to the * named objects being elements of Package * * Producing Reference operators: * * Index, RefOf, CondRefOf */ /* ?????????????? SEE: PUT everywhere APPROPREATE arg6 - number of checking for diagnostics !!!!!!!!!!!!!! SEE: add verification of Field Unit (in all files) SEE: run the tests two times - to check that the data are not corrupted SEE: uncomment runs after bug fixing */ Name (Z080, 0x50) /* /////////////////////////////////////////////////////////////////////////// */ /* */ /* TABLE 2: all the legal ways to generate references to the named objects */ /* */ /* /////////////////////////////////////////////////////////////////////////// */ /* m169 but with global data */ Method (M190, 0, NotSerialized) { If (Y100) { TS00 ("m190") } Else { Debug = "m190" } /* T2:I2-I4 */ If (Y114) { /* Remove this after the bug fixing */ Store (M902 () [0x00], Local0) M1A0 (Local0, C010, Ones, 0x00) } /* Computational Data */ Store (S900 [0x00], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x31, __LINE__) Store (S901 [0x02], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0x72, __LINE__) Store (B900 [0x03], Local0) M1A2 (Local0, C016, 0x00, 0x00, C009, 0xB3, __LINE__) /* Elements of Package are Uninitialized */ If (Y104) { Store (P900 [0x00], Local0) M1A0 (Local0, C008, Ones, 0x04) } /* Elements of Package are Computational Data */ Store (P901 [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xABCD0004, __LINE__) Store (P901 [0x01], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0x1122334455660005, __LINE__) Store (P902 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340006", __LINE__) Store (P902 [0x01], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Store (P903 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop0008", __LINE__) Store (P903 [0x01], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "1234567890abdef0250009", __LINE__) Store (P904 [0x00], Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x0B) Store (P905 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x0ABC000A, __LINE__) Store (P905 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "0xabc000b", __LINE__) Store (P906 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "abc000d", __LINE__) Store (P907 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "aqwevbgnm000e", __LINE__) Store (P908 [0x00], Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x10) Store (P909 [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000F, __LINE__) Store (P90A [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "12340010", __LINE__) Store (P90B [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "zxswefas0011", __LINE__) Store (P90C [0x00], Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x14) Store (P90D [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Store (P90E [0x00], Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Store (P90F [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Store (P910 [0x00], Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Store (P911 [0x00], Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x19) If (Y118) { Store (P912 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (P913 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (P914 [0x00], Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (P915 [0x00], Local0) M1A2 (Local0, C016, 0x00, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Store (P916 [0x00], Local0) M1A0 (Local0, C00E, Ones, 0x1E) Store (P917 [0x00], Local0) M1A0 (Local0, C00F, Ones, 0x1F) Store (P918 [0x00], Local0) M1A0 (Local0, C011, Ones, 0x20) Store (P919 [0x00], Local0) M1A0 (Local0, C012, Ones, 0x21) Store (P91A [0x00], Local0) M1A0 (Local0, C013, Ones, 0x22) Store (P91B [0x00], Local0) M1A0 (Local0, C014, Ones, 0x23) Store (P91C [0x00], Local0) M1A0 (Local0, C015, Ones, 0x24) /* Elements of Package are Methods */ If (Y105) { Store (P91D [0x00], Local0) M1A0 (Local0, C010, Ones, 0x25) Store (P91E [0x00], Local0) M1A0 (Local0, C010, Ones, 0x26) Store (P91F [0x00], Local0) M1A0 (Local0, C010, Ones, 0x27) Store (P920 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x28) Store (P921 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x29) Store (P922 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2A) Store (P923 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2B) Store (P924 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2C) Store (P925 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2D) Store (P926 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2E) Store (P927 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x2F) Store (P928 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x30) Store (P929 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x31) Store (P92A [0x00], Local0) M1A0 (Local0, C010, Ones, 0x32) Store (P92B [0x00], Local0) M1A0 (Local0, C010, Ones, 0x33) Store (P92C [0x00], Local0) M1A0 (Local0, C010, Ones, 0x34) Store (P92D [0x00], Local0) M1A0 (Local0, C010, Ones, 0x35) Store (P92E [0x00], Local0) M1A0 (Local0, C010, Ones, 0x36) Store (P92F [0x00], Local0) M1A0 (Local0, C010, Ones, 0x37) Store (P930 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x38) Store (P931 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x39) Store (P932 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3A) Store (P933 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3B) Store (P934 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3C) If (Y103) { Store (P935 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3D) } Store (P936 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3E) Store (P937 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x3F) Store (P938 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x40) Store (P939 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x41) Store (P93A [0x00], Local0) M1A0 (Local0, C010, Ones, 0x42) Store (P93B [0x00], Local0) M1A0 (Local0, C010, Ones, 0x43) Store (P93C [0x00], Local0) M1A0 (Local0, C010, Ones, 0x44) Store (P93D [0x00], Local0) M1A0 (Local0, C010, Ones, 0x45) Store (P93E [0x00], Local0) M1A0 (Local0, C010, Ones, 0x46) Store (P93F [0x00], Local0) M1A0 (Local0, C010, Ones, 0x47) Store (P940 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x48) Store (P941 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x49) Store (P942 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4A) Store (P943 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4B) Store (P944 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4C) Store (P945 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4D) Store (P946 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4E) Store (P947 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x4F) Store (P948 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x50) Store (P949 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x51) Store (P94A [0x00], Local0) M1A0 (Local0, C010, Ones, 0x52) Store (P94B [0x00], Local0) M1A0 (Local0, C010, Ones, 0x53) Store (P94C [0x00], Local0) M1A0 (Local0, C010, Ones, 0x54) Store (P94D [0x00], Local0) M1A0 (Local0, C010, Ones, 0x55) Store (P94E [0x00], Local0) M1A0 (Local0, C010, Ones, 0x56) Store (P94F [0x00], Local0) M1A0 (Local0, C010, Ones, 0x57) Store (P950 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x58) Store (P951 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x59) Store (P952 [0x00], Local0) M1A0 (Local0, C010, Ones, 0x5A) } /* T2:IR2-IR4 */ /* Computational Data */ Local0 = Local1 = S900 [0x00] M1A2 (Local0, C016, 0x00, 0x00, C009, 0x31, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x31, __LINE__) Local0 = Local1 = S901 [0x02] M1A2 (Local0, C016, 0x00, 0x00, C009, 0x72, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0x72, __LINE__) Local0 = Local1 = B900 [0x04] M1A2 (Local0, C016, 0x00, 0x00, C009, 0xB4, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C009, 0xB4, __LINE__) /* Elements of Package are Uninitialized */ If (Y104) { Local0 = Local1 = P900 [0x00] M1A0 (Local0, C008, Ones, 0x61) M1A0 (Local1, C008, Ones, 0x62) } /* Elements of Package are Computational Data */ Local0 = Local1 = P901 [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xABCD0004, __LINE__) Local0 = Local1 = P901 [0x01] M1A2 (Local0, C009, 0x00, 0x00, C009, 0x1122334455660005, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0x1122334455660005, __LINE__) Local0 = Local1 = P902 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340006", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12340006", __LINE__) Local0 = Local1 = P902 [0x01] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Local0 = Local1 = P903 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyuiop0008", __LINE__) Local0 = Local1 = P903 [0x01] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "1234567890abdef0250009", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "1234567890abdef0250009", __LINE__) Local0 = Local1 = P904 [0x00] M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x6F) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x70) Local0 = Local1 = P905 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0x0ABC000A, __LINE__) Local0 = Local1 = P905 [0x00] M1A2 (Local0, C00C, 0x01, 0x01, C00A, "0xabc000b", __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C00A, "0xabc000b", __LINE__) Local0 = Local1 = P906 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00A, "abc000d", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "abc000d", __LINE__) Local0 = Local1 = P907 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00A, "aqwevbgnm000e", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "aqwevbgnm000e", __LINE__) Local0 = Local1 = P908 [0x00] M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x79) M1A2 (Local1, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x7A) Local0 = Local1 = P909 [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000F, __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C009, 0x0ABC000F, __LINE__) Local0 = Local1 = P90A [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00A, "12340010", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "12340010", __LINE__) Local0 = Local1 = P90B [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00A, "zxswefas0011", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "zxswefas0011", __LINE__) Local0 = Local1 = P90C [0x00] M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x81) M1A2 (Local1, C00C, 0x02, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x82) Local0 = Local1 = P90D [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Local0 = Local1 = P90E [0x00] M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Local0 = Local1 = P90F [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Local0 = Local1 = P910 [0x00] M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Local0 = Local1 = P911 [0x00] M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x8B) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x8C) If (Y118) { Local0 = Local1 = P912 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local0 = Local1 = P913 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local0 = Local1 = P914 [0x00] M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local0 = Local1 = P915 [0x00] M1A2 (Local0, C016, 0x00, 0x00, C016, 0xB0, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Local0 = Local1 = P916 [0x00] M1A0 (Local0, C00E, Ones, 0x95) M1A0 (Local1, C00E, Ones, 0x96) Local0 = Local1 = P917 [0x00] M1A0 (Local0, C00F, Ones, 0x97) M1A0 (Local1, C00F, Ones, 0x98) Local0 = Local1 = P918 [0x00] M1A0 (Local0, C011, Ones, 0x99) M1A0 (Local1, C011, Ones, 0x9A) Local0 = Local1 = P919 [0x00] M1A0 (Local0, C012, Ones, 0x9B) M1A0 (Local1, C012, Ones, 0x9C) Local0 = Local1 = P91A [0x00] M1A0 (Local0, C013, Ones, 0x9D) M1A0 (Local1, C013, Ones, 0x9E) Local0 = Local1 = P91B [0x00] M1A0 (Local0, C014, Ones, 0x9F) M1A0 (Local1, C014, Ones, 0xA0) Local0 = Local1 = P91C [0x00] M1A0 (Local0, C015, Ones, 0xA1) M1A0 (Local1, C015, Ones, 0xA2) /* Elements of Package are Methods */ If (Y105) { Local0 = Local1 = P91D [0x00] M1A0 (Local0, C010, Ones, 0xA3) M1A0 (Local1, C010, Ones, 0xA4) Local0 = Local1 = P91E [0x00] M1A0 (Local0, C010, Ones, 0xA5) M1A0 (Local1, C010, Ones, 0xA6) Local0 = Local1 = P91F [0x00] M1A0 (Local0, C010, Ones, 0xA7) M1A0 (Local1, C010, Ones, 0xA8) Local0 = Local1 = P920 [0x00] M1A0 (Local0, C010, Ones, 0xA9) M1A0 (Local1, C010, Ones, 0xAA) Local0 = Local1 = P921 [0x00] M1A0 (Local0, C010, Ones, 0xAB) M1A0 (Local1, C010, Ones, 0xAC) Local0 = Local1 = P922 [0x00] M1A0 (Local0, C010, Ones, 0xAD) M1A0 (Local1, C010, Ones, 0xAE) Local0 = Local1 = P923 [0x00] M1A0 (Local0, C010, Ones, 0xAF) M1A0 (Local1, C010, Ones, 0xB0) Local0 = Local1 = P924 [0x00] M1A0 (Local0, C010, Ones, 0xB1) M1A0 (Local1, C010, Ones, 0xB2) Local0 = Local1 = P925 [0x00] M1A0 (Local0, C010, Ones, 0xB3) M1A0 (Local1, C010, Ones, 0xB4) Local0 = Local1 = P926 [0x00] M1A0 (Local0, C010, Ones, 0xB5) M1A0 (Local1, C010, Ones, 0xB6) Local0 = Local1 = P927 [0x00] M1A0 (Local0, C010, Ones, 0xB7) M1A0 (Local1, C010, Ones, 0xB8) Local0 = Local1 = P928 [0x00] M1A0 (Local0, C010, Ones, 0xB9) M1A0 (Local1, C010, Ones, 0xBA) Local0 = Local1 = P929 [0x00] M1A0 (Local0, C010, Ones, 0xBB) M1A0 (Local1, C010, Ones, 0xBC) Local0 = Local1 = P92A [0x00] M1A0 (Local0, C010, Ones, 0xBD) M1A0 (Local1, C010, Ones, 0xBE) Local0 = Local1 = P92B [0x00] M1A0 (Local0, C010, Ones, 0xBF) M1A0 (Local1, C010, Ones, 0xC0) Local0 = Local1 = P92C [0x00] M1A0 (Local0, C010, Ones, 0xC1) M1A0 (Local1, C010, Ones, 0xC2) Local0 = Local1 = P92D [0x00] M1A0 (Local0, C010, Ones, 0xC3) M1A0 (Local1, C010, Ones, 0xC4) Local0 = Local1 = P92E [0x00] M1A0 (Local0, C010, Ones, 0xC5) M1A0 (Local1, C010, Ones, 0xC6) Local0 = Local1 = P92F [0x00] M1A0 (Local0, C010, Ones, 0xC7) M1A0 (Local1, C010, Ones, 0xC8) Local0 = Local1 = P930 [0x00] M1A0 (Local0, C010, Ones, 0xC9) M1A0 (Local1, C010, Ones, 0xCA) Local0 = Local1 = P931 [0x00] M1A0 (Local0, C010, Ones, 0xCB) M1A0 (Local1, C010, Ones, 0xCC) Local0 = Local1 = P932 [0x00] M1A0 (Local0, C010, Ones, 0xCD) M1A0 (Local1, C010, Ones, 0xCE) Local0 = Local1 = P933 [0x00] M1A0 (Local0, C010, Ones, 0xCF) M1A0 (Local1, C010, Ones, 0xD0) Local0 = Local1 = P934 [0x00] M1A0 (Local0, C010, Ones, 0xD1) M1A0 (Local1, C010, Ones, 0xD2) If (Y103) { Local0 = Local1 = P935 [0x00] M1A0 (Local0, C010, Ones, 0xD3) M1A0 (Local1, C010, Ones, 0xD4) } Local0 = Local1 = P936 [0x00] M1A0 (Local0, C010, Ones, 0xD5) M1A0 (Local1, C010, Ones, 0xD6) Local0 = Local1 = P937 [0x00] M1A0 (Local0, C010, Ones, 0xD7) M1A0 (Local1, C010, Ones, 0xD8) Local0 = Local1 = P938 [0x00] M1A0 (Local0, C010, Ones, 0xD9) M1A0 (Local1, C010, Ones, 0xDA) Local0 = Local1 = P939 [0x00] M1A0 (Local0, C010, Ones, 0xDB) M1A0 (Local1, C010, Ones, 0xDC) Local0 = Local1 = P93A [0x00] M1A0 (Local0, C010, Ones, 0xDD) M1A0 (Local1, C010, Ones, 0xDE) Local0 = Local1 = P93B [0x00] M1A0 (Local0, C010, Ones, 0xDF) M1A0 (Local1, C010, Ones, 0xE0) Local0 = Local1 = P93C [0x00] M1A0 (Local0, C010, Ones, 0xE1) M1A0 (Local1, C010, Ones, 0xE2) Local0 = Local1 = P93D [0x00] M1A0 (Local0, C010, Ones, 0xE3) M1A0 (Local1, C010, Ones, 0xE4) Local0 = Local1 = P93E [0x00] M1A0 (Local0, C010, Ones, 0xE5) M1A0 (Local1, C010, Ones, 0xE6) Local0 = Local1 = P93F [0x00] M1A0 (Local0, C010, Ones, 0xE7) M1A0 (Local1, C010, Ones, 0xE8) Local0 = Local1 = P940 [0x00] M1A0 (Local0, C010, Ones, 0xE9) M1A0 (Local1, C010, Ones, 0xEA) Local0 = Local1 = P941 [0x00] M1A0 (Local0, C010, Ones, 0xEB) M1A0 (Local1, C010, Ones, 0xEC) Local0 = Local1 = P942 [0x00] M1A0 (Local0, C010, Ones, 0xED) M1A0 (Local1, C010, Ones, 0xEE) Local0 = Local1 = P943 [0x00] M1A0 (Local0, C010, Ones, 0xEF) M1A0 (Local1, C010, Ones, 0xF0) Local0 = Local1 = P944 [0x00] M1A0 (Local0, C010, Ones, 0xF1) M1A0 (Local1, C010, Ones, 0xF2) Local0 = Local1 = P945 [0x00] M1A0 (Local0, C010, Ones, 0xF3) M1A0 (Local1, C010, Ones, 0xF4) Local0 = Local1 = P946 [0x00] M1A0 (Local0, C010, Ones, 0xF5) M1A0 (Local1, C010, Ones, 0xF6) Local0 = Local1 = P947 [0x00] M1A0 (Local0, C010, Ones, 0xF7) M1A0 (Local1, C010, Ones, 0xF8) Local0 = Local1 = P948 [0x00] M1A0 (Local0, C010, Ones, 0xF9) M1A0 (Local1, C010, Ones, 0xFA) Local0 = Local1 = P949 [0x00] M1A0 (Local0, C010, Ones, 0xFB) M1A0 (Local1, C010, Ones, 0xFC) Local0 = Local1 = P94A [0x00] M1A0 (Local0, C010, Ones, 0xFD) M1A0 (Local1, C010, Ones, 0xFE) Local0 = Local1 = P94B [0x00] M1A0 (Local0, C010, Ones, 0xFF) M1A0 (Local1, C010, Ones, 0x0100) Local0 = Local1 = P94C [0x00] M1A0 (Local0, C010, Ones, 0x0101) M1A0 (Local1, C010, Ones, 0x0102) Local0 = Local1 = P94D [0x00] M1A0 (Local0, C010, Ones, 0x0103) M1A0 (Local1, C010, Ones, 0x0104) Local0 = Local1 = P94E [0x00] M1A0 (Local0, C010, Ones, 0x0105) M1A0 (Local1, C010, Ones, 0x0106) Local0 = Local1 = P94F [0x00] M1A0 (Local0, C010, Ones, 0x0107) M1A0 (Local1, C010, Ones, 0x0108) Local0 = Local1 = P950 [0x00] M1A0 (Local0, C010, Ones, 0x0109) M1A0 (Local1, C010, Ones, 0x010A) Local0 = Local1 = P951 [0x00] M1A0 (Local0, C010, Ones, 0x010B) M1A0 (Local1, C010, Ones, 0x010C) Local0 = Local1 = P952 [0x00] M1A0 (Local0, C010, Ones, 0x010D) M1A0 (Local1, C010, Ones, 0x010E) } M1A6 () } /* m16a but with global data */ /* arg0 - writing mode */ Method (M191, 1, NotSerialized) { If (Y100) { TS00 ("m191") } Else { Debug = "m191" } /* T2:R1-R14 */ /* Computational Data */ Local0 = RefOf (I900) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Local0 = RefOf (I901) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Local0 = RefOf (S900) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Local0 = RefOf (S901) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Local0 = RefOf (B900) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0113) /* Not Computational Data */ Local0 = RefOf (E900) M1A0 (Local0, C00F, Ones, 0x0118) Local0 = RefOf (MX90) M1A0 (Local0, C011, Ones, 0x0119) Local0 = RefOf (D900) M1A0 (Local0, C00E, Ones, 0x011A) If (Arg0) { If (Y508) { Local0 = RefOf (TZ90) M1A0 (Local0, C015, Ones, 0x011B) } } Else { Local0 = RefOf (TZ90) M1A0 (Local0, C015, Ones, 0x011B) } Local0 = RefOf (PR90) M1A0 (Local0, C014, Ones, 0x011C) If (Arg0) { If (Y510) { Local0 = RefOf (R900) M1A0 (Local0, C012, Ones, 0x011D) } } Else { Local0 = RefOf (R900) M1A0 (Local0, C012, Ones, 0x03EA) } Local0 = RefOf (PW90) M1A0 (Local0, C013, Ones, 0x011E) /* Package */ Local0 = RefOf (P953) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0018, __LINE__) If (Arg0) { M1AB () Return (Zero) } /* Computational Data (Field Unit and Buffer Field) */ Local0 = RefOf (F900) M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) Local0 = RefOf (BN90) M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) Local0 = RefOf (IF90) M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) Local0 = RefOf (BF90) M1A2 (Local0, C016, 0x00, 0x00, C00B, Buffer(){0xB0}, __LINE__) /* Elements of Package are Uninitialized */ Local0 = RefOf (P900) M1A0 (Local0, C00C, Ones, 0x011F) /* Elements of Package are Computational Data */ Local0 = RefOf (P901) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) Local0 = RefOf (P902) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Local0 = RefOf (P903) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) Local0 = RefOf (P904) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x0126) Local0 = RefOf (P905) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) Local0 = RefOf (P906) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) Local0 = RefOf (P907) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) Local0 = RefOf (P908) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x012B) Local0 = RefOf (P909) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) Local0 = RefOf (P90A) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) Local0 = RefOf (P90B) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) Local0 = RefOf (P90C) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x012F) Local0 = RefOf (P90D) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Local0 = RefOf (P90E) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) Local0 = RefOf (P90F) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) Local0 = RefOf (P910) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) Local0 = RefOf (P911) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0134) If (Y118) { Local0 = RefOf (P912) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = RefOf (P913) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = RefOf (P914) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = RefOf (P915) M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Local0 = RefOf (P916) M1A0 (Local0, C00C, Ones, 0x0139) Local0 = RefOf (P917) M1A0 (Local0, C00C, Ones, 0x013A) Local0 = RefOf (P918) M1A0 (Local0, C00C, Ones, 0x013B) Local0 = RefOf (P919) M1A0 (Local0, C00C, Ones, 0x013C) Local0 = RefOf (P91A) M1A0 (Local0, C00C, Ones, 0x013D) Local0 = RefOf (P91B) M1A0 (Local0, C00C, Ones, 0x013E) Local0 = RefOf (P91C) M1A0 (Local0, C00C, Ones, 0x013F) /* Elements of Package are Methods */ Local0 = RefOf (P91D) M1A0 (Local0, C00C, Ones, 0x0140) Local0 = RefOf (P91E) M1A0 (Local0, C00C, Ones, 0x0141) Local0 = RefOf (P91F) M1A0 (Local0, C00C, Ones, 0x0142) Local0 = RefOf (P920) M1A0 (Local0, C00C, Ones, 0x0143) Local0 = RefOf (P921) M1A0 (Local0, C00C, Ones, 0x0144) Local0 = RefOf (P922) M1A0 (Local0, C00C, Ones, 0x0145) Local0 = RefOf (P923) M1A0 (Local0, C00C, Ones, 0x0146) Local0 = RefOf (P924) M1A0 (Local0, C00C, Ones, 0x0147) Local0 = RefOf (P925) M1A0 (Local0, C00C, Ones, 0x0148) Local0 = RefOf (P926) M1A0 (Local0, C00C, Ones, 0x0149) Local0 = RefOf (P927) M1A0 (Local0, C00C, Ones, 0x014A) Local0 = RefOf (P928) M1A0 (Local0, C00C, Ones, 0x014B) Local0 = RefOf (P929) M1A0 (Local0, C00C, Ones, 0x014C) Local0 = RefOf (P92A) M1A0 (Local0, C00C, Ones, 0x014D) Local0 = RefOf (P92B) M1A0 (Local0, C00C, Ones, 0x014E) Local0 = RefOf (P92C) M1A0 (Local0, C00C, Ones, 0x014F) Local0 = RefOf (P92D) M1A0 (Local0, C00C, Ones, 0x0150) Local0 = RefOf (P92E) M1A0 (Local0, C00C, Ones, 0x0151) Local0 = RefOf (P92F) M1A0 (Local0, C00C, Ones, 0x0152) Local0 = RefOf (P930) M1A0 (Local0, C00C, Ones, 0x0153) Local0 = RefOf (P931) M1A0 (Local0, C00C, Ones, 0x0154) Local0 = RefOf (P932) M1A0 (Local0, C00C, Ones, 0x0155) Local0 = RefOf (P933) M1A0 (Local0, C00C, Ones, 0x0156) Local0 = RefOf (P934) M1A0 (Local0, C00C, Ones, 0x0157) Local0 = RefOf (P935) M1A0 (Local0, C00C, Ones, 0x0158) Local0 = RefOf (P936) M1A0 (Local0, C00C, Ones, 0x0159) Local0 = RefOf (P937) M1A0 (Local0, C00C, Ones, 0x015A) Local0 = RefOf (P938) M1A0 (Local0, C00C, Ones, 0x015B) Local0 = RefOf (P939) M1A0 (Local0, C00C, Ones, 0x015C) Local0 = RefOf (P93A) M1A0 (Local0, C00C, Ones, 0x015D) Local0 = RefOf (P93B) M1A0 (Local0, C00C, Ones, 0x015E) Local0 = RefOf (P93C) M1A0 (Local0, C00C, Ones, 0x015F) Local0 = RefOf (P93D) M1A0 (Local0, C00C, Ones, 0x0160) Local0 = RefOf (P93E) M1A0 (Local0, C00C, Ones, 0x0161) Local0 = RefOf (P93F) M1A0 (Local0, C00C, Ones, 0x0162) Local0 = RefOf (P940) M1A0 (Local0, C00C, Ones, 0x0163) Local0 = RefOf (P941) M1A0 (Local0, C00C, Ones, 0x0164) Local0 = RefOf (P942) M1A0 (Local0, C00C, Ones, 0x0165) Local0 = RefOf (P943) M1A0 (Local0, C00C, Ones, 0x0166) Local0 = RefOf (P944) M1A0 (Local0, C00C, Ones, 0x0167) Local0 = RefOf (P945) M1A0 (Local0, C00C, Ones, 0x0168) Local0 = RefOf (P946) M1A0 (Local0, C00C, Ones, 0x0169) Local0 = RefOf (P947) M1A0 (Local0, C00C, Ones, 0x016A) Local0 = RefOf (P948) M1A0 (Local0, C00C, Ones, 0x016B) Local0 = RefOf (P949) M1A0 (Local0, C00C, Ones, 0x016C) Local0 = RefOf (P94A) M1A0 (Local0, C00C, Ones, 0x016D) Local0 = RefOf (P94B) M1A0 (Local0, C00C, Ones, 0x016E) Local0 = RefOf (P94C) M1A0 (Local0, C00C, Ones, 0x016F) Local0 = RefOf (P94D) M1A0 (Local0, C00C, Ones, 0x0170) Local0 = RefOf (P94E) M1A0 (Local0, C00C, Ones, 0x0171) Local0 = RefOf (P94F) M1A0 (Local0, C00C, Ones, 0x0172) Local0 = RefOf (P950) M1A0 (Local0, C00C, Ones, 0x0173) Local0 = RefOf (P951) M1A0 (Local0, C00C, Ones, 0x0174) Local0 = RefOf (P952) M1A0 (Local0, C00C, Ones, 0x0175) /* Methods */ Local0 = RefOf (M900) M1A0 (Local0, C010, Ones, 0x0176) Local0 = RefOf (M901) M1A0 (Local0, C010, Ones, 0x0177) Local0 = RefOf (M902) M1A0 (Local0, C010, Ones, 0x0178) Local0 = RefOf (M903) M1A0 (Local0, C010, Ones, 0x0179) Local0 = RefOf (M904) M1A0 (Local0, C010, Ones, 0x017A) Local0 = RefOf (M905) M1A0 (Local0, C010, Ones, 0x017B) Local0 = RefOf (M906) M1A0 (Local0, C010, Ones, 0x017C) Local0 = RefOf (M907) M1A0 (Local0, C010, Ones, 0x017D) Local0 = RefOf (M908) M1A0 (Local0, C010, Ones, 0x017E) Local0 = RefOf (M909) M1A0 (Local0, C010, Ones, 0x017F) Local0 = RefOf (M90A) M1A0 (Local0, C010, Ones, 0x0180) Local0 = RefOf (M90B) M1A0 (Local0, C010, Ones, 0x0181) Local0 = RefOf (M90C) M1A0 (Local0, C010, Ones, 0x0182) Local0 = RefOf (M90D) M1A0 (Local0, C010, Ones, 0x0183) Local0 = RefOf (M90E) M1A0 (Local0, C010, Ones, 0x0184) Local0 = RefOf (M90F) M1A0 (Local0, C010, Ones, 0x0185) Local0 = RefOf (M910) M1A0 (Local0, C010, Ones, 0x0186) Local0 = RefOf (M911) M1A0 (Local0, C010, Ones, 0x0187) Local0 = RefOf (M912) M1A0 (Local0, C010, Ones, 0x0188) Local0 = RefOf (M913) M1A0 (Local0, C010, Ones, 0x0189) Local0 = RefOf (M914) M1A0 (Local0, C010, Ones, 0x018A) Local0 = RefOf (M915) M1A0 (Local0, C010, Ones, 0x018B) Local0 = RefOf (M916) M1A0 (Local0, C010, Ones, 0x018C) Local0 = RefOf (M917) M1A0 (Local0, C010, Ones, 0x018D) Local0 = RefOf (M918) M1A0 (Local0, C010, Ones, 0x018E) Local0 = RefOf (M919) M1A0 (Local0, C010, Ones, 0x018F) Local0 = RefOf (M91A) M1A0 (Local0, C010, Ones, 0x0190) Local0 = RefOf (M91B) M1A0 (Local0, C010, Ones, 0x0191) Local0 = RefOf (M91C) M1A0 (Local0, C010, Ones, 0x0192) Local0 = RefOf (M91D) M1A0 (Local0, C010, Ones, 0x0193) Local0 = RefOf (M91E) M1A0 (Local0, C010, Ones, 0x0194) Local0 = RefOf (M91F) M1A0 (Local0, C010, Ones, 0x0195) Local0 = RefOf (M920) M1A0 (Local0, C010, Ones, 0x0196) Local0 = RefOf (M921) M1A0 (Local0, C010, Ones, 0x0197) Local0 = RefOf (M922) M1A0 (Local0, C010, Ones, 0x0198) Local0 = RefOf (M923) M1A0 (Local0, C010, Ones, 0x0199) Local0 = RefOf (M924) M1A0 (Local0, C010, Ones, 0x019A) Local0 = RefOf (M925) M1A0 (Local0, C010, Ones, 0x019B) Local0 = RefOf (M926) M1A0 (Local0, C010, Ones, 0x019C) Local0 = RefOf (M927) M1A0 (Local0, C010, Ones, 0x019D) Local0 = RefOf (M928) M1A0 (Local0, C010, Ones, 0x019E) Local0 = RefOf (M929) M1A0 (Local0, C010, Ones, 0x019F) Local0 = RefOf (M92A) M1A0 (Local0, C010, Ones, 0x01A0) Local0 = RefOf (M92B) M1A0 (Local0, C010, Ones, 0x01A1) Local0 = RefOf (M92C) M1A0 (Local0, C010, Ones, 0x01A2) Local0 = RefOf (M92D) M1A0 (Local0, C010, Ones, 0x01A3) Local0 = RefOf (M92E) M1A0 (Local0, C010, Ones, 0x01A4) Local0 = RefOf (M92F) M1A0 (Local0, C010, Ones, 0x01A5) Local0 = RefOf (M930) M1A0 (Local0, C010, Ones, 0x01A6) Local0 = RefOf (M931) M1A0 (Local0, C010, Ones, 0x01A7) Local0 = RefOf (M932) M1A0 (Local0, C010, Ones, 0x01A8) Local0 = RefOf (M933) M1A0 (Local0, C010, Ones, 0x01A9) Local0 = RefOf (M934) M1A0 (Local0, C010, Ones, 0x01AA) Local0 = RefOf (M935) M1A0 (Local0, C010, Ones, 0x01AB) M1A6 () Return (Zero) } /* m16b but with global data */ Method (M192, 0, NotSerialized) { If (Y100) { TS00 ("m192") } Else { Debug = "m192" } /* T2:C1-C14 */ /* Computational Data */ Local0 = CondRefOf (I900) M1A4 (Local0, 0x01AC) Local0 = CondRefOf (I901) M1A4 (Local0, 0x01AD) Local0 = CondRefOf (S900) M1A4 (Local0, 0x01AE) Local0 = CondRefOf (S901) M1A4 (Local0, 0x01AF) Local0 = CondRefOf (B900) M1A4 (Local0, 0x01B0) Local0 = CondRefOf (F900) M1A4 (Local0, 0x01B1) Local0 = CondRefOf (BN90) M1A4 (Local0, 0x01B2) Local0 = CondRefOf (IF90) M1A4 (Local0, 0x01B3) Local0 = CondRefOf (BF90) M1A4 (Local0, 0x01B4) /* Not Computational Data */ Local0 = CondRefOf (E900) M1A4 (Local0, 0x01B5) Local0 = CondRefOf (MX90) M1A4 (Local0, 0x01B6) Local0 = CondRefOf (D900) M1A4 (Local0, 0x01B7) Local0 = CondRefOf (TZ90) M1A4 (Local0, 0x01C2) Local0 = CondRefOf (PR90) M1A4 (Local0, 0x01C3) Local0 = CondRefOf (R900) M1A4 (Local0, 0x01C4) Local0 = CondRefOf (PW90) M1A4 (Local0, 0x01C5) /* Elements of Package are Uninitialized */ Local0 = CondRefOf (P900) M1A4 (Local0, 0x01C6) /* Elements of Package are Computational Data */ Local0 = CondRefOf (P901) M1A4 (Local0, 0x01C7) Local0 = CondRefOf (P902) M1A4 (Local0, 0x01C8) Local0 = CondRefOf (P903) M1A4 (Local0, 0x01C9) Local0 = CondRefOf (P904) M1A4 (Local0, 0x01CA) Local0 = CondRefOf (P905) M1A4 (Local0, 0x01CB) Local0 = CondRefOf (P906) M1A4 (Local0, 0x01CC) Local0 = CondRefOf (P907) M1A4 (Local0, 0x01CD) Local0 = CondRefOf (P908) M1A4 (Local0, 0x01CE) Local0 = CondRefOf (P909) M1A4 (Local0, 0x01CF) Local0 = CondRefOf (P90A) M1A4 (Local0, 0x01D0) Local0 = CondRefOf (P90B) M1A4 (Local0, 0x01D1) Local0 = CondRefOf (P90C) M1A4 (Local0, 0x01D2) Local0 = CondRefOf (P90D) M1A4 (Local0, 0x01D3) Local0 = CondRefOf (P90E) M1A4 (Local0, 0x01D4) Local0 = CondRefOf (P90F) M1A4 (Local0, 0x01D5) Local0 = CondRefOf (P910) M1A4 (Local0, 0x01D6) Local0 = CondRefOf (P911) M1A4 (Local0, 0x01D7) Local0 = CondRefOf (P912) M1A4 (Local0, 0x01D8) Local0 = CondRefOf (P913) M1A4 (Local0, 0x01D9) Local0 = CondRefOf (P914) M1A4 (Local0, 0x01DA) Local0 = CondRefOf (P915) M1A4 (Local0, 0x01DB) /* Elements of Package are NOT Computational Data */ Local0 = CondRefOf (P916) M1A4 (Local0, 0x01DC) Local0 = CondRefOf (P917) M1A4 (Local0, 0x01DD) Local0 = CondRefOf (P918) M1A4 (Local0, 0x01DE) Local0 = CondRefOf (P919) M1A4 (Local0, 0x01DF) Local0 = CondRefOf (P91A) M1A4 (Local0, 0x01E0) Local0 = CondRefOf (P91B) M1A4 (Local0, 0x01E1) Local0 = CondRefOf (P91C) M1A4 (Local0, 0x01E2) /* Elements of Package are Methods */ Local0 = CondRefOf (P91D) M1A4 (Local0, 0x01E3) Local0 = CondRefOf (P91E) M1A4 (Local0, 0x01E4) Local0 = CondRefOf (P91F) M1A4 (Local0, 0x01E5) Local0 = CondRefOf (P920) M1A4 (Local0, 0x01E6) Local0 = CondRefOf (P921) M1A4 (Local0, 0x01E7) Local0 = CondRefOf (P922) M1A4 (Local0, 0x01E8) Local0 = CondRefOf (P923) M1A4 (Local0, 0x01E9) Local0 = CondRefOf (P924) M1A4 (Local0, 0x01EA) Local0 = CondRefOf (P925) M1A4 (Local0, 0x01EB) Local0 = CondRefOf (P926) M1A4 (Local0, 0x01EC) Local0 = CondRefOf (P927) M1A4 (Local0, 0x01ED) Local0 = CondRefOf (P928) M1A4 (Local0, 0x01EE) Local0 = CondRefOf (P929) M1A4 (Local0, 0x01EF) Local0 = CondRefOf (P92A) M1A4 (Local0, 0x01F0) Local0 = CondRefOf (P92B) M1A4 (Local0, 0x01F1) Local0 = CondRefOf (P92C) M1A4 (Local0, 0x01F2) Local0 = CondRefOf (P92D) M1A4 (Local0, 0x01F3) Local0 = CondRefOf (P92E) M1A4 (Local0, 0x01F4) Local0 = CondRefOf (P92F) M1A4 (Local0, 0x01F5) Local0 = CondRefOf (P930) M1A4 (Local0, 0x01F6) Local0 = CondRefOf (P931) M1A4 (Local0, 0x01F7) Local0 = CondRefOf (P932) M1A4 (Local0, 0x01F8) Local0 = CondRefOf (P933) M1A4 (Local0, 0x01F9) Local0 = CondRefOf (P934) M1A4 (Local0, 0x01FA) Local0 = CondRefOf (P935) M1A4 (Local0, 0x01FB) Local0 = CondRefOf (P936) M1A4 (Local0, 0x01FC) Local0 = CondRefOf (P937) M1A4 (Local0, 0x01FD) Local0 = CondRefOf (P938) M1A4 (Local0, 0x01FE) Local0 = CondRefOf (P939) M1A4 (Local0, 0x01FF) Local0 = CondRefOf (P93A) M1A4 (Local0, 0x0200) Local0 = CondRefOf (P93B) M1A4 (Local0, 0x0201) Local0 = CondRefOf (P93C) M1A4 (Local0, 0x0202) Local0 = CondRefOf (P93D) M1A4 (Local0, 0x0203) Local0 = CondRefOf (P93E) M1A4 (Local0, 0x0204) Local0 = CondRefOf (P93F) M1A4 (Local0, 0x0205) Local0 = CondRefOf (P940) M1A4 (Local0, 0x0206) Local0 = CondRefOf (P941) M1A4 (Local0, 0x0207) Local0 = CondRefOf (P942) M1A4 (Local0, 0x0208) Local0 = CondRefOf (P943) M1A4 (Local0, 0x0209) Local0 = CondRefOf (P944) M1A4 (Local0, 0x020A) Local0 = CondRefOf (P945) M1A4 (Local0, 0x020B) Local0 = CondRefOf (P946) M1A4 (Local0, 0x020C) Local0 = CondRefOf (P947) M1A4 (Local0, 0x020D) Local0 = CondRefOf (P948) M1A4 (Local0, 0x020E) Local0 = CondRefOf (P949) M1A4 (Local0, 0x020F) Local0 = CondRefOf (P94A) M1A4 (Local0, 0x0210) Local0 = CondRefOf (P94B) M1A4 (Local0, 0x0211) Local0 = CondRefOf (P94C) M1A4 (Local0, 0x0212) Local0 = CondRefOf (P94D) M1A4 (Local0, 0x0213) Local0 = CondRefOf (P94E) M1A4 (Local0, 0x0214) Local0 = CondRefOf (P94F) M1A4 (Local0, 0x0215) Local0 = CondRefOf (P950) M1A4 (Local0, 0x0216) Local0 = CondRefOf (P951) M1A4 (Local0, 0x0217) Local0 = CondRefOf (P952) M1A4 (Local0, 0x0218) /* Methods */ Local0 = CondRefOf (M900) M1A4 (Local0, 0x0219) Local0 = CondRefOf (M901) M1A4 (Local0, 0x021A) Local0 = CondRefOf (M902) M1A4 (Local0, 0x021B) Local0 = CondRefOf (M903) M1A4 (Local0, 0x021C) Local0 = CondRefOf (M904) M1A4 (Local0, 0x021D) Local0 = CondRefOf (M905) M1A4 (Local0, 0x021E) Local0 = CondRefOf (M906) M1A4 (Local0, 0x021F) Local0 = CondRefOf (M907) M1A4 (Local0, 0x0220) Local0 = CondRefOf (M908) M1A4 (Local0, 0x0221) Local0 = CondRefOf (M909) M1A4 (Local0, 0x0222) Local0 = CondRefOf (M90A) M1A4 (Local0, 0x0223) Local0 = CondRefOf (M90B) M1A4 (Local0, 0x0224) Local0 = CondRefOf (M90C) M1A4 (Local0, 0x0225) Local0 = CondRefOf (M90D) M1A4 (Local0, 0x0226) Local0 = CondRefOf (M90E) M1A4 (Local0, 0x0227) Local0 = CondRefOf (M90F) M1A4 (Local0, 0x0228) Local0 = CondRefOf (M910) M1A4 (Local0, 0x0229) Local0 = CondRefOf (M911) M1A4 (Local0, 0x022A) Local0 = CondRefOf (M912) M1A4 (Local0, 0x022B) Local0 = CondRefOf (M913) M1A4 (Local0, 0x022C) Local0 = CondRefOf (M914) M1A4 (Local0, 0x022D) Local0 = CondRefOf (M915) M1A4 (Local0, 0x022E) Local0 = CondRefOf (M916) M1A4 (Local0, 0x022F) Local0 = CondRefOf (M917) M1A4 (Local0, 0x0230) Local0 = CondRefOf (M918) M1A4 (Local0, 0x0231) Local0 = CondRefOf (M919) M1A4 (Local0, 0x0232) Local0 = CondRefOf (M91A) M1A4 (Local0, 0x0233) Local0 = CondRefOf (M91B) M1A4 (Local0, 0x0234) Local0 = CondRefOf (M91C) M1A4 (Local0, 0x0235) Local0 = CondRefOf (M91D) M1A4 (Local0, 0x0236) Local0 = CondRefOf (M91E) M1A4 (Local0, 0x0237) Local0 = CondRefOf (M91F) M1A4 (Local0, 0x0238) Local0 = CondRefOf (M920) M1A4 (Local0, 0x0239) Local0 = CondRefOf (M921) M1A4 (Local0, 0x023A) Local0 = CondRefOf (M922) M1A4 (Local0, 0x023B) Local0 = CondRefOf (M923) M1A4 (Local0, 0x023C) Local0 = CondRefOf (M924) M1A4 (Local0, 0x023D) Local0 = CondRefOf (M925) M1A4 (Local0, 0x023E) Local0 = CondRefOf (M926) M1A4 (Local0, 0x023F) Local0 = CondRefOf (M927) M1A4 (Local0, 0x0240) Local0 = CondRefOf (M928) M1A4 (Local0, 0x0241) Local0 = CondRefOf (M929) M1A4 (Local0, 0x0242) Local0 = CondRefOf (M92A) M1A4 (Local0, 0x0243) Local0 = CondRefOf (M92B) M1A4 (Local0, 0x0244) Local0 = CondRefOf (M92C) M1A4 (Local0, 0x0245) Local0 = CondRefOf (M92D) M1A4 (Local0, 0x0246) Local0 = CondRefOf (M92E) M1A4 (Local0, 0x0247) Local0 = CondRefOf (M92F) M1A4 (Local0, 0x0248) Local0 = CondRefOf (M930) M1A4 (Local0, 0x0249) Local0 = CondRefOf (M931) M1A4 (Local0, 0x024A) Local0 = CondRefOf (M932) M1A4 (Local0, 0x024B) Local0 = CondRefOf (M933) M1A4 (Local0, 0x024C) Local0 = CondRefOf (M934) M1A4 (Local0, 0x024D) Local0 = CondRefOf (M935) M1A4 (Local0, 0x024E) M1A6 () } /* m16c but with global data */ /* arg0 - writing mode */ Method (M193, 1, NotSerialized) { If (Y100) { TS00 ("m193") } Else { Debug = "m193" } /* T2:CR1-CR14 */ /* Computational Data */ Local1 = CondRefOf (I900, Local0) If (M1A4 (Local1, 0x024F)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) } Local1 = CondRefOf (I901, Local0) If (M1A4 (Local1, 0x0251)) { M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) } Local1 = CondRefOf (S900, Local0) If (M1A4 (Local1, 0x0253)) { M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) } Local1 = CondRefOf (S901, Local0) If (M1A4 (Local1, 0x0255)) { M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) } Local1 = CondRefOf (B900, Local0) If (M1A4 (Local1, 0x0257)) { M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0258) } /* Not Computational Data */ Local1 = CondRefOf (E900, Local0) M1A0 (Local0, C00F, Local1, 0x0261) Local1 = CondRefOf (MX90, Local0) M1A0 (Local0, C011, Local1, 0x0262) Local1 = CondRefOf (D900, Local0) M1A0 (Local0, C00E, Local1, 0x0263) If (Arg0) { If (Y508) { Local1 = CondRefOf (TZ90, Local0) M1A0 (Local0, C015, Local1, 0x0264) } } Else { Local1 = CondRefOf (TZ90, Local0) M1A0 (Local0, C015, Local1, 0x03EC) } Local1 = CondRefOf (PR90, Local0) M1A0 (Local0, C014, Local1, 0x0265) If (Arg0) { If (Y510) { Local1 = CondRefOf (R900, Local0) M1A0 (Local0, C012, Local1, 0x0266) } } Else { Local1 = CondRefOf (R900, Local0) M1A0 (Local0, C012, Local1, 0x0266) } Local1 = CondRefOf (PW90, Local0) M1A0 (Local0, C013, Local1, 0x0267) /* Package */ Local1 = CondRefOf (P953, Local0) If (M1A4 (Local1, 0x03ED)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0018, __LINE__) } If (Arg0) { M1AB () Return (Zero) } /* Computational Data (Field Unit and Buffer Field) */ Local1 = CondRefOf (F900, Local0) If (M1A4 (Local1, 0x0259)) { M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) } Local1 = CondRefOf (BN90, Local0) If (M1A4 (Local1, 0x025B)) { M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) } Local1 = CondRefOf (IF90, Local0) If (M1A4 (Local1, 0x025D)) { M1A2 (Local0, C00D, 0x00, 0x00, C009, 0x00, __LINE__) } Local1 = CondRefOf (BF90, Local0) If (M1A4 (Local1, 0x025F)) { M1A2 (Local0, C016, 0x00, 0x00, C00B, Buffer(){0xB0}, __LINE__) } /* Elements of Package are Uninitialized */ Local1 = CondRefOf (P900, Local0) M1A0 (Local0, C00C, Local1, 0x0268) /* Elements of Package are Computational Data */ Local1 = CondRefOf (P901, Local0) If (M1A4 (Local1, 0x0269)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) } Local1 = CondRefOf (P902, Local0) If (M1A4 (Local1, 0x026C)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) } Local1 = CondRefOf (P903, Local0) If (M1A4 (Local1, 0x026F)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) } Local1 = CondRefOf (P904, Local0) If (M1A4 (Local1, 0x0272)) { M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x0273) } Local1 = CondRefOf (P905, Local0) If (M1A4 (Local1, 0x0274)) { M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) } Local1 = CondRefOf (P906, Local0) If (M1A4 (Local1, 0x0277)) { M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) } Local1 = CondRefOf (P907, Local0) If (M1A4 (Local1, 0x0279)) { M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) } Local1 = CondRefOf (P908, Local0) If (M1A4 (Local1, 0x027B)) { M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x027C) } Local1 = CondRefOf (P909, Local0) If (M1A4 (Local1, 0x027D)) { M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) } Local1 = CondRefOf (P90A, Local0) If (M1A4 (Local1, 0x027F)) { M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) } Local1 = CondRefOf (P90B, Local0) If (M1A4 (Local1, 0x0281)) { M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) } Local1 = CondRefOf (P90C, Local0) If (M1A4 (Local1, 0x0283)) { M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x0284) } Local1 = CondRefOf (P90D, Local0) If (M1A4 (Local1, 0x0285)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) } Local1 = CondRefOf (P90E, Local0) If (M1A4 (Local1, 0x0287)) { M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) } Local1 = CondRefOf (P90F, Local0) If (M1A4 (Local1, 0x0289)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) } Local1 = CondRefOf (P910, Local0) If (M1A4 (Local1, 0x028B)) { M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) } Local1 = CondRefOf (P911, Local0) If (M1A4 (Local1, 0x028D)) { M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x028E) } If (Y118) { Local1 = CondRefOf (P912, Local0) If (M1A4 (Local1, 0x028F)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Local1 = CondRefOf (P913, Local0) If (M1A4 (Local1, 0x0291)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Local1 = CondRefOf (P914, Local0) If (M1A4 (Local1, 0x0293)) { M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) } Local1 = CondRefOf (P915, Local0) If (M1A4 (Local1, 0x0295)) { M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) } } /* Elements of Package are NOT Computational Data */ Local1 = CondRefOf (P916, Local0) M1A0 (Local0, C00C, Local1, 0x0297) Local1 = CondRefOf (P917, Local0) M1A0 (Local0, C00C, Local1, 0x0298) Local1 = CondRefOf (P918, Local0) M1A0 (Local0, C00C, Local1, 0x19FF) Local1 = CondRefOf (P919, Local0) M1A0 (Local0, C00C, Local1, 0x029A) Local1 = CondRefOf (P91A, Local0) M1A0 (Local0, C00C, Local1, 0x029B) Local1 = CondRefOf (P91B, Local0) M1A0 (Local0, C00C, Local1, 0x029C) Local1 = CondRefOf (P91C, Local0) M1A0 (Local0, C00C, Local1, 0x029D) /* Elements of Package are Methods */ Local1 = CondRefOf (P91D, Local0) M1A0 (Local0, C00C, Local1, 0x029E) Local1 = CondRefOf (P91E, Local0) M1A0 (Local0, C00C, Local1, 0x029F) Local1 = CondRefOf (P91F, Local0) M1A0 (Local0, C00C, Local1, 0x02A0) Local1 = CondRefOf (P920, Local0) M1A0 (Local0, C00C, Local1, 0x02A1) Local1 = CondRefOf (P921, Local0) M1A0 (Local0, C00C, Local1, 0x02A2) Local1 = CondRefOf (P922, Local0) M1A0 (Local0, C00C, Local1, 0x02A3) Local1 = CondRefOf (P923, Local0) M1A0 (Local0, C00C, Local1, 0x02A4) Local1 = CondRefOf (P924, Local0) M1A0 (Local0, C00C, Local1, 0x02A5) Local1 = CondRefOf (P925, Local0) M1A0 (Local0, C00C, Local1, 0x02A6) Local1 = CondRefOf (P926, Local0) M1A0 (Local0, C00C, Local1, 0x02A7) Local1 = CondRefOf (P927, Local0) M1A0 (Local0, C00C, Local1, 0x02A8) Local1 = CondRefOf (P928, Local0) M1A0 (Local0, C00C, Local1, 0x02A9) Local1 = CondRefOf (P929, Local0) M1A0 (Local0, C00C, Local1, 0x02AA) Local1 = CondRefOf (P92A, Local0) M1A0 (Local0, C00C, Local1, 0x02AB) Local1 = CondRefOf (P92B, Local0) M1A0 (Local0, C00C, Local1, 0x02AC) Local1 = CondRefOf (P92C, Local0) M1A0 (Local0, C00C, Local1, 0x02AD) Local1 = CondRefOf (P92D, Local0) M1A0 (Local0, C00C, Local1, 0x02AE) Local1 = CondRefOf (P92E, Local0) M1A0 (Local0, C00C, Local1, 0x02AF) Local1 = CondRefOf (P92F, Local0) M1A0 (Local0, C00C, Local1, 0x02B0) Local1 = CondRefOf (P930, Local0) M1A0 (Local0, C00C, Local1, 0x02B1) Local1 = CondRefOf (P931, Local0) M1A0 (Local0, C00C, Local1, 0x02B2) Local1 = CondRefOf (P932, Local0) M1A0 (Local0, C00C, Local1, 0x02B3) Local1 = CondRefOf (P933, Local0) M1A0 (Local0, C00C, Local1, 0x02B4) Local1 = CondRefOf (P934, Local0) M1A0 (Local0, C00C, Local1, 0x02B5) Local1 = CondRefOf (P935, Local0) M1A0 (Local0, C00C, Local1, 0x02B6) Local1 = CondRefOf (P936, Local0) M1A0 (Local0, C00C, Local1, 0x02B7) Local1 = CondRefOf (P937, Local0) M1A0 (Local0, C00C, Local1, 0x02B8) Local1 = CondRefOf (P938, Local0) M1A0 (Local0, C00C, Local1, 0x02B9) Local1 = CondRefOf (P939, Local0) M1A0 (Local0, C00C, Local1, 0x02BA) Local1 = CondRefOf (P93A, Local0) M1A0 (Local0, C00C, Local1, 0x02BB) Local1 = CondRefOf (P93B, Local0) M1A0 (Local0, C00C, Local1, 0x02BC) Local1 = CondRefOf (P93C, Local0) M1A0 (Local0, C00C, Local1, 0x02BD) Local1 = CondRefOf (P93D, Local0) M1A0 (Local0, C00C, Local1, 0x02BE) Local1 = CondRefOf (P93E, Local0) M1A0 (Local0, C00C, Local1, 0x02BF) Local1 = CondRefOf (P93F, Local0) M1A0 (Local0, C00C, Local1, 0x02C0) Local1 = CondRefOf (P940, Local0) M1A0 (Local0, C00C, Local1, 0x02C1) Local1 = CondRefOf (P941, Local0) M1A0 (Local0, C00C, Local1, 0x02C2) Local1 = CondRefOf (P942, Local0) M1A0 (Local0, C00C, Local1, 0x02C3) Local1 = CondRefOf (P943, Local0) M1A0 (Local0, C00C, Local1, 0x02C4) Local1 = CondRefOf (P944, Local0) M1A0 (Local0, C00C, Local1, 0x02C5) Local1 = CondRefOf (P945, Local0) M1A0 (Local0, C00C, Local1, 0x02C6) Local1 = CondRefOf (P946, Local0) M1A0 (Local0, C00C, Local1, 0x02C7) Local1 = CondRefOf (P947, Local0) M1A0 (Local0, C00C, Local1, 0x02C8) Local1 = CondRefOf (P948, Local0) M1A0 (Local0, C00C, Local1, 0x02C9) Local1 = CondRefOf (P949, Local0) M1A0 (Local0, C00C, Local1, 0x02CA) Local1 = CondRefOf (P94A, Local0) M1A0 (Local0, C00C, Local1, 0x02CB) Local1 = CondRefOf (P94B, Local0) M1A0 (Local0, C00C, Local1, 0x02CC) Local1 = CondRefOf (P94C, Local0) M1A0 (Local0, C00C, Local1, 0x02CD) Local1 = CondRefOf (P94D, Local0) M1A0 (Local0, C00C, Local1, 0x02CE) Local1 = CondRefOf (P94E, Local0) M1A0 (Local0, C00C, Local1, 0x02CF) Local1 = CondRefOf (P94F, Local0) M1A0 (Local0, C00C, Local1, 0x02D0) Local1 = CondRefOf (P950, Local0) M1A0 (Local0, C00C, Local1, 0x02D1) Local1 = CondRefOf (P951, Local0) M1A0 (Local0, C00C, Local1, 0x02D2) Local1 = CondRefOf (P952, Local0) M1A0 (Local0, C00C, Local1, 0x02D3) /* Methods */ Local1 = CondRefOf (M900, Local0) M1A0 (Local0, C010, Local1, 0x02D4) Local1 = CondRefOf (M901, Local0) M1A0 (Local0, C010, Local1, 0x02D5) Local1 = CondRefOf (M902, Local0) M1A0 (Local0, C010, Local1, 0x02D6) Local1 = CondRefOf (M903, Local0) M1A0 (Local0, C010, Local1, 0x02D7) Local1 = CondRefOf (M904, Local0) M1A0 (Local0, C010, Local1, 0x02D8) Local1 = CondRefOf (M905, Local0) M1A0 (Local0, C010, Local1, 0x02D9) Local1 = CondRefOf (M906, Local0) M1A0 (Local0, C010, Local1, 0x02DA) Local1 = CondRefOf (M907, Local0) M1A0 (Local0, C010, Local1, 0x02DB) Local1 = CondRefOf (M908, Local0) M1A0 (Local0, C010, Local1, 0x02DC) Local1 = CondRefOf (M909, Local0) M1A0 (Local0, C010, Local1, 0x02DD) Local1 = CondRefOf (M90A, Local0) M1A0 (Local0, C010, Local1, 0x02DE) Local1 = CondRefOf (M90B, Local0) M1A0 (Local0, C010, Local1, 0x02DF) Local1 = CondRefOf (M90C, Local0) M1A0 (Local0, C010, Local1, 0x02E0) Local1 = CondRefOf (M90D, Local0) M1A0 (Local0, C010, Local1, 0x02E1) Local1 = CondRefOf (M90E, Local0) M1A0 (Local0, C010, Local1, 0x02E2) Local1 = CondRefOf (M90F, Local0) M1A0 (Local0, C010, Local1, 0x02E3) Local1 = CondRefOf (M910, Local0) M1A0 (Local0, C010, Local1, 0x02E4) Local1 = CondRefOf (M911, Local0) M1A0 (Local0, C010, Local1, 0x02E5) Local1 = CondRefOf (M912, Local0) M1A0 (Local0, C010, Local1, 0x02E6) Local1 = CondRefOf (M913, Local0) M1A0 (Local0, C010, Local1, 0x02E7) Local1 = CondRefOf (M914, Local0) M1A0 (Local0, C010, Local1, 0x02E8) Local1 = CondRefOf (M915, Local0) M1A0 (Local0, C010, Local1, 0x02E9) Local1 = CondRefOf (M916, Local0) M1A0 (Local0, C010, Local1, 0x02EA) Local1 = CondRefOf (M917, Local0) M1A0 (Local0, C010, Local1, 0x02EB) Local1 = CondRefOf (M918, Local0) M1A0 (Local0, C010, Local1, 0x02EC) Local1 = CondRefOf (M919, Local0) M1A0 (Local0, C010, Local1, 0x02ED) Local1 = CondRefOf (M91A, Local0) M1A0 (Local0, C010, Local1, 0x02EE) Local1 = CondRefOf (M91B, Local0) M1A0 (Local0, C010, Local1, 0x02EF) Local1 = CondRefOf (M91C, Local0) M1A0 (Local0, C010, Local1, 0x02F0) Local1 = CondRefOf (M91D, Local0) M1A0 (Local0, C010, Local1, 0x02F1) Local1 = CondRefOf (M91E, Local0) M1A0 (Local0, C010, Local1, 0x02F2) Local1 = CondRefOf (M91F, Local0) M1A0 (Local0, C010, Local1, 0x02F3) Local1 = CondRefOf (M920, Local0) M1A0 (Local0, C010, Local1, 0x02F4) Local1 = CondRefOf (M921, Local0) M1A0 (Local0, C010, Local1, 0x02F5) Local1 = CondRefOf (M922, Local0) M1A0 (Local0, C010, Local1, 0x02F6) Local1 = CondRefOf (M923, Local0) M1A0 (Local0, C010, Local1, 0x02F7) Local1 = CondRefOf (M924, Local0) M1A0 (Local0, C010, Local1, 0x02F8) Local1 = CondRefOf (M925, Local0) M1A0 (Local0, C010, Local1, 0x02F9) Local1 = CondRefOf (M926, Local0) M1A0 (Local0, C010, Local1, 0x02FA) Local1 = CondRefOf (M927, Local0) M1A0 (Local0, C010, Local1, 0x02FB) Local1 = CondRefOf (M928, Local0) M1A0 (Local0, C010, Local1, 0x02FC) Local1 = CondRefOf (M929, Local0) M1A0 (Local0, C010, Local1, 0x02FD) Local1 = CondRefOf (M92A, Local0) M1A0 (Local0, C010, Local1, 0x02FE) Local1 = CondRefOf (M92B, Local0) M1A0 (Local0, C010, Local1, 0x02FF) Local1 = CondRefOf (M92C, Local0) M1A0 (Local0, C010, Local1, 0x0300) Local1 = CondRefOf (M92D, Local0) M1A0 (Local0, C010, Local1, 0x0301) Local1 = CondRefOf (M92E, Local0) M1A0 (Local0, C010, Local1, 0x030C) Local1 = CondRefOf (M92F, Local0) M1A0 (Local0, C010, Local1, 0x030D) Local1 = CondRefOf (M930, Local0) M1A0 (Local0, C010, Local1, 0x030E) Local1 = CondRefOf (M931, Local0) M1A0 (Local0, C010, Local1, 0x030F) Local1 = CondRefOf (M932, Local0) M1A0 (Local0, C010, Local1, 0x0310) Local1 = CondRefOf (M933, Local0) M1A0 (Local0, C010, Local1, 0x0311) Local1 = CondRefOf (M934, Local0) M1A0 (Local0, C010, Local1, 0x0312) Local1 = CondRefOf (M935, Local0) M1A0 (Local0, C010, Local1, 0x0313) M1A6 () Return (Zero) } /* /////////////////////////////////////////////////////////////////////////// */ /* */ /* TABLE 4: all the legal ways to generate references to the named objects */ /* being elements of Package */ /* */ /* /////////////////////////////////////////////////////////////////////////// */ /* m16e but with global data */ Method (M194, 0, NotSerialized) { If (Y100) { TS00 ("m194") } Else { Debug = "m194" } If (!Y900) { Debug = "Test m194 skipped!" Return (Zero) } /* T4:x,I1-I14,x,x */ /* Computational Data */ Store (Index (Package (0x01) { I900 }, 0x00), Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Store (Index (Package (0x01) { I901 }, 0x00), Local0) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Store (Index (Package (0x01) { S900 }, 0x00), Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Store (Index (Package (0x01) { S901 }, 0x00), Local0) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Store (Index (Package (0x01) { B900 }, 0x00), Local0) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0318) If (Y118) { Store (Index (Package (0x01) { F900 }, 0x00), Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { BN90 }, 0x00), Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { IF90 }, 0x00), Local0) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { BF90 }, 0x00), Local0) M1A2 (Local0, C016, 0x00, 0x00, C016, 0xB0, __LINE__) } /* Not Computational Data */ Store (Index (Package (0x01) { E900 }, 0x00), Local0) M1A0 (Local0, C00F, Ones, 0x031D) Store (Index (Package (0x01) { MX90 }, 0x00), Local0) M1A0 (Local0, C011, Ones, 0x031E) Store (Index (Package (0x01) { D900 }, 0x00), Local0) M1A0 (Local0, C00E, Ones, 0x031F) Store (Index (Package (0x01) { TZ90 }, 0x00), Local0) M1A0 (Local0, C015, Ones, 0x0320) Store (Index (Package (0x01) { PR90 }, 0x00), Local0) M1A0 (Local0, C014, Ones, 0x0321) Store (Index (Package (0x01) { R900 }, 0x00), Local0) M1A0 (Local0, C012, Ones, 0x0322) Store (Index (Package (0x01) { PW90 }, 0x00), Local0) M1A0 (Local0, C013, Ones, 0x0323) /* Elements of Package are Uninitialized */ Store (Index (Package (0x01) { P900 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0324) /* Elements of Package are Computational Data */ Store (Index (Package (0x01) { P901 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) Store (Index (Package (0x01) { P902 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Store (Index (Package (0x01) { P903 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) Store (Index (Package (0x01) { P904 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x032B) Store (Index (Package (0x01) { P905 }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) Store (Index (Package (0x01) { P906 }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) Store (Index (Package (0x01) { P907 }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) Store (Index (Package (0x01) { P908 }, 0x00), Local0) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x0330) Store (Index (Package (0x01) { P909 }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) Store (Index (Package (0x01) { P90A }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) Store (Index (Package (0x01) { P90B }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) Store (Index (Package (0x01) { P90C }, 0x00), Local0) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x0334) Store (Index (Package (0x01) { P90D }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Store (Index (Package (0x01) { P90E }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) Store (Index (Package (0x01) { P90F }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) Store (Index (Package (0x01) { P910 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) Store (Index (Package (0x01) { P911 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x0339) If (Y118) { Store (Index (Package (0x01) { P912 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { P913 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { P914 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Store (Index (Package (0x01) { P915 }, 0x00), Local0) M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Store (Index (Package (0x01) { P916 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x033E) Store (Index (Package (0x01) { P917 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x033F) Store (Index (Package (0x01) { P918 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0340) Store (Index (Package (0x01) { P919 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0341) Store (Index (Package (0x01) { P91A }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0342) Store (Index (Package (0x01) { P91B }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0343) Store (Index (Package (0x01) { P91C }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0344) /* Elements of Package are Methods */ Store (Index (Package (0x01) { P91D }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0345) Store (Index (Package (0x01) { P91E }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0346) Store (Index (Package (0x01) { P91F }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0347) Store (Index (Package (0x01) { P920 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0348) Store (Index (Package (0x01) { P921 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0349) Store (Index (Package (0x01) { P922 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034A) Store (Index (Package (0x01) { P923 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034B) Store (Index (Package (0x01) { P924 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034C) Store (Index (Package (0x01) { P925 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034D) Store (Index (Package (0x01) { P926 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034E) Store (Index (Package (0x01) { P927 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x034F) Store (Index (Package (0x01) { P928 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0350) Store (Index (Package (0x01) { P929 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0351) Store (Index (Package (0x01) { P92A }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0352) Store (Index (Package (0x01) { P92B }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0353) Store (Index (Package (0x01) { P92C }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0354) Store (Index (Package (0x01) { P92D }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0355) Store (Index (Package (0x01) { P92E }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0356) Store (Index (Package (0x01) { P92F }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0357) Store (Index (Package (0x01) { P930 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0358) Store (Index (Package (0x01) { P931 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0359) Store (Index (Package (0x01) { P932 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035A) Store (Index (Package (0x01) { P933 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035B) Store (Index (Package (0x01) { P934 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035C) Store (Index (Package (0x01) { P935 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035D) Store (Index (Package (0x01) { P936 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035E) Store (Index (Package (0x01) { P937 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x035F) Store (Index (Package (0x01) { P938 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0360) Store (Index (Package (0x01) { P939 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0361) Store (Index (Package (0x01) { P93A }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0362) Store (Index (Package (0x01) { P93B }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0363) Store (Index (Package (0x01) { P93C }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0364) Store (Index (Package (0x01) { P93D }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0365) Store (Index (Package (0x01) { P93E }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0366) Store (Index (Package (0x01) { P93F }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0367) Store (Index (Package (0x01) { P940 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0368) Store (Index (Package (0x01) { P941 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0369) Store (Index (Package (0x01) { P942 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036A) Store (Index (Package (0x01) { P943 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036B) Store (Index (Package (0x01) { P944 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036C) Store (Index (Package (0x01) { P945 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036D) Store (Index (Package (0x01) { P946 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036E) Store (Index (Package (0x01) { P947 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x036F) Store (Index (Package (0x01) { P948 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0370) Store (Index (Package (0x01) { P949 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0371) Store (Index (Package (0x01) { P94A }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0372) Store (Index (Package (0x01) { P94B }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0373) Store (Index (Package (0x01) { P94C }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0374) Store (Index (Package (0x01) { P94D }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0375) Store (Index (Package (0x01) { P94E }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0376) Store (Index (Package (0x01) { P94F }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0377) Store (Index (Package (0x01) { P950 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0378) Store (Index (Package (0x01) { P951 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x0379) Store (Index (Package (0x01) { P952 }, 0x00), Local0) M1A0 (Local0, C00C, Ones, 0x037A) /* Methods */ Store (Index (Package (0x01) { M900 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037B) Store (Index (Package (0x01) { M901 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037C) Store (Index (Package (0x01) { M902 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037D) Store (Index (Package (0x01) { M903 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037E) Store (Index (Package (0x01) { M904 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x037F) Store (Index (Package (0x01) { M905 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0380) Store (Index (Package (0x01) { M906 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0381) Store (Index (Package (0x01) { M907 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0382) Store (Index (Package (0x01) { M908 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0383) Store (Index (Package (0x01) { M909 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0384) Store (Index (Package (0x01) { M90A }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0385) Store (Index (Package (0x01) { M90B }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0386) Store (Index (Package (0x01) { M90C }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0387) Store (Index (Package (0x01) { M90D }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0388) Store (Index (Package (0x01) { M90E }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0389) Store (Index (Package (0x01) { M90F }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038A) Store (Index (Package (0x01) { M910 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038B) Store (Index (Package (0x01) { M911 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038C) Store (Index (Package (0x01) { M912 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038D) Store (Index (Package (0x01) { M913 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038E) Store (Index (Package (0x01) { M914 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x038F) Store (Index (Package (0x01) { M915 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0390) Store (Index (Package (0x01) { M916 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0391) Store (Index (Package (0x01) { M917 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0392) Store (Index (Package (0x01) { M918 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0393) Store (Index (Package (0x01) { M919 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0394) Store (Index (Package (0x01) { M91A }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0395) Store (Index (Package (0x01) { M91B }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0396) Store (Index (Package (0x01) { M91C }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0397) Store (Index (Package (0x01) { M91D }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0398) Store (Index (Package (0x01) { M91E }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x0399) Store (Index (Package (0x01) { M91F }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039A) Store (Index (Package (0x01) { M920 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039B) Store (Index (Package (0x01) { M921 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039C) Store (Index (Package (0x01) { M922 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039D) Store (Index (Package (0x01) { M923 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039E) Store (Index (Package (0x01) { M924 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x039F) Store (Index (Package (0x01) { M925 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A0) Store (Index (Package (0x01) { M926 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A1) Store (Index (Package (0x01) { M927 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A2) Store (Index (Package (0x01) { M928 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A3) Store (Index (Package (0x01) { M929 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A4) Store (Index (Package (0x01) { M92A }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A5) Store (Index (Package (0x01) { M92B }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A6) Store (Index (Package (0x01) { M92C }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A7) Store (Index (Package (0x01) { M92D }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A8) Store (Index (Package (0x01) { M92E }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03A9) Store (Index (Package (0x01) { M92F }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AA) Store (Index (Package (0x01) { M930 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AB) Store (Index (Package (0x01) { M931 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AC) Store (Index (Package (0x01) { M932 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AD) Store (Index (Package (0x01) { M933 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AE) Store (Index (Package (0x01) { M934 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03AF) Store (Index (Package (0x01) { M935 }, 0x00), Local0) M1A0 (Local0, C010, Ones, 0x03B0) /* T4:x,IR1-IR14,x,x */ /* Computational Data */ Local0 = Index (Package (0x01) { I900 }, 0x00, Local1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Local0 = Index (Package (0x01) { I901 }, 0x00, Local1) M1A2 (Local0, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) M1A2 (Local1, C009, 0x00, 0x00, C009, 0xC1790001, __LINE__) Local0 = Index (Package (0x01) { S900 }, 0x00, Local1) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "12340002", __LINE__) Local0 = Index (Package (0x01) { S901 }, 0x00, Local1) M1A2 (Local0, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) M1A2 (Local1, C00A, 0x00, 0x00, C00A, "qwrtyu0003", __LINE__) Local0 = Index (Package (0x01) { B900 }, 0x00, Local1) M1A2 (Local0, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x03B9) M1A2 (Local1, C00B, 0x00, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x03BA) If (Y118) { Local0 = Index (Package (0x01) { F900 }, 0x00, Local1) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local0 = Index (Package (0x01) { BN90 }, 0x00, Local1) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local0 = Index (Package (0x01) { IF90 }, 0x00, Local1) M1A2 (Local0, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00D, 0x00, 0x00, C00D, 0x00, __LINE__) Local0 = Index (Package (0x01) { BF90 }, 0x00, Local1) M1A2 (Local0, C016, 0x00, 0x00, C016, 0xB0, __LINE__) M1A2 (Local1, C016, 0x00, 0x00, C016, 0xB0, __LINE__) } /* Not Computational Data */ Local0 = Index (Package (0x01) { E900 }, 0x00, Local1) M1A0 (Local0, C00F, Ones, 0x03C3) M1A0 (Local1, C00F, Ones, 0x03C4) Local0 = Index (Package (0x01) { MX90 }, 0x00, Local1) M1A0 (Local0, C011, Ones, 0x03C5) M1A0 (Local1, C011, Ones, 0x03C6) Local0 = Index (Package (0x01) { D900 }, 0x00, Local1) M1A0 (Local0, C00E, Ones, 0x03C7) M1A0 (Local1, C00E, Ones, 0x03C8) Local0 = Index (Package (0x01) { TZ90 }, 0x00, Local1) M1A0 (Local0, C015, Ones, 0x03C9) M1A0 (Local1, C015, Ones, 0x03CA) Local0 = Index (Package (0x01) { PR90 }, 0x00, Local1) M1A0 (Local0, C014, Ones, 0x03CB) M1A0 (Local1, C014, Ones, 0x03CC) Local0 = Index (Package (0x01) { R900 }, 0x00, Local1) M1A0 (Local0, C012, Ones, 0x03CD) M1A0 (Local1, C012, Ones, 0x03CE) Local0 = Index (Package (0x01) { PW90 }, 0x00, Local1) M1A0 (Local0, C013, Ones, 0x03CF) M1A0 (Local1, C013, Ones, 0x03D0) /* Elements of Package are Uninitialized */ Local0 = Index (Package (0x01) { P900 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x03D1) M1A0 (Local1, C00C, Ones, 0x03D2) /* Elements of Package are Computational Data */ Local0 = Index (Package (0x01) { P901 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0xABCD0004, __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C009, 0x1122334455660005, __LINE__) Local0 = Index (Package (0x01) { P902 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "12340006", __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C00A, "q1w2e3r4t5y6u7i80007", __LINE__) Local0 = Index (Package (0x01) { P903 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local0, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "qwrtyuiop0008", __LINE__) M1A2 (Local1, C00C, 0x01, 0x01, C00A, "1234567890abdef0250009", __LINE__) Local0 = Index (Package (0x01) { P904 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x03DF) M1A2 (Local1, C00C, 0x01, 0x00, C00B, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, 0x03E0) Local0 = Index (Package (0x01) { P905 }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local0, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C009, 0x0ABC000A, __LINE__) M1A2 (Local1, C00C, 0x02, 0x01, C00A, "0xabc000b", __LINE__) Local0 = Index (Package (0x01) { P906 }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "abc000d", __LINE__) Local0 = Index (Package (0x01) { P907 }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) M1A2 (Local1, C00C, 0x02, 0x00, C00A, "aqwevbgnm000e", __LINE__) Local0 = Index (Package (0x01) { P908 }, 0x00, Local1) M1A2 (Local0, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x03E9) M1A2 (Local1, C00C, 0x02, 0x00, C00B, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }, 0x03EA) Local0 = Index (Package (0x01) { P909 }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) M1A2 (Local1, C00C, 0x03, 0x00, C009, 0x0ABC000F, __LINE__) Local0 = Index (Package (0x01) { P90A }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) M1A2 (Local1, C00C, 0x03, 0x00, C00A, "12340010", __LINE__) Local0 = Index (Package (0x01) { P90B }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) M1A2 (Local1, C00C, 0x03, 0x00, C00A, "zxswefas0011", __LINE__) Local0 = Index (Package (0x01) { P90C }, 0x00, Local1) M1A2 (Local0, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x03F1) M1A2 (Local1, C00C, 0x03, 0x00, C00B, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }, 0x03F2) Local0 = Index (Package (0x01) { P90D }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0xFE7CB391D65A0000, __LINE__) Local0 = Index (Package (0x01) { P90E }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C009, 0xC1790001, __LINE__) Local0 = Index (Package (0x01) { P90F }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "12340002", __LINE__) Local0 = Index (Package (0x01) { P910 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00A, "qwrtyu0003", __LINE__) Local0 = Index (Package (0x01) { P911 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x03FB) M1A2 (Local1, C00C, 0x01, 0x00, C00B, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }, 0x03FC) If (Y118) { Local0 = Index (Package (0x01) { P912 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = Index (Package (0x01) { P913 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = Index (Package (0x01) { P914 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C00D, 0x00, __LINE__) Local0 = Index (Package (0x01) { P915 }, 0x00, Local1) M1A2 (Local0, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) M1A2 (Local1, C00C, 0x01, 0x00, C016, 0xB0, __LINE__) } /* Elements of Package are NOT Computational Data */ Local0 = Index (Package (0x01) { P916 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0405) M1A0 (Local1, C00C, Ones, 0x0406) Local0 = Index (Package (0x01) { P917 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0407) M1A0 (Local1, C00C, Ones, 0x0408) Local0 = Index (Package (0x01) { P918 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0409) M1A0 (Local1, C00C, Ones, 0x040A) Local0 = Index (Package (0x01) { P919 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x040B) M1A0 (Local1, C00C, Ones, 0x040C) Local0 = Index (Package (0x01) { P91A }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x040D) M1A0 (Local1, C00C, Ones, 0x040E) Local0 = Index (Package (0x01) { P91B }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x040F) M1A0 (Local1, C00C, Ones, 0x0410) Local0 = Index (Package (0x01) { P91C }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0411) M1A0 (Local1, C00C, Ones, 0x0412) /* Elements of Package are Methods */ Local0 = Index (Package (0x01) { P91D }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0413) M1A0 (Local1, C00C, Ones, 0x0414) Local0 = Index (Package (0x01) { P91E }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0415) M1A0 (Local1, C00C, Ones, 0x0416) Local0 = Index (Package (0x01) { P91F }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0417) M1A0 (Local1, C00C, Ones, 0x0418) Local0 = Index (Package (0x01) { P920 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0419) M1A0 (Local1, C00C, Ones, 0x041A) Local0 = Index (Package (0x01) { P921 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x041B) M1A0 (Local1, C00C, Ones, 0x041C) Local0 = Index (Package (0x01) { P922 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x041D) M1A0 (Local1, C00C, Ones, 0x041E) Local0 = Index (Package (0x01) { P923 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x041F) M1A0 (Local1, C00C, Ones, 0x0420) Local0 = Index (Package (0x01) { P924 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0421) M1A0 (Local1, C00C, Ones, 0x0422) Local0 = Index (Package (0x01) { P925 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0423) M1A0 (Local1, C00C, Ones, 0x0424) Local0 = Index (Package (0x01) { P926 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0425) M1A0 (Local1, C00C, Ones, 0x0426) Local0 = Index (Package (0x01) { P927 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0427) M1A0 (Local1, C00C, Ones, 0x0428) Local0 = Index (Package (0x01) { P928 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0429) M1A0 (Local1, C00C, Ones, 0x042A) Local0 = Index (Package (0x01) { P929 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x042B) M1A0 (Local1, C00C, Ones, 0x042C) Local0 = Index (Package (0x01) { P92A }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x042D) M1A0 (Local1, C00C, Ones, 0x042E) Local0 = Index (Package (0x01) { P92B }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x042F) M1A0 (Local1, C00C, Ones, 0x0430) Local0 = Index (Package (0x01) { P92C }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0431) M1A0 (Local1, C00C, Ones, 0x0432) Local0 = Index (Package (0x01) { P92D }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0433) M1A0 (Local1, C00C, Ones, 0x0434) Local0 = Index (Package (0x01) { P92E }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0435) M1A0 (Local1, C00C, Ones, 0x0436) Local0 = Index (Package (0x01) { P92F }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0437) M1A0 (Local1, C00C, Ones, 0x0438) Local0 = Index (Package (0x01) { P930 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0439) M1A0 (Local1, C00C, Ones, 0x043A) Local0 = Index (Package (0x01) { P931 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x043B) M1A0 (Local1, C00C, Ones, 0x043C) Local0 = Index (Package (0x01) { P932 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x043D) M1A0 (Local1, C00C, Ones, 0x043E) Local0 = Index (Package (0x01) { P933 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x043F) M1A0 (Local1, C00C, Ones, 0x0440) Local0 = Index (Package (0x01) { P934 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0441) M1A0 (Local1, C00C, Ones, 0x0442) Local0 = Index (Package (0x01) { P935 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0443) M1A0 (Local1, C00C, Ones, 0x0444) Local0 = Index (Package (0x01) { P936 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0445) M1A0 (Local1, C00C, Ones, 0x0446) Local0 = Index (Package (0x01) { P937 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0447) M1A0 (Local1, C00C, Ones, 0x0448) Local0 = Index (Package (0x01) { P938 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0449) M1A0 (Local1, C00C, Ones, 0x044A) Local0 = Index (Package (0x01) { P939 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x044B) M1A0 (Local1, C00C, Ones, 0x044C) Local0 = Index (Package (0x01) { P93A }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x044D) M1A0 (Local1, C00C, Ones, 0x044E) Local0 = Index (Package (0x01) { P93B }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x044F) M1A0 (Local1, C00C, Ones, 0x0450) Local0 = Index (Package (0x01) { P93C }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0451) M1A0 (Local1, C00C, Ones, 0x0452) Local0 = Index (Package (0x01) { P93D }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0453) M1A0 (Local1, C00C, Ones, 0x0454) Local0 = Index (Package (0x01) { P93E }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0455) M1A0 (Local1, C00C, Ones, 0x0456) Local0 = Index (Package (0x01) { P93F }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0457) M1A0 (Local1, C00C, Ones, 0x0458) Local0 = Index (Package (0x01) { P940 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0459) M1A0 (Local1, C00C, Ones, 0x045A) Local0 = Index (Package (0x01) { P941 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x045B) M1A0 (Local1, C00C, Ones, 0x045C) Local0 = Index (Package (0x01) { P942 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x045D) M1A0 (Local1, C00C, Ones, 0x045E) Local0 = Index (Package (0x01) { P943 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x045F) M1A0 (Local1, C00C, Ones, 0x0460) Local0 = Index (Package (0x01) { P944 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0461) M1A0 (Local1, C00C, Ones, 0x0462) Local0 = Index (Package (0x01) { P945 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0463) M1A0 (Local1, C00C, Ones, 0x0464) Local0 = Index (Package (0x01) { P946 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0465) M1A0 (Local1, C00C, Ones, 0x0466) Local0 = Index (Package (0x01) { P947 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0467) M1A0 (Local1, C00C, Ones, 0x0468) Local0 = Index (Package (0x01) { P948 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0469) M1A0 (Local1, C00C, Ones, 0x046A) Local0 = Index (Package (0x01) { P949 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x046B) M1A0 (Local1, C00C, Ones, 0x046C) Local0 = Index (Package (0x01) { P94A }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x046D) M1A0 (Local1, C00C, Ones, 0x046E) Local0 = Index (Package (0x01) { P94B }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x046F) M1A0 (Local1, C00C, Ones, 0x0470) Local0 = Index (Package (0x01) { P94C }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0471) M1A0 (Local1, C00C, Ones, 0x0472) Local0 = Index (Package (0x01) { P94D }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0473) M1A0 (Local1, C00C, Ones, 0x0474) Local0 = Index (Package (0x01) { P94E }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0475) M1A0 (Local1, C00C, Ones, 0x0476) Local0 = Index (Package (0x01) { P94F }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0477) M1A0 (Local1, C00C, Ones, 0x0478) Local0 = Index (Package (0x01) { P950 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x0479) M1A0 (Local1, C00C, Ones, 0x047A) Local0 = Index (Package (0x01) { P951 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x047B) M1A0 (Local1, C00C, Ones, 0x047C) Local0 = Index (Package (0x01) { P952 }, 0x00, Local1) M1A0 (Local0, C00C, Ones, 0x047D) M1A0 (Local1, C00C, Ones, 0x047E) /* Methods */ Local0 = Index (Package (0x01) { M900 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x047F) M1A0 (Local1, C010, Ones, 0x0480) Local0 = Index (Package (0x01) { M901 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0481) M1A0 (Local1, C010, Ones, 0x0482) Local0 = Index (Package (0x01) { M902 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0483) M1A0 (Local1, C010, Ones, 0x0484) Local0 = Index (Package (0x01) { M903 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0485) M1A0 (Local1, C010, Ones, 0x0486) Local0 = Index (Package (0x01) { M904 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0487) M1A0 (Local1, C010, Ones, 0x0488) Local0 = Index (Package (0x01) { M905 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0489) M1A0 (Local1, C010, Ones, 0x048A) Local0 = Index (Package (0x01) { M906 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x048B) M1A0 (Local1, C010, Ones, 0x048C) Local0 = Index (Package (0x01) { M907 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x048D) M1A0 (Local1, C010, Ones, 0x048E) Local0 = Index (Package (0x01) { M908 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x048F) M1A0 (Local1, C010, Ones, 0x0490) Local0 = Index (Package (0x01) { M909 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0491) M1A0 (Local1, C010, Ones, 0x0492) Local0 = Index (Package (0x01) { M90A }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0493) M1A0 (Local1, C010, Ones, 0x0494) Local0 = Index (Package (0x01) { M90B }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0495) M1A0 (Local1, C010, Ones, 0x0496) Local0 = Index (Package (0x01) { M90C }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0497) M1A0 (Local1, C010, Ones, 0x0498) Local0 = Index (Package (0x01) { M90D }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x0499) M1A0 (Local1, C010, Ones, 0x049A) Local0 = Index (Package (0x01) { M90E }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x049B) M1A0 (Local1, C010, Ones, 0x049C) Local0 = Index (Package (0x01) { M90F }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x049D) M1A0 (Local1, C010, Ones, 0x049E) Local0 = Index (Package (0x01) { M910 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x049F) M1A0 (Local1, C010, Ones, 0x04A0) Local0 = Index (Package (0x01) { M911 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A1) M1A0 (Local1, C010, Ones, 0x04A2) Local0 = Index (Package (0x01) { M912 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A3) M1A0 (Local1, C010, Ones, 0x04A4) Local0 = Index (Package (0x01) { M913 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A5) M1A0 (Local1, C010, Ones, 0x04A6) Local0 = Index (Package (0x01) { M914 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A7) M1A0 (Local1, C010, Ones, 0x04A8) Local0 = Index (Package (0x01) { M915 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04A9) M1A0 (Local1, C010, Ones, 0x04AA) Local0 = Index (Package (0x01) { M916 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04AB) M1A0 (Local1, C010, Ones, 0x04AC) Local0 = Index (Package (0x01) { M917 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04AD) M1A0 (Local1, C010, Ones, 0x04AE) Local0 = Index (Package (0x01) { M918 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04AF) M1A0 (Local1, C010, Ones, 0x04B0) Local0 = Index (Package (0x01) { M919 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B1) M1A0 (Local1, C010, Ones, 0x04B2) Local0 = Index (Package (0x01) { M91A }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B3) M1A0 (Local1, C010, Ones, 0x04B4) Local0 = Index (Package (0x01) { M91B }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B5) M1A0 (Local1, C010, Ones, 0x04B6) Local0 = Index (Package (0x01) { M91C }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B7) M1A0 (Local1, C010, Ones, 0x04B8) Local0 = Index (Package (0x01) { M91D }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04B9) M1A0 (Local1, C010, Ones, 0x04BA) Local0 = Index (Package (0x01) { M91E }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04BB) M1A0 (Local1, C010, Ones, 0x04BC) Local0 = Index (Package (0x01) { M91F }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04BD) M1A0 (Local1, C010, Ones, 0x04BE) Local0 = Index (Package (0x01) { M920 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04BF) M1A0 (Local1, C010, Ones, 0x04C0) Local0 = Index (Package (0x01) { M921 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C1) M1A0 (Local1, C010, Ones, 0x04C2) Local0 = Index (Package (0x01) { M922 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C3) M1A0 (Local1, C010, Ones, 0x04C4) Local0 = Index (Package (0x01) { M923 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C5) M1A0 (Local1, C010, Ones, 0x04C6) Local0 = Index (Package (0x01) { M924 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C7) M1A0 (Local1, C010, Ones, 0x04C8) Local0 = Index (Package (0x01) { M925 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04C9) M1A0 (Local1, C010, Ones, 0x04CA) Local0 = Index (Package (0x01) { M926 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04CB) M1A0 (Local1, C010, Ones, 0x04CC) Local0 = Index (Package (0x01) { M927 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04CD) M1A0 (Local1, C010, Ones, 0x04CE) Local0 = Index (Package (0x01) { M928 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04CF) M1A0 (Local1, C010, Ones, 0x04D0) Local0 = Index (Package (0x01) { M929 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D1) M1A0 (Local1, C010, Ones, 0x04D2) Local0 = Index (Package (0x01) { M92A }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D3) M1A0 (Local1, C010, Ones, 0x04D4) Local0 = Index (Package (0x01) { M92B }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D5) M1A0 (Local1, C010, Ones, 0x04D6) Local0 = Index (Package (0x01) { M92C }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D7) M1A0 (Local1, C010, Ones, 0x04D8) Local0 = Index (Package (0x01) { M92D }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04D9) M1A0 (Local1, C010, Ones, 0x04DA) Local0 = Index (Package (0x01) { M92E }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04DB) M1A0 (Local1, C010, Ones, 0x04DC) Local0 = Index (Package (0x01) { M92F }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04DD) M1A0 (Local1, C010, Ones, 0x04DE) Local0 = Index (Package (0x01) { M930 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04DF) M1A0 (Local1, C010, Ones, 0x04E0) Local0 = Index (Package (0x01) { M931 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E1) M1A0 (Local1, C010, Ones, 0x04E2) Local0 = Index (Package (0x01) { M932 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E3) M1A0 (Local1, C010, Ones, 0x04E4) Local0 = Index (Package (0x01) { M933 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E5) M1A0 (Local1, C010, Ones, 0x04E6) Local0 = Index (Package (0x01) { M934 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E7) M1A0 (Local1, C010, Ones, 0x04E8) Local0 = Index (Package (0x01) { M935 }, 0x00, Local1) M1A0 (Local0, C010, Ones, 0x04E9) M1A0 (Local1, C010, Ones, 0x04EA) M1A6 () } Method (M195, 5, NotSerialized) { C081 = Z080 /* absolute index of file initiating the checking */ /* \Z080 */ C089 = 0x01 /* flag of Reference, object otherwise */ /* * Store(0xd7, f900) * Store(0xd8, if90) */ If (Arg0) { M190 () } If (Arg1) { M191 (C083) } If (Arg2) { M192 () } If (Arg3) { M193 (C083) } If (Arg4) { M194 () } } /* Usual mode */ Method (M196, 0, NotSerialized) { C084 = 0x01 /* run verification of references (reading) */ C085 = 0x00 /* create the chain of references to LocalX, then dereference them */ Debug = "Usual mode:" M195 (0x01, 0x01, 0x01, 0x01, 0x01) } /* The mode with the chain of references to LocalX */ Method (M197, 0, NotSerialized) { C084 = 0x01 /* run verification of references (reading) */ C085 = 0x01 /* create the chain of references to LocalX, then dereference them */ Debug = "The mode with the chain of references to LocalX:" M195 (0x01, 0x01, 0x01, 0x01, 0x01) } /* Run-method */ Method (REF4, 0, NotSerialized) { Debug = "TEST: REF4, References" C080 = "REF4" /* name of test */ C082 = 0x00 /* flag of test of exceptions */ C083 = 0x00 /* run verification of references (write/read) */ C086 = 0x00 /* flag, run test till the first error */ C087 = 0x01 /* apply DeRefOf to ArgX-ObjectReference */ M196 () M197 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref07.asl0000700000175000017500000013467714773714157030362 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * References * * TEST, Package total */ Name (Z116, 0x74) /* * Flags and values used by m1c3 */ Name (FL00, 0x00) /* flag of testing of exceptions */ Name (V000, 0x00) /* type of the Standard Data object */ Name (V001, 0x00) /* index of element of Package */ /* * Read immediate image element of Package * * Package specified by the immediate * images {Integer, String, Buffer, Package}. * Perform all the ways reading element of * Package passed by ArgX. */ Method (M1C1, 0, Serialized) { Name (PPP0, Package (0x04) { 0x77, "qwer0000", Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }, Package (0x03) { 0x05, 0x77, 0x07 } }) FL00 = 0x00 /* flag of testing of exceptions */ V000 = C009 /* type of the Standard Data object */ /* \C009 */ V001 = 0x00 /* index of element of Package */ M1C3 (PPP0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) V000 = C00A /* type of the Standard Data object */ /* \C00A */ V001 = 0x01 /* index of element of Package */ M1C3 (PPP0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) V000 = C00B /* type of the Standard Data object */ /* \C00B */ V001 = 0x02 /* index of element of Package */ M1C3 (PPP0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) V000 = C00C /* type of the Standard Data object */ /* \C00C */ V001 = 0x03 /* index of element of Package */ M1C3 (PPP0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) } /* * Read NamedX element of Package * {Integer, String, Buffer, Package}. */ Method (M1C2, 0, Serialized) { Name (I000, 0x77) Name (S000, "qwer0000") Name (B000, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (P000, Package (0x03) { 0x05, 0x77, 0x07 }) Name (PPP0, Package (0x04) { I000, S000, B000, P000 }) FL00 = 0x00 /* flag of testing of exceptions */ V000 = C009 /* type of the Standard Data object */ /* \C009 */ V001 = 0x00 /* index of element of Package */ M1C3 (PPP0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) V000 = C00A /* type of the Standard Data object */ /* \C00A */ V001 = 0x01 /* index of element of Package */ M1C3 (PPP0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) V000 = C00B /* type of the Standard Data object */ /* \C00B */ V001 = 0x02 /* index of element of Package */ M1C3 (PPP0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) V000 = C00C /* type of the Standard Data object */ /* \C00C */ V001 = 0x03 /* index of element of Package */ M1C3 (PPP0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00) M380 (__METHOD__, I000, 0x00, __LINE__) M381 (__METHOD__, S000, 0x00, __LINE__) M382 (__METHOD__, B000, 0x00, __LINE__) M383 (__METHOD__, P000, 0x00, __LINE__) } /* All the ways reading element of Package given by ArgX */ /* arg0 - Package */ /* arg1, */ /* arg2, */ /* arg3, */ /* arg4, */ /* arg5, */ /* arg6 - auxiliary, for arbitrary use */ Method (M1C3, 7, Serialized) { Name (I000, 0x00) Name (I001, 0x00) Name (I002, 0x00) Name (I003, 0x00) Name (I004, 0x00) Name (I005, 0x00) Name (I006, 0x00) Name (P000, Package (0x02){}) Name (PPP0, Package (0x02){}) /* LocalX */ Store (Arg0 [V001], Local3) M390 (DerefOf (Local3), V000, 0x00, __LINE__) Local4 = DerefOf (Local3) M390 (Local4, V000, 0x00, __LINE__) M390 (DerefOf (Arg0 [V001]), V000, 0x00, 0x06) Local3 = Local2 = Arg0 [V001] /* \V001 */ M390 (DerefOf (Local3), V000, 0x00, __LINE__) Local4 = DerefOf (Local3) M390 (Local4, V000, 0x00, __LINE__) M390 (DerefOf (Local2), V000, 0x00, __LINE__) Local4 = DerefOf (Local2) M390 (Local4, V000, 0x00, __LINE__) /* ArgX */ Store (Arg0 [V001], Arg3) M390 (DerefOf (Arg3), V000, 0x00, __LINE__) Arg4 = DerefOf (Arg3) M390 (Arg4, V000, 0x00, __LINE__) M390 (DerefOf (Arg0 [V001]), V000, 0x00, 0x0D) Arg3 = Arg2 = Arg0 [V001] /* \V001 */ M390 (DerefOf (Arg3), V000, 0x00, __LINE__) Arg4 = DerefOf (Arg3) M390 (Arg4, V000, 0x00, __LINE__) M390 (DerefOf (Arg2), V000, 0x00, __LINE__) Arg4 = DerefOf (Arg2) M390 (Arg4, V000, 0x00, __LINE__) /* NamedX */ If (Y127) { CopyObject (PPP0 [0x00], I003) /* \M1C3.I003 */ Store (Arg0 [V001], I003) /* \M1C3.I003 */ M390 (DerefOf (I003), V000, 0x00, __LINE__) I004 = DerefOf (I003) M390 (I004, V000, 0x00, __LINE__) M390 (DerefOf (Arg0 [V001]), V000, 0x00, 0x14) I003 = I002 = Arg0 [V001] /* \V001 */ M390 (DerefOf (I003), V000, 0x00, __LINE__) I004 = DerefOf (I003) M390 (I004, V000, 0x00, __LINE__) M390 (DerefOf (I002), V000, 0x00, __LINE__) I004 = DerefOf (I002) M390 (I004, V000, 0x00, __LINE__) } /* * El_of_Package * * Identical to the first checking, but only * store intermediately the references to element * of Package arg0 Index(arg0, x) into Index(p000, y) * but not into LocalX. */ P000 [0x01] = P000 [0x00] = Arg0 [V001] /* \V001 */ /* DerefOf(DerefOf(Index(x,Destination))) */ M390 (DerefOf (DerefOf (P000 [0x00])), V000, 0x00, 0x19) /* DerefOf(DerefOf(Index(x,Result))) */ M390 (DerefOf (DerefOf (P000 [0x01])), V000, 0x00, 0x1A) /* El_of_Package, Destination, LocalX */ /* * After Store(Index(p000, 0), Local5) * Local5 below - reference to element of * Package p000 containing reference to the * 0-th element of Arg0-Package. * * Correspondingly, after Store(DerefOf(Local5), Local3) * Local3 - reference to the 0-th element of Arg0-Package. * * Further, DerefOf(Local3) - 0-th element of Arg0-Package. */ If (FL00) { Store (P000 [0x00], Local5) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (Local5 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (DerefOf (Local5) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Local5, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Local5), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Local5 = Local2 = P000 [0x00] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (Local5 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (DerefOf (Local5) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Local5, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Local5), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (Local2 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (DerefOf (Local2) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Local2, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Local2), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } If (Q001) { Store (P000 [0x00], Local5) Local3 = DerefOf (Local5) M390 (DerefOf (Local3), V000, 0x00, __LINE__) Local4 = DerefOf (Local3) M390 (Local4, V000, 0x00, __LINE__) Local5 = Local2 = P000 [0x00] Local3 = DerefOf (Local5) M390 (DerefOf (Local3), V000, 0x00, __LINE__) Local4 = DerefOf (Local3) M390 (Local4, V000, 0x00, __LINE__) Local3 = DerefOf (Local2) M390 (DerefOf (Local3), V000, 0x00, __LINE__) Local4 = DerefOf (Local3) M390 (Local4, V000, 0x00, __LINE__) } /* if(q001) */ /* El_of_Package, Result, LocalX */ If (FL00) { Store (P000 [0x01], Local5) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (Local5 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (DerefOf (Local5) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Local5, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Local5), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Local5 = Local2 = P000 [0x01] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (Local5 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (DerefOf (Local5) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Local5, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Local5), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (Local2 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local6 = (DerefOf (Local2) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Local2, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Local2), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } If (Q001) { Store (P000 [0x01], Local5) Local3 = DerefOf (Local5) M390 (DerefOf (Local3), V000, 0x00, __LINE__) Local4 = DerefOf (Local3) M390 (Local4, V000, 0x00, __LINE__) Local5 = Local2 = P000 [0x01] Local3 = DerefOf (Local5) M390 (DerefOf (Local3), V000, 0x00, __LINE__) Local4 = DerefOf (Local3) M390 (Local4, V000, 0x00, __LINE__) Local3 = DerefOf (Local2) M390 (DerefOf (Local3), V000, 0x00, __LINE__) Local4 = DerefOf (Local3) M390 (Local4, V000, 0x00, __LINE__) } /* if(q001) */ /* El_of_Package, Destination, argX */ If (FL00) { Store (P000 [0x00], Arg5) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (Arg5 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (DerefOf (Arg5) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Arg5, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Arg5), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Arg5 = Arg2 = P000 [0x00] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (Arg5 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (DerefOf (Arg5) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Arg5, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Arg5), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (Arg2 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (DerefOf (Arg2) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Arg2, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Arg2), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } If (Q001) { Store (P000 [0x00], Arg5) Arg3 = DerefOf (Arg5) M390 (DerefOf (Arg3), V000, 0x00, __LINE__) Arg4 = DerefOf (Arg3) M390 (Arg4, V000, 0x00, __LINE__) Arg5 = Arg2 = P000 [0x00] Arg3 = DerefOf (Arg5) M390 (DerefOf (Arg3), V000, 0x00, __LINE__) Arg4 = DerefOf (Arg3) M390 (Arg4, V000, 0x00, __LINE__) Arg3 = DerefOf (Arg2) M390 (DerefOf (Arg3), V000, 0x00, __LINE__) Arg4 = DerefOf (Arg3) M390 (Arg4, V000, 0x00, __LINE__) } /* if(q001) */ /* El_of_Package, Result, argX */ If (FL00) { Store (P000 [0x01], Arg5) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (Arg5 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (DerefOf (Arg5) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Arg5, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Arg5), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Arg5 = Arg2 = P000 [0x01] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (Arg5 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (DerefOf (Arg5) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Arg5, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Arg5), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (Arg2 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Arg6 = (DerefOf (Arg2) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (Arg2, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (Arg2), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } If (Q001) { Store (P000 [0x01], Arg5) Arg3 = DerefOf (Arg5) M390 (DerefOf (Arg3), V000, 0x00, __LINE__) Arg4 = DerefOf (Arg3) M390 (Arg4, V000, 0x00, __LINE__) Arg5 = Arg2 = P000 [0x01] Arg3 = DerefOf (Arg5) M390 (DerefOf (Arg3), V000, 0x00, __LINE__) Arg4 = DerefOf (Arg3) M390 (Arg4, V000, 0x00, __LINE__) Arg3 = DerefOf (Arg2) M390 (DerefOf (Arg3), V000, 0x00, __LINE__) Arg4 = DerefOf (Arg3) M390 (Arg4, V000, 0x00, __LINE__) } /* if(q001) */ If (Y127) { /* El_of_Package, Destination, NamedX */ If (FL00) { CopyObject (PPP0 [0x00], I005) /* \M1C3.I005 */ Store (P000 [0x00], I005) /* \M1C3.I005 */ CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (I005 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (DerefOf (I005) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (I005, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (I005), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) I005 = I002 = P000 [0x00] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (I005 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (DerefOf (I005) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (I005, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (I005), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (I002 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (DerefOf (I002) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (I002, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (I002), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } If (Q001) { Store (P000 [0x00], I005) /* \M1C3.I005 */ I003 = DerefOf (I005) M390 (DerefOf (I003), V000, 0x00, __LINE__) I004 = DerefOf (I003) M390 (I004, V000, 0x00, __LINE__) I005 = I002 = P000 [0x00] I003 = DerefOf (I005) M390 (DerefOf (I003), V000, 0x00, __LINE__) I004 = DerefOf (I003) M390 (I004, V000, 0x00, __LINE__) I003 = DerefOf (I002) M390 (DerefOf (I003), V000, 0x00, __LINE__) I004 = DerefOf (I003) M390 (I004, V000, 0x00, __LINE__) } /* if(q001) */ /* El_of_Package, Result, NamedX */ If (FL00) { Store (P000 [0x01], I005) /* \M1C3.I005 */ CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (I005 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (DerefOf (I005) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (I005, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (I005), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) I005 = I002 = P000 [0x01] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (I005 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (DerefOf (I005) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (I005, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (I005), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (I002 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) I006 = (DerefOf (I002) + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (I002, V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) M390 (DerefOf (I002), V000, 0x00, __LINE__) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } If (Q001) { Store (P000 [0x01], I005) /* \M1C3.I005 */ I003 = DerefOf (I005) M390 (DerefOf (I003), V000, 0x00, __LINE__) I004 = DerefOf (I003) M390 (I004, V000, 0x00, __LINE__) I005 = I002 = P000 [0x01] I003 = DerefOf (I005) M390 (DerefOf (I003), V000, 0x00, __LINE__) I004 = DerefOf (I003) M390 (I004, V000, 0x00, __LINE__) I003 = DerefOf (I002) M390 (DerefOf (I003), V000, 0x00, __LINE__) I004 = DerefOf (I003) M390 (I004, V000, 0x00, __LINE__) } /* if(q001) */ } /* if(y127) */ } /* Check Uninitialized element of Package */ Method (M1C4, 0, Serialized) { Name (PPP0, Package (0x0A) { 0x77, "qwer0000", Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }, Package (0x03) { 0x05, 0x77, 0x07 } }) Method (M000, 2, NotSerialized) { Store (Arg0 [Arg1], Local0) M1A3 (Local0, C008, Z116, "m1c4", __LINE__) } M000 (PPP0, 0x04) M000 (PPP0, 0x05) M000 (PPP0, 0x06) M000 (PPP0, 0x07) M000 (PPP0, 0x08) M000 (PPP0, 0x09) } /* The chain of Index_References */ Method (M1C5, 0, Serialized) { Name (PPP0, Package (0x04) { 0x77, "qwer0000", Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }, Package (0x03) { 0x05, 0x77, 0x07 } }) Name (P000, Package (0x14){}) Store (PPP0 [0x00], P000 [0x00]) M390 (DerefOf (DerefOf (P000 [0x00])), C009, Z116, 0x5E) If (Q002) { Store (P000 [0x00], P000 [0x01]) M390 (DerefOf (DerefOf (DerefOf (P000 [0x01]))), C009, Z116, 0x5F) Store (P000 [0x01], P000 [0x02]) M390 (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x02])))), C009, Z116, 0x60) Store (P000 [0x02], P000 [0x03]) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x03]))))), C009, Z116, 0x61) Store (P000 [0x03], P000 [0x04]) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x04])))))), C009, Z116, 0x62) Store (P000 [0x04], P000 [0x05]) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x05]))))))), C009, Z116, 0x63) Store (P000 [0x05], P000 [0x06]) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x06] )))))))), C009, Z116, 0x64) Store (P000 [0x06], P000 [0x07]) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [ 0x07]))))))))), C009, Z116, 0x65) } M390 (DerefOf (DerefOf (P000 [0x00])), C009, Z116, 0x66) If (Q002) { M390 (DerefOf (DerefOf (DerefOf (P000 [0x01]))), C009, Z116, 0x67) M390 (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x02])))), C009, Z116, 0x68) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x03]))))), C009, Z116, 0x69) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x04])))))), C009, Z116, 0x6A) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x05]))))))), C009, Z116, 0x6B) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [0x06] )))))))), C009, Z116, 0x6C) M390 (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (DerefOf (P000 [ 0x07]))))))))), C009, Z116, 0x6D) } } /* Access to the Method named object element of Package */ /* Methods without parameters */ Method (M1C7, 0, Serialized) { Name (I000, 0x77) Method (M000, 0, NotSerialized) { I000 = 0x00 } Method (M001, 0, NotSerialized) { I000 = 0x01 Return (0x12345678) } Method (M002, 0, NotSerialized) { I000 = 0x00 } Method (M003, 0, NotSerialized) { I000 = 0x01 Return (0x12345678) } Name (P000, Package (0x0A) { M000, M001, M002, M003, M000, M001, M002, M003, I000, I000 }) Store (P000 [0x00], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) Store (P000 [0x01], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) Store (P000 [0x02], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) Store (P000 [0x03], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) Store (P000 [0x04], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) Store (P000 [0x05], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) Store (P000 [0x06], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) Store (P000 [0x07], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) Store (P000 [0x08], Local0) M1A3 (Local0, C009, Z116, __METHOD__, __LINE__) Store (P000 [0x09], Local0) M1A3 (Local0, C009, Z116, __METHOD__, __LINE__) M380 (__METHOD__, I000, 0x00, __LINE__) } /* CURRENTLY: compiler failed, Too few arguments (M002 requires X) */ /* Methods with parameters */ Method (M1C8, 0, Serialized) { /* Name(i000, 0x77) Method(m000) { Store(0, i000) } Method(m001) { Store(1, i000) return (0x12345678) } Method(m002, 1) { Store(arg0, i000) Store(0, i000) } Method(m003, 7) { Store(arg0, i000) Store(arg1, i000) Store(arg2, i000) Store(arg3, i000) Store(arg4, i000) Store(arg5, i000) Store(arg6, i000) Store(1, i000) return (0x12345678) } Name(p000, Package() {m000, m001, m002, m003, m000, m001, m002, m003, i000, i000}) Store(Index(p000, 0), Local0) m1a3(Local0, c010, z116, ts, `120) Store(Index(p000, 1), Local0) m1a3(Local0, c010, z116, ts, 121) Store(Index(p000, 2), Local0) m1a3(Local0, c010, z116, ts, 122) Store(Index(p000, 3), Local0) m1a3(Local0, c010, z116, ts, 123) Store(Index(p000, 4), Local0) m1a3(Local0, c010, z116, ts, 124) Store(Index(p000, 5), Local0) m1a3(Local0, c010, z116, ts, 125) Store(Index(p000, 6), Local0) m1a3(Local0, c010, z116, ts, 126) Store(Index(p000, 7), Local0) m1a3(Local0, c010, z116, ts, 127) Store(Index(p000, 8), Local0) m1a3(Local0, c009, z116, ts, 128) Store(Index(p000, 9), Local0) m1a3(Local0, c009, z116, ts, 129) m380 (ts, i000, 0, __LINE__) */ } /* DerefOf of the Method named object element of Package */ Method (M1C9, 0, Serialized) { Name (I000, 0x77) Method (M000, 0, NotSerialized) { I000 = 0x00 } Method (M001, 0, NotSerialized) { I000 = 0x01 Return (0x12345678) } Method (M002, 0, NotSerialized) { I000 = 0x00 } Method (M003, 0, NotSerialized) { I000 = 0x01 Return (0x12345678) } Name (P000, Package (0x0A) { M000, M001, M002, M003, M000, M001, M002, M003, I000, I000 }) Store (P000 [0x00], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Store (P000 [0x01], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Store (P000 [0x02], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Store (P000 [0x03], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Store (P000 [0x04], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Store (P000 [0x05], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Store (P000 [0x06], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Store (P000 [0x07], Local0) M1A3 (Local0, C010, Z116, __METHOD__, __LINE__) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local1 = DerefOf (Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) M380 (__METHOD__, I000, 0x00, __LINE__) } /* Size of Package */ Method (M1CA, 0, Serialized) { Method (M000, 1, Serialized) { Name (P000, Package (Arg0){}) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Store (P000 [Arg0], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } Method (M001, 1, Serialized) { Name (P000, Package (Arg0){}) Name (LPN0, 0x00) Name (LPC0, 0x00) /* Write each element of Package with its index */ LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { P000 [LPC0] = LPC0 /* \M1CA.M001.LPC0 */ LPN0-- LPC0++ } /* Verify each element of Package */ LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { Store (P000 [LPC0], Local0) Local1 = DerefOf (Local0) If ((Local1 != LPC0)) { ERR (__METHOD__, Z116, __LINE__, Z116, 0x00, Local1, LPC0) Break } LPN0-- LPC0++ } } Method (M003, 0, Serialized) { Name (P000, Package (0x02){}) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Store (P000 [0x02], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } Method (M004, 0, Serialized) { Name (P000, Package (0xFF){}) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Store (P000 [0xFF], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } /* Size not greater than 255 */ M000 (0x01) M000 (0x08) M000 (0x7F) M000 (0xFF) M003 () M004 () /* VarPackage: size of Package greater than 255 */ /* (bug 129, not a bug) */ M001 (0x0100) } /* Size of Package, see comma "6,})" */ Method (M1CB, 0, Serialized) { Name (P000, Package (0x06) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }) Local0 = SizeOf (P000) If ((Local0 != 0x06)) { ERR (__METHOD__, Z116, __LINE__, 0x00, 0x00, Local0, 0x06) } } /* Check the read automatic dereference */ /* arg0 - name of Method initiating the checking */ /* arg1 - Oref or IRef */ /* arg2 - expected value */ /* arg3 - exception is expected */ Method (M1CC, 4, NotSerialized) { CH03 (Arg0, Z116, __LINE__, 0x00, 0x00) Local0 = Arg1 Local7 = (Local0 + 0x01) If ((Local7 != Arg2)) { ERR (Arg0, Z116, __LINE__, 0x00, 0x00, Local7, Arg2) } CH03 (Arg0, Z116, __LINE__, 0x00, 0x00) } /* Check the read automatic dereference */ /* arg0 - name of Method initiating the checking */ /* arg1 - Oref or IRef */ /* arg2 - expected value */ /* arg3 - exception is expected */ Method (M1CD, 4, NotSerialized) { CH03 (Arg0, Z116, __LINE__, 0x00, 0x00) Local7 = (Arg1 + 0x01) If ((Local7 != Arg2)) { ERR (Arg0, Z116, __LINE__, 0x00, 0x00, Local7, Arg2) } CH03 (Arg0, Z116, __LINE__, 0x00, 0x00) } /* Check the read automatic dereference */ /* when accessing element of Package. */ Method (M1CE, 0, Serialized) { Name (P000, Package (0x01) { 0x77 }) M1CC (__METHOD__, Local0 = P000 [0x00], 0x78, 0x00) M1CD (__METHOD__, P000 [0x00], 0x78, 0x00) } Method (M1CF, 0, Serialized) { Name (P000, Package (0x01) { 0x77 }) Local0 = P000 [0x00] M1CC (__METHOD__, Local0, 0x78, 0x00) M1CD (__METHOD__, Local0, 0x78, 0x00) Local1 = Local0 = P000 [0x00] M1CC (__METHOD__, Local0, 0x78, 0x00) M1CD (__METHOD__, Local0, 0x78, 0x00) M1CC (__METHOD__, Local1, 0x78, 0x00) M1CD (__METHOD__, Local1, 0x78, 0x00) } Method (M1D0, 0, Serialized) { Name (P000, Package (0x01) { 0x77 }) CopyObject (Local0 = P000 [0x00], Local1) M1CC (__METHOD__, Local0, 0x78, 0x00) M1CD (__METHOD__, Local0, 0x78, 0x00) M1CC (__METHOD__, Local1, 0x78, 0x00) M1CD (__METHOD__, Local1, 0x78, 0x00) } /* EXCEPTIONS */ /* ref07.asl 1093: Add(Index(p000, 0, Local0), 1, Local7) */ /* Error 1035 - Invalid type ^ ([Reference] found, */ /* Add operator requires [Integer|String|Buffer]) */ /* * Method(m1d1) * { * Name(p000, Package(1) {0x77}) * CH03(ts, z116, 170, __LINE__, 0) * Add(Index(p000, 0, Local0), 1, Local7) * CH04(ts, 0, 0xff, z116, __LINE__, 0, 0) * } */ /* LocalX */ Method (M1D1, 0, Serialized) { Name (P000, Package (0x01) { 0x77 }) Local1 = Local0 = P000 [0x00] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local7 = (Local0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Local7 = (Local1 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } Method (M1D2, 0, Serialized) { Name (P000, Package (0x01) { 0x77 }) CopyObject (Local0 = P000 [0x00], Local1) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local7 = (Local0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Local7 = (Local1 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } /* ArgX */ Method (M1D3, 2, Serialized) { Name (P000, Package (0x01) { 0x77 }) Arg1 = Arg0 = P000 [0x00] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local7 = (Arg0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Local7 = (Arg1 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } Method (M1D4, 2, Serialized) { Name (P000, Package (0x01) { 0x77 }) CopyObject (Arg0 = P000 [0x00], Arg1) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local7 = (Arg0 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) /* Type of Arg1 should be IRef here, */ /* so, exception is expected. */ Local7 = (Arg1 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } /* NamedX */ Method (M1D5, 0, Serialized) { Name (I001, 0x00) Name (P000, Package (0x02) { 0x77, 0x88 }) Name (SW00, 0x01) Name (HG00, 0x00) /* if non-zero - the test hangs */ Name (HG01, 0x00) /* if non-zero - the test hangs */ Name (HG02, 0x00) /* if non-zero - the test hangs */ CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) CopyObject (Local0 = P000 [0x01], I001) /* \M1D5.I001 */ CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) /* Type of i001 should be already IRef here, */ /* so, don't expect exception. */ I001 = Local0 = P000 [0x00] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local7 = (Local0 + 0x01) If (Y248) { HG00 = 0x01 HG01 = 0x01 HG02 = 0x01 } /* * To show visually the consequences of the anomaly * run one of code below. They cause hang. */ If (HG00) { /* Infinite loop of printing */ Local1 = 0x00 Debug = Local0 } If (HG01) { /* Infinite loop of printing */ Debug = Local0 Debug = Local0 } If (HG02) { Local1 = 0x00 Debug = "============== sit 2:" Local7 = ObjectType (Local0) Debug = Local7 } CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Local7 = (I001 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) /* * Looks identical to b248: "Incorrect ReferenceCount on Switch operation": * * Reference count of Local0 is mistakenly zeroed there too. * * [ACPI Debug] String: [0x0F] "<-------- 0000>" * [ACPI Debug] Reference: [Debug] * [ACPI Debug] String: [0x0F] "<-------- 1111>" * * [ACPI Debug] String: [0x0F] "<-------- 0000>" * [ACPI Debug] [ACPI Debug] String: [0x0F] "<-------- 1111>" */ Debug = "<-------- 0000>" Debug = Local0 Debug = "<-------- 1111>" } Method (M1D6, 0, Serialized) { Name (I001, 0x00) Name (P000, Package (0x01) { 0x77 }) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) CopyObject (Local0 = P000 [0x00], I001) /* \M1D6.I001 */ CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local7 = (I001 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } /* Out of Package */ Method (M1D7, 0, Serialized) { Name (P000, Package (0x01) { 0x77 }) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Store (P000 [0x01], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) Local1 = Local0 = P000 [0x01] CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } Method (M1D8, 0, Serialized) { Name (P000, Package (0x01) { 0x77 }) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) CopyObject (P000 [0x01], Local0) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) CopyObject (Local0 = P000 [0x01], Local1) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } Method (M1DB, 0, Serialized) { Name (I001, 0x00) Name (P000, Package (0x02) { 0x77, 0x88 }) CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) CopyObject (P000 [0x01], I001) /* \M1DB.I001 */ CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) /* Type of i001 should be already IRef here, */ /* so, don't expect exception. Writing to i001 */ /* is here identical to Store into it. */ I001 = P000 [0x00] CH03 (__METHOD__, Z116, __LINE__, 0x00, 0x00) Local7 = (I001 + 0x01) CH04 (__METHOD__, 0x00, 0xFF, Z116, __LINE__, 0x00, 0x00) } /* WRITE */ Method (M1D9, 0, Serialized) { Name (P000, Package (0x03) { 0x05, 0x00, 0x07 }) Method (M000, 1, NotSerialized) { Local0 = (0x76 + 0x01) Arg0 = Local0 } M000 (P000 [0x01]) M383 ("m1d9", P000, Z116, __LINE__) } Method (M1DA, 0, Serialized) { Name (P000, Package (0x03) { 0x05, 0x00, 0x07 }) Method (M000, 1, NotSerialized) { Arg0 = (0x76 + 0x01) } M000 (P000 [0x01]) M383 ("m1da", P000, Z116, __LINE__) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/reference/ref00.asl0000700000175000017500000004605714773714156030344 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The common methods of the Reference tests * * * Methods used for to verify particular References: * * m1a0, m1a1, m1a2 */ /* SEE: Investigate and report all y. SEE: see everywhere "index of checking" and z0XX - through all ref files: corresponds?!!!!!!!!! SEE: add into m1a6 and all m000 the checking like these: Store(\i900, Debug) Store(\d900.i900, Debug) */ Name (Z076, 0x4C) /* Check Boolean (CondRefOf) and the type of value */ /* arg0 - reference to the value of arbitrary type */ /* arg1 - expected type of value */ /* arg2 - returned Boolean */ /* arg3 - index of checking (inside the file) */ Method (M1A0, 4, NotSerialized) { Local7 = M1A4 (Arg2, Arg3) SET0 (C081, 0x00, Arg3) If (Local7) { Local0 = ObjectType (Arg0) If ((Local0 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local0, Arg1) } /* if (c08b) */ /* ATTENTION: exactly the same in m1a0 and m1a2 */ Else { If (C089) { /* Flag of Reference, object otherwise */ If (C082) { /* Test of exceptions */ M1A8 (Arg0, 0x00, 0x00) } If (C085) { /* Create the chain of references to LocalX, */ /* then dereference them. */ Local0 = RefOf (Arg0) Local1 = RefOf (Local0) Local2 = RefOf (Local1) Local3 = RefOf (Local2) Local4 = RefOf (Local3) Local5 = RefOf (Local4) Local6 = RefOf (Local5) Local7 = RefOf (Local6) Local6 = DerefOf (Local7) Local5 = DerefOf (Local6) Local4 = DerefOf (Local5) Local3 = DerefOf (Local4) Local2 = DerefOf (Local3) Local1 = DerefOf (Local2) Local0 = DerefOf (Local1) Local7 = DerefOf (Local0) /* Create the chain of references to LocalX, */ /* then dereference them. */ Local0 = M1A5 (Local7) } } /* if(c089) */ /* ATTENTION: exactly the same in m1a0 and m1a2 */ /* (but, don't replace it by call to Method) */ Method (M002, 1, NotSerialized) { Arg0 = 0xABCD001A } /* Run verification of references (write/read) */ If ((C083 == 0x01)) { C08A = 0xABCD001A Arg0 = C08A /* \C08A */ } ElseIf ((C083 == 0x02)) { C08A = 0xABCD001B CopyObject (C08A, Arg0) } ElseIf ((C083 == 0x03)) { C08A = 0xABCD001C Arg0 = C08A /* \C08A */ C08A = 0xABCD001D CopyObject (C08A, Arg0) } Local7 = 0x00 If ((C08B == 0x01)) { Local0 = RefOf (Arg0) Local1 = ObjectType (Local0) If ((Local1 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } Else { Local7 = 0x01 } } ElseIf ((C08B == 0x02)) { Local1 = CondRefOf (Arg0, Local0) If ((Local1 != Ones)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } Else { Local1 = ObjectType (Local0) If ((Local1 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } Else { Local7 = 0x01 } } } If (Local7) { /* Obtain RefOf_Reference to ArgX */ Local0 = RefOf (Arg0) Local1 = ObjectType (Local0) If ((Local1 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } Else { /* Check DerefOf */ Local1 = ObjectType (DerefOf (Local0)) If ((Local1 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } /* Check that writing into M2-ArgX-RefOf_Reference */ /* changes the original object (M1-ArgX): */ M002 (Local0) Local1 = ObjectType (Arg0) If ((Local1 != C009)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, C009) } ElseIf ((Arg0 != 0xABCD001A)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Arg0, 0xABCD001A) } Else { /* Check that M1-LocalX-RefOf_Reference remains */ /* up to date after writing into M2-ArgX in M2 and */ /* thus updating the contents of the object */ /* referenced by M1-LocalX. */ Local1 = ObjectType (Local0) If ((Local1 != C009)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, C009) } Else { Local1 = SizeOf (Local0) If ((Local1 != ISZ0)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, ISZ0) } } } } } } } /* if(Local7) */ RST0 () } /* Verifying reference to the Object nested inside Packages */ /* arg0 - reference to the Object (may be to Package) */ /* arg1 - type of the value referred by arg0 */ /* arg2 - nesting level of the Packages */ /* (Package always is a 0-th element */ /* of previous Package) */ /* arg3 - index of the Object inside the last Package */ /* arg4 - type of the Object */ /* arg5 - the benchmark value of Object for verification */ /* arg6 - index of checking (inside the file) */ Method (M1A2, 7, Serialized) { SET0 (C081, 0x00, Arg6) Name (LPN0, 0x00) Name (LPC0, 0x00) Local0 = ObjectType (Arg0) If ((Local0 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local0, Arg1) } /* if (c08b) */ /* ATTENTION: exactly the same in m1a0 and m1a2 */ Else { If (C089) { /* Flag of Reference, object otherwise */ If (C082) { /* Test of exceptions */ M1A8 (Arg0, 0x00, 0x00) } If (C085) { /* Create the chain of references to LocalX, */ /* then dereference them. */ Local0 = RefOf (Arg0) Local1 = RefOf (Local0) Local2 = RefOf (Local1) Local3 = RefOf (Local2) Local4 = RefOf (Local3) Local5 = RefOf (Local4) Local6 = RefOf (Local5) Local7 = RefOf (Local6) Local6 = DerefOf (Local7) Local5 = DerefOf (Local6) Local4 = DerefOf (Local5) Local3 = DerefOf (Local4) Local2 = DerefOf (Local3) Local1 = DerefOf (Local2) Local0 = DerefOf (Local1) Local7 = DerefOf (Local0) /* Create the chain of references to LocalX, */ /* then dereference them. */ Local0 = M1A5 (Local7) } Else { Local0 = Arg0 } } Else { Local0 = Arg0 } /* if(c089) */ If (C084) { /* run verification of references (reading) */ If (C089) { /* Flag of Reference, object otherwise */ /* * 17.2.5.9.1 ArgX Objects * * 1) Read from ArgX parameters * ObjectReference - Automatic dereference, return * the target of the reference. * Use of DeRefOf returns the same. */ If (C087) { /* "Use of DeRefOf returns the same" */ Local2 = DerefOf (Local0) } Else { /* Automatic dereference */ Local2 = Local0 } } Else { Local2 = Local0 } /* if(c089) */ LPN0 = Arg2 While (LPN0) { If ((LPN0 == 0x01)) { Store (Local2 [Arg3], Local1) } Else { Store (Local2 [0x00], Local1) } Local2 = DerefOf (Local1) LPN0-- LPC0++ } Local0 = ObjectType (Local2) If ((Local0 != Arg4)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local0, Arg4) } ElseIf ((Local2 != Arg5)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local2, Arg5) } } /* if(c084) */ /* ATTENTION: exactly the same in m1a0 and m1a2 */ /* (but, don't replace it by call to Method) */ Method (M002, 1, NotSerialized) { Arg0 = 0xABCD001A } /* Run verification of references (write/read) */ If ((C083 == 0x01)) { C08A = 0xABCD001A Arg0 = C08A /* \C08A */ } ElseIf ((C083 == 0x02)) { C08A = 0xABCD001B CopyObject (C08A, Arg0) } ElseIf ((C083 == 0x03)) { C08A = 0xABCD001C Arg0 = C08A /* \C08A */ C08A = 0xABCD001D CopyObject (C08A, Arg0) } Local7 = 0x00 If ((C08B == 0x01)) { Local0 = RefOf (Arg0) Local1 = ObjectType (Local0) If ((Local1 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } Else { Local7 = 0x01 } } ElseIf ((C08B == 0x02)) { Local1 = CondRefOf (Arg0, Local0) If ((Local1 != Ones)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } Else { Local1 = ObjectType (Local0) If ((Local1 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } Else { Local7 = 0x01 } } } If (Local7) { /* Obtain RefOf_Reference to ArgX */ Local0 = RefOf (Arg0) Local1 = ObjectType (Local0) If ((Local1 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } Else { /* Check DerefOf */ Local1 = ObjectType (DerefOf (Local0)) If ((Local1 != Arg1)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, Arg1) } /* Check that writing into M2-ArgX-RefOf_Reference */ /* changes the original object (M1-ArgX): */ M002 (Local0) Local1 = ObjectType (Arg0) If ((Local1 != C009)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, C009) } ElseIf ((Arg0 != 0xABCD001A)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Arg0, 0xABCD001A) } Else { /* Check that M1-LocalX-RefOf_Reference remains */ /* up to date after writing into M2-ArgX in M2 and */ /* thus updating the contents of the object */ /* referenced by M1-LocalX. */ Local1 = ObjectType (Local0) If ((Local1 != C009)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, C009) } Else { Local1 = SizeOf (Local0) If ((Local1 != ISZ0)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local1, ISZ0) } } } } } } RST0 () } /* Check only Boolean (CondRefOf) */ /* arg0 - returned Boolean */ /* arg1 - index of checking (inside the file) */ Method (M1A4, 2, NotSerialized) { SET0 (C081, 0x00, Arg1) Local7 = 0x01 Local0 = ObjectType (Arg0) If ((Local0 != C009)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Local0, C009) Local7 = 0x00 } ElseIf ((Arg0 != Ones)) { ERR (C080, Z076, __LINE__, 0x00, 0x00, Arg0, Ones) Local7 = 0x00 } RST0 () Return (Local7) } /* Create the chain of references to LocalX, then dereference them */ Method (M1A5, 1, NotSerialized) { Local0 = RefOf (Arg0) Local1 = RefOf (Local0) Local2 = RefOf (Local1) Local3 = RefOf (Local2) Local4 = RefOf (Local3) Local5 = RefOf (Local4) Local6 = RefOf (Local5) Local7 = RefOf (Local6) Local6 = DerefOf (Local7) Local5 = DerefOf (Local6) Local4 = DerefOf (Local5) Local3 = DerefOf (Local4) Local2 = DerefOf (Local3) Local1 = DerefOf (Local2) Local0 = DerefOf (Local1) Local7 = DerefOf (Local0) Return (Local7) } /* * Set Global variables assignment applied in the tests * * arg0 - c080 - name of test * arg1 - c083 - run verification of references (write/read) * arg2 - c084 - run verification of references (reading) * arg3 - c085 - create the chain of references to LocalX, then dereference them * arg4 - c087 - apply DeRefOf to ArgX-ObjectReference * arg5 - c081 - absolute index of file initiating the checking */ Method (M1AD, 6, NotSerialized) { Local0 = ObjectType (Arg0) If ((Local0 == C00A)) { C080 = Arg0 } C083 = Arg1 C084 = Arg2 C085 = Arg3 C087 = Arg4 If (Arg5) { C081 = Arg5 } } /* Test skipped message */ Method (M1AE, 3, NotSerialized) { Concatenate ("Test ", Arg0, Local0) Concatenate (Local0, " skipped due to the following issue:", Debug) Concatenate (" ", Arg1, Debug) Local0 = ObjectType (Arg2) If ((Local0 == C00A)) { Concatenate (" ", Arg2, Debug) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/0000700000175000017500000000000014773714157026042 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/ssdt2.asl0000700000175000017500000000523314773714157027610 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The Load operator tests auxiliary SSDT, * specifies the _REG Methods for globally and * dynamically decleared OpRegions. */ DefinitionBlock( "ssdt2.aml", // Output filename "SSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Device (AUXD) { OperationRegion (OPR0, 0x80, 0x1000000, 0x4) Field (OPR0, DWordAcc, NoLock, Preserve) { RF00, 32} Name (REGC, 0xFFFFFFFF) Name (REGP, 0) Name (REGD, 0xFFFFFFFF) Name (REGR, 0) Method(_REG, 2) { Store("\\AUXD._REG:", Debug) Store(arg0, Debug) Store(arg1, Debug) if (LEqual(arg0, 0x80)) { Store(REGC, REGP) Store(arg1, REGC) } } Method(M000) { Method(_REG, 2) { Store("\\AUXD.M000._REG:", Debug) Store(arg0, Debug) Store(arg1, Debug) if (LEqual(arg0, 0x80)) { Store(REGD, REGR) Store(arg1, REGD) } } OperationRegion (OPR1, 0x80, 0x1000010, 0x4) Field (OPR1, DWordAcc, NoLock, Preserve) { RF01, 32} Store("\\AUXD.M000:", Debug) Store(RF01, Debug) Store(REGR, Debug) } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/DECL.asl0000700000175000017500000000357514773714157027267 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/table/load.asl") Include ("../../../../runtime/collections/functional/table/unload.asl") Include ("../../../../runtime/collections/functional/table/loadtable.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/ssdt4.asl0000700000175000017500000000370014773714157027607 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The LoadTable operator tests auxiliary SSDT, * specifies an object with the same \_XT2 name * also declared in the "OEM1" Definition Block. */ DefinitionBlock( "ssdt4.aml", // Output filename "SSDT", // Signature 0x02, // DSDT Revision "iASLTS", // OEMID "LTBL0001", // TABLE ID 0x00000001 // OEM Revision ) { Scope(\) { Name(_XT2, "absolute location obj") } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/RUN.asl0000700000175000017500000000367214773714157027222 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Table management: Load, Unload and LoadTable", TCLF, 0x0D, W00D)) { TLD0 () TUL0 () TLT0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/ssdt0.asl0000700000175000017500000000367014773714157027611 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The Load operator tests auxiliary SSDT, * specifies a template for modification and * dynamical loading a number of different SSDTs. */ DefinitionBlock( "ssdt0.aml", // Output filename "SSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Method (\SSS0) { Return ("\\SSS0") } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/ssdt1.asl0000700000175000017500000000374714773714157027617 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The Load operator tests auxiliary SSDT, * specifies the Method object dynamically * loaded to the both absolute and current * namespace location. */ DefinitionBlock( "ssdt1.aml", // Output filename "SSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Scope(\) { Name(NABS, "absolute location obj") } Name(NCRR, "current location obj") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/load.asl0000700000175000017500000025060514773714157027475 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Load ASL operator functionality */ /* * This sub-test is intended to comprehensively verify * the Load ASL operator functionality. * * Performs a run-time load of a Definition Block. * * 17.5.67 Load (Load Definition Block) * Syntax * Load (Object, DDBHandle) * * On testing the following issues should be covered: * * - loading SSDT from a SystemMemory OpRegion, * * - loading SSDT from a Region Field in a OpRegion of any type, * * - "namespace location to load the Definition Block is relative * to the current namespace" scope, * * - loading a number of different SSDTs, * * - global and dynamic declarations of OpRegions and the appropriate * _REG Methods invocation for the loaded SSDT, * * - global and dynamic declarations of OpRegions and Region Fields, * containing the loaded SSDT, * * - an Object of any type can be used as the DDBHandle argument, * * - the DDBHandle argument of the Load operator becomes an Object * of the DDBHandle type, * * - the DDBHandle Object returned from the Load operator can be used * to unload the SSDT, * * - exceptional conditions caused by inappropriate data: * = the Object argument does not refer to an operation region field * or an operation region, * = an OpRegion passed as the Object argument is not of SystemMemory type, * = the table contained in an OpRegion (Field) is not an SSDT, * = the length of the supplied SSDT is greater than the length of the * respective OpRegion or Region Field, * = the length of the supplied SSDT is less than the length the Header * = the checksum of the supplied SSDT is invalid, * = AE_OWNER_ID_LIMIT exception when too many Tables loaded, * = the specified SSDT is already loaded, * = there already is an previously loaded Object referred by the path * in the Namespace. * * Can not be tested following issues: * - providing of the table referenced by Load to be "in memory marked by * AddressRangeReserved or AddressRangeNVS", * - overriding the supplied SSDT with "a newer revision Definition Block * of the same OEM Table ID" by the OS, * - loading a SSDT to be a synchronous operation ("the control methods * defined in the Definition Block are not executed during load time") */ /* Integer */ External (\AUXD.INT0, UnknownObj) /* String */ External (\AUXD.STR0, UnknownObj) /* Buffer */ External (\AUXD.BUF0, UnknownObj) /* Package */ External (\AUXD.PAC0, UnknownObj) /* Device */ External (\AUXD.DEV0, UnknownObj) /* Event */ External (\AUXD.EVE0, UnknownObj) /* Method */ External (\AUXD.MMM0, UnknownObj) /* Mutex */ External (\AUXD.MTX0, UnknownObj) /* Power Resource */ External (\AUXD.PWR0, UnknownObj) /* Processor */ External (\AUXD.CPU0, UnknownObj) /* Thermal Zone */ External (\AUXD.TZN0, UnknownObj) /* Buffer Field */ External (\AUXD.BFL0, UnknownObj) /* Field Unit */ External (\AUXD.FLU0, UnknownObj) /* OpRegion */ External (\AUXD.OPR0, UnknownObj) Name (Z174, 0xAE) Device (DTM0) { /* Originated from ssdt0.asl: iasl -tc ssdt0.asl */ Name (BUF0, Buffer (0x34) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x34, 0x00, 0x00, 0x00, // SSDT4... /* 0008 */ 0x02, 0x98, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x14, 0x0F, 0x5C, 0x53, // ... ..\S /* 0028 */ 0x53, 0x53, 0x30, 0x00, 0xA4, 0x0D, 0x5C, 0x53, // SS0...\S /* 0030 */ 0x53, 0x53, 0x30, 0x00 // SS0. }) Name (SNML, "0123456789ABCDEF") Name (NNML, 0x10) /* <= sizeof (SNML) */ /* Take into account AE_OWNER_ID_LIMIT */ Name (HI0M, 0x0100) /* <= (NNML * NNML) */ Name (HI0P, Package (HI0M){}) Name (HI0N, 0x00) Name (INIF, 0x00) OperationRegion (IST0, SystemMemory, 0x00, 0x34) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 416 } Field (IST0, ByteAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8, OID, 48, OTID, 64, OREV, 32, CID, 32, CREV, 32, Offset (0x27), SSNM, 32 } /* components/utilities/utmisc.c AcpiUtGenerateChecksum() analog */ Method (CHSM, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Local0 = 0x00 /* sum */ LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { Local1 = DerefOf (Arg0 [LPC0]) Local0 += Local1 Local0 %= 0x0100 LPN0-- LPC0++ } Local0 = (0x00 - Local0) Local0 %= 0x0100 Debug = "checksum" Debug = Local0 Return (Local0) } /* Initializes multiple Tables Load test */ Method (INIT, 0, NotSerialized) { Local0 = SizeOf (SNML) If ((NNML > Local0)) { Debug = Concatenate ("INIT: test error, check NNML <= Sizeof(SNML):", ToDecimalString (Local0)) Return (0x01) } Local0 *= Local0 If ((HI0M > Local0)) { Debug = Concatenate ("INIT: test error, check HI0M <= 0x", Local0) Return (0x01) } If (INIF) { Debug = "INIT: OpRegion has been initialized previously" Return (0x01) } RFU0 = BUF0 /* \DTM0.BUF0 */ INIF = 0x01 Debug = "INIT: OpRegion initialized with SSDT" Return (0x00) } /* Prepares and Loads the next Table of multiple Tables Load test */ Method (LD, 0, Serialized) { If ((HI0N >= HI0M)) { Debug = "LD: too many tables loaded" Return (0x01) } Local2 = (HI0N * 0x30) OperationRegion (IST0, SystemMemory, Local2, 0x34) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 416 } Field (IST0, ByteAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8, OID, 48, OTID, 64, OREV, 32, CID, 32, CREV, 32, Offset (0x27), SSNM, 32, Offset (0x2F), SSRT, 32 } RFU0 = BUF0 /* \DTM0.BUF0 */ /* Modify Revision field of SSDT */ Store ((CREV + 0x01), CREV) /* \DTM0.LD__.CREV */ /* Modify SSNM Object Name */ Divide (HI0N, NNML, Local0, Local1) Local1 = DerefOf (SNML [Local1]) Local1 <<= 0x10 Local0 = DerefOf (SNML [Local0]) Local0 <<= 0x18 Local0 += Local1 Local0 += 0x5353 SSNM = Local0 Debug = SSNM /* \DTM0.LD__.SSNM */ /* Modify SSNM Method Return String */ SSRT = Local0 /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.LD__.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.LD__.SUM_ */ Load (RFU0, HI0P [HI0N]) HI0N++ Debug = "LD: SSDT Loaded" Return (0x00) } /* UnLoads the last Table of multiple Tables Load test */ Method (UNLD, 0, NotSerialized) { If ((HI0N == 0x00)) { Debug = "UNLD: there are no SSDT loaded" Return (0x01) } HI0N-- Unload (DerefOf (HI0P [HI0N])) Debug = "UNLD: SSDT UnLoaded" Return (0x00) } External (\SSS0, MethodObj) Name (HI0, 0x00) /* Simple Load test auxiliary method */ /* Arg1: DDBH, 0 - Local Named, 1 - Global Named, */ /* 2 - LocalX, 3 - element of Package */ Method (M000, 2, Serialized) { Name (HI0, 0x00) Name (PHI0, Package (0x01){}) Concatenate (Arg0, "-m000", Arg0) RFU0 = BUF0 /* \DTM0.BUF0 */ If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (Zero) } /* Modify Revision field of SSDT */ Store ((CREV + 0x01), CREV) /* \DTM0.CREV */ /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (Zero) } /* Load operator execution */ Switch (ToInteger (Arg1)) { Case (0x00) { Load (RFU0, HI0) /* \DTM0.M000.HI0_ */ } Case (0x01) { Load (RFU0, \DTM0.HI0) } Case (0x02) { Load (RFU0, Local2) } Case (0x03) { Load (RFU0, PHI0 [0x00]) } Default { Debug = "Unexpected parameter of the test" ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (Zero) } } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (Zero) } Debug = "Table Loaded" /* Check DDBHandle ObjectType */ Switch (ToInteger (Arg1)) { Case (0x00) { Local1 = ObjectType (HI0) } Case (0x01) { Local1 = ObjectType (\DTM0.HI0) } Case (0x02) { Local1 = ObjectType (Local2) } Case (0x03) { Local1 = ObjectType (PHI0 [0x00]) } } If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, C017) } /* Check the new Object appears */ If (CondRefOf (\SSS0, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x00) } Local1 = ObjectType (Local0) If ((Local1 != C010)) { /* Method */ ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, C010) } Else { Local0 = \SSS0 () If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x01)) { Return (Zero) } If (("\\SSS0" != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, "\\SSS0") } } /* UnLoad operator execution */ Switch (ToInteger (Arg1)) { Case (0x00) { Unload (HI0) } Case (0x01) { Unload (\DTM0.HI0) } Case (0x02) { Unload (Local2) } Case (0x03) { Unload (DerefOf (PHI0 [0x00])) } } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (Zero) } Debug = "Table Unloaded" If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) } Return (Zero) } /* Simple Load test auxiliary method for ArgX, part1 */ /* Arg1 - reference to store the DDBHandle */ Method (M001, 2, NotSerialized) { Concatenate (Arg0, "-m001", Arg0) RFU0 = BUF0 /* \DTM0.BUF0 */ If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } /* Modify Revision field of SSDT */ Store ((CREV + 0x01), CREV) /* \DTM0.CREV */ /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Load operator execution */ Load (RFU0, Arg1) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Debug = "SSDT Loaded" Return (0x00) } /* Simple Load test auxiliary method for ArgX, part2 */ /* Arg1 - DDBHandle */ Method (M002, 2, NotSerialized) { Concatenate (Arg0, "-m002", Arg0) /* Check DDBHandle ObjectType */ Local1 = ObjectType (Arg1) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, C017) } /* Check the new Object appears */ If (CondRefOf (\SSS0, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x00) } Local1 = ObjectType (Local0) If ((Local1 != C010)) { /* Method */ ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, C010) } Else { Local0 = \SSS0 () If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x01)) { Return (Zero) } If (("\\SSS0" != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, "\\SSS0") } } Unload (Arg1) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (Zero) } Debug = "SSDT Unloaded" If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) } Return (Zero) } /* Loading SSDT from a SystemMemory OpRegion, */ /* different targets for DDBHandle. */ /* Check DDBHandle storing into different Object locations: */ /* DDBHandle storing into Named Integer */ Method (TST0, 1, NotSerialized) { Concatenate (Arg0, "-tst0", Arg0) /* Local Named Integer */ M000 (Arg0, 0x00) /* Global Named Integer */ M000 (Arg0, 0x01) } /* DDBHandle storing into LocalX */ Method (TST1, 1, NotSerialized) { Concatenate (Arg0, "-tst1", Arg0) /* LocalX */ M000 (Arg0, 0x02) } /* DDBHandle storing into Package element */ Method (TST2, 1, NotSerialized) { Concatenate (Arg0, "-tst2", Arg0) /* Package element */ /* Crash on copying the specific reference Object */ If (Y261) { M000 (Arg0, 0x03) } } /* DDBHandle storing into an Object by Reference in Argx */ Method (TST3, 1, Serialized) { Name (HI0, 0x00) Concatenate (Arg0, "-tst3", Arg0) /* Named by Reference in ArgX */ If (M001 (Arg0, RefOf (HI0))) { Return (Zero) } M002 (Arg0, HI0) /* LocalX by Reference in ArgX */ If (M001 (Arg0, RefOf (Local2))) { Return (Zero) } M002 (Arg0, Local2) /* Package element by Reference in ArgX */ If (Y133) { Name (PHI0, Package (0x01) { 0x00 }) Store (PHI0 [0x00], Local0) If (M001 (Arg0, Local0)) { Return (Zero) } M002 (Arg0, DerefOf (Local0)) } Return (Zero) } /* Combination of the OperationRegion operator arguments */ OperationRegion (RGN0, SystemMemory, 0x00, 0x0201) OperationRegion (RGN1, SystemIO, 0x0200, 0x0203) OperationRegion (RGN2, PCI_Config, 0x0400, 0x0205) OperationRegion (RGN3, EmbeddedControl, 0x0600, 0x0207) OperationRegion (RGN4, SMBus, 0x0800, 0x0209) OperationRegion (RGN5, SystemCMOS, 0x0A00, 0x020B) OperationRegion (RGN6, PCIBARTarget, 0x0C00, 0x020D) /* UserDefRegionSpace */ OperationRegion (RGN7, 0x80, 0x0D00, 0x0217) OperationRegion (RGN8, 0xCF, 0x0E00, 0x0218) OperationRegion (RGN9, 0xFF, 0x0F00, 0x0219) /* Loading SSDT from a Field of an OpRegion of any type, */ /* different targets for DDBHandle. */ /* Check DDBHandle storing into different Object locations: */ /* Named Integer, LocalX, by Reference in Argx, etc. */ /* m003(CallChain, Index, Region) */ Method (M003, 3, NotSerialized) { Concatenate (Arg0, "-m003", Arg0) /* Auxiliary method: */ /* Arg1 - choice of a target */ /* Arg2 - OpRegion Object of a specified type */ Method (M000, 3, Serialized) { Name (HI0, 0x00) Name (PHI0, Package (0x01){}) OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m000", Arg0) CopyObject (Arg2, OPRM) /* \DTM0.M003.M000.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { RFU0, 416 } Field (OPRM, ByteAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8, OID, 48, OTID, 64, OREV, 32, CID, 32, CREV, 32, Offset (0x27), SSNM, 32 } RFU0 = BUF0 /* \DTM0.BUF0 */ If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (Zero) } /* Modify Revision field of SSDT */ Store ((CREV + 0x01), CREV) /* \DTM0.M003.M000.CREV */ /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.M003.M000.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.M003.M000.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (Zero) } /* Load operator execution */ Switch (ToInteger (Arg1)) { Case (0x00) { Load (RFU0, HI0) /* \DTM0.M003.M000.HI0_ */ } Case (0x01) { Load (RFU0, \DTM0.HI0) } Case (0x02) { Load (RFU0, Local2) } Case (0x03) { Load (RFU0, PHI0 [0x00]) } Default { Debug = "Unexpected parameter of the test" ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (Zero) } } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (Zero) } Debug = "SSDT Loaded" /* Check DDBHandle ObjectType */ Switch (ToInteger (Arg1)) { Case (0x00) { Local1 = ObjectType (HI0) } Case (0x01) { Local1 = ObjectType (\DTM0.HI0) } Case (0x02) { Local1 = ObjectType (Local2) } Case (0x03) { Local1 = ObjectType (PHI0 [0x00]) } } If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, C017) } /* Check the new Object appears */ If (CondRefOf (\SSS0, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x00) } Local1 = ObjectType (Local0) If ((Local1 != C010)) { /* Method */ ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, C010) } Else { Local0 = \SSS0 () If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x01)) { Return (Zero) } If (("\\SSS0" != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, "\\SSS0") } } /* UnLoad operator execution */ Switch (ToInteger (Arg1)) { Case (0x00) { Unload (HI0) } Case (0x01) { Unload (\DTM0.HI0) } Case (0x02) { Unload (Local2) } Case (0x03) { Unload (DerefOf (PHI0 [0x00])) } } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (Zero) } Debug = "SSDT Unloaded" If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) } Return (Zero) } /* Auxiliary method for ArgX, part1 */ /* Arg1 - reference to store the DDBHandle */ /* Arg2 - OpRegion Object of a specified type */ Method (M001, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m001", Arg0) CopyObject (Arg2, OPRM) /* \DTM0.M003.M001.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { RFU0, 416 } Field (OPRM, ByteAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8, OID, 48, OTID, 64, OREV, 32, CID, 32, CREV, 32, Offset (0x27), SSNM, 32 } RFU0 = BUF0 /* \DTM0.BUF0 */ If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } /* Modify Revision field of SSDT */ Store ((CREV + 0x01), CREV) /* \DTM0.M003.M001.CREV */ /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.M003.M001.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.M003.M001.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Load operator execution */ Load (RFU0, Arg1) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Debug = "SSDT Loaded" Return (0x00) } /* Arg1 - OpRegion Object of a specified type */ Method (M003, 2, Serialized) { Concatenate (Arg0, "-m003", Arg0) /* Local Named Integer */ M000 (Arg0, 0x00, Arg1) /* Global Named Integer */ M000 (Arg0, 0x01, Arg1) /* LocalX */ M000 (Arg0, 0x02, Arg1) /* Package element */ /* Crash on copying the specific reference Object */ If (Y261) { M000 (Arg0, 0x03, Arg1) } /* ArgX */ If (M001 (Arg0, RefOf (Local2), Arg1)) { Return (Zero) } M002 (Arg0, Local2) /* Package element as ArgX */ If (Y133) { Name (PHI0, Package (0x01) { 0x00 }) Store (PHI0 [0x00], Local0) If (M001 (Arg0, Local0, Arg1)) { Return (Zero) } M002 (Arg0, DerefOf (Local0)) } Return (Zero) } /* Region type's Address Space Handler installed flags, */ /* only those types' OpRegion can be tested. */ /* 0xff - UserDefRegionSpace */ Local2 = Buffer (0x0A) { /* 0000 */ 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, // ........ /* 0008 */ 0x00, 0x00 // .. } Local3 = DerefOf (Local2 [Arg1]) If (Local3) { Concatenate (Arg0, "-0x", Local4) Concatenate (Local4, Mid (ToHexString (Arg1), (0x06 + (F64 * 0x08) ), 0x02), Local4) Debug = Local4 M003 (Local4, Arg2) } Else { Debug = "This Region type\'s AddrSpace Handler not installed" ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local2, Arg1) } } /* SystemMemory Region */ Method (TST4, 1, NotSerialized) { Concatenate (Arg0, "-tst4", Arg0) M003 (Arg0, 0x00, RGN0) } /* SystemIO Region */ Method (TST5, 1, NotSerialized) { Concatenate (Arg0, "-tst5", Arg0) M003 (Arg0, 0x01, RGN1) } /* EmbeddedControl Region */ Method (TST6, 1, NotSerialized) { Concatenate (Arg0, "-tst6", Arg0) M003 (Arg0, 0x03, RGN3) } /* User defined Region */ Method (TST7, 1, NotSerialized) { Concatenate (Arg0, "-tst7", Arg0) M003 (Arg0, 0x07, RGN7) } /* Note: We load the table objects relative to the root of the namespace. */ /* This appears to go against the ACPI specification, but we do it for */ /* compatibility with other ACPI implementations. */ /* Originated from ssdt1.asl: iasl -tc ssdt1.asl */ Name (BUF1, Buffer (0x5F) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x5F, 0x00, 0x00, 0x00, // SSDT_... /* 0008 */ 0x02, 0x33, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // .3Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x10, 0x1F, 0x5C, 0x00, // ... ..\. /* 0028 */ 0x08, 0x4E, 0x41, 0x42, 0x53, 0x0D, 0x61, 0x62, // .NABS.ab /* 0030 */ 0x73, 0x6F, 0x6C, 0x75, 0x74, 0x65, 0x20, 0x6C, // solute l /* 0038 */ 0x6F, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, // ocation /* 0040 */ 0x6F, 0x62, 0x6A, 0x00, 0x08, 0x4E, 0x43, 0x52, // obj..NCR /* 0048 */ 0x52, 0x0D, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6E, // R.curren /* 0050 */ 0x74, 0x20, 0x6C, 0x6F, 0x63, 0x61, 0x74, 0x69, // t locati /* 0058 */ 0x6F, 0x6E, 0x20, 0x6F, 0x62, 0x6A, 0x00 // on obj. }) OperationRegion (IST1, SystemMemory, 0x0100, 0x5F) Field (IST1, ByteAcc, NoLock, Preserve) { RFU1, 760 } Method (TST8, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tst8", Arg0) /* Check absence */ If (CondRefOf (NABS, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "NABS", 0x01) } If (CondRefOf (NCRR, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "NCRR", 0x01) } RFU1 = BUF1 /* \DTM0.BUF1 */ Load (RFU1, DDBH) /* \DTM0.TST8.DDBH */ Debug = "SSDT loaded" /* Check existence */ If (CondRefOf (NABS, Local0)) { If (("absolute location obj" != DerefOf (Local0))) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, DerefOf (Local0), "absolute location obj") } } Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "NABS", 0x00) } If (CondRefOf (NCRR, Local0)) { If (("current location obj" != DerefOf (Local0))) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, DerefOf (Local0), "current location obj") } } Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "NCRR", 0x00) } /* Check location */ If (CondRefOf (\NABS, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "NABS", 0x00) } /*Note: We load the table objects relative to the root of the namespace. */ If (CondRefOf (\NCRR, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\NCRR", 0x01) } If (CondRefOf (\DTM0.NCRR, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\DTM0.NCRR", 0x01) } If (CondRefOf (\DTM0.TST8.NCRR, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\DTM0.TST8.NCRR", 0x00) } Unload (DDBH) Debug = "SSDT unloaded" /* Check absence */ If (CondRefOf (NABS, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "NABS", 0x01) } If (CondRefOf (NCRR, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "NCRR", 0x01) } } /* Check global and dynamic declarations of OpRegions */ /* and the appropriate _REG Methods invocation for the */ /* loaded SSDT */ /* Originated from ssdt2.asl: iasl -tc ssdt2.asl */ Name (BUF2, Buffer (0x0117) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x17, 0x01, 0x00, 0x00, // SSDT.... /* 0008 */ 0x02, 0x7B, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // .{Intel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x5B, 0x82, 0x41, 0x0F, // ... [.A. /* 0028 */ 0x41, 0x55, 0x58, 0x44, 0x5B, 0x80, 0x4F, 0x50, // AUXD[.OP /* 0030 */ 0x52, 0x30, 0x80, 0x0C, 0x00, 0x00, 0x00, 0x01, // R0...... /* 0038 */ 0x0A, 0x04, 0x5B, 0x81, 0x0B, 0x4F, 0x50, 0x52, // ..[..OPR /* 0040 */ 0x30, 0x03, 0x52, 0x46, 0x30, 0x30, 0x20, 0x08, // 0.RF00 . /* 0048 */ 0x52, 0x45, 0x47, 0x43, 0x0C, 0xFF, 0xFF, 0xFF, // REGC.... /* 0050 */ 0xFF, 0x08, 0x52, 0x45, 0x47, 0x50, 0x0A, 0x00, // ..REGP.. /* 0058 */ 0x08, 0x52, 0x45, 0x47, 0x44, 0x0C, 0xFF, 0xFF, // .REGD... /* 0060 */ 0xFF, 0xFF, 0x08, 0x52, 0x45, 0x47, 0x52, 0x0A, // ...REGR. /* 0068 */ 0x00, 0x14, 0x33, 0x5F, 0x52, 0x45, 0x47, 0x02, // ..3_REG. /* 0070 */ 0x70, 0x0D, 0x5C, 0x41, 0x55, 0x58, 0x44, 0x2E, // p.\AUXD. /* 0078 */ 0x5F, 0x52, 0x45, 0x47, 0x3A, 0x00, 0x5B, 0x31, // _REG:.[1 /* 0080 */ 0x70, 0x68, 0x5B, 0x31, 0x70, 0x69, 0x5B, 0x31, // ph[1pi[1 /* 0088 */ 0xA0, 0x14, 0x93, 0x68, 0x0A, 0x80, 0x70, 0x52, // ...h..pR /* 0090 */ 0x45, 0x47, 0x43, 0x52, 0x45, 0x47, 0x50, 0x70, // EGCREGPp /* 0098 */ 0x69, 0x52, 0x45, 0x47, 0x43, 0x14, 0x49, 0x07, // iREGC.I. /* 00A0 */ 0x4D, 0x30, 0x30, 0x30, 0x00, 0x14, 0x38, 0x5F, // M000..8_ /* 00A8 */ 0x52, 0x45, 0x47, 0x02, 0x70, 0x0D, 0x5C, 0x41, // REG.p.\A /* 00B0 */ 0x55, 0x58, 0x44, 0x2E, 0x4D, 0x30, 0x30, 0x30, // UXD.M000 /* 00B8 */ 0x2E, 0x5F, 0x52, 0x45, 0x47, 0x3A, 0x00, 0x5B, // ._REG:.[ /* 00C0 */ 0x31, 0x70, 0x68, 0x5B, 0x31, 0x70, 0x69, 0x5B, // 1ph[1pi[ /* 00C8 */ 0x31, 0xA0, 0x14, 0x93, 0x68, 0x0A, 0x80, 0x70, // 1...h..p /* 00D0 */ 0x52, 0x45, 0x47, 0x44, 0x52, 0x45, 0x47, 0x52, // REGDREGR /* 00D8 */ 0x70, 0x69, 0x52, 0x45, 0x47, 0x44, 0x5B, 0x80, // piREGD[. /* 00E0 */ 0x4F, 0x50, 0x52, 0x31, 0x80, 0x0C, 0x10, 0x00, // OPR1.... /* 00E8 */ 0x00, 0x01, 0x0A, 0x04, 0x5B, 0x81, 0x0B, 0x4F, // ....[..O /* 00F0 */ 0x50, 0x52, 0x31, 0x03, 0x52, 0x46, 0x30, 0x31, // PR1.RF01 /* 00F8 */ 0x20, 0x70, 0x0D, 0x5C, 0x41, 0x55, 0x58, 0x44, // p.\AUXD /* 0100 */ 0x2E, 0x4D, 0x30, 0x30, 0x30, 0x3A, 0x00, 0x5B, // .M000:.[ /* 0108 */ 0x31, 0x70, 0x52, 0x46, 0x30, 0x31, 0x5B, 0x31, // 1pRF01[1 /* 0110 */ 0x70, 0x52, 0x45, 0x47, 0x52, 0x5B, 0x31 // pREGR[1 }) OperationRegion (IST2, SystemMemory, 0x0200, 0x0117) Field (IST2, ByteAcc, NoLock, Preserve) { RFU2, 2232 } External (\AUXD.M000, MethodObj) Method (TST9, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tst9", Arg0) RFU2 = BUF2 /* \DTM0.BUF2 */ If (CondRefOf (\AUXD, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) Return (Zero) } If (CH03 (Arg0, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } Load (RFU2, DDBH) /* \DTM0.TST9.DDBH */ If (CH03 (Arg0, 0x00, __LINE__, 0x00, 0x00)) { Return (Zero) } If (CondRefOf (\AUXD, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\AUXD", 0x00) Return (Zero) } Local1 = ObjectType (Local0) If ((Local1 != 0x06)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, 0x06) Return (Zero) } If (CondRefOf (\AUXD.REGC, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\AUXD.REGC", 0x00) Return (Zero) } Local1 = DerefOf (Local0) If ((0x01 != Local1)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, 0x01) } If (CondRefOf (\AUXD.REGD, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\AUXD.REGD", 0x00) Return (Zero) } Local1 = DerefOf (Local0) If ((0xFFFFFFFF != Local1)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, 0xFFFFFFFF) } ElseIf (CondRefOf (\AUXD.M000, Local2)) { \AUXD.M000 () Local1 = DerefOf (Local0) If ((0x01 != Local1)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local1, 0x01) } } Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\AUXD.M000", 0x00) } Unload (DDBH) If (CondRefOf (\AUXD, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\AUXD", 0x01) } Return (Zero) } /* Checks that only specified Tables objects present in the NS */ Method (LDCH, 1, NotSerialized) { Method (MAUX, 0, NotSerialized) { Return ("MAUX") } Concatenate (Arg0, "-LDCH", Arg0) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Specify to check up to 3 successive \SSxx names */ Local0 = 0x01 If (HI0N) { Local1 = (HI0N - 0x01) If (Local1) { Local1-- } } Else { Local1 = 0x00 } If (((Local1 + 0x01) < HI0M)) { Local0++ If (((Local1 + 0x02) < HI0M)) { Local0++ } } While (Local0) { Divide (Local1, NNML, Local3, Local4) Local5 = "\\SSS0" Local5 [0x03] = DerefOf (SNML [Local4]) Local5 [0x04] = DerefOf (SNML [Local3]) Debug = Local5 /* Access the next \SSxx Object */ CopyObject (DerefOf (Local5), MAUX) /* \DTM0.LDCH.MAUX */ If ((Local1 < HI0N)) { If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x02) } Local2 = MAUX () If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x03) } If ((Local5 != Local2)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local2, Local5) } } ElseIf (CH04 (Arg0, 0x00, 0xFF, Z174, __LINE__, 0x00, 0x00)) { /* AE_NOT_FOUND */ Return (0x04) } Local1++ Local0-- } Return (0x00) } /* Loading a number of different SSDTs */ /* Arg1: the number of SSDT to load */ Method (TSTA, 2, NotSerialized) { Concatenate (Arg0, "-tsta", Arg0) If (INIT ()) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "INIT", 0x01) Return (0x01) } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = Arg1 While (Local0) { If (LD ()) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "HI0N", HI0N) Return (0x01) } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0-- If (LDCH (Arg0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "HI0N", HI0N) Return (0x01) } } Local0 = Arg1 While (Local0) { If (UNLD ()) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "HI0N", HI0N) Return (0x01) } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0-- If (LDCH (Arg0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "HI0N", HI0N) Return (0x01) } } Return (0x00) } /* Exceptions when the Object argument does not refer to */ /* an operation region field or an operation region */ /* Originated from ssdt3.asl: iasl -tc ssdt3.asl */ Name (BUF3, Buffer (0x011D) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x1D, 0x01, 0x00, 0x00, // SSDT.... /* 0008 */ 0x02, 0x4F, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // .OIntel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x31, 0x08, 0x16, 0x20, 0x5B, 0x82, 0x47, 0x0F, // 1.. [.G. /* 0028 */ 0x41, 0x55, 0x58, 0x44, 0x08, 0x49, 0x4E, 0x54, // AUXD.INT /* 0030 */ 0x30, 0x0E, 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, // 0..2Tv.. /* 0038 */ 0xDC, 0xFE, 0x08, 0x53, 0x54, 0x52, 0x30, 0x0D, // ...STR0. /* 0040 */ 0x73, 0x6F, 0x75, 0x72, 0x63, 0x65, 0x20, 0x73, // source s /* 0048 */ 0x74, 0x72, 0x69, 0x6E, 0x67, 0x30, 0x00, 0x08, // tring0.. /* 0050 */ 0x42, 0x55, 0x46, 0x30, 0x11, 0x0C, 0x0A, 0x09, // BUF0.... /* 0058 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0060 */ 0x01, 0x08, 0x50, 0x41, 0x43, 0x30, 0x12, 0x27, // ..PAC0.' /* 0068 */ 0x03, 0x0E, 0x1F, 0x32, 0x54, 0x76, 0x98, 0xBA, // ...2Tv.. /* 0070 */ 0xDC, 0xFE, 0x0D, 0x74, 0x65, 0x73, 0x74, 0x20, // ...test /* 0078 */ 0x70, 0x61, 0x63, 0x6B, 0x61, 0x67, 0x65, 0x30, // package0 /* 0080 */ 0x00, 0x11, 0x0C, 0x0A, 0x09, 0x13, 0x12, 0x11, // ........ /* 0088 */ 0x10, 0x0F, 0x0E, 0x0D, 0x0C, 0x0B, 0x5B, 0x80, // ......[. /* 0090 */ 0x4F, 0x50, 0x52, 0x30, 0x00, 0x0C, 0x21, 0x43, // OPR0..!C /* 0098 */ 0x65, 0x07, 0x0A, 0x98, 0x5B, 0x81, 0x0B, 0x4F, // e...[..O /* 00A0 */ 0x50, 0x52, 0x30, 0x01, 0x46, 0x4C, 0x55, 0x30, // PR0.FLU0 /* 00A8 */ 0x20, 0x5B, 0x82, 0x10, 0x44, 0x45, 0x56, 0x30, // [..DEV0 /* 00B0 */ 0x08, 0x53, 0x30, 0x30, 0x30, 0x0D, 0x44, 0x45, // .S000.DE /* 00B8 */ 0x56, 0x30, 0x00, 0x5B, 0x02, 0x45, 0x56, 0x45, // V0.[.EVE /* 00C0 */ 0x30, 0x14, 0x08, 0x4D, 0x4D, 0x4D, 0x30, 0x00, // 0..MMM0. /* 00C8 */ 0xA4, 0x00, 0x5B, 0x01, 0x4D, 0x54, 0x58, 0x30, // ..[.MTX0 /* 00D0 */ 0x00, 0x5B, 0x84, 0x13, 0x50, 0x57, 0x52, 0x30, // .[..PWR0 /* 00D8 */ 0x00, 0x00, 0x00, 0x08, 0x53, 0x30, 0x30, 0x30, // ....S000 /* 00E0 */ 0x0D, 0x50, 0x57, 0x52, 0x30, 0x00, 0x5B, 0x83, // .PWR0.[. /* 00E8 */ 0x16, 0x43, 0x50, 0x55, 0x30, 0x00, 0xFF, 0xFF, // .CPU0... /* 00F0 */ 0xFF, 0xFF, 0x00, 0x08, 0x53, 0x30, 0x30, 0x30, // ....S000 /* 00F8 */ 0x0D, 0x43, 0x50, 0x55, 0x30, 0x00, 0x5B, 0x85, // .CPU0.[. /* 0100 */ 0x10, 0x54, 0x5A, 0x4E, 0x30, 0x08, 0x53, 0x30, // .TZN0.S0 /* 0108 */ 0x30, 0x30, 0x0D, 0x54, 0x5A, 0x4E, 0x30, 0x00, // 00.TZN0. /* 0110 */ 0x5B, 0x13, 0x42, 0x55, 0x46, 0x30, 0x00, 0x0A, // [.BUF0.. /* 0118 */ 0x45, 0x42, 0x46, 0x4C, 0x30 // EBFL0 }) OperationRegion (IST3, SystemMemory, 0x0400, 0x011F) Field (IST3, ByteAcc, NoLock, Preserve) { RFU3, 2296 } Method (TSTB, 1, Serialized) { Name (DDB0, 0x00) Name (DDBH, 0x00) Concatenate (Arg0, "-tstb", Arg0) RFU3 = BUF3 /* \DTM0.BUF3 */ Load (RFU3, DDB0) /* \DTM0.TSTB.DDB0 */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Uninitialized: it can not be applied to Load which */ /* allows NameString only to be used as Object parameter */ /* Integer */ Load (\AUXD.INT0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.INT0) If ((C009 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C009) } /* String */ Load (\AUXD.STR0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.STR0) If ((C00A != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C00A) } /* Buffer */ If (Y282) { /* TBD: LBZ480 update allows Buffer to be Source of Load */ Load (\AUXD.BUF0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.BUF0) If ((C00B != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C00B) } } /* Package */ Load (\AUXD.PAC0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.PAC0) If ((C00C != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C00C) } /* Field Unit */ /* Device */ Load (\AUXD.DEV0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.DEV0) If ((C00E != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C00E) } /* Event */ Load (\AUXD.EVE0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.EVE0) If ((C00F != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C00F) } /* Method */ Load (\AUXD.MMM0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.MMM0) If ((C010 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C010) } /* Mutex */ Load (\AUXD.MTX0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.MTX0) If ((C011 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C011) } /* OpRegion */ /* Power Resource */ Load (\AUXD.PWR0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.PWR0) If ((C013 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C013) } /* Processor */ Load (\AUXD.CPU0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.CPU0) If ((C014 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C014) } /* Thermal Zone */ Load (\AUXD.TZN0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.TZN0) If ((C015 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C015) } /* Buffer Field */ If (Y282) { /* TBD: LBZ480 update allows Buffer Field to be Source of Load */ Load (\AUXD.BFL0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.BFL0) If ((C016 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C016) } } /* DDB Handle */ Load (DDB0, DDBH) /* \DTM0.TSTB.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (DDB0) If ((C017 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C017) } Unload (DDB0) Return (0x00) } /* Exceptions when an OpRegion passed as the Object */ /* parameter of Load is not of SystemMemory type */ Method (TSTC, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tstc", Arg0) OperationRegion (RGN1, SystemIO, 0x0280, 0x0123) OperationRegion (RGN2, PCI_Config, 0x0480, 0x0125) OperationRegion (RGN3, EmbeddedControl, 0x0680, 0x0127) OperationRegion (RGN4, SMBus, 0x0880, 0x0109) OperationRegion (RGN5, SystemCMOS, 0x0A80, 0x012B) OperationRegion (RGN6, PCIBARTarget, 0x0C80, 0x012D) /* UserDefRegionSpace */ OperationRegion (RGN7, 0x80, 0x0D80, 0x0137) OperationRegion (RGN8, 0xCF, 0x0E80, 0x0138) OperationRegion (RGN9, 0xFF, 0x0F80, 0x0139) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* SystemIO */ Load (RGN1, DDBH) /* \DTM0.TSTC.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (RGN1) If ((C012 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C012) } /* PCI_Config */ Load (RGN2, DDBH) /* \DTM0.TSTC.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (RGN2) If ((C012 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C012) } /* EmbeddedControl */ Load (RGN3, DDBH) /* \DTM0.TSTC.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (RGN3) If ((C012 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C012) } /* SMBus */ Load (RGN4, DDBH) /* \DTM0.TSTC.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (RGN4) If ((C012 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C012) } /* SystemCMOS */ Load (RGN5, DDBH) /* \DTM0.TSTC.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (RGN5) If ((C012 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C012) } /* PciBarTarget */ Load (RGN6, DDBH) /* \DTM0.TSTC.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (RGN6) If ((C012 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C012) } /* UserDefRegionSpace 0x80 */ Load (RGN7, DDBH) /* \DTM0.TSTC.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (RGN7) If ((C012 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C012) } /* UserDefRegionSpace 0xcf */ Load (RGN8, DDBH) /* \DTM0.TSTC.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (RGN8) If ((C012 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C012) } /* UserDefRegionSpace 0xff */ Load (RGN9, DDBH) /* \DTM0.TSTC.DDBH */ CH04 (Arg0, 0x00, 0x2F, Z174, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (RGN9) If ((C012 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C012) } Return (0x00) } /* Exceptions when the table contained in an OpRegion */ /* (Field) is not an SSDT */ Method (TSTD, 1, Serialized) { Name (HI0, 0x00) Concatenate (Arg0, "-tstd", Arg0) If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } RFU0 = BUF0 /* \DTM0.BUF0 */ /* Modify the Signature field of the Table Header */ Local0 = SIG /* \DTM0.SIG_ */ Local0++ SIG = Local0 /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Load operator execution, OpRegion case */ If (Y290) { Load (IST0, HI0) /* \DTM0.TSTD.HI0_ */ CH04 (Arg0, 0x00, 0x25, Z174, __LINE__, 0x00, 0x00) /* AE_BAD_SIGNATURE */ If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } } /* Load operator execution, OpRegion Field case */ Load (RFU0, HI0) /* \DTM0.TSTD.HI0_ */ CH04 (Arg0, 0x00, 0x25, Z174, __LINE__, 0x00, 0x00) /* AE_BAD_SIGNATURE */ If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) } Return (0x00) } /* Exceptions when the length of the supplied SSDT is greater */ /* than the length of the respective OpRegion or Region Field, */ /* or less than the length of the Table Header */ /* Arg1: 0 - the 'greater' case, 1 - the 'less' case */ Method (TSTE, 2, Serialized) { Name (HI0, 0x00) Concatenate (Arg0, "-tste", Arg0) If (Arg1) { Concatenate (Arg0, ".less", Arg0) } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } RFU0 = BUF0 /* \DTM0.BUF0 */ /* Modify the Length field of the Table Header */ If (Arg1) { Local0 = 0x23 } Else { Local0 = SizeOf (BUF0) Local0++ } LENG = Local0 /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Load operator execution, OpRegion case */ If (Y290) { Load (IST0, HI0) /* \DTM0.TSTE.HI0_ */ CH04 (Arg0, 0x00, 0x2A, Z174, __LINE__, 0x00, 0x00) /* AE_INVALID_TABLE_LENGTH */ If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) /* CleanUp */ Unload (HI0) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } } } /* Load operator execution, OpRegion Field case */ Load (RFU0, HI0) /* \DTM0.TSTE.HI0_ */ If (!Arg1) { /* If the table length in the header is larger than the buffer. */ CH04 (Arg0, 0x00, 0x36, Z174, __LINE__, 0x00, 0x00) /* AE_AML_BUFFER_LIMIT */ } Else { /* If the table length is smaller than an ACPI table header. */ CH04 (Arg0, 0x00, 0x2A, Z174, __LINE__, 0x00, 0x00) /* AE_INVALID_TABLE_LENGTH */ } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Unload (HI0) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } } Return (0x00) } /* Exceptions when the checksum of the supplied SSDT is invalid */ Method (TSTF, 1, Serialized) { Name (HI0, 0x00) Concatenate (Arg0, "-tstf", Arg0) If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } RFU0 = BUF0 /* \DTM0.BUF0 */ /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.SUM_ */ /* Spoil the CheckSum */ Store ((SUM + 0x01), SUM) /* \DTM0.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Load operator execution, OpRegion case */ If (Y290) { Load (IST0, HI0) /* \DTM0.TSTF.HI0_ */ CH04 (Arg0, 0x00, 0x27, Z174, __LINE__, 0x00, 0x00) /* AE_BAD_CHECKSUM */ If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) /*Cleanup */ Unload (HI0) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Store ((SUM + 0x01), SUM) /* \DTM0.SUM_ */ } } /* Load operator execution, OpRegion Field case */ Load (RFU0, HI0) /* \DTM0.TSTF.HI0_ */ CH04 (Arg0, 0x00, 0x27, Z174, __LINE__, 0x00, 0x00) /* AE_BAD_CHECKSUM */ If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) /*Cleanup */ Unload (HI0) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } } Return (0x00) } /* Object of any type (expect Field Units and Buffer Fields) */ /* can be used as the DDBHandle argument */ Method (TSTG, 1, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) Name (DDBH, 0x00) Method (M000, 4, NotSerialized) { Concatenate (Arg0, "-m000.", Arg0) Concatenate (Arg0, Arg1, Arg0) Local0 = ObjectType (Arg2) If ((Arg3 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, Arg3) Return (0x01) } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } Load (RFU0, Arg2) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (Arg2) If ((C017 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C017) } If (CondRefOf (\SSS0, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x00) Return (0x01) } Unload (DerefOf (Arg2)) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } Return (0x00) } Concatenate (Arg0, "-tstg", Arg0) /* Load Auxiliry table */ RFU3 = BUF3 /* \DTM0.BUF3 */ Load (RFU3, DDB0) /* \DTM0.TSTG.DDB0 */ RFU0 = BUF0 /* \DTM0.BUF0 */ /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Uninitialized */ M000 (Arg0, "uni", RefOf (Local1), C008) /* Integer */ M000 (Arg0, "int", RefOf (\AUXD.INT0), C009) /* String */ M000 (Arg0, "str", RefOf (\AUXD.STR0), C00A) /* Buffer */ M000 (Arg0, "buf", RefOf (\AUXD.BUF0), C00B) /* Writing NewObj to ArgX which is a RefOf(OldObj), should */ /* result in RefOf(NewObj), but this is currently not */ /* working. */ If (Y260) { /* Package */ M000 (Arg0, "pac", RefOf (\AUXD.PAC0), C00C) /* Field Unit */ M000 (Arg0, "flu", RefOf (\AUXD.FLU0), C00D) /* Device */ M000 (Arg0, "dev", RefOf (\AUXD.DEV0), C00E) /* Event */ M000 (Arg0, "evt", RefOf (\AUXD.EVE0), C00F) /* Method */ M000 (Arg0, "met", RefOf (\AUXD.MMM0), C010) /* Mutex */ M000 (Arg0, "mtx", RefOf (\AUXD.MTX0), C011) /* OpRegion */ M000 (Arg0, "opr", RefOf (\AUXD.OPR0), C012) /* Power Resource */ M000 (Arg0, "pwr", RefOf (\AUXD.PWR0), C013) /* Processor */ M000 (Arg0, "cpu", RefOf (\AUXD.CPU0), C014) /* Thermal Zone */ M000 (Arg0, "tzn", RefOf (\AUXD.TZN0), C015) /* Buffer Field */ M000 (Arg0, "bfl", RefOf (\AUXD.BFL0), C016) /* DDB Handle */ CopyObject (DDB0, DDB1) /* \DTM0.TSTG.DDB1 */ M000 (Arg0, "ddb", RefOf (DDB1), C017) } Unload (DDB0) CH03 (Arg0, Z174, __LINE__, 0x00, 0x00) Return (0x00) } /* AE_OWNER_ID_LIMIT exception when too many Tables loaded, */ /* Arg1: 0 - Load case, 1 - LoadTable case */ Method (TSTH, 2, Serialized) { Name (MAXT, 0xF6) Name (DDB1, 0x00) Name (DDB3, 0x00) Concatenate (Arg0, "-tsth", Arg0) If (INIT ()) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "INIT", 0x01) Return (0x01) } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } RFU1 = BUF1 /* \DTM0.BUF1 */ RFU3 = BUF3 /* \DTM0.BUF3 */ Local0 = MAXT /* \DTM0.TSTH.MAXT */ While (Local0) { Debug = HI0N /* \DTM0.HI0N */ If (LD ()) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "HI0N", HI0N) Return (0x01) } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0-- } /* Methods can not be called after the following Load */ /* (OWNER_ID is exhausted) */ Load (RFU1, DDB1) /* \DTM0.TSTH.DDB1 */ /* The following Load should cause AE_OWNER_ID_LIMIT */ If (Arg1) { LoadTable ("OEM1", "", "", "", "", Zero) } Else { Load (RFU3, DDB3) /* \DTM0.TSTH.DDB3 */ } /* Further 1 Method can be called */ Unload (DDB1) CH04 (Arg0, 0x00, 0x56, Z174, __LINE__, 0x00, 0x00) /* AE_OWNER_ID_LIMIT */ Local0 = MAXT /* \DTM0.TSTH.MAXT */ While (Local0) { If (UNLD ()) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "HI0N", HI0N) Return (0x01) } If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0-- } If (LDCH (0x00)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "HI0N", HI0N) Return (0x01) } Return (0x00) } /* Exception when SSDT specified as the Object parameter */ /* of the Load operator is already loaded */ Method (TSTI, 1, Serialized) { Name (HI0, 0x00) Name (HI1, 0x00) Concatenate (Arg0, "-tsti", Arg0) If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } RFU0 = BUF0 /* \DTM0.BUF0 */ /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Load operator execution */ Load (RFU0, HI0) /* \DTM0.TSTI.HI0_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (HI0) If ((C017 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C017) } If (CondRefOf (\SSS0, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x00) Return (0x01) } Local1 = 0x05 While (Local1) { /* Repeated Load operator execution */ Load (RFU0, HI1) /* \DTM0.TSTI.HI1_ */ CH04 (Arg0, 0x00, 0x07, Z174, __LINE__, 0x05, Local1) /* AE_ALREADY_EXISTS */ Local0 = ObjectType (HI1) If ((C009 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C009) } Local1-- } Unload (HI0) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) } Return (0x00) } /* Exception when there already is an previously created Object */ /* referred by the namepath of the new Object in the Table loaded */ Method (TSTJ, 1, Serialized) { Name (HI0, 0x00) Name (HI1, 0x00) Concatenate (Arg0, "-tstj", Arg0) If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (0x01) } ^RFU0 = BUF0 /* \DTM0.BUF0 */ /* Recalculate and save CheckSum */ Local0 = ^RFU0 /* \DTM0.RFU0 */ Store ((^SUM + CHSM (Local0, SizeOf (Local0))), ^SUM) /* \DTM0.SUM_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Load operator execution */ Load (^RFU0, HI0) /* \DTM0.TSTJ.HI0_ */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (HI0) If ((C017 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C017) } If (CondRefOf (\SSS0, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x00) Return (0x01) } /* Load another table, containing declaration of \SSS0 */ OperationRegion (IST0, SystemMemory, 0x80000000, 0x34) Field (IST0, ByteAcc, NoLock, Preserve) { RFU0, 416 } Field (IST0, ByteAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8, OID, 48, OTID, 64, OREV, 32, CID, 32, CREV, 32, Offset (0x27), SSNM, 32, Offset (0x2F), SSRT, 32 } RFU0 = BUF0 /* \DTM0.BUF0 */ /* Modify Revision field of SSDT */ Store ((CREV + 0x01), CREV) /* \DTM0.TSTJ.CREV */ /* Recalculate and save CheckSum */ Local0 = RFU0 /* \DTM0.TSTJ.RFU0 */ Store ((SUM + CHSM (Local0, SizeOf (Local0))), SUM) /* \DTM0.TSTJ.SUM_ */ Local1 = 0x05 While (Local1) { /* Any next Load */ Load (RFU0, HI1) /* \DTM0.TSTJ.HI1_ */ CH04 (Arg0, 0x00, 0x07, Z174, __LINE__, 0x05, Local1) /* AE_ALREADY_EXISTS */ Local0 = ObjectType (HI1) If ((C009 != Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, Local0, C009) } Local1-- } Unload (HI0) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) } Return (0x00) } /* Originated from ssdt5.asl: iasl -tc ssdt5.asl */ Name (BUF5, Buffer (0x92) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x92, 0x00, 0x00, 0x00, // SSDT.... /* 0008 */ 0x02, 0xBA, 0x69, 0x41, 0x53, 0x4C, 0x54, 0x53, // ..iASLTS /* 0010 */ 0x4C, 0x54, 0x42, 0x4C, 0x30, 0x30, 0x30, 0x35, // LTBL0005 /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x31, 0x08, 0x16, 0x20, 0x08, 0x44, 0x44, 0x42, // 1.. .DDB /* 0028 */ 0x58, 0x00, 0x08, 0x42, 0x55, 0x46, 0x58, 0x11, // X..BUFX. /* 0030 */ 0x37, 0x0A, 0x34, 0x53, 0x53, 0x44, 0x54, 0x34, // 7.4SSDT4 /* 0038 */ 0x00, 0x00, 0x00, 0x02, 0x98, 0x49, 0x6E, 0x74, // .....Int /* 0040 */ 0x65, 0x6C, 0x00, 0x4D, 0x61, 0x6E, 0x79, 0x00, // el.Many. /* 0048 */ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x49, // .......I /* 0050 */ 0x4E, 0x54, 0x4C, 0x15, 0x12, 0x06, 0x20, 0x14, // NTL... . /* 0058 */ 0x0F, 0x5C, 0x53, 0x53, 0x53, 0x30, 0x00, 0xA4, // .\SSS0.. /* 0060 */ 0x0D, 0x5C, 0x53, 0x53, 0x53, 0x30, 0x00, 0x5B, // .\SSS0.[ /* 0068 */ 0x80, 0x49, 0x53, 0x54, 0x58, 0x00, 0x00, 0x0A, // .ISTX... /* 0070 */ 0x34, 0x5B, 0x81, 0x0C, 0x49, 0x53, 0x54, 0x58, // 4[..ISTX /* 0078 */ 0x01, 0x52, 0x46, 0x55, 0x58, 0x40, 0x1A, 0x70, // .RFUX@.p /* 0080 */ 0x42, 0x55, 0x46, 0x58, 0x52, 0x46, 0x55, 0x58, // BUFXRFUX /* 0088 */ 0x5B, 0x20, 0x52, 0x46, 0x55, 0x58, 0x44, 0x44, // [ RFUXDD /* 0090 */ 0x42, 0x58 // BX }) OperationRegion (IST5, SystemMemory, 0x0600, 0x92) Field (IST5, ByteAcc, NoLock, Preserve) { RFU5, 1168 } /* DDB Handle */ External (\DDBX, UnknownObj) /* Recursive Load in module level code */ Method (TSTK, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tstk", Arg0) If (CondRefOf (\DDBX, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\DDBX", 0x01) Return (Zero) } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (Zero) } RFU5 = BUF5 /* \DTM0.BUF5 */ Load (RFU5, DDBH) /* \DTM0.TSTK.DDBH */ If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\DDBX, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\DDBX", 0x01) Return (Zero) } If (CondRefOf (\SSS0, Local0)){} Else { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (Zero) } Unload (DDBX) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (Zero) } Unload (DDBH) If (CH03 (Arg0, Z174, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\DDBX, Local0)) { ERR (Arg0, Z174, __LINE__, 0x00, 0x00, "\\DDBX", 0x01) Return (Zero) } } /* Load a table and check to see if PAC0 is initialized properly */ Method (TSTL, 1, Serialized) { Concatenate (Arg0, "-tstl", Arg0) CH03 (Arg0, Z174, __LINE__, 0x00, 0x00) External (SS01, methodobj) /* iasl -ts ssdt6.asl */ Name (BUF1, Buffer() { 0x53,0x53,0x44,0x54,0x3E,0x00,0x00,0x00, /* 00000000 "SSDT>..." */ 0x02,0x80,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 "..Intel." */ 0x5F,0x42,0x33,0x30,0x37,0x00,0x00,0x00, /* 00000010 "_B307..." */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x27,0x04,0x18,0x20,0x14,0x0B,0x53,0x53, /* 00000020 "'.. ..SS" */ 0x30,0x31,0x00,0xA4,0x50,0x4B,0x47,0x31, /* 00000028 "01..PKG1" */ 0x08,0x50,0x4B,0x47,0x31,0x12,0x08,0x04, /* 00000030 ".PKG1..." */ 0x00,0x01,0x0A,0x02,0x0A,0x03 /* 00000038 "......" */ }) Name (DDBH, 0x00) Load (BUF1, DDBH) Local0 = SS01() Local1 = sizeof (Local0) if (Local1 != 0x4) { ERR (Arg0, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x4) } Unload (DDBH) CH03 (Arg0, Z174, __LINE__, 0x00, 0x00) } } Method (TLD0, 0, Serialized) { /* Loading SSDT from a SystemMemory OpRegion, */ /* different targets for DDBHandle */ CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* Named Objects */ SRMT ("TLD0.tst0") \DTM0.TST0 (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* LocalX Object */ SRMT ("TLD0.tst1") \DTM0.TST1 (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* Package element */ SRMT ("TLD0.tst2") \DTM0.TST2 (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* By Reference in ArgX */ SRMT ("TLD0.tst3") \DTM0.TST3 (__METHOD__) /* Loading SSDT from a Field of an OpRegion of any type, */ /* different targets for DDBHandle */ CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* SystemMemory Region */ SRMT ("TLD0.tst4") \DTM0.TST4 (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* SystemIO Region */ SRMT ("TLD0.tst5") \DTM0.TST5 (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* EmbeddedControl Region */ SRMT ("TLD0.tst6") \DTM0.TST6 (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* User defined Region */ SRMT ("TLD0.tst7") \DTM0.TST7 (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* Check that "namespace location to load the Definition Block */ /* is relative to the current namespace" scope, */ SRMT ("TLD0.tst8") \DTM0.TST8 (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* Check global and dynamic declarations of OpRegions */ /* and the appropriate _REG Methods invocation for the */ /* loaded SSDT */ SRMT ("TLD0.tst9") \DTM0.TST9 (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* Object of any type can be used as the DDBHandle argument */ SRMT ("TLD0.tstg") \DTM0.TSTG (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* Loading a number of different SSDTs */ SRMT ("TLD0.tsta") If (Y261) { \DTM0.TSTA (__METHOD__, 0xF0) } Else { BLCK () } CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) /* Recursive Load in module level */ SRMT ("TLD0.tstk") \DTM0.TSTK (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) SRMT ("TLD0.tstl") \DTM0.TSTL (__METHOD__) CH03 (__METHOD__, Z174, __LINE__, 0x00, 0x00) } /* Exceptional conditions */ Method (TLD1, 0, Serialized) { /* Exceptions when the Object argument does not refer to */ /* an operation region field or an operation region */ SRMT ("TLD1.tstb") \DTM0.TSTB (__METHOD__) /* Exceptions when the an OpRegion passed as the Object */ /* parameter of Load is not of SystemMemory type */ SRMT ("TLD1.tstc") \DTM0.TSTC (__METHOD__) /* Exceptions when the table contained in an OpRegion */ /* (Field) is not an SSDT */ SRMT ("TLD1.tstd") \DTM0.TSTD (__METHOD__) /* Exceptions when the length of the supplied SSDT is greater */ /* than the length of the respective OpRegion or Region Field, */ SRMT ("TLD1.tste.0") If (Y284) { \DTM0.TSTE (__METHOD__, 0x00) } Else { BLCK () } /* Exceptions when the length of the supplied SSDT is */ /* less than the length of the Table Header */ SRMT ("TLD1.tste.1") \DTM0.TSTE (__METHOD__, 0x01) /* Exceptions when the checksum of the supplied SSDT is invalid */ SRMT ("TLD1.tstf") \DTM0.TSTF (__METHOD__) /* AE_OWNER_ID_LIMIT exception when too many Tables loaded */ SRMT ("TLD1.tsth") If (Y294) { \DTM0.TSTH (__METHOD__, 0x00) } Else { BLCK () } /* Exception when SSDT specified as the Object parameter */ /* of the Load operator is already loaded */ SRMT ("TLD1.tsti") \DTM0.TSTI (__METHOD__) /* Exception when there already is an previously created Object */ /* referred by the namepath of the new Object in the Table loaded */ SRMT ("TLD1.tstj") \DTM0.TSTJ (__METHOD__) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/ssdt5.asl0000700000175000017500000000465314773714157027620 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "ssdt5.aml", // Output filename "SSDT", // Signature 0x02, // DSDT Revision "iASLTS", // OEMID "LTBL0005", // TABLE ID 0x00000001 // OEM Revision ) { Name(DDBX, 0) // Originated from ssdt0.asl: iasl -tc ssdt0.asl Name(BUFX, Buffer() { 0x53,0x53,0x44,0x54,0x34,0x00,0x00,0x00, /* 00000000 "SSDT4..." */ 0x02,0x98,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 "..Intel." */ 0x4D,0x61,0x6E,0x79,0x00,0x00,0x00,0x00, /* 00000010 "Many...." */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x15,0x12,0x06,0x20,0x14,0x0F,0x5C,0x53, /* 00000020 "... ..\S" */ 0x53,0x53,0x30,0x00,0xA4,0x0D,0x5C,0x53, /* 00000028 "SS0...\S" */ 0x53,0x53,0x30,0x00, }) OperationRegion (ISTX, SystemMemory, 0, 0x34) Field(ISTX, ByteAcc, NoLock, Preserve) { RFUX, 0x1a0, } Store(BUFX, RFUX) Load(RFUX, DDBX) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/ssdt6.asl0000700000175000017500000000332714773714157027616 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("", "SSDT", 2, "Intel", "_SSDT_01", 0x00000001) { Method (SS01) { return (PKG1) } Name (PKG1, Package () {0x0, 0x1, 0x2, 0x3}) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/unload.asl0000700000175000017500000005762514773714157030047 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * UnLoad ASL operator functionality */ /* * This sub-test is intended to comprehensively verify * the Unload ASL operator functionality. * * Performs a run-time unload of a Definition Block that was * loaded using a Load (and LoadTable) term. * * The overall functionality of the Unload Objects is indirectly * verified by other Table management tests as far as Unload is * needed to perform cleanup and check effectiveness of Load and * LoadTable operators. * * 17.5.126 Unload (Unload Definition Block) * Syntax * Unload (Handle) * * On testing the following issues should be covered (actually in the tests * of loading except for the exceptional conditions ones): * * - successful execution of the Unload operator for the specified DDBHandle * obtained through loading of a SSDT from a proper location, * * - successful execution of the Unload operator for the specified DDBHandle * obtained through LoadTable operator, * * - the Handle parameter of the Unload can be specified as Named Object, * LocalX, ArgX, Derefof (to Index or RefOf reference), and Method call, * * - all namespace objects created as a result of the corresponding Load * operation are removed from the namespace, * * - unloading a number of different SSDTs, * * - Load/UnLoad processing can be done with the same table many times, * * - exceptional conditions caused by inappropriate data: * = the parameter of the UnLoad operator is not of DDBHandle type, * = execute UnLoad operator with the same DDBHandle repeatedly, * = the operand of UnLoad operator is absent. * * Can not be tested following issues: * - unloading a SSDT to be a synchronous operation ("the control methods * defined in the Definition Block are not executed during load time") */ Name (Z175, 0xAF) Device (DTM1) { /* Different Sources to specify DDBHandle for UnLoad. */ /* Most of them (Named Object, LocalX, ArgX, Derefof) */ /* are checked in load.asl */ /* DDBHandle returned by Method call */ Method (TST0, 1, Serialized) { Name (HI0, 0x00) Method (M000, 0, NotSerialized) { Return (HI0) /* \DTM1.TST0.HI0_ */ } Concatenate (Arg0, "-tst0", Arg0) \DTM0.RFU0 = \DTM0.BUF0 If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) Return (Zero) } /* Modify Revision field of SSDT */ Store ((\DTM0.CREV + 0x01), \DTM0.CREV) /* Recalculate and save CheckSum */ Local0 = \DTM0.RFU0 Store ((\DTM0.SUM + \DTM0.CHSM (Local0, SizeOf (Local0))), \DTM0.SUM) If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (Zero) } Load (\DTM0.RFU0, HI0) /* \DTM1.TST0.HI0_ */ If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (Zero) } Debug = "Table Loaded" Local1 = ObjectType (HI0) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z175, __LINE__, 0x00, 0x00, Local1, C017) } /* Check the new Object appears */ If (CondRefOf (\SSS0, Local0)){} Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\SSS0", 0x00) } Local1 = ObjectType (Local0) If ((Local1 != C010)) { /* Method */ ERR (Arg0, Z175, __LINE__, 0x00, 0x00, Local1, C010) } Else { Local0 = \SSS0 () If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x01)) { Return (Zero) } If (("\\SSS0" != Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, Local0, "\\SSS0") } } /* UnLoad operator execution */ Unload (M000 ()) If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (Zero) } Debug = "Table Unloaded" If (CondRefOf (\SSS0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\SSS0", 0x01) } Return (Zero) } /* All namespace objects created as a result of the corresponding */ /* Load operation are absent in the namespace after UnLoad */ Method (TST1, 1, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) Method (M000, 4, NotSerialized) { Concatenate (Arg0, "-m000.", Arg0) Concatenate (Arg0, Arg1, Arg0) Local0 = ObjectType (Arg2) If ((Arg3 != Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, Local0, Arg3) Return (0x01) } Return (0x00) } Method (M001, 1, NotSerialized) { Concatenate (Arg0, "-m001", Arg0) /* Integer */ If (CondRefOf (\AUXD.INT0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.INT0", 0x01) Return (0x01) } /* String */ If (CondRefOf (\AUXD.STR0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.STR0", 0x01) Return (0x01) } /* Buffer */ If (CondRefOf (\AUXD.BUF0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.BUF0", 0x01) Return (0x01) } /* Package */ If (CondRefOf (\AUXD.PAC0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.PAC0", 0x01) Return (0x01) } /* Field Unit */ If (CondRefOf (\AUXD.FLU0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.FLU0", 0x01) Return (0x01) } /* Device */ If (CondRefOf (\AUXD.DEV0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.DEV0", 0x01) Return (0x01) } /* Event */ If (CondRefOf (\AUXD.EVE0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.EVE0", 0x01) Return (0x01) } /* Method */ If (CondRefOf (\AUXD.MMM0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.MMM0", 0x01) Return (0x01) } /* Mutex */ If (CondRefOf (\AUXD.MTX0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.MTX0", 0x01) Return (0x01) } /* OpRegion */ If (CondRefOf (\AUXD.OPR0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.OPR0", 0x01) Return (0x01) } /* Power Resource */ If (CondRefOf (\AUXD.PWR0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.PWR0", 0x01) Return (0x01) } /* Processor */ If (CondRefOf (\AUXD.CPU0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.CPU0", 0x01) Return (0x01) } /* Thermal Zone */ If (CondRefOf (\AUXD.TZN0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.TZN0", 0x01) Return (0x01) } /* Buffer Field */ If (CondRefOf (\AUXD.BFL0, Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.BFL0", 0x01) Return (0x01) } Return (0x00) } Concatenate (Arg0, "-tst1", Arg0) /* Check absence of the auxiliary table Objects before Load */ If (M001 (Concatenate (Arg0, ".before"))) { Return (0x01) } /* Load auxiliary table */ \DTM0.RFU3 = \DTM0.BUF3 Load (\DTM0.RFU3, DDB0) /* \DTM1.TST1.DDB0 */ If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Integer */ If (CondRefOf (\AUXD.INT0, Local0)) { M000 (Arg0, "int", Local0, C009) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.INT0", 0x00) } /* String */ If (CondRefOf (\AUXD.STR0, Local0)) { M000 (Arg0, "str", Local0, C00A) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.STR0", 0x00) } /* Buffer */ If (CondRefOf (\AUXD.BUF0, Local0)) { M000 (Arg0, "buf", Local0, C00B) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.BUF0", 0x00) } /* Package */ If (Y286) { If (CondRefOf (\AUXD.PAC0, Local0)) { M000 (Arg0, "pac", Local0, C00C) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.PAC0", 0x00) } } /* Field Unit */ If (CondRefOf (\AUXD.FLU0, Local0)) { M000 (Arg0, "flu", Local0, C00D) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.FLU0", 0x00) } /* Device */ If (CondRefOf (\AUXD.DEV0, Local0)) { M000 (Arg0, "dev", Local0, C00E) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.DEV0", 0x00) } /* Event */ If (CondRefOf (\AUXD.EVE0, Local0)) { M000 (Arg0, "evt", Local0, C00F) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.EVE0", 0x00) } /* Method */ If (CondRefOf (\AUXD.MMM0, Local0)) { M000 (Arg0, "met", Local0, C010) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.MMM0", 0x00) } /* Mutex */ If (CondRefOf (\AUXD.MTX0, Local0)) { M000 (Arg0, "mtx", Local0, C011) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.MTX0", 0x00) } /* OpRegion */ If (CondRefOf (\AUXD.OPR0, Local0)) { M000 (Arg0, "opr", Local0, C012) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.OPR0", 0x00) } /* Power Resource */ If (CondRefOf (\AUXD.PWR0, Local0)) { M000 (Arg0, "pwr", Local0, C013) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.PWR0", 0x00) } /* Processor */ If (CondRefOf (\AUXD.CPU0, Local0)) { M000 (Arg0, "cpu", Local0, C014) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.CPU0", 0x00) } /* Thermal Zone */ If (CondRefOf (\AUXD.TZN0, Local0)) { M000 (Arg0, "cpu", Local0, C015) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.TZN0", 0x00) } /* Buffer Field */ If (CondRefOf (\AUXD.BFL0, Local0)) { M000 (Arg0, "bfl", Local0, C016) } Else { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, "\\AUXD.BFL0", 0x00) } Unload (DDB0) CH03 (Arg0, Z175, __LINE__, 0x00, 0x00) /* Check absence of the auxiliary table Objects after UnLoad */ If (M001 (Concatenate (Arg0, ".after"))) { Return (0x01) } Return (0x00) } /* Load/UnLoad processing can be done with the same table many times */ Method (TST2, 1, NotSerialized) { Concatenate (Arg0, "tst2.", Arg0) Local0 = 0x05 While (Local0) { If (TST1 (Concatenate (Arg0, Mid ("0123456789", Local0, 0x01)))) { Return (0x01) } Local0-- } Return (0x00) } /* Exceptions when the parameter of the UnLoad operator */ /* is not of DDBHandle type */ Method (TST3, 1, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) Method (M000, 4, NotSerialized) { Concatenate (Arg0, "-m000.", Arg0) Concatenate (Arg0, Arg1, Arg0) Local0 = ObjectType (Arg2) If ((Arg3 != Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, Local0, Arg3) Return (0x01) } Unload (DerefOf (Arg2)) CH04 (Arg0, 0x00, 0x2F, Z175, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Return (0x00) } Concatenate (Arg0, "-tst3", Arg0) /* Load auxiliary table */ \DTM0.RFU3 = \DTM0.BUF3 Load (\DTM0.RFU3, DDB0) /* \DTM1.TST3.DDB0 */ If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Uninitialized */ If (0x00) { Local1 = 0x00 } Local0 = ObjectType (Local1) If ((C008 != Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, Local0, C008) } Else { Unload (Local1) If (SLCK) { CH04 (Arg0, 0x00, 0x2F, Z175, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Else { CH04 (Arg0, 0x00, 0x31, Z175, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_LOCAL */ } } /* Integer */ M000 (Arg0, "int", RefOf (\AUXD.INT0), C009) /* String */ M000 (Arg0, "str", RefOf (\AUXD.STR0), C00A) /* Buffer */ M000 (Arg0, "buf", RefOf (\AUXD.BUF0), C00B) /* Package */ If (Y286) { M000 (Arg0, "pac", RefOf (\AUXD.PAC0), C00C) } Local0 = ObjectType (\AUXD.PAC0) If ((C00C != Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, Local0, C00C) } Else { Unload (\AUXD.PAC0) CH04 (Arg0, 0x00, 0x2F, Z175, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } /* Field Unit */ M000 (Arg0, "flu", RefOf (\AUXD.FLU0), C00D) /* Device */ Local0 = ObjectType (\AUXD.DEV0) If ((C00E != Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, Local0, C00E) } Else { Unload (\AUXD.DEV0) CH04 (Arg0, 0x00, 0x2F, Z175, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } /* Event */ M000 (Arg0, "evt", RefOf (\AUXD.EVE0), C00F) /* Method */ M000 (Arg0, "met", RefOf (\AUXD.MMM0), C010) /* Mutex */ M000 (Arg0, "mtx", RefOf (\AUXD.MTX0), C011) /* OpRegion */ M000 (Arg0, "opr", RefOf (\AUXD.OPR0), C012) /* Power Resource */ M000 (Arg0, "pwr", RefOf (\AUXD.PWR0), C013) /* Processor */ M000 (Arg0, "cpu", RefOf (\AUXD.CPU0), C014) /* Thermal Zone */ Local0 = ObjectType (\AUXD.TZN0) If ((C015 != Local0)) { ERR (Arg0, Z175, __LINE__, 0x00, 0x00, Local0, C015) } Else { Unload (\AUXD.TZN0) CH04 (Arg0, 0x00, 0x2F, Z175, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } /* Buffer Field */ M000 (Arg0, "bfl", RefOf (\AUXD.BFL0), C016) Unload (DDB0) CH03 (Arg0, Z175, __LINE__, 0x00, 0x00) Return (0x00) } /* Exceptions when UnLoad is executed with the same DDBHandle repeatedly */ Method (TST4, 1, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) Concatenate (Arg0, "-tst4", Arg0) /* Load auxiliary table */ \DTM0.RFU3 = \DTM0.BUF3 Load (\DTM0.RFU3, DDB0) /* \DTM1.TST4.DDB0 */ If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (0x01) } /* First Unload */ Unload (DDB0) If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = 0x05 While (Local0) { /* Any next */ Unload (DDB0) CH04 (Arg0, 0x00, 0x1C, Z175, __LINE__, 0x05, Local0) /* AE_BAD_PARAMETER */ Local0-- } /* Second DDBHandle */ \DTM0.RFU3 = \DTM0.BUF3 Load (\DTM0.RFU3, DDB1) /* \DTM1.TST4.DDB1 */ If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = 0x05 While (Local0) { /* Any next */ Unload (DDB0) CH04 (Arg0, 0x00, 0x1C, Z175, __LINE__, 0x05, Local0) /* AE_BAD_PARAMETER */ Local0-- } Unload (DDB1) If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (0x01) } Return (0x00) } /* Exceptions when the operand of UnLoad operator is absent */ Method (TST5, 1, Serialized) { Name (DDB0, 0x00) Method (M000, 0, NotSerialized) { Return (0x00) } Method (M001, 0, NotSerialized) { Return (DDB0) /* \DTM1.TST5.DDB0 */ } Concatenate (Arg0, "-tst5", Arg0) /* Load auxiliary table */ \DTM0.RFU3 = \DTM0.BUF3 Load (\DTM0.RFU3, DDB0) /* \DTM1.TST5.DDB0 */ If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Device */ Unload (DerefOf (RefOf (\AUXD.DEV0))) CH04 (Arg0, 0x00, 0x3E, Z175, __LINE__, 0x00, 0x00) /* AE_AML_NO_RETURN_VALUE */ /* Thermal Zone */ Unload (DerefOf (RefOf (\AUXD.TZN0))) CH04 (Arg0, 0x00, 0x3E, Z175, __LINE__, 0x00, 0x00) /* AE_AML_NO_RETURN_VALUE */ /* Method execution */ CopyObject (M000 (), M001) /* \DTM1.TST5.M001 */ Unload (M001 ()) If (SLCK) { CH04 (Arg0, 0x00, 0x2F, Z175, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Else { CH04 (Arg0, 0x00, 0x2F, Z175, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Unload (DDB0) If (CH03 (Arg0, Z175, __LINE__, 0x00, 0x00)) { Return (0x01) } Return (0x00) } } Method (TUL0, 0, Serialized) { CH03 (__METHOD__, Z175, __LINE__, 0x00, 0x00) /* Different Sources to specify DDBHandle for UnLoad. */ /* Most of them (Named Object, LocalX, ArgX, Derefof) */ /* are checked in load.asl */ /* DDBHandle returned by Method call */ SRMT ("TUL0.tst0") \DTM1.TST0 (__METHOD__) CH03 (__METHOD__, Z175, __LINE__, 0x00, 0x00) /* All namespace objects created as a result of the corresponding */ /* Load operation are absent in the namespace after UnLoad */ SRMT ("TUL0.tst1") \DTM1.TST1 (__METHOD__) CH03 (__METHOD__, Z175, __LINE__, 0x00, 0x00) /* Load/UnLoad processing can be done with the same table many times */ SRMT ("TUL0.tst2") \DTM1.TST2 (__METHOD__) CH03 (__METHOD__, Z175, __LINE__, 0x00, 0x00) } /* Exceptional conditions */ Method (TUL1, 0, Serialized) { /* Exceptions when the parameter of the UnLoad operator */ /* is not of DDBHandle type */ SRMT ("TUL1.tst3") \DTM1.TST3 (__METHOD__) /* Exceptions when UnLoad is executed with the same DDBHandle repeatedly */ SRMT ("TUL1.tst4") If (Y292) { \DTM1.TST4 (__METHOD__) } Else { BLCK () } /* Exceptions when the operand of UnLoad operator is absent */ SRMT ("TUL1.tst5") \DTM1.TST5 (__METHOD__) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/loadtable.asl0000700000175000017500000024607414773714157030512 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * LoadTable ASL operator functionality */ /* * This sub-test is intended to comprehensively verify * the LoadTable ASL operator functionality. * * Performs a run-time load of a Definition Block from the XSDT. * * 17.5.68 LoadTable (Load Definition Block From XSDT) * Syntax * LoadTable (SignatureString, OEMIDString, OEMTableIDString, * RootPathString, ParameterPathString, ParameterData) => DDBHandle * * On testing the following issues should be covered: * * - loading from the XSDT of a Definition Block in which the Signature * field (should differ from "DSDT" and "SSDT") matches SignatureString, * the OEM ID field matches OEMIDString, and the OEM Table ID matches * OEMTableIDString, * * - all comparisons are case sensitive, * * - the result of the LoadTable operator is an Object of the DDBHandle type, * * - if no table matches the specified parameters, then 0 is returned, * * - the DDBHandle Object returned from the LoadTable operator can be used * to unload the table, * * - any of the optional parameters (RootPathString, ParameterPathString, * and ParameterData) can be omitted, * * - different sources of the String parameters: literals, Named Objects, * LocalX, ArgX, elements of Packages, results of functions, any TermArg * * - different sources of the optional parameters: literals, Named Objects, * LocalX, ArgX, elements of Packages, results of functions, any TermArg * * - implicit operand conversion of the parameters specified to be strings, * * - namespace location to load the Definition Block is determined by the * RootPathString parameter, * * - the RootPathString is evaluated using normal scoping rules, assuming * that the scope of the LoadTable operator is the current scope, * * - if RootPathString is not specified, "\" is assumed, * * - if ParameterPathString and ParameterData are specified, the data object * specified by ParameterData is stored into the object specified by * ParameterPathString after the table has been added into the namespace, * * - if the first character of ParameterPathString is a backslash or caret * character, then the path of the object is ParameterPathString. Otherwise, * it is RootPathString.ParameterPathString, * * - if some SSDT matching the LoadTable parameters is originally not listed * in XSDT, LoadTable returns 0, * * - exceptional conditions caused by inappropriate data: * = the SignatureString is greater than four characters, * = the OEMIDString is greater than six characters, * = the OEMTableID is greater than eight characters, * = incorrect types of the parameters, * = some DSDT or SSDT matching the LoadTable parameters is already loaded * (actually on initial loading of tables listed in XSDT), * = the matched table is already loaded, * = there already is an previously loaded Object referred by the path * in the Namespace, * = the object specified by the ParameterPathString does not exist, * = storing of data of the ParameterData data type is not allowed, * = AE_OWNER_ID_LIMIT exception when too many Tables loaded. * * Can not be tested following issues: * - providing of the table matched the LoadTable parameters to be "in memory * marked by AddressRangeReserved or AddressRangeNVS", * - overriding the supplied table with "a newer revision Definition Block * of the same OEM Table ID" by the OS, * - loading a Definition Block to be a synchronous operation ("the control * methods defined in the Definition Block are not executed during load * time"). * * Note: the tests is based on the current representation of the auxiliary * OEM1 table in the artificial set of tables in the RSDT of acpiexec. */ Name (Z176, 0xB0) Device (DTM2) { Device (DEVR) { Name (S000, "DEVR") } /* Contents of the OEM1 signature table addressed by the RSDT in acpiexec */ Name (OEMT, Buffer (0x38) { /* 0000 */ 0x4F, 0x45, 0x4D, 0x31, 0x38, 0x00, 0x00, 0x00, // OEM18... /* 0008 */ 0x01, 0x4B, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // .KIntel. /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many.... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x18, 0x09, 0x03, 0x20, 0x08, 0x5F, 0x58, 0x54, // ... ._XT /* 0028 */ 0x32, 0x0A, 0x04, 0x14, 0x0C, 0x5F, 0x58, 0x54, // 2...._XT /* 0030 */ 0x31, 0x00, 0x70, 0x01, 0x5F, 0x58, 0x54, 0x32 // 1.p._XT2 }) CreateField (OEMT, 0x00, 0x20, FOEM) CreateField (OEMT, 0x50, 0x30, FOID) CreateField (OEMT, 0x80, 0x40, FTID) Name (SOEM, "OEM1") Name (SOID, "Intel") Name (STID, "Many") Name (POEM, Package (0x03) { "OEM1", "Intel", "Many" }) Name (RPST, "\\DTM2") Name (PLDT, 0x00) Name (PPST, "\\DTM2.PLDT") Name (DDBH, 0x00) /* Check DataTable Region */ Method (CHDR, 1, Serialized) { DataTableRegion (DR00, "OEM1", "", "") Field (DR00, AnyAcc, NoLock, Preserve) { FU00, 448 } Concatenate (Arg0, "-tst0", Arg0) If ((OEMT != FU00)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, FU00, OEMT) Return (0x01) } Return (0x00) } /* Simple Loadtable test */ Method (TST0, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tst0", Arg0) If (CHDR (Arg0)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } \DTM2.PLDT = 0x00 DDBH = LoadTable ("OEM1", "", "", "\\", PPST, 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDBH) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x01 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDBH) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } Return (0x00) } /* All comparisons of Loadtable parameters are case sensitive, */ /* if no table matches the specified parameters, then 0 is returned */ Method (TST1, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tst1", Arg0) If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } /* Successful comparison */ \DTM2.PLDT = 0x00 If (Y281) { DDBH = LoadTable ("OEM1", "Intel", "Many", "\\", PPST, 0x01) } Else { DDBH = LoadTable ("OEM1", "", "", "\\", PPST, 0x01) } If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDBH) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x01 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDBH) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } /* Unhappy comparison due to the SignatureString */ \DTM2.PLDT = 0x00 Local1 = ObjectType (Local2) If ((Local1 != C008)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C008) } Local2 = LoadTable ("OeM1", "Intel", "Many", "\\", PPST, 0x01) If (Y281) { /* No exception */ If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } } ElseIf /* Exception: AE_BAD_SIGNATURE */ (CH04 (Arg0, 0x01, 0x25, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (Local2) If (Y281) { If ((Local1 != C009)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C009) } If ((Local2 != 0x00)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local2, 0x00) } } ElseIf ((Local1 != C008)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C008) } If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } /* Unhappy comparison due to the OEMIDString */ \DTM2.PLDT = 0x00 Local1 = ObjectType (Local3) If ((Local1 != C008)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C008) } Local3 = LoadTable ("OEM1", "InteL", "Many", "\\", PPST, 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (Local3) If ((Local1 != C009)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C009) } If ((Local3 != 0x00)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local3, 0x00) } If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } /* Unhappy comparison due to the OEMTableIDString */ \DTM2.PLDT = 0x00 Local1 = ObjectType (Local4) If ((Local1 != C008)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C008) } Local4 = LoadTable ("OEM1", "Intel", "many", "\\", PPST, 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (Local4) If ((Local1 != C009)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C009) } If ((Local4 != 0x00)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local4, 0x00) } If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } Return (0x00) } /* Any of the RootPathString, ParameterPathString, and ParameterData */ /* parameters in LoadTable expression can be omitted */ Method (TST2, 1, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) Name (DDB2, 0x00) Name (DDB3, 0x00) Concatenate (Arg0, "-tst2", Arg0) If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } /* Check when RootPathString omitted */ \DTM2.PLDT = 0x00 DDB0 = LoadTable ("OEM1", "", "", "", PPST, 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDB0) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x01 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDB0) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } /* Check when ParameterPathString omitted */ \DTM2.PLDT = 0x00 DDB1 = LoadTable ("OEM1", "", "", "\\", "", 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDB1) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDB1) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } /* Check when ParameterData omitted */ \DTM2.PLDT = 0x00 DDB2 = LoadTable ("OEM1", "", "", "\\", PPST, Zero) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDB2) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDB2) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } /* Check when all optional parameters omitted */ \DTM2.PLDT = 0x00 DDB3 = LoadTable ("OEM1", "", "", "", "", Zero) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDB3) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDB3) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } Return (0x00) } /* Different sources of the String parameters: Named Objects, LocalX, */ /* ArgX, elements of Packages, results of functions, any TermArg */ Method (TST3, 1, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) Name (DDB2, 0x00) Name (DDB3, 0x00) Name (DDB4, 0x00) Name (DDB5, 0x00) Name (DDB6, 0x00) Name (SOID, "") Name (STID, "") Name (POEM, Package (0x03) { "OEM1", "", "" }) Method (M000, 1, NotSerialized) { Return (Arg0) } Method (M001, 3, NotSerialized) { Concatenate (Arg0, Arg2, Arg0) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (Arg1) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\DTM2._XT2", 0x00) } Unload (Arg1) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\DTM2._XT2", 0x01) Return (0x01) } Return (0x00) } Method (M002, 3, NotSerialized) { Return (LoadTable (Arg0, DerefOf (Arg1), DerefOf (Arg2), "", "", Zero)) } Method (M003, 3, NotSerialized) { Return (LoadTable (DerefOf (Arg0), Arg1, DerefOf (Arg2), "", "", Zero)) } Method (M004, 3, NotSerialized) { Return (LoadTable (DerefOf (Arg0), DerefOf (Arg1), Arg2, "", "", Zero)) } Concatenate (Arg0, "-tst3", Arg0) If (Y281) { SOID = ^SOID /* \DTM2.SOID */ STID = ^STID /* \DTM2.STID */ POEM = ^POEM /* \DTM2.POEM */ } If (CondRefOf (\DTM2._XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } /* Check LoadTable(Named, LocalX, Method(), , , ) */ \DTM2.PLDT = 0x00 Local2 = SOID /* \DTM2.TST3.SOID */ DDB0 = LoadTable (SOEM, Local2, M000 (STID), "", "", Zero) If (M001 (Arg0, DDB0, ".NLM")) { Return (0x01) } /* Check LoadTable(Method(), Named, LocalX, , , ) */ \DTM2.PLDT = 0x00 Local2 = STID /* \DTM2.TST3.STID */ DDB1 = LoadTable (M000 (SOEM), SOID, Local2, "", "", Zero) If (M001 (Arg0, DDB1, ".MNL")) { Return (0x01) } /* Check LoadTable(LocalX, Method(), Named, , , ) */ \DTM2.PLDT = 0x00 Local2 = SOEM /* \DTM2.SOEM */ DDB2 = LoadTable (Local2, M000 (SOID), STID, "", "", Zero) If (M001 (Arg0, DDB2, ".LMN")) { Return (0x01) } /* Check LoadTable(ArgX, Derefof(Refof), Derefof(Index), , , ) */ \DTM2.PLDT = 0x00 Local2 = RefOf (SOID) Store (POEM [0x02], Local3) DDB3 = M002 (SOEM, Local2, Local3) If (M001 (Arg0, DDB3, ".ARI")) { Return (0x01) } /* Check LoadTable(Derefof(Index), ArgX, Derefof(Refof), , , ) */ \DTM2.PLDT = 0x00 Local2 = RefOf (STID) Store (POEM [0x00], Local3) DDB4 = M003 (Local3, SOID, Local2) If (M001 (Arg0, DDB4, ".IAR")) { Return (0x01) } /* Check LoadTable(Derefof(Refof), Derefof(Index), ArgX, , , ) */ \DTM2.PLDT = 0x00 Local2 = RefOf (SOEM) Store (POEM [0x01], Local3) DDB5 = M004 (Local2, Local3, STID) If (M001 (Arg0, DDB5, ".RIA")) { Return (0x01) } /* Check LoadTable(TermArg, TermArg, TermArg, , , ) */ \DTM2.PLDT = 0x00 Local2 = Concatenate ("term", SOEM) Local2 = ToBuffer (Local2) Local3 = ToBuffer (SOID) Local4 = "" DDB6 = LoadTable (Mid (ToString (Local2, Ones), 0x04, 0x04), ToString ( M000 (Local3), Ones), Concatenate (M000 (STID), Local4), "", "", Zero) If (M001 (Arg0, DDB6, ".TTT")) { Return (0x01) } Return (0x00) } /* Different sources of the optional parameters (RootPathString, */ /* ParameterPathString, and ParameterData): Named Objects, LocalX, */ /* ArgX, elements of Packages, results of functions, any TermArg */ Method (TST4, 1, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) Name (DDB2, 0x00) Name (DDB3, 0x00) Name (DDB4, 0x00) Name (DDB5, 0x00) Name (DDB6, 0x00) Name (RPST, "\\DTM2") Name (PPST, "\\DTM2.PLDT") Name (NVAL, 0x01) Name (POPT, Package (0x03) { "\\DTM2", "\\DTM2.PLDT", 0x01 }) Method (M000, 1, NotSerialized) { Return (Arg0) } Method (M001, 3, NotSerialized) { Concatenate (Arg0, Arg2, Arg0) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (Arg1) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x01 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } If (CondRefOf (\DTM2._XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\DTM2._XT2", 0x00) } Unload (Arg1) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\DTM2._XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\DTM2._XT2", 0x01) Return (0x01) } Return (0x00) } Method (M002, 3, NotSerialized) { /* Bug 288: iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm */ /* return (LoadTable("OEM1", "", "", Arg0, Derefof(Arg1), Derefof(Arg2))) */ /* parse error, expecting `')'' ^ */ Return (LoadTable ("OEM1", "", "", Arg0, DerefOf (Arg1), 0x01)) } Method (M003, 3, NotSerialized) { /* Bug 288: iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm */ /* return (LoadTable("OEM1", "", "", Derefof(Arg0), Arg1, Derefof(Arg2))) */ /* parse error, expecting `')'' ^ */ Return (LoadTable ("OEM1", "", "", DerefOf (Arg0), Arg1, 0x01)) } Method (M004, 3, NotSerialized) { /* Bug 288: iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm */ /* return (LoadTable("OEM1", "", "", Derefof(Arg0), Derefof(Arg1), Arg2)) */ /* parse error, expecting `')'' ^ */ Return (LoadTable ("OEM1", "", "", DerefOf (Arg0), DerefOf (Arg1), 0x01)) } Concatenate (Arg0, "-tst4", Arg0) If (CondRefOf (\DTM2._XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\DTM2._XT2", 0x01) Return (0x01) } /* Check LoadTable(..., Named, LocalX, Method()) */ \DTM2.PLDT = 0x00 Local2 = PPST /* \DTM2.TST4.PPST */ /* Bug 288: iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm */ /* Store(LoadTable("OEM1", "", "", RPST, Local2, m000(1)), DDB0) */ /* parse error, expecting `')'' ^ */ DDB0 = LoadTable ("OEM1", "", "", RPST, Local2, 0x01) If (M001 (Arg0, DDB0, ".NLM")) { Return (0x01) } /* Check LoadTable(..., Method(), Named, LocalX) */ \DTM2.PLDT = 0x00 Local2 = 0x01 /* Bug 288: iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm */ /* Store(LoadTable("OEM1", "", "", m000(RPST), PPST, Local2), DDB1) */ /* parse error, expecting `')'' ^ */ DDB1 = LoadTable ("OEM1", "", "", M000 (RPST), PPST, 0x01) If (M001 (Arg0, DDB1, ".MNL")) { Return (0x01) } /* Check LoadTable(..., LocalX, Method(), Named) */ \DTM2.PLDT = 0x00 Local2 = RPST /* \DTM2.TST4.RPST */ DDB2 = LoadTable ("OEM1", "", "", Local2, M000 (PPST), NVAL) If (M001 (Arg0, DDB2, ".LMN")) { Return (0x01) } /* Check LoadTable(..., ArgX, Derefof(Refof), Derefof(Index)) */ \DTM2.PLDT = 0x00 Local2 = RefOf (PPST) Store (POPT [0x02], Local3) DDB3 = M002 (RPST, Local2, Local3) If (M001 (Arg0, DDB3, ".ARI")) { Return (0x01) } /* Check LoadTable(..., Derefof(Index), ArgX, Derefof(Refof)) */ \DTM2.PLDT = 0x00 Local2 = RefOf (NVAL) Store (POPT [0x00], Local3) DDB4 = M003 (Local3, PPST, Local2) If (M001 (Arg0, DDB4, ".ARI")) { Return (0x01) } /* Check LoadTable(..., Derefof(Refof), Derefof(Index), ArgX) */ \DTM2.PLDT = 0x00 Local2 = RefOf (RPST) Store (POPT [0x01], Local3) DDB5 = M004 (Local2, Local3, NVAL) If (M001 (Arg0, DDB5, ".ARI")) { Return (0x01) } /* Check LoadTable(..., TermArg, TermArg, TermArg) */ \DTM2.PLDT = 0x00 Local2 = Concatenate ("term", RPST) Local2 = ToBuffer (Local2) Local3 = ToBuffer (PPST) Local4 = 0x03 DDB6 = LoadTable ("OEM1", "", "", Mid (ToString (Local2, Ones), 0x04, 0x05), ToString (M000 (Local3), Ones), /* Bug 288: iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm */ /* Subtract(m000(Local4), 2)), */ (0x03 - 0x02)) If (M001 (Arg0, DDB6, ".TTT")) { Return (0x01) } Return (0x00) } /* Namespace location to load the Definition Block is determined */ /* by the RootPathString parameter of Loadtable */ /* Arg1: RootPathString */ Method (TST5, 2, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tst5", Arg0) If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } If (CondRefOf (\DTM2.DEVR._XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\DTM2.DEVR._XT2", 0x01) Return (0x01) } \DTM2.PLDT = 0x00 DDBH = LoadTable ("OEM1", "", "", Arg1, PPST, 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDBH) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x01 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } If (CondRefOf (\DTM2.DEVR._XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\DTM2.DEVR._XT2", 0x00) } Unload (DDBH) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } If (CondRefOf (\DTM2.DEVR._XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\DTM2.DEVR._XT2", 0x01) } Return (0x00) } /* "\" is assumed to be Namespace location to load the Definition */ /* Block if RootPathString parameter is not specified */ Method (TST6, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tst6", Arg0) If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } \DTM2.PLDT = 0x00 DDBH = LoadTable ("OEM1", "", "", "", PPST, 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDBH) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x01 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDBH) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } Return (0x00) } /* If the first character of ParameterPathString is a backslash */ /* or caret character, then the path of the object set up on success */ /* is ParameterPathString. It is RootPathString.ParameterPathString */ /* in any case. */ Method (TST7, 1, Serialized) { Name (DDBH, 0x00) Name (PLDT, 0x00) Concatenate (Arg0, "-tst7", Arg0) DDBH = LoadTable ("OEM1", "", "", RPST, "^TST7.PLDT", 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDBH) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x01 != PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, PLDT, 0x01) } Unload (DDBH) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } PLDT = 0x00 \DTM2.PLDT = 0x00 DDBH = LoadTable ("OEM1", "", "", RPST, "PLDT", 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDBH) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x00 != PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, PLDT, 0x00) } If ((0x01 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } Unload (DDBH) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Return (0x00) } /* Exceptions when the SignatureString is greater than four characters, */ /* the OEMIDString is greater than six characters, or the OEMTableID is */ /* greater than eight characters */ Method (TST8, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tst8", Arg0) \DTM2.PLDT = 0x00 /* SignatureString is greater than four characters */ If (Y287) { DDBH = LoadTable ("OEM1X", "", "", RPST, PPST, 0x01) } Else { LoadTable ("OEM1X", "", "", RPST, PPST, 0x01) } CH04 (Arg0, 0x00, 0x3D, Z176, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) If (Y287) { Return (0x01) } Else { /* Cleanup */ Unload (DDBH) \DTM2.PLDT = 0x00 } } /* OEMIDString is greater than six characters */ LoadTable ("OEM1", "IntelXX", "", RPST, PPST, 0x01) CH04 (Arg0, 0x00, 0x3D, Z176, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) Return (0x01) } /* OEMTableID is greater than eight characters */ LoadTable ("OEM1", "", "ManyXXXXX", RPST, PPST, 0x01) CH04 (Arg0, 0x00, 0x3D, Z176, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) Return (0x01) } Return (0x00) } /* Exceptions when some DSDT or SSDT matching the LoadTable parameters */ /* is already loaded (actually on initial loading of tables listed in XSDT) */ Method (TST9, 1, NotSerialized) { Concatenate (Arg0, "-tst9", Arg0) \DTM2.PLDT = 0x00 /* SignatureString is "DSDT" */ LoadTable ("DSDT", "", "", RPST, PPST, 0x01) CH04 (Arg0, 0x00, 0x07, Z176, __LINE__, 0x00, 0x00) /* AE_ALREADY_EXISTS */ If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } /* SignatureString is "SSDT" */ LoadTable ("SSDT", "", "", RPST, PPST, 0x01) CH04 (Arg0, 0x00, 0x07, Z176, __LINE__, 0x00, 0x00) /* AE_ALREADY_EXISTS */ If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } Return (0x00) } /* Exceptions when the matched table is already loaded */ Method (TSTA, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tsta", Arg0) If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } \DTM2.PLDT = 0x00 DDBH = LoadTable ("OEM1", "", "", "\\", PPST, 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDBH) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If ((0x01 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } \DTM2.PLDT = 0x00 LoadTable ("OEM1", "", "", "\\DTM2", PPST, 0x01) CH04 (Arg0, 0x00, 0x07, Z176, __LINE__, 0x00, 0x00) /* AE_ALREADY_EXISTS */ If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\DTM2._XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\DTM2._XT2", 0x01) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDBH) Debug = "OEM1 unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } Return (0x00) } /* Originated from ssdt4.asl: iasl -tc ssdt4.asl */ Name (BUF4, Buffer (0x44) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x44, 0x00, 0x00, 0x00, // SSDTD... /* 0008 */ 0x02, 0x08, 0x69, 0x41, 0x53, 0x4C, 0x54, 0x53, // ..iASLTS /* 0010 */ 0x4C, 0x54, 0x42, 0x4C, 0x30, 0x30, 0x30, 0x31, // LTBL0001 /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x15, 0x12, 0x06, 0x20, 0x10, 0x1F, 0x5C, 0x00, // ... ..\. /* 0028 */ 0x08, 0x5F, 0x58, 0x54, 0x32, 0x0D, 0x61, 0x62, // ._XT2.ab /* 0030 */ 0x73, 0x6F, 0x6C, 0x75, 0x74, 0x65, 0x20, 0x6C, // solute l /* 0038 */ 0x6F, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, // ocation /* 0040 */ 0x6F, 0x62, 0x6A, 0x00 // obj. }) OperationRegion (IST4, SystemMemory, 0x0600, 0x44) Field (IST4, ByteAcc, NoLock, Preserve) { RFU4, 544 } /* Exceptions when there already is an previously loaded Object */ /* referred by the path in the Namespace */ Method (TSTB, 1, Serialized) { Name (DDBH, 0x00) Concatenate (Arg0, "-tstb", Arg0) If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } RFU4 = BUF4 /* \DTM2.BUF4 */ Load (RFU4, DDBH) /* \DTM2.TSTB.DDBH */ If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local1 = ObjectType (DDBH) If ((Local1 != C017)) { /* DDB Handle */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, C017) Return (0x01) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } \DTM2.PLDT = 0x00 LoadTable ("OEM1", "", "", "\\", PPST, 0x01) CH04 (Arg0, 0x00, 0x07, Z176, __LINE__, 0x00, 0x00) /* AE_ALREADY_EXISTS */ If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x00) } Unload (DDBH) Debug = "SSDT unloaded" If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } Return (0x00) } /* Exceptions when the object specified by the ParameterPathString */ /* does not exist */ Method (TSTC, 1, NotSerialized) { Concatenate (Arg0, "-tstc", Arg0) LoadTable ("DSDT", "", "", RPST, "\\DTM2.NULL", 0x01) CH04 (Arg0, 0x00, 0x05, Z176, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ Return (0x00) } /* Exceptions when storing of data of the ParameterData data type */ /* to the specified object is not allowed. */ Method (TSTD, 1, NotSerialized) { Concatenate (Arg0, "-tstd", Arg0) \DTM2.PLDT = 0x00 LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \DTM2.DEVR) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) } Return (0x00) } /* Implicit operand conversion of the parameters specified to be strings */ Method (TSTE, 1, Serialized) { Name (DDBH, 0x02) Name (SOID, "") Name (STID, "") Name (RPST, "\\") Name (PPST, "DTM2.PLDT") Name (DSTR, "01234") Method (M000, 3, Serialized) { Name (DDBH, 0x02) \DTM2.PLDT = 0x00 Concatenate (Arg0, "-m000.", Arg0) Concatenate (Arg0, Mid (DSTR, Arg2, 0x01), Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { LoadTable (Arg1, SOID, STID, RPST, PPST, 0x01) Return (CH04 (Arg0, 0x00, 0x25, Z176, __LINE__, 0x00, 0x00))/* AE_BAD_SIGNATURE */ } Case (0x01) { DDBH = LoadTable (SOEM, Arg1, STID, RPST, PPST, 0x01) } Case (0x02) { DDBH = LoadTable (SOEM, SOID, Arg1, RPST, PPST, 0x01) } Case (0x03) { LoadTable (SOEM, SOID, STID, Arg1, PPST, 0x01) Return (CH04 (Arg0, 0x00, 0x1E, Z176, __LINE__, 0x00, 0x00)) /* AE_BAD_PATHNAME */ } Case (0x04) { LoadTable (SOEM, SOID, STID, RPST, Arg1, 0x01) Return (CH04 (Arg0, 0x00, 0x1E, Z176, __LINE__, 0x00, 0x00)) /* AE_BAD_PATHNAME */ } } If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If ((0x00 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x00) Return (0x01) } Local5 = ObjectType (DDBH) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If ((Local5 != C009)) { /* Integer */ ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local5, C009) Return (0x01) } If ((0x00 != DDBH)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, DDBH, 0x00) Return (0x01) } Return (0x00) } Concatenate (Arg0, "-tste", Arg0) If (Y281) { SOID = ^SOID /* \DTM2.SOID */ STID = ^STID /* \DTM2.STID */ } /* Buffer to String implicit conversion, only check that then */ /* no exception occurs. Actually due to the conversion rule */ /* resulting strings will not match the table fields */ ToBuffer (SOEM, Local0) ToBuffer (SOID, Local1) ToBuffer (STID, Local2) ToBuffer (RPST, Local3) ToBuffer (PPST, Local4) If (M000 (Arg0, Local0, 0x00)) { Return (0x01) } If (M000 (Arg0, Local1, 0x01)) { Return (0x01) } If (M000 (Arg0, Local2, 0x02)) { Return (0x01) } If (M000 (Arg0, Local3, 0x03)) { Return (0x01) } If (M000 (Arg0, Local4, 0x04)) { Return (0x01) } /* Check consistency of the parameters */ If ((ToBuffer (SOEM) != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, ToBuffer (SOEM)) Return (0x01) } If ((ToBuffer (SOID) != Local1)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local1, ToBuffer (SOID)) Return (0x01) } If ((ToBuffer (STID) != Local2)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local2, ToBuffer (STID)) Return (0x01) } If ((ToBuffer (RPST) != Local3)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local3, ToBuffer (RPST)) Return (0x01) } If ((ToBuffer (PPST) != Local4)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local4, ToBuffer (PPST)) Return (0x01) } /* Integer to String implicit conversion */ ToInteger (Local0, Local0) ToInteger (Local1, Local1) ToInteger (Local2, Local2) ToInteger (Local3, Local3) ToInteger (Local4, Local4) /*if (m000(arg0, Local0, 0)) {return (1)} */ /*if (m000(arg0, Local1, 1)) {return (1)} */ /*if (m000(arg0, Local2, 2)) {return (1)} */ If (M000 (Arg0, Local3, 0x03)) { Return (0x01) } If (M000 (Arg0, Local4, 0x04)) { Return (0x01) } /* Actual trivial Buffer to String implicit conversion */ If (Y293) { If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } Local0 = 0x00 Local1 = Buffer (Local0){} \DTM2.PLDT = 0x00 DDBH = LoadTable (SOEM, Local1, Local1, RPST, PPST, 0x01) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If ((0x01 != \DTM2.PLDT)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, 0x01) Return (0x01) } If (CondRefOf (\_XT2, Local0)){} Else { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } Unload (DDBH) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } If (CondRefOf (\_XT2, Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, "\\_XT2", 0x01) Return (0x01) } } Return (0x00) } /* LoadTable returns 0 if some SSDT matching the LoadTable */ /* parameters is originally not listed in XSDT */ /* * This test should never happen in real ASL code. So it is removed. * * The Load operation will add a table to global table list, which is * the master list that can be find in XSDT. * * The Unload operation will just delete the namespace owned by the table, * release OwnerId and reset the table flag, but the table remains in * global table list. * * So, LoadTable after Load and UnLoad operation will cause exception. * * Nothing like this should happen in real ASL code. The BIOS writer * knows whether the table is in the XSDT or not. */ /* Method(tstf, 1) { Name(DDBH, 0) Concatenate(arg0, "-tstf", arg0) if (CondRefof(\_XT2, Local0)) { err(arg0, z176, __LINE__, 0, 0, "\\_XT2", 1) return (1) } Store(BUF4, RFU4) Load(RFU4, DDBH) if (CH03(arg0, z176, 0x0f2, __LINE__, 0)) { return (1) } Store(ObjectType(DDBH), Local1) if (LNotEqual(Local1, c017)) { // DDB Handle err(arg0, z176, __LINE__, 0, 0, Local1, c017) return (1) } if (CondRefof(\_XT2, Local0)) { } else { err(arg0, z176, __LINE__, 0, 0, "\\_XT2", 0) } UnLoad(DDBH) Store("SSDT unloaded", Debug) if (CH03(arg0, z176, 0x0f5, __LINE__, 0)) { return (1) } if (CondRefof(\_XT2, Local0)) { err(arg0, z176, __LINE__, 0, 0, "\\_XT2", 1) return (1) } Store(0, \DTM2.PLDT) if (y289) { LoadTable("SSDT", "iASLTS", "LTBL0001", "\\", PPST, 1) } else { Store(LoadTable("SSDT", "iASLTS", "LTBL0001", "\\", PPST, 1), DDBH) } CH04(arg0, 0, 28, z176, __LINE__, 0, 0) // AE_BAD_PARAMETER if (LNotEqual(0, \DTM2.PLDT)) { err(arg0, z176, __LINE__, 0, 0, \DTM2.PLDT, 0) } if (CondRefof(\_XT2, Local0)) { err(arg0, z176, __LINE__, 0, 0, "\\_XT2", 1) if (y289) { // Cleanup UnLoad(DDBH) } } return (0) } */ /* AE_OWNER_ID_LIMIT exception when too many Tables loaded */ Method (TSTG, 1, NotSerialized) { Concatenate (Arg0, "-tstg-\\DTM0", Arg0) \DTM0.TSTH (Arg0, 0x01) } /* Exceptions when the parameter of the Loadtable operator */ /* is of incorrect types */ Method (TSTH, 1, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) Name (BTYP, Buffer (0x10) { /* 0000 */ 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00 // ........ }) Method (M000, 4, NotSerialized) { Concatenate (Arg0, "-m000.", Arg0) Concatenate (Arg0, Arg1, Arg0) Local0 = ObjectType (Arg2) If ((Arg3 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, Arg3) Return (0x01) } LoadTable (DerefOf (Arg2), "", "", "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Return (0x00) } Method (M001, 4, NotSerialized) { Concatenate (Arg0, "-m001.", Arg0) Concatenate (Arg0, Arg1, Arg0) Local0 = ObjectType (Arg2) If ((Arg3 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, Arg3) Return (0x01) } LoadTable ("OEM1", DerefOf (Arg2), "", "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Return (0x00) } Method (M002, 4, NotSerialized) { Concatenate (Arg0, "-m002.", Arg0) Concatenate (Arg0, Arg1, Arg0) Local0 = ObjectType (Arg2) If ((Arg3 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, Arg3) Return (0x01) } LoadTable ("OEM1", "", DerefOf (Arg2), "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Return (0x00) } Method (M003, 4, NotSerialized) { Concatenate (Arg0, "-m003.", Arg0) Concatenate (Arg0, Arg1, Arg0) Local0 = ObjectType (Arg2) If ((Arg3 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, Arg3) Return (0x01) } LoadTable ("OEM1", "", "", DerefOf (Arg2), "\\DTM2.PLDT", 0x01) If (DerefOf (BTYP [Arg3])) { CH04 (Arg0, 0x00, 0x1E, Z176, __LINE__, 0x00, 0x00) /* AE_BAD_PATHNAME */ } Else { CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Return (0x00) } Method (M004, 4, NotSerialized) { Concatenate (Arg0, "-m004.", Arg0) Concatenate (Arg0, Arg1, Arg0) Local0 = ObjectType (Arg2) If ((Arg3 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, Arg3) Return (0x01) } LoadTable ("OEM1", "", "", "\\", DerefOf (Arg2), 0x01) If (DerefOf (BTYP [Arg3])) { CH04 (Arg0, 0x00, 0x1E, Z176, __LINE__, 0x00, 0x00) /* AE_BAD_PATHNAME */ } Else { CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Return (0x00) } Concatenate (Arg0, "-tsth", Arg0) /* Load Auxiliry table */ \DTM0.RFU3 = \DTM0.BUF3 Load (\DTM0.RFU3, DDB0) /* \DTM2.TSTH.DDB0 */ If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Uninitialized */ If (0x00) { Local1 = 0x00 } Local0 = ObjectType (Local1) If ((C008 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C008) } Else { LoadTable (Local1, "", "", "\\", "\\DTM2.PLDT", 0x01) If (SLCK) { CH04 (Arg0, 0x00, 0x3D, Z176, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ } Else { CH04 (Arg0, 0x00, 0x31, Z176, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_LOCAL */ } LoadTable ("OEM1", Local1, "", "\\", "\\DTM2.PLDT", 0x01) If (SLCK) { CH04 (Arg0, 0x00, 0x3D, Z176, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ } Else { CH04 (Arg0, 0x00, 0x31, Z176, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_LOCAL */ } LoadTable ("OEM1", "", Local1, "\\", "\\DTM2.PLDT", 0x01) If (SLCK) { /* ACPI_OEM_TABLE_ID_SIZE should be less than 8. */ /* The size of the "Integer" converted from "Any" is ISZ0*2. */ If ((ISZ0 <= 0x04)) { CH03 (Arg0, Z176, __LINE__, 0x00, 0x00) /* No exception */ } Else { CH04 (Arg0, 0x00, 0x3D, Z176, __LINE__, 0x00, 0x00) /* AE_AML_STRING_LIMIT */ } } Else { CH04 (Arg0, 0x00, 0x31, Z176, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_LOCAL */ } LoadTable ("OEM1", "", "", Local1, "\\DTM2.PLDT", 0x01) If (SLCK) { CH04 (Arg0, 0x00, 0x1E, Z176, __LINE__, 0x00, 0x00) /* AE_BAD_PATHNAME */ } Else { CH04 (Arg0, 0x00, 0x31, Z176, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_LOCAL */ } LoadTable ("OEM1", "", "", "\\", Local1, 0x01) If (SLCK) { CH04 (Arg0, 0x00, 0x1E, Z176, __LINE__, 0x00, 0x00) /* AE_BAD_PATHNAME */ } Else { CH04 (Arg0, 0x00, 0x31, Z176, __LINE__, 0x00, 0x00) /* AE_AML_UNINITIALIZED_LOCAL */ } } /* Integer */ M003 (Arg0, "int", RefOf (\AUXD.INT0), C009) M004 (Arg0, "int", RefOf (\AUXD.INT0), C009) /* String */ M003 (Arg0, "str", RefOf (\AUXD.STR0), C00A) M004 (Arg0, "str", RefOf (\AUXD.STR0), C00A) /* Buffer */ M003 (Arg0, "buf", RefOf (\AUXD.BUF0), C00B) M004 (Arg0, "buf", RefOf (\AUXD.BUF0), C00B) /* Package */ If (Y286) { M000 (Arg0, "pac", RefOf (\AUXD.PAC0), C00C) M001 (Arg0, "pac", RefOf (\AUXD.PAC0), C00C) M002 (Arg0, "pac", RefOf (\AUXD.PAC0), C00C) M003 (Arg0, "pac", RefOf (\AUXD.PAC0), C00C) M004 (Arg0, "pac", RefOf (\AUXD.PAC0), C00C) } LoadTable (\AUXD.PAC0, "", "", "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", \AUXD.PAC0, "", "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", "", \AUXD.PAC0, "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", "", "", \AUXD.PAC0, "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", "", "", "\\", \AUXD.PAC0, 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.PAC0) If ((C00C != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C00C) } /* Field Unit */ M003 (Arg0, "flu", RefOf (\AUXD.FLU0), C00D) M004 (Arg0, "flu", RefOf (\AUXD.FLU0), C00D) /* Device */ LoadTable (\AUXD.DEV0, "", "", "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", \AUXD.DEV0, "", "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", "", \AUXD.DEV0, "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", "", "", \AUXD.DEV0, "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", "", "", "\\", \AUXD.DEV0, 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.DEV0) If ((C00E != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C00E) } /* Event */ M000 (Arg0, "evt", RefOf (\AUXD.EVE0), C00F) M001 (Arg0, "evt", RefOf (\AUXD.EVE0), C00F) M002 (Arg0, "evt", RefOf (\AUXD.EVE0), C00F) M003 (Arg0, "evt", RefOf (\AUXD.EVE0), C00F) M004 (Arg0, "evt", RefOf (\AUXD.EVE0), C00F) /* Method */ M000 (Arg0, "met", RefOf (\AUXD.MMM0), C010) M001 (Arg0, "met", RefOf (\AUXD.MMM0), C010) M002 (Arg0, "met", RefOf (\AUXD.MMM0), C010) M003 (Arg0, "met", RefOf (\AUXD.MMM0), C010) M004 (Arg0, "met", RefOf (\AUXD.MMM0), C010) /* Mutex */ M000 (Arg0, "mtx", RefOf (\AUXD.MTX0), C011) M001 (Arg0, "mtx", RefOf (\AUXD.MTX0), C011) M002 (Arg0, "mtx", RefOf (\AUXD.MTX0), C011) M003 (Arg0, "mtx", RefOf (\AUXD.MTX0), C011) M004 (Arg0, "mtx", RefOf (\AUXD.MTX0), C011) /* OpRegion */ M000 (Arg0, "opr", RefOf (\AUXD.OPR0), C012) M001 (Arg0, "opr", RefOf (\AUXD.OPR0), C012) M002 (Arg0, "opr", RefOf (\AUXD.OPR0), C012) M003 (Arg0, "opr", RefOf (\AUXD.OPR0), C012) M004 (Arg0, "opr", RefOf (\AUXD.OPR0), C012) /* Power Resource */ M000 (Arg0, "pwr", RefOf (\AUXD.PWR0), C013) M001 (Arg0, "pwr", RefOf (\AUXD.PWR0), C013) M002 (Arg0, "pwr", RefOf (\AUXD.PWR0), C013) M003 (Arg0, "pwr", RefOf (\AUXD.PWR0), C013) M004 (Arg0, "pwr", RefOf (\AUXD.PWR0), C013) /* Processor */ M000 (Arg0, "cpu", RefOf (\AUXD.CPU0), C014) M001 (Arg0, "cpu", RefOf (\AUXD.CPU0), C014) M002 (Arg0, "cpu", RefOf (\AUXD.CPU0), C014) M003 (Arg0, "cpu", RefOf (\AUXD.CPU0), C014) M004 (Arg0, "cpu", RefOf (\AUXD.CPU0), C014) /* Thermal Zone */ LoadTable (\AUXD.TZN0, "", "", "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", \AUXD.TZN0, "", "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", "", \AUXD.TZN0, "\\", "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", "", "", \AUXD.TZN0, "\\DTM2.PLDT", 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ LoadTable ("OEM1", "", "", "\\", \AUXD.TZN0, 0x01) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.TZN0) If ((C015 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C015) } /* Buffer Field */ M003 (Arg0, "bfl", RefOf (\AUXD.BFL0), C016) M004 (Arg0, "bfl", RefOf (\AUXD.BFL0), C016) Unload (DDB0) CH03 (Arg0, Z176, __LINE__, 0x00, 0x00) Return (0x00) } /* Exceptions when the ParameterData parameter of the Loadtable operator */ /* can not be saved into the Object referred by ParameterPathString */ Method (TSTI, 1, Serialized) { Name (DDB0, 0x00) Name (DDB1, 0x00) Concatenate (Arg0, "-tsti", Arg0) /* Load Auxiliry table */ \DTM0.RFU3 = \DTM0.BUF3 Load (\DTM0.RFU3, DDB0) /* \DTM2.TSTI.DDB0 */ If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } /* Uninitialized */ If (0x00) { Local1 = 0x00 } Local0 = ObjectType (Local1) If ((C008 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C008) } /* Bug 288: iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm */ /* LoadTable("OEM1", "", "", "\\", "\\DTM2.PLDT", Local1) if (SLCK) { CH04(arg0, 0, 47, z176, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE } else { CH04(arg0, 0, 49, z176, __LINE__, 0, 0) // AE_AML_UNINITIALIZED_LOCAL } */ Else { } /* Integer */ Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } DDB1 = LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.INT0) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } If ((\DTM2.PLDT != \AUXD.INT0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, \AUXD.INT0) Return (0x01) } Unload (DDB1) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\AUXD.INT0) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) } /* String */ If (Y296) { Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } DDB1 = LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.STR0) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } If ((\DTM2.PLDT != \AUXD.STR0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, \AUXD.STR0) Return (0x01) } Unload (DDB1) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\AUXD.STR0) If ((C00A != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C00A) } } /* Buffer */ If (Y296) { Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } DDB1 = LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.BUF0) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } If ((\DTM2.PLDT != \AUXD.BUF0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, \AUXD.BUF0) Return (0x01) } Unload (DDB1) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\AUXD.BUF0) If ((C00B != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C00B) } } /* Package */ LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.PAC0) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.PAC0) If ((C00C != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C00C) } /* Field Unit */ If (Y296) { Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } DDB1 = LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.FLU0) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } If ((\DTM2.PLDT != \AUXD.FLU0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, \AUXD.FLU0) Return (0x01) } Unload (DDB1) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\AUXD.FLU0) If ((C00D != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C00D) } } /* Device */ LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.DEV0) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.DEV0) If ((C00E != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C00E) } /* Event */ LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.EVE0) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.EVE0) If ((C00F != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C00F) } /* Method */ If (Y288) { LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.MMM0) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.MMM0) If ((C010 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C010) } } /* Mutex */ LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.MTX0) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.MTX0) If ((C011 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C011) } /* OpRegion */ LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.OPR0) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.OPR0) If ((C012 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C012) } /* Power Resource */ LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.PWR0) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.PWR0) If ((C013 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C013) } /* Processor */ LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.CPU0) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.CPU0) If ((C014 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C014) } /* Thermal Zone */ LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.TZN0) CH04 (Arg0, 0x00, 0x2F, Z176, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ Local0 = ObjectType (\AUXD.TZN0) If ((C015 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C015) } /* Buffer Field */ If (Y296) { Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } DDB1 = LoadTable ("OEM1", "", "", "\\", "\\DTM2.PLDT", \AUXD.BFL0) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\DTM2.PLDT) If ((C009 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C009) Return (0x01) } If ((\DTM2.PLDT != \AUXD.BFL0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, \DTM2.PLDT, \AUXD.BFL0) Return (0x01) } Unload (DDB1) If (CH03 (Arg0, Z176, __LINE__, 0x00, 0x00)) { Return (0x01) } Local0 = ObjectType (\AUXD.BFL0) If ((C016 != Local0)) { ERR (Arg0, Z176, __LINE__, 0x00, 0x00, Local0, C016) } } Unload (DDB0) CH03 (Arg0, Z176, __LINE__, 0x00, 0x00) Return (0x00) } } Method (TLT0, 0, Serialized) { CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* Simple Loadtable test */ SRMT ("TLT0.tst0") \DTM2.TST0 (__METHOD__) CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* All comparisons of Loadtable parameters are case sensitive, */ /* if no table matches the specified parameters, then 0 is returned */ SRMT ("TLT0.tst1") \DTM2.TST1 (__METHOD__) CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* Any of the RootPathString, ParameterPathString, and ParameterData */ /* parameters in LoadTable expression can be omitted */ SRMT ("TLT0.tst2") \DTM2.TST2 (__METHOD__) CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* Different sources of the String parameters: Named Objects, LocalX, */ /* ArgX, elements of Packages, results of functions, any TermArg */ SRMT ("TLT0.tst3") \DTM2.TST3 (__METHOD__) CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* Different sources of the optional parameters (RootPathString, */ /* ParameterPathString, and ParameterData): Named Objects, LocalX, */ /* ArgX, elements of Packages, results of functions, any TermArg */ SRMT ("TLT0.tst4") \DTM2.TST4 (__METHOD__) CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* Namespace location to load the Definition Block is determined */ /* by the RootPathString parameter of Loadtable */ SRMT ("TLT0.tst5.0") \DTM2.TST5 (__METHOD__, "\\DTM2.DEVR") CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* The RootPathString value is evaluated using normal scoping rules, */ /* assuming that the scope of the LoadTable operator is the current */ /* scope */ SRMT ("TLT0.tst5.1") \DTM2.TST5 (__METHOD__, "^DEVR") CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* "\" is assumed to be Namespace location to load the Definition */ /* Block if RootPathString parameter is not specified */ SRMT ("TLT0.tst6") \DTM2.TST6 (__METHOD__) CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* If the first character of ParameterPathString is a backslash */ /* or caret character, then the path of the object set up on success */ /* is ParameterPathString. It is RootPathString.ParameterPathString */ /* in any case. */ SRMT ("TLT0.tst7") \DTM2.TST7 (__METHOD__) CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* Implicit operand conversion of the parameters specified to be strings */ SRMT ("TLT0.tste") \DTM2.TSTE (__METHOD__) CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) /* LoadTable returns 0 if some SSDT matching the LoadTable */ /* parameters is originally not listed in XSDT */ /*SRMT("TLT0.tstf") */ /*\DTM2.tstf(ts) */ CH03 (__METHOD__, Z176, __LINE__, 0x00, 0x00) } /* Exceptional conditions */ Method (TLT1, 0, Serialized) { /* Exceptions when the SignatureString is greater than four characters, */ /* the OEMIDString is greater than six characters, or the OEMTableID is */ /* greater than eight characters */ SRMT ("TLT1.tst8") \DTM2.TST8 (__METHOD__) /* Exceptions when some DSDT or SSDT matching the LoadTable parameters */ /* is already loaded (actually on initial loading of tables listed in XSDT) */ SRMT ("TLT1.tst9") \DTM2.TST9 (__METHOD__) /* Exceptions when the matched table is already loaded */ SRMT ("TLT1.tsta") \DTM2.TSTA (__METHOD__) /* Exceptions when there already is an previously loaded Object */ /* referred by the path in the Namespace */ SRMT ("TLT1.tstb") \DTM2.TSTB (__METHOD__) /* Exceptions when the object specified by the ParameterPathString */ /* does not exist */ SRMT ("TLT1.tstc") \DTM2.TSTC (__METHOD__) /* Exceptions when storing of data of the ParameterData data type */ /* to the specified object is not allowed. */ SRMT ("TLT1.tstd") \DTM2.TSTD (__METHOD__) /* AE_OWNER_ID_LIMIT exception when too many Tables loaded */ SRMT ("TLT1.tstg") If (Y294) { \DTM2.TSTG (__METHOD__) } Else { BLCK () } /* Exceptions when the parameter of the Loadtable operator */ /* is of incorrect types */ SRMT ("TLT1.tsth") \DTM2.TSTH (__METHOD__) /* Exceptions when the ParameterData parameter of the Loadtable operator */ /* can not be saved into the Object referred by ParameterPathString */ SRMT ("TLT1.tsti") \DTM2.TSTI (__METHOD__) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/oem1.asl0000700000175000017500000000375114773714157027415 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The LoadTable operator tests auxiliary DefinitionBlock, * which is appropriate to the OEM1 signature table addressed * by the RSDT in acpiexec. */ DefinitionBlock( "oem1.aml", // Output filename "OEM1", // Signature 0x01, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Name (_XT2, 0x04) Method (_XT1, 0, NotSerialized) { Store (One, _XT2) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/MAIN.asl0000700000175000017500000000411214773714157027270 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("table", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/table/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/table/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Local7 = 0x00 Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/Makefile0000700000175000017500000000021614773714157027504 0ustar ivanhuivanhu# table AMLMOD= table COLL= ../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/table/ssdt3.asl0000700000175000017500000000524414773714157027613 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The Load operator tests auxiliary SSDT, * specifies the Objects of different types */ DefinitionBlock( "ssdt3.aml", // Output filename "SSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { Device (AUXD) { // Integer Name(INT0, 0xfedcba9876543210) // String Name(STR0, "source string0") // Buffer Name(BUF0, Buffer(9){9,8,7,6,5,4,3,2,1}) // Package Name(PAC0, Package(3) { 0xfedcba987654321f, "test package0", Buffer(9){19,18,17,16,15,14,13,12,11}, }) // Operation Region OperationRegion(OPR0, SystemMemory, 0x7654321, 0x98) // Field Unit Field(OPR0, ByteAcc, NoLock, Preserve) { FLU0, 32, } // Device Device(DEV0) {Name(s000, "DEV0")} // Event Event(EVE0) // Method Method(MMM0) {Return (0)} // Mutex Mutex(MTX0, 0) // Power Resource PowerResource(PWR0, 0, 0) {Name(s000, "PWR0")} // Processor Processor(CPU0, 0x0, 0xFFFFFFFF, 0x0) {Name(s000, "CPU0")} // Thermal Zone ThermalZone(TZN0) {Name(s000, "TZN0")} // Buffer Field Createfield(BUF0, 0, 69, BFL0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/Makefile0000700000175000017500000000037114773714156026416 0ustar ivanhuivanhu# functional MDIRS = \ arithmetic \ bfield \ constant \ control \ descriptor \ logic \ manipulation \ name \ reference \ region \ synchronization \ table \ external # extern local FULL TOP= ../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/module/0000700000175000017500000000000014773714156026237 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/module/DECL.asl0000700000175000017500000000340414773714156027453 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include("../../../../runtime/collections/functional/module/scope.asl") Include("../../../../runtime/collections/functional/module/object.asl") Include("../../../../runtime/collections/functional/module/order.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/module/RUN.asl0000700000175000017500000000334014773714156027407 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Module level code execution", TCLF, 14, W01a)) { SRMT("MLS0") MLS0() SRMT("MLS1") MLS1() SRMT("MLO0") MLO0() SRMT("MLO1") MLO1() SRMT("MLD0") MLD0() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/module/object.asl0000700000175000017500000001040214773714156030206 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Module level execution under Device/Processor/ThermalZone/PowerResource */ /* * Verify if Type1Opcode (ex., If) and Type2Opcode (ex., Store) is allowed * under Device, PowerResource, Processor, or ThermalZone * * ASL spec state: * 1. DeviceTerm supports ObjectList for ACPI 1.0 ~ ACPI 6.1. * 2. PwerResTerm supports ObjectList for ACPI 1.0 ~ ACPI 6.1. * 3. ProcessorTerm supports ObjectList for ACPI 1.0 ~ ACPI 6.1. * 4. ThermalZoneTerm supports ObjectList for ACPI 1.0 ~ ACPI 6.1. * * AML spec state: * 1. DefDevice supports ObjectList for ACPI 1.0 ~ ACPI 6.0. * 2. DefPowerRes supports ObjectList for ACPI 1.0 ~ ACPI 6.0. * 3. DefProcessor supports ObjectList for ACPI 1.0 ~ ACPI 6.0. * 4. DefThermalZone supports ObjectList for ACPI 1.0 ~ ACPI 6.0. * * It appears the AML interpreter shouldn't support TermList for these * objects as both the ASL grammar and AML grammar doesn't allow it. But * the real world appears not. */ Name(z181, 181) /* Tests for Type1Opcode */ Name(ml10, 0) Name(ml11, 0) Name(ml12, 0) Name(ml13, 0) Scope(\_SB) { Device(dev0) { if (LEqual(ml10, 0)) { Store(2, ml10) } PowerResource(pr00, 1, 0) { if (LEqual(ml13, 0)) { Store(2, ml13) } } } } Scope(\_PR) { Processor(cpu0, 0, 0xFFFFFFFF, 0) { if (LEqual(ml11, 0)) { Store(2, ml11) } } } Scope(\_TZ) { ThermalZone(thz0) { if (LEqual(ml12, 0)) { Store(2, ml12) } } } Method(MLO0,, Serialized) { Name(ts, "MLO0") Store("TEST: MLO0, Type1Opcode is executable under objects", Debug) if (LNotEqual(ml10, 2)) { err(ts, z181, __LINE__, z181, 0, ml10, 2) } if (LNotEqual(ml11, 2)) { err(ts, z181, __LINE__, z181, 1, ml11, 2) } if (LNotEqual(ml12, 2)) { err(ts, z181, __LINE__, z181, 2, ml12, 2) } if (LNotEqual(ml13, 2)) { err(ts, z181, __LINE__, z181, 3, ml13, 2) } } /* Tests for Type2Opcode */ Name(ml14, 0) Name(ml15, 0) Name(ml16, 0) Name(ml17, 0) Scope(\_SB) { Device(dev1) { Store (1, ml14) if (LEqual(ml14, 1)) { Store(2, ml14) } PowerResource(pr01, 1, 0) { Store (1, ml15) if (LEqual(ml15, 1)) { Store(2, ml15) } } } } Scope(\_PR) { Processor(cpu1, 0, 0xFFFFFFFF, 0) { Store (1, ml16) if (LEqual(ml16, 1)) { Store(2, ml16) } } } Scope(\_TZ) { ThermalZone(thz1) { Store (1, ml17) if (LEqual(ml17, 1)) { Store(2, ml17) } } } Method(MLO1,, Serialized) { Name(ts, "MLO1") Store("TEST: MLO1 Type2Opcode is executable under objects", Debug) if (LNotEqual(ml14, 2)) { err(ts, z181, __LINE__, z181, 4, ml14, 2) } if (LNotEqual(ml15, 2)) { err(ts, z181, __LINE__, z181, 5, ml15, 2) } if (LNotEqual(ml16, 2)) { err(ts, z181, __LINE__, z181, 6, ml16, 2) } if (LNotEqual(ml17, 2)) { err(ts, z181, __LINE__, z181, 7, ml17, 2) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/module/order.asl0000700000175000017500000000402014773714156030052 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Module level execution order */ /* * Verify if module level opcode is executed right in place. */ Name(z182, 182) /* Tests for Type2Opcode order */ Name(ml20, 0) Name(ob01, 0) if (CondRefOf(ob01)) { Store(1, ml20) if (CondRefOf(ob02)) { Store(2, ml20) } } Name(ob02, 0) Method(MLD0,, Serialized) { Name(ts, "MLD0") Store("TEST: MLD0, Type2Opcode is executed right in place", Debug) if (LNotEqual(ml20, 1)) { err(ts, z182, __LINE__, z182, 6, ml20, 1) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/module/MAIN.asl0000700000175000017500000000414314773714156027471 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "module.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../runtime/cntl/DECL.asl") Include("../../../../runtime/collections/functional/module/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../runtime/collections/functional/module/RUN.asl") // Final actions Store(FNSH(), Local7) Store(0, Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/module/Makefile0000700000175000017500000000013414773714156027700 0ustar ivanhuivanhu# table AMLMOD= module COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/module/scope.asl0000700000175000017500000000663414773714156030065 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Module level execution under DefinitionBlock/Scope */ /* * Verify if Type1Opcode (ex., If) and Type2Opcode (ex., Store) is allowed * under DefinitionBlock or Scope * * ASL spec state: * 1. DefinitionBlockTerm supports TermList for ACPI 1.0 ~ 6.0. * 2. ScopeTerm supports TermList for ACPI 1.0 and ObjectList for * ACPI 2.0 ~ 6.0. * * AML spec state: * 1. AMLCode supports TermList for ACPI 2.0 ~ 6.0. * 2. DefScope supports ObjectList for ACPI 1.0 and TermList for * ACPI 2.0 ~ 6.0. * * It appears the AML interpreter should support TermList for both * DefinitionBlock and Scope, but the ASL grammar is not compliant to the * AML grammar and the real world. */ Name(z180, 180) /* Tests for Type1Opcode */ Name(ml00, 0) Name(ml01, 0) Name(ml02, 0) if (LEqual(ml00, 0)) { Store(2, ml00) } Scope(\) { if (LEqual(ml01, 0)) { Store(2, ml01) } } Scope(\_SB) { if (LEqual(ml02, 0)) { Store(2, ml02) } } Method(MLS0,, Serialized) { Name(ts, "MLS0") Store("TEST: MLS0, Type1Opcode is executable under scopes", Debug) if (LNotEqual(ml00, 2)) { err(ts, z180, __LINE__, z180, 0, ml00, 2) } if (LNotEqual(ml01, 2)) { err(ts, z180, __LINE__, z180, 1, ml01, 2) } if (LNotEqual(ml02, 2)) { err(ts, z180, __LINE__, z180, 2, ml02, 2) } } /* Tests for Type2Opcode */ Name(ml03, 0) Name(ml04, 0) Name(ml05, 0) Store (1, ml03) if (LEqual(ml03, 1)) { Store(2, ml03) } Scope(\) { Store (1, ml04) if (LEqual(ml04, 1)) { Store(2, ml04) } } Scope(\_SB) { Store (1, ml05) if (LEqual(ml05, 1)) { Store(2, ml05) } } Method(MLS1,, Serialized) { Name(ts, "MLS1") Store("TEST: MLS1, Type2Opcode is executable under scopes", Debug) if (LNotEqual(ml03, 2)) { err(ts, z180, __LINE__, z180, 3, ml03, 2) } if (LNotEqual(ml04, 2)) { err(ts, z180, __LINE__, z180, 4, ml04, 2) } if (LNotEqual(ml05, 2)) { err(ts, z180, __LINE__, z180, 5, ml05, 2) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/constant/0000700000175000017500000000000014773714155026602 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/constant/DECL.asl0000700000175000017500000000335214773714155030020 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/constant/constants.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/constant/RUN.asl0000700000175000017500000000361114773714155027753 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Constants", TCLF, 0x02, W002)) { SRMT ("CST1") CST1 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/constant/constants.asl0000700000175000017500000000600114773714155031317 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Constants */ Name (Z002, 0x02) /* Run-method */ Method (CST1, 0, Serialized) { If ((Zero != 0x00)) { ERR (__METHOD__, Z002, __LINE__, 0x00, 0x00, Zero, 0x00) } If ((One != 0x01)) { ERR (__METHOD__, Z002, __LINE__, 0x00, 0x00, One, 0x01) } If ((F64 == 0x01)) { If ((Ones != 0xFFFFFFFFFFFFFFFF)) { ERR (__METHOD__, Z002, __LINE__, 0x00, 0x00, Ones, 0xFFFFFFFFFFFFFFFF) } } ElseIf ((Ones != 0xFFFFFFFF)) { ERR (__METHOD__, Z002, __LINE__, 0x00, 0x00, Ones, 0xFFFFFFFF) } If ((Revision < 0x20140114)) { ERR (__METHOD__, Z002, __LINE__, 0x00, 0x00, Revision, 0x20050114) } If ((Revision > 0x20500000)) { ERR (__METHOD__, Z002, __LINE__, 0x00, 0x00, Revision, 0x20500000) } /* * June, 2015: * The _REV object is in the process of being deprecated, because * other ACPI implementations permanently return 2. Thus, it * has little or no value. Return 2 for compatibility with * other ACPI implementations. */ If ((\_REV != 0x02)) { ERR (__METHOD__, Z002, __LINE__, 0x00, 0x00, \_REV, 0x02) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/constant/MAIN.asl0000700000175000017500000000407514773714155030040 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("constant", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/constant/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/constant/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/constant/Makefile0000700000175000017500000000014114773714155030241 0ustar ivanhuivanhu# constant AMLMOD= constant COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/0000700000175000017500000000000014773714157026236 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/DECL.asl0000700000175000017500000000405314773714157027453 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/region/opregions.asl") Include ("../../../../runtime/collections/functional/region/dtregions.asl") Include ("../../../../runtime/collections/functional/region/regionfield.asl") Include ("../../../../runtime/collections/functional/region/indexfield.asl") Include ("../../../../runtime/collections/functional/region/bankfield.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/RUN.asl0000700000175000017500000000374614773714157027420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Regions, including Region, Index and Bank Fields", TCLF, 0x0B, W00B)) { ORC0 () DRC0 () RFC0 () IFC0 () BFC0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/bankfield.asl0000700000175000017500000236614214773714157030677 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * BankField objects definition and processing */ /* * On testing following issues should be covered: * - Operation Regions of different Region Space types application * for BankField objects definition, * - Operation Regions of different Region Space types application * for definition of bank selection register Field object used in * BankField objects definition, * - application of any TermArg as a BankValue Integer, * - application of any allowed AccessType Keywords, * - application of any allowed LockRule Keywords, * - application of any allowed UpdateRule Keywords, * - application of the Offset macros in the FieldUnitList, * - application of the AccessAs macros in the FieldUnitList, * - on writing taking into account the Access Type in accord with the Update Rule, * - AccessAs macros influence on the remaining Field Units within the list, * - access to BankField objects in accord with the bank selection register * functionality, * - integer/buffer representation of the Unit contents as depends on its * Length and DSDT ComplianceRevision (32/64-bit Integer), * - Data Type Conversion Rules on storing to BankFields, * - check that Bank value can be computational data. * * Can not be tested following issues: * - exact use of given Access Type alignment on Access to Unit data, * - exact functioning of data exchange based on BankField functionality, * - exact use of specific Conversion Rules on storing of Buffers or Strings. */ Name (Z145, 0x91) OperationRegion (OPRI, SystemIO, 0x0200, 0x10) OperationRegion (OPRJ, SystemIO, 0x0230, 0x0133) /* Check against benchmark value */ /* m7bf(msg, result, benchmark, errnum) */ Method (M7BF, 4, NotSerialized) { If ((ObjectType (Arg1) != ObjectType (Arg2))) { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, ObjectType (Arg1), ObjectType (Arg2)) } ElseIf ((Arg1 != Arg2)) { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg1, Arg2) } } /* Simple BankField test */ Method (M7C0, 1, Serialized) { Field (OPRI, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (OPRJ, BNK0, 0x02, ByteAcc, NoLock, Preserve) { Offset (0x08), BF00, 8 } BankField (OPRJ, BNK0, 0x03, ByteAcc, NoLock, Preserve) { Offset (0x08), BF01, 8 } Concatenate (Arg0, "-m7c0", Arg0) /* */ /* Full support for bank fields not implemented in acpiexec, so */ /* we have to perform write/reads in order. Otherwise, we would */ /* interleave them. */ /* Write bf00 */ BNK0 = 0xFF M7BF (Arg0, BNK0, 0xFF, 0x01) BF00 = 0x67 M7BF (Arg0, BNK0, 0x02, 0x02) /* Read bf00 */ BNK0 = 0xFF M7BF (Arg0, BNK0, 0xFF, 0x05) Local1 = BF00 /* \M7C0.BF00 */ M7BF (Arg0, Local1, 0x67, 0x06) M7BF (Arg0, BNK0, 0x02, 0x07) /* Write bf01 */ BNK0 = 0xFF M7BF (Arg0, BNK0, 0xFF, 0x03) BF01 = 0x89 M7BF (Arg0, BNK0, 0x03, 0x04) /* Read bf01 */ BNK0 = 0xFF M7BF (Arg0, BNK0, 0xFF, 0x08) Local1 = BF01 /* \M7C0.BF01 */ M7BF (Arg0, Local1, 0x89, 0x09) M7BF (Arg0, BNK0, 0x03, 0x0A) } /* Testing parameters Packages */ /* Layout see in regionfield.asl */ /* (ByteAcc, NoLock, Preserve) */ Name (PP20, Package (0x05) { 0x00, 0x08, 0x00, 0x08, Package (0x06) { 0x00, 0x01, 0x01, 0x00, 0x01, "m7d0" } }) /* (WordAcc, NoLock, WriteAsOnes) */ Name (PP21, Package (0x05) { 0x00, 0x08, 0x08, 0x08, Package (0x06) { 0x00, 0x02, 0x02, 0x01, 0x01, "m7d1" } }) /* (DWordAcc, NoLock, WriteAsZeros) */ Name (PP22, Package (0x05) { 0x08, 0x08, 0x00, 0x08, Package (0x06) { 0x01, 0x02, 0x03, 0x02, 0x01, "m7d2" } }) /* (QWordAcc, NoLock, Preserve) */ Name (PP23, Package (0x05) { 0x08, 0x04, 0x08, 0x08, Package (0x06) { 0x01, 0x00, 0x03, 0x00, 0x01, "m7d3" } }) /* (AnyAcc, Lock, Preserve) */ Name (PP24, Package (0x05) { 0x0C, 0x04, 0x08, 0x08, Package (0x06) { 0x00, 0x01, 0x00, 0x00, 0x00, "m7d4" } }) /* Check BankField access: ByteAcc, NoLock, Preserve */ /* m7c1(CallChain) */ Method (M7C1, 1, NotSerialized) { Concatenate (Arg0, "-m7c1", Arg0) Debug = "TEST: m7c1, Check BankFields specified as (ByteAcc, NoLock, Preserve)" M72F (Arg0, 0x01, "pp20", PP20) } /* Check BankField access: WordAcc, NoLock, WriteAsOnes */ /* m7c2(CallChain) */ Method (M7C2, 1, NotSerialized) { Concatenate (Arg0, "-m7c2", Arg0) Debug = "TEST: m7c2, Check BankFields specified as (WordAcc, NoLock, WriteAsOnes)" M72F (Arg0, 0x01, "pp21", PP21) } /* Check BankField access: DWordAcc, NoLock, WriteAsZeros */ /* m7c3(CallChain) */ Method (M7C3, 1, NotSerialized) { Concatenate (Arg0, "-m7c3", Arg0) Debug = "TEST: m7c3, Check BankFields specified as (DWordAcc, NoLock, WriteAsZeros)" M72F (Arg0, 0x01, "pp22", PP22) } /* Check BankField access: QWordAcc, NoLock, Preserve */ /* m7c4(CallChain) */ Method (M7C4, 1, NotSerialized) { Concatenate (Arg0, "-m7c4", Arg0) Debug = "TEST: m7c4, Check BankFields specified as (QWordAcc, NoLock, Preserve)" M72F (Arg0, 0x01, "pp23", PP23) } /* Check BankField access: AnyAcc, Lock, Preserve */ /* m7c5(CallChain) */ Method (M7C5, 1, NotSerialized) { Concatenate (Arg0, "-m7c5", Arg0) Debug = "TEST: m7c5, Check BankFields specified as (AnyAcc, Lock, Preserve)" M72F (Arg0, 0x01, "pp24", PP24) } /* Create BankField Unit */ /* (ByteAcc, NoLock, Preserve) */ Method (M7D0, 6, Serialized) { OperationRegion (OPRB, SystemIO, 0x00, 0x09) OperationRegion (OPR0, SystemIO, 0x0B, 0x0100) Field (OPRB, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (OPR0, BNK0, 0x00, ByteAcc, NoLock, Preserve) { G000, 2048 } BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { G001, 2048 } BankField (OPR0, BNK0, 0x02, ByteAcc, NoLock, Preserve) { G002, 2048 } BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { G003, 2048 } BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { G004, 2048 } BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { G005, 2048 } BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { G006, 2048 } BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { G007, 2048 } BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { G008, 2048 } BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { G009, 2048 } BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { G00A, 2048 } BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { G00B, 2048 } BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { G00C, 2048 } BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { G00D, 2048 } BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m7d0", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, ByteAcc, NoLock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, ByteAcc, NoLock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, ByteAcc, NoLock, Preserve) { , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, ByteAcc, NoLock, Preserve) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } FCP0 [0x00] = 0x02 FCP0 [0x01] = RefOf (BNK0) FCP0 [0x02] = Local2 M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) FCP0 [0x00] = 0x00 } /* Create BankField Unit */ /* (WordAcc, NoLock, WriteAsOnes) */ Method (M7D1, 6, Serialized) { OperationRegion (OPRB, SystemIO, 0x00, 0x09) OperationRegion (OPR0, SystemIO, 0x0B, 0x0100) Field (OPRB, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (OPR0, BNK0, 0x00, ByteAcc, NoLock, Preserve) { G000, 2048 } BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { G001, 2048 } BankField (OPR0, BNK0, 0x02, ByteAcc, NoLock, Preserve) { G002, 2048 } BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { G003, 2048 } BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { G004, 2048 } BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { G005, 2048 } BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { G006, 2048 } BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { G007, 2048 } BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { G008, 2048 } BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { G009, 2048 } BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { G00A, 2048 } BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { G00B, 2048 } BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { G00C, 2048 } BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { G00D, 2048 } BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m7d1", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, WordAcc, NoLock, WriteAsOnes) { , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, WordAcc, NoLock, WriteAsOnes) { , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, WordAcc, NoLock, WriteAsOnes) { , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, WordAcc, NoLock, WriteAsOnes) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, WordAcc, NoLock, WriteAsOnes) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, WordAcc, NoLock, WriteAsOnes) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, WordAcc, NoLock, WriteAsOnes) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, WordAcc, NoLock, WriteAsOnes) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, WordAcc, NoLock, WriteAsOnes) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, WordAcc, NoLock, WriteAsOnes) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, WordAcc, NoLock, WriteAsOnes) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, WordAcc, NoLock, WriteAsOnes) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, WordAcc, NoLock, WriteAsOnes) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, WordAcc, NoLock, WriteAsOnes) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, WordAcc, NoLock, WriteAsOnes) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, WordAcc, NoLock, WriteAsOnes) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, WordAcc, NoLock, WriteAsOnes) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, WordAcc, NoLock, WriteAsOnes) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, WordAcc, NoLock, WriteAsOnes) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, WordAcc, NoLock, WriteAsOnes) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, WordAcc, NoLock, WriteAsOnes) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, WordAcc, NoLock, WriteAsOnes) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, WriteAsOnes) { AccessAs (WordAcc, 0x00), Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } FCP0 [0x00] = 0x02 FCP0 [0x01] = RefOf (BNK0) FCP0 [0x02] = Local2 M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) FCP0 [0x00] = 0x00 } /* Create BankField Unit */ /* (DWordAcc, NoLock, WriteAsZeros) */ Method (M7D2, 6, Serialized) { OperationRegion (OPRB, SystemIO, 0x00, 0x09) OperationRegion (OPR0, SystemIO, 0x0B, 0x0100) Field (OPRB, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (OPR0, BNK0, 0x00, ByteAcc, NoLock, Preserve) { G000, 2048 } BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { G001, 2048 } BankField (OPR0, BNK0, 0x02, ByteAcc, NoLock, Preserve) { G002, 2048 } BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { G003, 2048 } BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { G004, 2048 } BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { G005, 2048 } BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { G006, 2048 } BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { G007, 2048 } BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { G008, 2048 } BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { G009, 2048 } BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { G00A, 2048 } BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { G00B, 2048 } BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { G00C, 2048 } BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { G00D, 2048 } BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m7d2", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, DWordAcc, NoLock, WriteAsZeros) { , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, DWordAcc, NoLock, WriteAsZeros) { , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, DWordAcc, NoLock, WriteAsZeros) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, DWordAcc, NoLock, WriteAsZeros) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, DWordAcc, NoLock, WriteAsZeros) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, DWordAcc, NoLock, WriteAsZeros) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, DWordAcc, NoLock, WriteAsZeros) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, DWordAcc, NoLock, WriteAsZeros) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, DWordAcc, NoLock, WriteAsZeros) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, DWordAcc, NoLock, WriteAsZeros) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, DWordAcc, NoLock, WriteAsZeros) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { /* November 2011: Changed to DWordAcc from ByteAcc to enable */ /* correct operation ("Expected" buffer assumes DWordAcc) */ Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { /* November 2011: Changed to DWordAcc from WordAcc to enable */ /* correct operation ("Expected" buffer assumes DWordAcc) */ Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, WriteAsZeros) { AccessAs (DWordAcc, 0x00), Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } FCP0 [0x00] = 0x02 FCP0 [0x01] = RefOf (BNK0) FCP0 [0x02] = Local2 M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) FCP0 [0x00] = 0x00 } /* Create BankField Unit */ /* (QWordAcc, NoLock, Preserve) */ Method (M7D3, 6, Serialized) { OperationRegion (OPRB, SystemIO, 0x00, 0x09) OperationRegion (OPR0, SystemIO, 0x0B, 0x0100) Field (OPRB, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (OPR0, BNK0, 0x00, ByteAcc, NoLock, Preserve) { G000, 2048 } BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { G001, 2048 } BankField (OPR0, BNK0, 0x02, ByteAcc, NoLock, Preserve) { G002, 2048 } BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { G003, 2048 } BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { G004, 2048 } BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { G005, 2048 } BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { G006, 2048 } BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { G007, 2048 } BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { G008, 2048 } BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { G009, 2048 } BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { G00A, 2048 } BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { G00B, 2048 } BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { G00C, 2048 } BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { G00D, 2048 } BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m7d3", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, QWordAcc, NoLock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, QWordAcc, NoLock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, QWordAcc, NoLock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, QWordAcc, NoLock, Preserve) { , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, QWordAcc, NoLock, Preserve) { , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, QWordAcc, NoLock, Preserve) { , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, QWordAcc, NoLock, Preserve) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, QWordAcc, NoLock, Preserve) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, QWordAcc, NoLock, Preserve) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, QWordAcc, NoLock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, QWordAcc, NoLock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, QWordAcc, NoLock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, QWordAcc, NoLock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, QWordAcc, NoLock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, QWordAcc, NoLock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, QWordAcc, NoLock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, QWordAcc, NoLock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, QWordAcc, NoLock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, QWordAcc, NoLock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, QWordAcc, NoLock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, QWordAcc, NoLock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, QWordAcc, NoLock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, QWordAcc, NoLock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, QWordAcc, NoLock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, QWordAcc, NoLock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, NoLock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, NoLock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, QWordAcc, NoLock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, QWordAcc, NoLock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, QWordAcc, NoLock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, NoLock, Preserve) { AccessAs (QWordAcc, 0x00), Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } FCP0 [0x00] = 0x02 FCP0 [0x01] = RefOf (BNK0) FCP0 [0x02] = Local2 M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) FCP0 [0x00] = 0x00 } /* Create BankField Unit */ /* (AnyAcc, Lock, Preserve) */ Method (M7D4, 6, Serialized) { OperationRegion (OPRB, SystemIO, 0x00, 0x09) OperationRegion (OPR0, SystemIO, 0x0B, 0x0100) Field (OPRB, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (OPR0, BNK0, 0x00, ByteAcc, NoLock, Preserve) { G000, 2048 } BankField (OPR0, BNK0, 0x01, ByteAcc, NoLock, Preserve) { G001, 2048 } BankField (OPR0, BNK0, 0x02, ByteAcc, NoLock, Preserve) { G002, 2048 } BankField (OPR0, BNK0, 0x03, ByteAcc, NoLock, Preserve) { G003, 2048 } BankField (OPR0, BNK0, 0x04, ByteAcc, NoLock, Preserve) { G004, 2048 } BankField (OPR0, BNK0, 0x05, ByteAcc, NoLock, Preserve) { G005, 2048 } BankField (OPR0, BNK0, 0x06, ByteAcc, NoLock, Preserve) { G006, 2048 } BankField (OPR0, BNK0, 0x07, ByteAcc, NoLock, Preserve) { G007, 2048 } BankField (OPR0, BNK0, 0x08, ByteAcc, NoLock, Preserve) { G008, 2048 } BankField (OPR0, BNK0, 0x09, ByteAcc, NoLock, Preserve) { G009, 2048 } BankField (OPR0, BNK0, 0x3F, ByteAcc, NoLock, Preserve) { G00A, 2048 } BankField (OPR0, BNK0, 0x40, ByteAcc, NoLock, Preserve) { G00B, 2048 } BankField (OPR0, BNK0, 0x7F, ByteAcc, NoLock, Preserve) { G00C, 2048 } BankField (OPR0, BNK0, 0x80, ByteAcc, NoLock, Preserve) { G00D, 2048 } BankField (OPR0, BNK0, 0xFF, ByteAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m7d4", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, AnyAcc, Lock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, AnyAcc, Lock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, AnyAcc, Lock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, Lock, Preserve) { , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, AnyAcc, Lock, Preserve) { , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, AnyAcc, Lock, Preserve) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, AnyAcc, Lock, Preserve) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, AnyAcc, Lock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, AnyAcc, Lock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, AnyAcc, Lock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, AnyAcc, Lock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, AnyAcc, Lock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, AnyAcc, Lock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, AnyAcc, Lock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, AnyAcc, Lock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, AnyAcc, Lock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, AnyAcc, Lock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, AnyAcc, Lock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, AnyAcc, Lock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, AnyAcc, Lock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, AnyAcc, Lock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, AnyAcc, Lock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, AnyAcc, Lock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { Local2 = 0x01 BankField (OPR0, BNK0, 0x01, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { Local2 = 0x02 BankField (OPR0, BNK0, 0x02, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { Local2 = 0x03 BankField (OPR0, BNK0, 0x03, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { Local2 = 0x04 BankField (OPR0, BNK0, 0x04, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { Local2 = 0x05 BankField (OPR0, BNK0, 0x05, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { Local2 = 0x06 BankField (OPR0, BNK0, 0x06, AnyAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { Local2 = 0x07 BankField (OPR0, BNK0, 0x07, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { Local2 = 0x08 BankField (OPR0, BNK0, 0x08, ByteAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { Local2 = 0x09 BankField (OPR0, BNK0, 0x09, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { Local2 = 0x3F BankField (OPR0, BNK0, 0x3F, WordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { Local2 = 0x40 BankField (OPR0, BNK0, 0x40, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { Local2 = 0x7F BankField (OPR0, BNK0, 0x7F, DWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { Local2 = 0x80 BankField (OPR0, BNK0, 0x80, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { Local2 = 0xFF BankField (OPR0, BNK0, 0xFF, QWordAcc, Lock, Preserve) { AccessAs (AnyAcc, 0x00), Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { Local2 = 0x00 BankField (OPR0, BNK0, 0x00, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } FCP0 [0x00] = 0x02 FCP0 [0x01] = RefOf (BNK0) FCP0 [0x02] = Local2 M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) FCP0 [0x00] = 0x00 } /* Splitting of BankFields */ /* m7c6(CallChain) */ Method (M7C6, 1, Serialized) { OperationRegion (OPR0, SystemIO, 0x03E8, 0x0101) Debug = "TEST: m7c6, Check Splitting of BankFields" Concatenate (Arg0, "-m7c6", Arg0) M7E0 (Arg0, OPR0, 0x04) M7E1 (Arg0, OPR0, 0x0400) M7E2 (Arg0, OPR0, 0x4000) M7E3 (Arg0, OPR0, 0xF000) M7E4 (Arg0, OPR0, 0xF004) M7E5 (Arg0, OPR0, 0xF400) M7E6 (Arg0, OPR0, 0xFF00) M7E7 (Arg0, OPR0, 0xFFF0) M7E8 (Arg0, OPR0, 0xFFFF) M7E9 (Arg0, OPR0, 0x04) } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 0-bit offset. */ /* m7e0(CallChain, OpRegion, BankNum) */ Method (M7E0, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x0100, 0x08) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e0", Arg0) CopyObject (Arg1, OPRM) /* \M7E0.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x00), BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x00), BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x00), BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x00), BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E0.BF10 */ Local1 [0x01] = BF11 /* \M7E0.BF11 */ Local1 [0x02] = BF12 /* \M7E0.BF12 */ Local1 [0x03] = BF20 /* \M7E0.BF20 */ Local1 [0x04] = BF21 /* \M7E0.BF21 */ Local1 [0x05] = BF30 /* \M7E0.BF30 */ Local1 [0x06] = BF31 /* \M7E0.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 1-bit offset. */ /* m7e1(CallChain, OpRegion, BankNum) */ Method (M7E1, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e1", Arg0) CopyObject (Arg1, OPRM) /* \M7E1.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 1, BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 1, BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 1, BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 1, BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E1.BF10 */ Local1 [0x01] = BF11 /* \M7E1.BF11 */ Local1 [0x02] = BF12 /* \M7E1.BF12 */ Local1 [0x03] = BF20 /* \M7E1.BF20 */ Local1 [0x04] = BF21 /* \M7E1.BF21 */ Local1 [0x05] = BF30 /* \M7E1.BF30 */ Local1 [0x06] = BF31 /* \M7E1.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 2-bit offset. */ /* m7e2(CallChain, OpRegion, BankNum) */ Method (M7E2, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e2", Arg0) CopyObject (Arg1, OPRM) /* \M7E2.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 2, BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 2, BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 2, BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 2, BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E2.BF10 */ Local1 [0x01] = BF11 /* \M7E2.BF11 */ Local1 [0x02] = BF12 /* \M7E2.BF12 */ Local1 [0x03] = BF20 /* \M7E2.BF20 */ Local1 [0x04] = BF21 /* \M7E2.BF21 */ Local1 [0x05] = BF30 /* \M7E2.BF30 */ Local1 [0x06] = BF31 /* \M7E2.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 3-bit offset. */ /* m7e3(CallChain, OpRegion, BankNum) */ Method (M7E3, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e3", Arg0) CopyObject (Arg1, OPRM) /* \M7E3.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 3, BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 3, BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 3, BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 3, BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E3.BF10 */ Local1 [0x01] = BF11 /* \M7E3.BF11 */ Local1 [0x02] = BF12 /* \M7E3.BF12 */ Local1 [0x03] = BF20 /* \M7E3.BF20 */ Local1 [0x04] = BF21 /* \M7E3.BF21 */ Local1 [0x05] = BF30 /* \M7E3.BF30 */ Local1 [0x06] = BF31 /* \M7E3.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 4-bit offset. */ /* m7e4(CallChain, OpRegion, BankNum) */ Method (M7E4, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e4", Arg0) CopyObject (Arg1, OPRM) /* \M7E4.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 4, BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 4, BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 4, BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 4, BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E4.BF10 */ Local1 [0x01] = BF11 /* \M7E4.BF11 */ Local1 [0x02] = BF12 /* \M7E4.BF12 */ Local1 [0x03] = BF20 /* \M7E4.BF20 */ Local1 [0x04] = BF21 /* \M7E4.BF21 */ Local1 [0x05] = BF30 /* \M7E4.BF30 */ Local1 [0x06] = BF31 /* \M7E4.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 5-bit offset. */ /* m7e5(CallChain, OpRegion, BankNum) */ Method (M7E5, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e5", Arg0) CopyObject (Arg1, OPRM) /* \M7E5.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 5, BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 5, BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 5, BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 5, BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E5.BF10 */ Local1 [0x01] = BF11 /* \M7E5.BF11 */ Local1 [0x02] = BF12 /* \M7E5.BF12 */ Local1 [0x03] = BF20 /* \M7E5.BF20 */ Local1 [0x04] = BF21 /* \M7E5.BF21 */ Local1 [0x05] = BF30 /* \M7E5.BF30 */ Local1 [0x06] = BF31 /* \M7E5.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 6-bit offset. */ /* m7e6(CallChain, OpRegion, BankNum) */ Method (M7E6, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e6", Arg0) CopyObject (Arg1, OPRM) /* \M7E6.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 6, BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 6, BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 6, BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 6, BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E6.BF10 */ Local1 [0x01] = BF11 /* \M7E6.BF11 */ Local1 [0x02] = BF12 /* \M7E6.BF12 */ Local1 [0x03] = BF20 /* \M7E6.BF20 */ Local1 [0x04] = BF21 /* \M7E6.BF21 */ Local1 [0x05] = BF30 /* \M7E6.BF30 */ Local1 [0x06] = BF31 /* \M7E6.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 7-bit offset. */ /* m7e7(CallChain, OpRegion, BankNum) */ Method (M7E7, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e7", Arg0) CopyObject (Arg1, OPRM) /* \M7E7.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 7, BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 7, BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 7, BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 7, BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E7.BF10 */ Local1 [0x01] = BF11 /* \M7E7.BF11 */ Local1 [0x02] = BF12 /* \M7E7.BF12 */ Local1 [0x03] = BF20 /* \M7E7.BF20 */ Local1 [0x04] = BF21 /* \M7E7.BF21 */ Local1 [0x05] = BF30 /* \M7E7.BF30 */ Local1 [0x06] = BF31 /* \M7E7.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 8-bit offset. */ /* m7e8(CallChain, OpRegion, BankNum) */ Method (M7E8, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e8", Arg0) CopyObject (Arg1, OPRM) /* \M7E8.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x01), BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x01), BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x01), BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { Offset (0x01), BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E8.BF10 */ Local1 [0x01] = BF11 /* \M7E8.BF11 */ Local1 [0x02] = BF12 /* \M7E8.BF12 */ Local1 [0x03] = BF20 /* \M7E8.BF20 */ Local1 [0x04] = BF21 /* \M7E8.BF21 */ Local1 [0x05] = BF30 /* \M7E8.BF30 */ Local1 [0x06] = BF31 /* \M7E8.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Create BankFields that spans the same bits */ /* and check possible inconsistence, 2046-bit offset. */ /* m7e9(CallChain, OpRegion, BankNum) */ Method (M7E9, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x0101) OperationRegion (OPRN, SystemIO, 0x10, 0x02) Field (OPRN, ByteAcc, NoLock, Preserve) { BNK0, 16 } Concatenate (Arg0, "-m7e9", Arg0) CopyObject (Arg1, OPRM) /* \M7E9.OPRM */ BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 2046, BF00, 3 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 2046, BF10, 1, BF11, 1, BF12, 1 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 2046, BF20, 1, BF21, 2 } BankField (OPRM, BNK0, Arg2, ByteAcc, NoLock, Preserve) { , 2046, BF30, 2, BF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { BF10, BF11, BF12, BF20, BF21, BF30, BF31 } While (Local0) { Local0-- BF00 = Local0 If (Y118){} Else { Local1 [0x00] = BF10 /* \M7E9.BF10 */ Local1 [0x01] = BF11 /* \M7E9.BF11 */ Local1 [0x02] = BF12 /* \M7E9.BF12 */ Local1 [0x03] = BF20 /* \M7E9.BF20 */ Local1 [0x04] = BF21 /* \M7E9.BF21 */ Local1 [0x05] = BF30 /* \M7E9.BF30 */ Local1 [0x06] = BF31 /* \M7E9.BF31 */ } M72A (Arg0, Local0, Local1) } } /* Check non-constant Bank value */ Method (M7C7, 1, Serialized) { Field (OPRI, ByteAcc, NoLock, Preserve) { BNK0, 8 } Name (BVAL, 0x02) Method (CHCK, 3, NotSerialized) { Local0 = RefOf (Arg1) /* Write */ BNK0 = 0xFF M7BF (Arg0, BNK0, 0xFF, (Arg2 + 0x00)) DerefOf (Local0) = 0x67 M7BF (Arg0, BNK0, 0x02, (Arg2 + 0x01)) /* Read */ BNK0 = 0xFF M7BF (Arg0, BNK0, 0xFF, (Arg2 + 0x02)) Local1 = DerefOf (Arg1) M7BF (Arg0, Local1, 0x67, (Arg2 + 0x03)) M7BF (Arg0, BNK0, 0x02, (Arg2 + 0x04)) } /* ArgX */ Method (M000, 2, Serialized) { BankField (OPRJ, BNK0, Arg1, ByteAcc, NoLock, Preserve) { Offset (0x08), BF00, 8 } CHCK (Arg0, RefOf (BF00), 0x5F) } /* Named */ Method (M001, 1, Serialized) { BankField (OPRJ, BNK0, BVAL, ByteAcc, NoLock, Preserve) { Offset (0x08), BF00, 8 } CHCK (Arg0, RefOf (BF00), 0x64) } /* LocalX */ Method (M002, 1, Serialized) { Local0 = BVAL /* \M7C7.BVAL */ BankField (OPRJ, BNK0, Local0, ByteAcc, NoLock, Preserve) { Offset (0x08), BF00, 8 } CHCK (Arg0, RefOf (BF00), 0x69) } /* Expression */ Method (M003, 1, Serialized) { Local0 = 0x01 BankField (OPRJ, BNK0, (Local0 + 0x01), ByteAcc, NoLock, Preserve) { Offset (0x08), BF00, 8 } CHCK (Arg0, RefOf (BF00), 0x6E) } Concatenate (Arg0, "-m7c7", Arg0) M000 (Arg0, 0x02) M001 (Arg0) M002 (Arg0) M003 (Arg0) } /* Check non-Integer Bank value */ Method (M7C8, 1, Serialized) { Field (OPRI, ByteAcc, NoLock, Preserve) { BNK0, 8 } Name (VAL0, 0x02) Name (VALB, Buffer (0x01) { 0x02 // . }) Name (VALS, "2") BankField (OPRJ, BNK0, 0x02, ByteAcc, NoLock, Preserve) { Offset (0x08), BF00, 32 } /* */ /* BUG: ToInteger should not be necessary. The buffer and string */ /* arguments should be implicitly converted to integers. */ /* */ BankField (OPRJ, BNK0, ToInteger (VALB), ByteAcc, NoLock, Preserve) { Offset (0x08), BF01, 32 } BankField (OPRJ, BNK0, ToInteger (VALS), ByteAcc, NoLock, Preserve) { Offset (0x08), BF02, 32 } Name (I000, 0x12345678) Method (M000, 3, Serialized) { Local0 = 0x01 BankField (OPRJ, BNK0, Arg1, ByteAcc, NoLock, Preserve) { Offset (0x08), BF03, 32 } If ((BF03 != I000)) { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, BF03, I000) } } Concatenate (Arg0, "-m7c8", Arg0) BF00 = I000 /* \M7C8.I000 */ If ((BF00 != I000)) { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, BF00, I000) } If ((BF01 != I000)) { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, BF00, I000) } If ((BF02 != I000)) { ERR (Arg0, Z145, __LINE__, 0x00, 0x00, BF00, I000) } /* */ /* BUG: ToInteger should not be necessary. The buffer and string */ /* arguments should be implicitly converted to integers. */ /* */ M000 (Arg0, VAL0, 0x76) M000 (Arg0, ToInteger (VALB), 0x77) M000 (Arg0, ToInteger (VALS), 0x78) } /* Run-method */ Method (BFC0, 0, Serialized) { /* Simple BankField test */ SRMT ("m7c0") M7C0 (__METHOD__) /* Check BankField access: ByteAcc, NoLock, Preserve */ SRMT ("m7c1") If (Y192) { M7C1 (__METHOD__) } Else { BLCK () } /* Check BankField access: WordAcc, NoLock, WriteAsOnes */ SRMT ("m7c2") If (Y192) { M7C2 (__METHOD__) } Else { BLCK () } /* Check BankField access: DWordAcc, NoLock, WriteAsZeros */ SRMT ("m7c3") If (Y192) { M7C3 (__METHOD__) } Else { BLCK () } /* Check BankField access: QWordAcc, NoLock, Preserve */ SRMT ("m7c4") If (Y192) { M7C4 (__METHOD__) } Else { BLCK () } /* Check BankField access: AnyAcc, Lock, Preserve */ SRMT ("m7c5") If (Y192) { M7C5 (__METHOD__) } Else { BLCK () } /* Splitting of BankFields */ SRMT ("m7c6") If (Y192) { M7C6 (__METHOD__) } Else { BLCK () } /* Non-constant Bank value */ SRMT ("m7c7") If (Y178) { M7C7 (__METHOD__) } Else { BLCK () } /* Non-Integer Bank value */ SRMT ("m7c8") If (Y178) { M7C8 (__METHOD__) } Else { BLCK () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/opregions.asl0000700000175000017500000011612114773714157030751 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Operation Region declarations */ /* * On testing following issues should be covered: * - application of any allowed RegionSpace Keywords, * - Devices' _REG methods invocation during setup of Regions, * - global and dynamic Operation Region declarations, * - check of the Region Length on access to appropriate Fields, * - check that Region Offset and Length can be computational data. * * Can not be tested following issues: * - emulated Access to SystemCMOS, PciBarTarget, and UserDefRegionSpace * (except 0x80) Operation Regions (there are no appropriate setup of them), * - Operation Region address range mapping to given Offset and Length, * - large values as Region Length, * - host OS providing of exclusive use of hardware registers in global * Operation Region address range by ACPI control methods only. */ Name (Z141, 0x8D) Name (NRSK, 0x0B) /* Number of the specific RegionSpaceKeywords */ Name (IRSK, 0x00) /* Counter of the Invalid RSKs */ Name (NFLG, 0x02) /* Number of turn on/off Flag values */ Name (IFLG, 0x00) /* Counter of the Invalid Flags */ Name (FRSK, 0x0101) /* Some false RegionSpace Keyword */ Name (PRSK, Package (NRSK) { 0x0100, /* UserDefRegionSpace 0x80-0xFF: auxiliary */ 0x00, /* SystemMemory */ 0x01, /* SystemIO */ 0x02, /* PCI_Config */ 0x03, /* EmbeddedControl */ 0x04, /* SMBus */ 0x05, /* SystemCMOS */ 0x06, /* PciBarTarget */ 0x07, /* IPMI */ 0x08, /* GeneralPurposeIo */ 0x09 /* GenericSerialBus */ }) /* DefaultAddressSpaces */ Name (DRSK, Package (0x03) { 0x00, /* SystemMemory */ 0x01, /* SystemIO */ 0x02 /* PCI_Config */ }) Name (VRSK, /* Counters of the Valid RSKs */Package (NRSK) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }) /* Expected Counters of the Valid RSKs */ /* actually, not only default spaces are initialized */ /* by ACPICA, but AcpiExec provided ones also, */ /* from aeexec.c: */ /* static ACPI_ADR_SPACE_TYPE SpaceIdList[] = { ACPI_ADR_SPACE_EC, ACPI_ADR_SPACE_SMBUS, ACPI_ADR_SPACE_GSBUS, ACPI_ADR_SPACE_GPIO, ACPI_ADR_SPACE_PCI_BAR_TARGET, ACPI_ADR_SPACE_IPMI, ACPI_ADR_SPACE_FIXED_HARDWARE, ACPI_ADR_SPACE_USER_DEFINED1, ACPI_ADR_SPACE_USER_DEFINED2 }; */ Name (ERSK, /* 2 for \RGN0, \OPRK; 3 for \RGN0, \OPRI, and \OPRJ */ Package (NRSK) { 0x01, 0x02, 0x03, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 }) Name (VFLG, /* Counters of the Valid Flags */Package (NFLG) { 0x00, 0x00 }) /* Global Operation Regions availability notification Method */ /* _REG(RegionSpaceKeyword, Flag) */ /* RegionSpaceKeyword: */ /* UserDefRegionSpace | SystemIO | SystemMemory | PCI_Config | */ /* EmbeddedControl | SMBus | SystemCMOS | PciBarTarget | */ /* IPMI | GeneralPurposeIo | GenericSerialBus */ /* Flag: 1/0 - turn on/off accessing operation regions of that Space */ Method (_REG, 2, Serialized) // _REG: Region Availability { Name (DBGF, 0x01) If (DBGF) { DNAM (Arg0, Arg1, "\\_REG") } Local0 = Match (PRSK, MEQ, Arg0, MTR, 0x00, 0x01) If (((Arg0 > 0x7F) && (Arg0 < 0x0100))) { Local0 = 0x00 } If ((Local0 < NRSK)) { Local1 = VRSK [Local0] Local2 = RefOf (Local1) DerefOf (Local2) = (DerefOf (Local1) + 0x01) } Else { IRSK++ } If ((Arg1 < NFLG)) { Local1 = VFLG [Arg1] Local2 = RefOf (Local1) DerefOf (Local2) = (DerefOf (Local1) + 0x01) } Else { IFLG++ } } /* Combination of the OperationRegion operator arguments */ OperationRegion (RGN0, SystemMemory, 0x00, 0x0101) OperationRegion (RGN1, SystemIO, 0x0200, 0x0103) OperationRegion (RGN2, PCI_Config, 0x0400, 0x0105) OperationRegion (RGN3, EmbeddedControl, 0x0600, 0x0107) OperationRegion (RGN4, SMBus, 0x0800, 0x0109) OperationRegion (RGN5, SystemCMOS, 0x0A00, 0x010B) OperationRegion (RGN6, PCIBARTarget, 0x0C00, 0x010D) /* UserDefRegionSpace */ OperationRegion (RGN7, 0x80, 0x0D00, 0x0117) OperationRegion (RGN8, 0xCF, 0x0E00, 0x0118) OperationRegion (RGN9, 0xFF, 0x0F00, 0x0119) /* ACPI 4/5 new space IDs */ OperationRegion (RGNA, GeneralPurposeIo, 0x1100, 0x011A) /* NOTE: These spaces have special buffer protocols, can't be tested here */ /*OperationRegion(RGNb, IPMI, 0x1000, 528) */ /*OperationRegion(RGNc, GenericSerialBus, 0x1200, 272) */ /* OpRegion Lengths checking task package: Name, SpaceID, Length */ Name (P702, Package (0x21) { RGN0, 0x00, 0x0101, RGN1, 0x01, 0x0103, RGN2, 0x02, 0x0105, RGN3, 0x03, 0x0107, RGN4, 0x04, 0x0109, RGN5, 0x05, 0x010B, RGN6, 0x06, 0x010D, RGN7, 0x80, 0x0117, RGN8, 0xCF, 0x0118, RGN9, 0xFF, 0x0119, RGNA, 0x08, 0x011A }) /* Region Space keyword strings */ Name (NNAM, 0x0A) Name (RNAM, Package (NNAM) { /* 0x00 */ "SystemMemory", /* 0x01 */ "SystemIO", /* 0x02 */ "PCI_Config", /* 0x03 */ "EmbeddedControl", /* 0x04 */ "SMBus", /* 0x05 */ "SystemCMOS", /* 0x06 */ "PciBarTarget", /* 0x07 */ "IPMI", /* 0x08 */ "GeneralPurposeIo", /* 0x09 */ "GenericSerialBus" }) /* * Display _REG method info */ /* Arg0: SpaceID */ /* Arg1: Enable/Disable flag */ /* Arg2: _REG method name */ Method (DNAM, 3, NotSerialized) { Concatenate ("Executing _REG method: ", Arg2, Local1) Concatenate (Local1, " (", Local1) If ((Arg0 >= NNAM)) { If ((Arg0 == 0x7E)) { Concatenate (Local1, "Data Table", Local2) } Else { Concatenate (Local1, "User-defined or unknown SpaceId", Local2) } } Else { Concatenate (Local1, DerefOf (RNAM [Arg0]), Local2) } Concatenate (Local2, ")", Local2) Debug = Local2 Debug = Arg0 Debug = Arg1 } Device (DOR0) { Name (IRSK, 0x00) /* Counter of the Invalid RSKs */ Name (IFLG, 0x00) /* Counter of the Invalid Flags */ Name (VRSK, /* Counters of the Valid RSKs */Package (NRSK) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }) Name (ERSK, /* Expected Counters of the Valid RSKs */Package (NRSK) { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 }) Name (VFLG, /* Counters of the Valid Flags */Package (NFLG) { 0x00, 0x00 }) /* Specific Operation Regions availability notification Method */ /* \DOR0._REG(RegionSpaceKeyword, Flag) */ Method (_REG, 2, Serialized) // _REG: Region Availability { Name (DBGF, 0x01) If (DBGF) { DNAM (Arg0, Arg1, "\\DOR0._REG") } Local0 = Match (PRSK, MEQ, Arg0, MTR, 0x00, 0x01) If (((Arg0 > 0x7F) && (Arg0 < 0x0100))) { Local0 = 0x00 } If ((Local0 < NRSK)) { Local1 = VRSK [Local0] Local2 = RefOf (Local1) DerefOf (Local2) = (DerefOf (Local1) + 0x01) } Else { IRSK++ } If ((Arg1 < NFLG)) { Local1 = VFLG [Arg1] Local2 = RefOf (Local1) DerefOf (Local2) = (DerefOf (Local1) + 0x01) } Else { IFLG++ } } /* Combination of the OperationRegion operator arguments */ OperationRegion (RGN0, SystemMemory, 0x1000, 0x0102) OperationRegion (RGN1, SystemIO, 0x1200, 0x0104) OperationRegion (RGN2, PCI_Config, 0x1400, 0x0106) OperationRegion (RGN3, EmbeddedControl, 0x1600, 0x0108) OperationRegion (RGN4, SMBus, 0x1800, 0x010A) OperationRegion (RGN5, SystemCMOS, 0x1A00, 0x010C) OperationRegion (RGN6, PCIBARTarget, 0x1C00, 0x010D) /* UserDefRegionSpace */ OperationRegion (RGN7, 0x80, 0x00, 0x0127) OperationRegion (RGN8, 0xA5, 0x00, 0x0128) OperationRegion (RGN9, 0xFF, 0x00, 0x0129) /* ACPI 4/5 new space IDs */ OperationRegion (RGNA, IPMI, 0x1E00, 0x010E) OperationRegion (RGNB, GeneralPurposeIo, 0x2000, 0x010F) OperationRegion (RGNC, GenericSerialBus, 0x2200, 0x0110) } Device (DOR1) { Name (IRSK, 0x00) /* Counter of the Invalid RSKs */ Name (IFLG, 0x00) /* Counter of the Invalid Flags */ Name (VRSK, /* Counters of the Valid RSKs */Package (NRSK) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }) Name (ERSK, /* Expected Counters of the Valid RSKs */Package (NRSK) { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 }) Name (VFLG, /* Counters of the Valid Flags */Package (NFLG) { 0x00, 0x00 }) Name (IREG, 0x00) /* Counter of the Invalid Calls to DOR1._REG */ /* Specific Operation Regions availability notification Method */ /* \DOR1._REG(RegionSpaceKeyword, Flag) */ OperationRegion (JUNK, SystemMemory, 0x2000, 0x0100) Method (_REG, 2, Serialized) // _REG: Region Availability { Name (DBGF, 0x01) If (DBGF) { DNAM (Arg0, Arg1, "\\DOR1._REG") } IREG++ } Method (M000, 0, Serialized) { /* Dynamic Operation Regions availability notification Method */ /* \DOR1.M000._REG(RegionSpaceKeyword, Flag) */ Method (_REG, 2, Serialized) // _REG: Region Availability { Name (DBGF, 0x01) If (DBGF) { DNAM (Arg0, Arg1, "\\m701._REG") } Local0 = Match (PRSK, MEQ, Arg0, MTR, 0x00, 0x01) If (((Arg0 > 0x7F) && (Arg0 < 0x0100))) { Local0 = 0x00 } If ((Local0 < NRSK)) { Local1 = VRSK [Local0] Local2 = RefOf (Local1) DerefOf (Local2) = (DerefOf (Local1) + 0x01) } Else { IRSK++ } If ((Arg1 < NFLG)) { Local1 = VFLG [Arg1] Local2 = RefOf (Local1) DerefOf (Local2) = (DerefOf (Local1) + 0x01) } Else { IFLG++ } } /* Combination of the OperationRegion operator arguments */ OperationRegion (RGN0, SystemMemory, 0x2000, 0x0100) OperationRegion (RGN1, SystemIO, 0x2200, 0x0300) OperationRegion (RGN2, PCI_Config, 0x2400, 0x0500) OperationRegion (RGN3, EmbeddedControl, 0x2600, 0x0700) OperationRegion (RGN4, SMBus, 0x2800, 0x0900) OperationRegion (RGN5, SystemCMOS, 0x2A00, 0x0B00) OperationRegion (RGN6, PCIBARTarget, 0x2C00, 0x0D00) /* UserDefRegionSpace */ OperationRegion (RGN7, 0x80, 0x00, 0x0100) OperationRegion (RGN8, 0xA5, 0x00, 0x0100) OperationRegion (RGN9, 0xFF, 0x00, 0x0100) /* ACPI 4/5 new space IDs */ OperationRegion (RGNA, IPMI, 0x2E00, 0x0F00) OperationRegion (RGNB, GeneralPurposeIo, 0x3000, 0x1100) OperationRegion (RGNC, GenericSerialBus, 0x3200, 0x1300) /* Incorrect call */ _REG (FRSK, 0x02) } } /* Check Global OpRegions initialization */ /* m700(CallChain) */ /* CallChain: String */ Method (M700, 1, NotSerialized) { Concatenate (Arg0, "-m700", Arg0) /* Check incorrect calls */ If ((IRSK != 0x00)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, IRSK, 0x00) } If ((IFLG != 0x00)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, IFLG, 0x00) } If ((\DOR0.IRSK != 0x00)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, IRSK, 0x00) } If ((\DOR0.IFLG != 0x00)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, IFLG, 0x00) } /* Emulate and verify incorrect calls */ _REG (FRSK, 0x02) \DOR0._REG (FRSK, 0x02) If ((IRSK != 0x01)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, IRSK, 0x01) } If ((IFLG != 0x01)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, IFLG, 0x01) } If ((\DOR0.IRSK != 0x01)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, IRSK, 0x01) } If ((\DOR0.IFLG != 0x01)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, IFLG, 0x01) } /* Check total calls to \_REG */ If ((DerefOf (VFLG [0x01]) != 0x09)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, DerefOf (VFLG [0x01]), 0x09) } M70E (Arg0, 0x01, VRSK, ERSK, 0x0A) /* Check total calls to \DOR0._REG */ If ((DerefOf (\DOR0.VFLG [0x01]) != 0x06)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, DerefOf (\DOR0.VFLG [0x01]), 0x06) } M70E (Arg0, 0x01, \DOR0.VRSK, \DOR0.ERSK, 0x0C) } /* Check Dynamic OpRegions initialization */ /* m701(CallChain) */ /* CallChain: String */ Method (M701, 1, NotSerialized) { Concatenate (Arg0, "-m701", Arg0) If ((\DOR1.IREG != 0x00)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, \DOR1.IREG, 0x00) } If ((\DOR1.IRSK != 0x00)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, \DOR1.IRSK, 0x00) } If ((\DOR1.IFLG != 0x00)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, \DOR1.IFLG, 0x00) } If ((DerefOf (\DOR1.VFLG [0x01]) != 0x00)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, DerefOf (\DOR1.VFLG [0x01]), 0x00) } M70E (Arg0, 0x02, \DOR1.VRSK, 0x00, 0x11) \DOR1.M000 () If ((\DOR1.IREG != 0x00)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, \DOR1.IREG, 0x01) } If ((\DOR1.IRSK != 0x01)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, \DOR1.IRSK, 0x01) } If ((\DOR1.IFLG != 0x01)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, \DOR1.IFLG, 0x01) } /* Check total calls to \DOR1._REG */ If ((DerefOf (\DOR1.VFLG [0x01]) != 0x06)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, DerefOf (\DOR1.VFLG [0x01]), 0x06) } M70E (Arg0, 0x01, \DOR1.VRSK, \DOR1.ERSK, 0x16) } /* Check OpRegion Length restrictions */ /* m702(CallChain) */ /* CallChain: String */ Method (M702, 1, NotSerialized) { Concatenate (Arg0, "-m702", Arg0) Local0 = SizeOf (P702) Local0 /= 0x03 Local1 = 0x00 While (Local0) { M70C (Arg0, P702, Local1) Local0-- Local1++ } } /* Check Overlapping of OpRegions */ /* m703(CallChain) */ /* CallChain: String */ Method (M703, 1, Serialized) { Concatenate (Arg0, "-m703", Arg0) /* Overlap \RGN0 - \RGN9 */ OperationRegion (RGN0, SystemMemory, 0x80, 0x0121) OperationRegion (RGN1, SystemIO, 0x0280, 0x0123) OperationRegion (RGN2, PCI_Config, 0x0480, 0x0125) OperationRegion (RGN3, EmbeddedControl, 0x0680, 0x0127) OperationRegion (RGN4, SMBus, 0x0880, 0x0109) OperationRegion (RGN5, SystemCMOS, 0x0A80, 0x012B) OperationRegion (RGN6, PCIBARTarget, 0x0C80, 0x012D) /* UserDefRegionSpace */ OperationRegion (RGN7, 0x80, 0x0D80, 0x0137) OperationRegion (RGN8, 0xCF, 0x0E80, 0x0138) OperationRegion (RGN9, 0xFF, 0x0F80, 0x0139) OperationRegion (RGNA, SystemMemory, 0x1090, 0x014A) /* Unsupported cases commented */ M70F (Arg0, \RGN0, RGN0, 0x01, 0x00) M70F (Arg0, \RGN1, RGN1, 0x01, 0x01) /* m70f(arg0, \RGN2, RGN2, 1, 2) */ /* m70f(arg0, \RGN3, RGN3, 1, 3) */ /* m70f(arg0, \RGN4, RGN4, 1, 4) */ /* m70f(arg0, \RGN5, RGN5, 1, 5) */ /* m70f(arg0, \RGN6, RGN6, 1, 6) */ M70F (Arg0, \RGN7, RGN7, 0x01, 0x07) /* m70f(arg0, \RGN8, RGN8, 1, 8) */ /* m70f(arg0, \RGN9, RGN9, 1, 9) */ M70F (Arg0, \DOR0.RGN0, RGNA, 0x00, 0x0A) } /* Create Region Field about Region Length in length */ /* and check possible exception */ /* m70c(CallChain, Task, Index) */ Method (M70C, 3, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m70c", Arg0) Local4 = (Arg2 * 0x03) Local0 = (Local4 + 0x01) Local3 = DerefOf (Arg1 [Local0]) Local0++ Local2 = DerefOf (Arg1 [Local0]) Local1 = (Local2 * 0x08) Name (B000, Buffer (0x0100){}) CopyObject (DerefOf (Arg1 [Local4]), OPRM) /* \M70C.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { FU01, 2048 } Local6 = RefOf (FU01) Local5 = RefOf (Local6) M70D (Arg2, B000) If ((Local3 == 0x02) /* PCI_Config */ ){} ElseIf ((Local3 == 0x03) /* EmbbededControl */ ){} ElseIf ((Local3 == 0x04) /* SMBus */ ){} ElseIf ((Local3 == 0x05) /* SystemCMOS */ ){} ElseIf ((Local3 == 0x06) /* PciBarTarget */ ){} ElseIf ((Local3 == 0x07) /* IPMI */ ){} ElseIf ((Local3 == 0x08) /* GeneralPurposeIo */ ){} ElseIf ((Local3 > 0x80) /* UserDefRegionSpace <> 0x80 */ ){} Else { DerefOf (Local5) = B000 /* \M70C.B000 */ CH03 (Arg0, Z141, __LINE__, 0x00, Local3) Local0 = ObjectType (DerefOf (Local6)) Local1 = C00B /* \C00B */ If ((Local0 != Local1)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, Local0, Local1) } Else { Local0 = DerefOf (Local6) If ((Local0 != B000)) { ERR (Arg0, Z141, __LINE__, Z141, Arg2, Local0, B000) } } } } /* Fill the buffer */ /* m70d(Source, Target) */ /* Source: 0x100 - index, else - this byte */ /* Target: buffer for filling */ Method (M70D, 2, Serialized) { Local0 = SizeOf (Arg1) While (Local0) { Local0-- Switch (ToInteger (Arg0)) { Case (0x0100) { Arg1 [Local0] = Local0 } Default { Arg1 [Local0] = Arg0 } } } } /* Processes the VRSK */ /* m70e(CallChain, ToDo, Results, Benchmark, ErrId) */ /* CallChain: String */ /* ToDo: 0 - nullify, 1 - Check Values, 2 - check if null */ /* Results: actual VRSK Values */ /* Benchmark: expected VRSK Values */ /* ErrId: index of the error */ Method (M70E, 5, Serialized) { Concatenate (Arg0, "-m70e", Arg0) Local0 = NRSK /* \NRSK */ While (Local0) { Local0-- Local1 = Arg2 [Local0] Local2 = RefOf (Local1) Switch (ToInteger (Arg1)) { Case (0x00) { DerefOf (Local2) = 0x00 } Case (0x01) { Local3 = Arg3 [Local0] If ((DerefOf (Local1) != DerefOf (Local3))) { ERR (Arg0, Z141, __LINE__, Z141, Local0, DerefOf (Local1), DerefOf (Local3)) } } Case (0x02) { If ((DerefOf (Local1) != 0x00)) { ERR (Arg0, Z141, __LINE__, Z141, Local0, DerefOf (Local1), 0x00) } } } } } /* Create Region Fields in two overlapping Regions */ /* and check overlapping parts to be shared */ /* m70f(CallChain, OpRegion0, OpRegion1, RangeNum, ErrNum) */ Method (M70F, 5, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) OperationRegion (OPRN, 0xFF, 0x00, 0x1000) CopyObject (Arg1, OPRM) /* \M70F.OPRM */ CopyObject (Arg2, OPRN) /* \M70F.OPRN */ Field (OPRM, ByteAcc, NoLock, Preserve) { Offset (0x7D), FU00, 80, Offset (0x8D), FU02, 80 } Field (OPRN, ByteAcc, NoLock, Preserve) { FU01, 80 } Concatenate (Arg0, "-m70f", Arg0) Name (B000, Buffer (0x0A){}) M70D (0x01, B000) If (Arg3) { FU00 = B000 /* \M70F.B000 */ } Else { FU02 = B000 /* \M70F.B000 */ } M70D (0x02, B000) FU01 = B000 /* \M70F.B000 */ If (Arg3) { Local0 = FU00 /* \M70F.FU00 */ } Else { Local0 = FU02 /* \M70F.FU02 */ } Local1 = Buffer (0x0A) { /* 0000 */ 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x02, // ........ /* 0008 */ 0x02, 0x02 // .. } If ((Local0 != Local1)) { ERR (Arg0, Z141, __LINE__, Z141, Arg4, Local0, Local1) } } /* Check that the same ranges of different Address Spaces */ /* actually refer the different locations */ /* m704(CallChain) */ /* CallChain: String */ Method (M704, 1, Serialized) { Method (CHCK, 4, NotSerialized) { If ((Arg1 != Arg2)) { ERR (Arg0, Z141, __LINE__, Z141, Arg3, Arg1, Arg2) } } OperationRegion (OPR0, SystemMemory, 0x00, 0x01) OperationRegion (OPR1, SystemIO, 0x00, 0x01) OperationRegion (OPR7, 0x80, 0x00, 0x01) Field (OPR0, ByteAcc, NoLock, Preserve) { F000, 8 } Field (OPR1, ByteAcc, NoLock, Preserve) { F001, 8 } Field (OPR7, ByteAcc, NoLock, Preserve) { F002, 8 } Concatenate (Arg0, "-m704", Arg0) F000 = 0x5A CHCK (Arg0, F000, 0x5A, 0x00) F001 = 0xC3 CHCK (Arg0, F001, 0xC3, 0x01) F002 = 0x96 CHCK (Arg0, F002, 0x96, 0x02) CHCK (Arg0, F000, 0x5A, 0x03) CHCK (Arg0, F001, 0xC3, 0x04) CHCK (Arg0, F002, 0x96, 0x05) } /* Check non-constant OpRegion arguments */ /* m705(CallChain) */ /* CallChain: String */ Method (M705, 1, Serialized) { Name (I000, 0x56) Name (I001, 0x78) Name (I002, 0x89ABCDEF) /* ArgX */ Method (M000, 4, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { OperationRegion (OPR0, SystemMemory, Arg2, Arg3) Field (OPR0, ByteAcc, NoLock, Preserve) { F000, 32 } Local5 = RefOf (F000) } Case (0x01) { OperationRegion (OPR1, SystemIO, Arg2, Arg3) Field (OPR1, ByteAcc, NoLock, Preserve) { F001, 32 } Local5 = RefOf (F001) } Case (0x02) { OperationRegion (OPR7, 0x80, Arg2, Arg3) Field (OPR7, ByteAcc, NoLock, Preserve) { F007, 32 } Local5 = RefOf (F007) } } Local6 = RefOf (Local5) DerefOf (Local6) = I002 /* \M705.I002 */ Local7 = DerefOf (Local5) If ((I002 != Local7)) { ERR (Arg0, Z141, __LINE__, Z141, Arg1, Local7, I002) } } /* Named */ Method (M001, 2, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { OperationRegion (OPR0, SystemMemory, I000, I001) Field (OPR0, ByteAcc, NoLock, Preserve) { F000, 32 } Local5 = RefOf (F000) } Case (0x01) { OperationRegion (OPR1, SystemIO, I000, I001) Field (OPR1, ByteAcc, NoLock, Preserve) { F001, 32 } Local5 = RefOf (F001) } Case (0x02) { OperationRegion (OPR7, 0x80, I000, I001) Field (OPR7, ByteAcc, NoLock, Preserve) { F007, 32 } Local5 = RefOf (F007) } } Local6 = RefOf (Local5) DerefOf (Local6) = I002 /* \M705.I002 */ Local7 = DerefOf (Local5) If ((I002 != Local7)) { ERR (Arg0, Z141, __LINE__, Z141, Arg1, Local7, I002) } } /* LocalX */ Method (M002, 2, Serialized) { Local0 = I000 /* \M705.I000 */ Local1 = I001 /* \M705.I001 */ Switch (ToInteger (Arg1)) { Case (0x00) { OperationRegion (OPR0, SystemMemory, Local0, Local1) Field (OPR0, ByteAcc, NoLock, Preserve) { F000, 32 } Local5 = RefOf (F000) } Case (0x01) { OperationRegion (OPR1, SystemIO, Local0, Local1) Field (OPR1, ByteAcc, NoLock, Preserve) { F001, 32 } Local5 = RefOf (F001) } Case (0x02) { OperationRegion (OPR7, 0x80, Local0, Local1) Field (OPR7, ByteAcc, NoLock, Preserve) { F007, 32 } Local5 = RefOf (F007) } } Local6 = RefOf (Local5) DerefOf (Local6) = I002 /* \M705.I002 */ Local7 = DerefOf (Local5) If ((I002 != Local7)) { ERR (Arg0, Z141, __LINE__, Z141, Arg1, Local7, I002) } } /* Expression */ Method (M003, 2, Serialized) { Local1 = I001 /* \M705.I001 */ Switch (ToInteger (Arg1)) { Case (0x00) { OperationRegion (OPR0, SystemMemory, (I000 + 0x01), (Local1 - 0x01)) Field (OPR0, ByteAcc, NoLock, Preserve) { F000, 32 } Local5 = RefOf (F000) } Case (0x01) { OperationRegion (OPR1, SystemIO, (I000 + 0x01), (Local1 - 0x01)) Field (OPR1, ByteAcc, NoLock, Preserve) { F001, 32 } Local5 = RefOf (F001) } Case (0x02) { OperationRegion (OPR7, 0x80, (I000 + 0x01), (Local1 - 0x01)) Field (OPR7, ByteAcc, NoLock, Preserve) { F007, 32 } Local5 = RefOf (F007) } } Local6 = RefOf (Local5) DerefOf (Local6) = I002 /* \M705.I002 */ Local7 = DerefOf (Local5) If ((I002 != Local7)) { ERR (Arg0, Z141, __LINE__, Z141, Arg1, Local7, I002) } } Concatenate (Arg0, "-m705", Arg0) M000 (Arg0, 0x00, 0x12, 0x34) M000 (Arg0, 0x01, 0x12, 0x34) M000 (Arg0, 0x02, 0x12, 0x34) M001 (Arg0, 0x00) M001 (Arg0, 0x01) M001 (Arg0, 0x02) M002 (Arg0, 0x00) M002 (Arg0, 0x01) M002 (Arg0, 0x02) M003 (Arg0, 0x00) M003 (Arg0, 0x01) M003 (Arg0, 0x02) } /* Check non-Integer OpRegion arguments */ /* m706(CallChain) */ /* CallChain: String */ Method (M706, 1, Serialized) { Name (OFF0, 0xFEDCBA987654321F) Name (OFFB, Buffer (0x08) { 0x1F, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }) Name (OFFS, "7654321f") If (F64) { OFFS = "fedcba987654321f" } Name (LEN0, 0x0123) Name (LENB, Buffer (0x02) { 0x23, 0x01 // #. }) Name (LENS, "123") OperationRegion (OPR0, SystemMemory, 0xFEDCBA987654321F, 0x0123) OperationRegion (OPR1, SystemMemory, OFF0, LEN0) OperationRegion (OPR2, SystemMemory, OFFB, LENB) OperationRegion (OPR3, SystemMemory, OFFS, LENS) Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x11F), FU00, 32 } Field (OPR1, ByteAcc, NoLock, Preserve) { Offset (0x11F), FU01, 32 } Field (OPR2, ByteAcc, NoLock, Preserve) { Offset (0x11F), FU02, 32 } Field (OPR3, ByteAcc, NoLock, Preserve) { Offset (0x11F), FU03, 32 } Name (I000, 0x12345678) Method (M000, 4, Serialized) { OperationRegion (OPR4, SystemMemory, Arg1, Arg2) Field (OPR4, AnyAcc, NoLock, Preserve) { Offset (0x11F), FU04, 32 } If ((FU04 != I000)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, FU04, I000) } } Concatenate (Arg0, "-m706", Arg0) FU00 = I000 /* \M706.I000 */ If ((FU00 != I000)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, FU00, I000) } If ((0xFEDCBA987654321F != OFF0)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, OFF0, 0xFEDCBA987654321F) } ElseIf ((0x0123 != LEN0)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, LEN0, 0x0123) } ElseIf ((FU01 != I000)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, FU00, I000) } If ((0xFEDCBA987654321F != OFFB)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, OFFB, 0xFEDCBA987654321F) } ElseIf ((0x0123 != LENB)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, LENB, 0x0123) } ElseIf ((FU02 != I000)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, FU00, I000) } If ((0xFEDCBA987654321F != OFFS)) { Local0 = (OFFS + 0x00) ERR (Arg0, Z141, __LINE__, 0x00, 0x00, Local0, 0xFEDCBA987654321F) } ElseIf ((0x0123 != LENS)) { Local0 = (LENS + 0x00) ERR (Arg0, Z141, __LINE__, 0x00, 0x00, Local0, 0x0123) } ElseIf ((FU03 != I000)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, FU00, I000) } M000 (Arg0, OFF0, LEN0, 0x2B) M000 (Arg0, OFFB, LENB, 0x2C) M000 (Arg0, OFFS, LENS, 0x2D) } /* Overlapping Operation Regions algorithm test */ /* Test the 3 conditional cases of overlap */ /* Test done only in SystemMemory */ Method (M707, 1, Serialized) { OperationRegion (RGN0, SystemMemory, 0x0100, 0x08) OperationRegion (RGN1, SystemMemory, 0xFB, 0x08) OperationRegion (RGN2, SystemMemory, 0x0105, 0x08) OperationRegion (RGN3, SystemMemory, 0xF9, 0x16) OperationRegion (RGN4, SystemMemory, 0xF9, 0x16) /* Starting Field */ Field (RGN0, ByteAcc, NoLock, Preserve) { Offset (0x01), FU00, 48 } /* Overlap start of RGN0 */ Field (RGN1, ByteAcc, NoLock, Preserve) { Offset (0x02), FU10, 48 } /* Overlap end of RGN0 */ Field (RGN2, ByteAcc, NoLock, Preserve) { FU20, 48 } /* Overlap both start of RGN1 and end of RGN2 */ Field (RGN3, ByteAcc, NoLock, Preserve) { FU30, 48, Offset (0x08), FU31, 16, Offset (0x0C), FU32, 16, Offset (0x10), FU33, 48 } /* Single Field spanning RGN3 area */ Field (RGN4, ByteAcc, NoLock, Preserve) { FU40, 176 } Name (B000, Buffer (0x06){}) Name (B001, Buffer (0x02){}) /* Starting region write */ M70D (0x01, B000) FU00 = B000 /* \M707.B000 */ /* New region overlapping the left */ M70D (0x02, B000) FU10 = B000 /* \M707.B000 */ /* New region overlapping the right */ M70D (0x03, B000) FU20 = B000 /* \M707.B000 */ /* New region overlapping left and right with writes */ /* at various locations */ M70D (0x04, B000) FU30 = B000 /* \M707.B000 */ M70D (0x05, B001) FU31 = B001 /* \M707.B001 */ M70D (0x06, B001) FU32 = B001 /* \M707.B001 */ M70D (0x07, B000) FU33 = B000 /* \M707.B000 */ Local0 = FU40 /* \M707.FU40 */ Local1 = Buffer (0x16) { /* 0000 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x02, 0x02, // ........ /* 0008 */ 0x05, 0x05, 0x01, 0x01, 0x06, 0x06, 0x03, 0x03, // ........ /* 0010 */ 0x07, 0x07, 0x07, 0x07, 0x07, 0x07 // ...... } If ((Local0 != Local1)) { ERR (Arg0, Z141, __LINE__, 0x00, 0x00, Local0, Local1) } } Method (ORC0, 0, Serialized) { /* Global OpRegions */ SRMT ("m700") If (Y220) { M700 (__METHOD__) } Else { BLCK () } /* Dynamic OpRegions */ SRMT ("m701") If (Y217) { M701 (__METHOD__) } Else { BLCK () } /* OpRegion Lengths */ SRMT ("m702") M702 (__METHOD__) /* Overlapping of OpRegions */ SRMT ("m703") If (Y221) { M703 (__METHOD__) } Else { BLCK () } /* The same ranges of different Address Spaces */ SRMT ("m704") If (Y222) { M704 (__METHOD__) } Else { BLCK () } /* Non-constant OpRegion arguments */ SRMT ("m705") M705 (__METHOD__) /* Non-Integer OpRegion arguments */ SRMT ("m706") M706 (__METHOD__) /* Overlapping OpRegions algorithm test */ SRMT ("m707") M707 (__METHOD__) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/indexfield.asl0000700000175000017500000220022314773714157031056 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * IndexField objects definition and processing */ /* * On testing following issues should be covered: * - Operation Regions of different Region Space types application * for index/data fields in IndexField objects definition, * - application of any allowed AccessType Keywords, * - application of any allowed LockRule Keywords, * - application of any allowed UpdateRule Keywords, * - application of the Offset macros in the FieldUnitList, * - application of the AccessAs macros in the FieldUnitList, * - on writing taking into account the Access Type in accord with the Update Rule, * - AccessAs macros influence on the remaining Field Units within the list, * - access to IndexField objects in accord with the index/data-style * representation, * - access to IndexField objects located on boundary of AccessType Unit, * - integer/buffer representation of the Unit contents as depends on its * Length and DSDT ComplianceRevision (32/64-bit Integer), * - Data Type Conversion Rules on storing to IndexFields. * * Can not be tested following issues: * - exact use of given Access Type alignment on Access to Unit data, * - exact functioning of data exchange based on IndexField functionality, * - exact use of specific Conversion Rules on storing of Buffers or Strings. */ Name (Z144, 0x90) OperationRegion (OPRK, SystemMemory, 0x0200, 0x10) Field (OPRK, ByteAcc, NoLock, Preserve) { FK32, 32 } Field (OPRK, ByteAcc, NoLock, Preserve) { FK64, 64 } Field (OPRK, ByteAcc, NoLock, Preserve) { FK28, 128 } Method (M770, 1, Serialized) { Field (OPRK, ByteAcc, NoLock, Preserve) { IDX0, 8, DTA0, 8 } IndexField (IDX0, DTA0, ByteAcc, NoLock, Preserve) { Offset (0x1A), REG0, 8, Offset (0x5B), REG1, 8, Offset (0x9C), REG2, 8, Offset (0xED), REG3, 8 } Name (I000, 0x1122) Concatenate (Arg0, "-m770", Arg0) Debug = "TEST: m770, initial IndexFields check" /* Check object types */ Local0 = ObjectType (REG0) Local1 = C00D /* \C00D */ If ((Local0 != Local1)) { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Local0, Local1) } Local0 = ObjectType (REG1) Local1 = C00D /* \C00D */ If ((Local0 != Local1)) { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Local0, Local1) } Local0 = ObjectType (REG2) Local1 = C00D /* \C00D */ If ((Local1 != Local0)) { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Local0, Local1) } Local0 = ObjectType (REG3) Local1 = C00D /* \C00D */ If ((Local1 != Local0)) { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Local0, Local1) } /* Check actual writes to the IndexField(s). */ /* Uses fk32 overlay to check what exactly was written to the */ /* Index/Data register pair. */ FK32 = I000 /* \M770.I000 */ REG0 = 0xF1 Local0 = FK32 /* \FK32 */ Local1 = 0xF11A If ((Local1 != Local0)) { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Local0, Local1) } FK32 = I000 /* \M770.I000 */ REG1 = 0xD2 Local0 = FK32 /* \FK32 */ Local1 = 0xD25B If ((Local1 != Local0)) { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Local0, Local1) } FK32 = I000 /* \M770.I000 */ REG2 = 0x93 Local0 = FK32 /* \FK32 */ Local1 = 0x939C If ((Local1 != Local0)) { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Local0, Local1) } FK32 = I000 /* \M770.I000 */ REG3 = 0x54 Local0 = FK32 /* \FK32 */ Local1 = 0x54ED If ((Local1 != Local0)) { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Local0, Local1) } } /* Access to 1-bit IndexFields, ByteAcc */ Method (M771, 1, Serialized) { Concatenate (Arg0, "-m771", Arg0) Debug = "TEST: m771, Check Access to 1-bit IndexFields, ByteAcc" Field (OPRK, ByteAcc, NoLock, WriteAsZeros) { IDX0, 16, DTA0, 16 } IndexField (IDX0, DTA0, ByteAcc, NoLock, WriteAsZeros) { IDF0, 1, , 6, IDF1, 1, IDF2, 1, , 6, IDF3, 1, IDF4, 1, , 6, IDF5, 1, IDF6, 1, , 6, IDF7, 1 } M77E (Arg0, 0x01, RefOf (IDF0), RefOf (FK32), 0xFFFFFFFF, 0x00010000, 0x00) M77E (Arg0, 0x01, RefOf (IDF1), RefOf (FK32), 0xFFFFFFFF, 0x00800000, 0x01) M77E (Arg0, 0x01, RefOf (IDF2), RefOf (FK32), 0xFFFFFFFF, 0x00010001, 0x02) M77E (Arg0, 0x01, RefOf (IDF3), RefOf (FK32), 0xFFFFFFFF, 0x00800001, 0x03) M77E (Arg0, 0x01, RefOf (IDF4), RefOf (FK32), 0xFFFFFFFF, 0x00010002, 0x04) M77E (Arg0, 0x01, RefOf (IDF5), RefOf (FK32), 0xFFFFFFFF, 0x00800002, 0x05) M77E (Arg0, 0x01, RefOf (IDF6), RefOf (FK32), 0xFFFFFFFF, 0x00010003, 0x06) M77E (Arg0, 0x01, RefOf (IDF7), RefOf (FK32), 0xFFFFFFFF, 0x00800003, 0x07) } /* Access to 1-bit IndexFields, WordAcc */ Method (M772, 1, Serialized) { Concatenate (Arg0, "-m772", Arg0) Debug = "TEST: m772, Check Access to 1-bit IndexFields, WordAcc" Field (OPRK, ByteAcc, NoLock, WriteAsZeros) { IDX0, 16, DTA0, 16 } IndexField (IDX0, DTA0, WordAcc, NoLock, WriteAsZeros) { IDF0, 1, , 6, IDF1, 1, IDF2, 1, , 6, IDF3, 1, IDF4, 1, , 6, IDF5, 1, IDF6, 1, , 6, IDF7, 1 } M77E (Arg0, 0x01, RefOf (IDF0), RefOf (FK32), 0xFFFFFFFF, 0x00010000, 0x00) M77E (Arg0, 0x01, RefOf (IDF1), RefOf (FK32), 0xFFFFFFFF, 0x00800000, 0x01) M77E (Arg0, 0x01, RefOf (IDF2), RefOf (FK32), 0xFFFFFFFF, 0x01000000, 0x02) M77E (Arg0, 0x01, RefOf (IDF3), RefOf (FK32), 0xFFFFFFFF, 0x80000000, 0x03) M77E (Arg0, 0x01, RefOf (IDF4), RefOf (FK32), 0xFFFFFFFF, 0x00010002, 0x04) M77E (Arg0, 0x01, RefOf (IDF5), RefOf (FK32), 0xFFFFFFFF, 0x00800002, 0x05) M77E (Arg0, 0x01, RefOf (IDF6), RefOf (FK32), 0xFFFFFFFF, 0x01000002, 0x06) M77E (Arg0, 0x01, RefOf (IDF7), RefOf (FK32), 0xFFFFFFFF, 0x80000002, 0x07) } /* Access to 1-bit IndexFields, DWordAcc */ Method (M773, 1, Serialized) { Concatenate (Arg0, "-m773", Arg0) Debug = "TEST: m773, Check Access to 1-bit IndexFields, DWordAcc" Field (OPRK, ByteAcc, NoLock, WriteAsZeros) { IDX0, 32, DTA0, 32 } IndexField (IDX0, DTA0, DWordAcc, NoLock, WriteAsZeros) { IDF0, 1, , 14, IDF1, 1, IDF2, 1, , 14, IDF3, 1, IDF4, 1, , 14, IDF5, 1, IDF6, 1, , 14, IDF7, 1 } If (F64) { Local0 = 0xFFFFFFFFFFFFFFFF } Else { Local0 = Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ } } M77E (Arg0, 0x01, RefOf (IDF0), RefOf (FK64), Local0, Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 // ........ }, 0x00) M77E (Arg0, 0x01, RefOf (IDF1), RefOf (FK64), Local0, Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00 // ........ }, 0x01) M77E (Arg0, 0x01, RefOf (IDF2), RefOf (FK64), Local0, Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00 // ........ }, 0x02) M77E (Arg0, 0x01, RefOf (IDF3), RefOf (FK64), Local0, Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80 // ........ }, 0x03) M77E (Arg0, 0x01, RefOf (IDF4), RefOf (FK64), Local0, Buffer (0x08) { 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 // ........ }, 0x04) M77E (Arg0, 0x01, RefOf (IDF5), RefOf (FK64), Local0, Buffer (0x08) { 0x04, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00 // ........ }, 0x05) M77E (Arg0, 0x01, RefOf (IDF6), RefOf (FK64), Local0, Buffer (0x08) { 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00 // ........ }, 0x06) M77E (Arg0, 0x01, RefOf (IDF7), RefOf (FK64), Local0, Buffer (0x08) { 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80 // ........ }, 0x07) } /* Access to 1-bit IndexFields, QWordAcc */ Method (M774, 1, Serialized) { Concatenate (Arg0, "-m774", Arg0) Debug = "TEST: m774, Check Access to 1-bit IndexFields, QWordAcc" Field (OPRK, ByteAcc, NoLock, WriteAsZeros) { IDX0, 64, DTA0, 64 } IndexField (IDX0, DTA0, QWordAcc, NoLock, WriteAsZeros) { IDF0, 1, , 30, IDF1, 1, IDF2, 1, , 30, IDF3, 1, IDF4, 1, , 30, IDF5, 1, IDF6, 1, , 30, IDF7, 1 } Local0 = Buffer (0x10) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0008 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ } M77E (Arg0, 0x01, RefOf (IDF0), RefOf (FK28), Local0, Buffer (0x10) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, 0x00) M77E (Arg0, 0x01, RefOf (IDF1), RefOf (FK28), Local0, Buffer (0x10) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00 // ........ }, 0x01) M77E (Arg0, 0x01, RefOf (IDF2), RefOf (FK28), Local0, Buffer (0x10) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 // ........ }, 0x02) M77E (Arg0, 0x01, RefOf (IDF3), RefOf (FK28), Local0, Buffer (0x10) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80 // ........ }, 0x03) M77E (Arg0, 0x01, RefOf (IDF4), RefOf (FK28), Local0, Buffer (0x10) { /* 0000 */ 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, 0x04) M77E (Arg0, 0x01, RefOf (IDF5), RefOf (FK28), Local0, Buffer (0x10) { /* 0000 */ 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00 // ........ }, 0x05) M77E (Arg0, 0x01, RefOf (IDF6), RefOf (FK28), Local0, Buffer (0x10) { /* 0000 */ 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 // ........ }, 0x06) M77E (Arg0, 0x01, RefOf (IDF7), RefOf (FK28), Local0, Buffer (0x10) { /* 0000 */ 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80 // ........ }, 0x07) } /* Store to the IndexField and check Index/Data common Region Field */ /*m77e(CallChain, Source, IndexField, Common, Filler, BenchMark, ErrNum) */ Method (M77E, 7, NotSerialized) { Concatenate (Arg0, "-m77e", Arg0) Local0 = RefOf (Arg2) Local1 = RefOf (Arg3) /* Fill Index/Data common Region Field */ DerefOf (Local1) = Arg4 /* Store to the IndexField */ DerefOf (Local0) = Arg1 /* Retrieve Index/Data common Region Field */ Local2 = DerefOf (Arg3) If ((ObjectType (Arg4) == 0x01)) { ToInteger (Arg5, Arg5) } If ((Arg5 != Local2)) { ERR (Arg0, Z144, __LINE__, Z144, Arg6, Local2, Arg5) } /* Fill then immediately read */ /* Fill Index/Data common Region Field */ DerefOf (Local1) = Arg4 /* Read from the IndexField */ Local2 = DerefOf (Arg2) If ((Arg1 != Local2)) { ERR (Arg0, Z144, __LINE__, Z144, Arg6, Local2, Arg1) } /* * November 2011: * This code does not make sense. It fills the region overlay and then * reads the IndexField, and expects the resulting data to match the * compare value (BenchMark). Commented out. */ /* // Retrieve Index/Data common Region Field Store(Derefof(arg3), Local2) if (LNotEqual(arg5, Local2)) { err(arg0, z144, __LINE__, z144, arg6, Local2, arg5) } */ } /* Splitting of IndexFields */ /* m775(CallChain) */ Method (M775, 1, Serialized) { OperationRegion (OPR0, SystemMemory, 0x03E8, 0x08) Debug = "TEST: m775, Check Splitting of IndexFields" Concatenate (Arg0, "-m775", Arg0) M780 (Arg0, OPR0) M781 (Arg0, OPR0) M782 (Arg0, OPR0) M783 (Arg0, OPR0) M784 (Arg0, OPR0) M785 (Arg0, OPR0) M786 (Arg0, OPR0) M787 (Arg0, OPR0) M788 (Arg0, OPR0) M789 (Arg0, OPR0) } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 0-bit offset. */ /* m780(CallChain, OpRegion) */ Method (M780, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x0100, 0x08) Concatenate (Arg0, "-m780", Arg0) CopyObject (Arg1, OPRM) /* \M780.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { IDX0, 16, DAT0, 16 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x00), IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x00), IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x00), IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x00), IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M780.IF10 */ Local1 [0x01] = IF11 /* \M780.IF11 */ Local1 [0x02] = IF12 /* \M780.IF12 */ Local1 [0x03] = IF20 /* \M780.IF20 */ Local1 [0x04] = IF21 /* \M780.IF21 */ Local1 [0x05] = IF30 /* \M780.IF30 */ Local1 [0x06] = IF31 /* \M780.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 1-bit offset. */ /* m781(CallChain, OpRegion) */ Method (M781, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) Concatenate (Arg0, "-m781", Arg0) CopyObject (Arg1, OPRM) /* \M781.OPRM */ Field (OPRM, WordAcc, NoLock, Preserve) { IDX0, 16, DAT0, 16 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 1, IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 1, IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 1, IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 1, IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M781.IF10 */ Local1 [0x01] = IF11 /* \M781.IF11 */ Local1 [0x02] = IF12 /* \M781.IF12 */ Local1 [0x03] = IF20 /* \M781.IF20 */ Local1 [0x04] = IF21 /* \M781.IF21 */ Local1 [0x05] = IF30 /* \M781.IF30 */ Local1 [0x06] = IF31 /* \M781.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 2-bit offset. */ /* m782(CallChain, OpRegion) */ Method (M782, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) Concatenate (Arg0, "-m782", Arg0) CopyObject (Arg1, OPRM) /* \M782.OPRM */ Field (OPRM, DWordAcc, NoLock, Preserve) { IDX0, 32, DAT0, 32 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 2, IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 2, IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 2, IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 2, IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M782.IF10 */ Local1 [0x01] = IF11 /* \M782.IF11 */ Local1 [0x02] = IF12 /* \M782.IF12 */ Local1 [0x03] = IF20 /* \M782.IF20 */ Local1 [0x04] = IF21 /* \M782.IF21 */ Local1 [0x05] = IF30 /* \M782.IF30 */ Local1 [0x06] = IF31 /* \M782.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 3-bit offset. */ /* m783(CallChain, OpRegion) */ Method (M783, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) Concatenate (Arg0, "-m783", Arg0) CopyObject (Arg1, OPRM) /* \M783.OPRM */ Field (OPRM, ByteAcc, NoLock, WriteAsOnes) { IDX0, 16, DAT0, 16 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 3, IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 3, IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 3, IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 3, IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M783.IF10 */ Local1 [0x01] = IF11 /* \M783.IF11 */ Local1 [0x02] = IF12 /* \M783.IF12 */ Local1 [0x03] = IF20 /* \M783.IF20 */ Local1 [0x04] = IF21 /* \M783.IF21 */ Local1 [0x05] = IF30 /* \M783.IF30 */ Local1 [0x06] = IF31 /* \M783.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 4-bit offset. */ /* m784(CallChain, OpRegion) */ Method (M784, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) Concatenate (Arg0, "-m784", Arg0) CopyObject (Arg1, OPRM) /* \M784.OPRM */ Field (OPRM, WordAcc, NoLock, WriteAsOnes) { IDX0, 16, DAT0, 16 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 4, IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 4, IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 4, IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 4, IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M784.IF10 */ Local1 [0x01] = IF11 /* \M784.IF11 */ Local1 [0x02] = IF12 /* \M784.IF12 */ Local1 [0x03] = IF20 /* \M784.IF20 */ Local1 [0x04] = IF21 /* \M784.IF21 */ Local1 [0x05] = IF30 /* \M784.IF30 */ Local1 [0x06] = IF31 /* \M784.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 5-bit offset. */ /* m785(CallChain, OpRegion) */ Method (M785, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) Concatenate (Arg0, "-m785", Arg0) CopyObject (Arg1, OPRM) /* \M785.OPRM */ Field (OPRM, DWordAcc, NoLock, WriteAsOnes) { IDX0, 32, DAT0, 32 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 5, IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 5, IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 5, IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 5, IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M785.IF10 */ Local1 [0x01] = IF11 /* \M785.IF11 */ Local1 [0x02] = IF12 /* \M785.IF12 */ Local1 [0x03] = IF20 /* \M785.IF20 */ Local1 [0x04] = IF21 /* \M785.IF21 */ Local1 [0x05] = IF30 /* \M785.IF30 */ Local1 [0x06] = IF31 /* \M785.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 6-bit offset. */ /* m786(CallChain, OpRegion) */ Method (M786, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) Concatenate (Arg0, "-m786", Arg0) CopyObject (Arg1, OPRM) /* \M786.OPRM */ Field (OPRM, ByteAcc, NoLock, WriteAsZeros) { IDX0, 16, DAT0, 16 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 6, IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 6, IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 6, IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 6, IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M786.IF10 */ Local1 [0x01] = IF11 /* \M786.IF11 */ Local1 [0x02] = IF12 /* \M786.IF12 */ Local1 [0x03] = IF20 /* \M786.IF20 */ Local1 [0x04] = IF21 /* \M786.IF21 */ Local1 [0x05] = IF30 /* \M786.IF30 */ Local1 [0x06] = IF31 /* \M786.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 7-bit offset. */ /* m787(CallChain, OpRegion) */ Method (M787, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) Concatenate (Arg0, "-m787", Arg0) CopyObject (Arg1, OPRM) /* \M787.OPRM */ Field (OPRM, WordAcc, NoLock, WriteAsZeros) { IDX0, 16, DAT0, 16 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 7, IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 7, IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 7, IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 7, IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M787.IF10 */ Local1 [0x01] = IF11 /* \M787.IF11 */ Local1 [0x02] = IF12 /* \M787.IF12 */ Local1 [0x03] = IF20 /* \M787.IF20 */ Local1 [0x04] = IF21 /* \M787.IF21 */ Local1 [0x05] = IF30 /* \M787.IF30 */ Local1 [0x06] = IF31 /* \M787.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 8-bit offset. */ /* m788(CallChain, OpRegion) */ Method (M788, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) Concatenate (Arg0, "-m788", Arg0) CopyObject (Arg1, OPRM) /* \M788.OPRM */ Field (OPRM, DWordAcc, NoLock, WriteAsZeros) { IDX0, 32, DAT0, 32 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x01), IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x01), IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x01), IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x01), IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M788.IF10 */ Local1 [0x01] = IF11 /* \M788.IF11 */ Local1 [0x02] = IF12 /* \M788.IF12 */ Local1 [0x03] = IF20 /* \M788.IF20 */ Local1 [0x04] = IF21 /* \M788.IF21 */ Local1 [0x05] = IF30 /* \M788.IF30 */ Local1 [0x06] = IF31 /* \M788.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Create IndexFields that spans the same bits */ /* and check possible inconsistence, 2046-bit offset. */ /* m789(CallChain, OpRegion) */ Method (M789, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x08) Concatenate (Arg0, "-m789", Arg0) CopyObject (Arg1, OPRM) /* \M789.OPRM */ Field (OPRM, WordAcc, NoLock, Preserve) { IDX0, 16, DAT0, 16 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 2046, IF00, 3 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 2046, IF10, 1, IF11, 1, IF12, 1 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 2046, IF20, 1, IF21, 2 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { , 2046, IF30, 2, IF31, 1 } Local0 = 0x08 Local1 = Package (0x07) { IF10, IF11, IF12, IF20, IF21, IF30, IF31 } While (Local0) { Local0-- IF00 = Local0 If (Y118){} Else { Local1 [0x00] = IF10 /* \M789.IF10 */ Local1 [0x01] = IF11 /* \M789.IF11 */ Local1 [0x02] = IF12 /* \M789.IF12 */ Local1 [0x03] = IF20 /* \M789.IF20 */ Local1 [0x04] = IF21 /* \M789.IF21 */ Local1 [0x05] = IF30 /* \M789.IF30 */ Local1 [0x06] = IF31 /* \M789.IF31 */ } M72A (Arg0, Local0, Local1) } } /* Testing parameters Packages */ /* Layout see in regionfield.asl */ /* (ByteAcc, NoLock, Preserve) */ Name (PP10, Package (0x05) { 0x00, 0x08, 0x00, 0x08, Package (0x06) { 0x00, 0x01, 0x01, 0x00, 0x01, "m790" } }) /* (WordAcc, NoLock, WriteAsOnes) */ Name (PP11, Package (0x05) { 0x00, 0x08, 0x08, 0x08, Package (0x06) { 0x01, 0x00, 0x02, 0x01, 0x01, "m791" } }) /* (DWordAcc, NoLock, WriteAsZeros) */ Name (PP12, Package (0x05) { 0x08, 0x08, 0x00, 0x08, Package (0x06) { 0x02, 0x01, 0x03, 0x02, 0x01, "m792" } }) /* (QWordAcc, NoLock, Preserve) */ Name (PP13, Package (0x05) { 0x08, 0x04, 0x08, 0x08, Package (0x06) { 0x01, 0x02, 0x04, 0x00, 0x01, "m793" } }) /* (AnyAcc, Lock, Preserve) */ Name (PP14, Package (0x05) { 0x0C, 0x04, 0x08, 0x08, Package (0x06) { 0x01, 0x00, 0x00, 0x00, 0x00, "m794" } }) /* Check IndexField access: ByteAcc, NoLock, Preserve */ /* m776(CallChain) */ Method (M776, 1, NotSerialized) { Concatenate (Arg0, "-m776", Arg0) Debug = "TEST: m776, Check IndexFields specified as (ByteAcc, NoLock, Preserve)" M72F (Arg0, 0x01, "pp10", PP10) } /* Check IndexField access: WordAcc, NoLock, WriteAsOnes */ /* m777(CallChain) */ Method (M777, 1, NotSerialized) { Concatenate (Arg0, "-m777", Arg0) Debug = "TEST: m777, Check IndexFields specified as (WordAcc, NoLock, WriteAsOnes)" M72F (Arg0, 0x01, "pp11", PP11) } /* Check IndexField access: DWordAcc, NoLock, WriteAsZeros */ /* m778(CallChain) */ Method (M778, 1, NotSerialized) { Concatenate (Arg0, "-m778", Arg0) Debug = "TEST: m778, Check IndexFields specified as (DWordAcc, NoLock, WriteAsZeros)" M72F (Arg0, 0x01, "pp12", PP12) } /* Check IndexField access: QWordAcc, NoLock, Preserve */ /* m779(CallChain) */ Method (M779, 1, NotSerialized) { Concatenate (Arg0, "-m779", Arg0) Debug = "TEST: m779, Check IndexFields specified as (QWordAcc, NoLock, Preserve)" M72F (Arg0, 0x01, "pp13", PP13) } /* Check IndexField access: AnyAcc, Lock, Preserve */ /* m77a(CallChain) */ Method (M77A, 1, NotSerialized) { Concatenate (Arg0, "-m77a", Arg0) Debug = "TEST: m77a, Check IndexFields specified as (AnyAcc, Lock, Preserve)" M72F (Arg0, 0x01, "pp14", PP14) } /* Create IndexField Unit */ /* (ByteAcc, NoLock, Preserve) */ Method (M790, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x0BB8, 0x87) /* * Consider different attributes of index/data fields * taking into account the following restrictions: * - the fields spanning the same access unit interfere, * - the fields exceeding 64 bits cause AE_BUFFER_OVERFLOW, * - index field exceeding 32 bits unexpectedly cause * AE_BUFFER_OVERFLOW too, * - data field exceeding IndexField's Access Width * causes overwriting of next memory bytes. */ Field (OPR0, ByteAcc, NoLock, Preserve) { IDX0, 8, DAT0, 8 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { G000, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), IDX1, 8, DAT1, 8 } IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { G001, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x07), IDX2, 16, DAT2, 8 } IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) { G002, 2048 } Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x0B), IDX3, 8, DAT3, 8 } IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { G003, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x0E), IDX4, 16, DAT4, 8 } IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { G004, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x12), IDX5, 32, DAT5, 8 } IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { G005, 2048 } Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x1A), IDX6, 8, Offset (0x1C), DAT6, 8 } IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { G006, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x20), IDX7, 32, DAT7, 8 } IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { G007, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x28), IDX8, 32, DAT8, 8 } IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { G008, 2048 } Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x38), IDX9, 8, Offset (0x40), DAT9, 8 } IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { G009, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x48), Offset (0x4C), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXA, 64, */ /* Do not allow index/data interference */ IDXA, 32, DATA, 8 } IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { G00A, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x58), IDXB, 32, Offset (0x60), DATB, 8 } IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { G00B, 2048 } Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x68), IDXC, 8, DATC, 8 } IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { G00C, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x6B), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXD, 64, */ IDXD, 32, DATD, 8 } IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { G00D, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsZeros) { Offset (0x7B), IDXE, 32, DATE, 8 } IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m790", Arg0) BreakPoint Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) { Offset (0x00), , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { IndexField (IDX3, DAT3, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { Offset (0x00), , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { Offset (0x00), , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { IndexField (IDX7, DAT7, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { Offset (0x00), , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { IndexField (IDX9, DAT9, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { Offset (0x00), , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { Offset (0x00), , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { IndexField (IDXD, DATD, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { Offset (0x00), , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { Offset (0x00), , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { IndexField (IDX3, DAT3, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { IndexField (IDX5, DAT5, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { IndexField (IDX9, DAT9, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { IndexField (IDXD, DATD, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { IndexField (IDX0, DAT0, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX3, DAT3, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { IndexField (IDX7, DAT7, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { IndexField (IDX9, DAT9, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { IndexField (IDXD, DATD, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { IndexField (IDX2, DAT2, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { IndexField (IDX5, DAT5, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { IndexField (IDX9, DAT9, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { IndexField (IDXD, DATD, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { IndexField (IDX0, DAT0, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { IndexField (IDX4, DAT4, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { IndexField (IDX7, DAT7, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { IndexField (IDX9, DAT9, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { IndexField (IDXD, DATD, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { IndexField (IDX2, DAT2, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { IndexField (IDX4, DAT4, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { IndexField (IDX9, DAT9, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { IndexField (IDXD, DATD, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { IndexField (IDX0, DAT0, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { IndexField (IDX4, DAT4, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX7, DAT7, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { IndexField (IDX9, DAT9, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { IndexField (IDXD, DATD, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { IndexField (IDX2, DAT2, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { IndexField (IDX4, DAT4, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { IndexField (IDX9, DAT9, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { IndexField (IDXD, DATD, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { IndexField (IDX0, DAT0, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { IndexField (IDX4, DAT4, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { IndexField (IDX8, DAT8, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { IndexField (IDXB, DATB, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { IndexField (IDX0, DAT0, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { IndexField (IDX2, DAT2, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { IndexField (IDX6, DAT6, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { IndexField (IDXB, DATB, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { IndexField (IDXD, DATD, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { IndexField (IDX2, DAT2, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { IndexField (IDX6, DAT6, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { IndexField (IDX8, DAT8, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXB, DATB, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { IndexField (IDX0, DAT0, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { IndexField (IDX2, DAT2, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { IndexField (IDX6, DAT6, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { IndexField (IDXA, DATA, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { IndexField (IDXD, DATD, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { IndexField (IDX2, DAT2, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { IndexField (IDX6, DAT6, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { IndexField (IDX8, DAT8, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { IndexField (IDXC, DATC, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { IndexField (IDX0, DAT0, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { IndexField (IDX2, DAT2, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { IndexField (IDX6, DAT6, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { IndexField (IDXA, DATA, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { IndexField (IDXC, DATC, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { IndexField (IDX2, DAT2, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { IndexField (IDX6, DAT6, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { IndexField (IDX8, DAT8, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { IndexField (IDXC, DATC, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, AnyAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, WordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, DWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { AccessAs (ByteAcc, 0x00), Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) } /* Create IndexField Unit */ /* (WordAcc, NoLock, WriteAsOnes) */ Method (M791, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x0FA0, 0x87) /* * Consider different attributes of index/data fields * taking into account the following restrictions: * - the fields spanning the same access unit interfere, * - the fields exceeding 64 bits cause AE_BUFFER_OVERFLOW, * - index field exceeding 32 bits unexpectedly cause * AE_BUFFER_OVERFLOW too, * - data field exceeding IndexField's Access Width * causes overwriting of next memory bytes. */ Field (OPR0, ByteAcc, NoLock, Preserve) { IDX0, 8, DAT0, 16 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { G000, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), IDX1, 8, DAT1, 16 } IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { G001, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x07), IDX2, 16, DAT2, 16 } IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) { G002, 2048 } Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x0B), IDX3, 8, DAT3, 16 } IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { G003, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x0E), IDX4, 16, DAT4, 16 } IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { G004, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x12), IDX5, 32, DAT5, 16 } IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { G005, 2048 } Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x1A), IDX6, 8, Offset (0x1C), DAT6, 16 } IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { G006, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x20), IDX7, 32, DAT7, 16 } IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { G007, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x28), IDX8, 32, DAT8, 16 } IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { G008, 2048 } Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x38), IDX9, 8, Offset (0x40), DAT9, 16 } IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { G009, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x48), Offset (0x4C), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXA, 64, */ /* Do not allow index/data interference */ IDXA, 32, DATA, 16 } IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { G00A, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x58), IDXB, 32, Offset (0x60), DATB, 16 } IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { G00B, 2048 } Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x68), IDXC, 8, DATC, 16 } IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { G00C, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x6B), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXD, 64, */ IDXD, 32, DATD, 16 } IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { G00D, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsZeros) { Offset (0x7B), IDXE, 32, DATE, 16 } IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m791", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) } /* Create IndexField Unit */ /* (DWordAcc, NoLock, WriteAsZeros) */ Method (M792, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x1388, 0x87) /* * Consider different attributes of index/data fields * taking into account the following restrictions: * - the fields spanning the same access unit interfere, * - the fields exceeding 64 bits cause AE_BUFFER_OVERFLOW, * - index field exceeding 32 bits unexpectedly cause * AE_BUFFER_OVERFLOW too, * - data field exceeding IndexField's Access Width * causes overwriting of next memory bytes. */ Field (OPR0, ByteAcc, NoLock, Preserve) { IDX0, 8, DAT0, 32 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { G000, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), IDX1, 8, DAT1, 32 } IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { G001, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), IDX2, 16, DAT2, 32 } IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) { G002, 2048 } Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x0E), IDX3, 16, DAT3, 32 } IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { G003, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x14), IDX4, 16, DAT4, 32 } IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { G004, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x1A), IDX5, 32, DAT5, 32 } IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { G005, 2048 } Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x22), IDX6, 8, Offset (0x24), DAT6, 32 } IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { G006, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x28), IDX7, 32, DAT7, 32 } IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { G007, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x30), IDX8, 32, DAT8, 32 } IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { G008, 2048 } Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x3C), IDX9, 8, Offset (0x40), DAT9, 32 } IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { G009, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x48), Offset (0x4C), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXA, 64, */ /* Do not allow index/data interference */ IDXA, 32, DATA, 32 } IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { G00A, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x58), IDXB, 32, Offset (0x60), DATB, 32 } IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { G00B, 2048 } Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x68), IDXC, 8, DATC, 32 } IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { G00C, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x6C), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXD, 64, */ IDXD, 32, DATD, 32 } IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { G00D, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsZeros) { Offset (0x7B), IDXE, 32, DATE, 32 } IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m792", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) } /* Create IndexField Unit */ /* (QWordAcc, NoLock, Preserve) */ Method (M793, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x1770, 0xA8) /* * Consider different attributes of index/data fields * taking into account the following restrictions: * - the fields spanning the same access unit interfere, * - the fields exceeding 64 bits cause AE_BUFFER_OVERFLOW, * - index field exceeding 32 bits unexpectedly cause * AE_BUFFER_OVERFLOW too, * - data field exceeding IndexField's Access Width * causes overwriting of next memory bytes. */ Field (OPR0, ByteAcc, NoLock, Preserve) { IDX0, 8, DAT0, 64 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { G000, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x07), IDX1, 8, DAT1, 64 } IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { G001, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x0E), IDX2, 16, DAT2, 64 } IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) { G002, 2048 } Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x18), IDX3, 16, DAT3, 64 } IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { G003, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x22), IDX4, 16, DAT4, 64 } IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { G004, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x2C), IDX5, 32, DAT5, 64 } IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { G005, 2048 } Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x38), IDX6, 8, Offset (0x3C), DAT6, 64 } IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { G006, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x44), IDX7, 32, DAT7, 64 } IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { G007, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x46), IDX8, 32, DAT8, 64 } IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { G008, 2048 } Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x52), IDX9, 8, Offset (0x58), DAT9, 64 } IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { G009, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x60), Offset (0x64), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXA, 64, */ /* Do not allow index/data interference */ IDXA, 32, DATA, 64 } IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { G00A, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x70), IDXB, 32, Offset (0x78), DATB, 64 } IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { G00B, 2048 } Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x80), IDXC, 8, DATC, 64 } IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { G00C, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x88), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXD, 64, */ IDXD, 32, Offset (0x90), DATD, 64 } IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { G00D, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsZeros) { Offset (0x98), IDXE, 32, Offset (0xA0), DATE, 64 } IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m793", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { Offset (0x00), , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) } /* Create IndexField Unit */ /* (AnyAcc, Lock, Preserve) */ Method (M794, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x1B58, 0x87) /* * Consider different attributes of index/data fields * taking into account the following restrictions: * - the fields spanning the same access unit interfere, * - the fields exceeding 64 bits cause AE_BUFFER_OVERFLOW, * - index field exceeding 32 bits unexpectedly cause * AE_BUFFER_OVERFLOW too, * - data field exceeding IndexField's Access Width * causes overwriting of next memory bytes. */ Field (OPR0, ByteAcc, NoLock, Preserve) { IDX0, 8, DAT0, 8 } IndexField (IDX0, DAT0, ByteAcc, NoLock, Preserve) { G000, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), IDX1, 8, DAT1, 8 } IndexField (IDX1, DAT1, ByteAcc, NoLock, Preserve) { G001, 2048 } Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x07), IDX2, 16, DAT2, 8 } IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) { G002, 2048 } Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x0B), IDX3, 8, DAT3, 8 } IndexField (IDX3, DAT3, ByteAcc, NoLock, Preserve) { G003, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x0E), IDX4, 16, DAT4, 8 } IndexField (IDX4, DAT4, ByteAcc, NoLock, Preserve) { G004, 2048 } Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x12), IDX5, 32, DAT5, 8 } IndexField (IDX5, DAT5, ByteAcc, NoLock, Preserve) { G005, 2048 } Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x1A), IDX6, 8, Offset (0x1C), DAT6, 8 } IndexField (IDX6, DAT6, ByteAcc, NoLock, Preserve) { G006, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x20), IDX7, 32, DAT7, 8 } IndexField (IDX7, DAT7, ByteAcc, NoLock, Preserve) { G007, 2048 } Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x28), IDX8, 32, DAT8, 8 } IndexField (IDX8, DAT8, ByteAcc, NoLock, Preserve) { G008, 2048 } Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x38), IDX9, 8, Offset (0x40), DAT9, 8 } IndexField (IDX9, DAT9, ByteAcc, NoLock, Preserve) { G009, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x48), Offset (0x4C), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXA, 64, */ /* Do not allow index/data interference */ IDXA, 32, DATA, 8 } IndexField (IDXA, DATA, ByteAcc, NoLock, Preserve) { G00A, 2048 } Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x58), IDXB, 32, Offset (0x60), DATB, 8 } IndexField (IDXB, DATB, ByteAcc, NoLock, Preserve) { G00B, 2048 } Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x68), IDXC, 8, DATC, 8 } IndexField (IDXC, DATC, ByteAcc, NoLock, Preserve) { G00C, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x6B), /* Index field exceeding 32 bits causes AE_BUFFER_OVERFLOW */ /* IDXD, 64, */ IDXD, 32, DATD, 8 } IndexField (IDXD, DATD, ByteAcc, NoLock, Preserve) { G00D, 2048 } Field (OPR0, AnyAcc, NoLock, WriteAsZeros) { Offset (0x7B), IDXE, 32, DATE, 8 } IndexField (IDXE, DATE, ByteAcc, NoLock, Preserve) { G00E, 2048 } Concatenate (Arg0, "-m794", Arg0) BreakPoint Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F010, 1 } Local3 = RefOf (F010) Local4 = RefOf (G001) } Case (0x06) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F011, 6 } Local3 = RefOf (F011) Local4 = RefOf (G002) } Case (0x07) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F012, 7 } Local3 = RefOf (F012) Local4 = RefOf (G003) } Case (0x08) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F013, 8 } Local3 = RefOf (F013) Local4 = RefOf (G004) } Case (0x09) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F014, 9 } Local3 = RefOf (F014) Local4 = RefOf (G005) } Case (0x1F) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F015, 31 } Local3 = RefOf (F015) Local4 = RefOf (G006) } Case (0x20) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F016, 32 } Local3 = RefOf (F016) Local4 = RefOf (G007) } Case (0x21) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F017, 33 } Local3 = RefOf (F017) Local4 = RefOf (G008) } Case (0x3F) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F018, 63 } Local3 = RefOf (F018) Local4 = RefOf (G009) } Case (0x40) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F019, 64 } Local3 = RefOf (F019) Local4 = RefOf (G00A) } Case (0x41) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F01A, 65 } Local3 = RefOf (F01A) Local4 = RefOf (G00B) } Case (0x45) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F01B, 69 } Local3 = RefOf (F01B) Local4 = RefOf (G00C) } Case (0x81) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F01C, 129 } Local3 = RefOf (F01C) Local4 = RefOf (G00D) } Case (0x0100) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F01D, 256 } Local3 = RefOf (F01D) Local4 = RefOf (G00E) } Case (0x03FF) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F01E, 1023 } Local3 = RefOf (F01E) Local4 = RefOf (G000) } Case (0x07BF) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { Offset (0x00), , 1, F01F, 1983 } Local3 = RefOf (F01F) Local4 = RefOf (G001) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 2, F020, 1 } Local3 = RefOf (F020) Local4 = RefOf (G002) } Case (0x06) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 2, F021, 6 } Local3 = RefOf (F021) Local4 = RefOf (G003) } Case (0x07) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 2, F022, 7 } Local3 = RefOf (F022) Local4 = RefOf (G004) } Case (0x08) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 2, F023, 8 } Local3 = RefOf (F023) Local4 = RefOf (G005) } Case (0x09) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 2, F024, 9 } Local3 = RefOf (F024) Local4 = RefOf (G006) } Case (0x1F) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 2, F025, 31 } Local3 = RefOf (F025) Local4 = RefOf (G007) } Case (0x20) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { , 2, F026, 32 } Local3 = RefOf (F026) Local4 = RefOf (G008) } Case (0x21) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 2, F027, 33 } Local3 = RefOf (F027) Local4 = RefOf (G009) } Case (0x3F) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { , 2, F028, 63 } Local3 = RefOf (F028) Local4 = RefOf (G00A) } Case (0x40) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { , 2, F029, 64 } Local3 = RefOf (F029) Local4 = RefOf (G00B) } Case (0x41) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 2, F02A, 65 } Local3 = RefOf (F02A) Local4 = RefOf (G00C) } Case (0x45) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 2, F02B, 69 } Local3 = RefOf (F02B) Local4 = RefOf (G00D) } Case (0x81) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { , 2, F02C, 129 } Local3 = RefOf (F02C) Local4 = RefOf (G00E) } Case (0x0100) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { , 2, F02D, 256 } Local3 = RefOf (F02D) Local4 = RefOf (G000) } Case (0x03FF) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { , 2, F02E, 1023 } Local3 = RefOf (F02E) Local4 = RefOf (G001) } Case (0x07BF) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 2, F02F, 1983 } Local3 = RefOf (F02F) Local4 = RefOf (G002) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 3, F030, 1 } Local3 = RefOf (F030) Local4 = RefOf (G003) } Case (0x06) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) Local4 = RefOf (G004) } Case (0x07) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 3, F032, 7 } Local3 = RefOf (F032) Local4 = RefOf (G005) } Case (0x08) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) Local4 = RefOf (G006) } Case (0x09) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 3, F034, 9 } Local3 = RefOf (F034) Local4 = RefOf (G007) } Case (0x1F) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) Local4 = RefOf (G008) } Case (0x20) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 3, F036, 32 } Local3 = RefOf (F036) Local4 = RefOf (G009) } Case (0x21) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) Local4 = RefOf (G00A) } Case (0x3F) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { , 3, F038, 63 } Local3 = RefOf (F038) Local4 = RefOf (G00B) } Case (0x40) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) Local4 = RefOf (G00C) } Case (0x41) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 3, F03A, 65 } Local3 = RefOf (F03A) Local4 = RefOf (G00D) } Case (0x45) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) Local4 = RefOf (G00E) } Case (0x81) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { , 3, F03C, 129 } Local3 = RefOf (F03C) Local4 = RefOf (G000) } Case (0x0100) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) Local4 = RefOf (G001) } Case (0x03FF) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 3, F03E, 1023 } Local3 = RefOf (F03E) Local4 = RefOf (G002) } Case (0x07BF) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) Local4 = RefOf (G003) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) Local4 = RefOf (G004) } Case (0x06) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 4, F041, 6 } Local3 = RefOf (F041) Local4 = RefOf (G005) } Case (0x07) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) Local4 = RefOf (G006) } Case (0x08) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 4, F043, 8 } Local3 = RefOf (F043) Local4 = RefOf (G007) } Case (0x09) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) Local4 = RefOf (G008) } Case (0x1F) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 4, F045, 31 } Local3 = RefOf (F045) Local4 = RefOf (G009) } Case (0x20) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) Local4 = RefOf (G00A) } Case (0x21) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { , 4, F047, 33 } Local3 = RefOf (F047) Local4 = RefOf (G00B) } Case (0x3F) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) Local4 = RefOf (G00C) } Case (0x40) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 4, F049, 64 } Local3 = RefOf (F049) Local4 = RefOf (G00D) } Case (0x41) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) Local4 = RefOf (G00E) } Case (0x45) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { , 4, F04B, 69 } Local3 = RefOf (F04B) Local4 = RefOf (G000) } Case (0x81) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) Local4 = RefOf (G001) } Case (0x0100) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 4, F04D, 256 } Local3 = RefOf (F04D) Local4 = RefOf (G002) } Case (0x03FF) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) Local4 = RefOf (G003) } Case (0x07BF) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 4, F04F, 1983 } Local3 = RefOf (F04F) Local4 = RefOf (G004) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 5, F050, 1 } Local3 = RefOf (F050) Local4 = RefOf (G005) } Case (0x06) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) Local4 = RefOf (G006) } Case (0x07) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 5, F052, 7 } Local3 = RefOf (F052) Local4 = RefOf (G007) } Case (0x08) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) Local4 = RefOf (G008) } Case (0x09) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 5, F054, 9 } Local3 = RefOf (F054) Local4 = RefOf (G009) } Case (0x1F) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) Local4 = RefOf (G00A) } Case (0x20) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { , 5, F056, 32 } Local3 = RefOf (F056) Local4 = RefOf (G00B) } Case (0x21) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) Local4 = RefOf (G00C) } Case (0x3F) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 5, F058, 63 } Local3 = RefOf (F058) Local4 = RefOf (G00D) } Case (0x40) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) Local4 = RefOf (G00E) } Case (0x41) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { , 5, F05A, 65 } Local3 = RefOf (F05A) Local4 = RefOf (G000) } Case (0x45) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) Local4 = RefOf (G001) } Case (0x81) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 5, F05C, 129 } Local3 = RefOf (F05C) Local4 = RefOf (G002) } Case (0x0100) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) Local4 = RefOf (G003) } Case (0x03FF) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 5, F05E, 1023 } Local3 = RefOf (F05E) Local4 = RefOf (G004) } Case (0x07BF) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) Local4 = RefOf (G005) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) Local4 = RefOf (G006) } Case (0x06) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 6, F061, 6 } Local3 = RefOf (F061) Local4 = RefOf (G007) } Case (0x07) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) Local4 = RefOf (G008) } Case (0x08) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 6, F063, 8 } Local3 = RefOf (F063) Local4 = RefOf (G009) } Case (0x09) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) Local4 = RefOf (G00A) } Case (0x1F) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { , 6, F065, 31 } Local3 = RefOf (F065) Local4 = RefOf (G00B) } Case (0x20) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) Local4 = RefOf (G00C) } Case (0x21) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 6, F067, 33 } Local3 = RefOf (F067) Local4 = RefOf (G00D) } Case (0x3F) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) Local4 = RefOf (G00E) } Case (0x40) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { , 6, F069, 64 } Local3 = RefOf (F069) Local4 = RefOf (G000) } Case (0x41) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) Local4 = RefOf (G001) } Case (0x45) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 6, F06B, 69 } Local3 = RefOf (F06B) Local4 = RefOf (G002) } Case (0x81) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) Local4 = RefOf (G003) } Case (0x0100) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 6, F06D, 256 } Local3 = RefOf (F06D) Local4 = RefOf (G004) } Case (0x03FF) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) Local4 = RefOf (G005) } Case (0x07BF) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 6, F06F, 1983 } Local3 = RefOf (F06F) Local4 = RefOf (G006) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 7, F070, 1 } Local3 = RefOf (F070) Local4 = RefOf (G007) } Case (0x06) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) Local4 = RefOf (G008) } Case (0x07) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 7, F072, 7 } Local3 = RefOf (F072) Local4 = RefOf (G009) } Case (0x08) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) Local4 = RefOf (G00A) } Case (0x09) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { , 7, F074, 9 } Local3 = RefOf (F074) Local4 = RefOf (G00B) } Case (0x1F) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) Local4 = RefOf (G00C) } Case (0x20) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 7, F076, 32 } Local3 = RefOf (F076) Local4 = RefOf (G00D) } Case (0x21) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) Local4 = RefOf (G00E) } Case (0x3F) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { , 7, F078, 63 } Local3 = RefOf (F078) Local4 = RefOf (G000) } Case (0x40) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) Local4 = RefOf (G001) } Case (0x41) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 7, F07A, 65 } Local3 = RefOf (F07A) Local4 = RefOf (G002) } Case (0x45) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) Local4 = RefOf (G003) } Case (0x81) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 7, F07C, 129 } Local3 = RefOf (F07C) Local4 = RefOf (G004) } Case (0x0100) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) Local4 = RefOf (G005) } Case (0x03FF) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 7, F07E, 1023 } Local3 = RefOf (F07E) Local4 = RefOf (G006) } Case (0x07BF) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) Local4 = RefOf (G007) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) Local4 = RefOf (G008) } Case (0x06) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) Local4 = RefOf (G009) } Case (0x07) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) Local4 = RefOf (G00A) } Case (0x08) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) Local4 = RefOf (G00B) } Case (0x09) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) Local4 = RefOf (G00C) } Case (0x1F) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) Local4 = RefOf (G00D) } Case (0x20) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) Local4 = RefOf (G00E) } Case (0x21) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) Local4 = RefOf (G000) } Case (0x3F) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) Local4 = RefOf (G001) } Case (0x40) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) Local4 = RefOf (G002) } Case (0x41) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) Local4 = RefOf (G003) } Case (0x45) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) Local4 = RefOf (G004) } Case (0x81) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) Local4 = RefOf (G005) } Case (0x0100) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) Local4 = RefOf (G006) } Case (0x03FF) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) Local4 = RefOf (G007) } Case (0x07BF) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) Local4 = RefOf (G008) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 9, F090, 1 } Local3 = RefOf (F090) Local4 = RefOf (G009) } Case (0x06) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) Local4 = RefOf (G00A) } Case (0x07) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { , 9, F092, 7 } Local3 = RefOf (F092) Local4 = RefOf (G00B) } Case (0x08) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) Local4 = RefOf (G00C) } Case (0x09) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 9, F094, 9 } Local3 = RefOf (F094) Local4 = RefOf (G00D) } Case (0x1F) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) Local4 = RefOf (G00E) } Case (0x20) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { , 9, F096, 32 } Local3 = RefOf (F096) Local4 = RefOf (G000) } Case (0x21) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) Local4 = RefOf (G001) } Case (0x3F) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 9, F098, 63 } Local3 = RefOf (F098) Local4 = RefOf (G002) } Case (0x40) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) Local4 = RefOf (G003) } Case (0x41) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 9, F09A, 65 } Local3 = RefOf (F09A) Local4 = RefOf (G004) } Case (0x45) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) Local4 = RefOf (G005) } Case (0x81) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 9, F09C, 129 } Local3 = RefOf (F09C) Local4 = RefOf (G006) } Case (0x0100) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) Local4 = RefOf (G007) } Case (0x03FF) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { , 9, F09E, 1023 } Local3 = RefOf (F09E) Local4 = RefOf (G008) } Case (0x07BF) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) Local4 = RefOf (G009) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) Local4 = RefOf (G00A) } Case (0x06) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) Local4 = RefOf (G00B) } Case (0x07) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) Local4 = RefOf (G00C) } Case (0x08) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) Local4 = RefOf (G00D) } Case (0x09) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) Local4 = RefOf (G00E) } Case (0x1F) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) Local4 = RefOf (G000) } Case (0x20) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) Local4 = RefOf (G001) } Case (0x21) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) Local4 = RefOf (G002) } Case (0x3F) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) Local4 = RefOf (G003) } Case (0x40) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) Local4 = RefOf (G004) } Case (0x41) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) Local4 = RefOf (G005) } Case (0x45) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) Local4 = RefOf (G006) } Case (0x81) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) Local4 = RefOf (G007) } Case (0x0100) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) Local4 = RefOf (G008) } Case (0x03FF) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) Local4 = RefOf (G009) } Case (0x07BF) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) Local4 = RefOf (G00A) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) Local4 = RefOf (G00B) } Case (0x06) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) Local4 = RefOf (G00C) } Case (0x07) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) Local4 = RefOf (G00D) } Case (0x08) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) Local4 = RefOf (G00E) } Case (0x09) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) Local4 = RefOf (G000) } Case (0x1F) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) Local4 = RefOf (G001) } Case (0x20) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) Local4 = RefOf (G002) } Case (0x21) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) Local4 = RefOf (G003) } Case (0x3F) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) Local4 = RefOf (G004) } Case (0x40) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) Local4 = RefOf (G005) } Case (0x41) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) Local4 = RefOf (G006) } Case (0x45) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) Local4 = RefOf (G007) } Case (0x81) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) Local4 = RefOf (G008) } Case (0x0100) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) Local4 = RefOf (G009) } Case (0x03FF) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) Local4 = RefOf (G00A) } Case (0x07BF) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) Local4 = RefOf (G00B) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) Local4 = RefOf (G00C) } Case (0x06) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) Local4 = RefOf (G00D) } Case (0x07) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) Local4 = RefOf (G00E) } Case (0x08) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) Local4 = RefOf (G000) } Case (0x09) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) Local4 = RefOf (G001) } Case (0x1F) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) Local4 = RefOf (G002) } Case (0x20) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) Local4 = RefOf (G003) } Case (0x21) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) Local4 = RefOf (G004) } Case (0x3F) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) Local4 = RefOf (G005) } Case (0x40) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) Local4 = RefOf (G006) } Case (0x41) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) Local4 = RefOf (G007) } Case (0x45) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) Local4 = RefOf (G008) } Case (0x81) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) Local4 = RefOf (G009) } Case (0x0100) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) Local4 = RefOf (G00A) } Case (0x03FF) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) Local4 = RefOf (G00B) } Case (0x07BF) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) Local4 = RefOf (G00C) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) Local4 = RefOf (G00D) } Case (0x06) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) Local4 = RefOf (G00E) } Case (0x07) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) Local4 = RefOf (G000) } Case (0x08) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) Local4 = RefOf (G001) } Case (0x09) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) Local4 = RefOf (G002) } Case (0x1F) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) Local4 = RefOf (G003) } Case (0x20) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) Local4 = RefOf (G004) } Case (0x21) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) Local4 = RefOf (G005) } Case (0x3F) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) Local4 = RefOf (G006) } Case (0x40) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) Local4 = RefOf (G007) } Case (0x41) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) Local4 = RefOf (G008) } Case (0x45) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) Local4 = RefOf (G009) } Case (0x81) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) Local4 = RefOf (G00A) } Case (0x0100) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) Local4 = RefOf (G00B) } Case (0x03FF) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) Local4 = RefOf (G00C) } Case (0x07BF) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) Local4 = RefOf (G00D) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) Local4 = RefOf (G00E) } Case (0x06) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) Local4 = RefOf (G000) } Case (0x07) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) Local4 = RefOf (G001) } Case (0x08) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) Local4 = RefOf (G002) } Case (0x09) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) Local4 = RefOf (G003) } Case (0x1F) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) Local4 = RefOf (G004) } Case (0x20) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) Local4 = RefOf (G005) } Case (0x21) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) Local4 = RefOf (G006) } Case (0x3F) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) Local4 = RefOf (G007) } Case (0x40) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) Local4 = RefOf (G008) } Case (0x41) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) Local4 = RefOf (G009) } Case (0x45) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) Local4 = RefOf (G00A) } Case (0x81) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) Local4 = RefOf (G00B) } Case (0x0100) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) Local4 = RefOf (G00C) } Case (0x03FF) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) Local4 = RefOf (G00D) } Case (0x07BF) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) Local4 = RefOf (G00E) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) Local4 = RefOf (G000) } Case (0x06) { IndexField (IDX1, DAT1, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) Local4 = RefOf (G001) } Case (0x07) { IndexField (IDX2, DAT2, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) Local4 = RefOf (G002) } Case (0x08) { IndexField (IDX3, DAT3, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) Local4 = RefOf (G003) } Case (0x09) { IndexField (IDX4, DAT4, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) Local4 = RefOf (G004) } Case (0x1F) { IndexField (IDX5, DAT5, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) Local4 = RefOf (G005) } Case (0x20) { IndexField (IDX6, DAT6, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) Local4 = RefOf (G006) } Case (0x21) { IndexField (IDX7, DAT7, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) Local4 = RefOf (G007) } Case (0x3F) { IndexField (IDX8, DAT8, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) Local4 = RefOf (G008) } Case (0x40) { IndexField (IDX9, DAT9, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) Local4 = RefOf (G009) } Case (0x41) { IndexField (IDXA, DATA, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) Local4 = RefOf (G00A) } Case (0x45) { IndexField (IDXB, DATB, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) Local4 = RefOf (G00B) } Case (0x81) { IndexField (IDXC, DATC, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) Local4 = RefOf (G00C) } Case (0x0100) { IndexField (IDXD, DATD, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) Local4 = RefOf (G00D) } Case (0x03FF) { IndexField (IDXE, DATE, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) Local4 = RefOf (G00E) } Case (0x07BF) { IndexField (IDX0, DAT0, AnyAcc, Lock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) Local4 = RefOf (G000) } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z144, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, Local4) } /* Run-method */ Method (IFC0, 0, Serialized) { SRMT ("m770") M770 (__METHOD__) /* Access to 1-bit IndexFields, ByteAcc */ SRMT ("m771") M771 (__METHOD__) /* Access to 1-bit IndexFields, WordAcc */ SRMT ("m772") M772 (__METHOD__) /* Access to 1-bit IndexFields, DWordAcc */ SRMT ("m773") M773 (__METHOD__) /* Access to 1-bit IndexFields, QWordAcc */ SRMT ("m774") If (Y215) { M774 (__METHOD__) } Else { BLCK () } /* Splitting of IndexFields */ SRMT ("m775") M775 (__METHOD__) /* Check IndexField access: ByteAcc, NoLock, Preserve */ SRMT ("m776") If (Y224) { M776 (__METHOD__) } Else { BLCK () } /* Check IndexField access: WordAcc, NoLock, WriteAsOnes */ SRMT ("m777") If (Y224) { M777 (__METHOD__) } Else { BLCK () } /* Check IndexField access: DWordAcc, NoLock, WriteAsZeros */ SRMT ("m778") If (Y224) { M778 (__METHOD__) } Else { BLCK () } /* Check IndexField access: QWordAcc, NoLock, Preserve */ SRMT ("m779") If (Y224) { M779 (__METHOD__) } Else { BLCK () } /* Check IndexField access: AnyAcc, Lock, Preserve */ SRMT ("m77a") If (Y224) { M77A (__METHOD__) } Else { BLCK () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/MAIN.asl0000700000175000017500000000411514773714157027467 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("region", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/region/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/region/RUN.asl") /* Final actions */ store (FNSH (), Local7) Local7 = 0x00 Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/Makefile0000700000175000017500000000022014773714157027673 0ustar ivanhuivanhu# region AMLMOD= region COLL= ../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/dtregions.asl0000700000175000017500000003204014773714157030737 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data Table Region declarations */ /* * On testing following issues should be covered: * - String objects can be used as DataTableRegion arguments, * - global and dynamic DataTableRegion declarations, * - check of the Table Length on access to appropriate Fields, * - any table referenced in XSDT can be accessed, * - computational data is allowed to be DataTableRegion arguments, * - possibility to write into appropriate Fields. * * Can not be tested following issues: * - providing of DataTableRegions to be "in memory marked by * AddressRangeReserved or AddressRangeNVS". */ Name (Z142, 0x8E) Device (DTR0) { DataTableRegion (DR00, "DSDT", "", "") DataTableRegion (DR01, "SSDT", "", "") /* This SSDT must be identical to SSDT1 in the AcpiExec utility */ Name (SSDT, Buffer (0x3E) { /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0x3E, 0x00, 0x00, 0x00, // SSDT>... /* 0008 */ 0x02, 0x08, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel. /* 0010 */ 0x73, 0x73, 0x64, 0x74, 0x31, 0x00, 0x00, 0x00, // ssdt1... /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL /* 0020 */ 0x20, 0x06, 0x12, 0x20, 0x14, 0x19, 0x5F, 0x54, // .. .._T /* 0028 */ 0x39, 0x38, 0x01, 0x70, 0x0D, 0x53, 0x53, 0x44, // 98.p.SSD /* 0030 */ 0x54, 0x31, 0x20, 0x2D, 0x20, 0x5F, 0x54, 0x39, // T1 - _T9 /* 0038 */ 0x38, 0x00, 0x5B, 0x31, 0xA4, 0x00 // 8.[1.. }) Name (NFLG, 0x02) /* Number of turn on/off Flag values */ Name (IRSK, 0x00) /* Counter of the Invalid RSKs */ Name (IFLG, 0x00) /* Counter of the Invalid Flags */ Name (VRSK, 0x00) /* Counter of the Valid RSK 0x07 */ Name (ERSK, 0x02) /* Expected Counters of the Valid RSK */ Name (VFLG, /* Counters of the Valid Flags */Package (NFLG) { 0x00, 0x00 }) /* Specific DataTable Regions availability notification Method */ /* \DTR0._REG(RegionSpaceKeyword, Flag) */ OperationRegion (JUNK, SystemMemory, 0x2000, 0x0100) Method (_REG, 2, Serialized) // _REG: Region Availability { Name (DBGF, 0x01) If (DBGF) { DNAM (Arg0, Arg1, "\\DTR0._REG") } /* * 0x7E is the SpaceID for DataTableRegions (subject to change * with new releases of ACPI specification -- because this * ID is an internal-ACPICA-only ID) */ If ((Arg0 == 0x7E)) { VRSK++ } Else { IRSK++ } If ((Arg1 < NFLG)) { Local1 = VFLG [Arg1] Local2 = RefOf (Local1) DerefOf (Local2) = (DerefOf (Local1) + 0x01) } Else { IFLG++ } } } /* Global DataTableRegions */ Method (M7F0, 1, NotSerialized) { Concatenate (Arg0, "-m7f0", Arg0) \DTR0._REG (0x0101, 0x02) If ((\DTR0.IRSK != 0x01)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, \DTR0.IRSK, 0x01) } If ((\DTR0.IFLG != 0x01)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, \DTR0.IFLG, 0x01) } If ((\DTR0.VRSK != 0x02)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, \DTR0.VRSK, 0x02) } If ((DerefOf (\DTR0.VFLG [0x01]) != 0x02)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, DerefOf (\DTR0.VFLG [0x01]), 0x02) } } /* Dynamic DataTableRegions */ /* m7f1(CallChain) */ /* CallChain: String */ Method (M7F1, 1, Serialized) { Name (NFLG, 0x02) /* Number of turn on/off Flag values */ Name (IRSK, 0x00) /* Counter of the Invalid RSKs */ Name (IFLG, 0x00) /* Counter of the Invalid Flags */ Name (VRSK, 0x00) /* Counter of the Valid RSK 0x7E (DataTableRegion) */ Name (ERSK, 0x02) /* Expected Counters of the Valid RSK */ Name (VFLG, /* Counters of the Valid Flags */Package (NFLG) { 0x00, 0x00 }) /* Specific DataTable Regions availability notification Method */ /* \m7f1._REG(RegionSpaceKeyword, Flag) */ OperationRegion (JUNK, SystemMemory, 0x2000, 0x0100) Method (_REG, 2, Serialized) // _REG: Region Availability { Name (DBGF, 0x01) If (DBGF) { DNAM (Arg0, Arg1, "\\m7f1._REG") } /* DataTableRegion is SpaceID 0x7E */ If ((Arg0 == 0x7E)) { VRSK++ } Else { IRSK++ } If ((Arg1 < NFLG)) { Local1 = VFLG [Arg1] Local2 = RefOf (Local1) DerefOf (Local2) = (DerefOf (Local1) + 0x01) } Else { IFLG++ } } Concatenate (Arg0, "-m7f1", Arg0) If ((VRSK != 0x00)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, VRSK, 0x00) } If ((DerefOf (VFLG [0x01]) != 0x00)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, DerefOf (VFLG [0x01]), 0x00) } DataTableRegion (DR00, "SSDT", "", "") If ((IRSK != 0x00)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, IRSK, 0x00) } If ((IFLG != 0x00)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, IFLG, 0x00) } _REG (0x0101, 0x02) If ((IRSK != 0x01)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, IRSK, 0x01) } If ((IFLG != 0x01)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, IFLG, 0x01) } If ((VRSK != 0x01)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, VRSK, 0x01) } If ((DerefOf (VFLG [0x01]) != 0x01)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, DerefOf (VFLG [0x01]), 0x01) } } /* DataTableRegion Lengths */ /* m7f2(CallChain) */ /* CallChain: String */ Method (M7F2, 1, Serialized) { Concatenate (Arg0, "-m7f2", Arg0) Field (\DTR0.DR01, AnyAcc, NoLock, Preserve) { FU01, 496 } /* 0x1F0 == length of SSDT */ Local0 = RefOf (FU01) Local1 = RefOf (Local0) Local2 = DerefOf (Local0) CH03 (Arg0, Z142, __LINE__, 0x00, 0x00) Local3 = \DTR0.SSDT If ((Local2 != Local3)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, Local2, Local3) } } /* Check non-constant DataTableRegion *String arguments */ /* m7f3(CallChain) */ /* CallChain: String */ Method (M7F3, 1, Serialized) { Name (S000, "SSDT") Name (S001, "") Name (S002, "") Method (M000, 1, Serialized) { DataTableRegion (DR00, "SSDT", "", "") Field (DR00, AnyAcc, NoLock, Preserve) { FU01, 496 } /* 0x1F0 == length of SSDT */ Local0 = FU01 /* \M7F3.M000.FU01 */ Local1 = \DTR0.SSDT If ((Local0 != Local1)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, Local0, Local1) } } /* ArgX */ Method (M001, 4, Serialized) { DataTableRegion (DR00, Arg1, Arg2, Arg3) Field (DR00, AnyAcc, NoLock, Preserve) { FU01, 496 } /* 0x1F0 == length of SSDT */ Local0 = FU01 /* \M7F3.M001.FU01 */ Local1 = \DTR0.SSDT If ((Local0 != Local1)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, Local0, Local1) } } /* Named */ Method (M002, 1, Serialized) { DataTableRegion (DR00, S000, S001, S002) Field (DR00, AnyAcc, NoLock, Preserve) { FU01, 496 } /* 0x1F0 == length of SSDT */ Local0 = FU01 /* \M7F3.M002.FU01 */ Local1 = \DTR0.SSDT If ((Local0 != Local1)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, Local0, Local1) } } /* LocalX */ Method (M003, 1, Serialized) { Local2 = S000 /* \M7F3.S000 */ Local3 = S001 /* \M7F3.S001 */ Local4 = S002 /* \M7F3.S002 */ DataTableRegion (DR00, Local2, Local3, Local4) Field (DR00, AnyAcc, NoLock, Preserve) { FU01, 496 } /* 0x1F0 == length of SSDT */ Local0 = FU01 /* \M7F3.M003.FU01 */ Local1 = \DTR0.SSDT If ((Local0 != Local1)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, Local0, Local1) } } /* Expression */ Method (M004, 1, Serialized) { Local2 = "SS" Local3 = "DT" DataTableRegion (DR00, Concatenate (Local2, Local3), Mid (S000, 0x01, 0x00), S002) Field (DR00, AnyAcc, NoLock, Preserve) { FU01, 496 } /* 0x1F0 == length of SSDT */ Local0 = FU01 /* \M7F3.M004.FU01 */ Local1 = \DTR0.SSDT If ((Local0 != Local1)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, Local0, Local1) } } Concatenate (Arg0, "-m7f1", Arg0) M000 (Arg0) M001 (Arg0, "SSDT", "", "") M002 (Arg0) M003 (Arg0) M004 (Arg0) } /* Check different Table signatures */ /* m7f4(CallChain) */ /* CallChain: String */ Method (M7F4, 1, NotSerialized) { Method (M000, 3, Serialized) { DataTableRegion (DR00, Arg1, "", "") Field (DR00, AnyAcc, NoLock, Preserve) { FU00, 32 } Local0 = ToString (FU00, 0x04) If ((Local0 != Arg1)) { ERR (Arg0, Z142, __LINE__, 0x00, 0x00, Local0, Arg1) } } Concatenate (Arg0, "-m7f4", Arg0) M000 (Arg0, "DSDT", 0x1B) M000 (Arg0, "SSDT", 0x1C) /* no RSDT in simulator */ /*m000(arg0, "RSDT", 29) */ M000 (Arg0, "TEST", 0x1E) M000 (Arg0, "BAD!", 0x1F) M000 (Arg0, "FACP", 0x20) M000 (Arg0, "SSDT", 0x21) M000 (Arg0, "OEM1", 0x22) } Method (DRC0, 0, Serialized) { /* Global DataTableRegions */ SRMT ("m7f0") M7F0 (__METHOD__) /* Dynamic DataTableRegions */ SRMT ("m7f1") M7F1 (__METHOD__) /* DataTableRegion Lengths */ SRMT ("m7f2") M7F2 (__METHOD__) /* Non-constant DataTableRegion *String arguments */ SRMT ("m7f3") If (Y223) { M7F3 (__METHOD__) } Else { BLCK () } /* Different Table signatures */ SRMT ("m7f4") If (Y223) { M7F4 (__METHOD__) } Else { BLCK () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/region/regionfield.asl0000700000175000017500000553372314773714157031253 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Region Field objects definition and processing */ /* * On testing following issues should be covered: * - Operation Regions of different Region Space types application * for Field objects definition, * - application of any allowed AccessType Keywords, * - application of any allowed LockRule Keywords, * - application of any allowed UpdateRule Keywords, * - application of the Offset macros in the FieldUnitList, * - application of the AccessAs macros in the FieldUnitList, * - on writing taking into account the Access Type in accord with the Update Rule, * - splitting of an field causes appropriate splitting of the spanned bits, * - AccessAs macros influence on the remaining FieldUnits within the list, * - integer/buffer representation of the Unit contents as depends on its * Length and DSDT ComplianceRevision (32/64-bit Integer), * - Data Type Conversion Rules on storing to Region Fields. * * Can not be tested following issues: * - exact use of given Access Type alignment on Access to Field data, * - exact use of specific Conversion Rules on storing of Buffers or Strings. */ Name (Z143, 0x8F) Name (RS00, 0x0100) /* Generated benchmark buffers for comparison with */ Name (BR10, Buffer (RS00){}) Name (BR01, Buffer (RS00){}) Name (BRB0, Buffer (RS00){}) /* Buffer for filling the ground */ Name (BRG0, Buffer (RS00){}) /* Buffer for filling the field (over the ground) */ Name (BRF0, Buffer (RS00){}) /* Tested field unit offsets */ Name (PFUO, Package (0x10) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x1F, 0x20, 0x21, 0x3F, 0x40, 0x41 }) /* Tested field unit length */ Name (PFUL, Package (0x10) { 0x01, 0x06, 0x07, 0x08, 0x09, 0x1F, 0x20, 0x21, 0x3F, 0x40, 0x41, 0x45, 0x81, 0x0100, 0x03FF, 0x07BF }) /* Dynamic Field test Control parameters Package */ /* Layout of Package: */ /* - : 0 - none, 1 - IndexField, 2 - BankField, */ /* - , */ /* - */ Name (FCP0, Package (0x03) { 0x00 }) /* Testing parameters Packages */ /* Layout of Package: */ /* - , */ /* - , */ /* - , */ /* - , */ /* - : */ /* - opcode of buffer to fill the ground */ /* - opcode of buffer to fill the field */ /* Opcodes of buffers: */ /* 0 - all zeros */ /* 1 - all units */ /* 2 - some mix */ /* - Access Type opcode */ /* 0 - AnyAcc, 1 - ByteAcc, 2 - WordAcc, */ /* 3 - DWordAcc, 4 - QWordAcc, 5 - BufferAcc */ /* - Update Rule opcode */ /* 0 - Preserve, 1 - WriteAsOnes, 2 - WriteAsZeros */ /* - Lock Rule opcode */ /* 0 - Lock, 1 - NoLock */ /* - Method implementing creation of fields */ /* ByteAcc, NoLock, Preserve */ Name (PP00, Package (0x05) { /* examines the whole range possible for the field's */ /* (off, len) in the underlying 256-byte Region: */ 0x00, 0x04, 0x00, 0x04, Package (0x06) { 0x00, 0x01, 0x01, 0x00, 0x01, "m730" } }) /* ByteAcc, NoLock, WriteAsOnes */ Name (PP01, Package (0x05) { 0x00, 0x04, 0x04, 0x04, Package (0x06) { 0x00, 0x01, 0x01, 0x01, 0x01, "m731" } }) /* ByteAcc, NoLock, WriteAsZeros */ Name (PP02, Package (0x05) { 0x00, 0x04, 0x08, 0x04, Package (0x06) { 0x00, 0x02, 0x01, 0x02, 0x01, "m732" } }) /* WordAcc, NoLock, Preserve */ Name (PP03, Package (0x05) { 0x00, 0x04, 0x0C, 0x04, Package (0x06) { 0x01, 0x00, 0x02, 0x00, 0x01, "m733" } }) /* WordAcc, NoLock, WriteAsOnes */ Name (PP04, Package (0x05) { 0x04, 0x04, 0x00, 0x04, Package (0x06) { 0x01, 0x00, 0x02, 0x01, 0x01, "m734" } }) /* WordAcc, NoLock, WriteAsZeros */ Name (PP05, Package (0x05) { 0x04, 0x04, 0x04, 0x04, Package (0x06) { 0x01, 0x02, 0x02, 0x02, 0x01, "m735" } }) /* DWordAcc, NoLock, Preserve */ Name (PP06, Package (0x05) { 0x04, 0x04, 0x08, 0x04, Package (0x06) { 0x02, 0x00, 0x03, 0x00, 0x01, "m736" } }) /* DWordAcc, NoLock, WriteAsOnes */ Name (PP07, Package (0x05) { 0x04, 0x04, 0x0C, 0x04, Package (0x06) { 0x02, 0x01, 0x03, 0x01, 0x01, "m737" } }) /* DWordAcc, NoLock, WriteAsZeros */ Name (PP08, Package (0x05) { 0x08, 0x04, 0x00, 0x04, Package (0x06) { 0x02, 0x01, 0x03, 0x02, 0x01, "m738" } }) /* QWordAcc, NoLock, Preserve */ Name (PP09, Package (0x05) { 0x08, 0x04, 0x04, 0x04, Package (0x06) { 0x02, 0x00, 0x04, 0x00, 0x01, "m739" } }) /* QWordAcc, NoLock, WriteAsOnes */ Name (PP0A, Package (0x05) { 0x08, 0x04, 0x08, 0x04, Package (0x06) { 0x00, 0x01, 0x04, 0x01, 0x01, "m73a" } }) /* QWordAcc, NoLock, WriteAsZeros */ Name (PP0B, Package (0x05) { 0x08, 0x04, 0x0C, 0x04, Package (0x06) { 0x00, 0x02, 0x04, 0x02, 0x01, "m73b" } }) /* AnyAcc, NoLock, Preserve */ Name (PP0C, Package (0x05) { 0x0C, 0x04, 0x00, 0x04, Package (0x06) { 0x01, 0x00, 0x00, 0x00, 0x01, "m73c" } }) /* AnyAcc, NoLock, WriteAsOnes */ Name (PP0D, Package (0x05) { 0x0C, 0x04, 0x04, 0x04, Package (0x06) { 0x02, 0x01, 0x00, 0x01, 0x01, "m73d" } }) /* AnyAcc, Lock, WriteAsZeros */ Name (PP0E, Package (0x05) { 0x0C, 0x04, 0x08, 0x08, Package (0x06) { 0x01, 0x02, 0x00, 0x02, 0x00, "m73e" } }) /* Check common access: ByteAcc, NoLock, Preserve */ /* m710(CallChain) */ /* CallChain: String */ Method (M710, 1, NotSerialized) { Concatenate (Arg0, "-m710", Arg0) Debug = "TEST: m710, Check Region Fields specified as (ByteAcc, NoLock, Preserve)" M72F (Arg0, 0x01, "pp00", PP00) } /* Check common access: ByteAcc, NoLock, WriteAsOnes */ /* m711(CallChain) */ /* CallChain: String */ Method (M711, 1, NotSerialized) { Concatenate (Arg0, "-m711", Arg0) Debug = "TEST: m711, Check Region Fields specified as (ByteAcc, NoLock, WriteAsOnes)" M72F (Arg0, 0x01, "pp01", PP01) } /* Check common access: ByteAcc, NoLock, WriteAsZeros */ /* m712(CallChain) */ /* CallChain: String */ Method (M712, 1, NotSerialized) { Concatenate (Arg0, "-m712", Arg0) Debug = "TEST: m712, Check Region Fields specified as (ByteAcc, NoLock, WriteAsZeros)" M72F (Arg0, 0x01, "pp02", PP02) } /* Check common access: WordAcc, NoLock, Preserve */ /* m713(CallChain) */ /* CallChain: String */ Method (M713, 1, NotSerialized) { Concatenate (Arg0, "-m713", Arg0) Debug = "TEST: m713, Check Region Fields specified as (WordAcc, NoLock, Preserve)" M72F (Arg0, 0x01, "pp03", PP03) } /* Check common access: WordAcc, NoLock, WriteAsOnes */ /* m714(CallChain) */ /* CallChain: String */ Method (M714, 1, NotSerialized) { Concatenate (Arg0, "-m714", Arg0) Debug = "TEST: m714, Check Region Fields specified as (WordAcc, NoLock, WriteAsOnes)" M72F (Arg0, 0x01, "pp04", PP04) } /* Check common access: WordAcc, NoLock, WriteAsZeros */ /* m715(CallChain) */ /* CallChain: String */ Method (M715, 1, NotSerialized) { Concatenate (Arg0, "-m715", Arg0) Debug = "TEST: m715, Check Region Fields specified as (WordAcc, NoLock, WriteAsZeros)" M72F (Arg0, 0x01, "pp05", PP05) } /* Check common access: DWordAcc, NoLock, Preserve */ /* m716(CallChain) */ /* CallChain: String */ Method (M716, 1, NotSerialized) { Concatenate (Arg0, "-m716", Arg0) Debug = "TEST: m716, Check Region Fields specified as (DWordAcc, NoLock, Preserve)" M72F (Arg0, 0x01, "pp06", PP06) } /* Check common access: DWordAcc, NoLock, WriteAsOnes */ /* m717(CallChain) */ /* CallChain: String */ Method (M717, 1, NotSerialized) { Concatenate (Arg0, "-m717", Arg0) Debug = "TEST: m717, Check Region Fields specified as (DWordAcc, NoLock, WriteAsOnes)" M72F (Arg0, 0x01, "pp07", PP07) } /* Check common access: DWordAcc, NoLock, WriteAsZeros */ /* m718(CallChain) */ /* CallChain: String */ Method (M718, 1, NotSerialized) { Concatenate (Arg0, "-m718", Arg0) Debug = "TEST: m718, Check Region Fields specified as (DWordAcc, NoLock, WriteAsZeros)" M72F (Arg0, 0x01, "pp08", PP08) } /* Check common access: QWordAcc, NoLock, Preserve */ /* m719(CallChain) */ /* CallChain: String */ Method (M719, 1, NotSerialized) { Concatenate (Arg0, "-m719", Arg0) Debug = "TEST: m719, Check Region Fields specified as (QWordAcc, NoLock, Preserve)" M72F (Arg0, 0x01, "pp09", PP09) } /* Check common access: QWordAcc, NoLock, WriteAsOnes */ /* m71a(CallChain) */ /* CallChain: String */ Method (M71A, 1, NotSerialized) { Concatenate (Arg0, "-m71a", Arg0) Debug = "TEST: m71a, Check Region Fields specified as (QWordAcc, NoLock, WriteAsOnes)" M72F (Arg0, 0x01, "pp0a", PP0A) } /* Check common access: QWordAcc, NoLock, WriteAsZeros */ /* m71b(CallChain) */ /* CallChain: String */ Method (M71B, 1, NotSerialized) { Concatenate (Arg0, "-m71b", Arg0) Debug = "TEST: m71b, Check Region Fields specified as (QWordAcc, NoLock, WriteAsZeros)" M72F (Arg0, 0x01, "pp0b", PP0B) } /* Check common access: AnyAcc, NoLock, Preserve */ /* m71c(CallChain) */ /* CallChain: String */ Method (M71C, 1, NotSerialized) { Concatenate (Arg0, "-m71c", Arg0) Debug = "TEST: m71c, Check Region Fields specified as (AnyAcc, NoLock, Preserve)" M72F (Arg0, 0x01, "pp0c", PP0C) } /* Check common access: AnyAcc, NoLock, WriteAsOnes */ /* m71d(CallChain) */ /* CallChain: String */ Method (M71D, 1, NotSerialized) { Concatenate (Arg0, "-m71d", Arg0) Debug = "TEST: m71d, Check Region Fields specified as (AnyAcc, NoLock, WriteAsOnes)" M72F (Arg0, 0x01, "pp0d", PP0D) } /* Check common access: AnyAcc, Lock, WriteAsZeros */ /* m71e(CallChain) */ /* CallChain: String */ Method (M71E, 1, NotSerialized) { Concatenate (Arg0, "-m71e", Arg0) Debug = "TEST: m71e, Check Region Fields specified as (AnyAcc, Lock, WriteAsZeros)" M72F (Arg0, 0x01, "pp0e", PP0E) } /* Check BufferAcc access for SMBus */ /* m71f(CallChain) */ /* CallChain: String */ Method (M71F, 1, NotSerialized) { Concatenate (Arg0, "-m71f", Arg0) Debug = "TEST: m71f, Check SMBus Region Fields (BufferAcc access)" /* * Examples from Acpi Spec (chapter 13.7 Using the SMBus Protocols) */ /* Read/Write Quick (SMBQuick) */ M751 (Arg0) /* Send/Receive Byte (SMBSendReceive) */ M752 (Arg0) /* Read/Write Byte (SMBByte) */ M753 (Arg0) /* Read/Write Word (SMBWord) */ M754 (Arg0) /* Read/Write Block (SMBBlock) */ M755 (Arg0) /* Word Process Call (SMBProcessCall) */ M756 (Arg0) /* Block Process Call (SMBBlockProcessCall) */ M757 (Arg0) } /* Read/Write Quick (SMBQuick) */ /* m751(CallChain) */ /* CallChain: String */ Method (M751, 1, Serialized) { Concatenate (Arg0, "-m751", Arg0) OperationRegion (SMBD, SMBus, 0x4200, 0x0100) Field (SMBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribQuick), FLD0, 8 } /* Virtual register at command value 0. */ /* Create the SMBus data buffer */ Name (BUFF, Buffer (0x22){}) /* Create SMBus data buffer as BUFF */ Name (BUFR, Buffer (0x22){}) /* Create SMBus result buffer */ CreateByteField (BUFF, 0x00, OB10) /* Status (Byte) */ CreateByteField (BUFF, 0x01, LEN0) /* Length (Byte) */ CreateByteField (BUFF, 0x02, DAT0) CreateByteField (BUFR, 0x00, OB11) CreateByteField (BUFR, 0x01, LEN1) CreateByteField (BUFR, 0x02, DAT1) /* Signal device (e.g. ON) */ BUFR = FLD0 = BUFF /* \M751.BUFF */ /* Invoke Write Quick transaction */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x00) } If ((DAT0 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, 0x00) } If ((OB11 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB11, 0x00) } If ((LEN1 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x00) } OB10 = 0x00 LEN0 = 0xFF DAT0 = 0x00 /* Signal device (e.g. OFF) */ BUFF = FLD0 /* Invoke Read Quick transaction */ /* \M751.FLD0 */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x00)) { /* Length is zero for Quick operations */ ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x00) } /* Note: Since LEN0 should be zero there's no need to check DAT0 */ } /* AttribSendReceive */ /* m752(CallChain) */ /* CallChain: String */ Method (M752, 1, Serialized) { Concatenate (Arg0, "-m752", Arg0) OperationRegion (SMBD, SMBus, 0x4200, 0x0100) Field (SMBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribSendReceive), FLD0, 8 } /* Virtual register at command value 0. */ /* Create the SMBus data buffer */ Name (BUFF, Buffer (0x22){}) /* Create SMBus data buffer as BUFF */ Name (BUFR, Buffer (0x22){}) /* Create SMBus result buffer */ CreateByteField (BUFF, 0x00, OB10) /* Status (Byte) */ CreateByteField (BUFF, 0x01, LEN0) /* Length (Byte) */ CreateByteField (BUFF, 0x02, DAT0) CreateByteField (BUFR, 0x00, OB11) CreateByteField (BUFR, 0x01, LEN1) CreateByteField (BUFR, 0x02, DAT1) /* Send the byte '0x16' to the device */ OB10 = 0x00 LEN0 = 0x01 DAT0 = 0x16 /* Save 0x16 into the data buffer */ BUFR = FLD0 = BUFF /* \M752.BUFF */ /* Invoke a Send Byte transaction */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x01) } If ((DAT0 != 0x16)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, 0x16) } If ((OB11 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB11, 0x00) } If ((LEN1 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x01) } If ((DAT1 != 0xA0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, 0xA0) } /* Receive a byte of data from the device */ BUFF = FLD0 /* Invoke a Receive Byte transaction */ /* \M752.FLD0 */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x01) } If ((DAT0 != 0xA0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, 0xA0) } } /* Read/Write Byte (SMBByte) */ /* m753(CallChain) */ /* CallChain: String */ Method (M753, 1, Serialized) { Concatenate (Arg0, "-m753", Arg0) OperationRegion (SMBD, SMBus, 0x4200, 0x0100) Field (SMBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribByte), FLD0, /* Virtual register at command value 0. */ 8, FLD1, /* Virtual register at command value 1. */ 8, FLD2, 8 } /* Virtual register at command value 2. */ /* Create the SMBus data buffer */ Name (BUFF, Buffer (0x22){}) /* Create SMBus data buffer as BUFF */ Name (BUFR, Buffer (0x22){}) /* Create SMBus result buffer */ CreateByteField (BUFF, 0x00, OB10) /* Status (Byte) */ CreateByteField (BUFF, 0x01, LEN0) /* Length (Byte) */ CreateByteField (BUFF, 0x02, DAT0) CreateByteField (BUFR, 0x00, OB11) CreateByteField (BUFR, 0x01, LEN1) CreateByteField (BUFR, 0x02, DAT1) /* Write the byte '0x16' to the device using command value 2 */ OB10 = 0x00 LEN0 = 0x01 DAT0 = 0x16 /* Save 0x16 into the data buffer */ BUFR = FLD2 = BUFF /* \M753.BUFF */ /* Invoke a Write Byte transaction */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x01) } If ((DAT0 != 0x16)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, 0x16) } If ((OB11 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB11, 0x00) } If ((LEN1 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x01) } If ((DAT1 != 0xA0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, 0xA0) } /* Read a byte of data from the device using command value 1 */ BUFF = FLD1 /* Invoke a Read Byte transaction */ /* \M753.FLD1 */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x01) } If ((DAT0 != 0xA0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, 0xA0) } } /* Read/Write Word (SMBWord) */ /* m754(CallChain) */ /* CallChain: String */ Method (M754, 1, Serialized) { Concatenate (Arg0, "-m754", Arg0) OperationRegion (SMBD, SMBus, 0x4200, 0x0100) Field (SMBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribWord), FLD0, /* Virtual register at command value 0. */ 8, FLD1, /* Virtual register at command value 1. */ 8, FLD2, 8 } /* Virtual register at command value 2. */ /* Create the SMBus data buffer */ Name (BUFF, Buffer (0x22){}) /* Create SMBus data buffer as BUFF */ Name (BUFR, Buffer (0x22){}) /* Create SMBus result buffer */ CreateByteField (BUFF, 0x00, OB10) /* Status (Byte) */ CreateByteField (BUFF, 0x01, LEN0) /* Length (Byte) */ CreateWordField (BUFF, 0x02, DAT0) CreateByteField (BUFR, 0x00, OB11) CreateByteField (BUFR, 0x01, LEN1) CreateWordField (BUFR, 0x02, DAT1) /* Write the word '0x5416' to the device using command value 2 */ OB10 = 0x00 LEN0 = 0x00 DAT0 = 0x5416 /* Save 0x5416 into the data buffer */ BUFR = FLD2 = BUFF /* \M754.BUFF */ /* Invoke a Write Word transaction */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x00) } If ((DAT0 != 0x5416)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, 0x5416) } If ((OB11 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB11, 0x00) } If ((LEN1 != 0x02)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x02) } If ((DAT1 != 0xA1A0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, 0xA1A0) } /* Read two bytes of data from the device using command value 1 */ BUFF = FLD1 /* Invoke a Read Word transaction */ /* \M754.FLD1 */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x02)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x02) } If ((DAT0 != 0xA1A0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, 0xA1A0) } } /* Read/Write Block (SMBBlock) */ /* m755(CallChain) */ /* CallChain: String */ Method (M755, 1, Serialized) { Concatenate (Arg0, "-m755", Arg0) OperationRegion (SMBD, SMBus, 0x4200, 0x0100) Field (SMBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribBlock), FLD0, /* Virtual register at command value 0. */ 8, FLD1, /* Virtual register at command value 1. */ 8, FLD2, 8 } /* Virtual register at command value 2. */ /* Create the SMBus data buffer */ Name (BUF1, Buffer (24){}) /* Create SMBus result buffer */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateField (BUF1, 0x10, 0x0080, DAT1) // Read block of data from the device using command value 0 BUF1 = FLD0 Printf ("AttribBlock, received: %o", BUF1) If ((STA1 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0x00) } // Perform write-then-read STA1 = 0x00 LEN1 = 16 DAT1 = Buffer() {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16} Printf ("AttribBlock, sent: %o", BUF1) BUF1 = FLD2 = BUF1 /* \M75C.BUF1 */ /* Invoke a Send Byte transaction */ Printf ("AttribBlock, received: %o", BUF1) } /* Word Process Call (SMBProcessCall) */ /* m756(CallChain) */ /* CallChain: String */ Method (M756, 1, Serialized) { Concatenate (Arg0, "-m756", Arg0) OperationRegion (SMBD, SMBus, 0x4200, 0x0100) Field (SMBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribProcessCall), FLD0, /* Virtual register at command value 0. */ 8, FLD1, /* Virtual register at command value 1. */ 8, FLD2, 8 } /* Virtual register at command value 2. */ /* Create the SMBus data buffer */ Name (BUFF, Buffer (0x22){}) /* Create SMBus data buffer as BUFF */ Name (BUFR, Buffer (0x22){}) /* Create SMBus result buffer */ CreateByteField (BUFF, 0x00, OB10) /* Status (Byte) */ CreateByteField (BUFF, 0x01, LEN0) /* Length (Byte) */ CreateWordField (BUFF, 0x02, DAT0) CreateByteField (BUFR, 0x00, OB11) CreateByteField (BUFR, 0x01, LEN1) CreateWordField (BUFR, 0x02, DAT1) /* Process Call with input value '0x5416' to the device using command value 1 */ OB10 = 0x00 LEN0 = 0x00 DAT0 = 0x5416 /* Save 0x5416 into the data buffer */ BUFR = FLD1 = BUFF /* \M756.BUFF */ /* Invoke a Process Call transaction */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x00) } If ((DAT0 != 0x5416)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, 0x16) } If ((OB11 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB11, 0x00) } If ((LEN1 != 0x02)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x02) } If ((DAT1 != 0xA1A0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, 0xA1A0) } } /* Block Process Call (SMBBlockProcessCall) */ /* m757(CallChain) */ /* CallChain: String */ Method (M757, 1, Serialized) { Concatenate (Arg0, "-m757", Arg0) OperationRegion (SMBD, SMBus, 0x4200, 0x0100) Field (SMBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribBlockProcessCall), FLD0, /* Virtual register at command value 0. */ 8, FLD1, 8 } /* Virtual register at command value 1. */ /* Create the SMBus data buffer */ Name (BUFF, Buffer (0x22){}) /* Create SMBus data buffer as BUFF */ Name (BUFR, Buffer (0x22){}) /* Create SMBus result buffer */ CreateByteField (BUFF, 0x00, OB10) /* Status (Byte) */ CreateByteField (BUFF, 0x01, LEN0) /* Length (Byte) */ CreateField (BUFF, 0x10, 0x0100, DAT0) CreateByteField (BUFR, 0x00, OB11) CreateByteField (BUFR, 0x01, LEN1) CreateField (BUFR, 0x10, 0x0100, DAT1) /* Process Call with input value "TEST" to the device using command value 1 */ OB10 = 0x00 LEN0 = 0x04 DAT0 = "TEST" /* Save 'TEST' into the data buffer */ BUFR = FLD1 = BUFF /* \M757.BUFF */ /* Invoke a Write Block transaction */ If ((OB10 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB10, 0x00) } If ((LEN0 != 0x04)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x04) } Local0 = Buffer (0x20) { "TEST" } If ((DAT0 != Local0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, Local0) } If ((OB11 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, OB11, 0x00) } If ((LEN1 != 0x20)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x20) } Local1 = Buffer (0x20) { /* 0000 */ 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, // ........ /* 0008 */ 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, // ........ /* 0010 */ 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, // ........ /* 0018 */ 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF // ........ } If ((DAT1 != Local1)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, Local1) } } /***** GenericSerialBus (ACPI 5.0) - similar to SMBUS **************************** */ Device (\GSB1) { } /* Check BufferAcc access for GenericSerialBus */ /* m740(CallChain) */ /* CallChain: String */ Method (M740, 1, NotSerialized) { Concatenate (Arg0, "-m740", Arg0) Debug = "TEST: m740, Check GenericSerialBus Region Fields (BufferAcc access)" /* * Examples from Acpi Spec (Using the GenericSerialBus Protocols) */ /* Read/Write Quick (AttribQuick) */ M758 (Arg0) /* Send/Receive Byte (AttribSendReceive) */ M759 (Arg0) /* Read/Write Byte (AttribByte) */ M75A (Arg0) /* Read/Write Word (AttribWord) */ M75B (Arg0) /* Read/Write Block (AttribBlock) */ M75C (Arg0) /* Word Process Call (AttribProcessCall) */ M75D (Arg0) /* Block Process Call (AttribBlockProcessCall) */ M75E (Arg0) /* Next 3 types are exclusive to the GenericSerialBus */ /* Read/Write N Bytes (AttribBytes) */ M75F (Arg0) /* Raw Read/Write N Bytes (AttribRawBytes) */ M760 (Arg0) /* Raw Process Call (AttribRawProcessBytes) */ M761 (Arg0) } /* Read/Write Quick (AttribQuick) */ /* m758(CallChain) */ /* CallChain: String */ Method (M758, 1, Serialized) { Concatenate (Arg0, "-m758", Arg0) OperationRegion (GSBD, GenericSerialBus, 0x4400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribQuick), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8 /* Virtual register at command value 0. */ } /* Create the GenericSerialBus data buffer */ Name (BUF0, Buffer (2){}) /* Create GenericSerialBus data buffer as BUF0 */ CreateByteField (BUF0, 0x00, STA0) /* Status (Byte) */ CreateByteField (BUF0, 0x01, LEN0) /* Length (Byte) */ /* Signal device (e.g. OFF) */ BUF0 = FLD0 /* \M758.BUF0 */ /* Invoke Read Quick transaction */ Printf ("AttribQuick, received: %o", BUF0) If ((STA0 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA0, 0x00) } /* Signal device (e.g. ON) */ LEN0 = 0 FLD0 = BUF0 /* Invoke Write Quick transaction */ Printf ("AttribQuick, sent: %o", BUF0) } /* AttribSendReceive */ /* m759(CallChain) */ /* CallChain: String */ Method (M759, 1, Serialized) { Concatenate (Arg0, "-m759", Arg0) OperationRegion (GSBD, GenericSerialBus, 0x5400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribSendReceive), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8 /* Virtual register at command value 0. */ } /* Create the GenericSerialBus data buffer */ Name (BUF0, Buffer (3){}) /* Create GenericSerialBus data buffer as BUF0 */ CreateByteField (BUF0, 0x00, STA0) /* Status (Byte) */ CreateByteField (BUF0, 0x01, LEN0) /* Length (Byte) */ CreateByteField (BUF0, 0x02, DAT0) Name (BUF1, Buffer (3){}) /* Create GenericSerialBus result buffer */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateByteField (BUF1, 0x02, DAT1) /* Receive a byte of data from the device */ BUF1 = FLD0 Printf ("AttribSendReceive, received: %o", BUF1) If ((STA1 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0x00) } If ((LEN1 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x01) } If ((DAT1 != 0xA0)) /* 0xA0 is from AcpiExec */ { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, 0xA0) } /* Send the byte '0x16' to the device */ STA0 = 0x00 LEN0 = 0x01 DAT0 = 0x16 /* Save 0x16 into the data buffer */ FLD0 = BUF0 /* \M759.BUF0 */ /* Invoke a Send Byte transaction */ Printf ("AttribSendReceive, sent: %o", BUF0) } /* Read/Write Byte (AttribByte) */ /* m75a(CallChain) */ /* CallChain: String */ Method (M75A, 1, Serialized) { Concatenate (Arg0, "-m75a", Arg0) OperationRegion (GSBD, GenericSerialBus, 0x6400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribByte), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8, /* Virtual register at command value 0. */ FLD1, 8, /* Virtual register at command value 1. */ FLD2, 8 /* Virtual register at command value 2. */ } /* Create the GenericSerialBus data buffer */ Name (BUF1, Buffer (3){}) /* Create GenericSerialBus result buffer */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateByteField (BUF1, 0x02, DAT1) /* Receive a byte of data from the device, command value 1 */ BUF1 = FLD1 Printf ("AttribByte, received: %o", BUF1) If ((STA1 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0x00) } If ((LEN1 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x01) } If ((DAT1 != 0xA0)) /* 0xA0 is from AcpiExec */ { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, 0xA0) } /* Send the byte '0x16' to the device, command value 2 */ STA1 = 0x00 LEN1 = 0x01 DAT1 = 0x16 /* Save 0x16 into the data buffer */ FLD2 = BUF1 /* \M75A.BUF1 */ /* Invoke a Send Byte transaction */ Printf ("AttribByte, sent: %o", BUF1) } /* Read/Write Word (AttribWord) */ /* m75b(CallChain) */ /* CallChain: String */ Method (M75B, 1, Serialized) { Concatenate (Arg0, "-m75b", Arg0) OperationRegion (GSBD, GenericSerialBus, 0x7400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribWord), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8, /* Virtual register at command value 0. */ FLD1, 8, /* Virtual register at command value 1. */ FLD2, 8 /* Virtual register at command value 2. */ } /* Create the GenericSerialBus data buffer */ Name (BUF1, Buffer (4){}) /* Create GenericSerialBus result buffer */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateWordField (BUF1, 0x02, DAT1) /* Receive a word of data from the device, command value 1 */ BUF1 = FLD1 Printf ("AttribWord, received: %o", BUF1) If ((STA1 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0x00) } If ((LEN1 != 0x02)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x02) } If ((DAT1 != 0xA1A0)) /* 0xA1A0 is from AcpiExec */ { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, 0xA1A0) } /* Send the word '0x5678' to the device, command value 2 */ STA1 = 0x00 LEN1 = 0x02 DAT1 = 0x5678 /* Save 0x16 into the data buffer */ FLD2 = BUF1 /* \M75B.BUF1 */ /* Invoke a Send Byte transaction */ Printf ("AttribWord, sent: %o", BUF1) } /* Read/Write Block (AttribBlock) */ /* m75c(CallChain) */ /* CallChain: String */ Method (M75C, 1, Serialized) { Concatenate (Arg0, "-m75c", Arg0) OperationRegion (GSBD, GenericSerialBus, 0x8400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribBlock), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8, /* Virtual register at command value 0. */ FLD1, 8, /* Virtual register at command value 1. */ FLD2, 8 /* Virtual register at command value 2. */ } /* Create the GenericSerialBus data buffer */ Name (BUF1, Buffer (24){}) /* Create GenericSerialBus result buffer */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateField (BUF1, 0x10, 0x0080, DAT1) // Read block of data from the device using command value 0 BUF1 = FLD0 Printf ("AttribBlock, received: %o", BUF1) If ((STA1 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0x00) } // Perform write-then-read STA1 = 0x00 LEN1 = 16 DAT1 = Buffer() {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16} Printf ("AttribBlock, sent: %o", BUF1) BUF1 = FLD2 = BUF1 /* \M75C.BUF1 */ /* Invoke a Send Byte transaction */ Printf ("AttribBlock, received: %o", BUF1) } /* Word Process Call (AttribProcessCall) */ /* m75d(CallChain) */ /* CallChain: String */ Method (M75D, 1, Serialized) { Concatenate (Arg0, "-m75d", Arg0) OperationRegion (GSBD, GenericSerialBus, 0x9400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribProcessCall), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8, /* Virtual register at command value 0. */ FLD1, 8, /* Virtual register at command value 1. */ FLD2, 8 /* Virtual register at command value 2. */ } /* Create the GenericSerialBus data buffer */ Name (BUF0, Buffer (4){}) /* Create GenericSerialBus data buffer as BUF0 */ CreateByteField (BUF0, 0x00, STA0) /* Status (Byte) */ CreateByteField (BUF0, 0x01, LEN0) /* Length (Byte) */ CreateWordField (BUF0, 0x02, DAT0) Name (BUF1, Buffer (0){}) /* Create GenericSerialBus result buffer */ /* Process Call with input value '0x5416' to the device using command value 1 */ STA0 = 0x00 LEN0 = 0x02 DAT0 = 0x5416 /* Save 0x5416 into the data buffer */ Printf ("AttribProcessCall, sent: %o", BUF0) BUF1 = FLD1 = BUF0 /* \M75D.BUF0 */ /* Invoke a Process Call transaction */ Printf ("AttribProcessCall, received: %o", BUF1) /* Now that BUF1 is valid, can create fields within it */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateWordField (BUF1, 0x02, DAT1) If ((STA1 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0x00) } } /* Block Process Call (AttribBlockProcessCall) */ /* m75e(CallChain) */ /* CallChain: String */ Method (M75E, 1, Serialized) { Concatenate (Arg0, "-m75e", Arg0) OperationRegion (GSBD, GenericSerialBus, 0xA400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { AccessAs (BufferAcc, AttribBlockProcessCall), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8, /* Virtual register at command value 0. */ FLD1, 8 /* Virtual register at command value 1. */ } /* Create the GenericSerialBus data buffer */ Name (BUF0, Buffer (8){}) /* Create GenericSerialBus data buffer as BUF0 */ CreateByteField (BUF0, 0x00, STA0) /* Status (Byte) */ CreateByteField (BUF0, 0x01, LEN0) /* Length (Byte) */ CreateField (BUF0, 0x10, 32, DAT0) Name (BUF1, Buffer (0x14){}) /* Create GenericSerialBus result buffer */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateField (BUF1, 0x10, 32, DAT1) /* Process Call with input value "TEST" to the device using command value 1 */ STA0 = 0x00 LEN0 = 0x04 DAT0 = "TEST" /* Save 'TEST' into the data buffer */ Printf ("AttribBlockProcessCall, sent: %o", BUF0) BUF1 = FLD1 = BUF0 /* \M75E.BUF0 */ /* Invoke a Write Block transaction */ Printf ("AttribBlockProcessCall, received: %o", BUF1) If ((STA1 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0x00) } If ((LEN1 != 0x20)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x20) } Local0 = Buffer (0x4) { 0x54, 0x45, 0x53, 0x54 //"TEST" } If ((DAT0 != Local0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, Local0) } } /* Read/Write N Bytes (AttribBytes) */ /* m75f(CallChain) */ /* CallChain: String */ Method (M75F, 1, Serialized) { Concatenate (Arg0, "-m75f", Arg0) OperationRegion (GSBD, GenericSerialBus, 0xB400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { /* * Note: AccessLength for AttribBytes here must at least 2 less than the * transfer buffer to account for the status and length bytes */ AccessAs (BufferAcc, AttribBytes (0x22)), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8, /* Virtual register at command value 0. */ FLD1, 8 /* Virtual register at command value 1. */ } /* Create the GenericSerialBus data buffer */ Name (BUF0, Buffer (0x22){}) /* Create GenericSerialBus data buffer as BUF0 */ CreateByteField (BUF0, 0x00, STA0) /* Status (Byte) */ CreateByteField (BUF0, 0x01, LEN0) /* Length (Byte) */ CreateField (BUF0, 0x10, 0x0100, DAT0) Name (BUF1, Buffer (0x22){}) /* Create GenericSerialBus result buffer */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateField (BUF1, 0x10, 0x0100, DAT1) /* Read buffer from FLD0 */ BUF0 = FLD0 Printf ("AttribBytes, received: %o", BUF0) If ((STA0 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA0, 0x00) } If ((LEN0 != 0x20)) /* Size of BUF0 */ { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x20) } /* WRITE then READ to FLD1 (Force READ by not using double store) */ FLD1 = BUF0 BUF1 = FLD1 Printf ("AttribBytes, sent: %o", BUF0) Printf ("AttribBytes, received: %o", BUF1) If ((STA1 != 0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0) } If ((LEN1 != 0x20)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x20) } Local1 = Buffer (0x20) { /* 0000 */ 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, // ........ /* 0008 */ 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, // ........ /* 0010 */ 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, // ........ /* 0018 */ 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF // ........ } If ((DAT0 != Local1)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, Local1) } If ((DAT0 != Local1)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, Local1) } } /* Raw Read/Write N Bytes (AttribRawBytes) */ /* m760(CallChain) */ /* CallChain: String */ Method (M760, 1, Serialized) { Concatenate (Arg0, "-m760", Arg0) OperationRegion (GSBD, GenericSerialBus, 0xB400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { /* * Note: AccessLength for AttribBytes here must at least 2 less than the * transfer buffer to account for the status and length bytes */ AccessAs (BufferAcc, AttribRawBytes (0x22)), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8, /* Virtual register at command value 0. */ FLD1, 8 /* Virtual register at command value 1. */ } /* Create the GenericSerialBus data buffer */ Name (BUF0, Buffer (0x22){}) /* Create GenericSerialBus data buffer as BUF0 */ CreateByteField (BUF0, 0x00, STA0) /* Status (Byte) */ CreateByteField (BUF0, 0x01, LEN0) /* Length (Byte) */ CreateField (BUF0, 0x10, 0x0100, DAT0) Name (BUF1, Buffer (0x22){}) /* Create GenericSerialBus result buffer */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateField (BUF1, 0x10, 0x0100, DAT1) /* Read buffer from FLD0 */ BUF0 = FLD0 Printf ("AttribRawBytes, received: %o", BUF0) If ((STA0 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA0, 0x00) } If ((LEN0 != 0x20)) /* Size of BUF0 */ { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN0, 0x20) } /* WRITE then READ to FLD1 (Force READ by not using double store) */ FLD1 = BUF0 BUF1 = FLD1 Printf ("AttribRawBytes, sent: %o", BUF0) Printf ("AttribRawBytes, received: %o", BUF1) If ((STA1 != 0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0) } If ((LEN1 != 0x20)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x20) } Local1 = Buffer (0x20) { /* 0000 */ 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, // ........ /* 0008 */ 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, // ........ /* 0010 */ 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, // ........ /* 0018 */ 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF // ........ } If ((DAT0 != Local1)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, Local1) } If ((DAT0 != Local1)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, Local1) } } /* Raw Process Call (AttribRawProcessBytes) */ /* m761(CallChain) */ /* CallChain: String */ Method (M761, 1, Serialized) { Concatenate (Arg0, "-m761", Arg0) OperationRegion (GSBD, GenericSerialBus, 0xB400, 0x0100) Field (GSBD, BufferAcc, NoLock, Preserve) { /* * Note: AccessLength for AttribBytes here must at least 2 less than the * transfer buffer to account for the status and length bytes */ AccessAs (BufferAcc, AttribRawProcessBytes (0x20)), /* A Connection is required */ Connection ( I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\GPI1", 0xEE, ResourceConsumer, , Exclusive, ) ), FLD0, 8, /* Virtual register at command value 0. */ FLD1, 8 /* Virtual register at command value 1. */ } /* Create the GenericSerialBus data buffers */ Name (BUF0, Buffer (0x22){}) /* Create GenericSerialBus data buffer as BUF0 */ CreateByteField (BUF0, 0x00, STA0) /* Status (Byte) */ CreateByteField (BUF0, 0x01, LEN0) /* Length (Byte) */ CreateWordField(BUF0, 0x02, CMD0) // Command (Bytes 2 and 3) CreateField (BUF0, 0x10, 0x0100, DAT0) Name (BUF1, Buffer (0x22){}) /* Create GenericSerialBus result buffer */ CreateByteField (BUF1, 0x00, STA1) CreateByteField (BUF1, 0x01, LEN1) CreateWordField(BUF1, 0x02, CMD1) // Command (Bytes 2 and 3) CreateField (BUF1, 0x10, 0x0100, DAT1) /* Process Call with input value "TEST" to the device using command value 1 */ STA0 = 0x00 LEN0 = 0x08 DAT0 = "TEST" /* Save 'TEST' into the data buffer */ BUF1 = FLD1 = BUF0 /* \M761.BUF0 */ /* Invoke a Write Block transaction */ Printf ("AttribRawProcessBytes, sent: %o", BUF0) Printf ("AttribRawProcessBytes, received: %o", BUF1) If ((STA1 != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STA1, 0x00) } If ((LEN1 != 0x20)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LEN1, 0x20) } Local0 = Buffer (0x20) { "TEST" } If ((DAT0 != Local0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT0, Local0) } Local1 = Buffer (0x20) { /* 0000 */ 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, // ........ /* 0008 */ 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, // ........ /* 0010 */ 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, // ........ /* 0018 */ 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF // ........ } If ((DAT1 != Local1)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DAT1, Local1) } } /***** GeneralPurposeIo (ACPI 5.0) ************************************** */ /* */ /* Test the use of Connection() operator and simple ByteAcc */ /* */ Method (M764, 1, Serialized) { Concatenate (Arg0, "-m764", Arg0) Debug = "TEST: m764, Check GeneralPurposeIo Region Fields (ByteAcc access required)" /*...Other required stuff for this device */ Name (GMOD, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0000, 0x0000, IoRestrictionNone, "\\_SB.GPI2", 0x00, ResourceConsumer, , ) { 0x000A, 0x000C } }) /* Offset is ignored (From ACPI spec) */ OperationRegion (GPO2, GeneralPurposeIo, 0x00, 0x40) Method (_REG, 2, NotSerialized) // _REG: Region Availability { } Name (_DEP, Package (0x01) // _DEP: Dependencies { \_SB }) /* Update rule must be Preserve */ Field (GPO2, ByteAcc, NoLock, Preserve) { Connection (GMOD), /* Reuse an existing connection (defined above) */ MODE, /* Power Mode */ 2, Connection ( GpioIo (Exclusive, PullUp, 0x0000, 0x0000, IoRestrictionNone, "\\_SB.GPI2", 0x00, ResourceConsumer, , ) { 0x0007 } ), STAT, /* e.g. Status signal from the device */ 1, Connection ( GpioIo (Exclusive, PullUp, 0x0000, 0x0000, IoRestrictionNone, "\\_SB.GPI2", 0x00, ResourceConsumer, , ) { 0x0009 } ), RSET, /* e.g. Reset signal to the device */ 1, Offset (0x20), BUFF, 128 } MODE = 0x03 Local0 = MODE /* \M764.MODE */ If ((Local0 != 0x03)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, 0x03) } MODE = 0x01 Local0 = MODE /* \M764.MODE */ If ((Local0 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, 0x01) } STAT = 0x01 Local0 = STAT /* \M764.STAT */ If ((Local0 != 0x01)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, 0x01) } // August 2018: // Use of Buffer objects with GeneralPurposeIo is disallowed, since it doesn't // really make sense. Test removed. // // Name (TBUF, Buffer (0x10) // { // 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, // 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF // }) // BUFF = TBUF // Local0 = BUFF // If ((Local0 != TBUF)) // { // ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, TBUF) // } } /***** IPMI (ACPI 4.0) - bidirectional buffer **************************** */ Method (M768, 1, Serialized) { Concatenate (Arg0, "-m768", Arg0) Debug = "TEST: m768, Check IPMI Region Fields (BufferAcc access)" OperationRegion (POWR, IPMI, 0x3000, 0x0100) /* Power network function */ Field (POWR, BufferAcc, NoLock, Preserve) { Offset (0xC1), SPWL, /* Set power limit [command value 0xC1] */ 8, GPWL, /* Get power limit [command value 0xC2] */ 8, Offset (0xC8), GPMM, /* Get power meter measurement [command value 0xC8] */ 8 } /* Create the IPMI data buffer - ALWAYS 66 bytes */ Name (BUFF, Buffer (0x42){}) /* Create IPMI data buffer as BUFF */ CreateByteField (BUFF, 0x00, STAT) /* STAT = Status (Byte) */ CreateByteField (BUFF, 0x01, LENG) /* LENG = Length (Byte) */ CreateByteField (BUFF, 0x02, MODE) /* MODE = Mode (Byte) */ CreateByteField (BUFF, 0x03, RESV) /* RESV = Reserved (Byte) */ LENG = 0x02 /* Request message is 2 bytes long */ MODE = 0x01 /* Set Mode to 1 */ BUFF = GPMM = BUFF /* \M768.BUFF */ /* Write the request into the GPMM command, */ /* then read the results */ CreateByteField (BUFF, 0x02, CMPC) /* CMPC = Completion code (Byte) */ CreateWordField (BUFF, 0x03, RSVD) /* Reserved */ /* Buffer expected back from ACPIEXEC utility */ Local1 = Buffer (0x42) { /* 0000 */ 0x00, 0x40, 0x00, 0x00, 0x04, 0x05, 0x06, 0x07, // .@...... /* 0008 */ 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, // ........ /* 0010 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, // ........ /* 0018 */ 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, // ........ /* 0020 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, // !"#$%&' /* 0028 */ 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, // ()*+,-./ /* 0030 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, // 01234567 /* 0038 */ 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, // 89:;<=>? /* 0040 */ 0x40, 0x41 // @A } If ((STAT != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STAT, 0x00) } If ((CMPC != 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, CMPC, 0x00) } If ((BUFF != Local1)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local1, BUFF) } } /* Splitting of Fields */ /* m742(CallChain) */ Method (M742, 1, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, 0x0257) Concatenate (Arg0, "-m742", Arg0) Debug = "TEST: m742, Check Splitting of Fields" M720 (Arg0, OPR0) M721 (Arg0, OPR0) M722 (Arg0, OPR0) M723 (Arg0, OPR0) M724 (Arg0, OPR0) M725 (Arg0, OPR0) M726 (Arg0, OPR0) M727 (Arg0, OPR0) M728 (Arg0, OPR0) M729 (Arg0, OPR0) } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 0-bit offset. */ /* m720(CallChain, OpRegion) */ Method (M720, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m720", Arg0) CopyObject (Arg1, OPRM) /* \M720.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { Offset (0x00), FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { Offset (0x00), FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { Offset (0x00), FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { Offset (0x00), FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M720.FU10 */ Local1 [0x01] = FU11 /* \M720.FU11 */ Local1 [0x02] = FU12 /* \M720.FU12 */ Local1 [0x03] = FU20 /* \M720.FU20 */ Local1 [0x04] = FU21 /* \M720.FU21 */ Local1 [0x05] = FU30 /* \M720.FU30 */ Local1 [0x06] = FU31 /* \M720.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 1-bit offset. */ /* m721(CallChain, OpRegion) */ Method (M721, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m721", Arg0) CopyObject (Arg1, OPRM) /* \M721.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { , 1, FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 1, FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 1, FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 1, FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M721.FU10 */ Local1 [0x01] = FU11 /* \M721.FU11 */ Local1 [0x02] = FU12 /* \M721.FU12 */ Local1 [0x03] = FU20 /* \M721.FU20 */ Local1 [0x04] = FU21 /* \M721.FU21 */ Local1 [0x05] = FU30 /* \M721.FU30 */ Local1 [0x06] = FU31 /* \M721.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 2-bit offset. */ /* m722(CallChain, OpRegion) */ Method (M722, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m722", Arg0) CopyObject (Arg1, OPRM) /* \M722.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { , 2, FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 2, FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 2, FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 2, FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M722.FU10 */ Local1 [0x01] = FU11 /* \M722.FU11 */ Local1 [0x02] = FU12 /* \M722.FU12 */ Local1 [0x03] = FU20 /* \M722.FU20 */ Local1 [0x04] = FU21 /* \M722.FU21 */ Local1 [0x05] = FU30 /* \M722.FU30 */ Local1 [0x06] = FU31 /* \M722.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 3-bit offset. */ /* m723(CallChain, OpRegion) */ Method (M723, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m723", Arg0) CopyObject (Arg1, OPRM) /* \M723.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { , 3, FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 3, FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 3, FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 3, FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M723.FU10 */ Local1 [0x01] = FU11 /* \M723.FU11 */ Local1 [0x02] = FU12 /* \M723.FU12 */ Local1 [0x03] = FU20 /* \M723.FU20 */ Local1 [0x04] = FU21 /* \M723.FU21 */ Local1 [0x05] = FU30 /* \M723.FU30 */ Local1 [0x06] = FU31 /* \M723.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 4-bit offset. */ /* m724(CallChain, OpRegion) */ Method (M724, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m724", Arg0) CopyObject (Arg1, OPRM) /* \M724.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { , 4, FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 4, FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 4, FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 4, FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M724.FU10 */ Local1 [0x01] = FU11 /* \M724.FU11 */ Local1 [0x02] = FU12 /* \M724.FU12 */ Local1 [0x03] = FU20 /* \M724.FU20 */ Local1 [0x04] = FU21 /* \M724.FU21 */ Local1 [0x05] = FU30 /* \M724.FU30 */ Local1 [0x06] = FU31 /* \M724.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 5-bit offset. */ /* m725(CallChain, OpRegion) */ Method (M725, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m725", Arg0) CopyObject (Arg1, OPRM) /* \M725.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { , 5, FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 5, FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 5, FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 5, FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M725.FU10 */ Local1 [0x01] = FU11 /* \M725.FU11 */ Local1 [0x02] = FU12 /* \M725.FU12 */ Local1 [0x03] = FU20 /* \M725.FU20 */ Local1 [0x04] = FU21 /* \M725.FU21 */ Local1 [0x05] = FU30 /* \M725.FU30 */ Local1 [0x06] = FU31 /* \M725.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 6-bit offset. */ /* m726(CallChain, OpRegion) */ Method (M726, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m726", Arg0) CopyObject (Arg1, OPRM) /* \M726.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { , 6, FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 6, FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 6, FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 6, FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M726.FU10 */ Local1 [0x01] = FU11 /* \M726.FU11 */ Local1 [0x02] = FU12 /* \M726.FU12 */ Local1 [0x03] = FU20 /* \M726.FU20 */ Local1 [0x04] = FU21 /* \M726.FU21 */ Local1 [0x05] = FU30 /* \M726.FU30 */ Local1 [0x06] = FU31 /* \M726.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 7-bit offset. */ /* m727(CallChain, OpRegion) */ Method (M727, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m727", Arg0) CopyObject (Arg1, OPRM) /* \M727.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { , 7, FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 7, FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 7, FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 7, FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M727.FU10 */ Local1 [0x01] = FU11 /* \M727.FU11 */ Local1 [0x02] = FU12 /* \M727.FU12 */ Local1 [0x03] = FU20 /* \M727.FU20 */ Local1 [0x04] = FU21 /* \M727.FU21 */ Local1 [0x05] = FU30 /* \M727.FU30 */ Local1 [0x06] = FU31 /* \M727.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 8-bit offset. */ /* m728(CallChain, OpRegion) */ Method (M728, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m728", Arg0) CopyObject (Arg1, OPRM) /* \M728.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { Offset (0x01), FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { Offset (0x01), FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { Offset (0x01), FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { Offset (0x01), FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M728.FU10 */ Local1 [0x01] = FU11 /* \M728.FU11 */ Local1 [0x02] = FU12 /* \M728.FU12 */ Local1 [0x03] = FU20 /* \M728.FU20 */ Local1 [0x04] = FU21 /* \M728.FU21 */ Local1 [0x05] = FU30 /* \M728.FU30 */ Local1 [0x06] = FU31 /* \M728.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Create Region Fields that spans the same bits */ /* and check possible inconsistence, 2046-bit offset. */ /* m729(CallChain, OpRegion) */ Method (M729, 2, Serialized) { OperationRegion (OPRM, 0xFF, 0x00, 0x1000) Concatenate (Arg0, "-m729", Arg0) CopyObject (Arg1, OPRM) /* \M729.OPRM */ Field (OPRM, ByteAcc, NoLock, Preserve) { , 2046, FU00, 3 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 2046, FU10, 1, FU11, 1, FU12, 1 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 2046, FU20, 1, FU21, 2 } Field (OPRM, ByteAcc, NoLock, Preserve) { , 2046, FU30, 2, FU31, 1 } Local0 = 0x08 Local1 = Package (0x07) { FU10, FU11, FU12, FU20, FU21, FU30, FU31 } While (Local0) { Local0-- FU00 = Local0 If (Y118){} Else { Local1 [0x00] = FU10 /* \M729.FU10 */ Local1 [0x01] = FU11 /* \M729.FU11 */ Local1 [0x02] = FU12 /* \M729.FU12 */ Local1 [0x03] = FU20 /* \M729.FU20 */ Local1 [0x04] = FU21 /* \M729.FU21 */ Local1 [0x05] = FU30 /* \M729.FU30 */ Local1 [0x06] = FU31 /* \M729.FU31 */ } M72A (Arg0, Local0, Local1) } } /* Supports bunch of m720-m729 methods */ /* checking splitting fields */ /* m72a(CallChain, CheckInt, FieldsPkg) */ Method (M72A, 3, NotSerialized) { Concatenate (Arg0, "-m72a", Arg0) Local3 = Arg1 Local0 = ((Local3 >> 0x00) & 0x01) Local1 = ((Local3 >> 0x01) & 0x01) Local2 = ((Local3 >> 0x02) & 0x01) /* 1-1-1 */ Local4 = DerefOf (Arg2 [0x00]) If ((Local4 != Local0)) { ERR (Arg0, Z143, __LINE__, Z143, Local3, Local4, Local0) } Local4 = DerefOf (Arg2 [0x01]) If ((Local4 != Local1)) { ERR (Arg0, Z143, __LINE__, Z143, Local3, Local4, Local1) } Local4 = DerefOf (Arg2 [0x02]) If ((Local4 != Local2)) { ERR (Arg0, Z143, __LINE__, Z143, Local3, Local4, Local2) } /* 1-2 */ Local4 = DerefOf (Arg2 [0x03]) If ((Local4 != Local0)) { ERR (Arg0, Z143, __LINE__, Z143, Local3, Local4, Local0) } Local4 = DerefOf (Arg2 [0x04]) Local5 = (Local1 | (Local2 << 0x01)) If ((Local4 != Local5)) { ERR (Arg0, Z143, __LINE__, Z143, Local3, Local4, Local5) } /* 2-1 */ Local4 = DerefOf (Arg2 [0x05]) Local5 = (Local0 | (Local1 << 0x01)) If ((Local4 != Local5)) { ERR (Arg0, Z143, __LINE__, Z143, Local3, Local4, Local5) } Local4 = DerefOf (Arg2 [0x06]) If ((Local4 != Local2)) { ERR (Arg0, Z143, __LINE__, Z143, Local3, Local4, Local2) } } Method (M72F, 4, Serialized) { Concatenate (Arg0, "-m72f", Arg0) /* For loop 0 */ Name (LPN0, 0x00) Name (LPC0, 0x00) /* For loop 1 */ Name (LPN1, 0x00) Name (LPC1, 0x00) /* For loop 2 */ Name (LPN2, 0x00) Name (LPC2, 0x00) /* Index of offset */ Name (IB00, 0x00) /* Number of offsets */ Name (NB00, 0x00) LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { printf ("LPN0: %o\n", LPN0) /* Operands */ Local6 = (LPC0 * 0x05) IB00 = DerefOf (Arg3 [Local6]) Local6++ LPN1 = DerefOf (Arg3 [Local6]) Local6++ Local0 = DerefOf (Arg3 [Local6]) Local6++ Local1 = DerefOf (Arg3 [Local6]) Local6++ Local2 = DerefOf (Arg3 [Local6]) LPC1 = 0x00 While (LPN1) { printf ("LPN1: %o\n", LPN1) NB00 = Local0 LPN2 = Local1 LPC2 = 0x00 Local6 = DerefOf (PFUO [IB00]) While (LPN2) { printf ("LPN2: %o\n", LPN2) Local7 = DerefOf (PFUL [NB00]) /* Integer source */ printf ("BINT: %o %o %o %o\n", Arg2, Local6, Local7, Local2) M72E (Concatenate (Arg0, "-BInt"), Arg2, Local6, Local7, Local2, 0x00) If ((Local7 > 0x08)) { /* Buffer source, shorter than field */ Local4 = ((Local7 - 0x01) / 0x08) M72E (Concatenate (Arg0, "-BShort"), Arg2, Local6, Local7, Local2, Local4) } Divide (Local7, 0x08, Local5, Local4) If (Local5) { /* Buffer source, longer than field, the same last byte */ M72E (Concatenate (Arg0, "-BLast"), Arg2, Local6, Local7, Local2, (Local4 + 0x01 )) } Else { /* Buffer source, equal to field in length */ M72E (Concatenate (Arg0, "-BEqual"), Arg2, Local6, Local7, Local2, Local4) } /* Buffer source, one byte longer than field */ If (Local5) { M72E (Concatenate (Arg0, "-BLong"), Arg2, Local6, Local7, Local2, (Local4 + 0x02 )) } Else { M72E (Concatenate (Arg0, "-BLong"), Arg2, Local6, Local7, Local2, (Local4 + 0x01 )) } NB00++ LPN2-- LPC2++ } IB00++ LPN1-- LPC1++ } LPC0++ LPN0-- } } /* , */ /* , */ /* , */ /* , */ /* : */ /* */ /* */ /* */ /* 0 - AnyAcc, 1 - ByteAcc, 2 - WordAcc, */ /* 3 - DWordAcc, 4 - QWordAcc, 5 - BufferAcc */ /* */ /* 0 - Preserve, 1 - WriteAsOnes, 2 - WriteAsZeros */ /* */ /* 0 - Lock, 1 - NoLock */ /* */ /* Opcodes of size: */ /* 0 - Integer */ /* <=256 - Buffer */ /* >256 - String (size-256) */ Method (M72E, 6, Serialized) { Name (PR00, 0x00) /* For loop 1 */ Name (LPN1, 0x00) Name (LPC1, 0x00) /* For loop 2 */ Name (LPN2, 0x00) Name (LPC2, 0x00) /* byte size of field */ Name (BSF0, 0x00) /* byte size of region affected by field */ Name (BSR0, 0x00) /* index of the first byte of field in the region */ Name (FB00, 0x00) /* index of the last byte of field in the region */ Name (LB00, 0x00) Concatenate (Arg0, "-m72e", Arg0) /* Num of bits have to be non-zero */ If ((Arg3 == 0x00)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (Ones) } BSR0 = MBS0 (Arg2, Arg3) /* ========================================= */ /* Prepare the buffer for filling the ground */ /* ========================================= */ M72C (DerefOf (Arg4 [0x00]), BRG0) /* ========================================================== */ /* Prepare the buffer for filling the field (over the ground) */ /* ========================================================== */ M72C (DerefOf (Arg4 [0x01]), BRF0) /* ====================================================== */ /* Prepare the benchmark buffer for Field COMPARISON with */ /* Result in Local6 */ /* ====================================================== */ /* lpN1 - number of bytes minus one */ Local0 = Arg3 Local0-- Divide (Local0, 0x08, Local7, LPN1) /* \M72E.LPN1 */ Divide (Arg3, 0x08, Local7, Local0) BSF0 = LPN1 /* \M72E.LPN1 */ BSF0++ Local6 = Buffer (BSF0){} If (Arg5) { Local5 = Arg5 } ElseIf (F64) { Local5 = 0x08 } Else { Local5 = 0x04 } If (((Local5 * 0x08) < Arg3)) { LPN1 = Local5 } Else { Local0 = DerefOf (BRF0 [LPN1]) If (Local7) { Local1 = (0x08 - Local7) Local2 = (Local0 << Local1) Local3 = (Local2 & 0xFF) Local0 = (Local3 >> Local1) } Local6 [LPN1] = Local0 } Local4 = DerefOf (Arg4 [0x02]) /* Access Type */ Local5 = DerefOf (Arg4 [0x03]) /* Update Rule */ LPC1 = 0x00 While (LPN1) { Local0 = DerefOf (BRF0 [LPC1]) Local6 [LPC1] = Local0 LPN1-- LPC1++ } /* ================================================ */ /* Prepare the benchmark buffer for comparison with */ /* ================================================ */ BRB0 = BRG0 /* \BRG0 */ Divide (Arg2, 0x08, Local1, FB00) /* \M72E.FB00 */ Local2 = DerefOf (BRB0 [FB00]) LB00 = BSR0 /* \M72E.BSR0 */ LB00-- Local3 = DerefOf (BRB0 [LB00]) /* Take into account Update Rule */ If (Local5) { /* Update Rule filler: 0xff or 0 */ Local7 = (0xFF * (0x02 - Local5)) /* Take into account Access Type */ If (((Local4 > 0x01) && (Local4 < 0x05))) { /* Access Width */ Local2 = (0x01 << (Local4 - 0x01)) /* Number of bytes touched by Access BEFORE field */ Divide (FB00, Local2, Local2) /* Apply Rule */ Local3 = FB00 /* \M72E.FB00 */ While (Local2) { Local2-- Local3-- BRB0 [Local3] = Local7 } /* Number of bytes touched by Access AFTER field */ Local2 = (0x01 << (Local4 - 0x01)) Divide (BSR0, Local2, Local3) If (Local3) { Local2 -= Local3 /* Apply Rule */ Local3 = LB00 /* \M72E.LB00 */ While (Local2) { Local2-- Local3++ If ((Local3 == RS00)) { Break } BRB0 [Local3] = Local7 } } } Local2 = Local7 Local3 = Local7 } Local0 = SFT1 (Local6, Local1, Arg3, Local2, Local3) Local2 = FB00 /* \M72E.FB00 */ LPN2 = SizeOf (Local0) LPC2 = 0x00 While (LPN2) { Local1 = DerefOf (Local0 [LPC2]) BRB0 [Local2] = Local1 Local2++ LPN2-- LPC2++ } If (((Arg3 < 0x21) || (F64 && (Arg3 < 0x41)))) { ToInteger (Local6, Local6) } Switch (ToString (Mid (DerefOf (Arg4 [0x05]), 0x01, 0x03), Ones )) { Case ("730") { /* (ByteAcc, NoLock, Preserve) */ M730 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("731") { /* (ByteAcc, NoLock, WriteAsOnes) */ M731 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("732") { /* (ByteAcc, NoLock, WriteAsZeros) */ M732 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("733") { /* (WordAcc, NoLock, Preserve) */ M733 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("734") { /* (WordAcc, NoLock, WriteAsOnes) */ M734 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("735") { /* (WordAcc, NoLock, WriteAsZeros) */ M735 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("736") { /* (DWordAcc, NoLock, Preserve) */ M736 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("737") { /* (DWordAcc, NoLock, WriteAsOnes) */ M737 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("738") { /* (DWordAcc, NoLock, WriteAsZeros) */ M738 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("739") { /* (QWordAcc, NoLock, Preserve) */ M739 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("73a") { /* (QWordAcc, NoLock, WriteAsOnes) */ M73A (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("73b") { /* (QWordAcc, NoLock, WriteAsZeros) */ M73B (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("73c") { /* (AnyAcc, NoLock, Preserve) */ M73C (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("73d") { /* (AnyAcc, NoLock, WriteAsOnes) */ M73D (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("73e") { /* (AnyAcc, Lock, WriteAsZeros) */ M73E (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("790") { /* IndexFields (ByteAcc, NoLock, Preserve) */ M790 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("791") { /* IndexFields (WordAcc, NoLock, WriteAsOnes) */ M791 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("792") { /* IndexFields (DWordAcc, NoLock, WriteAsZeros) */ M792 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("793") { /* IndexFields (QWordAcc, NoLock, Preserve) */ M793 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("794") { /* IndexFields (AnyAcc, Lock, Preserve) */ M794 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("7d0") { /* BankFields (ByteAcc, NoLock, Preserve) */ M7D0 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("7d1") { /* BankFields (WordAcc, NoLock, WriteAsOnes) */ M7D1 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("7d2") { /* BankFields (DWordAcc, NoLock, WriteAsZeros) */ M7D2 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("7d3") { /* BankFields (QWordAcc, NoLock, Preserve) */ M7D3 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Case ("7d4") { /* BankFields (AnyAcc, Lock, Preserve) */ M7D4 (Arg0, Arg1, Arg2, Arg3, Arg5, Local6) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local4, Local5) Return (Ones) } } Return (Zero) } /* Create Region Field Unit */ /* (ByteAcc, NoLock, Preserve) */ /* */ /* , */ /* , */ /* , */ /* , */ /* */ /* Opcodes of size: */ /* 0 - Integer */ /* <=256 - Buffer */ /* >256 - String (size-256) */ /* */ Method (M730, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m730", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (ByteAcc, NoLock, WriteAsOnes) */ Method (M731, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m731", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (ByteAcc, NoLock, WriteAsZeros) */ Method (M732, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m732", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (WordAcc, NoLock, Preserve) */ Method (M733, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m733", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (WordAcc, NoLock, WriteAsOnes) */ Method (M734, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m734", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (WordAcc, NoLock, WriteAsZeros) */ Method (M735, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m735", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, WordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (DWordAcc, NoLock, Preserve) */ Method (M736, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m736", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (DWordAcc, NoLock, WriteAsOnes) */ Method (M737, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m737", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (DWordAcc, NoLock, WriteAsZeros) */ Method (M738, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m738", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, DWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (QWordAcc, NoLock, Preserve) */ Method (M739, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m739", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (QWordAcc, NoLock, WriteAsOnes) */ Method (M73A, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m73a", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (QWordAcc, NoLock, WriteAsZeros) */ Method (M73B, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m73b", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, QWordAcc, NoLock, WriteAsZeros) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (AnyAcc, NoLock, Preserve) */ Method (M73C, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m73c", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, Preserve) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (AnyAcc, NoLock, WriteAsOnes) */ Method (M73D, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m73d", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, AnyAcc, NoLock, WriteAsOnes) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Create Region Field Unit */ /* (AnyAcc, Lock, WriteAsZeros) */ Method (M73E, 6, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, RS00) Field (OPR0, ByteAcc, Lock, Preserve) { G001, 2048 } Concatenate (Arg0, "-m73e", Arg0) Switch (ToInteger (Arg2)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F000, 1 } Local3 = RefOf (F000) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F001, 6 } Local3 = RefOf (F001) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F002, 7 } Local3 = RefOf (F002) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F003, 8 } Local3 = RefOf (F003) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F004, 9 } Local3 = RefOf (F004) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F005, 31 } Local3 = RefOf (F005) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F006, 32 } Local3 = RefOf (F006) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F007, 33 } Local3 = RefOf (F007) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F008, 63 } Local3 = RefOf (F008) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F009, 64 } Local3 = RefOf (F009) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F00A, 65 } Local3 = RefOf (F00A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F00B, 69 } Local3 = RefOf (F00B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F00C, 129 } Local3 = RefOf (F00C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F00D, 256 } Local3 = RefOf (F00D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F00E, 1023 } Local3 = RefOf (F00E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), F00F, 1983 } Local3 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F010, 1 } Local3 = RefOf (F010) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F011, 6 } Local3 = RefOf (F011) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F012, 7 } Local3 = RefOf (F012) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F013, 8 } Local3 = RefOf (F013) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F014, 9 } Local3 = RefOf (F014) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F015, 31 } Local3 = RefOf (F015) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F016, 32 } Local3 = RefOf (F016) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F017, 33 } Local3 = RefOf (F017) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F018, 63 } Local3 = RefOf (F018) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F019, 64 } Local3 = RefOf (F019) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F01A, 65 } Local3 = RefOf (F01A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F01B, 69 } Local3 = RefOf (F01B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F01C, 129 } Local3 = RefOf (F01C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F01D, 256 } Local3 = RefOf (F01D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F01E, 1023 } Local3 = RefOf (F01E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 1, F01F, 1983 } Local3 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F020, 1 } Local3 = RefOf (F020) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F021, 6 } Local3 = RefOf (F021) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F022, 7 } Local3 = RefOf (F022) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F023, 8 } Local3 = RefOf (F023) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F024, 9 } Local3 = RefOf (F024) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F025, 31 } Local3 = RefOf (F025) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F026, 32 } Local3 = RefOf (F026) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F027, 33 } Local3 = RefOf (F027) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F028, 63 } Local3 = RefOf (F028) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F029, 64 } Local3 = RefOf (F029) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F02A, 65 } Local3 = RefOf (F02A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F02B, 69 } Local3 = RefOf (F02B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F02C, 129 } Local3 = RefOf (F02C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F02D, 256 } Local3 = RefOf (F02D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F02E, 1023 } Local3 = RefOf (F02E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x00), , 2, F02F, 1983 } Local3 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F030, 1 } Local3 = RefOf (F030) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F031, 6 } Local3 = RefOf (F031) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F032, 7 } Local3 = RefOf (F032) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F033, 8 } Local3 = RefOf (F033) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F034, 9 } Local3 = RefOf (F034) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F035, 31 } Local3 = RefOf (F035) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F036, 32 } Local3 = RefOf (F036) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F037, 33 } Local3 = RefOf (F037) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F038, 63 } Local3 = RefOf (F038) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F039, 64 } Local3 = RefOf (F039) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F03A, 65 } Local3 = RefOf (F03A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F03B, 69 } Local3 = RefOf (F03B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F03C, 129 } Local3 = RefOf (F03C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F03D, 256 } Local3 = RefOf (F03D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F03E, 1023 } Local3 = RefOf (F03E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 3, F03F, 1983 } Local3 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F040, 1 } Local3 = RefOf (F040) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F041, 6 } Local3 = RefOf (F041) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F042, 7 } Local3 = RefOf (F042) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F043, 8 } Local3 = RefOf (F043) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F044, 9 } Local3 = RefOf (F044) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F045, 31 } Local3 = RefOf (F045) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F046, 32 } Local3 = RefOf (F046) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F047, 33 } Local3 = RefOf (F047) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F048, 63 } Local3 = RefOf (F048) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F049, 64 } Local3 = RefOf (F049) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F04A, 65 } Local3 = RefOf (F04A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F04B, 69 } Local3 = RefOf (F04B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F04C, 129 } Local3 = RefOf (F04C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F04D, 256 } Local3 = RefOf (F04D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F04E, 1023 } Local3 = RefOf (F04E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 4, F04F, 1983 } Local3 = RefOf (F04F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F050, 1 } Local3 = RefOf (F050) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F051, 6 } Local3 = RefOf (F051) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F052, 7 } Local3 = RefOf (F052) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F053, 8 } Local3 = RefOf (F053) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F054, 9 } Local3 = RefOf (F054) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F055, 31 } Local3 = RefOf (F055) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F056, 32 } Local3 = RefOf (F056) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F057, 33 } Local3 = RefOf (F057) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F058, 63 } Local3 = RefOf (F058) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F059, 64 } Local3 = RefOf (F059) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F05A, 65 } Local3 = RefOf (F05A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F05B, 69 } Local3 = RefOf (F05B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F05C, 129 } Local3 = RefOf (F05C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F05D, 256 } Local3 = RefOf (F05D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F05E, 1023 } Local3 = RefOf (F05E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 5, F05F, 1983 } Local3 = RefOf (F05F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x06) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F060, 1 } Local3 = RefOf (F060) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F061, 6 } Local3 = RefOf (F061) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F062, 7 } Local3 = RefOf (F062) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F063, 8 } Local3 = RefOf (F063) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F064, 9 } Local3 = RefOf (F064) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F065, 31 } Local3 = RefOf (F065) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F066, 32 } Local3 = RefOf (F066) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F067, 33 } Local3 = RefOf (F067) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F068, 63 } Local3 = RefOf (F068) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F069, 64 } Local3 = RefOf (F069) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F06A, 65 } Local3 = RefOf (F06A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F06B, 69 } Local3 = RefOf (F06B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F06C, 129 } Local3 = RefOf (F06C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F06D, 256 } Local3 = RefOf (F06D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F06E, 1023 } Local3 = RefOf (F06E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 6, F06F, 1983 } Local3 = RefOf (F06F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x07) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F070, 1 } Local3 = RefOf (F070) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F071, 6 } Local3 = RefOf (F071) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F072, 7 } Local3 = RefOf (F072) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F073, 8 } Local3 = RefOf (F073) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F074, 9 } Local3 = RefOf (F074) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F075, 31 } Local3 = RefOf (F075) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F076, 32 } Local3 = RefOf (F076) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F077, 33 } Local3 = RefOf (F077) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F078, 63 } Local3 = RefOf (F078) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F079, 64 } Local3 = RefOf (F079) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F07A, 65 } Local3 = RefOf (F07A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F07B, 69 } Local3 = RefOf (F07B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F07C, 129 } Local3 = RefOf (F07C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F07D, 256 } Local3 = RefOf (F07D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F07E, 1023 } Local3 = RefOf (F07E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 7, F07F, 1983 } Local3 = RefOf (F07F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x08) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F080, 1 } Local3 = RefOf (F080) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F081, 6 } Local3 = RefOf (F081) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F082, 7 } Local3 = RefOf (F082) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F083, 8 } Local3 = RefOf (F083) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F084, 9 } Local3 = RefOf (F084) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F085, 31 } Local3 = RefOf (F085) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F086, 32 } Local3 = RefOf (F086) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F087, 33 } Local3 = RefOf (F087) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F088, 63 } Local3 = RefOf (F088) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F089, 64 } Local3 = RefOf (F089) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F08A, 65 } Local3 = RefOf (F08A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F08B, 69 } Local3 = RefOf (F08B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F08C, 129 } Local3 = RefOf (F08C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F08D, 256 } Local3 = RefOf (F08D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F08E, 1023 } Local3 = RefOf (F08E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x01), F08F, 1983 } Local3 = RefOf (F08F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x09) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F090, 1 } Local3 = RefOf (F090) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F091, 6 } Local3 = RefOf (F091) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F092, 7 } Local3 = RefOf (F092) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F093, 8 } Local3 = RefOf (F093) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F094, 9 } Local3 = RefOf (F094) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F095, 31 } Local3 = RefOf (F095) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F096, 32 } Local3 = RefOf (F096) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F097, 33 } Local3 = RefOf (F097) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F098, 63 } Local3 = RefOf (F098) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F099, 64 } Local3 = RefOf (F099) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F09A, 65 } Local3 = RefOf (F09A) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F09B, 69 } Local3 = RefOf (F09B) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F09C, 129 } Local3 = RefOf (F09C) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F09D, 256 } Local3 = RefOf (F09D) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F09E, 1023 } Local3 = RefOf (F09E) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 9, F09F, 1983 } Local3 = RefOf (F09F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x1F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A0, 1 } Local3 = RefOf (F0A0) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A1, 6 } Local3 = RefOf (F0A1) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A2, 7 } Local3 = RefOf (F0A2) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A3, 8 } Local3 = RefOf (F0A3) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A4, 9 } Local3 = RefOf (F0A4) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A5, 31 } Local3 = RefOf (F0A5) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A6, 32 } Local3 = RefOf (F0A6) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A7, 33 } Local3 = RefOf (F0A7) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A8, 63 } Local3 = RefOf (F0A8) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0A9, 64 } Local3 = RefOf (F0A9) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0AA, 65 } Local3 = RefOf (F0AA) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0AB, 69 } Local3 = RefOf (F0AB) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0AC, 129 } Local3 = RefOf (F0AC) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0AD, 256 } Local3 = RefOf (F0AD) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0AE, 1023 } Local3 = RefOf (F0AE) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x03), , 7, F0AF, 1983 } Local3 = RefOf (F0AF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x20) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B0, 1 } Local3 = RefOf (F0B0) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B1, 6 } Local3 = RefOf (F0B1) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B2, 7 } Local3 = RefOf (F0B2) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B3, 8 } Local3 = RefOf (F0B3) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B4, 9 } Local3 = RefOf (F0B4) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B5, 31 } Local3 = RefOf (F0B5) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B6, 32 } Local3 = RefOf (F0B6) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B7, 33 } Local3 = RefOf (F0B7) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B8, 63 } Local3 = RefOf (F0B8) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0B9, 64 } Local3 = RefOf (F0B9) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0BA, 65 } Local3 = RefOf (F0BA) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0BB, 69 } Local3 = RefOf (F0BB) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0BC, 129 } Local3 = RefOf (F0BC) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0BD, 256 } Local3 = RefOf (F0BD) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0BE, 1023 } Local3 = RefOf (F0BE) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x04), F0BF, 1983 } Local3 = RefOf (F0BF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x21) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C0, 1 } Local3 = RefOf (F0C0) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C1, 6 } Local3 = RefOf (F0C1) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C2, 7 } Local3 = RefOf (F0C2) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C3, 8 } Local3 = RefOf (F0C3) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C4, 9 } Local3 = RefOf (F0C4) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C5, 31 } Local3 = RefOf (F0C5) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C6, 32 } Local3 = RefOf (F0C6) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C7, 33 } Local3 = RefOf (F0C7) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C8, 63 } Local3 = RefOf (F0C8) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0C9, 64 } Local3 = RefOf (F0C9) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0CA, 65 } Local3 = RefOf (F0CA) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0CB, 69 } Local3 = RefOf (F0CB) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0CC, 129 } Local3 = RefOf (F0CC) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0CD, 256 } Local3 = RefOf (F0CD) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0CE, 1023 } Local3 = RefOf (F0CE) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 33, F0CF, 1983 } Local3 = RefOf (F0CF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x3F) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D0, 1 } Local3 = RefOf (F0D0) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D1, 6 } Local3 = RefOf (F0D1) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D2, 7 } Local3 = RefOf (F0D2) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D3, 8 } Local3 = RefOf (F0D3) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D4, 9 } Local3 = RefOf (F0D4) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D5, 31 } Local3 = RefOf (F0D5) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D6, 32 } Local3 = RefOf (F0D6) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D7, 33 } Local3 = RefOf (F0D7) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D8, 63 } Local3 = RefOf (F0D8) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0D9, 64 } Local3 = RefOf (F0D9) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0DA, 65 } Local3 = RefOf (F0DA) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0DB, 69 } Local3 = RefOf (F0DB) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0DC, 129 } Local3 = RefOf (F0DC) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0DD, 256 } Local3 = RefOf (F0DD) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0DE, 1023 } Local3 = RefOf (F0DE) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { , 63, F0DF, 1983 } Local3 = RefOf (F0DF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x40) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E0, 1 } Local3 = RefOf (F0E0) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E1, 6 } Local3 = RefOf (F0E1) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E2, 7 } Local3 = RefOf (F0E2) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E3, 8 } Local3 = RefOf (F0E3) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E4, 9 } Local3 = RefOf (F0E4) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E5, 31 } Local3 = RefOf (F0E5) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E6, 32 } Local3 = RefOf (F0E6) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E7, 33 } Local3 = RefOf (F0E7) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E8, 63 } Local3 = RefOf (F0E8) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0E9, 64 } Local3 = RefOf (F0E9) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0EA, 65 } Local3 = RefOf (F0EA) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0EB, 69 } Local3 = RefOf (F0EB) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0EC, 129 } Local3 = RefOf (F0EC) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0ED, 256 } Local3 = RefOf (F0ED) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0EE, 1023 } Local3 = RefOf (F0EE) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), F0EF, 1983 } Local3 = RefOf (F0EF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Case (0x41) { Switch (ToInteger (Arg3)) { Case (0x01) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F0, 1 } Local3 = RefOf (F0F0) } Case (0x06) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F1, 6 } Local3 = RefOf (F0F1) } Case (0x07) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F2, 7 } Local3 = RefOf (F0F2) } Case (0x08) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F3, 8 } Local3 = RefOf (F0F3) } Case (0x09) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F4, 9 } Local3 = RefOf (F0F4) } Case (0x1F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F5, 31 } Local3 = RefOf (F0F5) } Case (0x20) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F6, 32 } Local3 = RefOf (F0F6) } Case (0x21) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F7, 33 } Local3 = RefOf (F0F7) } Case (0x3F) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F8, 63 } Local3 = RefOf (F0F8) } Case (0x40) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0F9, 64 } Local3 = RefOf (F0F9) } Case (0x41) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0FA, 65 } Local3 = RefOf (F0FA) } Case (0x45) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0FB, 69 } Local3 = RefOf (F0FB) } Case (0x81) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0FC, 129 } Local3 = RefOf (F0FC) } Case (0x0100) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0FD, 256 } Local3 = RefOf (F0FD) } Case (0x03FF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0FE, 1023 } Local3 = RefOf (F0FE) } Case (0x07BF) { Field (OPR0, AnyAcc, Lock, WriteAsZeros) { Offset (0x08), , 1, F0FF, 1983 } Local3 = RefOf (F0FF) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (Zero) } } M72D (Arg0, Local3, Arg2, Arg3, Arg4, Arg5, RefOf (G001)) } /* Check Region Field Unit */ Method (M72D, 7, Serialized) { Name (PR00, 0x00) /* Debug print flag */ Name (PR01, 0x00) /* Index/Bank fields additional control flag */ PR01 = DerefOf (FCP0 [0x00]) If (PR00) { Debug = "==Off:Len==:" Debug = Arg2 Debug = Arg3 } Name (INT0, 0x00) /* Expected Type */ Name (INT1, 0x00) Concatenate (Arg0, "-m72d", Arg0) /* Expected type */ If ((Arg3 <= 0x20)) { INT0 = C009 /* \C009 */ } ElseIf ((Arg3 > 0x40)) { INT0 = C00B /* \C00B */ } ElseIf (F64) { INT0 = C009 /* \C009 */ } Else { INT0 = C00B /* \C00B */ } /* Fill the entire region (ground) */ Switch (ToInteger (PR01)) { Case (0x02) { /* Write some predefined value to Bank selection register */ DerefOf (FCP0 [0x01]) = 0xA5 Local0 = DerefOf (DerefOf (FCP0 [0x01])) If ((Local0 != 0xA5)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, 0xA5) } } } Local1 = RefOf (Arg6) DerefOf (Local1) = BRG0 /* \BRG0 */ Switch (ToInteger (PR01)) { Case (0x02) { /* Check Bank selection register value */ Local0 = DerefOf (DerefOf (FCP0 [0x01])) If ((Local0 != DerefOf (FCP0 [0x02]))) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, DerefOf (FCP0 [0x02])) } } } If (PR00) { Debug = "==Ground==:" Debug = DerefOf (Arg6) } /* Fill into the field of region */ Switch (ToInteger (PR01)) { Case (0x02) { /* Write some predefined value to Bank selection register */ DerefOf (FCP0 [0x01]) = 0xA5 Local0 = DerefOf (DerefOf (FCP0 [0x01])) If ((Local0 != 0xA5)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, 0xA5) } } } Local1 = RefOf (Arg1) If (Arg4) { Name (B001, Buffer (Arg4){}) B001 = BRF0 /* \BRF0 */ DerefOf (Local1) = B001 /* \M72D.B001 */ } Else { INT1 = BRF0 /* \BRF0 */ DerefOf (Local1) = INT1 /* \M72D.INT1 */ } Switch (ToInteger (PR01)) { Case (0x02) { /* Check Bank selection register value */ Local0 = DerefOf (DerefOf (FCP0 [0x01])) If ((Local0 != DerefOf (FCP0 [0x02]))) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, DerefOf (FCP0 [0x02])) } } } /* Check Type */ Local0 = ObjectType (Arg1) If ((Local0 != C00D)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, C00D) } /* Retrieve the field back */ Switch (ToInteger (PR01)) { Case (0x02) { /* Write some predefined value to Bank selection register */ DerefOf (FCP0 [0x01]) = 0xA5 Local0 = DerefOf (DerefOf (FCP0 [0x01])) If ((Local0 != 0xA5)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, 0xA5) } } } Local0 = DerefOf (Arg1) If (PR00) { Debug = "==W:R:C==:" If (Arg4) { Debug = BRF0 /* \BRF0 */ } Else { Debug = INT1 /* \M72D.INT1 */ } Debug = Local0 Debug = Arg5 } /* Check Type */ Local1 = ObjectType (Local0) If ((Local1 != INT0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local1, INT0) } If ((Local0 != Arg5)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, Arg5) } Switch (ToInteger (PR01)) { Case (0x02) { /* Check Bank selection register value */ Local0 = DerefOf (DerefOf (FCP0 [0x01])) If ((Local0 != DerefOf (FCP0 [0x02]))) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, DerefOf (FCP0 [0x02])) } } } /* Check Contents of Region */ Switch (ToInteger (PR01)) { Case (0x02) { /* Write some predefined value to Bank selection register */ DerefOf (FCP0 [0x01]) = 0xA5 Local0 = DerefOf (DerefOf (FCP0 [0x01])) If ((Local0 != 0xA5)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, 0xA5) } } } Local1 = DerefOf (Arg6) Switch (ToInteger (PR01)) { Case (0x02) { /* Check Bank selection register value */ Local0 = DerefOf (DerefOf (FCP0 [0x01])) If ((Local0 != DerefOf (FCP0 [0x02]))) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local0, DerefOf (FCP0 [0x02])) } } } If ((Local1 != BRB0)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local1, BRB0) } ElseIf (PR00) { Debug = "==PostGround==:" Debug = Local1 } } /* Fill the buffer */ /* */ /* */ /* */ Method (M72C, 2, Serialized) { Local0 = SizeOf (Arg1) While (Local0) { Local0-- Switch (ToInteger (Arg0)) { Case (0x00) { Arg1 [Local0] = 0x00 } Case (0x01) { Arg1 [Local0] = 0xFF } Default { Arg1 [Local0] = Local0 } } } } /* Long List of Fields */ /* m743(CallChain) */ Method (M743, 1, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, 0x0800) Field (OPR0, ByteAcc, NoLock, Preserve) { G001, 16384 } /* Benchmark package */ Name (P000, Package (0x40) { /* Offset, FirstBit, NumBits, AccType */ /* 0x00 - 0x0f */ Package (0x05) { 0x00, 0x00, 0x01, 0x01 }, Package (0x05) { 0x21, 0x07, 0x01, 0x01 }, Package (0x05) { 0x42, 0x00, 0x02, 0x02 }, Package (0x05) { 0x63, 0x07, 0x02, 0x02 }, Package (0x05) { 0x84, 0x01, 0x03, 0x03 }, Package (0x05) { 0xA5, 0x05, 0x03, 0x03 }, Package (0x05) { 0xC6, 0x01, 0x04, 0x04 }, Package (0x05) { 0xE7, 0x05, 0x04, 0x04 }, Package (0x05) { 0x0107, 0x02, 0x05, 0x00 }, Package (0x05) { 0x0126, 0x03, 0x05, 0x00 }, Package (0x05) { 0x0145, 0x02, 0x06, 0x04 }, Package (0x05) { 0x0164, 0x03, 0x06, 0x04 }, Package (0x05) { 0x0183, 0x03, 0x07, 0x03 }, Package (0x05) { 0x01A2, 0x01, 0x07, 0x03 }, Package (0x05) { 0x01C1, 0x03, 0x08, 0x02 }, Package (0x05) { 0x01E0, 0x01, 0x08, 0x02 }, /* 0x10 - 0x1f */ Package (0x05) { 0x0200, 0x00, 0x0B, 0x01 }, Package (0x05) { 0x0221, 0x07, 0x0B, 0x01 }, Package (0x05) { 0x0242, 0x00, 0x0C, 0x02 }, Package (0x05) { 0x0263, 0x07, 0x0C, 0x02 }, Package (0x05) { 0x0284, 0x01, 0x0D, 0x03 }, Package (0x05) { 0x02A5, 0x05, 0x0D, 0x03 }, Package (0x05) { 0x02C6, 0x01, 0x0E, 0x04 }, Package (0x05) { 0x02E7, 0x05, 0x0E, 0x04 }, Package (0x05) { 0x0307, 0x02, 0x0F, 0x00 }, Package (0x05) { 0x0326, 0x03, 0x0F, 0x00 }, Package (0x05) { 0x0345, 0x02, 0x10, 0x04 }, Package (0x05) { 0x0364, 0x03, 0x10, 0x04 }, Package (0x05) { 0x0383, 0x03, 0x11, 0x03 }, Package (0x05) { 0x03A2, 0x01, 0x11, 0x03 }, Package (0x05) { 0x03C1, 0x03, 0x12, 0x02 }, Package (0x05) { 0x03E0, 0x01, 0x12, 0x02 }, /* 0x20 - 0x2f */ Package (0x05) { 0x0400, 0x00, 0x15, 0x01 }, Package (0x05) { 0x0421, 0x07, 0x15, 0x01 }, Package (0x05) { 0x0442, 0x00, 0x16, 0x02 }, Package (0x05) { 0x0463, 0x07, 0x16, 0x02 }, Package (0x05) { 0x0484, 0x01, 0x17, 0x03 }, Package (0x05) { 0x04A5, 0x05, 0x17, 0x03 }, Package (0x05) { 0x04C6, 0x01, 0x18, 0x04 }, Package (0x05) { 0x04E7, 0x05, 0x18, 0x04 }, Package (0x05) { 0x0507, 0x02, 0x19, 0x00 }, Package (0x05) { 0x0526, 0x03, 0x19, 0x00 }, Package (0x05) { 0x0545, 0x02, 0x1A, 0x04 }, Package (0x05) { 0x0564, 0x03, 0x1A, 0x04 }, Package (0x05) { 0x0583, 0x03, 0x1B, 0x03 }, Package (0x05) { 0x05A2, 0x01, 0x1B, 0x03 }, Package (0x05) { 0x05C1, 0x03, 0x1C, 0x02 }, Package (0x05) { 0x05E0, 0x01, 0x1C, 0x02 }, /* 0x30 - 0x3f */ Package (0x05) { 0x0600, 0x00, 0x1F, 0x01 }, Package (0x05) { 0x0621, 0x07, 0x1F, 0x01 }, Package (0x05) { 0x0642, 0x00, 0x20, 0x02 }, Package (0x05) { 0x0663, 0x07, 0x20, 0x02 }, Package (0x05) { 0x0684, 0x01, 0x1F, 0x03 }, Package (0x05) { 0x06A5, 0x05, 0x1E, 0x03 }, Package (0x05) { 0x06C6, 0x01, 0x1D, 0x04 }, Package (0x05) { 0x06E7, 0x05, 0x1C, 0x04 }, Package (0x05) { 0x0707, 0x02, 0x1B, 0x00 }, Package (0x05) { 0x0726, 0x03, 0x1A, 0x00 }, Package (0x05) { 0x0745, 0x02, 0x19, 0x04 }, Package (0x05) { 0x0764, 0x03, 0x18, 0x04 }, Package (0x05) { 0x0783, 0x03, 0x17, 0x03 }, Package (0x05) { 0x07A2, 0x01, 0x16, 0x03 }, Package (0x05) { 0x07C1, 0x03, 0x15, 0x02 }, Package (0x05) { 0x07E0, 0x01, 0x14, 0x02 } }) Name (I000, 0x00) Concatenate (Arg0, "-m743", Arg0) Debug = "TEST: m743, Check Long List of Fields" Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { /* 0x00 - 0x0f */ /* AccessAs(ByteAcc), */ Offset (0x00), Offset (0x00), F000, 1, Offset (0x21), , 7, F001, 1, AccessAs (WordAcc, 0x00), Offset (0x42), Offset (0x42), F002, 2, Offset (0x63), , 7, F003, 2, AccessAs (DWordAcc, 0x00), Offset (0x84), , 1, F004, 3, Offset (0xA5), , 5, F005, 3, AccessAs (QWordAcc, 0x00), Offset (0xC6), , 1, F006, 4, Offset (0xE7), , 5, F007, 4, AccessAs (AnyAcc, 0x00), Offset (0x107), , 2, F008, 5, Offset (0x126), , 3, F009, 5, AccessAs (QWordAcc, 0x00), Offset (0x145), , 2, F00A, 6, Offset (0x164), , 3, F00B, 6, AccessAs (DWordAcc, 0x00), Offset (0x183), , 3, F00C, 7, Offset (0x1A2), , 1, F00D, 7, AccessAs (WordAcc, 0x00), Offset (0x1C1), , 3, F00E, 8, Offset (0x1E0), , 1, F00F, 8, /* 0x10 - 0x1f */ AccessAs (ByteAcc, 0x00), Offset (0x200), Offset (0x200), F010, 11, Offset (0x221), , 7, F011, 11, AccessAs (WordAcc, 0x00), Offset (0x242), Offset (0x242), F012, 12, Offset (0x263), , 7, F013, 12, AccessAs (DWordAcc, 0x00), Offset (0x284), , 1, F014, 13, Offset (0x2A5), , 5, F015, 13, AccessAs (QWordAcc, 0x00), Offset (0x2C6), , 1, F016, 14, Offset (0x2E7), , 5, F017, 14, AccessAs (AnyAcc, 0x00), Offset (0x307), , 2, F018, 15, Offset (0x326), , 3, F019, 15, AccessAs (QWordAcc, 0x00), Offset (0x345), , 2, F01A, 16, Offset (0x364), , 3, F01B, 16, AccessAs (DWordAcc, 0x00), Offset (0x383), , 3, F01C, 17, Offset (0x3A2), , 1, F01D, 17, AccessAs (WordAcc, 0x00), Offset (0x3C1), , 3, F01E, 18, Offset (0x3E0), , 1, F01F, 18, /* 0x20 - 0x2f */ AccessAs (ByteAcc, 0x00), Offset (0x400), Offset (0x400), F020, 21, Offset (0x421), , 7, F021, 21, AccessAs (WordAcc, 0x00), Offset (0x442), Offset (0x442), F022, 22, Offset (0x463), , 7, F023, 22, AccessAs (DWordAcc, 0x00), Offset (0x484), , 1, F024, 23, Offset (0x4A5), , 5, F025, 23, AccessAs (QWordAcc, 0x00), Offset (0x4C6), , 1, F026, 24, Offset (0x4E7), , 5, F027, 24, AccessAs (AnyAcc, 0x00), Offset (0x507), , 2, F028, 25, Offset (0x526), , 3, F029, 25, AccessAs (QWordAcc, 0x00), Offset (0x545), , 2, F02A, 26, Offset (0x564), , 3, F02B, 26, AccessAs (DWordAcc, 0x00), Offset (0x583), , 3, F02C, 27, Offset (0x5A2), , 1, F02D, 27, AccessAs (WordAcc, 0x00), Offset (0x5C1), , 3, F02E, 28, Offset (0x5E0), , 1, F02F, 28, /* 0x30 - 0x3f */ AccessAs (ByteAcc, 0x00), Offset (0x600), Offset (0x600), F030, 31, Offset (0x621), , 7, F031, 31, AccessAs (WordAcc, 0x00), Offset (0x642), Offset (0x642), F032, 32, Offset (0x663), , 7, F033, 32, AccessAs (DWordAcc, 0x00), Offset (0x684), , 1, F034, 31, Offset (0x6A5), , 5, F035, 30, AccessAs (QWordAcc, 0x00), Offset (0x6C6), , 1, F036, 29, Offset (0x6E7), , 5, F037, 28, AccessAs (AnyAcc, 0x00), Offset (0x707), , 2, F038, 27, Offset (0x726), , 3, F039, 26, AccessAs (QWordAcc, 0x00), Offset (0x745), , 2, F03A, 25, Offset (0x764), , 3, F03B, 24, AccessAs (DWordAcc, 0x00), Offset (0x783), , 3, F03C, 23, Offset (0x7A2), , 1, F03D, 22, AccessAs (WordAcc, 0x00), Offset (0x7C1), , 3, F03E, 21, Offset (0x7E0), , 1, F03F, 20 } /* Region field Zeroing */ G001 = 0x00 Local0 = 0x04 Local1 = 0x00 While (Local0) { Local2 = 0x10 Local3 = 0x00 While (Local2) { Switch (ToInteger (Local1)) { Case (0x00) { Switch (ToInteger (Local3)) { Case (0x00) { Local4 = RefOf (F000) } Case (0x01) { Local4 = RefOf (F001) } Case (0x02) { Local4 = RefOf (F002) } Case (0x03) { Local4 = RefOf (F003) } Case (0x04) { Local4 = RefOf (F004) } Case (0x05) { Local4 = RefOf (F005) } Case (0x06) { Local4 = RefOf (F006) } Case (0x07) { Local4 = RefOf (F007) } Case (0x08) { Local4 = RefOf (F008) } Case (0x09) { Local4 = RefOf (F009) } Case (0x0A) { Local4 = RefOf (F00A) } Case (0x0B) { Local4 = RefOf (F00B) } Case (0x0C) { Local4 = RefOf (F00C) } Case (0x0D) { Local4 = RefOf (F00D) } Case (0x0E) { Local4 = RefOf (F00E) } Case (0x0F) { Local4 = RefOf (F00F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local1, Local3) Return (Zero) } } } Case (0x01) { Switch (ToInteger (Local3)) { Case (0x00) { Local4 = RefOf (F010) } Case (0x01) { Local4 = RefOf (F011) } Case (0x02) { Local4 = RefOf (F012) } Case (0x03) { Local4 = RefOf (F013) } Case (0x04) { Local4 = RefOf (F014) } Case (0x05) { Local4 = RefOf (F015) } Case (0x06) { Local4 = RefOf (F016) } Case (0x07) { Local4 = RefOf (F017) } Case (0x08) { Local4 = RefOf (F018) } Case (0x09) { Local4 = RefOf (F019) } Case (0x0A) { Local4 = RefOf (F01A) } Case (0x0B) { Local4 = RefOf (F01B) } Case (0x0C) { Local4 = RefOf (F01C) } Case (0x0D) { Local4 = RefOf (F01D) } Case (0x0E) { Local4 = RefOf (F01E) } Case (0x0F) { Local4 = RefOf (F01F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local1, Local3) Return (Zero) } } } Case (0x02) { Switch (ToInteger (Local3)) { Case (0x00) { Local4 = RefOf (F020) } Case (0x01) { Local4 = RefOf (F021) } Case (0x02) { Local4 = RefOf (F022) } Case (0x03) { Local4 = RefOf (F023) } Case (0x04) { Local4 = RefOf (F024) } Case (0x05) { Local4 = RefOf (F025) } Case (0x06) { Local4 = RefOf (F026) } Case (0x07) { Local4 = RefOf (F027) } Case (0x08) { Local4 = RefOf (F028) } Case (0x09) { Local4 = RefOf (F029) } Case (0x0A) { Local4 = RefOf (F02A) } Case (0x0B) { Local4 = RefOf (F02B) } Case (0x0C) { Local4 = RefOf (F02C) } Case (0x0D) { Local4 = RefOf (F02D) } Case (0x0E) { Local4 = RefOf (F02E) } Case (0x0F) { Local4 = RefOf (F02F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local1, Local3) Return (Zero) } } } Case (0x03) { Switch (ToInteger (Local3)) { Case (0x00) { Local4 = RefOf (F030) } Case (0x01) { Local4 = RefOf (F031) } Case (0x02) { Local4 = RefOf (F032) } Case (0x03) { Local4 = RefOf (F033) } Case (0x04) { Local4 = RefOf (F034) } Case (0x05) { Local4 = RefOf (F035) } Case (0x06) { Local4 = RefOf (F036) } Case (0x07) { Local4 = RefOf (F037) } Case (0x08) { Local4 = RefOf (F038) } Case (0x09) { Local4 = RefOf (F039) } Case (0x0A) { Local4 = RefOf (F03A) } Case (0x0B) { Local4 = RefOf (F03B) } Case (0x0C) { Local4 = RefOf (F03C) } Case (0x0D) { Local4 = RefOf (F03D) } Case (0x0E) { Local4 = RefOf (F03E) } Case (0x0F) { Local4 = RefOf (F03F) } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local1, Local3) Return (Zero) } } } Default { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, Local1, Local3) Return (Zero) } } Local5 = RefOf (Local4) /* Fill the field */ DerefOf (Local5) = 0x5555555555555555 Local3++ Local2-- } Local1++ Local0-- } /* Retrieve Region field */ Local6 = G001 /* \M743.G001 */ /* Check Region field */ Local0 = 0x04 Local1 = 0x00 While (Local0) { Local2 = 0x10 Local3 = 0x00 While (Local2) { /* Take Benchmark subpackage */ Local4 = DerefOf (P000 [((0x10 * Local1) + Local3)] ) /* Check contents of the field */ /* Get Benchmark buffer */ Local5 = SFT1 (Buffer (0x08) { 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55 // UUUUUUUU }, DerefOf (Local4 [0x01]), DerefOf ( Local4 [0x02]), 0xFF, 0xFF) /* Get Resulting subbuffer */ Mid (Local6, DerefOf (Local4 [0x00]), SizeOf (Local5), Local7) If ((Local7 != Local5)) { ERR (Arg0, Z143, __LINE__, Z143, ((0x10 * Local1) + Local3), Local7, Local5) } /* Check contents of the external accessed memory */ /* Access alignment */ Local5 = 0x01 If ((DerefOf (Local4 [0x03]) == 0x02)) { Local5 += 0x01 } ElseIf ((DerefOf (Local4 [0x03]) == 0x03)) { Local5 += 0x03 } ElseIf ((DerefOf (Local4 [0x03]) == 0x04)) { Local5 += 0x07 } Divide (DerefOf (Local4 [0x00]), Local5, Local7) /* Check the last byte in the previous access unit */ If ((DerefOf (Local4 [0x00]) - Local7)) { If ((DerefOf (Local6 [((DerefOf (Local4 [0x00] ) - Local7) - 0x01)]) != 0x00)) { ERR (Arg0, Z143, __LINE__, Z143, ((0x10 * Local1) + Local3), DerefOf (Local6 [(DerefOf (Local4 [0x00]) - Local7)]), 0x00) } } /* Check the bytes in the first access unit */ While (Local7) { If ((DerefOf (Local6 [(DerefOf (Local4 [0x00]) - Local7)]) != 0xFF)) { ERR (Arg0, Z143, __LINE__, Z143, ((0x10 * Local1) + Local3), DerefOf (Local6 [(DerefOf (Local4 [0x00]) - Local7)]), 0xFF) } Local7-- } Local7 = (DerefOf (Local4 [0x01]) + DerefOf (Local4 [0x02])) Divide (Local7, 0x08, Local7, I000) /* \M743.I000 */ If (Local7) { I000++ } I000 += DerefOf (Local4 [0x00]) Divide (I000, Local5, Local7) If (Local7) { Local7 = (Local5 - Local7) } /* Check the first byte in the next access unit */ If ((DerefOf (Local6 [(I000 + Local7)]) != 0x00)) { ERR (Arg0, Z143, __LINE__, Z143, ((0x10 * Local1) + Local3), DerefOf (Local6 [(I000 + Local7)]), 0x00) } /* Check the bytes in the last access unit */ While (Local7) { Local7-- If ((DerefOf (Local6 [(I000 + Local7)]) != 0xFF)) { ERR (Arg0, Z143, __LINE__, Z143, ((0x10 * Local1) + Local3), DerefOf (Local6 [(I000 + Local7)]), 0xFF) } } Local3++ Local2-- } Local1++ Local0-- } } /* Large Offset */ /* m744(CallChain) */ Method (M744, 1, Serialized) { OperationRegion (OPR0, SystemMemory, 0x00, 0x02000000) /* The next Offset value (0x2000000) causes crash of iASL */ Field (OPR0, ByteAcc, NoLock, Preserve) { Offset (0x1FFFFFF), F000, 8 } /* The next offset bit (0xffffffc) causes crash of iASL */ Field (OPR0, ByteAcc, NoLock, WriteAsZeros) { , 268435451, F001, 1 } /* The next bits length (0xffffffc) causes crash of iASL */ Field (OPR0, ByteAcc, NoLock, WriteAsOnes) { F002, 268435451 } Concatenate (Arg0, "-m744", Arg0) Debug = "TEST: m744, Check large Field offsets" F001 = 0x01 If ((F000 != 0x08)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, F000, 0x08) } } /* PCC operation region generic subspace */ /* m745 */ Method (M745, 1, Serialized) { Name (OLEN, 16) // Length of the operation region Name (CLEN, 8) // Length of FLGS, LNGT, COMD, COSP OperationRegion (PCC1, PCC, 0x1, OLEN) Field (PCC1, AnyAcc, NoLock, Preserve) { Offset(4), // 4 bytes COMD, 16, // 2 bytes STAT, 16, // 2 bytes COSP, 64, // 8 bytes } Name (BUF0, Buffer(0x2) {1,0}) STAT = BUF0 Name (BUF2, Buffer(0x8) { 0xA, 0x9, 0x8, 0x7, 0x6, 0x5, 0x4, 0x3 }) COSP = BUF2 Name (BUF3, Buffer(0x4) {0x40, 0x41, 0x42, 0x43}) COMD = BUF3 // Invoke region handler Concatenate (Arg0, "-m745", Arg0) /* * Check STAT, COMD and COSP to ensure that they contain expected * values. Note: the PCC operation region handler in acpiexec writes * 0x0 - OLEN in each byte of the field (including the offset 4). * For PCC1, STAT would contain the values {0x6, 0x7}. */ printf ("TEST: m745, Check COMD after write") If (COMD != 0x0504) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, COMD, 0x0504) } printf ("TEST: m745, Check STAT after write") If (STAT != 0x0706) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, STAT, 0x0706) } /* * Loop through COSP and determine that they contain expected values * set by acpiexec PCC handler */ printf ("TEST: m745, Check COSP after write") If (COSP != 0x0F0E0D0C0B0A0908) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, COSP, 0x0F0E0D0C0B0A0908) } } /* PCC operation region master subspace */ /* m746 */ Method (M746, 1, Serialized) { Name (OLEN, 26) // Length of the operation region Name (CLEN, 16) // Length of FLGS, LNGT, COMD, COSP OperationRegion (PCC3, PCC, 0x3, OLEN) Field (PCC3, AnyAcc, NoLock, Preserve) { Offset(4), // 4 bytes FLGS, 32, // 4 bytes LNGT, 32, // 4 Bytes COMD, 32, // 4 bytes COSP, 80 // 10 bytes } Name (BUF5, Buffer(0x4) {3,2,1,0}) FLGS = BUF5 Name (BUF6, Buffer(0x4) {4,3,2,1}) LNGT = BUF6 Name (BUF7, Buffer(0xA) { 0xA, 0x9, 0x8, 0x7, 0x6, 0x5, 0x4, 0x3, 0x2, 0x1 }) COSP = BUF7 Name (BUF8, Buffer(0x4) {0x40, 0x41, 0x42, 0x43}) COMD = BUF8 // Invoke region handler /* * Check FLGS, LNGT, COMD and ensure that they contain expected * values. Note: the PCC operation region handler in acpiexec writes * 0x0 - OLEN in each byte of the field (including the offset 4). * For PCC3, FLGS would contain the values {0x4, 0x5, 0x6, 0x7}. */ Concatenate (Arg0, "-m746", Arg0) printf ("TEST: m746, Check FLGS after write") If (FLGS != 0x07060504) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, FLGS, 0x07060504) } printf ("TEST: m746, Check LNGT after write") If (LNGT != 0x0B0A0908) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, LNGT, 0x0B0A0908) } printf ("TEST: m746, Check COMD after write") If (COMD != 0x0F0E0D0C) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, COMD, 0x0F0E0D0C) } /* * Loop through COSP and determine that they contain expected values * set by acpiexec PCC handler */ printf ("TEST: m746, Check COSP after write") Name (IDX, 0) While (OLEN - CLEN) { If (DerefOf(COSP[IDX]) != (CLEN + IDX)) { ERR (Arg0, Z143, __LINE__, 0x00, 0x00, DerefOf(COSP[IDX]), (CLEN + IDX)) } IDX++ OLEN-- } } /* Run-method */ Method (RFC0, 0, Serialized) { /* Check common access: ByteAcc, NoLock, Preserve */ SRMT ("m710") M710 (__METHOD__) /* Check common access: ByteAcc, NoLock, WriteAsOnes */ SRMT ("m711") M711 (__METHOD__) /* Check common access: ByteAcc, NoLock, WriteAsZeros */ SRMT ("m712") M712 (__METHOD__) /* Check common access: WordAcc, NoLock, Preserve */ SRMT ("m713") M713 (__METHOD__) /* Check common access: WordAcc, NoLock, WriteAsOnes */ SRMT ("m714") M714 (__METHOD__) /* Check common access: WordAcc, NoLock, WriteAsZeros */ SRMT ("m715") M715 (__METHOD__) /* Check common access: DWordAcc, NoLock, Preserve */ SRMT ("m716") M716 (__METHOD__) /* Check common access: DWordAcc, NoLock, WriteAsOnes */ SRMT ("m717") M717 (__METHOD__) /* Check common access: DWordAcc, NoLock, WriteAsZeros */ SRMT ("m718") M718 (__METHOD__) /* Check common access: QWordAcc, NoLock, Preserve */ SRMT ("m719") M719 (__METHOD__) /* Check common access: QWordAcc, NoLock, WriteAsOnes */ SRMT ("m71a") M71A (__METHOD__) /* Check common access: QWordAcc, NoLock, WriteAsZeros */ SRMT ("m71b") M71B (__METHOD__) /* Check common access: AnyAcc, NoLock, Preserve */ SRMT ("m71c") M71C (__METHOD__) /* Check common access: AnyAcc, NoLock, WriteAsOnes */ SRMT ("m71d") M71D (__METHOD__) /* Check common access: AnyAcc, NoLock, WriteAsZeros */ SRMT ("m71e") M71E (__METHOD__) /* Check SMBus/BufferAcc access */ SRMT ("m71f") M71F (__METHOD__) /* Check GeneralPurposeIo/ByteAcc access */ SRMT ("m764") M764 (__METHOD__) /* Check IPMI/BufferAcc access */ SRMT ("m768") M768 (__METHOD__) /* Check GenericSerialBus/BufferAcc access */ SRMT ("m740") M740 (__METHOD__) /* Splitting of Fields */ SRMT ("m742") M742 (__METHOD__) /* Long List of Fields */ SRMT ("m743") M743 (__METHOD__) /* Large Offset */ SRMT ("m744") M744 (__METHOD__) /* PCC generic subspace */ SRMT ("m745") M745 (__METHOD__) /* PCC master subspace */ SRMT ("m746") M746 (__METHOD__) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/logic/0000700000175000017500000000000014773714156026047 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/logic/DECL.asl0000700000175000017500000000334514773714156027267 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/logic/logical.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/logic/RUN.asl0000700000175000017500000000356714773714156027232 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Logical operators", TCLF, 0x07, W007)) { LOG0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/logic/logical.asl0000700000175000017500000010450114773714156030166 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Logical operators */ Name (Z035, 0x23) /* Verifying 2-parameters, 1-result operator */ Method (M003, 6, Serialized) { Local5 = 0x00 Local3 = Arg1 While (Local3) { /* Operands */ Local6 = (Local5 * 0x02) Local0 = DerefOf (Arg3 [Local6]) Local6++ Local1 = DerefOf (Arg3 [Local6]) /* Expected result */ Local2 = DerefOf (Arg4 [Local5]) Switch (ToInteger (Arg5)) { Case (0x00) { Local7 = (Local0 != Local1) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } Local7 = (Local1 != Local0) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x01) { Local7 = (Local0 && Local1) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } Local7 = (Local1 && Local0) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x02) { Local7 = (Local0 || Local1) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } Local7 = (Local1 || Local0) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x03) { Local7 = (Local0 == Local1) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } Local7 = (Local1 == Local0) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x04) { Local7 = (Local0 > Local1) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x05) { Local7 = (Local0 >= Local1) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x06) { Local7 = (Local0 < Local1) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x07) { Local7 = (Local0 <= Local1) If ((Local7 != Local2)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } } } If (0x00) { Debug = "==============:" Debug = Local0 Debug = Local1 Debug = Local2 Debug = Local7 Debug = "==============" } Local5++ Local3-- } } /* Verifying 1-parameter, 1-result operator */ Method (M004, 6, Serialized) { Local5 = 0x00 Local3 = Arg1 While (Local3) { /* Operand */ Local0 = DerefOf (Arg3 [Local5]) /* Expected result */ Local1 = DerefOf (Arg4 [Local5]) Switch (ToInteger (Arg5)) { Case (0x00) { Local2 = !Local0 If ((Local2 != Local1)) { ERR (Arg0, Z035, __LINE__, 0x00, 0x00, Local5, Arg2) } } } Local5++ Local3-- } } /* ====================================================== // */ /* Generic operands utilized by different operators // */ /* ====================================================== // */ Name (P060, Package (0x1A) { /* 32-bit integers */ 0x12345678, 0x12345678, 0xF2345678, 0xF2345678, 0x00, 0x00, 0xFFFFFFFF, 0xFFFFFFFF, 0x04000000, 0x10, 0x20000000, 0x40000000, 0x80000000, 0x01, 0x40000000, 0x80000000, 0x04000000, 0xFF, 0xFF, 0x00100000, 0x00, 0x80, 0x00, 0x8000, 0x00, 0x80000000 }) Name (P061, Package (0x18) { /* 64-bit integers */ 0x12345678BDEFAC98, 0x12345678BDEFAC98, 0xF234567811994657, 0xF234567811994657, 0x00, 0x00, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0x0400000000000000, 0x0000001000000000, 0x2000000000000000, 0x4000000000000000, 0x8000000000000000, 0x01, 0x4000000000000000, 0x8000000000000000, 0x0400000000000000, 0xFF, 0xFF, 0x00100000, 0x00, 0x80000000, 0x00, 0x8000000000000000 }) Name (P062, Package (0x06) { /* 32-bit integers */ 0x00, 0xFFFFFFFF, 0xFF, 0x10, 0x12334567, 0x9BCDFE18 }) Name (P063, Package (0x04) { /* 64-bit integers */ 0x00, 0xFFFFFFFFFFFFFFFF, 0x12334567BDCFEB46, 0xFBDEC6709BCDFE18 }) Name (P064, Package (0x3E) { /* Strings */ "qwertyuiop", "qwertyuiop", "qwertyuiop", "qwertyuiop0", "qwertyuiop", "qwertyuio", "", "", " ", "", "", " ", " ", " ", " ", " ", " ", " ", "a", "", "", "a", " a", "a", "a", " a", "a ", "a", "a", "a ", "a b", "ab", "ab", "a b", "a b", "a b", "a b", "a b", "abcDef", "abcdef", "mnbvcxzlkHjhgf", "mnbvcxzlkHjhgf", "mnbvcxzlkHjhgf", "mnbvcxzlkIjhgf", "mnbvcxzlkIjhgf", "mnbvcxzlkHjhgf", "mnbvcxzlkHjhgf0", "mnbvcxzlkHjhgf", "mnbvcxzlkHjhgf0", "mnbvcxzlkIjhgf", "mnbvcxzlkIjhgf0", "mnbvcxzlkHjhgf", "mnbvcxzlkHjhgf", "mnbvcxzlkHjhgf0", "mnbvcxzlkHjhgf", "mnbvcxzlkIjhgf0", "mnbvcxzlkIjhgf", "mnbvcxzlkHjhgf0", "mnbvcxzlkIHjhgf", "mnbvcxzlkHIjhgf", "mnbvcxzlkHIjhgf", "mnbvcxzlkIHjhgf" }) Name (P065, Package (0x66) { /* Buffers */ Buffer (0x07) { 0x00, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // . !"#$% }, Buffer (0x07) { 0x00, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // . !"#$% }, Buffer (0x07) { 0x00, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // . !"#$% }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // !"#$% }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // !"#$% }, Buffer (0x07) { 0x00, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // . !"#$% }, Buffer (0x08) { 0x00, 0x00, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // .. !"#$% }, Buffer (0x07) { 0x00, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // . !"#$% }, Buffer (0x07) { 0x00, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // . !"#$% }, Buffer (0x08) { 0x00, 0x00, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // .. !"#$% }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // !"#$% }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // !"#$% }, Buffer (0x07) { " !\"#$%" }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // !"#$% }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25 // !"#$% }, Buffer (0x07) { " !\"#$%" }, Buffer (0x08) { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x00, 0x00 // !"#$%.. }, Buffer (0x07) { " !\"#$%" }, Buffer (0x07) { " !\"#$%" }, Buffer (0x08) { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x00, 0x00 // !"#$%.. }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25 // !".$% }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25 // !".$% }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25 // !".$% }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x26 // !".$& }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x26 // !".$& }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25 // !".$% }, Buffer (0x07) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25, 0x00 // !".$%. }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25 // !".$% }, Buffer (0x06) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25 // !".$% }, Buffer (0x07) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25, 0x00 // !".$%. }, Buffer (0x08) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25, 0x00, 0x00 // !".$%.. }, Buffer (0x07) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25, 0x00 // !".$%. }, Buffer (0x07) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25, 0x00 // !".$%. }, Buffer (0x08) { 0x20, 0x21, 0x22, 0x00, 0x24, 0x25, 0x00, 0x00 // !".$%.. }, Buffer (0x64){}, Buffer (0x64){}, Buffer (0x64){}, Buffer (0x65){}, Buffer (0x64){}, Buffer (0x63){}, Buffer (0x01) { 0x00 // . }, Buffer (0x01) { 0x00 // . }, Buffer (0x02) { " " }, Buffer (0x01) { 0x00 // . }, Buffer (0x01) { 0x00 // . }, Buffer (0x02) { " " }, Buffer (0x02) { " " }, Buffer (0x02) { " " }, Buffer (0x03) { " " }, Buffer (0x02) { " " }, Buffer (0x02) { " " }, Buffer (0x03) { " " }, Buffer (0x02) { "a" }, Buffer (0x01) { 0x00 // . }, Buffer (0x01) { 0x00 // . }, Buffer (0x02) { "a" }, Buffer (0x03) { " a" }, Buffer (0x02) { "a" }, Buffer (0x02) { "a" }, Buffer (0x03) { " a" }, Buffer (0x03) { "a " }, Buffer (0x02) { "a" }, Buffer (0x02) { "a" }, Buffer (0x03) { "a " }, Buffer (0x04) { "a b" }, Buffer (0x03) { "ab" }, Buffer (0x03) { "ab" }, Buffer (0x04) { "a b" }, Buffer (0x05) { "a b" }, Buffer (0x04) { "a b" }, Buffer (0x04) { "a b" }, Buffer (0x05) { "a b" }, Buffer (0x07) { "abcDef" }, Buffer (0x07) { "abcdef" }, Buffer (0x16) { "asdfGHJKLIq0987654312" }, Buffer (0x16) { "asdfGHJKLIq0987654312" }, Buffer (0x16) { "asdfGHJKLIq0987654312" }, Buffer (0x17) { "asdfGHJKLIq09876543123" }, Buffer (0x16) { "asdfGHJKLIq0987654312" }, Buffer (0x15) { "asdfGHJKLIq098765431" }, Buffer (0x0F) { "mnbvcxzlkHjhgf" }, Buffer (0x0F) { "mnbvcxzlkHjhgf" }, Buffer (0x0F) { "mnbvcxzlkHjhgf" }, Buffer (0x0F) { "mnbvcxzlkIjhgf" }, Buffer (0x0F) { "mnbvcxzlkIjhgf" }, Buffer (0x0F) { "mnbvcxzlkHjhgf" }, Buffer (0x10) { "mnbvcxzlkHjhgf0" }, Buffer (0x0F) { "mnbvcxzlkHjhgf" }, Buffer (0x10) { "mnbvcxzlkHjhgf0" }, Buffer (0x0F) { "mnbvcxzlkIjhgf" }, Buffer (0x10) { "mnbvcxzlkIjhgf0" }, Buffer (0x0F) { "mnbvcxzlkHjhgf" }, Buffer (0x0F) { "mnbvcxzlkHjhgf" }, Buffer (0x10) { "mnbvcxzlkHjhgf0" }, Buffer (0x0F) { "mnbvcxzlkHjhgf" }, Buffer (0x10) { "mnbvcxzlkIjhgf0" }, Buffer (0x0F) { "mnbvcxzlkIjhgf" }, Buffer (0x10) { "mnbvcxzlkHjhgf0" }, Buffer (0x10) { "mnbvcxzlkIHjhgf" }, Buffer (0x10) { "mnbvcxzlkHIjhgf" }, Buffer (0x10) { "mnbvcxzlkHIjhgf" }, Buffer (0x10) { "mnbvcxzlkIHjhgf" } }) /* ===================================== LAnd */ Name (P05D, Package (0x0D) { Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero }) Name (P05E, Package (0x0C) { Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero }) Method (LAN0, 0, Serialized) { Debug = "TEST: LAN0, Logical And" /* Integers */ If ((F64 == 0x01)) { M003 (__METHOD__, C002, "p060", P060, P05D, 0x01) M003 (__METHOD__, C003, "p061", P061, P05E, 0x01) } Else { M003 (__METHOD__, C002, "p060", P060, P05D, 0x01) } } /* ===================================== LNot */ Name (P05F, Package (0x06) { Ones, Zero, Zero, Zero, Zero, Zero }) Name (P070, Package (0x04) { Ones, Zero, Zero, Zero }) Method (LN00, 0, Serialized) { Debug = "TEST: LN00, Logical Not" /* Integers */ If ((F64 == 0x01)) { M004 (__METHOD__, C004, "p062", P062, P05F, 0x00) M004 (__METHOD__, C005, "p063", P063, P070, 0x00) } Else { M004 (__METHOD__, C004, "p062", P062, P05F, 0x00) } } /* ===================================== LOr */ Name (P071, Package (0x0D) { Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) Name (P072, Package (0x0C) { Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) Method (LOR0, 0, Serialized) { Debug = "TEST: LOR0, Logical Or" /* Integers */ If ((F64 == 0x01)) { M003 (__METHOD__, C002, "p060", P060, P071, 0x02) M003 (__METHOD__, C003, "p061", P061, P072, 0x02) } Else { M003 (__METHOD__, C002, "p060", P060, P071, 0x02) } } /* ===================================== LEqual */ Name (P073, Package (0x0D) { Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) Name (P074, Package (0x0C) { Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) Name (P075, Package (0x1F) { Ones, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) Name (P076, Package (0x33) { Ones, Zero, Zero, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) Method (LEQ0, 0, Serialized) { Debug = "TEST: LEQ0, Logical Equal" /* Integers */ If ((F64 == 0x01)) { M003 (__METHOD__, C002, "p060", P060, P073, 0x03) M003 (__METHOD__, C003, "p061", P061, P074, 0x03) } Else { M003 (__METHOD__, C002, "p060", P060, P073, 0x03) } /* Strings */ M003 (__METHOD__, C006, "p064", P064, P075, 0x03) Local0 = (BIG0 == BIG0) If ((Local0 != Ones)) { ERR (__METHOD__, Z035, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Buffers */ M003 (__METHOD__, C007, "p065", P065, P076, 0x03) } /* ===================================== LGreater */ Name (P077, Package (0x0D) { Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Zero }) Name (P078, Package (0x0C) { Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero }) Name (P079, Package (0x1F) { Zero, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Zero, Ones, Zero, Zero, Ones, Ones, Zero }) Name (P07A, Package (0x33) { Zero, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Zero, Zero, Ones, Ones, Zero, Ones, Zero, Zero, Ones, Ones, Zero }) Method (LGR0, 0, Serialized) { Debug = "TEST: LGR0, Logical Greater" /* Integers */ If ((F64 == 0x01)) { M003 (__METHOD__, C002, "p060", P060, P077, 0x04) M003 (__METHOD__, C003, "p061", P061, P078, 0x04) } Else { M003 (__METHOD__, C002, "p060", P060, P077, 0x04) } /* Strings */ M003 (__METHOD__, C006, "p064", P064, P079, 0x04) Local0 = (BIG0 > BIG0) If ((Local0 != Zero)) { ERR (__METHOD__, Z035, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Buffers */ M003 (__METHOD__, C007, "p065", P065, P07A, 0x04) } /* ===================================== LGreaterEqual */ Name (P07B, Package (0x0D) { Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Zero }) Name (P07C, Package (0x0C) { Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero }) Name (P07D, Package (0x1F) { Ones, Zero, Ones, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Ones, Zero, Zero, Ones, Ones, Zero }) Name (P07E, Package (0x33) { Ones, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Zero, Zero, Ones, Ones, Zero }) Method (LGE0, 0, Serialized) { Debug = "TEST: LGE0, Logical Greater Than Or Equal" /* Integers */ If ((F64 == 0x01)) { M003 (__METHOD__, C002, "p060", P060, P07B, 0x05) M003 (__METHOD__, C003, "p061", P061, P07C, 0x05) } Else { M003 (__METHOD__, C002, "p060", P060, P07B, 0x05) } /* Strings */ M003 (__METHOD__, C006, "p064", P064, P07D, 0x05) Local0 = (BIG0 >= BIG0) If ((Local0 != Ones)) { ERR (__METHOD__, Z035, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Buffers */ M003 (__METHOD__, C007, "p065", P065, P07E, 0x05) } /* ===================================== LLess */ Name (P07F, Package (0x0D) { Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Ones }) Name (P080, Package (0x0C) { Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones }) Name (P081, Package (0x1F) { Zero, Ones, Zero, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Zero, Ones, Ones, Zero, Zero, Ones }) Name (P082, Package (0x33) { Zero, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Ones, Ones, Zero, Zero, Ones }) Method (LL00, 0, Serialized) { Debug = "TEST: LL00, Logical Less" /* Integers */ If ((F64 == 0x01)) { M003 (__METHOD__, C002, "p060", P060, P07F, 0x06) M003 (__METHOD__, C003, "p061", P061, P080, 0x06) } Else { M003 (__METHOD__, C002, "p060", P060, P07F, 0x06) } /* Strings */ M003 (__METHOD__, C006, "p064", P064, P081, 0x06) Local0 = (BIG0 < BIG0) If ((Local0 != Zero)) { ERR (__METHOD__, Z035, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Buffers */ M003 (__METHOD__, C007, "p065", P065, P082, 0x06) } /* ===================================== LLessEqual */ Name (P083, Package (0x0D) { Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Ones }) Name (P084, Package (0x0C) { Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones }) Name (P085, Package (0x1F) { Ones, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Ones, Zero, Ones, Ones, Zero, Zero, Ones }) Name (P086, Package (0x33) { Ones, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Ones, Ones, Zero, Zero, Ones, Zero, Ones, Ones, Zero, Zero, Ones }) Method (LLE0, 0, Serialized) { Debug = "TEST: LLE0, Logical Less Than Or Equal" /* Integers */ If ((F64 == 0x01)) { M003 (__METHOD__, C002, "p060", P060, P083, 0x07) M003 (__METHOD__, C003, "p061", P061, P084, 0x07) } Else { M003 (__METHOD__, C002, "p060", P060, P083, 0x07) } /* Strings */ M003 (__METHOD__, C006, "p064", P064, P085, 0x07) Local0 = (BIG0 <= BIG0) If ((Local0 != Ones)) { ERR (__METHOD__, Z035, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Buffers */ M003 (__METHOD__, C007, "p065", P065, P086, 0x07) } /* ===================================== LNotEqual */ Name (P087, Package (0x0D) { Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) Name (P088, Package (0x0C) { Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) Name (P089, Package (0x1F) { Zero, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) Name (P08A, Package (0x33) { Zero, Ones, Ones, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) Method (LNE0, 0, Serialized) { Debug = "TEST: LNE0, Logical Not equal" /* Integers */ If ((F64 == 0x01)) { M003 (__METHOD__, C002, "p060", P060, P087, 0x00) M003 (__METHOD__, C003, "p061", P061, P088, 0x00) } Else { M003 (__METHOD__, C002, "p060", P060, P087, 0x00) } /* Strings */ M003 (__METHOD__, C006, "p064", P064, P089, 0x00) Local0 = (BIG0 != BIG0) If ((Local0 != Zero)) { ERR (__METHOD__, Z035, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Buffers */ M003 (__METHOD__, C007, "p065", P065, P08A, 0x00) } /* Run-method */ Method (LOG0, 0, NotSerialized) { SRMT ("LAN0") LAN0 () SRMT ("LN00") LN00 () SRMT ("LOR0") LOR0 () SRMT ("LEQ0") LEQ0 () SRMT ("LGR0") LGR0 () SRMT ("LGE0") LGE0 () SRMT ("LL00") LL00 () SRMT ("LLE0") LLE0 () SRMT ("LNE0") LNE0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/logic/MAIN.asl0000700000175000017500000000406414773714156027303 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("logic", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/logic/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/logic/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/logic/Makefile0000700000175000017500000000013314773714156027507 0ustar ivanhuivanhu# logic AMLMOD= logic COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/name/0000700000175000017500000000000014773714156025672 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/name/DECL.asl0000700000175000017500000000376314773714156027116 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/name/name.asl") Include ("../../../../runtime/collections/functional/name/package.asl") /* Excluded until the bug 182 is fixed */ Include ("../../../../runtime/collections/functional/name/method.asl") Include ("../../../../runtime/collections/functional/name/function.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/name/RUN.asl0000700000175000017500000000423014773714156027041 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Miscellaneous named object creation", TCLF, 0x09, W009)) { PCG0 () NM00 () If (Y182) { NM01 () NM02 () } Else { SRMT ("NM01") BLCK () SRMT ("NM02") BLCK () } } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/name/name.asl0000700000175000017500000000512014773714156027314 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Miscellaneous named object creation */ Name (Z112, 0x70) /* * Obtain the NamedX objects of all the types and check their {type,size,value} * * The ability of Name operator to create and designate different type * objects is indirectly verified by other tests destined for to verify * the features of those particular type objects: Integer, Buffer, String, * Package, Device, etc.. * * This sub-test is intended to concentrate in the same place * the initial simplest checkings {type,size,value} of different * type objects obtained by Name operator - the ability as such * of Name operator to create and designate different type objects. */ Method (M204, 0, NotSerialized) { M1A6 () } /* Run-method */ Method (NM00, 0, NotSerialized) { Debug = "TEST: NM00, Declare Named Object" SRMT ("m204") M204 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/name/function.asl0000700000175000017500000005526214773714156030235 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Miscellaneous named object creation */ Name (Z134, 0x86) /* * This sub-test is intended to comprehensively verify * the Function declaration syntax implementation. * * Declare the Function Control Method Objects of different, * signature check that properly specified or default arguments * values provide required functionality. * * The overall functionality of the Function Objects is indirectly * verified by other tests as far as "Functions are equivalent to a * Method that specifies NotSerialized". * * 17.5.49 Function (Declare Control Method) * Syntax * Function (FunctionName, ReturnType, ParameterTypes) {TermList} * * Validated Assertions: * * - Function declaration creates an Object in the ACPI * namespace which can be referred by the specified FunctionName * either to initiate its invocation or to obtain its AML Object * type. Also FunctionName can be used to save a copy of the Object * or a reference to it in another AML Object. * * - ASL compiler should allow only a Namestring data type in the * FunctionName position. * * - ASL compiler should allow only an ObjectTypeKeyword or * a comma-separated ObjectTypeKeywords enclosed with curly * brackets (OTK package) in the ReturnType position. ReturnType * is optional argument. If no ReturnType is specified, ReturnType * UnknownObj is assumed. * ObjectTypeKeyword := UnknownObj | IntObj | StrObj | BuffObj | * PkgObj | FieldUnitObj | DeviceObj | EventObj | * MethodObj | MutexObj | OpRegionObj | PowerResObj | * ThermalZoneObj | BuffFieldObj | DDBHandleObj * * - ASL compiler should report an error when an actual Object specified * to be returned is of inappropriate type. * * - ASL compiler should report an error when there is at least one * control path in the method that returns no any actual Object. * * - ASL compiler should report an error when some different from * UnknownObj ObjectType Keyword specified in the ReturnType position * but no any actual Object specified to be returned. * * - ASL compiler should allow only an OTK package or a package * containing OTK packages along with ObjectTypeKeywords in the * ParameterTypes position. * * - ASL compiler should report an error when ParameterTypes is specified * and the number of members in the ParameterTypes package exceeds 7. * * - If ParameterTypes is not specified, then the number of parameters * is Zero. * * - ASL compiler should report an error when an actual Object * specified to be a respective argument of the Method is of * inappropriate type. * * - System software should execute a Function control method * by referencing the objects in the Function body in order. * * - Function opens a name scope. All namespace references that occur * during the method execution are relative to the Function package * location. * * - All namespace objects created by a Function should be destroyed * when Function execution exits. * */ Scope (\_SB) { Method (M20D, 0, NotSerialized) { } } Method (M20E, 0, Serialized) { Method (M316, 0, NotSerialized) { Method (MM00, 0, NotSerialized) { Return ("\\m20e.m316.mm00") } Method (\_SB.M20D.MM00, 0, NotSerialized) { Return ("\\_SB.m20d.mm00") } M205 (__METHOD__, 0x01, ObjectType (MM00), 0x08) M205 (__METHOD__, 0x02, MM00 (), "\\m20e.m316.mm00") M205 (__METHOD__, 0x03, ObjectType (\M20E.M316.MM00), 0x08) M205 (__METHOD__, 0x04, \M20E.M316.MM00 (), "\\m20e.m316.mm00") M205 (__METHOD__, 0x05, ObjectType (^M316.MM00), 0x08) M205 (__METHOD__, 0x06, ^M316.MM00 (), "\\m20e.m316.mm00") M205 (__METHOD__, 0x07, ObjectType (\_SB.M20D.MM00), 0x08) M205 (__METHOD__, 0x08, \_SB.M20D.MM00 (), "\\_SB.m20d.mm00") } Method (M317, 0, NotSerialized) { Method (MM10, 0, NotSerialized) { Return ("\\m20e.m317.mm10") } Method (MM20, 0, NotSerialized) { Return ("\\m20e.m317.mm20") } Method (MM30, 0, NotSerialized) { Return ("\\m20e.m317.mm30") } M205 (__METHOD__, 0x09, ObjectType (MM10), 0x08) M205 (__METHOD__, 0x0A, MM10 (), "\\m20e.m317.mm10") M205 (__METHOD__, 0x0B, ObjectType (MM20), 0x08) M205 (__METHOD__, 0x0C, MM20 (), "\\m20e.m317.mm20") M205 (__METHOD__, 0x0D, ObjectType (MM30), 0x08) If (Y157) { M205 (__METHOD__, 0x0E, MM30 (), "\\m20e.m317.mm30") } } /* Integer */ Name (INT0, 0xFEDCBA9876543210) /* String */ Name (STR0, "source string") /* Buffer */ Name (BUF0, Buffer (0x09) { /* 0000 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0008 */ 0x01 // . }) /* Initializer of Fields */ Name (BUF2, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }) /* Base of Buffer Fields */ Name (BUFZ, Buffer (0x30){}) /* Package */ Name (PAC0, Package (0x03) { 0xFEDCBA987654321F, "test package", Buffer (0x09) { /* 0000 */ 0x13, 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, // ........ /* 0008 */ 0x0B // . } }) /* Operation Region */ OperationRegion (OPR0, SystemMemory, 0x00, 0x30) /* Field Unit */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLU0, 69, FLU2, 64, FLU4, 32 } /* Device */ Device (DEV0) { Name (S000, "DEV0") } /* Event */ Event (EVE0) /* Method */ Method (MMM0, 0, NotSerialized) { Return ("ff0X") } /* Mutex */ Mutex (MTX0, 0x00) /* Power Resource */ PowerResource (PWR0, 0x00, 0x0000) { Name (S000, "PWR0") } /* Processor */ Processor (CPU0, 0x00, 0xFFFFFFFF, 0x00) { Name (S000, "CPU0") } /* Thermal Zone */ ThermalZone (TZN0) { Name (S000, "TZN0") } /* Buffer Field */ CreateField (BUFZ, 0x00, 0x45, BFL0) CreateField (BUFZ, 0x50, 0x40, BFL2) CreateField (BUFZ, 0xA0, 0x20, BFL4) /* DDBHandle */ Name (DDB0, Ones) /* Reference */ Name (ORF0, "ORF0") Name (REF0, Package (0x01){}) Method (M318, 0, NotSerialized) { Method (MM00, 1, NotSerialized) { Arg0 = (DerefOf (Arg0) + 0x01) } Method (MM01, 0, NotSerialized) { Return (INT0) /* \M20E.INT0 */ } Method (MM11, 0, NotSerialized) { Return (INT0) /* \M20E.INT0 */ } Method (MM02, 0, NotSerialized) { Return (STR0) /* \M20E.STR0 */ } Method (MM03, 0, NotSerialized) { Return (BUF0) /* \M20E.BUF0 */ } Method (MM04, 0, NotSerialized) { Return (PAC0) /* \M20E.PAC0 */ } Method (MM05, 0, NotSerialized) { Return (FLU0) /* \M20E.FLU0 */ } Method (MM06, 0, NotSerialized) { Return (DEV0) /* \M20E.DEV0 */ } Method (MM07, 0, NotSerialized) { Return (EVE0) /* \M20E.EVE0 */ } Method (MM08, 0, NotSerialized) { CopyObject (MMM0 (), Local0) Return (Local0) } Method (MM09, 0, NotSerialized) { Return (MTX0) /* \M20E.MTX0 */ } Method (MM0A, 0, NotSerialized) { Return (OPR0) /* \M20E.OPR0 */ } Method (MM0B, 0, NotSerialized) { Return (PWR0) /* \M20E.PWR0 */ } Method (MM0C, 0, NotSerialized) { Return (CPU0) /* \M20E.CPU0 */ } Method (MM0D, 0, NotSerialized) { Return (TZN0) /* \M20E.TZN0 */ } Method (MM0E, 0, NotSerialized) { Return (BFL0) /* \M20E.BFL0 */ } Method (MM0F, 0, NotSerialized) { Return (DDB0) /* \M20E.DDB0 */ } /* Formal declaration */ /* Function(mm0g, DebugObj) {Return (Debug)} */ Method (MM0H, 0, NotSerialized) { Return (RefOf (ORF0)) } Local0 = 0xFEDCBA9876543210 M205 (__METHOD__, 0x0F, ObjectType (MM00), 0x08) /* // Bug 148 mm00(Refof(Local0)) m205(ts, 16, Local0, 0xfedcba9876543211) */ M205 (__METHOD__, 0x11, ObjectType (MM01), 0x08) M205 (__METHOD__, 0x12, MM01 (), INT0) M205 (__METHOD__, 0x13, ObjectType (MM02), 0x08) M205 (__METHOD__, 0x14, MM02 (), STR0) M205 (__METHOD__, 0x15, ObjectType (MM03), 0x08) M205 (__METHOD__, 0x16, MM03 (), BUF0) M205 (__METHOD__, 0x17, ObjectType (MM04), 0x08) M205 (__METHOD__, 0x18, MM04 (), PAC0) M205 (__METHOD__, 0x19, ObjectType (MM05), 0x08) M205 (__METHOD__, 0x1A, MM05 (), FLU0) M205 (__METHOD__, 0x1B, ObjectType (MM06), 0x08) M205 (__METHOD__, 0x1C, MM06 (), DEV0) M205 (__METHOD__, 0x1D, ObjectType (MM07), 0x08) M205 (__METHOD__, 0x1E, MM07 (), EVE0) M205 (__METHOD__, 0x1F, ObjectType (MM08), 0x08) CopyObject (MMM0 (), Local0) M205 (__METHOD__, 0x20, MM08 (), Local0) M205 (__METHOD__, 0x21, ObjectType (MM09), 0x08) M205 (__METHOD__, 0x22, MM09 (), MTX0) M205 (__METHOD__, 0x23, ObjectType (MM0A), 0x08) M205 (__METHOD__, 0x24, MM0A (), OPR0) M205 (__METHOD__, 0x25, ObjectType (MM0B), 0x08) M205 (__METHOD__, 0x26, MM0B (), PWR0) M205 (__METHOD__, 0x27, ObjectType (MM0C), 0x08) M205 (__METHOD__, 0x28, MM0C (), CPU0) M205 (__METHOD__, 0x29, ObjectType (MM0D), 0x08) If (Y350) { M205 (__METHOD__, 0x2A, MM0D (), TZN0) } M205 (__METHOD__, 0x2B, ObjectType (MM0E), 0x08) M205 (__METHOD__, 0x2C, MM0E (), BFL0) M205 (__METHOD__, 0x2D, ObjectType (MM0F), 0x08) M205 (__METHOD__, 0x2E, MM0F (), DDB0) /* m205(ts, 47, ObjectType(mm0g), 8) m205(ts, 48, mm0g(), Debug) */ M205 (__METHOD__, 0x31, ObjectType (MM0H), 0x08) M205 (__METHOD__, 0x32, DerefOf (MM0H ()), ORF0) } Method (M319, 0, NotSerialized) { Method (MM00, 0, NotSerialized) { Return (STR0) /* \M20E.STR0 */ } Method (MM01, 0, NotSerialized) { Return (INT0) /* \M20E.INT0 */ } M205 (__METHOD__, 0x33, ObjectType (MM00), 0x08) M205 (__METHOD__, 0x34, MM00 (), STR0) M205 (__METHOD__, 0x35, ObjectType (MM01), 0x08) M205 (__METHOD__, 0x36, MM01 (), INT0) } Method (M31A, 0, Serialized) { Name (FLAG, Ones) /* List of types of the parameters contains the same keyword */ Method (MM00, 1, NotSerialized) { FLAG = 0x00 } Method (MM01, 1, NotSerialized) { FLAG = 0x01 } Method (MM02, 2, NotSerialized) { FLAG = 0x02 } Method (MM03, 3, NotSerialized) { FLAG = 0x03 } Method (MM04, 4, NotSerialized) { FLAG = 0x04 } Method (MM05, 5, NotSerialized) { FLAG = 0x05 } Method (MM06, 6, NotSerialized) { FLAG = 0x06 } Method (MM07, 7, NotSerialized) { FLAG = 0x07 } /* List of types of the parameters contains the UnknownObj keyword */ Method (MM08, 1, NotSerialized) { FLAG = 0x08 } Method (MM09, 1, NotSerialized) { FLAG = 0x09 } Method (MM0A, 7, NotSerialized) { FLAG = 0x0A } /* List of types of the parameters contains different keywords */ Method (MM10, 2, NotSerialized) { FLAG = 0x10 } Method (MM11, 2, NotSerialized) { FLAG = 0x11 } Method (MM12, 2, NotSerialized) { FLAG = 0x12 } Method (MM13, 3, NotSerialized) { FLAG = 0x13 } Method (MM14, 4, NotSerialized) { FLAG = 0x14 } Method (MM15, 5, NotSerialized) { FLAG = 0x15 } Method (MM16, 6, NotSerialized) { FLAG = 0x16 } Method (MM17, 7, NotSerialized) { FLAG = 0x17 } Method (MM18, 7, NotSerialized) { FLAG = 0x18 } /* List of types of the parameters contains keyword packages */ /* along with different keywords */ Method (MM20, 1, NotSerialized) { FLAG = 0x20 } Method (MM21, 2, NotSerialized) { FLAG = 0x21 } /* // Bug 148 Function(mm22, , {{IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ProcessorObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}}) {Store(34, Flag)} */ Method (MM23, 2, NotSerialized) { FLAG = 0x23 } Method (MM24, 2, NotSerialized) { FLAG = 0x24 } Method (MM25, 2, NotSerialized) { FLAG = 0x25 } Method (MM26, 2, NotSerialized) { FLAG = 0x26 } Method (MM27, 2, NotSerialized) { FLAG = 0x27 } Method (MM28, 2, NotSerialized) { FLAG = 0x28 } Method (MM29, 2, NotSerialized) { FLAG = 0x29 } /* // Bug 148 Function(mm3a, , { {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, }) {Store(42, Flag)} */ /* // Bug 148 // List of types of the parameters contains the same keyword m205(ts, 55, ObjectType(mm00), 8) mm00(1) m205(ts, 56, Flag, 0) m205(ts, 57, ObjectType(mm01), 8) mm01(1) m205(ts, 58, Flag, 1) m205(ts, 59, ObjectType(mm02), 8) mm02(1, 2) m205(ts, 60, Flag, 2) m205(ts, 61, ObjectType(mm03), 8) mm03(1, 2, 3) m205(ts, 62, Flag, 3) m205(ts, 63, ObjectType(mm04), 8) mm04(1, 2, 3, 4) m205(ts, 64, Flag, 4) m205(ts, 65, ObjectType(mm05), 8) mm05(1, 2, 3, 4, 5) m205(ts, 66, Flag, 5) m205(ts, 67, ObjectType(mm06), 8) mm06(1, 2, 3, 4, 5, 6) m205(ts, 68, Flag, 6) m205(ts, 69, ObjectType(mm07), 8) mm07(1, 2, 3, 4, 5, 6, 7) m205(ts, 70, Flag, 7) // List of types of the parameters contains the UnknownObj keyword m205(ts, 71, ObjectType(mm08), 8) mm08(1) m205(ts, 72, Flag, 8) m205(ts, 73, ObjectType(mm09), 8) mm09(1) m205(ts, 74, Flag, 9) m205(ts, 75, ObjectType(mm0a), 8) mm08(1, 2, 3, 4, 5, 6, 7) m205(ts, 76, Flag, 10) // List of types of the parameters contains different keywords m205(ts, 77, ObjectType(mm10), 8) mm10(1, 2) m205(ts, 78, Flag, 16) m205(ts, 79, ObjectType(mm11), 8) mm11(1, 2) m205(ts, 80, Flag, 17) m205(ts, 81, ObjectType(mm12), 8) mm12(1, 2) m205(ts, 82, Flag, 18) m205(ts, 83, ObjectType(mm13), 8) mm13(1, 2, 3) m205(ts, 84, Flag, 19) m205(ts, 85, ObjectType(mm14), 8) mm14(1, 2, 3, 4) m205(ts, 86, Flag, 20) m205(ts, 87, ObjectType(mm15), 8) mm15(1, 2, 3, 4, 5) m205(ts, 88, Flag, 21) m205(ts, 89, ObjectType(mm16), 8) mm16(1, 2, 3, 4, 5, 6) m205(ts, 90, Flag, 22) m205(ts, 91, ObjectType(mm17), 8) mm17(1, 2, 3, 4, 5, 6, 7) m205(ts, 92, Flag, 23) m205(ts, 93, ObjectType(mm18), 8) mm18(1, 2, 3, 4, 5, 6, 7) m205(ts, 94, Flag, 24) // List of types of the parameters contains keyword packages // along with different keywords m205(ts, 95, ObjectType(mm20), 8) mm20(1) m205(ts, 96, Flag, 32) m205(ts, 97, ObjectType(mm21), 8) mm21(1) m205(ts, 98, Flag, 33) m205(ts, 99, ObjectType(mm22), 8) mm22(1) m205(ts, 100, Flag, 34) m205(ts, 101, ObjectType(mm23), 8) mm23(1, 2) m205(ts, 102, Flag, 35) m205(ts, 103, ObjectType(mm24), 8) mm24(1, 2) m205(ts, 104, Flag, 36) m205(ts, 105, ObjectType(mm25), 8) mm25(1, 2) m205(ts, 106, Flag, 37) m205(ts, 107, ObjectType(mm26), 8) mm26(1, 2) m205(ts, 108, Flag, 38) m205(ts, 109, ObjectType(mm27), 8) mm27(1, 2) m205(ts, 110, Flag, 39) m205(ts, 149, ObjectType(mm28), 8) mm28(1, 2) m205(ts, 111, Flag, 40) m205(ts, 112, ObjectType(mm29), 8) mm29(1, 2) m205(ts, 113, Flag, 41) m205(ts, 114, ObjectType(mm2a), 8) mm2a(1, 2, 3, 4, 5, 6, 7) m205(ts, 115, Flag, 42) */ } SRMT ("m316") M316 () SRMT ("m317") M317 () SRMT ("m318") M318 () SRMT ("m319") M319 () SRMT ("m31a") M31A () } /* Run-method */ Method (NM02, 0, NotSerialized) { Debug = "TEST: NM02, Declare Function Control Method Named Object" M20E () CH03 ("NM02", Z134, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/name/package.asl0000700000175000017500000201271314773714156027777 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Miscellaneous named object creation */ /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!! SEE: see below, update needed !!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ /* Package, Declare Package Object */ /* */ /* Update needed: */ /* */ /* m1f4() - this test should be implemented after references to Control */ /* Methods as elements of Package will be implemented by ACPICA. */ /* m1f7() - this test should be implemented after ObjectType stops aborting */ /* program when dealing with uninitialized objects. */ /* all - add references to Control Methods to all other tests of this file. */ /* */ /* Note: verification of the contents of Packages is not performed, too complex. */ Name (Z051, 0x33) /* Step {1,2,4,8,16,32}. Use 16, too much time for 1 there. */ Name (C040, 0x10) /* Max number of iterations of Mix test. */ /* Use 25, though available are {1-29}. */ Name (C041, 0x16) /* Check Integers */ Method (M1F0, 0, Serialized) { Name (P000, Package (0xFF) { /* 0 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, /* 96 */ 0x8765AC00, 0x8765AC01, 0x8765AC02, 0x8765AC03, 0x8765AC04, 0x8765AC05, 0x8765AC06, 0x8765AC07, 0x8765AC08, 0x8765AC09, 0x8765AC0A, 0x8765AC0B, 0x8765AC0C, 0x8765AC0D, 0x8765AC0E, 0x8765AC0F, 0x8765AC10, 0x8765AC11, 0x8765AC12, 0x8765AC13, 0x8765AC14, 0x8765AC15, 0x8765AC16, 0x8765AC17, 0x8765AC18, 0x8765AC19, 0x8765AC1A, 0x8765AC1B, 0x8765AC1C, 0x8765AC1D, 0x8765AC1E, 0x8765AC1F, 0x8765AC20, 0x8765AC21, 0x8765AC22, 0x8765AC23, 0x8765AC24, 0x8765AC25, 0x8765AC26, 0x8765AC27, 0x8765AC28, 0x8765AC29, 0x8765AC2A, 0x8765AC2B, 0x8765AC2C, 0x8765AC2D, 0x8765AC2E, 0x8765AC2F, 0x8765AC30, 0x8765AC31, 0x8765AC32, 0x8765AC33, 0x8765AC34, 0x8765AC35, 0x8765AC36, 0x8765AC37, 0x8765AC38, 0x8765AC39, 0x8765AC3A, 0x8765AC3B, 0x8765AC3C, 0x8765AC3D, 0x8765AC3E, 0x8765AC3F, /* 160 */ 0x8765ACBA11223300, 0x8765ACBA11223301, 0x8765ACBA11223302, 0x8765ACBA11223303, 0x8765ACBA11223304, 0x8765ACBA11223305, 0x8765ACBA11223306, 0x8765ACBA11223307, 0x8765ACBA11223308, 0x8765ACBA11223309, 0x8765ACBA1122330A, 0x8765ACBA1122330B, 0x8765ACBA1122330C, 0x8765ACBA1122330D, 0x8765ACBA1122330E, 0x8765ACBA1122330F, 0x8765ACBA11223310, 0x8765ACBA11223311, 0x8765ACBA11223312, 0x8765ACBA11223313, 0x8765ACBA11223314, 0x8765ACBA11223315, 0x8765ACBA11223316, 0x8765ACBA11223317, 0x8765ACBA11223318, 0x8765ACBA11223319, 0x8765ACBA1122331A, 0x8765ACBA1122331B, 0x8765ACBA1122331C, 0x8765ACBA1122331D, 0x8765ACBA1122331E, 0x8765ACBA1122331F, 0x8765ACBA11223320, 0x8765ACBA11223321, 0x8765ACBA11223322, 0x8765ACBA11223323, /* 196 */ 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE }) TS00 (__METHOD__) /* Too much time for 1 there, so use {8/16} */ Local6 = C040 /* \C040 */ Divide (0xFF, Local6, Local1, Local0) Local1 = 0x00 Local4 = 0x00 Local5 = 0x00 While (Local0) { Local2 = DerefOf (P000 [Local1]) Local3 = Local1 If ((Local1 <= 0x5F)) { If ((Local2 != Local3)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local2, Local3) } } ElseIf ((Local1 <= 0x9F)) { Local3 = (0x8765AC00 + Local4) If ((Local2 != Local3)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local2, Local3) } Local4 += Local6 } ElseIf ((Local1 <= 0xC3)) { Local3 = (0x8765ACBA11223300 + Local5) If ((Local2 != Local3)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local2, Local3) } Local5 += Local6 } ElseIf ((Local2 != Local3)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local2, Local3) } Local3 = ObjectType (Local2) If ((Local3 != 0x01)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local3, 0x01) } Local1 += Local6 Local0-- } Local0 = SizeOf (P000) If ((Local0 != 0xFF)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0xFF) } } /* Check Strings */ Method (M1F1, 0, Serialized) { Name (P000, Package (0x0A) { "", "0", "01", "012", " 0 0", " 9 ", "vqwert", "1234567", "01234567", "01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" }) TS00 (__METHOD__) Local0 = 0x0A Local1 = 0x00 Local5 = 0x00 While (Local0) { Local2 = DerefOf (P000 [Local1]) Local3 = SizeOf (Local2) Local4 = Local1 If ((Local1 == 0x09)) { Local4 = 0xC8 } If ((Local4 != Local3)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local4, Local3) } Local3 = ObjectType (Local2) If ((Local3 != 0x02)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local3, 0x02) } Local1++ Local0-- } Local0 = SizeOf (P000) If ((Local0 != 0x0A)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0x0A) } } /* Check Buffers */ Method (M1F2, 0, Serialized) { Name (P000, Package (0xFF) { Buffer (0x01){}, Buffer (0x02){}, Buffer (0x03){}, Buffer (0x04){}, Buffer (0x05){}, Buffer (0x06){}, Buffer (0x07){}, Buffer (0x08){}, Buffer (0x09){}, Buffer (0x0A){}, Buffer (0x0B) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B // ... }, Buffer (0x0C) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C // .... }, Buffer (0x0D) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D // ..... }, Buffer (0x0E) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E // ...... }, Buffer (0x0F) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F // ....... }, Buffer (0x10) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 // ........ }, Buffer (0x11) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11 // . }, Buffer (0x12) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12 // .. }, Buffer (0x13) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13 // ... }, Buffer (0x14) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14 // .... }, Buffer (0x15){}, Buffer (0x16){}, Buffer (0x17){}, Buffer (0x18){}, Buffer (0x19){}, Buffer (0x1A){}, Buffer (0x1B){}, Buffer (0x1C){}, Buffer (0x1D){}, Buffer (0x1E){}, Buffer (0x1F){}, Buffer (0x20){}, Buffer (0x21){}, Buffer (0x22){}, Buffer (0x23){}, Buffer (0x24){}, Buffer (0x25){}, Buffer (0x26){}, Buffer (0x27){}, Buffer (0x28){}, Buffer (0x29){}, Buffer (0x2A){}, Buffer (0x2B){}, Buffer (0x2C){}, Buffer (0x2D){}, Buffer (0x2E){}, Buffer (0x2F){}, Buffer (0x30){}, Buffer (0x31){}, Buffer (0x32){}, Buffer (0x33){}, Buffer (0x34){}, Buffer (0x35){}, Buffer (0x36){}, Buffer (0x37){}, Buffer (0x38){}, Buffer (0x39){}, Buffer (0x3A){}, Buffer (0x3B){}, Buffer (0x3C){}, Buffer (0x3D){}, Buffer (0x3E){}, Buffer (0x3F){}, Buffer (0x40){}, Buffer (0x41){}, Buffer (0x42){}, Buffer (0x43){}, Buffer (0x44){}, Buffer (0x45){}, Buffer (0x46){}, Buffer (0x47){}, Buffer (0x48){}, Buffer (0x49){}, Buffer (0x4A){}, Buffer (0x4B){}, Buffer (0x4C){}, Buffer (0x4D){}, Buffer (0x4E){}, Buffer (0x4F){}, Buffer (0x50){}, Buffer (0x51){}, Buffer (0x52){}, Buffer (0x53){}, Buffer (0x54){}, Buffer (0x55){}, Buffer (0x56){}, Buffer (0x57){}, Buffer (0x58){}, Buffer (0x59){}, Buffer (0x5A){}, Buffer (0x5B){}, Buffer (0x5C){}, Buffer (0x5D){}, Buffer (0x5E){}, Buffer (0x5F){}, Buffer (0x60){}, Buffer (0x61){}, Buffer (0x62){}, Buffer (0x63){}, Buffer (0x64){}, Buffer (0x65){}, Buffer (0x66){}, Buffer (0x67){}, Buffer (0x68){}, Buffer (0x69){}, Buffer (0x6A){}, Buffer (0x6B){}, Buffer (0x6C){}, Buffer (0x6D){}, Buffer (0x6E){}, Buffer (0x6F){}, Buffer (0x70){}, Buffer (0x71){}, Buffer (0x72){}, Buffer (0x73){}, Buffer (0x74){}, Buffer (0x75){}, Buffer (0x76){}, Buffer (0x77){}, Buffer (0x78){}, Buffer (0x79){}, Buffer (0x7A){}, Buffer (0x7B){}, Buffer (0x7C){}, Buffer (0x7D){}, Buffer (0x7E){}, Buffer (0x7F){}, Buffer (0x80){}, Buffer (0x81){}, Buffer (0x82){}, Buffer (0x83){}, Buffer (0x84){}, Buffer (0x85){}, Buffer (0x86){}, Buffer (0x87){}, Buffer (0x88){}, Buffer (0x89){}, Buffer (0x8A){}, Buffer (0x8B){}, Buffer (0x8C){}, Buffer (0x8D){}, Buffer (0x8E){}, Buffer (0x8F){}, Buffer (0x90){}, Buffer (0x91){}, Buffer (0x92){}, Buffer (0x93){}, Buffer (0x94){}, Buffer (0x95){}, Buffer (0x96){}, Buffer (0x97){}, Buffer (0x98){}, Buffer (0x99){}, Buffer (0x9A){}, Buffer (0x9B){}, Buffer (0x9C){}, Buffer (0x9D){}, Buffer (0x9E){}, Buffer (0x9F){}, Buffer (0xA0){}, Buffer (0xA1){}, Buffer (0xA2){}, Buffer (0xA3){}, Buffer (0xA4){}, Buffer (0xA5){}, Buffer (0xA6){}, Buffer (0xA7){}, Buffer (0xA8){}, Buffer (0xA9){}, Buffer (0xAA){}, Buffer (0xAB){}, Buffer (0xAC){}, Buffer (0xAD){}, Buffer (0xAE){}, Buffer (0xAF){}, Buffer (0xB0){}, Buffer (0xB1){}, Buffer (0xB2){}, Buffer (0xB3){}, Buffer (0xB4){}, Buffer (0xB5){}, Buffer (0xB6){}, Buffer (0xB7){}, Buffer (0xB8){}, Buffer (0xB9){}, Buffer (0xBA){}, Buffer (0xBB){}, Buffer (0xBC){}, Buffer (0xBD){}, Buffer (0xBE){}, Buffer (0xBF){}, Buffer (0xC0){}, Buffer (0xC1){}, Buffer (0xC2){}, Buffer (0xC3){}, Buffer (0xC4){}, Buffer (0xC5){}, Buffer (0xC6){}, Buffer (0xC7){}, Buffer (0xC8){}, Buffer (0xC9){}, Buffer (0xCA){}, Buffer (0xCB){}, Buffer (0xCC){}, Buffer (0xCD){}, Buffer (0xCE){}, Buffer (0xCF){}, Buffer (0xD0){}, Buffer (0xD1){}, Buffer (0xD2){}, Buffer (0xD3){}, Buffer (0xD4){}, Buffer (0xD5){}, Buffer (0xD6){}, Buffer (0xD7){}, Buffer (0xD8){}, Buffer (0xD9){}, Buffer (0xDA){}, Buffer (0xDB){}, Buffer (0xDC){}, Buffer (0xDD){}, Buffer (0xDE){}, Buffer (0xDF){}, Buffer (0xE0){}, Buffer (0xE1){}, Buffer (0xE2){}, Buffer (0xE3){}, Buffer (0xE4){}, Buffer (0xE5){}, Buffer (0xE6){}, Buffer (0xE7){}, Buffer (0xE8){}, Buffer (0xE9){}, Buffer (0xEA){}, Buffer (0xEB){}, Buffer (0xEC){}, Buffer (0xED){}, Buffer (0xEE){}, Buffer (0xEF){}, Buffer (0xF0){}, Buffer (0xF1){}, Buffer (0xF2){}, Buffer (0xF3){}, Buffer (0xF4){}, Buffer (0xF5){}, Buffer (0xF6){}, Buffer (0xF7){}, Buffer (0xF8){}, Buffer (0xF9){}, Buffer (0xFA){}, Buffer (0xFB){}, Buffer (0xFC){}, Buffer (0xFD){}, Buffer (0xFE){}, Buffer (0xFF){} }) TS00 (__METHOD__) /* Too much time for 1 there, so use {8/16} */ Local6 = C040 /* \C040 */ Divide (0xFF, Local6, Local1, Local0) Local1 = 0x00 Local5 = 0x00 While (Local0) { Local2 = DerefOf (P000 [Local1]) Local3 = SizeOf (Local2) Local4 = (Local1 + 0x01) If ((Local4 != Local3)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local4, Local3) } Local3 = ObjectType (Local2) If ((Local3 != 0x03)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local3, 0x03) } Local1 += Local6 Local0-- } Local0 = SizeOf (P000) If ((Local0 != 0xFF)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0xFF) } } /* Packages */ Method (M1F3, 0, Serialized) { Name (P000, Package (0xFF) { Package (0x01){}, Package (0x02){}, Package (0x03){}, Package (0x04){}, Package (0x05){}, Package (0x06){}, Package (0x07){}, Package (0x08){}, Package (0x09){}, Package (0x0A){}, Package (0x0B) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B }, Package (0x0C) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C }, Package (0x0D) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D }, Package (0x0E) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E }, Package (0x0F) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }, Package (0x10) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 }, Package (0x11) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11 }, Package (0x12) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12 }, Package (0x13) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13 }, Package (0x14) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14 }, Package (0x15){}, Package (0x16){}, Package (0x17){}, Package (0x18){}, Package (0x19){}, Package (0x1A){}, Package (0x1B){}, Package (0x1C){}, Package (0x1D){}, Package (0x1E){}, Package (0x1F){}, Package (0x20){}, Package (0x21){}, Package (0x22){}, Package (0x23){}, Package (0x24){}, Package (0x25){}, Package (0x26){}, Package (0x27){}, Package (0x28){}, Package (0x29){}, Package (0x2A){}, Package (0x2B){}, Package (0x2C){}, Package (0x2D){}, Package (0x2E){}, Package (0x2F){}, Package (0x30){}, Package (0x31){}, Package (0x32){}, Package (0x33){}, Package (0x34){}, Package (0x35){}, Package (0x36){}, Package (0x37){}, Package (0x38){}, Package (0x39){}, Package (0x3A){}, Package (0x3B){}, Package (0x3C){}, Package (0x3D){}, Package (0x3E){}, Package (0x3F){}, Package (0x40){}, Package (0x41){}, Package (0x42){}, Package (0x43){}, Package (0x44){}, Package (0x45){}, Package (0x46){}, Package (0x47){}, Package (0x48){}, Package (0x49){}, Package (0x4A){}, Package (0x4B){}, Package (0x4C){}, Package (0x4D){}, Package (0x4E){}, Package (0x4F){}, Package (0x50){}, Package (0x51){}, Package (0x52){}, Package (0x53){}, Package (0x54){}, Package (0x55){}, Package (0x56){}, Package (0x57){}, Package (0x58){}, Package (0x59){}, Package (0x5A){}, Package (0x5B){}, Package (0x5C){}, Package (0x5D){}, Package (0x5E){}, Package (0x5F){}, Package (0x60){}, Package (0x61){}, Package (0x62){}, Package (0x63){}, Package (0x64){}, Package (0x65){}, Package (0x66){}, Package (0x67){}, Package (0x68){}, Package (0x69){}, Package (0x6A){}, Package (0x6B){}, Package (0x6C){}, Package (0x6D){}, Package (0x6E){}, Package (0x6F){}, Package (0x70){}, Package (0x71){}, Package (0x72){}, Package (0x73){}, Package (0x74){}, Package (0x75){}, Package (0x76){}, Package (0x77){}, Package (0x78){}, Package (0x79){}, Package (0x7A){}, Package (0x7B){}, Package (0x7C){}, Package (0x7D){}, Package (0x7E){}, Package (0x7F){}, Package (0x80){}, Package (0x81){}, Package (0x82){}, Package (0x83){}, Package (0x84){}, Package (0x85){}, Package (0x86){}, Package (0x87){}, Package (0x88){}, Package (0x89){}, Package (0x8A){}, Package (0x8B){}, Package (0x8C){}, Package (0x8D){}, Package (0x8E){}, Package (0x8F){}, Package (0x90){}, Package (0x91){}, Package (0x92){}, Package (0x93){}, Package (0x94){}, Package (0x95){}, Package (0x96){}, Package (0x97){}, Package (0x98){}, Package (0x99){}, Package (0x9A){}, Package (0x9B){}, Package (0x9C){}, Package (0x9D){}, Package (0x9E){}, Package (0x9F){}, Package (0xA0){}, Package (0xA1){}, Package (0xA2){}, Package (0xA3){}, Package (0xA4){}, Package (0xA5){}, Package (0xA6){}, Package (0xA7){}, Package (0xA8){}, Package (0xA9){}, Package (0xAA){}, Package (0xAB){}, Package (0xAC){}, Package (0xAD){}, Package (0xAE){}, Package (0xAF){}, Package (0xB0){}, Package (0xB1){}, Package (0xB2){}, Package (0xB3){}, Package (0xB4){}, Package (0xB5){}, Package (0xB6){}, Package (0xB7){}, Package (0xB8){}, Package (0xB9){}, Package (0xBA){}, Package (0xBB){}, Package (0xBC){}, Package (0xBD){}, Package (0xBE){}, Package (0xBF){}, Package (0xC0){}, Package (0xC1){}, Package (0xC2){}, Package (0xC3){}, Package (0xC4){}, Package (0xC5){}, Package (0xC6){}, Package (0xC7){}, Package (0xC8){}, Package (0xC9){}, Package (0xCA){}, Package (0xCB){}, Package (0xCC){}, Package (0xCD){}, Package (0xCE){}, Package (0xCF){}, Package (0xD0){}, Package (0xD1){}, Package (0xD2){}, Package (0xD3){}, Package (0xD4){}, Package (0xD5){}, Package (0xD6){}, Package (0xD7){}, Package (0xD8){}, Package (0xD9){}, Package (0xDA){}, Package (0xDB){}, Package (0xDC){}, Package (0xDD){}, Package (0xDE){}, Package (0xDF){}, Package (0xE0){}, Package (0xE1){}, Package (0xE2){}, Package (0xE3){}, Package (0xE4){}, Package (0xE5){}, Package (0xE6){}, Package (0xE7){}, Package (0xE8){}, Package (0xE9){}, Package (0xEA){}, Package (0xEB){}, Package (0xEC){}, Package (0xED){}, Package (0xEE){}, Package (0xEF){}, Package (0xF0){}, Package (0xF1){}, Package (0xF2){}, Package (0xF3){}, Package (0xF4){}, Package (0xF5){}, Package (0xF6){}, Package (0xF7){}, Package (0xF8){}, Package (0xF9){}, Package (0xFA){}, Package (0xFB){}, Package (0xFC){}, Package (0xFD){}, Package (0xFE){}, Package (0xFF){} }) TS00 (__METHOD__) /* Too much time for 1 there, so use {8/16} */ Local6 = C040 /* \C040 */ Divide (0xFF, Local6, Local1, Local0) Local1 = 0x00 Local5 = 0x00 While (Local0) { Local2 = DerefOf (P000 [Local1]) Local3 = SizeOf (Local2) Local4 = (Local1 + 0x01) If ((Local4 != Local3)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local4, Local3) } Local3 = ObjectType (Local2) If ((Local3 != 0x04)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local3, 0x04) } Local1 += Local6 Local0-- } Local0 = SizeOf (P000) If ((Local0 != 0xFF)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0xFF) } } /* Do test for Methods, when Methods will be implemented !!!!!!!!!!!!!!! */ Method (M1F4, 0, Serialized) { TS00 (__METHOD__) /* Not implemented yet */ Method (M000, 0, NotSerialized) { Return ("aaaa") } Method (M001, 0, NotSerialized) { Return (Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... }) } Method (M002, 0, NotSerialized) { Return (Package (0x05) { 0x01, 0x02, 0x03, 0x04, 0x05 }) } /* Method(m003) {return (0)} */ Debug = "============= vvvvvvvvvvvvv" Local0 = RefOf (M000) Local1 = SizeOf (Local0) /* Store(SizeOf(m000), Local1) */ Debug = Local0 Debug = Local1 Debug = "============= ccccccccccccc" Return (0x00) } Method (M1F5, 3, Serialized) { /* n000 - decr cur counter (levels num) */ /* n001 - incr cur counter */ /* n002 - type of target object */ /* n004 - size of target object */ /* n003 - incr cur counter (index of first level) */ Name (N000, 0x00) Name (N001, 0x00) Name (N002, 0x1234) Name (N004, 0x00) Name (N003, 0x04) /* Type of target object */ N002 = DerefOf (Arg2 [0x00]) /* Size of target object */ N004 = DerefOf (Arg2 [0x01]) /* Repetition */ N000 = DerefOf (Arg2 [0x03]) /* Cur de-reference */ Local7 = Arg1 While (N000) { /* Index in cur object */ Local0 = DerefOf (Arg2 [N003]) /* Cur de-reference */ Local7 = DerefOf (Local7 [Local0]) Local0 = ObjectType (Local7) N003++ N001++ N000-- } /* Type */ Local0 = ObjectType (Local7) If ((Local0 != N002)) { ERR (Arg0, Z051, __LINE__, 0x00, 0x00, Local0, N002) } /* Contents */ If ((N002 >= 0x01)) { If ((N002 <= 0x03)) { Local6 = 0x00 Local1 = 0x00 Local0 = DerefOf (Arg2 [0x02]) If ((N002 != 0x01)) { Local1 = SizeOf (Local0) } If ((Local1 != N004)) { ERR (Arg0, Z051, __LINE__, 0x00, 0x00, Local1, N004) Local6 = 0x01 } ElseIf ((Local7 != Local0)) { ERR (Arg0, Z051, __LINE__, 0x00, 0x00, Local7, Local0) Local6 = 0x01 } If (Local6) { Debug = "============= To ERROR:" Debug = Local0 Debug = Local7 Debug = "=============." } } } } /* Mix */ /* - all one level combinations */ /* - 255 levels in depth */ Method (M1F6, 0, Serialized) { Name (P000, Package (0xFF) { /* 0 */ 0xB2345678, "qwert", Buffer (0x06) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 // ...... }, Package (0x01){}, /* 4, Integer, String, Buffer */ Package (0x01) { 0x00 }, Package (0x01) { "qwhj" }, Package (0x02) { 0x01, "qwu" }, Package (0x02) { "er", 0x02 }, Package (0x01) { Buffer (0x01) { 0x01 // . } }, Package (0x02) { 0x03, Buffer (0x02) { 0x02, 0x03 // .. } }, Package (0x02) { Buffer (0x03) { 0x04, 0x05, 0x06 // ... }, 0x04 }, Package (0x02) { "a", Buffer (0x04) { 0x07, 0x08, 0x09, 0x0A // .... } }, Package (0x02) { Buffer (0x05) { 0x0B, 0x0C, 0x0D, 0x0E, 0x0F // ..... }, "qw" }, Package (0x03) { Buffer (0x02) { 0x10, 0x11 // .. }, "12r", 0x37 }, Package (0x03) { Buffer (0x02) { 0x12, 0x13 // .. }, 0x38, "ghjk" }, Package (0x03) { 0x39, Buffer (0x03) { 0x14, 0x15, 0x16 // ... }, "ghjkf" }, Package (0x03) { 0x3A, "sdfghj", Buffer (0x02) { 0x17, 0x18 // .. } }, Package (0x03) { "sdfghjg", Buffer (0x01) { 0x19 // . }, 0x3B }, Package (0x03) { "sdfghjgg", 0x3C, Buffer (0x02) { 0x1A, 0x1B // .. } }, /* 19, Integer, String, Buffer, Package */ Package (0x01) { Package (0x01) { 0x00 } }, Package (0x02) { 0x00, Package (0x02) { 0x00, 0x01 } }, Package (0x02) { Package (0x01) { 0x00 }, 0x01 }, Package (0x02) { "qwhj", Package (0x03) { 0x00, 0x01, 0x02 } }, Package (0x02) { Package (0x01) { 0x00 }, "ffrgg" }, Package (0x03) { 0x01, "qwum", Package (0x04) { 0x03, 0x04, 0x04, 0x04 } }, Package (0x03) { 0x02, Package (0x05) { 0x05, 0x05, 0x05, 0x05, 0x05 }, "dfgh" }, Package (0x03) { "qwu", 0x03, Package (0x06) { 0x06, 0x06, 0x06, 0x06, 0x06, 0x06 } }, Package (0x03) { "qwuuio", Package (0x07) { 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07 }, 0x04 }, Package (0x03) { Package (0x08) { 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08 }, "asd0000f", 0x05 }, Package (0x03) { Package (0x07) { 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09 }, 0x06, "fasdfbvcd" }, /* 30 */ Package (0x02) { Package (0x06) { 0x0A, 0x01, 0x01, 0x01, 0x01, 0x02 }, Buffer (0x06) { 0x1C, 0x02, 0x03, 0x04, 0x05, 0x06 // ...... } }, Package (0x02) { Buffer (0x06) { 0x1D, 0x02, 0x03, 0x04, 0x05, 0x06 // ...... }, Package (0x05) { 0x09, 0x08, 0x07, 0x06, 0x05 } }, Package (0x03) { Package (0x04) { 0x00, 0x08, 0x07, 0x06 }, 0x09, Buffer (0x06) { 0x01, 0x02, 0x1E, 0x04, 0x05, 0x06 // ...... } }, Package (0x03) { Package (0x03) { 0x06, 0x05, 0x03 }, Buffer (0x06) { 0x01, 0x02, 0x1F, 0x04, 0x05, 0x06 // ...... }, 0x0A }, Package (0x03) { Buffer (0x06) { 0x01, 0x02, 0x20, 0x04, 0x05, 0x06 // .. ... }, Package (0x02) { 0x06, 0x07 }, 0x0B }, Package (0x03) { Buffer (0x06) { 0x01, 0x02, 0x21, 0x04, 0x05, 0x06 // ..!... }, 0x0C, Package (0x07) { 0x00 } }, Package (0x03) { 0x0C, Package (0x02) { 0x07, 0x06 }, Buffer (0x06) { 0x01, 0x02, 0x22, 0x04, 0x05, 0x06 // .."... } }, Package (0x03) { 0x0D, Buffer (0x06) { 0x01, 0x02, 0x23, 0x04, 0x05, 0x06 // ..#... }, Package (0x03) { 0x05, 0x04, 0x06 } }, Package (0x03) { Package (0x04) { 0x08, 0x07, 0x06, 0x05 }, "sdfghjg0", Buffer (0x01) { 0x24 // $ } }, Package (0x03) { Package (0x05) { 0x08, 0x07, 0x08, 0x09, 0x00 }, Buffer (0x02) { 0x25, 0x26 // %& }, "cbvnm" }, /* 40 */ Package (0x03) { "sdfgh1jg", Buffer (0x01) { 0x27 // ' }, Package (0x06) { 0x09, 0x09, 0x07, 0x06, 0x05, 0x04 } }, Package (0x03) { "sdf2ghjg", Package (0x07) { 0x09, 0x00, 0x03, 0x04, 0x05, 0x07, 0x06 }, Buffer (0x03) { 0x28, 0x01, 0x02 // (.. } }, Package (0x03) { Buffer (0x02) { 0x29, 0x02 // ). }, "cb3vnm", Package (0x06) { 0x08, 0x00, 0x03, 0x05, 0x01, 0x08 } }, Package (0x03) { Buffer (0x02) { 0x01, 0x2A // .* }, Package (0x05) { 0x08, 0x07, 0x06, 0x05, 0x04 }, "zx" }, Package (0x04) { Package (0x04) { 0x02, 0x07, 0x00, 0x04 }, "sdfgh4jg", Buffer (0x03) { 0x01, 0x02, 0x2B // ..+ }, 0x3B }, Package (0x04) { Package (0x03) { 0x37, 0x42, 0x4D }, "sdfghj5g", 0x46, Buffer (0x04) { 0x01, 0x02, 0x2C, 0x2D // ..,- } }, Package (0x04) { Package (0x02) { 0x63, 0x0C }, Buffer (0x05) { 0x2E, 0x2F, 0x30, 0x01, 0x02 // ./0.. }, "g6g", 0x3B }, Package (0x04) { Package (0x01) { 0x04D2 }, Buffer (0x03) { 0x31, 0x01, 0x02 // 1.. }, 0x3B, "d7fg" }, Package (0x04) { Package (0x02) { 0x2E, 0x3B }, 0x07, "8sdfghjg", Buffer (0x03) { 0x01, 0x02, 0x32 // ..2 } }, Package (0x04) { Package (0x03) { 0x4C, 0x62, 0x3E }, 0x08, Buffer (0x02) { 0x33, 0x02 // 3. }, "9sdfghjg" }, /* 50 */ Package (0x04) { "s10dfghjg", Package (0x04) { 0x2F, 0x4E, 0x4A, 0x25 }, Buffer (0x02) { 0x01, 0x34 // .4 }, 0x3B }, Package (0x04) { "sdf11ghjg", Package (0x05) { 0x46, 0x0C, 0x22, 0x2D, 0x38 }, 0x46, Buffer (0x01) { 0x35 // 5 } }, Package (0x04) { Buffer (0x03) { 0x01, 0x02, 0x36 // ..6 }, Package (0x06) { 0x5A, 0x0C, 0x0D, 0x0E, 0x0F, 0x13 }, "g12g", 0x3B }, Package (0x04) { Buffer (0x03) { 0x01, 0x02, 0x37 // ..7 }, Package (0x05) { 0x57, 0x5E, 0x53, 0x2A, 0x36 }, 0x3B, "d1f3g" }, Package (0x04) { 0x07, Package (0x04) { 0x22, 0x38, 0x4E, 0x5A }, "1sdf4ghjg", Buffer (0x03) { 0x01, 0x02, 0x38 // ..8 } }, Package (0x04) { 0x08, Package (0x03) { 0x4C, 0x2B, 0x4F }, Buffer (0x04) { 0x01, 0x02, 0x39, 0x3A // ..9: }, "s1dfg5hjg" }, Package (0x04) { "sd1fg6hjg", Buffer (0x03) { 0x01, 0x02, 0x3B // ..; }, Package (0x02) { 0x37, 0x59 }, 0x3B }, Package (0x04) { "sdfg17hjg", 0x46, Package (0x01) { 0x5C }, Buffer (0x03) { 0x01, 0x3C, 0x02 // .<. } }, Package (0x04) { Buffer (0x02) { 0x3D, 0x02 // =. }, "g18g", Package (0x02) { 0x43, 0x59 }, 0x3B }, Package (0x04) { Buffer (0x02) { 0x01, 0x3E // .> }, 0x3B, Package (0x03) { 0x2E, 0x59, 0x5A }, "dfg19" }, /* 60 */ Package (0x04) { 0x82987640, "sdf2gh0jg", Package (0x04) { 0x2B, 0x4F, 0x2D, 0x43 }, Buffer (0x03) { 0x01, 0x02, 0x3F // ..? } }, Package (0x04) { 0x08, Buffer (0x03) { 0x40, 0x01, 0x02 // @.. }, Package (0x03) { 0x38, 0x4E, 0x60 }, "21sdfghjg" }, Package (0x04) { "sd22fghjg", Buffer (0x01) { 0x41 // A }, 0x3B, Package (0x02) { 0x31, 0x3C } }, Package (0x04) { "sdfg23hjg", 0x46, Buffer (0x04) { 0x42, 0x43, 0x01, 0x02 // BC.. }, Package (0x01) { 0x14 } }, Package (0x04) { Buffer (0x05) { 0x01, 0x02, 0x44, 0x45, 0x46 // ..DEF }, "2g4g", 0x3B, Package (0x02) { 0x0B, 0x16 } }, Package (0x04) { Buffer (0x02) { 0x47, 0x02 // G. }, 0x3B, "2dfg5", Package (0x03) { 0x0B, 0x16, 0x21 } }, Package (0x04) { 0x07, "sd26fghjg", Buffer (0x02) { 0x01, 0x48 // .H }, Package (0x04) { 0x37, 0x42, 0x4D, 0x58 } }, Package (0x04) { 0x00117B4D, Buffer (0x05) { 0x01, 0x49, 0x02, 0x03, 0x04 // .I... }, "shjd2fg7hjg", Package (0x07) { 0x59, 0x43, 0x36, 0x20, 0x01, 0x02, 0x03 } }, Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { 0x9B8DEF45 } } } } }, Package (0xFF) { 0x09, 0x07, 0x08, 0x59, 0x43, 0x36, 0x20, 0x01, 0x02, 0x03, 0x04D2, 0x0006F855 }, /* 70 */ Package (0x0A) { 0x00A88B2D, Buffer (0xCA) { 0x01, 0x49, 0x5C, 0x27, 0x04 // .I\'. }, Buffer (0x05) { 0x01, 0x49, 0x5C, 0x27, 0x04 // .I\'. }, "shjd2fg7hjg0123456", "0123456789qwertyuiop012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", Package (0x0B) { 0x59, 0x43, 0x36, 0x20, 0x01, 0x02, 0x03, 0x21, 0x2C, 0x37, 0x42 }, Package (0xFF) { 0x59, 0x43, 0x36, 0x20, 0x01, 0x02, 0x03, 0x04D2, 0x0006F855 } }, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, /* 80 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, /* 100 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, /* 200 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, /* 250 */ 0xFA, 0xFB, 0xFC, 0xFD, /* 254 (maximal element) */ /* + one encircling Package, 0-63 */ Package (0xFF) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x05) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x02) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x02) { /* 64-127 */ Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x02) { /* 128-191 */ Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x02) { /* 192-253 */ Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x01) { Package (0x04) { 0x9B8DEF45, "q0w1e2r3t4y5u6i7o8p91234567890", Buffer (0x0A) { /* 0000 */ 0x11, 0x1C, 0x45, 0x0B, 0x16, 0x22, 0x23, 0x38, // ..E.."#8 /* 0008 */ 0x43, 0x0B // C. }, Package (0x09) { 0x13, 0x1B, 0x4A, 0x20, 0x12, 0x02, 0x03, 0x43, 0x22 } /* 192-253 */ } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }, 0x19283746 /* 128-191 */ } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }, 0x98765432 /* 64-127 */ } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }, 0x12345678 /* 32-63 */ } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }, 0xB0AC61DF /* 16-31 */ } } } } } } } } } } } } } } } }, 0xC1DC51B3, "qwertyuiop1234567890", Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x3F, 0x0B, 0x16, 0x22, 0x23, 0x38, // ..?.."#8 /* 0008 */ 0x43 // C }, Package (0x07) { 0x13, 0x1B, 0x4A, 0x20, 0x12, 0x02, 0x03 } /* 0-15 */ } } } } } } } } } } } } } } }, /* 1 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, /* 10 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, /* 100 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, /* 200 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, /* 250 */ 0xFA, 0xFB, 0xFC, 0xFD, Buffer (0x012C) { /* 0000 */ 0x01, 0x02, 0x3F, 0x63, 0x05, 0x43, 0x0E, 0x00, // ..?c.C.. /* 0008 */ 0x06, 0x00, 0x1F // ... } } }) Name (P001, Package (0x1D) { /* 0 - 12 */ Package (0x05) { 0x01, 0x00, 0xB2345678, 0x01, 0x00 }, Package (0x05) { 0x02, 0x05, "qwert", 0x01, 0x01 }, Package (0x05) { 0x03, 0x06, Buffer (0x06) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 // ...... }, 0x01, 0x02 }, Package (0x05) { 0x04, 0x01, 0x00, 0x01, 0x03 }, Package (0x06) { 0x01, 0x00, 0x82987640, 0x02, 0x3C, 0x00 }, Package (0x06) { 0x02, 0x09, "sdf2gh0jg", 0x02, 0x3C, 0x01 }, Package (0x06) { 0x04, 0x04, 0x00, 0x02, 0x3C, 0x02 }, Package (0x06) { 0x03, 0x03, Buffer (0x03) { 0x01, 0x02, 0x3F // ..? }, 0x02, 0x3C, 0x03 }, Package (0x06) { 0x01, 0x00, 0x00117B4D, 0x02, 0x43, 0x00 }, Package (0x06) { 0x03, 0x05, Buffer (0x05) { 0x01, 0x49, 0x02, 0x03, 0x04 // .I... }, 0x02, 0x43, 0x01 }, Package (0x06) { 0x02, 0x0B, "shjd2fg7hjg", 0x02, 0x43, 0x02 }, Package (0x06) { 0x04, 0x07, 0x00, 0x02, 0x43, 0x03 }, Package (0x0A) { 0x01, 0x00, 0x9B8DEF45, 0x06, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* 13-19 */ Package (0x06) { 0x01, 0x00, 0x00A88B2D, 0x02, 0x46, 0x00 }, Package (0x06) { 0x03, 0xCA, Buffer (0xCA) { 0x01, 0x49, 0x5C, 0x27, 0x04 // .I\'. }, 0x02, 0x46, 0x01 }, Package (0x06) { 0x03, 0x05, Buffer (0x05) { 0x01, 0x49, 0x5C, 0x27, 0x04 // .I\'. }, 0x02, 0x46, 0x02 }, Package (0x06) { 0x02, 0x12, "shjd2fg7hjg0123456", 0x02, 0x46, 0x03 }, Package (0x06) { 0x02, 0xC8, "0123456789qwertyuiop012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", 0x02, 0x46, 0x04 }, Package (0x06) { 0x04, 0x0B, 0x00, 0x02, 0x46, 0x05 }, Package (0x06) { 0x04, 0xFF, 0x00, 0x02, 0x46, 0x06 }, /* 20 */ Package (0x06) { 0x03, 0x012C, Buffer (0x012C) { /* 0000 */ 0x01, 0x02, 0x3F, 0x63, 0x05, 0x43, 0x0E, 0x00, // ..?c.C.. /* 0008 */ 0x06, 0x00, 0x1F // ... }, 0x02, 0xFE, 0xFE }, /* 21-28 */ Package (0x15) { 0x01, 0x00, 0xC1DC51B3, 0x11, 0xFE, /* 0-15 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }, Package (0x15) { 0x02, 0x14, "qwertyuiop1234567890", 0x11, 0xFE, /* 0-15 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 }, Package (0x15) { 0x03, 0x09, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x3F, 0x0B, 0x16, 0x22, 0x23, 0x38, // ..?.."#8 /* 0008 */ 0x43 // C }, 0x11, 0xFE, /* 0-15 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03 }, Package (0x15) { 0x04, 0x07, Package (0x07) { 0x13, 0x1B, 0x4A, 0x20, 0x12, 0x02, 0x03 }, 0x11, 0xFE, /* 0-15 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04 }, Package (0x25) { 0x01, 0x00, 0xB0AC61DF, 0x21, 0xFE, /* 0-31 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }, Package (0x45) { 0x01, 0x00, 0x12345678, 0x41, 0xFE, /* 0-63 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }, Package (0x85) { 0x01, 0x00, 0x98765432, 0x81, 0xFE, /* 0-63 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 64-127 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }, Package (0x0103) { 0x01, 0x00, 0x9B8DEF45, 0xFF, 0xFE, /* 0-63 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 64-127 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 128-191 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 192-253 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }) /* n000 - step */ /* n001 - decr cur counter */ /* n002 - incr cur counter */ TS00 (__METHOD__) Name (N000, 0x00) Name (N001, 0x00) Name (N002, 0x00) /* Too much time for 1 there, so use {8/16} */ N000 = 0x01 Divide (C041, N000, N002, N001) /* \M1F6.N001 */ N002 = 0x00 While (N001) { If (PR02) { Debug = N001 /* \M1F6.N001 */ } Local0 = DerefOf (P001 [N002]) Local1 = ObjectType (Local0) M1F5 (__METHOD__, P000, Local0) N002 += N000 /* \M1F6.N000 */ N001-- } Local0 = SizeOf (P000) If ((Local0 != 0xFF)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0xFF) } Local0 = SizeOf (P001) If ((Local0 != 0x1D)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0x1D) } } /* Check uninitialized elements of Package */ /* */ /* Now - causes crash!!!!!!! */ /* Do this test when ObjectType will be fixed. */ Method (M1F7, 0, Serialized) { TS00 (__METHOD__) Name (P000, Package (0xFF){}) /* Store(DeRefOf(Index(p000, 0)), Local0) */ Store (P000 [0x00], Local0) Local2 = ObjectType (Local0) /* Store(ObjectType(Local0), Local1) */ } /* Write Integers into Package, then Read and verify */ /* */ /* ,, */ Method (M1F8, 3, Serialized) { Name (N000, 0x00) Name (NCUR, 0x00) /* Writing with indexes */ N000 = Arg1 NCUR = 0x00 Local0 = Arg2 While (N000) { Arg0 [NCUR] = Local0 If (0x00) { Debug = Local0 } Local0++ N000-- NCUR++ } /* Reading and verifying */ N000 = Arg1 NCUR = 0x00 Local0 = Arg2 While (N000) { Local1 = DerefOf (Arg0 [NCUR]) If (0x00) { Debug = Local1 } If ((Local1 != Local0)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local1, Local0) } Local0++ N000-- NCUR++ } Local0 = ObjectType (Arg0) If ((Local0 != 0x04)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0x04) } Local0 = SizeOf (Arg0) If ((Local0 != Arg1)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, Arg1) } } Method (M1F9, 1, Serialized) { Name (P000, Package (Arg0){}) /* Write */ M1F8 (P000, Arg0, 0x80000000) /* Re-write */ M1F8 (P000, Arg0, 0x12345678) } /* Write/rewrite Integers into Package and verify */ Method (M1FA, 0, Serialized) { TS00 (__METHOD__) M1F9 (0xFF) } /* Write Strings into Package, then Read and verify */ /* */ /* ,, */ Method (M1FB, 3, Serialized) { Name (N000, 0x00) Name (NCUR, 0x00) /* Writing with indexes */ N000 = Arg1 NCUR = 0x00 While (N000) { Concatenate (Arg2, NCUR, Local0) Arg0 [NCUR] = Local0 If (0x00) { Debug = Local0 } N000-- NCUR++ } /* Reading and verifying */ N000 = Arg1 NCUR = 0x00 While (N000) { Concatenate (Arg2, NCUR, Local0) Local1 = DerefOf (Arg0 [NCUR]) If (0x00) { Debug = Local1 } If ((Local1 != Local0)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local1, Local0) } N000-- NCUR++ } Local0 = ObjectType (Arg0) If ((Local0 != 0x04)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0x04) } Local0 = SizeOf (Arg0) If ((Local0 != Arg1)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, Arg1) } } Method (M1FC, 1, Serialized) { Name (P000, Package (Arg0){}) /* Write */ M1FB (P000, Arg0, "qwert") /* Re-write */ M1FB (P000, Arg0, "mnbvcxzdf0123456789qwertyuiopllkjhgfdsa") } /* Write/rewrite Strings into Package and verify */ Method (M1FD, 0, Serialized) { TS00 (__METHOD__) M1FC (0xFF) } /* Write Buffers into Package, then Read and verify */ /* */ /* ,, */ Method (M1FE, 3, Serialized) { Name (N000, 0x00) Name (NCUR, 0x00) /* Writing with indexes */ N000 = Arg1 NCUR = 0x00 While (N000) { Concatenate (Arg2, NCUR, Local0) Arg0 [NCUR] = Local0 If (0x00) { Debug = Local0 } N000-- NCUR++ } /* Reading and verifying */ N000 = Arg1 NCUR = 0x00 While (N000) { Concatenate (Arg2, NCUR, Local0) Local1 = DerefOf (Arg0 [NCUR]) If (0x00) { Debug = NCUR /* \M1FE.NCUR */ Debug = Local0 Debug = Local1 } If ((Local1 != Local0)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, 0x00, 0x00) Debug = Local0 Debug = Local1 Return (Ones) } N000-- NCUR++ } Local0 = ObjectType (Arg0) If ((Local0 != 0x04)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0x04) } Local0 = SizeOf (Arg0) If ((Local0 != Arg1)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, Arg1) } Return (Zero) } /* More complex cases with buffers of different sizes */ /* are performed into conversion tests. */ Method (M1FF, 1, Serialized) { Name (P000, Package (Arg0){}) /* Write */ M1FE (P000, Arg0, Buffer (0x05) { 0x51, 0x52, 0x53, 0x54, 0x55 // QRSTU }) /* Re-write */ M1FE (P000, Arg0, Buffer (0x05) { 0x01, 0x02, 0x03, 0x04, 0x05 // ..... }) } /* Write/rewrite Buffers into Package and verify */ Method (M200, 0, Serialized) { TS00 (__METHOD__) M1FF (0xFF) } /* Write Packages into Package, then Read (and verify) */ /* */ /* ,, */ Method (M201, 3, Serialized) { Name (PR00, 0x00) Name (N000, 0x00) Name (NCUR, 0x00) /* Writing with indexes */ N000 = Arg1 NCUR = 0x00 If (PR00) { Debug = "Writing:" } While (N000) { If (PR00) { Debug = NCUR /* \M201.NCUR */ } Arg0 [NCUR] = Arg2 N000-- NCUR++ } /* Reading (and verifying) */ N000 = Arg1 NCUR = 0x00 If (PR00) { Debug = "Reading:" } While (N000) { If (PR00) { Debug = NCUR /* \M201.NCUR */ } Local1 = DerefOf (Arg0 [NCUR]) Local0 = ObjectType (Local1) If ((Local0 != 0x04)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0x04) Return (Ones) } N000-- NCUR++ } Local0 = ObjectType (Arg0) If ((Local0 != 0x04)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, 0x04) } Local0 = SizeOf (Arg0) If ((Local0 != Arg1)) { ERR (__METHOD__, Z051, __LINE__, 0x00, 0x00, Local0, Arg1) } Return (Zero) } /* More complex cases are performed into obj_deletion.asl test */ Method (M202, 1, Serialized) { Name (P000, Package (Arg0){}) /* Write */ M201 (P000, Arg0, Package (0x01) { 0x51 }) /* Re-write */ M201 (P000, Arg0, Package (0x01) { 0x51 }) } /* Write/rewrite Packages into Package (and verify) */ /* */ /* Verification of the contents of Packages is not */ /* performed, too complex. */ Method (M203, 0, Serialized) { TS00 (__METHOD__) /* m202(255) */ M202 (0x01) } /* Run-method */ Method (PCG0, 0, NotSerialized) { Debug = "TEST: PCG0, Declare Package Object" SRMT ("m1f0") M1F0 () SRMT ("m1f1") M1F1 () SRMT ("m1f2") M1F2 () SRMT ("m1f3") M1F3 () /* SRMT("m1f4") */ /* m1f4() */ SRMT ("m1f6") M1F6 () /* SRMT("m1f7") */ /* m1f7() */ SRMT ("m1fa") M1FA () SRMT ("m1fd") M1FD () SRMT ("m200") M200 () SRMT ("m203") M203 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/name/MAIN.asl0000700000175000017500000000423514773714156027126 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("name", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/common/data.asl") Include ("../../../../runtime/common/dataproc.asl") Include ("../../../../runtime/collections/functional/name/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/name/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/name/Makefile0000700000175000017500000000021414773714156027332 0ustar ivanhuivanhu# name AMLMOD= name COLL= ../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/name/method.asl0000700000175000017500000013145014773714156027662 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Miscellaneous named object creation */ Name (Z133, 0x85) /* * This sub-test is intended to comprehensively verify * the Control Method declaration syntax implementation. * * Declare the Control Method Objects of different signature, * check that properly specified or default arguments values * provide required functionality. * * 17.5.75 Method (Declare Control Method) * Syntax * Method (MethodName, NumArgs, SerializeRule, SyncLevel, * ReturnType, ParameterTypes) {TermList} * * Validated Assertions: * * - Control Method declaration creates an Object in the ACPI * namespace which can be referred by the specified MethodName * either to initiate its invocation or to obtain its AML Object * type. Also MethodName can be used to save a copy of the Object * or a reference to it in another AML Object. * * - ASL compiler should allow only a Namestring data type in the * MethodName position. * * - ASL compiler should allow only an Type3Opcode (integer) constant * expression of the value in the range 0-7 in the NumArgs position. * NumArgs is optional argument. * * - ASL compiler should allow only the keywords 'NotSerialized' * and 'Serialized' in the SerializeRule position. SerializeRule * is optional argument. * * - ASL compiler should allow only an Type3Opcode (integer) constant * expression of the value in the range 0-15 in the SyncLevel position. * SyncLevel is optional argument. If no SyncLevel is specified, SyncLevel * 0 is assumed. * * - ASL compiler should allow only an ObjectTypeKeyword or * a comma-separated ObjectTypeKeywords enclosed with curly * brackets (OTK package) in the ReturnType position. ReturnType * is optional argument. If no ReturnType is specified, ReturnType * UnknownObj is assumed. * ObjectTypeKeyword := UnknownObj | IntObj | StrObj | BuffObj | * PkgObj | FieldUnitObj | DeviceObj | EventObj | * MethodObj | MutexObj | OpRegionObj | PowerResObj | * ThermalZoneObj | BuffFieldObj | DDBHandleObj * * - Every ASL data type should have a respective unique ObjectType Keyword. * * - ASL compiler should report an error when an actual Object specified * to be returned is of inappropriate type. * * - ASL compiler should report an error when there is at least one * control path in the method that returns no any actual Object. * * - ASL compiler should report an error when some different from * UnknownObj ObjectType Keyword specified in the ReturnType position * but no any actual Object specified to be returned. * * - ASL compiler should allow only an OTK package or a package * containing OTK packages along with ObjectTypeKeywords in the * ParameterTypes position. * * - ASL compiler should report an error when ParameterTypes is specified * and the number of members in the ParameterTypes package don't match * NumArgs. * * - ASL compiler should report an error when an actual Object * specified to be a respective argument of the Method is of * inappropriate type. * * - System software should execute a control method by referencing * the objects in the Method body in order. * * - Method opens a name scope. All namespace references that occur * during the method execution are relative to the Method package * location. * * - If the method is declared as Serialized, it can be called * recursively, maybe, through another auxiliary method. * * - One method declared as Serialized can call another * one declared as Serialized too when the SyncLevel of * the second method is not less than that of the first. * * - The method declared as Serialized can acquire an Mutex * when the SyncLevel of the Mutex is not less than that of * the method. * * - If some method acquired an Mutex it can call another one * declared as Serialized when the SyncLevel of the called * method is not less than that of the Mutex. * * - All Acquire terms must refer to a synchronization object * with an equal or greater SyncLevel to the current Method level. * * - The method declared as Serialized can release an Mutex * when the SyncLevel of the Mutex is not less than that of * the method. * * - All namespace objects created by a method should be destroyed * when method execution exits. * */ /* Flags of types of Computational Data Objects */ /* (Fields and Integer, String, Buffer) */ Name (BZ00, Buffer (0x12) { /* 0000 */ 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) /* Check Result of operation on equal to Benchmark value */ /* m680(, */ /* , */ /* , */ /* ) */ Method (M205, 4, NotSerialized) { Local0 = ObjectType (Arg2) Local1 = ObjectType (Arg3) If ((Local0 != Local1)) { ERR (Concatenate (Arg0, "-OType"), Z133, __LINE__, 0x00, 0x00, Local0, Local1) Return (0x01) } ElseIf (DerefOf (BZ00 [Local0])) { If (!Y119) { If ((Local1 == 0x01)) { /* Cast 64-bit to 32-bit */ If (!F64) { Arg3 = Arg3 } } } If ((Arg2 != Arg3)) { ERR (Arg0, Z133, __LINE__, 0x00, 0x00, Arg2, Arg3) Return (0x01) } } ElseIf ((Local0 == 0x08)) { /* Methods, compare the results of them */ Local2 = M209 (Concatenate (Arg0, "-Method"), Arg1, Arg2, Arg3) Return (Local2) } ElseIf ((Local0 == 0x04)) { /* Packages */ Local2 = M20A (Concatenate (Arg0, "-Pack"), Arg1, Arg2, Arg3) Return (Local2) } Return (0x00) } /* Check that Results of the Methods are equal each other */ Method (M209, 4, Serialized) { Name (MMM0, 0x00) Name (MMM1, 0x00) CopyObject (Arg2, MMM0) /* \M209.MMM0 */ CopyObject (Arg3, MMM1) /* \M209.MMM1 */ Return (M205 (Arg0, Arg1, MMM0, MMM1)) } /* Check that two Packages are equal each other */ Method (M20A, 4, NotSerialized) { Local0 = SizeOf (Arg3) If ((SizeOf (Arg2) != Local0)) { ERR (Concatenate (Arg0, "-Size"), Z133, __LINE__, 0x00, 0x00, SizeOf (Arg2), Local0) Return (0x01) } While (Local0) { Local0-- Local1 = ObjectType (DerefOf (Arg2 [Local0])) Local2 = ObjectType (DerefOf (Arg3 [Local0])) If ((Local1 != Local2)) { /* ObjectType is corrupted */ ERR (Concatenate (Arg0, "-OType"), Z133, __LINE__, 0x00, 0x00, Local1, Local2) Return (0x01) } ElseIf (DerefOf (BZ00 [Local1])) { /* the computational data type */ If ((DerefOf (Arg2 [Local0]) != DerefOf (Arg3 [Local0] ))) { /* The value is corrupted */ ERR (Arg0, Z133, __LINE__, 0x00, 0x00, DerefOf (Arg2 [Local0]), DerefOf ( Arg3 [Local0])) Return (0x01) } } } Return (0x00) } Scope (\_SB) { Method (M206, 0, NotSerialized) { } } Method (M207, 0, Serialized) { Method (M240, 0, NotSerialized) { Method (MM00, 0, NotSerialized) { Return ("\\m207.m240.mm00") } Method (\_SB.M206.MM00, 0, NotSerialized) { Return ("\\_SB.m206.mm00") } M205 (__METHOD__, 0x01, ObjectType (MM00), 0x08) M205 (__METHOD__, 0x02, MM00 (), "\\m207.m240.mm00") M205 (__METHOD__, 0x03, ObjectType (\M207.M240.MM00), 0x08) M205 (__METHOD__, 0x04, \M207.M240.MM00 (), "\\m207.m240.mm00") M205 (__METHOD__, 0x05, ObjectType (^M240.MM00), 0x08) M205 (__METHOD__, 0x06, ^M240.MM00 (), "\\m207.m240.mm00") M205 (__METHOD__, 0x07, ObjectType (\_SB.M206.MM00), 0x08) M205 (__METHOD__, 0x08, \_SB.M206.MM00 (), "\\_SB.m206.mm00") } Method (M241, 0, NotSerialized) { Method (MM10, 0, NotSerialized) { Return ("\\m207.m241.mm10") } Method (MM20, 0, NotSerialized) { Return ("\\m207.m241.mm20") } Method (MM30, 0, NotSerialized) { Return ("\\m207.m241.mm30") } Method (MM40, 0, NotSerialized) { Return ("\\m207.m241.mm40") } Method (MM50, 0, NotSerialized) { Return ("\\m207.m241.mm50") } Method (MM60, 0, NotSerialized) { Return ("\\m207.m241.mm60") } Method (MM00, 0, NotSerialized) { Return ("\\m207.m241.mm00") } Method (MM01, 1, NotSerialized) { Return ("\\m207.m241.mm01") } Method (MM02, 2, NotSerialized) { Return ("\\m207.m241.mm02") } Method (MM03, 3, NotSerialized) { Return ("\\m207.m241.mm03") } Method (MM04, 4, NotSerialized) { Return ("\\m207.m241.mm04") } Method (MM05, 5, NotSerialized) { Return ("\\m207.m241.mm05") } Method (MM06, 6, NotSerialized) { Return ("\\m207.m241.mm06") } Method (MM07, 7, NotSerialized) { Return ("\\m207.m241.mm07") } /* Numargs as Type3Opcode (integer) constant expression */ /* Invalid checksum warning */ /* Method(mm09, Add(6, 1)) {Return ("\\m207.m241.mm09")} */ M205 (__METHOD__, 0x09, ObjectType (MM10), 0x08) M205 (__METHOD__, 0x0A, MM10 (), "\\m207.m241.mm10") M205 (__METHOD__, 0x0B, ObjectType (MM20), 0x08) M205 (__METHOD__, 0x0C, MM20 (), "\\m207.m241.mm20") M205 (__METHOD__, 0x0D, ObjectType (MM30), 0x08) M205 (__METHOD__, 0x0E, MM30 (), "\\m207.m241.mm30") M205 (__METHOD__, 0x0F, ObjectType (MM40), 0x08) M205 (__METHOD__, 0x10, MM40 (), "\\m207.m241.mm40") M205 (__METHOD__, 0x11, ObjectType (MM50), 0x08) M205 (__METHOD__, 0x12, MM50 (), "\\m207.m241.mm50") M205 (__METHOD__, 0x13, ObjectType (MM60), 0x08) If (Y157) { M205 (__METHOD__, 0x14, MM60 (), "\\m207.m241.mm60") } M205 (__METHOD__, 0x15, ObjectType (MM00), 0x08) M205 (__METHOD__, 0x16, MM00 (), "\\m207.m241.mm00") M205 (__METHOD__, 0x17, ObjectType (MM01), 0x08) M205 (__METHOD__, 0x18, MM01 (0x00), "\\m207.m241.mm01") M205 (__METHOD__, 0x19, ObjectType (MM02), 0x08) M205 (__METHOD__, 0x1A, MM02 (0x00, 0x01), "\\m207.m241.mm02") M205 (__METHOD__, 0x1B, ObjectType (MM03), 0x08) M205 (__METHOD__, 0x1C, MM03 (0x00, 0x01, 0x02), "\\m207.m241.mm03") M205 (__METHOD__, 0x1D, ObjectType (MM04), 0x08) M205 (__METHOD__, 0x1E, MM04 (0x00, 0x01, 0x02, 0x03), "\\m207.m241.mm04") M205 (__METHOD__, 0x1F, ObjectType (MM05), 0x08) M205 (__METHOD__, 0x20, MM05 (0x00, 0x01, 0x02, 0x03, 0x04), "\\m207.m241.mm05") M205 (__METHOD__, 0x21, ObjectType (MM06), 0x08) M205 (__METHOD__, 0x22, MM06 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05), "\\m207.m241.mm06") M205 (__METHOD__, 0x23, ObjectType (MM07), 0x08) M205 (__METHOD__, 0x24, MM07 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06), "\\m207.m241.mm07") /* Invalid checksum warning */ /* m205(ts, 37, ObjectType(mm09), 8) */ /* Too many arguments ^ (MM09 requires 0) */ /* m205(ts, 38, mm09(0, 1, 2, 3, 4, 5, 6), "\\m207.m241.mm09") */ } Method (M242, 0, NotSerialized) { Method (MM10, 0, NotSerialized) { Return ("\\m207.m242.mm10") } Method (MM20, 0, Serialized) { Return ("\\m207.m242.mm20") } Method (MM30, 0, NotSerialized) { Return ("\\m207.m242.mm30") } Method (MM40, 0, Serialized) { Return ("\\m207.m242.mm40") } Method (MM50, 0, NotSerialized) { Return ("\\m207.m242.mm50") } Method (MM60, 0, Serialized) { Return ("\\m207.m242.mm60") } Method (MM00, 0, Serialized) { Return ("\\m207.m242.mm00") } Method (MM01, 1, Serialized, 1) { Return ("\\m207.m242.mm01") } Method (MM02, 2, Serialized, 2) { Return ("\\m207.m242.mm02") } Method (MM03, 3, Serialized, 3) { Return ("\\m207.m242.mm03") } Method (MM04, 4, Serialized, 4) { Return ("\\m207.m242.mm04") } Method (MM05, 5, Serialized, 5) { Return ("\\m207.m242.mm05") } Method (MM06, 6, Serialized, 6) { Return ("\\m207.m242.mm06") } Method (MM07, 7, Serialized, 7) { Return ("\\m207.m242.mm07") } Method (MM08, 0, Serialized, 8) { Return ("\\m207.m242.mm08") } Method (MM09, 1, Serialized, 9) { Return ("\\m207.m242.mm09") } Method (MM0A, 2, Serialized, 10) { Return ("\\m207.m242.mm0a") } Method (MM0B, 3, Serialized, 11) { Return ("\\m207.m242.mm0b") } Method (MM0C, 4, Serialized, 12) { Return ("\\m207.m242.mm0c") } Method (MM0D, 5, Serialized, 13) { Return ("\\m207.m242.mm0d") } Method (MM0E, 6, Serialized, 14) { Return ("\\m207.m242.mm0e") } Method (MM0F, 7, Serialized, 15) { Return ("\\m207.m242.mm0f") } /* Numargs as Type3Opcode (integer) constant expression */ /* Invalid checksum warning */ /* Method(mm70, Add(6, 1), NotSerialized) {Return ("\\m207.m242.mm70")} */ /* SyncLevel as Type3Opcode (integer) constant expression */ Method (MM80, 7, Serialized, 15) { Return ("\\m207.m242.mm80") } /* Both Numargs and SyncLevel as Type3Opcode (integer) constant expressions */ /* Invalid checksum warning */ /* Method(mm90, Add(6, 1), Serialized, Add(14, 1)) {Return ("\\m207.m242.mm90")} */ M205 (__METHOD__, 0x27, ObjectType (MM10), 0x08) M205 (__METHOD__, 0x28, MM10 (), "\\m207.m242.mm10") M205 (__METHOD__, 0x29, ObjectType (MM10), 0x08) M205 (__METHOD__, 0x2A, MM20 (), "\\m207.m242.mm20") M205 (__METHOD__, 0x2B, ObjectType (MM10), 0x08) M205 (__METHOD__, 0x2C, MM30 (), "\\m207.m242.mm30") M205 (__METHOD__, 0x2D, ObjectType (MM10), 0x08) M205 (__METHOD__, 0x2E, MM40 (), "\\m207.m242.mm40") M205 (__METHOD__, 0x2F, ObjectType (MM10), 0x08) If (Y157) { M205 (__METHOD__, 0x30, MM50 (), "\\m207.m242.mm50") } M205 (__METHOD__, 0x31, ObjectType (MM10), 0x08) If (Y157) { M205 (__METHOD__, 0x32, MM60 (), "\\m207.m242.mm60") } M205 (__METHOD__, 0x33, ObjectType (MM00), 0x08) M205 (__METHOD__, 0x34, MM00 (), "\\m207.m242.mm00") M205 (__METHOD__, 0x35, ObjectType (MM01), 0x08) M205 (__METHOD__, 0x36, MM01 (0x00), "\\m207.m242.mm01") M205 (__METHOD__, 0x37, ObjectType (MM02), 0x08) M205 (__METHOD__, 0x38, MM02 (0x00, 0x01), "\\m207.m242.mm02") M205 (__METHOD__, 0x39, ObjectType (MM03), 0x08) M205 (__METHOD__, 0x3A, MM03 (0x00, 0x01, 0x02), "\\m207.m242.mm03") M205 (__METHOD__, 0x3B, ObjectType (MM04), 0x08) M205 (__METHOD__, 0x3C, MM04 (0x00, 0x01, 0x02, 0x03), "\\m207.m242.mm04") M205 (__METHOD__, 0x3D, ObjectType (MM05), 0x08) M205 (__METHOD__, 0x3E, MM05 (0x00, 0x01, 0x02, 0x03, 0x04), "\\m207.m242.mm05") M205 (__METHOD__, 0x3F, ObjectType (MM06), 0x08) M205 (__METHOD__, 0x40, MM06 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05), "\\m207.m242.mm06") M205 (__METHOD__, 0x41, ObjectType (MM07), 0x08) M205 (__METHOD__, 0x42, MM07 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06), "\\m207.m242.mm07") M205 (__METHOD__, 0x43, ObjectType (MM00), 0x08) M205 (__METHOD__, 0x44, MM08 (), "\\m207.m242.mm08") M205 (__METHOD__, 0x45, ObjectType (MM01), 0x08) M205 (__METHOD__, 0x46, MM09 (0x00), "\\m207.m242.mm09") M205 (__METHOD__, 0x47, ObjectType (MM02), 0x08) M205 (__METHOD__, 0x48, MM0A (0x00, 0x01), "\\m207.m242.mm0a") M205 (__METHOD__, 0x49, ObjectType (MM03), 0x08) M205 (__METHOD__, 0x4A, MM0B (0x00, 0x01, 0x02), "\\m207.m242.mm0b") M205 (__METHOD__, 0x4B, ObjectType (MM04), 0x08) M205 (__METHOD__, 0x4C, MM0C (0x00, 0x01, 0x02, 0x03), "\\m207.m242.mm0c") M205 (__METHOD__, 0x4D, ObjectType (MM05), 0x08) M205 (__METHOD__, 0x4E, MM0D (0x00, 0x01, 0x02, 0x03, 0x04), "\\m207.m242.mm0d") M205 (__METHOD__, 0x4F, ObjectType (MM06), 0x08) M205 (__METHOD__, 0x50, MM0E (0x00, 0x01, 0x02, 0x03, 0x04, 0x05), "\\m207.m242.mm0e") M205 (__METHOD__, 0x51, ObjectType (MM07), 0x08) M205 (__METHOD__, 0x52, MM0F (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06), "\\m207.m242.mm0f") /* Invalid checksum warning */ /* m205(ts, 83, ObjectType(mm70), 8) */ /* Too many arguments ^ (MM70 requires 0) */ /* m205(ts, 84, mm70(0, 1, 2, 3, 4, 5, 6), "\\m207.m242.mm70") */ M205 (__METHOD__, 0x55, ObjectType (MM80), 0x08) /* Outstanding allocations */ /* m205(ts, 86, mm80(0, 1, 2, 3, 4, 5, 6), "\\m207.m242.mm80") */ /* Invalid checksum warning */ /* m205(ts, 87, ObjectType(mm90), 8) */ /* Too many arguments ^ (MM90 requires 0) */ /* m205(ts, 88, mm90(0, 1, 2, 3, 4, 5, 6), "\\m207.m242.mm90") */ } /* Integer */ Name (INT0, 0xFEDCBA9876543210) /* String */ Name (STR0, "source string") /* Buffer */ Name (BUF0, Buffer (0x09) { /* 0000 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0008 */ 0x01 // . }) /* Initializer of Fields */ Name (BUF2, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }) /* Base of Buffer Fields */ Name (BUFZ, Buffer (0x30){}) /* Package */ Name (PAC0, Package (0x03) { 0xFEDCBA987654321F, "test package", Buffer (0x09) { /* 0000 */ 0x13, 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, // ........ /* 0008 */ 0x0B // . } }) /* Operation Region */ OperationRegion (OPR0, SystemMemory, 0x00, 0x30) /* Field Unit */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLU0, 69, FLU2, 64, FLU4, 32 } /* Device */ Device (DEV0) { Name (S000, "DEV0") } /* Event */ Event (EVE0) /* Method */ Method (MMM0, 0, NotSerialized) { Return ("ff0X") } /* Mutex */ Mutex (MTX0, 0x00) /* Power Resource */ PowerResource (PWR0, 0x00, 0x0000) { Name (S000, "PWR0") } /* Processor */ Processor (CPU0, 0x00, 0xFFFFFFFF, 0x00) { Name (S000, "CPU0") } /* Thermal Zone */ ThermalZone (TZN0) { Name (S000, "TZN0") } /* Buffer Field */ CreateField (BUFZ, 0x00, 0x45, BFL0) CreateField (BUFZ, 0x50, 0x40, BFL2) CreateField (BUFZ, 0xA0, 0x20, BFL4) /* DDBHandle */ Name (DDB0, Ones) /* Reference */ Name (ORF0, "ORF0") Name (REF0, Package (0x01){}) Method (M243, 0, NotSerialized) { Method (MM00, 1, NotSerialized) { Arg0 = (DerefOf (Arg0) + 0x01) } Method (MM01, 0, NotSerialized) { Return (INT0) /* \M207.INT0 */ } Method (MM11, 0, NotSerialized) { Return (INT0) /* \M207.INT0 */ } Method (MM02, 0, NotSerialized) { Return (STR0) /* \M207.STR0 */ } Method (MM03, 0, NotSerialized) { Return (BUF0) /* \M207.BUF0 */ } Method (MM04, 0, NotSerialized) { Return (PAC0) /* \M207.PAC0 */ } Method (MM05, 0, NotSerialized) { Return (FLU0) /* \M207.FLU0 */ } Method (MM06, 0, NotSerialized) { Return (DEV0) /* \M207.DEV0 */ } Method (MM07, 0, NotSerialized) { Return (EVE0) /* \M207.EVE0 */ } Method (MM08, 0, NotSerialized) { CopyObject (MMM0 (), Local0) Return (Local0) } Method (MM09, 0, NotSerialized) { Return (MTX0) /* \M207.MTX0 */ } Method (MM0A, 0, NotSerialized) { Return (OPR0) /* \M207.OPR0 */ } Method (MM0B, 0, NotSerialized) { Return (PWR0) /* \M207.PWR0 */ } Method (MM0C, 0, NotSerialized) { Return (CPU0) /* \M207.CPU0 */ } Method (MM0D, 0, NotSerialized) { Return (TZN0) /* \M207.TZN0 */ } Method (MM0E, 0, NotSerialized) { Return (BFL0) /* \M207.BFL0 */ } Method (MM0F, 0, NotSerialized) { Return (DDB0) /* \M207.DDB0 */ } /* Formal declaration */ /* Method(mm0g, , , , DebugObj) {Return (Debug)} */ Method (MM0H, 0, NotSerialized) { Return (RefOf (ORF0)) } Local0 = 0xFEDCBA9876543210 M205 (__METHOD__, 0x59, ObjectType (MM00), 0x08) MM00 (RefOf (Local0)) M205 (__METHOD__, 0x5A, Local0, 0xFEDCBA9876543211) M205 (__METHOD__, 0x5B, ObjectType (MM01), 0x08) M205 (__METHOD__, 0x5C, MM01 (), INT0) M205 (__METHOD__, 0x5D, ObjectType (MM02), 0x08) M205 (__METHOD__, 0x5E, MM02 (), STR0) M205 (__METHOD__, 0x5F, ObjectType (MM03), 0x08) M205 (__METHOD__, 0x60, MM03 (), BUF0) M205 (__METHOD__, 0x61, ObjectType (MM04), 0x08) M205 (__METHOD__, 0x62, MM04 (), PAC0) M205 (__METHOD__, 0x63, ObjectType (MM05), 0x08) M205 (__METHOD__, 0x64, MM05 (), FLU0) M205 (__METHOD__, 0x65, ObjectType (MM06), 0x08) M205 (__METHOD__, 0x66, MM06 (), DEV0) M205 (__METHOD__, 0x67, ObjectType (MM07), 0x08) M205 (__METHOD__, 0x68, MM07 (), EVE0) M205 (__METHOD__, 0x69, ObjectType (MM08), 0x08) CopyObject (MMM0 (), Local0) M205 (__METHOD__, 0x6A, MM08 (), Local0) M205 (__METHOD__, 0x6B, ObjectType (MM09), 0x08) M205 (__METHOD__, 0x6C, MM09 (), MTX0) M205 (__METHOD__, 0x6D, ObjectType (MM0A), 0x08) M205 (__METHOD__, 0x6E, MM0A (), OPR0) M205 (__METHOD__, 0x6F, ObjectType (MM0B), 0x08) M205 (__METHOD__, 0x70, MM0B (), PWR0) M205 (__METHOD__, 0x71, ObjectType (MM0C), 0x08) M205 (__METHOD__, 0x72, MM0C (), CPU0) M205 (__METHOD__, 0x73, ObjectType (MM0D), 0x08) If (Y350) { M205 (__METHOD__, 0x74, MM0D (), TZN0) } M205 (__METHOD__, 0x75, ObjectType (MM0E), 0x08) M205 (__METHOD__, 0x76, MM0E (), BFL0) M205 (__METHOD__, 0x77, ObjectType (MM0F), 0x08) M205 (__METHOD__, 0x78, MM0F (), DDB0) /* m205(ts, 121, ObjectType(mm0g), 8) m205(ts, 122, mm0g(), Debug) */ M205 (__METHOD__, 0x7B, ObjectType (MM0H), 0x08) M205 (__METHOD__, 0x7C, DerefOf (MM0H ()), ORF0) } Method (M244, 0, NotSerialized) { Method (MM00, 0, NotSerialized) { Return (STR0) /* \M207.STR0 */ } Method (MM01, 0, NotSerialized) { Return (INT0) /* \M207.INT0 */ } M205 (__METHOD__, 0x7D, ObjectType (MM00), 0x08) M205 (__METHOD__, 0x7E, MM00 (), STR0) M205 (__METHOD__, 0x7F, ObjectType (MM01), 0x08) M205 (__METHOD__, 0x80, MM01 (), INT0) } Method (M245, 0, Serialized) { Name (FLAG, Ones) /* List of types of the parameters contains the same keyword */ Method (MM00, 1, NotSerialized) { FLAG = 0x00 } Method (MM01, 1, NotSerialized) { FLAG = 0x01 } Method (MM02, 2, NotSerialized) { FLAG = 0x02 } Method (MM03, 3, NotSerialized) { FLAG = 0x03 } Method (MM04, 4, NotSerialized) { FLAG = 0x04 } Method (MM05, 5, NotSerialized) { FLAG = 0x05 } Method (MM06, 6, NotSerialized) { FLAG = 0x06 } Method (MM07, 7, NotSerialized) { FLAG = 0x07 } /* List of types of the parameters contains the UnknownObj keyword */ Method (MM08, 1, NotSerialized) { FLAG = 0x08 } Method (MM09, 1, NotSerialized) { FLAG = 0x09 } Method (MM0A, 7, NotSerialized) { FLAG = 0x0A } /* List of types of the parameters contains different keywords */ Method (MM10, 2, NotSerialized) { FLAG = 0x10 } Method (MM11, 2, NotSerialized) { FLAG = 0x11 } Method (MM12, 2, NotSerialized) { FLAG = 0x12 } Method (MM13, 3, NotSerialized) { FLAG = 0x13 } Method (MM14, 4, NotSerialized) { FLAG = 0x14 } Method (MM15, 5, NotSerialized) { FLAG = 0x15 } Method (MM16, 6, NotSerialized) { FLAG = 0x16 } Method (MM17, 7, NotSerialized) { FLAG = 0x17 } Method (MM18, 7, NotSerialized) { FLAG = 0x18 } /* List of types of the parameters contains keyword packages */ /* along with different keywords */ Method (MM20, 1, NotSerialized) { FLAG = 0x20 } Method (MM21, 1, NotSerialized) { FLAG = 0x21 } /* // Bug 148 Method(mm22, 1, , , , {{IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, //ProcessorObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}}) {Store(34, Flag)} */ Method (MM23, 2, NotSerialized) { FLAG = 0x23 } Method (MM24, 2, NotSerialized) { FLAG = 0x24 } Method (MM25, 2, NotSerialized) { FLAG = 0x25 } Method (MM26, 2, NotSerialized) { FLAG = 0x26 } Method (MM27, 2, NotSerialized) { FLAG = 0x27 } Method (MM28, 2, NotSerialized) { FLAG = 0x28 } Method (MM29, 2, NotSerialized) { FLAG = 0x29 } /* // Bug 148 Method(mm2a, 7, , , , { {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, {IntObj, StrObj, BuffObj, PkgObj, FieldUnitObj, DeviceObj, EventObj, MethodObj, MutexObj, OpRegionObj, PowerResObj, ThermalZoneObj, BuffFieldObj, DDBHandleObj}, }) {Store(42, Flag)} */ /* List of types of the parameters contains the same keyword */ M205 (__METHOD__, 0x81, ObjectType (MM00), 0x08) MM00 (0x01) M205 (__METHOD__, 0x82, FLAG, 0x00) M205 (__METHOD__, 0x83, ObjectType (MM01), 0x08) MM01 (0x01) M205 (__METHOD__, 0x84, FLAG, 0x01) M205 (__METHOD__, 0x85, ObjectType (MM02), 0x08) MM02 (0x01, 0x02) M205 (__METHOD__, 0x86, FLAG, 0x02) M205 (__METHOD__, 0x87, ObjectType (MM03), 0x08) MM03 (0x01, 0x02, 0x03) M205 (__METHOD__, 0x88, FLAG, 0x03) M205 (__METHOD__, 0x89, ObjectType (MM04), 0x08) MM04 (0x01, 0x02, 0x03, 0x04) M205 (__METHOD__, 0x8A, FLAG, 0x04) M205 (__METHOD__, 0x8B, ObjectType (MM05), 0x08) MM05 (0x01, 0x02, 0x03, 0x04, 0x05) M205 (__METHOD__, 0x8C, FLAG, 0x05) M205 (__METHOD__, 0x8D, ObjectType (MM06), 0x08) MM06 (0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M205 (__METHOD__, 0x8E, FLAG, 0x06) M205 (__METHOD__, 0x8F, ObjectType (MM07), 0x08) MM07 (0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07) M205 (__METHOD__, 0x90, FLAG, 0x07) /* List of types of the parameters contains the UnknownObj keyword */ M205 (__METHOD__, 0x91, ObjectType (MM08), 0x08) MM08 (0x01) M205 (__METHOD__, 0x92, FLAG, 0x08) M205 (__METHOD__, 0x93, ObjectType (MM09), 0x08) MM09 (0x01) M205 (__METHOD__, 0x94, FLAG, 0x09) M205 (__METHOD__, 0x95, ObjectType (MM0A), 0x08) MM0A (0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07) M205 (__METHOD__, 0x96, FLAG, 0x0A) /* List of types of the parameters contains different keywords */ M205 (__METHOD__, 0x97, ObjectType (MM10), 0x08) MM10 (0x01, 0x02) M205 (__METHOD__, 0x98, FLAG, 0x10) M205 (__METHOD__, 0x99, ObjectType (MM11), 0x08) MM11 (0x01, 0x02) M205 (__METHOD__, 0x9A, FLAG, 0x11) M205 (__METHOD__, 0x9B, ObjectType (MM12), 0x08) MM12 (0x01, 0x02) M205 (__METHOD__, 0x9C, FLAG, 0x12) M205 (__METHOD__, 0x9D, ObjectType (MM13), 0x08) MM13 (0x01, 0x02, 0x03) M205 (__METHOD__, 0x9E, FLAG, 0x13) M205 (__METHOD__, 0x9F, ObjectType (MM14), 0x08) MM14 (0x01, 0x02, 0x03, 0x04) M205 (__METHOD__, 0xA0, FLAG, 0x14) M205 (__METHOD__, 0xA1, ObjectType (MM15), 0x08) MM15 (0x01, 0x02, 0x03, 0x04, 0x05) M205 (__METHOD__, 0xA2, FLAG, 0x15) M205 (__METHOD__, 0xA3, ObjectType (MM16), 0x08) MM16 (0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M205 (__METHOD__, 0xA4, FLAG, 0x16) M205 (__METHOD__, 0xA5, ObjectType (MM17), 0x08) MM17 (0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07) M205 (__METHOD__, 0xA6, FLAG, 0x17) M205 (__METHOD__, 0xA7, ObjectType (MM18), 0x08) MM18 (0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07) M205 (__METHOD__, 0xA8, FLAG, 0x18) /* List of types of the parameters contains keyword packages */ /* along with different keywords */ M205 (__METHOD__, 0xA9, ObjectType (MM20), 0x08) MM20 (0x01) M205 (__METHOD__, 0xAA, FLAG, 0x20) M205 (__METHOD__, 0xAB, ObjectType (MM21), 0x08) MM21 (0x01) M205 (__METHOD__, 0xAC, FLAG, 0x21) /* // Bug 148 m205(ts, 173, ObjectType(mm22), 8) mm22(1) m205(ts, 174, Flag, 34) */ M205 (__METHOD__, 0xAF, ObjectType (MM23), 0x08) MM23 (0x01, 0x02) M205 (__METHOD__, 0xB0, FLAG, 0x23) M205 (__METHOD__, 0xB1, ObjectType (MM24), 0x08) MM24 (0x01, 0x02) M205 (__METHOD__, 0xB2, FLAG, 0x24) M205 (__METHOD__, 0xB3, ObjectType (MM25), 0x08) MM25 (0x01, 0x02) M205 (__METHOD__, 0xB4, FLAG, 0x25) M205 (__METHOD__, 0xB5, ObjectType (MM26), 0x08) MM26 (0x01, 0x02) M205 (__METHOD__, 0xB6, FLAG, 0x26) M205 (__METHOD__, 0xB7, ObjectType (MM27), 0x08) MM27 (0x01, 0x02) M205 (__METHOD__, 0xB8, FLAG, 0x27) M205 (__METHOD__, 0xB9, ObjectType (MM28), 0x08) MM28 (0x01, 0x02) M205 (__METHOD__, 0xBA, FLAG, 0x28) M205 (__METHOD__, 0xBB, ObjectType (MM29), 0x08) MM29 (0x01, 0x02) M205 (__METHOD__, 0xBC, FLAG, 0x29) /* // Bug 148 m205(ts, 189, ObjectType(mm2a), 8) mm2a(1, 2, 3, 4, 5, 6, 7) m205(ts, 190, Flag, 42) */ } /* UnSerialized Method can be invoked recursively */ Method (M246, 0, Serialized) { Name (I000, 0x00) Method (MM00, 1, NotSerialized) { I000++ If (Arg0) { MM01 () } } Method (MM01, 0, NotSerialized) { MM00 (0x00) } I000 = 0x00 MM00 (0x00) M205 (__METHOD__, 0xBF, I000, 0x01) I000 = 0x00 MM00 (0x01) M205 (__METHOD__, 0xC0, I000, 0x02) } /* Serialized Method can be invoked recursively */ Method (M247, 0, Serialized) { Name (I000, 0x00) Method (MM00, 1, Serialized) { I000++ If (Arg0) { MM01 () } } Method (MM01, 0, NotSerialized) { MM00 (0x00) } I000 = 0x00 MM00 (0x00) M205 (__METHOD__, 0xC1, I000, 0x01) I000 = 0x00 MM00 (0x01) M205 (__METHOD__, 0xC2, I000, 0x02) } /* Serialized Method can invoke another Serialized One */ /* if SyncLevel is not lowered */ Method (M248, 0, Serialized) { Name (I000, 0x00) Method (MM00, 1, Serialized) { I000++ If (Arg0) { MM01 () } } Method (MM01, 0, Serialized, 15) { I000++ } I000 = 0x00 MM00 (0x00) M205 (__METHOD__, 0xC3, I000, 0x01) I000 = 0x00 MM00 (0x01) M205 (__METHOD__, 0xC4, I000, 0x02) } /* Serialized Method can acquire an Mutex */ /* if SyncLevel is not lowered */ Method (M249, 0, Serialized) { Mutex (MTX0, 0x0F) Name (I000, 0x00) Method (MM00, 1, Serialized) { I000++ If (Arg0) { Local0 = Acquire (MTX0, 0x0000) If (!M205 (__METHOD__, 0xC5, Local0, Zero)) { I000++ Release (MTX0) } } } I000 = 0x00 MM00 (0x00) M205 (__METHOD__, 0xC6, I000, 0x01) I000 = 0x00 MM00 (0x01) M205 (__METHOD__, 0xC7, I000, 0x02) } /* When Serialized Method calls another one then */ /* the last can acquire an Mutex if SyncLevel is not lowered */ Method (M24A, 0, Serialized) { Mutex (MTX1, 0x0F) Name (I000, 0x00) Method (MM00, 1, Serialized) { I000++ If (Arg0) { MM01 () } } Method (MM01, 0, NotSerialized) { Local0 = Acquire (MTX1, 0x0000) If (!M205 (__METHOD__, 0xC8, Local0, Zero)) { I000++ Release (MTX1) } } I000 = 0x00 MM00 (0x00) M205 (__METHOD__, 0xC9, I000, 0x01) I000 = 0x00 MM00 (0x01) M205 (__METHOD__, 0xCA, I000, 0x02) } /* UnSerialized Method acquiring an Mutex can invoke */ /* another Serialized One if SyncLevel is not lowered */ Method (M24B, 0, Serialized) { Mutex (MTX0, 0x00) Name (I000, 0x00) Method (MM00, 1, NotSerialized) { Local0 = Acquire (MTX0, 0x0000) If (!M205 (__METHOD__, 0xCB, Local0, Zero)) { I000++ If (Arg0) { MM01 () } Release (MTX0) } } Method (MM01, 0, Serialized, 15) { I000++ } I000 = 0x00 MM00 (0x00) M205 (__METHOD__, 0xCC, I000, 0x01) I000 = 0x00 MM00 (0x01) M205 (__METHOD__, 0xCD, I000, 0x02) } /* When UnSerialized Method acquiring an Mutex invokes */ /* another Serialized One then the last can release the */ /* Mutex if Mutex's SyncLevel is not lower than the Method's */ Method (M24C, 0, Serialized) { Mutex (MTX0, 0x00) Name (I000, 0x00) Method (MM00, 1, NotSerialized) { Local0 = Acquire (MTX0, 0x0000) If (!M205 (__METHOD__, 0xCE, Local0, Zero)) { I000++ If (Arg0) { MM01 () } Else { Release (MTX0) } } } Method (MM01, 0, Serialized) { I000++ Release (MTX0) } I000 = 0x00 MM00 (0x00) M205 (__METHOD__, 0xCF, I000, 0x01) I000 = 0x00 MM00 (0x01) M205 (__METHOD__, 0xD0, I000, 0x02) } SRMT ("m240") M240 () SRMT ("m241") M241 () SRMT ("m242") M242 () SRMT ("m243") M243 () SRMT ("m244") M244 () SRMT ("m245") M245 () SRMT ("m246") M246 () SRMT ("m247") If (Y349) { M247 () } Else { BLCK () } SRMT ("m248") M248 () SRMT ("m249") M249 () SRMT ("m24a") M24A () SRMT ("m24b") M24B () SRMT ("m24c") M24C () } /* Run-method */ Method (NM01, 0, NotSerialized) { Debug = "TEST: NM01, Declare Control Method Named Object" M207 () CH03 ("NM01", Z133, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/0000700000175000017500000000000014773714157030214 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/DECL.asl0000700000175000017500000000420614773714157031431 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/common/mx_objects.asl") Include ("../../../../runtime/collections/functional/synchronization/event.asl") Include ("../../../../runtime/collections/functional/synchronization/mutex.asl") Include ("../../../../runtime/collections/functional/synchronization/mutex2.asl") Include ("../../../../runtime/collections/functional/synchronization/mutex_proc.asl") Include ("../../../../runtime/collections/functional/synchronization/serialized.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/RUN.asl0000700000175000017500000000371314773714157031370 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Synchronization", TCLF, 0x0C, W00C)) { M300 () M3BD () MUX0 () SRMT ("EVN0") EVN0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/SPEC0000700000175000017500000001426514773714157030704 0ustar ivanhuivanhuSingle thread tests =================== m301: Valid sequence of requests, no exceptions expected. Acquire mutexes of monotone increasing level (Global lock on level 0 too) for all available levels from 0 up to 15, then Release them all in the inverse order. m369: Valid sequence of requests, no exceptions expected. Acquire mutexes of monotone increasing level (Global lock on level 0 too) for all available levels from 0 up to 15, Acquire 2 mutexes of each level, then Release them all in the inverse order (keep the exactly inverse order for Releasing mutexes of the same level too). m36a: Exactly m301 but additionally: all Release operations are located into separate method. m36b: Exactly m301 but additionally: all Acquire and Release operations are located into separate methods. m36c: Invalid sequence of Acquire operations: 1) Acquire N-th level mutex (N>=1): 2) Acquire: - mutexes from 0 up to (N-1)-levels - Global lock 3) exception AE_AML_MUTEX_ORDER is expected for each Acquire of (2) m389: Exception on Release. Release the mutex twice. Attempt to Release free mutex: Acquire, Release, Release. Exception is expected on the second Release. Do it for all level mutexes and Global lock too. m07b: Exception on Release. Attempt to Release clean mutex which was never Acquired. m38a: Exception on Release. Break the sequence of Acquiring mutexes while Releasing them, jump over the level. Invalid sequence of Releases: 1) Take level from range (N>=1 & N<=15) 2) Acquire mutexes of all levels from 0 up to N 3) Try to Release any mutex: - in the level range from (N-1) down to 0 - Global lock 4) Do 1-3 for all levels in range (N>=1 & N<=15) m38d: Check up that the Releasing of the same level mutexes can be performed in an arbitrary order, independently on the order they were Acquired. For each level separately, one by one - Acquire all for one level then Release them all and then only go to the next level. Involve the Global lock too. m07d: Check up that the Releasing of the same level mutexes can be performed in an arbitrary order, independently on the order they were Acquired. Cross through all the levels - at first Acquire all for all levels then Release them all. m07a: Multiply owning the same ACPI mutex. Acquire the same mutex arg2 times, then Release it (arg2+1) times, expect exception on the last Release. The repeated Acquire are made with TimeoutValue equal to zero. m07e: Acquire/Release combination #1 m08b: Check the life after AE_AML_MUTEX_ORDER exception on Acquire. 1) Acquire N-th level mutex MUX-N 2) run Acquire (N-2)-th level mutex MUX-(N-2) and get AE_AML_MUTEX_ORDER exception 3) run Acquire (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception 4) Acquire mutex MUX-N and check that no exception on this operation 5) Release mutex MUX-N and check that no exception on this operation 6) Release mutex MUX-N and check that no exception on this operation 7) do 1-6 for all N in range 2-15 levels 8) check additionally that all the mutexes are free (run Release and get AE_AML_MUTEX_NOT_ACQUIRED exception for all the mutexes of all levels) 9) Acquire all mutexes of all levels and check that no exceptions 10) Release all mutexes of all levels and check that no exceptions 11) check additionally that all the mutexes are free (see 8) 12) do it for GL mode too 13) do additional Acquire of MUX-(N-2) and MUX-(N-1) before Acquire of MUX-N (Release them later) m08d: Check the life after AE_AML_MUTEX_ORDER exception on Release. 1) Acquire (N-1)-th level mutex MUX-(N-1) 2) Acquire (N)-th level mutex MUX-N 3) run Release (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception 4) Release (N)-th level mutex MUX-N and check that no exception on this operation 5) Release (N-1)-th level mutex MUX-(N-1) and check that no exception on this operation 6) do 1-5 for all N in range 1-15 levels 7) check additionally that all the mutexes are free (run Release and get AE_AML_MUTEX_NOT_ACQUIRED exception for all the mutexes of all levels) 8) Acquire all mutexes of all levels and check that no exceptions 9) Release all mutexes of all levels and check that no exceptions 10) check additionally that all the mutexes are free (see 7) 11) do it for GL mode too m07f: Check the life after AE_AML_MUTEX_ORDER exception on Release. Similar to the m08d but trying to heal situation by Acquiring/Release operations applied to the greater level so changing the current level upper than all the currently Acquired levels so don't expect exceptions on the following Release operations applied in the correct inverse order to all the Acquired mutexes. (for the current 20060828 ACPICA this doesn't help). m0b9: Different ways to Acquire/Release mutexes. 1) Acquire and Release operations are in a global level AML code m07c: Different ways to Acquire/Release mutexes. 2) Acquire and Release operations are in the same method 3) Acquire and Release operations are in different methods xxxx: To check that the current level is not anyhow affected by the invalid operations (which caused exception or returned FAIL). Such checkings are present in m08b and m08d tests. From m08b: 1) Acquire N-th level mutex MUX-N 2) run Acquire (N-2)-th level mutex MUX-(N-2) and get AE_AML_MUTEX_ORDER exception 3) run Acquire (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception The step 3 checks that the invalid operation Acquire performed on step 2 doesn't affect the current level. From m08d: 1) Acquire (N-1)-th level mutex MUX-(N-1) 2) Acquire (N)-th level mutex MUX-N 3) run Release (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception 4) Release (N)-th level mutex MUX-N and check that no exception on this operation The step 4 checks that the invalid operation Release performed on step 3 doesn't affect the current level. m0ba: Acquire/Release operations enclosed in other operations. badasl-m103: Exception on Acquire. Access to inappropriate type data. // ################################################################# acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/serialized.asl0000700000175000017500000016152714773714157033067 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check for serialized methods */ Name (Z173, 0xAD) /* * Proper sequence of calls to Serialized methods with different levels, 0-15, all Serialized */ Method (M3B0, 0, Serialized) { Name (I000, 0x00) Method (M000, 0, Serialized) { I000++ M001 () } Method (M001, 0, Serialized, 1) { I000++ M002 () } Method (M002, 0, Serialized, 2) { I000++ M003 () } Method (M003, 0, Serialized, 3) { I000++ M004 () } Method (M004, 0, Serialized, 4) { I000++ M005 () } Method (M005, 0, Serialized, 5) { I000++ M006 () } Method (M006, 0, Serialized, 6) { I000++ M007 () } Method (M007, 0, Serialized, 7) { I000++ M008 () } Method (M008, 0, Serialized, 8) { I000++ M009 () } Method (M009, 0, Serialized, 9) { I000++ M010 () } Method (M010, 0, Serialized, 10) { I000++ M011 () } Method (M011, 0, Serialized, 11) { I000++ M012 () } Method (M012, 0, Serialized, 12) { I000++ M013 () } Method (M013, 0, Serialized, 13) { I000++ M014 () } Method (M014, 0, Serialized, 14) { I000++ M015 () } Method (M015, 0, Serialized, 15) { I000++ M016 () } Method (M016, 0, Serialized, 15) { I000++ Debug = "m016" If ((I000 != 0x11)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I000, 0x11) } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) } /* * Proper sequence of calls to Serialized methods with different levels, 0-15, * alternating Serialized and not-Serialized */ Method (M3B1, 0, Serialized) { Name (I000, 0x00) Method (M000, 0, Serialized) { I000++ M001 () } Method (M001, 0, NotSerialized) { I000++ M002 () } Method (M002, 0, Serialized, 2) { I000++ M003 () } Method (M003, 0, NotSerialized) { I000++ M004 () } Method (M004, 0, NotSerialized) { I000++ M005 () } Method (M005, 0, Serialized, 5) { I000++ M006 () } Method (M006, 0, Serialized, 6) { I000++ M007 () } Method (M007, 0, NotSerialized) { I000++ M008 () } Method (M008, 0, Serialized, 8) { I000++ M009 () } Method (M009, 0, Serialized, 9) { I000++ M010 () } Method (M010, 0, NotSerialized) { I000++ M011 () } Method (M011, 0, NotSerialized) { I000++ M012 () } Method (M012, 0, Serialized, 12) { I000++ M013 () } Method (M013, 0, Serialized, 13) { I000++ M014 () } Method (M014, 0, Serialized, 14) { I000++ M015 () } Method (M015, 0, NotSerialized) { I000++ M016 () } Method (M016, 0, Serialized, 15) { I000++ Debug = "m016" If ((I000 != 0x11)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I000, 0x11) } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) } /* * Proper sequence of calls to Serialized methods with different levels, 0-15, all Serialized, * 1-3 on each level */ Method (M3B2, 0, Serialized) { Name (I000, 0x00) Name (I001, 0x00) Method (M000, 0, Serialized) { I000++ M100 () } Method (M100, 0, Serialized) { I000++ M001 () } Method (M001, 0, Serialized, 1) { I000++ M002 () } Method (M002, 0, Serialized, 2) { I000++ M102 () } Method (M102, 0, Serialized, 2) { I000++ M003 () } Method (M003, 0, Serialized, 3) { I000++ M004 () } Method (M004, 0, Serialized, 4) { I000++ M104 () } Method (M104, 0, Serialized, 4) { I000++ M005 () } Method (M005, 0, Serialized, 5) { I000++ M006 () } Method (M006, 0, Serialized, 6) { I000++ M106 () } Method (M106, 0, Serialized, 6) { I000++ M007 () } Method (M007, 0, Serialized, 7) { I000++ M107 () } Method (M107, 0, Serialized, 7) { I000++ M008 () } Method (M008, 0, Serialized, 8) { I000++ M108 () } Method (M108, 0, Serialized, 8) { I000++ M009 () } Method (M009, 0, Serialized, 9) { I000++ M109 () } Method (M109, 0, Serialized, 9) { I000++ M209 () } Method (M209, 0, Serialized, 9) { I000++ M010 () } Method (M010, 0, Serialized, 10) { I000++ M110 () } Method (M110, 0, Serialized, 10) { I000++ M011 () } Method (M011, 0, Serialized, 11) { I000++ M111 () } Method (M111, 0, Serialized, 11) { I000++ M012 () } Method (M012, 0, Serialized, 12) { I000++ M112 () } Method (M112, 0, Serialized, 12) { I000++ M013 () } Method (M013, 0, Serialized, 13) { I000++ M014 () } Method (M014, 0, Serialized, 14) { I000++ M015 () } Method (M015, 0, Serialized, 15) { I000++ M115 () } Method (M115, 0, Serialized, 15) { I000++ Debug = "m016" If ((I000 != 0x1C)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I000, 0x1C) } I001 = 0xABCD0000 } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) M000 () If ((I001 != 0xABCD0000)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I001, 0xABCD0000) } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) } /* * Check pairs of calls to Serialized methods, * the second method is invoked from the first method. * * All the 256 combinations are verified (16*16): * - the level of the first method in pair changes in range from 0 up to 15 * - the level of the second method in pair changes in range from 0 up to 15 * * So all the checkings are provided: * * - proper sequence of levels (from i-th level to all possible correct levels) * - proper sequence of levels (from i-th level to i-th level (in particular)) * - improper sequence of levels (from i-th level to all possible incorrect levels) * * arg0 - level of first call * arg1 - level of second call * arg2 - how many calls to do */ Method (M3B3, 3, Serialized) { Name (I000, 0x00) Name (I001, 0x00) Name (I002, 0x00) Name (I003, 0xABCD0003) Name (I004, 0xABCD0004) Name (I005, 0x00) Method (M000, 1, Serialized) { If (Arg0) { I004 = 0x00 } Else { I003 = 0x00 } MM00 (0x01, I000, I001) } Method (M001, 1, Serialized, 1) { If (Arg0) { I004 = 0x01 } Else { I003 = 0x01 } MM00 (0x01, I000, I001) } Method (M002, 1, Serialized, 2) { If (Arg0) { I004 = 0x02 } Else { I003 = 0x02 } MM00 (0x01, I000, I001) } Method (M003, 1, Serialized, 3) { If (Arg0) { I004 = 0x03 } Else { I003 = 0x03 } MM00 (0x01, I000, I001) } Method (M004, 1, Serialized, 4) { If (Arg0) { I004 = 0x04 } Else { I003 = 0x04 } MM00 (0x01, I000, I001) } Method (M005, 1, Serialized, 5) { If (Arg0) { I004 = 0x05 } Else { I003 = 0x05 } MM00 (0x01, I000, I001) } Method (M006, 1, Serialized, 6) { If (Arg0) { I004 = 0x06 } Else { I003 = 0x06 } MM00 (0x01, I000, I001) } Method (M007, 1, Serialized, 7) { If (Arg0) { I004 = 0x07 } Else { I003 = 0x07 } MM00 (0x01, I000, I001) } Method (M008, 1, Serialized, 8) { If (Arg0) { I004 = 0x08 } Else { I003 = 0x08 } MM00 (0x01, I000, I001) } Method (M009, 1, Serialized, 9) { If (Arg0) { I004 = 0x09 } Else { I003 = 0x09 } MM00 (0x01, I000, I001) } Method (M010, 1, Serialized, 10) { If (Arg0) { I004 = 0x0A } Else { I003 = 0x0A } MM00 (0x01, I000, I001) } Method (M011, 1, Serialized, 11) { If (Arg0) { I004 = 0x0B } Else { I003 = 0x0B } MM00 (0x01, I000, I001) } Method (M012, 1, Serialized, 12) { If (Arg0) { I004 = 0x0C } Else { I003 = 0x0C } MM00 (0x01, I000, I001) } Method (M013, 1, Serialized, 13) { If (Arg0) { I004 = 0x0D } Else { I003 = 0x0D } MM00 (0x01, I000, I001) } Method (M014, 1, Serialized, 14) { If (Arg0) { I004 = 0x0E } Else { I003 = 0x0E } MM00 (0x01, I000, I001) } Method (M015, 1, Serialized, 15) { If (Arg0) { I004 = 0x0F } Else { I003 = 0x0F } MM00 (0x01, I000, I001) } Method (MM00, 3, Serialized) { Name (III0, 0x00) Name (III1, 0x00) Name (III2, 0x00) Name (III3, 0x00) Local0 = I002 /* \M3B3.I002 */ I002++ If ((I002 > I005)) { Return (Zero) } If (Arg0) { Local1 = Arg2 } Else { Local1 = Arg1 } Switch (ToInteger (Local1)) { Case (0x00) { M000 (Local0) } Case (0x01) { M001 (Local0) } Case (0x02) { M002 (Local0) } Case (0x03) { M003 (Local0) } Case (0x04) { M004 (Local0) } Case (0x05) { M005 (Local0) } Case (0x06) { M006 (Local0) } Case (0x07) { M007 (Local0) } Case (0x08) { M008 (Local0) } Case (0x09) { M009 (Local0) } Case (0x0A) { M010 (Local0) } Case (0x0B) { M011 (Local0) } Case (0x0C) { M012 (Local0) } Case (0x0D) { M013 (Local0) } Case (0x0E) { M014 (Local0) } Case (0x0F) { M015 (Local0) } } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) I000 = Arg0 I001 = Arg1 I005 = Arg2 MM00 (0x00, I000, I001) If ((Arg0 > Arg1)) { CH04 (__METHOD__, 0x00, 0x40, Z173, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ } Else { If ((I003 != Arg0)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I003, Arg0) } If ((I004 != Arg1)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I004, Arg1) } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) } Method (M3B4, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { LPN1 = 0x10 LPC1 = 0x00 While (LPN1) { M3B3 (LPC0, LPC1, 0x02) LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * The same as m3b3 but without Switch * * arg0 - level of first call * arg1 - level of second call */ Method (M3B5, 2, Serialized) { Name (I000, 0x00) Name (I001, 0x00) Name (I002, 0x00) Name (I003, 0xABCD0003) Name (I004, 0xABCD0004) Method (M000, 1, Serialized) { If (Arg0) { I004 = 0x00 } Else { I003 = 0x00 } MM00 (0x01, I000, I001) } Method (M001, 1, Serialized, 1) { If (Arg0) { I004 = 0x01 } Else { I003 = 0x01 } MM00 (0x01, I000, I001) } Method (M002, 1, Serialized, 2) { If (Arg0) { I004 = 0x02 } Else { I003 = 0x02 } MM00 (0x01, I000, I001) } Method (M003, 1, Serialized, 3) { If (Arg0) { I004 = 0x03 } Else { I003 = 0x03 } MM00 (0x01, I000, I001) } Method (M004, 1, Serialized, 4) { If (Arg0) { I004 = 0x04 } Else { I003 = 0x04 } MM00 (0x01, I000, I001) } Method (M005, 1, Serialized, 5) { If (Arg0) { I004 = 0x05 } Else { I003 = 0x05 } MM00 (0x01, I000, I001) } Method (M006, 1, Serialized, 6) { If (Arg0) { I004 = 0x06 } Else { I003 = 0x06 } MM00 (0x01, I000, I001) } Method (M007, 1, Serialized, 7) { If (Arg0) { I004 = 0x07 } Else { I003 = 0x07 } MM00 (0x01, I000, I001) } Method (M008, 1, Serialized, 8) { If (Arg0) { I004 = 0x08 } Else { I003 = 0x08 } MM00 (0x01, I000, I001) } Method (M009, 1, Serialized, 9) { If (Arg0) { I004 = 0x09 } Else { I003 = 0x09 } MM00 (0x01, I000, I001) } Method (M010, 1, Serialized, 10) { If (Arg0) { I004 = 0x0A } Else { I003 = 0x0A } MM00 (0x01, I000, I001) } Method (M011, 1, Serialized, 11) { If (Arg0) { I004 = 0x0B } Else { I003 = 0x0B } MM00 (0x01, I000, I001) } Method (M012, 1, Serialized, 12) { If (Arg0) { I004 = 0x0C } Else { I003 = 0x0C } MM00 (0x01, I000, I001) } Method (M013, 1, Serialized, 13) { If (Arg0) { I004 = 0x0D } Else { I003 = 0x0D } MM00 (0x01, I000, I001) } Method (M014, 1, Serialized, 14) { If (Arg0) { I004 = 0x0E } Else { I003 = 0x0E } MM00 (0x01, I000, I001) } Method (M015, 1, Serialized, 15) { If (Arg0) { I004 = 0x0F } Else { I003 = 0x0F } MM00 (0x01, I000, I001) } Method (MM00, 3, NotSerialized) { Local0 = I002 /* \M3B5.I002 */ I002++ If ((I002 > 0x02)) { Return (Zero) } If (Arg0) { Local1 = Arg2 } Else { Local1 = Arg1 } If ((Local1 == 0x00)) { M000 (Local0) } ElseIf ((Local1 == 0x01)) { M001 (Local0) } ElseIf ((Local1 == 0x02)) { M002 (Local0) } ElseIf ((Local1 == 0x03)) { M003 (Local0) } ElseIf ((Local1 == 0x04)) { M004 (Local0) } ElseIf ((Local1 == 0x05)) { M005 (Local0) } ElseIf ((Local1 == 0x06)) { M006 (Local0) } ElseIf ((Local1 == 0x07)) { M007 (Local0) } ElseIf ((Local1 == 0x08)) { M008 (Local0) } ElseIf ((Local1 == 0x09)) { M009 (Local0) } ElseIf ((Local1 == 0x0A)) { M010 (Local0) } ElseIf ((Local1 == 0x0B)) { M011 (Local0) } ElseIf ((Local1 == 0x0C)) { M012 (Local0) } ElseIf ((Local1 == 0x0D)) { M013 (Local0) } ElseIf ((Local1 == 0x0E)) { M014 (Local0) } ElseIf ((Local1 == 0x0F)) { M015 (Local0) } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) I000 = Arg0 I001 = Arg1 MM00 (0x00, I000, I001) If ((Arg0 > Arg1)) { CH04 (__METHOD__, 0x00, 0x40, Z173, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ } Else { If ((I003 != Arg0)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I003, Arg0) } If ((I004 != Arg1)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I004, Arg1) } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) } Method (M3B6, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { LPN1 = 0x10 LPC1 = 0x00 While (LPN1) { M3B5 (LPC0, LPC1) LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * The same as m3b5 but * between two Serialized calls non-Serialized calls are performed * * arg0 - level of first call * arg1 - level of second call * arg2 - how many calls to do */ Method (M3B7, 3, Serialized) { Name (I000, 0x00) Name (I001, 0x00) Name (I002, 0x00) Name (I003, 0xABCD0003) Name (I004, 0xABCD0004) Name (I005, 0x00) Method (M000, 1, Serialized) { If (Arg0) { I004 = 0x00 } Else { I003 = 0x00 } MM00 (0x01, I000, I001) } Method (M001, 1, Serialized, 1) { If (Arg0) { I004 = 0x01 } Else { I003 = 0x01 } MM00 (0x01, I000, I001) } Method (M002, 1, Serialized, 2) { If (Arg0) { I004 = 0x02 } Else { I003 = 0x02 } MM00 (0x01, I000, I001) } Method (M003, 1, Serialized, 3) { If (Arg0) { I004 = 0x03 } Else { I003 = 0x03 } MM00 (0x01, I000, I001) } Method (M004, 1, Serialized, 4) { If (Arg0) { I004 = 0x04 } Else { I003 = 0x04 } MM00 (0x01, I000, I001) } Method (M005, 1, Serialized, 5) { If (Arg0) { I004 = 0x05 } Else { I003 = 0x05 } MM00 (0x01, I000, I001) } Method (M006, 1, Serialized, 6) { If (Arg0) { I004 = 0x06 } Else { I003 = 0x06 } MM00 (0x01, I000, I001) } Method (M007, 1, Serialized, 7) { If (Arg0) { I004 = 0x07 } Else { I003 = 0x07 } MM00 (0x01, I000, I001) } Method (M008, 1, Serialized, 8) { If (Arg0) { I004 = 0x08 } Else { I003 = 0x08 } MM00 (0x01, I000, I001) } Method (M009, 1, Serialized, 9) { If (Arg0) { I004 = 0x09 } Else { I003 = 0x09 } MM00 (0x01, I000, I001) } Method (M010, 1, Serialized, 10) { If (Arg0) { I004 = 0x0A } Else { I003 = 0x0A } MM00 (0x01, I000, I001) } Method (M011, 1, Serialized, 11) { If (Arg0) { I004 = 0x0B } Else { I003 = 0x0B } MM00 (0x01, I000, I001) } Method (M012, 1, Serialized, 12) { If (Arg0) { I004 = 0x0C } Else { I003 = 0x0C } MM00 (0x01, I000, I001) } Method (M013, 1, Serialized, 13) { If (Arg0) { I004 = 0x0D } Else { I003 = 0x0D } MM00 (0x01, I000, I001) } Method (M014, 1, Serialized, 14) { If (Arg0) { I004 = 0x0E } Else { I003 = 0x0E } MM00 (0x01, I000, I001) } Method (M015, 1, Serialized, 15) { If (Arg0) { I004 = 0x0F } Else { I003 = 0x0F } MM00 (0x01, I000, I001) } Method (MM01, 7, NotSerialized) { Local0 = 0x00 } Method (MM00, 3, NotSerialized) { Local0 = I002 /* \M3B7.I002 */ I002++ If ((I002 > I005)) { Return (Zero) } If (Arg0) { Local1 = Arg2 } Else { Local1 = Arg1 } If ((Local1 == 0x00)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M000 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x01)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M001 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x02)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M002 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x03)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M003 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x04)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M004 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x05)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M005 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x06)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M006 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x07)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M007 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x08)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M008 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x09)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M009 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x0A)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M010 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x0B)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M011 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x0C)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M012 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x0D)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M013 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x0E)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M014 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } ElseIf ((Local1 == 0x0F)) { MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) M015 (Local0) MM01 (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06) } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) I000 = Arg0 I001 = Arg1 I005 = Arg2 MM00 (0x00, I000, I001) If ((Arg0 > Arg1)) { CH04 (__METHOD__, 0x00, 0x40, Z173, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ } Else { If ((I003 != Arg0)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I003, Arg0) } If ((I004 != Arg1)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I004, Arg1) } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) } Method (M3B8, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { LPN1 = 0x10 LPC1 = 0x00 While (LPN1) { M3B7 (LPC0, LPC1, 0x02) LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * Check that Serialized method can be invoked repeatedly * * (Serialized method without internal objects (including Methods) and Switches) * * Method is invoked 2 times, then 3 times, then 4 times,... * Then do it for next Method. */ Method (M3B9, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { LPN1 = 0x10 LPC1 = 0x02 While (LPN1) { M3B3 (LPC0, LPC0, LPC1) LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * Check that Serialized method can be invoked repeatedly * * (Serialized method without internal objects (including Methods) and Switches) * * between two Serialized calls non-Serialized calls are performed * * Method is invoked 2 times, then 3 times, then 4 times,... * Then do it for next Method. */ Method (M3BA, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { LPN1 = 0x10 LPC1 = 0x02 While (LPN1) { M3B7 (LPC0, LPC0, LPC1) LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * The level is set up by either call to Serialized method or Acquire mutex of that level * * Check pairs of calls to methods which provide exclusive access to critical sections * either by 'Serialized method' technique or AML mutexes (Acquire/Release) framework. * The second method is invoked from the first method. * * All the 1024 combinations are verified (32*32): * * The first call to method in pair is call to: * - Serialized method with level in range from 0 up to 15 * - non-Serialized method Acquiring mutex with level in range from 0 up to 15 * * Identically, the second call to method in pair is call to: * - Serialized method with level in range from 0 up to 15 * - non-Serialized method Acquiring mutex with level in range from 0 up to 15 * * So all the checkings are provided: * * - proper sequence of levels (from i-th level to all possible correct levels) * - proper sequence of levels (from i-th level to i-th level (in particular)) * - improper sequence of levels (from i-th level to all possible incorrect levels) * * arg0 - level of first call * arg1 - level of second call * arg2 - how many calls to do */ Method (M3BB, 3, Serialized) { Name (I000, 0x00) Name (I001, 0x00) Name (I002, 0x00) Name (I003, 0xABCD0003) Name (I004, 0xABCD0004) Name (I005, 0x00) Mutex (MT00, 0x00) Mutex (MT10, 0x01) Mutex (MT20, 0x02) Mutex (MT30, 0x03) Mutex (MT40, 0x04) Mutex (MT50, 0x05) Mutex (MT60, 0x06) Mutex (MT70, 0x07) Mutex (MT80, 0x08) Mutex (MT90, 0x09) Mutex (MTA0, 0x0A) Mutex (MTB0, 0x0B) Mutex (MTC0, 0x0C) Mutex (MTD0, 0x0D) Mutex (MTE0, 0x0E) Mutex (MTF0, 0x0F) Method (M000, 1, Serialized) { If (Arg0) { I004 = 0x00 } Else { I003 = 0x00 } MM00 (0x01, I000, I001) } Method (M001, 1, Serialized, 1) { If (Arg0) { I004 = 0x01 } Else { I003 = 0x01 } MM00 (0x01, I000, I001) } Method (M002, 1, Serialized, 2) { If (Arg0) { I004 = 0x02 } Else { I003 = 0x02 } MM00 (0x01, I000, I001) } Method (M003, 1, Serialized, 3) { If (Arg0) { I004 = 0x03 } Else { I003 = 0x03 } MM00 (0x01, I000, I001) } Method (M004, 1, Serialized, 4) { If (Arg0) { I004 = 0x04 } Else { I003 = 0x04 } MM00 (0x01, I000, I001) } Method (M005, 1, Serialized, 5) { If (Arg0) { I004 = 0x05 } Else { I003 = 0x05 } MM00 (0x01, I000, I001) } Method (M006, 1, Serialized, 6) { If (Arg0) { I004 = 0x06 } Else { I003 = 0x06 } MM00 (0x01, I000, I001) } Method (M007, 1, Serialized, 7) { If (Arg0) { I004 = 0x07 } Else { I003 = 0x07 } MM00 (0x01, I000, I001) } Method (M008, 1, Serialized, 8) { If (Arg0) { I004 = 0x08 } Else { I003 = 0x08 } MM00 (0x01, I000, I001) } Method (M009, 1, Serialized, 9) { If (Arg0) { I004 = 0x09 } Else { I003 = 0x09 } MM00 (0x01, I000, I001) } Method (M010, 1, Serialized, 10) { If (Arg0) { I004 = 0x0A } Else { I003 = 0x0A } MM00 (0x01, I000, I001) } Method (M011, 1, Serialized, 11) { If (Arg0) { I004 = 0x0B } Else { I003 = 0x0B } MM00 (0x01, I000, I001) } Method (M012, 1, Serialized, 12) { If (Arg0) { I004 = 0x0C } Else { I003 = 0x0C } MM00 (0x01, I000, I001) } Method (M013, 1, Serialized, 13) { If (Arg0) { I004 = 0x0D } Else { I003 = 0x0D } MM00 (0x01, I000, I001) } Method (M014, 1, Serialized, 14) { If (Arg0) { I004 = 0x0E } Else { I003 = 0x0E } MM00 (0x01, I000, I001) } Method (M015, 1, Serialized, 15) { If (Arg0) { I004 = 0x0F } Else { I003 = 0x0F } MM00 (0x01, I000, I001) } Method (M100, 2, NotSerialized) { If (Arg0) { I004 = 0x10 } Else { I003 = 0x10 } Local0 = Acquire (MT00, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT00) } } Method (M101, 2, NotSerialized) { If (Arg0) { I004 = 0x11 } Else { I003 = 0x11 } Local0 = Acquire (MT10, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT10) } } Method (M102, 2, NotSerialized) { If (Arg0) { I004 = 0x12 } Else { I003 = 0x12 } Local0 = Acquire (MT20, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT20) } } Method (M103, 2, NotSerialized) { If (Arg0) { I004 = 0x13 } Else { I003 = 0x13 } Local0 = Acquire (MT30, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT30) } } Method (M104, 2, NotSerialized) { If (Arg0) { I004 = 0x14 } Else { I003 = 0x14 } Local0 = Acquire (MT40, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT40) } } Method (M105, 2, NotSerialized) { If (Arg0) { I004 = 0x15 } Else { I003 = 0x15 } Local0 = Acquire (MT50, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT50) } } Method (M106, 2, NotSerialized) { If (Arg0) { I004 = 0x16 } Else { I003 = 0x16 } Local0 = Acquire (MT60, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT60) } } Method (M107, 2, NotSerialized) { If (Arg0) { I004 = 0x17 } Else { I003 = 0x17 } Local0 = Acquire (MT70, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT70) } } Method (M108, 2, NotSerialized) { If (Arg0) { I004 = 0x18 } Else { I003 = 0x18 } Local0 = Acquire (MT80, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT80) } } Method (M109, 2, NotSerialized) { If (Arg0) { I004 = 0x19 } Else { I003 = 0x19 } Local0 = Acquire (MT90, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MT90) } } Method (M110, 2, NotSerialized) { If (Arg0) { I004 = 0x1A } Else { I003 = 0x1A } Local0 = Acquire (MTA0, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MTA0) } } Method (M111, 2, NotSerialized) { If (Arg0) { I004 = 0x1B } Else { I003 = 0x1B } Local0 = Acquire (MTB0, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MTB0) } } Method (M112, 2, NotSerialized) { If (Arg0) { I004 = 0x1C } Else { I003 = 0x1C } Local0 = Acquire (MTC0, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MTC0) } } Method (M113, 2, NotSerialized) { If (Arg0) { I004 = 0x1D } Else { I003 = 0x1D } Local0 = Acquire (MTD0, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MTD0) } } Method (M114, 2, NotSerialized) { If (Arg0) { I004 = 0x1E } Else { I003 = 0x1E } Local0 = Acquire (MTE0, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MTE0) } } Method (M115, 2, NotSerialized) { If (Arg0) { I004 = 0x1F } Else { I003 = 0x1F } Local0 = Acquire (MTF0, 0xFFFF) MM00 (0x01, I000, I001) If (Arg1) { If (Local0) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, 0x00, Local0) } } If (!Local0) { Release (MTF0) } } /* * arg0 - 0 - first call, otherwise - non-first call * arg1 - level of first call * arg2 - level of second call */ Method (MM00, 3, Serialized) { Local0 = I002 /* \M3BB.I002 */ I002++ If ((I002 > I005)) { Return (Zero) } If (Arg0) { Local1 = Arg2 } Else { Local1 = Arg1 } If (Arg0) { /* non-first call */ If ((Arg1 >= 0x10)) { Local2 = (Arg1 - 0x10) } Else { Local2 = Arg1 } If ((Arg2 >= 0x10)) { Local3 = (Arg2 - 0x10) } Else { Local3 = Arg2 } If ((Local2 > Local3)) { Local4 = 0x00 } Else { Local4 = 0x01 /* Check return of Acquire, success is expected */ } } Else { /* first call */ Local4 = 0x01 /* Check return of Acquire, success is expected */ } Switch (ToInteger (Local1)) { Case (0x00) { M000 (Local0) } Case (0x01) { M001 (Local0) } Case (0x02) { M002 (Local0) } Case (0x03) { M003 (Local0) } Case (0x04) { M004 (Local0) } Case (0x05) { M005 (Local0) } Case (0x06) { M006 (Local0) } Case (0x07) { M007 (Local0) } Case (0x08) { M008 (Local0) } Case (0x09) { M009 (Local0) } Case (0x0A) { M010 (Local0) } Case (0x0B) { M011 (Local0) } Case (0x0C) { M012 (Local0) } Case (0x0D) { M013 (Local0) } Case (0x0E) { M014 (Local0) } Case (0x0F) { M015 (Local0) } Case (0x10) { M100 (Local0, Local4) } Case (0x11) { M101 (Local0, Local4) } Case (0x12) { M102 (Local0, Local4) } Case (0x13) { M103 (Local0, Local4) } Case (0x14) { M104 (Local0, Local4) } Case (0x15) { M105 (Local0, Local4) } Case (0x16) { M106 (Local0, Local4) } Case (0x17) { M107 (Local0, Local4) } Case (0x18) { M108 (Local0, Local4) } Case (0x19) { M109 (Local0, Local4) } Case (0x1A) { M110 (Local0, Local4) } Case (0x1B) { M111 (Local0, Local4) } Case (0x1C) { M112 (Local0, Local4) } Case (0x1D) { M113 (Local0, Local4) } Case (0x1E) { M114 (Local0, Local4) } Case (0x1F) { M115 (Local0, Local4) } } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) I000 = Arg0 I001 = Arg1 I005 = Arg2 MM00 (0x00, I000, I001) If ((Arg0 >= 0x10)) { Local2 = (Arg0 - 0x10) } Else { Local2 = Arg0 } If ((Arg1 >= 0x10)) { Local3 = (Arg1 - 0x10) } Else { Local3 = Arg1 } If ((Local2 > Local3)) { Local4 = 0x00 } Else { Local4 = 0x01 /* Success is expected, no exceptions */ } If (!Local4) { CH04 (__METHOD__, 0x01, 0x40, Z173, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ } Else { If ((I003 != Arg0)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I003, Arg0) } If ((I004 != Arg1)) { ERR (__METHOD__, Z173, __LINE__, 0x00, 0x00, I004, Arg1) } } CH03 (__METHOD__, Z173, __LINE__, 0x00, 0x00) } Method (M3BC, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) LPN0 = 0x20 LPC0 = 0x00 While (LPN0) { LPN1 = 0x20 LPC1 = 0x00 While (LPN1) { M3BB (LPC0, LPC1, 0x02) LPN1-- LPC1++ } LPN0-- LPC0++ } } Method (M3BD, 0, NotSerialized) { SRMT ("m3b0") M3B0 () SRMT ("m3b1") M3B1 () SRMT ("m3b2") M3B2 () SRMT ("m3b4") If (Y300) { M3B4 () } Else { BLCK () } SRMT ("m3b6") M3B6 () SRMT ("m3b8") M3B8 () SRMT ("m3b9") If (Y300) { M3B9 () } Else { BLCK () } SRMT ("m3ba") M3BA () SRMT ("m3bc") If (Y300) { M3BC () } Else { BLCK () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/event.asl0000700000175000017500000002574414773714157032055 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Synchronization (events) */ /* !!!!!!!!!!!!!!!!!!!!!!!!!!!! SEE: should be a few updated !!!!!!!!!!!!!!!!!!!!!!!!!!!! */ /* The test for ASL-Events to be run on a single invocation only */ /* */ /* Note: additional checkings should be implemented to measure */ /* the actual idle time provided by Wait operator according */ /* to the time measuring provided by the Timer operator. */ /* Pass TimeoutValues for Wait globally (all locals busy) */ Name (TOT0, 0x00) Name (TOT1, 0x00) Name (TOT2, 0x00) Name (TOT3, 0x00) /* All events */ Event (EVT0) Event (EVT1) Event (EVT2) Event (EVT3) /* Wait, expected Zero */ Method (M050, 5, NotSerialized) { If (0x00) { Debug = "m050: Wait, expected Zero" } If (Arg1) { CH00 (Arg0, 0x00, 0x00, Wait (EVT0, TOT0)) } If (Arg2) { CH00 (Arg0, 0x00, 0x01, Wait (EVT1, TOT1)) } If (Arg3) { CH00 (Arg0, 0x00, 0x02, Wait (EVT2, TOT2)) } If (Arg4) { CH00 (Arg0, 0x00, 0x03, Wait (EVT3, TOT3)) } } /* Wait, expected Non-Zero */ Method (M051, 5, NotSerialized) { If (0x00) { Debug = "m051: Wait, expected Non-Zero" } If (Arg1) { CH01 (Arg0, 0x01, 0x00, Wait (EVT0, TOT0)) } If (Arg2) { CH01 (Arg0, 0x01, 0x01, Wait (EVT1, TOT1)) } If (Arg3) { CH01 (Arg0, 0x01, 0x02, Wait (EVT2, TOT2)) } If (Arg4) { CH01 (Arg0, 0x01, 0x03, Wait (EVT3, TOT3)) } } /* Signal */ Method (M052, 5, NotSerialized) { If (0x00) { Debug = "m052: Signal" } If (Arg1) { Signal (EVT0) } If (Arg2) { Signal (EVT1) } If (Arg3) { Signal (EVT2) } If (Arg4) { Signal (EVT3) } } /* Reset */ Method (M053, 5, NotSerialized) { If (0x00) { Debug = "m053: Reset" } If (Arg1) { Reset (EVT0) } If (Arg2) { Reset (EVT1) } If (Arg3) { Reset (EVT2) } If (Arg4) { Reset (EVT3) } } /* * Package:={N lines} * Line:= consists of 6 elements: * 0: operation: * 0 - Wait, expected Zero (acquired) * 1 - Wait, expected Non-Zero (failed to acquire) * 2 - Signal * 3 - Reset * 1: bit-mask of events operation to be applied to which * bit 0x08 - 0th event * bit 0x04 - 1th event * bit 0x02 - 2th event * bit 0x01 - 3th event * 2-5: TimeoutValues for Wait operations (left->right too) */ Name (P011, Package (0xF0) { /* 1. Wait without signals results in non-zero (failed to acquire) */ /* 2. Applied to all 4 event-Objects */ 0x01, 0x0F, 0x00, 0x01, 0x02, 0xFF, 0x01, 0x0F, 0x01, 0x02, 0x03, 0x04, 0x01, 0x0F, 0x11, 0x22, 0x33, 0x00, /* 1. Send Ni signals to i-th Object. */ /* 2. All Ni events of i-th Object are successfully one */ /* by one acquired by Ni Waits applied to that Object. */ /* 3. But, attempt to acquire one more failed. */ /* 4. Applied to all 4 event-Objects. */ 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00, 0x0F, 0x8000, 0x4000, 0x2000, 0x1000, 0x00, 0x0F, 0x01, 0x02, 0x03, 0x04, 0x00, 0x0F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x01, 0x0F, 0x01, 0x02, 0x03, 0x04, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x07, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00, 0x03, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00, 0x07, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00, 0x0F, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x01, 0x0F, 0x01, 0x02, 0x03, 0x04, /* 1. Send Ni_s signals to i-th Object. */ /* 2. Reset i-th object, one time. */ /* 3. Wait of i-th Object results in non-zero (failed to acquire) */ /* 4. Applied to all 4 event-Objects. */ 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0F, 0x01, 0x02, 0x03, 0x04, 0x01, 0x0F, 0x01, 0x02, 0x03, 0x04, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04, 0x00, 0x05, 0x01, 0x02, 0x03, 0x04, 0x00, 0x05, 0x01, 0x02, 0x03, 0x04, 0x00, 0x05, 0x01, 0x02, 0x03, 0x04, 0x00, 0x05, 0x01, 0x02, 0x03, 0x04, 0x01, 0x0F, 0x01, 0x02, 0x03, 0x04, /* For to track the current state only: */ /* Wait() allows TimeoutValue greater then */ /* 0xffff though cuts it to 16 bits. */ 0x01, 0x0F, 0x00010000, 0x00010000, 0x00010000, 0x00010000 }) /* * Run operations one by one in accordance with the table passed by arg2. * arg1 - number of operations. */ Method (M060, 4, NotSerialized) { Local7 = 0x00 While (Arg1) { Local6 = (Local7 * 0x06) Local5 = DerefOf (Arg2 [Local6]) Local6++ Local1 = DerefOf (Arg2 [Local6]) /* TimeoutValues for Wait */ Local6++ TOT0 = DerefOf (Arg2 [Local6]) Local6++ TOT1 = DerefOf (Arg2 [Local6]) Local6++ TOT2 = DerefOf (Arg2 [Local6]) Local6++ TOT3 = DerefOf (Arg2 [Local6]) /* Local1 - run 0th event */ Local2 = 0x00 /* run 1th event */ Local3 = 0x00 /* run 2th event */ Local4 = 0x00 /* run 3th event */ If ((Local1 & 0x04)) { Local2 = 0x01 } If ((Local1 & 0x02)) { Local3 = 0x01 } If ((Local1 & 0x01)) { Local4 = 0x01 } If ((Local1 & 0x08)) { Local1 = 0x01 } Else { Local1 = 0x00 } If ((Local5 == 0x00)) { M050 (Arg0, Local1, Local2, Local3, Local4) } ElseIf ((Local5 == 0x01)) { M051 (Arg0, Local1, Local2, Local3, Local4) } ElseIf ((Local5 == 0x02)) { M052 (Arg0, Local1, Local2, Local3, Local4) } ElseIf ((Local5 == 0x03)) { M053 (Arg0, Local1, Local2, Local3, Local4) } Local7++ Arg1-- } } Method (WAI0, 0, Serialized) { Debug = "TEST: WAI0, Wait for Events" M060 (__METHOD__, 0x28, P011, "p011") } /* Run-method */ Method (EVN0, 0, NotSerialized) { Debug = "TEST: EVN0, Events" WAI0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/mutex_proc.asl0000700000175000017500000007170714773714157033121 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Auxiliary routines to access mutexes */ Name (Z151, 0x97) /* * For debugging: * * FL02 - print out Acquire/Release * im00 - imitation of Acquire/Release (don't really run Acquire/Release) */ Name (FL02, 0x00) Name (IM00, 0x00) /* * Acquire interval of mutexes * * arg0 - number of mutexes to Acquire (use not less than 1) */ Method (M36D, 1, Serialized) { If ((Arg0 == 0x00)) { Return (Zero) } Local0 = Acquire (T000, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x01)) { Return (Zero) } Local0 = Acquire (\_GL, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x02)) { Return (Zero) } Local0 = Acquire (T100, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x03)) { Return (Zero) } Local0 = Acquire (T200, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x04)) { Return (Zero) } Local0 = Acquire (T300, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x05)) { Return (Zero) } Local0 = Acquire (T400, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x06)) { Return (Zero) } Local0 = Acquire (T500, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x07)) { Return (Zero) } Local0 = Acquire (T600, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x08)) { Return (Zero) } Local0 = Acquire (T700, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x09)) { Return (Zero) } Local0 = Acquire (T800, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x0A)) { Return (Zero) } Local0 = Acquire (T900, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x0B)) { Return (Zero) } Local0 = Acquire (TA00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x0C)) { Return (Zero) } Local0 = Acquire (TB00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x0D)) { Return (Zero) } Local0 = Acquire (TC00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x0E)) { Return (Zero) } Local0 = Acquire (TD00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x0F)) { Return (Zero) } Local0 = Acquire (TE00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If ((Arg0 == 0x10)) { Return (Zero) } Local0 = Acquire (TF00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z151, __LINE__, 0x00, 0x00, 0x00, Local0) } ElseIf ((Arg0 == 0x11)) { Return (Zero) } } } } } } } } } } } } } } } } } } /* * Release interval of mutexes * * arg0 - number of mutexes to Release (use not less than 1) */ Method (M36E, 1, NotSerialized) { If ((Arg0 >= 0x11)) { Release (TF00) } If ((Arg0 >= 0x10)) { Release (TE00) } If ((Arg0 >= 0x0F)) { Release (TD00) } If ((Arg0 >= 0x0E)) { Release (TC00) } If ((Arg0 >= 0x0D)) { Release (TB00) } If ((Arg0 >= 0x0C)) { Release (TA00) } If ((Arg0 >= 0x0B)) { Release (T900) } If ((Arg0 >= 0x0A)) { Release (T800) } If ((Arg0 >= 0x09)) { Release (T700) } If ((Arg0 >= 0x08)) { Release (T600) } If ((Arg0 >= 0x07)) { Release (T500) } If ((Arg0 >= 0x06)) { Release (T400) } If ((Arg0 >= 0x05)) { Release (T300) } If ((Arg0 >= 0x04)) { Release (T200) } If ((Arg0 >= 0x03)) { Release (T100) } If ((Arg0 >= 0x02)) { Release (\_GL) } If ((Arg0 >= 0x01)) { Release (T000) } } /* * Acquire mutex * * arg0 - Level of mutex * arg1 - Index of mutex * arg2 - opcode of exception to be generated or zero * arg3 - opcode of TimeOutValue (see comment to ma00) */ Method (M36F, 4, Serialized) { Local0 = 0x01 /* Init with FAIL */ If (FL02) { Local1 = M21E ("Acquire mutex, ", Arg0, Arg1) If (IM00) { Concatenate ("IMITATION: ", Local1, Local1) } If (Arg2) { Concatenate (Local1, ", Exception expected", Local1) } Else { Switch (ToInteger (Arg3)) { Case (0x05) { /* TOV0 */ Concatenate (Local1, ", tout 0", Local1) } Case (0x06) { /* TOV1 */ Concatenate (Local1, ", tout 1", Local1) } Default { Concatenate (Local1, ", tout 0xffff", Local1) } } } Debug = Local1 } If (IM00) { /* Just imitation */ Return (0x00) } Switch (ToInteger (Arg0)) { Case (0x00) { Local0 = MA00 (Arg1, Arg2, Arg3) } Case (0x01) { Local0 = MA01 (Arg1, Arg2, Arg3) } Case (0x02) { Local0 = MA02 (Arg1, Arg2, Arg3) } Case (0x03) { Local0 = MA03 (Arg1, Arg2, Arg3) } Case (0x04) { Local0 = MA04 (Arg1, Arg2, Arg3) } Case (0x05) { Local0 = MA05 (Arg1, Arg2, Arg3) } Case (0x06) { Local0 = MA06 (Arg1, Arg2, Arg3) } Case (0x07) { Local0 = MA07 (Arg1, Arg2, Arg3) } Case (0x08) { Local0 = MA08 (Arg1, Arg2, Arg3) } Case (0x09) { Local0 = MA09 (Arg1, Arg2, Arg3) } Case (0x0A) { Local0 = MA0A (Arg1, Arg2, Arg3) } Case (0x0B) { Local0 = MA0B (Arg1, Arg2, Arg3) } Case (0x0C) { Local0 = MA0C (Arg1, Arg2, Arg3) } Case (0x0D) { Local0 = MA0D (Arg1, Arg2, Arg3) } Case (0x0E) { Local0 = MA0E (Arg1, Arg2, Arg3) } Case (0x0F) { Local0 = MA0F (Arg1, Arg2, Arg3) } } If (!Arg2) { If (Local0) { ERR ("m36f", Z151, __LINE__, 0x00, 0x00, Local0, 0x00) } } Return (Local0) } /* * Release mutex * * arg0 - Level of mutex * arg1 - Index of mutex * arg2 - opcode of exception to be generated or zero */ Method (M388, 3, Serialized) { If (FL02) { Local1 = M21E ("Release mutex, ", Arg0, Arg1) If (IM00) { Concatenate ("IMITATION: ", Local1, Local1) } If (Arg2) { Concatenate (Local1, ", Exception expected", Local1) } Debug = Local1 } If (IM00) { Return ( /* Just imitation */ Zero) } Switch (ToInteger (Arg0)) { Case (0x00) { MA10 (Arg1) } Case (0x01) { MA11 (Arg1) } Case (0x02) { MA12 (Arg1) } Case (0x03) { MA13 (Arg1) } Case (0x04) { MA14 (Arg1) } Case (0x05) { MA15 (Arg1) } Case (0x06) { MA16 (Arg1) } Case (0x07) { MA17 (Arg1) } Case (0x08) { MA18 (Arg1) } Case (0x09) { MA19 (Arg1) } Case (0x0A) { MA1A (Arg1) } Case (0x0B) { MA1B (Arg1) } Case (0x0C) { MA1C (Arg1) } Case (0x0D) { MA1D (Arg1) } Case (0x0E) { MA1E (Arg1) } Case (0x0F) { MA1F (Arg1) } } } /* * Acquire the range of mutexes from lower to upper levels (index 0) * arg0 - start level of mutex * arg1 - number of levels * arg2 - if non-zero - Axquire GL too * arg3 - non-zero means that we generate exceptional * condition on each Acquire. The non-zero value * means the opcode of exception. */ Method (M38B, 4, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) If (Arg2) { If (Arg3) { CH03 ("m38b", Z151, __LINE__, 0x00, 0x00) } M36F (GLLL, GLIX, Arg3, 0x00) /* Acquire GL */ If (Arg3) { CH04 ("m38b", 0x00, Arg3, Z151, __LINE__, 0x00, 0x00) } } LPN0 = Arg1 LPC0 = Arg0 While (LPN0) { If (Arg3) { CH03 ("m38b", Z151, __LINE__, 0x00, 0x00) } M36F (LPC0, 0x00, Arg3, 0x00) /* Acquire */ If (Arg3) { CH04 ("m38b", 0x00, Arg3, Z151, __LINE__, 0x00, 0x00) } LPN0-- LPC0++ } } /* * Release the range of mutexes from upper to lower levels (index 0) * arg0 - start level of mutex * arg1 - number of levels * arg2 - if non-zero - Release GL too * arg3 - non-zero means that we generate exceptional * condition on each Acquire. The non-zero value * means the opcode of exception. */ Method (M38C, 4, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Local7 = 0x00 LPN0 = Arg1 LPC0 = Arg0 While (LPN0) { If (Arg3) { Local7 = (CH03 ("m38b", Z151, __LINE__, 0x00, 0x00) || Local7) } M388 (LPC0, 0x00, 0x00) /* Release */ If (Arg3) { Local7 = (CH04 ("m38b", 0x00, Arg3, Z151, __LINE__, 0x00, 0x00) || Local7) } LPN0-- LPC0-- } If (Arg2) { If (Arg3) { Local7 = (CH03 ("m38b", Z151, __LINE__, 0x00, 0x00) || Local7) } M388 (GLLL, GLIX, 0x00) /* Release GL */ If (Arg3) { Local7 = (CH04 ("m38b", 0x00, Arg3, Z151, __LINE__, 0x00, 0x00) || Local7) } } Return (Local7) } /* * Acquire the range of mutexes * * arg0 - start level of mutex * arg1 - number of levels * arg2 - start index of mutex on level * arg3 - number of mutexes on the same level * arg4 - opcode of exception to be generated or zero * arg5 - repetition number * arg6 - opcode of TimeOutValue (see comment to ma00) */ Method (M088, 7, Serialized) { Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) Name (LPN1, 0x00) /* index */ Name (LPC1, 0x00) Name (LPN2, 0x00) /* repetition */ Name (LPC2, 0x00) Name (RPT0, 0x01) Name (EXC0, 0x00) /* exception is expected - opcode to pass to (m36f & CH04) */ Name (EXC1, 0x00) /* exception is expected - run (CH03 & CH04) */ EXC0 = Arg4 If (IM00) { EXC1 = 0x00 } ElseIf (Arg4) { EXC1 = Arg4 } If (Arg5) { RPT0 = Arg5 } LPN0 = Arg1 LPC0 = Arg0 While (LPN0) { LPN1 = Arg3 LPC1 = Arg2 While (LPN1) { LPN2 = RPT0 /* \M088.RPT0 */ LPC2 = 0x00 While (LPN2) { If (EXC1) { CH03 ("m088", Z151, __LINE__, 0x00, 0x00) } M36F (LPC0, LPC1, EXC0, Arg6) /* Acquire */ If (EXC1) { CH04 ("m088", 0x00, EXC0, Z151, __LINE__, 0x00, 0x00) } LPN2-- LPC2++ } LPN1-- LPC1++ } LPN0-- LPC0++ } } /* * Release the range of mutexes * * arg0 - start level of mutex * arg1 - number of levels * arg2 - start index of mutex on level * arg3 - number of mutexes on the same level * arg4 - opcode of exception to be generated or zero * arg5 - repetition number * * arg6 - order of Releasing bitmap, * determinates the order of Releasing mutexes of the same level: * [0] - 0 - derect order * 1 - inverse order * [1] - 0 - don't replace the last index * 1 - replace the last index * [15:8] - the index of mutex to be the last in case of non-zero [1] * * Note: the bit [1] technique was added while investigating the anomaly * reflected by bug 242 "Releasing the mutex the first Acquired on * the non-zero level makes Releasing the residuary mutexes of that * level impossible". * * Examples: * * Acquired on the same level are mutexes of 0,1,2,3 indexes * Releasing for arg6 equal to: * 0x00 - 0123 (direct - the same order the mutexes were Acquired) * 01 - 3210 (inverse to Acquiring) * 22 - 0132 (direct + replace the last index, it becomes index 2) * 23 - 3102 (inverse + replace the last index, it becomes index 2) */ Method (M089, 7, Serialized) { Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) Name (LPN1, 0x00) /* index */ Name (LPC1, 0x00) Name (LPN2, 0x00) /* repetition */ Name (LPC2, 0x00) Name (RPT0, 0x01) Name (BG00, 0x00) Name (EN00, 0x00) Name (INV0, 0x00) /* sign of the inverse order */ Name (RPL0, 0x00) /* to do replacing */ Name (LIX0, 0x00) /* value to be the last index */ Name (EXC0, 0x00) /* exception is expected - opcode to pass to (m36f & CH04) */ Name (EXC1, 0x00) /* exception is expected - run (CH03 & CH04) */ EXC0 = Arg4 If (IM00) { EXC1 = 0x00 } ElseIf (Arg4) { EXC1 = Arg4 } If (Arg5) { RPT0 = Arg5 } INV0 = (Arg6 & 0x01) RPL0 = (Arg6 & 0x02) LIX0 = (Arg6 & 0xFF00) LIX0 >>= 0x08 BG00 = Arg2 EN00 = (Arg2 + Arg3) EN00-- /* Inverse order of levels */ LPN0 = Arg1 LPC0 = (Arg0 + Arg1) LPC0-- While (LPN0) { If (INV0) { /* inverse order */ LPN1 = Arg3 LPC1 = (Arg2 + Arg3) LPC1-- While (LPN1) { Local0 = LPC1 /* \M089.LPC1 */ If (RPL0) { If ((LPN1 == 0x01)) { Local0 = LIX0 /* \M089.LIX0 */ } ElseIf ((LPC1 <= LIX0)) { Local0 = (LPC1 - 0x01) } } LPN2 = RPT0 /* \M089.RPT0 */ LPC2 = 0x00 While (LPN2) { If (EXC1) { CH03 ("m088", Z151, __LINE__, 0x00, 0x00) } M388 (LPC0, Local0, EXC0) /* Release */ If (EXC1) { CH04 ("m088", 0x00, EXC0, Z151, __LINE__, 0x00, 0x00) } LPN2-- LPC2++ } LPN1-- LPC1-- } } Else { /* direct order */ LPN1 = Arg3 LPC1 = Arg2 While (LPN1) { Local0 = LPC1 /* \M089.LPC1 */ If (RPL0) { If ((LPN1 == 0x01)) { Local0 = LIX0 /* \M089.LIX0 */ } ElseIf ((LPC1 >= LIX0)) { Local0 = (LPC1 + 0x01) } } LPN2 = RPT0 /* \M089.RPT0 */ LPC2 = 0x00 While (LPN2) { If (EXC1) { CH03 ("m088", Z151, __LINE__, 0x00, 0x00) } M388 (LPC0, Local0, EXC0) /* Release */ If (EXC1) { CH04 ("m088", 0x00, EXC0, Z151, __LINE__, 0x00, 0x00) } LPN2-- LPC2++ } LPN1-- LPC1++ } } LPN0-- LPC0-- } } /* * Check that all mutexes are Released (don't check T804..) */ Method (M08A, 0, NotSerialized) { M089 (0x00, MAX0, 0x00, MIN0, 0x41, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/MAIN.asl0000700000175000017500000000412214773714157031443 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("synchronization", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/synchronization/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/synchronization/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/mutex2.asl0000700000175000017500000033301414773714157032150 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check for exceptions on mutexes */ Name (Z150, 0x96) /* * Run checking that all mutexes are actually Released. * To be used while debugging the tests mainly. */ Name (FL03, 0x00) /* Counter for m08e */ Name (CN00, 0x00) /* * These declarations are used for to check the Acquire * and Release operations in a global level AML code. */ Name (I101, 0x00) /* non-zero means that this test was run */ /* * Valid sequence of requests, no exceptions expected. * * Acquire mutexes of monotone increasing level (Global lock * on level 0 too) for all available levels from 0 up to 15, * then Release them all in the inverse order. */ Method (M301, 0, Serialized) { Mutex (MT00, 0x00) Mutex (MT10, 0x01) Mutex (MT20, 0x02) Mutex (MT30, 0x03) Mutex (MT40, 0x04) Mutex (MT50, 0x05) Mutex (MT60, 0x06) Mutex (MT70, 0x07) Mutex (MT80, 0x08) Mutex (MT90, 0x09) Mutex (MTA0, 0x0A) Mutex (MTB0, 0x0B) Mutex (MTC0, 0x0C) Mutex (MTD0, 0x0D) Mutex (MTE0, 0x0E) Mutex (MTF0, 0x0F) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Local0 = Acquire (MT00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (\_GL, 0xFFFF) /* GL */ If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT10, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT20, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT30, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT40, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT50, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT60, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT70, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT80, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT90, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTA0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTB0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTC0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTD0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTE0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTF0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Release (MTF0) Release (MTE0) Release (MTD0) Release (MTC0) Release (MTB0) Release (MTA0) Release (MT90) Release (MT80) Release (MT70) Release (MT60) Release (MT50) Release (MT40) Release (MT30) Release (MT20) Release (MT10) Release (\_GL) Release (MT00) } } } } } } } } } } } } } } } } } CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } /* * Valid sequence of requests, no exceptions expected. * * Acquire mutexes of monotone increasing level (Global lock on level 0 too) * for all available levels from 0 up to 15, Acquire 2 mutexes of each level, * then Release them all in the inverse order (keep the exactly inverse order * for Releasing mutexes of the same level too). * * arg0 - if to force AE_LIMIT by exceeding the maximal number of created mutexes */ Method (M369, 1, Serialized) { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Mutex (MT00, 0x00) Mutex (MT10, 0x01) Mutex (MT20, 0x02) Mutex (MT30, 0x03) Mutex (MT40, 0x04) Mutex (MT50, 0x05) Mutex (MT60, 0x06) Mutex (MT70, 0x07) Mutex (MT80, 0x08) Mutex (MT90, 0x09) Mutex (MTA0, 0x0A) Mutex (MTB0, 0x0B) Mutex (MTC0, 0x0C) Mutex (MTD0, 0x0D) Mutex (MTE0, 0x0E) Mutex (MTF0, 0x0F) Mutex (MT01, 0x00) Mutex (MT11, 0x01) Mutex (MT21, 0x02) Mutex (MT31, 0x03) Mutex (MT41, 0x04) Mutex (MT51, 0x05) Mutex (MT61, 0x06) Mutex (MT71, 0x07) Mutex (MT81, 0x08) Mutex (MT91, 0x09) Mutex (MTA1, 0x0A) Mutex (MTB1, 0x0B) Mutex (MTC1, 0x0C) Mutex (MTD1, 0x0D) Mutex (MTE1, 0x0E) If (Arg0) { /* Should be enough to exceed the maximal available number of mutexes */ Mutex (MTF1, 0x0F) Mutex (MTF2, 0x0F) Mutex (MTF3, 0x0F) Mutex (MTF4, 0x0F) } Local0 = Acquire (MT00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT01, 0xFFFF) /* the same level */ If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (\_GL, 0xFFFF) /* GL */ If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT10, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT11, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT20, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT21, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT30, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT31, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT40, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT41, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT50, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT51, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT60, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT61, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT70, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT71, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT80, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT81, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT90, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT91, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTA0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTA1, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTB0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTB1, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTC0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTC1, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTD0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTD1, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTE0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTE1, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTF0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If (Arg0) { Local0 = Acquire (MTF1, 0xFFFF) } Else { Local0 = 0x00 } If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { If (Arg0) { Release (MTF1) } Release (MTF0) Release (MTE1) Release (MTE0) Release (MTD1) Release (MTD0) Release (MTC1) Release (MTC0) Release (MTB1) Release (MTB0) Release (MTA1) Release (MTA0) Release (MT91) Release (MT90) Release (MT81) Release (MT80) Release (MT71) Release (MT70) Release (MT61) Release (MT60) Release (MT51) Release (MT50) Release (MT41) Release (MT40) Release (MT31) Release (MT30) Release (MT21) Release (MT20) Release (MT11) Release (MT10) Release (\_GL) Release (MT01) Release (MT00) } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } If (Arg0) { CH04 (__METHOD__, 0x01, 0x12, Z150, __LINE__, 0x00, 0x00) /* AE_LIMIT */ } Else { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } } /* * Valid sequence of requests, no exceptions expected. * * Acquire mutexes of monotone increasing level (Global lock * on level 0 too) for all available levels from 0 up to 15, * then Release them all in the inverse order. * * Exactly m301 but additionally: * all Release operations are located into separate method. */ Method (M36A, 0, Serialized) { Mutex (MT00, 0x00) Mutex (MT10, 0x01) Mutex (MT20, 0x02) Mutex (MT30, 0x03) Mutex (MT40, 0x04) Mutex (MT50, 0x05) Mutex (MT60, 0x06) Mutex (MT70, 0x07) Mutex (MT80, 0x08) Mutex (MT90, 0x09) Mutex (MTA0, 0x0A) Mutex (MTB0, 0x0B) Mutex (MTC0, 0x0C) Mutex (MTD0, 0x0D) Mutex (MTE0, 0x0E) Mutex (MTF0, 0x0F) Method (M000, 0, NotSerialized) { Local0 = Acquire (MT00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (\_GL, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT10, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT20, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT30, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT40, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT50, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT60, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT70, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT80, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT90, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTA0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTB0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTC0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTD0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTE0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTF0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { M001 () } } } } } } } } } } } } } } } } } } /* m000 */ Method (M001, 0, NotSerialized) { Release (MTF0) Release (MTE0) Release (MTD0) Release (MTC0) Release (MTB0) Release (MTA0) Release (MT90) Release (MT80) Release (MT70) Release (MT60) Release (MT50) Release (MT40) Release (MT30) Release (MT20) Release (MT10) Release (\_GL) Release (MT00) } CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } /* * Valid sequence of requests, no exceptions expected. * * Acquire mutexes of monotone increasing level (Global lock * on level 0 too) for all available levels from 0 up to 15, * then Release them all in the inverse order. * * Exactly m301 but additionally: * all Acquire and Release operations are located into separate methods. */ Method (M36B, 0, Serialized) { Mutex (MT00, 0x00) Mutex (MT10, 0x01) Mutex (MT20, 0x02) Mutex (MT30, 0x03) Mutex (MT40, 0x04) Mutex (MT50, 0x05) Mutex (MT60, 0x06) Mutex (MT70, 0x07) Mutex (MT80, 0x08) Mutex (MT90, 0x09) Mutex (MTA0, 0x0A) Mutex (MTB0, 0x0B) Mutex (MTC0, 0x0C) Mutex (MTD0, 0x0D) Mutex (MTE0, 0x0E) Mutex (MTF0, 0x0F) Method (M000, 0, NotSerialized) { Local0 = Acquire (MT00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (\_GL, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT10, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT20, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT30, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT40, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT50, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT60, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT70, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT80, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MT90, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTA0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTB0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTC0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTD0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTE0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Else { Local0 = Acquire (MTF0, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } } } } } } } } } } } } } } } } } } /* m000 */ Method (M001, 0, NotSerialized) { Release (MTF0) Release (MTE0) Release (MTD0) Release (MTC0) Release (MTB0) Release (MTA0) Release (MT90) Release (MT80) Release (MT70) Release (MT60) Release (MT50) Release (MT40) Release (MT30) Release (MT20) Release (MT10) Release (\_GL) Release (MT00) } CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) M001 () CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } /* * Invalid sequence of Acquire operations: * * 1) Acquire N-th level mutex (N>=1): * 2) Acquire: * - mutexes from 0 up to (N-1)-levels * - Global lock * 3) exception AE_AML_MUTEX_ORDER is expected for each Acquire of (2) */ Method (M36C, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) /* * arg0 - level of mutex to be acquired first * arg1 - level of mutex to be acquired second * arg2 - 1 - acquire 0-level mutex instead of arg1 * 2 - acquire Global lock instead of arg1 */ Method (M000, 3, Serialized) { /* Acquire the first mutex */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) M36F (Arg0, 0x00, 0x00, 0x00) /* Acquire N-level mutex */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) /* * Attempt to Acquire the second mutex (exception is expected). * * It is supposed that the second acquired * is a mutex of level not greater than (N-1) */ Switch (ToInteger (Arg2)) { Case (0x01) { M36F (0x00, 0x00, 0x01, 0x00) /* Acquire 0 level mux */ } Case (0x02) { M36F (GLLL, GLIX, 0x01, 0x00) /* Acquire GL */ } Default { M36F (Arg1, 0x00, 0x01, 0x00) /* Acquire arg1-level mux */ } } CH04 (__METHOD__, 0x00, 0x40, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_ORDER */ M388 (Arg0, 0x00, 0x00) /* Release */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } /* * The second Acquires are run in range from 0 up to (N-1) levels * * arg0 - N level (to be in range from 1 up to 15) */ Method (M001, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = Arg0 LPC0 = 0x00 While (LPN0) { M000 (Arg0, LPC0, 0x00) LPN0-- LPC0++ } } /* From 1 up to 15 levels */ LPN0 = (MAX0 - 0x01) LPC0 = 0x01 While (LPN0) { If (LPC0) { M001 (LPC0) M000 (LPC0, 0x00, 0x01) /* 0 level mux */ M000 (LPC0, 0x00, 0x02) /* GL */ } LPN0-- LPC0++ } } /* * Exception on Release. * Release mutex twice. * * Attempt to Release free mutex: Acquire, Release, Release. * Exception is expected on the second Release. * Do it for all level mutexes and Global lock too. */ Method (M389, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) /* arg0 - level of mutex */ Method (M000, 1, NotSerialized) { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) M36F (Arg0, 0x00, 0x00, 0x00) /* Acquire */ M388 (Arg0, 0x00, 0x00) /* Release */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) /* Attempt to Release free mutex */ M388 (Arg0, 0x00, 0x00) /* Release */ CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) M36F (Arg0, 0x00, 0x00, 0x00) /* Acquire */ M388 (Arg0, 0x00, 0x00) /* Release */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { M000 (LPC0) LPN0-- LPC0++ } /* Separately for GL */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) M36F (GLLL, GLIX, 0x00, 0x00) /* Acquire */ M388 (GLLL, GLIX, 0x00) /* Release */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) /* Attempt to Release free mutex */ M388 (GLLL, GLIX, 0x00) /* Release */ CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) M36F (GLLL, GLIX, 0x00, 0x00) /* Acquire */ M388 (GLLL, GLIX, 0x00) /* Release */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } /* * Exception on Release. * Attempt to Release clean mutex which was never Acquired. */ Method (M07B, 0, Serialized) { Mutex (T000, 0x00) Mutex (T100, 0x01) Mutex (T200, 0x02) Mutex (T300, 0x03) Mutex (T400, 0x04) Mutex (T500, 0x05) Mutex (T600, 0x06) Mutex (T700, 0x07) Mutex (T800, 0x08) Mutex (T900, 0x09) Mutex (TA00, 0x0A) Mutex (TB00, 0x0B) Mutex (TC00, 0x0C) Mutex (TD00, 0x0D) Mutex (TE00, 0x0E) Mutex (TF00, 0x0F) /* First time */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T000) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (\_GL) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T100) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T200) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T300) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T400) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T500) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T600) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T700) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T800) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T900) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TA00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TB00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TC00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TD00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TE00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TF00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* Second time */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T000) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T100) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T200) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T300) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T400) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T500) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T600) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T700) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T800) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T900) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TA00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TB00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TC00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TD00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TE00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TF00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) } /* * Exception on Release. * Break the sequence of Acquiring mutexes while Releasing them, * jump over the level. * * Invalid sequence of Releases: * * 1) Take level from range (N>=1 & N<=15) * 2) Acquire mutexes of all levels from 0 up to N * 3) Try to Release any mutex: * - in the level range from (N-1) down to 0 * - Global lock * 4) Do 1-3 for all levels in range (N>=1 & N<=15) */ Method (M38A, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (BR00, 0x00) LPN0 = (MAX0 - 0x01) LPC0 = 0x02 While (LPN0) { /* Acquire lpC0 levels from 0 level */ M38B (0x00, LPC0, 0x01, 0x00) /* * Exception is expected on each Release there. * * Break the sequence of Acquiring mutexes while Releasing them, * jump over the level. * Run Releasing mutexes NOT from (lpC0-1) level which would be * correct but from (lpC0-2) level down to 0 level so jumping over * the mutex of (lpC0-1) level which is Acquired which should cause * each of these Releases to generate AE_AML_MUTEX_ORDER exception. */ Local0 = (LPC0 - 0x02) Local1 = (LPC0 - 0x01) If (M38C (Local0, Local1, 0x01, 0x40)) { /* AE_AML_MUTEX_ORDER */ /* * Break for the first bunch of errors encountered, * don't waste log. */ BR00 = 0x01 } /* * Correct sequence of Releases. * Release lpC0 levels from (lpC0-1) down to 0 level. */ If (BR00) { M36F (HLMX, 0x00, 0x00, 0x00) M388 (HLMX, 0x00, 0x00) } Local0 = (LPC0 - 0x01) M38C (Local0, LPC0, 0x01, 0x00) If (BR00) { Break } LPN0-- LPC0++ } CH03 ("m38a", Z150, __LINE__, 0x00, 0x00) } /* * Manager for m38d. * * arg0 - the value of flag of GL * arg1 - order of Releasing bitmap (see m089) */ Method (M08C, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) /* * arg0 - Level of mutex * arg1 - the value of flag of GL * arg2 - order of Releasing bitmap (see m089) */ Method (M000, 3, NotSerialized) { /* Set up the value of flag of Global lock */ Local7 = M078 (Arg1) /* * min0 - number of mutexes existent for each level * * Acquire mutexes of level arg0 * in the order from 0 index up * to (min0-1) one, then Release * them in the order specified * by arg2. */ M088 (Arg0, 0x01, 0x00, MIN0, 0x00, 0x00, 0x00) /* Acquire */ M089 (Arg0, 0x01, 0x00, MIN0, 0x00, 0x00, Arg2) /* Release */ /* Restore the value of flag of Global lock */ M078 (Local7) } /* For each level */ LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { M000 (LPC0, Arg0, Arg1) LPN0-- LPC0++ } } /* * Check up that the Releasing of the same level mutexes * can be performed in an arbitrary order, independently * on the order they were Acquired. * * For each level separately, one by one. */ Method (M38D, 0, NotSerialized) { M08C (0x00, 0x00) /* direct order of Releasing, Mutex(0,1) is usual mutex */ M08C (0x00, 0x01) /* inverse order of Releasing, Mutex(0,1) is usual mutex */ M08C (0x01, 0x00) /* direct order of Releasing, Mutex(0,1) is GL */ M08C (0x01, 0x01) /* inverse order of Releasing, Mutex(0,1) is GL */ /* Check that all mutexes are Released */ M08A () } /* * Check up that the Releasing of the same level mutexes * can be performed in an arbitrary order, independently * on the order they were Acquired. * * Cross through all the levels. * * arg0 - order of Releasing bitmap (see m089) */ Method (M07D, 1, NotSerialized) { M088 (0x00, MAX0, 0x00, MIN0, 0x00, 0x00, 0x00) /* Acquire all mutexes on all levels */ M089 (0x00, MAX0, 0x00, MIN0, 0x00, 0x00, Arg0) /* Release all mutexes on all levels */ } /* * ACPI allows multiply own the same mutex * * arg0 - the value of flag of GL */ Method (M07A, 1, NotSerialized) { M079 (0x0A, Arg0) } /* * Multiply owning the same ACPI mutex. * Acquire the same mutex arg2 times, then Release it (arg2+1) times, * expect exception on the last Release. * The repeated Acquire are made with TimeoutValue equal to zero. * * arg0 - how many times to Acquire it * arg1 - the value of flag of GL */ Method (M079, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) Name (TOUT, 0x00) Name (IX00, 0x01) /* Set up the value of flag of Global lock */ Local7 = M078 (Arg1) /* Acquire */ /* levels */ LPN0 = MAX0 /* \MAX0 */ LPC0 = 0x00 While (LPN0) { /* repetitions */ LPN1 = Arg0 LPC1 = 0x00 While (LPN1) { If (LPC1) { TOUT = TOV0 /* TimeOutValue equal to 0 */ /* \TOV0 */ } Else { TOUT = 0x00 /* TimeOutValue equal to 0xffff (once for the first Acquire) */ } M36F (LPC0, IX00, 0x00, TOUT) LPN1-- LPC1++ } LPN0-- LPC0++ } /* Release */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) LPN0 = MAX0 /* \MAX0 */ LPC0 = (MAX0 - 0x01) While (LPN0) { /* repetitions */ LPN1 = Arg0 LPC1 = 0x00 While (LPN1) { M388 (LPC0, IX00, 0x00) LPN1-- LPC1++ } LPN0-- LPC0-- } /* The 'owning counters' are exhausted, so exceptions are expected */ LPN0 = MAX0 /* \MAX0 */ LPC0 = (MAX0 - 0x01) While (LPN0) { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) M388 (LPC0, IX00, 0x00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ LPN0-- LPC0-- } /* Restore the value of flag of Global lock */ M078 (Local7) } /* * ///////////////////////////////////////// * * The tests below examine different ways * to Acquire/Release mutexes * * ///////////////////////////////////////// */ /* * ATTENTION: this test must be run the first * * Different ways to Acquire/Release mutexes * * 1) Acquire and Release operations are in a global level AML code * * See m07c. */ Method (M0B9, 0, Serialized) { /* i101 - non-zero means that the test was run */ If (!I101) { Return (Zero) } CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } /* * The same operations as m0b9 (the test for global level AML code) * but enclosed into Method. */ Method (M0BB, 0, Serialized) { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Method (M137, 0, NotSerialized) { Debug = "m137 started" If (!I102) { Release (T804) } Debug = "m137 completed" Return (0x01) } Method (M13E, 0, NotSerialized) { Debug = "m13e started" I103 = Acquire (T805, 0xFFFF) If (I103) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, I103) } Debug = "m13e completed" Return (0x01) } Method (M13F, 0, NotSerialized) { Debug = "m13f started" If (!I103) { Release (T805) } Debug = "m13f completed" Return (0x01) } Name (I102, 0x01) Name (I103, 0x01) Name (B11C, Buffer ((0x01 + I102 = Acquire (T804, 0xFFFF))) { 0x00 // . }) Name (B11D, Buffer (M137 ()) { 0x00 // . }) Name (B11E, Buffer (M13E ()) { 0x00 // . }) Name (B11F, Buffer (M13F ()) { 0x00 // . }) If (I102) { Debug = "Acquire(T804, 0xffff) failed" ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, I102) } If (I103) { Debug = "Acquire(T805, 0xffff) failed" ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, I103) } CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } /* * Different ways to Acquire/Release mutexes * * 2) Acquire and Release operations are in the same method * 3) Acquire and Release operations are in different methods * * See m0b9. */ Method (M07C, 0, Serialized) { /* Acquire and Release operations are in the same method */ Method (M000, 0, NotSerialized) { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) /* Acquire all */ Local0 = Acquire (\_GL, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T000, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T100, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T200, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T300, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T400, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T500, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T600, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T700, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T800, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T900, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TA00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TB00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TC00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TD00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TE00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TF00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) /* Release all */ Release (TF00) Release (TE00) Release (TD00) Release (TC00) Release (TB00) Release (TA00) Release (T900) Release (T800) Release (T700) Release (T600) Release (T500) Release (T400) Release (T300) Release (T200) Release (T100) Release (T000) Release (\_GL) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } /* Acquire and Release operations are in different methods */ Method (M001, 0, NotSerialized) { Method (MM00, 0, NotSerialized) { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Local0 = Acquire (\_GL, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T000, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T100, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T200, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T300, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T400, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T500, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T600, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T700, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T800, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (T900, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TA00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TB00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TC00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TD00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TE00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = Acquire (TF00, 0xFFFF) If (Local0) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } Method (MM01, 0, NotSerialized) { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TF00) Release (TE00) Release (TD00) Release (TC00) Release (TB00) Release (TA00) Release (T900) Release (T800) Release (T700) Release (T600) Release (T500) Release (T400) Release (T300) Release (T200) Release (T100) Release (T000) Release (\_GL) CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) } Method (MM02, 0, NotSerialized) { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TF00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TE00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TD00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TC00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TB00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (TA00) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T900) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T800) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T700) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T600) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T500) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T400) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T300) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T200) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T100) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (T000) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) Release (\_GL) CH04 (__METHOD__, 0x00, 0x41, Z150, __LINE__, 0x00, 0x00) /* AE_AML_MUTEX_NOT_ACQUIRED */ } MM00 () MM01 () MM02 () } /* Acquire and Release operations are in the same method */ M000 () /* Acquire and Release operations are in different methods */ M001 () } /* * Acquire/Release operations enclosed in other operations */ Method (M0BA, 0, Serialized) { CH03 (__METHOD__, Z150, __LINE__, 0x00, 0x00) /* Add */ Local0 = (Acquire (\_GL, 0xFFFF) + 0x01) If ((Local0 != 0x01)) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = (Acquire (T500, 0xFFFF) + 0x01) If ((Local0 != 0x01)) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Release (T500) Release (\_GL) /* Subtract */ Local0 = (0x01 - Acquire (\_GL, 0xFFFF)) If ((Local0 != 0x01)) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Local0 = (0x01 - Acquire (T500, 0xFFFF)) If ((Local0 != 0x01)) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Release (T500) Release (\_GL) /* LEqual */ If ((Acquire (T500, 0xFFFF) != 0x00)) { ERR (__METHOD__, Z150, __LINE__, 0x00, 0x00, 0x00, Local0) } Release (T500) If (FL03) { /* Check that all mutexes are Released (doesn't check T804..) */ M08A () } CH04 (__METHOD__, 0x01, 0x40, Z150, __LINE__, 0x00, 0x00) } /* * ///////////////////////////////////////////// * * The tests below generate some combinations * of Acquire/Release operations * * ///////////////////////////////////////////// */ /* * Get 0 or 1 value pseudo randomly * * arg0 - input Integer */ Method (M08E, 0, NotSerialized) { /* To be improved */ Local0 = (CN00 & 0x01) CN00++ If (!Y242) { /* Always inverse order until the bug 242 is fixes */ Local0 = 0x01 } Return (Local0) } /* * Acquire/Release combination #1 */ Method (M07E, 0, Serialized) { Name (NUM, 0x04) Name (RPT0, 0x00) Name (RPT1, 0x03) Name (LPN0, 0x00) Name (LPC0, 0x00) /* Set up the value of flag of Global lock */ Local7 = M078 (0x00) LPN0 = NUM /* \M07E.NUM_ */ LPC0 = 0x00 While (LPN0) { /* Set up the value of flag of Global lock */ Divide (LPC0, 0x02, Local0) M078 (Local0) If (Local0) { RPT0 = RPT1 /* \M07E.RPT1 */ } Else { RPT0 = 0x01 } M088 (0x00, 0x03, 0x00, 0x04, 0x00, RPT0, 0x00) /* Step 0, Acquire */ M088 (0x03, 0x03, 0x01, 0x02, 0x00, RPT0, 0x00) /* Step 1, Acquire */ M089 (0x04, 0x02, 0x01, 0x02, 0x00, RPT0, M08E ()) /* Step 1, Release */ M088 (0x05, 0x03, 0x00, 0x04, 0x00, RPT0, 0x00) /* Step 2, Acquire */ M089 (0x07, 0x01, 0x01, 0x03, 0x00, RPT0, M08E ()) /* Step 2, Release */ M089 (0x07, 0x01, 0x00, 0x01, 0x00, RPT0, M08E ()) /* Step 2, Release */ M089 (0x06, 0x01, 0x00, 0x04, 0x00, RPT0, M08E ()) /* Step 2, Release */ M088 (0x09, 0x02, 0x02, 0x02, 0x00, RPT0, 0x00) /* Step 3, Acquire */ M089 (0x0A, 0x01, 0x03, 0x01, 0x00, RPT0, M08E ()) /* Step 3, Release */ M089 (0x0A, 0x01, 0x02, 0x01, 0x00, RPT0, M08E ()) /* Step 3, Release */ M089 (0x09, 0x01, 0x03, 0x01, 0x00, RPT0, M08E ()) /* Step 3, Release */ M088 (0x0A, 0x02, 0x00, 0x03, 0x00, RPT0, 0x00) /* Step 4, Acquire */ M089 (0x0A, 0x02, 0x00, 0x03, 0x00, RPT0, M08E ()) /* Step 4, Release */ M088 (0x0A, 0x02, 0x00, 0x03, 0x00, RPT0, 0x00) /* Step 5, Acquire */ M089 (0x0A, 0x02, 0x00, 0x03, 0x00, RPT0, M08E ()) /* Step 5, Release */ M088 (0x0C, 0x02, 0x00, 0x03, 0x00, RPT0, 0x00) /* Step 6, Acquire */ M089 (0x0C, 0x02, 0x00, 0x03, 0x00, RPT0, M08E ()) /* Step 6, Release */ M088 (0x0A, 0x06, 0x00, 0x04, 0x00, RPT0, 0x00) /* Step 7, Acquire */ M089 (0x0A, 0x06, 0x00, 0x04, 0x00, RPT0, M08E ()) /* Step 7, Release */ M088 (0x0C, 0x02, 0x00, 0x03, 0x00, RPT0, 0x00) /* Step 8, Acquire */ M089 (0x0C, 0x02, 0x00, 0x03, 0x00, RPT0, M08E ()) /* Step 8, Release */ M089 (0x09, 0x01, 0x02, 0x01, 0x00, RPT0, M08E ()) /* Step 3, Release */ M089 (0x05, 0x01, 0x00, 0x04, 0x00, RPT0, M08E ()) /* Step 2, Release */ M089 (0x03, 0x01, 0x01, 0x02, 0x00, RPT0, M08E ()) /* Step 1, Release */ M089 (0x01, 0x02, 0x00, 0x04, 0x00, RPT0, M08E ()) /* Step 0, Release */ M088 (0x01, 0x0F, 0x01, 0x02, 0x00, RPT0, 0x00) /* Step 9, Acquire */ M089 (0x01, 0x0F, 0x01, 0x02, 0x00, RPT0, M08E ()) /* Step 9, Release */ M089 (0x00, 0x01, 0x01, 0x01, 0x00, RPT0, M08E ()) /* Step 0, Release */ M089 (0x00, 0x01, 0x03, 0x01, 0x00, RPT0, M08E ()) /* Step 0, Release */ M089 (0x00, 0x01, 0x02, 0x01, 0x00, RPT0, M08E ()) /* Step 0, Release */ M089 (0x00, 0x01, 0x00, 0x01, 0x00, RPT0, M08E ()) /* Step 0, Release */ M088 (0x00, 0x10, 0x01, 0x02, 0x00, RPT0, 0x00) /* Step 10, Acquire */ M089 (0x00, 0x10, 0x01, 0x02, 0x00, RPT0, M08E ()) /* Step 10, Release */ LPN0-- LPC0++ } /* Restore the value of flag of Global lock */ M078 (Local7) If (FL03) { /* Check that all mutexes are Released */ M08A () } } /* * /////////////////////////////////////////////////// * * The tests below check behaviour after exceptions * * /////////////////////////////////////////////////// */ /* * Check the life after AE_AML_MUTEX_ORDER exception on Acquire * * 1) Acquire N-th level mutex MUX-N * 2) run Acquire (N-2)-th level mutex MUX-(N-2) and get AE_AML_MUTEX_ORDER exception * 3) run Acquire (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception * 4) Acquire mutex MUX-N and check that no exception on this operation * 5) Release mutex MUX-N and check that no exception on this operation * 6) Release mutex MUX-N and check that no exception on this operation * 7) do 1-6 for all N in range 2-15 levels * 8) check additionally that all the mutexes are free (run Release and * get AE_AML_MUTEX_NOT_ACQUIRED exception for all the mutexes of all levels) * 9) Acquire all mutexes of all levels and check that no exceptions * 10) Release all mutexes of all levels and check that no exceptions * 11) check additionally that all the mutexes are free (see 8) * * 12) do it for GL mode too * 13) do additional Acquire of MUX-(N-2) and MUX-(N-1) before Acquire of MUX-N (Release them later) * * arg0 - the value of flag of GL * arg1 - if non-zero do additional Acquire of MUX-(N-2) and MUX-(N-1) before Acquire of MUX-N */ Method (M08B, 2, Serialized) { Name (RPT0, 0x01) Name (ORD0, 0x01) Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) /* Set up the value of flag of Global lock */ Local7 = M078 (Arg0) LPN0 = (MAX0 - 0x02) LPC0 = 0x02 While (LPN0) { Local0 = (LPC0 - 0x01) Local1 = (LPC0 - 0x02) If (Arg1) { M088 (Local1, 0x01, 0x00, 0x04, 0x00, RPT0, 0x00) /* Step -2, Acquire */ M088 (Local0, 0x01, 0x00, 0x04, 0x00, RPT0, 0x00) /* Step -1, Acquire */ } M088 (LPC0, 0x01, 0x00, 0x01, 0x00, RPT0, 0x00) /* Step 0, Acquire */ M088 (Local1, 0x01, 0x00, 0x04, 0x40, RPT0, 0x00) /* Step 1, Acquire, AE_AML_MUTEX_ORDER */ M088 (Local0, 0x01, 0x00, 0x04, 0x40, RPT0, 0x00) /* Step 2, Acquire, AE_AML_MUTEX_ORDER */ M088 (LPC0, 0x01, 0x00, 0x04, 0x00, RPT0, 0x00) /* Step 3, Acquire */ M089 (LPC0, 0x01, 0x00, 0x04, 0x00, RPT0, ORD0) /* Step 3, Release */ M089 (LPC0, 0x01, 0x00, 0x01, 0x00, RPT0, ORD0) /* Step 0, Release */ If (Arg1) { M089 (Local0, 0x01, 0x00, 0x04, 0x00, RPT0, ORD0) /* Step -1, Release */ M089 (Local1, 0x01, 0x00, 0x04, 0x00, RPT0, ORD0) /* Step -2, Release */ } LPN0-- LPC0++ } /* Check that all mutexes are Released */ M08A () M088 (0x00, MAX0, 0x00, MIN0, 0x00, RPT0, 0x00) /* Step 4, Acquire */ M089 (0x00, MAX0, 0x00, MIN0, 0x00, RPT0, ORD0) /* Step 4, Release */ /* Check that all mutexes are Released */ M08A () /* Restore the value of flag of Global lock */ M078 (Local7) } /* * Check the life after AE_AML_MUTEX_ORDER exception on Release * * 1) Acquire (N-1)-th level mutex MUX-(N-1) * 2) Acquire (N)-th level mutex MUX-N * 3) run Release (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception * 4) Release (N)-th level mutex MUX-N and check that no exception on this operation * 5) Release (N-1)-th level mutex MUX-(N-1) and check that no exception on this operation * 6) do 1-5 for all N in range 1-15 levels * 7) check additionally that all the mutexes are free (run Release and * get AE_AML_MUTEX_NOT_ACQUIRED exception for all the mutexes of all levels) * 8) Acquire all mutexes of all levels and check that no exceptions * 9) Release all mutexes of all levels and check that no exceptions * 10) check additionally that all the mutexes are free (see 7) * * 11) do it for GL mode too * * arg0 - the value of flag of GL */ Method (M08D, 1, Serialized) { Name (RPT0, 0x01) Name (ORD0, 0x01) Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) /* Set up the value of flag of Global lock */ Local7 = M078 (Arg0) LPN0 = (MAX0 - 0x01) LPC0 = 0x01 While (LPN0) { Local0 = (LPC0 - 0x01) M088 (Local0, 0x01, 0x00, MIN0, 0x00, RPT0, 0x00) /* Step 0, Acquire */ M088 (LPC0, 0x01, 0x00, MIN0, 0x00, RPT0, 0x00) /* Step 1, Acquire */ /* Jump over the level */ M089 (Local0, 0x01, 0x00, MIN0, 0x40, RPT0, ORD0) /* Step 2, Release, AE_AML_MUTEX_ORDER */ M089 (LPC0, 0x01, 0x00, MIN0, 0x00, RPT0, ORD0) /* Step 1, Release */ M089 (Local0, 0x01, 0x00, MIN0, 0x00, RPT0, ORD0) /* Step 0, Release */ LPN0-- LPC0++ } /* Check that all mutexes are Released */ M08A () M088 (0x00, MAX0, 0x00, MIN0, 0x00, RPT0, 0x00) /* Step 3, Acquire */ M089 (0x00, MAX0, 0x00, MIN0, 0x00, RPT0, ORD0) /* Step 3, Release */ /* Check that all mutexes are Released */ M08A () /* Restore the value of flag of Global lock */ M078 (Local7) } /* * Check the life after AE_AML_MUTEX_ORDER exception on Release * * Similar to the m08d but trying to heal situation by * Acquiring/Release operations applied to the greater * level so changing the current level upper than all the * currently Acquired levels so don't expect exceptions on * the following Release operations applied in the correct * inverse order to all the Acquired mutexes. * * (for the current 20060828 ACPICA this doesn't help). */ Method (M07F, 0, Serialized) { Name (RPT0, 0x01) Name (ORD0, 0x01) Name (LPN0, 0x00) /* level */ Name (LPC0, 0x00) LPN0 = (MAX0 - 0x02) LPC0 = 0x01 While (LPN0) { Local0 = (LPC0 - 0x01) Local1 = (LPC0 + 0x01) M088 (Local0, 0x01, 0x00, MIN0, 0x00, RPT0, 0x00) /* Step 0, Acquire */ M088 (LPC0, 0x01, 0x00, MIN0, 0x00, RPT0, 0x00) /* Step 1, Acquire */ /* Jump over the level on Releasing */ M089 (Local0, 0x01, 0x00, MIN0, 0x40, RPT0, ORD0) /* Step 2, Release, AE_AML_MUTEX_ORDER */ /* * Additional attempt is made to restore the normal calculation - * Acquire the mutex M0 of level greater than all the levels * touched at that moment so changing the current level by the * succeeded operation. Then do Release operations for all * the Acquired mutexes in the correct inverse order starting * with the M0 mutex expecting no exceptions on them. * * (for the current 20060828 ACPICA this doesn't help). */ M088 (LPC0, 0x01, 0x00, 0x01, 0x00, RPT0, 0x00) /* Step 3, Acquire */ M088 (Local1, 0x01, 0x00, 0x01, 0x00, RPT0, 0x00) /* Step 4, Acquire */ M088 (LPC0, 0x01, 0x00, 0x01, 0x40, RPT0, 0x00) /* Step 5, Acquire, AE_AML_MUTEX_ORDER */ M089 (Local1, 0x01, 0x00, 0x01, 0x00, RPT0, ORD0) /* Step 4, Release */ M089 (LPC0, 0x01, 0x00, 0x01, 0x00, RPT0, ORD0) /* Step 3, Release */ M089 (LPC0, 0x01, 0x00, MIN0, 0x00, RPT0, ORD0) /* Step 1, Release */ M089 (Local0, 0x01, 0x00, MIN0, 0x00, RPT0, ORD0) /* Step 0, Release */ LPN0-- LPC0++ } /* Check that all mutexes are Released */ M08A () M088 (0x00, MAX0, 0x00, MIN0, 0x00, RPT0, 0x00) /* Step 6, Acquire */ M089 (0x00, MAX0, 0x00, MIN0, 0x00, RPT0, ORD0) /* Step 6, Release */ /* Check that all mutexes are Released */ M08A () } /* ############################################### Run-method: */ Method (M300, 0, NotSerialized) { If (FL03) { /* Check that all mutexes are Released (doesn't check T804..) */ M08A () } SRMT ("m300") If (ERR7) { ERR ("ERRORS were detected during the loading stage", Z150, __LINE__, 0x00, 0x00, 0x00, ERR7) } /* ATTENTION: this test must be run the first */ SRMT ("m0b9") M0B9 () SRMT ("m0bb") M0BB () SRMT ("m301") M301 () SRMT ("m369-0") M369 (0x00) SRMT ("m369-1") If (Y297) { M369 (0x01) } Else { BLCK () } SRMT ("m369-0") M369 (0x00) SRMT ("m36a") M36A () SRMT ("m36b") M36B () SRMT ("m36c") M36C () SRMT ("m389") M389 () SRMT ("m07b") M07B () SRMT ("m38a") If (Y238) { M38A () } Else { BLCK () } SRMT ("m38d") If (Y242) { M38D () } Else { BLCK () } SRMT ("m07d-direct") If (Y242) { M07D (0x00) } Else { BLCK () } SRMT ("m07d-inverse") M07D (0x01) SRMT ("m07a-no-GL") M07A (0x00) SRMT ("m07a-GL") M07A (0x01) SRMT ("m07e") M07E () SRMT ("m08b-no-GL-0") M08B (0x00, 0x00) SRMT ("m08b-no-GL-1") M08B (0x00, 0x01) SRMT ("m08b-GL-0") M08B (0x01, 0x00) SRMT ("m08b-GL-1") M08B (0x01, 0x01) SRMT ("m08d-no-GL") If (Y238) { M08D (0x00) } Else { BLCK () } SRMT ("m08d-GL") If (Y238) { M08D (0x01) } Else { BLCK () } SRMT ("m07f") If (Y243) { M07F () } Else { BLCK () } SRMT ("m07c") M07C () SRMT ("m0ba") M0BA () /* * To see if the mutex-es framework can continue working after AE_LIMIT. * Now, after AE_LIMIT, it looks can't actually restore -- many messages * during the all further execution of tests, and even the tests * "TEST: WAI0, Wait for Events" somewhere hangs forever: * * **** AcpiExec: Exception AE_LIMIT during execution of method [M369] Opcode [Mutex] @E2 * ACPI Exception (utmutex-0376): AE_BAD_PARAMETER, Thread 1475 could not acquire Mutex [0] [20074403] * ACPI Error (exutils-0180): Could not acquire AML Interpreter mutex [20074403] * ACPI Error (utmutex-0421): Mutex [0] is not acquired, cannot release [20074403] * ACPI Error (exutils-0250): Could not release AML Interpreter mutex [20074403] * **** AcpiExec: Exception override, new status AE_OK */ SRMT ("m369-0") M369 (0x00) SRMT ("m369-1") If (Y297) { M369 (0x01) } Else { BLCK () } SRMT ("m369-0") M369 (0x00) If (FL03) { /* Check that all mutexes are Released */ M08A () } CH03 ("m300", Z150, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/Makefile0000700000175000017500000000024214773714157031655 0ustar ivanhuivanhu# synchronization AMLMOD= synchronization COLL= ../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/synchronization/mutex.asl0000700000175000017500000011234314773714157032066 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Synchronization (mutexes) * * The test for ASL-Mutexes to be run on a single invocation only */ /* * Mutex + Acquire + Release * * The test actions exercise the (Mutex + Acquire + Release) * operators adhering to the following ACPI-specified rules * (some of them are verified): * * - creates a data mutex synchronization object, * with level from 0 to 15 specified by SyncLevel, * - a Mutex is not owned by a different invocation so it is owned * immediately, * - acquiring ownership of a Mutex can be nested, * - a Mutex can be acquired more than once by the same invocation, * - Acquire returns False if a timeout not occurred and the mutex * ownership was successfully acquired, * - to prevent deadlocks, wherever more than one synchronization * object must be owned, the synchronization objects must always * be released in the order opposite the order in which they were * acquired, * - all Acquire terms must refer to a synchronization object with * an equal or greater SyncLevel to current level, * - all Release terms must refer to a synchronization object with * equal or lower SyncLevel to the current level, * - after all the acquired mutexes of the current level are released * the top occupied levels declines to the nearest occupied level, * - Acquire increases the counter of mutex by one, * - Release decreases the counter of mutex by one. */ /* Acquire methods */ /* m01X(, , , , ) */ /* Release methods */ /* m02X(, , , , ) */ /* ================================================= Acquire methods */ Method (M010, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x00, 0x00, Acquire (T000, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x00, 0x01, Acquire (T001, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x00, 0x02, Acquire (T002, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x00, 0x03, Acquire (T003, 0x1000)) } } Method (M011, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x01, 0x00, Acquire (T100, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x01, 0x01, Acquire (T101, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x01, 0x02, Acquire (T102, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x01, 0x03, Acquire (T103, 0x1000)) } } Method (M012, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x02, 0x00, Acquire (T200, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x02, 0x01, Acquire (T201, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x02, 0x02, Acquire (T202, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x02, 0x03, Acquire (T203, 0x1000)) } } Method (M013, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x03, 0x00, Acquire (T300, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x03, 0x01, Acquire (T301, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x03, 0x02, Acquire (T302, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x03, 0x03, Acquire (T303, 0x1000)) } } Method (M014, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x04, 0x00, Acquire (T400, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x04, 0x01, Acquire (T401, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x04, 0x02, Acquire (T402, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x04, 0x03, Acquire (T403, 0x1000)) } } Method (M015, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x05, 0x00, Acquire (T500, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x05, 0x01, Acquire (T501, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x05, 0x02, Acquire (T502, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x05, 0x03, Acquire (T503, 0x1000)) } } Method (M016, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x06, 0x00, Acquire (T600, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x06, 0x01, Acquire (T601, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x06, 0x02, Acquire (T602, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x06, 0x03, Acquire (T603, 0x1000)) } } Method (M017, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x07, 0x00, Acquire (T700, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x07, 0x01, Acquire (T701, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x07, 0x02, Acquire (T702, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x07, 0x03, Acquire (T703, 0x1000)) } } Method (M018, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x08, 0x00, Acquire (T800, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x08, 0x01, Acquire (T801, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x08, 0x02, Acquire (T802, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x08, 0x03, Acquire (T803, 0x1000)) } } Method (M019, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x09, 0x00, Acquire (T900, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x09, 0x01, Acquire (T901, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x09, 0x02, Acquire (T902, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x09, 0x03, Acquire (T903, 0x1000)) } } Method (M01A, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x0A, 0x00, Acquire (TA00, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x0A, 0x01, Acquire (TA01, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x0A, 0x02, Acquire (TA02, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x0A, 0x03, Acquire (TA03, 0x1000)) } } Method (M01B, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x0B, 0x00, Acquire (TB00, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x0B, 0x01, Acquire (TB01, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x0B, 0x02, Acquire (TB02, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x0B, 0x03, Acquire (TB03, 0x1000)) } } Method (M01C, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x0C, 0x00, Acquire (TC00, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x0C, 0x01, Acquire (TC01, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x0C, 0x02, Acquire (TC02, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x0C, 0x03, Acquire (TC03, 0x1000)) } } Method (M01D, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x0D, 0x00, Acquire (TD00, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x0D, 0x01, Acquire (TD01, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x0D, 0x02, Acquire (TD02, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x0D, 0x03, Acquire (TD03, 0x1000)) } } Method (M01E, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x0E, 0x00, Acquire (TE00, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x0E, 0x01, Acquire (TE01, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x0E, 0x02, Acquire (TE02, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x0E, 0x03, Acquire (TE03, 0x1000)) } } Method (M01F, 5, NotSerialized) { If (Arg1) { CH00 (Arg0, 0x0F, 0x00, Acquire (TF00, 0x0000)) } If (Arg2) { CH00 (Arg0, 0x0F, 0x01, Acquire (TF01, 0xFFFF)) } If (Arg3) { CH00 (Arg0, 0x0F, 0x02, Acquire (TF02, 0x8000)) } If (Arg4) { CH00 (Arg0, 0x0F, 0x03, Acquire (TF03, 0x1000)) } } /* ================================================= Release methods */ Method (M020, 5, NotSerialized) { If (Arg4) { Release (T003) } If (Arg3) { Release (T002) } If (Arg2) { Release (T001) } If (Arg1) { Release (T000) } } Method (M021, 5, NotSerialized) { If (Arg4) { Release (T103) } If (Arg3) { Release (T102) } If (Arg2) { Release (T101) } If (Arg1) { Release (T100) } } Method (M022, 5, NotSerialized) { If (Arg4) { Release (T203) } If (Arg3) { Release (T202) } If (Arg2) { Release (T201) } If (Arg1) { Release (T200) } } Method (M023, 5, NotSerialized) { If (Arg4) { Release (T303) } If (Arg3) { Release (T302) } If (Arg2) { Release (T301) } If (Arg1) { Release (T300) } } Method (M024, 5, NotSerialized) { If (Arg4) { Release (T403) } If (Arg3) { Release (T402) } If (Arg2) { Release (T401) } If (Arg1) { Release (T400) } } Method (M025, 5, NotSerialized) { If (Arg4) { Release (T503) } If (Arg3) { Release (T502) } If (Arg2) { Release (T501) } If (Arg1) { Release (T500) } } Method (M026, 5, NotSerialized) { If (Arg4) { Release (T603) } If (Arg3) { Release (T602) } If (Arg2) { Release (T601) } If (Arg1) { Release (T600) } } Method (M027, 5, NotSerialized) { If (Arg4) { Release (T703) } If (Arg3) { Release (T702) } If (Arg2) { Release (T701) } If (Arg1) { Release (T700) } } Method (M028, 5, NotSerialized) { If (Arg4) { Release (T803) } If (Arg3) { Release (T802) } If (Arg2) { Release (T801) } If (Arg1) { Release (T800) } } Method (M029, 5, NotSerialized) { If (Arg4) { Release (T903) } If (Arg3) { Release (T902) } If (Arg2) { Release (T901) } If (Arg1) { Release (T900) } } Method (M02A, 5, NotSerialized) { If (Arg4) { Release (TA03) } If (Arg3) { Release (TA02) } If (Arg2) { Release (TA01) } If (Arg1) { Release (TA00) } } Method (M02B, 5, NotSerialized) { If (Arg4) { Release (TB03) } If (Arg3) { Release (TB02) } If (Arg2) { Release (TB01) } If (Arg1) { Release (TB00) } } Method (M02C, 5, NotSerialized) { If (Arg4) { Release (TC03) } If (Arg3) { Release (TC02) } If (Arg2) { Release (TC01) } If (Arg1) { Release (TC00) } } Method (M02D, 5, NotSerialized) { If (Arg4) { Release (TD03) } If (Arg3) { Release (TD02) } If (Arg2) { Release (TD01) } If (Arg1) { Release (TD00) } } Method (M02E, 5, NotSerialized) { If (Arg4) { Release (TE03) } If (Arg3) { Release (TE02) } If (Arg2) { Release (TE01) } If (Arg1) { Release (TE00) } } Method (M02F, 5, NotSerialized) { If (Arg4) { Release (TF03) } If (Arg3) { Release (TF02) } If (Arg2) { Release (TF01) } If (Arg1) { Release (TF00) } } /* ================================================= Run Acquire/Release */ /* * Acquire * arg0 - name of method to be reported * arg1 - synclevel (0-15) * arg2 - start mutex inside the first processed synclevel * (0 for other levels) * 0 - starting with the # (arg3) * 1 - 0-th * 2 - 1-th * 3 - 2-th * 4 - 3-th * arg3 - # operations to be performed for current synclevel */ Method (M030, 4, NotSerialized) { If ((Arg3 == 0x00)) { Return (0x00) } Local1 = 0x00 Local2 = 0x00 Local3 = 0x00 Local4 = 0x00 /* Local5 - index of highest */ Store ((Arg2 + Arg3), Local5) Local5-- Local6 = 0x00 Local7 = 0x00 If ((Arg2 <= 0x00)) { Local6 = 0x01 } If ((Local5 >= 0x00)) { Local7 = 0x01 } If ((Local6 && Local7)) { Local1 = 0x01 } Local6 = 0x00 Local7 = 0x00 If ((Arg2 <= 0x01)) { Local6 = 0x01 } If ((Local5 >= 0x01)) { Local7 = 0x01 } If ((Local6 && Local7)) { Local2 = 0x01 } Local6 = 0x00 Local7 = 0x00 If ((Arg2 <= 0x02)) { Local6 = 0x01 } If ((Local5 >= 0x02)) { Local7 = 0x01 } If ((Local6 && Local7)) { Local3 = 0x01 } Local6 = 0x00 Local7 = 0x00 If ((Arg2 <= 0x03)) { Local6 = 0x01 } If ((Local5 >= 0x03)) { Local7 = 0x01 } If ((Local6 && Local7)) { Local4 = 0x01 } If (0x00) { Debug = Local1 Debug = Local2 Debug = Local3 Debug = Local4 Return (0x00) } If ((Arg1 == 0x00)) { M010 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x01)) { M011 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x02)) { M012 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x03)) { M013 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x04)) { M014 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x05)) { M015 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x06)) { M016 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x07)) { M017 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x08)) { M018 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x09)) { M019 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0A)) { M01A (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0B)) { M01B (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0C)) { M01C (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0D)) { M01D (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0E)) { M01E (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0F)) { M01F (Arg0, Local1, Local2, Local3, Local4) } Return (0x00) } /* * Release * arg0 - name of method to be reported * arg1 - synclevel (0-15) * arg2 - start mutex inside the first processed synclevel * (0 for other levels) * 0 - starting with the # (arg3) * 4 - 3-th * 3 - 2-th * 2 - 1-th * 1 - 0-th * arg3 - # operations to be performed for current synclevel */ Method (M031, 4, NotSerialized) { If ((Arg3 == 0x00)) { Return (0x00) } Local1 = 0x00 Local2 = 0x00 Local3 = 0x00 Local4 = 0x00 /* arg2 - index of highest */ If ((Arg2 == 0x00)) { Arg2 = Arg3 } Arg2-- /* Local5 - index of lowest */ Store ((Arg2 - Arg3), Local5) Local5++ Local6 = 0x00 Local7 = 0x00 If ((Local5 <= 0x00)) { Local6 = 0x01 } If ((Arg2 >= 0x00)) { Local7 = 0x01 } If ((Local6 && Local7)) { Local1 = 0x01 } Local6 = 0x00 Local7 = 0x00 If ((Local5 <= 0x01)) { Local6 = 0x01 } If ((Arg2 >= 0x01)) { Local7 = 0x01 } If ((Local6 && Local7)) { Local2 = 0x01 } Local6 = 0x00 Local7 = 0x00 If ((Local5 <= 0x02)) { Local6 = 0x01 } If ((Arg2 >= 0x02)) { Local7 = 0x01 } If ((Local6 && Local7)) { Local3 = 0x01 } Local6 = 0x00 Local7 = 0x00 If ((Local5 <= 0x03)) { Local6 = 0x01 } If ((Arg2 >= 0x03)) { Local7 = 0x01 } If ((Local6 && Local7)) { Local4 = 0x01 } If (0x00) { Debug = Local1 Debug = Local2 Debug = Local3 Debug = Local4 Return (0x00) } If ((Arg1 == 0x00)) { M020 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x01)) { M021 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x02)) { M022 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x03)) { M023 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x04)) { M024 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x05)) { M025 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x06)) { M026 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x07)) { M027 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x08)) { M028 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x09)) { M029 (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0A)) { M02A (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0B)) { M02B (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0C)) { M02C (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0D)) { M02D (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0E)) { M02E (Arg0, Local1, Local2, Local3, Local4) } If ((Arg1 == 0x0F)) { M02F (Arg0, Local1, Local2, Local3, Local4) } Return (0x00) } /* ================================================= Tests */ /* How many times run Acquire/Release for the particular level mutexes */ /* 0 - Acquire */ /* 1 - Release */ /* * Name(p010, Buffer() { * 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, * 1, 0, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, * 0, 0, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, * 1, 0, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, * } * ) */ Name (P010, Buffer (0x03F0) { /* 0000 */ 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x03, // ........ /* 0028 */ 0x02, 0x01, 0x04, 0x03, 0x02, 0x01, 0x00, 0x00, // ........ /* 0030 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 0038 */ 0x04, 0x03, 0x02, 0x01, 0x04, 0x03, 0x02, 0x01, // ........ /* 0040 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0048 */ 0x00, 0x00, 0x04, 0x03, 0x02, 0x01, 0x04, 0x03, // ........ /* 0050 */ 0x02, 0x01, 0x04, 0x03, 0x02, 0x01, 0x04, 0x03, // ........ /* 0058 */ 0x02, 0x00, 0x01, 0x00, 0x04, 0x03, 0x02, 0x01, // ........ /* 0060 */ 0x04, 0x03, 0x02, 0x01, 0x04, 0x03, 0x02, 0x01, // ........ /* 0068 */ 0x04, 0x03, 0x02, 0x00, 0x00, 0x00, 0x04, 0x04, // ........ /* 0070 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0078 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x01, 0x00, // ........ /* 0080 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0088 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0090 */ 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0098 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 00A0 */ 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, // ........ /* 00A8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 00B0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, // ........ /* 00B8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 00C0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 00C8 */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 00D0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 00D8 */ 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 00E0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 00E8 */ 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, // ........ /* 00F0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 00F8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, // ........ /* 0100 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, // ........ /* 0108 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0110 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0118 */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0120 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0128 */ 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0130 */ 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0138 */ 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, // ........ /* 0140 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, // ........ /* 0148 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, // ........ /* 0150 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 0158 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0160 */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0168 */ 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0170 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0178 */ 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0180 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0188 */ 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, // ........ /* 0190 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0198 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, // ........ /* 01A0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 01A8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, // ........ /* 01B0 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 01B8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 01C0 */ 0x00, 0x04, 0x01, 0x00, 0x04, 0x04, 0x04, 0x04, // ........ /* 01C8 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 01D0 */ 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, // ........ /* 01D8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 01E0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, // ........ /* 01E8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 01F0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, // ........ /* 01F8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0200 */ 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0208 */ 0x04, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0210 */ 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0218 */ 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x04, 0x00, // ........ /* 0220 */ 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, // ........ /* 0228 */ 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x01, 0x00, // ........ /* 0230 */ 0x04, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, // ........ /* 0238 */ 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, // ........ /* 0240 */ 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0248 */ 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0250 */ 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0258 */ 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, // ........ /* 0260 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0268 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, // ........ /* 0270 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 0278 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0280 */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0288 */ 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0290 */ 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0298 */ 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 02A0 */ 0x00, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, // ........ /* 02A8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 02B0 */ 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x00, // ........ /* 02B8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 02C0 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 02C8 */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 02D0 */ 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 02D8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 02E0 */ 0x00, 0x00, 0x01, 0x04, 0x01, 0x00, 0x00, 0x00, // ........ /* 02E8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 02F0 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x01, 0x00, // ........ /* 02F8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0300 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, // ........ /* 0308 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0310 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0318 */ 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0320 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0328 */ 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, // ........ /* 0330 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, // ........ /* 0338 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, // ........ /* 0340 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, // ........ /* 0348 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, // ........ /* 0350 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, // ........ /* 0358 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0360 */ 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0368 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0370 */ 0x00, 0x00, 0x01, 0x00, 0x04, 0x04, 0x04, 0x04, // ........ /* 0378 */ 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0380 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, // ........ /* 0388 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, // ........ /* 0390 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 0398 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, // ........ /* 03A0 */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 03A8 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, // ........ /* 03B0 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x00, // ........ /* 03B8 */ 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 03C0 */ 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 03C8 */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 03D0 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, // ........ /* 03D8 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x01, 0x00, // ........ /* 03E0 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 03E8 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04 // ........ }) /* * Run Acquire/Release for all level mutexes * * Buffer:={N lines} * Line:= consists of 18 bytes: * 0: operation: 0-Acquire, 1-Release * 1: The start mutex inside the first processed synclevel * (start mux and synclevels are ordered: Acquire: left->r, * Release: r->l) * 0: to start according to the given number (bytes 2-17) * 1-4: Acquire (left->right) (1-0th,2-1th,3-2th,4-3th) * Release (right->left) (4-3th,3-2th,2-1th,1-0th) * 2-17: per-synclevel numbers of operations to be performed: * how many operations (from 0 up to 4) to be performed * (at most one per mutex) on the mutexes of the relevant * level (2th - synclevel 0, 3th - synclevel 1, etc.) * Variables: * arg0 - name of method to be reported * arg1 - lines total number * arg2 - buffer of lines * arg3 - name of buffer * Local7 - index of line * Local6 - synclevel (0-15) * Local5 - operation (0-Acquire,1-Release) * Local4 - abs index corresponding to synclevel inside the buffer * Local3 - auxiliary = (Local6 + 1) * Local2 - # operations to be performed for current synclevel * Local1 - start mutex inside the first processed synclevel * (0 for other levels) */ Method (M032, 4, NotSerialized) { Local7 = 0x00 While (Arg1) { Local6 = (Local7 * 0x12) Local5 = DerefOf (Arg2 [Local6]) Local6++ Local1 = DerefOf (Arg2 [Local6]) If ((Local5 == 0x00)) { If (0x00) { Debug = "============= Acq" } Store ((Local6 + 0x01), Local4) Local6 = 0x00 While ((Local6 < 0x10)) { Local2 = DerefOf (Arg2 [Local4]) If (0x00) { Debug = Local6 Debug = Local4 Debug = Local2 } If (Local2) { M030 (Arg0, Local6, Local1, Local2) Local1 = 0x00 } Local6++ Local4++ } } Else { If (0x00) { Debug = "============= Rel" } Store ((Local6 + 0x10), Local4) Local3 = 0x10 While (Local3) { Store ((Local3 - 0x01), Local6) Local2 = DerefOf (Arg2 [Local4]) If (0x00) { Debug = Local6 Debug = Local4 Debug = Local2 } If (Local2) { M031 (Arg0, Local6, Local1, Local2) Local1 = 0x00 } Local3-- Local4-- } } Local7++ Arg1-- } CH03 ("MUX0", Z150, __LINE__, 0x00, 0x00) } Method (M033, 0, Serialized) { Mutex (MTX0, 0x00) Local0 = Acquire (MTX0, 0x0000) If (Local0) { Debug = "M033: Could not acquire mutex" Return (Zero) } Release (MTX0) } Method (M034, 0, NotSerialized) { Local0 = 0xC8 While (Local0) { M033 () Local0-- } } /* Run-method */ Method (MUX0, 0, Serialized) { Debug = "TEST: MUX0, Acquire/Release Mutex" SRMT ("m032") M032 (__METHOD__, 0x38, P010, "p010") SRMT ("m034") M034 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/FULL/0000700000175000017500000000000014773714156025514 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/FULL/DECL.asl0000700000175000017500000000473114773714156026734 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Functional tests collection, to be compiled all together as one module Include("../../../../runtime/collections/functional/arithmetic/DECL.asl") Include("../../../../runtime/collections/functional/bfield/DECL.asl") Include("../../../../runtime/collections/functional/constant/DECL.asl") Include("../../../../runtime/collections/functional/control/DECL.asl") Include("../../../../runtime/collections/functional/descriptor/DECL.asl") Include("../../../../runtime/collections/functional/logic/DECL.asl") Include("../../../../runtime/collections/functional/manipulation/DECL.asl") Include("../../../../runtime/collections/functional/name/DECL.asl") Include("../../../../runtime/collections/functional/reference/DECL.asl") Include("../../../../runtime/collections/functional/region/DECL.asl") Include("../../../../runtime/collections/functional/synchronization/DECL.asl") Include("../../../../runtime/collections/functional/table/DECL.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/FULL/RUN.asl0000700000175000017500000000466414773714156026676 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Store("COLLECTION: all functional tests", Debug) Include("../../../../runtime/collections/functional/arithmetic/RUN.asl") Include("../../../../runtime/collections/functional/bfield/RUN.asl") Include("../../../../runtime/collections/functional/constant/RUN.asl") Include("../../../../runtime/collections/functional/control/RUN.asl") Include("../../../../runtime/collections/functional/descriptor/RUN.asl") Include("../../../../runtime/collections/functional/logic/RUN.asl") Include("../../../../runtime/collections/functional/manipulation/RUN.asl") Include("../../../../runtime/collections/functional/name/RUN.asl") Include("../../../../runtime/collections/functional/reference/RUN.asl") Include("../../../../runtime/collections/functional/region/RUN.asl") Include("../../../../runtime/collections/functional/synchronization/RUN.asl") Include("../../../../runtime/collections/functional/table/RUN.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/FULL/MAIN.asl0000700000175000017500000000455014773714156026750 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Run functional tests collection DefinitionBlock( "functional.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../runtime/cntl/DECL.asl") Include("../../../../runtime/common/data.asl") Include("../../../../runtime/common/dataproc.asl") Include("../../../../runtime/common/datastproc.asl") Include("../../../../runtime/collections/functional/FULL/DECL.asl") Method(m1a8, 3) { Store("It is implemented in exc_ref.asl, not used here", Debug) } Method(MAIN) { // Initialization STRT(1) // Run verification methods Include("../../../../runtime/collections/functional/FULL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/0000700000175000017500000000000014773714156027452 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/match1.asl0000700000175000017500000016615014773714156031344 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * Find Object Match (check for Integer values) */ Name (Z038, 0x26) /* The depth of testing flag */ Name (C099, 0x00) /* Match operator wrapper */ Method (M306, 6, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { Switch (ToInteger (Arg3)) { Case (0x00) { Local0 = Match (Arg0, MTR, Arg2, MTR, Arg4, Arg5) } Case (0x01) { Local0 = Match (Arg0, MTR, Arg2, MEQ, Arg4, Arg5) } Case (0x02) { Local0 = Match (Arg0, MTR, Arg2, MLE, Arg4, Arg5) } Case (0x03) { Local0 = Match (Arg0, MTR, Arg2, MLT, Arg4, Arg5) } Case (0x04) { Local0 = Match (Arg0, MTR, Arg2, MGE, Arg4, Arg5) } Case (0x05) { Local0 = Match (Arg0, MTR, Arg2, MGT, Arg4, Arg5) } } } Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x00) { Local0 = Match (Arg0, MEQ, Arg2, MTR, Arg4, Arg5) } Case (0x01) { Local0 = Match (Arg0, MEQ, Arg2, MEQ, Arg4, Arg5) } Case (0x02) { Local0 = Match (Arg0, MEQ, Arg2, MLE, Arg4, Arg5) } Case (0x03) { Local0 = Match (Arg0, MEQ, Arg2, MLT, Arg4, Arg5) } Case (0x04) { Local0 = Match (Arg0, MEQ, Arg2, MGE, Arg4, Arg5) } Case (0x05) { Local0 = Match (Arg0, MEQ, Arg2, MGT, Arg4, Arg5) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x00) { Local0 = Match (Arg0, MLE, Arg2, MTR, Arg4, Arg5) } Case (0x01) { Local0 = Match (Arg0, MLE, Arg2, MEQ, Arg4, Arg5) } Case (0x02) { Local0 = Match (Arg0, MLE, Arg2, MLE, Arg4, Arg5) } Case (0x03) { Local0 = Match (Arg0, MLE, Arg2, MLT, Arg4, Arg5) } Case (0x04) { Local0 = Match (Arg0, MLE, Arg2, MGE, Arg4, Arg5) } Case (0x05) { Local0 = Match (Arg0, MLE, Arg2, MGT, Arg4, Arg5) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x00) { Local0 = Match (Arg0, MLT, Arg2, MTR, Arg4, Arg5) } Case (0x01) { Local0 = Match (Arg0, MLT, Arg2, MEQ, Arg4, Arg5) } Case (0x02) { Local0 = Match (Arg0, MLT, Arg2, MLE, Arg4, Arg5) } Case (0x03) { Local0 = Match (Arg0, MLT, Arg2, MLT, Arg4, Arg5) } Case (0x04) { Local0 = Match (Arg0, MLT, Arg2, MGE, Arg4, Arg5) } Case (0x05) { Local0 = Match (Arg0, MLT, Arg2, MGT, Arg4, Arg5) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x00) { Local0 = Match (Arg0, MGE, Arg2, MTR, Arg4, Arg5) } Case (0x01) { Local0 = Match (Arg0, MGE, Arg2, MEQ, Arg4, Arg5) } Case (0x02) { Local0 = Match (Arg0, MGE, Arg2, MLE, Arg4, Arg5) } Case (0x03) { Local0 = Match (Arg0, MGE, Arg2, MLT, Arg4, Arg5) } Case (0x04) { Local0 = Match (Arg0, MGE, Arg2, MGE, Arg4, Arg5) } Case (0x05) { Local0 = Match (Arg0, MGE, Arg2, MGT, Arg4, Arg5) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x00) { Local0 = Match (Arg0, MGT, Arg2, MTR, Arg4, Arg5) } Case (0x01) { Local0 = Match (Arg0, MGT, Arg2, MEQ, Arg4, Arg5) } Case (0x02) { Local0 = Match (Arg0, MGT, Arg2, MLE, Arg4, Arg5) } Case (0x03) { Local0 = Match (Arg0, MGT, Arg2, MLT, Arg4, Arg5) } Case (0x04) { Local0 = Match (Arg0, MGT, Arg2, MGE, Arg4, Arg5) } Case (0x05) { Local0 = Match (Arg0, MGT, Arg2, MGT, Arg4, Arg5) } } } } Return (Local0) } /* Test engine */ /* arg0 - test name */ /* arg1 - number of the test cases in the test parameters package */ /* arg2 - search package name */ /* arg3 - test parameters package */ /* arg4 - benchmark package */ /* arg5 - search package */ /* arg6 - to do transposition of match objects flag */ Method (M308, 7, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) Name (LPC2, 0x00) LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { /* Operands */ Local6 = (LPC0 * 0x03) Local1 = DerefOf (Arg3 [Local6]) Local6++ Local3 = DerefOf (Arg3 [Local6]) Local6++ Local4 = DerefOf (Arg3 [Local6]) /* Expected result package */ Local5 = DerefOf (Arg4 [LPC0]) LPN1 = 0x24 LPC1 = 0x00 While (LPN1) { Divide (LPC1, 0x06, Local2, Local0) /* Expected result */ Local7 = DerefOf (Local5 [LPC1]) Local6 = M306 (Arg5, Local0, Local1, Local2, Local3, Local4) If ((Local7 != Local6)) { ERR ("err 1", Z038, __LINE__, 0x00, 0x00, LPC1, Arg2) } If ((Arg6 && (Local1 != Local3))) { /* Transpose match objects */ /* Expected result */ LPC2 = ((Local2 * 0x06) + Local0) Local7 = DerefOf (Local5 [LPC2]) Local6 = M306 (Arg5, Local0, Local3, Local2, Local1, Local4) If ((Local7 != Local6)) { ERR ("err 2", Z038, __LINE__, 0x00, 0x00, LPC2, Arg2) } } LPN1-- LPC1++ } LPN0-- LPC0++ } } /* Search package */ Name (P370, Package (0x0C) { 0x1A, 0x0B, 0x13, 0x0E, 0x0C, 0x23, 0x26, 0x1D, 0x1F, 0x17, 0x12, 0x20 }) /* Test parameters package, */ /* array of triples: MO1, MO2, SInd */ Name (P371, Package (0x66) { 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x28, 0x28, 0x00, 0x0D, 0x0D, 0x00, 0x0E, 0x0E, 0x00, 0x0F, 0x0F, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x0F, 0x00, 0x0D, 0x28, 0x00, 0x0E, 0x28, 0x00, 0x0F, 0x28, 0x00, 0x0D, 0x1D, 0x00, 0x0E, 0x1D, 0x00, 0x0F, 0x1D, 0x00, 0x0E, 0x1C, 0x00, 0x0E, 0x1E, 0x00, 0x0F, 0x1C, 0x00, 0x0E, 0x1D, 0x01, 0x0F, 0x1D, 0x01, 0x0E, 0x1E, 0x01, 0x0F, 0x1C, 0x01, 0x0E, 0x1D, 0x06, 0x0F, 0x1D, 0x06, 0x0E, 0x1E, 0x06, 0x0F, 0x1C, 0x06, 0x0E, 0x1D, 0x09, 0x0F, 0x1D, 0x09, 0x0E, 0x1E, 0x09, 0x0F, 0x1C, 0x09, 0x0E, 0x1D, 0x0B, 0x0F, 0x1D, 0x0B, 0x0E, 0x1E, 0x0B, 0x0F, 0x1C, 0x0B }) /* Benchmark package, each package in it */ /* corresponds to the relevant test parameters */ /* case and enumerates the results of Match for */ /* all combinations of the match operators (36). */ Name (P372, Package (0x22) { Package (0x24) { 0x00, Ones, Ones, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, Ones, Ones, 0x00, 0x00, 0x00, Ones, Ones, Ones, 0x00, 0x00 }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }, Package (0x24) { 0x00, Ones, 0x01, 0x01, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, Ones, Ones, Ones, 0x00, 0x00, 0x00, Ones, Ones, Ones, 0x00, 0x00 }, Package (0x24) { 0x00, 0x03, 0x01, 0x01, 0x00, 0x00, 0x03, 0x03, 0x03, Ones, 0x03, Ones, 0x01, 0x03, 0x01, 0x01, 0x03, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, 0x03, 0x03, Ones, 0x00, 0x00, 0x00, Ones, Ones, Ones, 0x00, 0x00 }, Package (0x24) { 0x00, Ones, 0x01, 0x01, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, Ones, Ones, Ones, 0x00, 0x00, 0x00, Ones, Ones, Ones, 0x00, 0x00 }, Package (0x24) { 0x00, Ones, 0x01, 0x01, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, 0x01, 0x01, 0x00, 0x00, 0x00, Ones, 0x01, 0x01, 0x00, 0x00 }, Package (0x24) { 0x00, 0x03, 0x01, 0x01, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x03, 0x01, 0x01, 0x00, 0x00 }, Package (0x24) { 0x00, Ones, 0x01, 0x01, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, 0x01, 0x01, 0x00, 0x00, 0x00, Ones, 0x01, 0x01, 0x00, 0x00 }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x03, Ones, 0x03, 0x03, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones }, Package (0x24) { 0x00, 0x07, 0x00, 0x00, 0x05, 0x05, Ones, Ones, Ones, Ones, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, 0x07, 0x00, 0x00, 0x05, 0x05, 0x00, 0x07, 0x00, 0x00, 0x05, 0x05 }, Package (0x24) { 0x00, 0x07, 0x00, 0x00, 0x05, 0x05, 0x03, Ones, 0x03, 0x03, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, 0x07, 0x00, 0x00, 0x05, 0x05, 0x00, 0x07, 0x00, 0x00, 0x05, 0x05 }, Package (0x24) { 0x00, 0x07, 0x00, 0x00, 0x05, 0x05, Ones, Ones, Ones, Ones, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, 0x07, 0x00, 0x00, 0x05, 0x05, 0x00, 0x07, 0x00, 0x00, 0x05, 0x05 }, Package (0x24) { 0x00, Ones, 0x00, 0x00, 0x05, 0x05, 0x03, Ones, 0x03, 0x03, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, Ones, 0x00, 0x00, 0x05, 0x05, 0x00, Ones, 0x00, 0x00, 0x05, 0x05 }, Package (0x24) { 0x00, Ones, 0x00, 0x00, 0x05, 0x05, 0x03, Ones, 0x03, 0x03, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, Ones, 0x00, 0x00, 0x05, 0x05, 0x00, Ones, 0x00, 0x00, 0x05, 0x05 }, Package (0x24) { 0x00, Ones, 0x00, 0x00, 0x05, 0x05, Ones, Ones, Ones, Ones, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x00, Ones, 0x00, 0x00, 0x05, 0x05, 0x00, Ones, 0x00, 0x00, 0x05, 0x05 }, Package (0x24) { 0x01, 0x07, 0x01, 0x01, 0x05, 0x05, 0x03, Ones, 0x03, 0x03, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x02, 0x07, 0x02, 0x02, 0x05, 0x05, 0x02, 0x07, 0x02, 0x02, 0x05, 0x05 }, Package (0x24) { 0x01, 0x07, 0x01, 0x01, 0x05, 0x05, Ones, Ones, Ones, Ones, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x02, 0x07, 0x02, 0x02, 0x05, 0x05, 0x02, 0x07, 0x02, 0x02, 0x05, 0x05 }, Package (0x24) { 0x01, Ones, 0x01, 0x01, 0x05, 0x05, 0x03, Ones, 0x03, 0x03, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x02, Ones, 0x02, 0x02, 0x05, 0x05, 0x02, Ones, 0x02, 0x02, 0x05, 0x05 }, Package (0x24) { 0x01, Ones, 0x01, 0x01, 0x05, 0x05, Ones, Ones, Ones, Ones, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x01, Ones, 0x01, 0x01, Ones, Ones, 0x02, Ones, 0x02, 0x02, 0x05, 0x05, 0x02, Ones, 0x02, 0x02, 0x05, 0x05 }, Package (0x24) { 0x06, 0x07, 0x07, 0x09, 0x06, 0x06, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x06, 0x07, 0x07, 0x09, 0x06, 0x06, 0x06, 0x07, 0x07, 0x09, 0x06, 0x06 }, Package (0x24) { 0x06, 0x07, 0x07, 0x09, 0x06, 0x06, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x06, 0x07, 0x07, 0x09, 0x06, 0x06, 0x06, 0x07, 0x07, 0x09, 0x06, 0x06 }, Package (0x24) { 0x06, Ones, 0x07, 0x07, 0x06, 0x06, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x06, Ones, 0x07, 0x07, 0x06, 0x06, 0x06, Ones, 0x07, 0x07, 0x06, 0x06 }, Package (0x24) { 0x06, Ones, 0x09, 0x09, 0x06, 0x06, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x06, Ones, 0x09, 0x09, 0x06, 0x06, 0x06, Ones, 0x09, 0x09, 0x06, 0x06 }, Package (0x24) { 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B, 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B }, Package (0x24) { 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B, 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B }, Package (0x24) { 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B, 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B }, Package (0x24) { 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B, 0x09, Ones, 0x09, 0x09, 0x0B, 0x0B }, Package (0x24) { 0x0B, Ones, Ones, Ones, 0x0B, 0x0B, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x0B, Ones, Ones, Ones, 0x0B, 0x0B, 0x0B, Ones, Ones, Ones, 0x0B, 0x0B }, Package (0x24) { 0x0B, Ones, Ones, Ones, 0x0B, 0x0B, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x0B, Ones, Ones, Ones, 0x0B, 0x0B, 0x0B, Ones, Ones, Ones, 0x0B, 0x0B }, Package (0x24) { 0x0B, Ones, Ones, Ones, 0x0B, 0x0B, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x0B, Ones, Ones, Ones, 0x0B, 0x0B, 0x0B, Ones, Ones, Ones, 0x0B, 0x0B }, Package (0x24) { 0x0B, Ones, Ones, Ones, 0x0B, 0x0B, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x0B, Ones, Ones, Ones, 0x0B, 0x0B, 0x0B, Ones, Ones, Ones, 0x0B, 0x0B } }) Name (P373, Package (0x0C) { 0x1A, 0x0B, 0x13, 0x0E, 0x0E, 0x23, 0x26, 0x1D, 0x1F, 0x17, 0x12, 0x20 }) Name (P374, Package (0x0C) { 0x1A, 0x0B, 0x13, 0x0E, 0x0C, 0x23, 0x26, 0x1D, 0x1D, 0x17, 0x12, 0x20 }) Name (P375, Package (0x0C) { 0x1A, 0x0B, 0x13, 0x0E, 0x0E, 0x23, 0x26, 0x1D, 0x1D, 0x17, 0x12, 0x20 }) Name (P376, Package (0x0C) { 0x1A, 0x0B, 0x13, 0x0E, Package (0x01) { 0x1D }, 0x23, 0x26, 0x1D, Package (0x01) { 0x28 }, 0x17, Package (0x01) { 0x00 }, 0x20 }) Name (P389, Package (0x0C) { 0x80000026, 0x0B, 0x13, 0x0E, 0x0C, 0x80000035, 0x80000038, 0x80000029, 0x80000031, 0x17, 0x12, 0x80000032 }) Name (P38A, Package (0x66) { 0x00, 0x00, 0x00, 0x00, 0x80000040, 0x00, 0x80000040, 0x80000040, 0x00, 0x0D, 0x0D, 0x00, 0x0E, 0x0E, 0x00, 0x0F, 0x0F, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x0F, 0x00, 0x0D, 0x80000040, 0x00, 0x0E, 0x80000040, 0x00, 0x0F, 0x80000040, 0x00, 0x0D, 0x80000029, 0x00, 0x0E, 0x80000029, 0x00, 0x0F, 0x80000029, 0x00, 0x0E, 0x80000028, 0x00, 0x0E, 0x80000030, 0x00, 0x0F, 0x80000028, 0x00, 0x0E, 0x80000029, 0x01, 0x0F, 0x80000029, 0x01, 0x0E, 0x80000030, 0x01, 0x0F, 0x80000028, 0x01, 0x0E, 0x80000029, 0x06, 0x0F, 0x80000029, 0x06, 0x0E, 0x80000030, 0x06, 0x0F, 0x80000028, 0x06, 0x0E, 0x80000029, 0x09, 0x0F, 0x80000029, 0x09, 0x0E, 0x80000030, 0x09, 0x0F, 0x80000028, 0x09, 0x0E, 0x80000029, 0x0B, 0x0F, 0x80000029, 0x0B, 0x0E, 0x80000030, 0x0B, 0x0F, 0x80000028, 0x0B }) Name (P38B, Package (0x0C) { 0x0000000100000026, 0x0B, 0x13, 0x0E, 0x0C, 0x0000000100000035, 0x0000000100000038, 0x0000000100000029, 0x0000000100000031, 0x17, 0x12, 0x0000000100000032 }) Name (P38C, Package (0x66) { 0x00, 0x00, 0x00, 0x00, 0x0000000100000040, 0x00, 0x0000000100000040, 0x0000000100000040, 0x00, 0x0D, 0x0D, 0x00, 0x0E, 0x0E, 0x00, 0x0F, 0x0F, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x0F, 0x00, 0x0D, 0x0000000100000040, 0x00, 0x0E, 0x0000000100000040, 0x00, 0x0F, 0x0000000100000040, 0x00, 0x0D, 0x0000000100000029, 0x00, 0x0E, 0x0000000100000029, 0x00, 0x0F, 0x0000000100000029, 0x00, 0x0E, 0x0000000100000028, 0x00, 0x0E, 0x0000000100000030, 0x00, 0x0F, 0x0000000100000028, 0x00, 0x0E, 0x0000000100000029, 0x01, 0x0F, 0x0000000100000029, 0x01, 0x0E, 0x0000000100000030, 0x01, 0x0F, 0x0000000100000028, 0x01, 0x0E, 0x0000000100000029, 0x06, 0x0F, 0x0000000100000029, 0x06, 0x0E, 0x0000000100000030, 0x06, 0x0F, 0x0000000100000028, 0x06, 0x0E, 0x0000000100000029, 0x09, 0x0F, 0x0000000100000029, 0x09, 0x0E, 0x0000000100000030, 0x09, 0x0F, 0x0000000100000028, 0x09, 0x0E, 0x0000000100000029, 0x0B, 0x0F, 0x0000000100000029, 0x0B, 0x0E, 0x0000000100000030, 0x0B, 0x0F, 0x0000000100000028, 0x0B }) Name (P38D, Package (0x0C) { 0x8000000000000026, 0x0000000100000011, 0x0000000100000019, 0x0000000100000014, 0x0000000100000012, 0x8000000000000035, 0x8000000000000038, 0x8000000000000029, 0x8000000000000031, 0x0000000100000023, 0x0000000100000018, 0x8000000000000032 }) Name (P38E, Package (0x66) { 0x0000000100000000, 0x0000000100000000, 0x00, 0x0000000100000000, 0x8000000000000040, 0x00, 0x8000000000000040, 0x8000000000000040, 0x00, 0x0000000100000013, 0x0000000100000013, 0x00, 0x0000000100000014, 0x0000000100000014, 0x00, 0x0000000100000015, 0x0000000100000015, 0x00, 0x0000000100000000, 0x0000000100000013, 0x00, 0x0000000100000000, 0x0000000100000014, 0x00, 0x0000000100000000, 0x0000000100000015, 0x00, 0x0000000100000013, 0x8000000000000040, 0x00, 0x0000000100000014, 0x8000000000000040, 0x00, 0x0000000100000015, 0x8000000000000040, 0x00, 0x0000000100000013, 0x8000000000000029, 0x00, 0x0000000100000014, 0x8000000000000029, 0x00, 0x0000000100000015, 0x8000000000000029, 0x00, 0x0000000100000014, 0x8000000000000028, 0x00, 0x0000000100000014, 0x8000000000000030, 0x00, 0x0000000100000015, 0x8000000000000028, 0x00, 0x0000000100000014, 0x8000000000000029, 0x01, 0x0000000100000015, 0x8000000000000029, 0x01, 0x0000000100000014, 0x8000000000000030, 0x01, 0x0000000100000015, 0x8000000000000028, 0x01, 0x0000000100000014, 0x8000000000000029, 0x06, 0x0000000100000015, 0x8000000000000029, 0x06, 0x0000000100000014, 0x8000000000000030, 0x06, 0x0000000100000015, 0x8000000000000028, 0x06, 0x0000000100000014, 0x8000000000000029, 0x09, 0x0000000100000015, 0x8000000000000029, 0x09, 0x0000000100000014, 0x8000000000000030, 0x09, 0x0000000100000015, 0x8000000000000028, 0x09, 0x0000000100000014, 0x8000000000000029, 0x0B, 0x0000000100000015, 0x8000000000000029, 0x0B, 0x0000000100000014, 0x8000000000000030, 0x0B, 0x0000000100000015, 0x8000000000000028, 0x0B }) Name (P377, Package (0x0C) { 0xFFFFFFFFFFFFFF26, 0xFFFFFFFFFFFFFF11, 0xFFFFFFFFFFFFFF19, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF35, 0xFFFFFFFFFFFFFF38, 0xFFFFFFFFFFFFFF29, 0xFFFFFFFFFFFFFF29, 0xFFFFFFFFFFFFFF23, 0xFFFFFFFFFFFFFF18, 0xFFFFFFFFFFFFFF32 }) Name (P378, Package (0x66) { 0xFFFFFFFFFFFFFF00, 0xFFFFFFFFFFFFFF00, 0x00, 0xFFFFFFFFFFFFFF00, 0xFFFFFFFFFFFFFFFF, 0x00, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0x00, 0xFFFFFFFFFFFFFF13, 0xFFFFFFFFFFFFFF13, 0x00, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF14, 0x00, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF15, 0x00, 0xFFFFFFFFFFFFFF00, 0xFFFFFFFFFFFFFF13, 0x00, 0xFFFFFFFFFFFFFF00, 0xFFFFFFFFFFFFFF14, 0x00, 0xFFFFFFFFFFFFFF00, 0xFFFFFFFFFFFFFF15, 0x00, 0xFFFFFFFFFFFFFF13, 0xFFFFFFFFFFFFFFFF, 0x00, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFFFF, 0x00, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFFFF, 0x00, 0xFFFFFFFFFFFFFF13, 0xFFFFFFFFFFFFFF29, 0x00, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF29, 0x00, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF29, 0x00, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF28, 0x00, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF2A, 0x00, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF28, 0x00, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF29, 0x01, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF29, 0x01, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF2A, 0x01, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF28, 0x01, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF29, 0x06, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF29, 0x06, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF2A, 0x06, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF28, 0x06, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF29, 0x09, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF29, 0x09, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF2A, 0x09, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF28, 0x09, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF29, 0x0B, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF29, 0x0B, 0xFFFFFFFFFFFFFF14, 0xFFFFFFFFFFFFFF2A, 0x0B, 0xFFFFFFFFFFFFFF15, 0xFFFFFFFFFFFFFF28, 0x0B }) /* One-element length package special case */ Name (P380, Package (0x01) { 0x01 }) Name (P381, Package (0x12) { 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x02, 0x00, 0x01, 0x01, 0x00, 0x01, 0x02, 0x00, 0x02, 0x02, 0x00 }) Name (P382, Package (0x06) { Package (0x24) { 0x00, Ones, Ones, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, Ones, Ones, 0x00, 0x00, 0x00, Ones, Ones, Ones, 0x00, 0x00 }, Package (0x24) { 0x00, 0x00, 0x00, Ones, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, 0x00, 0x00, Ones, 0x00, Ones, 0x00, 0x00, 0x00, Ones, 0x00, Ones }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones }, Package (0x24) { 0x00, 0x00, 0x00, Ones, 0x00, Ones, 0x00, 0x00, 0x00, Ones, 0x00, Ones, 0x00, 0x00, 0x00, Ones, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, 0x00, 0x00, Ones, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones } }) /* 255-element length package special case */ Name (P383, Package (0xFF) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF }) Name (P384, Package (0x12) { 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x0100, 0x00, 0x80, 0x80, 0x00, 0x80, 0x0100, 0x00, 0x0100, 0x0100, 0x00 }) Name (P385, Package (0x06) { Package (0x24) { 0x00, Ones, Ones, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, Ones, Ones, 0x00, 0x00, 0x00, Ones, Ones, Ones, 0x00, 0x00 }, Package (0x24) { 0x00, 0x7F, 0x00, 0x00, 0x7F, 0x80, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, 0x7F, 0x00, 0x00, 0x7F, 0x80, 0x00, 0x7F, 0x00, 0x00, 0x7F, 0x80 }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones }, Package (0x24) { 0x00, 0x7F, 0x00, 0x00, 0x7F, 0x80, 0x7F, 0x7F, 0x7F, Ones, 0x7F, Ones, 0x00, 0x7F, 0x00, 0x00, 0x7F, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x7F, 0x7F, 0x7F, Ones, 0x7F, 0x80, 0x80, Ones, Ones, Ones, 0x80, 0x80 }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x7F, Ones, 0x7F, 0x7F, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x7F, Ones, 0x7F, 0x7F, Ones, Ones, 0x80, Ones, 0x80, 0x80, Ones, Ones }, Package (0x24) { 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, 0x00, Ones, 0x00, 0x00, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones } }) /* Run-method */ Method (MAT0, 0, Serialized) { Debug = "TEST: MAT0, Find Object Match" /* to do transposition of match objects flag */ Name (TRNS, 0x00) If (C099) { TRNS = 0x01 } M308 (__METHOD__, 0x22, "p370", P371, P372, P370, TRNS) If (C099) { M308 (__METHOD__, 0x22, "p373", P371, P372, P373, TRNS) M308 (__METHOD__, 0x22, "p374", P371, P372, P374, TRNS) } M308 (__METHOD__, 0x22, "p375", P371, P372, P375, TRNS) If ((F64 == 0x01)) { M308 (__METHOD__, 0x22, "p377", P378, P372, P377, TRNS) If (C099) { M308 (__METHOD__, 0x22, "p389", P38A, P372, P389, TRNS) M308 (__METHOD__, 0x22, "p38b", P38C, P372, P38B, TRNS) M308 (__METHOD__, 0x22, "p38d", P38E, P372, P38D, TRNS) } } Else { M308 (__METHOD__, 0x22, "p389", P38A, P372, P389, TRNS) } /* One-element length package special case */ M308 (__METHOD__, 0x06, "p380", P381, P382, P380, TRNS) /* 255-element length package special case */ If (C099) { M308 (__METHOD__, 0x06, "p383", P384, P385, P383, TRNS) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/DECL.asl0000700000175000017500000000574614773714156030701 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/manipulation/mid.asl") Include ("../../../../runtime/collections/functional/manipulation/concatenate.asl") Include ("../../../../runtime/collections/functional/manipulation/tointeger.asl") Include ("../../../../runtime/collections/functional/manipulation/tostring.asl") Include ("../../../../runtime/collections/functional/manipulation/tobuffer.asl") Include ("../../../../runtime/collections/functional/manipulation/todecimalstring.asl") Include ("../../../../runtime/collections/functional/manipulation/tohexstring.asl") Include ("../../../../runtime/collections/functional/manipulation/tofrombcd.asl") Include ("../../../../runtime/collections/functional/manipulation/eisaid.asl") Include ("../../../../runtime/collections/functional/manipulation/touuid.asl") Include ("../../../../runtime/collections/functional/manipulation/unicode.asl") Include ("../../../../runtime/collections/functional/manipulation/objecttype.asl") Include ("../../../../runtime/collections/functional/manipulation/store.asl") Include ("../../../../runtime/collections/functional/manipulation/match1.asl") Include ("../../../../runtime/collections/functional/manipulation/match2.asl") Include ("../../../../runtime/collections/functional/manipulation/sizeof.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/RUN.asl0000700000175000017500000000636414773714156030633 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Data type conversion and manipulation", TCLF, 0x08, W008)) { SRMT ("CCT0") /* Concatenate two strings, integers or buffers */ CCT0 () SRMT ("DCM0") /* Data type conversion and manipulation */ DCM0 () SRMT ("TOI0") /* Convert data to integer */ TOI0 () SRMT ("TOS0") /* Convert buffer to string */ TOS0 () SRMT ("TOB0") /* Convert Data to Buffer */ TOB0 () SRMT ("TOD0") /* Convert Data to Decimal String */ TOD0 () SRMT ("TOH0") /* Convert Data to Hexadecimal String */ TOH0 () SRMT ("BCD0") /* Convert Integer to BCD, Convert BCD To Integer */ BCD0 () SRMT ("EIS0") /* EISA ID String To Integer Conversion Macro */ EIS0 () SRMT ("UNI0") /* String To Unicode Conversion Macro */ UNI0 () SRMT ("TOU0") /* Convert String to UUID Macro */ TOU0 () SRMT ("MAT0") /* Find Object Match */ MAT0 () SRMT ("MAT1") /* Find Object Match */ MAT1 () SRMT ("OBT0") /* ObjectType, Type of object */ OBT0 () SRMT ("MID0") /* Extract Portion of Buffer or String */ MID0 () SRMT ("SZO0") /* Get the size of Integer, Buffer, String or Package */ SZO0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/objecttype.asl0000700000175000017500000013475414773714156032344 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation */ /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! SEE: to be a few updated, see below !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ /* ObjectType, Type of object */ /* Check ObjectType operator for: */ /* - all the Types of objects, */ /* - all the ways Obtaining those objects, */ /* - all the ways Passing objects to ObjectType. */ /* */ /* Types - {0-16}, see specs. */ /* Obtaining - different creating operators,... */ /* Passing - immediately local, immediately global, */ /* by ArgX, by LocalX,... */ Name (Z040, 0x28) /* Global objects */ Name (N002, 0x90801020) Name (N003, 0x9189192989396949) Name (N005, "9876") Name (B003, Buffer (0x04) { 0x0C, 0x0D, 0x0E, 0x0F // .... }) /* Exercise all the ways creating the source objects of different types */ /* */ /* 0 - Uninitialized */ /* */ /* Integers */ /* */ /* One, Ones, Zero, Revision, Timer (compile error) */ /* immediate 32-bit Integer constant imagine (compile error) */ /* immediate 64-bit Integer constant imagine (compile error) */ /* */ /* 1 - 32-bit Integers */ /* */ /* 32-bit Integer passed by LocalX */ /* 32-bit Integer passed by ArgX */ /* 32-bit Integer passed by local Name */ /* 32-bit Integer passed by global Name */ /* */ /* 2 - 64-bit Integers */ /* */ /* 64-bit Integer passed by LocalX */ /* 64-bit Integer passed by ArgX */ /* 64-bit Integer passed by local Name */ /* 64-bit Integer passed by global Name */ /* */ /* String */ /* */ /* 3 - String */ /* */ /* Field Units */ /* */ /* 4 - Field Unit created by Field */ /* 5 - Field Unit created by BankField */ /* 6 - Field Unit created by IndexField */ /* */ /* Buffers */ /* */ /* - buffer passed immediately (compile error) */ /* 7 - buffer passed by LocalX */ /* 8 - buffer passed by ArgX */ /* 9 - buffer passed by local Name */ /* 10 - buffer passed by global Name */ /* */ /* Buffer Fields */ /* */ /* 11 - CreateBitField (bit field) */ /* 12 - CreateByteField (byte field) */ /* 13 - CreateDWordField (DWord field) */ /* 14 - CreateField 32-bit (arbitrary length bit field) */ /* 15 - CreateField 64-bit (arbitrary length bit field) */ /* 16 - CreateField 65-bit (arbitrary length bit field) */ /* 17 - CreateQWordField (QWord field) */ /* 18 - CreateWordField (Word field) */ /* */ /* 19 - Index, Index with String (reference to Buffer Fields) */ /* 20 - Index, Index with Buffer (reference to Buffer Fields) */ /* 21 - Index, Index with Package (reference to object in Package) */ /* */ /* 22 - Data Table Operation Region */ /* 23 - Debug Object */ /* 24 - Device */ /* 25 - Event */ /* 26 - Method */ /* 27 - Function */ /* 28 - Mutex */ /* 29 - Operation Region */ /* 30 - Package */ /* 31 - Power Resource */ /* 32 - Processor */ /* 33 - Thermal Zone */ /* 34 - DDB Handle */ /* */ /* */ /* Name - add all other objects by the name and so on ... !!!!!!!!!!!!!!!!! */ /* */ /* */ /* Local7 - returned result */ /* */ Method (M0F1, 7, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) OperationRegion (R001, SystemMemory, 0x0100, 0x0100) If (Arg1) { Local7 = 0x00 } Switch (ToInteger (Arg1)) { Case (0x00) { /* Uninitialized */ /* * Bug 9 fixed. * if (arg1) { * Store(0, Local0) * Store(0, Local1) * Store(0, Local2) * Store(0, Local3) * Store(0, Local4) * Store(0, Local5) * Store(0, Local6) * Store(0, Local7) * } */ Local7 = ObjectType (Local0) If ((Local7 != C008)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C008) } Local7 = ObjectType (Local1) If ((Local7 != C008)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C008) } Local7 = ObjectType (Local2) If ((Local7 != C008)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C008) } Local7 = ObjectType (Local3) If ((Local7 != C008)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C008) } Local7 = ObjectType (Local4) If ((Local7 != C008)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C008) } Local7 = ObjectType (Local5) If ((Local7 != C008)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C008) } Local7 = ObjectType (Local6) If ((Local7 != C008)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C008) } } Case (0x01) { /* 32-bit Integers */ /* By LocalX */ Local0 = 0x12345678 Local7 = ObjectType (Local0) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } If ((Local0 != 0x12345678)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local0, 0x12345678) } /* By ArgX */ Local7 = ObjectType (Arg2) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } If ((Arg2 != 0x81223344)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Arg2, 0x81223344) } /* By Name locally */ Name (N000, 0x98127364) Local7 = ObjectType (N000) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } If ((N000 != 0x98127364)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, N000, 0x98127364) } /* By Name globally */ Local7 = ObjectType (N002) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } If ((N002 != 0x90801020)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, N002, 0x90801020) } /* Not a Buffer in 32-bit mode */ Local0 = 0xA1B2C3D4E5C6E7F8 Local7 = ObjectType (Local0) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } } Case (0x02) { /* 64-bit Integers */ If ((F64 == 0x01)) { /* By LocalX */ Local0 = 0xA1B2C3D4E5C6E7F8 Local7 = ObjectType (Local0) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } If ((Local0 != 0xA1B2C3D4E5C6E7F8)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local0, 0xA1B2C3D4E5C6E7F8) } /* By ArgX */ Local7 = ObjectType (Arg2) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } If ((Arg2 != 0xFABEFAC489501248)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Arg2, 0xFABEFAC489501248) } /* By Name locally */ Name (N001, 0x9081122384356647) Local7 = ObjectType (N001) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } If ((N001 != 0x9081122384356647)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, N001, 0x9081122384356647) } /* By Name globally */ Local7 = ObjectType (N003) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } If ((N003 != 0x9189192989396949)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, N003, 0x9189192989396949) } } } Case (0x03) { /* String */ /* By LocalX */ Local0 = "" Local7 = ObjectType (Local0) If ((Local7 != C00A)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00A) } Local0 = "1" Local7 = ObjectType (Local0) If ((Local7 != C00A)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00A) } Local0 = "abcd" Local7 = ObjectType (Local0) If ((Local7 != C00A)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00A) } Local0 = "qwrt" Local7 = ObjectType (Local0) If ((Local7 != C00A)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00A) } /* By ArgX */ Local7 = ObjectType (Arg2) If ((Local7 != C00A)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00A) } If ((Arg2 != "zxcvbnm0912345678ok")) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Arg2, "zxcvbnm0912345678ok") } /* By Name locally */ Name (N004, "") Local7 = ObjectType (N004) If ((Local7 != C00A)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00A) } If ((N004 != "")) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, N004, "") } /* By Name globally */ Local7 = ObjectType (N005) If ((Local7 != C00A)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00A) } If ((N005 != "9876")) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, N005, "9876") } } Case (0x04) { /* Field Unit */ /* OperationRegion(r000, SystemMemory, 0x100, 0x100) */ Field (R000, ByteAcc, NoLock, Preserve) { F000, 8, F222, 32, F223, 57, F224, 64, F225, 71 } F000 = 0x8D Local7 = ObjectType (F000) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } If ((F000 != 0x8D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, F000, 0x8D) } Local7 = ObjectType (F222) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } Local7 = ObjectType (F223) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } Local7 = ObjectType (F224) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } Local7 = ObjectType (F225) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } } Case (0x05) { /* BankField */ /* OperationRegion(r001, SystemMemory, 0x100, 0x100) */ Field (R001, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (R001, BNK0, 0x00, ByteAcc, NoLock, Preserve) { Offset (0x10), BKF0, 8 } BKF0 = 0x95 Local7 = ObjectType (BKF0) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } If ((BKF0 != 0x95)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, BKF0, 0x95) } } Case (0x06) { /* IndexField */ OperationRegion (R002, SystemMemory, 0x0100, 0x0100) Field (R002, ByteAcc, NoLock, Preserve) { F00A, 16, F00B, 16 } IndexField (F00A, F00B, ByteAcc, NoLock, Preserve) { IF00, 8, IF01, 8 } F00A = 0xA0 F00B = 0xA1 IF00 = 0xA2 IF01 = 0xA3 Local7 = ObjectType (F00A) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } Local7 = ObjectType (F00B) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } Local7 = ObjectType (IF00) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } Local7 = ObjectType (IF01) If ((Local7 != C00D)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00D) } } Case (0x07) { /* Buffer */ Local0 = Buffer (0x04) { 0x00, 0x01, 0x02, 0x03 // .... } Local7 = ObjectType (Local0) If ((Local7 != C00B)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00B) } If ((Local0 != Buffer (0x04) { 0x00, 0x01, 0x02, 0x03 // .... })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x08) { /* Buffer */ Local7 = ObjectType (Arg2) If ((Local7 != C00B)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00B) } If ((Arg2 != Buffer (0x04) { 0x04, 0x05, 0x06, 0x07 // .... })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x09) { /* Buffer */ Name (B000, Buffer (0x04) { 0x08, 0x09, 0x0A, 0x0B // .... }) Local7 = ObjectType (B000) If ((Local7 != C00B)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00B) } If ((B000 != Buffer (0x04) { 0x08, 0x09, 0x0A, 0x0B // .... })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x0A) { /* Buffer */ Local7 = ObjectType (B003) If ((Local7 != C00B)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00B) } If ((B003 != Buffer (0x04) { 0x0C, 0x0D, 0x0E, 0x0F // .... })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x0B) { /* Buffer Field */ Local0 = Buffer (0x04) { 0x10, 0x11, 0x12, 0x13 // .... } CreateBitField (Local0, 0x03, F001) Local7 = ObjectType (F001) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x04) { 0x10, 0x11, 0x12, 0x13 // .... })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x0C) { /* Buffer Field */ Local0 = Buffer (0x04) { 0x14, 0x15, 0x16, 0x17 // .... } CreateByteField (Local0, 0x03, F002) Local7 = ObjectType (F002) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x04) { 0x14, 0x15, 0x16, 0x17 // .... })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x0D) { /* Buffer Field */ Local0 = Buffer (0x04) { 0x18, 0x19, 0x1A, 0x1B // .... } CreateDWordField (Local0, 0x00, F003) Local7 = ObjectType (F003) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x04) { 0x18, 0x19, 0x1A, 0x1B // .... })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x0E) { /* Buffer Field */ Local0 = Buffer (0x04) { 0x1C, 0x1D, 0x1E, 0x1F // .... } CreateField (Local0, 0x00, 0x20, F004) Local7 = ObjectType (F004) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x04) { 0x1C, 0x1D, 0x1E, 0x1F // .... })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x0F) { /* Buffer Field */ Local0 = Buffer (0x09) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29 // ) } CreateField (Local0, 0x00, 0x40, F005) Local7 = ObjectType (F005) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x09) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29 // ) })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x10) { /* Buffer Field */ Local0 = Buffer (0x09) { /* 0000 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0008 */ 0x32 // 2 } CreateField (Local0, 0x00, 0x41, F006) Local7 = ObjectType (F006) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x09) { /* 0000 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0008 */ 0x32 // 2 })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } CreateField (Local0, 0x00, 0x11, F111) Local7 = ObjectType (F111) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } CreateField (Local0, 0x00, 0x39, F112) Local7 = ObjectType (F112) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } } Case (0x11) { /* Buffer Field */ Local0 = Buffer (0x09) { /* 0000 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0008 */ 0x32 // 2 } CreateQWordField (Local0, 0x00, F007) Local7 = ObjectType (F007) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x09) { /* 0000 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0008 */ 0x32 // 2 })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x12) { /* Buffer Field */ Local0 = Buffer (0x04) { 0x33, 0x34, 0x35, 0x36 // 3456 } CreateWordField (Local0, 0x00, F008) Local7 = ObjectType (F008) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x04) { 0x33, 0x34, 0x35, 0x36 // 3456 })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x13) { /* Buffer Field */ Local0 = "q" Store (Local0 [0x00], Local1) Local7 = ObjectType (Local1) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != "q")) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = "qw" Store (Local0 [0x00], Local1) Local7 = ObjectType (Local1) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != "qw")) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = "qwertyu" Store (Local0 [0x00], Local1) Local7 = ObjectType (Local1) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != "qwertyu")) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = "qwertyuiop" Store (Local0 [0x00], Local1) Local7 = ObjectType (Local1) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != "qwertyuiop")) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x14) { /* Buffer Field */ Local0 = Buffer (0x04) { 0x2A, 0x2B, 0x2C, 0x2D // *+,- } Store (Local0 [0x00], Local1) Local7 = ObjectType (Local1) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x04) { 0x2A, 0x2B, 0x2C, 0x2D // *+,- })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = Buffer (0x08) { 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31 // *+,-./01 } Store (Local0 [0x00], Local1) Local7 = ObjectType (Local1) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x08) { 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31 // *+,-./01 })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = Buffer (0x09) { /* 0000 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0008 */ 0x32 // 2 } Store (Local0 [0x00], Local1) Local7 = ObjectType (Local1) If ((Local7 != C016)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C016) } If ((Local0 != Buffer (0x09) { /* 0000 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0008 */ 0x32 // 2 })) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Case (0x15) { /* Index with ... */ Local0 = Package (0x04) { Package (0x04) { 0x98765432, Buffer (0x01) { 0x12 // . }, Package (0x01) { 0x12345678 }, "qwertyui" }, Buffer (0x01) { 0x12 // . }, "q", 0x98765432 } /* Package */ Store (Local0 [0x00], Local1) Local7 = ObjectType (Local1) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } /* Buffer */ Store (Local0 [0x01], Local1) Local7 = ObjectType (Local1) If ((Local7 != C00B)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00B) } /* String */ Store (Local0 [0x02], Local1) Local7 = ObjectType (Local1) If ((Local7 != C00A)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00A) } /* Integer */ Store (Local0 [0x03], Local1) Local7 = ObjectType (Local1) If ((Local7 != C009)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C009) } } Case (0x16) { /* Operation Region */ DataTableRegion (HDR0, "DSDT", "", "") Local7 = ObjectType (HDR0) If ((Local7 != C012)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C012) } } Case (0x17) { /* Debug Object */ Local7 = ObjectType (Debug) If ((Local7 != C018)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C018) } } Case (0x18) { /* Device */ Device (DV00) { } Local7 = ObjectType (DV00) If ((Local7 != C00E)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00E) } } Case (0x19) { /* Event */ Event (EVT0) Local7 = ObjectType (EVT0) If ((Local7 != C00F)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00F) } } Case (0x1A) { /* Method */ Method (M0F2, 0, NotSerialized) { Return (0x1234) } Local7 = ObjectType (M0F2) If ((Local7 != C010)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C010) } } Case (0x1B) { /* * // Function * * Function(mof3) { return (0) } * Store(ObjectType(m0f3), Local7) * if (LNotEqual(Local7, c010)) { * err(arg0, z040, __LINE__, 0, 0, Local7, c010) * } */ } Case (0x1C) { /* Mutex */ Mutex (MT00, 0x00) Local7 = ObjectType (MT00) If ((Local7 != C011)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C011) } } Case (0x1D) { /* Operation Region */ Local7 = ObjectType (R000) If ((Local7 != C012)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C012) } Local7 = ObjectType (R001) If ((Local7 != C012)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C012) } } Case (0x1E) { /* Package */ Name (P000, Package (0x01) { 0x12345678 }) Name (P001, Package (0x02) { 0x12345678, 0x9ABCDEF0 }) Name (P002, Package (0x03) { 0x12345678, 0x9ABCDEF0, 0x9ABCDEF0 }) Name (P003, Package (0x01) { 0x123456789ABCDEF0 }) Name (P004, Package (0x02) { 0x123456789ABCDEF0, 0x123456789ABCDEF0 }) Name (P005, Package (0x03) { 0x123456789ABCDEF0, 0x123456789ABCDEF0, 0x123456789ABCDEF0 }) Name (P006, Package (0x01) { Buffer (0x01){} }) Name (P007, Package (0x01) { Buffer (0x20){} }) Name (P008, Package (0x01) { Buffer (0x40){} }) Name (P009, Package (0x01) { Buffer (0x7D){} }) Name (P00A, Package (0x02) { 0x12, Buffer (0x01) { 0x12 // . } }) Name (P00B, Package (0x02) { 0x12, Package (0x01) { 0x12 } }) Name (P00C, Package (0x01) { Buffer (0x01) { 0x12 // . } }) Name (P00D, Package (0x02) { Buffer (0x01) { 0x12 // . }, 0x12345678 }) Name (P00E, Package (0x02) { Buffer (0x01) { 0x12 // . }, Buffer (0x01) { 0x12 // . } }) Name (P00F, Package (0x02) { Buffer (0x01) { 0x12 // . }, Package (0x01) { 0x12 } }) Name (P010, Package (0x01) { Package (0x01) { 0x12345678 } }) Name (P011, Package (0x02) { Package (0x01) { 0x12345678 }, 0x12345678 }) Name (P012, Package (0x02) { Package (0x01) { 0x12345678 }, Buffer (0x01) { 0x12 // . } }) Name (P013, Package (0x02) { Package (0x01) { 0x12345678 }, Package (0x01) { 0x12 } }) Local7 = ObjectType (P000) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P001) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P002) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P003) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P004) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P005) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P006) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P007) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P008) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P009) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P00A) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P00B) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P00C) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P00D) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P00E) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P00F) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P010) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P011) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P012) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } Local7 = ObjectType (P013) If ((Local7 != C00C)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C00C) } } Case (0x1F) { /* Power Resource */ PowerResource (PWR0, 0x01, 0x0000) { Method (M000, 0, NotSerialized) { Return (0x00) } } Local7 = ObjectType (PWR0) If ((Local7 != C013)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C013) } } Case (0x20) { /* Processor */ Processor (PR00, 0x00, 0xFFFFFFFF, 0x00){} Local7 = ObjectType (PR00) If ((Local7 != C014)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C014) } } Case (0x21) { ThermalZone (TZ00) { } Local7 = ObjectType (TZ00) If ((Local7 != C015)) { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, Local7, C015) } } Case (0x22) { /* // Reserved for DDB Handle Store("==================================== zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz", Debug) // Store (LoadTable ("OEM1", "MYOEM", "TABLE1", "\\_SB.PCI0", "MYD", // Package () {0, "\\_SB.PCI0"}), Local0) Store (LoadTable("OEM1", "MYOEM", "TABLE1"), Local0) Store(ObjectType(Local0), Local7) if (LNotEqual(Local7, c017)) { err(arg0, z040, __LINE__, 0, 0, Local7, c017) } Store("==================================== uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu", Debug) */ } Default { ERR (Arg0, Z040, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Return (Local7) } Method (M0F0, 0, Serialized) { Debug = "TEST: m0f0, ObjectType" Local5 = 0x00 Local4 = 0x23 While (Local4) { Local2 = 0x00 Switch (ToInteger (Local5)) { Case (0x01) { Local2 = 0x81223344 } Case (0x02) { Local2 = 0xFABEFAC489501248 } Case (0x03) { Local2 = "zxcvbnm0912345678ok" } Case (0x08) { Local2 = Buffer (0x04) { 0x04, 0x05, 0x06, 0x07 // .... } } } M0F1 (__METHOD__, Local5, Local2, 0x00, 0x00, 0x00, 0x00) Local5++ Local4-- } } /* Run-method */ Method (OBT0, 0, NotSerialized) { Debug = "TEST: OBT0, Type of object" M0F0 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/concatenate.asl0000700000175000017500000004755214773714156032457 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * Concatenate two strings, integers or buffers */ /* // !!!!!!!!!!!!!!!!!!!!!!!!!! ??????????????????? // SEE: (Compare two buffers) // Remove (?) this method and replace it with the // LNotEqual, LEqual............ ????? !!!!!!!!!! // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ Name (Z036, 0x24) /* Compare two buffers */ /* */ /* Arg0 - name */ /* Arg1 - buffer1 */ /* Arg2 - buffer2 */ /* Arg3 - length */ Method (M310, 4, NotSerialized) { Local0 = 0x00 While ((Local0 < Arg3)) { Local1 = DerefOf (Arg1 [Local0]) Local2 = DerefOf (Arg2 [Local0]) If ((Local1 != Local2)) { Return (Ones) } Local0++ } Return (Zero) } /* Compare two buffers */ /* */ /* Arg0 - name */ /* Arg1 - buffer1 */ /* Arg2 - buffer2 */ Method (M311, 3, NotSerialized) { If ((ObjectType (Arg1) != 0x03)) { ERR ("m311: unexpected type of Arg1", Z036, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (Ones) } If ((ObjectType (Arg2) != 0x03)) { ERR ("m311: unexpected type of Arg2", Z036, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (Ones) } Local0 = SizeOf (Arg1) If ((Local0 != SizeOf (Arg2))) { Return (Ones) } If (M310 (Arg0, Arg1, Arg2, Local0)) { Return (Ones) } Return (Zero) } /* Verifying 2-parameters, 1-result operator */ Method (M312, 6, Serialized) { Local5 = 0x00 Local3 = Arg1 While (Local3) { /* Operands */ Local6 = (Local5 * 0x02) Local0 = DerefOf (Arg3 [Local6]) Local6++ Local1 = DerefOf (Arg3 [Local6]) /* Expected result */ Local2 = DerefOf (Arg4 [Local5]) Switch (ToInteger (Arg5)) { Case (0x00) { /* Results in buffer */ Concatenate (Local0, Local1, Local7) If (M311 (Arg0, Local7, Local2)) { ERR (Arg0, Z036, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x01) { /* Results in string */ Concatenate (Local0, Local1, Local7) If ((ObjectType (Local7) != 0x02)) { ERR (Arg0, Z036, __LINE__, 0x00, 0x00, Local7, Arg2) } ElseIf ((ObjectType (Local2) != 0x02)) { ERR (Arg0, Z036, __LINE__, 0x00, 0x00, Local2, Arg2) } ElseIf ((Local7 != Local2)) { ERR (Arg0, Z036, __LINE__, 0x00, 0x00, Local7, Arg2) } } } Local5++ Local3-- } } /* Integers */ Method (M313, 0, Serialized) { Name (P000, Package (0x18) { 0x00, 0x00, 0xFFFFFFFF, 0xFFFFFFFF, 0x00, 0xFFFFFFFF, 0x00, 0x81, 0x00, 0x9AC6, 0x00, 0xAB012345, 0x92, 0x81, 0x93, 0x8476, 0xAB, 0xDC816778, 0xAC93, 0x8476, 0xF63B, 0x8C8FC2DA, 0x8790F6A4, 0x98DE45BA }) Name (P001, Package (0x0C) { Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ }, Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF // ........ }, Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0xC6, 0x9A, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0x45, 0x23, 0x01, 0xAB // ....E#.. }, Buffer (0x08) { 0x92, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x93, 0x00, 0x00, 0x00, 0x76, 0x84, 0x00, 0x00 // ....v... }, Buffer (0x08) { 0xAB, 0x00, 0x00, 0x00, 0x78, 0x67, 0x81, 0xDC // ....xg.. }, Buffer (0x08) { 0x93, 0xAC, 0x00, 0x00, 0x76, 0x84, 0x00, 0x00 // ....v... }, Buffer (0x08) { 0x3B, 0xF6, 0x00, 0x00, 0xDA, 0xC2, 0x8F, 0x8C // ;....... }, Buffer (0x08) { 0xA4, 0xF6, 0x90, 0x87, 0xBA, 0x45, 0xDE, 0x98 // .....E.. } }) Name (P002, Package (0x0C) { Buffer (0x10) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0xC6, 0x9A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x45, 0x23, 0x01, 0xAB, 0x00, 0x00, 0x00, 0x00 // E#...... }, Buffer (0x10) { /* 0000 */ 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x93, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x10) { /* 0000 */ 0xAB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x67, 0x81, 0xDC, 0x00, 0x00, 0x00, 0x00 // xg...... }, Buffer (0x10) { /* 0000 */ 0x93, 0xAC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x10) { /* 0000 */ 0x3B, 0xF6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ;....... /* 0008 */ 0xDA, 0xC2, 0x8F, 0x8C, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0xA4, 0xF6, 0x90, 0x87, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0xBA, 0x45, 0xDE, 0x98, 0x00, 0x00, 0x00, 0x00 // .E...... } }) Name (P003, Package (0x04) { 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0x1234567890ABCDEF, 0x1122334455667788 }) Name (P004, Package (0x02) { Buffer (0x10) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0008 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ }, ToUUID ("90abcdef-5678-1234-8877-665544332211") }) If ((F64 == 0x01)) { M312 (__METHOD__, 0x0C, "p000", P000, P002, 0x00) M312 (__METHOD__, 0x02, "p003", P003, P004, 0x00) } Else { M312 (__METHOD__, 0x0C, "p000", P000, P001, 0x00) } } /* Strings */ Method (M314, 0, Serialized) { Name (P000, Package (0x2C) { "qwertyuiop", "qwertyuiop", "qwertyuiop", "qwertyuiop0", "qwertyuiop", "qwertyuio", "", "", " ", "", "", " ", " ", " ", " ", " ", " ", " ", "a", "", "", "a", " a", "a", "a", " a", "a ", "a", "a", "a ", "a b", "ab", "ab", "a b", "a b", "a b", "a b", "a b", "abcDef", "abcdef", /* 100 + 100 */ "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789", "0", "" }) Name (P001, Package (0x15) { "qwertyuiopqwertyuiop", "qwertyuiopqwertyuiop0", "qwertyuiopqwertyuio", "", " ", " ", " ", " ", " ", "a", "a", " aa", "a a", "a a", "aa ", "a bab", "aba b", "a ba b", "a ba b", "abcDefabcdef", "01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" }) M312 (__METHOD__, 0x15, "p000", P000, P001, 0x01) } /* Buffers */ Method (M315, 0, Serialized) { Name (P000, Package (0x02) { Buffer (0x64){}, Buffer (0x65){} }) Name (P001, Package (0x01) { Buffer (0xC9){} }) Name (P002, Package (0x03) { Buffer (0x05) { 0x01, 0x01, 0x02, 0x03, 0x04 // ..... }, Buffer (0x88) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0010 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0018 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0020 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0028 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0030 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0038 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0040 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0048 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0050 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0058 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0060 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0068 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0070 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0078 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0080 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80 // yz{|}~.. }, Buffer (0x01C9) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 00D0 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 00D8 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 00E0 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 00E8 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 00F0 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 00F8 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0100 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0108 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0110 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0118 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0120 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0128 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0130 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0138 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0140 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0148 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0150 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0158 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0160 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 0168 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 0170 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 0178 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 0180 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 0188 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 0190 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 0198 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 01A0 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 01A8 */ 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, // ........ /* 01B0 */ 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, // ........ /* 01B8 */ 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, // ........ /* 01C0 */ 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, // ........ /* 01C8 */ 0x01 // . } }) M312 (__METHOD__, 0x01, "p000", P000, P001, 0x00) M312 (__METHOD__, 0x03, "p325", P325, P002, 0x00) } /* Run-method */ Method (CCT0, 0, NotSerialized) { Debug = "TEST: CCT0, Concatenate two strings, integers or buffers" M313 () M314 () M315 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/tointeger.asl0000700000175000017500000002760114773714156032164 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation */ /* Convert data to integer */ Name (Z047, 0x2F) /* Integer */ /* 32-bit */ Name (P300, Package (0x06) { 0x00, 0x81, 0x8232, 0x76543201, 0xF89ABCDE, 0xFFFFFFFF }) /* 64-bit */ Name (P302, Package (0x05) { 0x0000008123456789, 0x00008CDAE2376890, 0x76543201F89ABCDE, 0xF89ABCDE76543201, 0xFFFFFFFFFFFFFFFF }) /* Hexadecimal numeric String */ /* 32-bit */ Name (P304, Package (0x20) { "0x0", /* 0 */ "0x00", "0x1", "0x83", "0x456", "0x8232", "0xbcdef", "0x123456", "0x789abcd", "0xffffffff", "0x01234567", /* 10 */ "0X12345678", "0x23456789", "0x3456789a", "0x456789ab", "0x56789abc", "0x6789abcd", "0x789abcde", "0x89abcdef", "0x9abcdefA", "0xabcdefAB", /* 20 */ "0xbcdefABC", "0xcdefABCD", "0xdefABCDE", "0xefABCDEF", "0xfABCDEF0", "0xABCDEF01", "0xBCDEF012", "0xCDEF0123", "0xDEF01234", "0xEF012345", /* 30 */ "0xF0123456" }) Name (P305, Package (0x20) { 0x00, 0x00, 0x01, 0x83, 0x0456, 0x8232, 0x000BCDEF, 0x00123456, 0x0789ABCD, 0xFFFFFFFF, 0x01234567, 0x12345678, 0x23456789, 0x3456789A, 0x456789AB, 0x56789ABC, 0x6789ABCD, 0x789ABCDE, 0x89ABCDEF, 0x9ABCDEFA, 0xABCDEFAB, 0xBCDEFABC, 0xCDEFABCD, 0xDEFABCDE, 0xEFABCDEF, 0xFABCDEF0, 0xABCDEF01, 0xBCDEF012, 0xCDEF0123, 0xDEF01234, 0xEF012345, 0xF0123456 }) /* 64-bit */ Name (P306, Package (0x20) { "0x123456789", /* 0 */ "0x8123456789", "0xabcdef01234", "0x876543210abc", "0x1234567abcdef", "0x8234567abcdef1", "0x6789abcdef01234", "0x76543201f89abcde", "0xf89abcde76543201", "0xffffffffffffffff", "0X0123456789abcdef", /* 10 */ "0x123456789abcdefA", "0x23456789abcdefAB", "0x3456789abcdefABC", "0x456789abcdefABCD", "0x56789abcdefABCDE", "0x6789abcdefABCDEF", "0x789abcdefABCDEF0", "0x89abcdefABCDEF01", "0x9abcdefABCDEF012", "0xabcdefABCDEF0123", /* 20 */ "0xbcdefABCDEF01234", "0xcdefABCDEF012345", "0xdefABCDEF0123456", "0xefABCDEF01234567", "0xfABCDEF012345678", "0xABCDEF0123456789", "0xBCDEF0123456789a", "0xCDEF0123456789ab", "0xDEF0123456789abc", "0xEF0123456789abcd", /* 30 */ "0xF0123456789abcde" }) Name (P307, Package (0x20) { 0x0000000123456789, 0x0000008123456789, 0x00000ABCDEF01234, 0x0000876543210ABC, 0x0001234567ABCDEF, 0x008234567ABCDEF1, 0x06789ABCDEF01234, 0x76543201F89ABCDE, 0xF89ABCDE76543201, 0xFFFFFFFFFFFFFFFF, 0x0123456789ABCDEF, 0x123456789ABCDEFA, 0x23456789ABCDEFAB, 0x3456789ABCDEFABC, 0x456789ABCDEFABCD, 0x56789ABCDEFABCDE, 0x6789ABCDEFABCDEF, 0x789ABCDEFABCDEF0, 0x89ABCDEFABCDEF01, 0x9ABCDEFABCDEF012, 0xABCDEFABCDEF0123, 0xBCDEFABCDEF01234, 0xCDEFABCDEF012345, 0xDEFABCDEF0123456, 0xEFABCDEF01234567, 0xFABCDEF012345678, 0xABCDEF0123456789, 0xBCDEF0123456789A, 0xCDEF0123456789AB, 0xDEF0123456789ABC, 0xEF0123456789ABCD, 0xF0123456789ABCDE }) /* Decimal numeric String */ /* 32-bit */ Name (P308, Package (0x15) { "0", "12", "345", "6789", "12345", "678901", "2345678", "90123456", "789012345", "4294967295", /* == "0xffffffff" */ "4294967295", /* == "0xffffffff" */ "0123456789", "1234567890", "2345678901", "3456789012", "1567890123", "2678901234", "3789012345", "1890123456", "2901234567", "3012345678" }) Name (P309, Package (0x15) { 0x00, 0x0C, 0x0159, 0x1A85, 0x3039, 0x000A5BF5, 0x0023CACE, 0x055F2CC0, 0x2F075F79, 0xFFFFFFFF, 0xFFFFFFFF, 0x075BCD15, 0x499602D2, 0x8BD03835, 0xCE0A6A14, 0x5D741ACB, 0x9FACC9F2, 0xE1D7BD79, 0x70A8FEC0, 0xACED5387, 0xB38CBF4E }) /* 64-bit */ Name (P310, Package (0x15) { "30123456790", "123456789012", "3456789012345", "26789012346789", "123456789012345", "3789012345678901", "23456789012345678", "301234567890123456", "1890123456789012345", "18446744073709551615", /* == "0xffffffffffffffff" */ "18446744073709551615", /* == "0xffffffffffffffff" */ "01234567890123456789", "12345678901234567890", "13456789012345678901", "14567890123456789012", "15678901231567890123", "16789012342678901234", "17890123453789012345", "18301234561890123456", "18012345672901234567", "10123456783012345678" }) Name (P311, Package (0x15) { 0x00000007037F7916, 0x0000001CBE991A14, 0x00000324D8AE5F79, 0x0000185D4D9097A5, 0x00007048860DDF79, 0x000D76162EE9EC35, 0x005355D348A6F34E, 0x042E333E5528BAC0, 0x1A3B1145078ADF79, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0x112210F47DE98115, 0xAB54A98CEB1F0AD2, 0xBAC01E4F423E6C35, 0xCA2B8AE21F903A14, 0xD996A5998809E6CB, 0xE8FE8DC60F0651F2, 0xF8467C7ECAFA8179, 0xFDFB0BDEB48FFEC0, 0xF9F8B4F4BCD28F87, 0x8C7DBE4ECA78374E }) /* Buffer */ /* 32-bit */ Name (P312, Package (0x05) { /* buffer, 32-bit integer */ Buffer (0x01) { 0x81 // . }, Buffer (0x02) { 0x82, 0x83 // .. }, Buffer (0x03) { 0x84, 0x85, 0x86 // ... }, Buffer (0x04) { 0x87, 0x88, 0x89, 0x8A // .... }, /* for 32-bit mode only */ Buffer (0x05) { 0x8B, 0x8C, 0x8D, 0x8E, 0x8F // ..... } }) Name (P313, Package (0x05) { 0x81, 0x8382, 0x00868584, 0x8A898887, 0x8E8D8C8B }) /* 64-bit */ Name (P314, Package (0x05) { Buffer (0x05) { 0x85, 0x84, 0x83, 0x82, 0x81 // ..... }, Buffer (0x06) { 0x8B, 0x8A, 0x89, 0x88, 0x87, 0x86 // ...... }, Buffer (0x07) { 0x82, 0x81, 0x80, 0x8F, 0x8E, 0x8D, 0x8C // ....... }, Buffer (0x08) { 0x8A, 0x89, 0x88, 0x87, 0x86, 0x85, 0x84, 0x83 // ........ }, Buffer (0x09) { /* 0000 */ 0x83, 0x82, 0x81, 0x80, 0x8F, 0x8E, 0x8D, 0x8C, // ........ /* 0008 */ 0x8B // . } }) Name (P315, Package (0x05) { /* buffer, 32-bit integer */ 0x0000008182838485, 0x0000868788898A8B, 0x008C8D8E8F808182, 0x838485868788898A, 0x8C8D8E8F80818283 }) /* Run-method */ Method (TOI0, 0, Serialized) { Debug = "TEST: TOI0, Convert data to integer" /* From integer */ If ((F64 == 0x01)) { M302 (__METHOD__, 0x06, "p300", P300, P300, 0x00) M302 (__METHOD__, 0x05, "p302", P302, P302, 0x00) } Else { M302 (__METHOD__, 0x06, "p300", P300, P300, 0x00) } /* From hexadecimal numeric string */ If ((F64 == 0x01)) { M302 (__METHOD__, 0x20, "p304", P304, P305, 0x00) M302 (__METHOD__, 0x20, "p306", P306, P307, 0x00) } Else { M302 (__METHOD__, 0x20, "p304", P304, P305, 0x00) } /* From decimal numeric string */ If ((F64 == 0x01)) { M302 (__METHOD__, 0x15, "p308", P308, P309, 0x00) M302 (__METHOD__, 0x15, "p310", P310, P311, 0x00) } Else { M302 (__METHOD__, 0x15, "p308", P308, P309, 0x00) } /* From buffer */ If ((F64 == 0x01)) { M302 (__METHOD__, 0x04, "p312", P312, P313, 0x00) M302 (__METHOD__, 0x05, "p314", P314, P315, 0x00) } Else { M302 (__METHOD__, 0x05, "p312", P312, P313, 0x00) } /* Suppression of zeroes */ If (Y602) { CH03 (__METHOD__, Z047, __LINE__, 0x00, 0x00) Local0 = "0x0123456789abcdefa" ToInteger (Local0, Local2) CH04 (__METHOD__, 0x00, 0x22, Z047, __LINE__, 0x00, 0x00) CH03 (__METHOD__, Z047, __LINE__, 0x00, 0x00) Local0 = "0x000123456789abcdefa" ToInteger (Local0, Local2) CH04 (__METHOD__, 0x00, 0x22, Z047, __LINE__, 0x00, 0x00) } Else { Local0 = "0x0123456789abcdefa" Local1 = 0x123456789ABCDEFA ToInteger (Local0, Local2) If ((Local2 != Local1)) { ERR (__METHOD__, Z047, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = "0x000123456789abcdefa" ToInteger (Local0, Local2) If ((Local2 != Local1)) { ERR (__METHOD__, Z047, __LINE__, 0x00, 0x00, Local0, 0x00) } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/tobuffer.asl0000700000175000017500000003423314773714156031777 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * Convert Data to Buffer */ Name (Z043, 0x2B) /* Integer */ /* 32-bit */ Name (P320, Package (0x06) { 0x00, 0x81, 0x8232, 0x76543201, 0xF89ABCDE, 0xFFFFFFFF }) Name (P321, Package (0x06) { Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x04) { 0x81, 0x00, 0x00, 0x00 // .... }, Buffer (0x04) { 0x32, 0x82, 0x00, 0x00 // 2... }, Buffer (0x04) { 0x01, 0x32, 0x54, 0x76 // .2Tv }, Buffer (0x04) { 0xDE, 0xBC, 0x9A, 0xF8 // .... }, Buffer (0x04) { 0xFF, 0xFF, 0xFF, 0xFF // .... } }) /* 64-bit */ Name (P322, Package (0x09) { 0x00, 0x81, 0x8232, 0x76543201, 0x0000008123456789, 0x00008CDAE2376890, 0x0076543201FABCDE, 0xABCDEF9876543201, 0xFFFFFFFFFFFFFFFF }) Name (P323, Package (0x09) { Buffer (0x08) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x32, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // 2....... }, Buffer (0x08) { 0x01, 0x32, 0x54, 0x76, 0x00, 0x00, 0x00, 0x00 // .2Tv.... }, Buffer (0x08) { 0x89, 0x67, 0x45, 0x23, 0x81, 0x00, 0x00, 0x00 // .gE#.... }, Buffer (0x08) { 0x90, 0x68, 0x37, 0xE2, 0xDA, 0x8C, 0x00, 0x00 // .h7..... }, Buffer (0x08) { 0xDE, 0xBC, 0xFA, 0x01, 0x32, 0x54, 0x76, 0x00 // ....2Tv. }, Buffer (0x08) { 0x01, 0x32, 0x54, 0x76, 0x98, 0xEF, 0xCD, 0xAB // .2Tv.... }, Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ } }) /* Buffer */ Name (P325, Package (0x06) { Buffer (0x01) { 0x01 // . }, Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... }, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, Buffer (0x80) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80 // yz{|}~.. }, Buffer (0xC8) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8 // ........ }, Buffer (0x0101) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 00D0 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 00D8 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 00E0 */ 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, // ........ /* 00E8 */ 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, // ........ /* 00F0 */ 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, // ........ /* 00F8 */ 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, // ........ /* 0100 */ 0x01 // . } }) /* Verify type, length of the obtained buffer */ /* call to m305 to check the contents */ Method (M320, 6, NotSerialized) { If ((ObjectType (Arg1) != 0x03)) { ERR (Arg0, Z043, __LINE__, 0x00, 0x00, Arg2, "Type") } ElseIf ((SizeOf (Arg1) != (Arg2 + Arg3))) { ERR (Arg0, Z043, __LINE__, 0x00, 0x00, Arg2, "Sizeof") } Else { M305 (Arg0, Arg1, Arg2, Arg4, Arg5) } } /* Checking strings with different lengths */ Method (M321, 1, Serialized) { Name (LENS, Buffer (0x0A) { /* 0000 */ 0xC8, 0xC7, 0x81, 0x80, 0x7F, 0x09, 0x08, 0x07, // ........ /* 0008 */ 0x01, 0x00 // .. }) Local1 = 0x00 While ((Local1 < 0x0A)) { /* Prepare benchmark buffer */ Local0 = DerefOf (LENS [Local1]) Local4 = Buffer (Local0){} M303 (Local4, Local0) /* Convert benchmark buffer to string */ Local2 = ToString (Local4, Ones) /* Create the same benchmark buffer anew */ /* with null character appended */ Local5 = Buffer ((Local0 + 0x01)){} M303 (Local5, Local0) Local5 [Local0] = 0x00 /* Convert string to buffer */ ToBuffer (Local2, Local3) /* Verify obtained buffer with the benchmark one */ If ((Local3 != Local5)) { ERR (Arg0, Z043, __LINE__, 0x00, 0x00, Local0, "NotEqual") } /* Check the source string was not corrupted */ M307 (Arg0, Local2, Local0, 0x02, "Source") /* Check both buffers state too */ M320 (Arg0, Local3, Local0, 0x01, 0x03, "Dest") M320 (Arg0, Local4, Local0, 0x00, 0x04, "Test") Local1++ } } /* Checking buffers with different lengths */ /* (zero length in the first order). */ Method (M322, 1, Serialized) { Name (LENS, Package (0x02) { 0x00, 0x0201 }) Local1 = 0x00 While ((Local1 < 0x02)) { /* Prepare benchmark buffer */ Local0 = DerefOf (LENS [Local1]) Local4 = Buffer (Local0){} M303 (Local4, Local0) /* * // ToBuffer caused destroying of source buffer (passed * // by Data parameter), so they are duplicated below. * * Store(Local4, Local5) */ ToBuffer (Local4, Local3) If ((Local3 != Local4)) { ERR (Arg0, Z043, __LINE__, 0x00, 0x00, Local0, "NotEqual") } /* Check the buffers were not corrupted */ /* (because know Data parameter was) */ M320 (Arg0, Local3, Local0, 0x00, 0x06, "Dest") M320 (Arg0, Local4, Local0, 0x00, 0x07, "Source") Local1++ } } /* Run-method */ Method (TOB0, 0, Serialized) { Debug = "TEST: TOB0, Convert Data to Buffer" /* From integer */ If ((F64 == 0x01)) { M302 (__METHOD__, 0x09, "p322", P322, P323, 0x01) } Else { M302 (__METHOD__, 0x06, "p320", P320, P321, 0x01) } /* From string */ M321 (__METHOD__) /* From buffer */ M322 (__METHOD__) M302 (__METHOD__, 0x06, "p325", P325, P325, 0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/todecimalstring.asl0000700000175000017500000002630014773714156033347 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * Convert Data to Decimal String */ /* Integer */ /* 32-bit */ Name (P338, Package (0x0F) { 0x00, 0x01, 0x0C, 0x0159, 0x1A85, 0x3039, 0x000A5BF5, 0x0023CACE, 0x055F2CC0, 0x2F075F79, 0xFFFFFFFF, 0x075BCD15, 0xFF, 0xFFFF, 0xFFFFFFFF }) Name (P339, Package (0x0F) { "0", "1", "12", "345", "6789", "12345", "678901", "2345678", "90123456", "789012345", "4294967295", /* == "0xffffffff" */ "123456789", "255", "65535", "4294967295" /* == "0xffffffff" */ }) /* 64-bit */ Name (P340, Package (0x0B) { 0x00000007037F7916, 0x0000001CBE991A14, 0x00000324D8AE5F79, 0x0000185D4D9097A5, 0x00007048860DDF79, 0x000D76162EE9EC35, 0x005355D348A6F34E, 0x042E333E5528BAC0, 0x1A3B1145078ADF79, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF }) Name (P341, Package (0x0B) { "30123456790", "123456789012", "3456789012345", "26789012346789", "123456789012345", "3789012345678901", "23456789012345678", "301234567890123456", "1890123456789012345", "18446744073709551615", "18446744073709551615" /* == "0xffffffffffffffff" */ }) /* String */ Name (P344, Package (0x06) { "", "0123456789", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }) /* Buffer */ Name (P342, Package (0x0C) { Buffer (0x09){}, Buffer (0x04) { 0x09, 0x07, 0x05, 0x03 // .... }, Buffer (0x01) { 0x01 // . }, Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... }, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, /* Results into 197 characters */ Buffer (0x45) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45 // ABCDE }, Buffer (0x39) { /* 0000 */ 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, // FGHIJKLM /* 0008 */ 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, // NOPQRSTU /* 0010 */ 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, // VWXYZ[\] /* 0018 */ 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, // ^_`abcde /* 0020 */ 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, // fghijklm /* 0028 */ 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, // nopqrstu /* 0030 */ 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, // vwxyz{|} /* 0038 */ 0x7E // ~ }, /* Results into 199 characters */ Buffer (0x32) { /* 0000 */ 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, // ........ /* 0008 */ 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, // ........ /* 0010 */ 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, // ........ /* 0018 */ 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, // ........ /* 0020 */ 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, // ........ /* 0028 */ 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, // ........ /* 0030 */ 0xAF, 0xB0 // .. }, Buffer (0x32) { /* 0000 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 0008 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 0010 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 0018 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 0020 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 0028 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 0030 */ 0xE1, 0xE2 // .. }, Buffer (0x1E) { /* 0000 */ 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, // ........ /* 0008 */ 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, // ........ /* 0010 */ 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, // ........ /* 0018 */ 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00 // ...... }, /* Results into 200 characters */ Buffer (0x64) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0018 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0020 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0038 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0040 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0048 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0050 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0058 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0060 */ 0x01, 0x01, 0x01, 0x0B // .... }, Buffer (0x33) { /* 0000 */ 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, // oooooooo /* 0008 */ 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, // oooooooo /* 0010 */ 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, // oooooooo /* 0018 */ 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, // oooooooo /* 0020 */ 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, // oooooooo /* 0028 */ 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, 0x6F, // oooooooo /* 0030 */ 0x6F, 0x0B, 0x01 // o.. } }) Name (P343, Package (0x0C) { "0,0,0,0,0,0,0,0,0", "9,7,5,3", "1", "1,2,3,4", "1,2,3,4,5,6,7,8", "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69", "70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126", "127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176", "177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226", "227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,0", "1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11", "111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,11,1" }) /* Run-method */ Method (TOD0, 0, Serialized) { Debug = "TEST: TOD0, Convert Data to Decimal String" /* From integer */ If ((F64 == 0x01)) { M302 (__METHOD__, 0x0F, "p338", P338, P339, 0x03) M302 (__METHOD__, 0x0B, "p340", P340, P341, 0x03) } Else { M302 (__METHOD__, 0x0F, "p338", P338, P339, 0x03) } /* From buffer */ M302 (__METHOD__, 0x0C, "p342", P342, P343, 0x03) /* From string */ M302 (__METHOD__, 0x06, "p344", P344, P344, 0x03) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/store.asl0000700000175000017500000004360514773714156031322 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation */ Name (Z042, 0x2A) Mutex (MT04, 0x00) /* Verifying 1-parameter, 1-result operator */ Method (M302, 6, Serialized) { Local5 = 0x00 Local3 = Arg1 While (Local3) { /* Operand */ Local0 = DerefOf (Arg3 [Local5]) /* Expected result */ Local1 = DerefOf (Arg4 [Local5]) Switch (ToInteger (Arg5)) { Case (0x00) { ToInteger (Local0, Local2) If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } Case (0x01) { ToBuffer (Local0, Local2) If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } Case (0x02) { ToString (Local0, Ones, Local2) If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } Case (0x03) { ToDecimalString (Local0, Local2) If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } Case (0x04) { ToHexString (Local0, Local2) If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } Case (0x05) { ToBCD (Local0, Local2) If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } Case (0x06) { FromBCD (Local0, Local2) If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } Case (0x07) { /* ToUUID macro */ Local2 = Local0 If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } Case (0x08) { /* Unicode macro */ Local2 = Local0 If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } Case (0x09) { /* EISAID macro */ Local2 = Local0 If ((Local2 != Local1)) { ERR (Arg0, Z042, __LINE__, 0x00, 0x00, Local5, Arg2) Return (0x01) } } } Local5++ Local3-- } Return (0x00) } Method (ST00, 0, Serialized) { Debug = "TEST: ST00, Store object" /* Store */ Local1 = Local0 = 0xABCDEF12 If ((Local1 != 0xABCDEF12)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Integer arithmetic */ /* Add */ Local1 = Local0 = (0x12345678 + 0x11111111) If ((Local1 != 0x23456789)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Store ((0x23456781 + 0x11111111), Local0) If ((Local0 != 0x34567892)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local1 = Local0 = (0x12345678 + 0xF0000000) M4C0 (__METHOD__, Local1, 0x0000000102345678, 0x02345678) /* Subtract */ Local1 = Local0 = (0x87654321 - 0x11111111) If ((Local1 != 0x76543210)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Store ((0x72387654 - 0x22221111), Local0) If ((Local0 != 0x50166543)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Multiply */ Local1 = Local0 = (0x00012345 * 0x7ABC) If ((Local1 != 0x8BA4C8AC)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Store ((0x000145AB * 0x3247), Local0) If ((Local0 != 0x3FF5B86D)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Divide */ Local2 = Divide (0x12345678, 0x1000, Local0, Local1) If ((Local2 != 0x00012345)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Store (Divide (0x7ABC56E8, 0x1000, Local0), Local1) If ((Local1 != 0x0007ABC5)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Store ((0x55667788 / 0x1000), Local0) If ((Local0 != 0x00055667)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Increment */ Local0 = 0x12345678 Local1 = Local0++ If ((Local1 != 0x12345679)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Decrement */ Local0 = 0x67812345 Local1 = Local0-- If ((Local1 != 0x67812344)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* And */ Local1 = Local0 = (0x87654321 & 0xAAAAAAAA) If ((Local1 != 0x82200220)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Store ((0x88AABBCC & 0xAAAAAAAA), Local0) If ((Local0 != 0x88AAAA88)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* FindSetLeftBit */ Local1 = FindSetLeftBit (0xF001, Local0) If ((Local1 != 0x10)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = FindSetLeftBit (0x09007001) If ((Local0 != 0x1C)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* FindSetRightBit */ Local1 = FindSetRightBit (0x01080040, Local0) If ((Local1 != 0x07)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = FindSetRightBit (0x09800000) If ((Local0 != 0x18)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Mod */ Store ((0x1AFB3C4D % 0x00400000), Local0) If ((Local0 != 0x003B3C4D)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* ShiftLeft */ Local1 = Local0 = (0x12345678 << 0x09) M4C0 (__METHOD__, Local1, 0x0000002468ACF000, 0x68ACF000) Store ((0x45678ABF << 0x0B), Local0) M4C0 (__METHOD__, Local0, 0x0000022B3C55F800, 0x3C55F800) /* ShiftRight */ Local1 = Local0 = (0x87654321 >> 0x19) If ((Local1 != 0x43)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Store ((0x7654A0CB >> 0x15), Local0) If ((Local0 != 0x03B2)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Nand */ Local1 = NAnd (0xA33553AC, 0x9A9636CA, Local0) M4C0 (__METHOD__, Local1, 0xFFFFFFFF7DEBED77, 0x7DEBED77) Local0 = NAnd (0xA33553AC, 0x565C36C9) M4C0 (__METHOD__, Local0, 0xFFFFFFFFFDEBED77, 0xFDEBED77) /* Nor */ Local1 = NOr (0x9A335A3C, 0x39A96C6A, Local0) M4C0 (__METHOD__, Local1, 0xFFFFFFFF44448181, 0x44448181) Local0 = NOr (0x9A353A3C, 0x39A69C6A) M4C0 (__METHOD__, Local0, 0xFFFFFFFF44484181, 0x44484181) /* Not */ Local1 = Local0 = ~0x8A345678 M4C0 (__METHOD__, Local1, 0xFFFFFFFF75CBA987, 0x75CBA987) Store (~0x8AF45678, Local0) M4C0 (__METHOD__, Local0, 0xFFFFFFFF750BA987, 0x750BA987) /* Or */ Local1 = Local0 = (0x9A3533AC | 0x39A696CA) If ((Local1 != 0xBBB7B7EE)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Store ((0xCA3533A9 | 0xA9A696C3), Local0) If ((Local0 != 0xEBB7B7EB)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Xor */ Local1 = Local0 = (0x9A365AC3 ^ 0x39A96CA6) If ((Local1 != 0xA39F3665)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Store ((0xA9365AC3 ^ 0x93A96CA6), Local0) If ((Local0 != 0x3A9F3665)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Logical operators */ /* LAnd (provided by LAN0) */ /* LEqual (provided by LEQ0) */ /* LGreater (provided by LGR0) */ /* LGreaterEqual (provided by LGE0) */ /* LLess (provided by LL00) */ /* LLessEqual (provided by LLE0) */ /* LNot (provided by LN00) */ /* LNotEqual (provided by LNE0) */ /* LOr (provided by LOR0) */ /* Synchronization */ /* Acquire */ Local0 = Acquire (MT04, 0x0005) If ((Local0 != Zero)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Release (None) */ /* ToInteger */ Local1 = ToInteger ("0x89abcdef", Local0) If ((Local1 != 0x89ABCDEF)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = ToInteger ("0x89abcdef") If ((Local0 != 0x89ABCDEF)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* ToString */ Local2 = Buffer (0x01) { 0x01 // . } Local1 = ToString (Local2, Ones, Local0) If ((Local1 != "\x01")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = ToString (Local2, Ones) If ((Local0 != "\x01")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local1 = ToString (Local2, 0x01, Local0) If ((Local1 != "\x01")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = ToString (Local2, 0x01) If ((Local0 != "\x01")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* ToBuffer */ Local2 = "\x01" Local1 = ToBuffer (Local2, Local0) If ((Local1 != Buffer (0x02) { 0x01, 0x00 // .. })) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = ToBuffer (Local2) If ((Local0 != Buffer (0x02) { 0x01, 0x00 // .. })) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* ToDecimalString */ Local2 = 0x0C Local1 = ToDecimalString (Local2, Local0) If ((Local1 != "12")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = ToDecimalString (Local2) If ((Local0 != "12")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* ToHexString */ Local2 = Buffer (0x01) { 0xEF // . } Local1 = ToHexString (Local2, Local0) If ((Local1 != "EF")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = ToHexString (Local2) If ((Local0 != "EF")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* ToBCD */ Local2 = 0x0A Local1 = ToBCD (Local2, Local0) If ((Local1 != 0x10)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = ToBCD (Local2) If ((Local0 != 0x10)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* FromBCD */ Local2 = 0x10 Local1 = FromBCD (Local2, Local0) If ((Local1 != 0x0A)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = FromBCD (Local2) If ((Local0 != 0x0A)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Mid */ Local2 = "0123" Local1 = Mid (Local2, 0x01, 0x02, Local0) If ((Local1 != "12")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = Mid (Local2, 0x01, 0x02) If ((Local0 != "12")) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local2 = Buffer (0x04) { 0x00, 0x01, 0x02, 0x03 // .... } Local1 = Mid (Local2, 0x01, 0x02, Local0) If ((Local1 != Buffer (0x02) { 0x01, 0x02 // .. })) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } Local0 = Mid (Local2, 0x01, 0x02) If ((Local0 != Buffer (0x02) { 0x01, 0x02 // .. })) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Match */ Local2 = Package (0x01) { 0x01 } Local0 = Match (Local2, MTR, 0x00, MTR, 0x00, 0x00) If ((Local0 != 0x00)) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* ConcatenateResTemplate */ Local2 = Buffer (0x02) { 0x79, 0x00 // y. } Local3 = Buffer (0x02) { 0x79, 0x00 // y. } Local1 = ConcatenateResTemplate (Local2, Local3, Local0) /* * 20.12.2005: 0 instead of 0x87 */ If ((Local1 != Buffer (0x02) { 0x79, 0x00 // y. })) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* * 20.12.2005: 0 instead of 0x87 */ Local0 = ConcatenateResTemplate (Local2, Local3) If ((Local0 != Buffer (0x02) { 0x79, 0x00 // y. })) { ERR (__METHOD__, Z042, __LINE__, 0x00, 0x00, 0x00, 0x00) } } Method (M30D, 0, Serialized) { Name (STR0, "mnbvcxzlkjhgf") Name (STR1, "mnbvcxzlkjAgf") STR0 [0x0A] = "A" If ((STR0 != STR1)) { ERR ("m30d", Z042, __LINE__, 0x00, 0x00, STR0, STR1) } } /* Run-method */ Method (DCM0, 0, NotSerialized) { ST00 () M30D () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/eisaid.asl0000700000175000017500000000507314773714156031421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * EISA ID String To Integer Conversion Macro */ Name (P360, Package (0x0A) { 0x23014304, 0x6745A610, 0xBC8A091D, 0xFADE6C29, 0xDEBCCF35, 0x12F03242, 0x5634954E, 0x9A78F85A, 0xDEBC4167, /* check uppercase requirement to the EISAID */ /* form "UUUXXXX" (UUU - 3 uppercase letters) */ 0x23014304 }) Name (P361, Package (0x0A) { 0x23014304, 0x6745A610, 0xBC8A091D, 0xFADE6C29, 0xDEBCCF35, 0x12F03242, 0x5634954E, 0x9A78F85A, 0xDEBC4167, 0x23014304 /* 0x23014384 */ }) /* Run-method */ Method (EIS0, 0, Serialized) { Debug = "TEST: EIS0, EISA ID String To Integer Conversion Macro" M302 (__METHOD__, 0x0A, "p360", P360, P361, 0x09) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/MAIN.asl0000700000175000017500000000411114773714156030677 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("manipulation", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/manipulation/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/manipulation/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/unicode.asl0000700000175000017500000002020514773714156031603 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation */ /* String To Unicode Conversion Macro */ Name (P358, Package (0x04) { Buffer (0x02) { 0x00, 0x00 // .. }, Unicode (" "), Buffer (0x0100) { /* 0000 */ 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04, 0x00, // ........ /* 0008 */ 0x05, 0x00, 0x06, 0x00, 0x07, 0x00, 0x08, 0x00, // ........ /* 0010 */ 0x09, 0x00, 0x0A, 0x00, 0x0B, 0x00, 0x0C, 0x00, // ........ /* 0018 */ 0x0D, 0x00, 0x0E, 0x00, 0x0F, 0x00, 0x10, 0x00, // ........ /* 0020 */ 0x11, 0x00, 0x12, 0x00, 0x13, 0x00, 0x14, 0x00, // ........ /* 0028 */ 0x15, 0x00, 0x16, 0x00, 0x17, 0x00, 0x18, 0x00, // ........ /* 0030 */ 0x19, 0x00, 0x1A, 0x00, 0x1B, 0x00, 0x1C, 0x00, // ........ /* 0038 */ 0x1D, 0x00, 0x1E, 0x00, 0x1F, 0x00, 0x20, 0x00, // ...... . /* 0040 */ 0x21, 0x00, 0x22, 0x00, 0x23, 0x00, 0x24, 0x00, // !.".#.$. /* 0048 */ 0x25, 0x00, 0x26, 0x00, 0x27, 0x00, 0x28, 0x00, // %.&.'.(. /* 0050 */ 0x29, 0x00, 0x2A, 0x00, 0x2B, 0x00, 0x2C, 0x00, // ).*.+.,. /* 0058 */ 0x2D, 0x00, 0x2E, 0x00, 0x2F, 0x00, 0x30, 0x00, // -.../.0. /* 0060 */ 0x31, 0x00, 0x32, 0x00, 0x33, 0x00, 0x34, 0x00, // 1.2.3.4. /* 0068 */ 0x35, 0x00, 0x36, 0x00, 0x37, 0x00, 0x38, 0x00, // 5.6.7.8. /* 0070 */ 0x39, 0x00, 0x3A, 0x00, 0x3B, 0x00, 0x3C, 0x00, // 9.:.;.<. /* 0078 */ 0x3D, 0x00, 0x3E, 0x00, 0x3F, 0x00, 0x40, 0x00, // =.>.?.@. /* 0080 */ 0x41, 0x00, 0x42, 0x00, 0x43, 0x00, 0x44, 0x00, // A.B.C.D. /* 0088 */ 0x45, 0x00, 0x46, 0x00, 0x47, 0x00, 0x48, 0x00, // E.F.G.H. /* 0090 */ 0x49, 0x00, 0x4A, 0x00, 0x4B, 0x00, 0x4C, 0x00, // I.J.K.L. /* 0098 */ 0x4D, 0x00, 0x4E, 0x00, 0x4F, 0x00, 0x50, 0x00, // M.N.O.P. /* 00A0 */ 0x51, 0x00, 0x52, 0x00, 0x53, 0x00, 0x54, 0x00, // Q.R.S.T. /* 00A8 */ 0x55, 0x00, 0x56, 0x00, 0x57, 0x00, 0x58, 0x00, // U.V.W.X. /* 00B0 */ 0x59, 0x00, 0x5A, 0x00, 0x5B, 0x00, 0x5C, 0x00, // Y.Z.[.\. /* 00B8 */ 0x5D, 0x00, 0x5E, 0x00, 0x5F, 0x00, 0x60, 0x00, // ].^._.`. /* 00C0 */ 0x61, 0x00, 0x62, 0x00, 0x63, 0x00, 0x64, 0x00, // a.b.c.d. /* 00C8 */ 0x65, 0x00, 0x66, 0x00, 0x67, 0x00, 0x68, 0x00, // e.f.g.h. /* 00D0 */ 0x69, 0x00, 0x6A, 0x00, 0x6B, 0x00, 0x6C, 0x00, // i.j.k.l. /* 00D8 */ 0x6D, 0x00, 0x6E, 0x00, 0x6F, 0x00, 0x70, 0x00, // m.n.o.p. /* 00E0 */ 0x71, 0x00, 0x72, 0x00, 0x73, 0x00, 0x74, 0x00, // q.r.s.t. /* 00E8 */ 0x75, 0x00, 0x76, 0x00, 0x77, 0x00, 0x78, 0x00, // u.v.w.x. /* 00F0 */ 0x79, 0x00, 0x7A, 0x00, 0x7B, 0x00, 0x7C, 0x00, // y.z.{.|. /* 00F8 */ 0x7D, 0x00, 0x7E, 0x00, 0x7F, 0x00, 0x00, 0x00 // }.~..... }, Unicode ("!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*") }) Name (P359, Package (0x04) { Buffer (0x02) { 0x00, 0x00 // .. }, Unicode (" "), Buffer (0x0100) { /* 0000 */ 0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04, 0x00, // ........ /* 0008 */ 0x05, 0x00, 0x06, 0x00, 0x07, 0x00, 0x08, 0x00, // ........ /* 0010 */ 0x09, 0x00, 0x0A, 0x00, 0x0B, 0x00, 0x0C, 0x00, // ........ /* 0018 */ 0x0D, 0x00, 0x0E, 0x00, 0x0F, 0x00, 0x10, 0x00, // ........ /* 0020 */ 0x11, 0x00, 0x12, 0x00, 0x13, 0x00, 0x14, 0x00, // ........ /* 0028 */ 0x15, 0x00, 0x16, 0x00, 0x17, 0x00, 0x18, 0x00, // ........ /* 0030 */ 0x19, 0x00, 0x1A, 0x00, 0x1B, 0x00, 0x1C, 0x00, // ........ /* 0038 */ 0x1D, 0x00, 0x1E, 0x00, 0x1F, 0x00, 0x20, 0x00, // ...... . /* 0040 */ 0x21, 0x00, 0x22, 0x00, 0x23, 0x00, 0x24, 0x00, // !.".#.$. /* 0048 */ 0x25, 0x00, 0x26, 0x00, 0x27, 0x00, 0x28, 0x00, // %.&.'.(. /* 0050 */ 0x29, 0x00, 0x2A, 0x00, 0x2B, 0x00, 0x2C, 0x00, // ).*.+.,. /* 0058 */ 0x2D, 0x00, 0x2E, 0x00, 0x2F, 0x00, 0x30, 0x00, // -.../.0. /* 0060 */ 0x31, 0x00, 0x32, 0x00, 0x33, 0x00, 0x34, 0x00, // 1.2.3.4. /* 0068 */ 0x35, 0x00, 0x36, 0x00, 0x37, 0x00, 0x38, 0x00, // 5.6.7.8. /* 0070 */ 0x39, 0x00, 0x3A, 0x00, 0x3B, 0x00, 0x3C, 0x00, // 9.:.;.<. /* 0078 */ 0x3D, 0x00, 0x3E, 0x00, 0x3F, 0x00, 0x40, 0x00, // =.>.?.@. /* 0080 */ 0x41, 0x00, 0x42, 0x00, 0x43, 0x00, 0x44, 0x00, // A.B.C.D. /* 0088 */ 0x45, 0x00, 0x46, 0x00, 0x47, 0x00, 0x48, 0x00, // E.F.G.H. /* 0090 */ 0x49, 0x00, 0x4A, 0x00, 0x4B, 0x00, 0x4C, 0x00, // I.J.K.L. /* 0098 */ 0x4D, 0x00, 0x4E, 0x00, 0x4F, 0x00, 0x50, 0x00, // M.N.O.P. /* 00A0 */ 0x51, 0x00, 0x52, 0x00, 0x53, 0x00, 0x54, 0x00, // Q.R.S.T. /* 00A8 */ 0x55, 0x00, 0x56, 0x00, 0x57, 0x00, 0x58, 0x00, // U.V.W.X. /* 00B0 */ 0x59, 0x00, 0x5A, 0x00, 0x5B, 0x00, 0x5C, 0x00, // Y.Z.[.\. /* 00B8 */ 0x5D, 0x00, 0x5E, 0x00, 0x5F, 0x00, 0x60, 0x00, // ].^._.`. /* 00C0 */ 0x61, 0x00, 0x62, 0x00, 0x63, 0x00, 0x64, 0x00, // a.b.c.d. /* 00C8 */ 0x65, 0x00, 0x66, 0x00, 0x67, 0x00, 0x68, 0x00, // e.f.g.h. /* 00D0 */ 0x69, 0x00, 0x6A, 0x00, 0x6B, 0x00, 0x6C, 0x00, // i.j.k.l. /* 00D8 */ 0x6D, 0x00, 0x6E, 0x00, 0x6F, 0x00, 0x70, 0x00, // m.n.o.p. /* 00E0 */ 0x71, 0x00, 0x72, 0x00, 0x73, 0x00, 0x74, 0x00, // q.r.s.t. /* 00E8 */ 0x75, 0x00, 0x76, 0x00, 0x77, 0x00, 0x78, 0x00, // u.v.w.x. /* 00F0 */ 0x79, 0x00, 0x7A, 0x00, 0x7B, 0x00, 0x7C, 0x00, // y.z.{.|. /* 00F8 */ 0x7D, 0x00, 0x7E, 0x00, 0x7F, 0x00, 0x00, 0x00 // }.~..... }, Unicode ("!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*") }) /* Run-method */ Method (UNI0, 0, Serialized) { Debug = "TEST: UNI0, String To Unicode Conversion Macro" M302 (__METHOD__, 0x04, "p358", P358, P359, 0x08) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/tohexstring.asl0000700000175000017500000002156314773714156032543 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * Convert Data to Hexadecimal String */ /* Integer */ /* 32-bit */ Name (P346, Package (0x0C) { 0x00, 0x01, 0x83, 0x0456, 0x8232, 0x000BCDEF, 0x00123456, 0x0789ABCD, 0xFFFFFFFF, 0x01234567, 0xFF, 0xFFFF }) Name (P347, Package (0x0C) { "00000000", "00000001", "00000083", "00000456", "00008232", "000BCDEF", "00123456", "0789ABCD", "FFFFFFFF", "01234567", "000000FF", "0000FFFF" }) /* 64-bit */ Name (P348, Package (0x17) { 0x00, 0x01, 0x83, 0x0456, 0x8232, 0x000BCDEF, 0x00123456, 0x0789ABCD, 0xFFFFFFFF, 0x01234567, 0xFF, 0xFFFF, 0x0000000123456789, 0x0000008123456789, 0x00000ABCDEF01234, 0x0000876543210ABC, 0x0001234567ABCDEF, 0x008234567ABCDEF1, 0x06789ABCDEF01234, 0x76543201F89ABCDE, 0xF89ABCDE76543201, 0xFFFFFFFFFFFFFFFF, 0x0123456789ABCDEF }) Name (P349, Package (0x17) { "0000000000000000", "0000000000000001", "0000000000000083", "0000000000000456", "0000000000008232", "00000000000BCDEF", "0000000000123456", "000000000789ABCD", "00000000FFFFFFFF", "0000000001234567", "00000000000000FF", "000000000000FFFF", "0000000123456789", "0000008123456789", "00000ABCDEF01234", "0000876543210ABC", "0001234567ABCDEF", "008234567ABCDEF1", "06789ABCDEF01234", "76543201F89ABCDE", "F89ABCDE76543201", "FFFFFFFFFFFFFFFF", "0123456789ABCDEF" }) /* Buffer */ Name (P350, Package (0x0A) { Buffer (0x09){}, Buffer (0x04) { 0x09, 0x07, 0x05, 0x03 // .... }, Buffer (0x01) { 0x01 // . }, Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... }, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, Buffer (0x10) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 // ........ }, Buffer (0x37) { /* 0000 */ 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, // ........ /* 0008 */ 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, // ........ /* 0010 */ 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, // ........ /* 0018 */ 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, // ........ /* 0020 */ 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, // ........ /* 0028 */ 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, // ........ /* 0030 */ 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00 // ....... }, /* All buffers below result in 200 characters strings */ Buffer (0x43) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43 // ABC }, Buffer (0x43) { /* 0000 */ 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, // DEFGHIJK /* 0008 */ 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, // LMNOPQRS /* 0010 */ 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, // TUVWXYZ[ /* 0018 */ 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, // \]^_`abc /* 0020 */ 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, // defghijk /* 0028 */ 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, // lmnopqrs /* 0030 */ 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, // tuvwxyz{ /* 0038 */ 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, // |}~..... /* 0040 */ 0x84, 0x85, 0x86 // ... }, Buffer (0x43) { /* 0000 */ 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, // ........ /* 0008 */ 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, // ........ /* 0010 */ 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, // ........ /* 0018 */ 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, // ........ /* 0020 */ 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, // ........ /* 0028 */ 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, // ........ /* 0030 */ 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, // ........ /* 0038 */ 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, // ........ /* 0040 */ 0xC7, 0xC8, 0xC9 // ... } }) Name (P351, Package (0x0A) { "00,00,00,00,00,00,00,00,00", "09,07,05,03", "01", "01,02,03,04", "01,02,03,04,05,06,07,08", "01,02,03,04,05,06,07,08,09,0A,0B,0C,0D,0E,0F,10", "CA,CB,CC,CD,CE,CF,D0,D1,D2,D3,D4,D5,D6,D7,D8,D9,DA,DB,DC,DD,DE,DF,E0,E1,E2,E3,E4,E5,E6,E7,E8,E9,EA,EB,EC,ED,EE,EF,F0,F1,F2,F3,F4,F5,F6,F7,F8,F9,FA,FB,FC,FD,FE,FF,00", "01,02,03,04,05,06,07,08,09,0A,0B,0C,0D,0E,0F,10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F,20,21,22,23,24,25,26,27,28,29,2A,2B,2C,2D,2E,2F,30,31,32,33,34,35,36,37,38,39,3A,3B,3C,3D,3E,3F,40,41,42,43", "44,45,46,47,48,49,4A,4B,4C,4D,4E,4F,50,51,52,53,54,55,56,57,58,59,5A,5B,5C,5D,5E,5F,60,61,62,63,64,65,66,67,68,69,6A,6B,6C,6D,6E,6F,70,71,72,73,74,75,76,77,78,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86", "87,88,89,8A,8B,8C,8D,8E,8F,90,91,92,93,94,95,96,97,98,99,9A,9B,9C,9D,9E,9F,A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,B0,B1,B2,B3,B4,B5,B6,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9" }) /* Run-method */ Method (TOH0, 0, Serialized) { Debug = "TEST: TOH0, Convert Data to Hexadecimal String" /* From integer */ If ((F64 == 0x01)) { M302 (__METHOD__, 0x17, "p348", P348, P349, 0x04) } Else { M302 (__METHOD__, 0x0C, "p346", P346, P347, 0x04) } /* From string */ M302 (__METHOD__, 0x06, "p344", P344, P344, 0x04) /* From buffer */ M302 (__METHOD__, 0x0A, "p350", P350, P351, 0x04) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/Makefile0000700000175000017500000000015114773714156031112 0ustar ivanhuivanhu# manipulation AMLMOD= manipulation COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/tostring.asl0000700000175000017500000003306614773714156032037 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * Convert Buffer To String */ Name (Z048, 0x30) Name (P330, Package (0x0D) { Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ }, Buffer (0xC8) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8 // ........ }, Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ }, Buffer (0x80) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80 // yz{|}~.. }, Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ }, Buffer (0x10) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 // ........ }, Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ }, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ }, Buffer (0x04) { 0x01, 0x02, 0x03, 0x04 // .... }, Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ }, Buffer (0x01) { 0x01 // . }, Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ } }) Name (B330, Buffer (0x06) { 0xC8, 0x80, 0x10, 0x08, 0x04, 0x01 // ...... }) /* Init buffer with the symbols 1-255 */ Method (M303, 2, NotSerialized) { Local0 = 0x00 While ((Local0 < Arg1)) { Local1 = ((Local0 + 0x01) % 0x0100) Arg0 [Local0] = Local1 Local0++ } } /* Verify the contents of result string */ Method (M305, 5, NotSerialized) { Local0 = 0x00 While ((Local0 < Arg2)) { Local1 = ((Local0 + 0x01) % 0x0100) If ((DerefOf (Arg1 [Local0]) != Local1)) { ERR (Arg0, Z048, __LINE__, 0x00, 0x00, Local0, Arg4) } Local0++ } } /* Verify type, length of the obtained string, call to m305 */ Method (M307, 5, NotSerialized) { If ((ObjectType (Arg1) != 0x02)) { ERR (Arg0, Z048, __LINE__, 0x00, 0x00, Arg2, "Type") } ElseIf ((SizeOf (Arg1) != Arg2)) { ERR (Arg0, Z048, __LINE__, 0x00, 0x00, Arg2, "Sizeof") } Else { M305 (Arg0, Arg1, Arg2, Arg3, Arg4) } } /* Check the surrounding control buffers are safe */ Method (M309, 3, NotSerialized) { /* control buffer */ Local1 = DerefOf (P330 [Arg1]) Local0 = 0x00 While ((Local0 < 0x08)) { If ((DerefOf (Local1 [Local0]) != 0xFF)) { ERR (Arg0, Z048, __LINE__, 0x00, 0x00, Local0, "buf8") } Local0++ } } /* Check all positions of null character (0-200) */ Method (M30A, 1, Serialized) { Name (LENS, Buffer (0x0A) { /* 0000 */ 0xC8, 0xC7, 0x81, 0x80, 0x7F, 0x09, 0x08, 0x07, // ........ /* 0008 */ 0x01, 0x00 // .. }) Name (BUF0, Buffer (0xFF){}) /* Buffer (255 bytes) initialized with non-zero bytes */ M303 (BUF0, 0xFF) Local1 = 0x00 While ((Local1 < 0x0A)) { /* Fill zero byte in position specified by LENS */ Local0 = DerefOf (LENS [Local1]) Local5 = DerefOf (BUF0 [Local0]) BUF0 [Local0] = 0x00 /* The contents of buffer is not more changed in checkings below */ /* Checking for unspecified Length parameter */ /* Invoke ToString without Length */ Local2 = ToString (BUF0, Ones) M307 (Arg0, Local2, Local0, 0x01, "Omit") /* Invoke ToString with Ones */ ToString (BUF0, Ones, Local2) M307 (Arg0, Local2, Local0, 0x02, "Ones") /* Checking for particular values of Length parameter (0, 32, 64...) */ Local3 = 0x00 /* Length */ While ((Local3 < 0x0191)) { Local4 = Local0 /* expected size */ If ((Local3 < Local4)) { Local4 = Local3 } ToString (BUF0, Local3, Local2) M307 (Arg0, Local2, Local4, 0x03, "Size") Local3 += 0x20 } /* Restore position specified by LENS */ BUF0 [Local0] = Local5 Local1++ } } Method (M333, 1, NotSerialized) { Local0 = 0x00 Local0 = ToString (DerefOf (Arg0), Ones) Debug = Local0 } /* Check Buffer->Length effective condition. */ /* Don't put null characters. Check the surrounding */ /* control buffers are safe. */ Method (M30B, 1, Serialized) { Name (LOC8, 0x00) Local5 = 0x00 /* index of control buffer 1 */ While ((LOC8 < 0x06)) { /* Choose the buffer from package */ Local0 = DerefOf (B330 [LOC8]) /* length */ Local1 = (LOC8 * 0x02) /* index of a buffer */ Local1 += 0x01 Local6 = (Local1 + 0x01) /* index of control buffer 2 */ Store (P330 [Local1], Local4) /* ref to test buffer */ /* Checking for unspecified Length parameter */ /* Invoke ToString without Length */ Local2 = ToString (DerefOf (Local4), Ones) M307 (Arg0, Local2, Local0, 0x04, "Omit") M309 (Arg0, Local5, 0x04) /* check control buffers */ M309 (Arg0, Local6, 0x04) /* Invoke ToString with Ones */ ToString (DerefOf (Local4), Ones, Local2) M307 (Arg0, Local2, Local0, 0x05, "Ones") M309 (Arg0, Local5, 0x05) /* check control buffers */ M309 (Arg0, Local6, 0x05) /* Checking for particular values of Length parameter */ /* exceeding (by 0, 1, 2, 3, ... 8) the actual lengths of Buffer */ Local7 = (Local0 + 0x09) /* Max. Length */ Local3 = Local0 /* Length */ While ((Local3 < Local7)) { ToString (DerefOf (Local4), Local3, Local2) M307 (Arg0, Local2, Local0, 0x06, "Size") M309 (Arg0, Local5, 0x06) /* check control buffers */ M309 (Arg0, Local6, 0x06) Local3++ } Local5 = Local6 LOC8++ } } /* Check zero length buffer, and, in passing, */ /* dynamically allocated buffers. */ Method (M30C, 1, Serialized) { Name (LENS, Buffer (0x04) { 0xC8, 0xC7, 0x01, 0x00 // .... }) Local1 = 0x00 While ((Local1 < 0x04)) { /* Allocate buffer dynamically and initialize it, */ /* don't put null characters. */ Local0 = DerefOf (LENS [Local1]) Local4 = Buffer (Local0){} M303 (Local4, Local0) /* Checking for unspecified Length parameter */ /* Invoke ToString without Length */ Local2 = ToString (Local4, Ones) M307 (Arg0, Local2, Local0, 0x07, "Omit") /* Invoke ToString with Ones */ ToString (Local4, Ones, Local2) M307 (Arg0, Local2, Local0, 0x08, "Ones") /* Allocate buffer of +1 size and put null characters */ /* into the last byte. */ Local4 = Buffer ((Local0 + 0x01)){} M303 (Local4, Local0) Local4 [Local0] = 0x00 /* Invoke ToString without Length */ Local2 = ToString (Local4, Ones) M307 (Arg0, Local2, Local0, 0x09, "Omit") /* Invoke ToString with Ones */ ToString (Local4, Ones, Local2) M307 (Arg0, Local2, Local0, 0x0A, "Ones") Local1++ } } /* Run-method */ Method (TOS0, 0, Serialized) { Debug = "TEST: TOS0, Convert Buffer To String" M30A (__METHOD__) M30B (__METHOD__) M30C (__METHOD__) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/match2.asl0000700000175000017500000003055414773714156031343 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * Find Object Match */ /* This is the initial point of designing the test of functionality of Match operator not covered by match1.asl (match1.asl - Match operator with Integer only). */ /* Prepare one Method (m330,m332...) with all the p000,p001... mix differently the contents, so traveling will be different... */ /* * Digital map of operations: * * MTR MEQ MLE MLT MGE MGT * 0 1 2 3 4 5 * ------------------------ * always TRUE ) MTR 0| 00 01 02 03 04 05 * == ) MEQ 1| 10 11 12 13 14 15 * <= ) MLE 2| 20 21 22 23 24 25 * < ) MLT 3| 30 31 32 33 34 35 * >= ) MGE 4| 40 41 42 43 44 45 * > ) MGT 5| 50 51 52 53 54 55 * ------------------------ */ Name (Z075, 0x4B) /* // The same as m0df and m0e0 but all the values // of Cases are in one Package Method(m330, 1) { Name(i000, 0x12) Name(s000, "12") Name(b000, Buffer() {0x12}) Name(p000, Package() {0x12}) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8 } Device(d000) {} Event(e000) Method(m000) { return (0x12) } Mutex(mx00, 0) PowerResource(pwr0, 1, 0) {Method(m001){return (0)}} Processor(prc0, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} CreateField(b000, 0, 8, bf00) Name(p001, Package(32) { i000, s000, b000, p000, f000, d000, e000, m000, mx00, r000, pwr0, prc0, tz00, bf00, }) // Store(0x12, Index(p001, 31)) Store(Match(p000, MEQ, arg0, MEQ, arg0, 0), Local0) return (Local0) } Method(m331, 1) { Store(m330(0x12), Local0) if (LNotEqual(Local0, Ones)) { err(arg0, z075, __LINE__, 0, 0, Local0, Ones) } } */ /* // The same as m0df and m0e0 but all the values // of Cases are in one Package Method(m330, 1) { Name(p000, Package() { // Buffer Buffer(1){10}, Buffer(2){11,12}, Buffer() {13,14,15}, Buffer(2){16,17,18}, Buffer(3){19,20}, Buffer(3){21,22,23}, Buffer(4){24,25,26,27}, Buffer(5){28,29,30,31,32}, Buffer(8){33,34,35,36,37,38,39,40}, Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}, Buffer(9){41,42,43,44,45,46,47,48,49}, Buffer(67){0x7d}, Buffer() { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}, Buffer(67) { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}, Buffer(4){0,0,0,0}, Buffer(8){0,0,0,0,0,0,0,0}, Buffer(4){0xff,0xff,0xff,0xff}, Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(5){0xff,0xff,0xff,0xff,0xff}, Buffer(1){0xff}, Buffer(1){}, Buffer(5){}, Buffer(9){}, Buffer(9){0xab, 0xcd, 0xef}, // String "0321", "321", "ba9876", "c179b3fe", "fe7cb391d650a284", "ffffffff", "ffffffffffffffff", "ffffffffff", "ff", "987654321", "0xfe7cb3", // Integer 0321, 9876543210, 0xc179b3fe, 0xfe7cb391d650a284, 0, 0xffffffff, 0xffffffffffffffff, 0xff, 0xabcdef }) Store(Match(p000, MEQ, arg0, MEQ, arg0, 0), Local0) return (Local0) } Method(m331, 1) { // Integer Store(m330(0321), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z075, __LINE__, Local0, 36) } Store(m330(0xd1), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z075, __LINE__, Local0, 36) } Store(m330(9876543210), Local0) if (F64) { if (LNotEqual(Local0, 37)) { err(arg0, z075, __LINE__, Local0, 37) } } else { if (LNotEqual(Local0, 45)) { err(arg0, z075, __LINE__, Local0, 45) } } Store(m330(0xc179b3fe), Local0) if (LNotEqual(Local0, 28)) { err(arg0, z075, __LINE__, Local0, 28) } Store(m330(0xfe7cb391d650a284), Local0) if (LNotEqual(Local0, 29)) { err(arg0, z075, __LINE__, Local0, 29) } Store(m330(0), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z075, __LINE__, Local0, 14) } Store(m330(0xffffffff), Local0) if (LNotEqual(Local0, 16)) { err(arg0, z075, __LINE__, Local0, 16) } Store(m330(0xffffffffffffffff), Local0) if (F64) { if (LNotEqual(Local0, 17)) { err(arg0, z075, __LINE__, Local0, 17) } } else { if (LNotEqual(Local0, 16)) { err(arg0, z075, __LINE__, Local0, 16) } } Store(m330(0xff), Local0) if (LNotEqual(Local0, 20)) { err(arg0, z075, __LINE__, Local0, 20) } Store(m330(0xabcdef), Local0) if (LNotEqual(Local0, 44)) { err(arg0, z075, __LINE__, Local0, 44) } } // The same as m0e3 and m0e4 but all the values // of Cases are in one Package Method(m332, 1) { Name(p000, Package() { // Integer 0321, 9876543210, 0xc179b3fe, 0xfe7cb391d650a284, 0, 0xffffffff, 0xffffffffffffffff, 0xff, 0xabcdef, // Buffer Buffer(1){10}, Buffer(2){11,12}, Buffer() {13,14,15}, Buffer(2){16,17,18}, Buffer(3){19,20}, Buffer(3){21,22,23}, Buffer(4){24,25,26,27}, Buffer(5){28,29,30,31,32}, Buffer(8){33,34,35,36,37,38,39,40}, Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}, Buffer(9){41,42,43,44,45,46,47,48,49}, Buffer(67){0x7d}, Buffer() { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}, Buffer(67) { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}, Buffer(4){0,0,0,0}, Buffer(8){0,0,0,0,0,0,0,0}, Buffer(4){0xff,0xff,0xff,0xff}, Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(5){0xff,0xff,0xff,0xff,0xff}, Buffer(1){0xff}, Buffer(1){}, Buffer(5){}, Buffer(9){}, Buffer(9){0xab, 0xcd, 0xef}, // String "0321", "321", "ba9876", "c179b3fe", "fe7cb391d650a284", "ffffffff", "ffffffffffffffffff", "ffffffffffffffff", "ffffffffff", "ff", "fe7cb391d650a2841", "987654321", "0xfe7cb3", "1234q", "qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdf", "", " ", "`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?", "abcdef", "ABCDEF", }) Store(Match(p000, MEQ, arg0, MEQ, arg0, 0), Local0) return (Local0) } Method(m333, 1) { // String if (0) { Store(m332("0321"), Local0) if (LNotEqual(Local0, 34)) { err(arg0, z075, __LINE__, Local0, 34) } Store(m332("321"), Local0) if (LNotEqual(Local0, 34)) { err(arg0, z075, __LINE__, Local0, 34) } Store(m332("ba9876"), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z075, __LINE__, Local0, 36) } Store(m332("c179b3fe"), Local0) if (LNotEqual(Local0, 2)) { err(arg0, z075, __LINE__, Local0, 2) } Store(m332("fe7cb391d650a284"), Local0) if (LNotEqual(Local0, 3)) { err(arg0, z075, __LINE__, Local0, 3) } Store(m332("ffffffff"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z075, __LINE__, Local0, 5) } } Store(m332("ffffffffffffffffff"), Local0) if (LNotEqual(Local0, 40)) { err(arg0, z075, __LINE__, Local0, 40) } if (0) { Store(m332("ffffffffffffffff"), Local0) if (LNotEqual(Local0, 41)) { err(arg0, z075, __LINE__, Local0, 41) } Store(m332("ffffffffff"), Local0) if (LNotEqual(Local0, 42)) { err(arg0, z075, __LINE__, Local0, 42) } Store(m332("ff"), Local0) if (LNotEqual(Local0, 43)) { err(arg0, z075, __LINE__, Local0, 43) } Store(m332("fe7cb391d650a2841"), Local0) if (LNotEqual(Local0, 44)) { err(arg0, z075, __LINE__, Local0, 44) } Store(m332("987654321"), Local0) if (LNotEqual(Local0, 45)) { err(arg0, z075, __LINE__, Local0, 45) } Store(m332("0xfe7cb3"), Local0) if (LNotEqual(Local0, 46)) { err(arg0, z075, __LINE__, Local0, 46) } Store(m332("1234q"), Local0) if (LNotEqual(Local0, 47)) { err(arg0, z075, __LINE__, Local0, 47) } Store(m332(BIG0), Local0) if (LNotEqual(Local0, 48)) { err(arg0, z075, __LINE__, Local0, 48) } Store(m332(""), Local0) if (LNotEqual(Local0, 49)) { err(arg0, z075, __LINE__, Local0, 49) } Store(m332(" "), Local0) if (LNotEqual(Local0, 50)) { err(arg0, z075, __LINE__, Local0, 50) } Store(m332(ALL0), Local0) if (LNotEqual(Local0, 51)) { err(arg0, z075, __LINE__, Local0, 51) } Store(m332("abcdef"), Local0) if (LNotEqual(Local0, 52)) { err(arg0, z075, __LINE__, Local0, 52) } Store(m332("ABCDEF"), Local0) if (LNotEqual(Local0, 53)) { err(arg0, z075, __LINE__, Local0, 53) } } } */ /* Run-method */ Method (MAT1, 0, Serialized) { Debug = "TEST: MAT1, Find Object Match" /* m331(ts) */ /* m333(ts) */ } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/sizeof.asl0000700000175000017500000000632214773714156031460 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * SizeOf, Get the size of Integer, Buffer, String or Package */ Name (Z041, 0x29) /* Simplest test of SizeOf for all available type objects */ Method (M1EF, 0, Serialized) { Name (I000, 0x00) Name (S000, "vcd") Name (B000, Buffer (0x05) { 0x01, 0x02, 0x03, 0x04, 0x05 // ..... }) Name (P000, Package (0x07) { 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11 }) Local0 = SizeOf (I000) If ((F64 == 0x01)) { If ((Local0 != 0x08)) { ERR (__METHOD__, Z041, __LINE__, 0x00, 0x00, Local0, 0x08) } } ElseIf ((Local0 != 0x04)) { ERR (__METHOD__, Z041, __LINE__, 0x00, 0x00, Local0, 0x04) } Local0 = SizeOf (S000) If ((Local0 != 0x03)) { ERR (__METHOD__, Z041, __LINE__, 0x00, 0x00, Local0, 0x03) } Local0 = SizeOf (B000) If ((Local0 != 0x05)) { ERR (__METHOD__, Z041, __LINE__, 0x00, 0x00, Local0, 0x05) } Local0 = SizeOf (P000) If ((Local0 != 0x07)) { ERR (__METHOD__, Z041, __LINE__, 0x00, 0x00, Local0, 0x07) } } /* Run-method */ Method (SZO0, 0, NotSerialized) { Debug = "TEST: SZO0, Get the size of Integer, Buffer, String or Package:" M1EF () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/tofrombcd.asl0000700000175000017500000000735014773714156032142 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * Convert Integer to BCD * Convert BCD To Integer */ /* 32-bit */ Name (P352, Package (0x0C) { 0x00, 0x01, 0x0C, 0x0159, 0x1A85, 0x3039, 0x000A5BF5, 0x0023CACE, 0x055F2CC0, 0x05F5E0FF, 0xFF, 0xFFFF }) Name (P353, Package (0x0C) { 0x00, 0x01, 0x12, 0x0345, 0x6789, 0x00012345, 0x00678901, 0x02345678, 0x90123456, 0x99999999, 0x0255, 0x00065535 }) /* 64-bit */ Name (P354, Package (0x0A) { 0x1E89CAA5, 0x00000002540BE3FF, 0x00000002540BE400, 0x00000007037F7916, 0x0000001CBE991A14, 0x00000324D8AE5F79, 0x0000185D4D9097A5, 0x00007048860DDF79, 0x000D76162EE9EC35, 0x002386F26FC0FFFF }) Name (P355, Package (0x0A) { 0x0000000512346789, 0x0000009999999999, 0x0000010000000000, 0x0000030123456790, 0x0000123456789012, 0x0003456789012345, 0x0026789012346789, 0x0123456789012345, 0x3789012345678901, 0x9999999999999999 }) Method (BCD1, 0, Serialized) { Debug = "TEST: BCD1, Convert Integer to BCD" If ((F64 == 0x01)) { M302 (__METHOD__, 0x0C, "p352", P352, P353, 0x05) M302 (__METHOD__, 0x0A, "p354", P354, P355, 0x05) } Else { M302 (__METHOD__, 0x0C, "p352", P352, P353, 0x05) } } Method (BCD2, 0, Serialized) { Debug = "TEST: BCD2, Convert BCD To Integer" If ((F64 == 0x01)) { M302 (__METHOD__, 0x0C, "p353", P353, P352, 0x06) M302 (__METHOD__, 0x0A, "p355", P355, P354, 0x06) } Else { M302 (__METHOD__, 0x0C, "p353", P353, P352, 0x06) } } /* Run-method */ Method (BCD0, 0, NotSerialized) { BCD1 () BCD2 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/touuid.asl0000700000175000017500000000553714773714156031501 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation */ /* Convert String to UUID Macro */ Name (P356, Package (0x02) { Buffer (0x10) { /* 0000 */ 0x3D, 0x2C, 0x1B, 0x0A, 0x5F, 0x4E, 0x71, 0x60, // =,.._Nq` /* 0008 */ 0x82, 0x93, 0xA4, 0xB5, 0xC6, 0xD7, 0xE8, 0xF9 // ........ }, Buffer (0x10) { /* 0000 */ 0xD3, 0xC2, 0xB1, 0xA0, 0xF5, 0xE4, 0x17, 0x06, // ........ /* 0008 */ 0x28, 0x39, 0x4A, 0x5B, 0x6C, 0x7D, 0x8E, 0x9F // (9J[l}.. } }) Name (P357, Package (0x02) { Buffer (0x10) { /* 0000 */ 0x3D, 0x2C, 0x1B, 0x0A, 0x5F, 0x4E, 0x71, 0x60, // =,.._Nq` /* 0008 */ 0x82, 0x93, 0xA4, 0xB5, 0xC6, 0xD7, 0xE8, 0xF9 // ........ }, Buffer (0x10) { /* 0000 */ 0xD3, 0xC2, 0xB1, 0xA0, 0xF5, 0xE4, 0x17, 0x06, // ........ /* 0008 */ 0x28, 0x39, 0x4A, 0x5B, 0x6C, 0x7D, 0x8E, 0x9F // (9J[l}.. } }) /* Run-method */ Method (TOU0, 0, Serialized) { Debug = "TEST: TOU0, Convert String to UUID Macro" M302 (__METHOD__, 0x02, "p356", P356, P357, 0x07) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/manipulation/mid.asl0000700000175000017500000004137614773714156030742 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Data type conversion and manipulation * * Extract Portion of Buffer or String */ Name (Z039, 0x27) Name (S200, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") /* Verifying 3-parameters, 1-result operator */ Method (M304, 6, Serialized) { Local5 = 0x00 Local3 = Arg1 While (Local3) { /* Operands */ Local6 = (Local5 * 0x03) Local0 = DerefOf (Arg3 [Local6]) Local6++ Local1 = DerefOf (Arg3 [Local6]) Local6++ Local4 = DerefOf (Arg3 [Local6]) /* Expected result */ Local2 = DerefOf (Arg4 [Local5]) Switch (ToInteger (Arg5)) { Case (0x00) { Mid (Local0, Local1, Local4, Local7) If ((Local7 != Local2)) { ERR (Arg0, Z039, __LINE__, 0x00, 0x00, Local5, Arg2) } } Case (0x01) { Mid (S200, Local1, Local4, Local7) If ((Local7 != Local2)) { ERR (Arg0, Z039, __LINE__, 0x00, 0x00, Local5, Arg2) } } } Local5++ Local3-- } } /* String */ Name (P362, Package (0x2A) { /* Length > 0 */ "0123456789a", 0x00, 0x06, /* Index == 0, Index + Length < Size */ "0123456789a", 0x03, 0x07, /* Index < Size, Index + Length < Size */ "0123456789a", 0x05, 0x06, /* Index < Size, Index + Length == Size */ "0123456789a", 0x00, 0x0B, /* Index == 0, Index + Length == Size */ "0123456789a", 0x08, 0x08, /* Index < Size, Index + Length > Size */ "0123456789a", 0x0B, 0x03, /* Index == Size */ "0123456789a", 0x0E, 0x01, /* Index > Size */ "0123456789a", 0x00, 0x0E, /* Index == 0, Length > Size */ /* Length == 0 */ "0123456789a", 0x00, 0x00, /* Index == 0 */ "0123456789a", 0x05, 0x00, /* Index < Size */ "0123456789a", 0x0B, 0x00, /* Index == Size */ "0123456789a", 0x0F, 0x00, /* Index > Size */ /* Size == 0 */ "", 0x00, 0x01, "", 0x012C, 0x012C }) Name (P363, Package (0x0E) { "012345", "3456789", "56789a", "0123456789a", "89a", "", "", "0123456789a", "", "", "", "", "", "" }) /* String, Size == 200, Length > 0 */ Name (P364, Package (0x18) { 0x00, 0x00, 0x7D, /* Index == 0, Index + Length < Size */ 0x00, 0x43, 0x43, /* Index < Size, Index + Length < Size */ 0x00, 0x5D, 0x6B, /* Index < Size, Index + Length == Size */ 0x00, 0x00, 0xC8, /* Index == 0, Index + Length == Size */ 0x00, 0x7F, 0x64, /* Index < Size, Index + Length > Size */ 0x00, 0xC8, 0x03, /* Index == Size */ 0x00, 0xD6, 0x01, /* Index > Size */ 0x00, 0x00, 0xC9 /* Index == 0, Length > Size */ }) Name (P365, Package (0x08) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>", "defghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFG", "~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", "ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", "", "", "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }) /* Buffer */ Name (P366, Package (0x18) { /* Length > 0 */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x00, 0x06, /* Index == 0, Index + Length < Size */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x03, 0x07, /* Index < Size, Index + Length < Size */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x00, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x03, 0x07, /* Index < Size, Index + Length < Size */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x05, 0x06, /* Index < Size, Index + Length == Size */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x00, 0x0B, /* Index == 0, Index + Length == Size */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x08, 0x08, /* Index < Size, Index + Length > Size */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x00, 0xC9, /* Index == 0, Length > Size */ /* Length > 200 */ Buffer (0xD3) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, // ........ /* 0010 */ 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, // ........ /* 0018 */ 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, // ........ /* 0020 */ 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, // ........ /* 0028 */ 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, // .. !"#$% /* 0030 */ 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, // &'()*+,- /* 0038 */ 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, // ./012345 /* 0040 */ 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, // 6789:;<= /* 0048 */ 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, // >?@ABCDE /* 0050 */ 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, // FGHIJKLM /* 0058 */ 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, // NOPQRSTU /* 0060 */ 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, // VWXYZ[\] /* 0068 */ 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, // ^_`abcde /* 0070 */ 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, // fghijklm /* 0078 */ 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, // nopqrstu /* 0080 */ 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, // vwxyz{|} /* 0088 */ 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, // ~....... /* 0090 */ 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, // ........ /* 0098 */ 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, // ........ /* 00A0 */ 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, // ........ /* 00A8 */ 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, // ........ /* 00B0 */ 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, // ........ /* 00B8 */ 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, // ........ /* 00C0 */ 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, // ........ /* 00C8 */ 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, // ........ /* 00D0 */ 0xC6, 0xC7, 0xC8 // ... }, 0x02, 0xCB }) Name (P367, Package (0x08) { Buffer (0x06) { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05 // ...... }, Buffer (0x07) { 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09 // ....... }, Buffer (0x07) { 0x03, 0x04, 0x05, 0x00, 0x07, 0x08, 0x09 // ....... }, Buffer (0x06) { 0x05, 0x06, 0x07, 0x08, 0x09, 0x00 // ...... }, Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, Buffer (0x03) { 0x08, 0x09, 0x00 // ... }, Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, Buffer (0xCB) { /* 0000 */ 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, // ........ /* 0008 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0010 */ 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, // ........ /* 0018 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, // ........ /* 0020 */ 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, // ........ /* 0028 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, // !"#$%&' /* 0030 */ 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, // ()*+,-./ /* 0038 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, // 01234567 /* 0040 */ 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, // 89:;<=>? /* 0048 */ 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, // @ABCDEFG /* 0050 */ 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, // HIJKLMNO /* 0058 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, // PQRSTUVW /* 0060 */ 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, // XYZ[\]^_ /* 0068 */ 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, // `abcdefg /* 0070 */ 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, // hijklmno /* 0078 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, // pqrstuvw /* 0080 */ 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, // xyz{|}~. /* 0088 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, // ........ /* 0090 */ 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, // ........ /* 0098 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, // ........ /* 00A0 */ 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, // ........ /* 00A8 */ 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, // ........ /* 00B0 */ 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, // ........ /* 00B8 */ 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, // ........ /* 00C0 */ 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, // ........ /* 00C8 */ 0xC0, 0xC1, 0xC2 // ... } }) /* Buffer, Mid() results in Buffer(0){} */ Name (P368, Package (0x12) { /* Length > 0 */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x0B, 0x03, /* Index == Size */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x0E, 0x01, /* Index > Size */ /* Length == 0 */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x00, 0x00, /* Index == 0 */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x00, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x05, 0x00, /* Index < Size */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x0B, 0x00, /* Index == Size */ Buffer (0x0B) { /* 0000 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x00 // ... }, 0x0F, 0x00 /* Index > Size */ }) /* Run-method */ Method (MID0, 0, Serialized) { Debug = "TEST: MID0, Extract Portion of Buffer or String" /* String */ M304 (__METHOD__, 0x0E, "p362", P362, P363, 0x00) /* String, Size == 200, Length > 0 */ M304 (__METHOD__, 0x08, "p364", P364, P365, 0x01) /* Buffer */ M304 (__METHOD__, 0x08, "p366", P366, P367, 0x00) /* Prepare Package of Buffer(0){} elements */ Local5 = Package (0x06){} Local1 = 0x00 Local0 = 0x00 While ((Local0 < 0x06)) { Local5 [Local0] = Buffer (Local1){} Local0++ } /* Buffer, Mid() results in Buffer(0){} */ M304 (__METHOD__, 0x06, "p366", P368, Local5, 0x00) /* Buffer, Mid(Buffer(0){}) */ Mid (Buffer (Local1){}, 0x00, 0x01, Local7) If ((Local7 != Buffer (Local1){})) { ERR (__METHOD__, Z039, __LINE__, 0x00, 0x00, 0x00, "Buffer(0)") } Mid (Buffer (Local1){}, 0x012C, 0x012C, Local7) If ((Local7 != Buffer (Local1){})) { ERR (__METHOD__, Z039, __LINE__, 0x00, 0x00, 0x00, "Buffer(0)") } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/0000700000175000017500000000000014773714155026431 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Recursion/0000700000175000017500000000000014773714155030402 5ustar ivanhuivanhu././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Recursion/stack_overflow.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Recursion/stack_overflow0000700000175000017500000005612314773714155033367 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check stack-overflow exception */ Name(z178, 178) Method(m0fc, 1, Serialized) { Name(ts, "m0fc") Name(i000, 0) Name(i001, 0) // 0 - 99 Method(m000) { CH03(ts, z178, 0x000, __LINE__, 0) Add(i000, 0, i000) m001() } Method(m001) { CH03(ts, z178, 0x001, __LINE__, 0) Add(i000, 1, i000) m002() } Method(m002) { CH03(ts, z178, 0x002, __LINE__, 0) Add(i000, 2, i000) m003() } Method(m003) { CH03(ts, z178, 0x003, __LINE__, 0) Add(i000, 3, i000) m004() } Method(m004) { CH03(ts, z178, 0x004, __LINE__, 0) Add(i000, 4, i000) m005() } Method(m005) { CH03(ts, z178, 0x005, __LINE__, 0) Add(i000, 5, i000) m006() } Method(m006) { CH03(ts, z178, 0x006, __LINE__, 0) Add(i000, 6, i000) m007() } Method(m007) { CH03(ts, z178, 0x007, __LINE__, 0) Add(i000, 7, i000) m008() } Method(m008) { CH03(ts, z178, 0x008, __LINE__, 0) Add(i000, 8, i000) m009() } Method(m009) { CH03(ts, z178, 0x009, __LINE__, 0) Add(i000, 9, i000) m010() } Method(m010) { CH03(ts, z178, 0x010, __LINE__, 0) Add(i000, 10, i000) m011() } Method(m011) { CH03(ts, z178, 0x011, __LINE__, 0) Add(i000, 11, i000) m012() } Method(m012) { CH03(ts, z178, 0x012, __LINE__, 0) Add(i000, 12, i000) m013() } Method(m013) { CH03(ts, z178, 0x013, __LINE__, 0) Add(i000, 13, i000) m014() } Method(m014) { CH03(ts, z178, 0x014, __LINE__, 0) Add(i000, 14, i000) m015() } Method(m015) { CH03(ts, z178, 0x015, __LINE__, 0) Add(i000, 15, i000) m016() } Method(m016) { CH03(ts, z178, 0x016, __LINE__, 0) Add(i000, 16, i000) m017() } Method(m017) { CH03(ts, z178, 0x017, __LINE__, 0) Add(i000, 17, i000) m018() } Method(m018) { CH03(ts, z178, 0x018, __LINE__, 0) Add(i000, 18, i000) m019() } Method(m019) { CH03(ts, z178, 0x019, __LINE__, 0) Add(i000, 19, i000) m020() } Method(m020) { CH03(ts, z178, 0x020, __LINE__, 0) Add(i000, 20, i000) m021() } Method(m021) { CH03(ts, z178, 0x021, __LINE__, 0) Add(i000, 21, i000) m022() } Method(m022) { CH03(ts, z178, 0x022, __LINE__, 0) Add(i000, 22, i000) m023() } Method(m023) { CH03(ts, z178, 0x023, __LINE__, 0) Add(i000, 23, i000) m024() } Method(m024) { CH03(ts, z178, 0x024, __LINE__, 0) Add(i000, 24, i000) m025() } Method(m025) { CH03(ts, z178, 0x025, __LINE__, 0) Add(i000, 25, i000) m026() } Method(m026) { CH03(ts, z178, 0x026, __LINE__, 0) Add(i000, 26, i000) m027() } Method(m027) { CH03(ts, z178, 0x027, __LINE__, 0) Add(i000, 27, i000) m028() } Method(m028) { CH03(ts, z178, 0x028, __LINE__, 0) Add(i000, 28, i000) m029() } Method(m029) { CH03(ts, z178, 0x029, __LINE__, 0) Add(i000, 29, i000) m030() } Method(m030) { CH03(ts, z178, 0x030, __LINE__, 0) Add(i000, 30, i000) m031() } Method(m031) { CH03(ts, z178, 0x031, __LINE__, 0) Add(i000, 31, i000) m032() } Method(m032) { CH03(ts, z178, 0x032, __LINE__, 0) Add(i000, 32, i000) m033() } Method(m033) { CH03(ts, z178, 0x033, __LINE__, 0) Add(i000, 33, i000) m034() } Method(m034) { CH03(ts, z178, 0x034, __LINE__, 0) Add(i000, 34, i000) m035() } Method(m035) { CH03(ts, z178, 0x035, __LINE__, 0) Add(i000, 35, i000) m036() } Method(m036) { CH03(ts, z178, 0x036, __LINE__, 0) Add(i000, 36, i000) m037() } Method(m037) { CH03(ts, z178, 0x037, __LINE__, 0) Add(i000, 37, i000) m038() } Method(m038) { CH03(ts, z178, 0x038, __LINE__, 0) Add(i000, 38, i000) m039() } Method(m039) { CH03(ts, z178, 0x039, __LINE__, 0) Add(i000, 39, i000) m040() } Method(m040) { CH03(ts, z178, 0x040, __LINE__, 0) Add(i000, 40, i000) m041() } Method(m041) { CH03(ts, z178, 0x041, __LINE__, 0) Add(i000, 41, i000) m042() } Method(m042) { CH03(ts, z178, 0x042, __LINE__, 0) Add(i000, 42, i000) m043() } Method(m043) { CH03(ts, z178, 0x043, __LINE__, 0) Add(i000, 43, i000) m044() } Method(m044) { CH03(ts, z178, 0x044, __LINE__, 0) Add(i000, 44, i000) m045() } Method(m045) { CH03(ts, z178, 0x045, __LINE__, 0) Add(i000, 45, i000) m046() } Method(m046) { CH03(ts, z178, 0x046, __LINE__, 0) Add(i000, 46, i000) m047() } Method(m047) { CH03(ts, z178, 0x047, __LINE__, 0) Add(i000, 47, i000) m048() } Method(m048) { CH03(ts, z178, 0x048, __LINE__, 0) Add(i000, 48, i000) m049() } Method(m049) { CH03(ts, z178, 0x049, __LINE__, 0) Add(i000, 49, i000) m050() } Method(m050) { CH03(ts, z178, 0x050, __LINE__, 0) Add(i000, 50, i000) m051() } Method(m051) { CH03(ts, z178, 0x051, __LINE__, 0) Add(i000, 51, i000) m052() } Method(m052) { CH03(ts, z178, 0x052, __LINE__, 0) Add(i000, 52, i000) m053() } Method(m053) { CH03(ts, z178, 0x053, __LINE__, 0) Add(i000, 53, i000) m054() } Method(m054) { CH03(ts, z178, 0x054, __LINE__, 0) Add(i000, 54, i000) m055() } Method(m055) { CH03(ts, z178, 0x055, __LINE__, 0) Add(i000, 55, i000) m056() } Method(m056) { CH03(ts, z178, 0x056, __LINE__, 0) Add(i000, 56, i000) m057() } Method(m057) { CH03(ts, z178, 0x057, __LINE__, 0) Add(i000, 57, i000) m058() } Method(m058) { CH03(ts, z178, 0x058, __LINE__, 0) Add(i000, 58, i000) m059() } Method(m059) { CH03(ts, z178, 0x059, __LINE__, 0) Add(i000, 59, i000) m060() } Method(m060) { CH03(ts, z178, 0x060, __LINE__, 0) Add(i000, 60, i000) m061() } Method(m061) { CH03(ts, z178, 0x061, __LINE__, 0) Add(i000, 61, i000) m062() } Method(m062) { CH03(ts, z178, 0x062, __LINE__, 0) Add(i000, 62, i000) m063() } Method(m063) { CH03(ts, z178, 0x063, __LINE__, 0) Add(i000, 63, i000) m064() } Method(m064) { CH03(ts, z178, 0x064, __LINE__, 0) Add(i000, 64, i000) m065() } Method(m065) { CH03(ts, z178, 0x065, __LINE__, 0) Add(i000, 65, i000) m066() } Method(m066) { CH03(ts, z178, 0x066, __LINE__, 0) Add(i000, 66, i000) m067() } Method(m067) { CH03(ts, z178, 0x067, __LINE__, 0) Add(i000, 67, i000) m068() } Method(m068) { CH03(ts, z178, 0x068, __LINE__, 0) Add(i000, 68, i000) m069() } Method(m069) { CH03(ts, z178, 0x069, __LINE__, 0) Add(i000, 69, i000) m070() } Method(m070) { CH03(ts, z178, 0x070, __LINE__, 0) Add(i000, 70, i000) m071() } Method(m071) { CH03(ts, z178, 0x071, __LINE__, 0) Add(i000, 71, i000) m072() } Method(m072) { CH03(ts, z178, 0x072, __LINE__, 0) Add(i000, 72, i000) m073() } Method(m073) { CH03(ts, z178, 0x073, __LINE__, 0) Add(i000, 73, i000) m074() } Method(m074) { CH03(ts, z178, 0x074, __LINE__, 0) Add(i000, 74, i000) m075() } Method(m075) { CH03(ts, z178, 0x075, __LINE__, 0) Add(i000, 75, i000) m076() } Method(m076) { CH03(ts, z178, 0x076, __LINE__, 0) Add(i000, 76, i000) m077() } Method(m077) { CH03(ts, z178, 0x077, __LINE__, 0) Add(i000, 77, i000) m078() } Method(m078) { CH03(ts, z178, 0x078, __LINE__, 0) Add(i000, 78, i000) m079() } Method(m079) { CH03(ts, z178, 0x079, __LINE__, 0) Add(i000, 79, i000) m080() } Method(m080) { CH03(ts, z178, 0x080, __LINE__, 0) Add(i000, 80, i000) m081() } Method(m081) { CH03(ts, z178, 0x081, __LINE__, 0) Add(i000, 81, i000) m082() } Method(m082) { CH03(ts, z178, 0x082, __LINE__, 0) Add(i000, 82, i000) m083() } Method(m083) { CH03(ts, z178, 0x083, __LINE__, 0) Add(i000, 83, i000) m084() } Method(m084) { CH03(ts, z178, 0x084, __LINE__, 0) Add(i000, 84, i000) m085() } Method(m085) { CH03(ts, z178, 0x085, __LINE__, 0) Add(i000, 85, i000) m086() } Method(m086) { CH03(ts, z178, 0x086, __LINE__, 0) Add(i000, 86, i000) m087() } Method(m087) { CH03(ts, z178, 0x087, __LINE__, 0) Add(i000, 87, i000) m088() } Method(m088) { CH03(ts, z178, 0x088, __LINE__, 0) Add(i000, 88, i000) m089() } Method(m089) { CH03(ts, z178, 0x089, __LINE__, 0) Add(i000, 89, i000) m090() } Method(m090) { CH03(ts, z178, 0x090, __LINE__, 0) Add(i000, 90, i000) m091() } Method(m091) { CH03(ts, z178, 0x091, __LINE__, 0) Add(i000, 91, i000) m092() } Method(m092) { CH03(ts, z178, 0x092, __LINE__, 0) Add(i000, 92, i000) m093() } Method(m093) { CH03(ts, z178, 0x093, __LINE__, 0) Add(i000, 93, i000) m094() } Method(m094) { CH03(ts, z178, 0x094, __LINE__, 0) Add(i000, 94, i000) m095() } Method(m095) { CH03(ts, z178, 0x095, __LINE__, 0) Add(i000, 95, i000) m096() } Method(m096) { CH03(ts, z178, 0x096, __LINE__, 0) Add(i000, 96, i000) m097() } Method(m097) { CH03(ts, z178, 0x097, __LINE__, 0) Add(i000, 97, i000) m098() } Method(m098) { CH03(ts, z178, 0x098, __LINE__, 0) Add(i000, 98, i000) m099() } Method(m099) { CH03(ts, z178, 0x099, __LINE__, 0) Add(i000, 99, i000) m100() } // 100 - 199 Method(m100) { CH03(ts, z178, 0x100, __LINE__, 0) Add(i000, 100, i000) m101() } Method(m101) { CH03(ts, z178, 0x101, __LINE__, 0) Add(i000, 101, i000) m102() } Method(m102) { CH03(ts, z178, 0x102, __LINE__, 0) Add(i000, 102, i000) m103() } Method(m103) { CH03(ts, z178, 0x103, __LINE__, 0) Add(i000, 103, i000) m104() } Method(m104) { CH03(ts, z178, 0x104, __LINE__, 0) Add(i000, 104, i000) m105() } Method(m105) { CH03(ts, z178, 0x105, __LINE__, 0) Add(i000, 105, i000) m106() } Method(m106) { CH03(ts, z178, 0x106, __LINE__, 0) Add(i000, 106, i000) m107() } Method(m107) { CH03(ts, z178, 0x107, __LINE__, 0) Add(i000, 107, i000) m108() } Method(m108) { CH03(ts, z178, 0x108, __LINE__, 0) Add(i000, 108, i000) m109() } Method(m109) { CH03(ts, z178, 0x109, __LINE__, 0) Add(i000, 109, i000) m110() } Method(m110) { CH03(ts, z178, 0x110, __LINE__, 0) Add(i000, 110, i000) m111() } Method(m111) { CH03(ts, z178, 0x111, __LINE__, 0) Add(i000, 111, i000) m112() } Method(m112) { CH03(ts, z178, 0x112, __LINE__, 0) Add(i000, 112, i000) m113() } Method(m113) { CH03(ts, z178, 0x113, __LINE__, 0) Add(i000, 113, i000) m114() } Method(m114) { CH03(ts, z178, 0x114, __LINE__, 0) Add(i000, 114, i000) m115() } Method(m115) { CH03(ts, z178, 0x115, __LINE__, 0) Add(i000, 115, i000) m116() } Method(m116) { CH03(ts, z178, 0x116, __LINE__, 0) Add(i000, 116, i000) m117() } Method(m117) { CH03(ts, z178, 0x117, __LINE__, 0) Add(i000, 117, i000) m118() } Method(m118) { CH03(ts, z178, 0x118, __LINE__, 0) Add(i000, 118, i000) m119() } Method(m119) { CH03(ts, z178, 0x119, __LINE__, 0) Add(i000, 119, i000) m120() } Method(m120) { CH03(ts, z178, 0x120, __LINE__, 0) Add(i000, 120, i000) m121() } Method(m121) { CH03(ts, z178, 0x121, __LINE__, 0) Add(i000, 121, i000) m122() } Method(m122) { CH03(ts, z178, 0x122, __LINE__, 0) Add(i000, 122, i000) m123() } Method(m123) { CH03(ts, z178, 0x123, __LINE__, 0) Add(i000, 123, i000) m124() } Method(m124) { CH03(ts, z178, 0x124, __LINE__, 0) Add(i000, 124, i000) m125() } Method(m125) { CH03(ts, z178, 0x125, __LINE__, 0) Add(i000, 125, i000) m126() } Method(m126) { CH03(ts, z178, 0x126, __LINE__, 0) Add(i000, 126, i000) m127() } Method(m127) { CH03(ts, z178, 0x127, __LINE__, 0) Add(i000, 127, i000) m128() } Method(m128) { CH03(ts, z178, 0x128, __LINE__, 0) Add(i000, 128, i000) m129() } Method(m129) { CH03(ts, z178, 0x129, __LINE__, 0) Add(i000, 129, i000) m130() } Method(m130) { CH03(ts, z178, 0x130, __LINE__, 0) Add(i000, 130, i000) m131() } Method(m131) { CH03(ts, z178, 0x131, __LINE__, 0) Add(i000, 131, i000) m132() } Method(m132) { CH03(ts, z178, 0x132, __LINE__, 0) Add(i000, 132, i000) m133() } Method(m133) { CH03(ts, z178, 0x133, __LINE__, 0) Add(i000, 133, i000) m134() } Method(m134) { CH03(ts, z178, 0x134, __LINE__, 0) Add(i000, 134, i000) m135() } Method(m135) { CH03(ts, z178, 0x135, __LINE__, 0) Add(i000, 135, i000) m136() } Method(m136) { CH03(ts, z178, 0x136, __LINE__, 0) Add(i000, 136, i000) m137() } Method(m137) { CH03(ts, z178, 0x137, __LINE__, 0) Add(i000, 137, i000) m138() } Method(m138) { CH03(ts, z178, 0x138, __LINE__, 0) Add(i000, 138, i000) m139() } Method(m139) { CH03(ts, z178, 0x139, __LINE__, 0) Add(i000, 139, i000) m140() } Method(m140) { CH03(ts, z178, 0x140, __LINE__, 0) Add(i000, 140, i000) m141() } Method(m141) { CH03(ts, z178, 0x141, __LINE__, 0) Add(i000, 141, i000) m142() } Method(m142) { CH03(ts, z178, 0x142, __LINE__, 0) Add(i000, 142, i000) m143() } Method(m143) { CH03(ts, z178, 0x143, __LINE__, 0) Add(i000, 143, i000) m144() } Method(m144) { CH03(ts, z178, 0x144, __LINE__, 0) Add(i000, 144, i000) m145() } Method(m145) { CH03(ts, z178, 0x145, __LINE__, 0) Add(i000, 145, i000) m146() } Method(m146) { CH03(ts, z178, 0x146, __LINE__, 0) Add(i000, 146, i000) m147() } Method(m147) { CH03(ts, z178, 0x147, __LINE__, 0) Add(i000, 147, i000) m148() } Method(m148) { CH03(ts, z178, 0x148, __LINE__, 0) Add(i000, 148, i000) m149() } Method(m149) { CH03(ts, z178, 0x149, __LINE__, 0) Add(i000, 149, i000) m150() } Method(m150) { CH03(ts, z178, 0x150, __LINE__, 0) Add(i000, 150, i000) m151() } Method(m151) { CH03(ts, z178, 0x151, __LINE__, 0) Add(i000, 151, i000) m152() } Method(m152) { CH03(ts, z178, 0x152, __LINE__, 0) Add(i000, 152, i000) m153() } Method(m153) { CH03(ts, z178, 0x153, __LINE__, 0) Add(i000, 153, i000) m154() } Method(m154) { CH03(ts, z178, 0x154, __LINE__, 0) Add(i000, 154, i000) m155() } Method(m155) { CH03(ts, z178, 0x155, __LINE__, 0) Add(i000, 155, i000) m156() } Method(m156) { CH03(ts, z178, 0x156, __LINE__, 0) Add(i000, 156, i000) m157() } Method(m157) { CH03(ts, z178, 0x157, __LINE__, 0) Add(i000, 157, i000) m158() } Method(m158) { CH03(ts, z178, 0x158, __LINE__, 0) Add(i000, 158, i000) m159() } Method(m159) { CH03(ts, z178, 0x159, __LINE__, 0) Add(i000, 159, i000) m160() } Method(m160) { CH03(ts, z178, 0x160, __LINE__, 0) Add(i000, 160, i000) m161() } Method(m161) { CH03(ts, z178, 0x161, __LINE__, 0) Add(i000, 161, i000) m162() } Method(m162) { CH03(ts, z178, 0x162, __LINE__, 0) Add(i000, 162, i000) m163() } Method(m163) { CH03(ts, z178, 0x163, __LINE__, 0) Add(i000, 163, i000) m164() } Method(m164) { CH03(ts, z178, 0x164, __LINE__, 0) Add(i000, 164, i000) m165() } Method(m165) { CH03(ts, z178, 0x165, __LINE__, 0) Add(i000, 165, i000) m166() } Method(m166) { CH03(ts, z178, 0x166, __LINE__, 0) Add(i000, 166, i000) m167() } Method(m167) { CH03(ts, z178, 0x167, __LINE__, 0) Add(i000, 167, i000) m168() } Method(m168) { CH03(ts, z178, 0x168, __LINE__, 0) Add(i000, 168, i000) m169() } Method(m169) { CH03(ts, z178, 0x169, __LINE__, 0) Add(i000, 169, i000) m170() } Method(m170) { CH03(ts, z178, 0x170, __LINE__, 0) Add(i000, 170, i000) m171() } Method(m171) { CH03(ts, z178, 0x171, __LINE__, 0) Add(i000, 171, i000) m172() } Method(m172) { CH03(ts, z178, 0x172, __LINE__, 0) Add(i000, 172, i000) m173() } Method(m173) { CH03(ts, z178, 0x173, __LINE__, 0) Add(i000, 173, i000) m174() } Method(m174) { CH03(ts, z178, 0x174, __LINE__, 0) Add(i000, 174, i000) m175() } Method(m175) { CH03(ts, z178, 0x175, __LINE__, 0) Add(i000, 175, i000) m176() } Method(m176) { CH03(ts, z178, 0x176, __LINE__, 0) Add(i000, 176, i000) m177() } Method(m177) { CH03(ts, z178, 0x177, __LINE__, 0) Add(i000, 177, i000) m178() } Method(m178) { CH03(ts, z178, 0x178, __LINE__, 0) Add(i000, 178, i000) m179() } Method(m179) { CH03(ts, z178, 0x179, __LINE__, 0) Add(i000, 179, i000) m180() } Method(m180) { CH03(ts, z178, 0x180, __LINE__, 0) Add(i000, 180, i000) m181() } Method(m181) { CH03(ts, z178, 0x181, __LINE__, 0) Add(i000, 181, i000) m182() } Method(m182) { CH03(ts, z178, 0x182, __LINE__, 0) Add(i000, 182, i000) m183() } Method(m183) { CH03(ts, z178, 0x183, __LINE__, 0) Add(i000, 183, i000) m184() } Method(m184) { CH03(ts, z178, 0x184, __LINE__, 0) Add(i000, 184, i000) m185() } Method(m185) { CH03(ts, z178, 0x185, __LINE__, 0) Add(i000, 185, i000) m186() } Method(m186) { CH03(ts, z178, 0x186, __LINE__, 0) Add(i000, 186, i000) m187() } Method(m187) { CH03(ts, z178, 0x187, __LINE__, 0) Add(i000, 187, i000) m188() } Method(m188) { CH03(ts, z178, 0x188, __LINE__, 0) Add(i000, 188, i000) m189() } Method(m189) { CH03(ts, z178, 0x189, __LINE__, 0) Add(i000, 189, i000) m190() } Method(m190) { CH03(ts, z178, 0x190, __LINE__, 0) Add(i000, 190, i000) m191() } Method(m191) { CH03(ts, z178, 0x191, __LINE__, 0) Add(i000, 191, i000) m192() } Method(m192) { CH03(ts, z178, 0x192, __LINE__, 0) Add(i000, 192, i000) m193() } Method(m193) { CH03(ts, z178, 0x193, __LINE__, 0) Add(i000, 193, i000) m194() } Method(m194) { CH03(ts, z178, 0x194, __LINE__, 0) Add(i000, 194, i000) m195() } Method(m195) { CH03(ts, z178, 0x195, __LINE__, 0) Add(i000, 195, i000) m196() } Method(m196) { CH03(ts, z178, 0x196, __LINE__, 0) Add(i000, 196, i000) m197() } Method(m197) { CH03(ts, z178, 0x197, __LINE__, 0) Add(i000, 197, i000) m198() } Method(m198) { CH03(ts, z178, 0x198, __LINE__, 0) Add(i000, 198, i000) m199() } Method(m199) { CH03(ts, z178, 0x199, __LINE__, 0) Add(i000, 199, i000) m200() } // 200 - 299 Method(m200) { CH03(ts, z178, 0x200, __LINE__, 0) Add(i000, 200, i000) m201() } Method(m201) { CH03(ts, z178, 0x201, __LINE__, 0) Add(i000, 201, i000) m202() } Method(m202) { CH03(ts, z178, 0x202, __LINE__, 0) Add(i000, 202, i000) m203() } Method(m203) { CH03(ts, z178, 0x203, __LINE__, 0) Add(i000, 203, i000) m204() } Method(m204) { CH03(ts, z178, 0x204, __LINE__, 0) Add(i000, 204, i000) m205() } Method(m205) { CH03(ts, z178, 0x205, __LINE__, 0) Add(i000, 205, i000) m206() } Method(m206) { CH03(ts, z178, 0x206, __LINE__, 0) Add(i000, 206, i000) m207() } Method(m207) { CH03(ts, z178, 0x207, __LINE__, 0) Add(i000, 207, i000) m208() } Method(m208) { CH03(ts, z178, 0x208, __LINE__, 0) Add(i000, 208, i000) m209() } Method(m209) { CH03(ts, z178, 0x209, __LINE__, 0) Add(i000, 209, i000) m210() } Method(m210) { CH03(ts, z178, 0x210, __LINE__, 0) Add(i000, 210, i000) m211() } Method(m211) { CH03(ts, z178, 0x211, __LINE__, 0) Add(i000, 211, i000) m212() } Method(m212) { CH03(ts, z178, 0x212, __LINE__, 0) Add(i000, 212, i000) m213() } Method(m213) { CH03(ts, z178, 0x213, __LINE__, 0) Add(i000, 213, i000) m214() } Method(m214) { CH03(ts, z178, 0x214, __LINE__, 0) Add(i000, 214, i000) m215() } Method(m215) { CH03(ts, z178, 0x215, __LINE__, 0) Add(i000, 215, i000) m216() } Method(m216) { CH03(ts, z178, 0x216, __LINE__, 0) Add(i000, 216, i000) m217() } Method(m217) { CH03(ts, z178, 0x217, __LINE__, 0) Add(i000, 217, i000) m218() } Method(m218) { CH03(ts, z178, 0x218, __LINE__, 0) Add(i000, 218, i000) m219() } Method(m219) { CH03(ts, z178, 0x219, __LINE__, 0) Add(i000, 219, i000) m220() } Method(m220) { CH03(ts, z178, 0x220, __LINE__, 0) Add(i000, 220, i000) m221() } Method(m221) { CH03(ts, z178, 0x221, __LINE__, 0) Add(i000, 221, i000) m222() } Method(m222) { CH03(ts, z178, 0x222, __LINE__, 0) Add(i000, 222, i000) m223() } Method(m223) { CH03(ts, z178, 0x223, __LINE__, 0) Add(i000, 223, i000) m224() } Method(m224) { CH03(ts, z178, 0x224, __LINE__, 0) Add(i000, 224, i000) m225() } Method(m225) { CH03(ts, z178, 0x225, __LINE__, 0) Add(i000, 225, i000) m226() } Method(m226) { CH03(ts, z178, 0x226, __LINE__, 0) Add(i000, 226, i000) m227() } Method(m227) { CH03(ts, z178, 0x227, __LINE__, 0) Add(i000, 227, i000) m228() } Method(m228) { CH03(ts, z178, 0x228, __LINE__, 0) Add(i000, 228, i000) m229() } Method(m229) { CH03(ts, z178, 0x229, __LINE__, 0) Add(i000, 229, i000) m230() } Method(m230) { CH03(ts, z178, 0x230, __LINE__, 0) Add(i000, 230, i000) m231() } Method(m231) { CH03(ts, z178, 0x231, __LINE__, 0) Add(i000, 231, i000) m232() } Method(m232) { CH03(ts, z178, 0x232, __LINE__, 0) Add(i000, 232, i000) m233() } Method(m233) { CH03(ts, z178, 0x233, __LINE__, 0) Add(i000, 233, i000) m234() } Method(m234) { CH03(ts, z178, 0x234, __LINE__, 0) Add(i000, 234, i000) m235() } Method(m235) { CH03(ts, z178, 0x235, __LINE__, 0) Add(i000, 235, i000) m236() } Method(m236) { CH03(ts, z178, 0x236, __LINE__, 0) Add(i000, 236, i000) m237() } Method(m237) { CH03(ts, z178, 0x237, __LINE__, 0) Add(i000, 237, i000) m238() } Method(m238) { CH03(ts, z178, 0x238, __LINE__, 0) Add(i000, 238, i000) m239() } Method(m239) { CH03(ts, z178, 0x239, __LINE__, 0) Add(i000, 239, i000) m240() } Method(m240) { CH03(ts, z178, 0x240, __LINE__, 0) Add(i000, 240, i000) m241() } Method(m241) { CH03(ts, z178, 0x241, __LINE__, 0) Add(i000, 241, i000) m242() } Method(m242) { CH03(ts, z178, 0x242, __LINE__, 0) Add(i000, 242, i000) m243() } Method(m243) { CH03(ts, z178, 0x243, __LINE__, 0) Add(i000, 243, i000) m244() } Method(m244) { CH03(ts, z178, 0x244, __LINE__, 0) Add(i000, 244, i000) m245() } Method(m245) { CH03(ts, z178, 0x245, __LINE__, 0) Add(i000, 245, i000) m246() } /* * We should take into account there how many method * calls precede invocation of this test method m0fc. * So, when we run MN00 or MN01 (but not immediately MAIN) * the number of preceding method calls is greater by 1. * So, in that case, the number of calls in m0fc should * be less by 1. */ Method(m246) { CH03(ts, z178, 0x246, __LINE__, 0) Add(i000, 246, i000) if (LNot(MLVL)) { m247() } elseif (i001) { // To cause AE_AML_METHOD_LIMIT exception m247() } } Method(m247) { CH03(ts, z178, 0x247, __LINE__, 0) Add(i000, 247, i000) if (i001) { // To cause AE_AML_METHOD_LIMIT exception m248() } } Method(m248) { CH03(ts, z178, 0x248, __LINE__, 0) Add(i000, 248, i000) } CH03(ts, z178, 0x300, __LINE__, 0) Store(arg0, i001) m000() if (arg0) { CH04(ts, 0, 86, z178, __LINE__, 0, 0) // AE_OWNER_ID_LIMIT } else { CH03(ts, z178, 0x302, __LINE__, 0) if (MLVL) { Store(0x76AD, Local0) } else { Store(0x77A4, Local0) } if (LNotEqual(i000, Local0)) { err(ts, z178, __LINE__, 0, 0, i000, Local0) } } } Method(m0fe, 1, Serialized) { Name(ts, "m0fe") Name(i000, 0) Name(i001, 0) Name(max0, 246) Method(m000) { CH03(ts, z178, 0x400, __LINE__, 0) Store(max0, Local0) if (i001) { Increment(Local0) } Increment(i000) if (LLessEqual(i000, Local0)) { m000() } } CH03(ts, z178, 0x401, __LINE__, 0) Store(arg0, i001) m000() if (arg0) { CH04(ts, 0, 84, z178, __LINE__, 0, 0) // AE_AML_METHOD_LIMIT } else { CH03(ts, z178, 0x403, __LINE__, 0) if (LNotEqual(i000, 0xf7)) { err(ts, z178, __LINE__, 0, 0, i000, 0xf7) } } } Method(m0fd) { /* SRMT("m0fe-0") m0fe(0) return */ SRMT("m0fc-0") m0fc(0) SRMT("m0fc-1") if (y527) { m0fc(1) } else { BLCK() } SRMT("m0fe-0") m0fe(0) SRMT("m0fe-1") if (y200) { m0fe(1) } else { BLCK() } CH03("m0fd", z178, 0x405, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Recursion/recursion.asl0000700000175000017500000013475314773714155033134 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check recursive calls to methods * * recursively called methods may have internal NS objects and Switch operations */ Name(z177, 177) /* * Simplest example of recursive calls of methods * not overburden with the additional checkings. * * When the method m100 is invoked last time (44-th invocation), * we have there the following hierarchy of method calls - 45 method * invocations in progress: * * m100 ... * m200 ... ... * m300 ... ... ... ... * m400 ... ... ... ... ... ... ... ... * * The sequence of invocations is this: * * m100 0,22,44 * m200 1,11,21 23,33,43 * m300 2, 6,10 12,16,20 24,28,32 34,38,42 * m400 3, 4, 5 7, 8, 9 13,14,15 17,18,19 25,26,27 29,30,31 35,36,37 39,40,41 */ Method(m0ef,, Serialized) { Name(ts, "m0ef") Name(rpt0, 0) /* * Total number of calls of the same Recursively Called method (RCM), * the first call is counted there too. */ Name(n000, 3) Name(cnt0, 0) // how many methods are in progress simultaneously Name(max0, 0) // maximal number of methods being in progress simultaneously /* * Open method execution * * arg0 - ID of method (1,2,3...) * arg1 - the message to be reported */ Method(m800, 2) { if (rpt0) { Store(arg1, Debug) } Increment(cnt0) if (LGreater(cnt0, max0)) { Store(cnt0, max0) } } /* * Close method execution * * arg0 - ID of method (1,2,3...) */ Method(m801, 1) { Decrement(cnt0) } /* * Arguments of methods: * arg0 - 0 - the first call, otherwise - recursive calls */ Name(c000, 3) Method(m100,, Serialized) { Name(c100, 3) Method(m200,, Serialized) { Name(c200, 3) Method(m300,, Serialized) { Name(c300, 3) Method(m400) { m800(4, "m400") Decrement(c300) if (LEqual(c300, 0)) { m300() } else { m400() } m801(4) } m800(3, "m300") Decrement(c200) if (LEqual(c200, 0)) { m200() } else { m400() } m801(3) } m800(2, "m200") Decrement(c100) if (LEqual(c100, 0)) { m100() } else { m300() } m801(2) } m800(1, "m100") Decrement(c000) if (LEqual(c000, 0)) { // m000() } else { m200() } m801(1) } CH03(ts, z177, 0x000, __LINE__, 0) m100() Concatenate("Maximal number of methods being in progress simultaneously ", max0, Debug) /* Check Maximal number of methods being in progress simultaneously */ if (LNotEqual(max0, 45)) { err(ts, z177, __LINE__, 0, 0, max0, 45) } /* Overall got out of methods the same number as got into methods */ if (LNotEqual(cnt0, 0)) { err(ts, z177, __LINE__, 0, 0, cnt0, 0) } CH03(ts, z177, 0x003, __LINE__, 0) } /* * The same hierarchy of recursive calls like m0ef * but more checkings added. */ Method(m0fb,, Serialized) { Name(ts, "m0fb") Name(rpt0, 0) /* * Total number of calls of the same Recursively Called method (RCM), * the first call is counted there too. */ Name(n000, 3) Name(cnt0, 0) // how many methods are in progress simultaneously Name(max0, 0) // maximal number of methods being in progress simultaneously Name(cnt1, 0) // summary of total indexes Name(ix00, 0) // total index of current call Name(ind1, 0) // index of call to m100 Name(ind2, 0) // index of call to m200 Name(ind3, 0) // index of call to m300 Name(ind4, 0) // index of call to m400 Name(n100, 3) // number of calls to m100 Name(n200, 6) // number of calls to m200 Name(n300, 12) // number of calls to m300 Name(n400, 24) // number of calls to m400 Name(p100, Package(n100) {}) // Package to keep total indexes of call to m100 Name(p200, Package(n200) {}) // Package to keep total indexes of call to m200 Name(p300, Package(n300) {}) // Package to keep total indexes of call to m300 Name(p400, Package(n400) {}) // Package to keep total indexes of call to m400 // Benchmarks of indexes Name(b1b0, Buffer(n100) {0,22,44}) Name(b2b0, Buffer(n200) {1,11,21, 23,33,43}) Name(b3b0, Buffer(n300) {2, 6,10, 12,16,20, 24,28,32, 34,38,42}) Name(b4b0, Buffer(n400) {3, 4, 5, 7, 8, 9, 13,14,15, 17,18,19, 25,26,27, 29,30,31, 35,36,37, 39,40,41}) /* * Open method execution * * arg0 - ID of method (1,2,3...) * arg1 - the message to be reported */ Method(m800, 2) { if (rpt0) { Store(arg1, Debug) } Increment(cnt0) if (LGreater(cnt0, max0)) { Store(cnt0, max0) } Switch (arg0) { Case (1) { Store(ix00, Index(p100, ind1)) Increment(ind1) } Case (2) { Store(ix00, Index(p200, ind2)) Increment(ind2) } Case (3) { Store(ix00, Index(p300, ind3)) Increment(ind3) } Case (4) { Store(ix00, Index(p400, ind4)) Increment(ind4) } } Increment(ix00) // total index } /* * Close method execution * * arg0 - ID of method (1,2,3...) */ Method(m801, 1) { Decrement(cnt0) } /* * arg0 - ID of method (1,2,3...) * arg1 - number of elements to be compared * arg2 - Package * arg3 - Package with the benchmark values */ Method(m802, 4) { Name(lpN0, 0) Name(lpC0, 0) Store(arg1, lpN0) Store(0, lpC0) While (lpN0) { Store(DeRefOf(Index(arg2, lpC0)), Local0) Store(DeRefOf(Index(arg3, lpC0)), Local1) if (LNotEqual(Local0, Local1)) { err(ts, z177, __LINE__, 0, 0, Local0, Local1) Store(arg0, Debug) Store(lpC0, Debug) } Decrement(lpN0) Increment(lpC0) } Switch (arg0) { Case (1) { if (LNotEqual(ind1, n100)) { err(ts, z177, __LINE__, 0, 0, ind1, n100) } } Case (2) { if (LNotEqual(ind2, n200)) { err(ts, z177, __LINE__, 0, 0, ind2, n200) } } Case (3) { if (LNotEqual(ind3, n300)) { err(ts, z177, __LINE__, 0, 0, ind3, n300) } } Case (4) { if (LNotEqual(ind4, n400)) { err(ts, z177, __LINE__, 0, 0, ind4, n400) } } } } /* * Arguments of methods: * arg0 - 0 - the first call, otherwise - recursive calls */ Name(c000, 3) Method(m100) { Name(ii00, 0) Name(c100, 3) Method(m200) { Name(ii00, 0) Name(c200, 3) Method(m300) { Name(ii00, 0) Name(c300, 3) Method(m400) { Name(ii00, 0) Store(ind4, ii00) Store(ix00, Local0) m800(4, "m400") Decrement(c300) Switch (c300) { Case (0) { m300() } Default { m400() } } m801(4) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p400, ii00)), ii00) if (LNotEqual(ii00, Local0)) { err(ts, z177, __LINE__, 0, 0, ii00, Local0) } } Store(ind3, ii00) Store(ix00, Local0) m800(3, "m300") Decrement(c200) Switch (c200) { Case (0) { m200() } Default { m400() } } m801(3) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p300, ii00)), ii00) if (LNotEqual(ii00, Local0)) { err(ts, z177, __LINE__, 0, 0, ii00, Local0) } } Store(ind2, ii00) Store(ix00, Local0) m800(2, "m200") Decrement(c100) Switch (c100) { Case (0) { m100() } Default { m300() } } m801(2) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p200, ii00)), ii00) if (LNotEqual(ii00, Local0)) { err(ts, z177, __LINE__, 0, 0, ii00, Local0) } } Store(ind1, ii00) Store(ix00, Local0) m800(1, "m100") Decrement(c000) Switch (c000) { Case (0) { // m000() } Default { m200() } } m801(1) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p100, ii00)), ii00) if (LNotEqual(ii00, Local0)) { err(ts, z177, __LINE__, 0, 0, ii00, Local0) } } CH03(ts, z177, 0x00d, __LINE__, 0) m100() Concatenate("Maximal number of methods being in progress simultaneously ", max0, Debug) /* Check Maximal number of methods being in progress simultaneously */ if (LNotEqual(max0, 45)) { err(ts, z177, __LINE__, 0, 0, max0, 45) } /* Overall got out of methods the same number as got into methods */ if (LNotEqual(cnt0, 0)) { err(ts, z177, __LINE__, 0, 0, cnt0, 0) } /* Check indexes */ m802(1, n100, p100, b1b0) m802(2, n200, p200, b2b0) m802(3, n300, p300, b3b0) m802(4, n400, p400, b4b0) /* Check the overall sum of total indexes */ if (LNotEqual(cnt1, 0x3DE)) { err(ts, z177, __LINE__, 0, 0, cnt1, 0x3DE) } CH03(ts, z177, 0x011, __LINE__, 0) } /* * The same hierarchy of recursive calls like m0ef * but deeper. */ Method(m0ff, 1, Serialized) { Name(ts, "m0ff") Name(rpt0, 0) Name(i000, 0) /* * Total number of calls of the same Recursively Called method (RCM), * the first call is counted there too. */ Name(n000, 3) Name(cnt0, 0) // how many methods are in progress simultaneously Name(max0, 0) // maximal number of methods being in progress simultaneously /* * Open method execution * * arg0 - ID of method (1,2,3...) * arg1 - the message to be reported */ Method(m800, 2) { if (rpt0) { Store(arg1, Debug) } Increment(cnt0) if (LGreater(cnt0, max0)) { Store(cnt0, max0) } } /* * Close method execution * * arg0 - ID of method (1,2,3...) */ Method(m801, 1) { Decrement(cnt0) } /* * Arguments of methods: * arg0 - 0 - the first call, otherwise - recursive calls */ Name(c000, 3) Method(m100,, Serialized) { Name(c100, 3) Method(m200,, Serialized) { Name(c200, 3) Method(m300,, Serialized) { Name(c300, 3) Method(m400,, Serialized) { Name(c400, 3) Method(m500,, Serialized) { Name(c500, 4) Method(m600) { m800(6, "m600") Decrement(c500) if (LEqual(c500, 0)) { m500() } else { m600() } m801(6) } m800(5, "m500") Decrement(c400) if (LEqual(c400, 0)) { m400() } else { m600() } m801(5) } if (i000) { Store(4, c400) } m800(4, "m400") Decrement(c300) if (LEqual(c300, 0)) { m300() } else { m500() } m801(4) } m800(3, "m300") Decrement(c200) if (LEqual(c200, 0)) { m200() } else { m400() } m801(3) } m800(2, "m200") Decrement(c100) if (LEqual(c100, 0)) { m100() } else { m300() } m801(2) } m800(1, "m100") Decrement(c000) if (LEqual(c000, 0)) { // m000() } else { m200() } m801(1) } CH03(ts, z177, 0x012, __LINE__, 0) Store(arg0, i000) m100() if (arg0) { CH04(ts, 0, 84, z177, __LINE__, 0, 0) // AE_AML_METHOD_LIMIT } else { Concatenate("Maximal number of methods being in progress simultaneously ", max0, Debug) /* Check Maximal number of methods being in progress simultaneously */ if (LNotEqual(max0, 221)) { err(ts, z177, __LINE__, 0, 0, max0, 221) } /* Overall got out of methods the same number as got into methods */ if (LNotEqual(cnt0, 0)) { err(ts, z177, __LINE__, 0, 0, cnt0, 0) } } CH03(ts, z177, 0x016, __LINE__, 0) } /* * Similar to m0fb but * all methods are Serialized (0 level all) * and no internal objects (including Methods) or Switches in those Serialized methods * * Check that Serialized method being invoked recursively on the same thread * works well (no exceptions) in case it has none either internal objects * (including Methods) or Switches. */ Method(m18a, 1, Serialized) { Name(ts, "m18a") Name(rpt0, 0) Name(i000, 0) /* * Total number of calls of the same Recursively Called method (RCM), * the first call is counted there too. */ Name(n000, 3) Name(cnt0, 0) // how many methods are in progress simultaneously Name(max0, 0) // maximal number of methods being in progress simultaneously Name(cnt1, 0) // summary of total indexes Name(ix00, 0) // total index of current call Name(ind1, 0) // index of call to m100 Name(ind2, 0) // index of call to m200 Name(ind3, 0) // index of call to m300 Name(ind4, 0) // index of call to m400 Name(n100, 3) // number of calls to m100 Name(n200, 6) // number of calls to m200 Name(n300, 12) // number of calls to m300 Name(n400, 24) // number of calls to m400 Name(p100, Package(n100) {}) // Package to keep total indexes of call to m100 Name(p200, Package(n200) {}) // Package to keep total indexes of call to m200 Name(p300, Package(n300) {}) // Package to keep total indexes of call to m300 Name(p400, Package(0x100) {}) // Package to keep total indexes of call to m400 // Benchmarks of indexes Name(b1b0, Buffer(n100) {0,22,44}) Name(b2b0, Buffer(n200) {1,11,21, 23,33,43}) Name(b3b0, Buffer(n300) {2, 6,10, 12,16,20, 24,28,32, 34,38,42}) Name(b4b0, Buffer(0x100) {3, 4, 5, 7, 8, 9, 13,14,15, 17,18,19, 25,26,27, 29,30,31, 35,36,37, 39,40,41}) /* * Open method execution * * arg0 - ID of method (1,2,3...) * arg1 - the message to be reported */ Method(m800, 2) { if (rpt0) { Store(arg1, Debug) } Increment(cnt0) if (LGreater(cnt0, max0)) { Store(cnt0, max0) } Switch (arg0) { Case (1) { Store(ix00, Index(p100, ind1)) Increment(ind1) } Case (2) { Store(ix00, Index(p200, ind2)) Increment(ind2) } Case (3) { Store(ix00, Index(p300, ind3)) Increment(ind3) } Case (4) { Store(ix00, Index(p400, ind4)) Increment(ind4) } } Increment(ix00) // total index } /* * Close method execution * * arg0 - ID of method (1,2,3...) */ Method(m801, 1) { Decrement(cnt0) } /* * arg0 - ID of method (1,2,3...) * arg1 - number of elements to be compared * arg2 - Package * arg3 - Package with the benchmark values */ Method(m802, 4) { Name(lpN0, 0) Name(lpC0, 0) Store(arg1, lpN0) Store(0, lpC0) While (lpN0) { Store(DeRefOf(Index(arg2, lpC0)), Local0) Store(DeRefOf(Index(arg3, lpC0)), Local1) if (LNotEqual(Local0, Local1)) { err(ts, z177, __LINE__, 0, 0, Local0, Local1) Store(arg0, Debug) Store(lpC0, Debug) } Decrement(lpN0) Increment(lpC0) } Switch (arg0) { Case (1) { if (LNotEqual(ind1, n100)) { err(ts, z177, __LINE__, 0, 0, ind1, n100) } } Case (2) { if (LNotEqual(ind2, n200)) { err(ts, z177, __LINE__, 0, 0, ind2, n200) } } Case (3) { if (LNotEqual(ind3, n300)) { err(ts, z177, __LINE__, 0, 0, ind3, n300) } } Case (4) { if (LNotEqual(ind4, n400)) { err(ts, z177, __LINE__, 0, 0, ind4, n400) } } } } /* * Arguments of methods: * arg0 - 0 - the first call, otherwise - recursive calls */ Name(c000, 3) Name(c100, 3) Name(c200, 3) Name(c300, 3) /* * None internal objects (including Methods) or Switches in Serialized methods below * * Note: if Serialized method has internal objects (including Methods and Switches) * it could not be invoked recursively by the same thread. */ Method(m100, 0, Serialized, 0) { Store(3, c100) Store(ind1, Local1) Store(ix00, Local0) m800(1, "m100") Decrement(c000) if (LEqual(c000, 0)) { // m000() } else { m200() } m801(1) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p100, Local1)), Local1) if (LNotEqual(Local1, Local0)) { err(ts, z177, __LINE__, 0, 0, Local1, Local0) } } Method(m200, 0, Serialized, 0) { Store(3, c200) Store(ind2, Local1) Store(ix00, Local0) m800(2, "m200") Decrement(c100) if (LEqual(c100, 0)) { m100() } else { m300() } m801(2) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p200, Local1)), Local1) if (LNotEqual(Local1, Local0)) { err(ts, z177, __LINE__, 0, 0, Local1, Local0) } } Method(m300, 0, Serialized, 0) { if (i000) { Store(31, c300) } else { Store(3, c300) } Store(ind3, Local1) Store(ix00, Local0) m800(3, "m300") Decrement(c200) if (LEqual(c200, 0)) { m200() } else { m400() } m801(3) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p300, Local1)), Local1) if (LNotEqual(Local1, Local0)) { err(ts, z177, __LINE__, 0, 0, Local1, Local0) } } Method(m400, 0, Serialized, 0) { Store(ind4, Local1) Store(ix00, Local0) m800(4, "m400") Decrement(c300) if (LEqual(c300, 0)) { m300() } else { m400() } m801(4) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p400, Local1)), Local1) if (LNotEqual(Local1, Local0)) { err(ts, z177, __LINE__, 0, 0, Local1, Local0) } } CH03(ts, z177, 0x020, __LINE__, 0) Store(arg0, i000) m100() Concatenate("Maximal number of methods being in progress simultaneously ", max0, Debug) if (arg0) { CH04(ts, 0, 84, z177, __LINE__, 0, 0) // AE_AML_METHOD_LIMIT } else { /* Check Maximal number of methods being in progress simultaneously */ if (LNotEqual(max0, 45)) { err(ts, z177, __LINE__, 0, 0, max0, 45) } /* Overall got out of methods the same number as got into methods */ if (LNotEqual(cnt0, 0)) { err(ts, z177, __LINE__, 0, 0, cnt0, 0) } /* Check indexes */ m802(1, n100, p100, b1b0) m802(2, n200, p200, b2b0) m802(3, n300, p300, b3b0) m802(4, n400, p400, b4b0) /* Check the overall sum of total indexes */ if (LNotEqual(cnt1, 0x3DE)) { err(ts, z177, __LINE__, 0, 0, cnt1, 0x3DE) } } CH03(ts, z177, 0x024, __LINE__, 0) } /* * The same as m18a the level of Serialized methods is non-zero (7 level all) */ Method(m18b, 1, Serialized) { Name(ts, "m18b") Name(i000, 0) Name(rpt0, 0) /* * Total number of calls of the same Recursively Called method (RCM), * the first call is counted there too. */ Name(n000, 3) Name(cnt0, 0) // how many methods are in progress simultaneously Name(max0, 0) // maximal number of methods being in progress simultaneously Name(cnt1, 0) // summary of total indexes Name(ix00, 0) // total index of current call Name(ind1, 0) // index of call to m100 Name(ind2, 0) // index of call to m200 Name(ind3, 0) // index of call to m300 Name(ind4, 0) // index of call to m400 Name(n100, 3) // number of calls to m100 Name(n200, 6) // number of calls to m200 Name(n300, 12) // number of calls to m300 Name(n400, 24) // number of calls to m400 Name(p100, Package(n100) {}) // Package to keep total indexes of call to m100 Name(p200, Package(n200) {}) // Package to keep total indexes of call to m200 Name(p300, Package(n300) {}) // Package to keep total indexes of call to m300 Name(p400, Package(0x100) {}) // Package to keep total indexes of call to m400 // Benchmarks of indexes Name(b1b0, Buffer(n100) {0,22,44}) Name(b2b0, Buffer(n200) {1,11,21, 23,33,43}) Name(b3b0, Buffer(n300) {2, 6,10, 12,16,20, 24,28,32, 34,38,42}) Name(b4b0, Buffer(0x100) {3, 4, 5, 7, 8, 9, 13,14,15, 17,18,19, 25,26,27, 29,30,31, 35,36,37, 39,40,41}) /* * Open method execution * * arg0 - ID of method (1,2,3...) * arg1 - the message to be reported */ Method(m800, 2) { if (rpt0) { Store(arg1, Debug) } Increment(cnt0) if (LGreater(cnt0, max0)) { Store(cnt0, max0) } /* * Don't use Switch() here because we want this method to * be reentrant. */ if (LEqual(arg0, 1)) { Store(ix00, Index(p100, ind1)) Increment(ind1) } else { if (LEqual(arg0, 2)) { Store(ix00, Index(p200, ind2)) Increment(ind2) } else { if (LEqual(arg0, 3)) { Store(ix00, Index(p300, ind3)) Increment(ind3) } else { if (LEqual(arg0, 4)) { Store(ix00, Index(p400, ind4)) Increment(ind4) } } } } Increment(ix00) // total index } /* * Close method execution * * arg0 - ID of method (1,2,3...) */ Method(m801, 1) { Decrement(cnt0) } /* * arg0 - ID of method (1,2,3...) * arg1 - number of elements to be compared * arg2 - Package * arg3 - Package with the benchmark values */ Method(m802, 4) { Name(lpN0, 0) Name(lpC0, 0) Store(arg1, lpN0) Store(0, lpC0) While (lpN0) { Store(DeRefOf(Index(arg2, lpC0)), Local0) Store(DeRefOf(Index(arg3, lpC0)), Local1) if (LNotEqual(Local0, Local1)) { err(ts, z177, __LINE__, 0, 0, Local0, Local1) Store(arg0, Debug) Store(lpC0, Debug) } Decrement(lpN0) Increment(lpC0) } Switch (arg0) { Case (1) { if (LNotEqual(ind1, n100)) { err(ts, z177, __LINE__, 0, 0, ind1, n100) } } Case (2) { if (LNotEqual(ind2, n200)) { err(ts, z177, __LINE__, 0, 0, ind2, n200) } } Case (3) { if (LNotEqual(ind3, n300)) { err(ts, z177, __LINE__, 0, 0, ind3, n300) } } Case (4) { if (LNotEqual(ind4, n400)) { err(ts, z177, __LINE__, 0, 0, ind4, n400) } } } } /* * Arguments of methods: * arg0 - 0 - the first call, otherwise - recursive calls */ Name(c000, 3) Name(c100, 3) Name(c200, 3) Name(c300, 3) /* * None internal objects (including Methods) or Switches in Serialized methods below * * Note: if Serialized method has internal objects (including Methods and Switches) * it could not be invoked recursively by the same thread. */ Method(m100, 0, Serialized, 7) { Store(3, c100) Store(ind1, Local1) Store(ix00, Local0) m800(1, "m100") Decrement(c000) if (LEqual(c000, 0)) { // m000() } else { m200() } m801(1) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p100, Local1)), Local1) if (LNotEqual(Local1, Local0)) { err(ts, z177, __LINE__, 0, 0, Local1, Local0) } } Method(m200, 0, Serialized, 7) { Store(3, c200) Store(ind2, Local1) Store(ix00, Local0) m800(2, "m200") Decrement(c100) if (LEqual(c100, 0)) { m100() } else { m300() } m801(2) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p200, Local1)), Local1) if (LNotEqual(Local1, Local0)) { err(ts, z177, __LINE__, 0, 0, Local1, Local0) } } Method(m300, 0, Serialized, 7) { if (i000) { Store(31, c300) } else { Store(3, c300) } Store(ind3, Local1) Store(ix00, Local0) m800(3, "m300") Decrement(c200) if (LEqual(c200, 0)) { m200() } else { m400() } m801(3) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p300, Local1)), Local1) if (LNotEqual(Local1, Local0)) { err(ts, z177, __LINE__, 0, 0, Local1, Local0) } } Method(m400, 0, Serialized, 7) { Store(ind4, Local1) Store(ix00, Local0) m800(4, "m400") Decrement(c300) if (LEqual(c300, 0)) { m300() } else { m400() } m801(4) Add(cnt1, Local0, cnt1) Store(DerefOf(Index(p400, Local1)), Local1) if (LNotEqual(Local1, Local0)) { err(ts, z177, __LINE__, 0, 0, Local1, Local0) } } CH03(ts, z177, 0x02e, __LINE__, 0) Store(arg0, i000) m100() Concatenate("Maximal number of methods being in progress simultaneously ", max0, Debug) if (arg0) { CH04(ts, 0, 84, z177, __LINE__, 0, 0) // AE_AML_METHOD_LIMIT } else { /* Check Maximal number of methods being in progress simultaneously */ if (LNotEqual(max0, 45)) { err(ts, z177, __LINE__, 0, 0, max0, 45) } /* Overall got out of methods the same number as got into methods */ if (LNotEqual(cnt0, 0)) { err(ts, z177, __LINE__, 0, 0, cnt0, 0) } /* Check indexes */ m802(1, n100, p100, b1b0) m802(2, n200, p200, b2b0) m802(3, n300, p300, b3b0) m802(4, n400, p400, b4b0) /* Check the overall sum of total indexes */ if (LNotEqual(cnt1, 0x3DE)) { err(ts, z177, __LINE__, 0, 0, cnt1, 0x3DE) } } CH03(ts, z177, 0x032, __LINE__, 0) } /* * Check that Serialized method being invoked recursively on the same thread * (causes/ doesn't cause) * exception in case it has either internal objects (including Methods) or Switches. */ /* * No internal objects in Serialized method (including Methods and Switches), * so no exceptions are expected on recursive calls. */ Method(m18d,, Serialized) { Name(ts, "m18d") Method(m000, 1, Serialized, 7) { if (LNot(arg0)) { m000(1) } } CH03(ts, z177, 0x033, __LINE__, 0) m000(0) CH03(ts, z177, 0x034, __LINE__, 0) } /* * Serialized method has internal object (Named Integer), * so AE_ALREADY_EXISTS exception is expected on recursive call. */ Method(m18e,, Serialized) { Name(ts, "m18e") Method(m000, 1, Serialized, 7) { Name(i000, 0xabcd0000) if (LNot(arg0)) { m000(1) } } CH03(ts, z177, 0x035, __LINE__, 0) m000(0) if (y902) { CH04(ts, 0, 7, z177, __LINE__, 0, 0) // AE_ALREADY_EXISTS } else { CH03(ts, z177, 0x037, __LINE__, 0) } } /* * Serialized method has internal Switch, * so AE_ALREADY_EXISTS exception is expected on recursive call. */ Method(m18f,, Serialized) { Name(ts, "m18f") Method(m000, 1, Serialized, 7) { Switch (0) { Case (0) { Store("m18f", Debug) } } if (LNot(arg0)) { m000(1) } } CH03(ts, z177, 0x038, __LINE__, 0) m000(0) if (y902) { CH04(ts, 0, 7, z177, __LINE__, 0, 0) // AE_ALREADY_EXISTS } else { CH03(ts, z177, 0x03a, __LINE__, 0) } } /* * Serialized method has internal declaration of Method, * so AE_ALREADY_EXISTS exception is expected on recursive call. */ Method(m19a,, Serialized) { Name(ts, "m19a") Method(m000, 1, Serialized, 7) { Method(m100) {} if (LNot(arg0)) { m000(1) } } CH03(ts, z177, 0x03b, __LINE__, 0) m000(0) if (y902) { CH04(ts, 0, 7, z177, __LINE__, 0, 0) // AE_ALREADY_EXISTS } else { CH03(ts, z177, 0x03d, __LINE__, 0) } } /* * Serialized method has internal declaration of Device, * so AE_ALREADY_EXISTS exception is expected on recursive call. */ Method(m19b,, Serialized) { Name(ts, "m19b") Method(m000, 1, Serialized, 7) { Device(d000) {} if (LNot(arg0)) { m000(1) } } CH03(ts, z177, 0x03e, __LINE__, 0) m000(0) if (y902) { CH04(ts, 0, 7, z177, __LINE__, 0, 0) // AE_ALREADY_EXISTS } else { CH03(ts, z177, 0x040, __LINE__, 0) } } /* * It is m0ef but all the relevant methods are Serialized. * Exceptions are expected. * Now we have crash there. */ Method(m19c,, Serialized) { Name(ts, "m19c") Name(rpt0, 0) /* * Total number of calls of the same Recursively Called method (RCM), * the first call is counted there too. */ Name(n000, 3) Name(cnt0, 0) // how many methods are in progress simultaneously Name(max0, 0) // maximal number of methods being in progress simultaneously /* * Open method execution * * arg0 - ID of method (1,2,3...) * arg1 - the message to be reported */ Method(m800, 2) { if (rpt0) { Store(arg1, Debug) } Increment(cnt0) if (LGreater(cnt0, max0)) { Store(cnt0, max0) } } /* * Close method execution * * arg0 - ID of method (1,2,3...) */ Method(m801, 1) { Decrement(cnt0) } /* * Arguments of methods: * arg0 - 0 - the first call, otherwise - recursive calls */ Name(c000, 3) Method(m100, 0, Serialized, 9) { Name(c100, 3) Method(m200, 0, Serialized, 9) { Name(c200, 3) Method(m300, 0, Serialized, 9) { Name(c300, 3) Method(m400, 0, Serialized, 9) { m800(4, "m400") Decrement(c300) if (LEqual(c300, 0)) { m300() } else { m400() } m801(4) } m800(3, "m300") Decrement(c200) if (LEqual(c200, 0)) { m200() } else { m400() } m801(3) } m800(2, "m200") Decrement(c100) if (LEqual(c100, 0)) { m100() } else { m300() } m801(2) } m800(1, "m100") Decrement(c000) if (LEqual(c000, 0)) { // m000() } else { m200() } m801(1) } CH03(ts, z177, 0x041, __LINE__, 0) m100() if (y902) { CH04(ts, 0, 7, z177, __LINE__, 0, 0) // AE_ALREADY_EXISTS } else { CH03(ts, z177, 0x043, __LINE__, 0) } } /* * Full-path declarations */ /* * Non-Serialized method has full-path declaration */ Method(m19d,, Serialized) { Name(ts, "m19d") Method(m000, 1, Serialized) { Name(\i2z0, 0xabcd0000) if (LNotEqual(i2z0, 0xabcd0000)) { err(ts, z177, __LINE__, 0, 0, i2z0, 0xabcd0000) } if (LNotEqual(\i2z0, 0xabcd0000)) { err(ts, z177, __LINE__, 0, 0, \i2z0, 0xabcd0000) } Store(0x12345678, i2z0) if (LNotEqual(i2z0, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i2z0, 0x12345678) } if (LNotEqual(\i2z0, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, \i2z0, 0x12345678) } Store(0x11112222, \i2z0) if (LNotEqual(i2z0, 0x11112222)) { err(ts, z177, __LINE__, 0, 0, i2z0, 0x11112222) } if (LNotEqual(\i2z0, 0x11112222)) { err(ts, z177, __LINE__, 0, 0, \i2z0, 0x11112222) } } CH03(ts, z177, 0x04a, __LINE__, 0) m000(0) CH03(ts, z177, 0x04b, __LINE__, 0) Store(0x11112222, i2z0) CH04(ts, 1, 5, z177, __LINE__, 0, 0) // AE_NOT_FOUND Store(0x11112222, \i2z0) CH04(ts, 1, 5, z177, __LINE__, 0, 0) // AE_NOT_FOUND } /* * Serialized method has full-path declaration */ Method(m19e,, Serialized) { Name(ts, "m19e") Method(m000, 1, Serialized, 7) { Name(\i2z1, 0xabcd0000) if (LNotEqual(i2z1, 0xabcd0000)) { err(ts, z177, __LINE__, 0, 0, i2z1, 0xabcd0000) } if (LNotEqual(\i2z1, 0xabcd0000)) { err(ts, z177, __LINE__, 0, 0, \i2z1, 0xabcd0000) } Store(0x12345678, i2z1) if (LNotEqual(i2z1, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i2z1, 0x12345678) } if (LNotEqual(\i2z1, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, \i2z1, 0x12345678) } Store(0x22223333, \i2z1) if (LNotEqual(i2z1, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i2z1, 0x22223333) } if (LNotEqual(\i2z1, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i2z1, 0x22223333) } } CH03(ts, z177, 0x054, __LINE__, 0) m000(0) CH03(ts, z177, 0x055, __LINE__, 0) Store(0x11112222, i2z1) CH04(ts, 1, 5, z177, __LINE__, 0, 0) // AE_NOT_FOUND Store(0x11112222, \i2z1) CH04(ts, 1, 5, z177, __LINE__, 0, 0) // AE_NOT_FOUND } /* * Non-Serialized method has full-path declaration, * so AE_ALREADY_EXISTS exception is expected on recursive call. */ Method(m19f,, Serialized) { Name(ts, "m19f") Method(m000, 1, Serialized) { Name(\i2z2, 0xabcd0002) if (LNot(arg0)) { m000(1) } } CH03(ts, z177, 0x058, __LINE__, 0) m000(0) CH04(ts, 0, 7, z177, __LINE__, 0, 0) // AE_ALREADY_EXISTS } /* * Serialized method has full-path declaration, * so AE_ALREADY_EXISTS exception is expected on recursive call. */ Method(m1b8,, Serialized) { Name(ts, "m1b8") Method(m000, 1, Serialized, 7) { Name(\i2z3, 0xabcd0003) if (LNot(arg0)) { m000(1) } } CH03(ts, z177, 0x05a, __LINE__, 0) m000(0) CH04(ts, 0, 7, z177, __LINE__, 0, 0) // AE_ALREADY_EXISTS } /* * Scope declarations */ /* * Non-Serialized method has Scope declaration */ Method(m1b9,, Serialized) { Name(ts, "m1b9") Method(m000, 1, Serialized) { Scope(\_SB) { Name(i2z4, 0xabcd0004) } } CH03(ts, z177, 0x05c, __LINE__, 0) m000(0) CH03(ts, z177, 0x05d, __LINE__, 0) } /* * Serialized method has Scope declaration, * so AE_ALREADY_EXISTS exception is expected on recursive call. */ Method(m1ba,, Serialized) { Name(ts, "m1ba") Method(m000, 1, Serialized, 7) { Scope(\_SB) { Name(i2z5, 0xabcd0005) } } CH03(ts, z177, 0x05e, __LINE__, 0) m000(0) CH03(ts, z177, 0x05f, __LINE__, 0) } /* * Non-Serialized method has Scope declaration, * so AE_ALREADY_EXISTS exception is expected on recursive call. */ Method(m1bb,, Serialized) { Name(ts, "m1bb") Method(m000, 1, Serialized) { Scope(\_SB) { Name(i2z6, 0xabcd0006) } if (LNot(arg0)) { m000(1) } } CH03(ts, z177, 0x060, __LINE__, 0) m000(0) CH04(ts, 0, 7, z177, __LINE__, 0, 0) // AE_ALREADY_EXISTS } /* * Serialized method has Scope declaration, * so AE_ALREADY_EXISTS exception is expected on recursive call. */ Method(m1bc,, Serialized) { Name(ts, "m1bc") Method(m000, 1, Serialized, 7) { Scope(\_SB) { Name(i2z7, 0xabcd0007) } if (LNot(arg0)) { m000(1) } } CH03(ts, z177, 0x062, __LINE__, 0) m000(0) CH04(ts, 0, 7, z177, __LINE__, 0, 0) // AE_ALREADY_EXISTS } /* * Non-Serialized method declares full-path name on first call, * and allows proper access for the second recursive call too. */ Method(m1bd,, Serialized) { Name(ts, "m1bd") Method(m000, 1, Serialized) { if (LNot(arg0)) { Name(\i2z8, 0xabcd0108) if (LNotEqual(i2z8, 0xabcd0108)) { err(ts, z177, __LINE__, 0, 0, i2z8, 0xabcd0108) } if (LNotEqual(\i2z8, 0xabcd0108)) { err(ts, z177, __LINE__, 0, 0, \i2z8, 0xabcd0108) } } else { if (LNotEqual(i2z8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i2z8, 0x22223333) } if (LNotEqual(\i2z8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i2z8, 0x22223333) } } Store(0x12345678, i2z8) if (LNotEqual(i2z8, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i2z8, 0x12345678) } if (LNotEqual(\i2z8, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, \i2z8, 0x12345678) } Store(0x22223333, \i2z8) if (LNotEqual(i2z8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i2z8, 0x22223333) } if (LNotEqual(\i2z8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i2z8, 0x22223333) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(i2z8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i2z8, 0x22223333) } if (LNotEqual(\i2z8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i2z8, 0x22223333) } } else { if (LNotEqual(i2z8, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, i2z8, 0x66667777) } if (LNotEqual(\i2z8, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, \i2z8, 0x66667777) } } if (arg0) { Store(0x66667777, i2z8) } else { Store(0x44445555, i2z8) } } CH03(ts, z177, 0x070, __LINE__, 0) m000(0) CH03(ts, z177, 0x071, __LINE__, 0) } /* * Serialized method declares full-path name on first call, * and allows proper access for the second recursive call too. */ Method(m1be,, Serialized) { Name(ts, "m1be") Method(m000, 1, Serialized, 7) { if (LNot(arg0)) { Name(\i2z9, 0xabcd0109) if (LNotEqual(i2z9, 0xabcd0109)) { err(ts, z177, __LINE__, 0, 0, i2z9, 0xabcd0109) } if (LNotEqual(\i2z9, 0xabcd0109)) { err(ts, z177, __LINE__, 0, 0, \i2z9, 0xabcd0109) } } else { if (LNotEqual(i2z9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i2z9, 0x22223333) } if (LNotEqual(\i2z9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i2z9, 0x22223333) } } Store(0x12345678, i2z9) if (LNotEqual(i2z9, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i2z9, 0x12345678) } if (LNotEqual(\i2z9, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, \i2z9, 0x12345678) } Store(0x22223333, \i2z9) if (LNotEqual(i2z9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i2z9, 0x22223333) } if (LNotEqual(\i2z9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i2z9, 0x22223333) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(i2z9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i2z9, 0x22223333) } if (LNotEqual(\i2z9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i2z9, 0x22223333) } } else { if (LNotEqual(i2z9, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, i2z9, 0x66667777) } if (LNotEqual(\i2z9, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, \i2z9, 0x66667777) } } if (arg0) { Store(0x66667777, i2z9) } else { Store(0x44445555, i2z9) } } CH03(ts, z177, 0x07e, __LINE__, 0) m000(0) CH03(ts, z177, 0x07f, __LINE__, 0) } /* * Non-Serialized method provides access to the upper level named object, * for the second recursive call too. */ Method(m1de,, Serialized) { Name(ts, "m1de") Name(i3z0, 0xabcd0000) Method(m000, 1) { if (LNot(arg0)) { if (LNotEqual(i3z0, 0xabcd0000)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0xabcd0000) } } else { if (LNotEqual(i3z0, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0x12345678) } } Store(0x12345678, i3z0) if (LNotEqual(i3z0, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0x12345678) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(i3z0, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0x12345678) } } else { if (LNotEqual(i3z0, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0x66667777) } } if (arg0) { Store(0x66667777, i3z0) } else { Store(0x44445555, i3z0) } } CH03(ts, z177, 0x085, __LINE__, 0) m000(0) CH03(ts, z177, 0x086, __LINE__, 0) } /* * Serialized method provides access to the upper level named object, * for the second recursive call too. */ Method(m1df,, Serialized) { Name(ts, "m1df") Name(i3z0, 0xabcd0000) Method(m000, 1, Serialized, 7) { if (LNot(arg0)) { if (LNotEqual(i3z0, 0xabcd0000)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0xabcd0000) } } else { if (LNotEqual(i3z0, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0x12345678) } } Store(0x12345678, i3z0) if (LNotEqual(i3z0, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0x12345678) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(i3z0, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0x12345678) } } else { if (LNotEqual(i3z0, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, i3z0, 0x66667777) } } if (arg0) { Store(0x66667777, i3z0) } else { Store(0x44445555, i3z0) } } CH03(ts, z177, 0x08c, __LINE__, 0) m000(0) CH03(ts, z177, 0x08d, __LINE__, 0) } /* * Non-Serialized method declares full-path name on first call, * and allows proper access for the second recursive call too. */ Method(m1ee,, Serialized) { Name(ts, "m1ee") Method(m000, 1, Serialized) { if (LNot(arg0)) { Name(\_SB.i0q8, 0xabcd0008) if (LNotEqual(\_SB.i0q8, 0xabcd0008)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q8, 0xabcd0008) } } else { if (LNotEqual(\_SB.i0q8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q8, 0x22223333) } } Store(0x22223333, \_SB.i0q8) if (LNotEqual(\_SB.i0q8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q8, 0x22223333) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(\_SB.i0q8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q8, 0x22223333) } } else { if (LNotEqual(\_SB.i0q8, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q8, 0x66667777) } } if (arg0) { Store(0x66667777, \_SB.i0q8) } else { Store(0x44445555, \_SB.i0q8) } } CH03(ts, z177, 0x093, __LINE__, 0) m000(0) CH03(ts, z177, 0x094, __LINE__, 0) } /* * Serialized method declares full-path name on first call, * and allows proper access for the second recursive call too. */ Method(m1ef,, Serialized) { Name(ts, "m1ef") Method(m000, 1, Serialized, 7) { if (LNot(arg0)) { Name(\_SB.i0q9, 0xabcd0009) if (LNotEqual(\_SB.i0q9, 0xabcd0009)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q9, 0xabcd0009) } } else { if (LNotEqual(\_SB.i0q9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q9, 0x22223333) } } Store(0x22223333, \_SB.i0q9) if (LNotEqual(\_SB.i0q9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q9, 0x22223333) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(\_SB.i0q9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q9, 0x22223333) } } else { if (LNotEqual(\_SB.i0q9, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, \_SB.i0q9, 0x66667777) } } if (arg0) { Store(0x66667777, \_SB.i0q9) } else { Store(0x44445555, \_SB.i0q9) } } CH03(ts, z177, 0x093, __LINE__, 0) m000(0) CH03(ts, z177, 0x094, __LINE__, 0) } /* * Non-Serialized method declares Scope(\_SB) on first call, * and allows proper access for the second recursive call too. */ Method(m1bf,, Serialized) { Name(ts, "m1bf") Method(m000, 1, Serialized) { if (LNot(arg0)) { Scope(\_SB) { Name(i1q8, 0xabcd0008) } if (LNotEqual(\_SB.i1q8, 0xabcd0008)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q8, 0xabcd0008) } } else { if (LNotEqual(\_SB.i1q8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q8, 0x22223333) } } Store(0x22223333, \_SB.i1q8) if (LNotEqual(\_SB.i1q8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q8, 0x22223333) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(\_SB.i1q8, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q8, 0x22223333) } } else { if (LNotEqual(\_SB.i1q8, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q8, 0x66667777) } } if (arg0) { Store(0x66667777, \_SB.i1q8) } else { Store(0x44445555, \_SB.i1q8) } } CH03(ts, z177, 0x09a, __LINE__, 0) m000(0) CH03(ts, z177, 0x09b, __LINE__, 0) } /* * Serialized method declares Scope(\_SB) on first call, * and allows proper access for the second recursive call too. */ Method(m1dd,, Serialized) { Name(ts, "m1dd") Method(m000, 1, Serialized, 7) { if (LNot(arg0)) { Scope(\_SB) { Name(i1q9, 0xabcd0008) } if (LNotEqual(\_SB.i1q9, 0xabcd0008)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q9, 0xabcd0008) } } else { if (LNotEqual(\_SB.i1q9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q9, 0x22223333) } } Store(0x22223333, \_SB.i1q9) if (LNotEqual(\_SB.i1q9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q9, 0x22223333) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(\_SB.i1q9, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q9, 0x22223333) } } else { if (LNotEqual(\_SB.i1q9, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, \_SB.i1q9, 0x66667777) } } if (arg0) { Store(0x66667777, \_SB.i1q9) } else { Store(0x44445555, \_SB.i1q9) } } CH03(ts, z177, 0x0a1, __LINE__, 0) m000(0) CH03(ts, z177, 0x0a2, __LINE__, 0) } /* * Non-Serialized method declares Scope(\) on first call, * and allows proper access for the second recursive call too. */ Method(m277,, Serialized) { Name(ts, "m277") Method(m000, 1, Serialized) { if (LNot(arg0)) { Scope(\) { Name(i3z1, 0xabcd0208) } if (LNotEqual(i3z1, 0xabcd0208)) { err(ts, z177, __LINE__, 0, 0, i3z1, 0xabcd0208) } if (LNotEqual(\i3z1, 0xabcd0208)) { err(ts, z177, __LINE__, 0, 0, \i3z1, 0xabcd0208) } } else { if (LNotEqual(i3z1, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i3z1, 0x22223333) } if (LNotEqual(\i3z1, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i3z1, 0x22223333) } } Store(0x12345678, i3z1) if (LNotEqual(i3z1, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i3z1, 0x12345678) } if (LNotEqual(\i3z1, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, \i3z1, 0x12345678) } Store(0x22223333, \i3z1) if (LNotEqual(i3z1, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i3z1, 0x22223333) } if (LNotEqual(\i3z1, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i3z1, 0x22223333) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(i3z1, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i3z1, 0x22223333) } if (LNotEqual(\i3z1, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i3z1, 0x22223333) } } else { if (LNotEqual(i3z1, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, i3z1, 0x66667777) } if (LNotEqual(\i3z1, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, \i3z1, 0x66667777) } } if (arg0) { Store(0x66667777, i3z1) } else { Store(0x44445555, i3z1) } } CH03(ts, z177, 0x070, __LINE__, 0) m000(0) CH03(ts, z177, 0x071, __LINE__, 0) } /* * Serialized method declares Scope(\) on first call, * and allows proper access for the second recursive call too. */ Method(m27d,, Serialized) { Name(ts, "m27d") Method(m000, 1, Serialized, 7) { if (LNot(arg0)) { Scope(\) { Name(i3z2, 0xabcd0209) } if (LNotEqual(i3z2, 0xabcd0209)) { err(ts, z177, __LINE__, 0, 0, i3z2, 0xabcd0209) } if (LNotEqual(\i3z2, 0xabcd0209)) { err(ts, z177, __LINE__, 0, 0, \i3z2, 0xabcd0209) } } else { if (LNotEqual(i3z2, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i3z2, 0x22223333) } if (LNotEqual(\i3z2, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i3z2, 0x22223333) } } Store(0x12345678, i3z2) if (LNotEqual(i3z2, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, i3z2, 0x12345678) } if (LNotEqual(\i3z2, 0x12345678)) { err(ts, z177, __LINE__, 0, 0, \i3z2, 0x12345678) } Store(0x22223333, \i3z2) if (LNotEqual(i3z2, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i3z2, 0x22223333) } if (LNotEqual(\i3z2, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i3z2, 0x22223333) } if (LNot(arg0)) { m000(1) } if (arg0) { if (LNotEqual(i3z2, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, i3z2, 0x22223333) } if (LNotEqual(\i3z2, 0x22223333)) { err(ts, z177, __LINE__, 0, 0, \i3z2, 0x22223333) } } else { if (LNotEqual(i3z2, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, i3z2, 0x66667777) } if (LNotEqual(\i3z2, 0x66667777)) { err(ts, z177, __LINE__, 0, 0, \i3z2, 0x66667777) } } if (arg0) { Store(0x66667777, i3z2) } else { Store(0x44445555, i3z2) } } CH03(ts, z177, 0x07e, __LINE__, 0) m000(0) CH03(ts, z177, 0x07f, __LINE__, 0) } Method(m0ed) { /* SRMT("m0ff-1") m0ff(1) return SRMT("m1ee") m1ee() SRMT("m1ef") m1ef() return */ SRMT("m0ef") if (y300) { m0ef() } else { BLCK() } SRMT("m0fb") if (y300) { m0fb() } else { BLCK() } SRMT("m0ff-0") if (y300) { m0ff(0) } else { BLCK() } SRMT("m0ff-1") if (LAnd(y300, y200)) { m0ff(1) } else { BLCK() } SRMT("m18a-0") m18a(0) SRMT("m18a-1") if (LAnd(y300, y200)) { m18a(1) } else { BLCK() } SRMT("m18b-0") m18b(0) SRMT("m18b-1") if (LAnd(y300, y200)) { m18b(1) } else { BLCK() } SRMT("m18d") m18d() SRMT("m18e") m18e() SRMT("m18f") m18f() SRMT("m19a") m19a() SRMT("m19b") m19b() SRMT("m19c") if (LOr(y301, LNot(y902))) { m19c() } else { BLCK() } SRMT("m19d") m19d() SRMT("m19e") m19e() SRMT("m19f") m19f() SRMT("m1b8") m1b8() SRMT("m1b9") m1b9() SRMT("m1ba") m1ba() SRMT("m1bb") m1bb() SRMT("m1bc") m1bc() SRMT("m1bd") m1bd() SRMT("m1be") m1be() SRMT("m1de") m1de() SRMT("m1df") m1df() SRMT("m1ee") m1ee() SRMT("m1ef") m1ef() SRMT("m1bf") m1bf() SRMT("m1dd") m1dd() SRMT("m277") if (y200) { m277() } else { BLCK() } SRMT("m27d") if (y200) { m27d() } else { BLCK() } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/DECL.asl0000700000175000017500000000553614773714155027655 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include("../../../../runtime/collections/functional/control/ctl0.asl") Include("../../../../runtime/collections/functional/control/ctl1.asl") Include("../../../../runtime/collections/functional/control/ctl2.asl") Include("../../../../runtime/collections/functional/control/timing.asl") Include("../../../../runtime/collections/functional/control/switch1.asl") Include("../../../../runtime/collections/functional/control/switch2.asl") Include("../../../../runtime/collections/functional/control/switch3.asl") Include("../../../../runtime/collections/functional/control/switch4.asl") Include("../../../../runtime/collections/functional/control/switch5.asl") Include("../../../../runtime/collections/functional/control/switch6.asl") Include("../../../../runtime/collections/functional/control/while.asl") Include("../../../../runtime/collections/functional/control/Return/return.asl") Include("../../../../runtime/collections/functional/control/ImplicitReturn/add.asl") Include("../../../../runtime/collections/functional/control/ImplicitReturn/store.asl") Include("../../../../runtime/collections/functional/control/ImplicitReturn/standaloneret.asl") Include("../../../../runtime/collections/functional/control/Recursion/recursion.asl") Include("../../../../runtime/collections/functional/control/Recursion/stack_overflow.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/RUN.asl0000700000175000017500000000501714773714155027604 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Method execution control", TCLF, 3, W003)) { // m0ed() // m0fd() if (1) { SRMT("CTL0") CTL0() SRMT("CTL1") CTL1() SRMT("CTL2") CTL2() SRMT("TIM0") if (F64) { TIM0() } else { /* * Skip the test in 32-bit mode. * * In the 32-bit mode the Timer with the 100 * nanosecond period can provide the gradually * increased values during only 7 minutes before * it overflows and starts from the beginning. * We can't use the Timer operator at all because * it can overflow inside any the measured period. */ SKIP() } SRMT("SW01") SW01() SRMT("SW02") SW02() SRMT("SW03") SW03() SRMT("SW04") SW04() SRMT("SW05") SW05() SRMT("SW06") SW06() SRMT("SW07") SW07() SRMT("SW08") SW08() SRMT("SW09") SW09() SRMT("SW10") SW10() SRMT("WHL0") WHL0() m0ed() m0fd() } } FTTT() Include("../../../../runtime/collections/functional/control/Return/RUN.asl") Include("../../../../runtime/collections/functional/control/ImplicitReturn/RUN.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ctl0.asl0000700000175000017500000000740414773714155030004 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Simple checkings for {if,elseif,else} operators * One level {if,elseif,else} */ Name(z003, 3) Method(m070, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } return (Local0) } Method(m071, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } else { Store(1, Local0) } return (Local0) } Method(m072, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (LEqual(arg0, 1)) { Store(1, Local0) } return (Local0) } Method(m073, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) } return (Local0) } // Run verify methods // NOTE: use here as few control operators as possible Method(m074,, Serialized) { Name(ts, "m074") Store("TEST: m074, One level {if, elseif, else}", Debug) // m070 Store(0, Local7) Store(m070(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z003, __LINE__, 0, 0, Local7, 0) } Store(0x12345678, Local7) Store(m070(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z003, __LINE__, 0, 0, Local7, 0) } // m071 Store(0, Local7) While(LLess(Local7, 2)) { Store(m071(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z003, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m071(Local7), Local0) if (LNotEqual(Local0, 1)){ err(ts, z003, __LINE__, 0, 0, Local7, 0) } // m072 Store(0, Local7) While(LLess(Local7, 2)) { Store(m072(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z003, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m072(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z003, __LINE__, 0, 0, Local7, 0) } // m073 Store(0, Local7) While(LLess(Local7, 3)) { Store(m073(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z003, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m073(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z003, __LINE__, 0, 0, Local7, 0) } } // Run-method Method(CTL0) { Store("TEST: CTL0, Conditional execution", Debug) m074() } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/switch3.asl0000700000175000017500000012070614773714155030527 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Switch, Case, Default operators * * Switch, _T_X */ /* If bug 84 will be positively resolved, then return back: Declaration of Method Expression Declaration of Method // m000(m0c2), m001(SW03) // // unfolded Methods(m0c0,SW02) // // m002(m0c3), m003(SW04) // */ Name(z070, 70) Method(m0de, 1) { // ===================================== // // m000(m0c2), m001(SW03) // // ===================================== // // Method(m0c2) Method(m000) { // equivalent to embedded if (36 levels): // if(){ // if(){ // if(){ // ... // } else { // } // } else { // } // } else { // } Store(0x12345678, Local0) Switch (DeRefOf(Index(b0sw, 0))) { Case (0) { Store(0, Local0) Switch (DeRefOf(Index(b0sw, 1))) { Case (0) { Store(1, Local0) Switch (DeRefOf(Index(b0sw, 2))) { Case (0) { Store(2, Local0) Switch (DeRefOf(Index(b0sw, 3))) { Case (0) { Store(3, Local0) Switch (DeRefOf(Index(b0sw, 4))) { Case (0) { Store(4, Local0) Switch (DeRefOf(Index(b0sw, 5))) { Case (0) { Store(5, Local0) Switch (DeRefOf(Index(b0sw, 6))) { Case (0) { Store(6, Local0) Switch (DeRefOf(Index(b0sw, 7))) { Case (0) { Store(7, Local0) Switch (DeRefOf(Index(b0sw, 8))) { Case (0) { Store(8, Local0) Switch (DeRefOf(Index(b0sw, 9))) { Case (0) { Store(9, Local0) Switch (DeRefOf(Index(b0sw, 10))) { Case (0) { Store(10, Local0) Switch (DeRefOf(Index(b0sw, 11))) { Case (0) { Store(11, Local0) Switch (DeRefOf(Index(b0sw, 12))) { Case (0) { Store(12, Local0) Switch (DeRefOf(Index(b0sw, 13))) { Case (0) { Store(13, Local0) Switch (DeRefOf(Index(b0sw, 14))) { Case (0) { Store(14, Local0) Switch (DeRefOf(Index(b0sw, 15))) { Case (0) { Store(15, Local0) Switch (DeRefOf(Index(b0sw, 16))) { Case (0) { Store(16, Local0) Switch (DeRefOf(Index(b0sw, 17))) { Case (0) { Store(17, Local0) Switch (DeRefOf(Index(b0sw, 18))) { Case (0) { Store(18, Local0) Switch (DeRefOf(Index(b0sw, 19))) { Case (0) { Store(19, Local0) Switch (DeRefOf(Index(b0sw, 20))) { Case (0) { Store(20, Local0) Switch (DeRefOf(Index(b0sw, 21))) { Case (0) { Store(21, Local0) Switch (DeRefOf(Index(b0sw, 22))) { Case (0) { Store(22, Local0) Switch (DeRefOf(Index(b0sw, 23))) { Case (0) { Store(23, Local0) Switch (DeRefOf(Index(b0sw, 24))) { Case (0) { Store(24, Local0) Switch (DeRefOf(Index(b0sw, 25))) { Case (0) { Store(25, Local0) Switch (DeRefOf(Index(b0sw, 26))) { Case (0) { Store(26, Local0) Switch (DeRefOf(Index(b0sw, 27))) { Case (0) { Store(27, Local0) Switch (DeRefOf(Index(b0sw, 28))) { Case (0) { Store(28, Local0) Switch (DeRefOf(Index(b0sw, 29))) { Case (0) { Store(29, Local0) Switch (DeRefOf(Index(b0sw, 30))) { Case (0) { Store(30, Local0) Switch (DeRefOf(Index(b0sw, 31))) { Case (0) { Store(31, Local0) Switch (DeRefOf(Index(b0sw, 32))) { Case (0) { Store(32, Local0) Switch (DeRefOf(Index(b0sw, 33))) { Case (0) { Store(33, Local0) Switch (DeRefOf(Index(b0sw, 34))) { Case (0) { Store(34, Local0) Switch (DeRefOf(Index(b0sw, 35))) { Case (0) { Store(35, Local0) } Case (1) { Store(71, Local0) }} } Case (1) { Store(70, Local0) }} } Case (1) { Store(69, Local0) }} } Case (1) { Store(68, Local0) }} } Case (1) { Store(67, Local0) }} } Case (1) { Store(66, Local0) }} } Case (1) { Store(65, Local0) }} } Case (1) { Store(64, Local0) }} } Case (1) { Store(63, Local0) }} } Case (1) { Store(62, Local0) }} } Case (1) { Store(61, Local0) }} } Case (1) { Store(60, Local0) }} } Case (1) { Store(59, Local0) }} } Case (1) { Store(58, Local0) }} } Case (1) { Store(57, Local0) }} } Case (1) { Store(56, Local0) }} } Case (1) { Store(55, Local0) }} } Case (1) { Store(54, Local0) }} } Case (1) { Store(53, Local0) }} } Case (1) { Store(52, Local0) }} } Case (1) { Store(51, Local0) }} } Case (1) { Store(50, Local0) }} } Case (1) { Store(49, Local0) }} } Case (1) { Store(48, Local0) }} } Case (1) { Store(47, Local0) }} } Case (1) { Store(46, Local0) }} } Case (1) { Store(45, Local0) }} } Case (1) { Store(44, Local0) }} } Case (1) { Store(43, Local0) }} } Case (1) { Store(42, Local0) }} } Case (1) { Store(41, Local0) }} } Case (1) { Store(40, Local0) }} } Case (1) { Store(39, Local0) }} } Case (1) { Store(38, Local0) }} } Case (1) { Store(37, Local0) }} } Case (1) { Store(36, Local0) }} return (Local0) } // Method(SW03) Method(m001, 1, Serialized) { // Store("m001 started", Debug) Name(lpN0, 0) Name(lpC0, 0) // Check each Switch/Case(0) pair // from dipper pair to upper one. Store(TMAX, lpN0) Store(0, lpC0) m0c1(0) While (lpN0) { Store(m000(), Local1) Decrement(lpN0) Increment(lpC0) if (LNotEqual(Local1, lpN0)) { err(arg0, z070, __LINE__, 0, 0, Local1, lpN0) return (Ones) } Store(2, Index(b0sw, lpN0)) } // Check each Switch/Case(1) pair // from dipper pair to upper one. Store(TMAX, lpN0) Store(0, lpC0) m0c1(0) While (lpN0) { Subtract(lpN0, 1, Local7) Store(1, Index(b0sw, Local7)) Store(m000(), Local1) Decrement(lpN0) Increment(lpC0) Add(TMAX, lpN0, Local7) if (LNotEqual(Local1, Local7)) { err(arg0, z070, __LINE__, 0, 0, Local1, Local7) return (Ones) } } return (0) } // ===================================== // // m002(m0c3), m003(SW04) // // ===================================== // // Method(m0c3) Method(m002) { // equivalent to embedded else (36 levels): // if(){ // } else { // if(){ // } else { // if(){ // } else { // ... // } // } // } Store(0x12345678, Local0) Switch (DeRefOf(Index(b0sw, 0))) { Case (0) { Store(0, Local0) } Default { Store(36, Local0) Switch (DeRefOf(Index(b0sw, 1))) { Case (0) { Store(1, Local0) } Default { Store(37, Local0) Switch (DeRefOf(Index(b0sw, 2))) { Case (0) { Store(2, Local0) } Default { Store(38, Local0) Switch (DeRefOf(Index(b0sw, 3))) { Case (0) { Store(3, Local0) } Default { Store(39, Local0) Switch (DeRefOf(Index(b0sw, 4))) { Case (0) { Store(4, Local0) } Default { Store(40, Local0) Switch (DeRefOf(Index(b0sw, 5))) { Case (0) { Store(5, Local0) } Default { Store(41, Local0) Switch (DeRefOf(Index(b0sw, 6))) { Case (0) { Store(6, Local0) } Default { Store(42, Local0) Switch (DeRefOf(Index(b0sw, 7))) { Case (0) { Store(7, Local0) } Default { Store(43, Local0) Switch (DeRefOf(Index(b0sw, 8))) { Case (0) { Store(8, Local0) } Default { Store(44, Local0) Switch (DeRefOf(Index(b0sw, 9))) { Case (0) { Store(9, Local0) } Default { Store(45, Local0) Switch (DeRefOf(Index(b0sw, 10))) { Case (0) { Store(10, Local0) } Default { Store(46, Local0) Switch (DeRefOf(Index(b0sw, 11))) { Case (0) { Store(11, Local0) } Default { Store(47, Local0) Switch (DeRefOf(Index(b0sw, 12))) { Case (0) { Store(12, Local0) } Default { Store(48, Local0) Switch (DeRefOf(Index(b0sw, 13))) { Case (0) { Store(13, Local0) } Default { Store(49, Local0) Switch (DeRefOf(Index(b0sw, 14))) { Case (0) { Store(14, Local0) } Default { Store(50, Local0) Switch (DeRefOf(Index(b0sw, 15))) { Case (0) { Store(15, Local0) } Default { Store(51, Local0) Switch (DeRefOf(Index(b0sw, 16))) { Case (0) { Store(16, Local0) } Default { Store(52, Local0) Switch (DeRefOf(Index(b0sw, 17))) { Case (0) { Store(17, Local0) } Default { Store(53, Local0) Switch (DeRefOf(Index(b0sw, 18))) { Case (0) { Store(18, Local0) } Default { Store(54, Local0) Switch (DeRefOf(Index(b0sw, 19))) { Case (0) { Store(19, Local0) } Default { Store(55, Local0) Switch (DeRefOf(Index(b0sw, 20))) { Case (0) { Store(20, Local0) } Default { Store(56, Local0) Switch (DeRefOf(Index(b0sw, 21))) { Case (0) { Store(21, Local0) } Default { Store(57, Local0) Switch (DeRefOf(Index(b0sw, 22))) { Case (0) { Store(22, Local0) } Default { Store(58, Local0) Switch (DeRefOf(Index(b0sw, 23))) { Case (0) { Store(23, Local0) } Default { Store(59, Local0) Switch (DeRefOf(Index(b0sw, 24))) { Case (0) { Store(24, Local0) } Default { Store(60, Local0) Switch (DeRefOf(Index(b0sw, 25))) { Case (0) { Store(25, Local0) } Default { Store(61, Local0) Switch (DeRefOf(Index(b0sw, 26))) { Case (0) { Store(26, Local0) } Default { Store(62, Local0) Switch (DeRefOf(Index(b0sw, 27))) { Case (0) { Store(27, Local0) } Default { Store(63, Local0) Switch (DeRefOf(Index(b0sw, 28))) { Case (0) { Store(28, Local0) } Default { Store(64, Local0) Switch (DeRefOf(Index(b0sw, 29))) { Case (0) { Store(29, Local0) } Default { Store(65, Local0) Switch (DeRefOf(Index(b0sw, 30))) { Case (0) { Store(30, Local0) } Default { Store(66, Local0) Switch (DeRefOf(Index(b0sw, 31))) { Case (0) { Store(31, Local0) } Default { Store(67, Local0) Switch (DeRefOf(Index(b0sw, 32))) { Case (0) { Store(32, Local0) } Default { Store(68, Local0) Switch (DeRefOf(Index(b0sw, 33))) { Case (0) { Store(33, Local0) } Default { Store(69, Local0) Switch (DeRefOf(Index(b0sw, 34))) { Case (0) { Store(34, Local0) } Default { Store(70, Local0) Switch (DeRefOf(Index(b0sw, 35))) { Case (0) { Store(35, Local0) } Default { Store(71, Local0) }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} return (Local0) } // Method(SW04) Method(m003, 1, Serialized) { // Store("m003 started", Debug) Name(lpN0, 0) Name(lpC0, 0) // Check each Switch/Case(0) pair // from dipper pair to upper one. Store(TMAX, lpN0) Store(0, lpC0) m0c1(1) Multiply(TMAX, 2, Local7) Decrement(Local7) // Check dippest Switch/Default pair Store(m002(), Local1) if (LNotEqual(Local1, Local7)) { err(arg0, z070, __LINE__, 0, 0, Local1, Local7) return (Ones) } // Check each Switch/Case(0) pair // from dipper pair to upper one, // while go through all the previous Defaults. While (lpN0) { Subtract(lpN0, 1, Local7) Store(0, Index(b0sw, Local7)) Store(m002(), Local1) Decrement(lpN0) Increment(lpC0) if (LNotEqual(Local1, lpN0)) { err(arg0, z070, __LINE__, 0, 0, Local1, lpN0) return (Ones) } } return (0) } m001(arg0) // =========================================== // // unfolded Methods(m0c0,SW02) // // =========================================== // // unfolded Method(SW02) // Store("unfolded (m0c0,SW02) started", Debug) Name(lpN0, 0) Name(lpC0, 0) // Check each Switch/Case(0) pair // from dipper pair to upper one. Store(TMAX, lpN0) Store(0, lpC0) m0c1(0) While (lpN0) { // equivalent to embedded if (36 levels): // if(){ if() { if() {...... // }}} Store(0x12345678, Local0) Switch (DeRefOf(Index(b0sw, 0))) { Case (0) { Store(0, Local0) Switch (DeRefOf(Index(b0sw, 1))) { Case (0) { Store(1, Local0) Switch (DeRefOf(Index(b0sw, 2))) { Case (0) { Store(2, Local0) Switch (DeRefOf(Index(b0sw, 3))) { Case (0) { Store(3, Local0) Switch (DeRefOf(Index(b0sw, 4))) { Case (0) { Store(4, Local0) Switch (DeRefOf(Index(b0sw, 5))) { Case (0) { Store(5, Local0) Switch (DeRefOf(Index(b0sw, 6))) { Case (0) { Store(6, Local0) Switch (DeRefOf(Index(b0sw, 7))) { Case (0) { Store(7, Local0) Switch (DeRefOf(Index(b0sw, 8))) { Case (0) { Store(8, Local0) Switch (DeRefOf(Index(b0sw, 9))) { Case (0) { Store(9, Local0) Switch (DeRefOf(Index(b0sw, 10))) { Case (0) { Store(10, Local0) Switch (DeRefOf(Index(b0sw, 11))) { Case (0) { Store(11, Local0) Switch (DeRefOf(Index(b0sw, 12))) { Case (0) { Store(12, Local0) Switch (DeRefOf(Index(b0sw, 13))) { Case (0) { Store(13, Local0) Switch (DeRefOf(Index(b0sw, 14))) { Case (0) { Store(14, Local0) Switch (DeRefOf(Index(b0sw, 15))) { Case (0) { Store(15, Local0) Switch (DeRefOf(Index(b0sw, 16))) { Case (0) { Store(16, Local0) Switch (DeRefOf(Index(b0sw, 17))) { Case (0) { Store(17, Local0) Switch (DeRefOf(Index(b0sw, 18))) { Case (0) { Store(18, Local0) Switch (DeRefOf(Index(b0sw, 19))) { Case (0) { Store(19, Local0) Switch (DeRefOf(Index(b0sw, 20))) { Case (0) { Store(20, Local0) Switch (DeRefOf(Index(b0sw, 21))) { Case (0) { Store(21, Local0) Switch (DeRefOf(Index(b0sw, 22))) { Case (0) { Store(22, Local0) Switch (DeRefOf(Index(b0sw, 23))) { Case (0) { Store(23, Local0) Switch (DeRefOf(Index(b0sw, 24))) { Case (0) { Store(24, Local0) Switch (DeRefOf(Index(b0sw, 25))) { Case (0) { Store(25, Local0) Switch (DeRefOf(Index(b0sw, 26))) { Case (0) { Store(26, Local0) Switch (DeRefOf(Index(b0sw, 27))) { Case (0) { Store(27, Local0) Switch (DeRefOf(Index(b0sw, 28))) { Case (0) { Store(28, Local0) Switch (DeRefOf(Index(b0sw, 29))) { Case (0) { Store(29, Local0) Switch (DeRefOf(Index(b0sw, 30))) { Case (0) { Store(30, Local0) Switch (DeRefOf(Index(b0sw, 31))) { Case (0) { Store(31, Local0) Switch (DeRefOf(Index(b0sw, 32))) { Case (0) { Store(32, Local0) Switch (DeRefOf(Index(b0sw, 33))) { Case (0) { Store(33, Local0) Switch (DeRefOf(Index(b0sw, 34))) { Case (0) { Store(34, Local0) Switch (DeRefOf(Index(b0sw, 35))) { Case (0) { Store(35, Local0) }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} Decrement(lpN0) Increment(lpC0) if (LNotEqual(Local0, lpN0)) { err(arg0, z070, __LINE__, 0, 0, Local0, lpN0) return (Ones) } Store(1, Index(b0sw, lpN0)) } // While(lpN0) m003(arg0) return (0) } // Run-method Method(SW07,, Serialized) { Store("TEST: SW07, Switch, Case, Default operators", Debug) Name(ts, "SW07") m0de(ts) return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/switch4.asl0000700000175000017500000007376114773714155030540 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Switch, Case, Default operators * * Switch, Case different parameters. * All the constants from the Table 1, * Computational data, immediate images. */ Name(z071, 71) Method(m0df, 1) { Switch (arg0) { // Buffer Case (Buffer(1){10}) { Store(0, Local7) } Case (Buffer(2){11,12}) { Store(1, Local7) } Case (Buffer() {13,14,15}) { Store(2, Local7) } Case (Buffer(2){16,17,18}) { Store(3, Local7) } Case (Buffer(3){19,20}) { Store(4, Local7) } Case (Buffer(3){21,22,23}) { Store(5, Local7) } Case (Buffer(4){24,25,26,27}) { Store(6, Local7) } Case (Buffer(5){28,29,30,31,32}) { Store(7, Local7) } Case (Buffer(8){33,34,35,36,37,38,39,40}) { Store(8, Local7) } Case (Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}) { Store(9, Local7) } Case (Buffer(9){41,42,43,44,45,46,47,48,49}) { Store(10, Local7) } Case (Buffer(67){0x7d}) { Store(11, Local7) } Case (Buffer() { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}) { Store(12, Local7) } Case (Buffer(67) { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}) { Store(13, Local7) } Case (Buffer(4){0,0,0,0}) { Store(14, Local7) } Case (Buffer(8){0,0,0,0,0,0,0,0}) { Store(15, Local7) } Case (Buffer(4){0xff,0xff,0xff,0xff}) { Store(16, Local7) } Case (Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}) { Store(17, Local7) } Case (Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}) { Store(18, Local7) } Case (Buffer(5){0xff,0xff,0xff,0xff,0xff}) { Store(19, Local7) } Case (Buffer(1){0xff}) { Store(20, Local7) } Case (Buffer(1){}) { Store(21, Local7) } Case (Buffer(5){}) { Store(22, Local7) } Case (Buffer(9){}) { Store(23, Local7) } Case (Buffer(9){0xab, 0xcd, 0xef}) { Store(24, Local7) } // String Case ("0321") { Store(25, Local7) } Case ("321") { Store(26, Local7) } Case ("ba9876") { Store(27, Local7) } Case ("c179b3fe") { Store(28, Local7) } Case ("fe7cb391d650a284") { Store(29, Local7) } Case ("ffffffff") { Store(30, Local7) } Case ("ffffffffffffffff") { Store(31, Local7) } Case ("ffffffffff") { Store(32, Local7) } Case ("ff") { Store(33, Local7) } Case ("987654321") { Store(34, Local7) } Case ("0xfe7cb3") { Store(35, Local7) } // Integer Case (0321) { Store(36, Local7) } Case (9876543210) { Store(37, Local7) } Case (0xc179b3fe) { Store(38, Local7) } Case (0xfe7cb391d650a284) { Store(39, Local7) } Case (0) { Store(40, Local7) } Case (0xffffffff) { Store(41, Local7) } Case (0xffffffffffffffff) { Store(42, Local7) } Case (0xff) { Store(43, Local7) } Case (0xabcdef) { Store(44, Local7) } Default { Store(45, Local7) } } return (Local7) } Method(m0e0, 1) { // Integer Store(m0df(0321), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z071, __LINE__, 0, 0, Local0, 36) } Store(m0df(0xd1), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z071, __LINE__, 0, 0, Local0, 36) } Store(m0df(9876543210), Local0) if (LNotEqual(Local0, 37)) { err(arg0, z071, __LINE__, 0, 0, Local0, 37) } Store(m0df(0xc179b3fe), Local0) if (LNotEqual(Local0, 28)) { err(arg0, z071, __LINE__, 0, 0, Local0, 28) } Store(m0df(0xfe7cb391d650a284), Local0) if (F64) { if (LNotEqual(Local0, 29)) { err(arg0, z071, __LINE__, 0, 0, Local0, 29) } } else { if (LNotEqual(Local0, 39)) { err(arg0, z071, __LINE__, 0, 0, Local0, 39) } } Store(m0df(0), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z071, __LINE__, 0, 0, Local0, 14) } Store(m0df(0xffffffff), Local0) if (LNotEqual(Local0, 16)) { err(arg0, z071, __LINE__, 0, 0, Local0, 16) } Store(m0df(0xffffffffffffffff), Local0) if (F64) { if (LNotEqual(Local0, 17)) { err(arg0, z071, __LINE__, 0, 0, Local0, 17) } } else { if (LNotEqual(Local0, 16)) { err(arg0, z071, __LINE__, 0, 0, Local0, 16) } } Store(m0df(0xff), Local0) if (LNotEqual(Local0, 20)) { err(arg0, z071, __LINE__, 0, 0, Local0, 20) } Store(m0df(0xabcdef), Local0) if (LNotEqual(Local0, 44)) { err(arg0, z071, __LINE__, 0, 0, Local0, 44) } } // The same as m0df and m0e0 but with ToInteger Method(m0e1, 1) { Switch (ToInteger(arg0)) { // Buffer Case (Buffer(1){10}) { Store(0, Local7) } Case (Buffer(2){11,12}) { Store(1, Local7) } Case (Buffer() {13,14,15}) { Store(2, Local7) } Case (Buffer(2){16,17,18}) { Store(3, Local7) } Case (Buffer(3){19,20}) { Store(4, Local7) } Case (Buffer(3){21,22,23}) { Store(5, Local7) } Case (Buffer(4){24,25,26,27}) { Store(6, Local7) } Case (Buffer(5){28,29,30,31,32}) { Store(7, Local7) } Case (Buffer(8){33,34,35,36,37,38,39,40}) { Store(8, Local7) } Case (Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}) { Store(9, Local7) } Case (Buffer(9){41,42,43,44,45,46,47,48,49}) { Store(10, Local7) } Case (Buffer(67){0x7d}) { Store(11, Local7) } Case (Buffer() { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}) { Store(12, Local7) } Case (Buffer(67) { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}) { Store(13, Local7) } Case (Buffer(4){0,0,0,0}) { Store(14, Local7) } Case (Buffer(8){0,0,0,0,0,0,0,0}) { Store(15, Local7) } Case (Buffer(4){0xff,0xff,0xff,0xff}) { Store(16, Local7) } Case (Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}) { Store(17, Local7) } Case (Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}) { Store(18, Local7) } Case (Buffer(5){0xff,0xff,0xff,0xff,0xff}) { Store(19, Local7) } Case (Buffer(1){0xff}) { Store(20, Local7) } Case (Buffer(1){}) { Store(21, Local7) } Case (Buffer(5){}) { Store(22, Local7) } Case (Buffer(9){}) { Store(23, Local7) } Case (Buffer(9){0xab, 0xcd, 0xef}) { Store(24, Local7) } // String Case ("0321") { Store(25, Local7) } Case ("321") { Store(26, Local7) } Case ("ba9876") { Store(27, Local7) } Case ("c179b3fe") { Store(28, Local7) } Case ("fe7cb391d650a284") { Store(29, Local7) } Case ("ffffffff") { Store(30, Local7) } Case ("ffffffffffffffff") { Store(31, Local7) } Case ("ffffffffff") { Store(32, Local7) } Case ("ff") { Store(33, Local7) } Case ("987654321") { Store(34, Local7) } Case ("0xfe7cb3") { Store(35, Local7) } // Integer Case (0321) { Store(36, Local7) } Case (9876543210) { Store(37, Local7) } Case (0xc179b3fe) { Store(38, Local7) } Case (0xfe7cb391d650a284) { Store(39, Local7) } Case (0) { Store(40, Local7) } Case (0xffffffff) { Store(41, Local7) } Case (0xffffffffffffffff) { Store(42, Local7) } Case (0xff) { Store(43, Local7) } Case (0xabcdef) { Store(44, Local7) } Default { Store(45, Local7) } } return (Local7) } Method(m0e2, 1) { // Integer Store(m0e1(0321), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z071, __LINE__, 0, 0, Local0, 36) } Store(m0e1(0xd1), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z071, __LINE__, 0, 0, Local0, 36) } Store(m0e1(9876543210), Local0) // if (F64) { if (LNotEqual(Local0, 37)) { err(arg0, z071, __LINE__, 0, 0, Local0, 37) } // } else { // if (LNotEqual(Local0, 45)) { // err(arg0, z071, __LINE__, 0, 0, Local0, 45) // } // } Store(m0e1(0xc179b3fe), Local0) if (LNotEqual(Local0, 28)) { err(arg0, z071, __LINE__, 0, 0, Local0, 28) } Store(m0e1(0xfe7cb391d650a284), Local0) if (F64) { if (LNotEqual(Local0, 29)) { err(arg0, z071, __LINE__, 0, 0, Local0, 29) } } else { if (LNotEqual(Local0, 39)) { err(arg0, z071, __LINE__, 0, 0, Local0, 39) } } Store(m0e1(0), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z071, __LINE__, 0, 0, Local0, 14) } Store(m0e1(0xffffffff), Local0) if (LNotEqual(Local0, 16)) { err(arg0, z071, __LINE__, 0, 0, Local0, 16) } Store(m0e1(0xffffffffffffffff), Local0) if (F64) { if (LNotEqual(Local0, 17)) { err(arg0, z071, __LINE__, 0, 0, Local0, 17) } } else { if (LNotEqual(Local0, 16)) { err(arg0, z071, __LINE__, 0, 0, Local0, 16) } } Store(m0e1(0xff), Local0) if (LNotEqual(Local0, 20)) { err(arg0, z071, __LINE__, 0, 0, Local0, 20) } Store(m0e1(0xabcdef), Local0) if (LNotEqual(Local0, 44)) { err(arg0, z071, __LINE__, 0, 0, Local0, 44) } } Method(m0e3, 1) { Switch (ToString(arg0)) { // Integer Case (0321) { Store(0, Local7) } Case (9876543210) { Store(1, Local7) } Case (0xc179b3fe) { Store(2, Local7) } Case (0xfe7cb391d650a284) { Store(3, Local7) } Case (0) { Store(4, Local7) } Case (0xffffffff) { Store(5, Local7) } Case (0xffffffffffffffff) { Store(6, Local7) } Case (0xff) { Store(7, Local7) } Case (0xabcdef) { Store(8, Local7) } // Buffer Case (Buffer(1){10}) { Store(9, Local7) } Case (Buffer(2){11,12}) { Store(10, Local7) } Case (Buffer() {13,14,15}) { Store(11, Local7) } Case (Buffer(2){16,17,18}) { Store(12, Local7) } Case (Buffer(3){19,20}) { Store(13, Local7) } Case (Buffer(3){21,22,23}) { Store(14, Local7) } Case (Buffer(4){24,25,26,27}) { Store(15, Local7) } Case (Buffer(5){28,29,30,31,32}) { Store(16, Local7) } Case (Buffer(8){33,34,35,36,37,38,39,40}) { Store(17, Local7) } Case (Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}) { Store(18, Local7) } Case (Buffer(9){41,42,43,44,45,46,47,48,49}) { Store(19, Local7) } Case (Buffer(67){0x7d}) { Store(20, Local7) } Case (Buffer() { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}) { Store(21, Local7) } Case (Buffer(67) { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}) { Store(22, Local7) } Case (Buffer(4){0,0,0,0}) { Store(23, Local7) } Case (Buffer(8){0,0,0,0,0,0,0,0}) { Store(24, Local7) } Case (Buffer(4){0xff,0xff,0xff,0xff}) { Store(25, Local7) } Case (Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}) { Store(26, Local7) } Case (Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}) { Store(27, Local7) } Case (Buffer(5){0xff,0xff,0xff,0xff,0xff}) { Store(28, Local7) } Case (Buffer(1){0xff}) { Store(29, Local7) } Case (Buffer(1){}) { Store(30, Local7) } Case (Buffer(5){}) { Store(31, Local7) } Case (Buffer(9){}) { Store(32, Local7) } Case (Buffer(9){0xab, 0xcd, 0xef}) { Store(33, Local7) } // String Case ("0321") { Store(34, Local7) } Case ("321") { Store(35, Local7) } Case ("ba9876") { Store(36, Local7) } Case ("c179b3fe") { Store(37, Local7) } Case ("fe7cb391d650a284") { Store(38, Local7) } Case ("ffffffff") { Store(39, Local7) } Case ("ffffffffffffffffff") { Store(40, Local7) } Case ("ffffffffffffffff") { Store(41, Local7) } Case ("ffffffffff") { Store(42, Local7) } Case ("ff") { Store(43, Local7) } Case ("fe7cb391d650a2841") { Store(44, Local7) } Case ("987654321") { Store(45, Local7) } Case ("0xfe7cb3") { Store(46, Local7) } Case ("1234q") { Store(47, Local7) } Case ("qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdf") { Store(48, Local7) } Case ("") { Store(49, Local7) } Case (" ") { Store(50, Local7) } Case ("`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?") { Store(51, Local7) } Case ("abcdef") { Store(52, Local7) } Case ("ABCDEF") { Store(53, Local7) } Default { Store(54, Local7) } } return (Local7) } Method(m0e4, 1) { // String Store(m0e3("0321"), Local0) if (LNotEqual(Local0, 34)) { err(arg0, z071, __LINE__, 0, 0, Local0, 34) } Store(m0e3("321"), Local0) if (LNotEqual(Local0, 35)) { err(arg0, z071, __LINE__, 0, 0, Local0, 35) } Store(m0e3("ba9876"), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z071, __LINE__, 0, 0, Local0, 36) } Store(m0e3("c179b3fe"), Local0) if (LNotEqual(Local0, 37)) { err(arg0, z071, __LINE__, 0, 0, Local0, 37) } Store(m0e3("fe7cb391d650a284"), Local0) if (LNotEqual(Local0, 38)) { err(arg0, z071, __LINE__, 0, 0, Local0, 38) } Store(m0e3("ffffffff"), Local0) if (LNotEqual(Local0, 39)) { err(arg0, z071, __LINE__, 0, 0, Local0, 39) } Store(m0e3("ffffffffffffffffff"), Local0) if (LNotEqual(Local0, 40)) { err(arg0, z071, __LINE__, 0, 0, Local0, 40) } Store(m0e3("ffffffffffffffff"), Local0) if (LNotEqual(Local0, 41)) { err(arg0, z071, __LINE__, 0, 0, Local0, 41) } Store(m0e3("ffffffffff"), Local0) if (LNotEqual(Local0, 42)) { err(arg0, z071, __LINE__, 0, 0, Local0, 42) } Store(m0e3("ff"), Local0) if (LNotEqual(Local0, 43)) { err(arg0, z071, __LINE__, 0, 0, Local0, 43) } Store(m0e3("fe7cb391d650a2841"), Local0) if (LNotEqual(Local0, 44)) { err(arg0, z071, __LINE__, 0, 0, Local0, 44) } Store(m0e3("987654321"), Local0) if (LNotEqual(Local0, 45)) { err(arg0, z071, __LINE__, 0, 0, Local0, 45) } Store(m0e3("0xfe7cb3"), Local0) if (LNotEqual(Local0, 46)) { err(arg0, z071, __LINE__, 0, 0, Local0, 46) } Store(m0e3("1234q"), Local0) if (LNotEqual(Local0, 47)) { err(arg0, z071, __LINE__, 0, 0, Local0, 47) } Store(m0e3(BIG0), Local0) if (LNotEqual(Local0, 48)) { err(arg0, z071, __LINE__, 0, 0, Local0, 48) } Store(m0e3(""), Local0) if (LNotEqual(Local0, 49)) { err(arg0, z071, __LINE__, 0, 0, Local0, 49) } Store(m0e3(" "), Local0) if (LNotEqual(Local0, 50)) { err(arg0, z071, __LINE__, 0, 0, Local0, 50) } Store(m0e3(ALL0), Local0) if (LNotEqual(Local0, 51)) { err(arg0, z071, __LINE__, 0, 0, Local0, 51) } Store(m0e3("abcdef"), Local0) if (LNotEqual(Local0, 52)) { err(arg0, z071, __LINE__, 0, 0, Local0, 52) } Store(m0e3("ABCDEF"), Local0) if (LNotEqual(Local0, 53)) { err(arg0, z071, __LINE__, 0, 0, Local0, 53) } } Method(m0e5, 1) { Switch (ToBuffer(arg0)) { // Integer Case (0321) { Store(0, Local7) } Case (9876543210) { Store(1, Local7) } Case (0xc179b3fe) { Store(2, Local7) } Case (0xfe7cb391d650a284) { Store(3, Local7) } Case (0) { Store(4, Local7) } Case (0xffffffff) { Store(5, Local7) } Case (0xffffffffffffffff) { Store(6, Local7) } Case (0xff) { Store(7, Local7) } Case (0xabcdef) { Store(8, Local7) } // String Case ("0321") { Store(9, Local7) } Case ("321") { Store(10, Local7) } Case ("ba9876") { Store(11, Local7) } Case ("c179b3fe") { Store(12, Local7) } Case ("fe7cb391d650a284") { Store(13, Local7) } Case ("ffffffff") { Store(14, Local7) } Case ("ffffffffffffffffff") { Store(15, Local7) } Case ("ffffffffffffffff") { Store(16, Local7) } Case ("ffffffffff") { Store(17, Local7) } Case ("ff") { Store(18, Local7) } Case ("fe7cb391d650a2841") { Store(19, Local7) } Case ("987654321") { Store(20, Local7) } Case ("0xfe7cb3") { Store(21, Local7) } Case ("1234q") { Store(22, Local7) } Case ("qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdf") { Store(23, Local7) } Case ("") { Store(24, Local7) } Case (" ") { Store(25, Local7) } Case ("`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?") { Store(26, Local7) } Case ("abcdef") { Store(27, Local7) } Case ("ABCDEF") { Store(28, Local7) } // Buffer Case (Buffer(1){10}) { Store(29, Local7) } Case (Buffer(2){11,12}) { Store(30, Local7) } Case (Buffer() {13,14,15}) { Store(31, Local7) } Case (Buffer(2){16,17,18}) { Store(32, Local7) } Case (Buffer(3){19,20}) { Store(33, Local7) } Case (Buffer(3){21,22,23}) { Store(34, Local7) } Case (Buffer(4){24,25,26,27}) { Store(35, Local7) } Case (Buffer(5){28,29,30,31,32}) { Store(36, Local7) } Case (Buffer(8){33,34,35,36,37,38,39,40}) { Store(37, Local7) } Case (Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}) { Store(38, Local7) } Case (Buffer(9){41,42,43,44,45,46,47,48,49}) { Store(39, Local7) } Case (Buffer(257){0x7d}) { Store(40, Local7) } Case (Buffer(257) { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x01}) { Store(41, Local7) } Case (Buffer() { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x02}) { Store(42, Local7) } Case (Buffer(4){0,0,0,0}) { Store(43, Local7) } Case (Buffer(8){0,0,0,0,0,0,0,0}) { Store(44, Local7) } Case (Buffer(4){0xff,0xff,0xff,0xff}) { Store(45, Local7) } Case (Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}) { Store(46, Local7) } Case (Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}) { Store(47, Local7) } Case (Buffer(5){0xff,0xff,0xff,0xff,0xff}) { Store(48, Local7) } Case (Buffer(1){0xff}) { Store(49, Local7) } Case (Buffer(1){}) { Store(50, Local7) } Case (Buffer(5){}) { Store(51, Local7) } Case (Buffer(9){}) { Store(52, Local7) } Case (Buffer(9){0xab, 0xcd, 0xef}) { Store(53, Local7) } Default { Store(54, Local7) } } return (Local7) } Method(m0e6, 1) { // Buffer Store(m0e5(Buffer(1){10}), Local0) if (LNotEqual(Local0, 29)) { err(arg0, z071, __LINE__, 0, 0, Local0, 29) } Store(m0e5(Buffer(2){11,12}), Local0) if (LNotEqual(Local0, 30)) { err(arg0, z071, __LINE__, 0, 0, Local0, 30) } Store(m0e5(Buffer() {13,14,15}), Local0) if (LNotEqual(Local0, 31)) { err(arg0, z071, __LINE__, 0, 0, Local0, 31) } Store(m0e5(Buffer(2){16,17,18}), Local0) if (LNotEqual(Local0, 32)) { err(arg0, z071, __LINE__, 0, 0, Local0, 32) } Store(m0e5(Buffer(3){19,20}), Local0) if (LNotEqual(Local0, 33)) { err(arg0, z071, __LINE__, 0, 0, Local0, 33) } Store(m0e5(Buffer(3){21,22,23}), Local0) if (LNotEqual(Local0, 34)) { err(arg0, z071, __LINE__, 0, 0, Local0, 34) } Store(m0e5(Buffer(4){24,25,26,27}), Local0) if (LNotEqual(Local0, 35)) { err(arg0, z071, __LINE__, 0, 0, Local0, 35) } Store(m0e5(Buffer(5){28,29,30,31,32}), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z071, __LINE__, 0, 0, Local0, 36) } Store(m0e5(Buffer(8){33,34,35,36,37,38,39,40}), Local0) if (LNotEqual(Local0, 37)) { err(arg0, z071, __LINE__, 0, 0, Local0, 37) } Store(m0e5(Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}), Local0) if (LNotEqual(Local0, 38)) { err(arg0, z071, __LINE__, 0, 0, Local0, 38) } Store(m0e5(Buffer(9){41,42,43,44,45,46,47,48,49}), Local0) if (LNotEqual(Local0, 39)) { err(arg0, z071, __LINE__, 0, 0, Local0, 39) } Store(m0e5(Buffer(257){0x7d}), Local0) if (LNotEqual(Local0, 40)) { err(arg0, z071, __LINE__, 0, 0, Local0, 40) } Store(m0e5(Buffer(257) { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x01}), Local0) if (LNotEqual(Local0, 41)) { err(arg0, z071, __LINE__, 0, 0, Local0, 41) } Store(m0e5(Buffer() { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x02}), Local0) if (LNotEqual(Local0, 42)) { err(arg0, z071, __LINE__, 0, 0, Local0, 42) } if (F64) { Store(m0e5(Buffer(4){0,0,0,0}), Local0) if (LNotEqual(Local0, 43)) { err(arg0, z071, __LINE__, 0, 0, Local0, 43) } Store(m0e5(Buffer(8){0,0,0,0,0,0,0,0}), Local0) if (LNotEqual(Local0, 4)) { err(arg0, z071, __LINE__, 0, 0, Local0, 4) } Store(m0e5(Buffer(4){0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 45)) { err(arg0, z071, __LINE__, 0, 0, Local0, 45) } Store(m0e5(Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 6)) { err(arg0, z071, __LINE__, 0, 0, Local0, 6) } } else { Store(m0e5(Buffer(4){0,0,0,0}), Local0) if (LNotEqual(Local0, 4)) { err(arg0, z071, __LINE__, 0, 0, Local0, 4) } Store(m0e5(Buffer(8){0,0,0,0,0,0,0,0}), Local0) if (LNotEqual(Local0, 44)) { err(arg0, z071, __LINE__, 0, 0, Local0, 44) } Store(m0e5(Buffer(4){0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z071, __LINE__, 0, 0, Local0, 5) } Store(m0e5(Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 47)) { err(arg0, z071, __LINE__, 0, 0, Local0, 47) } } Store(m0e5(Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 46)) { err(arg0, z071, __LINE__, 0, 0, Local0, 46) } Store(m0e5(Buffer(5){0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 48)) { err(arg0, z071, __LINE__, 0, 0, Local0, 48) } Store(m0e5(Buffer(1){0xff}), Local0) if (LNotEqual(Local0, 49)) { err(arg0, z071, __LINE__, 0, 0, Local0, 49) } Store(m0e5(Buffer(1){}), Local0) if (LNotEqual(Local0, 24)) { err(arg0, z071, __LINE__, 0, 0, Local0, 24) } Store(m0e5(Buffer(5){}), Local0) if (LNotEqual(Local0, 51)) { err(arg0, z071, __LINE__, 0, 0, Local0, 51) } Store(m0e5(Buffer(9){}), Local0) if (LNotEqual(Local0, 52)) { err(arg0, z071, __LINE__, 0, 0, Local0, 52) } Store(m0e5(Buffer(9){0xab, 0xcd, 0xef}), Local0) if (LNotEqual(Local0, 53)) { err(arg0, z071, __LINE__, 0, 0, Local0, 53) } } // Run-method Method(SW08,, Serialized) { Store("TEST: SW08, Switch, Case, Default operators", Debug) Name(ts, "SW08") m0e0(ts) m0e2(ts) m0e4(ts) m0e6(ts) return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/0000700000175000017500000000000014773714155031403 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/DECL.asl0000700000175000017500000000350114773714155032615 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include("../../../../../runtime/collections/functional/control/ImplicitReturn/add.asl") Include("../../../../../runtime/collections/functional/control/ImplicitReturn/store.asl") Include("../../../../../runtime/collections/functional/control/ImplicitReturn/standaloneret.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/RUN.asl0000700000175000017500000000340714773714155032557 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Method execution control, Implicit Return", TCLF, 3, W003)) { SRMT("mf6c") mf6c() SRMT("mf6e") mf6e() SRMT("mf6f") mf6f() SRMT("mf71") mf71() SRMT("mff0") mff0() SRMT("mff1") mff1() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/add.asl0000700000175000017500000003116214773714155032642 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Test of Impllicit Return * * The last operation of Methods is Add. */ Name(z136, 136) Method(mf71,, Serialized) { Name(fl00, 0) Name(i000, 0xabcd0000) Name(i001, 0) Method(m000) { Store(Add(0xabcd0002, i001), Local1) if (fl00) { Store(0xdddd0000, i001) Return (0) } } Method(m001) { if (fl00) { Store(0xdddd0001, i001) Return (0) } Store(Add(0xabcd0003, i001), Local1) } Method(m002, 1) { if (fl00) { Store(0xdddd0002, i001) Return (0) } if (fl00) { Return (0) } if (arg0) { Store(Add(0xabcd0004, i001), Local1) } } Method(m003, 1) { if (fl00) { Store(0xdddd0003, i001) Return (0) } if (fl00) { Return (0) } if (arg0) { Store(Add(0xabcd0005, i001), Local1) } else { Store(Add(0xabcd0006, i001), Local1) } } Method(m004, 1) { if (fl00) { Return (0) } switch (arg0) { case (0) { Store(Add(0xabcd0007, i001), Local1) } case (0x12345678) { Store(Add(0xabcd0008, i001), Local1) } default { Store(Add(0xabcd0009, i001), Local1) } } } Method(m005) { if (fl00) { Return (0) } While (1) { Store(Add(0xabcd000a, i001), Local1) Break } } Method(m006) { if (fl00) { Return (0) } Store(Add(0xabcd000b, i001), Local1) While (0xabcd0003) { Break } } Method(m007,, Serialized) { Name(i000, 0) Name(num, 0) Name(lpN0, 0) Name(lpC0, 0) Store(10, num) Store(num, lpN0) Store(0, lpC0) if (fl00) { Return (0) } While (lpN0) { if (i000) { Break } Decrement(lpN0) Increment(lpC0) Store(0xabcd0001, i000) Store(Add(0xabcd000c, i001), Local1) Continue } } Method(m008) { Method(m000) { Store(Add(0xabcd000d, i001), Local1) } if (fl00) { Return (0) } m000() } // m000 Store(0xabcd9000, i000) CH03("", z136, 0x100, __LINE__, 0) Store(m000(), i000) if (SLCK) { CH03("", z136, 0x101, __LINE__, 0) if (y901) { Store(0, Local0) } else { Store(0xabcd0002, Local0) } if (LNotEqual(i000, Local0)) { err("", z136, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m001 Store(0xabcd9001, i000) CH03("", z136, 0x104, __LINE__, 0) Store(m001(), i000) if (SLCK) { CH03("", z136, 0x105, __LINE__, 0) if (LNotEqual(i000, 0xabcd0003)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0003) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m002 Store(0xabcd9002, i000) CH03("", z136, 0x108, __LINE__, 0) Store(m002(1), i000) if (SLCK) { CH03("", z136, 0x109, __LINE__, 0) if (LNotEqual(i000, 0xabcd0004)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0004) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m003 Store(0xabcd9003, i000) CH03("", z136, 0x10c, __LINE__, 0) Store(m003(0), i000) if (SLCK) { CH03("", z136, 0x10d, __LINE__, 0) if (LNotEqual(i000, 0xabcd0006)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0006) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m004(0) Store(0xabcd9004, i000) CH03("", z136, 0x110, __LINE__, 0) Store(m004(0), i000) if (SLCK) { CH03("", z136, 0x111, __LINE__, 0) if (LNotEqual(i000, 0xabcd0007)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0007) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m004(0x12345678) Store(0xabcd9005, i000) CH03("", z136, 0x114, __LINE__, 0) Store(m004(0x12345678), i000) if (SLCK) { CH03("", z136, 0x115, __LINE__, 0) if (LNotEqual(i000, 0xabcd0008)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0008) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m004(Default) Store(0xabcd9006, i000) CH03("", z136, 0x118, __LINE__, 0) Store(m004(1111), i000) if (SLCK) { CH03("", z136, 0x119, __LINE__, 0) if (LNotEqual(i000, 0xabcd0009)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0009) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m005 Store(0xabcd9007, i000) CH03("", z136, 0x11c, __LINE__, 0) Store(m005(), i000) if (SLCK) { CH03("", z136, 0x11d, __LINE__, 0) if (LNotEqual(i000, 0xabcd000a)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd000a) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m006 Store(0xabcd9008, i000) CH03("", z136, 0x120, __LINE__, 0) Store(m006(), i000) if (SLCK) { CH03("", z136, 0x121, __LINE__, 0) if (y901) { Store(0xabcd0003, Local0) } else { Store(0xabcd000b, Local0) } if (LNotEqual(i000, Local0)) { err("", z136, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m007 Store(0xabcd9009, i000) CH03("", z136, 0x124, __LINE__, 0) Store(m007(), i000) if (SLCK) { CH03("", z136, 0x125, __LINE__, 0) if (y901) { Store(0xabcd0001, Local0) } else { Store(0xabcd000c, Local0) } if (LNotEqual(i000, Local0)) { err("", z136, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m008 Store(0xabcd900a, i000) CH03("", z136, 0x128, __LINE__, 0) Store(m008(), i000) if (SLCK) { CH03("", z136, 0x129, __LINE__, 0) if (LNotEqual(i000, 0xabcd000d)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd000d) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } } // Implements mf71 where i001 relocated with Local0 // to extend implicit return conditions checked Method(mff0,, Serialized) { Name(fl00, 0) Name(i000, 0xabcd0000) Method(m000) { Store(0, Local0) Store(Add(0xabcd0002, Local0), Local1) if (fl00) { Store(0xdddd0000, Local0) Return (0) } } Method(m001) { Store(0, Local0) if (fl00) { Store(0xdddd0001, Local0) Return (0) } Store(Add(0xabcd0003, Local0), Local1) } Method(m002, 1) { Store(0, Local0) if (fl00) { Store(0xdddd0002, Local0) Return (0) } if (fl00) { Return (0) } if (arg0) { Store(Add(0xabcd0004, Local0), Local1) } } Method(m003, 1) { Store(0, Local0) if (fl00) { Store(0xdddd0003, Local0) Return (0) } if (fl00) { Return (0) } if (arg0) { Store(Add(0xabcd0005, Local0), Local1) } else { Store(Add(0xabcd0006, Local0), Local1) } } Method(m004, 1) { Store(0, Local0) if (fl00) { Return (0) } switch (arg0) { case (0) { Store(Add(0xabcd0007, Local0), Local1) } case (0x12345678) { Store(Add(0xabcd0008, Local0), Local1) } default { Store(Add(0xabcd0009, Local0), Local1) } } } Method(m005) { Store(0, Local0) if (fl00) { Return (0) } While (1) { Store(Add(0xabcd000a, Local0), Local1) Break } } Method(m006) { Store(0, Local0) if (fl00) { Return (0) } Store(Add(0xabcd000b, Local0), Local1) While (0xabcd0002) { Break } } Method(m007,, Serialized) { Name(i000, 0) Name(num, 0) Name(lpN0, 0) Name(lpC0, 0) Store(10, num) Store(num, lpN0) Store(0, lpC0) if (fl00) { Return (0) } Store(0, Local0) While (lpN0) { if (i000) { Break } Decrement(lpN0) Increment(lpC0) Store(0xabcd0005, i000) Store(Add(0xabcd000c, Local0), Local1) Continue } } Method(m008) { Method(m000) { Store(0, Local0) Store(Add(0xabcd000d, Local0), Local1) } if (fl00) { Return (0) } m000() } Method(m009) { Method(m000) { Store(0, Local0) Store(Add(Local0, 0xabcd000e, Local0), Local1) m001(Local0) } Method(m001, 1) { Store(arg0, Local0) } if (fl00) { Return (0) } m000() } // m000 Store(0xabcd9000, i000) CH03("", z136, 0x12c, __LINE__, 0) Store(m000(), i000) if (SLCK) { CH03("", z136, 0x12d, __LINE__, 0) if (y901) { Store(0, Local0) } else { Store(0xabcd0002, Local0) } if (LNotEqual(i000, Local0)) { err("", z136, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m001 Store(0xabcd9001, i000) CH03("", z136, 0x130, __LINE__, 0) Store(m001(), i000) if (SLCK) { CH03("", z136, 0x131, __LINE__, 0) if (LNotEqual(i000, 0xabcd0003)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0003) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m002 Store(0xabcd9002, i000) CH03("", z136, 0x134, __LINE__, 0) Store(m002(1), i000) if (SLCK) { CH03("", z136, 0x135, __LINE__, 0) if (LNotEqual(i000, 0xabcd0004)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0004) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m003 Store(0xabcd9003, i000) CH03("", z136, 0x138, __LINE__, 0) Store(m003(0), i000) if (SLCK) { CH03("", z136, 0x139, __LINE__, 0) if (LNotEqual(i000, 0xabcd0006)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0006) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m004(0) Store(0xabcd9004, i000) CH03("", z136, 0x13b, __LINE__, 0) Store(m004(0), i000) if (SLCK) { CH03("", z136, 0x13c, __LINE__, 0) if (LNotEqual(i000, 0xabcd0007)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0007) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m004(0x12345678) Store(0xabcd9005, i000) CH03("", z136, 0x13f, __LINE__, 0) Store(m004(0x12345678), i000) if (SLCK) { CH03("", z136, 0x140, __LINE__, 0) if (LNotEqual(i000, 0xabcd0008)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0008) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m004(Default) Store(0xabcd9006, i000) CH03("", z136, 0x143, __LINE__, 0) Store(m004(1111), i000) if (SLCK) { CH03("", z136, 0x144, __LINE__, 0) if (LNotEqual(i000, 0xabcd0009)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd0009) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m005 Store(0xabcd9007, i000) CH03("", z136, 0x147, __LINE__, 0) Store(m005(), i000) if (SLCK) { CH03("", z136, 0x148, __LINE__, 0) if (LNotEqual(i000, 0xabcd000a)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd000a) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m006 Store(0xabcd9008, i000) CH03("", z136, 0x14b, __LINE__, 0) Store(m006(), i000) if (SLCK) { CH03("", z136, 0x14c, __LINE__, 0) if (y901) { Store(0xabcd0002, Local0) } else { Store(0xabcd000b, Local0) } if (LNotEqual(i000, Local0)) { err("", z136, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m007 Store(0xabcd9009, i000) CH03("", z136, 0x14f, __LINE__, 0) Store(m007(), i000) if (SLCK) { CH03("", z136, 0x150, __LINE__, 0) if (y901) { Store(0xabcd0005, Local0) } else { Store(0xabcd000c, Local0) } if (LNotEqual(i000, Local0)) { err("", z136, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m008 Store(0xabcd900a, i000) CH03("", z136, 0x153, __LINE__, 0) Store(m008(), i000) if (SLCK) { CH03("", z136, 0x154, __LINE__, 0) if (LNotEqual(i000, 0xabcd000d)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd000d) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } // m009 Store(0xabcd900b, i000) CH03("", z136, 0x157, __LINE__, 0) Store(m009(), i000) if (SLCK) { CH03("", z136, 0x158, __LINE__, 0) if (LNotEqual(i000, 0xabcd000e)) { err("", z136, __LINE__, 0, 0, i000, 0xabcd000e) } } else { CH04("", 0, 0xff, z136, __LINE__, 0, 0) } } ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/standaloneret.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/standalon0000700000175000017500000001430514773714155033317 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Test of Impllicit Return * * The last operation of Methods is a standalone Return. */ Name(z137, 137) Method(mf6f,, Serialized) { Name(fl00, 0) Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Method(m000) { Store(0xabcd0002, i001) if (fl00) { Store(0xdddd0000, i001) Return (0) } Return } Method(m001) { if (fl00) { Store(0xdddd0001, i001) Return (0) } Store(0xabcd0003, i001) Return } Method(m002, 1) { if (fl00) { Store(0xdddd0002, i001) Return (0) } if (fl00) { Return (0) } if (arg0) { Store(0xabcd0004, i001) Return } } Method(m003, 1) { if (fl00) { Store(0xdddd0003, i001) Return (0) } if (fl00) { Return (0) } if (arg0) { Store(0xabcd0005, i001) } else { Store(0xabcd0006, i001) } Return } Method(m004, 1) { if (fl00) { Return (0) } switch (arg0) { case (0) { Store(0xabcd0007, i001) } case (0x12345678) { Store(0xabcd0008, i001) } default { Store(0xabcd0009, i001) } } Return } Method(m005) { if (fl00) { Return (0) } While (1) { Store(0xabcd000a, i001) Break } Return } Method(m006) { if (fl00) { Return (0) } Store(0xabcd000b, i001) While (1) { Break } Return } Method(m007,, Serialized) { Name(i000, 0) Name(num, 0) Name(lpN0, 0) Name(lpC0, 0) Store(10, num) Store(num, lpN0) Store(0, lpC0) if (fl00) { Return (0) } While (lpN0) { if (i000) { Break } Decrement(lpN0) Increment(lpC0) Store(1, i000) Store(0xabcd000c, i001) Continue } Return } Method(m008) { Method(m000) { Store(0xabcd000d, i001) } if (fl00) { Return (0) } m000() Return } // m000 Store(0xabcd9000, i000) CH03("", z137, 0x200, __LINE__, 0) Store(m000(), i000) if (SLCK) { CH03("", z137, 0x201, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x203, __LINE__, 0) } // m001 Store(0xabcd9001, i000) CH03("", z137, 0x204, __LINE__, 0) Store(m001(), i000) if (SLCK) { CH03("", z137, 0x205, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x207, __LINE__, 0) } // m002 Store(0xabcd9002, i000) CH03("", z137, 0x208, __LINE__, 0) Store(m002(1), i000) if (SLCK) { CH03("", z137, 0x209, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x20b, __LINE__, 0) } // m003 Store(0xabcd9003, i000) CH03("", z137, 0x20c, __LINE__, 0) Store(m003(0), i000) if (SLCK) { CH03("", z137, 0x20d, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x20f, __LINE__, 0) } // m004(0) Store(0xabcd9004, i000) CH03("", z137, 0x210, __LINE__, 0) Store(m004(0), i000) if (SLCK) { CH03("", z137, 0x211, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x213, __LINE__, 0) } // m004(0x12345678) Store(0xabcd9005, i000) CH03("", z137, 0x214, __LINE__, 0) Store(m004(0x12345678), i000) if (SLCK) { CH03("", z137, 0x215, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x217, __LINE__, 0) } // m004(Default) Store(0xabcd9006, i000) CH03("", z137, 0x218, __LINE__, 0) Store(m004(1111), i000) if (SLCK) { CH03("", z137, 0x219, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x21b, __LINE__, 0) } // m005 Store(0xabcd9007, i000) CH03("", z137, 0x21c, __LINE__, 0) Store(m005(), i000) if (SLCK) { CH03("", z137, 0x21d, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x21f, __LINE__, 0) } // m006 Store(0xabcd9008, i000) CH03("", z137, 0x220, __LINE__, 0) Store(m006(), i000) if (SLCK) { CH03("", z137, 0x221, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x223, __LINE__, 0) } // m007 Store(0xabcd9009, i000) CH03("", z137, 0x224, __LINE__, 0) Store(m007(), i000) if (SLCK) { CH03("", z137, 0x225, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x227, __LINE__, 0) } // m008 Store(0xabcd900a, i000) CH03("", z137, 0x228, __LINE__, 0) Store(m008(), i000) if (SLCK) { CH03("", z137, 0x229, __LINE__, 0) if (LNotEqual(i000, 0)) { err("", z137, __LINE__, 0, 0, i000, 0) } } else { CH03("", z137, 0x22b, __LINE__, 0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/store.asl0000700000175000017500000007200414773714155033246 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Test of Impllicit Return * * The last operation of Methods is Store. */ Name(z138, 138) Method(mf6c,, Serialized) { Name(fl00, 0) Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Method(m000) { Store(0xabcd0002, i001) if (fl00) { Store(0xdddd0000, i001) Return (0) } } Method(m001) { if (fl00) { Store(0xdddd0001, i001) Return (0) } Store(0xabcd0003, i001) } Method(m002, 1) { if (fl00) { Store(0xdddd0002, i001) Return (0) } if (fl00) { Return (0) } if (arg0) { Store(0xabcd0004, i001) } } Method(m003, 1) { if (fl00) { Store(0xdddd0003, i001) Return (0) } if (fl00) { Return (0) } if (arg0) { Store(0xabcd0005, i001) } else { Store(0xabcd0006, i001) } } Method(m004, 1) { if (fl00) { Return (0) } switch (arg0) { case (0) { Store(0xabcd0007, i001) } case (0x12345678) { Store(0xabcd0008, i001) } default { Store(0xabcd0009, i001) } } } Method(m005) { if (fl00) { Return (0) } While (1) { Store(0xabcd000a, i001) Break } } Method(m006) { if (fl00) { Return (0) } Store(0xabcd000b, i001) While (1) { Break } } Method(m007,, Serialized) { Name(i000, 0) Name(num, 0) Name(lpN0, 0) Name(lpC0, 0) Store(10, num) Store(num, lpN0) Store(0, lpC0) if (fl00) { Return (0) } While (lpN0) { if (i000) { Break } Decrement(lpN0) Increment(lpC0) Store(1, i000) Store(0xabcd000c, i001) Continue } } Method(m008) { Method(m000) { Store(0xabcd000d, i001) } if (fl00) { Return (0) } m000() } // m000 Store(0xabcd9000, i000) CH03("", z138, 0x000, __LINE__, 0) Store(m000(), i000) if (SLCK) { CH03("", z138, 0x001, __LINE__, 0) if (y901) { Store(0, Local0) } else { Store(0xabcd0002, Local0) } if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m001 Store(0xabcd9001, i000) CH03("", z138, 0x004, __LINE__, 0) Store(m001(), i000) if (SLCK) { CH03("", z138, 0x005, __LINE__, 0) if (LNotEqual(i000, 0xabcd0003)) { err("", z138, __LINE__, 0, 0, i000, 0xabcd0003) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m002 Store(0xabcd9002, i000) CH03("", z138, 0x008, __LINE__, 0) Store(m002(1), i000) if (SLCK) { CH03("", z138, 0x009, __LINE__, 0) if (LNotEqual(i000, 0xabcd0004)) { err("", z138, __LINE__, 0, 0, i000, 0xabcd0004) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m003 Store(0xabcd9003, i000) CH03("", z138, 0x00c, __LINE__, 0) Store(m003(0), i000) if (SLCK) { CH03("", z138, 0x00d, __LINE__, 0) if (LNotEqual(i000, 0xabcd0006)) { err("", z138, __LINE__, 0, 0, i000, 0xabcd0006) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m004(0) Store(0xabcd9004, i000) CH03("", z138, 0x010, __LINE__, 0) Store(m004(0), i000) if (SLCK) { CH03("", z138, 0x011, __LINE__, 0) if (LNotEqual(i000, 0xabcd0007)) { err("", z138, __LINE__, 0, 0, i000, 0xabcd0007) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m004(0x12345678) Store(0xabcd9005, i000) CH03("", z138, 0x014, __LINE__, 0) Store(m004(0x12345678), i000) if (SLCK) { CH03("", z138, 0x015, __LINE__, 0) if (LNotEqual(i000, 0xabcd0008)) { err("", z138, __LINE__, 0, 0, i000, 0xabcd0008) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m004(Default) Store(0xabcd9006, i000) CH03("", z138, 0x018, __LINE__, 0) Store(m004(1111), i000) if (SLCK) { CH03("", z138, 0x019, __LINE__, 0) if (LNotEqual(i000, 0xabcd0009)) { err("", z138, __LINE__, 0, 0, i000, 0xabcd0009) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m005 Store(0xabcd9007, i000) CH03("", z138, 0x01c, __LINE__, 0) Store(m005(), i000) if (SLCK) { CH03("", z138, 0x01d, __LINE__, 0) if (LNotEqual(i000, 0xabcd000a)) { err("", z138, __LINE__, 0, 0, i000, 0xabcd000a) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m006 Store(0xabcd9008, i000) CH03("", z138, 0x020, __LINE__, 0) Store(m006(), i000) if (SLCK) { CH03("", z138, 0x021, __LINE__, 0) if (y901) { Store(1, Local0) } else { Store(0xabcd000b, Local0) } if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m007 Store(0xabcd9009, i000) CH03("", z138, 0x024, __LINE__, 0) Store(m007(), i000) if (SLCK) { CH03("", z138, 0x025, __LINE__, 0) if (y901) { Store(1, Local0) } else { Store(0xabcd000c, Local0) } if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m008 Store(0xabcd900a, i000) CH03("", z138, 0x028, __LINE__, 0) Store(m008(), i000) if (SLCK) { CH03("", z138, 0x029, __LINE__, 0) if (LNotEqual(i000, 0xabcd000d)) { err("", z138, __LINE__, 0, 0, i000, 0xabcd000d) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } } Method(mf6e,, Serialized) { Name(fl00, 0) Name(i000, 0xaaaa0000) Name(i001, 0xaaaa0001) Name(i002, 0xaaaa0002) Name(i003, 0xaaaa0003) Method(m000) { if (fl00) { Return (0) } Increment(i002) Store(Add(0xaaaa0003, 0), Local1) Store(Subtract(0xaaaa0004, 0), Local1) Store(Multiply(0xaaaa0005, 1), Local1) Store(0xaaaa0006, i001) } Method(m001) { if (fl00) { Return (0) } if (Store(0xaaaa0007, i001)) { Increment(i002) Store(Add(0xaaaa0008, 0), Local1) Store(Subtract(0xaaaa0009, 0), Local1) Store(Multiply(0xaaaa000a, 1), Local1) Store(0xaaaa000d, i001) Decrement(i001) } } Method(m002) { if (fl00) { Return (0) } if (Add(0xaaaa000d, 0)) { if (0xaaaa000e) { Increment(i002) Store(Add(0xaaaa000f, 0), Local1) Store(Subtract(0xaaaa0010, 0), Local1) Store(Multiply(0xaaaa0011, 1), Local1) Store(0xaaaa0012, i001) Increment(i001) }} } Method(m003) { if (fl00) { Return (0) } while (Subtract(0xaaaa0014, 0)) { Increment(i002) Store(Add(0xaaaa0015, 0), Local1) Store(Subtract(0xaaaa0016, 0), Local1) Store(Multiply(0xaaaa0017, 1), Local1) Store(0xaaaa0018, i001) Store(Multiply(0xaaaa0019, 1), Local1) Break } } Method(m004) { if (fl00) { Return (0) } switch (Multiply(0xaaaa001a, 1)) { case (0) { Store(0xaaaa001b, i001) } case (0xaaaa001a) { Store(0xaaaa001c, i001) } default { Store(0xaaaa001d, i001) } } } // Predicates of If Method(m006) { if (fl00) { return (0xabcd0000) } } Method(m007) { if (0) { return (0xabcd0000) } } Method(m008) { if (0) { return (0xabcd0001) } if (0xabcd0000) { } } Method(m009,, Serialized) { Name(i000, 0xabcd0000) if (0) { return (0xabcd0001) } if (i000) { } } Name(i004, 0xabcd0008) Method(m00a) { if (0) { return (0xabcd0001) } if (i004) { } } Method(m00b) { if (0) { return (0xabcd0005) } if (LEqual(0xabcd0008, i004)) { } } Method(m00c) { if (0) { return (0xabcd0005) } if (LEqual(0xabcd0009, i004)) { } } // Predicates of While Method(m00d) { if (0) { return (0xabcd0005) } While (0xabcd0009) { Break } } Method(m00e) { if (0) { return (0xabcd0005) } While (LEqual(0xabcd0008, i004)) { Break } } Method(m00f) { if (0) { return (0xabcd0005) } While (LEqual(0xabcd0009, i004)) { Break } } Method(m010) { if (0) { return (0xabcd0005) } While (i004) { Break } } // Predicates of Switch Method(m011) { if (0) { return (0xabcd0005) } Switch (0xabcd0009) { Case (0xabcd0007) { } Case (0xabcd0008) { } } } Method(m012) { if (0) { return (0xabcd0005) } Switch (0xabcd0009) { Case (0xabcd0007) { } Case (0xabcd0009) { } Case (0xabcd0008) { } } } Name(i006, 0x11220000) Name(i007, 0x33440000) Method(m005, 1, Serialized) { Name(r001, 1) Name(r002, 1) Name(r003, 1) Name(brk0, 0) Name(tmp0, 0) if (LEqual(arg0, 1)) { Store(0, r001) } if (LEqual(arg0, 2)) { Store(0, r002) Store(i006, brk0) } if (LEqual(arg0, 3)) { Store(0, r003) Store(i007, brk0) } Store(0xdddd0000, i000) CH03("", z138, 0x02c, __LINE__, 0) Store(m000(), i000) if (SLCK) { CH03("", z138, 0x02d, __LINE__, 0) Store(0xaaaa0006, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x030, __LINE__, 0) Store(m001(), i000) if (SLCK) { CH03("", z138, 0x031, __LINE__, 0) Store(0xaaaa000c, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x034, __LINE__, 0) Store(m002(), i000) if (SLCK) { CH03("", z138, 0x035, __LINE__, 0) Store(0xaaaa0013, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x038, __LINE__, 0) Store(m003(), i000) if (SLCK) { CH03("", z138, 0x039, __LINE__, 0) Store(0xaaaa0019, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // Predicates Store(0xdddd0000, i000) CH03("", z138, 0x03c, __LINE__, 0) Store(m006(), i000) if (LAnd(SLCK, y901)) { CH03("", z138, 0x03d, __LINE__, 0) Store(0, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x040, __LINE__, 0) Store(m007(), i000) if (LAnd(SLCK, y901)) { CH03("", z138, 0x041, __LINE__, 0) Store(0, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x044, __LINE__, 0) Store(m008(), i000) if (LAnd(SLCK, y901)) { CH03("", z138, 0x045, __LINE__, 0) Store(0xabcd0000, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x048, __LINE__, 0) Store(m009(), i000) if (LAnd(SLCK, y901)) { CH03("", z138, 0x049, __LINE__, 0) Store(0xabcd0000, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x04c, __LINE__, 0) Store(m00a(), i000) if (LAnd(SLCK, y901)) { CH03("", z138, 0x04d, __LINE__, 0) Store(0xabcd0008, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0, tmp0) if (LAnd(SLCK, LOr(y901, y263))) { Store(1, tmp0) } Store(0xdddd0000, i000) CH03("", z138, 0x050, __LINE__, 0) Store(m00b(), i000) if (tmp0) { CH03("", z138, 0x051, __LINE__, 0) // Oct 2013, David Box // Implicit return for logical operations (LNot, LEqual, ...) // returns logical value of the operation Store(Ones, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0, tmp0) if (LAnd(SLCK, LOr(y901, y263))) { Store(1, tmp0) } Store(0xdddd0000, i000) CH03("", z138, 0x054, __LINE__, 0) Store(m00c(), i000) if (tmp0) { CH03("", z138, 0x055, __LINE__, 0) // Oct 2013, David Box // Implicit return for logical operations (LNot, LEqual, ...) // returns logical value of the operation Store(Zero, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x058, __LINE__, 0) Store(m00d(), i000) if (LAnd(SLCK, y901)) { CH03("", z138, 0x059, __LINE__, 0) Store(0xabcd0009, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0, tmp0) if (LAnd(SLCK, LOr(y901, y263))) { Store(1, tmp0) } Store(0xdddd0000, i000) CH03("", z138, 0x05c, __LINE__, 0) Store(m00e(), i000) if (tmp0) { CH03("", z138, 0x05d, __LINE__, 0) // Oct 2013, David Box // Implicit return for logical operations (LNot, LEqual, ...) // returns logical value of the operation Store(Ones, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0, tmp0) if (LAnd(SLCK, LOr(y901, y263))) { Store(1, tmp0) } Store(0xdddd0000, i000) CH03("", z138, 0x060, __LINE__, 0) Store(m00f(), i000) if (tmp0) { CH03("", z138, 0x061, __LINE__, 0) // Oct 2013, David Box // Implicit return for logical operations (LNot, LEqual, ...) // returns logical value of the operation Store(Zero, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x064, __LINE__, 0) Store(m010(), i000) if (LAnd(SLCK, y901)) { CH03("", z138, 0x065, __LINE__, 0) Store(0xabcd0008, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } if (y901) { Store(0xdddd0000, i000) CH03("", z138, 0x068, __LINE__, 0) Store(m011(), i000) if (LAnd(SLCK, y901)) { CH03("", z138, 0x069, __LINE__, 0) Store(Zero, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x06c, __LINE__, 0) Store(m012(), i000) if (LAnd(SLCK, y901)) { CH03("", z138, 0x06d, __LINE__, 0) Store(Ones, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } } /* if (y901) */ // Should be the last Store(0xdddd0000, i000) CH03("", z138, 0x070, __LINE__, 0) Store(m004(), i000) if (SLCK) { CH03("", z138, 0x071, __LINE__, 0) Store(0xaaaa001c, Local0) if (LNotEqual(i000, Local0)) { err("", z138, __LINE__, 0, 0, i000, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } if (r001) { while (0xabcd0000) { m000() m001() m002() m003() m004() if (0xabcd0001) { while (0xabcd0002) { if (0xabcd0003) { while (0xabcd0004) { if (0xabcd0005) { while (0xabcd0006) { if (0xabcd0007) { Store(0xdddd0000, i000) CH03("", z138, 0x040, __LINE__, 0) Store(m000(), i000) if (r002) { if (SLCK) { CH03("", z138, 0x041, __LINE__, 0) if (LNotEqual(i000, 0xaaaa0006)) { err("", z138, __LINE__, 0, 0, i000, 0xaaaa0006) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x044, __LINE__, 0) Store(m001(), i000) if (SLCK) { CH03("", z138, 0x045, __LINE__, 0) if (LNotEqual(i000, 0xaaaa000c)) { err("", z138, __LINE__, 0, 0, i000, 0xaaaa000c) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0123, i000) if (r003) { CH03("", z138, 0x048, __LINE__, 0) Store(m002(), i000) if (SLCK) { CH03("", z138, 0x049, __LINE__, 0) if (LNotEqual(i000, 0xaaaa0013)) { err("", z138, __LINE__, 0, 0, i000, 0xaaaa0013) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x04c, __LINE__, 0) Store(m003(), i000) if (SLCK) { CH03("", z138, 0x04d, __LINE__, 0) if (LNotEqual(i000, 0xaaaa0019)) { err("", z138, __LINE__, 0, 0, i000, 0xaaaa0019) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } Store(0xdddd0000, i000) CH03("", z138, 0x050, __LINE__, 0) Store(m004(), i000) if (SLCK) { CH03("", z138, 0x051, __LINE__, 0) if (LNotEqual(i000, 0xaaaa001c)) { err("", z138, __LINE__, 0, 0, i000, 0xaaaa001c) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } while (0xabcd0008) { if (0xabcd0009) { while (0xabcd000a) { if (0xabcd000b) { while (0xabcd000c) { if (0xabcd000d) { while (0xabcd000e) { if (0xabcd000f) { if (0) { Store("Impossible 0", Debug) } else { if (0xabcd0010) { return (0xabcd0030) } } }}}} m000() m001() m002() m003() m004() }}}} m000() m001() m002() m003() m004() } else { Break } /* r003 */ } else { Break } /* r002 */ } if (brk0) { Break } }} if (brk0) { Break } }} if (brk0) { Break } }} if (brk0) { Break } } } /* if (r001) */ } // 0000 Store(0xdddd0000, i003) CH03("", z138, 0x054, __LINE__, 0) Store(m005(0), i003) if (SLCK) { CH03("", z138, 0x055, __LINE__, 0) if (LNotEqual(i003, 0xabcd0030)) { err("", z138, __LINE__, 0, 0, i003, 0xabcd0030) } } else { CH03("", z138, 0x057, __LINE__, 0) } // r001 Store(0xdddd0000, i003) CH03("", z138, 0x058, __LINE__, 0) Store(m005(1), i003) if (SLCK) { CH03("", z138, 0x059, __LINE__, 0) if (y901) { Store(0, Local0) } else { Store(Ones, Local0) } if (LNotEqual(i003, Local0)) { err("", z138, __LINE__, 0, 0, i003, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // r002 Store(0xdddd0000, i003) CH03("", z138, 0x05c, __LINE__, 0) Store(m005(2), i003) if (SLCK) { CH03("", z138, 0x05d, __LINE__, 0) if (y901) { Store(i006, Local0) } else { Store(0xaaaa0006, Local0) } if (LNotEqual(i003, Local0)) { err("", z138, __LINE__, 0, 0, i003, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // r003 Store(0xdddd0000, i003) CH03("", z138, 0x060, __LINE__, 0) Store(m005(3), i003) if (SLCK) { CH03("", z138, 0x061, __LINE__, 0) if (y901) { Store(i007, Local0) } else { Store(0xdddd0123, Local0) } if (LNotEqual(i003, Local0)) { err("", z138, __LINE__, 0, 0, i003, Local0) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } } // Reproduces specific implicit return conditions Method(mff1,, Serialized) { Name(fl00, 0) Name(i000, 0) Name(i001, 0) Name(i002, 0) Name(i003, 0) Name(i004, 0) Name(i005, 0) Name(i006, 0) Name(i007, 0) Name(i008, 0) Method (m000, 1) { if (fl00) { Return ("m000") } Store (Arg0, i000) m001 (Arg0) } Method (m001, 1) { Store (Arg0, i001) } Method(m002) { if (fl00) { Return ("m002") } Or (0xf2, 0x01, Local0) m000 (Local0) } // Case to call AcpiDsDoImplicitReturn with AddReference == 1 and // WalkState->ImplicitReturnObj == NULL Method (m003) { Store(0xfabec, Local0) } Method(m004) { if (fl00) { Return ("m004") } m003() } // Case to call AcpiDsDoImplicitReturn with AddReference == 1 and // WalkState->ImplicitReturnObj == NULL, then check which a case of // AcpiDsClearImplicitReturn will be called when a new result appears. Method (m005) { Store(0xfabec, Local0) } Method(m006) { if (fl00) { Return ("m006") } m005() Store(0xcedab, Local0) } // Case to call AcpiDsDoImplicitReturn with AddReference == 1 and // ReturnDesc != NULL && (WalkState->ImplicitReturnObj == ReturnDesc) // Case when Result is used Method (m007) { Store(Store(Store(0xabcd, i002), i003), i004) } Method(m008) { if (fl00) { Return ("m008") } m007() } // Case to call AcpiDsDoImplicitReturn with AddReference == 1 and // ReturnDesc != NULL && (WalkState->ImplicitReturnObj == ReturnDesc) // Case when Result is not used Method (m009, 1) { if (arg0) { Store(Store(0x1234, i005), i006) } else { Store(Store(0x5678, i007), i008) } } Method(m00a) { if (fl00) { Return ("m00a") } m009(0) m009(1) } Method(m00b) { if (fl00) { Return ("m00b") } m009(1) m009(0) } // m002 Store(0, Local0) CH03("", z138, 0x064, __LINE__, 0) Store(m002(), Local0) if (SLCK) { CH03("", z138, 0x065, __LINE__, 0) if (LNotEqual(Local0, 0xf3)) { err("", z138, __LINE__, 0, 0, Local0, 0xf3) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m004 Store(0, Local0) CH03("", z138, 0x068, __LINE__, 0) Store(m004(), Local0) if (SLCK) { CH03("", z138, 0x069, __LINE__, 0) if (LNotEqual(Local0, 0xfabec)) { err("", z138, __LINE__, 0, 0, Local0, 0xfabec) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m006 Store(0, Local0) CH03("", z138, 0x06e, __LINE__, 0) Store(m006(), Local0) if (SLCK) { CH03("", z138, 0x06f, __LINE__, 0) if (LNotEqual(Local0, 0xcedab)) { err("", z138, __LINE__, 0, 0, Local0, 0xcedab) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m008 Store(0, Local0) CH03("", z138, 0x072, __LINE__, 0) Store(m008(), Local0) if (SLCK) { CH03("", z138, 0x073, __LINE__, 0) if (LNotEqual(Local0, 0xabcd)) { err("", z138, __LINE__, 0, 0, Local0, 0xabcd) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m00a Store(0, Local0) CH03("", z138, 0x076, __LINE__, 0) Store(m00a(), Local0) if (SLCK) { CH03("", z138, 0x077, __LINE__, 0) if (LNotEqual(Local0, 0x1234)) { err("", z138, __LINE__, 0, 0, Local0, 0x1234) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } // m00b Store(0, Local0) CH03("", z138, 0x080, __LINE__, 0) Store(m00b(), Local0) if (SLCK) { CH03("", z138, 0x081, __LINE__, 0) if (LNotEqual(Local0, 0x5678)) { err("", z138, __LINE__, 0, 0, Local0, 0x5678) } } else { CH04("", 0, 0xff, z138, __LINE__, 0, 0) } if (LNotEqual(i000, 0xf3)) { err("", z138, __LINE__, 0, 0, i000, 0xf3) } if (LNotEqual(i001, 0xf3)) { err("", z138, __LINE__, 0, 0, i001, 0xf3) } if (LNotEqual(i002, 0xabcd)) { err("", z138, __LINE__, 0, 0, i002, 0xabcd) } if (LNotEqual(i003, 0xabcd)) { err("", z138, __LINE__, 0, 0, i003, 0xabcd) } if (LNotEqual(i004, 0xabcd)) { err("", z138, __LINE__, 0, 0, i004, 0xabcd) } if (LNotEqual(i005, 0x1234)) { err("", z138, __LINE__, 0, 0, i005, 0x1234) } if (LNotEqual(i006, 0x1234)) { err("", z138, __LINE__, 0, 0, i006, 0x1234) } if (LNotEqual(i007, 0x5678)) { err("", z138, __LINE__, 0, 0, i007, 0x5678) } if (LNotEqual(i008, 0x5678)) { err("", z138, __LINE__, 0, 0, i008, 0x5678) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/MAIN.asl0000700000175000017500000000420314773714155032632 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "implicitreturn.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/functional/control/ImplicitReturn/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/functional/control/ImplicitReturn/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ctl2.asl0000700000175000017500000005026214773714155030006 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Conditional execution * * Huge, many levels embedded {if,elseif,else} * Note: it was verified as C program. */ Name(z005, 5) Method(m040, 1) { Store(0x71286345, Local0) if (RNG0(arg0, 0, 26)) { Store(0, Local0) // embedded if (20 levels) if (RNG0(arg0, 1, 21)) { // 1 Store(1, Local0) if (RNG0(arg0, 2, 21)) { Store(2, Local0) if (RNG0(arg0, 3, 21)) { Store(3, Local0) if (RNG0(arg0, 4, 21)) { Store(4, Local0) if (RNG0(arg0, 5, 21)) { Store(5, Local0) if (RNG0(arg0, 6, 21)) { Store(6, Local0) if (RNG0(arg0, 7, 21)) { Store(7, Local0) if (RNG0(arg0, 8, 21)) { Store(8, Local0) if (RNG0(arg0, 9, 21)) { Store(9, Local0) if (RNG0(arg0, 10, 21)) { Store(10, Local0) if (RNG0(arg0, 11, 21)) { // 11 Store(11, Local0) if (RNG0(arg0, 12, 21)) { Store(12, Local0) if (RNG0(arg0, 13, 21)) { Store(13, Local0) if (RNG0(arg0, 14, 21)) { Store(14, Local0) if (RNG0(arg0, 15, 21)) { Store(15, Local0) if (RNG0(arg0, 16, 21)) { Store(16, Local0) if (RNG0(arg0, 17, 21)) { Store(17, Local0) if (RNG0(arg0, 18, 21)) { Store(18, Local0) if (RNG0(arg0, 19, 21)) { Store(19, Local0) if (RNG0(arg0, 20, 21)) { Store(20, Local0) if (LEqual(arg0, 21)) { // 21 Store(21, Local0) } } } } } } } } } } } } } } } } } } } } } if (LEqual(arg0, 22)) { Store(22, Local0) } elseif (LEqual(arg0, 23)) { Store(23, Local0) } if (LEqual(arg0, 24)) { Store(24, Local0) } elseif (LEqual(arg0, 25)) { Store(25, Local0) } elseif (LEqual(arg0, 26)) { Store(26, Local0) } } elseif (RNG0(arg0, 27, 49)) { if (LEqual(arg0, 27)) { Store(27, Local0) } else { // embedded else (20 levels) if (LEqual(arg0, 28)) { Store(28, Local0) } else { // 1 if (LEqual(arg0, 29)) { Store(29, Local0) } else { if (LEqual(arg0, 30)) { Store(30, Local0) } else { if (LEqual(arg0, 31)) { Store(31, Local0) } else { if (LEqual(arg0, 32)) { Store(32, Local0) } else { if (LEqual(arg0, 33)) { Store(33, Local0) } else { if (LEqual(arg0, 34)) { Store(34, Local0) } else { if (LEqual(arg0, 35)) { Store(35, Local0) } else { if (LEqual(arg0, 36)) { Store(36, Local0) } else { if (LEqual(arg0, 37)) { Store(37, Local0) } else { if (LEqual(arg0, 38)) { Store(38, Local0) } else { // 11 if (LEqual(arg0, 39)) { Store(39, Local0) } else { if (LEqual(arg0, 40)) { Store(40, Local0) } else { if (LEqual(arg0, 41)) { Store(41, Local0) } else { if (LEqual(arg0, 42)) { Store(42, Local0) } else { if (LEqual(arg0, 43)) { Store(43, Local0) } else { if (LEqual(arg0, 44)) { Store(44, Local0) } else { if (LEqual(arg0, 45)) { Store(45, Local0) } else { if (LEqual(arg0, 46)) { Store(46, Local0) } else { if (LEqual(arg0, 47)) { Store(47, Local0) } else { if (LEqual(arg0, 48)) { Store(48, Local0) } else { // 21 Store(49, Local0) } } } } } } } } } } } } } } } } } } } } } } } elseif (RNG0(arg0, 50, 52)) { if (LEqual(arg0, 50)) { Store(50, Local0) } elseif (LEqual(arg0, 51)) { Store(51, Local0) } else { Store(52, Local0) } } elseif (RNG0(arg0, 53, 56)) { if (LEqual(arg0, 53)) { Store(53, Local0) } elseif (LEqual(arg0, 54)) { Store(54, Local0) } elseif (LEqual(arg0, 55)) { Store(55, Local0) } else { Store(56, Local0) } // 100 elseif } elseif (LEqual(arg0, 57)) { // 1 Store(57, Local0) } elseif (LEqual(arg0, 58)) { Store(58, Local0) } elseif (LEqual(arg0, 59)) { Store(59, Local0) } elseif (LEqual(arg0, 60)) { Store(60, Local0) } elseif (LEqual(arg0, 61)) { Store(61, Local0) } elseif (LEqual(arg0, 62)) { Store(62, Local0) } elseif (LEqual(arg0, 63)) { Store(63, Local0) } elseif (LEqual(arg0, 64)) { Store(64, Local0) } elseif (LEqual(arg0, 65)) { Store(65, Local0) } elseif (LEqual(arg0, 66)) { Store(66, Local0) } elseif (LEqual(arg0, 67)) { // 11 Store(67, Local0) } elseif (LEqual(arg0, 68)) { Store(68, Local0) } elseif (LEqual(arg0, 69)) { Store(69, Local0) } elseif (LEqual(arg0, 70)) { Store(70, Local0) } elseif (LEqual(arg0, 71)) { Store(71, Local0) } elseif (LEqual(arg0, 72)) { Store(72, Local0) } elseif (LEqual(arg0, 73)) { Store(73, Local0) } elseif (LEqual(arg0, 74)) { Store(74, Local0) } elseif (LEqual(arg0, 75)) { Store(75, Local0) } elseif (LEqual(arg0, 76)) { Store(76, Local0) } elseif (LEqual(arg0, 77)) { // 21 Store(77, Local0) } elseif (LEqual(arg0, 78)) { Store(78, Local0) } elseif (LEqual(arg0, 79)) { Store(79, Local0) } elseif (LEqual(arg0, 80)) { Store(80, Local0) } elseif (LEqual(arg0, 81)) { Store(81, Local0) } elseif (LEqual(arg0, 82)) { Store(82, Local0) } elseif (LEqual(arg0, 83)) { Store(83, Local0) } elseif (LEqual(arg0, 84)) { Store(84, Local0) } elseif (LEqual(arg0, 85)) { Store(85, Local0) } elseif (LEqual(arg0, 86)) { Store(86, Local0) } elseif (LEqual(arg0, 87)) { // 31 Store(87, Local0) } elseif (LEqual(arg0, 88)) { Store(88, Local0) } elseif (LEqual(arg0, 89)) { Store(89, Local0) } elseif (LEqual(arg0, 90)) { Store(90, Local0) } elseif (LEqual(arg0, 91)) { Store(91, Local0) } elseif (LEqual(arg0, 92)) { Store(92, Local0) } elseif (LEqual(arg0, 93)) { Store(93, Local0) } elseif (LEqual(arg0, 94)) { Store(94, Local0) } elseif (LEqual(arg0, 95)) { Store(95, Local0) } elseif (LEqual(arg0, 96)) { Store(96, Local0) } elseif (LEqual(arg0, 97)) { // 41 Store(97, Local0) } elseif (LEqual(arg0, 98)) { Store(98, Local0) } elseif (LEqual(arg0, 99)) { Store(99, Local0) } elseif (LEqual(arg0, 100)) { Store(100, Local0) } elseif (LEqual(arg0, 101)) { Store(101, Local0) } elseif (LEqual(arg0, 102)) { Store(102, Local0) } elseif (LEqual(arg0, 103)) { Store(103, Local0) } elseif (LEqual(arg0, 104)) { Store(104, Local0) } elseif (LEqual(arg0, 105)) { Store(105, Local0) } elseif (LEqual(arg0, 106)) { Store(106, Local0) } elseif (LEqual(arg0, 107)) { // 51 Store(107, Local0) } elseif (LEqual(arg0, 108)) { Store(108, Local0) } elseif (LEqual(arg0, 109)) { Store(109, Local0) } elseif (LEqual(arg0, 110)) { Store(110, Local0) } elseif (LEqual(arg0, 111)) { Store(111, Local0) } elseif (LEqual(arg0, 112)) { Store(112, Local0) } elseif (LEqual(arg0, 113)) { Store(113, Local0) } elseif (LEqual(arg0, 114)) { Store(114, Local0) } elseif (LEqual(arg0, 115)) { Store(115, Local0) } elseif (LEqual(arg0, 116)) { Store(116, Local0) } elseif (LEqual(arg0, 117)) { // 61 Store(117, Local0) } elseif (LEqual(arg0, 118)) { Store(118, Local0) } elseif (LEqual(arg0, 119)) { Store(119, Local0) } elseif (LEqual(arg0, 120)) { Store(120, Local0) } elseif (LEqual(arg0, 121)) { Store(121, Local0) } elseif (LEqual(arg0, 122)) { Store(122, Local0) } elseif (LEqual(arg0, 123)) { Store(123, Local0) } elseif (LEqual(arg0, 124)) { Store(124, Local0) } elseif (LEqual(arg0, 125)) { Store(125, Local0) } elseif (LEqual(arg0, 126)) { Store(126, Local0) } elseif (LEqual(arg0, 127)) { // 71 Store(127, Local0) } elseif (LEqual(arg0, 128)) { Store(128, Local0) } elseif (LEqual(arg0, 129)) { Store(129, Local0) } elseif (LEqual(arg0, 130)) { Store(130, Local0) } elseif (LEqual(arg0, 131)) { Store(131, Local0) } elseif (LEqual(arg0, 132)) { Store(132, Local0) } elseif (LEqual(arg0, 133)) { Store(133, Local0) } elseif (LEqual(arg0, 134)) { Store(134, Local0) } elseif (LEqual(arg0, 135)) { Store(135, Local0) } elseif (LEqual(arg0, 136)) { Store(136, Local0) } elseif (LEqual(arg0, 137)) { // 81 Store(137, Local0) } elseif (LEqual(arg0, 138)) { Store(138, Local0) } elseif (LEqual(arg0, 139)) { Store(139, Local0) } elseif (LEqual(arg0, 140)) { Store(140, Local0) } elseif (LEqual(arg0, 141)) { Store(141, Local0) } elseif (LEqual(arg0, 142)) { Store(142, Local0) } elseif (LEqual(arg0, 143)) { Store(143, Local0) } elseif (LEqual(arg0, 144)) { Store(144, Local0) } elseif (LEqual(arg0, 145)) { Store(145, Local0) } elseif (LEqual(arg0, 146)) { Store(146, Local0) } elseif (LEqual(arg0, 147)) { // 91 Store(147, Local0) } elseif (LEqual(arg0, 148)) { Store(148, Local0) } elseif (LEqual(arg0, 149)) { Store(149, Local0) } elseif (LEqual(arg0, 150)) { Store(150, Local0) } elseif (LEqual(arg0, 151)) { Store(151, Local0) } elseif (LEqual(arg0, 152)) { Store(152, Local0) } elseif (LEqual(arg0, 153)) { Store(153, Local0) } elseif (LEqual(arg0, 154)) { Store(154, Local0) } elseif (LEqual(arg0, 155)) { Store(155, Local0) } elseif (LEqual(arg0, 156)) { Store(156, Local0) } elseif (RNG0(arg0, 157, 199)) { // 101 // embedded elseif (20 levels) if (LEqual(arg0, 157)) { Store(157, Local0) } elseif (RNG0(arg0, 158, 198)) { // 1 if (LEqual(arg0, 158)) { Store(158, Local0) } elseif (RNG0(arg0, 159, 197)) { if (LEqual(arg0, 159)) { Store(159, Local0) } elseif (RNG0(arg0, 160, 196)) { if (LEqual(arg0, 160)) { Store(160, Local0) } elseif (RNG0(arg0, 157, 195)) { if (LEqual(arg0, 161)) { Store(161, Local0) } elseif (RNG0(arg0, 162, 194)) { if (LEqual(arg0, 162)) { Store(162, Local0) } elseif (RNG0(arg0, 163, 193)) { if (LEqual(arg0, 163)) { Store(163, Local0) } elseif (RNG0(arg0, 164, 192)) { if (LEqual(arg0, 164)) { Store(164, Local0) } elseif (RNG0(arg0, 165, 191)) { if (LEqual(arg0, 165)) { Store(165, Local0) } elseif (RNG0(arg0, 166, 190)) { if (LEqual(arg0, 166)) { Store(166, Local0) } elseif (RNG0(arg0, 167, 189)) { if (LEqual(arg0, 167)) { Store(167, Local0) } elseif (RNG0(arg0, 168, 188)) { // 11 if (LEqual(arg0, 168)) { Store(168, Local0) } elseif (RNG0(arg0, 169, 187)) { if (LEqual(arg0, 169)) { Store(169, Local0) } elseif (RNG0(arg0, 170, 186)) { if (LEqual(arg0, 170)) { Store(170, Local0) } elseif (RNG0(arg0, 171, 185)) { if (LEqual(arg0, 171)) { Store(171, Local0) } elseif (RNG0(arg0, 172, 184)) { if (LEqual(arg0, 172)) { Store(172, Local0) } elseif (RNG0(arg0, 173, 183)) { if (LEqual(arg0, 173)) { Store(173, Local0) } elseif (RNG0(arg0, 174, 182)) { if (LEqual(arg0, 174)) { Store(174, Local0) } elseif (RNG0(arg0, 175, 181)) { if (LEqual(arg0, 175)) { Store(175, Local0) } elseif (RNG0(arg0, 176, 180)) { if (LEqual(arg0, 176)) { Store(176, Local0) } elseif (RNG0(arg0, 177, 179)) { if (LEqual(arg0, 177)) { Store(177, Local0) } elseif (LEqual(arg0, 178)) { // 21 Store(178, Local0) } else { Store(179, Local0) } } else { Store(180, Local0) } } else { Store(181, Local0) } } else { Store(182, Local0) } } else { Store(183, Local0) } } else { Store(184, Local0) } } else { Store(185, Local0) } } else { Store(186, Local0) } } else { Store(187, Local0) } } else { Store(188, Local0) } } else { Store(189, Local0) } } else { Store(190, Local0) } } else { Store(191, Local0) } } else { Store(192, Local0) } } else { Store(193, Local0) } } else { Store(194, Local0) } } else { Store(195, Local0) } } else { Store(196, Local0) } } else { Store(197, Local0) } } else { Store(198, Local0) } } else { Store(199, Local0) } // 100 elseif } elseif (LEqual(arg0, 200)) { // 1 Store(200, Local0) } elseif (LEqual(arg0, 201)) { Store(201, Local0) } elseif (LEqual(arg0, 202)) { Store(202, Local0) } elseif (LEqual(arg0, 203)) { Store(203, Local0) } elseif (LEqual(arg0, 204)) { Store(204, Local0) } elseif (LEqual(arg0, 205)) { Store(205, Local0) } elseif (LEqual(arg0, 206)) { Store(206, Local0) } elseif (LEqual(arg0, 207)) { Store(207, Local0) } elseif (LEqual(arg0, 208)) { Store(208, Local0) } elseif (LEqual(arg0, 209)) { Store(209, Local0) } elseif (LEqual(arg0, 210)) { // 11 Store(210, Local0) } elseif (LEqual(arg0, 211)) { Store(211, Local0) } elseif (LEqual(arg0, 212)) { Store(212, Local0) } elseif (LEqual(arg0, 213)) { Store(213, Local0) } elseif (LEqual(arg0, 214)) { Store(214, Local0) } elseif (LEqual(arg0, 215)) { Store(215, Local0) } elseif (LEqual(arg0, 216)) { Store(216, Local0) } elseif (LEqual(arg0, 217)) { Store(217, Local0) } elseif (LEqual(arg0, 218)) { Store(218, Local0) } elseif (LEqual(arg0, 219)) { Store(219, Local0) } elseif (LEqual(arg0, 220)) { // 21 Store(220, Local0) } elseif (LEqual(arg0, 221)) { Store(221, Local0) } elseif (LEqual(arg0, 222)) { Store(222, Local0) } elseif (LEqual(arg0, 223)) { Store(223, Local0) } elseif (LEqual(arg0, 224)) { Store(224, Local0) } elseif (LEqual(arg0, 225)) { Store(225, Local0) } elseif (LEqual(arg0, 226)) { Store(226, Local0) } elseif (LEqual(arg0, 227)) { Store(227, Local0) } elseif (LEqual(arg0, 228)) { Store(228, Local0) } elseif (LEqual(arg0, 229)) { Store(229, Local0) } elseif (LEqual(arg0, 230)) { // 31 Store(230, Local0) } elseif (LEqual(arg0, 231)) { Store(231, Local0) } elseif (LEqual(arg0, 232)) { Store(232, Local0) } elseif (LEqual(arg0, 233)) { Store(233, Local0) } elseif (LEqual(arg0, 234)) { Store(234, Local0) } elseif (LEqual(arg0, 235)) { Store(235, Local0) } elseif (LEqual(arg0, 236)) { Store(236, Local0) } elseif (LEqual(arg0, 237)) { Store(237, Local0) } elseif (LEqual(arg0, 238)) { Store(238, Local0) } elseif (LEqual(arg0, 239)) { Store(239, Local0) } elseif (LEqual(arg0, 240)) { // 41 Store(240, Local0) } elseif (LEqual(arg0, 241)) { Store(241, Local0) } elseif (LEqual(arg0, 242)) { Store(242, Local0) } elseif (LEqual(arg0, 243)) { Store(243, Local0) } elseif (LEqual(arg0, 244)) { Store(244, Local0) } elseif (LEqual(arg0, 245)) { Store(245, Local0) } elseif (LEqual(arg0, 246)) { Store(246, Local0) } elseif (LEqual(arg0, 247)) { Store(247, Local0) } elseif (LEqual(arg0, 248)) { Store(248, Local0) } elseif (LEqual(arg0, 249)) { Store(249, Local0) } elseif (LEqual(arg0, 250)) { // 51 Store(250, Local0) } elseif (LEqual(arg0, 251)) { Store(251, Local0) } elseif (LEqual(arg0, 252)) { Store(252, Local0) } elseif (LEqual(arg0, 253)) { Store(253, Local0) } elseif (LEqual(arg0, 254)) { Store(254, Local0) } elseif (LEqual(arg0, 255)) { Store(255, Local0) } elseif (LEqual(arg0, 256)) { Store(256, Local0) } elseif (LEqual(arg0, 257)) { Store(257, Local0) } elseif (LEqual(arg0, 258)) { Store(258, Local0) } elseif (LEqual(arg0, 259)) { Store(259, Local0) } elseif (LEqual(arg0, 260)) { // 61 Store(260, Local0) } elseif (LEqual(arg0, 261)) { Store(261, Local0) } elseif (LEqual(arg0, 262)) { Store(262, Local0) } elseif (LEqual(arg0, 263)) { Store(263, Local0) } elseif (LEqual(arg0, 264)) { Store(264, Local0) } elseif (LEqual(arg0, 265)) { Store(265, Local0) } elseif (LEqual(arg0, 266)) { Store(266, Local0) } elseif (LEqual(arg0, 267)) { Store(267, Local0) } elseif (LEqual(arg0, 268)) { Store(268, Local0) } elseif (LEqual(arg0, 269)) { Store(269, Local0) } elseif (LEqual(arg0, 270)) { // 71 Store(270, Local0) } elseif (LEqual(arg0, 271)) { Store(271, Local0) } elseif (LEqual(arg0, 272)) { Store(272, Local0) } elseif (LEqual(arg0, 273)) { Store(273, Local0) } elseif (LEqual(arg0, 274)) { Store(274, Local0) } elseif (LEqual(arg0, 275)) { Store(275, Local0) } elseif (LEqual(arg0, 276)) { Store(276, Local0) } elseif (LEqual(arg0, 277)) { Store(277, Local0) } elseif (LEqual(arg0, 278)) { Store(278, Local0) } elseif (LEqual(arg0, 279)) { Store(279, Local0) } elseif (LEqual(arg0, 280)) { // 81 Store(280, Local0) } elseif (LEqual(arg0, 281)) { Store(281, Local0) } elseif (LEqual(arg0, 282)) { Store(282, Local0) } elseif (LEqual(arg0, 283)) { Store(283, Local0) } elseif (LEqual(arg0, 284)) { Store(284, Local0) } elseif (LEqual(arg0, 285)) { Store(285, Local0) } elseif (LEqual(arg0, 286)) { Store(286, Local0) } elseif (LEqual(arg0, 287)) { Store(287, Local0) } elseif (LEqual(arg0, 288)) { Store(288, Local0) } elseif (LEqual(arg0, 289)) { Store(289, Local0) } elseif (LEqual(arg0, 290)) { // 91 Store(290, Local0) } elseif (LEqual(arg0, 291)) { Store(291, Local0) } elseif (LEqual(arg0, 292)) { Store(292, Local0) } elseif (LEqual(arg0, 293)) { Store(293, Local0) } elseif (LEqual(arg0, 294)) { Store(294, Local0) } elseif (LEqual(arg0, 295)) { Store(295, Local0) } elseif (LEqual(arg0, 296)) { Store(296, Local0) } elseif (LEqual(arg0, 297)) { Store(297, Local0) } elseif (LEqual(arg0, 298)) { Store(298, Local0) } elseif (LEqual(arg0, 299)) { Store(299, Local0) } elseif (LEqual(arg0, 300)) { // 101 Store(300, Local0) } else { Store(301, Local0) } return (Local0) } Method(IF00,, Serialized) { Name(ts, "IF00") Store("TEST: IF00, Huge, many levels embedded {if,elseif,else)", Debug) Store(0, Local7) While (LLess(Local7, 302)) { Store(m040(Local7), Local0) if (LNotEqual(Local0, Local7)) { err(ts, z005, __LINE__, 0, 0, Local0, 0) } Increment(Local7) } } // Run-method Method(CTL2) { Store("TEST: CTL2, Conditional execution", Debug) IF00() } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Return/0000700000175000017500000000000014773714155027710 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Return/DECL.asl0000700000175000017500000000320014773714155031116 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include("../../../../../runtime/collections/functional/control/Return/return.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Return/RUN.asl0000700000175000017500000000317514773714155031066 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("Method execution control, Return", TCLF, 3, W003)) { mf73() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Return/MAIN.asl0000700000175000017500000000415314773714155031143 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "return.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../runtime/cntl/DECL_5UP.asl") Include("../../../../../runtime/collections/functional/control/Return/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../runtime/collections/functional/control/Return/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Return/return.asl0000700000175000017500000006333614773714155031746 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Test of Return */ Name(z139, 139) Method(mf72, 1, Serialized) { Name(i000, 0) Name(cmp0, 0) Name(md00, 0) Store(arg0, md00) Name(ts, "mf72") Method(m000) { } Method(m001) { if (0xabcd0001) { return (0xabcd0010) } } Method(m002) { if (0xabcd0000) { if (0xabcd0001) { return (0xabcd0010) }} } Method(m003) { while (0xabcd0000) { return (0xabcd0020) } } Method(m004, 7, Serialized) { Name(ret4, 0) Name(r400, 0) Name(r401, 0) Name(r402, 0) Name(r403, 0) Name(r404, 0) Name(r405, 0) Name(r406, 0) Name(r407, 0) Method(m005, 7, Serialized) { Name(ret5, 0) Name(r500, 0) Name(r501, 0) Name(r502, 0) Name(r503, 0) Name(r504, 0) Name(r505, 0) Name(r506, 0) Name(r507, 0) Method(m006, 7, Serialized) { Name(ret6, 0) Name(r600, 0) Name(r601, 0) Name(r602, 0) Name(r603, 0) Name(r604, 0) Name(r605, 0) Name(r606, 0) Name(r607, 0) Method(m007, 7, Serialized) { Name(ret7, 0) Name(r700, 0) Name(r701, 0) Name(r702, 0) Name(r703, 0) Name(r704, 0) Name(r705, 0) Name(r706, 0) Name(r707, 0) Method(m008, 7) { Name(ret8, 0) Name(i000, 0) Name(i001, 0) Name(i002, 0) Name(i003, 0) m000() m001() if (Store(0xaaaa0007, i001)) { Increment(i002) Store(Add(0xaaaa0008, 0), Local5) Store(Subtract(0xaaaa0009, 0), Local5) if (LEqual(arg0, 0)) { return (0x55550000) } Store(Multiply(0xaaaa000a, 1), Local5) Store(0xaaaa000d, i001) Decrement(i001) } m002() m003() while (0xabcd0000) { m000() m001() if (LEqual(arg0, 1)) { return (0x55550001) } Store(0, i000) m002() m003() Switch (0xabcd0100) { case (0xabcd0100) { if (0xabcd0001) { while (0xabcd0002) { if (LNotEqual(arg0, 2)) { while (0xabcd0004) { if (Store(0xaaaa0007, i001)) { Increment(i002) Store(Add(0xaaaa0008, 0), Local5) Store(Subtract(0xaaaa0009, 0), Local5) if (LEqual(arg0, 3)) { return (0x55550003) } Store(Multiply(0xaaaa000a, 1), Local5) Store(0xaaaa000d, i001) Decrement(i001) } Switch (0xabcd0200) { case (0xabcd0300) { Store("Never", Debug) } Default { if (0xabcd0005) { while (0xabcd0006) { if (LNotEqual(arg0, 4)) { m000() m001() if (LEqual(arg0, 5)) { return (0x55550005) } m002() m003() while (0xabcd0008) { if (LEqual(arg0, 6)) { return (0x55550006) } if (0xabcd0009) { if (LEqual(arg0, 7)) { return (0x55550007) } while (0xabcd000a) { if (LNotEqual(arg0, 8)) { while (0xabcd000c) { if (0xabcd000d) { while (0xabcd000e) { if (0xabcd000f) { if (0) { Store("Impossible 0", Debug) } else { if (0xabcd0010) { Store(100, i003) switch (i003) { case (1) { return (0xdddd0000) } case (2) { return (0xdddd0001) } Default { return (0x55550009) } } return (0xdddd0002) } } } } } } m000() m001() } else { m002() m003() Store(1, i003) switch (i003) { case (1) { return (0x55550008) } case (2) { return (0xdddd0003) } Default { return (0xdddd0004) } } return (0xdddd0005) } } } } m000() m001() m002() m003() } else { Store(2, i003) switch (i003) { case (1) { return (0xdddd0006) } case (2) { return (0x55550004) } Default { return (0xdddd0007) } } return (0xdddd0008) } } } } /* Default 0xabcd0300 */ } /* Switch (0xabcd0200) */ } } else { return (0x55550002) } } } } /* case (0xabcd0100) */ } /* Switch (0xabcd0100) */ } return (ret8) } /* m008 */ Method(m009, 7) { Name(ret9, 0) Name(r900, 0) Name(r901, 0) Name(r902, 0) Name(r903, 0) Name(r904, 0) Name(r905, 0) Name(r906, 0) Name(r907, 0) Name(i000, 0) Name(i001, 0) Name(i002, 0) Name(i003, 0) m000() m001() if (Store(0xaaaa0007, i001)) { Increment(i002) Store(Add(0xaaaa0008, 0), Local5) Store(Subtract(0xaaaa0009, 0), Local5) if (LEqual(arg0, 0)) { CopyObject(Store(CopyObject(Store(CopyObject(CopyObject(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550000) } Store(Multiply(0xaaaa000a, 1), Local5) Store(0xaaaa000d, i001) Decrement(i001) } m002() m003() while (0xabcd0000) { m000() m001() if (LEqual(arg0, 1)) { Store(Store(CopyObject(Store(Store(Store(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550001) } Store(0, i000) m002() m003() Switch (0xabcd0100) { case (0xabcd0100) { if (0xabcd0001) { while (0xabcd0002) { if (LNotEqual(arg0, 2)) { while (0xabcd0004) { if (Store(0xaaaa0007, i001)) { Increment(i002) Store(Add(0xaaaa0008, 0), Local5) Store(Subtract(0xaaaa0009, 0), Local5) if (LEqual(arg0, 3)) { Store(Store(CopyObject(Store(Store(Store(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550003) } Store(Multiply(0xaaaa000a, 1), Local5) Store(0xaaaa000d, i001) Decrement(i001) } Switch (0xabcd0200) { case (0xabcd0300) { Store("Never", Debug) } Default { if (0xabcd0005) { while (0xabcd0006) { if (LNotEqual(arg0, 4)) { m000() m001() if (LEqual(arg0, 5)) { Store(Store(CopyObject(Store(Store(Store(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550005) } m002() m003() while (0xabcd0008) { if (LEqual(arg0, 6)) { Store(Store(CopyObject(Store(Store(Store(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550006) } if (0xabcd0009) { if (LEqual(arg0, 7)) { Store(Store(CopyObject(Store(Store(Store(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550007) } while (0xabcd000a) { if (LNotEqual(arg0, 8)) { while (0xabcd000c) { if (0xabcd000d) { while (0xabcd000e) { if (0xabcd000f) { if (0) { Store("Impossible 0", Debug) } else { if (0xabcd0010) { Store(100, i003) switch (i003) { case (1) { return (0xdddd0000) } case (2) { return (0xdddd0001) } Default { Store(Store(CopyObject(Store(Store(Store(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550009) } } return (0xdddd0002) } } } } } } m000() m001() } else { m002() m003() Store(1, i003) switch (i003) { case (1) { Store(Store(CopyObject(Store(Store(Store(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550008) } case (2) { return (0xdddd0003) } Default { return (0xdddd0004) } } return (0xdddd0005) } } } } m000() m001() m002() m003() } else { Store(2, i003) switch (i003) { case (1) { return (0xdddd0006) } case (2) { Store(Store(CopyObject(Store(Store(Store(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550004) } Default { return (0xdddd0007) } } return (0xdddd0008) } } } } /* Default 0xabcd0300 */ } /* Switch (0xabcd0200) */ } } else { Store(Store(CopyObject(Store(Store(Store(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r900), r901), r902), r903), r904), r905), r906), ret9) return (ret9) // return (0x55550002) } } } } /* case (0xabcd0100) */ } /* Switch (0xabcd0100) */ } return (ret9) } /* m009 */ Store(arg0, Local0) Store(arg1, Local1) Store(arg2, Local2) Store(arg3, Local3) Store(arg4, Local4) Store(arg5, Local5) Store(arg6, Local6) if (LEqual(md00, 0)) { CopyObject(Store(CopyObject(Store(CopyObject(CopyObject(Store(Store( m008(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r700), r701), r702), r703), r704), r705), r706), ret7) } else { Store(Store(Store(Store(Store(Store(Store(Store( m009(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r700), r701), r702), r703), r704), r705), r706), ret7) } m4c0(ts, arg0, Local0, Local0) m4c0(ts, arg1, Local1, Local1) m4c0(ts, arg2, Local2, Local2) m4c0(ts, arg3, Local3, Local3) m4c0(ts, arg4, Local4, Local4) m4c0(ts, arg5, Local5, Local5) m4c0(ts, arg6, Local6, Local6) return (ret7) } /* m007 */ Store(arg0, Local0) Store(arg1, Local1) Store(arg2, Local2) Store(arg3, Local3) Store(arg4, Local4) Store(arg5, Local5) Store(arg6, Local6) // CopyObject(CopyObject(CopyObject(CopyObject(CopyObject(CopyObject(CopyObject(CopyObject( CopyObject(CopyObject(CopyObject(CopyObject(CopyObject(CopyObject(CopyObject(Store( m007(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r600), r601), r602), r603), r604), r605), r606), ret6) m4c0(ts, arg0, Local0, Local0) m4c0(ts, arg1, Local1, Local1) m4c0(ts, arg2, Local2, Local2) m4c0(ts, arg3, Local3, Local3) m4c0(ts, arg4, Local4, Local4) m4c0(ts, arg5, Local5, Local5) m4c0(ts, arg6, Local6, Local6) return (ret6) } /* m006 */ Store(arg0, Local0) Store(arg1, Local1) Store(arg2, Local2) Store(arg3, Local3) Store(arg4, Local4) Store(arg5, Local5) Store(arg6, Local6) Store(Store(Store(Store(Store(Store(Store(Store( m006(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r500), r501), r502), r503), r504), r505), r506), ret5) m4c0(ts, arg0, Local0, Local0) m4c0(ts, arg1, Local1, Local1) m4c0(ts, arg2, Local2, Local2) m4c0(ts, arg3, Local3, Local3) m4c0(ts, arg4, Local4, Local4) m4c0(ts, arg5, Local5, Local5) m4c0(ts, arg6, Local6, Local6) return (ret5) } /* m005 */ Store(arg0, Local0) Store(arg1, Local1) Store(arg2, Local2) Store(arg3, Local3) Store(arg4, Local4) Store(arg5, Local5) Store(arg6, Local6) Store(Store(Store(Store(Store(Store(Store(Store( m005(arg0, arg1, arg2, arg3, arg4, arg5, arg6), r400), r401), r402), r403), r404), r405), r406), ret4) m4c0(ts, arg0, Local0, Local0) m4c0(ts, arg1, Local1, Local1) m4c0(ts, arg2, Local2, Local2) m4c0(ts, arg3, Local3, Local3) m4c0(ts, arg4, Local4, Local4) m4c0(ts, arg5, Local5, Local5) m4c0(ts, arg6, Local6, Local6) return (ret4) } /* m004 */ // ===================== 0: Store(0x55550000, cmp0) Store(0, Local0) Store(0xaaaa0001, Local1) Store(0xaaaa0002, Local2) Store(0xaaaa0003, Local3) Store(0xaaaa0004, Local4) Store(0xaaaa0005, Local5) Store(0xaaaa0006, Local6) Store(0xaaaa0007, Local7) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 0, 0) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) // ===================== 1: Store(0x55550001, cmp0) Store(1, Local0) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 1, 1) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) // ===================== 2: Store(0x55550002, cmp0) Store(2, Local0) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 2, 2) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) // ===================== 3: Store(0x55550003, cmp0) Store(3, Local0) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 3, 3) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) // ===================== 4: Store(0x55550004, cmp0) Store(4, Local0) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 4, 4) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) // ===================== 5: Store(0x55550005, cmp0) Store(5, Local0) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 5, 5) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) // ===================== 6: Store(0x55550006, cmp0) Store(6, Local0) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 6, 6) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) // ===================== 7: Store(0x55550007, cmp0) Store(7, Local0) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 7, 7) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) // ===================== 8: Store(0x55550008, cmp0) Store(8, Local0) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 8, 8) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) // ===================== 9: Store(0x55550009, cmp0) Store(9, Local0) Store( m004(Local0, Local1, Local2, Local3, Local4, Local5, Local6), i000) if (LNotEqual(i000, cmp0)) { err("", z139, __LINE__, 0, 0, i000, cmp0) } m4c0(ts, Local0, 9, 9) m4c0(ts, Local1, 0xaaaa0001, 0xaaaa0001) m4c0(ts, Local2, 0xaaaa0002, 0xaaaa0002) m4c0(ts, Local3, 0xaaaa0003, 0xaaaa0003) m4c0(ts, Local4, 0xaaaa0004, 0xaaaa0004) m4c0(ts, Local5, 0xaaaa0005, 0xaaaa0005) m4c0(ts, Local6, 0xaaaa0006, 0xaaaa0006) m4c0(ts, Local7, 0xaaaa0007, 0xaaaa0007) } Method(mf73) { SRMT("mf72(0)") mf72(0) SRMT("mf72(1)") mf72(1) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/ctl1.asl0000700000175000017500000010721514773714155030006 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Simple checkings for {if,elseif,else} operators * Two levels embedded {if,elseif,else} */ Name(z004, 4) /////////////// {if} Method(m080, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 1)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } } return (Local0) } Method(m081, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) } } return (Local0) } Method(m082, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } } return (Local0) } Method(m083, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 3)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } return (Local0) } /////////////// {if,else} {if} Method(m090, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 1)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } } else { Store(2, Local0) } return (Local0) } Method(m091, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } else { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } } return (Local0) } Method(m092, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 1)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } } else { Store(2, Local0) if (LEqual(arg0, 3)) { Store(3, Local0) } } return (Local0) } /////////////// {if,else} {if,else} Method(m093, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) } } else { Store(3, Local0) } return (Local0) } Method(m094, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } else { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } return (Local0) } Method(m095, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) } } else { Store(3, Local0) if (LEqual(arg0, 4)) { Store(4, Local0) } else { Store(5, Local0) } } return (Local0) } /////////////// {if,else} {if,elseif} Method(m096, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } } else { Store(3, Local0) } return (Local0) } Method(m097, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } else { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } elseif (LEqual(arg0, 3)) { Store(3, Local0) } } return (Local0) } Method(m098, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } } else { Store(3, Local0) if (LEqual(arg0, 4)) { Store(4, Local0) } elseif (LEqual(arg0, 5)) { Store(5, Local0) } } return (Local0) } /////////////// {if,else} {if,elseif,else} Method(m099, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 3)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } else { Store(4, Local0) } return (Local0) } Method(m09a, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } else { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } elseif (LEqual(arg0, 3)) { Store(3, Local0) } else { Store(4, Local0) } } return (Local0) } Method(m09b, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 3)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } else { Store(4, Local0) if (LEqual(arg0, 5)) { Store(5, Local0) } elseif (LEqual(arg0, 6)) { Store(6, Local0) } else { Store(7, Local0) } } return (Local0) } /////////////// {if,elseif} {if} Method(m09c, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 1)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } } elseif (LEqual(arg0, 2)) { Store(2, Local0) } return (Local0) } Method(m09d, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (RNG0(arg0, 1, 2)) { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } } return (Local0) } Method(m09e, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 1)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } } elseif (RNG0(arg0, 2, 3)) { Store(2, Local0) if (LEqual(arg0, 3)) { Store(3, Local0) } } return (Local0) } /////////////// {if,elseif} {if,else} Method(m09f, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) } } elseif (LEqual(arg0, 3)) { Store(3, Local0) } return (Local0) } Method(m0a0, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (RNG0(arg0, 1, 3)) { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } return (Local0) } Method(m0a1, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) } } elseif (RNG0(arg0, 3, 5)) { Store(3, Local0) if (LEqual(arg0, 4)) { Store(4, Local0) } else { Store(5, Local0) } } return (Local0) } /////////////// {if,elseif} {if,elseif} Method(m0a2, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } } elseif (LEqual(arg0, 3)) { Store(3, Local0) } return (Local0) } Method(m0a3, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (RNG0(arg0, 1, 3)) { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } elseif (LEqual(arg0, 3)) { Store(3, Local0) } } return (Local0) } Method(m0a4, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } } elseif (RNG0(arg0, 3, 5)) { Store(3, Local0) if (LEqual(arg0, 4)) { Store(4, Local0) } elseif (LEqual(arg0, 5)) { Store(5, Local0) } } return (Local0) } /////////////// {if,elseif} {if,elseif,else} Method(m0a5, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 3)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } elseif (LEqual(arg0, 4)) { Store(4, Local0) } return (Local0) } Method(m0a6, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (RNG0(arg0, 1, 4)) { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } elseif (LEqual(arg0, 3)) { Store(3, Local0) } else { Store(4, Local0) } } return (Local0) } Method(m0a7, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 3)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } elseif (RNG0(arg0, 4, 7)) { Store(4, Local0) if (LEqual(arg0, 5)) { Store(5, Local0) } elseif (LEqual(arg0, 6)) { Store(6, Local0) } else { Store(7, Local0) } } return (Local0) } /////////////// {if,elseif,else} {if} (restricted) Method(m0a8, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 1)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } } elseif (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } return (Local0) } Method(m0a9, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (RNG0(arg0, 1, 2)) { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } } else { Store(3, Local0) } return (Local0) } Method(m0aa, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) if (LEqual(arg0, 3)) { Store(3, Local0) } } return (Local0) } Method(m0ab, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 1)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } } elseif (RNG0(arg0, 2, 3)) { Store(2, Local0) if (LEqual(arg0, 3)) { Store(3, Local0) } } else { Store(4, Local0) if (LEqual(arg0, 5)) { Store(5, Local0) } } return (Local0) } /////////////// {if,elseif,else} {if,else} (restricted) Method(m0ac, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) } } elseif (LEqual(arg0, 3)) { Store(3, Local0) } else { Store(4, Local0) } return (Local0) } Method(m0ad, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (RNG0(arg0, 1, 3)) { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } else { Store(4, Local0) } return (Local0) } Method(m0ae, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) if (LEqual(arg0, 3)) { Store(3, Local0) } else { Store(4, Local0) } } return (Local0) } Method(m0af, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) } } elseif (RNG0(arg0, 3, 5)) { Store(3, Local0) if (LEqual(arg0, 4)) { Store(4, Local0) } else { Store(5, Local0) } } else { Store(6, Local0) if (LEqual(arg0, 7)) { Store(7, Local0) } else { Store(8, Local0) } } return (Local0) } /////////////// {if,elseif,else} {if,elseif} (restricted) Method(m0b0, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } } elseif (LEqual(arg0, 3)) { Store(3, Local0) } else { Store(4, Local0) } return (Local0) } Method(m0b1, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (RNG0(arg0, 1, 3)) { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } elseif (LEqual(arg0, 3)) { Store(3, Local0) } } else { Store(4, Local0) } return (Local0) } Method(m0b2, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) if (LEqual(arg0, 3)) { Store(3, Local0) } elseif (LEqual(arg0, 4)) { Store(4, Local0) } } return (Local0) } Method(m0b3, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 2)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } } elseif (RNG0(arg0, 3, 5)) { Store(3, Local0) if (LEqual(arg0, 4)) { Store(4, Local0) } elseif (LEqual(arg0, 5)) { Store(5, Local0) } } else { Store(6, Local0) if (LEqual(arg0, 7)) { Store(7, Local0) } elseif (LEqual(arg0, 8)) { Store(8, Local0) } } return (Local0) } /////////////// {if,elseif,else} {if,elseif,else} (restricted) Method(m0b4, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 3)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } elseif (LEqual(arg0, 4)) { Store(4, Local0) } else { Store(5, Local0) } return (Local0) } Method(m0b5, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (RNG0(arg0, 1, 4)) { Store(1, Local0) if (LEqual(arg0, 2)) { Store(2, Local0) } elseif (LEqual(arg0, 3)) { Store(3, Local0) } else { Store(4, Local0) } } else { Store(5, Local0) } return (Local0) } Method(m0b6, 1) { Store(0x12345678, Local0) if (LEqual(arg0, 0)) { Store(0, Local0) } elseif (LEqual(arg0, 1)) { Store(1, Local0) } else { Store(2, Local0) if (LEqual(arg0, 3)) { Store(3, Local0) } elseif (LEqual(arg0, 4)) { Store(4, Local0) } else { Store(5, Local0) } } return (Local0) } Method(m0b7, 1) { Store(0x12345678, Local0) if (RNG0(arg0, 0, 3)) { Store(0, Local0) if (LEqual(arg0, 1)) { Store(1, Local0) } elseif (LEqual(arg0, 2)) { Store(2, Local0) } else { Store(3, Local0) } } elseif (RNG0(arg0, 4, 7)) { Store(4, Local0) if (LEqual(arg0, 5)) { Store(5, Local0) } elseif (LEqual(arg0, 6)) { Store(6, Local0) } else { Store(7, Local0) } } elseif (RNG0(arg0, 8, 11)) { Store(8, Local0) if (LEqual(arg0, 9)) { Store(9, Local0) } elseif (LEqual(arg0, 10)) { Store(10, Local0) } else { Store(11, Local0) } } else { Store(12, Local0) if (LEqual(arg0, 13)) { Store(13, Local0) } elseif (LEqual(arg0, 14)) { Store(14, Local0) } else { Store(15, Local0) } } return (Local0) } ////////////////////////////////////////////////////// // Run verify methods // NOTE: use here as few control operators as possible Method(m0b8,, Serialized) { Name(ts, "m0b8") Store("TEST: m0b8, Two levels embedded {if, elseif, else}", Debug) // m080 Store(0, Local7) While(LLessEqual(Local7, 1)) { Store(m080(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m080(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m081 Store(0, Local7) Store(m081(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 2)) { Store(m081(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m081(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m082 Store(0, Local7) While(LLessEqual(Local7, 2)) { Store(m082(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m082(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m083 Store(0, Local7) Store(m083(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 3)) { Store(m083(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m083(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m090 Store(0, Local7) While(LLessEqual(Local7, 2)) { Store(m090(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m090(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m091 Store(0, Local7) While(LLessEqual(Local7, 2)) { Store(m091(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m091(Local7), Local0) if (LNotEqual(Local0, 1)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m092 Store(0, Local7) While(LLessEqual(Local7, 3)) { Store(m092(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m092(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m093 Store(0, Local7) Store(m093(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 3)) { Store(m093(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m093(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m094 Store(0, Local7) Store(m094(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) Store(m094(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(2, Local7) While(LLessEqual(Local7, 3)) { Store(m094(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m094(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m095 Store(0, Local7) Store(m095(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 2)) { Store(m095(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(3, Local7) Store(m095(Local7), Local0) if (LNotEqual(Local0, 5)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(4, Local7) While(LLessEqual(Local7, 5)) { Store(m095(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m095(Local7), Local0) if (LNotEqual(Local0, 5)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m096 Store(0, Local7) While(LLessEqual(Local7, 3)) { Store(m096(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m096(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m097 Store(0, Local7) While(LLessEqual(Local7, 3)) { Store(m097(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m097(Local7), Local0) if (LNotEqual(Local0, 1)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m098 Store(0, Local7) While(LLessEqual(Local7, 5)) { Store(m098(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m098(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m099 Store(0, Local7) Store(m099(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 4)) { Store(m099(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m099(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m09a Store(0, Local7) Store(m09a(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) Store(m09a(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(2, Local7) While(LLessEqual(Local7, 4)) { Store(m09a(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m09a(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m09b Store(0, Local7) Store(m09b(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 3)) { Store(m09b(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(4, Local7) Store(m09b(Local7), Local0) if (LNotEqual(Local0, 7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(5, Local7) While(LLessEqual(Local7, 7)) { Store(m09b(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m09b(Local7), Local0) if (LNotEqual(Local0, 7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m09c Store(0, Local7) While(LLessEqual(Local7, 2)) { Store(m09c(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m09c(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m09d Store(0, Local7) While(LLessEqual(Local7, 2)) { Store(m09d(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m09d(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m09e Store(0, Local7) While(LLessEqual(Local7, 3)) { Store(m09e(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m09e(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m09f Store(0, Local7) Store(m09f(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 3)) { Store(m09f(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m09f(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a0 Store(0, Local7) Store(m0a0(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) Store(m0a0(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(2, Local7) While(LLessEqual(Local7, 3)) { Store(m0a0(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a0(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a1 Store(0, Local7) Store(m0a1(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 2)) { Store(m0a1(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(3, Local7) Store(m0a1(Local7), Local0) if (LNotEqual(Local0, 5)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(4, Local7) While(LLessEqual(Local7, 5)) { Store(m0a1(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a1(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a2 Store(0, Local7) While(LLessEqual(Local7, 3)) { Store(m0a2(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a2(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a3 Store(0, Local7) While(LLessEqual(Local7, 3)) { Store(m0a3(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a3(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a4 Store(0, Local7) While(LLessEqual(Local7, 5)) { Store(m0a4(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a4(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a5 Store(0, Local7) Store(m0a5(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 4)) { Store(m0a5(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a5(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a6 Store(0, Local7) Store(m0a6(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) Store(m0a6(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(2, Local7) While(LLessEqual(Local7, 4)) { Store(m0a6(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a6(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a7 Store(0, Local7) Store(m0a7(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 3)) { Store(m0a7(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(4, Local7) Store(m0a7(Local7), Local0) if (LNotEqual(Local0, 7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(5, Local7) While(LLessEqual(Local7, 7)) { Store(m0a7(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a7(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a8 Store(0, Local7) While(LLessEqual(Local7, 3)) { Store(m0a8(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a8(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0a9 Store(0, Local7) While(LLessEqual(Local7, 3)) { Store(m0a9(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0a9(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0aa Store(0, Local7) While(LLessEqual(Local7, 3)) { Store(m0aa(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0aa(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0ab Store(0, Local7) While(LLessEqual(Local7, 5)) { Store(m0ab(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0ab(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0ac Store(0, Local7) Store(m0ac(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 4)) { Store(m0ac(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0ac(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0ad Store(0, Local7) Store(m0ad(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) Store(m0ad(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(2, Local7) While(LLessEqual(Local7, 4)) { Store(m0ad(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0ad(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0ae Store(0, Local7) While(LLessEqual(Local7, 1)) { Store(m0ae(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(2, Local7) Store(m0ae(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(3, Local7) While(LLessEqual(Local7, 4)) { Store(m0ae(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0ae(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0af Store(0, Local7) Store(m0af(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 2)) { Store(m0af(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(3, Local7) Store(m0af(Local7), Local0) if (LNotEqual(Local0, 5)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(4, Local7) While(LLessEqual(Local7, 5)) { Store(m0af(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(6, Local7) Store(m0af(Local7), Local0) if (LNotEqual(Local0, 8)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(7, Local7) While(LLessEqual(Local7, 8)) { Store(m0af(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0af(Local7), Local0) if (LNotEqual(Local0, 8)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0b0 Store(0, Local7) While(LLessEqual(Local7, 4)) { Store(m0b0(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0b0(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0b1 Store(0, Local7) While(LLessEqual(Local7, 4)) { Store(m0b1(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0b1(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0b2 Store(0, Local7) While(LLessEqual(Local7, 4)) { Store(m0b2(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0b2(Local7), Local0) if (LNotEqual(Local0, 2)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0b3 Store(0, Local7) While(LLessEqual(Local7, 4)) { Store(m0b3(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0b3(Local7), Local0) if (LNotEqual(Local0, 6)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0b4 Store(0, Local7) Store(m0b4(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 5)) { Store(m0b4(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0b4(Local7), Local0) if (LNotEqual(Local0, 5)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0b5 Store(0, Local7) Store(m0b5(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) Store(m0b5(Local7), Local0) if (LNotEqual(Local0, 4)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(2, Local7) While(LLessEqual(Local7, 5)) { Store(m0b5(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0b5(Local7), Local0) if (LNotEqual(Local0, 5)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0b6 Store(0, Local7) While(LLessEqual(Local7, 1)) { Store(m0b6(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(2, Local7) Store(m0b6(Local7), Local0) if (LNotEqual(Local0, 5)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(3, Local7) While(LLessEqual(Local7, 5)) { Store(m0b6(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0b6(Local7), Local0) if (LNotEqual(Local0, 5)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } // m0b7 Store(0, Local7) Store(m0b7(Local7), Local0) if (LNotEqual(Local0, 3)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(1, Local7) While(LLessEqual(Local7, 3)) { Store(m0b7(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(4, Local7) Store(m0b7(Local7), Local0) if (LNotEqual(Local0, 7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(5, Local7) While(LLessEqual(Local7, 7)) { Store(m0b7(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(8, Local7) Store(m0b7(Local7), Local0) if (LNotEqual(Local0, 11)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(9, Local7) While(LLessEqual(Local7, 11)) { Store(m0b7(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(12, Local7) Store(m0b7(Local7), Local0) if (LNotEqual(Local0, 15)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Store(13, Local7) While(LLessEqual(Local7, 15)) { Store(m0b7(Local7), Local0) if (LNotEqual(Local0, Local7)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } Increment(Local7) } Store(0x12345678, Local7) Store(m0b7(Local7), Local0) if (LNotEqual(Local0, 15)){ err(ts, z004, __LINE__, 0, 0, Local7, 0) } } // Run-method Method(CTL1) { Store("TEST: CTL1, Conditional execution", Debug) m0b8() } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/switch5.asl0000700000175000017500000006650014773714155030532 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Switch, Case(Package), Default operators */ /* SEE: why exception doesn't occur for uninitialized elements there?????? SEE: use all the specific cases specified in DOCUMENT 1. SEE: add the tests for "Specification of Match should explicitly say that no exceptions occur while this "cruising through the package"" */ Name(z072, 72) // The same as m0df and m0e0 but with Packages Method(m0e7, 1) { Switch (arg0) { // Buffer Case (Package(1) {Buffer(1){10}}) { Store(0, Local7) } Case (Package() {Buffer(2){11,12}}) { Store(1, Local7) } Case (Package() {Buffer() {13,14,15}}) { Store(2, Local7) } Case (Package() {Buffer(2){16,17,18}}) { Store(3, Local7) } Case (Package() {Buffer(3){19,20}}) { Store(4, Local7) } Case (Package() {Buffer(3){21,22,23}}) { Store(5, Local7) } Case (Package() {Buffer(4){24,25,26,27}}) { Store(6, Local7) } Case (Package() {Buffer(5){28,29,30,31,32}}) { Store(7, Local7) } Case (Package() {Buffer(8){33,34,35,36,37,38,39,40}}) { Store(8, Local7) } Case (Package() {Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}}) { Store(9, Local7) } Case (Package() {Buffer(9){41,42,43,44,45,46,47,48,49}}) { Store(10, Local7) } Case (Package() {Buffer(67){0x7d}}) { Store(11, Local7) } Case (Package() {Buffer() { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}}) { Store(12, Local7) } Case (Package() {Buffer(67) { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}}) { Store(13, Local7) } Case (Package() {Buffer(4){0,0,0,0}}) { Store(14, Local7) } Case (Package() {Buffer(8){0,0,0,0,0,0,0,0}}) { Store(15, Local7) } Case (Package() {Buffer(4){0xff,0xff,0xff,0xff}}) { Store(16, Local7) } Case (Package() {Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}}) { Store(17, Local7) } Case (Package() {Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}}) { Store(18, Local7) } Case (Package() {Buffer(5){0xff,0xff,0xff,0xff,0xff}}) { Store(19, Local7) } Case (Package() {Buffer(1){0xff}}) { Store(20, Local7) } Case (Package() {Buffer(1){}}) { Store(21, Local7) } Case (Package() {Buffer(5){}}) { Store(22, Local7) } Case (Package() {Buffer(9){}}) { Store(23, Local7) } Case (Package() {Buffer(9){0xab, 0xcd, 0xef}}) { Store(24, Local7) } // String Case (Package() {"0321"}) { Store(25, Local7) } Case (Package() {"321"}) { Store(26, Local7) } Case (Package() {"ba9876"}) { Store(27, Local7) } Case (Package() {"c179b3fe"}) { Store(28, Local7) } Case (Package() {"fe7cb391d650a284"}) { Store(29, Local7) } Case (Package() {"ffffffff"}) { Store(30, Local7) } Case (Package() {"ffffffffffffffff"}) { Store(31, Local7) } Case (Package() {"ffffffffff"}) { Store(32, Local7) } Case (Package() {"ff"}) { Store(33, Local7) } Case (Package() {"987654321"}) { Store(34, Local7) } Case (Package() {"0xfe7cb3"}) { Store(35, Local7) } // Integer Case (Package() {0321}) { Store(36, Local7) } Case (Package() {9876543210}) { Store(37, Local7) } Case (Package() {0xc179b3fe}) { Store(38, Local7) } Case (Package() {0xfe7cb391d650a284}) { Store(39, Local7) } Case (Package() {0}) { Store(40, Local7) } Case (Package() {0xffffffff}) { Store(41, Local7) } Case (Package() {0xffffffffffffffff}) { Store(42, Local7) } Case (Package() {0xff}) { Store(43, Local7) } Case (Package() {0xabcdef}) { Store(44, Local7) } Default { Store(45, Local7) } } return (Local7) } Method(m0e8, 1) { // Integer Store(m0e7(0321), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z072, __LINE__, 0, 0, Local0, 36) } Store(m0e7(0xd1), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z072, __LINE__, 0, 0, Local0, 36) } Store(m0e7(9876543210), Local0) if (LNotEqual(Local0, 37)) { err(arg0, z072, __LINE__, 0, 0, Local0, 37) } Store(m0e7(0xc179b3fe), Local0) if (LNotEqual(Local0, 28)) { err(arg0, z072, __LINE__, 0, 0, Local0, 28) } Store(m0e7(0xfe7cb391d650a284), Local0) if (F64) { if (LNotEqual(Local0, 29)) { err(arg0, z072, __LINE__, 0, 0, Local0, 29) } } else { if (LNotEqual(Local0, 39)) { err(arg0, z072, __LINE__, 0, 0, Local0, 39) } } Store(m0e7(0), Local0) if (LNotEqual(Local0, 14)) { err(arg0, z072, __LINE__, 0, 0, Local0, 14) } Store(m0e7(0xffffffff), Local0) if (LNotEqual(Local0, 16)) { err(arg0, z072, __LINE__, 0, 0, Local0, 16) } Store(m0e7(0xffffffffffffffff), Local0) if (F64) { if (LNotEqual(Local0, 17)) { err(arg0, z072, __LINE__, 0, 0, Local0, 17) } } else { if (LNotEqual(Local0, 16)) { err(arg0, z072, __LINE__, 0, 0, Local0, 16) } } Store(m0e7(0xff), Local0) if (LNotEqual(Local0, 20)) { err(arg0, z072, __LINE__, 0, 0, Local0, 20) } Store(m0e7(0xabcdef), Local0) if (LNotEqual(Local0, 44)) { err(arg0, z072, __LINE__, 0, 0, Local0, 44) } } // The same as m0e3 and m0e4 but with Packages Method(m0e9, 1) { Switch (ToString(arg0)) { // Integer Case (Package() {0321}) { Store(0, Local7) } Case (Package() {9876543210}) { Store(1, Local7) } Case (Package() {0xc179b3fe}) { Store(2, Local7) } Case (Package() {0xfe7cb391d650a284}) { Store(3, Local7) } Case (Package() {0}) { Store(4, Local7) } Case (Package() {0xffffffff}) { Store(5, Local7) } Case (Package() {0xffffffffffffffff}) { Store(6, Local7) } Case (Package() {0xff}) { Store(7, Local7) } Case (Package() {0xabcdef}) { Store(8, Local7) } // Buffer Case (Package() {Buffer(1){10}}) { Store(9, Local7) } Case (Package() {Buffer(2){11,12}}) { Store(10, Local7) } Case (Package() {Buffer() {13,14,15}}) { Store(11, Local7) } Case (Package() {Buffer(2){16,17,18}}) { Store(12, Local7) } Case (Package() {Buffer(3){19,20}}) { Store(13, Local7) } Case (Package() {Buffer(3){21,22,23}}) { Store(14, Local7) } Case (Package() {Buffer(4){24,25,26,27}}) { Store(15, Local7) } Case (Package() {Buffer(5){28,29,30,31,32}}) { Store(16, Local7) } Case (Package() {Buffer(8){33,34,35,36,37,38,39,40}}) { Store(17, Local7) } Case (Package() {Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}}) { Store(18, Local7) } Case (Package() {Buffer(9){41,42,43,44,45,46,47,48,49}}) { Store(19, Local7) } Case (Package() {Buffer(67){0x7d}}) { Store(20, Local7) } Case (Package() {Buffer() { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}}) { Store(21, Local7) } Case (Package() {Buffer(67) { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}}) { Store(22, Local7) } Case (Package() {Buffer(4){0,0,0,0}}) { Store(23, Local7) } Case (Package() {Buffer(8){0,0,0,0,0,0,0,0}}) { Store(24, Local7) } Case (Package() {Buffer(4){0xff,0xff,0xff,0xff}}) { Store(25, Local7) } Case (Package() {Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}}) { Store(26, Local7) } Case (Package() {Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}}) { Store(27, Local7) } Case (Package() {Buffer(5){0xff,0xff,0xff,0xff,0xff}}) { Store(28, Local7) } Case (Package() {Buffer(1){0xff}}) { Store(29, Local7) } Case (Package() {Buffer(1){}}) { Store(30, Local7) } Case (Package() {Buffer(5){}}) { Store(31, Local7) } Case (Package() {Buffer(9){}}) { Store(32, Local7) } Case (Package() {Buffer(9){0xab, 0xcd, 0xef}}) { Store(33, Local7) } // String Case (Package() {"0321"}) { Store(34, Local7) } Case (Package() {"321"}) { Store(35, Local7) } Case (Package() {"ba9876"}) { Store(36, Local7) } Case (Package() {"c179b3fe"}) { Store(37, Local7) } Case (Package() {"fe7cb391d650a284"}) { Store(38, Local7) } Case (Package() {"ffffffff"}) { Store(39, Local7) } Case (Package() {"ffffffffffffffffff"}) { Store(40, Local7) } Case (Package() {"ffffffffffffffff"}) { Store(41, Local7) } Case (Package() {"ffffffffff"}) { Store(42, Local7) } Case (Package() {"ff"}) { Store(43, Local7) } Case (Package() {"fe7cb391d650a2841"}) { Store(44, Local7) } Case (Package() {"987654321"}) { Store(45, Local7) } Case (Package() {"0xfe7cb3"}) { Store(46, Local7) } Case (Package() {"1234q"}) { Store(47, Local7) } Case (Package() {"qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdf"}) { Store(48, Local7) } Case (Package() {""}) { Store(49, Local7) } Case (Package() {" "}) { Store(50, Local7) } Case (Package() {"`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?"}) { Store(51, Local7) } Case (Package() {"abcdef"}) { Store(52, Local7) } Case (Package() {"ABCDEF"}) { Store(53, Local7) } Default { Store(54, Local7) } } return (Local7) } Method(m0ea, 1) { // String Store(m0e9("0321"), Local0) if (LNotEqual(Local0, 34)) { err(arg0, z072, __LINE__, 0, 0, Local0, 34) } Store(m0e9("321"), Local0) if (LNotEqual(Local0, 35)) { err(arg0, z072, __LINE__, 0, 0, Local0, 35) } Store(m0e9("ba9876"), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z072, __LINE__, 0, 0, Local0, 36) } Store(m0e9("c179b3fe"), Local0) if (LNotEqual(Local0, 37)) { err(arg0, z072, __LINE__, 0, 0, Local0, 37) } Store(m0e9("fe7cb391d650a284"), Local0) if (LNotEqual(Local0, 38)) { err(arg0, z072, __LINE__, 0, 0, Local0, 38) } Store(m0e9("ffffffff"), Local0) if (LNotEqual(Local0, 39)) { err(arg0, z072, __LINE__, 0, 0, Local0, 39) } Store(m0e9("ffffffffffffffffff"), Local0) if (LNotEqual(Local0, 40)) { err(arg0, z072, __LINE__, 0, 0, Local0, 40) } Store(m0e9("ffffffffffffffff"), Local0) if (LNotEqual(Local0, 41)) { err(arg0, z072, __LINE__, 0, 0, Local0, 41) } Store(m0e9("ffffffffff"), Local0) if (LNotEqual(Local0, 42)) { err(arg0, z072, __LINE__, 0, 0, Local0, 42) } Store(m0e9("ff"), Local0) if (LNotEqual(Local0, 43)) { err(arg0, z072, __LINE__, 0, 0, Local0, 43) } Store(m0e9("fe7cb391d650a2841"), Local0) if (LNotEqual(Local0, 44)) { err(arg0, z072, __LINE__, 0, 0, Local0, 44) } Store(m0e9("987654321"), Local0) if (LNotEqual(Local0, 45)) { err(arg0, z072, __LINE__, 0, 0, Local0, 45) } Store(m0e9("0xfe7cb3"), Local0) if (LNotEqual(Local0, 46)) { err(arg0, z072, __LINE__, 0, 0, Local0, 46) } Store(m0e9("1234q"), Local0) if (LNotEqual(Local0, 47)) { err(arg0, z072, __LINE__, 0, 0, Local0, 47) } Store(m0e9(BIG0), Local0) if (LNotEqual(Local0, 48)) { err(arg0, z072, __LINE__, 0, 0, Local0, 48) } Store(m0e9(""), Local0) if (LNotEqual(Local0, 49)) { err(arg0, z072, __LINE__, 0, 0, Local0, 49) } Store(m0e9(" "), Local0) if (LNotEqual(Local0, 50)) { err(arg0, z072, __LINE__, 0, 0, Local0, 50) } Store(m0e9(ALL0), Local0) if (LNotEqual(Local0, 51)) { err(arg0, z072, __LINE__, 0, 0, Local0, 51) } Store(m0e9("abcdef"), Local0) if (LNotEqual(Local0, 52)) { err(arg0, z072, __LINE__, 0, 0, Local0, 52) } Store(m0e9("ABCDEF"), Local0) if (LNotEqual(Local0, 53)) { err(arg0, z072, __LINE__, 0, 0, Local0, 53) } } // The same as m0e5 and m0e6 but with Packages Method(m0eb, 1) { Switch (ToBuffer(arg0)) { // Integer Case (Package() {0321}) { Store(0, Local7) } Case (Package() {9876543210}) { Store(1, Local7) } Case (Package() {0xc179b3fe}) { Store(2, Local7) } Case (Package() {0xfe7cb391d650a284}) { Store(3, Local7) } Case (Package() {0}) { Store(4, Local7) } Case (Package() {0xffffffff}) { Store(5, Local7) } Case (Package() {0xffffffffffffffff}) { Store(6, Local7) } Case (Package() {0xff}) { Store(7, Local7) } Case (Package() {0xabcdef}) { Store(8, Local7) } // String Case (Package() {"0321"}) { Store(9, Local7) } Case (Package() {"321"}) { Store(10, Local7) } Case (Package() {"ba9876"}) { Store(11, Local7) } Case (Package() {"c179b3fe"}) { Store(12, Local7) } Case (Package() {"fe7cb391d650a284"}) { Store(13, Local7) } Case (Package() {"ffffffff"}) { Store(14, Local7) } Case (Package() {"ffffffffffffffffff"}) { Store(15, Local7) } Case (Package() {"ffffffffffffffff"}) { Store(16, Local7) } Case (Package() {"ffffffffff"}) { Store(17, Local7) } Case (Package() {"ff"}) { Store(18, Local7) } Case (Package() {"fe7cb391d650a2841"}) { Store(19, Local7) } Case (Package() {"987654321"}) { Store(20, Local7) } Case (Package() {"0xfe7cb3"}) { Store(21, Local7) } Case (Package() {"1234q"}) { Store(22, Local7) } Case (Package() {"qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdf"}) { Store(23, Local7) } Case (Package() {""}) { Store(24, Local7) } Case (Package() {" "}) { Store(25, Local7) } Case (Package() {"`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?"}) { Store(26, Local7) } Case (Package() {"abcdef"}) { Store(27, Local7) } Case (Package() {"ABCDEF"}) { Store(28, Local7) } // Buffer Case (Package() {Buffer(1){10}}) { Store(29, Local7) } Case (Package() {Buffer(2){11,12}}) { Store(30, Local7) } Case (Package() {Buffer() {13,14,15}}) { Store(31, Local7) } Case (Package() {Buffer(2){16,17,18}}) { Store(32, Local7) } Case (Package() {Buffer(3){19,20}}) { Store(33, Local7) } Case (Package() {Buffer(3){21,22,23}}) { Store(34, Local7) } Case (Package() {Buffer(4){24,25,26,27}}) { Store(35, Local7) } Case (Package() {Buffer(5){28,29,30,31,32}}) { Store(36, Local7) } Case (Package() {Buffer(8){33,34,35,36,37,38,39,40}}) { Store(37, Local7) } Case (Package() {Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}}) { Store(38, Local7) } Case (Package() {Buffer(9){41,42,43,44,45,46,47,48,49}}) { Store(39, Local7) } Case (Package() {Buffer(257){0x7d}}) { Store(40, Local7) } Case (Package() {Buffer(257) { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x01}}) { Store(41, Local7) } Case (Package() {Buffer() { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x02}}) { Store(42, Local7) } Case (Package() {Buffer(4){0,0,0,0}}) { Store(43, Local7) } Case (Package() {Buffer(8){0,0,0,0,0,0,0,0}}) { Store(44, Local7) } Case (Package() {Buffer(4){0xff,0xff,0xff,0xff}}) { Store(45, Local7) } Case (Package() {Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}}) { Store(46, Local7) } Case (Package() {Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}}) { Store(47, Local7) } Case (Package() {Buffer(5){0xff,0xff,0xff,0xff,0xff}}) { Store(48, Local7) } Case (Package() {Buffer(1){0xff}}) { Store(49, Local7) } Case (Package() {Buffer(1){}}) { Store(50, Local7) } Case (Package() {Buffer(5){}}) { Store(51, Local7) } Case (Package() {Buffer(9){}}) { Store(52, Local7) } Case (Package() {Buffer(9){0xab, 0xcd, 0xef}}) { Store(53, Local7) } Default { Store(54, Local7) } } return (Local7) } Method(m0ec, 1) { // Buffer Store(m0eb(Buffer(1){10}), Local0) if (LNotEqual(Local0, 29)) { err(arg0, z072, __LINE__, 0, 0, Local0, 29) } Store(m0eb(Buffer(2){11,12}), Local0) if (LNotEqual(Local0, 30)) { err(arg0, z072, __LINE__, 0, 0, Local0, 30) } Store(m0eb(Buffer() {13,14,15}), Local0) if (LNotEqual(Local0, 31)) { err(arg0, z072, __LINE__, 0, 0, Local0, 31) } Store(m0eb(Buffer(2){16,17,18}), Local0) if (LNotEqual(Local0, 32)) { err(arg0, z072, __LINE__, 0, 0, Local0, 32) } Store(m0eb(Buffer(3){19,20}), Local0) if (LNotEqual(Local0, 33)) { err(arg0, z072, __LINE__, 0, 0, Local0, 33) } Store(m0eb(Buffer(3){21,22,23}), Local0) if (LNotEqual(Local0, 34)) { err(arg0, z072, __LINE__, 0, 0, Local0, 34) } Store(m0eb(Buffer(4){24,25,26,27}), Local0) if (LNotEqual(Local0, 35)) { err(arg0, z072, __LINE__, 0, 0, Local0, 35) } Store(m0eb(Buffer(5){28,29,30,31,32}), Local0) if (LNotEqual(Local0, 36)) { err(arg0, z072, __LINE__, 0, 0, Local0, 36) } Store(m0eb(Buffer(8){33,34,35,36,37,38,39,40}), Local0) if (LNotEqual(Local0, 37)) { err(arg0, z072, __LINE__, 0, 0, Local0, 37) } Store(m0eb(Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}), Local0) if (LNotEqual(Local0, 38)) { err(arg0, z072, __LINE__, 0, 0, Local0, 38) } Store(m0eb(Buffer(9){41,42,43,44,45,46,47,48,49}), Local0) if (LNotEqual(Local0, 39)) { err(arg0, z072, __LINE__, 0, 0, Local0, 39) } Store(m0eb(Buffer(257){0x7d}), Local0) if (LNotEqual(Local0, 40)) { err(arg0, z072, __LINE__, 0, 0, Local0, 40) } Store(m0eb(Buffer(257) { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x01}), Local0) if (LNotEqual(Local0, 41)) { err(arg0, z072, __LINE__, 0, 0, Local0, 41) } Store(m0eb(Buffer() { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x02}), Local0) if (LNotEqual(Local0, 42)) { err(arg0, z072, __LINE__, 0, 0, Local0, 42) } if (F64) { Store(m0eb(Buffer(4){0,0,0,0}), Local0) if (LNotEqual(Local0, 43)) { err(arg0, z072, __LINE__, 0, 0, Local0, 43) } Store(m0eb(Buffer(8){0,0,0,0,0,0,0,0}), Local0) if (LNotEqual(Local0, 4)) { err(arg0, z072, __LINE__, 0, 0, Local0, 4) } Store(m0eb(Buffer(4){0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 45)) { err(arg0, z072, __LINE__, 0, 0, Local0, 45) } Store(m0eb(Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 6)) { err(arg0, z072, __LINE__, 0, 0, Local0, 6) } } else { Store(m0eb(Buffer(4){0,0,0,0}), Local0) if (LNotEqual(Local0, 4)) { err(arg0, z072, __LINE__, 0, 0, Local0, 4) } Store(m0eb(Buffer(8){0,0,0,0,0,0,0,0}), Local0) if (LNotEqual(Local0, 44)) { err(arg0, z072, __LINE__, 0, 0, Local0, 44) } Store(m0eb(Buffer(4){0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z072, __LINE__, 0, 0, Local0, 5) } Store(m0eb(Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 47)) { err(arg0, z072, __LINE__, 0, 0, Local0, 47) } } Store(m0eb(Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 46)) { err(arg0, z072, __LINE__, 0, 0, Local0, 46) } Store(m0eb(Buffer(5){0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 48)) { err(arg0, z072, __LINE__, 0, 0, Local0, 48) } Store(m0eb(Buffer(1){0xff}), Local0) if (LNotEqual(Local0, 49)) { err(arg0, z072, __LINE__, 0, 0, Local0, 49) } Store(m0eb(Buffer(1){}), Local0) if (LNotEqual(Local0, 24)) { err(arg0, z072, __LINE__, 0, 0, Local0, 24) } Store(m0eb(Buffer(5){}), Local0) if (LNotEqual(Local0, 51)) { err(arg0, z072, __LINE__, 0, 0, Local0, 51) } Store(m0eb(Buffer(9){}), Local0) if (LNotEqual(Local0, 52)) { err(arg0, z072, __LINE__, 0, 0, Local0, 52) } Store(m0eb(Buffer(9){0xab, 0xcd, 0xef}), Local0) if (LNotEqual(Local0, 53)) { err(arg0, z072, __LINE__, 0, 0, Local0, 53) } } // Run-method Method(SW09,, Serialized) { Store("TEST: SW09, Switch, Case, Default operators", Debug) Name(ts, "SW09") m0e8(ts) m0ea(ts) m0ec(ts) return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/MAIN.asl0000700000175000017500000000505314773714155027664 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * NOTE: this control test case will stay unconverted. This is because this test case * contains a lot of nested control statements (if, case, while). The indentation in * this testcase does not follow standard indentation rules to maintain readability. * If this file were to be converted, it will result in insertion of many whitespaces * at the beginning of the line for code that has very deep nesting. Therefore we will * leave this test case unconverted. */ DefinitionBlock( "control.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../runtime/cntl/DECL.asl") Include("../../../../runtime/collections/functional/control/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../runtime/collections/functional/control/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/Makefile0000700000175000017500000000020714773714155030073 0ustar ivanhuivanhu# control AMLMOD= control COLL= ../.. ADD_ASLFLAGS=-vx 6152 -vx 6163 -vx 6022 TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/timing.asl0000700000175000017500000004456314773714155030440 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Timing operators */ Name(z006, 6) Name(MSLP, 2000) // Max sleep (ms) defined in acconfig.h, Oct 2013 // Verifying 1-parameter, 0-result operator // // Arg5 - additional parameter (event...) // // Local0 - argument passed by test (MilliSeconds) // Local4 - specified time to be delayed (in Timer units) // Local6 - time actually was delayed (measured by Timer, in Timer units) // Local7 - delta == (actual - specified) (in Timer units) // Method(m0c8, 6) { Store(0, Local5) Store(arg1, Local3) While(Local3) { // Operand Store(DeRefOf(Index(arg3, Local5)), Local0) switch (arg4) { case (0) { if (LLess(MSLP, Local0)) { // Exceeding max allowable sleep time Store("m0c8: Note, argument exceeds max defined time for Sleep.", Debug); Break } Store(Timer, Local1) Sleep(Local0) Store(Timer, Local2) Subtract(Local2, Local1, Local6) Multiply(Local0, 10000, Local4) if (LLess(Local6, Local4)) { Subtract(Local4, Local6, Local7) err(arg0, z006, __LINE__, 0, 0, Local5, arg2) Store(Local0, Debug) Store(Local4, Debug) Store(Local6, Debug) Store(Local7, Debug) return (1) } else { Subtract(Local6, Local4, Local7) } } case (1) { Store(Timer, Local1) Stall(Local0) Store(Timer, Local2) Subtract(Local2, Local1, Local6) Multiply(Local0, 10, Local4) if (LLess(Local6, Local4)) { Subtract(Local4, Local6, Local7) err(arg0, z006, __LINE__, 0, 0, Local5, arg2) Store(Local0, Debug) Store(Local4, Debug) Store(Local6, Debug) Store(Local7, Debug) return (1) } else { Subtract(Local6, Local4, Local7) } } case (2) { Store(Timer, Local1) Wait(arg5, Local0) Store(Timer, Local2) Subtract(Local2, Local1, Local6) Multiply(Local0, 10000, Local4) if (LLess(Local6, Local4)) { Subtract(Local4, Local6, Local7) err(arg0, z006, __LINE__, 0, 0, Local5, arg2) Store(Local0, Debug) Store(Local4, Debug) Store(Local6, Debug) Store(Local7, Debug) return (1) } else { Subtract(Local6, Local4, Local7) } } } if (0) { Store("====================:", Debug) Store(Local0, Debug) Store(Local4, Debug) Store(Local6, Debug) Store(Local7, Debug) } Increment(Local5) Decrement(Local3) } return (0) } // Sleep. Sleep n milliseconds (yields the processor) Method(m0c9,, Serialized) { Name(ts, "m0c9") Store("TEST: m0c9, Sleep, sleep n milliseconds (yields the processor)", Debug) Name(p000, Package() { 0, 1, 10, 100, 1000, 2000, 3456, 10000, 12345 }) Store(1, Local0) While(Local0) { if (m0c8(ts, 9, "p000", p000, 0, 0)) { return (1) } Decrement(Local0) } return (0) } // Stall. Delay n microseconds (does not yield the processor) Method(m0ca,, Serialized) { Name(ts, "m0ca") Store("TEST: m0ca, Stall, delay n microseconds (does not yield the processor)", Debug) Name(p000, Package() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 14, 23, 37, 49, 55, 62, 78, 81, 96, 100 }) Store(5, Local0) While(Local0) { if (m0c8(ts, 30, "p000", p000, 1, 0)) { return (1) } Decrement(Local0) } return (0) } // Wait. The calling method blocks while waiting for the event to be signaled Method(m0cb,, Serialized) { Name(ts, "m0cb") Store("TEST: m0cb, Wait, waiting for the event to be signaled", Debug) Event(e000) Name(p000, Package() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 14, 23, 37, 49, 55, 62, 78, 81, 96, 100 }) Store(1, Local0) While(Local0) { if (m0c8(ts, 30, "p000", p000, 2, e000)) { return (1) } Decrement(Local0) } Name(p001, Package() { 0, 1, 10, 100, 1000, 2000, 3456, 10000, 12345 }) Store(1, Local0) While(Local0) { if (m0c8(ts, 9, "p001", p001, 2, e000)) { return (1) } Decrement(Local0) } return (0) } // Handle and summarize the Timer-times package. Method(m0cc, 3, Serialized) { Name(n000, 0) Name(ncur, 0) // Size of p001=(p000-1) Name(n001, 0) Subtract(arg2, 1, n001) Name(p001, Package(n001) {}) Name(nmin, 0) Name(nmax, 0) Name(ndcr, 0) Name(navr, 0) Name(nspl, 0) // Index for p001 Name(ncu1, 0) // Obtain the adjacent deltas. Store(0, Local7) Store(arg2, n000) Store(0, ncur) Store(0, ncu1) While (n000) { Store(DeRefOf(Index(arg1, ncur)), Local0) if (ncur) { Subtract(Local0, Local7, Local6) Store(Local6, Index(p001, ncu1)) Increment(ncu1) if (0) { Store(Local6, Debug) } } // Previous time Store(Local0, Local7) Decrement(n000) Increment(ncur) } // Summarize - min, max, average Store(0, Local6) Store(n001, n000) Store(0, ncur) Store(0, nmin) Store(0, nmax) Store(0, ndcr) Store(0, navr) While (n000) { Store(DeRefOf(Index(p001, ncur)), Local0) Add(Local6, Local0, Local6) if (ncur) { // New value less then previous if (LLess(Local0, Local7)) { Increment(ndcr) } if (LLess(Local0, nmin)) { Store(Local0, nmin) } elseif (LGreater(Local0, nmax)) { Store(Local0, nmax) } } else { Store(Local0, nmin) Store(Local0, nmax) } // Previous delta Store(Local0, Local7) Decrement(n000) Increment(ncur) } Divide(Local6, n001, Local0, navr) // Summarize - check monotony, no splashes // exceeding the adjacent points in times. Store(0, Local6) Store(n001, n000) Store(0, ncur) Store(0, nspl) While (n000) { Store(DeRefOf(Index(arg1, ncur)), Local0) if (ncur) { // Splashes different in times if (LLess(Local0, Local7)) { Divide(Local7, Local0, Local1, Local6) } else { Divide(Local0, Local7, Local1, Local6) } if (LGreater(Local6, 2)) { Increment(nspl) } } // Previous delta Store(Local0, Local7) Decrement(n000) Increment(ncur) } Store("Summary:", Debug) Store(nmin, Debug) Store(nmax, Debug) Store(navr, Debug) Store(ndcr, Debug) Store(nspl, Debug) } // Timer with Package - is not a test as such, but shows behaviour of Timer. // // Get Timer-time N times, store them into Package. // Then, calculate the Timer-time between each adjacent points. // Much time is spent on storing into Package. // // Summary of deltas between the adjacent points: // // nmin - minimal // nmax - maximal // navr - average // // Monotony: // // ndcr - # lower than previous // nspl - # splashes exceeding the adjacent point by 2 or more times Method(m0cd,, Serialized) { Name(ts, "m0cd") Store("TEST: m0cd, Timer with Package", Debug) // nsz0 - size of p000 // n000 - decr cur counter // ncur - incr cur counter Name(nsz0, 101) Name(n000, 0) Name(ncur, 0) Store(nsz0, n000) Store(0, ncur) Name(p000, Package(n000) {}) // Obtain the time and store into Package. // Do as quickly as possible without any unnecessary actions. While (n000) { Store(Timer, Local0) Store(Local0, Index(p000, ncur)) Decrement(n000) Increment(ncur) } m0cc(ts, p000, nsz0) } // Timer with Name Method(m0ce,, Serialized) { Name(ts, "m0ce") Store("TEST: m0ce, Timer with Name", Debug) Name(nsz0, 101) Name(p000, Package(nsz0) {}) Name(tmp, 0) Name(n000, 0) Name(n001, 0) Name(n002, 0) Name(n003, 0) Name(n004, 0) Name(n005, 0) Name(n006, 0) Name(n007, 0) Name(n008, 0) Name(n009, 0) Name(n010, 0) Name(n011, 0) Name(n012, 0) Name(n013, 0) Name(n014, 0) Name(n015, 0) Name(n016, 0) Name(n017, 0) Name(n018, 0) Name(n019, 0) Name(n020, 0) Name(n021, 0) Name(n022, 0) Name(n023, 0) Name(n024, 0) Name(n025, 0) Name(n026, 0) Name(n027, 0) Name(n028, 0) Name(n029, 0) Name(n030, 0) Name(n031, 0) Name(n032, 0) Name(n033, 0) Name(n034, 0) Name(n035, 0) Name(n036, 0) Name(n037, 0) Name(n038, 0) Name(n039, 0) Name(n040, 0) Name(n041, 0) Name(n042, 0) Name(n043, 0) Name(n044, 0) Name(n045, 0) Name(n046, 0) Name(n047, 0) Name(n048, 0) Name(n049, 0) Name(n050, 0) Name(n051, 0) Name(n052, 0) Name(n053, 0) Name(n054, 0) Name(n055, 0) Name(n056, 0) Name(n057, 0) Name(n058, 0) Name(n059, 0) Name(n060, 0) Name(n061, 0) Name(n062, 0) Name(n063, 0) Name(n064, 0) Name(n065, 0) Name(n066, 0) Name(n067, 0) Name(n068, 0) Name(n069, 0) Name(n070, 0) Name(n071, 0) Name(n072, 0) Name(n073, 0) Name(n074, 0) Name(n075, 0) Name(n076, 0) Name(n077, 0) Name(n078, 0) Name(n079, 0) Name(n080, 0) Name(n081, 0) Name(n082, 0) Name(n083, 0) Name(n084, 0) Name(n085, 0) Name(n086, 0) Name(n087, 0) Name(n088, 0) Name(n089, 0) Name(n090, 0) Name(n091, 0) Name(n092, 0) Name(n093, 0) Name(n094, 0) Name(n095, 0) Name(n096, 0) Name(n097, 0) Name(n098, 0) Name(n099, 0) Name(n100, 0) Store(Timer, n000) Store(Timer, n001) Store(Timer, n002) Store(Timer, n003) Store(Timer, n004) Store(Timer, n005) Store(Timer, n006) Store(Timer, n007) Store(Timer, n008) Store(Timer, n009) Store(Timer, n010) Store(Timer, n011) Store(Timer, n012) Store(Timer, n013) Store(Timer, n014) Store(Timer, n015) Store(Timer, n016) Store(Timer, n017) Store(Timer, n018) Store(Timer, n019) Store(Timer, n020) Store(Timer, n021) Store(Timer, n022) Store(Timer, n023) Store(Timer, n024) Store(Timer, n025) Store(Timer, n026) Store(Timer, n027) Store(Timer, n028) Store(Timer, n029) Store(Timer, n030) Store(Timer, n031) Store(Timer, n032) Store(Timer, n033) Store(Timer, n034) Store(Timer, n035) Store(Timer, n036) Store(Timer, n037) Store(Timer, n038) Store(Timer, n039) Store(Timer, n040) Store(Timer, n041) Store(Timer, n042) Store(Timer, n043) Store(Timer, n044) Store(Timer, n045) Store(Timer, n046) Store(Timer, n047) Store(Timer, n048) Store(Timer, n049) Store(Timer, n050) Store(Timer, n051) Store(Timer, n052) Store(Timer, n053) Store(Timer, n054) Store(Timer, n055) Store(Timer, n056) Store(Timer, n057) Store(Timer, n058) Store(Timer, n059) Store(Timer, n060) Store(Timer, n061) Store(Timer, n062) Store(Timer, n063) Store(Timer, n064) Store(Timer, n065) Store(Timer, n066) Store(Timer, n067) Store(Timer, n068) Store(Timer, n069) Store(Timer, n070) Store(Timer, n071) Store(Timer, n072) Store(Timer, n073) Store(Timer, n074) Store(Timer, n075) Store(Timer, n076) Store(Timer, n077) Store(Timer, n078) Store(Timer, n079) Store(Timer, n080) Store(Timer, n081) Store(Timer, n082) Store(Timer, n083) Store(Timer, n084) Store(Timer, n085) Store(Timer, n086) Store(Timer, n087) Store(Timer, n088) Store(Timer, n089) Store(Timer, n090) Store(Timer, n091) Store(Timer, n092) Store(Timer, n093) Store(Timer, n094) Store(Timer, n095) Store(Timer, n096) Store(Timer, n097) Store(Timer, n098) Store(Timer, n099) Store(Timer, n100) Store(n000, Index(p000, tmp)) Increment(tmp) Store(n001, Index(p000, tmp)) Increment(tmp) Store(n002, Index(p000, tmp)) Increment(tmp) Store(n003, Index(p000, tmp)) Increment(tmp) Store(n004, Index(p000, tmp)) Increment(tmp) Store(n005, Index(p000, tmp)) Increment(tmp) Store(n006, Index(p000, tmp)) Increment(tmp) Store(n007, Index(p000, tmp)) Increment(tmp) Store(n008, Index(p000, tmp)) Increment(tmp) Store(n009, Index(p000, tmp)) Increment(tmp) Store(n010, Index(p000, tmp)) Increment(tmp) Store(n011, Index(p000, tmp)) Increment(tmp) Store(n012, Index(p000, tmp)) Increment(tmp) Store(n013, Index(p000, tmp)) Increment(tmp) Store(n014, Index(p000, tmp)) Increment(tmp) Store(n015, Index(p000, tmp)) Increment(tmp) Store(n016, Index(p000, tmp)) Increment(tmp) Store(n017, Index(p000, tmp)) Increment(tmp) Store(n018, Index(p000, tmp)) Increment(tmp) Store(n019, Index(p000, tmp)) Increment(tmp) Store(n020, Index(p000, tmp)) Increment(tmp) Store(n021, Index(p000, tmp)) Increment(tmp) Store(n022, Index(p000, tmp)) Increment(tmp) Store(n023, Index(p000, tmp)) Increment(tmp) Store(n024, Index(p000, tmp)) Increment(tmp) Store(n025, Index(p000, tmp)) Increment(tmp) Store(n026, Index(p000, tmp)) Increment(tmp) Store(n027, Index(p000, tmp)) Increment(tmp) Store(n028, Index(p000, tmp)) Increment(tmp) Store(n029, Index(p000, tmp)) Increment(tmp) Store(n030, Index(p000, tmp)) Increment(tmp) Store(n031, Index(p000, tmp)) Increment(tmp) Store(n032, Index(p000, tmp)) Increment(tmp) Store(n033, Index(p000, tmp)) Increment(tmp) Store(n034, Index(p000, tmp)) Increment(tmp) Store(n035, Index(p000, tmp)) Increment(tmp) Store(n036, Index(p000, tmp)) Increment(tmp) Store(n037, Index(p000, tmp)) Increment(tmp) Store(n038, Index(p000, tmp)) Increment(tmp) Store(n039, Index(p000, tmp)) Increment(tmp) Store(n040, Index(p000, tmp)) Increment(tmp) Store(n041, Index(p000, tmp)) Increment(tmp) Store(n042, Index(p000, tmp)) Increment(tmp) Store(n043, Index(p000, tmp)) Increment(tmp) Store(n044, Index(p000, tmp)) Increment(tmp) Store(n045, Index(p000, tmp)) Increment(tmp) Store(n046, Index(p000, tmp)) Increment(tmp) Store(n047, Index(p000, tmp)) Increment(tmp) Store(n048, Index(p000, tmp)) Increment(tmp) Store(n049, Index(p000, tmp)) Increment(tmp) Store(n050, Index(p000, tmp)) Increment(tmp) Store(n051, Index(p000, tmp)) Increment(tmp) Store(n052, Index(p000, tmp)) Increment(tmp) Store(n053, Index(p000, tmp)) Increment(tmp) Store(n054, Index(p000, tmp)) Increment(tmp) Store(n055, Index(p000, tmp)) Increment(tmp) Store(n056, Index(p000, tmp)) Increment(tmp) Store(n057, Index(p000, tmp)) Increment(tmp) Store(n058, Index(p000, tmp)) Increment(tmp) Store(n059, Index(p000, tmp)) Increment(tmp) Store(n060, Index(p000, tmp)) Increment(tmp) Store(n061, Index(p000, tmp)) Increment(tmp) Store(n062, Index(p000, tmp)) Increment(tmp) Store(n063, Index(p000, tmp)) Increment(tmp) Store(n064, Index(p000, tmp)) Increment(tmp) Store(n065, Index(p000, tmp)) Increment(tmp) Store(n066, Index(p000, tmp)) Increment(tmp) Store(n067, Index(p000, tmp)) Increment(tmp) Store(n068, Index(p000, tmp)) Increment(tmp) Store(n069, Index(p000, tmp)) Increment(tmp) Store(n070, Index(p000, tmp)) Increment(tmp) Store(n071, Index(p000, tmp)) Increment(tmp) Store(n072, Index(p000, tmp)) Increment(tmp) Store(n073, Index(p000, tmp)) Increment(tmp) Store(n074, Index(p000, tmp)) Increment(tmp) Store(n075, Index(p000, tmp)) Increment(tmp) Store(n076, Index(p000, tmp)) Increment(tmp) Store(n077, Index(p000, tmp)) Increment(tmp) Store(n078, Index(p000, tmp)) Increment(tmp) Store(n079, Index(p000, tmp)) Increment(tmp) Store(n080, Index(p000, tmp)) Increment(tmp) Store(n081, Index(p000, tmp)) Increment(tmp) Store(n082, Index(p000, tmp)) Increment(tmp) Store(n083, Index(p000, tmp)) Increment(tmp) Store(n084, Index(p000, tmp)) Increment(tmp) Store(n085, Index(p000, tmp)) Increment(tmp) Store(n086, Index(p000, tmp)) Increment(tmp) Store(n087, Index(p000, tmp)) Increment(tmp) Store(n088, Index(p000, tmp)) Increment(tmp) Store(n089, Index(p000, tmp)) Increment(tmp) Store(n090, Index(p000, tmp)) Increment(tmp) Store(n091, Index(p000, tmp)) Increment(tmp) Store(n092, Index(p000, tmp)) Increment(tmp) Store(n093, Index(p000, tmp)) Increment(tmp) Store(n094, Index(p000, tmp)) Increment(tmp) Store(n095, Index(p000, tmp)) Increment(tmp) Store(n096, Index(p000, tmp)) Increment(tmp) Store(n097, Index(p000, tmp)) Increment(tmp) Store(n098, Index(p000, tmp)) Increment(tmp) Store(n099, Index(p000, tmp)) Increment(tmp) Store(n100, Index(p000, tmp)) Increment(tmp) m0cc(ts, p000, nsz0) } // Timer with LocalX Method(m0cf,, Serialized) { Name(ts, "m0cf") Store("TEST: m0cf, Timer with LocalX", Debug) Name(nsz0, 101) Name(n000, 0) Name(tmp, 0) Name(last, 0) Name(dlta, 0) Store(nsz0, n000) Name(p000, Package(n000) {}) While (n000) { Store(Timer, Local0) Store(Timer, Local1) Store(Timer, Local2) Store(Timer, Local3) Store(Timer, Local4) Store(Timer, Local5) Store(Timer, Local6) Store(Timer, Local7) // Eliminate delta due to the storage into Package if (last) { Subtract(Local0, last, dlta) Subtract(Local0, dlta, Local0) Subtract(Local1, dlta, Local1) Subtract(Local2, dlta, Local2) Subtract(Local3, dlta, Local3) Subtract(Local4, dlta, Local4) Subtract(Local5, dlta, Local5) Subtract(Local6, dlta, Local6) Subtract(Local7, dlta, Local7) } Store(Local0, Index(p000, tmp)) Increment(tmp) if (LGreaterEqual(tmp, nsz0)) { break } Store(Local1, Index(p000, tmp)) Increment(tmp) if (LGreaterEqual(tmp, nsz0)) { break } Store(Local2, Index(p000, tmp)) Increment(tmp) if (LGreaterEqual(tmp, nsz0)) { break } Store(Local3, Index(p000, tmp)) Increment(tmp) if (LGreaterEqual(tmp, nsz0)) { break } Store(Local4, Index(p000, tmp)) Increment(tmp) if (LGreaterEqual(tmp, nsz0)) { break } Store(Local5, Index(p000, tmp)) Increment(tmp) if (LGreaterEqual(tmp, nsz0)) { break } Store(Local6, Index(p000, tmp)) Increment(tmp) if (LGreaterEqual(tmp, nsz0)) { break } Store(Local7, Index(p000, tmp)) Increment(tmp) if (LGreaterEqual(tmp, nsz0)) { break } Store(Local7, last) Decrement(n000) } m0cc(ts, p000, nsz0) } // Run-method Method(TIM0) { Store("TEST: TIM0, Timing operators", Debug) m0c9() m0ca() m0cb() m0cd() m0ce() m0cf() } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/switch2.asl0000700000175000017500000016642614773714155030537 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Huge, many levels embedded {Switch, Case, Default} * The test similar to ctl2 */ /* See comments, dipper ???? identical to ctl2 do for 3 states in tests were there are not Defaults for all - 0,1,2 values use the same methods for several SW0X */ // Switch, Case, Default operators Name(z069, 69) // The maximal number of temporary variables // (_T_X) on ACPICA is equal to 36. Name(TMAX, 36) Name(b0sw, Buffer(TMAX) {}) // Put value to all elements of buffer Method(m0c1, 1, Serialized) { Name(lpN0, 0) Name(lpC0, 0) Store(TMAX, lpN0) While (lpN0) { Store(arg0, Index(b0sw, lpC0)) Decrement(lpN0) Increment(lpC0) } } Method(m0c0) { // equivalent to embedded if (36 levels): // if(){ if() { if() {...... // }}} Store(0x12345678, Local0) Switch (DeRefOf(Index(b0sw, 0))) { Case (0) { Store(0, Local0) Switch (DeRefOf(Index(b0sw, 1))) { Case (0) { Store(1, Local0) Switch (DeRefOf(Index(b0sw, 2))) { Case (0) { Store(2, Local0) Switch (DeRefOf(Index(b0sw, 3))) { Case (0) { Store(3, Local0) Switch (DeRefOf(Index(b0sw, 4))) { Case (0) { Store(4, Local0) Switch (DeRefOf(Index(b0sw, 5))) { Case (0) { Store(5, Local0) Switch (DeRefOf(Index(b0sw, 6))) { Case (0) { Store(6, Local0) Switch (DeRefOf(Index(b0sw, 7))) { Case (0) { Store(7, Local0) Switch (DeRefOf(Index(b0sw, 8))) { Case (0) { Store(8, Local0) Switch (DeRefOf(Index(b0sw, 9))) { Case (0) { Store(9, Local0) Switch (DeRefOf(Index(b0sw, 10))) { Case (0) { Store(10, Local0) Switch (DeRefOf(Index(b0sw, 11))) { Case (0) { Store(11, Local0) Switch (DeRefOf(Index(b0sw, 12))) { Case (0) { Store(12, Local0) Switch (DeRefOf(Index(b0sw, 13))) { Case (0) { Store(13, Local0) Switch (DeRefOf(Index(b0sw, 14))) { Case (0) { Store(14, Local0) Switch (DeRefOf(Index(b0sw, 15))) { Case (0) { Store(15, Local0) Switch (DeRefOf(Index(b0sw, 16))) { Case (0) { Store(16, Local0) Switch (DeRefOf(Index(b0sw, 17))) { Case (0) { Store(17, Local0) Switch (DeRefOf(Index(b0sw, 18))) { Case (0) { Store(18, Local0) Switch (DeRefOf(Index(b0sw, 19))) { Case (0) { Store(19, Local0) Switch (DeRefOf(Index(b0sw, 20))) { Case (0) { Store(20, Local0) Switch (DeRefOf(Index(b0sw, 21))) { Case (0) { Store(21, Local0) Switch (DeRefOf(Index(b0sw, 22))) { Case (0) { Store(22, Local0) Switch (DeRefOf(Index(b0sw, 23))) { Case (0) { Store(23, Local0) Switch (DeRefOf(Index(b0sw, 24))) { Case (0) { Store(24, Local0) Switch (DeRefOf(Index(b0sw, 25))) { Case (0) { Store(25, Local0) Switch (DeRefOf(Index(b0sw, 26))) { Case (0) { Store(26, Local0) Switch (DeRefOf(Index(b0sw, 27))) { Case (0) { Store(27, Local0) Switch (DeRefOf(Index(b0sw, 28))) { Case (0) { Store(28, Local0) Switch (DeRefOf(Index(b0sw, 29))) { Case (0) { Store(29, Local0) Switch (DeRefOf(Index(b0sw, 30))) { Case (0) { Store(30, Local0) Switch (DeRefOf(Index(b0sw, 31))) { Case (0) { Store(31, Local0) Switch (DeRefOf(Index(b0sw, 32))) { Case (0) { Store(32, Local0) Switch (DeRefOf(Index(b0sw, 33))) { Case (0) { Store(33, Local0) Switch (DeRefOf(Index(b0sw, 34))) { Case (0) { Store(34, Local0) Switch (DeRefOf(Index(b0sw, 35))) { Case (0) { Store(35, Local0) }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} return (Local0) } // Run-method Method(SW02,, Serialized) { Store("TEST: SW02, Switch, Case, Default operators", Debug) Name(ts, "SW02") Name(lpN0, 0) Name(lpC0, 0) // Check each Switch/Case(0) pair // from dipper pair to upper one. Store(TMAX, lpN0) Store(0, lpC0) m0c1(0) While (lpN0) { Store(m0c0(), Local1) Decrement(lpN0) Increment(lpC0) if (LNotEqual(Local1, lpN0)) { err(ts, z069, __LINE__, 0, 0, Local1, lpN0) return (Ones) } Store(1, Index(b0sw, lpN0)) } return (0) } Method(m0c2) { // equivalent to embedded if (36 levels): // if(){ // if(){ // if(){ // ... // } else { // } // } else { // } // } else { // } Store(0x12345678, Local0) Switch (DeRefOf(Index(b0sw, 0))) { Case (0) { Store(0, Local0) Switch (DeRefOf(Index(b0sw, 1))) { Case (0) { Store(1, Local0) Switch (DeRefOf(Index(b0sw, 2))) { Case (0) { Store(2, Local0) Switch (DeRefOf(Index(b0sw, 3))) { Case (0) { Store(3, Local0) Switch (DeRefOf(Index(b0sw, 4))) { Case (0) { Store(4, Local0) Switch (DeRefOf(Index(b0sw, 5))) { Case (0) { Store(5, Local0) Switch (DeRefOf(Index(b0sw, 6))) { Case (0) { Store(6, Local0) Switch (DeRefOf(Index(b0sw, 7))) { Case (0) { Store(7, Local0) Switch (DeRefOf(Index(b0sw, 8))) { Case (0) { Store(8, Local0) Switch (DeRefOf(Index(b0sw, 9))) { Case (0) { Store(9, Local0) Switch (DeRefOf(Index(b0sw, 10))) { Case (0) { Store(10, Local0) Switch (DeRefOf(Index(b0sw, 11))) { Case (0) { Store(11, Local0) Switch (DeRefOf(Index(b0sw, 12))) { Case (0) { Store(12, Local0) Switch (DeRefOf(Index(b0sw, 13))) { Case (0) { Store(13, Local0) Switch (DeRefOf(Index(b0sw, 14))) { Case (0) { Store(14, Local0) Switch (DeRefOf(Index(b0sw, 15))) { Case (0) { Store(15, Local0) Switch (DeRefOf(Index(b0sw, 16))) { Case (0) { Store(16, Local0) Switch (DeRefOf(Index(b0sw, 17))) { Case (0) { Store(17, Local0) Switch (DeRefOf(Index(b0sw, 18))) { Case (0) { Store(18, Local0) Switch (DeRefOf(Index(b0sw, 19))) { Case (0) { Store(19, Local0) Switch (DeRefOf(Index(b0sw, 20))) { Case (0) { Store(20, Local0) Switch (DeRefOf(Index(b0sw, 21))) { Case (0) { Store(21, Local0) Switch (DeRefOf(Index(b0sw, 22))) { Case (0) { Store(22, Local0) Switch (DeRefOf(Index(b0sw, 23))) { Case (0) { Store(23, Local0) Switch (DeRefOf(Index(b0sw, 24))) { Case (0) { Store(24, Local0) Switch (DeRefOf(Index(b0sw, 25))) { Case (0) { Store(25, Local0) Switch (DeRefOf(Index(b0sw, 26))) { Case (0) { Store(26, Local0) Switch (DeRefOf(Index(b0sw, 27))) { Case (0) { Store(27, Local0) Switch (DeRefOf(Index(b0sw, 28))) { Case (0) { Store(28, Local0) Switch (DeRefOf(Index(b0sw, 29))) { Case (0) { Store(29, Local0) Switch (DeRefOf(Index(b0sw, 30))) { Case (0) { Store(30, Local0) Switch (DeRefOf(Index(b0sw, 31))) { Case (0) { Store(31, Local0) Switch (DeRefOf(Index(b0sw, 32))) { Case (0) { Store(32, Local0) Switch (DeRefOf(Index(b0sw, 33))) { Case (0) { Store(33, Local0) Switch (DeRefOf(Index(b0sw, 34))) { Case (0) { Store(34, Local0) Switch (DeRefOf(Index(b0sw, 35))) { Case (0) { Store(35, Local0) } Case (1) { Store(71, Local0) }} } Case (1) { Store(70, Local0) }} } Case (1) { Store(69, Local0) }} } Case (1) { Store(68, Local0) }} } Case (1) { Store(67, Local0) }} } Case (1) { Store(66, Local0) }} } Case (1) { Store(65, Local0) }} } Case (1) { Store(64, Local0) }} } Case (1) { Store(63, Local0) }} } Case (1) { Store(62, Local0) }} } Case (1) { Store(61, Local0) }} } Case (1) { Store(60, Local0) }} } Case (1) { Store(59, Local0) }} } Case (1) { Store(58, Local0) }} } Case (1) { Store(57, Local0) }} } Case (1) { Store(56, Local0) }} } Case (1) { Store(55, Local0) }} } Case (1) { Store(54, Local0) }} } Case (1) { Store(53, Local0) }} } Case (1) { Store(52, Local0) }} } Case (1) { Store(51, Local0) }} } Case (1) { Store(50, Local0) }} } Case (1) { Store(49, Local0) }} } Case (1) { Store(48, Local0) }} } Case (1) { Store(47, Local0) }} } Case (1) { Store(46, Local0) }} } Case (1) { Store(45, Local0) }} } Case (1) { Store(44, Local0) }} } Case (1) { Store(43, Local0) }} } Case (1) { Store(42, Local0) }} } Case (1) { Store(41, Local0) }} } Case (1) { Store(40, Local0) }} } Case (1) { Store(39, Local0) }} } Case (1) { Store(38, Local0) }} } Case (1) { Store(37, Local0) }} } Case (1) { Store(36, Local0) }} return (Local0) } // Run-method Method(SW03,, Serialized) { Store("TEST: SW03, Switch, Case, Default operators", Debug) Name(ts, "SW03") Name(lpN0, 0) Name(lpC0, 0) // Check each Switch/Case(0) pair // from dipper pair to upper one. Store(TMAX, lpN0) Store(0, lpC0) m0c1(0) While (lpN0) { Store(m0c2(), Local1) Decrement(lpN0) Increment(lpC0) if (LNotEqual(Local1, lpN0)) { err(ts, z069, __LINE__, 0, 0, Local1, lpN0) return (Ones) } Store(2, Index(b0sw, lpN0)) } // Check each Switch/Case(1) pair // from dipper pair to upper one. Store(TMAX, lpN0) Store(0, lpC0) m0c1(0) While (lpN0) { Subtract(lpN0, 1, Local7) Store(1, Index(b0sw, Local7)) Store(m0c2(), Local1) Decrement(lpN0) Increment(lpC0) Add(TMAX, lpN0, Local7) if (LNotEqual(Local1, Local7)) { err(ts, z069, __LINE__, 0, 0, Local1, Local7) return (Ones) } } return (0) } Method(m0c3) { // equivalent to embedded else (36 levels): // if(){ // } else { // if(){ // } else { // if(){ // } else { // ... // } // } // } Store(0x12345678, Local0) Switch (DeRefOf(Index(b0sw, 0))) { Case (0) { Store(0, Local0) } Default { Store(36, Local0) Switch (DeRefOf(Index(b0sw, 1))) { Case (0) { Store(1, Local0) } Default { Store(37, Local0) Switch (DeRefOf(Index(b0sw, 2))) { Case (0) { Store(2, Local0) } Default { Store(38, Local0) Switch (DeRefOf(Index(b0sw, 3))) { Case (0) { Store(3, Local0) } Default { Store(39, Local0) Switch (DeRefOf(Index(b0sw, 4))) { Case (0) { Store(4, Local0) } Default { Store(40, Local0) Switch (DeRefOf(Index(b0sw, 5))) { Case (0) { Store(5, Local0) } Default { Store(41, Local0) Switch (DeRefOf(Index(b0sw, 6))) { Case (0) { Store(6, Local0) } Default { Store(42, Local0) Switch (DeRefOf(Index(b0sw, 7))) { Case (0) { Store(7, Local0) } Default { Store(43, Local0) Switch (DeRefOf(Index(b0sw, 8))) { Case (0) { Store(8, Local0) } Default { Store(44, Local0) Switch (DeRefOf(Index(b0sw, 9))) { Case (0) { Store(9, Local0) } Default { Store(45, Local0) Switch (DeRefOf(Index(b0sw, 10))) { Case (0) { Store(10, Local0) } Default { Store(46, Local0) Switch (DeRefOf(Index(b0sw, 11))) { Case (0) { Store(11, Local0) } Default { Store(47, Local0) Switch (DeRefOf(Index(b0sw, 12))) { Case (0) { Store(12, Local0) } Default { Store(48, Local0) Switch (DeRefOf(Index(b0sw, 13))) { Case (0) { Store(13, Local0) } Default { Store(49, Local0) Switch (DeRefOf(Index(b0sw, 14))) { Case (0) { Store(14, Local0) } Default { Store(50, Local0) Switch (DeRefOf(Index(b0sw, 15))) { Case (0) { Store(15, Local0) } Default { Store(51, Local0) Switch (DeRefOf(Index(b0sw, 16))) { Case (0) { Store(16, Local0) } Default { Store(52, Local0) Switch (DeRefOf(Index(b0sw, 17))) { Case (0) { Store(17, Local0) } Default { Store(53, Local0) Switch (DeRefOf(Index(b0sw, 18))) { Case (0) { Store(18, Local0) } Default { Store(54, Local0) Switch (DeRefOf(Index(b0sw, 19))) { Case (0) { Store(19, Local0) } Default { Store(55, Local0) Switch (DeRefOf(Index(b0sw, 20))) { Case (0) { Store(20, Local0) } Default { Store(56, Local0) Switch (DeRefOf(Index(b0sw, 21))) { Case (0) { Store(21, Local0) } Default { Store(57, Local0) Switch (DeRefOf(Index(b0sw, 22))) { Case (0) { Store(22, Local0) } Default { Store(58, Local0) Switch (DeRefOf(Index(b0sw, 23))) { Case (0) { Store(23, Local0) } Default { Store(59, Local0) Switch (DeRefOf(Index(b0sw, 24))) { Case (0) { Store(24, Local0) } Default { Store(60, Local0) Switch (DeRefOf(Index(b0sw, 25))) { Case (0) { Store(25, Local0) } Default { Store(61, Local0) Switch (DeRefOf(Index(b0sw, 26))) { Case (0) { Store(26, Local0) } Default { Store(62, Local0) Switch (DeRefOf(Index(b0sw, 27))) { Case (0) { Store(27, Local0) } Default { Store(63, Local0) Switch (DeRefOf(Index(b0sw, 28))) { Case (0) { Store(28, Local0) } Default { Store(64, Local0) Switch (DeRefOf(Index(b0sw, 29))) { Case (0) { Store(29, Local0) } Default { Store(65, Local0) Switch (DeRefOf(Index(b0sw, 30))) { Case (0) { Store(30, Local0) } Default { Store(66, Local0) Switch (DeRefOf(Index(b0sw, 31))) { Case (0) { Store(31, Local0) } Default { Store(67, Local0) Switch (DeRefOf(Index(b0sw, 32))) { Case (0) { Store(32, Local0) } Default { Store(68, Local0) Switch (DeRefOf(Index(b0sw, 33))) { Case (0) { Store(33, Local0) } Default { Store(69, Local0) Switch (DeRefOf(Index(b0sw, 34))) { Case (0) { Store(34, Local0) } Default { Store(70, Local0) Switch (DeRefOf(Index(b0sw, 35))) { Case (0) { Store(35, Local0) } Default { Store(71, Local0) }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} return (Local0) } // Run-method Method(SW04,, Serialized) { Store("TEST: SW04, Switch, Case, Default operators", Debug) Name(ts, "SW04") Name(lpN0, 0) Name(lpC0, 0) // Check each Switch/Case(0) pair // from dipper pair to upper one. Store(TMAX, lpN0) Store(0, lpC0) m0c1(1) Multiply(TMAX, 2, Local7) Decrement(Local7) // Check dippest Switch/Default pair Store(m0c3(), Local1) if (LNotEqual(Local1, Local7)) { err(ts, z069, __LINE__, 0, 0, Local1, Local7) return (Ones) } // Check each Switch/Case(0) pair // from dipper pair to upper one, // while go through all the previous Defaults. While (lpN0) { Subtract(lpN0, 1, Local7) Store(0, Index(b0sw, Local7)) Store(m0c3(), Local1) Decrement(lpN0) Increment(lpC0) if (LNotEqual(Local1, lpN0)) { err(ts, z069, __LINE__, 0, 0, Local1, lpN0) return (Ones) } } return (0) } Method(m0c4, 1) { // equivalent to elseif (101): // if() { // } elseif() { // } elseif() { // ... // } elseif() { // } Store(0x12345678, Local0) Switch (Arg0) { Case (0) { Store(0, Local0) } Case (1) { Store(1, Local0) } Case (2) { Store(2, Local0) } Case (3) { Store(3, Local0) } Case (4) { Store(4, Local0) } Case (5) { Store(5, Local0) } Case (6) { Store(6, Local0) } Case (7) { Store(7, Local0) } Case (8) { Store(8, Local0) } Case (9) { Store(9, Local0) } Case (10) { Store(10, Local0) } Case (11) { Store(11, Local0) } Case (12) { Store(12, Local0) } Case (13) { Store(13, Local0) } Case (14) { Store(14, Local0) } Case (15) { Store(15, Local0) } Case (16) { Store(16, Local0) } Case (17) { Store(17, Local0) } Case (18) { Store(18, Local0) } Case (19) { Store(19, Local0) } Case (20) { Store(20, Local0) } Case (21) { Store(21, Local0) } Case (22) { Store(22, Local0) } Case (23) { Store(23, Local0) } Case (24) { Store(24, Local0) } Case (25) { Store(25, Local0) } Case (26) { Store(26, Local0) } Case (27) { Store(27, Local0) } Case (28) { Store(28, Local0) } Case (29) { Store(29, Local0) } Case (30) { Store(30, Local0) } Case (31) { Store(31, Local0) } Case (32) { Store(32, Local0) } Case (33) { Store(33, Local0) } Case (34) { Store(34, Local0) } Case (35) { Store(35, Local0) } Case (36) { Store(36, Local0) } Case (37) { Store(37, Local0) } Case (38) { Store(38, Local0) } Case (39) { Store(39, Local0) } Case (40) { Store(40, Local0) } Case (41) { Store(41, Local0) } Case (42) { Store(42, Local0) } Case (43) { Store(43, Local0) } Case (44) { Store(44, Local0) } Case (45) { Store(45, Local0) } Case (46) { Store(46, Local0) } Case (47) { Store(47, Local0) } Case (48) { Store(48, Local0) } Case (49) { Store(49, Local0) } //////////////////////// Default { Store(100, Local0) } //////////////////////// Case (50) { Store(50, Local0) } Case (51) { Store(51, Local0) } Case (52) { Store(52, Local0) } Case (53) { Store(53, Local0) } Case (54) { Store(54, Local0) } Case (55) { Store(55, Local0) } Case (56) { Store(56, Local0) } Case (57) { Store(57, Local0) } Case (58) { Store(58, Local0) } Case (59) { Store(59, Local0) } Case (60) { Store(60, Local0) } Case (61) { Store(61, Local0) } Case (62) { Store(62, Local0) } Case (63) { Store(63, Local0) } Case (64) { Store(64, Local0) } Case (65) { Store(65, Local0) } Case (66) { Store(66, Local0) } Case (67) { Store(67, Local0) } Case (68) { Store(68, Local0) } Case (69) { Store(69, Local0) } Case (70) { Store(70, Local0) } Case (71) { Store(71, Local0) } Case (72) { Store(72, Local0) } Case (73) { Store(73, Local0) } Case (74) { Store(74, Local0) } Case (75) { Store(75, Local0) } Case (76) { Store(76, Local0) } Case (77) { Store(77, Local0) } Case (78) { Store(78, Local0) } Case (79) { Store(79, Local0) } Case (80) { Store(80, Local0) } Case (81) { Store(81, Local0) } Case (82) { Store(82, Local0) } Case (83) { Store(83, Local0) } Case (84) { Store(84, Local0) } Case (85) { Store(85, Local0) } Case (86) { Store(86, Local0) } Case (87) { Store(87, Local0) } Case (88) { Store(88, Local0) } Case (89) { Store(89, Local0) } Case (90) { Store(90, Local0) } Case (91) { Store(91, Local0) } Case (92) { Store(92, Local0) } Case (93) { Store(93, Local0) } Case (94) { Store(94, Local0) } Case (95) { Store(95, Local0) } Case (96) { Store(96, Local0) } Case (97) { Store(97, Local0) } Case (98) { Store(98, Local0) } Case (99) { Store(99, Local0) } } return (Local0) } // Run-method Method(SW05,, Serialized) { Store("TEST: SW05, Switch, Case, Default operators", Debug) Name(ts, "SW05") Name(lpN0, 101) Name(lpC0, 0) // Check ?????????????????? While (lpN0) { Store(m0c4(lpC0), Local1) if (LNotEqual(Local1, lpC0)) { err(ts, z069, __LINE__, 0, 0, Local1, lpC0) return (Ones) } Decrement(lpN0) Increment(lpC0) } return (0) } Method(m0c5) { // equivalent to embedded elseif (36 levels): // if() { // } elseif() { // if() { // } elseif() { // if() { // } elseif() { // ... // } // } // } Store(0x12345678, Local0) Switch (DeRefOf(Index(b0sw, 0))) { Case (0) { Store(0, Local0) } Case (1) { Store(36, Local0) Switch (DeRefOf(Index(b0sw, 1))) { Case (0) { Store(1, Local0) } Case (1) { Store(37, Local0) Switch (DeRefOf(Index(b0sw, 2))) { Case (0) { Store(2, Local0) } Case (1) { Store(38, Local0) Switch (DeRefOf(Index(b0sw, 3))) { Case (0) { Store(3, Local0) } Case (1) { Store(39, Local0) Switch (DeRefOf(Index(b0sw, 4))) { Case (0) { Store(4, Local0) } Case (1) { Store(40, Local0) Switch (DeRefOf(Index(b0sw, 5))) { Case (0) { Store(5, Local0) } Case (1) { Store(41, Local0) Switch (DeRefOf(Index(b0sw, 6))) { Case (0) { Store(6, Local0) } Case (1) { Store(42, Local0) Switch (DeRefOf(Index(b0sw, 7))) { Case (0) { Store(7, Local0) } Case (1) { Store(43, Local0) Switch (DeRefOf(Index(b0sw, 8))) { Case (0) { Store(8, Local0) } Case (1) { Store(44, Local0) Switch (DeRefOf(Index(b0sw, 9))) { Case (0) { Store(9, Local0) } Case (1) { Store(45, Local0) Switch (DeRefOf(Index(b0sw, 10))) { Case (0) { Store(10, Local0) } Case (1) { Store(46, Local0) Switch (DeRefOf(Index(b0sw, 11))) { Case (0) { Store(11, Local0) } Case (1) { Store(47, Local0) Switch (DeRefOf(Index(b0sw, 12))) { Case (0) { Store(12, Local0) } Case (1) { Store(48, Local0) Switch (DeRefOf(Index(b0sw, 13))) { Case (0) { Store(13, Local0) } Case (1) { Store(49, Local0) Switch (DeRefOf(Index(b0sw, 14))) { Case (0) { Store(14, Local0) } Case (1) { Store(50, Local0) Switch (DeRefOf(Index(b0sw, 15))) { Case (0) { Store(15, Local0) } Case (1) { Store(51, Local0) Switch (DeRefOf(Index(b0sw, 16))) { Case (0) { Store(16, Local0) } Case (1) { Store(52, Local0) Switch (DeRefOf(Index(b0sw, 17))) { Case (0) { Store(17, Local0) } Case (1) { Store(53, Local0) Switch (DeRefOf(Index(b0sw, 18))) { Case (0) { Store(18, Local0) } Case (1) { Store(54, Local0) Switch (DeRefOf(Index(b0sw, 19))) { Case (0) { Store(19, Local0) } Case (1) { Store(55, Local0) Switch (DeRefOf(Index(b0sw, 20))) { Case (0) { Store(20, Local0) } Case (1) { Store(56, Local0) Switch (DeRefOf(Index(b0sw, 21))) { Case (0) { Store(21, Local0) } Case (1) { Store(57, Local0) Switch (DeRefOf(Index(b0sw, 22))) { Case (0) { Store(22, Local0) } Case (1) { Store(58, Local0) Switch (DeRefOf(Index(b0sw, 23))) { Case (0) { Store(23, Local0) } Case (1) { Store(59, Local0) Switch (DeRefOf(Index(b0sw, 24))) { Case (0) { Store(24, Local0) } Case (1) { Store(60, Local0) Switch (DeRefOf(Index(b0sw, 25))) { Case (0) { Store(25, Local0) } Case (1) { Store(61, Local0) Switch (DeRefOf(Index(b0sw, 26))) { Case (0) { Store(26, Local0) } Case (1) { Store(62, Local0) Switch (DeRefOf(Index(b0sw, 27))) { Case (0) { Store(27, Local0) } Case (1) { Store(63, Local0) Switch (DeRefOf(Index(b0sw, 28))) { Case (0) { Store(28, Local0) } Case (1) { Store(64, Local0) Switch (DeRefOf(Index(b0sw, 29))) { Case (0) { Store(29, Local0) } Case (1) { Store(65, Local0) Switch (DeRefOf(Index(b0sw, 30))) { Case (0) { Store(30, Local0) } Case (1) { Store(66, Local0) Switch (DeRefOf(Index(b0sw, 31))) { Case (0) { Store(31, Local0) } Case (1) { Store(67, Local0) Switch (DeRefOf(Index(b0sw, 32))) { Case (0) { Store(32, Local0) } Case (1) { Store(68, Local0) Switch (DeRefOf(Index(b0sw, 33))) { Case (0) { Store(33, Local0) } Case (1) { Store(69, Local0) Switch (DeRefOf(Index(b0sw, 34))) { Case (0) { Store(34, Local0) } Case (1) { Store(70, Local0) Switch (DeRefOf(Index(b0sw, 35))) { Case (0) { Store(35, Local0) } Case (1) { Store(71, Local0) }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} return (Local0) } // Run-method Method(SW06,, Serialized) { Store("TEST: SW06, Switch, Case, Default operators", Debug) Name(ts, "SW06") Name(lpN0, 101) Name(lpC0, 0) // Check ?????????????????? Store(TMAX, lpN0) Store(0, lpC0) m0c1(1) While (lpN0) { Subtract(lpN0, 1, Local7) Store(0, Index(b0sw, Local7)) Store(m0c5(), Local1) Decrement(lpN0) Increment(lpC0) if (LNotEqual(Local1, Local7)) { err(ts, z069, __LINE__, 0, 0, Local1, Local7) return (Ones) } } // Check ??????. Store(TMAX, lpN0) Store(0, lpC0) m0c1(1) While (lpN0) { Store(m0c5(), Local1) Decrement(lpN0) Increment(lpC0) Add(TMAX, lpN0, Local7) if (LNotEqual(Local1, Local7)) { err(ts, z069, __LINE__, 0, 0, Local1, Local7) return (Ones) } Store(2, Index(b0sw, lpN0)) } return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/switch1.asl0000700000175000017500000002276214773714155030530 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Switch, Case, Default operators */ Name(z068, 68) Name(swi0, 0) Name(swi1, 0) /////////////// {if} Method(m0d0) { Store(2, Local0) Switch (swi0) { Case (0) { Store(1, Local0) Switch (swi1) { Case (0) { Store(0, Local0) }} }} return (Local0) } Method(m0d1) { Store(3, Local0) Switch (swi0) { Case (0) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(0, Local0) } Case (1) { Store(1, Local0) } Default { Store(2, Local0) }} }} return (Local0) } /////////////// {if,else} {if} Method(m0d2) { Store(12345678, Local0) Switch (swi0) { Case (0) { Store(1, Local0) Switch (swi1) { Case (0) { Store(0, Local0) }} } Default { Store(3, Local0) Switch (swi1) { Case (0) { Store(2, Local0) }} }} return (Local0) } /////////////// {if,else} {if,else} Method(m0d3) { Store(12345678, Local0) Switch (swi0) { Case (0) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(0, Local0) } Default { Store(1, Local0) }} } Default { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(2, Local0) } Default { Store(3, Local0) }} }} return (Local0) } /////////////// {if,else} {if,elseif} Method(m0d4) { Store(12345678, Local0) Switch (swi0) { Case (0) { Store(2, Local0) Switch (swi1) { Case (0) { Store(0, Local0) } Case (1) { Store(1, Local0) }} } Default { Store(5, Local0) Switch (swi1) { Case (0) { Store(3, Local0) } Case (1) { Store(4, Local0) }} }} return (Local0) } /////////////// {if,else} {if,elseif,else} Method(m0d5) { Store(12345678, Local0) Switch (swi0) { Case (0) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(0, Local0) } Case (1) { Store(1, Local0) } Default { Store(2, Local0) }} } Default { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(3, Local0) } Case (1) { Store(4, Local0) } Default { Store(5, Local0) }} }} return (Local0) } /////////////// {if,elseif} {if} Method(m0d6) { Store(4, Local0) Switch (swi0) { Case (0) { Store(1, Local0) Switch (swi1) { Case (0) { Store(0, Local0) }} } Case (1) { Store(3, Local0) Switch (swi1) { Case (0) { Store(2, Local0) }} }} return (Local0) } /////////////// {if,elseif} {if,else} Method(m0d7) { Store(4, Local0) Switch (swi0) { Case (0) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(0, Local0) } Default { Store(1, Local0) }} } Case (1) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(2, Local0) } Default { Store(3, Local0) }} }} return (Local0) } /////////////// {if,elseif} {if,elseif} Method(m0d8) { Store(6, Local0) Switch (swi0) { Case (0) { Store(2, Local0) Switch (swi1) { Case (0) { Store(0, Local0) } Case (1) { Store(1, Local0) }} } Case (1) { Store(5, Local0) Switch (swi1) { Case (0) { Store(3, Local0) } Case (1) { Store(4, Local0) }} }} return (Local0) } /////////////// {if,elseif} {if,elseif,else} Method(m0d9) { Store(6, Local0) Switch (swi0) { Case (0) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(0, Local0) } Case (1) { Store(1, Local0) } Default { Store(2, Local0) }} } Case (1) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(3, Local0) } Case (1) { Store(4, Local0) } Default { Store(5, Local0) }} }} return (Local0) } /////////////// {if,elseif,else} {if} (restricted) Method(m0da) { Store(12345678, Local0) Switch (swi0) { Case (0) { Store(1, Local0) Switch (swi1) { Case (0) { Store(0, Local0) }} } Case (1) { Store(3, Local0) Switch (swi1) { Case (0) { Store(2, Local0) }} } Default { Store(5, Local0) Switch (swi1) { Case (0) { Store(4, Local0) }} }} return (Local0) } /////////////// {if,elseif,else} {if,else} (restricted) Method(m0db) { Store(12345678, Local0) Switch (swi0) { Case (0) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(0, Local0) } Default { Store(1, Local0) }} } Case (1) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(2, Local0) } Default { Store(3, Local0) }} } Default { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(4, Local0) } Default { Store(5, Local0) }} }} return (Local0) } /////////////// {if,elseif,else} {if,elseif} (restricted) Method(m0dc) { Store(12345678, Local0) Switch (swi0) { Case (0) { Store(2, Local0) Switch (swi1) { Case (0) { Store(0, Local0) } Case (1) { Store(1, Local0) }} } Case (1) { Store(5, Local0) Switch (swi1) { Case (0) { Store(3, Local0) } Case (1) { Store(4, Local0) }} } Default { Store(8, Local0) Switch (swi1) { Case (0) { Store(6, Local0) } Case (1) { Store(7, Local0) }} }} return (Local0) } /////////////// {if,elseif,else} {if,elseif,else} (restricted) Method(m0dd) { Store(12345678, Local0) Switch (swi0) { Case (0) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(10, Local0) } Case (1) { Store(11, Local0) } Default { Store(12, Local0) }} } Case (1) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(13, Local0) } Case (1) { Store(14, Local0) } Default { Store(15, Local0) }} } Case (2) { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(16, Local0) } Case (1) { Store(17, Local0) } Default { Store(18, Local0) }} } Default { Store(12345678, Local0) Switch (swi1) { Case (0) { Store(19, Local0) } Case (1) { Store(20, Local0) } Default { Store(21, Local0) }} }} return (Local0) } // Run the particular method // (till the time the passing of pointer to method // will be implemented) Method(m0c6, 1) { Store(0x12345678, Local0) switch (arg0) { case (0) { Store(m0d0(), Local0) } case (1) { Store(m0d1(), Local0) } case (2) { Store(m0d2(), Local0) } case (3) { Store(m0d3(), Local0) } case (4) { Store(m0d4(), Local0) } case (5) { Store(m0d5(), Local0) } case (6) { Store(m0d6(), Local0) } case (7) { Store(m0d7(), Local0) } case (8) { Store(m0d8(), Local0) } case (9) { Store(m0d9(), Local0) } case (10) { Store(m0da(), Local0) } case (11) { Store(m0db(), Local0) } case (12) { Store(m0dc(), Local0) } case (13) { Store(m0dd(), Local0) } } return (Local0) } // Verivication of ????????????? Method(m0c7, 3, Serialized) { Name(bs00, 0) Name(cnt0, 0) Name(cnt1, 0) Name(ind1, 0) Name(ix00, 0) Name(lpN0, 0) Name(lpC0, 0) Name(lpN1, 0) Name(lpC1, 0) Store(0, swi0) Store(DeRefOf(Index(arg2, 0)), ix00) Store(DeRefOf(Index(arg2, 1)), cnt0) Store(2, ind1) Store(cnt0, lpN0) Store(0, lpC0) While (lpN0) { Store(0, swi1) Store(DeRefOf(Index(arg2, ind1)), cnt1) Store(cnt1, lpN1) Store(0, lpC1) While (lpN1) { Store(m0c6(arg1), Local0) if (0) { Store("=============:", Debug) Store(swi0, Debug) Store(swi1, Debug) Store(ix00, Debug) Store(Local0, Debug) Store("=============.", Debug) } if (LNotEqual(Local0, ix00)){ err(arg0, z068, __LINE__, 0, 0, Local0, ix00) } Increment(ix00) Increment(swi1) Decrement(lpN1) Increment(lpC1) } Increment(swi0) Increment(ind1) Decrement(lpN0) Increment(lpC0) } return (0) } // Run-method Method(SW01,, Serialized) { Store("TEST: SW01, Switch, Case, Default operators", Debug) Name(ts, "SW01") m0c7(ts, 0, Buffer() {0, 2, 2, 1}) m0c7(ts, 1, Buffer() {0, 2, 3, 1}) m0c7(ts, 2, Buffer() {0, 2, 2, 2}) m0c7(ts, 3, Buffer() {0, 2, 2, 2}) m0c7(ts, 4, Buffer() {0, 2, 3, 3}) m0c7(ts, 5, Buffer() {0, 2, 3, 3}) m0c7(ts, 6, Buffer() {0, 3, 2, 2, 1}) m0c7(ts, 7, Buffer() {0, 3, 2, 2, 1}) m0c7(ts, 8, Buffer() {0, 3, 3, 3, 1}) m0c7(ts, 9, Buffer() {0, 3, 3, 3, 1}) m0c7(ts, 10, Buffer() {0, 3, 2, 2, 2}) m0c7(ts, 11, Buffer() {0, 3, 2, 2, 2}) m0c7(ts, 12, Buffer() {0, 3, 3, 3, 3}) m0c7(ts, 13, Buffer() {10, 4, 3, 3, 3, 3}) return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/switch6.asl0000700000175000017500000005101214773714155030523 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * Switch, Case(Package), Default operators */ Name(z073, 73) Name(ppee, Package() {6,7,8,9}) // The same as m0df and m0e0 but all the values // of Cases are in one Package Method(m100, 1) { Switch (arg0) { Case (Package() { // Buffer Buffer(1){10}, Buffer(2){11,12}, Buffer() {13,14,15}, Buffer(2){16,17,18}, Buffer(3){19,20}, Buffer(3){21,22,23}, Buffer(4){24,25,26,27}, Buffer(5){28,29,30,31,32}, Buffer(8){33,34,35,36,37,38,39,40}, Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}, Buffer(9){41,42,43,44,45,46,47,48,49}, Buffer(67){0x7d}, Buffer() { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}, Buffer(67) { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}, Buffer(4){0,0,0,0}, Buffer(8){0,0,0,0,0,0,0,0}, Buffer(4){0xff,0xff,0xff,0xff}, Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(5){0xff,0xff,0xff,0xff,0xff}, Buffer(1){0xff}, Buffer(1){}, Buffer(5){}, Buffer(9){}, Buffer(9){0xab, 0xcd, 0xef}, // String "0321", "321", "ba9876", "c179b3fe", "fe7cb391d650a284", "ffffffff", "ffffffffffffffff", "ffffffffff", "ff", "987654321", "0xfe7cb3", // Integer 0321, 9876543210, 0xc179b3fe, 0xfe7cb391d650a284, 0, 0xffffffff, 0xffffffffffffffff, 0xff, 0xabcdef }) { Store(5, Local7) } Default { Store(7, Local7) } } return (Local7) } Method(m101, 1) { // Integer Store(m100(0321), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m100(0xd1), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m100(9876543210), Local0) if (F64) { if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } } else { if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } } Store(m100(0xc179b3fe), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m100(0xfe7cb391d650a284), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m100(0), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m100(0xffffffff), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m100(0xffffffffffffffff), Local0) if (F64) { if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } } else { if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } } Store(m100(0xff), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m100(0xabcdef), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } } // The same as m0e3 and m0e4 but all the values // of Cases are in one Package Method(m102, 1) { Switch (ToString(arg0)) { Case (Package() { // Integer 0321, 9876543210, 0xc179b3fe, 0xfe7cb391d650a284, 0, 0xffffffff, 0xffffffffffffffff, 0xff, 0xabcdef, // Buffer Buffer(1){10}, Buffer(2){11,12}, Buffer() {13,14,15}, Buffer(2){16,17,18}, Buffer(3){19,20}, Buffer(3){21,22,23}, Buffer(4){24,25,26,27}, Buffer(5){28,29,30,31,32}, Buffer(8){33,34,35,36,37,38,39,40}, Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}, Buffer(9){41,42,43,44,45,46,47,48,49}, Buffer(67){0x7d}, Buffer() { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}, Buffer(67) { 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42}, Buffer(4){0,0,0,0}, Buffer(8){0,0,0,0,0,0,0,0}, Buffer(4){0xff,0xff,0xff,0xff}, Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(5){0xff,0xff,0xff,0xff,0xff}, Buffer(1){0xff}, Buffer(1){}, Buffer(5){}, Buffer(9){}, Buffer(9){0xab, 0xcd, 0xef}, // String "0321", "321", "ba9876", "c179b3fe", "fe7cb391d650a284", "ffffffff", "ffffffffffffffffff", "ffffffffffffffff", "ffffffffff", "ff", "fe7cb391d650a2841", "987654321", "0xfe7cb3", "1234q", "qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdf", "", " ", "`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?", "abcdef", "ABCDEF", }) { Store(5, Local7) } Default { Store(7, Local7) } } return (Local7) } Method(m103, 1) { // String Store(m102("0321"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("321"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("ba9876"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("c179b3fe"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("fe7cb391d650a284"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("ffffffff"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("ffffffffffffffffff"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("ffffffffffffffff"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("ffffffffff"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("ff"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("fe7cb391d650a2841"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("987654321"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("0xfe7cb3"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("1234q"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102(BIG0), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102(""), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102(" "), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102(ALL0), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("abcdef"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m102("ABCDEF"), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } } // The same as m0e5 and m0e6 but all the values // of Cases are in one Package Method(m104, 1) { Switch (ToBuffer(arg0)) { Case (Package() { // Integer 0321, 9876543210, 0xc179b3fe, 0xfe7cb391d650a284, 0, 0xffffffff, 0xffffffffffffffff, 0xff, 0xabcdef, // String "0321", "321", "ba9876", "c179b3fe", "fe7cb391d650a284", "ffffffff", "ffffffffffffffffff", "ffffffffffffffff", "ffffffffff", "ff", "fe7cb391d650a2841", "987654321", "0xfe7cb3", "1234q", "qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdf", "", " ", "`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?", "abcdef", "ABCDEF", // Buffer Buffer(1){10}, Buffer(2){11,12}, Buffer() {13,14,15}, Buffer(2){16,17,18}, Buffer(3){19,20}, Buffer(3){21,22,23}, Buffer(4){24,25,26,27}, Buffer(5){28,29,30,31,32}, Buffer(8){33,34,35,36,37,38,39,40}, Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}, Buffer(9){41,42,43,44,45,46,47,48,49}, Buffer(257){0x7d}, Buffer(257) { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x01}, Buffer() { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x02}, Buffer(4){0,0,0,0}, Buffer(8){0,0,0,0,0,0,0,0}, Buffer(4){0xff,0xff,0xff,0xff}, Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, Buffer(5){0xff,0xff,0xff,0xff,0xff}, Buffer(1){0xff}, Buffer(1){}, Buffer(5){}, Buffer(9){}, Buffer(9){0xab, 0xcd, 0xef}, }) { Store(5, Local7) } Default { Store(7, Local7) } } return (Local7) } Method(m105, 1) { // Buffer Store(m104(Buffer(1){10}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(2){11,12}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer() {13,14,15}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(2){16,17,18}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(3){19,20}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(3){21,22,23}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(4){24,25,26,27}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(5){28,29,30,31,32}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(8){33,34,35,36,37,38,39,40}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(){0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(9){41,42,43,44,45,46,47,48,49}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(257){0x7d}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(257) { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x01}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer() { // 0-127 0x00,0x00,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x00,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f, 0x10,0x21,0x22,0x23,0x24,0x25,0x26,0x27, 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, 0x20,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x30,0x41,0x42,0x43,0x44,0x45,0x46,0x47, 0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f, 0x40,0x51,0x52,0x53,0x54,0x55,0x56,0x57, 0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f, 0x50,0x61,0x62,0x63,0x64,0x65,0x66,0x67, 0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f, 0x60,0x71,0x72,0x73,0x74,0x75,0x76,0x77, 0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f, // 128-255 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, 0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, 0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7, 0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf, 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7, 0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf, 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7, 0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf, 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7, 0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf, 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7, 0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef, 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7, 0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff, // 256 0x02}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } if (F64) { Store(m104(Buffer(4){0,0,0,0}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(8){0,0,0,0,0,0,0,0}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(4){0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } } else { Store(m104(Buffer(4){0,0,0,0}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(8){0,0,0,0,0,0,0,0}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(4){0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(8){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } } Store(m104(Buffer(9){0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(5){0xff,0xff,0xff,0xff,0xff}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(1){0xff}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(1){}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(5){}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(9){}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } Store(m104(Buffer(9){0xab, 0xcd, 0xef}), Local0) if (LNotEqual(Local0, 5)) { err(arg0, z073, __LINE__, 0, 0, Local0, 5) } } // Run-method Method(SW10,, Serialized) { Store("TEST: SW10, Switch, Case, Default operators", Debug) Name(ts, "SW10") m101(ts) m103(ts) m105(ts) return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/control/while.asl0000700000175000017500000032024214773714155030250 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method execution control * * While, Break, Continue operators * * DESCRIPTION: * * The main test method consists of 50 enclosed While operators * of identical structure. Each While should perform prescribed * number of Continue and Break operators and also execute the * child operator While so many times which are necessary to * fulfill the tasks of that child. * * The number of levels to be traveled may be * restricted by tvl0 variable in the range {1,50}. * * After completion of the test method the verification is performed * which checks that each level While actually produced the specified * number of Continue and Break operators (specified by p001) and * handled its child. * * Set up the pr00 variable to turn on the debug information. * * Calculation depends on the values of the following variables: * * tvl0 - the number of While operators to be traveled * nnXX - repetition on WhileXX on each iteration * iiXX - first element in sequence of works * {0 - Run Child, 1 - Do Continue, 2 - Do Break} * * See also comment to nn00 below. */ Name(z074, 74) // Debug information Name(pr00, 0) /* * The number of While operators to be traveled. * Maximal possible is equal to 50 (restricted by * the test (not ACPI) - implemented for 50 only). */ Name(tvl0, 50) // Relative indexes of Buffers of counters of works Name(CHL0, 0) // children (my children have done all) Name(CNT0, 1) // Continue (I have done running continue) Name(BRK0, 2) // Break (I have done running break) // Increment the counter of work // arg0 - trace of repetition Package // arg1 - index of Buffer in Package // arg2 - (level) index of element in Buffer Method(m0f2, 3) { if (pr00) { Store("???", Local0) Switch (arg1) { case (0) { Store("Child ", Local0) } case (1) { Store("Continue ", Local0) } case (2) { Store("Break ", Local0) } Default { Store("??? ", Local0) } } Store(Concatenate(Local0, arg2), Debug) } Store(DerefOf(Index(DerefOf(Index(arg0, arg1)), arg2)), Local0) Increment(Local0) Store(Local0, Index(DerefOf(Index(arg0, arg1)), arg2)) } // Set given value to counter of work // arg0 - trace of repetition Package // arg1 - index of Buffer in Package // arg2 - (level) index of element in Buffer Method(m0f3, 4) { Store(arg3, Index(DerefOf(Index(arg0, arg1)), arg2)) } // Return the counter of work // arg0 - trace of repetition Package // arg1 - index of Buffer in Package // arg2 - (level) index of element in Buffer Method(m0f4, 3) { Store(DerefOf(Index(DerefOf(Index(arg0, arg1)), arg2)), Local0) return (Local0) } // Return status of level // arg0 - trace of repetition Package // arg1 - task of repetition Package // arg2 - (level) index of element in Buffer Method(m0f5, 3) { Store(0, Local0) if (m0f4(arg0, CHL0, arg2)) { Or(Local0, 0x01, Local0) } Store(m0f4(arg0, CNT0, arg2), Local1) Store(m0f4(arg1, CNT0, arg2), Local2) if (LGreaterEqual(Local1, Local2)) { Or(Local0, 0x02, Local0) } Store(m0f4(arg0, BRK0, arg2), Local1) Store(m0f4(arg1, BRK0, arg2), Local2) if (LGreaterEqual(Local1, Local2)) { Or(Local0, 0x04, Local0) } return (Local0) } // Print all Buffers of Package Method(m0f6, 1) { Store(DerefOf(Index(arg0, CHL0)), Debug) Store(DerefOf(Index(arg0, CNT0)), Debug) Store(DerefOf(Index(arg0, BRK0)), Debug) } // Conditional printing Method(m0f7, 1) { if (pr00) { Store(Arg0, Debug) } } // Verification of run // arg0 - name of test // arg1 - trace of repetition Package // arg2 - task of repetition Package // arg3 - number of levels Method(m0f8, 4, Serialized) { Name(lpN0, 0) Name(lpC0, 0) // Children Store(arg3, lpN0) Store(0, lpC0) While (lpN0) { Store(m0f4(arg1, CHL0, lpC0), Local0) if (LEqual(Local0, 0)) { err(arg0, z074, __LINE__, 0, 0, 0, lpC0) } Decrement(lpN0) Increment(lpC0) } // Continue Store(arg3, lpN0) Store(0, lpC0) While (lpN0) { Store(m0f4(arg1, CNT0, lpC0), Local0) Store(m0f4(arg2, CNT0, lpC0), Local1) if (LNotEqual(Local0, Local1)) { err(arg0, z074, __LINE__, 0, 0, Local0, Local1) } Decrement(lpN0) Increment(lpC0) } // Break Store(arg3, lpN0) Store(0, lpC0) While (lpN0) { Store(m0f4(arg1, BRK0, lpC0), Local0) Store(m0f4(arg2, BRK0, lpC0), Local1) if (LNotEqual(Local0, Local1)) { err(arg0, z074, __LINE__, 0, 0, Local0, Local1) } Decrement(lpN0) Increment(lpC0) } } // Mix consecution of works // arg0 - current flag of Run // arg1 - current flag of Continue // arg2 - current flag of Break // arg3 - current index Method(m0f9, 4) { Store(0, Local0) if (arg0) { Or(Local0, 0x01, Local0) } if (arg1) { Or(Local0, 0x02, Local0) } if (arg2) { Or(Local0, 0x04, Local0) } Mod(arg3, 3, Local1) Store(0, Local7) if (LEqual(Local1, 0)) { And(Local0, 0x01, Local7) } elseif (LEqual(Local1, 0)) { And(Local0, 0x02, Local7) } else { And(Local0, 0x04, Local7) } // Some iterations may be empty // even for non-empty Arg-s. return (Local0) } // The test // arg0 - name of test // arg1 - the number of While operators to be traveled Method(m0fa, 2, Serialized) { Concatenate("The number of While operators to be traveled: ", arg1, Local0) Store(Local0, Debug) if (LEqual(arg1, 0)) { err(arg0, z074, __LINE__, 0, 0, 0, 0) } Add(arg1, 1, Local0) // Trace of repetition Package Name(p000, Package() { Buffer(Local0) {}, // 0 - Children (my children have done all) Buffer(Local0) {}, // 1 - Continue (I have done running continue) Buffer(Local0) {}, // 2 - Break (I have done running break) }) // Task of repetition Package Name(p001, Package() { 0, // 0 - Children (my children have done all) Buffer(Local0) { // 1 - Continue (I have done running continue) 1,2,3,4,5,6,7,8,9,10, 11,12,13,14,15,16,17,18,19,20, 19,18,17,16,15,14,13,12,11,10, 9,8,7,6,5,4,3,2,1,2, 1, }, Buffer(Local0) { // 2 - Break (I have done running break) 1,2,3,4,5,6,7,8,9,8, 7,6,5,4,3,2,1,2,3,4, 5,6,7,8,9,8,7,6,5,4, 3,2,1,2,3,4,5,6,7,8, 1, } }) // The last While has no children, so mark him // "no works of his children remained". m0f3(p000, CHL0, arg1, 1) Store(m0f4(p001, CNT0, arg1), Local0) m0f3(p000, CNT0, arg1, Local0) Store(m0f4(p001, BRK0, arg1), Local0) m0f3(p000, BRK0, arg1, Local0) // //////////////// // Enclosed Whiles // // Code of one While differs others // by the following variables: // // lc0x - this level // ln0x - next level // c00x - flag of Continue // b00x - flag of Break // i00x - current index of iteration // n00x - number of iterations // //////////////// /* * Calculation depends on all these nnXX below. * * nn00 is not a constant just in case only to prevent * infinitive loop in testing due to any mistake in * implementation. * * For the proposed in test contents of p001 and tvl0 * equal t0 50 the strict needed value of nn00 is 18449. */ Name(nn00, 18449) Name(nn01, 1) Name(nn02, 1) Name(nn03, 1) Name(nn04, 1) Name(nn05, 1) Name(nn06, 1) Name(nn07, 1) Name(nn08, 1) Name(nn09, 1) Name(nn10, 1) Name(nn11, 1) Name(nn12, 1) Name(nn13, 1) Name(nn14, 1) Name(nn15, 1) Name(nn16, 1) Name(nn17, 1) Name(nn18, 1) Name(nn19, 1) Name(nn20, 1) Name(nn21, 1) Name(nn22, 1) Name(nn23, 1) Name(nn24, 1) Name(nn25, 1) Name(nn26, 1) Name(nn27, 1) Name(nn28, 1) Name(nn29, 1) Name(nn30, 1) Name(nn31, 1) Name(nn32, 1) Name(nn33, 1) Name(nn34, 1) Name(nn35, 1) Name(nn36, 1) Name(nn37, 1) Name(nn38, 1) Name(nn39, 1) Name(nn40, 1) Name(nn41, 1) Name(nn42, 1) Name(nn43, 1) Name(nn44, 1) Name(nn45, 1) Name(nn46, 1) Name(nn47, 1) Name(nn48, 1) Name(nn49, 1) // Calculation depends on these iiXX: Name(ii01, 1) Name(ii02, 2) Name(ii03, 0) Name(ii04, 1) Name(ii05, 2) Name(ii06, 0) Name(ii07, 1) Name(ii08, 2) Name(ii09, 0) Name(ii10, 1) Name(ii11, 2) Name(ii12, 0) Name(ii13, 1) Name(ii14, 2) Name(ii15, 0) Name(ii16, 1) Name(ii17, 2) Name(ii18, 0) Name(ii19, 1) Name(ii20, 2) Name(ii21, 0) Name(ii22, 1) Name(ii23, 2) Name(ii24, 0) Name(ii25, 1) Name(ii26, 2) Name(ii27, 0) Name(ii28, 1) Name(ii29, 2) Name(ii30, 0) Name(ii31, 1) Name(ii32, 2) Name(ii33, 0) Name(ii34, 1) Name(ii35, 2) Name(ii36, 0) Name(ii37, 1) Name(ii38, 2) Name(ii39, 0) Name(ii40, 1) Name(ii41, 2) Name(ii42, 0) Name(ii43, 1) Name(ii44, 2) Name(ii45, 0) Name(ii46, 1) Name(ii47, 2) Name(ii48, 0) Name(ii49, 1) // Variables Name(lc00, 0) Name(ln00, 1) Name(c000, 0) Name(b000, 0) Name(r000, 0) Name(i000, 0) Name(n000, 0) Name(lc01, 1) Name(ln01, 2) Name(c001, 0) Name(b001, 0) Name(r001, 0) Name(i001, 0) Name(n001, 0) Name(lc02, 2) Name(ln02, 3) Name(c002, 0) Name(b002, 0) Name(r002, 0) Name(i002, 0) Name(n002, 0) Name(lc03, 3) Name(ln03, 4) Name(c003, 0) Name(b003, 0) Name(r003, 0) Name(i003, 0) Name(n003, 0) Name(lc04, 4) Name(ln04, 5) Name(c004, 0) Name(b004, 0) Name(r004, 0) Name(i004, 0) Name(n004, 0) Name(lc05, 5) Name(ln05, 6) Name(c005, 0) Name(b005, 0) Name(r005, 0) Name(i005, 0) Name(n005, 0) Name(lc06, 6) Name(ln06, 7) Name(c006, 0) Name(b006, 0) Name(r006, 0) Name(i006, 0) Name(n006, 0) Name(lc07, 7) Name(ln07, 8) Name(c007, 0) Name(b007, 0) Name(r007, 0) Name(i007, 0) Name(n007, 0) Name(lc08, 8) Name(ln08, 9) Name(c008, 0) Name(b008, 0) Name(r008, 0) Name(i008, 0) Name(n008, 0) Name(lc09, 9) Name(ln09, 10) Name(c009, 0) Name(b009, 0) Name(r009, 0) Name(i009, 0) Name(n009, 0) Name(lc10, 10) Name(ln10, 11) Name(c010, 0) Name(b010, 0) Name(r010, 0) Name(i010, 0) Name(n010, 0) Name(lc11, 11) Name(ln11, 12) Name(c011, 0) Name(b011, 0) Name(r011, 0) Name(i011, 0) Name(n011, 0) Name(lc12, 12) Name(ln12, 13) Name(c012, 0) Name(b012, 0) Name(r012, 0) Name(i012, 0) Name(n012, 0) Name(lc13, 13) Name(ln13, 14) Name(c013, 0) Name(b013, 0) Name(r013, 0) Name(i013, 0) Name(n013, 0) Name(lc14, 14) Name(ln14, 15) Name(c014, 0) Name(b014, 0) Name(r014, 0) Name(i014, 0) Name(n014, 0) Name(lc15, 15) Name(ln15, 16) Name(c015, 0) Name(b015, 0) Name(r015, 0) Name(i015, 0) Name(n015, 0) Name(lc16, 16) Name(ln16, 17) Name(c016, 0) Name(b016, 0) Name(r016, 0) Name(i016, 0) Name(n016, 0) Name(lc17, 17) Name(ln17, 18) Name(c017, 0) Name(b017, 0) Name(r017, 0) Name(i017, 0) Name(n017, 0) Name(lc18, 18) Name(ln18, 19) Name(c018, 0) Name(b018, 0) Name(r018, 0) Name(i018, 0) Name(n018, 0) Name(lc19, 19) Name(ln19, 20) Name(c019, 0) Name(b019, 0) Name(r019, 0) Name(i019, 0) Name(n019, 0) Name(lc20, 20) Name(ln20, 21) Name(c020, 0) Name(b020, 0) Name(r020, 0) Name(i020, 0) Name(n020, 0) Name(lc21, 21) Name(ln21, 22) Name(c021, 0) Name(b021, 0) Name(r021, 0) Name(i021, 0) Name(n021, 0) Name(lc22, 22) Name(ln22, 23) Name(c022, 0) Name(b022, 0) Name(r022, 0) Name(i022, 0) Name(n022, 0) Name(lc23, 23) Name(ln23, 24) Name(c023, 0) Name(b023, 0) Name(r023, 0) Name(i023, 0) Name(n023, 0) Name(lc24, 24) Name(ln24, 25) Name(c024, 0) Name(b024, 0) Name(r024, 0) Name(i024, 0) Name(n024, 0) Name(lc25, 25) Name(ln25, 26) Name(c025, 0) Name(b025, 0) Name(r025, 0) Name(i025, 0) Name(n025, 0) Name(lc26, 26) Name(ln26, 27) Name(c026, 0) Name(b026, 0) Name(r026, 0) Name(i026, 0) Name(n026, 0) Name(lc27, 27) Name(ln27, 28) Name(c027, 0) Name(b027, 0) Name(r027, 0) Name(i027, 0) Name(n027, 0) Name(lc28, 28) Name(ln28, 29) Name(c028, 0) Name(b028, 0) Name(r028, 0) Name(i028, 0) Name(n028, 0) Name(lc29, 29) Name(ln29, 30) Name(c029, 0) Name(b029, 0) Name(r029, 0) Name(i029, 0) Name(n029, 0) Name(lc30, 30) Name(ln30, 31) Name(c030, 0) Name(b030, 0) Name(r030, 0) Name(i030, 0) Name(n030, 0) Name(lc31, 31) Name(ln31, 32) Name(c031, 0) Name(b031, 0) Name(r031, 0) Name(i031, 0) Name(n031, 0) Name(lc32, 32) Name(ln32, 33) Name(c032, 0) Name(b032, 0) Name(r032, 0) Name(i032, 0) Name(n032, 0) Name(lc33, 33) Name(ln33, 34) Name(c033, 0) Name(b033, 0) Name(r033, 0) Name(i033, 0) Name(n033, 0) Name(lc34, 34) Name(ln34, 35) Name(c034, 0) Name(b034, 0) Name(r034, 0) Name(i034, 0) Name(n034, 0) Name(lc35, 35) Name(ln35, 36) Name(c035, 0) Name(b035, 0) Name(r035, 0) Name(i035, 0) Name(n035, 0) Name(lc36, 36) Name(ln36, 37) Name(c036, 0) Name(b036, 0) Name(r036, 0) Name(i036, 0) Name(n036, 0) Name(lc37, 37) Name(ln37, 38) Name(c037, 0) Name(b037, 0) Name(r037, 0) Name(i037, 0) Name(n037, 0) Name(lc38, 38) Name(ln38, 39) Name(c038, 0) Name(b038, 0) Name(r038, 0) Name(i038, 0) Name(n038, 0) Name(lc39, 39) Name(ln39, 40) Name(c039, 0) Name(b039, 0) Name(r039, 0) Name(i039, 0) Name(n039, 0) Name(lc40, 40) Name(ln40, 41) Name(c040, 0) Name(b040, 0) Name(r040, 0) Name(i040, 0) Name(n040, 0) Name(lc41, 41) Name(ln41, 42) Name(c041, 0) Name(b041, 0) Name(r041, 0) Name(i041, 0) Name(n041, 0) Name(lc42, 42) Name(ln42, 43) Name(c042, 0) Name(b042, 0) Name(r042, 0) Name(i042, 0) Name(n042, 0) Name(lc43, 43) Name(ln43, 44) Name(c043, 0) Name(b043, 0) Name(r043, 0) Name(i043, 0) Name(n043, 0) Name(lc44, 44) Name(ln44, 45) Name(c044, 0) Name(b044, 0) Name(r044, 0) Name(i044, 0) Name(n044, 0) Name(lc45, 45) Name(ln45, 46) Name(c045, 0) Name(b045, 0) Name(r045, 0) Name(i045, 0) Name(n045, 0) Name(lc46, 46) Name(ln46, 47) Name(c046, 0) Name(b046, 0) Name(r046, 0) Name(i046, 0) Name(n046, 0) Name(lc47, 47) Name(ln47, 48) Name(c047, 0) Name(b047, 0) Name(r047, 0) Name(i047, 0) Name(n047, 0) Name(lc48, 48) Name(ln48, 49) Name(c048, 0) Name(b048, 0) Name(r048, 0) Name(i048, 0) Name(n048, 0) Name(lc49, 49) Name(ln49, 50) Name(c049, 0) Name(b049, 0) Name(r049, 0) Name(i049, 0) Name(n049, 0) ////////////////////////////////////////////////////////////// START, 00 Store(0, c000) Store(0, b000) Store(0, r000) Store(0, i000) Store(nn00, n000) While (n000) { m0f7("n000") Store(m0f5(p000, p001, ln00), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc00) Store(0, r000) } else { Store(1, r000) } Store(m0f5(p000, p001, lc00), Local0) if (And(Local0, 0x02)) { Store(0, c000) } else { Store(1, c000) } if (And(Local0, 0x04)) { Store(0, b000) } else { // Don't break there from 0-th While Store(0, b000) m0f2(p000, BRK0, lc00) } // Don't use these variables below Decrement(n000) Increment(i000) ////////////////////////// Actions if (r000) { m0f7("r000") ////////////////////////////////////////////////////////////// START, 01 Store(0, c001) Store(0, b001) Store(0, r001) Store(0, i001) Store(nn01, n001) While (n001) { m0f7("n001") Store(m0f5(p000, p001, ln01), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc01) Store(0, r001) } else { Store(1, r001) } Store(m0f5(p000, p001, lc01), Local0) if (And(Local0, 0x02)) { Store(0, c001) } else { Store(1, c001) } if (And(Local0, 0x04)) { Store(0, b001) } else { Store(1, b001) } // Mix consecution of works (may nullify all) Store(m0f9(r001, c001, b001, ii01), Local0) Increment(ii01) Store(0, r001) Store(0, c001) Store(0, b001) if (And(Local0, 0x01)) { Store(1, r001) } elseif (And(Local0, 0x02)) { Store(1, c001) } elseif (And(Local0, 0x04)) { Store(1, b001) } // Don't use these variables below Decrement(n001) Increment(i001) ////////////////////////// Actions if (r001) { m0f7("r001") ////////////////////////////////////////////////////////////// START, 02 Store(0, c002) Store(0, b002) Store(0, r002) Store(0, i002) Store(nn02, n002) While (n002) { m0f7("n002") Store(m0f5(p000, p001, ln02), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc02) Store(0, r002) } else { Store(1, r002) } Store(m0f5(p000, p001, lc02), Local0) if (And(Local0, 0x02)) { Store(0, c002) } else { Store(1, c002) } if (And(Local0, 0x04)) { Store(0, b002) } else { Store(1, b002) } // Mix consecution of works (may nullify all) Store(m0f9(r002, c002, b002, ii02), Local0) Increment(ii02) Store(0, r002) Store(0, c002) Store(0, b002) if (And(Local0, 0x01)) { Store(1, r002) } elseif (And(Local0, 0x02)) { Store(1, c002) } elseif (And(Local0, 0x04)) { Store(1, b002) } // Don't use these variables below Decrement(n002) Increment(i002) ////////////////////////// Actions if (r002) { m0f7("r002") ////////////////////////////////////////////////////////////// START, 03 Store(0, c003) Store(0, b003) Store(0, r003) Store(0, i003) Store(nn03, n003) While (n003) { m0f7("n003") Store(m0f5(p000, p001, ln03), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc03) Store(0, r003) } else { Store(1, r003) } Store(m0f5(p000, p001, lc03), Local0) if (And(Local0, 0x02)) { Store(0, c003) } else { Store(1, c003) } if (And(Local0, 0x04)) { Store(0, b003) } else { Store(1, b003) } // Mix consecution of works (may nullify all) Store(m0f9(r003, c003, b003, ii03), Local0) Increment(ii03) Store(0, r003) Store(0, c003) Store(0, b003) if (And(Local0, 0x01)) { Store(1, r003) } elseif (And(Local0, 0x02)) { Store(1, c003) } elseif (And(Local0, 0x04)) { Store(1, b003) } // Don't use these variables below Decrement(n003) Increment(i003) ////////////////////////// Actions if (r003) { m0f7("r003") ////////////////////////////////////////////////////////////// START, 04 Store(0, c004) Store(0, b004) Store(0, r004) Store(0, i004) Store(nn04, n004) While (n004) { m0f7("n004") Store(m0f5(p000, p001, ln04), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc04) Store(0, r004) } else { Store(1, r004) } Store(m0f5(p000, p001, lc04), Local0) if (And(Local0, 0x02)) { Store(0, c004) } else { Store(1, c004) } if (And(Local0, 0x04)) { Store(0, b004) } else { Store(1, b004) } // Mix consecution of works (may nullify all) Store(m0f9(r004, c004, b004, ii04), Local0) Increment(ii04) Store(0, r004) Store(0, c004) Store(0, b004) if (And(Local0, 0x01)) { Store(1, r004) } elseif (And(Local0, 0x02)) { Store(1, c004) } elseif (And(Local0, 0x04)) { Store(1, b004) } // Don't use these variables below Decrement(n004) Increment(i004) ////////////////////////// Actions if (r004) { m0f7("r004") ////////////////////////////////////////////////////////////// START, 05 Store(0, c005) Store(0, b005) Store(0, r005) Store(0, i005) Store(nn05, n005) While (n005) { m0f7("n005") Store(m0f5(p000, p001, ln05), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc05) Store(0, r005) } else { Store(1, r005) } Store(m0f5(p000, p001, lc05), Local0) if (And(Local0, 0x02)) { Store(0, c005) } else { Store(1, c005) } if (And(Local0, 0x04)) { Store(0, b005) } else { Store(1, b005) } // Mix consecution of works (may nullify all) Store(m0f9(r005, c005, b005, ii05), Local0) Increment(ii05) Store(0, r005) Store(0, c005) Store(0, b005) if (And(Local0, 0x01)) { Store(1, r005) } elseif (And(Local0, 0x02)) { Store(1, c005) } elseif (And(Local0, 0x04)) { Store(1, b005) } // Don't use these variables below Decrement(n005) Increment(i005) ////////////////////////// Actions if (r005) { m0f7("r005") ////////////////////////////////////////////////////////////// START, 06 Store(0, c006) Store(0, b006) Store(0, r006) Store(0, i006) Store(nn06, n006) While (n006) { m0f7("n006") Store(m0f5(p000, p001, ln06), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc06) Store(0, r006) } else { Store(1, r006) } Store(m0f5(p000, p001, lc06), Local0) if (And(Local0, 0x02)) { Store(0, c006) } else { Store(1, c006) } if (And(Local0, 0x04)) { Store(0, b006) } else { Store(1, b006) } // Mix consecution of works (may nullify all) Store(m0f9(r006, c006, b006, ii06), Local0) Increment(ii06) Store(0, r006) Store(0, c006) Store(0, b006) if (And(Local0, 0x01)) { Store(1, r006) } elseif (And(Local0, 0x02)) { Store(1, c006) } elseif (And(Local0, 0x04)) { Store(1, b006) } // Don't use these variables below Decrement(n006) Increment(i006) ////////////////////////// Actions if (r006) { m0f7("r006") ////////////////////////////////////////////////////////////// START, 07 Store(0, c007) Store(0, b007) Store(0, r007) Store(0, i007) Store(nn07, n007) While (n007) { m0f7("n007") Store(m0f5(p000, p001, ln07), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc07) Store(0, r007) } else { Store(1, r007) } Store(m0f5(p000, p001, lc07), Local0) if (And(Local0, 0x02)) { Store(0, c007) } else { Store(1, c007) } if (And(Local0, 0x04)) { Store(0, b007) } else { Store(1, b007) } // Mix consecution of works (may nullify all) Store(m0f9(r007, c007, b007, ii07), Local0) Increment(ii07) Store(0, r007) Store(0, c007) Store(0, b007) if (And(Local0, 0x01)) { Store(1, r007) } elseif (And(Local0, 0x02)) { Store(1, c007) } elseif (And(Local0, 0x04)) { Store(1, b007) } // Don't use these variables below Decrement(n007) Increment(i007) ////////////////////////// Actions if (r007) { m0f7("r007") ////////////////////////////////////////////////////////////// START, 08 Store(0, c008) Store(0, b008) Store(0, r008) Store(0, i008) Store(nn08, n008) While (n008) { m0f7("n008") Store(m0f5(p000, p001, ln08), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc08) Store(0, r008) } else { Store(1, r008) } Store(m0f5(p000, p001, lc08), Local0) if (And(Local0, 0x02)) { Store(0, c008) } else { Store(1, c008) } if (And(Local0, 0x04)) { Store(0, b008) } else { Store(1, b008) } // Mix consecution of works (may nullify all) Store(m0f9(r008, c008, b008, ii08), Local0) Increment(ii08) Store(0, r008) Store(0, c008) Store(0, b008) if (And(Local0, 0x01)) { Store(1, r008) } elseif (And(Local0, 0x02)) { Store(1, c008) } elseif (And(Local0, 0x04)) { Store(1, b008) } // Don't use these variables below Decrement(n008) Increment(i008) ////////////////////////// Actions if (r008) { m0f7("r008") ////////////////////////////////////////////////////////////// START, 09 Store(0, c009) Store(0, b009) Store(0, r009) Store(0, i009) Store(nn09, n009) While (n009) { m0f7("n009") Store(m0f5(p000, p001, ln09), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc09) Store(0, r009) } else { Store(1, r009) } Store(m0f5(p000, p001, lc09), Local0) if (And(Local0, 0x02)) { Store(0, c009) } else { Store(1, c009) } if (And(Local0, 0x04)) { Store(0, b009) } else { Store(1, b009) } // Mix consecution of works (may nullify all) Store(m0f9(r009, c009, b009, ii09), Local0) Increment(ii09) Store(0, r009) Store(0, c009) Store(0, b009) if (And(Local0, 0x01)) { Store(1, r009) } elseif (And(Local0, 0x02)) { Store(1, c009) } elseif (And(Local0, 0x04)) { Store(1, b009) } // Don't use these variables below Decrement(n009) Increment(i009) ////////////////////////// Actions if (r009) { m0f7("r009") ////////////////////////////////////////////////////////////// START, 10 Store(0, c010) Store(0, b010) Store(0, r010) Store(0, i010) Store(nn10, n010) While (n010) { m0f7("n010") Store(m0f5(p000, p001, ln10), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc10) Store(0, r010) } else { Store(1, r010) } Store(m0f5(p000, p001, lc10), Local0) if (And(Local0, 0x02)) { Store(0, c010) } else { Store(1, c010) } if (And(Local0, 0x04)) { Store(0, b010) } else { Store(1, b010) } // Mix consecution of works (may nullify all) Store(m0f9(r010, c010, b010, ii10), Local0) Increment(ii10) Store(0, r010) Store(0, c010) Store(0, b010) if (And(Local0, 0x01)) { Store(1, r010) } elseif (And(Local0, 0x02)) { Store(1, c010) } elseif (And(Local0, 0x04)) { Store(1, b010) } // Don't use these variables below Decrement(n010) Increment(i010) ////////////////////////// Actions if (r010) { m0f7("r010") ////////////////////////////////////////////////////////////// START, 11 Store(0, c011) Store(0, b011) Store(0, r011) Store(0, i011) Store(nn11, n011) While (n011) { m0f7("n011") Store(m0f5(p000, p001, ln11), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc11) Store(0, r011) } else { Store(1, r011) } Store(m0f5(p000, p001, lc11), Local0) if (And(Local0, 0x02)) { Store(0, c011) } else { Store(1, c011) } if (And(Local0, 0x04)) { Store(0, b011) } else { Store(1, b011) } // Mix consecution of works (may nullify all) Store(m0f9(r011, c011, b011, ii11), Local0) Increment(ii11) Store(0, r011) Store(0, c011) Store(0, b011) if (And(Local0, 0x01)) { Store(1, r011) } elseif (And(Local0, 0x02)) { Store(1, c011) } elseif (And(Local0, 0x04)) { Store(1, b011) } // Don't use these variables below Decrement(n011) Increment(i011) ////////////////////////// Actions if (r011) { m0f7("r011") ////////////////////////////////////////////////////////////// START, 12 Store(0, c012) Store(0, b012) Store(0, r012) Store(0, i012) Store(nn12, n012) While (n012) { m0f7("n012") Store(m0f5(p000, p001, ln12), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc12) Store(0, r012) } else { Store(1, r012) } Store(m0f5(p000, p001, lc12), Local0) if (And(Local0, 0x02)) { Store(0, c012) } else { Store(1, c012) } if (And(Local0, 0x04)) { Store(0, b012) } else { Store(1, b012) } // Mix consecution of works (may nullify all) Store(m0f9(r012, c012, b012, ii12), Local0) Increment(ii12) Store(0, r012) Store(0, c012) Store(0, b012) if (And(Local0, 0x01)) { Store(1, r012) } elseif (And(Local0, 0x02)) { Store(1, c012) } elseif (And(Local0, 0x04)) { Store(1, b012) } // Don't use these variables below Decrement(n012) Increment(i012) ////////////////////////// Actions if (r012) { m0f7("r012") ////////////////////////////////////////////////////////////// START, 13 Store(0, c013) Store(0, b013) Store(0, r013) Store(0, i013) Store(nn13, n013) While (n013) { m0f7("n013") Store(m0f5(p000, p001, ln13), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc13) Store(0, r013) } else { Store(1, r013) } Store(m0f5(p000, p001, lc13), Local0) if (And(Local0, 0x02)) { Store(0, c013) } else { Store(1, c013) } if (And(Local0, 0x04)) { Store(0, b013) } else { Store(1, b013) } // Mix consecution of works (may nullify all) Store(m0f9(r013, c013, b013, ii13), Local0) Increment(ii13) Store(0, r013) Store(0, c013) Store(0, b013) if (And(Local0, 0x01)) { Store(1, r013) } elseif (And(Local0, 0x02)) { Store(1, c013) } elseif (And(Local0, 0x04)) { Store(1, b013) } // Don't use these variables below Decrement(n013) Increment(i013) ////////////////////////// Actions if (r013) { m0f7("r013") ////////////////////////////////////////////////////////////// START, 14 Store(0, c014) Store(0, b014) Store(0, r014) Store(0, i014) Store(nn14, n014) While (n014) { m0f7("n014") Store(m0f5(p000, p001, ln14), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc14) Store(0, r014) } else { Store(1, r014) } Store(m0f5(p000, p001, lc14), Local0) if (And(Local0, 0x02)) { Store(0, c014) } else { Store(1, c014) } if (And(Local0, 0x04)) { Store(0, b014) } else { Store(1, b014) } // Mix consecution of works (may nullify all) Store(m0f9(r014, c014, b014, ii14), Local0) Increment(ii14) Store(0, r014) Store(0, c014) Store(0, b014) if (And(Local0, 0x01)) { Store(1, r014) } elseif (And(Local0, 0x02)) { Store(1, c014) } elseif (And(Local0, 0x04)) { Store(1, b014) } // Don't use these variables below Decrement(n014) Increment(i014) ////////////////////////// Actions if (r014) { m0f7("r014") ////////////////////////////////////////////////////////////// START, 15 Store(0, c015) Store(0, b015) Store(0, r015) Store(0, i015) Store(nn15, n015) While (n015) { m0f7("n015") Store(m0f5(p000, p001, ln15), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc15) Store(0, r015) } else { Store(1, r015) } Store(m0f5(p000, p001, lc15), Local0) if (And(Local0, 0x02)) { Store(0, c015) } else { Store(1, c015) } if (And(Local0, 0x04)) { Store(0, b015) } else { Store(1, b015) } // Mix consecution of works (may nullify all) Store(m0f9(r015, c015, b015, ii15), Local0) Increment(ii15) Store(0, r015) Store(0, c015) Store(0, b015) if (And(Local0, 0x01)) { Store(1, r015) } elseif (And(Local0, 0x02)) { Store(1, c015) } elseif (And(Local0, 0x04)) { Store(1, b015) } // Don't use these variables below Decrement(n015) Increment(i015) ////////////////////////// Actions if (r015) { m0f7("r015") ////////////////////////////////////////////////////////////// START, 16 Store(0, c016) Store(0, b016) Store(0, r016) Store(0, i016) Store(nn16, n016) While (n016) { m0f7("n016") Store(m0f5(p000, p001, ln16), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc16) Store(0, r016) } else { Store(1, r016) } Store(m0f5(p000, p001, lc16), Local0) if (And(Local0, 0x02)) { Store(0, c016) } else { Store(1, c016) } if (And(Local0, 0x04)) { Store(0, b016) } else { Store(1, b016) } // Mix consecution of works (may nullify all) Store(m0f9(r016, c016, b016, ii16), Local0) Increment(ii16) Store(0, r016) Store(0, c016) Store(0, b016) if (And(Local0, 0x01)) { Store(1, r016) } elseif (And(Local0, 0x02)) { Store(1, c016) } elseif (And(Local0, 0x04)) { Store(1, b016) } // Don't use these variables below Decrement(n016) Increment(i016) ////////////////////////// Actions if (r016) { m0f7("r016") ////////////////////////////////////////////////////////////// START, 17 Store(0, c017) Store(0, b017) Store(0, r017) Store(0, i017) Store(nn17, n017) While (n017) { m0f7("n017") Store(m0f5(p000, p001, ln17), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc17) Store(0, r017) } else { Store(1, r017) } Store(m0f5(p000, p001, lc17), Local0) if (And(Local0, 0x02)) { Store(0, c017) } else { Store(1, c017) } if (And(Local0, 0x04)) { Store(0, b017) } else { Store(1, b017) } // Mix consecution of works (may nullify all) Store(m0f9(r017, c017, b017, ii17), Local0) Increment(ii17) Store(0, r017) Store(0, c017) Store(0, b017) if (And(Local0, 0x01)) { Store(1, r017) } elseif (And(Local0, 0x02)) { Store(1, c017) } elseif (And(Local0, 0x04)) { Store(1, b017) } // Don't use these variables below Decrement(n017) Increment(i017) ////////////////////////// Actions if (r017) { m0f7("r017") ////////////////////////////////////////////////////////////// START, 18 Store(0, c018) Store(0, b018) Store(0, r018) Store(0, i018) Store(nn18, n018) While (n018) { m0f7("n018") Store(m0f5(p000, p001, ln18), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc18) Store(0, r018) } else { Store(1, r018) } Store(m0f5(p000, p001, lc18), Local0) if (And(Local0, 0x02)) { Store(0, c018) } else { Store(1, c018) } if (And(Local0, 0x04)) { Store(0, b018) } else { Store(1, b018) } // Mix consecution of works (may nullify all) Store(m0f9(r018, c018, b018, ii18), Local0) Increment(ii18) Store(0, r018) Store(0, c018) Store(0, b018) if (And(Local0, 0x01)) { Store(1, r018) } elseif (And(Local0, 0x02)) { Store(1, c018) } elseif (And(Local0, 0x04)) { Store(1, b018) } // Don't use these variables below Decrement(n018) Increment(i018) ////////////////////////// Actions if (r018) { m0f7("r018") ////////////////////////////////////////////////////////////// START, 19 Store(0, c019) Store(0, b019) Store(0, r019) Store(0, i019) Store(nn19, n019) While (n019) { m0f7("n019") Store(m0f5(p000, p001, ln19), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc19) Store(0, r019) } else { Store(1, r019) } Store(m0f5(p000, p001, lc19), Local0) if (And(Local0, 0x02)) { Store(0, c019) } else { Store(1, c019) } if (And(Local0, 0x04)) { Store(0, b019) } else { Store(1, b019) } // Mix consecution of works (may nullify all) Store(m0f9(r019, c019, b019, ii19), Local0) Increment(ii19) Store(0, r019) Store(0, c019) Store(0, b019) if (And(Local0, 0x01)) { Store(1, r019) } elseif (And(Local0, 0x02)) { Store(1, c019) } elseif (And(Local0, 0x04)) { Store(1, b019) } // Don't use these variables below Decrement(n019) Increment(i019) ////////////////////////// Actions if (r019) { m0f7("r019") ////////////////////////////////////////////////////////////// START, 20 Store(0, c020) Store(0, b020) Store(0, r020) Store(0, i020) Store(nn20, n020) While (n020) { m0f7("n020") Store(m0f5(p000, p001, ln20), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc20) Store(0, r020) } else { Store(1, r020) } Store(m0f5(p000, p001, lc20), Local0) if (And(Local0, 0x02)) { Store(0, c020) } else { Store(1, c020) } if (And(Local0, 0x04)) { Store(0, b020) } else { Store(1, b020) } // Mix consecution of works (may nullify all) Store(m0f9(r020, c020, b020, ii20), Local0) Increment(ii20) Store(0, r020) Store(0, c020) Store(0, b020) if (And(Local0, 0x01)) { Store(1, r020) } elseif (And(Local0, 0x02)) { Store(1, c020) } elseif (And(Local0, 0x04)) { Store(1, b020) } // Don't use these variables below Decrement(n020) Increment(i020) ////////////////////////// Actions if (r020) { m0f7("r020") ////////////////////////////////////////////////////////////// START, 21 Store(0, c021) Store(0, b021) Store(0, r021) Store(0, i021) Store(nn21, n021) While (n021) { m0f7("n021") Store(m0f5(p000, p001, ln21), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc21) Store(0, r021) } else { Store(1, r021) } Store(m0f5(p000, p001, lc21), Local0) if (And(Local0, 0x02)) { Store(0, c021) } else { Store(1, c021) } if (And(Local0, 0x04)) { Store(0, b021) } else { Store(1, b021) } // Mix consecution of works (may nullify all) Store(m0f9(r021, c021, b021, ii21), Local0) Increment(ii21) Store(0, r021) Store(0, c021) Store(0, b021) if (And(Local0, 0x01)) { Store(1, r021) } elseif (And(Local0, 0x02)) { Store(1, c021) } elseif (And(Local0, 0x04)) { Store(1, b021) } // Don't use these variables below Decrement(n021) Increment(i021) ////////////////////////// Actions if (r021) { m0f7("r021") ////////////////////////////////////////////////////////////// START, 22 Store(0, c022) Store(0, b022) Store(0, r022) Store(0, i022) Store(nn22, n022) While (n022) { m0f7("n022") Store(m0f5(p000, p001, ln22), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc22) Store(0, r022) } else { Store(1, r022) } Store(m0f5(p000, p001, lc22), Local0) if (And(Local0, 0x02)) { Store(0, c022) } else { Store(1, c022) } if (And(Local0, 0x04)) { Store(0, b022) } else { Store(1, b022) } // Mix consecution of works (may nullify all) Store(m0f9(r022, c022, b022, ii22), Local0) Increment(ii22) Store(0, r022) Store(0, c022) Store(0, b022) if (And(Local0, 0x01)) { Store(1, r022) } elseif (And(Local0, 0x02)) { Store(1, c022) } elseif (And(Local0, 0x04)) { Store(1, b022) } // Don't use these variables below Decrement(n022) Increment(i022) ////////////////////////// Actions if (r022) { m0f7("r022") ////////////////////////////////////////////////////////////// START, 23 Store(0, c023) Store(0, b023) Store(0, r023) Store(0, i023) Store(nn23, n023) While (n023) { m0f7("n023") Store(m0f5(p000, p001, ln23), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc23) Store(0, r023) } else { Store(1, r023) } Store(m0f5(p000, p001, lc23), Local0) if (And(Local0, 0x02)) { Store(0, c023) } else { Store(1, c023) } if (And(Local0, 0x04)) { Store(0, b023) } else { Store(1, b023) } // Mix consecution of works (may nullify all) Store(m0f9(r023, c023, b023, ii23), Local0) Increment(ii23) Store(0, r023) Store(0, c023) Store(0, b023) if (And(Local0, 0x01)) { Store(1, r023) } elseif (And(Local0, 0x02)) { Store(1, c023) } elseif (And(Local0, 0x04)) { Store(1, b023) } // Don't use these variables below Decrement(n023) Increment(i023) ////////////////////////// Actions if (r023) { m0f7("r023") ////////////////////////////////////////////////////////////// START, 24 Store(0, c024) Store(0, b024) Store(0, r024) Store(0, i024) Store(nn24, n024) While (n024) { m0f7("n024") Store(m0f5(p000, p001, ln24), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc24) Store(0, r024) } else { Store(1, r024) } Store(m0f5(p000, p001, lc24), Local0) if (And(Local0, 0x02)) { Store(0, c024) } else { Store(1, c024) } if (And(Local0, 0x04)) { Store(0, b024) } else { Store(1, b024) } // Mix consecution of works (may nullify all) Store(m0f9(r024, c024, b024, ii24), Local0) Increment(ii24) Store(0, r024) Store(0, c024) Store(0, b024) if (And(Local0, 0x01)) { Store(1, r024) } elseif (And(Local0, 0x02)) { Store(1, c024) } elseif (And(Local0, 0x04)) { Store(1, b024) } // Don't use these variables below Decrement(n024) Increment(i024) ////////////////////////// Actions if (r024) { m0f7("r024") ////////////////////////////////////////////////////////////// START, 25 Store(0, c025) Store(0, b025) Store(0, r025) Store(0, i025) Store(nn25, n025) While (n025) { m0f7("n025") Store(m0f5(p000, p001, ln25), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc25) Store(0, r025) } else { Store(1, r025) } Store(m0f5(p000, p001, lc25), Local0) if (And(Local0, 0x02)) { Store(0, c025) } else { Store(1, c025) } if (And(Local0, 0x04)) { Store(0, b025) } else { Store(1, b025) } // Mix consecution of works (may nullify all) Store(m0f9(r025, c025, b025, ii25), Local0) Increment(ii25) Store(0, r025) Store(0, c025) Store(0, b025) if (And(Local0, 0x01)) { Store(1, r025) } elseif (And(Local0, 0x02)) { Store(1, c025) } elseif (And(Local0, 0x04)) { Store(1, b025) } // Don't use these variables below Decrement(n025) Increment(i025) ////////////////////////// Actions if (r025) { m0f7("r025") ////////////////////////////////////////////////////////////// START, 26 Store(0, c026) Store(0, b026) Store(0, r026) Store(0, i026) Store(nn26, n026) While (n026) { m0f7("n026") Store(m0f5(p000, p001, ln26), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc26) Store(0, r026) } else { Store(1, r026) } Store(m0f5(p000, p001, lc26), Local0) if (And(Local0, 0x02)) { Store(0, c026) } else { Store(1, c026) } if (And(Local0, 0x04)) { Store(0, b026) } else { Store(1, b026) } // Mix consecution of works (may nullify all) Store(m0f9(r026, c026, b026, ii26), Local0) Increment(ii26) Store(0, r026) Store(0, c026) Store(0, b026) if (And(Local0, 0x01)) { Store(1, r026) } elseif (And(Local0, 0x02)) { Store(1, c026) } elseif (And(Local0, 0x04)) { Store(1, b026) } // Don't use these variables below Decrement(n026) Increment(i026) ////////////////////////// Actions if (r026) { m0f7("r026") ////////////////////////////////////////////////////////////// START, 27 Store(0, c027) Store(0, b027) Store(0, r027) Store(0, i027) Store(nn27, n027) While (n027) { m0f7("n027") Store(m0f5(p000, p001, ln27), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc27) Store(0, r027) } else { Store(1, r027) } Store(m0f5(p000, p001, lc27), Local0) if (And(Local0, 0x02)) { Store(0, c027) } else { Store(1, c027) } if (And(Local0, 0x04)) { Store(0, b027) } else { Store(1, b027) } // Mix consecution of works (may nullify all) Store(m0f9(r027, c027, b027, ii27), Local0) Increment(ii27) Store(0, r027) Store(0, c027) Store(0, b027) if (And(Local0, 0x01)) { Store(1, r027) } elseif (And(Local0, 0x02)) { Store(1, c027) } elseif (And(Local0, 0x04)) { Store(1, b027) } // Don't use these variables below Decrement(n027) Increment(i027) ////////////////////////// Actions if (r027) { m0f7("r027") ////////////////////////////////////////////////////////////// START, 28 Store(0, c028) Store(0, b028) Store(0, r028) Store(0, i028) Store(nn28, n028) While (n028) { m0f7("n028") Store(m0f5(p000, p001, ln28), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc28) Store(0, r028) } else { Store(1, r028) } Store(m0f5(p000, p001, lc28), Local0) if (And(Local0, 0x02)) { Store(0, c028) } else { Store(1, c028) } if (And(Local0, 0x04)) { Store(0, b028) } else { Store(1, b028) } // Mix consecution of works (may nullify all) Store(m0f9(r028, c028, b028, ii28), Local0) Increment(ii28) Store(0, r028) Store(0, c028) Store(0, b028) if (And(Local0, 0x01)) { Store(1, r028) } elseif (And(Local0, 0x02)) { Store(1, c028) } elseif (And(Local0, 0x04)) { Store(1, b028) } // Don't use these variables below Decrement(n028) Increment(i028) ////////////////////////// Actions if (r028) { m0f7("r028") ////////////////////////////////////////////////////////////// START, 29 Store(0, c029) Store(0, b029) Store(0, r029) Store(0, i029) Store(nn29, n029) While (n029) { m0f7("n029") Store(m0f5(p000, p001, ln29), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc29) Store(0, r029) } else { Store(1, r029) } Store(m0f5(p000, p001, lc29), Local0) if (And(Local0, 0x02)) { Store(0, c029) } else { Store(1, c029) } if (And(Local0, 0x04)) { Store(0, b029) } else { Store(1, b029) } // Mix consecution of works (may nullify all) Store(m0f9(r029, c029, b029, ii29), Local0) Increment(ii29) Store(0, r029) Store(0, c029) Store(0, b029) if (And(Local0, 0x01)) { Store(1, r029) } elseif (And(Local0, 0x02)) { Store(1, c029) } elseif (And(Local0, 0x04)) { Store(1, b029) } // Don't use these variables below Decrement(n029) Increment(i029) ////////////////////////// Actions if (r029) { m0f7("r029") ////////////////////////////////////////////////////////////// START, 30 Store(0, c030) Store(0, b030) Store(0, r030) Store(0, i030) Store(nn30, n030) While (n030) { m0f7("n030") Store(m0f5(p000, p001, ln30), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc30) Store(0, r030) } else { Store(1, r030) } Store(m0f5(p000, p001, lc30), Local0) if (And(Local0, 0x02)) { Store(0, c030) } else { Store(1, c030) } if (And(Local0, 0x04)) { Store(0, b030) } else { Store(1, b030) } // Mix consecution of works (may nullify all) Store(m0f9(r030, c030, b030, ii30), Local0) Increment(ii30) Store(0, r030) Store(0, c030) Store(0, b030) if (And(Local0, 0x01)) { Store(1, r030) } elseif (And(Local0, 0x02)) { Store(1, c030) } elseif (And(Local0, 0x04)) { Store(1, b030) } // Don't use these variables below Decrement(n030) Increment(i030) ////////////////////////// Actions if (r030) { m0f7("r030") ////////////////////////////////////////////////////////////// START, 31 Store(0, c031) Store(0, b031) Store(0, r031) Store(0, i031) Store(nn31, n031) While (n031) { m0f7("n031") Store(m0f5(p000, p001, ln31), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc31) Store(0, r031) } else { Store(1, r031) } Store(m0f5(p000, p001, lc31), Local0) if (And(Local0, 0x02)) { Store(0, c031) } else { Store(1, c031) } if (And(Local0, 0x04)) { Store(0, b031) } else { Store(1, b031) } // Mix consecution of works (may nullify all) Store(m0f9(r031, c031, b031, ii31), Local0) Increment(ii31) Store(0, r031) Store(0, c031) Store(0, b031) if (And(Local0, 0x01)) { Store(1, r031) } elseif (And(Local0, 0x02)) { Store(1, c031) } elseif (And(Local0, 0x04)) { Store(1, b031) } // Don't use these variables below Decrement(n031) Increment(i031) ////////////////////////// Actions if (r031) { m0f7("r031") ////////////////////////////////////////////////////////////// START, 32 Store(0, c032) Store(0, b032) Store(0, r032) Store(0, i032) Store(nn32, n032) While (n032) { m0f7("n032") Store(m0f5(p000, p001, ln32), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc32) Store(0, r032) } else { Store(1, r032) } Store(m0f5(p000, p001, lc32), Local0) if (And(Local0, 0x02)) { Store(0, c032) } else { Store(1, c032) } if (And(Local0, 0x04)) { Store(0, b032) } else { Store(1, b032) } // Mix consecution of works (may nullify all) Store(m0f9(r032, c032, b032, ii32), Local0) Increment(ii32) Store(0, r032) Store(0, c032) Store(0, b032) if (And(Local0, 0x01)) { Store(1, r032) } elseif (And(Local0, 0x02)) { Store(1, c032) } elseif (And(Local0, 0x04)) { Store(1, b032) } // Don't use these variables below Decrement(n032) Increment(i032) ////////////////////////// Actions if (r032) { m0f7("r032") ////////////////////////////////////////////////////////////// START, 33 Store(0, c033) Store(0, b033) Store(0, r033) Store(0, i033) Store(nn33, n033) While (n033) { m0f7("n033") Store(m0f5(p000, p001, ln33), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc33) Store(0, r033) } else { Store(1, r033) } Store(m0f5(p000, p001, lc33), Local0) if (And(Local0, 0x02)) { Store(0, c033) } else { Store(1, c033) } if (And(Local0, 0x04)) { Store(0, b033) } else { Store(1, b033) } // Mix consecution of works (may nullify all) Store(m0f9(r033, c033, b033, ii33), Local0) Increment(ii33) Store(0, r033) Store(0, c033) Store(0, b033) if (And(Local0, 0x01)) { Store(1, r033) } elseif (And(Local0, 0x02)) { Store(1, c033) } elseif (And(Local0, 0x04)) { Store(1, b033) } // Don't use these variables below Decrement(n033) Increment(i033) ////////////////////////// Actions if (r033) { m0f7("r033") ////////////////////////////////////////////////////////////// START, 34 Store(0, c034) Store(0, b034) Store(0, r034) Store(0, i034) Store(nn34, n034) While (n034) { m0f7("n034") Store(m0f5(p000, p001, ln34), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc34) Store(0, r034) } else { Store(1, r034) } Store(m0f5(p000, p001, lc34), Local0) if (And(Local0, 0x02)) { Store(0, c034) } else { Store(1, c034) } if (And(Local0, 0x04)) { Store(0, b034) } else { Store(1, b034) } // Mix consecution of works (may nullify all) Store(m0f9(r034, c034, b034, ii34), Local0) Increment(ii34) Store(0, r034) Store(0, c034) Store(0, b034) if (And(Local0, 0x01)) { Store(1, r034) } elseif (And(Local0, 0x02)) { Store(1, c034) } elseif (And(Local0, 0x04)) { Store(1, b034) } // Don't use these variables below Decrement(n034) Increment(i034) ////////////////////////// Actions if (r034) { m0f7("r034") ////////////////////////////////////////////////////////////// START, 35 Store(0, c035) Store(0, b035) Store(0, r035) Store(0, i035) Store(nn35, n035) While (n035) { m0f7("n035") Store(m0f5(p000, p001, ln35), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc35) Store(0, r035) } else { Store(1, r035) } Store(m0f5(p000, p001, lc35), Local0) if (And(Local0, 0x02)) { Store(0, c035) } else { Store(1, c035) } if (And(Local0, 0x04)) { Store(0, b035) } else { Store(1, b035) } // Mix consecution of works (may nullify all) Store(m0f9(r035, c035, b035, ii35), Local0) Increment(ii35) Store(0, r035) Store(0, c035) Store(0, b035) if (And(Local0, 0x01)) { Store(1, r035) } elseif (And(Local0, 0x02)) { Store(1, c035) } elseif (And(Local0, 0x04)) { Store(1, b035) } // Don't use these variables below Decrement(n035) Increment(i035) ////////////////////////// Actions if (r035) { m0f7("r035") ////////////////////////////////////////////////////////////// START, 36 Store(0, c036) Store(0, b036) Store(0, r036) Store(0, i036) Store(nn36, n036) While (n036) { m0f7("n036") Store(m0f5(p000, p001, ln36), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc36) Store(0, r036) } else { Store(1, r036) } Store(m0f5(p000, p001, lc36), Local0) if (And(Local0, 0x02)) { Store(0, c036) } else { Store(1, c036) } if (And(Local0, 0x04)) { Store(0, b036) } else { Store(1, b036) } // Mix consecution of works (may nullify all) Store(m0f9(r036, c036, b036, ii36), Local0) Increment(ii36) Store(0, r036) Store(0, c036) Store(0, b036) if (And(Local0, 0x01)) { Store(1, r036) } elseif (And(Local0, 0x02)) { Store(1, c036) } elseif (And(Local0, 0x04)) { Store(1, b036) } // Don't use these variables below Decrement(n036) Increment(i036) ////////////////////////// Actions if (r036) { m0f7("r036") ////////////////////////////////////////////////////////////// START, 37 Store(0, c037) Store(0, b037) Store(0, r037) Store(0, i037) Store(nn37, n037) While (n037) { m0f7("n037") Store(m0f5(p000, p001, ln37), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc37) Store(0, r037) } else { Store(1, r037) } Store(m0f5(p000, p001, lc37), Local0) if (And(Local0, 0x02)) { Store(0, c037) } else { Store(1, c037) } if (And(Local0, 0x04)) { Store(0, b037) } else { Store(1, b037) } // Mix consecution of works (may nullify all) Store(m0f9(r037, c037, b037, ii37), Local0) Increment(ii37) Store(0, r037) Store(0, c037) Store(0, b037) if (And(Local0, 0x01)) { Store(1, r037) } elseif (And(Local0, 0x02)) { Store(1, c037) } elseif (And(Local0, 0x04)) { Store(1, b037) } // Don't use these variables below Decrement(n037) Increment(i037) ////////////////////////// Actions if (r037) { m0f7("r037") ////////////////////////////////////////////////////////////// START, 38 Store(0, c038) Store(0, b038) Store(0, r038) Store(0, i038) Store(nn38, n038) While (n038) { m0f7("n038") Store(m0f5(p000, p001, ln38), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc38) Store(0, r038) } else { Store(1, r038) } Store(m0f5(p000, p001, lc38), Local0) if (And(Local0, 0x02)) { Store(0, c038) } else { Store(1, c038) } if (And(Local0, 0x04)) { Store(0, b038) } else { Store(1, b038) } // Mix consecution of works (may nullify all) Store(m0f9(r038, c038, b038, ii38), Local0) Increment(ii38) Store(0, r038) Store(0, c038) Store(0, b038) if (And(Local0, 0x01)) { Store(1, r038) } elseif (And(Local0, 0x02)) { Store(1, c038) } elseif (And(Local0, 0x04)) { Store(1, b038) } // Don't use these variables below Decrement(n038) Increment(i038) ////////////////////////// Actions if (r038) { m0f7("r038") ////////////////////////////////////////////////////////////// START, 39 Store(0, c039) Store(0, b039) Store(0, r039) Store(0, i039) Store(nn39, n039) While (n039) { m0f7("n039") Store(m0f5(p000, p001, ln39), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc39) Store(0, r039) } else { Store(1, r039) } Store(m0f5(p000, p001, lc39), Local0) if (And(Local0, 0x02)) { Store(0, c039) } else { Store(1, c039) } if (And(Local0, 0x04)) { Store(0, b039) } else { Store(1, b039) } // Mix consecution of works (may nullify all) Store(m0f9(r039, c039, b039, ii39), Local0) Increment(ii39) Store(0, r039) Store(0, c039) Store(0, b039) if (And(Local0, 0x01)) { Store(1, r039) } elseif (And(Local0, 0x02)) { Store(1, c039) } elseif (And(Local0, 0x04)) { Store(1, b039) } // Don't use these variables below Decrement(n039) Increment(i039) ////////////////////////// Actions if (r039) { m0f7("r039") ////////////////////////////////////////////////////////////// START, 40 Store(0, c040) Store(0, b040) Store(0, r040) Store(0, i040) Store(nn40, n040) While (n040) { m0f7("n040") Store(m0f5(p000, p001, ln40), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc40) Store(0, r040) } else { Store(1, r040) } Store(m0f5(p000, p001, lc40), Local0) if (And(Local0, 0x02)) { Store(0, c040) } else { Store(1, c040) } if (And(Local0, 0x04)) { Store(0, b040) } else { Store(1, b040) } // Mix consecution of works (may nullify all) Store(m0f9(r040, c040, b040, ii40), Local0) Increment(ii40) Store(0, r040) Store(0, c040) Store(0, b040) if (And(Local0, 0x01)) { Store(1, r040) } elseif (And(Local0, 0x02)) { Store(1, c040) } elseif (And(Local0, 0x04)) { Store(1, b040) } // Don't use these variables below Decrement(n040) Increment(i040) ////////////////////////// Actions if (r040) { m0f7("r040") ////////////////////////////////////////////////////////////// START, 41 Store(0, c041) Store(0, b041) Store(0, r041) Store(0, i041) Store(nn41, n041) While (n041) { m0f7("n041") Store(m0f5(p000, p001, ln41), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc41) Store(0, r041) } else { Store(1, r041) } Store(m0f5(p000, p001, lc41), Local0) if (And(Local0, 0x02)) { Store(0, c041) } else { Store(1, c041) } if (And(Local0, 0x04)) { Store(0, b041) } else { Store(1, b041) } // Mix consecution of works (may nullify all) Store(m0f9(r041, c041, b041, ii41), Local0) Increment(ii41) Store(0, r041) Store(0, c041) Store(0, b041) if (And(Local0, 0x01)) { Store(1, r041) } elseif (And(Local0, 0x02)) { Store(1, c041) } elseif (And(Local0, 0x04)) { Store(1, b041) } // Don't use these variables below Decrement(n041) Increment(i041) ////////////////////////// Actions if (r041) { m0f7("r041") ////////////////////////////////////////////////////////////// START, 42 Store(0, c042) Store(0, b042) Store(0, r042) Store(0, i042) Store(nn42, n042) While (n042) { m0f7("n042") Store(m0f5(p000, p001, ln42), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc42) Store(0, r042) } else { Store(1, r042) } Store(m0f5(p000, p001, lc42), Local0) if (And(Local0, 0x02)) { Store(0, c042) } else { Store(1, c042) } if (And(Local0, 0x04)) { Store(0, b042) } else { Store(1, b042) } // Mix consecution of works (may nullify all) Store(m0f9(r042, c042, b042, ii42), Local0) Increment(ii42) Store(0, r042) Store(0, c042) Store(0, b042) if (And(Local0, 0x01)) { Store(1, r042) } elseif (And(Local0, 0x02)) { Store(1, c042) } elseif (And(Local0, 0x04)) { Store(1, b042) } // Don't use these variables below Decrement(n042) Increment(i042) ////////////////////////// Actions if (r042) { m0f7("r042") ////////////////////////////////////////////////////////////// START, 43 Store(0, c043) Store(0, b043) Store(0, r043) Store(0, i043) Store(nn43, n043) While (n043) { m0f7("n043") Store(m0f5(p000, p001, ln43), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc43) Store(0, r043) } else { Store(1, r043) } Store(m0f5(p000, p001, lc43), Local0) if (And(Local0, 0x02)) { Store(0, c043) } else { Store(1, c043) } if (And(Local0, 0x04)) { Store(0, b043) } else { Store(1, b043) } // Mix consecution of works (may nullify all) Store(m0f9(r043, c043, b043, ii43), Local0) Increment(ii43) Store(0, r043) Store(0, c043) Store(0, b043) if (And(Local0, 0x01)) { Store(1, r043) } elseif (And(Local0, 0x02)) { Store(1, c043) } elseif (And(Local0, 0x04)) { Store(1, b043) } // Don't use these variables below Decrement(n043) Increment(i043) ////////////////////////// Actions if (r043) { m0f7("r043") ////////////////////////////////////////////////////////////// START, 44 Store(0, c044) Store(0, b044) Store(0, r044) Store(0, i044) Store(nn44, n044) While (n044) { m0f7("n044") Store(m0f5(p000, p001, ln44), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc44) Store(0, r044) } else { Store(1, r044) } Store(m0f5(p000, p001, lc44), Local0) if (And(Local0, 0x02)) { Store(0, c044) } else { Store(1, c044) } if (And(Local0, 0x04)) { Store(0, b044) } else { Store(1, b044) } // Mix consecution of works (may nullify all) Store(m0f9(r044, c044, b044, ii44), Local0) Increment(ii44) Store(0, r044) Store(0, c044) Store(0, b044) if (And(Local0, 0x01)) { Store(1, r044) } elseif (And(Local0, 0x02)) { Store(1, c044) } elseif (And(Local0, 0x04)) { Store(1, b044) } // Don't use these variables below Decrement(n044) Increment(i044) ////////////////////////// Actions if (r044) { m0f7("r044") ////////////////////////////////////////////////////////////// START, 45 Store(0, c045) Store(0, b045) Store(0, r045) Store(0, i045) Store(nn45, n045) While (n045) { m0f7("n045") Store(m0f5(p000, p001, ln45), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc45) Store(0, r045) } else { Store(1, r045) } Store(m0f5(p000, p001, lc45), Local0) if (And(Local0, 0x02)) { Store(0, c045) } else { Store(1, c045) } if (And(Local0, 0x04)) { Store(0, b045) } else { Store(1, b045) } // Mix consecution of works (may nullify all) Store(m0f9(r045, c045, b045, ii45), Local0) Increment(ii45) Store(0, r045) Store(0, c045) Store(0, b045) if (And(Local0, 0x01)) { Store(1, r045) } elseif (And(Local0, 0x02)) { Store(1, c045) } elseif (And(Local0, 0x04)) { Store(1, b045) } // Don't use these variables below Decrement(n045) Increment(i045) ////////////////////////// Actions if (r045) { m0f7("r045") ////////////////////////////////////////////////////////////// START, 46 Store(0, c046) Store(0, b046) Store(0, r046) Store(0, i046) Store(nn46, n046) While (n046) { m0f7("n046") Store(m0f5(p000, p001, ln46), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc46) Store(0, r046) } else { Store(1, r046) } Store(m0f5(p000, p001, lc46), Local0) if (And(Local0, 0x02)) { Store(0, c046) } else { Store(1, c046) } if (And(Local0, 0x04)) { Store(0, b046) } else { Store(1, b046) } // Mix consecution of works (may nullify all) Store(m0f9(r046, c046, b046, ii46), Local0) Increment(ii46) Store(0, r046) Store(0, c046) Store(0, b046) if (And(Local0, 0x01)) { Store(1, r046) } elseif (And(Local0, 0x02)) { Store(1, c046) } elseif (And(Local0, 0x04)) { Store(1, b046) } // Don't use these variables below Decrement(n046) Increment(i046) ////////////////////////// Actions if (r046) { m0f7("r046") ////////////////////////////////////////////////////////////// START, 47 Store(0, c047) Store(0, b047) Store(0, r047) Store(0, i047) Store(nn47, n047) While (n047) { m0f7("n047") Store(m0f5(p000, p001, ln47), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc47) Store(0, r047) } else { Store(1, r047) } Store(m0f5(p000, p001, lc47), Local0) if (And(Local0, 0x02)) { Store(0, c047) } else { Store(1, c047) } if (And(Local0, 0x04)) { Store(0, b047) } else { Store(1, b047) } // Mix consecution of works (may nullify all) Store(m0f9(r047, c047, b047, ii47), Local0) Increment(ii47) Store(0, r047) Store(0, c047) Store(0, b047) if (And(Local0, 0x01)) { Store(1, r047) } elseif (And(Local0, 0x02)) { Store(1, c047) } elseif (And(Local0, 0x04)) { Store(1, b047) } // Don't use these variables below Decrement(n047) Increment(i047) ////////////////////////// Actions if (r047) { m0f7("r047") ////////////////////////////////////////////////////////////// START, 48 Store(0, c048) Store(0, b048) Store(0, r048) Store(0, i048) Store(nn48, n048) While (n048) { m0f7("n048") Store(m0f5(p000, p001, ln48), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc48) Store(0, r048) } else { Store(1, r048) } Store(m0f5(p000, p001, lc48), Local0) if (And(Local0, 0x02)) { Store(0, c048) } else { Store(1, c048) } if (And(Local0, 0x04)) { Store(0, b048) } else { Store(1, b048) } // Mix consecution of works (may nullify all) Store(m0f9(r048, c048, b048, ii48), Local0) Increment(ii48) Store(0, r048) Store(0, c048) Store(0, b048) if (And(Local0, 0x01)) { Store(1, r048) } elseif (And(Local0, 0x02)) { Store(1, c048) } elseif (And(Local0, 0x04)) { Store(1, b048) } // Don't use these variables below Decrement(n048) Increment(i048) ////////////////////////// Actions if (r048) { m0f7("r048") ////////////////////////////////////////////////////////////// START, 49 Store(0, c049) Store(0, b049) Store(0, r049) Store(0, i049) Store(nn49, n049) While (n049) { m0f7("n049") Store(m0f5(p000, p001, ln49), Local0) if (LEqual(Local0, 0x07)) { // Set up - my children complited m0f2(p000, CHL0, lc49) Store(0, r049) } else { Store(1, r049) } Store(m0f5(p000, p001, lc49), Local0) if (And(Local0, 0x02)) { Store(0, c049) } else { Store(1, c049) } if (And(Local0, 0x04)) { Store(0, b049) } else { Store(1, b049) } // Mix consecution of works (may nullify all) Store(m0f9(r049, c049, b049, ii49), Local0) Increment(ii49) Store(0, r049) Store(0, c049) Store(0, b049) if (And(Local0, 0x01)) { Store(1, r049) } elseif (And(Local0, 0x02)) { Store(1, c049) } elseif (And(Local0, 0x04)) { Store(1, b049) } // Don't use these variables below Decrement(n049) Increment(i049) ////////////////////////// Actions if (r049) { m0f7("r049") } // CAUTION: don't use below any common variables // being set up before this poin. if (b049) { m0f2(p000, BRK0, lc49) break } if (c049) { m0f2(p000, CNT0, lc49) continue } if (c049) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b049) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln49), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc49) Store(m0f5(p000, p001, lc49), Local0) if (LEqual(Local0, 0x07)) { Store(1, b049) m0f7("b049, completed") break } } if (b049) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 49 } // CAUTION: don't use below any common variables // being set up before this poin. if (b048) { m0f2(p000, BRK0, lc48) break } if (c048) { m0f2(p000, CNT0, lc48) continue } if (c048) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b048) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln48), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc48) Store(m0f5(p000, p001, lc48), Local0) if (LEqual(Local0, 0x07)) { Store(1, b048) m0f7("b048, completed") break } } if (b048) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 48 } // CAUTION: don't use below any common variables // being set up before this poin. if (b047) { m0f2(p000, BRK0, lc47) break } if (c047) { m0f2(p000, CNT0, lc47) continue } if (c047) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b047) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln47), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc47) Store(m0f5(p000, p001, lc47), Local0) if (LEqual(Local0, 0x07)) { Store(1, b047) m0f7("b047, completed") break } } if (b047) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 47 } // CAUTION: don't use below any common variables // being set up before this poin. if (b046) { m0f2(p000, BRK0, lc46) break } if (c046) { m0f2(p000, CNT0, lc46) continue } if (c046) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b046) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln46), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc46) Store(m0f5(p000, p001, lc46), Local0) if (LEqual(Local0, 0x07)) { Store(1, b046) m0f7("b046, completed") break } } if (b046) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 46 } // CAUTION: don't use below any common variables // being set up before this poin. if (b045) { m0f2(p000, BRK0, lc45) break } if (c045) { m0f2(p000, CNT0, lc45) continue } if (c045) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b045) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln45), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc45) Store(m0f5(p000, p001, lc45), Local0) if (LEqual(Local0, 0x07)) { Store(1, b045) m0f7("b045, completed") break } } if (b045) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 45 } // CAUTION: don't use below any common variables // being set up before this poin. if (b044) { m0f2(p000, BRK0, lc44) break } if (c044) { m0f2(p000, CNT0, lc44) continue } if (c044) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b044) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln44), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc44) Store(m0f5(p000, p001, lc44), Local0) if (LEqual(Local0, 0x07)) { Store(1, b044) m0f7("b044, completed") break } } if (b044) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 44 } // CAUTION: don't use below any common variables // being set up before this poin. if (b043) { m0f2(p000, BRK0, lc43) break } if (c043) { m0f2(p000, CNT0, lc43) continue } if (c043) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b043) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln43), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc43) Store(m0f5(p000, p001, lc43), Local0) if (LEqual(Local0, 0x07)) { Store(1, b043) m0f7("b043, completed") break } } if (b043) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 43 } // CAUTION: don't use below any common variables // being set up before this poin. if (b042) { m0f2(p000, BRK0, lc42) break } if (c042) { m0f2(p000, CNT0, lc42) continue } if (c042) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b042) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln42), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc42) Store(m0f5(p000, p001, lc42), Local0) if (LEqual(Local0, 0x07)) { Store(1, b042) m0f7("b042, completed") break } } if (b042) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 42 } // CAUTION: don't use below any common variables // being set up before this poin. if (b041) { m0f2(p000, BRK0, lc41) break } if (c041) { m0f2(p000, CNT0, lc41) continue } if (c041) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b041) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln41), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc41) Store(m0f5(p000, p001, lc41), Local0) if (LEqual(Local0, 0x07)) { Store(1, b041) m0f7("b041, completed") break } } if (b041) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 41 } // CAUTION: don't use below any common variables // being set up before this poin. if (b040) { m0f2(p000, BRK0, lc40) break } if (c040) { m0f2(p000, CNT0, lc40) continue } if (c040) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b040) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln40), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc40) Store(m0f5(p000, p001, lc40), Local0) if (LEqual(Local0, 0x07)) { Store(1, b040) m0f7("b040, completed") break } } if (b040) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 40 } // CAUTION: don't use below any common variables // being set up before this poin. if (b039) { m0f2(p000, BRK0, lc39) break } if (c039) { m0f2(p000, CNT0, lc39) continue } if (c039) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b039) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln39), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc39) Store(m0f5(p000, p001, lc39), Local0) if (LEqual(Local0, 0x07)) { Store(1, b039) m0f7("b039, completed") break } } if (b039) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 39 } // CAUTION: don't use below any common variables // being set up before this poin. if (b038) { m0f2(p000, BRK0, lc38) break } if (c038) { m0f2(p000, CNT0, lc38) continue } if (c038) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b038) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln38), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc38) Store(m0f5(p000, p001, lc38), Local0) if (LEqual(Local0, 0x07)) { Store(1, b038) m0f7("b038, completed") break } } if (b038) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 38 } // CAUTION: don't use below any common variables // being set up before this poin. if (b037) { m0f2(p000, BRK0, lc37) break } if (c037) { m0f2(p000, CNT0, lc37) continue } if (c037) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b037) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln37), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc37) Store(m0f5(p000, p001, lc37), Local0) if (LEqual(Local0, 0x07)) { Store(1, b037) m0f7("b037, completed") break } } if (b037) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 37 } // CAUTION: don't use below any common variables // being set up before this poin. if (b036) { m0f2(p000, BRK0, lc36) break } if (c036) { m0f2(p000, CNT0, lc36) continue } if (c036) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b036) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln36), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc36) Store(m0f5(p000, p001, lc36), Local0) if (LEqual(Local0, 0x07)) { Store(1, b036) m0f7("b036, completed") break } } if (b036) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 36 } // CAUTION: don't use below any common variables // being set up before this poin. if (b035) { m0f2(p000, BRK0, lc35) break } if (c035) { m0f2(p000, CNT0, lc35) continue } if (c035) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b035) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln35), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc35) Store(m0f5(p000, p001, lc35), Local0) if (LEqual(Local0, 0x07)) { Store(1, b035) m0f7("b035, completed") break } } if (b035) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 35 } // CAUTION: don't use below any common variables // being set up before this poin. if (b034) { m0f2(p000, BRK0, lc34) break } if (c034) { m0f2(p000, CNT0, lc34) continue } if (c034) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b034) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln34), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc34) Store(m0f5(p000, p001, lc34), Local0) if (LEqual(Local0, 0x07)) { Store(1, b034) m0f7("b034, completed") break } } if (b034) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 34 } // CAUTION: don't use below any common variables // being set up before this poin. if (b033) { m0f2(p000, BRK0, lc33) break } if (c033) { m0f2(p000, CNT0, lc33) continue } if (c033) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b033) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln33), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc33) Store(m0f5(p000, p001, lc33), Local0) if (LEqual(Local0, 0x07)) { Store(1, b033) m0f7("b033, completed") break } } if (b033) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 33 } // CAUTION: don't use below any common variables // being set up before this poin. if (b032) { m0f2(p000, BRK0, lc32) break } if (c032) { m0f2(p000, CNT0, lc32) continue } if (c032) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b032) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln32), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc32) Store(m0f5(p000, p001, lc32), Local0) if (LEqual(Local0, 0x07)) { Store(1, b032) m0f7("b032, completed") break } } if (b032) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 32 } // CAUTION: don't use below any common variables // being set up before this poin. if (b031) { m0f2(p000, BRK0, lc31) break } if (c031) { m0f2(p000, CNT0, lc31) continue } if (c031) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b031) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln31), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc31) Store(m0f5(p000, p001, lc31), Local0) if (LEqual(Local0, 0x07)) { Store(1, b031) m0f7("b031, completed") break } } if (b031) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 31 } // CAUTION: don't use below any common variables // being set up before this poin. if (b030) { m0f2(p000, BRK0, lc30) break } if (c030) { m0f2(p000, CNT0, lc30) continue } if (c030) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b030) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln30), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc30) Store(m0f5(p000, p001, lc30), Local0) if (LEqual(Local0, 0x07)) { Store(1, b030) m0f7("b030, completed") break } } if (b030) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 30 } // CAUTION: don't use below any common variables // being set up before this poin. if (b029) { m0f2(p000, BRK0, lc29) break } if (c029) { m0f2(p000, CNT0, lc29) continue } if (c029) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b029) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln29), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc29) Store(m0f5(p000, p001, lc29), Local0) if (LEqual(Local0, 0x07)) { Store(1, b029) m0f7("b029, completed") break } } if (b029) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 29 } // CAUTION: don't use below any common variables // being set up before this poin. if (b028) { m0f2(p000, BRK0, lc28) break } if (c028) { m0f2(p000, CNT0, lc28) continue } if (c028) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b028) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln28), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc28) Store(m0f5(p000, p001, lc28), Local0) if (LEqual(Local0, 0x07)) { Store(1, b028) m0f7("b028, completed") break } } if (b028) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 28 } // CAUTION: don't use below any common variables // being set up before this poin. if (b027) { m0f2(p000, BRK0, lc27) break } if (c027) { m0f2(p000, CNT0, lc27) continue } if (c027) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b027) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln27), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc27) Store(m0f5(p000, p001, lc27), Local0) if (LEqual(Local0, 0x07)) { Store(1, b027) m0f7("b027, completed") break } } if (b027) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 27 } // CAUTION: don't use below any common variables // being set up before this poin. if (b026) { m0f2(p000, BRK0, lc26) break } if (c026) { m0f2(p000, CNT0, lc26) continue } if (c026) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b026) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln26), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc26) Store(m0f5(p000, p001, lc26), Local0) if (LEqual(Local0, 0x07)) { Store(1, b026) m0f7("b026, completed") break } } if (b026) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 26 } // CAUTION: don't use below any common variables // being set up before this poin. if (b025) { m0f2(p000, BRK0, lc25) break } if (c025) { m0f2(p000, CNT0, lc25) continue } if (c025) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b025) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln25), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc25) Store(m0f5(p000, p001, lc25), Local0) if (LEqual(Local0, 0x07)) { Store(1, b025) m0f7("b025, completed") break } } if (b025) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 25 } // CAUTION: don't use below any common variables // being set up before this poin. if (b024) { m0f2(p000, BRK0, lc24) break } if (c024) { m0f2(p000, CNT0, lc24) continue } if (c024) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b024) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln24), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc24) Store(m0f5(p000, p001, lc24), Local0) if (LEqual(Local0, 0x07)) { Store(1, b024) m0f7("b024, completed") break } } if (b024) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 24 } // CAUTION: don't use below any common variables // being set up before this poin. if (b023) { m0f2(p000, BRK0, lc23) break } if (c023) { m0f2(p000, CNT0, lc23) continue } if (c023) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b023) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln23), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc23) Store(m0f5(p000, p001, lc23), Local0) if (LEqual(Local0, 0x07)) { Store(1, b023) m0f7("b023, completed") break } } if (b023) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 23 } // CAUTION: don't use below any common variables // being set up before this poin. if (b022) { m0f2(p000, BRK0, lc22) break } if (c022) { m0f2(p000, CNT0, lc22) continue } if (c022) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b022) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln22), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc22) Store(m0f5(p000, p001, lc22), Local0) if (LEqual(Local0, 0x07)) { Store(1, b022) m0f7("b022, completed") break } } if (b022) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 22 } // CAUTION: don't use below any common variables // being set up before this poin. if (b021) { m0f2(p000, BRK0, lc21) break } if (c021) { m0f2(p000, CNT0, lc21) continue } if (c021) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b021) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln21), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc21) Store(m0f5(p000, p001, lc21), Local0) if (LEqual(Local0, 0x07)) { Store(1, b021) m0f7("b021, completed") break } } if (b021) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 21 } // CAUTION: don't use below any common variables // being set up before this poin. if (b020) { m0f2(p000, BRK0, lc20) break } if (c020) { m0f2(p000, CNT0, lc20) continue } if (c020) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b020) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln20), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc20) Store(m0f5(p000, p001, lc20), Local0) if (LEqual(Local0, 0x07)) { Store(1, b020) m0f7("b020, completed") break } } if (b020) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 20 } // CAUTION: don't use below any common variables // being set up before this poin. if (b019) { m0f2(p000, BRK0, lc19) break } if (c019) { m0f2(p000, CNT0, lc19) continue } if (c019) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b019) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln19), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc19) Store(m0f5(p000, p001, lc19), Local0) if (LEqual(Local0, 0x07)) { Store(1, b019) m0f7("b019, completed") break } } if (b019) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 19 } // CAUTION: don't use below any common variables // being set up before this poin. if (b018) { m0f2(p000, BRK0, lc18) break } if (c018) { m0f2(p000, CNT0, lc18) continue } if (c018) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b018) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln18), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc18) Store(m0f5(p000, p001, lc18), Local0) if (LEqual(Local0, 0x07)) { Store(1, b018) m0f7("b018, completed") break } } if (b018) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 18 } // CAUTION: don't use below any common variables // being set up before this poin. if (b017) { m0f2(p000, BRK0, lc17) break } if (c017) { m0f2(p000, CNT0, lc17) continue } if (c017) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b017) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln17), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc17) Store(m0f5(p000, p001, lc17), Local0) if (LEqual(Local0, 0x07)) { Store(1, b017) m0f7("b017, completed") break } } if (b017) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 17 } // CAUTION: don't use below any common variables // being set up before this poin. if (b016) { m0f2(p000, BRK0, lc16) break } if (c016) { m0f2(p000, CNT0, lc16) continue } if (c016) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b016) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln16), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc16) Store(m0f5(p000, p001, lc16), Local0) if (LEqual(Local0, 0x07)) { Store(1, b016) m0f7("b016, completed") break } } if (b016) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 16 } // CAUTION: don't use below any common variables // being set up before this poin. if (b015) { m0f2(p000, BRK0, lc15) break } if (c015) { m0f2(p000, CNT0, lc15) continue } if (c015) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b015) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln15), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc15) Store(m0f5(p000, p001, lc15), Local0) if (LEqual(Local0, 0x07)) { Store(1, b015) m0f7("b015, completed") break } } if (b015) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 15 } // CAUTION: don't use below any common variables // being set up before this poin. if (b014) { m0f2(p000, BRK0, lc14) break } if (c014) { m0f2(p000, CNT0, lc14) continue } if (c014) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b014) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln14), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc14) Store(m0f5(p000, p001, lc14), Local0) if (LEqual(Local0, 0x07)) { Store(1, b014) m0f7("b014, completed") break } } if (b014) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 14 } // CAUTION: don't use below any common variables // being set up before this poin. if (b013) { m0f2(p000, BRK0, lc13) break } if (c013) { m0f2(p000, CNT0, lc13) continue } if (c013) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b013) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln13), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc13) Store(m0f5(p000, p001, lc13), Local0) if (LEqual(Local0, 0x07)) { Store(1, b013) m0f7("b013, completed") break } } if (b013) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 13 } // CAUTION: don't use below any common variables // being set up before this poin. if (b012) { m0f2(p000, BRK0, lc12) break } if (c012) { m0f2(p000, CNT0, lc12) continue } if (c012) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b012) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln12), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc12) Store(m0f5(p000, p001, lc12), Local0) if (LEqual(Local0, 0x07)) { Store(1, b012) m0f7("b012, completed") break } } if (b012) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 12 } // CAUTION: don't use below any common variables // being set up before this poin. if (b011) { m0f2(p000, BRK0, lc11) break } if (c011) { m0f2(p000, CNT0, lc11) continue } if (c011) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b011) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln11), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc11) Store(m0f5(p000, p001, lc11), Local0) if (LEqual(Local0, 0x07)) { Store(1, b011) m0f7("b011, completed") break } } if (b011) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 11 } // CAUTION: don't use below any common variables // being set up before this poin. if (b010) { m0f2(p000, BRK0, lc10) break } if (c010) { m0f2(p000, CNT0, lc10) continue } if (c010) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b010) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln10), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc10) Store(m0f5(p000, p001, lc10), Local0) if (LEqual(Local0, 0x07)) { Store(1, b010) m0f7("b010, completed") break } } if (b010) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 10 } // CAUTION: don't use below any common variables // being set up before this poin. if (b009) { m0f2(p000, BRK0, lc09) break } if (c009) { m0f2(p000, CNT0, lc09) continue } if (c009) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b009) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln09), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc09) Store(m0f5(p000, p001, lc09), Local0) if (LEqual(Local0, 0x07)) { Store(1, b009) m0f7("b009, completed") break } } if (b009) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 09 } // CAUTION: don't use below any common variables // being set up before this poin. if (b008) { m0f2(p000, BRK0, lc08) break } if (c008) { m0f2(p000, CNT0, lc08) continue } if (c008) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b008) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln08), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc08) Store(m0f5(p000, p001, lc08), Local0) if (LEqual(Local0, 0x07)) { Store(1, b008) m0f7("b008, completed") break } } if (b008) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 08 } // CAUTION: don't use below any common variables // being set up before this poin. if (b007) { m0f2(p000, BRK0, lc07) break } if (c007) { m0f2(p000, CNT0, lc07) continue } if (c007) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b007) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln07), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc07) Store(m0f5(p000, p001, lc07), Local0) if (LEqual(Local0, 0x07)) { Store(1, b007) m0f7("b007, completed") break } } if (b007) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 07 } // CAUTION: don't use below any common variables // being set up before this poin. if (b006) { m0f2(p000, BRK0, lc06) break } if (c006) { m0f2(p000, CNT0, lc06) continue } if (c006) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b006) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln06), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc06) Store(m0f5(p000, p001, lc06), Local0) if (LEqual(Local0, 0x07)) { Store(1, b006) m0f7("b006, completed") break } } if (b006) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 06 } // CAUTION: don't use below any common variables // being set up before this poin. if (b005) { m0f2(p000, BRK0, lc05) break } if (c005) { m0f2(p000, CNT0, lc05) continue } if (c005) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b005) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln05), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc05) Store(m0f5(p000, p001, lc05), Local0) if (LEqual(Local0, 0x07)) { Store(1, b005) m0f7("b005, completed") break } } if (b005) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 05 } // CAUTION: don't use below any common variables // being set up before this poin. if (b004) { m0f2(p000, BRK0, lc04) break } if (c004) { m0f2(p000, CNT0, lc04) continue } if (c004) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b004) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln04), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc04) Store(m0f5(p000, p001, lc04), Local0) if (LEqual(Local0, 0x07)) { Store(1, b004) m0f7("b004, completed") break } } if (b004) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 04 } // CAUTION: don't use below any common variables // being set up before this poin. if (b003) { m0f2(p000, BRK0, lc03) break } if (c003) { m0f2(p000, CNT0, lc03) continue } if (c003) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b003) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln03), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc03) Store(m0f5(p000, p001, lc03), Local0) if (LEqual(Local0, 0x07)) { Store(1, b003) m0f7("b003, completed") break } } if (b003) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 03 } // CAUTION: don't use below any common variables // being set up before this poin. if (b002) { m0f2(p000, BRK0, lc02) break } if (c002) { m0f2(p000, CNT0, lc02) continue } if (c002) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b002) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln02), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc02) Store(m0f5(p000, p001, lc02), Local0) if (LEqual(Local0, 0x07)) { Store(1, b002) m0f7("b002, completed") break } } if (b002) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 02 } // CAUTION: don't use below any common variables // being set up before this poin. if (c001) { m0f2(p000, CNT0, lc01) continue } if (b001) { m0f2(p000, BRK0, lc01) break } if (c001) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b001) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln01), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc01) Store(m0f5(p000, p001, lc01), Local0) if (LEqual(Local0, 0x07)) { Store(1, b001) m0f7("b001, completed") break } } if (b001) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 01 } // CAUTION: don't use below any common variables // being set up before this poin. if (c000) { m0f2(p000, CNT0, lc00) continue } if (c000) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } if (b000) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } Store(m0f5(p000, p001, ln00), Local0) if (LEqual(Local0, 0x07)) { m0f2(p000, CHL0, lc00) Store(m0f5(p000, p001, lc00), Local0) if (LEqual(Local0, 0x07)) { Store(1, b000) m0f7("b000, completed") break } } if (b000) { // We should not be there err(arg0, z074, __LINE__, 0, 0, 0, 0) } } ////////////////////////////////////////////////////////////// FINISH, 00 m0f8(arg0, p000, p001, tvl0) m0f6(p000) } // Run-method Method(WHL0,, Serialized) { Store("TEST: WHL0, While, Break, Continue operators", Debug) Name(ts, "WHL0") m0fa(ts, tvl0) return (0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/external/0000700000175000017500000000000014773714156026574 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/external/DECL.asl0000700000175000017500000000335114773714156030011 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/external/external.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/external/RUN.asl0000700000175000017500000000361014773714156027744 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("External", TCLF, 0x02, W002)) { SRMT ("EXT1") EXT1 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/external/external.asl0000700000175000017500000001017314773714156031124 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * External declarations */ Name (Z204, 0xCC) External (E000, UnknownObj) External (E001, IntObj) External (E002, StrObj) External (E003, BuffObj) External (E004, PkgObj) External (E005, FieldUnitObj) External (E006, DeviceObj) External (E007, EventObj) External (\E008, MethodObj) External (E009, MutexObj) External (E010, OpRegionObj) External (E011, PowerResObj) External (E012, ProcessorObj) External (E013, ThermalZoneObj) External (E014, BuffFieldObj) External (E015, DDBHandleObj) Name (NM01, 0x01) Name (NM02, "test string") Name (NM03, Buffer (0x01) { 0x00 // . }) Name (NM04, Package (0x00){}) Device (NM06) { } Event (NM07) Method (NM08, 0, NotSerialized) { Return (0x01F4) } Mutex (NM09, 0x00) OperationRegion (NM10, PCI_Config, Zero, 0xFF) Field (NM10, AnyAcc, NoLock, Preserve) { NM05, 8 } PowerResource (NM11, 0x00, 0x0000){} Processor (NM12, 0x00, 0x00000001, 0x02){} ThermalZone (NM13) { } CreateBitField (NM03, 0x00, NM14) /* * Check that arg2 and arg3 have the same type * arg0 - diagnostic message * arg1 - index of checking * arg2 - arg5 of err, "received value" * arg3 - arg6 of err, "expected value" */ Method (EXT0, 4, NotSerialized) { Local1 = ObjectType (Arg2) Local2 = ObjectType (Arg3) If ((Local1 != Local2)) { ERR (DerefOf (Arg0), Z204, __LINE__, Z204, Arg1, Local1, Local2) } } /* Run-method */ Method (EXT1, 0, Serialized) { Local1 = ObjectType (E000) If ((Local1 != 0x01)) { ERR (__METHOD__, Z204, __LINE__, 0x00, 0x00, Local1, 0x01) } EXT0 (__METHOD__, 0x01, E001, NM01) EXT0 (__METHOD__, 0x02, E002, NM02) EXT0 (__METHOD__, 0x03, E003, NM03) EXT0 (__METHOD__, 0x04, E004, NM04) EXT0 (__METHOD__, 0x05, E005, NM05) EXT0 (__METHOD__, 0x06, E006, NM06) EXT0 (__METHOD__, 0x07, E007, NM07) EXT0 (__METHOD__, 0x08, E008 (), NM08 ()) EXT0 (__METHOD__, 0x09, E009, NM09) EXT0 (__METHOD__, 0x0A, E010, NM10) EXT0 (__METHOD__, 0x0B, E011, NM11) EXT0 (__METHOD__, 0x0C, E012, NM12) EXT0 (__METHOD__, 0x0D, E013, NM13) EXT0 (__METHOD__, 0x0E, E014, NM14) Return (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/external/MAIN.asl0000700000175000017500000000665014773714156030033 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("external", "SSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/external/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/external/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } DefinitionBlock ("external", "SSDT", 2, "Intel", "Many", 0x00000001) { /* Name(EX00, UnknownObj) */ Name (E000, 0x00) Name (E001, 0x01) Name (E002, "test string") Name (E003, Buffer (0x01) { 0x00 // . }) Name (E004, Package (0x00){}) OperationRegion (E010, PCI_Config, Zero, 0xFF) Field (E010, AnyAcc, NoLock, Preserve) { E005, 8 } Device (E006) { } Event (E007) Method (E008, 0, NotSerialized) { Return (0x01F4) } Mutex (E009, 0x00) PowerResource (E011, 0x00, 0x0000){} Processor (E012, 0x00, 0x00000001, 0x02){} ThermalZone (E013) { } CreateBitField (E003, 0x00, E014) } /* * bz 1389 test case provided by racerrehabman@gmail.com * This table should compile without error */ DefinitionBlock ("external", "SSDT", 2, "Intel", "Many", 0x00000001) { External (RMCF.XPEE, IntObj) Device (RMCF) { Name (_ADR, 0x00) // _ADR: Address } } /* * This is a variation on the table above. This should compile. */ DefinitionBlock ("external", "SSDT", 2, "Intel", "Many", 0x00000001) { External (ABCD.XPEE, IntObj) External (ABCD.XPED, IntObj) Device (ABCD) { Name (_ADR, 0x00) // _ADR: Address Name (XPEF, 0x00) } External (ABCD.XPEG, IntObj) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/external/Makefile0000700000175000017500000000014114773714156030233 0ustar ivanhuivanhu# constant AMLMOD= external COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/bfield/0000700000175000017500000000000014773714155026176 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/bfield/DECL.asl0000700000175000017500000000335114773714155027413 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/bfield/crbuffield.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/bfield/RUN.asl0000700000175000017500000000356314773714155027355 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Buffer Fields", TCLF, 0x01, W001)) { CBF0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/bfield/crbuffield.asl0000700000175000017500000013405514773714155031017 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Create Buffer Field operators */ /* * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * Clean up method m218 after that when errors 65,66,68,69 * (in 32-bit mode) will be investigated and resolved * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * * Update needed: 1) add "Common features", see below ... * 2) tune parameters in m21d */ Name (Z001, 0x01) Name (BS00, 0x0100) /* Benchmark Buffers */ Name (B000, Buffer (BS00){}) Name (B0FF, Buffer (BS00) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0008 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0018 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0020 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0028 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0030 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0038 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0040 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0048 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0050 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0058 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0060 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0068 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0070 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0078 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0080 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0088 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0090 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 0098 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00A0 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00A8 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00B0 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00B8 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00C0 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00C8 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00D0 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00D8 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00E0 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00E8 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00F0 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ........ /* 00F8 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ........ }) Name (B256, Buffer (BS00) { /* 0000 */ 0x00, 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0008 */ 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, // ........ /* 0010 */ 0x00, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, // ........ /* 0018 */ 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, // ........ /* 0020 */ 0x10, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, // .!"#$%&' /* 0028 */ 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, // ()*+,-./ /* 0030 */ 0x20, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, // 1234567 /* 0038 */ 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, // 89:;<=>? /* 0040 */ 0x30, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, // 0ABCDEFG /* 0048 */ 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, // HIJKLMNO /* 0050 */ 0x40, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, // @QRSTUVW /* 0058 */ 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, // XYZ[\]^_ /* 0060 */ 0x50, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, // Pabcdefg /* 0068 */ 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, // hijklmno /* 0070 */ 0x60, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, // `qrstuvw /* 0078 */ 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, // xyz{|}~. /* 0080 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, // ........ /* 0088 */ 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, // ........ /* 0090 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, // ........ /* 0098 */ 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, // ........ /* 00A0 */ 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, // ........ /* 00A8 */ 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, // ........ /* 00B0 */ 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, // ........ /* 00B8 */ 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, // ........ /* 00C0 */ 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, // ........ /* 00C8 */ 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, // ........ /* 00D0 */ 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, // ........ /* 00D8 */ 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, // ........ /* 00E0 */ 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, // ........ /* 00E8 */ 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, // ........ /* 00F0 */ 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, // ........ /* 00F8 */ 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF // ........ }) /* Generated benchmark buffers for comparison with */ Name (B010, Buffer (BS00){}) Name (B101, Buffer (BS00){}) Name (B0B0, Buffer (BS00){}) /* Buffer for filling the ground */ Name (B0G0, Buffer (BS00){}) /* Buffer for filling the field (over the ground) */ Name (B0F0, Buffer (BS00){}) /* CreateBitField */ /* */ /* , */ /* , */ /* , */ /* , */ /* , */ /* , */ /* */ Method (M210, 7, Serialized) { Name (PR00, 0x00) If (PR00) { Debug = "========:" } Name (B001, Buffer (Arg6){}) Name (B002, Buffer (Arg6){}) CreateBitField (B001, Arg1, F001) /*////////////// A. 1->0 (010->000) */ B001 = Arg4 If (PR00) { Debug = B001 /* \M210.B001 */ } F001 = 0xFFFFFFFFFFFFFFFE Local0 = F001 /* \M210.F001 */ If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } B002 = Arg2 If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M210.B001 */ } /*////////////// B. 1->0 (111->101) */ B001 = Arg3 If (PR00) { Debug = B001 /* \M210.B001 */ } F001 = 0x00 Local0 = F001 /* \M210.F001 */ If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } B002 = Arg5 If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M210.B001 */ } /*////////////// C. 0->1 (101->111) */ B001 = Arg5 If (PR00) { Debug = B001 /* \M210.B001 */ } F001 = 0x01 Local0 = F001 /* \M210.F001 */ If ((Local0 != 0x01)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x01) } B002 = Arg3 If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M210.B001 */ } /*////////////// D. 0->1 (000->010) */ B001 = Arg2 If (PR00) { Debug = B001 /* \M210.B001 */ } F001 = 0xFFFFFFFFFFFFFFFF Local0 = F001 /* \M210.F001 */ If ((Local0 != 0x01)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x01) } B002 = Arg4 If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M210.B001 */ } /* Common features */ Local0 = SizeOf (B001) If ((Local0 != Arg6)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg6) } Local0 = SizeOf (B002) If ((Local0 != Arg6)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg6) } Local0 = ObjectType (F001) If ((Local0 != C016)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, C016) } If (PR00) { Debug = Local0 } } Method (M211, 0, Serialized) { Debug = "TEST: m211, Create 1-Bit Buffer Field:" /* Size of buffer (in bytes) */ Name (BSZ0, 0x00) BSZ0 = BS00 /* \BS00 */ /* Max steps to check */ Name (BSZ1, 0x00) /* How many elements to check */ Name (N000, 0x00) Name (NCUR, 0x00) N000 = (BSZ0 * 0x08) BSZ1 = N000 /* \M211.N000 */ While (N000) { If ((NCUR >= BSZ1)) { ERR (__METHOD__, Z001, __LINE__, 0x00, 0x00, NCUR, BSZ1) Break } B010 = B000 /* \B000 */ B101 = B0FF /* \B0FF */ Divide (NCUR, 0x08, Local1, Local0) Local2 = (0x01 << Local1) B010 [Local0] = Local2 Local3 = ~Local2 B101 [Local0] = Local3 M210 (__METHOD__, NCUR, B000, B0FF, B010, B101, BSZ0) N000-- NCUR++ } } /* CreateByteField */ /* */ /* , */ /* , */ /* */ Method (M212, 3, Serialized) { Name (PR00, 0x00) If (PR00) { Debug = "========:" } Name (B001, Buffer (Arg2){}) Name (B002, Buffer (Arg2){}) /*////////////// A. 1->0 (010->000) */ CreateByteField (B001, Arg1, F001) B001 = B010 /* \B010 */ If (PR00) { Debug = B001 /* \M212.B001 */ } F001 = 0xFFFFFFFFFFFFFF00 Local0 = F001 /* \M212.F001 */ If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } B002 = B000 /* \B000 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M212.B001 */ } /*////////////// B. 1->0 (111->101) */ B001 = B0FF /* \B0FF */ If (PR00) { Debug = B001 /* \M212.B001 */ } F001 = 0x00 Local0 = F001 /* \M212.F001 */ If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } B002 = B101 /* \B101 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M212.B001 */ } /*////////////// C. 0->1 (101->111) */ B001 = B101 /* \B101 */ If (PR00) { Debug = B001 /* \M212.B001 */ } F001 = 0xFF Local0 = F001 /* \M212.F001 */ If ((Local0 != 0xFF)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0xFF) } B002 = B0FF /* \B0FF */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M212.B001 */ } /*////////////// D. 0->1 (000->010) */ B001 = B000 /* \B000 */ If (PR00) { Debug = B001 /* \M212.B001 */ } F001 = 0xFFFFFFFFFFFFFFFF Local0 = F001 /* \M212.F001 */ If ((Local0 != 0xFF)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0xFF) } B002 = B010 /* \B010 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M212.B001 */ } /*////////////// E. 0->1 (000->010) */ B001 = B000 /* \B000 */ If (PR00) { Debug = B001 /* \M212.B001 */ } F001 = 0xFFFFFFFFFFFFFF96 Local0 = F001 /* \M212.F001 */ If ((Local0 != 0x96)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x96) } B002 = B0B0 /* \B0B0 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M212.B001 */ } /* Common features */ Local0 = SizeOf (B001) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (B002) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = ObjectType (F001) If ((Local0 != C016)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, C016) } If (PR00) { Debug = Local0 } } Method (M213, 0, Serialized) { Debug = "TEST: m213, Create 8-Bit Buffer Field:" /* Size of buffer (in bytes) */ Name (BSZ0, 0x00) BSZ0 = BS00 /* \BS00 */ /* Max steps to check */ Name (BSZ1, 0x00) /* How many elements to check */ Name (N000, 0x00) Name (NCUR, 0x00) N000 = BSZ0 /* \M213.BSZ0 */ BSZ1 = N000 /* \M213.N000 */ While (N000) { If ((NCUR >= BSZ1)) { ERR (__METHOD__, Z001, __LINE__, 0x00, 0x00, NCUR, BSZ1) Break } B010 = B000 /* \B000 */ B0B0 = B000 /* \B000 */ B101 = B0FF /* \B0FF */ B010 [NCUR] = 0xFF B0B0 [NCUR] = 0x96 B101 [NCUR] = 0x00 M212 (__METHOD__, NCUR, BSZ0) N000-- NCUR++ } } /* CreateWordField */ /* */ /* , */ /* , */ /* */ Method (M214, 3, Serialized) { Name (PR00, 0x00) If (PR00) { Debug = "========:" Debug = Arg1 Debug = Arg2 } Name (B001, Buffer (Arg2){}) Name (B002, Buffer (Arg2){}) CreateWordField (B001, Arg1, F001) /*////////////// A. 1->0 (010->000) */ B001 = B010 /* \B010 */ If (PR00) { Debug = B001 /* \M214.B001 */ } F001 = 0xFFFFFFFFFFFF0000 Local0 = F001 /* \M214.F001 */ If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } B002 = B000 /* \B000 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M214.B001 */ } /*////////////// B. 1->0 (111->101) */ B001 = B0FF /* \B0FF */ If (PR00) { Debug = B001 /* \M214.B001 */ } F001 = 0x00 Local0 = F001 /* \M214.F001 */ If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } B002 = B101 /* \B101 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M214.B001 */ } /*////////////// C. 0->1 (101->111) */ B001 = B101 /* \B101 */ If (PR00) { Debug = B001 /* \M214.B001 */ } F001 = 0xFFFF Local0 = F001 /* \M214.F001 */ If ((Local0 != 0xFFFF)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0xFFFF) } B002 = B0FF /* \B0FF */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M214.B001 */ } /*////////////// D. 0->1 (000->010) */ B001 = B000 /* \B000 */ If (PR00) { Debug = B001 /* \M214.B001 */ } F001 = 0xFFFFFFFFFFFFFFFF Local0 = F001 /* \M214.F001 */ If ((Local0 != 0xFFFF)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0xFFFF) } B002 = B010 /* \B010 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M214.B001 */ } Local0 = SizeOf (B001) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (B002) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } /*////////////// E. 0->1 (000->010) */ B001 = B000 /* \B000 */ If (PR00) { Debug = B001 /* \M214.B001 */ } F001 = 0xFFFFFFFFFFFF7698 Local0 = F001 /* \M214.F001 */ If ((Local0 != 0x7698)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x7698) } B002 = B0B0 /* \B0B0 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M214.B001 */ } /* Common features */ Local0 = SizeOf (B001) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (B002) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = ObjectType (F001) If ((Local0 != C016)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, C016) } If (PR00) { Debug = Local0 } } Method (M215, 0, Serialized) { Debug = "TEST: m215, Create 16-Bit Buffer Field:" /* Size of buffer (in bytes) */ Name (BSZ0, 0x00) BSZ0 = BS00 /* \BS00 */ /* Max steps to check */ Name (BSZ1, 0x00) /* How many elements to check */ Name (N000, 0x00) Name (NCUR, 0x00) N000 = (BSZ0 - 0x01) BSZ1 = N000 /* \M215.N000 */ While (N000) { If ((NCUR >= BSZ1)) { ERR (__METHOD__, Z001, __LINE__, 0x00, 0x00, NCUR, BSZ1) Break } B010 = B000 /* \B000 */ B0B0 = B000 /* \B000 */ B101 = B0FF /* \B0FF */ Local0 = NCUR /* \M215.NCUR */ B010 [Local0] = 0xFF B0B0 [Local0] = 0x98 B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0x76 B101 [Local0] = 0x00 M214 (__METHOD__, NCUR, BSZ0) N000-- NCUR++ } } /* CreateDWordField */ /* */ /* , */ /* , */ /* */ Method (M216, 3, Serialized) { Name (PR00, 0x00) If (PR00) { Debug = "========:" Debug = Arg1 Debug = Arg2 } Name (B001, Buffer (Arg2){}) Name (B002, Buffer (Arg2){}) CreateDWordField (B001, Arg1, F001) /*////////////// A. 1->0 (010->000) */ B001 = B010 /* \B010 */ If (PR00) { Debug = B001 /* \M216.B001 */ } F001 = 0xFFFFFFFF00000000 Local0 = F001 /* \M216.F001 */ If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } B002 = B000 /* \B000 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M216.B001 */ } /*////////////// B. 1->0 (111->101) */ B001 = B0FF /* \B0FF */ If (PR00) { Debug = B001 /* \M216.B001 */ } F001 = 0x00 Local0 = F001 /* \M216.F001 */ If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } B002 = B101 /* \B101 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M216.B001 */ } /*////////////// C. 0->1 (101->111) */ B001 = B101 /* \B101 */ If (PR00) { Debug = B001 /* \M216.B001 */ } F001 = 0xFFFFFFFF Local0 = F001 /* \M216.F001 */ If ((Local0 != 0xFFFFFFFF)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } B002 = B0FF /* \B0FF */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M216.B001 */ } /*////////////// D. 0->1 (000->010) */ B001 = B000 /* \B000 */ If (PR00) { Debug = B001 /* \M216.B001 */ } F001 = 0xFFFFFFFFFFFFFFFF Local0 = F001 /* \M216.F001 */ If ((Local0 != 0xFFFFFFFF)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFF) } B002 = B010 /* \B010 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M216.B001 */ } Local0 = SizeOf (B001) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (B002) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } /*////////////// E. 0->1 (000->010) */ B001 = B000 /* \B000 */ If (PR00) { Debug = B001 /* \M216.B001 */ } F001 = 0xFFFFFFFF32547698 Local0 = F001 /* \M216.F001 */ If ((Local0 != 0x32547698)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x32547698) } B002 = B0B0 /* \B0B0 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = B001 /* \M216.B001 */ } /* Common features */ Local0 = SizeOf (B001) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (B002) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = ObjectType (F001) If ((Local0 != C016)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, C016) } If (PR00) { Debug = Local0 } } Method (M217, 0, Serialized) { Debug = "TEST: m217, Create 32-Bit Buffer Field:" /* Size of buffer (in bytes) */ Name (BSZ0, 0x00) BSZ0 = BS00 /* \BS00 */ /* Max steps to check */ Name (BSZ1, 0x00) /* How many elements to check */ Name (N000, 0x00) Name (NCUR, 0x00) N000 = (BSZ0 - 0x03) BSZ1 = N000 /* \M217.N000 */ While (N000) { If ((NCUR >= BSZ1)) { ERR (__METHOD__, Z001, __LINE__, 0x00, 0x00, NCUR, BSZ1) Break } B010 = B000 /* \B000 */ B0B0 = B000 /* \B000 */ B101 = B0FF /* \B0FF */ Local0 = NCUR /* \M217.NCUR */ B010 [Local0] = 0xFF B0B0 [Local0] = 0x98 B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0x76 B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0x54 B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0x32 B101 [Local0] = 0x00 M216 (__METHOD__, NCUR, BSZ0) N000-- NCUR++ } } /* CreateQWordField */ /* */ /* , */ /* , */ /* */ Method (M218, 3, Serialized) { Name (PR00, 0x00) Name (ERR0, 0x00) ERR0 = ERRS /* \ERRS */ Name (BB00, Buffer (0x08){}) /* Name(bb01, Buffer(8) {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}) */ Name (BB01, Buffer (0x08) { 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00 // ........ }) /* Name(bb02, Buffer(8) {0x98,0x76,0x54,0x32,0x10,0xAB,0xCD,0xEF}) */ Name (BB02, Buffer (0x08) { 0x98, 0x76, 0x54, 0x32, 0x00, 0x00, 0x00, 0x00 // .vT2.... }) If (PR00) { Debug = "========:" Debug = Arg1 Debug = Arg2 } Name (B001, Buffer (Arg2){}) Name (B002, Buffer (Arg2){}) CreateQWordField (B001, Arg1, F001) /* * Create Field to the part of b002 which is set to * zero by storing Integer into f001 in 32-bit mode. */ CreateDWordField (B002, (Arg1 + 0x04), F321) /*////////////// A. 1->0 (010->000) */ B001 = B010 /* \B010 */ If (PR00) { Debug = "======== 1:" Debug = B001 /* \M218.B001 */ } F001 = 0x00 Local0 = F001 /* \M218.F001 */ If ((F64 == 0x01)) { If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } } ElseIf ((Local0 != BB00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } B002 = B000 /* \B000 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = "======== 2:" Debug = B001 /* \M218.B001 */ } /*////////////// B. 1->0 (111->101) */ B001 = B0FF /* \B0FF */ If (PR00) { Debug = "======== 3:" Debug = B001 /* \M218.B001 */ } F001 = 0x00 Local0 = F001 /* \M218.F001 */ If ((F64 == 0x01)) { If ((Local0 != 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0x00) } } ElseIf ((Local0 != BB00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } B002 = B101 /* \B101 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = "======== 4:" Debug = B001 /* \M218.B001 */ } /*////////////// C. 0->1 (101->111) */ B001 = B101 /* \B101 */ If (PR00) { Debug = "======== 5:" Debug = B001 /* \M218.B001 */ } F001 = 0xFFFFFFFFFFFFFFFF /* Store(bb01, f001) */ Local0 = F001 /* \M218.F001 */ If ((F64 == 0x01)) { If ((Local0 != 0xFFFFFFFFFFFFFFFF)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) } } ElseIf ((Local0 != BB01)) { If (PR00) { Debug = "=========================:" Debug = Local0 Debug = BB01 /* \M218.BB01 */ Debug = "=========================." } ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } B002 = B0FF /* \B0FF */ If ((F64 == 0x00)) { /* 32-bit mode update of b002 */ F321 = 0x00 } If ((B001 != B002)) { If (PR00) { Debug = "=========================:" Debug = B001 /* \M218.B001 */ Debug = B002 /* \M218.B002 */ Debug = "=========================." } ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = "======== 6:" Debug = B001 /* \M218.B001 */ } /*////////////// D. 0->1 (000->010) */ B001 = B000 /* \B000 */ If (PR00) { Debug = "======== 7:" Debug = F001 /* \M218.F001 */ Debug = B001 /* \M218.B001 */ Debug = BB01 /* \M218.BB01 */ } F001 = 0xFFFFFFFFFFFFFFFF /* Store(bb01, f001) */ /* Store(0xefcdab1032547698, f001) */ /* Store(0x8888888888888888, f001) */ /* Store(0x7777777777777777, f001) */ /* Store(0x0f0f0f0f0f0f0f0f, f001) */ /* Store(0xf0f0f0f0f0f0f0f0, f001) */ /* Store(0x7fffffffffffffff, f001) */ If (PR00) { Debug = "======== 8:" Debug = Local0 Debug = F001 /* \M218.F001 */ Debug = B001 /* \M218.B001 */ Debug = BB01 /* \M218.BB01 */ } Local0 = F001 /* \M218.F001 */ If ((F64 == 0x01)) { If ((Local0 != 0xFFFFFFFFFFFFFFFF)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) } } ElseIf ((Local0 != BB01)) { If (PR00) { Debug = "=========================:" Debug = Local0 Debug = BB01 /* \M218.BB01 */ Debug = "=========================." } ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } B002 = B010 /* \B010 */ If ((F64 == 0x00)) { /* 32-bit mode update of b002 */ F321 = 0x00 } If ((B001 != B002)) { If (PR00) { Debug = "=========================:" Debug = B001 /* \M218.B001 */ Debug = B002 /* \M218.B002 */ Debug = "=========================." } ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = "======== 9:" Debug = B001 /* \M218.B001 */ } Local0 = SizeOf (B001) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (B002) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } /*////////////// E. 0->1 (000->010) */ B001 = B000 /* \B000 */ If (PR00) { Debug = "======== 10:" Debug = F001 /* \M218.F001 */ Debug = B001 /* \M218.B001 */ Debug = BB02 /* \M218.BB02 */ } F001 = 0xEFCDAB1032547698 /* Store(0xffffffffffffffff, f001) */ Local0 = F001 /* \M218.F001 */ If (PR00) { Debug = "======== 11:" Debug = Local0 Debug = F001 /* \M218.F001 */ Debug = B001 /* \M218.B001 */ Debug = BB02 /* \M218.BB02 */ } If ((F64 == 0x01)) { If ((Local0 != 0xEFCDAB1032547698)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, 0xEFCDAB1032547698) } } ElseIf ((Local0 != BB02)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } B002 = B0B0 /* \B0B0 */ If ((F64 == 0x00)) { /* 32-bit mode update of b002 */ F321 = 0x00 } If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } If (PR00) { Debug = "======== 12:" Debug = B001 /* \M218.B001 */ Debug = B002 /* \M218.B002 */ } /* Common features */ Local0 = SizeOf (B001) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (B002) If ((Local0 != Arg2)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = ObjectType (F001) If ((Local0 != C016)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, C016) } If (PR00) { Debug = "======== 13:" Debug = Local0 } If ((ERRS != ERR0)) { Local0 = 0x01 } Else { Local0 = 0x00 } Return (Local0) } Method (M219, 0, Serialized) { Debug = "TEST: m219, Create 64-Bit Buffer Field:" /* Size of buffer (in bytes) */ Name (BSZ0, 0x00) BSZ0 = BS00 /* \BS00 */ /* Max steps to check */ Name (BSZ1, 0x00) /* How many elements to check */ Name (N000, 0x00) Name (NCUR, 0x00) N000 = (BSZ0 - 0x07) BSZ1 = N000 /* \M219.N000 */ While (N000) { If ((NCUR >= BSZ1)) { ERR (__METHOD__, Z001, __LINE__, 0x00, 0x00, NCUR, BSZ1) Break } B010 = B000 /* \B000 */ B0B0 = B000 /* \B000 */ B101 = B0FF /* \B0FF */ Local0 = NCUR /* \M219.NCUR */ B010 [Local0] = 0xFF B0B0 [Local0] = 0x98 B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0x76 B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0x54 B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0x32 B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0x10 B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0xAB B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0xCD B101 [Local0] = 0x00 Local0++ B010 [Local0] = 0xFF B0B0 [Local0] = 0xEF B101 [Local0] = 0x00 If (M218 (__METHOD__, NCUR, BSZ0)) { Return (0x01) } N000-- NCUR++ } Return (0x00) } /* CreateField */ /* */ /* , */ /* , */ /* , */ /* , */ /* */ /* */ Method (M21A, 6, Serialized) { Name (PR00, 0x00) If (PR00) { Debug = "========:" Debug = Arg2 Debug = Arg3 } Name (B001, Buffer (Arg4){}) Name (B002, Buffer (Arg4){}) /* Flag of Integer */ Name (INT1, 0x00) CreateField (B001, Arg2, Arg3, F001) /* Check Type */ Local0 = ObjectType (F001) If ((Local0 != C016)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, Local0, C016) } /* Fill the entire buffer (ground) */ B001 = B0G0 /* \B0G0 */ If (PR00) { Debug = B001 /* \M21A.B001 */ } /* Fill into the field of buffer */ F001 = B0F0 /* \B0F0 */ Local0 = F001 /* \M21A.F001 */ /* Crash for 20041105 [Nov 5 2004] */ /* Store("!!!!!!!!!!!! test is crashing */ /* here when attempting access pr00:", Debug) */ If (PR00) { Debug = "============ 0:" Debug = B0G0 /* \B0G0 */ Debug = B0F0 /* \B0F0 */ Debug = B0B0 /* \B0B0 */ Debug = Local0 Debug = B001 /* \M21A.B001 */ Debug = "============." } /* Check the contents of field */ If (Local0 != Arg5) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) } /* Check the contents of Buffer */ B002 = B0B0 /* \B0B0 */ If ((B001 != B002)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) If (PR00) { Debug = "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE:" Debug = B0G0 /* \B0G0 */ Debug = B0F0 /* \B0F0 */ Debug = B0B0 /* \B0B0 */ Debug = B001 /* \M21A.B001 */ Debug = "RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR." } } /* Common features */ /* Add "Common features" here too. */ Return (Zero) } /* , */ /* , */ /* , */ /* , */ /* */ /* */ Method (M21B, 6, Serialized) { Name (PR00, 0x00) Name (INT2, 0x00) /* For loop 1 */ Name (LPN1, 0x00) Name (LPC1, 0x00) /* For loop 2 */ Name (LPN2, 0x00) Name (LPC2, 0x00) /* */ Name (BSZ0, 0x00) BSZ0 = BS00 /* \BS00 */ /* byte size of field */ Name (BSF0, 0x00) /* byte size of buffer affected by field */ Name (BSB0, 0x00) /* index of the first byte of field in the buffer */ Name (FB00, 0x00) /* index of the last byte of field in the buffer */ Name (LB00, 0x00) /* Num of bits have to be non-zero */ If ((Arg3 == 0x00)) { ERR (Arg0, Z001, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (Ones) } BSB0 = MBS0 (Arg2, Arg3) /* ========================================= */ /* Prepare the buffer for filling the ground */ /* ========================================= */ Switch (ToInteger (Arg4)) { Case (0x00) { B0G0 = B000 /* \B000 */ } Case (0x01) { B0G0 = B0FF /* \B0FF */ } Default { B0G0 = B256 /* \B256 */ } } /* ========================================================== */ /* Prepare the buffer for filling the field (over the ground) */ /* ========================================================== */ Switch (ToInteger (Arg5)) { Case (0x00) { B0F0 = B000 /* \B000 */ } Case (0x01) { B0F0 = B0FF /* \B0FF */ } Default { B0F0 = B256 /* \B256 */ } } /* ====================================================== */ /* Prepare the benchmark buffer for Field COMPARISON with */ /* Result in Local6 */ /* ====================================================== */ /* lpN1 - number of bytes minus one */ Local0 = Arg3 Local0-- Divide (Local0, 0x08, Local7, LPN1) /* \M21B.LPN1 */ Divide (Arg3, 0x08, Local7, Local0) BSF0 = LPN1 /* \M21B.LPN1 */ BSF0++ Local6 = Buffer (BSF0){} Local0 = DerefOf (B0F0 [LPN1]) If (Local7) { Local1 = (0x08 - Local7) Local2 = (Local0 << Local1) Local3 = (Local2 & 0xFF) Local0 = (Local3 >> Local1) } Local6 [LPN1] = Local0 LPC1 = 0x00 While (LPN1) { Local0 = DerefOf (B0F0 [LPC1]) Local6 [LPC1] = Local0 LPN1-- LPC1++ } /* ================================================ */ /* Prepare the benchmark buffer for comparison with */ /* ================================================ */ B0B0 = B0G0 /* \B0G0 */ Divide (Arg2, 0x08, Local1, FB00) /* \M21B.FB00 */ Local2 = DerefOf (B0B0 [FB00]) LB00 = BSB0 /* \M21B.BSB0 */ LB00-- Local3 = DerefOf (B0B0 [LB00]) Local0 = SFT1 (Local6, Local1, Arg3, Local2, Local3) Local2 = FB00 /* \M21B.FB00 */ LPN2 = SizeOf (Local0) LPC2 = 0x00 While (LPN2) { Local1 = DerefOf (Local0 [LPC2]) B0B0 [Local2] = Local1 Local2++ LPN2-- LPC2++ } M21A (Arg0, Arg1, Arg2, Arg3, BSZ0, Local6) Return (Zero) } Method (M21C, 4, Serialized) { /* For loop 0 */ Name (LPN0, 0x00) Name (LPC0, 0x00) /* For loop 1 */ Name (LPN1, 0x00) Name (LPC1, 0x00) /* For loop 2 */ Name (LPN2, 0x00) Name (LPC2, 0x00) /* Index of bit */ Name (IB00, 0x00) /* Number of bits */ Name (NB00, 0x00) LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { /* Operands */ Local6 = (LPC0 * 0x06) IB00 = DerefOf (Arg3 [Local6]) Local6++ LPN1 = DerefOf (Arg3 [Local6]) Local6++ Local0 = DerefOf (Arg3 [Local6]) Local6++ Local1 = DerefOf (Arg3 [Local6]) Local6++ Local2 = DerefOf (Arg3 [Local6]) Local6++ Local3 = DerefOf (Arg3 [Local6]) LPC1 = 0x00 While (LPN1) { NB00 = Local0 LPN2 = Local1 LPC2 = 0x00 While (LPN2) { M21B (Arg0, Arg2, IB00, NB00, Local2, Local3) NB00++ LPN2-- LPC2++ } IB00++ LPN1-- LPC1++ } LPC0++ LPN0-- } } Method (M21D, 0, Serialized) { Debug = "TEST: m21d, Create Arbitrary Length Buffer Field:" /* Layout of Package: */ /* - , */ /* - , */ /* - , */ /* - , */ /* - opcode of buffer to fill the ground */ /* - opcode of buffer to fill the field */ /* Opcodes of buffers: */ /* 0 - all zeros */ /* 1 - all units */ /* 2 - some mix */ Name (P000, Package (0x06) { 0x00, 0x08, 0x01, 0x50, 0x01, 0x02 /* try for 32-bit, 64-bit: */ /* 1, 1, 0x28, 1, 1, 2, */ /* 1, 1, 0x48, 1, 1, 2, */ /* try for 32-bit, 64-bit: */ /* 4, 1, 0x200, 1, 1, 2, */ /* 6, 1, 0x69, 1, 1, 2, */ /* examines the whole range possible for the size */ /* of the unerlying 256-byte Buffer: */ /* 0, 17, 1, 2032, 1, 2, */ /* 0, 1, 1, 1, 1, 2, */ /* 0, 10, 1, 30, 1, 2, */ /* 1, 1, 1, 90, 1, 2, */ /* 1, 1, 40, 1, 1, 2, */ /* 1, 1, 1, 39, 1, 2, */ /* 1, 1, 1, 40, 1, 2, */ /* 1, 1, 40, 1, 0, 2, */ /* 0, 1, 1, 65, 0, 1, */ }) M21C (__METHOD__, 0x01, "p000", P000) } /* Run-method */ Method (CBF0, 0, NotSerialized) { SRMT ("m211") M211 () SRMT ("m213") M213 () SRMT ("m215") M215 () SRMT ("m217") M217 () SRMT ("m219") M219 () SRMT ("m21d") M21D () } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/bfield/MAIN.asl0000700000175000017500000000406714773714155027435 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("bfield", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/bfield/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/bfield/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/bfield/Makefile0000700000175000017500000000013514773714155027640 0ustar ivanhuivanhu# bfield AMLMOD= bfield COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/0000700000175000017500000000000014773714156027130 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/dma.asl0000700000175000017500000002335114773714156030401 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * DMA Resource Descriptor Macro */ Name (P404, Package (0x1B) { ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8, ) {0} }, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8_16, ) {1} }, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer16, ) {2} }, ResourceTemplate () { DMA (Compatibility, BusMaster, Transfer8, ) {3} }, ResourceTemplate () { DMA (Compatibility, BusMaster, Transfer8_16, ) {4} }, ResourceTemplate () { DMA (Compatibility, BusMaster, Transfer16, ) {5} }, ResourceTemplate () { DMA (TypeA, NotBusMaster, Transfer8, ) {6} }, ResourceTemplate () { DMA (TypeA, NotBusMaster, Transfer8_16, ) {7} }, ResourceTemplate () { DMA (TypeA, NotBusMaster, Transfer16, ) {0} }, ResourceTemplate () { DMA (TypeA, BusMaster, Transfer8, ) {1} }, ResourceTemplate () { DMA (TypeA, BusMaster, Transfer8_16, ) {2} }, ResourceTemplate () { DMA (TypeA, BusMaster, Transfer16, ) {3} }, ResourceTemplate () { DMA (TypeB, NotBusMaster, Transfer8, ) {4} }, ResourceTemplate () { DMA (TypeB, NotBusMaster, Transfer8_16, ) {5} }, ResourceTemplate () { DMA (TypeB, NotBusMaster, Transfer16, ) {6} }, ResourceTemplate () { DMA (TypeB, BusMaster, Transfer8, ) {7} }, ResourceTemplate () { DMA (TypeB, BusMaster, Transfer8_16, ) {0} }, ResourceTemplate () { DMA (TypeB, BusMaster, Transfer16, ) {1} }, ResourceTemplate () { DMA (TypeF, NotBusMaster, Transfer8, ) {2} }, ResourceTemplate () { DMA (TypeF, NotBusMaster, Transfer8_16, ) {3} }, ResourceTemplate () { DMA (TypeF, NotBusMaster, Transfer16, ) {4} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer8, ) {5} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer8_16, ) {6} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer16, ) {7} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer16, ) {} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer16, ) {0,1,2,3,4,5,6,7} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer8, ) {5} } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.2.2 DMA Descriptor DMA Descriptor layout: Byte 0 (Tag Bits): Value = 00101010B (0x2a) (Type = 0, small item name = 0x5, length = 2) Byte 1 (DMA channel mask bits[7:0]): DMA0 <=> bit[0] Byte 2 (DMA Information): Bits[6:5] DMA channel speed supported, _TYP 00 Indicates compatibility mode 01 Indicates Type A DMA as described in the EISA 10 Indicates Type B DMA 11 Indicates Type F Bit[2] Logical device bus master status, _BM 0 Logical device is not a bus master 1 Logical device is a bus master Bits[1:0] DMA transfer type preference, _SIZ 00 8-bit only 01 8- and 16-bit 10 16-bit only 11 Reserved */ Name (P405, Package (0x1B) { ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8, ) {0} }, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8_16, ) {1} }, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer16, ) {2} }, ResourceTemplate () { DMA (Compatibility, BusMaster, Transfer8, ) {3} }, ResourceTemplate () { DMA (Compatibility, BusMaster, Transfer8_16, ) {4} }, ResourceTemplate () { DMA (Compatibility, BusMaster, Transfer16, ) {5} }, ResourceTemplate () { DMA (TypeA, NotBusMaster, Transfer8, ) {6} }, ResourceTemplate () { DMA (TypeA, NotBusMaster, Transfer8_16, ) {7} }, ResourceTemplate () { DMA (TypeA, NotBusMaster, Transfer16, ) {0} }, ResourceTemplate () { DMA (TypeA, BusMaster, Transfer8, ) {1} }, ResourceTemplate () { DMA (TypeA, BusMaster, Transfer8_16, ) {2} }, ResourceTemplate () { DMA (TypeA, BusMaster, Transfer16, ) {3} }, ResourceTemplate () { DMA (TypeB, NotBusMaster, Transfer8, ) {4} }, ResourceTemplate () { DMA (TypeB, NotBusMaster, Transfer8_16, ) {5} }, ResourceTemplate () { DMA (TypeB, NotBusMaster, Transfer16, ) {6} }, ResourceTemplate () { DMA (TypeB, BusMaster, Transfer8, ) {7} }, ResourceTemplate () { DMA (TypeB, BusMaster, Transfer8_16, ) {0} }, ResourceTemplate () { DMA (TypeB, BusMaster, Transfer16, ) {1} }, ResourceTemplate () { DMA (TypeF, NotBusMaster, Transfer8, ) {2} }, ResourceTemplate () { DMA (TypeF, NotBusMaster, Transfer8_16, ) {3} }, ResourceTemplate () { DMA (TypeF, NotBusMaster, Transfer16, ) {4} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer8, ) {5} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer8_16, ) {6} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer16, ) {7} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer16, ) {} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer16, ) {0,1,2,3,4,5,6,7} }, ResourceTemplate () { DMA (TypeF, BusMaster, Transfer8, ) {5} } }) Method (RT03, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "DMA Resource Descriptor Macro", "dma.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x1B, "p404", P404, P405) Local0 = ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8, ) {} DMA (Compatibility, NotBusMaster, Transfer8, ) {} } M331 (__METHOD__, 0x01, 0x15, 0x15, 0x2D, 0x2D, "_TYP") M331 (__METHOD__, 0x02, 0x12, 0x12, 0x2A, 0x2A, "_BM") M331 (__METHOD__, 0x03, 0x10, 0x10, 0x28, 0x28, "_SIZ") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/pingroupfunction.asl0000700000175000017500000001500614773714156033247 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * PinGroupFunction Resource Descriptor Macro */ Name (P462, Package (0x07) { ResourceTemplate () { PinGroupFunction (Exclusive, 0x1000, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupFunction (Exclusive, 0x1234, "\\_SB.GPO1", 0x00, "group1", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupFunction (Shared, 0x1000, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupFunction (Shared, 0x1234, "\\_SB.GPO1", 0x00, "group1", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupFunction (Shared, 0x1000, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, ,) }, ResourceTemplate () { PinGroupFunction (Shared, 0x1234, "\\_SB.GPO1", 0x00, "group1", ResourceConsumer, ,) }, ResourceTemplate () { PinGroupFunction (Exclusive, 0x1234, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, ,) } }) Name (P463, Package (0x07) { ResourceTemplate () { PinGroupFunction (Exclusive, 0x1000, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupFunction (Exclusive, 0x1234, "\\_SB.GPO1", 0x00, "group1", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupFunction (Shared, 0x1000, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupFunction (Shared, 0x1234, "\\_SB.GPO1", 0x00, "group1", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupFunction (Shared, 0x1000, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, ,) }, ResourceTemplate () { PinGroupFunction (Shared, 0x1234, "\\_SB.GPO1", 0x00, "group1", ResourceConsumer, ,) }, ResourceTemplate () { PinGroupFunction (Exclusive, 0x1234, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, ,) } }) Method (RT29, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "PinGroupFunction Resource Descriptor Macro", "pingroupfunction.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P462) != SizeOf (P463))) { ERR (__METHOD__, 0xB3, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P462), "P462", P462, P463) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { PinGroupFunction (Shared, 0x1234, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) PinGroupFunction (Shared, 0x1234, "\\_SB.GPO1", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) } M331 (__METHOD__, 0x01, 0x20, 0x20, 0x0150, 0x0150, "_SHR") M331 (__METHOD__, 0x01, 0x30, 0x30, 0x0160, 0x0160, "_FUN") M331 (__METHOD__, 0x01, 0x0110, 0x0110, 0x0240, 0x0240, "_VEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/DECL.asl0000700000175000017500000001173014773714156030345 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/collections/functional/descriptor/rtemplate.asl") Include ("../../../../runtime/collections/functional/descriptor/irq.asl") Include ("../../../../runtime/collections/functional/descriptor/irqnoflags.asl") Include ("../../../../runtime/collections/functional/descriptor/dma.asl") Include ("../../../../runtime/collections/functional/descriptor/dependentfn.asl") Include ("../../../../runtime/collections/functional/descriptor/io.asl") Include ("../../../../runtime/collections/functional/descriptor/fixedio.asl") Include ("../../../../runtime/collections/functional/descriptor/vendorshort.asl") Include ("../../../../runtime/collections/functional/descriptor/memory24.asl") Include ("../../../../runtime/collections/functional/descriptor/vendorlong.asl") Include ("../../../../runtime/collections/functional/descriptor/memory32.asl") Include ("../../../../runtime/collections/functional/descriptor/memory32fixed.asl") Include ("../../../../runtime/collections/functional/descriptor/qwordio.asl") Include ("../../../../runtime/collections/functional/descriptor/dwordio.asl") Include ("../../../../runtime/collections/functional/descriptor/wordio.asl") Include ("../../../../runtime/collections/functional/descriptor/extendedio.asl") Include ("../../../../runtime/collections/functional/descriptor/qwordmemory.asl") Include ("../../../../runtime/collections/functional/descriptor/dwordmemory.asl") Include ("../../../../runtime/collections/functional/descriptor/wordbusnumber.asl") Include ("../../../../runtime/collections/functional/descriptor/extendedmemory.asl") Include ("../../../../runtime/collections/functional/descriptor/qwordspace.asl") Include ("../../../../runtime/collections/functional/descriptor/dwordspace.asl") Include ("../../../../runtime/collections/functional/descriptor/wordspace.asl") Include ("../../../../runtime/collections/functional/descriptor/extendedspace.asl") Include ("../../../../runtime/collections/functional/descriptor/interrupt.asl") Include ("../../../../runtime/collections/functional/descriptor/register.asl") Include ("../../../../runtime/collections/functional/descriptor/resourcetemplate.asl") Include ("../../../../runtime/collections/functional/descriptor/concatenaterestemplate.asl") /* ACPI 5.0 Resource Descriptors */ Include ("../../../../runtime/collections/functional/descriptor/fixeddma.asl") Include ("../../../../runtime/collections/functional/descriptor/gpioint.asl") Include ("../../../../runtime/collections/functional/descriptor/gpioio.asl") Include ("../../../../runtime/collections/functional/descriptor/i2cserialbus.asl") Include ("../../../../runtime/collections/functional/descriptor/spiserialbus.asl") Include ("../../../../runtime/collections/functional/descriptor/uartserialbus.asl") /* ACPI 6.2 Resource Descriptors */ Include ("../../../../runtime/collections/functional/descriptor/pinfunction.asl") Include ("../../../../runtime/collections/functional/descriptor/pinconfig.asl") Include ("../../../../runtime/collections/functional/descriptor/pingroup.asl") Include ("../../../../runtime/collections/functional/descriptor/pingroupfunction.asl") Include ("../../../../runtime/collections/functional/descriptor/pingroupconfig.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/dwordio.asl0000700000175000017500000012537714773714156031322 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * DWord IO Resource Descriptor Macro */ Name (P418, Package (0x25) { ResourceTemplate () { DWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x01, "", , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F, "P", , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xF0, "PATH", , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0x00000000, // Granularity 0x00000000, // Range Minimum 0x00000000, // Range Maximum 0x00000000, // Translation Offset 0x00000000, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F,, , TypeStatic, DenseTranslation) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.2 DWord Address Space Descriptor I/O DWord Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10000111B (0x87) (Type = 1, Large item name = 0x7) Byte 1 (Length, bits[7:0]): Variable: Value = 23 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 1 I/O range Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Bits[7:6] Reserved (must be 0) Bit[5] Sparse Translation, _TRS. This bit is only meaningful if Bit[4] is set. 1 SparseTranslation: The primary-side memory address of any specific I/O port within the secondary-side range can be found using the following function. address = (((port & 0xFFFc) << 10) || (port & 0xFFF)) + _TRA In the address used to access the I/O port, bits[11:2] must be identical to bits[21:12], this gives four bytes of I/O ports on each 4 KB page. 0 DenseTranslation: The primary-side memory address of any specific I/O port within the secondary-side range can be found using the following function. address = port + _TRA Bit[4] I/O to Memory Translation, _TTP 1 TypeTranslation: This resource, which is I/O on the secondary side of the bridge, is memory on the primary side of the bridge. 0 TypeStatic: This resource, which is I/O on the secondary side of the bridge, is also I/O on the primary side of the bridge. Bit[3:2] Reserved (must be 0) Bit[1:0] _RNG 3 Memory window covers the entire range 2 ISARangesOnly. This flag is for bridges on systems with multiple bridges. Setting this bit means the memory window specified in this descriptor is limited to the ISA I/O addresses that fall within the specified window. The ISA I/O ranges are: n000-n0FF, n400-n4FF, n800-n8FF, nC00-nCFF. This bit can only be set for bridges entirely configured through ACPI namespace. 1 NonISARangesOnly. This flag is for bridges on systems with multiple bridges. Setting this bit means the memory window specified in this descriptor is limited to the non-ISA I/O addresses that fall within the specified window. The non-ISA I/O ranges are: n100-n3FF, n500-n7FF, n900-nBFF, nD00-nFFF. This bit can only be set for bridges entirely configured through ACPI namespace. 0 Reserved Byte 6 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 32 bits) must be a number (2**n-1). Byte 7 (Address space granularity, _GRA bits[15:8]) Byte 8 (Address space granularity, _GRA bits[23:16]) Byte 9 (Address space granularity, _GRA bits[31:24]) Byte 10 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 11 (Address range minimum, _MIN bits[15:8]) Byte 12 (Address range minimum, _MIN bits[23:16]) Byte 13 (Address range minimum, _MIN bits[31:24]) Byte 14 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 15 (Address range maximum, _MAX bits[15:8]) Byte 16 (Address range maximum, _MAX bits[23:16]) Byte 17 (Address range maximum, _MAX bits[31:24]) Byte 18 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 19 (Address Translation offset, _TRA bits[15:8]) Byte 20 (Address Translation offset, _TRA bits[23:16]) Byte 21 (Address Translation offset, _TRA bits[31:24]) Byte 22 (Address Length, _LEN bits [7:0]) Byte 23 (Address Length, _LEN bits[15:8]) Byte 24 (Address Length, _LEN bits[23:16]) Byte 25 (Address Length, _LEN bits[31:24]) Byte 26 (Resource Source Index): (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source String (Resource Source): (Optional) If present, the device that uses this descriptor consumes its resources from the resources produced by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P419, Package (0x25) { /* Byte 4 (General Flags) of DWord Address Space Descriptor */ ResourceTemplate () { DWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceProducer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, /* Byte 5 (Type Specific Flags) of DWord Address Space Descriptor */ ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, /* Particular cases */ ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, /* Resource Source */ ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x01, "", , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F, "P", , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xF0, "PATH", , TypeStatic, DenseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , TypeStatic, DenseTranslation) }, /* Particular cases */ ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, ResourceTemplate () { DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0x00000000, // Granularity 0x00000000, // Range Minimum 0x00000000, // Range Maximum 0x00000000, // Translation Offset 0x00000000, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F,, , TypeStatic, DenseTranslation) } }) Method (RT0D, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "DWordIo Resource Descriptor Macro", "dwordio.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x25, "p418", P418, P419) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { DWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) DWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0xF1, 0xF1, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0xF2, 0xF2, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0xF3, 0xF3, "_MAF") M331 (__METHOD__, 0x04, 0x28, 0x28, 0xF8, 0xF8, "_RNG") M331 (__METHOD__, 0x05, 0x2C, 0x2C, 0xFC, 0xFC, "_TTP") M331 (__METHOD__, 0x06, 0x2D, 0x2D, 0xFD, 0xFD, "_TRS") M331 (__METHOD__, 0x07, 0x30, 0x30, 0x0100, 0x0100, "_GRA") M331 (__METHOD__, 0x08, 0x50, 0x50, 0x0120, 0x0120, "_MIN") M331 (__METHOD__, 0x09, 0x70, 0x70, 0x0140, 0x0140, "_MAX") M331 (__METHOD__, 0x0A, 0x90, 0x90, 0x0160, 0x0160, "_TRA") M331 (__METHOD__, 0x0B, 0xB0, 0xB0, 0x0180, 0x0180, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/extendedmemory.asl0000700000175000017500000031011114773714156032662 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Extended Memory Resource Descriptor Macro */ Name (P42A, Package (0x56) { ResourceTemplate () { ExtendedMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0x0000000000000000, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.4 Extended Address Space Descriptor Memory Extended Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10001011B (0x8b) (Type = 1, Large item name = 0xB) Byte 1 (Length, bits[7:0]): Variable: Value = 53 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 0 Memory range Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Bits[7:6] Reserved (must be 0) Bit[5] Memory to I/O Translation, _TTP 1 TypeTranslation: This resource, which is memory on the secondary side of the bridge, is I/O on the primary side of the bridge. 0 TypeStatic: This resource, which is memory on the secondary side of the bridge, is also memory on the primary side of the bridge. Bits[4:3] Memory attributes, _MTP. These bits are only defined if this memory resource describes system RAM. For a definition of the labels described here, see section 15, "System Address Map Interfaces." 0 AddressRangeMemory 1 AddressRangeReserved 2 AddressRangeACPI 3 AddressRangeNVS Bits[2:1] Memory attributes, _MEM 0 The memory is non-cacheable. 1 The memory is cacheable. 2 The memory is cacheable and supports write combining. 3 The memory is cacheable and prefetchable. (Notice: OSPM ignores this field in the Extended address space descriptor. Instead it uses the Type Specific Attributes field to determine memory attributes) Bit[0] Write status, _RW 1 This memory range is read-write. 0 This memory range is read-only. Byte 6 (Revision ID): Indicates the revision of the Extended Address Space descriptor. For ACPI 3.0, this value is 1. Byte 7 (Reserved): 0 Byte 8 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 32 bits) must be a number (2**n-1). Byte 9 (Address space granularity, _GRA bits[15:8]) Byte 10 (Address space granularity, _GRA bits[23:16]) Byte 11 (Address space granularity, _GRA bits[31:24]) Byte 12 (Address space granularity, _GRA bits[39:32]) Byte 13 (Address space granularity, _GRA bits[47:40]) Byte 14 (Address space granularity, _GRA bits[55:48]) Byte 15 (Address space granularity, _GRA bits[63:56]) Byte 16 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 17 (Address range minimum, _MIN bits[15:8]) Byte 18 (Address range minimum, _MIN bits[23:16]) Byte 19 (Address range minimum, _MIN bits[31:24]) Byte 20 (Address range minimum, _MIN bits[39:32]) Byte 21 (Address range minimum, _MIN bits[47:40]) Byte 22 (Address range minimum, _MIN bits[55:48]) Byte 23 (Address range minimum, _MIN bits[63:56]) Byte 24 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 25 (Address range maximum, _MAX bits[15:8]) Byte 26 (Address range maximum, _MAX bits[23:16]) Byte 27 (Address range maximum, _MAX bits[31:24]) Byte 28 (Address range maximum, _MAX bits[39:32]) Byte 29 (Address range maximum, _MAX bits[47:40]) Byte 30 (Address range maximum, _MAX bits[55:48]) Byte 31 (Address range maximum, _MAX bits[63:56]) Byte 32 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 33 (Address Translation offset, _TRA bits[15:8]) Byte 34 (Address Translation offset, _TRA bits[23:16]) Byte 35 (Address Translation offset, _TRA bits[31:24]) Byte 36 (Address Translation offset, _TRA bits[39:32]) Byte 37 (Address Translation offset, _TRA bits[47:40]) Byte 38 (Address Translation offset, _TRA bits[55:48]) Byte 39 (Address Translation offset, _TRA bits[63:56]) Byte 40 (Address Length, _LEN bits [7:0]) Byte 41 (Address Length, _LEN bits[15:8]) Byte 42 (Address Length, _LEN bits[23:16]) Byte 43 (Address Length, _LEN bits[31:24]) Byte 44 (Address Length, _LEN bits[39:32]) Byte 45 (Address Length, _LEN bits[47:40]) Byte 46 (Address Length, _LEN bits[55:48]) Byte 47 (Address Length, _LEN bits[63:56]) Byte 48 (Type Specific Attribute, _ATT bits [7:0]): Attributes that are specific to each resource type. The meaning of the attributes in this field depends on the value of the Resource Type field (see above). For the Memory Resource Type, the definition is defined section 6.4.3.5.4.1. For other Resource Types, this field is reserved to 0 Byte 49 (Type Specific Attribute, _ATT bits[15:8]) Byte 50 (Type Specific Attribute, _ATT bits[23:16]) Byte 51 (Type Specific Attribute, _ATT bits[31:24]) Byte 52 (Type Specific Attribute, _ATT bits[39:32]) Byte 53 (Type Specific Attribute, _ATT bits[47:40]) Byte 54 (Type Specific Attribute, _ATT bits[55:48]) Byte 55 (Type Specific Attribute, _ATT bits[63:56]) */ Name (P42B, Package (0x56) { /* Byte 4 (General Flags) of Extended Address Space Descriptor */ ResourceTemplate () { ExtendedMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, /* Byte 5 (Type Specific Flags) of Extended Address Space Descriptor */ /* NonCacheable */ ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, /* Cacheable */ ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, /* WriteCombining */ ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, /* Prefetchable */ ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeNVS, TypeTranslation) }, /* Particular cases */ ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0x0000000000000000, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) } }) Method (RT13, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "ExtendedMemory Resource Descriptor Macro", "extendedmemory.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x56, "p42a", P42A, P42B) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { ExtendedMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) ExtendedMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeMemory, TypeStatic) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0x01E1, 0x01E1, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0x01E2, 0x01E2, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0x01E3, 0x01E3, "_MAF") M331 (__METHOD__, 0x04, 0x28, 0x28, 0x01E8, 0x01E8, "_RW") M331 (__METHOD__, 0x05, 0x29, 0x29, 0x01E9, 0x01E9, "_MEM") M331 (__METHOD__, 0x06, 0x2B, 0x2B, 0x01EB, 0x01EB, "_MTP") M331 (__METHOD__, 0x06, 0x2D, 0x2D, 0x01ED, 0x01ED, "_TTP") M331 (__METHOD__, 0x07, 0x40, 0x40, 0x0200, 0x0200, "_GRA") M331 (__METHOD__, 0x08, 0x80, 0x80, 0x0240, 0x0240, "_MIN") M331 (__METHOD__, 0x09, 0xC0, 0xC0, 0x0280, 0x0280, "_MAX") M331 (__METHOD__, 0x0A, 0x0100, 0x0100, 0x02C0, 0x02C0, "_TRA") M331 (__METHOD__, 0x0B, 0x0140, 0x0140, 0x0300, 0x0300, "_LEN") M331 (__METHOD__, 0x0C, 0x0180, 0x0180, 0x0340, 0x0340, "_ATT") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/io.asl0000700000175000017500000001314214773714156030244 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * IO Resource Descriptor Macro */ Name (P408, Package (0x03) { ResourceTemplate () { IO (Decode10, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) }, ResourceTemplate () { IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) }, ResourceTemplate () { IO (Decode16, 0x0000, // Range Minimum 0x0000, // Range Maximum 0x00, // Alignment 0x00, // Length ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.2.5 I/O Port Descriptor I/O Port Descriptor layout: Byte 0 (Tag Bits): Value = 01000111B (0x47) (Type = 0, Small item name = 0x8, Length = 7) Byte 1 (Information): 0000000dB Bits[7:1] Reserved and must be 0 Bit[0] (_DEC) 1 The logical device decodes 16-bit addresses 0 The logical device only decodes address bits[9:0] Byte 2 (Range minimum base address, _MIN bits[7:0]) Byte 3 (Range minimum base address, _MIN bits[15:8]) Byte 4 (Range maximum base address, _MAX bits[7:0]) Byte 5 (Range maximum base address, _MAX bits[15:8]) Byte 6 (Base alignment, _ALN): Alignment for minimum base address, increment in 1-byte blocks. Byte 7 (Range length, _LEN): The number of contiguous I/O ports requested. */ Name (P409, Package (0x03) { ResourceTemplate () { IO (Decode10, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) }, ResourceTemplate () { IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) }, ResourceTemplate () { IO (Decode16, 0x0000, // Range Minimum 0x0000, // Range Maximum 0x00, // Alignment 0x00, // Length ) } }) Method (RT05, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "IO Resource Descriptor Macro", "io.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x03, "p408", P408, P409) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } M331 (__METHOD__, 0x01, 0x08, 0x08, 0x48, 0x48, "_DEC") M331 (__METHOD__, 0x02, 0x10, 0x10, 0x50, 0x50, "_MIN") M331 (__METHOD__, 0x03, 0x20, 0x20, 0x60, 0x60, "_MAX") M331 (__METHOD__, 0x04, 0x30, 0x30, 0x70, 0x70, "_ALN") M331 (__METHOD__, 0x05, 0x38, 0x38, 0x78, 0x78, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/RUN.asl0000700000175000017500000000715614773714156030311 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Resource Descriptor macros", TCLF, 0x04, W004)) { SRMT ("RT01") RT01 () SRMT ("RT02") RT02 () SRMT ("RT03") RT03 () SRMT ("RT04") RT04 () SRMT ("RT05") RT05 () SRMT ("RT06") RT06 () SRMT ("RT07") RT07 () SRMT ("RT08") RT08 () SRMT ("RT09") RT09 () SRMT ("RT0a") RT0A () SRMT ("RT0b") RT0B () SRMT ("RT0c") RT0C () SRMT ("RT0d") RT0D () SRMT ("RT0e") RT0E () SRMT ("RT0f") RT0F () SRMT ("RT10") RT10 () SRMT ("RT11") RT11 () SRMT ("RT12") RT12 () SRMT ("RT13") RT13 () SRMT ("RT14") RT14 () SRMT ("RT15") RT15 () SRMT ("RT16") RT16 () SRMT ("RT17") RT17 () SRMT ("RT18") RT18 () SRMT ("RT19") RT19 () SRMT ("RT1a") RT1A () SRMT ("RT1b") RT1B () SRMT ("RT1c") RT1C () SRMT ("RT20") RT20 () SRMT ("RT21") RT21 () SRMT ("RT22") RT22 () SRMT ("RT23") RT23 () SRMT ("RT24") RT24 () SRMT ("RT25") RT25 () SRMT ("RT26") RT26 () SRMT ("RT27") RT27 () SRMT ("RT28") RT28 () SRMT ("RT29") RT29 () SRMT ("RT30") RT30 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/dependentfn.asl0000700000175000017500000002472614773714156032141 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Start/End Dependent Function Resource Descriptor Macro */ Name (P406, Package (0x0E) { ResourceTemplate () { StartDependentFnNoPri () { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x00) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x01) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x02) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x01, 0x00) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x01, 0x01) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x01, 0x02) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x02, 0x00) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x02, 0x01) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x02, 0x02) { } EndDependentFn () }, ResourceTemplate () { StartDependentFnNoPri () { } StartDependentFnNoPri () { } StartDependentFnNoPri () { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x01, 0x01) { } StartDependentFn (0x01, 0x01) { } StartDependentFn (0x01, 0x01) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x00) { } StartDependentFn (0x00, 0x01) { } StartDependentFn (0x00, 0x02) { } StartDependentFn (0x01, 0x00) { } StartDependentFn (0x01, 0x01) { } StartDependentFn (0x01, 0x02) { } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { } StartDependentFn (0x02, 0x02) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x00) { } EndDependentFn () StartDependentFn (0x00, 0x01) { } StartDependentFn (0x00, 0x02) { } EndDependentFn () StartDependentFn (0x01, 0x00) { } StartDependentFn (0x01, 0x01) { } StartDependentFn (0x01, 0x02) { } EndDependentFn () StartDependentFn (0x02, 0x00) { } EndDependentFn () StartDependentFn (0x02, 0x01) { } EndDependentFn () StartDependentFn (0x02, 0x02) { } EndDependentFn () } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.2.3 Start Dependent Functions Descriptor Start Dependent Functions Descriptor layout (length = 1): Byte 0 (Tag Bits): Value = 00110001B (0x31)(Type = 0, small item name = 0x6, length = 1) Byte 1 (Priority byte ): Bits[3:2] Performance/robustness. Acceptable values are: 0 Good configuration: Highest Priority and preferred configuration 1 Acceptable configuration: Lower Priority but acceptable configuration 2 Sub-optimal configuration: Functional configuration but not optimal 3 Reserved Bits[1:0] Compatibility priority. Acceptable values are: 0 Good configuration: Highest Priority and preferred configuration 1 Acceptable configuration: Lower Priority but acceptable configuration 2 Sub-optimal configuration: Functional configuration but not optimal 3 Reserved Start Dependent Functions Descriptor layout (length = 0): Byte 0 (Tag Bits): Value = 00110000B (0x30)(Type = 0, small item name = 0x6, length = 0) 6.4.2.4 End Dependent Functions Descriptor End Dependent Functions Descriptor layout: Byte 0 (Tag Bits): Value = 00111000B (0x38)(Type = 0, small item name = 0x7 length =0) */ Name (P407, Package (0x0E) { ResourceTemplate () { StartDependentFnNoPri () { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x00) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x01) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x02) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x01, 0x00) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x01, 0x01) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x01, 0x02) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x02, 0x00) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x02, 0x01) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x02, 0x02) { } EndDependentFn () }, ResourceTemplate () { StartDependentFnNoPri () { } StartDependentFnNoPri () { } StartDependentFnNoPri () { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x01, 0x01) { } StartDependentFn (0x01, 0x01) { } StartDependentFn (0x01, 0x01) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x00) { } StartDependentFn (0x00, 0x01) { } StartDependentFn (0x00, 0x02) { } StartDependentFn (0x01, 0x00) { } StartDependentFn (0x01, 0x01) { } StartDependentFn (0x01, 0x02) { } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { } StartDependentFn (0x02, 0x02) { } EndDependentFn () }, ResourceTemplate () { StartDependentFn (0x00, 0x00) { } EndDependentFn () StartDependentFn (0x00, 0x01) { } StartDependentFn (0x00, 0x02) { } EndDependentFn () StartDependentFn (0x01, 0x00) { } StartDependentFn (0x01, 0x01) { } StartDependentFn (0x01, 0x02) { } EndDependentFn () StartDependentFn (0x02, 0x00) { } EndDependentFn () StartDependentFn (0x02, 0x01) { } EndDependentFn () StartDependentFn (0x02, 0x02) { } EndDependentFn () } }) Method (RT04, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Start/End DependentFunction Resource Descriptor Macro", "dependentfn.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x0E, "p406", P406, P407) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/qwordmemory.asl0000700000175000017500000027041614773714156032233 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * QWord Memory Resource Descriptor Macro */ Name (P424, Package (0x59) { ResourceTemplate () { QWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x01, "", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F, "P", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xF0, "PATH", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F,, , AddressRangeMemory, TypeStatic) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.1 QWord Address Space Descriptor Memory QWord Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10001010B (0x8a) (Type = 1, Large item name = 0xA) Byte 1 (Length, bits[7:0]): Variable: Value = 43 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 0 Memory range Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Bits[7:6] Reserved (must be 0) Bit[5] Memory to I/O Translation, _TTP 1 TypeTranslation: This resource, which is memory on the secondary side of the bridge, is I/O on the primary side of the bridge. 0 TypeStatic: This resource, which is memory on the secondary side of the bridge, is also memory on the primary side of the bridge. Bits[4:3] Memory attributes, _MTP. These bits are only defined if this memory resource describes system RAM. For a definition of the labels described here, see section 15, "System Address Map Interfaces." 0 AddressRangeMemory 1 AddressRangeReserved 2 AddressRangeACPI 3 AddressRangeNVS Bits[2:1] Memory attributes, _MEM 0 The memory is non-cacheable. 1 The memory is cacheable. 2 The memory is cacheable and supports write combining. 3 The memory is cacheable and prefetchable. (Notice: OSPM ignores this field in the Extended address space descriptor. Instead it uses the Type Specific Attributes field to determine memory attributes) Bit[0] Write status, _RW 1 This memory range is read-write. 0 This memory range is read-only. Byte 6 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 32 bits) must be a number (2**n-1). Byte 7 (Address space granularity, _GRA bits[15:8]) Byte 8 (Address space granularity, _GRA bits[23:16]) Byte 9 (Address space granularity, _GRA bits[31:24]) Byte 10 (Address space granularity, _GRA bits[39:32]) Byte 11 (Address space granularity, _GRA bits[47:40]) Byte 12 (Address space granularity, _GRA bits[55:48]) Byte 13 (Address space granularity, _GRA bits[63:56]) Byte 14 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 15 (Address range minimum, _MIN bits[15:8]) Byte 16 (Address range minimum, _MIN bits[23:16]) Byte 17 (Address range minimum, _MIN bits[31:24]) Byte 18 (Address range minimum, _MIN bits[39:32]) Byte 19 (Address range minimum, _MIN bits[47:40]) Byte 20 (Address range minimum, _MIN bits[55:48]) Byte 21 (Address range minimum, _MIN bits[63:56]) Byte 22 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 23 (Address range maximum, _MAX bits[15:8]) Byte 24 (Address range maximum, _MAX bits[23:16]) Byte 25 (Address range maximum, _MAX bits[31:24]) Byte 26 (Address range maximum, _MAX bits[39:32]) Byte 27 (Address range maximum, _MAX bits[47:40]) Byte 28 (Address range maximum, _MAX bits[55:48]) Byte 29 (Address range maximum, _MAX bits[63:56]) Byte 30 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 31 (Address Translation offset, _TRA bits[15:8]) Byte 32 (Address Translation offset, _TRA bits[23:16]) Byte 33 (Address Translation offset, _TRA bits[31:24]) Byte 34 (Address Translation offset, _TRA bits[39:32]) Byte 35 (Address Translation offset, _TRA bits[47:40]) Byte 36 (Address Translation offset, _TRA bits[55:48]) Byte 37 (Address Translation offset, _TRA bits[63:56]) Byte 38 (Address Length, _LEN bits [7:0]) Byte 39 (Address Length, _LEN bits[15:8]) Byte 40 (Address Length, _LEN bits[23:16]) Byte 41 (Address Length, _LEN bits[31:24]) Byte 42 (Address Length, _LEN bits[39:32]) Byte 43 (Address Length, _LEN bits[47:40]) Byte 44 (Address Length, _LEN bits[55:48]) Byte 45 (Address Length, _LEN bits[63:56]) Byte 46 (Resource Source Index): (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source String (Resource Source): (Optional) If present, the device that uses this descriptor consumes its resources from the resources produced by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P425, Package (0x59) { /* Byte 4 (General Flags) of QWord Address Space Descriptor */ ResourceTemplate () { QWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, /* Byte 5 (Type Specific Flags) of QWord Address Space Descriptor */ /* NonCacheable */ ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, /* Cacheable */ ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, /* WriteCombining */ ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, /* Prefetchable */ ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, /* Particular cases */ ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, /* Resource Source */ ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x01, "", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F, "P", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xF0, "PATH", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , AddressRangeMemory, TypeStatic) }, /* Particular cases */ ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F,, , AddressRangeMemory, TypeStatic) } }) Method (RT10, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "QWordMemory Resource Descriptor Macro", "qwordmemory.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x59, "p424", P424, P425) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { QWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0x0191, 0x0191, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0x0192, 0x0192, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0x0193, 0x0193, "_MAF") M331 (__METHOD__, 0x04, 0x28, 0x28, 0x0198, 0x0198, "_RW") M331 (__METHOD__, 0x05, 0x29, 0x29, 0x0199, 0x0199, "_MEM") M331 (__METHOD__, 0x06, 0x2B, 0x2B, 0x019B, 0x019B, "_MTP") M331 (__METHOD__, 0x06, 0x2D, 0x2D, 0x019D, 0x019D, "_TTP") M331 (__METHOD__, 0x07, 0x30, 0x30, 0x01A0, 0x01A0, "_GRA") M331 (__METHOD__, 0x08, 0x70, 0x70, 0x01E0, 0x01E0, "_MIN") M331 (__METHOD__, 0x09, 0xB0, 0xB0, 0x0220, 0x0220, "_MAX") M331 (__METHOD__, 0x0A, 0xF0, 0xF0, 0x0260, 0x0260, "_TRA") M331 (__METHOD__, 0x0B, 0x0130, 0x0130, 0x02A0, 0x02A0, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/register.asl0000700000175000017500000003400214773714156031457 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Generic Register Resource Descriptor Macro */ Name (P436, Package (0x12) { ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (SystemIO, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (PCI_Config, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (EmbeddedControl, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (SMBus, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (SystemCMOS, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (PCIBARTarget, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (IPMI, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (GeneralPurposeIo, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (GenericSerialBus, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x01, // Access Size ) }, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x02, // Access Size ) }, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x03, // Access Size ) }, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x04, // Access Size ) }, ResourceTemplate () { Register (SystemMemory, 0x00, // Bit Width 0x00, // Bit Offset 0x0000000000000000, // Address ,) }, ResourceTemplate () { Register (SystemMemory, 0xFF, // Bit Width 0xFF, // Bit Offset 0x0000000000000000, // Address ,) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.7 Generic Register Descriptor Generic Register Descriptor layout: Byte 0 Generic register descriptor Value = 10000010B (0x82) (Type = 1, Large item name = 0x2) Byte 1 Length, bits[7:0] Value = 00001100B (12) Byte 2 Length, bits[15:8] Value = 00000000B (0) Byte 3 Address Space ID, _ASI The address space where the data structure or register exists. Defined values are: 0x00 System Memory 0x01 System I/O 0x02 PCI Configuration Space 0x03 Embedded Controller 0x04 SMBus 0x7F Functional Fixed Hardware Byte 4 Register Bit Width, _RBW Indicates the register width in bits. Byte 5 Register Bit Offset, _RBO Indicates the offset to the start of the register in bits from the Register Address. Byte 6 Address Size, _ASZ Specifies access size. 0-Undefined (legacy reasons) 1-Byte access 2-Word access 3-Dword access 4-Qword access Byte 7 Register Address, _ADR bits[7:0] Register Address Byte 8 Register Address, _ADR bits[15:8] Byte 9 Register Address, _ADR bits[23:16] Byte 10 Register Address, _ADR bits[31:24] Byte 11 Register Address, _ADR bits[39:32] Byte 12 Register Address, _ADR bits[47:40] Byte 13 Register Address, _ADR bits[55:48] Byte 14 Register Address, _ADR bits[63:56] */ Name (P437, Package (0x12) { /* Byte 3 (Address Space ID) of Register Descriptor */ ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (SystemIO, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (PCI_Config, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (EmbeddedControl, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (SMBus, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (SystemCMOS, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (PCIBARTarget, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (IPMI, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (GeneralPurposeIo, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (GenericSerialBus, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, /* Byte 6 (Address Size) of Register Descriptor */ ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) }, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x01, // Access Size ) }, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x02, // Access Size ) }, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x03, // Access Size ) }, ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address 0x04, // Access Size ) }, /* Particular cases */ ResourceTemplate () { Register (SystemMemory, 0x00, // Bit Width 0x00, // Bit Offset 0x0000000000000000, // Address ,) }, ResourceTemplate () { Register (SystemMemory, 0xFF, // Bit Width 0xFF, // Bit Offset 0x0000000000000000, // Address ,) } }) Method (RT19, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Register Resource Descriptor Macro", "register.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P436) != SizeOf (P437))) { ERR (__METHOD__, 0xB3, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P436), "p436", P436, P437) /* Register macro DescriptorName is recently implemented */ /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) Register (SystemMemory, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) } M331 (__METHOD__, 0x01, 0x18, 0x18, 0x90, 0x90, "_ASI") M331 (__METHOD__, 0x02, 0x20, 0x20, 0x98, 0x98, "_RBW") M331 (__METHOD__, 0x03, 0x28, 0x28, 0xA0, 0xA0, "_RBO") M331 (__METHOD__, 0x04, 0x30, 0x30, 0xA8, 0xA8, "_ASZ") M331 (__METHOD__, 0x05, 0x38, 0x38, 0xB0, 0xB0, "_ADR") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/resourcetemplate.asl0000700000175000017500000122301114773714156033217 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Resource To Buffer Conversion Macro */ Name (P438, Package (0x03) { Buffer (0x02) { 0x79, 0x00 // y. }, ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () } }) /* Complex test data */ Name (P445, Package (0x02) { ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.2.8 End Tag Type 0, Small Item Name 0xF, Length = 1 The End tag identifies an end of resource data. Note: If the checksum field is zero, the resource data is treated as if the checksum operation succeeded. Configuration proceeds normally. Table 6-31 End Tag Definition Offset Field Name Byte 0 Value = 01111001B (0x79) (Type = 0, small item name = 0xF, length = 1) Byte 1 Checksum covering all resource data after the serial identifier. This checksum is generated such that adding it to the sum of all the data bytes will produce a zero sum. The End Tag is automatically generated by the ASL compiler at the end of the ResourceTemplate statement. */ Name (P439, Package (0x03) { Buffer (0x02) { 0x79, 0x00 // y. }, ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () } }) /* Complex test data */ Name (P446, Package (0x02) { ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () } }) Method (RT1A, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Resource To Buffer Conversion Macro", "resourcetemplate.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x03, "p438", P438, P439) } Method (RT1C, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Resource Conversion Macros complex test", "resourcetemplate.asl") Name (RT00, ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }) Name (RT01, ResourceTemplate () { StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0x03F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () }) M330 (__METHOD__, 0x02, "p445", P445, P446) /* Checkings relating to RT00 */ M331 (__METHOD__, 0x01, 0x18, 0x18, 0x3B68, 0x3B68, "_HE") M331 (__METHOD__, 0x02, 0x1B, 0x1B, 0x3B6B, 0x3B6B, "_LL") M331 (__METHOD__, 0x03, 0x1C, 0x1C, 0x3B6C, 0x3B6C, "_SHR") M331 (__METHOD__, 0x04, 0x4D, 0x4D, 0x3B9D, 0x3B9D, "_TYP") M331 (__METHOD__, 0x05, 0x4A, 0x4A, 0x3B9A, 0x3B9A, "_BM") M331 (__METHOD__, 0x06, 0x48, 0x48, 0x3B98, 0x3B98, "_SIZ") M331 (__METHOD__, 0x07, 0x58, 0x58, 0x3BA8, 0x3BA8, "_DEC") M331 (__METHOD__, 0x08, 0x60, 0x60, 0x3BB0, 0x3BB0, "_MIN") M331 (__METHOD__, 0x09, 0x70, 0x70, 0x3BC0, 0x3BC0, "_MAX") M331 (__METHOD__, 0x0A, 0x80, 0x80, 0x3BD0, 0x3BD0, "_ALN") M331 (__METHOD__, 0x0B, 0x88, 0x88, 0x3BD8, 0x3BD8, "_LEN") M331 (__METHOD__, 0x0C, 0x98, 0x98, 0x3BE8, 0x3BE8, "_BAS") M331 (__METHOD__, 0x0D, 0xA8, 0xA8, 0x3BF8, 0x3BF8, "_LEN") M331 (__METHOD__, 0x0E, 0x0108, 0x0108, 0x3C58, 0x3C58, "_RW") M331 (__METHOD__, 0x0F, 0x0110, 0x0110, 0x3C60, 0x3C60, "_MIN") M331 (__METHOD__, 0x10, 0x0120, 0x0120, 0x3C70, 0x3C70, "_MAX") M331 (__METHOD__, 0x11, 0x0130, 0x0130, 0x3C80, 0x3C80, "_ALN") M331 (__METHOD__, 0x12, 0x0140, 0x0140, 0x3C90, 0x3C90, "_LEN") M331 (__METHOD__, 0x13, 0x0168, 0x0168, 0x3CB8, 0x3CB8, "_RW") M331 (__METHOD__, 0x14, 0x0170, 0x0170, 0x3CC0, 0x3CC0, "_MIN") M331 (__METHOD__, 0x15, 0x0190, 0x0190, 0x3CE0, 0x3CE0, "_MAX") M331 (__METHOD__, 0x16, 0x01B0, 0x01B0, 0x3D00, 0x3D00, "_ALN") M331 (__METHOD__, 0x17, 0x01D0, 0x01D0, 0x3D20, 0x3D20, "_LEN") M331 (__METHOD__, 0x18, 0x0208, 0x0208, 0x3D58, 0x3D58, "_RW") M331 (__METHOD__, 0x19, 0x0210, 0x0210, 0x3D60, 0x3D60, "_BAS") M331 (__METHOD__, 0x1A, 0x0230, 0x0230, 0x3D80, 0x3D80, "_LEN") M331 (__METHOD__, 0x1B, 0x0331, 0x0331, 0x3E81, 0x3E81, "_DEC") M331 (__METHOD__, 0x1C, 0x0332, 0x0332, 0x3E82, 0x3E82, "_MIF") M331 (__METHOD__, 0x1D, 0x0333, 0x0333, 0x3E83, 0x3E83, "_MAF") M331 (__METHOD__, 0x1E, 0x0338, 0x0338, 0x3E88, 0x3E88, "_RNG") M331 (__METHOD__, 0x1F, 0x033C, 0x033C, 0x3E8C, 0x3E8C, "_TTP") M331 (__METHOD__, 0x20, 0x033D, 0x033D, 0x3E8D, 0x3E8D, "_TRS") M331 (__METHOD__, 0x21, 0x0340, 0x0340, 0x3E90, 0x3E90, "_GRA") M331 (__METHOD__, 0x22, 0x0380, 0x0380, 0x3ED0, 0x3ED0, "_MIN") M331 (__METHOD__, 0x23, 0x03C0, 0x03C0, 0x3F10, 0x3F10, "_MAX") M331 (__METHOD__, 0x24, 0x0400, 0x0400, 0x3F50, 0x3F50, "_TRA") M331 (__METHOD__, 0x25, 0x0440, 0x0440, 0x3F90, 0x3F90, "_LEN") M331 (__METHOD__, 0x26, 0x0511, 0x0511, 0x4061, 0x4061, "_DEC") M331 (__METHOD__, 0x27, 0x0512, 0x0512, 0x4062, 0x4062, "_MIF") M331 (__METHOD__, 0x28, 0x0513, 0x0513, 0x4063, 0x4063, "_MAF") M331 (__METHOD__, 0x29, 0x0518, 0x0518, 0x4068, 0x4068, "_RNG") M331 (__METHOD__, 0x2A, 0x051C, 0x051C, 0x406C, 0x406C, "_TTP") M331 (__METHOD__, 0x2B, 0x051D, 0x051D, 0x406D, 0x406D, "_TRS") M331 (__METHOD__, 0x2C, 0x0520, 0x0520, 0x4070, 0x4070, "_GRA") M331 (__METHOD__, 0x2D, 0x0540, 0x0540, 0x4090, 0x4090, "_MIN") M331 (__METHOD__, 0x2E, 0x0560, 0x0560, 0x40B0, 0x40B0, "_MAX") M331 (__METHOD__, 0x2F, 0x0580, 0x0580, 0x40D0, 0x40D0, "_TRA") M331 (__METHOD__, 0x30, 0x05A0, 0x05A0, 0x40F0, 0x40F0, "_LEN") M331 (__METHOD__, 0x31, 0x0651, 0x0651, 0x41A1, 0x41A1, "_DEC") M331 (__METHOD__, 0x32, 0x0652, 0x0652, 0x41A2, 0x41A2, "_MIF") M331 (__METHOD__, 0x33, 0x0653, 0x0653, 0x41A3, 0x41A3, "_MAF") M331 (__METHOD__, 0x34, 0x0658, 0x0658, 0x41A8, 0x41A8, "_RNG") M331 (__METHOD__, 0x35, 0x065C, 0x065C, 0x41AC, 0x41AC, "_TTP") M331 (__METHOD__, 0x36, 0x065D, 0x065D, 0x41AD, 0x41AD, "_TRS") M331 (__METHOD__, 0x37, 0x0660, 0x0660, 0x41B0, 0x41B0, "_GRA") M331 (__METHOD__, 0x38, 0x0670, 0x0670, 0x41C0, 0x41C0, "_MIN") M331 (__METHOD__, 0x39, 0x0680, 0x0680, 0x41D0, 0x41D0, "_MAX") M331 (__METHOD__, 0x3A, 0x0690, 0x0690, 0x41E0, 0x41E0, "_TRA") M331 (__METHOD__, 0x3B, 0x06A0, 0x06A0, 0x41F0, 0x41F0, "_LEN") M331 (__METHOD__, 0x3C, 0x0741, 0x0741, 0x4291, 0x4291, "_DEC") M331 (__METHOD__, 0x3D, 0x0742, 0x0742, 0x4292, 0x4292, "_MIF") M331 (__METHOD__, 0x3E, 0x0743, 0x0743, 0x4293, 0x4293, "_MAF") M331 (__METHOD__, 0x3F, 0x0748, 0x0748, 0x4298, 0x4298, "_RW") M331 (__METHOD__, 0x40, 0x0749, 0x0749, 0x4299, 0x4299, "_MEM") M331 (__METHOD__, 0x41, 0x074B, 0x074B, 0x429B, 0x429B, "_MTP") M331 (__METHOD__, 0x42, 0x074D, 0x074D, 0x429D, 0x429D, "_TTP") M331 (__METHOD__, 0x43, 0x0750, 0x0750, 0x42A0, 0x42A0, "_GRA") M331 (__METHOD__, 0x44, 0x0790, 0x0790, 0x42E0, 0x42E0, "_MIN") M331 (__METHOD__, 0x45, 0x07D0, 0x07D0, 0x4320, 0x4320, "_MAX") M331 (__METHOD__, 0x46, 0x0810, 0x0810, 0x4360, 0x4360, "_TRA") M331 (__METHOD__, 0x47, 0x0850, 0x0850, 0x43A0, 0x43A0, "_LEN") M331 (__METHOD__, 0x48, 0x0921, 0x0921, 0x4471, 0x4471, "_DEC") M331 (__METHOD__, 0x49, 0x0922, 0x0922, 0x4472, 0x4472, "_MIF") M331 (__METHOD__, 0x4A, 0x0923, 0x0923, 0x4473, 0x4473, "_MAF") M331 (__METHOD__, 0x4B, 0x0928, 0x0928, 0x4478, 0x4478, "_RW") M331 (__METHOD__, 0x4C, 0x0929, 0x0929, 0x4479, 0x4479, "_MEM") M331 (__METHOD__, 0x4D, 0x092B, 0x092B, 0x447B, 0x447B, "_MTP") M331 (__METHOD__, 0x4E, 0x092D, 0x092D, 0x447D, 0x447D, "_TTP") M331 (__METHOD__, 0x4F, 0x0930, 0x0930, 0x4480, 0x4480, "_GRA") M331 (__METHOD__, 0x50, 0x0950, 0x0950, 0x44A0, 0x44A0, "_MIN") M331 (__METHOD__, 0x51, 0x0970, 0x0970, 0x44C0, 0x44C0, "_MAX") M331 (__METHOD__, 0x52, 0x0990, 0x0990, 0x44E0, 0x44E0, "_TRA") M331 (__METHOD__, 0x53, 0x09B0, 0x09B0, 0x4500, 0x4500, "_LEN") M331 (__METHOD__, 0x54, 0x0A61, 0x0A61, 0x45B1, 0x45B1, "_DEC") M331 (__METHOD__, 0x55, 0x0A62, 0x0A62, 0x45B2, 0x45B2, "_MIF") M331 (__METHOD__, 0x56, 0x0A63, 0x0A63, 0x45B3, 0x45B3, "_MAF") M331 (__METHOD__, 0x57, 0x0A70, 0x0A70, 0x45C0, 0x45C0, "_GRA") M331 (__METHOD__, 0x58, 0x0A80, 0x0A80, 0x45D0, 0x45D0, "_MIN") M331 (__METHOD__, 0x59, 0x0A90, 0x0A90, 0x45E0, 0x45E0, "_MAX") M331 (__METHOD__, 0x5A, 0x0AA0, 0x0AA0, 0x45F0, 0x45F0, "_TRA") M331 (__METHOD__, 0x5B, 0x0AB0, 0x0AB0, 0x4600, 0x4600, "_LEN") M331 (__METHOD__, 0x5C, 0x0B49, 0x0B49, 0x4699, 0x4699, "_HE") M331 (__METHOD__, 0x5D, 0x0B4A, 0x0B4A, 0x469A, 0x469A, "_LL") M331 (__METHOD__, 0x5E, 0x0B4B, 0x0B4B, 0x469B, 0x469B, "_SHR") M331 (__METHOD__, 0x5F, 0x0B58, 0x0B58, 0x46A8, 0x46A8, "_INT") M331 (__METHOD__, 0x60, 0x3221, 0x3221, 0x6D71, 0x6D71, "_DEC") M331 (__METHOD__, 0x61, 0x3222, 0x3222, 0x6D72, 0x6D72, "_MIF") M331 (__METHOD__, 0x62, 0x3223, 0x3223, 0x6D73, 0x6D73, "_MAF") M331 (__METHOD__, 0x63, 0x3228, 0x3228, 0x6D78, 0x6D78, "_RNG") M331 (__METHOD__, 0x64, 0x322C, 0x322C, 0x6D7C, 0x6D7C, "_TTP") M331 (__METHOD__, 0x65, 0x322D, 0x322D, 0x6D7D, 0x6D7D, "_TRS") M331 (__METHOD__, 0x66, 0x3240, 0x3240, 0x6D90, 0x6D90, "_GRA") M331 (__METHOD__, 0x67, 0x3280, 0x3280, 0x6DD0, 0x6DD0, "_MIN") M331 (__METHOD__, 0x68, 0x32C0, 0x32C0, 0x6E10, 0x6E10, "_MAX") M331 (__METHOD__, 0x69, 0x3300, 0x3300, 0x6E50, 0x6E50, "_TRA") M331 (__METHOD__, 0x6A, 0x3340, 0x3340, 0x6E90, 0x6E90, "_LEN") M331 (__METHOD__, 0x6B, 0x3380, 0x3380, 0x6ED0, 0x6ED0, "_ATT") M331 (__METHOD__, 0x6C, 0x33E1, 0x33E1, 0x6F31, 0x6F31, "_DEC") M331 (__METHOD__, 0x6D, 0x33E2, 0x33E2, 0x6F32, 0x6F32, "_MIF") M331 (__METHOD__, 0x6E, 0x33E3, 0x33E3, 0x6F33, 0x6F33, "_MAF") M331 (__METHOD__, 0x6F, 0x33E8, 0x33E8, 0x6F38, 0x6F38, "_RW") M331 (__METHOD__, 0x70, 0x33E9, 0x33E9, 0x6F39, 0x6F39, "_MEM") M331 (__METHOD__, 0x71, 0x33EB, 0x33EB, 0x6F3B, 0x6F3B, "_MTP") M331 (__METHOD__, 0x72, 0x33ED, 0x33ED, 0x6F3D, 0x6F3D, "_TTP") M331 (__METHOD__, 0x73, 0x3400, 0x3400, 0x6F50, 0x6F50, "_GRA") M331 (__METHOD__, 0x74, 0x3440, 0x3440, 0x6F90, 0x6F90, "_MIN") M331 (__METHOD__, 0x75, 0x3480, 0x3480, 0x6FD0, 0x6FD0, "_MAX") M331 (__METHOD__, 0x76, 0x34C0, 0x34C0, 0x7010, 0x7010, "_TRA") M331 (__METHOD__, 0x77, 0x3500, 0x3500, 0x7050, 0x7050, "_LEN") M331 (__METHOD__, 0x78, 0x3540, 0x3540, 0x7090, 0x7090, "_ATT") M331 (__METHOD__, 0x79, 0x35A1, 0x35A1, 0x70F1, 0x70F1, "_DEC") M331 (__METHOD__, 0x7A, 0x35A2, 0x35A2, 0x70F2, 0x70F2, "_MIF") M331 (__METHOD__, 0x7B, 0x35A3, 0x35A3, 0x70F3, 0x70F3, "_MAF") M331 (__METHOD__, 0x7C, 0x35C0, 0x35C0, 0x7110, 0x7110, "_GRA") M331 (__METHOD__, 0x7D, 0x3600, 0x3600, 0x7150, 0x7150, "_MIN") M331 (__METHOD__, 0x7E, 0x3640, 0x3640, 0x7190, 0x7190, "_MAX") M331 (__METHOD__, 0x7F, 0x3680, 0x3680, 0x71D0, 0x71D0, "_TRA") M331 (__METHOD__, 0x80, 0x36C0, 0x36C0, 0x7210, 0x7210, "_LEN") M331 (__METHOD__, 0x81, 0x3700, 0x3700, 0x7250, 0x7250, "_ATT") M331 (__METHOD__, 0x82, 0x3761, 0x3761, 0x72B1, 0x72B1, "_DEC") M331 (__METHOD__, 0x83, 0x3762, 0x3762, 0x72B2, 0x72B2, "_MIF") M331 (__METHOD__, 0x84, 0x3763, 0x3763, 0x72B3, 0x72B3, "_MAF") M331 (__METHOD__, 0x85, 0x3770, 0x3770, 0x72C0, 0x72C0, "_GRA") M331 (__METHOD__, 0x86, 0x3790, 0x3790, 0x72E0, 0x72E0, "_MIN") M331 (__METHOD__, 0x87, 0x37B0, 0x37B0, 0x7300, 0x7300, "_MAX") M331 (__METHOD__, 0x88, 0x37D0, 0x37D0, 0x7320, 0x7320, "_TRA") M331 (__METHOD__, 0x89, 0x37F0, 0x37F0, 0x7340, 0x7340, "_LEN") M331 (__METHOD__, 0x8A, 0x38A1, 0x38A1, 0x73F1, 0x73F1, "_DEC") M331 (__METHOD__, 0x8B, 0x38A2, 0x38A2, 0x73F2, 0x73F2, "_MIF") M331 (__METHOD__, 0x8C, 0x38A3, 0x38A3, 0x73F3, 0x73F3, "_MAF") M331 (__METHOD__, 0x8D, 0x38B0, 0x38B0, 0x7400, 0x7400, "_GRA") M331 (__METHOD__, 0x8E, 0x38F0, 0x38F0, 0x7440, 0x7440, "_MIN") M331 (__METHOD__, 0x8F, 0x3930, 0x3930, 0x7480, 0x7480, "_MAX") M331 (__METHOD__, 0x90, 0x3970, 0x3970, 0x74C0, 0x74C0, "_TRA") M331 (__METHOD__, 0x91, 0x39B0, 0x39B0, 0x7500, 0x7500, "_LEN") M331 (__METHOD__, 0x92, 0x3A81, 0x3A81, 0x75D1, 0x75D1, "_DEC") M331 (__METHOD__, 0x93, 0x3A82, 0x3A82, 0x75D2, 0x75D2, "_MIF") M331 (__METHOD__, 0x94, 0x3A83, 0x3A83, 0x75D3, 0x75D3, "_MAF") M331 (__METHOD__, 0x95, 0x3A90, 0x3A90, 0x75E0, 0x75E0, "_GRA") M331 (__METHOD__, 0x96, 0x3AA0, 0x3AA0, 0x75F0, 0x75F0, "_MIN") M331 (__METHOD__, 0x97, 0x3AB0, 0x3AB0, 0x7600, 0x7600, "_MAX") M331 (__METHOD__, 0x98, 0x3AC0, 0x3AC0, 0x7610, 0x7610, "_TRA") M331 (__METHOD__, 0x99, 0x3AD0, 0x3AD0, 0x7620, 0x7620, "_LEN") /* Checkings relating to RT01 */ M331 (__METHOD__, 0x9A, 0x20, 0x20, 0x4780, 0x4780, "_HE") M331 (__METHOD__, 0x9B, 0x23, 0x23, 0x4783, 0x4783, "_LL") M331 (__METHOD__, 0x9C, 0x24, 0x24, 0x4784, 0x4784, "_SHR") M331 (__METHOD__, 0x9D, 0x60, 0x60, 0x47C0, 0x47C0, "_HE") M331 (__METHOD__, 0x9E, 0x63, 0x63, 0x47C3, 0x47C3, "_LL") M331 (__METHOD__, 0x9F, 0x64, 0x64, 0x47C4, 0x47C4, "_SHR") M331 (__METHOD__, 0xA0, 0x95, 0x95, 0x47F5, 0x47F5, "_TYP") M331 (__METHOD__, 0xA1, 0x92, 0x92, 0x47F2, 0x47F2, "_BM") M331 (__METHOD__, 0xA2, 0x90, 0x90, 0x47F0, 0x47F0, "_SIZ") M331 (__METHOD__, 0xA3, 0xC0, 0xC0, 0x4820, 0x4820, "_HE") M331 (__METHOD__, 0xA4, 0xC3, 0xC3, 0x4823, 0x4823, "_LL") M331 (__METHOD__, 0xA5, 0xC4, 0xC4, 0x4824, 0x4824, "_SHR") M331 (__METHOD__, 0xA6, 0xF5, 0xF5, 0x4855, 0x4855, "_TYP") M331 (__METHOD__, 0xA7, 0xF2, 0xF2, 0x4852, 0x4852, "_BM") M331 (__METHOD__, 0xA8, 0xF0, 0xF0, 0x4850, 0x4850, "_SIZ") M331 (__METHOD__, 0xA9, 0x0100, 0x0100, 0x4860, 0x4860, "_DEC") M331 (__METHOD__, 0xAA, 0x0108, 0x0108, 0x4868, 0x4868, "_MIN") M331 (__METHOD__, 0xAB, 0x0118, 0x0118, 0x4878, 0x4878, "_MAX") M331 (__METHOD__, 0xAC, 0x0128, 0x0128, 0x4888, 0x4888, "_ALN") M331 (__METHOD__, 0xAD, 0x0130, 0x0130, 0x4890, 0x4890, "_LEN") M331 (__METHOD__, 0xAE, 0x0160, 0x0160, 0x48C0, 0x48C0, "_HE") M331 (__METHOD__, 0xAF, 0x0163, 0x0163, 0x48C3, 0x48C3, "_LL") M331 (__METHOD__, 0xB0, 0x0164, 0x0164, 0x48C4, 0x48C4, "_SHR") M331 (__METHOD__, 0xB1, 0x0195, 0x0195, 0x48F5, 0x48F5, "_TYP") M331 (__METHOD__, 0xB2, 0x0192, 0x0192, 0x48F2, 0x48F2, "_BM") M331 (__METHOD__, 0xB3, 0x0190, 0x0190, 0x48F0, 0x48F0, "_SIZ") M331 (__METHOD__, 0xB4, 0x01A0, 0x01A0, 0x4900, 0x4900, "_DEC") M331 (__METHOD__, 0xB5, 0x01A8, 0x01A8, 0x4908, 0x4908, "_MIN") M331 (__METHOD__, 0xB6, 0x01B8, 0x01B8, 0x4918, 0x4918, "_MAX") M331 (__METHOD__, 0xB7, 0x01C8, 0x01C8, 0x4928, 0x4928, "_ALN") M331 (__METHOD__, 0xB8, 0x01D0, 0x01D0, 0x4930, 0x4930, "_LEN") M331 (__METHOD__, 0xB9, 0x01E0, 0x01E0, 0x4940, 0x4940, "_BAS") M331 (__METHOD__, 0xBA, 0x01F0, 0x01F0, 0x4950, 0x4950, "_LEN") M331 (__METHOD__, 0xBB, 0x0220, 0x0220, 0x4980, 0x4980, "_HE") M331 (__METHOD__, 0xBC, 0x0223, 0x0223, 0x4983, 0x4983, "_LL") M331 (__METHOD__, 0xBD, 0x0224, 0x0224, 0x4984, 0x4984, "_SHR") M331 (__METHOD__, 0xBE, 0x0255, 0x0255, 0x49B5, 0x49B5, "_TYP") M331 (__METHOD__, 0xBF, 0x0252, 0x0252, 0x49B2, 0x49B2, "_BM") M331 (__METHOD__, 0xC0, 0x0250, 0x0250, 0x49B0, 0x49B0, "_SIZ") M331 (__METHOD__, 0xC1, 0x0260, 0x0260, 0x49C0, 0x49C0, "_DEC") M331 (__METHOD__, 0xC2, 0x0268, 0x0268, 0x49C8, 0x49C8, "_MIN") M331 (__METHOD__, 0xC3, 0x0278, 0x0278, 0x49D8, 0x49D8, "_MAX") M331 (__METHOD__, 0xC4, 0x0288, 0x0288, 0x49E8, 0x49E8, "_ALN") M331 (__METHOD__, 0xC5, 0x0290, 0x0290, 0x49F0, 0x49F0, "_LEN") M331 (__METHOD__, 0xC6, 0x02A0, 0x02A0, 0x4A00, 0x4A00, "_BAS") M331 (__METHOD__, 0xC7, 0x02B0, 0x02B0, 0x4A10, 0x4A10, "_LEN") M331 (__METHOD__, 0xC8, 0x0320, 0x0320, 0x4A80, 0x4A80, "_HE") M331 (__METHOD__, 0xC9, 0x0323, 0x0323, 0x4A83, 0x4A83, "_LL") M331 (__METHOD__, 0xCA, 0x0324, 0x0324, 0x4A84, 0x4A84, "_SHR") M331 (__METHOD__, 0xCB, 0x0355, 0x0355, 0x4AB5, 0x4AB5, "_TYP") M331 (__METHOD__, 0xCC, 0x0352, 0x0352, 0x4AB2, 0x4AB2, "_BM") M331 (__METHOD__, 0xCD, 0x0350, 0x0350, 0x4AB0, 0x4AB0, "_SIZ") M331 (__METHOD__, 0xCE, 0x0360, 0x0360, 0x4AC0, 0x4AC0, "_DEC") M331 (__METHOD__, 0xCF, 0x0368, 0x0368, 0x4AC8, 0x4AC8, "_MIN") M331 (__METHOD__, 0xD0, 0x0378, 0x0378, 0x4AD8, 0x4AD8, "_MAX") M331 (__METHOD__, 0xD1, 0x0388, 0x0388, 0x4AE8, 0x4AE8, "_ALN") M331 (__METHOD__, 0xD2, 0x0390, 0x0390, 0x4AF0, 0x4AF0, "_LEN") M331 (__METHOD__, 0xD3, 0x03A0, 0x03A0, 0x4B00, 0x4B00, "_BAS") M331 (__METHOD__, 0xD4, 0x03B0, 0x03B0, 0x4B10, 0x4B10, "_LEN") M331 (__METHOD__, 0xD5, 0x0410, 0x0410, 0x4B70, 0x4B70, "_RW") M331 (__METHOD__, 0xD6, 0x0418, 0x0418, 0x4B78, 0x4B78, "_MIN") M331 (__METHOD__, 0xD7, 0x0428, 0x0428, 0x4B88, 0x4B88, "_MAX") M331 (__METHOD__, 0xD8, 0x0438, 0x0438, 0x4B98, 0x4B98, "_ALN") M331 (__METHOD__, 0xD9, 0x0448, 0x0448, 0x4BA8, 0x4BA8, "_LEN") M331 (__METHOD__, 0xDA, 0x0480, 0x0480, 0x4BE0, 0x4BE0, "_HE") M331 (__METHOD__, 0xDB, 0x0483, 0x0483, 0x4BE3, 0x4BE3, "_LL") M331 (__METHOD__, 0xDC, 0x0484, 0x0484, 0x4BE4, 0x4BE4, "_SHR") M331 (__METHOD__, 0xDD, 0x04B5, 0x04B5, 0x4C15, 0x4C15, "_TYP") M331 (__METHOD__, 0xDE, 0x04B2, 0x04B2, 0x4C12, 0x4C12, "_BM") M331 (__METHOD__, 0xDF, 0x04B0, 0x04B0, 0x4C10, 0x4C10, "_SIZ") M331 (__METHOD__, 0xE0, 0x04C0, 0x04C0, 0x4C20, 0x4C20, "_DEC") M331 (__METHOD__, 0xE1, 0x04C8, 0x04C8, 0x4C28, 0x4C28, "_MIN") M331 (__METHOD__, 0xE2, 0x04D8, 0x04D8, 0x4C38, 0x4C38, "_MAX") M331 (__METHOD__, 0xE3, 0x04E8, 0x04E8, 0x4C48, 0x4C48, "_ALN") M331 (__METHOD__, 0xE4, 0x04F0, 0x04F0, 0x4C50, 0x4C50, "_LEN") M331 (__METHOD__, 0xE5, 0x0500, 0x0500, 0x4C60, 0x4C60, "_BAS") M331 (__METHOD__, 0xE6, 0x0510, 0x0510, 0x4C70, 0x4C70, "_LEN") M331 (__METHOD__, 0xE7, 0x0570, 0x0570, 0x4CD0, 0x4CD0, "_RW") M331 (__METHOD__, 0xE8, 0x0578, 0x0578, 0x4CD8, 0x4CD8, "_MIN") M331 (__METHOD__, 0xE9, 0x0588, 0x0588, 0x4CE8, 0x4CE8, "_MAX") M331 (__METHOD__, 0xEA, 0x0598, 0x0598, 0x4CF8, 0x4CF8, "_ALN") M331 (__METHOD__, 0xEB, 0x05A8, 0x05A8, 0x4D08, 0x4D08, "_LEN") M331 (__METHOD__, 0xEC, 0x05D0, 0x05D0, 0x4D30, 0x4D30, "_RW") M331 (__METHOD__, 0xED, 0x05D8, 0x05D8, 0x4D38, 0x4D38, "_MIN") M331 (__METHOD__, 0xEE, 0x05F8, 0x05F8, 0x4D58, 0x4D58, "_MAX") M331 (__METHOD__, 0xEF, 0x0618, 0x0618, 0x4D78, 0x4D78, "_ALN") M331 (__METHOD__, 0xF0, 0x0638, 0x0638, 0x4D98, 0x4D98, "_LEN") /* Checkings below are not exhaustive */ M331 (__METHOD__, 0xF1, 0x0870, 0x0870, 0x4FD0, 0x4FD0, "_RW") M331 (__METHOD__, 0xF2, 0x0878, 0x0878, 0x4FD8, 0x4FD8, "_BAS") M331 (__METHOD__, 0xF3, 0x0898, 0x0898, 0x4FF8, 0x4FF8, "_LEN") M331 (__METHOD__, 0xF4, 0x43D0, 0x43D0, 0x8B30, 0x8B30, "_RW") M331 (__METHOD__, 0xF5, 0x43D8, 0x43D8, 0x8B38, 0x8B38, "_BAS") M331 (__METHOD__, 0xF6, 0x43F8, 0x43F8, 0x8B58, 0x8B58, "_LEN") M331 (__METHOD__, 0xF7, 0x4640, 0x4640, 0x8DA0, 0x8DA0, "_RW") M331 (__METHOD__, 0xF8, 0x4648, 0x4648, 0x8DA8, 0x8DA8, "_BAS") M331 (__METHOD__, 0xF9, 0x4668, 0x4668, 0x8DC8, 0x8DC8, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/uartserialbus.asl0000700000175000017500000010706714773714156032534 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * UartSerialBus Resource Descriptor Macro */ Device (UART) { } Name (P45A, Package (0x28) { ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeEven, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeEven, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeEven, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeNone, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeNone, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeNone, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeSpace, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeSpace, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeSpace, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeMark, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeMark, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeMark, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsZero, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOne, 0xA5, BigEndian, ParityTypeOdd, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOnePlusHalf, 0xA5, BigEndian, ParityTypeOdd, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsFive, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSix, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSeven, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsNine, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsZero, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOne, 0xA5, LittleEndian, ParityTypeOdd, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOnePlusHalf, 0xA5, LittleEndian, ParityTypeOdd, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsFive, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSix, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSeven, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsNine, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsZero, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Shared, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOne, 0xA5, LittleEndian, ParityTypeOdd, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Shared, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOnePlusHalf, 0xA5, LittleEndian, ParityTypeOdd, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsFive, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSix, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSeven, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsNine, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOne, 0xA5, LittleEndian, ParityTypeNone, FlowControlNone, 0x3300, 0x4400, "\\UART", 0x00, ResourceConsumer, , Exclusive, ) } }) Name (P45B, Package (0x28) { ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeEven, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeEven, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeEven, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeNone, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeNone, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeNone, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeSpace, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeSpace, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeSpace, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeMark, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeMark, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeMark, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsZero, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOne, 0xA5, BigEndian, ParityTypeOdd, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOnePlusHalf, 0xA5, BigEndian, ParityTypeOdd, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsFive, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSix, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSeven, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsNine, StopBitsTwo, 0xA5, BigEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsZero, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOne, 0xA5, LittleEndian, ParityTypeOdd, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOnePlusHalf, 0xA5, LittleEndian, ParityTypeOdd, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsFive, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSix, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSeven, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsNine, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsZero, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Shared, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOne, 0xA5, LittleEndian, ParityTypeOdd, FlowControlNone, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Shared, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOnePlusHalf, 0xA5, LittleEndian, ParityTypeOdd, FlowControlXON, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsFive, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSix, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsSeven, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsNine, StopBitsTwo, 0xA5, LittleEndian, ParityTypeOdd, FlowControlHardware, 0x3377, 0x4488, "\\UART", 0x8C, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsOne, 0xA5, LittleEndian, ParityTypeNone, FlowControlNone, 0x3300, 0x4400, "\\UART", 0x00, ResourceConsumer, , Exclusive, ) } }) Method (RT25, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "UartSerialBus Resource Descriptor Macro", "uartserialbus.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P45A) != SizeOf (P45B))) { ERR (__METHOD__, 0xB6, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P45A), "p45A", P45A, P45B) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeEven, FlowControlNone, 0x3300, 0x4400, "\\UART", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) UartSerialBusV2 (0xFFEEDDCC, DataBitsEight, StopBitsTwo, 0xA5, BigEndian, ParityTypeEven, FlowControlNone, 0x3300, 0x4400, "\\UART", 0xEE, ResourceConsumer, , Exclusive, RawDataBuffer (0x07) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6 }) } M331 (__METHOD__, 0x01, 0x38, 0x38, 0x0150, 0x0150, "_FLC") M331 (__METHOD__, 0x02, 0x3A, 0x3A, 0x0152, 0x0152, "_STB") M331 (__METHOD__, 0x03, 0x3C, 0x3C, 0x0154, 0x0154, "_LEN") M331 (__METHOD__, 0x04, 0x3F, 0x3F, 0x0157, 0x0157, "_END") M331 (__METHOD__, 0x05, 0x60, 0x60, 0x0178, 0x0178, "_SPE") M331 (__METHOD__, 0x06, 0x80, 0x80, 0x0198, 0x0198, "_RXL") M331 (__METHOD__, 0x07, 0x90, 0x90, 0x01A8, 0x01A8, "_TXL") M331 (__METHOD__, 0x08, 0xA0, 0xA0, 0x01B8, 0x01B8, "_PAR") M331 (__METHOD__, 0x09, 0xA8, 0xA8, 0x01C0, 0x01C0, "_LIN") M331 (__METHOD__, 0x0A, 0xB0, 0xB0, 0x01C8, 0x01C8, "_VEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/irq.asl0000700000175000017500000001675614773714156030446 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * IRQ() Interrupt Resource Descriptor Macro */ Name (P400, Package (0x12) { ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0} }, ResourceTemplate () { IRQ (Level, ActiveHigh, Shared, ) {1} }, ResourceTemplate () { IRQ (Level, ActiveLow, Exclusive, ) {2} }, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {3} }, ResourceTemplate () { IRQ (Edge, ActiveHigh, Exclusive, ) {4} }, ResourceTemplate () { IRQ (Edge, ActiveHigh, Shared, ) {5} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Exclusive, ) {6} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, ) {7} }, ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {8} }, ResourceTemplate () { IRQ (Level, ActiveHigh, Shared, ) {9} }, ResourceTemplate () { IRQ (Level, ActiveLow, Exclusive, ) {10} }, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {11} }, ResourceTemplate () { IRQ (Edge, ActiveHigh, Exclusive, ) {12} }, ResourceTemplate () { IRQ (Edge, ActiveHigh, Shared, ) {13} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Exclusive, ) {14} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, ) {15} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Exclusive, ) {} }, ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.2.1 IRQ Descriptor IRQ Descriptor layout (length = 3): Byte 0 (Tag Bits): Value = 00100011B (0x23) (Type = 0, small item name = 0x4, length = 3), Byte 1 (IRQ mask bits[7:0]): IRQ0 <=> bit[0] Byte 2 (IRQ mask bits[15:8]): IRQ8 <=> bit[0] Byte 3 (IRQ Information): Bit[4] Interrupt is shareable, _SHR Bit[3] Interrupt Polarity, _LL 0 Active-High - This interrupt is sampled when the signal is high, or true 1 Active-Low - This interrupt is sampled when the signal is low, or false. Bit[0] Interrupt Mode, _HE 0 Level-Triggered - Interrupt is triggered in response to signal in a low state. 1 Edge-Triggered - Interrupt is triggered in response to a change in signal state from low to high. */ Name (P401, Package (0x12) { ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0} }, ResourceTemplate () { IRQ (Level, ActiveHigh, Shared, ) {1} }, ResourceTemplate () { IRQ (Level, ActiveLow, Exclusive, ) {2} }, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {3} }, ResourceTemplate () { IRQ (Edge, ActiveHigh, Exclusive, ) {4} }, ResourceTemplate () { IRQ (Edge, ActiveHigh, Shared, ) {5} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Exclusive, ) {6} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, ) {7} }, ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {8} }, ResourceTemplate () { IRQ (Level, ActiveHigh, Shared, ) {9} }, ResourceTemplate () { IRQ (Level, ActiveLow, Exclusive, ) {10} }, ResourceTemplate () { IRQ (Level, ActiveLow, Shared, ) {11} }, ResourceTemplate () { IRQ (Edge, ActiveHigh, Exclusive, ) {12} }, ResourceTemplate () { IRQ (Edge, ActiveHigh, Shared, ) {13} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Exclusive, ) {14} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, ) {15} }, ResourceTemplate () { IRQ (Edge, ActiveLow, Exclusive, ) {} }, ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} } }) Method (RT01, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "IRQ Resource Descriptor Macro", "irq.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x12, "p400", P400, P401) Local0 = ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, ) {} IRQ (Edge, ActiveLow, Shared, ) {} } M331 (__METHOD__, 0x01, 0x18, 0x18, 0x38, 0x38, "_HE") M331 (__METHOD__, 0x02, 0x1B, 0x1B, 0x3B, 0x3B, "_LL") M331 (__METHOD__, 0x03, 0x1C, 0x1C, 0x3C, 0x3C, "_SHR") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/fixeddma.asl0000700000175000017500000001056614773714156031425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * FixedDma Resource Descriptor Macro */ Name (P450, Package (0x08) { ResourceTemplate () { FixedDMA (0xF1F2, 0x1234, Width8bit, ) }, ResourceTemplate () { FixedDMA (0xE1E2, 0x000F, Width16bit, ) }, ResourceTemplate () { FixedDMA (0xD1D2, 0x00F0, Width32bit, ) }, ResourceTemplate () { FixedDMA (0xC1C2, 0x0F00, Width64bit, ) }, ResourceTemplate () { FixedDMA (0xB1B2, 0xF000, Width128bit, ) }, ResourceTemplate () { FixedDMA (0xA1A2, 0xFFFF, Width256bit, ) }, ResourceTemplate () { FixedDMA (0x9192, 0x11D7, Width32bit, ) }, ResourceTemplate () { FixedDMA (0x8182, 0x11D7, Width32bit, ) } }) Name (P451, Package (0x08) { ResourceTemplate () { FixedDMA (0xF1F2, 0x1234, Width8bit, ) }, ResourceTemplate () { FixedDMA (0xE1E2, 0x000F, Width16bit, ) }, ResourceTemplate () { FixedDMA (0xD1D2, 0x00F0, Width32bit, ) }, ResourceTemplate () { FixedDMA (0xC1C2, 0x0F00, Width64bit, ) }, ResourceTemplate () { FixedDMA (0xB1B2, 0xF000, Width128bit, ) }, ResourceTemplate () { FixedDMA (0xA1A2, 0xFFFF, Width256bit, ) }, ResourceTemplate () { FixedDMA (0x9192, 0x11D7, Width32bit, ) }, ResourceTemplate () { FixedDMA (0x8182, 0x11D7, Width32bit, ) } }) Method (RT20, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "FixedDMA Resource Descriptor Macro", "fixeddma.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P450) != SizeOf (P451))) { ERR (__METHOD__, 0xB1, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P450), "p450", P450, P451) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { FixedDMA (0xE1E2, 0x000F, Width16bit, ) FixedDMA (0xD1D2, 0x00F0, Width32bit, ) } M331 (__METHOD__, 0x01, 0x08, 0x08, 0x38, 0x38, "_DMA") M331 (__METHOD__, 0x02, 0x18, 0x18, 0x48, 0x48, "_TYP") M331 (__METHOD__, 0x03, 0x28, 0x28, 0x58, 0x58, "_SIZ") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/pinconfig.asl0000700000175000017500000010202314773714156031606 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * PinConfig Resource Descriptor Macro */ Name (P45E, Package (0x21) { ResourceTemplate () { PinConfig (Exclusive, 0x00 /* Default */, 0x1000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x01 /* Bias Pull-up */, 0x2000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x000D } }, ResourceTemplate () { PinConfig (Exclusive, 0x02 /* Bias Pull-down */, 0x3000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x03 /* Bias Default */, 0x4000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x04 /* Bias Disable */, 0x5000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x05 /* Bias High Impedance */, 0x6000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x06 /* Bias Bus Hold */, 0x7000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x07 /* Drive Open Drain */, 0x8000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x08 /* Drive Open Source */, 0x9000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x09 /* Drive Push Pull */, 0xA000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x0A /* Drive Strength */, 0xB000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x0B /* Slew Rate */, 0xC000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x0C /* Input Debounce */, 0xD000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x0D /* Input Schmitt Trigger */, 0xE000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x80, /* Vendor Defined */ 0xF000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0xFE, /* Vendor Defined */ 0xF100, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x00 /* Default */, 0x1000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x01 /* Bias Pull-up */, 0x2000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x000D } }, ResourceTemplate () { PinConfig (Shared, 0x02 /* Bias Pull-down */, 0x3000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x03 /* Bias Default */, 0x4000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x04 /* Bias Disable */, 0x5000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x05 /* Bias High Impedance */, 0x6000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x06 /* Bias Bus Hold */, 0x7000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x07 /* Drive Open Drain */, 0x8000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x08 /* Drive Open Source */, 0x9000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x09 /* Drive Push Pull */, 0xA000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x0A /* Drive Strength */, 0xB000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x0B /* Slew Rate */, 0xC000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x0C /* Input Debounce */, 0xD000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x0D /* Input Schmitt Trigger */, 0xE000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x80, /* Vendor Defined */ 0xF000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0xFE, /* Vendor Defined */ 0xF100, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x00 /* Default */, 0x0000, "\\SB.GP01", 0x00, ResourceConsumer, ,) { // Pin list 0x0001, 0x0002 } } }) Name (P45F, Package (0x21) { ResourceTemplate () { PinConfig (Exclusive, 0x00 /* Default */, 0x1000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x01 /* Bias Pull-up */, 0x2000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x000D } }, ResourceTemplate () { PinConfig (Exclusive, 0x02 /* Bias Pull-down */, 0x3000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x03 /* Bias Default */, 0x4000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x04 /* Bias Disable */, 0x5000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x05 /* Bias High Impedance */, 0x6000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x06 /* Bias Bus Hold */, 0x7000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x07 /* Drive Open Drain */, 0x8000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x08 /* Drive Open Source */, 0x9000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x09 /* Drive Push Pull */, 0xA000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x0A /* Drive Strength */, 0xB000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x0B /* Slew Rate */, 0xC000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x0C /* Input Debounce */, 0xD000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x0D /* Input Schmitt Trigger */, 0xE000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x80, /* Vendor Defined */ 0xF000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0xFE, /* Vendor Defined */ 0xF100, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x00 /* Default */, 0x1000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x01 /* Bias Pull-up */, 0x2000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x000D } }, ResourceTemplate () { PinConfig (Shared, 0x02 /* Bias Pull-down */, 0x3000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x03 /* Bias Default */, 0x4000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x04 /* Bias Disable */, 0x5000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x05 /* Bias High Impedance */, 0x6000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x06 /* Bias Bus Hold */, 0x7000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x07 /* Drive Open Drain */, 0x8000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x08 /* Drive Open Source */, 0x9000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x09 /* Drive Push Pull */, 0xA000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x0A /* Drive Strength */, 0xB000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x0B /* Slew Rate */, 0xC000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x0C /* Input Debounce */, 0xD000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x0D /* Input Schmitt Trigger */, 0xE000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0x80, /* Vendor Defined */ 0xF000, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Shared, 0xFE, /* Vendor Defined */ 0xF100, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } }, ResourceTemplate () { PinConfig (Exclusive, 0x00 /* Default */, 0x0000, "\\SB.GP01", 0x00, ResourceConsumer, ,) { // Pin list 0x0001, 0x0002 } } }) Method (RT27, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "PinConfig Resource Descriptor Macro", "pinconfig.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P45E) != SizeOf (P45F))) { ERR (__METHOD__, 0xB3, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P45E), "P45E", P45E, P45F) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { PinConfig (Shared, 0x0C /* Input Debounce */, 0xABCD, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } PinConfig (Shared, 0x0C /* Input Debounce */, 0xABCD, "\\SB.GP01", 0x00, ResourceConsumer, , RawDataBuffer (0x03) // Vendor Data { 0x0A, 0x0B, 0x0C }) { // Pin list 0x00AA, 0x00BB, 0x00CC, 0x00DD } } M331 (__METHOD__, 0x01, 0x20, 0x20, 0x0160, 0x0160, "_SHR") M331 (__METHOD__, 0x01, 0x30, 0x30, 0x0170, 0x0170, "_TYP") M331 (__METHOD__, 0x01, 0x38, 0x38, 0x0178, 0x0178, "_VAL") M331 (__METHOD__, 0x01, 0xA0, 0xA0, 0x01E0, 0x01E0, "_PIN") M331 (__METHOD__, 0x01, 0x0128, 0x0128, 0x0268, 0x0268, "_VEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/wordio.asl0000700000175000017500000012415614773714156031150 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Word IO Resource Descriptor Macro */ Name (P420, Package (0x25) { ResourceTemplate () { WordIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x01, "", , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F, "P", , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xF0, "PATH", , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0x0000, // Granularity 0x0000, // Range Minimum 0x0000, // Range Maximum 0x0000, // Translation Offset 0x0000, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F,, , TypeStatic, DenseTranslation) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.3 Word Address Space Descriptor I/O Word Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10001000B (0x88) (Type = 1, Large item name = 0x8) Byte 1 (Length, bits[7:0]): Variable: Value = 13 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 1 I/O range Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Bits[7:6] Reserved (must be 0) Bit[5] Sparse Translation, _TRS. This bit is only meaningful if Bit[4] is set. 1 SparseTranslation: The primary-side memory address of any specific I/O port within the secondary-side range can be found using the following function. address = (((port & 0xFFFc) << 10) || (port & 0xFFF)) + _TRA In the address used to access the I/O port, bits[11:2] must be identical to bits[21:12], this gives four bytes of I/O ports on each 4 KB page. 0 DenseTranslation: The primary-side memory address of any specific I/O port within the secondary-side range can be found using the following function. address = port + _TRA Bit[4] I/O to Memory Translation, _TTP 1 TypeTranslation: This resource, which is I/O on the secondary side of the bridge, is memory on the primary side of the bridge. 0 TypeStatic: This resource, which is I/O on the secondary side of the bridge, is also I/O on the primary side of the bridge. Bit[3:2] Reserved (must be 0) Bit[1:0] _RNG 3 Memory window covers the entire range 2 ISARangesOnly. This flag is for bridges on systems with multiple bridges. Setting this bit means the memory window specified in this descriptor is limited to the ISA I/O addresses that fall within the specified window. The ISA I/O ranges are: n000-n0FF, n400-n4FF, n800-n8FF, nC00-nCFF. This bit can only be set for bridges entirely configured through ACPI namespace. 1 NonISARangesOnly. This flag is for bridges on systems with multiple bridges. Setting this bit means the memory window specified in this descriptor is limited to the non-ISA I/O addresses that fall within the specified window. The non-ISA I/O ranges are: n100-n3FF, n500-n7FF, n900-nBFF, nD00-nFFF. This bit can only be set for bridges entirely configured through ACPI namespace. 0 Reserved Byte 6 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 16 bits) must be a number (2**n-1). Byte 7 (Address space granularity, _GRA bits[15:8]) Byte 8 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 9 (Address range minimum, _MIN bits[15:8]) Byte 10 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 11 (Address range maximum, _MAX bits[15:8]) Byte 12 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 13 (Address Translation offset, _TRA bits[15:8]) Byte 14 (Address Length, _LEN bits [7:0]) Byte 15 (Address Length, _LEN bits[15:8]) Byte 16 (Resource Source Index): (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source String (Resource Source): (Optional) If present, the device that uses this descriptor consumes its resources from the resources produced by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P421, Package (0x25) { /* Byte 4 (General Flags) of Word Address Space Descriptor */ ResourceTemplate () { WordIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceProducer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, /* Byte 5 (Type Specific Flags) of Word Address Space Descriptor */ ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, /* Particular cases */ ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) }, /* Resource Source */ ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x01, "", , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F, "P", , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xF0, "PATH", , TypeStatic, DenseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , TypeStatic, DenseTranslation) }, /* Particular cases */ ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, ResourceTemplate () { WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0x0000, // Granularity 0x0000, // Range Minimum 0x0000, // Range Maximum 0x0000, // Translation Offset 0x0000, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F,, , TypeStatic, DenseTranslation) } }) Method (RT0E, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "WordIO Resource Descriptor Macro", "wordio.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x25, "p420", P420, P421) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { WordIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) WordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, , TypeStatic, DenseTranslation) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0xA1, 0xA1, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0xA2, 0xA2, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0xA3, 0xA3, "_MAF") M331 (__METHOD__, 0x04, 0x28, 0x28, 0xA8, 0xA8, "_RNG") M331 (__METHOD__, 0x05, 0x2C, 0x2C, 0xAC, 0xAC, "_TTP") M331 (__METHOD__, 0x06, 0x2D, 0x2D, 0xAD, 0xAD, "_TRS") M331 (__METHOD__, 0x07, 0x30, 0x30, 0xB0, 0xB0, "_GRA") M331 (__METHOD__, 0x08, 0x40, 0x40, 0xC0, 0xC0, "_MIN") M331 (__METHOD__, 0x09, 0x50, 0x50, 0xD0, 0xD0, "_MAX") M331 (__METHOD__, 0x0A, 0x60, 0x60, 0xE0, 0xE0, "_TRA") M331 (__METHOD__, 0x0B, 0x70, 0x70, 0xF0, 0xF0, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/dwordspace.asl0000700000175000017500000007433514773714156032003 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * DWord Space Resource Descriptor Macro */ Name (P42E, Package (0x1B) { ResourceTemplate () { DWordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC1, ResourceProducer, PosDecode, MinNotFixed, MaxFixed, 0x1A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC2, ResourceProducer, PosDecode, MinFixed, MaxNotFixed, 0x2A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC3, ResourceProducer, PosDecode, MinFixed, MaxFixed, 0x3A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC4, ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, 0x4A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC5, ResourceProducer, SubDecode, MinNotFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC6, ResourceProducer, SubDecode, MinFixed, MaxNotFixed, 0x6A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC7, ResourceProducer, SubDecode, MinFixed, MaxFixed, 0x7A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC8, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x8A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC9, ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, 0x9A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCA, ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, 0xAA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCB, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xBA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCC, ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, 0xCA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCD, ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, 0xDA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCE, ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, 0xEA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xFF, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0xFA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x00, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0xFF, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x01, "", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F, "P", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xF0, "PATH", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x00, 0x00000000, // Granularity 0x00000000, // Range Minimum 0x00000000, // Range Maximum 0x00000000, // Translation Offset 0x00000000, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F,, ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.2 DWord Address Space Descriptor Memory DWord Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10000111B (0x87) (Type = 1, Large item name = 0x7) Byte 1 (Length, bits[7:0]): Variable: Value = 23 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 192-255 Hardware Vendor Defined Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Byte 6 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 32 bits) must be a number (2**n-1). Byte 7 (Address space granularity, _GRA bits[15:8]) Byte 8 (Address space granularity, _GRA bits[23:16]) Byte 9 (Address space granularity, _GRA bits[31:24]) Byte 10 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 11 (Address range minimum, _MIN bits[15:8]) Byte 12 (Address range minimum, _MIN bits[23:16]) Byte 13 (Address range minimum, _MIN bits[31:24]) Byte 14 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 15 (Address range maximum, _MAX bits[15:8]) Byte 16 (Address range maximum, _MAX bits[23:16]) Byte 17 (Address range maximum, _MAX bits[31:24]) Byte 18 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 19 (Address Translation offset, _TRA bits[15:8]) Byte 20 (Address Translation offset, _TRA bits[23:16]) Byte 21 (Address Translation offset, _TRA bits[31:24]) Byte 22 (Address Length, _LEN bits [7:0]) Byte 23 (Address Length, _LEN bits[15:8]) Byte 24 (Address Length, _LEN bits[23:16]) Byte 25 (Address Length, _LEN bits[31:24]) Byte 26 (Resource Source Index): (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source String (Resource Source): (Optional) If present, the device that uses this descriptor consumes its resources from the resources produced by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P42F, Package (0x1B) { /* Byte 4 (General Flags) of DWord Address Space Descriptor */ ResourceTemplate () { DWordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC1, ResourceProducer, PosDecode, MinNotFixed, MaxFixed, 0x1A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC2, ResourceProducer, PosDecode, MinFixed, MaxNotFixed, 0x2A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC3, ResourceProducer, PosDecode, MinFixed, MaxFixed, 0x3A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC4, ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, 0x4A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC5, ResourceProducer, SubDecode, MinNotFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC6, ResourceProducer, SubDecode, MinFixed, MaxNotFixed, 0x6A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC7, ResourceProducer, SubDecode, MinFixed, MaxFixed, 0x7A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC8, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x8A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC9, ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, 0x9A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCA, ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, 0xAA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCB, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xBA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCC, ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, 0xCA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCD, ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, 0xDA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xCE, ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, 0xEA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xFF, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0xFA, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, /* Byte 5 (Type Specific Flags) of DWord Address Space Descriptor */ ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x00, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0xFF, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, /* Particular cases */ ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) }, /* Resource Source */ ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x01, "", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F, "P", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xF0, "PATH", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) }, /* Particular cases */ ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x00, 0x00000000, // Granularity 0x00000000, // Range Minimum 0x00000000, // Range Maximum 0x00000000, // Translation Offset 0x00000000, // Length 0xFF, "PATHPATHPATH", ) }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F,, ) } }) Method (RT15, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "DWordSpace Resource Descriptor Macro", "dwordspace.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x1B, "p42e", P42E, P42F) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { DWordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) DWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, ) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0xF1, 0xF1, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0xF2, 0xF2, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0xF3, 0xF3, "_MAF") M331 (__METHOD__, 0x07, 0x30, 0x30, 0x0100, 0x0100, "_GRA") M331 (__METHOD__, 0x08, 0x50, 0x50, 0x0120, 0x0120, "_MIN") M331 (__METHOD__, 0x09, 0x70, 0x70, 0x0140, 0x0140, "_MAX") M331 (__METHOD__, 0x0A, 0x90, 0x90, 0x0160, 0x0160, "_TRA") M331 (__METHOD__, 0x0B, 0xB0, 0xB0, 0x0180, 0x0180, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/gpioio.asl0000700000175000017500000046363314773714156031141 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * GpioIO Resource Descriptor Macro */ Device (GPIO) { } Name (P454, Package (0xC4) { ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNoneAndPreserve, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNoneAndPreserve, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNoneAndPreserve, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0000, 0x0000, IoRestrictionNone, "\\GPIO", 0x00, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } } }) Name (P455, Package (0xC4) { ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Shared, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (ExclusiveAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDown, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullNone, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNone, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionInputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceProducer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionNoneAndPreserve, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } }, ResourceTemplate () { GpioIo (SharedAndWake, PullDefault, 0x0DEB, 0xABCD, IoRestrictionNoneAndPreserve, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2 } }, ResourceTemplate () { GpioIo (Shared, PullUp, 0x0DEB, 0xABCD, IoRestrictionNoneAndPreserve, "\\GPIO", 0xEE, ResourceConsumer, , ) { // Pin list 0x11E1 } }, ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0000, 0x0000, IoRestrictionNone, "\\GPIO", 0x00, ResourceConsumer, , ) { // Pin list 0x11E1, 0x22E2, 0x33E3 } } }) Method (RT22, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "GpioIO Resource Descriptor Macro", "gpioio.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P454) != SizeOf (P455))) { ERR (__METHOD__, 0xB3, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P454), "p454", P454, P455) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } GpioIo (Exclusive, PullUp, 0x0DEB, 0xABCD, IoRestrictionOutputOnly, "\\GPIO", 0xEE, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0xC1, 0xC2, 0xC3, 0xC4 }) { // Pin list 0x11E1, 0x22E2, 0x33E3 } } M331 (__METHOD__, 0x01, 0x3B, 0x3B, 0x0173, 0x0173, "_SHR") M331 (__METHOD__, 0x02, 0x48, 0x48, 0x0180, 0x0180, "_PPI") M331 (__METHOD__, 0x03, 0x60, 0x60, 0x0198, 0x0198, "_DBT") M331 (__METHOD__, 0x04, 0x50, 0x50, 0x0188, 0x0188, "_DRS") M331 (__METHOD__, 0x05, 0x38, 0x38, 0x0170, 0x0170, "_IOR") M331 (__METHOD__, 0x06, 0xB8, 0xB8, 0x01F0, 0x01F0, "_PIN") M331 (__METHOD__, 0x07, 0x0118, 0x0118, 0x0250, 0x0250, "_VEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/extendedio.asl0000700000175000017500000013242614773714156031774 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Extended IO Resource Descriptor Macro */ Name (P422, Package (0x22) { ResourceTemplate () { ExtendedIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0x0000000000000000, // Type-Specific Attributes , TypeTranslation, SparseTranslation) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.4 Extended Address Space Descriptor I/O Extended Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10001011B (0x8b) (Type = 1, Large item name = 0xB) Byte 1 (Length, bits[7:0]): Variable: Value = 53 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 1 I/O range Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Bits[7:6] Reserved (must be 0) Bit[5] Sparse Translation, _TRS. This bit is only meaningful if Bit[4] is set. 1 SparseTranslation: The primary-side memory address of any specific I/O port within the secondary-side range can be found using the following function. address = (((port & 0xFFFc) << 10) || (port & 0xFFF)) + _TRA In the address used to access the I/O port, bits[11:2] must be identical to bits[21:12], this gives four bytes of I/O ports on each 4 KB page. 0 DenseTranslation: The primary-side memory address of any specific I/O port within the secondary-side range can be found using the following function. address = port + _TRA Bit[4] I/O to Memory Translation, _TTP 1 TypeTranslation: This resource, which is I/O on the secondary side of the bridge, is memory on the primary side of the bridge. 0 TypeStatic: This resource, which is I/O on the secondary side of the bridge, is also I/O on the primary side of the bridge. Bit[3:2] Reserved (must be 0) Bit[1:0] _RNG 3 Memory window covers the entire range 2 ISARangesOnly. This flag is for bridges on systems with multiple bridges. Setting this bit means the memory window specified in this descriptor is limited to the ISA I/O addresses that fall within the specified window. The ISA I/O ranges are: n000-n0FF, n400-n4FF, n800-n8FF, nC00-nCFF. This bit can only be set for bridges entirely configured through ACPI namespace. 1 NonISARangesOnly. This flag is for bridges on systems with multiple bridges. Setting this bit means the memory window specified in this descriptor is limited to the non-ISA I/O addresses that fall within the specified window. The non-ISA I/O ranges are: n100-n3FF, n500-n7FF, n900-nBFF, nD00-nFFF. This bit can only be set for bridges entirely configured through ACPI namespace. 0 Reserved Byte 6 (Revision ID): Indicates the revision of the Extended Address Space descriptor. For ACPI 3.0, this value is 1. Byte 7 (Reserved): 0 Byte 8 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 32 bits) must be a number (2**n-1). Byte 9 (Address space granularity, _GRA bits[15:8]) Byte 10 (Address space granularity, _GRA bits[23:16]) Byte 11 (Address space granularity, _GRA bits[31:24]) Byte 12 (Address space granularity, _GRA bits[39:32]) Byte 13 (Address space granularity, _GRA bits[47:40]) Byte 14 (Address space granularity, _GRA bits[55:48]) Byte 15 (Address space granularity, _GRA bits[63:56]) Byte 16 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 17 (Address range minimum, _MIN bits[15:8]) Byte 18 (Address range minimum, _MIN bits[23:16]) Byte 19 (Address range minimum, _MIN bits[31:24]) Byte 20 (Address range minimum, _MIN bits[39:32]) Byte 21 (Address range minimum, _MIN bits[47:40]) Byte 22 (Address range minimum, _MIN bits[55:48]) Byte 23 (Address range minimum, _MIN bits[63:56]) Byte 24 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 25 (Address range maximum, _MAX bits[15:8]) Byte 26 (Address range maximum, _MAX bits[23:16]) Byte 27 (Address range maximum, _MAX bits[31:24]) Byte 28 (Address range maximum, _MAX bits[39:32]) Byte 29 (Address range maximum, _MAX bits[47:40]) Byte 30 (Address range maximum, _MAX bits[55:48]) Byte 31 (Address range maximum, _MAX bits[63:56]) Byte 32 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 33 (Address Translation offset, _TRA bits[15:8]) Byte 34 (Address Translation offset, _TRA bits[23:16]) Byte 35 (Address Translation offset, _TRA bits[31:24]) Byte 36 (Address Translation offset, _TRA bits[39:32]) Byte 37 (Address Translation offset, _TRA bits[47:40]) Byte 38 (Address Translation offset, _TRA bits[55:48]) Byte 39 (Address Translation offset, _TRA bits[63:56]) Byte 40 (Address Length, _LEN bits [7:0]) Byte 41 (Address Length, _LEN bits[15:8]) Byte 42 (Address Length, _LEN bits[23:16]) Byte 43 (Address Length, _LEN bits[31:24]) Byte 44 (Address Length, _LEN bits[39:32]) Byte 45 (Address Length, _LEN bits[47:40]) Byte 46 (Address Length, _LEN bits[55:48]) Byte 47 (Address Length, _LEN bits[63:56]) Byte 48 (Type Specific Attribute, _ATT bits [7:0]): Attributes that are specific to each resource type. The meaning of the attributes in this field depends on the value of the Resource Type field (see above). For the Memory Resource Type, the definition is defined section 6.4.3.5.4.1. For other Resource Types, this field is reserved to 0 Byte 49 (Type Specific Attribute, _ATT bits[15:8]) Byte 50 (Type Specific Attribute, _ATT bits[23:16]) Byte 51 (Type Specific Attribute, _ATT bits[31:24]) Byte 52 (Type Specific Attribute, _ATT bits[39:32]) Byte 53 (Type Specific Attribute, _ATT bits[47:40]) Byte 54 (Type Specific Attribute, _ATT bits[55:48]) Byte 55 (Type Specific Attribute, _ATT bits[63:56]) */ Name (P423, Package (0x22) { /* Byte 4 (General Flags) of Extended Address Space Descriptor */ ResourceTemplate () { ExtendedIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceProducer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, /* Byte 5 (Type Specific Flags) of Extended Address Space Descriptor */ ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) }, /* Particular cases */ ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes , TypeStatic, DenseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) }, ResourceTemplate () { ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0x0000000000000000, // Type-Specific Attributes , TypeTranslation, SparseTranslation) } }) Method (RT0F, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "ExtendedIo Resource Descriptor Macro", "extendedio.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x22, "p422", P422, P423) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { ExtendedIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) ExtendedIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeStatic, DenseTranslation) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0x01E1, 0x01E1, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0x01E2, 0x01E2, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0x01E3, 0x01E3, "_MAF") M331 (__METHOD__, 0x04, 0x28, 0x28, 0x01E8, 0x01E8, "_RNG") M331 (__METHOD__, 0x05, 0x2C, 0x2C, 0x01EC, 0x01EC, "_TTP") M331 (__METHOD__, 0x06, 0x2D, 0x2D, 0x01ED, 0x01ED, "_TRS") M331 (__METHOD__, 0x07, 0x40, 0x40, 0x0200, 0x0200, "_GRA") M331 (__METHOD__, 0x08, 0x80, 0x80, 0x0240, 0x0240, "_MIN") M331 (__METHOD__, 0x09, 0xC0, 0xC0, 0x0280, 0x0280, "_MAX") M331 (__METHOD__, 0x0A, 0x0100, 0x0100, 0x02C0, 0x02C0, "_TRA") M331 (__METHOD__, 0x0B, 0x0140, 0x0140, 0x0300, 0x0300, "_LEN") M331 (__METHOD__, 0x0C, 0x0180, 0x0180, 0x0340, 0x0340, "_ATT") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/MAIN.asl0000700000175000017500000000410314773714156030356 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("descriptor", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/functional/descriptor/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/functional/descriptor/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/rtemplate.asl0000700000175000017500000001047614773714156031641 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros */ Name (Z029, 0x1D) Name (LPN0, 0x00) Name (LPC0, 0x00) Method (M330, 5, NotSerialized) { LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { /* Operand */ Local0 = DerefOf (Arg3 [LPC0]) /* Expected result */ Local1 = DerefOf (Arg4 [LPC0]) If ((Local0 != Local1)) { ERR (Arg0, Z029, __LINE__, 0x00, 0x00, LPC0, Arg2) } LPN0-- LPC0++ } Return (0x00) } Method (M331, 7, NotSerialized) { If ((Arg2 != Arg3)) { ERR (Arg0, Z029, __LINE__, Arg6, Arg6, Arg2, Arg3) } If ((Arg4 != Arg5)) { ERR (Arg0, Z029, __LINE__, Arg6, Arg6, Arg4, Arg5) } } Method (M332, 6, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { /* Operand 1 */ Local0 = DerefOf (Arg3 [LPC0]) /* Operand 2 */ Local1 = DerefOf (Arg4 [LPC0]) /* Expected result */ Local2 = DerefOf (Arg5 [LPC0]) Local3 = ConcatenateResTemplate (Local0, Local1) If ((Local3 != Local2)) { Debug = Local3 Debug = Local2 ERR (Arg0, Z029, __LINE__, 0x00, 0x00, LPC0, Arg2) } LPN0-- LPC0++ } Return (0x00) } /* components/utilities/utmisc.c AcpiUtGenerateChecksum() analog */ Method (M335, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Local0 = 0x00 /* sum */ LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { Local1 = DerefOf (Arg0 [LPC0]) Local0 += Local1 Local0 %= 0x0100 LPN0-- LPC0++ } Local0 = (0x00 - Local0) Local0 %= 0x0100 Debug = "checksum" Debug = Local0 Return (Local0) } /* Updates the last byte of each buffer in package with checksum */ Method (M334, 2, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = Arg1 LPC0 = 0x00 While (LPN0) { Local1 = DerefOf (Arg0 [LPC0]) Local2 = SizeOf (Local1) If (Local2) { Local2-- Local3 = M335 (Local1, Local2) Local1 [Local2] = Local3 Arg0 [LPC0] = Local1 } LPN0-- LPC0++ } Return (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/qwordio.asl0000700000175000017500000012755714773714156031341 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * QWord IO Resource Descriptor Macro */ Name (P416, Package (0x25) { ResourceTemplate () { QWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x01, "", , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F, "P", , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xF0, "PATH", , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F,, , TypeStatic, DenseTranslation) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.1 QWord Address Space Descriptor I/O QWord Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10001010B (0x8a) (Type = 1, Large item name = 0xA) Byte 1 (Length, bits[7:0]): Variable: Value = 43 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 1 I/O range Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Bits[7:6] Reserved (must be 0) Bit[5] Sparse Translation, _TRS. This bit is only meaningful if Bit[4] is set. 1 SparseTranslation: The primary-side memory address of any specific I/O port within the secondary-side range can be found using the following function. address = (((port & 0xFFFc) << 10) || (port & 0xFFF)) + _TRA In the address used to access the I/O port, bits[11:2] must be identical to bits[21:12], this gives four bytes of I/O ports on each 4 KB page. 0 DenseTranslation: The primary-side memory address of any specific I/O port within the secondary-side range can be found using the following function. address = port + _TRA Bit[4] I/O to Memory Translation, _TTP 1 TypeTranslation: This resource, which is I/O on the secondary side of the bridge, is memory on the primary side of the bridge. 0 TypeStatic: This resource, which is I/O on the secondary side of the bridge, is also I/O on the primary side of the bridge. Bit[3:2] Reserved (must be 0) Bit[1:0] _RNG 3 Memory window covers the entire range 2 ISARangesOnly. This flag is for bridges on systems with multiple bridges. Setting this bit means the memory window specified in this descriptor is limited to the ISA I/O addresses that fall within the specified window. The ISA I/O ranges are: n000-n0FF, n400-n4FF, n800-n8FF, nC00-nCFF. This bit can only be set for bridges entirely configured through ACPI namespace. 1 NonISARangesOnly. This flag is for bridges on systems with multiple bridges. Setting this bit means the memory window specified in this descriptor is limited to the non-ISA I/O addresses that fall within the specified window. The non-ISA I/O ranges are: n100-n3FF, n500-n7FF, n900-nBFF, nD00-nFFF. This bit can only be set for bridges entirely configured through ACPI namespace. 0 Reserved Byte 6 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 32 bits) must be a number (2**n-1). Byte 7 (Address space granularity, _GRA bits[15:8]) Byte 8 (Address space granularity, _GRA bits[23:16]) Byte 9 (Address space granularity, _GRA bits[31:24]) Byte 10 (Address space granularity, _GRA bits[39:32]) Byte 11 (Address space granularity, _GRA bits[47:40]) Byte 12 (Address space granularity, _GRA bits[55:48]) Byte 13 (Address space granularity, _GRA bits[63:56]) Byte 14 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 15 (Address range minimum, _MIN bits[15:8]) Byte 16 (Address range minimum, _MIN bits[23:16]) Byte 17 (Address range minimum, _MIN bits[31:24]) Byte 18 (Address range minimum, _MIN bits[39:32]) Byte 19 (Address range minimum, _MIN bits[47:40]) Byte 20 (Address range minimum, _MIN bits[55:48]) Byte 21 (Address range minimum, _MIN bits[63:56]) Byte 22 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 23 (Address range maximum, _MAX bits[15:8]) Byte 24 (Address range maximum, _MAX bits[23:16]) Byte 25 (Address range maximum, _MAX bits[31:24]) Byte 26 (Address range maximum, _MAX bits[39:32]) Byte 27 (Address range maximum, _MAX bits[47:40]) Byte 28 (Address range maximum, _MAX bits[55:48]) Byte 29 (Address range maximum, _MAX bits[63:56]) Byte 30 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 31 (Address Translation offset, _TRA bits[15:8]) Byte 32 (Address Translation offset, _TRA bits[23:16]) Byte 33 (Address Translation offset, _TRA bits[31:24]) Byte 34 (Address Translation offset, _TRA bits[39:32]) Byte 35 (Address Translation offset, _TRA bits[47:40]) Byte 36 (Address Translation offset, _TRA bits[55:48]) Byte 37 (Address Translation offset, _TRA bits[63:56]) Byte 38 (Address Length, _LEN bits [7:0]) Byte 39 (Address Length, _LEN bits[15:8]) Byte 40 (Address Length, _LEN bits[23:16]) Byte 41 (Address Length, _LEN bits[31:24]) Byte 42 (Address Length, _LEN bits[39:32]) Byte 43 (Address Length, _LEN bits[47:40]) Byte 44 (Address Length, _LEN bits[55:48]) Byte 45 (Address Length, _LEN bits[63:56]) Byte 46 (Resource Source Index): (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source String (Resource Source): (Optional) If present, the device that uses this descriptor consumes its resources from the resources produced by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P417, Package (0x25) { /* Byte 4 (General Flags) of QWord Address Space Descriptor */ ResourceTemplate () { QWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceProducer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, /* Byte 5 (Type Specific Flags) of QWord Address Space Descriptor */ ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, NonISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, ISAOnlyRanges, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeTranslation, SparseTranslation) }, /* Particular cases */ ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) }, /* Resource Source */ ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x01, "", , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F, "P", , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xF0, "PATH", , TypeStatic, DenseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , TypeStatic, DenseTranslation) }, /* Particular cases */ ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, ResourceTemplate () { QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F,, , TypeStatic, DenseTranslation) } }) Method (RT0C, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "QWordIO Resource Descriptor Macro", "qwordio.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x25, "p416", P416, P417) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { QWordIO (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) QWordIO (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, , TypeStatic, DenseTranslation) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0x0191, 0x0191, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0x0192, 0x0192, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0x0193, 0x0193, "_MAF") M331 (__METHOD__, 0x04, 0x28, 0x28, 0x0198, 0x0198, "_RNG") M331 (__METHOD__, 0x05, 0x2C, 0x2C, 0x019C, 0x019C, "_TTP") M331 (__METHOD__, 0x06, 0x2D, 0x2D, 0x019D, 0x019D, "_TRS") M331 (__METHOD__, 0x07, 0x30, 0x30, 0x01A0, 0x01A0, "_GRA") M331 (__METHOD__, 0x08, 0x70, 0x70, 0x01E0, 0x01E0, "_MIN") M331 (__METHOD__, 0x09, 0xB0, 0xB0, 0x0220, 0x0220, "_MAX") M331 (__METHOD__, 0x0A, 0xF0, 0xF0, 0x0260, 0x0260, "_TRA") M331 (__METHOD__, 0x0B, 0x0130, 0x0130, 0x02A0, 0x02A0, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/extendedspace.asl0000700000175000017500000007721714773714156032466 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Extended Space Resource Descriptor Macro */ Name (P432, Package (0x18) { ResourceTemplate () { ExtendedSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC1, ResourceProducer, PosDecode, MinNotFixed, MaxFixed, 0x1A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC2, ResourceProducer, PosDecode, MinFixed, MaxNotFixed, 0x2A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC3, ResourceProducer, PosDecode, MinFixed, MaxFixed, 0x3A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC4, ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, 0x4A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC5, ResourceProducer, SubDecode, MinNotFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC6, ResourceProducer, SubDecode, MinFixed, MaxNotFixed, 0x6A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC7, ResourceProducer, SubDecode, MinFixed, MaxFixed, 0x7A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC8, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x8A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC9, ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, 0x9A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCA, ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, 0xAA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCB, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xBA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCC, ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, 0xCA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCD, ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, 0xDA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCE, ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, 0xEA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xFF, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0xFA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x00, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0xFF, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x00, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0x0000000000000000, // Type-Specific Attributes ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.4 Extended Address Space Descriptor Space Extended Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10001011B (0x8b) (Type = 1, Large item name = 0xB) Byte 1 (Length, bits[7:0]): Variable: Value = 53 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 192-255 Hardware Vendor Defined Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Byte 6 (Revision ID): Indicates the revision of the Extended Address Space descriptor. For ACPI 3.0, this value is 1. Byte 7 (Reserved): 0 Byte 8 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 32 bits) must be a number (2**n-1). Byte 9 (Address space granularity, _GRA bits[15:8]) Byte 10 (Address space granularity, _GRA bits[23:16]) Byte 11 (Address space granularity, _GRA bits[31:24]) Byte 12 (Address space granularity, _GRA bits[39:32]) Byte 13 (Address space granularity, _GRA bits[47:40]) Byte 14 (Address space granularity, _GRA bits[55:48]) Byte 15 (Address space granularity, _GRA bits[63:56]) Byte 16 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 17 (Address range minimum, _MIN bits[15:8]) Byte 18 (Address range minimum, _MIN bits[23:16]) Byte 19 (Address range minimum, _MIN bits[31:24]) Byte 20 (Address range minimum, _MIN bits[39:32]) Byte 21 (Address range minimum, _MIN bits[47:40]) Byte 22 (Address range minimum, _MIN bits[55:48]) Byte 23 (Address range minimum, _MIN bits[63:56]) Byte 24 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 25 (Address range maximum, _MAX bits[15:8]) Byte 26 (Address range maximum, _MAX bits[23:16]) Byte 27 (Address range maximum, _MAX bits[31:24]) Byte 28 (Address range maximum, _MAX bits[39:32]) Byte 29 (Address range maximum, _MAX bits[47:40]) Byte 30 (Address range maximum, _MAX bits[55:48]) Byte 31 (Address range maximum, _MAX bits[63:56]) Byte 32 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 33 (Address Translation offset, _TRA bits[15:8]) Byte 34 (Address Translation offset, _TRA bits[23:16]) Byte 35 (Address Translation offset, _TRA bits[31:24]) Byte 36 (Address Translation offset, _TRA bits[39:32]) Byte 37 (Address Translation offset, _TRA bits[47:40]) Byte 38 (Address Translation offset, _TRA bits[55:48]) Byte 39 (Address Translation offset, _TRA bits[63:56]) Byte 40 (Address Length, _LEN bits [7:0]) Byte 41 (Address Length, _LEN bits[15:8]) Byte 42 (Address Length, _LEN bits[23:16]) Byte 43 (Address Length, _LEN bits[31:24]) Byte 44 (Address Length, _LEN bits[39:32]) Byte 45 (Address Length, _LEN bits[47:40]) Byte 46 (Address Length, _LEN bits[55:48]) Byte 47 (Address Length, _LEN bits[63:56]) Byte 48 (Type Specific Attribute, _ATT bits [7:0]): Attributes that are specific to each resource type. The meaning of the attributes in this field depends on the value of the Resource Type field (see above). For the Memory Resource Type, the definition is defined section 6.4.3.5.4.1. For other Resource Types, this field is reserved to 0 Byte 49 (Type Specific Attribute, _ATT bits[15:8]) Byte 50 (Type Specific Attribute, _ATT bits[23:16]) Byte 51 (Type Specific Attribute, _ATT bits[31:24]) Byte 52 (Type Specific Attribute, _ATT bits[39:32]) Byte 53 (Type Specific Attribute, _ATT bits[47:40]) Byte 54 (Type Specific Attribute, _ATT bits[55:48]) Byte 55 (Type Specific Attribute, _ATT bits[63:56]) */ Name (P433, Package (0x18) { /* Byte 4 (General Flags) of Extended Address Space Descriptor */ ResourceTemplate () { ExtendedSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC1, ResourceProducer, PosDecode, MinNotFixed, MaxFixed, 0x1A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC2, ResourceProducer, PosDecode, MinFixed, MaxNotFixed, 0x2A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC3, ResourceProducer, PosDecode, MinFixed, MaxFixed, 0x3A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC4, ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, 0x4A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC5, ResourceProducer, SubDecode, MinNotFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC6, ResourceProducer, SubDecode, MinFixed, MaxNotFixed, 0x6A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC7, ResourceProducer, SubDecode, MinFixed, MaxFixed, 0x7A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC8, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x8A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC9, ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, 0x9A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCA, ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, 0xAA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCB, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xBA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCC, ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, 0xCA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCD, ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, 0xDA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xCE, ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, 0xEA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xFF, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0xFA, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, /* Byte 5 (Type Specific Flags) of Extended Address Space Descriptor */ ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x00, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0xFF, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, /* Particular cases */ ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0x0000000000000000, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) }, ResourceTemplate () { ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x00, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0x0000000000000000, // Type-Specific Attributes ) } }) Method (RT17, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "ExtendedSpace Resource Descriptor Macro", "extendedspace.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x18, "p432", P432, P433) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { ExtendedSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) ExtendedSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0x01E1, 0x01E1, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0x01E2, 0x01E2, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0x01E3, 0x01E3, "_MAF") M331 (__METHOD__, 0x04, 0x40, 0x40, 0x0200, 0x0200, "_GRA") M331 (__METHOD__, 0x05, 0x80, 0x80, 0x0240, 0x0240, "_MIN") M331 (__METHOD__, 0x06, 0xC0, 0xC0, 0x0280, 0x0280, "_MAX") M331 (__METHOD__, 0x07, 0x0100, 0x0100, 0x02C0, 0x02C0, "_TRA") M331 (__METHOD__, 0x08, 0x0140, 0x0140, 0x0300, 0x0300, "_LEN") M331 (__METHOD__, 0x09, 0x0180, 0x0180, 0x0340, 0x0340, "_ATT") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/Makefile0000700000175000017500000000014514773714156030573 0ustar ivanhuivanhu# descriptor AMLMOD= descriptor COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/irqnoflags.asl0000700000175000017500000001363214773714156032006 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * IRQNoFlags() Interrupt Resource Descriptor Macro */ Name (P402, Package (0x12) { ResourceTemplate () { IRQNoFlags () {0} }, ResourceTemplate () { IRQNoFlags () {1} }, ResourceTemplate () { IRQNoFlags () {2} }, ResourceTemplate () { IRQNoFlags () {3} }, ResourceTemplate () { IRQNoFlags () {4} }, ResourceTemplate () { IRQNoFlags () {5} }, ResourceTemplate () { IRQNoFlags () {6} }, ResourceTemplate () { IRQNoFlags () {7} }, ResourceTemplate () { IRQNoFlags () {8} }, ResourceTemplate () { IRQNoFlags () {9} }, ResourceTemplate () { IRQNoFlags () {10} }, ResourceTemplate () { IRQNoFlags () {11} }, ResourceTemplate () { IRQNoFlags () {12} }, ResourceTemplate () { IRQNoFlags () {13} }, ResourceTemplate () { IRQNoFlags () {14} }, ResourceTemplate () { IRQNoFlags () {15} }, ResourceTemplate () { IRQNoFlags () {} }, ResourceTemplate () { IRQNoFlags () {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.2.1 IRQ Descriptor IRQ Descriptor layout (length = 2): Byte 0 (Tag Bits): Value = 00100010B (0x22) (Type = 0, small item name = 0x4, length = 2), Byte 1 (IRQ mask bits[7:0]): IRQ0 <=> bit[0] Byte 2 (IRQ mask bits[15:8]): IRQ8 <=> bit[0] */ Name (P403, Package (0x12) { ResourceTemplate () { IRQNoFlags () {0} }, ResourceTemplate () { IRQNoFlags () {1} }, ResourceTemplate () { IRQNoFlags () {2} }, ResourceTemplate () { IRQNoFlags () {3} }, ResourceTemplate () { IRQNoFlags () {4} }, ResourceTemplate () { IRQNoFlags () {5} }, ResourceTemplate () { IRQNoFlags () {6} }, ResourceTemplate () { IRQNoFlags () {7} }, ResourceTemplate () { IRQNoFlags () {8} }, ResourceTemplate () { IRQNoFlags () {9} }, ResourceTemplate () { IRQNoFlags () {10} }, ResourceTemplate () { IRQNoFlags () {11} }, ResourceTemplate () { IRQNoFlags () {12} }, ResourceTemplate () { IRQNoFlags () {13} }, ResourceTemplate () { IRQNoFlags () {14} }, ResourceTemplate () { IRQNoFlags () {15} }, ResourceTemplate () { IRQNoFlags () {} }, ResourceTemplate () { IRQNoFlags () {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} } }) Method (RT02, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "IRQNoFlags Resource Descriptor Macro", "irqnoflags.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x12, "p402", P402, P403) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/pingroupconfig.asl0000700000175000017500000005751214773714156032677 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * PinGroupConfig Resource Descriptor Macro */ Name (P464, Package (0x21) { ResourceTemplate () { PinGroupConfig (Exclusive, 0x00 /* Default */, 0x1000, "\\_SB.GPO2", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x01 /* Bias Pull-up */, 0x2000, "\\_SB.GPO2", 0x00, "group1", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x02 /* Bias Pull-down */, 0x3000, "\\_SB.GPO2", 0x00, "group2", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x03 /* Bias Default */, 0x4000, "\\_SB.GPO2", 0x00, "group3", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x04 /* Bias Disable */, 0x5000, "\\_SB.GPO2", 0x00, "group4", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x05 /* Bias High Impedance */, 0x6000, "\\_SB.GPO2", 0x00, "group5", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x06 /* Bias Bus Hold */, 0x7000, "\\_SB.GPO2", 0x00, "group6", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x07 /* Drive Open Drain */, 0x8000, "\\_SB.GPO2", 0x00, "group7", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x08 /* Drive Open Source */, 0x9000, "\\_SB.GPO2", 0x00, "group8", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x09 /* Drive Push Pull */, 0xA000, "\\_SB.GPO2", 0x00, "group9", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x0A /* Drive Strength */, 0xB000, "\\_SB.GPO2", 0x00, "group10", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x0B /* Slew Rate */, 0xC000, "\\_SB.GPO2", 0x00, "group11", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x0C /* Input Debounce */, 0xD000, "\\_SB.GPO2", 0x00, "group12", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x0D /* Input Schmitt Trigger */, 0xE000, "\\_SB.GPO2", 0x00, "group13", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x80, /* Vendor Defined */ 0xE000, "\\_SB.GPO2", 0x00, "group128", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0xF0, /* Vendor Defined */ 0xF000, "\\_SB.GPO2", 0x00, "group240", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x00 /* Default */, 0x1000, "\\_SB.GPO2", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x01 /* Bias Pull-up */, 0x2000, "\\_SB.GPO2", 0x00, "group1", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x02 /* Bias Pull-down */, 0x3000, "\\_SB.GPO2", 0x00, "group2", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x03 /* Bias Default */, 0x4000, "\\_SB.GPO2", 0x00, "group3", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x04 /* Bias Disable */, 0x5000, "\\_SB.GPO2", 0x00, "group4", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x05 /* Bias High Impedance */, 0x6000, "\\_SB.GPO2", 0x00, "group5", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x06 /* Bias Bus Hold */, 0x7000, "\\_SB.GPO2", 0x00, "group6", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x07 /* Drive Open Drain */, 0x8000, "\\_SB.GPO2", 0x00, "group7", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x08 /* Drive Open Source */, 0x9000, "\\_SB.GPO2", 0x00, "group8", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x09 /* Drive Push Pull */, 0xA000, "\\_SB.GPO2", 0x00, "group9", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x0A /* Drive Strength */, 0xB000, "\\_SB.GPO2", 0x00, "group10", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x0B /* Slew Rate */, 0xC000, "\\_SB.GPO2", 0x00, "group11", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x0C /* Input Debounce */, 0xD000, "\\_SB.GPO2", 0x00, "group12", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x0D /* Input Schmitt Trigger */, 0xE000, "\\_SB.GPO2", 0x00, "group13", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x80, /* Vendor Defined */ 0xE000, "\\_SB.GPO2", 0x00, "group128", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0xF0, /* Vendor Defined */ 0xF000, "\\_SB.GPO2", 0x00, "group240", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x01 /* Bias Pull-up */, 0xF000, "\\_SB.GPO2", 0x00, "group", ResourceConsumer, ,) } }) Name (P465, Package (0x21) { ResourceTemplate () { PinGroupConfig (Exclusive, 0x00 /* Default */, 0x1000, "\\_SB.GPO2", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x01 /* Bias Pull-up */, 0x2000, "\\_SB.GPO2", 0x00, "group1", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x02 /* Bias Pull-down */, 0x3000, "\\_SB.GPO2", 0x00, "group2", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x03 /* Bias Default */, 0x4000, "\\_SB.GPO2", 0x00, "group3", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x04 /* Bias Disable */, 0x5000, "\\_SB.GPO2", 0x00, "group4", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x05 /* Bias High Impedance */, 0x6000, "\\_SB.GPO2", 0x00, "group5", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x06 /* Bias Bus Hold */, 0x7000, "\\_SB.GPO2", 0x00, "group6", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x07 /* Drive Open Drain */, 0x8000, "\\_SB.GPO2", 0x00, "group7", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x08 /* Drive Open Source */, 0x9000, "\\_SB.GPO2", 0x00, "group8", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x09 /* Drive Push Pull */, 0xA000, "\\_SB.GPO2", 0x00, "group9", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x0A /* Drive Strength */, 0xB000, "\\_SB.GPO2", 0x00, "group10", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x0B /* Slew Rate */, 0xC000, "\\_SB.GPO2", 0x00, "group11", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x0C /* Input Debounce */, 0xD000, "\\_SB.GPO2", 0x00, "group12", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x0D /* Input Schmitt Trigger */, 0xE000, "\\_SB.GPO2", 0x00, "group13", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x80, /* Vendor Defined */ 0xE000, "\\_SB.GPO2", 0x00, "group128", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0xF0, /* Vendor Defined */ 0xF000, "\\_SB.GPO2", 0x00, "group240", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x00 /* Default */, 0x1000, "\\_SB.GPO2", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x01 /* Bias Pull-up */, 0x2000, "\\_SB.GPO2", 0x00, "group1", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x02 /* Bias Pull-down */, 0x3000, "\\_SB.GPO2", 0x00, "group2", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x03 /* Bias Default */, 0x4000, "\\_SB.GPO2", 0x00, "group3", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x04 /* Bias Disable */, 0x5000, "\\_SB.GPO2", 0x00, "group4", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x05 /* Bias High Impedance */, 0x6000, "\\_SB.GPO2", 0x00, "group5", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x06 /* Bias Bus Hold */, 0x7000, "\\_SB.GPO2", 0x00, "group6", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x07 /* Drive Open Drain */, 0x8000, "\\_SB.GPO2", 0x00, "group7", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x08 /* Drive Open Source */, 0x9000, "\\_SB.GPO2", 0x00, "group8", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x09 /* Drive Push Pull */, 0xA000, "\\_SB.GPO2", 0x00, "group9", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x0A /* Drive Strength */, 0xB000, "\\_SB.GPO2", 0x00, "group10", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x0B /* Slew Rate */, 0xC000, "\\_SB.GPO2", 0x00, "group11", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x0C /* Input Debounce */, 0xD000, "\\_SB.GPO2", 0x00, "group12", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x0D /* Input Schmitt Trigger */, 0xE000, "\\_SB.GPO2", 0x00, "group13", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0x80, /* Vendor Defined */ 0xE000, "\\_SB.GPO2", 0x00, "group128", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Shared, 0xF0, /* Vendor Defined */ 0xF000, "\\_SB.GPO2", 0x00, "group240", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) }, ResourceTemplate () { PinGroupConfig (Exclusive, 0x01 /* Bias Pull-up */, 0xF000, "\\_SB.GPO2", 0x00, "group", ResourceConsumer, ,) } }) Method (RT30, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "PinGroupConfig Resource Descriptor Macro", "pingroupconfig.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P464) != SizeOf (P465))) { ERR (__METHOD__, 0xB3, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P464), "P464", P464, P465) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { PinGroupConfig (Shared, 0x01 /* Bias Pull-up */, 0x2000, "\\_SB.GPO2", 0x00, "group0", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) PinGroupConfig (Shared, 0x01 /* Bias Pull-up */, 0x2000, "\\_SB.GPO2", 0x00, "group1", ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) } M331 (__METHOD__, 0x01, 0x20, 0x20, 0x0168, 0x0168, "_SHR") M331 (__METHOD__, 0x01, 0x30, 0x30, 0x0178, 0x0178, "_TYP") M331 (__METHOD__, 0x01, 0x38, 0x38, 0x0180, 0x0180, "_VAL") M331 (__METHOD__, 0x01, 0x0128, 0x0128, 0x0270, 0x0270, "_VEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/i2cserialbus.asl0000700000175000017500000004705214773714156032233 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * I2cSerialBus Resource Descriptor Macro */ Device (I2C) { } Name (P456, Package (0x12) { ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0x00, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x168) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8 }) } }) Name (P457, Package (0x12) { ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode7Bit, "\\I2C", 0x00, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { I2cSerialBusV2 (0x1234, ControllerInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceProducer, , Shared, RawDataBuffer (0x168) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8 }) } }) Method (RT23, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "I2cSerialBus Resource Descriptor Macro", "i2cserialbus.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P456) != SizeOf (P457))) { ERR (__METHOD__, 0xB4, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P456), "p456", P456, P457) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Exclusive, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) I2cSerialBusV2 (0x1234, DeviceInitiated, 0x88775544, AddressingMode10Bit, "\\I2C", 0xEE, ResourceConsumer, , Exclusive, RawDataBuffer (0x04) // Vendor Data { 0xB1, 0xB2, 0xB3, 0xB4 }) } M331 (__METHOD__, 0x01, 0x30, 0x30, 0x0108, 0x0108, "_SLV") M331 (__METHOD__, 0x02, 0x38, 0x38, 0x0110, 0x0110, "_MOD") M331 (__METHOD__, 0x03, 0x60, 0x60, 0x0138, 0x0138, "_SPE") M331 (__METHOD__, 0x04, 0x80, 0x80, 0x0158, 0x0158, "_ADR") M331 (__METHOD__, 0x05, 0x90, 0x90, 0x0168, 0x0168, "_VEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/wordspace.asl0000700000175000017500000007314014773714156031630 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Word Space Resource Descriptor Macro */ Name (P430, Package (0x1B) { ResourceTemplate () { WordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC1, ResourceProducer, PosDecode, MinNotFixed, MaxFixed, 0x1A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC2, ResourceProducer, PosDecode, MinFixed, MaxNotFixed, 0x2A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC3, ResourceProducer, PosDecode, MinFixed, MaxFixed, 0x3A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC4, ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, 0x4A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC5, ResourceProducer, SubDecode, MinNotFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC6, ResourceProducer, SubDecode, MinFixed, MaxNotFixed, 0x6A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC7, ResourceProducer, SubDecode, MinFixed, MaxFixed, 0x7A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC8, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x8A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC9, ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, 0x9A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCA, ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, 0xAA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCB, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xBA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCC, ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, 0xCA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCD, ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, 0xDA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCE, ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, 0xEA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xFF, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0xFA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x00, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0xFF, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x01, "", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F, "P", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xF0, "PATH", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x00, 0x0000, // Granularity 0x0000, // Range Minimum 0x0000, // Range Maximum 0x0000, // Translation Offset 0x0000, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F,, ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.3 Word Address Space Descriptor Memory Word Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10001000B (0x88) (Type = 1, Large item name = 0x8) Byte 1 (Length, bits[7:0]): Variable: Value = 13 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 192-255 Hardware Vendor Defined Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Byte 6 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 16 bits) must be a number (2**n-1). Byte 7 (Address space granularity, _GRA bits[15:8]) Byte 8 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 9 (Address range minimum, _MIN bits[15:8]) Byte 10 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 11 (Address range maximum, _MAX bits[15:8]) Byte 12 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 13 (Address Translation offset, _TRA bits[15:8]) Byte 14 (Address Length, _LEN bits [7:0]) Byte 15 (Address Length, _LEN bits[15:8]) Byte 16 (Resource Source Index): (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source String (Resource Source): (Optional) If present, the device that uses this descriptor consumes its resources from the resources produced by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P431, Package (0x1B) { /* Byte 4 (General Flags) of Word Address Space Descriptor */ ResourceTemplate () { WordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC1, ResourceProducer, PosDecode, MinNotFixed, MaxFixed, 0x1A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC2, ResourceProducer, PosDecode, MinFixed, MaxNotFixed, 0x2A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC3, ResourceProducer, PosDecode, MinFixed, MaxFixed, 0x3A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC4, ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, 0x4A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC5, ResourceProducer, SubDecode, MinNotFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC6, ResourceProducer, SubDecode, MinFixed, MaxNotFixed, 0x6A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC7, ResourceProducer, SubDecode, MinFixed, MaxFixed, 0x7A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC8, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x8A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC9, ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, 0x9A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCA, ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, 0xAA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCB, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xBA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCC, ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, 0xCA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCD, ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, 0xDA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xCE, ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, 0xEA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xFF, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0xFA, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, /* Byte 5 (Type Specific Flags) of Word Address Space Descriptor */ ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x00, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0xFF, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, /* Particular cases */ ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, /* Resource Source */ ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x01, "", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F, "P", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xF0, "PATH", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) }, /* Particular cases */ ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x00, 0x0000, // Granularity 0x0000, // Range Minimum 0x0000, // Range Maximum 0x0000, // Translation Offset 0x0000, // Length 0xFF, "PATHPATHPATH", ) }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F,, ) } }) Method (RT16, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "WordSpace Resource Descriptor Macro", "wordspace.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x1B, "p430", P430, P431) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { WordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) WordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0xA1, 0xA1, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0xA2, 0xA2, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0xA3, 0xA3, "_MAF") M331 (__METHOD__, 0x07, 0x30, 0x30, 0xB0, 0xB0, "_GRA") M331 (__METHOD__, 0x08, 0x40, 0x40, 0xC0, 0xC0, "_MIN") M331 (__METHOD__, 0x09, 0x50, 0x50, 0xD0, 0xD0, "_MAX") M331 (__METHOD__, 0x0A, 0x60, 0x60, 0xE0, 0xE0, "_TRA") M331 (__METHOD__, 0x0B, 0x70, 0x70, 0xF0, 0xF0, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/qwordspace.asl0000700000175000017500000007650114773714156032015 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * QWord Space Resource Descriptor Macro */ Name (P42C, Package (0x1B) { ResourceTemplate () { QWordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC1, ResourceProducer, PosDecode, MinNotFixed, MaxFixed, 0x1A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC2, ResourceProducer, PosDecode, MinFixed, MaxNotFixed, 0x2A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC3, ResourceProducer, PosDecode, MinFixed, MaxFixed, 0x3A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC4, ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, 0x4A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC5, ResourceProducer, SubDecode, MinNotFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC6, ResourceProducer, SubDecode, MinFixed, MaxNotFixed, 0x6A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC7, ResourceProducer, SubDecode, MinFixed, MaxFixed, 0x7A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC8, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x8A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC9, ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, 0x9A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCA, ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, 0xAA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCB, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xBA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCC, ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, 0xCA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCD, ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, 0xDA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCE, ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, 0xEA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xFF, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0xFA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x00, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0xFF, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x01, "", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F, "P", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xF0, "PATH", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x00, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F,, ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.1 QWord Address Space Descriptor Memory QWord Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10001010B (0x8a) (Type = 1, Large item name = 0xA) Byte 1 (Length, bits[7:0]): Variable: Value = 43 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 192-255 Hardware Vendor Defined Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Byte 6 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 32 bits) must be a number (2**n-1). Byte 7 (Address space granularity, _GRA bits[15:8]) Byte 8 (Address space granularity, _GRA bits[23:16]) Byte 9 (Address space granularity, _GRA bits[31:24]) Byte 10 (Address space granularity, _GRA bits[39:32]) Byte 11 (Address space granularity, _GRA bits[47:40]) Byte 12 (Address space granularity, _GRA bits[55:48]) Byte 13 (Address space granularity, _GRA bits[63:56]) Byte 14 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 15 (Address range minimum, _MIN bits[15:8]) Byte 16 (Address range minimum, _MIN bits[23:16]) Byte 17 (Address range minimum, _MIN bits[31:24]) Byte 18 (Address range minimum, _MIN bits[39:32]) Byte 19 (Address range minimum, _MIN bits[47:40]) Byte 20 (Address range minimum, _MIN bits[55:48]) Byte 21 (Address range minimum, _MIN bits[63:56]) Byte 22 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 23 (Address range maximum, _MAX bits[15:8]) Byte 24 (Address range maximum, _MAX bits[23:16]) Byte 25 (Address range maximum, _MAX bits[31:24]) Byte 26 (Address range maximum, _MAX bits[39:32]) Byte 27 (Address range maximum, _MAX bits[47:40]) Byte 28 (Address range maximum, _MAX bits[55:48]) Byte 29 (Address range maximum, _MAX bits[63:56]) Byte 30 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 31 (Address Translation offset, _TRA bits[15:8]) Byte 32 (Address Translation offset, _TRA bits[23:16]) Byte 33 (Address Translation offset, _TRA bits[31:24]) Byte 34 (Address Translation offset, _TRA bits[39:32]) Byte 35 (Address Translation offset, _TRA bits[47:40]) Byte 36 (Address Translation offset, _TRA bits[55:48]) Byte 37 (Address Translation offset, _TRA bits[63:56]) Byte 38 (Address Length, _LEN bits [7:0]) Byte 39 (Address Length, _LEN bits[15:8]) Byte 40 (Address Length, _LEN bits[23:16]) Byte 41 (Address Length, _LEN bits[31:24]) Byte 42 (Address Length, _LEN bits[39:32]) Byte 43 (Address Length, _LEN bits[47:40]) Byte 44 (Address Length, _LEN bits[55:48]) Byte 45 (Address Length, _LEN bits[63:56]) Byte 46 (Resource Source Index): (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source String (Resource Source): (Optional) If present, the device that uses this descriptor consumes its resources from the resources produced by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P42D, Package (0x1B) { /* Byte 4 (General Flags) of QWord Address Space Descriptor */ ResourceTemplate () { QWordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC1, ResourceProducer, PosDecode, MinNotFixed, MaxFixed, 0x1A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC2, ResourceProducer, PosDecode, MinFixed, MaxNotFixed, 0x2A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC3, ResourceProducer, PosDecode, MinFixed, MaxFixed, 0x3A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC4, ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, 0x4A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC5, ResourceProducer, SubDecode, MinNotFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC6, ResourceProducer, SubDecode, MinFixed, MaxNotFixed, 0x6A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC7, ResourceProducer, SubDecode, MinFixed, MaxFixed, 0x7A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC8, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x8A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC9, ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, 0x9A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCA, ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, 0xAA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCB, ResourceConsumer, PosDecode, MinFixed, MaxFixed, 0xBA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCC, ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, 0xCA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCD, ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, 0xDA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xCE, ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, 0xEA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xFF, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0xFA, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, /* Byte 5 (Type Specific Flags) of QWord Address Space Descriptor */ ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x00, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0xFF, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, /* Particular cases */ ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) }, /* Resource Source */ ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x01, "", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F, "P", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xF0, "PATH", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) }, /* Particular cases */ ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x00, 0x0000000000000000, // Granularity 0x0000000000000000, // Range Minimum 0x0000000000000000, // Range Maximum 0x0000000000000000, // Translation Offset 0x0000000000000000, // Length 0xFF, "PATHPATHPATH", ) }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0x0F,, ) } }) Method (RT14, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "QWordSpace Resource Descriptor Macro", "qwordspace.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x1B, "p42c", P42C, P42D) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { QWordSpace (0xC0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) QWordSpace (0xC0, ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length ,, ) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0x0191, 0x0191, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0x0192, 0x0192, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0x0193, 0x0193, "_MAF") M331 (__METHOD__, 0x07, 0x30, 0x30, 0x01A0, 0x01A0, "_GRA") M331 (__METHOD__, 0x08, 0x70, 0x70, 0x01E0, 0x01E0, "_MIN") M331 (__METHOD__, 0x09, 0xB0, 0xB0, 0x0220, 0x0220, "_MAX") M331 (__METHOD__, 0x0A, 0xF0, 0xF0, 0x0260, 0x0260, "_TRA") M331 (__METHOD__, 0x0B, 0x0130, 0x0130, 0x02A0, 0x02A0, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/wordbusnumber.asl0000700000175000017500000006700314773714156032540 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Word Bus Number Resource Descriptor Macro */ Name (P428, Package (0x19) { ResourceTemplate () { WordBusNumber (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x01, "", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F, "P", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xF0, "PATH", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0x0000, // Granularity 0x0000, // Range Minimum 0x0000, // Range Maximum 0x0000, // Translation Offset 0x0000, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F,, ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.3 Word Address Space Descriptor Bus Number Word Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10001000B (0x88) (Type = 1, Large item name = 0x8) Byte 1 (Length, bits[7:0]): Variable: Value = 13 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 2 Bus number range Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Bit[7:0] Reserved (must be 0) Byte 6 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 16 bits) must be a number (2**n-1). Byte 7 (Address space granularity, _GRA bits[15:8]) Byte 8 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 9 (Address range minimum, _MIN bits[15:8]) Byte 10 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 11 (Address range maximum, _MAX bits[15:8]) Byte 12 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 13 (Address Translation offset, _TRA bits[15:8]) Byte 14 (Address Length, _LEN bits [7:0]) Byte 15 (Address Length, _LEN bits[15:8]) Byte 16 (Resource Source Index): (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source String (Resource Source): (Optional) If present, the device that uses this descriptor consumes its resources from the resources produced by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P429, Package (0x19) { /* Byte 4 (General Flags) of Word Address Space Descriptor */ ResourceTemplate () { WordBusNumber (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinNotFixed, MaxNotFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinNotFixed, MaxFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinNotFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxNotFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxNotFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, /* Particular cases */ ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) }, /* Resource Source */ ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x01, "", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F, "P", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xF0, "PATH", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) }, /* Particular cases */ ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0x0000, // Granularity 0x0000, // Range Minimum 0x0000, // Range Maximum 0x0000, // Translation Offset 0x0000, // Length 0xFF, "PATHPATHPATH", ) }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0x0F,, ) } }) Method (RT12, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "WordBusNumber Resource Descriptor Macro", "wordbusnumber.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x19, "p428", P428, P429) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { WordBusNumber (ResourceProducer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) WordBusNumber (ResourceConsumer, MinNotFixed, MaxNotFixed, PosDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length ,, ) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0xA1, 0xA1, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0xA2, 0xA2, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0xA3, 0xA3, "_MAF") M331 (__METHOD__, 0x07, 0x30, 0x30, 0xB0, 0xB0, "_GRA") M331 (__METHOD__, 0x08, 0x40, 0x40, 0xC0, 0xC0, "_MIN") M331 (__METHOD__, 0x09, 0x50, 0x50, 0xD0, 0xD0, "_MAX") M331 (__METHOD__, 0x0A, 0x60, 0x60, 0xE0, 0xE0, "_TRA") M331 (__METHOD__, 0x0B, 0x70, 0x70, 0xF0, 0xF0, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/fixedio.asl0000700000175000017500000000734714773714156031276 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Fixed IO Resource Descriptor Macro */ Name (P40A, Package (0x02) { ResourceTemplate () { FixedIO ( 0x03F1, // Address 0xF2, // Length ) }, ResourceTemplate () { FixedIO ( 0x0000, // Address 0x00, // Length ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.2.6 Fixed Location I/O Port Descriptor Fixed Location I/O Port Descriptor layout: Byte 0 (Tag Bits): Value = 01001011B (0x4b)(Type = 0, Small item name = 0x9, Length = 3) Byte 1 (Range base address, _BAS bits[7:0]) Byte 2 (Range base address, _BAS bits[9:8]) Byte 3 (Range length, _LEN) */ Name (P40B, Package (0x02) { ResourceTemplate () { FixedIO ( 0x03F1, // Address 0xF2, // Length ) }, ResourceTemplate () { FixedIO ( 0x0000, // Address 0x00, // Length ) } }) Method (RT06, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "FixedIO Resource Descriptor Macro", "fixedio.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x02, "p40a", P40A, P40B) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { FixedIO ( 0x0001, // Address 0xFF, // Length ) FixedIO ( 0x0001, // Address 0xFF, // Length ) } M331 (__METHOD__, 0x01, 0x08, 0x08, 0x28, 0x28, "_BAS") M331 (__METHOD__, 0x02, 0x18, 0x18, 0x38, 0x38, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/dwordmemory.asl0000700000175000017500000026623214773714156032217 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * DWord Memory Resource Descriptor Macro */ Name (P426, Package (0x59) { ResourceTemplate () { DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x01, "", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F, "P", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xF0, "PATH", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0x00000000, // Granularity 0x00000000, // Range Minimum 0x00000000, // Range Maximum 0x00000000, // Translation Offset 0x00000000, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F,, , AddressRangeMemory, TypeStatic) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.5.2 DWord Address Space Descriptor Memory DWord Address Space Descriptor layout: Byte 0 (Tag Bits): Value=10000111B (0x87) (Type = 1, Large item name = 0x7) Byte 1 (Length, bits[7:0]): Variable: Value = 23 (minimum) Byte 2 (Length, bits[15:8]): Variable: Value = 0 (minimum) Byte 3 (Resource Type): 0 Memory range Byte 4 (General Flags): Bits[7:4] Reserved (must be 0) Bit[3] Min Address Fixed, _MAF: 1 The specified maximum address is fixed 0 The specified maximum address is not fixed and can be changed Bit[2] Max Address Fixed,_MIF: 1 The specified minimum address is fixed 0 The specified minimum address is not fixed and can be changed Bit[1] Decode Type, _DEC: 1 This bridge subtractively decodes this address (top level bridges only) 0 This bridge positively decodes this address Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 5 (Type Specific Flags): Flags that are specific to each resource type. The meaning of the flags in this field depends on the value of the Resource Type field (see above) Bits[7:6] Reserved (must be 0) Bit[5] Memory to I/O Translation, _TTP 1 TypeTranslation: This resource, which is memory on the secondary side of the bridge, is I/O on the primary side of the bridge. 0 TypeStatic: This resource, which is memory on the secondary side of the bridge, is also memory on the primary side of the bridge. Bits[4:3] Memory attributes, _MTP. These bits are only defined if this memory resource describes system RAM. For a definition of the labels described here, see section 15, "System Address Map Interfaces." 0 AddressRangeMemory 1 AddressRangeReserved 2 AddressRangeACPI 3 AddressRangeNVS Bits[2:1] Memory attributes, _MEM 0 The memory is non-cacheable. 1 The memory is cacheable. 2 The memory is cacheable and supports write combining. 3 The memory is cacheable and prefetchable. (Notice: OSPM ignores this field in the Extended address space descriptor. Instead it uses the Type Specific Attributes field to determine memory attributes) Bit[0] Write status, _RW 1 This memory range is read-write. 0 This memory range is read-only. Byte 6 (Address space granularity, _GRA bits[7:0]): A set bit in this mask means that this bit is decoded. All bits less significant than the most significant set bit must be set. (in other words, the value of the full Address Space Granularity field (all 32 bits) must be a number (2**n-1). Byte 7 (Address space granularity, _GRA bits[15:8]) Byte 8 (Address space granularity, _GRA bits[23:16]) Byte 9 (Address space granularity, _GRA bits[31:24]) Byte 10 (Address range minimum, _MIN bits [7:0]): For bridges that translate addresses, this is the address space on the secondary side of the bridge Byte 11 (Address range minimum, _MIN bits[15:8]) Byte 12 (Address range minimum, _MIN bits[23:16]) Byte 13 (Address range minimum, _MIN bits[31:24]) Byte 14 (Address range maximum, _MAX bits [7:0]): See comment for _MIN Byte 15 (Address range maximum, _MAX bits[15:8]) Byte 16 (Address range maximum, _MAX bits[23:16]) Byte 17 (Address range maximum, _MAX bits[31:24]) Byte 18 (Address Translation offset, _TRA bits [7:0]): For bridges that translate addresses across the bridge, this is the offset that must be added to the address on the secondary side to obtain the address on the primary side. Non-bridge devices must list 0 for all Address Translation offset bits Byte 19 (Address Translation offset, _TRA bits[15:8]) Byte 20 (Address Translation offset, _TRA bits[23:16]) Byte 21 (Address Translation offset, _TRA bits[31:24]) Byte 22 (Address Length, _LEN bits [7:0]) Byte 23 (Address Length, _LEN bits[15:8]) Byte 24 (Address Length, _LEN bits[23:16]) Byte 25 (Address Length, _LEN bits[31:24]) Byte 26 (Resource Source Index): (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source String (Resource Source): (Optional) If present, the device that uses this descriptor consumes its resources from the resources produced by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P427, Package (0x59) { /* Byte 4 (General Flags) of DWord Address Space Descriptor */ ResourceTemplate () { DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceProducer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, /* Byte 5 (Type Specific Flags) of DWord Address Space Descriptor */ /* NonCacheable */ ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, /* Cacheable */ ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Cacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, /* WriteCombining */ ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, WriteCombining, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, /* Prefetchable */ ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeReserved, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, Prefetchable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeNVS, TypeTranslation) }, /* Particular cases */ ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) }, /* Resource Source */ ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x01, "", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F, "P", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xF0, "PATH", , AddressRangeMemory, TypeStatic) }, ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", , AddressRangeMemory, TypeStatic) }, /* Particular cases */ ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) }, ResourceTemplate () { DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0x00000000, // Granularity 0x00000000, // Range Minimum 0x00000000, // Range Maximum 0x00000000, // Translation Offset 0x00000000, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0x0F,, , AddressRangeMemory, TypeStatic) } }) Method (RT11, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "DWordMemory Resource Descriptor Macro", "dwordmemory.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x59, "p426", P426, P427) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length ,, , AddressRangeMemory, TypeStatic) } M331 (__METHOD__, 0x01, 0x21, 0x21, 0xF1, 0xF1, "_DEC") M331 (__METHOD__, 0x02, 0x22, 0x22, 0xF2, 0xF2, "_MIF") M331 (__METHOD__, 0x03, 0x23, 0x23, 0xF3, 0xF3, "_MAF") M331 (__METHOD__, 0x04, 0x28, 0x28, 0xF8, 0xF8, "_RW") M331 (__METHOD__, 0x05, 0x29, 0x29, 0xF9, 0xF9, "_MEM") M331 (__METHOD__, 0x06, 0x2B, 0x2B, 0xFB, 0xFB, "_MTP") M331 (__METHOD__, 0x06, 0x2D, 0x2D, 0xFD, 0xFD, "_TTP") M331 (__METHOD__, 0x07, 0x30, 0x30, 0x0100, 0x0100, "_GRA") M331 (__METHOD__, 0x08, 0x50, 0x50, 0x0120, 0x0120, "_MIN") M331 (__METHOD__, 0x09, 0x70, 0x70, 0x0140, 0x0140, "_MAX") M331 (__METHOD__, 0x0A, 0x90, 0x90, 0x0160, 0x0160, "_TRA") M331 (__METHOD__, 0x0B, 0xB0, 0xB0, 0x0180, 0x0180, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/pinfunction.asl0000700000175000017500000002527314773714156032201 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * PinFunction Resource Descriptor Macro */ Name (P45C, Package (0x09) { ResourceTemplate () { PinFunction (Exclusive, PullDefault, 0x1000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Exclusive, PullDown, 0x2000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Exclusive, PullUp, 0x3000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Exclusive, PullNone, 0x4000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Shared, PullDefault, 0x1000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Shared, PullDown, 0x2000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Shared, PullUp, 0x3000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Shared, PullNone, 0x4000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Exclusive, PullNone, 0xABCD, "\\_SB.GPO1", 0x00, ResourceConsumer, ,) { // Pin list 0x0011 } } }) Name (P45D, Package (0x09) { ResourceTemplate () { PinFunction (Exclusive, PullDefault, 0x1000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Exclusive, PullDown, 0x2000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Exclusive, PullUp, 0x3000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Exclusive, PullNone, 0x4000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Shared, PullDefault, 0x1000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Shared, PullDown, 0x2000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Shared, PullUp, 0x3000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Shared, PullNone, 0x4000, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } }, ResourceTemplate () { PinFunction (Exclusive, PullNone, 0xABCD, "\\_SB.GPO1", 0x00, ResourceConsumer, ,) { // Pin list 0x0011 } } }) Method (RT26, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "PinFunction Resource Descriptor Macro", "pinfunction.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P45C) != SizeOf (P45D))) { ERR (__METHOD__, 0xB3, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P45C), "P45C", P45C, P45D) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { PinFunction (Exclusive, PullDefault, 0x1234, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } PinFunction (Exclusive, PullDefault, 0x1234, "\\_SB.GPO1", 0x00, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x0A, 0x0B, 0x0C, 0x0D }) { // Pin list 0x0001, 0x0002, 0x0003 } } M331 (__METHOD__, 0x01, 0x20, 0x20, 0x0150, 0x0150, "_SHR") M331 (__METHOD__, 0x02, 0x30, 0x30, 0x0160, 0x0160, "_PPI") M331 (__METHOD__, 0x03, 0x38, 0x38, 0x0168, 0x0168, "_FUN") M331 (__METHOD__, 0x04, 0x0110, 0x0110, 0x0240, 0x0240, "_VEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/memory32fixed.asl0000700000175000017500000001160714773714156032336 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Memory32Fixed() Memory Resource Descriptor Macro */ Name (P414, Package (0x03) { ResourceTemplate () { Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) }, ResourceTemplate () { Memory32Fixed (ReadWrite, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) }, ResourceTemplate () { Memory32Fixed (ReadWrite, 0x00000000, // Address Base 0x00000000, // Address Length ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.4 32-Bit Fixed Memory Range Descriptor 32-Bit Fixed Memory Range Descriptor layout: Byte 0 (Tag Bits): Value = 10000110B (0x86) (Type = 1, Large item name = 6) Byte 1 (Length, bits[7:0]): Value = 00001001B (9) Byte 2 (Length, bits[15:8]): Value = 00000000B (0) Byte 3 (Information): Bit[7:1] Ignored Bit[0] Write status, _RW 1 writeable (read/write) 0 non-writeable (read-only) Byte 4 (Range base address, _BAS, bits[7:0]) Byte 5 (Range base address, _BAS, bits[15:8]) Byte 6 (Range base address, _BAS, bits[23:16]) Byte 7 (Range base address, _BAS, bits[31:24]) Byte 8 (Range length, _LEN bits[7:0]) Byte 9 (Range length, _LEN, bits[15:8]) Byte 10 (Range length, _LEN, bits[23:16]) Byte 11 (Range length, _LEN, bits[31:24]) */ Name (P415, Package (0x03) { ResourceTemplate () { Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) }, ResourceTemplate () { Memory32Fixed (ReadWrite, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) }, ResourceTemplate () { Memory32Fixed (ReadWrite, 0x00000000, // Address Base 0x00000000, // Address Length ) } }) Method (RT0B, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Memory32Fixed Resource Descriptor Macro", "memory32fixed.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x03, "p414", P414, P415) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } M331 (__METHOD__, 0x01, 0x18, 0x18, 0x78, 0x78, "_RW") M331 (__METHOD__, 0x02, 0x20, 0x20, 0x80, 0x80, "_BAS") M331 (__METHOD__, 0x03, 0x40, 0x40, 0xA0, 0xA0, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/spiserialbus.asl0000700000175000017500000027455114773714156032357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * SpiSerialBus Resource Descriptor Macro */ Device (SPI) { } Name (P458, Package (0x81) { ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0x00, ResourceConsumer, , Exclusive, ) } }) Name (P459, Package (0x81) { ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, DeviceInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseFirst, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, ThreeWireMode, 0x08, ControllerInitiated, 0xAABBCCDD, ClockPolarityHigh, ClockPhaseSecond, "\\SPI", 0xEE, ResourceProducer, , Exclusive, ) }, ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityLow, FourWireMode, 0x07, ControllerInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0x00, ResourceConsumer, , Exclusive, ) } }) Method (RT24, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "SpiSerialBus Resource Descriptor Macro", "spiserialbus.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P458) != SizeOf (P459))) { ERR (__METHOD__, 0xB5, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P458), "p458", P458, P459) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Shared, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) SpiSerialBusV2 (0x6789, PolarityHigh, FourWireMode, 0x07, DeviceInitiated, 0xAABBCCDD, ClockPolarityLow, ClockPhaseSecond, "\\SPI", 0xEE, ResourceConsumer, , Exclusive, RawDataBuffer (0x05) // Vendor Data { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4 }) } M331 (__METHOD__, 0x01, 0x30, 0x30, 0x0128, 0x0128, "_SLV") M331 (__METHOD__, 0x02, 0x38, 0x38, 0x0130, 0x0130, "_MOD") M331 (__METHOD__, 0x03, 0x39, 0x39, 0x0131, 0x0131, "_DPL") M331 (__METHOD__, 0x04, 0x60, 0x60, 0x0158, 0x0158, "_SPE") M331 (__METHOD__, 0x05, 0x80, 0x80, 0x0178, 0x0178, "_LEN") M331 (__METHOD__, 0x06, 0x88, 0x88, 0x0180, 0x0180, "_PHA") M331 (__METHOD__, 0x07, 0x90, 0x90, 0x0188, 0x0188, "_POL") M331 (__METHOD__, 0x08, 0x98, 0x98, 0x0190, 0x0190, "_ADR") M331 (__METHOD__, 0x09, 0xA8, 0xA8, 0x01A0, 0x01A0, "_VEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/memory32.asl0000700000175000017500000001424414773714156031316 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Memory32() Memory Resource Descriptor Macro */ Name (P412, Package (0x03) { ResourceTemplate () { Memory32 (ReadOnly, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) }, ResourceTemplate () { Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) }, ResourceTemplate () { Memory32 (ReadWrite, 0x00000000, // Range Minimum 0x00000000, // Range Maximum 0x00000000, // Alignment 0x00000000, // Length ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.3 32-Bit Memory Range Descriptor 32-Bit Memory Range Descriptor layout: Byte 0 (Tag Bits): Value = 10000101B (0x85) (Type = 1, Large item name = 0x5) Byte 1 (Length, bits[7:0]): Value = 00010001B (17) Byte 2 (Length, bits[15:8]): Value = 00000000B (0) Byte 3 (Information): Bit[7:1] Ignored Bit[0] Write status, _RW 1 writeable (read/write) 0 non-writeable (read-only) Byte 4 (Range minimum base address, _MIN, bits[7:0]) Byte 5 (Range minimum base address, _MIN, bits[15:8] Byte 6 (Range minimum base address, _MIN, bits[23:16]) Byte 7 (Range minimum base address, _MIN, bits[31:24]) Byte 8 (Range maximum base address, _MAX, bits[7:0]) Byte 9 (Range maximum base address, _MAX, bits[15:8]) Byte 10 (Range maximum base address, _MAX, bits[23:16]) Byte 11 (Range maximum base address, _MAX, bits[31:24]) Byte 12 (Base alignment, _ALN bits[7:0]) Byte 13 (Base alignment, _ALN bits[15:8]) Byte 14 (Base alignment, _ALN bits[23:16]) Byte 15 (Base alignment, _ALN bits[31:24]) Byte 16 (Range length, _LEN bits[7:0]) Byte 17 (Range length, _LEN, bits[15:8]) Byte 18 (Range length, _LEN, bits[23:16]) Byte 19 (Range length, _LEN, bits[31:24]) */ Name (P413, Package (0x03) { ResourceTemplate () { Memory32 (ReadOnly, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) }, ResourceTemplate () { Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) }, ResourceTemplate () { Memory32 (ReadWrite, 0x00000000, // Range Minimum 0x00000000, // Range Maximum 0x00000000, // Alignment 0x00000000, // Length ) } }) Method (RT0A, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Memory32 Resource Descriptor Macro", "memory32.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x03, "p412", P412, P413) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { Memory32 (ReadOnly, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32 (ReadOnly, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } M331 (__METHOD__, 0x01, 0x18, 0x18, 0xB8, 0xB8, "_RW") M331 (__METHOD__, 0x02, 0x20, 0x20, 0xC0, 0xC0, "_MIN") M331 (__METHOD__, 0x03, 0x40, 0x40, 0xE0, 0xE0, "_MAX") M331 (__METHOD__, 0x04, 0x60, 0x60, 0x0100, 0x0100, "_ALN") M331 (__METHOD__, 0x05, 0x80, 0x80, 0x0120, 0x0120, "_LEN") } ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/concatenaterestemplate.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/concatenaterestemplat0000700000175000017500000024236714773714155033460 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Concatenate two resource templates */ Name (Z007, 0x07) Name (P440, Package (0x03) { Buffer (0x02) { 0x79, 0x00 // y. }, ResourceTemplate () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) }, ResourceTemplate () { StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} } StartDependentFnNoPri () { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} } StartDependentFn (0x00, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) } StartDependentFn (0x00, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) } StartDependentFn (0x00, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } StartDependentFn (0x01, 0x00) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) } StartDependentFn (0x01, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } QWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) DWordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) WordIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", , TypeTranslation, SparseTranslation) QWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) DWordMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", , AddressRangeACPI, TypeTranslation) WordBusNumber (ResourceConsumer, MinFixed, MaxFixed, SubDecode, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } Register (FFixedHW, 0xF0, // Bit Width 0xF1, // Bit Offset 0xF2F3F4F5F6F7F8F9, // Address ,) ExtendedIO (ResourceConsumer, MinFixed, MaxFixed, SubDecode, EntireRange, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , TypeTranslation, SparseTranslation) ExtendedMemory (ResourceConsumer, SubDecode, MinFixed, MaxFixed, NonCacheable, ReadOnly, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes , AddressRangeACPI, TypeTranslation) ExtendedSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD0D1D2D3D4D5D6D7, // Granularity 0xD8D9DADBDCDDDEDF, // Range Minimum 0xE0E1E2E3E4E5E6E7, // Range Maximum 0xE8E9EAEBECEDEEEF, // Translation Offset 0xF0F1F2F3F4F5F6F7, // Length 0xF8F9FAFBFCFDFEFF, // Type-Specific Attributes ) DWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xECEDEEEF, // Granularity 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Translation Offset 0xFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) QWordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xD8D9DADBDCDDDEDF, // Granularity 0xE0E1E2E3E4E5E6E7, // Range Minimum 0xE8E9EAEBECEDEEEF, // Range Maximum 0xF0F1F2F3F4F5F6F7, // Translation Offset 0xF8F9FAFBFCFDFEFF, // Length 0xFF, "PATHPATHPATH", ) WordSpace (0xC0, ResourceConsumer, SubDecode, MinFixed, MaxFixed, 0x5A, 0xF6F7, // Granularity 0xF8F9, // Range Minimum 0xFAFB, // Range Maximum 0xFCFD, // Translation Offset 0xFEFF, // Length 0xFF, "PATHPATHPATH", ) } StartDependentFn (0x01, 0x02) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) } StartDependentFn (0x02, 0x00) { } StartDependentFn (0x02, 0x01) { IRQ (Level, ActiveHigh, Exclusive, ) {0} IRQNoFlags () {1} DMA (Compatibility, NotBusMaster, Transfer16, ) {2} IO (Decode16, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4, // Alignment 0xF5, // Length ) FixedIO ( 0xF0F1, // Address 0xF2, // Length ) VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory32 (ReadWrite, 0xF0F1F2F3, // Range Minimum 0xF4F5F6F7, // Range Maximum 0xF8F9FAFB, // Alignment 0xFCFDFEFF, // Length ) Memory32Fixed (ReadOnly, 0xF0F1F2F3, // Address Base 0xF4F5F6F7, // Address Length ) VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } } StartDependentFn (0x02, 0x02) { } EndDependentFn () } }) /* Particular cases */ Name (P441, Package (0x01) { ResourceTemplate () { DMA (Compatibility, BusMaster, Transfer8_16, ) {4} } /* Buffer () {0x00, 0x00, 0x00, 0x79, 0x00}, */ /* Buffer () {0x2a, 0x10, 0x05, 0x79}, */ /* Empty buffer */ }) Name (P442, Package (0x02) { ResourceTemplate () { IRQNoFlags () {1} }, ResourceTemplate () { IRQNoFlags () {1} } /* * ResourceTemplate () { * IRQNoFlags () {1} * }, * * ResourceTemplate () { * IRQNoFlags () {1} * }, */ }) Name (P443, Package (0x02) { ResourceTemplate () { DMA (Compatibility, BusMaster, Transfer8_16, ) {4} IRQNoFlags () {1} }, /* Buffer () {0x00, 0x00, 0x00, 0x22, 0x02, 0x00, 0x79, 0}, */ /* Buffer () {0x2a, 0x10, 0x05, 0x22, 0x02, 0x00, 0x79, 0}, */ ResourceTemplate () { IRQNoFlags () {1} } }) Name (P444, Package (0x02) { ResourceTemplate () { IRQNoFlags () {1} DMA (Compatibility, BusMaster, Transfer8_16, ) {4} }, /* Buffer () {0x22, 0x02, 0x00, 0x00, 0x00, 0x00, 0x79, 0}, */ /* Buffer () {0x22, 0x02, 0x00, 0x2a, 0x10, 0x05, 0x79, 0}, */ ResourceTemplate () { IRQNoFlags () {1} } }) Method (RT1B, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Concatenate two resource templates", "concatenaterestemplate.asl") /* Calculate the checksum for the target first */ /* m334(p440, 3) */ /* m332(ts, 3, "p440", p438, p438, p440) */ /* Particular cases */ /* Store(0, Local0) */ /* Store(Buffer(Local0){}, Local1) */ /* Store(Local1, Index(p441, 1)) */ M332 (__METHOD__, 0x01, "p443", P441, P442, P443) M332 (__METHOD__, 0x01, "p444", P442, P441, P444) CH03 (__METHOD__, Z007, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/gpioint.asl0000700000175000017500000064762014773714156031324 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * GpioInt Resource Descriptor Macro */ Device (GPII) { } Name (P452, Package (0x0121) { ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x0000, "\\GPII", 0x00, ResourceConsumer, , ) { // Pin list 0xF1F2 } } }) Name (P453, Package (0x0121) { ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , ) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveHigh, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveLow, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Exclusive, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, ExclusiveAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, Shared, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullUp, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDown, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullDefault, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Level, ActiveBoth, SharedAndWake, PullNone, 0x1234, "\\GPII", 0xBB, ResourceProducer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0xC1A3 } }, ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x0000, "\\GPII", 0x00, ResourceConsumer, , ) { // Pin list 0xF1F2 } } }) Method (RT21, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "GpioInt Resource Descriptor Macro", "gpioint.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P452) != SizeOf (P453))) { ERR (__METHOD__, 0xB2, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P452), "p452", P452, P453) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0x00A3 } GpioInt (Edge, ActiveHigh, Exclusive, PullUp, 0x1234, "\\GPII", 0xBB, ResourceConsumer, , RawDataBuffer (0x04) // Vendor Data { 0x11, 0x22, 0x33, 0x44 }) { // Pin list 0x00A3 } } M331 (__METHOD__, 0x01, 0x38, 0x38, 0x0150, 0x0150, "_MOD") M331 (__METHOD__, 0x02, 0x39, 0x39, 0x0151, 0x0151, "_POL") M331 (__METHOD__, 0x03, 0x3B, 0x3B, 0x0153, 0x0153, "_SHR") M331 (__METHOD__, 0x04, 0x48, 0x48, 0x0160, 0x0160, "_PPI") M331 (__METHOD__, 0x05, 0x60, 0x60, 0x0178, 0x0178, "_DBT") M331 (__METHOD__, 0x06, 0xB8, 0xB8, 0x01D0, 0x01D0, "_PIN") M331 (__METHOD__, 0x07, 0xF8, 0xF8, 0x0210, 0x0210, "_VEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/vendorlong.asl0000700000175000017500000003125514773714156032017 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Long Vendor Resource Descriptor */ Name (P410, Package (0x07) { ResourceTemplate () { VendorLong () // Length = 0x11 { /* 0000 */ 0x8F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF // . } }, ResourceTemplate () { VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } }, ResourceTemplate () { VendorLong () // Length = 0x112 { /* 0000 */ 0xAF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0018 */ 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, // ........ /* 0020 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, // ........ /* 0028 */ 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, // ........ /* 0030 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, // !"#$%&' /* 0038 */ 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, // ()*+,-./ /* 0040 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, // 01234567 /* 0048 */ 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, // 89:;<=>? /* 0050 */ 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, // @ABCDEFG /* 0058 */ 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, // HIJKLMNO /* 0060 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, // PQRSTUVW /* 0068 */ 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, // XYZ[\]^_ /* 0070 */ 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, // `abcdefg /* 0078 */ 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, // hijklmno /* 0080 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, // pqrstuvw /* 0088 */ 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, // xyz{|}~. /* 0090 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, // ........ /* 0098 */ 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, // ........ /* 00A0 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, // ........ /* 00A8 */ 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, // ........ /* 00B0 */ 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, // ........ /* 00B8 */ 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, // ........ /* 00C0 */ 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, // ........ /* 00C8 */ 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, // ........ /* 00D0 */ 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, // ........ /* 00D8 */ 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, // ........ /* 00E0 */ 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, // ........ /* 00E8 */ 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, // ........ /* 00F0 */ 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, // ........ /* 00F8 */ 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, // ........ /* 0100 */ 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, // ........ /* 0108 */ 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, // ........ /* 0110 */ 0x00, 0x01 // .. } }, ResourceTemplate () { VendorLong () // Length = 0x00 { } }, ResourceTemplate () { VendorLong () // Length = 0x01 { 0xBF // . } }, ResourceTemplate () { VendorLong () // Length = 0x02 { 0xCF, 0xF0 // .. } }, ResourceTemplate () { VendorLong () // Length = 0x10 { /* 0000 */ 0xDF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE // ........ } } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.2 Vendor-Defined Descriptor Large Vendor-Defined Descriptor layout: Byte 0 (Tag Bits): Value = 10000100B (0X84) (Type = 1, Large item name = 0x4) Byte 1 (Length, bits[7:0]): Lower eight bits of data length (UUIID & vendor defined data) Byte 2 (Length, bits[15:8]): Upper eight bits of data length (UUID & vendor defined data) Byte 3 (UUID specific descriptor sub type): UUID specific descriptor sub type value Byte 4-19 (UUID): UUID Value Byte 20-(Length+2) (Vendor Defined Data): Vendor defined data bytes */ Name (P411, Package (0x07) { ResourceTemplate () { VendorLong () // Length = 0x11 { /* 0000 */ 0x8F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF // . } }, ResourceTemplate () { VendorLong () // Length = 0x15 { /* 0000 */ 0x9F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x00, 0x01, 0x02, 0x03 // ..... } }, ResourceTemplate () { VendorLong () // Length = 0x112 { /* 0000 */ 0xAF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // ........ /* 0018 */ 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, // ........ /* 0020 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, // ........ /* 0028 */ 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, // ........ /* 0030 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, // !"#$%&' /* 0038 */ 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, // ()*+,-./ /* 0040 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, // 01234567 /* 0048 */ 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, // 89:;<=>? /* 0050 */ 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, // @ABCDEFG /* 0058 */ 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, // HIJKLMNO /* 0060 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, // PQRSTUVW /* 0068 */ 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, // XYZ[\]^_ /* 0070 */ 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, // `abcdefg /* 0078 */ 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, // hijklmno /* 0080 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, // pqrstuvw /* 0088 */ 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, // xyz{|}~. /* 0090 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, // ........ /* 0098 */ 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, // ........ /* 00A0 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, // ........ /* 00A8 */ 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, // ........ /* 00B0 */ 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, // ........ /* 00B8 */ 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, // ........ /* 00C0 */ 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, // ........ /* 00C8 */ 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, // ........ /* 00D0 */ 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, // ........ /* 00D8 */ 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, // ........ /* 00E0 */ 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, // ........ /* 00E8 */ 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, // ........ /* 00F0 */ 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, // ........ /* 00F8 */ 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, // ........ /* 0100 */ 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, // ........ /* 0108 */ 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, // ........ /* 0110 */ 0x00, 0x01 // .. } }, ResourceTemplate () { VendorLong () // Length = 0x00 { } }, ResourceTemplate () { VendorLong () // Length = 0x01 { 0xBF // . } }, ResourceTemplate () { VendorLong () // Length = 0x02 { 0xCF, 0xF0 // .. } }, ResourceTemplate () { VendorLong () // Length = 0x10 { /* 0000 */ 0xDF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE // ........ } } }) Method (RT09, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Long Vendor Resource Descriptor Macro", "vendorlong.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x07, "p410", P410, P411) /* VendorLong has DescriptorName */ /* but has not fields in it. */ Local0 = ResourceTemplate () { VendorLong () // Length = 0x11 { /* 0000 */ 0x8F, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 0008 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0010 */ 0xFF // . } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/pingroup.asl0000700000175000017500000002131614773714156031502 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * PinGroup Resource Descriptor Macro */ Name (P460, Package (0x08) { ResourceTemplate () { PinGroup ("group1", ResourceProducer, , RawDataBuffer (0x03) // Vendor Data { 0xAA, 0xBB, 0xCC }) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group2", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group3", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group4", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group5", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group6", ResourceProducer, , RawDataBuffer (0x03) // Vendor Data { 0xAA, 0xBB, 0xCC }) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", ResourceProducer, , RawDataBuffer (0x03) // Vendor Data { 0xAA, 0xBB, 0xCC }) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("a", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } } }) Name (P461, Package (0x08) { ResourceTemplate () { PinGroup ("group1", ResourceProducer, , RawDataBuffer (0x03) // Vendor Data { 0xAA, 0xBB, 0xCC }) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group2", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group3", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group4", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group5", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("group6", ResourceProducer, , RawDataBuffer (0x03) // Vendor Data { 0xAA, 0xBB, 0xCC }) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", ResourceProducer, , RawDataBuffer (0x03) // Vendor Data { 0xAA, 0xBB, 0xCC }) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } }, ResourceTemplate () { PinGroup ("a", ResourceProducer, ,) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } } }) Method (RT28, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "PinGroup Resource Descriptor Macro", "pingroup.asl") /* The main test packages must have the same number of entries */ If ((SizeOf (P460) != SizeOf (P461))) { ERR (__METHOD__, 0xB3, __LINE__, 0x00, 0x00, 0x00, "Incorrect package length") Return (Zero) } /* Main test case for packages above */ M330 (__METHOD__, SizeOf (P460), "P460", P460, P461) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { PinGroup ("group0", ResourceProducer, , RawDataBuffer (0x03) // Vendor Data { 0xAA, 0xBB, 0xCC }) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } PinGroup ("group1", ResourceProducer, , RawDataBuffer (0x03) // Vendor Data { 0xAA, 0xBB, 0xCC }) { // Pin list 0x0001, 0x0002, 0x0003, 0x0004 } } M331 (__METHOD__, 0x01, 0xE8, 0xE8, 0x01E8, 0x01E8, "_VEN") M331 (__METHOD__, 0x01, 0x70, 0x70, 0x0170, 0x0170, "_PIN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/memory24.asl0000700000175000017500000001514014773714156031313 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Memory24() Memory Resource Descriptor Macro */ Name (P40E, Package (0x03) { ResourceTemplate () { Memory24 (ReadOnly, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) }, ResourceTemplate () { Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) }, ResourceTemplate () { Memory24 (ReadWrite, 0x0000, // Range Minimum 0x0000, // Range Maximum 0x0000, // Alignment 0x0000, // Length ) } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.1 24-Bit Memory Range Descriptor 24-Bit Memory Range Descriptor layout: Byte 0 (Tag Bits): Value = 10000001B (0x81) (Type = 1, Large item name = 0x1) Byte 1 (Length, bits[7:0]): Value = 00001001B (9) Byte 2 (Length, bits[15:8]): Value = 00000000B (0) Byte 3 (Information): Bit[7:1] Ignored Bit[0] Write status, _RW 1 writeable (read/write) 0 non-writeable (read-only) Byte 4 (Range minimum base address, _MIN, bits[7:0]): Address bits[15:8] of the minimum base memory address for which the card may be configured. Byte 5 (Range minimum base address, _MIN, bits[15:8]): Address bits[23:16] of the minimum base memory address for which the card may be configured Byte 6 (Range maximum base address, _MAX, bits[7:0]): Address bits[15:8] of the maximum base memory address for which the card may be configured. Byte 7 (Range maximum base address, _MAX, bits[15:8]): Address bits[23:16] of the maximum base memory address for which the card may be configured Byte 8 (Base alignment, _ALN, bits[7:0]): This field contains the lower eight bits of the base alignment. The base alignment provides the increment for the minimum base address. (0x0000 = 64 KB) Byte 9 (Base alignment, _ALN, bits[15:8]): This field contains the upper eight bits of the base alignment. Byte 10 (Range length, _LEN, bits[7:0]): This field contains the lower eight bits of the memory range length. The range length provides the length of the memory range in 256 byte blocks. Byte 11 (Range length, _LEN, bits[15:8]): This field contains the upper eight bits of the memory range length. */ Name (P40F, Package (0x03) { ResourceTemplate () { Memory24 (ReadOnly, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) }, ResourceTemplate () { Memory24 (ReadWrite, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) }, ResourceTemplate () { Memory24 (ReadWrite, 0x0000, // Range Minimum 0x0000, // Range Maximum 0x0000, // Alignment 0x0000, // Length ) } }) Method (RT08, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Memory24 Resource Descriptor Macro", "memory24.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x03, "p40e", P40E, P40F) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { Memory24 (ReadOnly, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) Memory24 (ReadOnly, 0xF0F1, // Range Minimum 0xF2F3, // Range Maximum 0xF4F5, // Alignment 0xF6F7, // Length ) } M331 (__METHOD__, 0x01, 0x18, 0x18, 0x78, 0x78, "_RW") M331 (__METHOD__, 0x02, 0x20, 0x20, 0x80, 0x80, "_MIN") M331 (__METHOD__, 0x03, 0x30, 0x30, 0x90, 0x90, "_MAX") M331 (__METHOD__, 0x04, 0x40, 0x40, 0xA0, 0xA0, "_ALN") M331 (__METHOD__, 0x05, 0x50, 0x50, 0xB0, 0xB0, "_LEN") } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/vendorshort.asl0000700000175000017500000001260414773714156032214 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Short Vendor Resource Descriptor */ Name (P40C, Package (0x08) { ResourceTemplate () { VendorShort () // Length = 0x00 { } }, ResourceTemplate () { VendorShort () // Length = 0x01 { 0xF1 // . } }, ResourceTemplate () { VendorShort () // Length = 0x02 { 0xE1, 0xF2 // .. } }, ResourceTemplate () { VendorShort () // Length = 0x03 { 0xD1, 0xE2, 0xF3 // ... } }, ResourceTemplate () { VendorShort () // Length = 0x04 { 0x00, 0xD2, 0xE3, 0xF4 // .... } }, ResourceTemplate () { VendorShort () // Length = 0x05 { 0xB1, 0xC2, 0x00, 0xE4, 0xF5 // ..... } }, ResourceTemplate () { VendorShort () // Length = 0x06 { 0xA1, 0xB2, 0xC3, 0xD4, 0xE5, 0xF6 // ...... } }, ResourceTemplate () { VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.2.7 Vendor-Defined Descriptor Vendor-Defined Descriptor layout: Byte 0 (Tag Bits): Value = 01110nnnB (0x71-0x77)(Type = 0, small item name = 0xE, length = (1-7)) Byte 1 to 7 - Vendor defined */ Name (P40D, Package (0x08) { ResourceTemplate () { VendorShort () // Length = 0x00 { } }, ResourceTemplate () { VendorShort () // Length = 0x01 { 0xF1 // . } }, ResourceTemplate () { VendorShort () // Length = 0x02 { 0xE1, 0xF2 // .. } }, ResourceTemplate () { VendorShort () // Length = 0x03 { 0xD1, 0xE2, 0xF3 // ... } }, ResourceTemplate () { VendorShort () // Length = 0x04 { 0x00, 0xD2, 0xE3, 0xF4 // .... } }, ResourceTemplate () { VendorShort () // Length = 0x05 { 0xB1, 0xC2, 0x00, 0xE4, 0xF5 // ..... } }, ResourceTemplate () { VendorShort () // Length = 0x06 { 0xA1, 0xB2, 0xC3, 0xD4, 0xE5, 0xF6 // ...... } }, ResourceTemplate () { VendorShort () // Length = 0x07 { 0x00, 0xA2, 0xB3, 0x76, 0xD5, 0xE6, 0xF7 // ...v... } } }) Method (RT07, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Short Vendor Resource Descriptor Macro", "vendorshort.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x08, "p40c", P40C, P40D) } acpica-unix-20250404/tests/aslts/src/runtime/collections/functional/descriptor/interrupt.asl0000700000175000017500000014122214773714156031672 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Resource Descriptor macros * * Interrupt() Interrupt Resource Descriptor Macro */ Name (Z017, 0x11) Name (P434, Package (0x17) { ResourceTemplate () { Interrupt (ResourceProducer, Level, ActiveHigh, Exclusive, ,, ) { 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Level, ActiveHigh, Shared, ,, ) { 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Level, ActiveLow, Exclusive, ,, ) { 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Level, ActiveLow, Shared, ,, ) { 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveHigh, Exclusive, ,, ) { 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveHigh, Shared, ,, ) { 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveLow, Exclusive, ,, ) { 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveLow, Shared, ,, ) { 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, ) { 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveHigh, Shared, ,, ) { 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) { 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, ) { 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveHigh, Exclusive, ,, ) { 0xCCCDCECF, 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveHigh, Shared, ,, ) { 0xC8C9CACB, 0xCCCDCECF, 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Exclusive, ,, ) { 0xC4C5C6C7, 0xC8C9CACB, 0xCCCDCECF, 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, ,, ) { 0xC0C1C2C3, 0xC4C5C6C7, 0xC8C9CACB, 0xCCCDCECF, 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, ,, ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x01, "", ) { 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x0F, "P", ) { 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xF0, "PATH", ) { 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x0F,, ) { 0xFCFDFEFF, } } }) /* ACPI Specification, Revision 3.0, September 2, 2004 6.4.3.6 Extended Interrupt Descriptor Extended Interrupt Descriptor layout: Byte 0 Extended Interrupt Descriptor Value=10001001B (0x89) (Type = 1, Large item name = 0x9) Byte 1 Length, bits[7:0] Variable: Value = 6 (minimum) Byte 2 Length, bits[15:8] Variable: Value = 0 (minimum) Byte 3 Interrupt Vector Flags Interrupt Vector Information. Bit[7:4] Reserved (must be 0) Bit[3] Interrupt is shareable, _SHR Bit[2] Interrupt Polarity, _LL 0 Active-High: This interrupt is sampled when the signal is high, or true. 1 Active-Low: This interrupt is sampled when the signal is low, or false. Bit[1] Interrupt Mode, _HE 0 Level-Triggered: Interrupt is triggered in response to the signal being in either a high or low state. 1 Edge-Triggered: This interrupt is triggered in response to a change in signal state, either high to low or low to high. Bit[0] Consumer/Producer: 1-This device consumes this resource 0-This device produces and consumes this resource Byte 4 Interrupt table length Indicates the number of interrupt numbers that follow. When this descriptor is returned from _CRS, or when OSPM passes this descriptor to _SRS, this field must be set to 1. Byte 4n+5 Interrupt Number, _INT bits [7:0] Interrupt number Byte 4n+6 Interrupt Number, _INT bits [15:8] Byte 4n+7 Interrupt Number, _INT bits [23:16] Byte 4n+8 Interrupt Number, _INT bits [31:24] Additional interrupt numbers Byte x Resource Source Index (Optional) Only present if Resource Source (below) is present. This field gives an index to the specific resource descriptor that this device consumes from in the current resource template for the device object pointed to in Resource Source. String Resource Source (Optional) If present, the device that uses this descriptor consumes its resources from the resources produces by the named device object. If not present, the device consumes its resources out of a global pool. If not present, the device consumes this resource from its hierarchical parent. */ Name (P435, Package (0x17) { /* Byte 3 (Interrupt Vector Flags) of Extended Interrupt Descriptor */ ResourceTemplate () { Interrupt (ResourceProducer, Level, ActiveHigh, Exclusive, ,, ) { 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Level, ActiveHigh, Shared, ,, ) { 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Level, ActiveLow, Exclusive, ,, ) { 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Level, ActiveLow, Shared, ,, ) { 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveHigh, Exclusive, ,, ) { 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveHigh, Shared, ,, ) { 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveLow, Exclusive, ,, ) { 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveLow, Shared, ,, ) { 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, ) { 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveHigh, Shared, ,, ) { 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) { 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, ) { 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveHigh, Exclusive, ,, ) { 0xCCCDCECF, 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveHigh, Shared, ,, ) { 0xC8C9CACB, 0xCCCDCECF, 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Exclusive, ,, ) { 0xC4C5C6C7, 0xC8C9CACB, 0xCCCDCECF, 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, ,, ) { 0xC0C1C2C3, 0xC4C5C6C7, 0xC8C9CACB, 0xCCCDCECF, 0xD0D1D2D3, 0xD4D5D6D7, 0xD8D9DADB, 0xDCDDDEDF, 0xE0E1E2E3, 0xE4E5E6E7, 0xE8E9EAEB, 0xECEDEEEF, 0xF0F1F2F3, 0xF4F5F6F7, 0xF8F9FAFB, 0xFCFDFEFF, } }, /* At the moment returning */ /* Buffer () {0x89, 0x06, 0x00, 0x0f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x79, 0x00}, */ ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, ,, ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } }, /* Resource Source */ ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x01, "", ) { 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x0F, "P", ) { 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xF0, "PATH", ) { 0xFCFDFEFF, } }, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0xFCFDFEFF, } }, /* Particular cases */ ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0xFF, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", ) { 0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006, 0x00000007, 0x00000008, 0x00000009, 0x0000000A, 0x0000000B, 0x0000000C, 0x0000000D, 0x0000000E, 0x0000000F, 0x00000010, 0x00000011, 0x00000012, 0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018, 0x00000019, 0x0000001A, 0x0000001B, 0x0000001C, 0x0000001D, 0x0000001E, 0x0000001F, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024, 0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002A, 0x0000002B, 0x0000002C, 0x0000002D, 0x0000002E, 0x0000002F, 0x00000030, 0x00000031, 0x00000032, 0x00000033, 0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039, 0x0000003A, 0x0000003B, 0x0000003C, 0x0000003D, 0x0000003E, 0x0000003F, 0x00000040, 0x00000041, 0x00000042, 0x00000043, 0x00000044, 0x00000045, 0x00000046, 0x00000047, 0x00000048, 0x00000049, 0x0000004A, 0x0000004B, 0x0000004C, 0x0000004D, 0x0000004E, 0x0000004F, 0x00000050, 0x00000051, 0x00000052, 0x00000053, 0x00000054, 0x00000055, 0x00000056, 0x00000057, 0x00000058, 0x00000059, 0x0000005A, 0x0000005B, 0x0000005C, 0x0000005D, 0x0000005E, 0x0000005F, 0x00000060, 0x00000061, 0x00000062, 0x00000063, 0x00000064, 0x00000065, 0x00000066, 0x00000067, 0x00000068, 0x00000069, 0x0000006A, 0x0000006B, 0x0000006C, 0x0000006D, 0x0000006E, 0x0000006F, 0x00000070, 0x00000071, 0x00000072, 0x00000073, 0x00000074, 0x00000075, 0x00000076, 0x00000077, 0x00000078, 0x00000079, 0x0000007A, 0x0000007B, 0x0000007C, 0x0000007D, 0x0000007E, 0x0000007F, 0x00000080, 0x00000081, 0x00000082, 0x00000083, 0x00000084, 0x00000085, 0x00000086, 0x00000087, 0x00000088, 0x00000089, 0x0000008A, 0x0000008B, 0x0000008C, 0x0000008D, 0x0000008E, 0x0000008F, 0x00000090, 0x00000091, 0x00000092, 0x00000093, 0x00000094, 0x00000095, 0x00000096, 0x00000097, 0x00000098, 0x00000099, 0x0000009A, 0x0000009B, 0x0000009C, 0x0000009D, 0x0000009E, 0x0000009F, 0x000000A0, 0x000000A1, 0x000000A2, 0x000000A3, 0x000000A4, 0x000000A5, 0x000000A6, 0x000000A7, 0x000000A8, 0x000000A9, 0x000000AA, 0x000000AB, 0x000000AC, 0x000000AD, 0x000000AE, 0x000000AF, 0x000000B0, 0x000000B1, 0x000000B2, 0x000000B3, 0x000000B4, 0x000000B5, 0x000000B6, 0x000000B7, 0x000000B8, 0x000000B9, 0x000000BA, 0x000000BB, 0x000000BC, 0x000000BD, 0x000000BE, 0x000000BF, 0x000000C0, 0x000000C1, 0x000000C2, 0x000000C3, 0x000000C4, 0x000000C5, 0x000000C6, 0x000000C7, 0x000000C8, 0x000000C9, 0x000000CA, 0x000000CB, 0x000000CC, 0x000000CD, 0x000000CE, 0x000000CF, 0x000000D0, 0x000000D1, 0x000000D2, 0x000000D3, 0x000000D4, 0x000000D5, 0x000000D6, 0x000000D7, 0x000000D8, 0x000000D9, 0x000000DA, 0x000000DB, 0x000000DC, 0x000000DD, 0x000000DE, 0x000000DF, 0x000000E0, 0x000000E1, 0x000000E2, 0x000000E3, 0x000000E4, 0x000000E5, 0x000000E6, 0x000000E7, 0x000000E8, 0x000000E9, 0x000000EA, 0x000000EB, 0x000000EC, 0x000000ED, 0x000000EE, 0x000000EF, 0x000000F0, 0x000000F1, 0x000000F2, 0x000000F3, 0x000000F4, 0x000000F5, 0x000000F6, 0x000000F7, 0x000000F8, 0x000000F9, 0x000000FA, 0x000000FB, 0x000000FC, 0x000000FD, 0x000000FE, 0x000000FF, } }, /* 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection) */ ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x0F,, ) { 0xFCFDFEFF, } } }) Method (RT18, 0, Serialized) { /* Emit test header, set the filename */ THDR (__METHOD__, "Interrupt Resource Descriptor Macro", "interrupt.asl") /* Main test case for packages above */ M330 (__METHOD__, 0x17, "p434", P434, P435) /* Check resource descriptor tag offsets */ Local0 = ResourceTemplate () { Interrupt (ResourceProducer, Edge, ActiveLow, Shared, ,, ) { 0xFCFDFEFF, } Interrupt (ResourceProducer, Edge, ActiveLow, Shared, ,, ) { 0xFCFDFEFF, } } M331 (__METHOD__, 0x01, 0x19, 0x19, 0x61, 0x61, "_HE") M331 (__METHOD__, 0x02, 0x1A, 0x1A, 0x62, 0x62, "_LL") M331 (__METHOD__, 0x03, 0x1B, 0x1B, 0x63, 0x63, "_SHR") M331 (__METHOD__, 0x04, 0x28, 0x28, 0x70, 0x70, "_INT") CH03 (__METHOD__, Z017, __LINE__, 0x00, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Makefile0000700000175000017500000000021414773714160024243 0ustar ivanhuivanhu# collections MDIRS= bdemo complex exceptions functional IMPL service mt Identity2MS # FULL TOP= ../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/0000700000175000017500000000000014773714155024256 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/0000700000175000017500000000000014773714155025574 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/0000700000175000017500000000000014773714155026736 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rconversion/0000700000175000017500000000000014773714155031305 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rconversion/RUN.asl0000700000175000017500000000364114773714155032461 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Implicit Result Object Conversion", TCLC, 0x0E, W011)) { SRMT ("OCV2") OCV2 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rconversion/MAIN.asl0000700000175000017500000000450314773714155032537 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("rconversion", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/common/operations.asl") Include ("../../../../../../runtime/common/conversion/rproc.asl") Include ("../../../../../../runtime/common/conversion/rtest.asl") Include ("../../../../../../runtime/collections/complex/result/tests/rconversion/rconversion.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/result/tests/rconversion/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rconversion/Makefile0000700000175000017500000000015514773714155032751 0ustar ivanhuivanhu# rconversion AMLMOD= rconversion COLL= ../../../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rconversion/rconversion.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rconversion/rconversio0000700000175000017500000000412014773714155033421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * This test should be investigated and probably fixed because * it most likely not conforms with the changed functionality of * the Store operator - storing of non-computational data and * BufferFields and Fields was once disabled. * * Such are exc_operand1, exc_result, oconversion and rconversion tests. */ /* Run-method */ Method (OCV2, 0, NotSerialized) { M560 (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/SPEC0000700000175000017500000005013114773714155027416 0ustar ivanhuivanhu Result Object Complex test specification I. Test goals The intention of the test is to verify all the ASL grammar rules of specifying, receiving and processing of Result objects in ASL operators. The main goal of the test is checking that saving of Result objects in target (destination) ones for the next use is provided as determined by the Advanced Configuration and Power Interface (ACPI) Specification and there are no side effects. Temporary existence of the initial Result object while there are any objects referred to it can be a subject for another test. The chapters of ACPI Specification which the test specification is based on are enumerated in the Appendix I. The document represents a wide range of testing aspects and describes using of them in tests. There are the following main issues in Result object processing: - intermediate creation of an object of a specified type as a copy of the immediate Source Object or the result either of some operator or a called method, - deletion of the result object if it is not used after the method invocation or processing of any ASL operator (not considered in this test) - deletion of the existing target object on storing a new one (disregard of both target object was specified by its Name or by a reference to it and kind of storing - Store, CopyObject, optional): = to Named Object which is not Field object = to initialized method LocalX (ArgX) object = to the initialized Elements of a Package - creation of an object of a specified type, if none target object exists or it was deleted, the cases: = declaration of a Named Object of any type = declaration of the Elements of a Package = storing to Named Object which is not Field object = storing to the Elements of a Package = storing to an ArgX object containing a reference = storing to method LocalX object (or ArgX object not containing a reference) - overwriting of the existing object on storing a new one to any Field object (Buffer Field or Field Unit) specified by = Name of some Object of the relevant type = a reference to some Named Object of the relevant type = an indexed reference to a byte of some Buffer or String Named Object = an indexed reference to a byte of some Buffer or String Elements of a Package - overwriting of the existing Package Object on storing a new one - none of implicit result conversion: = if the target of Store() is a initialized method local or argument (LocalX or ArgX), = if the target of Store() is an initialized Elements of a Package, = on copying by means of CopyObject() when target is not Field object, = on optional storing if the ASL operator is one of the explicit conversion operators (ToString, ToInteger, etc.) - implicit result conversion on storing to the target of a fixed type such as a Named object or Field object = in Store operator = on optional storing in any operator besides the explicit conversion operators = on internal storing in Increment and Decrement operators = on copying by means of CopyObject() when target is Field object, - an exception should occur if implicit result conversion is impossible: = the data type of destination is not relevant to type of the result = String to Integer conversion when number of significant hex digits is more than 8 for 32-bit Integers or 16 for 64-bit Integers = Buffer to String conversion when buffer contains more than 67 bytes - an exception should occur on an attempt to write into a literal constant, - storing any object to a constant is a noop, not an error II. The implicit Result conversion rules There are following cases to apply Result conversion: - Integer (DDB Handle) to String - Integer (DDB Handle) to Buffer - Integer (DDB Handle) to Buffer Field - Integer (DDB Handle) to Field Unit - String to Integer - String to Buffer - String to Buffer Field - String to Field Unit - Buffer to Integer - Buffer to String - Buffer to Buffer Field - Buffer to Field Unit - Package to Package Particularities of the conversion are enumerated in the Appendix II. III. Additional special questions There are several additional questions related to the issues above: - consequences of deletion - should or not any references to the deleted object be being applied to the new one or somehow else: = a reference to a whole object obtained through Refof (Condrefof) = a reference to some part of a object obtained through creation of a field or Index operator - consequences of overwriting on shortening of memory occupied by an Object (String, Package (Buffer can not be shortened?))- should or not any references to the released part of the object be somehow being applied, - any source objects should be different from the resulting object (new created or old modified) so that modification or deletion of the target should not corrupt the source objects and otherwise, - all corner cases of making a copy of the result object should be evaluated, they include (especially cases when there is no need in result object conversion): = size of the either result or target object is zero = size of the either result or target String object is 200 = size of the either result or target Package object is 255 = result object is shorter than target one = result object is longer than target one = sizes of the both result and target objects are the same - all corner cases of applying the result object conversion rules should be evaluated, they include: = String to Buffer conversion of zero length and 200 bytes length strings = String to Integer conversion of 16 (8) length hexadecimal strings = Buffer to String conversion of zero length and 67 bytes length buffers - particularities of Integer representation on 32-bit/64-bit modes should be taken into account, - the special AML object type - reference (Indexed Reference) - should be verified. - references, obtained through the NameString as an element of a Package should be verified, - some cases of applying both the source operand conversion and the result conversion rules should be evaluated, - some cases of using the same object both as the source operand(s) and the target object, - storing to Argx particularity should be evaluated: in this case ArgX effectively becomes a LocalX, - simultaneous storing by the Store operator and optional storing in any other operator in both the same and different target objects. IV. Enumeration of test aspects So, wide variety of the different aspects can be considered on testing. 1. All three ways to store a copy of some object: - Store operator Store(Expr(Src0, ...), Dst0) - CopyObject operator CopyObject(Expr(Src0, ...), Dst0) - Internal storing in the Increment/Decrement operators Increment(Dst0) - Optional storing when the ASL operator is one of the explicit conversion operators (ToString, ToInteger, etc.) ToBuffer(Src0, Dst0) - Any other operator with optional storing Op(Expr(Src0, ...), Dst0) 2. Objects of all ASL data types should be exercised as destinations to store result including objects containing an reference. 3. Destinations should be represented by all possible ways: - Named Object - Method ArgX Object - Method LocalX Object - Reference to Named Object, Method ArgX and LocalX Object: = immediate ArgX = Derefof(Source of reference) - Indexed reference to Elements of Package, Buffer and String: = immediate ArgX = immediate Index(...) = Derefof(Source of reference) - Reference, obtained through the NameString as an element of a Package 4. Objects of all ASL data types should be exercised as result objects to store including objects containing an reference. 5. Obtaining of the result objects should be represented by all possible ways: - Result object can be represented immediately by Source Object as: = Data Image = Named Object = Method ArgX Object = Method LocalX Object - Source Objects can be represented by reference and used through Derefof to be obtained as Result object: = immediate Refof for ~ Named Object ~ Method ArgX Object ~ Method LocalX Object = intermediate Object containing reference obtained through Refof or CondRefof: ~ Named Object ~ Method ArgX Object ~ Method LocalX Object ~ Element of a Package = Reference returned by called Method and obtained by any enumerated way - Source Objects can be represented as Element of some complex objects (String, Buffer, Package) and used through Derefof to be obtained as Result object: = immediate Index(...) applied to ~ String ~ Buffer ~ Package = intermediate Object containing reference obtained through Index ~ Named Object ~ Method ArgX Object ~ Method LocalX Object ~ Element of a Package = Indexed Reference returned by called Method and obtained by any enumerated way - Result Object returned by called Method and obtained by any enumerated way = Data Image = Named Object = Method ArgX Object = Method LocalX Object = immediate Derefof for normal Reference = immediate Derefof for Indexed Reference - immediate Result Object returned by any Operator = Op(Expr(Src0, ...) => Object - types of Source Objects should be chosen so that different kinds of implicit source operand conversion rules were used. V. Order of testing actions Testing actions should be performed in the next order: - choose a way to store a copy of some object: = Store operator = CopyObject operator = Internal storing in the Increment/Decrement operators = Optional storing when the ASL operator is one of the explicit conversion operators (ToString, ToInteger, etc.) = Any operator with optional storing - choose a type of the Object to store into: = Uninitialized = Integer = String = Buffer = Package ... - choose a value of the Object to store into - choose kind of the Object to store into: = Named Object = Method ArgX Object = Method LocalX Object = Reference to Named Object, Method ArgX and LocalX Object: ~ immediate ArgX ~ Derefof(Source of reference) = Indexed reference to Elements of Package, Buffer and String: ~ immediate ArgX ~ immediate Index(...) ~ Derefof(Source of reference) - determine the destination Object to store into: it should exist and be initialized or reinitialized with the chosen value (Dst0) - choose a way to obtain some result object (Expr): = Data Image = Named Object = Method ArgX Object = Method LocalX Object = Derefof of immediate Refof = Derefof of intermediate Object = Derefof of Reference returned by called Method = Derefof of immediate Index(...) = Derefof of intermediate Object containing Indexed reference = Derefof of Indexed Reference returned by called Method = Result Object returned by called Method = Result Object returned by any Operator (Op) - choose a type of the result Object - choose specific source objects to obtain the result Object of the specified type: it should exist and be initialized (Src0, ...) - choose a benchmark value according to a storing expression, chosen source objects, the value of the target object and relevant result conversion rule (if any) - Bval - check that the destination Object Dst0 is properly initialized - perform storing expression: Store(Expr(Src0, ...), Dst0) CopyObject(Expr(Src0, ...), Dst0) Op(Expr(Src0, ...), Dst0) - check that the benchmark value Bval is equal to the updated destination Object Dst0: - check that the source objects are not updated: - update the destination Object again and check that the source objects are not updated - repeat test action for all variety of test aspects Additional efforts should be spent to check: - consequences of deletion, - consequences of overwriting - corner cases VI. Design strategy Thus the storing of a copy of an Object will be verified for all possible conditions that could appear in valid AML code. The only problem is that implementation of all testing aspects can require too much efforts. So, the minimal set of testing aspects to verify should be determined. This set must include verifying of the following issues: - all ways to store a copy of some object: - Store operator - CopyObject operator - Internal storing in the Increment/Decrement operators - Particular optional storing when the ASL operator is one of the explicit conversion operators (ToString, ToInteger, etc.) - The other operators with normal optional storing - implicit result conversion rules for all possible conversions - storing of result objects represented immediately as: = Data Image = Named Object = Method ArgX Object = Method LocalX Object = returned by called Method - storing of result objects obtained by immediate Derefof of reference (it should be obtained by Refof, Condrefof, Index or be returned by called Method) to: = Named Object = Method ArgX Object = Method LocalX Object = Element of a Package - storing of immediate Result Object returned by several Operators = CondRefOf(any) => Boolean = Not (int) => Integer = ToBuffer ({int|str|buf}) => Buffer = Add (int, int) => Integer = Concatenate({int|str|buf}, {int|str|buf}) => ComputationalData = Index ({str|buf|pkg}, int) => ObjectReference = Mid ({str|buf}, int, int) => Buffer or String Appendix I. Chapters of ACPI Specification involved in the test. The test specification is based on the following chapters of ACPI Specification, Revision 3.0: 5.5.2.2 Arguments 5.5.2.3 Method Calling Convention 5.5.2.4 Local Variables and Locally Created Data Objects 17.2.2 ASL Literal Constants, 17.2.5.2 Explicit Data Type Conversions, 17.2.5.3 Implicit Data Type Conversions, 17.2.5.5 Implicit Result Object Conversion, 17.2.5.6 Data Types and Type Conversions, 17.2.5.7 Data Type Conversion Rules, 17.2.5.8 Rules for Storing and Copying Objects, 17.2.5.9 Rules for Reading and Writing Objects, 17.5.5 Argx (Method Argument Data Objects) 17.5.9 Buffer (Declare Buffer Object) 17.5.13 CondRefOf (Create Object Reference Conditionally) 17.5.15 CopyObject (Copy and Store Object) 17.5.24 Decrement (Integer Decrement) 17.5.27 DerefOf (Dereference an Object Reference) 17.5.52 Increment (Integer Increment) 17.5.53 Index (Indexed Reference To Member Object) 17.5.54 IndexField (Declare Index/Data Fields) 17.5.69 Localx (Method Local Data Objects) 17.5.80 Name (Declare Named Object) 17.5.89 OperationRegion (Declare Operation Region) 17.5.91 Package (Declare Package Object) 17.5.97 RefOf (Create Object Reference) 17.5.102 Return (Return from Method Execution) 17.5.113 Store (Store an Object) The other ASL Operator Reference chapters allowing optional storing and/or providing Result objects. The chapters dealing with creation of Buffer Field, Field Unit and objects of the other types. Appendix II. The implicit Result conversion rules There are none cases to apply conversion to Buffer Field, Field Unit or Package to Package on Source conversion therefore they should be enumerated here (others are reviewed in the Source Operand complex test specification): - Integer (DDB Handle) to Buffer Field The Integer overwrites the entire Buffer Field. If the integer is smaller than the size of the buffer field, it is zero-extended. If the integer is larger than the size of the buffer field, the upper bits are truncated. - Integer (DDB Handle) to Field Unit The Integer overwrites the entire Field Unit. If the integer is smaller than the size of the Field Unit, it is zero-extended. If the integer is larger than the size of the Field Unit, the upper bits are truncated - String to Buffer Field The string is treated as a buffer. If this buffer is smaller than the size of the buffer field, it is zero extended. If the buffer is larger than the size of the buffer field, the upper bits are truncated. - String to Field Unit Each character of the string is written, starting with the first, to the Field Unit. If the Field Unit is less than eight bits, then the upper bits of each character are lost. If the Field Unit is greater than eight bits, then the additional bits are zeroed. - Buffer to Buffer Field (see String to Buffer Field) - Buffer to Field Unit The entire contents of the buffer are copied to the Field Unit. If the buffer is larger (in bits) than the size of the Field Unit, it is broken into pieces and completely written to the Field Unit, lower chunks first. If the buffer (or the last piece of the buffer, if broken up) is smaller than the size of the Field Unit, it is zero extended before being written. - Package to Package If no package object exists, a new package object is created. If the package already exists, it is completely overwritten and truncated or extended to accommodate the source package exactly. Any and all existing valid (non-null) package elements of the target package are deleted, and the entire contents of the source package are copied into the target package. There are specific in conversion on writing to other existing objects: - Integer (DDB Handle) to String If the string already exists, it is completely overwritten and truncated or extended to accommodate the converted integer exactly. In either case, the entire integer is converted to a string of hexadecimal ASCII characters. - Integer (DDB Handle) to Buffer If a buffer object already exists, the Integer overwrites the entire Buffer object. If the integer requires more bits than the size of the Buffer, then the integer is truncated before being copied to the Buffer. If the integer contains fewer bits than the size of the buffer, the Integer is zero-extended to fill the entire buffer. - String to Integer The integer is initialized to the value zero and the ASCII string is interpreted as a hexadecimal constant. Each string character is interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a'-'f'), starting with the first character as the most significant digit and ending with the first non-hexadecimal character, end-of-string, or when the size of an integer is reached (8 characters for 32-bit integers and 16 characters for 64-bit integers). Note: the first non-hex character terminates the conversion without error, and a "0x" prefix is not allowed. - String to Buffer If a buffer object already exists, it is completely overwritten. If the string is longer than the buffer, the string is truncated before copying. If the string is shorter than the buffer, the remaining buffer bytes are set to zero. In either case, the string is treated as a buffer, with each ASCII string character copied to one buffer byte, including the null terminator. - Buffer to Integer The contents of the buffer are copied to the Integer, starting with the least-significant bit and continuing until the buffer has been completely copied - up to the maximum number of bits in an Integer. The size of an Integer is indicated by the Definition Block table header's Revision field. A Revision field value less than 2 indicates that the size of an Integer is 32-bits. A value greater than or equal to 2 signifies that the size of an Integer is 64-bits. If the buffer is smaller than the size of an integer, it is zero extended. If the buffer is larger than the size of an integer, it is truncated. - Buffer to String If the string already exists, it is completely overwritten and truncated or extended to accommodate the converted buffer exactly. The entire contents of the buffer are converted to a string of two-character hexadecimal numbers, each separated by a space. A fatal error is generated if greater than two hundred ASCII characters are created. acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rstore/0000700000175000017500000000000014773714155030254 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rstore/RUN.asl0000700000175000017500000000361114773714155031425 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Result Object processing in Store()", TCLC, 0x0C, W011)) { RES0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rstore/MAIN.asl0000700000175000017500000000427314773714155031512 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("rstore", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/result/common/rcommon.asl") Include ("../../../../../../runtime/collections/complex/result/tests/rstore/rstore.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/result/tests/rstore/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rstore/Makefile0000700000175000017500000000020214773714155031711 0ustar ivanhuivanhu# rstore AMLMOD= rstore COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 -vx 6142 TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rstore/rstore.asl0000700000175000017500000106430114773714155032303 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check Result Object processing (simultaneously verifying * the Implicit Result Object Conversion Rules) in the Store operator */ Name (Z123, 0x7B) /* Store to Global Named Objects, Constant and LocalX */ Method (M690, 0, Serialized) { Name (TERR, "test error") Name (I000, 0x00) /* Common testing control */ Method (M100, 3, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) SRMT (Arg0) LPN0 = 0x09 LPC0 = 0x00 /* Enumerate ways to obtain some result object */ While (LPN0) { LPN1 = 0x03 LPC1 = 0x01 /* Enumerate types of the result Object */ While (LPN1) { /* Choose a type and a value of the Object to store into */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Uninitialized */ /* Store(Src0, Local0) */ } Case (0x01) { /* Integer */ /* Choose kind of the Object to store into: */ If ((Arg2 == 0x00)) { /* Constant (like Store(Src0, Zero)) */ M010 (Concatenate (__METHOD__, "-m010"), LPC0, LPC1) } ElseIf ((Arg2 == 0x01)) { /* Named Object */ M011 (Concatenate (__METHOD__, "-m011"), LPC0, LPC1) } ElseIf ((Arg2 == 0x02)) { /* ArgX Object */ /* Store(Src0, arg3) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x03)) { /* LocalX Object */ M013 (Concatenate (__METHOD__, "-m013"), LPC0, LPC1) } ElseIf ((Arg2 == 0x04)) { /* Reference in ArgX Object */ /* Store(Src0, arg4) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x05)) { /* Elemenf of a Package */ /* Store(Src0, Index(p680, 0)) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Else { Debug = "Unexpected Kind of the Object to store into" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Case (0x02) { /* String */ /* choose kind of the Object to store into: */ If ((Arg2 == 0x00)) { /* Constant */ /* Store(Src0, "") */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x01)) { /* Named Object */ M021 (Concatenate (__METHOD__, "-m021"), LPC0, LPC1) } ElseIf ((Arg2 == 0x02)) { /* ArgX Object */ /* Store(Src0, arg3) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x03)) { /* LocalX Object */ M023 (Concatenate (__METHOD__, "-m023"), LPC0, LPC1) } ElseIf ((Arg2 == 0x04)) { /* Reference in ArgX Object */ /* Store(Src0, arg4) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x05)) { /* Elemenf of a Package */ /* Store(Src0, Index(p680, 0)) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Else { Debug = "Unexpected Kind of the Object to store into" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Case (0x03) { /* Buffer */ /* choose kind of the Object to store into: */ If ((Arg2 == 0x00)) { /* Constant */ /* Store(Src0, Buffer(1){}) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x01)) { /* Named Object */ M031 (Concatenate (__METHOD__, "-m031"), LPC0, LPC1) } ElseIf ((Arg2 == 0x02)) { /* ArgX Object */ /* Store(Src0, arg3) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x03)) { /* LocalX Object */ /* Store(Src0, Local2) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x04)) { /* Reference in ArgX Object */ /* Store(Src0, arg4) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x05)) { /* Elemenf of a Package */ /* Store(Src0, Index(p680, 0)) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Else { Debug = "Unexpected Kind of the Object to store into" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Case (0x04) { /* Package */ /* Store(Src0, p680) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer field */ /* Choose kind of the Object to store into: */ If ((Arg2 == 0x00)) { /* Constant (like Store(Src0, Zero)) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x01)) { /* Named Object */ M0E0 (Concatenate (__METHOD__, "-m0e0"), LPC0, LPC1) M0E1 (Concatenate (__METHOD__, "-m0e1"), LPC0, LPC1) M0E2 (Concatenate (__METHOD__, "-m0e2"), LPC0, LPC1) } ElseIf ((Arg2 == 0x02)) { /* ArgX Object */ /* Store(Src0, arg3) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x03)) { /* LocalX Object */ /* Store(Src0, Local2) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x04)) { /* Reference in ArgX Object */ /* Store(Src0, arg4) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } ElseIf ((Arg2 == 0x05)) { /* Elemenf of a Package */ /* Store(Src0, Index(p680, 0)) */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Else { Debug = "Unexpected Kind of the Object to store into" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Default { Debug = "Unexpected type of the Object to store into" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } LPN1-- LPC1++ } LPN0-- LPC0++ } Return (0x00) } /* Store() Result Object to Integer Constant */ Method (M010, 3, Serialized) { Name (P000, Package (0x04) { Zero, One, Ones, 0xFE7CB391D650A284 }) /* Return Indexed reference to ASL constant specified */ /* by Name as an element of the Package for next applying */ /* through Derefof operator as Destination in Store operator */ Method (M200, 1, NotSerialized) { If (Y900) { Return (Index (Package (0x04) { Zero, One, Ones, 0xFE7CB391D650A284 }, Arg0)) } Return (P000 [Arg0]) } /* ArgX as a way to obtain some result object */ Method (M000, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ DerefOf (M200 (0x01)) = Arg2 M680 (Arg0, 0x18, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x19, 0x00, Arg2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ DerefOf (M200 (0x01)) = Arg3 M680 (Arg0, 0x1A, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x1B, 0x00, Arg3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ DerefOf (M200 (0x01)) = Arg4 M680 (Arg0, 0x1C, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x1D, 0x00, Arg4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Reference in ArgX as a way to obtain some result object */ Method (M001, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ DerefOf (M200 (0x01)) = DerefOf (Arg2) M680 (Arg0, 0x20, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x21, 0x00, DerefOf (Arg2), 0xFE7CB391D650A284) } Case (0x02) { /* String */ DerefOf (M200 (0x01)) = DerefOf (Arg3) M680 (Arg0, 0x22, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x23, 0x00, DerefOf (Arg3), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ DerefOf (M200 (0x01)) = DerefOf (Arg4) M680 (Arg0, 0x24, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x25, 0x00, DerefOf (Arg4), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } M680 (Arg0, 0x28, 0x00, DerefOf (M200 (0x01)), 0x01) /* Choose a way to obtain some result object */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Data Image */ /* Choose a type of the result Object and specific source */ /* objects to obtain the result Object of the specified type. */ /* Check that the destination Object is properly initialized. */ /* Perform storing expression and check result. */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ DerefOf (M200 (0x01)) = 0xFE7CB391D650A284 M680 (Arg0, 0x29, 0x00, DerefOf (M200 (0x01)), 0x01) } Case (0x02) { /* String */ DerefOf (M200 (0x01)) = "FE7CB391D650A284" M680 (Arg0, 0x2A, 0x00, DerefOf (M200 (0x01)), 0x01) } Case (0x03) { /* Buffer */ DerefOf (M200 (0x01)) = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } M680 (Arg0, 0x2B, 0x00, DerefOf (M200 (0x01)), 0x01) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x01) { /* Named Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ DerefOf (M200 (0x01)) = I6E0 /* \I6E0 */ M680 (Arg0, 0x2E, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x2F, 0x00, I6E0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ DerefOf (M200 (0x01)) = S6E0 /* \S6E0 */ M680 (Arg0, 0x30, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x31, 0x00, S6E0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ DerefOf (M200 (0x01)) = B6E0 /* \B6E0 */ M680 (Arg0, 0x32, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x33, 0x00, B6E0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x02) { /* Method ArgX Object */ M000 (Concatenate (Arg0, "-m000"), Arg2, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x03) { /* Method LocalX Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Local0 = 0xFE7CB391D650A284 } Case (0x02) { /* String */ Local0 = "FE7CB391D650A284" } Case (0x03) { /* Buffer */ Local0 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ DerefOf (M200 (0x01)) = Local0 M680 (Arg0, 0x38, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x39, 0x00, Local0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ DerefOf (M200 (0x01)) = Local0 M680 (Arg0, 0x3A, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x3B, 0x00, Local0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ DerefOf (M200 (0x01)) = Local0 M680 (Arg0, 0x3C, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x3D, 0x00, Local0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x04) { /* Derefof of intermediate Object (Method ArgX Object) */ M001 (Concatenate (Arg0, "-m001"), Arg2, RefOf (I6E1), RefOf (S6E1), RefOf (B6E1)) } Case (0x05) { /* Derefof of immediate Index(...) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ DerefOf (M200 (0x01)) = DerefOf (P690 [0x00]) M680 (Arg0, 0x40, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x41, 0x00, DerefOf (P690 [0x00]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ DerefOf (M200 (0x01)) = DerefOf (P690 [0x01]) M680 (Arg0, 0x42, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x43, 0x00, DerefOf (P690 [0x01]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ DerefOf (M200 (0x01)) = DerefOf (P690 [0x02]) M680 (Arg0, 0x44, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x45, 0x00, DerefOf (P690 [0x02]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x06) { /* Derefof of Indexed Reference returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ DerefOf (M200 (0x01)) = DerefOf (M681 (P690, 0x03)) M680 (Arg0, 0x48, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x49, 0x00, DerefOf (P690 [0x03]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ DerefOf (M200 (0x01)) = DerefOf (M681 (P690, 0x04)) M680 (Arg0, 0x4A, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x4B, 0x00, DerefOf (P690 [0x04]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ DerefOf (M200 (0x01)) = DerefOf (M681 (P690, 0x05)) M680 (Arg0, 0x4C, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x4D, 0x00, DerefOf (P690 [0x05]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x07) { /* Result Object returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ DerefOf (M200 (0x01)) = M682 (Arg2, 0x02) M680 (Arg0, 0x50, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x51, 0x00, I6E2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ DerefOf (M200 (0x01)) = M682 (Arg2, 0x02) M680 (Arg0, 0x52, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x53, 0x00, S6E2, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ DerefOf (M200 (0x01)) = M682 (Arg2, 0x02) M680 (Arg0, 0x54, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x55, 0x00, B6E2, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x08) { /* Result Object returned by any Operator (Op) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Store ((I6E3 + 0x00), DerefOf (M200 (0x01))) M680 (Arg0, 0x58, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x59, 0x00, I6E3, 0xFE7CB391D650A284) } Case (0x02) { /* String */ DerefOf (M200 (0x01)) = Mid (S6E3, 0x02, 0x0E) M680 (Arg0, 0x5A, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x5B, 0x00, S6E3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ DerefOf (M200 (0x01)) = Mid (B6E3, 0x01, 0x07) M680 (Arg0, 0x5C, 0x00, DerefOf (M200 (0x01)), 0x01) M680 (Arg0, 0x5D, 0x00, B6E3, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } /* Additionally can be implemented cases: */ /* Derefof of immediate Refof */ /* Derefof of intermediate Object */ /* Derefof of Reference returned by called Method */ Default { Debug = "Unexpected way to obtain some result Object" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Store() Result Object to Integer Named Object */ Method (M011, 3, Serialized) { /* ArgX as a way to obtain some result object */ Method (M000, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x61, 0x00, I680, 0xA0A1A2A35F5E5D80) I680 = Arg2 M680 (Arg0, 0x62, 0x00, I680, 0xFE7CB391D650A284) I680 = 0xC179B3FE M680 (Arg0, 0x63, 0x00, I680, 0xC179B3FE) M680 (Arg0, 0x64, 0x00, Arg2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x65, 0x00, I681, 0xA0A1A2A35F5E5D81) I681 = Arg3 If (Y602) { If (F64) { I000 = 0xFE7CB391D650A284 } Else { I000 = 0xFE7CB391 } } Else { I000 = 0xFE7CB391D650A284 } M680 (Arg0, 0x66, 0x00, I681, I000) I681 = "C179B3FE" M680 (Arg0, 0x67, 0x00, I681, 0xC179B3FE) M680 (Arg0, 0x68, 0x00, Arg3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x69, 0x00, I682, 0xA0A1A2A35F5E5D82) I682 = Arg4 M680 (Arg0, 0x6A, 0x00, I682, 0xFE7CB391D650A284) I682 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0x6B, 0x00, I682, 0xC179B3FE) M680 (Arg0, 0x6C, 0x00, Arg4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Reference in ArgX as a way to obtain some result object */ Method (M001, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x6F, 0x00, I683, 0xA0A1A2A35F5E5D83) I683 = DerefOf (Arg2) M680 (Arg0, 0x70, 0x00, I683, 0xFE7CB391D650A284) I683 = 0xC179B3FE M680 (Arg0, 0x71, 0x00, I683, 0xC179B3FE) M680 (Arg0, 0x72, 0x00, DerefOf (Arg2), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x73, 0x00, I684, 0xA0A1A2A35F5E5D84) I684 = DerefOf (Arg3) If (Y602) { If (F64) { I000 = 0xFE7CB391D650A284 } Else { I000 = 0xFE7CB391 } } Else { I000 = 0xFE7CB391D650A284 } M680 (Arg0, 0x74, 0x00, I684, I000) I684 = "C179B3FE" M680 (Arg0, 0x75, 0x00, I684, 0xC179B3FE) M680 (Arg0, 0x76, 0x00, DerefOf (Arg3), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x77, 0x00, I685, 0xA0A1A2A35F5E5D85) I685 = DerefOf (Arg4) M680 (Arg0, 0x78, 0x00, I685, 0xFE7CB391D650A284) I685 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0x79, 0x00, I685, 0xC179B3FE) M680 (Arg0, 0x7A, 0x00, DerefOf (Arg4), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Choose a way to obtain some result object */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Data Image */ /* Choose a type of the result Object and specific source */ /* objects to obtain the result Object of the specified type. */ /* Check that the destination Object is properly initialized. */ /* Perform storing expression and check result. */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x7D, 0x00, I686, 0xA0A1A2A35F5E5D86) I686 = 0xFE7CB391D650A284 M680 (Arg0, 0x7E, 0x00, I686, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x7F, 0x00, I687, 0xA0A1A2A35F5E5D87) I687 = "FE7CB391D650A284" If (Y602) { If (F64) { I000 = 0xFE7CB391D650A284 } Else { I000 = 0xFE7CB391 } } Else { I000 = 0xFE7CB391D650A284 } M680 (Arg0, 0x80, 0x00, I687, I000) } Case (0x03) { /* Buffer */ M680 (Arg0, 0x81, 0x00, I688, 0xA0A1A2A35F5E5D88) I688 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } M680 (Arg0, 0x82, 0x00, I688, 0xFE7CB391D650A284) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x01) { /* Named Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x85, 0x00, I689, 0xA0A1A2A35F5E5D89) I689 = I6E0 /* \I6E0 */ M680 (Arg0, 0x86, 0x00, I689, 0xFE7CB391D650A284) I689 = 0xC179B3FE M680 (Arg0, 0x87, 0x00, I689, 0xC179B3FE) M680 (Arg0, 0x88, 0x00, I6E0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x89, 0x00, I68A, 0xA0A1A2A35F5E5D8A) I68A = S6E0 /* \S6E0 */ If (Y602) { If (F64) { I000 = 0xFE7CB391D650A284 } Else { I000 = 0xFE7CB391 } } Else { I000 = 0xFE7CB391D650A284 } M680 (Arg0, 0x8A, 0x00, I68A, I000) I68A = "C179B3FE" M680 (Arg0, 0x8B, 0x00, I68A, 0xC179B3FE) M680 (Arg0, 0x8C, 0x00, S6E0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x8D, 0x00, I68B, 0xA0A1A2A35F5E5D8B) I68B = B6E0 /* \B6E0 */ M680 (Arg0, 0x8E, 0x00, I68B, 0xFE7CB391D650A284) I68B = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0x8F, 0x00, I68B, 0xC179B3FE) M680 (Arg0, 0x90, 0x00, B6E0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case /* // Removed 09/2015: iASL now disallows store of package to integer Case(4) { // Package Store(Package(){0xfe7cb391d650a284}, i684) } */ (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x02) { /* Method ArgX Object */ M000 (Concatenate (Arg0, "-m000"), Arg2, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x03) { /* Method LocalX Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Local0 = 0xFE7CB391D650A284 } Case (0x02) { /* String */ Local0 = "FE7CB391D650A284" } Case (0x03) { /* Buffer */ Local0 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x95, 0x00, I68C, 0xA0A1A2A35F5E5D8C) I68C = Local0 M680 (Arg0, 0x96, 0x00, I68C, 0xFE7CB391D650A284) I68C = 0xC179B3FE M680 (Arg0, 0x97, 0x00, I68C, 0xC179B3FE) M680 (Arg0, 0x98, 0x00, Local0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x99, 0x00, I68D, 0xA0A1A2A35F5E5D8D) I68D = Local0 If (Y602) { If (F64) { I000 = 0xFE7CB391D650A284 } Else { I000 = 0xFE7CB391 } } Else { I000 = 0xFE7CB391D650A284 } M680 (Arg0, 0x9A, 0x00, I68D, I000) I68D = "C179B3FE" M680 (Arg0, 0x9B, 0x00, I68D, 0xC179B3FE) M680 (Arg0, 0x9C, 0x00, Local0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x9D, 0x00, I68E, 0xA0A1A2A35F5E5D8E) I68E = Local0 M680 (Arg0, 0x9E, 0x00, I68E, 0xFE7CB391D650A284) I68E = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0x9F, 0x00, I68E, 0xC179B3FE) M680 (Arg0, 0xA0, 0x00, Local0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x04) { /* Derefof of intermediate Object (Method ArgX Object) */ M001 (Concatenate (Arg0, "-m001"), Arg2, RefOf (I6E1), RefOf (S6E1), RefOf (B6E1)) } Case (0x05) { /* Derefof of immediate Index(...) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0xA1, 0x00, I68F, 0xA0A1A2A35F5E5D8F) I68F = DerefOf (P690 [0x00]) M680 (Arg0, 0xA2, 0x00, I68F, 0xFE7CB391D650A284) I68F = 0xC179B3FE M680 (Arg0, 0xA3, 0x00, I68F, 0xC179B3FE) M680 (Arg0, 0xA4, 0x00, DerefOf (P690 [0x00]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0xA5, 0x00, I690, 0xA0A1A2A35F5E5D90) I690 = DerefOf (P690 [0x01]) If (Y602) { If (F64) { I000 = 0xFE7CB391D650A284 } Else { I000 = 0xFE7CB391 } } Else { I000 = 0xFE7CB391D650A284 } M680 (Arg0, 0xA6, 0x00, I690, I000) I690 = "C179B3FE" M680 (Arg0, 0xA7, 0x00, I690, 0xC179B3FE) M680 (Arg0, 0xA8, 0x00, DerefOf (P690 [0x01]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0xA9, 0x00, I691, 0xA0A1A2A35F5E5D91) I691 = DerefOf (P690 [0x02]) M680 (Arg0, 0xAA, 0x00, I691, 0xFE7CB391D650A284) I691 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0xAB, 0x00, I691, 0xC179B3FE) M680 (Arg0, 0xAC, 0x00, DerefOf (P690 [0x02]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x06) { /* Derefof of Indexed Reference returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0xAF, 0x00, I692, 0xA0A1A2A35F5E5D92) I692 = DerefOf (M681 (P690, 0x03)) M680 (Arg0, 0xB0, 0x00, I692, 0xFE7CB391D650A284) I692 = 0xC179B3FE M680 (Arg0, 0xB1, 0x00, I692, 0xC179B3FE) M680 (Arg0, 0xB2, 0x00, DerefOf (P690 [0x03]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0xB3, 0x00, I693, 0xA0A1A2A35F5E5D93) I693 = DerefOf (M681 (P690, 0x04)) If (Y602) { If (F64) { I000 = 0xFE7CB391D650A284 } Else { I000 = 0xFE7CB391 } } Else { I000 = 0xFE7CB391D650A284 } M680 (Arg0, 0xB4, 0x00, I693, I000) I693 = "C179B3FE" M680 (Arg0, 0xB5, 0x00, I693, 0xC179B3FE) M680 (Arg0, 0xB6, 0x00, DerefOf (P690 [0x04]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0xB7, 0x00, I694, 0xA0A1A2A35F5E5D94) I694 = DerefOf (M681 (P690, 0x05)) M680 (Arg0, 0xB8, 0x00, I694, 0xFE7CB391D650A284) I694 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0xB9, 0x00, I694, 0xC179B3FE) M680 (Arg0, 0xBA, 0x00, DerefOf (P690 [0x05]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x07) { /* Result Object returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0xBD, 0x00, I695, 0xA0A1A2A35F5E5D95) I695 = M682 (Arg2, 0x02) M680 (Arg0, 0xBE, 0x00, I695, 0xFE7CB391D650A284) I695 = 0xC179B3FE M680 (Arg0, 0xBF, 0x00, I695, 0xC179B3FE) M680 (Arg0, 0xC0, 0x00, I6E2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0xC1, 0x00, I696, 0xA0A1A2A35F5E5D96) I696 = M682 (Arg2, 0x02) If (Y602) { If (F64) { I000 = 0xFE7CB391D650A284 } Else { I000 = 0xFE7CB391 } } Else { I000 = 0xFE7CB391D650A284 } M680 (Arg0, 0xC2, 0x00, I696, I000) I696 = "C179B3FE" M680 (Arg0, 0xC3, 0x00, I696, 0xC179B3FE) M680 (Arg0, 0xC4, 0x00, S6E2, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0xC5, 0x00, I697, 0xA0A1A2A35F5E5D97) I697 = M682 (Arg2, 0x02) M680 (Arg0, 0xC6, 0x00, I697, 0xFE7CB391D650A284) I697 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0xC7, 0x00, I697, 0xC179B3FE) M680 (Arg0, 0xC8, 0x00, B6E2, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x08) { /* Result Object returned by any Operator (Op) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0xCB, 0x00, I698, 0xA0A1A2A35F5E5D98) Store ((I6E3 + 0x00), I698) /* \I698 */ M680 (Arg0, 0xCC, 0x00, I698, 0xFE7CB391D650A284) I698 = 0xC179B3FE M680 (Arg0, 0xCD, 0x00, I698, 0xC179B3FE) M680 (Arg0, 0xCE, 0x00, I6E3, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0xCF, 0x00, I699, 0xA0A1A2A35F5E5D99) I699 = Mid (S6E3, 0x02, 0x0E) If (Y602) { If (F64) { I000 = 0x007CB391D650A284 } Else { I000 = 0x7CB391D6 } } Else { I000 = 0x007CB391D650A284 } M680 (Arg0, 0xD0, 0x00, I699, I000) I699 = "C179B3FE" M680 (Arg0, 0xD1, 0x00, I699, 0xC179B3FE) M680 (Arg0, 0xD2, 0x00, S6E3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0xD3, 0x00, I69A, 0xA0A1A2A35F5E5D9A) I69A = Mid (B6E3, 0x01, 0x07) M680 (Arg0, 0xD4, 0x00, I69A, 0x00FE7CB391D650A2) I69A = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0xD5, 0x00, I69A, 0xC179B3FE) M680 (Arg0, 0xD6, 0x00, B6E3, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } /* Additionally can be implemented cases: */ /* Derefof of immediate Refof */ /* Derefof of intermediate Object */ /* Derefof of Reference returned by called Method */ Default { Debug = "Unexpected way to obtain some result Object" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Store() Result Object to Integer Method LocalX Object */ Method (M013, 3, Serialized) { /* ArgX as a way to obtain some result object */ Method (M000, 5, Serialized) { Local1 = 0xA0A1A2A35F5E5D5C Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0xDA, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = Arg2 If (F64) { M680 (Arg0, 0xDB, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0xDC, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0xDD, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0xDE, 0x00, Arg2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0xDF, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = Arg3 M680 (Arg0, 0xE0, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0xE1, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0xE2, 0x00, Arg3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0xE3, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = Arg4 M680 (Arg0, 0xE4, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0xE5, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0xE6, 0x00, Arg4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Reference in ArgX as a way to obtain some result object */ Method (M001, 5, Serialized) { Local1 = 0xA0A1A2A35F5E5D5C Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0xE9, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = DerefOf (Arg2) If (F64) { M680 (Arg0, 0xEA, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0xEB, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0xEC, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0xED, 0x00, DerefOf (Arg2), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0xEE, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = DerefOf (Arg3) M680 (Arg0, 0xEF, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0xF0, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0xF1, 0x00, DerefOf (Arg3), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0xF2, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = DerefOf (Arg4) M680 (Arg0, 0xF3, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0xF4, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0xF5, 0x00, DerefOf (Arg4), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } Local1 = 0xA0A1A2A35F5E5D5C /* Choose a way to obtain some result object */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Data Image */ /* Choose a type of the result Object and specific source */ /* objects to obtain the result Object of the specified type. */ /* Check that the destination Object is properly initialized. */ /* Perform storing expression and check result. */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0xF8, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = 0xFE7CB391D650A284 If (F64) { M680 (Arg0, 0xF9, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0xFA, 0x00, Local1, 0xD650A284) } } Case (0x02) { /* String */ M680 (Arg0, 0xFB, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = "FE7CB391D650A284" M680 (Arg0, 0xFC, 0x00, Local1, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0xFD, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } M680 (Arg0, 0xFE, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x01) { /* Named Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0101, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = I6E4 /* \I6E4 */ If (F64) { M680 (Arg0, 0x0102, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x0103, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x0104, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x0105, 0x00, I6E4, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0106, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = S6E4 /* \S6E4 */ M680 (Arg0, 0x0107, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0108, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0109, 0x00, S6E4, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x010A, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = B6E4 /* \B6E4 */ M680 (Arg0, 0x010B, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x010C, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x010D, 0x00, B6E4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Default { Debug = "Unexpected type of the result Object to be stored" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x02) { /* Method ArgX Object */ M000 (Concatenate (Arg0, "-m000"), Arg2, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x03) { /* Method LocalX Object */ Switch (ToInteger (Arg2)) { Case (0x00) { /* Stuff */ Return (0x00) } Case (0x01) { /* Integer */ Local0 = 0xFE7CB391D650A284 } Case (0x02) { /* String */ Local0 = "FE7CB391D650A284" } Case (0x03) { /* Buffer */ Local0 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0111, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = Local0 If (F64) { M680 (Arg0, 0x0112, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x0113, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x0114, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x0115, 0x00, Local0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0116, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = Local0 M680 (Arg0, 0x0117, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0118, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0119, 0x00, Local0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x011A, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = Local0 M680 (Arg0, 0x011B, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x011C, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x011D, 0x00, Local0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x04) { /* Derefof of intermediate Object (Method ArgX Object) */ M001 (Concatenate (Arg0, "-m001"), Arg2, RefOf (I6E5), RefOf (S6E5), RefOf (B6E5)) } Case (0x05) { /* Derefof of immediate Index(...) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x011E, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = DerefOf (P690 [0x06]) If (F64) { M680 (Arg0, 0x011F, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x0120, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x0121, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x0122, 0x00, DerefOf (P690 [0x06]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0123, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = DerefOf (P690 [0x07]) M680 (Arg0, 0x0124, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0125, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0126, 0x00, DerefOf (P690 [0x07]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0127, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = DerefOf (P690 [0x08]) M680 (Arg0, 0x0128, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0129, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x012A, 0x00, DerefOf (P690 [0x08]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x06) { /* Derefof of Indexed Reference returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x012D, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = DerefOf (M681 (P690, 0x09)) If (F64) { M680 (Arg0, 0x012E, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x012F, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x0130, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x0131, 0x00, DerefOf (P690 [0x09]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0132, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = DerefOf (M681 (P690, 0x0A)) M680 (Arg0, 0x0133, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0134, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0135, 0x00, DerefOf (P690 [0x0A]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0136, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = DerefOf (M681 (P690, 0x0B)) M680 (Arg0, 0x0137, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0138, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x0139, 0x00, DerefOf (P690 [0x0B]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x07) { /* Result Object returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x013A, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = M682 (Arg2, 0x06) If (F64) { M680 (Arg0, 0x013B, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x013C, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x013D, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x013E, 0x00, I6E6, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x013F, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = M682 (Arg2, 0x06) M680 (Arg0, 0x0140, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0141, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0142, 0x00, S6E6, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0143, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = M682 (Arg2, 0x06) M680 (Arg0, 0x0144, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0145, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x0146, 0x00, B6E6, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x08) { /* Result Object returned by any Operator (Op): */ /* Add, Mid */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0149, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Store ((I6E7 + 0x00), Local1) If (F64) { M680 (Arg0, 0x014A, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x014B, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x014C, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x014D, 0x00, I6E7, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x014E, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = Mid (S6E7, 0x02, 0x0E) M680 (Arg0, 0x014F, 0x00, Local1, "7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0150, 0x00, Local1, "7CB\v91D650A284") M680 (Arg0, 0x0151, 0x00, S6E7, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0152, 0x00, Local1, 0xA0A1A2A35F5E5D5C) Local1 = Mid (B6E7, 0x01, 0x07) M680 (Arg0, 0x0153, 0x00, Local1, Buffer (0x07) { 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // .P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0154, 0x00, Local1, Buffer (0x07) { 0xA2, 0x50, 0xD6, 0x0B, 0xB3, 0x7C, 0xFE // .P...|. }) M680 (Arg0, 0x0155, 0x00, B6E7, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } /* Additionally can be implemented cases: */ /* Derefof of immediate Refof */ /* Derefof of intermediate Object */ /* Derefof of Reference returned by called Method */ Default { Debug = "Unexpected way to obtain some result Object" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Store() Result Object to String Named Object */ Method (M021, 3, Serialized) { /* ArgX as a way to obtain some result object */ Method (M000, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0159, 0x00, S680, "initial named string80") S680 = Arg2 If (F64) { M680 (Arg0, 0x015A, 0x00, S680, "FE7CB391D650A284") } Else { M680 (Arg0, 0x015B, 0x00, S680, "D650A284") } S680 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x015C, 0x00, S680, "FE7\vB391D650A284") } Else { M680 (Arg0, 0x015D, 0x00, S680, "D65\vA284") } M680 (Arg0, 0x015E, 0x00, Arg2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x015F, 0x00, S681, "initial named string81") S681 = Arg3 M680 (Arg0, 0x0160, 0x00, S681, "FE7CB391D650A284") S681 [0x03] = 0x0B M680 (Arg0, 0x0161, 0x00, S681, "FE7\vB391D650A284") M680 (Arg0, 0x0162, 0x00, Arg3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0163, 0x00, S682, "initial named string82") S682 = Arg4 M680 (Arg0, 0x0164, 0x00, S682, "84 A2 50 D6 91 B3 7C FE") S682 [0x03] = 0x0B M680 (Arg0, 0x0165, 0x00, S682, "84 \v2 50 D6 91 B3 7C FE") M680 (Arg0, 0x0166, 0x00, Arg4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Reference in ArgX as a way to obtain some result object */ Method (M001, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0169, 0x00, S683, "initial named string83") S683 = DerefOf (Arg2) If (F64) { M680 (Arg0, 0x016A, 0x00, S683, "FE7CB391D650A284") } Else { M680 (Arg0, 0x016B, 0x00, S683, "D650A284") } S683 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x016C, 0x00, S683, "FE7\vB391D650A284") } Else { M680 (Arg0, 0x016D, 0x00, S683, "D65\vA284") } M680 (Arg0, 0x016E, 0x00, DerefOf (Arg2), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x016F, 0x00, S684, "initial named string84") S684 = DerefOf (Arg3) M680 (Arg0, 0x0170, 0x00, S684, "FE7CB391D650A284") S684 [0x03] = 0x0B M680 (Arg0, 0x0171, 0x00, S684, "FE7\vB391D650A284") M680 (Arg0, 0x0172, 0x00, DerefOf (Arg3), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0173, 0x00, S685, "initial named string85") S685 = DerefOf (Arg4) M680 (Arg0, 0x0174, 0x00, S685, "84 A2 50 D6 91 B3 7C FE") S685 [0x03] = 0x0B M680 (Arg0, 0x0175, 0x00, S685, "84 \v2 50 D6 91 B3 7C FE") M680 (Arg0, 0x0176, 0x00, DerefOf (Arg4), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Choose a way to obtain some result object */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Data Image */ /* Choose a type of the result Object and specific source */ /* objects to obtain the result Object of the specified type. */ /* Check that the destination Object is properly initialized. */ /* Perform storing expression and check result. */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0179, 0x00, S686, "initial named string86") S686 = 0xFE7CB391D650A284 If (F64) { M680 (Arg0, 0x017A, 0x00, S686, "FE7CB391D650A284") } Else { M680 (Arg0, 0x017B, 0x00, S686, "D650A284") } } Case (0x02) { /* String */ M680 (Arg0, 0x017C, 0x00, S687, "initial named string87") S687 = "FE7CB391D650A284" M680 (Arg0, 0x017D, 0x00, S687, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x017E, 0x00, S688, "initial named string88") S688 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } M680 (Arg0, 0x017F, 0x00, S688, "84 A2 50 D6 91 B3 7C FE") } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x01) { /* Named Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0182, 0x00, S689, "initial named string89") S689 = I6E4 /* \I6E4 */ If (F64) { M680 (Arg0, 0x0183, 0x00, S689, "FE7CB391D650A284") } Else { M680 (Arg0, 0x0184, 0x00, S689, "D650A284") } S689 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x0185, 0x00, S689, "FE7\vB391D650A284") } Else { M680 (Arg0, 0x0186, 0x00, S689, "D65\vA284") } M680 (Arg0, 0x0187, 0x00, I6E4, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0188, 0x00, S68A, "initial named string8a") S68A = S6E4 /* \S6E4 */ M680 (Arg0, 0x0189, 0x00, S68A, "FE7CB391D650A284") S68A [0x03] = 0x0B M680 (Arg0, 0x018A, 0x00, S68A, "FE7\vB391D650A284") M680 (Arg0, 0x018B, 0x00, S6E4, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x018C, 0x00, S68B, "initial named string8b") S68B = B6E4 /* \B6E4 */ M680 (Arg0, 0x018D, 0x00, S68B, "84 A2 50 D6 91 B3 7C FE") S68B [0x03] = 0x0B M680 (Arg0, 0x018E, 0x00, S68B, "84 \v2 50 D6 91 B3 7C FE") M680 (Arg0, 0x018F, 0x00, B6E4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x02) { /* Method ArgX Object */ M000 (Concatenate (Arg0, "-m000"), Arg2, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x03) { /* Method LocalX Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Local0 = 0xFE7CB391D650A284 } Case (0x02) { /* String */ Local0 = "FE7CB391D650A284" } Case (0x03) { /* Buffer */ Local0 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0194, 0x00, S68C, "initial named string8c") S68C = Local0 If (F64) { M680 (Arg0, 0x0195, 0x00, S68C, "FE7CB391D650A284") } Else { M680 (Arg0, 0x0196, 0x00, S68C, "D650A284") } S68C [0x03] = 0x0B If (F64) { M680 (Arg0, 0x0197, 0x00, S68C, "FE7\vB391D650A284") } Else { M680 (Arg0, 0x0198, 0x00, S68C, "D65\vA284") } M680 (Arg0, 0x0199, 0x00, Local0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x019A, 0x00, S68D, "initial named string8d") S68D = Local0 M680 (Arg0, 0x019B, 0x00, S68D, "FE7CB391D650A284") S68D [0x03] = 0x0B M680 (Arg0, 0x019C, 0x00, S68D, "FE7\vB391D650A284") M680 (Arg0, 0x019D, 0x00, Local0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x019E, 0x00, S68E, "initial named string8e") S68E = Local0 M680 (Arg0, 0x019F, 0x00, S68E, "84 A2 50 D6 91 B3 7C FE") S68E [0x03] = 0x0B M680 (Arg0, 0x01A0, 0x00, S68E, "84 \v2 50 D6 91 B3 7C FE") M680 (Arg0, 0x01A1, 0x00, Local0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x04) { /* Derefof of intermediate Object (Method ArgX Object) */ M001 (Concatenate (Arg0, "-m001"), Arg2, RefOf (I6E5), RefOf (S6E5), RefOf (B6E5)) } Case (0x05) { /* Derefof of immediate Index(...) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x01A2, 0x00, S68F, "initial named string8f") S68F = DerefOf (P690 [0x06]) If (F64) { M680 (Arg0, 0x01A3, 0x00, S68F, "FE7CB391D650A284") } Else { M680 (Arg0, 0x01A4, 0x00, S68F, "D650A284") } S68F [0x03] = 0x0B If (F64) { M680 (Arg0, 0x01A5, 0x00, S68F, "FE7\vB391D650A284") } Else { M680 (Arg0, 0x01A6, 0x00, S68F, "D65\vA284") } M680 (Arg0, 0x01A7, 0x00, DerefOf (P690 [0x06]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x01A8, 0x00, S690, "initial named string90") S690 = DerefOf (P690 [0x07]) M680 (Arg0, 0x01A9, 0x00, S690, "FE7CB391D650A284") S690 [0x03] = 0x0B M680 (Arg0, 0x01AA, 0x00, S690, "FE7\vB391D650A284") M680 (Arg0, 0x01AB, 0x00, DerefOf (P690 [0x07]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x01AC, 0x00, S691, "initial named string91") S691 = DerefOf (P690 [0x08]) M680 (Arg0, 0x01AD, 0x00, S691, "84 A2 50 D6 91 B3 7C FE") S691 [0x03] = 0x0B M680 (Arg0, 0x01AE, 0x00, S691, "84 \v2 50 D6 91 B3 7C FE") M680 (Arg0, 0x01AF, 0x00, DerefOf (P690 [0x08]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x06) { /* Derefof of Indexed Reference returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x01B2, 0x00, S692, "initial named string92") S692 = DerefOf (M681 (P690, 0x09)) If (F64) { M680 (Arg0, 0x01B3, 0x00, S692, "FE7CB391D650A284") } Else { M680 (Arg0, 0x01B4, 0x00, S692, "D650A284") } S692 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x01B5, 0x00, S692, "FE7\vB391D650A284") } Else { M680 (Arg0, 0x01B6, 0x00, S692, "D65\vA284") } M680 (Arg0, 0x01B7, 0x00, DerefOf (P690 [0x09]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x01B8, 0x00, S693, "initial named string93") S693 = DerefOf (M681 (P690, 0x0A)) M680 (Arg0, 0x01B9, 0x00, S693, "FE7CB391D650A284") S693 [0x03] = 0x0B M680 (Arg0, 0x01BA, 0x00, S693, "FE7\vB391D650A284") M680 (Arg0, 0x01BB, 0x00, DerefOf (P690 [0x0A]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x01BC, 0x00, S694, "initial named string94") S694 = DerefOf (M681 (P690, 0x0B)) M680 (Arg0, 0x01BD, 0x00, S694, "84 A2 50 D6 91 B3 7C FE") S694 [0x03] = 0x0B M680 (Arg0, 0x01BE, 0x00, S694, "84 \v2 50 D6 91 B3 7C FE") M680 (Arg0, 0x01BF, 0x00, DerefOf (P690 [0x0B]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x07) { /* Result Object returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x01C2, 0x00, S695, "initial named string95") S695 = M682 (Arg2, 0x06) If (F64) { M680 (Arg0, 0x01C3, 0x00, S695, "FE7CB391D650A284") } Else { M680 (Arg0, 0x01C4, 0x00, S695, "D650A284") } S695 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x01C5, 0x00, S695, "FE7\vB391D650A284") } Else { M680 (Arg0, 0x01C6, 0x00, S695, "D65\vA284") } M680 (Arg0, 0x01C7, 0x00, I6E6, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x01C8, 0x00, S696, "initial named string96") S696 = M682 (Arg2, 0x06) M680 (Arg0, 0x01C9, 0x00, S696, "FE7CB391D650A284") S696 [0x03] = 0x0B M680 (Arg0, 0x01CA, 0x00, S696, "FE7\vB391D650A284") M680 (Arg0, 0x01CB, 0x00, S6E6, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x01CC, 0x00, S697, "initial named string97") S697 = M682 (Arg2, 0x06) M680 (Arg0, 0x01CD, 0x00, S697, "84 A2 50 D6 91 B3 7C FE") S697 [0x03] = 0x0B M680 (Arg0, 0x01CE, 0x00, S697, "84 \v2 50 D6 91 B3 7C FE") M680 (Arg0, 0x01CF, 0x00, B6E6, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x08) { /* Result Object returned by any Operator (Op): */ /* Add, Mid */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x01D2, 0x00, S698, "initial named string98") Store ((I6E7 + 0x00), S698) /* \S698 */ If (F64) { M680 (Arg0, 0x01D3, 0x00, S698, "FE7CB391D650A284") } Else { M680 (Arg0, 0x01D4, 0x00, S698, "D650A284") } S698 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x01D5, 0x00, S698, "FE7\vB391D650A284") } Else { M680 (Arg0, 0x01D6, 0x00, S698, "D65\vA284") } M680 (Arg0, 0x01D7, 0x00, I6E7, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x01D8, 0x00, S699, "initial named string99") S699 = Mid (S6E7, 0x02, 0x0E) M680 (Arg0, 0x01D9, 0x00, S699, "7CB391D650A284") S699 [0x03] = 0x0B M680 (Arg0, 0x01DA, 0x00, S699, "7CB\v91D650A284") M680 (Arg0, 0x01DB, 0x00, S6E7, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x01DC, 0x00, S69A, "initial named string9a") S69A = Mid (B6E7, 0x01, 0x07) M680 (Arg0, 0x01DD, 0x00, S69A, "A2 50 D6 91 B3 7C FE") S69A [0x03] = 0x0B M680 (Arg0, 0x01DE, 0x00, S69A, "A2 \v0 D6 91 B3 7C FE") M680 (Arg0, 0x01DF, 0x00, B6E7, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } /* Additionally can be implemented cases: */ /* Derefof of immediate Refof */ /* Derefof of intermediate Object */ /* Derefof of Reference returned by called Method */ Default { Debug = "Unexpected way to obtain some result Object" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Store() Result Object to Buffer Named Object */ Method (M031, 3, Serialized) { /* ArgX as a way to obtain some result object */ Method (M000, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x01E3, 0x00, B680, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x80 // . }) B680 = Arg2 If (F64) { M680 (Arg0, 0x01E4, 0x00, B680, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x01E5, 0x00, B680, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } B680 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x01E6, 0x00, B680, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x01E7, 0x00, B680, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } M680 (Arg0, 0x01E8, 0x00, Arg2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x01E9, 0x00, B681, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x81 // . }) B681 = Arg3 M680 (Arg0, 0x01EA, 0x00, B681, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, // FE7CB391 /* 0008 */ 0x44 // D }) B681 [0x03] = 0x0B M680 (Arg0, 0x01EB, 0x00, B681, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x0B, 0x42, 0x33, 0x39, 0x31, // FE7.B391 /* 0008 */ 0x44 // D }) M680 (Arg0, 0x01EC, 0x00, Arg3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x01ED, 0x00, B682, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x82 // . }) B682 = Arg4 M680 (Arg0, 0x01EE, 0x00, B682, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) B682 [0x03] = 0x0B M680 (Arg0, 0x01EF, 0x00, B682, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) M680 (Arg0, 0x01F0, 0x00, Arg4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Reference in ArgX as a way to obtain some result object */ Method (M001, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x01F3, 0x00, B683, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x83 // . }) B683 = DerefOf (Arg2) If (F64) { M680 (Arg0, 0x01F4, 0x00, B683, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x01F5, 0x00, B683, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } B683 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x01F6, 0x00, B683, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x01F7, 0x00, B683, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } M680 (Arg0, 0x01F8, 0x00, DerefOf (Arg2), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x01F9, 0x00, B684, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x84 // . }) B684 = DerefOf (Arg3) M680 (Arg0, 0x01FA, 0x00, B684, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, // FE7CB391 /* 0008 */ 0x44 // D }) B684 [0x03] = 0x0B M680 (Arg0, 0x01FB, 0x00, B684, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x0B, 0x42, 0x33, 0x39, 0x31, // FE7.B391 /* 0008 */ 0x44 // D }) M680 (Arg0, 0x01FC, 0x00, DerefOf (Arg3), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x01FD, 0x00, B685, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x85 // . }) B685 = DerefOf (Arg4) M680 (Arg0, 0x01FE, 0x00, B685, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) B685 [0x03] = 0x0B M680 (Arg0, 0x01FF, 0x00, B685, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) M680 (Arg0, 0x0200, 0x00, DerefOf (Arg4), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Store(Concatenate(Concatenate(arg0, arg1), arg2), Debug) */ /* Choose a way to obtain some result object */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Data Image */ /* Choose a type of the result Object and specific source */ /* objects to obtain the result Object of the specified type. */ /* Check that the destination Object is properly initialized. */ /* Perform storing expression and check result. */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0203, 0x00, B686, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x86 // . }) B686 = 0xFE7CB391D650A284 If (F64) { M680 (Arg0, 0x0204, 0x00, B686, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x0205, 0x00, B686, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } } Case (0x02) { /* String */ M680 (Arg0, 0x0206, 0x00, B687, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x87 // . }) B687 = "FE7CB391D650A284" M680 (Arg0, 0x0207, 0x00, B687, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, // FE7CB391 /* 0008 */ 0x44 // D }) } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0208, 0x00, B688, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x88 // . }) B688 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } M680 (Arg0, 0x0209, 0x00, B688, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x01) { /* Named Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x020C, 0x00, B689, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x89 // . }) B689 = I6E4 /* \I6E4 */ If (F64) { M680 (Arg0, 0x020D, 0x00, B689, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x020E, 0x00, B689, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } B689 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x020F, 0x00, B689, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x0210, 0x00, B689, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } M680 (Arg0, 0x0211, 0x00, I6E4, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0212, 0x00, B68A, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8A // . }) B68A = S6E4 /* \S6E4 */ M680 (Arg0, 0x0213, 0x00, B68A, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, // FE7CB391 /* 0008 */ 0x44 // D }) B68A [0x03] = 0x0B M680 (Arg0, 0x0214, 0x00, B68A, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x0B, 0x42, 0x33, 0x39, 0x31, // FE7.B391 /* 0008 */ 0x44 // D }) M680 (Arg0, 0x0215, 0x00, S6E4, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0216, 0x00, B68B, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8B // . }) B68B = B6E4 /* \B6E4 */ M680 (Arg0, 0x0217, 0x00, B68B, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) B68B [0x03] = 0x0B M680 (Arg0, 0x0218, 0x00, B68B, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) M680 (Arg0, 0x0219, 0x00, B6E4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x02) { /* Method ArgX Object */ M000 (Concatenate (Arg0, "-m000"), Arg2, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x03) { /* Method LocalX Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Local0 = 0xFE7CB391D650A284 } Case (0x02) { /* String */ Local0 = "FE7CB391D650A284" } Case (0x03) { /* Buffer */ Local0 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x021E, 0x00, B68C, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8C // . }) B68C = Local0 If (F64) { M680 (Arg0, 0x021F, 0x00, B68C, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x0220, 0x00, B68C, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } B68C [0x03] = 0x0B If (F64) { M680 (Arg0, 0x0221, 0x00, B68C, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x0222, 0x00, B68C, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } M680 (Arg0, 0x0223, 0x00, Local0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0224, 0x00, B68D, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8D // . }) B68D = Local0 M680 (Arg0, 0x0225, 0x00, B68D, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, // FE7CB391 /* 0008 */ 0x44 // D }) B68D [0x03] = 0x0B M680 (Arg0, 0x0226, 0x00, B68D, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x0B, 0x42, 0x33, 0x39, 0x31, // FE7.B391 /* 0008 */ 0x44 // D }) M680 (Arg0, 0x0227, 0x00, Local0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0228, 0x00, B68E, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8E // . }) B68E = Local0 M680 (Arg0, 0x0229, 0x00, B68E, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) B68E [0x03] = 0x0B M680 (Arg0, 0x022A, 0x00, B68E, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) M680 (Arg0, 0x022B, 0x00, Local0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x04) { /* Derefof of intermediate Object (Method ArgX Object) */ M001 (Concatenate (Arg0, "-m001"), Arg2, RefOf (I6E5), RefOf (S6E5), RefOf (B6E5)) } Case (0x05) { /* Derefof of immediate Index(...) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x022C, 0x00, B68F, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8F // . }) B68F = DerefOf (P690 [0x06]) If (F64) { M680 (Arg0, 0x022D, 0x00, B68F, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x022E, 0x00, B68F, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } B68F [0x03] = 0x0B If (F64) { M680 (Arg0, 0x022F, 0x00, B68F, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x0230, 0x00, B68F, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } M680 (Arg0, 0x0231, 0x00, DerefOf (P690 [0x06]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0232, 0x00, B690, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x90 // . }) B690 = DerefOf (P690 [0x07]) M680 (Arg0, 0x0233, 0x00, B690, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, // FE7CB391 /* 0008 */ 0x44 // D }) B690 [0x03] = 0x0B M680 (Arg0, 0x0234, 0x00, B690, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x0B, 0x42, 0x33, 0x39, 0x31, // FE7.B391 /* 0008 */ 0x44 // D }) M680 (Arg0, 0x0235, 0x00, DerefOf (P690 [0x07]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0236, 0x00, B691, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x91 // . }) B691 = DerefOf (P690 [0x08]) M680 (Arg0, 0x0237, 0x00, B691, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) B691 [0x03] = 0x0B M680 (Arg0, 0x0238, 0x00, B691, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) M680 (Arg0, 0x0239, 0x00, DerefOf (P690 [0x08]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x06) { /* Derefof of Indexed Reference returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x023C, 0x00, B692, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x92 // . }) B692 = DerefOf (M681 (P690, 0x09)) If (F64) { M680 (Arg0, 0x023D, 0x00, B692, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x023E, 0x00, B692, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } B692 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x023F, 0x00, B692, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x0240, 0x00, B692, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } M680 (Arg0, 0x0241, 0x00, DerefOf (P690 [0x09]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0242, 0x00, B693, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x93 // . }) B693 = DerefOf (M681 (P690, 0x0A)) M680 (Arg0, 0x0243, 0x00, B693, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, // FE7CB391 /* 0008 */ 0x44 // D }) B693 [0x03] = 0x0B M680 (Arg0, 0x0244, 0x00, B693, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x0B, 0x42, 0x33, 0x39, 0x31, // FE7.B391 /* 0008 */ 0x44 // D }) M680 (Arg0, 0x0245, 0x00, DerefOf (P690 [0x0A]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0246, 0x00, B694, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x94 // . }) B694 = DerefOf (M681 (P690, 0x0B)) M680 (Arg0, 0x0247, 0x00, B694, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) B694 [0x03] = 0x0B M680 (Arg0, 0x0248, 0x00, B694, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) M680 (Arg0, 0x0249, 0x00, DerefOf (P690 [0x0B]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x07) { /* Result Object returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x024C, 0x00, B695, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x95 // . }) B695 = M682 (Arg2, 0x06) If (F64) { M680 (Arg0, 0x024D, 0x00, B695, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x024E, 0x00, B695, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } B695 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x024F, 0x00, B695, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x0250, 0x00, B695, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } M680 (Arg0, 0x0251, 0x00, I6E6, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0252, 0x00, B696, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x96 // . }) B696 = M682 (Arg2, 0x06) M680 (Arg0, 0x0253, 0x00, B696, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, // FE7CB391 /* 0008 */ 0x44 // D }) B696 [0x03] = 0x0B M680 (Arg0, 0x0254, 0x00, B696, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x0B, 0x42, 0x33, 0x39, 0x31, // FE7.B391 /* 0008 */ 0x44 // D }) M680 (Arg0, 0x0255, 0x00, S6E6, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0256, 0x00, B697, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x97 // . }) B697 = M682 (Arg2, 0x06) M680 (Arg0, 0x0257, 0x00, B697, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) B697 [0x03] = 0x0B M680 (Arg0, 0x0258, 0x00, B697, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) M680 (Arg0, 0x0259, 0x00, B6E6, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x08) { /* Result Object returned by any Operator (Op): */ /* Add, Mid */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x025C, 0x00, B698, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x98 // . }) Store ((I6E7 + 0x00), B698) /* \B698 */ If (F64) { M680 (Arg0, 0x025D, 0x00, B698, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x025E, 0x00, B698, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } B698 [0x03] = 0x0B If (F64) { M680 (Arg0, 0x025F, 0x00, B698, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, 0x0260, 0x00, B698, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0x0B, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } M680 (Arg0, 0x0261, 0x00, I6E7, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0262, 0x00, B699, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x99 // . }) B699 = Mid (S6E7, 0x02, 0x0E) M680 (Arg0, 0x0263, 0x00, B699, Buffer (0x09) { /* 0000 */ 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, 0x44, 0x36, // 7CB391D6 /* 0008 */ 0x35 // 5 }) B699 [0x03] = 0x0B M680 (Arg0, 0x0264, 0x00, B699, Buffer (0x09) { /* 0000 */ 0x37, 0x43, 0x42, 0x0B, 0x39, 0x31, 0x44, 0x36, // 7CB.91D6 /* 0008 */ 0x35 // 5 }) M680 (Arg0, 0x0265, 0x00, S6E7, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0266, 0x00, B69A, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x9A // . }) B69A = Mid (B6E7, 0x01, 0x07) M680 (Arg0, 0x0267, 0x00, B69A, Buffer (0x09) { /* 0000 */ 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, 0x00, // .P...|.. /* 0008 */ 0x00 // . }) B69A [0x03] = 0x0B M680 (Arg0, 0x0268, 0x00, B69A, Buffer (0x09) { /* 0000 */ 0xA2, 0x50, 0xD6, 0x0B, 0xB3, 0x7C, 0xFE, 0x00, // .P...|.. /* 0008 */ 0x00 // . }) M680 (Arg0, 0x0269, 0x00, B6E7, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } /* Additionally can be implemented cases: */ /* Derefof of immediate Refof */ /* Derefof of intermediate Object */ /* Derefof of Reference returned by called Method */ Default { Debug = "Unexpected way to obtain some result Object" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Store() Result Object to Buffer Field Named Object, */ /* case of the field, which is 31-bit long (bf80) */ Method (M0E0, 3, Serialized) { /* ArgX as a way to obtain some result object */ Method (M000, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ BF80 = Arg2 M010 (Arg0, 0x82, 0x01) M680 (Arg0, 0x026D, 0x00, Arg2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF80 = Arg3 M020 (Arg0, 0x89, 0x01) M680 (Arg0, 0x026E, 0x00, Arg3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF80 = Arg4 M030 (Arg0, 0x90, 0x01) M680 (Arg0, 0x026F, 0x00, Arg4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Reference in ArgX as a way to obtain some result object */ Method (M001, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ BF80 = DerefOf (Arg2) M010 (Arg0, 0x99, 0x01) M680 (Arg0, 0x0272, 0x00, DerefOf (Arg2), 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF80 = DerefOf (Arg3) M020 (Arg0, 0xA0, 0x01) M680 (Arg0, 0x0273, 0x00, DerefOf (Arg3), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF80 = DerefOf (Arg4) M030 (Arg0, 0xA7, 0x01) M680 (Arg0, 0x0274, 0x00, DerefOf (Arg4), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Check storing of 0xfe7cb391d650a284 to bf80, */ /* optionally perform an additional update and check */ /* m010(, , ) */ Method (M010, 3, NotSerialized) { M680 (Arg0, Arg1, 0x00, ObjectType (BF80), 0x0E) M680 (Arg0, Arg1, 0x01, BF80, Buffer(){0x84, 0xA2, 0x50, 0x56}) BF80 = 0xC179B3FE M680 (Arg0, Arg1, 0x02, ObjectType (BF80), 0x0E) M680 (Arg0, Arg1, 0x03, BF80, Buffer(){0xFE, 0xB3, 0x79, 0x41}) } /* Check storing of "FE7CB391D650A284" to bf80, */ /* optionally perform an additional update and check */ /* m020(, , ) */ Method (M020, 3, NotSerialized) { M680 (Arg0, Arg1, 0x00, ObjectType (BF80), 0x0E) M680 (Arg0, Arg1, 0x01, BF80, Buffer(){0x46, 0x45, 0x37, 0x43}) BF80 = "C179B3FE" M680 (Arg0, Arg1, 0x02, ObjectType (BF80), 0x0E) M680 (Arg0, Arg1, 0x03, BF80, Buffer(){0x43, 0x31, 0x37, 0x39}) } /* Check storing of Buffer(){0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE} */ /* to bf80, optionally perform an additional update and check */ /* m030(, , ) */ Method (M030, 3, NotSerialized) { M680 (Arg0, Arg1, 0x00, ObjectType (BF80), 0x0E) M680 (Arg0, Arg1, 0x01, BF80, Buffer(){0x84, 0xA2, 0x50, 0x56}) BF80 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, Arg1, 0x02, ObjectType (BF80), 0x0E) M680 (Arg0, Arg1, 0x03, BF80, Buffer(){0xFE, 0xB3, 0x79, 0x41}) } /* Fill the bytes range of the Buffer Field in the SourceBuffer */ M683 (B675, 0x23, 0x3F, 0xA5) /* Choose a way to obtain some result object */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Data Image */ /* Choose a type of the result Object and specific source */ /* objects to obtain the result Object of the specified type. */ /* Check that the destination Object is properly initialized. */ /* Perform storing expression and check result. */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF80 = 0xFE7CB391D650A284 M010 (Arg0, 0xB0, 0x00) } Case (0x02) { /* String */ BF80 = "FE7CB391D650A284" M020 (Arg0, 0xB6, 0x00) } Case (0x03) { /* Buffer */ BF80 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } M030 (Arg0, 0xBC, 0x00) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x01) { /* Named Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF80 = I6E4 /* \I6E4 */ M010 (Arg0, 0xC4, 0x01) M680 (Arg0, 0x0279, 0x00, I6E4, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF80 = S6E4 /* \S6E4 */ M020 (Arg0, 0xCB, 0x01) M680 (Arg0, 0x027A, 0x00, S6E4, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF80 = B6E4 /* \B6E4 */ M030 (Arg0, 0xD2, 0x01) M680 (Arg0, 0x027B, 0x00, B6E4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x02) { /* Method ArgX Object */ M000 (Concatenate (Arg0, "-m000"), Arg2, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x03) { /* Method LocalX Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Local0 = 0xFE7CB391D650A284 } Case (0x02) { /* String */ Local0 = "FE7CB391D650A284" } Case (0x03) { /* Buffer */ Local0 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF80 = Local0 M010 (Arg0, 0xDD, 0x01) M680 (Arg0, 0x0280, 0x00, Local0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF80 = Local0 M020 (Arg0, 0xE4, 0x01) M680 (Arg0, 0x0281, 0x00, Local0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF80 = Local0 M030 (Arg0, 0xEB, 0x01) M680 (Arg0, 0x0282, 0x00, Local0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x04) { /* Derefof of intermediate Object (Method ArgX Object) */ M001 (Concatenate (Arg0, "-m001"), Arg2, RefOf (I6E5), RefOf (S6E5), RefOf (B6E5)) } Case (0x05) { /* Derefof of immediate Index(...) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF80 = DerefOf (P690 [0x06]) M010 (Arg0, 0xF2, 0x01) M680 (Arg0, 0x0283, 0x00, DerefOf (P690 [0x06]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF80 = DerefOf (P690 [0x07]) M020 (Arg0, 0xF9, 0x01) M680 (Arg0, 0x0284, 0x00, DerefOf (P690 [0x07]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF80 = DerefOf (P690 [0x08]) M030 (Arg0, 0x0100, 0x01) M680 (Arg0, 0x0285, 0x00, DerefOf (P690 [0x08]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x06) { /* Derefof of Indexed Reference returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF80 = DerefOf (M681 (P690, 0x09)) M010 (Arg0, 0x0109, 0x01) M680 (Arg0, 0x0288, 0x00, DerefOf (P690 [0x09]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF80 = DerefOf (M681 (P690, 0x0A)) M020 (Arg0, 0x0110, 0x01) M680 (Arg0, 0x0289, 0x00, DerefOf (P690 [0x0A]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF80 = DerefOf (M681 (P690, 0x0B)) M030 (Arg0, 0x011C, 0x01) M680 (Arg0, 0x028A, 0x00, DerefOf (P690 [0x0B]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x07) { /* Result Object returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF80 = M682 (Arg2, 0x06) M010 (Arg0, 0x0125, 0x01) M680 (Arg0, 0x028D, 0x00, I6E6, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF80 = M682 (Arg2, 0x06) M020 (Arg0, 0x0131, 0x01) M680 (Arg0, 0x028E, 0x00, S6E6, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF80 = M682 (Arg2, 0x06) M030 (Arg0, 0x0138, 0x01) M680 (Arg0, 0x028F, 0x00, B6E6, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x08) { /* Result Object returned by any Operator (Op): */ /* Add, Mid */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Store ((I6E7 + 0x00), BF80) /* \BF80 */ M010 (Arg0, 0x013C, 0x01) M680 (Arg0, 0x0292, 0x00, I6E7, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF80 = Mid (S6E7, 0x02, 0x0E) M680 (Arg0, 0x0293, 0x00, ObjectType (BF80), 0x0E) M680 (Arg0, 0x0294, 0x00, BF80, Buffer() {0x37, 0x43, 0x42, 0x33}) BF80 = "C179B3FE" M680 (Arg0, 0x0295, 0x00, ObjectType (BF80), 0x0E) M680 (Arg0, 0x0296, 0x00, BF80, Buffer() {0x43, 0x31, 0x37, 0x39}) M680 (Arg0, 0x0297, 0x00, S6E7, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF80 = Mid (B6E7, 0x01, 0x07) M680 (Arg0, 0x0298, 0x00, ObjectType (BF80), 0x0E) M680 (Arg0, 0x0299, 0x00, BF80, Buffer() {0xA2, 0x50, 0xD6, 0x11}) BF80 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0x029A, 0x00, ObjectType (BF80), 0x0E) M680 (Arg0, 0x029B, 0x00, BF80, Buffer() {0xFE, 0xB3, 0x79, 0x41}) M680 (Arg0, 0x029C, 0x00, B6E7, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } /* Additionally can be implemented cases: */ /* Derefof of immediate Refof */ /* Derefof of intermediate Object */ /* Derefof of Reference returned by called Method */ Default { Debug = "Unexpected way to obtain some result Object" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Store() Result Object to Buffer Field Named Object */ /* case of the field, which is 63-bit long (bf81) */ Method (M0E1, 3, Serialized) { /* ArgX as a way to obtain some result object */ Method (M000, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ BF81 = Arg2 M010 (Arg0, 0x82, 0x01) M680 (Arg0, 0x02A0, 0x00, Arg2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF81 = Arg3 M020 (Arg0, 0x89, 0x01) M680 (Arg0, 0x02A1, 0x00, Arg3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF81 = Arg4 M030 (Arg0, 0x90, 0x01) M680 (Arg0, 0x02A2, 0x00, Arg4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Reference in ArgX as a way to obtain some result object */ Method (M001, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ BF81 = DerefOf (Arg2) M010 (Arg0, 0x99, 0x01) M680 (Arg0, 0x02A5, 0x00, DerefOf (Arg2), 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF81 = DerefOf (Arg3) M020 (Arg0, 0xA0, 0x01) M680 (Arg0, 0x02A6, 0x00, DerefOf (Arg3), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF81 = DerefOf (Arg4) M030 (Arg0, 0xA7, 0x01) M680 (Arg0, 0x02A7, 0x00, DerefOf (Arg4), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Check storing of 0xfe7cb391d650a284 to bf81, */ /* optionally perform an additional update and check */ /* m010(, , ) */ Method (M010, 3, NotSerialized) { M680 (Arg0, Arg1, 0x00, ObjectType (BF81), 0x0E) If (F64) { M680 (Arg0, Arg1, 0x02, BF81, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0x7E // ..P..... }) } else { M680 (Arg0, Arg1, 0x02, BF81, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00 // ..P..... }) } If (Arg2) { BF81 = 0xC179B3FE M680 (Arg0, Arg1, 0x03, ObjectType (BF81), 0x0E) M680 (Arg0, Arg1, 0x05, BF81, Buffer (0x08) { 0xFE, 0xB3, 0x79, 0xC1, 0x00, 0x00, 0x00, 0x00 // ..y..... }) } } /* Check storing of "FE7CB391D650A284" to bf81, */ /* optionally perform an additional update and check */ /* m020(, , ) */ Method (M020, 3, NotSerialized) { M680 (Arg0, Arg1, 0x00, ObjectType (BF81), 0x0E) M680 (Arg0, Arg1, 0x02, BF81, Buffer (0x08) { 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31 // FE7CB391 }) If (Arg2) { BF81 = "C179B3FE" M680 (Arg0, Arg1, 0x03, ObjectType (BF81), 0x0E) M680 (Arg0, Arg1, 0x05, BF81, Buffer (0x08) { 0x43, 0x31, 0x37, 0x39, 0x42, 0x33, 0x46, 0x45 // C179B3FE }) } } /* Check storing of Buffer(){0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE} */ /* to bf81, optionally perform an additional update and check */ /* m030(, , ) */ Method (M030, 3, NotSerialized) { M680 (Arg0, Arg1, 0x00, ObjectType (BF81), 0x0E) M680 (Arg0, Arg1, 0x02, BF81, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0x7E // ..P...|~ }) If (Arg2) { BF81 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, Arg1, 0x03, ObjectType (BF81), 0x0E) M680 (Arg0, Arg1, 0x05, BF81, Buffer (0x08) { 0xFE, 0xB3, 0x79, 0xC1, 0x00, 0x00, 0x00, 0x00 // ..y..... }) } } /* Fill the bytes range of the Buffer Field in the SourceBuffer */ M683 (B675, 0x23, 0x3F, 0xA5) /* Choose a way to obtain some result object */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Data Image */ /* Choose a type of the result Object and specific source */ /* objects to obtain the result Object of the specified type. */ /* Check that the destination Object is properly initialized. */ /* Perform storing expression and check result. */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF81 = 0xFE7CB391D650A284 M010 (Arg0, 0xB0, 0x00) } Case (0x02) { /* String */ BF81 = "FE7CB391D650A284" M020 (Arg0, 0xB6, 0x00) } Case (0x03) { /* Buffer */ BF81 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } M030 (Arg0, 0xBC, 0x00) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x01) { /* Named Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF81 = I6E4 /* \I6E4 */ M010 (Arg0, 0xC4, 0x01) M680 (Arg0, 0x02AC, 0x00, I6E4, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF81 = S6E4 /* \S6E4 */ M020 (Arg0, 0xCB, 0x01) M680 (Arg0, 0x02AD, 0x00, S6E4, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF81 = B6E4 /* \B6E4 */ M030 (Arg0, 0xD2, 0x01) M680 (Arg0, 0x02AE, 0x00, B6E4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x02) { /* Method ArgX Object */ M000 (Concatenate (Arg0, "-m000"), Arg2, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x03) { /* Method LocalX Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Local0 = 0xFE7CB391D650A284 } Case (0x02) { /* String */ Local0 = "FE7CB391D650A284" } Case (0x03) { /* Buffer */ Local0 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF81 = Local0 M010 (Arg0, 0xDD, 0x01) M680 (Arg0, 0x02B3, 0x00, Local0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF81 = Local0 M020 (Arg0, 0xE4, 0x01) M680 (Arg0, 0x02B4, 0x00, Local0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF81 = Local0 M030 (Arg0, 0xEB, 0x01) M680 (Arg0, 0x02B5, 0x00, Local0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x04) { /* Derefof of intermediate Object (Method ArgX Object) */ M001 (Concatenate (Arg0, "-m001"), Arg2, RefOf (I6E5), RefOf (S6E5), RefOf (B6E5)) } Case (0x05) { /* Derefof of immediate Index(...) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF81 = DerefOf (P690 [0x06]) M010 (Arg0, 0xF2, 0x01) M680 (Arg0, 0x02B6, 0x00, DerefOf (P690 [0x06]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF81 = DerefOf (P690 [0x07]) M020 (Arg0, 0xF9, 0x01) M680 (Arg0, 0x02B7, 0x00, DerefOf (P690 [0x07]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF81 = DerefOf (P690 [0x08]) M030 (Arg0, 0x0100, 0x01) M680 (Arg0, 0x02B8, 0x00, DerefOf (P690 [0x08]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x06) { /* Derefof of Indexed Reference returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF81 = DerefOf (M681 (P690, 0x09)) M010 (Arg0, 0x0109, 0x01) M680 (Arg0, 0x02BB, 0x00, DerefOf (P690 [0x09]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF81 = DerefOf (M681 (P690, 0x0A)) M020 (Arg0, 0x0110, 0x01) M680 (Arg0, 0x02BC, 0x00, DerefOf (P690 [0x0A]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF81 = DerefOf (M681 (P690, 0x0B)) M030 (Arg0, 0x011C, 0x01) M680 (Arg0, 0x02BD, 0x00, DerefOf (P690 [0x0B]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x07) { /* Result Object returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF81 = M682 (Arg2, 0x06) M010 (Arg0, 0x0125, 0x01) M680 (Arg0, 0x02C0, 0x00, I6E6, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF81 = M682 (Arg2, 0x06) M020 (Arg0, 0x0131, 0x01) M680 (Arg0, 0x02C1, 0x00, S6E6, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF81 = M682 (Arg2, 0x06) M030 (Arg0, 0x0138, 0x01) M680 (Arg0, 0x02C2, 0x00, B6E6, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x08) { /* Result Object returned by any Operator (Op): */ /* Add, Mid */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Store ((I6E7 + 0x00), BF81) /* \BF81 */ M010 (Arg0, 0x013C, 0x01) M680 (Arg0, 0x02C5, 0x00, I6E7, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF81 = Mid (S6E7, 0x02, 0x0E) M680 (Arg0, 0x02C6, 0x00, ObjectType (BF81), 0x0E) M680 (Arg0, 0x02C8, 0x00, BF81, Buffer (0x08) { 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, 0x44, 0x36 // 7CB391D6 }) BF81 = "C179B3FE" M680 (Arg0, 0x02C9, 0x00, ObjectType (BF81), 0x0E) M680 (Arg0, 0x02CB, 0x00, BF81, Buffer (0x08) { 0x43, 0x31, 0x37, 0x39, 0x42, 0x33, 0x46, 0x45 // C179B3FE }) M680 (Arg0, 0x02CC, 0x00, S6E7, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF81 = Mid (B6E7, 0x01, 0x07) M680 (Arg0, 0x02CD, 0x00, ObjectType (BF81), 0x0E) M680 (Arg0, 0x02CF, 0x00, BF81, Buffer (0x08) { 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, 0x00 // .P...|.. }) BF81 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0x02D0, 0x00, ObjectType (BF81), 0x0E) M680 (Arg0, 0x02D2, 0x00, BF81, Buffer (0x08) { 0xFE, 0xB3, 0x79, 0xC1, 0x00, 0x00, 0x00, 0x00 // ..y..... }) M680 (Arg0, 0x02D3, 0x00, B6E7, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } /* Additionally can be implemented cases: */ /* Derefof of immediate Refof */ /* Derefof of intermediate Object */ /* Derefof of Reference returned by called Method */ Default { Debug = "Unexpected way to obtain some result Object" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Store() Result Object to Buffer Field Named Object */ /* case of the field, which is 69-bit long (bf82) */ Method (M0E2, 3, Serialized) { /* ArgX as a way to obtain some result object */ Method (M000, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ BF82 = Arg2 M010 (Arg0, 0x82, 0x01) M680 (Arg0, 0x02D7, 0x00, Arg2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF82 = Arg3 M020 (Arg0, 0x89, 0x01) M680 (Arg0, 0x02D8, 0x00, Arg3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF82 = Arg4 M030 (Arg0, 0x90, 0x01) M680 (Arg0, 0x02D9, 0x00, Arg4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Reference in ArgX as a way to obtain some result object */ Method (M001, 5, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ BF82 = DerefOf (Arg2) M010 (Arg0, 0x99, 0x01) M680 (Arg0, 0x02DC, 0x00, DerefOf (Arg2), 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF82 = DerefOf (Arg3) M020 (Arg0, 0xA0, 0x01) M680 (Arg0, 0x02DD, 0x00, DerefOf (Arg3), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF82 = DerefOf (Arg4) M030 (Arg0, 0xA7, 0x01) M680 (Arg0, 0x02DE, 0x00, DerefOf (Arg4), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Check storing of 0xfe7cb391d650a284 to bf82, */ /* optionally perform an additional update and check */ /* m010(, , ) */ Method (M010, 3, NotSerialized) { If (F64) { M680 (Arg0, Arg1, 0x00, ObjectType (BF82), 0x0E) M680 (Arg0, Arg1, 0x01, BF82, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) } Else { M680 (Arg0, Arg1, 0x02, BF82, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00, // ..P..... /* 0008 */ 0x00 // . }) } If (Arg2) { BF82 = 0xC179B3FE M680 (Arg0, Arg1, 0x03, ObjectType (BF82), 0x0E) M680 (Arg0, Arg1, 0x04, BF82, Buffer (0x09) { /* 0000 */ 0xFE, 0xB3, 0x79, 0xC1, 0x00, 0x00, 0x00, 0x00, // ..y..... /* 0008 */ 0x00 // . }) } } /* Check storing of "FE7CB391D650A284" to bf82, */ /* optionally perform an additional update and check */ /* m020(, , ) */ Method (M020, 3, NotSerialized) { M680 (Arg0, Arg1, 0x00, ObjectType (BF82), 0x0E) M680 (Arg0, Arg1, 0x01, BF82, Buffer (0x09) { /* 0000 */ 0x46, 0x45, 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, // FE7CB391 /* 0008 */ 0x04 // . }) If (Arg2) { BF82 = "C179B3FE" M680 (Arg0, Arg1, 0x02, ObjectType (BF82), 0x0E) M680 (Arg0, Arg1, 0x03, BF82, Buffer (0x09) { "C179B3FE" }) } } /* Check storing of Buffer(){0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE} */ /* to bf82, optionally perform an additional update and check */ /* m030(, , ) */ Method (M030, 3, NotSerialized) { M680 (Arg0, Arg1, 0x00, ObjectType (BF82), 0x0E) M680 (Arg0, Arg1, 0x01, BF82, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x00 // . }) If (Arg2) { BF82 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, Arg1, 0x02, ObjectType (BF82), 0x0E) M680 (Arg0, Arg1, 0x03, BF82, Buffer (0x09) { /* 0000 */ 0xFE, 0xB3, 0x79, 0xC1, 0x00, 0x00, 0x00, 0x00, // ..y..... /* 0008 */ 0x00 // . }) } } /* Fill the bytes range of the Buffer Field in the SourceBuffer */ M683 (B675, 0x6E, 0x45, 0xA5) /* Choose a way to obtain some result object */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Data Image */ /* Choose a type of the result Object and specific source */ /* objects to obtain the result Object of the specified type. */ /* Check that the destination Object is properly initialized. */ /* Perform storing expression and check result. */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF82 = 0xFE7CB391D650A284 M010 (Arg0, 0xB0, 0x00) } Case (0x02) { /* String */ BF82 = "FE7CB391D650A284" M020 (Arg0, 0xB6, 0x00) } Case (0x03) { /* Buffer */ BF82 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } M030 (Arg0, 0xBC, 0x00) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x01) { /* Named Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF82 = I6E4 /* \I6E4 */ M010 (Arg0, 0xC4, 0x01) M680 (Arg0, 0x02E3, 0x00, I6E4, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF82 = S6E4 /* \S6E4 */ M020 (Arg0, 0xCB, 0x01) M680 (Arg0, 0x02E4, 0x00, S6E4, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF82 = B6E4 /* \B6E4 */ M030 (Arg0, 0xD2, 0x01) M680 (Arg0, 0x02E5, 0x00, B6E4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x02) { /* Method ArgX Object */ M000 (Concatenate (Arg0, "-m000"), Arg2, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x03) { /* Method LocalX Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Local0 = 0xFE7CB391D650A284 } Case (0x02) { /* String */ Local0 = "FE7CB391D650A284" } Case (0x03) { /* Buffer */ Local0 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF82 = Local0 M010 (Arg0, 0xDD, 0x01) M680 (Arg0, 0x02EA, 0x00, Local0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF82 = Local0 M020 (Arg0, 0xE4, 0x01) M680 (Arg0, 0x02EB, 0x00, Local0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF82 = Local0 M030 (Arg0, 0xEB, 0x01) M680 (Arg0, 0x02EC, 0x00, Local0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x04) { /* Derefof of intermediate Object (Method ArgX Object) */ M001 (Concatenate (Arg0, "-m001"), Arg2, RefOf (I6E5), RefOf (S6E5), RefOf (B6E5)) } Case (0x05) { /* Derefof of immediate Index(...) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF82 = DerefOf (P690 [0x06]) M010 (Arg0, 0xF2, 0x01) M680 (Arg0, 0x02ED, 0x00, DerefOf (P690 [0x06]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF82 = DerefOf (P690 [0x07]) M020 (Arg0, 0xF9, 0x01) M680 (Arg0, 0x02EE, 0x00, DerefOf (P690 [0x07]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF82 = DerefOf (P690 [0x08]) M030 (Arg0, 0x0100, 0x01) M680 (Arg0, 0x02EF, 0x00, DerefOf (P690 [0x08]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x06) { /* Derefof of Indexed Reference returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF82 = DerefOf (M681 (P690, 0x09)) M010 (Arg0, 0x0109, 0x01) M680 (Arg0, 0x02F2, 0x00, DerefOf (P690 [0x09]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF82 = DerefOf (M681 (P690, 0x0A)) M020 (Arg0, 0x0110, 0x01) M680 (Arg0, 0x02F3, 0x00, DerefOf (P690 [0x0A]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF82 = DerefOf (M681 (P690, 0x0B)) M030 (Arg0, 0x011C, 0x01) M680 (Arg0, 0x02F4, 0x00, DerefOf (P690 [0x0B]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x07) { /* Result Object returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ BF82 = M682 (Arg2, 0x06) M010 (Arg0, 0x0125, 0x01) M680 (Arg0, 0x02F7, 0x00, I6E6, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF82 = M682 (Arg2, 0x06) M020 (Arg0, 0x0131, 0x01) M680 (Arg0, 0x02F8, 0x00, S6E6, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF82 = M682 (Arg2, 0x06) M030 (Arg0, 0x0138, 0x01) M680 (Arg0, 0x02F9, 0x00, B6E6, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x08) { /* Result Object returned by any Operator (Op): */ /* Add, Mid */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ Store ((I6E7 + 0x00), BF82) /* \BF82 */ M010 (Arg0, 0x013C, 0x01) M680 (Arg0, 0x02FC, 0x00, I6E7, 0xFE7CB391D650A284) } Case (0x02) { /* String */ BF82 = Mid (S6E7, 0x02, 0x0E) M680 (Arg0, 0x02FD, 0x00, ObjectType (BF82), 0x0E) M680 (Arg0, 0x02FE, 0x00, BF82, Buffer (0x09) { /* 0000 */ 0x37, 0x43, 0x42, 0x33, 0x39, 0x31, 0x44, 0x36, // 7CB391D6 /* 0008 */ 0x15 // . }) BF82 = "C179B3FE" M680 (Arg0, 0x02FF, 0x00, ObjectType (BF82), 0x0E) M680 (Arg0, 0x0300, 0x00, BF82, Buffer (0x09) { "C179B3FE" }) M680 (Arg0, 0x0301, 0x00, S6E7, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ BF82 = Mid (B6E7, 0x01, 0x07) M680 (Arg0, 0x0302, 0x00, ObjectType (BF82), 0x0E) M680 (Arg0, 0x0303, 0x00, BF82, Buffer (0x09) { /* 0000 */ 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, 0x00, // .P...|.. /* 0008 */ 0x00 // . }) BF82 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } M680 (Arg0, 0x0304, 0x00, ObjectType (BF82), 0x0E) M680 (Arg0, 0x0305, 0x00, BF82, Buffer (0x09) { /* 0000 */ 0xFE, 0xB3, 0x79, 0xC1, 0x00, 0x00, 0x00, 0x00, // ..y..... /* 0008 */ 0x00 // . }) M680 (Arg0, 0x0306, 0x00, B6E7, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } /* Additionally can be implemented cases: */ /* Derefof of immediate Refof */ /* Derefof of intermediate Object */ /* Derefof of Reference returned by called Method */ Default { Debug = "Unexpected way to obtain some result Object" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Store() Result Object to String Method LocalX Object */ Method (M023, 3, Serialized) { /* ArgX as a way to obtain some result object */ Method (M000, 5, Serialized) { Local1 = "initial named string" Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x030A, 0x00, Local1, "initial named string") Local1 = Arg2 If (F64) { M680 (Arg0, 0x030B, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x030C, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x030D, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x030E, 0x00, Arg2, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x030F, 0x00, Local1, "initial named string") Local1 = Arg3 M680 (Arg0, 0x0310, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0311, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0312, 0x00, Arg3, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0313, 0x00, Local1, "initial named string") Local1 = Arg4 M680 (Arg0, 0x0314, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0315, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x0316, 0x00, Arg4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } /* Reference in ArgX as a way to obtain some result object */ Method (M001, 5, Serialized) { Local1 = "initial named string" Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0319, 0x00, Local1, "initial named string") Local1 = DerefOf (Arg2) If (F64) { M680 (Arg0, 0x031A, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x031B, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x031C, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x031D, 0x00, DerefOf (Arg2), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x031E, 0x00, Local1, "initial named string") Local1 = DerefOf (Arg3) M680 (Arg0, 0x031F, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0320, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0321, 0x00, DerefOf (Arg3), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0322, 0x00, Local1, "initial named string") Local1 = DerefOf (Arg4) M680 (Arg0, 0x0323, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0324, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x0325, 0x00, DerefOf (Arg4), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } Local1 = "initial named string" /* Choose a way to obtain some result object */ Switch (ToInteger (Arg1)) { Case (0x00) { /* Data Image */ /* Choose a type of the result Object and specific source */ /* objects to obtain the result Object of the specified type. */ /* Check that the destination Object is properly initialized. */ /* Perform storing expression and check result. */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0328, 0x00, Local1, "initial named string") Local1 = 0xFE7CB391D650A284 If (F64) { M680 (Arg0, 0x0329, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x032A, 0x00, Local1, 0xD650A284) } } Case (0x02) { /* String */ M680 (Arg0, 0x032B, 0x00, Local1, "initial named string") Local1 = "FE7CB391D650A284" M680 (Arg0, 0x032C, 0x00, Local1, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x032D, 0x00, Local1, "initial named string") Local1 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } M680 (Arg0, 0x032E, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x01) { /* Named Object */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0331, 0x00, Local1, "initial named string") Local1 = I6E4 /* \I6E4 */ If (F64) { M680 (Arg0, 0x0332, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x0333, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x0334, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x0335, 0x00, I6E4, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0336, 0x00, Local1, "initial named string") Local1 = S6E4 /* \S6E4 */ M680 (Arg0, 0x0337, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0338, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0339, 0x00, S6E4, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x033A, 0x00, Local1, "initial named string") Local1 = B6E4 /* \B6E4 */ M680 (Arg0, 0x033B, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x033C, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x033D, 0x00, B6E4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Default { Debug = "Unexpected type of the result Object to be stored" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x02) { /* Method ArgX Object */ M000 (Concatenate (Arg0, "-m000"), Arg2, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x03) { /* Method LocalX Object */ Switch (ToInteger (Arg2)) { Case (0x00) { /* Stuff */ Return (0x00) } Case (0x01) { /* Integer */ Local0 = 0xFE7CB391D650A284 } Case (0x02) { /* String */ Local0 = "FE7CB391D650A284" } Case (0x03) { /* Buffer */ Local0 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0341, 0x00, Local1, "initial named string") Local1 = Local0 If (F64) { M680 (Arg0, 0x0342, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x0343, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x0344, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x0345, 0x00, Local0, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0346, 0x00, Local1, "initial named string") Local1 = Local0 M680 (Arg0, 0x0347, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0348, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0349, 0x00, Local0, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x034A, 0x00, Local1, "initial named string") Local1 = Local0 M680 (Arg0, 0x034B, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x034C, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x034D, 0x00, Local0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x04) { /* Derefof of intermediate Object (Method ArgX Object) */ M001 (Concatenate (Arg0, "-m001"), Arg2, RefOf (I6E5), RefOf (S6E5), RefOf (B6E5)) } Case (0x05) { /* Derefof of immediate Index(...) */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x034E, 0x00, Local1, "initial named string") Local1 = DerefOf (P690 [0x06]) If (F64) { M680 (Arg0, 0x034F, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x0350, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x0351, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x0352, 0x00, DerefOf (P690 [0x06]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0353, 0x00, Local1, "initial named string") Local1 = DerefOf (P690 [0x07]) M680 (Arg0, 0x0354, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0355, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0356, 0x00, DerefOf (P690 [0x07]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0357, 0x00, Local1, "initial named string") Local1 = DerefOf (P690 [0x08]) M680 (Arg0, 0x0358, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0359, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x035A, 0x00, DerefOf (P690 [0x08]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x06) { /* Derefof of Indexed Reference returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x035D, 0x00, Local1, "initial named string") Local1 = DerefOf (M681 (P690, 0x09)) If (F64) { M680 (Arg0, 0x035E, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x035F, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x0360, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x0361, 0x00, DerefOf (P690 [0x09]), 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x0362, 0x00, Local1, "initial named string") Local1 = DerefOf (M681 (P690, 0x0A)) M680 (Arg0, 0x0363, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0364, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0365, 0x00, DerefOf (P690 [0x0A]), "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0366, 0x00, Local1, "initial named string") Local1 = DerefOf (M681 (P690, 0x0B)) M680 (Arg0, 0x0367, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0368, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x0369, 0x00, DerefOf (P690 [0x0B]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } } } Case (0x07) { /* Result Object returned by called Method */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x036A, 0x00, Local1, "initial named string") Local1 = M682 (Arg2, 0x06) If (F64) { M680 (Arg0, 0x036B, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x036C, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x036D, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x036E, 0x00, I6E6, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x036F, 0x00, Local1, "initial named string") Local1 = M682 (Arg2, 0x06) M680 (Arg0, 0x0370, 0x00, Local1, "FE7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0371, 0x00, Local1, "FE7\vB391D650A284") M680 (Arg0, 0x0372, 0x00, S6E6, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0373, 0x00, Local1, "initial named string") Local1 = M682 (Arg2, 0x06) M680 (Arg0, 0x0374, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0375, 0x00, Local1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0x0B, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M680 (Arg0, 0x0376, 0x00, B6E6, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } Case (0x08) { /* Result Object returned by any Operator (Op): */ /* Add, Mid */ Switch (ToInteger (Arg2)) { Case (0x01) { /* Integer */ M680 (Arg0, 0x0379, 0x00, Local1, "initial named string") Store ((I6E7 + 0x00), Local1) If (F64) { M680 (Arg0, 0x037A, 0x00, Local1, 0xFE7CB391D650A284) } Else { M680 (Arg0, 0x037B, 0x00, Local1, 0xD650A284) } Local1 = 0xC179B3FE M680 (Arg0, 0x037C, 0x00, Local1, 0xC179B3FE) M680 (Arg0, 0x037D, 0x00, I6E7, 0xFE7CB391D650A284) } Case (0x02) { /* String */ M680 (Arg0, 0x037E, 0x00, Local1, "initial named string") Local1 = Mid (S6E7, 0x02, 0x0E) M680 (Arg0, 0x037F, 0x00, Local1, "7CB391D650A284") Local1 [0x03] = 0x0B M680 (Arg0, 0x0380, 0x00, Local1, "7CB\v91D650A284") M680 (Arg0, 0x0381, 0x00, S6E7, "FE7CB391D650A284") } Case (0x03) { /* Buffer */ M680 (Arg0, 0x0382, 0x00, Local1, "initial named string") Local1 = Mid (B6E7, 0x01, 0x07) M680 (Arg0, 0x0383, 0x00, Local1, Buffer (0x07) { 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // .P...|. }) Local1 [0x03] = 0x0B M680 (Arg0, 0x0384, 0x00, Local1, Buffer (0x07) { 0xA2, 0x50, 0xD6, 0x0B, 0xB3, 0x7C, 0xFE // .P...|. }) M680 (Arg0, 0x0385, 0x00, B6E7, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { /* Field Unit */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } Case (0x0E) { /* Buffer Field */ Debug = "Not implemented" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } } /* Additionally can be implemented cases: */ /* Derefof of immediate Refof */ /* Derefof of intermediate Object */ /* Derefof of Reference returned by called Method */ Default { Debug = "Unexpected way to obtain some result Object" ERR (TERR, Z123, __LINE__, 0x00, 0x00, Arg1, Arg2) Return (0x01) } } Return (0x00) } M100 (Concatenate (__METHOD__, "-m100-S-IntC"), 0x01, 0x00) M100 (Concatenate (__METHOD__, "-m100-S-IntN"), 0x01, 0x01) M100 (Concatenate (__METHOD__, "-m100-S-IntL"), 0x01, 0x03) M100 (Concatenate (__METHOD__, "-m100-S-StrN"), 0x02, 0x01) M100 (Concatenate (__METHOD__, "-m100-S-StrL"), 0x02, 0x03) M100 (Concatenate (__METHOD__, "-m100-S-BufN"), 0x03, 0x01) M100 (Concatenate (__METHOD__, "-m100-S-BFldN"), 0x0E, 0x01) } /* Run-method */ Method (RES0, 0, NotSerialized) { Debug = "TEST: RES0, Result Object processing in Store operator" /* Check storing of immediate Source Objects by Store() */ M689 ("RES0-m689", 0x00, 0x00) /* Store() to Global Named Objects, Constant and LocalX */ M690 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rcopyobject/0000700000175000017500000000000014773714155031261 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rcopyobject/RUN.asl0000700000175000017500000000361614773714155032437 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Result Object processing in CopyObject()", TCLC, 0x0F, W011)) { RES1 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rcopyobject/MAIN.asl0000700000175000017500000000431714773714155032516 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("rcopyobject", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/result/common/rcommon.asl") Include ("../../../../../../runtime/collections/complex/result/tests/rcopyobject/rcopyobject.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/result/tests/rcopyobject/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rcopyobject/Makefile0000700000175000017500000000021414773714155032721 0ustar ivanhuivanhu# rcopyobject AMLMOD= rcopyobject COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 -vx 6142 TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rcopyobject/rcopyobject.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rcopyobject/rcopyobjec0000700000175000017500000000375414773714155033357 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check Result Object processing on CopyObject */ Name (Z124, 0x7C) /* Run-method */ Method (RES1, 0, NotSerialized) { Debug = "TEST: RES1, Result Object processing in CopyObject" /* Check storing of immediate Source Objects by CopyObject() */ M689 ("RES1-m689", 0x01, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/roptional/0000700000175000017500000000000014773714155030745 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/roptional/RUN.asl0000700000175000017500000000362614773714155032124 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Result Object processing in the normal operators", TCLC, 0x0D, W011)) { RES4 () } FTTT () ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/roptional/roptional.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/roptional/roptional.as0000700000175000017500000044127014773714155033314 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check Result Object processing in the normal operators * providing optional storing (the ones besides Store, CopyObject, * explicit conversion operators) */ Name (Z127, 0x7F) /* m694(, , */ /* , , ) */ Method (M694, 5, Serialized) { Name (TS, "m694") /* - choose a type of the Object to store into: = Uninitialized = Integer = String = Buffer = Package ... - choose a value of the Object to store into - choose kind of the Object to store into: = Named Object = Method LocalX Object - determine the destination Object to store into: it should exist and be initialized with the chosen value (Dst0) - choose a way to obtain some result object (Expr ~ Result Object returned by any normal Operator providing optional storing (Op)): = CondRefOf (any, Result) => Boolean = FindSetLeftBit (int, Result) => Integer = FindSetRightBit (int, Result) => Integer = Not (int, Result) => Integer = Add (int, int, Result) => Integer = And (int, int, Result) => Integer = Concatenate ({int|str|buf}, {int|str|buf}, Result) => ComputationalData = ConcatenateResTempl (rtb, rtb, Result) => Buffer = Divide (int, int, Remainder, Result) => Integer = Index ({str|buf|pkg}, int, Destination) => ObjectReference = Mod (int, int, Result) => Integer = Multiply (int, int, Result) => Integer = NAnd (int, int, Result) => Integer = NOr (int, int, Result) => Integer = Or (int, int, Result) => Integer = ShiftLeft (int, int, Result) => Integer = ShiftRight (int, int, Result) => Integer = Subtract (int, int, Result) => Integer = XOr (int, int, Result) => Integer = Mid ({str|buf}, int, int, Result) => Buffer or String - choose storing expression: = Store(Op(Src0, ...), Dst0) = CopyObject(Op(Src0, ...), Dst0) = Op(Src0, ..., Dst0) - the type of the result Object depend on the Operator - choose specific source objects to obtain the result Object of the specified type: it should exist and be initialized (Src0, ...) - choose a benchmark value according to a storing expression, chosen source objects, the value of the target object and relevant result conversion rule (if any) - Bval - check that the destination Object Dst0 is properly initialized - perform storing expression: Store(Expr(Src0, ...), Dst0) CopyObject(Expr(Src0, ...), Dst0) Op(Expr(Src0, ...), Dst0) - check that the benchmark value Bval is equal to the updated destination Object Dst0: - check that the source objects are not updated: - update the destination Object again and check that the source objects are not updated */ /* Object-initializers are used either with Source or Target */ /* (names ended by 0 and 1 respectively) */ /* Integer */ Name (INT0, 0xFEDCBA9876543210) Name (INT1, 0xFEDCBA9876543211) /* String */ Name (STR0, "source string") Name (STR1, "target string") /* Buffer */ Name (BUF0, Buffer (0x09) { /* 0000 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0008 */ 0x01 // . }) Name (BUF1, Buffer (0x11) { 0xC3 // . }) /* Base of Buffer Fields */ Name (BUFZ, Buffer (0x14){}) /* Package */ Name (PAC0, Package (0x03) { 0xFEDCBA987654321F, "test package", Buffer (0x09) { /* 0000 */ 0x13, 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, // ........ /* 0008 */ 0x0B // . } }) Name (PAC1, Package (0x01) { "target package" }) /* Device */ Device (DEV1) { Name (S000, "DEV1") } /* Event */ Event (EVE1) /* Method */ Name (MM01, "ff1Y") /* Value, returned from MMMY */ Name (MMM1, 0x00) /* Method as Target Object */ Method (MMMY, 0, NotSerialized) { Return (MM01) /* \M694.MM01 */ } /* Mutex */ Mutex (MTX1, 0x00) If (Y361) { /* Operation Region */ OperationRegion (OPR0, SystemMemory, 0x00, 0x14) OperationRegion (OPR1, SystemMemory, 0x00, 0x14) } /* Power Resource */ PowerResource (PWR1, 0x00, 0x0000) { Name (S000, "PWR1") } /* Processor */ Processor (CPU1, 0x00, 0xFFFFFFFF, 0x00) { Name (S000, "CPU1") } /* Thermal Zone */ ThermalZone (TZN1) { Name (S000, "TZN1") } /* Reference */ Name (REF0, Package (0x01){}) Name (REF1, Package (0x01){}) /* Specified types of the Source Objects */ Name (BUFS, Buffer (0x13) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x03, 0x01, // ........ /* 0008 */ 0x04, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x02 // ... }) /* Expected types of the Result Objects */ Name (BUFR, Buffer (0x13) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x03, 0x01, // ........ /* 0008 */ 0x11, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x01, 0x01, 0x02 // ... }) /* Data to gather statistics */ Name (STCS, 0x00) Name (INDM, 0xFF) Name (PAC2, Package (0x01){}) Name (IND2, 0x00) Name (PAC3, Package (0x01){}) Name (IND3, 0x00) Name (PAC4, Package (0x03) { "Store", "Copyobject", "Optional" }) Name (TERR, "-test error") /* Update statistics */ /* m000(, , , ) */ Method (M000, 4, NotSerialized) { If ((Arg0 == 0x02)) { If ((IND2 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC2 [IND2]) IND2++ } } ElseIf ((Arg0 == 0x03)) { If ((IND3 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC3 [IND3]) IND3++ } } } /* Initialize statistics */ Method (M001, 0, NotSerialized) { If (STCS) { PAC2 = Package (INDM){} IND2 = 0x00 PAC3 = Package (INDM){} IND3 = 0x00 } } /* Output statistics */ Method (M002, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) If (STCS) { Debug = Arg0 If (IND2) { Debug = "Run-time exceptions:" Debug = IND2 /* \M694.IND2 */ Debug = "Types:" LPN0 = IND2 /* \M694.IND2 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC2 [LPC0]) LPN0-- LPC0++ } } If (IND3) { Debug = "Type mismatch:" Debug = IND3 /* \M694.IND3 */ LPN0 = IND3 /* \M694.IND3 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC3 [LPC0]) LPN0-- LPC0++ } } } } /* Prepare Target of specified type */ Method (M003, 4, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { /* Only check */ } Case (0x01) { CopyObject (DerefOf (Arg3), INT1) /* \M694.INT1 */ CopyObject (INT1, Arg2) } Case (0x02) { CopyObject (DerefOf (Arg3), STR1) /* \M694.STR1 */ CopyObject (STR1, Arg2) } Case (0x03) { CopyObject (DerefOf (Arg3), BUF1) /* \M694.BUF1 */ Local0 = SizeOf (BUF1) If ((Local0 != 0x11)) { ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Local0, 0x11) Return (0x01) } CopyObject (BUF1, Arg2) } Case (0x04) { CopyObject (DerefOf (Arg3), PAC1) /* \M694.PAC1 */ CopyObject (PAC1, Arg2) } Case (0x05) { /* Check only */ } Case (0x06) { CopyObject (DEV1, Arg2) } Case (0x07) { CopyObject (EVE1, Arg2) } Case (0x08) { CopyObject (DerefOf (RefOf (MMMY)), MMM1) /* \M694.MMM1 */ CopyObject (DerefOf (RefOf (MMM1)), Arg2) } Case (0x09) { CopyObject (MTX1, Arg2) } Case (0x0A) { CopyObject (OPR1, Arg2) } Case (0x0B) { CopyObject (PWR1, Arg2) } Case (0x0C) { CopyObject (CPU1, Arg2) } Case (0x0D) { CopyObject (TZN1, Arg2) } Case (0x0E) { /* Check only */ } Case (0x11) { CopyObject (RefOf (REF0), REF1) /* \M694.REF1 */ /*if (y522) { */ CopyObject (REF1, Arg2) /*} else { */ /* CopyObject(DeRefof(REF1), arg2) */ /*} */ } /* Unexpected Target Type */ Default { ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If (CH03 (Arg0, Z127, __LINE__, 0x00, 0x00)) { /*Exception during preparing of Target Object */ Return (0x01) } If ((Arg1 == 0x11)) { /* Reference */ Return (0x00) } Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Target can not be set up */ ERR (Arg0, Z127, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Return (0x00) } /* Prepare Source of specified type */ Method (M004, 4, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { CopyObject (DerefOf (Arg3), INT0) /* \M694.INT0 */ CopyObject (INT0, Arg2) } Case (0x02) { CopyObject (DerefOf (Arg3), STR0) /* \M694.STR0 */ CopyObject (STR0, Arg2) } Case (0x03) { If (Y136) { CopyObject (DerefOf (Arg3), BUF0) /* \M694.BUF0 */ } Else { M687 (DerefOf (Arg3), RefOf (BUF0)) } CopyObject (BUF0, Arg2) } Case (0x04) { CopyObject (DerefOf (Arg3), PAC0) /* \M694.PAC0 */ CopyObject (PAC0, Arg2) } /* Unexpected Source Type */ Default { ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If (CH03 (Arg0, Z127, __LINE__, 0x00, 0x00)) { /* Exception during preparing of Source Object */ Return (0x01) } Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Source can not be set up */ ERR (Arg0, Z127, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Return (0x00) } /* Check Source Object type is not corrupted after storing, */ /* for the computational data types verify its value against */ /* the Object-initializer value */ Method (M005, 4, Serialized) { Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Source object is corrupted */ ERR (Arg0, Z127, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Switch (ToInteger (Arg1)) { Case (0x01) { Local0 = ObjectType (INT0) } Case (0x02) { Local0 = ObjectType (STR0) } Case (0x03) { Local0 = ObjectType (BUF0) } Case (0x04) { Local0 = ObjectType (PAC0) } /* Unexpected Source Type */ Default { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If ((Local0 != Arg1)) { /* Mismatch of Source Type against specified one */ ERR (Arg0, Z127, __LINE__, 0x00, 0x00, Local0, Arg1) If (STCS) { M000 (0x03, 0x01000000, Local0, Arg0) } Return (0x01) } Else { /* Check equality of the Source value to the Object-initializer one */ Switch (ToInteger (Arg1)) { Case (0x01) { If ((INT0 != DerefOf (Arg3))) { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, INT0, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != INT0)) { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, DerefOf (Arg2), INT0) Return (0x01) } } Case (0x02) { If ((STR0 != DerefOf (Arg3))) { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, STR0, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != STR0)) { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, DerefOf (Arg2), STR0) Return (0x01) } } Case (0x03) { If ((BUF0 != DerefOf (Arg3))) { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, BUF0, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != BUF0)) { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, DerefOf (Arg2), BUF0) Return (0x01) } } } } Return (0x00) } /* Check Target Object to have the expected type and value */ /* m006(, , , , */ /* , , ) */ Method (M006, 7, NotSerialized) { Local2 = ObjectType (Arg1) If ((Local2 != Arg2)) { If (STCS) { M000 (0x03, 0x00010000, Arg2, Local2) } } If (M686 (Arg5, Arg2, Arg3)) { /* Target must save type */ If ((Local2 != Arg2)) { /* Types mismatch Target/Target on storing */ If ((Arg2 == C016)) { If (X170){ /*this error report is unnecessary, should be removed. */ /*err(arg0, z127, __LINE__, 0, 0, Local2, arg2) */ } } Else { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, Local2, Arg2) } If (STCS) { M000 (0x03, 0x0100, Arg2, Local2) } Return (0x01) } } ElseIf /* Target must accept type of the Result Object */ ((Local2 != Arg3)) { If ((M684 (Arg3) == 0x06)) { /* Result object is a reference */ /* Check that Target can be used as reference */ Local0 = DerefOf (Arg1) Local3 = DerefOf (Local0) If (CH03 (Arg0, Z127, __LINE__, 0x00, Arg3)) { /* Derefof caused unexpected exception */ Return (0x01) } } ElseIf ((M684 (Arg3) != 0x01)) { /* Types mismatch Result/Target on storing */ ERR (Arg0, Z127, __LINE__, 0x00, 0x00, Local2, Arg3) Return (0x01) } ElseIf ((Local2 != 0x03)) { /* Types mismatch Result/Target on storing */ /* Test fixed type Objects are converted to Buffer */ ERR (Arg0, Z127, __LINE__, 0x00, 0x00, Local2, 0x03) Return (0x01) } If (STCS) { M000 (0x03, 0x0100, Arg3, Local2) } } /* Retrieve the benchmark value */ If (M686 (Arg5, Arg2, Arg3)) { /* Save type of Target */ /* Retrieve the benchmark value */ Local7 = DerefOf (DerefOf (Arg6 [0x04]) [Arg2]) } Else { Local7 = DerefOf (Arg6 [0x03]) } If ((DerefOf (Arg1) != Local7)) { If ((Arg2 == C016)) { If (X193) { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, DerefOf (Arg1), Local7) } } Else { ERR (Arg0, Z127, __LINE__, 0x00, 0x00, DerefOf (Arg1), Local7) } Return (0x01) } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* on immediate storing to a Target Named Object of the specified type */ /* m008(, , , , */ /* , , ) */ Method (M008, 7, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) /* Target Named Object */ Name (DST0, 0x00) /* Retrieve index of the verified Operator */ Local6 = DerefOf (Arg6 [0x00]) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Local6, 0x00, 0x02), Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02) ))), Arg0) If (STCS) { Debug = Arg0 } /* Target accept type on storing to Named of CopyObject operator is 2 */ If ((Arg4 == 0x01)) { Local0 = 0x02 } Else { Local0 = 0x00 } /* Prepare Source of specified type and value */ Store (Arg6 [0x01], Local7) If (M004 (Concatenate (Arg0, "-m004"), Arg3, RefOf (SRC0), Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Prepare Target of specified type */ Store (DerefOf (Arg6 [0x02]) [Arg2], Local7) If ((Arg2 == 0x05)) { /* Field Unit Target */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLUX, 69, FLU1, 69 } Local1 = RefOf (FLU1) } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ CreateField (BUFZ, 0x50, 0x45, BFL1) Local1 = RefOf (BFL1) } Else { Local1 = RefOf (DST0) } If (M003 (Concatenate (Arg0, "-m003"), Arg2, Local1, Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } /* Use a Source Object to immediately store into the Target */ If ((Arg2 == 0x05)) { /* Field Unit Target */ If ((Arg4 == 0x00)) { /* Store */ Switch (ToInteger (Local6)) { Case (0x00) { FLU1 = FindSetLeftBit (SRC0) } Case (0x01) { FLU1 = FindSetRightBit (SRC0) } Case (0x02) { Store (~SRC0, FLU1) /* \M694.M008.FLU1 */ } Case (0x03) { Store ((SRC0 + 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x04) { Store ((SRC0 & Ones), FLU1) /* \M694.M008.FLU1 */ } Case (0x05) { FLU1 = Concatenate (SRC0, "") } Case (0x06) { FLU1 = ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }) } Case (0x07) { Store ((SRC0 / 0x01), FLU1) /* \M694.M008.FLU1 */ } Case (0x08) { Store (SRC0 [0x00], FLU1) /* \M694.M008.FLU1 */ } Case (0x09) { Store ((SRC0 % Ones), FLU1) /* \M694.M008.FLU1 */ } Case (0x0A) { Store ((SRC0 * 0x01), FLU1) /* \M694.M008.FLU1 */ } Case (0x0B) { FLU1 = NAnd (SRC0, Ones) } Case (0x0C) { FLU1 = NOr (SRC0, 0x00) } Case (0x0D) { Store ((SRC0 | 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x0E) { Store ((SRC0 << 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x0F) { Store ((SRC0 >> 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x10) { Store ((SRC0 - 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x11) { Store ((SRC0 ^ 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x12) { FLU1 = Mid (SRC0, 0x00, Ones) } } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ Switch (ToInteger (Local6)) { Case (0x00) { CopyObject (FindSetLeftBit (SRC0), FLU1) /* \M694.M008.FLU1 */ } Case (0x01) { CopyObject (FindSetRightBit (SRC0), FLU1) /* \M694.M008.FLU1 */ } Case (0x02) { CopyObject (~SRC0, FLU1) /* \M694.M008.FLU1 */ } Case (0x03) { CopyObject ((SRC0 + 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x04) { CopyObject ((SRC0 & Ones), FLU1) /* \M694.M008.FLU1 */ } Case (0x05) { CopyObject (Concatenate (SRC0, ""), FLU1) /* \M694.M008.FLU1 */ } Case (0x06) { CopyObject (ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }), FLU1) /* \M694.M008.FLU1 */ } Case (0x07) { CopyObject ((SRC0 / 0x01), FLU1) /* \M694.M008.FLU1 */ } Case (0x08) { CopyObject (SRC0 [0x00], FLU1) /* \M694.M008.FLU1 */ } Case (0x09) { CopyObject ((SRC0 % Ones), FLU1) /* \M694.M008.FLU1 */ } Case (0x0A) { CopyObject ((SRC0 * 0x01), FLU1) /* \M694.M008.FLU1 */ } Case (0x0B) { CopyObject (NAnd (SRC0, Ones), FLU1) /* \M694.M008.FLU1 */ } Case (0x0C) { CopyObject (NOr (SRC0, 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x0D) { CopyObject ((SRC0 | 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x0E) { CopyObject ((SRC0 << 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x0F) { CopyObject ((SRC0 >> 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x10) { CopyObject ((SRC0 - 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x11) { CopyObject ((SRC0 ^ 0x00), FLU1) /* \M694.M008.FLU1 */ } Case (0x12) { CopyObject (Mid (SRC0, 0x00, Ones), FLU1) /* \M694.M008.FLU1 */ } } } ElseIf ((Arg4 == 0x02)) { /* Optional storing */ Switch (ToInteger (Local6)) { Case (0x00) { FindSetLeftBit (SRC0, FLU1) /* \M694.M008.FLU1 */ } Case (0x01) { FindSetRightBit (SRC0, FLU1) /* \M694.M008.FLU1 */ } Case (0x02) { FLU1 = ~SRC0 /* \M694.M008.SRC0 */ } Case (0x03) { FLU1 = (SRC0 + 0x00) } Case (0x04) { FLU1 = (SRC0 & Ones) } Case (0x05) { Concatenate (SRC0, "", FLU1) /* \M694.M008.FLU1 */ } Case (0x06) { ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }, FLU1) /* \M694.M008.FLU1 */ } Case (0x07) { FLU1 = (SRC0 / 0x01) } Case (0x08) { FLU1 = SRC0 [0x00] } Case (0x09) { FLU1 = (SRC0 % Ones) } Case (0x0A) { FLU1 = (SRC0 * 0x01) } Case (0x0B) { NAnd (SRC0, Ones, FLU1) /* \M694.M008.FLU1 */ } Case (0x0C) { NOr (SRC0, 0x00, FLU1) /* \M694.M008.FLU1 */ } Case (0x0D) { FLU1 = (SRC0 | 0x00) } Case (0x0E) { FLU1 = (SRC0 << 0x00) } Case (0x0F) { FLU1 = (SRC0 >> 0x00) } Case (0x10) { FLU1 = (SRC0 - 0x00) } Case (0x11) { FLU1 = (SRC0 ^ 0x00) } Case (0x12) { Mid (SRC0, 0x00, Ones, FLU1) /* \M694.M008.FLU1 */ } } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ If ((Arg4 == 0x00)) { /* Store */ Switch (ToInteger (Local6)) { Case (0x00) { BFL1 = FindSetLeftBit (SRC0) } Case (0x01) { BFL1 = FindSetRightBit (SRC0) } Case (0x02) { Store (~SRC0, BFL1) /* \M694.M008.BFL1 */ } Case (0x03) { Store ((SRC0 + 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x04) { Store ((SRC0 & Ones), BFL1) /* \M694.M008.BFL1 */ } Case (0x05) { BFL1 = Concatenate (SRC0, "") } Case (0x06) { BFL1 = ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }) } Case (0x07) { Store ((SRC0 / 0x01), BFL1) /* \M694.M008.BFL1 */ } Case (0x08) { Store (SRC0 [0x00], BFL1) /* \M694.M008.BFL1 */ } Case (0x09) { Store ((SRC0 % Ones), BFL1) /* \M694.M008.BFL1 */ } Case (0x0A) { Store ((SRC0 * 0x01), BFL1) /* \M694.M008.BFL1 */ } Case (0x0B) { BFL1 = NAnd (SRC0, Ones) } Case (0x0C) { BFL1 = NOr (SRC0, 0x00) } Case (0x0D) { Store ((SRC0 | 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x0E) { Store ((SRC0 << 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x0F) { Store ((SRC0 >> 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x10) { Store ((SRC0 - 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x11) { Store ((SRC0 ^ 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x12) { BFL1 = Mid (SRC0, 0x00, Ones) } } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ Switch (ToInteger (Local6)) { Case (0x00) { CopyObject (FindSetLeftBit (SRC0), BFL1) /* \M694.M008.BFL1 */ } Case (0x01) { CopyObject (FindSetRightBit (SRC0), BFL1) /* \M694.M008.BFL1 */ } Case (0x02) { CopyObject (~SRC0, BFL1) /* \M694.M008.BFL1 */ } Case (0x03) { CopyObject ((SRC0 + 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x04) { CopyObject ((SRC0 & Ones), BFL1) /* \M694.M008.BFL1 */ } Case (0x05) { CopyObject (Concatenate (SRC0, ""), BFL1) /* \M694.M008.BFL1 */ } Case (0x06) { CopyObject (ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }), BFL1) /* \M694.M008.BFL1 */ } Case (0x07) { CopyObject ((SRC0 / 0x01), BFL1) /* \M694.M008.BFL1 */ } Case (0x08) { CopyObject (SRC0 [0x00], BFL1) /* \M694.M008.BFL1 */ } Case (0x09) { CopyObject ((SRC0 % Ones), BFL1) /* \M694.M008.BFL1 */ } Case (0x0A) { CopyObject ((SRC0 * 0x01), BFL1) /* \M694.M008.BFL1 */ } Case (0x0B) { CopyObject (NAnd (SRC0, Ones), BFL1) /* \M694.M008.BFL1 */ } Case (0x0C) { CopyObject (NOr (SRC0, 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x0D) { CopyObject ((SRC0 | 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x0E) { CopyObject ((SRC0 << 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x0F) { CopyObject ((SRC0 >> 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x10) { CopyObject ((SRC0 - 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x11) { CopyObject ((SRC0 ^ 0x00), BFL1) /* \M694.M008.BFL1 */ } Case (0x12) { CopyObject (Mid (SRC0, 0x00, Ones), BFL1) /* \M694.M008.BFL1 */ } } } ElseIf ((Arg4 == 0x02)) { /* Optional storing */ Switch (ToInteger (Local6)) { Case (0x00) { FindSetLeftBit (SRC0, BFL1) /* \M694.M008.BFL1 */ } Case (0x01) { FindSetRightBit (SRC0, BFL1) /* \M694.M008.BFL1 */ } Case (0x02) { BFL1 = ~SRC0 /* \M694.M008.SRC0 */ } Case (0x03) { BFL1 = (SRC0 + 0x00) } Case (0x04) { BFL1 = (SRC0 & Ones) } Case (0x05) { Concatenate (SRC0, "", BFL1) /* \M694.M008.BFL1 */ } Case (0x06) { ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }, BFL1) /* \M694.M008.BFL1 */ } Case (0x07) { BFL1 = (SRC0 / 0x01) } Case (0x08) { BFL1 = SRC0 [0x00] } Case (0x09) { BFL1 = (SRC0 % Ones) } Case (0x0A) { BFL1 = (SRC0 * 0x01) } Case (0x0B) { NAnd (SRC0, Ones, BFL1) /* \M694.M008.BFL1 */ } Case (0x0C) { NOr (SRC0, 0x00, BFL1) /* \M694.M008.BFL1 */ } Case (0x0D) { BFL1 = (SRC0 | 0x00) } Case (0x0E) { BFL1 = (SRC0 << 0x00) } Case (0x0F) { BFL1 = (SRC0 >> 0x00) } Case (0x10) { BFL1 = (SRC0 - 0x00) } Case (0x11) { BFL1 = (SRC0 ^ 0x00) } Case (0x12) { Mid (SRC0, 0x00, Ones, BFL1) /* \M694.M008.BFL1 */ } } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg4 == 0x00)) { /* Store */ Switch (ToInteger (Local6)) { Case (0x00) { DST0 = FindSetLeftBit (SRC0) } Case (0x01) { DST0 = FindSetRightBit (SRC0) } Case (0x02) { Store (~SRC0, DST0) /* \M694.M008.DST0 */ } Case (0x03) { Store ((SRC0 + 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x04) { Store ((SRC0 & Ones), DST0) /* \M694.M008.DST0 */ } Case (0x05) { DST0 = Concatenate (SRC0, "") } Case (0x06) { DST0 = ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }) } Case (0x07) { Store ((SRC0 / 0x01), DST0) /* \M694.M008.DST0 */ } Case (0x08) { Store (SRC0 [0x00], DST0) /* \M694.M008.DST0 */ } Case (0x09) { Store ((SRC0 % Ones), DST0) /* \M694.M008.DST0 */ } Case (0x0A) { Store ((SRC0 * 0x01), DST0) /* \M694.M008.DST0 */ } Case (0x0B) { DST0 = NAnd (SRC0, Ones) } Case (0x0C) { DST0 = NOr (SRC0, 0x00) } Case (0x0D) { Store ((SRC0 | 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x0E) { Store ((SRC0 << 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x0F) { Store ((SRC0 >> 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x10) { Store ((SRC0 - 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x11) { Store ((SRC0 ^ 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x12) { DST0 = Mid (SRC0, 0x00, Ones) } } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ Switch (ToInteger (Local6)) { Case (0x00) { CopyObject (FindSetLeftBit (SRC0), DST0) /* \M694.M008.DST0 */ } Case (0x01) { CopyObject (FindSetRightBit (SRC0), DST0) /* \M694.M008.DST0 */ } Case (0x02) { CopyObject (~SRC0, DST0) /* \M694.M008.DST0 */ } Case (0x03) { CopyObject ((SRC0 + 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x04) { CopyObject ((SRC0 & Ones), DST0) /* \M694.M008.DST0 */ } Case (0x05) { CopyObject (Concatenate (SRC0, ""), DST0) /* \M694.M008.DST0 */ } Case (0x06) { CopyObject (ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }), DST0) /* \M694.M008.DST0 */ } Case (0x07) { CopyObject ((SRC0 / 0x01), DST0) /* \M694.M008.DST0 */ } Case (0x08) { CopyObject (SRC0 [0x00], DST0) /* \M694.M008.DST0 */ } Case (0x09) { CopyObject ((SRC0 % Ones), DST0) /* \M694.M008.DST0 */ } Case (0x0A) { CopyObject ((SRC0 * 0x01), DST0) /* \M694.M008.DST0 */ } Case (0x0B) { CopyObject (NAnd (SRC0, Ones), DST0) /* \M694.M008.DST0 */ } Case (0x0C) { CopyObject (NOr (SRC0, 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x0D) { CopyObject ((SRC0 | 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x0E) { CopyObject ((SRC0 << 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x0F) { CopyObject ((SRC0 >> 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x10) { CopyObject ((SRC0 - 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x11) { CopyObject ((SRC0 ^ 0x00), DST0) /* \M694.M008.DST0 */ } Case (0x12) { CopyObject (Mid (SRC0, 0x00, Ones), DST0) /* \M694.M008.DST0 */ } } } ElseIf ((Arg4 == 0x02)) { /* Optional storing */ Switch (ToInteger (Local6)) { Case (0x00) { FindSetLeftBit (SRC0, DST0) /* \M694.M008.DST0 */ } Case (0x01) { FindSetRightBit (SRC0, DST0) /* \M694.M008.DST0 */ } Case (0x02) { DST0 = ~SRC0 /* \M694.M008.SRC0 */ } Case (0x03) { DST0 = (SRC0 + 0x00) } Case (0x04) { DST0 = (SRC0 & Ones) } Case (0x05) { Concatenate (SRC0, "", DST0) /* \M694.M008.DST0 */ } Case (0x06) { ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }, DST0) /* \M694.M008.DST0 */ } Case (0x07) { DST0 = (SRC0 / 0x01) } Case (0x08) { DST0 = SRC0 [0x00] } Case (0x09) { DST0 = (SRC0 % Ones) } Case (0x0A) { DST0 = (SRC0 * 0x01) } Case (0x0B) { NAnd (SRC0, Ones, DST0) /* \M694.M008.DST0 */ } Case (0x0C) { NOr (SRC0, 0x00, DST0) /* \M694.M008.DST0 */ } Case (0x0D) { DST0 = (SRC0 | 0x00) } Case (0x0E) { DST0 = (SRC0 << 0x00) } Case (0x0F) { DST0 = (SRC0 >> 0x00) } Case (0x10) { DST0 = (SRC0 - 0x00) } Case (0x11) { DST0 = (SRC0 ^ 0x00) } Case (0x12) { Mid (SRC0, 0x00, Ones, DST0) /* \M694.M008.DST0 */ } } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } /* Choose expected Result type */ Local5 = DerefOf (BUFR [Local6]) If (Arg5) { /* Exception is expected */ If (!CH06 (Arg0, 0x1B, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Local5) } } } ElseIf (CH03 (Arg0, Z127, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Local5) } } ElseIf /* Check Target Object to have the expected type and value */ ((Y127 || (Local6 != 0x08))) { M006 (Concatenate (Arg0, "-m006"), Local1, Arg2, Local5, Arg4, Local0, Arg6) } /* Check Source Object type is not corrupted after storing */ Store (Arg6 [0x01], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (SRC0), Local7)) { If (STCS) { Debug = "m008, Source Object has been corrupted during storing" } } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* on immediate storing to a Target LocalX Object of the specified type */ /* m009(, , , , */ /* , , ) */ Method (M009, 7, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) /* Target LocalX Object: Local4 */ /* Retrieve index of the verified Operator */ Local6 = DerefOf (Arg6 [0x00]) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Local6, 0x00, 0x02), Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02) ))), Arg0) If (STCS) { Debug = Arg0 } /* Prepare Source of specified type and value */ Store (Arg6 [0x01], Local7) If (M004 (Concatenate (Arg0, "-m004"), Arg3, RefOf (SRC0), Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Prepare Target of specified type and value */ Store (DerefOf (Arg6 [0x02]) [Arg2], Local7) If (M003 (Concatenate (Arg0, "-m003"), Arg2, RefOf (Local4), Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } /* Use a Source Object to immediately store into the Target */ If ((Arg4 == 0x00)) { /* Store */ Switch (ToInteger (Local6)) { Case (0x00) { Local4 = FindSetLeftBit (SRC0) } Case (0x01) { Local4 = FindSetRightBit (SRC0) } Case (0x02) { Store (~SRC0, Local4) } Case (0x03) { Store ((SRC0 + 0x00), Local4) } Case (0x04) { Store ((SRC0 & Ones), Local4) } Case (0x05) { Local4 = Concatenate (SRC0, "") } Case (0x06) { Local4 = ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }) } Case (0x07) { Store ((SRC0 / 0x01), Local4) } Case (0x08) { Store (SRC0 [0x00], Local4) } Case (0x09) { Store ((SRC0 % Ones), Local4) } Case (0x0A) { Store ((SRC0 * 0x01), Local4) } Case (0x0B) { Local4 = NAnd (SRC0, Ones) } Case (0x0C) { Local4 = NOr (SRC0, 0x00) } Case (0x0D) { Store ((SRC0 | 0x00), Local4) } Case (0x0E) { Store ((SRC0 << 0x00), Local4) } Case (0x0F) { Store ((SRC0 >> 0x00), Local4) } Case (0x10) { Store ((SRC0 - 0x00), Local4) } Case (0x11) { Store ((SRC0 ^ 0x00), Local4) } Case (0x12) { Local4 = Mid (SRC0, 0x00, Ones) } } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ Switch (ToInteger (Local6)) { Case (0x00) { CopyObject (FindSetLeftBit (SRC0), Local4) } Case (0x01) { CopyObject (FindSetRightBit (SRC0), Local4) } Case (0x02) { CopyObject (~SRC0, Local4) } Case (0x03) { CopyObject ((SRC0 + 0x00), Local4) } Case (0x04) { CopyObject ((SRC0 & Ones), Local4) } Case (0x05) { CopyObject (Concatenate (SRC0, ""), Local4) } Case (0x06) { CopyObject (ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }), Local4) } Case (0x07) { CopyObject ((SRC0 / 0x01), Local4) } Case (0x08) { CopyObject (SRC0 [0x00], Local4) } Case (0x09) { CopyObject ((SRC0 % Ones), Local4) } Case (0x0A) { CopyObject ((SRC0 * 0x01), Local4) } Case (0x0B) { CopyObject (NAnd (SRC0, Ones), Local4) } Case (0x0C) { CopyObject (NOr (SRC0, 0x00), Local4) } Case (0x0D) { CopyObject ((SRC0 | 0x00), Local4) } Case (0x0E) { CopyObject ((SRC0 << 0x00), Local4) } Case (0x0F) { CopyObject ((SRC0 >> 0x00), Local4) } Case (0x10) { CopyObject ((SRC0 - 0x00), Local4) } Case (0x11) { CopyObject ((SRC0 ^ 0x00), Local4) } Case (0x12) { CopyObject (Mid (SRC0, 0x00, Ones), Local4) } } } ElseIf ((Arg4 == 0x02)) { /* Optional storing */ Switch (ToInteger (Local6)) { Case (0x00) { FindSetLeftBit (SRC0, Local4) } Case (0x01) { FindSetRightBit (SRC0, Local4) } Case (0x02) { Local4 = ~SRC0 /* \M694.M009.SRC0 */ } Case (0x03) { Local4 = (SRC0 + 0x00) } Case (0x04) { Local4 = (SRC0 & Ones) } Case (0x05) { Concatenate (SRC0, "", Local4) } Case (0x06) { ConcatenateResTemplate (SRC0, Buffer (0x02) { 0x79, 0x00 // y. }, Local4) } Case (0x07) { Local4 = (SRC0 / 0x01) } Case (0x08) { Local4 = SRC0 [0x00] } Case (0x09) { Local4 = (SRC0 % Ones) } Case (0x0A) { Local4 = (SRC0 * 0x01) } Case (0x0B) { NAnd (SRC0, Ones, Local4) } Case (0x0C) { NOr (SRC0, 0x00, Local4) } Case (0x0D) { Local4 = (SRC0 | 0x00) } Case (0x0E) { Local4 = (SRC0 << 0x00) } Case (0x0F) { Local4 = (SRC0 >> 0x00) } Case (0x10) { Local4 = (SRC0 - 0x00) } Case (0x11) { Local4 = (SRC0 ^ 0x00) } Case (0x12) { Mid (SRC0, 0x00, Ones, Local4) } } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z127, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } /* Choose expected Result type */ Local5 = DerefOf (BUFR [Local6]) If (Arg5) { /* Exception is expected */ If (!CH06 (Arg0, 0x20, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Local5) } } } ElseIf (CH03 (Arg0, Z127, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Local5) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to LocalX is 1 */ Local0 = 0x01 If ((Y127 || (Local6 != 0x08))) { M006 (Concatenate (Arg0, "-m006"), RefOf (Local4), Arg2, Local5, Arg4, Local0, Arg6) } } /* Check Source Object type is not corrupted after storing */ Store (Arg6 [0x01], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (SRC0), Local7)) { If (STCS) { Debug = "m009, Source Object has been corrupted during storing" } } Return (0x00) } /* Test data packages */ /* FindSetLeftBit */ Name (P032, Package (0x12) { /* index of the Operator */ 0x00, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x1F, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x1F, "0000001F", Buffer (0x11) { 0x1F // . }, 0x00, Buffer (0x09) { 0x1F // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x1F // . }, 0x00, 0x00, 0x00 } }) Name (P064, Package (0x12) { /* index of the Operator */ 0x00, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x40, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x40, "0000000000000040", Buffer (0x11) { 0x40 // @ }, 0x00, Buffer (0x09) { 0x40 // @ }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x40 // @ }, 0x00, 0x00, 0x00 } }) /* FindSetRightBit */ Name (P132, Package (0x12) { /* index of the Operator */ 0x01, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x05, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x05, "00000005", Buffer (0x11) { 0x05 // . }, 0x00, Buffer (0x09) { 0x05 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x05 // . }, 0x00, 0x00, 0x00 } }) Name (P164, Package (0x12) { /* index of the Operator */ 0x01, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x05, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x05, "0000000000000005", Buffer (0x11) { 0x05 // . }, 0x00, Buffer (0x09) { 0x05 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x05 // . }, 0x00, 0x00, 0x00 } }) /* Not */ Name (P232, Package (0x12) { /* index of the Operator */ 0x02, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x0123456789ABCDEF, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x0123456789ABCDEF, "89ABCDEF", Buffer (0x11) { 0xEF, 0xCD, 0xAB, 0x89 // .... }, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89 // .... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89 // .... }, 0x00, 0x00, 0x00 } }) Name (P264, Package (0x12) { /* index of the Operator */ 0x02, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x0123456789ABCDEF, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x0123456789ABCDEF, "0123456789ABCDEF", Buffer (0x11) { 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01 // ....gE#. }, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01 // ....gE#. }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01 // ....gE#. }, 0x00, 0x00, 0x00 } }) /* Add */ Name (P332, Package (0x12) { /* index of the Operator */ 0x03, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (P364, Package (0x12) { /* index of the Operator */ 0x03, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* And */ Name (P432, Package (0x12) { /* index of the Operator */ 0x04, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (P464, Package (0x12) { /* index of the Operator */ 0x04, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* Concatenate */ Name (P532, Package (0x12) { /* index of the Operator */ 0x05, /* SRC0 initial value */ "fedcba98 string", /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba98 string", /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA98, "fedcba98 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x20, 0x73, 0x74, 0x72, 0x69, 0x6E, 0x67 // string }, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00, 0x00 } }) Name (P564, Package (0x12) { /* index of the Operator */ 0x05, /* SRC0 initial value */ "fedcba9876543210 string", /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba9876543210 string", /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "fedcba9876543210 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x30, // 76543210 /* 0010 */ 0x20 // }, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00, 0x00 } }) /* ConcatenateResTempl */ Name (P600, Package (0x12) { /* index of the Operator */ 0x06, /* SRC0 initial value */ Buffer (0x02) { 0x79, 0x00 // y. }, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ Buffer (0x02) { 0x79, 0x00 // y. }, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x79, "79 00", Buffer (0x11) { 0x79, 0x00 // y. }, 0x00, Buffer (0x09) { 0x79, 0x00 // y. }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x79, 0x00 // y. }, 0x00, 0x00, 0x00 } }) /* Divide */ Name (P732, Package (0x12) { /* index of the Operator */ 0x07, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (P764, Package (0x12) { /* index of the Operator */ 0x07, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* Index */ Name (P832, Package (0x12) { /* index of the Operator */ 0x08, /* SRC0 initial value */ Package (0x01) { 0xFEDCBA9876543210 }, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (P864, Package (0x12) { /* index of the Operator */ 0x08, /* SRC0 initial value */ Package (0x01) { 0xFEDCBA9876543210 }, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* Mod */ Name (P932, Package (0x12) { /* index of the Operator */ 0x09, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (P964, Package (0x12) { /* index of the Operator */ 0x09, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* Multiply */ Name (PA32, Package (0x12) { /* index of the Operator */ 0x0A, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (PA64, Package (0x12) { /* index of the Operator */ 0x0A, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* NAnd */ Name (PB32, Package (0x12) { /* index of the Operator */ 0x0B, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x0123456789ABCDEF, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x0123456789ABCDEF, "89ABCDEF", Buffer (0x11) { 0xEF, 0xCD, 0xAB, 0x89 // .... }, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89 // .... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89 // .... }, 0x00, 0x00, 0x00 } }) Name (PB64, Package (0x12) { /* index of the Operator */ 0x0B, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x0123456789ABCDEF, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x0123456789ABCDEF, "0123456789ABCDEF", Buffer (0x11) { 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01 // ....gE#. }, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01 // ....gE#. }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01 // ....gE#. }, 0x00, 0x00, 0x00 } }) /* NOr */ Name (PC32, Package (0x12) { /* index of the Operator */ 0x0C, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x0123456789ABCDEF, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x0123456789ABCDEF, "89ABCDEF", Buffer (0x11) { 0xEF, 0xCD, 0xAB, 0x89 // .... }, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89 // .... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89 // .... }, 0x00, 0x00, 0x00 } }) Name (PC64, Package (0x12) { /* index of the Operator */ 0x0C, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x0123456789ABCDEF, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x0123456789ABCDEF, "0123456789ABCDEF", Buffer (0x11) { 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01 // ....gE#. }, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01 // ....gE#. }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01 // ....gE#. }, 0x00, 0x00, 0x00 } }) /* Or */ Name (PD32, Package (0x12) { /* index of the Operator */ 0x0D, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (PD64, Package (0x12) { /* index of the Operator */ 0x0D, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* ShiftLeft */ Name (PE32, Package (0x12) { /* index of the Operator */ 0x0E, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (PE64, Package (0x12) { /* index of the Operator */ 0x0E, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* ShiftRight */ Name (PF32, Package (0x12) { /* index of the Operator */ 0x0F, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (PF64, Package (0x12) { /* index of the Operator */ 0x0F, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* Subtract */ Name (PG32, Package (0x12) { /* index of the Operator */ 0x10, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (PG64, Package (0x12) { /* index of the Operator */ 0x10, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* XOr */ Name (PH32, Package (0x12) { /* index of the Operator */ 0x11, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (PH64, Package (0x12) { /* index of the Operator */ 0x11, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* Mid */ Name (PI32, Package (0x12) { /* index of the Operator */ 0x12, /* SRC0 initial value */ "fedcba98 string", /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba98 string", /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA98, "fedcba98 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x20, 0x73, 0x74, 0x72, 0x69, 0x6E, 0x67 // string }, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00, 0x00 } }) Name (PI64, Package (0x12) { /* index of the Operator */ 0x12, /* SRC0 initial value */ "fedcba9876543210 string", /* Target Objects initial values */ Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba9876543210 string", /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "fedcba9876543210 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x30, // 76543210 /* 0010 */ 0x20 // }, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00, 0x00 } }) Name (P320, Package (0x13) { P032, P132, P232, P332, P432, P532, P600, P732, P832, P932, PA32, PB32, PC32, PD32, PE32, PF32, PG32, PH32, PI32 }) Name (P640, Package (0x13) { P064, P164, P264, P364, P464, P564, P600, P764, P864, P964, PA64, PB64, PC64, PD64, PE64, PF64, PG64, PH64, PI64 }) Name (LPN0, 0x12) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) If ((Arg0 == 0x00)) { Concatenate (TS, "-S", TS) /* \M694.TS__ */ } ElseIf ((Arg0 == 0x01)) { Concatenate (TS, "-C", TS) /* \M694.TS__ */ } ElseIf ((Arg0 == 0x02)) { Concatenate (TS, "-O", TS) /* \M694.TS__ */ } If ((Arg4 == 0x00)) { Concatenate (TS, "-N", TS) /* \M694.TS__ */ } Else { Concatenate (TS, "-L", TS) /* \M694.TS__ */ } If (Arg1) { Concatenate (TS, "-Exc", TS) /* \M694.TS__ */ } SRMT (TS) /* Initialize statistics */ M001 () If ((Arg0 > 0x02)) { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (TS, TERR), Z127, __LINE__, 0x00, 0x00, Arg0, 0x00) Return (0x01) } If ((Arg4 > 0x01)) { /* Unexpected Kind of Source-Target pair */ ERR (Concatenate (TS, TERR), Z127, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } /* Flags of Store from and to Named to check */ /* exceptional conditions on storing */ If ((Arg0 == 0x01)) { Local0 = 0x00 Local1 = 0x00 } Else { Local0 = 0x01 Local1 = (Arg4 == 0x00) } /* Enumerate Target types */ While (LPN0) { If ((DerefOf (B670 [LPC0]) && DerefOf (Arg2 [LPC0]))) { /* Not invalid type of the Target Object to store in */ LPN1 = 0x13 LPC1 = 0x00 /* Enumerate the operators */ /* which determine expected Result types */ While (LPN1) { /* Choose expected Result type */ Local2 = DerefOf (BUFR [LPC1]) If ((DerefOf (B671 [Local2]) && DerefOf (Arg3 [Local2]))) { /* Not invalid type of the result Object to be stored */ If (F64) { Local3 = DerefOf (P640 [LPC1]) } Else { Local3 = DerefOf (P320 [LPC1]) } If (Arg1) { /* Skip cases without exceptional conditions */ If (!M685 ((Arg0 != 0x01), LPC0, Local2, Local0, Local1)) { LPN1-- LPC1++ Continue } } ElseIf /* Skip cases with exceptional conditions */ (M685 ((Arg0 != 0x01), LPC0, Local2, Local0, Local1)) { LPN1-- LPC1++ Continue } If ((Arg4 == 0x00)) { /* Named Source and Target */ M008 (Concatenate (TS, "-m008"), 0x00, LPC0, DerefOf (BUFS [LPC1]), Arg0, Arg1, Local3) } ElseIf ((Arg4 == 0x01)) { /* LocalX Target */ M009 (Concatenate (TS, "-m009"), 0x00, LPC0, DerefOf (BUFS [LPC1]), Arg0, Arg1, Local3) } } LPN1-- LPC1++ } } LPN0-- LPC0++ } /* Output statistics */ M002 (Concatenate ("Storing of the result of normal operator to Named Object with ", DerefOf (PAC4 [Arg0]))) Return (0x00) } /* Run-method */ Method (RES4, 0, NotSerialized) { Debug = "TEST: RES4, Result Object processing in the normal operators" /* Named Source and Target */ /* Store the result of the normal operators */ M694 (0x00, 0x00, B676, B676, 0x00) /* CopyObject the result of the normal operators */ M694 (0x01, 0x00, B676, B676, 0x00) /* Optional storing of the result of the normal operators */ M694 (0x02, 0x00, B676, B676, 0x00) /* LocalX Target */ /* Store the result of the normal operators */ M694 (0x00, 0x00, B677, B676, 0x01) /* CopyObject the result of the normal operators */ M694 (0x01, 0x00, B677, B676, 0x01) /* Optional storing of the result of the normal operators */ M694 (0x02, 0x00, B677, B676, 0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/roptional/MAIN.asl0000700000175000017500000000430714773714155032201 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("roptional", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/result/common/rcommon.asl") Include ("../../../../../../runtime/collections/complex/result/tests/roptional/roptional.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/result/tests/roptional/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/roptional/Makefile0000700000175000017500000000021014773714155032401 0ustar ivanhuivanhu# roptional AMLMOD= roptional COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 -vx 6142 TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rindecrement/0000700000175000017500000000000014773714155031415 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rindecrement/RUN.asl0000700000175000017500000000362514773714155032573 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Result Object processing in Increment/Decrement", TCLC, 0x10, W011)) { RES2 () } FTTT () ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rindecrement/rindecrement.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rindecrement/rindecrem0000700000175000017500000010773514773714155033330 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check Result Object processing on Increment/Decrement */ Name (Z125, 0x7D) /* Test verifying Result Object processing on storing of the resilt */ /* into different kinds of Target Objects by means of the specified */ /* either Increment or Decrement operator */ /* m692(, ) */ Method (M692, 2, Serialized) { Name (TS, "m692") /* - choose a type of the destination operand Object (Dst0): = Uninitialized = Integer = String = Buffer = Package ... - choose kind of the operand Object: = Named Object = Method ArgX Object = Method LocalX Object - choose a value to initialize Dst0, - choose a benchmark value according to the initialized value - Bval - check that the Dst0 is properly initialized - perform storing expression: Increment(Expr(Dst0)) Decrement(Expr(Dst0)) - check that the benchmark value Bval is equal to the updated destination operand Object Dst0 */ /* Object-initializers are used with Source~Target */ /* Integer */ Name (INT0, 0xFEDCBA9876543210) /* String */ Name (STR0, "76543210") Name (STR1, "76543210") /* Buffer */ Name (BUF0, Buffer (0x09) { /* 0000 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0008 */ 0x01 // . }) Name (BUF1, Buffer (0x09) { /* 0000 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0008 */ 0x01 // . }) /* Initializer of Fields */ Name (BUF2, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }) /* Base of Buffer Fields */ Name (BUFZ, Buffer (0x14){}) /* Package */ Name (PAC0, Package (0x03) { 0xFEDCBA987654321F, "test package", Buffer (0x09) { /* 0000 */ 0x13, 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, // ........ /* 0008 */ 0x0B // . } }) If (Y361) { /* Field Unit */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLU0, 69, FLU1, 69 } } /* Device */ Device (DEV0) { Name (S000, "DEV0") } /* Event */ Event (EVE0) /* Method */ Name (MMM0, 0x00) /* Method as Source Object */ Method (MMMX, 0, NotSerialized) { Return ("abcd") } /* Mutex */ Mutex (MTX0, 0x00) If (Y361) { /* Operation Region */ OperationRegion (OPR0, SystemMemory, 0x00, 0x14) } /* Power Resource */ PowerResource (PWR0, 0x00, 0x0000) { Name (S000, "PWR0") } /* Processor */ Processor (CPU0, 0x00, 0xFFFFFFFF, 0x00) { Name (S000, "CPU0") } /* Thermal Zone */ ThermalZone (TZN0) { Name (S000, "TZN0") } /* Buffer Field */ CreateField (BUFZ, 0x00, 0x45, BFL0) CreateField (BUFZ, 0x00, 0x45, BFL1) /* Data to gather statistics */ Name (STCS, 0x00) Name (INDM, 0xFF) Name (PAC2, Package (0x01){}) Name (IND2, 0x00) Name (PAC3, Package (0x01){}) Name (IND3, 0x00) Name (PAC4, Package (0x02) { "Increment", "Decrement" }) Name (TERR, "-test error") /* Update statistics */ /* m000(, , , ) */ Method (M000, 4, NotSerialized) { If ((Arg0 == 0x02)) { If ((IND2 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC2 [IND2]) IND2++ } } ElseIf ((Arg0 == 0x03)) { If ((IND3 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC3 [IND3]) IND3++ } } } /* Initialize statistics */ Method (M001, 0, NotSerialized) { If (STCS) { PAC2 = Package (0xFF){} IND2 = 0x00 PAC3 = Package (0xFF){} IND3 = 0x00 } } /* Output statistics */ Method (M002, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) If (STCS) { Debug = Arg0 If (IND2) { Debug = "Run-time exceptions:" Debug = IND2 /* \M692.IND2 */ Debug = "Types:" LPN0 = IND2 /* \M692.IND2 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC2 [LPC0]) LPN0-- LPC0++ } } If (IND3) { Debug = "Type mismatch:" Debug = IND3 /* \M692.IND3 */ LPN0 = IND3 /* \M692.IND3 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC3 [LPC0]) LPN0-- LPC0++ } } } } /* Prepare Source of specified type */ Method (M004, 3, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { } Case (0x01) { CopyObject (INT0, Arg2) } Case (0x02) { CopyObject (STR0, Arg2) } Case (0x03) { CopyObject (BUF0, Arg2) } Case (0x04) { CopyObject (PAC0, Arg2) } Case (0x05) { FLU0 = BUF2 /* \M692.BUF2 */ } Case (0x06) { CopyObject (DEV0, Arg2) } Case (0x07) { CopyObject (EVE0, Arg2) } Case (0x08) { CopyObject (DerefOf (RefOf (MMMX)), MMM0) /* \M692.MMM0 */ CopyObject (DerefOf (RefOf (MMM0)), Arg2) } Case (0x09) { CopyObject (MTX0, Arg2) } Case (0x0A) { CopyObject (OPR0, Arg2) } Case (0x0B) { CopyObject (PWR0, Arg2) } Case (0x0C) { CopyObject (CPU0, Arg2) } Case (0x0D) { CopyObject (TZN0, Arg2) } Case (0x0E) { BFL0 = BUF2 /* \M692.BUF2 */ } /* Unexpected Source Type */ Default { ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If (CH03 (Arg0, Z125, __LINE__, 0x00, 0x00)) { /* Exception during preparing of Source Object */ Return (0x01) } Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Source can not be set up */ ERR (Arg0, Z125, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Return (0x00) } /* Check Target Object to have the expected type and value */ /* m006(, , , , */ /* , ) */ Method (M006, 6, Serialized) { Name (MMM2, 0x00) /* The auxiliary Object to invoke Method */ Local2 = ObjectType (Arg1) /* Target must save type */ If ((Local2 != Arg2)) { /* Types mismatch Target/Target on storing */ /* Target (Result) type should keep the original type */ If (((Arg3 == C00A) || (Arg3 == C00B))) { If (X195) { ERR (Arg0, Z125, __LINE__, 0x00, 0x00, Local2, Arg2) } } Else { ERR (Arg0, Z125, __LINE__, 0x00, 0x00, Local2, Arg2) } If (STCS) { M000 (0x03, 0x0100, Arg2, Local2) } Return (0x01) } Switch (ToInteger (Arg2)) { Case (0x01) { Switch (ToInteger (Arg3)) { Case (0x01) { If ((Arg4 == 0x00)) { /* Increment */ Local0 = (INT0 + 0x01) } ElseIf ((Arg4 == 0x01)) { Local0 = (INT0 - 0x01) } Else { Local0 = INT0 /* \M692.INT0 */ } If ((DerefOf (Arg1) != Local0)) { ERR (Arg0, Z125, __LINE__, 0x00, 0x00, DerefOf (Arg1), Local0) Return (0x01) } } Case (0x02) { If ((Arg4 == 0x00)) { /* Increment */ Local0 = (STR0 + 0x01) } ElseIf ((Arg4 == 0x01)) { Local0 = (STR0 - 0x01) } Else { Local0 = STR0 /* \M692.STR0 */ } If ((DerefOf (Arg1) != Local0)) { ERR (Arg0, Z125, __LINE__, 0x00, 0x00, DerefOf (Arg1), Local0) Return (0x01) } } Case (0x03) { If ((Arg4 == 0x00)) { /* Increment */ Local0 = (BUF0 + 0x01) } ElseIf ((Arg4 == 0x01)) { Local0 = (BUF0 - 0x01) } Else { Local0 = BUF0 /* \M692.BUF0 */ } If ((DerefOf (Arg1) != Local0)) { ERR (Arg0, Z125, __LINE__, 0x00, 0x00, DerefOf (Arg1), Local0) Return (0x01) } } Default { ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg1, Arg3) Return (0x01) } } } Case (0x02) { Switch (ToInteger (Arg3)) { Case (0x02) { If ((Arg4 == 0x00)) { /* Increment */ STR1 = (STR0 + 0x01) } ElseIf ((Arg4 == 0x01)) { STR1 = (STR0 - 0x01) } Else { STR1 = STR0 /* \M692.STR0 */ } If ((DerefOf (Arg1) != STR1)) { ERR (Arg0, Z125, __LINE__, 0x00, 0x00, DerefOf (Arg1), STR1) Return (0x01) } } Default { ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg1, Arg3) Return (0x01) } } } Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x03) { If ((Arg4 == 0x00)) { /* Increment */ BUF1 = (BUF0 + 0x01) } ElseIf ((Arg4 == 0x01)) { BUF1 = (BUF0 - 0x01) } Else { BUF1 = BUF0 /* \M692.BUF0 */ } If ((DerefOf (Arg1) != BUF1)) { ERR (Arg0, Z125, __LINE__, 0x00, 0x00, DerefOf (Arg1), BUF1) Return (0x01) } } Default { ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg1, Arg3) Return (0x01) } } } Case (0x05) { Switch (ToInteger (Arg3)) { Case (0x05) { If ((Arg4 == 0x00)) { /* Increment */ FLU1 = (FLU0 + 0x01) } ElseIf ((Arg4 == 0x01)) { FLU1 = (FLU0 - 0x01) } Else { FLU1 = FLU0 /* \M692.FLU0 */ } If ((DerefOf (Arg1) != FLU1)) { ERR (Arg0, Z125, __LINE__, 0x00, 0x00, DerefOf (Arg1), FLU1) Return (0x01) } } Default { ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg1, Arg3) Return (0x01) } } } Case (0x0E) { Switch (ToInteger (Arg3)) { Case (0x0E) { If ((Arg4 == 0x00)) { /* Increment */ BFL1 = (BFL0 + 0x01) } ElseIf ((Arg4 == 0x01)) { BFL1 = (BFL0 - 0x01) } Else { BFL1 = BFL0 /* \M692.BFL0 */ } If ((DerefOf (Arg1) != BFL1)) { ERR (Arg0, Z125, __LINE__, 0x00, 0x00, DerefOf (Arg1), BFL1) Return (0x01) } } Default { ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg1, Arg3) Return (0x01) } } } Default { ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg1, Arg3) Return (0x01) } } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* as an immediate operand in Increment/Decrement operators */ /* m008(, , , , */ /* , ) */ Method (M008, 6, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Target save type of Increment/Decrement operators is 0 */ /* (Target should take a type of Integer) */ Local0 = 0x00 If ((Arg3 == 0x05)) { /* Field Unit Source/Target */ Local3 = RefOf (FLU0) } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source/Target */ Local3 = RefOf (BFL0) } Else { Local3 = RefOf (SRC0) } /* Prepare Source of specified type */ If (M004 (Concatenate (Arg0, "-m004"), Arg3, Local3)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Use a Source Object immediately in the Operator */ If ((Arg3 == 0x05)) { /* Field Unit Source/Target */ If ((Arg4 == 0x00)) { /* Increment */ FLU0++ } ElseIf ((Arg4 == 0x01)) { /* Decrement */ FLU0-- } Else { /* Unexpected Kind of Op (0 - Increment, 1 - Decrement) */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Source/Field Target */ If ((Arg4 == 0x00)) { /* Increment */ BFL0++ } ElseIf ((Arg4 == 0x01)) { /* Decrement */ BFL0-- } Else { /* Unexpected Kind of Op (0 - Increment, 1 - Decrement) */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg4 == 0x00)) { /* Increment */ SRC0++ } ElseIf ((Arg4 == 0x01)) { /* Decrement */ SRC0-- } Else { /* Unexpected Kind of Op (0 - Increment, 1 - Decrement) */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (!CH06 (Arg0, 0x16, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z125, __LINE__, 0x00, Arg2)) { /* Processing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ M006 (Concatenate (Arg0, "-m006"), Local3, Arg2, Arg3, Arg4, Local0) } Return (0x00) } /* Check processing of an Source LocalX Object of the specified type */ /* as an immediate operand in Increment/Decrement operators */ /* m009(, , , , */ /* , ) */ Method (M009, 6, NotSerialized) { /* Source LocalX Object: Local1 */ Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Target save type of Increment/Decrement operators is 0 */ /* (Target should take a type of Integer) */ Local0 = 0x00 If (M004 (Concatenate (Arg0, "-m004"), Arg3, RefOf (Local1))) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } If ((Arg4 == 0x00)) { /* Increment */ Local1++ } ElseIf ((Arg4 == 0x01)) { /* Decrement */ Local1-- } Else { /* Unexpected Kind of Op (0 - Increment, 1 - Decrement) */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { If ((SLCK && ((ToInteger (Arg3) == 0x00) && (ToInteger (Arg2 ) == 0x01)))) { /* In slack mode, [Uninitialized] object */ /* will be converted to Integer 0, thus no */ /* exception caused by implicit source */ /* conversion. */ If (CH03 (Arg0, Z125, __LINE__, 0x00, Arg2)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf /* Exception is expected */ (!CH06 (Arg0, 0x1A, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z125, __LINE__, 0x00, Arg2)) { /* Processing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ M006 (Concatenate (Arg0, "-m006"), RefOf (Local1), Arg2, Arg3, Arg4, Local0) } Return (0x00) } /* Check processing of an Source LocalX Object of the specified type */ /* as an immediate argument of the Method in which it is used */ /* as an immediate operand in Increment/Decrement operators */ /* m00a(, , , , */ /* , ) */ Method (M00A, 6, NotSerialized) { /* Source LocalX Object: Local1 */ Method (M100, 1, NotSerialized) { Arg0++ Return (Arg0) } Method (M101, 1, NotSerialized) { Arg0-- Return (Arg0) } Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Target save type of Increment/Decrement operators is 0 */ /* (Target should take a type of Integer) */ Local0 = 0x00 If (M004 (Concatenate (Arg0, "-m004"), Arg3, RefOf (Local1))) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } If ((Arg4 == 0x00)) { /* Increment */ Local2 = M100 (Local1) } ElseIf ((Arg4 == 0x01)) { /* Decrement */ Local2 = M101 (Local1) } Else { /* Unexpected Kind of Op (0 - Increment, 1 - Decrement) */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { If ((SLCK && ((ToInteger (Arg3) == 0x00) && (ToInteger (Arg2 ) == 0x01)))) { /* In slack mode, [Uninitialized] object */ /* will be converted to Integer 0, thus no */ /* exception caused by implicit source */ /* conversion. */ If (CH03 (Arg0, Z125, __LINE__, 0x00, Arg2)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf /* Exception is expected */ (!CH06 (Arg0, 0x1E, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z125, __LINE__, 0x00, Arg2)) { /* Processing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ M006 (Concatenate (Arg0, "-m006"), RefOf (Local2), Arg2, Arg3, Arg4, Local0) M006 (Concatenate (Arg0, "-m006"), RefOf (Local1), Arg2, Arg3, 0x02, Local0) } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* passed by a reference as an argument of the Method in which it is used */ /* as an immediate operand in Increment/Decrement operators */ /* m00b(, , , , */ /* , ) */ Method (M00B, 6, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) Method (M100, 1, NotSerialized) { Arg0++ } Method (M101, 1, NotSerialized) { Arg0-- } Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Target save type of Increment/Decrement operators is 0 */ /* (Target should take a type of Integer) */ Local0 = 0x00 If ((Arg3 == 0x05)) { /* Field Unit Source/Target */ Local3 = RefOf (FLU0) } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source/Target */ Local3 = RefOf (BFL0) } Else { Local3 = RefOf (SRC0) } /* Prepare Source of specified type */ If (M004 (Concatenate (Arg0, "-m004"), Arg3, Local3)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Use a reference to Source Object in the Operator */ If ((Arg4 == 0x00)) { /* Increment */ M100 (Local3) } ElseIf ((Arg4 == 0x01)) { /* Decrement */ M101 (Local3) } Else { /* Unexpected Kind of Op (0 - Increment, 1 - Decrement) */ ERR (Concatenate (Arg0, TERR), Z125, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (!CH06 (Arg0, 0x22, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z125, __LINE__, 0x00, Arg2)) { /* Processing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ M006 (Concatenate (Arg0, "-m006"), Local3, Arg2, Arg3, Arg4, Local0) } Return (0x00) } Name (LPC0, 0x01) Name (LPN1, 0x11) Name (LPC1, 0x00) If ((Arg0 == 0x00)) { Concatenate (TS, "-Inc", TS) /* \M692.TS__ */ } Else { Concatenate (TS, "-Dec", TS) /* \M692.TS__ */ } If (Arg1) { Concatenate (TS, "-Exc", TS) /* \M692.TS__ */ } SRMT (TS) /* Initialize statistics */ M001 () If ((Arg0 > 0x01)) { /* Unexpected Kind of Op (0 - Increment, 1 - Decrement) */ ERR (Concatenate (TS, TERR), Z125, __LINE__, 0x00, 0x00, Arg0, 0x00) Return (0x01) } /* Enumerate Result types */ While (LPN1) { If ((DerefOf (B677 [LPC1]) && DerefOf (B671 [LPC1]))) { /* Not invalid type of the result Object */ /* Determine Target type */ LPC0 = LPC1 /* \M692.LPC1 */ If (!Y501) { /* The question: should Increment/Decrement save the Target type? */ If (!DerefOf (B678 [LPC0])) { /* Not fixed type, Target type is Integer */ LPC0 = 0x01 } } If (Arg1) { /* Skip cases without exceptional conditions */ If (DerefOf (B67B [LPC1])) { LPN1-- LPC1++ Continue } } ElseIf /* Skip cases with exceptional conditions */ (!DerefOf (B67B [LPC1])) { LPN1-- LPC1++ Continue } /* Named Source */ If ((LPC1 != C008)) { /* Named can not be set up to Uninitialized */ M008 (Concatenate (TS, "-m008"), 0x00, LPC0, LPC1, Arg0, Arg1) } /* LocalX Source */ If (!DerefOf (B678 [LPC1])) { /* LocalX can not be set up to Fixed types */ M009 (Concatenate (TS, "-m009"), 0x00, LPC0, LPC1, Arg0, Arg1) M00A (Concatenate (TS, "-m00a"), 0x00, LPC0, LPC1, Arg0, Arg1) } /* Reference to Named */ If (Y367) { If ((LPC1 != C008)) { /* Named can not be set up to Uninitialized */ M00B (Concatenate (TS, "-m00b"), 0x00, LPC0, LPC1, Arg0, Arg1) } } } LPN1-- LPC1++ } /* Output statistics */ M002 (Concatenate ("Result Object processing with ", DerefOf (PAC4 [Arg0]))) Return (0x00) } /* Run-method */ Method (RES2, 0, NotSerialized) { Debug = "TEST: RES2, Result Object processing on Increment/Decrement" /* Increment */ M692 (0x00, 0x00) /* Decrement */ M692 (0x01, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rindecrement/MAIN.asl0000700000175000017500000000432314773714155032647 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("rindecrement", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/result/common/rcommon.asl") Include ("../../../../../../runtime/collections/complex/result/tests/rindecrement/rindecrement.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/result/tests/rindecrement/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rindecrement/Makefile0000700000175000017500000000021614773714155033057 0ustar ivanhuivanhu# rindecrement AMLMOD= rindecrement COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 -vx 6142 TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rexplicitconv/0000700000175000017500000000000014773714155031627 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rexplicitconv/RUN.asl0000700000175000017500000000365114773714155033004 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Result Object optional storing in the explicit conversion operators", TCLC, 0x11, W011)) { RES3 () } FTTT () ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rexplicitconv/rexplicitconv.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rexplicitconv/rexplici0000700000175000017500000022616614773714155033411 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check Result Object processing on optional storing * in the explicit conversion operators */ Name (Z126, 0x7E) /* m693(, , */ /* , , ) */ Method (M693, 5, Serialized) { Name (TS, "m693") /* - choose a type of the Object to store into: = Uninitialized = Integer = String = Buffer = Package ... - choose a value of the Object to store into - choose kind of the Object to store into: = Named Object = Method LocalX Object - determine the destination Object to store into: it should exist and be initialized with the chosen value (Dst0) - choose a way to obtain some result object (Expr ~ Result Object returned by any Explicit conversion Operator (Op)): = ToInteger = ToBCD = FromBCD = ToString = ToHexString = ToDecimalString = ToBuffer - choose storing expression: = Store(Op(Src0, ...), Dst0) = CopyObject(Op(Src0, ...), Dst0) = Op(Src0, ..., Dst0) - the type of the result Object depend on the Operator - choose specific source objects to obtain the result Object of the specified type: it should exist and be initialized (Src0, ...) - choose a benchmark value according to a storing expression, chosen source objects, the value of the target object and relevant result conversion rule (if any) - Bval - check that the destination Object Dst0 is properly initialized - perform storing expression: Store(Expr(Src0, ...), Dst0) CopyObject(Expr(Src0, ...), Dst0) Op(Expr(Src0, ...), Dst0) - check that the benchmark value Bval is equal to the updated destination Object Dst0: - check that the source objects are not updated: - update the destination Object again and check that the source objects are not updated */ /* Object-initializers are used either with Source or Target */ /* (names ended by 0 and 1 respectively) */ /* Integer */ Name (INT0, 0xFEDCBA9876543210) Name (INT1, 0xFEDCBA9876543211) /* String */ Name (STR0, "source string") Name (STR1, "target string") /* Buffer */ Name (BUF0, Buffer (0x09) { /* 0000 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0008 */ 0x01 // . }) Name (BUF1, Buffer (0x11) { 0xC3 // . }) /* Base of Buffer Fields */ Name (BUFZ, Buffer (0x14){}) Name (PAC1, Package (0x01) { "target package" }) /* Device */ Device (DEV1) { Name (S000, "DEV1") } /* Event */ Event (EVE1) /* Method */ Name (MM01, "ff1Y") /* Value, returned from MMMY */ Name (MMM1, 0x00) /* Method as Target Object */ Method (MMMY, 0, NotSerialized) { Return (MM01) /* \M693.MM01 */ } /* Mutex */ Mutex (MTX1, 0x00) If (Y361) { /* Operation Region */ OperationRegion (OPR0, SystemMemory, 0x00, 0x14) OperationRegion (OPR1, SystemMemory, 0x00, 0x14) } /* Power Resource */ PowerResource (PWR1, 0x00, 0x0000) { Name (S000, "PWR1") } /* Processor */ Processor (CPU1, 0x00, 0xFFFFFFFF, 0x00) { Name (S000, "CPU1") } /* Thermal Zone */ ThermalZone (TZN1) { Name (S000, "TZN1") } /* Reference */ Name (REF0, Package (0x01){}) Name (REF1, Package (0x01){}) /* Data to gather statistics */ Name (STCS, 0x00) Name (INDM, 0xFF) Name (PAC2, Package (0x01){}) Name (IND2, 0x00) Name (PAC3, Package (0x01){}) Name (IND3, 0x00) Name (PAC4, Package (0x03) { "Store", "Copyobject", "Optional" }) Name (TERR, "-test error") /* Update statistics */ /* m000(, , , ) */ Method (M000, 4, NotSerialized) { If ((Arg0 == 0x02)) { If ((IND2 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC2 [IND2]) IND2++ } } ElseIf ((Arg0 == 0x03)) { If ((IND3 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC3 [IND3]) IND3++ } } } /* Initialize statistics */ Method (M001, 0, NotSerialized) { If (STCS) { PAC2 = Package (0xFF){} IND2 = 0x00 PAC3 = Package (0xFF){} IND3 = 0x00 } } /* Output statistics */ Method (M002, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) If (STCS) { Debug = Arg0 If (IND2) { Debug = "Run-time exceptions:" Debug = IND2 /* \M693.IND2 */ Debug = "Types:" LPN0 = IND2 /* \M693.IND2 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC2 [LPC0]) LPN0-- LPC0++ } } If (IND3) { Debug = "Type mismatch:" Debug = IND3 /* \M693.IND3 */ LPN0 = IND3 /* \M693.IND3 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC3 [LPC0]) LPN0-- LPC0++ } } } } /* Prepare Target of specified type */ Method (M003, 4, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { /* Only check */ } Case (0x01) { CopyObject (DerefOf (Arg3), INT1) /* \M693.INT1 */ CopyObject (INT1, Arg2) } Case (0x02) { CopyObject (DerefOf (Arg3), STR1) /* \M693.STR1 */ CopyObject (STR1, Arg2) } Case (0x03) { CopyObject (DerefOf (Arg3), BUF1) /* \M693.BUF1 */ Local0 = SizeOf (BUF1) If ((Local0 != 0x11)) { ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Local0, 0x11) Return (0x01) } CopyObject (BUF1, Arg2) } Case (0x04) { CopyObject (DerefOf (Arg3), PAC1) /* \M693.PAC1 */ CopyObject (PAC1, Arg2) } Case (0x05) { /* Check only */ } Case (0x06) { CopyObject (DEV1, Arg2) } Case (0x07) { CopyObject (EVE1, Arg2) } Case (0x08) { CopyObject (DerefOf (RefOf (MMMY)), MMM1) /* \M693.MMM1 */ CopyObject (DerefOf (RefOf (MMM1)), Arg2) } Case (0x09) { CopyObject (MTX1, Arg2) } Case (0x0A) { CopyObject (OPR1, Arg2) } Case (0x0B) { CopyObject (PWR1, Arg2) } Case (0x0C) { CopyObject (CPU1, Arg2) } Case (0x0D) { CopyObject (TZN1, Arg2) } Case (0x0E) { /* Check only */ } Case (0x11) { CopyObject (RefOf (REF0), REF1) /* \M693.REF1 */ /*if (y522) { */ CopyObject (REF1, Arg2) /*} else { */ /* CopyObject(DeRefof(REF1), arg2) */ /*} */ } /* Unexpected Target Type */ Default { ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If (CH03 (Arg0, Z126, __LINE__, 0x00, 0x00)) { /*Exception during preparing of Target Object */ Return (0x01) } Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Target can not be set up */ ERR (Arg0, Z126, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Return (0x00) } /* Prepare Source of specified type */ Method (M004, 4, Serialized) { Switch (ToInteger (Arg1)) { Case (0x01) { CopyObject (DerefOf (Arg3), INT0) /* \M693.INT0 */ CopyObject (INT0, Arg2) } Case (0x02) { CopyObject (DerefOf (Arg3), STR0) /* \M693.STR0 */ CopyObject (STR0, Arg2) } Case (0x03) { If (Y136) { CopyObject (DerefOf (Arg3), BUF0) /* \M693.BUF0 */ } Else { M687 (DerefOf (Arg3), RefOf (BUF0)) } CopyObject (BUF0, Arg2) } /* Unexpected Source Type */ Default { ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If (CH03 (Arg0, Z126, __LINE__, 0x00, 0x00)) { /* Exception during preparing of Source Object */ Return (0x01) } Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Source can not be set up */ ERR (Arg0, Z126, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Return (0x00) } /* Check Source Object type is not corrupted after storing, */ /* for the computational data types verify its value against */ /* the Object-initializer value */ Method (M005, 4, Serialized) { Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Source object is corrupted */ ERR (Arg0, Z126, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Switch (ToInteger (Arg1)) { Case (0x01) { Local0 = ObjectType (INT0) } Case (0x02) { Local0 = ObjectType (STR0) } Case (0x03) { Local0 = ObjectType (BUF0) } /* Unexpected Result Type */ Default { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If ((Local0 != Arg1)) { /* Mismatch of Source Type against specified one */ ERR (Arg0, Z126, __LINE__, 0x00, 0x00, Local0, Arg1) If (STCS) { M000 (0x03, 0x01000000, Local0, Arg0) } Return (0x01) } Else { /* Check equality of the Source value to the Object-initializer one */ Switch (ToInteger (Arg1)) { Case (0x01) { If ((INT0 != DerefOf (Arg3))) { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, INT0, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != INT0)) { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, DerefOf (Arg2), INT0) Return (0x01) } } Case (0x02) { If ((STR0 != DerefOf (Arg3))) { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, STR0, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != STR0)) { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, DerefOf (Arg2), STR0) Return (0x01) } } Case (0x03) { If ((BUF0 != DerefOf (Arg3))) { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, BUF0, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != BUF0)) { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, DerefOf (Arg2), BUF0) Return (0x01) } } } } Return (0x00) } /* Check Target Object to have the expected type and value */ /* m006(, , , , */ /* , , ) */ Method (M006, 7, Serialized) { Name (MMM2, 0x00) /* The auxiliary Object to invoke Method */ Local2 = ObjectType (Arg1) If ((Local2 != Arg2)) { If (STCS) { M000 (0x03, 0x00010000, Arg2, Local2) } } If (M686 (Arg5, Arg2, Arg3)) { /* Target must save type */ If ((Local2 != Arg2)) { /* Types mismatch Target/Target on storing */ If ((Arg2 == C016)) { If (X170) { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, Local2, Arg2) } } Else { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, Local2, Arg2) } If (STCS) { M000 (0x03, 0x0100, Arg2, Local2) } Return (0x01) } } ElseIf /* Target must accept type of the Result Object */ ((Local2 != Arg3)) { If ((M684 (Arg3) != 0x01)) { /* Types mismatch Result/Target on storing */ ERR (Arg0, Z126, __LINE__, 0x00, 0x00, Local2, Arg3) Return (0x01) } ElseIf ((Local2 != 0x03)) { /* Types mismatch Result/Target on storing */ /* Test fixed type Objects are converted to Buffer */ ERR (Arg0, Z126, __LINE__, 0x00, 0x00, Local2, 0x03) Return (0x01) } If (STCS) { M000 (0x03, 0x0100, Arg3, Local2) } } /* Retrieve the benchmark value */ If (M686 (Arg5, Arg2, Arg3)) { /* Save type of Target */ /* Retrieve the benchmark value */ Local7 = DerefOf (DerefOf (Arg6 [0x04]) [Arg2]) } Else { Local7 = DerefOf (Arg6 [0x03]) } If ((DerefOf (Arg1) != Local7)) { If (((Arg2 == C00B) && (Arg3 == C00B))) { If (X194) { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, DerefOf (Arg1), Local7) } } Else { ERR (Arg0, Z126, __LINE__, 0x00, 0x00, DerefOf (Arg1), Local7) } Return (0x01) } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* on immediate storing to a Target Named Object of the specified type */ /* m008(, , , , */ /* , , ) */ Method (M008, 7, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) /* Target Named Object */ Name (DST0, 0x00) /* Retrieve index of the verified Explicit conversion Operator */ Local6 = DerefOf (Arg6 [0x00]) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Local6, 0x00, 0x02), Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02) ))), Arg0) If (STCS) { Debug = Arg0 } /* Prepare Source of specified type and value */ Store (Arg6 [0x01], Local7) If (M004 (Concatenate (Arg0, "-m004"), Arg3, RefOf (SRC0), Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Prepare Target of specified type */ Store (DerefOf (Arg6 [0x02]) [Arg2], Local7) If ((Arg2 == 0x05)) { /* Field Unit Target */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLUX, 69, FLU1, 69 } Local1 = RefOf (FLU1) } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ CreateField (BUFZ, 0x50, 0x45, BFL1) Local1 = RefOf (BFL1) } Else { Local1 = RefOf (DST0) } If (M003 (Concatenate (Arg0, "-m003"), Arg2, Local1, Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } /* Use a Source Object to immediately store into the Target */ If ((Arg2 == 0x05)) { /* Field Unit Target */ If ((Arg4 == 0x00)) { /* Store */ Switch (ToInteger (Local6)) { Case (0x00) { FLU1 = ToInteger (SRC0) } Case (0x01) { FLU1 = ToBCD (SRC0) } Case (0x02) { FLU1 = FromBCD (SRC0) } Case (0x03) { FLU1 = ToString (SRC0, Ones) } Case (0x04) { FLU1 = ToHexString (SRC0) } Case (0x05) { FLU1 = ToDecimalString (SRC0) } Case (0x06) { FLU1 = ToBuffer (SRC0) } } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ Switch (ToInteger (Local6)) { Case (0x00) { CopyObject (ToInteger (SRC0), FLU1) /* \M693.M008.FLU1 */ } Case (0x01) { CopyObject (ToBCD (SRC0), FLU1) /* \M693.M008.FLU1 */ } Case (0x02) { CopyObject (FromBCD (SRC0), FLU1) /* \M693.M008.FLU1 */ } Case (0x03) { CopyObject (ToString (SRC0, Ones), FLU1) /* \M693.M008.FLU1 */ } Case (0x04) { CopyObject (ToHexString (SRC0), FLU1) /* \M693.M008.FLU1 */ } Case (0x05) { CopyObject (ToDecimalString (SRC0), FLU1) /* \M693.M008.FLU1 */ } Case (0x06) { CopyObject (ToBuffer (SRC0), FLU1) /* \M693.M008.FLU1 */ } } } ElseIf ((Arg4 == 0x02)) { /* Optional storing */ Switch (ToInteger (Local6)) { Case (0x00) { ToInteger (SRC0, FLU1) /* \M693.M008.FLU1 */ } Case (0x01) { ToBCD (SRC0, FLU1) /* \M693.M008.FLU1 */ } Case (0x02) { FromBCD (SRC0, FLU1) /* \M693.M008.FLU1 */ } Case (0x03) { ToString (SRC0, Ones, FLU1) /* \M693.M008.FLU1 */ } Case (0x04) { ToHexString (SRC0, FLU1) /* \M693.M008.FLU1 */ } Case (0x05) { ToDecimalString (SRC0, FLU1) /* \M693.M008.FLU1 */ } Case (0x06) { ToBuffer (SRC0, FLU1) /* \M693.M008.FLU1 */ } } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ If ((Arg4 == 0x00)) { /* Store */ Switch (ToInteger (Local6)) { Case (0x00) { BFL1 = ToInteger (SRC0) } Case (0x01) { BFL1 = ToBCD (SRC0) } Case (0x02) { BFL1 = FromBCD (SRC0) } Case (0x03) { BFL1 = ToString (SRC0, Ones) } Case (0x04) { BFL1 = ToHexString (SRC0) } Case (0x05) { BFL1 = ToDecimalString (SRC0) } Case (0x06) { BFL1 = ToBuffer (SRC0) } } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ Switch (ToInteger (Local6)) { Case (0x00) { CopyObject (ToInteger (SRC0), BFL1) /* \M693.M008.BFL1 */ } Case (0x01) { CopyObject (ToBCD (SRC0), BFL1) /* \M693.M008.BFL1 */ } Case (0x02) { CopyObject (FromBCD (SRC0), BFL1) /* \M693.M008.BFL1 */ } Case (0x03) { CopyObject (ToString (SRC0, Ones), BFL1) /* \M693.M008.BFL1 */ } Case (0x04) { CopyObject (ToHexString (SRC0), BFL1) /* \M693.M008.BFL1 */ } Case (0x05) { CopyObject (ToDecimalString (SRC0), BFL1) /* \M693.M008.BFL1 */ } Case (0x06) { CopyObject (ToBuffer (SRC0), BFL1) /* \M693.M008.BFL1 */ } } } ElseIf ((Arg4 == 0x02)) { /* Optional storing */ Switch (ToInteger (Local6)) { Case (0x00) { ToInteger (SRC0, BFL1) /* \M693.M008.BFL1 */ } Case (0x01) { ToBCD (SRC0, BFL1) /* \M693.M008.BFL1 */ } Case (0x02) { FromBCD (SRC0, BFL1) /* \M693.M008.BFL1 */ } Case (0x03) { ToString (SRC0, Ones, BFL1) /* \M693.M008.BFL1 */ } Case (0x04) { ToHexString (SRC0, BFL1) /* \M693.M008.BFL1 */ } Case (0x05) { ToDecimalString (SRC0, BFL1) /* \M693.M008.BFL1 */ } Case (0x06) { ToBuffer (SRC0, BFL1) /* \M693.M008.BFL1 */ } } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg4 == 0x00)) { /* Store */ Switch (ToInteger (Local6)) { Case (0x00) { DST0 = ToInteger (SRC0) } Case (0x01) { DST0 = ToBCD (SRC0) } Case (0x02) { DST0 = FromBCD (SRC0) } Case (0x03) { DST0 = ToString (SRC0, Ones) } Case (0x04) { DST0 = ToHexString (SRC0) } Case (0x05) { DST0 = ToDecimalString (SRC0) } Case (0x06) { DST0 = ToBuffer (SRC0) } } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ Switch (ToInteger (Local6)) { Case (0x00) { CopyObject (ToInteger (SRC0), DST0) /* \M693.M008.DST0 */ } Case (0x01) { CopyObject (ToBCD (SRC0), DST0) /* \M693.M008.DST0 */ } Case (0x02) { CopyObject (FromBCD (SRC0), DST0) /* \M693.M008.DST0 */ } Case (0x03) { CopyObject (ToString (SRC0, Ones), DST0) /* \M693.M008.DST0 */ } Case (0x04) { CopyObject (ToHexString (SRC0), DST0) /* \M693.M008.DST0 */ } Case (0x05) { CopyObject (ToDecimalString (SRC0), DST0) /* \M693.M008.DST0 */ } Case (0x06) { CopyObject (ToBuffer (SRC0), DST0) /* \M693.M008.DST0 */ } } } ElseIf ((Arg4 == 0x02)) { /* Optional storing */ Switch (ToInteger (Local6)) { Case (0x00) { ToInteger (SRC0, DST0) /* \M693.M008.DST0 */ } Case (0x01) { ToBCD (SRC0, DST0) /* \M693.M008.DST0 */ } Case (0x02) { FromBCD (SRC0, DST0) /* \M693.M008.DST0 */ } Case (0x03) { ToString (SRC0, Ones, DST0) /* \M693.M008.DST0 */ } Case (0x04) { ToHexString (SRC0, DST0) /* \M693.M008.DST0 */ } Case (0x05) { ToDecimalString (SRC0, DST0) /* \M693.M008.DST0 */ } Case (0x06) { ToBuffer (SRC0, DST0) /* \M693.M008.DST0 */ } } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (!CH06 (Arg0, 0x1A, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z126, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to Named of Store operator is 0 */ If ((Arg4 == 0x00)) { Local0 = 0x00 } Else { Local0 = 0x02 } M006 (Concatenate (Arg0, "-m006"), Local1, Arg2, Arg3, Arg4, Local0, Arg6) } /* Check Source Object type is not corrupted after storing */ Store (Arg6 [0x01], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (SRC0), Local7)) { If (STCS) { Debug = "m008, Source Object has been corrupted during storing" } } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* on immediate storing to a Target LocalX Object of the specified type */ /* m009(, , , , */ /* , , ) */ Method (M009, 7, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) /* Target Named Object: Local4 */ /* Retrieve index of the verified Explicit conversion Operator */ Local6 = DerefOf (Arg6 [0x00]) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Local6, 0x00, 0x02), Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02) ))), Arg0) If (STCS) { Debug = Arg0 } /* Prepare Source of specified type and value */ Store (Arg6 [0x01], Local7) If (M004 (Concatenate (Arg0, "-m004"), Arg3, RefOf (SRC0), Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Prepare Target of specified type */ Store (DerefOf (Arg6 [0x02]) [Arg2], Local7) If (M003 (Concatenate (Arg0, "-m003"), Arg2, RefOf (Local4), Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } /* Use a Source Object to immediately store into the Target */ If ((Arg4 == 0x00)) { /* Store */ Switch (ToInteger (Local6)) { Case (0x00) { Local4 = ToInteger (SRC0) } Case (0x01) { Local4 = ToBCD (SRC0) } Case (0x02) { Local4 = FromBCD (SRC0) } Case (0x03) { Local4 = ToString (SRC0, Ones) } Case (0x04) { Local4 = ToHexString (SRC0) } Case (0x05) { Local4 = ToDecimalString (SRC0) } Case (0x06) { Local4 = ToBuffer (SRC0) } } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ Switch (ToInteger (Local6)) { Case (0x00) { CopyObject (ToInteger (SRC0), Local4) } Case (0x01) { CopyObject (ToBCD (SRC0), Local4) } Case (0x02) { CopyObject (FromBCD (SRC0), Local4) } Case (0x03) { CopyObject (ToString (SRC0, Ones), Local4) } Case (0x04) { CopyObject (ToHexString (SRC0), Local4) } Case (0x05) { CopyObject (ToDecimalString (SRC0), Local4) } Case (0x06) { CopyObject (ToBuffer (SRC0), Local4) } } } ElseIf ((Arg4 == 0x02)) { /* Optional storing */ Switch (ToInteger (Local6)) { Case (0x00) { ToInteger (SRC0, Local4) } Case (0x01) { ToBCD (SRC0, Local4) } Case (0x02) { FromBCD (SRC0, Local4) } Case (0x03) { ToString (SRC0, Ones, Local4) } Case (0x04) { ToHexString (SRC0, Local4) } Case (0x05) { ToDecimalString (SRC0, Local4) } Case (0x06) { ToBuffer (SRC0, Local4) } } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z126, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (!CH06 (Arg0, 0x1F, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z126, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to LocalX is 1 */ Local0 = 0x01 M006 (Concatenate (Arg0, "-m006"), RefOf (Local4), Arg2, Arg3, Arg4, Local0, Arg6) } /* Check Source Object type is not corrupted after storing */ Store (Arg6 [0x01], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (SRC0), Local7)) { If (STCS) { Debug = "m009, Source Object has been corrupted during storing" } } Return (0x00) } /* Test data packages */ /* ToInteger */ Name (P032, Package (0x11) { /* index of the Operator */ 0x00, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00 } }) Name (P064, Package (0x11) { /* index of the Operator */ 0x00, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00 } }) /* ToBCD */ Name (P132, Package (0x11) { /* index of the Operator */ 0x01, /* SRC0 initial value */ 0x055F2CC0, /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x90123456, /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0x90123456, "90123456", Buffer (0x11) { 0x56, 0x34, 0x12, 0x90 // V4.. }, 0x00, Buffer (0x09) { 0x56, 0x34, 0x12, 0x90 // V4.. }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x56, 0x34, 0x12, 0x90 // V4.. }, 0x00, 0x00 } }) Name (P164, Package (0x11) { /* index of the Operator */ 0x01, /* SRC0 initial value */ 0x000D76162EE9EC35, /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x3789012345678901, /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0x3789012345678901, "3789012345678901", Buffer (0x11) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }, 0x00, Buffer (0x09) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }, 0x00, 0x00 } }) /* FromBCD */ Name (P232, Package (0x11) { /* index of the Operator */ 0x02, /* SRC0 initial value */ 0x90123456, /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x055F2CC0, /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0x055F2CC0, "055F2CC0", Buffer (0x11) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }, 0x00, Buffer (0x09) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }, 0x00, 0x00 } }) Name (P264, Package (0x11) { /* index of the Operator */ 0x02, /* SRC0 initial value */ 0x3789012345678901, /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ 0x000D76162EE9EC35, /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0x000D76162EE9EC35, "000D76162EE9EC35", Buffer (0x11) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }, 0x00, Buffer (0x09) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }, 0x00, 0x00 } }) /* ToString */ Name (P332, Package (0x11) { /* index of the Operator */ 0x03, /* SRC0 initial value */ "fedcba98 string", /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba98 string", /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0xFEDCBA98, "fedcba98 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x20, 0x73, 0x74, 0x72, 0x69, 0x6E, 0x67 // string }, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00 } }) Name (P364, Package (0x11) { /* index of the Operator */ 0x03, /* SRC0 initial value */ "fedcba9876543210 string", /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba9876543210 string", /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0xFEDCBA9876543210, "fedcba9876543210 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x30, // 76543210 /* 0010 */ 0x20 // }, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00 } }) /* ToHexString */ Name (P432, Package (0x11) { /* index of the Operator */ 0x04, /* SRC0 initial value */ "fedcba98 string", /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba98 string", /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0xFEDCBA98, "fedcba98 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x20, 0x73, 0x74, 0x72, 0x69, 0x6E, 0x67 // string }, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00 } }) Name (P464, Package (0x11) { /* index of the Operator */ 0x04, /* SRC0 initial value */ "fedcba9876543210 string", /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba9876543210 string", /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0xFEDCBA9876543210, "fedcba9876543210 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x30, // 76543210 /* 0010 */ 0x20 // }, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00 } }) /* ToDecimalString */ Name (P532, Package (0x11) { /* index of the Operator */ 0x05, /* SRC0 initial value */ "fedcba98 string", /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba98 string", /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0xFEDCBA98, "fedcba98 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x20, 0x73, 0x74, 0x72, 0x69, 0x6E, 0x67 // string }, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00 } }) Name (P564, Package (0x11) { /* index of the Operator */ 0x05, /* SRC0 initial value */ "fedcba9876543210 string", /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ "fedcba9876543210 string", /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0xFEDCBA9876543210, "fedcba9876543210 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x30, // 76543210 /* 0010 */ 0x20 // }, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00 } }) /* ToBuffer */ Name (P632, Package (0x11) { /* index of the Operator */ 0x06, /* SRC0 initial value */ Buffer (0x07) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ Buffer (0x07) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0x04050607, "07 06 05 04 03 02 01", Buffer (0x11) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, 0x00, Buffer (0x09) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, 0x00, 0x00 } }) Name (P664, Package (0x11) { /* index of the Operator */ 0x06, /* SRC0 initial value */ Buffer (0x07) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, /* Target Objects initial values */ Package (0x11) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { 0xC3 // . }, Package (0x01) { "target package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, /* Benchmark Result object value */ Buffer (0x07) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, /* Benchmark Result object converted to Target type values */ Package (0x11) { 0x00, 0x0001020304050607, "07 06 05 04 03 02 01", Buffer (0x11) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, 0x00, Buffer (0x09) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 // ....... }, 0x00, 0x00 } }) Name (P320, Package (0x07) { P032, P132, P232, P332, P432, P532, P632 }) Name (P640, Package (0x07) { P064, P164, P264, P364, P464, P564, P664 }) Name (SCL0, Buffer (0x07) { 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x03 // ....... }) Name (LPN0, 0x11) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) If ((Arg0 == 0x00)) { Concatenate (TS, "-S", TS) /* \M693.TS__ */ } ElseIf ((Arg0 == 0x01)) { Concatenate (TS, "-C", TS) /* \M693.TS__ */ } ElseIf ((Arg0 == 0x02)) { Concatenate (TS, "-O", TS) /* \M693.TS__ */ } If ((Arg4 == 0x00)) { Concatenate (TS, "-N", TS) /* \M693.TS__ */ } Else { Concatenate (TS, "-L", TS) /* \M693.TS__ */ } If (Arg1) { Concatenate (TS, "-Exc", TS) /* \M693.TS__ */ } SRMT (TS) /* Initialize statistics */ M001 () If ((Arg0 > 0x02)) { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (TS, TERR), Z126, __LINE__, 0x00, 0x00, Arg0, 0x00) Return (0x01) } If ((Arg4 > 0x01)) { /* Unexpected Kind of Source-Target pair */ ERR (Concatenate (TS, TERR), Z126, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } /* Flags of Store from and to Named to check */ /* exceptional conditions on storing */ If ((Arg0 != 0x00)) { Local0 = 0x00 Local1 = 0x00 } Else { Local0 = 0x01 Local1 = (Arg4 == 0x00) } /* Enumerate Target types */ While (LPN0) { If ((DerefOf (B670 [LPC0]) && DerefOf (Arg2 [LPC0]))) { /* Not invalid type of the Target Object to store in */ LPN1 = 0x07 LPC1 = 0x00 /* Enumerate the Explicit conversion operators */ /* which determine expected Result types */ While (LPN1) { /* Choose expected Result type */ If (Y900) { Local2 = DerefOf (Index (Buffer (0x07) { 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x03 // ....... }, LPC1)) } Else { Local2 = DerefOf (SCL0 [LPC1]) } If ((DerefOf (B671 [Local2]) && DerefOf (Arg3 [Local2]))) { /* Not invalid type of the result Object to be stored */ If (F64) { Local3 = DerefOf (P640 [LPC1]) } Else { Local3 = DerefOf (P320 [LPC1]) } If (Arg1) { /* Skip cases without exceptional conditions */ If (!M685 ((Arg0 != 0x00), LPC0, Local2, Local0, Local1)) { LPN1-- LPC1++ Continue } } ElseIf /* Skip cases with exceptional conditions */ (M685 ((Arg0 != 0x00), LPC0, Local2, Local0, Local1)) { LPN1-- LPC1++ Continue } If ((Arg4 == 0x00)) { /* Named Source and Target */ M008 (Concatenate (TS, "-m008"), 0x00, LPC0, Local2, Arg0, Arg1, Local3) } ElseIf ((Arg4 == 0x01)) { /* LocalX Target */ M009 (Concatenate (TS, "-m009"), 0x00, LPC0, Local2, Arg0, Arg1, Local3) } } LPN1-- LPC1++ } } LPN0-- LPC0++ } /* Output statistics */ M002 (Concatenate ("Storing of the result of Explicit conversion to Named Object with ", DerefOf (PAC4 [Arg0]))) Return (0x00) } /* Run-method */ Method (RES3, 0, NotSerialized) { Debug = "TEST: RES3, Result Object optional storing in the explicit conversion operators" /* Named Source and Target */ /* Store the result of the explicit conversion operators */ M693 (0x00, 0x00, B676, B676, 0x00) /* CopyObject the result of the explicit conversion operators */ M693 (0x01, 0x00, B676, B676, 0x00) /* Optional storing of the result of the explicit conversion operators */ M693 (0x02, 0x00, B676, B676, 0x00) /* LocalX Target */ /* Store the result of the explicit conversion operators */ M693 (0x00, 0x00, B677, B676, 0x01) /* CopyObject the result of the explicit conversion operators */ M693 (0x01, 0x00, B677, B676, 0x01) /* Optional storing of the result of the explicit conversion operators */ M693 (0x02, 0x00, B677, B676, 0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rexplicitconv/MAIN.asl0000700000175000017500000000432714773714155033065 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("rexplicitconv", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/result/common/rcommon.asl") Include ("../../../../../../runtime/collections/complex/result/tests/rexplicitconv/rexplicitconv.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/result/tests/rexplicitconv/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/rexplicitconv/Makefile0000700000175000017500000000022014773714155033264 0ustar ivanhuivanhu# rexplicitconv AMLMOD= rexplicitconv COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 -vx 6142 TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/Makefile0000700000175000017500000000024614773714155030403 0ustar ivanhuivanhu# tests MDIRS = \ rconversion \ rcopyobject \ rexplicitconv \ rindecrement \ roptional \ rstore # FULL TOP= ../../../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/FULL/0000700000175000017500000000000014773714155027500 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/FULL/DECL.asl0000700000175000017500000000416214773714155030716 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include("../../../../../../runtime/collections/complex/result/tests/rconversion/rconversion.asl") Include("../../../../../../runtime/collections/complex/result/tests/rstore/rstore.asl") Include("../../../../../../runtime/collections/complex/result/tests/rcopyobject/rcopyobject.asl") Include("../../../../../../runtime/collections/complex/result/tests/rindecrement/rindecrement.asl") Include("../../../../../../runtime/collections/complex/result/tests/rexplicitconv/rexplicitconv.asl") Include("../../../../../../runtime/collections/complex/result/tests/roptional/roptional.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/FULL/RUN.asl0000700000175000017500000000417714773714155030661 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Store("COLLECTION: all tests of Result object", Debug) //Include("../../../../../../runtime/collections/complex/result/tests/rconversion/RUN.asl") Include("../../../../../../runtime/collections/complex/result/tests/rstore/RUN.asl") Include("../../../../../../runtime/collections/complex/result/tests/rcopyobject/RUN.asl") Include("../../../../../../runtime/collections/complex/result/tests/rindecrement/RUN.asl") Include("../../../../../../runtime/collections/complex/result/tests/rexplicitconv/RUN.asl") Include("../../../../../../runtime/collections/complex/result/tests/roptional/RUN.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/tests/FULL/MAIN.asl0000700000175000017500000000461214773714155030733 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "result.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../../runtime/cntl/DECL_6UP.asl") Include("../../../../../../runtime/common/operations.asl") Include("../../../../../../runtime/common/conversion/rproc.asl") Include("../../../../../../runtime/common/conversion/rtest.asl") Include("../../../../../../runtime/collections/complex/result/common/rcommon.asl") Include("../../../../../../runtime/collections/complex/result/tests/FULL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../../runtime/collections/complex/result/tests/FULL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/common/0000700000175000017500000000000014773714155027064 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/common/rcommon.asl0000700000175000017500000070022214773714155031245 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to data images */ Name (Z122, 0x7A) /* Flags of types can be used in Index Operator */ Name (B66F, Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) /* Not invalid types for testing to store in, */ /* excluded: Field Unit, Op.Region, Thermal Zone, */ /* DDB handle, Debug, Reference */ Name (B670, Buffer (0x12) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) /* Not invalid types for testing to be stored, */ /* excluded: Field Unit, Op.Region, Thermal Zone, */ /* DDB handle, Debug, Reference */ Name (B671, Buffer (0x12) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) /* Flags of types of non-Computational Data Objects */ Name (B674, Buffer (0x12) { /* 0000 */ 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, // ........ /* 0010 */ 0x01, 0x01 // .. }) /* Possible types of the Named Object */ Name (B676, Buffer (0x12) { /* 0000 */ 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // ........ /* 0010 */ 0x00, 0x01 // .. }) /* Possible types of the LocalX Object */ Name (B677, Buffer (0x12) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, // ........ /* 0010 */ 0x00, 0x01 // .. }) /* Flags of types of Fixed type Data Objects (Fields) */ Name (B678, Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) /* Flags of types of Computational Data Objects */ /* (Fields and Integer, String, Buffer) */ Name (B679, Buffer (0x12) { /* 0000 */ 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) /* Type group numbers according with the type of an Object */ Name (B67A, Buffer (0x12) { /* 0000 */ 0x00, 0x02, 0x02, 0x02, 0x03, 0x01, 0x05, 0x05, // ........ /* 0008 */ 0x04, 0x05, 0x05, 0x05, 0x05, 0x05, 0x01, 0x00, // ........ /* 0010 */ 0x00, 0x06 // .. }) /* Flags of types not causing exceptions on Increment/Decrement */ /* (~ Computational Data Objects) */ Name (B67B, Buffer (0x12) { /* 0000 */ 0x00, 0x01, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) /* Flags of types that can be verified only by ObjectType */ /* (Not Computational Data, Package and Method Objects) */ Name (B67C, Buffer (0x12) { /* 0000 */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, // ........ /* 0010 */ 0x01, 0x01 // .. }) /* Possible types of Package Elements */ Name (B67D, Buffer (0x12) { /* 0000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x01 // .. }) /* Not invalid types for Store taking into */ /* account the ACPICA exresop restriction: */ /* Needed Integer/Buffer/String/Package/Ref/Ddb */ Name (B67F, Buffer (0x12) { /* 0000 */ 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, // ........ /* 0010 */ 0x00, 0x01 // .. }) /* Testing Destination Named Objects */ /* Integers */ Name (I680, 0xA0A1A2A35F5E5D80) Name (I681, 0xA0A1A2A35F5E5D81) Name (I682, 0xA0A1A2A35F5E5D82) Name (I683, 0xA0A1A2A35F5E5D83) Name (I684, 0xA0A1A2A35F5E5D84) Name (I685, 0xA0A1A2A35F5E5D85) Name (I686, 0xA0A1A2A35F5E5D86) Name (I687, 0xA0A1A2A35F5E5D87) Name (I688, 0xA0A1A2A35F5E5D88) Name (I689, 0xA0A1A2A35F5E5D89) Name (I68A, 0xA0A1A2A35F5E5D8A) Name (I68B, 0xA0A1A2A35F5E5D8B) Name (I68C, 0xA0A1A2A35F5E5D8C) Name (I68D, 0xA0A1A2A35F5E5D8D) Name (I68E, 0xA0A1A2A35F5E5D8E) Name (I68F, 0xA0A1A2A35F5E5D8F) Name (I690, 0xA0A1A2A35F5E5D90) Name (I691, 0xA0A1A2A35F5E5D91) Name (I692, 0xA0A1A2A35F5E5D92) Name (I693, 0xA0A1A2A35F5E5D93) Name (I694, 0xA0A1A2A35F5E5D94) Name (I695, 0xA0A1A2A35F5E5D95) Name (I696, 0xA0A1A2A35F5E5D96) Name (I697, 0xA0A1A2A35F5E5D97) Name (I698, 0xA0A1A2A35F5E5D98) Name (I699, 0xA0A1A2A35F5E5D99) Name (I69A, 0xA0A1A2A35F5E5D9A) Name (I69B, 0xA0A1A2A35F5E5D9B) Name (I69C, 0xA0A1A2A35F5E5D9C) Name (I69D, 0xA0A1A2A35F5E5D9D) Name (I69E, 0xA0A1A2A35F5E5D9E) Name (I69F, 0xA0A1A2A35F5E5D9F) /* Strings */ Name (S680, "initial named string80") Name (S681, "initial named string81") Name (S682, "initial named string82") Name (S683, "initial named string83") Name (S684, "initial named string84") Name (S685, "initial named string85") Name (S686, "initial named string86") Name (S687, "initial named string87") Name (S688, "initial named string88") Name (S689, "initial named string89") Name (S68A, "initial named string8a") Name (S68B, "initial named string8b") Name (S68C, "initial named string8c") Name (S68D, "initial named string8d") Name (S68E, "initial named string8e") Name (S68F, "initial named string8f") Name (S690, "initial named string90") Name (S691, "initial named string91") Name (S692, "initial named string92") Name (S693, "initial named string93") Name (S694, "initial named string94") Name (S695, "initial named string95") Name (S696, "initial named string96") Name (S697, "initial named string97") Name (S698, "initial named string98") Name (S699, "initial named string99") Name (S69A, "initial named string9a") Name (S69B, "initial named string9b") Name (S69C, "initial named string9c") Name (S69D, "initial named string9d") Name (S69E, "initial named string9e") Name (S69F, "initial named string9f") /* Buffers */ Name (B680, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x80 // . }) Name (B681, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x81 // . }) Name (B682, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x82 // . }) Name (B683, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x83 // . }) Name (B684, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x84 // . }) Name (B685, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x85 // . }) Name (B686, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x86 // . }) Name (B687, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x87 // . }) Name (B688, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x88 // . }) Name (B689, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x89 // . }) Name (B68A, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8A // . }) Name (B68B, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8B // . }) Name (B68C, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8C // . }) Name (B68D, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8D // . }) Name (B68E, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8E // . }) Name (B68F, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x8F // . }) Name (B690, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x90 // . }) Name (B691, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x91 // . }) Name (B692, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x92 // . }) Name (B693, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x93 // . }) Name (B694, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x94 // . }) Name (B695, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x95 // . }) Name (B696, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x96 // . }) Name (B697, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x97 // . }) Name (B698, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x98 // . }) Name (B699, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x99 // . }) Name (B69A, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x9A // . }) Name (B69B, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x9B // . }) Name (B69C, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x9C // . }) Name (B69D, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x9D // . }) Name (B69E, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x9E // . }) Name (B69F, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x9F // . }) /* Packages */ Name (P680, Package (0x01) { 0x00 }) /* Buffer Fields */ Name (B675, Buffer (0x17){}) CreateField (B675, 0x00, 0x1F, BF80) CreateField (B675, 0x23, 0x3F, BF81) CreateField (B675, 0x6E, 0x45, BF82) /* Auxiliary Source Named Objects */ Name (I6E0, 0xFE7CB391D650A284) Name (I6E1, 0xFE7CB391D650A284) Name (I6E2, 0xFE7CB391D650A284) Name (I6E3, 0xFE7CB391D650A284) Name (I6E4, 0xFE7CB391D650A284) Name (I6E5, 0xFE7CB391D650A284) Name (I6E6, 0xFE7CB391D650A284) Name (I6E7, 0xFE7CB391D650A284) Name (I6E8, 0xFE7CB391D650A284) Name (I6E9, 0xFE7CB391D650A284) Name (P690, Package (0x12) { 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }, 0xFE7CB391D650A284, "FE7CB391D650A284", Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } }) Name (P691, Package (0x01){}) Name (S6E0, "FE7CB391D650A284") Name (S6E1, "FE7CB391D650A284") Name (S6E2, "FE7CB391D650A284") Name (S6E3, "FE7CB391D650A284") Name (S6E4, "FE7CB391D650A284") Name (S6E5, "FE7CB391D650A284") Name (S6E6, "FE7CB391D650A284") Name (S6E7, "FE7CB391D650A284") Name (S6E8, "FE7CB391D650A284") Name (S6E9, "FE7CB391D650A284") Name (B6E0, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B6E1, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B6E2, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B6E3, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B6E4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B6E5, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B6E6, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B6E7, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B6E8, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B6E9, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) /* Matrixes of exceptions expected during an attempt to make */ /* a copy of the Result Object by some storing operator, */ /* a raw relies to the type group of a Target Object, */ /* a column relies to the type group of a Result Object */ /* (uninitialized, fixed, other computational data types, */ /* Package, Method, others, reference) */ /* Store to Named Object */ Name (P6A0, Package (0x07) { Buffer (0x07) { 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00 // ....... }, Buffer (0x07) { 0x01, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01 // ....... }, Buffer (0x07) { 0x01, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01 // ....... }, Buffer (0x07) { 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00 // ....... }, Buffer (0x07) { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00 // ....... }, Buffer (0x07) { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00 // ....... }, Buffer (0x07) { 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00 // ....... } }) /* Store in other cases and CopyObject */ Name (P6A1, Package (0x07) { Buffer (0x07) { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x01, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01 // ....... }, Buffer (0x07) { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... } }) /* Matrixes of saving Target type storings */ /* (have sense in absence of exceptions) */ /* Store to Named Object */ Name (P6A2, Package (0x07) { Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... } }) /* Store in other cases and CopyObject */ Name (P6A3, Package (0x07) { Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... }, Buffer (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ....... } }) /* Check Result of operation on equal to Benchmark value */ /* m680(, */ /* , */ /* , */ /* , */ /* ) */ Method (M680, 5, NotSerialized) { Local0 = ObjectType (Arg3) Local1 = ObjectType (Arg4) If ((Local0 != Local1)) { ERR (Concatenate (Arg0, "-OType"), Z122, __LINE__, Arg2, 0x00, Local0, Local1) Return (0x01) } ElseIf (DerefOf (B679 [Local0])) { If ((Arg3 != Arg4)) { ERR (Arg0, Z122, __LINE__, Arg2, 0x00, Arg3, Arg4) Return (0x01) } } Return (0x00) } /* Return Indexed reference */ /* m681(, ) */ Method (M681, 2, NotSerialized) { Return (Arg0 [Arg1]) } /* Return the value of an Auxiliary Source Named Object */ /* m682(, ) */ Method (M682, 2, Serialized) { Switch (ToInteger (Arg0)) { Case (0x01) { Switch (ToInteger (Arg1)) { Case (0x00) { Return (I6E0) /* \I6E0 */ } Case (0x01) { Return (I6E1) /* \I6E1 */ } Case (0x02) { Return (I6E2) /* \I6E2 */ } Case (0x03) { Return (I6E3) /* \I6E3 */ } Case (0x04) { Return (I6E4) /* \I6E4 */ } Case (0x05) { Return (I6E5) /* \I6E5 */ } Case (0x06) { Return (I6E6) /* \I6E6 */ } Case (0x07) { Return (I6E7) /* \I6E7 */ } Case (0x08) { Return (I6E8) /* \I6E8 */ } Case (0x09) { Return (I6E9) /* \I6E9 */ } } } Case (0x02) { Switch (ToInteger (Arg1)) { Case (0x00) { Return (S6E0) /* \S6E0 */ } Case (0x01) { Return (S6E1) /* \S6E1 */ } Case (0x02) { Return (S6E2) /* \S6E2 */ } Case (0x03) { Return (S6E3) /* \S6E3 */ } Case (0x04) { Return (S6E4) /* \S6E4 */ } Case (0x05) { Return (S6E5) /* \S6E5 */ } Case (0x06) { Return (S6E6) /* \S6E6 */ } Case (0x07) { Return (S6E7) /* \S6E7 */ } Case (0x08) { Return (S6E8) /* \S6E8 */ } Case (0x09) { Return (S6E9) /* \S6E9 */ } } } Case (0x03) { Switch (ToInteger (Arg1)) { Case (0x00) { Return (B6E0) /* \B6E0 */ } Case (0x01) { Return (B6E1) /* \B6E1 */ } Case (0x02) { Return (B6E2) /* \B6E2 */ } Case (0x03) { Return (B6E3) /* \B6E3 */ } Case (0x04) { Return (B6E4) /* \B6E4 */ } Case (0x05) { Return (B6E5) /* \B6E5 */ } Case (0x06) { Return (B6E6) /* \B6E6 */ } Case (0x07) { Return (B6E7) /* \B6E7 */ } Case (0x08) { Return (B6E8) /* \B6E8 */ } Case (0x09) { Return (B6E9) /* \B6E9 */ } } } Case (0xFF) { Local0 = 0x00 } } Return (Local0) } /* Initialize the bytes of the buffer in the range of bits */ /* m683(, , , ) */ Method (M683, 4, NotSerialized) { /* First byte */ Local1 = (Arg1 / 0x08) /*Last byte */ Local2 = (((Arg1 + Arg2) - 0x01) / 0x08) Local0 = ((Local2 + 0x01) - Local1) While (Local0) { Arg0 [Local1] = Arg3 Local1++ Local0-- } } /* Return the number of the type group */ Method (M684, 1, NotSerialized) { Return (DerefOf (B67A [Arg0])) } /* Return flag of exception on storing */ /* m685(, , , */ /* , ) */ Method (M685, 5, NotSerialized) { If (Arg0) { /* CopyObject issue */ Return (DerefOf (DerefOf (P6A1 [M684 (Arg1)]) [M684 (Arg2)])) } Else { /* Store issue */ If ((Arg3 && (Arg2 == 0x08))) { /* Store Named of type Method causes invocation of the Method */ /* which returns a String in the test */ Arg2 = 0x02 } If (DerefOf (B67F [Arg2])) { /* Data can be stored */ If ((Arg4 || DerefOf (B678 [Arg1]))) { /* Store to Named or to Fixed Type */ /* Result Object Conversion issue */ Return (DerefOf (DerefOf (P6A0 [M684 (Arg1)]) [M684 (Arg2)])) } Else { Return (0x00) } } Else { Return (0x01) } } } /* Return flag of type saving on storing */ /* m686(, , ) */ Method (M686, 3, NotSerialized) { If (Arg0) { If ((Arg0 == 0x02)) { /* CopyObject to Named Object issue */ Return (DerefOf (DerefOf (P6A3 [M684 (Arg1)]) [M684 (Arg2)])) } Else { Return (0x00) } } Else { /* Store to Named Object issue */ Return (DerefOf (DerefOf (P6A2 [M684 (Arg1)]) [M684 (Arg2)])) } } /* Store the Object by the reference */ /* m687(, ) */ Method (M687, 2, NotSerialized) { Arg1 = Arg0 } /* Gathers simple statistics of Store/CopyObject operators */ /* m688() */ Method (M688, 1, Serialized) { /* Objects are used as Source */ /* Integer */ Name (INT0, 0xFEDCBA9876543210) /* String */ Name (STR0, "source string") /* Buffer */ Name (BUF0, Buffer (0x09) { /* 0000 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0008 */ 0x01 // . }) /* Base of Buffer Fields */ Name (BUFZ, Buffer (0x14){}) /* Package */ Name (PAC0, Package (0x03) { 0xFEDCBA987654321F, "test package", Buffer (0x09) { /* 0000 */ 0x13, 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, // ........ /* 0008 */ 0x0B // . } }) If (Y361) { /* Field Unit */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLU0, 69 } } /* Device */ Device (DEV0) { Name (S000, "DEV0") } /* Event */ Event (EVE0) /* Method */ Name (MM00, "ff0X") /* Value, returned from MMMX */ Method (MMM0, 0, NotSerialized) { Return (MM00) /* \M688.MM00 */ } /* Mutex */ Mutex (MTX0, 0x00) If (Y361) { /* Operation Region */ OperationRegion (OPR0, SystemMemory, 0x00, 0x14) } /* Power Resource */ PowerResource (PWR0, 0x00, 0x0000) { Name (S000, "PWR0") } /* Processor */ Processor (CPU0, 0x00, 0xFFFFFFFF, 0x00) { Name (S000, "CPU0") } /* Thermal Zone */ ThermalZone (TZN0) { Name (S000, "TZN0") } /* Buffer Field */ CreateField (BUFZ, 0x00, 0x45, BFL0) /* Data to gather statistics */ Name (STCS, 0x00) Name (INDM, 0xFF) Name (PAC2, Package (0x01){}) Name (IND2, 0x00) Name (PAC3, Package (0x01){}) Name (IND3, 0x00) /* Update statistics */ /* m000(, , , ) */ Method (M000, 4, NotSerialized) { If ((Arg0 == 0x02)) { If ((IND2 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC2 [IND2]) IND2++ } } ElseIf ((Arg0 == 0x03)) { If ((IND3 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC3 [IND3]) IND3++ } } } /* Initialize statistics */ Method (M001, 0, NotSerialized) { If (STCS) { PAC2 = Package (0xFF){} IND2 = 0x00 PAC3 = Package (0xFF){} IND3 = 0x00 } } /* Output statistics */ Method (M002, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) If (STCS) { Debug = Arg0 If (IND2) { Debug = "Run-time exceptions:" Debug = IND2 /* \M688.IND2 */ Debug = "Types:" LPN0 = IND2 /* \M688.IND2 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC2 [LPC0]) LPN0-- LPC0++ } } If (IND3) { Debug = "Type mismatch:" Debug = IND3 /* \M688.IND3 */ LPN0 = IND3 /* \M688.IND3 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC3 [LPC0]) LPN0-- LPC0++ } } } } /* Check exceptions */ Method (M003, 1, NotSerialized) { If (CH03 (Arg0, Z122, __LINE__, 0x00, 0x00)) { If (STCS) { If ((IND2 < INDM)) { PAC2 [IND2] = Arg0 IND2++ } } } } /* Check equality */ Method (M004, 3, NotSerialized) { If ((Arg0 != Arg1)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Arg0, Arg1) If (STCS) { M000 (0x03, 0x0100, Arg2, Arg1) } } } /* Gathers statistics of Store to Local */ Method (M010, 2, NotSerialized) { /* Initialize statistics */ M001 () If (Arg1) { Local1 = 0x00 } Local0 = Local1 M003 (ObjectType (Local1)) Local0 = INT0 /* \M688.INT0 */ M003 (ObjectType (INT0)) Local0 = STR0 /* \M688.STR0 */ M003 (ObjectType (STR0)) Local0 = BUF0 /* \M688.BUF0 */ M003 (ObjectType (BUF0)) Local0 = PAC0 /* \M688.PAC0 */ M003 (ObjectType (PAC0)) Local0 = FLU0 /* \M688.FLU0 */ M003 (ObjectType (FLU0)) /* // Removed 09/2015: iASL now disallows stores to these objects Store(DEV0, Local0) m003(ObjectType(DEV0)) Store(EVE0, Local0) m003(ObjectType(EVE0)) Store(MTX0, Local0) m003(ObjectType(MTX0)) Store(OPR0, Local0) m003(ObjectType(OPR0)) Store(PWR0, Local0) m003(ObjectType(PWR0)) Store(CPU0, Local0) m003(ObjectType(CPU0)) Store(TZN0, Local0) m003(ObjectType(TZN0)) */ Local0 = BFL0 /* \M688.BFL0 */ M003 (ObjectType (BFL0)) /* Output statistics */ M002 ("Store to LocalX") } /* Gathers statistics of CopyObject to Local */ Method (M011, 2, NotSerialized) { /* Initialize statistics */ M001 () If (Arg1) { Local1 = 0x00 } CopyObject (Local1, Local0) M003 (ObjectType (Local1)) CopyObject (INT0, Local0) M003 (ObjectType (INT0)) CopyObject (STR0, Local0) M003 (ObjectType (STR0)) CopyObject (BUF0, Local0) M003 (ObjectType (BUF0)) CopyObject (PAC0, Local0) M003 (ObjectType (PAC0)) CopyObject (FLU0, Local0) M003 (ObjectType (FLU0)) CopyObject (DEV0, Local0) M003 (ObjectType (DEV0)) CopyObject (EVE0, Local0) M003 (ObjectType (EVE0)) CopyObject (MMM0 (), Local0) M003 (ObjectType (MMM0)) CopyObject (MTX0, Local0) M003 (ObjectType (MTX0)) CopyObject (OPR0, Local0) M003 (ObjectType (OPR0)) CopyObject (PWR0, Local0) M003 (ObjectType (PWR0)) CopyObject (CPU0, Local0) M003 (ObjectType (CPU0)) CopyObject (TZN0, Local0) M003 (ObjectType (TZN0)) CopyObject (BFL0, Local0) M003 (ObjectType (BFL0)) /* Output statistics */ M002 ("CopyObject to LocalX") } /* Gathers statistics of CopyObject to Integer */ Method (M012, 2, Serialized) { /* Integer */ Name (INT1, 0xFEDCBA9876543211) Name (INT2, 0xFEDCBA9876543212) Name (INT3, 0xFEDCBA9876543213) Name (INT4, 0xFEDCBA9876543214) Name (INT5, 0xFEDCBA9876543215) Name (INT6, 0xFEDCBA9876543216) Name (INT7, 0xFEDCBA9876543217) Name (INT8, 0xFEDCBA9876543218) Name (INT9, 0xFEDCBA9876543219) Name (INTA, 0xFEDCBA987654321A) Name (INTB, 0xFEDCBA987654321B) Name (INTC, 0xFEDCBA987654321C) Name (INTD, 0xFEDCBA987654321D) Name (INTE, 0xFEDCBA987654321E) Name (INTF, 0xFEDCBA987654321F) /* Initialize statistics */ M001 () If (Arg1) { Local1 = 0x00 } CopyObject (Local1, INTF) /* \M688.M012.INTF */ M003 (ObjectType (Local1)) M004 (Arg0, ObjectType (INTF), 0x00) CopyObject (INT0, INT1) /* \M688.M012.INT1 */ M003 (ObjectType (INT0)) M004 (Arg0, ObjectType (INT1), 0x01) CopyObject (STR0, INT2) /* \M688.M012.INT2 */ M003 (ObjectType (STR0)) M004 (Arg0, ObjectType (INT2), 0x02) CopyObject (BUF0, INT3) /* \M688.M012.INT3 */ M003 (ObjectType (BUF0)) M004 (Arg0, ObjectType (INT3), 0x03) CopyObject (PAC0, INT4) /* \M688.M012.INT4 */ M003 (ObjectType (PAC0)) M004 (Arg0, ObjectType (INT4), 0x04) CopyObject (FLU0, INT5) /* \M688.M012.INT5 */ M003 (ObjectType (FLU0)) M004 (Arg0, ObjectType (INT5), 0x05) CopyObject (DEV0, INT6) /* \M688.M012.INT6 */ M003 (ObjectType (DEV0)) M004 (Arg0, ObjectType (INT6), 0x06) CopyObject (EVE0, INT7) /* \M688.M012.INT7 */ M003 (ObjectType (EVE0)) M004 (Arg0, ObjectType (INT7), 0x07) CopyObject (MMM0 (), INT8) /* \M688.M012.INT8 */ M003 (ObjectType (MMM0)) M004 (Arg0, ObjectType (INT8), 0x08) CopyObject (MTX0, INT9) /* \M688.M012.INT9 */ M003 (ObjectType (MTX0)) M004 (Arg0, ObjectType (INT9), 0x09) CopyObject (OPR0, INTA) /* \M688.M012.INTA */ M003 (ObjectType (OPR0)) M004 (Arg0, ObjectType (INTA), 0x0A) CopyObject (PWR0, INTB) /* \M688.M012.INTB */ M003 (ObjectType (PWR0)) M004 (Arg0, ObjectType (INTB), 0x0B) CopyObject (CPU0, INTC) /* \M688.M012.INTC */ M003 (ObjectType (CPU0)) M004 (Arg0, ObjectType (INTC), 0x0C) CopyObject (TZN0, INTD) /* \M688.M012.INTD */ M003 (ObjectType (TZN0)) M004 (Arg0, ObjectType (INTD), 0x0D) CopyObject (BFL0, INTE) /* \M688.M012.INTE */ M003 (ObjectType (BFL0)) M004 (Arg0, ObjectType (INTE), 0x0E) /* Output statistics */ M002 ("CopyObject to Integer Named Object") } M010 (Concatenate (Arg0, "-m010"), 0x00) M011 (Concatenate (Arg0, "-m011"), 0x00) M012 (Concatenate (Arg0, "-m012"), 0x00) } /* Verify storing of an immediate Source Object into different kinds */ /* of Target Objects by means of the specified operator (Store/CopyObject) */ /* m689(, , ) */ Method (M689, 3, Serialized) { /* Object-initializers are used either with Source or Target */ /* (names ended by 0 and 1 respectively) */ /* Integer */ Name (INT0, 0xFEDCBA9876543210) Name (INT1, 0xFEDCBA9876543211) /* String */ Name (STR0, "source string") Name (STR1, "target string") /* Buffer */ Name (BUF0, Buffer (0x09) { /* 0000 */ 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, // ........ /* 0008 */ 0x01 // . }) Name (BUF1, Buffer (0x11) { 0xC3 // . }) /* Initializer of Fields */ Name (BUF2, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }) /* Base of Buffer Fields */ Name (BUFZ, Buffer (0x30){}) /* Package */ Name (PAC0, Package (0x03) { 0xFEDCBA987654321F, "test package", Buffer (0x09) { /* 0000 */ 0x13, 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, // ........ /* 0008 */ 0x0B // . } }) Name (PAC1, Package (0x01) { "target package" }) If (Y361) { /* Field Unit */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLU0, 69, FLU2, 64, FLU4, 32 } } /* Device */ Device (DEV0) { Name (S000, "DEV0") } Device (DEV1) { Name (S000, "DEV1") } /* Event */ Event (EVE0) Event (EVE1) /* Method */ Name (MM00, "ff0X") /* Value, returned from MMMX */ Name (MM01, "ff1Y") /* Value, returned from MMMY */ Name (MMM0, 0x00) /* Method as Source Object */ Name (MMM1, 0x00) /* Method as Target Object */ Method (MMMX, 0, NotSerialized) { Return (MM00) /* \M689.MM00 */ } Method (MMMY, 0, NotSerialized) { Return (MM01) /* \M689.MM01 */ } /* Mutex */ Mutex (MTX0, 0x00) Mutex (MTX1, 0x00) If (Y361) { /* Operation Region */ OperationRegion (OPR0, SystemMemory, 0x00, 0x30) OperationRegion (OPR1, SystemMemory, 0x00, 0x18) } /* Power Resource */ PowerResource (PWR0, 0x00, 0x0000) { Name (S000, "PWR0") } PowerResource (PWR1, 0x00, 0x0000) { Name (S000, "PWR1") } /* Processor */ Processor (CPU0, 0x00, 0xFFFFFFFF, 0x00) { Name (S000, "CPU0") } Processor (CPU1, 0x00, 0xFFFFFFFF, 0x00) { Name (S000, "CPU1") } /* Thermal Zone */ ThermalZone (TZN0) { Name (S000, "TZN0") } ThermalZone (TZN1) { Name (S000, "TZN1") } /* Buffer Field */ CreateField (BUFZ, 0x00, 0x45, BFL0) CreateField (BUFZ, 0x50, 0x40, BFL2) CreateField (BUFZ, 0xA0, 0x20, BFL4) /* Reference */ Name (ORF0, "ORF0") Name (REF0, Package (0x01){}) Name (ORF1, "ORF0") Name (REF1, Package (0x01){}) /* Data to gather statistics */ Name (STCS, 0x00) Name (INDM, 0xFF) Name (PAC2, Package (0x01){}) Name (IND2, 0x00) Name (PAC3, Package (0x01){}) Name (IND3, 0x00) Name (PAC4, Package (0x02) { "Store", "Copyobject" }) Name (PAC5, Package (0x07) { "Storing Named-Named with ", "Storing Named-LocalX with ", "Storing LocalX-Named with ", "Storing LocalX-LocalX with ", "Storing Named-ArgX(Named on read-only argument rule) with ", "Storing Named-ArgX(Named by reference) with ", "Storing LocalX-Element of Package with " }) Name (TERR, "-test error") /* Update statistics */ /* m000(, , , ) */ Method (M000, 4, NotSerialized) { If ((Arg0 == 0x02)) { If ((IND2 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC2 [IND2]) IND2++ } } ElseIf ((Arg0 == 0x03)) { If ((IND3 < INDM)) { Store (((Arg3 * Arg1) + Arg2), PAC3 [IND3]) IND3++ } } } /* Initialize statistics */ Method (M001, 0, NotSerialized) { If (STCS) { PAC2 = Package (INDM){} IND2 = 0x00 PAC3 = Package (INDM){} IND3 = 0x00 } } /* Output statistics */ Method (M002, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) If (STCS) { Debug = Arg0 If (IND2) { Debug = "Run-time exceptions:" Debug = IND2 /* \M689.IND2 */ Debug = "Types:" LPN0 = IND2 /* \M689.IND2 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC2 [LPC0]) LPN0-- LPC0++ } } If (IND3) { Debug = "Type mismatch:" Debug = IND3 /* \M689.IND3 */ LPN0 = IND3 /* \M689.IND3 */ LPC0 = 0x00 While (LPN0) { Debug = DerefOf (PAC3 [LPC0]) LPN0-- LPC0++ } } } } /* Prepare Target of specified type */ Method (M003, 4, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { /* Only check */ } Case (0x01) { CopyObject (DerefOf (Arg3), INT1) /* \M689.INT1 */ CopyObject (INT1, Arg2) } Case (0x02) { CopyObject (DerefOf (Arg3), STR1) /* \M689.STR1 */ CopyObject (STR1, Arg2) } Case (0x03) { If (Y136) { CopyObject (DerefOf (Arg3), BUF1) /* \M689.BUF1 */ } Else { M687 (DerefOf (Arg3), RefOf (BUF1)) } CopyObject (BUF1, Arg2) } Case (0x04) { CopyObject (DerefOf (Arg3), PAC1) /* \M689.PAC1 */ CopyObject (PAC1, Arg2) } Case (0x05) { /* Check only */ } Case (0x06) { CopyObject (DEV1, Arg2) } Case (0x07) { CopyObject (EVE1, Arg2) } Case (0x08) { CopyObject (DerefOf (DerefOf (Arg3) [0x00]), MMM1) /* \M689.MMM1 */ CopyObject (DerefOf (DerefOf (Arg3) [0x01]), MM01) /* \M689.MM01 */ CopyObject (DerefOf (RefOf (MMM1)), Arg2) } Case (0x09) { CopyObject (MTX1, Arg2) } Case (0x0A) { CopyObject (OPR1, Arg2) } Case (0x0B) { CopyObject (PWR1, Arg2) } Case (0x0C) { CopyObject (CPU1, Arg2) } Case (0x0D) { CopyObject (TZN1, Arg2) } Case (0x0E) { /* Check only */ } Case (0x11) { CopyObject (RefOf (ORF1), REF1) /* \M689.REF1 */ /*if (y522) { */ CopyObject (REF1, Arg2) /*} else { */ /* CopyObject(DeRefof(REF1), arg2) */ /*} */ } /* Unexpected Target Type */ Default { ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If (CH03 (Arg0, Z122, __LINE__, 0x00, 0x00)) { /*Exception during preparing of Target Object */ Return (0x01) } If ((Arg1 == 0x11)) { /* Reference */ Return (0x00) } Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Target can not be set up */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Return (0x00) } /* Prepare Source of specified type */ Method (M004, 4, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { } Case (0x01) { CopyObject (DerefOf (Arg3), INT0) /* \M689.INT0 */ CopyObject (INT0, Arg2) } Case (0x02) { CopyObject (DerefOf (Arg3), STR0) /* \M689.STR0 */ CopyObject (STR0, Arg2) } Case (0x03) { If (Y136) { CopyObject (DerefOf (Arg3), BUF0) /* \M689.BUF0 */ } Else { M687 (DerefOf (Arg3), RefOf (BUF0)) } CopyObject (BUF0, Arg2) } Case (0x04) { CopyObject (DerefOf (Arg3), PAC0) /* \M689.PAC0 */ CopyObject (PAC0, Arg2) } Case (0x05) { Local0 = DerefOf (DerefOf (Arg3) [0x00]) If ((Local0 == 0x00)) { FLU0 = DerefOf (DerefOf (Arg3) [0x01]) } ElseIf ((Local0 == 0x01)) { FLU2 = DerefOf (DerefOf (Arg3) [0x01]) } Else { FLU4 = DerefOf (DerefOf (Arg3) [0x01]) } } Case (0x06) { CopyObject (DEV0, Arg2) } Case (0x07) { CopyObject (EVE0, Arg2) } Case (0x08) { CopyObject (DerefOf (DerefOf (Arg3) [0x00]), MMM0) /* \M689.MMM0 */ CopyObject (DerefOf (DerefOf (Arg3) [0x01]), MM00) /* \M689.MM00 */ CopyObject (DerefOf (RefOf (MMM0)), Arg2) } Case (0x09) { CopyObject (MTX0, Arg2) } Case (0x0A) { CopyObject (OPR0, Arg2) } Case (0x0B) { CopyObject (PWR0, Arg2) } Case (0x0C) { CopyObject (CPU0, Arg2) } Case (0x0D) { CopyObject (TZN0, Arg2) } Case (0x0E) { Local0 = DerefOf (DerefOf (Arg3) [0x00]) If ((Local0 == 0x00)) { BFL0 = DerefOf (DerefOf (Arg3) [0x01]) } ElseIf ((Local0 == 0x01)) { BFL2 = DerefOf (DerefOf (Arg3) [0x01]) } Else { BFL4 = DerefOf (DerefOf (Arg3) [0x01]) } } Case (0x11) { CopyObject (RefOf (ORF0), REF0) /* \M689.REF0 */ /*if (y522) { */ CopyObject (REF0, Arg2) /*} else { */ /* CopyObject(DeRefof(REF0), arg2) */ /*} */ } /* Unexpected Source Type */ Default { ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If (CH03 (Arg0, Z122, __LINE__, 0x00, 0x00)) { /* Exception during preparing of Source Object */ Return (0x01) } If ((Arg1 == 0x11)) { /* Reference */ Return (0x00) } Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Source can not be set up */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Return (0x00) } /* Check Source Object type is not corrupted after storing, */ /* for the computational data types verify its value against */ /* the Object-initializer value */ Method (M005, 4, Serialized) { Name (MMM2, 0x00) /* An auxiliary Object to invoke Method */ If ((Arg1 == 0x11)) { /* Source object is a reference */ /* Check that it can be used as reference */ Local0 = DerefOf (Arg2) Local3 = DerefOf (Local0) If (CH03 (Arg0, Z122, __LINE__, 0x00, Local0)) { /* Derefof caused unexpected exception */ Return (0x01) } Return (0x00) } Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Source object is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Switch (ToInteger (Arg1)) { Case (0x00) { Return (0x00) } Case (0x01) { Local0 = ObjectType (INT0) } Case (0x02) { Local0 = ObjectType (STR0) } Case (0x03) { Local0 = ObjectType (BUF0) } Case (0x04) { Local0 = ObjectType (PAC0) } Case (0x05) { Local0 = DerefOf (DerefOf (Arg3) [0x00]) If ((Local0 == 0x00)) { Local0 = ObjectType (FLU0) } ElseIf ((Local0 == 0x01)) { Local0 = ObjectType (FLU2) } Else { Local0 = ObjectType (FLU4) } } Case (0x06) { Local0 = ObjectType (DEV0) } Case (0x07) { Local0 = ObjectType (EVE0) } Case (0x08) { Local0 = ObjectType (MMM0) } Case (0x09) { Local0 = ObjectType (MTX0) } Case (0x0A) { Local0 = ObjectType (OPR0) } Case (0x0B) { Local0 = ObjectType (PWR0) } Case (0x0C) { Local0 = ObjectType (CPU0) } Case (0x0D) { Local0 = ObjectType (TZN0) } Case (0x0E) { Local0 = DerefOf (DerefOf (Arg3) [0x00]) If ((Local0 == 0x00)) { Local0 = ObjectType (BFL0) } ElseIf ((Local0 == 0x01)) { Local0 = ObjectType (BFL2) } Else { Local0 = ObjectType (BFL4) } } /* Unexpected Result Type */ Default { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If ((Local0 != Arg1)) { /* Mismatch of Source Type against specified Result Type */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local0, Arg1) If (STCS) { M000 (0x03, 0x01000000, Local0, Arg1) } Return (0x01) } Else { /* Check equality of the Source value to the Object-initializer one */ Switch (ToInteger (Arg1)) { Case (0x01) { If ((INT0 != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, INT0, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != INT0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), INT0) Return (0x01) } } Case (0x02) { If ((STR0 != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, STR0, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != STR0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), STR0) Return (0x01) } } Case (0x03) { If ((BUF0 != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, BUF0, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != BUF0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), BUF0) Return (0x01) } } Case (0x04) { Local0 = SizeOf (PAC0) If ((SizeOf (Arg3) != Local0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, SizeOf (Arg3), Local0) Return (0x01) } While (Local0) { Local0-- Local1 = ObjectType (DerefOf (DerefOf (Arg3) [Local0])) Local2 = ObjectType (DerefOf (PAC0 [Local0])) If ((Local1 != Local2)) { /* ObjectType is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local1, Local2) Return (0x01) } ElseIf (DerefOf (B679 [Local1])) { /* the computational data type */ If ((DerefOf (DerefOf (Arg3) [Local0]) != DerefOf (PAC0 [ Local0]))) { /* The value is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (DerefOf (Arg3) [Local0]), Local0) Return (0x01) } } } Local0 = SizeOf (PAC0) If ((SizeOf (Arg2) != Local0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, SizeOf (Arg2), Local0) Return (0x01) } While (Local0) { Local0-- Local1 = ObjectType (DerefOf (DerefOf (Arg2) [Local0])) Local2 = ObjectType (DerefOf (PAC0 [Local0])) If ((Local1 != Local2)) { /* ObjectType is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local1, Local2) Return (0x01) } ElseIf (DerefOf (B679 [Local1])) { /* the computational data type */ If ((DerefOf (DerefOf (Arg2) [Local0]) != DerefOf (PAC0 [ Local0]))) { /* The value is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (DerefOf (Arg2) [Local0]), Local0) Return (0x01) } } } } Case (0x05) { Local0 = DerefOf (DerefOf (Arg3) [0x00]) If ((Local0 == 0x00)) { If ((FLU0 != DerefOf (DerefOf (Arg3) [0x01]))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, FLU0, DerefOf (DerefOf (Arg3) [0x01] )) Return (0x01) } If ((DerefOf (Arg2) != FLU0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), FLU0) Return (0x01) } } ElseIf ((Local0 == 0x01)) { If ((FLU2 != DerefOf (DerefOf (Arg3) [0x01]))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, FLU2, DerefOf (DerefOf (Arg3) [0x01] )) Return (0x01) } If ((DerefOf (Arg2) != FLU2)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), FLU2) Return (0x01) } } Else { If ((FLU4 != DerefOf (DerefOf (Arg3) [0x01]))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, FLU4, DerefOf (DerefOf (Arg3) [0x01] )) Return (0x01) } If ((DerefOf (Arg2) != FLU4)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), FLU4) Return (0x01) } } } Case (0x08) { CopyObject (DerefOf (Arg2), MMM2) /* \M689.M005.MMM2 */ If ((MMM2 != MMM0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, MMM2, MMM0) Return (0x01) } } Case (0x0E) { Local0 = DerefOf (DerefOf (Arg3) [0x00]) If ((Local0 == 0x00)) { If ((BFL0 != DerefOf (DerefOf (Arg3) [0x01]))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, BFL0, DerefOf (DerefOf (Arg3) [0x01] )) Return (0x01) } If ((DerefOf (Arg2) != BFL0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), BFL0) Return (0x01) } } ElseIf ((Local0 == 0x01)) { If ((BFL2 != DerefOf (DerefOf (Arg3) [0x01]))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, BFL2, DerefOf (DerefOf (Arg3) [0x01] )) Return (0x01) } If ((DerefOf (Arg2) != BFL2)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), BFL2) Return (0x01) } } Else { If ((BFL4 != DerefOf (DerefOf (Arg3) [0x01]))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, BFL4, DerefOf (DerefOf (Arg3) [0x01] )) Return (0x01) } If ((DerefOf (Arg2) != BFL4)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), BFL4) Return (0x01) } } } } } Return (0x00) } /* Check Target Object to have the expected type and value */ /* m006(, , , , */ /* , , ) */ Method (M006, 7, Serialized) { Name (MMM2, 0x00) /* An auxiliary Object to invoke Method */ Local2 = ObjectType (Arg1) If ((Local2 != Arg2)) { If (STCS) { M000 (0x03, 0x00010000, Arg2, Local2) } } If (M686 (Arg5, Arg2, Arg3)) { /* Target must save type */ If ((Local2 != Arg2)) { /* Types mismatch Target/Target on storing */ If ((Arg2 == C016)) { If (X170){ /*this sentence is for m00d and invalid, removed. */ /*err(arg0, z122, __LINE__, 0, 0, Local2, arg2) */ } } Else { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local2, Arg2) } If (STCS) { M000 (0x03, 0x0100, Arg2, Local2) } Return (0x01) } } ElseIf /* Target if it is not of fixed type */ /* must accept type of the Result Object */ ((Local2 != Arg3)) { If ((M684 (Arg3) == 0x06)) { /* Result object is a reference */ /* Check that Target can be used as reference */ Local0 = DerefOf (Arg1) Local3 = DerefOf (Local0) If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg3)) { /* Derefof caused unexpected exception */ Return (0x01) } } ElseIf ((M684 (Arg3) != 0x01)) { /* Types mismatch Result/Target on storing */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local2, Arg3) Return (0x01) } ElseIf ((Local2 != 0x03)) { /* Types mismatch Result/Target on storing */ /* Test fixed type Objects are converted to Buffer */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local2, 0x03) Return (0x01) } If (STCS) { M000 (0x03, 0x0100, Arg3, Local2) } } /* Retrieve the benchmark value */ If (M686 (Arg5, Arg2, Arg3)) { /* Save type of Target */ If (DerefOf (B67C [Arg2])) { /* Types that can be verified only by ObjectType */ Return (0x00) } /* Retrieve the benchmark value */ Local7 = DerefOf (DerefOf (Arg6 [0x05]) [Arg2]) } Else { /* Accept type of Result */ If (DerefOf (B67C [Arg3])) { /* Types that can be verified only by ObjectType */ Return (0x00) } Local7 = DerefOf (Arg6 [0x04]) } If ((Arg3 == 0x08)) { /* Method */ CopyObject (DerefOf (Arg1), MMM2) /* \M689.M006.MMM2 */ If ((MMM2 != Local7)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, MMM2, Local7) Return (0x01) } } ElseIf ((Arg3 != 0x04)) { /* Not Package */ If ((DerefOf (Arg1) != Local7)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg1), Local7) Return (0x01) } } Else { /* Package */ Local0 = SizeOf (Local7) If ((SizeOf (Arg1) != Local0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, SizeOf (Arg1), Local0) Return (0x01) } While (Local0) { Local0-- Local1 = ObjectType (DerefOf (DerefOf (Arg1) [Local0])) Local2 = ObjectType (DerefOf (Local7 [Local0])) If ((Local1 != Local2)) { /* ObjectType is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local1, Local2) Return (0x01) } ElseIf (DerefOf (B679 [Local1])) { /* the computational data type */ If ((DerefOf (DerefOf (Arg1) [Local0]) != DerefOf (Local7 [ Local0]))) { /* The value is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (DerefOf (Arg1) [Local0]), DerefOf (Local7 [Local0])) Return (0x01) } } } } Return (0x00) } /* Update specified Object */ /* m007(, ) */ Method (M007, 2, NotSerialized) { Local0 = ObjectType (Arg1) If (DerefOf (B66F [Local0])) { /* Can be used in Index Operator */ Local1 = SizeOf (Arg1) If (Local1) { /* Update the last Member Object */ Local1-- Local2 = DerefOf (Arg1) [Local1] Local3 = RefOf (Local2) Local4 = DerefOf (Local2) If ((ObjectType (Local4) == 0x01)) { /* Integer */ Store (~Local4, DerefOf (Local3)) } Else { DerefOf (Local3) = Ones If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg1)) { /* Store caused unexpected exception */ Return (0x01) } } If (Local1) { /* Update the First Member Object */ Local2 = DerefOf (Arg1) [0x00] Local4 = DerefOf (Local2) If ((ObjectType (Local4) == 0x01)) { /* Integer */ Store (~Local4, DerefOf (Local3)) } Else { DerefOf (Local3) = Ones If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg1)) { /* Store caused unexpected exception */ Return (0x01) } } } } ElseIf ((Local0 == 0x04)) { /* Empty Package */ Arg1 = Package (0x01) { "update string" } } Else { /* Empty String/Buffer */ Arg1 = "update string" } } ElseIf (DerefOf (B674 [Local0])) { /* Non-Computational Data Objects */ CopyObject ("update string", Arg1) } Else { Store (~ToInteger (DerefOf (Arg1)), Arg1) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg1)) { /* Update caused unexpected exception */ Return (0x01) } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* on immediate storing to a Target Named Object of the specified type */ /* m008(, , , , */ /* , , ) */ Method (M008, 7, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) /* Target Named Object */ Name (DST0, 0x00) Name (SCL0, Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) Name (SCL1, Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Choose expected Result Object type */ /* if (LAnd(LEqual(arg4, 0), LEqual(arg3, 8))) { */ If ((Arg3 == 0x08)) { /* Method expected to be invoked and result in String */ Local5 = 0x02 } Else { Local5 = Arg3 } /* Prepare Source of specified type */ Store (Arg6 [0x02], Local7) If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local6 = RefOf (FLU0) Local5 = 0x03 } ElseIf ((Local0 == 0x01)) { Local6 = RefOf (FLU2) If (F64) { Local5 = 0x01 } Else { Local5 = 0x03 } } Else { Local6 = RefOf (FLU4) Local5 = 0x01 } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local6 = RefOf (BFL0) } ElseIf ((Local0 == 0x01)) { Local6 = RefOf (BFL2) } Else { Local6 = RefOf (BFL4) } Local5 = 0x03 } Else { Local6 = RefOf (SRC0) } If (M004 (Concatenate (Arg0, "-m004"), Arg3, Local6, Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Prepare Target of specified type */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If ((Arg2 == 0x05)) { /* Field Unit Target */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLUX, 192, FLU1, 69 } Local1 = RefOf (FLU1) } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ CreateField (BUFZ, 0xC0, 0x45, BFL1) Local1 = RefOf (BFL1) } Else { Local1 = RefOf (DST0) } If (M003 (Concatenate (Arg0, "-m003"), Arg2, Local1, Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Unexpected exception during preparation */ Return (0x01) } /* Use a Source Object to immediately store into the Target */ Store (Arg6 [0x02], Local7) If ((Arg2 == 0x05)) { /* Field Unit Target */ If ((Arg4 == 0x00)) { /* Store */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { FLU1 = FLU0 /* \M689.FLU0 */ } ElseIf ((Local0 == 0x01)) { FLU1 = FLU2 /* \M689.FLU2 */ } Else { FLU1 = FLU4 /* \M689.FLU4 */ } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { FLU1 = BFL0 /* \M689.BFL0 */ } ElseIf ((Local0 == 0x01)) { FLU1 = BFL2 /* \M689.BFL2 */ } Else { FLU1 = BFL4 /* \M689.BFL4 */ } } Else { FLU1 = SRC0 /* \M689.M008.SRC0 */ } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (FLU0, FLU1) /* \M689.M008.FLU1 */ } ElseIf ((Local0 == 0x01)) { CopyObject (FLU2, FLU1) /* \M689.M008.FLU1 */ } Else { CopyObject (FLU4, FLU1) /* \M689.M008.FLU1 */ } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (BFL0, FLU1) /* \M689.M008.FLU1 */ } ElseIf ((Local0 == 0x01)) { CopyObject (BFL2, FLU1) /* \M689.M008.FLU1 */ } Else { CopyObject (BFL4, FLU1) /* \M689.M008.FLU1 */ } } Else { CopyObject (SRC0, FLU1) /* \M689.M008.FLU1 */ } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ If ((Arg4 == 0x00)) { /* Store */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { BFL1 = FLU0 /* \M689.FLU0 */ } ElseIf ((Local0 == 0x01)) { BFL1 = FLU2 /* \M689.FLU2 */ } Else { BFL1 = FLU4 /* \M689.FLU4 */ } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { BFL1 = BFL0 /* \M689.BFL0 */ } ElseIf ((Local0 == 0x01)) { BFL1 = BFL2 /* \M689.BFL2 */ } Else { BFL1 = BFL4 /* \M689.BFL4 */ } } Else { BFL1 = SRC0 /* \M689.M008.SRC0 */ } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (FLU0, BFL1) /* \M689.M008.BFL1 */ } ElseIf ((Local0 == 0x01)) { CopyObject (FLU2, BFL1) /* \M689.M008.BFL1 */ } Else { CopyObject (FLU4, BFL1) /* \M689.M008.BFL1 */ } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (BFL0, BFL1) /* \M689.M008.BFL1 */ } ElseIf ((Local0 == 0x01)) { CopyObject (BFL2, BFL1) /* \M689.M008.BFL1 */ } Else { CopyObject (BFL4, BFL1) /* \M689.M008.BFL1 */ } } Else { CopyObject (SRC0, BFL1) /* \M689.M008.BFL1 */ } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg4 == 0x00)) { /* Store */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { DST0 = FLU0 /* \M689.FLU0 */ } ElseIf ((Local0 == 0x01)) { DST0 = FLU2 /* \M689.FLU2 */ } Else { DST0 = FLU4 /* \M689.FLU4 */ } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { DST0 = BFL0 /* \M689.BFL0 */ } ElseIf ((Local0 == 0x01)) { DST0 = BFL2 /* \M689.BFL2 */ } Else { DST0 = BFL4 /* \M689.BFL4 */ } } Else { DST0 = SRC0 /* \M689.M008.SRC0 */ } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (FLU0, DST0) /* \M689.M008.DST0 */ } ElseIf ((Local0 == 0x01)) { CopyObject (FLU2, DST0) /* \M689.M008.DST0 */ } Else { CopyObject (FLU4, DST0) /* \M689.M008.DST0 */ } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (BFL0, DST0) /* \M689.M008.DST0 */ } ElseIf ((Local0 == 0x01)) { CopyObject (BFL2, DST0) /* \M689.M008.DST0 */ } Else { CopyObject (BFL4, DST0) /* \M689.M008.DST0 */ } } Else { CopyObject (SRC0, DST0) /* \M689.M008.DST0 */ } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (((Arg4 == 0x01) && (Arg2 == C016))) { If (X170) { If (!CH06 (Arg0, 0x39, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } Else { CH03 (Arg0, Z122, __LINE__, 0x00, Arg2) } } ElseIf (!CH06 (Arg0, 0x39, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } /* No further test if exception is expected */ Return (0x00) } ElseIf (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to Named by Store operator is 0 */ If (Arg4) { Local0 = 0x02 } Else { Local0 = 0x00 } M006 (Concatenate (Arg0, "-m006"), Local1, Arg2, Local5, Arg4, Local0, Arg6) } /* Check Source Object value and type is not corrupted after storing */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m008, Source Object has been corrupted during storing" } Return (0x01) } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m008, auxiliary Target Object has been corrupted during storing" } Return (0x01) } /* Update Target Object */ If (M007 (Concatenate (Arg0, "-m007"), Local1)) { If (STCS) { Debug = "m008, Error during update of Target" } Return (0x01) } /* Check Source Object value and type is not corrupted after updating the copy */ Store (Arg6 [0x02], Local7) If (Y900) { If (((Arg4 == 0x00) && /* Source type is 2-4 */ (DerefOf (Index (Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }, Arg3 )) && /* Target type is 4, 6-9, 11-12 */ DerefOf (Index (Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }, Arg2))) /* Store */)) { If (X153) { If (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m008, Source Object has been corrupted during update of Target" } } } } ElseIf (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m008, Source Object has been corrupted during update of Target" } } } ElseIf (((Arg4 == 0x00) && /* Source type is 2-4 */ (DerefOf (SCL0 [Arg3]) && /* Target type is 4, 6-9, 11-12 */ DerefOf (SCL1 [Arg2])) /* Store */)) { If (X153) { If (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m008, Source Object has been corrupted during update of Target" } } } } ElseIf (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m008, Source Object has been corrupted during update of Target" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m008, auxiliary Target Object has been corrupted during update of Target" } Return (0x01) } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* on immediate storing to a Target LocalX Object of the specified type */ /* m009(, , , , */ /* , , ) */ Method (M009, 7, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) /* Target LocalX Object: Local4 */ Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Choose expected Result Object type */ /* if (LAnd(LEqual(arg4, 0), LEqual(arg3, 8))) { */ If ((Arg3 == 0x08)) { /* Method expected to be invoked and result in String */ Local5 = 0x02 } Else { Local5 = Arg3 } /* Prepare Source of specified type */ Store (Arg6 [0x02], Local7) If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local6 = RefOf (FLU0) } ElseIf ((Local0 == 0x01)) { Local6 = RefOf (FLU2) Local5 = 0x03 If (F64) { Local5 = 0x01 } Else { Local5 = 0x03 } } Else { Local6 = RefOf (FLU4) Local5 = 0x01 } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local6 = RefOf (BFL0) } ElseIf ((Local0 == 0x01)) { Local6 = RefOf (BFL2) } Else { Local6 = RefOf (BFL4) } Local5 = 0x03 } Else { Local6 = RefOf (SRC0) } If (M004 (Concatenate (Arg0, "-m004"), Arg3, Local6, Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Prepare Target of specified type */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M003 (Concatenate (Arg0, "-m003"), Arg2, RefOf (Local4), Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Unexpected exception during preparation */ Return (0x01) } /* Use a Source Object to immediately store into the Target */ Store (Arg6 [0x02], Local7) If ((Arg4 == 0x00)) { /* Store */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local4 = FLU0 /* \M689.FLU0 */ } ElseIf ((Local0 == 0x01)) { Local4 = FLU2 /* \M689.FLU2 */ } Else { Local4 = FLU4 /* \M689.FLU4 */ } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local4 = BFL0 /* \M689.BFL0 */ } ElseIf ((Local0 == 0x01)) { Local4 = BFL2 /* \M689.BFL2 */ } Else { Local4 = BFL4 /* \M689.BFL4 */ } } Else { Local4 = SRC0 /* \M689.M009.SRC0 */ } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (FLU0, Local4) } ElseIf ((Local0 == 0x01)) { CopyObject (FLU2, Local4) } Else { CopyObject (FLU4, Local4) } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (BFL0, Local4) } ElseIf ((Local0 == 0x01)) { CopyObject (BFL2, Local4) } Else { CopyObject (BFL4, Local4) } } Else { CopyObject (SRC0, Local4) } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (!CH06 (Arg0, 0x0F, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to LocalX is 1 */ Local0 = 0x01 M006 (Concatenate (Arg0, "-m006"), RefOf (Local4), Arg2, Local5, Arg4, Local0, Arg6) } /* Check Source Object value and type is not corrupted after storing */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m009, Source Object has been corrupted during storing" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m009, auxiliary Target Object has been corrupted during storing" } Return (0x01) } /* Update Target Object */ If (M007 (Concatenate (Arg0, "-m007"), RefOf (Local4))) { If (STCS) { Debug = "m009, Error during update of Target" } Return (0x01) } /* Check Source Object value and type is not corrupted after updating the copy */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m009, Source Object has been corrupted during update of Target" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m009, auxiliary Target Object has been corrupted during update of Target" } Return (0x01) } Return (0x00) } /* Check processing of an Source LocalX Object of the specified type */ /* on immediate storing to a Target Named Object of the specified type */ /* m00a(, , , , */ /* , , ) */ Method (M00A, 7, Serialized) { /* Source Object: Local1 */ /* Target Named Object (or the reference to it in case of Fields) */ Name (DST0, 0x00) Name (SCL0, Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) Name (SCL1, Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Prepare Source of specified type */ Store (Arg6 [0x02], Local7) If (M004 (Concatenate (Arg0, "-m004"), Arg3, RefOf (Local1), Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Prepare Target of specified type */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If ((Arg2 == 0x05)) { /* Field Unit Target */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLUX, 192, FLU1, 69 } Local4 = RefOf (FLU1) } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ CreateField (BUFZ, 0xC0, 0x45, BFL1) Local4 = RefOf (BFL1) } Else { Local4 = RefOf (DST0) } If (M003 (Concatenate (Arg0, "-m003"), Arg2, Local4, Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Unexpected exception during preparation */ Return (0x01) } /* Use a Source Object to immediately store into the Target */ If ((Arg2 == 0x05)) { /* Field Unit Target */ If ((Arg4 == 0x00)) { /* Store */ FLU1 = Local1 } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ CopyObject (Local1, FLU1) /* \M689.M00A.FLU1 */ } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ If ((Arg4 == 0x00)) { /* Store */ BFL1 = Local1 } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ CopyObject (Local1, BFL1) /* \M689.M00A.BFL1 */ } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } } ElseIf ((Arg4 == 0x00)) { /* Store */ DST0 = Local1 } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ CopyObject (Local1, DST0) /* \M689.M00A.DST0 */ } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (((Arg4 == 0x01) && ((Arg2 == C016) && (Arg3 != C008)))) { If (X170) { If (!CH06 (Arg0, 0x46, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } Else { CH03 (Arg0, Z122, __LINE__, 0x00, Arg2) } } ElseIf (!CH06 (Arg0, 0x46, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } /* No further test if exception is expected */ Return (0x00) } ElseIf (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to Named of Store operator is 0 */ If (Arg4) { Local0 = 0x02 } Else { Local0 = 0x00 } M006 (Concatenate (Arg0, "-m006"), Local4, Arg2, Arg3, Arg4, Local0, Arg6) } /* Check Source Object value and type is not corrupted after storing */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (Local1), Local7)) { If (STCS) { Debug = "m00a, Source Object has been corrupted during storing" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00a, auxiliary Target Object has been corrupted during storing" } Return (0x01) } /* Update Target Object */ If (M007 (Concatenate (Arg0, "-m007"), Local4)) { If (STCS) { Debug = "m00a, Error during update of Target" } Return (0x01) } /* Check Source Object value and type is not corrupted after updating the copy */ Store (Arg6 [0x02], Local7) If (Y900) { If (((Arg4 == 0x00) && /* Source type is 2-4 */ (DerefOf (Index (Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }, Arg3 )) && /* Target type is 4, 6-9, 11-12 */ DerefOf (Index (Buffer (0x12) { /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x01, // ........ /* 0008 */ 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }, Arg2))) /* Store */)) { If (X153) { If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (Local1), Local7)) { If (STCS) { Debug = "m00a, Source Object has been corrupted during update of Target" } } } } ElseIf (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (Local1), Local7)) { If (STCS) { Debug = "m00a, Source Object has been corrupted during update of Target" } } } ElseIf /* if (y900) */ (((Arg4 == 0x00) && /* Source type is 2-4 */ (DerefOf (SCL0 [Arg3]) && /* Target type is 4, 6-9, 11-12 */ DerefOf (SCL1 [Arg2])) /* Store */)) { If (X153) { If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (Local1), Local7)) { If (STCS) { Debug = "m00a, Source Object has been corrupted during update of Target" } } } } ElseIf (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (Local1), Local7)) { If (STCS) { Debug = "m00a, Source Object has been corrupted during update of Target" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00a, auxiliary Target Object has been corrupted during update of Target" } Return (0x01) } Return (0x00) } /* Check processing of an Source LocalX Object of the specified type */ /* on immediate storing to a Target LocalX Object of the specified type */ /* m00b(, , , , */ /* , , ) */ Method (M00B, 7, NotSerialized) { /* Source LocalX Object: Local1 */ /* Target LocalX Object: Local4 */ Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Prepare Source of specified type */ Store (Arg6 [0x02], Local7) If (M004 (Concatenate (Arg0, "-m004"), Arg3, RefOf (Local1), Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Prepare Target of specified type */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M003 (Concatenate (Arg0, "-m003"), Arg2, RefOf (Local4), Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Unexpected exception during preparation */ Return (0x01) } /* Use a Source Object to immediately store into the Target */ If ((Arg4 == 0x00)) { /* Store */ Local4 = Local1 } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ CopyObject (Local1, Local4) } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (!CH06 (Arg0, 0x0F, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to LocalX is 1 */ Local0 = 0x01 M006 (Concatenate (Arg0, "-m006"), RefOf (Local4), Arg2, Arg3, Arg4, Local0, Arg6) } /* Check Source Object value and type is not corrupted after storing */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (Local1), Local7)) { If (STCS) { Debug = "m00b, Source Object has been corrupted during storing" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00b, auxiliary Target Object has been corrupted during storing" } Return (0x01) } /* Update Target Object */ If (M007 (Concatenate (Arg0, "-m007"), RefOf (Local4))) { If (STCS) { Debug = "m00b, Error during update of Target" } Return (0x01) } /* Check Source Object value and type is not corrupted after updating the copy */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (Local1), Local7)) { If (STCS) { Debug = "m00b, Source Object has been corrupted during update of Target" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00b, auxiliary Target Object has been corrupted during update of Target" } Return (0x01) } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* on immediate storing to an argument of Method passed to as immediate */ /* Named Object of another specified type */ /* m00c(, , , , */ /* , , ) */ Method (M00C, 7, Serialized) { Method (M10C, 7, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) /* Target Named Object: ARG1 */ /* Choose expected Result Object type */ /* if (LAnd(LEqual(arg4, 0), LEqual(arg3, 8))) { */ If ((Arg3 == 0x08)) { /* Method expected to be invoked and result in String */ Local5 = 0x02 } Else { Local5 = Arg3 } /* Prepare Source of specified type */ Store (Arg6 [0x02], Local7) If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local6 = RefOf (FLU0) Local5 = 0x03 } ElseIf ((Local0 == 0x01)) { Local6 = RefOf (FLU2) If (F64) { Local5 = 0x01 } Else { Local5 = 0x03 } } Else { Local6 = RefOf (FLU4) Local5 = 0x01 } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local6 = RefOf (BFL0) } ElseIf ((Local0 == 0x01)) { Local6 = RefOf (BFL2) } Else { Local6 = RefOf (BFL4) } Local5 = 0x03 } Else { Local6 = RefOf (SRC0) } If (M004 (Concatenate (Arg0, "-m004"), Arg3, Local6, Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } Local1 = RefOf (Arg1) If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Unexpected exception during preparation */ Return (0x01) } /* Use a Source Object to immediately store into the Target */ Store (Arg6 [0x02], Local7) If ((Arg4 == 0x00)) { /* Store */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Arg1 = FLU0 /* \M689.FLU0 */ } ElseIf ((Local0 == 0x01)) { Arg1 = FLU2 /* \M689.FLU2 */ } Else { Arg1 = FLU4 /* \M689.FLU4 */ } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Arg1 = BFL0 /* \M689.BFL0 */ } ElseIf ((Local0 == 0x01)) { Arg1 = BFL2 /* \M689.BFL2 */ } Else { Arg1 = BFL4 /* \M689.BFL4 */ } } Else { Arg1 = SRC0 /* \M689.M00C.M10C.SRC0 */ } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (FLU0, Arg1) } ElseIf ((Local0 == 0x01)) { CopyObject (FLU2, Arg1) } Else { CopyObject (FLU4, Arg1) } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (BFL0, Arg1) } ElseIf ((Local0 == 0x01)) { CopyObject (BFL2, Arg1) } Else { CopyObject (BFL4, Arg1) } } Else { CopyObject (SRC0, Arg1) } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If ((((Arg4 == 0x00) && ((Arg2 == C016) && (Arg3 == C00C))) || ((Arg4 == 0x01) && ((Arg2 == C016) && (Arg3 != C008))))) { If (X170) { If (!CH06 (Arg0, 0x50, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } Else { CH03 (Arg0, Z122, __LINE__, 0x00, Arg2) } } ElseIf (!CH06 (Arg0, 0x50, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to read-only ArgX is 1 */ Local0 = 0x01 M006 (Concatenate (Arg0, "-m006"), Local1, Arg2, Local5, Arg4, Local0, Arg6) } /* Check Source Object value and type is not corrupted after storing */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m00c, Source Object has been corrupted during storing" } Return (0x01) } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00c, auxiliary Target Object has been corrupted during storing" } Return (0x01) } /* Update Target Object */ If (M007 (Concatenate (Arg0, "-m007"), Local1)) { If (STCS) { Debug = "m00c, Error during update of Target" } Return (0x01) } /* Check Source Object value and type is not corrupted after updating the copy */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m00c, Source Object has been corrupted during update of Target" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00c, auxiliary Target Object has been corrupted during update of Target" } Return (0x01) } Return (0x00) } /* Target Named Object */ Name (DST0, 0x00) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Prepare Target of specified type */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If ((Arg2 == 0x05)) { /* Field Unit Target */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLUX, 192, FLU1, 69 } Local1 = RefOf (FLU1) FLU1 = DerefOf (Local7) } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ CreateField (BUFZ, 0xC0, 0x45, BFL1) Local1 = RefOf (BFL1) BFL1 = DerefOf (Local7) } Else { Local1 = RefOf (DST0) } If (M003 (Concatenate (Arg0, "-m003"), Arg2, Local1, Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Unexpected exception during preparation */ Return (0x01) } /* Use the Target Object to be the ArgX Object */ If (M10C (Concatenate (Arg0, "-m10c"), DST0, Arg2, Arg3, Arg4, Arg5, Arg6)) { If (STCS) { Debug = "m00c, error on using the Target Object as the ArgX Object" } Return (0x01) } If (Arg5) { /* Exception is expected */ Return (0x00) } /* Check Target Object to be saving the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M015 (Concatenate (Arg0, "-m015"), Arg2, Local1, Local7)) { If (STCS) { Debug = "m00c, Target Object has been corrupted during storing to ArgX" } Return (0x01) } Return (0x00) } /* Check processing of an Source Named Object of the specified type */ /* on immediate storing to an argument of Method passed to as reference */ /* to the Named Object of another specified type */ /* m00d(, , , , */ /* , , ) */ Method (M00D, 7, Serialized) { Method (M10D, 7, Serialized) { /* Source Named Object */ Name (SRC0, 0x00) /* Target Named Object: ARG1 */ /* Choose expected Result Object type */ /* if (LAnd(LEqual(arg4, 0), LEqual(arg3, 8))) { */ If ((Arg3 == 0x08)) { /* Method expected to be invoked and result in String */ Local5 = 0x02 } Else { Local5 = Arg3 } /* Prepare Source of specified type */ Store (Arg6 [0x02], Local7) If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local6 = RefOf (FLU0) Local5 = 0x03 } ElseIf ((Local0 == 0x01)) { Local6 = RefOf (FLU2) If (F64) { Local5 = 0x01 } Else { Local5 = 0x03 } } Else { Local6 = RefOf (FLU4) Local5 = 0x01 } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Local6 = RefOf (BFL0) } ElseIf ((Local0 == 0x01)) { Local6 = RefOf (BFL2) } Else { Local6 = RefOf (BFL4) } Local5 = 0x03 } Else { Local6 = RefOf (SRC0) } If (M004 (Concatenate (Arg0, "-m004"), Arg3, Local6, Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Unexpected exception during preparation */ Return (0x01) } /* Use a Source Object to immediately store into the Target */ Store (Arg6 [0x02], Local7) If ((Arg4 == 0x00)) { /* Store */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Arg1 = FLU0 /* \M689.FLU0 */ } ElseIf ((Local0 == 0x01)) { Arg1 = FLU2 /* \M689.FLU2 */ } Else { Arg1 = FLU4 /* \M689.FLU4 */ } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { Arg1 = BFL0 /* \M689.BFL0 */ } ElseIf ((Local0 == 0x01)) { Arg1 = BFL2 /* \M689.BFL2 */ } Else { Arg1 = BFL4 /* \M689.BFL4 */ } } Else { Arg1 = SRC0 /* \M689.M00D.M10D.SRC0 */ } } ElseIf ((Arg4 == 0x01)) { /* CopyObject */ If ((Arg3 == 0x05)) { /* Field Unit Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (FLU0, Arg1) } ElseIf ((Local0 == 0x01)) { CopyObject (FLU2, Arg1) } Else { CopyObject (FLU4, Arg1) } } ElseIf ((Arg3 == 0x0E)) { /* Buffer Field Source */ Local0 = DerefOf (DerefOf (Local7) [0x00]) If ((Local0 == 0x00)) { CopyObject (BFL0, Arg1) } ElseIf ((Local0 == 0x01)) { CopyObject (BFL2, Arg1) } Else { CopyObject (BFL4, Arg1) } } Else { CopyObject (SRC0, Arg1) } } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (((Arg4 == 0x01) && (Arg2 == C016))) { If (X170) { If (!CH06 (Arg0, 0x57, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } Else { CH03 (Arg0, Z122, __LINE__, 0x00, Arg2) } } ElseIf (!CH06 (Arg0, 0x57, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to ArgX containing reference is 1 */ /* (besides Store() to fixed types) */ If (((Arg4 == 0x00) && DerefOf (B678 [Arg2]))) { Local0 = 0x00 } Else { Local0 = 0x01 } M006 (Concatenate (Arg0, "-m006"), Arg1, Arg2, Local5, Arg4, Local0, Arg6) } /* Check Source Object value and type is not corrupted after storing */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m00d, Source Object has been corrupted during storing" } Return (0x01) } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00d, auxiliary Target Object has been corrupted during storing" } Return (0x01) } /* Update Target Object */ If (M007 (Concatenate (Arg0, "-m007"), Arg1)) { If (STCS) { Debug = "m00d, Error during update of Target" } Return (0x01) } /* Check Source Object value and type is not corrupted after updating the copy */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, Local6, Local7)) { If (STCS) { Debug = "m00d, Source Object has been corrupted during update of Target" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00d, auxiliary Target Object has been corrupted during update of Target" } Return (0x01) } Return (0x00) } /* Target Named Object */ Name (DST0, 0x00) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Prepare Target of specified type */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If ((Arg2 == 0x05)) { /* Field Unit Target */ Field (OPR0, ByteAcc, NoLock, Preserve) { FLUX, 192, FLU1, 69 } Local1 = RefOf (FLU1) FLU1 = DerefOf (Local7) } ElseIf ((Arg2 == 0x0E)) { /* Buffer Field Target */ CreateField (BUFZ, 0xC0, 0x45, BFL1) Local1 = RefOf (BFL1) BFL1 = DerefOf (Local7) } Else { Local1 = RefOf (DST0) } If (M003 (Concatenate (Arg0, "-m003"), Arg2, Local1, Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Unexpected exception during preparation */ Return (0x01) } /* Use the reference to Target Object to be the ArgX Object */ If (M10D (Concatenate (Arg0, "-m10d"), RefOf (DST0), Arg2, Arg3, Arg4, Arg5, Arg6)) { If (STCS) { Debug = "m00d, error on using the Target Object as the ArgX Object" } Return (0x01) } Return (0x00) } /* Check processing of an Source LocalX Object of the specified type */ /* on immediate storing to an Element of Package of the specified type */ /* m00e(, , , , */ /* , , ) */ Method (M00E, 7, Serialized) { /* Source LocalX Object: Local1 */ /* Target Package */ Name (DST0, Package (0x01){}) Concatenate (Arg0, "-", Arg0) Concatenate (Arg0, Concatenate (Mid (Arg4, 0x00, 0x02), Concatenate (Mid (Arg2, 0x00, 0x02), Mid (Arg3, 0x00, 0x02))), Arg0) If (STCS) { Debug = Arg0 } /* Prepare Source of specified type */ Store (Arg6 [0x02], Local7) If (M004 (Concatenate (Arg0, "-m004"), Arg3, RefOf (Local1), Local7)) { /* Source Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg3, 0x00) Return (0x01) } /* Prepare Target of specified type */ Local4 = DST0 [0x00] Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M013 (Concatenate (Arg0, "-m003"), Arg2, DST0, Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Unexpected exception during preparation */ Return (0x01) } /* Check Target Object to have the initial type and value */ If (M015 (Concatenate (Arg0, "-m015"), Arg2, Local4, Local7)) { /* Target Object can not be prepared */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg2, 0x00) Return (0x01) } /* Use a Source Object to immediately store into the Target */ If ((Arg4 == 0x00)) { /* Store */ DST0 [0x00] = Local1 /*} elseif (LEqual(arg4, 1)) { // CopyObject */ /* CopyObject(Local1, Index(DST0, 0)) */ } Else { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg4, 0x00) Return (0x01) } If (Arg5) { /* Exception is expected */ If (!CH06 (Arg0, 0x60, 0xFF)) { If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } } ElseIf (CH03 (Arg0, Z122, __LINE__, 0x00, Arg2)) { /* Storing caused unexpected exception */ If (STCS) { M000 (0x02, 0x0100, Arg2, Arg3) } } Else { /* Check Target Object to have the expected type and value */ /* Target accept type on storing to an Element of Package is 1 */ Local0 = 0x01 M006 (Concatenate (Arg0, "-m006"), Local4, Arg2, Arg3, Arg4, Local0, Arg6) } /* Check Source Object value and type is not corrupted after storing */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (Local1), Local7)) { If (STCS) { Debug = "m00e, Source Object has been corrupted during storing" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00e, auxiliary Target Object has been corrupted during storing" } Return (0x01) } /* Update Target Object */ If (M017 (Concatenate (Arg0, "-m007"), DST0)) { If (STCS) { Debug = "m00e, Error during update of Target" } Return (0x01) } /* Check Source Object value and type is not corrupted after updating the copy */ Store (Arg6 [0x02], Local7) If (M005 (Concatenate (Arg0, "-m005"), Arg3, RefOf (Local1), Local7)) { If (STCS) { Debug = "m00e, Source Object has been corrupted during update of Target" } } /* Check auxiliary Target Object to have the initial type and value */ Store (DerefOf (Arg6 [0x03]) [Arg2], Local7) If (M016 (Concatenate (Arg0, "-m016"), Arg2, 0x00, Local7)) { If (STCS) { Debug = "m00e, auxiliary Target Object has been corrupted during update of Target" } Return (0x01) } Return (0x00) } /* Prepare Target as Package Element of specified type */ Method (M013, 4, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { /* Only check */ } Case (0x01) { CopyObject (DerefOf (Arg3), INT1) /* \M689.INT1 */ Arg2 [0x00] = INT1 /* \M689.INT1 */ } Case (0x02) { CopyObject (DerefOf (Arg3), STR1) /* \M689.STR1 */ Arg2 [0x00] = STR1 /* \M689.STR1 */ } Case (0x03) { If (Y136) { CopyObject (DerefOf (Arg3), BUF1) /* \M689.BUF1 */ } Else { M687 (DerefOf (Arg3), RefOf (BUF1)) } Arg2 [0x00] = BUF1 /* \M689.BUF1 */ } Case (0x04) { CopyObject (DerefOf (Arg3), PAC1) /* \M689.PAC1 */ Arg2 [0x00] = PAC1 /* \M689.PAC1 */ } Case (0x11) { CopyObject (RefOf (ORF1), REF1) /* \M689.REF1 */ /*if (y522) { */ Arg2 [0x00] = REF1 /* \M689.REF1 */ /*} else { */ /* Store(DeRefof(REF1), Index(arg2, 0)) */ /*} */ } /* Unexpected Target Type */ Default { ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If (CH03 (Arg0, Z122, __LINE__, 0x00, 0x00)) { /*Exception during preparing of Target Object */ Return (0x01) } If ((Arg1 == 0x11)) { /* Reference */ Return (0x00) } Local0 = ObjectType (Arg2 [0x00]) If ((Local0 != Arg1)) { /* ObjectType of Target can not be set up */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } Return (0x00) } /* Check Target Object type is not corrupted after storing, */ /* for the computational data types verify its value against */ /* the Object-initializer value */ Method (M015, 4, Serialized) { Name (MMM2, 0x00) /* An auxiliary Object to invoke Method */ If ((Arg1 == 0x11)) { /* Target object is a reference */ /* Check that it can be used as reference */ Local0 = DerefOf (Arg2) Local3 = DerefOf (Local0) If (CH03 (Arg0, Z122, __LINE__, 0x00, Local0)) { /* Derefof caused unexpected exception */ Return (0x01) } } Else { Local0 = ObjectType (Arg2) If ((Local0 != Arg1)) { /* ObjectType of Target object is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local0, Arg1) Return (0x01) } } Switch (ToInteger (Arg1)) { Case (0x00) { Return (0x00) } Case (0x01) { Local0 = ObjectType (INT1) } Case (0x02) { Local0 = ObjectType (STR1) } Case (0x03) { Local0 = ObjectType (BUF1) } Case (0x04) { Local0 = ObjectType (PAC1) } Case (0x05) { Local0 = 0x05 } Case (0x06) { Local0 = ObjectType (DEV1) } Case (0x07) { Local0 = ObjectType (EVE1) } Case (0x08) { Local0 = ObjectType (MMM1) } Case (0x09) { Local0 = ObjectType (MTX1) } Case (0x0A) { Local0 = ObjectType (OPR1) } Case (0x0B) { Local0 = ObjectType (PWR1) } Case (0x0C) { Local0 = ObjectType (CPU1) } Case (0x0D) { Local0 = ObjectType (TZN1) } Case (0x0E) { Local0 = 0x0E } Case (0x11) { /*Store(Derefof(REF1), Local3) */ Local3 = REF1 /* \M689.REF1 */ If (CH03 (Arg0, Z122, __LINE__, 0x00, Local0)) { /* Derefof caused unexpected exception */ Return (0x01) } Return (0x00) } /* Unexpected Result Type */ Default { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If ((Local0 != Arg1)) { /* Mismatch of Target Type against the specified one */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local0, Arg1) If (STCS) { M000 (0x03, 0x01000000, Local0, Arg1) } Return (0x01) } Else { /* Check equality of the Source value to the Object-initializer one */ Switch (ToInteger (Arg1)) { Case (0x01) { If ((INT1 != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, INT1, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != INT1)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), INT1) Return (0x01) } } Case (0x02) { If ((STR1 != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, STR1, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != STR1)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), STR1) Return (0x01) } } Case (0x03) { If ((BUF1 != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, BUF1, DerefOf (Arg3)) Return (0x01) } If ((DerefOf (Arg2) != BUF1)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), BUF1) Return (0x01) } } Case (0x04) { Local0 = SizeOf (PAC1) If ((SizeOf (Arg3) != Local0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, SizeOf (Arg3), Local0) Return (0x01) } While (Local0) { Local0-- Local1 = ObjectType (DerefOf (DerefOf (Arg3) [Local0])) Local2 = ObjectType (DerefOf (PAC1 [Local0])) If ((Local1 != Local2)) { /* ObjectType is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local1, Local2) Return (0x01) } ElseIf (DerefOf (B679 [Local1])) { /* the computational data type */ If ((DerefOf (DerefOf (Arg3) [Local0]) != DerefOf (PAC1 [ Local0]))) { /* The value is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (DerefOf (Arg3) [Local0]), Local0) Return (0x01) } } } Local0 = SizeOf (PAC1) If ((SizeOf (Arg2) != Local0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, SizeOf (Arg2), Local0) Return (0x01) } While (Local0) { Local0-- Local1 = ObjectType (DerefOf (DerefOf (Arg2) [Local0])) Local2 = ObjectType (DerefOf (PAC1 [Local0])) If ((Local1 != Local2)) { /* ObjectType is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local1, Local2) Return (0x01) } ElseIf (DerefOf (B679 [Local1])) { /* the computational data type */ If ((DerefOf (DerefOf (Arg2) [Local0]) != DerefOf (PAC1 [ Local0]))) { /* The value is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (DerefOf (Arg2) [Local0]), Local0) Return (0x01) } } } } Case (0x05) { If ((DerefOf (Arg2) != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), DerefOf (Arg3)) Return (0x01) } } Case (0x08) { CopyObject (DerefOf (Arg2), MMM2) /* \M689.M015.MMM2 */ If ((MMM2 != MMM1)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, MMM2, MMM1) Return (0x01) } } Case (0x0E) { If ((DerefOf (Arg2) != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (Arg2), DerefOf (Arg3)) Return (0x01) } } } } Return (0x00) } /* Check auxiliary Target Named Object type is not corrupted, */ /* for the computational data types verify its value against */ /* the Object-initializer value */ Method (M016, 4, Serialized) { Switch (ToInteger (Arg1)) { Case (0x00) { Return (0x00) } Case (0x01) { Local0 = ObjectType (INT1) } Case (0x02) { Local0 = ObjectType (STR1) } Case (0x03) { Local0 = ObjectType (BUF1) } Case (0x04) { Local0 = ObjectType (PAC1) } Case (0x05) { Local0 = 0x05 } Case (0x06) { Local0 = ObjectType (DEV1) } Case (0x07) { Local0 = ObjectType (EVE1) } Case (0x08) { Local0 = ObjectType (MMM1) } Case (0x09) { Local0 = ObjectType (MTX1) } Case (0x0A) { Local0 = ObjectType (OPR1) } Case (0x0B) { Local0 = ObjectType (PWR1) } Case (0x0C) { Local0 = ObjectType (CPU1) } Case (0x0D) { Local0 = ObjectType (TZN1) } Case (0x0E) { Local0 = 0x0E } Case (0x11) { /*Store(Derefof(REF1), Local3) */ Local3 = REF1 /* \M689.REF1 */ If (CH03 (Arg0, Z122, __LINE__, 0x00, 0x00)) { /* Derefof caused unexpected exception */ Return (0x01) } Return (0x00) } /* Unexpected Result Type */ Default { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } } If ((Local0 != Arg1)) { /* Mismatch of Target Type against the specified one */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local0, Arg1) If (STCS) { M000 (0x03, 0x01000000, Local0, Arg1) } Return (0x01) } Else { /* Check equality of the Source value to the Object-initializer one */ Switch (ToInteger (Arg1)) { Case (0x01) { If ((INT1 != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, INT1, DerefOf (Arg3)) Return (0x01) } } Case (0x02) { If ((STR1 != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, STR1, DerefOf (Arg3)) Return (0x01) } } Case (0x03) { If ((BUF1 != DerefOf (Arg3))) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, BUF1, DerefOf (Arg3)) Return (0x01) } } Case (0x04) { Local0 = SizeOf (PAC1) If ((SizeOf (Arg3) != Local0)) { ERR (Arg0, Z122, __LINE__, 0x00, 0x00, SizeOf (Arg3), Local0) Return (0x01) } While (Local0) { Local0-- Local1 = ObjectType (DerefOf (DerefOf (Arg3) [Local0])) Local2 = ObjectType (DerefOf (PAC1 [Local0])) If ((Local1 != Local2)) { /* ObjectType is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, Local1, Local2) Return (0x01) } ElseIf (DerefOf (B679 [Local1])) { /* the computational data type */ If ((DerefOf (DerefOf (Arg3) [Local0]) != DerefOf (PAC1 [ Local0]))) { /* The value is corrupted */ ERR (Arg0, Z122, __LINE__, 0x00, 0x00, DerefOf (DerefOf (Arg3) [Local0]), Local0) Return (0x01) } } } } } } Return (0x00) } /* Update the first element of specified Package */ /* m017(, ) */ Method (M017, 2, NotSerialized) { Local0 = ObjectType (Arg1 [0x00]) If (DerefOf (B66F [Local0])) { /* Can be used in Index Operator */ Local1 = SizeOf (Arg1 [0x00]) If (Local1) { /* Update the last Member Object */ Local1-- Local2 = DerefOf (Arg1 [0x00]) [Local1] Local3 = RefOf (Local2) Local4 = DerefOf (Local2) If ((ObjectType (Local4) == 0x01)) { /* Integer */ Store (~Local4, DerefOf (Local3)) } Else { DerefOf (Local3) = Ones If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg1 [0x00])) { /* Store caused unexpected exception */ Return (0x01) } } If (Local1) { /* Update the First Member Object */ Local2 = DerefOf (Arg1 [0x00]) [0x00] Local4 = DerefOf (Local2) If ((ObjectType (Local4) == 0x01)) { /* Integer */ Store (~Local4, DerefOf (Local3)) } Else { DerefOf (Local3) = Ones If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg1 [0x00])) { /* Store caused unexpected exception */ Return (0x01) } } } } ElseIf ((Local0 == 0x04)) { /* Empty Package */ Arg1 [0x00] = Package (0x01) { "update string" } } Else { /* Empty String/Buffer */ Arg1 [0x00] = "update string" } } ElseIf (DerefOf (B674 [Local0])) { /* Non-Computational Data Objects */ Arg1 [0x00] = "update string" } Else { Store (~ToInteger (DerefOf (Arg1 [0x00])), Arg1 [ 0x00]) } If (CH03 (Arg0, Z122, __LINE__, 0x00, Arg1 [0x00])) { /* Update caused unexpected exception */ Return (0x01) } Return (0x00) } /* Test data packages for each type of the Result Object */ /* Empty Package */ Name (P000, Package (0x12){}) /* Target Objects initial values for common use */ Name (P001, Package (0x12) { 0x00, 0xFEDCBA9876543211, "target string", Buffer (0x11) { /* 0000 */ 0xC3, 0xC4, 0xC5, 0x00, 0xC6, 0xC7, 0xC8, 0xC9, // ........ /* 0008 */ 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xC0, 0xC1, // ........ /* 0010 */ 0xC2 // . }, Package (0x02) { "target package", 0xFEDCBA9876543210 }, Buffer (0x09) { /* 0000 */ 0x9A, 0x8A, 0x7A, 0x6A, 0x5A, 0x4A, 0x3A, 0x2A, // ..zjZJ:* /* 0008 */ 0x1A // . }, 0x00, 0x00, Package (0x02) { MMMY, "ff0Y" }, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x9A, 0x8A, 0x7A, 0x6A, 0x5A, 0x4A, 0x3A, 0x2A, // ..zjZJ:* /* 0008 */ 0x1A // . }, 0x00, 0x00, 0x00 }) /* Uninitialized */ Name (P002, Package (0x06) { /* Type of the Result(Source) Object */ 0x00, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Integer */ Name (P132, Package (0x06) { /* Type of the Result(Source) Object */ 0x01, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "76543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76 // .2Tv }, 0x00, 0x00, 0x00 } }) Name (P164, Package (0x06) { /* Type of the Result(Source) Object */ 0x01, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0xFEDCBA9876543210, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0xFEDCBA9876543210, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "FEDCBA9876543210", Buffer (0x11) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE // .2Tv.... }, 0x00, 0x00, 0x00 } }) /* String */ Name (P201, Package (0x06) { /* Type of the Result(Source) Object */ 0x02, /* Number of different initial values */ 0x01, /* SRC0 initial value */ "\x01", /* Target Objects initial values */ P001, /* Benchmark Result object value */ "\x01", /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x00, "\x01", Buffer (0x11) { 0x01 // . }, 0x00, Buffer (0x09) { 0x01 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x01 // . }, 0x00, 0x00, 0x00 } }) Name (P202, Package (0x06) { /* Type of the Result(Source) Object */ 0x02, /* Number of different initial values */ 0x02, /* SRC0 initial value */ "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", /* Target Objects initial values */ P001, /* Benchmark Result object value */ "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x00, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", Buffer (0x11) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31 // 1 }, 0x00, Buffer (0x09) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x09 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x09 // . }, 0x00, 0x00, 0x00 } }) Name (P232, Package (0x05) { /* Type of the Result(Source) Object */ 0x02, /* Number of different initial values */ 0x02, Package (0x06) { /* Type of the Result(Source) Object */ 0x03, /* Number of different initial values */ 0x00, /* SRC0 initial value */ "fedcba98 string", /* Target Objects initial values */ P001, /* Benchmark Result object value */ "fedcba98 string", /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA98, "fedcba98 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x20, 0x73, 0x74, 0x72, 0x69, 0x6E, 0x67 // string }, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38 // fedcba98 }, 0x00, 0x00, 0x00 } }, P201, P202 }) Name (P264, Package (0x05) { /* Type of the Result(Source) Object */ 0x02, /* Number of different initial values */ 0x03, Package (0x06) { /* Type of the Result(Source) Object */ 0x02, /* Number of different initial values */ 0x00, /* SRC0 initial value */ "fedcba9876543210 string", /* Target Objects initial values */ P001, /* Benchmark Result object value */ "fedcba9876543210 string", /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xFEDCBA9876543210, "fedcba9876543210 string", Buffer (0x11) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x30, // 76543210 /* 0010 */ 0x20 // }, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x66, 0x65, 0x64, 0x63, 0x62, 0x61, 0x39, 0x38, // fedcba98 /* 0008 */ 0x17 // . }, 0x00, 0x00, 0x00 } }, P201, P202 }) /* Buffer */ Name (P301, Package (0x06) { /* Type of the Result(Source) Object */ 0x03, /* Number of different initial values */ 0x01, /* SRC0 initial value */ Buffer (0x43) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43 // ABC }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ Buffer (0x43) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43 // ABC }, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x0807060504030201, "01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43", Buffer (0x11) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11 // . }, 0x00, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09 // . }, 0x00, 0x00, 0x00 } }) Name (P300, Package (0x04) { /* Type of the Result(Source) Object */ 0x03, /* Number of different initial values */ 0x02, Package (0x06) { /* Type of the Result(Source) Object */ 0x03, /* Number of different initial values */ 0x00, /* SRC0 initial value */ Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x88 // . }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x88 // . }, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0xF1F2F3F4F5F6F7F8, "F8 F7 F6 F5 F4 F3 F2 F1 88", Buffer (0x11) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x88 // . }, 0x00, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x08 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0xF8, 0xF7, 0xF6, 0xF5, 0xF4, 0xF3, 0xF2, 0xF1, // ........ /* 0008 */ 0x08 // . }, 0x00, 0x00, 0x00 } }, P301 }) /* Package */ Name (P401, Package (0x06) { /* Type of the Result(Source) Object */ 0x04, /* Number of different initial values */ 0x01, /* SRC0 initial value */ Package (0x01) { "test p401 package" }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ Package (0x01) { "test p401 package" }, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x00, 0x00, 0x00, Package (0x01) { "test p401 package" }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }) Name (P400, Package (0x04) { /* Type of the Result(Source) Object */ 0x04, /* Number of different initial values */ 0x02, Package (0x06) { /* Type of the Result(Source) Object */ 0x04, /* Number of different initial values */ 0x00, /* SRC0 initial value */ Package (0x03) { 0xFEDCBA987654321F, "test package", Buffer (0x09) { /* 0000 */ 0x13, 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, // ........ /* 0008 */ 0x0B // . } }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ Package (0x03) { 0xFEDCBA987654321F, "test package", Buffer (0x09) { /* 0000 */ 0x13, 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, // ........ /* 0008 */ 0x0B // . } }, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x00, 0x00, 0x00, Package (0x03) { 0xFEDCBA987654321F, "test package", Buffer (0x09) { /* 0000 */ 0x13, 0x12, 0x11, 0x10, 0x0F, 0x0E, 0x0D, 0x0C, // ........ /* 0008 */ 0x0B // . } }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }, P401 }) /* Field Unit */ Name (P500, Package (0x06) { /* Type of the Result(Source) Object */ 0x05, /* Number of different initial values */ 0x01, /* SRC0 initial value */ Package (0x02) { 0x00, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . } }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x2535455565758595, "95 85 75 65 55 45 35 25 15", Buffer (0x11) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }, 0x00, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }, 0x00, 0x00, 0x00 } }) /* Device */ Name (P600, Package (0x06) { /* Type of the Result(Source) Object */ 0x06, /* Number of different initial values */ 0x01, /* SRC0 initial value */ Buffer (0x02) { 0x79, 0x00 // y. }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Event */ Name (P700, Package (0x06) { /* Type of the Result(Source) Object */ 0x07, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Method */ Name (P800, Package (0x06) { /* Type of the Result(Source) Object */ 0x08, /* Number of different initial values */ 0x01, /* SRC0 initial value */ Package (0x02) { MMMX, "ff0X" }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ "ff0X", /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x0FF0, "ff0X", Buffer (0x11) { 0x66, 0x66, 0x30, 0x58 // ff0X }, 0x00, Buffer (0x09) { 0x66, 0x66, 0x30, 0x58 // ff0X }, 0x00, 0x00, "ff0X", 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x66, 0x66, 0x30, 0x58 // ff0X }, 0x00, 0x00, 0x00 } }) /* Mutex */ Name (P900, Package (0x06) { /* Type of the Result(Source) Object */ 0x09, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Operation Region */ Name (PA00, Package (0x06) { /* Type of the Result(Source) Object */ 0x0A, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Power Resource */ Name (PB00, Package (0x06) { /* Type of the Result(Source) Object */ 0x0B, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Processor */ Name (PC00, Package (0x06) { /* Type of the Result(Source) Object */ 0x0C, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Thermal Zone */ Name (PD00, Package (0x06) { /* Type of the Result(Source) Object */ 0x0D, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Buffer Field */ Name (PE00, Package (0x06) { /* Type of the Result(Source) Object */ 0x0E, /* Number of different initial values */ 0x00, /* SRC0 initial value */ Package (0x02) { 0x00, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . } }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x2535455565758595, "95 85 75 65 55 45 35 25 15", Buffer (0x11) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }, 0x00, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { /* 0000 */ 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25, // ..ueUE5% /* 0008 */ 0x15 // . }, 0x00, 0x00, 0x00 } }) Name (PE01, Package (0x06) { /* Type of the Result(Source) Object */ 0x0E, /* Number of different initial values */ 0x01, /* SRC0 initial value */ Package (0x02) { 0x01, Buffer (0x08) { 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25 // ..ueUE5% } }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ Buffer (0x08) { 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25 // ..ueUE5% }, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x2535455565758595, "95 85 75 65 55 45 35 25", Buffer (0x11) { 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25 // ..ueUE5% }, 0x00, Buffer (0x09) { 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25 // ..ueUE5% }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25 // ..ueUE5% }, 0x00, 0x00, 0x00 } }) Name (PE02, Package (0x06) { /* Type of the Result(Source) Object */ 0x0E, /* Number of different initial values */ 0x01, /* SRC0 initial value */ Package (0x02) { 0x01, Buffer (0x08) { 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25 // ..ueUE5% } }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x2535455565758595, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, 0x2535455565758595, "2535455565758595", Buffer (0x11) { 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25 // ..ueUE5% }, 0x00, Buffer (0x09) { 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25 // ..ueUE5% }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x95, 0x85, 0x75, 0x65, 0x55, 0x45, 0x35, 0x25 // ..ueUE5% }, 0x00, 0x00, 0x00 } }) Name (PE03, Package (0x06) { /* Type of the Result(Source) Object */ 0x0E, /* Number of different initial values */ 0x02, /* SRC0 initial value */ Package (0x02) { 0x02, Buffer (0x04) { 0x95, 0x85, 0x75, 0x65 // ..ue } }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ Buffer() {0x95, 0x85, 0x75, 0x65}, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, Buffer() {0x95, 0x85, 0x75, 0x65}, "65758595", Buffer (0x11) { 0x95, 0x85, 0x75, 0x65 // ..ue }, 0x00, Buffer (0x09) { 0x95, 0x85, 0x75, 0x65 // ..ue }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x95, 0x85, 0x75, 0x65 // ..ue }, 0x00, 0x00, 0x00 } }) Name (PE04, Package (0x06) { /* Type of the Result(Source) Object */ 0x0E, /* Number of different initial values */ 0x02, /* SRC0 initial value */ Package (0x02) { 0x02, Buffer (0x04) { 0x95, 0x85, 0x75, 0x65 // ..ue } }, /* Target Objects initial values */ P001, /* Benchmark Result object value */ Buffer() {0x95, 0x85, 0x75, 0x65}, /* Benchmark Result object converted to Target type values */ Package (0x12) { 0x00, Buffer() {0x95, 0x85, 0x75, 0x65}, "0000000065758595", Buffer (0x11) { 0x95, 0x85, 0x75, 0x65 // ..ue }, 0x00, Buffer (0x09) { 0x95, 0x85, 0x75, 0x65 // ..ue }, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, Buffer (0x09) { 0x95, 0x85, 0x75, 0x65 // ..ue }, 0x00, 0x00, 0x00 } }) Name (PE32, Package (0x05) { /* Type of the Result(Source) Object */ 0x0E, /* Number of different initial values */ 0x03, /* Data */ PE00, PE01, PE03 }) Name (PE64, Package (0x05) { /* Type of the Result(Source) Object */ 0x0E, /* Number of different initial values */ 0x03, /* Data */ PE00, PE02, PE04 }) /* DDB Handle */ Name (PF00, Package (0x06) { /* Type of the Result(Source) Object */ 0x0F, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Debug */ Name (PG00, Package (0x06) { /* Type of the Result(Source) Object */ 0x10, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) /* Reference */ Name (PH00, Package (0x06) { /* Type of the Result(Source) Object */ 0x11, /* Number of different initial values */ 0x01, /* SRC0 initial value */ 0x00, /* Target Objects initial values */ P001, /* Benchmark Result object value */ 0x00, /* Benchmark Result object converted to Target type values */ P000 }) Name (P320, Package (0x12) { P002, P132, P232, P300, P400, P500, P600, P700, P800, P900, PA00, PB00, PC00, PD00, PE32, PF00, PG00, PH00 }) Name (P640, Package (0x12) { P002, P164, P264, P300, P400, P500, P600, P700, P800, P900, PA00, PB00, PC00, PD00, PE64, PF00, PG00, PH00 }) /* m020(, , , */ /* , , ) */ Method (M020, 6, Serialized) { /* Initialize statistics */ M001 () Name (SCL0, Buffer (0x12) { /* 0000 */ 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }) Name (LPN0, 0x12) Name (LPC0, 0x00) Name (LPN1, 0x00) Name (LPC1, 0x00) Name (LPN2, 0x00) Name (LPC2, 0x00) SRMT (Arg0) If ((Arg1 > 0x01)) { /* Unexpected Kind of Op (0 - Store, ...) */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg1, 0x00) Return (0x01) } If ((Arg5 > 0x06)) { /* Unexpected Kind of Source-Target pair */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg5, 0x00) Return (0x01) } /* Flags of Store from and to Named to check */ /* exceptional conditions on storing */ If (Arg1) { Local0 = 0x00 Local1 = 0x00 } Else { Local0 = ((Arg5 == 0x00) || (Arg5 == 0x01)) Local0 = (Local0 || (Arg5 == 0x04)) Local0 = (Local0 || (Arg5 == 0x05)) Local1 = ((Arg5 == 0x00) || (Arg5 == 0x02)) } /* Enumerate Target types */ While (LPN0) { If ((DerefOf (B670 [LPC0]) && DerefOf (Arg3 [LPC0]))) { /* Not invalid type of the Target Object to store in */ LPN1 = 0x12 LPC1 = 0x00 /* Enumerate Source types */ While (LPN1) { If ((DerefOf (B671 [LPC1]) && DerefOf (Arg4 [LPC1]))) { /* Not invalid type of the result Object to be stored */ If (Arg2) { /* Skip cases without exceptional conditions */ If (!M685 (Arg1, LPC0, LPC1, Local0, Local1)) { LPN1-- LPC1++ Continue } } ElseIf /* Skip cases with exceptional conditions */ (M685 (Arg1, LPC0, LPC1, Local0, Local1)) { LPN1-- LPC1++ Continue } If (F64) { Local2 = DerefOf (P640 [LPC1]) } Else { Local2 = DerefOf (P320 [LPC1]) } Local3 = DerefOf (Local2 [0x00]) If ((Local3 != LPC1)) { /* Unexpected data package */ ERR (Concatenate (Arg0, TERR), Z122, __LINE__, 0x00, 0x00, Arg1, LPC1) Return (0x01) } Local3 = DerefOf (Local2 [0x01]) LPN2 = Local3 LPC2 = 0x00 /* Enumerate Result values */ While (LPN2) { If ((Local3 > 0x01)) { /* Complex test data */ Local4 = Local2 [(LPC2 + 0x02)] } Else { Local4 = RefOf (Local2) } If ((Arg5 == 0x00)) { /* Named-Named */ M008 (Concatenate (Arg0, "-m008"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } ElseIf ((Arg5 == 0x01)) { /* Named-LocalX */ M009 (Concatenate (Arg0, "-m009"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } ElseIf ((Arg5 == 0x02)) { /* LocalX-Named */ M00A (Concatenate (Arg0, "-m00a"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } ElseIf ((Arg5 == 0x03)) { /* LocalX-LocalX */ M00B (Concatenate (Arg0, "-m00b"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } ElseIf ((Arg5 == 0x04)) { /* Named-ArgX(Named read-only) */ M00C (Concatenate (Arg0, "-m00c"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } ElseIf ((Arg5 == 0x05)) { /* Named-ArgX(Named by reference) */ If (Y900) { If (((LPC1 == 0x04) && /* Target type is 1-3 */ DerefOf (Index (Buffer (0x12) { /* 0000 */ 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00 // .. }, LPC0)))) { If (Y366) { M00D (Concatenate (Arg0, "-m00d"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } } Else { M00D (Concatenate (Arg0, "-m00d"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } } ElseIf /* if (y900) */ (((LPC1 == 0x04) && /* Target type is 1-3 */ DerefOf (SCL0 [LPC0]))) { If (Y366) { M00D (Concatenate (Arg0, "-m00d"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } } Else { M00D (Concatenate (Arg0, "-m00d"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } } ElseIf ((Arg5 == 0x06)) { /* LocalX-Element of Package */ M00E (Concatenate (Arg0, "-m00e"), 0x00, LPC0, LPC1, Arg1, Arg2, DerefOf (Local4)) } LPN2-- LPC2++ } } LPN1-- LPC1++ } } LPN0-- LPC0++ } /* Output statistics */ M002 (Concatenate (DerefOf (PAC5 [Arg5]), DerefOf (PAC4 [Arg1]) )) Return (0x00) } Concatenate (Arg0, "-m020", Arg0) /* Named-Named */ M020 (Concatenate (Arg0, "-NN"), Arg1, Arg2, B676, B676, 0x00) // TODO: /* Named-LocalX */ M020 (Concatenate (Arg0, "-NL"), Arg1, Arg2, B677, B676, 0x01) // TODO: /* LocalX-Named */ M020 (Concatenate (Arg0, "-LN"), Arg1, Arg2, B676, B677, 0x02) /* LocalX-LocalX */ M020 (Concatenate (Arg0, "-LL"), Arg1, Arg2, B677, B677, 0x03) /* Named-ArgX(Named read-only) */ M020 (Concatenate (Arg0, "-NA-RO"), Arg1, Arg2, B676, B676, 0x04) // TODO: /* Named-ArgX(Named by reference) */ M020 (Concatenate (Arg0, "-NA-REF"), Arg1, Arg2, B676, B676, 0x05) // TODO: /* LocalX-Element of Package */ If ((Arg1 == 0x00)) { M020 (Concatenate (Arg0, "-LP"), Arg1, Arg2, B67D, B677, 0x06) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/result/Makefile0000700000175000017500000000011414773714155027233 0ustar ivanhuivanhu# result MDIRS = tests TOP= ../../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/misc/0000700000175000017500000000000014773714153025207 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/misc/RUN.asl0000700000175000017500000000361214773714153026361 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Miscellaneous not systematized tests", TCLC, 0x00, W00E)) { MSC0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/misc/MAIN.asl0000700000175000017500000000405314773714153026441 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("misc", "DSDT", 1, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/complex/misc/misc.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/complex/misc/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/misc/Makefile0000700000175000017500000000021414773714153026647 0ustar ivanhuivanhu# misc AMLMOD= misc COLL= ../.. ADD_ASLFLAGS+=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/misc/misc.asl0000700000175000017500000012223514773714153026653 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Miscellaneous not systematized tests */ Name (Z054, 0x36) /* Looks like Default is at all not implemented */ Method (M110, 1, Serialized) { Local0 = 0x00 Local1 = 0x00 /* Bug XXX. This Switch code below causes ASL-compiler to fail */ /* for full.asl file with the diagnostics like this: */ /* nssearch-0397: *** Error: NsSearchAndEnter: */ /* Bad character in ACPI Name: 5B5F545F */ /* and fall into recursion: */ /* Remark 3040 - Recursive method call ^ (ERR_) */ /* Note: (0x5B5F545F is equal to "[_T_") */ Switch (ToInteger (Local1)) { Case (0x05) { Local0 = 0x05 } Default { Local0 = 0x01 } } If ((Local0 != 0x01)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x00) } } /* Concatenate operator affects the object passed as Source2 parameter */ Method (M111, 1, NotSerialized) { Local5 = Concatenate ("qwertyuiop", Arg0) } Method (M112, 1, NotSerialized) { Local0 = 0x00 M111 (Local0) If ((Local0 != 0x00)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x00) } Local0 = 0x00 Local5 = Concatenate ("qwertyuiop", Local0) If ((Local0 != 0x00)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x00) } } /* Unexpected value returned by ObjectType for Field Unit objects */ /* The field passed as explicit reference (RefOf) */ Method (M113, 1, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 32 } Local0 = ObjectType (RefOf (F000)) If ((Local0 != 0x05)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x00) } } /* The BankField corrupts the contents of OperationRegion */ Method (M114, 1, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { BNK0, 8 } BankField (R000, BNK0, 0x00, ByteAcc, NoLock, Preserve) { Offset (0x10), BF00, 8 } BankField (R000, BNK0, 0x01, ByteAcc, NoLock, Preserve) { Offset (0x11), BF01, 8 } /* Deal with 0-th bank layout: */ BNK0 = 0x00 If ((BNK0 != 0x00)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, BNK0, 0x00) } BF00 = 0x87 If ((BNK0 != 0x00)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, BNK0, 0x00) } If ((BF00 != 0x87)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, BF00, 0x87) } /* Deal with 1-th bank layout: */ BNK0 = 0x01 If ((BNK0 != 0x01)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, BNK0, 0x01) } BF01 = 0x96 If (X192) { If ((BNK0 != 0x01)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, BNK0, 0x01) } } If ((BF01 != 0x96)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, BF01, 0x96) } } /* ToBuffer caused destroying of source buffer passed by Data parameter */ Method (M115, 1, NotSerialized) { Local0 = Buffer (0x04) { 0x0A, 0x0B, 0x0C, 0x0D // .... } Local1 = ObjectType (Local0) If ((Local1 != C00B)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local1, 0x00) } ToBuffer (Local0, Local2) Local3 = 0xAA Local3 = ObjectType (Local0) If ((Local3 != C00B)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local3, 0x00) } } /* ObjectType() operator should be allowed to deal with the */ /* uninitialized objects. */ /* Uncomment this when the problem will be fixed and compile */ /* will not fail in this case like it do now: "Method local */ /* variable is not initialized (Local0)". */ Method (M116, 1, NotSerialized) { Local1 = ObjectType (Local0) } /* Now, this cause exception but should not */ Method (M117, 2, Serialized) { If (Arg1) { Local0 = 0x00 } CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Local1 = ObjectType (Local0) If ((Local1 != 0x00)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local1, 0x00) } CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) } Method (M118, 1, NotSerialized) { M117 (Arg0, 0x00) } /* * Bug 12, Bugzilla 5360. * DerefOf. If the Source evaluates to a string, the string is evaluated * as an ASL name (relative to the current scope) and the contents of that * object are returned. */ Method (M119, 1, Serialized) { Name (B000, Buffer (0x08) { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }) Local0 = "b000" Debug = "================ 0:" Local1 = DerefOf (Local0) Debug = "================ 1:" Local2 = ObjectType (Local1) If ((Local2 != 0x03)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local2, 0x00) } Debug = "================ 2:" Debug = Local1 Debug = Local2 CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) Return (0x00) } /* // Currently, incorrect test // The size of Strings in Package is determined incorrectly Method(m11a, 1) { Name(p000, Package() { "012", "0123456789abcdef", Buffer() {17,28,69,11,22,34,35,56,67,11}, "012345", }) Store(DeRefOf(Index(p000, 1)), Local0) Store(0, Index(Local0, 5)) Store(0, Index(p000, 1)) Store(DeRefOf(Index(p000, 1)), Local0) // Store(0, Index(Local0, 5)) Store("=================:", Debug) Store(Local0, Debug) // 0 Store(DeRefOf(Index(p000, 0)), Local2) Store(SizeOf(Local2), Local3) Store(Local3, Debug) if (LNotEqual(Local3, 3)) { err(arg0, z054, __LINE__, 0, 0, Local3, 3) } // 1 Store(DeRefOf(Index(p000, 1)), Local2) Store(SizeOf(Local2), Local3) Store(Local3, Debug) if (LNotEqual(Local3, 9)) { err(arg0, z054, __LINE__, 0, 0, Local3, 9) } // 2 Store(DeRefOf(Index(p000, 2)), Local2) Store(SizeOf(Local2), Local3) Store(Local3, Debug) if (LNotEqual(Local3, 6)) { err(arg0, z054, __LINE__, 0, 0, Local3, 6) } Store(SizeOf(p000), Local0) Store(Local0, Debug) if (LNotEqual(Local0, 3)) { err(arg0, z054, __LINE__, 0, 0, Local0, 3) } } */ /* // ATTENTION: such type tests have to be added and extended Method(m11b, 1) { Name(p000, Package() { 0x12345678, 0x90abcdef, }) Name(b000, Buffer() {0x78,0x56,0x34,0x12, 0xef,0xcd,0xab,0x90}) Store(DeRefOf(Index(p000, 0)), Local7) if (LEqual(b000, Local7)) { err(arg0, z054, __LINE__, 0, 0, b000, Local7) } if (LEqual(Local7, b000)) { err(arg0, z054, __LINE__, 0, 0, Local7, b000) } return (0) } */ /* Bug 54: All the ASL Operators which deal with at least two Buffer type */ /* objects cause unexpected exceptions in cases when both Buffer type objects */ /* are passed immediately */ Method (M11C, 1, Serialized) { CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Store ((Buffer (0x01) { 0x79 // y } + Buffer (0x01) { 0x79 // y }), Local5) CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) } /* Bug 57: The empty Return operator (without specifying the returning value) */ /* is processed incorrectly */ Method (M11D, 1, NotSerialized) { Method (M11E, 2, NotSerialized) { If (Arg1) { Return (0x1234) /* ASL-compiler report Warning in this case */ /* Store("ERROR 0: m121, after Return !!!", Debug) */ } ERR (Arg0, Z054, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (0x5678) } Method (M11F, 2, NotSerialized) { If (Arg1) { Return ( /* ASL-compiler DOESN'T report Warning in this case!!! */ /* And the Store operator below is actually processed!!! */ Zero) ERR (Arg0, Z054, __LINE__, 0x00, 0x00, 0x00, 0x00) } ERR (Arg0, Z054, __LINE__, 0x00, 0x00, 0x00, 0x00) Return (Zero) } Local7 = M11E (Arg0, 0x01) M11F (Arg0, 0x01) Return (0x00) } /* * Obsolete: * Bug 59: The String to Buffer Rule from the Table 17-8 "Object Conversion * Rules" says "If the string is shorter than the buffer, the buffer size is * reduced". * Updated specs 12.03.05: * "If the string is shorter than the buffer, * the remaining buffer bytes are set to zero". */ Method (M11E, 1, Serialized) { Name (STR0, "\x01\x02") Name (BUF0, Buffer (0x04) { 0x03, 0x04, 0x05, 0x06 // .... }) BUF0 = STR0 /* \M11E.STR0 */ /* * Obsolete: * * if (LNotEqual(Sizeof(buf0), 3)) { * // Error: length of the buffer not reduced to the stored string * err(arg0, z054, __LINE__, 0, 0, 0, 0) * } * * New: */ If ((BUF0 != Buffer (0x04) { 0x01, 0x02, 0x00, 0x00 // .... })) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, BUF0, Buffer (0x04) { 0x01, 0x02, 0x00, 0x00 // .... }) } Return (0x00) } /* Bug 65: The Buffer Field type objects should be passed */ /* to Methods without any conversion, but instead */ /* they are converted to Buffers or Integers depending */ /* on the size of the Buffer Field object and the */ /* run mode (32-bit or 64/bit mode). */ /* */ /* CANCELED: now it should perform opposite assertion because */ /* this bug was canceled. */ Method (M11F, 1, Serialized) { Name (B000, Buffer (0xC8){}) CreateField (B000, 0x00, 0x1F, BF00) CreateField (B000, 0x1F, 0x20, BF01) CreateField (B000, 0x3F, 0x21, BF02) CreateField (B000, 0x60, 0x3F, BF03) CreateField (B000, 0x9F, 0x40, BF04) CreateField (B000, 0xDF, 0x41, BF05) Method (M000, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != Arg2)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (Arg1) If ((Local0 != Arg3)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, Arg3) } } Method (M001, 1, NotSerialized) { Local0 = ObjectType (BF00) If ((Local0 != 0x0E)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x0E) } Local0 = ObjectType (BF01) If ((Local0 != 0x0E)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x0E) } Local0 = ObjectType (BF02) If ((Local0 != 0x0E)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x0E) } Local0 = ObjectType (BF03) If ((Local0 != 0x0E)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x0E) } Local0 = ObjectType (BF04) If ((Local0 != 0x0E)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x0E) } Local0 = ObjectType (BF05) If ((Local0 != 0x0E)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x0E) } M000 (Arg0, BF00, 0x03, 0x04) M000 (Arg0, BF01, 0x03, 0x04) M000 (Arg0, BF02, 0x03, 0x05) M000 (Arg0, BF03, 0x03, 0x08) M000 (Arg0, BF04, 0x03, 0x08) M000 (Arg0, BF05, 0x03, 0x09) } M001 (Arg0) } /* Bug 66: The Field Unit type objects should be passed */ /* to Methods without any conversion, but instead */ /* they are converted to Buffers or Integers depending */ /* on the size of the Buffer Field object and the */ /* run mode (32-bit or 64/bit mode). */ /* */ /* CANCELED: now it should perform opposite assertion because */ /* this bug was canceled. */ Method (M120, 1, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 31, F001, 32, F002, 33, F003, 63, F004, 64, F005, 65 } Method (M000, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != Arg2)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (Arg1) If ((Local0 != Arg3)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, Arg3) } } Method (M001, 1, NotSerialized) { Local0 = ObjectType (F000) If ((Local0 != 0x05)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x05) } Local0 = ObjectType (F001) If ((Local0 != 0x05)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x05) } Local0 = ObjectType (F002) If ((Local0 != 0x05)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x05) } Local0 = ObjectType (F003) If ((Local0 != 0x05)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x05) } Local0 = ObjectType (F004) If ((Local0 != 0x05)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x05) } Local0 = ObjectType (F005) If ((Local0 != 0x05)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x05) } If (F64) { M000 (Arg0, F000, 0x01, 0x08) M000 (Arg0, F001, 0x01, 0x08) M000 (Arg0, F002, 0x01, 0x08) M000 (Arg0, F003, 0x01, 0x08) M000 (Arg0, F004, 0x01, 0x08) M000 (Arg0, F005, 0x03, 0x09) } Else { M000 (Arg0, F000, 0x01, 0x04) M000 (Arg0, F001, 0x01, 0x04) M000 (Arg0, F002, 0x03, 0x05) M000 (Arg0, F003, 0x03, 0x08) M000 (Arg0, F004, 0x03, 0x08) M000 (Arg0, F005, 0x03, 0x09) } } M001 (Arg0) } /* Bug 67: The Buffer Field type objects should be RETURNED */ /* by Methods without any conversion, but instead */ /* they are converted to Buffers or Integers depending */ /* on the size of the Buffer Field object and the */ /* run mode (32-bit or 64/bit mode). */ /* */ /* CANCELED: now it should perform opposite assertion because */ /* this bug was canceled. */ Method (M121, 1, Serialized) { Name (B000, Buffer (0xC8){}) CreateField (B000, 0x00, 0x1F, BF00) CreateField (B000, 0x1F, 0x20, BF01) CreateField (B000, 0x3F, 0x21, BF02) CreateField (B000, 0x60, 0x3F, BF03) CreateField (B000, 0x9F, 0x40, BF04) CreateField (B000, 0xDF, 0x41, BF05) Method (M000, 1, NotSerialized) { If ((Arg0 == 0x00)) { Return (BF00) /* \M121.BF00 */ } ElseIf ((Arg0 == 0x01)) { Return (BF01) /* \M121.BF01 */ } ElseIf ((Arg0 == 0x02)) { Return (BF02) /* \M121.BF02 */ } ElseIf ((Arg0 == 0x03)) { Return (BF03) /* \M121.BF03 */ } ElseIf ((Arg0 == 0x04)) { Return (BF04) /* \M121.BF04 */ } ElseIf ((Arg0 == 0x05)) { Return (BF05) /* \M121.BF05 */ } Return ("qw") } Method (M001, 4, NotSerialized) { Local1 = M000 (Arg1) Local0 = ObjectType (Local1) If ((Local0 != Arg2)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (Local1) If ((Local0 != Arg3)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, Arg3) } } Method (M002, 1, NotSerialized) { M001 (Arg0, 0x00, 0x03, 0x04) M001 (Arg0, 0x01, 0x03, 0x04) M001 (Arg0, 0x02, 0x03, 0x05) M001 (Arg0, 0x03, 0x03, 0x08) M001 (Arg0, 0x04, 0x03, 0x08) M001 (Arg0, 0x05, 0x03, 0x09) } M002 (Arg0) } /* Bug 68: The Field Unit type objects should be RETURNED */ /* by Methods without any conversion, but instead */ /* they are converted to Buffers or Integers depending */ /* on the size of the Buffer Field object and the */ /* run mode (32-bit or 64/bit mode). */ /* */ /* CANCELED: now it should perform opposite assertion because */ /* this bug was canceled. */ Method (M122, 1, Serialized) { OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 31, F001, 32, F002, 33, F003, 63, F004, 64, F005, 65 } Method (M000, 1, NotSerialized) { If ((Arg0 == 0x00)) { Return (F000) /* \M122.F000 */ } ElseIf ((Arg0 == 0x01)) { Return (F001) /* \M122.F001 */ } ElseIf ((Arg0 == 0x02)) { Return (F002) /* \M122.F002 */ } ElseIf ((Arg0 == 0x03)) { Return (F003) /* \M122.F003 */ } ElseIf ((Arg0 == 0x04)) { Return (F004) /* \M122.F004 */ } ElseIf ((Arg0 == 0x05)) { Return (F005) /* \M122.F005 */ } Return ("qw") } Method (M001, 4, NotSerialized) { Local1 = M000 (Arg1) Local0 = ObjectType (Local1) If ((Local0 != Arg2)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, Arg2) } Local0 = SizeOf (Local1) If ((Local0 != Arg3)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, Arg3) } } Method (M002, 1, NotSerialized) { If (F64) { M001 (Arg0, 0x00, 0x01, 0x08) M001 (Arg0, 0x01, 0x01, 0x08) M001 (Arg0, 0x02, 0x01, 0x08) M001 (Arg0, 0x03, 0x01, 0x08) M001 (Arg0, 0x04, 0x01, 0x08) M001 (Arg0, 0x05, 0x03, 0x09) } Else { M001 (Arg0, 0x00, 0x01, 0x04) M001 (Arg0, 0x01, 0x01, 0x04) M001 (Arg0, 0x02, 0x03, 0x05) M001 (Arg0, 0x03, 0x03, 0x08) M001 (Arg0, 0x04, 0x03, 0x08) M001 (Arg0, 0x05, 0x03, 0x09) } } M002 (Arg0) } /* Bug 30. This test may be removed there after */ /* the Field relative tests will be implemented. */ /* Caused crash. */ Method (M123, 1, NotSerialized) { Method (M000, 0, Serialized) { /* Field Unit */ OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 8, F001, 16, F002, 32, F003, 33, F004, 1, F005, 64 } Debug = "------------ Fields:" Debug = F000 /* \M123.M000.F000 */ Debug = F001 /* \M123.M000.F001 */ Debug = F002 /* \M123.M000.F002 */ Debug = F003 /* \M123.M000.F003 */ Debug = F004 /* \M123.M000.F004 */ Debug = F005 /* \M123.M000.F005 */ Debug = "------------." Return (0x00) } Method (M001, 0, Serialized) { /* Field Unit */ OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 8, F001, 16, F002, 32, F003, 33, F004, 7, F005, 64 } Debug = "------------ Fields:" Debug = F000 /* \M123.M001.F000 */ Debug = F001 /* \M123.M001.F001 */ Debug = F002 /* \M123.M001.F002 */ Debug = F003 /* \M123.M001.F003 */ Debug = F004 /* \M123.M001.F004 */ Debug = F005 /* \M123.M001.F005 */ Debug = "------------." Return (0x00) } M000 () M001 () Return (0x00) } /* Bug 81. */ Method (M124, 1, NotSerialized) { Method (M000, 0, NotSerialized) { Return (0x12345678) } Method (M001, 1, NotSerialized) { Return (0x12345678) } CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) Local0 = ObjectType (M000) If ((Local0 != C010)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, C010) } /* Bug 81. */ /* * Removed, invalid test. * Compiler disallow method invocation as an operand to ObjectType. */ /* Nov. 2012: Method invocation as arg to ObjectType is now illegal */ /*Store(ObjectType(m000()), Local0) */ /*if (LNotEqual(Local0, c009)) { */ /* err(arg0, z054, __LINE__, 0, 0, Local0, c009) */ /*} */ /* */ /*Store(ObjectType(m001(123)), Local1) */ /*if (LNotEqual(Local1, c009)) { */ /* err(arg0, z054, __LINE__, 0, 0, Local1, c009) */ /*} */ /* */ /*CH03(arg0, z054, 0x106, __LINE__, 0) */ } /* * Bug 117. Modification of the duplicated String * modifies the initial String Object also. * * This test should be a part of another complex test. * * New objects creation and safety of the source * objects referred as parameters to operators. */ Method (M125, 1, NotSerialized) { Method (M001, 1, Serialized) { Name (S000, "String") Local0 = S000 /* \M125.M001.S000 */ Local0 [0x03] = 0x61 If ((Local0 != "Strang")) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, "Strang") } If ((S000 != "String")) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, S000, "String") } } Method (M002, 1, Serialized) { Name (B000, Buffer (0x06) { 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5 // ...... }) Local0 = B000 /* \M125.M002.B000 */ Local0 [0x03] = 0x61 If ((Local0 != Buffer (0x06) { 0xA0, 0xA1, 0xA2, 0x61, 0xA4, 0xA5 // ...a.. })) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, Buffer (0x06) { 0xA0, 0xA1, 0xA2, 0x61, 0xA4, 0xA5 // ...a.. }) } If ((B000 != Buffer (0x06) { 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5 // ...... })) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, B000, Buffer (0x06) { 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5 // ...... }) } } Method (M003, 1, Serialized) { Name (P000, Package (0x06) { 0xFFF0, 0xFFF1, 0xFFF2, 0xFFF3, 0xFFF4, 0xFFF5 }) Local0 = P000 /* \M125.M003.P000 */ Local0 [0x03] = 0x61 If ((DerefOf (Local0 [0x00]) != 0xFFF0)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (Local0 [0x00]), 0xFFF0) } If ((DerefOf (Local0 [0x01]) != 0xFFF1)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (Local0 [0x01]), 0xFFF1) } If ((DerefOf (Local0 [0x02]) != 0xFFF2)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (Local0 [0x02]), 0xFFF2) } If ((DerefOf (Local0 [0x03]) != 0x61)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (Local0 [0x03]), 0x61) } If ((DerefOf (Local0 [0x04]) != 0xFFF4)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (Local0 [0x04]), 0xFFF4) } If ((DerefOf (Local0 [0x05]) != 0xFFF5)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (Local0 [0x05]), 0xFFF5) } If ((DerefOf (P000 [0x00]) != 0xFFF0)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (P000 [0x00]), 0xFFF0) } If ((DerefOf (P000 [0x01]) != 0xFFF1)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (P000 [0x01]), 0xFFF1) } If ((DerefOf (P000 [0x02]) != 0xFFF2)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (P000 [0x02]), 0xFFF2) } If ((DerefOf (P000 [0x03]) != 0xFFF3)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (P000 [0x03]), 0xFFF3) } If ((DerefOf (P000 [0x04]) != 0xFFF4)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (P000 [0x04]), 0xFFF4) } If ((DerefOf (P000 [0x05]) != 0xFFF5)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, DerefOf (P000 [0x05]), 0xFFF5) } } M001 (Arg0) M002 (Arg0) M003 (Arg0) } /* No exception should arisen. */ Method (MF74, 0, Serialized) { Local0 = 0x00 Switch (ToInteger (Local0)) { Case (0x65) { Device (D000) { } Method (M002, 0, NotSerialized) { } } } } Method (MF75, 1, NotSerialized) { Method (MM00, 0, Serialized) { Local0 = 0x00 Switch (ToInteger (Local0)) { Case (0x65) { Method (M000, 0, NotSerialized) { } Method (M001, 0, NotSerialized) { } } } } Method (MM01, 0, Serialized) { Local0 = 0x00 Switch (ToInteger (Local0)) { Case (0x65) { Method (M002, 0, NotSerialized) { } Device (DV00) { } } } } Method (MM02, 0, Serialized) { Local0 = 0x00 Switch (ToInteger (Local0)) { Case (0x65) { Device (DV01) { } Method (M003, 0, NotSerialized) { } } } } Method (MM03, 0, Serialized) { Local0 = 0x00 Switch (ToInteger (Local0)) { Case (0x65) { Device (DV02) { } Device (DV03) { } } } } CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) MF74 () CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) MM00 () CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) MM01 () CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) MM02 () CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) MM03 () CH03 (Arg0, Z054, __LINE__, 0x00, 0x00) } /* * Bug 153, Bugzilla 5314. * The corresponding bug has been fixed. * This is an invalid test, should be removed from test suite. * Method mf77 will fail on ABBU unexpectedly even without Method mf76. * * Method(mf76, 1) * { * if (LNotEqual(arg0, "Strang")) { * err(arg0, z054, __LINE__, 0, 0, arg0, "Strang") * } * } * * Method(mf77, 1) * { * Name(s000, "String") * Name(p000, Package(){0}) * * Store(s000, p000) * * Store(s000, Debug) * Store(p000, Debug) * * Store (0x61, Index(p000, 3)) * * mf76(p000) * if (LNotEqual(s000, "String")) { * err(arg0, z054, __LINE__, 0, 0, s000, "String") * } * } */ /* Bug 196 */ Method (MF86, 1, NotSerialized) { CH03 ("mf86", Z054, __LINE__, 0x00, 0x00) Local1 = "0x0x12345678" ToInteger (Local1, Local0) If ((Local0 != 0x00)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x00) } CH04 ("mf86", 0x00, 0xFF, Z054, __LINE__, 0x00, 0x00) } Method (MF87, 1, NotSerialized) { CH03 ("mf87", Z054, __LINE__, 0x00, 0x00) Local0 = ("0x0xabcdef" + 0x00010234) If ((Local0 != 0x00010234)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x00010234) } CH03 ("mf87", Z054, __LINE__, 0x00, 0x00) Local0 = (0x00010234 + "0x0xabcdef") If ((Local0 != 0x00010234)) { ERR (Arg0, Z054, __LINE__, 0x00, 0x00, Local0, 0x00010234) } CH03 ("mf87", Z054, __LINE__, 0x00, 0x00) } Method (M15B, 0, Serialized) { /* **************** Definitions **************** */ Method (MM00, 0, NotSerialized) { Return (0xABCD0000) } Name (P000, Package (0x03) { 0xABCD0001, MM00, 0xABCD0002 }) /* **************** Run checkings **************** */ /* Store */ Method (M000, 0, NotSerialized) { Local0 = MM00 () If ((Local0 != 0xABCD0000)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local0, 0xABCD0000) } } Method (M001, 0, NotSerialized) { CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Local0 = DerefOf (RefOf (MM00)) If (SLCK) { CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Local1 = ObjectType (Local0) If ((Local1 != C010)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local1, C010) } } Else { CH04 (__METHOD__, 0x00, 0x2F, Z054, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } } Method (M002, 0, NotSerialized) { CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Local0 = DerefOf (P000 [0x01]) If (SLCK) { CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Local1 = ObjectType (Local0) If ((Local1 != C010)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local1, C010) } } Else { CH04 (__METHOD__, 0x00, 0x2F, Z054, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } } Method (M003, 0, NotSerialized) { /* 10/2016: Compiler now catches illegal DerefOf(StringConstant) */ /* CH03(ts, z054, 0x009, __LINE__, 0) */ /* Store(DerefOf("mm00"), Local0) */ /* if (SLCK) { */ /* CH03(ts, z054, 0x00a, __LINE__, 0) */ /* Store(ObjectType(Local0), Local1) */ /* if (LNotEqual(Local1, c010)) { */ /* err(ts, z054, __LINE__, 0, 0, Local1, c010) */ /* } */ /* } else { */ /* CH04(ts, 0, 47, z054, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ /* } */ } /* CopyObject */ Method (M004, 0, NotSerialized) { CopyObject (MM00 (), Local0) If ((Local0 != 0xABCD0000)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local0, 0xABCD0000) } } Method (M005, 0, NotSerialized) { CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) CopyObject (DerefOf (RefOf (MM00)), Local0) CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Local1 = ObjectType (Local0) If ((Local1 != C010)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local1, C010) } } Method (M006, 0, NotSerialized) { CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) CopyObject (DerefOf (P000 [0x01]), Local0) CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Local1 = ObjectType (Local0) If ((Local1 != C010)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local1, C010) } } Method (M007, 0, NotSerialized) { /* 10/2016: Compiler now catches illegal DerefOf(StringConstant) */ /* CH03(ts, z054, 0x014, __LINE__, 0) */ /* CopyObject(DerefOf("mm00"), Local0) */ /* CH03(ts, z054, 0x015, __LINE__, 0) */ /* */ /* Store(ObjectType(Local0), Local1) */ /* if (LNotEqual(Local1, c010)) { */ /* err(ts, z054, __LINE__, 0, 0, Local1, c010) */ /* } */ } /* Add */ Method (M008, 0, NotSerialized) { Local0 = (MM00 () + 0x01) If ((Local0 != 0xABCD0001)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local0, 0xABCD0001) } } Method (M009, 0, NotSerialized) { CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Local0 = (DerefOf (RefOf (MM00)) + 0x02) CH04 (__METHOD__, 0x00, 0x2F, Z054, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Method (M00A, 0, NotSerialized) { CH03 (__METHOD__, Z054, __LINE__, 0x00, 0x00) Local0 = (DerefOf (P000 [0x01]) + 0x03) CH04 (__METHOD__, 0x00, 0x2F, Z054, __LINE__, 0x00, 0x00) /* AE_AML_OPERAND_TYPE */ } Method (M00B, 0, NotSerialized) { /* 10/2016: Compiler now catches illegal DerefOf(StringConstant) */ /* CH03(ts, z054, 0x01c, __LINE__, 0) */ /* Add(DerefOf("mm00"), 4, Local0) */ /* CH04(ts, 0, 47, z054, __LINE__, 0, 0) // AE_AML_OPERAND_TYPE */ } /* ObjectType */ Method (M00C, 0, NotSerialized) { Local0 = ObjectType (MM00) If ((Local0 != C010)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local0, C010) } } Method (M00D, 0, NotSerialized) { Local0 = ObjectType (DerefOf (RefOf (MM00))) If ((Local0 != C010)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local0, C010) } } Method (M00E, 0, NotSerialized) { Local0 = ObjectType (DerefOf (P000 [0x01])) If ((Local0 != C010)) { ERR (__METHOD__, Z054, __LINE__, 0x00, 0x00, Local0, C010) } } Method (M00F, 0, NotSerialized) { /* 10/2016: Compiler now catches illegal DerefOf(StringConstant) */ /* Store(ObjectType(DerefOf("mm00")), Local0) */ /* if (LNotEqual(Local0, c010)) { */ /* err(ts, z054, __LINE__, 0, 0, Local0, c010) */ /* } */ } Method (M100, 0, NotSerialized) { SRMT ("m15b-0") M000 () SRMT ("m15b-1") M001 () SRMT ("m15b-2") M002 () SRMT ("m15b-3") M003 () SRMT ("m15b-4") M004 () SRMT ("m15b-5") M005 () SRMT ("m15b-6") M006 () SRMT ("m15b-7") M007 () SRMT ("m15b-8") M008 () SRMT ("m15b-9") M009 () SRMT ("m15b-a") M00A () SRMT ("m15b-b") M00B () SRMT ("m15b-c") M00C () SRMT ("m15b-d") M00D () SRMT ("m15b-e") M00E () SRMT ("m15b-f") M00F () } M100 () } /* Run-method */ Method (MSC0, 0, Serialized) { SRMT ("m110") M110 (__METHOD__) SRMT ("m112") M112 (__METHOD__) SRMT ("m113") M113 (__METHOD__) SRMT ("m114") M114 (__METHOD__) SRMT ("m115") M115 (__METHOD__) SRMT ("m116") M116 (__METHOD__) SRMT ("m118") M118 (__METHOD__) SRMT ("m119") M119 (__METHOD__) SRMT ("m11c") M11C (__METHOD__) SRMT ("m11d") M11D (__METHOD__) SRMT ("m11e") M11E (__METHOD__) SRMT ("m11f") M11F (__METHOD__) SRMT ("m120") M120 (__METHOD__) SRMT ("m121") M121 (__METHOD__) SRMT ("m122") M122 (__METHOD__) SRMT ("m123") M123 (__METHOD__) SRMT ("m124") M124 (__METHOD__) SRMT ("m125") M125 (__METHOD__) SRMT ("mf75") MF75 (__METHOD__) /*SRMT("mf77") */ /*mf77(ts) */ SRMT ("mf86") MF86 (__METHOD__) SRMT ("mf87") MF87 (__METHOD__) M15B () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/README0000700000175000017500000000122114773714155025135 0ustar ivanhuivanhu CONTENTS complex test collection badasl ASL-incorrect tests compiled with -f option of ASL. The tests which require utilyzing of the -f option on the ASL compilation stage. ASL Compiler: -f - Ignore errors, force creation of AML output file(s) misc miscellaneous not systematized tests operand Source Operand complex test result Result Object complex test provoke check operators under the known critical conditions namespace tests for the Name Space component FULL full the complex test collection - all the tests of the complex test collection are compiled together as one DefinitionBlock acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/badasl/0000700000175000017500000000000014773714153025502 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/badasl/RUN.asl0000700000175000017500000000322114773714153026650 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ if (STTT("ASL-incorrect tests compiled with -f option of ASL", TCLC, 18, W022)) { m100() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/badasl/badasl.asl0000700000175000017500000001467714773714153027453 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The tests which require utilyzing of * the -f option on the ASL compilation * stage. * * (ASL-incorrect tests compiled with -f option of ASL) * * ASL Compiler: * * -f - Ignore errors, force creation of AML output file(s) */ Name(z146, 146) /* * Name(n000, 0) * Error 1034 - ^ Name already exists in scope (N000) */ Method(m101,, Serialized) { Name(ts, "m101") Name (VV, 0x1234) Store (32, Local0) CH03(ts, z146, 0, __LINE__, 0) Name (VV, 0xBBBBAAAA) Store (12, Local2) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) } /* * The test is intended to check that interpreter issue an * exception when detects that the actual number of elements * in Package is greater than the value of NumElements. But, * ACPICA ASL Compiler run with -f option replaces the specified * value of NumElements by the actual number of elements in * PackageList. So - no exceptions. We can't specify the ASL * test - because we can't obtain AML code of Package with the * actual number of elements in it greater than the value of * NumElements. * * So, the test is inefficient. * * Name (p000, Package(3) {0xabcd0000, 0xabcd0001, 0xabcd0002, 0xabcd0003}) * Error 4046 - Initializer list too long ^ */ Method(m102,, Serialized) { Name(ts, "m102") Name (p000, Package(3) {0xabcd0000, 0xabcd0001, 0xabcd0002, 0xabcd0003}) CH03(ts, z146, 2, __LINE__, 0) Store(DerefOf(Index(p000, 3)), Local0) CH03(ts, z146, 2, __LINE__, 0) } /* * Exception on Acquire. * Access to inappropriate type data. */ Method(m103,, Serialized) { Name(ts, "m103") Name(i900, 0xfe7cb391d65a0000) Name(s900, "12340002") Name(b900, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) Name(b9Z0, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) Name(p900, Package(1) {}) Event(e900) Mutex(mx90, 0) Device(d900) { Name(i900, 0xabcd0017) } ThermalZone(tz90) {} Processor(pr90, 0, 0xFFFFFFFF, 0) {} PowerResource(pw90, 1, 0) {Method(mmmm){return (0)}} OperationRegion(r900, SystemMemory, 0x100, 0x100) OperationRegion(r9Z0, SystemMemory, 0x100, 0x100) CreateField(b9Z0, 0, 8, bf90) Field(r9Z0, ByteAcc, NoLock, Preserve) {f900,8,f901,8,f902,8,f903,8} BankField(r9Z0, f901, 0, ByteAcc, NoLock, Preserve) {bn90,4} IndexField(f902, f903, ByteAcc, NoLock, Preserve) {if90,8,if91,8} /* Acquire */ CH03(ts, z146, 0, __LINE__, 0) Acquire(i900, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(s900, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(b900, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(p900, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(e900, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(d900, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(tz90, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(pr90, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(pw90, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(r900, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(bf90, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(f900, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(bn90, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Acquire(if90, 0xffff) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) /* Release */ CH03(ts, z146, 0, __LINE__, 0) Release(i900) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(s900) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(b900) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(p900) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(e900) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(d900) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(tz90) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(pr90) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(pw90) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(r900) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(bf90) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(f900) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(bn90) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) CH03(ts, z146, 0, __LINE__, 0) Release(if90) CH04(ts, 0, 0xff, z146, __LINE__, 0, 0) } // Run-method Method(m100) { SRMT("m101") m101() SRMT("m102") m102() SRMT("m103") m103() } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/badasl/MAIN.asl0000700000175000017500000000411514773714153026733 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "badasl.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../runtime/cntl/DECL.asl") Include("../../../../runtime/collections/complex/badasl/badasl.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../runtime/collections/complex/badasl/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/badasl/Makefile0000700000175000017500000000015514773714153027146 0ustar ivanhuivanhu# badasl AMLMOD= badasl COLL= ../.. ADD_ASLFLAGS=-f TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/Makefile0000700000175000017500000000021314773714153025713 0ustar ivanhuivanhu# complex MDIRS = \ misc \ provoke \ operand \ result \ badasl \ namespace # FULL TOP= ../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/provoke/0000700000175000017500000000000014773714155025743 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/provoke/RUN.asl0000700000175000017500000000363114773714155027116 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Check operators under the known critical conditions", TCLC, 0x01, W00F)) { PRV0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/provoke/provoke.asl0000700000175000017500000001033714773714155030140 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check operators under the known critical conditions * * Collection of the tests which exersice the operators under the * known conditions. If some operator was observed failing under some * conditions, do the similar checkings for other operators under the * similar conditions too. */ Name (Z055, 0x37) /* Meaningless zero valued parameter */ Method (M130, 1, Serialized) { Name (B000, Buffer (0x02) { 0x21, 0x21 // !! }) Local0 = 0x00 Local2 = ToString (B000, Local0) If ((Local0 != 0x00)) { ERR (Arg0, Z055, __LINE__, 0x00, 0x00, Local0, 0x00) } CH03 (Arg0, Z055, __LINE__, 0x00, 0x00) } /* Store-like actions affect the source objects passed as parameter */ Method (M131, 1, NotSerialized) { Arg0-- /* Store(9, arg0) */ } /* Operator updates the source object passed to method directly, */ /* NOT as a reference to it. */ Method (M132, 1, NotSerialized) { Local0 = 0x0A M131 (Local0) If ((Local0 != 0x0A)) { ERR (Arg0, Z055, __LINE__, 0x00, 0x00, Local0, 0x0A) } CH03 (Arg0, Z055, __LINE__, 0x00, 0x00) } /* Operator doesn't update the source object passed to method as a REFERENCE */ /* to the object. */ Method (M133, 1, NotSerialized) { Local0 = 0x0A Local1 = RefOf (Local0) M131 (Local1) If ((Local0 != 0x09)) { ERR (Arg0, Z055, __LINE__, 0x00, 0x00, Local0, 0x09) } CH03 (Arg0, Z055, __LINE__, 0x00, 0x00) } Method (M134, 1, NotSerialized) { Local0 = 0x0A M131 (RefOf (Local0)) If ((Local0 != 0x09)) { ERR (Arg0, Z055, __LINE__, 0x00, 0x00, Local0, 0x09) } CH03 (Arg0, Z055, __LINE__, 0x00, 0x00) } Method (M135, 1, NotSerialized) { Arg0 = 0x05 } Method (M136, 1, NotSerialized) { Local0 = 0x0A M135 (RefOf (Local0)) If ((Local0 != 0x05)) { ERR (Arg0, Z055, __LINE__, 0x00, 0x00, Local0, 0x05) } CH03 (Arg0, Z055, __LINE__, 0x00, 0x00) } /* Run-method */ Method (PRV0, 0, Serialized) { SRMT ("m130") M130 (__METHOD__) SRMT ("m132") M132 (__METHOD__) SRMT ("m133") M133 (__METHOD__) SRMT ("m134") M134 (__METHOD__) SRMT ("m136") M136 (__METHOD__) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/provoke/MAIN.asl0000700000175000017500000000406714773714155027202 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("provoke", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/complex/provoke/provoke.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/complex/provoke/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/provoke/Makefile0000700000175000017500000000013714773714155027407 0ustar ivanhuivanhu# provoke AMLMOD= provoke COLL= ../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/FULL/0000700000175000017500000000000014773714153025016 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/FULL/DECL.asl0000700000175000017500000000567714773714153026250 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Complex tests collection Include("../../../../runtime/collections/complex/misc/misc.asl") Include("../../../../runtime/collections/complex/provoke/provoke.asl") Include("../../../../runtime/collections/complex/operand/tests/oconst/oconst.asl") Include("../../../../runtime/collections/complex/operand/tests/onamedglob/onamedglob1.asl") Include("../../../../runtime/collections/complex/operand/tests/onamedglob/onamedglob2.asl") Include("../../../../runtime/collections/complex/operand/tests/onamedloc/onamedloc1.asl") Include("../../../../runtime/collections/complex/operand/tests/onamedloc/onamedloc2.asl") Include("../../../../runtime/collections/complex/operand/tests/opackageel/opackageel.asl") Include("../../../../runtime/collections/complex/operand/tests/oreftonamed/oreftonamed1.asl") Include("../../../../runtime/collections/complex/operand/tests/oreftonamed/oreftonamed2.asl") Include("../../../../runtime/collections/complex/operand/tests/oarg/oarg.asl") Include("../../../../runtime/collections/complex/operand/tests/olocal/olocal.asl") Include("../../../../runtime/collections/complex/operand/tests/oreturn/oreturn.asl") Include("../../../../runtime/collections/complex/operand/tests/oreftopackageel/oreftopackageel.asl") Include("../../../../runtime/collections/complex/operand/tests/oconversion/oconversion.asl") Include("../../../../runtime/collections/complex/result/tests/rconversion/rconversion.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/FULL/RUN.asl0000700000175000017500000000445214773714153026173 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Store("COLLECTION: all complex tests", Debug) Include("../../../../runtime/collections/complex/misc/RUN.asl") Include("../../../../runtime/collections/complex/provoke/RUN.asl") Include("../../../../runtime/collections/complex/operand/tests/oconst/RUN.asl") Include("../../../../runtime/collections/complex/operand/tests/onamedglob/RUN.asl") Include("../../../../runtime/collections/complex/operand/tests/onamedloc/RUN.asl") Include("../../../../runtime/collections/complex/operand/tests/opackageel/RUN.asl") Include("../../../../runtime/collections/complex/operand/tests/oreftonamed/RUN.asl") Include("../../../../runtime/collections/complex/operand/tests/oconversion/RUN.asl") Include("../../../../runtime/collections/complex/result/tests/rconversion/RUN.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/FULL/MAIN.asl0000700000175000017500000000445714773714153026260 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Run complex tests collection DefinitionBlock( "complex.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../runtime/cntl/DECL.asl") Include("../../../../runtime/common/conversion/oDECL.asl") Include("../../../../runtime/common/conversion/rDECL.asl") Include("../../../../runtime/collections/complex/operand/common/ocommon.asl") Include("../../../../runtime/collections/complex/FULL/DECL.asl") Method(MAIN) { // Initialization STRT(1) // Run verification methods Include("../../../../runtime/collections/complex/FULL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/0000700000175000017500000000000014773714153025704 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/0000700000175000017500000000000014773714155027050 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/SPEC0000700000175000017500000002160014773714155027527 0ustar ivanhuivanhu /* * Implicit Source Operand Conversion, complex test * * * Integer to String implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the Integer second operand of Logical operators when the first * operand is evaluated as String (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - to the Integer second operand of Concatenate operator when the first * operand is evaluated as String * - to the Integer elements of an search package of Match operator * when some MatchObject is evaluated as String * - to the Integer value of Expression of Case statement when * Expression in Switch is either static String data or explicitly * converted to String by ToDecimalString, ToHexString or ToString * * Integer to Buffer implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the Integer second operand of Logical operators when the first * operand is evaluated as Buffer (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - to both Integer operands of Concatenate operator * - to the Integer second operand of Concatenate operator when the first * operand is evaluated as Buffer * - to the Integer Source operand of ToString operator * - to the Integer Source operand of Mid operator * - to the Integer elements of an search package of Match operator * when some MatchObject is evaluated as Buffer * - to the Integer value of Expression of Case statement when * Expression in Switch is either static Buffer data or explicitly * converted to Buffer by ToBuffer * * String to Integer implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the String sole operand of the 1-parameter Integer arithmetic * operators (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) * - to the String sole operand of the LNot Logical Integer operator * - to the String sole operand of the FromBCD and ToBCD conversion operators * - to each String operand of the 2-parameter Integer arithmetic * operators (Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, * ShiftLeft, ShiftRight, Subtract, Xor) * - to each String operand of the 2-parameter Logical Integer * operators LAnd and LOr * - to the String second operand of Logical operators when the first * operand is evaluated as Integer (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - intermediately to the String second operand of Concatenate operator * in case the first one is Integer * - to the String Length (second) operand of ToString operator * - to the String Index (second) operand of Index operator * - to the String Arg (third) operand of Fatal operator * (it can only be checked an exception does not occur) * - to the String Index and Length operands of Mid operator * - to the String StartIndex operand of Match operator * - to the String elements of an search package of Match operator * when some MatchObject is evaluated as Integer * - to the String sole operand of the Method execution control operators * (Sleep, Stall) * - to the String TimeoutValue (second) operand of the Acquire operator ??? * - to the String TimeoutValue (second) operand of the Wait operator * - to the String value of Predicate of the Method execution control * statements (If, ElseIf, While) * - to the String value of Expression of Case statement when * Expression in Switch is evaluated as Integer * * String to Buffer implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the String second operand of Logical operators when the first * operand is evaluated as Buffer (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - to the String second operand of Concatenate operator when the first * operand is evaluated as Buffer * - to the String Source operand of ToString operator (has a visual * effect in shortening of the String taken the null character. * - to the String elements of an search package of Match operator * when some MatchObject is evaluated as Buffer * - to the String value of Expression of Case statement when * Expression in Switch is either static Buffer data or explicitly * converted to Buffer by ToBuffer * * Buffer to Integer implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the Buffer sole operand of the 1-parameter Integer arithmetic * operators (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) * - to the Buffer sole operand of the LNot Logical Integer operator * - to the Buffer sole operand of the FromBCD and ToBCD conversion operators * - to each Buffer operand of the 2-parameter Integer arithmetic * operators (Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, * ShiftLeft, ShiftRight, Subtract, Xor) * - to each Buffer operand of the 2-parameter Logical Integer * operators LAnd and LOr * - to the Buffer second operand of Logical operators when the first * operand is evaluated as Integer (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - intermediately to the Buffer second operand of Concatenate operator * in case the first one is Integer * - to the Buffer Length (second) operand of ToString operator * - to the Buffer Index (second) operand of Index operator * - to the Buffer Arg (third) operand of Fatal operator * (it can only be checked an exception does not occur) * - to the Buffer Index and Length operands of Mid operator * - to the Buffer StartIndex operand of Match operator * - to the Buffer elements of an search package of Match operator * when some MatchObject is evaluated as Integer * - to the Buffer sole operand of the Method execution control operators * (Sleep, Stall) * - to the Buffer TimeoutValue (second) operand of the Acquire operator ??? * - to the Buffer TimeoutValue (second) operand of the Wait operator * - to the Buffer value of Predicate of the Method execution control * statements (If, ElseIf, While) * - to the Buffer value of Expression of Case statement when * Expression in Switch is evaluated as Integer * * Buffer to String implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the Buffer second operand of Logical operators when the first * operand is evaluated as String (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - to the Buffer second operand of Concatenate operator when the first * operand is evaluated as String * - to the Buffer elements of an search package of Match operator * when some MatchObject is evaluated as String * - to the Buffer value of Expression of Case statement when * Expression in Switch is either static String data or explicitly * converted to String by ToDecimalString, ToHexString or ToString * * Buffer field to Integer implicit conversion Cases. * First, Buffer field is evaluated either as Integer or as Buffer. * Conversion only takes place for Buffer in which case * Buffer to Integer test constructions should be used. * * Buffer field to Buffer implicit conversion Cases. * First, Buffer field is evaluated either as Integer or as Buffer. * Conversion only takes place for Integer in which case * Integer to Buffer test constructions should be used. * * Buffer field to String implicit conversion Cases. * First, Buffer field is evaluated either as Integer or as Buffer * For Integer case Integer to String test constructions should be used. * For Buffer case Buffer to String test constructions should be used. * * Field unit implicit conversion is considered similar to * Buffer field one. * * Note 1: Only an expression that is evaluated to a constant * can be used as the Expression of Case * * Note 2: So as initial elements of a package are either constant * data or name strings then check of implicit conversion * applied to the elements of the search package of Match * operator is limited to a data images case. * * Note 3: So as the Buffer field and Field unit data are Named Objects * by definition then check of implicit conversion applied to these * data types is limited to a case when Named Objects can be used. * * Cases when there are more than one operand for implicit conversion * - when the first operand of Concatenate operator is Integer, * there are additional conversions besides this Integer to Buffer: * = String to Integer conversion if second operand is String * = Buffer to Integer conversion if second operand is Buffer * = Integer to Buffer conversion of the converted second operand * * * EXCEPTIONAL Conditions during implicit conversion * * String to Integer implicit conversion Cases. * * Buffer to String implicit conversion Cases. * * Buffer field to String implicit conversion Cases. * * Field unit to String implicit conversion Cases. * */ acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconversion/0000700000175000017500000000000014773714153031412 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconversion/RUN.asl0000700000175000017500000000364214773714153032567 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Implicit Source Operand Conversion", TCLC, 0x0A, W010)) { SRMT ("OCV0") OCV0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconversion/MAIN.asl0000700000175000017500000000450514773714153032646 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("oconversion", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/common/operations.asl") Include ("../../../../../../runtime/common/conversion/oproc.asl") Include ("../../../../../../runtime/common/conversion/otest.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/oconversion/oconversion.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/oconversion/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconversion/Makefile0000700000175000017500000000015514773714153033056 0ustar ivanhuivanhu# oconversion AMLMOD= oconversion COLL= ../../../.. TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconversion/oconversion.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconversion/oconversi0000700000175000017500000000412014773714153033344 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * This test should be investigated and probably fixed because * it most likely not conforms with the changed functionality of * the Store operator - storing of non-computational data and * BufferFields and Fields was once disabled. * * Such are exc_operand1, exc_result, oconversion and rconversion tests. */ /* Run-method */ Method (OCV0, 0, NotSerialized) { M460 (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconst/0000700000175000017500000000000014773714153030353 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconst/RUN.asl0000700000175000017500000000361414773714153031527 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Source Operand, immediate data immages", TCLC, 0x03, W010)) { OPR0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconst/oconst.asl0000700000175000017500000570410214773714153032375 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to data images */ Name (Z085, 0x55) Method (M610, 0, Serialized) { /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M640, 1, NotSerialized) { /* LEqual */ Local0 = ("FE7CB391D650A284" == 0xFE7CB391D650A284) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("fE7CB391D650A284" == 0xFE7CB391D650A284) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS4 == 0xFE7CB391D650A284) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS5 == 0xFE7CB391D650A284) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) == 0xFE7CB391D650A284) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) == 0xFE7CB391D650A284) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) == 0xFE7CB391D650A284) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) == 0xFE7CB391D650A284) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) == 0xFE7CB391D650A284) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x05) == 0xFE7CB391D650A284) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) == 0xFE7CB391D650A284) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) == 0xFE7CB391D650A284) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("FE7CB391D650A284" > 0xFE7CB391D650A284) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("fE7CB391D650A284" > 0xFE7CB391D650A284) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("FE7CB391D650A28 " > 0xFE7CB391D650A284) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("FE7CB391D650A284q" > 0xFE7CB391D650A284) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS4 > 0xFE7CB391D650A284) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS5 > 0xFE7CB391D650A284) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) > 0xFE7CB391D650A284) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) > 0xFE7CB391D650A284) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) > 0xFE7CB391D650A284) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) > 0xFE7CB391D650A284) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) > 0xFE7CB391D650A284) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x05) > 0xFE7CB391D650A284) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) > 0xFE7CB391D650A284) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) > 0xFE7CB391D650A284) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("FE7CB391D650A284" >= 0xFE7CB391D650A284) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("fE7CB391D650A284" >= 0xFE7CB391D650A284) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("FE7CB391D650A28 " >= 0xFE7CB391D650A284) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("FE7CB391D650A284q" >= 0xFE7CB391D650A284) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS4 >= 0xFE7CB391D650A284) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS5 >= 0xFE7CB391D650A284) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) >= 0xFE7CB391D650A284) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) >= 0xFE7CB391D650A284) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) >= 0xFE7CB391D650A284) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) >= 0xFE7CB391D650A284) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) >= 0xFE7CB391D650A284) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x05) >= 0xFE7CB391D650A284) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) >= 0xFE7CB391D650A284) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) >= 0xFE7CB391D650A284) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("FE7CB391D650A284" < 0xFE7CB391D650A284) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("fE7CB391D650A284" < 0xFE7CB391D650A284) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("FE7CB391D650A28 " < 0xFE7CB391D650A284) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("FE7CB391D650A284q" < 0xFE7CB391D650A284) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS4 < 0xFE7CB391D650A284) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS5 < 0xFE7CB391D650A284) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) < 0xFE7CB391D650A284) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) < 0xFE7CB391D650A284) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) < 0xFE7CB391D650A284) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) < 0xFE7CB391D650A284) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) < 0xFE7CB391D650A284) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x05) < 0xFE7CB391D650A284) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) < 0xFE7CB391D650A284) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) < 0xFE7CB391D650A284) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("FE7CB391D650A284" <= 0xFE7CB391D650A284) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("fE7CB391D650A284" <= 0xFE7CB391D650A284) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("FE7CB391D650A28 " <= 0xFE7CB391D650A284) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("FE7CB391D650A284q" <= 0xFE7CB391D650A284) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS4 <= 0xFE7CB391D650A284) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS5 <= 0xFE7CB391D650A284) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) <= 0xFE7CB391D650A284) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) <= 0xFE7CB391D650A284) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) <= 0xFE7CB391D650A284) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) <= 0xFE7CB391D650A284) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) <= 0xFE7CB391D650A284) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x05) <= 0xFE7CB391D650A284) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) <= 0xFE7CB391D650A284) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) <= 0xFE7CB391D650A284) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("FE7CB391D650A284" != 0xFE7CB391D650A284) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("fE7CB391D650A284" != 0xFE7CB391D650A284) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("FE7CB391D650A28 " != 0xFE7CB391D650A284) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("FE7CB391D650A284q" != 0xFE7CB391D650A284) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS4 != 0xFE7CB391D650A284) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS5 != 0xFE7CB391D650A284) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) != 0xFE7CB391D650A284) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) != 0xFE7CB391D650A284) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) != 0xFE7CB391D650A284) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) != 0xFE7CB391D650A284) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) != 0xFE7CB391D650A284) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x05) != 0xFE7CB391D650A284) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) != 0xFE7CB391D650A284) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) != 0xFE7CB391D650A284) M600 (Arg0, 0x51, Local0, Ones) } } Method (M320, 1, NotSerialized) { /* LEqual */ Local0 = ("C179B3FE" == 0xC179B3FE) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("c179B3FE" == 0xC179B3FE) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS3 == 0xC179B3FE) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS2 == 0xC179B3FE) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) == 0xC179B3FE) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) == 0xC179B3FE) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) == 0xC179B3FE) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) == 0xC179B3FE) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) == 0xC179B3FE) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x02) == 0xC179B3FE) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) == 0xC179B3FE) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) == 0xC179B3FE) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("C179B3FE" > 0xC179B3FE) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("c179B3FE" > 0xC179B3FE) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("C179B3F " > 0xC179B3FE) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("C179B3FEq" > 0xC179B3FE) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS3 > 0xC179B3FE) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS2 > 0xC179B3FE) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) > 0xC179B3FE) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) > 0xC179B3FE) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) > 0xC179B3FE) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) > 0xC179B3FE) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) > 0xC179B3FE) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x02) > 0xC179B3FE) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) > 0xC179B3FE) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) > 0xC179B3FE) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("C179B3FE" >= 0xC179B3FE) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("c179B3FE" >= 0xC179B3FE) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("C179B3F " >= 0xC179B3FE) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("C179B3FEq" >= 0xC179B3FE) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS3 >= 0xC179B3FE) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS2 >= 0xC179B3FE) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) >= 0xC179B3FE) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) >= 0xC179B3FE) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) >= 0xC179B3FE) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) >= 0xC179B3FE) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) >= 0xC179B3FE) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x02) >= 0xC179B3FE) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) >= 0xC179B3FE) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) >= 0xC179B3FE) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("C179B3FE" < 0xC179B3FE) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("c179B3FE" < 0xC179B3FE) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("C179B3F " < 0xC179B3FE) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("C179B3FEq" < 0xC179B3FE) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS3 < 0xC179B3FE) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS2 < 0xC179B3FE) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) < 0xC179B3FE) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) < 0xC179B3FE) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) < 0xC179B3FE) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) < 0xC179B3FE) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) < 0xC179B3FE) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x02) < 0xC179B3FE) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) < 0xC179B3FE) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) < 0xC179B3FE) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("C179B3FE" <= 0xC179B3FE) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("c179B3FE" <= 0xC179B3FE) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("C179B3F " <= 0xC179B3FE) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("C179B3FEq" <= 0xC179B3FE) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS3 <= 0xC179B3FE) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS2 <= 0xC179B3FE) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) <= 0xC179B3FE) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) <= 0xC179B3FE) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) <= 0xC179B3FE) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) <= 0xC179B3FE) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) <= 0xC179B3FE) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x02) <= 0xC179B3FE) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) <= 0xC179B3FE) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) <= 0xC179B3FE) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("C179B3FE" != 0xC179B3FE) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("c179B3FE" != 0xC179B3FE) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("C179B3F " != 0xC179B3FE) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("C179B3FEq" != 0xC179B3FE) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS3 != 0xC179B3FE) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS2 != 0xC179B3FE) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) != 0xC179B3FE) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) != 0xC179B3FE) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) != 0xC179B3FE) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) != 0xC179B3FE) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) != 0xC179B3FE) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x02) != 0xC179B3FE) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) != 0xC179B3FE) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) != 0xC179B3FE) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M641, 1, NotSerialized) { Local0 = Concatenate ("", 0xFE7CB391D650A284) M600 (Arg0, 0x00, Local0, BS10) Local0 = Concatenate ("1234q", 0xFE7CB391D650A284) M600 (Arg0, 0x01, Local0, BS11) Local0 = Concatenate (AUS0, 0xFE7CB391D650A284) M600 (Arg0, 0x02, Local0, BS10) Local0 = Concatenate (AUS1, 0xFE7CB391D650A284) M600 (Arg0, 0x03, Local0, BS11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), 0xFE7CB391D650A284) M600 (Arg0, 0x04, Local0, BS10) Local0 = Concatenate (DerefOf (RefOf (AUS1)), 0xFE7CB391D650A284) M600 (Arg0, 0x05, Local0, BS11) } Local0 = Concatenate (DerefOf (PAUS [0x00]), 0xFE7CB391D650A284) M600 (Arg0, 0x06, Local0, BS10) Local0 = Concatenate (DerefOf (PAUS [0x01]), 0xFE7CB391D650A284) M600 (Arg0, 0x07, Local0, BS11) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), 0xFE7CB391D650A284) M600 (Arg0, 0x08, Local0, BS10) Local0 = Concatenate (M601 (0x02, 0x01), 0xFE7CB391D650A284) M600 (Arg0, 0x09, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), 0xFE7CB391D650A284) M600 (Arg0, 0x0A, Local0, BS10) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), 0xFE7CB391D650A284) M600 (Arg0, 0x0B, Local0, BS11) } Concatenate ("", 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x0C, Local0, BS10) Concatenate ("1234q", 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x0D, Local0, BS11) Concatenate (AUS0, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x0E, Local0, BS10) Concatenate (AUS1, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x0F, Local0, BS11) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x10, Local0, BS10) Concatenate (DerefOf (RefOf (AUS1)), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x11, Local0, BS11) } Concatenate (DerefOf (PAUS [0x00]), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x12, Local0, BS10) Concatenate (DerefOf (PAUS [0x01]), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x13, Local0, BS11) /* Method returns String */ Concatenate (M601 (0x02, 0x00), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x14, Local0, BS10) Concatenate (M601 (0x02, 0x01), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x15, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x16, Local0, BS10) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x17, Local0, BS11) } } Method (M321, 1, NotSerialized) { Local0 = Concatenate ("", 0xC179B3FE) M600 (Arg0, 0x00, Local0, BS12) Local0 = Concatenate ("1234q", 0xC179B3FE) M600 (Arg0, 0x01, Local0, BS13) Local0 = Concatenate (AUS0, 0xC179B3FE) M600 (Arg0, 0x02, Local0, BS12) Local0 = Concatenate (AUS1, 0xC179B3FE) M600 (Arg0, 0x03, Local0, BS13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), 0xC179B3FE) M600 (Arg0, 0x04, Local0, BS12) Local0 = Concatenate (DerefOf (RefOf (AUS1)), 0xC179B3FE) M600 (Arg0, 0x05, Local0, BS13) } Local0 = Concatenate (DerefOf (PAUS [0x00]), 0xC179B3FE) M600 (Arg0, 0x06, Local0, BS12) Local0 = Concatenate (DerefOf (PAUS [0x01]), 0xC179B3FE) M600 (Arg0, 0x07, Local0, BS13) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), 0xC179B3FE) M600 (Arg0, 0x08, Local0, BS12) Local0 = Concatenate (M601 (0x02, 0x01), 0xC179B3FE) M600 (Arg0, 0x09, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), 0xC179B3FE) M600 (Arg0, 0x0A, Local0, BS12) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), 0xC179B3FE) M600 (Arg0, 0x0B, Local0, BS13) } Local0 = Concatenate ("", 0xFE7CB391D650A284) M600 (Arg0, 0x0C, Local0, BS14) Local0 = Concatenate ("1234q", 0xFE7CB391D650A284) M600 (Arg0, 0x0D, Local0, BS15) Concatenate ("", 0xC179B3FE, Local0) M600 (Arg0, 0x0E, Local0, BS12) Concatenate ("1234q", 0xC179B3FE, Local0) M600 (Arg0, 0x0F, Local0, BS13) Concatenate (AUS0, 0xC179B3FE, Local0) M600 (Arg0, 0x10, Local0, BS12) Concatenate (AUS1, 0xC179B3FE, Local0) M600 (Arg0, 0x11, Local0, BS13) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), 0xC179B3FE, Local0) M600 (Arg0, 0x12, Local0, BS12) Concatenate (DerefOf (RefOf (AUS1)), 0xC179B3FE, Local0) M600 (Arg0, 0x13, Local0, BS13) } Concatenate (DerefOf (PAUS [0x00]), 0xC179B3FE, Local0) M600 (Arg0, 0x14, Local0, BS12) Concatenate (DerefOf (PAUS [0x01]), 0xC179B3FE, Local0) M600 (Arg0, 0x15, Local0, BS13) /* Method returns String */ Concatenate (M601 (0x02, 0x00), 0xC179B3FE, Local0) M600 (Arg0, 0x16, Local0, BS12) Concatenate (M601 (0x02, 0x01), 0xC179B3FE, Local0) M600 (Arg0, 0x17, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), 0xC179B3FE, Local0) M600 (Arg0, 0x18, Local0, BS12) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), 0xC179B3FE, Local0) M600 (Arg0, 0x19, Local0, BS13) } Concatenate ("", 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x1A, Local0, BS14) Concatenate ("1234q", 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x1B, Local0, BS15) } /* Integer to String conversion of the Integer elements */ /* of a search package of Match operator when some MatchObject */ /* is evaluated as String */ Method (M642, 1, NotSerialized) { Local0 = Match (Package (0x01) { 0xFE7CB391D650A284 }, MEQ, "FE7CB391D650A284", MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { 0xFE7CB391D650A284 }, MEQ, "fE7CB391D650A284", MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { 0xFE7CB391D650A284 }, MTR, 0x00, MEQ, "FE7CB391D650A284", 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { 0xFE7CB391D650A284 }, MTR, 0x00, MEQ, "fE7CB391D650A284", 0x00) M600 (Arg0, 0x03, Local0, Ones) } Method (M322, 1, NotSerialized) { Local0 = Match (Package (0x01) { 0xC179B3FE }, MEQ, "C179B3FE", MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { 0xC179B3FE }, MEQ, "c179B3FE", MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { 0xC179B3FE }, MTR, 0x00, MEQ, "C179B3FE", 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { 0xC179B3FE }, MTR, 0x00, MEQ, "c179B3FE", 0x00) M600 (Arg0, 0x03, Local0, Ones) } /* Integer to String conversion of the Integer value */ /* of Expression of Case statement when Expression in */ /* Switch is either static String data or explicitly */ /* converted to String by ToDecimalString, ToHexString */ /* or ToString */ Method (M643, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch ("fE7CB391D650A284") { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch ("FE7CB391D650A284") { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (ToHexString (AUS5)) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (ToHexString (AUS4)) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (ToHexString (DerefOf (RefOf (AUS5)))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (ToHexString (DerefOf (RefOf (AUS4)))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (ToHexString (DerefOf (PAUS [0x05]))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (ToHexString (DerefOf (PAUS [0x04]))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns String */ I000 = 0x00 Switch (ToHexString (M601 (0x02, 0x05))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (ToHexString (M601 (0x02, 0x04))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to String */ If (Y500) { I000 = 0x00 Switch (ToHexString (DerefOf (M602 (0x02, 0x05, 0x01)))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (ToHexString (DerefOf (M602 (0x02, 0x04, 0x01)))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } } Method (M323, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch ("c179B3FE") { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch ("C179B3FE") { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (ToHexString (AUS2)) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (ToHexString (AUS3)) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (ToHexString (DerefOf (RefOf (AUS2)))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (ToHexString (DerefOf (RefOf (AUS3)))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (ToHexString (DerefOf (PAUS [0x02]))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (ToHexString (DerefOf (PAUS [0x03]))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns String */ I000 = 0x00 Switch (ToHexString (M601 (0x02, 0x02))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (ToHexString (M601 (0x02, 0x03))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to String */ If (Y500) { I000 = 0x00 Switch (ToHexString (DerefOf (M602 (0x02, 0x02, 0x01)))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (ToHexString (DerefOf (M602 (0x02, 0x03, 0x01)))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } } /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == 0xFE7CB391D650A284) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == 0xFE7CB391D650A284) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == 0xFE7CB391D650A284) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == 0xFE7CB391D650A284) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == 0xFE7CB391D650A284) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == 0xFE7CB391D650A284) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == 0xFE7CB391D650A284) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == 0xFE7CB391D650A284) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == 0xFE7CB391D650A284) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == 0xFE7CB391D650A284) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == 0xFE7CB391D650A284) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == 0xFE7CB391D650A284) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > 0xFE7CB391D650A284) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > 0xFE7CB391D650A284) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > 0xFE7CB391D650A284) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > 0xFE7CB391D650A284) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > 0xFE7CB391D650A284) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > 0xFE7CB391D650A284) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > 0xFE7CB391D650A284) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > 0xFE7CB391D650A284) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > 0xFE7CB391D650A284) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > 0xFE7CB391D650A284) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > 0xFE7CB391D650A284) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > 0xFE7CB391D650A284) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > 0xFE7CB391D650A284) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > 0xFE7CB391D650A284) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= 0xFE7CB391D650A284) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= 0xFE7CB391D650A284) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= 0xFE7CB391D650A284) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= 0xFE7CB391D650A284) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= 0xFE7CB391D650A284) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= 0xFE7CB391D650A284) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= 0xFE7CB391D650A284) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= 0xFE7CB391D650A284) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= 0xFE7CB391D650A284) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= 0xFE7CB391D650A284) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= 0xFE7CB391D650A284) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= 0xFE7CB391D650A284) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= 0xFE7CB391D650A284) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= 0xFE7CB391D650A284) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < 0xFE7CB391D650A284) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < 0xFE7CB391D650A284) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < 0xFE7CB391D650A284) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < 0xFE7CB391D650A284) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < 0xFE7CB391D650A284) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < 0xFE7CB391D650A284) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < 0xFE7CB391D650A284) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < 0xFE7CB391D650A284) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < 0xFE7CB391D650A284) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < 0xFE7CB391D650A284) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < 0xFE7CB391D650A284) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < 0xFE7CB391D650A284) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < 0xFE7CB391D650A284) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < 0xFE7CB391D650A284) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= 0xFE7CB391D650A284) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= 0xFE7CB391D650A284) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= 0xFE7CB391D650A284) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= 0xFE7CB391D650A284) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= 0xFE7CB391D650A284) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= 0xFE7CB391D650A284) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= 0xFE7CB391D650A284) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= 0xFE7CB391D650A284) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= 0xFE7CB391D650A284) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= 0xFE7CB391D650A284) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= 0xFE7CB391D650A284) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= 0xFE7CB391D650A284) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= 0xFE7CB391D650A284) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= 0xFE7CB391D650A284) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != 0xFE7CB391D650A284) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != 0xFE7CB391D650A284) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != 0xFE7CB391D650A284) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != 0xFE7CB391D650A284) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != 0xFE7CB391D650A284) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != 0xFE7CB391D650A284) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != 0xFE7CB391D650A284) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != 0xFE7CB391D650A284) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != 0xFE7CB391D650A284) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != 0xFE7CB391D650A284) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != 0xFE7CB391D650A284) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != 0xFE7CB391D650A284) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != 0xFE7CB391D650A284) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != 0xFE7CB391D650A284) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == 0xC179B3FE) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == 0xC179B3FE) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == 0xC179B3FE) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == 0xC179B3FE) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == 0xC179B3FE) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == 0xC179B3FE) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == 0xC179B3FE) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == 0xC179B3FE) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == 0xC179B3FE) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == 0xC179B3FE) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == 0xC179B3FE) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == 0xC179B3FE) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > 0xC179B3FE) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > 0xC179B3FE) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > 0xC179B3FE) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > 0xC179B3FE) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > 0xC179B3FE) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > 0xC179B3FE) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > 0xC179B3FE) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > 0xC179B3FE) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > 0xC179B3FE) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > 0xC179B3FE) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > 0xC179B3FE) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > 0xC179B3FE) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > 0xC179B3FE) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > 0xC179B3FE) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= 0xC179B3FE) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= 0xC179B3FE) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= 0xC179B3FE) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= 0xC179B3FE) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= 0xC179B3FE) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= 0xC179B3FE) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= 0xC179B3FE) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= 0xC179B3FE) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= 0xC179B3FE) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= 0xC179B3FE) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= 0xC179B3FE) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= 0xC179B3FE) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= 0xC179B3FE) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= 0xC179B3FE) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < 0xC179B3FE) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < 0xC179B3FE) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < 0xC179B3FE) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < 0xC179B3FE) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < 0xC179B3FE) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < 0xC179B3FE) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < 0xC179B3FE) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < 0xC179B3FE) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < 0xC179B3FE) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < 0xC179B3FE) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < 0xC179B3FE) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < 0xC179B3FE) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < 0xC179B3FE) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < 0xC179B3FE) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= 0xC179B3FE) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= 0xC179B3FE) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= 0xC179B3FE) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= 0xC179B3FE) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= 0xC179B3FE) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= 0xC179B3FE) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= 0xC179B3FE) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= 0xC179B3FE) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= 0xC179B3FE) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= 0xC179B3FE) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= 0xC179B3FE) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= 0xC179B3FE) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= 0xC179B3FE) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= 0xC179B3FE) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != 0xC179B3FE) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != 0xC179B3FE) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != 0xC179B3FE) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != 0xC179B3FE) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != 0xC179B3FE) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != 0xC179B3FE) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != 0xC179B3FE) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != 0xC179B3FE) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != 0xC179B3FE) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != 0xC179B3FE) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != 0xC179B3FE) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != 0xC179B3FE) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != 0xC179B3FE) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != 0xC179B3FE) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ Method (M645, 1, NotSerialized) { Local0 = Concatenate (0xFE7CB391D650A284, 0xFE7CB391D650A284) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, 0xFE7CB391D650A284) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (0xFE7CB391D650A284, 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (0xFE7CB391D650A284, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (0xFE7CB391D650A284, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { Local0 = Concatenate (0xC179B3FE, 0xC179B3FE) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, 0xC179B3FE) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (0xC179B3FE, 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (0xC179B3FE, 0xC179B3FE, Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, 0xC179B3FE, Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (0xC179B3FE, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, 0xFE7CB391D650A284) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, 0xFE7CB391D650A284) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, 0xFE7CB391D650A284) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, 0xFE7CB391D650A284) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), 0xFE7CB391D650A284) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), 0xFE7CB391D650A284) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), 0xFE7CB391D650A284) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), 0xFE7CB391D650A284) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), 0xFE7CB391D650A284) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), 0xFE7CB391D650A284) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), 0xFE7CB391D650A284) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), 0xFE7CB391D650A284) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, 0xC179B3FE) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, 0xC179B3FE) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, 0xC179B3FE) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, 0xC179B3FE) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), 0xC179B3FE) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), 0xC179B3FE) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), 0xC179B3FE) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), 0xC179B3FE) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), 0xC179B3FE) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), 0xC179B3FE) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), 0xC179B3FE) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), 0xC179B3FE) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, 0xFE7CB391D650A284) M600 (Arg0, 0x0C, Local0, BB14) Local0 = Concatenate (Buffer (0x02) { "Z" }, 0xFE7CB391D650A284) M600 (Arg0, 0x0D, Local0, BB15) Concatenate (Buffer (0x01) { 0x5A // Z }, 0xC179B3FE, Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, 0xC179B3FE, Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, 0xC179B3FE, Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, 0xC179B3FE, Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), 0xC179B3FE, Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), 0xC179B3FE, Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), 0xC179B3FE, Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), 0xC179B3FE, Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), 0xC179B3FE, Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), 0xC179B3FE, Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), 0xC179B3FE, Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), 0xC179B3FE, Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x1A, Local0, BB14) Concatenate (Buffer (0x02) { "Z" }, 0xFE7CB391D650A284, Local0) M600 (Arg0, 0x1B, Local0, BB15) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ Method (M647, 1, NotSerialized) { Local0 = ToString (0x6E7C534136502214, Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (0x6E7C534136502214, 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (0x6E00534136002214, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (0x6E7C534136502214, AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (0x6E7C534136502214, AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (0x6E00534136002214, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (0x6E7C534136502214, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (0x6E7C534136502214, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (0x6E00534136002214, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (0x6E7C534136502214, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (0x6E7C534136502214, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (0x6E00534136002214, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (0x6E7C534136502214, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (0x6E7C534136502214, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (0x6E00534136002214, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (0x6E7C534136502214, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (0x6E7C534136502214, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (0x6E00534136002214, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (0x6E7C534136502214, Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (0x6E7C534136502214, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (0x6E00534136002214, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (0x6E7C534136502214, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (0x6E7C534136502214, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (0x6E00534136002214, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (0x6E7C534136502214, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (0x6E7C534136502214, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (0x6E00534136002214, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (0x6E7C534136502214, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (0x6E7C534136502214, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (0x6E00534136002214, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (0x6E7C534136502214, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (0x6E7C534136502214, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (0x6E00534136002214, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (0x6E7C534136502214, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (0x6E7C534136502214, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (0x6E00534136002214, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { Local0 = ToString (0x6179534E, Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (0x6179534E, 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (0x6E7C534136002214, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (0x6179534E, AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (0x6179534E, AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (0x6E7C534136002214, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (0x6179534E, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (0x6179534E, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (0x6E7C534136002214, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (0x6179534E, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (0x6179534E, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (0x6E7C534136002214, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (0x6179534E, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (0x6179534E, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (0x6E7C534136002214, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (0x6179534E, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (0x6179534E, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (0x6E7C534136002214, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (0x6179534E, Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (0x6179534E, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (0x6E7C534136002214, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (0x6179534E, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (0x6179534E, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (0x6E7C534136002214, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (0x6179534E, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (0x6179534E, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (0x6E7C534136002214, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (0x6179534E, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (0x6179534E, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (0x6E7C534136002214, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (0x6179534E, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (0x6179534E, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (0x6E7C534136002214, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (0x6179534E, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (0x6179534E, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (0x6E7C534136002214, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ Method (M648, 1, NotSerialized) { Local0 = Mid (0xFE7CB391D650A284, 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (0x6E7C534136002214, 0x01, 0x08) M600 (Arg0, 0x01, Local0, BB30) Local0 = Mid (0xFE7CB391D650A284, AUI5, AUIB) M600 (Arg0, 0x02, Local0, BB1D) Local0 = Mid (0x6E7C534136002214, AUI6, AUIA) M600 (Arg0, 0x03, Local0, BB30) If (Y078) { Local0 = Mid (0xFE7CB391D650A284, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x04, Local0, BB1D) Local0 = Mid (0x6E7C534136002214, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA))) M600 (Arg0, 0x05, Local0, BB30) } Local0 = Mid (0xFE7CB391D650A284, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B])) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (0x6E7C534136002214, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x0A])) M600 (Arg0, 0x07, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (0xFE7CB391D650A284, M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x08, Local0, BB1D) Local0 = Mid (0x6E7C534136002214, M601 (0x01, 0x06), M601 (0x01, 0x0A)) M600 (Arg0, 0x09, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (0xFE7CB391D650A284, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)) ) M600 (Arg0, 0x0A, Local0, BB1D) Local0 = Mid (0x6E7C534136002214, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)) ) M600 (Arg0, 0x0B, Local0, BB30) } Mid (0xFE7CB391D650A284, 0x00, 0x09, Local0) M600 (Arg0, 0x0C, Local0, BB1D) Mid (0x6E7C534136002214, 0x01, 0x08, Local0) M600 (Arg0, 0x0D, Local0, BB30) Mid (0xFE7CB391D650A284, AUI5, AUIB, Local0) M600 (Arg0, 0x0E, Local0, BB1D) Mid (0x6E7C534136002214, AUI6, AUIA, Local0) M600 (Arg0, 0x0F, Local0, BB30) If (Y078) { Mid (0xFE7CB391D650A284, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x10, Local0, BB1D) Mid (0x6E7C534136002214, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x11, Local0, BB30) } Mid (0xFE7CB391D650A284, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (0x6E7C534136002214, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB30) /* Method returns Index and Length parameters */ Mid (0xFE7CB391D650A284, M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x14, Local0, BB1D) Mid (0x6E7C534136002214, M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x15, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (0xFE7CB391D650A284, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x16, Local0, BB1D) Mid (0x6E7C534136002214, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x17, Local0, BB30) } } Method (M328, 1, NotSerialized) { Local0 = Mid (0xC179B3FE, 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (0x6E7C534136002214, 0x01, 0x04) M600 (Arg0, 0x01, Local0, BB31) Local0 = Mid (0xC179B3FE, AUI5, AUI9) M600 (Arg0, 0x02, Local0, BB1C) Local0 = Mid (0x6E7C534136002214, AUI6, AUI8) M600 (Arg0, 0x03, Local0, BB31) If (Y078) { Local0 = Mid (0xC179B3FE, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x04, Local0, BB1C) Local0 = Mid (0x6E7C534136002214, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8))) M600 (Arg0, 0x05, Local0, BB31) } Local0 = Mid (0xC179B3FE, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09])) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (0x6E7C534136002214, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x08])) M600 (Arg0, 0x07, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (0xC179B3FE, M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x08, Local0, BB1C) Local0 = Mid (0x6E7C534136002214, M601 (0x01, 0x06), M601 (0x01, 0x08)) M600 (Arg0, 0x09, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (0xC179B3FE, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)) ) M600 (Arg0, 0x0A, Local0, BB1C) Local0 = Mid (0x6E7C534136002214, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)) ) M600 (Arg0, 0x0B, Local0, BB31) } Mid (0xC179B3FE, 0x00, 0x05, Local0) M600 (Arg0, 0x0C, Local0, BB1C) Mid (0x6E7C534136002214, 0x01, 0x04, Local0) M600 (Arg0, 0x0D, Local0, BB31) Mid (0xC179B3FE, AUI5, AUI9, Local0) M600 (Arg0, 0x0E, Local0, BB1C) Mid (0x6E7C534136002214, AUI6, AUI8, Local0) M600 (Arg0, 0x0F, Local0, BB31) If (Y078) { Mid (0xC179B3FE, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x10, Local0, BB1C) Mid (0x6E7C534136002214, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x11, Local0, BB31) } Mid (0xC179B3FE, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (0x6E7C534136002214, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x08]), Local0) M600 (Arg0, 0x13, Local0, BB31) /* Method returns Index and Length parameters */ Mid (0xC179B3FE, M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x14, Local0, BB1C) Mid (0x6E7C534136002214, M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x15, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (0xC179B3FE, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x16, Local0, BB1C) Mid (0x6E7C534136002214, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x17, Local0, BB31) } } /* Integer to Buffer conversion of the Integer elements of */ /* a search package of Match operator when some MatchObject */ /* is evaluated as Buffer */ Method (M649, 1, NotSerialized) { Local0 = Match (Package (0x01) { 0xFE7CB391D650A284 }, MEQ, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }, MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { 0xFE7CB391D650A284 }, MEQ, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. }, MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { 0xFE7CB391D650A284 }, MTR, 0x00, MEQ, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }, 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { 0xFE7CB391D650A284 }, MTR, 0x00, MEQ, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. }, 0x00) M600 (Arg0, 0x03, Local0, Ones) } Method (M329, 1, NotSerialized) { Local0 = Match (Package (0x01) { 0xC179B3FE }, MEQ, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }, MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { 0xC179B3FE }, MEQ, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. }, MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { 0xC179B3FE }, MTR, 0x00, MEQ, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }, 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { 0xC179B3FE }, MTR, 0x00, MEQ, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. }, 0x00) M600 (Arg0, 0x03, Local0, Ones) } /* Integer to Buffer conversion of the Integer value of */ /* Expression of Case statement when Expression in Switch */ /* is either static Buffer data or explicitly converted to */ /* Buffer by ToBuffer */ Method (M64A, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. }) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (ToBuffer (AUB5)) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (ToBuffer (AUB4)) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (ToBuffer (DerefOf (RefOf (AUB5)))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (ToBuffer (DerefOf (RefOf (AUB4)))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (ToBuffer (DerefOf (PAUB [0x05]))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (ToBuffer (DerefOf (PAUB [0x04]))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns String */ I000 = 0x00 Switch (ToBuffer (M601 (0x03, 0x05))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (ToBuffer (M601 (0x03, 0x04))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to String */ If (Y500) { I000 = 0x00 Switch (ToBuffer (DerefOf (M602 (0x03, 0x05, 0x01)))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (ToBuffer (DerefOf (M602 (0x03, 0x04, 0x01)))) { Case (0xFE7CB391D650A284) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } } Method (M32A, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. }) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (ToBuffer (AUB2)) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (ToBuffer (AUB3)) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (ToBuffer (DerefOf (RefOf (AUB2)))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (ToBuffer (DerefOf (RefOf (AUB3)))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (ToBuffer (DerefOf (PAUB [0x02]))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (ToBuffer (DerefOf (PAUB [0x03]))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns String */ I000 = 0x00 Switch (ToBuffer (M601 (0x03, 0x02))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (ToBuffer (M601 (0x03, 0x03))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to String */ If (Y500) { I000 = 0x00 Switch (ToBuffer (DerefOf (M602 (0x03, 0x02, 0x01)))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (ToBuffer (DerefOf (M602 (0x03, 0x03, 0x01)))) { Case (0xC179B3FE) { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } } /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64B, 1, NotSerialized) { /* Decrement */ /* Increment */ /* FindSetLeftBit */ Local0 = FindSetLeftBit ("0321") M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit ("FE7CB391D650A284") M600 (Arg0, 0x01, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit ("0321") M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit ("FE7CB391D650A284") M600 (Arg0, 0x03, Local0, 0x03) /* Not */ Store (~"0321", Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Store (~"FE7CB391D650A284", Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Method (M32B, 1, NotSerialized) { /* Decrement */ /* Increment */ /* FindSetLeftBit */ Local0 = FindSetLeftBit ("0321") M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit ("C179B3FE") M600 (Arg0, 0x01, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit ("0321") M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit ("C179B3FE") M600 (Arg0, 0x03, Local0, 0x02) /* Not */ Store (~"0321", Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFCDE) Store (~"C179B3FE", Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Method (M000, 1, NotSerialized) { Local0 = !"0" M600 (Arg0, 0x00, Local0, Ones) Local0 = !"0321" M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !"FE7CB391D650A284" M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !"C179B3FE" M600 (Arg0, 0x03, Local0, Zero) } } /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD ("0321") M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD ("3789012345678901") M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD ("0321", Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD ("3789012345678901", Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD ("0321") M600 (Arg0, 0x04, Local0, 0x0801) /* Error of iASL on constant folding Store(ToBCD("D76162EE9EC35"), Local0) m600(arg0, 5, Local0, 0x3789012345678901) */ ToBCD ("0321", Local0) M600 (Arg0, 0x04, Local0, 0x0801) Local1 = "D76162EE9EC35" ToBCD (Local1, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD ("0321") M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD ("90123456") M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD ("0321", Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD ("90123456", Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD ("0321") M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD ("55F2CC0") M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD ("0321", Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD ("55F2CC0", Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M001, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store (("0321" + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store (("0321" + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store (("0321" + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store (("0321" + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store (("0321" + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store (("0321" + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store (("0321" + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store (("0321" + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store (("0321" + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store (("0321" + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = ("0321" + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = ("0321" + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = ("0321" + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = ("0321" + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = ("0321" + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = ("0321" + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = ("0321" + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = ("0321" + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = ("0321" + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = ("0321" + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = ("0321" + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + "0321"), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + "0321"), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + "0321"), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + "0321"), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + "0321"), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + "0321"), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + "0321"), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + "0321"), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + "0321"), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + "0321"), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + "0321"), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + "0321"), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + "0321") M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + "0321") M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + "0321") M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + "0321") M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + "0321") M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + "0321") M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + "0321") M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + "0321") M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + "0321") M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + "0321") M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + "0321") M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + "0321") M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M002, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store (("FE7CB391D650A284" + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store (("FE7CB391D650A284" + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store (("FE7CB391D650A284" + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store (("FE7CB391D650A284" + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = ("FE7CB391D650A284" + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = ("FE7CB391D650A284" + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = ("FE7CB391D650A284" + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = ("FE7CB391D650A284" + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + "FE7CB391D650A284") M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + "FE7CB391D650A284") M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + "FE7CB391D650A284") M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + "FE7CB391D650A284") M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + "FE7CB391D650A284") M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + "FE7CB391D650A284") M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + "FE7CB391D650A284") M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + "FE7CB391D650A284") M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + "FE7CB391D650A284") M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + "FE7CB391D650A284") M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + "FE7CB391D650A284") M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + "FE7CB391D650A284") M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store (("0321" + "FE7CB391D650A284"), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store (("FE7CB391D650A284" + "0321"), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = ("0321" + "FE7CB391D650A284") M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = ("FE7CB391D650A284" + "0321") M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M003, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store (("C179B3FE" + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FF) Store (("C179B3FE" + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store (("C179B3FE" + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FF) If (Y078) { Store (("C179B3FE" + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store (("C179B3FE" + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FF) } Store (("C179B3FE" + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store (("C179B3FE" + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FF) /* Method returns Integer */ Store (("C179B3FE" + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store (("C179B3FE" + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store (("C179B3FE" + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FF) } Local0 = ("C179B3FE" + 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = ("C179B3FE" + 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FF) Local0 = ("C179B3FE" + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = ("C179B3FE" + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FF) If (Y078) { Local0 = ("C179B3FE" + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = ("C179B3FE" + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FF) } Local0 = ("C179B3FE" + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = ("C179B3FE" + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = ("C179B3FE" + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = ("C179B3FE" + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = ("C179B3FE" + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FF) } /* Conversion of the second operand */ Store ((0x00 + "C179B3FE"), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0x01 + "C179B3FE"), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FF) Store ((AUI5 + "C179B3FE"), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUI6 + "C179B3FE"), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + "C179B3FE"), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUI6)) + "C179B3FE"), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FF) } Store ((DerefOf (PAUI [0x05]) + "C179B3FE"), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x06]) + "C179B3FE"), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + "C179B3FE"), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x06) + "C179B3FE"), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + "C179B3FE"), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + "C179B3FE"), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FF) } Local0 = (0x00 + "C179B3FE") M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0x01 + "C179B3FE") M600 (Arg0, 0x25, Local0, 0xC179B3FF) Local0 = (AUI5 + "C179B3FE") M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUI6 + "C179B3FE") M600 (Arg0, 0x27, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + "C179B3FE") M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUI6)) + "C179B3FE") M600 (Arg0, 0x29, Local0, 0xC179B3FF) } Local0 = (DerefOf (PAUI [0x05]) + "C179B3FE") M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x06]) + "C179B3FE") M600 (Arg0, 0x2B, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + "C179B3FE") M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x06) + "C179B3FE") M600 (Arg0, 0x2D, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + "C179B3FE") M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + "C179B3FE") M600 (Arg0, 0x2F, Local0, 0xC179B3FF) } /* Conversion of the both operands */ Store (("0321" + "C179B3FE"), Local0) M600 (Arg0, 0x30, Local0, 0xC179B71F) Store (("C179B3FE" + "0321"), Local0) M600 (Arg0, 0x31, Local0, 0xC179B71F) Local0 = ("0321" + "C179B3FE") M600 (Arg0, 0x32, Local0, 0xC179B71F) Local0 = ("C179B3FE" + "0321") M600 (Arg0, 0x33, Local0, 0xC179B71F) } /* And, common 32-bit/64-bit test */ Method (M004, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store (("0321" & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store (("0321" & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store (("0321" & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store (("0321" & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store (("0321" & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store (("0321" & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store (("0321" & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store (("0321" & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store (("0321" & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store (("0321" & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = ("0321" & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = ("0321" & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = ("0321" & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = ("0321" & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = ("0321" & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = ("0321" & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = ("0321" & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = ("0321" & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = ("0321" & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = ("0321" & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = ("0321" & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & "0321"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & "0321"), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & "0321"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & "0321"), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & "0321"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & "0321"), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & "0321"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & "0321"), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & "0321"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & "0321"), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & "0321"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & "0321"), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & "0321") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & "0321") M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & "0321") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & "0321") M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & "0321") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & "0321") M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & "0321") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & "0321") M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & "0321") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & "0321") M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & "0321") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & "0321") M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M005, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store (("FE7CB391D650A284" & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store (("FE7CB391D650A284" & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store (("FE7CB391D650A284" & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store (("FE7CB391D650A284" & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store (("FE7CB391D650A284" & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store (("FE7CB391D650A284" & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store (("FE7CB391D650A284" & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store (("FE7CB391D650A284" & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store (("FE7CB391D650A284" & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = ("FE7CB391D650A284" & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = ("FE7CB391D650A284" & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = ("FE7CB391D650A284" & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = ("FE7CB391D650A284" & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = ("FE7CB391D650A284" & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = ("FE7CB391D650A284" & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = ("FE7CB391D650A284" & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = ("FE7CB391D650A284" & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = ("FE7CB391D650A284" & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & "FE7CB391D650A284") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & "FE7CB391D650A284") M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & "FE7CB391D650A284") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & "FE7CB391D650A284") M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & "FE7CB391D650A284") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & "FE7CB391D650A284") M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & "FE7CB391D650A284") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & "FE7CB391D650A284") M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & "FE7CB391D650A284") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & "FE7CB391D650A284") M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & "FE7CB391D650A284") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & "FE7CB391D650A284") M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store (("0321" & "FE7CB391D650A284"), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store (("FE7CB391D650A284" & "0321"), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = ("0321" & "FE7CB391D650A284") M600 (Arg0, 0x32, Local0, 0x0200) Local0 = ("FE7CB391D650A284" & "0321") M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M006, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store (("C179B3FE" & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store (("C179B3FE" & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store (("C179B3FE" & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store (("C179B3FE" & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store (("C179B3FE" & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store (("C179B3FE" & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store (("C179B3FE" & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store (("C179B3FE" & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store (("C179B3FE" & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store (("C179B3FE" & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = ("C179B3FE" & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = ("C179B3FE" & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = ("C179B3FE" & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = ("C179B3FE" & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = ("C179B3FE" & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = ("C179B3FE" & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = ("C179B3FE" & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = ("C179B3FE" & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = ("C179B3FE" & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = ("C179B3FE" & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = ("C179B3FE" & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 & "C179B3FE"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & "C179B3FE"), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 & "C179B3FE"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & "C179B3FE"), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & "C179B3FE"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & "C179B3FE"), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) & "C179B3FE"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & "C179B3FE"), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & "C179B3FE"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & "C179B3FE"), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & "C179B3FE"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & "C179B3FE"), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 & "C179B3FE") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & "C179B3FE") M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 & "C179B3FE") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & "C179B3FE") M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & "C179B3FE") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & "C179B3FE") M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) & "C179B3FE") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & "C179B3FE") M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & "C179B3FE") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & "C179B3FE") M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & "C179B3FE") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & "C179B3FE") M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store (("0321" & "C179B3FE"), Local0) M600 (Arg0, 0x30, Local0, 0x0320) Store (("C179B3FE" & "0321"), Local0) M600 (Arg0, 0x31, Local0, 0x0320) Local0 = ("0321" & "C179B3FE") M600 (Arg0, 0x32, Local0, 0x0320) Local0 = ("C179B3FE" & "0321") M600 (Arg0, 0x33, Local0, 0x0320) } /* Divide, common 32-bit/64-bit test */ Method (M007, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store (("0321" / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store (("0321" / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store (("0321" / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store (("0321" / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store (("0321" / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store (("0321" / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store (("0321" / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store (("0321" / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store (("0321" / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store (("0321" / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide ("0321", 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide ("0321", 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide ("0321", AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide ("0321", AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide ("0321", DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide ("0321", DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide ("0321", DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide ("0321", DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide ("0321", M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide ("0321", M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide ("0321", DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide ("0321", DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / "0321"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / "0321"), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / "0321"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / "0321"), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / "0321"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / "0321"), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / "0321"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / "0321"), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / "0321"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / "0321"), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / "0321"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / "0321"), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, "0321", Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, "0321", Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, "0321", Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, "0321", Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), "0321", Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), "0321", Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), "0321", Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), "0321", Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), "0321", Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), "0321", Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), "0321", Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), "0321", Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M008, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store (("FE7CB391D650A284" / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store (("FE7CB391D650A284" / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store (("FE7CB391D650A284" / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store (("FE7CB391D650A284" / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide ("FE7CB391D650A284", 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide ("FE7CB391D650A284", 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide ("FE7CB391D650A284", AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide ("FE7CB391D650A284", AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide ("FE7CB391D650A284", DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide ("FE7CB391D650A284", DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide ("FE7CB391D650A284", DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide ("FE7CB391D650A284", DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide ("FE7CB391D650A284", M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide ("FE7CB391D650A284", M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store (("0321" / "FE7CB391D650A284"), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store (("FE7CB391D650A284" / "0321"), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide ("0321", "FE7CB391D650A284", Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide ("FE7CB391D650A284", "0321", Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M009, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store (("C179B3FE" / 0xC179B3FE), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store (("C179B3FE" / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store (("C179B3FE" / AUI3), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store (("C179B3FE" / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store (("C179B3FE" / DerefOf (RefOf (AUI3))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store (("C179B3FE" / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store (("C179B3FE" / DerefOf (PAUI [0x03])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store (("C179B3FE" / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store (("C179B3FE" / M601 (0x01, 0x03)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store (("C179B3FE" / DerefOf (M602 (0x01, 0x03, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide ("C179B3FE", 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Divide ("C179B3FE", 0xC179B3FE, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide ("C179B3FE", AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Divide ("C179B3FE", AUI3, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide ("C179B3FE", DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Divide ("C179B3FE", DerefOf (RefOf (AUI3)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide ("C179B3FE", DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Divide ("C179B3FE", DerefOf (PAUI [0x03]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide ("C179B3FE", M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Divide ("C179B3FE", M601 (0x01, 0x03), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide ("C179B3FE", DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Divide ("C179B3FE", DerefOf (M602 (0x01, 0x03, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / "C179B3FE"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE / "C179B3FE"), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / "C179B3FE"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 / "C179B3FE"), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / "C179B3FE"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) / "C179B3FE"), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / "C179B3FE"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) / "C179B3FE"), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / "C179B3FE"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) / "C179B3FE"), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / "C179B3FE"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) / "C179B3FE"), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, "C179B3FE", Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xC179B3FE, "C179B3FE", Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, "C179B3FE", Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI3, "C179B3FE", Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), "C179B3FE", Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI3)), "C179B3FE", Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), "C179B3FE", Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x03]), "C179B3FE", Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), "C179B3FE", Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x03), "C179B3FE", Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), "C179B3FE", Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x03, 0x01)), "C179B3FE", Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store (("0321" / "C179B3FE"), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store (("C179B3FE" / "0321"), Local0) M600 (Arg0, 0x31, Local0, 0x003DD5B7) Divide ("0321", "C179B3FE", Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide ("C179B3FE", "0321", Local1, Local0) M600 (Arg0, 0x33, Local0, 0x003DD5B7) } /* Mod, common 32-bit/64-bit test */ Method (M00A, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store (("0321" % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store (("0321" % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store (("0321" % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store (("0321" % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store (("0321" % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store (("0321" % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store (("0321" % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store (("0321" % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store (("0321" % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store (("0321" % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = ("0321" % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = ("0321" % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = ("0321" % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = ("0321" % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = ("0321" % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = ("0321" % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = ("0321" % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = ("0321" % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = ("0321" % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = ("0321" % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = ("0321" % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % "0321"), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % "0321"), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % "0321"), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % "0321"), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % "0321"), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % "0321"), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % "0321"), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % "0321"), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % "0321"), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % "0321"), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % "0321"), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % "0321"), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % "0321") M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % "0321") M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % "0321") M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % "0321") M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % "0321") M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % "0321") M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % "0321") M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % "0321") M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % "0321") M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % "0321") M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % "0321") M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % "0321") M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M00B, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store (("FE7CB391D650A284" % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store (("FE7CB391D650A284" % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store (("FE7CB391D650A284" % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store (("FE7CB391D650A284" % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = ("FE7CB391D650A284" % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = ("FE7CB391D650A284" % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = ("FE7CB391D650A284" % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = ("FE7CB391D650A284" % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % "FE7CB391D650A284") M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % "FE7CB391D650A284") M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % "FE7CB391D650A284") M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % "FE7CB391D650A284") M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % "FE7CB391D650A284") M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % "FE7CB391D650A284") M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % "FE7CB391D650A284") M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % "FE7CB391D650A284") M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % "FE7CB391D650A284") M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % "FE7CB391D650A284") M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % "FE7CB391D650A284") M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % "FE7CB391D650A284") M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store (("0321" % "FE7CB391D650A284"), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store (("FE7CB391D650A284" % "0321"), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = ("0321" % "FE7CB391D650A284") M600 (Arg0, 0x32, Local0, 0x0321) Local0 = ("FE7CB391D650A284" % "0321") M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M00C, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" % 0xC179B3FF), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store (("C179B3FE" % 0xC179B3FD), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store (("C179B3FE" % AUIC), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store (("C179B3FE" % AUIE), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store (("C179B3FE" % DerefOf (RefOf (AUIC))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store (("C179B3FE" % DerefOf (RefOf (AUIE))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store (("C179B3FE" % DerefOf (PAUI [0x0C])), Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Store (("C179B3FE" % DerefOf (PAUI [0x0E])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store (("C179B3FE" % M601 (0x01, 0x0C)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store (("C179B3FE" % M601 (0x01, 0x0E)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" % DerefOf (M602 (0x01, 0x0C, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store (("C179B3FE" % DerefOf (M602 (0x01, 0x0E, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = ("C179B3FE" % 0xC179B3FF) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = ("C179B3FE" % 0xC179B3FD) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = ("C179B3FE" % AUIC) /* \AUIC */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = ("C179B3FE" % AUIE) /* \AUIE */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = ("C179B3FE" % DerefOf (RefOf (AUIC))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = ("C179B3FE" % DerefOf (RefOf (AUIE))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = ("C179B3FE" % DerefOf (PAUI [0x0C])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = ("C179B3FE" % DerefOf (PAUI [0x0E])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = ("C179B3FE" % M601 (0x01, 0x0C)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = ("C179B3FE" % M601 (0x01, 0x0E)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" % DerefOf (M602 (0x01, 0x0C, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = ("C179B3FE" % DerefOf (M602 (0x01, 0x0E, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xC179B3FF % "C179B3FE"), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xC179B3FD % "C179B3FE"), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FD) Store ((AUIC % "C179B3FE"), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIE % "C179B3FE"), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (AUIC)) % "C179B3FE"), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIE)) % "C179B3FE"), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FD) } Store ((DerefOf (PAUI [0x0C]) % "C179B3FE"), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0E]) % "C179B3FE"), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M601 (0x01, 0x0C) % "C179B3FE"), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0E) % "C179B3FE"), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0C, 0x01)) % "C179B3FE"), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0E, 0x01)) % "C179B3FE"), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FD) } Local0 = (0xC179B3FF % "C179B3FE") M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xC179B3FD % "C179B3FE") M600 (Arg0, 0x25, Local0, 0xC179B3FD) Local0 = (AUIC % "C179B3FE") M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIE % "C179B3FE") M600 (Arg0, 0x27, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (AUIC)) % "C179B3FE") M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIE)) % "C179B3FE") M600 (Arg0, 0x29, Local0, 0xC179B3FD) } Local0 = (DerefOf (PAUI [0x0C]) % "C179B3FE") M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0E]) % "C179B3FE") M600 (Arg0, 0x2B, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0C) % "C179B3FE") M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0E) % "C179B3FE") M600 (Arg0, 0x2D, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) % "C179B3FE") M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) % "C179B3FE") M600 (Arg0, 0x2F, Local0, 0xC179B3FD) } /* Conversion of the both operands */ Store (("0321" % "C179B3FE"), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store (("C179B3FE" % "0321"), Local0) M600 (Arg0, 0x31, Local0, 0x0267) Local0 = ("0321" % "C179B3FE") M600 (Arg0, 0x32, Local0, 0x0321) Local0 = ("C179B3FE" % "0321") M600 (Arg0, 0x33, Local0, 0x0267) } /* Multiply, common 32-bit/64-bit test */ Method (M00D, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store (("0321" * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store (("0321" * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store (("0321" * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store (("0321" * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store (("0321" * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store (("0321" * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store (("0321" * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store (("0321" * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store (("0321" * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store (("0321" * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = ("0321" * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = ("0321" * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = ("0321" * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = ("0321" * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = ("0321" * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = ("0321" * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = ("0321" * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = ("0321" * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = ("0321" * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = ("0321" * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = ("0321" * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * "0321"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * "0321"), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * "0321"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * "0321"), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * "0321"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * "0321"), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * "0321"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * "0321"), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * "0321"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * "0321"), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * "0321"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * "0321"), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * "0321") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * "0321") M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * "0321") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * "0321") M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * "0321") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * "0321") M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * "0321") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * "0321") M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * "0321") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * "0321") M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * "0321") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * "0321") M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M00E, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store (("FE7CB391D650A284" * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store (("FE7CB391D650A284" * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store (("FE7CB391D650A284" * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store (("FE7CB391D650A284" * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store (("FE7CB391D650A284" * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store (("FE7CB391D650A284" * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store (("FE7CB391D650A284" * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store (("FE7CB391D650A284" * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store (("FE7CB391D650A284" * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = ("FE7CB391D650A284" * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = ("FE7CB391D650A284" * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = ("FE7CB391D650A284" * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = ("FE7CB391D650A284" * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = ("FE7CB391D650A284" * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = ("FE7CB391D650A284" * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = ("FE7CB391D650A284" * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = ("FE7CB391D650A284" * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = ("FE7CB391D650A284" * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * "FE7CB391D650A284") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * "FE7CB391D650A284") M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * "FE7CB391D650A284") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * "FE7CB391D650A284") M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * "FE7CB391D650A284") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * "FE7CB391D650A284") M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * "FE7CB391D650A284") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * "FE7CB391D650A284") M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * "FE7CB391D650A284") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * "FE7CB391D650A284") M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * "FE7CB391D650A284") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * "FE7CB391D650A284") M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store (("0321" * "FE7CB391D650A284"), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store (("FE7CB391D650A284" * "0321"), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = ("0321" * "FE7CB391D650A284") M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = ("FE7CB391D650A284" * "0321") M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M00F, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store (("C179B3FE" * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store (("C179B3FE" * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store (("C179B3FE" * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store (("C179B3FE" * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store (("C179B3FE" * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store (("C179B3FE" * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store (("C179B3FE" * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store (("C179B3FE" * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store (("C179B3FE" * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store (("C179B3FE" * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = ("C179B3FE" * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = ("C179B3FE" * 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = ("C179B3FE" * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = ("C179B3FE" * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = ("C179B3FE" * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = ("C179B3FE" * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = ("C179B3FE" * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = ("C179B3FE" * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = ("C179B3FE" * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = ("C179B3FE" * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = ("C179B3FE" * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 * "C179B3FE"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * "C179B3FE"), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 * "C179B3FE"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * "C179B3FE"), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * "C179B3FE"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * "C179B3FE"), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) * "C179B3FE"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * "C179B3FE"), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * "C179B3FE"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * "C179B3FE"), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * "C179B3FE"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * "C179B3FE"), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 * "C179B3FE") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * "C179B3FE") M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 * "C179B3FE") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * "C179B3FE") M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * "C179B3FE") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * "C179B3FE") M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) * "C179B3FE") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * "C179B3FE") M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * "C179B3FE") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * "C179B3FE") M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * "C179B3FE") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * "C179B3FE") M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store (("0321" * "C179B3FE"), Local0) M600 (Arg0, 0x30, Local0, 0x5DCC2DBE) Store (("C179B3FE" * "0321"), Local0) M600 (Arg0, 0x31, Local0, 0x5DCC2DBE) Local0 = ("0321" * "C179B3FE") M600 (Arg0, 0x32, Local0, 0x5DCC2DBE) Local0 = ("C179B3FE" * "0321") M600 (Arg0, 0x33, Local0, 0x5DCC2DBE) } /* NAnd, common 32-bit/64-bit test */ Method (M010, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd ("0321", 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("0321", 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd ("0321", AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("0321", AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd ("0321", DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("0321", DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd ("0321", DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("0321", DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd ("0321", M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("0321", M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd ("0321", DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("0321", DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd ("0321", 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("0321", 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd ("0321", AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("0321", AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd ("0321", DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("0321", DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd ("0321", DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("0321", DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd ("0321", M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("0321", M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd ("0321", DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("0321", DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, "0321") M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, "0321") M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, "0321") M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, "0321") M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), "0321") M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), "0321") M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), "0321") M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), "0321") M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), "0321") M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), "0321") M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), "0321") M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), "0321") M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, "0321", Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, "0321", Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, "0321", Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, "0321", Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), "0321", Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), "0321", Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), "0321", Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), "0321", Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), "0321", Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), "0321", Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), "0321", Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), "0321", Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M011, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd ("FE7CB391D650A284", 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("FE7CB391D650A284", 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd ("FE7CB391D650A284", AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("FE7CB391D650A284", AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd ("FE7CB391D650A284", DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("FE7CB391D650A284", DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd ("FE7CB391D650A284", DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("FE7CB391D650A284", DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd ("FE7CB391D650A284", M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("FE7CB391D650A284", M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd ("FE7CB391D650A284", 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("FE7CB391D650A284", 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd ("FE7CB391D650A284", AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("FE7CB391D650A284", AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd ("FE7CB391D650A284", DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("FE7CB391D650A284", DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd ("FE7CB391D650A284", DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("FE7CB391D650A284", DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd ("FE7CB391D650A284", M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("FE7CB391D650A284", M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, "FE7CB391D650A284") M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, "FE7CB391D650A284") M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, "FE7CB391D650A284") M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, "FE7CB391D650A284") M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), "FE7CB391D650A284") M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), "FE7CB391D650A284") M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), "FE7CB391D650A284") M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), "FE7CB391D650A284") M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), "FE7CB391D650A284") M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), "FE7CB391D650A284") M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), "FE7CB391D650A284") M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), "FE7CB391D650A284") M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, "FE7CB391D650A284", Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, "FE7CB391D650A284", Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, "FE7CB391D650A284", Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd ("0321", "FE7CB391D650A284") M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd ("FE7CB391D650A284", "0321") M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd ("0321", "FE7CB391D650A284", Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd ("FE7CB391D650A284", "0321", Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M012, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd ("C179B3FE", 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd ("C179B3FE", 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x3E864C01) Local0 = NAnd ("C179B3FE", AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd ("C179B3FE", AUII) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd ("C179B3FE", DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd ("C179B3FE", DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Local0 = NAnd ("C179B3FE", DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd ("C179B3FE", DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd ("C179B3FE", M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd ("C179B3FE", M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd ("C179B3FE", DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd ("C179B3FE", DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } NAnd ("C179B3FE", 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd ("C179B3FE", 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x3E864C01) NAnd ("C179B3FE", AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd ("C179B3FE", AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { NAnd ("C179B3FE", DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd ("C179B3FE", DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x3E864C01) } NAnd ("C179B3FE", DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd ("C179B3FE", DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ NAnd ("C179B3FE", M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd ("C179B3FE", M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd ("C179B3FE", DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd ("C179B3FE", DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Local0 = NAnd (0x00, "C179B3FE") M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, "C179B3FE") M600 (Arg0, 0x19, Local0, 0x3E864C01) Local0 = NAnd (AUI5, "C179B3FE") M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, "C179B3FE") M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), "C179B3FE") M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), "C179B3FE") M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PAUI [0x05]), "C179B3FE") M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), "C179B3FE") M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), "C179B3FE") M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), "C179B3FE") M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), "C179B3FE") M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), "C179B3FE") M600 (Arg0, 0x23, Local0, 0x3E864C01) } NAnd (0x00, "C179B3FE", Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, "C179B3FE", Local0) M600 (Arg0, 0x25, Local0, 0x3E864C01) NAnd (AUI5, "C179B3FE", Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, "C179B3FE", Local0) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), "C179B3FE", Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), "C179B3FE", Local0) M600 (Arg0, 0x29, Local0, 0x3E864C01) } NAnd (DerefOf (PAUI [0x05]), "C179B3FE", Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), "C179B3FE", Local0) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), "C179B3FE", Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), "C179B3FE", Local0) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), "C179B3FE", Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), "C179B3FE", Local0) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Local0 = NAnd ("0321", "C179B3FE") M600 (Arg0, 0x30, Local0, 0xFFFFFCDF) Local0 = NAnd ("C179B3FE", "0321") M600 (Arg0, 0x31, Local0, 0xFFFFFCDF) NAnd ("0321", "C179B3FE", Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFCDF) NAnd ("C179B3FE", "0321", Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFCDF) } /* NOr, common 32-bit/64-bit test */ Method (M013, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr ("0321", 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr ("0321", 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr ("0321", AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr ("0321", AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr ("0321", DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr ("0321", DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr ("0321", DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr ("0321", DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr ("0321", M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr ("0321", M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr ("0321", DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr ("0321", DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr ("0321", 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr ("0321", 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr ("0321", AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr ("0321", AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr ("0321", DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr ("0321", DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr ("0321", DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr ("0321", DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr ("0321", M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr ("0321", M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr ("0321", DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr ("0321", DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, "0321") M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, "0321") M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, "0321") M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, "0321") M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), "0321") M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), "0321") M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), "0321") M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), "0321") M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), "0321") M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), "0321") M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), "0321") M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), "0321") M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, "0321", Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, "0321", Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, "0321", Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, "0321", Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), "0321", Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), "0321", Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), "0321", Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), "0321", Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), "0321", Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), "0321", Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), "0321", Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), "0321", Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M014, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr ("FE7CB391D650A284", 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr ("FE7CB391D650A284", 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr ("FE7CB391D650A284", AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr ("FE7CB391D650A284", AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr ("FE7CB391D650A284", DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr ("FE7CB391D650A284", DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr ("FE7CB391D650A284", DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr ("FE7CB391D650A284", DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr ("FE7CB391D650A284", M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr ("FE7CB391D650A284", M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr ("FE7CB391D650A284", 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr ("FE7CB391D650A284", 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr ("FE7CB391D650A284", AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr ("FE7CB391D650A284", AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr ("FE7CB391D650A284", DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr ("FE7CB391D650A284", DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr ("FE7CB391D650A284", DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr ("FE7CB391D650A284", DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr ("FE7CB391D650A284", M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr ("FE7CB391D650A284", M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr ("FE7CB391D650A284", DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, "FE7CB391D650A284") M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, "FE7CB391D650A284") M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, "FE7CB391D650A284") M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, "FE7CB391D650A284") M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), "FE7CB391D650A284") M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), "FE7CB391D650A284") M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), "FE7CB391D650A284") M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), "FE7CB391D650A284") M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), "FE7CB391D650A284") M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), "FE7CB391D650A284") M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), "FE7CB391D650A284") M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), "FE7CB391D650A284") M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, "FE7CB391D650A284", Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, "FE7CB391D650A284", Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, "FE7CB391D650A284", Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr ("0321", "FE7CB391D650A284") M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr ("FE7CB391D650A284", "0321") M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr ("0321", "FE7CB391D650A284", Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr ("FE7CB391D650A284", "0321", Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M015, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr ("C179B3FE", 0x00) M600 (Arg0, 0x00, Local0, 0x3E864C01) Local0 = NOr ("C179B3FE", 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr ("C179B3FE", AUI5) M600 (Arg0, 0x02, Local0, 0x3E864C01) Local0 = NOr ("C179B3FE", AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr ("C179B3FE", DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x3E864C01) Local0 = NOr ("C179B3FE", DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr ("C179B3FE", DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x3E864C01) Local0 = NOr ("C179B3FE", DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr ("C179B3FE", M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x3E864C01) Local0 = NOr ("C179B3FE", M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr ("C179B3FE", DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x3E864C01) Local0 = NOr ("C179B3FE", DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr ("C179B3FE", 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x3E864C01) NOr ("C179B3FE", 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr ("C179B3FE", AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x3E864C01) NOr ("C179B3FE", AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr ("C179B3FE", DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x3E864C01) NOr ("C179B3FE", DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr ("C179B3FE", DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x3E864C01) NOr ("C179B3FE", DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr ("C179B3FE", M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x3E864C01) NOr ("C179B3FE", M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr ("C179B3FE", DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x3E864C01) NOr ("C179B3FE", DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, "C179B3FE") M600 (Arg0, 0x18, Local0, 0x3E864C01) Local0 = NOr (0xFFFFFFFF, "C179B3FE") M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, "C179B3FE") M600 (Arg0, 0x1A, Local0, 0x3E864C01) Local0 = NOr (AUII, "C179B3FE") M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), "C179B3FE") M600 (Arg0, 0x1C, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (AUII)), "C179B3FE") M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), "C179B3FE") M600 (Arg0, 0x1E, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PAUI [0x12]), "C179B3FE") M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), "C179B3FE") M600 (Arg0, 0x20, Local0, 0x3E864C01) Local0 = NOr (M601 (0x01, 0x12), "C179B3FE") M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), "C179B3FE") M600 (Arg0, 0x22, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), "C179B3FE") M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, "C179B3FE", Local0) M600 (Arg0, 0x24, Local0, 0x3E864C01) NOr (0xFFFFFFFF, "C179B3FE", Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, "C179B3FE", Local0) M600 (Arg0, 0x26, Local0, 0x3E864C01) NOr (AUII, "C179B3FE", Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), "C179B3FE", Local0) M600 (Arg0, 0x28, Local0, 0x3E864C01) NOr (DerefOf (RefOf (AUII)), "C179B3FE", Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), "C179B3FE", Local0) M600 (Arg0, 0x2A, Local0, 0x3E864C01) NOr (DerefOf (PAUI [0x12]), "C179B3FE", Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), "C179B3FE", Local0) M600 (Arg0, 0x2C, Local0, 0x3E864C01) NOr (M601 (0x01, 0x12), "C179B3FE", Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), "C179B3FE", Local0) M600 (Arg0, 0x2E, Local0, 0x3E864C01) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), "C179B3FE", Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr ("0321", "C179B3FE") M600 (Arg0, 0x30, Local0, 0x3E864C00) Local0 = NOr ("C179B3FE", "0321") M600 (Arg0, 0x31, Local0, 0x3E864C00) NOr ("0321", "C179B3FE", Local0) M600 (Arg0, 0x32, Local0, 0x3E864C00) NOr ("C179B3FE", "0321", Local0) M600 (Arg0, 0x33, Local0, 0x3E864C00) } /* Or, common 32-bit/64-bit test */ Method (M016, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store (("0321" | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store (("0321" | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store (("0321" | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store (("0321" | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store (("0321" | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store (("0321" | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store (("0321" | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store (("0321" | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store (("0321" | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store (("0321" | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = ("0321" | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = ("0321" | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = ("0321" | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = ("0321" | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = ("0321" | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = ("0321" | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = ("0321" | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = ("0321" | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = ("0321" | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = ("0321" | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = ("0321" | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | "0321"), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | "0321"), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | "0321"), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | "0321"), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | "0321"), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | "0321"), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | "0321"), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | "0321"), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | "0321"), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | "0321"), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | "0321"), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | "0321"), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | "0321") M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | "0321") M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | "0321") M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | "0321") M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | "0321") M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | "0321") M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | "0321") M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | "0321") M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | "0321") M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | "0321") M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | "0321") M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | "0321") M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M017, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store (("FE7CB391D650A284" | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store (("FE7CB391D650A284" | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store (("FE7CB391D650A284" | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store (("FE7CB391D650A284" | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = ("FE7CB391D650A284" | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = ("FE7CB391D650A284" | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = ("FE7CB391D650A284" | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = ("FE7CB391D650A284" | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | "FE7CB391D650A284") M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | "FE7CB391D650A284") M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | "FE7CB391D650A284") M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | "FE7CB391D650A284") M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | "FE7CB391D650A284") M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | "FE7CB391D650A284") M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | "FE7CB391D650A284") M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | "FE7CB391D650A284") M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | "FE7CB391D650A284") M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | "FE7CB391D650A284") M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | "FE7CB391D650A284") M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | "FE7CB391D650A284") M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store (("0321" | "FE7CB391D650A284"), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store (("FE7CB391D650A284" | "0321"), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = ("0321" | "FE7CB391D650A284") M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = ("FE7CB391D650A284" | "0321") M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M018, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store (("C179B3FE" | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store (("C179B3FE" | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store (("C179B3FE" | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store (("C179B3FE" | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store (("C179B3FE" | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store (("C179B3FE" | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store (("C179B3FE" | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store (("C179B3FE" | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store (("C179B3FE" | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store (("C179B3FE" | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = ("C179B3FE" | 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = ("C179B3FE" | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = ("C179B3FE" | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = ("C179B3FE" | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = ("C179B3FE" | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = ("C179B3FE" | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = ("C179B3FE" | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = ("C179B3FE" | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = ("C179B3FE" | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = ("C179B3FE" | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = ("C179B3FE" | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | "C179B3FE"), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF | "C179B3FE"), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | "C179B3FE"), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII | "C179B3FE"), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | "C179B3FE"), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) | "C179B3FE"), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | "C179B3FE"), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) | "C179B3FE"), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | "C179B3FE"), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) | "C179B3FE"), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | "C179B3FE"), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | "C179B3FE"), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | "C179B3FE") M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF | "C179B3FE") M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | "C179B3FE") M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII | "C179B3FE") M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | "C179B3FE") M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) | "C179B3FE") M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | "C179B3FE") M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) | "C179B3FE") M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | "C179B3FE") M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) | "C179B3FE") M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | "C179B3FE") M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | "C179B3FE") M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store (("0321" | "C179B3FE"), Local0) M600 (Arg0, 0x30, Local0, 0xC179B3FF) Store (("C179B3FE" | "0321"), Local0) M600 (Arg0, 0x31, Local0, 0xC179B3FF) Local0 = ("0321" | "C179B3FE") M600 (Arg0, 0x32, Local0, 0xC179B3FF) Local0 = ("C179B3FE" | "0321") M600 (Arg0, 0x33, Local0, 0xC179B3FF) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M019, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store (("0321" << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store (("0321" << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store (("0321" << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store (("0321" << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store (("0321" << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store (("0321" << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store (("0321" << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store (("0321" << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store (("0321" << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store (("0321" << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = ("0321" << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = ("0321" << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = ("0321" << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = ("0321" << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = ("0321" << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = ("0321" << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = ("0321" << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = ("0321" << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = ("0321" << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = ("0321" << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = ("0321" << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << "B"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << "B"), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << "B"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << "B"), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << "B"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << "B"), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << "B"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << "B"), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << "B"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << "B"), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << "B"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << "B"), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << "B") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << "B") M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << "B") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << "B") M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << "B") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << "B") M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << "B") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << "B") M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << "B") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << "B") M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << "B") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << "B") M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M01A, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store (("FE7CB391D650A284" << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store (("FE7CB391D650A284" << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store (("FE7CB391D650A284" << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store (("FE7CB391D650A284" << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = ("FE7CB391D650A284" << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = ("FE7CB391D650A284" << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = ("FE7CB391D650A284" << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = ("FE7CB391D650A284" << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << "B"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << "B"), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << "B"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << "B"), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << "B"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << "B"), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << "B"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << "B"), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << "B"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << "B"), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << "B"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << "B"), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << "B") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << "B") M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << "B") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << "B") M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << "B") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << "B") M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << "B") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << "B") M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << "B") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << "B") M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << "B") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << "B") M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store (("0321" << "B"), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store (("FE7CB391D650A284" << "B"), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = ("0321" << "B") M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = ("FE7CB391D650A284" << "B") M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M01B, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store (("C179B3FE" << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x82F367FC) Store (("C179B3FE" << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store (("C179B3FE" << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x82F367FC) If (Y078) { Store (("C179B3FE" << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store (("C179B3FE" << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x82F367FC) } Store (("C179B3FE" << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store (("C179B3FE" << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x82F367FC) /* Method returns Integer */ Store (("C179B3FE" << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store (("C179B3FE" << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store (("C179B3FE" << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x82F367FC) } Local0 = ("C179B3FE" << 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = ("C179B3FE" << 0x01) M600 (Arg0, 0x0D, Local0, 0x82F367FC) Local0 = ("C179B3FE" << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = ("C179B3FE" << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x82F367FC) If (Y078) { Local0 = ("C179B3FE" << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = ("C179B3FE" << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x82F367FC) } Local0 = ("C179B3FE" << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = ("C179B3FE" << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x82F367FC) /* Method returns Integer */ Local0 = ("C179B3FE" << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = ("C179B3FE" << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = ("C179B3FE" << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x82F367FC) } /* Conversion of the second operand */ Store ((0x00 << "B"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << "B"), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << "B"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << "B"), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << "B"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << "B"), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << "B"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << "B"), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << "B"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << "B"), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << "B"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << "B"), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << "B") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << "B") M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << "B") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << "B") M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << "B") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << "B") M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << "B") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << "B") M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << "B") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << "B") M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << "B") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << "B") M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store (("0321" << "B"), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store (("C179B3FE" << "B"), Local0) M600 (Arg0, 0x31, Local0, 0xCD9FF000) Local0 = ("0321" << "B") M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = ("C179B3FE" << "B") M600 (Arg0, 0x33, Local0, 0xCD9FF000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M01C, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store (("0321" >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store (("0321" >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store (("0321" >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store (("0321" >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store (("0321" >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store (("0321" >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store (("0321" >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store (("0321" >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store (("0321" >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store (("0321" >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = ("0321" >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = ("0321" >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = ("0321" >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = ("0321" >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = ("0321" >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = ("0321" >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = ("0321" >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = ("0321" >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = ("0321" >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = ("0321" >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = ("0321" >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> "B"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> "B"), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> "B"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> "B"), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> "B"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> "B"), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> "B"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> "B"), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> "B"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> "B"), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> "B"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> "B"), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> "B") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> "B") M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> "B") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> "B") M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> "B") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> "B") M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> "B") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> "B") M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> "B") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> "B") M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> "B") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> "B") M600 (Arg0, 0x2F, Local0, 0x00182F36) } } /* ShiftRight, 64-bit */ Method (M01D, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store (("FE7CB391D650A284" >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store (("FE7CB391D650A284" >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store (("FE7CB391D650A284" >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store (("FE7CB391D650A284" >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = ("FE7CB391D650A284" >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = ("FE7CB391D650A284" >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = ("FE7CB391D650A284" >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = ("FE7CB391D650A284" >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> "B"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> "B"), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> "B"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> "B"), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> "B"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> "B"), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> "B"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> "B"), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> "B"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> "B"), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> "B"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> "B"), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> "B") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> "B") M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> "B") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> "B") M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> "B") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> "B") M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> "B") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> "B") M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> "B") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> "B") M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> "B") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> "B") M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store (("0321" >> "B"), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store (("FE7CB391D650A284" >> "B"), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = ("0321" >> "B") M600 (Arg0, 0x32, Local0, 0x00) Local0 = ("FE7CB391D650A284" >> "B") M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M01E, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store (("C179B3FE" >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x60BCD9FF) Store (("C179B3FE" >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store (("C179B3FE" >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x60BCD9FF) If (Y078) { Store (("C179B3FE" >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store (("C179B3FE" >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x60BCD9FF) } Store (("C179B3FE" >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store (("C179B3FE" >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x60BCD9FF) /* Method returns Integer */ Store (("C179B3FE" >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store (("C179B3FE" >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store (("C179B3FE" >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x60BCD9FF) } Local0 = ("C179B3FE" >> 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = ("C179B3FE" >> 0x01) M600 (Arg0, 0x0D, Local0, 0x60BCD9FF) Local0 = ("C179B3FE" >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = ("C179B3FE" >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x60BCD9FF) If (Y078) { Local0 = ("C179B3FE" >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = ("C179B3FE" >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x60BCD9FF) } Local0 = ("C179B3FE" >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = ("C179B3FE" >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x60BCD9FF) /* Method returns Integer */ Local0 = ("C179B3FE" >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = ("C179B3FE" >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = ("C179B3FE" >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x60BCD9FF) } /* Conversion of the second operand */ Store ((0x0321 >> "B"), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> "B"), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> "B"), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> "B"), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> "B"), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> "B"), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> "B"), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> "B"), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> "B"), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> "B"), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> "B"), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> "B"), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> "B") M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> "B") M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> "B") M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> "B") M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> "B") M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> "B") M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> "B") M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> "B") M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> "B") M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> "B") M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> "B") M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> "B") M600 (Arg0, 0x2F, Local0, 0x00182F36) } /* Conversion of the both operands */ Store (("0321" >> "B"), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store (("C179B3FE" >> "B"), Local0) M600 (Arg0, 0x31, Local0, 0x00182F36) Local0 = ("0321" >> "B") M600 (Arg0, 0x32, Local0, 0x00) Local0 = ("C179B3FE" >> "B") M600 (Arg0, 0x33, Local0, 0x00182F36) } /* Subtract, common 32-bit/64-bit test */ Method (M01F, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store (("0321" - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store (("0321" - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store (("0321" - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store (("0321" - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store (("0321" - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store (("0321" - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store (("0321" - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store (("0321" - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store (("0321" - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store (("0321" - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = ("0321" - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = ("0321" - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = ("0321" - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = ("0321" - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = ("0321" - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = ("0321" - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = ("0321" - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = ("0321" - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = ("0321" - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = ("0321" - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = ("0321" - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - "0321"), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - "0321"), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - "0321"), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - "0321"), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - "0321"), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - "0321"), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - "0321"), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - "0321"), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - "0321"), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - "0321"), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - "0321"), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - "0321"), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - "0321") M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - "0321") M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - "0321") M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - "0321") M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - "0321") M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - "0321") M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - "0321") M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - "0321") M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - "0321") M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - "0321") M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - "0321") M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - "0321") M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M020, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store (("FE7CB391D650A284" - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store (("FE7CB391D650A284" - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store (("FE7CB391D650A284" - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store (("FE7CB391D650A284" - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = ("FE7CB391D650A284" - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = ("FE7CB391D650A284" - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = ("FE7CB391D650A284" - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = ("FE7CB391D650A284" - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - "FE7CB391D650A284") M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - "FE7CB391D650A284") M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - "FE7CB391D650A284") M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - "FE7CB391D650A284") M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - "FE7CB391D650A284") M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - "FE7CB391D650A284") M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - "FE7CB391D650A284") M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - "FE7CB391D650A284") M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - "FE7CB391D650A284") M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - "FE7CB391D650A284") M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - "FE7CB391D650A284") M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - "FE7CB391D650A284") M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store (("0321" - "FE7CB391D650A284"), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store (("FE7CB391D650A284" - "0321"), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = ("0321" - "FE7CB391D650A284") M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = ("FE7CB391D650A284" - "0321") M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M021, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store (("C179B3FE" - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FD) Store (("C179B3FE" - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store (("C179B3FE" - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FD) If (Y078) { Store (("C179B3FE" - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store (("C179B3FE" - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FD) } Store (("C179B3FE" - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store (("C179B3FE" - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FD) /* Method returns Integer */ Store (("C179B3FE" - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store (("C179B3FE" - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store (("C179B3FE" - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FD) } Local0 = ("C179B3FE" - 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = ("C179B3FE" - 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FD) Local0 = ("C179B3FE" - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = ("C179B3FE" - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FD) If (Y078) { Local0 = ("C179B3FE" - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = ("C179B3FE" - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FD) } Local0 = ("C179B3FE" - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = ("C179B3FE" - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = ("C179B3FE" - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = ("C179B3FE" - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = ("C179B3FE" - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FD) } /* Conversion of the second operand */ Store ((0x00 - "C179B3FE"), Local0) M600 (Arg0, 0x18, Local0, 0x3E864C02) Store ((0x01 - "C179B3FE"), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C03) Store ((AUI5 - "C179B3FE"), Local0) M600 (Arg0, 0x1A, Local0, 0x3E864C02) Store ((AUI6 - "C179B3FE"), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C03) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - "C179B3FE"), Local0) M600 (Arg0, 0x1C, Local0, 0x3E864C02) Store ((DerefOf (RefOf (AUI6)) - "C179B3FE"), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C03) } Store ((DerefOf (PAUI [0x05]) - "C179B3FE"), Local0) M600 (Arg0, 0x1E, Local0, 0x3E864C02) Store ((DerefOf (PAUI [0x06]) - "C179B3FE"), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C03) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - "C179B3FE"), Local0) M600 (Arg0, 0x20, Local0, 0x3E864C02) Store ((M601 (0x01, 0x06) - "C179B3FE"), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - "C179B3FE"), Local0) M600 (Arg0, 0x22, Local0, 0x3E864C02) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - "C179B3FE"), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C03) } Local0 = (0x00 - "C179B3FE") M600 (Arg0, 0x24, Local0, 0x3E864C02) Local0 = (0x01 - "C179B3FE") M600 (Arg0, 0x25, Local0, 0x3E864C03) Local0 = (AUI5 - "C179B3FE") M600 (Arg0, 0x26, Local0, 0x3E864C02) Local0 = (AUI6 - "C179B3FE") M600 (Arg0, 0x27, Local0, 0x3E864C03) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - "C179B3FE") M600 (Arg0, 0x28, Local0, 0x3E864C02) Local0 = (DerefOf (RefOf (AUI6)) - "C179B3FE") M600 (Arg0, 0x29, Local0, 0x3E864C03) } Local0 = (DerefOf (PAUI [0x05]) - "C179B3FE") M600 (Arg0, 0x2A, Local0, 0x3E864C02) Local0 = (DerefOf (PAUI [0x06]) - "C179B3FE") M600 (Arg0, 0x2B, Local0, 0x3E864C03) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - "C179B3FE") M600 (Arg0, 0x2C, Local0, 0x3E864C02) Local0 = (M601 (0x01, 0x06) - "C179B3FE") M600 (Arg0, 0x2D, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - "C179B3FE") M600 (Arg0, 0x2E, Local0, 0x3E864C02) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - "C179B3FE") M600 (Arg0, 0x2F, Local0, 0x3E864C03) } /* Conversion of the both operands */ Store (("0321" - "C179B3FE"), Local0) M600 (Arg0, 0x30, Local0, 0x3E864F23) Store (("C179B3FE" - "0321"), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DD) Local0 = ("0321" - "C179B3FE") M600 (Arg0, 0x32, Local0, 0x3E864F23) Local0 = ("C179B3FE" - "0321") M600 (Arg0, 0x33, Local0, 0xC179B0DD) } /* XOr, common 32-bit/64-bit test */ Method (M022, 1, NotSerialized) { /* Conversion of the first operand */ Store (("0321" ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store (("0321" ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store (("0321" ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store (("0321" ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store (("0321" ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store (("0321" ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store (("0321" ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store (("0321" ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store (("0321" ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store (("0321" ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store (("0321" ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store (("0321" ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = ("0321" ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = ("0321" ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = ("0321" ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = ("0321" ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = ("0321" ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = ("0321" ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = ("0321" ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = ("0321" ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = ("0321" ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = ("0321" ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = ("0321" ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ "0321"), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ "0321"), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ "0321"), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ "0321"), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ "0321"), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ "0321"), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ "0321"), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ "0321"), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ "0321"), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ "0321"), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ "0321"), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ "0321"), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ "0321") M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ "0321") M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ "0321") M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ "0321") M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ "0321") M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ "0321") M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ "0321") M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ "0321") M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ "0321") M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ "0321") M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ "0321") M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ "0321") M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M023, 1, NotSerialized) { /* Conversion of the first operand */ Store (("FE7CB391D650A284" ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store (("FE7CB391D650A284" ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store (("FE7CB391D650A284" ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store (("FE7CB391D650A284" ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store (("FE7CB391D650A284" ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store (("FE7CB391D650A284" ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store (("FE7CB391D650A284" ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = ("FE7CB391D650A284" ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = ("FE7CB391D650A284" ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = ("FE7CB391D650A284" ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = ("FE7CB391D650A284" ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = ("FE7CB391D650A284" ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ "FE7CB391D650A284") M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ "FE7CB391D650A284") M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ "FE7CB391D650A284") M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ "FE7CB391D650A284") M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ "FE7CB391D650A284") M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ "FE7CB391D650A284") M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ "FE7CB391D650A284") M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ "FE7CB391D650A284") M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ "FE7CB391D650A284") M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ "FE7CB391D650A284") M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ "FE7CB391D650A284") M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ "FE7CB391D650A284") M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store (("0321" ^ "FE7CB391D650A284"), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store (("FE7CB391D650A284" ^ "0321"), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = ("0321" ^ "FE7CB391D650A284") M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = ("FE7CB391D650A284" ^ "0321") M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M024, 1, NotSerialized) { /* Conversion of the first operand */ Store (("C179B3FE" ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store (("C179B3FE" ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x3E864C01) Store (("C179B3FE" ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store (("C179B3FE" ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Store (("C179B3FE" ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store (("C179B3FE" ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Store (("C179B3FE" ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store (("C179B3FE" ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Store (("C179B3FE" ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store (("C179B3FE" ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store (("C179B3FE" ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store (("C179B3FE" ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } Local0 = ("C179B3FE" ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = ("C179B3FE" ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x3E864C01) Local0 = ("C179B3FE" ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = ("C179B3FE" ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { Local0 = ("C179B3FE" ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = ("C179B3FE" ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x3E864C01) } Local0 = ("C179B3FE" ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = ("C179B3FE" ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = ("C179B3FE" ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = ("C179B3FE" ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = ("C179B3FE" ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Store ((0x00 ^ "C179B3FE"), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF ^ "C179B3FE"), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C01) Store ((AUI5 ^ "C179B3FE"), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII ^ "C179B3FE"), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ "C179B3FE"), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) ^ "C179B3FE"), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Store ((DerefOf (PAUI [0x05]) ^ "C179B3FE"), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) ^ "C179B3FE"), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ "C179B3FE"), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) ^ "C179B3FE"), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ "C179B3FE"), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ "C179B3FE"), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C01) } Local0 = (0x00 ^ "C179B3FE") M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF ^ "C179B3FE") M600 (Arg0, 0x25, Local0, 0x3E864C01) Local0 = (AUI5 ^ "C179B3FE") M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII ^ "C179B3FE") M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ "C179B3FE") M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) ^ "C179B3FE") M600 (Arg0, 0x29, Local0, 0x3E864C01) } Local0 = (DerefOf (PAUI [0x05]) ^ "C179B3FE") M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) ^ "C179B3FE") M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ "C179B3FE") M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) ^ "C179B3FE") M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ "C179B3FE") M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ "C179B3FE") M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Store (("0321" ^ "C179B3FE"), Local0) M600 (Arg0, 0x30, Local0, 0xC179B0DF) Store (("C179B3FE" ^ "0321"), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DF) Local0 = ("0321" ^ "C179B3FE") M600 (Arg0, 0x32, Local0, 0xC179B0DF) Local0 = ("C179B3FE" ^ "0321") M600 (Arg0, 0x33, Local0, 0xC179B0DF) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m002", Local0) SRMT (Local0) M002 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m005", Local0) SRMT (Local0) M005 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m008", Local0) SRMT (Local0) M008 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00b", Local0) SRMT (Local0) M00B (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00e", Local0) SRMT (Local0) M00E (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) M010 (Local0) Concatenate (Arg0, "-m011", Local0) SRMT (Local0) M011 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) M013 (Local0) Concatenate (Arg0, "-m014", Local0) SRMT (Local0) M014 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) M016 (Local0) Concatenate (Arg0, "-m017", Local0) SRMT (Local0) M017 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01a", Local0) SRMT (Local0) M01A (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01d", Local0) SRMT (Local0) M01D (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) M01F (Local0) Concatenate (Arg0, "-m020", Local0) SRMT (Local0) M020 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) M022 (Local0) Concatenate (Arg0, "-m023", Local0) SRMT (Local0) M023 (Local0) } Method (M32D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m003", Local0) SRMT (Local0) M003 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m006", Local0) SRMT (Local0) M006 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m009", Local0) SRMT (Local0) M009 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00c", Local0) SRMT (Local0) M00C (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00f", Local0) SRMT (Local0) M00F (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) If (Y119) { M010 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m012", Local0) SRMT (Local0) M012 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) If (Y119) { M013 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m015", Local0) SRMT (Local0) M015 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) If (Y119) { M016 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m018", Local0) SRMT (Local0) M018 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01b", Local0) SRMT (Local0) M01B (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01e", Local0) SRMT (Local0) M01E (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) If (Y119) { M01F (Local0) } Else { BLCK () } Concatenate (Arg0, "-m021", Local0) SRMT (Local0) M021 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) If (Y119) { M022 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m024", Local0) SRMT (Local0) M024 (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M025, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = ("0321" && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = ("0321" && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = ("0321" && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = ("0321" && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = ("0321" && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = ("0321" && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = ("0321" && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = ("0321" && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = ("0321" && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = ("0321" && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0321" && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = ("0321" && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && "0321") M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && "0321") M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && "0321") M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && "0321") M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && "0321") M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && "0321") M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && "0321") M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && "0321") M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && "0321") M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && "0321") M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && "0321") M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && "0321") M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M026, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = ("FE7CB391D650A284" && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = ("FE7CB391D650A284" && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = ("FE7CB391D650A284" && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = ("FE7CB391D650A284" && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = ("FE7CB391D650A284" && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = ("FE7CB391D650A284" && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = ("FE7CB391D650A284" && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = ("FE7CB391D650A284" && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = ("FE7CB391D650A284" && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = ("FE7CB391D650A284" && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && "FE7CB391D650A284") M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && "FE7CB391D650A284") M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && "FE7CB391D650A284") M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && "FE7CB391D650A284") M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && "FE7CB391D650A284") M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && "FE7CB391D650A284") M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && "FE7CB391D650A284") M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && "FE7CB391D650A284") M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && "FE7CB391D650A284") M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && "FE7CB391D650A284") M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && "FE7CB391D650A284") M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && "FE7CB391D650A284") M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = ("0321" && "FE7CB391D650A284") M600 (Arg0, 0x18, Local0, Ones) Local0 = ("FE7CB391D650A284" && "0321") M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M027, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = ("C179B3FE" && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = ("C179B3FE" && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = ("C179B3FE" && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = ("C179B3FE" && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = ("C179B3FE" && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = ("C179B3FE" && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = ("C179B3FE" && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = ("C179B3FE" && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = ("C179B3FE" && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = ("C179B3FE" && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = ("C179B3FE" && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && "C179B3FE") M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && "C179B3FE") M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && "C179B3FE") M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && "C179B3FE") M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && "C179B3FE") M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && "C179B3FE") M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && "C179B3FE") M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && "C179B3FE") M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && "C179B3FE") M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && "C179B3FE") M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && "C179B3FE") M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && "C179B3FE") M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = ("0321" && "C179B3FE") M600 (Arg0, 0x18, Local0, Ones) Local0 = ("C179B3FE" && "0321") M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M028, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = ("0" || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = ("0" || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = ("0" || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = ("0" || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = ("0" || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = ("0" || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = ("0" || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = ("0" || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = ("0" || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = ("0" || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("0" || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = ("0" || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || "0") M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || "0") M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || "0") M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || "0") M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || "0") M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || "0") M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || "0") M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || "0") M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || "0") M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || "0") M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || "0") M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || "0") M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M029, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = ("FE7CB391D650A284" || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("FE7CB391D650A284" || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = ("FE7CB391D650A284" || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = ("FE7CB391D650A284" || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = ("FE7CB391D650A284" || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = ("FE7CB391D650A284" || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = ("FE7CB391D650A284" || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = ("FE7CB391D650A284" || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = ("FE7CB391D650A284" || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = ("FE7CB391D650A284" || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("FE7CB391D650A284" || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = ("FE7CB391D650A284" || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || "FE7CB391D650A284") M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || "FE7CB391D650A284") M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || "FE7CB391D650A284") M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || "FE7CB391D650A284") M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || "FE7CB391D650A284") M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || "FE7CB391D650A284") M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || "FE7CB391D650A284") M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || "FE7CB391D650A284") M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || "FE7CB391D650A284") M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || "FE7CB391D650A284") M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || "FE7CB391D650A284") M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || "FE7CB391D650A284") M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = ("0" || "FE7CB391D650A284") M600 (Arg0, 0x18, Local0, Ones) Local0 = ("FE7CB391D650A284" || "0") M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M02A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = ("C179B3FE" || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("C179B3FE" || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = ("C179B3FE" || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = ("C179B3FE" || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = ("C179B3FE" || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = ("C179B3FE" || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = ("C179B3FE" || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = ("C179B3FE" || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = ("C179B3FE" || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = ("C179B3FE" || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = ("C179B3FE" || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = ("C179B3FE" || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || "C179B3FE") M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || "C179B3FE") M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || "C179B3FE") M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || "C179B3FE") M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || "C179B3FE") M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || "C179B3FE") M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || "C179B3FE") M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || "C179B3FE") M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || "C179B3FE") M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || "C179B3FE") M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || "C179B3FE") M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || "C179B3FE") M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = ("0" || "C179B3FE") M600 (Arg0, 0x18, Local0, Ones) Local0 = ("C179B3FE" || "0") M600 (Arg0, 0x19, Local0, Ones) } Method (M64E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m026", Local0) SRMT (Local0) M026 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m029", Local0) SRMT (Local0) M029 (Local0) } Method (M32E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m027", Local0) SRMT (Local0) M027 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m02a", Local0) SRMT (Local0) M02A (Local0) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64F, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == "FE7CB391D650A284") M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == "FE7CB391D650A284") M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == "FE7CB391D650A284") M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == "FE7CB391D650A284") M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == "FE7CB391D650A284") M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == "FE7CB391D650A284") M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == "FE7CB391D650A284") M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == "FE7CB391D650A284") M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == "FE7CB391D650A284") M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == "FE7CB391D650A284") M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == "FE7CB391D650A284") M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == "FE7CB391D650A284") M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == "FE7CB391D650A284") M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == "FE7CB391D650A284") M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == "FE7CB391D650A284") M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == "FE7CB391D650A284") M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == "FE7CB391D650A284") M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == "FE7CB391D650A284") M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > "FE7CB391D650A284") M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > "FE7CB391D650A284") M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > "FE7CB391D650A284") M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > "FE7CB391D650A284") M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > "FE7CB391D650A284") M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > "FE7CB391D650A284") M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > "FE7CB391D650A284") M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > "FE7CB391D650A284") M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > "FE7CB391D650A284") M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > "FE7CB391D650A284") M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > "FE7CB391D650A284") M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > "FE7CB391D650A284") M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > "FE7CB391D650A284") M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > "FE7CB391D650A284") M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > "FE7CB391D650A284") M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > "FE7CB391D650A284") M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > "FE7CB391D650A284") M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > "FE7CB391D650A284") M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= "FE7CB391D650A284") M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= "FE7CB391D650A284") M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= "FE7CB391D650A284") M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= "FE7CB391D650A284") M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= "FE7CB391D650A284") M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= "FE7CB391D650A284") M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= "FE7CB391D650A284") M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= "FE7CB391D650A284") M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= "FE7CB391D650A284") M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= "FE7CB391D650A284") M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= "FE7CB391D650A284") M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= "FE7CB391D650A284") M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= "FE7CB391D650A284") M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= "FE7CB391D650A284") M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= "FE7CB391D650A284") M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= "FE7CB391D650A284") M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= "FE7CB391D650A284") M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= "FE7CB391D650A284") M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < "FE7CB391D650A284") M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < "FE7CB391D650A284") M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < "FE7CB391D650A284") M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < "FE7CB391D650A284") M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < "FE7CB391D650A284") M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < "FE7CB391D650A284") M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < "FE7CB391D650A284") M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < "FE7CB391D650A284") M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < "FE7CB391D650A284") M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < "FE7CB391D650A284") M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < "FE7CB391D650A284") M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < "FE7CB391D650A284") M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < "FE7CB391D650A284") M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < "FE7CB391D650A284") M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < "FE7CB391D650A284") M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < "FE7CB391D650A284") M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < "FE7CB391D650A284") M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < "FE7CB391D650A284") M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= "FE7CB391D650A284") M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= "FE7CB391D650A284") M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= "FE7CB391D650A284") M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= "FE7CB391D650A284") M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= "FE7CB391D650A284") M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= "FE7CB391D650A284") M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= "FE7CB391D650A284") M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= "FE7CB391D650A284") M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= "FE7CB391D650A284") M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= "FE7CB391D650A284") M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= "FE7CB391D650A284") M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= "FE7CB391D650A284") M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= "FE7CB391D650A284") M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= "FE7CB391D650A284") M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= "FE7CB391D650A284") M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= "FE7CB391D650A284") M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= "FE7CB391D650A284") M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= "FE7CB391D650A284") M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != "FE7CB391D650A284") M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != "FE7CB391D650A284") M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != "FE7CB391D650A284") M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != "FE7CB391D650A284") M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != "FE7CB391D650A284") M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != "FE7CB391D650A284") M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != "FE7CB391D650A284") M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != "FE7CB391D650A284") M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != "FE7CB391D650A284") M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != "FE7CB391D650A284") M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != "FE7CB391D650A284") M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != "FE7CB391D650A284") M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != "FE7CB391D650A284") M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != "FE7CB391D650A284") M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != "FE7CB391D650A284") M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != "FE7CB391D650A284") M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != "FE7CB391D650A284") M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != "FE7CB391D650A284") M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32F, 1, NotSerialized) { /* LEqual */ Local0 = (0xC179B3FE == "C179B3FE") M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xC179B3FF == "C179B3FE") M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xC179B3FD == "C179B3FE") M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI3 == "C179B3FE") M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIC == "C179B3FE") M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIE == "C179B3FE") M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) == "C179B3FE") M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) == "C179B3FE") M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) == "C179B3FE") M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) == "C179B3FE") M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) == "C179B3FE") M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) == "C179B3FE") M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) == "C179B3FE") M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0C) == "C179B3FE") M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0E) == "C179B3FE") M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) == "C179B3FE") M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) == "C179B3FE") M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) == "C179B3FE") M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xC179B3FE > "C179B3FE") M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xC179B3FF > "C179B3FE") M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xC179B3FD > "C179B3FE") M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI3 > "C179B3FE") M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIC > "C179B3FE") M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIE > "C179B3FE") M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) > "C179B3FE") M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) > "C179B3FE") M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) > "C179B3FE") M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) > "C179B3FE") M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) > "C179B3FE") M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) > "C179B3FE") M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) > "C179B3FE") M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0C) > "C179B3FE") M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0E) > "C179B3FE") M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) > "C179B3FE") M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) > "C179B3FE") M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) > "C179B3FE") M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xC179B3FE >= "C179B3FE") M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xC179B3FF >= "C179B3FE") M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xC179B3FD >= "C179B3FE") M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI3 >= "C179B3FE") M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIC >= "C179B3FE") M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIE >= "C179B3FE") M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) >= "C179B3FE") M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) >= "C179B3FE") M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) >= "C179B3FE") M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) >= "C179B3FE") M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) >= "C179B3FE") M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) >= "C179B3FE") M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) >= "C179B3FE") M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0C) >= "C179B3FE") M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0E) >= "C179B3FE") M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >= "C179B3FE") M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) >= "C179B3FE") M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) >= "C179B3FE") M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xC179B3FE < "C179B3FE") M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xC179B3FF < "C179B3FE") M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xC179B3FD < "C179B3FE") M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI3 < "C179B3FE") M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIC < "C179B3FE") M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIE < "C179B3FE") M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) < "C179B3FE") M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) < "C179B3FE") M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) < "C179B3FE") M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) < "C179B3FE") M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) < "C179B3FE") M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) < "C179B3FE") M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) < "C179B3FE") M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0C) < "C179B3FE") M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0E) < "C179B3FE") M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) < "C179B3FE") M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) < "C179B3FE") M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) < "C179B3FE") M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xC179B3FE <= "C179B3FE") M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xC179B3FF <= "C179B3FE") M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xC179B3FD <= "C179B3FE") M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI3 <= "C179B3FE") M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIC <= "C179B3FE") M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIE <= "C179B3FE") M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) <= "C179B3FE") M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) <= "C179B3FE") M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) <= "C179B3FE") M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) <= "C179B3FE") M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) <= "C179B3FE") M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) <= "C179B3FE") M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) <= "C179B3FE") M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0C) <= "C179B3FE") M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0E) <= "C179B3FE") M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) <= "C179B3FE") M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) <= "C179B3FE") M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) <= "C179B3FE") M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xC179B3FE != "C179B3FE") M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xC179B3FF != "C179B3FE") M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xC179B3FD != "C179B3FE") M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI3 != "C179B3FE") M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIC != "C179B3FE") M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIE != "C179B3FE") M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) != "C179B3FE") M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) != "C179B3FE") M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) != "C179B3FE") M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) != "C179B3FE") M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) != "C179B3FE") M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) != "C179B3FE") M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) != "C179B3FE") M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0C) != "C179B3FE") M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0E) != "C179B3FE") M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) != "C179B3FE") M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) != "C179B3FE") M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) != "C179B3FE") M600 (Arg0, 0x6B, Local0, Ones) } } Method (M02B, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == "0321") M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == "0321") M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == "0321") M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == "0321") M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == "0321") M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == "0321") M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == "0321") M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == "0321") M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == "0321") M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == "0321") M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == "0321") M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == "0321") M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == "0321") M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == "0321") M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == "0321") M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == "0321") M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == "0321") M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == "0321") M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > "0321") M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > "0321") M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > "0321") M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > "0321") M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > "0321") M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > "0321") M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > "0321") M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > "0321") M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > "0321") M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > "0321") M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > "0321") M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > "0321") M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > "0321") M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > "0321") M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > "0321") M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > "0321") M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > "0321") M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > "0321") M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= "0321") M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= "0321") M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= "0321") M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= "0321") M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= "0321") M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= "0321") M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= "0321") M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= "0321") M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= "0321") M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= "0321") M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= "0321") M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= "0321") M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= "0321") M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= "0321") M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= "0321") M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= "0321") M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= "0321") M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= "0321") M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < "0321") M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < "0321") M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < "0321") M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < "0321") M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < "0321") M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < "0321") M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < "0321") M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < "0321") M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < "0321") M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < "0321") M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < "0321") M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < "0321") M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < "0321") M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < "0321") M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < "0321") M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < "0321") M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < "0321") M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < "0321") M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= "0321") M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= "0321") M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= "0321") M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= "0321") M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= "0321") M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= "0321") M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= "0321") M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= "0321") M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= "0321") M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= "0321") M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= "0321") M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= "0321") M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= "0321") M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= "0321") M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= "0321") M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= "0321") M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= "0321") M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= "0321") M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != "0321") M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != "0321") M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != "0321") M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != "0321") M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != "0321") M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != "0321") M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != "0321") M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != "0321") M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != "0321") M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != "0321") M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != "0321") M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != "0321") M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != "0321") M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != "0321") M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != "0321") M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != "0321") M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != "0321") M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != "0321") M600 (Arg0, 0x6B, Local0, Ones) } } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64G, 1, NotSerialized) { Local0 = Concatenate (0x0321, "0321") M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, "FE7CB391D650A284") M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, "0321") M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, "FE7CB391D650A284") M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), "0321") M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), "FE7CB391D650A284") M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), "0321") M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), "FE7CB391D650A284") M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), "0321") M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), "FE7CB391D650A284") M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), "0321") M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), "FE7CB391D650A284") M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, "0321", Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, "FE7CB391D650A284", Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, "0321", Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, "FE7CB391D650A284", Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), "0321", Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), "0321", Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), "FE7CB391D650A284", Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), "0321", Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), "FE7CB391D650A284", Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), "0321", Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32G, 1, NotSerialized) { Local0 = Concatenate (0x0321, "0321") M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, "C179B3FE") M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (AUI1, "0321") M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, "C179B3FE") M600 (Arg0, 0x03, Local0, BB24) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), "0321") M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), "C179B3FE") M600 (Arg0, 0x05, Local0, BB24) } Local0 = Concatenate (DerefOf (PAUI [0x01]), "0321") M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), "C179B3FE") M600 (Arg0, 0x07, Local0, BB24) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), "0321") M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), "C179B3FE") M600 (Arg0, 0x09, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), "0321") M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), "C179B3FE") M600 (Arg0, 0x0B, Local0, BB24) } Concatenate (0x0321, "0321", Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, "C179B3FE", Local0) M600 (Arg0, 0x0D, Local0, BB24) Concatenate (AUI1, "0321", Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, "C179B3FE", Local0) M600 (Arg0, 0x0F, Local0, BB24) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), "0321", Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), "C179B3FE", Local0) M600 (Arg0, 0x11, Local0, BB24) } Concatenate (DerefOf (PAUI [0x01]), "0321", Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), "C179B3FE", Local0) M600 (Arg0, 0x14, Local0, BB24) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), "0321", Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), "C179B3FE", Local0) M600 (Arg0, 0x16, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), "0321", Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), "C179B3FE", Local0) M600 (Arg0, 0x18, Local0, BB24) } } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M02C, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, "B") M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, "0321") M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, "B") M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, "0321") M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), "B") M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), "0321") M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), "B") M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), "0321") M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), "B") M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), "0321") M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), "B") M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), "0321") M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, "B", Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, "0321", Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, "B", Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, "0321", Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), "B", Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), "0321", Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), "B", Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), "0321", Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), "B", Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), "0321", Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), "B", Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), "0321", Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, "FE7CB391D650A284") M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, "FE7CB391D650A284") M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), "FE7CB391D650A284") M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), "FE7CB391D650A284") M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), "FE7CB391D650A284") M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), "FE7CB391D650A284") M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, "FE7CB391D650A284", Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, "FE7CB391D650A284", Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), "FE7CB391D650A284", Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), "FE7CB391D650A284", Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), "FE7CB391D650A284", Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, "C179B3FE") M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, "C179B3FE") M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), "C179B3FE") M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), "C179B3FE") M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), "C179B3FE") M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), "C179B3FE") M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, "C179B3FE", Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, "C179B3FE", Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), "C179B3FE", Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), "C179B3FE", Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), "C179B3FE", Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), "C179B3FE", Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Method (M02D, 1, NotSerialized) { Store (AUS6 ["B"], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 ["B"], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 ["B"], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) ["B"], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) ["B"], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) ["B"], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) ["B"], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) ["B"], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) ["B"], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) ["B"], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) ["B"], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) ["B"], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) ["B"], Local3) CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) ["B"], Local3) CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) ["B"], Local3) CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) ["B"], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) ["B"], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) ["B"], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 ["B"] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 ["B"] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 ["B"] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) ["B"] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) ["B"] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) ["B"] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) ["B"] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) ["B"] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) ["B"] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) ["B"] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) ["B"] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) ["B"] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) ["B"] CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) ["B"] CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) ["B"] CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) ["B"] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) ["B"] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) ["B"] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 ["B"] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 ["B"] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 ["B"] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) ["B"] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) ["B"] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) ["B"] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) ["B"] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) ["B"] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) ["B"] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) ["B"] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) ["B"] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) ["B"] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) ["B"] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) ["B"] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) ["B"] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M02E, 1, NotSerialized) { CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, "0321") If (F64) { Fatal (0xFF, 0xFFFFFFFF, "FE7CB391D650A284") } Else { Fatal (0xFF, 0xFFFFFFFF, "C179B3FE") } CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) } /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M02F, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", "B", 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, "B", 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, "B", 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, "B", 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), "B", 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), "B", 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), "B", 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), "B", 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), "B", 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), "B", 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), "B", 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), "B", 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", "B", 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, "B", 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, "B", 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, "B", 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), "B", 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), "B", 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), "B", 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), "B", 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), "B", 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), "B", 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), "B", 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), "B", 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, "B") M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, "B") M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, "B") M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, "B") M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, "B") M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, "B") M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, "B") M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, "B") M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, "B") M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, "B") M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, "B") M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, "B") M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, "B", Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, "B", Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, "B", Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, "B", Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, "B", Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, "B", Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, "B", Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, "B", Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, "B", Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, "B", Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, "B", Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, "B", Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, "FE7CB391D650A284") M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, "FE7CB391D650A284") M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, "FE7CB391D650A284") M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, "FE7CB391D650A284") M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, "FE7CB391D650A284") M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, "FE7CB391D650A284") M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, "FE7CB391D650A284") M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, "FE7CB391D650A284") M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, "FE7CB391D650A284") M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, "FE7CB391D650A284") M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, "FE7CB391D650A284") M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, "FE7CB391D650A284") M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, "FE7CB391D650A284", Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", "B", "FE7CB391D650A284") M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, "B", "FE7CB391D650A284") M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, "B", "FE7CB391D650A284") M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, "B", "FE7CB391D650A284") M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), "B", "FE7CB391D650A284") M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), "B", "FE7CB391D650A284") M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), "B", "FE7CB391D650A284") M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), "B", "FE7CB391D650A284") M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), "B", "FE7CB391D650A284") M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), "B", "FE7CB391D650A284") M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), "B", "FE7CB391D650A284") M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), "B", "FE7CB391D650A284") M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), "B", "FE7CB391D650A284", Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, "C179B3FE") M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, "C179B3FE") M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, "C179B3FE") M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, "C179B3FE") M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, "C179B3FE") M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, "C179B3FE") M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, "C179B3FE") M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, "C179B3FE") M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, "C179B3FE") M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, "C179B3FE") M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, "C179B3FE") M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, "C179B3FE") M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, "C179B3FE", Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, "C179B3FE", Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, "C179B3FE", Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, "C179B3FE", Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, "C179B3FE", Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, "C179B3FE", Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, "C179B3FE", Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, "C179B3FE", Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, "C179B3FE", Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, "C179B3FE", Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, "C179B3FE", Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, "C179B3FE", Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", "B", "C179B3FE") M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, "B", "C179B3FE") M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, "B", "C179B3FE") M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, "B", "C179B3FE") M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), "B", "C179B3FE") M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), "B", "C179B3FE") M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), "B", "C179B3FE") M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), "B", "C179B3FE") M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), "B", "C179B3FE") M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), "B", "C179B3FE") M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), "B", "C179B3FE") M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), "B", "C179B3FE") M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", "B", "C179B3FE", Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, "B", "C179B3FE", Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, "B", "C179B3FE", Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, "B", "C179B3FE", Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), "B", "C179B3FE", Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), "B", "C179B3FE", Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), "B", "C179B3FE", Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), "B", "C179B3FE", Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), "B", "C179B3FE", Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), "B", "C179B3FE", Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), "B", "C179B3FE", Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), "B", "C179B3FE", Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Method (M030, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, "B") M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, "B") M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, "B") M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, "B") M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, "B") M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, "B") M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, "B") M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, "B") M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, "B") M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, "B") M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, "B") M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, "B") M600 (Arg0, 0x0B, Local0, Ones) } } /* String to Integer conversion of the String elements */ /* of a search package of Match operator when some */ /* MatchObject is evaluated as Integer */ Method (M64J, 1, NotSerialized) { Local0 = Match (Package (0x01) { "FE7CB391D650A284" }, MEQ, 0xFE7CB391D650A284, MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { "FE7CB391D650A284" }, MEQ, 0xFE7CB391D650A285, MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { "FE7CB391D650A284" }, MTR, 0x00, MEQ, 0xFE7CB391D650A284, 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { "FE7CB391D650A284" }, MTR, 0x00, MEQ, 0xFE7CB391D650A285, 0x00) M600 (Arg0, 0x03, Local0, Ones) Local0 = Match (Package (0x01) { "fE7CB391D650A284" }, MEQ, 0xFE7CB391D650A284, MTR, 0x00, 0x00) M600 (Arg0, 0x04, Local0, 0x00) Local0 = Match (Package (0x01) { "fE7CB391D650A284" }, MEQ, 0xFE7CB391D650A285, MTR, 0x00, 0x00) M600 (Arg0, 0x05, Local0, Ones) Local0 = Match (Package (0x01) { "fE7CB391D650A284" }, MTR, 0x00, MEQ, 0xFE7CB391D650A284, 0x00) M600 (Arg0, 0x06, Local0, 0x00) Local0 = Match (Package (0x01) { "fE7CB391D650A284" }, MTR, 0x00, MEQ, 0xFE7CB391D650A285, 0x00) M600 (Arg0, 0x07, Local0, Ones) } Method (M32J, 1, NotSerialized) { Local0 = Match (Package (0x01) { "C179B3FE" }, MEQ, 0xC179B3FE, MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { "C179B3FE" }, MEQ, 0xC179B3FF, MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { "C179B3FE" }, MTR, 0x00, MEQ, 0xC179B3FE, 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { "C179B3FE" }, MTR, 0x00, MEQ, 0xC179B3FF, 0x00) M600 (Arg0, 0x03, Local0, Ones) Local0 = Match (Package (0x01) { "c179B3FE" }, MEQ, 0xC179B3FE, MTR, 0x00, 0x00) M600 (Arg0, 0x04, Local0, 0x00) Local0 = Match (Package (0x01) { "c179B3FE" }, MEQ, 0xC179B3FF, MTR, 0x00, 0x00) M600 (Arg0, 0x05, Local0, Ones) Local0 = Match (Package (0x01) { "c179B3FE" }, MTR, 0x00, MEQ, 0xC179B3FE, 0x00) M600 (Arg0, 0x06, Local0, 0x00) Local0 = Match (Package (0x01) { "c179B3FE" }, MTR, 0x00, MEQ, 0xC179B3FF, 0x00) M600 (Arg0, 0x07, Local0, Ones) } /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M031, 1, NotSerialized) { CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep ("0321") CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z085, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall ("63") CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z085, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator ??? */ Method (M032, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, "0321") */ CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z085, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Method (M033, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, "0321") CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z085, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M034, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If ("0") { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If ("0321") { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If ("C179B3FE") { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If ("FE7CB391D650A284") { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf ("0") { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf ("0321") { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf ("C179B3FE") { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf ("FE7CB391D650A284") { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While ("0") { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ Method (M64K, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch (0xFE7CB391D650A285) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch (0xFE7CB391D650A284) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (AUID) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (AUI4) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (DerefOf (RefOf (AUID))) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (DerefOf (RefOf (AUI4))) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (DerefOf (PAUI [0x0D])) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (DerefOf (PAUI [0x04])) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns Integer */ I000 = 0x00 Switch (M601 (0x01, 0x0D)) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (M601 (0x01, 0x04)) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to Integer */ If (Y500) { I000 = 0x00 Switch (DerefOf (M602 (0x01, 0x0D, 0x01))) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (DerefOf (M602 (0x01, 0x04, 0x01))) { Case ("fE7CB391D650A284") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } } Method (M32K, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch (0xC179B3FF) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch (0xC179B3FE) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (AUIC) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (AUI3) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (DerefOf (RefOf (AUIC))) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (DerefOf (RefOf (AUI3))) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (DerefOf (PAUI [0x0C])) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (DerefOf (PAUI [0x03])) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns Integer */ I000 = 0x00 Switch (M601 (0x01, 0x0C)) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (M601 (0x01, 0x03)) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to Integer */ If (Y500) { I000 = 0x00 Switch (DerefOf (M602 (0x01, 0x0C, 0x01))) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (DerefOf (M602 (0x01, 0x03, 0x01))) { Case ("c179B3FE") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } } /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M035, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x05) { "0321" } == "0321") M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } == "0321") M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB7 == "0321") M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == "0321") M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) == "0321") M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == "0321") M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) == "0321") M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == "0321") M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) == "0321") M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == "0321") M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) == "0321") M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == "0321") M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x05) { "0321" } > "0321") M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } > "0321") M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } > "0321") M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } > "0321") M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB7 > "0321") M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB8 > "0321") M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) > "0321") M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) > "0321") M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) > "0321") M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) > "0321") M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) > "0321") M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x08) > "0321") M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) > "0321") M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) > "0321") M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x05) { "0321" } >= "0321") M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } >= "0321") M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } >= "0321") M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } >= "0321") M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB7 >= "0321") M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB8 >= "0321") M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) >= "0321") M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) >= "0321") M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) >= "0321") M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) >= "0321") M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) >= "0321") M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x08) >= "0321") M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) >= "0321") M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) >= "0321") M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x05) { "0321" } < "0321") M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } < "0321") M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } < "0321") M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } < "0321") M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB7 < "0321") M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB8 < "0321") M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) < "0321") M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) < "0321") M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) < "0321") M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) < "0321") M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) < "0321") M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x08) < "0321") M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) < "0321") M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) < "0321") M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x05) { "0321" } <= "0321") M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } <= "0321") M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } <= "0321") M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } <= "0321") M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB7 <= "0321") M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB8 <= "0321") M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) <= "0321") M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) <= "0321") M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) <= "0321") M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) <= "0321") M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) <= "0321") M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x08) <= "0321") M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) <= "0321") M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) <= "0321") M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x05) { "0321" } != "0321") M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } != "0321") M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } != "0321") M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } != "0321") M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB7 != "0321") M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB8 != "0321") M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) != "0321") M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) != "0321") M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) != "0321") M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) != "0321") M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) != "0321") M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x08) != "0321") M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) != "0321") M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) != "0321") M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = (Buffer (0x01) { 0x00 // . } == "") M600 (Arg0, 0x52, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } == "") M600 (Arg0, 0x53, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } > "") M600 (Arg0, 0x54, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } > "") M600 (Arg0, 0x55, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } >= "") M600 (Arg0, 0x56, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } > "") M600 (Arg0, 0x57, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } < "") M600 (Arg0, 0x58, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } < "") M600 (Arg0, 0x59, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } <= "") M600 (Arg0, 0x5A, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } <= "") M600 (Arg0, 0x5B, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } != "") M600 (Arg0, 0x5C, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } != "") M600 (Arg0, 0x5D, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } == "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x5E, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } == "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x5F, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } > "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x60, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x61, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } >= "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x62, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x63, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } < "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x64, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } < "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x65, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } <= "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x66, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } <= "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x67, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } != "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x68, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } != "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x69, Local0, Ones) } /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M036, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, "0321") M600 (Arg0, 0x00, Local0, BB29) Local0 = Concatenate (Buffer (0x02) { "Z" }, "0321") M600 (Arg0, 0x01, Local0, BB2A) Local0 = Concatenate (AUB0, "0321") M600 (Arg0, 0x02, Local0, BB29) Local0 = Concatenate (AUB1, "0321") M600 (Arg0, 0x03, Local0, BB2A) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), "0321") M600 (Arg0, 0x04, Local0, BB29) Local0 = Concatenate (DerefOf (RefOf (AUB1)), "0321") M600 (Arg0, 0x05, Local0, BB2A) } Local0 = Concatenate (DerefOf (PAUB [0x00]), "0321") M600 (Arg0, 0x06, Local0, BB29) Local0 = Concatenate (DerefOf (PAUB [0x01]), "0321") M600 (Arg0, 0x07, Local0, BB2A) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), "0321") M600 (Arg0, 0x08, Local0, BB29) Local0 = Concatenate (M601 (0x03, 0x01), "0321") M600 (Arg0, 0x09, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), "0321") M600 (Arg0, 0x0A, Local0, BB29) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), "0321") M600 (Arg0, 0x0B, Local0, BB2A) } Concatenate (Buffer (0x01) { 0x5A // Z }, "0321", Local0) M600 (Arg0, 0x0C, Local0, BB29) Concatenate (Buffer (0x02) { "Z" }, "0321", Local0) M600 (Arg0, 0x0D, Local0, BB2A) Concatenate (AUB0, "0321", Local0) M600 (Arg0, 0x0E, Local0, BB29) Concatenate (AUB1, "0321", Local0) M600 (Arg0, 0x0F, Local0, BB2A) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), "0321", Local0) M600 (Arg0, 0x10, Local0, BB29) Concatenate (DerefOf (RefOf (AUB1)), "0321", Local0) M600 (Arg0, 0x11, Local0, BB2A) } Concatenate (DerefOf (PAUB [0x00]), "0321", Local0) M600 (Arg0, 0x12, Local0, BB29) Concatenate (DerefOf (PAUB [0x01]), "0321", Local0) M600 (Arg0, 0x13, Local0, BB2A) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), "0321", Local0) M600 (Arg0, 0x14, Local0, BB29) Concatenate (M601 (0x03, 0x01), "0321", Local0) M600 (Arg0, 0x15, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), "0321", Local0) M600 (Arg0, 0x16, Local0, BB29) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), "0321", Local0) M600 (Arg0, 0x17, Local0, BB2A) } /* Boundary Cases */ Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, "") M600 (Arg0, 0x18, Local0, BB2B) Local0 = Concatenate (Buffer (0x02) { "Z" }, "") M600 (Arg0, 0x19, Local0, BB2C) Local0 = Concatenate (Buffer (0x00){}, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x1A, Local0, BB2D) } /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character, that is impossible to show */ /* with an immediate String constant). */ Method (M037, 1, NotSerialized) { Local0 = ToString ("0321", Ones) M600 (Arg0, 0x00, Local0, BS20) Local0 = ToString ("0321", 0x03) M600 (Arg0, 0x01, Local0, BS21) Local0 = ToString ("0321", AUI0) M600 (Arg0, 0x02, Local0, BS20) Local0 = ToString ("0321", AUI7) M600 (Arg0, 0x03, Local0, BS21) If (Y078) { Local0 = ToString ("0321", DerefOf (RefOf (AUI0))) M600 (Arg0, 0x04, Local0, BS20) Local0 = ToString ("0321", DerefOf (RefOf (AUI7))) M600 (Arg0, 0x05, Local0, BS21) } Local0 = ToString ("0321", DerefOf (PAUI [0x00])) M600 (Arg0, 0x06, Local0, BS20) Local0 = ToString ("0321", DerefOf (PAUI [0x07])) M600 (Arg0, 0x07, Local0, BS21) /* Method returns Length parameter */ Local0 = ToString ("0321", M601 (0x01, 0x00)) M600 (Arg0, 0x08, Local0, BS20) Local0 = ToString ("0321", M601 (0x01, 0x07)) M600 (Arg0, 0x09, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString ("0321", DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0A, Local0, BS20) Local0 = ToString ("0321", DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x0B, Local0, BS21) } ToString ("0321", Ones, Local0) M600 (Arg0, 0x0C, Local0, BS20) ToString ("0321", 0x03, Local0) M600 (Arg0, 0x0D, Local0, BS21) ToString ("0321", AUI0, Local0) M600 (Arg0, 0x0E, Local0, BS20) ToString ("0321", AUI7, Local0) M600 (Arg0, 0x0F, Local0, BS21) If (Y078) { ToString ("0321", DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x10, Local0, BS20) ToString ("0321", DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x11, Local0, BS21) } ToString ("0321", DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x12, Local0, BS20) ToString ("0321", DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x13, Local0, BS21) /* Method returns Length parameter */ ToString ("0321", M601 (0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS20) ToString ("0321", M601 (0x01, 0x07), Local0) M600 (Arg0, 0x15, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { ToString ("0321", DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x16, Local0, BS20) ToString ("0321", DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x17, Local0, BS21) } /* Boundary Cases */ Local0 = ToString ("", Ones) M600 (Arg0, 0x18, Local0, BS22) Local0 = ToString ("", 0x03) M600 (Arg0, 0x19, Local0, BS22) Local0 = ToString ("!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", Ones) M600 (Arg0, 0x1A, Local0, BS23) Local0 = ToString ("!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", 0x03) M600 (Arg0, 0x1B, Local0, BS24) } /* String to Buffer conversion of the String elements of */ /* a search package of Match operator when some MatchObject */ /* is evaluated as Buffer */ Method (M038, 1, NotSerialized) { Local0 = Match (Package (0x01) { "0321" }, MEQ, Buffer (0x05) { "0321" }, MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { "0321" }, MEQ, Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. }, MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { "0321" }, MTR, 0x00, MEQ, Buffer (0x05) { "0321" }, 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { "0321" }, MTR, 0x00, MEQ, Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. }, 0x00) M600 (Arg0, 0x03, Local0, Ones) /* Boundary Cases */ Local0 = Match (Package (0x01) { "" }, MEQ, Buffer (0x01) { 0x00 // . }, MTR, 0x00, 0x00) M600 (Arg0, 0x04, Local0, 0x00) Local0 = Match (Package (0x01) { "" }, MEQ, Buffer (0x01) { 0x01 // . }, MTR, 0x00, 0x00) M600 (Arg0, 0x05, Local0, Ones) Local0 = Match (Package (0x01) { "" }, MTR, 0x00, MEQ, Buffer (0x01) { 0x00 // . }, 0x00) M600 (Arg0, 0x06, Local0, 0x00) Local0 = Match (Package (0x01) { "" }, MTR, 0x00, MEQ, Buffer (0x01) { 0x01 // . }, 0x00) M600 (Arg0, 0x07, Local0, Ones) Local0 = Match (Package (0x01) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }, MEQ, Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }, MTR, 0x00, 0x00) M600 (Arg0, 0x08, Local0, 0x00) Local0 = Match (Package (0x01) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }, MEQ, Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . }, MTR, 0x00, 0x00) M600 (Arg0, 0x09, Local0, Ones) Local0 = Match (Package (0x01) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }, MTR, 0x00, MEQ, Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }, 0x00) M600 (Arg0, 0x0A, Local0, 0x00) Local0 = Match (Package (0x01) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }, MTR, 0x00, MEQ, Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . }, 0x00) M600 (Arg0, 0x0B, Local0, Ones) } /* String to Buffer conversion of the String value of */ /* Expression of Case statement when Expression in Switch */ /* is either static Buffer data or explicitly converted to */ /* Buffer by ToBuffer */ Method (M039, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. }) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch (Buffer (0x05) { "0321" }) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (ToBuffer (AUB8)) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (ToBuffer (AUB7)) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (ToBuffer (DerefOf (RefOf (AUB8)))) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (ToBuffer (DerefOf (RefOf (AUB7)))) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (ToBuffer (DerefOf (PAUB [0x08]))) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (ToBuffer (DerefOf (PAUB [0x07]))) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns String */ I000 = 0x00 Switch (ToBuffer (M601 (0x03, 0x08))) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (ToBuffer (M601 (0x03, 0x07))) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to String */ If (Y500) { I000 = 0x00 Switch (ToBuffer (DerefOf (M602 (0x03, 0x08, 0x01)))) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (ToBuffer (DerefOf (M602 (0x03, 0x07, 0x01)))) { Case ("0321") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } /* Boundary Cases */ I000 = 0x00 Switch (Buffer (0x01) { 0x01 // . }) { Case ("") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0C, I000, 0x02) I000 = 0x00 Switch (Buffer (0x01) { 0x00 // . }) { Case ("") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0D, I000, 0x01) I000 = 0x00 Switch (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . }) { Case ("!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0E, I000, 0x02) I000 = 0x00 Switch (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }) { Case ("!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") { I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0F, I000, 0x01) } /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { /* Decrement */ /* Increment */ /* FindSetLeftBit */ Local0 = FindSetLeftBit (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, 0x03) /* Not */ Store (~Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Store (~Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, NotSerialized) { /* Decrement */ /* Increment */ /* FindSetLeftBit */ Local0 = FindSetLeftBit (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, 0x03) /* Not */ Store (~Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFCDE) Store (~Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { Local0 = !Buffer (0x01) { 0x00 // . } M600 (Arg0, 0x00, Local0, Ones) Local0 = !Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. }) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. }, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } + Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } + Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } & Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } & Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (PAUI [0x14])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } / Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } / Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (PAUI [0x15])), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (PAUI [0x16])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } % Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } % Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } * Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } * Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } | Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } | Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } << Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> Buffer (0x01) { 0x0B // . }), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } >> Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } - Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } - Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ^ Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ^ Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } && Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } && Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (Buffer (0x01) { 0x00 // . } || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Buffer (0x01) { 0x00 // . } || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Buffer (0x01) { 0x00 // . } || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Buffer (0x01) { 0x00 // . } || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x01) { 0x00 // . } || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Buffer (0x01) { 0x00 // . } || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Buffer (0x01) { 0x00 // . } || Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } || Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { /* LEqual */ Local0 = (0xD650A284 == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Method (M067, 1, NotSerialized) { Store (AUS6 [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [Buffer (0x01) { 0x0B // . }], Local3) CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [Buffer (0x01) { 0x0B // . }], Local3) CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [Buffer (0x01) { 0x0B // . }], Local3) CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [Buffer (0x01) { 0x0B // . }], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [Buffer (0x01) { 0x0B // . }] CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [Buffer (0x01) { 0x0B // . }] CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [Buffer (0x01) { 0x0B // . }] CH04 (Arg0, 0x00, 0x55, Z085, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [Buffer (0x01) { 0x0B // . }] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) If (F64) { Fatal (0xFF, 0xFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } Else { Fatal (0xFF, 0xFFFFFFFF, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) } /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", Buffer (0x01) { 0x0B // . }, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x01) { 0x0B // . }, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, Buffer (0x01) { 0x0B // . }, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, Buffer (0x01) { 0x0B // . }, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Buffer (0x01) { 0x0B // . }, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), Buffer (0x01) { 0x0B // . }, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), Buffer (0x01) { 0x0B // . }, 0x0A ) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), Buffer (0x01) { 0x0B // . }, 0x0A ) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Buffer (0x01) { 0x0B // . }, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), Buffer (0x01) { 0x0B // . }, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, 0x0A ) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, 0x0A ) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Buffer (0x01) { 0x0B // . } ) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Buffer (0x01) { 0x0B // . } ) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Buffer (0x01) { 0x0B // . } ) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Buffer (0x01) { 0x0B // . } ) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Buffer (0x01) { 0x0B // . }, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Buffer (0x01) { 0x0B // . }, Buffer ( 0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Buffer (0x01) { 0x0B // . }, Buffer ( 0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, Buffer ( 0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, Buffer ( 0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Buffer (0x01) { 0x0B // . }, Buffer ( 0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Buffer (0x01) { 0x0B // . }, Buffer ( 0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, Buffer ( 0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, Buffer ( 0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Buffer (0x01) { 0x0B // . }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x0B, Local0, Ones) } } /* Buffer to Integer conversion of the Buffer elements */ /* of a search package of Match operator when some */ /* MatchObject is evaluated as Integer */ Method (M64T, 1, NotSerialized) { Local0 = Match (Package (0x01) { Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } }, MEQ, 0xFE7CB391D650A284, MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } }, MEQ, 0xFE7CB391D650A285, MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } }, MTR, 0x00, MEQ, 0xFE7CB391D650A284, 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } }, MTR, 0x00, MEQ, 0xFE7CB391D650A285, 0x00) M600 (Arg0, 0x03, Local0, Ones) } Method (M32T, 1, NotSerialized) { Local0 = Match (Package (0x01) { Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } }, MEQ, 0xD650A284, MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } }, MEQ, 0xD650A285, MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } }, MTR, 0x00, MEQ, 0xD650A284, 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } }, MTR, 0x00, MEQ, 0xD650A285, 0x00) M600 (Arg0, 0x03, Local0, Ones) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z085, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (Buffer (0x01) { 0x3F // ? }) CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z085, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Buffer(3){0x21, 0x03, 0x00}) */ CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z085, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) CH03 (Arg0, Z085, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z085, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (Buffer (0x01) { 0x00 // . } ) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Buffer (0x01) { 0x00 // . } ) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } ) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } ) { IST0 = 0x08 } } Method (M009, 0, Serialized) { Name (BUF0, Buffer (0x01) { 0x00 // . }) While (BUF0) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ Method (M64U, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch (0xFE7CB391D650A285) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch (0xFE7CB391D650A284) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (AUID) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (AUI4) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (DerefOf (RefOf (AUID))) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (DerefOf (RefOf (AUI4))) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (DerefOf (PAUI [0x0D])) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (DerefOf (PAUI [0x04])) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns Integer */ I000 = 0x00 Switch (M601 (0x01, 0x0D)) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (M601 (0x01, 0x04)) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to Integer */ If (Y500) { I000 = 0x00 Switch (DerefOf (M602 (0x01, 0x0D, 0x01))) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (DerefOf (M602 (0x01, 0x04, 0x01))) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } } Method (M32U, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch (0xD650A285) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch (0xD650A284) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (AUIL) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (AUIK) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (DerefOf (RefOf (AUIL))) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (DerefOf (RefOf (AUIK))) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (DerefOf (PAUI [0x15])) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (DerefOf (PAUI [0x14])) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns Integer */ I000 = 0x00 Switch (M601 (0x01, 0x15)) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (M601 (0x01, 0x14)) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to Integer */ If (Y500) { I000 = 0x00 Switch (DerefOf (M602 (0x01, 0x15, 0x01))) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (DerefOf (M602 (0x01, 0x14, 0x01))) { Case (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } } /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M06F, 1, NotSerialized) { /* LEqual */ Local0 = ("21 03 00" == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("21 03 01" == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS9 == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUSA == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x0A) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) == Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("21 03 00" > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("21 03 01" > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("21 03 0 " > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("21 03 00q" > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS9 > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUSA > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x0A) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) > Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("21 03 00" >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("21 03 01" >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("21 03 0 " >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("21 03 00q" >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS9 >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUSA >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x0A) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) >= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("21 03 00" < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("21 03 01" < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("21 03 0 " < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("21 03 00q" < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS9 < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUSA < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x0A) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) < Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("21 03 00" <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("21 03 01" <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("21 03 0 " <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("21 03 00q" <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS9 <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUSA <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x0A) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) <= Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("21 03 00" != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("21 03 01" != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("21 03 0 " != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("21 03 00q" != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS9 != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUSA != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x0A) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) != Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" == Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x52, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" == Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x53, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" > Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x54, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" > Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x55, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" >= Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x56, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" >= Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x57, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" < Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x58, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" < Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x59, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" <= Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x5A, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" <= Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x5B, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" != Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x5C, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" != Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x5D, Local0, Ones) } /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M070, 1, NotSerialized) { Local0 = Concatenate ("", Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x00, Local0, BS25) Local0 = Concatenate ("1234q", Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x01, Local0, BS26) Local0 = Concatenate (AUS0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x02, Local0, BS25) Local0 = Concatenate (AUS1, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x03, Local0, BS26) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x04, Local0, BS25) Local0 = Concatenate (DerefOf (RefOf (AUS1)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x05, Local0, BS26) } Local0 = Concatenate (DerefOf (PAUS [0x00]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x06, Local0, BS25) Local0 = Concatenate (DerefOf (PAUS [0x01]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x07, Local0, BS26) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x08, Local0, BS25) Local0 = Concatenate (M601 (0x02, 0x01), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x09, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0A, Local0, BS25) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x0B, Local0, BS26) } Concatenate ("", Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0C, Local0, BS25) Concatenate ("1234q", Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0D, Local0, BS26) Concatenate (AUS0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0E, Local0, BS25) Concatenate (AUS1, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x0F, Local0, BS26) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x10, Local0, BS25) Concatenate (DerefOf (RefOf (AUS1)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x11, Local0, BS26) } Concatenate (DerefOf (PAUS [0x00]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x12, Local0, BS25) Concatenate (DerefOf (PAUS [0x01]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x13, Local0, BS26) /* Method returns String */ Concatenate (M601 (0x02, 0x00), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x14, Local0, BS25) Concatenate (M601 (0x02, 0x01), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x15, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x16, Local0, BS25) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Local0) M600 (Arg0, 0x17, Local0, BS26) } /* Boundary Cases */ Local0 = Concatenate ("", Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x18, Local0, BS27) } /* Buffer to String conversion of the Buffer elements */ /* of a search package of Match operator when some MatchObject */ /* is evaluated as String */ Method (M071, 1, NotSerialized) { Local0 = Match (Package (0x01) { Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } }, MEQ, "21 03 00", MTR, 0x00, 0x00) M600 (Arg0, 0x00, Local0, 0x00) Local0 = Match (Package (0x01) { Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } }, MEQ, "21 03 01", MTR, 0x00, 0x00) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (Package (0x01) { Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } }, MTR, 0x00, MEQ, "21 03 00", 0x00) M600 (Arg0, 0x02, Local0, 0x00) Local0 = Match (Package (0x01) { Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } }, MTR, 0x00, MEQ, "21 03 01", 0x00) M600 (Arg0, 0x03, Local0, Ones) /* Boundary Cases */ Local0 = Match (Package (0x01) { Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc } }, MEQ, "21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63", MTR, 0x00, 0x00) M600 (Arg0, 0x04, Local0, 0x00) Local0 = Match (Package (0x01) { Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc } }, MEQ, "21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64", MTR, 0x00, 0x00) M600 (Arg0, 0x05, Local0, Ones) Local0 = Match (Package (0x01) { Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc } }, MTR, 0x00, MEQ, "21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63", 0x00) M600 (Arg0, 0x06, Local0, 0x00) Local0 = Match (Package (0x01) { Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc } }, MTR, 0x00, MEQ, "21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64", 0x00) M600 (Arg0, 0x07, Local0, Ones) } /* Buffer to String conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is either static String data or explicitly */ /* converted to String by ToDecimalString, ToHexString */ /* or ToString */ Method (M072, 1, Serialized) { Name (I000, 0x00) I000 = 0x00 Switch ("21 03 01") { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch ("21 03 00") { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) I000 = 0x00 Switch (ToHexString (AUSA)) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x02, I000, 0x02) I000 = 0x00 Switch (ToHexString (AUS9)) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x03, I000, 0x01) If (Y078) { I000 = 0x00 Switch (ToHexString (DerefOf (RefOf (AUSA)))) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x04, I000, 0x02) I000 = 0x00 Switch (ToHexString (DerefOf (RefOf (AUS9)))) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x05, I000, 0x01) } I000 = 0x00 Switch (ToHexString (DerefOf (PAUS [0x0A]))) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x06, I000, 0x02) I000 = 0x00 Switch (ToHexString (DerefOf (PAUS [0x09]))) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x07, I000, 0x01) /* Method returns String */ I000 = 0x00 Switch (ToHexString (M601 (0x02, 0x0A))) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x08, I000, 0x02) I000 = 0x00 Switch (ToHexString (M601 (0x02, 0x09))) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x09, I000, 0x01) /* Method returns Reference to String */ If (Y500) { I000 = 0x00 Switch (ToHexString (DerefOf (M602 (0x02, 0x0A, 0x01)))) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0A, I000, 0x02) I000 = 0x00 Switch (ToHexString (DerefOf (M602 (0x02, 0x09, 0x01)))) { Case (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x0B, I000, 0x01) } /* Boundary Cases */ I000 = 0x00 Switch ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64") { Case (Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x00, I000, 0x02) I000 = 0x00 Switch ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63") { Case (Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }){ I000 = 0x01 } Default { I000 = 0x02 } } M600 (Arg0, 0x01, I000, 0x01) } /* * Begin of the test body */ /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ If (F64) { Concatenate (__METHOD__, "-m640", Local0) SRMT (Local0) M640 (Local0) } Else { Concatenate (__METHOD__, "-m320", Local0) SRMT (Local0) M320 (Local0) } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m641", Local0) SRMT (Local0) M641 (Local0) } Else { Concatenate (__METHOD__, "-m321", Local0) SRMT (Local0) M321 (Local0) } /* Integer to String conversion of the Integer elements */ /* of a search package of Match operator when some MatchObject */ /* is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m642", Local0) SRMT (Local0) M642 (Local0) } Else { Concatenate (__METHOD__, "-m322", Local0) SRMT (Local0) M322 (Local0) } /* Integer to String conversion of the Integer value */ /* of Expression of Case statement when Expression in */ /* Switch is either static String data or explicitly */ /* converted to String by ToDecimalString, ToHexString */ /* or ToString */ If (F64) { Concatenate (__METHOD__, "-m643", Local0) SRMT (Local0) M643 (Local0) } Else { Concatenate (__METHOD__, "-m323", Local0) SRMT (Local0) M323 (Local0) } /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* Integer to Buffer conversion of the Integer elements of */ /* a search package of Match operator when some MatchObject */ /* is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m649", Local0) SRMT (Local0) M649 (Local0) } Else { Concatenate (__METHOD__, "-m329", Local0) SRMT (Local0) M329 (Local0) } /* Integer to Buffer conversion of the Integer value of */ /* Expression of Case statement when Expression in Switch */ /* is either static Buffer data or explicitly converted to */ /* Buffer by ToBuffer */ If (F64) { Concatenate (__METHOD__, "-m64a", Local0) SRMT (Local0) M64A (Local0) } Else { Concatenate (__METHOD__, "-m32a", Local0) SRMT (Local0) M32A (Local0) } /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64b", Local0) SRMT (Local0) M64B (Local0) } Else { Concatenate (__METHOD__, "-m32b", Local0) SRMT (Local0) M32B (Local0) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m000", Local0) SRMT (Local0) M000 (Local0) /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64c", Local0) SRMT (Local0) M64C (Local0) } Else { Concatenate (__METHOD__, "-m32c", Local0) SRMT (Local0) M32C (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64D (Concatenate (__METHOD__, "-m64d")) } Else { M32D (Concatenate (__METHOD__, "-m32d")) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64E (Concatenate (__METHOD__, "-m64e")) } Else { M32E (Concatenate (__METHOD__, "-m32e")) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m02b", Local0) SRMT (Local0) M02B (Local0) If (F64) { Concatenate (__METHOD__, "-m64f", Local0) SRMT (Local0) M64F (Local0) } Else { Concatenate (__METHOD__, "-m32f", Local0) SRMT (Local0) M32F (Local0) } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64g", Local0) SRMT (Local0) M64G (Local0) } Else { Concatenate (__METHOD__, "-m32g", Local0) SRMT (Local0) M32G (Local0) } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m02c", Local0) SRMT (Local0) M02C (Local0) If (F64) { Concatenate (__METHOD__, "-m64h", Local0) SRMT (Local0) M64H (Local0) } Else { Concatenate (__METHOD__, "-m32h", Local0) SRMT (Local0) M32H (Local0) } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m02d", Local0) SRMT (Local0) M02D (Local0) /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m02e", Local0) SRMT (Local0) M02E (Local0) /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m02f", Local0) SRMT (Local0) M02F (Local0) If (F64) { Concatenate (__METHOD__, "-m64i", Local0) SRMT (Local0) M64I (Local0) } Else { Concatenate (__METHOD__, "-m32i", Local0) SRMT (Local0) M32I (Local0) } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m030", Local0) SRMT (Local0) M030 (Local0) /* String to Integer conversion of the String elements */ /* of a search package of Match operator when some */ /* MatchObject is evaluated as Integer */ If (F64) { Concatenate (__METHOD__, "-m64j", Local0) SRMT (Local0) M64J (Local0) } Else { Concatenate (__METHOD__, "-m32j", Local0) SRMT (Local0) M32J (Local0) } /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m031", Local0) SRMT (Local0) M031 (Local0) /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m032", Local0) SRMT(Local0) m032(Local0) */ /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m033", Local0) SRMT (Local0) M033 (Local0) /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m034", Local0) SRMT (Local0) If (Y111) { M034 (Local0) } Else { BLCK () } /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ If (F64) { Concatenate (__METHOD__, "-m64k", Local0) SRMT (Local0) M64K (Local0) } Else { Concatenate (__METHOD__, "-m32k", Local0) SRMT (Local0) M32K (Local0) } /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m035", Local0) SRMT (Local0) M035 (Local0) /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Concatenate (__METHOD__, "-m036", Local0) SRMT (Local0) M036 (Local0) /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character) */ Concatenate (__METHOD__, "-m037", Local0) SRMT (Local0) M037 (Local0) /* String to Buffer conversion of the String elements of */ /* a search package of Match operator when some MatchObject */ /* is evaluated as Buffer */ Concatenate (__METHOD__, "-m038", Local0) SRMT (Local0) M038 (Local0) /* String to Buffer conversion of the String value of */ /* Expression of Case statement when Expression in Switch */ /* is either static Buffer data or explicitly converted to */ /* Buffer by ToBuffer */ Concatenate (__METHOD__, "-m039", Local0) SRMT (Local0) M039 (Local0) /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer to Integer conversion of the Buffer elements */ /* of a search package of Match operator when some */ /* MatchObject is evaluated as Integer */ If (F64) { Concatenate (__METHOD__, "-m64t", Local0) SRMT (Local0) M64T (Local0) } Else { Concatenate (__METHOD__, "-m32t", Local0) SRMT (Local0) M32T (Local0) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m06c", Local0) SRMT(Local0) m06c(Local0) */ /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) If (Y111) { M06E (Local0) } Else { BLCK () } /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ If (F64) { Concatenate (__METHOD__, "-m64u", Local0) SRMT (Local0) M64U (Local0) } Else { Concatenate (__METHOD__, "-m32u", Local0) SRMT (Local0) M32U (Local0) } /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Concatenate (__METHOD__, "-m06f", Local0) SRMT (Local0) M06F (Local0) /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Concatenate (__METHOD__, "-m070", Local0) SRMT (Local0) M070 (Local0) /* Buffer to String conversion of the Buffer elements */ /* of a search package of Match operator when some MatchObject */ /* is evaluated as String */ Concatenate (__METHOD__, "-m071", Local0) SRMT (Local0) M071 (Local0) /* Buffer to String conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is either static String data or explicitly */ /* converted to String by ToDecimalString, ToHexString */ /* or ToString */ Concatenate (__METHOD__, "-m072", Local0) SRMT (Local0) M072 (Local0) /* There are no Buffer field and Field unit constant */ /* images therefore there are no test objects to test */ /* Data of these types in this test. */ } /* * Cases when there are more than one operand for implicit conversion * - when the first operand of Concatenate operator is Integer, * there are additional conversions besides this Integer to Buffer: * = String to Integer conversion if second operand is String * = Buffer to Integer conversion if second operand is Buffer * = Integer to Buffer conversion of the converted second operand */ Method (M620, 0, Serialized) { /* Buffer to Integer conversion if second operand is Buffer */ Method (M645, 1, NotSerialized) { Local0 = Concatenate (0xFE7CB391D650A284, Buffer (0x01) { 0x5A // Z }) M600 (Arg0, 0x00, Local0, BB16) Local0 = Concatenate (0xFE7CB391D650A284, Buffer (0x02) { "Z" }) M600 (Arg0, 0x01, Local0, BB17) Local0 = Concatenate (0xFE7CB391D650A284, AUB0) M600 (Arg0, 0x02, Local0, BB16) Local0 = Concatenate (0xFE7CB391D650A284, AUB1) M600 (Arg0, 0x03, Local0, BB17) If (Y078) { Local0 = Concatenate (0xFE7CB391D650A284, DerefOf (RefOf (AUB0))) M600 (Arg0, 0x04, Local0, BB16) Local0 = Concatenate (0xFE7CB391D650A284, DerefOf (RefOf (AUB1))) M600 (Arg0, 0x05, Local0, BB17) } Local0 = Concatenate (0xFE7CB391D650A284, DerefOf (PAUB [0x00])) M600 (Arg0, 0x06, Local0, BB16) Local0 = Concatenate (0xFE7CB391D650A284, DerefOf (PAUB [0x01])) M600 (Arg0, 0x07, Local0, BB17) /* Method returns Buffer */ Local0 = Concatenate (0xFE7CB391D650A284, M601 (0x03, 0x00)) M600 (Arg0, 0x08, Local0, BB16) Local0 = Concatenate (0xFE7CB391D650A284, M601 (0x03, 0x01)) M600 (Arg0, 0x09, Local0, BB17) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (0xFE7CB391D650A284, DerefOf (M602 (0x03, 0x00, 0x01))) M600 (Arg0, 0x0A, Local0, BB16) Local0 = Concatenate (0xFE7CB391D650A284, DerefOf (M602 (0x03, 0x01, 0x01))) M600 (Arg0, 0x0B, Local0, BB17) } Concatenate (0xFE7CB391D650A284, Buffer (0x01) { 0x5A // Z }, Local0) M600 (Arg0, 0x0C, Local0, BB16) Concatenate (0xFE7CB391D650A284, Buffer (0x02) { "Z" }, Local0) M600 (Arg0, 0x0D, Local0, BB17) Concatenate (0xFE7CB391D650A284, AUB0, Local0) M600 (Arg0, 0x0E, Local0, BB16) Concatenate (0xFE7CB391D650A284, AUB1, Local0) M600 (Arg0, 0x0F, Local0, BB17) If (Y078) { Concatenate (0xFE7CB391D650A284, DerefOf (RefOf (AUB0)), Local0) M600 (Arg0, 0x10, Local0, BB16) Concatenate (0xFE7CB391D650A284, DerefOf (RefOf (AUB1)), Local0) M600 (Arg0, 0x11, Local0, BB17) } Concatenate (0xFE7CB391D650A284, DerefOf (PAUB [0x00]), Local0) M600 (Arg0, 0x12, Local0, BB16) Concatenate (0xFE7CB391D650A284, DerefOf (PAUB [0x01]), Local0) M600 (Arg0, 0x13, Local0, BB17) /* Method returns Buffer */ Concatenate (0xFE7CB391D650A284, M601 (0x03, 0x00), Local0) M600 (Arg0, 0x14, Local0, BB16) Concatenate (0xFE7CB391D650A284, M601 (0x03, 0x01), Local0) M600 (Arg0, 0x15, Local0, BB17) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (0xFE7CB391D650A284, DerefOf (M602 (0x03, 0x00, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BB16) Concatenate (0xFE7CB391D650A284, DerefOf (M602 (0x03, 0x01, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB17) } } Method (M325, 1, NotSerialized) { Local0 = Concatenate (0xC179B3FE, Buffer (0x01) { 0x5A // Z }) M600 (Arg0, 0x00, Local0, BB18) Local0 = Concatenate (0xC179B3FE, Buffer (0x02) { "Z" }) M600 (Arg0, 0x01, Local0, BB19) Local0 = Concatenate (0xC179B3FE, AUB0) M600 (Arg0, 0x02, Local0, BB18) Local0 = Concatenate (0xC179B3FE, AUB1) M600 (Arg0, 0x03, Local0, BB19) If (Y078) { Local0 = Concatenate (0xC179B3FE, DerefOf (RefOf (AUB0))) M600 (Arg0, 0x04, Local0, BB18) Local0 = Concatenate (0xC179B3FE, DerefOf (RefOf (AUB1))) M600 (Arg0, 0x05, Local0, BB19) } Local0 = Concatenate (0xC179B3FE, DerefOf (PAUB [0x00])) M600 (Arg0, 0x06, Local0, BB18) Local0 = Concatenate (0xC179B3FE, DerefOf (PAUB [0x01])) M600 (Arg0, 0x07, Local0, BB19) /* Method returns Buffer */ Local0 = Concatenate (0xC179B3FE, M601 (0x03, 0x00)) M600 (Arg0, 0x08, Local0, BB18) Local0 = Concatenate (0xC179B3FE, M601 (0x03, 0x01)) M600 (Arg0, 0x09, Local0, BB19) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (0xC179B3FE, DerefOf (M602 (0x03, 0x00, 0x01))) M600 (Arg0, 0x0A, Local0, BB18) Local0 = Concatenate (0xC179B3FE, DerefOf (M602 (0x03, 0x01, 0x01))) M600 (Arg0, 0x0B, Local0, BB19) } Local0 = Concatenate (0xFE7CB391D650A284, Buffer (0x01) { 0x5A // Z }) M600 (Arg0, 0x0C, Local0, BB1A) Local0 = Concatenate (0xFE7CB391D650A284, Buffer (0x02) { "Z" }) M600 (Arg0, 0x0D, Local0, BB1B) Concatenate (0xC179B3FE, Buffer (0x01) { 0x5A // Z }, Local0) M600 (Arg0, 0x0E, Local0, BB18) Concatenate (0xC179B3FE, Buffer (0x02) { "Z" }, Local0) M600 (Arg0, 0x0F, Local0, BB19) Concatenate (0xC179B3FE, AUB0, Local0) M600 (Arg0, 0x10, Local0, BB18) Concatenate (0xC179B3FE, AUB1, Local0) M600 (Arg0, 0x11, Local0, BB19) If (Y078) { Concatenate (0xC179B3FE, DerefOf (RefOf (AUB0)), Local0) M600 (Arg0, 0x12, Local0, BB18) Concatenate (0xC179B3FE, DerefOf (RefOf (AUB1)), Local0) M600 (Arg0, 0x13, Local0, BB19) } Concatenate (0xC179B3FE, DerefOf (PAUB [0x00]), Local0) M600 (Arg0, 0x14, Local0, BB18) Concatenate (0xC179B3FE, DerefOf (PAUB [0x01]), Local0) M600 (Arg0, 0x15, Local0, BB19) /* Method returns Buffer */ Concatenate (0xC179B3FE, M601 (0x03, 0x00), Local0) M600 (Arg0, 0x16, Local0, BB18) Concatenate (0xC179B3FE, M601 (0x03, 0x01), Local0) M600 (Arg0, 0x17, Local0, BB19) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (0xC179B3FE, DerefOf (M602 (0x03, 0x00, 0x01)), Local0) M600 (Arg0, 0x18, Local0, BB18) Concatenate (0xC179B3FE, DerefOf (M602 (0x03, 0x01, 0x01)), Local0) M600 (Arg0, 0x19, Local0, BB19) } Concatenate (0xFE7CB391D650A284, Buffer (0x01) { 0x5A // Z }, Local0) M600 (Arg0, 0x1A, Local0, BB1A) Concatenate (0xFE7CB391D650A284, Buffer (0x02) { "Z" }, Local0) M600 (Arg0, 0x1B, Local0, BB1B) } If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } } /* Run-method */ Method (OPR0, 0, NotSerialized) { Debug = "TEST: OPR0, Source Operand" M610 () M620 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconst/MAIN.asl0000700000175000017500000000427614773714153031614 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("oconst", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/oconst/oconst.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/oconst/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oconst/Makefile0000700000175000017500000000022614773714153032016 0ustar ivanhuivanhu# oconst AMLMOD= oconst COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedloc/0000700000175000017500000000000014773714154031010 5ustar ivanhuivanhu././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedloc/onamedloc2.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedloc/onamedloc2.0000700000175000017500000153530214773714154033050 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to Buffer Field Objects * in the current Scope of the Global ACPI namespace. */ Name (Z089, 0x59) Method (M614, 0, Serialized) { Name (B640, Buffer (0x01C4){}) Name (B641, Buffer (0x45){}) /* Buffer Field to Buffer implicit conversion Cases. */ /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == BF65) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == BF65) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == BF65) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == BF65) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == BF65) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == BF65) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == BF65) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == BF65) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == BF65) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == BF65) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == BF65) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == BF65) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > BF65) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > BF65) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > BF65) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > BF65) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > BF65) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > BF65) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > BF65) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > BF65) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > BF65) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= BF65) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= BF65) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= BF65) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= BF65) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= BF65) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= BF65) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= BF65) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= BF65) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= BF65) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= BF65) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= BF65) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= BF65) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= BF65) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= BF65) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < BF65) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < BF65) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < BF65) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < BF65) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < BF65) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < BF65) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < BF65) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < BF65) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < BF65) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < BF65) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < BF65) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < BF65) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < BF65) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < BF65) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= BF65) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= BF65) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= BF65) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= BF65) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= BF65) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= BF65) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= BF65) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= BF65) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= BF65) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= BF65) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= BF65) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= BF65) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= BF65) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= BF65) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != BF65) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != BF65) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != BF65) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != BF65) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != BF65) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != BF65) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != BF65) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != BF65) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != BF65) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != BF65) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != BF65) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != BF65) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != BF65) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != BF65) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { CreateField (B640, 0x1F, 0x20, BF62) BF62 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == BF62) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == BF62) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == BF62) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == BF62) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == BF62) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == BF62) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == BF62) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == BF62) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == BF62) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == BF62) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == BF62) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == BF62) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > BF62) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > BF62) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > BF62) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > BF62) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > BF62) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > BF62) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > BF62) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > BF62) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > BF62) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > BF62) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > BF62) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > BF62) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > BF62) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > BF62) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= BF62) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= BF62) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= BF62) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= BF62) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= BF62) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= BF62) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= BF62) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= BF62) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= BF62) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= BF62) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= BF62) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= BF62) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= BF62) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= BF62) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < BF62) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < BF62) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < BF62) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < BF62) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < BF62) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < BF62) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < BF62) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < BF62) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < BF62) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < BF62) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < BF62) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < BF62) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < BF62) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < BF62) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= BF62) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= BF62) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= BF62) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= BF62) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= BF62) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= BF62) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= BF62) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= BF62) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= BF62) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= BF62) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= BF62) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= BF62) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= BF62) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= BF62) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != BF62) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != BF62) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != BF62) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != BF62) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != BF62) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != BF62) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != BF62) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != BF62) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != BF62) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != BF62) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != BF62) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != BF62) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != BF62) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != BF62) M600 (Arg0, 0x51, Local0, Ones) } } /* Buffer Field to Buffer conversion of the both Integer operands */ /* of Concatenate operator */ Method (M645, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } Local0 = Concatenate (BF65, BF65) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, BF65) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (BF65, 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (BF65, BF65, Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, BF65, Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (BF65, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { CreateField (B640, 0x1F, 0x20, BF62) BF62 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } Local0 = Concatenate (BF62, BF62) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, BF62) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (BF62, 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (BF62, BF62, Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, BF62, Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (BF62, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, BF65) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, BF65) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, BF65) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, BF65) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), BF65) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), BF65) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), BF65) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), BF65) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), BF65) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), BF65) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), BF65) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), BF65) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, BF65, Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, BF65, Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), BF65, Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), BF65, Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), BF65, Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), BF65, Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), BF65, Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), BF65, Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), BF65, Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), BF65, Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { CreateField (B640, 0x1F, 0x20, BF62) CreateField (B640, 0x9F, 0x40, BF65) BF62 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, BF62) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, BF62) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, BF62) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, BF62) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), BF62) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), BF62) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), BF62) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), BF62) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), BF62) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), BF62) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), BF62) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), BF62) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, BF65) M600 (Arg0, 0x0C, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, BF65) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (Buffer (0x01) { 0x5A // Z }, BF62, Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, BF62, Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, BF62, Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, BF62, Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), BF62, Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), BF62, Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), BF62, Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), BF62, Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), BF62, Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), BF62, Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), BF62, Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), BF62, Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, BF65, Local0) M600 (Arg0, 0x1A, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, BF65, Local0) M600 (Arg0, 0x1B, Local0, BB11) } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of ToString operator */ Method (M647, 1, NotSerialized) { CreateField (B641, 0xE4, 0x40, BF71) CreateField (B641, 0x0124, 0x40, BF72) BF71 = 0x6E7C534136502214 BF72 = 0x6E00534136002214 Local0 = ToString (BF71, Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (BF71, 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (BF72, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (BF71, AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (BF71, AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (BF72, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (BF71, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (BF71, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (BF72, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (BF71, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (BF71, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (BF72, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (BF71, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (BF71, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (BF72, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (BF71, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (BF71, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (BF72, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (BF71, Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (BF71, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (BF72, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (BF71, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (BF71, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (BF72, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (BF71, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (BF71, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (BF72, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (BF71, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (BF71, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (BF72, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (BF71, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (BF71, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (BF72, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (BF71, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (BF71, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (BF72, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { CreateField (B641, 0xC4, 0x20, BF70) CreateField (B641, 0x0164, 0x40, BF73) BF70 = 0x6179534E BF73 = 0x6E7C534136002214 Local0 = ToString (BF70, Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (BF70, 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (BF73, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (BF70, AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (BF70, AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (BF73, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (BF70, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (BF70, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (BF73, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (BF70, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (BF70, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (BF73, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (BF70, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (BF70, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (BF73, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (BF70, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (BF70, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (BF73, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (BF70, Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (BF70, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (BF73, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (BF70, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (BF70, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (BF73, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (BF70, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (BF70, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (BF73, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (BF70, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (BF70, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (BF73, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (BF70, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (BF70, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (BF73, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (BF70, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (BF70, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (BF73, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of Mid operator */ Method (M648, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) CreateField (B630, 0xDF, 0x41, BF66) CreateField (B641, 0x0164, 0x40, BF73) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF66 = Buffer (0x09) { /* 0000 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // !....... /* 0008 */ 0x01 // . } BF73 = 0x6E7C534136002214 Local0 = Mid (BF65, 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (BF66, 0x00, 0x09) M600 (Arg0, 0x01, Local0, BB1F) Local0 = Mid (BF73, 0x01, 0x08) M600 (Arg0, 0x02, Local0, BB30) Local0 = Mid (BF65, AUI5, AUIB) M600 (Arg0, 0x03, Local0, BB1D) Local0 = Mid (BF66, AUI5, AUIB) M600 (Arg0, 0x04, Local0, BB1F) Local0 = Mid (BF73, AUI6, AUIA) M600 (Arg0, 0x05, Local0, BB30) If (Y078) { Local0 = Mid (BF65, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (BF66, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x07, Local0, BB1F) Local0 = Mid (BF73, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA))) M600 (Arg0, 0x08, Local0, BB30) } Local0 = Mid (BF65, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B])) M600 (Arg0, 0x09, Local0, BB1D) Local0 = Mid (BF66, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B])) M600 (Arg0, 0x0A, Local0, BB1F) Local0 = Mid (BF73, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x0A])) M600 (Arg0, 0x0B, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (BF65, M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x0C, Local0, BB1D) Local0 = Mid (BF66, M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x0D, Local0, BB1F) Local0 = Mid (BF73, M601 (0x01, 0x06), M601 (0x01, 0x0A)) M600 (Arg0, 0x0E, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (BF65, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)) ) M600 (Arg0, 0x0F, Local0, BB1D) Local0 = Mid (BF66, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)) ) M600 (Arg0, 0x10, Local0, BB1F) Local0 = Mid (BF73, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)) ) M600 (Arg0, 0x11, Local0, BB30) } Mid (BF65, 0x00, 0x09, Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (BF66, 0x00, 0x09, Local0) M600 (Arg0, 0x13, Local0, BB1F) Mid (BF73, 0x01, 0x08, Local0) M600 (Arg0, 0x14, Local0, BB30) Mid (BF65, AUI5, AUIB, Local0) M600 (Arg0, 0x15, Local0, BB1D) Mid (BF66, AUI5, AUIB, Local0) M600 (Arg0, 0x16, Local0, BB1F) Mid (BF73, AUI6, AUIA, Local0) M600 (Arg0, 0x17, Local0, BB30) If (Y078) { Mid (BF65, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x18, Local0, BB1D) Mid (BF66, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x19, Local0, BB1F) Mid (BF73, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x1A, Local0, BB30) } Mid (BF65, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x1B, Local0, BB1D) Mid (BF66, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x1C, Local0, BB1F) Mid (BF73, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x0A]), Local0) M600 (Arg0, 0x1D, Local0, BB30) /* Method returns Index and Length parameters */ Mid (BF65, M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x1E, Local0, BB1D) Mid (BF66, M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x1F, Local0, BB1F) Mid (BF73, M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x20, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (BF65, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x21, Local0, BB1D) Mid (BF66, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x22, Local0, BB1F) Mid (BF73, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x23, Local0, BB30) } } Method (M328, 1, NotSerialized) { CreateField (B640, 0x1F, 0x20, BF62) CreateField (B630, 0x3F, 0x21, BF63) CreateField (B641, 0x0207, 0x20, BF77) BF62 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } BF63 = Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0xA5 // ..y.. } BF77 = 0x36002214 Local0 = Mid (BF62, 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (BF63, 0x00, 0x05) M600 (Arg0, 0x01, Local0, BB1E) Local0 = Mid (BF77, 0x01, 0x04) M600 (Arg0, 0x02, Local0, BB31) Local0 = Mid (BF62, AUI5, AUI9) M600 (Arg0, 0x03, Local0, BB1C) Local0 = Mid (BF63, AUI5, AUI9) M600 (Arg0, 0x04, Local0, BB1E) Local0 = Mid (BF77, AUI6, AUI8) M600 (Arg0, 0x05, Local0, BB31) If (Y078) { Local0 = Mid (BF62, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (BF63, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x07, Local0, BB1E) Local0 = Mid (BF77, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8))) M600 (Arg0, 0x08, Local0, BB31) } Local0 = Mid (BF62, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09])) M600 (Arg0, 0x09, Local0, BB1C) Local0 = Mid (BF63, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09])) M600 (Arg0, 0x0A, Local0, BB1E) Local0 = Mid (BF77, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x08])) M600 (Arg0, 0x0B, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (BF62, M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x0C, Local0, BB1C) Local0 = Mid (BF63, M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x0D, Local0, BB1E) Local0 = Mid (BF77, M601 (0x01, 0x06), M601 (0x01, 0x08)) M600 (Arg0, 0x0E, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (BF62, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)) ) M600 (Arg0, 0x0F, Local0, BB1C) Local0 = Mid (BF63, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)) ) M600 (Arg0, 0x10, Local0, BB1E) Local0 = Mid (BF77, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)) ) M600 (Arg0, 0x11, Local0, BB31) } Mid (BF62, 0x00, 0x05, Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (BF63, 0x00, 0x05, Local0) M600 (Arg0, 0x13, Local0, BB1E) Mid (BF77, 0x01, 0x04, Local0) M600 (Arg0, 0x14, Local0, BB31) Mid (BF62, AUI5, AUI9, Local0) M600 (Arg0, 0x15, Local0, BB1C) Mid (BF63, AUI5, AUI9, Local0) M600 (Arg0, 0x16, Local0, BB1E) Mid (BF77, AUI6, AUI8, Local0) M600 (Arg0, 0x17, Local0, BB31) If (Y078) { Mid (BF62, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x18, Local0, BB1C) Mid (BF63, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x19, Local0, BB1E) Mid (BF77, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x1A, Local0, BB31) } Mid (BF62, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x1B, Local0, BB1C) Mid (BF63, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x1C, Local0, BB1E) Mid (BF77, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x08]), Local0) M600 (Arg0, 0x1D, Local0, BB31) /* Method returns Index and Length parameters */ Mid (BF62, M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x1E, Local0, BB1C) Mid (BF63, M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x1F, Local0, BB1E) Mid (BF77, M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x20, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (BF62, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x21, Local0, BB1C) Mid (BF63, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x22, Local0, BB1E) Mid (BF77, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x23, Local0, BB31) } } /* Buffer Field to Integer implicit conversion Cases. */ /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) CreateField (B630, 0x0D60, 0x1F, BF91) CreateField (B630, 0x0D7F, 0x40, BF95) CreateField (B630, 0x0DBF, 0x1F, BFA1) CreateField (B630, 0x0DDE, 0x40, BFA5) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF91 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF95 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BFA1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BFA5 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Decrement */ Local0 = BF91-- M600 (Arg0, 0x00, Local0, BI12) Local0 = BF95-- M600 (Arg0, 0x01, Local0, BI16) /* Increment */ Local0 = BFA1++ M600 (Arg0, 0x02, Local0, BI23) Local0 = BFA5++ M600 (Arg0, 0x03, Local0, BI27) /* FindSetLeftBit */ Local0 = FindSetLeftBit (BF61) M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit (BF65) M600 (Arg0, 0x01, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (BF61) M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit (BF65) M600 (Arg0, 0x03, Local0, 0x03) /* Not */ Store (~BF61, Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Store (~BF65, Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) M600 (Arg0, 0x06, BF61, Buffer(){0x21, 0x03, 0x00, 0x00}) M600 (Arg0, 0x07, BF65, Buffer(){0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE}) M600 (Arg0, 0x08, BF91, Buffer(){0x20, 0x03, 0x00, 0x00}) M600 (Arg0, 0x09, BFA1, Buffer(){0x22, 0x03, 0x00, 0x00}) M600 (Arg0, 0x0A, BF95, Buffer(){0x83, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE}) M600 (Arg0, 0x0B, BFA5, Buffer(){0x85, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE}) } Method (M32L, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) CreateField (B630, 0x0D60, 0x1F, BF91) CreateField (B630, 0x0D7F, 0x40, BF95) CreateField (B630, 0x0DBF, 0x1F, BFA1) CreateField (B630, 0x0DDE, 0x40, BFA5) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF91 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF95 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BFA1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BFA5 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Decrement */ Local0 = BF91-- M600 (Arg0, 0x00, Local0, BI12) Local0 = BF95-- M600 (Arg0, 0x01, Local0, BI18) /* Increment */ Local0 = BFA1++ M600 (Arg0, 0x02, Local0, BI23) Local0 = BFA5++ M600 (Arg0, 0x03, Local0, BI29) /* FindSetLeftBit */ Local0 = FindSetLeftBit (BF61) M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit (BF65) M600 (Arg0, 0x01, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (BF61) M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit (BF65) M600 (Arg0, 0x03, Local0, 0x03) /* Not */ Store (~BF61, Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFCDE) Store (~BF65, Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) M600 (Arg0, 0x06, BF61, Buffer(){0x21, 0x03, 0x00, 0x00}) M600 (Arg0, 0x07, BF65, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M600 (Arg0, 0x08, BF91, Buffer(){0x20, 0x03, 0x00, 0x00}) M600 (Arg0, 0x09, BFA1, Buffer(){0x22, 0x03, 0x00, 0x00}) M600 (Arg0, 0x0A, BF95, Buffer (0x08) { 0x83, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00 // ..P..... }) M600 (Arg0, 0x0B, BFA5, Buffer (0x08) { 0x85, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00 // ..P..... }) } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01E6, 0x21, BF76) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF76 = 0x00 Local0 = !BF76 M600 (Arg0, 0x00, Local0, Ones) Local0 = !BF61 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !BF65 M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !BF65 M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B641, 0x00, 0x41, BF6C) CreateField (B641, 0x41, 0x41, BF6D) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF6C = Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 } BF6D = Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. } /* FromBCD */ Local0 = FromBCD (BF61) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (BF6C) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (BF61, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (BF6C, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (BF61) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (BF6D) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (BF61, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (BF6D, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B641, 0x82, 0x21, BF6E) CreateField (B641, 0xA3, 0x21, BF6F) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF6E = Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. } BF6F = Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. } /* FromBCD */ Local0 = FromBCD (BF61) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (BF6E) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (BF61, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (BF6E, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (BF61) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (BF6F) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (BF61, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (BF6F, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((BF61 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((BF61 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((BF61 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((BF61 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((BF61 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (BF61 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (BF61 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (BF61 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (BF61 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (BF61 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + BF61), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + BF61), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + BF61), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + BF61), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + BF61), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + BF61), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + BF61) /* \M614.M03B.BF61 */ M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((BF65 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((BF65 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((BF65 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((BF65 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (BF65 + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (BF65 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (BF65 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (BF65 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (BF65 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + BF65), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + BF65), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + BF65), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((BF61 + BF65), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((BF65 + BF61), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (BF61 + BF65) /* \M614.M03C.BF65 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (BF65 + BF61) /* \M614.M03C.BF61 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((BF65 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((BF65 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((BF65 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((BF65 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (BF65 + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (BF65 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (BF65 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (BF65 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (BF65 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + BF65), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + BF65), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + BF65), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + BF65), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + BF65), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + BF65), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((BF61 + BF65), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((BF65 + BF61), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (BF61 + BF65) /* \M614.M03D.BF65 */ M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (BF65 + BF61) /* \M614.M03D.BF61 */ M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((BF61 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF61 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((BF61 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF61 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((BF61 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF61 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((BF61 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF61 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((BF61 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF61 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF61 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (BF61 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF61 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (BF61 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF61 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (BF61 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF61 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (BF61 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF61 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (BF61 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF61 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF61 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & BF61), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & BF61), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & BF61), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & BF61), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & BF61), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & BF61), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & BF61) /* \M614.M03E.BF61 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF65 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((BF65 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF65 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((BF65 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF65 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((BF65 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF65 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((BF65 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF65 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF65 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (BF65 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF65 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (BF65 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF65 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (BF65 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF65 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (BF65 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF65 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (BF65 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF65 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF65 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((BF61 & BF65), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((BF65 & BF61), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (BF61 & BF65) /* \M614.M03F.BF65 */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (BF65 & BF61) /* \M614.M03F.BF61 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF65 & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((BF65 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF65 & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((BF65 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF65 & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((BF65 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF65 & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((BF65 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF65 & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF65 & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (BF65 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF65 & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (BF65 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF65 & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (BF65 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF65 & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (BF65 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF65 & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (BF65 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF65 & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF65 & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & BF65), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & BF65), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & BF65), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((BF61 & BF65), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((BF65 & BF61), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (BF61 & BF65) /* \M614.M040.BF65 */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (BF65 & BF61) /* \M614.M040.BF61 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((BF61 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF61 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF61 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF61 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF61 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (BF61, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (BF61, 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (BF61, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (BF61, AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (BF61, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (BF61, DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (BF61, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (BF61, DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (BF61, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (BF61, M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (BF61, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (BF61, DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / BF61), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / BF61), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / BF61), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / BF61), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / BF61), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / BF61), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, BF61, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, BF61, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, BF61, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, BF61, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), BF61, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), BF61, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), BF61, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), BF61, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), BF61, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), BF61, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), BF61, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), BF61, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF65 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF65 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF65 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF65 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (BF65, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (BF65, 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (BF65, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (BF65, AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (BF65, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (BF65, DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (BF65, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (BF65, DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (BF65, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (BF65, M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (BF65, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (BF65, DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / BF65), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / BF65), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / BF65), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, BF65, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, BF65, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, BF65, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, BF65, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), BF65, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), BF65, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), BF65, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), BF65, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), BF65, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), BF65, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), BF65, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), BF65, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((BF61 / BF65), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((BF65 / BF61), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (BF61, BF65, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (BF65, BF61, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF65 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF65 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF65 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 / DerefOf (PAUI [0x14])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF65 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (BF65, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (BF65, 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (BF65, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (BF65, AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (BF65, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (BF65, DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (BF65, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (BF65, DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (BF65, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (BF65, M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (BF65, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (BF65, DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / BF65), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / BF65), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / BF65), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, BF65, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, BF65, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, BF65, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, BF65, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), BF65, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), BF65, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), BF65, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), BF65, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), BF65, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), BF65, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), BF65, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), BF65, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((BF61 / BF65), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((BF65 / BF61), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (BF61, BF65, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (BF65, BF61, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((BF61 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF61 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF61 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF61 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF61 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (BF61 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (BF61 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (BF61 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (BF61 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (BF61 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % BF61), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % BF61), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % BF61), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % BF61), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % BF61), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % BF61), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % BF61) /* \M614.M044.BF61 */ M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF65 % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF65 % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF65 % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((BF65 % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF65 % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (BF65 % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (BF65 % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (BF65 % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (BF65 % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (BF65 % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % BF65), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % BF65), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % BF65), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((BF61 % BF65), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((BF65 % BF61), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (BF61 % BF65) /* \M614.M045.BF65 */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (BF65 % BF61) /* \M614.M045.BF61 */ M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF65 % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((BF65 % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF65 % DerefOf (PAUI [0x15])), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((BF65 % DerefOf (PAUI [0x16])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF65 % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (BF65 % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (BF65 % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (BF65 % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (BF65 % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (BF65 % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % BF65), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % BF65), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % BF65), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % BF65), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % BF65), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % BF65), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((BF61 % BF65), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((BF65 % BF61), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (BF61 % BF65) /* \M614.M046.BF65 */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (BF65 % BF61) /* \M614.M046.BF61 */ M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((BF61 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF61 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((BF61 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF61 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((BF61 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF61 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((BF61 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF61 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((BF61 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF61 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF61 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (BF61 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF61 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (BF61 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF61 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (BF61 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF61 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (BF61 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF61 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (BF61 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF61 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF61 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * BF61), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * BF61), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * BF61), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * BF61), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * BF61), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * BF61), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * BF61) /* \M614.M047.BF61 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF65 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((BF65 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF65 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((BF65 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF65 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((BF65 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF65 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((BF65 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF65 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF65 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (BF65 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF65 * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (BF65 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF65 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (BF65 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF65 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (BF65 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF65 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (BF65 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF65 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF65 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((BF61 * BF65), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((BF65 * BF61), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (BF61 * BF65) /* \M614.M048.BF65 */ M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (BF65 * BF61) /* \M614.M048.BF61 */ M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF65 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((BF65 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF65 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((BF65 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF65 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((BF65 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF65 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((BF65 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF65 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF65 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (BF65 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF65 * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (BF65 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF65 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (BF65 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF65 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (BF65 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF65 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (BF65 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF65 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF65 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * BF65), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * BF65), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * BF65), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((BF61 * BF65), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((BF65 * BF61), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (BF61 * BF65) /* \M614.M049.BF65 */ M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (BF65 * BF61) /* \M614.M049.BF61 */ M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Local0 = NAnd (BF61, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (BF61, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (BF61, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (BF61, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (BF61, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (BF61, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (BF61, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (BF61, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (BF61, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (BF61, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (BF61, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (BF61, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, BF61) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, BF61) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, BF61) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, BF61) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), BF61) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), BF61) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), BF61) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), BF61) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), BF61) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), BF61) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF61) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), BF61) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, BF61, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, BF61, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, BF61, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, BF61, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), BF61, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), BF61, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), BF61, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), BF61, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), BF61, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), BF61, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF61, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), BF61, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Local0 = NAnd (BF65, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (BF65, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (BF65, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (BF65, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (BF65, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (BF65, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (BF65, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (BF65, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (BF65, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (BF65, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (BF65, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (BF65, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, BF65) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, BF65) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, BF65) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, BF65) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), BF65) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), BF65) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), BF65) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), BF65) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), BF65) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), BF65) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF65) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), BF65) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, BF65, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, BF65, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, BF65, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, BF65, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), BF65, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), BF65, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), BF65, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), BF65, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), BF65, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), BF65, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF65, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), BF65, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (BF61, BF65) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (BF65, BF61) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (BF61, BF65, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (BF65, BF61, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Local0 = NAnd (BF65, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (BF65, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (BF65, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (BF65, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (BF65, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (BF65, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (BF65, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (BF65, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (BF65, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (BF65, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (BF65, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (BF65, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (BF65, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (BF65, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (BF65, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (BF65, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (BF65, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (BF65, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, BF65) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, BF65) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, BF65) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, BF65) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), BF65) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), BF65) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), BF65) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), BF65) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), BF65) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), BF65) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF65) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), BF65) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, BF65, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, BF65, Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, BF65, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, BF65, Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), BF65, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), BF65, Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), BF65, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), BF65, Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), BF65, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), BF65, Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF65, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), BF65, Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (BF61, BF65) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (BF65, BF61) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (BF61, BF65, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (BF65, BF61, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Local0 = NOr (BF61, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (BF61, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (BF61, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (BF61, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (BF61, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (BF61, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (BF61, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (BF61, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (BF61, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (BF61, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (BF61, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (BF61, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, BF61) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, BF61) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, BF61) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, BF61) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), BF61) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), BF61) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), BF61) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), BF61) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), BF61) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), BF61) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF61) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), BF61) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, BF61, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, BF61, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, BF61, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, BF61, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), BF61, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), BF61, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), BF61, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), BF61, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), BF61, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), BF61, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF61, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), BF61, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Local0 = NOr (BF65, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (BF65, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (BF65, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (BF65, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (BF65, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (BF65, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (BF65, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (BF65, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (BF65, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (BF65, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (BF65, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (BF65, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (BF65, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (BF65, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (BF65, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (BF65, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (BF65, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (BF65, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, BF65) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, BF65) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, BF65) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, BF65) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), BF65) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), BF65) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), BF65) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), BF65) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), BF65) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), BF65) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF65) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), BF65) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, BF65, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, BF65, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, BF65, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, BF65, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), BF65, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), BF65, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), BF65, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), BF65, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), BF65, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), BF65, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF65, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), BF65, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (BF61, BF65) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (BF65, BF61) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (BF61, BF65, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (BF65, BF61, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Local0 = NOr (BF65, 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (BF65, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (BF65, AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (BF65, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (BF65, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (BF65, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (BF65, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (BF65, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (BF65, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (BF65, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (BF65, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (BF65, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (BF65, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (BF65, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (BF65, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (BF65, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (BF65, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (BF65, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (BF65, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (BF65, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (BF65, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (BF65, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (BF65, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (BF65, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, BF65) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, BF65) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, BF65) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, BF65) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), BF65) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), BF65) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), BF65) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), BF65) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), BF65) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), BF65) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF65) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), BF65) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, BF65, Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, BF65, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, BF65, Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, BF65, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), BF65, Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), BF65, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), BF65, Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), BF65, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), BF65, Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), BF65, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF65, Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), BF65, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (BF61, BF65) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (BF65, BF61) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (BF61, BF65, Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (BF65, BF61, Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((BF61 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((BF61 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((BF61 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((BF61 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((BF61 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (BF61 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (BF61 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (BF61 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (BF61 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (BF61 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | BF61), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | BF61), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | BF61), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | BF61), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | BF61), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | BF61), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | BF61), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | BF61), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | BF61), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | BF61) /* \M614.M050.BF61 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((BF65 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((BF65 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((BF65 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((BF65 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (BF65 | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (BF65 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (BF65 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (BF65 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (BF65 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | BF65), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | BF65), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | BF65), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((BF61 | BF65), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((BF65 | BF61), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (BF61 | BF65) /* \M614.M051.BF65 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (BF65 | BF61) /* \M614.M051.BF61 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((BF65 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((BF65 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((BF65 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((BF65 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (BF65 | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (BF65 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (BF65 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (BF65 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (BF65 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | BF65), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | BF65), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | BF65), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((BF61 | BF65), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((BF65 | BF61), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (BF61 | BF65) /* \M614.M052.BF65 */ M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (BF65 | BF61) /* \M614.M052.BF61 */ M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B641, 0x01A4, 0x21, BF74) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF74 = 0x0B /* Conversion of the first operand */ Store ((BF61 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((BF61 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((BF61 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((BF61 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((BF61 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (BF61 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (BF61 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (BF61 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (BF61 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (BF61 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << BF74), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << BF74), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << BF74), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << BF74) /* \M614.M053.BF74 */ M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01A4, 0x21, BF74) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF74 = 0x0B /* Conversion of the first operand */ Store ((BF65 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((BF65 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((BF65 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((BF65 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((BF65 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (BF65 << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (BF65 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (BF65 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (BF65 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (BF65 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << BF74), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << BF74), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << BF74), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((BF61 << BF74), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((BF65 << BF74), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (BF61 << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (BF65 << BF74) /* \M614.M054.BF74 */ M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01A4, 0x21, BF74) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF74 = 0x0B /* Conversion of the first operand */ Store ((BF65 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((BF65 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((BF65 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((BF65 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((BF65 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (BF65 << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (BF65 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (BF65 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (BF65 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (BF65 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << BF74), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << BF74), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << BF74), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((BF61 << BF74), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((BF65 << BF74), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (BF61 << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (BF65 << BF74) /* \M614.M055.BF74 */ M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B641, 0x01A4, 0x21, BF74) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF74 = 0x0B /* Conversion of the first operand */ Store ((BF61 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((BF61 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((BF61 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((BF61 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((BF61 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (BF61 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (BF61 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (BF61 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (BF61 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (BF61 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> BF74), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> BF74), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> BF74), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> BF74) /* \M614.M056.BF74 */ M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01A4, 0x21, BF74) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF74 = 0x0B /* Conversion of the first operand */ Store ((BF65 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((BF65 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((BF65 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((BF65 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((BF65 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (BF65 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (BF65 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (BF65 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (BF65 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (BF65 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> BF74), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> BF74), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> BF74), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((BF61 >> BF74), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((BF65 >> BF74), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (BF61 >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (BF65 >> BF74) /* \M614.M057.BF74 */ M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01A4, 0x21, BF74) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF74 = 0x0B /* Conversion of the first operand */ Store ((BF65 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((BF65 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((BF65 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((BF65 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((BF65 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (BF65 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (BF65 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (BF65 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (BF65 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (BF65 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> BF74), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> BF74), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> BF74), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((BF61 >> BF74), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((BF65 >> BF74), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (BF61 >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (BF65 >> BF74) /* \M614.M058.BF74 */ M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((BF61 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((BF61 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((BF61 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((BF61 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((BF61 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (BF61 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (BF61 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (BF61 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (BF61 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (BF61 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - BF61), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - BF61), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - BF61), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - BF61), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - BF61), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - BF61), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - BF61), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - BF61), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - BF61), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - BF61), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - BF61), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - BF61), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - BF61) /* \M614.M059.BF61 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((BF65 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((BF65 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((BF65 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((BF65 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (BF65 - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (BF65 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (BF65 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (BF65 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (BF65 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - BF65), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - BF65), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - BF65), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - BF65), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - BF65), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - BF65), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((BF61 - BF65), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((BF65 - BF61), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (BF61 - BF65) /* \M614.M05A.BF65 */ M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (BF65 - BF61) /* \M614.M05A.BF61 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((BF65 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((BF65 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((BF65 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((BF65 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (BF65 - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (BF65 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (BF65 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (BF65 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (BF65 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - BF65), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - BF65), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - BF65), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - BF65), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - BF65), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - BF65), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((BF61 - BF65), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((BF65 - BF61), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (BF61 - BF65) /* \M614.M05B.BF65 */ M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (BF65 - BF61) /* \M614.M05B.BF61 */ M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF61 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((BF61 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((BF61 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((BF61 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((BF61 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (BF61 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (BF61 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (BF61 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (BF61 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (BF61 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ BF61), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ BF61), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ BF61), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ BF61), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ BF61), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ BF61), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ BF61), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF61), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ BF61), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ BF61) /* \M614.M05C.BF61 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((BF65 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((BF65 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((BF65 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((BF65 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (BF65 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (BF65 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (BF65 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (BF65 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (BF65 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ BF65), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ BF65), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ BF65), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ BF65), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF65), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ BF65), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((BF61 ^ BF65), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((BF65 ^ BF61), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (BF61 ^ BF65) /* \M614.M05D.BF65 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (BF65 ^ BF61) /* \M614.M05D.BF61 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Store ((BF65 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((BF65 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((BF65 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((BF65 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((BF65 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (BF65 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (BF65 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (BF65 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (BF65 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (BF65 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ BF65), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ BF65), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ BF65), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ BF65), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF65), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ BF65), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((BF61 ^ BF65), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((BF65 ^ BF61), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (BF61 ^ BF65) /* \M614.M05E.BF65 */ M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (BF65 ^ BF61) /* \M614.M05E.BF61 */ M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Local0 = (BF61 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (BF61 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF61 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (BF61 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF61 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (BF61 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF61 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (BF61 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF61 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (BF61 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (BF61 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && BF61) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && BF61) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && BF61) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && BF61) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && BF61) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && BF61) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && BF61) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && BF61) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && BF61) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && BF61) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && BF61) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && BF61) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Local0 = (BF65 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (BF65 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF65 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (BF65 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF65 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (BF65 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF65 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (BF65 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF65 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (BF65 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (BF65 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && BF65) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && BF65) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && BF65) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && BF65) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && BF65) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && BF65) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && BF65) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (BF61 && BF65) M600 (Arg0, 0x18, Local0, Ones) Local0 = (BF65 && BF61) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* Conversion of the first operand */ Local0 = (BF65 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (BF65 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF65 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (BF65 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF65 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (BF65 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF65 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (BF65 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF65 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (BF65 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (BF65 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && BF65) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && BF65) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && BF65) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && BF65) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && BF65) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && BF65) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && BF65) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (BF61 && BF65) M600 (Arg0, 0x18, Local0, Ones) Local0 = (BF65 && BF61) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { CreateField (B641, 0x01E6, 0x21, BF76) BF76 = 0x00 /* Conversion of the first operand */ Local0 = (BF76 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (BF76 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF76 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (BF76 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF76 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (BF76 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF76 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (BF76 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF76 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (BF76 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF76 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (BF76 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || BF76) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || BF76) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || BF76) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || BF76) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || BF76) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || BF76) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || BF76) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || BF76) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || BF76) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || BF76) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || BF76) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || BF76) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01E6, 0x21, BF76) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF76 = 0x00 /* Conversion of the first operand */ Local0 = (BF65 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (BF65 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF65 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (BF65 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF65 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (BF65 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF65 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (BF65 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF65 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (BF65 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (BF65 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || BF65) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || BF65) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || BF65) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || BF65) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || BF65) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || BF65) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || BF65) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || BF65) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || BF65) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || BF65) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (BF76 || BF65) M600 (Arg0, 0x18, Local0, Ones) Local0 = (BF65 || BF76) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01E6, 0x21, BF76) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF76 = 0x00 /* Conversion of the first operand */ Local0 = (BF65 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (BF65 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF65 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (BF65 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF65 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (BF65 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF65 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (BF65 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF65 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (BF65 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (BF65 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || BF65) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || BF65) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || BF65) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || BF65) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || BF65) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || BF65) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || BF65) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || BF65) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || BF65) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || BF65) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (BF76 || BF65) M600 (Arg0, 0x18, Local0, Ones) Local0 = (BF65 || BF76) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer Field to Integer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* LEqual */ Local0 = (0xFE7CB391D650A284 == BF65) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == BF65) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == BF65) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == BF65) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == BF65) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == BF65) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == BF65) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == BF65) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == BF65) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == BF65) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == BF65) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == BF65) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == BF65) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == BF65) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == BF65) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == BF65) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == BF65) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > BF65) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > BF65) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > BF65) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > BF65) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > BF65) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > BF65) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > BF65) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > BF65) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > BF65) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > BF65) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > BF65) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > BF65) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > BF65) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > BF65) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > BF65) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > BF65) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= BF65) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= BF65) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= BF65) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= BF65) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= BF65) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= BF65) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= BF65) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= BF65) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= BF65) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= BF65) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= BF65) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= BF65) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= BF65) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= BF65) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= BF65) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= BF65) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= BF65) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= BF65) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < BF65) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < BF65) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < BF65) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < BF65) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < BF65) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < BF65) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < BF65) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < BF65) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < BF65) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < BF65) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < BF65) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < BF65) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < BF65) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < BF65) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < BF65) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < BF65) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < BF65) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < BF65) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= BF65) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= BF65) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= BF65) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= BF65) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= BF65) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= BF65) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= BF65) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= BF65) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= BF65) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= BF65) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= BF65) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= BF65) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= BF65) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= BF65) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= BF65) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= BF65) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= BF65) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= BF65) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != BF65) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != BF65) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != BF65) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != BF65) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != BF65) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != BF65) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != BF65) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != BF65) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != BF65) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != BF65) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != BF65) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != BF65) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != BF65) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != BF65) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != BF65) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != BF65) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != BF65) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != BF65) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } /* LEqual */ Local0 = (0xD650A284 == BF65) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == BF65) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == BF65) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == BF65) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == BF65) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == BF65) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == BF65) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == BF65) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == BF65) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == BF65) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == BF65) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == BF65) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == BF65) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == BF65) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == BF65) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == BF65) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == BF65) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > BF65) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > BF65) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > BF65) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > BF65) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > BF65) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > BF65) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > BF65) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > BF65) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > BF65) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > BF65) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > BF65) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > BF65) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > BF65) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > BF65) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > BF65) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > BF65) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= BF65) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= BF65) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= BF65) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= BF65) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= BF65) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= BF65) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= BF65) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= BF65) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= BF65) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= BF65) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= BF65) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= BF65) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= BF65) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= BF65) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= BF65) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= BF65) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= BF65) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= BF65) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < BF65) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < BF65) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < BF65) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < BF65) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < BF65) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < BF65) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < BF65) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < BF65) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < BF65) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < BF65) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < BF65) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < BF65) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < BF65) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < BF65) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < BF65) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < BF65) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < BF65) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < BF65) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= BF65) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= BF65) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= BF65) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= BF65) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= BF65) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= BF65) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= BF65) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= BF65) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= BF65) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= BF65) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= BF65) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= BF65) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= BF65) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= BF65) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= BF65) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= BF65) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= BF65) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= BF65) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != BF65) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != BF65) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != BF65) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != BF65) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != BF65) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != BF65) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != BF65) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != BF65) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != BF65) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != BF65) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != BF65) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != BF65) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != BF65) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != BF65) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != BF65) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != BF65) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != BF65) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != BF65) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* LEqual */ Local0 = (0x0321 == BF61) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == BF61) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == BF61) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == BF61) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == BF61) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == BF61) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == BF61) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == BF61) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == BF61) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == BF61) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == BF61) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == BF61) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == BF61) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == BF61) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == BF61) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == BF61) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == BF61) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == BF61) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > BF61) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > BF61) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > BF61) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > BF61) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > BF61) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > BF61) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > BF61) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > BF61) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > BF61) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > BF61) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > BF61) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > BF61) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > BF61) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > BF61) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > BF61) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > BF61) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > BF61) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > BF61) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= BF61) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= BF61) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= BF61) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= BF61) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= BF61) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= BF61) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= BF61) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= BF61) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= BF61) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= BF61) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= BF61) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= BF61) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= BF61) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= BF61) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= BF61) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= BF61) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= BF61) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= BF61) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < BF61) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < BF61) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < BF61) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < BF61) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < BF61) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < BF61) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < BF61) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < BF61) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < BF61) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < BF61) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < BF61) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < BF61) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < BF61) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < BF61) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < BF61) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < BF61) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < BF61) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < BF61) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= BF61) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= BF61) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= BF61) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= BF61) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= BF61) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= BF61) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= BF61) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= BF61) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= BF61) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= BF61) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= BF61) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= BF61) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= BF61) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= BF61) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= BF61) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= BF61) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= BF61) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= BF61) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != BF61) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != BF61) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != BF61) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != BF61) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != BF61) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != BF61) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != BF61) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != BF61) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != BF61) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != BF61) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != BF61) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != BF61) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != BF61) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != BF61) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != BF61) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != BF61) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != BF61) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != BF61) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer Field to Integer intermediate conversion of the Buffer Field */ /* second operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } Local0 = Concatenate (0x0321, BF61) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, BF65) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, BF61) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, BF65) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), BF61) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), BF65) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), BF61) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), BF65) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), BF61) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), BF65) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF61) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF65) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, BF61, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, BF61, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), BF61, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), BF65, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), BF61, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), BF65, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), BF61, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), BF65, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF61, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF65, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } Local0 = Concatenate (0x0321, BF61) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, BF65) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, BF61) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, BF65) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), BF61) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), BF65) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), BF61) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), BF65) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), BF61) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), BF65) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF61) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF65) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, BF61, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, BF61, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), BF61, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), BF65, Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), BF61, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), BF65, Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), BF61, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), BF65, Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF61, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF65, Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer Field to Integer conversion of the Buffer Field Length */ /* (second) operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B641, 0x01A4, 0x21, BF74) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF74 = 0x0B Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF74) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF61) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, BF74) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, BF61) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), BF74) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), BF61) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), BF74) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), BF61) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), BF74) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), BF61) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF74) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF61) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF61, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, BF74, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, BF61, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), BF74, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), BF61, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), BF74, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), BF61, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), BF74, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), BF61, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF61, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF65) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, BF65) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), BF65) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), BF65) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), BF65) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF65) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF65, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, BF65, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), BF65, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), BF65, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), BF65, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF65, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF65) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, BF65) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), BF65) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), BF65) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), BF65) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF65) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF65, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, BF65, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), BF65, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), BF65, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), BF65, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF65, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer Field to Integer conversion of the Buffer Field Index */ /* (second) operand of the Index operator */ Method (M067, 1, NotSerialized) { CreateField (B641, 0x01A4, 0x21, BF74) BF74 = 0x0B Store (AUS6 [BF74], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [BF74], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [BF74], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [BF74], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [BF74], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [BF74], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [BF74], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [BF74], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [BF74], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [BF74], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [BF74], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [BF74], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [BF74], Local3) CH04 (Arg0, 0x00, 0x55, Z089, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [BF74], Local3) CH04 (Arg0, 0x00, 0x55, Z089, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [BF74], Local3) CH04 (Arg0, 0x00, 0x55, Z089, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [BF74], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [BF74], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [BF74], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [BF74] /* \M614.M067.BF74 */ CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [BF74] /* \M614.M067.BF74 */ CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [BF74] /* \M614.M067.BF74 */ CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [BF74] /* \M614.M067.BF74 */ M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer Field to Integer conversion of the Buffer Field Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, BF61) If (F64) { Fatal (0xFF, 0xFFFFFFFF, BF65) } Else { Fatal (0xFF, 0xFFFFFFFF, BF65) } CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) } /* Buffer Field to Integer conversion of the Buffer Field Index */ /* and Length operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { CreateField (B641, 0x01A4, 0x21, BF74) BF74 = 0x0B /* Buffer Field to Integer conversion of the Buffer Field Index operand */ Local0 = Mid ("This is auxiliary String", BF74, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, BF74, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, BF74, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), BF74, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), BF74, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), BF74, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), BF74, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), BF74, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), BF74, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", BF74, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, BF74, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, BF74, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), BF74, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), BF74, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), BF74, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), BF74, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), BF74, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), BF74, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* Buffer Field to Integer conversion of the Buffer Field Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, BF74) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF74) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, BF74) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, BF74) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, BF74) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, BF74) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, BF74) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, BF74) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, BF74) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, BF74) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF74) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF74) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, BF74, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF74, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, BF74, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, BF74, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, BF74, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, BF74, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, BF74, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, BF74, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, BF74, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, BF74, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF74, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF74, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01A4, 0x21, BF74) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF74 = 0x0B /* Buffer Field to Integer conversion of the Buffer Field Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, BF65) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF65) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, BF65) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, BF65) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, BF65) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, BF65) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, BF65) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, BF65) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, BF65) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, BF65) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF65) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF65) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, BF65, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, BF65, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, BF65, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, BF65, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, BF65, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, BF65, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, BF65, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, BF65, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF65, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF65, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* Buffer Field to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", BF74, BF65) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, BF65) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, BF74, BF65) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, BF74, BF65) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), BF74, BF65) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), BF74, BF65) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), BF74, BF65) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), BF74, BF65) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), BF74, BF65) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), BF74, BF65) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, BF65) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, BF65) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", BF74, BF65, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, BF65, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, BF74, BF65, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, BF74, BF65, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), BF74, BF65, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), BF74, BF65, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), BF74, BF65, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), BF74, BF65, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), BF74, BF65, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), BF74, BF65, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, BF65, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, BF65, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01A4, 0x21, BF74) BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF74 = 0x0B /* Buffer Field to Integer conversion of the Buffer Field Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, BF65) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF65) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, BF65) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, BF65) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, BF65) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, BF65) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, BF65) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, BF65) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, BF65) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, BF65) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF65) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF65) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, BF65, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, BF65, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, BF65, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, BF65, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, BF65, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, BF65, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, BF65, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, BF65, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF65, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF65, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* Buffer Field to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", BF74, BF65) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, BF65) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, BF74, BF65) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, BF74, BF65) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), BF74, BF65) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), BF74, BF65) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), BF74, BF65) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), BF74, BF65) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), BF74, BF65) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), BF74, BF65) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, BF65) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, BF65) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", BF74, BF65, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, BF65, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, BF74, BF65, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, BF74, BF65, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), BF74, BF65, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), BF74, BF65, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), BF74, BF65, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), BF74, BF65, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), BF74, BF65, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), BF74, BF65, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, BF65, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, BF65, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer Field to Integer conversion of the Buffer Field StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { CreateField (B641, 0x01A4, 0x21, BF74) BF74 = 0x0B Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x0B, Local0, Ones) } } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { CreateField (B640, 0x00, 0x1F, BF61) CreateField (B641, 0x01C5, 0x21, BF75) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF75 = 0x3F CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (BF61) CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z089, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (BF75) CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z089, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer Field to Integer conversion of the Buffer Field TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, bf61) */ CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z089, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer Field to Integer conversion of the Buffer Field TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { CreateField (B640, 0x00, 0x1F, BF61) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Event (EVT0) CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, BF61) CH03 (Arg0, Z089, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z089, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer Field to Integer conversion of the Buffer Field value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) CreateField (B640, 0x00, 0x1F, BF61) CreateField (B640, 0x9F, 0x40, BF65) CreateField (B641, 0x01E6, 0x21, BF76) BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF76 = 0x00 Method (M001, 0, NotSerialized) { If (BF76) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (BF61) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (BF65) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (BF65) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (BF76) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (BF61) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (BF65) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (BF65) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (BF76) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* * Begin of the test body */ /* Buffer Field to Buffer implicit conversion Cases. */ /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Buffer Field to Buffer conversion of the both Integer operands */ /* of Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* Buffer Field to Integer implicit conversion Cases. */ /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer Field to Integer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer Field to Integer intermediate conversion of the Buffer Field */ /* second operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer Field to Integer conversion of the Buffer Field Length */ /* (second) operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer Field to Integer conversion of the Buffer Field Index */ /* (second) operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer Field to Integer conversion of the Buffer Field Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer Field to Integer conversion of the Buffer Field Index */ /* and Length operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer Field to Integer conversion of the Buffer Field StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer Field to Integer conversion of the Buffer Field TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer Field to Integer conversion of the Buffer Field value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) M06E (Local0) } /* Run-method */ Method (OPR2, 0, NotSerialized) { Debug = "TEST: OPR2, Source Operand" M613 () M614 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedloc/RUN.asl0000700000175000017500000000361514773714154032165 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Source Operand, local named object data", TCLC, 0x06, W010)) { OPR2 () } FTTT () ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedloc/onamedloc1.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedloc/onamedloc1.0000700000175000017500000327652014773714154033055 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to Named Objects * in the current Scope of the Global ACPI namespace. */ Name (Z088, 0x58) Method (M613, 0, Serialized) { /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M640, 1, Serialized) { Name (I604, 0xFE7CB391D650A284) /* LEqual */ Local0 = ("FE7CB391D650A284" == I604) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("fE7CB391D650A284" == I604) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS4 == I604) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS5 == I604) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) == I604) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) == I604) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) == I604) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) == I604) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) == I604) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x05) == I604) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) == I604) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) == I604) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("FE7CB391D650A284" > I604) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("fE7CB391D650A284" > I604) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("FE7CB391D650A28 " > I604) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("FE7CB391D650A284q" > I604) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS4 > I604) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS5 > I604) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) > I604) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) > I604) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) > I604) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) > I604) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) > I604) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x05) > I604) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) > I604) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) > I604) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("FE7CB391D650A284" >= I604) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("fE7CB391D650A284" >= I604) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("FE7CB391D650A28 " >= I604) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("FE7CB391D650A284q" >= I604) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS4 >= I604) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS5 >= I604) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) >= I604) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) >= I604) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) >= I604) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) >= I604) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) >= I604) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x05) >= I604) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) >= I604) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) >= I604) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("FE7CB391D650A284" < I604) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("fE7CB391D650A284" < I604) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("FE7CB391D650A28 " < I604) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("FE7CB391D650A284q" < I604) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS4 < I604) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS5 < I604) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) < I604) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) < I604) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) < I604) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) < I604) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) < I604) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x05) < I604) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) < I604) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) < I604) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("FE7CB391D650A284" <= I604) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("fE7CB391D650A284" <= I604) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("FE7CB391D650A28 " <= I604) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("FE7CB391D650A284q" <= I604) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS4 <= I604) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS5 <= I604) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) <= I604) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) <= I604) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) <= I604) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) <= I604) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) <= I604) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x05) <= I604) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) <= I604) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) <= I604) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("FE7CB391D650A284" != I604) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("fE7CB391D650A284" != I604) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("FE7CB391D650A28 " != I604) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("FE7CB391D650A284q" != I604) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS4 != I604) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS5 != I604) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) != I604) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) != I604) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) != I604) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) != I604) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) != I604) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x05) != I604) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) != I604) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) != I604) M600 (Arg0, 0x51, Local0, Ones) } } Method (M320, 1, Serialized) { Name (I603, 0xC179B3FE) /* LEqual */ Local0 = ("C179B3FE" == I603) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("c179B3FE" == I603) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS3 == I603) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS2 == I603) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) == I603) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) == I603) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) == I603) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) == I603) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) == I603) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x02) == I603) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) == I603) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) == I603) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("C179B3FE" > I603) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("c179B3FE" > I603) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("C179B3F " > I603) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("C179B3FEq" > I603) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS3 > I603) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS2 > I603) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) > I603) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) > I603) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) > I603) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) > I603) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) > I603) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x02) > I603) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) > I603) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) > I603) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("C179B3FE" >= I603) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("c179B3FE" >= I603) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("C179B3F " >= I603) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("C179B3FEq" >= I603) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS3 >= I603) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS2 >= I603) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) >= I603) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) >= I603) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) >= I603) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) >= I603) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) >= I603) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x02) >= I603) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) >= I603) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) >= I603) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("C179B3FE" < I603) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("c179B3FE" < I603) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("C179B3F " < I603) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("C179B3FEq" < I603) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS3 < I603) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS2 < I603) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) < I603) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) < I603) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) < I603) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) < I603) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) < I603) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x02) < I603) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) < I603) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) < I603) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("C179B3FE" <= I603) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("c179B3FE" <= I603) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("C179B3F " <= I603) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("C179B3FEq" <= I603) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS3 <= I603) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS2 <= I603) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) <= I603) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) <= I603) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) <= I603) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) <= I603) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) <= I603) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x02) <= I603) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) <= I603) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) <= I603) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("C179B3FE" != I603) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("c179B3FE" != I603) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("C179B3F " != I603) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("C179B3FEq" != I603) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS3 != I603) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS2 != I603) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) != I603) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) != I603) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) != I603) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) != I603) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) != I603) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x02) != I603) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) != I603) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) != I603) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M641, 1, Serialized) { Name (I604, 0xFE7CB391D650A284) Local0 = Concatenate ("", I604) M600 (Arg0, 0x00, Local0, BS10) Local0 = Concatenate ("1234q", I604) M600 (Arg0, 0x01, Local0, BS11) Local0 = Concatenate (AUS0, I604) M600 (Arg0, 0x02, Local0, BS10) Local0 = Concatenate (AUS1, I604) M600 (Arg0, 0x03, Local0, BS11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), I604) M600 (Arg0, 0x04, Local0, BS10) Local0 = Concatenate (DerefOf (RefOf (AUS1)), I604) M600 (Arg0, 0x05, Local0, BS11) } Local0 = Concatenate (DerefOf (PAUS [0x00]), I604) M600 (Arg0, 0x06, Local0, BS10) Local0 = Concatenate (DerefOf (PAUS [0x01]), I604) M600 (Arg0, 0x07, Local0, BS11) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), I604) M600 (Arg0, 0x08, Local0, BS10) Local0 = Concatenate (M601 (0x02, 0x01), I604) M600 (Arg0, 0x09, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), I604) M600 (Arg0, 0x0A, Local0, BS10) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), I604) M600 (Arg0, 0x0B, Local0, BS11) } Concatenate ("", I604, Local0) M600 (Arg0, 0x0C, Local0, BS10) Concatenate ("1234q", I604, Local0) M600 (Arg0, 0x0D, Local0, BS11) Concatenate (AUS0, I604, Local0) M600 (Arg0, 0x0E, Local0, BS10) Concatenate (AUS1, I604, Local0) M600 (Arg0, 0x0F, Local0, BS11) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), I604, Local0) M600 (Arg0, 0x10, Local0, BS10) Concatenate (DerefOf (RefOf (AUS1)), I604, Local0) M600 (Arg0, 0x11, Local0, BS11) } Concatenate (DerefOf (PAUS [0x00]), I604, Local0) M600 (Arg0, 0x12, Local0, BS10) Concatenate (DerefOf (PAUS [0x01]), I604, Local0) M600 (Arg0, 0x13, Local0, BS11) /* Method returns String */ Concatenate (M601 (0x02, 0x00), I604, Local0) M600 (Arg0, 0x14, Local0, BS10) Concatenate (M601 (0x02, 0x01), I604, Local0) M600 (Arg0, 0x15, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), I604, Local0) M600 (Arg0, 0x16, Local0, BS10) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), I604, Local0) M600 (Arg0, 0x17, Local0, BS11) } } Method (M321, 1, Serialized) { Name (I603, 0xC179B3FE) Name (I604, 0xFE7CB391D650A284) Local0 = Concatenate ("", I603) M600 (Arg0, 0x00, Local0, BS12) Local0 = Concatenate ("1234q", I603) M600 (Arg0, 0x01, Local0, BS13) Local0 = Concatenate (AUS0, I603) M600 (Arg0, 0x02, Local0, BS12) Local0 = Concatenate (AUS1, I603) M600 (Arg0, 0x03, Local0, BS13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), I603) M600 (Arg0, 0x04, Local0, BS12) Local0 = Concatenate (DerefOf (RefOf (AUS1)), I603) M600 (Arg0, 0x05, Local0, BS13) } Local0 = Concatenate (DerefOf (PAUS [0x00]), I603) M600 (Arg0, 0x06, Local0, BS12) Local0 = Concatenate (DerefOf (PAUS [0x01]), I603) M600 (Arg0, 0x07, Local0, BS13) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), I603) M600 (Arg0, 0x08, Local0, BS12) Local0 = Concatenate (M601 (0x02, 0x01), I603) M600 (Arg0, 0x09, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), I603) M600 (Arg0, 0x0A, Local0, BS12) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), I603) M600 (Arg0, 0x0B, Local0, BS13) } Local0 = Concatenate ("", I604) M600 (Arg0, 0x0C, Local0, BS14) Local0 = Concatenate ("1234q", I604) M600 (Arg0, 0x0D, Local0, BS15) Concatenate ("", I603, Local0) M600 (Arg0, 0x0E, Local0, BS12) Concatenate ("1234q", I603, Local0) M600 (Arg0, 0x0F, Local0, BS13) Concatenate (AUS0, I603, Local0) M600 (Arg0, 0x10, Local0, BS12) Concatenate (AUS1, I603, Local0) M600 (Arg0, 0x11, Local0, BS13) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), I603, Local0) M600 (Arg0, 0x12, Local0, BS12) Concatenate (DerefOf (RefOf (AUS1)), I603, Local0) M600 (Arg0, 0x13, Local0, BS13) } Concatenate (DerefOf (PAUS [0x00]), I603, Local0) M600 (Arg0, 0x14, Local0, BS12) Concatenate (DerefOf (PAUS [0x01]), I603, Local0) M600 (Arg0, 0x15, Local0, BS13) /* Method returns String */ Concatenate (M601 (0x02, 0x00), I603, Local0) M600 (Arg0, 0x16, Local0, BS12) Concatenate (M601 (0x02, 0x01), I603, Local0) M600 (Arg0, 0x17, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), I603, Local0) M600 (Arg0, 0x18, Local0, BS12) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), I603, Local0) M600 (Arg0, 0x19, Local0, BS13) } Concatenate ("", I604, Local0) M600 (Arg0, 0x1A, Local0, BS14) Concatenate ("1234q", I604, Local0) M600 (Arg0, 0x1B, Local0, BS15) } /* Method(m642, 1) */ /* Method(m322, 1) */ /* Method(m643, 1) */ /* Method(m323, 1) */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, Serialized) { Name (I604, 0xFE7CB391D650A284) /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == I604) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == I604) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == I604) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == I604) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == I604) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == I604) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == I604) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == I604) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == I604) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == I604) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == I604) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == I604) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > I604) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > I604) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > I604) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > I604) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > I604) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > I604) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > I604) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > I604) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > I604) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > I604) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > I604) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > I604) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > I604) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > I604) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= I604) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= I604) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= I604) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= I604) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= I604) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= I604) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= I604) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= I604) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= I604) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= I604) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= I604) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= I604) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= I604) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= I604) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < I604) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < I604) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < I604) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < I604) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < I604) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < I604) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < I604) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < I604) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < I604) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < I604) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < I604) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < I604) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < I604) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < I604) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= I604) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= I604) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= I604) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= I604) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= I604) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= I604) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= I604) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= I604) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= I604) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= I604) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= I604) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= I604) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= I604) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= I604) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != I604) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != I604) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != I604) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != I604) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != I604) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != I604) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != I604) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != I604) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != I604) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != I604) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != I604) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != I604) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != I604) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != I604) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, Serialized) { Name (I603, 0xC179B3FE) /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == I603) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == I603) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == I603) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == I603) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == I603) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == I603) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == I603) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == I603) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == I603) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == I603) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == I603) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == I603) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > I603) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > I603) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > I603) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > I603) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > I603) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > I603) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > I603) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > I603) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > I603) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > I603) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > I603) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > I603) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > I603) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > I603) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= I603) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= I603) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= I603) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= I603) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= I603) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= I603) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= I603) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= I603) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= I603) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= I603) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= I603) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= I603) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= I603) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= I603) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < I603) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < I603) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < I603) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < I603) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < I603) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < I603) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < I603) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < I603) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < I603) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < I603) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < I603) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < I603) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < I603) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < I603) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= I603) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= I603) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= I603) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= I603) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= I603) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= I603) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= I603) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= I603) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= I603) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= I603) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= I603) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= I603) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= I603) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= I603) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != I603) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != I603) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != I603) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != I603) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != I603) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != I603) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != I603) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != I603) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != I603) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != I603) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != I603) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != I603) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != I603) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != I603) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ Method (M645, 1, Serialized) { Name (I604, 0xFE7CB391D650A284) Local0 = Concatenate (I604, I604) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, I604) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (I604, 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (I604, I604, Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, I604, Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (I604, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, Serialized) { Name (I603, 0xC179B3FE) Local0 = Concatenate (I603, I603) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, I603) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (I603, 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (I603, I603, Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, I603, Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (I603, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, Serialized) { Name (I604, 0xFE7CB391D650A284) Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, I604) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, I604) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, I604) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, I604) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), I604) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), I604) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), I604) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), I604) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), I604) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), I604) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), I604) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), I604) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, I604, Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, I604, Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, I604, Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, I604, Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), I604, Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), I604, Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), I604, Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), I604, Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), I604, Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), I604, Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), I604, Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), I604, Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, Serialized) { Name (I603, 0xC179B3FE) Name (I604, 0xFE7CB391D650A284) Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, I603) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, I603) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, I603) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, I603) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), I603) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), I603) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), I603) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), I603) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), I603) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), I603) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), I603) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), I603) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, I604) M600 (Arg0, 0x0C, Local0, BB14) Local0 = Concatenate (Buffer (0x02) { "Z" }, I604) M600 (Arg0, 0x0D, Local0, BB15) Concatenate (Buffer (0x01) { 0x5A // Z }, I603, Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, I603, Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, I603, Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, I603, Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), I603, Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), I603, Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), I603, Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), I603, Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), I603, Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), I603, Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), I603, Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), I603, Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, I604, Local0) M600 (Arg0, 0x1A, Local0, BB14) Concatenate (Buffer (0x02) { "Z" }, I604, Local0) M600 (Arg0, 0x1B, Local0, BB15) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ Method (M647, 1, Serialized) { Name (I60D, 0x6E7C534136502214) Name (I60E, 0x6E00534136002214) Local0 = ToString (I60D, Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (I60D, 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (I60E, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (I60D, AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (I60D, AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (I60E, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (I60D, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (I60D, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (I60E, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (I60D, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (I60D, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (I60E, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (I60D, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (I60D, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (I60E, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (I60D, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (I60D, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (I60E, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (I60D, Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (I60D, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (I60E, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (I60D, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (I60D, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (I60E, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (I60D, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (I60D, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (I60E, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (I60D, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (I60D, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (I60E, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (I60D, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (I60D, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (I60E, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (I60D, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (I60D, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (I60E, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, Serialized) { Name (I60C, 0x6179534E) Name (I60F, 0x6E7C534136002214) Local0 = ToString (I60C, Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (I60C, 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (I60F, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (I60C, AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (I60C, AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (I60F, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (I60C, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (I60C, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (I60F, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (I60C, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (I60C, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (I60F, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (I60C, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (I60C, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (I60F, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (I60C, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (I60C, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (I60F, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (I60C, Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (I60C, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (I60F, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (I60C, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (I60C, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (I60F, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (I60C, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (I60C, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (I60F, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (I60C, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (I60C, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (I60F, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (I60C, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (I60C, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (I60F, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (I60C, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (I60C, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (I60F, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ Method (M648, 1, Serialized) { Name (I604, 0xFE7CB391D650A284) Name (I60F, 0x6E7C534136002214) Local0 = Mid (I604, 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (I60F, 0x01, 0x08) M600 (Arg0, 0x01, Local0, BB30) Local0 = Mid (I604, AUI5, AUIB) M600 (Arg0, 0x02, Local0, BB1D) Local0 = Mid (I60F, AUI6, AUIA) M600 (Arg0, 0x03, Local0, BB30) If (Y078) { Local0 = Mid (I604, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x04, Local0, BB1D) Local0 = Mid (I60F, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA))) M600 (Arg0, 0x05, Local0, BB30) } Local0 = Mid (I604, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B])) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (I60F, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x0A])) M600 (Arg0, 0x07, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (I604, M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x08, Local0, BB1D) Local0 = Mid (I60F, M601 (0x01, 0x06), M601 (0x01, 0x0A)) M600 (Arg0, 0x09, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (I604, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)) ) M600 (Arg0, 0x0A, Local0, BB1D) Local0 = Mid (I60F, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)) ) M600 (Arg0, 0x0B, Local0, BB30) } Mid (I604, 0x00, 0x09, Local0) M600 (Arg0, 0x0C, Local0, BB1D) Mid (I60F, 0x01, 0x08, Local0) M600 (Arg0, 0x0D, Local0, BB30) Mid (I604, AUI5, AUIB, Local0) M600 (Arg0, 0x0E, Local0, BB1D) Mid (I60F, AUI6, AUIA, Local0) M600 (Arg0, 0x0F, Local0, BB30) If (Y078) { Mid (I604, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x10, Local0, BB1D) Mid (I60F, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x11, Local0, BB30) } Mid (I604, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (I60F, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB30) /* Method returns Index and Length parameters */ Mid (I604, M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x14, Local0, BB1D) Mid (I60F, M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x15, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (I604, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x16, Local0, BB1D) Mid (I60F, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x17, Local0, BB30) } } Method (M328, 1, Serialized) { Name (I603, 0xC179B3FE) Name (I60F, 0x6E7C534136002214) Local0 = Mid (I603, 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (I60F, 0x01, 0x04) M600 (Arg0, 0x01, Local0, BB31) Local0 = Mid (I603, AUI5, AUI9) M600 (Arg0, 0x02, Local0, BB1C) Local0 = Mid (I60F, AUI6, AUI8) M600 (Arg0, 0x03, Local0, BB31) If (Y078) { Local0 = Mid (I603, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x04, Local0, BB1C) Local0 = Mid (I60F, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8))) M600 (Arg0, 0x05, Local0, BB31) } Local0 = Mid (I603, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09])) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (I60F, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x08])) M600 (Arg0, 0x07, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (I603, M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x08, Local0, BB1C) Local0 = Mid (I60F, M601 (0x01, 0x06), M601 (0x01, 0x08)) M600 (Arg0, 0x09, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (I603, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)) ) M600 (Arg0, 0x0A, Local0, BB1C) Local0 = Mid (I60F, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)) ) M600 (Arg0, 0x0B, Local0, BB31) } Mid (I603, 0x00, 0x05, Local0) M600 (Arg0, 0x0C, Local0, BB1C) Mid (I60F, 0x01, 0x04, Local0) M600 (Arg0, 0x0D, Local0, BB31) Mid (I603, AUI5, AUI9, Local0) M600 (Arg0, 0x0E, Local0, BB1C) Mid (I60F, AUI6, AUI8, Local0) M600 (Arg0, 0x0F, Local0, BB31) If (Y078) { Mid (I603, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x10, Local0, BB1C) Mid (I60F, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x11, Local0, BB31) } Mid (I603, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (I60F, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x08]), Local0) M600 (Arg0, 0x13, Local0, BB31) /* Method returns Index and Length parameters */ Mid (I603, M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x14, Local0, BB1C) Mid (I60F, M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x15, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (I603, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x16, Local0, BB1C) Mid (I60F, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x17, Local0, BB31) } } /* Method(m649, 1) */ /* Method(m329, 1) */ /* Method(m64a, 1) */ /* Method(m32a, 1) */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64B, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Decrement */ If (Y501) { Local0 = S601-- M600 (Arg0, 0x00, Local0, BI12) Local0 = S605-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = S601++ M600 (Arg0, 0x02, Local0, BI13) Local0 = S605++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (S601) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (S605) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (S601) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (S605) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~S601, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~S605, Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32B, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Decrement */ If (Y501) { Local0 = S601-- M600 (Arg0, 0x00, Local0, BI12) Local0 = S604-- M600 (Arg0, 0x01, Local0, BI14) } /* Increment */ If (Y501) { Local0 = S601++ M600 (Arg0, 0x02, Local0, BI13) Local0 = S604++ M600 (Arg0, 0x03, Local0, BI15) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (S601) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (S604) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (S601) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (S604) M600 (Arg0, 0x07, Local0, 0x02) /* Not */ Store (~S601, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~S604, Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Method (M000, 1, Serialized) { Name (S600, "0") Name (S601, "0321") Name (S604, "C179B3FE") Name (S605, "FE7CB391D650A284") Local0 = !S600 M600 (Arg0, 0x00, Local0, Ones) Local0 = !S601 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !S605 M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !S604 M600 (Arg0, 0x03, Local0, Zero) } } /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64C, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") Name (S605, "FE7CB391D650A284") Name (S615, "3789012345678901") Name (S616, "D76162EE9EC35") /* FromBCD */ Local0 = FromBCD (S601) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (S615) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (S601, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (S615, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (S601) M600 (Arg0, 0x04, Local0, 0x0801) /* Error of iASL on constant folding Store(ToBCD(s616), Local0) m600(arg0, 5, Local0, 0x3789012345678901) */ ToBCD (S601, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (S616, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32C, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") Name (S605, "FE7CB391D650A284") Name (S617, "90123456") Name (S618, "55F2CC0") /* FromBCD */ Local0 = FromBCD (S601) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (S617) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (S601, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (S617, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (S601) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (S618) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (S601, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (S618, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M001, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Store ((S601 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((S601 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((S601 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((S601 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((S601 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (S601 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (S601 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (S601 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (S601 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (S601 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + S601), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + S601), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + S601), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + S601), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + S601), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + S601), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + S601), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + S601), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + S601), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + S601), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + S601), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + S601), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + S601) /* \M613.M001.S601 */ M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M002, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Store ((S605 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((S605 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((S605 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((S605 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((S605 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (S605 + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (S605 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (S605 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (S605 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (S605 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + S605), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + S605), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + S605), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + S605), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + S605), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + S605), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + S605), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + S605), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + S605), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((S601 + S605), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((S605 + S601), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (S601 + S605) /* \M613.M002.S605 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (S605 + S601) /* \M613.M002.S601 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M003, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Store ((S604 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FF) Store ((S604 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FF) If (Y078) { Store ((S604 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FF) } Store ((S604 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((S604 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FF) } Local0 = (S604 + 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 + 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FF) Local0 = (S604 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FF) If (Y078) { Local0 = (S604 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FF) } Local0 = (S604 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (S604 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FF) } /* Conversion of the second operand */ Store ((0x00 + S604), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0x01 + S604), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FF) Store ((AUI5 + S604), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUI6 + S604), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + S604), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUI6)) + S604), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FF) } Store ((DerefOf (PAUI [0x05]) + S604), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x06]) + S604), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + S604), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x06) + S604), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + S604), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + S604), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FF) } Local0 = (0x00 + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0x01 + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x25, Local0, 0xC179B3FF) Local0 = (AUI5 + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUI6 + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x27, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUI6)) + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x29, Local0, 0xC179B3FF) } Local0 = (DerefOf (PAUI [0x05]) + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x06]) + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x2B, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x06) + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x2D, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x2F, Local0, 0xC179B3FF) } /* Conversion of the both operands */ Store ((S601 + S604), Local0) M600 (Arg0, 0x30, Local0, 0xC179B71F) Store ((S604 + S601), Local0) M600 (Arg0, 0x31, Local0, 0xC179B71F) Local0 = (S601 + S604) /* \M613.M003.S604 */ M600 (Arg0, 0x32, Local0, 0xC179B71F) Local0 = (S604 + S601) /* \M613.M003.S601 */ M600 (Arg0, 0x33, Local0, 0xC179B71F) } /* And, common 32-bit/64-bit test */ Method (M004, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Store ((S601 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S601 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((S601 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S601 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((S601 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S601 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((S601 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S601 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((S601 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S601 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S601 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (S601 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S601 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (S601 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S601 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (S601 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S601 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (S601 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S601 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (S601 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S601 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S601 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & S601), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & S601), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & S601), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & S601), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & S601), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & S601), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & S601), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & S601), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & S601), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & S601), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & S601), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & S601), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & S601) /* \M613.M004.S601 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M005, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Store ((S605 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S605 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((S605 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S605 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((S605 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S605 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((S605 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S605 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((S605 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S605 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S605 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (S605 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S605 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (S605 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S605 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (S605 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S605 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (S605 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S605 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (S605 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S605 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S605 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & S605), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & S605), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & S605), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & S605), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & S605), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & S605), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & S605), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & S605), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & S605), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((S601 & S605), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((S605 & S601), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (S601 & S605) /* \M613.M005.S605 */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (S605 & S601) /* \M613.M005.S601 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M006, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Store ((S604 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S604 & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((S604 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S604 & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((S604 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S604 & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((S604 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S604 & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((S604 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S604 & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S604 & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (S604 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S604 & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (S604 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S604 & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (S604 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S604 & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (S604 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S604 & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (S604 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S604 & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S604 & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 & S604), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & S604), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 & S604), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & S604), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & S604), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & S604), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) & S604), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & S604), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & S604), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & S604), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & S604), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & S604), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((S601 & S604), Local0) M600 (Arg0, 0x30, Local0, 0x0320) Store ((S604 & S601), Local0) M600 (Arg0, 0x31, Local0, 0x0320) Local0 = (S601 & S604) /* \M613.M006.S604 */ M600 (Arg0, 0x32, Local0, 0x0320) Local0 = (S604 & S601) /* \M613.M006.S601 */ M600 (Arg0, 0x33, Local0, 0x0320) } /* Divide, common 32-bit/64-bit test */ Method (M007, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Store ((S601 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S601 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S601 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S601 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S601 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (S601, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (S601, 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (S601, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (S601, AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (S601, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (S601, DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (S601, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (S601, DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (S601, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (S601, M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (S601, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (S601, DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / S601), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / S601), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / S601), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / S601), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / S601), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / S601), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / S601), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / S601), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / S601), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / S601), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / S601), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / S601), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, S601, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, S601, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, S601, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, S601, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), S601, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), S601, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), S601, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), S601, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), S601, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), S601, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), S601, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), S601, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M008, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Store ((S605 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S605 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S605 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S605 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S605 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (S605, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (S605, 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (S605, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (S605, AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (S605, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (S605, DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (S605, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (S605, DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (S605, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (S605, M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (S605, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (S605, DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / S605), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / S605), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / S605), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / S605), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / S605), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / S605), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / S605), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / S605), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / S605), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / S605), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / S605), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / S605), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, S605, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, S605, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, S605, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, S605, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), S605, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), S605, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), S605, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), S605, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), S605, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), S605, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), S605, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), S605, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((S601 / S605), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((S605 / S601), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (S601, S605, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (S605, S601, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M009, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Store ((S604 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 / 0xC179B3FE), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S604 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 / AUI3), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S604 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 / DerefOf (RefOf (AUI3))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S604 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 / DerefOf (PAUI [0x03])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S604 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 / M601 (0x01, 0x03)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 / DerefOf (M602 (0x01, 0x03, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (S604, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Divide (S604, 0xC179B3FE, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (S604, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Divide (S604, AUI3, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (S604, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Divide (S604, DerefOf (RefOf (AUI3)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (S604, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Divide (S604, DerefOf (PAUI [0x03]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (S604, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Divide (S604, M601 (0x01, 0x03), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (S604, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Divide (S604, DerefOf (M602 (0x01, 0x03, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / S604), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE / S604), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / S604), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 / S604), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / S604), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) / S604), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / S604), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) / S604), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / S604), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) / S604), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / S604), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) / S604), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, S604, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xC179B3FE, S604, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, S604, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI3, S604, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), S604, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI3)), S604, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), S604, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x03]), S604, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), S604, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x03), S604, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), S604, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x03, 0x01)), S604, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((S601 / S604), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((S604 / S601), Local0) M600 (Arg0, 0x31, Local0, 0x003DD5B7) Divide (S601, S604, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (S604, S601, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x003DD5B7) } /* Mod, common 32-bit/64-bit test */ Method (M00A, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Store ((S601 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S601 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S601 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S601 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S601 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (S601 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (S601 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (S601 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (S601 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (S601 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % S601), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % S601), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % S601), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % S601), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % S601), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % S601), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % S601), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % S601), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % S601), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % S601), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % S601), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % S601), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % S601) /* \M613.M00A.S601 */ M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M00B, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Store ((S605 % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S605 % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S605 % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S605 % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((S605 % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S605 % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (S605 % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (S605 % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (S605 % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (S605 % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (S605 % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % S605), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % S605), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % S605), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % S605), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % S605), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % S605), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % S605), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % S605), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % S605), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((S601 % S605), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((S605 % S601), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (S601 % S605) /* \M613.M00B.S605 */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (S605 % S601) /* \M613.M00B.S601 */ M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M00C, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Store ((S604 % 0xC179B3FF), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 % 0xC179B3FD), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S604 % AUIC), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 % AUIE), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((S604 % DerefOf (RefOf (AUIC))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 % DerefOf (RefOf (AUIE))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S604 % DerefOf (PAUI [0x0C])), Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Store ((S604 % DerefOf (PAUI [0x0E])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S604 % M601 (0x01, 0x0C)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 % M601 (0x01, 0x0E)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 % DerefOf (M602 (0x01, 0x0C, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 % DerefOf (M602 (0x01, 0x0E, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (S604 % 0xC179B3FF) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 % 0xC179B3FD) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (S604 % AUIC) /* \AUIC */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 % AUIE) /* \AUIE */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (S604 % DerefOf (RefOf (AUIC))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 % DerefOf (RefOf (AUIE))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (S604 % DerefOf (PAUI [0x0C])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 % DerefOf (PAUI [0x0E])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (S604 % M601 (0x01, 0x0C)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 % M601 (0x01, 0x0E)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 % DerefOf (M602 (0x01, 0x0C, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 % DerefOf (M602 (0x01, 0x0E, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xC179B3FF % S604), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xC179B3FD % S604), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FD) Store ((AUIC % S604), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIE % S604), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (AUIC)) % S604), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIE)) % S604), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FD) } Store ((DerefOf (PAUI [0x0C]) % S604), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0E]) % S604), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M601 (0x01, 0x0C) % S604), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0E) % S604), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0C, 0x01)) % S604), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0E, 0x01)) % S604), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FD) } Local0 = (0xC179B3FF % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xC179B3FD % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x25, Local0, 0xC179B3FD) Local0 = (AUIC % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIE % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x27, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (AUIC)) % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIE)) % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x29, Local0, 0xC179B3FD) } Local0 = (DerefOf (PAUI [0x0C]) % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0E]) % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x2B, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0C) % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0E) % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x2D, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x2F, Local0, 0xC179B3FD) } /* Conversion of the both operands */ Store ((S601 % S604), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((S604 % S601), Local0) M600 (Arg0, 0x31, Local0, 0x0267) Local0 = (S601 % S604) /* \M613.M00C.S604 */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (S604 % S601) /* \M613.M00C.S601 */ M600 (Arg0, 0x33, Local0, 0x0267) } /* Multiply, common 32-bit/64-bit test */ Method (M00D, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Store ((S601 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S601 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((S601 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S601 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((S601 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S601 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((S601 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S601 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((S601 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S601 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S601 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (S601 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S601 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (S601 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S601 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (S601 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S601 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (S601 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S601 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (S601 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S601 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S601 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * S601), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * S601), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * S601), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * S601), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * S601), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * S601), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * S601), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * S601), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * S601), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * S601), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * S601), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * S601), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * S601) /* \M613.M00D.S601 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M00E, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Store ((S605 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S605 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((S605 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S605 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((S605 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S605 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((S605 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S605 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((S605 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S605 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S605 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (S605 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S605 * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (S605 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S605 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (S605 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S605 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (S605 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S605 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (S605 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S605 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S605 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * S605), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * S605), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * S605), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * S605), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * S605), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * S605), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * S605), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * S605), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * S605), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((S601 * S605), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((S605 * S601), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (S601 * S605) /* \M613.M00E.S605 */ M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (S605 * S601) /* \M613.M00E.S601 */ M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M00F, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Store ((S604 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S604 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((S604 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S604 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((S604 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S604 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((S604 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S604 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((S604 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S604 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S604 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (S604 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S604 * 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (S604 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S604 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (S604 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S604 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (S604 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S604 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (S604 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S604 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S604 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 * S604), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * S604), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 * S604), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * S604), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * S604), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * S604), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) * S604), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * S604), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * S604), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * S604), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * S604), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * S604), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((S601 * S604), Local0) M600 (Arg0, 0x30, Local0, 0x5DCC2DBE) Store ((S604 * S601), Local0) M600 (Arg0, 0x31, Local0, 0x5DCC2DBE) Local0 = (S601 * S604) /* \M613.M00F.S604 */ M600 (Arg0, 0x32, Local0, 0x5DCC2DBE) Local0 = (S604 * S601) /* \M613.M00F.S601 */ M600 (Arg0, 0x33, Local0, 0x5DCC2DBE) } /* NAnd, common 32-bit/64-bit test */ Method (M010, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Local0 = NAnd (S601, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (S601, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (S601, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (S601, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (S601, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (S601, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (S601, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (S601, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (S601, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (S601, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (S601, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (S601, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, S601) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, S601) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, S601) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, S601) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), S601) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), S601) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), S601) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), S601) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), S601) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), S601) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S601) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), S601) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, S601, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, S601, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, S601, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, S601, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), S601, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), S601, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), S601, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), S601, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), S601, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), S601, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S601, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), S601, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M011, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Local0 = NAnd (S605, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (S605, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (S605, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (S605, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (S605, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (S605, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (S605, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (S605, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (S605, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (S605, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (S605, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (S605, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, S605) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, S605) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, S605) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, S605) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), S605) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), S605) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), S605) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), S605) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), S605) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), S605) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S605) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), S605) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, S605, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, S605, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, S605, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, S605, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), S605, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), S605, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), S605, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), S605, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), S605, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), S605, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S605, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), S605, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (S601, S605) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (S605, S601) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (S601, S605, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (S605, S601, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M012, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Local0 = NAnd (S604, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x3E864C01) Local0 = NAnd (S604, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, AUII) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (S604, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Local0 = NAnd (S604, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (S604, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (S604, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } NAnd (S604, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (S604, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x3E864C01) NAnd (S604, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (S604, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { NAnd (S604, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (S604, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x3E864C01) } NAnd (S604, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (S604, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (S604, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (S604, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (S604, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (S604, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Local0 = NAnd (0x00, S604) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, S604) M600 (Arg0, 0x19, Local0, 0x3E864C01) Local0 = NAnd (AUI5, S604) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, S604) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), S604) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), S604) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PAUI [0x05]), S604) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), S604) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), S604) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), S604) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S604) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), S604) M600 (Arg0, 0x23, Local0, 0x3E864C01) } NAnd (0x00, S604, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, S604, Local0) M600 (Arg0, 0x25, Local0, 0x3E864C01) NAnd (AUI5, S604, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, S604, Local0) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), S604, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), S604, Local0) M600 (Arg0, 0x29, Local0, 0x3E864C01) } NAnd (DerefOf (PAUI [0x05]), S604, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), S604, Local0) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), S604, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), S604, Local0) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S604, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), S604, Local0) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Local0 = NAnd (S601, S604) M600 (Arg0, 0x30, Local0, 0xFFFFFCDF) Local0 = NAnd (S604, S601) M600 (Arg0, 0x31, Local0, 0xFFFFFCDF) NAnd (S601, S604, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFCDF) NAnd (S604, S601, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFCDF) } /* NOr, common 32-bit/64-bit test */ Method (M013, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Local0 = NOr (S601, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (S601, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (S601, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (S601, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (S601, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (S601, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (S601, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (S601, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (S601, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (S601, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (S601, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (S601, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, S601) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, S601) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, S601) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, S601) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), S601) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), S601) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), S601) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), S601) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), S601) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), S601) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S601) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), S601) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, S601, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, S601, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, S601, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, S601, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), S601, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), S601, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), S601, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), S601, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), S601, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), S601, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S601, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), S601, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M014, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Local0 = NOr (S605, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (S605, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (S605, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (S605, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (S605, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (S605, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (S605, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (S605, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (S605, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (S605, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (S605, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (S605, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (S605, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (S605, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (S605, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (S605, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (S605, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (S605, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, S605) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, S605) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, S605) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, S605) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), S605) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), S605) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), S605) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), S605) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), S605) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), S605) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S605) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), S605) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, S605, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, S605, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, S605, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, S605, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), S605, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), S605, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), S605, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), S605, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), S605, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), S605, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S605, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), S605, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (S601, S605) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (S605, S601) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (S601, S605, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (S605, S601, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M015, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Local0 = NOr (S604, 0x00) M600 (Arg0, 0x00, Local0, 0x3E864C01) Local0 = NOr (S604, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (S604, AUI5) M600 (Arg0, 0x02, Local0, 0x3E864C01) Local0 = NOr (S604, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (S604, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x3E864C01) Local0 = NOr (S604, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (S604, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x3E864C01) Local0 = NOr (S604, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (S604, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x3E864C01) Local0 = NOr (S604, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (S604, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x3E864C01) Local0 = NOr (S604, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (S604, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x3E864C01) NOr (S604, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (S604, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x3E864C01) NOr (S604, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (S604, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x3E864C01) NOr (S604, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (S604, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x3E864C01) NOr (S604, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (S604, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x3E864C01) NOr (S604, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (S604, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x3E864C01) NOr (S604, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, S604) M600 (Arg0, 0x18, Local0, 0x3E864C01) Local0 = NOr (0xFFFFFFFF, S604) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, S604) M600 (Arg0, 0x1A, Local0, 0x3E864C01) Local0 = NOr (AUII, S604) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), S604) M600 (Arg0, 0x1C, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (AUII)), S604) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), S604) M600 (Arg0, 0x1E, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PAUI [0x12]), S604) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), S604) M600 (Arg0, 0x20, Local0, 0x3E864C01) Local0 = NOr (M601 (0x01, 0x12), S604) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S604) M600 (Arg0, 0x22, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), S604) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, S604, Local0) M600 (Arg0, 0x24, Local0, 0x3E864C01) NOr (0xFFFFFFFF, S604, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, S604, Local0) M600 (Arg0, 0x26, Local0, 0x3E864C01) NOr (AUII, S604, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), S604, Local0) M600 (Arg0, 0x28, Local0, 0x3E864C01) NOr (DerefOf (RefOf (AUII)), S604, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), S604, Local0) M600 (Arg0, 0x2A, Local0, 0x3E864C01) NOr (DerefOf (PAUI [0x12]), S604, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), S604, Local0) M600 (Arg0, 0x2C, Local0, 0x3E864C01) NOr (M601 (0x01, 0x12), S604, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S604, Local0) M600 (Arg0, 0x2E, Local0, 0x3E864C01) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), S604, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (S601, S604) M600 (Arg0, 0x30, Local0, 0x3E864C00) Local0 = NOr (S604, S601) M600 (Arg0, 0x31, Local0, 0x3E864C00) NOr (S601, S604, Local0) M600 (Arg0, 0x32, Local0, 0x3E864C00) NOr (S604, S601, Local0) M600 (Arg0, 0x33, Local0, 0x3E864C00) } /* Or, common 32-bit/64-bit test */ Method (M016, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Store ((S601 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((S601 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((S601 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((S601 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((S601 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (S601 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (S601 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (S601 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (S601 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (S601 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | S601), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | S601), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | S601), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | S601), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | S601), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | S601), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | S601), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | S601), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | S601), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | S601), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | S601), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | S601), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | S601) /* \M613.M016.S601 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M017, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Store ((S605 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((S605 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((S605 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((S605 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((S605 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (S605 | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (S605 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (S605 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (S605 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (S605 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | S605), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | S605), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | S605), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | S605), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | S605), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | S605), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | S605), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | S605), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | S605), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((S601 | S605), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((S605 | S601), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (S601 | S605) /* \M613.M017.S605 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (S605 | S601) /* \M613.M017.S601 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M018, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Store ((S604 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((S604 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((S604 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((S604 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((S604 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (S604 | 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (S604 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (S604 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (S604 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (S604 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | S604), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF | S604), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | S604), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII | S604), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | S604), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) | S604), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | S604), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) | S604), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | S604), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) | S604), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | S604), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | S604), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((S601 | S604), Local0) M600 (Arg0, 0x30, Local0, 0xC179B3FF) Store ((S604 | S601), Local0) M600 (Arg0, 0x31, Local0, 0xC179B3FF) Local0 = (S601 | S604) /* \M613.M018.S604 */ M600 (Arg0, 0x32, Local0, 0xC179B3FF) Local0 = (S604 | S601) /* \M613.M018.S601 */ M600 (Arg0, 0x33, Local0, 0xC179B3FF) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M019, 1, Serialized) { Name (S601, "0321") Name (S614, "B") /* Conversion of the first operand */ Store ((S601 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((S601 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((S601 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((S601 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((S601 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (S601 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (S601 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (S601 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (S601 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (S601 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << S614), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << S614), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << S614), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << S614), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << S614), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << S614), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << S614) /* \M613.M019.S614 */ M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M01A, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") Name (S614, "B") /* Conversion of the first operand */ Store ((S605 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((S605 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((S605 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((S605 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((S605 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (S605 << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (S605 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (S605 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (S605 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (S605 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << S614), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << S614), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << S614), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << S614), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << S614), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << S614), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((S601 << S614), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((S605 << S614), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (S601 << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (S605 << S614) /* \M613.M01A.S614 */ M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M01B, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") Name (S614, "B") /* Conversion of the first operand */ Store ((S604 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x82F367FC) Store ((S604 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x82F367FC) If (Y078) { Store ((S604 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x82F367FC) } Store ((S604 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x82F367FC) /* Method returns Integer */ Store ((S604 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x82F367FC) } Local0 = (S604 << 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 << 0x01) M600 (Arg0, 0x0D, Local0, 0x82F367FC) Local0 = (S604 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x82F367FC) If (Y078) { Local0 = (S604 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x82F367FC) } Local0 = (S604 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x82F367FC) /* Method returns Integer */ Local0 = (S604 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x82F367FC) } /* Conversion of the second operand */ Store ((0x00 << S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << S614), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << S614), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << S614), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << S614), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << S614), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << S614), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((S601 << S614), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((S604 << S614), Local0) M600 (Arg0, 0x31, Local0, 0xCD9FF000) Local0 = (S601 << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (S604 << S614) /* \M613.M01B.S614 */ M600 (Arg0, 0x33, Local0, 0xCD9FF000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M01C, 1, Serialized) { Name (S601, "0321") Name (S614, "B") /* Conversion of the first operand */ Store ((S601 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((S601 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((S601 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((S601 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((S601 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (S601 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (S601 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (S601 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (S601 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (S601 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> S614), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> S614), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> S614), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> S614), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> S614), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> S614), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> S614) /* \M613.M01C.S614 */ M600 (Arg0, 0x2F, Local0, 0x00182F36) } } /* ShiftRight, 64-bit */ Method (M01D, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") Name (S614, "B") /* Conversion of the first operand */ Store ((S605 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((S605 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((S605 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((S605 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((S605 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (S605 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (S605 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (S605 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (S605 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (S605 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> S614), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> S614), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> S614), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> S614), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> S614), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> S614), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((S601 >> S614), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((S605 >> S614), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (S601 >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (S605 >> S614) /* \M613.M01D.S614 */ M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M01E, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") Name (S614, "B") /* Conversion of the first operand */ Store ((S604 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x60BCD9FF) Store ((S604 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x60BCD9FF) If (Y078) { Store ((S604 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x60BCD9FF) } Store ((S604 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x60BCD9FF) /* Method returns Integer */ Store ((S604 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x60BCD9FF) } Local0 = (S604 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x60BCD9FF) Local0 = (S604 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x60BCD9FF) If (Y078) { Local0 = (S604 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x60BCD9FF) } Local0 = (S604 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x60BCD9FF) /* Method returns Integer */ Local0 = (S604 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x60BCD9FF) } /* Conversion of the second operand */ Store ((0x0321 >> S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> S614), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> S614), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> S614), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> S614), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> S614), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> S614), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x2F, Local0, 0x00182F36) } /* Conversion of the both operands */ Store ((S601 >> S614), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((S604 >> S614), Local0) M600 (Arg0, 0x31, Local0, 0x00182F36) Local0 = (S601 >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (S604 >> S614) /* \M613.M01E.S614 */ M600 (Arg0, 0x33, Local0, 0x00182F36) } /* Subtract, common 32-bit/64-bit test */ Method (M01F, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Store ((S601 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((S601 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((S601 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((S601 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((S601 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (S601 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (S601 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (S601 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (S601 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (S601 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - S601), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - S601), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - S601), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - S601), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - S601), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - S601), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - S601), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - S601), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - S601), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - S601), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - S601), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - S601), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - S601) /* \M613.M01F.S601 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M020, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Store ((S605 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((S605 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((S605 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((S605 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((S605 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (S605 - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (S605 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (S605 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (S605 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (S605 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - S605), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - S605), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - S605), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - S605), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - S605), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - S605), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - S605), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - S605), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - S605), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - S605), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - S605), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - S605), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((S601 - S605), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((S605 - S601), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (S601 - S605) /* \M613.M020.S605 */ M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (S605 - S601) /* \M613.M020.S601 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M021, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Store ((S604 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FD) Store ((S604 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FD) If (Y078) { Store ((S604 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FD) } Store ((S604 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((S604 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FD) } Local0 = (S604 - 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 - 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FD) Local0 = (S604 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FD) If (Y078) { Local0 = (S604 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FD) } Local0 = (S604 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (S604 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FD) } /* Conversion of the second operand */ Store ((0x00 - S604), Local0) M600 (Arg0, 0x18, Local0, 0x3E864C02) Store ((0x01 - S604), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C03) Store ((AUI5 - S604), Local0) M600 (Arg0, 0x1A, Local0, 0x3E864C02) Store ((AUI6 - S604), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C03) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - S604), Local0) M600 (Arg0, 0x1C, Local0, 0x3E864C02) Store ((DerefOf (RefOf (AUI6)) - S604), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C03) } Store ((DerefOf (PAUI [0x05]) - S604), Local0) M600 (Arg0, 0x1E, Local0, 0x3E864C02) Store ((DerefOf (PAUI [0x06]) - S604), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C03) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - S604), Local0) M600 (Arg0, 0x20, Local0, 0x3E864C02) Store ((M601 (0x01, 0x06) - S604), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - S604), Local0) M600 (Arg0, 0x22, Local0, 0x3E864C02) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - S604), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C03) } Local0 = (0x00 - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x24, Local0, 0x3E864C02) Local0 = (0x01 - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x25, Local0, 0x3E864C03) Local0 = (AUI5 - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x26, Local0, 0x3E864C02) Local0 = (AUI6 - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x27, Local0, 0x3E864C03) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x28, Local0, 0x3E864C02) Local0 = (DerefOf (RefOf (AUI6)) - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x29, Local0, 0x3E864C03) } Local0 = (DerefOf (PAUI [0x05]) - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x2A, Local0, 0x3E864C02) Local0 = (DerefOf (PAUI [0x06]) - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x2B, Local0, 0x3E864C03) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x2C, Local0, 0x3E864C02) Local0 = (M601 (0x01, 0x06) - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x2D, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x2E, Local0, 0x3E864C02) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x2F, Local0, 0x3E864C03) } /* Conversion of the both operands */ Store ((S601 - S604), Local0) M600 (Arg0, 0x30, Local0, 0x3E864F23) Store ((S604 - S601), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DD) Local0 = (S601 - S604) /* \M613.M021.S604 */ M600 (Arg0, 0x32, Local0, 0x3E864F23) Local0 = (S604 - S601) /* \M613.M021.S601 */ M600 (Arg0, 0x33, Local0, 0xC179B0DD) } /* XOr, common 32-bit/64-bit test */ Method (M022, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Store ((S601 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((S601 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((S601 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((S601 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((S601 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (S601 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (S601 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (S601 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (S601 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (S601 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ S601), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ S601), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ S601), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ S601), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ S601), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ S601), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ S601), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ S601), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ S601), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ S601), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ S601), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ S601), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ S601) /* \M613.M022.S601 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M023, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Store ((S605 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((S605 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((S605 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((S605 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((S605 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (S605 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (S605 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (S605 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (S605 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (S605 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ S605), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ S605), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ S605), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ S605), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ S605), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ S605), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ S605), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ S605), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ S605), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ S605), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ S605), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ S605), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((S601 ^ S605), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((S605 ^ S601), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (S601 ^ S605) /* \M613.M023.S605 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (S605 ^ S601) /* \M613.M023.S601 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M024, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Store ((S604 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x3E864C01) Store ((S604 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Store ((S604 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Store ((S604 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Store ((S604 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } Local0 = (S604 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x3E864C01) Local0 = (S604 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { Local0 = (S604 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x3E864C01) } Local0 = (S604 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (S604 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Store ((0x00 ^ S604), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF ^ S604), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C01) Store ((AUI5 ^ S604), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII ^ S604), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ S604), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) ^ S604), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Store ((DerefOf (PAUI [0x05]) ^ S604), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) ^ S604), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ S604), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) ^ S604), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ S604), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ S604), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C01) } Local0 = (0x00 ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x25, Local0, 0x3E864C01) Local0 = (AUI5 ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x29, Local0, 0x3E864C01) } Local0 = (DerefOf (PAUI [0x05]) ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Store ((S601 ^ S604), Local0) M600 (Arg0, 0x30, Local0, 0xC179B0DF) Store ((S604 ^ S601), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DF) Local0 = (S601 ^ S604) /* \M613.M024.S604 */ M600 (Arg0, 0x32, Local0, 0xC179B0DF) Local0 = (S604 ^ S601) /* \M613.M024.S601 */ M600 (Arg0, 0x33, Local0, 0xC179B0DF) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m002", Local0) SRMT (Local0) M002 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m005", Local0) SRMT (Local0) M005 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m008", Local0) SRMT (Local0) M008 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00b", Local0) SRMT (Local0) M00B (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00e", Local0) SRMT (Local0) M00E (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) M010 (Local0) Concatenate (Arg0, "-m011", Local0) SRMT (Local0) M011 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) M013 (Local0) Concatenate (Arg0, "-m014", Local0) SRMT (Local0) M014 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) M016 (Local0) Concatenate (Arg0, "-m017", Local0) SRMT (Local0) M017 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01a", Local0) SRMT (Local0) M01A (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01d", Local0) SRMT (Local0) M01D (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) M01F (Local0) Concatenate (Arg0, "-m020", Local0) SRMT (Local0) M020 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) M022 (Local0) Concatenate (Arg0, "-m023", Local0) SRMT (Local0) M023 (Local0) } Method (M32D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m003", Local0) SRMT (Local0) M003 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m006", Local0) SRMT (Local0) M006 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m009", Local0) SRMT (Local0) M009 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00c", Local0) SRMT (Local0) M00C (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00f", Local0) SRMT (Local0) M00F (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) If (Y119) { M010 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m012", Local0) SRMT (Local0) M012 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) If (Y119) { M013 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m015", Local0) SRMT (Local0) M015 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) If (Y119) { M016 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m018", Local0) SRMT (Local0) M018 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01b", Local0) SRMT (Local0) M01B (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01e", Local0) SRMT (Local0) M01E (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) If (Y119) { M01F (Local0) } Else { BLCK () } Concatenate (Arg0, "-m021", Local0) SRMT (Local0) M021 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) If (Y119) { M022 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m024", Local0) SRMT (Local0) M024 (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M025, 1, Serialized) { Name (S601, "0321") /* Conversion of the first operand */ Local0 = (S601 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (S601 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S601 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (S601 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S601 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (S601 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S601 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (S601 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S601 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (S601 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (S601 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && S601) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && S601) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && S601) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && S601) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && S601) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && S601) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && S601) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && S601) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && S601) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && S601) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && S601) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && S601) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M026, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Local0 = (S605 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (S605 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S605 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (S605 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S605 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (S605 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S605 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (S605 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S605 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (S605 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (S605 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && S605) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && S605) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && S605) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && S605) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && S605) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && S605) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && S605) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && S605) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && S605) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && S605) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && S605) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && S605) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (S601 && S605) M600 (Arg0, 0x18, Local0, Ones) Local0 = (S605 && S601) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M027, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") /* Conversion of the first operand */ Local0 = (S604 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (S604 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S604 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (S604 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S604 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (S604 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S604 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (S604 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S604 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (S604 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (S604 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && S604) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && S604) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && S604) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && S604) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && S604) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && S604) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && S604) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && S604) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && S604) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && S604) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && S604) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && S604) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (S601 && S604) M600 (Arg0, 0x18, Local0, Ones) Local0 = (S604 && S601) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M028, 1, Serialized) { Name (S600, "0") /* Conversion of the first operand */ Local0 = (S600 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (S600 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S600 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (S600 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S600 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (S600 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S600 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (S600 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S600 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (S600 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S600 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (S600 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || S600) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || S600) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || S600) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || S600) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || S600) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || S600) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || S600) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || S600) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || S600) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || S600) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || S600) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || S600) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M029, 1, Serialized) { Name (S600, "0") Name (S605, "FE7CB391D650A284") /* Conversion of the first operand */ Local0 = (S605 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (S605 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S605 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (S605 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S605 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (S605 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S605 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (S605 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S605 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (S605 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (S605 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || S605) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || S605) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || S605) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || S605) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || S605) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || S605) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || S605) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || S605) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || S605) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || S605) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || S605) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || S605) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (S600 || S605) M600 (Arg0, 0x18, Local0, Ones) Local0 = (S605 || S600) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M02A, 1, Serialized) { Name (S600, "0") Name (S604, "C179B3FE") /* Conversion of the first operand */ Local0 = (S604 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (S604 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S604 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (S604 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S604 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (S604 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S604 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (S604 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S604 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (S604 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (S604 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || S604) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || S604) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || S604) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || S604) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || S604) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || S604) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || S604) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || S604) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || S604) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || S604) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || S604) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || S604) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (S600 || S604) M600 (Arg0, 0x18, Local0, Ones) Local0 = (S604 || S600) M600 (Arg0, 0x19, Local0, Ones) } Method (M64E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m026", Local0) SRMT (Local0) M026 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m029", Local0) SRMT (Local0) M029 (Local0) } Method (M32E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m027", Local0) SRMT (Local0) M027 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m02a", Local0) SRMT (Local0) M02A (Local0) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64F, 1, Serialized) { Name (S605, "FE7CB391D650A284") /* LEqual */ Local0 = (0xFE7CB391D650A284 == S605) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == S605) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == S605) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == S605) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == S605) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == S605) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == S605) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == S605) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == S605) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == S605) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == S605) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == S605) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == S605) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == S605) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == S605) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == S605) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == S605) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == S605) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > S605) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > S605) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > S605) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > S605) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > S605) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > S605) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > S605) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > S605) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > S605) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > S605) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > S605) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > S605) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > S605) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > S605) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > S605) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > S605) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > S605) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > S605) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= S605) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= S605) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= S605) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= S605) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= S605) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= S605) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= S605) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= S605) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= S605) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= S605) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= S605) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= S605) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= S605) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= S605) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= S605) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= S605) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= S605) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= S605) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < S605) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < S605) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < S605) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < S605) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < S605) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < S605) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < S605) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < S605) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < S605) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < S605) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < S605) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < S605) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < S605) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < S605) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < S605) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < S605) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < S605) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < S605) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= S605) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= S605) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= S605) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= S605) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= S605) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= S605) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= S605) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= S605) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= S605) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= S605) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= S605) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= S605) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= S605) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= S605) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= S605) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= S605) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= S605) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= S605) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != S605) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != S605) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != S605) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != S605) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != S605) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != S605) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != S605) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != S605) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != S605) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != S605) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != S605) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != S605) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != S605) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != S605) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != S605) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != S605) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != S605) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != S605) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32F, 1, Serialized) { Name (S604, "C179B3FE") /* LEqual */ Local0 = (0xC179B3FE == S604) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xC179B3FF == S604) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xC179B3FD == S604) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI3 == S604) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIC == S604) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIE == S604) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) == S604) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) == S604) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) == S604) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) == S604) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) == S604) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) == S604) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) == S604) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0C) == S604) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0E) == S604) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) == S604) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) == S604) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) == S604) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xC179B3FE > S604) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xC179B3FF > S604) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xC179B3FD > S604) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI3 > S604) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIC > S604) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIE > S604) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) > S604) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) > S604) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) > S604) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) > S604) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) > S604) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) > S604) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) > S604) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0C) > S604) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0E) > S604) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) > S604) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) > S604) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) > S604) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xC179B3FE >= S604) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xC179B3FF >= S604) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xC179B3FD >= S604) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI3 >= S604) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIC >= S604) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIE >= S604) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) >= S604) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) >= S604) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) >= S604) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) >= S604) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) >= S604) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) >= S604) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) >= S604) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0C) >= S604) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0E) >= S604) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >= S604) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) >= S604) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) >= S604) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xC179B3FE < S604) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xC179B3FF < S604) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xC179B3FD < S604) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI3 < S604) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIC < S604) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIE < S604) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) < S604) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) < S604) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) < S604) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) < S604) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) < S604) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) < S604) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) < S604) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0C) < S604) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0E) < S604) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) < S604) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) < S604) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) < S604) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xC179B3FE <= S604) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xC179B3FF <= S604) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xC179B3FD <= S604) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI3 <= S604) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIC <= S604) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIE <= S604) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) <= S604) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) <= S604) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) <= S604) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) <= S604) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) <= S604) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) <= S604) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) <= S604) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0C) <= S604) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0E) <= S604) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) <= S604) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) <= S604) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) <= S604) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xC179B3FE != S604) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xC179B3FF != S604) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xC179B3FD != S604) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI3 != S604) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIC != S604) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIE != S604) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) != S604) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) != S604) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) != S604) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) != S604) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) != S604) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) != S604) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) != S604) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0C) != S604) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0E) != S604) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) != S604) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) != S604) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) != S604) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M02B, 1, Serialized) { Name (S601, "0321") /* LEqual */ Local0 = (0x0321 == S601) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == S601) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == S601) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == S601) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == S601) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == S601) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == S601) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == S601) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == S601) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == S601) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == S601) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == S601) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == S601) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == S601) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == S601) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == S601) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == S601) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == S601) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > S601) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > S601) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > S601) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > S601) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > S601) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > S601) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > S601) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > S601) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > S601) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > S601) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > S601) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > S601) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > S601) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > S601) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > S601) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > S601) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > S601) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > S601) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= S601) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= S601) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= S601) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= S601) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= S601) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= S601) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= S601) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= S601) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= S601) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= S601) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= S601) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= S601) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= S601) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= S601) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= S601) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= S601) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= S601) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= S601) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < S601) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < S601) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < S601) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < S601) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < S601) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < S601) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < S601) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < S601) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < S601) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < S601) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < S601) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < S601) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < S601) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < S601) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < S601) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < S601) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < S601) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < S601) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= S601) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= S601) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= S601) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= S601) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= S601) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= S601) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= S601) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= S601) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= S601) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= S601) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= S601) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= S601) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= S601) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= S601) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= S601) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= S601) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= S601) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= S601) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != S601) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != S601) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != S601) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != S601) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != S601) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != S601) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != S601) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != S601) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != S601) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != S601) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != S601) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != S601) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != S601) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != S601) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != S601) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != S601) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != S601) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != S601) M600 (Arg0, 0x6B, Local0, Ones) } } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64G, 1, Serialized) { Name (S601, "0321") Name (S605, "FE7CB391D650A284") Local0 = Concatenate (0x0321, S601) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, S605) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, S601) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, S605) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), S601) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), S605) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), S601) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), S605) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), S601) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), S605) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S601) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S605) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, S601, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, S605, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, S601, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, S605, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), S601, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), S605, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), S601, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), S605, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), S601, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), S605, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S601, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S605, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32G, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") Local0 = Concatenate (0x0321, S601) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, S604) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (AUI1, S601) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, S604) M600 (Arg0, 0x03, Local0, BB24) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), S601) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), S604) M600 (Arg0, 0x05, Local0, BB24) } Local0 = Concatenate (DerefOf (PAUI [0x01]), S601) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), S604) M600 (Arg0, 0x07, Local0, BB24) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), S601) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), S604) M600 (Arg0, 0x09, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S601) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S604) M600 (Arg0, 0x0B, Local0, BB24) } Concatenate (0x0321, S601, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, S604, Local0) M600 (Arg0, 0x0D, Local0, BB24) Concatenate (AUI1, S601, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, S604, Local0) M600 (Arg0, 0x0F, Local0, BB24) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), S601, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), S604, Local0) M600 (Arg0, 0x11, Local0, BB24) } Concatenate (DerefOf (PAUI [0x01]), S601, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), S604, Local0) M600 (Arg0, 0x14, Local0, BB24) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), S601, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), S604, Local0) M600 (Arg0, 0x16, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S601, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S604, Local0) M600 (Arg0, 0x18, Local0, BB24) } } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M02C, 1, Serialized) { Name (S601, "0321") Name (S614, "B") Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S614) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S601) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, S614) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, S601) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), S614) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), S601) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), S614) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), S601) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), S614) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), S601) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S614) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S601) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S614, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S601, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, S614, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, S601, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), S614, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), S601, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), S614, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), S601, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), S614, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), S601, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S614, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S601, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64H, 1, Serialized) { Name (S605, "FE7CB391D650A284") Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S605) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, S605) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), S605) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), S605) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), S605) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S605) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S605, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, S605, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), S605, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), S605, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), S605, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S605, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32H, 1, Serialized) { Name (S604, "C179B3FE") Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S604) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, S604) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), S604) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), S604) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), S604) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S604) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S604, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, S604, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), S604, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), S604, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), S604, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S604, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Method (M02D, 1, Serialized) { Name (S614, "B") Store (AUS6 [S614], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [S614], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [S614], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [S614], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [S614], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [S614], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [S614], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [S614], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [S614], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [S614], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [S614], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [S614], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [S614], Local3) CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [S614], Local3) CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [S614], Local3) CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [S614], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [S614], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [S614], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [S614] /* \M613.M02D.S614 */ CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [S614] /* \M613.M02D.S614 */ CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [S614] /* \M613.M02D.S614 */ CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [S614] /* \M613.M02D.S614 */ M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M02E, 1, Serialized) { Name (S601, "0321") Name (S604, "C179B3FE") Name (S605, "FE7CB391D650A284") CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, S601) If (F64) { Fatal (0xFF, 0xFFFFFFFF, S605) } Else { Fatal (0xFF, 0xFFFFFFFF, S604) } CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) } /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M02F, 1, Serialized) { Name (S614, "B") /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", S614, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, S614, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, S614, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), S614, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), S614, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), S614, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), S614, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), S614, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), S614, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", S614, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, S614, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, S614, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), S614, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), S614, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), S614, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), S614, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), S614, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), S614, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, S614) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S614) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, S614) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, S614) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, S614) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, S614) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, S614) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, S614) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, S614) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, S614) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S614) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S614) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, S614, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S614, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, S614, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, S614, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, S614, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, S614, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, S614, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, S614, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, S614, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, S614, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S614, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S614, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64I, 1, Serialized) { Name (S605, "FE7CB391D650A284") Name (S614, "B") /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, S605) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S605) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, S605) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, S605) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, S605) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, S605) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, S605) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, S605) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, S605) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, S605) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S605) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S605) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, S605, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S605, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, S605, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, S605, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, S605, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, S605, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, S605, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, S605, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, S605, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, S605, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S605, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S605, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", S614, S605) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, S605) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, S614, S605) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, S614, S605) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), S614, S605) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), S614, S605) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), S614, S605) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), S614, S605) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), S614, S605) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), S614, S605) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, S605) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, S605) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", S614, S605, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, S605, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, S614, S605, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, S614, S605, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), S614, S605, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), S614, S605, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), S614, S605, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), S614, S605, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), S614, S605, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), S614, S605, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, S605, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, S605, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32I, 1, Serialized) { Name (S604, "C179B3FE") Name (S614, "B") /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, S604) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S604) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, S604) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, S604) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, S604) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, S604) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, S604) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, S604) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, S604) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, S604) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S604) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S604) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, S604, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S604, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, S604, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, S604, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, S604, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, S604, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, S604, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, S604, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, S604, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, S604, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S604, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S604, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", S614, S604) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, S604) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, S614, S604) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, S614, S604) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), S614, S604) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), S614, S604) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), S614, S604) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), S614, S604) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), S614, S604) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), S614, S604) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, S604) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, S604) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", S614, S604, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, S604, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, S614, S604, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, S614, S604, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), S614, S604, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), S614, S604, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), S614, S604, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), S614, S604, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), S614, S604, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), S614, S604, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, S604, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, S604, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Method (M030, 1, Serialized) { Name (S614, "B") Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64j, 1) */ /* Method(m32j, 1) */ /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M031, 1, Serialized) { Name (S601, "0321") Name (S61B, "63") CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (S601) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z088, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (S61B) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z088, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator ??? */ Method (M032, 1, Serialized) { Name (S601, "0321") Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, s601) */ CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z088, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Method (M033, 1, Serialized) { Name (S601, "0321") Event (EVT0) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, S601) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z088, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M034, 1, Serialized) { Name (S600, "0") Name (S601, "0321") Name (S604, "C179B3FE") Name (S605, "FE7CB391D650A284") Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (S600) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (S601) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (S604) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (S605) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (S600) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (S601) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (S604) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (S605) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (S600) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64k, 1) */ /* Method(m32k, 1) */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M035, 1, Serialized) { Name (S601, "0321") Name (S60C, "") Name (S60E, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") /* LEqual */ Local0 = (Buffer (0x05) { "0321" } == S601) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } == S601) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB7 == S601) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == S601) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) == S601) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == S601) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) == S601) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == S601) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) == S601) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == S601) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) == S601) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == S601) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x05) { "0321" } > S601) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } > S601) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } > S601) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } > S601) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB7 > S601) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB8 > S601) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) > S601) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) > S601) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) > S601) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) > S601) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) > S601) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x08) > S601) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) > S601) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) > S601) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x05) { "0321" } >= S601) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } >= S601) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } >= S601) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } >= S601) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB7 >= S601) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB8 >= S601) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) >= S601) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) >= S601) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) >= S601) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) >= S601) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) >= S601) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x08) >= S601) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) >= S601) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) >= S601) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x05) { "0321" } < S601) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } < S601) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } < S601) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } < S601) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB7 < S601) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB8 < S601) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) < S601) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) < S601) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) < S601) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) < S601) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) < S601) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x08) < S601) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) < S601) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) < S601) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x05) { "0321" } <= S601) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } <= S601) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } <= S601) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } <= S601) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB7 <= S601) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB8 <= S601) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) <= S601) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) <= S601) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) <= S601) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) <= S601) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) <= S601) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x08) <= S601) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) <= S601) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) <= S601) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x05) { "0321" } != S601) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } != S601) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } != S601) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } != S601) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB7 != S601) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB8 != S601) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) != S601) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) != S601) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) != S601) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) != S601) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) != S601) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x08) != S601) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) != S601) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) != S601) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = (Buffer (0x01) { 0x00 // . } == S60C) M600 (Arg0, 0x52, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } == S60C) M600 (Arg0, 0x53, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } > S60C) M600 (Arg0, 0x54, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } > S60C) M600 (Arg0, 0x55, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } >= S60C) M600 (Arg0, 0x56, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } > S60C) M600 (Arg0, 0x57, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } < S60C) M600 (Arg0, 0x58, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } < S60C) M600 (Arg0, 0x59, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } <= S60C) M600 (Arg0, 0x5A, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } <= S60C) M600 (Arg0, 0x5B, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } != S60C) M600 (Arg0, 0x5C, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } != S60C) M600 (Arg0, 0x5D, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } == S60E) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } == S60E) M600 (Arg0, 0x5F, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } > S60E) M600 (Arg0, 0x60, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > S60E) M600 (Arg0, 0x61, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } >= S60E) M600 (Arg0, 0x62, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > S60E) M600 (Arg0, 0x63, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } < S60E) M600 (Arg0, 0x64, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } < S60E) M600 (Arg0, 0x65, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } <= S60E) M600 (Arg0, 0x66, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } <= S60E) M600 (Arg0, 0x67, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } != S60E) M600 (Arg0, 0x68, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } != S60E) M600 (Arg0, 0x69, Local0, Ones) } /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M036, 1, Serialized) { Name (S601, "0321") Name (S60C, "") Name (S60E, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, S601) M600 (Arg0, 0x00, Local0, BB29) Local0 = Concatenate (Buffer (0x02) { "Z" }, S601) M600 (Arg0, 0x01, Local0, BB2A) Local0 = Concatenate (AUB0, S601) M600 (Arg0, 0x02, Local0, BB29) Local0 = Concatenate (AUB1, S601) M600 (Arg0, 0x03, Local0, BB2A) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), S601) M600 (Arg0, 0x04, Local0, BB29) Local0 = Concatenate (DerefOf (RefOf (AUB1)), S601) M600 (Arg0, 0x05, Local0, BB2A) } Local0 = Concatenate (DerefOf (PAUB [0x00]), S601) M600 (Arg0, 0x06, Local0, BB29) Local0 = Concatenate (DerefOf (PAUB [0x01]), S601) M600 (Arg0, 0x07, Local0, BB2A) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), S601) M600 (Arg0, 0x08, Local0, BB29) Local0 = Concatenate (M601 (0x03, 0x01), S601) M600 (Arg0, 0x09, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), S601) M600 (Arg0, 0x0A, Local0, BB29) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), S601) M600 (Arg0, 0x0B, Local0, BB2A) } Concatenate (Buffer (0x01) { 0x5A // Z }, S601, Local0) M600 (Arg0, 0x0C, Local0, BB29) Concatenate (Buffer (0x02) { "Z" }, S601, Local0) M600 (Arg0, 0x0D, Local0, BB2A) Concatenate (AUB0, S601, Local0) M600 (Arg0, 0x0E, Local0, BB29) Concatenate (AUB1, S601, Local0) M600 (Arg0, 0x0F, Local0, BB2A) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), S601, Local0) M600 (Arg0, 0x10, Local0, BB29) Concatenate (DerefOf (RefOf (AUB1)), S601, Local0) M600 (Arg0, 0x11, Local0, BB2A) } Concatenate (DerefOf (PAUB [0x00]), S601, Local0) M600 (Arg0, 0x12, Local0, BB29) Concatenate (DerefOf (PAUB [0x01]), S601, Local0) M600 (Arg0, 0x13, Local0, BB2A) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), S601, Local0) M600 (Arg0, 0x14, Local0, BB29) Concatenate (M601 (0x03, 0x01), S601, Local0) M600 (Arg0, 0x15, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), S601, Local0) M600 (Arg0, 0x16, Local0, BB29) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), S601, Local0) M600 (Arg0, 0x17, Local0, BB2A) } /* Boundary Cases */ Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, S60C) M600 (Arg0, 0x18, Local0, BB2B) Local0 = Concatenate (Buffer (0x02) { "Z" }, S60C) M600 (Arg0, 0x19, Local0, BB2C) Local1 = 0x00 Local0 = Concatenate (Buffer (Local1){}, S60E) M600 (Arg0, 0x1A, Local0, BB2D) } /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character, that is impossible to show */ /* with an immediate String constant). */ Method (M037, 1, Serialized) { Name (S601, "0321") Name (S60C, "") Name (S60E, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") Local0 = ToString (S601, Ones) M600 (Arg0, 0x00, Local0, BS20) Local0 = ToString (S601, 0x03) M600 (Arg0, 0x01, Local0, BS21) Local0 = ToString (S601, AUI0) M600 (Arg0, 0x02, Local0, BS20) Local0 = ToString (S601, AUI7) M600 (Arg0, 0x03, Local0, BS21) If (Y078) { Local0 = ToString (S601, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x04, Local0, BS20) Local0 = ToString (S601, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x05, Local0, BS21) } Local0 = ToString (S601, DerefOf (PAUI [0x00])) M600 (Arg0, 0x06, Local0, BS20) Local0 = ToString (S601, DerefOf (PAUI [0x07])) M600 (Arg0, 0x07, Local0, BS21) /* Method returns Length parameter */ Local0 = ToString (S601, M601 (0x01, 0x00)) M600 (Arg0, 0x08, Local0, BS20) Local0 = ToString (S601, M601 (0x01, 0x07)) M600 (Arg0, 0x09, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (S601, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0A, Local0, BS20) Local0 = ToString (S601, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x0B, Local0, BS21) } ToString (S601, Ones, Local0) M600 (Arg0, 0x0C, Local0, BS20) ToString (S601, 0x03, Local0) M600 (Arg0, 0x0D, Local0, BS21) ToString (S601, AUI0, Local0) M600 (Arg0, 0x0E, Local0, BS20) ToString (S601, AUI7, Local0) M600 (Arg0, 0x0F, Local0, BS21) If (Y078) { ToString (S601, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x10, Local0, BS20) ToString (S601, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x11, Local0, BS21) } ToString (S601, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x12, Local0, BS20) ToString (S601, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x13, Local0, BS21) /* Method returns Length parameter */ ToString (S601, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS20) ToString (S601, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x15, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { ToString (S601, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x16, Local0, BS20) ToString (S601, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x17, Local0, BS21) } /* Boundary Cases */ Local0 = ToString (S60C, Ones) M600 (Arg0, 0x18, Local0, BS22) Local0 = ToString (S60C, 0x03) M600 (Arg0, 0x19, Local0, BS22) Local0 = ToString (S60E, Ones) M600 (Arg0, 0x1A, Local0, BS23) Local0 = ToString (S60E, 0x03) M600 (Arg0, 0x1B, Local0, BS24) } /* Method(m038, 1) */ /* Method(m039, 1) */ /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Decrement */ If (Y501) { Local0 = B606-- M600 (Arg0, 0x00, Local0, BI12) Local0 = B60A-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = B606++ M600 (Arg0, 0x02, Local0, BI13) Local0 = B60A++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (B606) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (B60A) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (B606) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (B60A) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~B606, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~B60A, Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Decrement */ If (Y501) { Local0 = B606-- M600 (Arg0, 0x00, Local0, BI12) Local0 = B60A-- M600 (Arg0, 0x01, Local0, BI18) } /* Increment */ If (Y501) { Local0 = B606++ M600 (Arg0, 0x02, Local0, BI13) Local0 = B60A++ M600 (Arg0, 0x03, Local0, BI19) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (B606) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (B60A) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (B606) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (B60A) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~B606, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~B60A, Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, Serialized) { Name (B600, Buffer (0x01) { 0x00 // . }) Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Local0 = !B600 M600 (Arg0, 0x00, Local0, Ones) Local0 = !B606 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !B60A M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !B60A M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60F, Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }) Name (B610, Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }) /* FromBCD */ Local0 = FromBCD (B606) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (B60F) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (B606, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (B60F, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (B606) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (B610) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (B606, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (B610, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B611, Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. }) Name (B612, Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }) /* FromBCD */ Local0 = FromBCD (B606) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (B611) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (B606, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (B611, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (B606) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (B612) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (B606, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (B612, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Store ((B606 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((B606 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((B606 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((B606 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((B606 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (B606 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (B606 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (B606 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (B606 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (B606 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + B606), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + B606), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + B606), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + B606), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + B606), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + B606), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + B606), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + B606), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + B606), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + B606), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + B606), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + B606), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + B606) /* \M613.M03B.B606 */ M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((B60A + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((B60A + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((B60A + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((B60A + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (B60A + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (B60A + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (B60A + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (B60A + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (B60A + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + B60A), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + B60A), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + B60A), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((B606 + B60A), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((B60A + B606), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (B606 + B60A) /* \M613.M03C.B60A */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (B60A + B606) /* \M613.M03C.B606 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((B60A + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((B60A + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((B60A + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((B60A + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (B60A + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (B60A + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (B60A + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (B60A + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (B60A + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + B60A), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + B60A), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + B60A), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + B60A), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + B60A), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + B60A), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((B606 + B60A), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((B60A + B606), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (B606 + B60A) /* \M613.M03D.B60A */ M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (B60A + B606) /* \M613.M03D.B606 */ M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Store ((B606 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B606 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((B606 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B606 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((B606 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B606 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((B606 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B606 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((B606 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B606 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B606 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (B606 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B606 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (B606 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B606 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (B606 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B606 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (B606 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B606 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (B606 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B606 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B606 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & B606), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & B606), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & B606), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & B606), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & B606), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & B606), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & B606), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & B606), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & B606), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & B606), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & B606), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & B606), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & B606) /* \M613.M03E.B606 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B60A & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((B60A & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B60A & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((B60A & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B60A & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((B60A & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B60A & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((B60A & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B60A & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B60A & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (B60A & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B60A & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (B60A & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B60A & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (B60A & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B60A & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (B60A & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B60A & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (B60A & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B60A & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B60A & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((B606 & B60A), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((B60A & B606), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (B606 & B60A) /* \M613.M03F.B60A */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (B60A & B606) /* \M613.M03F.B606 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B60A & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((B60A & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B60A & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((B60A & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B60A & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((B60A & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B60A & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((B60A & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B60A & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B60A & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (B60A & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B60A & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (B60A & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B60A & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (B60A & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B60A & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (B60A & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B60A & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (B60A & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B60A & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B60A & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & B60A), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & B60A), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & B60A), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((B606 & B60A), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((B60A & B606), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (B606 & B60A) /* \M613.M040.B60A */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (B60A & B606) /* \M613.M040.B606 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Store ((B606 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B606 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B606 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B606 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B606 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (B606, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (B606, 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (B606, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (B606, AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (B606, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (B606, DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (B606, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (B606, DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (B606, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (B606, M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (B606, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (B606, DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / B606), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / B606), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / B606), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / B606), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / B606), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / B606), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / B606), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / B606), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / B606), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / B606), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / B606), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / B606), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, B606, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, B606, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, B606, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, B606, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), B606, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), B606, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), B606, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), B606, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), B606, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), B606, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), B606, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), B606, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B60A / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B60A / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B60A / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B60A / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (B60A, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (B60A, 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (B60A, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (B60A, AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (B60A, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (B60A, DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (B60A, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (B60A, DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (B60A, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (B60A, M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (B60A, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (B60A, DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / B60A), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / B60A), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / B60A), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, B60A, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, B60A, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, B60A, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, B60A, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), B60A, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), B60A, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), B60A, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), B60A, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), B60A, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), B60A, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), B60A, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), B60A, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((B606 / B60A), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((B60A / B606), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (B606, B60A, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (B60A, B606, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B60A / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B60A / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B60A / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A / DerefOf (PAUI [0x14])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B60A / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (B60A, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (B60A, 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (B60A, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (B60A, AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (B60A, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (B60A, DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (B60A, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (B60A, DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (B60A, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (B60A, M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (B60A, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (B60A, DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / B60A), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / B60A), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / B60A), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, B60A, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, B60A, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, B60A, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, B60A, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), B60A, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), B60A, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), B60A, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), B60A, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), B60A, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), B60A, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), B60A, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), B60A, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((B606 / B60A), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((B60A / B606), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (B606, B60A, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (B60A, B606, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Store ((B606 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B606 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B606 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B606 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B606 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (B606 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (B606 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (B606 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (B606 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (B606 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % B606), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % B606), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % B606), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % B606), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % B606), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % B606), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % B606), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % B606), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % B606), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % B606), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % B606), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % B606), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % B606) /* \M613.M044.B606 */ M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B60A % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B60A % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B60A % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((B60A % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B60A % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (B60A % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (B60A % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (B60A % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (B60A % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (B60A % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % B60A), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % B60A), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % B60A), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((B606 % B60A), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((B60A % B606), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (B606 % B60A) /* \M613.M045.B60A */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (B60A % B606) /* \M613.M045.B606 */ M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B60A % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((B60A % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B60A % DerefOf (PAUI [0x15])), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((B60A % DerefOf (PAUI [0x16])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B60A % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (B60A % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (B60A % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (B60A % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (B60A % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (B60A % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % B60A), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % B60A), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % B60A), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % B60A), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % B60A), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % B60A), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((B606 % B60A), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((B60A % B606), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (B606 % B60A) /* \M613.M046.B60A */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (B60A % B606) /* \M613.M046.B606 */ M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Store ((B606 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B606 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((B606 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B606 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((B606 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B606 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((B606 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B606 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((B606 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B606 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B606 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (B606 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B606 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (B606 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B606 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (B606 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B606 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (B606 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B606 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (B606 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B606 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B606 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * B606), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * B606), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * B606), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * B606), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * B606), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * B606), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * B606), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * B606), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * B606), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * B606), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * B606), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * B606), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * B606) /* \M613.M047.B606 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B60A * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((B60A * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B60A * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((B60A * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B60A * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((B60A * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B60A * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((B60A * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B60A * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B60A * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (B60A * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B60A * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (B60A * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B60A * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (B60A * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B60A * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (B60A * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B60A * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (B60A * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B60A * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B60A * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((B606 * B60A), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((B60A * B606), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (B606 * B60A) /* \M613.M048.B60A */ M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (B60A * B606) /* \M613.M048.B606 */ M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B60A * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((B60A * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B60A * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((B60A * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B60A * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((B60A * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B60A * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((B60A * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B60A * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B60A * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (B60A * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B60A * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (B60A * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B60A * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (B60A * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B60A * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (B60A * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B60A * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (B60A * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B60A * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B60A * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * B60A), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * B60A), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * B60A), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((B606 * B60A), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((B60A * B606), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (B606 * B60A) /* \M613.M049.B60A */ M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (B60A * B606) /* \M613.M049.B606 */ M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Local0 = NAnd (B606, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (B606, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (B606, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (B606, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (B606, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (B606, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (B606, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (B606, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (B606, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (B606, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (B606, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (B606, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, B606) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, B606) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, B606) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, B606) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), B606) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), B606) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), B606) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), B606) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), B606) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), B606) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B606) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), B606) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, B606, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, B606, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, B606, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, B606, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), B606, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), B606, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), B606, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), B606, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), B606, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), B606, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B606, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), B606, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Local0 = NAnd (B60A, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (B60A, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (B60A, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (B60A, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (B60A, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (B60A, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (B60A, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (B60A, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (B60A, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (B60A, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (B60A, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (B60A, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, B60A) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, B60A) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, B60A) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, B60A) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), B60A) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), B60A) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), B60A) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), B60A) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), B60A) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), B60A) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B60A) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), B60A) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, B60A, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, B60A, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, B60A, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, B60A, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), B60A, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), B60A, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), B60A, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), B60A, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), B60A, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), B60A, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B60A, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), B60A, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (B606, B60A) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (B60A, B606) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (B606, B60A, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (B60A, B606, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Local0 = NAnd (B60A, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (B60A, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (B60A, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (B60A, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (B60A, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (B60A, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (B60A, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (B60A, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (B60A, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (B60A, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (B60A, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (B60A, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (B60A, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (B60A, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (B60A, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (B60A, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (B60A, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (B60A, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, B60A) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, B60A) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, B60A) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, B60A) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), B60A) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), B60A) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), B60A) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), B60A) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), B60A) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), B60A) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B60A) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), B60A) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, B60A, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, B60A, Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, B60A, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, B60A, Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), B60A, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), B60A, Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), B60A, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), B60A, Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), B60A, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), B60A, Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B60A, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), B60A, Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (B606, B60A) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (B60A, B606) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (B606, B60A, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (B60A, B606, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Local0 = NOr (B606, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (B606, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (B606, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (B606, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (B606, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (B606, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (B606, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (B606, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (B606, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (B606, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (B606, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (B606, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, B606) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, B606) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, B606) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, B606) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), B606) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), B606) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), B606) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), B606) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), B606) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), B606) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B606) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), B606) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, B606, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, B606, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, B606, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, B606, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), B606, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), B606, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), B606, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), B606, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), B606, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), B606, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B606, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), B606, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Local0 = NOr (B60A, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (B60A, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (B60A, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (B60A, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (B60A, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (B60A, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (B60A, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (B60A, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (B60A, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (B60A, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (B60A, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (B60A, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (B60A, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (B60A, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (B60A, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (B60A, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (B60A, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (B60A, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, B60A) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, B60A) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, B60A) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, B60A) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), B60A) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), B60A) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), B60A) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), B60A) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), B60A) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), B60A) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B60A) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), B60A) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, B60A, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, B60A, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, B60A, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, B60A, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), B60A, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), B60A, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), B60A, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), B60A, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), B60A, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), B60A, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B60A, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), B60A, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (B606, B60A) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (B60A, B606) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (B606, B60A, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (B60A, B606, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Local0 = NOr (B60A, 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (B60A, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (B60A, AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (B60A, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (B60A, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (B60A, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (B60A, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (B60A, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (B60A, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (B60A, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (B60A, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (B60A, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (B60A, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (B60A, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (B60A, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (B60A, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (B60A, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (B60A, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (B60A, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (B60A, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (B60A, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (B60A, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (B60A, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (B60A, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, B60A) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, B60A) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, B60A) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, B60A) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), B60A) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), B60A) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), B60A) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), B60A) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), B60A) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), B60A) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B60A) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), B60A) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, B60A, Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, B60A, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, B60A, Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, B60A, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), B60A, Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), B60A, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), B60A, Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), B60A, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), B60A, Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), B60A, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B60A, Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), B60A, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (B606, B60A) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (B60A, B606) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (B606, B60A, Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (B60A, B606, Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Store ((B606 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((B606 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((B606 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((B606 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((B606 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (B606 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (B606 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (B606 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (B606 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (B606 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | B606), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | B606), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | B606), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | B606), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | B606), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | B606), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | B606), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | B606), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | B606), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | B606), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | B606), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | B606), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | B606) /* \M613.M050.B606 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((B60A | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((B60A | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((B60A | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((B60A | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (B60A | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (B60A | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (B60A | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (B60A | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (B60A | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | B60A), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | B60A), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | B60A), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((B606 | B60A), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((B60A | B606), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (B606 | B60A) /* \M613.M051.B60A */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (B60A | B606) /* \M613.M051.B606 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((B60A | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((B60A | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((B60A | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((B60A | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (B60A | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (B60A | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (B60A | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (B60A | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (B60A | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | B60A), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | B60A), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | B60A), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((B606 | B60A), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((B60A | B606), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (B606 | B60A) /* \M613.M052.B60A */ M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (B60A | B606) /* \M613.M052.B606 */ M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60E, Buffer (0x01) { 0x0B // . }) /* Conversion of the first operand */ Store ((B606 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((B606 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((B606 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((B606 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((B606 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (B606 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (B606 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (B606 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (B606 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (B606 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << B60E), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << B60E), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << B60E), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << B60E) /* \M613.M053.B60E */ M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Name (B60E, Buffer (0x01) { 0x0B // . }) /* Conversion of the first operand */ Store ((B60A << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((B60A << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((B60A << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((B60A << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((B60A << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (B60A << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (B60A << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (B60A << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (B60A << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (B60A << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << B60E), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << B60E), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << B60E), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((B606 << B60E), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((B60A << B60E), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (B606 << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (B60A << B60E) /* \M613.M054.B60E */ M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Name (B60E, Buffer (0x01) { 0x0B // . }) /* Conversion of the first operand */ Store ((B60A << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((B60A << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((B60A << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((B60A << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((B60A << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (B60A << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (B60A << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (B60A << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (B60A << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (B60A << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << B60E), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << B60E), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << B60E), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((B606 << B60E), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((B60A << B60E), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (B606 << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (B60A << B60E) /* \M613.M055.B60E */ M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60E, Buffer (0x01) { 0x0B // . }) /* Conversion of the first operand */ Store ((B606 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((B606 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((B606 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((B606 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((B606 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (B606 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (B606 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (B606 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (B606 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (B606 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> B60E), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> B60E), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> B60E), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> B60E) /* \M613.M056.B60E */ M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Name (B60E, Buffer (0x01) { 0x0B // . }) /* Conversion of the first operand */ Store ((B60A >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((B60A >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((B60A >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((B60A >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((B60A >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (B60A >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (B60A >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (B60A >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (B60A >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (B60A >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> B60E), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> B60E), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> B60E), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((B606 >> B60E), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((B60A >> B60E), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (B606 >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (B60A >> B60E) /* \M613.M057.B60E */ M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Name (B60E, Buffer (0x01) { 0x0B // . }) /* Conversion of the first operand */ Store ((B60A >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((B60A >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((B60A >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((B60A >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((B60A >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (B60A >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (B60A >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (B60A >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (B60A >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (B60A >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> B60E), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> B60E), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> B60E), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((B606 >> B60E), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((B60A >> B60E), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (B606 >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (B60A >> B60E) /* \M613.M058.B60E */ M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Store ((B606 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((B606 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((B606 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((B606 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((B606 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (B606 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (B606 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (B606 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (B606 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (B606 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - B606), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - B606), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - B606), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - B606), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - B606), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - B606), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - B606), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - B606), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - B606), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - B606), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - B606), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - B606), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - B606) /* \M613.M059.B606 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((B60A - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((B60A - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((B60A - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((B60A - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (B60A - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (B60A - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (B60A - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (B60A - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (B60A - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - B60A), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - B60A), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - B60A), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - B60A), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - B60A), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - B60A), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((B606 - B60A), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((B60A - B606), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (B606 - B60A) /* \M613.M05A.B60A */ M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (B60A - B606) /* \M613.M05A.B606 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((B60A - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((B60A - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((B60A - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((B60A - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (B60A - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (B60A - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (B60A - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (B60A - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (B60A - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - B60A), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - B60A), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - B60A), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - B60A), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - B60A), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - B60A), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((B606 - B60A), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((B60A - B606), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (B606 - B60A) /* \M613.M05B.B60A */ M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (B60A - B606) /* \M613.M05B.B606 */ M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Store ((B606 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((B606 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((B606 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((B606 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((B606 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (B606 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (B606 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (B606 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (B606 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (B606 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ B606), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ B606), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ B606), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ B606), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ B606), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ B606), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ B606), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ B606), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ B606), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ B606), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ B606), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ B606), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ B606) /* \M613.M05C.B606 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((B60A ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((B60A ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((B60A ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((B60A ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (B60A ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (B60A ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (B60A ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (B60A ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (B60A ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ B60A), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ B60A), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ B60A), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ B60A), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ B60A), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ B60A), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((B606 ^ B60A), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((B60A ^ B606), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (B606 ^ B60A) /* \M613.M05D.B60A */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (B60A ^ B606) /* \M613.M05D.B606 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Store ((B60A ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((B60A ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((B60A ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((B60A ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((B60A ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (B60A ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (B60A ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (B60A ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (B60A ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (B60A ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ B60A), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ B60A), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ B60A), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ B60A), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ B60A), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ B60A), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((B606 ^ B60A), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((B60A ^ B606), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (B606 ^ B60A) /* \M613.M05E.B60A */ M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (B60A ^ B606) /* \M613.M05E.B606 */ M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Conversion of the first operand */ Local0 = (B606 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (B606 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B606 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (B606 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B606 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (B606 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B606 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (B606 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B606 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (B606 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (B606 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && B606) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && B606) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && B606) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && B606) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && B606) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && B606) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && B606) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && B606) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && B606) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && B606) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && B606) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && B606) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Local0 = (B60A && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (B60A && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B60A && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (B60A && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B60A && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (B60A && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B60A && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (B60A && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B60A && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (B60A && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (B60A && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && B60A) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && B60A) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && B60A) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && B60A) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && B60A) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && B60A) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && B60A) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && B60A) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && B60A) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && B60A) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && B60A) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && B60A) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (B606 && B60A) M600 (Arg0, 0x18, Local0, Ones) Local0 = (B60A && B606) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Local0 = (B60A && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (B60A && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B60A && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (B60A && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B60A && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (B60A && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B60A && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (B60A && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B60A && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (B60A && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (B60A && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && B60A) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && B60A) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && B60A) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && B60A) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && B60A) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && B60A) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && B60A) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && B60A) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && B60A) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && B60A) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && B60A) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && B60A) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (B606 && B60A) M600 (Arg0, 0x18, Local0, Ones) Local0 = (B60A && B606) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, Serialized) { Name (B600, Buffer (0x01) { 0x00 // . }) /* Conversion of the first operand */ Local0 = (B600 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (B600 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B600 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (B600 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B600 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (B600 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B600 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (B600 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B600 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (B600 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B600 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (B600 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || B600) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || B600) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || B600) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || B600) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || B600) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || B600) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || B600) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || B600) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || B600) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || B600) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || B600) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || B600) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, Serialized) { Name (B600, Buffer (0x01) { 0x00 // . }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Local0 = (B60A || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (B60A || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B60A || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (B60A || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B60A || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (B60A || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B60A || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (B60A || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B60A || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (B60A || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (B60A || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || B60A) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || B60A) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || B60A) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || B60A) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || B60A) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || B60A) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || B60A) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || B60A) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || B60A) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || B60A) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || B60A) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || B60A) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (B600 || B60A) M600 (Arg0, 0x18, Local0, Ones) Local0 = (B60A || B600) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, Serialized) { Name (B600, Buffer (0x01) { 0x00 // . }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Conversion of the first operand */ Local0 = (B60A || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (B60A || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B60A || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (B60A || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B60A || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (B60A || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B60A || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (B60A || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B60A || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (B60A || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (B60A || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || B60A) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || B60A) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || B60A) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || B60A) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || B60A) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || B60A) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || B60A) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || B60A) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || B60A) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || B60A) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || B60A) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || B60A) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (B600 || B60A) M600 (Arg0, 0x18, Local0, Ones) Local0 = (B60A || B600) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, Serialized) { Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* LEqual */ Local0 = (0xFE7CB391D650A284 == B60A) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == B60A) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == B60A) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == B60A) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == B60A) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == B60A) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == B60A) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == B60A) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == B60A) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == B60A) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == B60A) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == B60A) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == B60A) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == B60A) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == B60A) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == B60A) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == B60A) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == B60A) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > B60A) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > B60A) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > B60A) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > B60A) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > B60A) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > B60A) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > B60A) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > B60A) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > B60A) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > B60A) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > B60A) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > B60A) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > B60A) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > B60A) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > B60A) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > B60A) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > B60A) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > B60A) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= B60A) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= B60A) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= B60A) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= B60A) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= B60A) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= B60A) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= B60A) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= B60A) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= B60A) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= B60A) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= B60A) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= B60A) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= B60A) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= B60A) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= B60A) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= B60A) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= B60A) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= B60A) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < B60A) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < B60A) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < B60A) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < B60A) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < B60A) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < B60A) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < B60A) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < B60A) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < B60A) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < B60A) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < B60A) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < B60A) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < B60A) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < B60A) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < B60A) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < B60A) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < B60A) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < B60A) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= B60A) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= B60A) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= B60A) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= B60A) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= B60A) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= B60A) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= B60A) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= B60A) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= B60A) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= B60A) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= B60A) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= B60A) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= B60A) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= B60A) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= B60A) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= B60A) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= B60A) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= B60A) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != B60A) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != B60A) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != B60A) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != B60A) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != B60A) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != B60A) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != B60A) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != B60A) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != B60A) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != B60A) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != B60A) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != B60A) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != B60A) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != B60A) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != B60A) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != B60A) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != B60A) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != B60A) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, Serialized) { Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* LEqual */ Local0 = (0xD650A284 == B60A) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == B60A) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == B60A) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == B60A) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == B60A) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == B60A) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == B60A) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == B60A) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == B60A) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == B60A) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == B60A) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == B60A) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == B60A) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == B60A) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == B60A) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == B60A) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == B60A) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == B60A) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > B60A) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > B60A) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > B60A) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > B60A) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > B60A) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > B60A) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > B60A) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > B60A) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > B60A) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > B60A) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > B60A) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > B60A) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > B60A) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > B60A) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > B60A) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > B60A) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > B60A) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > B60A) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= B60A) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= B60A) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= B60A) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= B60A) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= B60A) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= B60A) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= B60A) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= B60A) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= B60A) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= B60A) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= B60A) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= B60A) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= B60A) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= B60A) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= B60A) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= B60A) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= B60A) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= B60A) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < B60A) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < B60A) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < B60A) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < B60A) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < B60A) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < B60A) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < B60A) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < B60A) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < B60A) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < B60A) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < B60A) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < B60A) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < B60A) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < B60A) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < B60A) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < B60A) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < B60A) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < B60A) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= B60A) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= B60A) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= B60A) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= B60A) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= B60A) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= B60A) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= B60A) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= B60A) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= B60A) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= B60A) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= B60A) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= B60A) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= B60A) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= B60A) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= B60A) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= B60A) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= B60A) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= B60A) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != B60A) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != B60A) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != B60A) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != B60A) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != B60A) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != B60A) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != B60A) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != B60A) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != B60A) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != B60A) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != B60A) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != B60A) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != B60A) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != B60A) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != B60A) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != B60A) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != B60A) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != B60A) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* LEqual */ Local0 = (0x0321 == B606) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == B606) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == B606) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == B606) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == B606) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == B606) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == B606) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == B606) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == B606) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == B606) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == B606) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == B606) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == B606) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == B606) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == B606) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == B606) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == B606) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == B606) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > B606) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > B606) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > B606) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > B606) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > B606) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > B606) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > B606) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > B606) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > B606) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > B606) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > B606) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > B606) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > B606) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > B606) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > B606) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > B606) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > B606) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > B606) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= B606) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= B606) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= B606) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= B606) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= B606) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= B606) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= B606) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= B606) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= B606) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= B606) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= B606) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= B606) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= B606) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= B606) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= B606) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= B606) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= B606) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= B606) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < B606) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < B606) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < B606) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < B606) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < B606) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < B606) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < B606) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < B606) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < B606) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < B606) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < B606) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < B606) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < B606) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < B606) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < B606) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < B606) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < B606) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < B606) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= B606) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= B606) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= B606) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= B606) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= B606) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= B606) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= B606) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= B606) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= B606) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= B606) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= B606) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= B606) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= B606) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= B606) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= B606) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= B606) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= B606) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= B606) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != B606) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != B606) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != B606) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != B606) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != B606) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != B606) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != B606) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != B606) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != B606) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != B606) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != B606) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != B606) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != B606) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != B606) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != B606) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != B606) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != B606) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != B606) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Local0 = Concatenate (0x0321, B606) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, B60A) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, B606) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, B60A) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), B606) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), B60A) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), B606) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), B60A) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), B606) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), B60A) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B606) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B60A) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, B606, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, B60A, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, B606, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, B60A, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), B606, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), B60A, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), B606, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), B60A, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), B606, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), B60A, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B606, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B60A, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Local0 = Concatenate (0x0321, B606) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, B60A) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, B606) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, B60A) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), B606) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), B60A) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), B606) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), B60A) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), B606) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), B60A) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B606) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B60A) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, B606, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, B60A, Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, B606, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, B60A, Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), B606, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), B60A, Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), B606, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), B60A, Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), B606, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), B60A, Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B606, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B60A, Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60E, Buffer (0x01) { 0x0B // . }) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60E) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B606) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, B60E) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, B606) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), B60E) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), B606) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), B60E) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), B606) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), B60E) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), B606) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60E) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B606) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B606, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, B60E, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, B606, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), B60E, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), B606, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), B60E, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), B606, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), B60E, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), B606, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B606, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, Serialized) { Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60A) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, B60A) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), B60A) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), B60A) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), B60A) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60A) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60A, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, B60A, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), B60A, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), B60A, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), B60A, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60A, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, Serialized) { Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60A) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, B60A) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), B60A) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), B60A) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), B60A) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60A) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60A, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, B60A, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), B60A, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), B60A, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), B60A, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60A, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Method (M067, 1, Serialized) { Name (B60E, Buffer (0x01) { 0x0B // . }) Store (AUS6 [B60E], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [B60E], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [B60E], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [B60E], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [B60E], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [B60E], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [B60E], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [B60E], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [B60E], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [B60E], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [B60E], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [B60E], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [B60E], Local3) CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [B60E], Local3) CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [B60E], Local3) CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [B60E], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [B60E], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [B60E], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [B60E] /* \M613.M067.B60E */ CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [B60E] /* \M613.M067.B60E */ CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [B60E] /* \M613.M067.B60E */ CH04 (Arg0, 0x00, 0x55, Z088, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [B60E] /* \M613.M067.B60E */ M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, B606) If (F64) { Fatal (0xFF, 0xFFFFFFFF, B60A) } Else { Fatal (0xFF, 0xFFFFFFFF, B60A) } CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) } /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, Serialized) { Name (B60E, Buffer (0x01) { 0x0B // . }) /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", B60E, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, B60E, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, B60E, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), B60E, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), B60E, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), B60E, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), B60E, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), B60E, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), B60E, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", B60E, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, B60E, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, B60E, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), B60E, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), B60E, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), B60E, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), B60E, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), B60E, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), B60E, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, B60E) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60E) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, B60E) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, B60E) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, B60E) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, B60E) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, B60E) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, B60E) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, B60E) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, B60E) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60E) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60E) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, B60E, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60E, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, B60E, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, B60E, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, B60E, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, B60E, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, B60E, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, B60E, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, B60E, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, B60E, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60E, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60E, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, Serialized) { Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Name (B60E, Buffer (0x01) { 0x0B // . }) /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, B60A) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60A) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, B60A) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, B60A) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, B60A) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, B60A) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, B60A) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, B60A) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, B60A) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, B60A) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60A) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60A) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, B60A, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60A, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, B60A, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, B60A, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, B60A, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, B60A, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, B60A, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, B60A, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, B60A, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, B60A, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60A, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60A, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", B60E, B60A) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, B60A) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, B60E, B60A) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, B60E, B60A) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), B60E, B60A) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), B60E, B60A) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), B60E, B60A) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), B60E, B60A) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), B60E, B60A) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), B60E, B60A) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, B60A) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, B60A) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", B60E, B60A, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, B60A, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, B60E, B60A, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, B60E, B60A, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), B60E, B60A, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), B60E, B60A, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), B60E, B60A, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), B60E, B60A, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), B60E, B60A, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), B60E, B60A, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, B60A, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, B60A, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, Serialized) { Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Name (B60E, Buffer (0x01) { 0x0B // . }) /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, B60A) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60A) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, B60A) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, B60A) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, B60A) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, B60A) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, B60A) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, B60A) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, B60A) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, B60A) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60A) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60A) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, B60A, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60A, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, B60A, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, B60A, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, B60A, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, B60A, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, B60A, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, B60A, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, B60A, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, B60A, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60A, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60A, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", B60E, B60A) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, B60A) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, B60E, B60A) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, B60E, B60A) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), B60E, B60A) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), B60E, B60A) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), B60E, B60A) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), B60E, B60A) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), B60E, B60A) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), B60E, B60A) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, B60A) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, B60A) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", B60E, B60A, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, B60A, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, B60E, B60A, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, B60E, B60A, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), B60E, B60A, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), B60E, B60A, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), B60E, B60A, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), B60E, B60A, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), B60E, B60A, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), B60E, B60A, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, B60A, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, B60A, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Method (M06A, 1, Serialized) { Name (B60E, Buffer (0x01) { 0x0B // . }) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64t, 1) */ /* Method(m32t, 1) */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B613, Buffer (0x01) { 0x3F // ? }) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (B606) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z088, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (B613) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z088, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, b606) */ CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z088, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Event (EVT0) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, B606) CH03 (Arg0, Z088, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z088, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (B600, Buffer (0x01) { 0x00 // . }) Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (B600) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (B606) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (B60A) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (B60A) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (B600) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (B606) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (B60A) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (B60A) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (B600) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64u, 1) */ /* Method(m32u, 1) */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M06F, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60C, Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) /* LEqual */ Local0 = ("21 03 00" == B606) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("21 03 01" == B606) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS9 == B606) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUSA == B606) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) == B606) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) == B606) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) == B606) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) == B606) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) == B606) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x0A) == B606) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) == B606) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) == B606) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("21 03 00" > B606) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("21 03 01" > B606) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("21 03 0 " > B606) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("21 03 00q" > B606) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS9 > B606) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUSA > B606) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) > B606) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) > B606) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) > B606) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) > B606) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) > B606) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x0A) > B606) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) > B606) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) > B606) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("21 03 00" >= B606) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("21 03 01" >= B606) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("21 03 0 " >= B606) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("21 03 00q" >= B606) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS9 >= B606) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUSA >= B606) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) >= B606) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) >= B606) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) >= B606) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) >= B606) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) >= B606) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x0A) >= B606) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) >= B606) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) >= B606) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("21 03 00" < B606) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("21 03 01" < B606) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("21 03 0 " < B606) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("21 03 00q" < B606) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS9 < B606) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUSA < B606) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) < B606) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) < B606) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) < B606) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) < B606) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) < B606) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x0A) < B606) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) < B606) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) < B606) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("21 03 00" <= B606) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("21 03 01" <= B606) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("21 03 0 " <= B606) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("21 03 00q" <= B606) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS9 <= B606) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUSA <= B606) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) <= B606) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) <= B606) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) <= B606) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) <= B606) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) <= B606) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x0A) <= B606) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) <= B606) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) <= B606) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("21 03 00" != B606) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("21 03 01" != B606) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("21 03 0 " != B606) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("21 03 00q" != B606) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS9 != B606) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUSA != B606) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) != B606) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) != B606) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) != B606) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) != B606) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) != B606) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x0A) != B606) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) != B606) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) != B606) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" == B60C) M600 (Arg0, 0x52, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" == B60C) M600 (Arg0, 0x53, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" > B60C) M600 (Arg0, 0x54, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" > B60C) M600 (Arg0, 0x55, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" >= B60C) M600 (Arg0, 0x56, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" >= B60C) M600 (Arg0, 0x57, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" < B60C) M600 (Arg0, 0x58, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" < B60C) M600 (Arg0, 0x59, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" <= B60C) M600 (Arg0, 0x5A, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" <= B60C) M600 (Arg0, 0x5B, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" != B60C) M600 (Arg0, 0x5C, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" != B60C) M600 (Arg0, 0x5D, Local0, Ones) } /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M070, 1, Serialized) { Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B60C, Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) Local0 = Concatenate ("", B606) M600 (Arg0, 0x00, Local0, BS25) Local0 = Concatenate ("1234q", B606) M600 (Arg0, 0x01, Local0, BS26) Local0 = Concatenate (AUS0, B606) M600 (Arg0, 0x02, Local0, BS25) Local0 = Concatenate (AUS1, B606) M600 (Arg0, 0x03, Local0, BS26) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), B606) M600 (Arg0, 0x04, Local0, BS25) Local0 = Concatenate (DerefOf (RefOf (AUS1)), B606) M600 (Arg0, 0x05, Local0, BS26) } Local0 = Concatenate (DerefOf (PAUS [0x00]), B606) M600 (Arg0, 0x06, Local0, BS25) Local0 = Concatenate (DerefOf (PAUS [0x01]), B606) M600 (Arg0, 0x07, Local0, BS26) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), B606) M600 (Arg0, 0x08, Local0, BS25) Local0 = Concatenate (M601 (0x02, 0x01), B606) M600 (Arg0, 0x09, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), B606) M600 (Arg0, 0x0A, Local0, BS25) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), B606) M600 (Arg0, 0x0B, Local0, BS26) } Concatenate ("", B606, Local0) M600 (Arg0, 0x0C, Local0, BS25) Concatenate ("1234q", B606, Local0) M600 (Arg0, 0x0D, Local0, BS26) Concatenate (AUS0, B606, Local0) M600 (Arg0, 0x0E, Local0, BS25) Concatenate (AUS1, B606, Local0) M600 (Arg0, 0x0F, Local0, BS26) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), B606, Local0) M600 (Arg0, 0x10, Local0, BS25) Concatenate (DerefOf (RefOf (AUS1)), B606, Local0) M600 (Arg0, 0x11, Local0, BS26) } Concatenate (DerefOf (PAUS [0x00]), B606, Local0) M600 (Arg0, 0x12, Local0, BS25) Concatenate (DerefOf (PAUS [0x01]), B606, Local0) M600 (Arg0, 0x13, Local0, BS26) /* Method returns String */ Concatenate (M601 (0x02, 0x00), B606, Local0) M600 (Arg0, 0x14, Local0, BS25) Concatenate (M601 (0x02, 0x01), B606, Local0) M600 (Arg0, 0x15, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), B606, Local0) M600 (Arg0, 0x16, Local0, BS25) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), B606, Local0) M600 (Arg0, 0x17, Local0, BS26) } /* Boundary Cases */ Local0 = Concatenate ("", B60C) M600 (Arg0, 0x18, Local0, BS27) } /* Method(m071, 1) */ /* Method(m072, 1) */ /* * Begin of the test body */ /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ If (F64) { Concatenate (__METHOD__, "-m640", Local0) SRMT (Local0) M640 (Local0) } Else { Concatenate (__METHOD__, "-m320", Local0) SRMT (Local0) M320 (Local0) } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m641", Local0) SRMT (Local0) M641 (Local0) } Else { Concatenate (__METHOD__, "-m321", Local0) SRMT (Local0) M321 (Local0) } /* Integer to String conversion of the Integer value */ /* of Expression of Case statement when Expression in */ /* Switch is either static String data or explicitly */ /* converted to String by ToDecimalString, ToHexString */ /* or ToString */ /* */ /* Note: Expression of Case can be only static data */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* Integer to Buffer conversion of the Integer value of */ /* Expression of Case statement when Expression in Switch */ /* is either static Buffer data or explicitly converted to */ /* Buffer by ToBuffer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64b", Local0) SRMT (Local0) M64B (Local0) } Else { Concatenate (__METHOD__, "-m32b", Local0) SRMT (Local0) M32B (Local0) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m000", Local0) SRMT (Local0) M000 (Local0) /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64c", Local0) SRMT (Local0) M64C (Local0) } Else { Concatenate (__METHOD__, "-m32c", Local0) SRMT (Local0) M32C (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64D (Concatenate (__METHOD__, "-m64d")) } Else { M32D (Concatenate (__METHOD__, "-m32d")) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64E (Concatenate (__METHOD__, "-m64e")) } Else { M32E (Concatenate (__METHOD__, "-m32e")) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m02b", Local0) SRMT (Local0) M02B (Local0) If (F64) { Concatenate (__METHOD__, "-m64f", Local0) SRMT (Local0) M64F (Local0) } Else { Concatenate (__METHOD__, "-m32f", Local0) SRMT (Local0) M32F (Local0) } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64g", Local0) SRMT (Local0) M64G (Local0) } Else { Concatenate (__METHOD__, "-m32g", Local0) SRMT (Local0) M32G (Local0) } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m02c", Local0) SRMT (Local0) M02C (Local0) If (F64) { Concatenate (__METHOD__, "-m64h", Local0) SRMT (Local0) M64H (Local0) } Else { Concatenate (__METHOD__, "-m32h", Local0) SRMT (Local0) M32H (Local0) } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m02d", Local0) SRMT (Local0) M02D (Local0) /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m02e", Local0) SRMT (Local0) M02E (Local0) /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m02f", Local0) SRMT (Local0) M02F (Local0) If (F64) { Concatenate (__METHOD__, "-m64i", Local0) SRMT (Local0) M64I (Local0) } Else { Concatenate (__METHOD__, "-m32i", Local0) SRMT (Local0) M32I (Local0) } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m030", Local0) SRMT (Local0) M030 (Local0) /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m031", Local0) SRMT (Local0) M031 (Local0) /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m032", Local0) SRMT(Local0) m032(Local0) */ /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m033", Local0) SRMT (Local0) M033 (Local0) /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m034", Local0) SRMT (Local0) If (Y111) { M034 (Local0) } Else { BLCK () } /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m035", Local0) SRMT (Local0) M035 (Local0) /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Concatenate (__METHOD__, "-m036", Local0) SRMT (Local0) M036 (Local0) /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character) */ Concatenate (__METHOD__, "-m037", Local0) SRMT (Local0) M037 (Local0) /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m06c", Local0) SRMT(Local0) m06c(Local0) */ /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) If (Y111) { M06E (Local0) } Else { BLCK () } /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Concatenate (__METHOD__, "-m06f", Local0) SRMT (Local0) M06F (Local0) /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Concatenate (__METHOD__, "-m070", Local0) SRMT (Local0) M070 (Local0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedloc/MAIN.asl0000700000175000017500000000446014773714154032244 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("onamedloc", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/onamedloc/onamedloc1.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/onamedloc/onamedloc2.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/onamedloc/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedloc/Makefile0000700000175000017500000000023414773714154032452 0ustar ivanhuivanhu# onamedloc AMLMOD= onamedloc COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oarg/0000700000175000017500000000000014773714153027776 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oarg/RUN.asl0000700000175000017500000000361114773714153031147 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Source Operand, Method ArgX Objects", TCLC, 0x02, W010)) { OPR5 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oarg/oarg.asl0000700000175000017500000322542614773714153031450 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to ArgX Object */ Name (Z121, 0x79) Method (M617, 0, Serialized) { /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M640, 2, NotSerialized) { /* LEqual */ Local0 = ("FE7CB391D650A284" == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("fE7CB391D650A284" == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS4 == Arg1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS5 == Arg1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) == Arg1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) == Arg1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) == Arg1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) == Arg1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x05) == Arg1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) == Arg1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("FE7CB391D650A284" > Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("fE7CB391D650A284" > Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("FE7CB391D650A28 " > Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("FE7CB391D650A284q" > Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS4 > Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS5 > Arg1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) > Arg1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) > Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) > Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x05) > Arg1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("FE7CB391D650A284" >= Arg1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("fE7CB391D650A284" >= Arg1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("FE7CB391D650A28 " >= Arg1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("FE7CB391D650A284q" >= Arg1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS4 >= Arg1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS5 >= Arg1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) >= Arg1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) >= Arg1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) >= Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) >= Arg1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x05) >= Arg1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) >= Arg1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) >= Arg1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("FE7CB391D650A284" < Arg1) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("fE7CB391D650A284" < Arg1) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("FE7CB391D650A28 " < Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("FE7CB391D650A284q" < Arg1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS4 < Arg1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS5 < Arg1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) < Arg1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) < Arg1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) < Arg1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) < Arg1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) < Arg1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x05) < Arg1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) < Arg1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) < Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("FE7CB391D650A284" <= Arg1) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("fE7CB391D650A284" <= Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("FE7CB391D650A28 " <= Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("FE7CB391D650A284q" <= Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS4 <= Arg1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS5 <= Arg1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) <= Arg1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) <= Arg1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) <= Arg1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) <= Arg1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) <= Arg1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x05) <= Arg1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) <= Arg1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) <= Arg1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("FE7CB391D650A284" != Arg1) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("fE7CB391D650A284" != Arg1) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("FE7CB391D650A28 " != Arg1) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("FE7CB391D650A284q" != Arg1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS4 != Arg1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS5 != Arg1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) != Arg1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) != Arg1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) != Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) != Arg1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) != Arg1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x05) != Arg1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) != Arg1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) != Arg1) M600 (Arg0, 0x51, Local0, Ones) } } Method (M320, 2, NotSerialized) { /* LEqual */ Local0 = ("C179B3FE" == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("c179B3FE" == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS3 == Arg1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS2 == Arg1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) == Arg1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) == Arg1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) == Arg1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) == Arg1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x02) == Arg1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) == Arg1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("C179B3FE" > Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("c179B3FE" > Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("C179B3F " > Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("C179B3FEq" > Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS3 > Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS2 > Arg1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) > Arg1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) > Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) > Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x02) > Arg1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("C179B3FE" >= Arg1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("c179B3FE" >= Arg1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("C179B3F " >= Arg1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("C179B3FEq" >= Arg1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS3 >= Arg1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS2 >= Arg1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) >= Arg1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) >= Arg1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) >= Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) >= Arg1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x02) >= Arg1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) >= Arg1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) >= Arg1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("C179B3FE" < Arg1) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("c179B3FE" < Arg1) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("C179B3F " < Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("C179B3FEq" < Arg1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS3 < Arg1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS2 < Arg1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) < Arg1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) < Arg1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) < Arg1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) < Arg1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) < Arg1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x02) < Arg1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) < Arg1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) < Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("C179B3FE" <= Arg1) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("c179B3FE" <= Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("C179B3F " <= Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("C179B3FEq" <= Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS3 <= Arg1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS2 <= Arg1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) <= Arg1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) <= Arg1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) <= Arg1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) <= Arg1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) <= Arg1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x02) <= Arg1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) <= Arg1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) <= Arg1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("C179B3FE" != Arg1) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("c179B3FE" != Arg1) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("C179B3F " != Arg1) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("C179B3FEq" != Arg1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS3 != Arg1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS2 != Arg1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) != Arg1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) != Arg1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) != Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) != Arg1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) != Arg1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x02) != Arg1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) != Arg1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) != Arg1) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M641, 2, NotSerialized) { Local0 = Concatenate ("", Arg1) M600 (Arg0, 0x00, Local0, BS10) Local0 = Concatenate ("1234q", Arg1) M600 (Arg0, 0x01, Local0, BS11) Local0 = Concatenate (AUS0, Arg1) M600 (Arg0, 0x02, Local0, BS10) Local0 = Concatenate (AUS1, Arg1) M600 (Arg0, 0x03, Local0, BS11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), Arg1) M600 (Arg0, 0x04, Local0, BS10) Local0 = Concatenate (DerefOf (RefOf (AUS1)), Arg1) M600 (Arg0, 0x05, Local0, BS11) } Local0 = Concatenate (DerefOf (PAUS [0x00]), Arg1) M600 (Arg0, 0x06, Local0, BS10) Local0 = Concatenate (DerefOf (PAUS [0x01]), Arg1) M600 (Arg0, 0x07, Local0, BS11) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), Arg1) M600 (Arg0, 0x08, Local0, BS10) Local0 = Concatenate (M601 (0x02, 0x01), Arg1) M600 (Arg0, 0x09, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Arg1) M600 (Arg0, 0x0A, Local0, BS10) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Arg1) M600 (Arg0, 0x0B, Local0, BS11) } Concatenate ("", Arg1, Local0) M600 (Arg0, 0x0C, Local0, BS10) Concatenate ("1234q", Arg1, Local0) M600 (Arg0, 0x0D, Local0, BS11) Concatenate (AUS0, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BS10) Concatenate (AUS1, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BS11) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), Arg1, Local0) M600 (Arg0, 0x10, Local0, BS10) Concatenate (DerefOf (RefOf (AUS1)), Arg1, Local0) M600 (Arg0, 0x11, Local0, BS11) } Concatenate (DerefOf (PAUS [0x00]), Arg1, Local0) M600 (Arg0, 0x12, Local0, BS10) Concatenate (DerefOf (PAUS [0x01]), Arg1, Local0) M600 (Arg0, 0x13, Local0, BS11) /* Method returns String */ Concatenate (M601 (0x02, 0x00), Arg1, Local0) M600 (Arg0, 0x14, Local0, BS10) Concatenate (M601 (0x02, 0x01), Arg1, Local0) M600 (Arg0, 0x15, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Arg1, Local0) M600 (Arg0, 0x16, Local0, BS10) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Arg1, Local0) M600 (Arg0, 0x17, Local0, BS11) } } Method (M321, 3, NotSerialized) { Local0 = Concatenate ("", Arg2) M600 (Arg0, 0x00, Local0, BS12) Local0 = Concatenate ("1234q", Arg2) M600 (Arg0, 0x01, Local0, BS13) Local0 = Concatenate (AUS0, Arg2) M600 (Arg0, 0x02, Local0, BS12) Local0 = Concatenate (AUS1, Arg2) M600 (Arg0, 0x03, Local0, BS13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), Arg2) M600 (Arg0, 0x04, Local0, BS12) Local0 = Concatenate (DerefOf (RefOf (AUS1)), Arg2) M600 (Arg0, 0x05, Local0, BS13) } Local0 = Concatenate (DerefOf (PAUS [0x00]), Arg2) M600 (Arg0, 0x06, Local0, BS12) Local0 = Concatenate (DerefOf (PAUS [0x01]), Arg2) M600 (Arg0, 0x07, Local0, BS13) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), Arg2) M600 (Arg0, 0x08, Local0, BS12) Local0 = Concatenate (M601 (0x02, 0x01), Arg2) M600 (Arg0, 0x09, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Arg2) M600 (Arg0, 0x0A, Local0, BS12) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Arg2) M600 (Arg0, 0x0B, Local0, BS13) } Local0 = Concatenate ("", Arg1) M600 (Arg0, 0x0C, Local0, BS14) Local0 = Concatenate ("1234q", Arg1) M600 (Arg0, 0x0D, Local0, BS15) Concatenate ("", Arg2, Local0) M600 (Arg0, 0x0E, Local0, BS12) Concatenate ("1234q", Arg2, Local0) M600 (Arg0, 0x0F, Local0, BS13) Concatenate (AUS0, Arg2, Local0) M600 (Arg0, 0x10, Local0, BS12) Concatenate (AUS1, Arg2, Local0) M600 (Arg0, 0x11, Local0, BS13) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), Arg2, Local0) M600 (Arg0, 0x12, Local0, BS12) Concatenate (DerefOf (RefOf (AUS1)), Arg2, Local0) M600 (Arg0, 0x13, Local0, BS13) } Concatenate (DerefOf (PAUS [0x00]), Arg2, Local0) M600 (Arg0, 0x14, Local0, BS12) Concatenate (DerefOf (PAUS [0x01]), Arg2, Local0) M600 (Arg0, 0x15, Local0, BS13) /* Method returns String */ Concatenate (M601 (0x02, 0x00), Arg2, Local0) M600 (Arg0, 0x16, Local0, BS12) Concatenate (M601 (0x02, 0x01), Arg2, Local0) M600 (Arg0, 0x17, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Arg2, Local0) M600 (Arg0, 0x18, Local0, BS12) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Arg2, Local0) M600 (Arg0, 0x19, Local0, BS13) } Concatenate ("", Arg1, Local0) M600 (Arg0, 0x1A, Local0, BS14) Concatenate ("1234q", Arg1, Local0) M600 (Arg0, 0x1B, Local0, BS15) } /* Method(m642, 1) */ /* Method(m322, 1) */ /* Method(m643, 1) */ /* Method(m323, 1) */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 2, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == Arg1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == Arg1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == Arg1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == Arg1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == Arg1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == Arg1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == Arg1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == Arg1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > Arg1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > Arg1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > Arg1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= Arg1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= Arg1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= Arg1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= Arg1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= Arg1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= Arg1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= Arg1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= Arg1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= Arg1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= Arg1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= Arg1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= Arg1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < Arg1) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < Arg1) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < Arg1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < Arg1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < Arg1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < Arg1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < Arg1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < Arg1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < Arg1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < Arg1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < Arg1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < Arg1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= Arg1) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= Arg1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= Arg1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= Arg1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= Arg1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= Arg1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= Arg1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= Arg1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= Arg1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= Arg1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= Arg1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != Arg1) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != Arg1) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != Arg1) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != Arg1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != Arg1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != Arg1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != Arg1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != Arg1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != Arg1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != Arg1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != Arg1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != Arg1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != Arg1) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 2, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == Arg1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == Arg1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == Arg1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == Arg1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == Arg1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == Arg1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == Arg1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == Arg1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > Arg1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > Arg1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > Arg1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= Arg1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= Arg1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= Arg1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= Arg1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= Arg1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= Arg1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= Arg1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= Arg1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= Arg1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= Arg1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= Arg1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= Arg1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < Arg1) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < Arg1) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < Arg1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < Arg1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < Arg1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < Arg1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < Arg1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < Arg1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < Arg1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < Arg1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < Arg1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < Arg1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= Arg1) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= Arg1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= Arg1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= Arg1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= Arg1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= Arg1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= Arg1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= Arg1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= Arg1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= Arg1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= Arg1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != Arg1) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != Arg1) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != Arg1) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != Arg1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != Arg1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != Arg1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != Arg1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != Arg1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != Arg1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != Arg1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != Arg1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != Arg1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != Arg1) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ Method (M645, 2, NotSerialized) { Local0 = Concatenate (Arg1, Arg1) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, Arg1) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (Arg1, 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (Arg1, Arg1, Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, Arg1, Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (Arg1, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 2, NotSerialized) { Local0 = Concatenate (Arg1, Arg1) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, Arg1) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (Arg1, 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (Arg1, Arg1, Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, Arg1, Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (Arg1, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 2, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Arg1) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, Arg1) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, Arg1) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, Arg1) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), Arg1) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), Arg1) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), Arg1) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), Arg1) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), Arg1) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), Arg1) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Arg1) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Arg1) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, Arg1, Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), Arg1, Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), Arg1, Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), Arg1, Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), Arg1, Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), Arg1, Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), Arg1, Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Arg1, Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Arg1, Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 3, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Arg2) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, Arg2) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, Arg2) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, Arg2) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), Arg2) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), Arg2) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), Arg2) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), Arg2) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), Arg2) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), Arg2) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Arg2) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Arg2) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Arg1) M600 (Arg0, 0x0C, Local0, BB14) Local0 = Concatenate (Buffer (0x02) { "Z" }, Arg1) M600 (Arg0, 0x0D, Local0, BB15) Concatenate (Buffer (0x01) { 0x5A // Z }, Arg2, Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, Arg2, Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, Arg2, Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, Arg2, Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), Arg2, Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), Arg2, Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), Arg2, Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), Arg2, Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), Arg2, Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), Arg2, Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Arg2, Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Arg2, Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, Arg1, Local0) M600 (Arg0, 0x1A, Local0, BB14) Concatenate (Buffer (0x02) { "Z" }, Arg1, Local0) M600 (Arg0, 0x1B, Local0, BB15) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ Method (M647, 3, NotSerialized) { Local0 = ToString (Arg1, Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (Arg1, 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (Arg2, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (Arg1, AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (Arg1, AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (Arg2, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (Arg1, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (Arg1, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (Arg2, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (Arg1, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (Arg1, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (Arg2, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (Arg1, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (Arg1, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (Arg2, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (Arg1, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (Arg1, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (Arg2, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (Arg1, Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (Arg1, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (Arg2, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (Arg1, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (Arg1, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (Arg2, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (Arg1, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (Arg1, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (Arg2, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (Arg1, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (Arg1, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (Arg2, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (Arg1, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (Arg1, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (Arg2, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (Arg1, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (Arg1, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (Arg2, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 3, NotSerialized) { Local0 = ToString (Arg1, Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (Arg1, 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (Arg2, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (Arg1, AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (Arg1, AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (Arg2, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (Arg1, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (Arg1, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (Arg2, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (Arg1, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (Arg1, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (Arg2, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (Arg1, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (Arg1, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (Arg2, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (Arg1, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (Arg1, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (Arg2, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (Arg1, Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (Arg1, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (Arg2, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (Arg1, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (Arg1, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (Arg2, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (Arg1, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (Arg1, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (Arg2, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (Arg1, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (Arg1, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (Arg2, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (Arg1, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (Arg1, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (Arg2, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (Arg1, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (Arg1, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (Arg2, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ Method (M648, 3, NotSerialized) { Local0 = Mid (Arg1, 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (Arg2, 0x01, 0x08) M600 (Arg0, 0x01, Local0, BB30) Local0 = Mid (Arg1, AUI5, AUIB) M600 (Arg0, 0x02, Local0, BB1D) Local0 = Mid (Arg2, AUI6, AUIA) M600 (Arg0, 0x03, Local0, BB30) If (Y078) { Local0 = Mid (Arg1, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x04, Local0, BB1D) Local0 = Mid (Arg2, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA))) M600 (Arg0, 0x05, Local0, BB30) } Local0 = Mid (Arg1, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B])) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (Arg2, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x0A])) M600 (Arg0, 0x07, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (Arg1, M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x08, Local0, BB1D) Local0 = Mid (Arg2, M601 (0x01, 0x06), M601 (0x01, 0x0A)) M600 (Arg0, 0x09, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (Arg1, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)) ) M600 (Arg0, 0x0A, Local0, BB1D) Local0 = Mid (Arg2, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)) ) M600 (Arg0, 0x0B, Local0, BB30) } Mid (Arg1, 0x00, 0x09, Local0) M600 (Arg0, 0x0C, Local0, BB1D) Mid (Arg2, 0x01, 0x08, Local0) M600 (Arg0, 0x0D, Local0, BB30) Mid (Arg1, AUI5, AUIB, Local0) M600 (Arg0, 0x0E, Local0, BB1D) Mid (Arg2, AUI6, AUIA, Local0) M600 (Arg0, 0x0F, Local0, BB30) If (Y078) { Mid (Arg1, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x10, Local0, BB1D) Mid (Arg2, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x11, Local0, BB30) } Mid (Arg1, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (Arg2, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB30) /* Method returns Index and Length parameters */ Mid (Arg1, M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x14, Local0, BB1D) Mid (Arg2, M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x15, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (Arg1, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x16, Local0, BB1D) Mid (Arg2, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x17, Local0, BB30) } } Method (M328, 3, NotSerialized) { Local0 = Mid (Arg1, 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (Arg2, 0x01, 0x04) M600 (Arg0, 0x01, Local0, BB31) Local0 = Mid (Arg1, AUI5, AUI9) M600 (Arg0, 0x02, Local0, BB1C) Local0 = Mid (Arg2, AUI6, AUI8) M600 (Arg0, 0x03, Local0, BB31) If (Y078) { Local0 = Mid (Arg1, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x04, Local0, BB1C) Local0 = Mid (Arg2, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8))) M600 (Arg0, 0x05, Local0, BB31) } Local0 = Mid (Arg1, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09])) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (Arg2, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x08])) M600 (Arg0, 0x07, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (Arg1, M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x08, Local0, BB1C) Local0 = Mid (Arg2, M601 (0x01, 0x06), M601 (0x01, 0x08)) M600 (Arg0, 0x09, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (Arg1, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)) ) M600 (Arg0, 0x0A, Local0, BB1C) Local0 = Mid (Arg2, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)) ) M600 (Arg0, 0x0B, Local0, BB31) } Mid (Arg1, 0x00, 0x05, Local0) M600 (Arg0, 0x0C, Local0, BB1C) Mid (Arg2, 0x01, 0x04, Local0) M600 (Arg0, 0x0D, Local0, BB31) Mid (Arg1, AUI5, AUI9, Local0) M600 (Arg0, 0x0E, Local0, BB1C) Mid (Arg2, AUI6, AUI8, Local0) M600 (Arg0, 0x0F, Local0, BB31) If (Y078) { Mid (Arg1, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x10, Local0, BB1C) Mid (Arg2, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x11, Local0, BB31) } Mid (Arg1, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (Arg2, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x08]), Local0) M600 (Arg0, 0x13, Local0, BB31) /* Method returns Index and Length parameters */ Mid (Arg1, M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x14, Local0, BB1C) Mid (Arg2, M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x15, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (Arg1, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x16, Local0, BB1C) Mid (Arg2, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x17, Local0, BB31) } } /* Method(m649, 1) */ /* Method(m329, 1) */ /* Method(m64a, 1) */ /* Method(m32a, 1) */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64B, 3, NotSerialized) { /* Decrement */ If (Y501) { Local0 = Arg1-- M600 (Arg0, 0x00, Local0, BI12) Local0 = Arg2-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = Arg1++ M600 (Arg0, 0x02, Local0, BI13) Local0 = Arg2++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (Arg1) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (Arg2) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (Arg1) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (Arg2) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~Arg1, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~Arg2, Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32B, 3, NotSerialized) { /* Decrement */ If (Y501) { Local0 = Arg1-- M600 (Arg0, 0x00, Local0, BI12) Local0 = Arg2-- M600 (Arg0, 0x01, Local0, BI14) } /* Increment */ If (Y501) { Local0 = Arg1++ M600 (Arg0, 0x02, Local0, BI13) Local0 = Arg2++ M600 (Arg0, 0x03, Local0, BI15) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (Arg1) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (Arg2) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (Arg1) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (Arg2) M600 (Arg0, 0x07, Local0, 0x02) /* Not */ Store (~Arg1, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~Arg2, Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Method (M000, 5, NotSerialized) { Local0 = !Arg4 M600 (Arg0, 0x00, Local0, Ones) Local0 = !Arg1 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !Arg2 M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !Arg3 M600 (Arg0, 0x03, Local0, Zero) } } /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64C, 5, NotSerialized) { /* FromBCD */ Local0 = FromBCD (Arg1) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Arg3) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (Arg1, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Arg3, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (Arg1) M600 (Arg0, 0x04, Local0, 0x0801) /* Error of iASL on constant folding Store(ToBCD(arg4), Local0) m600(arg0, 5, Local0, 0x3789012345678901) */ ToBCD (Arg1, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Arg4, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32C, 5, NotSerialized) { /* FromBCD */ Local0 = FromBCD (Arg1) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Arg3) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (Arg1, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Arg3, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (Arg1) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (Arg4) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (Arg1, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Arg4, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M001, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((Arg1 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((Arg1 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((Arg1 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((Arg1 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (Arg1 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (Arg1 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (Arg1 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (Arg1 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (Arg1 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + Arg1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + Arg1) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + Arg1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + Arg1) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Arg1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + Arg1) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + Arg1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + Arg1) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Arg1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + Arg1) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Arg1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Arg1) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M002, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((Arg2 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((Arg2 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((Arg2 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((Arg2 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (Arg2 + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (Arg2 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (Arg2 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (Arg2 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (Arg2 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + Arg2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + Arg2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + Arg2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + Arg2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Arg2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + Arg2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + Arg2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + Arg2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Arg2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + Arg2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Arg2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Arg2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((Arg1 + Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((Arg2 + Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (Arg1 + Arg2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (Arg2 + Arg1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M003, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Arg2 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FF) Store ((Arg2 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Arg2 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FF) If (Y078) { Store ((Arg2 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Arg2 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FF) } Store ((Arg2 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Arg2 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((Arg2 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Arg2 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Arg2 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FF) } Local0 = (Arg2 + 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Arg2 + 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FF) Local0 = (Arg2 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Arg2 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FF) If (Y078) { Local0 = (Arg2 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Arg2 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FF) } Local0 = (Arg2 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Arg2 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (Arg2 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Arg2 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Arg2 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FF) } /* Conversion of the second operand */ Store ((0x00 + Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0x01 + Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FF) Store ((AUI5 + Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUI6 + Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUI6)) + Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FF) } Store ((DerefOf (PAUI [0x05]) + Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x06]) + Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x06) + Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FF) } Local0 = (0x00 + Arg2) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0x01 + Arg2) M600 (Arg0, 0x25, Local0, 0xC179B3FF) Local0 = (AUI5 + Arg2) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUI6 + Arg2) M600 (Arg0, 0x27, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Arg2) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUI6)) + Arg2) M600 (Arg0, 0x29, Local0, 0xC179B3FF) } Local0 = (DerefOf (PAUI [0x05]) + Arg2) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x06]) + Arg2) M600 (Arg0, 0x2B, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Arg2) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x06) + Arg2) M600 (Arg0, 0x2D, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Arg2) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Arg2) M600 (Arg0, 0x2F, Local0, 0xC179B3FF) } /* Conversion of the both operands */ Store ((Arg1 + Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xC179B71F) Store ((Arg2 + Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xC179B71F) Local0 = (Arg1 + Arg2) M600 (Arg0, 0x32, Local0, 0xC179B71F) Local0 = (Arg2 + Arg1) M600 (Arg0, 0x33, Local0, 0xC179B71F) } /* And, common 32-bit/64-bit test */ Method (M004, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg1 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Arg1 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg1 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Arg1 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg1 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Arg1 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg1 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Arg1 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg1 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg1 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Arg1 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg1 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Arg1 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg1 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Arg1 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg1 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Arg1 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg1 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Arg1 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg1 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg1 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & Arg1) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Arg1) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & Arg1) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Arg1) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Arg1) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Arg1) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & Arg1) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Arg1) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Arg1) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Arg1) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Arg1) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Arg1) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M005, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg2 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Arg2 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg2 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Arg2 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg2 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Arg2 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg2 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Arg2 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg2 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg2 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Arg2 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg2 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg2 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Arg2 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg2 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Arg2 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg2 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Arg2 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg2 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg2 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Arg2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Arg2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Arg2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Arg2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Arg2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Arg2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Arg1 & Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((Arg2 & Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (Arg1 & Arg2) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (Arg2 & Arg1) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M006, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg2 & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((Arg2 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg2 & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((Arg2 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg2 & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((Arg2 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg2 & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((Arg2 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg2 & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg2 & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (Arg2 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg2 & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (Arg2 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg2 & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (Arg2 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg2 & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (Arg2 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg2 & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (Arg2 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg2 & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg2 & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 & Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 & Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) & Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 & Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & Arg2) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 & Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & Arg2) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & Arg2) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) & Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & Arg2) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & Arg2) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & Arg2) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((Arg1 & Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x0320) Store ((Arg2 & Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x0320) Local0 = (Arg1 & Arg2) M600 (Arg0, 0x32, Local0, 0x0320) Local0 = (Arg2 & Arg1) M600 (Arg0, 0x33, Local0, 0x0320) } /* Divide, common 32-bit/64-bit test */ Method (M007, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg1 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg1 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg1 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg1 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Arg1, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (Arg1, 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Arg1, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (Arg1, AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Arg1, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (Arg1, DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Arg1, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (Arg1, DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Arg1, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (Arg1, M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Arg1, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (Arg1, DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Arg1, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, Arg1, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Arg1, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, Arg1, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Arg1, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), Arg1, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Arg1, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), Arg1, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Arg1, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), Arg1, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Arg1, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M008, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg2 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg2 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg2 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg2 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Arg2, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (Arg2, 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Arg2, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (Arg2, AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Arg2, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (Arg2, DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Arg2, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (Arg2, DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Arg2, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (Arg2, M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Arg2, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (Arg2, DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Arg2, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, Arg2, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Arg2, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, Arg2, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Arg2, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), Arg2, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Arg2, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), Arg2, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Arg2, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), Arg2, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Arg2, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), Arg2, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Arg1 / Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Arg2 / Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (Arg1, Arg2, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Arg2, Arg1, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M009, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Arg2 / 0xC179B3FE), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg2 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Arg2 / AUI3), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg2 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Arg2 / DerefOf (RefOf (AUI3))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg2 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Arg2 / DerefOf (PAUI [0x03])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg2 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Arg2 / M601 (0x01, 0x03)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Arg2 / DerefOf (M602 (0x01, 0x03, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Arg2, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Divide (Arg2, 0xC179B3FE, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Arg2, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Divide (Arg2, AUI3, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Arg2, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Divide (Arg2, DerefOf (RefOf (AUI3)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Arg2, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Divide (Arg2, DerefOf (PAUI [0x03]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Arg2, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Divide (Arg2, M601 (0x01, 0x03), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Arg2, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Divide (Arg2, DerefOf (M602 (0x01, 0x03, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE / Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 / Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) / Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) / Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) / Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) / Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Arg2, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xC179B3FE, Arg2, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Arg2, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI3, Arg2, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Arg2, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI3)), Arg2, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Arg2, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x03]), Arg2, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Arg2, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x03), Arg2, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Arg2, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x03, 0x01)), Arg2, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Arg1 / Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Arg2 / Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x003DD5B7) Divide (Arg1, Arg2, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Arg2, Arg1, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x003DD5B7) } /* Mod, common 32-bit/64-bit test */ Method (M00A, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg1 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg1 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg1 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg1 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Arg1 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Arg1 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Arg1 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Arg1 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Arg1 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % Arg1) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % Arg1) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % Arg1) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % Arg1) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % Arg1) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % Arg1) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % Arg1) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % Arg1) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % Arg1) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % Arg1) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % Arg1) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % Arg1) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M00B, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg2 % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg2 % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg2 % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((Arg2 % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg2 % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Arg2 % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Arg2 % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Arg2 % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Arg2 % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Arg2 % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % Arg2) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % Arg2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % Arg2) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % Arg2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % Arg2) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % Arg2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % Arg2) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % Arg2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % Arg2) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % Arg2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % Arg2) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % Arg2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((Arg1 % Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Arg2 % Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (Arg1 % Arg2) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Arg2 % Arg1) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M00C, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 % 0xC179B3FF), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Arg2 % 0xC179B3FD), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg2 % AUIC), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Arg2 % AUIE), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((Arg2 % DerefOf (RefOf (AUIC))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Arg2 % DerefOf (RefOf (AUIE))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg2 % DerefOf (PAUI [0x0C])), Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Store ((Arg2 % DerefOf (PAUI [0x0E])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg2 % M601 (0x01, 0x0C)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Arg2 % M601 (0x01, 0x0E)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 % DerefOf (M602 (0x01, 0x0C, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Arg2 % DerefOf (M602 (0x01, 0x0E, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Arg2 % 0xC179B3FF) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Arg2 % 0xC179B3FD) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Arg2 % AUIC) /* \AUIC */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Arg2 % AUIE) /* \AUIE */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Arg2 % DerefOf (RefOf (AUIC))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Arg2 % DerefOf (RefOf (AUIE))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Arg2 % DerefOf (PAUI [0x0C])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Arg2 % DerefOf (PAUI [0x0E])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Arg2 % M601 (0x01, 0x0C)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Arg2 % M601 (0x01, 0x0E)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 % DerefOf (M602 (0x01, 0x0C, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Arg2 % DerefOf (M602 (0x01, 0x0E, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xC179B3FF % Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xC179B3FD % Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FD) Store ((AUIC % Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIE % Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (AUIC)) % Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIE)) % Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FD) } Store ((DerefOf (PAUI [0x0C]) % Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0E]) % Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M601 (0x01, 0x0C) % Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0E) % Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0C, 0x01)) % Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0E, 0x01)) % Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FD) } Local0 = (0xC179B3FF % Arg2) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xC179B3FD % Arg2) M600 (Arg0, 0x25, Local0, 0xC179B3FD) Local0 = (AUIC % Arg2) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIE % Arg2) M600 (Arg0, 0x27, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (AUIC)) % Arg2) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIE)) % Arg2) M600 (Arg0, 0x29, Local0, 0xC179B3FD) } Local0 = (DerefOf (PAUI [0x0C]) % Arg2) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0E]) % Arg2) M600 (Arg0, 0x2B, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0C) % Arg2) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0E) % Arg2) M600 (Arg0, 0x2D, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) % Arg2) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) % Arg2) M600 (Arg0, 0x2F, Local0, 0xC179B3FD) } /* Conversion of the both operands */ Store ((Arg1 % Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Arg2 % Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x0267) Local0 = (Arg1 % Arg2) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Arg2 % Arg1) M600 (Arg0, 0x33, Local0, 0x0267) } /* Multiply, common 32-bit/64-bit test */ Method (M00D, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg1 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Arg1 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg1 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Arg1 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg1 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Arg1 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg1 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Arg1 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg1 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg1 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Arg1 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg1 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Arg1 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg1 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Arg1 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg1 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Arg1 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg1 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Arg1 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg1 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg1 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * Arg1) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Arg1) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * Arg1) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Arg1) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Arg1) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Arg1) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * Arg1) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Arg1) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Arg1) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Arg1) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Arg1) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Arg1) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M00E, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg2 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Arg2 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg2 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Arg2 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg2 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Arg2 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg2 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Arg2 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg2 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg2 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Arg2 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg2 * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg2 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Arg2 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg2 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Arg2 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg2 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Arg2 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg2 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg2 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Arg2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Arg2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Arg2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Arg2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Arg2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Arg2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Arg1 * Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((Arg2 * Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (Arg1 * Arg2) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (Arg2 * Arg1) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M00F, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg2 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((Arg2 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg2 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((Arg2 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg2 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((Arg2 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg2 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((Arg2 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg2 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg2 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (Arg2 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg2 * 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (Arg2 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg2 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (Arg2 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg2 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (Arg2 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg2 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (Arg2 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg2 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg2 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 * Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 * Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) * Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 * Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Arg2) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 * Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Arg2) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Arg2) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) * Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Arg2) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Arg2) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Arg2) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((Arg1 * Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x5DCC2DBE) Store ((Arg2 * Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x5DCC2DBE) Local0 = (Arg1 * Arg2) M600 (Arg0, 0x32, Local0, 0x5DCC2DBE) Local0 = (Arg2 * Arg1) M600 (Arg0, 0x33, Local0, 0x5DCC2DBE) } /* NAnd, common 32-bit/64-bit test */ Method (M010, 2, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (Arg1, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (Arg1, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (Arg1, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (Arg1, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (Arg1, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Arg1, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Arg1, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (Arg1, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (Arg1, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Arg1, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (Arg1, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (Arg1, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Arg1) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Arg1) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, Arg1) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Arg1) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Arg1) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Arg1) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), Arg1) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Arg1) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Arg1) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Arg1) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg1) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Arg1) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, Arg1, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Arg1, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, Arg1, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Arg1, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Arg1, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Arg1, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), Arg1, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Arg1, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Arg1, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Arg1, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg1, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Arg1, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M011, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (Arg2, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (Arg2, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (Arg2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (Arg2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (Arg2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Arg2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (Arg2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (Arg2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (Arg2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (Arg2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (Arg2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (Arg2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Arg2) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Arg2) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, Arg2) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Arg2) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Arg2) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Arg2) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), Arg2) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Arg2) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Arg2) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Arg2) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Arg2) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, Arg2, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Arg2, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, Arg2, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Arg2, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Arg2, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Arg2, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), Arg2, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Arg2, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Arg2, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Arg2, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Arg2, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (Arg1, Arg2) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (Arg2, Arg1) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Arg1, Arg2, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Arg2, Arg1, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M012, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (Arg2, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x3E864C01) Local0 = NAnd (Arg2, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, AUII) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (Arg2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Local0 = NAnd (Arg2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (Arg2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Arg2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } NAnd (Arg2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (Arg2, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x3E864C01) NAnd (Arg2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (Arg2, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { NAnd (Arg2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (Arg2, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x3E864C01) } NAnd (Arg2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (Arg2, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (Arg2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (Arg2, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (Arg2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (Arg2, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Arg2) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, Arg2) M600 (Arg0, 0x19, Local0, 0x3E864C01) Local0 = NAnd (AUI5, Arg2) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, Arg2) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Arg2) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), Arg2) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PAUI [0x05]), Arg2) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), Arg2) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Arg2) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), Arg2) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Arg2) M600 (Arg0, 0x23, Local0, 0x3E864C01) } NAnd (0x00, Arg2, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, Arg2, Local0) M600 (Arg0, 0x25, Local0, 0x3E864C01) NAnd (AUI5, Arg2, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, Arg2, Local0) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Arg2, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), Arg2, Local0) M600 (Arg0, 0x29, Local0, 0x3E864C01) } NAnd (DerefOf (PAUI [0x05]), Arg2, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), Arg2, Local0) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Arg2, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), Arg2, Local0) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Arg2, Local0) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Local0 = NAnd (Arg1, Arg2) M600 (Arg0, 0x30, Local0, 0xFFFFFCDF) Local0 = NAnd (Arg2, Arg1) M600 (Arg0, 0x31, Local0, 0xFFFFFCDF) NAnd (Arg1, Arg2, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFCDF) NAnd (Arg2, Arg1, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFCDF) } /* NOr, common 32-bit/64-bit test */ Method (M013, 2, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (Arg1, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Arg1, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Arg1, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Arg1, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Arg1, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Arg1, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Arg1, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Arg1, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Arg1, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Arg1, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Arg1, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Arg1, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Arg1) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Arg1) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Arg1) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, Arg1) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Arg1) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), Arg1) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Arg1) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), Arg1) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Arg1) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), Arg1) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg1) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Arg1) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Arg1, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, Arg1, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Arg1, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, Arg1, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Arg1, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), Arg1, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Arg1, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), Arg1, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Arg1, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), Arg1, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg1, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Arg1, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M014, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (Arg2, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Arg2, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Arg2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Arg2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Arg2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Arg2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Arg2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Arg2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Arg2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Arg2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Arg2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Arg2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Arg2) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Arg2) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Arg2) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, Arg2) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Arg2) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), Arg2) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Arg2) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), Arg2) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Arg2) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), Arg2) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Arg2) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Arg2, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, Arg2, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Arg2, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, Arg2, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Arg2, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), Arg2, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Arg2, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), Arg2, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Arg2, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), Arg2, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Arg2, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Arg1, Arg2) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (Arg2, Arg1) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (Arg1, Arg2, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (Arg2, Arg1, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M015, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (Arg2, 0x00) M600 (Arg0, 0x00, Local0, 0x3E864C01) Local0 = NOr (Arg2, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Arg2, AUI5) M600 (Arg0, 0x02, Local0, 0x3E864C01) Local0 = NOr (Arg2, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Arg2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x3E864C01) Local0 = NOr (Arg2, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Arg2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x3E864C01) Local0 = NOr (Arg2, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Arg2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x3E864C01) Local0 = NOr (Arg2, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Arg2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x3E864C01) Local0 = NOr (Arg2, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Arg2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x3E864C01) NOr (Arg2, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Arg2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x3E864C01) NOr (Arg2, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Arg2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x3E864C01) NOr (Arg2, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Arg2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x3E864C01) NOr (Arg2, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Arg2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x3E864C01) NOr (Arg2, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Arg2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x3E864C01) NOr (Arg2, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Arg2) M600 (Arg0, 0x18, Local0, 0x3E864C01) Local0 = NOr (0xFFFFFFFF, Arg2) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Arg2) M600 (Arg0, 0x1A, Local0, 0x3E864C01) Local0 = NOr (AUII, Arg2) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Arg2) M600 (Arg0, 0x1C, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (AUII)), Arg2) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Arg2) M600 (Arg0, 0x1E, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PAUI [0x12]), Arg2) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Arg2) M600 (Arg0, 0x20, Local0, 0x3E864C01) Local0 = NOr (M601 (0x01, 0x12), Arg2) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2) M600 (Arg0, 0x22, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Arg2) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Arg2, Local0) M600 (Arg0, 0x24, Local0, 0x3E864C01) NOr (0xFFFFFFFF, Arg2, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Arg2, Local0) M600 (Arg0, 0x26, Local0, 0x3E864C01) NOr (AUII, Arg2, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Arg2, Local0) M600 (Arg0, 0x28, Local0, 0x3E864C01) NOr (DerefOf (RefOf (AUII)), Arg2, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Arg2, Local0) M600 (Arg0, 0x2A, Local0, 0x3E864C01) NOr (DerefOf (PAUI [0x12]), Arg2, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Arg2, Local0) M600 (Arg0, 0x2C, Local0, 0x3E864C01) NOr (M601 (0x01, 0x12), Arg2, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2, Local0) M600 (Arg0, 0x2E, Local0, 0x3E864C01) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Arg2, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Arg1, Arg2) M600 (Arg0, 0x30, Local0, 0x3E864C00) Local0 = NOr (Arg2, Arg1) M600 (Arg0, 0x31, Local0, 0x3E864C00) NOr (Arg1, Arg2, Local0) M600 (Arg0, 0x32, Local0, 0x3E864C00) NOr (Arg2, Arg1, Local0) M600 (Arg0, 0x33, Local0, 0x3E864C00) } /* Or, common 32-bit/64-bit test */ Method (M016, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Arg1 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Arg1 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Arg1 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Arg1 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Arg1 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Arg1 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Arg1 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Arg1 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Arg1 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | Arg1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | Arg1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Arg1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Arg1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | Arg1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Arg1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | Arg1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Arg1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | Arg1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Arg1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | Arg1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Arg1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | Arg1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Arg1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Arg1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M017, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Arg2 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Arg2 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Arg2 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Arg2 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Arg2 | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Arg2 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Arg2 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Arg2 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Arg2 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Arg2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | Arg2) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Arg2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | Arg2) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Arg2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | Arg2) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Arg2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | Arg2) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Arg2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | Arg2) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Arg2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Arg2) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((Arg1 | Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((Arg2 | Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (Arg1 | Arg2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (Arg2 | Arg1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M018, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Arg2 | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((Arg2 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Arg2 | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((Arg2 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Arg2 | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((Arg2 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Arg2 | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((Arg2 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Arg2 | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Arg2 | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (Arg2 | 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Arg2 | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (Arg2 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Arg2 | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (Arg2 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Arg2 | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (Arg2 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Arg2 | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (Arg2 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Arg2 | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Arg2 | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF | Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII | Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) | Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) | Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) | Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | Arg2) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF | Arg2) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | Arg2) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII | Arg2) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Arg2) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) | Arg2) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Arg2) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) | Arg2) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Arg2) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) | Arg2) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Arg2) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | Arg2) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((Arg1 | Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xC179B3FF) Store ((Arg2 | Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xC179B3FF) Local0 = (Arg1 | Arg2) M600 (Arg0, 0x32, Local0, 0xC179B3FF) Local0 = (Arg2 | Arg1) M600 (Arg0, 0x33, Local0, 0xC179B3FF) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M019, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((Arg1 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((Arg1 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((Arg1 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((Arg1 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (Arg1 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (Arg1 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (Arg1 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (Arg1 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (Arg1 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Arg2) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Arg2) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Arg2) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Arg2) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Arg2) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Arg2) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M01A, 4, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((Arg2 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((Arg2 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((Arg2 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((Arg2 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (Arg2 << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (Arg2 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (Arg2 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (Arg2 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (Arg2 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << Arg3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Arg3), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Arg3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Arg3), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Arg3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Arg3), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Arg3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Arg3), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Arg3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Arg3), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Arg3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Arg3), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Arg3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Arg3) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Arg3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Arg3) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Arg3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Arg3) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Arg3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Arg3) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Arg3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Arg3) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Arg3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Arg3) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Arg1 << Arg3), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Arg2 << Arg3), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (Arg1 << Arg3) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Arg2 << Arg3) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M01B, 4, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Arg2 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x82F367FC) Store ((Arg2 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Arg2 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x82F367FC) If (Y078) { Store ((Arg2 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Arg2 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x82F367FC) } Store ((Arg2 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Arg2 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x82F367FC) /* Method returns Integer */ Store ((Arg2 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Arg2 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Arg2 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x82F367FC) } Local0 = (Arg2 << 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Arg2 << 0x01) M600 (Arg0, 0x0D, Local0, 0x82F367FC) Local0 = (Arg2 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Arg2 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x82F367FC) If (Y078) { Local0 = (Arg2 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Arg2 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x82F367FC) } Local0 = (Arg2 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Arg2 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x82F367FC) /* Method returns Integer */ Local0 = (Arg2 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Arg2 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Arg2 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x82F367FC) } /* Conversion of the second operand */ Store ((0x00 << Arg3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Arg3), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Arg3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Arg3), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Arg3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Arg3), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Arg3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Arg3), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Arg3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Arg3), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Arg3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Arg3), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Arg3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Arg3) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Arg3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Arg3) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Arg3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Arg3) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Arg3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Arg3) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Arg3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Arg3) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Arg3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Arg3) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Arg1 << Arg3), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Arg2 << Arg3), Local0) M600 (Arg0, 0x31, Local0, 0xCD9FF000) Local0 = (Arg1 << Arg3) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Arg2 << Arg3) M600 (Arg0, 0x33, Local0, 0xCD9FF000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M01C, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((Arg1 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((Arg1 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((Arg1 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((Arg1 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (Arg1 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (Arg1 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (Arg1 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (Arg1 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (Arg1 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> Arg2) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> Arg2) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> Arg2) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> Arg2) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> Arg2) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> Arg2) M600 (Arg0, 0x2F, Local0, 0x00182F36) } } /* ShiftRight, 64-bit */ Method (M01D, 4, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((Arg2 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((Arg2 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((Arg2 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((Arg2 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (Arg2 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (Arg2 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (Arg2 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (Arg2 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (Arg2 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> Arg3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> Arg3), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> Arg3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> Arg3), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Arg3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> Arg3), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> Arg3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> Arg3), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Arg3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> Arg3), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> Arg3), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> Arg3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> Arg3) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> Arg3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> Arg3) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Arg3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> Arg3) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Arg3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> Arg3) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Arg3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> Arg3) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> Arg3) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((Arg1 >> Arg3), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Arg2 >> Arg3), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (Arg1 >> Arg3) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Arg2 >> Arg3) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M01E, 4, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Arg2 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x60BCD9FF) Store ((Arg2 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Arg2 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x60BCD9FF) If (Y078) { Store ((Arg2 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Arg2 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x60BCD9FF) } Store ((Arg2 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Arg2 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x60BCD9FF) /* Method returns Integer */ Store ((Arg2 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Arg2 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Arg2 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x60BCD9FF) } Local0 = (Arg2 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Arg2 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x60BCD9FF) Local0 = (Arg2 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Arg2 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x60BCD9FF) If (Y078) { Local0 = (Arg2 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Arg2 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x60BCD9FF) } Local0 = (Arg2 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Arg2 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x60BCD9FF) /* Method returns Integer */ Local0 = (Arg2 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Arg2 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Arg2 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x60BCD9FF) } /* Conversion of the second operand */ Store ((0x0321 >> Arg3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> Arg3), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> Arg3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> Arg3), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Arg3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> Arg3), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> Arg3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> Arg3), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Arg3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> Arg3), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> Arg3), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> Arg3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> Arg3) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> Arg3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> Arg3) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Arg3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> Arg3) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> Arg3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> Arg3) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Arg3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> Arg3) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> Arg3) M600 (Arg0, 0x2F, Local0, 0x00182F36) } /* Conversion of the both operands */ Store ((Arg1 >> Arg3), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Arg2 >> Arg3), Local0) M600 (Arg0, 0x31, Local0, 0x00182F36) Local0 = (Arg1 >> Arg3) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Arg2 >> Arg3) M600 (Arg0, 0x33, Local0, 0x00182F36) } /* Subtract, common 32-bit/64-bit test */ Method (M01F, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((Arg1 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((Arg1 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((Arg1 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((Arg1 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (Arg1 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (Arg1 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (Arg1 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (Arg1 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (Arg1 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - Arg1), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - Arg1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Arg1), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - Arg1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Arg1), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Arg1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - Arg1) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - Arg1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - Arg1) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - Arg1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Arg1) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - Arg1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - Arg1) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - Arg1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Arg1) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - Arg1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Arg1) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Arg1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M020, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((Arg2 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((Arg2 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((Arg2 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((Arg2 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (Arg2 - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (Arg2 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (Arg2 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (Arg2 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (Arg2 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - Arg2) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - Arg2) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - Arg2) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - Arg2) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Arg2) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - Arg2) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - Arg2) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - Arg2) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Arg2) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - Arg2) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Arg2) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Arg2) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((Arg1 - Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((Arg2 - Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (Arg1 - Arg2) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (Arg2 - Arg1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M021, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Arg2 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FD) Store ((Arg2 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Arg2 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FD) If (Y078) { Store ((Arg2 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Arg2 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FD) } Store ((Arg2 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Arg2 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((Arg2 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Arg2 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Arg2 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FD) } Local0 = (Arg2 - 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Arg2 - 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FD) Local0 = (Arg2 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Arg2 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FD) If (Y078) { Local0 = (Arg2 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Arg2 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FD) } Local0 = (Arg2 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Arg2 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (Arg2 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Arg2 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Arg2 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FD) } /* Conversion of the second operand */ Store ((0x00 - Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x3E864C02) Store ((0x01 - Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C03) Store ((AUI5 - Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x3E864C02) Store ((AUI6 - Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C03) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x3E864C02) Store ((DerefOf (RefOf (AUI6)) - Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C03) } Store ((DerefOf (PAUI [0x05]) - Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x3E864C02) Store ((DerefOf (PAUI [0x06]) - Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C03) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x3E864C02) Store ((M601 (0x01, 0x06) - Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x3E864C02) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C03) } Local0 = (0x00 - Arg2) M600 (Arg0, 0x24, Local0, 0x3E864C02) Local0 = (0x01 - Arg2) M600 (Arg0, 0x25, Local0, 0x3E864C03) Local0 = (AUI5 - Arg2) M600 (Arg0, 0x26, Local0, 0x3E864C02) Local0 = (AUI6 - Arg2) M600 (Arg0, 0x27, Local0, 0x3E864C03) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Arg2) M600 (Arg0, 0x28, Local0, 0x3E864C02) Local0 = (DerefOf (RefOf (AUI6)) - Arg2) M600 (Arg0, 0x29, Local0, 0x3E864C03) } Local0 = (DerefOf (PAUI [0x05]) - Arg2) M600 (Arg0, 0x2A, Local0, 0x3E864C02) Local0 = (DerefOf (PAUI [0x06]) - Arg2) M600 (Arg0, 0x2B, Local0, 0x3E864C03) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Arg2) M600 (Arg0, 0x2C, Local0, 0x3E864C02) Local0 = (M601 (0x01, 0x06) - Arg2) M600 (Arg0, 0x2D, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Arg2) M600 (Arg0, 0x2E, Local0, 0x3E864C02) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Arg2) M600 (Arg0, 0x2F, Local0, 0x3E864C03) } /* Conversion of the both operands */ Store ((Arg1 - Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x3E864F23) Store ((Arg2 - Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DD) Local0 = (Arg1 - Arg2) M600 (Arg0, 0x32, Local0, 0x3E864F23) Local0 = (Arg2 - Arg1) M600 (Arg0, 0x33, Local0, 0xC179B0DD) } /* XOr, common 32-bit/64-bit test */ Method (M022, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((Arg1 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((Arg1 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((Arg1 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((Arg1 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Arg1 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (Arg1 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (Arg1 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Arg1 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (Arg1 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ Arg1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ Arg1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Arg1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ Arg1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ Arg1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ Arg1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ Arg1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Arg1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ Arg1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ Arg1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ Arg1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Arg1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ Arg1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Arg1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M023, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((Arg2 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((Arg2 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((Arg2 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((Arg2 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (Arg2 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (Arg2 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (Arg2 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (Arg2 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (Arg2 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ Arg2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ Arg2) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ Arg2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ Arg2) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Arg2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ Arg2) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ Arg2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ Arg2) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Arg2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ Arg2) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Arg2) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((Arg1 ^ Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((Arg2 ^ Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (Arg1 ^ Arg2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (Arg2 ^ Arg1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M024, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Arg2 ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x3E864C01) Store ((Arg2 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Arg2 ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Store ((Arg2 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Arg2 ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Store ((Arg2 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Arg2 ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Store ((Arg2 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Arg2 ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Arg2 ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } Local0 = (Arg2 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Arg2 ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x3E864C01) Local0 = (Arg2 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Arg2 ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { Local0 = (Arg2 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Arg2 ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x3E864C01) } Local0 = (Arg2 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Arg2 ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (Arg2 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Arg2 ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Arg2 ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Store ((0x00 ^ Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF ^ Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C01) Store ((AUI5 ^ Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII ^ Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) ^ Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Store ((DerefOf (PAUI [0x05]) ^ Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) ^ Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) ^ Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C01) } Local0 = (0x00 ^ Arg2) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF ^ Arg2) M600 (Arg0, 0x25, Local0, 0x3E864C01) Local0 = (AUI5 ^ Arg2) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII ^ Arg2) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Arg2) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) ^ Arg2) M600 (Arg0, 0x29, Local0, 0x3E864C01) } Local0 = (DerefOf (PAUI [0x05]) ^ Arg2) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) ^ Arg2) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Arg2) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) ^ Arg2) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg2) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ Arg2) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Store ((Arg1 ^ Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xC179B0DF) Store ((Arg2 ^ Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DF) Local0 = (Arg1 ^ Arg2) M600 (Arg0, 0x32, Local0, 0xC179B0DF) Local0 = (Arg2 ^ Arg1) M600 (Arg0, 0x33, Local0, 0xC179B0DF) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0, "0321") Concatenate (Arg0, "-m002", Local0) SRMT (Local0) M002 (Local0, "0321", "FE7CB391D650A284") /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0, "0321") Concatenate (Arg0, "-m005", Local0) SRMT (Local0) M005 (Local0, "0321", "FE7CB391D650A284") /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0, "0321") Concatenate (Arg0, "-m008", Local0) SRMT (Local0) M008 (Local0, "0321", "FE7CB391D650A284") /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0, "0321") Concatenate (Arg0, "-m00b", Local0) SRMT (Local0) M00B (Local0, "0321", "FE7CB391D650A284") /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0, "0321") Concatenate (Arg0, "-m00e", Local0) SRMT (Local0) M00E (Local0, "0321", "FE7CB391D650A284") /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) M010 (Local0, "0321") Concatenate (Arg0, "-m011", Local0) SRMT (Local0) M011 (Local0, "0321", "FE7CB391D650A284") /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) M013 (Local0, "0321") Concatenate (Arg0, "-m014", Local0) SRMT (Local0) M014 (Local0, "0321", "FE7CB391D650A284") /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) M016 (Local0, "0321") Concatenate (Arg0, "-m017", Local0) SRMT (Local0) M017 (Local0, "0321", "FE7CB391D650A284") /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0, "0321", "B") Concatenate (Arg0, "-m01a", Local0) SRMT (Local0) M01A (Local0, "0321", "FE7CB391D650A284", "B") /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0, "0321", "B") Concatenate (Arg0, "-m01d", Local0) SRMT (Local0) M01D (Local0, "0321", "FE7CB391D650A284", "B") /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) M01F (Local0, "0321") Concatenate (Arg0, "-m020", Local0) SRMT (Local0) M020 (Local0, "0321", "FE7CB391D650A284") /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) M022 (Local0, "0321") Concatenate (Arg0, "-m023", Local0) SRMT (Local0) M023 (Local0, "0321", "FE7CB391D650A284") } Method (M32D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0, "0321") Concatenate (Arg0, "-m003", Local0) SRMT (Local0) M003 (Local0, "0321", "C179B3FE") /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0, "0321") Concatenate (Arg0, "-m006", Local0) SRMT (Local0) M006 (Local0, "0321", "C179B3FE") /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0, "0321") Concatenate (Arg0, "-m009", Local0) SRMT (Local0) M009 (Local0, "0321", "C179B3FE") /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0, "0321") Concatenate (Arg0, "-m00c", Local0) SRMT (Local0) M00C (Local0, "0321", "C179B3FE") /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0, "0321") Concatenate (Arg0, "-m00f", Local0) SRMT (Local0) M00F (Local0, "0321", "C179B3FE") /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) If (Y119) { M010 (Local0, "0321") } Else { BLCK () } Concatenate (Arg0, "-m012", Local0) SRMT (Local0) M012 (Local0, "0321", "C179B3FE") /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) If (Y119) { M013 (Local0, "0321") } Else { BLCK () } Concatenate (Arg0, "-m015", Local0) SRMT (Local0) M015 (Local0, "0321", "C179B3FE") /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) If (Y119) { M016 (Local0, "0321") } Else { BLCK () } Concatenate (Arg0, "-m018", Local0) SRMT (Local0) M018 (Local0, "0321", "C179B3FE") /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0, "0321", "B") Concatenate (Arg0, "-m01b", Local0) SRMT (Local0) M01B (Local0, "0321", "C179B3FE", "B") /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0, "0321", "B") Concatenate (Arg0, "-m01e", Local0) SRMT (Local0) M01E (Local0, "0321", "C179B3FE", "B") /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) If (Y119) { M01F (Local0, "0321") } Else { BLCK () } Concatenate (Arg0, "-m021", Local0) SRMT (Local0) M021 (Local0, "0321", "C179B3FE") /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) If (Y119) { M022 (Local0, "0321") } Else { BLCK () } Concatenate (Arg0, "-m024", Local0) SRMT (Local0) M024 (Local0, "0321", "C179B3FE") } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M025, 2, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg1 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Arg1 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg1 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Arg1 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg1 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Arg1 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg1 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Arg1 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg1 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Arg1 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Arg1 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Arg1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Arg1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Arg1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Arg1) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M026, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg2 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Arg2 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg2 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Arg2 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg2 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Arg2 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg2 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Arg2 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg2 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Arg2 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Arg2 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Arg2) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Arg2) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Arg2) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Arg2) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Arg2) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Arg2) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Arg2) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Arg2) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Arg2) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Arg2) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Arg2) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Arg2) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Arg1 && Arg2) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Arg2 && Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M027, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg2 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Arg2 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg2 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Arg2 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg2 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Arg2 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg2 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Arg2 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg2 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Arg2 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Arg2 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Arg2) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Arg2) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Arg2) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Arg2) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Arg2) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Arg2) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Arg2) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Arg2) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Arg2) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Arg2) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Arg2) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Arg2) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Arg1 && Arg2) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Arg2 && Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M028, 2, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg1 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Arg1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg1 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Arg1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Arg1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Arg1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Arg1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Arg1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || Arg1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || Arg1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || Arg1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Arg1) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M029, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg1 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Arg1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg1 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Arg1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Arg1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Arg1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Arg1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Arg1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Arg1) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Arg1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Arg1) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Arg1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Arg1) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Arg1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Arg1) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Arg1) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Arg2 || Arg1) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Arg1 || Arg2) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M02A, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg1 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Arg1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg1 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Arg1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Arg1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Arg1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Arg1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Arg1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Arg1) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Arg1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Arg1) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Arg1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Arg1) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Arg1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Arg1) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Arg1) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Arg2 || Arg1) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Arg1 || Arg2) M600 (Arg0, 0x19, Local0, Ones) } Method (M64E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0, "0321") Concatenate (Arg0, "-m026", Local0) SRMT (Local0) M026 (Local0, "0321", "FE7CB391D650A284") /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0, "0") Concatenate (Arg0, "-m029", Local0) SRMT (Local0) M029 (Local0, "FE7CB391D650A284", "0") } Method (M32E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0, "0321") Concatenate (Arg0, "-m027", Local0) SRMT (Local0) M027 (Local0, "0321", "C179B3FE") /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0, "0") Concatenate (Arg0, "-m02a", Local0) SRMT (Local0) M02A (Local0, "C179B3FE", "0") } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64F, 2, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == Arg1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == Arg1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == Arg1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == Arg1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == Arg1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == Arg1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == Arg1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == Arg1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == Arg1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == Arg1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == Arg1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > Arg1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > Arg1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > Arg1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > Arg1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > Arg1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > Arg1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > Arg1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > Arg1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > Arg1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > Arg1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > Arg1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > Arg1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= Arg1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= Arg1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= Arg1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= Arg1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= Arg1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= Arg1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= Arg1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= Arg1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= Arg1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= Arg1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= Arg1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= Arg1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= Arg1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= Arg1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= Arg1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < Arg1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < Arg1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < Arg1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < Arg1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < Arg1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < Arg1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < Arg1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < Arg1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < Arg1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < Arg1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < Arg1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < Arg1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < Arg1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < Arg1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < Arg1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= Arg1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= Arg1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= Arg1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= Arg1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= Arg1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= Arg1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= Arg1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= Arg1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= Arg1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= Arg1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= Arg1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= Arg1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= Arg1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= Arg1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= Arg1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= Arg1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= Arg1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != Arg1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != Arg1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != Arg1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != Arg1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != Arg1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != Arg1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != Arg1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != Arg1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != Arg1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != Arg1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != Arg1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != Arg1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != Arg1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != Arg1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != Arg1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != Arg1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != Arg1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != Arg1) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32F, 2, NotSerialized) { /* LEqual */ Local0 = (0xC179B3FE == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xC179B3FF == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xC179B3FD == Arg1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI3 == Arg1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIC == Arg1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIE == Arg1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) == Arg1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) == Arg1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) == Arg1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) == Arg1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) == Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0C) == Arg1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0E) == Arg1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) == Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) == Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) == Arg1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xC179B3FE > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xC179B3FF > Arg1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xC179B3FD > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI3 > Arg1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIC > Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIE > Arg1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) > Arg1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) > Arg1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) > Arg1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) > Arg1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) > Arg1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0C) > Arg1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0E) > Arg1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) > Arg1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) > Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) > Arg1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xC179B3FE >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xC179B3FF >= Arg1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xC179B3FD >= Arg1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI3 >= Arg1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIC >= Arg1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIE >= Arg1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) >= Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) >= Arg1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) >= Arg1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) >= Arg1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) >= Arg1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) >= Arg1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) >= Arg1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0C) >= Arg1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0E) >= Arg1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >= Arg1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) >= Arg1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) >= Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xC179B3FE < Arg1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xC179B3FF < Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xC179B3FD < Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI3 < Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIC < Arg1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIE < Arg1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) < Arg1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) < Arg1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) < Arg1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) < Arg1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) < Arg1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) < Arg1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) < Arg1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0C) < Arg1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0E) < Arg1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) < Arg1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) < Arg1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) < Arg1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xC179B3FE <= Arg1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xC179B3FF <= Arg1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xC179B3FD <= Arg1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI3 <= Arg1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIC <= Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIE <= Arg1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) <= Arg1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) <= Arg1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) <= Arg1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) <= Arg1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) <= Arg1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) <= Arg1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) <= Arg1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0C) <= Arg1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0E) <= Arg1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) <= Arg1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) <= Arg1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) <= Arg1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xC179B3FE != Arg1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xC179B3FF != Arg1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xC179B3FD != Arg1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI3 != Arg1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIC != Arg1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIE != Arg1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) != Arg1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) != Arg1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) != Arg1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) != Arg1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) != Arg1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) != Arg1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) != Arg1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0C) != Arg1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0E) != Arg1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) != Arg1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) != Arg1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) != Arg1) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M02B, 2, NotSerialized) { /* LEqual */ Local0 = (0x0321 == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == Arg1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == Arg1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == Arg1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == Arg1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == Arg1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == Arg1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == Arg1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == Arg1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == Arg1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == Arg1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == Arg1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > Arg1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > Arg1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > Arg1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > Arg1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > Arg1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > Arg1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > Arg1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > Arg1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > Arg1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > Arg1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > Arg1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > Arg1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= Arg1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= Arg1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= Arg1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= Arg1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= Arg1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= Arg1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= Arg1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= Arg1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= Arg1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= Arg1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= Arg1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= Arg1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= Arg1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= Arg1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= Arg1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < Arg1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < Arg1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < Arg1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < Arg1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < Arg1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < Arg1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < Arg1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < Arg1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < Arg1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < Arg1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < Arg1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < Arg1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < Arg1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < Arg1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < Arg1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= Arg1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= Arg1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= Arg1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= Arg1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= Arg1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= Arg1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= Arg1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= Arg1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= Arg1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= Arg1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= Arg1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= Arg1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= Arg1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= Arg1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= Arg1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= Arg1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= Arg1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != Arg1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != Arg1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != Arg1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != Arg1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != Arg1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != Arg1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != Arg1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != Arg1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != Arg1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != Arg1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != Arg1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != Arg1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != Arg1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != Arg1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != Arg1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != Arg1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != Arg1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != Arg1) M600 (Arg0, 0x6B, Local0, Ones) } } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64G, 3, NotSerialized) { Local0 = Concatenate (0x0321, Arg1) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, Arg2) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, Arg1) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, Arg2) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Arg1) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Arg2) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Arg1) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), Arg2) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Arg1) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), Arg2) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg2) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, Arg2, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, Arg2, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Arg1, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), Arg2, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), Arg1, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), Arg2, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Arg1, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), Arg2, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg2, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32G, 3, NotSerialized) { Local0 = Concatenate (0x0321, Arg1) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, Arg2) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (AUI1, Arg1) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, Arg2) M600 (Arg0, 0x03, Local0, BB24) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Arg1) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Arg2) M600 (Arg0, 0x05, Local0, BB24) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Arg1) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), Arg2) M600 (Arg0, 0x07, Local0, BB24) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Arg1) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), Arg2) M600 (Arg0, 0x09, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg2) M600 (Arg0, 0x0B, Local0, BB24) } Concatenate (0x0321, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, Arg2, Local0) M600 (Arg0, 0x0D, Local0, BB24) Concatenate (AUI1, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, Arg2, Local0) M600 (Arg0, 0x0F, Local0, BB24) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Arg1, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), Arg2, Local0) M600 (Arg0, 0x11, Local0, BB24) } Concatenate (DerefOf (PAUI [0x01]), Arg1, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), Arg2, Local0) M600 (Arg0, 0x14, Local0, BB24) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Arg1, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), Arg2, Local0) M600 (Arg0, 0x16, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg2, Local0) M600 (Arg0, 0x18, Local0, BB24) } } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M02C, 3, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, Arg2) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, Arg1) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Arg2) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), Arg1) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Arg2) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), Arg1) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Arg2) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), Arg1) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, Arg2, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Arg2, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), Arg1, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Arg2, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), Arg1, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Arg2, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), Arg1, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64H, 2, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Arg1) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Arg1) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Arg1) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Arg1) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Arg1, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Arg1, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Arg1, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Arg1, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32H, 2, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Arg1) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Arg1) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Arg1) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Arg1) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Arg1, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Arg1, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Arg1, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Arg1, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Method (M02D, 2, NotSerialized) { Store (AUS6 [Arg1], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [Arg1], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [Arg1], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [Arg1], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [Arg1], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [Arg1], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [Arg1], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [Arg1], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [Arg1], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [Arg1], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [Arg1], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [Arg1], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [Arg1], Local3) CH04 (Arg0, 0x00, 0x55, Z121, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [Arg1], Local3) CH04 (Arg0, 0x00, 0x55, Z121, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [Arg1], Local3) CH04 (Arg0, 0x00, 0x55, Z121, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [Arg1], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [Arg1], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [Arg1], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [Arg1] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [Arg1] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [Arg1] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [Arg1] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [Arg1] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [Arg1] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [Arg1] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [Arg1] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [Arg1] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [Arg1] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [Arg1] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [Arg1] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [Arg1] CH04 (Arg0, 0x00, 0x55, Z121, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [Arg1] CH04 (Arg0, 0x00, 0x55, Z121, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [Arg1] CH04 (Arg0, 0x00, 0x55, Z121, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [Arg1] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [Arg1] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [Arg1] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [Arg1] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [Arg1] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [Arg1] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [Arg1] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [Arg1] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [Arg1] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [Arg1] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [Arg1] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [Arg1] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [Arg1] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [Arg1] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [Arg1] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [Arg1] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [Arg1] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [Arg1] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M02E, 4, NotSerialized) { CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, Arg1) If (F64) { Fatal (0xFF, 0xFFFFFFFF, Arg2) } Else { Fatal (0xFF, 0xFFFFFFFF, Arg3) } CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) } /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M02F, 2, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", Arg1, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, Arg1, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, Arg1, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Arg1, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), Arg1, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), Arg1, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), Arg1, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Arg1, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), Arg1, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg1, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", Arg1, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, Arg1, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, Arg1, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Arg1, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), Arg1, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), Arg1, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), Arg1, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), Arg1, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), Arg1, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg1, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Arg1) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, Arg1) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, Arg1) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Arg1) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Arg1) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Arg1) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, Arg1) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, Arg1, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, Arg1, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, Arg1, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64I, 3, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Arg1) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Arg1) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Arg1) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Arg1) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Arg1) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Arg1) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Arg1) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Arg2, Arg1) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Arg1) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Arg2, Arg1) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Arg2, Arg1) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Arg2, Arg1) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Arg2, Arg1) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Arg2, Arg1) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Arg2, Arg1) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Arg2, Arg1) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Arg2, Arg1) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg2, Arg1) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Arg1) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Arg2, Arg1, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Arg1, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Arg2, Arg1, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Arg2, Arg1, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Arg2, Arg1, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Arg2, Arg1, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Arg2, Arg1, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Arg2, Arg1, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Arg2, Arg1, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Arg2, Arg1, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg2, Arg1, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Arg1, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32I, 3, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Arg1) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Arg1) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Arg1) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Arg1) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Arg1) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Arg1) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Arg1) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Arg2, Arg1) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Arg1) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Arg2, Arg1) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Arg2, Arg1) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Arg2, Arg1) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Arg2, Arg1) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Arg2, Arg1) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Arg2, Arg1) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Arg2, Arg1) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Arg2, Arg1) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg2, Arg1) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Arg1) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Arg2, Arg1, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Arg1, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Arg2, Arg1, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Arg2, Arg1, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Arg2, Arg1, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Arg2, Arg1, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Arg2, Arg1, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Arg2, Arg1, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Arg2, Arg1, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Arg2, Arg1, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg2, Arg1, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Arg1, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Method (M030, 2, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64j, 1) */ /* Method(m32j, 1) */ /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M031, 3, NotSerialized) { CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (Arg1) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z121, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (Arg2) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z121, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator ??? */ Method (M032, 2, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, arg1) */ CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z121, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Method (M033, 2, Serialized) { Event (EVT0) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, Arg1) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z121, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M034, 5, Serialized) { Name (IST0, 0x00) Method (M001, 1, NotSerialized) { If (Arg0) { IST0 = 0x00 } } Method (M002, 1, NotSerialized) { If (Arg0) { IST0 = 0x02 } } Method (M003, 1, NotSerialized) { If (Arg0) { IST0 = 0x03 } } Method (M004, 1, NotSerialized) { If (Arg0) { IST0 = 0x04 } } Method (M005, 2, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Arg1) { IST0 = 0x00 } } Method (M006, 2, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Arg1) { IST0 = 0x06 } } Method (M007, 2, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Arg1) { IST0 = 0x07 } } Method (M008, 2, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Arg1) { IST0 = 0x08 } } Method (M009, 1, NotSerialized) { While (Arg0) { IST0 = 0x00 Break } } /* If */ IST0 = 0x01 M001 (Arg4) M600 (Arg0, 0x00, IST0, 0x01) M002 (Arg1) M600 (Arg0, 0x01, IST0, 0x02) M003 (Arg3) M600 (Arg0, 0x02, IST0, 0x03) M004 (Arg2) M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00, Arg4) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00, Arg1) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00, Arg3) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00, Arg2) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 (Arg4) M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64k, 1) */ /* Method(m32k, 1) */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M035, 4, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x05) { "0321" } == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB7 == Arg1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == Arg1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) == Arg1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == Arg1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == Arg1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) == Arg1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == Arg1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) == Arg1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x05) { "0321" } > Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } > Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } > Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } > Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB7 > Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB8 > Arg1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) > Arg1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) > Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) > Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x08) > Arg1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x05) { "0321" } >= Arg1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } >= Arg1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } >= Arg1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } >= Arg1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB7 >= Arg1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB8 >= Arg1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) >= Arg1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) >= Arg1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) >= Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) >= Arg1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x08) >= Arg1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) >= Arg1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) >= Arg1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x05) { "0321" } < Arg1) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } < Arg1) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } < Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } < Arg1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB7 < Arg1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB8 < Arg1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) < Arg1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) < Arg1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) < Arg1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) < Arg1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) < Arg1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x08) < Arg1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) < Arg1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) < Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x05) { "0321" } <= Arg1) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } <= Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } <= Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } <= Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB7 <= Arg1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB8 <= Arg1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) <= Arg1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) <= Arg1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) <= Arg1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) <= Arg1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) <= Arg1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x08) <= Arg1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) <= Arg1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) <= Arg1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x05) { "0321" } != Arg1) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } != Arg1) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } != Arg1) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } != Arg1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB7 != Arg1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB8 != Arg1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) != Arg1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) != Arg1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) != Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) != Arg1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) != Arg1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x08) != Arg1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) != Arg1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) != Arg1) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = (Buffer (0x01) { 0x00 // . } == Arg2) M600 (Arg0, 0x52, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } == Arg2) M600 (Arg0, 0x53, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } > Arg2) M600 (Arg0, 0x54, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } > Arg2) M600 (Arg0, 0x55, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } >= Arg2) M600 (Arg0, 0x56, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } > Arg2) M600 (Arg0, 0x57, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } < Arg2) M600 (Arg0, 0x58, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } < Arg2) M600 (Arg0, 0x59, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } <= Arg2) M600 (Arg0, 0x5A, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } <= Arg2) M600 (Arg0, 0x5B, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } != Arg2) M600 (Arg0, 0x5C, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } != Arg2) M600 (Arg0, 0x5D, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } == Arg3) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } == Arg3) M600 (Arg0, 0x5F, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } > Arg3) M600 (Arg0, 0x60, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > Arg3) M600 (Arg0, 0x61, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } >= Arg3) M600 (Arg0, 0x62, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > Arg3) M600 (Arg0, 0x63, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } < Arg3) M600 (Arg0, 0x64, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } < Arg3) M600 (Arg0, 0x65, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } <= Arg3) M600 (Arg0, 0x66, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } <= Arg3) M600 (Arg0, 0x67, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } != Arg3) M600 (Arg0, 0x68, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } != Arg3) M600 (Arg0, 0x69, Local0, Ones) } /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M036, 4, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Arg1) M600 (Arg0, 0x00, Local0, BB29) Local0 = Concatenate (Buffer (0x02) { "Z" }, Arg1) M600 (Arg0, 0x01, Local0, BB2A) Local0 = Concatenate (AUB0, Arg1) M600 (Arg0, 0x02, Local0, BB29) Local0 = Concatenate (AUB1, Arg1) M600 (Arg0, 0x03, Local0, BB2A) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), Arg1) M600 (Arg0, 0x04, Local0, BB29) Local0 = Concatenate (DerefOf (RefOf (AUB1)), Arg1) M600 (Arg0, 0x05, Local0, BB2A) } Local0 = Concatenate (DerefOf (PAUB [0x00]), Arg1) M600 (Arg0, 0x06, Local0, BB29) Local0 = Concatenate (DerefOf (PAUB [0x01]), Arg1) M600 (Arg0, 0x07, Local0, BB2A) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), Arg1) M600 (Arg0, 0x08, Local0, BB29) Local0 = Concatenate (M601 (0x03, 0x01), Arg1) M600 (Arg0, 0x09, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Arg1) M600 (Arg0, 0x0A, Local0, BB29) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Arg1) M600 (Arg0, 0x0B, Local0, BB2A) } Concatenate (Buffer (0x01) { 0x5A // Z }, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BB29) Concatenate (Buffer (0x02) { "Z" }, Arg1, Local0) M600 (Arg0, 0x0D, Local0, BB2A) Concatenate (AUB0, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BB29) Concatenate (AUB1, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BB2A) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), Arg1, Local0) M600 (Arg0, 0x10, Local0, BB29) Concatenate (DerefOf (RefOf (AUB1)), Arg1, Local0) M600 (Arg0, 0x11, Local0, BB2A) } Concatenate (DerefOf (PAUB [0x00]), Arg1, Local0) M600 (Arg0, 0x12, Local0, BB29) Concatenate (DerefOf (PAUB [0x01]), Arg1, Local0) M600 (Arg0, 0x13, Local0, BB2A) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), Arg1, Local0) M600 (Arg0, 0x14, Local0, BB29) Concatenate (M601 (0x03, 0x01), Arg1, Local0) M600 (Arg0, 0x15, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Arg1, Local0) M600 (Arg0, 0x16, Local0, BB29) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Arg1, Local0) M600 (Arg0, 0x17, Local0, BB2A) } /* Boundary Cases */ Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Arg2) M600 (Arg0, 0x18, Local0, BB2B) Local0 = Concatenate (Buffer (0x02) { "Z" }, Arg2) M600 (Arg0, 0x19, Local0, BB2C) Local1 = 0x00 Local0 = Concatenate (Buffer (Local1){}, Arg3) M600 (Arg0, 0x1A, Local0, BB2D) } /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character, that is impossible to show */ /* with an immediate String constant). */ Method (M037, 4, NotSerialized) { Local0 = ToString (Arg1, Ones) M600 (Arg0, 0x00, Local0, BS20) Local0 = ToString (Arg1, 0x03) M600 (Arg0, 0x01, Local0, BS21) Local0 = ToString (Arg1, AUI0) M600 (Arg0, 0x02, Local0, BS20) Local0 = ToString (Arg1, AUI7) M600 (Arg0, 0x03, Local0, BS21) If (Y078) { Local0 = ToString (Arg1, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x04, Local0, BS20) Local0 = ToString (Arg1, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x05, Local0, BS21) } Local0 = ToString (Arg1, DerefOf (PAUI [0x00])) M600 (Arg0, 0x06, Local0, BS20) Local0 = ToString (Arg1, DerefOf (PAUI [0x07])) M600 (Arg0, 0x07, Local0, BS21) /* Method returns Length parameter */ Local0 = ToString (Arg1, M601 (0x01, 0x00)) M600 (Arg0, 0x08, Local0, BS20) Local0 = ToString (Arg1, M601 (0x01, 0x07)) M600 (Arg0, 0x09, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (Arg1, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0A, Local0, BS20) Local0 = ToString (Arg1, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x0B, Local0, BS21) } ToString (Arg1, Ones, Local0) M600 (Arg0, 0x0C, Local0, BS20) ToString (Arg1, 0x03, Local0) M600 (Arg0, 0x0D, Local0, BS21) ToString (Arg1, AUI0, Local0) M600 (Arg0, 0x0E, Local0, BS20) ToString (Arg1, AUI7, Local0) M600 (Arg0, 0x0F, Local0, BS21) If (Y078) { ToString (Arg1, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x10, Local0, BS20) ToString (Arg1, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x11, Local0, BS21) } ToString (Arg1, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x12, Local0, BS20) ToString (Arg1, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x13, Local0, BS21) /* Method returns Length parameter */ ToString (Arg1, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS20) ToString (Arg1, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x15, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { ToString (Arg1, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x16, Local0, BS20) ToString (Arg1, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x17, Local0, BS21) } /* Boundary Cases */ Local0 = ToString (Arg2, Ones) M600 (Arg0, 0x18, Local0, BS22) Local0 = ToString (Arg2, 0x03) M600 (Arg0, 0x19, Local0, BS22) Local0 = ToString (Arg3, Ones) M600 (Arg0, 0x1A, Local0, BS23) Local0 = ToString (Arg3, 0x03) M600 (Arg0, 0x1B, Local0, BS24) } /* Method(m038, 1) */ /* Method(m039, 1) */ /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 3, NotSerialized) { /* Decrement */ If (Y501) { Local0 = Arg1-- M600 (Arg0, 0x00, Local0, BI12) Local0 = Arg2-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = Arg1++ M600 (Arg0, 0x02, Local0, BI13) Local0 = Arg2++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (Arg1) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (Arg2) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (Arg1) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (Arg2) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~Arg1, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~Arg2, Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 3, NotSerialized) { /* Decrement */ If (Y501) { Local0 = Arg1-- M600 (Arg0, 0x00, Local0, BI12) Local0 = Arg2-- M600 (Arg0, 0x01, Local0, BI18) } /* Increment */ If (Y501) { Local0 = Arg1++ M600 (Arg0, 0x02, Local0, BI13) Local0 = Arg2++ M600 (Arg0, 0x03, Local0, BI19) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (Arg1) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (Arg2) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (Arg1) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (Arg2) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~Arg1, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~Arg2, Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 4, NotSerialized) { Local0 = !Arg3 M600 (Arg0, 0x00, Local0, Ones) Local0 = !Arg1 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !Arg2 M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !Arg2 M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 4, NotSerialized) { /* FromBCD */ Local0 = FromBCD (Arg1) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Arg2) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (Arg1, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Arg2, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (Arg1) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (Arg3) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (Arg1, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Arg3, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 4, NotSerialized) { /* FromBCD */ Local0 = FromBCD (Arg1) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Arg2) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (Arg1, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Arg2, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (Arg1) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (Arg3) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (Arg1, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Arg3, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((Arg1 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((Arg1 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((Arg1 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((Arg1 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (Arg1 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (Arg1 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (Arg1 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (Arg1 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (Arg1 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + Arg1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + Arg1) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + Arg1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + Arg1) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Arg1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + Arg1) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + Arg1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + Arg1) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Arg1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + Arg1) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Arg1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Arg1) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((Arg2 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((Arg2 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((Arg2 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((Arg2 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (Arg2 + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (Arg2 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (Arg2 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (Arg2 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (Arg2 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + Arg2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + Arg2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + Arg2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + Arg2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Arg2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + Arg2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + Arg2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + Arg2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Arg2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + Arg2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Arg2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Arg2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((Arg1 + Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((Arg2 + Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (Arg1 + Arg2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (Arg2 + Arg1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Arg2 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((Arg2 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Arg2 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((Arg2 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Arg2 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((Arg2 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Arg2 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((Arg2 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Arg2 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Arg2 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (Arg2 + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Arg2 + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (Arg2 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Arg2 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (Arg2 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Arg2 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (Arg2 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Arg2 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (Arg2 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Arg2 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Arg2 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + Arg2) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + Arg2) M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + Arg2) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + Arg2) M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Arg2) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + Arg2) M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + Arg2) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + Arg2) M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Arg2) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + Arg2) M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Arg2) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Arg2) M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((Arg1 + Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((Arg2 + Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (Arg1 + Arg2) M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (Arg2 + Arg1) M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg1 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Arg1 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg1 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Arg1 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg1 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Arg1 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg1 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Arg1 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg1 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg1 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Arg1 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg1 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Arg1 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg1 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Arg1 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg1 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Arg1 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg1 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Arg1 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg1 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg1 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & Arg1) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Arg1) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & Arg1) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Arg1) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Arg1) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Arg1) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & Arg1) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Arg1) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Arg1) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Arg1) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Arg1) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Arg1) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg2 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Arg2 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg2 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Arg2 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg2 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Arg2 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg2 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Arg2 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg2 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg2 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Arg2 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg2 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg2 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Arg2 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg2 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Arg2 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg2 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Arg2 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg2 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg2 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Arg2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Arg2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Arg2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Arg2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Arg2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Arg2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Arg1 & Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((Arg2 & Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (Arg1 & Arg2) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (Arg2 & Arg1) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg2 & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((Arg2 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg2 & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((Arg2 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg2 & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((Arg2 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg2 & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((Arg2 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg2 & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg2 & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (Arg2 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg2 & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (Arg2 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg2 & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (Arg2 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg2 & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (Arg2 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg2 & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (Arg2 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg2 & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg2 & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & Arg2) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & Arg2) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & Arg2) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & Arg2) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & Arg2) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & Arg2) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((Arg1 & Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((Arg2 & Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (Arg1 & Arg2) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (Arg2 & Arg1) M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg1 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg1 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg1 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg1 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Arg1, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (Arg1, 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Arg1, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (Arg1, AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Arg1, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (Arg1, DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Arg1, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (Arg1, DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Arg1, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (Arg1, M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Arg1, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (Arg1, DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Arg1, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, Arg1, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Arg1, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, Arg1, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Arg1, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), Arg1, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Arg1, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), Arg1, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Arg1, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), Arg1, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Arg1, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg2 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg2 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg2 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg2 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Arg2, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (Arg2, 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Arg2, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (Arg2, AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Arg2, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (Arg2, DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Arg2, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (Arg2, DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Arg2, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (Arg2, M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Arg2, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (Arg2, DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Arg2, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, Arg2, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Arg2, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, Arg2, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Arg2, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), Arg2, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Arg2, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), Arg2, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Arg2, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), Arg2, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Arg2, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), Arg2, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Arg1 / Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Arg2 / Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (Arg1, Arg2, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Arg2, Arg1, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Arg2 / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg2 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Arg2 / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg2 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Arg2 / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg2 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Arg2 / DerefOf (PAUI [0x14])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg2 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Arg2 / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Arg2 / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Arg2, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (Arg2, 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Arg2, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (Arg2, AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Arg2, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (Arg2, DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Arg2, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (Arg2, DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Arg2, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (Arg2, M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Arg2, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (Arg2, DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Arg2, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, Arg2, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Arg2, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, Arg2, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Arg2, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), Arg2, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Arg2, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), Arg2, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Arg2, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), Arg2, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Arg2, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), Arg2, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Arg1 / Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Arg2 / Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (Arg1, Arg2, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Arg2, Arg1, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg1 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg1 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg1 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg1 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Arg1 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Arg1 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Arg1 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Arg1 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Arg1 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % Arg1) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % Arg1) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % Arg1) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % Arg1) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % Arg1) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % Arg1) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % Arg1) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % Arg1) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % Arg1) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % Arg1) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % Arg1) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % Arg1) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg2 % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Arg2 % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg2 % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((Arg2 % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg2 % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Arg2 % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Arg2 % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Arg2 % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Arg2 % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Arg2 % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % Arg2) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % Arg2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % Arg2) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % Arg2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % Arg2) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % Arg2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % Arg2) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % Arg2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % Arg2) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % Arg2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % Arg2) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % Arg2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((Arg1 % Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Arg2 % Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (Arg1 % Arg2) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Arg2 % Arg1) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Arg2 % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Arg2 % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Arg2 % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((Arg2 % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Arg2 % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Arg2 % DerefOf (PAUI [0x15])), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((Arg2 % DerefOf (PAUI [0x16])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Arg2 % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Arg2 % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Arg2 % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Arg2 % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Arg2 % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Arg2 % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Arg2 % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Arg2 % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Arg2 % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Arg2 % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Arg2 % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Arg2 % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Arg2 % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Arg2 % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % Arg2) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % Arg2) M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % Arg2) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % Arg2) M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % Arg2) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % Arg2) M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % Arg2) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % Arg2) M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % Arg2) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % Arg2) M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % Arg2) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % Arg2) M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((Arg1 % Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Arg2 % Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (Arg1 % Arg2) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Arg2 % Arg1) M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg1 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Arg1 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg1 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Arg1 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg1 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Arg1 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg1 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Arg1 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg1 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg1 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Arg1 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg1 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Arg1 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg1 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Arg1 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg1 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Arg1 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg1 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Arg1 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg1 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg1 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Arg1), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Arg1), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Arg1), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * Arg1) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Arg1) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * Arg1) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Arg1) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Arg1) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Arg1) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * Arg1) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Arg1) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Arg1) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Arg1) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Arg1) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Arg1) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg2 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Arg2 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg2 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Arg2 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg2 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Arg2 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg2 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Arg2 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg2 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg2 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Arg2 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg2 * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg2 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Arg2 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg2 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Arg2 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg2 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Arg2 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg2 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg2 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Arg2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Arg2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Arg2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Arg2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Arg2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Arg2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Arg1 * Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((Arg2 * Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (Arg1 * Arg2) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (Arg2 * Arg1) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Arg2 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((Arg2 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Arg2 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((Arg2 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Arg2 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((Arg2 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Arg2 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((Arg2 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Arg2 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Arg2 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (Arg2 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Arg2 * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (Arg2 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Arg2 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (Arg2 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Arg2 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (Arg2 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Arg2 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (Arg2 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Arg2 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Arg2 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Arg2) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Arg2) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Arg2) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Arg2) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Arg2) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Arg2) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((Arg1 * Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((Arg2 * Arg1), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (Arg1 * Arg2) M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (Arg2 * Arg1) M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 2, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (Arg1, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (Arg1, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (Arg1, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (Arg1, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (Arg1, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Arg1, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg1, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Arg1, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (Arg1, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (Arg1, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Arg1, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (Arg1, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (Arg1, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg1, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Arg1) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Arg1) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, Arg1) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Arg1) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Arg1) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Arg1) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), Arg1) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Arg1) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Arg1) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Arg1) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg1) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Arg1) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, Arg1, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Arg1, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, Arg1, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Arg1, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Arg1, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Arg1, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), Arg1, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Arg1, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Arg1, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Arg1, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg1, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Arg1, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (Arg2, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (Arg2, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (Arg2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (Arg2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (Arg2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Arg2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (Arg2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (Arg2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (Arg2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (Arg2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (Arg2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (Arg2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Arg2, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Arg2) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Arg2) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, Arg2) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Arg2) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Arg2) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Arg2) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), Arg2) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Arg2) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Arg2) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Arg2) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Arg2) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, Arg2, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Arg2, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, Arg2, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Arg2, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Arg2, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Arg2, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), Arg2, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Arg2, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Arg2, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Arg2, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Arg2, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (Arg1, Arg2) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (Arg2, Arg1) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Arg1, Arg2, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Arg2, Arg1, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (Arg2, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (Arg2, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (Arg2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (Arg2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (Arg2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Arg2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (Arg2, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (Arg2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (Arg2, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (Arg2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (Arg2, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (Arg2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (Arg2, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (Arg2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (Arg2, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (Arg2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (Arg2, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (Arg2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (Arg2, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Arg2) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, Arg2) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, Arg2) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, Arg2) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Arg2) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), Arg2) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), Arg2) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), Arg2) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Arg2) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), Arg2) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Arg2) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, Arg2, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, Arg2, Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, Arg2, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, Arg2, Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Arg2, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), Arg2, Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), Arg2, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), Arg2, Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Arg2, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), Arg2, Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Arg2, Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (Arg1, Arg2) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (Arg2, Arg1) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (Arg1, Arg2, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (Arg2, Arg1, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 2, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (Arg1, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Arg1, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Arg1, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Arg1, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Arg1, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Arg1, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Arg1, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Arg1, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Arg1, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Arg1, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Arg1, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Arg1, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Arg1, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Arg1, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Arg1) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Arg1) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Arg1) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, Arg1) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Arg1) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), Arg1) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Arg1) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), Arg1) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Arg1) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), Arg1) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg1) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Arg1) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Arg1, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, Arg1, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Arg1, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, Arg1, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Arg1, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), Arg1, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Arg1, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), Arg1, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Arg1, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), Arg1, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg1, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Arg1, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (Arg2, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Arg2, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Arg2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Arg2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Arg2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Arg2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Arg2, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Arg2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Arg2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Arg2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Arg2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Arg2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Arg2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (Arg2, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Arg2) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Arg2) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Arg2) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, Arg2) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Arg2) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), Arg2) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Arg2) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), Arg2) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Arg2) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), Arg2) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Arg2) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Arg2, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, Arg2, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Arg2, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, Arg2, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Arg2, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), Arg2, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Arg2, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), Arg2, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Arg2, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), Arg2, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Arg2, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Arg1, Arg2) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (Arg2, Arg1) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (Arg1, Arg2, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (Arg2, Arg1, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (Arg2, 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (Arg2, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Arg2, AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (Arg2, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Arg2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (Arg2, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Arg2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (Arg2, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Arg2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (Arg2, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Arg2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (Arg2, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Arg2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (Arg2, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Arg2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (Arg2, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Arg2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (Arg2, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Arg2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (Arg2, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Arg2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (Arg2, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Arg2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (Arg2, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Arg2) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, Arg2) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Arg2) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, Arg2) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Arg2) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), Arg2) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Arg2) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), Arg2) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Arg2) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), Arg2) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Arg2) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Arg2, Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, Arg2, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Arg2, Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, Arg2, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Arg2, Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), Arg2, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Arg2, Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), Arg2, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Arg2, Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), Arg2, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Arg2, Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Arg2, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Arg1, Arg2) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (Arg2, Arg1) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (Arg1, Arg2, Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (Arg2, Arg1, Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Arg1 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Arg1 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Arg1 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Arg1 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Arg1 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Arg1 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Arg1 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Arg1 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Arg1 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | Arg1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | Arg1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Arg1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Arg1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | Arg1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Arg1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | Arg1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Arg1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | Arg1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Arg1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | Arg1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Arg1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | Arg1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Arg1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Arg1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Arg2 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Arg2 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Arg2 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Arg2 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Arg2 | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Arg2 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Arg2 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Arg2 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Arg2 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Arg2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | Arg2) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Arg2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | Arg2) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Arg2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | Arg2) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Arg2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | Arg2) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Arg2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | Arg2) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Arg2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Arg2) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((Arg1 | Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((Arg2 | Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (Arg1 | Arg2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (Arg2 | Arg1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Arg2 | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((Arg2 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Arg2 | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((Arg2 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Arg2 | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((Arg2 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Arg2 | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((Arg2 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Arg2 | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Arg2 | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (Arg2 | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Arg2 | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (Arg2 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Arg2 | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (Arg2 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Arg2 | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (Arg2 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Arg2 | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (Arg2 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Arg2 | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Arg2 | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | Arg2), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | Arg2), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | Arg2), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | Arg2) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | Arg2) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | Arg2) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | Arg2) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Arg2) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | Arg2) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Arg2) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | Arg2) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Arg2) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | Arg2) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Arg2) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | Arg2) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((Arg1 | Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((Arg2 | Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (Arg1 | Arg2) M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (Arg2 | Arg1) M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((Arg1 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((Arg1 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((Arg1 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((Arg1 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (Arg1 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (Arg1 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (Arg1 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (Arg1 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (Arg1 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Arg2) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Arg2) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Arg2) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Arg2) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Arg2) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Arg2) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 4, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((Arg2 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((Arg2 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((Arg2 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((Arg2 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (Arg2 << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (Arg2 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (Arg2 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (Arg2 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (Arg2 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << Arg3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Arg3), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Arg3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Arg3), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Arg3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Arg3), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Arg3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Arg3), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Arg3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Arg3), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Arg3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Arg3), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Arg3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Arg3) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Arg3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Arg3) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Arg3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Arg3) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Arg3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Arg3) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Arg3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Arg3) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Arg3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Arg3) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Arg1 << Arg3), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Arg2 << Arg3), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (Arg1 << Arg3) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Arg2 << Arg3) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 4, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Arg2 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((Arg2 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Arg2 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((Arg2 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Arg2 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((Arg2 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Arg2 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((Arg2 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Arg2 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Arg2 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (Arg2 << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Arg2 << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (Arg2 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Arg2 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (Arg2 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Arg2 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (Arg2 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Arg2 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (Arg2 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Arg2 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Arg2 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << Arg3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Arg3), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Arg3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Arg3), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Arg3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Arg3), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Arg3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Arg3), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Arg3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Arg3), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Arg3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Arg3), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Arg3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Arg3) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Arg3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Arg3) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Arg3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Arg3) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Arg3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Arg3) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Arg3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Arg3) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Arg3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Arg3) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Arg1 << Arg3), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Arg2 << Arg3), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (Arg1 << Arg3) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Arg2 << Arg3) M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((Arg1 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((Arg1 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((Arg1 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((Arg1 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (Arg1 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (Arg1 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (Arg1 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (Arg1 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (Arg1 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> Arg2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> Arg2) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> Arg2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> Arg2) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Arg2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> Arg2) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Arg2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> Arg2) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Arg2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> Arg2) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> Arg2) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 4, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((Arg2 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((Arg2 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((Arg2 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((Arg2 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (Arg2 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (Arg2 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (Arg2 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (Arg2 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (Arg2 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> Arg3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> Arg3), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> Arg3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> Arg3), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Arg3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> Arg3), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> Arg3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> Arg3), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Arg3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> Arg3), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> Arg3), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> Arg3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> Arg3) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> Arg3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> Arg3) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Arg3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> Arg3) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Arg3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> Arg3) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Arg3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> Arg3) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> Arg3) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((Arg1 >> Arg3), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Arg2 >> Arg3), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (Arg1 >> Arg3) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Arg2 >> Arg3) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 4, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Arg2 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((Arg2 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Arg2 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((Arg2 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Arg2 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((Arg2 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Arg2 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((Arg2 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Arg2 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Arg2 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (Arg2 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Arg2 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (Arg2 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Arg2 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (Arg2 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Arg2 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (Arg2 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Arg2 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (Arg2 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Arg2 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Arg2 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> Arg3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> Arg3), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> Arg3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> Arg3), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Arg3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> Arg3), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> Arg3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> Arg3), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Arg3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> Arg3), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> Arg3), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> Arg3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> Arg3) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> Arg3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> Arg3) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Arg3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> Arg3) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Arg3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> Arg3) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Arg3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> Arg3) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Arg3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> Arg3) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((Arg1 >> Arg3), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Arg2 >> Arg3), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (Arg1 >> Arg3) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Arg2 >> Arg3) M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((Arg1 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((Arg1 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((Arg1 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((Arg1 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (Arg1 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (Arg1 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (Arg1 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (Arg1 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (Arg1 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - Arg1), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - Arg1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Arg1), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - Arg1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Arg1), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Arg1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - Arg1) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - Arg1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - Arg1) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - Arg1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Arg1) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - Arg1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - Arg1) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - Arg1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Arg1) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - Arg1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Arg1) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Arg1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((Arg2 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((Arg2 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((Arg2 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((Arg2 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (Arg2 - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (Arg2 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (Arg2 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (Arg2 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (Arg2 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - Arg2) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - Arg2) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - Arg2) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - Arg2) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Arg2) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - Arg2) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - Arg2) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - Arg2) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Arg2) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - Arg2) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Arg2) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Arg2) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((Arg1 - Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((Arg2 - Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (Arg1 - Arg2) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (Arg2 - Arg1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Arg2 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((Arg2 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Arg2 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((Arg2 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Arg2 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((Arg2 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Arg2 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((Arg2 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Arg2 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Arg2 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (Arg2 - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Arg2 - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (Arg2 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Arg2 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (Arg2 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Arg2 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (Arg2 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Arg2 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (Arg2 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Arg2 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Arg2 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - Arg2), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Arg2), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Arg2), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - Arg2) M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - Arg2) M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - Arg2) M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - Arg2) M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Arg2) M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - Arg2) M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - Arg2) M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - Arg2) M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Arg2) M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - Arg2) M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Arg2) M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Arg2) M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((Arg1 - Arg2), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((Arg2 - Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (Arg1 - Arg2) M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (Arg2 - Arg1) M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 2, NotSerialized) { /* Conversion of the first operand */ Store ((Arg1 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Arg1 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((Arg1 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Arg1 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((Arg1 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Arg1 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((Arg1 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Arg1 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((Arg1 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Arg1 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg1 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Arg1 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Arg1 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Arg1 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (Arg1 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Arg1 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (Arg1 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Arg1 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Arg1 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Arg1 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (Arg1 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Arg1 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Arg1 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ Arg1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ Arg1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ Arg1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ Arg1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Arg1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ Arg1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ Arg1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ Arg1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Arg1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ Arg1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Arg1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ Arg1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ Arg1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ Arg1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ Arg1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Arg1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ Arg1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ Arg1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ Arg1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Arg1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ Arg1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Arg1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((Arg2 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((Arg2 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((Arg2 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((Arg2 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Arg2 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (Arg2 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (Arg2 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (Arg2 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (Arg2 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (Arg2 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Arg2 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ Arg2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ Arg2) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ Arg2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ Arg2) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Arg2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ Arg2) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ Arg2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ Arg2) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Arg2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ Arg2) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Arg2) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((Arg1 ^ Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((Arg2 ^ Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (Arg1 ^ Arg2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (Arg2 ^ Arg1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 3, NotSerialized) { /* Conversion of the first operand */ Store ((Arg2 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Arg2 ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((Arg2 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Arg2 ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((Arg2 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Arg2 ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((Arg2 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Arg2 ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((Arg2 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Arg2 ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((Arg2 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Arg2 ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (Arg2 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Arg2 ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (Arg2 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Arg2 ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (Arg2 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Arg2 ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (Arg2 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Arg2 ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (Arg2 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Arg2 ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Arg2 ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ Arg2), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ Arg2), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ Arg2), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ Arg2), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Arg2), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ Arg2), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ Arg2), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ Arg2), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Arg2), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ Arg2), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg2), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ Arg2), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ Arg2) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ Arg2) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ Arg2) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ Arg2) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Arg2) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ Arg2) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ Arg2) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ Arg2) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Arg2) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ Arg2) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Arg2) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ Arg2) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((Arg1 ^ Arg2), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((Arg2 ^ Arg1), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (Arg1 ^ Arg2) M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (Arg2 ^ Arg1) M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x01) { 0x0B // . }) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x0B // . }) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x01) { 0x0B // . }) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x0B // . }) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x01) { 0x0B // . }) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x0B // . }) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x01) { 0x0B // . }) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x0B // . }) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 2, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg1 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Arg1 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg1 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Arg1 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg1 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Arg1 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg1 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Arg1 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg1 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Arg1 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Arg1 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Arg1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Arg1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Arg1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Arg1) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg2 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Arg2 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg2 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Arg2 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg2 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Arg2 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg2 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Arg2 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg2 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Arg2 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Arg2 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Arg2) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Arg2) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Arg2) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Arg2) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Arg2) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Arg2) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Arg2) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Arg2) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Arg2) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Arg2) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Arg2) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Arg2) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Arg1 && Arg2) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Arg2 && Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg2 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Arg2 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg2 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Arg2 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg2 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Arg2 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg2 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Arg2 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg2 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Arg2 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg2 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Arg2 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Arg2) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Arg2) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Arg2) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Arg2) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Arg2) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Arg2) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Arg2) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Arg2) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Arg2) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Arg2) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Arg2) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Arg2) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Arg1 && Arg2) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Arg2 && Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 2, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg1 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Arg1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg1 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Arg1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Arg1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Arg1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Arg1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Arg1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || Arg1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || Arg1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || Arg1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Arg1) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg1 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Arg1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg1 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Arg1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Arg1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Arg1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Arg1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Arg1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Arg1) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Arg1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Arg1) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Arg1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Arg1) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Arg1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Arg1) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Arg1) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Arg2 || Arg1) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Arg1 || Arg2) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 3, NotSerialized) { /* Conversion of the first operand */ Local0 = (Arg1 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Arg1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Arg1 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Arg1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Arg1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Arg1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Arg1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Arg1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Arg1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Arg1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Arg1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Arg1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Arg1) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Arg1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Arg1) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Arg1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Arg1) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Arg1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Arg1) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Arg1) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Arg2 || Arg1) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Arg1 || Arg2) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0, Buffer (0x01) { 0x00 // . }) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x00 // . }) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0, Buffer (0x01) { 0x00 // . }) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x00 // . }) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 2, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == Arg1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == Arg1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == Arg1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == Arg1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == Arg1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == Arg1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == Arg1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == Arg1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == Arg1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == Arg1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == Arg1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > Arg1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > Arg1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > Arg1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > Arg1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > Arg1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > Arg1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > Arg1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > Arg1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > Arg1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > Arg1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > Arg1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > Arg1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= Arg1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= Arg1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= Arg1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= Arg1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= Arg1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= Arg1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= Arg1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= Arg1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= Arg1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= Arg1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= Arg1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= Arg1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= Arg1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= Arg1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= Arg1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < Arg1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < Arg1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < Arg1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < Arg1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < Arg1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < Arg1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < Arg1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < Arg1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < Arg1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < Arg1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < Arg1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < Arg1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < Arg1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < Arg1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < Arg1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= Arg1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= Arg1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= Arg1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= Arg1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= Arg1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= Arg1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= Arg1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= Arg1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= Arg1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= Arg1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= Arg1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= Arg1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= Arg1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= Arg1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= Arg1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= Arg1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= Arg1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != Arg1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != Arg1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != Arg1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != Arg1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != Arg1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != Arg1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != Arg1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != Arg1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != Arg1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != Arg1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != Arg1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != Arg1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != Arg1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != Arg1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != Arg1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != Arg1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != Arg1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != Arg1) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 2, NotSerialized) { /* LEqual */ Local0 = (0xD650A284 == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == Arg1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == Arg1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == Arg1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == Arg1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == Arg1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == Arg1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == Arg1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == Arg1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == Arg1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == Arg1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == Arg1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > Arg1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > Arg1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > Arg1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > Arg1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > Arg1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > Arg1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > Arg1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > Arg1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > Arg1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > Arg1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > Arg1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > Arg1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= Arg1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= Arg1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= Arg1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= Arg1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= Arg1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= Arg1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= Arg1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= Arg1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= Arg1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= Arg1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= Arg1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= Arg1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= Arg1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= Arg1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= Arg1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < Arg1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < Arg1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < Arg1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < Arg1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < Arg1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < Arg1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < Arg1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < Arg1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < Arg1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < Arg1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < Arg1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < Arg1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < Arg1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < Arg1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < Arg1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= Arg1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= Arg1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= Arg1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= Arg1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= Arg1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= Arg1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= Arg1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= Arg1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= Arg1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= Arg1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= Arg1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= Arg1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= Arg1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= Arg1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= Arg1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= Arg1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= Arg1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != Arg1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != Arg1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != Arg1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != Arg1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != Arg1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != Arg1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != Arg1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != Arg1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != Arg1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != Arg1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != Arg1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != Arg1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != Arg1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != Arg1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != Arg1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != Arg1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != Arg1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != Arg1) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 2, NotSerialized) { /* LEqual */ Local0 = (0x0321 == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == Arg1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == Arg1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == Arg1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == Arg1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == Arg1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == Arg1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == Arg1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == Arg1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == Arg1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == Arg1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == Arg1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == Arg1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > Arg1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > Arg1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > Arg1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > Arg1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > Arg1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > Arg1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > Arg1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > Arg1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > Arg1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > Arg1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > Arg1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > Arg1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > Arg1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= Arg1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= Arg1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= Arg1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= Arg1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= Arg1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= Arg1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= Arg1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= Arg1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= Arg1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= Arg1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= Arg1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= Arg1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= Arg1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= Arg1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= Arg1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < Arg1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < Arg1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < Arg1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < Arg1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < Arg1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < Arg1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < Arg1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < Arg1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < Arg1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < Arg1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < Arg1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < Arg1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < Arg1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < Arg1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < Arg1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= Arg1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= Arg1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= Arg1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= Arg1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= Arg1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= Arg1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= Arg1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= Arg1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= Arg1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= Arg1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= Arg1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= Arg1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= Arg1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= Arg1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= Arg1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= Arg1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= Arg1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != Arg1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != Arg1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != Arg1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != Arg1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != Arg1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != Arg1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != Arg1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != Arg1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != Arg1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != Arg1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != Arg1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != Arg1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != Arg1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != Arg1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != Arg1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != Arg1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != Arg1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != Arg1) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 3, NotSerialized) { Local0 = Concatenate (0x0321, Arg1) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, Arg2) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, Arg1) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, Arg2) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Arg1) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Arg2) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Arg1) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), Arg2) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Arg1) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), Arg2) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg2) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, Arg2, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, Arg2, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Arg1, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), Arg2, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), Arg1, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), Arg2, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Arg1, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), Arg2, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg2, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 3, NotSerialized) { Local0 = Concatenate (0x0321, Arg1) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, Arg2) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, Arg1) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, Arg2) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Arg1) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Arg2) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Arg1) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), Arg2) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Arg1) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), Arg2) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg2) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, Arg2, Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, Arg2, Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Arg1, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), Arg2, Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), Arg1, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), Arg2, Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Arg1, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), Arg2, Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg1, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Arg2, Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 3, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, Arg2) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, Arg1) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Arg2) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), Arg1) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Arg2) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), Arg1) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Arg2) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), Arg1) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, Arg2, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Arg2, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), Arg1, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Arg2, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), Arg1, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Arg2, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), Arg1, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 2, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Arg1) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Arg1) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Arg1) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Arg1) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Arg1, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Arg1, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Arg1, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Arg1, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 2, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Arg1) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Arg1) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Arg1) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Arg1) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Arg1, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Arg1, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Arg1, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Arg1, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Method (M067, 2, NotSerialized) { Store (AUS6 [Arg1], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [Arg1], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [Arg1], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [Arg1], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [Arg1], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [Arg1], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [Arg1], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [Arg1], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [Arg1], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [Arg1], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [Arg1], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [Arg1], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [Arg1], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [Arg1], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [Arg1], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [Arg1] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [Arg1] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [Arg1] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [Arg1] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [Arg1] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [Arg1] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [Arg1] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [Arg1] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [Arg1] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [Arg1] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [Arg1] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [Arg1] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [Arg1] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [Arg1] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [Arg1] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [Arg1] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [Arg1] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [Arg1] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [Arg1] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [Arg1] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [Arg1] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [Arg1] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [Arg1] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [Arg1] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [Arg1] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [Arg1] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [Arg1] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [Arg1] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [Arg1] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [Arg1] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 3, NotSerialized) { CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, Arg1) If (F64) { Fatal (0xFF, 0xFFFFFFFF, Arg2) } Else { Fatal (0xFF, 0xFFFFFFFF, Arg2) } CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) } /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 2, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", Arg1, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, Arg1, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, Arg1, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Arg1, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), Arg1, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), Arg1, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), Arg1, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Arg1, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), Arg1, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg1, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", Arg1, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg1, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, Arg1, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, Arg1, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Arg1, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), Arg1, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), Arg1, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), Arg1, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), Arg1, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), Arg1, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg1, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg1, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Arg1) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, Arg1) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, Arg1) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Arg1) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Arg1) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Arg1) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, Arg1) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, Arg1, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, Arg1, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, Arg1, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 3, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Arg1) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Arg1) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Arg1) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Arg1) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Arg1) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Arg1) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Arg1) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Arg2, Arg1) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Arg1) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Arg2, Arg1) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Arg2, Arg1) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Arg2, Arg1) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Arg2, Arg1) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Arg2, Arg1) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Arg2, Arg1) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Arg2, Arg1) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Arg2, Arg1) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg2, Arg1) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Arg1) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Arg2, Arg1, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Arg1, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Arg2, Arg1, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Arg2, Arg1, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Arg2, Arg1, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Arg2, Arg1, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Arg2, Arg1, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Arg2, Arg1, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Arg2, Arg1, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Arg2, Arg1, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg2, Arg1, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Arg1, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 3, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Arg1) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Arg1) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Arg1) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Arg1) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Arg1) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Arg1) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Arg1) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Arg1, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Arg1, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Arg1, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Arg1, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Arg1, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Arg1, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Arg1, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Arg2, Arg1) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Arg1) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Arg2, Arg1) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Arg2, Arg1) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Arg2, Arg1) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Arg2, Arg1) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Arg2, Arg1) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Arg2, Arg1) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Arg2, Arg1) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Arg2, Arg1) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg2, Arg1) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Arg1) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Arg2, Arg1, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Arg2, Arg1, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Arg2, Arg1, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Arg2, Arg1, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Arg2, Arg1, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Arg2, Arg1, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Arg2, Arg1, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Arg2, Arg1, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Arg2, Arg1, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Arg2, Arg1, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Arg2, Arg1, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Arg2, Arg1, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Method (M06A, 2, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, Arg1) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, Arg1) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64t, 1) */ /* Method(m32t, 1) */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 3, NotSerialized) { CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (Arg1) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z121, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (Arg2) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z121, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 2, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, arg1) */ CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z121, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 2, Serialized) { Event (EVT0) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, Arg1) CH03 (Arg0, Z121, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z121, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 4, Serialized) { Name (IST0, 0x00) Method (M001, 1, NotSerialized) { If (Arg0) { IST0 = 0x00 } } Method (M002, 1, NotSerialized) { If (Arg0) { IST0 = 0x02 } } Method (M003, 1, NotSerialized) { If (Arg0) { IST0 = 0x03 } } Method (M004, 1, NotSerialized) { If (Arg0) { IST0 = 0x04 } } Method (M005, 2, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Arg1) { IST0 = 0x00 } } Method (M006, 2, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Arg1) { IST0 = 0x06 } } Method (M007, 2, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Arg1) { IST0 = 0x07 } } Method (M008, 2, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (Arg1) { IST0 = 0x08 } } Method (M009, 1, NotSerialized) { While (Arg0) { IST0 = 0x00 Break } } /* If */ IST0 = 0x01 M001 (Arg3) M600 (Arg0, 0x00, IST0, 0x01) M002 (Arg1) M600 (Arg0, 0x01, IST0, 0x02) M003 (Arg2) M600 (Arg0, 0x02, IST0, 0x03) M004 (Arg2) M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00, Arg3) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00, Arg1) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00, Arg2) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00, Arg2) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 (Arg3) M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64u, 1) */ /* Method(m32u, 1) */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M06F, 3, NotSerialized) { /* LEqual */ Local0 = ("21 03 00" == Arg1) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("21 03 01" == Arg1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS9 == Arg1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUSA == Arg1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) == Arg1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) == Arg1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) == Arg1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) == Arg1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) == Arg1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x0A) == Arg1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) == Arg1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) == Arg1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("21 03 00" > Arg1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("21 03 01" > Arg1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("21 03 0 " > Arg1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("21 03 00q" > Arg1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS9 > Arg1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUSA > Arg1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) > Arg1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) > Arg1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) > Arg1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) > Arg1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) > Arg1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x0A) > Arg1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) > Arg1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) > Arg1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("21 03 00" >= Arg1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("21 03 01" >= Arg1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("21 03 0 " >= Arg1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("21 03 00q" >= Arg1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS9 >= Arg1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUSA >= Arg1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) >= Arg1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) >= Arg1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) >= Arg1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) >= Arg1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) >= Arg1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x0A) >= Arg1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) >= Arg1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) >= Arg1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("21 03 00" < Arg1) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("21 03 01" < Arg1) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("21 03 0 " < Arg1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("21 03 00q" < Arg1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS9 < Arg1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUSA < Arg1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) < Arg1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) < Arg1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) < Arg1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) < Arg1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) < Arg1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x0A) < Arg1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) < Arg1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) < Arg1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("21 03 00" <= Arg1) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("21 03 01" <= Arg1) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("21 03 0 " <= Arg1) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("21 03 00q" <= Arg1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS9 <= Arg1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUSA <= Arg1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) <= Arg1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) <= Arg1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) <= Arg1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) <= Arg1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) <= Arg1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x0A) <= Arg1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) <= Arg1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) <= Arg1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("21 03 00" != Arg1) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("21 03 01" != Arg1) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("21 03 0 " != Arg1) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("21 03 00q" != Arg1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS9 != Arg1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUSA != Arg1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) != Arg1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) != Arg1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) != Arg1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) != Arg1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) != Arg1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x0A) != Arg1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) != Arg1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) != Arg1) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" == Arg2) M600 (Arg0, 0x52, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" == Arg2) M600 (Arg0, 0x53, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" > Arg2) M600 (Arg0, 0x54, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" > Arg2) M600 (Arg0, 0x55, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" >= Arg2) M600 (Arg0, 0x56, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" >= Arg2) M600 (Arg0, 0x57, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" < Arg2) M600 (Arg0, 0x58, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" < Arg2) M600 (Arg0, 0x59, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" <= Arg2) M600 (Arg0, 0x5A, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" <= Arg2) M600 (Arg0, 0x5B, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" != Arg2) M600 (Arg0, 0x5C, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" != Arg2) M600 (Arg0, 0x5D, Local0, Ones) } /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M070, 3, NotSerialized) { Local0 = Concatenate ("", Arg1) M600 (Arg0, 0x00, Local0, BS25) Local0 = Concatenate ("1234q", Arg1) M600 (Arg0, 0x01, Local0, BS26) Local0 = Concatenate (AUS0, Arg1) M600 (Arg0, 0x02, Local0, BS25) Local0 = Concatenate (AUS1, Arg1) M600 (Arg0, 0x03, Local0, BS26) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), Arg1) M600 (Arg0, 0x04, Local0, BS25) Local0 = Concatenate (DerefOf (RefOf (AUS1)), Arg1) M600 (Arg0, 0x05, Local0, BS26) } Local0 = Concatenate (DerefOf (PAUS [0x00]), Arg1) M600 (Arg0, 0x06, Local0, BS25) Local0 = Concatenate (DerefOf (PAUS [0x01]), Arg1) M600 (Arg0, 0x07, Local0, BS26) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), Arg1) M600 (Arg0, 0x08, Local0, BS25) Local0 = Concatenate (M601 (0x02, 0x01), Arg1) M600 (Arg0, 0x09, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Arg1) M600 (Arg0, 0x0A, Local0, BS25) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Arg1) M600 (Arg0, 0x0B, Local0, BS26) } Concatenate ("", Arg1, Local0) M600 (Arg0, 0x0C, Local0, BS25) Concatenate ("1234q", Arg1, Local0) M600 (Arg0, 0x0D, Local0, BS26) Concatenate (AUS0, Arg1, Local0) M600 (Arg0, 0x0E, Local0, BS25) Concatenate (AUS1, Arg1, Local0) M600 (Arg0, 0x0F, Local0, BS26) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), Arg1, Local0) M600 (Arg0, 0x10, Local0, BS25) Concatenate (DerefOf (RefOf (AUS1)), Arg1, Local0) M600 (Arg0, 0x11, Local0, BS26) } Concatenate (DerefOf (PAUS [0x00]), Arg1, Local0) M600 (Arg0, 0x12, Local0, BS25) Concatenate (DerefOf (PAUS [0x01]), Arg1, Local0) M600 (Arg0, 0x13, Local0, BS26) /* Method returns String */ Concatenate (M601 (0x02, 0x00), Arg1, Local0) M600 (Arg0, 0x14, Local0, BS25) Concatenate (M601 (0x02, 0x01), Arg1, Local0) M600 (Arg0, 0x15, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Arg1, Local0) M600 (Arg0, 0x16, Local0, BS25) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Arg1, Local0) M600 (Arg0, 0x17, Local0, BS26) } /* Boundary Cases */ Local0 = Concatenate ("", Arg2) M600 (Arg0, 0x18, Local0, BS27) } /* Method(m071, 1) */ /* Method(m072, 1) */ /* * Begin of the test body */ /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ If (F64) { Concatenate (__METHOD__, "-m640", Local0) SRMT (Local0) M640 (Local0, 0xFE7CB391D650A284) } Else { Concatenate (__METHOD__, "-m320", Local0) SRMT (Local0) M320 (Local0, 0xC179B3FE) } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m641", Local0) SRMT (Local0) M641 (Local0, 0xFE7CB391D650A284) } Else { Concatenate (__METHOD__, "-m321", Local0) SRMT (Local0) M321 (Local0, 0xFE7CB391D650A284, 0xC179B3FE) } /* Integer to String conversion of the Integer value */ /* of Expression of Case statement when Expression in */ /* Switch is either static String data or explicitly */ /* converted to String by ToDecimalString, ToHexString */ /* or ToString */ /* */ /* Note: Expression of Case can be only static data */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0, 0xFE7CB391D650A284) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0, 0xC179B3FE) } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0, 0xFE7CB391D650A284) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0, 0xC179B3FE) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0, 0xFE7CB391D650A284) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0, 0xFE7CB391D650A284, 0xC179B3FE) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0, 0x6E7C534136502214, 0x6E00534136002214) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0, 0x6179534E, 0x6E7C534136002214) } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0, 0xFE7CB391D650A284, 0x6E7C534136002214) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0, 0xC179B3FE, 0x6E7C534136002214) } /* Integer to Buffer conversion of the Integer value of */ /* Expression of Case statement when Expression in Switch */ /* is either static Buffer data or explicitly converted to */ /* Buffer by ToBuffer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64b", Local0) SRMT (Local0) M64B (Local0, "0321", "FE7CB391D650A284") } Else { Concatenate (__METHOD__, "-m32b", Local0) SRMT (Local0) M32B (Local0, "0321", "C179B3FE") } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m000", Local0) SRMT (Local0) M000 (Local0, "0321", "FE7CB391D650A284", "C179B3FE", "0") /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64c", Local0) SRMT (Local0) M64C (Local0, "0321", "FE7CB391D650A284", "3789012345678901", "D76162EE9EC35") } Else { Concatenate (__METHOD__, "-m32c", Local0) SRMT (Local0) M32C (Local0, "0321", "FE7CB391D650A284", "90123456", "55F2CC0") } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64D (Concatenate (__METHOD__, "-m64d")) } Else { M32D (Concatenate (__METHOD__, "-m32d")) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64E (Concatenate (__METHOD__, "-m64e")) } Else { M32E (Concatenate (__METHOD__, "-m32e")) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m02b", Local0) SRMT (Local0) M02B (Local0, "0321") If (F64) { Concatenate (__METHOD__, "-m64f", Local0) SRMT (Local0) M64F (Local0, "FE7CB391D650A284") } Else { Concatenate (__METHOD__, "-m32f", Local0) SRMT (Local0) M32F (Local0, "C179B3FE") } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64g", Local0) SRMT (Local0) M64G (Local0, "0321", "FE7CB391D650A284") } Else { Concatenate (__METHOD__, "-m32g", Local0) SRMT (Local0) M32G (Local0, "0321", "C179B3FE") } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m02c", Local0) SRMT (Local0) M02C (Local0, "0321", "B") If (F64) { Concatenate (__METHOD__, "-m64h", Local0) SRMT (Local0) M64H (Local0, "FE7CB391D650A284") } Else { Concatenate (__METHOD__, "-m32h", Local0) SRMT (Local0) M32H (Local0, "C179B3FE") } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m02d", Local0) SRMT (Local0) M02D (Local0, "B") /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m02e", Local0) SRMT (Local0) M02E (Local0, "0321", "FE7CB391D650A284", "C179B3FE") /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m02f", Local0) SRMT (Local0) M02F (Local0, "B") If (F64) { Concatenate (__METHOD__, "-m64i", Local0) SRMT (Local0) M64I (Local0, "FE7CB391D650A284", "B") } Else { Concatenate (__METHOD__, "-m32i", Local0) SRMT (Local0) M32I (Local0, "C179B3FE", "B") } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m030", Local0) SRMT (Local0) M030 (Local0, "B") /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m031", Local0) SRMT (Local0) M031 (Local0, "0321", "63") /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m032", Local0) SRMT(Local0) m032(Local0, "0321") */ /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m033", Local0) SRMT (Local0) M033 (Local0, "0321") /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m034", Local0) SRMT (Local0) M034 (Local0, "0321", "FE7CB391D650A284", "C179B3FE", "0") /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m035", Local0) SRMT (Local0) M035 (Local0, "0321", "", "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Concatenate (__METHOD__, "-m036", Local0) SRMT (Local0) M036 (Local0, "0321", "", "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character) */ Concatenate (__METHOD__, "-m037", Local0) SRMT (Local0) M037 (Local0, "0321", "", "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x00 // . }) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }, Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. }, Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x01) { 0x0B // . }) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0, Buffer (0x01) { 0x0B // . }) /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0, Buffer (0x01) { 0x0B // . }) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x0B // . }) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x0B // . }) } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0, Buffer (0x01) { 0x0B // . }) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x01) { 0x3F // ? }) /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m06c", Local0) SRMT(Local0) m06c(Local0, Buffer(3){0x21, 0x03, 0x00}) */ /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) M06E (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x01) { 0x00 // . }) /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Concatenate (__METHOD__, "-m06f", Local0) SRMT (Local0) M06F (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Concatenate (__METHOD__, "-m070", Local0) SRMT (Local0) M070 (Local0, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) } /* Run-method */ Method (OPR5, 0, NotSerialized) { Debug = "TEST: OPR5, Source Operand" M617 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oarg/MAIN.asl0000700000175000017500000000426614773714153031236 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("oarg", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/oarg/oarg.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/oarg/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oarg/Makefile0000700000175000017500000000022214773714153031435 0ustar ivanhuivanhu# oarg AMLMOD= oarg COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftonamed/0000700000175000017500000000000014773714154031352 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftonamed/RUN.asl0000700000175000017500000000362414773714154032527 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Source Operand, named object data by reference", TCLC, 0x09, W010)) { OPR4 () } FTTT () ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftonamed/oreftonamed1.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftonamed/oreftonam0000700000175000017500000351513414773714154033306 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to Named Objects' values * obtained by dereference of the references to these Objects. */ Name (Z091, 0x5B) Method (M616, 0, Serialized) { /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual. */ Method (M640, 1, NotSerialized) { /* LEqual */ Local0 = ("FE7CB391D650A284" == DerefOf (RefOf (I604))) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("fE7CB391D650A284" == DerefOf (RefOf (I604))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS4 == DerefOf (RefOf (I604))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS5 == DerefOf (RefOf (I604))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) == DerefOf (RefOf (I604))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) == DerefOf (RefOf (I604))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) == DerefOf (RefOf (I604))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) == DerefOf (RefOf (I604))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) == DerefOf (RefOf (I604))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x05) == DerefOf (RefOf (I604))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) == DerefOf (RefOf (I604))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) == DerefOf (RefOf (I604))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("FE7CB391D650A284" > DerefOf (RefOf (I604))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("fE7CB391D650A284" > DerefOf (RefOf (I604))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("FE7CB391D650A28 " > DerefOf (RefOf (I604))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("FE7CB391D650A284q" > DerefOf (RefOf (I604))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS4 > DerefOf (RefOf (I604))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS5 > DerefOf (RefOf (I604))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) > DerefOf (RefOf (I604))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) > DerefOf (RefOf (I604))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) > DerefOf (RefOf (I604))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) > DerefOf (RefOf (I604))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) > DerefOf (RefOf (I604))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x05) > DerefOf (RefOf (I604))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) > DerefOf (RefOf (I604))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) > DerefOf (RefOf (I604))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("FE7CB391D650A284" >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("fE7CB391D650A284" >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("FE7CB391D650A28 " >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("FE7CB391D650A284q" >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS4 >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS5 >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x05) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("FE7CB391D650A284" < DerefOf (RefOf (I604))) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("fE7CB391D650A284" < DerefOf (RefOf (I604))) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("FE7CB391D650A28 " < DerefOf (RefOf (I604))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("FE7CB391D650A284q" < DerefOf (RefOf (I604))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS4 < DerefOf (RefOf (I604))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS5 < DerefOf (RefOf (I604))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) < DerefOf (RefOf (I604))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) < DerefOf (RefOf (I604))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) < DerefOf (RefOf (I604))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) < DerefOf (RefOf (I604))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) < DerefOf (RefOf (I604))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x05) < DerefOf (RefOf (I604))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) < DerefOf (RefOf (I604))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) < DerefOf (RefOf (I604))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("FE7CB391D650A284" <= DerefOf (RefOf (I604))) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("fE7CB391D650A284" <= DerefOf (RefOf (I604))) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("FE7CB391D650A28 " <= DerefOf (RefOf (I604))) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("FE7CB391D650A284q" <= DerefOf (RefOf (I604))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS4 <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS5 <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x05) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("FE7CB391D650A284" != DerefOf (RefOf (I604))) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("fE7CB391D650A284" != DerefOf (RefOf (I604))) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("FE7CB391D650A28 " != DerefOf (RefOf (I604))) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("FE7CB391D650A284q" != DerefOf (RefOf (I604))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS4 != DerefOf (RefOf (I604))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS5 != DerefOf (RefOf (I604))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x05) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) != DerefOf (RefOf (I604))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) != DerefOf (RefOf (I604))) M600 (Arg0, 0x51, Local0, Ones) } } Method (M320, 1, NotSerialized) { /* LEqual */ Local0 = ("C179B3FE" == DerefOf (RefOf (I603))) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("c179B3FE" == DerefOf (RefOf (I603))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS3 == DerefOf (RefOf (I603))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS2 == DerefOf (RefOf (I603))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) == DerefOf (RefOf (I603))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) == DerefOf (RefOf (I603))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) == DerefOf (RefOf (I603))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) == DerefOf (RefOf (I603))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) == DerefOf (RefOf (I603))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x02) == DerefOf (RefOf (I603))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) == DerefOf (RefOf (I603))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) == DerefOf (RefOf (I603))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("C179B3FE" > DerefOf (RefOf (I603))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("c179B3FE" > DerefOf (RefOf (I603))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("C179B3F " > DerefOf (RefOf (I603))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("C179B3FEq" > DerefOf (RefOf (I603))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS3 > DerefOf (RefOf (I603))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS2 > DerefOf (RefOf (I603))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) > DerefOf (RefOf (I603))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) > DerefOf (RefOf (I603))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) > DerefOf (RefOf (I603))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) > DerefOf (RefOf (I603))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) > DerefOf (RefOf (I603))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x02) > DerefOf (RefOf (I603))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) > DerefOf (RefOf (I603))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) > DerefOf (RefOf (I603))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("C179B3FE" >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("c179B3FE" >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("C179B3F " >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("C179B3FEq" >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS3 >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS2 >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x02) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("C179B3FE" < DerefOf (RefOf (I603))) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("c179B3FE" < DerefOf (RefOf (I603))) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("C179B3F " < DerefOf (RefOf (I603))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("C179B3FEq" < DerefOf (RefOf (I603))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS3 < DerefOf (RefOf (I603))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS2 < DerefOf (RefOf (I603))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) < DerefOf (RefOf (I603))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) < DerefOf (RefOf (I603))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) < DerefOf (RefOf (I603))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) < DerefOf (RefOf (I603))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) < DerefOf (RefOf (I603))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x02) < DerefOf (RefOf (I603))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) < DerefOf (RefOf (I603))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) < DerefOf (RefOf (I603))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("C179B3FE" <= DerefOf (RefOf (I603))) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("c179B3FE" <= DerefOf (RefOf (I603))) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("C179B3F " <= DerefOf (RefOf (I603))) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("C179B3FEq" <= DerefOf (RefOf (I603))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS3 <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS2 <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x02) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("C179B3FE" != DerefOf (RefOf (I603))) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("c179B3FE" != DerefOf (RefOf (I603))) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("C179B3F " != DerefOf (RefOf (I603))) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("C179B3FEq" != DerefOf (RefOf (I603))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS3 != DerefOf (RefOf (I603))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS2 != DerefOf (RefOf (I603))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x02) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) != DerefOf (RefOf (I603))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) != DerefOf (RefOf (I603))) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M641, 1, NotSerialized) { Local0 = Concatenate ("", DerefOf (RefOf (I604))) M600 (Arg0, 0x00, Local0, BS10) Local0 = Concatenate ("1234q", DerefOf (RefOf (I604))) M600 (Arg0, 0x01, Local0, BS11) Local0 = Concatenate (AUS0, DerefOf (RefOf (I604))) M600 (Arg0, 0x02, Local0, BS10) Local0 = Concatenate (AUS1, DerefOf (RefOf (I604))) M600 (Arg0, 0x03, Local0, BS11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), DerefOf (RefOf (I604))) M600 (Arg0, 0x04, Local0, BS10) Local0 = Concatenate (DerefOf (RefOf (AUS1)), DerefOf (RefOf (I604))) M600 (Arg0, 0x05, Local0, BS11) } Local0 = Concatenate (DerefOf (PAUS [0x00]), DerefOf (RefOf (I604))) M600 (Arg0, 0x06, Local0, BS10) Local0 = Concatenate (DerefOf (PAUS [0x01]), DerefOf (RefOf (I604))) M600 (Arg0, 0x07, Local0, BS11) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), DerefOf (RefOf (I604))) M600 (Arg0, 0x08, Local0, BS10) Local0 = Concatenate (M601 (0x02, 0x01), DerefOf (RefOf (I604))) M600 (Arg0, 0x09, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (RefOf (I604))) M600 (Arg0, 0x0A, Local0, BS10) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (RefOf (I604))) M600 (Arg0, 0x0B, Local0, BS11) } Concatenate ("", DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x0C, Local0, BS10) Concatenate ("1234q", DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x0D, Local0, BS11) Concatenate (AUS0, DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x0E, Local0, BS10) Concatenate (AUS1, DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x0F, Local0, BS11) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x10, Local0, BS10) Concatenate (DerefOf (RefOf (AUS1)), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x11, Local0, BS11) } Concatenate (DerefOf (PAUS [0x00]), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x12, Local0, BS10) Concatenate (DerefOf (PAUS [0x01]), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x13, Local0, BS11) /* Method returns String */ Concatenate (M601 (0x02, 0x00), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x14, Local0, BS10) Concatenate (M601 (0x02, 0x01), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x15, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x16, Local0, BS10) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x17, Local0, BS11) } } Method (M321, 1, NotSerialized) { Local0 = Concatenate ("", DerefOf (RefOf (I603))) M600 (Arg0, 0x00, Local0, BS12) Local0 = Concatenate ("1234q", DerefOf (RefOf (I603))) M600 (Arg0, 0x01, Local0, BS13) Local0 = Concatenate (AUS0, DerefOf (RefOf (I603))) M600 (Arg0, 0x02, Local0, BS12) Local0 = Concatenate (AUS1, DerefOf (RefOf (I603))) M600 (Arg0, 0x03, Local0, BS13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), DerefOf (RefOf (I603))) M600 (Arg0, 0x04, Local0, BS12) Local0 = Concatenate (DerefOf (RefOf (AUS1)), DerefOf (RefOf (I603))) M600 (Arg0, 0x05, Local0, BS13) } Local0 = Concatenate (DerefOf (PAUS [0x00]), DerefOf (RefOf (I603))) M600 (Arg0, 0x06, Local0, BS12) Local0 = Concatenate (DerefOf (PAUS [0x01]), DerefOf (RefOf (I603))) M600 (Arg0, 0x07, Local0, BS13) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), DerefOf (RefOf (I603))) M600 (Arg0, 0x08, Local0, BS12) Local0 = Concatenate (M601 (0x02, 0x01), DerefOf (RefOf (I603))) M600 (Arg0, 0x09, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (RefOf (I603))) M600 (Arg0, 0x0A, Local0, BS12) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (RefOf (I603))) M600 (Arg0, 0x0B, Local0, BS13) } Local0 = Concatenate ("", DerefOf (RefOf (I604))) M600 (Arg0, 0x0C, Local0, BS14) Local0 = Concatenate ("1234q", DerefOf (RefOf (I604))) M600 (Arg0, 0x0D, Local0, BS15) Concatenate ("", DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x0E, Local0, BS12) Concatenate ("1234q", DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x0F, Local0, BS13) Concatenate (AUS0, DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x10, Local0, BS12) Concatenate (AUS1, DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x11, Local0, BS13) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x12, Local0, BS12) Concatenate (DerefOf (RefOf (AUS1)), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x13, Local0, BS13) } Concatenate (DerefOf (PAUS [0x00]), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x14, Local0, BS12) Concatenate (DerefOf (PAUS [0x01]), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x15, Local0, BS13) /* Method returns String */ Concatenate (M601 (0x02, 0x00), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x16, Local0, BS12) Concatenate (M601 (0x02, 0x01), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x17, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x18, Local0, BS12) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x19, Local0, BS13) } Concatenate ("", DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x1A, Local0, BS14) Concatenate ("1234q", DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x1B, Local0, BS15) } /* Method(m642, 1) */ /* Method(m322, 1) */ /* Method(m643, 1) */ /* Method(m323, 1) */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == DerefOf (RefOf (I604))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == DerefOf (RefOf (I604))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == DerefOf (RefOf (I604))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == DerefOf (RefOf (I604))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == DerefOf (RefOf (I604))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (RefOf (I604))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == DerefOf (RefOf (I604))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == DerefOf (RefOf (I604))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == DerefOf (RefOf (I604))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == DerefOf (RefOf (I604))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == DerefOf (RefOf (I604))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (RefOf (I604))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > DerefOf (RefOf (I604))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > DerefOf (RefOf (I604))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > DerefOf (RefOf (I604))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > DerefOf (RefOf (I604))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > DerefOf (RefOf (I604))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > DerefOf (RefOf (I604))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > DerefOf (RefOf (I604))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > DerefOf (RefOf (I604))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > DerefOf (RefOf (I604))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > DerefOf (RefOf (I604))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > DerefOf (RefOf (I604))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > DerefOf (RefOf (I604))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > DerefOf (RefOf (I604))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > DerefOf (RefOf (I604))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= DerefOf (RefOf (I604))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= DerefOf (RefOf (I604))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < DerefOf (RefOf (I604))) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < DerefOf (RefOf (I604))) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < DerefOf (RefOf (I604))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < DerefOf (RefOf (I604))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < DerefOf (RefOf (I604))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < DerefOf (RefOf (I604))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < DerefOf (RefOf (I604))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < DerefOf (RefOf (I604))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < DerefOf (RefOf (I604))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < DerefOf (RefOf (I604))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < DerefOf (RefOf (I604))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < DerefOf (RefOf (I604))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < DerefOf (RefOf (I604))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < DerefOf (RefOf (I604))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= DerefOf (RefOf (I604))) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= DerefOf (RefOf (I604))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= DerefOf (RefOf (I604))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= DerefOf (RefOf (I604))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= DerefOf (RefOf (I604))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != DerefOf (RefOf (I604))) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != DerefOf (RefOf (I604))) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != DerefOf (RefOf (I604))) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != DerefOf (RefOf (I604))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != DerefOf (RefOf (I604))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != DerefOf (RefOf (I604))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != DerefOf (RefOf (I604))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != DerefOf (RefOf (I604))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != DerefOf (RefOf (I604))) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == DerefOf (RefOf (I603))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == DerefOf (RefOf (I603))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == DerefOf (RefOf (I603))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == DerefOf (RefOf (I603))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (RefOf (I603))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == DerefOf (RefOf (I603))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == DerefOf (RefOf (I603))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == DerefOf (RefOf (I603))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == DerefOf (RefOf (I603))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == DerefOf (RefOf (I603))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (RefOf (I603))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == DerefOf (RefOf (I603))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > DerefOf (RefOf (I603))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > DerefOf (RefOf (I603))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > DerefOf (RefOf (I603))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > DerefOf (RefOf (I603))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > DerefOf (RefOf (I603))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > DerefOf (RefOf (I603))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > DerefOf (RefOf (I603))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > DerefOf (RefOf (I603))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > DerefOf (RefOf (I603))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > DerefOf (RefOf (I603))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > DerefOf (RefOf (I603))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > DerefOf (RefOf (I603))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > DerefOf (RefOf (I603))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > DerefOf (RefOf (I603))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= DerefOf (RefOf (I603))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= DerefOf (RefOf (I603))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < DerefOf (RefOf (I603))) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < DerefOf (RefOf (I603))) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < DerefOf (RefOf (I603))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < DerefOf (RefOf (I603))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < DerefOf (RefOf (I603))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < DerefOf (RefOf (I603))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < DerefOf (RefOf (I603))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < DerefOf (RefOf (I603))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < DerefOf (RefOf (I603))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < DerefOf (RefOf (I603))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < DerefOf (RefOf (I603))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < DerefOf (RefOf (I603))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < DerefOf (RefOf (I603))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < DerefOf (RefOf (I603))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= DerefOf (RefOf (I603))) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= DerefOf (RefOf (I603))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= DerefOf (RefOf (I603))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= DerefOf (RefOf (I603))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= DerefOf (RefOf (I603))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != DerefOf (RefOf (I603))) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != DerefOf (RefOf (I603))) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != DerefOf (RefOf (I603))) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != DerefOf (RefOf (I603))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != DerefOf (RefOf (I603))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != DerefOf (RefOf (I603))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != DerefOf (RefOf (I603))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != DerefOf (RefOf (I603))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != DerefOf (RefOf (I603))) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ Method (M645, 1, NotSerialized) { Local0 = Concatenate (DerefOf (RefOf (I604)), DerefOf (RefOf (I604))) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, DerefOf (RefOf (I604))) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (DerefOf (RefOf (I604)), 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (DerefOf (RefOf (I604)), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (DerefOf (RefOf (I604)), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { Local0 = Concatenate (DerefOf (RefOf (I603)), DerefOf (RefOf (I603))) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, DerefOf (RefOf (I603))) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (DerefOf (RefOf (I603)), 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (DerefOf (RefOf (I603)), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (DerefOf (RefOf (I603)), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (I604))) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (I604))) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, DerefOf (RefOf (I604))) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, DerefOf (RefOf (I604))) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (I604))) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (I604))) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (I604))) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (I604))) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (I604))) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (I604))) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (I604))) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (I604))) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (I603))) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (I603))) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, DerefOf (RefOf (I603))) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, DerefOf (RefOf (I603))) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (I603))) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (I603))) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (I603))) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (I603))) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (I603))) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (I603))) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (I603))) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (I603))) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (I604))) M600 (Arg0, 0x0C, Local0, BB14) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (I604))) M600 (Arg0, 0x0D, Local0, BB15) Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (I603)), Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x1A, Local0, BB14) Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (I604)), Local0) M600 (Arg0, 0x1B, Local0, BB15) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ Method (M647, 1, NotSerialized) { Local0 = ToString (DerefOf (RefOf (I60D)), Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (DerefOf (RefOf (I60D)), 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (DerefOf (RefOf (I60E)), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (DerefOf (RefOf (I60D)), AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (DerefOf (RefOf (I60D)), AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (DerefOf (RefOf (I60E)), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (DerefOf (RefOf (I60D)), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (DerefOf (RefOf (I60D)), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (DerefOf (RefOf (I60E)), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (DerefOf (RefOf (I60D)), DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (DerefOf (RefOf (I60D)), DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (DerefOf (RefOf (I60E)), DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (DerefOf (RefOf (I60D)), M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (DerefOf (RefOf (I60D)), M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (DerefOf (RefOf (I60E)), M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (RefOf (I60D)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (DerefOf (RefOf (I60D)), DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (DerefOf (RefOf (I60E)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (DerefOf (RefOf (I60D)), Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (DerefOf (RefOf (I60D)), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (DerefOf (RefOf (I60E)), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (DerefOf (RefOf (I60D)), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (DerefOf (RefOf (I60D)), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (DerefOf (RefOf (I60E)), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (DerefOf (RefOf (I60D)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (DerefOf (RefOf (I60D)), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (DerefOf (RefOf (I60E)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (DerefOf (RefOf (I60D)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (DerefOf (RefOf (I60D)), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (DerefOf (RefOf (I60E)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (DerefOf (RefOf (I60D)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (DerefOf (RefOf (I60D)), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (DerefOf (RefOf (I60E)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (RefOf (I60D)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (DerefOf (RefOf (I60D)), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (DerefOf (RefOf (I60E)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { Local0 = ToString (DerefOf (RefOf (I60C)), Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (DerefOf (RefOf (I60C)), 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (DerefOf (RefOf (I60F)), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (DerefOf (RefOf (I60C)), AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (DerefOf (RefOf (I60C)), AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (DerefOf (RefOf (I60F)), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (DerefOf (RefOf (I60C)), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (DerefOf (RefOf (I60C)), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (DerefOf (RefOf (I60F)), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (DerefOf (RefOf (I60C)), DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (DerefOf (RefOf (I60C)), DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (DerefOf (RefOf (I60F)), DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (DerefOf (RefOf (I60C)), M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (DerefOf (RefOf (I60C)), M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (DerefOf (RefOf (I60F)), M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (RefOf (I60C)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (DerefOf (RefOf (I60C)), DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (DerefOf (RefOf (I60F)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (DerefOf (RefOf (I60C)), Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (DerefOf (RefOf (I60C)), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (DerefOf (RefOf (I60F)), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (DerefOf (RefOf (I60C)), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (DerefOf (RefOf (I60C)), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (DerefOf (RefOf (I60F)), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (DerefOf (RefOf (I60C)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (DerefOf (RefOf (I60C)), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (DerefOf (RefOf (I60F)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (DerefOf (RefOf (I60C)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (DerefOf (RefOf (I60C)), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (DerefOf (RefOf (I60F)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (DerefOf (RefOf (I60C)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (DerefOf (RefOf (I60C)), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (DerefOf (RefOf (I60F)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (RefOf (I60C)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (DerefOf (RefOf (I60C)), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (DerefOf (RefOf (I60F)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ Method (M648, 1, NotSerialized) { Local0 = Mid (DerefOf (RefOf (I604)), 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (I60F)), 0x01, 0x08) M600 (Arg0, 0x01, Local0, BB30) Local0 = Mid (DerefOf (RefOf (I604)), AUI5, AUIB) M600 (Arg0, 0x02, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (I60F)), AUI6, AUIA) M600 (Arg0, 0x03, Local0, BB30) If (Y078) { Local0 = Mid (DerefOf (RefOf (I604)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)) ) M600 (Arg0, 0x04, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (I60F)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)) ) M600 (Arg0, 0x05, Local0, BB30) } Local0 = Mid (DerefOf (RefOf (I604)), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x0B])) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (I60F)), DerefOf (PAUI [0x06]), DerefOf ( PAUI [0x0A])) M600 (Arg0, 0x07, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (DerefOf (RefOf (I604)), M601 (0x01, 0x05), M601 (0x01, 0x0B) ) M600 (Arg0, 0x08, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (I60F)), M601 (0x01, 0x06), M601 (0x01, 0x0A) ) M600 (Arg0, 0x09, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (DerefOf (RefOf (I604)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x0B))) M600 (Arg0, 0x0A, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (I60F)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 ( 0x01, 0x0A))) M600 (Arg0, 0x0B, Local0, BB30) } Mid (DerefOf (RefOf (I604)), 0x00, 0x09, Local0) M600 (Arg0, 0x0C, Local0, BB1D) Mid (DerefOf (RefOf (I60F)), 0x01, 0x08, Local0) M600 (Arg0, 0x0D, Local0, BB30) Mid (DerefOf (RefOf (I604)), AUI5, AUIB, Local0) M600 (Arg0, 0x0E, Local0, BB1D) Mid (DerefOf (RefOf (I60F)), AUI6, AUIA, Local0) M600 (Arg0, 0x0F, Local0, BB30) If (Y078) { Mid (DerefOf (RefOf (I604)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x10, Local0, BB1D) Mid (DerefOf (RefOf (I60F)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x11, Local0, BB30) } Mid (DerefOf (RefOf (I604)), DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B]), Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (DerefOf (RefOf (I60F)), DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB30) /* Method returns Index and Length parameters */ Mid (DerefOf (RefOf (I604)), M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x14, Local0, BB1D) Mid (DerefOf (RefOf (I60F)), M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x15, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (DerefOf (RefOf (I604)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x16, Local0, BB1D) Mid (DerefOf (RefOf (I60F)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x17, Local0, BB30) } } Method (M328, 1, NotSerialized) { Local0 = Mid (DerefOf (RefOf (I603)), 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (I60F)), 0x01, 0x04) M600 (Arg0, 0x01, Local0, BB31) Local0 = Mid (DerefOf (RefOf (I603)), AUI5, AUI9) M600 (Arg0, 0x02, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (I60F)), AUI6, AUI8) M600 (Arg0, 0x03, Local0, BB31) If (Y078) { Local0 = Mid (DerefOf (RefOf (I603)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)) ) M600 (Arg0, 0x04, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (I60F)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)) ) M600 (Arg0, 0x05, Local0, BB31) } Local0 = Mid (DerefOf (RefOf (I603)), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x09])) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (I60F)), DerefOf (PAUI [0x06]), DerefOf ( PAUI [0x08])) M600 (Arg0, 0x07, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (DerefOf (RefOf (I603)), M601 (0x01, 0x05), M601 (0x01, 0x09) ) M600 (Arg0, 0x08, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (I60F)), M601 (0x01, 0x06), M601 (0x01, 0x08) ) M600 (Arg0, 0x09, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (DerefOf (RefOf (I603)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x09))) M600 (Arg0, 0x0A, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (I60F)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 ( 0x01, 0x08))) M600 (Arg0, 0x0B, Local0, BB31) } Mid (DerefOf (RefOf (I603)), 0x00, 0x05, Local0) M600 (Arg0, 0x0C, Local0, BB1C) Mid (DerefOf (RefOf (I60F)), 0x01, 0x04, Local0) M600 (Arg0, 0x0D, Local0, BB31) Mid (DerefOf (RefOf (I603)), AUI5, AUI9, Local0) M600 (Arg0, 0x0E, Local0, BB1C) Mid (DerefOf (RefOf (I60F)), AUI6, AUI8, Local0) M600 (Arg0, 0x0F, Local0, BB31) If (Y078) { Mid (DerefOf (RefOf (I603)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x10, Local0, BB1C) Mid (DerefOf (RefOf (I60F)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x11, Local0, BB31) } Mid (DerefOf (RefOf (I603)), DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09]), Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (DerefOf (RefOf (I60F)), DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x08]), Local0) M600 (Arg0, 0x13, Local0, BB31) /* Method returns Index and Length parameters */ Mid (DerefOf (RefOf (I603)), M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x14, Local0, BB1C) Mid (DerefOf (RefOf (I60F)), M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x15, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (DerefOf (RefOf (I603)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x16, Local0, BB1C) Mid (DerefOf (RefOf (I60F)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x17, Local0, BB31) } } /* Method(m649, 1) */ /* Method(m329, 1) */ /* Method(m64a, 1) */ /* Method(m32a, 1) */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (RefOf (S601))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (RefOf (S605))-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = DerefOf (RefOf (S601))++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (RefOf (S605))++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (RefOf (S601))) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (RefOf (S605))) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (RefOf (S601))) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (RefOf (S605))) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (RefOf (S601))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (RefOf (S604))-- M600 (Arg0, 0x01, Local0, BI14) } /* Increment */ If (Y501) { Local0 = DerefOf (RefOf (S601))++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (RefOf (S604))++ M600 (Arg0, 0x03, Local0, BI15) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (RefOf (S601))) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (RefOf (S604))) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (RefOf (S601))) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (RefOf (S604))) M600 (Arg0, 0x07, Local0, 0x02) /* Not */ Store (~DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Method (M000, 1, NotSerialized) { Local0 = !DerefOf (RefOf (S600)) M600 (Arg0, 0x00, Local0, Ones) Local0 = !DerefOf (RefOf (S601)) M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !DerefOf (RefOf (S605)) M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !DerefOf (RefOf (S604)) M600 (Arg0, 0x03, Local0, Zero) } } /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (RefOf (S601))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (RefOf (S615))) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (RefOf (S615)), Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (DerefOf (RefOf (S601))) M600 (Arg0, 0x04, Local0, 0x0801) /* Error of iASL on constant folding Store(ToBCD(s616), Local0) m600(arg0, 5, Local0, 0x3789012345678901) */ ToBCD (DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (S616, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (RefOf (S601))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (RefOf (S617))) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (RefOf (S617)), Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (DerefOf (RefOf (S601))) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (DerefOf (RefOf (S618))) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (RefOf (S618)), Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M001, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((DerefOf (RefOf (S601)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (S601)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((DerefOf (RefOf (S601)) + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (DerefOf (RefOf (S601)) + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (DerefOf (RefOf (S601)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (S601)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (DerefOf (RefOf (S601)) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + DerefOf (RefOf (S601))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + DerefOf (RefOf (S601))) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + DerefOf (RefOf (S601))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + DerefOf (RefOf (S601))) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (RefOf (S601))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (RefOf (S601))) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (RefOf (S601))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (RefOf (S601))) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (RefOf (S601))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + DerefOf (RefOf (S601))) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (S601))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (S601))) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M002, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((DerefOf (RefOf (S605)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (S605)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (RefOf (S605)) + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (RefOf (S605)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (DerefOf (RefOf (S605)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (S605)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (RefOf (S605)) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + DerefOf (RefOf (S605))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + DerefOf (RefOf (S605))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + DerefOf (RefOf (S605))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + DerefOf (RefOf (S605))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (RefOf (S605))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (RefOf (S605))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (RefOf (S605))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (RefOf (S605))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (RefOf (S605))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (RefOf (S605))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (S605))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (S605))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) + DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((DerefOf (RefOf (S605)) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (RefOf (S601)) + DerefOf (RefOf (S605))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (RefOf (S605)) + DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M003, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FF) Store ((DerefOf (RefOf (S604)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (S604)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FF) } Store ((DerefOf (RefOf (S604)) + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FF) } Local0 = (DerefOf (RefOf (S604)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FF) Local0 = (DerefOf (RefOf (S604)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (S604)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FF) } Local0 = (DerefOf (RefOf (S604)) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FF) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0x01 + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FF) Store ((AUI5 + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUI6 + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUI6)) + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FF) } Store ((DerefOf (PAUI [0x05]) + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x06]) + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x06) + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FF) } Local0 = (0x00 + DerefOf (RefOf (S604))) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0x01 + DerefOf (RefOf (S604))) M600 (Arg0, 0x25, Local0, 0xC179B3FF) Local0 = (AUI5 + DerefOf (RefOf (S604))) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUI6 + DerefOf (RefOf (S604))) M600 (Arg0, 0x27, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (RefOf (S604))) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (RefOf (S604))) M600 (Arg0, 0x29, Local0, 0xC179B3FF) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (RefOf (S604))) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (RefOf (S604))) M600 (Arg0, 0x2B, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (RefOf (S604))) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x06) + DerefOf (RefOf (S604))) M600 (Arg0, 0x2D, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (S604))) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (S604))) M600 (Arg0, 0x2F, Local0, 0xC179B3FF) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) + DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x30, Local0, 0xC179B71F) Store ((DerefOf (RefOf (S604)) + DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0xC179B71F) Local0 = (DerefOf (RefOf (S601)) + DerefOf (RefOf (S604))) M600 (Arg0, 0x32, Local0, 0xC179B71F) Local0 = (DerefOf (RefOf (S604)) + DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0xC179B71F) } /* And, common 32-bit/64-bit test */ Method (M004, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (S601)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (S601)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (S601)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (S601)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (RefOf (S601)) & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (S601)) & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (S601)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (S601)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (RefOf (S601)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (S601)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (RefOf (S601)) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & DerefOf (RefOf (S601))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (S601))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & DerefOf (RefOf (S601))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (RefOf (S601))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (RefOf (S601))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (S601))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (RefOf (S601))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (RefOf (S601))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (RefOf (S601))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (RefOf (S601))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (S601))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (S601))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M005, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (S605)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (S605)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (S605)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (S605)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (RefOf (S605)) & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (S605)) & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (S605)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (S605)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (S605)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (S605)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (S605)) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & DerefOf (RefOf (S605))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (S605))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & DerefOf (RefOf (S605))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (RefOf (S605))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (RefOf (S605))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (S605))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (RefOf (S605))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (RefOf (S605))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (RefOf (S605))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (RefOf (S605))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (S605))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (S605))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) & DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (RefOf (S605)) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (RefOf (S601)) & DerefOf (RefOf (S605))) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (RefOf (S605)) & DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M006, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (S604)) & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (S604)) & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (S604)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (S604)) & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((DerefOf (RefOf (S604)) & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (S604)) & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (S604)) & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (S604)) & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (DerefOf (RefOf (S604)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (S604)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (DerefOf (RefOf (S604)) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 & DerefOf (RefOf (S604))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & DerefOf (RefOf (S604))) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 & DerefOf (RefOf (S604))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & DerefOf (RefOf (S604))) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (RefOf (S604))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & DerefOf (RefOf (S604))) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (RefOf (S604))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & DerefOf (RefOf (S604))) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (RefOf (S604))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & DerefOf (RefOf (S604))) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (S604))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (RefOf (S604))) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) & DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x30, Local0, 0x0320) Store ((DerefOf (RefOf (S604)) & DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0x0320) Local0 = (DerefOf (RefOf (S601)) & DerefOf (RefOf (S604))) M600 (Arg0, 0x32, Local0, 0x0320) Local0 = (DerefOf (RefOf (S604)) & DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0x0320) } /* Divide, common 32-bit/64-bit test */ Method (M007, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (S601)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (S601)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (S601)) / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (RefOf (S601)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (DerefOf (RefOf (S601)), 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (RefOf (S601)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (DerefOf (RefOf (S601)), AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (RefOf (S601)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (DerefOf (RefOf (S601)), DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (RefOf (S601)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (DerefOf (RefOf (S601)), M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M008, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (S605)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (S605)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (S605)) / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (RefOf (S605)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (S605)), 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (RefOf (S605)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (S605)), AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (S605)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (S605)), DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (RefOf (S605)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (S605)), DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (RefOf (S605)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (S605)), M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) / DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (S605)) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (DerefOf (RefOf (S601)), DerefOf (RefOf (S605)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (RefOf (S605)), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M009, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) / 0xC179B3FE), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (S604)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) / AUI3), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (S604)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) / DerefOf (RefOf (AUI3))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (S604)) / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) / DerefOf (PAUI [0x03])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) / M601 (0x01, 0x03)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) / DerefOf (M602 (0x01, 0x03, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (RefOf (S604)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Divide (DerefOf (RefOf (S604)), 0xC179B3FE, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (RefOf (S604)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Divide (DerefOf (RefOf (S604)), AUI3, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (S604)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Divide (DerefOf (RefOf (S604)), DerefOf (RefOf (AUI3)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (RefOf (S604)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Divide (DerefOf (RefOf (S604)), DerefOf (PAUI [0x03]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (RefOf (S604)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Divide (DerefOf (RefOf (S604)), M601 (0x01, 0x03), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Divide (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x03, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xC179B3FE, DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI3, DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI3)), DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x03]), DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x03), DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x03, 0x01)), DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) / DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (S604)) / DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0x003DD5B7) Divide (DerefOf (RefOf (S601)), DerefOf (RefOf (S604)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (RefOf (S604)), DerefOf (RefOf (S601)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x003DD5B7) } /* Mod, common 32-bit/64-bit test */ Method (M00A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (S601)) % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (S601)) % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (S601)) % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (RefOf (S601)) % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (RefOf (S601)) % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (RefOf (S601)) % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (RefOf (S601)) % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % DerefOf (RefOf (S601))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % DerefOf (RefOf (S601))) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % DerefOf (RefOf (S601))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % DerefOf (RefOf (S601))) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % DerefOf (RefOf (S601))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % DerefOf (RefOf (S601))) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % DerefOf (RefOf (S601))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % DerefOf (RefOf (S601))) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % DerefOf (RefOf (S601))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % DerefOf (RefOf (S601))) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (RefOf (S601))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (RefOf (S601))) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M00B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (S605)) % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (S605)) % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (S605)) % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (RefOf (S605)) % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (RefOf (S605)) % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (RefOf (S605)) % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (RefOf (S605)) % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % DerefOf (RefOf (S605))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % DerefOf (RefOf (S605))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % DerefOf (RefOf (S605))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % DerefOf (RefOf (S605))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % DerefOf (RefOf (S605))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % DerefOf (RefOf (S605))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % DerefOf (RefOf (S605))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % DerefOf (RefOf (S605))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % DerefOf (RefOf (S605))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % DerefOf (RefOf (S605))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (RefOf (S605))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (RefOf (S605))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) % DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (RefOf (S605)) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (DerefOf (RefOf (S601)) % DerefOf (RefOf (S605))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (RefOf (S605)) % DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M00C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) % 0xC179B3FF), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) % 0xC179B3FD), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (S604)) % AUIC), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) % AUIE), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (S604)) % DerefOf (RefOf (AUIC))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) % DerefOf (RefOf (AUIE))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (S604)) % DerefOf (PAUI [0x0C])), Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) % DerefOf (PAUI [0x0E])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) % M601 (0x01, 0x0C)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) % M601 (0x01, 0x0E)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) % DerefOf (M602 (0x01, 0x0C, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) % DerefOf (M602 (0x01, 0x0E, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (RefOf (S604)) % 0xC179B3FF) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) % 0xC179B3FD) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (RefOf (S604)) % AUIC) /* \AUIC */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) % AUIE) /* \AUIE */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (RefOf (S604)) % DerefOf (RefOf (AUIC))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) % DerefOf (RefOf (AUIE))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (RefOf (S604)) % DerefOf (PAUI [0x0C])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) % DerefOf (PAUI [0x0E])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) % M601 (0x01, 0x0C)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) % M601 (0x01, 0x0E)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) % DerefOf (M602 (0x01, 0x0C, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) % DerefOf (M602 (0x01, 0x0E, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xC179B3FF % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xC179B3FD % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FD) Store ((AUIC % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIE % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (AUIC)) % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIE)) % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FD) } Store ((DerefOf (PAUI [0x0C]) % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0E]) % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M601 (0x01, 0x0C) % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0E) % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0C, 0x01)) % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0E, 0x01)) % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FD) } Local0 = (0xC179B3FF % DerefOf (RefOf (S604))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xC179B3FD % DerefOf (RefOf (S604))) M600 (Arg0, 0x25, Local0, 0xC179B3FD) Local0 = (AUIC % DerefOf (RefOf (S604))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIE % DerefOf (RefOf (S604))) M600 (Arg0, 0x27, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (AUIC)) % DerefOf (RefOf (S604))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIE)) % DerefOf (RefOf (S604))) M600 (Arg0, 0x29, Local0, 0xC179B3FD) } Local0 = (DerefOf (PAUI [0x0C]) % DerefOf (RefOf (S604))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0E]) % DerefOf (RefOf (S604))) M600 (Arg0, 0x2B, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0C) % DerefOf (RefOf (S604))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0E) % DerefOf (RefOf (S604))) M600 (Arg0, 0x2D, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) % DerefOf (RefOf (S604))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) % DerefOf (RefOf (S604))) M600 (Arg0, 0x2F, Local0, 0xC179B3FD) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) % DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (RefOf (S604)) % DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0x0267) Local0 = (DerefOf (RefOf (S601)) % DerefOf (RefOf (S604))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (RefOf (S604)) % DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0x0267) } /* Multiply, common 32-bit/64-bit test */ Method (M00D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (S601)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (S601)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (S601)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (S601)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (RefOf (S601)) * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (S601)) * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (S601)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (S601)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (RefOf (S601)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (S601)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (RefOf (S601)) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (S601)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * DerefOf (RefOf (S601))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (RefOf (S601))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * DerefOf (RefOf (S601))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (RefOf (S601))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (RefOf (S601))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (RefOf (S601))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (RefOf (S601))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (RefOf (S601))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (RefOf (S601))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (RefOf (S601))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (S601))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (S601))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M00E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (S605)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (S605)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (S605)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (S605)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (RefOf (S605)) * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (S605)) * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (S605)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (S605)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (S605)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (S605)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (S605)) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * DerefOf (RefOf (S605))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (RefOf (S605))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * DerefOf (RefOf (S605))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (RefOf (S605))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (RefOf (S605))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (RefOf (S605))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (RefOf (S605))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (RefOf (S605))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (RefOf (S605))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (RefOf (S605))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (S605))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (S605))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) * DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((DerefOf (RefOf (S605)) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (RefOf (S601)) * DerefOf (RefOf (S605))) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (RefOf (S605)) * DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M00F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (S604)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (S604)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (S604)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (S604)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((DerefOf (RefOf (S604)) * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (S604)) * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (S604)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (S604)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (DerefOf (RefOf (S604)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (S604)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (DerefOf (RefOf (S604)) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 * DerefOf (RefOf (S604))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (RefOf (S604))) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 * DerefOf (RefOf (S604))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (RefOf (S604))) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (RefOf (S604))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (RefOf (S604))) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (RefOf (S604))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (RefOf (S604))) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (RefOf (S604))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (RefOf (S604))) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (S604))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (S604))) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) * DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x30, Local0, 0x5DCC2DBE) Store ((DerefOf (RefOf (S604)) * DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0x5DCC2DBE) Local0 = (DerefOf (RefOf (S601)) * DerefOf (RefOf (S604))) M600 (Arg0, 0x32, Local0, 0x5DCC2DBE) Local0 = (DerefOf (RefOf (S604)) * DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0x5DCC2DBE) } /* NAnd, common 32-bit/64-bit test */ Method (M010, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (RefOf (S601)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S601)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (DerefOf (RefOf (S601)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S601)), AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S601)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (RefOf (S601)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S601)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (DerefOf (RefOf (S601)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S601)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (RefOf (S601)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S601)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (DerefOf (RefOf (S601)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S601)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S601)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (RefOf (S601)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S601)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (DerefOf (RefOf (S601)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S601)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (RefOf (S601))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (S601))) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, DerefOf (RefOf (S601))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (RefOf (S601))) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S601))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (S601))) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (S601))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (S601))) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (RefOf (S601))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (RefOf (S601))) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S601))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (S601))) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M011, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (RefOf (S605)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S605)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (DerefOf (RefOf (S605)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S605)), AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (S605)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S605)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (RefOf (S605)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S605)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (RefOf (S605)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S605)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (RefOf (S605)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S605)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (DerefOf (RefOf (S605)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S605)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (S605)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S605)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (RefOf (S605)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S605)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (RefOf (S605)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S605)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (S605))) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, DerefOf (RefOf (S605))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (RefOf (S605))) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S605))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (S605))) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (S605))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (S605))) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (RefOf (S605))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (RefOf (S605))) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S605))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (S605))) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (RefOf (S601)), DerefOf (RefOf (S605))) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (DerefOf (RefOf (S605)), DerefOf (RefOf (S601))) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (RefOf (S601)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (RefOf (S605)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M012, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (RefOf (S604)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S604)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x3E864C01) Local0 = NAnd (DerefOf (RefOf (S604)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S604)), AUII) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (S604)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S604)), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (RefOf (S604)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S604)), DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (DerefOf (RefOf (S604)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S604)), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } NAnd (DerefOf (RefOf (S604)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (S604)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x3E864C01) NAnd (DerefOf (RefOf (S604)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (S604)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (S604)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (S604)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x3E864C01) } NAnd (DerefOf (RefOf (S604)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (S604)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (DerefOf (RefOf (S604)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (S604)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, DerefOf (RefOf (S604))) M600 (Arg0, 0x19, Local0, 0x3E864C01) Local0 = NAnd (AUI5, DerefOf (RefOf (S604))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, DerefOf (RefOf (S604))) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S604))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), DerefOf (RefOf (S604))) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (S604))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), DerefOf (RefOf (S604))) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (RefOf (S604))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), DerefOf (RefOf (S604))) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S604))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (S604))) M600 (Arg0, 0x23, Local0, 0x3E864C01) } NAnd (0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x25, Local0, 0x3E864C01) NAnd (AUI5, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x29, Local0, 0x3E864C01) } NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (RefOf (S601)), DerefOf (RefOf (S604))) M600 (Arg0, 0x30, Local0, 0xFFFFFCDF) Local0 = NAnd (DerefOf (RefOf (S604)), DerefOf (RefOf (S601))) M600 (Arg0, 0x31, Local0, 0xFFFFFCDF) NAnd (DerefOf (RefOf (S601)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFCDF) NAnd (DerefOf (RefOf (S604)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFCDF) } /* NOr, common 32-bit/64-bit test */ Method (M013, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (RefOf (S601)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (S601)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (RefOf (S601)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (S601)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (S601)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (RefOf (S601)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (S601)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (RefOf (S601)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (S601)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (RefOf (S601)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (S601)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (RefOf (S601)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (S601)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (S601)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (RefOf (S601)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (S601)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (RefOf (S601)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (S601)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (S601)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (RefOf (S601))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (S601))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (RefOf (S601))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, DerefOf (RefOf (S601))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S601))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (S601))) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (S601))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (S601))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (RefOf (S601))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), DerefOf (RefOf (S601))) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S601))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (S601))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M014, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (RefOf (S605)), 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (S605)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (RefOf (S605)), AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (S605)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (S605)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (S605)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (RefOf (S605)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (S605)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (RefOf (S605)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (S605)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (RefOf (S605)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (S605)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (RefOf (S605)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (S605)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (S605)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (S605)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (RefOf (S605)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (S605)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (RefOf (S605)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (S605)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (S605)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (S605))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (RefOf (S605))) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, DerefOf (RefOf (S605))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S605))) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (S605))) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (S605))) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (S605))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (RefOf (S605))) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), DerefOf (RefOf (S605))) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S605))) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (S605))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (RefOf (S601)), DerefOf (RefOf (S605))) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (DerefOf (RefOf (S605)), DerefOf (RefOf (S601))) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (RefOf (S601)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (RefOf (S605)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M015, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (RefOf (S604)), 0x00) M600 (Arg0, 0x00, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (S604)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (RefOf (S604)), AUI5) M600 (Arg0, 0x02, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (S604)), AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (S604)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (S604)), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (RefOf (S604)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (S604)), DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (RefOf (S604)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (S604)), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (RefOf (S604)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x3E864C01) NOr (DerefOf (RefOf (S604)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (RefOf (S604)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x3E864C01) NOr (DerefOf (RefOf (S604)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (S604)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x3E864C01) NOr (DerefOf (RefOf (S604)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (RefOf (S604)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x3E864C01) NOr (DerefOf (RefOf (S604)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (RefOf (S604)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x3E864C01) NOr (DerefOf (RefOf (S604)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x3E864C01) NOr (DerefOf (RefOf (S604)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x18, Local0, 0x3E864C01) Local0 = NOr (0xFFFFFFFF, DerefOf (RefOf (S604))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (RefOf (S604))) M600 (Arg0, 0x1A, Local0, 0x3E864C01) Local0 = NOr (AUII, DerefOf (RefOf (S604))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S604))) M600 (Arg0, 0x1C, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (AUII)), DerefOf (RefOf (S604))) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (S604))) M600 (Arg0, 0x1E, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PAUI [0x12]), DerefOf (RefOf (S604))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (RefOf (S604))) M600 (Arg0, 0x20, Local0, 0x3E864C01) Local0 = NOr (M601 (0x01, 0x12), DerefOf (RefOf (S604))) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S604))) M600 (Arg0, 0x22, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (S604))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x24, Local0, 0x3E864C01) NOr (0xFFFFFFFF, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x26, Local0, 0x3E864C01) NOr (AUII, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x28, Local0, 0x3E864C01) NOr (DerefOf (RefOf (AUII)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2A, Local0, 0x3E864C01) NOr (DerefOf (PAUI [0x12]), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2C, Local0, 0x3E864C01) NOr (M601 (0x01, 0x12), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2E, Local0, 0x3E864C01) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (RefOf (S601)), DerefOf (RefOf (S604))) M600 (Arg0, 0x30, Local0, 0x3E864C00) Local0 = NOr (DerefOf (RefOf (S604)), DerefOf (RefOf (S601))) M600 (Arg0, 0x31, Local0, 0x3E864C00) NOr (DerefOf (RefOf (S601)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x32, Local0, 0x3E864C00) NOr (DerefOf (RefOf (S604)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x33, Local0, 0x3E864C00) } /* Or, common 32-bit/64-bit test */ Method (M016, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (RefOf (S601)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (S601)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (RefOf (S601)) | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (S601)) | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (RefOf (S601)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (S601)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (S601)) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (RefOf (S601))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (S601))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (RefOf (S601))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | DerefOf (RefOf (S601))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (RefOf (S601))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (S601))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (RefOf (S601))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (RefOf (S601))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (RefOf (S601))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | DerefOf (RefOf (S601))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (S601))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (S601))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M017, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (RefOf (S605)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (S605)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (RefOf (S605)) | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (S605)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (RefOf (S605)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (S605)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (S605)) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (RefOf (S605))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (S605))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (RefOf (S605))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | DerefOf (RefOf (S605))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (RefOf (S605))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (S605))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (RefOf (S605))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (RefOf (S605))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (RefOf (S605))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | DerefOf (RefOf (S605))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (S605))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (S605))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) | DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((DerefOf (RefOf (S605)) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (RefOf (S601)) | DerefOf (RefOf (S605))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (RefOf (S605)) | DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M018, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((DerefOf (RefOf (S604)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (S604)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((DerefOf (RefOf (S604)) | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (RefOf (S604)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (DerefOf (RefOf (S604)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (S604)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (RefOf (S604)) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | DerefOf (RefOf (S604))) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF | DerefOf (RefOf (S604))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | DerefOf (RefOf (S604))) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII | DerefOf (RefOf (S604))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (RefOf (S604))) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) | DerefOf (RefOf (S604))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (RefOf (S604))) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) | DerefOf (RefOf (S604))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (RefOf (S604))) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) | DerefOf (RefOf (S604))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (S604))) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (RefOf (S604))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) | DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x30, Local0, 0xC179B3FF) Store ((DerefOf (RefOf (S604)) | DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0xC179B3FF) Local0 = (DerefOf (RefOf (S601)) | DerefOf (RefOf (S604))) M600 (Arg0, 0x32, Local0, 0xC179B3FF) Local0 = (DerefOf (RefOf (S604)) | DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0xC179B3FF) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M019, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((DerefOf (RefOf (S601)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((DerefOf (RefOf (S601)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((DerefOf (RefOf (S601)) << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (DerefOf (RefOf (S601)) << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (DerefOf (RefOf (S601)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (DerefOf (RefOf (S601)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (DerefOf (RefOf (S601)) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (RefOf (S614))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (RefOf (S614))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (RefOf (S614))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (RefOf (S614))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M01A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((DerefOf (RefOf (S605)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((DerefOf (RefOf (S605)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((DerefOf (RefOf (S605)) << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (RefOf (S605)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (DerefOf (RefOf (S605)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (DerefOf (RefOf (S605)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (RefOf (S605)) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (RefOf (S614))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (RefOf (S614))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (RefOf (S614))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (RefOf (S614))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (RefOf (S605)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (DerefOf (RefOf (S601)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (RefOf (S605)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M01B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x82F367FC) Store ((DerefOf (RefOf (S604)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x82F367FC) If (Y078) { Store ((DerefOf (RefOf (S604)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x82F367FC) } Store ((DerefOf (RefOf (S604)) << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x82F367FC) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x82F367FC) } Local0 = (DerefOf (RefOf (S604)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) << 0x01) M600 (Arg0, 0x0D, Local0, 0x82F367FC) Local0 = (DerefOf (RefOf (S604)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x82F367FC) If (Y078) { Local0 = (DerefOf (RefOf (S604)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x82F367FC) } Local0 = (DerefOf (RefOf (S604)) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x82F367FC) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x82F367FC) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (RefOf (S614))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (RefOf (S614))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (RefOf (S614))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (RefOf (S614))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (RefOf (S604)) << DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x31, Local0, 0xCD9FF000) Local0 = (DerefOf (RefOf (S601)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (RefOf (S604)) << DerefOf (RefOf (S614))) M600 (Arg0, 0x33, Local0, 0xCD9FF000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M01C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((DerefOf (RefOf (S601)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((DerefOf (RefOf (S601)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((DerefOf (RefOf (S601)) >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (DerefOf (RefOf (S601)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (DerefOf (RefOf (S601)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (DerefOf (RefOf (S601)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (DerefOf (RefOf (S601)) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> DerefOf (RefOf (S614))) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2F, Local0, 0x00182F36) } } /* ShiftRight, 64-bit */ Method (M01D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((DerefOf (RefOf (S605)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((DerefOf (RefOf (S605)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((DerefOf (RefOf (S605)) >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (RefOf (S605)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (DerefOf (RefOf (S605)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (DerefOf (RefOf (S605)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (RefOf (S605)) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (S605)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (DerefOf (RefOf (S601)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (RefOf (S605)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M01E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x60BCD9FF) Store ((DerefOf (RefOf (S604)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x60BCD9FF) If (Y078) { Store ((DerefOf (RefOf (S604)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x60BCD9FF) } Store ((DerefOf (RefOf (S604)) >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x60BCD9FF) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x60BCD9FF) } Local0 = (DerefOf (RefOf (S604)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x60BCD9FF) Local0 = (DerefOf (RefOf (S604)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x60BCD9FF) If (Y078) { Local0 = (DerefOf (RefOf (S604)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x60BCD9FF) } Local0 = (DerefOf (RefOf (S604)) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x60BCD9FF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x60BCD9FF) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> DerefOf (RefOf (S614))) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> DerefOf (RefOf (S614))) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x2F, Local0, 0x00182F36) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (S604)) >> DerefOf (RefOf (S614))), Local0) M600 (Arg0, 0x31, Local0, 0x00182F36) Local0 = (DerefOf (RefOf (S601)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (RefOf (S604)) >> DerefOf (RefOf (S614))) M600 (Arg0, 0x33, Local0, 0x00182F36) } /* Subtract, common 32-bit/64-bit test */ Method (M01F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((DerefOf (RefOf (S601)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (S601)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((DerefOf (RefOf (S601)) - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (DerefOf (RefOf (S601)) - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (DerefOf (RefOf (S601)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (S601)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (DerefOf (RefOf (S601)) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - DerefOf (RefOf (S601))) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - DerefOf (RefOf (S601))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - DerefOf (RefOf (S601))) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - DerefOf (RefOf (S601))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (RefOf (S601))) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (RefOf (S601))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (RefOf (S601))) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (RefOf (S601))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (RefOf (S601))) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - DerefOf (RefOf (S601))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (S601))) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (S601))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M020, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((DerefOf (RefOf (S605)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (S605)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (RefOf (S605)) - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (RefOf (S605)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (DerefOf (RefOf (S605)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (S605)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (RefOf (S605)) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - DerefOf (RefOf (S605))) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - DerefOf (RefOf (S605))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - DerefOf (RefOf (S605))) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - DerefOf (RefOf (S605))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (RefOf (S605))) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (RefOf (S605))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (RefOf (S605))) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (RefOf (S605))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (RefOf (S605))) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (RefOf (S605))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (S605))) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (S605))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) - DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((DerefOf (RefOf (S605)) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (DerefOf (RefOf (S601)) - DerefOf (RefOf (S605))) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (DerefOf (RefOf (S605)) - DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M021, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FD) Store ((DerefOf (RefOf (S604)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (S604)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FD) } Store ((DerefOf (RefOf (S604)) - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FD) } Local0 = (DerefOf (RefOf (S604)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FD) Local0 = (DerefOf (RefOf (S604)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (S604)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FD) } Local0 = (DerefOf (RefOf (S604)) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FD) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x18, Local0, 0x3E864C02) Store ((0x01 - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C03) Store ((AUI5 - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1A, Local0, 0x3E864C02) Store ((AUI6 - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C03) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1C, Local0, 0x3E864C02) Store ((DerefOf (RefOf (AUI6)) - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C03) } Store ((DerefOf (PAUI [0x05]) - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1E, Local0, 0x3E864C02) Store ((DerefOf (PAUI [0x06]) - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C03) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x20, Local0, 0x3E864C02) Store ((M601 (0x01, 0x06) - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x22, Local0, 0x3E864C02) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C03) } Local0 = (0x00 - DerefOf (RefOf (S604))) M600 (Arg0, 0x24, Local0, 0x3E864C02) Local0 = (0x01 - DerefOf (RefOf (S604))) M600 (Arg0, 0x25, Local0, 0x3E864C03) Local0 = (AUI5 - DerefOf (RefOf (S604))) M600 (Arg0, 0x26, Local0, 0x3E864C02) Local0 = (AUI6 - DerefOf (RefOf (S604))) M600 (Arg0, 0x27, Local0, 0x3E864C03) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (RefOf (S604))) M600 (Arg0, 0x28, Local0, 0x3E864C02) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (RefOf (S604))) M600 (Arg0, 0x29, Local0, 0x3E864C03) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (RefOf (S604))) M600 (Arg0, 0x2A, Local0, 0x3E864C02) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (RefOf (S604))) M600 (Arg0, 0x2B, Local0, 0x3E864C03) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (RefOf (S604))) M600 (Arg0, 0x2C, Local0, 0x3E864C02) Local0 = (M601 (0x01, 0x06) - DerefOf (RefOf (S604))) M600 (Arg0, 0x2D, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (S604))) M600 (Arg0, 0x2E, Local0, 0x3E864C02) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (S604))) M600 (Arg0, 0x2F, Local0, 0x3E864C03) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) - DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x30, Local0, 0x3E864F23) Store ((DerefOf (RefOf (S604)) - DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DD) Local0 = (DerefOf (RefOf (S601)) - DerefOf (RefOf (S604))) M600 (Arg0, 0x32, Local0, 0x3E864F23) Local0 = (DerefOf (RefOf (S604)) - DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0xC179B0DD) } /* XOr, common 32-bit/64-bit test */ Method (M022, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S601)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((DerefOf (RefOf (S601)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (S601)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (RefOf (S601)) ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((DerefOf (RefOf (S601)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S601)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (S601)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (RefOf (S601)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (DerefOf (RefOf (S601)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (S601)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (RefOf (S601)) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (S601)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M023, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S605)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((DerefOf (RefOf (S605)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (S605)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (RefOf (S605)) ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((DerefOf (RefOf (S605)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S605)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (S605)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (RefOf (S605)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (DerefOf (RefOf (S605)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (S605)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (RefOf (S605)) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (S605)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) ^ DerefOf (RefOf (S605))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((DerefOf (RefOf (S605)) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (RefOf (S601)) ^ DerefOf (RefOf (S605))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (RefOf (S605)) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M024, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (S604)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x3E864C01) Store ((DerefOf (RefOf (S604)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (S604)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Store ((DerefOf (RefOf (S604)) ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Store ((DerefOf (RefOf (S604)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (S604)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (S604)) ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } Local0 = (DerefOf (RefOf (S604)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x3E864C01) Local0 = (DerefOf (RefOf (S604)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (S604)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x3E864C01) } Local0 = (DerefOf (RefOf (S604)) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (S604)) ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C01) Store ((AUI5 ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C01) } Local0 = (0x00 ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x25, Local0, 0x3E864C01) Local0 = (AUI5 ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x29, Local0, 0x3E864C01) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (S601)) ^ DerefOf (RefOf (S604))), Local0) M600 (Arg0, 0x30, Local0, 0xC179B0DF) Store ((DerefOf (RefOf (S604)) ^ DerefOf (RefOf (S601))), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DF) Local0 = (DerefOf (RefOf (S601)) ^ DerefOf (RefOf (S604))) M600 (Arg0, 0x32, Local0, 0xC179B0DF) Local0 = (DerefOf (RefOf (S604)) ^ DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, 0xC179B0DF) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m002", Local0) SRMT (Local0) M002 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m005", Local0) SRMT (Local0) M005 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m008", Local0) SRMT (Local0) M008 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00b", Local0) SRMT (Local0) M00B (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00e", Local0) SRMT (Local0) M00E (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) M010 (Local0) Concatenate (Arg0, "-m011", Local0) SRMT (Local0) M011 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) M013 (Local0) Concatenate (Arg0, "-m014", Local0) SRMT (Local0) M014 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) M016 (Local0) Concatenate (Arg0, "-m017", Local0) SRMT (Local0) M017 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01a", Local0) SRMT (Local0) M01A (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01d", Local0) SRMT (Local0) M01D (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) M01F (Local0) Concatenate (Arg0, "-m020", Local0) SRMT (Local0) M020 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) M022 (Local0) Concatenate (Arg0, "-m023", Local0) SRMT (Local0) M023 (Local0) } Method (M32D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m003", Local0) SRMT (Local0) M003 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m006", Local0) SRMT (Local0) M006 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m009", Local0) SRMT (Local0) M009 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00c", Local0) SRMT (Local0) M00C (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00f", Local0) SRMT (Local0) M00F (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) If (Y119) { M010 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m012", Local0) SRMT (Local0) M012 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) If (Y119) { M013 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m015", Local0) SRMT (Local0) M015 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) If (Y119) { M016 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m018", Local0) SRMT (Local0) M018 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01b", Local0) SRMT (Local0) M01B (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01e", Local0) SRMT (Local0) M01E (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) If (Y119) { M01F (Local0) } Else { BLCK () } Concatenate (Arg0, "-m021", Local0) SRMT (Local0) M021 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) If (Y119) { M022 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m024", Local0) SRMT (Local0) M024 (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M025, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (S601)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (S601)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (S601)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (S601)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (S601)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (S601)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (S601)) && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (S601)) && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S601)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (S601)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S601)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (S601)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (RefOf (S601))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (RefOf (S601))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (RefOf (S601))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (RefOf (S601))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (RefOf (S601))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (RefOf (S601))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (RefOf (S601))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (RefOf (S601))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (RefOf (S601))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (RefOf (S601))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (RefOf (S601))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (RefOf (S601))) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M026, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (S605)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (S605)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (S605)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (S605)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (S605)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (S605)) && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (S605)) && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (S605)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (S605)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (RefOf (S605))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (RefOf (S605))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (RefOf (S605))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (RefOf (S605))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (RefOf (S605))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (RefOf (S605))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (RefOf (S605))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (RefOf (S605))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (RefOf (S605))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (RefOf (S605))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (RefOf (S605))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (RefOf (S605))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (S601)) && DerefOf (RefOf (S605))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) && DerefOf (RefOf (S601))) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M027, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (S604)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (S604)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (S604)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (S604)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (S604)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (S604)) && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (S604)) && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (S604)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (S604)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (RefOf (S604))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (RefOf (S604))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (RefOf (S604))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (RefOf (S604))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (RefOf (S604))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (RefOf (S604))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (RefOf (S604))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (RefOf (S604))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (RefOf (S604))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (RefOf (S604))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (RefOf (S604))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (RefOf (S604))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (S601)) && DerefOf (RefOf (S604))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) && DerefOf (RefOf (S601))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M028, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (S600)) || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (S600)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (S600)) || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (S600)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (S600)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (S600)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (S600)) || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (S600)) || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S600)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (S600)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S600)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (S600)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (RefOf (S600))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || DerefOf (RefOf (S600))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (RefOf (S600))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || DerefOf (RefOf (S600))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (RefOf (S600))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (RefOf (S600))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (RefOf (S600))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (RefOf (S600))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (RefOf (S600))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || DerefOf (RefOf (S600))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (RefOf (S600))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (RefOf (S600))) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M029, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (S605)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (S605)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (S605)) || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S605)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S605)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (RefOf (S605))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (RefOf (S605))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (RefOf (S605))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (RefOf (S605))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (RefOf (S605))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (RefOf (S605))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (RefOf (S605))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (RefOf (S605))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (RefOf (S605))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (RefOf (S605))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (RefOf (S605))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (RefOf (S605))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (S600)) || DerefOf (RefOf (S605))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (S605)) || DerefOf (RefOf (S600))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M02A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (S604)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (S604)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (S604)) || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (S604)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (S604)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (RefOf (S604))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (RefOf (S604))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (RefOf (S604))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (RefOf (S604))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (RefOf (S604))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (RefOf (S604))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (RefOf (S604))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (RefOf (S604))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (RefOf (S604))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (RefOf (S604))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (RefOf (S604))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (RefOf (S604))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (S600)) || DerefOf (RefOf (S604))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (S604)) || DerefOf (RefOf (S600))) M600 (Arg0, 0x19, Local0, Ones) } Method (M64E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m026", Local0) SRMT (Local0) M026 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m029", Local0) SRMT (Local0) M029 (Local0) } Method (M32E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m027", Local0) SRMT (Local0) M027 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m02a", Local0) SRMT (Local0) M02A (Local0) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64F, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == DerefOf (RefOf (S605))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == DerefOf (RefOf (S605))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == DerefOf (RefOf (S605))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == DerefOf (RefOf (S605))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == DerefOf (RefOf (S605))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == DerefOf (RefOf (S605))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == DerefOf (RefOf (S605))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == DerefOf (RefOf (S605))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == DerefOf (RefOf (S605))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == DerefOf (RefOf (S605))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == DerefOf (RefOf (S605))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == DerefOf (RefOf (S605))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == DerefOf (RefOf (S605))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == DerefOf (RefOf (S605))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == DerefOf (RefOf (S605))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == DerefOf (RefOf (S605))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == DerefOf (RefOf (S605))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == DerefOf (RefOf (S605))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > DerefOf (RefOf (S605))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > DerefOf (RefOf (S605))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > DerefOf (RefOf (S605))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > DerefOf (RefOf (S605))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > DerefOf (RefOf (S605))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > DerefOf (RefOf (S605))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > DerefOf (RefOf (S605))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > DerefOf (RefOf (S605))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > DerefOf (RefOf (S605))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > DerefOf (RefOf (S605))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > DerefOf (RefOf (S605))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > DerefOf (RefOf (S605))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > DerefOf (RefOf (S605))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > DerefOf (RefOf (S605))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > DerefOf (RefOf (S605))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > DerefOf (RefOf (S605))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > DerefOf (RefOf (S605))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > DerefOf (RefOf (S605))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= DerefOf (RefOf (S605))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= DerefOf (RefOf (S605))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= DerefOf (RefOf (S605))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= DerefOf (RefOf (S605))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= DerefOf (RefOf (S605))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= DerefOf (RefOf (S605))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= DerefOf (RefOf (S605))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < DerefOf (RefOf (S605))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < DerefOf (RefOf (S605))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < DerefOf (RefOf (S605))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < DerefOf (RefOf (S605))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < DerefOf (RefOf (S605))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < DerefOf (RefOf (S605))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < DerefOf (RefOf (S605))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < DerefOf (RefOf (S605))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < DerefOf (RefOf (S605))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < DerefOf (RefOf (S605))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < DerefOf (RefOf (S605))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < DerefOf (RefOf (S605))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < DerefOf (RefOf (S605))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < DerefOf (RefOf (S605))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < DerefOf (RefOf (S605))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < DerefOf (RefOf (S605))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < DerefOf (RefOf (S605))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < DerefOf (RefOf (S605))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= DerefOf (RefOf (S605))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= DerefOf (RefOf (S605))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= DerefOf (RefOf (S605))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= DerefOf (RefOf (S605))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= DerefOf (RefOf (S605))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= DerefOf (RefOf (S605))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= DerefOf (RefOf (S605))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != DerefOf (RefOf (S605))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != DerefOf (RefOf (S605))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != DerefOf (RefOf (S605))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != DerefOf (RefOf (S605))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != DerefOf (RefOf (S605))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != DerefOf (RefOf (S605))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != DerefOf (RefOf (S605))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != DerefOf (RefOf (S605))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != DerefOf (RefOf (S605))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != DerefOf (RefOf (S605))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != DerefOf (RefOf (S605))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != DerefOf (RefOf (S605))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != DerefOf (RefOf (S605))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != DerefOf (RefOf (S605))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != DerefOf (RefOf (S605))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != DerefOf (RefOf (S605))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != DerefOf (RefOf (S605))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != DerefOf (RefOf (S605))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32F, 1, NotSerialized) { /* LEqual */ Local0 = (0xC179B3FE == DerefOf (RefOf (S604))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xC179B3FF == DerefOf (RefOf (S604))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xC179B3FD == DerefOf (RefOf (S604))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI3 == DerefOf (RefOf (S604))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIC == DerefOf (RefOf (S604))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIE == DerefOf (RefOf (S604))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) == DerefOf (RefOf (S604))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) == DerefOf (RefOf (S604))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) == DerefOf (RefOf (S604))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) == DerefOf (RefOf (S604))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) == DerefOf (RefOf (S604))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) == DerefOf (RefOf (S604))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) == DerefOf (RefOf (S604))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0C) == DerefOf (RefOf (S604))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0E) == DerefOf (RefOf (S604))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) == DerefOf (RefOf (S604))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) == DerefOf (RefOf (S604))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) == DerefOf (RefOf (S604))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xC179B3FE > DerefOf (RefOf (S604))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xC179B3FF > DerefOf (RefOf (S604))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xC179B3FD > DerefOf (RefOf (S604))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI3 > DerefOf (RefOf (S604))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIC > DerefOf (RefOf (S604))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIE > DerefOf (RefOf (S604))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) > DerefOf (RefOf (S604))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) > DerefOf (RefOf (S604))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) > DerefOf (RefOf (S604))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) > DerefOf (RefOf (S604))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) > DerefOf (RefOf (S604))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) > DerefOf (RefOf (S604))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) > DerefOf (RefOf (S604))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0C) > DerefOf (RefOf (S604))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0E) > DerefOf (RefOf (S604))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) > DerefOf (RefOf (S604))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) > DerefOf (RefOf (S604))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) > DerefOf (RefOf (S604))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xC179B3FE >= DerefOf (RefOf (S604))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xC179B3FF >= DerefOf (RefOf (S604))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xC179B3FD >= DerefOf (RefOf (S604))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI3 >= DerefOf (RefOf (S604))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIC >= DerefOf (RefOf (S604))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIE >= DerefOf (RefOf (S604))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0C) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0E) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) >= DerefOf (RefOf (S604))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xC179B3FE < DerefOf (RefOf (S604))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xC179B3FF < DerefOf (RefOf (S604))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xC179B3FD < DerefOf (RefOf (S604))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI3 < DerefOf (RefOf (S604))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIC < DerefOf (RefOf (S604))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIE < DerefOf (RefOf (S604))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) < DerefOf (RefOf (S604))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) < DerefOf (RefOf (S604))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) < DerefOf (RefOf (S604))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) < DerefOf (RefOf (S604))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) < DerefOf (RefOf (S604))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) < DerefOf (RefOf (S604))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) < DerefOf (RefOf (S604))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0C) < DerefOf (RefOf (S604))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0E) < DerefOf (RefOf (S604))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) < DerefOf (RefOf (S604))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) < DerefOf (RefOf (S604))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) < DerefOf (RefOf (S604))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xC179B3FE <= DerefOf (RefOf (S604))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xC179B3FF <= DerefOf (RefOf (S604))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xC179B3FD <= DerefOf (RefOf (S604))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI3 <= DerefOf (RefOf (S604))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIC <= DerefOf (RefOf (S604))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIE <= DerefOf (RefOf (S604))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0C) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0E) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) <= DerefOf (RefOf (S604))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xC179B3FE != DerefOf (RefOf (S604))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xC179B3FF != DerefOf (RefOf (S604))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xC179B3FD != DerefOf (RefOf (S604))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI3 != DerefOf (RefOf (S604))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIC != DerefOf (RefOf (S604))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIE != DerefOf (RefOf (S604))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) != DerefOf (RefOf (S604))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) != DerefOf (RefOf (S604))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) != DerefOf (RefOf (S604))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) != DerefOf (RefOf (S604))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) != DerefOf (RefOf (S604))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) != DerefOf (RefOf (S604))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) != DerefOf (RefOf (S604))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0C) != DerefOf (RefOf (S604))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0E) != DerefOf (RefOf (S604))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) != DerefOf (RefOf (S604))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) != DerefOf (RefOf (S604))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) != DerefOf (RefOf (S604))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M02B, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == DerefOf (RefOf (S601))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == DerefOf (RefOf (S601))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == DerefOf (RefOf (S601))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == DerefOf (RefOf (S601))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == DerefOf (RefOf (S601))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == DerefOf (RefOf (S601))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == DerefOf (RefOf (S601))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == DerefOf (RefOf (S601))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == DerefOf (RefOf (S601))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == DerefOf (RefOf (S601))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == DerefOf (RefOf (S601))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == DerefOf (RefOf (S601))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > DerefOf (RefOf (S601))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > DerefOf (RefOf (S601))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > DerefOf (RefOf (S601))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > DerefOf (RefOf (S601))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > DerefOf (RefOf (S601))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > DerefOf (RefOf (S601))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > DerefOf (RefOf (S601))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > DerefOf (RefOf (S601))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > DerefOf (RefOf (S601))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > DerefOf (RefOf (S601))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > DerefOf (RefOf (S601))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > DerefOf (RefOf (S601))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= DerefOf (RefOf (S601))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= DerefOf (RefOf (S601))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= DerefOf (RefOf (S601))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= DerefOf (RefOf (S601))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= DerefOf (RefOf (S601))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= DerefOf (RefOf (S601))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < DerefOf (RefOf (S601))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < DerefOf (RefOf (S601))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < DerefOf (RefOf (S601))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < DerefOf (RefOf (S601))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < DerefOf (RefOf (S601))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < DerefOf (RefOf (S601))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < DerefOf (RefOf (S601))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < DerefOf (RefOf (S601))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < DerefOf (RefOf (S601))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < DerefOf (RefOf (S601))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < DerefOf (RefOf (S601))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < DerefOf (RefOf (S601))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= DerefOf (RefOf (S601))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= DerefOf (RefOf (S601))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= DerefOf (RefOf (S601))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= DerefOf (RefOf (S601))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= DerefOf (RefOf (S601))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= DerefOf (RefOf (S601))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != DerefOf (RefOf (S601))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != DerefOf (RefOf (S601))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != DerefOf (RefOf (S601))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != DerefOf (RefOf (S601))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != DerefOf (RefOf (S601))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != DerefOf (RefOf (S601))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != DerefOf (RefOf (S601))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != DerefOf (RefOf (S601))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != DerefOf (RefOf (S601))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != DerefOf (RefOf (S601))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != DerefOf (RefOf (S601))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != DerefOf (RefOf (S601))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x6B, Local0, Ones) } } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64G, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (RefOf (S601))) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, DerefOf (RefOf (S605))) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, DerefOf (RefOf (S601))) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, DerefOf (RefOf (S605))) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (S601))) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (S605))) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (S601))) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (S605))) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (S601))) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (S605))) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (S601))) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (S605))) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32G, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (RefOf (S601))) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, DerefOf (RefOf (S604))) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (AUI1, DerefOf (RefOf (S601))) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, DerefOf (RefOf (S604))) M600 (Arg0, 0x03, Local0, BB24) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (S601))) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (S604))) M600 (Arg0, 0x05, Local0, BB24) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (S601))) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (S604))) M600 (Arg0, 0x07, Local0, BB24) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (S601))) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (S604))) M600 (Arg0, 0x09, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (S601))) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (S604))) M600 (Arg0, 0x0B, Local0, BB24) } Concatenate (0x0321, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x0D, Local0, BB24) Concatenate (AUI1, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x0F, Local0, BB24) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x11, Local0, BB24) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x14, Local0, BB24) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x16, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x18, Local0, BB24) } } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M02C, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S614))) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S601))) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (RefOf (S614))) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, DerefOf (RefOf (S601))) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S614))) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S601))) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (S614))) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (S601))) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (S614))) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (S601))) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S614))) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S601))) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S605))) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (RefOf (S605))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S605))) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (S605))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (S605))) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S605))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S604))) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (RefOf (S604))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S604))) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (S604))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (S604))) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S604))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Method (M02D, 1, NotSerialized) { Store (AUS6 [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [DerefOf (RefOf (S614))], Local3) CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [DerefOf (RefOf (S614))], Local3) CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [DerefOf (RefOf (S614))], Local3) CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (RefOf (S614))], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [DerefOf (RefOf (S614))] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [DerefOf (RefOf (S614))] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [DerefOf (RefOf (S614))] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [DerefOf (RefOf (S614))] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [DerefOf (RefOf (S614))] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [DerefOf (RefOf (S614))] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [DerefOf (RefOf (S614))] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [DerefOf (RefOf (S614))] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [DerefOf (RefOf (S614))] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [DerefOf (RefOf (S614))] CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [DerefOf (RefOf (S614))] CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [DerefOf (RefOf (S614))] CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [DerefOf (RefOf (S614))] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [DerefOf (RefOf (S614))] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [DerefOf (RefOf (S614))] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [DerefOf (RefOf (S614))] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [DerefOf (RefOf (S614))] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [DerefOf (RefOf (S614))] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [DerefOf (RefOf (S614))] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [DerefOf (RefOf (S614))] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [DerefOf (RefOf (S614))] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (RefOf (S614))] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M02E, 1, NotSerialized) { CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, DerefOf (RefOf (S601))) If (F64) { Fatal (0xFF, 0xFFFFFFFF, DerefOf (RefOf (S605))) } Else { Fatal (0xFF, 0xFFFFFFFF, DerefOf (RefOf (S604))) } CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) } /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M02F, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", DerefOf (RefOf (S614)), 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S614)), 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, DerefOf (RefOf (S614)), 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, DerefOf (RefOf (S614)), 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (S614)), 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S614)), 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (S614)), 0x0A ) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (S614)), 0x0A ) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (RefOf (S614)), 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), DerefOf (RefOf (S614)), 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (S614)), 0x0A ) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S614)), 0x0A ) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S614)), 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (S614)) ) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (S614)) ) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (S614)) ) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (S614)) ) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (S614)), Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (S605)) ) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (S605)) ) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (S605))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (S605)) ) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (S605)) ) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (RefOf (S614)), DerefOf (RefOf (S605))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S614)), DerefOf (RefOf (S605)) ) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (RefOf (S614)), DerefOf (RefOf (S605))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (RefOf (S614)), DerefOf (RefOf (S605))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)) ) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)) ) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (S614)), DerefOf ( RefOf (S605))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (S614)), DerefOf ( RefOf (S605))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)) ) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)) ) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (S614)), DerefOf ( RefOf (S605))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S614)), DerefOf ( RefOf (S605))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S614)), DerefOf (RefOf (S605)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (S604)) ) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (S604)) ) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (S604))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (S604)) ) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (S604)) ) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (RefOf (S614)), DerefOf (RefOf (S604))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S614)), DerefOf (RefOf (S604)) ) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (RefOf (S614)), DerefOf (RefOf (S604))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (RefOf (S614)), DerefOf (RefOf (S604))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)) ) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)) ) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (S614)), DerefOf ( RefOf (S604))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (S614)), DerefOf ( RefOf (S604))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)) ) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)) ) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (S614)), DerefOf ( RefOf (S604))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S614)), DerefOf ( RefOf (S604))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (S614)), DerefOf (RefOf (S604)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Method (M030, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf ( S614))) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf ( S614))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf ( S614))) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf ( S614))) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (S614))) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64j, 1) */ /* Method(m32j, 1) */ /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M031, 1, NotSerialized) { CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (DerefOf (RefOf (S601))) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z091, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (DerefOf (RefOf (S61B))) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z091, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator ??? */ Method (M032, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Derefof(Refof(s601))) */ CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z091, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Method (M033, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, DerefOf (RefOf (S601))) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z091, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M034, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (DerefOf (RefOf (S600))) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (DerefOf (RefOf (S601))) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (DerefOf (RefOf (S604))) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (DerefOf (RefOf (S605))) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (S600))) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (S601))) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (S604))) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (S605))) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (DerefOf (RefOf (S600))) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64k, 1) */ /* Method(m32k, 1) */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M035, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x05) { "0321" } == DerefOf (RefOf (S601))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } == DerefOf (RefOf (S601))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB7 == DerefOf (RefOf (S601))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == DerefOf (RefOf (S601))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) == DerefOf (RefOf (S601))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == DerefOf (RefOf (S601))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) == DerefOf (RefOf (S601))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == DerefOf (RefOf (S601))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (RefOf (S601))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x05) { "0321" } > DerefOf (RefOf (S601))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } > DerefOf (RefOf (S601))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } > DerefOf (RefOf (S601))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } > DerefOf (RefOf (S601))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB7 > DerefOf (RefOf (S601))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB8 > DerefOf (RefOf (S601))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) > DerefOf (RefOf (S601))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) > DerefOf (RefOf (S601))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) > DerefOf (RefOf (S601))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x08) > DerefOf (RefOf (S601))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) > DerefOf (RefOf (S601))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x05) { "0321" } >= DerefOf (RefOf (S601))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } >= DerefOf (RefOf (S601))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } >= DerefOf (RefOf (S601))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } >= DerefOf (RefOf (S601))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB7 >= DerefOf (RefOf (S601))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB8 >= DerefOf (RefOf (S601))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x08) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) >= DerefOf (RefOf (S601))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x05) { "0321" } < DerefOf (RefOf (S601))) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } < DerefOf (RefOf (S601))) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } < DerefOf (RefOf (S601))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } < DerefOf (RefOf (S601))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB7 < DerefOf (RefOf (S601))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB8 < DerefOf (RefOf (S601))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) < DerefOf (RefOf (S601))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) < DerefOf (RefOf (S601))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) < DerefOf (RefOf (S601))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x08) < DerefOf (RefOf (S601))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) < DerefOf (RefOf (S601))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x05) { "0321" } <= DerefOf (RefOf (S601))) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } <= DerefOf (RefOf (S601))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } <= DerefOf (RefOf (S601))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } <= DerefOf (RefOf (S601))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB7 <= DerefOf (RefOf (S601))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB8 <= DerefOf (RefOf (S601))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x08) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) <= DerefOf (RefOf (S601))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x05) { "0321" } != DerefOf (RefOf (S601))) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } != DerefOf (RefOf (S601))) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } != DerefOf (RefOf (S601))) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } != DerefOf (RefOf (S601))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB7 != DerefOf (RefOf (S601))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB8 != DerefOf (RefOf (S601))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) != DerefOf (RefOf (S601))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) != DerefOf (RefOf (S601))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) != DerefOf (RefOf (S601))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x08) != DerefOf (RefOf (S601))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) != DerefOf (RefOf (S601))) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = (Buffer (0x01) { 0x00 // . } == DerefOf (RefOf (S60C))) M600 (Arg0, 0x52, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } == DerefOf (RefOf (S60C))) M600 (Arg0, 0x53, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } > DerefOf (RefOf (S60C))) M600 (Arg0, 0x54, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } > DerefOf (RefOf (S60C))) M600 (Arg0, 0x55, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } >= DerefOf (RefOf (S60C))) M600 (Arg0, 0x56, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } > DerefOf (RefOf (S60C))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } < DerefOf (RefOf (S60C))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } < DerefOf (RefOf (S60C))) M600 (Arg0, 0x59, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } <= DerefOf (RefOf (S60C))) M600 (Arg0, 0x5A, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } <= DerefOf (RefOf (S60C))) M600 (Arg0, 0x5B, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } != DerefOf (RefOf (S60C))) M600 (Arg0, 0x5C, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } != DerefOf (RefOf (S60C))) M600 (Arg0, 0x5D, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } == DerefOf (RefOf (S60E))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } == DerefOf (RefOf (S60E))) M600 (Arg0, 0x5F, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } > DerefOf (RefOf (S60E))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > DerefOf (RefOf (S60E))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } >= DerefOf (RefOf (S60E))) M600 (Arg0, 0x62, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > DerefOf (RefOf (S60E))) M600 (Arg0, 0x63, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } < DerefOf (RefOf (S60E))) M600 (Arg0, 0x64, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } < DerefOf (RefOf (S60E))) M600 (Arg0, 0x65, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } <= DerefOf (RefOf (S60E))) M600 (Arg0, 0x66, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } <= DerefOf (RefOf (S60E))) M600 (Arg0, 0x67, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } != DerefOf (RefOf (S60E))) M600 (Arg0, 0x68, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } != DerefOf (RefOf (S60E))) M600 (Arg0, 0x69, Local0, Ones) } /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M036, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (S601))) M600 (Arg0, 0x00, Local0, BB29) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (S601))) M600 (Arg0, 0x01, Local0, BB2A) Local0 = Concatenate (AUB0, DerefOf (RefOf (S601))) M600 (Arg0, 0x02, Local0, BB29) Local0 = Concatenate (AUB1, DerefOf (RefOf (S601))) M600 (Arg0, 0x03, Local0, BB2A) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (S601))) M600 (Arg0, 0x04, Local0, BB29) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (S601))) M600 (Arg0, 0x05, Local0, BB2A) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (S601))) M600 (Arg0, 0x06, Local0, BB29) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (S601))) M600 (Arg0, 0x07, Local0, BB2A) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (S601))) M600 (Arg0, 0x08, Local0, BB29) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (S601))) M600 (Arg0, 0x09, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (S601))) M600 (Arg0, 0x0A, Local0, BB29) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (S601))) M600 (Arg0, 0x0B, Local0, BB2A) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0C, Local0, BB29) Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0D, Local0, BB2A) Concatenate (AUB0, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0E, Local0, BB29) Concatenate (AUB1, DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x0F, Local0, BB2A) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x10, Local0, BB29) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x11, Local0, BB2A) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x12, Local0, BB29) Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x13, Local0, BB2A) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x14, Local0, BB29) Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x15, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x16, Local0, BB29) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (S601)), Local0) M600 (Arg0, 0x17, Local0, BB2A) } /* Boundary Cases */ Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (S60C))) M600 (Arg0, 0x18, Local0, BB2B) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (S60C))) M600 (Arg0, 0x19, Local0, BB2C) Local1 = 0x00 Local0 = Concatenate (Buffer (Local1){}, DerefOf (RefOf (S60E))) M600 (Arg0, 0x1A, Local0, BB2D) } /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character, that is impossible to show */ /* with an immediate String constant). */ Method (M037, 1, NotSerialized) { Local0 = ToString (DerefOf (RefOf (S601)), Ones) M600 (Arg0, 0x00, Local0, BS20) Local0 = ToString (DerefOf (RefOf (S601)), 0x03) M600 (Arg0, 0x01, Local0, BS21) Local0 = ToString (DerefOf (RefOf (S601)), AUI0) M600 (Arg0, 0x02, Local0, BS20) Local0 = ToString (DerefOf (RefOf (S601)), AUI7) M600 (Arg0, 0x03, Local0, BS21) If (Y078) { Local0 = ToString (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x04, Local0, BS20) Local0 = ToString (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x05, Local0, BS21) } Local0 = ToString (DerefOf (RefOf (S601)), DerefOf (PAUI [0x00])) M600 (Arg0, 0x06, Local0, BS20) Local0 = ToString (DerefOf (RefOf (S601)), DerefOf (PAUI [0x07])) M600 (Arg0, 0x07, Local0, BS21) /* Method returns Length parameter */ Local0 = ToString (DerefOf (RefOf (S601)), M601 (0x01, 0x00)) M600 (Arg0, 0x08, Local0, BS20) Local0 = ToString (DerefOf (RefOf (S601)), M601 (0x01, 0x07)) M600 (Arg0, 0x09, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (RefOf (S601)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0A, Local0, BS20) Local0 = ToString (DerefOf (RefOf (S601)), DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x0B, Local0, BS21) } ToString (DerefOf (RefOf (S601)), Ones, Local0) M600 (Arg0, 0x0C, Local0, BS20) ToString (DerefOf (RefOf (S601)), 0x03, Local0) M600 (Arg0, 0x0D, Local0, BS21) ToString (DerefOf (RefOf (S601)), AUI0, Local0) M600 (Arg0, 0x0E, Local0, BS20) ToString (DerefOf (RefOf (S601)), AUI7, Local0) M600 (Arg0, 0x0F, Local0, BS21) If (Y078) { ToString (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x10, Local0, BS20) ToString (DerefOf (RefOf (S601)), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x11, Local0, BS21) } ToString (DerefOf (RefOf (S601)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x12, Local0, BS20) ToString (DerefOf (RefOf (S601)), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x13, Local0, BS21) /* Method returns Length parameter */ ToString (DerefOf (RefOf (S601)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS20) ToString (DerefOf (RefOf (S601)), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x15, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (RefOf (S601)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x16, Local0, BS20) ToString (DerefOf (RefOf (S601)), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x17, Local0, BS21) } /* Boundary Cases */ Local0 = ToString (DerefOf (RefOf (S60C)), Ones) M600 (Arg0, 0x18, Local0, BS22) Local0 = ToString (DerefOf (RefOf (S60C)), 0x03) M600 (Arg0, 0x19, Local0, BS22) Local0 = ToString (DerefOf (RefOf (S60E)), Ones) M600 (Arg0, 0x1A, Local0, BS23) Local0 = ToString (DerefOf (RefOf (S60E)), 0x03) M600 (Arg0, 0x1B, Local0, BS24) } /* Method(m038, 1) */ /* Method(m039, 1) */ /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (RefOf (B606))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (RefOf (B60A))-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = DerefOf (RefOf (B606))++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (RefOf (B60A))++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (RefOf (B606))) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (RefOf (B606))) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (RefOf (B60A))) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (RefOf (B606))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (RefOf (B60A))-- M600 (Arg0, 0x01, Local0, BI18) } /* Increment */ If (Y501) { Local0 = DerefOf (RefOf (B606))++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (RefOf (B60A))++ M600 (Arg0, 0x03, Local0, BI19) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (RefOf (B606))) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (RefOf (B606))) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (RefOf (B60A))) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { Local0 = !DerefOf (RefOf (B600)) M600 (Arg0, 0x00, Local0, Ones) Local0 = !DerefOf (RefOf (B606)) M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !DerefOf (RefOf (B60A)) M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !DerefOf (RefOf (B60A)) M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (RefOf (B606))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (RefOf (B60F))) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (RefOf (B60F)), Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (DerefOf (RefOf (B606))) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (DerefOf (RefOf (B610))) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (RefOf (B610)), Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (RefOf (B606))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (RefOf (B611))) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (RefOf (B611)), Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (DerefOf (RefOf (B606))) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (DerefOf (RefOf (B612))) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (RefOf (B612)), Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((DerefOf (RefOf (B606)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (B606)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((DerefOf (RefOf (B606)) + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (DerefOf (RefOf (B606)) + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (DerefOf (RefOf (B606)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (B606)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (DerefOf (RefOf (B606)) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + DerefOf (RefOf (B606))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + DerefOf (RefOf (B606))) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + DerefOf (RefOf (B606))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + DerefOf (RefOf (B606))) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (RefOf (B606))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (RefOf (B606))) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (RefOf (B606))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (RefOf (B606))) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (RefOf (B606))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + DerefOf (RefOf (B606))) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (B606))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (B606))) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((DerefOf (RefOf (B60A)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (B60A)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (RefOf (B60A)) + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (RefOf (B60A)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (DerefOf (RefOf (B60A)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (RefOf (B60A)) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((DerefOf (RefOf (B60A)) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (RefOf (B606)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (RefOf (B60A)) + DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((DerefOf (RefOf (B60A)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (B60A)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((DerefOf (RefOf (B60A)) + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (DerefOf (RefOf (B60A)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (DerefOf (RefOf (B60A)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (DerefOf (RefOf (B60A)) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) + DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((DerefOf (RefOf (B60A)) + DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (DerefOf (RefOf (B606)) + DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (DerefOf (RefOf (B60A)) + DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (B606)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (B606)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (B606)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (B606)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (RefOf (B606)) & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (B606)) & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (B606)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (B606)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (RefOf (B606)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (B606)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (RefOf (B606)) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & DerefOf (RefOf (B606))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (B606))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & DerefOf (RefOf (B606))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (RefOf (B606))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (RefOf (B606))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (B606))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (RefOf (B606))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (RefOf (B606))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (RefOf (B606))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (RefOf (B606))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (B606))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (B606))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (B60A)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (RefOf (B60A)) & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (B60A)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (B60A)) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (RefOf (B60A)) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (RefOf (B606)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (RefOf (B60A)) & DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (B60A)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((DerefOf (RefOf (B60A)) & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (DerefOf (RefOf (B60A)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (DerefOf (RefOf (B60A)) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) & DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (RefOf (B60A)) & DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (RefOf (B606)) & DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (RefOf (B60A)) & DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (B606)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (B606)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (B606)) / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (RefOf (B606)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (DerefOf (RefOf (B606)), 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (RefOf (B606)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (DerefOf (RefOf (B606)), AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (B606)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (DerefOf (RefOf (B606)), DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (RefOf (B606)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (DerefOf (RefOf (B606)), DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (RefOf (B606)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (DerefOf (RefOf (B606)), M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (B60A)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (B60A)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (B60A)) / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (RefOf (B60A)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (B60A)), 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (RefOf (B60A)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (B60A)), AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (RefOf (B60A)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (B60A)), M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (B60A)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (B60A)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (B60A)) / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) / DerefOf (PAUI [0x14])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (RefOf (B60A)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (DerefOf (RefOf (B60A)), 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (RefOf (B60A)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (DerefOf (RefOf (B60A)), AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (RefOf (B60A)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (DerefOf (RefOf (B60A)), M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) / DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) / DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (B606)) % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (B606)) % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (B606)) % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (RefOf (B606)) % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (RefOf (B606)) % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (RefOf (B606)) % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (RefOf (B606)) % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % DerefOf (RefOf (B606))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % DerefOf (RefOf (B606))) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % DerefOf (RefOf (B606))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % DerefOf (RefOf (B606))) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % DerefOf (RefOf (B606))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % DerefOf (RefOf (B606))) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % DerefOf (RefOf (B606))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % DerefOf (RefOf (B606))) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % DerefOf (RefOf (B606))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % DerefOf (RefOf (B606))) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (RefOf (B606))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (RefOf (B606))) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (B60A)) % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (B60A)) % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (B60A)) % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (RefOf (B60A)) % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (RefOf (B60A)) % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (RefOf (B60A)) % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (RefOf (B60A)) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (DerefOf (RefOf (B606)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (RefOf (B60A)) % DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (B60A)) % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (B60A)) % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (B60A)) % DerefOf (PAUI [0x15])), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) % DerefOf (PAUI [0x16])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (RefOf (B60A)) % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (RefOf (B60A)) % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (RefOf (B60A)) % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) % DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (RefOf (B60A)) % DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (DerefOf (RefOf (B606)) % DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (RefOf (B60A)) % DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (B606)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (B606)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (B606)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (B606)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (RefOf (B606)) * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (B606)) * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (B606)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (B606)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (RefOf (B606)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (B606)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (RefOf (B606)) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (B606)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * DerefOf (RefOf (B606))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (RefOf (B606))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * DerefOf (RefOf (B606))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (RefOf (B606))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (RefOf (B606))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (RefOf (B606))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (RefOf (B606))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (RefOf (B606))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (RefOf (B606))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (RefOf (B606))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (B606))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (B606))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (B60A)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (RefOf (B60A)) * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (B60A)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (B60A)) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((DerefOf (RefOf (B60A)) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (RefOf (B606)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (RefOf (B60A)) * DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (B60A)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((DerefOf (RefOf (B60A)) * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (DerefOf (RefOf (B60A)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (DerefOf (RefOf (B60A)) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) * DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((DerefOf (RefOf (B60A)) * DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (DerefOf (RefOf (B606)) * DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (DerefOf (RefOf (B60A)) * DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (RefOf (B606)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B606)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (DerefOf (RefOf (B606)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B606)), AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (B606)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B606)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (RefOf (B606)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B606)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (DerefOf (RefOf (B606)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B606)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (RefOf (B606)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B606)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (DerefOf (RefOf (B606)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B606)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (B606)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B606)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (RefOf (B606)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B606)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (DerefOf (RefOf (B606)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B606)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (RefOf (B606))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (B606))) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, DerefOf (RefOf (B606))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (RefOf (B606))) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B606))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (B606))) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (B606))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (B606))) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (RefOf (B606))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (RefOf (B606))) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B606))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (B606))) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (RefOf (B60A)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (DerefOf (RefOf (B60A)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (RefOf (B60A)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (RefOf (B60A)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (DerefOf (RefOf (B60A)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (RefOf (B60A)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (B60A))) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, DerefOf (RefOf (B60A))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (RefOf (B60A))) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (RefOf (B60A))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (RefOf (B60A))) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606))) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (RefOf (B60A)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (DerefOf (RefOf (B60A)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (RefOf (B60A)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (DerefOf (RefOf (B60A)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (DerefOf (RefOf (B60A)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (RefOf (B60A)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, DerefOf (RefOf (B60A))) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, DerefOf (RefOf (B60A))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, DerefOf (RefOf (B60A))) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (RefOf (B60A))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), DerefOf (RefOf (B60A))) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606))) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (RefOf (B606)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (B606)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (RefOf (B606)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (B606)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (B606)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (B606)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (RefOf (B606)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (B606)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (RefOf (B606)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (B606)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (RefOf (B606)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (B606)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (RefOf (B606)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (B606)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (B606)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (B606)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (RefOf (B606)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (B606)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (RefOf (B606)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (B606)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (B606)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (RefOf (B606))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (B606))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (RefOf (B606))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, DerefOf (RefOf (B606))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B606))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (B606))) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (B606))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (B606))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (RefOf (B606))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), DerefOf (RefOf (B606))) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B606))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (B606))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (RefOf (B60A)), 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (RefOf (B60A)), AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (RefOf (B60A)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (RefOf (B60A)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (B60A)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (RefOf (B60A)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (B60A)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (RefOf (B60A)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (B60A)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (B60A))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (RefOf (B60A))) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, DerefOf (RefOf (B60A))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (RefOf (B60A))) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), DerefOf (RefOf (B60A))) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606))) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (RefOf (B60A)), 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (RefOf (B60A)), AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (RefOf (B60A)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (RefOf (B60A)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (B60A)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (RefOf (B60A)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (B60A)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (B60A)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (RefOf (B60A)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (B60A)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (B60A)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, DerefOf (RefOf (B60A))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (RefOf (B60A))) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, DerefOf (RefOf (B60A))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (RefOf (B60A))) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), DerefOf (RefOf (B60A))) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606))) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (DerefOf (RefOf (B606)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (DerefOf (RefOf (B60A)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (RefOf (B606)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (B606)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (RefOf (B606)) | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (B606)) | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (RefOf (B606)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (B606)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (B606)) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (RefOf (B606))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (B606))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (RefOf (B606))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | DerefOf (RefOf (B606))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (RefOf (B606))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (B606))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (RefOf (B606))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (RefOf (B606))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (RefOf (B606))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | DerefOf (RefOf (B606))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (B606))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (B606))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (RefOf (B60A)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (B60A)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (RefOf (B60A)) | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (B60A)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (RefOf (B60A)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (B60A)) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((DerefOf (RefOf (B60A)) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (RefOf (B606)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (RefOf (B60A)) | DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((DerefOf (RefOf (B60A)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (B60A)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((DerefOf (RefOf (B60A)) | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (RefOf (B60A)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (DerefOf (RefOf (B60A)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (RefOf (B60A)) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) | DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((DerefOf (RefOf (B60A)) | DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (DerefOf (RefOf (B606)) | DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (DerefOf (RefOf (B60A)) | DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((DerefOf (RefOf (B606)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((DerefOf (RefOf (B606)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((DerefOf (RefOf (B606)) << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (DerefOf (RefOf (B606)) << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (DerefOf (RefOf (B606)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (DerefOf (RefOf (B606)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (DerefOf (RefOf (B606)) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((DerefOf (RefOf (B60A)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((DerefOf (RefOf (B60A)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((DerefOf (RefOf (B60A)) << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (RefOf (B60A)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (DerefOf (RefOf (B60A)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (RefOf (B60A)) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (RefOf (B60A)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (DerefOf (RefOf (B606)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (RefOf (B60A)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((DerefOf (RefOf (B60A)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((DerefOf (RefOf (B60A)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((DerefOf (RefOf (B60A)) << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (DerefOf (RefOf (B60A)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (DerefOf (RefOf (B60A)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (DerefOf (RefOf (B60A)) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (RefOf (B60E))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (RefOf (B60A)) << DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (DerefOf (RefOf (B606)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (RefOf (B60A)) << DerefOf (RefOf (B60E))) M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((DerefOf (RefOf (B606)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((DerefOf (RefOf (B606)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((DerefOf (RefOf (B606)) >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (DerefOf (RefOf (B606)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (DerefOf (RefOf (B606)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (DerefOf (RefOf (B606)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (DerefOf (RefOf (B606)) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((DerefOf (RefOf (B60A)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((DerefOf (RefOf (B60A)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((DerefOf (RefOf (B60A)) >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (RefOf (B60A)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (DerefOf (RefOf (B60A)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (DerefOf (RefOf (B606)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((DerefOf (RefOf (B60A)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((DerefOf (RefOf (B60A)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((DerefOf (RefOf (B60A)) >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (DerefOf (RefOf (B60A)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (DerefOf (RefOf (B60A)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (B60A)) >> DerefOf (RefOf (B60E))), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (DerefOf (RefOf (B606)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (RefOf (B60A)) >> DerefOf (RefOf (B60E))) M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((DerefOf (RefOf (B606)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (B606)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((DerefOf (RefOf (B606)) - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (DerefOf (RefOf (B606)) - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (DerefOf (RefOf (B606)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (B606)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (DerefOf (RefOf (B606)) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - DerefOf (RefOf (B606))) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - DerefOf (RefOf (B606))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - DerefOf (RefOf (B606))) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - DerefOf (RefOf (B606))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (RefOf (B606))) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (RefOf (B606))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (RefOf (B606))) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (RefOf (B606))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (RefOf (B606))) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - DerefOf (RefOf (B606))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (B606))) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (B606))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((DerefOf (RefOf (B60A)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (B60A)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (RefOf (B60A)) - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (RefOf (B60A)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (DerefOf (RefOf (B60A)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (RefOf (B60A)) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((DerefOf (RefOf (B60A)) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (DerefOf (RefOf (B606)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (DerefOf (RefOf (B60A)) - DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((DerefOf (RefOf (B60A)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (B60A)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((DerefOf (RefOf (B60A)) - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (DerefOf (RefOf (B60A)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (DerefOf (RefOf (B60A)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (DerefOf (RefOf (B60A)) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) - DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((DerefOf (RefOf (B60A)) - DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (DerefOf (RefOf (B606)) - DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (DerefOf (RefOf (B60A)) - DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B606)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((DerefOf (RefOf (B606)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (B606)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (RefOf (B606)) ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((DerefOf (RefOf (B606)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B606)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (B606)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (RefOf (B606)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (DerefOf (RefOf (B606)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (B606)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (RefOf (B606)) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (B606)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((DerefOf (RefOf (B60A)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (RefOf (B60A)) ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (B60A)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (RefOf (B60A)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (DerefOf (RefOf (B60A)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (RefOf (B606)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (B60A)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((DerefOf (RefOf (B60A)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((DerefOf (RefOf (B60A)) ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((DerefOf (RefOf (B60A)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (B60A)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (B60A)) ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (DerefOf (RefOf (B60A)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (DerefOf (RefOf (B60A)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (B606)) ^ DerefOf (RefOf (B60A))), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (B606))), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (DerefOf (RefOf (B606)) ^ DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (DerefOf (RefOf (B60A)) ^ DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (B606)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (B606)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (B606)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (B606)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (B606)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (B606)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (B606)) && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (B606)) && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B606)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (B606)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B606)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (B606)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (RefOf (B606))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (RefOf (B606))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (RefOf (B606))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (RefOf (B606))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (RefOf (B606))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (RefOf (B606))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (RefOf (B606))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (RefOf (B606))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (RefOf (B606))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (RefOf (B606))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (RefOf (B606))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (RefOf (B606))) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (B60A)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (B60A)) && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (RefOf (B60A))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (RefOf (B60A))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (RefOf (B60A))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (RefOf (B60A))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (B606)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) && DerefOf (RefOf (B606))) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (B60A)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (B60A)) && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (B60A)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (RefOf (B60A))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (RefOf (B60A))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (RefOf (B60A))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (RefOf (B60A))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (B606)) && DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) && DerefOf (RefOf (B606))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (B600)) || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (B600)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (B600)) || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (B600)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (B600)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (B600)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (B600)) || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (B600)) || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B600)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (B600)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B600)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (B600)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (RefOf (B600))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || DerefOf (RefOf (B600))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (RefOf (B600))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || DerefOf (RefOf (B600))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (RefOf (B600))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (RefOf (B600))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (RefOf (B600))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (RefOf (B600))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (RefOf (B600))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || DerefOf (RefOf (B600))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (RefOf (B600))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (RefOf (B600))) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (B60A)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (B60A)) || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (RefOf (B60A))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (RefOf (B60A))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (RefOf (B60A))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (RefOf (B60A))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (B600)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || DerefOf (RefOf (B600))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (B60A)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (B60A)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (B60A)) || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (B60A)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (B60A)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (RefOf (B60A))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (RefOf (B60A))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (RefOf (B60A))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (RefOf (B60A))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (B600)) || DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (B60A)) || DerefOf (RefOf (B600))) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == DerefOf (RefOf (B60A))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == DerefOf (RefOf (B60A))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == DerefOf (RefOf (B60A))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == DerefOf (RefOf (B60A))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == DerefOf (RefOf (B60A))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > DerefOf (RefOf (B60A))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > DerefOf (RefOf (B60A))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > DerefOf (RefOf (B60A))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > DerefOf (RefOf (B60A))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > DerefOf (RefOf (B60A))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > DerefOf (RefOf (B60A))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < DerefOf (RefOf (B60A))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < DerefOf (RefOf (B60A))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < DerefOf (RefOf (B60A))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < DerefOf (RefOf (B60A))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { /* LEqual */ Local0 = (0xD650A284 == DerefOf (RefOf (B60A))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == DerefOf (RefOf (B60A))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == DerefOf (RefOf (B60A))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == DerefOf (RefOf (B60A))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == DerefOf (RefOf (B60A))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == DerefOf (RefOf (B60A))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > DerefOf (RefOf (B60A))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > DerefOf (RefOf (B60A))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > DerefOf (RefOf (B60A))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > DerefOf (RefOf (B60A))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > DerefOf (RefOf (B60A))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > DerefOf (RefOf (B60A))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > DerefOf (RefOf (B60A))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= DerefOf (RefOf (B60A))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < DerefOf (RefOf (B60A))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < DerefOf (RefOf (B60A))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < DerefOf (RefOf (B60A))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < DerefOf (RefOf (B60A))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < DerefOf (RefOf (B60A))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= DerefOf (RefOf (B60A))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != DerefOf (RefOf (B60A))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != DerefOf (RefOf (B60A))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == DerefOf (RefOf (B606))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == DerefOf (RefOf (B606))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == DerefOf (RefOf (B606))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == DerefOf (RefOf (B606))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == DerefOf (RefOf (B606))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == DerefOf (RefOf (B606))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == DerefOf (RefOf (B606))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == DerefOf (RefOf (B606))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == DerefOf (RefOf (B606))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == DerefOf (RefOf (B606))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == DerefOf (RefOf (B606))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == DerefOf (RefOf (B606))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > DerefOf (RefOf (B606))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > DerefOf (RefOf (B606))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > DerefOf (RefOf (B606))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > DerefOf (RefOf (B606))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > DerefOf (RefOf (B606))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > DerefOf (RefOf (B606))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > DerefOf (RefOf (B606))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > DerefOf (RefOf (B606))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > DerefOf (RefOf (B606))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > DerefOf (RefOf (B606))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > DerefOf (RefOf (B606))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > DerefOf (RefOf (B606))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= DerefOf (RefOf (B606))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= DerefOf (RefOf (B606))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= DerefOf (RefOf (B606))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= DerefOf (RefOf (B606))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= DerefOf (RefOf (B606))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= DerefOf (RefOf (B606))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < DerefOf (RefOf (B606))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < DerefOf (RefOf (B606))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < DerefOf (RefOf (B606))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < DerefOf (RefOf (B606))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < DerefOf (RefOf (B606))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < DerefOf (RefOf (B606))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < DerefOf (RefOf (B606))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < DerefOf (RefOf (B606))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < DerefOf (RefOf (B606))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < DerefOf (RefOf (B606))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < DerefOf (RefOf (B606))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < DerefOf (RefOf (B606))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= DerefOf (RefOf (B606))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= DerefOf (RefOf (B606))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= DerefOf (RefOf (B606))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= DerefOf (RefOf (B606))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= DerefOf (RefOf (B606))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= DerefOf (RefOf (B606))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != DerefOf (RefOf (B606))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != DerefOf (RefOf (B606))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != DerefOf (RefOf (B606))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != DerefOf (RefOf (B606))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != DerefOf (RefOf (B606))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != DerefOf (RefOf (B606))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != DerefOf (RefOf (B606))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != DerefOf (RefOf (B606))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != DerefOf (RefOf (B606))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != DerefOf (RefOf (B606))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != DerefOf (RefOf (B606))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != DerefOf (RefOf (B606))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (RefOf (B606))) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, DerefOf (RefOf (B60A))) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, DerefOf (RefOf (B606))) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, DerefOf (RefOf (B60A))) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (B606))) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (B606))) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (B606))) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (B60A))) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (B606))) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (RefOf (B606))) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, DerefOf (RefOf (B60A))) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, DerefOf (RefOf (B606))) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, DerefOf (RefOf (B60A))) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (B606))) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (B606))) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (B606))) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (B60A))) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (B606))) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60E))) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B606))) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (RefOf (B60E))) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, DerefOf (RefOf (B606))) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60E))) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B606))) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60E))) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (B606))) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (B60E))) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (B606))) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60E))) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B606))) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60A))) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (RefOf (B60A))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (B60A))) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60A))) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (RefOf (B60A))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60A))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (B60A))) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Method (M067, 1, NotSerialized) { Store (AUS6 [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [DerefOf (RefOf (B60E))], Local3) CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [DerefOf (RefOf (B60E))], Local3) CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [DerefOf (RefOf (B60E))], Local3) CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (RefOf (B60E))], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [DerefOf (RefOf (B60E))] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [DerefOf (RefOf (B60E))] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [DerefOf (RefOf (B60E))] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [DerefOf (RefOf (B60E))] CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [DerefOf (RefOf (B60E))] CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [DerefOf (RefOf (B60E))] CH04 (Arg0, 0x00, 0x55, Z091, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [DerefOf (RefOf (B60E))] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [DerefOf (RefOf (B60E))] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [DerefOf (RefOf (B60E))] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (RefOf (B60E))] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, DerefOf (RefOf (B606))) If (F64) { Fatal (0xFF, 0xFFFFFFFF, DerefOf (RefOf (B60A))) } Else { Fatal (0xFF, 0xFFFFFFFF, DerefOf (RefOf (B60A))) } CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) } /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", DerefOf (RefOf (B60E)), 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60E)), 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, DerefOf (RefOf (B60E)), 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, DerefOf (RefOf (B60E)), 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (B60E)), 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60E)), 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (B60E)), 0x0A ) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60E)), 0x0A ) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (RefOf (B60E)), 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), DerefOf (RefOf (B60E)), 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (B60E)), 0x0A ) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60E)), 0x0A ) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60E)), 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (B60E)) ) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (B60E)) ) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60E)) ) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60E)) ) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60E)), Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (B60E)), DerefOf ( RefOf (B60A))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60E)), DerefOf ( RefOf (B60A))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (B60E)), DerefOf ( RefOf (B60A))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60E)), DerefOf ( RefOf (B60A))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (B60A))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (B60E)), DerefOf ( RefOf (B60A))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60E)), DerefOf ( RefOf (B60A))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)) ) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (B60E)), DerefOf ( RefOf (B60A))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60E)), DerefOf ( RefOf (B60A))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (B60E)), DerefOf (RefOf (B60A)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf ( B60E))) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf ( B60E))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf ( B60E))) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf ( B60E))) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (B60E))) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64t, 1) */ /* Method(m32t, 1) */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (DerefOf (RefOf (B606))) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z091, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (DerefOf (RefOf (B613))) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z091, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Derefof(Refof(b606))) */ CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z091, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, DerefOf (RefOf (B606))) CH03 (Arg0, Z091, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z091, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (DerefOf (RefOf (B600))) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (DerefOf (RefOf (B606))) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (DerefOf (RefOf (B60A))) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (DerefOf (RefOf (B60A))) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (B600))) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (B606))) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (B60A))) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (B60A))) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (DerefOf (RefOf (B600))) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64u, 1) */ /* Method(m32u, 1) */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M06F, 1, NotSerialized) { /* LEqual */ Local0 = ("21 03 00" == DerefOf (RefOf (B606))) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("21 03 01" == DerefOf (RefOf (B606))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS9 == DerefOf (RefOf (B606))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUSA == DerefOf (RefOf (B606))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) == DerefOf (RefOf (B606))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) == DerefOf (RefOf (B606))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) == DerefOf (RefOf (B606))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x0A) == DerefOf (RefOf (B606))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) == DerefOf (RefOf (B606))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("21 03 00" > DerefOf (RefOf (B606))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("21 03 01" > DerefOf (RefOf (B606))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("21 03 0 " > DerefOf (RefOf (B606))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("21 03 00q" > DerefOf (RefOf (B606))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS9 > DerefOf (RefOf (B606))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUSA > DerefOf (RefOf (B606))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) > DerefOf (RefOf (B606))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) > DerefOf (RefOf (B606))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) > DerefOf (RefOf (B606))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x0A) > DerefOf (RefOf (B606))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) > DerefOf (RefOf (B606))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("21 03 00" >= DerefOf (RefOf (B606))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("21 03 01" >= DerefOf (RefOf (B606))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("21 03 0 " >= DerefOf (RefOf (B606))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("21 03 00q" >= DerefOf (RefOf (B606))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS9 >= DerefOf (RefOf (B606))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUSA >= DerefOf (RefOf (B606))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x0A) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) >= DerefOf (RefOf (B606))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("21 03 00" < DerefOf (RefOf (B606))) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("21 03 01" < DerefOf (RefOf (B606))) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("21 03 0 " < DerefOf (RefOf (B606))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("21 03 00q" < DerefOf (RefOf (B606))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS9 < DerefOf (RefOf (B606))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUSA < DerefOf (RefOf (B606))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) < DerefOf (RefOf (B606))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) < DerefOf (RefOf (B606))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) < DerefOf (RefOf (B606))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x0A) < DerefOf (RefOf (B606))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) < DerefOf (RefOf (B606))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("21 03 00" <= DerefOf (RefOf (B606))) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("21 03 01" <= DerefOf (RefOf (B606))) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("21 03 0 " <= DerefOf (RefOf (B606))) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("21 03 00q" <= DerefOf (RefOf (B606))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS9 <= DerefOf (RefOf (B606))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUSA <= DerefOf (RefOf (B606))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x0A) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) <= DerefOf (RefOf (B606))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("21 03 00" != DerefOf (RefOf (B606))) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("21 03 01" != DerefOf (RefOf (B606))) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("21 03 0 " != DerefOf (RefOf (B606))) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("21 03 00q" != DerefOf (RefOf (B606))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS9 != DerefOf (RefOf (B606))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUSA != DerefOf (RefOf (B606))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) != DerefOf (RefOf (B606))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) != DerefOf (RefOf (B606))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) != DerefOf (RefOf (B606))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x0A) != DerefOf (RefOf (B606))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) != DerefOf (RefOf (B606))) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" == DerefOf (RefOf (B60C))) M600 (Arg0, 0x52, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" == DerefOf (RefOf (B60C))) M600 (Arg0, 0x53, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" > DerefOf (RefOf (B60C))) M600 (Arg0, 0x54, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" > DerefOf (RefOf (B60C))) M600 (Arg0, 0x55, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" >= DerefOf (RefOf (B60C))) M600 (Arg0, 0x56, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" >= DerefOf (RefOf (B60C))) M600 (Arg0, 0x57, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" < DerefOf (RefOf (B60C))) M600 (Arg0, 0x58, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" < DerefOf (RefOf (B60C))) M600 (Arg0, 0x59, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" <= DerefOf (RefOf (B60C))) M600 (Arg0, 0x5A, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" <= DerefOf (RefOf (B60C))) M600 (Arg0, 0x5B, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" != DerefOf (RefOf (B60C))) M600 (Arg0, 0x5C, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" != DerefOf (RefOf (B60C))) M600 (Arg0, 0x5D, Local0, Ones) } /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M070, 1, NotSerialized) { Local0 = Concatenate ("", DerefOf (RefOf (B606))) M600 (Arg0, 0x00, Local0, BS25) Local0 = Concatenate ("1234q", DerefOf (RefOf (B606))) M600 (Arg0, 0x01, Local0, BS26) Local0 = Concatenate (AUS0, DerefOf (RefOf (B606))) M600 (Arg0, 0x02, Local0, BS25) Local0 = Concatenate (AUS1, DerefOf (RefOf (B606))) M600 (Arg0, 0x03, Local0, BS26) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), DerefOf (RefOf (B606))) M600 (Arg0, 0x04, Local0, BS25) Local0 = Concatenate (DerefOf (RefOf (AUS1)), DerefOf (RefOf (B606))) M600 (Arg0, 0x05, Local0, BS26) } Local0 = Concatenate (DerefOf (PAUS [0x00]), DerefOf (RefOf (B606))) M600 (Arg0, 0x06, Local0, BS25) Local0 = Concatenate (DerefOf (PAUS [0x01]), DerefOf (RefOf (B606))) M600 (Arg0, 0x07, Local0, BS26) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), DerefOf (RefOf (B606))) M600 (Arg0, 0x08, Local0, BS25) Local0 = Concatenate (M601 (0x02, 0x01), DerefOf (RefOf (B606))) M600 (Arg0, 0x09, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (RefOf (B606))) M600 (Arg0, 0x0A, Local0, BS25) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (RefOf (B606))) M600 (Arg0, 0x0B, Local0, BS26) } Concatenate ("", DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0C, Local0, BS25) Concatenate ("1234q", DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0D, Local0, BS26) Concatenate (AUS0, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0E, Local0, BS25) Concatenate (AUS1, DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x0F, Local0, BS26) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x10, Local0, BS25) Concatenate (DerefOf (RefOf (AUS1)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x11, Local0, BS26) } Concatenate (DerefOf (PAUS [0x00]), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x12, Local0, BS25) Concatenate (DerefOf (PAUS [0x01]), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x13, Local0, BS26) /* Method returns String */ Concatenate (M601 (0x02, 0x00), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x14, Local0, BS25) Concatenate (M601 (0x02, 0x01), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x15, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x16, Local0, BS25) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (RefOf (B606)), Local0) M600 (Arg0, 0x17, Local0, BS26) } /* Boundary Cases */ Local0 = Concatenate ("", DerefOf (RefOf (B60C))) M600 (Arg0, 0x18, Local0, BS27) } /* Method(m071, 1) */ /* Method(m072, 1) */ /* * Begin of the test body */ /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ If (F64) { Concatenate (__METHOD__, "-m640", Local0) SRMT (Local0) M640 (Local0) } Else { Concatenate (__METHOD__, "-m320", Local0) SRMT (Local0) M320 (Local0) } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m641", Local0) SRMT (Local0) M641 (Local0) } Else { Concatenate (__METHOD__, "-m321", Local0) SRMT (Local0) M321 (Local0) } /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64b", Local0) SRMT (Local0) M64B (Local0) } Else { Concatenate (__METHOD__, "-m32b", Local0) SRMT (Local0) M32B (Local0) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m000", Local0) SRMT (Local0) M000 (Local0) /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64c", Local0) SRMT (Local0) M64C (Local0) } Else { Concatenate (__METHOD__, "-m32c", Local0) SRMT (Local0) M32C (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64D (Concatenate (__METHOD__, "-m64d")) } Else { M32D (Concatenate (__METHOD__, "-m32d")) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64E (Concatenate (__METHOD__, "-m64e")) } Else { M32E (Concatenate (__METHOD__, "-m32e")) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m02b", Local0) SRMT (Local0) M02B (Local0) If (F64) { Concatenate (__METHOD__, "-m64f", Local0) SRMT (Local0) M64F (Local0) } Else { Concatenate (__METHOD__, "-m32f", Local0) SRMT (Local0) M32F (Local0) } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64g", Local0) SRMT (Local0) M64G (Local0) } Else { Concatenate (__METHOD__, "-m32g", Local0) SRMT (Local0) M32G (Local0) } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m02c", Local0) SRMT (Local0) M02C (Local0) If (F64) { Concatenate (__METHOD__, "-m64h", Local0) SRMT (Local0) M64H (Local0) } Else { Concatenate (__METHOD__, "-m32h", Local0) SRMT (Local0) M32H (Local0) } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m02d", Local0) SRMT (Local0) M02D (Local0) /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m02e", Local0) SRMT (Local0) M02E (Local0) /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m02f", Local0) SRMT (Local0) M02F (Local0) If (F64) { Concatenate (__METHOD__, "-m64i", Local0) SRMT (Local0) M64I (Local0) } Else { Concatenate (__METHOD__, "-m32i", Local0) SRMT (Local0) M32I (Local0) } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m030", Local0) SRMT (Local0) M030 (Local0) /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m031", Local0) SRMT (Local0) M031 (Local0) /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m032", Local0) SRMT(Local0) m032(Local0) */ /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m033", Local0) SRMT (Local0) M033 (Local0) /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m034", Local0) SRMT (Local0) If (Y111) { M034 (Local0) } Else { BLCK () } /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m035", Local0) SRMT (Local0) M035 (Local0) /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Concatenate (__METHOD__, "-m036", Local0) SRMT (Local0) M036 (Local0) /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character) */ Concatenate (__METHOD__, "-m037", Local0) SRMT (Local0) M037 (Local0) /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m06c", Local0) SRMT(Local0) m06c(Local0) */ /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) If (Y111) { M06E (Local0) } Else { BLCK () } /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Concatenate (__METHOD__, "-m06f", Local0) SRMT (Local0) M06F (Local0) /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Concatenate (__METHOD__, "-m070", Local0) SRMT (Local0) M070 (Local0) /* Check consistency of the test Named Objects */ /* in the root Scope of the Global ACPI namespace */ Concatenate (__METHOD__, "-m606", Local0) SRMT (Local0) M606 (Local0) } /* Run-method */ Method (OPR4, 0, NotSerialized) { Debug = "TEST: OPR4, Source Operand" M616 () M61B () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftonamed/MAIN.asl0000700000175000017500000000447414773714154032613 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("oreftonamed", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/oreftonamed/oreftonamed1.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/oreftonamed/oreftonamed2.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/oreftonamed/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftonamed/Makefile0000700000175000017500000000024014773714154033011 0ustar ivanhuivanhu# oreftonamed AMLMOD= oreftonamed COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftonamed/oreftonamed2.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftonamed/oreftonam0000700000175000017500000163431114773714154033303 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to Buffer Field Objects' * values obtained by dereference of the references to these Objects. */ Name (Z120, 0x78) Method (M61B, 0, Serialized) { /* Buffer Field to Buffer implicit conversion Cases. */ /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == DerefOf (RefOf (BF65))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == DerefOf (RefOf (BF65))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > DerefOf (RefOf (BF65))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > DerefOf (RefOf (BF65))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > DerefOf (RefOf (BF65))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > DerefOf (RefOf (BF65))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > DerefOf (RefOf (BF65))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > DerefOf (RefOf (BF65))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != DerefOf (RefOf (BF65))) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != DerefOf (RefOf (BF65))) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != DerefOf (RefOf (BF65))) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != DerefOf (RefOf (BF65))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != DerefOf (RefOf (BF65))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != DerefOf (RefOf (BF65))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == DerefOf (RefOf (BF62))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == DerefOf (RefOf (BF62))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == DerefOf (RefOf (BF62))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == DerefOf (RefOf (BF62))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (RefOf (BF62))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == DerefOf (RefOf (BF62))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == DerefOf (RefOf (BF62))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == DerefOf (RefOf (BF62))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == DerefOf (RefOf (BF62))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == DerefOf (RefOf (BF62))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (RefOf (BF62))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == DerefOf (RefOf (BF62))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > DerefOf (RefOf (BF62))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > DerefOf (RefOf (BF62))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > DerefOf (RefOf (BF62))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > DerefOf (RefOf (BF62))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > DerefOf (RefOf (BF62))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > DerefOf (RefOf (BF62))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > DerefOf (RefOf (BF62))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > DerefOf (RefOf (BF62))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > DerefOf (RefOf (BF62))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > DerefOf (RefOf (BF62))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > DerefOf (RefOf (BF62))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > DerefOf (RefOf (BF62))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > DerefOf (RefOf (BF62))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > DerefOf (RefOf (BF62))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= DerefOf (RefOf (BF62))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < DerefOf (RefOf (BF62))) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < DerefOf (RefOf (BF62))) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < DerefOf (RefOf (BF62))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < DerefOf (RefOf (BF62))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < DerefOf (RefOf (BF62))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < DerefOf (RefOf (BF62))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < DerefOf (RefOf (BF62))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < DerefOf (RefOf (BF62))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < DerefOf (RefOf (BF62))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < DerefOf (RefOf (BF62))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < DerefOf (RefOf (BF62))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < DerefOf (RefOf (BF62))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < DerefOf (RefOf (BF62))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < DerefOf (RefOf (BF62))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= DerefOf (RefOf (BF62))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != DerefOf (RefOf (BF62))) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != DerefOf (RefOf (BF62))) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != DerefOf (RefOf (BF62))) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != DerefOf (RefOf (BF62))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != DerefOf (RefOf (BF62))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != DerefOf (RefOf (BF62))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != DerefOf (RefOf (BF62))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != DerefOf (RefOf (BF62))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != DerefOf (RefOf (BF62))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != DerefOf (RefOf (BF62))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != DerefOf (RefOf (BF62))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != DerefOf (RefOf (BF62))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != DerefOf (RefOf (BF62))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != DerefOf (RefOf (BF62))) M600 (Arg0, 0x51, Local0, Ones) } } /* Buffer Field to Buffer conversion of the both Integer operands */ /* of Concatenate operator */ Method (M645, 1, NotSerialized) { Local0 = Concatenate (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (DerefOf (RefOf (BF65)), 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (DerefOf (RefOf (BF65)), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { Local0 = Concatenate (DerefOf (RefOf (BF62)), DerefOf (RefOf (BF62))) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, DerefOf (RefOf (BF62))) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (DerefOf (RefOf (BF62)), 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (DerefOf (RefOf (BF62)), DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (DerefOf (RefOf (BF62)), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (BF65))) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, DerefOf (RefOf (BF65))) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (BF65))) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (BF65))) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (BF62))) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (BF62))) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, DerefOf (RefOf (BF62))) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, DerefOf (RefOf (BF62))) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (BF62))) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (BF62))) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (BF62))) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (BF62))) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (BF62))) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (BF62))) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (BF62))) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (BF62))) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (BF65))) M600 (Arg0, 0x0C, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (BF65))) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (RefOf (BF62)), Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x1A, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x1B, Local0, BB11) } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of ToString operator */ Method (M647, 1, NotSerialized) { Local0 = ToString (DerefOf (RefOf (BF71)), Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (DerefOf (RefOf (BF71)), 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (DerefOf (RefOf (BF72)), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (DerefOf (RefOf (BF71)), AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (DerefOf (RefOf (BF71)), AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (DerefOf (RefOf (BF72)), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (DerefOf (RefOf (BF71)), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (DerefOf (RefOf (BF71)), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (DerefOf (RefOf (BF72)), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (DerefOf (RefOf (BF71)), DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (DerefOf (RefOf (BF71)), DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (DerefOf (RefOf (BF72)), DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (DerefOf (RefOf (BF71)), M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (DerefOf (RefOf (BF71)), M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (DerefOf (RefOf (BF72)), M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (RefOf (BF71)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (DerefOf (RefOf (BF71)), DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (DerefOf (RefOf (BF72)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (DerefOf (RefOf (BF71)), Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (DerefOf (RefOf (BF71)), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (DerefOf (RefOf (BF72)), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (DerefOf (RefOf (BF71)), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (DerefOf (RefOf (BF71)), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (DerefOf (RefOf (BF72)), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (DerefOf (RefOf (BF71)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (DerefOf (RefOf (BF71)), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (DerefOf (RefOf (BF72)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (DerefOf (RefOf (BF71)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (DerefOf (RefOf (BF71)), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (DerefOf (RefOf (BF72)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (DerefOf (RefOf (BF71)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (DerefOf (RefOf (BF71)), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (DerefOf (RefOf (BF72)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (RefOf (BF71)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (DerefOf (RefOf (BF71)), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (DerefOf (RefOf (BF72)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { Local0 = ToString (DerefOf (RefOf (BF70)), Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (DerefOf (RefOf (BF70)), 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (DerefOf (RefOf (BF73)), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (DerefOf (RefOf (BF70)), AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (DerefOf (RefOf (BF70)), AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (DerefOf (RefOf (BF73)), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (DerefOf (RefOf (BF70)), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (DerefOf (RefOf (BF70)), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (DerefOf (RefOf (BF73)), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (DerefOf (RefOf (BF70)), DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (DerefOf (RefOf (BF70)), DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (DerefOf (RefOf (BF73)), DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (DerefOf (RefOf (BF70)), M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (DerefOf (RefOf (BF70)), M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (DerefOf (RefOf (BF73)), M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (RefOf (BF70)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (DerefOf (RefOf (BF70)), DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (DerefOf (RefOf (BF73)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (DerefOf (RefOf (BF70)), Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (DerefOf (RefOf (BF70)), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (DerefOf (RefOf (BF73)), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (DerefOf (RefOf (BF70)), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (DerefOf (RefOf (BF70)), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (DerefOf (RefOf (BF73)), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (DerefOf (RefOf (BF70)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (DerefOf (RefOf (BF70)), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (DerefOf (RefOf (BF73)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (DerefOf (RefOf (BF70)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (DerefOf (RefOf (BF70)), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (DerefOf (RefOf (BF73)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (DerefOf (RefOf (BF70)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (DerefOf (RefOf (BF70)), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (DerefOf (RefOf (BF73)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (RefOf (BF70)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (DerefOf (RefOf (BF70)), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (DerefOf (RefOf (BF73)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of Mid operator */ Method (M648, 1, NotSerialized) { Local0 = Mid (DerefOf (RefOf (BF65)), 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (BF66)), 0x00, 0x09) M600 (Arg0, 0x01, Local0, BB1F) Local0 = Mid (DerefOf (RefOf (BF73)), 0x01, 0x08) M600 (Arg0, 0x02, Local0, BB30) Local0 = Mid (DerefOf (RefOf (BF65)), AUI5, AUIB) M600 (Arg0, 0x03, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (BF66)), AUI5, AUIB) M600 (Arg0, 0x04, Local0, BB1F) Local0 = Mid (DerefOf (RefOf (BF73)), AUI6, AUIA) M600 (Arg0, 0x05, Local0, BB30) If (Y078) { Local0 = Mid (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)) ) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (BF66)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)) ) M600 (Arg0, 0x07, Local0, BB1F) Local0 = Mid (DerefOf (RefOf (BF73)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)) ) M600 (Arg0, 0x08, Local0, BB30) } Local0 = Mid (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x0B])) M600 (Arg0, 0x09, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (BF66)), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x0B])) M600 (Arg0, 0x0A, Local0, BB1F) Local0 = Mid (DerefOf (RefOf (BF73)), DerefOf (PAUI [0x06]), DerefOf ( PAUI [0x0A])) M600 (Arg0, 0x0B, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (DerefOf (RefOf (BF65)), M601 (0x01, 0x05), M601 (0x01, 0x0B) ) M600 (Arg0, 0x0C, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (BF66)), M601 (0x01, 0x05), M601 (0x01, 0x0B) ) M600 (Arg0, 0x0D, Local0, BB1F) Local0 = Mid (DerefOf (RefOf (BF73)), M601 (0x01, 0x06), M601 (0x01, 0x0A) ) M600 (Arg0, 0x0E, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (DerefOf (RefOf (BF65)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x0B))) M600 (Arg0, 0x0F, Local0, BB1D) Local0 = Mid (DerefOf (RefOf (BF66)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x0B))) M600 (Arg0, 0x10, Local0, BB1F) Local0 = Mid (DerefOf (RefOf (BF73)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 ( 0x01, 0x0A))) M600 (Arg0, 0x11, Local0, BB30) } Mid (DerefOf (RefOf (BF65)), 0x00, 0x09, Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (DerefOf (RefOf (BF66)), 0x00, 0x09, Local0) M600 (Arg0, 0x13, Local0, BB1F) Mid (DerefOf (RefOf (BF73)), 0x01, 0x08, Local0) M600 (Arg0, 0x14, Local0, BB30) Mid (DerefOf (RefOf (BF65)), AUI5, AUIB, Local0) M600 (Arg0, 0x15, Local0, BB1D) Mid (DerefOf (RefOf (BF66)), AUI5, AUIB, Local0) M600 (Arg0, 0x16, Local0, BB1F) Mid (DerefOf (RefOf (BF73)), AUI6, AUIA, Local0) M600 (Arg0, 0x17, Local0, BB30) If (Y078) { Mid (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x18, Local0, BB1D) Mid (DerefOf (RefOf (BF66)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x19, Local0, BB1F) Mid (DerefOf (RefOf (BF73)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x1A, Local0, BB30) } Mid (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B]), Local0) M600 (Arg0, 0x1B, Local0, BB1D) Mid (DerefOf (RefOf (BF66)), DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B]), Local0) M600 (Arg0, 0x1C, Local0, BB1F) Mid (DerefOf (RefOf (BF73)), DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x0A]), Local0) M600 (Arg0, 0x1D, Local0, BB30) /* Method returns Index and Length parameters */ Mid (DerefOf (RefOf (BF65)), M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x1E, Local0, BB1D) Mid (DerefOf (RefOf (BF66)), M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x1F, Local0, BB1F) Mid (DerefOf (RefOf (BF73)), M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x20, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (DerefOf (RefOf (BF65)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x21, Local0, BB1D) Mid (DerefOf (RefOf (BF66)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x22, Local0, BB1F) Mid (DerefOf (RefOf (BF73)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x23, Local0, BB30) } } Method (M328, 1, NotSerialized) { Local0 = Mid (DerefOf (RefOf (BF62)), 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (BF63)), 0x00, 0x05) M600 (Arg0, 0x01, Local0, BB1E) Local0 = Mid (DerefOf (RefOf (BF77)), 0x01, 0x04) M600 (Arg0, 0x02, Local0, BB31) Local0 = Mid (DerefOf (RefOf (BF62)), AUI5, AUI9) M600 (Arg0, 0x03, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (BF63)), AUI5, AUI9) M600 (Arg0, 0x04, Local0, BB1E) Local0 = Mid (DerefOf (RefOf (BF77)), AUI6, AUI8) M600 (Arg0, 0x05, Local0, BB31) If (Y078) { Local0 = Mid (DerefOf (RefOf (BF62)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)) ) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (BF63)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)) ) M600 (Arg0, 0x07, Local0, BB1E) Local0 = Mid (DerefOf (RefOf (BF77)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)) ) M600 (Arg0, 0x08, Local0, BB31) } Local0 = Mid (DerefOf (RefOf (BF62)), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x09])) M600 (Arg0, 0x09, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (BF63)), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x09])) M600 (Arg0, 0x0A, Local0, BB1E) Local0 = Mid (DerefOf (RefOf (BF77)), DerefOf (PAUI [0x06]), DerefOf ( PAUI [0x08])) M600 (Arg0, 0x0B, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (DerefOf (RefOf (BF62)), M601 (0x01, 0x05), M601 (0x01, 0x09) ) M600 (Arg0, 0x0C, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (BF63)), M601 (0x01, 0x05), M601 (0x01, 0x09) ) M600 (Arg0, 0x0D, Local0, BB1E) Local0 = Mid (DerefOf (RefOf (BF77)), M601 (0x01, 0x06), M601 (0x01, 0x08) ) M600 (Arg0, 0x0E, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (DerefOf (RefOf (BF62)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x09))) M600 (Arg0, 0x0F, Local0, BB1C) Local0 = Mid (DerefOf (RefOf (BF63)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x09))) M600 (Arg0, 0x10, Local0, BB1E) Local0 = Mid (DerefOf (RefOf (BF77)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 ( 0x01, 0x08))) M600 (Arg0, 0x11, Local0, BB31) } Mid (DerefOf (RefOf (BF62)), 0x00, 0x05, Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (DerefOf (RefOf (BF63)), 0x00, 0x05, Local0) M600 (Arg0, 0x13, Local0, BB1E) Mid (DerefOf (RefOf (BF77)), 0x01, 0x04, Local0) M600 (Arg0, 0x14, Local0, BB31) Mid (DerefOf (RefOf (BF62)), AUI5, AUI9, Local0) M600 (Arg0, 0x15, Local0, BB1C) Mid (DerefOf (RefOf (BF63)), AUI5, AUI9, Local0) M600 (Arg0, 0x16, Local0, BB1E) Mid (DerefOf (RefOf (BF77)), AUI6, AUI8, Local0) M600 (Arg0, 0x17, Local0, BB31) If (Y078) { Mid (DerefOf (RefOf (BF62)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x18, Local0, BB1C) Mid (DerefOf (RefOf (BF63)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x19, Local0, BB1E) Mid (DerefOf (RefOf (BF77)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x1A, Local0, BB31) } Mid (DerefOf (RefOf (BF62)), DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09]), Local0) M600 (Arg0, 0x1B, Local0, BB1C) Mid (DerefOf (RefOf (BF63)), DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09]), Local0) M600 (Arg0, 0x1C, Local0, BB1E) Mid (DerefOf (RefOf (BF77)), DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x08]), Local0) M600 (Arg0, 0x1D, Local0, BB31) /* Method returns Index and Length parameters */ Mid (DerefOf (RefOf (BF62)), M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x1E, Local0, BB1C) Mid (DerefOf (RefOf (BF63)), M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x1F, Local0, BB1E) Mid (DerefOf (RefOf (BF77)), M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x20, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (DerefOf (RefOf (BF62)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x21, Local0, BB1C) Mid (DerefOf (RefOf (BF63)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x22, Local0, BB1E) Mid (DerefOf (RefOf (BF77)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x23, Local0, BB31) } } /* Buffer Field to Integer implicit conversion Cases. */ /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { If (Y365) { /* Decrement */ Local0 = DerefOf (RefOf (BF91))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (RefOf (BF95))-- M600 (Arg0, 0x01, Local0, BI16) /* Increment */ Local0 = DerefOf (RefOf (BFA1))++ M600 (Arg0, 0x02, Local0, BI23) Local0 = DerefOf (RefOf (BFA5))++ M600 (Arg0, 0x03, Local0, BI27) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (RefOf (BF61))) M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (RefOf (BF61))) M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, 0x03) /* Not */ Store (~DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Store (~DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, NotSerialized) { If (Y365) { /* Decrement */ Local0 = DerefOf (RefOf (BF91))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (RefOf (BF95))-- M600 (Arg0, 0x01, Local0, BI18) /* Increment */ Local0 = DerefOf (RefOf (BFA1))++ M600 (Arg0, 0x02, Local0, BI23) Local0 = DerefOf (RefOf (BFA5))++ M600 (Arg0, 0x03, Local0, BI29) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (RefOf (BF61))) M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (RefOf (BF61))) M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, 0x03) /* Not */ Store (~DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFCDE) Store (~DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { Local0 = !DerefOf (RefOf (BF76)) M600 (Arg0, 0x00, Local0, Ones) Local0 = !DerefOf (RefOf (BF61)) M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !DerefOf (RefOf (BF65)) M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !DerefOf (RefOf (BF65)) M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (RefOf (BF61))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (RefOf (BF6C))) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (RefOf (BF6C)), Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (DerefOf (RefOf (BF61))) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (DerefOf (RefOf (BF6D))) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (RefOf (BF6D)), Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (RefOf (BF61))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (RefOf (BF6E))) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (RefOf (BF6E)), Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (DerefOf (RefOf (BF61))) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (DerefOf (RefOf (BF6F))) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (RefOf (BF6F)), Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((DerefOf (RefOf (BF61)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (BF61)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((DerefOf (RefOf (BF61)) + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (DerefOf (RefOf (BF61)) + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (DerefOf (RefOf (BF61)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (DerefOf (RefOf (BF61)) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + DerefOf (RefOf (BF61))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + DerefOf (RefOf (BF61))) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + DerefOf (RefOf (BF61))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + DerefOf (RefOf (BF61))) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((DerefOf (RefOf (BF65)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (BF65)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (RefOf (BF65)) + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (RefOf (BF65)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (DerefOf (RefOf (BF65)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (RefOf (BF65)) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((DerefOf (RefOf (BF65)) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (RefOf (BF61)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (RefOf (BF65)) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((DerefOf (RefOf (BF65)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (BF65)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((DerefOf (RefOf (BF65)) + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (DerefOf (RefOf (BF65)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (DerefOf (RefOf (BF65)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (DerefOf (RefOf (BF65)) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) + DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((DerefOf (RefOf (BF65)) + DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (DerefOf (RefOf (BF61)) + DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (DerefOf (RefOf (BF65)) + DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (BF61)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (RefOf (BF61)) & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (RefOf (BF61)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (RefOf (BF61)) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & DerefOf (RefOf (BF61))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (BF61))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & DerefOf (RefOf (BF61))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (RefOf (BF61))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (BF65)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (RefOf (BF65)) & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (BF65)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (BF65)) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (RefOf (BF65)) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (RefOf (BF61)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (RefOf (BF65)) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (BF65)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((DerefOf (RefOf (BF65)) & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (DerefOf (RefOf (BF65)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (DerefOf (RefOf (BF65)) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) & DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (RefOf (BF65)) & DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (RefOf (BF61)) & DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (RefOf (BF65)) & DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (BF61)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (BF61)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (BF61)) / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (RefOf (BF61)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (DerefOf (RefOf (BF61)), 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (RefOf (BF61)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (DerefOf (RefOf (BF61)), AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (RefOf (BF61)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (DerefOf (RefOf (BF61)), M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (BF65)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (BF65)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (BF65)) / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (RefOf (BF65)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (BF65)), 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (RefOf (BF65)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (BF65)), AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (RefOf (BF65)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (BF65)), M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (BF65)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (BF65)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (BF65)) / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) / DerefOf (PAUI [0x14])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (RefOf (BF65)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (DerefOf (RefOf (BF65)), 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (RefOf (BF65)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (DerefOf (RefOf (BF65)), AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (RefOf (BF65)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (DerefOf (RefOf (BF65)), M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) / DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) / DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (BF61)) % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (BF61)) % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (BF61)) % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (RefOf (BF61)) % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (RefOf (BF61)) % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (RefOf (BF61)) % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % DerefOf (RefOf (BF61))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % DerefOf (RefOf (BF61))) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % DerefOf (RefOf (BF61))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % DerefOf (RefOf (BF61))) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (BF65)) % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (BF65)) % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (BF65)) % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (RefOf (BF65)) % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (RefOf (BF65)) % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (RefOf (BF65)) % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (RefOf (BF65)) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (DerefOf (RefOf (BF61)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF65)) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (RefOf (BF65)) % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (BF65)) % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (RefOf (BF65)) % DerefOf (PAUI [0x15])), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) % DerefOf (PAUI [0x16])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (RefOf (BF65)) % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (RefOf (BF65)) % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (RefOf (BF65)) % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) % DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (RefOf (BF65)) % DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (DerefOf (RefOf (BF61)) % DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF65)) % DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (BF61)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (RefOf (BF61)) * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (BF61)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (RefOf (BF61)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (RefOf (BF61)) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (BF61)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * DerefOf (RefOf (BF61))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (RefOf (BF61))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * DerefOf (RefOf (BF61))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (RefOf (BF61))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (BF65)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (RefOf (BF65)) * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (BF65)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (RefOf (BF65)) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((DerefOf (RefOf (BF65)) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (RefOf (BF61)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (RefOf (BF65)) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (BF65)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((DerefOf (RefOf (BF65)) * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (DerefOf (RefOf (BF65)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (DerefOf (RefOf (BF65)) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) * DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((DerefOf (RefOf (BF65)) * DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (DerefOf (RefOf (BF61)) * DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (DerefOf (RefOf (BF65)) * DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (RefOf (BF61)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF61)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (DerefOf (RefOf (BF61)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF61)), AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (DerefOf (RefOf (BF61)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF61)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (RefOf (BF61)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF61)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (DerefOf (RefOf (BF61)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF61)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (DerefOf (RefOf (BF61)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF61)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (RefOf (BF61))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (BF61))) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, DerefOf (RefOf (BF61))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (RefOf (BF61))) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF61))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (BF61))) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (RefOf (BF61))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (RefOf (BF61))) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (RefOf (BF65)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (DerefOf (RefOf (BF65)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (RefOf (BF65)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (RefOf (BF65)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (DerefOf (RefOf (BF65)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (RefOf (BF65)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (BF65))) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, DerefOf (RefOf (BF65))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (RefOf (BF65))) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (RefOf (BF65))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (RefOf (BF65))) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (RefOf (BF65)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (DerefOf (RefOf (BF65)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (RefOf (BF65)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (DerefOf (RefOf (BF65)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (DerefOf (RefOf (BF65)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (RefOf (BF65)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, DerefOf (RefOf (BF65))) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, DerefOf (RefOf (BF65))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, DerefOf (RefOf (BF65))) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (RefOf (BF65))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), DerefOf (RefOf (BF65))) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (RefOf (BF61)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (BF61)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (RefOf (BF61)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (BF61)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (RefOf (BF61)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (BF61)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (RefOf (BF61)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (BF61)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (RefOf (BF61)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (BF61)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (BF61)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (BF61)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (RefOf (BF61)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (BF61)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (BF61)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (RefOf (BF61))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (BF61))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (RefOf (BF61))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, DerefOf (RefOf (BF61))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF61))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (BF61))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (RefOf (BF61))) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), DerefOf (RefOf (BF61))) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (RefOf (BF65)), 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (RefOf (BF65)), AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (RefOf (BF65)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (RefOf (BF65)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (BF65)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (RefOf (BF65)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (BF65)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (RefOf (BF65)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (BF65)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (BF65))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (RefOf (BF65))) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, DerefOf (RefOf (BF65))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (RefOf (BF65))) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), DerefOf (RefOf (BF65))) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (RefOf (BF65)), 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (RefOf (BF65)), AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (RefOf (BF65)), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (RefOf (BF65)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (BF65)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (RefOf (BF65)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (BF65)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (BF65)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (RefOf (BF65)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (BF65)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (BF65)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, DerefOf (RefOf (BF65))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (RefOf (BF65))) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, DerefOf (RefOf (BF65))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (RefOf (BF65))) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), DerefOf (RefOf (BF65))) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (DerefOf (RefOf (BF61)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (DerefOf (RefOf (BF65)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (RefOf (BF61)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (BF61)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (RefOf (BF61)) | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (BF61)) | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (RefOf (BF61)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (BF61)) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (RefOf (BF61))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (BF61))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (RefOf (BF61))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | DerefOf (RefOf (BF61))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (RefOf (BF65)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (BF65)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (RefOf (BF65)) | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (BF65)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (RefOf (BF65)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (RefOf (BF65)) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((DerefOf (RefOf (BF65)) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (RefOf (BF61)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (RefOf (BF65)) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((DerefOf (RefOf (BF65)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (BF65)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((DerefOf (RefOf (BF65)) | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (RefOf (BF65)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (DerefOf (RefOf (BF65)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (RefOf (BF65)) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) | DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((DerefOf (RefOf (BF65)) | DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (DerefOf (RefOf (BF61)) | DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (DerefOf (RefOf (BF65)) | DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((DerefOf (RefOf (BF61)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((DerefOf (RefOf (BF61)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((DerefOf (RefOf (BF61)) << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (DerefOf (RefOf (BF61)) << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (DerefOf (RefOf (BF61)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (DerefOf (RefOf (BF61)) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((DerefOf (RefOf (BF65)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((DerefOf (RefOf (BF65)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((DerefOf (RefOf (BF65)) << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (RefOf (BF65)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (DerefOf (RefOf (BF65)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (RefOf (BF65)) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (RefOf (BF65)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (DerefOf (RefOf (BF61)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (RefOf (BF65)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((DerefOf (RefOf (BF65)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((DerefOf (RefOf (BF65)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((DerefOf (RefOf (BF65)) << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (DerefOf (RefOf (BF65)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (DerefOf (RefOf (BF65)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (DerefOf (RefOf (BF65)) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (RefOf (BF74))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (RefOf (BF65)) << DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (DerefOf (RefOf (BF61)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (RefOf (BF65)) << DerefOf (RefOf (BF74))) M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((DerefOf (RefOf (BF61)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((DerefOf (RefOf (BF61)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((DerefOf (RefOf (BF61)) >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (DerefOf (RefOf (BF61)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (DerefOf (RefOf (BF61)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (DerefOf (RefOf (BF61)) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((DerefOf (RefOf (BF65)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((DerefOf (RefOf (BF65)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((DerefOf (RefOf (BF65)) >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (RefOf (BF65)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (DerefOf (RefOf (BF65)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (DerefOf (RefOf (BF61)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((DerefOf (RefOf (BF65)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((DerefOf (RefOf (BF65)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((DerefOf (RefOf (BF65)) >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (DerefOf (RefOf (BF65)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (DerefOf (RefOf (BF65)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (RefOf (BF65)) >> DerefOf (RefOf (BF74))), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (DerefOf (RefOf (BF61)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (RefOf (BF65)) >> DerefOf (RefOf (BF74))) M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((DerefOf (RefOf (BF61)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (BF61)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((DerefOf (RefOf (BF61)) - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (DerefOf (RefOf (BF61)) - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (DerefOf (RefOf (BF61)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (DerefOf (RefOf (BF61)) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - DerefOf (RefOf (BF61))) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - DerefOf (RefOf (BF61))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - DerefOf (RefOf (BF61))) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - DerefOf (RefOf (BF61))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((DerefOf (RefOf (BF65)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (BF65)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (RefOf (BF65)) - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (RefOf (BF65)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (DerefOf (RefOf (BF65)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (RefOf (BF65)) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((DerefOf (RefOf (BF65)) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (DerefOf (RefOf (BF61)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (DerefOf (RefOf (BF65)) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((DerefOf (RefOf (BF65)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (BF65)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((DerefOf (RefOf (BF65)) - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (DerefOf (RefOf (BF65)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (DerefOf (RefOf (BF65)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (DerefOf (RefOf (BF65)) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) - DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((DerefOf (RefOf (BF65)) - DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (DerefOf (RefOf (BF61)) - DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (DerefOf (RefOf (BF65)) - DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF61)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((DerefOf (RefOf (BF61)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (BF61)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (RefOf (BF61)) ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((DerefOf (RefOf (BF61)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF61)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (RefOf (BF61)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (RefOf (BF61)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (DerefOf (RefOf (BF61)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (RefOf (BF61)) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (RefOf (BF61)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((DerefOf (RefOf (BF65)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (RefOf (BF65)) ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (BF65)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (RefOf (BF65)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (DerefOf (RefOf (BF65)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (RefOf (BF61)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (RefOf (BF65)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((DerefOf (RefOf (BF65)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((DerefOf (RefOf (BF65)) ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((DerefOf (RefOf (BF65)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (RefOf (BF65)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (RefOf (BF65)) ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (DerefOf (RefOf (BF65)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (DerefOf (RefOf (BF65)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (RefOf (BF61)) ^ DerefOf (RefOf (BF65))), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (BF61))), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (DerefOf (RefOf (BF61)) ^ DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (DerefOf (RefOf (BF65)) ^ DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (BF61)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (BF61)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (BF61)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (BF61)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (BF61)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (BF61)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (BF61)) && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (BF61)) && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF61)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (BF61)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF61)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (BF61)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (RefOf (BF61))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (RefOf (BF61))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (RefOf (BF61))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (RefOf (BF61))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (BF65)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (BF65)) && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (RefOf (BF65))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (RefOf (BF65))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (RefOf (BF65))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (RefOf (BF65))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (BF61)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (BF65)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (BF65)) && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (BF65)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (RefOf (BF65))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (RefOf (BF65))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (RefOf (BF65))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (RefOf (BF65))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (BF61)) && DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) && DerefOf (RefOf (BF61))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (BF76)) || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (RefOf (BF76)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (BF76)) || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (RefOf (BF76)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (BF76)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (RefOf (BF76)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (BF76)) || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (RefOf (BF76)) || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF76)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (RefOf (BF76)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF76)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (RefOf (BF76)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (RefOf (BF76))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || DerefOf (RefOf (BF76))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (RefOf (BF76))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || DerefOf (RefOf (BF76))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (BF65)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (BF65)) || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (RefOf (BF65))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (RefOf (BF65))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (RefOf (BF65))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (RefOf (BF65))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (BF76)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (RefOf (BF65)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (BF65)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (RefOf (BF65)) || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (RefOf (BF65)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (RefOf (BF65)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (RefOf (BF65))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (RefOf (BF65))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (RefOf (BF65))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (RefOf (BF65))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (RefOf (BF76)) || DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (RefOf (BF65)) || DerefOf (RefOf (BF76))) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer Field to Integer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == DerefOf (RefOf (BF65))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == DerefOf (RefOf (BF65))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == DerefOf (RefOf (BF65))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > DerefOf (RefOf (BF65))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > DerefOf (RefOf (BF65))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > DerefOf (RefOf (BF65))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > DerefOf (RefOf (BF65))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > DerefOf (RefOf (BF65))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > DerefOf (RefOf (BF65))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < DerefOf (RefOf (BF65))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < DerefOf (RefOf (BF65))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < DerefOf (RefOf (BF65))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < DerefOf (RefOf (BF65))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { /* LEqual */ Local0 = (0xD650A284 == DerefOf (RefOf (BF65))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == DerefOf (RefOf (BF65))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == DerefOf (RefOf (BF65))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == DerefOf (RefOf (BF65))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > DerefOf (RefOf (BF65))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > DerefOf (RefOf (BF65))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > DerefOf (RefOf (BF65))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > DerefOf (RefOf (BF65))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > DerefOf (RefOf (BF65))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > DerefOf (RefOf (BF65))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > DerefOf (RefOf (BF65))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= DerefOf (RefOf (BF65))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < DerefOf (RefOf (BF65))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < DerefOf (RefOf (BF65))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < DerefOf (RefOf (BF65))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < DerefOf (RefOf (BF65))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < DerefOf (RefOf (BF65))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= DerefOf (RefOf (BF65))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != DerefOf (RefOf (BF65))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != DerefOf (RefOf (BF65))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == DerefOf (RefOf (BF61))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == DerefOf (RefOf (BF61))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == DerefOf (RefOf (BF61))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == DerefOf (RefOf (BF61))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == DerefOf (RefOf (BF61))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == DerefOf (RefOf (BF61))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == DerefOf (RefOf (BF61))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > DerefOf (RefOf (BF61))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > DerefOf (RefOf (BF61))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > DerefOf (RefOf (BF61))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > DerefOf (RefOf (BF61))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > DerefOf (RefOf (BF61))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > DerefOf (RefOf (BF61))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > DerefOf (RefOf (BF61))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= DerefOf (RefOf (BF61))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < DerefOf (RefOf (BF61))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < DerefOf (RefOf (BF61))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < DerefOf (RefOf (BF61))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < DerefOf (RefOf (BF61))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < DerefOf (RefOf (BF61))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < DerefOf (RefOf (BF61))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < DerefOf (RefOf (BF61))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= DerefOf (RefOf (BF61))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != DerefOf (RefOf (BF61))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != DerefOf (RefOf (BF61))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != DerefOf (RefOf (BF61))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != DerefOf (RefOf (BF61))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != DerefOf (RefOf (BF61))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != DerefOf (RefOf (BF61))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != DerefOf (RefOf (BF61))) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer Field to Integer intermediate conversion of the Buffer Field */ /* second operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (RefOf (BF61))) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, DerefOf (RefOf (BF61))) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (BF61))) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (BF61))) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (BF65))) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (RefOf (BF61))) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, DerefOf (RefOf (BF61))) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (BF61))) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (BF61))) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (BF65))) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer Field to Integer conversion of the Buffer Field Length */ /* (second) operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF74))) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF61))) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (RefOf (BF74))) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, DerefOf (RefOf (BF61))) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF74))) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF74))) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF61))) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (BF74))) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (BF61))) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF74))) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF61))) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF61)), Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF65))) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (BF65))) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF65))) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (RefOf (BF65))) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer Field to Integer conversion of the Buffer Field Index */ /* (second) operand of the Index operator */ Method (M067, 1, NotSerialized) { Store (AUS6 [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [DerefOf (RefOf (BF74))], Local3) CH04 (Arg0, 0x00, 0x55, Z120, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [DerefOf (RefOf (BF74))], Local3) CH04 (Arg0, 0x00, 0x55, Z120, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [DerefOf (RefOf (BF74))], Local3) CH04 (Arg0, 0x00, 0x55, Z120, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (RefOf (BF74))], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [DerefOf (RefOf (BF74))] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [DerefOf (RefOf (BF74))] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [DerefOf (RefOf (BF74))] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [DerefOf (RefOf (BF74))] CH04 (Arg0, 0x00, 0x55, Z120, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [DerefOf (RefOf (BF74))] CH04 (Arg0, 0x00, 0x55, Z120, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [DerefOf (RefOf (BF74))] CH04 (Arg0, 0x00, 0x55, Z120, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [DerefOf (RefOf (BF74))] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [DerefOf (RefOf (BF74))] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [DerefOf (RefOf (BF74))] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (RefOf (BF74))] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer Field to Integer conversion of the Buffer Field Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, DerefOf (RefOf (BF61))) If (F64) { Fatal (0xFF, 0xFFFFFFFF, DerefOf (RefOf (BF65))) } Else { Fatal (0xFF, 0xFFFFFFFF, DerefOf (RefOf (BF65))) } CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) } /* Buffer Field to Integer conversion of the Buffer Field Index */ /* and Length operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { /* Buffer Field to Integer conversion of the Buffer Field Index operand */ Local0 = Mid ("This is auxiliary String", DerefOf (RefOf (BF74)), 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF74)), 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, DerefOf (RefOf (BF74)), 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, DerefOf (RefOf (BF74)), 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (BF74)), 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF74)), 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (BF74)), 0x0A ) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF74)), 0x0A ) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (RefOf (BF74)), 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), DerefOf (RefOf (BF74)), 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (BF74)), 0x0A ) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF74)), 0x0A ) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF74)), 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* Buffer Field to Integer conversion of the Buffer Field Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (BF74)) ) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (BF74)) ) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF74)) ) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF74)) ) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF74)), Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { /* Buffer Field to Integer conversion of the Buffer Field Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* Buffer Field to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (BF74)), DerefOf ( RefOf (BF65))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF74)), DerefOf ( RefOf (BF65))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (BF74)), DerefOf ( RefOf (BF65))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF74)), DerefOf ( RefOf (BF65))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { /* Buffer Field to Integer conversion of the Buffer Field Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (BF65))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* Buffer Field to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (BF74)), DerefOf ( RefOf (BF65))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF74)), DerefOf ( RefOf (BF65))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)) ) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (BF74)), DerefOf ( RefOf (BF65))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF74)), DerefOf ( RefOf (BF65))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (RefOf (BF74)), DerefOf (RefOf (BF65)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer Field to Integer conversion of the Buffer Field StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf ( BF74))) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf ( BF74))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf ( BF74))) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf ( BF74))) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (RefOf (BF74))) M600 (Arg0, 0x0B, Local0, Ones) } } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (DerefOf (RefOf (BF61))) CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z120, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (DerefOf (RefOf (BF75))) CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z120, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer Field to Integer conversion of the Buffer Field TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Derefof(Refof(bf61))) */ CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z120, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer Field to Integer conversion of the Buffer Field TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, DerefOf (RefOf (BF61))) CH03 (Arg0, Z120, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z120, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer Field to Integer conversion of the Buffer Field value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (DerefOf (RefOf (BF76))) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (DerefOf (RefOf (BF61))) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (DerefOf (RefOf (BF65))) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (DerefOf (RefOf (BF65))) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (BF76))) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (BF61))) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (BF65))) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (RefOf (BF65))) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (DerefOf (RefOf (BF76))) { IST0 = 0x00 Break } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Initialize Buffer Fields */ Method (M073, 0, NotSerialized) { BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF62 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } BF63 = Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0xA5 // ..y.. } BF64 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF66 = Buffer (0x09) { /* 0000 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // !....... /* 0008 */ 0x01 // . } BF69 = Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc } BF6C = Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 } BF6D = Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. } BF6E = Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. } BF6F = Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. } BF70 = 0x6179534E BF71 = Buffer (0x08) { 0x14, 0x22, 0x50, 0x36, 0x41, 0x53, 0x7C, 0x6E // ."P6AS|n } BF72 = Buffer (0x08) { 0x14, 0x22, 0x00, 0x36, 0x41, 0x53, 0x00, 0x6E // .".6AS.n } BF73 = Buffer (0x08) { 0x14, 0x22, 0x00, 0x36, 0x41, 0x53, 0x7C, 0x6E // .".6AS|n } BF74 = 0x0B BF75 = 0x3F BF76 = 0x00 BF77 = 0x36002214 If (Y365) { BF91 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF95 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BFA1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BFA5 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } } /* Check Buffer Fields consistency */ Method (M074, 1, NotSerialized) { M600 (Arg0, 0x00, BF61, Buffer() { 0x21, 0x03, 0x00, 0x00 }) M600 (Arg0, 0x01, BF62, Buffer() { 0xFE, 0xB3, 0x79, 0xC1 }) M600 (Arg0, 0x02, BF63, Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. }) M600 (Arg0, 0x03, BF64, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0x7E // ..P...|~ }) M600 (Arg0, 0x04, BF65, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M600 (Arg0, 0x05, BF66, Buffer (0x09) { /* 0000 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // !....... /* 0008 */ 0x01 // . }) M600 (Arg0, 0x06, BF69, Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x07, BF6C, Buffer (0x09) { /* 0000 */ 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37, // ..gE#..7 /* 0008 */ 0x00 // . }) M600 (Arg0, 0x08, BF6D, Buffer (0x09) { /* 0000 */ 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D, 0x00, // 5....v.. /* 0008 */ 0x00 // . }) M600 (Arg0, 0x09, BF6E, Buffer (0x05) { 0x56, 0x34, 0x12, 0x90, 0x00 // V4... }) M600 (Arg0, 0x0A, BF6F, Buffer (0x05) { 0xC0, 0x2C, 0x5F, 0x05, 0x00 // .,_.. }) M600 (Arg0, 0x0B, BF70, Buffer() { 0x4E, 0x53, 0x79, 0x61 }) M600 (Arg0, 0x0C, BF71, Buffer (0x08) { 0x14, 0x22, 0x50, 0x36, 0x41, 0x53, 0x7C, 0x6E // ."P6AS|n }) M600 (Arg0, 0x0D, BF72, Buffer (0x08) { 0x14, 0x22, 0x00, 0x36, 0x41, 0x53, 0x00, 0x6E // .".6AS.n }) M600 (Arg0, 0x0E, BF73, Buffer (0x08) { 0x14, 0x22, 0x00, 0x36, 0x41, 0x53, 0x7C, 0x6E // .".6AS|n }) M600 (Arg0, 0x0F, BF74, Buffer (0x05) { 0x0B, 0x00, 0x00, 0x00, 0x00 // ..... }) M600 (Arg0, 0x10, BF75, Buffer (0x05) { 0x3F, 0x00, 0x00, 0x00, 0x00 // ?.... }) M600 (Arg0, 0x11, BF76, Buffer (0x05) { 0x00, 0x00, 0x00, 0x00, 0x00 // ..... }) M600 (Arg0, 0x12, BF77, Buffer() { 0x14, 0x22, 0x00, 0x36 }) If (Y365) { M600 (Arg0, 0x13, BF91, 0x0320) M600 (Arg0, 0x14, BFA1, 0x0322) M600 (Arg0, 0x15, BF95, Buffer (0x08) { 0x83, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00 // ..P..... }) M600 (Arg0, 0x16, BFA5, Buffer (0x08) { 0x85, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00 // ..P..... }) } } /* * Begin of the test body */ M073 () /* Buffer Field to Buffer implicit conversion Cases. */ /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Buffer Field to Buffer conversion of the both Integer operands */ /* of Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* Buffer Field to Integer implicit conversion Cases. */ /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer Field to Integer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer Field to Integer intermediate conversion of the Buffer Field */ /* second operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer Field to Integer conversion of the Buffer Field Length */ /* (second) operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer Field to Integer conversion of the Buffer Field Index */ /* (second) operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer Field to Integer conversion of the Buffer Field Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer Field to Integer conversion of the Buffer Field Index */ /* and Length operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer Field to Integer conversion of the Buffer Field StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer Field to Integer conversion of the Buffer Field TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer Field to Integer conversion of the Buffer Field value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) If (Y364) { M06E (Local0) } Else { BLCK () } /* Check Buffer Fields consistency */ Concatenate (__METHOD__, "-m074", Local0) SRMT (Local0) M074 (Local0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreturn/0000700000175000017500000000000014773714155030546 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreturn/RUN.asl0000700000175000017500000000363414773714155031724 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Source Operand, object returned from the called Method", TCLC, 0x05, W010)) { OPR7 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreturn/oreturn.asl0000700000175000017500000373034514773714155032767 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to the Objects * immediately returned from the called Method */ Name (Z118, 0x76) Method (M619, 0, Serialized) { /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M640, 1, NotSerialized) { /* LEqual */ Local0 = ("FE7CB391D650A284" == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("fE7CB391D650A284" == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS4 == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS5 == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x05) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("FE7CB391D650A284" > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("fE7CB391D650A284" > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("FE7CB391D650A28 " > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("FE7CB391D650A284q" > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS4 > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS5 > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x05) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("FE7CB391D650A284" >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("fE7CB391D650A284" >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("FE7CB391D650A28 " >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("FE7CB391D650A284q" >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS4 >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS5 >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x05) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("FE7CB391D650A284" < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("fE7CB391D650A284" < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("FE7CB391D650A28 " < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("FE7CB391D650A284q" < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS4 < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS5 < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x05) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("FE7CB391D650A284" <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("fE7CB391D650A284" <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("FE7CB391D650A28 " <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("FE7CB391D650A284q" <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS4 <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS5 <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x05) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("FE7CB391D650A284" != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("fE7CB391D650A284" != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("FE7CB391D650A28 " != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("FE7CB391D650A284q" != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS4 != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS5 != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x05) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x51, Local0, Ones) } } Method (M320, 1, NotSerialized) { /* LEqual */ Local0 = ("C179B3FE" == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("c179B3FE" == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS3 == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS2 == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x02) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("C179B3FE" > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("c179B3FE" > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("C179B3F " > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("C179B3FEq" > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS3 > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS2 > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x02) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("C179B3FE" >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("c179B3FE" >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("C179B3F " >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("C179B3FEq" >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS3 >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS2 >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x02) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("C179B3FE" < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("c179B3FE" < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("C179B3F " < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("C179B3FEq" < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS3 < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS2 < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x02) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("C179B3FE" <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("c179B3FE" <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("C179B3F " <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("C179B3FEq" <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS3 <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS2 <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x02) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("C179B3FE" != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("c179B3FE" != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("C179B3F " != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("C179B3FEq" != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS3 != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS2 != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x02) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M641, 1, NotSerialized) { Local0 = Concatenate ("", M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x00, Local0, BS10) Local0 = Concatenate ("1234q", M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x01, Local0, BS11) Local0 = Concatenate (AUS0, M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x02, Local0, BS10) Local0 = Concatenate (AUS1, M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x03, Local0, BS11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x04, Local0, BS10) Local0 = Concatenate (DerefOf (RefOf (AUS1)), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x05, Local0, BS11) } Local0 = Concatenate (DerefOf (PAUS [0x00]), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x06, Local0, BS10) Local0 = Concatenate (DerefOf (PAUS [0x01]), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x07, Local0, BS11) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x08, Local0, BS10) Local0 = Concatenate (M601 (0x02, 0x01), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x09, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0A, Local0, BS10) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0B, Local0, BS11) } Concatenate ("", M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BS10) Concatenate ("1234q", M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BS11) Concatenate (AUS0, M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BS10) Concatenate (AUS1, M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BS11) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x10, Local0, BS10) Concatenate (DerefOf (RefOf (AUS1)), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x11, Local0, BS11) } Concatenate (DerefOf (PAUS [0x00]), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x12, Local0, BS10) Concatenate (DerefOf (PAUS [0x01]), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x13, Local0, BS11) /* Method returns String */ Concatenate (M601 (0x02, 0x00), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS10) Concatenate (M601 (0x02, 0x01), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x15, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x16, Local0, BS10) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x17, Local0, BS11) } } Method (M321, 1, NotSerialized) { Local0 = Concatenate ("", M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x00, Local0, BS12) Local0 = Concatenate ("1234q", M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x01, Local0, BS13) Local0 = Concatenate (AUS0, M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x02, Local0, BS12) Local0 = Concatenate (AUS1, M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x03, Local0, BS13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x04, Local0, BS12) Local0 = Concatenate (DerefOf (RefOf (AUS1)), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x05, Local0, BS13) } Local0 = Concatenate (DerefOf (PAUS [0x00]), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x06, Local0, BS12) Local0 = Concatenate (DerefOf (PAUS [0x01]), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x07, Local0, BS13) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x08, Local0, BS12) Local0 = Concatenate (M601 (0x02, 0x01), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x09, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0A, Local0, BS12) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0B, Local0, BS13) } Local0 = Concatenate ("", M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0C, Local0, BS14) Local0 = Concatenate ("1234q", M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0D, Local0, BS15) Concatenate ("", M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BS12) Concatenate ("1234q", M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BS13) Concatenate (AUS0, M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x10, Local0, BS12) Concatenate (AUS1, M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x11, Local0, BS13) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x12, Local0, BS12) Concatenate (DerefOf (RefOf (AUS1)), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x13, Local0, BS13) } Concatenate (DerefOf (PAUS [0x00]), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS12) Concatenate (DerefOf (PAUS [0x01]), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x15, Local0, BS13) /* Method returns String */ Concatenate (M601 (0x02, 0x00), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x16, Local0, BS12) Concatenate (M601 (0x02, 0x01), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x17, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x18, Local0, BS12) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x19, Local0, BS13) } Concatenate ("", M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x1A, Local0, BS14) Concatenate ("1234q", M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x1B, Local0, BS15) } /* Method(m642, 1) */ /* Method(m322, 1) */ /* Method(m643, 1) */ /* Method(m323, 1) */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ Method (M645, 1, NotSerialized) { Local0 = Concatenate (M604 (0x00, 0x01, 0x04, 0x00), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (M604 (0x00, 0x01, 0x04, 0x00), 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (M604 (0x00, 0x01, 0x04, 0x00), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (M604 (0x00, 0x01, 0x04, 0x00), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { Local0 = Concatenate (M604 (0x00, 0x01, 0x03, 0x00), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (M604 (0x00, 0x01, 0x03, 0x00), 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (M604 (0x00, 0x01, 0x03, 0x00), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (M604 (0x00, 0x01, 0x03, 0x00), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), M604 (0x00, 0x01, 0x03, 0x00)) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0C, Local0, BB14) Local0 = Concatenate (Buffer (0x02) { "Z" }, M604 (0x00, 0x01, 0x04, 0x00)) M600 (Arg0, 0x0D, Local0, BB15) Concatenate (Buffer (0x01) { 0x5A // Z }, M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), M604 (0x00, 0x01, 0x03, 0x00), Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x1A, Local0, BB14) Concatenate (Buffer (0x02) { "Z" }, M604 (0x00, 0x01, 0x04, 0x00), Local0) M600 (Arg0, 0x1B, Local0, BB15) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ Method (M647, 1, NotSerialized) { Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (M604 (0x00, 0x01, 0x0E, 0x00), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (M604 (0x00, 0x01, 0x0E, 0x00), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (M604 (0x00, 0x01, 0x0E, 0x00), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (PAUI [0x07] )) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (M604 (0x00, 0x01, 0x0E, 0x00), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (M604 (0x00, 0x01, 0x0E, 0x00), M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (M601 (0x01, 0x07)) ) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (M604 (0x00, 0x01, 0x0E, 0x00), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x11, Local0, BS1A) } ToString (M604 (0x00, 0x01, 0x0D, 0x00), Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (M604 (0x00, 0x01, 0x0D, 0x00), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (M604 (0x00, 0x01, 0x0E, 0x00), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (M604 (0x00, 0x01, 0x0D, 0x00), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (M604 (0x00, 0x01, 0x0D, 0x00), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (M604 (0x00, 0x01, 0x0E, 0x00), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (M604 (0x00, 0x01, 0x0E, 0x00), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (M604 (0x00, 0x01, 0x0E, 0x00), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (M604 (0x00, 0x01, 0x0D, 0x00), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (M604 (0x00, 0x01, 0x0D, 0x00), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (M604 (0x00, 0x01, 0x0E, 0x00), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (M604 (0x00, 0x01, 0x0D, 0x00), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (M604 (0x00, 0x01, 0x0E, 0x00), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (M604 (0x00, 0x01, 0x0F, 0x00), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (M604 (0x00, 0x01, 0x0F, 0x00), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (PAUI [0x07] )) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (M604 (0x00, 0x01, 0x0F, 0x00), M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (M601 (0x01, 0x07)) ) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x11, Local0, BS1A) } ToString (M604 (0x00, 0x01, 0x0C, 0x00), Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (M604 (0x00, 0x01, 0x0C, 0x00), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (M604 (0x00, 0x01, 0x0F, 0x00), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (M604 (0x00, 0x01, 0x0C, 0x00), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (M604 (0x00, 0x01, 0x0C, 0x00), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (M604 (0x00, 0x01, 0x0F, 0x00), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (M604 (0x00, 0x01, 0x0C, 0x00), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (M604 (0x00, 0x01, 0x0C, 0x00), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (M604 (0x00, 0x01, 0x0F, 0x00), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (M604 (0x00, 0x01, 0x0C, 0x00), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ Method (M648, 1, NotSerialized) { Local0 = Mid (M604 (0x00, 0x01, 0x04, 0x00), 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), 0x01, 0x08) M600 (Arg0, 0x01, Local0, BB30) Local0 = Mid (M604 (0x00, 0x01, 0x04, 0x00), AUI5, AUIB) M600 (Arg0, 0x02, Local0, BB1D) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), AUI6, AUIA) M600 (Arg0, 0x03, Local0, BB30) If (Y078) { Local0 = Mid (M604 (0x00, 0x01, 0x04, 0x00), DerefOf (RefOf (AUI5)), DerefOf ( RefOf (AUIB))) M600 (Arg0, 0x04, Local0, BB1D) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (RefOf (AUI6)), DerefOf ( RefOf (AUIA))) M600 (Arg0, 0x05, Local0, BB30) } Local0 = Mid (M604 (0x00, 0x01, 0x04, 0x00), DerefOf (PAUI [0x05] ), DerefOf (PAUI [0x0B])) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (PAUI [0x06] ), DerefOf (PAUI [0x0A])) M600 (Arg0, 0x07, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (M604 (0x00, 0x01, 0x04, 0x00), M601 (0x01, 0x05), M601 ( 0x01, 0x0B)) M600 (Arg0, 0x08, Local0, BB1D) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), M601 (0x01, 0x06), M601 ( 0x01, 0x0A)) M600 (Arg0, 0x09, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (M604 (0x00, 0x01, 0x04, 0x00), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B))) M600 (Arg0, 0x0A, Local0, BB1D) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A))) M600 (Arg0, 0x0B, Local0, BB30) } Mid (M604 (0x00, 0x01, 0x04, 0x00), 0x00, 0x09, Local0) M600 (Arg0, 0x0C, Local0, BB1D) Mid (M604 (0x00, 0x01, 0x0F, 0x00), 0x01, 0x08, Local0) M600 (Arg0, 0x0D, Local0, BB30) Mid (M604 (0x00, 0x01, 0x04, 0x00), AUI5, AUIB, Local0) M600 (Arg0, 0x0E, Local0, BB1D) Mid (M604 (0x00, 0x01, 0x0F, 0x00), AUI6, AUIA, Local0) M600 (Arg0, 0x0F, Local0, BB30) If (Y078) { Mid (M604 (0x00, 0x01, 0x04, 0x00), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x10, Local0, BB1D) Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x11, Local0, BB30) } Mid (M604 (0x00, 0x01, 0x04, 0x00), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x0B]), Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (PAUI [0x06]), DerefOf ( PAUI [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB30) /* Method returns Index and Length parameters */ Mid (M604 (0x00, 0x01, 0x04, 0x00), M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x14, Local0, BB1D) Mid (M604 (0x00, 0x01, 0x0F, 0x00), M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x15, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (M604 (0x00, 0x01, 0x04, 0x00), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x0B)), Local0) M600 (Arg0, 0x16, Local0, BB1D) Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 ( 0x01, 0x0A)), Local0) M600 (Arg0, 0x17, Local0, BB30) } } Method (M328, 1, NotSerialized) { Local0 = Mid (M604 (0x00, 0x01, 0x03, 0x00), 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), 0x01, 0x04) M600 (Arg0, 0x01, Local0, BB31) Local0 = Mid (M604 (0x00, 0x01, 0x03, 0x00), AUI5, AUI9) M600 (Arg0, 0x02, Local0, BB1C) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), AUI6, AUI8) M600 (Arg0, 0x03, Local0, BB31) If (Y078) { Local0 = Mid (M604 (0x00, 0x01, 0x03, 0x00), DerefOf (RefOf (AUI5)), DerefOf ( RefOf (AUI9))) M600 (Arg0, 0x04, Local0, BB1C) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (RefOf (AUI6)), DerefOf ( RefOf (AUI8))) M600 (Arg0, 0x05, Local0, BB31) } Local0 = Mid (M604 (0x00, 0x01, 0x03, 0x00), DerefOf (PAUI [0x05] ), DerefOf (PAUI [0x09])) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (PAUI [0x06] ), DerefOf (PAUI [0x08])) M600 (Arg0, 0x07, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (M604 (0x00, 0x01, 0x03, 0x00), M601 (0x01, 0x05), M601 ( 0x01, 0x09)) M600 (Arg0, 0x08, Local0, BB1C) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), M601 (0x01, 0x06), M601 ( 0x01, 0x08)) M600 (Arg0, 0x09, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (M604 (0x00, 0x01, 0x03, 0x00), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09))) M600 (Arg0, 0x0A, Local0, BB1C) Local0 = Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08))) M600 (Arg0, 0x0B, Local0, BB31) } Mid (M604 (0x00, 0x01, 0x03, 0x00), 0x00, 0x05, Local0) M600 (Arg0, 0x0C, Local0, BB1C) Mid (M604 (0x00, 0x01, 0x0F, 0x00), 0x01, 0x04, Local0) M600 (Arg0, 0x0D, Local0, BB31) Mid (M604 (0x00, 0x01, 0x03, 0x00), AUI5, AUI9, Local0) M600 (Arg0, 0x0E, Local0, BB1C) Mid (M604 (0x00, 0x01, 0x0F, 0x00), AUI6, AUI8, Local0) M600 (Arg0, 0x0F, Local0, BB31) If (Y078) { Mid (M604 (0x00, 0x01, 0x03, 0x00), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x10, Local0, BB1C) Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x11, Local0, BB31) } Mid (M604 (0x00, 0x01, 0x03, 0x00), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x09]), Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (PAUI [0x06]), DerefOf ( PAUI [0x08]), Local0) M600 (Arg0, 0x13, Local0, BB31) /* Method returns Index and Length parameters */ Mid (M604 (0x00, 0x01, 0x03, 0x00), M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x14, Local0, BB1C) Mid (M604 (0x00, 0x01, 0x0F, 0x00), M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x15, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (M604 (0x00, 0x01, 0x03, 0x00), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x09)), Local0) M600 (Arg0, 0x16, Local0, BB1C) Mid (M604 (0x00, 0x01, 0x0F, 0x00), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 ( 0x01, 0x08)), Local0) M600 (Arg0, 0x17, Local0, BB31) } } /* Method(m649, 1) */ /* Method(m329, 1) */ /* Method(m64a, 1) */ /* Method(m32a, 1) */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = M604 (0x00, 0x02, 0x01, 0x00)-- M600 (Arg0, 0x00, Local0, BI12) Local0 = M604 (0x00, 0x02, 0x05, 0x00)-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = M604 (0x00, 0x02, 0x01, 0x00)++ M600 (Arg0, 0x02, Local0, BI13) Local0 = M604 (0x00, 0x02, 0x05, 0x00)++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = M604 (0x00, 0x02, 0x01, 0x00)-- M600 (Arg0, 0x00, Local0, BI12) Local0 = M604 (0x00, 0x02, 0x04, 0x00)-- M600 (Arg0, 0x01, Local0, BI14) } /* Increment */ If (Y501) { Local0 = M604 (0x00, 0x02, 0x01, 0x00)++ M600 (Arg0, 0x02, Local0, BI13) Local0 = M604 (0x00, 0x02, 0x04, 0x00)++ M600 (Arg0, 0x03, Local0, BI15) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x07, Local0, 0x02) /* Not */ Store (~M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Method (M000, 1, NotSerialized) { Local0 = !M604 (0x00, 0x02, 0x00, 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = !M604 (0x00, 0x02, 0x01, 0x00) M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !M604 (0x00, 0x02, 0x05, 0x00) M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !M604 (0x00, 0x02, 0x04, 0x00) M600 (Arg0, 0x03, Local0, Zero) } } /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (M604 (0x00, 0x02, 0x15, 0x00)) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (M604 (0x00, 0x02, 0x15, 0x00), Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x04, Local0, 0x0801) /* Error of iASL on constant folding Store(ToBCD(m604(0, 2, 22, 0)), Local0) m600(arg0, 5, Local0, 0x3789012345678901) */ ToBCD (M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (M604 (0x00, 0x02, 0x16, 0x00), Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (M604 (0x00, 0x02, 0x17, 0x00)) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (M604 (0x00, 0x02, 0x17, 0x00), Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (M604 (0x00, 0x02, 0x18, 0x00)) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (M604 (0x00, 0x02, 0x18, 0x00), Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M001, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((M604 (0x00, 0x02, 0x01, 0x00) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M002, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((M604 (0x00, 0x02, 0x05, 0x00) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) + M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((M604 (0x00, 0x02, 0x05, 0x00) + M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M003, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FF) Store ((M604 (0x00, 0x02, 0x04, 0x00) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FF) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FF) } Store ((M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FF) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FF) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FF) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FF) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FF) } /* Conversion of the second operand */ Store ((0x00 + M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0x01 + M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FF) Store ((AUI5 + M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUI6 + M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUI6)) + M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FF) } Store ((DerefOf (PAUI [0x05]) + M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x06]) + M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x06) + M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FF) } Local0 = (0x00 + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0x01 + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, 0xC179B3FF) Local0 = (AUI5 + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUI6 + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUI6)) + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, 0xC179B3FF) } Local0 = (DerefOf (PAUI [0x05]) + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x06]) + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x06) + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, 0xC179B3FF) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) + M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xC179B71F) Store ((M604 (0x00, 0x02, 0x04, 0x00) + M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xC179B71F) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) + M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, 0xC179B71F) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) + M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0xC179B71F) } /* And, common 32-bit/64-bit test */ Method (M004, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M005, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) & M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((M604 (0x00, 0x02, 0x05, 0x00) & M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M006, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 & M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 & M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) & M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) & M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x0320) Store ((M604 (0x00, 0x02, 0x04, 0x00) & M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x0320) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) & M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, 0x0320) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) & M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0x0320) } /* Divide, common 32-bit/64-bit test */ Method (M007, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x02, 0x01, 0x00) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x02, 0x01, 0x00) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) / DerefOf (PAUI [0x01]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) / DerefOf (M602 (0x01, 0x01, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (M604 (0x00, 0x02, 0x01, 0x00), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (M604 (0x00, 0x02, 0x01, 0x00), 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (M604 (0x00, 0x02, 0x01, 0x00), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (M604 (0x00, 0x02, 0x01, 0x00), AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M008, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x02, 0x05, 0x00) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x02, 0x05, 0x00) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) / DerefOf (PAUI [0x04]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) / DerefOf (M602 (0x01, 0x04, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (M604 (0x00, 0x02, 0x05, 0x00), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x02, 0x05, 0x00), 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (M604 (0x00, 0x02, 0x05, 0x00), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x02, 0x05, 0x00), AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) / M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) / M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (M604 (0x00, 0x02, 0x05, 0x00), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M009, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) / 0xC179B3FE), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x02, 0x04, 0x00) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) / AUI3), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) / DerefOf (RefOf (AUI3))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x02, 0x04, 0x00) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) / DerefOf (PAUI [0x03]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) / M601 (0x01, 0x03)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) / DerefOf (M602 (0x01, 0x03, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (M604 (0x00, 0x02, 0x04, 0x00), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Divide (M604 (0x00, 0x02, 0x04, 0x00), 0xC179B3FE, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (M604 (0x00, 0x02, 0x04, 0x00), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Divide (M604 (0x00, 0x02, 0x04, 0x00), AUI3, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Divide (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUI3)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Divide (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x03]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Divide (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x03), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Divide (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x03, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE / M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 / M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) / M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) / M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) / M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) / M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xC179B3FE, M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI3, M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI3)), M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x03]), M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x03), M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x03, 0x01)), M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) / M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) / M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x003DD5B7) Divide (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (M604 (0x00, 0x02, 0x04, 0x00), M604 (0x00, 0x02, 0x01, 0x00), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x003DD5B7) } /* Mod, common 32-bit/64-bit test */ Method (M00A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x02, 0x01, 0x00) % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (PAUI [0x10]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (PAUI [0x11]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (M602 (0x01, 0x10, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (M602 (0x01, 0x11, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M00B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x02, 0x05, 0x00) % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (PAUI [0x0D]) ), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (PAUI [0x0F]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (M602 (0x01, 0x0D, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (M602 (0x01, 0x0F, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) % M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x05, 0x00) % M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M00C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) % 0xC179B3FF), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) % 0xC179B3FD), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x02, 0x04, 0x00) % AUIC), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) % AUIE), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (RefOf (AUIC))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (RefOf (AUIE))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (PAUI [0x0C]) ), Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (PAUI [0x0E]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) % M601 (0x01, 0x0C)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) % M601 (0x01, 0x0E)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (M602 (0x01, 0x0C, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (M602 (0x01, 0x0E, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % 0xC179B3FF) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % 0xC179B3FD) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % AUIC) /* \AUIC */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % AUIE) /* \AUIE */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (RefOf (AUIC))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (RefOf (AUIE))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (PAUI [0x0C])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (PAUI [0x0E])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % M601 (0x01, 0x0C)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % M601 (0x01, 0x0E)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (M602 (0x01, 0x0C, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % DerefOf (M602 (0x01, 0x0E, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xC179B3FF % M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xC179B3FD % M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FD) Store ((AUIC % M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIE % M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (AUIC)) % M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIE)) % M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FD) } Store ((DerefOf (PAUI [0x0C]) % M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0E]) % M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M601 (0x01, 0x0C) % M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0E) % M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0C, 0x01)) % M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0E, 0x01)) % M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FD) } Local0 = (0xC179B3FF % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xC179B3FD % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, 0xC179B3FD) Local0 = (AUIC % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIE % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (AUIC)) % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIE)) % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, 0xC179B3FD) } Local0 = (DerefOf (PAUI [0x0C]) % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0E]) % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0C) % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0E) % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, 0xC179B3FD) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) % M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x04, 0x00) % M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x0267) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) % M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) % M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0x0267) } /* Multiply, common 32-bit/64-bit test */ Method (M00D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M00E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) * M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((M604 (0x00, 0x02, 0x05, 0x00) * M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M00F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 * M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 * M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) * M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) * M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x5DCC2DBE) Store ((M604 (0x00, 0x02, 0x04, 0x00) * M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x5DCC2DBE) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) * M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, 0x5DCC2DBE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) * M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0x5DCC2DBE) } /* NAnd, common 32-bit/64-bit test */ Method (M010, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (M604 (0x00, 0x02, 0x01, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x01, 0x00), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (M604 (0x00, 0x02, 0x01, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x01, 0x00), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M011, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (M604 (0x00, 0x02, 0x05, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x05, 0x00), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (M604 (0x00, 0x02, 0x05, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x05, 0x00), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (M604 (0x00, 0x02, 0x05, 0x00), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (M604 (0x00, 0x02, 0x05, 0x00), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M012, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x3E864C01) Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), AUII) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x12] )) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } NAnd (M604 (0x00, 0x02, 0x04, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x04, 0x00), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x3E864C01) NAnd (M604 (0x00, 0x02, 0x04, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x04, 0x00), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x3E864C01) } NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Local0 = NAnd (0x00, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x19, Local0, 0x3E864C01) Local0 = NAnd (AUI5, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x23, Local0, 0x3E864C01) } NAnd (0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x3E864C01) NAnd (AUI5, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x3E864C01) } NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Local0 = NAnd (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x30, Local0, 0xFFFFFCDF) Local0 = NAnd (M604 (0x00, 0x02, 0x04, 0x00), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x31, Local0, 0xFFFFFCDF) NAnd (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFCDF) NAnd (M604 (0x00, 0x02, 0x04, 0x00), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFCDF) } /* NOr, common 32-bit/64-bit test */ Method (M013, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (M604 (0x00, 0x02, 0x01, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x02, 0x01, 0x00), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (M604 (0x00, 0x02, 0x01, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x02, 0x01, 0x00), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M014, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (M604 (0x00, 0x02, 0x05, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x02, 0x05, 0x00), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (M604 (0x00, 0x02, 0x05, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x02, 0x05, 0x00), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x02, 0x05, 0x00), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x02, 0x05, 0x00), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (M604 (0x00, 0x02, 0x05, 0x00), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (M604 (0x00, 0x02, 0x05, 0x00), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M015, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0x3E864C01) Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0x3E864C01) Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x3E864C01) Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0x3E864C01) Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x12] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x3E864C01) Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x3E864C01) Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (M604 (0x00, 0x02, 0x04, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x3E864C01) NOr (M604 (0x00, 0x02, 0x04, 0x00), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (M604 (0x00, 0x02, 0x04, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x3E864C01) NOr (M604 (0x00, 0x02, 0x04, 0x00), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x3E864C01) NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x3E864C01) NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x3E864C01) NOr (M604 (0x00, 0x02, 0x04, 0x00), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x3E864C01) NOr (M604 (0x00, 0x02, 0x04, 0x00), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x18, Local0, 0x3E864C01) Local0 = NOr (0xFFFFFFFF, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1A, Local0, 0x3E864C01) Local0 = NOr (AUII, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1C, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (AUII)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1E, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PAUI [0x12]), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x20, Local0, 0x3E864C01) Local0 = NOr (M601 (0x01, 0x12), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x22, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0x3E864C01) NOr (0xFFFFFFFF, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0x3E864C01) NOr (AUII, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0x3E864C01) NOr (DerefOf (RefOf (AUII)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0x3E864C01) NOr (DerefOf (PAUI [0x12]), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0x3E864C01) NOr (M601 (0x01, 0x12), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0x3E864C01) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x30, Local0, 0x3E864C00) Local0 = NOr (M604 (0x00, 0x02, 0x04, 0x00), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x31, Local0, 0x3E864C00) NOr (M604 (0x00, 0x02, 0x01, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x32, Local0, 0x3E864C00) NOr (M604 (0x00, 0x02, 0x04, 0x00), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x33, Local0, 0x3E864C00) } /* Or, common 32-bit/64-bit test */ Method (M016, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((M604 (0x00, 0x02, 0x01, 0x00) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M017, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((M604 (0x00, 0x02, 0x05, 0x00) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) | M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((M604 (0x00, 0x02, 0x05, 0x00) | M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M018, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((M604 (0x00, 0x02, 0x04, 0x00) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF | M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII | M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) | M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) | M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) | M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) | M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xC179B3FF) Store ((M604 (0x00, 0x02, 0x04, 0x00) | M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xC179B3FF) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) | M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, 0xC179B3FF) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) | M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0xC179B3FF) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M019, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((M604 (0x00, 0x02, 0x01, 0x00) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M01A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((M604 (0x00, 0x02, 0x05, 0x00) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((M604 (0x00, 0x02, 0x05, 0x00) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M01B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x82F367FC) Store ((M604 (0x00, 0x02, 0x04, 0x00) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x82F367FC) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x82F367FC) } Store ((M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x82F367FC) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x82F367FC) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << 0x01) M600 (Arg0, 0x0D, Local0, 0x82F367FC) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x82F367FC) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x82F367FC) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x82F367FC) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x82F367FC) } /* Conversion of the second operand */ Store ((0x00 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((M604 (0x00, 0x02, 0x04, 0x00) << M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xCD9FF000) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) << M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x33, Local0, 0xCD9FF000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M01C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((M604 (0x00, 0x02, 0x01, 0x00) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2F, Local0, 0x00182F36) } } /* ShiftRight, 64-bit */ Method (M01D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((M604 (0x00, 0x02, 0x05, 0x00) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x05, 0x00) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M01E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x60BCD9FF) Store ((M604 (0x00, 0x02, 0x04, 0x00) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x60BCD9FF) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x60BCD9FF) } Store ((M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x60BCD9FF) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x60BCD9FF) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x60BCD9FF) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x60BCD9FF) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x60BCD9FF) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x60BCD9FF) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x60BCD9FF) } /* Conversion of the second operand */ Store ((0x0321 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> M604 (0x00, 0x02, 0x14, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x2F, Local0, 0x00182F36) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((M604 (0x00, 0x02, 0x04, 0x00) >> M604 (0x00, 0x02, 0x14, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x00182F36) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) >> M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x33, Local0, 0x00182F36) } /* Subtract, common 32-bit/64-bit test */ Method (M01F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((M604 (0x00, 0x02, 0x01, 0x00) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M020, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((M604 (0x00, 0x02, 0x05, 0x00) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) - M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((M604 (0x00, 0x02, 0x05, 0x00) - M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M021, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FD) Store ((M604 (0x00, 0x02, 0x04, 0x00) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FD) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FD) } Store ((M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FD) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FD) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FD) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FD) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FD) } /* Conversion of the second operand */ Store ((0x00 - M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x3E864C02) Store ((0x01 - M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C03) Store ((AUI5 - M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x3E864C02) Store ((AUI6 - M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C03) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x3E864C02) Store ((DerefOf (RefOf (AUI6)) - M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C03) } Store ((DerefOf (PAUI [0x05]) - M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x3E864C02) Store ((DerefOf (PAUI [0x06]) - M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C03) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x3E864C02) Store ((M601 (0x01, 0x06) - M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x3E864C02) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C03) } Local0 = (0x00 - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, 0x3E864C02) Local0 = (0x01 - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, 0x3E864C03) Local0 = (AUI5 - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, 0x3E864C02) Local0 = (AUI6 - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, 0x3E864C03) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, 0x3E864C02) Local0 = (DerefOf (RefOf (AUI6)) - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, 0x3E864C03) } Local0 = (DerefOf (PAUI [0x05]) - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, 0x3E864C02) Local0 = (DerefOf (PAUI [0x06]) - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, 0x3E864C03) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, 0x3E864C02) Local0 = (M601 (0x01, 0x06) - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, 0x3E864C02) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, 0x3E864C03) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) - M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x3E864F23) Store ((M604 (0x00, 0x02, 0x04, 0x00) - M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DD) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) - M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, 0x3E864F23) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) - M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0xC179B0DD) } /* XOr, common 32-bit/64-bit test */ Method (M022, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ M604 (0x00, 0x02, 0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M023, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ M604 (0x00, 0x02, 0x05, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ M604 (0x00, 0x02, 0x05, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((M604 (0x00, 0x02, 0x05, 0x00) ^ M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M024, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x3E864C01) Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x3E864C01) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x3E864C01) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Store ((0x00 ^ M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF ^ M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C01) Store ((AUI5 ^ M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII ^ M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) ^ M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Store ((DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) ^ M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) ^ M604 (0x00, 0x02, 0x04, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C01) } Local0 = (0x00 ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, 0x3E864C01) Local0 = (AUI5 ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, 0x3E864C01) } Local0 = (DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x02, 0x01, 0x00) ^ M604 (0x00, 0x02, 0x04, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xC179B0DF) Store ((M604 (0x00, 0x02, 0x04, 0x00) ^ M604 (0x00, 0x02, 0x01, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DF) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) ^ M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, 0xC179B0DF) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) ^ M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, 0xC179B0DF) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m002", Local0) SRMT (Local0) M002 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m005", Local0) SRMT (Local0) M005 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m008", Local0) SRMT (Local0) M008 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00b", Local0) SRMT (Local0) M00B (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00e", Local0) SRMT (Local0) M00E (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) M010 (Local0) Concatenate (Arg0, "-m011", Local0) SRMT (Local0) M011 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) M013 (Local0) Concatenate (Arg0, "-m014", Local0) SRMT (Local0) M014 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) M016 (Local0) Concatenate (Arg0, "-m017", Local0) SRMT (Local0) M017 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01a", Local0) SRMT (Local0) M01A (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01d", Local0) SRMT (Local0) M01D (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) M01F (Local0) Concatenate (Arg0, "-m020", Local0) SRMT (Local0) M020 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) M022 (Local0) Concatenate (Arg0, "-m023", Local0) SRMT (Local0) M023 (Local0) } Method (M32D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m003", Local0) SRMT (Local0) M003 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m006", Local0) SRMT (Local0) M006 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m009", Local0) SRMT (Local0) M009 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00c", Local0) SRMT (Local0) M00C (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00f", Local0) SRMT (Local0) M00F (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) If (Y119) { M010 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m012", Local0) SRMT (Local0) M012 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) If (Y119) { M013 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m015", Local0) SRMT (Local0) M015 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) If (Y119) { M016 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m018", Local0) SRMT (Local0) M018 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01b", Local0) SRMT (Local0) M01B (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01e", Local0) SRMT (Local0) M01E (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) If (Y119) { M01F (Local0) } Else { BLCK () } Concatenate (Arg0, "-m021", Local0) SRMT (Local0) M021 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) If (Y119) { M022 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m024", Local0) SRMT (Local0) M024 (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M025, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M026, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x18, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M027, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (M604 (0x00, 0x02, 0x01, 0x00) && M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x18, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) && M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M028, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M029, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x18, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x05, 0x00) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M02A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (M604 (0x00, 0x02, 0x00, 0x00) || M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x18, Local0, Ones) Local0 = (M604 (0x00, 0x02, 0x04, 0x00) || M604 (0x00, 0x02, 0x00, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } Method (M64E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m026", Local0) SRMT (Local0) M026 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m029", Local0) SRMT (Local0) M029 (Local0) } Method (M32E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m027", Local0) SRMT (Local0) M027 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m02a", Local0) SRMT (Local0) M02A (Local0) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64F, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32F, 1, NotSerialized) { /* LEqual */ Local0 = (0xC179B3FE == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xC179B3FF == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xC179B3FD == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI3 == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIC == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIE == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0C) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0E) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) == M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xC179B3FE > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xC179B3FF > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xC179B3FD > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI3 > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIC > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIE > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0C) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0E) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) > M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xC179B3FE >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xC179B3FF >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xC179B3FD >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI3 >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIC >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIE >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0C) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0E) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) >= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xC179B3FE < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xC179B3FF < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xC179B3FD < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI3 < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIC < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIE < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0C) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0E) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) < M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xC179B3FE <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xC179B3FF <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xC179B3FD <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI3 <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIC <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIE <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0C) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0E) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) <= M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xC179B3FE != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xC179B3FF != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xC179B3FD != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI3 != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIC != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIE != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0C) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0E) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) != M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M02B, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x6B, Local0, Ones) } } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64G, 1, NotSerialized) { Local0 = Concatenate (0x0321, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32G, 1, NotSerialized) { Local0 = Concatenate (0x0321, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (AUI1, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x03, Local0, BB24) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x05, Local0, BB24) } Local0 = Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x07, Local0, BB24) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x09, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0B, Local0, BB24) } Concatenate (0x0321, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB24) Concatenate (AUI1, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB24) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB24) } Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x14, Local0, BB24) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x16, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x18, Local0, BB24) } } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M02C, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Method (M02D, 1, NotSerialized) { Store (AUS6 [M604 (0x00, 0x02, 0x14, 0x00)], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [M604 (0x00, 0x02, 0x14, 0x00)], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [M604 (0x00, 0x02, 0x14, 0x00)], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [M604 (0x00, 0x02, 0x14, 0x00)], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [M604 (0x00, 0x02, 0x14, 0x00)], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [M604 (0x00, 0x02, 0x14, 0x00)], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [M604 (0x00, 0x02, 0x14, 0x00)] , Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [M604 (0x00, 0x02, 0x14, 0x00)] , Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [M604 (0x00, 0x02, 0x14, 0x00)] , Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [M604 (0x00, 0x02, 0x14, 0x00)], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)], Local3) CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)], Local3) CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [M604 (0x00, 0x02, 0x14, 0x00)], Local3) CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [M604 (0x00, 0x02, 0x14, 0x00)] , Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [M604 (0x00, 0x02, 0x14, 0x00)] , Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [M604 (0x00, 0x02, 0x14, 0x00)] , Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)] CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)] CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [M604 (0x00, 0x02, 0x14, 0x00)] CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [M604 (0x00, 0x02, 0x14, 0x00)] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M02E, 1, NotSerialized) { CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, M604 (0x00, 0x02, 0x01, 0x00)) If (F64) { Fatal (0xFF, 0xFFFFFFFF, M604 (0x00, 0x02, 0x05, 0x00)) } Else { Fatal (0xFF, 0xFFFFFFFF, M604 (0x00, 0x02, 0x04, 0x00)) } CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) } /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M02F, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", M604 (0x00, 0x02, 0x14, 0x00), 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x14, 0x00), 0x0A ) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, M604 (0x00, 0x02, 0x14, 0x00), 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, M604 (0x00, 0x02, 0x14, 0x00), 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x02, 0x14, 0x00), 0x0A ) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x14, 0x00), 0x0A ) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x02, 0x14, 0x00), 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x14, 0x00), 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), M604 (0x00, 0x02, 0x14, 0x00), 0x0A ) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x14, 0x00), 0x0A ) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x02, 0x14, 0x00) ) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x02, 0x14, 0x00) ) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x02, 0x14, 0x00) ) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x02, 0x14, 0x00) ) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x02, 0x14, 0x00) ) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x14, 0x00), Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x02, 0x05, 0x00) ) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x02, 0x05, 0x00) ) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x02, 0x05, 0x00) ) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x02, 0x05, 0x00) ) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x02, 0x05, 0x00) ) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00)) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x05, 0x00), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x02, 0x04, 0x00) ) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x02, 0x04, 0x00) ) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x02, 0x04, 0x00) ) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x02, 0x04, 0x00) ) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x02, 0x04, 0x00) ) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00)) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), M604 (0x00, 0x02, 0x14, 0x00), M604 (0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x02, 0x14, 0x00), M604 ( 0x00, 0x02, 0x04, 0x00), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Method (M030, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x02, 0x14, 0x00)) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64j, 1) */ /* Method(m32j, 1) */ /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M031, 1, NotSerialized) { CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (M604 (0x00, 0x02, 0x01, 0x00)) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z118, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (M604 (0x00, 0x02, 0x1B, 0x00)) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z118, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator ??? */ Method (M032, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, m604(0, 2, 1, 0)) */ CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z118, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Method (M033, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, M604 (0x00, 0x02, 0x01, 0x00)) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z118, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M034, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (M604 (0x00, 0x02, 0x00, 0x00)) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (M604 (0x00, 0x02, 0x01, 0x00)) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (M604 (0x00, 0x02, 0x04, 0x00)) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (M604 (0x00, 0x02, 0x05, 0x00)) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (M604 (0x00, 0x02, 0x00, 0x00)) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (M604 (0x00, 0x02, 0x01, 0x00)) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (M604 (0x00, 0x02, 0x04, 0x00)) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (M604 (0x00, 0x02, 0x05, 0x00)) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (M604 (0x00, 0x02, 0x00, 0x00)) { IST0 = 0x00 Break } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64k, 1) */ /* Method(m32k, 1) */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M035, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x05) { "0321" } == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB7 == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x05) { "0321" } > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB7 > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB8 > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x08) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) > M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x05) { "0321" } >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB7 >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB8 >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x08) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) >= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x05) { "0321" } < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB7 < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB8 < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x08) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) < M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x05) { "0321" } <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB7 <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB8 <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x08) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) <= M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x05) { "0321" } != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB7 != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB8 != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x08) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) != M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = (Buffer (0x01) { 0x00 // . } == M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x52, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } == M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x53, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } > M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x54, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } > M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x55, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } >= M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x56, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } > M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x57, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } < M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x58, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } < M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x59, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } <= M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x5A, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } <= M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x5B, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } != M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x5C, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } != M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x5D, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } == M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } == M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x5F, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } > M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x60, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x61, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } >= M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x62, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x63, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } < M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x64, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } < M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x65, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } <= M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x66, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } <= M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x67, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } != M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x68, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } != M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x69, Local0, Ones) } /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M036, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x00, Local0, BB29) Local0 = Concatenate (Buffer (0x02) { "Z" }, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x01, Local0, BB2A) Local0 = Concatenate (AUB0, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x02, Local0, BB29) Local0 = Concatenate (AUB1, M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x03, Local0, BB2A) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x04, Local0, BB29) Local0 = Concatenate (DerefOf (RefOf (AUB1)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x05, Local0, BB2A) } Local0 = Concatenate (DerefOf (PAUB [0x00]), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x06, Local0, BB29) Local0 = Concatenate (DerefOf (PAUB [0x01]), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x07, Local0, BB2A) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x08, Local0, BB29) Local0 = Concatenate (M601 (0x03, 0x01), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x09, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0A, Local0, BB29) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), M604 (0x00, 0x02, 0x01, 0x00)) M600 (Arg0, 0x0B, Local0, BB2A) } Concatenate (Buffer (0x01) { 0x5A // Z }, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BB29) Concatenate (Buffer (0x02) { "Z" }, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB2A) Concatenate (AUB0, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BB29) Concatenate (AUB1, M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB2A) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x10, Local0, BB29) Concatenate (DerefOf (RefOf (AUB1)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB2A) } Concatenate (DerefOf (PAUB [0x00]), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x12, Local0, BB29) Concatenate (DerefOf (PAUB [0x01]), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x13, Local0, BB2A) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BB29) Concatenate (M601 (0x03, 0x01), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x16, Local0, BB29) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), M604 (0x00, 0x02, 0x01, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB2A) } /* Boundary Cases */ Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x18, Local0, BB2B) Local0 = Concatenate (Buffer (0x02) { "Z" }, M604 (0x00, 0x02, 0x0C, 0x00)) M600 (Arg0, 0x19, Local0, BB2C) Local1 = 0x00 Local0 = Concatenate (Buffer (Local1){}, M604 (0x00, 0x02, 0x0E, 0x00)) M600 (Arg0, 0x1A, Local0, BB2D) } /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character, that is impossible to show */ /* with an immediate String constant). */ Method (M037, 1, NotSerialized) { Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), Ones) M600 (Arg0, 0x00, Local0, BS20) Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), 0x03) M600 (Arg0, 0x01, Local0, BS21) Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), AUI0) M600 (Arg0, 0x02, Local0, BS20) Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), AUI7) M600 (Arg0, 0x03, Local0, BS21) If (Y078) { Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x04, Local0, BS20) Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x05, Local0, BS21) } Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x06, Local0, BS20) Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x07] )) M600 (Arg0, 0x07, Local0, BS21) /* Method returns Length parameter */ Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x00)) M600 (Arg0, 0x08, Local0, BS20) Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x07)) M600 (Arg0, 0x09, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x0A, Local0, BS20) Local0 = ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M601 (0x01, 0x07)) ) M600 (Arg0, 0x0B, Local0, BS21) } ToString (M604 (0x00, 0x02, 0x01, 0x00), Ones, Local0) M600 (Arg0, 0x0C, Local0, BS20) ToString (M604 (0x00, 0x02, 0x01, 0x00), 0x03, Local0) M600 (Arg0, 0x0D, Local0, BS21) ToString (M604 (0x00, 0x02, 0x01, 0x00), AUI0, Local0) M600 (Arg0, 0x0E, Local0, BS20) ToString (M604 (0x00, 0x02, 0x01, 0x00), AUI7, Local0) M600 (Arg0, 0x0F, Local0, BS21) If (Y078) { ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x10, Local0, BS20) ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x11, Local0, BS21) } ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x12, Local0, BS20) ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x13, Local0, BS21) /* Method returns Length parameter */ ToString (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS20) ToString (M604 (0x00, 0x02, 0x01, 0x00), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x15, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x16, Local0, BS20) ToString (M604 (0x00, 0x02, 0x01, 0x00), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x17, Local0, BS21) } /* Boundary Cases */ Local0 = ToString (M604 (0x00, 0x02, 0x0C, 0x00), Ones) M600 (Arg0, 0x18, Local0, BS22) Local0 = ToString (M604 (0x00, 0x02, 0x0C, 0x00), 0x03) M600 (Arg0, 0x19, Local0, BS22) Local0 = ToString (M604 (0x00, 0x02, 0x0E, 0x00), Ones) M600 (Arg0, 0x1A, Local0, BS23) Local0 = ToString (M604 (0x00, 0x02, 0x0E, 0x00), 0x03) M600 (Arg0, 0x1B, Local0, BS24) } /* Method(m038, 1) */ /* Method(m039, 1) */ /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = M604 (0x00, 0x03, 0x06, 0x00)-- M600 (Arg0, 0x00, Local0, BI12) Local0 = M604 (0x00, 0x03, 0x0A, 0x00)-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = M604 (0x00, 0x03, 0x06, 0x00)++ M600 (Arg0, 0x02, Local0, BI13) Local0 = M604 (0x00, 0x03, 0x0A, 0x00)++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = M604 (0x00, 0x03, 0x06, 0x00)-- M600 (Arg0, 0x00, Local0, BI12) Local0 = M604 (0x00, 0x03, 0x0A, 0x00)-- M600 (Arg0, 0x01, Local0, BI18) } /* Increment */ If (Y501) { Local0 = M604 (0x00, 0x03, 0x06, 0x00)++ M600 (Arg0, 0x02, Local0, BI13) Local0 = M604 (0x00, 0x03, 0x0A, 0x00)++ M600 (Arg0, 0x03, Local0, BI19) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { Local0 = !M604 (0x00, 0x03, 0x00, 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = !M604 (0x00, 0x03, 0x06, 0x00) M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !M604 (0x00, 0x03, 0x0A, 0x00) M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !M604 (0x00, 0x03, 0x0A, 0x00) M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (M604 (0x00, 0x03, 0x0F, 0x00)) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (M604 (0x00, 0x03, 0x0F, 0x00), Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (M604 (0x00, 0x03, 0x10, 0x00)) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (M604 (0x00, 0x03, 0x10, 0x00), Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (M604 (0x00, 0x03, 0x11, 0x00)) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (M604 (0x00, 0x03, 0x11, 0x00), Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (M604 (0x00, 0x03, 0x12, 0x00)) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (M604 (0x00, 0x03, 0x12, 0x00), Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((M604 (0x00, 0x03, 0x06, 0x00) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) + M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((M604 (0x00, 0x03, 0x0A, 0x00) + M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) + M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) + M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) & M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((M604 (0x00, 0x03, 0x0A, 0x00) & M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) & M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) & M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x03, 0x06, 0x00) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x03, 0x06, 0x00) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) / DerefOf (PAUI [0x01]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) / DerefOf (M602 (0x01, 0x01, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (M604 (0x00, 0x03, 0x06, 0x00), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (M604 (0x00, 0x03, 0x06, 0x00), 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (M604 (0x00, 0x03, 0x06, 0x00), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (M604 (0x00, 0x03, 0x06, 0x00), AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (PAUI [0x04]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (M602 (0x01, 0x04, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (M604 (0x00, 0x03, 0x0A, 0x00), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (M604 (0x00, 0x03, 0x0A, 0x00), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (PAUI [0x14]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / DerefOf (M602 (0x01, 0x14, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (M604 (0x00, 0x03, 0x0A, 0x00), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (M604 (0x00, 0x03, 0x0A, 0x00), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) / M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) / M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x03, 0x06, 0x00) % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (PAUI [0x10]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (PAUI [0x11]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (M602 (0x01, 0x10, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (M602 (0x01, 0x11, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (PAUI [0x0D]) ), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (PAUI [0x0F]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (M602 (0x01, 0x0D, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (M602 (0x01, 0x0F, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (PAUI [0x15]) ), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (PAUI [0x16]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (M602 (0x01, 0x15, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (M602 (0x01, 0x16, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) % M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x0A, 0x00) % M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) % M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) % M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) * M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((M604 (0x00, 0x03, 0x0A, 0x00) * M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) * M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) * M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (M604 (0x00, 0x03, 0x06, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x06, 0x00), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (M604 (0x00, 0x03, 0x06, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x06, 0x00), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (M604 (0x00, 0x03, 0x0A, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x12] )) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (M604 (0x00, 0x03, 0x0A, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (M604 (0x00, 0x03, 0x06, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x03, 0x06, 0x00), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (M604 (0x00, 0x03, 0x06, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x03, 0x06, 0x00), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x03, 0x06, 0x00), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M604 (0x00, 0x03, 0x06, 0x00), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (M604 (0x00, 0x03, 0x0A, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (M604 (0x00, 0x03, 0x0A, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x12] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (M604 (0x00, 0x03, 0x0A, 0x00), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (M604 (0x00, 0x03, 0x0A, 0x00), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (M604 (0x00, 0x03, 0x0A, 0x00), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (M604 (0x00, 0x03, 0x06, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (M604 (0x00, 0x03, 0x0A, 0x00), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((M604 (0x00, 0x03, 0x06, 0x00) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) | M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((M604 (0x00, 0x03, 0x0A, 0x00) | M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) | M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) | M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((M604 (0x00, 0x03, 0x06, 0x00) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((M604 (0x00, 0x03, 0x0A, 0x00) << M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) << M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((M604 (0x00, 0x03, 0x06, 0x00) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> M604 (0x00, 0x03, 0x0E, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((M604 (0x00, 0x03, 0x0A, 0x00) >> M604 (0x00, 0x03, 0x0E, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) >> M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((M604 (0x00, 0x03, 0x06, 0x00) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) - M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((M604 (0x00, 0x03, 0x0A, 0x00) - M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) - M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) - M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ M604 (0x00, 0x03, 0x06, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ M604 (0x00, 0x03, 0x0A, 0x00)), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((M604 (0x00, 0x03, 0x06, 0x00) ^ M604 (0x00, 0x03, 0x0A, 0x00) ), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((M604 (0x00, 0x03, 0x0A, 0x00) ^ M604 (0x00, 0x03, 0x06, 0x00) ), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) ^ M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) ^ M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (M604 (0x00, 0x03, 0x06, 0x00) && M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) && M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (M604 (0x00, 0x03, 0x00, 0x00) || M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, Ones) Local0 = (M604 (0x00, 0x03, 0x0A, 0x00) || M604 (0x00, 0x03, 0x00, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { /* LEqual */ Local0 = (0xD650A284 == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Method (M067, 1, NotSerialized) { Store (AUS6 [M604 (0x00, 0x03, 0x0E, 0x00)], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [M604 (0x00, 0x03, 0x0E, 0x00)], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [M604 (0x00, 0x03, 0x0E, 0x00)], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [M604 (0x00, 0x03, 0x0E, 0x00)], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [M604 (0x00, 0x03, 0x0E, 0x00)], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [M604 (0x00, 0x03, 0x0E, 0x00)], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [M604 (0x00, 0x03, 0x0E, 0x00)] , Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [M604 (0x00, 0x03, 0x0E, 0x00)] , Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [M604 (0x00, 0x03, 0x0E, 0x00)] , Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [M604 (0x00, 0x03, 0x0E, 0x00)], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)], Local3) CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)], Local3) CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [M604 (0x00, 0x03, 0x0E, 0x00)], Local3) CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [M604 (0x00, 0x03, 0x0E, 0x00)] , Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [M604 (0x00, 0x03, 0x0E, 0x00)] , Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [M604 (0x00, 0x03, 0x0E, 0x00)] , Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)] CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)] CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [M604 (0x00, 0x03, 0x0E, 0x00)] CH04 (Arg0, 0x00, 0x55, Z118, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [M604 (0x00, 0x03, 0x0E, 0x00)] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, M604 (0x00, 0x03, 0x06, 0x00)) If (F64) { Fatal (0xFF, 0xFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00)) } Else { Fatal (0xFF, 0xFFFFFFFF, M604 (0x00, 0x03, 0x0A, 0x00)) } CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) } /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", M604 (0x00, 0x03, 0x0E, 0x00), 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0E, 0x00), 0x0A ) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, M604 (0x00, 0x03, 0x0E, 0x00), 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, M604 (0x00, 0x03, 0x0E, 0x00), 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A ) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A ) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A ) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A ) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x03, 0x0E, 0x00) ) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x03, 0x0E, 0x00) ) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x03, 0x0E, 0x00) ) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x03, 0x0E, 0x00) ) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x03, 0x0E, 0x00) ) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0E, 0x00), Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x03, 0x0A, 0x00) ) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00)) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), M604 (0x00, 0x03, 0x0E, 0x00), M604 (0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), M604 (0x00, 0x03, 0x0E, 0x00), M604 ( 0x00, 0x03, 0x0A, 0x00), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, M604 (0x00, 0x03, 0x0E, 0x00)) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64t, 1) */ /* Method(m32t, 1) */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (M604 (0x00, 0x03, 0x06, 0x00)) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z118, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (M604 (0x00, 0x03, 0x13, 0x00)) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z118, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, m604(0, 3, 6, 0)) */ CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z118, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, M604 (0x00, 0x03, 0x06, 0x00)) CH03 (Arg0, Z118, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z118, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (M604 (0x00, 0x03, 0x00, 0x00)) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (M604 (0x00, 0x03, 0x06, 0x00)) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (M604 (0x00, 0x03, 0x0A, 0x00)) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (M604 (0x00, 0x03, 0x0A, 0x00)) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (M604 (0x00, 0x03, 0x00, 0x00)) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (M604 (0x00, 0x03, 0x06, 0x00)) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (M604 (0x00, 0x03, 0x0A, 0x00)) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (M604 (0x00, 0x03, 0x0A, 0x00)) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (M604 (0x00, 0x03, 0x00, 0x00)) { IST0 = 0x00 Break } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64u, 1) */ /* Method(m32u, 1) */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M06F, 1, NotSerialized) { /* LEqual */ Local0 = ("21 03 00" == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("21 03 01" == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS9 == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUSA == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x0A) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) == M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("21 03 00" > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("21 03 01" > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("21 03 0 " > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("21 03 00q" > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS9 > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUSA > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x0A) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) > M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("21 03 00" >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("21 03 01" >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("21 03 0 " >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("21 03 00q" >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS9 >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUSA >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x0A) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) >= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("21 03 00" < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("21 03 01" < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("21 03 0 " < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("21 03 00q" < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS9 < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUSA < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x0A) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) < M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("21 03 00" <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("21 03 01" <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("21 03 0 " <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("21 03 00q" <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS9 <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUSA <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x0A) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) <= M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("21 03 00" != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("21 03 01" != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("21 03 0 " != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("21 03 00q" != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS9 != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUSA != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x0A) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) != M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" == M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x52, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" == M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x53, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" > M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x54, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" > M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x55, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" >= M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x56, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" >= M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x57, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" < M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x58, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" < M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x59, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" <= M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x5A, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" <= M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x5B, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" != M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x5C, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" != M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x5D, Local0, Ones) } /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M070, 1, NotSerialized) { Local0 = Concatenate ("", M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x00, Local0, BS25) Local0 = Concatenate ("1234q", M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x01, Local0, BS26) Local0 = Concatenate (AUS0, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x02, Local0, BS25) Local0 = Concatenate (AUS1, M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x03, Local0, BS26) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x04, Local0, BS25) Local0 = Concatenate (DerefOf (RefOf (AUS1)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x05, Local0, BS26) } Local0 = Concatenate (DerefOf (PAUS [0x00]), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x06, Local0, BS25) Local0 = Concatenate (DerefOf (PAUS [0x01]), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x07, Local0, BS26) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x08, Local0, BS25) Local0 = Concatenate (M601 (0x02, 0x01), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x09, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0A, Local0, BS25) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), M604 (0x00, 0x03, 0x06, 0x00)) M600 (Arg0, 0x0B, Local0, BS26) } Concatenate ("", M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0C, Local0, BS25) Concatenate ("1234q", M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0D, Local0, BS26) Concatenate (AUS0, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0E, Local0, BS25) Concatenate (AUS1, M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x0F, Local0, BS26) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x10, Local0, BS25) Concatenate (DerefOf (RefOf (AUS1)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x11, Local0, BS26) } Concatenate (DerefOf (PAUS [0x00]), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x12, Local0, BS25) Concatenate (DerefOf (PAUS [0x01]), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x13, Local0, BS26) /* Method returns String */ Concatenate (M601 (0x02, 0x00), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS25) Concatenate (M601 (0x02, 0x01), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x15, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x16, Local0, BS25) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), M604 (0x00, 0x03, 0x06, 0x00), Local0) M600 (Arg0, 0x17, Local0, BS26) } /* Boundary Cases */ Local0 = Concatenate ("", M604 (0x00, 0x03, 0x0C, 0x00)) M600 (Arg0, 0x18, Local0, BS27) } /* Method(m071, 1) */ /* Method(m072, 1) */ /* * Begin of the test body */ /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ If (F64) { Concatenate (__METHOD__, "-m640", Local0) SRMT (Local0) M640 (Local0) } Else { Concatenate (__METHOD__, "-m320", Local0) SRMT (Local0) M320 (Local0) } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m641", Local0) SRMT (Local0) M641 (Local0) } Else { Concatenate (__METHOD__, "-m321", Local0) SRMT (Local0) M321 (Local0) } /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64b", Local0) SRMT (Local0) M64B (Local0) } Else { Concatenate (__METHOD__, "-m32b", Local0) SRMT (Local0) M32B (Local0) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m000", Local0) SRMT (Local0) M000 (Local0) /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64c", Local0) SRMT (Local0) M64C (Local0) } Else { Concatenate (__METHOD__, "-m32c", Local0) SRMT (Local0) M32C (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64D (Concatenate (__METHOD__, "-m64d")) } Else { M32D (Concatenate (__METHOD__, "-m32d")) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64E (Concatenate (__METHOD__, "-m64e")) } Else { M32E (Concatenate (__METHOD__, "-m32e")) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m02b", Local0) SRMT (Local0) M02B (Local0) If (F64) { Concatenate (__METHOD__, "-m64f", Local0) SRMT (Local0) M64F (Local0) } Else { Concatenate (__METHOD__, "-m32f", Local0) SRMT (Local0) M32F (Local0) } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64g", Local0) SRMT (Local0) M64G (Local0) } Else { Concatenate (__METHOD__, "-m32g", Local0) SRMT (Local0) M32G (Local0) } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m02c", Local0) SRMT (Local0) M02C (Local0) If (F64) { Concatenate (__METHOD__, "-m64h", Local0) SRMT (Local0) M64H (Local0) } Else { Concatenate (__METHOD__, "-m32h", Local0) SRMT (Local0) M32H (Local0) } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m02d", Local0) SRMT (Local0) M02D (Local0) /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m02e", Local0) SRMT (Local0) M02E (Local0) /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m02f", Local0) SRMT (Local0) M02F (Local0) If (F64) { Concatenate (__METHOD__, "-m64i", Local0) SRMT (Local0) M64I (Local0) } Else { Concatenate (__METHOD__, "-m32i", Local0) SRMT (Local0) M32I (Local0) } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m030", Local0) SRMT (Local0) M030 (Local0) /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m031", Local0) SRMT (Local0) M031 (Local0) /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m032", Local0) SRMT(Local0) m032(Local0) */ /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m033", Local0) SRMT (Local0) M033 (Local0) /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m034", Local0) SRMT (Local0) If (Y111) { M034 (Local0) } Else { BLCK () } /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m035", Local0) SRMT (Local0) M035 (Local0) /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Concatenate (__METHOD__, "-m036", Local0) SRMT (Local0) M036 (Local0) /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character) */ Concatenate (__METHOD__, "-m037", Local0) SRMT (Local0) M037 (Local0) /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m06c", Local0) SRMT(Local0) m06c(Local0) */ /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) If (Y111) { M06E (Local0) } Else { BLCK () } /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Concatenate (__METHOD__, "-m06f", Local0) SRMT (Local0) M06F (Local0) /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Concatenate (__METHOD__, "-m070", Local0) SRMT (Local0) M070 (Local0) /* Check consistency of the test Named Objects */ /* in the root Scope of the Global ACPI namespace */ Concatenate (__METHOD__, "-m606", Local0) SRMT (Local0) M606 (Local0) } /* Run-method */ Method (OPR7, 0, NotSerialized) { Debug = "TEST: OPR7, Source Operand" M619 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreturn/MAIN.asl0000700000175000017500000000430214773714155031775 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("oreturn", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/oreturn/oreturn.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/oreturn/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreturn/Makefile0000700000175000017500000000023014773714155032204 0ustar ivanhuivanhu# oreturn AMLMOD= oreturn COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/Makefile0000700000175000017500000000032114773714153030505 0ustar ivanhuivanhu# tests MDIRS = \ oarg \ oconst \ oconversion \ olocal \ onamedglob \ onamedloc \ opackageel \ oreftonamed \ oreftopackageel \ oreturn # FULL TOP= ../../../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftopackageel/0000700000175000017500000000000014773714155032203 5ustar ivanhuivanhu././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftopackageel/RUN.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftopackageel/RUN.a0000700000175000017500000000365714773714155033027 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Source Operand, element of package by Ref returned from the called Method", TCLC, 0x0B, W010)) { OPR8 () } FTTT () ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftopackageel/MAIN.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftopackageel/MAIN.0000700000175000017500000000436614773714154032743 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("oreftopackageel", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/oreftopackageel/oreftopackageel.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ Y500 = Ones STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/oreftopackageel/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftopackageel/Makefileacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftopackageel/Makef0000700000175000017500000000025014773714154033150 0ustar ivanhuivanhu# oreftopackageel AMLMOD= oreftopackageel COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftopackageel/oreftopackageel.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/oreftopackageel/oreft0000700000175000017500000421661214773714154033263 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to the Objects * addressed by immediately returned from the called Method * indexed reference */ Name (Z119, 0x77) Method (M61A, 0, Serialized) { /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M640, 1, NotSerialized) { /* LEqual */ Local0 = ("FE7CB391D650A284" == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("fE7CB391D650A284" == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS4 == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS5 == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x05) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("FE7CB391D650A284" > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("fE7CB391D650A284" > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("FE7CB391D650A28 " > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("FE7CB391D650A284q" > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS4 > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS5 > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x05) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("FE7CB391D650A284" >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("fE7CB391D650A284" >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("FE7CB391D650A28 " >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("FE7CB391D650A284q" >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS4 >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS5 >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x05) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("FE7CB391D650A284" < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("fE7CB391D650A284" < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("FE7CB391D650A28 " < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("FE7CB391D650A284q" < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS4 < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS5 < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x05) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("FE7CB391D650A284" <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("fE7CB391D650A284" <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("FE7CB391D650A28 " <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("FE7CB391D650A284q" <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS4 <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS5 <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x05) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("FE7CB391D650A284" != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("fE7CB391D650A284" != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("FE7CB391D650A28 " != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("FE7CB391D650A284q" != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS4 != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS5 != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x05) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x51, Local0, Ones) } } Method (M320, 1, NotSerialized) { /* LEqual */ Local0 = ("C179B3FE" == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("c179B3FE" == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS3 == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS2 == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x02) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("C179B3FE" > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("c179B3FE" > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("C179B3F " > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("C179B3FEq" > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS3 > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS2 > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x02) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("C179B3FE" >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("c179B3FE" >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("C179B3F " >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("C179B3FEq" >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS3 >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS2 >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x02) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("C179B3FE" < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("c179B3FE" < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("C179B3F " < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("C179B3FEq" < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS3 < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS2 < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x02) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("C179B3FE" <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("c179B3FE" <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("C179B3F " <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("C179B3FEq" <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS3 <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS2 <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x02) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("C179B3FE" != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("c179B3FE" != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("C179B3F " != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("C179B3FEq" != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS3 != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS2 != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x02) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M641, 1, NotSerialized) { Local0 = Concatenate ("", DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x00, Local0, BS10) Local0 = Concatenate ("1234q", DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x01, Local0, BS11) Local0 = Concatenate (AUS0, DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x02, Local0, BS10) Local0 = Concatenate (AUS1, DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x03, Local0, BS11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x04, Local0, BS10) Local0 = Concatenate (DerefOf (RefOf (AUS1)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x05, Local0, BS11) } Local0 = Concatenate (DerefOf (PAUS [0x00]), DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x06, Local0, BS10) Local0 = Concatenate (DerefOf (PAUS [0x01]), DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x07, Local0, BS11) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x08, Local0, BS10) Local0 = Concatenate (M601 (0x02, 0x01), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x09, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0A, Local0, BS10) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0B, Local0, BS11) } Concatenate ("", DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BS10) Concatenate ("1234q", DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BS11) Concatenate (AUS0, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BS10) Concatenate (AUS1, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BS11) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BS10) Concatenate (DerefOf (RefOf (AUS1)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BS11) } Concatenate (DerefOf (PAUS [0x00]), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BS10) Concatenate (DerefOf (PAUS [0x01]), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BS11) /* Method returns String */ Concatenate (M601 (0x02, 0x00), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BS10) Concatenate (M601 (0x02, 0x01), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BS10) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BS11) } } Method (M321, 1, NotSerialized) { Local0 = Concatenate ("", DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x00, Local0, BS12) Local0 = Concatenate ("1234q", DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x01, Local0, BS13) Local0 = Concatenate (AUS0, DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x02, Local0, BS12) Local0 = Concatenate (AUS1, DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x03, Local0, BS13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x04, Local0, BS12) Local0 = Concatenate (DerefOf (RefOf (AUS1)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x05, Local0, BS13) } Local0 = Concatenate (DerefOf (PAUS [0x00]), DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x06, Local0, BS12) Local0 = Concatenate (DerefOf (PAUS [0x01]), DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x07, Local0, BS13) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x08, Local0, BS12) Local0 = Concatenate (M601 (0x02, 0x01), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x09, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0A, Local0, BS12) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0B, Local0, BS13) } Local0 = Concatenate ("", DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0C, Local0, BS14) Local0 = Concatenate ("1234q", DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0D, Local0, BS15) Concatenate ("", DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BS12) Concatenate ("1234q", DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BS13) Concatenate (AUS0, DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BS12) Concatenate (AUS1, DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BS13) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BS12) Concatenate (DerefOf (RefOf (AUS1)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BS13) } Concatenate (DerefOf (PAUS [0x00]), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BS12) Concatenate (DerefOf (PAUS [0x01]), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BS13) /* Method returns String */ Concatenate (M601 (0x02, 0x00), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BS12) Concatenate (M601 (0x02, 0x01), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x18, Local0, BS12) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x19, Local0, BS13) } Concatenate ("", DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x1A, Local0, BS14) Concatenate ("1234q", DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x1B, Local0, BS15) } /* Method(m642, 1) */ /* Method(m322, 1) */ /* Method(m643, 1) */ /* Method(m323, 1) */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ Method (M645, 1, NotSerialized) { Local0 = Concatenate (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { Local0 = Concatenate (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01))) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)) ) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01))) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x0C, Local0, BB14) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)) ) M600 (Arg0, 0x0D, Local0, BB15) Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x1A, Local0, BB14) Concatenate (Buffer (0x02) { "Z" }, DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), Local0) M600 (Arg0, 0x1B, Local0, BB15) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ Method (M647, 1, NotSerialized) { Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (RefOf (AUI0)) ) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (RefOf (AUI7)) ) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), DerefOf (RefOf (AUI0)) ) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (PAUI [ 0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (PAUI [ 0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), DerefOf (PAUI [ 0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), M601 (0x01, 0x00) ) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), M601 (0x01, 0x07) ) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), M601 (0x01, 0x00) ) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (DerefOf (M604 (0x02, 0x01, 0x0D, 0x01)), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (DerefOf (M604 (0x02, 0x01, 0x0E, 0x01)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (RefOf (AUI0)) ) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (RefOf (AUI7)) ) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (RefOf (AUI0)) ) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (PAUI [ 0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (PAUI [ 0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (PAUI [ 0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), M601 (0x01, 0x00) ) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), M601 (0x01, 0x07) ) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), M601 (0x01, 0x00) ) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (DerefOf (M604 (0x02, 0x01, 0x0C, 0x01)), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ Method (M648, 1, NotSerialized) { Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), 0x01, 0x08) M600 (Arg0, 0x01, Local0, BB30) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), AUI5, AUIB) M600 (Arg0, 0x02, Local0, BB1D) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), AUI6, AUIA) M600 (Arg0, 0x03, Local0, BB30) If (Y078) { Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x04, Local0, BB1D) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA))) M600 (Arg0, 0x05, Local0, BB30) } Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), DerefOf (PAUI [ 0x05]), DerefOf (PAUI [0x0B])) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (PAUI [ 0x06]), DerefOf (PAUI [0x0A])) M600 (Arg0, 0x07, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x08, Local0, BB1D) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), M601 (0x01, 0x06), M601 (0x01, 0x0A)) M600 (Arg0, 0x09, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B))) M600 (Arg0, 0x0A, Local0, BB1D) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A))) M600 (Arg0, 0x0B, Local0, BB30) } Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), 0x00, 0x09, Local0) M600 (Arg0, 0x0C, Local0, BB1D) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), 0x01, 0x08, Local0) M600 (Arg0, 0x0D, Local0, BB30) Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), AUI5, AUIB, Local0) M600 (Arg0, 0x0E, Local0, BB1D) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), AUI6, AUIA, Local0) M600 (Arg0, 0x0F, Local0, BB30) If (Y078) { Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), DerefOf (RefOf (AUI5)), DerefOf (RefOf ( AUIB)), Local0) M600 (Arg0, 0x10, Local0, BB1D) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (RefOf (AUI6)), DerefOf (RefOf ( AUIA)), Local0) M600 (Arg0, 0x11, Local0, BB30) } Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (PAUI [0x06]), DerefOf (PAUI [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB30) /* Method returns Index and Length parameters */ Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x14, Local0, BB1D) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x15, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (DerefOf (M604 (0x02, 0x01, 0x04, 0x01)), DerefOf (M601 (0x01, 0x05)), DerefOf ( M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x16, Local0, BB1D) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (M601 (0x01, 0x06)), DerefOf ( M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x17, Local0, BB30) } } Method (M328, 1, NotSerialized) { Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), 0x01, 0x04) M600 (Arg0, 0x01, Local0, BB31) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), AUI5, AUI9) M600 (Arg0, 0x02, Local0, BB1C) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), AUI6, AUI8) M600 (Arg0, 0x03, Local0, BB31) If (Y078) { Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x04, Local0, BB1C) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8))) M600 (Arg0, 0x05, Local0, BB31) } Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), DerefOf (PAUI [ 0x05]), DerefOf (PAUI [0x09])) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (PAUI [ 0x06]), DerefOf (PAUI [0x08])) M600 (Arg0, 0x07, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x08, Local0, BB1C) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), M601 (0x01, 0x06), M601 (0x01, 0x08)) M600 (Arg0, 0x09, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09))) M600 (Arg0, 0x0A, Local0, BB1C) Local0 = Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08))) M600 (Arg0, 0x0B, Local0, BB31) } Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), 0x00, 0x05, Local0) M600 (Arg0, 0x0C, Local0, BB1C) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), 0x01, 0x04, Local0) M600 (Arg0, 0x0D, Local0, BB31) Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), AUI5, AUI9, Local0) M600 (Arg0, 0x0E, Local0, BB1C) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), AUI6, AUI8, Local0) M600 (Arg0, 0x0F, Local0, BB31) If (Y078) { Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), DerefOf (RefOf (AUI5)), DerefOf (RefOf ( AUI9)), Local0) M600 (Arg0, 0x10, Local0, BB1C) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (RefOf (AUI6)), DerefOf (RefOf ( AUI8)), Local0) M600 (Arg0, 0x11, Local0, BB31) } Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (PAUI [0x06]), DerefOf (PAUI [0x08]), Local0) M600 (Arg0, 0x13, Local0, BB31) /* Method returns Index and Length parameters */ Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x14, Local0, BB1C) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x15, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (DerefOf (M604 (0x02, 0x01, 0x03, 0x01)), DerefOf (M601 (0x01, 0x05)), DerefOf ( M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x16, Local0, BB1C) Mid (DerefOf (M604 (0x02, 0x01, 0x0F, 0x01)), DerefOf (M601 (0x01, 0x06)), DerefOf ( M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x17, Local0, BB31) } } /* Method(m649, 1) */ /* Method(m329, 1) */ /* Method(m64a, 1) */ /* Method(m32a, 1) */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (M604 (0x02, 0x02, 0x01, 0x01))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (M604 (0x02, 0x02, 0x05, 0x01))-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = DerefOf (M604 (0x02, 0x02, 0x01, 0x01))++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (M604 (0x02, 0x02, 0x05, 0x01))++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (M604 (0x02, 0x02, 0x01, 0x01))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (M604 (0x02, 0x02, 0x04, 0x01))-- M600 (Arg0, 0x01, Local0, BI14) } /* Increment */ If (Y501) { Local0 = DerefOf (M604 (0x02, 0x02, 0x01, 0x01))++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (M604 (0x02, 0x02, 0x04, 0x01))++ M600 (Arg0, 0x03, Local0, BI15) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x07, Local0, 0x02) /* Not */ Store (~DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Method (M000, 1, NotSerialized) { Local0 = !DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) M600 (Arg0, 0x00, Local0, Ones) Local0 = !DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) M600 (Arg0, 0x03, Local0, Zero) } } /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (M604 (0x02, 0x02, 0x15, 0x01))) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (M604 (0x02, 0x02, 0x15, 0x01)), Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x04, Local0, 0x0801) /* Error of iASL on constant folding Store(ToBCD(Derefof(m604(2, 2, 22, 1))), Local0) m600(arg0, 5, Local0, 0x3789012345678901) */ ToBCD (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (M604 (0x02, 0x02, 0x16, 0x01)), Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (M604 (0x02, 0x02, 0x17, 0x01))) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (M604 (0x02, 0x02, 0x17, 0x01)), Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (DerefOf (M604 (0x02, 0x02, 0x18, 0x01))) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (M604 (0x02, 0x02, 0x18, 0x01)), Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M001, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M002, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M003, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FF) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FF) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FF) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FF) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0x01 + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FF) Store ((AUI5 + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUI6 + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FF) } Store ((DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FF) } Local0 = (0x00 + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0x01 + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, 0xC179B3FF) Local0 = (AUI5 + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUI6 + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, 0xC179B3FF) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, 0xC179B3FF) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xC179B71F) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xC179B71F) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, 0xC179B71F) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) + DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0xC179B71F) } /* And, common 32-bit/64-bit test */ Method (M004, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M005, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M006, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (PAUI [0x12] )), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (PAUI [0x12] )) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x0320) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x0320) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, 0x0320) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) & DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0x0320) } /* Divide, common 32-bit/64-bit test */ Method (M007, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / DerefOf (PAUI [0x01] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M008, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / DerefOf (PAUI [0x04] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M009, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / 0xC179B3FE), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / AUI3), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / DerefOf (RefOf (AUI3))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / DerefOf (PAUI [0x03] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / M601 (0x01, 0x03)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / DerefOf (M602 (0x01, 0x03, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0xC179B3FE, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUI3, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUI3)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [0x03]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x03), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x03, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xC179B3FE, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI3, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI3)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x03]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x03), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x03, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) / DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x003DD5B7) Divide (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x003DD5B7) } /* Mod, common 32-bit/64-bit test */ Method (M00A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (PAUI [0x10] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (PAUI [0x11] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (PAUI [0x10] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (PAUI [0x11] )) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M00B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (PAUI [0x0D] )), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (PAUI [0x0F] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (PAUI [0x0D] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (PAUI [0x0F] )) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M00C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % 0xC179B3FF), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % 0xC179B3FD), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % AUIC), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % AUIE), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (RefOf (AUIC))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (RefOf (AUIE))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (PAUI [0x0C] )), Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (PAUI [0x0E] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % M601 (0x01, 0x0C)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % M601 (0x01, 0x0E)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (M602 (0x01, 0x0C, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (M602 (0x01, 0x0E, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % 0xC179B3FF) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % 0xC179B3FD) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % AUIC) /* \AUIC */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % AUIE) /* \AUIE */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (RefOf (AUIC))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (RefOf (AUIE))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (PAUI [0x0C] )) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (PAUI [0x0E] )) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % M601 (0x01, 0x0C)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % M601 (0x01, 0x0E)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (M602 (0x01, 0x0C, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (M602 (0x01, 0x0E, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xC179B3FF % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xC179B3FD % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FD) Store ((AUIC % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIE % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (AUIC)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIE)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FD) } Store ((DerefOf (PAUI [0x0C]) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0E]) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M601 (0x01, 0x0C) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0E) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0C, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0E, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FD) } Local0 = (0xC179B3FF % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xC179B3FD % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, 0xC179B3FD) Local0 = (AUIC % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIE % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (AUIC)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIE)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, 0xC179B3FD) } Local0 = (DerefOf (PAUI [0x0C]) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0E]) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0C) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0E) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, 0xC179B3FD) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x0267) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) % DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0x0267) } /* Multiply, common 32-bit/64-bit test */ Method (M00D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M00E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M00F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x5DCC2DBE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x5DCC2DBE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, 0x5DCC2DBE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) * DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0x5DCC2DBE) } /* NAnd, common 32-bit/64-bit test */ Method (M010, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUIJ)) ) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [ 0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x13) ) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M011, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUIJ)) ) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [ 0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x13) ) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M012, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x3E864C01) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUII) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUII)) ) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [ 0x12])) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x12) ) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x3E864C01) NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x3E864C01) } NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x19, Local0, 0x3E864C01) Local0 = NAnd (AUI5, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x23, Local0, 0x3E864C01) } NAnd (0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x3E864C01) NAnd (AUI5, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x3E864C01) } NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x30, Local0, 0xFFFFFCDF) Local0 = NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x31, Local0, 0xFFFFFCDF) NAnd (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFCDF) NAnd (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFCDF) } /* NOr, common 32-bit/64-bit test */ Method (M013, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUIJ)) ) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [ 0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x13) ) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M014, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUIJ)) ) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [ 0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x13) ) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M015, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUII)) ) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [ 0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x12) ) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x3E864C01) NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x3E864C01) NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x3E864C01) NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x3E864C01) NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x3E864C01) NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x3E864C01) NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x18, Local0, 0x3E864C01) Local0 = NOr (0xFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1A, Local0, 0x3E864C01) Local0 = NOr (AUII, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (AUII)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1E, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PAUI [0x12]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x20, Local0, 0x3E864C01) Local0 = NOr (M601 (0x01, 0x12), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x22, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0x3E864C01) NOr (0xFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0x3E864C01) NOr (AUII, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0x3E864C01) NOr (DerefOf (RefOf (AUII)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0x3E864C01) NOr (DerefOf (PAUI [0x12]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0x3E864C01) NOr (M601 (0x01, 0x12), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0x3E864C01) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x30, Local0, 0x3E864C00) Local0 = NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x31, Local0, 0x3E864C00) NOr (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x32, Local0, 0x3E864C00) NOr (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x33, Local0, 0x3E864C00) } /* Or, common 32-bit/64-bit test */ Method (M016, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M017, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M018, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (PAUI [0x12] )), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (PAUI [0x12] )) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xC179B3FF) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xC179B3FF) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, 0xC179B3FF) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) | DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0xC179B3FF) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M019, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M01A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M01B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x82F367FC) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x82F367FC) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x82F367FC) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x82F367FC) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x82F367FC) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << 0x01) M600 (Arg0, 0x0D, Local0, 0x82F367FC) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x82F367FC) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x82F367FC) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x82F367FC) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x82F367FC) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xCD9FF000) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) << DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x33, Local0, 0xCD9FF000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M01C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2F, Local0, 0x00182F36) } } /* ShiftRight, 64-bit */ Method (M01D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M01E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x60BCD9FF) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x60BCD9FF) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x60BCD9FF) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x60BCD9FF) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x60BCD9FF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x60BCD9FF) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x60BCD9FF) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x60BCD9FF) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x60BCD9FF) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x60BCD9FF) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x2F, Local0, 0x00182F36) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x00182F36) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) >> DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x33, Local0, 0x00182F36) } /* Subtract, common 32-bit/64-bit test */ Method (M01F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M020, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M021, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FD) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FD) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FD) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FD) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FD) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FD) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x3E864C02) Store ((0x01 - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C03) Store ((AUI5 - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x3E864C02) Store ((AUI6 - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C03) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x3E864C02) Store ((DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C03) } Store ((DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x3E864C02) Store ((DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C03) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x3E864C02) Store ((M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x3E864C02) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C03) } Local0 = (0x00 - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, 0x3E864C02) Local0 = (0x01 - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, 0x3E864C03) Local0 = (AUI5 - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, 0x3E864C02) Local0 = (AUI6 - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, 0x3E864C03) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, 0x3E864C02) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, 0x3E864C03) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, 0x3E864C02) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, 0x3E864C03) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, 0x3E864C02) Local0 = (M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, 0x3E864C02) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, 0x3E864C03) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x3E864F23) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DD) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, 0x3E864F23) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) - DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0xC179B0DD) } /* XOr, common 32-bit/64-bit test */ Method (M022, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M023, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M024, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x3E864C01) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (PAUI [0x12] )), Local0) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x3E864C01) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x3E864C01) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (PAUI [0x12] )) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C01) Store ((AUI5 ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C01) } Local0 = (0x00 ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, 0x3E864C01) Local0 = (AUI5 ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, 0x3E864C01) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xC179B0DF) Store ((DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DF) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, 0xC179B0DF) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ^ DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, 0xC179B0DF) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m002", Local0) SRMT (Local0) M002 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m005", Local0) SRMT (Local0) M005 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m008", Local0) SRMT (Local0) M008 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00b", Local0) SRMT (Local0) M00B (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00e", Local0) SRMT (Local0) M00E (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) M010 (Local0) Concatenate (Arg0, "-m011", Local0) SRMT (Local0) M011 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) M013 (Local0) Concatenate (Arg0, "-m014", Local0) SRMT (Local0) M014 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) M016 (Local0) Concatenate (Arg0, "-m017", Local0) SRMT (Local0) M017 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01a", Local0) SRMT (Local0) M01A (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01d", Local0) SRMT (Local0) M01D (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) M01F (Local0) Concatenate (Arg0, "-m020", Local0) SRMT (Local0) M020 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) M022 (Local0) Concatenate (Arg0, "-m023", Local0) SRMT (Local0) M023 (Local0) } Method (M32D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m003", Local0) SRMT (Local0) M003 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m006", Local0) SRMT (Local0) M006 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m009", Local0) SRMT (Local0) M009 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00c", Local0) SRMT (Local0) M00C (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00f", Local0) SRMT (Local0) M00F (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) If (Y119) { M010 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m012", Local0) SRMT (Local0) M012 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) If (Y119) { M013 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m015", Local0) SRMT (Local0) M015 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) If (Y119) { M016 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m018", Local0) SRMT (Local0) M018 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01b", Local0) SRMT (Local0) M01B (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01e", Local0) SRMT (Local0) M01E (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) If (Y119) { M01F (Local0) } Else { BLCK () } Concatenate (Arg0, "-m021", Local0) SRMT (Local0) M021 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) If (Y119) { M022 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m024", Local0) SRMT (Local0) M024 (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M025, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M026, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M027, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) && DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M028, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M029, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M02A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (M604 (0x02, 0x02, 0x00, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) || DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } Method (M64E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m026", Local0) SRMT (Local0) M026 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m029", Local0) SRMT (Local0) M029 (Local0) } Method (M32E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m027", Local0) SRMT (Local0) M027 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m02a", Local0) SRMT (Local0) M02A (Local0) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64F, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32F, 1, NotSerialized) { /* LEqual */ Local0 = (0xC179B3FE == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xC179B3FF == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xC179B3FD == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI3 == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIC == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIE == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0C) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0E) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xC179B3FE > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xC179B3FF > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xC179B3FD > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI3 > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIC > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIE > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0C) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0E) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xC179B3FE >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xC179B3FF >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xC179B3FD >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI3 >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIC >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIE >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0C) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0E) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xC179B3FE < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xC179B3FF < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xC179B3FD < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI3 < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIC < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIE < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0C) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0E) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xC179B3FE <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xC179B3FF <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xC179B3FD <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI3 <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIC <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIE <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0C) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0E) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xC179B3FE != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xC179B3FF != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xC179B3FD != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI3 != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIC != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIE != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0C) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0E) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M02B, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x6B, Local0, Ones) } } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64G, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32G, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (AUI1, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x03, Local0, BB24) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x05, Local0, BB24) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x07, Local0, BB24) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x09, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0B, Local0, BB24) } Concatenate (0x0321, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB24) Concatenate (AUI1, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB24) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB24) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BB24) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x18, Local0, BB24) } } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M02C, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)) ) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)) ) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)) ) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)) ) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)) ) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Method (M02D, 1, NotSerialized) { Store (AUS6 [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local3) CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local3) CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local3) CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (M604 (0x02, 0x02, 0x14, 0x01))] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M02E, 1, NotSerialized) { CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) If (F64) { Fatal (0xFF, 0xFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) } Else { Fatal (0xFF, 0xFFFFFFFF, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) } CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) } /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M02F, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x05, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 ( 0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x02, 0x14, 0x01)), DerefOf (M604 (0x02, 0x02, 0x04, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Method (M030, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 ( 0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 ( 0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 ( 0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 ( 0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 (0x02, 0x02, 0x14, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64j, 1) */ /* Method(m32j, 1) */ /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M031, 1, NotSerialized) { CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z119, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (DerefOf (M604 (0x02, 0x02, 0x1B, 0x01))) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z119, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator ??? */ Method (M032, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Derefof(m604(2, 2, 1, 1))) */ CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z119, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Method (M033, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z119, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M034, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (M604 (0x02, 0x02, 0x04, 0x01))) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (M604 (0x02, 0x02, 0x05, 0x01))) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (DerefOf (M604 (0x02, 0x02, 0x00, 0x01))) { IST0 = 0x00 Break } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64k, 1) */ /* Method(m32k, 1) */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M035, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x05) { "0321" } == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB7 == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x05) { "0321" } > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB7 > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB8 > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x08) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) > DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x05) { "0321" } >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB7 >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB8 >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x08) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) >= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x05) { "0321" } < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB7 < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB8 < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x08) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) < DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x05) { "0321" } <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB7 <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB8 <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x08) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) <= DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x05) { "0321" } != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB7 != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB8 != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x08) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) != DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = (Buffer (0x01) { 0x00 // . } == DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x52, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } == DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x53, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } > DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x54, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } > DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x55, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } >= DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x56, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } > DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } < DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } < DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x59, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } <= DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x5A, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } <= DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x5B, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } != DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x5C, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } != DerefOf (M604 (0x02, 0x02, 0x0C, 0x01))) M600 (Arg0, 0x5D, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } == DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } == DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x5F, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } > DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } >= DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x62, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x63, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } < DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x64, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } < DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x65, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } <= DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x66, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } <= DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x67, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } != DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x68, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } != DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x69, Local0, Ones) } /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M036, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x00, Local0, BB29) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x01, Local0, BB2A) Local0 = Concatenate (AUB0, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x02, Local0, BB29) Local0 = Concatenate (AUB1, DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x03, Local0, BB2A) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x04, Local0, BB29) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x05, Local0, BB2A) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x06, Local0, BB29) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x07, Local0, BB2A) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x08, Local0, BB29) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)) ) M600 (Arg0, 0x09, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0A, Local0, BB29) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01))) M600 (Arg0, 0x0B, Local0, BB2A) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BB29) Concatenate (Buffer (0x02) { "Z" }, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB2A) Concatenate (AUB0, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BB29) Concatenate (AUB1, DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB2A) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BB29) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB2A) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BB29) Concatenate (DerefOf (PAUB [0x01]), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BB2A) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BB29) Concatenate (M601 (0x03, 0x01), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BB29) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB2A) } /* Boundary Cases */ Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (M604 (0x02, 0x02, 0x0C, 0x01)) ) M600 (Arg0, 0x18, Local0, BB2B) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (M604 (0x02, 0x02, 0x0C, 0x01)) ) M600 (Arg0, 0x19, Local0, BB2C) Local1 = 0x00 Local0 = Concatenate (Buffer (Local1){}, DerefOf (M604 (0x02, 0x02, 0x0E, 0x01))) M600 (Arg0, 0x1A, Local0, BB2D) } /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character, that is impossible to show */ /* with an immediate String constant). */ Method (M037, 1, NotSerialized) { Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Ones) M600 (Arg0, 0x00, Local0, BS20) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0x03) M600 (Arg0, 0x01, Local0, BS21) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI0) M600 (Arg0, 0x02, Local0, BS20) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI7) M600 (Arg0, 0x03, Local0, BS21) If (Y078) { Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI0)) ) M600 (Arg0, 0x04, Local0, BS20) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI7)) ) M600 (Arg0, 0x05, Local0, BS21) } Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [ 0x00])) M600 (Arg0, 0x06, Local0, BS20) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [ 0x07])) M600 (Arg0, 0x07, Local0, BS21) /* Method returns Length parameter */ Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x00) ) M600 (Arg0, 0x08, Local0, BS20) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x07) ) M600 (Arg0, 0x09, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0A, Local0, BS20) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x0B, Local0, BS21) } ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), Ones, Local0) M600 (Arg0, 0x0C, Local0, BS20) ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), 0x03, Local0) M600 (Arg0, 0x0D, Local0, BS21) ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI0, Local0) M600 (Arg0, 0x0E, Local0, BS20) ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), AUI7, Local0) M600 (Arg0, 0x0F, Local0, BS21) If (Y078) { ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x10, Local0, BS20) ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x11, Local0, BS21) } ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x12, Local0, BS20) ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x13, Local0, BS21) /* Method returns Length parameter */ ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS20) ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x15, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x16, Local0, BS20) ToString (DerefOf (M604 (0x02, 0x02, 0x01, 0x01)), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x17, Local0, BS21) } /* Boundary Cases */ Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x0C, 0x01)), Ones) M600 (Arg0, 0x18, Local0, BS22) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x0C, 0x01)), 0x03) M600 (Arg0, 0x19, Local0, BS22) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x0E, 0x01)), Ones) M600 (Arg0, 0x1A, Local0, BS23) Local0 = ToString (DerefOf (M604 (0x02, 0x02, 0x0E, 0x01)), 0x03) M600 (Arg0, 0x1B, Local0, BS24) } /* Method(m038, 1) */ /* Method(m039, 1) */ /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (M604 (0x02, 0x03, 0x06, 0x01))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = DerefOf (M604 (0x02, 0x03, 0x06, 0x01))++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (M604 (0x02, 0x03, 0x06, 0x01))-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))-- M600 (Arg0, 0x01, Local0, BI18) } /* Increment */ If (Y501) { Local0 = DerefOf (M604 (0x02, 0x03, 0x06, 0x01))++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))++ M600 (Arg0, 0x03, Local0, BI19) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { Local0 = !DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) M600 (Arg0, 0x00, Local0, Ones) Local0 = !DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (M604 (0x02, 0x03, 0x0F, 0x01))) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (M604 (0x02, 0x03, 0x0F, 0x01)), Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (DerefOf (M604 (0x02, 0x03, 0x10, 0x01))) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (M604 (0x02, 0x03, 0x10, 0x01)), Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (M604 (0x02, 0x03, 0x11, 0x01))) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (M604 (0x02, 0x03, 0x11, 0x01)), Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (DerefOf (M604 (0x02, 0x03, 0x12, 0x01))) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (M604 (0x02, 0x03, 0x12, 0x01)), Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) + DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (PAUI [0x12] )), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (PAUI [0x12] )) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) & DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / DerefOf (PAUI [0x01] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (PAUI [0x04] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (PAUI [0x14] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) / DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (PAUI [0x10] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (PAUI [0x11] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (PAUI [0x10] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (PAUI [0x11] )) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (PAUI [0x0D] )), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (PAUI [0x0F] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (PAUI [0x0D] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (PAUI [0x0F] )) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (PAUI [0x15] )), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (PAUI [0x16] )), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (PAUI [0x15] )) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (PAUI [0x16] )) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) % DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) * DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUIJ)) ) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [ 0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x13) ) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUIJ)) ) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [ 0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x13) ) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUII)) ) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [ 0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x12) ) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUIJ)) ) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [ 0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x13) ) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUIJ)) ) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [ 0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x13) ) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI5)) ) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUII)) ) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [ 0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x05) ) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x12) ) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (PAUI [0x12] )), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (PAUI [0x12] )) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) | DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) << DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) >> DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (PAUI [0x06] )), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (PAUI [0x06] )) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) - DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (PAUI [0x13] )), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (PAUI [0x13] )) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (PAUI [0x05] )), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (PAUI [0x12] )), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (PAUI [0x05] )) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (PAUI [0x12] )) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ^ DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) && DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (PAUI [ 0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (PAUI [ 0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (M604 (0x02, 0x03, 0x00, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) || DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { /* LEqual */ Local0 = (0xD650A284 == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)) ) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)) ) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)) ) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)) ) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Method (M067, 1, NotSerialized) { Store (AUS6 [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local3) CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local3) CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local3) CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] CH04 (Arg0, 0x00, 0x55, Z119, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) If (F64) { Fatal (0xFF, 0xFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) } Else { Fatal (0xFF, 0xFFFFFFFF, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) } CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) } /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 ( 0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0E, 0x01)), DerefOf (M604 (0x02, 0x03, 0x0A, 0x01)), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 ( 0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 ( 0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 ( 0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 ( 0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (M604 (0x02, 0x03, 0x0E, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64t, 1) */ /* Method(m32t, 1) */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z119, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (DerefOf (M604 (0x02, 0x03, 0x13, 0x01))) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z119, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Derefof(m604(2, 3, 6, 1))) */ CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z119, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) CH03 (Arg0, Z119, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z119, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (M604 (0x02, 0x03, 0x0A, 0x01))) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (DerefOf (M604 (0x02, 0x03, 0x00, 0x01))) { IST0 = 0x00 Break } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64u, 1) */ /* Method(m32u, 1) */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M06F, 1, NotSerialized) { /* LEqual */ Local0 = ("21 03 00" == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("21 03 01" == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS9 == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUSA == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x0A) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) == DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("21 03 00" > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("21 03 01" > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("21 03 0 " > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("21 03 00q" > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS9 > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUSA > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x0A) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) > DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("21 03 00" >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("21 03 01" >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("21 03 0 " >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("21 03 00q" >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS9 >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUSA >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x0A) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) >= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("21 03 00" < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("21 03 01" < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("21 03 0 " < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("21 03 00q" < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS9 < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUSA < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x0A) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) < DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("21 03 00" <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("21 03 01" <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("21 03 0 " <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("21 03 00q" <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS9 <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUSA <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x0A) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) <= DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("21 03 00" != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("21 03 01" != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("21 03 0 " != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("21 03 00q" != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS9 != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUSA != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x0A) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) != DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" == DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x52, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" == DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x53, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" > DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x54, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" > DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x55, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" >= DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x56, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" >= DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x57, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" < DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x58, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" < DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x59, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" <= DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x5A, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" <= DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x5B, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" != DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x5C, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" != DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x5D, Local0, Ones) } /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M070, 1, NotSerialized) { Local0 = Concatenate ("", DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x00, Local0, BS25) Local0 = Concatenate ("1234q", DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x01, Local0, BS26) Local0 = Concatenate (AUS0, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x02, Local0, BS25) Local0 = Concatenate (AUS1, DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x03, Local0, BS26) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x04, Local0, BS25) Local0 = Concatenate (DerefOf (RefOf (AUS1)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x05, Local0, BS26) } Local0 = Concatenate (DerefOf (PAUS [0x00]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x06, Local0, BS25) Local0 = Concatenate (DerefOf (PAUS [0x01]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x07, Local0, BS26) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x08, Local0, BS25) Local0 = Concatenate (M601 (0x02, 0x01), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)) ) M600 (Arg0, 0x09, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0A, Local0, BS25) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, BS26) } Concatenate ("", DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0C, Local0, BS25) Concatenate ("1234q", DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0D, Local0, BS26) Concatenate (AUS0, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0E, Local0, BS25) Concatenate (AUS1, DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x0F, Local0, BS26) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x10, Local0, BS25) Concatenate (DerefOf (RefOf (AUS1)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x11, Local0, BS26) } Concatenate (DerefOf (PAUS [0x00]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x12, Local0, BS25) Concatenate (DerefOf (PAUS [0x01]), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x13, Local0, BS26) /* Method returns String */ Concatenate (M601 (0x02, 0x00), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x14, Local0, BS25) Concatenate (M601 (0x02, 0x01), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x15, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x16, Local0, BS25) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (M604 (0x02, 0x03, 0x06, 0x01)), Local0) M600 (Arg0, 0x17, Local0, BS26) } /* Boundary Cases */ Local0 = Concatenate ("", DerefOf (M604 (0x02, 0x03, 0x0C, 0x01))) M600 (Arg0, 0x18, Local0, BS27) } /* Method(m071, 1) */ /* Method(m072, 1) */ /* * Begin of the test body */ /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ If (F64) { Concatenate (__METHOD__, "-m640", Local0) SRMT (Local0) M640 (Local0) } Else { Concatenate (__METHOD__, "-m320", Local0) SRMT (Local0) M320 (Local0) } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m641", Local0) SRMT (Local0) M641 (Local0) } Else { Concatenate (__METHOD__, "-m321", Local0) SRMT (Local0) M321 (Local0) } /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64b", Local0) SRMT (Local0) M64B (Local0) } Else { Concatenate (__METHOD__, "-m32b", Local0) SRMT (Local0) M32B (Local0) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m000", Local0) SRMT (Local0) M000 (Local0) /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64c", Local0) SRMT (Local0) M64C (Local0) } Else { Concatenate (__METHOD__, "-m32c", Local0) SRMT (Local0) M32C (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64D (Concatenate (__METHOD__, "-m64d")) } Else { M32D (Concatenate (__METHOD__, "-m32d")) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64E (Concatenate (__METHOD__, "-m64e")) } Else { M32E (Concatenate (__METHOD__, "-m32e")) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m02b", Local0) SRMT (Local0) M02B (Local0) If (F64) { Concatenate (__METHOD__, "-m64f", Local0) SRMT (Local0) M64F (Local0) } Else { Concatenate (__METHOD__, "-m32f", Local0) SRMT (Local0) M32F (Local0) } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64g", Local0) SRMT (Local0) M64G (Local0) } Else { Concatenate (__METHOD__, "-m32g", Local0) SRMT (Local0) M32G (Local0) } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m02c", Local0) SRMT (Local0) M02C (Local0) If (F64) { Concatenate (__METHOD__, "-m64h", Local0) SRMT (Local0) M64H (Local0) } Else { Concatenate (__METHOD__, "-m32h", Local0) SRMT (Local0) M32H (Local0) } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m02d", Local0) SRMT (Local0) M02D (Local0) /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m02e", Local0) SRMT (Local0) M02E (Local0) /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m02f", Local0) SRMT (Local0) M02F (Local0) If (F64) { Concatenate (__METHOD__, "-m64i", Local0) SRMT (Local0) M64I (Local0) } Else { Concatenate (__METHOD__, "-m32i", Local0) SRMT (Local0) M32I (Local0) } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m030", Local0) SRMT (Local0) M030 (Local0) /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m031", Local0) SRMT (Local0) M031 (Local0) /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m032", Local0) SRMT(Local0) m032(Local0) */ /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m033", Local0) SRMT (Local0) M033 (Local0) /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m034", Local0) SRMT (Local0) If (Y111) { M034 (Local0) } Else { BLCK () } /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m035", Local0) SRMT (Local0) M035 (Local0) /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Concatenate (__METHOD__, "-m036", Local0) SRMT (Local0) M036 (Local0) /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character) */ Concatenate (__METHOD__, "-m037", Local0) SRMT (Local0) M037 (Local0) /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m06c", Local0) SRMT(Local0) m06c(Local0) */ /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) If (Y111) { M06E (Local0) } Else { BLCK () } /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Concatenate (__METHOD__, "-m06f", Local0) SRMT (Local0) M06F (Local0) /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Concatenate (__METHOD__, "-m070", Local0) SRMT (Local0) M070 (Local0) /* Check consistency of the test Named Objects */ /* in the root Scope of the Global ACPI namespace */ Concatenate (__METHOD__, "-m606", Local0) SRMT (Local0) M606 (Local0) } /* Run-method */ Method (OPR8, 0, NotSerialized) { Debug = "TEST: OPR8, Source Operand" M61A () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/opackageel/0000700000175000017500000000000014773714154031142 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/opackageel/RUN.asl0000700000175000017500000000361214773714154032314 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Source Operand, Package element data", TCLC, 0x08, W010)) { OPR3 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/opackageel/MAIN.asl0000700000175000017500000000431614773714154032376 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("opackageel", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/opackageel/opackageel.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/opackageel/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/opackageel/Makefile0000700000175000017500000000023614773714154032606 0ustar ivanhuivanhu# opackageel AMLMOD= opackageel COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/opackageel/opackageel.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/opackageel/opackageel0000700000175000017500000356451514773714154033206 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to the Elements * of the Packages in the root Scope of the Global ACPI namespace. */ Name (Z090, 0x5A) Method (M615, 0, Serialized) { /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M640, 1, NotSerialized) { /* LEqual */ Local0 = ("FE7CB391D650A284" == DerefOf (PI60 [0x04])) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("fE7CB391D650A284" == DerefOf (PI60 [0x04])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS4 == DerefOf (PI60 [0x04])) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS5 == DerefOf (PI60 [0x04])) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) == DerefOf (PI60 [0x04])) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) == DerefOf (PI60 [0x04])) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) == DerefOf (PI60 [0x04] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) == DerefOf (PI60 [0x04] )) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) == DerefOf (PI60 [0x04])) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x05) == DerefOf (PI60 [0x04])) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) == DerefOf (PI60 [0x04] )) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) == DerefOf (PI60 [0x04] )) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("FE7CB391D650A284" > DerefOf (PI60 [0x04])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("fE7CB391D650A284" > DerefOf (PI60 [0x04])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("FE7CB391D650A28 " > DerefOf (PI60 [0x04])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("FE7CB391D650A284q" > DerefOf (PI60 [0x04])) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS4 > DerefOf (PI60 [0x04])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS5 > DerefOf (PI60 [0x04])) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) > DerefOf (PI60 [0x04])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) > DerefOf (PI60 [0x04])) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) > DerefOf (PI60 [0x04] )) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) > DerefOf (PI60 [0x04] )) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) > DerefOf (PI60 [0x04])) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x05) > DerefOf (PI60 [0x04])) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) > DerefOf (PI60 [0x04] )) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) > DerefOf (PI60 [0x04] )) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("FE7CB391D650A284" >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("fE7CB391D650A284" >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("FE7CB391D650A28 " >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("FE7CB391D650A284q" >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS4 >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS5 >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) >= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) >= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x05) >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) >= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) >= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("FE7CB391D650A284" < DerefOf (PI60 [0x04])) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("fE7CB391D650A284" < DerefOf (PI60 [0x04])) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("FE7CB391D650A28 " < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("FE7CB391D650A284q" < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS4 < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS5 < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) < DerefOf (PI60 [0x04] )) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) < DerefOf (PI60 [0x04] )) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) < DerefOf (PI60 [0x04])) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x05) < DerefOf (PI60 [0x04])) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) < DerefOf (PI60 [0x04] )) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) < DerefOf (PI60 [0x04] )) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("FE7CB391D650A284" <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("fE7CB391D650A284" <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("FE7CB391D650A28 " <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("FE7CB391D650A284q" <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS4 <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS5 <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) <= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) <= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x05) <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) <= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) <= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("FE7CB391D650A284" != DerefOf (PI60 [0x04])) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("fE7CB391D650A284" != DerefOf (PI60 [0x04])) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("FE7CB391D650A28 " != DerefOf (PI60 [0x04])) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("FE7CB391D650A284q" != DerefOf (PI60 [0x04])) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS4 != DerefOf (PI60 [0x04])) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS5 != DerefOf (PI60 [0x04])) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) != DerefOf (PI60 [0x04])) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) != DerefOf (PI60 [0x04])) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) != DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) != DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) != DerefOf (PI60 [0x04])) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x05) != DerefOf (PI60 [0x04])) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) != DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) != DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x51, Local0, Ones) } } Method (M320, 1, NotSerialized) { /* LEqual */ Local0 = ("C179B3FE" == DerefOf (PI60 [0x03])) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("c179B3FE" == DerefOf (PI60 [0x03])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS3 == DerefOf (PI60 [0x03])) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS2 == DerefOf (PI60 [0x03])) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) == DerefOf (PI60 [0x03])) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) == DerefOf (PI60 [0x03])) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) == DerefOf (PI60 [0x03] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) == DerefOf (PI60 [0x03] )) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) == DerefOf (PI60 [0x03])) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x02) == DerefOf (PI60 [0x03])) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) == DerefOf (PI60 [0x03] )) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) == DerefOf (PI60 [0x03] )) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("C179B3FE" > DerefOf (PI60 [0x03])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("c179B3FE" > DerefOf (PI60 [0x03])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("C179B3F " > DerefOf (PI60 [0x03])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("C179B3FEq" > DerefOf (PI60 [0x03])) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS3 > DerefOf (PI60 [0x03])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS2 > DerefOf (PI60 [0x03])) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) > DerefOf (PI60 [0x03])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) > DerefOf (PI60 [0x03])) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) > DerefOf (PI60 [0x03] )) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) > DerefOf (PI60 [0x03] )) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) > DerefOf (PI60 [0x03])) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x02) > DerefOf (PI60 [0x03])) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) > DerefOf (PI60 [0x03] )) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) > DerefOf (PI60 [0x03] )) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("C179B3FE" >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("c179B3FE" >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("C179B3F " >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("C179B3FEq" >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS3 >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS2 >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) >= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) >= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x02) >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) >= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) >= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("C179B3FE" < DerefOf (PI60 [0x03])) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("c179B3FE" < DerefOf (PI60 [0x03])) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("C179B3F " < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("C179B3FEq" < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS3 < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS2 < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) < DerefOf (PI60 [0x03] )) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) < DerefOf (PI60 [0x03] )) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) < DerefOf (PI60 [0x03])) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x02) < DerefOf (PI60 [0x03])) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) < DerefOf (PI60 [0x03] )) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) < DerefOf (PI60 [0x03] )) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("C179B3FE" <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("c179B3FE" <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("C179B3F " <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("C179B3FEq" <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS3 <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS2 <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) <= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) <= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x02) <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) <= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) <= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("C179B3FE" != DerefOf (PI60 [0x03])) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("c179B3FE" != DerefOf (PI60 [0x03])) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("C179B3F " != DerefOf (PI60 [0x03])) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("C179B3FEq" != DerefOf (PI60 [0x03])) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS3 != DerefOf (PI60 [0x03])) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS2 != DerefOf (PI60 [0x03])) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) != DerefOf (PI60 [0x03])) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) != DerefOf (PI60 [0x03])) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) != DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) != DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) != DerefOf (PI60 [0x03])) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x02) != DerefOf (PI60 [0x03])) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) != DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) != DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M641, 1, NotSerialized) { Local0 = Concatenate ("", DerefOf (PI60 [0x04])) M600 (Arg0, 0x00, Local0, BS10) Local0 = Concatenate ("1234q", DerefOf (PI60 [0x04])) M600 (Arg0, 0x01, Local0, BS11) Local0 = Concatenate (AUS0, DerefOf (PI60 [0x04])) M600 (Arg0, 0x02, Local0, BS10) Local0 = Concatenate (AUS1, DerefOf (PI60 [0x04])) M600 (Arg0, 0x03, Local0, BS11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), DerefOf (PI60 [0x04])) M600 (Arg0, 0x04, Local0, BS10) Local0 = Concatenate (DerefOf (RefOf (AUS1)), DerefOf (PI60 [0x04])) M600 (Arg0, 0x05, Local0, BS11) } Local0 = Concatenate (DerefOf (PAUS [0x00]), DerefOf (PI60 [0x04] )) M600 (Arg0, 0x06, Local0, BS10) Local0 = Concatenate (DerefOf (PAUS [0x01]), DerefOf (PI60 [0x04] )) M600 (Arg0, 0x07, Local0, BS11) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), DerefOf (PI60 [0x04])) M600 (Arg0, 0x08, Local0, BS10) Local0 = Concatenate (M601 (0x02, 0x01), DerefOf (PI60 [0x04])) M600 (Arg0, 0x09, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (PI60 [0x04] )) M600 (Arg0, 0x0A, Local0, BS10) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (PI60 [0x04] )) M600 (Arg0, 0x0B, Local0, BS11) } Concatenate ("", DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x0C, Local0, BS10) Concatenate ("1234q", DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x0D, Local0, BS11) Concatenate (AUS0, DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x0E, Local0, BS10) Concatenate (AUS1, DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x0F, Local0, BS11) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x10, Local0, BS10) Concatenate (DerefOf (RefOf (AUS1)), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x11, Local0, BS11) } Concatenate (DerefOf (PAUS [0x00]), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x12, Local0, BS10) Concatenate (DerefOf (PAUS [0x01]), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x13, Local0, BS11) /* Method returns String */ Concatenate (M601 (0x02, 0x00), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x14, Local0, BS10) Concatenate (M601 (0x02, 0x01), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x15, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x16, Local0, BS10) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x17, Local0, BS11) } } Method (M321, 1, NotSerialized) { Local0 = Concatenate ("", DerefOf (PI60 [0x03])) M600 (Arg0, 0x00, Local0, BS12) Local0 = Concatenate ("1234q", DerefOf (PI60 [0x03])) M600 (Arg0, 0x01, Local0, BS13) Local0 = Concatenate (AUS0, DerefOf (PI60 [0x03])) M600 (Arg0, 0x02, Local0, BS12) Local0 = Concatenate (AUS1, DerefOf (PI60 [0x03])) M600 (Arg0, 0x03, Local0, BS13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), DerefOf (PI60 [0x03])) M600 (Arg0, 0x04, Local0, BS12) Local0 = Concatenate (DerefOf (RefOf (AUS1)), DerefOf (PI60 [0x03])) M600 (Arg0, 0x05, Local0, BS13) } Local0 = Concatenate (DerefOf (PAUS [0x00]), DerefOf (PI60 [0x03] )) M600 (Arg0, 0x06, Local0, BS12) Local0 = Concatenate (DerefOf (PAUS [0x01]), DerefOf (PI60 [0x03] )) M600 (Arg0, 0x07, Local0, BS13) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), DerefOf (PI60 [0x03])) M600 (Arg0, 0x08, Local0, BS12) Local0 = Concatenate (M601 (0x02, 0x01), DerefOf (PI60 [0x03])) M600 (Arg0, 0x09, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (PI60 [0x03] )) M600 (Arg0, 0x0A, Local0, BS12) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (PI60 [0x03] )) M600 (Arg0, 0x0B, Local0, BS13) } Local0 = Concatenate ("", DerefOf (PI60 [0x04])) M600 (Arg0, 0x0C, Local0, BS14) Local0 = Concatenate ("1234q", DerefOf (PI60 [0x04])) M600 (Arg0, 0x0D, Local0, BS15) Concatenate ("", DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x0E, Local0, BS12) Concatenate ("1234q", DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x0F, Local0, BS13) Concatenate (AUS0, DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x10, Local0, BS12) Concatenate (AUS1, DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x11, Local0, BS13) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x12, Local0, BS12) Concatenate (DerefOf (RefOf (AUS1)), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x13, Local0, BS13) } Concatenate (DerefOf (PAUS [0x00]), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x14, Local0, BS12) Concatenate (DerefOf (PAUS [0x01]), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x15, Local0, BS13) /* Method returns String */ Concatenate (M601 (0x02, 0x00), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x16, Local0, BS12) Concatenate (M601 (0x02, 0x01), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x17, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x18, Local0, BS12) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x19, Local0, BS13) } Concatenate ("", DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x1A, Local0, BS14) Concatenate ("1234q", DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x1B, Local0, BS15) } /* Method(m642, 1) */ /* Method(m322, 1) */ /* Method(m643, 1) */ /* Method(m323, 1) */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == DerefOf (PI60 [0x04])) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == DerefOf (PI60 [0x04])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == DerefOf (PI60 [0x04])) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == DerefOf (PI60 [0x04])) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == DerefOf (PI60 [0x04])) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (PI60 [0x04])) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == DerefOf (PI60 [0x04] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == DerefOf (PI60 [0x04] )) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == DerefOf (PI60 [0x04])) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == DerefOf (PI60 [0x04])) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == DerefOf (PI60 [0x04] )) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (PI60 [0x04] )) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > DerefOf (PI60 [0x04])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > DerefOf (PI60 [0x04])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > DerefOf (PI60 [0x04])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > DerefOf (PI60 [0x04])) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > DerefOf (PI60 [0x04])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > DerefOf (PI60 [0x04])) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > DerefOf (PI60 [0x04])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > DerefOf (PI60 [0x04])) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > DerefOf (PI60 [0x04] )) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > DerefOf (PI60 [0x04] )) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > DerefOf (PI60 [0x04])) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > DerefOf (PI60 [0x04])) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > DerefOf (PI60 [0x04] )) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > DerefOf (PI60 [0x04] )) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= DerefOf (PI60 [0x04])) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < DerefOf (PI60 [0x04])) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < DerefOf (PI60 [0x04])) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < DerefOf (PI60 [0x04])) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < DerefOf (PI60 [0x04] )) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < DerefOf (PI60 [0x04] )) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < DerefOf (PI60 [0x04])) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < DerefOf (PI60 [0x04])) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < DerefOf (PI60 [0x04] )) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < DerefOf (PI60 [0x04] )) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= DerefOf (PI60 [0x04])) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != DerefOf (PI60 [0x04])) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != DerefOf (PI60 [0x04])) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != DerefOf (PI60 [0x04])) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != DerefOf (PI60 [0x04])) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != DerefOf (PI60 [0x04])) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != DerefOf (PI60 [0x04])) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != DerefOf (PI60 [0x04])) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != DerefOf (PI60 [0x04])) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != DerefOf (PI60 [0x04])) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != DerefOf (PI60 [0x04])) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != DerefOf (PI60 [ 0x04])) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == DerefOf (PI60 [0x03])) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == DerefOf (PI60 [0x03])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == DerefOf (PI60 [0x03])) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == DerefOf (PI60 [0x03])) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (PI60 [0x03])) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == DerefOf (PI60 [0x03])) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == DerefOf (PI60 [0x03] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == DerefOf (PI60 [0x03] )) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == DerefOf (PI60 [0x03])) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == DerefOf (PI60 [0x03])) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (PI60 [0x03] )) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == DerefOf (PI60 [0x03] )) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > DerefOf (PI60 [0x03])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > DerefOf (PI60 [0x03])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > DerefOf (PI60 [0x03])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > DerefOf (PI60 [0x03])) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > DerefOf (PI60 [0x03])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > DerefOf (PI60 [0x03])) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > DerefOf (PI60 [0x03])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > DerefOf (PI60 [0x03])) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > DerefOf (PI60 [0x03] )) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > DerefOf (PI60 [0x03] )) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > DerefOf (PI60 [0x03])) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > DerefOf (PI60 [0x03])) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > DerefOf (PI60 [0x03] )) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > DerefOf (PI60 [0x03] )) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= DerefOf (PI60 [0x03])) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < DerefOf (PI60 [0x03])) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < DerefOf (PI60 [0x03])) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < DerefOf (PI60 [0x03])) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < DerefOf (PI60 [0x03] )) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < DerefOf (PI60 [0x03] )) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < DerefOf (PI60 [0x03])) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < DerefOf (PI60 [0x03])) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < DerefOf (PI60 [0x03] )) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < DerefOf (PI60 [0x03] )) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= DerefOf (PI60 [0x03])) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != DerefOf (PI60 [0x03])) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != DerefOf (PI60 [0x03])) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != DerefOf (PI60 [0x03])) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != DerefOf (PI60 [0x03])) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != DerefOf (PI60 [0x03])) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != DerefOf (PI60 [0x03])) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != DerefOf (PI60 [0x03])) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != DerefOf (PI60 [0x03])) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != DerefOf (PI60 [0x03])) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != DerefOf (PI60 [0x03])) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != DerefOf (PI60 [ 0x03])) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ Method (M645, 1, NotSerialized) { Local0 = Concatenate (DerefOf (PI60 [0x04]), DerefOf (PI60 [0x04] )) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, DerefOf (PI60 [0x04])) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (DerefOf (PI60 [0x04]), 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (DerefOf (PI60 [0x04]), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (DerefOf (PI60 [0x04]), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { Local0 = Concatenate (DerefOf (PI60 [0x03]), DerefOf (PI60 [0x03] )) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, DerefOf (PI60 [0x03])) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (DerefOf (PI60 [0x03]), 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (DerefOf (PI60 [0x03]), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (DerefOf (PI60 [0x03]), 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (PI60 [0x04])) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (PI60 [0x04])) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, DerefOf (PI60 [0x04])) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, DerefOf (PI60 [0x04])) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (PI60 [0x04])) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (PI60 [0x04])) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (PI60 [0x04] )) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (PI60 [0x04] )) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (PI60 [0x04])) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (PI60 [0x04])) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (PI60 [0x04] )) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (PI60 [0x04] )) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (PI60 [0x03])) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (PI60 [0x03])) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, DerefOf (PI60 [0x03])) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, DerefOf (PI60 [0x03])) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (PI60 [0x03])) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (PI60 [0x03])) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (PI60 [0x03] )) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (PI60 [0x03] )) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (PI60 [0x03])) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (PI60 [0x03])) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (PI60 [0x03] )) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (PI60 [0x03] )) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (PI60 [0x04])) M600 (Arg0, 0x0C, Local0, BB14) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (PI60 [0x04])) M600 (Arg0, 0x0D, Local0, BB15) Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (PI60 [0x03]), Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x1A, Local0, BB14) Concatenate (Buffer (0x02) { "Z" }, DerefOf (PI60 [0x04]), Local0) M600 (Arg0, 0x1B, Local0, BB15) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ Method (M647, 1, NotSerialized) { Local0 = ToString (DerefOf (PI60 [0x0D]), Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (DerefOf (PI60 [0x0D]), 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (DerefOf (PI60 [0x0E]), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (DerefOf (PI60 [0x0D]), AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (DerefOf (PI60 [0x0D]), AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (DerefOf (PI60 [0x0E]), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (DerefOf (PI60 [0x0D]), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (DerefOf (PI60 [0x0D]), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (DerefOf (PI60 [0x0E]), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (DerefOf (PI60 [0x0D]), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (DerefOf (PI60 [0x0D]), DerefOf (PAUI [0x07] )) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (DerefOf (PI60 [0x0E]), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (DerefOf (PI60 [0x0D]), M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (DerefOf (PI60 [0x0D]), M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (DerefOf (PI60 [0x0E]), M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (PI60 [0x0D]), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (DerefOf (PI60 [0x0D]), DerefOf (M601 (0x01, 0x07)) ) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (DerefOf (PI60 [0x0E]), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x11, Local0, BS1A) } ToString (DerefOf (PI60 [0x0D]), Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (DerefOf (PI60 [0x0D]), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (DerefOf (PI60 [0x0E]), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (DerefOf (PI60 [0x0D]), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (DerefOf (PI60 [0x0D]), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (DerefOf (PI60 [0x0E]), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (DerefOf (PI60 [0x0D]), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (DerefOf (PI60 [0x0D]), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (DerefOf (PI60 [0x0E]), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (DerefOf (PI60 [0x0D]), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (DerefOf (PI60 [0x0D]), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (DerefOf (PI60 [0x0E]), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (DerefOf (PI60 [0x0D]), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (DerefOf (PI60 [0x0D]), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (DerefOf (PI60 [0x0E]), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (PI60 [0x0D]), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (DerefOf (PI60 [0x0D]), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (DerefOf (PI60 [0x0E]), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { Local0 = ToString (DerefOf (PI60 [0x0C]), Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (DerefOf (PI60 [0x0C]), 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (DerefOf (PI60 [0x0F]), Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (DerefOf (PI60 [0x0C]), AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (DerefOf (PI60 [0x0C]), AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (DerefOf (PI60 [0x0F]), AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (DerefOf (PI60 [0x0C]), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (DerefOf (PI60 [0x0C]), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (DerefOf (PI60 [0x0F]), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (DerefOf (PI60 [0x0C]), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (DerefOf (PI60 [0x0C]), DerefOf (PAUI [0x07] )) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (DerefOf (PI60 [0x0F]), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (DerefOf (PI60 [0x0C]), M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (DerefOf (PI60 [0x0C]), M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (DerefOf (PI60 [0x0F]), M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (PI60 [0x0C]), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (DerefOf (PI60 [0x0C]), DerefOf (M601 (0x01, 0x07)) ) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (DerefOf (PI60 [0x0F]), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x11, Local0, BS1A) } ToString (DerefOf (PI60 [0x0C]), Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (DerefOf (PI60 [0x0C]), 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (DerefOf (PI60 [0x0F]), Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (DerefOf (PI60 [0x0C]), AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (DerefOf (PI60 [0x0C]), AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (DerefOf (PI60 [0x0F]), AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (DerefOf (PI60 [0x0C]), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (DerefOf (PI60 [0x0C]), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (DerefOf (PI60 [0x0F]), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (DerefOf (PI60 [0x0C]), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (DerefOf (PI60 [0x0C]), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (DerefOf (PI60 [0x0F]), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (DerefOf (PI60 [0x0C]), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (DerefOf (PI60 [0x0C]), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (DerefOf (PI60 [0x0F]), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (PI60 [0x0C]), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (DerefOf (PI60 [0x0C]), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (DerefOf (PI60 [0x0F]), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ Method (M648, 1, NotSerialized) { Local0 = Mid (DerefOf (PI60 [0x04]), 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (DerefOf (PI60 [0x0F]), 0x01, 0x08) M600 (Arg0, 0x01, Local0, BB30) Local0 = Mid (DerefOf (PI60 [0x04]), AUI5, AUIB) M600 (Arg0, 0x02, Local0, BB1D) Local0 = Mid (DerefOf (PI60 [0x0F]), AUI6, AUIA) M600 (Arg0, 0x03, Local0, BB30) If (Y078) { Local0 = Mid (DerefOf (PI60 [0x04]), DerefOf (RefOf (AUI5)), DerefOf ( RefOf (AUIB))) M600 (Arg0, 0x04, Local0, BB1D) Local0 = Mid (DerefOf (PI60 [0x0F]), DerefOf (RefOf (AUI6)), DerefOf ( RefOf (AUIA))) M600 (Arg0, 0x05, Local0, BB30) } Local0 = Mid (DerefOf (PI60 [0x04]), DerefOf (PAUI [0x05] ), DerefOf (PAUI [0x0B])) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (DerefOf (PI60 [0x0F]), DerefOf (PAUI [0x06] ), DerefOf (PAUI [0x0A])) M600 (Arg0, 0x07, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (DerefOf (PI60 [0x04]), M601 (0x01, 0x05), M601 ( 0x01, 0x0B)) M600 (Arg0, 0x08, Local0, BB1D) Local0 = Mid (DerefOf (PI60 [0x0F]), M601 (0x01, 0x06), M601 ( 0x01, 0x0A)) M600 (Arg0, 0x09, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (DerefOf (PI60 [0x04]), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B))) M600 (Arg0, 0x0A, Local0, BB1D) Local0 = Mid (DerefOf (PI60 [0x0F]), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A))) M600 (Arg0, 0x0B, Local0, BB30) } Mid (DerefOf (PI60 [0x04]), 0x00, 0x09, Local0) M600 (Arg0, 0x0C, Local0, BB1D) Mid (DerefOf (PI60 [0x0F]), 0x01, 0x08, Local0) M600 (Arg0, 0x0D, Local0, BB30) Mid (DerefOf (PI60 [0x04]), AUI5, AUIB, Local0) M600 (Arg0, 0x0E, Local0, BB1D) Mid (DerefOf (PI60 [0x0F]), AUI6, AUIA, Local0) M600 (Arg0, 0x0F, Local0, BB30) If (Y078) { Mid (DerefOf (PI60 [0x04]), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x10, Local0, BB1D) Mid (DerefOf (PI60 [0x0F]), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x11, Local0, BB30) } Mid (DerefOf (PI60 [0x04]), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x0B]), Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (DerefOf (PI60 [0x0F]), DerefOf (PAUI [0x06]), DerefOf ( PAUI [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB30) /* Method returns Index and Length parameters */ Mid (DerefOf (PI60 [0x04]), M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x14, Local0, BB1D) Mid (DerefOf (PI60 [0x0F]), M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x15, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (DerefOf (PI60 [0x04]), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x0B)), Local0) M600 (Arg0, 0x16, Local0, BB1D) Mid (DerefOf (PI60 [0x0F]), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 ( 0x01, 0x0A)), Local0) M600 (Arg0, 0x17, Local0, BB30) } } Method (M328, 1, NotSerialized) { Local0 = Mid (DerefOf (PI60 [0x03]), 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (DerefOf (PI60 [0x0F]), 0x01, 0x04) M600 (Arg0, 0x01, Local0, BB31) Local0 = Mid (DerefOf (PI60 [0x03]), AUI5, AUI9) M600 (Arg0, 0x02, Local0, BB1C) Local0 = Mid (DerefOf (PI60 [0x0F]), AUI6, AUI8) M600 (Arg0, 0x03, Local0, BB31) If (Y078) { Local0 = Mid (DerefOf (PI60 [0x03]), DerefOf (RefOf (AUI5)), DerefOf ( RefOf (AUI9))) M600 (Arg0, 0x04, Local0, BB1C) Local0 = Mid (DerefOf (PI60 [0x0F]), DerefOf (RefOf (AUI6)), DerefOf ( RefOf (AUI8))) M600 (Arg0, 0x05, Local0, BB31) } Local0 = Mid (DerefOf (PI60 [0x03]), DerefOf (PAUI [0x05] ), DerefOf (PAUI [0x09])) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (DerefOf (PI60 [0x0F]), DerefOf (PAUI [0x06] ), DerefOf (PAUI [0x08])) M600 (Arg0, 0x07, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (DerefOf (PI60 [0x03]), M601 (0x01, 0x05), M601 ( 0x01, 0x09)) M600 (Arg0, 0x08, Local0, BB1C) Local0 = Mid (DerefOf (PI60 [0x0F]), M601 (0x01, 0x06), M601 ( 0x01, 0x08)) M600 (Arg0, 0x09, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (DerefOf (PI60 [0x03]), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09))) M600 (Arg0, 0x0A, Local0, BB1C) Local0 = Mid (DerefOf (PI60 [0x0F]), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08))) M600 (Arg0, 0x0B, Local0, BB31) } Mid (DerefOf (PI60 [0x03]), 0x00, 0x05, Local0) M600 (Arg0, 0x0C, Local0, BB1C) Mid (DerefOf (PI60 [0x0F]), 0x01, 0x04, Local0) M600 (Arg0, 0x0D, Local0, BB31) Mid (DerefOf (PI60 [0x03]), AUI5, AUI9, Local0) M600 (Arg0, 0x0E, Local0, BB1C) Mid (DerefOf (PI60 [0x0F]), AUI6, AUI8, Local0) M600 (Arg0, 0x0F, Local0, BB31) If (Y078) { Mid (DerefOf (PI60 [0x03]), DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x10, Local0, BB1C) Mid (DerefOf (PI60 [0x0F]), DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x11, Local0, BB31) } Mid (DerefOf (PI60 [0x03]), DerefOf (PAUI [0x05]), DerefOf ( PAUI [0x09]), Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (DerefOf (PI60 [0x0F]), DerefOf (PAUI [0x06]), DerefOf ( PAUI [0x08]), Local0) M600 (Arg0, 0x13, Local0, BB31) /* Method returns Index and Length parameters */ Mid (DerefOf (PI60 [0x03]), M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x14, Local0, BB1C) Mid (DerefOf (PI60 [0x0F]), M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x15, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (DerefOf (PI60 [0x03]), DerefOf (M601 (0x01, 0x05)), DerefOf (M601 ( 0x01, 0x09)), Local0) M600 (Arg0, 0x16, Local0, BB1C) Mid (DerefOf (PI60 [0x0F]), DerefOf (M601 (0x01, 0x06)), DerefOf (M601 ( 0x01, 0x08)), Local0) M600 (Arg0, 0x17, Local0, BB31) } } /* Method(m649, 1) */ /* Method(m329, 1) */ /* Method(m64a, 1) */ /* Method(m32a, 1) */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (PS60 [0x01])-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (PS60 [0x05])-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = DerefOf (PS60 [0x01])++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (PS60 [0x05])++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (PS60 [0x01])) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (PS60 [0x05])) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (PS60 [0x01])) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (PS60 [0x05])) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (PS60 [0x01])-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (PS60 [0x04])-- M600 (Arg0, 0x01, Local0, BI14) } /* Increment */ If (Y501) { Local0 = DerefOf (PS60 [0x01])++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (PS60 [0x04])++ M600 (Arg0, 0x03, Local0, BI15) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (PS60 [0x01])) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (PS60 [0x04])) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (PS60 [0x01])) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (PS60 [0x04])) M600 (Arg0, 0x07, Local0, 0x02) /* Not */ Store (~DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Method (M000, 1, NotSerialized) { Local0 = !DerefOf (PS60 [0x00]) M600 (Arg0, 0x00, Local0, Ones) Local0 = !DerefOf (PS60 [0x01]) M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !DerefOf (PS60 [0x05]) M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !DerefOf (PS60 [0x04]) M600 (Arg0, 0x03, Local0, Zero) } } /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (PS60 [0x01])) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (PS60 [0x15])) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (PS60 [0x15]), Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (DerefOf (PS60 [0x01])) M600 (Arg0, 0x04, Local0, 0x0801) /* Error of iASL on constant folding Store(ToBCD(Derefof(Index(ps60, 22))), Local0) m600(arg0, 5, Local0, 0x3789012345678901) */ ToBCD (DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (PS60 [0x16]), Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (PS60 [0x01])) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (PS60 [0x17])) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (PS60 [0x17]), Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (DerefOf (PS60 [0x01])) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (DerefOf (PS60 [0x18])) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (PS60 [0x18]), Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M001, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((DerefOf (PS60 [0x01]) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((DerefOf (PS60 [0x01]) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((DerefOf (PS60 [0x01]) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (DerefOf (PS60 [0x01]) + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (DerefOf (PS60 [0x01]) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (DerefOf (PS60 [0x01]) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + DerefOf (PS60 [0x01])) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + DerefOf (PS60 [0x01])) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + DerefOf (PS60 [0x01])) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + DerefOf (PS60 [0x01])) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M002, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((DerefOf (PS60 [0x05]) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (PS60 [0x05]) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PS60 [0x05]) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PS60 [0x05]) + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (DerefOf (PS60 [0x05]) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PS60 [0x05]) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + DerefOf (PS60 [0x05])) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + DerefOf (PS60 [0x05])) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + DerefOf (PS60 [0x05])) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + DerefOf (PS60 [0x05])) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (PS60 [0x05])) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (PS60 [0x05])) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (PS60 [0x05])) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (PS60 [0x05])) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (PS60 [0x05])) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (PS60 [0x05])) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PS60 [0x05])) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PS60 [0x05])) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) + DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((DerefOf (PS60 [0x05]) + DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (PS60 [0x01]) + DerefOf (PS60 [0x05])) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (PS60 [0x05]) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M003, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FF) Store ((DerefOf (PS60 [0x04]) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (PS60 [0x04]) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FF) } Store ((DerefOf (PS60 [0x04]) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FF) } Local0 = (DerefOf (PS60 [0x04]) + 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) + 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FF) Local0 = (DerefOf (PS60 [0x04]) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FF) } Local0 = (DerefOf (PS60 [0x04]) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FF) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0x01 + DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FF) Store ((AUI5 + DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUI6 + DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUI6)) + DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FF) } Store ((DerefOf (PAUI [0x05]) + DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x06]) + DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x06) + DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FF) } Local0 = (0x00 + DerefOf (PS60 [0x04])) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0x01 + DerefOf (PS60 [0x04])) M600 (Arg0, 0x25, Local0, 0xC179B3FF) Local0 = (AUI5 + DerefOf (PS60 [0x04])) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUI6 + DerefOf (PS60 [0x04])) M600 (Arg0, 0x27, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (PS60 [0x04])) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (PS60 [0x04])) M600 (Arg0, 0x29, Local0, 0xC179B3FF) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (PS60 [0x04])) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (PS60 [0x04])) M600 (Arg0, 0x2B, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (PS60 [0x04])) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x06) + DerefOf (PS60 [0x04])) M600 (Arg0, 0x2D, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PS60 [0x04])) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PS60 [0x04])) M600 (Arg0, 0x2F, Local0, 0xC179B3FF) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) + DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x30, Local0, 0xC179B71F) Store ((DerefOf (PS60 [0x04]) + DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0xC179B71F) Local0 = (DerefOf (PS60 [0x01]) + DerefOf (PS60 [0x04])) M600 (Arg0, 0x32, Local0, 0xC179B71F) Local0 = (DerefOf (PS60 [0x04]) + DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0xC179B71F) } /* And, common 32-bit/64-bit test */ Method (M004, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (PS60 [0x01]) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (PS60 [0x01]) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) & DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) & DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (PS60 [0x01]) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (PS60 [0x01]) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & DerefOf (PS60 [0x01])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (PS60 [0x01])) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & DerefOf (PS60 [0x01])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (PS60 [0x01])) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M005, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (PS60 [0x05]) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PS60 [0x05]) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) & DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) & DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PS60 [0x05]) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PS60 [0x05]) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & DerefOf (PS60 [0x05])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (PS60 [0x05])) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & DerefOf (PS60 [0x05])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (PS60 [0x05])) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (PS60 [0x05])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (PS60 [0x05])) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (PS60 [0x05])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (PS60 [0x05])) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (PS60 [0x05])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (PS60 [0x05])) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PS60 [0x05])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (PS60 [0x05])) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) & DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (PS60 [0x05]) & DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (PS60 [0x01]) & DerefOf (PS60 [0x05])) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (PS60 [0x05]) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M006, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (PS60 [0x04]) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((DerefOf (PS60 [0x04]) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) & DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) & DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (DerefOf (PS60 [0x04]) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (DerefOf (PS60 [0x04]) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 & DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) & DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 & DerefOf (PS60 [0x04])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & DerefOf (PS60 [0x04])) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 & DerefOf (PS60 [0x04])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & DerefOf (PS60 [0x04])) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (PS60 [0x04])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & DerefOf (PS60 [0x04])) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (PS60 [0x04])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & DerefOf (PS60 [0x04])) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (PS60 [0x04])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & DerefOf (PS60 [0x04])) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PS60 [0x04])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (PS60 [0x04])) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) & DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x30, Local0, 0x0320) Store ((DerefOf (PS60 [0x04]) & DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0x0320) Local0 = (DerefOf (PS60 [0x01]) & DerefOf (PS60 [0x04])) M600 (Arg0, 0x32, Local0, 0x0320) Local0 = (DerefOf (PS60 [0x04]) & DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0x0320) } /* Divide, common 32-bit/64-bit test */ Method (M007, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PS60 [0x01]) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PS60 [0x01]) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PS60 [0x01]) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) / DerefOf (PAUI [0x01]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) / DerefOf (M602 (0x01, 0x01, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (PS60 [0x01]), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (DerefOf (PS60 [0x01]), 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (PS60 [0x01]), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (DerefOf (PS60 [0x01]), AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (PS60 [0x01]), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (DerefOf (PS60 [0x01]), M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M008, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PS60 [0x05]) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PS60 [0x05]) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PS60 [0x05]) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) / DerefOf (PAUI [0x04]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) / DerefOf (M602 (0x01, 0x04, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (PS60 [0x05]), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PS60 [0x05]), 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (PS60 [0x05]), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PS60 [0x05]), AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (PS60 [0x05]), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PS60 [0x05]), M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) / DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) / DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x05]), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (PS60 [0x05]), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M009, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) / 0xC179B3FE), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PS60 [0x04]) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) / AUI3), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PS60 [0x04]) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) / DerefOf (RefOf (AUI3))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PS60 [0x04]) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) / DerefOf (PAUI [0x03]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) / M601 (0x01, 0x03)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) / DerefOf (M602 (0x01, 0x03, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (PS60 [0x04]), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Divide (DerefOf (PS60 [0x04]), 0xC179B3FE, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (PS60 [0x04]), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Divide (DerefOf (PS60 [0x04]), AUI3, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Divide (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUI3)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Divide (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x03]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (PS60 [0x04]), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Divide (DerefOf (PS60 [0x04]), M601 (0x01, 0x03), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Divide (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x03, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE / DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 / DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) / DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) / DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) / DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) / DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xC179B3FE, DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI3, DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI3)), DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x03]), DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x03), DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x03, 0x01)), DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) / DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) / DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0x003DD5B7) Divide (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x04]), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (PS60 [0x04]), DerefOf (PS60 [0x01]), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x003DD5B7) } /* Mod, common 32-bit/64-bit test */ Method (M00A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PS60 [0x01]) % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PS60 [0x01]) % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PS60 [0x01]) % DerefOf (PAUI [0x10]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) % DerefOf (PAUI [0x11]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) % DerefOf (M602 (0x01, 0x10, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) % DerefOf (M602 (0x01, 0x11, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (PS60 [0x01]) % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (PS60 [0x01]) % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (PS60 [0x01]) % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % DerefOf (PS60 [0x01])) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % DerefOf (PS60 [0x01])) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % DerefOf (PS60 [0x01])) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % DerefOf (PS60 [0x01])) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M00B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PS60 [0x05]) % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PS60 [0x05]) % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PS60 [0x05]) % DerefOf (PAUI [0x0D]) ), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) % DerefOf (PAUI [0x0F]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) % DerefOf (M602 (0x01, 0x0D, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) % DerefOf (M602 (0x01, 0x0F, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (PS60 [0x05]) % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (PS60 [0x05]) % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (PS60 [0x05]) % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % DerefOf (PS60 [0x05])) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % DerefOf (PS60 [0x05])) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % DerefOf (PS60 [0x05])) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % DerefOf (PS60 [0x05])) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % DerefOf (PS60 [0x05])) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % DerefOf (PS60 [0x05])) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % DerefOf (PS60 [0x05])) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % DerefOf (PS60 [0x05])) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % DerefOf (PS60 [0x05])) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % DerefOf (PS60 [0x05])) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (PS60 [0x05])) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (PS60 [0x05])) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) % DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (PS60 [0x05]) % DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (DerefOf (PS60 [0x01]) % DerefOf (PS60 [0x05])) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x05]) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M00C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) % 0xC179B3FF), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) % 0xC179B3FD), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PS60 [0x04]) % AUIC), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) % AUIE), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((DerefOf (PS60 [0x04]) % DerefOf (RefOf (AUIC))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) % DerefOf (RefOf (AUIE))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PS60 [0x04]) % DerefOf (PAUI [0x0C]) ), Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) % DerefOf (PAUI [0x0E]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) % M601 (0x01, 0x0C)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) % M601 (0x01, 0x0E)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) % DerefOf (M602 (0x01, 0x0C, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) % DerefOf (M602 (0x01, 0x0E, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (PS60 [0x04]) % 0xC179B3FF) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) % 0xC179B3FD) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (PS60 [0x04]) % AUIC) /* \AUIC */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) % AUIE) /* \AUIE */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) % DerefOf (RefOf (AUIC))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) % DerefOf (RefOf (AUIE))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (PS60 [0x04]) % DerefOf (PAUI [0x0C])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) % DerefOf (PAUI [0x0E])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) % M601 (0x01, 0x0C)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) % M601 (0x01, 0x0E)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) % DerefOf (M602 (0x01, 0x0C, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) % DerefOf (M602 (0x01, 0x0E, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xC179B3FF % DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xC179B3FD % DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FD) Store ((AUIC % DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIE % DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (AUIC)) % DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIE)) % DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FD) } Store ((DerefOf (PAUI [0x0C]) % DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0E]) % DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M601 (0x01, 0x0C) % DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0E) % DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0C, 0x01)) % DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0E, 0x01)) % DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FD) } Local0 = (0xC179B3FF % DerefOf (PS60 [0x04])) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xC179B3FD % DerefOf (PS60 [0x04])) M600 (Arg0, 0x25, Local0, 0xC179B3FD) Local0 = (AUIC % DerefOf (PS60 [0x04])) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIE % DerefOf (PS60 [0x04])) M600 (Arg0, 0x27, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (AUIC)) % DerefOf (PS60 [0x04])) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIE)) % DerefOf (PS60 [0x04])) M600 (Arg0, 0x29, Local0, 0xC179B3FD) } Local0 = (DerefOf (PAUI [0x0C]) % DerefOf (PS60 [0x04])) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0E]) % DerefOf (PS60 [0x04])) M600 (Arg0, 0x2B, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0C) % DerefOf (PS60 [0x04])) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0E) % DerefOf (PS60 [0x04])) M600 (Arg0, 0x2D, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) % DerefOf (PS60 [0x04])) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) % DerefOf (PS60 [0x04])) M600 (Arg0, 0x2F, Local0, 0xC179B3FD) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) % DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (PS60 [0x04]) % DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0x0267) Local0 = (DerefOf (PS60 [0x01]) % DerefOf (PS60 [0x04])) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x04]) % DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0x0267) } /* Multiply, common 32-bit/64-bit test */ Method (M00D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (PS60 [0x01]) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (PS60 [0x01]) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PS60 [0x01]) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (PS60 [0x01]) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (PS60 [0x01]) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PS60 [0x01]) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * DerefOf (PS60 [0x01])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (PS60 [0x01])) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * DerefOf (PS60 [0x01])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (PS60 [0x01])) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M00E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (PS60 [0x05]) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PS60 [0x05]) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PS60 [0x05]) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PS60 [0x05]) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * DerefOf (PS60 [0x05])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (PS60 [0x05])) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * DerefOf (PS60 [0x05])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (PS60 [0x05])) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (PS60 [0x05])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (PS60 [0x05])) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (PS60 [0x05])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (PS60 [0x05])) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (PS60 [0x05])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (PS60 [0x05])) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PS60 [0x05])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PS60 [0x05])) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) * DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((DerefOf (PS60 [0x05]) * DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (PS60 [0x01]) * DerefOf (PS60 [0x05])) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (PS60 [0x05]) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M00F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (PS60 [0x04]) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((DerefOf (PS60 [0x04]) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (DerefOf (PS60 [0x04]) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) * 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (DerefOf (PS60 [0x04]) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 * DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) * DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 * DerefOf (PS60 [0x04])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (PS60 [0x04])) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 * DerefOf (PS60 [0x04])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (PS60 [0x04])) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (PS60 [0x04])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (PS60 [0x04])) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (PS60 [0x04])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (PS60 [0x04])) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (PS60 [0x04])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (PS60 [0x04])) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PS60 [0x04])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PS60 [0x04])) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) * DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x30, Local0, 0x5DCC2DBE) Store ((DerefOf (PS60 [0x04]) * DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0x5DCC2DBE) Local0 = (DerefOf (PS60 [0x01]) * DerefOf (PS60 [0x04])) M600 (Arg0, 0x32, Local0, 0x5DCC2DBE) Local0 = (DerefOf (PS60 [0x04]) * DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0x5DCC2DBE) } /* NAnd, common 32-bit/64-bit test */ Method (M010, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (PS60 [0x01]), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x01]), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (DerefOf (PS60 [0x01]), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x01]), AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (DerefOf (PS60 [0x01]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x01]), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PS60 [0x01]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x01]), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (DerefOf (PS60 [0x01]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x01]), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (DerefOf (PS60 [0x01]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x01]), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (PS60 [0x01])) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (PS60 [0x01])) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, DerefOf (PS60 [0x01])) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (PS60 [0x01])) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x01])) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (PS60 [0x01])) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (PS60 [0x01])) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (PS60 [0x01])) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M011, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (PS60 [0x05]), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x05]), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (DerefOf (PS60 [0x05]), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x05]), AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (PS60 [0x05]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x05]), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PS60 [0x05]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x05]), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (DerefOf (PS60 [0x05]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x05]), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (PS60 [0x05]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x05]), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (PS60 [0x05])) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (PS60 [0x05])) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, DerefOf (PS60 [0x05])) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (PS60 [0x05])) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x05])) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (PS60 [0x05])) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (PS60 [0x05])) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (PS60 [0x05])) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (DerefOf (PS60 [0x05]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (PS60 [0x05]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M012, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (PS60 [0x04]), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x04]), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x3E864C01) Local0 = NAnd (DerefOf (PS60 [0x04]), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x04]), AUII) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x12] )) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (DerefOf (PS60 [0x04]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x04]), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } NAnd (DerefOf (PS60 [0x04]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (DerefOf (PS60 [0x04]), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x3E864C01) NAnd (DerefOf (PS60 [0x04]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (DerefOf (PS60 [0x04]), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x3E864C01) } NAnd (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (DerefOf (PS60 [0x04]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (DerefOf (PS60 [0x04]), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (PS60 [0x04])) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, DerefOf (PS60 [0x04])) M600 (Arg0, 0x19, Local0, 0x3E864C01) Local0 = NAnd (AUI5, DerefOf (PS60 [0x04])) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, DerefOf (PS60 [0x04])) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x04])) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), DerefOf (PS60 [0x04])) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (PS60 [0x04])) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), DerefOf (PS60 [0x04])) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x23, Local0, 0x3E864C01) } NAnd (0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x25, Local0, 0x3E864C01) NAnd (AUI5, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x29, Local0, 0x3E864C01) } NAnd (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x30, Local0, 0xFFFFFCDF) Local0 = NAnd (DerefOf (PS60 [0x04]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x31, Local0, 0xFFFFFCDF) NAnd (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFCDF) NAnd (DerefOf (PS60 [0x04]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFCDF) } /* NOr, common 32-bit/64-bit test */ Method (M013, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (PS60 [0x01]), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PS60 [0x01]), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (PS60 [0x01]), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PS60 [0x01]), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (PS60 [0x01]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PS60 [0x01]), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (PS60 [0x01]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PS60 [0x01]), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (PS60 [0x01]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PS60 [0x01]), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (PS60 [0x01]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PS60 [0x01]), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PS60 [0x01]), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (PS60 [0x01])) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (PS60 [0x01])) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (PS60 [0x01])) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, DerefOf (PS60 [0x01])) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x01])) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (PS60 [0x01])) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (PS60 [0x01])) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), DerefOf (PS60 [0x01])) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M014, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (PS60 [0x05]), 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PS60 [0x05]), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (PS60 [0x05]), AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PS60 [0x05]), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (PS60 [0x05]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PS60 [0x05]), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (PS60 [0x05]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PS60 [0x05]), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (PS60 [0x05]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PS60 [0x05]), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PS60 [0x05]), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PS60 [0x05]), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (PS60 [0x05]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PS60 [0x05]), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PS60 [0x05]), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (PS60 [0x05])) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (PS60 [0x05])) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (PS60 [0x05])) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, DerefOf (PS60 [0x05])) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x05])) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (PS60 [0x05])) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (PS60 [0x05])) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), DerefOf (PS60 [0x05])) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (DerefOf (PS60 [0x05]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (PS60 [0x05]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M015, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (PS60 [0x04]), 0x00) M600 (Arg0, 0x00, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PS60 [0x04]), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (PS60 [0x04]), AUI5) M600 (Arg0, 0x02, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PS60 [0x04]), AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x12] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (PS60 [0x04]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PS60 [0x04]), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (PS60 [0x04]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x3E864C01) NOr (DerefOf (PS60 [0x04]), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (PS60 [0x04]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x3E864C01) NOr (DerefOf (PS60 [0x04]), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x3E864C01) NOr (DerefOf (PS60 [0x04]), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x3E864C01) NOr (DerefOf (PS60 [0x04]), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (PS60 [0x04]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x3E864C01) NOr (DerefOf (PS60 [0x04]), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x3E864C01) NOr (DerefOf (PS60 [0x04]), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (PS60 [0x04])) M600 (Arg0, 0x18, Local0, 0x3E864C01) Local0 = NOr (0xFFFFFFFF, DerefOf (PS60 [0x04])) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (PS60 [0x04])) M600 (Arg0, 0x1A, Local0, 0x3E864C01) Local0 = NOr (AUII, DerefOf (PS60 [0x04])) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x04])) M600 (Arg0, 0x1C, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (AUII)), DerefOf (PS60 [0x04])) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x1E, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PAUI [0x12]), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (PS60 [0x04])) M600 (Arg0, 0x20, Local0, 0x3E864C01) Local0 = NOr (M601 (0x01, 0x12), DerefOf (PS60 [0x04])) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x22, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x24, Local0, 0x3E864C01) NOr (0xFFFFFFFF, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x26, Local0, 0x3E864C01) NOr (AUII, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x28, Local0, 0x3E864C01) NOr (DerefOf (RefOf (AUII)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2A, Local0, 0x3E864C01) NOr (DerefOf (PAUI [0x12]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2C, Local0, 0x3E864C01) NOr (M601 (0x01, 0x12), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2E, Local0, 0x3E864C01) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x30, Local0, 0x3E864C00) Local0 = NOr (DerefOf (PS60 [0x04]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x31, Local0, 0x3E864C00) NOr (DerefOf (PS60 [0x01]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x32, Local0, 0x3E864C00) NOr (DerefOf (PS60 [0x04]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x33, Local0, 0x3E864C00) } /* Or, common 32-bit/64-bit test */ Method (M016, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (PS60 [0x01]) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (PS60 [0x01]) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PS60 [0x01]) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) | DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) | DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PS60 [0x01]) | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (PS60 [0x01]) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PS60 [0x01]) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (PS60 [0x01])) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (PS60 [0x01])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (PS60 [0x01])) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | DerefOf (PS60 [0x01])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M017, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (PS60 [0x05]) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (PS60 [0x05]) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PS60 [0x05]) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) | DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) | DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PS60 [0x05]) | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (PS60 [0x05]) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PS60 [0x05]) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (PS60 [0x05])) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (PS60 [0x05])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (PS60 [0x05])) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | DerefOf (PS60 [0x05])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (PS60 [0x05])) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (PS60 [0x05])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (PS60 [0x05])) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (PS60 [0x05])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (PS60 [0x05])) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | DerefOf (PS60 [0x05])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PS60 [0x05])) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (PS60 [0x05])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) | DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((DerefOf (PS60 [0x05]) | DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (PS60 [0x01]) | DerefOf (PS60 [0x05])) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (PS60 [0x05]) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M018, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((DerefOf (PS60 [0x04]) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (PS60 [0x04]) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((DerefOf (PS60 [0x04]) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) | DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) | DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PS60 [0x04]) | 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (DerefOf (PS60 [0x04]) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PS60 [0x04]) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF | DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII | DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) | DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) | DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) | DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | DerefOf (PS60 [0x04])) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF | DerefOf (PS60 [0x04])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | DerefOf (PS60 [0x04])) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII | DerefOf (PS60 [0x04])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (PS60 [0x04])) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) | DerefOf (PS60 [0x04])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (PS60 [0x04])) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) | DerefOf (PS60 [0x04])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (PS60 [0x04])) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) | DerefOf (PS60 [0x04])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PS60 [0x04])) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (PS60 [0x04])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) | DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x30, Local0, 0xC179B3FF) Store ((DerefOf (PS60 [0x04]) | DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0xC179B3FF) Local0 = (DerefOf (PS60 [0x01]) | DerefOf (PS60 [0x04])) M600 (Arg0, 0x32, Local0, 0xC179B3FF) Local0 = (DerefOf (PS60 [0x04]) | DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0xC179B3FF) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M019, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((DerefOf (PS60 [0x01]) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((DerefOf (PS60 [0x01]) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((DerefOf (PS60 [0x01]) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (DerefOf (PS60 [0x01]) << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (DerefOf (PS60 [0x01]) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (DerefOf (PS60 [0x01]) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M01A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((DerefOf (PS60 [0x05]) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((DerefOf (PS60 [0x05]) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((DerefOf (PS60 [0x05]) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (PS60 [0x05]) << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (DerefOf (PS60 [0x05]) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (PS60 [0x05]) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (PS60 [0x05]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (DerefOf (PS60 [0x01]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (PS60 [0x05]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M01B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x82F367FC) Store ((DerefOf (PS60 [0x04]) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x82F367FC) If (Y078) { Store ((DerefOf (PS60 [0x04]) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x82F367FC) } Store ((DerefOf (PS60 [0x04]) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x82F367FC) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x82F367FC) } Local0 = (DerefOf (PS60 [0x04]) << 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) << 0x01) M600 (Arg0, 0x0D, Local0, 0x82F367FC) Local0 = (DerefOf (PS60 [0x04]) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x82F367FC) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x82F367FC) } Local0 = (DerefOf (PS60 [0x04]) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x82F367FC) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x82F367FC) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (PS60 [0x14])) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (PS60 [0x04]) << DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x31, Local0, 0xCD9FF000) Local0 = (DerefOf (PS60 [0x01]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (PS60 [0x04]) << DerefOf (PS60 [0x14])) M600 (Arg0, 0x33, Local0, 0xCD9FF000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M01C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((DerefOf (PS60 [0x01]) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((DerefOf (PS60 [0x01]) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((DerefOf (PS60 [0x01]) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (DerefOf (PS60 [0x01]) >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (DerefOf (PS60 [0x01]) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (DerefOf (PS60 [0x01]) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2F, Local0, 0x00182F36) } } /* ShiftRight, 64-bit */ Method (M01D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((DerefOf (PS60 [0x05]) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((DerefOf (PS60 [0x05]) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((DerefOf (PS60 [0x05]) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (PS60 [0x05]) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (DerefOf (PS60 [0x05]) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (PS60 [0x05]) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (PS60 [0x05]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (DerefOf (PS60 [0x01]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (PS60 [0x05]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M01E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x60BCD9FF) Store ((DerefOf (PS60 [0x04]) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x60BCD9FF) If (Y078) { Store ((DerefOf (PS60 [0x04]) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x60BCD9FF) } Store ((DerefOf (PS60 [0x04]) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x60BCD9FF) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x60BCD9FF) } Local0 = (DerefOf (PS60 [0x04]) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x60BCD9FF) Local0 = (DerefOf (PS60 [0x04]) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x60BCD9FF) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x60BCD9FF) } Local0 = (DerefOf (PS60 [0x04]) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x60BCD9FF) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x60BCD9FF) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> DerefOf (PS60 [0x14])), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x2F, Local0, 0x00182F36) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (PS60 [0x04]) >> DerefOf (PS60 [0x14]) ), Local0) M600 (Arg0, 0x31, Local0, 0x00182F36) Local0 = (DerefOf (PS60 [0x01]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (PS60 [0x04]) >> DerefOf (PS60 [0x14])) M600 (Arg0, 0x33, Local0, 0x00182F36) } /* Subtract, common 32-bit/64-bit test */ Method (M01F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((DerefOf (PS60 [0x01]) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((DerefOf (PS60 [0x01]) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((DerefOf (PS60 [0x01]) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (DerefOf (PS60 [0x01]) - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (DerefOf (PS60 [0x01]) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (DerefOf (PS60 [0x01]) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - DerefOf (PS60 [0x01])) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - DerefOf (PS60 [0x01])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - DerefOf (PS60 [0x01])) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - DerefOf (PS60 [0x01])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M020, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((DerefOf (PS60 [0x05]) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (PS60 [0x05]) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PS60 [0x05]) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PS60 [0x05]) - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (DerefOf (PS60 [0x05]) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PS60 [0x05]) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - DerefOf (PS60 [0x05])) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - DerefOf (PS60 [0x05])) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - DerefOf (PS60 [0x05])) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - DerefOf (PS60 [0x05])) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (PS60 [0x05])) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (PS60 [0x05])) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (PS60 [0x05])) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (PS60 [0x05])) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (PS60 [0x05])) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (PS60 [0x05])) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PS60 [0x05])) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PS60 [0x05])) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) - DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((DerefOf (PS60 [0x05]) - DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (DerefOf (PS60 [0x01]) - DerefOf (PS60 [0x05])) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (DerefOf (PS60 [0x05]) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M021, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FD) Store ((DerefOf (PS60 [0x04]) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (PS60 [0x04]) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FD) } Store ((DerefOf (PS60 [0x04]) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FD) } Local0 = (DerefOf (PS60 [0x04]) - 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) - 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FD) Local0 = (DerefOf (PS60 [0x04]) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FD) } Local0 = (DerefOf (PS60 [0x04]) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FD) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x18, Local0, 0x3E864C02) Store ((0x01 - DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C03) Store ((AUI5 - DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1A, Local0, 0x3E864C02) Store ((AUI6 - DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C03) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1C, Local0, 0x3E864C02) Store ((DerefOf (RefOf (AUI6)) - DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C03) } Store ((DerefOf (PAUI [0x05]) - DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x3E864C02) Store ((DerefOf (PAUI [0x06]) - DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C03) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x20, Local0, 0x3E864C02) Store ((M601 (0x01, 0x06) - DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x22, Local0, 0x3E864C02) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C03) } Local0 = (0x00 - DerefOf (PS60 [0x04])) M600 (Arg0, 0x24, Local0, 0x3E864C02) Local0 = (0x01 - DerefOf (PS60 [0x04])) M600 (Arg0, 0x25, Local0, 0x3E864C03) Local0 = (AUI5 - DerefOf (PS60 [0x04])) M600 (Arg0, 0x26, Local0, 0x3E864C02) Local0 = (AUI6 - DerefOf (PS60 [0x04])) M600 (Arg0, 0x27, Local0, 0x3E864C03) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (PS60 [0x04])) M600 (Arg0, 0x28, Local0, 0x3E864C02) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (PS60 [0x04])) M600 (Arg0, 0x29, Local0, 0x3E864C03) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (PS60 [0x04])) M600 (Arg0, 0x2A, Local0, 0x3E864C02) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (PS60 [0x04])) M600 (Arg0, 0x2B, Local0, 0x3E864C03) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (PS60 [0x04])) M600 (Arg0, 0x2C, Local0, 0x3E864C02) Local0 = (M601 (0x01, 0x06) - DerefOf (PS60 [0x04])) M600 (Arg0, 0x2D, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PS60 [0x04])) M600 (Arg0, 0x2E, Local0, 0x3E864C02) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PS60 [0x04])) M600 (Arg0, 0x2F, Local0, 0x3E864C03) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) - DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x30, Local0, 0x3E864F23) Store ((DerefOf (PS60 [0x04]) - DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DD) Local0 = (DerefOf (PS60 [0x01]) - DerefOf (PS60 [0x04])) M600 (Arg0, 0x32, Local0, 0x3E864F23) Local0 = (DerefOf (PS60 [0x04]) - DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0xC179B0DD) } /* XOr, common 32-bit/64-bit test */ Method (M022, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x01]) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((DerefOf (PS60 [0x01]) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (PS60 [0x01]) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PS60 [0x01]) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) ^ DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((DerefOf (PS60 [0x01]) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x01]) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PS60 [0x01]) ^ DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PS60 [0x01]) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (DerefOf (PS60 [0x01]) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PS60 [0x01]) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PS60 [0x01]) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ DerefOf (PS60 [0x01])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M023, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x05]) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((DerefOf (PS60 [0x05]) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (PS60 [0x05]) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PS60 [0x05]) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) ^ DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((DerefOf (PS60 [0x05]) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x05]) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PS60 [0x05]) ^ DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PS60 [0x05]) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (DerefOf (PS60 [0x05]) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PS60 [0x05]) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PS60 [0x05]) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ DerefOf (PS60 [0x05])), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) ^ DerefOf (PS60 [0x05]) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((DerefOf (PS60 [0x05]) ^ DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (PS60 [0x01]) ^ DerefOf (PS60 [0x05])) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (PS60 [0x05]) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M024, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PS60 [0x04]) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x3E864C01) Store ((DerefOf (PS60 [0x04]) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (PS60 [0x04]) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Store ((DerefOf (PS60 [0x04]) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) ^ DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Store ((DerefOf (PS60 [0x04]) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PS60 [0x04]) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((DerefOf (PS60 [0x04]) ^ DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } Local0 = (DerefOf (PS60 [0x04]) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x3E864C01) Local0 = (DerefOf (PS60 [0x04]) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x3E864C01) } Local0 = (DerefOf (PS60 [0x04]) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (DerefOf (PS60 [0x04]) ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF ^ DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C01) Store ((AUI5 ^ DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII ^ DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) ^ DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) ^ DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) ^ DerefOf (PS60 [0x04])), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C01) } Local0 = (0x00 ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x25, Local0, 0x3E864C01) Local0 = (AUI5 ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x29, Local0, 0x3E864C01) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Store ((DerefOf (PS60 [0x01]) ^ DerefOf (PS60 [0x04]) ), Local0) M600 (Arg0, 0x30, Local0, 0xC179B0DF) Store ((DerefOf (PS60 [0x04]) ^ DerefOf (PS60 [0x01]) ), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DF) Local0 = (DerefOf (PS60 [0x01]) ^ DerefOf (PS60 [0x04])) M600 (Arg0, 0x32, Local0, 0xC179B0DF) Local0 = (DerefOf (PS60 [0x04]) ^ DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, 0xC179B0DF) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m002", Local0) SRMT (Local0) M002 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m005", Local0) SRMT (Local0) M005 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m008", Local0) SRMT (Local0) M008 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00b", Local0) SRMT (Local0) M00B (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00e", Local0) SRMT (Local0) M00E (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) M010 (Local0) Concatenate (Arg0, "-m011", Local0) SRMT (Local0) M011 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) M013 (Local0) Concatenate (Arg0, "-m014", Local0) SRMT (Local0) M014 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) M016 (Local0) Concatenate (Arg0, "-m017", Local0) SRMT (Local0) M017 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01a", Local0) SRMT (Local0) M01A (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01d", Local0) SRMT (Local0) M01D (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) M01F (Local0) Concatenate (Arg0, "-m020", Local0) SRMT (Local0) M020 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) M022 (Local0) Concatenate (Arg0, "-m023", Local0) SRMT (Local0) M023 (Local0) } Method (M32D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m003", Local0) SRMT (Local0) M003 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m006", Local0) SRMT (Local0) M006 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m009", Local0) SRMT (Local0) M009 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00c", Local0) SRMT (Local0) M00C (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00f", Local0) SRMT (Local0) M00F (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) If (Y119) { M010 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m012", Local0) SRMT (Local0) M012 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) If (Y119) { M013 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m015", Local0) SRMT (Local0) M015 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) If (Y119) { M016 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m018", Local0) SRMT (Local0) M018 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01b", Local0) SRMT (Local0) M01B (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01e", Local0) SRMT (Local0) M01E (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) If (Y119) { M01F (Local0) } Else { BLCK () } Concatenate (Arg0, "-m021", Local0) SRMT (Local0) M021 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) If (Y119) { M022 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m024", Local0) SRMT (Local0) M024 (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M025, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PS60 [0x01]) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (PS60 [0x01]) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PS60 [0x01]) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (PS60 [0x01]) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PS60 [0x01]) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (PS60 [0x01]) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PS60 [0x01]) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (PS60 [0x01]) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x01]) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (PS60 [0x01]) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x01]) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PS60 [0x01]) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (PS60 [0x01])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (PS60 [0x01])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (PS60 [0x01])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (PS60 [0x01])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (PS60 [0x01])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (PS60 [0x01])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (PS60 [0x01] )) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (PS60 [0x01] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (PS60 [0x01])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (PS60 [0x01])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (PS60 [0x01] )) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (PS60 [0x01] )) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M026, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PS60 [0x05]) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (PS60 [0x05]) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (PS60 [0x05]) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (PS60 [0x05]) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PS60 [0x05]) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (PS60 [0x05]) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (PS60 [0x05]) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PS60 [0x05]) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (PS60 [0x05])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (PS60 [0x05])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (PS60 [0x05])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (PS60 [0x05])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (PS60 [0x05])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (PS60 [0x05])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (PS60 [0x05] )) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (PS60 [0x05] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (PS60 [0x05])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (PS60 [0x05])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (PS60 [0x05] )) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (PS60 [0x05] )) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (PS60 [0x01]) && DerefOf (PS60 [0x05] )) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) && DerefOf (PS60 [0x01] )) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M027, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PS60 [0x04]) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (PS60 [0x04]) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (PS60 [0x04]) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (PS60 [0x04]) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PS60 [0x04]) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (PS60 [0x04]) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (PS60 [0x04]) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PS60 [0x04]) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (PS60 [0x04])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (PS60 [0x04])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (PS60 [0x04])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (PS60 [0x04])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (PS60 [0x04])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (PS60 [0x04])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (PS60 [0x04] )) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (PS60 [0x04] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (PS60 [0x04])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (PS60 [0x04])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (PS60 [0x04] )) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (PS60 [0x04] )) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (PS60 [0x01]) && DerefOf (PS60 [0x04] )) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) && DerefOf (PS60 [0x01] )) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M028, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PS60 [0x00]) || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (PS60 [0x00]) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PS60 [0x00]) || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (PS60 [0x00]) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PS60 [0x00]) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (PS60 [0x00]) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PS60 [0x00]) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (PS60 [0x00]) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x00]) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (PS60 [0x00]) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x00]) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PS60 [0x00]) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (PS60 [0x00])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || DerefOf (PS60 [0x00])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (PS60 [0x00])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || DerefOf (PS60 [0x00])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (PS60 [0x00])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (PS60 [0x00])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (PS60 [0x00] )) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (PS60 [0x00] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (PS60 [0x00])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || DerefOf (PS60 [0x00])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (PS60 [0x00] )) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (PS60 [0x00] )) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M029, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PS60 [0x05]) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PS60 [0x05]) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PS60 [0x05]) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x05]) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x05]) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (PS60 [0x05])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (PS60 [0x05])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (PS60 [0x05])) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (PS60 [0x05])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (PS60 [0x05])) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (PS60 [0x05])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (PS60 [0x05] )) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (PS60 [0x05] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (PS60 [0x05])) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (PS60 [0x05])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (PS60 [0x05] )) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (PS60 [0x05] )) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (PS60 [0x00]) || DerefOf (PS60 [0x05] )) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (PS60 [0x05]) || DerefOf (PS60 [0x00] )) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M02A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PS60 [0x04]) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PS60 [0x04]) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PS60 [0x04]) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PS60 [0x04]) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PS60 [0x04]) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (PS60 [0x04])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (PS60 [0x04])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (PS60 [0x04])) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (PS60 [0x04])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (PS60 [0x04])) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (PS60 [0x04])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (PS60 [0x04] )) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (PS60 [0x04] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (PS60 [0x04])) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (PS60 [0x04])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (PS60 [0x04] )) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (PS60 [0x04] )) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (PS60 [0x00]) || DerefOf (PS60 [0x04] )) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (PS60 [0x04]) || DerefOf (PS60 [0x00] )) M600 (Arg0, 0x19, Local0, Ones) } Method (M64E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m026", Local0) SRMT (Local0) M026 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m029", Local0) SRMT (Local0) M029 (Local0) } Method (M32E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m027", Local0) SRMT (Local0) M027 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m02a", Local0) SRMT (Local0) M02A (Local0) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64F, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == DerefOf (PS60 [0x05])) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == DerefOf (PS60 [0x05])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == DerefOf (PS60 [0x05])) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == DerefOf (PS60 [0x05])) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == DerefOf (PS60 [0x05])) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == DerefOf (PS60 [0x05])) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == DerefOf (PS60 [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == DerefOf (PS60 [0x05])) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == DerefOf (PS60 [0x05])) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == DerefOf (PS60 [0x05] )) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == DerefOf (PS60 [0x05] )) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == DerefOf (PS60 [0x05] )) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == DerefOf (PS60 [0x05])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == DerefOf (PS60 [0x05])) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == DerefOf (PS60 [0x05])) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == DerefOf (PS60 [0x05] )) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == DerefOf (PS60 [0x05] )) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == DerefOf (PS60 [0x05] )) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > DerefOf (PS60 [0x05])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > DerefOf (PS60 [0x05])) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > DerefOf (PS60 [0x05])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > DerefOf (PS60 [0x05])) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > DerefOf (PS60 [0x05])) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > DerefOf (PS60 [0x05])) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > DerefOf (PS60 [0x05])) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > DerefOf (PS60 [0x05])) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > DerefOf (PS60 [0x05])) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > DerefOf (PS60 [0x05] )) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > DerefOf (PS60 [0x05] )) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > DerefOf (PS60 [0x05] )) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > DerefOf (PS60 [0x05])) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > DerefOf (PS60 [0x05])) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > DerefOf (PS60 [0x05])) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > DerefOf (PS60 [0x05] )) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > DerefOf (PS60 [0x05] )) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > DerefOf (PS60 [0x05] )) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= DerefOf (PS60 [0x05])) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < DerefOf (PS60 [0x05])) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < DerefOf (PS60 [0x05])) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < DerefOf (PS60 [0x05])) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < DerefOf (PS60 [0x05])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < DerefOf (PS60 [0x05])) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < DerefOf (PS60 [0x05])) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < DerefOf (PS60 [0x05])) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < DerefOf (PS60 [0x05])) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < DerefOf (PS60 [0x05])) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < DerefOf (PS60 [0x05] )) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < DerefOf (PS60 [0x05] )) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < DerefOf (PS60 [0x05] )) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < DerefOf (PS60 [0x05])) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < DerefOf (PS60 [0x05])) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < DerefOf (PS60 [0x05])) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < DerefOf (PS60 [0x05] )) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < DerefOf (PS60 [0x05] )) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < DerefOf (PS60 [0x05] )) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= DerefOf (PS60 [0x05])) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != DerefOf (PS60 [0x05])) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != DerefOf (PS60 [0x05])) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != DerefOf (PS60 [0x05])) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != DerefOf (PS60 [0x05])) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != DerefOf (PS60 [0x05])) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != DerefOf (PS60 [0x05])) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != DerefOf (PS60 [0x05])) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != DerefOf (PS60 [0x05])) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != DerefOf (PS60 [0x05])) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != DerefOf (PS60 [0x05])) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != DerefOf (PS60 [0x05])) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != DerefOf (PS60 [0x05])) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32F, 1, NotSerialized) { /* LEqual */ Local0 = (0xC179B3FE == DerefOf (PS60 [0x04])) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xC179B3FF == DerefOf (PS60 [0x04])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xC179B3FD == DerefOf (PS60 [0x04])) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI3 == DerefOf (PS60 [0x04])) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIC == DerefOf (PS60 [0x04])) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIE == DerefOf (PS60 [0x04])) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) == DerefOf (PS60 [0x04])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) == DerefOf (PS60 [0x04])) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) == DerefOf (PS60 [0x04])) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) == DerefOf (PS60 [0x04] )) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) == DerefOf (PS60 [0x04] )) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) == DerefOf (PS60 [0x04] )) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) == DerefOf (PS60 [0x04])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0C) == DerefOf (PS60 [0x04])) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0E) == DerefOf (PS60 [0x04])) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) == DerefOf (PS60 [0x04] )) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) == DerefOf (PS60 [0x04] )) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) == DerefOf (PS60 [0x04] )) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xC179B3FE > DerefOf (PS60 [0x04])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xC179B3FF > DerefOf (PS60 [0x04])) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xC179B3FD > DerefOf (PS60 [0x04])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI3 > DerefOf (PS60 [0x04])) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIC > DerefOf (PS60 [0x04])) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIE > DerefOf (PS60 [0x04])) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) > DerefOf (PS60 [0x04])) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) > DerefOf (PS60 [0x04])) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) > DerefOf (PS60 [0x04])) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) > DerefOf (PS60 [0x04] )) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) > DerefOf (PS60 [0x04] )) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) > DerefOf (PS60 [0x04] )) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) > DerefOf (PS60 [0x04])) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0C) > DerefOf (PS60 [0x04])) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0E) > DerefOf (PS60 [0x04])) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) > DerefOf (PS60 [0x04] )) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) > DerefOf (PS60 [0x04] )) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) > DerefOf (PS60 [0x04] )) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xC179B3FE >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xC179B3FF >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xC179B3FD >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI3 >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIC >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIE >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) >= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) >= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) >= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0C) >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0E) >= DerefOf (PS60 [0x04])) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) >= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) >= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xC179B3FE < DerefOf (PS60 [0x04])) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xC179B3FF < DerefOf (PS60 [0x04])) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xC179B3FD < DerefOf (PS60 [0x04])) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI3 < DerefOf (PS60 [0x04])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIC < DerefOf (PS60 [0x04])) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIE < DerefOf (PS60 [0x04])) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) < DerefOf (PS60 [0x04])) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) < DerefOf (PS60 [0x04])) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) < DerefOf (PS60 [0x04])) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) < DerefOf (PS60 [0x04] )) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) < DerefOf (PS60 [0x04] )) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) < DerefOf (PS60 [0x04] )) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) < DerefOf (PS60 [0x04])) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0C) < DerefOf (PS60 [0x04])) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0E) < DerefOf (PS60 [0x04])) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) < DerefOf (PS60 [0x04] )) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) < DerefOf (PS60 [0x04] )) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) < DerefOf (PS60 [0x04] )) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xC179B3FE <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xC179B3FF <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xC179B3FD <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI3 <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIC <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIE <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) <= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) <= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) <= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0C) <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0E) <= DerefOf (PS60 [0x04])) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) <= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) <= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) <= DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xC179B3FE != DerefOf (PS60 [0x04])) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xC179B3FF != DerefOf (PS60 [0x04])) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xC179B3FD != DerefOf (PS60 [0x04])) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI3 != DerefOf (PS60 [0x04])) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIC != DerefOf (PS60 [0x04])) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIE != DerefOf (PS60 [0x04])) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) != DerefOf (PS60 [0x04])) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) != DerefOf (PS60 [0x04])) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) != DerefOf (PS60 [0x04])) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) != DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) != DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) != DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) != DerefOf (PS60 [0x04])) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0C) != DerefOf (PS60 [0x04])) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0E) != DerefOf (PS60 [0x04])) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) != DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) != DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) != DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M02B, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == DerefOf (PS60 [0x01])) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == DerefOf (PS60 [0x01])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == DerefOf (PS60 [0x01])) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == DerefOf (PS60 [0x01])) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == DerefOf (PS60 [0x01])) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == DerefOf (PS60 [0x01])) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > DerefOf (PS60 [0x01])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > DerefOf (PS60 [0x01])) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > DerefOf (PS60 [0x01])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > DerefOf (PS60 [0x01])) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > DerefOf (PS60 [0x01])) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > DerefOf (PS60 [0x01])) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < DerefOf (PS60 [0x01])) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < DerefOf (PS60 [0x01])) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < DerefOf (PS60 [0x01])) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < DerefOf (PS60 [0x01])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < DerefOf (PS60 [0x01])) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < DerefOf (PS60 [0x01])) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != DerefOf (PS60 [0x01])) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != DerefOf (PS60 [0x01])) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != DerefOf (PS60 [0x01])) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != DerefOf (PS60 [0x01])) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != DerefOf (PS60 [0x01])) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != DerefOf (PS60 [0x01])) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x6B, Local0, Ones) } } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64G, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (PS60 [0x01])) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, DerefOf (PS60 [0x05])) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, DerefOf (PS60 [0x01])) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, DerefOf (PS60 [0x05])) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PS60 [0x01])) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PS60 [0x05])) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (PS60 [0x01])) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (PS60 [0x05])) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32G, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (PS60 [0x01])) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, DerefOf (PS60 [0x04])) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (AUI1, DerefOf (PS60 [0x01])) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, DerefOf (PS60 [0x04])) M600 (Arg0, 0x03, Local0, BB24) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PS60 [0x01])) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PS60 [0x04])) M600 (Arg0, 0x05, Local0, BB24) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x07, Local0, BB24) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (PS60 [0x01])) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (PS60 [0x04])) M600 (Arg0, 0x09, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x0B, Local0, BB24) } Concatenate (0x0321, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x0D, Local0, BB24) Concatenate (AUI1, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x0F, Local0, BB24) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x11, Local0, BB24) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x14, Local0, BB24) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x16, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x18, Local0, BB24) } } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M02C, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x14])) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x01])) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (PS60 [0x14])) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, DerefOf (PS60 [0x01])) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x14])) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x01])) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x14] )) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (PS60 [0x14])) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), DerefOf (PS60 [0x01])) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x14] )) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x05])) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (PS60 [0x05])) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x05])) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (PS60 [0x05])) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x05] )) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x04])) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (PS60 [0x04])) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x04])) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (PS60 [0x04])) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x04] )) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Method (M02D, 1, NotSerialized) { Store (AUS6 [DerefOf (PS60 [0x14])], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [DerefOf (PS60 [0x14])], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [DerefOf (PS60 [0x14])], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [DerefOf (PS60 [0x14])], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [DerefOf (PS60 [0x14])], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [DerefOf (PS60 [0x14])], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [DerefOf (PS60 [0x14])] , Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [DerefOf (PS60 [0x14])] , Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [DerefOf (PS60 [0x14])] , Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [DerefOf (PS60 [0x14])], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [DerefOf (PS60 [0x14])], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [DerefOf (PS60 [0x14])], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [DerefOf (PS60 [0x14])], Local3) CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [DerefOf (PS60 [0x14])], Local3) CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [DerefOf (PS60 [0x14])], Local3) CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (PS60 [0x14])] , Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (PS60 [0x14])] , Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (PS60 [0x14])] , Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [DerefOf (PS60 [0x14])] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [DerefOf (PS60 [0x14])] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [DerefOf (PS60 [0x14])] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [DerefOf (PS60 [0x14])] CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [DerefOf (PS60 [0x14])] CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [DerefOf (PS60 [0x14])] CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [DerefOf (PS60 [0x14])] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [DerefOf (PS60 [0x14])] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [DerefOf (PS60 [0x14])] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [DerefOf (PS60 [ 0x14])] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [DerefOf (PS60 [ 0x14])] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [DerefOf (PS60 [ 0x14])] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [DerefOf (PS60 [0x14])] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (PS60 [ 0x14])] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (PS60 [ 0x14])] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (PS60 [ 0x14])] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M02E, 1, NotSerialized) { CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, DerefOf (PS60 [0x01])) If (F64) { Fatal (0xFF, 0xFFFFFFFF, DerefOf (PS60 [0x05])) } Else { Fatal (0xFF, 0xFFFFFFFF, DerefOf (PS60 [0x04])) } CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) } /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M02F, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", DerefOf (PS60 [0x14]), 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x14]), 0x0A ) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, DerefOf (PS60 [0x14]), 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, DerefOf (PS60 [0x14]), 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (PS60 [0x14]), 0x0A ) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x14]), 0x0A ) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (PS60 [0x14] ), 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x14] ), 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (PS60 [0x14]), 0x0A ) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), DerefOf (PS60 [0x14]), 0x0A ) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PS60 [0x14] ), 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x14] ), 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x14]), 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (PS60 [0x14])) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PS60 [0x14]) ) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, DerefOf (PS60 [0x14])) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, DerefOf (PS60 [0x14])) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PS60 [0x14]) ) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PS60 [0x14]) ) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PS60 [ 0x14])) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PS60 [ 0x14])) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (PS60 [0x14]) ) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (PS60 [0x14]) ) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PS60 [ 0x14])) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PS60 [ 0x14])) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PS60 [0x14]), Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (PS60 [0x05])) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PS60 [0x05]) ) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (PS60 [0x05])) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (PS60 [0x05])) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PS60 [0x05]) ) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PS60 [0x05]) ) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (PS60 [0x05]) ) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (PS60 [0x05]) ) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x05])) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x05])) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x05])) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x05])) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (PS60 [0x14] ), DerefOf (PS60 [0x05])) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x14] ), DerefOf (PS60 [0x05])) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x05])) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x05])) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PS60 [0x14] ), DerefOf (PS60 [0x05])) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x14] ), DerefOf (PS60 [0x05])) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (PS60 [0x14]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x05]), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (PS60 [0x14]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (PS60 [0x14]), DerefOf (PS60 [0x05]), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x05]), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x05]), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x05]), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x05]), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x05]), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x05]), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x05]), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x05]), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (PS60 [0x04])) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PS60 [0x04]) ) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (PS60 [0x04])) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (PS60 [0x04])) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PS60 [0x04]) ) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PS60 [0x04]) ) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (PS60 [0x04]) ) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (PS60 [0x04]) ) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x04])) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x04])) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x04])) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x04])) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (PS60 [0x14] ), DerefOf (PS60 [0x04])) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x14] ), DerefOf (PS60 [0x04])) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x04])) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x04])) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PS60 [0x14] ), DerefOf (PS60 [0x04])) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x14] ), DerefOf (PS60 [0x04])) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (PS60 [0x14]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x04]), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (PS60 [0x14]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (PS60 [0x14]), DerefOf (PS60 [0x04]), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x04]), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x04]), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x04]), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x04]), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x04]), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (PS60 [0x14]), DerefOf (PS60 [ 0x04]), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x04]), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PS60 [0x14]), DerefOf ( PS60 [0x04]), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Method (M030, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, DerefOf (PS60 [0x14])) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, DerefOf (PS60 [0x14])) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, DerefOf (PS60 [0x14] )) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, DerefOf (PS60 [0x14] )) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, DerefOf ( PS60 [0x14])) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, DerefOf ( PS60 [0x14])) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, DerefOf (PS60 [0x14])) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, DerefOf (PS60 [0x14])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, DerefOf ( PS60 [0x14])) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, DerefOf ( PS60 [0x14])) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (PS60 [0x14])) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (PS60 [0x14])) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64j, 1) */ /* Method(m32j, 1) */ /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M031, 1, NotSerialized) { CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (DerefOf (PS60 [0x01])) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z090, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (DerefOf (PS60 [0x1B])) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z090, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator ??? */ Method (M032, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Derefof(Index(ps60, 1))) */ CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z090, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Method (M033, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, DerefOf (PS60 [0x01])) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z090, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M034, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (DerefOf (PS60 [0x00])) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (DerefOf (PS60 [0x01])) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (DerefOf (PS60 [0x04])) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (DerefOf (PS60 [0x05])) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (PS60 [0x00])) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (PS60 [0x01])) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (PS60 [0x04])) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (PS60 [0x05])) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (DerefOf (PS60 [0x00])) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64k, 1) */ /* Method(m32k, 1) */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M035, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x05) { "0321" } == DerefOf (PS60 [0x01])) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } == DerefOf (PS60 [0x01])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB7 == DerefOf (PS60 [0x01])) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == DerefOf (PS60 [0x01])) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == DerefOf (PS60 [0x01])) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x05) { "0321" } > DerefOf (PS60 [0x01])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } > DerefOf (PS60 [0x01])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } > DerefOf (PS60 [0x01])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } > DerefOf (PS60 [0x01])) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB7 > DerefOf (PS60 [0x01])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB8 > DerefOf (PS60 [0x01])) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x08) > DerefOf (PS60 [0x01])) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) > DerefOf (PS60 [0x01] )) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x05) { "0321" } >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB7 >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB8 >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x08) >= DerefOf (PS60 [0x01])) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) >= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x05) { "0321" } < DerefOf (PS60 [0x01])) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } < DerefOf (PS60 [0x01])) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } < DerefOf (PS60 [0x01])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } < DerefOf (PS60 [0x01])) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB7 < DerefOf (PS60 [0x01])) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB8 < DerefOf (PS60 [0x01])) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x08) < DerefOf (PS60 [0x01])) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) < DerefOf (PS60 [0x01] )) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x05) { "0321" } <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB7 <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB8 <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x08) <= DerefOf (PS60 [0x01])) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) <= DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x05) { "0321" } != DerefOf (PS60 [0x01])) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } != DerefOf (PS60 [0x01])) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } != DerefOf (PS60 [0x01])) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } != DerefOf (PS60 [0x01])) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB7 != DerefOf (PS60 [0x01])) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB8 != DerefOf (PS60 [0x01])) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x08) != DerefOf (PS60 [0x01])) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) != DerefOf (PS60 [ 0x01])) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = (Buffer (0x01) { 0x00 // . } == DerefOf (PS60 [0x0C])) M600 (Arg0, 0x52, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } == DerefOf (PS60 [0x0C])) M600 (Arg0, 0x53, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } > DerefOf (PS60 [0x0C])) M600 (Arg0, 0x54, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } > DerefOf (PS60 [0x0C])) M600 (Arg0, 0x55, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } >= DerefOf (PS60 [0x0C])) M600 (Arg0, 0x56, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } > DerefOf (PS60 [0x0C])) M600 (Arg0, 0x57, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } < DerefOf (PS60 [0x0C])) M600 (Arg0, 0x58, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } < DerefOf (PS60 [0x0C])) M600 (Arg0, 0x59, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } <= DerefOf (PS60 [0x0C])) M600 (Arg0, 0x5A, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } <= DerefOf (PS60 [0x0C])) M600 (Arg0, 0x5B, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } != DerefOf (PS60 [0x0C])) M600 (Arg0, 0x5C, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } != DerefOf (PS60 [0x0C])) M600 (Arg0, 0x5D, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } == DerefOf (PS60 [0x0E])) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } == DerefOf (PS60 [0x0E])) M600 (Arg0, 0x5F, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } > DerefOf (PS60 [0x0E])) M600 (Arg0, 0x60, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > DerefOf (PS60 [0x0E])) M600 (Arg0, 0x61, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } >= DerefOf (PS60 [0x0E])) M600 (Arg0, 0x62, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > DerefOf (PS60 [0x0E])) M600 (Arg0, 0x63, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } < DerefOf (PS60 [0x0E])) M600 (Arg0, 0x64, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } < DerefOf (PS60 [0x0E])) M600 (Arg0, 0x65, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } <= DerefOf (PS60 [0x0E])) M600 (Arg0, 0x66, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } <= DerefOf (PS60 [0x0E])) M600 (Arg0, 0x67, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } != DerefOf (PS60 [0x0E])) M600 (Arg0, 0x68, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } != DerefOf (PS60 [0x0E])) M600 (Arg0, 0x69, Local0, Ones) } /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M036, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (PS60 [0x01])) M600 (Arg0, 0x00, Local0, BB29) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (PS60 [0x01])) M600 (Arg0, 0x01, Local0, BB2A) Local0 = Concatenate (AUB0, DerefOf (PS60 [0x01])) M600 (Arg0, 0x02, Local0, BB29) Local0 = Concatenate (AUB1, DerefOf (PS60 [0x01])) M600 (Arg0, 0x03, Local0, BB2A) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), DerefOf (PS60 [0x01])) M600 (Arg0, 0x04, Local0, BB29) Local0 = Concatenate (DerefOf (RefOf (AUB1)), DerefOf (PS60 [0x01])) M600 (Arg0, 0x05, Local0, BB2A) } Local0 = Concatenate (DerefOf (PAUB [0x00]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x06, Local0, BB29) Local0 = Concatenate (DerefOf (PAUB [0x01]), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x07, Local0, BB2A) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), DerefOf (PS60 [0x01])) M600 (Arg0, 0x08, Local0, BB29) Local0 = Concatenate (M601 (0x03, 0x01), DerefOf (PS60 [0x01])) M600 (Arg0, 0x09, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0A, Local0, BB29) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (PS60 [0x01] )) M600 (Arg0, 0x0B, Local0, BB2A) } Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0C, Local0, BB29) Concatenate (Buffer (0x02) { "Z" }, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0D, Local0, BB2A) Concatenate (AUB0, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0E, Local0, BB29) Concatenate (AUB1, DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x0F, Local0, BB2A) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x10, Local0, BB29) Concatenate (DerefOf (RefOf (AUB1)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x11, Local0, BB2A) } Concatenate (DerefOf (PAUB [0x00]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x12, Local0, BB29) Concatenate (DerefOf (PAUB [0x01]), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x13, Local0, BB2A) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x14, Local0, BB29) Concatenate (M601 (0x03, 0x01), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x15, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x16, Local0, BB29) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), DerefOf (PS60 [0x01]), Local0) M600 (Arg0, 0x17, Local0, BB2A) } /* Boundary Cases */ Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, DerefOf (PS60 [0x0C])) M600 (Arg0, 0x18, Local0, BB2B) Local0 = Concatenate (Buffer (0x02) { "Z" }, DerefOf (PS60 [0x0C])) M600 (Arg0, 0x19, Local0, BB2C) Local1 = 0x00 Local0 = Concatenate (Buffer (Local1){}, DerefOf (PS60 [0x0E])) M600 (Arg0, 0x1A, Local0, BB2D) } /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character, that is impossible to show */ /* with an immediate String constant). */ Method (M037, 1, NotSerialized) { Local0 = ToString (DerefOf (PS60 [0x01]), Ones) M600 (Arg0, 0x00, Local0, BS20) Local0 = ToString (DerefOf (PS60 [0x01]), 0x03) M600 (Arg0, 0x01, Local0, BS21) Local0 = ToString (DerefOf (PS60 [0x01]), AUI0) M600 (Arg0, 0x02, Local0, BS20) Local0 = ToString (DerefOf (PS60 [0x01]), AUI7) M600 (Arg0, 0x03, Local0, BS21) If (Y078) { Local0 = ToString (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI0))) M600 (Arg0, 0x04, Local0, BS20) Local0 = ToString (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI7))) M600 (Arg0, 0x05, Local0, BS21) } Local0 = ToString (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x00] )) M600 (Arg0, 0x06, Local0, BS20) Local0 = ToString (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x07] )) M600 (Arg0, 0x07, Local0, BS21) /* Method returns Length parameter */ Local0 = ToString (DerefOf (PS60 [0x01]), M601 (0x01, 0x00)) M600 (Arg0, 0x08, Local0, BS20) Local0 = ToString (DerefOf (PS60 [0x01]), M601 (0x01, 0x07)) M600 (Arg0, 0x09, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (DerefOf (PS60 [0x01]), DerefOf (M601 (0x01, 0x00)) ) M600 (Arg0, 0x0A, Local0, BS20) Local0 = ToString (DerefOf (PS60 [0x01]), DerefOf (M601 (0x01, 0x07)) ) M600 (Arg0, 0x0B, Local0, BS21) } ToString (DerefOf (PS60 [0x01]), Ones, Local0) M600 (Arg0, 0x0C, Local0, BS20) ToString (DerefOf (PS60 [0x01]), 0x03, Local0) M600 (Arg0, 0x0D, Local0, BS21) ToString (DerefOf (PS60 [0x01]), AUI0, Local0) M600 (Arg0, 0x0E, Local0, BS20) ToString (DerefOf (PS60 [0x01]), AUI7, Local0) M600 (Arg0, 0x0F, Local0, BS21) If (Y078) { ToString (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x10, Local0, BS20) ToString (DerefOf (PS60 [0x01]), DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x11, Local0, BS21) } ToString (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x12, Local0, BS20) ToString (DerefOf (PS60 [0x01]), DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x13, Local0, BS21) /* Method returns Length parameter */ ToString (DerefOf (PS60 [0x01]), M601 (0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS20) ToString (DerefOf (PS60 [0x01]), M601 (0x01, 0x07), Local0) M600 (Arg0, 0x15, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { ToString (DerefOf (PS60 [0x01]), DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x16, Local0, BS20) ToString (DerefOf (PS60 [0x01]), DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x17, Local0, BS21) } /* Boundary Cases */ Local0 = ToString (DerefOf (PS60 [0x0C]), Ones) M600 (Arg0, 0x18, Local0, BS22) Local0 = ToString (DerefOf (PS60 [0x0C]), 0x03) M600 (Arg0, 0x19, Local0, BS22) Local0 = ToString (DerefOf (PS60 [0x0E]), Ones) M600 (Arg0, 0x1A, Local0, BS23) Local0 = ToString (DerefOf (PS60 [0x0E]), 0x03) M600 (Arg0, 0x1B, Local0, BS24) } /* Method(m038, 1) */ /* Method(m039, 1) */ /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (PB60 [0x06])-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (PB60 [0x0A])-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = DerefOf (PB60 [0x06])++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (PB60 [0x0A])++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (PB60 [0x06])) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (PB60 [0x0A])) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (PB60 [0x06])) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (PB60 [0x0A])) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = DerefOf (PB60 [0x06])-- M600 (Arg0, 0x00, Local0, BI12) Local0 = DerefOf (PB60 [0x0A])-- M600 (Arg0, 0x01, Local0, BI18) } /* Increment */ If (Y501) { Local0 = DerefOf (PB60 [0x06])++ M600 (Arg0, 0x02, Local0, BI13) Local0 = DerefOf (PB60 [0x0A])++ M600 (Arg0, 0x03, Local0, BI19) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (DerefOf (PB60 [0x06])) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (DerefOf (PB60 [0x0A])) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (DerefOf (PB60 [0x06])) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (DerefOf (PB60 [0x0A])) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { Local0 = !DerefOf (PB60 [0x00]) M600 (Arg0, 0x00, Local0, Ones) Local0 = !DerefOf (PB60 [0x06]) M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !DerefOf (PB60 [0x0A]) M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !DerefOf (PB60 [0x0A]) M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (PB60 [0x06])) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (PB60 [0x0F])) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (PB60 [0x0F]), Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (DerefOf (PB60 [0x06])) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (DerefOf (PB60 [0x10])) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (PB60 [0x10]), Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (DerefOf (PB60 [0x06])) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (DerefOf (PB60 [0x11])) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (DerefOf (PB60 [0x11]), Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (DerefOf (PB60 [0x06])) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (DerefOf (PB60 [0x12])) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (DerefOf (PB60 [0x12]), Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((DerefOf (PB60 [0x06]) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((DerefOf (PB60 [0x06]) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((DerefOf (PB60 [0x06]) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (DerefOf (PB60 [0x06]) + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (DerefOf (PB60 [0x06]) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (DerefOf (PB60 [0x06]) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + DerefOf (PB60 [0x06])) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + DerefOf (PB60 [0x06])) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + DerefOf (PB60 [0x06])) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + DerefOf (PB60 [0x06])) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((DerefOf (PB60 [0x0A]) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (PB60 [0x0A]) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PB60 [0x0A]) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PB60 [0x0A]) + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (DerefOf (PB60 [0x0A]) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((DerefOf (PB60 [0x0A]) + DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (PB60 [0x06]) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((DerefOf (PB60 [0x0A]) + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (PB60 [0x0A]) + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((DerefOf (PB60 [0x0A]) + DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) + DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) + DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) + DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (DerefOf (PB60 [0x0A]) + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (DerefOf (PB60 [0x0A]) + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) + DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((DerefOf (PB60 [0x0A]) + DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (DerefOf (PB60 [0x06]) + DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (DerefOf (PB60 [0x0A]) + DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (PB60 [0x06]) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (PB60 [0x06]) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) & DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) & DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (PB60 [0x06]) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (PB60 [0x06]) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & DerefOf (PB60 [0x06])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (PB60 [0x06])) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & DerefOf (PB60 [0x06])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (PB60 [0x06])) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (PB60 [0x0A]) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PB60 [0x0A]) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PB60 [0x0A]) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (PB60 [0x0A]) & DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (PB60 [0x06]) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (PB60 [0x0A]) & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((DerefOf (PB60 [0x0A]) & DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) & DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) & DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (DerefOf (PB60 [0x0A]) & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) & DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((DerefOf (PB60 [0x0A]) & DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (DerefOf (PB60 [0x06]) & DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (DerefOf (PB60 [0x0A]) & DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PB60 [0x06]) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PB60 [0x06]) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PB60 [0x06]) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) / DerefOf (PAUI [0x01]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) / DerefOf (M602 (0x01, 0x01, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (PB60 [0x06]), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (DerefOf (PB60 [0x06]), 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (PB60 [0x06]), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (DerefOf (PB60 [0x06]), AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (PB60 [0x06]), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (DerefOf (PB60 [0x06]), M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PB60 [0x0A]) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PB60 [0x0A]) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PB60 [0x0A]) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) / DerefOf (PAUI [0x04]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) / DerefOf (M602 (0x01, 0x04, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (PB60 [0x0A]), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PB60 [0x0A]), 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (PB60 [0x0A]), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PB60 [0x0A]), AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (PB60 [0x0A]), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PB60 [0x0A]), M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) / DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PB60 [0x0A]) / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PB60 [0x0A]) / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PB60 [0x0A]) / DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) / DerefOf (PAUI [0x14]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) / DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) / DerefOf (M602 (0x01, 0x14, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (DerefOf (PB60 [0x0A]), 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (DerefOf (PB60 [0x0A]), 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (DerefOf (PB60 [0x0A]), AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (DerefOf (PB60 [0x0A]), AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (DerefOf (PB60 [0x0A]), M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (DerefOf (PB60 [0x0A]), M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) / DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) / DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A]), Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06]), Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PB60 [0x06]) % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PB60 [0x06]) % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PB60 [0x06]) % DerefOf (PAUI [0x10]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) % DerefOf (PAUI [0x11]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) % DerefOf (M602 (0x01, 0x10, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) % DerefOf (M602 (0x01, 0x11, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (PB60 [0x06]) % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (PB60 [0x06]) % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (PB60 [0x06]) % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % DerefOf (PB60 [0x06])) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % DerefOf (PB60 [0x06])) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % DerefOf (PB60 [0x06])) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % DerefOf (PB60 [0x06])) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PB60 [0x0A]) % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((DerefOf (PB60 [0x0A]) % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PB60 [0x0A]) % DerefOf (PAUI [0x0D]) ), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) % DerefOf (PAUI [0x0F]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) % DerefOf (M602 (0x01, 0x0D, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) % DerefOf (M602 (0x01, 0x0F, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (PB60 [0x0A]) % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (PB60 [0x0A]) % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (PB60 [0x0A]) % DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (DerefOf (PB60 [0x06]) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((DerefOf (PB60 [0x0A]) % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((DerefOf (PB60 [0x0A]) % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((DerefOf (PB60 [0x0A]) % DerefOf (PAUI [0x15]) ), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) % DerefOf (PAUI [0x16]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) % DerefOf (M602 (0x01, 0x15, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) % DerefOf (M602 (0x01, 0x16, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (DerefOf (PB60 [0x0A]) % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (DerefOf (PB60 [0x0A]) % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) % DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((DerefOf (PB60 [0x0A]) % DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (DerefOf (PB60 [0x06]) % DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x0A]) % DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((DerefOf (PB60 [0x06]) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((DerefOf (PB60 [0x06]) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PB60 [0x06]) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (DerefOf (PB60 [0x06]) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (DerefOf (PB60 [0x06]) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PB60 [0x06]) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * DerefOf (PB60 [0x06])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (PB60 [0x06])) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * DerefOf (PB60 [0x06])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (PB60 [0x06])) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (PB60 [0x0A]) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PB60 [0x0A]) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PB60 [0x0A]) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((DerefOf (PB60 [0x0A]) * DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (PB60 [0x06]) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (PB60 [0x0A]) * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((DerefOf (PB60 [0x0A]) * DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) * DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) * DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (DerefOf (PB60 [0x0A]) * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) * DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((DerefOf (PB60 [0x0A]) * DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (DerefOf (PB60 [0x06]) * DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (DerefOf (PB60 [0x0A]) * DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (PB60 [0x06]), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x06]), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (DerefOf (PB60 [0x06]), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x06]), AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (DerefOf (PB60 [0x06]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x06]), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PB60 [0x06]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x06]), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (DerefOf (PB60 [0x06]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x06]), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (DerefOf (PB60 [0x06]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x06]), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (PB60 [0x06])) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (PB60 [0x06])) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, DerefOf (PB60 [0x06])) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (PB60 [0x06])) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x06])) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (PB60 [0x06])) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (PB60 [0x06])) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (PB60 [0x06])) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (PB60 [0x0A]), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (DerefOf (PB60 [0x0A]), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (PB60 [0x0A]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PB60 [0x0A]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (DerefOf (PB60 [0x0A]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (PB60 [0x0A]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (DerefOf (PB60 [0x0A]), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (DerefOf (PB60 [0x0A]), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x12] )) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (DerefOf (PB60 [0x0A]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (DerefOf (PB60 [0x0A]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (DerefOf (PB60 [0x0A]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (DerefOf (PB60 [0x0A]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (PB60 [0x06]), 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PB60 [0x06]), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (PB60 [0x06]), AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PB60 [0x06]), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (PB60 [0x06]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PB60 [0x06]), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (PB60 [0x06]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PB60 [0x06]), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (PB60 [0x06]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PB60 [0x06]), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PB60 [0x06]), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PB60 [0x06]), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (PB60 [0x06]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PB60 [0x06]), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PB60 [0x06]), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (PB60 [0x06])) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (PB60 [0x06])) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (PB60 [0x06])) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, DerefOf (PB60 [0x06])) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x06])) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (PB60 [0x06])) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (PB60 [0x06])) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), DerefOf (PB60 [0x06])) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (PB60 [0x0A]), 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (PB60 [0x0A]), AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x13] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (PB60 [0x0A]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (PB60 [0x0A]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PB60 [0x0A]), 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (PB60 [0x0A]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PB60 [0x0A]), AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (PB60 [0x0A]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PB60 [0x0A]), M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (DerefOf (PB60 [0x0A]), 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (DerefOf (PB60 [0x0A]), AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x12] )) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (DerefOf (PB60 [0x0A]), M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (DerefOf (PB60 [0x0A]), 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (DerefOf (PB60 [0x0A]), 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (DerefOf (PB60 [0x0A]), AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (DerefOf (PB60 [0x0A]), AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (DerefOf (PB60 [0x0A]), DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (DerefOf (PB60 [0x0A]), DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (DerefOf (PB60 [0x0A]), M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (DerefOf (PB60 [0x0A]), M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (DerefOf (PB60 [0x0A]), DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (DerefOf (PB60 [0x06]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (DerefOf (PB60 [0x0A]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (PB60 [0x06]) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (PB60 [0x06]) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PB60 [0x06]) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) | DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) | DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PB60 [0x06]) | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (PB60 [0x06]) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PB60 [0x06]) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (PB60 [0x06])) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (PB60 [0x06])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (PB60 [0x06])) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | DerefOf (PB60 [0x06])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((DerefOf (PB60 [0x0A]) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (PB60 [0x0A]) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PB60 [0x0A]) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) | DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) | DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PB60 [0x0A]) | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (DerefOf (PB60 [0x0A]) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((DerefOf (PB60 [0x0A]) | DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (PB60 [0x06]) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((DerefOf (PB60 [0x0A]) | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (PB60 [0x0A]) | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((DerefOf (PB60 [0x0A]) | DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) | DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) | DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) | DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PB60 [0x0A]) | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (DerefOf (PB60 [0x0A]) | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) | DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((DerefOf (PB60 [0x0A]) | DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (DerefOf (PB60 [0x06]) | DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (DerefOf (PB60 [0x0A]) | DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((DerefOf (PB60 [0x06]) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((DerefOf (PB60 [0x06]) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((DerefOf (PB60 [0x06]) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (DerefOf (PB60 [0x06]) << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (DerefOf (PB60 [0x06]) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (DerefOf (PB60 [0x06]) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((DerefOf (PB60 [0x0A]) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((DerefOf (PB60 [0x0A]) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((DerefOf (PB60 [0x0A]) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (PB60 [0x0A]) << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (DerefOf (PB60 [0x0A]) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (PB60 [0x0A]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (DerefOf (PB60 [0x06]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((DerefOf (PB60 [0x0A]) << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((DerefOf (PB60 [0x0A]) << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((DerefOf (PB60 [0x0A]) << DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) << DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) << DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) << DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (DerefOf (PB60 [0x0A]) << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (DerefOf (PB60 [0x0A]) << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((DerefOf (PB60 [0x0A]) << DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (DerefOf (PB60 [0x06]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (DerefOf (PB60 [0x0A]) << DerefOf (PB60 [0x0E])) M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((DerefOf (PB60 [0x06]) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((DerefOf (PB60 [0x06]) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((DerefOf (PB60 [0x06]) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (DerefOf (PB60 [0x06]) >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (DerefOf (PB60 [0x06]) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (DerefOf (PB60 [0x06]) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((DerefOf (PB60 [0x0A]) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((DerefOf (PB60 [0x0A]) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((DerefOf (PB60 [0x0A]) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (PB60 [0x0A]) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (DerefOf (PB60 [0x0A]) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (DerefOf (PB60 [0x06]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((DerefOf (PB60 [0x0A]) >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((DerefOf (PB60 [0x0A]) >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((DerefOf (PB60 [0x0A]) >> DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) >> DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) >> DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) >> DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (DerefOf (PB60 [0x0A]) >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (DerefOf (PB60 [0x0A]) >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> DerefOf (PB60 [0x0E])), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((DerefOf (PB60 [0x0A]) >> DerefOf (PB60 [0x0E]) ), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (DerefOf (PB60 [0x06]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (DerefOf (PB60 [0x0A]) >> DerefOf (PB60 [0x0E])) M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((DerefOf (PB60 [0x06]) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((DerefOf (PB60 [0x06]) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((DerefOf (PB60 [0x06]) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (DerefOf (PB60 [0x06]) - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (DerefOf (PB60 [0x06]) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (DerefOf (PB60 [0x06]) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - DerefOf (PB60 [0x06])) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - DerefOf (PB60 [0x06])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - DerefOf (PB60 [0x06])) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - DerefOf (PB60 [0x06])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((DerefOf (PB60 [0x0A]) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (PB60 [0x0A]) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PB60 [0x0A]) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PB60 [0x0A]) - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (DerefOf (PB60 [0x0A]) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((DerefOf (PB60 [0x0A]) - DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (DerefOf (PB60 [0x06]) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((DerefOf (PB60 [0x0A]) - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (PB60 [0x0A]) - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((DerefOf (PB60 [0x0A]) - DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) - DerefOf (PAUI [0x06]) ), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) - DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) - DerefOf (M602 (0x01, 0x06, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (DerefOf (PB60 [0x0A]) - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (DerefOf (PB60 [0x0A]) - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) - DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((DerefOf (PB60 [0x0A]) - DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (DerefOf (PB60 [0x06]) - DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (DerefOf (PB60 [0x0A]) - DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x06]) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((DerefOf (PB60 [0x06]) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (PB60 [0x06]) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PB60 [0x06]) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) ^ DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((DerefOf (PB60 [0x06]) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x06]) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((DerefOf (PB60 [0x06]) ^ DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PB60 [0x06]) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (DerefOf (PB60 [0x06]) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PB60 [0x06]) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (DerefOf (PB60 [0x06]) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ DerefOf (PB60 [0x06])), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((DerefOf (PB60 [0x0A]) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (PAUI [0x13]) ), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (M602 (0x01, 0x13, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PB60 [0x0A]) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (DerefOf (PB60 [0x0A]) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (PB60 [0x06]) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((DerefOf (PB60 [0x0A]) ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((DerefOf (PB60 [0x0A]) ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (PAUI [0x05]) ), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (PAUI [0x12]) ), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((DerefOf (PB60 [0x0A]) ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (M602 (0x01, 0x05, 0x01)) ), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (M602 (0x01, 0x12, 0x01)) ), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PB60 [0x0A]) ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (DerefOf (PB60 [0x0A]) ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ DerefOf (PB60 [0x0A])), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((DerefOf (PB60 [0x06]) ^ DerefOf (PB60 [0x0A]) ), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((DerefOf (PB60 [0x0A]) ^ DerefOf (PB60 [0x06]) ), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (DerefOf (PB60 [0x06]) ^ DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (DerefOf (PB60 [0x0A]) ^ DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PB60 [0x06]) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (PB60 [0x06]) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PB60 [0x06]) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (PB60 [0x06]) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PB60 [0x06]) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (PB60 [0x06]) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PB60 [0x06]) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (PB60 [0x06]) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x06]) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (PB60 [0x06]) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x06]) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PB60 [0x06]) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (PB60 [0x06])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (PB60 [0x06])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (PB60 [0x06])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (PB60 [0x06])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (PB60 [0x06])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (PB60 [0x06])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (PB60 [0x06] )) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (PB60 [0x06] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (PB60 [0x06])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (PB60 [0x06])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (PB60 [0x06] )) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (PB60 [0x06] )) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PB60 [0x0A]) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (PB60 [0x06]) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (PB60 [0x06] )) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PB60 [0x0A]) && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && DerefOf (PB60 [0x0A])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (PB60 [0x06]) && DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) && DerefOf (PB60 [0x06] )) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PB60 [0x00]) || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (DerefOf (PB60 [0x00]) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PB60 [0x00]) || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (DerefOf (PB60 [0x00]) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PB60 [0x00]) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (DerefOf (PB60 [0x00]) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PB60 [0x00]) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Zero) Local0 = (DerefOf (PB60 [0x00]) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x00]) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (DerefOf (PB60 [0x00]) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x00]) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PB60 [0x00]) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (PB60 [0x00])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || DerefOf (PB60 [0x00])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (PB60 [0x00])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || DerefOf (PB60 [0x00])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (PB60 [0x00])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (PB60 [0x00])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (PB60 [0x00] )) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (PB60 [0x00] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (PB60 [0x00])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || DerefOf (PB60 [0x00])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (PB60 [0x00] )) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (PB60 [0x00] )) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PB60 [0x0A]) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (PB60 [0x00]) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (PB60 [0x00] )) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (DerefOf (PB60 [0x0A]) || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (PAUI [0x05] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (PAUI [0x06] )) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (DerefOf (PB60 [0x0A]) || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || DerefOf (PB60 [0x0A])) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (DerefOf (PB60 [0x00]) || DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x18, Local0, Ones) Local0 = (DerefOf (PB60 [0x0A]) || DerefOf (PB60 [0x00] )) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { /* LEqual */ Local0 = (0xD650A284 == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == DerefOf (PB60 [0x0A])) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > DerefOf (PB60 [0x0A])) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < DerefOf (PB60 [0x0A])) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= DerefOf (PB60 [0x0A])) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != DerefOf (PB60 [0x0A])) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == DerefOf (PB60 [0x06])) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == DerefOf (PB60 [0x06])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == DerefOf (PB60 [0x06])) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == DerefOf (PB60 [0x06])) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == DerefOf (PB60 [0x06])) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == DerefOf (PB60 [0x06])) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > DerefOf (PB60 [0x06])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > DerefOf (PB60 [0x06])) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > DerefOf (PB60 [0x06])) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > DerefOf (PB60 [0x06])) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > DerefOf (PB60 [0x06])) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > DerefOf (PB60 [0x06])) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < DerefOf (PB60 [0x06])) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < DerefOf (PB60 [0x06])) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < DerefOf (PB60 [0x06])) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < DerefOf (PB60 [0x06])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < DerefOf (PB60 [0x06])) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < DerefOf (PB60 [0x06])) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != DerefOf (PB60 [0x06])) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != DerefOf (PB60 [0x06])) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != DerefOf (PB60 [0x06])) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != DerefOf (PB60 [0x06])) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != DerefOf (PB60 [0x06])) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != DerefOf (PB60 [0x06])) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (PB60 [0x06])) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, DerefOf (PB60 [0x06])) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PB60 [0x06])) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (PB60 [0x06])) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, DerefOf (PB60 [0x06])) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, DerefOf (PB60 [0x06])) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PB60 [0x06])) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (PB60 [0x06])) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x06])) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, DerefOf (PB60 [0x06])) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0E])) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x06])) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0E] )) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (PB60 [0x0E])) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), DerefOf (PB60 [0x06])) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0E] )) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0A] )) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Method (M067, 1, NotSerialized) { Store (AUS6 [DerefOf (PB60 [0x0E])], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [DerefOf (PB60 [0x0E])], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [DerefOf (PB60 [0x0E])], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [DerefOf (PB60 [0x0E])], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [DerefOf (PB60 [0x0E])], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [DerefOf (PB60 [0x0E])], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [DerefOf (PB60 [0x0E])] , Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [DerefOf (PB60 [0x0E])] , Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [DerefOf (PB60 [0x0E])] , Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [DerefOf (PB60 [0x0E])], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [DerefOf (PB60 [0x0E])], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [DerefOf (PB60 [0x0E])], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [DerefOf (PB60 [0x0E])], Local3) CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [DerefOf (PB60 [0x0E])], Local3) CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [DerefOf (PB60 [0x0E])], Local3) CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (PB60 [0x0E])] , Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (PB60 [0x0E])] , Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (PB60 [0x0E])] , Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [DerefOf (PB60 [0x0E])] CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [DerefOf (PB60 [0x0E])] CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [DerefOf (PB60 [0x0E])] CH04 (Arg0, 0x00, 0x55, Z090, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [DerefOf (PB60 [ 0x0E])] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [DerefOf (PB60 [ 0x0E])] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [DerefOf (PB60 [ 0x0E])] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [DerefOf (PB60 [0x0E])] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [DerefOf (PB60 [ 0x0E])] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [DerefOf (PB60 [ 0x0E])] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [DerefOf (PB60 [ 0x0E])] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, DerefOf (PB60 [0x06])) If (F64) { Fatal (0xFF, 0xFFFFFFFF, DerefOf (PB60 [0x0A])) } Else { Fatal (0xFF, 0xFFFFFFFF, DerefOf (PB60 [0x0A])) } CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) } /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", DerefOf (PB60 [0x0E]), 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0E]), 0x0A ) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, DerefOf (PB60 [0x0E]), 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, DerefOf (PB60 [0x0E]), 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (PB60 [0x0E]), 0x0A ) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0E]), 0x0A ) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (PB60 [0x0E] ), 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0E] ), 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (PB60 [0x0E]), 0x0A ) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), DerefOf (PB60 [0x0E]), 0x0A ) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PB60 [0x0E] ), 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0E] ), 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0E]), 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PB60 [0x0E]) ) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PB60 [0x0E]) ) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PB60 [0x0E]) ) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PB60 [ 0x0E])) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PB60 [ 0x0E])) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (PB60 [0x0E]) ) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (PB60 [0x0E]) ) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PB60 [ 0x0E])) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PB60 [ 0x0E])) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PB60 [0x0E]), Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (PB60 [0x0E] ), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0E] ), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PB60 [0x0E] ), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0E] ), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (PB60 [0x0E]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (PB60 [0x0E]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (PB60 [0x0E]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A]), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A]), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A]), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A]), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, DerefOf (PB60 [0x0A])) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, DerefOf (PB60 [0x0A]) ) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A])) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), DerefOf (PB60 [0x0E] ), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0E] ), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A])) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PB60 [0x0E] ), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0E] ), DerefOf (PB60 [0x0A])) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", DerefOf (PB60 [0x0E]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, DerefOf (PB60 [0x0E]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, DerefOf (PB60 [0x0E]), DerefOf (PB60 [0x0A]), Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A]), Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A]), Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), DerefOf (PB60 [0x0E]), DerefOf (PB60 [ 0x0A]), Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A]), Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), DerefOf (PB60 [0x0E]), DerefOf ( PB60 [0x0A]), Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, DerefOf (PB60 [0x0E] )) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, DerefOf (PB60 [0x0E] )) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, DerefOf ( PB60 [0x0E])) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, DerefOf ( PB60 [0x0E])) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, DerefOf ( PB60 [0x0E])) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, DerefOf ( PB60 [0x0E])) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, DerefOf (PB60 [0x0E])) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64t, 1) */ /* Method(m32t, 1) */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (DerefOf (PB60 [0x06])) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z090, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (DerefOf (PB60 [0x13])) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z090, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Derefof(Index(pb60, 6))) */ CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z090, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, DerefOf (PB60 [0x06])) CH03 (Arg0, Z090, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z090, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (DerefOf (PB60 [0x00])) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (DerefOf (PB60 [0x06])) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (DerefOf (PB60 [0x0A])) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (DerefOf (PB60 [0x0A])) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (PB60 [0x00])) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (PB60 [0x06])) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (PB60 [0x0A])) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (DerefOf (PB60 [0x0A])) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (DerefOf (PB60 [0x00])) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64u, 1) */ /* Method(m32u, 1) */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M06F, 1, NotSerialized) { /* LEqual */ Local0 = ("21 03 00" == DerefOf (PB60 [0x06])) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("21 03 01" == DerefOf (PB60 [0x06])) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS9 == DerefOf (PB60 [0x06])) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUSA == DerefOf (PB60 [0x06])) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x0A) == DerefOf (PB60 [0x06])) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) == DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("21 03 00" > DerefOf (PB60 [0x06])) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("21 03 01" > DerefOf (PB60 [0x06])) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("21 03 0 " > DerefOf (PB60 [0x06])) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("21 03 00q" > DerefOf (PB60 [0x06])) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS9 > DerefOf (PB60 [0x06])) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUSA > DerefOf (PB60 [0x06])) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x0A) > DerefOf (PB60 [0x06])) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) > DerefOf (PB60 [0x06] )) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("21 03 00" >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("21 03 01" >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("21 03 0 " >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("21 03 00q" >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS9 >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUSA >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x0A) >= DerefOf (PB60 [0x06])) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) >= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("21 03 00" < DerefOf (PB60 [0x06])) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("21 03 01" < DerefOf (PB60 [0x06])) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("21 03 0 " < DerefOf (PB60 [0x06])) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("21 03 00q" < DerefOf (PB60 [0x06])) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS9 < DerefOf (PB60 [0x06])) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUSA < DerefOf (PB60 [0x06])) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x0A) < DerefOf (PB60 [0x06])) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) < DerefOf (PB60 [0x06] )) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("21 03 00" <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("21 03 01" <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("21 03 0 " <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("21 03 00q" <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS9 <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUSA <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x0A) <= DerefOf (PB60 [0x06])) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) <= DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("21 03 00" != DerefOf (PB60 [0x06])) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("21 03 01" != DerefOf (PB60 [0x06])) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("21 03 0 " != DerefOf (PB60 [0x06])) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("21 03 00q" != DerefOf (PB60 [0x06])) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS9 != DerefOf (PB60 [0x06])) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUSA != DerefOf (PB60 [0x06])) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x0A) != DerefOf (PB60 [0x06])) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) != DerefOf (PB60 [ 0x06])) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" == DerefOf (PB60 [0x0C])) M600 (Arg0, 0x52, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" == DerefOf (PB60 [0x0C])) M600 (Arg0, 0x53, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" > DerefOf (PB60 [0x0C])) M600 (Arg0, 0x54, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" > DerefOf (PB60 [0x0C])) M600 (Arg0, 0x55, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" >= DerefOf (PB60 [0x0C])) M600 (Arg0, 0x56, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" >= DerefOf (PB60 [0x0C])) M600 (Arg0, 0x57, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" < DerefOf (PB60 [0x0C])) M600 (Arg0, 0x58, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" < DerefOf (PB60 [0x0C])) M600 (Arg0, 0x59, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" <= DerefOf (PB60 [0x0C])) M600 (Arg0, 0x5A, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" <= DerefOf (PB60 [0x0C])) M600 (Arg0, 0x5B, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" != DerefOf (PB60 [0x0C])) M600 (Arg0, 0x5C, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" != DerefOf (PB60 [0x0C])) M600 (Arg0, 0x5D, Local0, Ones) } /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M070, 1, NotSerialized) { Local0 = Concatenate ("", DerefOf (PB60 [0x06])) M600 (Arg0, 0x00, Local0, BS25) Local0 = Concatenate ("1234q", DerefOf (PB60 [0x06])) M600 (Arg0, 0x01, Local0, BS26) Local0 = Concatenate (AUS0, DerefOf (PB60 [0x06])) M600 (Arg0, 0x02, Local0, BS25) Local0 = Concatenate (AUS1, DerefOf (PB60 [0x06])) M600 (Arg0, 0x03, Local0, BS26) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), DerefOf (PB60 [0x06])) M600 (Arg0, 0x04, Local0, BS25) Local0 = Concatenate (DerefOf (RefOf (AUS1)), DerefOf (PB60 [0x06])) M600 (Arg0, 0x05, Local0, BS26) } Local0 = Concatenate (DerefOf (PAUS [0x00]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x06, Local0, BS25) Local0 = Concatenate (DerefOf (PAUS [0x01]), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x07, Local0, BS26) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), DerefOf (PB60 [0x06])) M600 (Arg0, 0x08, Local0, BS25) Local0 = Concatenate (M601 (0x02, 0x01), DerefOf (PB60 [0x06])) M600 (Arg0, 0x09, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0A, Local0, BS25) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (PB60 [0x06] )) M600 (Arg0, 0x0B, Local0, BS26) } Concatenate ("", DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0C, Local0, BS25) Concatenate ("1234q", DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0D, Local0, BS26) Concatenate (AUS0, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0E, Local0, BS25) Concatenate (AUS1, DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x0F, Local0, BS26) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x10, Local0, BS25) Concatenate (DerefOf (RefOf (AUS1)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x11, Local0, BS26) } Concatenate (DerefOf (PAUS [0x00]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x12, Local0, BS25) Concatenate (DerefOf (PAUS [0x01]), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x13, Local0, BS26) /* Method returns String */ Concatenate (M601 (0x02, 0x00), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x14, Local0, BS25) Concatenate (M601 (0x02, 0x01), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x15, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x16, Local0, BS25) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), DerefOf (PB60 [0x06]), Local0) M600 (Arg0, 0x17, Local0, BS26) } /* Boundary Cases */ Local0 = Concatenate ("", DerefOf (PB60 [0x0C])) M600 (Arg0, 0x18, Local0, BS27) } /* Method(m071, 1) */ /* Method(m072, 1) */ /* * Begin of the test body */ /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ If (F64) { Concatenate (__METHOD__, "-m640", Local0) SRMT (Local0) M640 (Local0) } Else { Concatenate (__METHOD__, "-m320", Local0) SRMT (Local0) M320 (Local0) } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m641", Local0) SRMT (Local0) M641 (Local0) } Else { Concatenate (__METHOD__, "-m321", Local0) SRMT (Local0) M321 (Local0) } /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64b", Local0) SRMT (Local0) M64B (Local0) } Else { Concatenate (__METHOD__, "-m32b", Local0) SRMT (Local0) M32B (Local0) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m000", Local0) SRMT (Local0) M000 (Local0) /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64c", Local0) SRMT (Local0) M64C (Local0) } Else { Concatenate (__METHOD__, "-m32c", Local0) SRMT (Local0) M32C (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64D (Concatenate (__METHOD__, "-m64d")) } Else { M32D (Concatenate (__METHOD__, "-m32d")) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64E (Concatenate (__METHOD__, "-m64e")) } Else { M32E (Concatenate (__METHOD__, "-m32e")) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m02b", Local0) SRMT (Local0) M02B (Local0) If (F64) { Concatenate (__METHOD__, "-m64f", Local0) SRMT (Local0) M64F (Local0) } Else { Concatenate (__METHOD__, "-m32f", Local0) SRMT (Local0) M32F (Local0) } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64g", Local0) SRMT (Local0) M64G (Local0) } Else { Concatenate (__METHOD__, "-m32g", Local0) SRMT (Local0) M32G (Local0) } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m02c", Local0) SRMT (Local0) M02C (Local0) If (F64) { Concatenate (__METHOD__, "-m64h", Local0) SRMT (Local0) M64H (Local0) } Else { Concatenate (__METHOD__, "-m32h", Local0) SRMT (Local0) M32H (Local0) } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m02d", Local0) SRMT (Local0) M02D (Local0) /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m02e", Local0) SRMT (Local0) M02E (Local0) /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m02f", Local0) SRMT (Local0) M02F (Local0) If (F64) { Concatenate (__METHOD__, "-m64i", Local0) SRMT (Local0) M64I (Local0) } Else { Concatenate (__METHOD__, "-m32i", Local0) SRMT (Local0) M32I (Local0) } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m030", Local0) SRMT (Local0) M030 (Local0) /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m031", Local0) SRMT (Local0) M031 (Local0) /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m032", Local0) SRMT(Local0) m032(Local0) */ /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m033", Local0) SRMT (Local0) M033 (Local0) /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m034", Local0) SRMT (Local0) If (Y111) { M034 (Local0) } Else { BLCK () } /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m035", Local0) SRMT (Local0) M035 (Local0) /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Concatenate (__METHOD__, "-m036", Local0) SRMT (Local0) M036 (Local0) /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character) */ Concatenate (__METHOD__, "-m037", Local0) SRMT (Local0) M037 (Local0) /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m06c", Local0) SRMT(Local0) m06c(Local0) */ /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) If (Y111) { M06E (Local0) } Else { BLCK () } /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Concatenate (__METHOD__, "-m06f", Local0) SRMT (Local0) M06F (Local0) /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Concatenate (__METHOD__, "-m070", Local0) SRMT (Local0) M070 (Local0) /* Check consistency of the test Named Objects */ /* in the root Scope of the Global ACPI namespace */ Concatenate (__METHOD__, "-m606", Local0) SRMT (Local0) M606 (Local0) } /* Run-method */ Method (OPR3, 0, NotSerialized) { Debug = "TEST: OPR3, Source Operand" M615 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/FULL/0000700000175000017500000000000014773714153027610 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/FULL/DECL.asl0000700000175000017500000000541314773714153031026 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include("../../../../../../runtime/collections/complex/operand/tests/oconst/oconst.asl") Include("../../../../../../runtime/collections/complex/operand/tests/onamedglob/onamedglob1.asl") Include("../../../../../../runtime/collections/complex/operand/tests/onamedglob/onamedglob2.asl") Include("../../../../../../runtime/collections/complex/operand/tests/onamedloc/onamedloc1.asl") Include("../../../../../../runtime/collections/complex/operand/tests/onamedloc/onamedloc2.asl") Include("../../../../../../runtime/collections/complex/operand/tests/opackageel/opackageel.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oreftonamed/oreftonamed1.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oreftonamed/oreftonamed2.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oconversion/oconversion.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oarg/oarg.asl") Include("../../../../../../runtime/collections/complex/operand/tests/olocal/olocal.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oreturn/oreturn.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oreftopackageel/oreftopackageel.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/FULL/RUN.asl0000700000175000017500000000473714773714153030773 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Store("COLLECTION: all tests of Source Operand", Debug) Include("../../../../../../runtime/collections/complex/operand/tests/oconst/RUN.asl") Include("../../../../../../runtime/collections/complex/operand/tests/onamedglob/RUN.asl") Include("../../../../../../runtime/collections/complex/operand/tests/onamedloc/RUN.asl") Include("../../../../../../runtime/collections/complex/operand/tests/opackageel/RUN.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oreftonamed/RUN.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oarg/RUN.asl") Include("../../../../../../runtime/collections/complex/operand/tests/olocal/RUN.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oreturn/RUN.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oreftopackageel/RUN.asl") Include("../../../../../../runtime/collections/complex/operand/tests/oconversion/RUN.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/FULL/MAIN.asl0000700000175000017500000000461614773714153031047 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock( "operand.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../../../runtime/cntl/DECL_6UP.asl") Include("../../../../../../runtime/common/operations.asl") Include("../../../../../../runtime/common/conversion/oproc.asl") Include("../../../../../../runtime/common/conversion/otest.asl") Include("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include("../../../../../../runtime/collections/complex/operand/tests/FULL/DECL.asl") Method(MAIN) { // Initialization STRT(0) // Run verification methods Include("../../../../../../runtime/collections/complex/operand/tests/FULL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/olocal/0000700000175000017500000000000014773714154030320 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/olocal/RUN.asl0000700000175000017500000000361514773714154031475 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Source Operand, local named object data", TCLC, 0x04, W010)) { OPR6 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/olocal/MAIN.asl0000700000175000017500000000427614773714153031560 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("olocal", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/olocal/olocal.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/olocal/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/olocal/Makefile0000700000175000017500000000022614773714153031762 0ustar ivanhuivanhu# olocal AMLMOD= olocal COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/olocal/olocal.asl0000700000175000017500000327112014773714153032302 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to Named Objects * in the current Scope of the Global ACPI namespace. */ Name (Z117, 0x75) Method (M618, 0, Serialized) { /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M640, 1, NotSerialized) { Local1 = 0xFE7CB391D650A284 /* LEqual */ Local0 = ("FE7CB391D650A284" == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("fE7CB391D650A284" == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS4 == Local1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS5 == Local1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) == Local1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) == Local1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) == Local1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) == Local1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x05) == Local1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) == Local1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) == Local1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("FE7CB391D650A284" > Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("fE7CB391D650A284" > Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("FE7CB391D650A28 " > Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("FE7CB391D650A284q" > Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS4 > Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS5 > Local1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) > Local1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) > Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) > Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x05) > Local1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) > Local1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("FE7CB391D650A284" >= Local1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("fE7CB391D650A284" >= Local1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("FE7CB391D650A28 " >= Local1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("FE7CB391D650A284q" >= Local1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS4 >= Local1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS5 >= Local1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) >= Local1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) >= Local1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) >= Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) >= Local1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x05) >= Local1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) >= Local1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) >= Local1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("FE7CB391D650A284" < Local1) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("fE7CB391D650A284" < Local1) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("FE7CB391D650A28 " < Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("FE7CB391D650A284q" < Local1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS4 < Local1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS5 < Local1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) < Local1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) < Local1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) < Local1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) < Local1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) < Local1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x05) < Local1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) < Local1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) < Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("FE7CB391D650A284" <= Local1) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("fE7CB391D650A284" <= Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("FE7CB391D650A28 " <= Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("FE7CB391D650A284q" <= Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS4 <= Local1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS5 <= Local1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) <= Local1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) <= Local1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) <= Local1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) <= Local1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) <= Local1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x05) <= Local1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) <= Local1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) <= Local1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("FE7CB391D650A284" != Local1) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("fE7CB391D650A284" != Local1) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("FE7CB391D650A28 " != Local1) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("FE7CB391D650A284q" != Local1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS4 != Local1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS5 != Local1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) != Local1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) != Local1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) != Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) != Local1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) != Local1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x05) != Local1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) != Local1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) != Local1) M600 (Arg0, 0x51, Local0, Ones) } } Method (M320, 1, NotSerialized) { Local1 = 0xC179B3FE /* LEqual */ Local0 = ("C179B3FE" == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("c179B3FE" == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS3 == Local1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS2 == Local1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) == Local1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) == Local1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) == Local1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) == Local1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x02) == Local1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) == Local1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) == Local1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("C179B3FE" > Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("c179B3FE" > Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("C179B3F " > Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("C179B3FEq" > Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS3 > Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS2 > Local1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) > Local1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) > Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) > Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x02) > Local1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) > Local1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("C179B3FE" >= Local1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("c179B3FE" >= Local1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("C179B3F " >= Local1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("C179B3FEq" >= Local1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS3 >= Local1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS2 >= Local1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) >= Local1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) >= Local1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) >= Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) >= Local1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x02) >= Local1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) >= Local1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) >= Local1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("C179B3FE" < Local1) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("c179B3FE" < Local1) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("C179B3F " < Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("C179B3FEq" < Local1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS3 < Local1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS2 < Local1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) < Local1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) < Local1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) < Local1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) < Local1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) < Local1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x02) < Local1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) < Local1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) < Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("C179B3FE" <= Local1) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("c179B3FE" <= Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("C179B3F " <= Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("C179B3FEq" <= Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS3 <= Local1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS2 <= Local1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) <= Local1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) <= Local1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) <= Local1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) <= Local1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) <= Local1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x02) <= Local1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) <= Local1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) <= Local1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("C179B3FE" != Local1) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("c179B3FE" != Local1) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("C179B3F " != Local1) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("C179B3FEq" != Local1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS3 != Local1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS2 != Local1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) != Local1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) != Local1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) != Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) != Local1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) != Local1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x02) != Local1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) != Local1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) != Local1) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M641, 1, NotSerialized) { Local1 = 0xFE7CB391D650A284 Local0 = Concatenate ("", Local1) M600 (Arg0, 0x00, Local0, BS10) Local0 = Concatenate ("1234q", Local1) M600 (Arg0, 0x01, Local0, BS11) Local0 = Concatenate (AUS0, Local1) M600 (Arg0, 0x02, Local0, BS10) Local0 = Concatenate (AUS1, Local1) M600 (Arg0, 0x03, Local0, BS11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), Local1) M600 (Arg0, 0x04, Local0, BS10) Local0 = Concatenate (DerefOf (RefOf (AUS1)), Local1) M600 (Arg0, 0x05, Local0, BS11) } Local0 = Concatenate (DerefOf (PAUS [0x00]), Local1) M600 (Arg0, 0x06, Local0, BS10) Local0 = Concatenate (DerefOf (PAUS [0x01]), Local1) M600 (Arg0, 0x07, Local0, BS11) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), Local1) M600 (Arg0, 0x08, Local0, BS10) Local0 = Concatenate (M601 (0x02, 0x01), Local1) M600 (Arg0, 0x09, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Local1) M600 (Arg0, 0x0A, Local0, BS10) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Local1) M600 (Arg0, 0x0B, Local0, BS11) } Concatenate ("", Local1, Local0) M600 (Arg0, 0x0C, Local0, BS10) Concatenate ("1234q", Local1, Local0) M600 (Arg0, 0x0D, Local0, BS11) Concatenate (AUS0, Local1, Local0) M600 (Arg0, 0x0E, Local0, BS10) Concatenate (AUS1, Local1, Local0) M600 (Arg0, 0x0F, Local0, BS11) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), Local1, Local0) M600 (Arg0, 0x10, Local0, BS10) Concatenate (DerefOf (RefOf (AUS1)), Local1, Local0) M600 (Arg0, 0x11, Local0, BS11) } Concatenate (DerefOf (PAUS [0x00]), Local1, Local0) M600 (Arg0, 0x12, Local0, BS10) Concatenate (DerefOf (PAUS [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, BS11) /* Method returns String */ Concatenate (M601 (0x02, 0x00), Local1, Local0) M600 (Arg0, 0x14, Local0, BS10) Concatenate (M601 (0x02, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, BS10) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, BS11) } } Method (M321, 1, NotSerialized) { Local2 = 0xC179B3FE Local1 = 0xFE7CB391D650A284 Local0 = Concatenate ("", Local2) M600 (Arg0, 0x00, Local0, BS12) Local0 = Concatenate ("1234q", Local2) M600 (Arg0, 0x01, Local0, BS13) Local0 = Concatenate (AUS0, Local2) M600 (Arg0, 0x02, Local0, BS12) Local0 = Concatenate (AUS1, Local2) M600 (Arg0, 0x03, Local0, BS13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), Local2) M600 (Arg0, 0x04, Local0, BS12) Local0 = Concatenate (DerefOf (RefOf (AUS1)), Local2) M600 (Arg0, 0x05, Local0, BS13) } Local0 = Concatenate (DerefOf (PAUS [0x00]), Local2) M600 (Arg0, 0x06, Local0, BS12) Local0 = Concatenate (DerefOf (PAUS [0x01]), Local2) M600 (Arg0, 0x07, Local0, BS13) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), Local2) M600 (Arg0, 0x08, Local0, BS12) Local0 = Concatenate (M601 (0x02, 0x01), Local2) M600 (Arg0, 0x09, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Local2) M600 (Arg0, 0x0A, Local0, BS12) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Local2) M600 (Arg0, 0x0B, Local0, BS13) } Local0 = Concatenate ("", Local1) M600 (Arg0, 0x0C, Local0, BS14) Local0 = Concatenate ("1234q", Local1) M600 (Arg0, 0x0D, Local0, BS15) Concatenate ("", Local2, Local0) M600 (Arg0, 0x0E, Local0, BS12) Concatenate ("1234q", Local2, Local0) M600 (Arg0, 0x0F, Local0, BS13) Concatenate (AUS0, Local2, Local0) M600 (Arg0, 0x10, Local0, BS12) Concatenate (AUS1, Local2, Local0) M600 (Arg0, 0x11, Local0, BS13) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), Local2, Local0) M600 (Arg0, 0x12, Local0, BS12) Concatenate (DerefOf (RefOf (AUS1)), Local2, Local0) M600 (Arg0, 0x13, Local0, BS13) } Concatenate (DerefOf (PAUS [0x00]), Local2, Local0) M600 (Arg0, 0x14, Local0, BS12) Concatenate (DerefOf (PAUS [0x01]), Local2, Local0) M600 (Arg0, 0x15, Local0, BS13) /* Method returns String */ Concatenate (M601 (0x02, 0x00), Local2, Local0) M600 (Arg0, 0x16, Local0, BS12) Concatenate (M601 (0x02, 0x01), Local2, Local0) M600 (Arg0, 0x17, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Local2, Local0) M600 (Arg0, 0x18, Local0, BS12) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Local2, Local0) M600 (Arg0, 0x19, Local0, BS13) } Concatenate ("", Local1, Local0) M600 (Arg0, 0x1A, Local0, BS14) Concatenate ("1234q", Local1, Local0) M600 (Arg0, 0x1B, Local0, BS15) } /* Method(m642, 1) */ /* Method(m322, 1) */ /* Method(m643, 1) */ /* Method(m323, 1) */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { Local1 = 0xFE7CB391D650A284 /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == Local1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == Local1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == Local1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == Local1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == Local1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == Local1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == Local1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == Local1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == Local1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > Local1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > Local1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > Local1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > Local1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= Local1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= Local1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= Local1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= Local1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= Local1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= Local1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= Local1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= Local1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= Local1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= Local1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= Local1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= Local1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < Local1) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < Local1) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < Local1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < Local1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < Local1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < Local1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < Local1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < Local1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < Local1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < Local1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < Local1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < Local1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= Local1) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= Local1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= Local1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= Local1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= Local1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= Local1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= Local1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= Local1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= Local1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= Local1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= Local1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != Local1) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != Local1) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != Local1) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != Local1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != Local1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != Local1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != Local1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != Local1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != Local1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != Local1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != Local1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != Local1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != Local1) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { Local1 = 0xC179B3FE /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == Local1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == Local1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == Local1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == Local1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == Local1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == Local1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == Local1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == Local1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == Local1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > Local1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > Local1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > Local1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > Local1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= Local1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= Local1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= Local1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= Local1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= Local1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= Local1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= Local1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= Local1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= Local1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= Local1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= Local1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= Local1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < Local1) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < Local1) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < Local1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < Local1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < Local1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < Local1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < Local1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < Local1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < Local1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < Local1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < Local1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < Local1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= Local1) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= Local1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= Local1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= Local1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= Local1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= Local1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= Local1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= Local1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= Local1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= Local1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= Local1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != Local1) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != Local1) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != Local1) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != Local1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != Local1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != Local1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != Local1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != Local1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != Local1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != Local1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != Local1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != Local1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != Local1) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ Method (M645, 1, NotSerialized) { Local1 = 0xFE7CB391D650A284 Local0 = Concatenate (Local1, Local1) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, Local1) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (Local1, 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (Local1, Local1, Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, Local1, Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (Local1, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { Local1 = 0xC179B3FE Local0 = Concatenate (Local1, Local1) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, Local1) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (Local1, 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (Local1, Local1, Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, Local1, Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (Local1, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { Local1 = 0xFE7CB391D650A284 Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Local1) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, Local1) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, Local1) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, Local1) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), Local1) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), Local1) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), Local1) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), Local1) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), Local1) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), Local1) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Local1) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Local1) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, Local1, Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, Local1, Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, Local1, Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, Local1, Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), Local1, Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), Local1, Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), Local1, Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), Local1, Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { Local2 = 0xC179B3FE Local1 = 0xFE7CB391D650A284 Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Local2) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, Local2) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, Local2) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, Local2) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), Local2) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), Local2) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), Local2) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), Local2) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), Local2) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), Local2) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Local2) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Local2) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Local1) M600 (Arg0, 0x0C, Local0, BB14) Local0 = Concatenate (Buffer (0x02) { "Z" }, Local1) M600 (Arg0, 0x0D, Local0, BB15) Concatenate (Buffer (0x01) { 0x5A // Z }, Local2, Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, Local2, Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, Local2, Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, Local2, Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), Local2, Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), Local2, Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), Local2, Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), Local2, Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), Local2, Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), Local2, Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Local2, Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Local2, Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, Local1, Local0) M600 (Arg0, 0x1A, Local0, BB14) Concatenate (Buffer (0x02) { "Z" }, Local1, Local0) M600 (Arg0, 0x1B, Local0, BB15) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ Method (M647, 1, NotSerialized) { Local1 = 0x6E7C534136502214 Local2 = 0x6E00534136002214 Local0 = ToString (Local1, Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (Local1, 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (Local2, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (Local1, AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (Local1, AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (Local2, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (Local1, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (Local1, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (Local2, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (Local1, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (Local1, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (Local2, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (Local1, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (Local1, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (Local2, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (Local1, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (Local1, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (Local2, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (Local1, Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (Local1, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (Local2, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (Local1, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (Local1, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (Local2, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (Local1, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (Local1, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (Local2, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (Local1, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (Local1, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (Local2, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (Local1, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (Local1, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (Local2, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (Local1, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (Local1, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (Local2, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { Local1 = 0x6179534E Local2 = 0x6E7C534136002214 Local0 = ToString (Local1, Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (Local1, 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (Local2, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (Local1, AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (Local1, AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (Local2, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (Local1, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (Local1, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (Local2, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (Local1, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (Local1, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (Local2, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (Local1, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (Local1, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (Local2, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (Local1, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (Local1, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (Local2, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (Local1, Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (Local1, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (Local2, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (Local1, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (Local1, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (Local2, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (Local1, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (Local1, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (Local2, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (Local1, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (Local1, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (Local2, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (Local1, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (Local1, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (Local2, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (Local1, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (Local1, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (Local2, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ Method (M648, 1, NotSerialized) { Local1 = 0xFE7CB391D650A284 Local2 = 0x6E7C534136002214 Local0 = Mid (Local1, 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (Local2, 0x01, 0x08) M600 (Arg0, 0x01, Local0, BB30) Local0 = Mid (Local1, AUI5, AUIB) M600 (Arg0, 0x02, Local0, BB1D) Local0 = Mid (Local2, AUI6, AUIA) M600 (Arg0, 0x03, Local0, BB30) If (Y078) { Local0 = Mid (Local1, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x04, Local0, BB1D) Local0 = Mid (Local2, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA))) M600 (Arg0, 0x05, Local0, BB30) } Local0 = Mid (Local1, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B])) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (Local2, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x0A])) M600 (Arg0, 0x07, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (Local1, M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x08, Local0, BB1D) Local0 = Mid (Local2, M601 (0x01, 0x06), M601 (0x01, 0x0A)) M600 (Arg0, 0x09, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (Local1, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)) ) M600 (Arg0, 0x0A, Local0, BB1D) Local0 = Mid (Local2, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)) ) M600 (Arg0, 0x0B, Local0, BB30) } Mid (Local1, 0x00, 0x09, Local0) M600 (Arg0, 0x0C, Local0, BB1D) Mid (Local2, 0x01, 0x08, Local0) M600 (Arg0, 0x0D, Local0, BB30) Mid (Local1, AUI5, AUIB, Local0) M600 (Arg0, 0x0E, Local0, BB1D) Mid (Local2, AUI6, AUIA, Local0) M600 (Arg0, 0x0F, Local0, BB30) If (Y078) { Mid (Local1, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x10, Local0, BB1D) Mid (Local2, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x11, Local0, BB30) } Mid (Local1, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (Local2, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB30) /* Method returns Index and Length parameters */ Mid (Local1, M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x14, Local0, BB1D) Mid (Local2, M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x15, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (Local1, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x16, Local0, BB1D) Mid (Local2, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x17, Local0, BB30) } } Method (M328, 1, NotSerialized) { Local1 = 0xC179B3FE Local2 = 0x6E7C534136002214 Local0 = Mid (Local1, 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (Local2, 0x01, 0x04) M600 (Arg0, 0x01, Local0, BB31) Local0 = Mid (Local1, AUI5, AUI9) M600 (Arg0, 0x02, Local0, BB1C) Local0 = Mid (Local2, AUI6, AUI8) M600 (Arg0, 0x03, Local0, BB31) If (Y078) { Local0 = Mid (Local1, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x04, Local0, BB1C) Local0 = Mid (Local2, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8))) M600 (Arg0, 0x05, Local0, BB31) } Local0 = Mid (Local1, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09])) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (Local2, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x08])) M600 (Arg0, 0x07, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (Local1, M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x08, Local0, BB1C) Local0 = Mid (Local2, M601 (0x01, 0x06), M601 (0x01, 0x08)) M600 (Arg0, 0x09, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (Local1, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)) ) M600 (Arg0, 0x0A, Local0, BB1C) Local0 = Mid (Local2, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)) ) M600 (Arg0, 0x0B, Local0, BB31) } Mid (Local1, 0x00, 0x05, Local0) M600 (Arg0, 0x0C, Local0, BB1C) Mid (Local2, 0x01, 0x04, Local0) M600 (Arg0, 0x0D, Local0, BB31) Mid (Local1, AUI5, AUI9, Local0) M600 (Arg0, 0x0E, Local0, BB1C) Mid (Local2, AUI6, AUI8, Local0) M600 (Arg0, 0x0F, Local0, BB31) If (Y078) { Mid (Local1, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x10, Local0, BB1C) Mid (Local2, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x11, Local0, BB31) } Mid (Local1, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (Local2, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x08]), Local0) M600 (Arg0, 0x13, Local0, BB31) /* Method returns Index and Length parameters */ Mid (Local1, M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x14, Local0, BB1C) Mid (Local2, M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x15, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (Local1, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x16, Local0, BB1C) Mid (Local2, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x17, Local0, BB31) } } /* Method(m649, 1) */ /* Method(m329, 1) */ /* Method(m64a, 1) */ /* Method(m32a, 1) */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64B, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Decrement */ If (Y501) { Local0 = Local1-- M600 (Arg0, 0x00, Local0, BI12) Local0 = Local2-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = Local1++ M600 (Arg0, 0x02, Local0, BI13) Local0 = Local2++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (Local1) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (Local2) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (Local1) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (Local2) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~Local1, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~Local2, Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32B, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Decrement */ If (Y501) { Local0 = Local1-- M600 (Arg0, 0x00, Local0, BI12) Local0 = Local2-- M600 (Arg0, 0x01, Local0, BI14) } /* Increment */ If (Y501) { Local0 = Local1++ M600 (Arg0, 0x02, Local0, BI13) Local0 = Local2++ M600 (Arg0, 0x03, Local0, BI15) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (Local1) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (Local2) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (Local1) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (Local2) M600 (Arg0, 0x07, Local0, 0x02) /* Not */ Store (~Local1, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~Local2, Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Method (M000, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" Local3 = "C179B3FE" Local4 = "0" Local0 = !Local4 M600 (Arg0, 0x00, Local0, Ones) Local0 = !Local1 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !Local2 M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !Local3 M600 (Arg0, 0x03, Local0, Zero) } } /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64C, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" Local3 = "3789012345678901" Local4 = "D76162EE9EC35" /* FromBCD */ Local0 = FromBCD (Local1) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Local3) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (Local1, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Local3, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (Local1) M600 (Arg0, 0x04, Local0, 0x0801) /* Error of iASL on constant folding Store(ToBCD(Local4), Local0) m600(arg0, 5, Local0, 0x3789012345678901) */ ToBCD (Local1, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Local4, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32C, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" Local3 = "90123456" Local4 = "55F2CC0" /* FromBCD */ Local0 = FromBCD (Local1) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Local3) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (Local1, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Local3, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (Local1) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (Local4) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (Local1, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Local4, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M001, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Store ((Local1 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((Local1 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((Local1 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((Local1 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((Local1 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (Local1 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (Local1 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (Local1 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (Local1 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (Local1 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + Local1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + Local1), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Local1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + Local1), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Local1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Local1), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + Local1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + Local1) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + Local1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + Local1) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Local1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + Local1) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + Local1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + Local1) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Local1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + Local1) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Local1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Local1) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M002, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Store ((Local2 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((Local2 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((Local2 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((Local2 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((Local2 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (Local2 + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (Local2 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (Local2 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (Local2 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (Local2 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + Local2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Local2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Local2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + Local2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + Local2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + Local2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + Local2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Local2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + Local2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + Local2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + Local2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Local2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + Local2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Local2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Local2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((Local1 + Local2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((Local2 + Local1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (Local1 + Local2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (Local2 + Local1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M003, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Store ((Local2 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Local2 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FF) Store ((Local2 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Local2 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FF) If (Y078) { Store ((Local2 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Local2 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FF) } Store ((Local2 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Local2 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((Local2 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Local2 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Local2 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FF) } Local0 = (Local2 + 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Local2 + 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FF) Local0 = (Local2 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Local2 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FF) If (Y078) { Local0 = (Local2 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Local2 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FF) } Local0 = (Local2 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Local2 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (Local2 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Local2 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Local2 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FF) } /* Conversion of the second operand */ Store ((0x00 + Local2), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0x01 + Local2), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FF) Store ((AUI5 + Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUI6 + Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUI6)) + Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FF) } Store ((DerefOf (PAUI [0x05]) + Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x06]) + Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Local2), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x06) + Local2), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Local2), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Local2), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FF) } Local0 = (0x00 + Local2) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0x01 + Local2) M600 (Arg0, 0x25, Local0, 0xC179B3FF) Local0 = (AUI5 + Local2) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUI6 + Local2) M600 (Arg0, 0x27, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Local2) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUI6)) + Local2) M600 (Arg0, 0x29, Local0, 0xC179B3FF) } Local0 = (DerefOf (PAUI [0x05]) + Local2) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x06]) + Local2) M600 (Arg0, 0x2B, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Local2) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x06) + Local2) M600 (Arg0, 0x2D, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Local2) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Local2) M600 (Arg0, 0x2F, Local0, 0xC179B3FF) } /* Conversion of the both operands */ Store ((Local1 + Local2), Local0) M600 (Arg0, 0x30, Local0, 0xC179B71F) Store ((Local2 + Local1), Local0) M600 (Arg0, 0x31, Local0, 0xC179B71F) Local0 = (Local1 + Local2) M600 (Arg0, 0x32, Local0, 0xC179B71F) Local0 = (Local2 + Local1) M600 (Arg0, 0x33, Local0, 0xC179B71F) } /* And, common 32-bit/64-bit test */ Method (M004, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Store ((Local1 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local1 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Local1 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local1 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Local1 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local1 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Local1 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local1 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Local1 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local1 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local1 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Local1 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local1 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Local1 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local1 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Local1 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local1 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Local1 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local1 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Local1 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local1 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local1 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & Local1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Local1), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Local1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Local1), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Local1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Local1), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & Local1) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Local1) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & Local1) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Local1) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Local1) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Local1) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & Local1) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Local1) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Local1) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Local1) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Local1) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Local1) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M005, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Store ((Local2 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local2 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Local2 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local2 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Local2 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local2 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Local2 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local2 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Local2 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local2 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local2 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Local2 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local2 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Local2 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local2 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Local2 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local2 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Local2 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local2 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Local2 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local2 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local2 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Local2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Local2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Local2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Local2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Local2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Local2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Local1 & Local2), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((Local2 & Local1), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (Local1 & Local2) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (Local2 & Local1) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M006, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Store ((Local2 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local2 & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((Local2 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local2 & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((Local2 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local2 & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((Local2 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local2 & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((Local2 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local2 & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local2 & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (Local2 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local2 & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (Local2 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local2 & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (Local2 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local2 & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (Local2 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local2 & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (Local2 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local2 & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local2 & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 & Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & Local2), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 & Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) & Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & Local2), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & Local2), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 & Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & Local2) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 & Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & Local2) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & Local2) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) & Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & Local2) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & Local2) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & Local2) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((Local1 & Local2), Local0) M600 (Arg0, 0x30, Local0, 0x0320) Store ((Local2 & Local1), Local0) M600 (Arg0, 0x31, Local0, 0x0320) Local0 = (Local1 & Local2) M600 (Arg0, 0x32, Local0, 0x0320) Local0 = (Local2 & Local1) M600 (Arg0, 0x33, Local0, 0x0320) } /* Divide, common 32-bit/64-bit test */ Method (M007, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Store ((Local1 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local1 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local1 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local1 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local1 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Local1, 0x01, Local2, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (Local1, 0x0321, Local2, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Local1, AUI6, Local2, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (Local1, AUI1, Local2, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Local1, DerefOf (RefOf (AUI6)), Local2, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (Local1, DerefOf (RefOf (AUI1)), Local2, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Local1, DerefOf (PAUI [0x06]), Local2, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (Local1, DerefOf (PAUI [0x01]), Local2, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Local1, M601 (0x01, 0x06), Local2, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (Local1, M601 (0x01, 0x01), Local2, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Local1, DerefOf (M602 (0x01, 0x06, 0x01)), Local2, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (Local1, DerefOf (M602 (0x01, 0x01, 0x01)), Local2, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Local1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / Local1), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Local1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / Local1), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Local1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / Local1), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Local1, Local2, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, Local1, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Local1, Local2, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, Local1, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Local1, Local2, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), Local1, Local2, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Local1, Local2, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), Local1, Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Local1, Local2, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), Local1, Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local2, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M008, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Store ((Local2 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local2 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local2 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local2 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local2 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Local2, 0x01, Local3, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (Local2, 0xFE7CB391D650A284, Local3, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Local2, AUI6, Local3, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (Local2, AUI4, Local3, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Local2, DerefOf (RefOf (AUI6)), Local3, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (Local2, DerefOf (RefOf (AUI4)), Local3, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Local2, DerefOf (PAUI [0x06]), Local3, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (Local2, DerefOf (PAUI [0x04]), Local3, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Local2, M601 (0x01, 0x06), Local3, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (Local2, M601 (0x01, 0x04), Local3, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Local2, DerefOf (M602 (0x01, 0x06, 0x01)), Local3, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (Local2, DerefOf (M602 (0x01, 0x04, 0x01)), Local3, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / Local2), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / Local2), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / Local2), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Local2, Local3, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, Local2, Local3, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Local2, Local3, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, Local2, Local3, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Local2, Local3, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), Local2, Local3, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Local2, Local3, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), Local2, Local3, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Local2, Local3, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), Local2, Local3, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Local2, Local3, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), Local2, Local3, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Local1 / Local2), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Local2 / Local1), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (Local1, Local2, Local3, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Local2, Local1, Local3, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M009, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Store ((Local2 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Local2 / 0xC179B3FE), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local2 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Local2 / AUI3), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local2 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Local2 / DerefOf (RefOf (AUI3))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local2 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Local2 / DerefOf (PAUI [0x03])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local2 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Local2 / M601 (0x01, 0x03)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Local2 / DerefOf (M602 (0x01, 0x03, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Local2, 0x01, Local3, Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Divide (Local2, 0xC179B3FE, Local3, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Local2, AUI6, Local3, Local0) M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Divide (Local2, AUI3, Local3, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Local2, DerefOf (RefOf (AUI6)), Local3, Local0) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Divide (Local2, DerefOf (RefOf (AUI3)), Local3, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Local2, DerefOf (PAUI [0x06]), Local3, Local0) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Divide (Local2, DerefOf (PAUI [0x03]), Local3, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Local2, M601 (0x01, 0x06), Local3, Local0) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Divide (Local2, M601 (0x01, 0x03), Local3, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Local2, DerefOf (M602 (0x01, 0x06, 0x01)), Local3, Local0) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Divide (Local2, DerefOf (M602 (0x01, 0x03, 0x01)), Local3, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE / Local2), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 / Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) / Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) / Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) / Local2), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) / Local2), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Local2, Local3, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xC179B3FE, Local2, Local3, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Local2, Local3, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI3, Local2, Local3, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Local2, Local3, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI3)), Local2, Local3, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Local2, Local3, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x03]), Local2, Local3, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Local2, Local3, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x03), Local2, Local3, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Local2, Local3, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x03, 0x01)), Local2, Local3, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Local1 / Local2), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Local2 / Local1), Local0) M600 (Arg0, 0x31, Local0, 0x003DD5B7) Divide (Local1, Local2, Local3, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Local2, Local1, Local3, Local0) M600 (Arg0, 0x33, Local0, 0x003DD5B7) } /* Mod, common 32-bit/64-bit test */ Method (M00A, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Store ((Local1 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local1 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local1 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local1 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local1 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Local1 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Local1 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Local1 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Local1 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Local1 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % Local1), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % Local1), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % Local1), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % Local1), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % Local1), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % Local1), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % Local1) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % Local1) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % Local1) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % Local1) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % Local1) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % Local1) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % Local1) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % Local1) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % Local1) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % Local1) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % Local1) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % Local1) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M00B, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Store ((Local2 % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local2 % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local2 % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local2 % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((Local2 % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local2 % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Local2 % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Local2 % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Local2 % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Local2 % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Local2 % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % Local2), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % Local2), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % Local2), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % Local2) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % Local2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % Local2) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % Local2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % Local2) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % Local2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % Local2) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % Local2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % Local2) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % Local2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % Local2) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % Local2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((Local1 % Local2), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Local2 % Local1), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (Local1 % Local2) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Local2 % Local1) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M00C, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Store ((Local2 % 0xC179B3FF), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Local2 % 0xC179B3FD), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local2 % AUIC), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Local2 % AUIE), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((Local2 % DerefOf (RefOf (AUIC))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Local2 % DerefOf (RefOf (AUIE))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local2 % DerefOf (PAUI [0x0C])), Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Store ((Local2 % DerefOf (PAUI [0x0E])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local2 % M601 (0x01, 0x0C)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Local2 % M601 (0x01, 0x0E)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 % DerefOf (M602 (0x01, 0x0C, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Local2 % DerefOf (M602 (0x01, 0x0E, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Local2 % 0xC179B3FF) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Local2 % 0xC179B3FD) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Local2 % AUIC) /* \AUIC */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Local2 % AUIE) /* \AUIE */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Local2 % DerefOf (RefOf (AUIC))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Local2 % DerefOf (RefOf (AUIE))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Local2 % DerefOf (PAUI [0x0C])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Local2 % DerefOf (PAUI [0x0E])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Local2 % M601 (0x01, 0x0C)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Local2 % M601 (0x01, 0x0E)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 % DerefOf (M602 (0x01, 0x0C, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Local2 % DerefOf (M602 (0x01, 0x0E, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xC179B3FF % Local2), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xC179B3FD % Local2), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FD) Store ((AUIC % Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIE % Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (AUIC)) % Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIE)) % Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FD) } Store ((DerefOf (PAUI [0x0C]) % Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0E]) % Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M601 (0x01, 0x0C) % Local2), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0E) % Local2), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0C, 0x01)) % Local2), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0E, 0x01)) % Local2), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FD) } Local0 = (0xC179B3FF % Local2) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xC179B3FD % Local2) M600 (Arg0, 0x25, Local0, 0xC179B3FD) Local0 = (AUIC % Local2) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIE % Local2) M600 (Arg0, 0x27, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (AUIC)) % Local2) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIE)) % Local2) M600 (Arg0, 0x29, Local0, 0xC179B3FD) } Local0 = (DerefOf (PAUI [0x0C]) % Local2) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0E]) % Local2) M600 (Arg0, 0x2B, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0C) % Local2) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0E) % Local2) M600 (Arg0, 0x2D, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) % Local2) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) % Local2) M600 (Arg0, 0x2F, Local0, 0xC179B3FD) } /* Conversion of the both operands */ Store ((Local1 % Local2), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Local2 % Local1), Local0) M600 (Arg0, 0x31, Local0, 0x0267) Local0 = (Local1 % Local2) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Local2 % Local1) M600 (Arg0, 0x33, Local0, 0x0267) } /* Multiply, common 32-bit/64-bit test */ Method (M00D, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Store ((Local1 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local1 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Local1 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local1 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Local1 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local1 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Local1 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local1 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Local1 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local1 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local1 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Local1 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local1 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Local1 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local1 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Local1 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local1 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Local1 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local1 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Local1 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local1 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local1 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * Local1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Local1), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Local1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Local1), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Local1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Local1), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * Local1) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Local1) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * Local1) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Local1) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Local1) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Local1) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * Local1) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Local1) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Local1) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Local1) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Local1) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Local1) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M00E, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Store ((Local2 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local2 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Local2 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local2 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Local2 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local2 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Local2 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local2 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Local2 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local2 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local2 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Local2 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local2 * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Local2 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local2 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Local2 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local2 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Local2 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local2 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Local2 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local2 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local2 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Local2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Local2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Local2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Local2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Local2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Local2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Local1 * Local2), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((Local2 * Local1), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (Local1 * Local2) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (Local2 * Local1) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M00F, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Store ((Local2 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local2 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((Local2 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local2 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((Local2 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local2 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((Local2 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local2 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((Local2 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local2 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local2 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (Local2 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local2 * 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (Local2 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local2 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (Local2 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local2 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (Local2 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local2 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (Local2 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local2 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local2 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 * Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Local2), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 * Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) * Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Local2), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Local2), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 * Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Local2) M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 * Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Local2) M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Local2) M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) * Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Local2) M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Local2) M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Local2) M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((Local1 * Local2), Local0) M600 (Arg0, 0x30, Local0, 0x5DCC2DBE) Store ((Local2 * Local1), Local0) M600 (Arg0, 0x31, Local0, 0x5DCC2DBE) Local0 = (Local1 * Local2) M600 (Arg0, 0x32, Local0, 0x5DCC2DBE) Local0 = (Local2 * Local1) M600 (Arg0, 0x33, Local0, 0x5DCC2DBE) } /* NAnd, common 32-bit/64-bit test */ Method (M010, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Local0 = NAnd (Local1, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (Local1, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (Local1, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (Local1, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (Local1, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Local1, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Local1, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (Local1, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (Local1, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Local1, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (Local1, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (Local1, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Local1) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Local1) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, Local1) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Local1) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Local1) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Local1) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), Local1) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Local1) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Local1) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Local1) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local1) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Local1) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, Local1, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Local1, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, Local1, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Local1, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M011, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Local0 = NAnd (Local2, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (Local2, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (Local2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (Local2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (Local2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Local2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (Local2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (Local2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (Local2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (Local2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (Local2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (Local2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Local2) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Local2) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, Local2) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Local2) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Local2) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Local2) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), Local2) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Local2) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Local2) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Local2) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local2) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Local2) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, Local2, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, Local2, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Local2, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Local2, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), Local2, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Local2, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local2, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (Local1, Local2) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (Local2, Local1) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Local1, Local2, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Local2, Local1, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M012, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Local0 = NAnd (Local2, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x3E864C01) Local0 = NAnd (Local2, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, AUII) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (Local2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Local0 = NAnd (Local2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (Local2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Local2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } NAnd (Local2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (Local2, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x3E864C01) NAnd (Local2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (Local2, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { NAnd (Local2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (Local2, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x3E864C01) } NAnd (Local2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (Local2, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (Local2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (Local2, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (Local2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (Local2, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Local2) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, Local2) M600 (Arg0, 0x19, Local0, 0x3E864C01) Local0 = NAnd (AUI5, Local2) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, Local2) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Local2) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), Local2) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PAUI [0x05]), Local2) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), Local2) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Local2) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), Local2) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local2) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Local2) M600 (Arg0, 0x23, Local0, 0x3E864C01) } NAnd (0x00, Local2, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x3E864C01) NAnd (AUI5, Local2, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Local2, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), Local2, Local0) M600 (Arg0, 0x29, Local0, 0x3E864C01) } NAnd (DerefOf (PAUI [0x05]), Local2, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Local2, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local2, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Local0 = NAnd (Local1, Local2) M600 (Arg0, 0x30, Local0, 0xFFFFFCDF) Local0 = NAnd (Local2, Local1) M600 (Arg0, 0x31, Local0, 0xFFFFFCDF) NAnd (Local1, Local2, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFCDF) NAnd (Local2, Local1, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFCDF) } /* NOr, common 32-bit/64-bit test */ Method (M013, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Local0 = NOr (Local1, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Local1, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Local1, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Local1, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Local1, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Local1, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Local1, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Local1, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Local1, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Local1, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Local1, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Local1, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Local1) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Local1) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Local1) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, Local1) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Local1) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), Local1) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Local1) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), Local1) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Local1) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), Local1) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local1) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Local1) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Local1, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Local1, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M014, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Local0 = NOr (Local2, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Local2, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Local2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Local2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Local2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Local2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Local2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (Local2, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Local2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (Local2, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Local2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (Local2, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Local2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (Local2, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Local2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (Local2, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Local2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (Local2, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Local2) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Local2) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Local2) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, Local2) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Local2) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), Local2) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Local2) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), Local2) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Local2) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), Local2) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local2) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Local2) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Local2, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Local2, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Local2, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), Local2, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Local2, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Local2, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local2, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Local1, Local2) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (Local2, Local1) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (Local1, Local2, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (Local2, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M015, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Local0 = NOr (Local2, 0x00) M600 (Arg0, 0x00, Local0, 0x3E864C01) Local0 = NOr (Local2, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Local2, AUI5) M600 (Arg0, 0x02, Local0, 0x3E864C01) Local0 = NOr (Local2, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Local2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x3E864C01) Local0 = NOr (Local2, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Local2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x3E864C01) Local0 = NOr (Local2, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Local2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x3E864C01) Local0 = NOr (Local2, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Local2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x3E864C01) Local0 = NOr (Local2, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Local2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x3E864C01) NOr (Local2, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Local2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x3E864C01) NOr (Local2, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Local2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x3E864C01) NOr (Local2, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Local2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x3E864C01) NOr (Local2, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Local2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x3E864C01) NOr (Local2, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Local2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x3E864C01) NOr (Local2, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Local2) M600 (Arg0, 0x18, Local0, 0x3E864C01) Local0 = NOr (0xFFFFFFFF, Local2) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Local2) M600 (Arg0, 0x1A, Local0, 0x3E864C01) Local0 = NOr (AUII, Local2) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Local2) M600 (Arg0, 0x1C, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (AUII)), Local2) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Local2) M600 (Arg0, 0x1E, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PAUI [0x12]), Local2) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Local2) M600 (Arg0, 0x20, Local0, 0x3E864C01) Local0 = NOr (M601 (0x01, 0x12), Local2) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local2) M600 (Arg0, 0x22, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Local2) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Local2, Local0) M600 (Arg0, 0x24, Local0, 0x3E864C01) NOr (0xFFFFFFFF, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Local2, Local0) M600 (Arg0, 0x26, Local0, 0x3E864C01) NOr (AUII, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Local2, Local0) M600 (Arg0, 0x28, Local0, 0x3E864C01) NOr (DerefOf (RefOf (AUII)), Local2, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Local2, Local0) M600 (Arg0, 0x2A, Local0, 0x3E864C01) NOr (DerefOf (PAUI [0x12]), Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Local2, Local0) M600 (Arg0, 0x2C, Local0, 0x3E864C01) NOr (M601 (0x01, 0x12), Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local2, Local0) M600 (Arg0, 0x2E, Local0, 0x3E864C01) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Local1, Local2) M600 (Arg0, 0x30, Local0, 0x3E864C00) Local0 = NOr (Local2, Local1) M600 (Arg0, 0x31, Local0, 0x3E864C00) NOr (Local1, Local2, Local0) M600 (Arg0, 0x32, Local0, 0x3E864C00) NOr (Local2, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x3E864C00) } /* Or, common 32-bit/64-bit test */ Method (M016, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Store ((Local1 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Local1 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Local1 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Local1 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Local1 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Local1 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Local1 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Local1 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Local1 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Local1 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Local1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | Local1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | Local1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | Local1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | Local1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Local1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | Local1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Local1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Local1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Local1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | Local1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Local1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | Local1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Local1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | Local1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Local1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | Local1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Local1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | Local1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Local1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Local1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M017, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Store ((Local2 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Local2 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Local2 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Local2 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Local2 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Local2 | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Local2 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Local2 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Local2 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Local2 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Local2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Local2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Local2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Local2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | Local2) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Local2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | Local2) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Local2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | Local2) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Local2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | Local2) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Local2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | Local2) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Local2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Local2) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((Local1 | Local2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((Local2 | Local1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (Local1 | Local2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (Local2 | Local1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M018, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Store ((Local2 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Local2 | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((Local2 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Local2 | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((Local2 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Local2 | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((Local2 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Local2 | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((Local2 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Local2 | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Local2 | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (Local2 | 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Local2 | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (Local2 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Local2 | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (Local2 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Local2 | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (Local2 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Local2 | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (Local2 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Local2 | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Local2 | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Local2), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF | Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII | Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) | Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) | Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Local2), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) | Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Local2), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | Local2) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF | Local2) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | Local2) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII | Local2) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Local2) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) | Local2) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Local2) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) | Local2) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Local2) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) | Local2) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Local2) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | Local2) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((Local1 | Local2), Local0) M600 (Arg0, 0x30, Local0, 0xC179B3FF) Store ((Local2 | Local1), Local0) M600 (Arg0, 0x31, Local0, 0xC179B3FF) Local0 = (Local1 | Local2) M600 (Arg0, 0x32, Local0, 0xC179B3FF) Local0 = (Local2 | Local1) M600 (Arg0, 0x33, Local0, 0xC179B3FF) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M019, 1, NotSerialized) { Local1 = "0321" Local2 = "B" /* Conversion of the first operand */ Store ((Local1 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((Local1 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((Local1 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((Local1 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((Local1 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (Local1 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (Local1 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (Local1 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (Local1 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (Local1 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Local2), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Local2), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Local2), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Local2) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Local2) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Local2) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Local2) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Local2) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Local2) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M01A, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" Local3 = "B" /* Conversion of the first operand */ Store ((Local2 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((Local2 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((Local2 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((Local2 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((Local2 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (Local2 << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (Local2 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (Local2 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (Local2 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (Local2 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << Local3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Local3), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Local3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Local3), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Local3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Local3), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Local3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Local3), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Local3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Local3), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Local3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Local3), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Local3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Local3) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Local3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Local3) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Local3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Local3) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Local3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Local3) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Local3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Local3) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Local3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Local3) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Local1 << Local3), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Local2 << Local3), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (Local1 << Local3) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Local2 << Local3) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M01B, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" Local3 = "B" /* Conversion of the first operand */ Store ((Local2 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Local2 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x82F367FC) Store ((Local2 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Local2 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x82F367FC) If (Y078) { Store ((Local2 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Local2 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x82F367FC) } Store ((Local2 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Local2 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x82F367FC) /* Method returns Integer */ Store ((Local2 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Local2 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Local2 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x82F367FC) } Local0 = (Local2 << 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Local2 << 0x01) M600 (Arg0, 0x0D, Local0, 0x82F367FC) Local0 = (Local2 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Local2 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x82F367FC) If (Y078) { Local0 = (Local2 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Local2 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x82F367FC) } Local0 = (Local2 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Local2 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x82F367FC) /* Method returns Integer */ Local0 = (Local2 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Local2 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Local2 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x82F367FC) } /* Conversion of the second operand */ Store ((0x00 << Local3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Local3), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Local3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Local3), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Local3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Local3), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Local3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Local3), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Local3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Local3), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Local3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Local3), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Local3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Local3) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Local3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Local3) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Local3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Local3) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Local3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Local3) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Local3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Local3) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Local3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Local3) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Local1 << Local3), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Local2 << Local3), Local0) M600 (Arg0, 0x31, Local0, 0xCD9FF000) Local0 = (Local1 << Local3) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Local2 << Local3) M600 (Arg0, 0x33, Local0, 0xCD9FF000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M01C, 1, NotSerialized) { Local1 = "0321" Local2 = "B" /* Conversion of the first operand */ Store ((Local1 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((Local1 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((Local1 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((Local1 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((Local1 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (Local1 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (Local1 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (Local1 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (Local1 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (Local1 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> Local2), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> Local2), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> Local2), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> Local2) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> Local2) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> Local2) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> Local2) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> Local2) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> Local2) M600 (Arg0, 0x2F, Local0, 0x00182F36) } } /* ShiftRight, 64-bit */ Method (M01D, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" Local3 = "B" /* Conversion of the first operand */ Store ((Local2 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((Local2 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((Local2 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((Local2 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((Local2 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (Local2 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (Local2 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (Local2 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (Local2 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (Local2 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> Local3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> Local3), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> Local3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> Local3), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Local3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> Local3), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> Local3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> Local3), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Local3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> Local3), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Local3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> Local3), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> Local3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> Local3) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> Local3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> Local3) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Local3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> Local3) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Local3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> Local3) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Local3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> Local3) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Local3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> Local3) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((Local1 >> Local3), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Local2 >> Local3), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (Local1 >> Local3) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Local2 >> Local3) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M01E, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" Local3 = "B" /* Conversion of the first operand */ Store ((Local2 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Local2 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x60BCD9FF) Store ((Local2 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Local2 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x60BCD9FF) If (Y078) { Store ((Local2 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Local2 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x60BCD9FF) } Store ((Local2 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Local2 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x60BCD9FF) /* Method returns Integer */ Store ((Local2 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Local2 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Local2 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x60BCD9FF) } Local0 = (Local2 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Local2 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x60BCD9FF) Local0 = (Local2 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Local2 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x60BCD9FF) If (Y078) { Local0 = (Local2 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Local2 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x60BCD9FF) } Local0 = (Local2 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Local2 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x60BCD9FF) /* Method returns Integer */ Local0 = (Local2 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Local2 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Local2 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x60BCD9FF) } /* Conversion of the second operand */ Store ((0x0321 >> Local3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> Local3), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> Local3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> Local3), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Local3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> Local3), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> Local3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> Local3), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Local3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> Local3), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Local3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> Local3), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> Local3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> Local3) M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> Local3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> Local3) M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Local3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> Local3) M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> Local3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> Local3) M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Local3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> Local3) M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Local3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> Local3) M600 (Arg0, 0x2F, Local0, 0x00182F36) } /* Conversion of the both operands */ Store ((Local1 >> Local3), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Local2 >> Local3), Local0) M600 (Arg0, 0x31, Local0, 0x00182F36) Local0 = (Local1 >> Local3) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Local2 >> Local3) M600 (Arg0, 0x33, Local0, 0x00182F36) } /* Subtract, common 32-bit/64-bit test */ Method (M01F, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Store ((Local1 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((Local1 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((Local1 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((Local1 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((Local1 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (Local1 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (Local1 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (Local1 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (Local1 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (Local1 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - Local1), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - Local1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - Local1), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - Local1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Local1), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - Local1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - Local1), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - Local1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Local1), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - Local1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Local1), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Local1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - Local1) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - Local1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - Local1) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - Local1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Local1) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - Local1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - Local1) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - Local1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Local1) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - Local1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Local1) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Local1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M020, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Store ((Local2 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((Local2 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((Local2 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((Local2 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((Local2 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (Local2 - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (Local2 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (Local2 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (Local2 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (Local2 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - Local2), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - Local2), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Local2), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - Local2), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Local2), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Local2), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - Local2) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - Local2) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - Local2) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - Local2) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Local2) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - Local2) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - Local2) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - Local2) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Local2) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - Local2) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Local2) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Local2) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((Local1 - Local2), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((Local2 - Local1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (Local1 - Local2) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (Local2 - Local1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M021, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Store ((Local2 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Local2 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FD) Store ((Local2 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Local2 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FD) If (Y078) { Store ((Local2 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Local2 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FD) } Store ((Local2 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Local2 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((Local2 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Local2 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Local2 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FD) } Local0 = (Local2 - 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Local2 - 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FD) Local0 = (Local2 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Local2 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FD) If (Y078) { Local0 = (Local2 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Local2 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FD) } Local0 = (Local2 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Local2 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (Local2 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Local2 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Local2 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FD) } /* Conversion of the second operand */ Store ((0x00 - Local2), Local0) M600 (Arg0, 0x18, Local0, 0x3E864C02) Store ((0x01 - Local2), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C03) Store ((AUI5 - Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x3E864C02) Store ((AUI6 - Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C03) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x3E864C02) Store ((DerefOf (RefOf (AUI6)) - Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C03) } Store ((DerefOf (PAUI [0x05]) - Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x3E864C02) Store ((DerefOf (PAUI [0x06]) - Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C03) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Local2), Local0) M600 (Arg0, 0x20, Local0, 0x3E864C02) Store ((M601 (0x01, 0x06) - Local2), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Local2), Local0) M600 (Arg0, 0x22, Local0, 0x3E864C02) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Local2), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C03) } Local0 = (0x00 - Local2) M600 (Arg0, 0x24, Local0, 0x3E864C02) Local0 = (0x01 - Local2) M600 (Arg0, 0x25, Local0, 0x3E864C03) Local0 = (AUI5 - Local2) M600 (Arg0, 0x26, Local0, 0x3E864C02) Local0 = (AUI6 - Local2) M600 (Arg0, 0x27, Local0, 0x3E864C03) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Local2) M600 (Arg0, 0x28, Local0, 0x3E864C02) Local0 = (DerefOf (RefOf (AUI6)) - Local2) M600 (Arg0, 0x29, Local0, 0x3E864C03) } Local0 = (DerefOf (PAUI [0x05]) - Local2) M600 (Arg0, 0x2A, Local0, 0x3E864C02) Local0 = (DerefOf (PAUI [0x06]) - Local2) M600 (Arg0, 0x2B, Local0, 0x3E864C03) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Local2) M600 (Arg0, 0x2C, Local0, 0x3E864C02) Local0 = (M601 (0x01, 0x06) - Local2) M600 (Arg0, 0x2D, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Local2) M600 (Arg0, 0x2E, Local0, 0x3E864C02) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Local2) M600 (Arg0, 0x2F, Local0, 0x3E864C03) } /* Conversion of the both operands */ Store ((Local1 - Local2), Local0) M600 (Arg0, 0x30, Local0, 0x3E864F23) Store ((Local2 - Local1), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DD) Local0 = (Local1 - Local2) M600 (Arg0, 0x32, Local0, 0x3E864F23) Local0 = (Local2 - Local1) M600 (Arg0, 0x33, Local0, 0xC179B0DD) } /* XOr, common 32-bit/64-bit test */ Method (M022, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Store ((Local1 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((Local1 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((Local1 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((Local1 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((Local1 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Local1 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (Local1 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (Local1 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Local1 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (Local1 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ Local1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ Local1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ Local1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ Local1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ Local1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Local1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ Local1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Local1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ Local1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ Local1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ Local1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ Local1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Local1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ Local1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ Local1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ Local1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Local1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ Local1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Local1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M023, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Store ((Local2 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((Local2 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((Local2 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((Local2 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((Local2 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (Local2 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (Local2 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (Local2 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (Local2 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (Local2 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ Local2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ Local2), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Local2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ Local2), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Local2), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ Local2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ Local2) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ Local2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ Local2) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Local2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ Local2) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ Local2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ Local2) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Local2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ Local2) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Local2) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((Local1 ^ Local2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((Local2 ^ Local1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (Local1 ^ Local2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (Local2 ^ Local1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M024, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Store ((Local2 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((Local2 ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x3E864C01) Store ((Local2 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((Local2 ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Store ((Local2 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((Local2 ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Store ((Local2 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((Local2 ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Store ((Local2 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((Local2 ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((Local2 ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } Local0 = (Local2 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (Local2 ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x3E864C01) Local0 = (Local2 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (Local2 ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { Local0 = (Local2 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (Local2 ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x3E864C01) } Local0 = (Local2 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (Local2 ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (Local2 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (Local2 ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (Local2 ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Store ((0x00 ^ Local2), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF ^ Local2), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C01) Store ((AUI5 ^ Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII ^ Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) ^ Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Store ((DerefOf (PAUI [0x05]) ^ Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) ^ Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Local2), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) ^ Local2), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local2), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ Local2), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C01) } Local0 = (0x00 ^ Local2) M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF ^ Local2) M600 (Arg0, 0x25, Local0, 0x3E864C01) Local0 = (AUI5 ^ Local2) M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII ^ Local2) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Local2) M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) ^ Local2) M600 (Arg0, 0x29, Local0, 0x3E864C01) } Local0 = (DerefOf (PAUI [0x05]) ^ Local2) M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) ^ Local2) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Local2) M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) ^ Local2) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local2) M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ Local2) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Store ((Local1 ^ Local2), Local0) M600 (Arg0, 0x30, Local0, 0xC179B0DF) Store ((Local2 ^ Local1), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DF) Local0 = (Local1 ^ Local2) M600 (Arg0, 0x32, Local0, 0xC179B0DF) Local0 = (Local2 ^ Local1) M600 (Arg0, 0x33, Local0, 0xC179B0DF) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m002", Local0) SRMT (Local0) M002 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m005", Local0) SRMT (Local0) M005 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m008", Local0) SRMT (Local0) M008 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00b", Local0) SRMT (Local0) M00B (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00e", Local0) SRMT (Local0) M00E (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) M010 (Local0) Concatenate (Arg0, "-m011", Local0) SRMT (Local0) M011 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) M013 (Local0) Concatenate (Arg0, "-m014", Local0) SRMT (Local0) M014 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) M016 (Local0) Concatenate (Arg0, "-m017", Local0) SRMT (Local0) M017 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01a", Local0) SRMT (Local0) M01A (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01d", Local0) SRMT (Local0) M01D (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) M01F (Local0) Concatenate (Arg0, "-m020", Local0) SRMT (Local0) M020 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) M022 (Local0) Concatenate (Arg0, "-m023", Local0) SRMT (Local0) M023 (Local0) } Method (M32D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m003", Local0) SRMT (Local0) M003 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m006", Local0) SRMT (Local0) M006 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m009", Local0) SRMT (Local0) M009 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00c", Local0) SRMT (Local0) M00C (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00f", Local0) SRMT (Local0) M00F (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) If (Y119) { M010 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m012", Local0) SRMT (Local0) M012 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) If (Y119) { M013 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m015", Local0) SRMT (Local0) M015 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) If (Y119) { M016 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m018", Local0) SRMT (Local0) M018 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01b", Local0) SRMT (Local0) M01B (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01e", Local0) SRMT (Local0) M01E (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) If (Y119) { M01F (Local0) } Else { BLCK () } Concatenate (Arg0, "-m021", Local0) SRMT (Local0) M021 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) If (Y119) { M022 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m024", Local0) SRMT (Local0) M024 (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M025, 1, NotSerialized) { Local1 = "0321" /* Conversion of the first operand */ Local0 = (Local1 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Local1 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local1 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Local1 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local1 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Local1 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local1 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Local1 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local1 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Local1 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Local1 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Local1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Local1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Local1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Local1) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M026, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" /* Conversion of the first operand */ Local0 = (Local2 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Local2 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local2 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Local2 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local2 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Local2 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local2 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Local2 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local2 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Local2 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Local2 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Local2) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Local2) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Local2) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Local2) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Local2) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Local2) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Local2) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Local2) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Local2) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Local2) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Local2) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Local2) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Local1 && Local2) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Local2 && Local1) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M027, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" /* Conversion of the first operand */ Local0 = (Local2 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Local2 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local2 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Local2 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local2 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Local2 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local2 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Local2 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local2 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Local2 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Local2 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Local2) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Local2) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Local2) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Local2) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Local2) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Local2) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Local2) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Local2) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Local2) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Local2) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Local2) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Local2) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Local1 && Local2) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Local2 && Local1) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M028, 1, NotSerialized) { Local1 = "0" /* Conversion of the first operand */ Local0 = (Local1 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Local1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local1 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Local1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Local1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Local1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Local1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Local1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || Local1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || Local1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || Local1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Local1) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M029, 1, NotSerialized) { Local1 = "FE7CB391D650A284" Local2 = "0" /* Conversion of the first operand */ Local0 = (Local1 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Local1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local1 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Local1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Local1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Local1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Local1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Local1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Local1) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Local1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Local1) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Local1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Local1) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Local1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Local1) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Local1) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Local2 || Local1) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Local1 || Local2) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M02A, 1, NotSerialized) { Local1 = "C179B3FE" Local2 = "0" /* Conversion of the first operand */ Local0 = (Local1 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Local1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local1 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Local1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Local1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Local1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Local1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Local1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Local1) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Local1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Local1) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Local1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Local1) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Local1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Local1) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Local1) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Local2 || Local1) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Local1 || Local2) M600 (Arg0, 0x19, Local0, Ones) } Method (M64E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m026", Local0) SRMT (Local0) M026 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m029", Local0) SRMT (Local0) M029 (Local0) } Method (M32E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m027", Local0) SRMT (Local0) M027 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m02a", Local0) SRMT (Local0) M02A (Local0) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64F, 1, NotSerialized) { Local1 = "FE7CB391D650A284" /* LEqual */ Local0 = (0xFE7CB391D650A284 == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == Local1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == Local1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == Local1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == Local1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == Local1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == Local1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == Local1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == Local1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == Local1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == Local1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == Local1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == Local1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > Local1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > Local1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > Local1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > Local1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > Local1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > Local1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > Local1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > Local1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > Local1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > Local1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > Local1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > Local1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > Local1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= Local1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= Local1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= Local1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= Local1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= Local1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= Local1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= Local1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= Local1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= Local1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= Local1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= Local1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= Local1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= Local1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= Local1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= Local1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < Local1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < Local1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < Local1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < Local1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < Local1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < Local1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < Local1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < Local1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < Local1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < Local1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < Local1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < Local1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < Local1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < Local1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < Local1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= Local1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= Local1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= Local1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= Local1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= Local1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= Local1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= Local1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= Local1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= Local1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= Local1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= Local1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= Local1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= Local1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= Local1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= Local1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= Local1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= Local1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != Local1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != Local1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != Local1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != Local1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != Local1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != Local1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != Local1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != Local1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != Local1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != Local1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != Local1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != Local1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != Local1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != Local1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != Local1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != Local1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != Local1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != Local1) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32F, 1, NotSerialized) { Local1 = "C179B3FE" /* LEqual */ Local0 = (0xC179B3FE == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xC179B3FF == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xC179B3FD == Local1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI3 == Local1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIC == Local1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIE == Local1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) == Local1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) == Local1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) == Local1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) == Local1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) == Local1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) == Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0C) == Local1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0E) == Local1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) == Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) == Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) == Local1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xC179B3FE > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xC179B3FF > Local1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xC179B3FD > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI3 > Local1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIC > Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIE > Local1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) > Local1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) > Local1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) > Local1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) > Local1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) > Local1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) > Local1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0C) > Local1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0E) > Local1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) > Local1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) > Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) > Local1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xC179B3FE >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xC179B3FF >= Local1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xC179B3FD >= Local1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI3 >= Local1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIC >= Local1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIE >= Local1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) >= Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) >= Local1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) >= Local1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) >= Local1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) >= Local1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) >= Local1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) >= Local1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0C) >= Local1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0E) >= Local1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >= Local1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) >= Local1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) >= Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xC179B3FE < Local1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xC179B3FF < Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xC179B3FD < Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI3 < Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIC < Local1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIE < Local1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) < Local1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) < Local1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) < Local1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) < Local1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) < Local1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) < Local1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) < Local1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0C) < Local1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0E) < Local1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) < Local1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) < Local1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) < Local1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xC179B3FE <= Local1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xC179B3FF <= Local1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xC179B3FD <= Local1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI3 <= Local1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIC <= Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIE <= Local1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) <= Local1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) <= Local1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) <= Local1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) <= Local1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) <= Local1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) <= Local1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) <= Local1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0C) <= Local1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0E) <= Local1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) <= Local1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) <= Local1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) <= Local1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xC179B3FE != Local1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xC179B3FF != Local1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xC179B3FD != Local1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI3 != Local1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIC != Local1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIE != Local1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) != Local1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) != Local1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) != Local1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) != Local1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) != Local1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) != Local1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) != Local1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0C) != Local1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0E) != Local1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) != Local1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) != Local1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) != Local1) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M02B, 1, NotSerialized) { Local1 = "0321" /* LEqual */ Local0 = (0x0321 == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == Local1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == Local1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == Local1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == Local1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == Local1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == Local1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == Local1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == Local1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == Local1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == Local1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == Local1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == Local1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > Local1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > Local1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > Local1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > Local1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > Local1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > Local1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > Local1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > Local1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > Local1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > Local1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > Local1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > Local1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > Local1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= Local1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= Local1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= Local1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= Local1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= Local1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= Local1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= Local1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= Local1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= Local1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= Local1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= Local1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= Local1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= Local1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= Local1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= Local1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < Local1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < Local1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < Local1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < Local1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < Local1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < Local1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < Local1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < Local1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < Local1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < Local1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < Local1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < Local1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < Local1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < Local1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < Local1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= Local1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= Local1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= Local1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= Local1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= Local1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= Local1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= Local1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= Local1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= Local1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= Local1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= Local1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= Local1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= Local1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= Local1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= Local1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= Local1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= Local1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != Local1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != Local1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != Local1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != Local1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != Local1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != Local1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != Local1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != Local1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != Local1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != Local1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != Local1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != Local1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != Local1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != Local1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != Local1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != Local1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != Local1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != Local1) M600 (Arg0, 0x6B, Local0, Ones) } } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64G, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" Local0 = Concatenate (0x0321, Local1) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, Local2) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, Local1) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, Local2) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Local1) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Local2) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Local1) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), Local2) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Local1) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), Local2) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local1) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local2) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, Local1, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, Local2, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, Local1, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, Local2, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), Local2, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), Local2, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), Local2, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local2, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32G, 1, NotSerialized) { Local1 = "0321" Local2 = "C179B3FE" Local0 = Concatenate (0x0321, Local1) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, Local2) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (AUI1, Local1) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, Local2) M600 (Arg0, 0x03, Local0, BB24) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Local1) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Local2) M600 (Arg0, 0x05, Local0, BB24) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Local1) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), Local2) M600 (Arg0, 0x07, Local0, BB24) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Local1) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), Local2) M600 (Arg0, 0x09, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local1) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local2) M600 (Arg0, 0x0B, Local0, BB24) } Concatenate (0x0321, Local1, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, Local2, Local0) M600 (Arg0, 0x0D, Local0, BB24) Concatenate (AUI1, Local1, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, Local2, Local0) M600 (Arg0, 0x0F, Local0, BB24) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), Local2, Local0) M600 (Arg0, 0x11, Local0, BB24) } Concatenate (DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), Local2, Local0) M600 (Arg0, 0x14, Local0, BB24) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), Local2, Local0) M600 (Arg0, 0x16, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local2, Local0) M600 (Arg0, 0x18, Local0, BB24) } } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M02C, 1, NotSerialized) { Local1 = "0321" Local2 = "B" Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local2) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, Local2) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, Local1) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Local2) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), Local1) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Local2) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), Local1) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Local2) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), Local1) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local2) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, Local2, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, Local1, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Local2, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), Local1, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Local2, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), Local1, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Local2, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), Local1, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64H, 1, NotSerialized) { Local1 = "FE7CB391D650A284" Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Local1) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Local1) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Local1) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Local1) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Local1, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Local1, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Local1, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Local1, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32H, 1, NotSerialized) { Local1 = "C179B3FE" Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Local1) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Local1) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Local1) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Local1) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Local1, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Local1, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Local1, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Local1, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Method (M02D, 1, NotSerialized) { Local1 = "B" Store (AUS6 [Local1], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [Local1], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [Local1], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [Local1], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [Local1], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [Local1], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [Local1], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [Local1], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [Local1], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [Local1], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [Local1], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [Local1], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [Local1], Local5) CH04 (Arg0, 0x00, 0x55, Z117, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [Local1], Local5) CH04 (Arg0, 0x00, 0x55, Z117, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [Local1], Local5) CH04 (Arg0, 0x00, 0x55, Z117, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [Local1], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [Local1], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [Local1], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [Local1] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [Local1] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [Local1] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [Local1] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [Local1] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [Local1] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [Local1] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [Local1] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [Local1] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [Local1] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [Local1] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [Local1] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [Local1] CH04 (Arg0, 0x00, 0x55, Z117, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [Local1] CH04 (Arg0, 0x00, 0x55, Z117, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [Local1] CH04 (Arg0, 0x00, 0x55, Z117, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [Local1] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [Local1] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [Local1] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local2 = AUS6 [Local1] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local2 = AUB6 [Local1] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local2 = AUP0 [Local1] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local2 = DerefOf (RefOf (AUS6)) [Local1] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (RefOf (AUB6)) [Local1] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (RefOf (AUP0)) [Local1] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local2 = DerefOf (PAUS [0x06]) [Local1] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (PAUB [0x06]) [Local1] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (PAUP [0x00]) [Local1] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local2 = M601 (0x02, 0x06) [Local1] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local2 = M601 (0x03, 0x06) [Local1] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local2 = M601 (0x04, 0x00) [Local1] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local2 = DerefOf (M602 (0x02, 0x06, 0x01)) [Local1] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (M602 (0x03, 0x06, 0x01)) [Local1] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (M602 (0x04, 0x00, 0x01)) [Local1] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M02E, 1, NotSerialized) { Local1 = "0321" Local2 = "FE7CB391D650A284" Local3 = "C179B3FE" CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, Local1) If (F64) { Fatal (0xFF, 0xFFFFFFFF, Local2) } Else { Fatal (0xFF, 0xFFFFFFFF, Local3) } CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) } /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M02F, 1, NotSerialized) { Local1 = "B" /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", Local1, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, Local1, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, Local1, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Local1, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), Local1, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), Local1, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), Local1, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Local1, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), Local1, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local1, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", Local1, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, Local1, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, Local1, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Local1, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), Local1, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), Local1, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), Local1, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), Local1, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), Local1, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local1, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Local1) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, Local1) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, Local1) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Local1) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Local1) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Local1) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Local1) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Local1) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, Local1) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, Local1, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, Local1, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, Local1, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Local1, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, Local1, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64I, 1, NotSerialized) { Local1 = "FE7CB391D650A284" Local2 = "B" /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Local1) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Local1) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Local1) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Local1) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Local1) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Local1) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Local1) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Local1) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Local1) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Local1, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Local1, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Local1, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Local1, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Local1, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Local2, Local1) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local1) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Local2, Local1) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Local2, Local1) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Local2, Local1) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Local2, Local1) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Local2, Local1) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Local2, Local1) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Local2, Local1) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Local2, Local1) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local2, Local1) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local1) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Local2, Local1, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local1, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Local2, Local1, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Local2, Local1, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Local2, Local1, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Local2, Local1, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Local2, Local1, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Local2, Local1, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Local2, Local1, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Local2, Local1, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local2, Local1, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local1, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32I, 1, NotSerialized) { Local1 = "C179B3FE" Local2 = "B" /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Local1) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Local1) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Local1) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Local1) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Local1) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Local1) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Local1) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Local1) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Local1) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Local1, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Local1, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Local1, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Local1, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Local1, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Local2, Local1) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local1) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Local2, Local1) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Local2, Local1) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Local2, Local1) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Local2, Local1) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Local2, Local1) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Local2, Local1) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Local2, Local1) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Local2, Local1) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local2, Local1) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local1) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Local2, Local1, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local1, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Local2, Local1, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Local2, Local1, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Local2, Local1, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Local2, Local1, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Local2, Local1, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Local2, Local1, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Local2, Local1, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Local2, Local1, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local2, Local1, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local1, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Method (M030, 1, NotSerialized) { Local1 = "B" Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64j, 1) */ /* Method(m32j, 1) */ /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M031, 1, NotSerialized) { Local3 = "0321" Local4 = "63" CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (Local3) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z117, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (Local4) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z117, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator ??? */ Method (M032, 1, Serialized) { Local3 = "0321" Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Local3) */ CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z117, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Method (M033, 1, Serialized) { Local1 = "0321" Event (EVT0) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, Local1) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z117, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M034, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { Local0 = "0" If (Local0) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { Local1 = "0321" If (Local1) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { Local3 = "C179B3FE" If (Local3) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { Local2 = "FE7CB391D650A284" If (Local2) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { Local0 = "0" If (Arg0) { IST0 = 0xFF } ElseIf (Local0) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { Local1 = "0321" If (Arg0) { IST0 = 0xFF } ElseIf (Local1) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { Local3 = "C179B3FE" If (Arg0) { IST0 = 0xFF } ElseIf (Local3) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { Local2 = "FE7CB391D650A284" If (Arg0) { IST0 = 0xFF } ElseIf (Local2) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { Local0 = "0" While (Local0) { IST0 = 0x00 Break } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64k, 1) */ /* Method(m32k, 1) */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M035, 1, NotSerialized) { Local1 = "0321" Local2 = "" Local3 = "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" /* LEqual */ Local0 = (Buffer (0x05) { "0321" } == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB7 == Local1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == Local1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) == Local1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == Local1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == Local1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) == Local1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == Local1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) == Local1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == Local1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x05) { "0321" } > Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } > Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } > Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } > Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB7 > Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB8 > Local1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) > Local1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) > Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) > Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x08) > Local1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) > Local1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x05) { "0321" } >= Local1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } >= Local1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } >= Local1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } >= Local1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB7 >= Local1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB8 >= Local1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) >= Local1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) >= Local1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) >= Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) >= Local1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x08) >= Local1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) >= Local1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) >= Local1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x05) { "0321" } < Local1) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } < Local1) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } < Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } < Local1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB7 < Local1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB8 < Local1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) < Local1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) < Local1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) < Local1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) < Local1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) < Local1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x08) < Local1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) < Local1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) < Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x05) { "0321" } <= Local1) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } <= Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } <= Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } <= Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB7 <= Local1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB8 <= Local1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) <= Local1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) <= Local1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) <= Local1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) <= Local1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) <= Local1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x08) <= Local1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) <= Local1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) <= Local1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x05) { "0321" } != Local1) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } != Local1) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } != Local1) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } != Local1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB7 != Local1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB8 != Local1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) != Local1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) != Local1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) != Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) != Local1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) != Local1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x08) != Local1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) != Local1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) != Local1) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = (Buffer (0x01) { 0x00 // . } == Local2) M600 (Arg0, 0x52, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } == Local2) M600 (Arg0, 0x53, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } > Local2) M600 (Arg0, 0x54, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } > Local2) M600 (Arg0, 0x55, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } >= Local2) M600 (Arg0, 0x56, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } > Local2) M600 (Arg0, 0x57, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } < Local2) M600 (Arg0, 0x58, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } < Local2) M600 (Arg0, 0x59, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } <= Local2) M600 (Arg0, 0x5A, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } <= Local2) M600 (Arg0, 0x5B, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } != Local2) M600 (Arg0, 0x5C, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } != Local2) M600 (Arg0, 0x5D, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } == Local3) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } == Local3) M600 (Arg0, 0x5F, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } > Local3) M600 (Arg0, 0x60, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > Local3) M600 (Arg0, 0x61, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } >= Local3) M600 (Arg0, 0x62, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > Local3) M600 (Arg0, 0x63, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } < Local3) M600 (Arg0, 0x64, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } < Local3) M600 (Arg0, 0x65, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } <= Local3) M600 (Arg0, 0x66, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } <= Local3) M600 (Arg0, 0x67, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } != Local3) M600 (Arg0, 0x68, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } != Local3) M600 (Arg0, 0x69, Local0, Ones) } /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M036, 1, NotSerialized) { Local1 = "0321" Local2 = "" Local3 = "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Local1) M600 (Arg0, 0x00, Local0, BB29) Local0 = Concatenate (Buffer (0x02) { "Z" }, Local1) M600 (Arg0, 0x01, Local0, BB2A) Local0 = Concatenate (AUB0, Local1) M600 (Arg0, 0x02, Local0, BB29) Local0 = Concatenate (AUB1, Local1) M600 (Arg0, 0x03, Local0, BB2A) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), Local1) M600 (Arg0, 0x04, Local0, BB29) Local0 = Concatenate (DerefOf (RefOf (AUB1)), Local1) M600 (Arg0, 0x05, Local0, BB2A) } Local0 = Concatenate (DerefOf (PAUB [0x00]), Local1) M600 (Arg0, 0x06, Local0, BB29) Local0 = Concatenate (DerefOf (PAUB [0x01]), Local1) M600 (Arg0, 0x07, Local0, BB2A) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), Local1) M600 (Arg0, 0x08, Local0, BB29) Local0 = Concatenate (M601 (0x03, 0x01), Local1) M600 (Arg0, 0x09, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Local1) M600 (Arg0, 0x0A, Local0, BB29) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Local1) M600 (Arg0, 0x0B, Local0, BB2A) } Concatenate (Buffer (0x01) { 0x5A // Z }, Local1, Local0) M600 (Arg0, 0x0C, Local0, BB29) Concatenate (Buffer (0x02) { "Z" }, Local1, Local0) M600 (Arg0, 0x0D, Local0, BB2A) Concatenate (AUB0, Local1, Local0) M600 (Arg0, 0x0E, Local0, BB29) Concatenate (AUB1, Local1, Local0) M600 (Arg0, 0x0F, Local0, BB2A) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), Local1, Local0) M600 (Arg0, 0x10, Local0, BB29) Concatenate (DerefOf (RefOf (AUB1)), Local1, Local0) M600 (Arg0, 0x11, Local0, BB2A) } Concatenate (DerefOf (PAUB [0x00]), Local1, Local0) M600 (Arg0, 0x12, Local0, BB29) Concatenate (DerefOf (PAUB [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, BB2A) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), Local1, Local0) M600 (Arg0, 0x14, Local0, BB29) Concatenate (M601 (0x03, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, BB29) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, BB2A) } /* Boundary Cases */ Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, Local2) M600 (Arg0, 0x18, Local0, BB2B) Local0 = Concatenate (Buffer (0x02) { "Z" }, Local2) M600 (Arg0, 0x19, Local0, BB2C) Local1 = 0x00 Local0 = Concatenate (Buffer (Local1){}, Local3) M600 (Arg0, 0x1A, Local0, BB2D) } /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character, that is impossible to show */ /* with an immediate String constant). */ Method (M037, 1, NotSerialized) { Local1 = "0321" Local2 = "" Local3 = "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" Local0 = ToString (Local1, Ones) M600 (Arg0, 0x00, Local0, BS20) Local0 = ToString (Local1, 0x03) M600 (Arg0, 0x01, Local0, BS21) Local0 = ToString (Local1, AUI0) M600 (Arg0, 0x02, Local0, BS20) Local0 = ToString (Local1, AUI7) M600 (Arg0, 0x03, Local0, BS21) If (Y078) { Local0 = ToString (Local1, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x04, Local0, BS20) Local0 = ToString (Local1, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x05, Local0, BS21) } Local0 = ToString (Local1, DerefOf (PAUI [0x00])) M600 (Arg0, 0x06, Local0, BS20) Local0 = ToString (Local1, DerefOf (PAUI [0x07])) M600 (Arg0, 0x07, Local0, BS21) /* Method returns Length parameter */ Local0 = ToString (Local1, M601 (0x01, 0x00)) M600 (Arg0, 0x08, Local0, BS20) Local0 = ToString (Local1, M601 (0x01, 0x07)) M600 (Arg0, 0x09, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (Local1, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0A, Local0, BS20) Local0 = ToString (Local1, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x0B, Local0, BS21) } ToString (Local1, Ones, Local0) M600 (Arg0, 0x0C, Local0, BS20) ToString (Local1, 0x03, Local0) M600 (Arg0, 0x0D, Local0, BS21) ToString (Local1, AUI0, Local0) M600 (Arg0, 0x0E, Local0, BS20) ToString (Local1, AUI7, Local0) M600 (Arg0, 0x0F, Local0, BS21) If (Y078) { ToString (Local1, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x10, Local0, BS20) ToString (Local1, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x11, Local0, BS21) } ToString (Local1, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x12, Local0, BS20) ToString (Local1, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x13, Local0, BS21) /* Method returns Length parameter */ ToString (Local1, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS20) ToString (Local1, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x15, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { ToString (Local1, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x16, Local0, BS20) ToString (Local1, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x17, Local0, BS21) } /* Boundary Cases */ Local0 = ToString (Local2, Ones) M600 (Arg0, 0x18, Local0, BS22) Local0 = ToString (Local2, 0x03) M600 (Arg0, 0x19, Local0, BS22) Local0 = ToString (Local3, Ones) M600 (Arg0, 0x1A, Local0, BS23) Local0 = ToString (Local3, 0x03) M600 (Arg0, 0x1B, Local0, BS24) } /* Method(m038, 1) */ /* Method(m039, 1) */ /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Decrement */ If (Y501) { Local0 = Local1-- M600 (Arg0, 0x00, Local0, BI12) Local0 = Local2-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = Local1++ M600 (Arg0, 0x02, Local0, BI13) Local0 = Local2++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (Local1) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (Local2) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (Local1) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (Local2) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~Local1, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~Local2, Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Decrement */ If (Y501) { Local0 = Local1-- M600 (Arg0, 0x00, Local0, BI12) Local0 = Local2-- M600 (Arg0, 0x01, Local0, BI18) } /* Increment */ If (Y501) { Local0 = Local1++ M600 (Arg0, 0x02, Local0, BI13) Local0 = Local2++ M600 (Arg0, 0x03, Local0, BI19) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (Local1) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (Local2) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (Local1) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (Local2) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~Local1, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~Local2, Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local3 = Buffer (0x01) { 0x00 // . } Local0 = !Local3 M600 (Arg0, 0x00, Local0, Ones) Local0 = !Local1 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !Local2 M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !Local2 M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 } Local3 = Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. } /* FromBCD */ Local0 = FromBCD (Local1) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Local2) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (Local1, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Local2, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (Local1) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (Local3) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (Local1, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Local3, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. } Local3 = Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. } /* FromBCD */ Local0 = FromBCD (Local1) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (Local2) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (Local1, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (Local2, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (Local1) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (Local3) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (Local1, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (Local3, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((Local1 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((Local1 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((Local1 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((Local1 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((Local1 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (Local1 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (Local1 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (Local1 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (Local1 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (Local1 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + Local1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + Local1), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Local1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + Local1), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Local1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Local1), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + Local1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + Local1) M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + Local1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + Local1) M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Local1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + Local1) M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + Local1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + Local1) M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Local1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + Local1) M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Local1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Local1) M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((Local2 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((Local2 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((Local2 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((Local2 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (Local2 + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (Local2 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (Local2 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (Local2 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (Local2 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + Local2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Local2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Local2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + Local2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + Local2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + Local2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + Local2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Local2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + Local2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + Local2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + Local2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Local2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + Local2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Local2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Local2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((Local1 + Local2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((Local2 + Local1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (Local1 + Local2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (Local2 + Local1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Local2 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((Local2 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Local2 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((Local2 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Local2 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((Local2 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Local2 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((Local2 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Local2 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Local2 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (Local2 + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Local2 + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (Local2 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Local2 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (Local2 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Local2 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (Local2 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Local2 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (Local2 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Local2 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Local2 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + Local2), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + Local2), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + Local2), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + Local2), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + Local2), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + Local2), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + Local2) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + Local2) M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + Local2) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + Local2) M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + Local2) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + Local2) M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + Local2) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + Local2) M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + Local2) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + Local2) M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + Local2) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + Local2) M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((Local1 + Local2), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((Local2 + Local1), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (Local1 + Local2) M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (Local2 + Local1) M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((Local1 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local1 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Local1 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local1 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Local1 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local1 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Local1 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local1 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Local1 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local1 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local1 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Local1 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local1 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Local1 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local1 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Local1 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local1 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Local1 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local1 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Local1 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local1 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local1 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & Local1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Local1), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Local1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Local1), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Local1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Local1), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & Local1) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Local1) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & Local1) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Local1) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Local1) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Local1) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & Local1) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Local1) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Local1) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Local1) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Local1) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Local1) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local2 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Local2 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local2 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Local2 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local2 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Local2 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local2 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Local2 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local2 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local2 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Local2 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local2 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Local2 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local2 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Local2 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local2 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Local2 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local2 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Local2 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local2 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local2 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & Local2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & Local2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & Local2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & Local2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & Local2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & Local2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Local1 & Local2), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((Local2 & Local1), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (Local1 & Local2) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (Local2 & Local1) M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local2 & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((Local2 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local2 & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((Local2 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local2 & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((Local2 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local2 & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((Local2 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local2 & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local2 & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (Local2 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local2 & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (Local2 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local2 & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (Local2 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local2 & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (Local2 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local2 & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (Local2 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local2 & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local2 & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & Local2), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & Local2), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & Local2), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & Local2) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & Local2) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & Local2) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & Local2) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & Local2) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & Local2) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((Local1 & Local2), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((Local2 & Local1), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (Local1 & Local2) M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (Local2 & Local1) M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((Local1 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local1 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local1 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local1 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local1 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Local1, 0x01, Local2, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (Local1, 0x0321, Local2, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Local1, AUI6, Local2, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (Local1, AUI1, Local2, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Local1, DerefOf (RefOf (AUI6)), Local2, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (Local1, DerefOf (RefOf (AUI1)), Local2, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Local1, DerefOf (PAUI [0x06]), Local2, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (Local1, DerefOf (PAUI [0x01]), Local2, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Local1, M601 (0x01, 0x06), Local2, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (Local1, M601 (0x01, 0x01), Local2, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Local1, DerefOf (M602 (0x01, 0x06, 0x01)), Local2, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (Local1, DerefOf (M602 (0x01, 0x01, 0x01)), Local2, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Local1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / Local1), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Local1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / Local1), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Local1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / Local1), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Local1, Local2, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, Local1, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Local1, Local2, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, Local1, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Local1, Local2, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), Local1, Local2, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Local1, Local2, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), Local1, Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Local1, Local2, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), Local1, Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local2, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local2 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local2 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local2 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local2 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Local2, 0x01, Local3, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (Local2, 0xFE7CB391D650A284, Local3, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Local2, AUI6, Local3, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (Local2, AUI4, Local3, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Local2, DerefOf (RefOf (AUI6)), Local3, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (Local2, DerefOf (RefOf (AUI4)), Local3, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Local2, DerefOf (PAUI [0x06]), Local3, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (Local2, DerefOf (PAUI [0x04]), Local3, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Local2, M601 (0x01, 0x06), Local3, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (Local2, M601 (0x01, 0x04), Local3, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Local2, DerefOf (M602 (0x01, 0x06, 0x01)), Local3, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (Local2, DerefOf (M602 (0x01, 0x04, 0x01)), Local3, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / Local2), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / Local2), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / Local2), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Local2, Local3, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, Local2, Local3, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Local2, Local3, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, Local2, Local3, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Local2, Local3, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), Local2, Local3, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Local2, Local3, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), Local2, Local3, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Local2, Local3, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), Local2, Local3, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Local2, Local3, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), Local2, Local3, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Local1 / Local2), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Local2 / Local1), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (Local1, Local2, Local3, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Local2, Local1, Local3, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Local2 / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local2 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Local2 / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local2 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Local2 / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local2 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Local2 / DerefOf (PAUI [0x14])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local2 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Local2 / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Local2 / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (Local2, 0x01, Local3, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (Local2, 0xD650A284, Local3, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (Local2, AUI6, Local3, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (Local2, AUIK, Local3, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (Local2, DerefOf (RefOf (AUI6)), Local3, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (Local2, DerefOf (RefOf (AUIK)), Local3, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (Local2, DerefOf (PAUI [0x06]), Local3, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (Local2, DerefOf (PAUI [0x14]), Local3, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (Local2, M601 (0x01, 0x06), Local3, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (Local2, M601 (0x01, 0x14), Local3, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (Local2, DerefOf (M602 (0x01, 0x06, 0x01)), Local3, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (Local2, DerefOf (M602 (0x01, 0x14, 0x01)), Local3, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / Local2), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / Local2), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / Local2), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, Local2, Local3, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, Local2, Local3, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, Local2, Local3, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, Local2, Local3, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), Local2, Local3, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), Local2, Local3, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), Local2, Local3, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), Local2, Local3, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), Local2, Local3, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), Local2, Local3, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), Local2, Local3, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), Local2, Local3, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((Local1 / Local2), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Local2 / Local1), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (Local1, Local2, Local3, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (Local2, Local1, Local3, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((Local1 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local1 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local1 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local1 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local1 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Local1 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Local1 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Local1 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Local1 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Local1 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % Local1), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % Local1), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % Local1), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % Local1), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % Local1), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % Local1), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % Local1) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % Local1) M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % Local1) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % Local1) M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % Local1) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % Local1) M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % Local1) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % Local1) M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % Local1) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % Local1) M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % Local1) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % Local1) M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local2 % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((Local2 % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local2 % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((Local2 % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local2 % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Local2 % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Local2 % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Local2 % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Local2 % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Local2 % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % Local2), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % Local2), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % Local2), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % Local2) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % Local2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % Local2) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % Local2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % Local2) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % Local2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % Local2) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % Local2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % Local2) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % Local2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % Local2) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % Local2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((Local1 % Local2), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Local2 % Local1), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (Local1 % Local2) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Local2 % Local1) M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Local2 % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((Local2 % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Local2 % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((Local2 % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Local2 % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((Local2 % DerefOf (PAUI [0x15])), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((Local2 % DerefOf (PAUI [0x16])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((Local2 % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Local2 % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Local2 % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (Local2 % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Local2 % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (Local2 % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Local2 % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (Local2 % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Local2 % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (Local2 % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Local2 % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (Local2 % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Local2 % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Local2 % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % Local2), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % Local2), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % Local2), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % Local2), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % Local2), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % Local2), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % Local2) M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % Local2) M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % Local2) M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % Local2) M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % Local2) M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % Local2) M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % Local2) M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % Local2) M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % Local2) M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % Local2) M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % Local2) M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % Local2) M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((Local1 % Local2), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((Local2 % Local1), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (Local1 % Local2) M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (Local2 % Local1) M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((Local1 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local1 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((Local1 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local1 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((Local1 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local1 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((Local1 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local1 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((Local1 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local1 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local1 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (Local1 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local1 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (Local1 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local1 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (Local1 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local1 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (Local1 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local1 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (Local1 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local1 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local1 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * Local1), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Local1), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Local1), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Local1), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Local1), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Local1), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Local1), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Local1), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Local1), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * Local1) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Local1) M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * Local1) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Local1) M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Local1) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Local1) M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * Local1) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Local1) M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Local1) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Local1) M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Local1) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Local1) M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local2 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((Local2 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local2 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((Local2 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local2 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((Local2 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local2 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((Local2 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local2 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local2 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (Local2 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local2 * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (Local2 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local2 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (Local2 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local2 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (Local2 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local2 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (Local2 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local2 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local2 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Local2) M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Local2) M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Local2) M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Local2) M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Local2) M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Local2) M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((Local1 * Local2), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((Local2 * Local1), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (Local1 * Local2) M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (Local2 * Local1) M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((Local2 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((Local2 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((Local2 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((Local2 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((Local2 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((Local2 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((Local2 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((Local2 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((Local2 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((Local2 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (Local2 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (Local2 * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (Local2 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (Local2 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (Local2 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (Local2 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (Local2 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (Local2 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (Local2 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (Local2 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (Local2 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * Local2), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * Local2), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * Local2), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * Local2) M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * Local2) M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * Local2) M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * Local2) M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * Local2) M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * Local2) M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((Local1 * Local2), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((Local2 * Local1), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (Local1 * Local2) M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (Local2 * Local1) M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Local0 = NAnd (Local1, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (Local1, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (Local1, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (Local1, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (Local1, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Local1, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local1, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Local1, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (Local1, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (Local1, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (Local1, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (Local1, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (Local1, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local1, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Local1) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Local1) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, Local1) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Local1) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Local1) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Local1) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), Local1) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Local1) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Local1) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Local1) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local1) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Local1) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, Local1, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Local1, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, Local1, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Local1, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Local0 = NAnd (Local2, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (Local2, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (Local2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (Local2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (Local2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Local2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (Local2, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (Local2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (Local2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (Local2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (Local2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (Local2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (Local2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (Local2, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Local2) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, Local2) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, Local2) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, Local2) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Local2) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), Local2) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), Local2) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), Local2) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Local2) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), Local2) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local2) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Local2) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, Local2, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, Local2, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Local2, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), Local2, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), Local2, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Local2, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local2, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (Local1, Local2) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (Local2, Local1) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Local1, Local2, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (Local2, Local1, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Local0 = NAnd (Local2, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (Local2, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (Local2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (Local2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (Local2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (Local2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (Local2, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (Local2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (Local2, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (Local2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (Local2, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (Local2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (Local2, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (Local2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (Local2, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (Local2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (Local2, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (Local2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (Local2, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, Local2) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, Local2) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, Local2) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, Local2) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), Local2) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), Local2) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), Local2) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), Local2) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), Local2) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), Local2) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local2) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Local2) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, Local2, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, Local2, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), Local2, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), Local2, Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), Local2, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), Local2, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), Local2, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (Local1, Local2) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (Local2, Local1) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (Local1, Local2, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (Local2, Local1, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Local0 = NOr (Local1, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Local1, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Local1, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Local1, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Local1, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Local1, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (Local1, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Local1, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Local1, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Local1, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Local1, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Local1, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Local1, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (Local1, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Local1) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Local1) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Local1) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, Local1) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Local1) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), Local1) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Local1) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), Local1) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Local1) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), Local1) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local1) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Local1) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Local1, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Local1, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Local1, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), Local1, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Local1, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Local1, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local1, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Local0 = NOr (Local2, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Local2, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Local2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Local2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Local2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Local2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (Local2, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Local2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (Local2, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Local2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (Local2, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Local2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (Local2, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Local2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (Local2, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Local2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (Local2, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Local2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (Local2, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Local2) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, Local2) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Local2) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, Local2) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Local2) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), Local2) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Local2) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), Local2) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Local2) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), Local2) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local2) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Local2) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Local2, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Local2, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Local2, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), Local2, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Local2, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Local2, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local2, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Local1, Local2) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (Local2, Local1) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (Local1, Local2, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (Local2, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Local0 = NOr (Local2, 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (Local2, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (Local2, AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (Local2, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (Local2, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (Local2, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (Local2, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (Local2, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (Local2, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (Local2, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (Local2, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (Local2, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (Local2, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (Local2, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (Local2, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (Local2, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (Local2, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (Local2, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (Local2, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (Local2, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (Local2, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (Local2, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (Local2, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (Local2, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, Local2) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, Local2) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, Local2) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, Local2) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), Local2) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), Local2) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), Local2) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), Local2) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), Local2) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), Local2) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local2) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Local2) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, Local2, Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, Local2, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, Local2, Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, Local2, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), Local2, Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), Local2, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), Local2, Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), Local2, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), Local2, Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), Local2, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), Local2, Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), Local2, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (Local1, Local2) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (Local2, Local1) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (Local1, Local2, Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (Local2, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((Local1 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Local1 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Local1 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Local1 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Local1 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Local1 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Local1 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Local1 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Local1 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Local1 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Local1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | Local1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | Local1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | Local1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | Local1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Local1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | Local1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Local1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Local1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Local1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | Local1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Local1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | Local1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Local1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | Local1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Local1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | Local1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Local1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | Local1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Local1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Local1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((Local2 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((Local2 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((Local2 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((Local2 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Local2 | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (Local2 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (Local2 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (Local2 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (Local2 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Local2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Local2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Local2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | Local2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | Local2) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | Local2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | Local2) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Local2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | Local2) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Local2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | Local2) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Local2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | Local2) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Local2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | Local2) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((Local1 | Local2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((Local2 | Local1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (Local1 | Local2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (Local2 | Local1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Local2 | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((Local2 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Local2 | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((Local2 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Local2 | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((Local2 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Local2 | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((Local2 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Local2 | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Local2 | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (Local2 | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Local2 | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (Local2 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Local2 | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (Local2 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Local2 | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (Local2 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Local2 | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (Local2 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Local2 | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Local2 | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | Local2), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | Local2), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | Local2), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | Local2), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | Local2), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | Local2), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | Local2), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | Local2), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | Local2), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | Local2) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | Local2) M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | Local2) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | Local2) M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | Local2) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | Local2) M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | Local2) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | Local2) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | Local2) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | Local2) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | Local2) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | Local2) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((Local1 | Local2), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((Local2 | Local1), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (Local1 | Local2) M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (Local2 | Local1) M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x01) { 0x0B // . } /* Conversion of the first operand */ Store ((Local1 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((Local1 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((Local1 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((Local1 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((Local1 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (Local1 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (Local1 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (Local1 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (Local1 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (Local1 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Local2), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Local2), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Local2), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Local2) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Local2) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Local2) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Local2) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Local2) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Local2) M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local3 = Buffer (0x01) { 0x0B // . } /* Conversion of the first operand */ Store ((Local2 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((Local2 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((Local2 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((Local2 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((Local2 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (Local2 << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (Local2 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (Local2 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (Local2 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (Local2 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << Local3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Local3), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Local3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Local3), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Local3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Local3), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Local3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Local3), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Local3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Local3), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Local3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Local3), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Local3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Local3) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Local3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Local3) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Local3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Local3) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Local3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Local3) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Local3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Local3) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Local3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Local3) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Local1 << Local3), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Local2 << Local3), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (Local1 << Local3) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Local2 << Local3) M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local3 = Buffer (0x01) { 0x0B // . } /* Conversion of the first operand */ Store ((Local2 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Local2 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((Local2 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Local2 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((Local2 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Local2 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((Local2 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Local2 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((Local2 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Local2 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Local2 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (Local2 << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Local2 << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (Local2 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Local2 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (Local2 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Local2 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (Local2 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Local2 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (Local2 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Local2 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Local2 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << Local3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << Local3), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << Local3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << Local3), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << Local3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << Local3), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << Local3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << Local3), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << Local3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << Local3), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << Local3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << Local3), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << Local3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << Local3) M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << Local3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << Local3) M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << Local3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << Local3) M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << Local3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << Local3) M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << Local3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << Local3) M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << Local3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << Local3) M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((Local1 << Local3), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((Local2 << Local3), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (Local1 << Local3) M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (Local2 << Local3) M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x01) { 0x0B // . } /* Conversion of the first operand */ Store ((Local1 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((Local1 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((Local1 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((Local1 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((Local1 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (Local1 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (Local1 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (Local1 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (Local1 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (Local1 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> Local2), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> Local2), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Local2), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> Local2), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Local2), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> Local2), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> Local2) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> Local2) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> Local2) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> Local2) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Local2) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> Local2) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Local2) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> Local2) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Local2) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> Local2) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Local2) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> Local2) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local3 = Buffer (0x01) { 0x0B // . } /* Conversion of the first operand */ Store ((Local2 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((Local2 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((Local2 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((Local2 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((Local2 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (Local2 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (Local2 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (Local2 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (Local2 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (Local2 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> Local3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> Local3), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> Local3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> Local3), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Local3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> Local3), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> Local3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> Local3), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Local3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> Local3), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Local3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> Local3), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> Local3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> Local3) M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> Local3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> Local3) M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Local3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> Local3) M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Local3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> Local3) M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Local3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> Local3) M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Local3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> Local3) M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((Local1 >> Local3), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Local2 >> Local3), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (Local1 >> Local3) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Local2 >> Local3) M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local3 = Buffer (0x01) { 0x0B // . } /* Conversion of the first operand */ Store ((Local2 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Local2 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((Local2 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Local2 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((Local2 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Local2 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((Local2 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Local2 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((Local2 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Local2 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Local2 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (Local2 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Local2 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (Local2 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Local2 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (Local2 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Local2 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (Local2 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Local2 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (Local2 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Local2 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Local2 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> Local3), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> Local3), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> Local3), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> Local3), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> Local3), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> Local3), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> Local3), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> Local3), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> Local3), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> Local3), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> Local3), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> Local3), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> Local3) M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> Local3) M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> Local3) M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> Local3) M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> Local3) M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> Local3) M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> Local3) M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> Local3) M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> Local3) M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> Local3) M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> Local3) M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> Local3) M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((Local1 >> Local3), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((Local2 >> Local3), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (Local1 >> Local3) M600 (Arg0, 0x32, Local0, 0x00) Local0 = (Local2 >> Local3) M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((Local1 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((Local1 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((Local1 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((Local1 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((Local1 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (Local1 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (Local1 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (Local1 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (Local1 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (Local1 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - Local1), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - Local1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - Local1), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - Local1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Local1), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - Local1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - Local1), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - Local1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Local1), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - Local1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Local1), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Local1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - Local1) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - Local1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - Local1) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - Local1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Local1) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - Local1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - Local1) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - Local1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Local1) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - Local1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Local1) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Local1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((Local2 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((Local2 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((Local2 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((Local2 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (Local2 - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (Local2 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (Local2 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (Local2 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (Local2 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - Local2), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - Local2), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Local2), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - Local2), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Local2), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Local2), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - Local2) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - Local2) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - Local2) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - Local2) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Local2) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - Local2) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - Local2) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - Local2) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Local2) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - Local2) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Local2) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Local2) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((Local1 - Local2), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((Local2 - Local1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (Local1 - Local2) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (Local2 - Local1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Local2 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((Local2 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Local2 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((Local2 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Local2 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((Local2 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Local2 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((Local2 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Local2 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Local2 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (Local2 - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Local2 - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (Local2 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Local2 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (Local2 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Local2 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (Local2 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Local2 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (Local2 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Local2 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Local2 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - Local2), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - Local2), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - Local2), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - Local2), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - Local2), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - Local2), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - Local2), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - Local2), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - Local2), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - Local2) M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - Local2) M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - Local2) M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - Local2) M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - Local2) M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - Local2) M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - Local2) M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - Local2) M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - Local2) M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - Local2) M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - Local2) M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - Local2) M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((Local1 - Local2), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((Local2 - Local1), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (Local1 - Local2) M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (Local2 - Local1) M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Store ((Local1 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((Local1 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((Local1 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((Local1 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((Local1 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((Local1 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((Local1 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((Local1 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((Local1 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((Local1 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((Local1 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((Local1 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Local1 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (Local1 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (Local1 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (Local1 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (Local1 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (Local1 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (Local1 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (Local1 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (Local1 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (Local1 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (Local1 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ Local1), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ Local1), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ Local1), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ Local1), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Local1), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ Local1), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ Local1), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ Local1), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Local1), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ Local1), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local1), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Local1), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ Local1) M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ Local1) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ Local1) M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ Local1) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Local1) M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ Local1) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ Local1) M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ Local1) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Local1) M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ Local1) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local1) M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Local1) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((Local2 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((Local2 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((Local2 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((Local2 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((Local2 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (Local2 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (Local2 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (Local2 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (Local2 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (Local2 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (Local2 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ Local2), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ Local2), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Local2), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ Local2), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local2), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ Local2), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ Local2) M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ Local2) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ Local2) M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ Local2) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Local2) M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ Local2) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ Local2) M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ Local2) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Local2) M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ Local2) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local2) M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ Local2) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((Local1 ^ Local2), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((Local2 ^ Local1), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (Local1 ^ Local2) M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (Local2 ^ Local1) M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Store ((Local2 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((Local2 ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((Local2 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((Local2 ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((Local2 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((Local2 ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((Local2 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((Local2 ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((Local2 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((Local2 ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((Local2 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((Local2 ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (Local2 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (Local2 ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (Local2 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (Local2 ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (Local2 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (Local2 ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (Local2 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (Local2 ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (Local2 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (Local2 ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (Local2 ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ Local2), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ Local2), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ Local2), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ Local2), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ Local2), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ Local2), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ Local2), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ Local2), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ Local2), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ Local2), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local2), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ Local2), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ Local2) M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ Local2) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ Local2) M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ Local2) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ Local2) M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ Local2) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ Local2) M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ Local2) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ Local2) M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ Local2) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ Local2) M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ Local2) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((Local1 ^ Local2), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((Local2 ^ Local1), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (Local1 ^ Local2) M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (Local2 ^ Local1) M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* Conversion of the first operand */ Local0 = (Local1 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Local1 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local1 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Local1 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local1 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Local1 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local1 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Local1 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local1 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Local1 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Local1 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Local1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Local1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Local1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Local1) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Local0 = (Local2 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Local2 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local2 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Local2 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local2 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Local2 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local2 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Local2 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local2 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Local2 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Local2 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Local2) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Local2) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Local2) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Local2) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Local2) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Local2) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Local2) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Local2) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Local2) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Local2) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Local2) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Local2) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Local1 && Local2) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Local2 && Local1) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* Conversion of the first operand */ Local0 = (Local2 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Local2 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local2 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Local2 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local2 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Local2 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local2 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Local2 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local2 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Local2 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local2 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Local2 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && Local2) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && Local2) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && Local2) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && Local2) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && Local2) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && Local2) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && Local2) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && Local2) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && Local2) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && Local2) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && Local2) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && Local2) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Local1 && Local2) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Local2 && Local1) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { Local1 = Buffer (0x01) { 0x00 // . } /* Conversion of the first operand */ Local0 = (Local1 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (Local1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local1 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (Local1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (Local1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (Local1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (Local1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (Local1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || Local1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || Local1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || Local1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Local1) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { Local1 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local2 = Buffer (0x01) { 0x00 // . } /* Conversion of the first operand */ Local0 = (Local1 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Local1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local1 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Local1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Local1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Local1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Local1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Local1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Local1) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Local1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Local1) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Local1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Local1) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Local1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Local1) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Local1) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Local2 || Local1) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Local1 || Local2) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { Local1 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local2 = Buffer (0x01) { 0x00 // . } /* Conversion of the first operand */ Local0 = (Local1 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Local1 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (Local1 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (Local1 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (Local1 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (Local1 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (Local1 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (Local1 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (Local1 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (Local1 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (Local1 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (Local1 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || Local1) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || Local1) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || Local1) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || Local1) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || Local1) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || Local1) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || Local1) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || Local1) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (Local2 || Local1) M600 (Arg0, 0x18, Local0, Ones) Local0 = (Local1 || Local2) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { Local1 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* LEqual */ Local0 = (0xFE7CB391D650A284 == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == Local1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == Local1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == Local1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == Local1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == Local1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == Local1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == Local1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == Local1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == Local1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == Local1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == Local1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == Local1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > Local1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > Local1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > Local1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > Local1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > Local1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > Local1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > Local1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > Local1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > Local1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > Local1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > Local1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > Local1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > Local1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= Local1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= Local1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= Local1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= Local1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= Local1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= Local1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= Local1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= Local1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= Local1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= Local1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= Local1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= Local1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= Local1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= Local1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= Local1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < Local1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < Local1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < Local1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < Local1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < Local1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < Local1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < Local1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < Local1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < Local1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < Local1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < Local1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < Local1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < Local1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < Local1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < Local1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= Local1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= Local1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= Local1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= Local1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= Local1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= Local1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= Local1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= Local1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= Local1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= Local1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= Local1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= Local1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= Local1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= Local1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= Local1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= Local1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= Local1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != Local1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != Local1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != Local1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != Local1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != Local1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != Local1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != Local1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != Local1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != Local1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != Local1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != Local1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != Local1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != Local1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != Local1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != Local1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != Local1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != Local1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != Local1) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { Local1 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } /* LEqual */ Local0 = (0xD650A284 == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == Local1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == Local1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == Local1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == Local1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == Local1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == Local1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == Local1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == Local1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == Local1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == Local1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == Local1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == Local1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > Local1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > Local1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > Local1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > Local1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > Local1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > Local1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > Local1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > Local1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > Local1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > Local1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > Local1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > Local1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > Local1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= Local1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= Local1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= Local1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= Local1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= Local1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= Local1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= Local1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= Local1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= Local1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= Local1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= Local1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= Local1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= Local1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= Local1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= Local1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < Local1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < Local1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < Local1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < Local1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < Local1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < Local1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < Local1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < Local1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < Local1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < Local1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < Local1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < Local1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < Local1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < Local1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < Local1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= Local1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= Local1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= Local1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= Local1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= Local1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= Local1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= Local1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= Local1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= Local1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= Local1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= Local1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= Local1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= Local1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= Local1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= Local1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= Local1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= Local1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != Local1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != Local1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != Local1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != Local1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != Local1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != Local1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != Local1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != Local1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != Local1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != Local1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != Local1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != Local1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != Local1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != Local1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != Local1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != Local1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != Local1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != Local1) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } /* LEqual */ Local0 = (0x0321 == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == Local1) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == Local1) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == Local1) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == Local1) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == Local1) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == Local1) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == Local1) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == Local1) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == Local1) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == Local1) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == Local1) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == Local1) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == Local1) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > Local1) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > Local1) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > Local1) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > Local1) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > Local1) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > Local1) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > Local1) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > Local1) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > Local1) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > Local1) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > Local1) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > Local1) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > Local1) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > Local1) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= Local1) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= Local1) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= Local1) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= Local1) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= Local1) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= Local1) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= Local1) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= Local1) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= Local1) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= Local1) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= Local1) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= Local1) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= Local1) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= Local1) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= Local1) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < Local1) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < Local1) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < Local1) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < Local1) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < Local1) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < Local1) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < Local1) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < Local1) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < Local1) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < Local1) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < Local1) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < Local1) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < Local1) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < Local1) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < Local1) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= Local1) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= Local1) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= Local1) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= Local1) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= Local1) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= Local1) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= Local1) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= Local1) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= Local1) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= Local1) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= Local1) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= Local1) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= Local1) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= Local1) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= Local1) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= Local1) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= Local1) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != Local1) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != Local1) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != Local1) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != Local1) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != Local1) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != Local1) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != Local1) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != Local1) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != Local1) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != Local1) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != Local1) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != Local1) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != Local1) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != Local1) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != Local1) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != Local1) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != Local1) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != Local1) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local0 = Concatenate (0x0321, Local1) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, Local2) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, Local1) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, Local2) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Local1) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Local2) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Local1) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), Local2) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Local1) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), Local2) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local1) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local2) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, Local1, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, Local2, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, Local1, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, Local2, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), Local2, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), Local2, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), Local2, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local2, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local0 = Concatenate (0x0321, Local1) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, Local2) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, Local1) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, Local2) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), Local1) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), Local2) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), Local1) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), Local2) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), Local1) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), Local2) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local1) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local2) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, Local1, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, Local2, Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, Local1, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, Local2, Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), Local2, Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), Local2, Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), Local2, Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), Local2, Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x01) { 0x0B // . } Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local2) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, Local2) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, Local1) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Local2) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), Local1) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Local2) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), Local1) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Local2) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), Local1) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local2) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, Local2, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, Local1, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Local2, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), Local1, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Local2, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), Local1, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Local2, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), Local1, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { Local1 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Local1) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Local1) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Local1) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Local1) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Local1, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Local1, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Local1, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Local1, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { Local1 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, Local1) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), Local1) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), Local1) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), Local1) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, Local1, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), Local1, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), Local1, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), Local1, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Method (M067, 1, NotSerialized) { Local1 = Buffer (0x01) { 0x0B // . } Store (AUS6 [Local1], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [Local1], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [Local1], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [Local1], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [Local1], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [Local1], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [Local1], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [Local1], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [Local1], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [Local1], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [Local1], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [Local1], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [Local1], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [Local1], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [Local1], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [Local1] M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [Local1] M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [Local1] M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [Local1] M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [Local1] M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [Local1] M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [Local1] M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [Local1] M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [Local1] M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [Local1] M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [Local1] M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [Local1] M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [Local1] M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [Local1] M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [Local1] M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local2 = AUS6 [Local1] M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local2 = AUB6 [Local1] M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local2 = AUP0 [Local1] M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local2 = DerefOf (RefOf (AUS6)) [Local1] M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (RefOf (AUB6)) [Local1] M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (RefOf (AUP0)) [Local1] M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local2 = DerefOf (PAUS [0x06]) [Local1] M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (PAUB [0x06]) [Local1] M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (PAUP [0x00]) [Local1] M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local2 = M601 (0x02, 0x06) [Local1] M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local2 = M601 (0x03, 0x06) [Local1] M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local2 = M601 (0x04, 0x00) [Local1] M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local2 = DerefOf (M602 (0x02, 0x06, 0x01)) [Local1] M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (M602 (0x03, 0x06, 0x01)) [Local1] M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local2 = DerefOf (M602 (0x04, 0x00, 0x01)) [Local1] M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, Local1) If (F64) { Fatal (0xFF, 0xFFFFFFFF, Local2) } Else { Fatal (0xFF, 0xFFFFFFFF, Local2) } CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) } /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { Local1 = Buffer (0x01) { 0x0B // . } /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", Local1, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, Local1, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, Local1, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Local1, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), Local1, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), Local1, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), Local1, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Local1, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), Local1, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local1, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", Local1, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local1, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, Local1, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, Local1, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Local1, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), Local1, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), Local1, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), Local1, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), Local1, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), Local1, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local1, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local1, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Local1) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, Local1) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, Local1) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Local1) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Local1) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Local1) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Local1) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Local1) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, Local1) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, Local1, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, Local1, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, Local1, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Local1, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, Local1, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { Local1 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local2 = Buffer (0x01) { 0x0B // . } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Local1) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Local1) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Local1) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Local1) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Local1) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Local1) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Local1) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Local1) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Local1) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Local1, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Local1, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Local1, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Local1, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Local1, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Local2, Local1) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local1) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Local2, Local1) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Local2, Local1) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Local2, Local1) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Local2, Local1) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Local2, Local1) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Local2, Local1) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Local2, Local1) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Local2, Local1) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local2, Local1) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local1) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Local2, Local1, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local1, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Local2, Local1, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Local2, Local1, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Local2, Local1, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Local2, Local1, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Local2, Local1, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Local2, Local1, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Local2, Local1, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Local2, Local1, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local2, Local1, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local1, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { Local1 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } Local2 = Buffer (0x01) { 0x0B // . } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, Local1) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, Local1) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, Local1) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, Local1) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, Local1) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, Local1) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, Local1) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, Local1) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, Local1) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, Local1, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, Local1, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, Local1, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, Local1, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, Local1, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, Local1, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, Local1, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, Local1, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, Local1, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", Local2, Local1) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local1) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, Local2, Local1) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, Local2, Local1) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), Local2, Local1) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), Local2, Local1) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), Local2, Local1) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), Local2, Local1) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), Local2, Local1) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), Local2, Local1) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local2, Local1) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local1) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", Local2, Local1, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, Local2, Local1, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, Local2, Local1, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, Local2, Local1, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), Local2, Local1, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), Local2, Local1, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), Local2, Local1, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), Local2, Local1, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), Local2, Local1, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), Local2, Local1, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), Local2, Local1, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), Local2, Local1, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { Local1 = Buffer (0x01) { 0x0B // . } Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, Local1) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, Local1) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64t, 1) */ /* Method(m32t, 1) */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { Local3 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local4 = Buffer (0x01) { 0x3F // ? } CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (Local3) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z117, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (Local4) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z117, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Local3 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, Local3) */ CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z117, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Event (EVT0) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, Local1) CH03 (Arg0, Z117, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z117, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { Local0 = Buffer (0x01) { 0x00 // . } If (Local0) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } If (Local1) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } If (Local2) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } If (Local2) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { Local0 = Buffer (0x01) { 0x00 // . } If (Arg0) { IST0 = 0xFF } ElseIf (Local0) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } If (Arg0) { IST0 = 0xFF } ElseIf (Local1) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } If (Arg0) { IST0 = 0xFF } ElseIf (Local2) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { Local2 = Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . } If (Arg0) { IST0 = 0xFF } ElseIf (Local2) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { Local0 = Buffer (0x01) { 0x00 // . } While (Local0) { IST0 = 0x00 Break } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64u, 1) */ /* Method(m32u, 1) */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M06F, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc } /* LEqual */ Local0 = ("21 03 00" == Local1) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("21 03 01" == Local1) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS9 == Local1) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUSA == Local1) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) == Local1) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) == Local1) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) == Local1) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) == Local1) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) == Local1) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x0A) == Local1) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) == Local1) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) == Local1) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("21 03 00" > Local1) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("21 03 01" > Local1) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("21 03 0 " > Local1) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("21 03 00q" > Local1) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS9 > Local1) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUSA > Local1) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) > Local1) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) > Local1) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) > Local1) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) > Local1) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) > Local1) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x0A) > Local1) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) > Local1) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) > Local1) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("21 03 00" >= Local1) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("21 03 01" >= Local1) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("21 03 0 " >= Local1) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("21 03 00q" >= Local1) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS9 >= Local1) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUSA >= Local1) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) >= Local1) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) >= Local1) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) >= Local1) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) >= Local1) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) >= Local1) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x0A) >= Local1) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) >= Local1) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) >= Local1) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("21 03 00" < Local1) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("21 03 01" < Local1) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("21 03 0 " < Local1) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("21 03 00q" < Local1) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS9 < Local1) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUSA < Local1) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) < Local1) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) < Local1) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) < Local1) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) < Local1) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) < Local1) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x0A) < Local1) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) < Local1) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) < Local1) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("21 03 00" <= Local1) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("21 03 01" <= Local1) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("21 03 0 " <= Local1) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("21 03 00q" <= Local1) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS9 <= Local1) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUSA <= Local1) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) <= Local1) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) <= Local1) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) <= Local1) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) <= Local1) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) <= Local1) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x0A) <= Local1) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) <= Local1) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) <= Local1) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("21 03 00" != Local1) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("21 03 01" != Local1) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("21 03 0 " != Local1) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("21 03 00q" != Local1) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS9 != Local1) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUSA != Local1) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) != Local1) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) != Local1) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) != Local1) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) != Local1) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) != Local1) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x0A) != Local1) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) != Local1) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) != Local1) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" == Local2) M600 (Arg0, 0x52, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" == Local2) M600 (Arg0, 0x53, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" > Local2) M600 (Arg0, 0x54, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" > Local2) M600 (Arg0, 0x55, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" >= Local2) M600 (Arg0, 0x56, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" >= Local2) M600 (Arg0, 0x57, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" < Local2) M600 (Arg0, 0x58, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" < Local2) M600 (Arg0, 0x59, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" <= Local2) M600 (Arg0, 0x5A, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" <= Local2) M600 (Arg0, 0x5B, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" != Local2) M600 (Arg0, 0x5C, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" != Local2) M600 (Arg0, 0x5D, Local0, Ones) } /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M070, 1, NotSerialized) { Local1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } Local2 = Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc } Local0 = Concatenate ("", Local1) M600 (Arg0, 0x00, Local0, BS25) Local0 = Concatenate ("1234q", Local1) M600 (Arg0, 0x01, Local0, BS26) Local0 = Concatenate (AUS0, Local1) M600 (Arg0, 0x02, Local0, BS25) Local0 = Concatenate (AUS1, Local1) M600 (Arg0, 0x03, Local0, BS26) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), Local1) M600 (Arg0, 0x04, Local0, BS25) Local0 = Concatenate (DerefOf (RefOf (AUS1)), Local1) M600 (Arg0, 0x05, Local0, BS26) } Local0 = Concatenate (DerefOf (PAUS [0x00]), Local1) M600 (Arg0, 0x06, Local0, BS25) Local0 = Concatenate (DerefOf (PAUS [0x01]), Local1) M600 (Arg0, 0x07, Local0, BS26) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), Local1) M600 (Arg0, 0x08, Local0, BS25) Local0 = Concatenate (M601 (0x02, 0x01), Local1) M600 (Arg0, 0x09, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Local1) M600 (Arg0, 0x0A, Local0, BS25) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Local1) M600 (Arg0, 0x0B, Local0, BS26) } Concatenate ("", Local1, Local0) M600 (Arg0, 0x0C, Local0, BS25) Concatenate ("1234q", Local1, Local0) M600 (Arg0, 0x0D, Local0, BS26) Concatenate (AUS0, Local1, Local0) M600 (Arg0, 0x0E, Local0, BS25) Concatenate (AUS1, Local1, Local0) M600 (Arg0, 0x0F, Local0, BS26) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), Local1, Local0) M600 (Arg0, 0x10, Local0, BS25) Concatenate (DerefOf (RefOf (AUS1)), Local1, Local0) M600 (Arg0, 0x11, Local0, BS26) } Concatenate (DerefOf (PAUS [0x00]), Local1, Local0) M600 (Arg0, 0x12, Local0, BS25) Concatenate (DerefOf (PAUS [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, BS26) /* Method returns String */ Concatenate (M601 (0x02, 0x00), Local1, Local0) M600 (Arg0, 0x14, Local0, BS25) Concatenate (M601 (0x02, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, BS25) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, BS26) } /* Boundary Cases */ Local0 = Concatenate ("", Local2) M600 (Arg0, 0x18, Local0, BS27) } /* Method(m071, 1) */ /* Method(m072, 1) */ /* * Begin of the test body */ /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ If (F64) { Concatenate (__METHOD__, "-m640", Local0) SRMT (Local0) M640 (Local0) } Else { Concatenate (__METHOD__, "-m320", Local0) SRMT (Local0) M320 (Local0) } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m641", Local0) SRMT (Local0) M641 (Local0) } Else { Concatenate (__METHOD__, "-m321", Local0) SRMT (Local0) M321 (Local0) } /* Integer to String conversion of the Integer value */ /* of Expression of Case statement when Expression in */ /* Switch is either static String data or explicitly */ /* converted to String by ToDecimalString, ToHexString */ /* or ToString */ /* */ /* Note: Expression of Case can be only static data */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* Integer to Buffer conversion of the Integer value of */ /* Expression of Case statement when Expression in Switch */ /* is either static Buffer data or explicitly converted to */ /* Buffer by ToBuffer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64b", Local0) SRMT (Local0) M64B (Local0) } Else { Concatenate (__METHOD__, "-m32b", Local0) SRMT (Local0) M32B (Local0) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m000", Local0) SRMT (Local0) M000 (Local0) /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64c", Local0) SRMT (Local0) M64C (Local0) } Else { Concatenate (__METHOD__, "-m32c", Local0) SRMT (Local0) M32C (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64D (Concatenate (__METHOD__, "-m64d")) } Else { M32D (Concatenate (__METHOD__, "-m32d")) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64E (Concatenate (__METHOD__, "-m64e")) } Else { M32E (Concatenate (__METHOD__, "-m32e")) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m02b", Local0) SRMT (Local0) M02B (Local0) If (F64) { Concatenate (__METHOD__, "-m64f", Local0) SRMT (Local0) M64F (Local0) } Else { Concatenate (__METHOD__, "-m32f", Local0) SRMT (Local0) M32F (Local0) } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64g", Local0) SRMT (Local0) M64G (Local0) } Else { Concatenate (__METHOD__, "-m32g", Local0) SRMT (Local0) M32G (Local0) } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m02c", Local0) SRMT (Local0) M02C (Local0) If (F64) { Concatenate (__METHOD__, "-m64h", Local0) SRMT (Local0) M64H (Local0) } Else { Concatenate (__METHOD__, "-m32h", Local0) SRMT (Local0) M32H (Local0) } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m02d", Local0) SRMT (Local0) M02D (Local0) /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m02e", Local0) SRMT (Local0) M02E (Local0) /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m02f", Local0) SRMT (Local0) M02F (Local0) If (F64) { Concatenate (__METHOD__, "-m64i", Local0) SRMT (Local0) M64I (Local0) } Else { Concatenate (__METHOD__, "-m32i", Local0) SRMT (Local0) M32I (Local0) } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m030", Local0) SRMT (Local0) M030 (Local0) /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m031", Local0) SRMT (Local0) M031 (Local0) /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m032", Local0) SRMT(Local0) m032(Local0) */ /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m033", Local0) SRMT (Local0) M033 (Local0) /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m034", Local0) SRMT (Local0) If (Y111) { M034 (Local0) } Else { BLCK () } /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m035", Local0) SRMT (Local0) M035 (Local0) /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Concatenate (__METHOD__, "-m036", Local0) SRMT (Local0) M036 (Local0) /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character) */ Concatenate (__METHOD__, "-m037", Local0) SRMT (Local0) M037 (Local0) /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m06c", Local0) SRMT(Local0) m06c(Local0) */ /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) If (Y111) { M06E (Local0) } Else { BLCK () } /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Concatenate (__METHOD__, "-m06f", Local0) SRMT (Local0) M06F (Local0) /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Concatenate (__METHOD__, "-m070", Local0) SRMT (Local0) M070 (Local0) } /* Run-method */ Method (OPR6, 0, NotSerialized) { Debug = "TEST: OPR6, Source Operand" M618 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedglob/0000700000175000017500000000000014773714154031156 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedglob/RUN.asl0000700000175000017500000000361614773714154032334 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ If (STTT ("Source Operand, global named object data", TCLC, 0x07, W010)) { OPR1 () } FTTT () ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedglob/onamedglob2.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedglob/onamedglob0000700000175000017500000146544614773714154033237 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to Buffer Field Objects * in the root Scope of the Global ACPI namespace. * * Buffer field to Buffer implicit conversion Cases. * First, Buffer field is evaluated either as Integer or as Buffer. * Conversion only takes place for Integer in which case * Integer to Buffer test constructions should be used. * * Buffer field to Integer implicit conversion Cases. * First, Buffer field is evaluated either as Integer or as Buffer. * Conversion only takes place for Buffer in which case * Buffer to Integer test constructions should be used. * * Buffer field to String implicit conversion Cases. * First, Buffer field is evaluated either as Integer or as Buffer * For Integer case Integer to String test constructions should be used. * For Buffer case Buffer to String test constructions should be used. * * Field unit implicit conversion is considered similar to * Buffer field one. */ Name (Z087, 0x57) Method (M612, 0, Serialized) { /* Buffer Field to Buffer implicit conversion Cases. */ /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == BF65) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == BF65) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == BF65) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == BF65) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == BF65) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == BF65) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == BF65) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == BF65) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == BF65) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == BF65) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == BF65) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == BF65) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > BF65) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > BF65) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > BF65) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > BF65) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > BF65) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > BF65) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > BF65) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > BF65) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > BF65) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= BF65) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= BF65) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= BF65) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= BF65) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= BF65) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= BF65) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= BF65) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= BF65) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= BF65) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= BF65) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= BF65) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= BF65) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= BF65) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= BF65) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < BF65) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < BF65) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < BF65) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < BF65) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < BF65) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < BF65) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < BF65) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < BF65) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < BF65) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < BF65) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < BF65) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < BF65) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < BF65) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < BF65) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= BF65) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= BF65) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= BF65) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= BF65) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= BF65) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= BF65) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= BF65) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= BF65) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= BF65) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= BF65) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= BF65) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= BF65) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= BF65) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= BF65) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != BF65) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != BF65) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != BF65) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != BF65) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != BF65) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != BF65) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != BF65) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != BF65) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != BF65) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != BF65) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != BF65) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != BF65) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != BF65) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != BF65) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == BF62) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == BF62) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == BF62) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == BF62) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == BF62) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == BF62) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == BF62) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == BF62) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == BF62) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == BF62) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == BF62) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == BF62) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > BF62) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > BF62) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > BF62) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > BF62) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > BF62) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > BF62) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > BF62) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > BF62) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > BF62) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > BF62) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > BF62) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > BF62) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > BF62) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > BF62) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= BF62) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= BF62) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= BF62) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= BF62) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= BF62) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= BF62) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= BF62) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= BF62) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= BF62) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= BF62) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= BF62) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= BF62) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= BF62) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= BF62) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < BF62) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < BF62) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < BF62) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < BF62) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < BF62) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < BF62) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < BF62) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < BF62) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < BF62) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < BF62) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < BF62) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < BF62) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < BF62) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < BF62) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= BF62) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= BF62) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= BF62) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= BF62) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= BF62) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= BF62) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= BF62) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= BF62) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= BF62) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= BF62) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= BF62) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= BF62) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= BF62) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= BF62) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != BF62) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != BF62) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != BF62) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != BF62) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != BF62) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != BF62) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != BF62) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != BF62) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != BF62) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != BF62) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != BF62) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != BF62) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != BF62) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != BF62) M600 (Arg0, 0x51, Local0, Ones) } } /* Buffer Field to Buffer conversion of the both Integer operands */ /* of Concatenate operator */ Method (M645, 1, NotSerialized) { Local0 = Concatenate (BF65, BF65) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, BF65) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (BF65, 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (BF65, BF65, Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, BF65, Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (BF65, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { Local0 = Concatenate (BF62, BF62) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, BF62) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (BF62, 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (BF62, BF62, Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, BF62, Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (BF62, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, BF65) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, BF65) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, BF65) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, BF65) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), BF65) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), BF65) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), BF65) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), BF65) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), BF65) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), BF65) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), BF65) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), BF65) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, BF65, Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, BF65, Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), BF65, Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), BF65, Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), BF65, Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), BF65, Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), BF65, Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), BF65, Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), BF65, Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), BF65, Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, BF62) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, BF62) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, BF62) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, BF62) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), BF62) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), BF62) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), BF62) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), BF62) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), BF62) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), BF62) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), BF62) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), BF62) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, BF65) M600 (Arg0, 0x0C, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, BF65) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (Buffer (0x01) { 0x5A // Z }, BF62, Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, BF62, Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, BF62, Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, BF62, Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), BF62, Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), BF62, Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), BF62, Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), BF62, Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), BF62, Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), BF62, Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), BF62, Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), BF62, Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, BF65, Local0) M600 (Arg0, 0x1A, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, BF65, Local0) M600 (Arg0, 0x1B, Local0, BB11) } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of ToString operator */ Method (M647, 1, NotSerialized) { Local0 = ToString (BF71, Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (BF71, 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (BF72, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (BF71, AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (BF71, AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (BF72, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (BF71, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (BF71, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (BF72, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (BF71, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (BF71, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (BF72, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (BF71, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (BF71, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (BF72, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (BF71, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (BF71, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (BF72, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (BF71, Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (BF71, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (BF72, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (BF71, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (BF71, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (BF72, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (BF71, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (BF71, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (BF72, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (BF71, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (BF71, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (BF72, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (BF71, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (BF71, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (BF72, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (BF71, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (BF71, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (BF72, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { Local0 = ToString (BF70, Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (BF70, 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (BF73, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (BF70, AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (BF70, AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (BF73, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (BF70, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (BF70, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (BF73, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (BF70, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (BF70, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (BF73, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (BF70, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (BF70, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (BF73, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (BF70, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (BF70, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (BF73, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (BF70, Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (BF70, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (BF73, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (BF70, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (BF70, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (BF73, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (BF70, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (BF70, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (BF73, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (BF70, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (BF70, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (BF73, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (BF70, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (BF70, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (BF73, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (BF70, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (BF70, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (BF73, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of Mid operator */ Method (M648, 1, NotSerialized) { Local0 = Mid (BF65, 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (BF66, 0x00, 0x09) M600 (Arg0, 0x01, Local0, BB1F) Local0 = Mid (BF73, 0x01, 0x08) M600 (Arg0, 0x02, Local0, BB30) Local0 = Mid (BF65, AUI5, AUIB) M600 (Arg0, 0x03, Local0, BB1D) Local0 = Mid (BF66, AUI5, AUIB) M600 (Arg0, 0x04, Local0, BB1F) Local0 = Mid (BF73, AUI6, AUIA) M600 (Arg0, 0x05, Local0, BB30) If (Y078) { Local0 = Mid (BF65, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (BF66, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x07, Local0, BB1F) Local0 = Mid (BF73, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA))) M600 (Arg0, 0x08, Local0, BB30) } Local0 = Mid (BF65, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B])) M600 (Arg0, 0x09, Local0, BB1D) Local0 = Mid (BF66, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B])) M600 (Arg0, 0x0A, Local0, BB1F) Local0 = Mid (BF73, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x0A])) M600 (Arg0, 0x0B, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (BF65, M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x0C, Local0, BB1D) Local0 = Mid (BF66, M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x0D, Local0, BB1F) Local0 = Mid (BF73, M601 (0x01, 0x06), M601 (0x01, 0x0A)) M600 (Arg0, 0x0E, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (BF65, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)) ) M600 (Arg0, 0x0F, Local0, BB1D) Local0 = Mid (BF66, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)) ) M600 (Arg0, 0x10, Local0, BB1F) Local0 = Mid (BF73, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)) ) M600 (Arg0, 0x11, Local0, BB30) } Mid (BF65, 0x00, 0x09, Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (BF66, 0x00, 0x09, Local0) M600 (Arg0, 0x13, Local0, BB1F) Mid (BF73, 0x01, 0x08, Local0) M600 (Arg0, 0x14, Local0, BB30) Mid (BF65, AUI5, AUIB, Local0) M600 (Arg0, 0x15, Local0, BB1D) Mid (BF66, AUI5, AUIB, Local0) M600 (Arg0, 0x16, Local0, BB1F) Mid (BF73, AUI6, AUIA, Local0) M600 (Arg0, 0x17, Local0, BB30) If (Y078) { Mid (BF65, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x18, Local0, BB1D) Mid (BF66, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x19, Local0, BB1F) Mid (BF73, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x1A, Local0, BB30) } Mid (BF65, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x1B, Local0, BB1D) Mid (BF66, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x1C, Local0, BB1F) Mid (BF73, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x0A]), Local0) M600 (Arg0, 0x1D, Local0, BB30) /* Method returns Index and Length parameters */ Mid (BF65, M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x1E, Local0, BB1D) Mid (BF66, M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x1F, Local0, BB1F) Mid (BF73, M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x20, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (BF65, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x21, Local0, BB1D) Mid (BF66, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x22, Local0, BB1F) Mid (BF73, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x23, Local0, BB30) } } Method (M328, 1, NotSerialized) { Local0 = Mid (BF62, 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (BF63, 0x00, 0x05) M600 (Arg0, 0x01, Local0, BB1E) Local0 = Mid (BF77, 0x01, 0x04) M600 (Arg0, 0x02, Local0, BB31) Local0 = Mid (BF62, AUI5, AUI9) M600 (Arg0, 0x03, Local0, BB1C) Local0 = Mid (BF63, AUI5, AUI9) M600 (Arg0, 0x04, Local0, BB1E) Local0 = Mid (BF77, AUI6, AUI8) M600 (Arg0, 0x05, Local0, BB31) If (Y078) { Local0 = Mid (BF62, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (BF63, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x07, Local0, BB1E) Local0 = Mid (BF77, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8))) M600 (Arg0, 0x08, Local0, BB31) } Local0 = Mid (BF62, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09])) M600 (Arg0, 0x09, Local0, BB1C) Local0 = Mid (BF63, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09])) M600 (Arg0, 0x0A, Local0, BB1E) Local0 = Mid (BF77, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x08])) M600 (Arg0, 0x0B, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (BF62, M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x0C, Local0, BB1C) Local0 = Mid (BF63, M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x0D, Local0, BB1E) Local0 = Mid (BF77, M601 (0x01, 0x06), M601 (0x01, 0x08)) M600 (Arg0, 0x0E, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (BF62, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)) ) M600 (Arg0, 0x0F, Local0, BB1C) Local0 = Mid (BF63, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)) ) M600 (Arg0, 0x10, Local0, BB1E) Local0 = Mid (BF77, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)) ) M600 (Arg0, 0x11, Local0, BB31) } Mid (BF62, 0x00, 0x05, Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (BF63, 0x00, 0x05, Local0) M600 (Arg0, 0x13, Local0, BB1E) Mid (BF77, 0x01, 0x04, Local0) M600 (Arg0, 0x14, Local0, BB31) Mid (BF62, AUI5, AUI9, Local0) M600 (Arg0, 0x15, Local0, BB1C) Mid (BF63, AUI5, AUI9, Local0) M600 (Arg0, 0x16, Local0, BB1E) Mid (BF77, AUI6, AUI8, Local0) M600 (Arg0, 0x17, Local0, BB31) If (Y078) { Mid (BF62, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x18, Local0, BB1C) Mid (BF63, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x19, Local0, BB1E) Mid (BF77, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x1A, Local0, BB31) } Mid (BF62, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x1B, Local0, BB1C) Mid (BF63, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x1C, Local0, BB1E) Mid (BF77, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x08]), Local0) M600 (Arg0, 0x1D, Local0, BB31) /* Method returns Index and Length parameters */ Mid (BF62, M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x1E, Local0, BB1C) Mid (BF63, M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x1F, Local0, BB1E) Mid (BF77, M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x20, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (BF62, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x21, Local0, BB1C) Mid (BF63, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x22, Local0, BB1E) Mid (BF77, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x23, Local0, BB31) } } /* Buffer Field to Integer implicit conversion Cases. */ /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { /* Decrement */ Local0 = BF91-- M600 (Arg0, 0x00, Local0, BI12) Local0 = BF95-- M600 (Arg0, 0x01, Local0, BI16) /* Increment */ Local0 = BFA1++ M600 (Arg0, 0x02, Local0, BI23) Local0 = BFA5++ M600 (Arg0, 0x03, Local0, BI27) /* FindSetLeftBit */ Local0 = FindSetLeftBit (BF61) M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit (BF65) M600 (Arg0, 0x01, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (BF61) M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit (BF65) M600 (Arg0, 0x03, Local0, 0x03) /* Not */ Store (~BF61, Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Store (~BF65, Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, NotSerialized) { /* Decrement */ Local0 = BF91-- M600 (Arg0, 0x00, Local0, BI12) Local0 = BF95-- M600 (Arg0, 0x01, Local0, BI18) /* Increment */ Local0 = BFA1++ M600 (Arg0, 0x02, Local0, BI23) Local0 = BFA5++ M600 (Arg0, 0x03, Local0, BI29) /* FindSetLeftBit */ Local0 = FindSetLeftBit (BF61) M600 (Arg0, 0x00, Local0, 0x0A) Local0 = FindSetLeftBit (BF65) M600 (Arg0, 0x01, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (BF61) M600 (Arg0, 0x02, Local0, 0x01) Local0 = FindSetRightBit (BF65) M600 (Arg0, 0x03, Local0, 0x03) /* Not */ Store (~BF61, Local0) M600 (Arg0, 0x04, Local0, 0xFFFFFCDE) Store (~BF65, Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { Local0 = !BF76 M600 (Arg0, 0x00, Local0, Ones) Local0 = !BF61 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !BF65 M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !BF65 M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (BF61) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (BF6C) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (BF61, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (BF6C, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (BF61) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (BF6D) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (BF61, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (BF6D, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (BF61) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (BF6E) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (BF61, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (BF6E, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (BF61) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (BF6F) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (BF61, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (BF6F, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((BF61 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((BF61 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((BF61 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((BF61 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (BF61 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (BF61 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (BF61 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (BF61 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (BF61 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + BF61), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + BF61), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + BF61), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + BF61), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + BF61), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + BF61), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + BF61) /* \BF61 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + BF61) /* \BF61 */ M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + BF61) /* \BF61 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + BF61) /* \BF61 */ M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + BF61) /* \BF61 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + BF61) /* \BF61 */ M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + BF61) /* \BF61 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + BF61) /* \BF61 */ M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + BF61) /* \BF61 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + BF61) /* \BF61 */ M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + BF61) /* \BF61 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + BF61) /* \BF61 */ M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((BF65 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((BF65 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((BF65 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((BF65 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (BF65 + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (BF65 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (BF65 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (BF65 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (BF65 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + BF65), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + BF65), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + BF65), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((BF61 + BF65), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((BF65 + BF61), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (BF61 + BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (BF65 + BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((BF65 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((BF65 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((BF65 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((BF65 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (BF65 + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (BF65 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (BF65 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (BF65 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (BF65 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + BF65), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + BF65), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + BF65), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + BF65), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + BF65), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + BF65), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((BF61 + BF65), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((BF65 + BF61), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (BF61 + BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (BF65 + BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF61 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((BF61 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF61 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((BF61 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF61 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((BF61 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF61 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((BF61 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF61 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF61 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (BF61 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF61 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (BF61 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF61 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (BF61 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF61 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (BF61 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF61 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (BF61 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF61 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF61 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & BF61), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & BF61), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & BF61), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & BF61), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & BF61), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & BF61), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & BF61) /* \BF61 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & BF61) /* \BF61 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & BF61) /* \BF61 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & BF61) /* \BF61 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & BF61) /* \BF61 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & BF61) /* \BF61 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & BF61) /* \BF61 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & BF61) /* \BF61 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & BF61) /* \BF61 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & BF61) /* \BF61 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & BF61) /* \BF61 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & BF61) /* \BF61 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF65 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((BF65 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF65 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((BF65 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF65 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((BF65 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF65 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((BF65 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF65 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF65 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (BF65 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF65 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (BF65 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF65 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (BF65 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF65 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (BF65 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF65 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (BF65 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF65 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF65 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((BF61 & BF65), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((BF65 & BF61), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (BF61 & BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (BF65 & BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF65 & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((BF65 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF65 & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((BF65 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF65 & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((BF65 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF65 & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((BF65 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF65 & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF65 & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (BF65 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF65 & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (BF65 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF65 & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (BF65 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF65 & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (BF65 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF65 & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (BF65 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF65 & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF65 & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & BF65), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & BF65), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & BF65), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((BF61 & BF65), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((BF65 & BF61), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (BF61 & BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (BF65 & BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF61 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF61 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF61 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF61 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (BF61, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (BF61, 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (BF61, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (BF61, AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (BF61, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (BF61, DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (BF61, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (BF61, DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (BF61, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (BF61, M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (BF61, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (BF61, DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / BF61), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / BF61), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / BF61), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / BF61), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / BF61), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / BF61), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, BF61, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, BF61, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, BF61, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, BF61, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), BF61, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), BF61, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), BF61, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), BF61, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), BF61, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), BF61, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), BF61, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), BF61, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF65 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF65 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF65 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF65 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (BF65, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (BF65, 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (BF65, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (BF65, AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (BF65, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (BF65, DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (BF65, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (BF65, DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (BF65, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (BF65, M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (BF65, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (BF65, DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / BF65), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / BF65), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / BF65), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, BF65, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, BF65, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, BF65, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, BF65, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), BF65, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), BF65, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), BF65, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), BF65, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), BF65, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), BF65, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), BF65, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), BF65, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((BF61 / BF65), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((BF65 / BF61), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (BF61, BF65, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (BF65, BF61, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF65 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF65 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF65 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 / DerefOf (PAUI [0x14])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF65 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (BF65, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (BF65, 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (BF65, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (BF65, AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (BF65, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (BF65, DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (BF65, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (BF65, DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (BF65, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (BF65, M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (BF65, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (BF65, DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / BF65), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / BF65), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / BF65), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, BF65, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, BF65, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, BF65, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, BF65, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), BF65, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), BF65, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), BF65, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), BF65, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), BF65, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), BF65, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), BF65, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), BF65, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((BF61 / BF65), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((BF65 / BF61), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (BF61, BF65, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (BF65, BF61, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF61 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF61 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF61 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF61 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (BF61 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (BF61 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (BF61 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (BF61 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (BF61 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % BF61), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % BF61), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % BF61), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % BF61), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % BF61), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % BF61), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % BF61) /* \BF61 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % BF61) /* \BF61 */ M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % BF61) /* \BF61 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % BF61) /* \BF61 */ M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % BF61) /* \BF61 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % BF61) /* \BF61 */ M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % BF61) /* \BF61 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % BF61) /* \BF61 */ M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % BF61) /* \BF61 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % BF61) /* \BF61 */ M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % BF61) /* \BF61 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % BF61) /* \BF61 */ M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF65 % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((BF65 % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF65 % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((BF65 % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF65 % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (BF65 % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (BF65 % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (BF65 % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (BF65 % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (BF65 % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % BF65), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % BF65), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % BF65), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((BF61 % BF65), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((BF65 % BF61), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (BF61 % BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (BF65 % BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((BF65 % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((BF65 % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((BF65 % DerefOf (PAUI [0x15])), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((BF65 % DerefOf (PAUI [0x16])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((BF65 % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (BF65 % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (BF65 % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (BF65 % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (BF65 % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (BF65 % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % BF65), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % BF65), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % BF65), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % BF65), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % BF65), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % BF65), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((BF61 % BF65), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((BF65 % BF61), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (BF61 % BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (BF65 % BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF61 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((BF61 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF61 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((BF61 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF61 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((BF61 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF61 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((BF61 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF61 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF61 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (BF61 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF61 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (BF61 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF61 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (BF61 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF61 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (BF61 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF61 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (BF61 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF61 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF61 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * BF61), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * BF61), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * BF61), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * BF61), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * BF61), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * BF61), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * BF61), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * BF61), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * BF61), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * BF61) /* \BF61 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * BF61) /* \BF61 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * BF61) /* \BF61 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * BF61) /* \BF61 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * BF61) /* \BF61 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * BF61) /* \BF61 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * BF61) /* \BF61 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * BF61) /* \BF61 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * BF61) /* \BF61 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * BF61) /* \BF61 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * BF61) /* \BF61 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * BF61) /* \BF61 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF65 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((BF65 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF65 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((BF65 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF65 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((BF65 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF65 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((BF65 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF65 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF65 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (BF65 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF65 * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (BF65 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF65 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (BF65 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF65 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (BF65 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF65 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (BF65 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF65 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF65 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((BF61 * BF65), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((BF65 * BF61), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (BF61 * BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (BF65 * BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((BF65 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((BF65 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((BF65 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((BF65 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((BF65 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((BF65 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((BF65 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((BF65 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((BF65 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((BF65 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (BF65 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (BF65 * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (BF65 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (BF65 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (BF65 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (BF65 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (BF65 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (BF65 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (BF65 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (BF65 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (BF65 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * BF65), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * BF65), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * BF65), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * BF65), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * BF65), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * BF65), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((BF61 * BF65), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((BF65 * BF61), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (BF61 * BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (BF65 * BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (BF61, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (BF61, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (BF61, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (BF61, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (BF61, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (BF61, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF61, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (BF61, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (BF61, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (BF61, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (BF61, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (BF61, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (BF61, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF61, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, BF61) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, BF61) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, BF61) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, BF61) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), BF61) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), BF61) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), BF61) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), BF61) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), BF61) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), BF61) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF61) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), BF61) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, BF61, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, BF61, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, BF61, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, BF61, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), BF61, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), BF61, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), BF61, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), BF61, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), BF61, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), BF61, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF61, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), BF61, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (BF65, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (BF65, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (BF65, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (BF65, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (BF65, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (BF65, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (BF65, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (BF65, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (BF65, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (BF65, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (BF65, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (BF65, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (BF65, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (BF65, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, BF65) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, BF65) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, BF65) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, BF65) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), BF65) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), BF65) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), BF65) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), BF65) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), BF65) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), BF65) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF65) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), BF65) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, BF65, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, BF65, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, BF65, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, BF65, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), BF65, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), BF65, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), BF65, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), BF65, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), BF65, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), BF65, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF65, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), BF65, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (BF61, BF65) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (BF65, BF61) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (BF61, BF65, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (BF65, BF61, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (BF65, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (BF65, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (BF65, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (BF65, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (BF65, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (BF65, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (BF65, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (BF65, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (BF65, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (BF65, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (BF65, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (BF65, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (BF65, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (BF65, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (BF65, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (BF65, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (BF65, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (BF65, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (BF65, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, BF65) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, BF65) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, BF65) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, BF65) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), BF65) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), BF65) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), BF65) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), BF65) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), BF65) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), BF65) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF65) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), BF65) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, BF65, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, BF65, Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, BF65, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, BF65, Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), BF65, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), BF65, Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), BF65, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), BF65, Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), BF65, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), BF65, Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), BF65, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), BF65, Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (BF61, BF65) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (BF65, BF61) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (BF61, BF65, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (BF65, BF61, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (BF61, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (BF61, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (BF61, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (BF61, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (BF61, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (BF61, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (BF61, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (BF61, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (BF61, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (BF61, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (BF61, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (BF61, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (BF61, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (BF61, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, BF61) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, BF61) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, BF61) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, BF61) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), BF61) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), BF61) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), BF61) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), BF61) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), BF61) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), BF61) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF61) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), BF61) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, BF61, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, BF61, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, BF61, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, BF61, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), BF61, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), BF61, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), BF61, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), BF61, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), BF61, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), BF61, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF61, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), BF61, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (BF65, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (BF65, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (BF65, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (BF65, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (BF65, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (BF65, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (BF65, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (BF65, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (BF65, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (BF65, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (BF65, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (BF65, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (BF65, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (BF65, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (BF65, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (BF65, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (BF65, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (BF65, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (BF65, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, BF65) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, BF65) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, BF65) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, BF65) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), BF65) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), BF65) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), BF65) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), BF65) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), BF65) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), BF65) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF65) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), BF65) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, BF65, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, BF65, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, BF65, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, BF65, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), BF65, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), BF65, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), BF65, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), BF65, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), BF65, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), BF65, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF65, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), BF65, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (BF61, BF65) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (BF65, BF61) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (BF61, BF65, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (BF65, BF61, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (BF65, 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (BF65, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (BF65, AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (BF65, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (BF65, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (BF65, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (BF65, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (BF65, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (BF65, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (BF65, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (BF65, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (BF65, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (BF65, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (BF65, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (BF65, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (BF65, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (BF65, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (BF65, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (BF65, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (BF65, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (BF65, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (BF65, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (BF65, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (BF65, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, BF65) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, BF65) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, BF65) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, BF65) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), BF65) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), BF65) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), BF65) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), BF65) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), BF65) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), BF65) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF65) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), BF65) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, BF65, Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, BF65, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, BF65, Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, BF65, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), BF65, Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), BF65, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), BF65, Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), BF65, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), BF65, Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), BF65, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), BF65, Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), BF65, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (BF61, BF65) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (BF65, BF61) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (BF61, BF65, Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (BF65, BF61, Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((BF61 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((BF61 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((BF61 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((BF61 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (BF61 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (BF61 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (BF61 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (BF61 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (BF61 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | BF61), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | BF61), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | BF61), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | BF61), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | BF61), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | BF61), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | BF61), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | BF61), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | BF61), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | BF61) /* \BF61 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | BF61) /* \BF61 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | BF61) /* \BF61 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | BF61) /* \BF61 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | BF61) /* \BF61 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | BF61) /* \BF61 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | BF61) /* \BF61 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | BF61) /* \BF61 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | BF61) /* \BF61 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | BF61) /* \BF61 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | BF61) /* \BF61 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | BF61) /* \BF61 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((BF65 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((BF65 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((BF65 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((BF65 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (BF65 | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (BF65 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (BF65 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (BF65 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (BF65 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | BF65), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | BF65), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | BF65), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((BF61 | BF65), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((BF65 | BF61), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (BF61 | BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (BF65 | BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((BF65 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((BF65 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((BF65 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((BF65 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (BF65 | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (BF65 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (BF65 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (BF65 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (BF65 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | BF65), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | BF65), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | BF65), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | BF65), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | BF65), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | BF65), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | BF65), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | BF65), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | BF65), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((BF61 | BF65), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((BF65 | BF61), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (BF61 | BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (BF65 | BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((BF61 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((BF61 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((BF61 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((BF61 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (BF61 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (BF61 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (BF61 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (BF61 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (BF61 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << BF74), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << BF74), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << BF74), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << BF74) /* \BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << BF74) /* \BF74 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << BF74) /* \BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << BF74) /* \BF74 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << BF74) /* \BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << BF74) /* \BF74 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << BF74) /* \BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << BF74) /* \BF74 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << BF74) /* \BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << BF74) /* \BF74 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << BF74) /* \BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << BF74) /* \BF74 */ M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((BF65 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((BF65 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((BF65 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((BF65 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (BF65 << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (BF65 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (BF65 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (BF65 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (BF65 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << BF74), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << BF74), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << BF74), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << BF74) /* \BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << BF74) /* \BF74 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << BF74) /* \BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << BF74) /* \BF74 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << BF74) /* \BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << BF74) /* \BF74 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << BF74) /* \BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << BF74) /* \BF74 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << BF74) /* \BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << BF74) /* \BF74 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << BF74) /* \BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << BF74) /* \BF74 */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((BF61 << BF74), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((BF65 << BF74), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (BF61 << BF74) /* \BF74 */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (BF65 << BF74) /* \BF74 */ M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((BF65 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((BF65 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((BF65 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((BF65 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (BF65 << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (BF65 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (BF65 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (BF65 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (BF65 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << BF74), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << BF74), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << BF74), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << BF74) /* \BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << BF74) /* \BF74 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << BF74) /* \BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << BF74) /* \BF74 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << BF74) /* \BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << BF74) /* \BF74 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << BF74) /* \BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << BF74) /* \BF74 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << BF74) /* \BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << BF74) /* \BF74 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << BF74) /* \BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << BF74) /* \BF74 */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((BF61 << BF74), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((BF65 << BF74), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (BF61 << BF74) /* \BF74 */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (BF65 << BF74) /* \BF74 */ M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((BF61 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((BF61 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((BF61 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((BF61 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (BF61 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (BF61 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (BF61 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (BF61 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (BF61 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> BF74), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> BF74), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> BF74), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> BF74) /* \BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> BF74) /* \BF74 */ M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> BF74) /* \BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> BF74) /* \BF74 */ M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> BF74) /* \BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> BF74) /* \BF74 */ M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> BF74) /* \BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> BF74) /* \BF74 */ M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> BF74) /* \BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> BF74) /* \BF74 */ M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74) /* \BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> BF74) /* \BF74 */ M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((BF65 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((BF65 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((BF65 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((BF65 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (BF65 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (BF65 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (BF65 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (BF65 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (BF65 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> BF74), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> BF74), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> BF74), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> BF74) /* \BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> BF74) /* \BF74 */ M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> BF74) /* \BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> BF74) /* \BF74 */ M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> BF74) /* \BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> BF74) /* \BF74 */ M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> BF74) /* \BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> BF74) /* \BF74 */ M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> BF74) /* \BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> BF74) /* \BF74 */ M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74) /* \BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> BF74) /* \BF74 */ M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((BF61 >> BF74), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((BF65 >> BF74), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (BF61 >> BF74) /* \BF74 */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (BF65 >> BF74) /* \BF74 */ M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((BF65 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((BF65 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((BF65 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((BF65 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (BF65 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (BF65 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (BF65 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (BF65 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (BF65 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> BF74), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> BF74), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> BF74), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> BF74), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> BF74), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> BF74), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> BF74), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> BF74), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> BF74), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> BF74), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> BF74), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> BF74) /* \BF74 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> BF74) /* \BF74 */ M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> BF74) /* \BF74 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> BF74) /* \BF74 */ M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> BF74) /* \BF74 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> BF74) /* \BF74 */ M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> BF74) /* \BF74 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> BF74) /* \BF74 */ M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> BF74) /* \BF74 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> BF74) /* \BF74 */ M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> BF74) /* \BF74 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> BF74) /* \BF74 */ M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((BF61 >> BF74), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((BF65 >> BF74), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (BF61 >> BF74) /* \BF74 */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (BF65 >> BF74) /* \BF74 */ M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((BF61 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((BF61 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((BF61 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((BF61 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (BF61 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (BF61 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (BF61 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (BF61 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (BF61 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - BF61), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - BF61), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - BF61), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - BF61), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - BF61), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - BF61), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - BF61), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - BF61), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - BF61), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - BF61), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - BF61), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - BF61), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - BF61) /* \BF61 */ M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - BF61) /* \BF61 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - BF61) /* \BF61 */ M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - BF61) /* \BF61 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - BF61) /* \BF61 */ M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - BF61) /* \BF61 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - BF61) /* \BF61 */ M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - BF61) /* \BF61 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - BF61) /* \BF61 */ M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - BF61) /* \BF61 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - BF61) /* \BF61 */ M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - BF61) /* \BF61 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((BF65 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((BF65 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((BF65 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((BF65 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (BF65 - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (BF65 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (BF65 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (BF65 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (BF65 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - BF65), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - BF65), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - BF65), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - BF65), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - BF65), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - BF65), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((BF61 - BF65), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((BF65 - BF61), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (BF61 - BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (BF65 - BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((BF65 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((BF65 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((BF65 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((BF65 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (BF65 - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (BF65 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (BF65 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (BF65 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (BF65 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - BF65), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - BF65), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - BF65), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - BF65), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - BF65), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - BF65), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - BF65), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - BF65), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - BF65), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((BF61 - BF65), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((BF65 - BF61), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (BF61 - BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (BF65 - BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF61 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((BF61 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((BF61 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((BF61 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((BF61 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((BF61 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((BF61 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((BF61 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((BF61 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((BF61 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((BF61 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((BF61 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (BF61 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (BF61 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (BF61 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (BF61 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (BF61 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (BF61 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (BF61 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (BF61 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (BF61 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (BF61 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (BF61 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ BF61), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ BF61), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ BF61), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ BF61), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ BF61), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ BF61), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ BF61), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ BF61), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ BF61), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ BF61), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF61), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ BF61), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ BF61) /* \BF61 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ BF61) /* \BF61 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ BF61) /* \BF61 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ BF61) /* \BF61 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ BF61) /* \BF61 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ BF61) /* \BF61 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ BF61) /* \BF61 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ BF61) /* \BF61 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ BF61) /* \BF61 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ BF61) /* \BF61 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF61) /* \BF61 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ BF61) /* \BF61 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((BF65 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((BF65 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((BF65 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((BF65 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((BF65 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (BF65 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (BF65 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (BF65 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (BF65 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (BF65 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (BF65 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ BF65), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ BF65), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ BF65), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ BF65), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF65), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ BF65), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((BF61 ^ BF65), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((BF65 ^ BF61), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (BF61 ^ BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (BF65 ^ BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((BF65 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((BF65 ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((BF65 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((BF65 ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((BF65 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((BF65 ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((BF65 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((BF65 ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((BF65 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((BF65 ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((BF65 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((BF65 ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (BF65 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (BF65 ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (BF65 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (BF65 ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (BF65 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (BF65 ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (BF65 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (BF65 ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (BF65 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (BF65 ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (BF65 ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ BF65), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ BF65), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ BF65), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ BF65), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ BF65), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ BF65), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ BF65), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ BF65), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ BF65), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ BF65), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF65), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ BF65), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ BF65) /* \BF65 */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ BF65) /* \BF65 */ M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ BF65) /* \BF65 */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ BF65) /* \BF65 */ M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ BF65) /* \BF65 */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ BF65) /* \BF65 */ M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ BF65) /* \BF65 */ M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((BF61 ^ BF65), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((BF65 ^ BF61), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (BF61 ^ BF65) /* \BF65 */ M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (BF65 ^ BF61) /* \BF61 */ M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (BF61 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (BF61 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF61 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (BF61 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF61 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (BF61 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF61 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (BF61 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF61 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (BF61 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF61 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (BF61 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && BF61) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && BF61) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && BF61) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && BF61) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && BF61) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && BF61) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && BF61) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && BF61) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && BF61) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && BF61) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && BF61) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && BF61) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (BF65 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (BF65 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF65 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (BF65 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF65 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (BF65 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF65 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (BF65 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF65 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (BF65 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (BF65 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && BF65) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && BF65) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && BF65) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && BF65) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && BF65) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && BF65) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && BF65) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (BF61 && BF65) M600 (Arg0, 0x18, Local0, Ones) Local0 = (BF65 && BF61) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (BF65 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (BF65 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF65 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (BF65 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF65 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (BF65 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF65 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (BF65 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF65 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (BF65 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (BF65 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && BF65) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && BF65) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && BF65) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && BF65) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && BF65) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && BF65) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && BF65) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (BF61 && BF65) M600 (Arg0, 0x18, Local0, Ones) Local0 = (BF65 && BF61) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (BF76 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (BF76 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF76 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (BF76 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF76 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (BF76 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF76 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (BF76 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF76 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (BF76 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF76 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (BF76 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || BF76) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || BF76) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || BF76) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || BF76) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || BF76) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || BF76) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || BF76) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || BF76) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || BF76) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || BF76) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || BF76) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || BF76) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (BF65 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (BF65 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF65 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (BF65 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF65 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (BF65 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF65 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (BF65 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF65 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (BF65 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (BF65 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || BF65) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || BF65) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || BF65) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || BF65) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || BF65) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || BF65) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || BF65) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || BF65) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || BF65) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || BF65) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (BF76 || BF65) M600 (Arg0, 0x18, Local0, Ones) Local0 = (BF65 || BF76) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (BF65 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (BF65 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (BF65 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (BF65 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (BF65 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (BF65 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (BF65 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (BF65 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (BF65 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (BF65 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (BF65 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (BF65 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || BF65) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || BF65) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || BF65) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || BF65) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || BF65) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || BF65) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || BF65) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || BF65) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || BF65) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || BF65) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || BF65) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || BF65) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (BF76 || BF65) M600 (Arg0, 0x18, Local0, Ones) Local0 = (BF65 || BF76) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer Field to Integer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == BF65) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == BF65) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == BF65) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == BF65) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == BF65) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == BF65) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == BF65) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == BF65) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == BF65) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == BF65) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == BF65) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == BF65) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == BF65) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == BF65) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == BF65) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == BF65) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == BF65) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > BF65) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > BF65) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > BF65) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > BF65) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > BF65) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > BF65) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > BF65) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > BF65) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > BF65) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > BF65) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > BF65) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > BF65) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > BF65) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > BF65) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > BF65) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > BF65) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= BF65) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= BF65) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= BF65) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= BF65) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= BF65) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= BF65) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= BF65) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= BF65) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= BF65) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= BF65) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= BF65) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= BF65) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= BF65) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= BF65) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= BF65) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= BF65) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= BF65) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= BF65) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < BF65) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < BF65) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < BF65) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < BF65) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < BF65) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < BF65) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < BF65) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < BF65) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < BF65) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < BF65) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < BF65) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < BF65) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < BF65) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < BF65) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < BF65) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < BF65) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < BF65) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < BF65) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= BF65) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= BF65) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= BF65) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= BF65) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= BF65) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= BF65) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= BF65) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= BF65) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= BF65) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= BF65) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= BF65) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= BF65) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= BF65) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= BF65) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= BF65) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= BF65) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= BF65) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= BF65) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != BF65) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != BF65) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != BF65) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != BF65) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != BF65) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != BF65) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != BF65) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != BF65) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != BF65) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != BF65) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != BF65) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != BF65) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != BF65) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != BF65) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != BF65) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != BF65) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != BF65) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != BF65) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { /* LEqual */ Local0 = (0xD650A284 == BF65) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == BF65) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == BF65) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == BF65) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == BF65) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == BF65) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == BF65) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == BF65) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == BF65) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == BF65) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == BF65) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == BF65) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == BF65) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == BF65) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == BF65) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == BF65) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == BF65) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == BF65) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > BF65) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > BF65) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > BF65) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > BF65) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > BF65) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > BF65) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > BF65) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > BF65) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > BF65) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > BF65) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > BF65) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > BF65) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > BF65) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > BF65) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > BF65) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > BF65) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > BF65) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > BF65) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= BF65) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= BF65) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= BF65) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= BF65) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= BF65) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= BF65) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= BF65) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= BF65) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= BF65) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= BF65) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= BF65) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= BF65) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= BF65) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= BF65) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= BF65) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= BF65) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= BF65) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= BF65) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < BF65) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < BF65) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < BF65) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < BF65) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < BF65) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < BF65) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < BF65) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < BF65) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < BF65) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < BF65) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < BF65) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < BF65) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < BF65) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < BF65) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < BF65) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < BF65) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < BF65) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < BF65) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= BF65) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= BF65) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= BF65) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= BF65) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= BF65) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= BF65) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= BF65) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= BF65) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= BF65) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= BF65) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= BF65) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= BF65) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= BF65) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= BF65) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= BF65) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= BF65) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= BF65) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= BF65) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != BF65) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != BF65) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != BF65) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != BF65) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != BF65) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != BF65) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != BF65) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != BF65) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != BF65) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != BF65) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != BF65) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != BF65) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != BF65) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != BF65) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != BF65) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != BF65) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != BF65) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != BF65) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == BF61) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == BF61) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == BF61) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == BF61) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == BF61) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == BF61) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == BF61) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == BF61) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == BF61) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == BF61) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == BF61) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == BF61) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == BF61) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == BF61) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == BF61) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == BF61) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == BF61) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == BF61) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > BF61) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > BF61) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > BF61) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > BF61) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > BF61) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > BF61) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > BF61) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > BF61) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > BF61) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > BF61) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > BF61) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > BF61) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > BF61) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > BF61) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > BF61) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > BF61) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > BF61) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > BF61) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= BF61) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= BF61) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= BF61) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= BF61) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= BF61) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= BF61) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= BF61) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= BF61) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= BF61) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= BF61) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= BF61) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= BF61) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= BF61) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= BF61) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= BF61) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= BF61) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= BF61) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= BF61) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < BF61) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < BF61) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < BF61) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < BF61) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < BF61) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < BF61) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < BF61) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < BF61) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < BF61) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < BF61) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < BF61) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < BF61) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < BF61) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < BF61) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < BF61) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < BF61) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < BF61) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < BF61) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= BF61) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= BF61) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= BF61) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= BF61) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= BF61) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= BF61) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= BF61) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= BF61) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= BF61) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= BF61) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= BF61) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= BF61) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= BF61) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= BF61) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= BF61) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= BF61) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= BF61) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= BF61) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != BF61) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != BF61) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != BF61) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != BF61) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != BF61) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != BF61) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != BF61) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != BF61) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != BF61) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != BF61) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != BF61) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != BF61) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != BF61) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != BF61) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != BF61) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != BF61) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != BF61) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != BF61) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer Field to Integer intermediate conversion of the Buffer Field */ /* second operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, BF61) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, BF65) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, BF61) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, BF65) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), BF61) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), BF65) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), BF61) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), BF65) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), BF61) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), BF65) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF61) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF65) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, BF61, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, BF61, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), BF61, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), BF65, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), BF61, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), BF65, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), BF61, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), BF65, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF61, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF65, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, BF61) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, BF65) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, BF61) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, BF65) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), BF61) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), BF65) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), BF61) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), BF65) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), BF61) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), BF65) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF61) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF65) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, BF61, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, BF61, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), BF61, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), BF65, Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), BF61, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), BF65, Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), BF61, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), BF65, Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF61, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), BF65, Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer Field to Integer conversion of the Buffer Field Length */ /* (second) operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF74) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF61) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, BF74) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, BF61) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), BF74) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), BF61) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), BF74) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), BF61) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), BF74) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), BF61) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF74) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF61) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF61, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, BF74, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, BF61, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), BF74, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), BF61, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), BF74, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), BF61, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), BF74, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), BF61, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF61, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF65) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, BF65) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), BF65) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), BF65) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), BF65) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF65) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF65, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, BF65, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), BF65, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), BF65, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), BF65, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF65, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF65) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, BF65) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), BF65) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), BF65) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), BF65) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF65) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, BF65, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, BF65, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), BF65, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), BF65, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), BF65, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), BF65, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer Field to Integer conversion of the Buffer Field Index */ /* (second) operand of the Index operator */ Method (M067, 1, NotSerialized) { Store (AUS6 [BF74], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [BF74], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [BF74], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [BF74], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [BF74], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [BF74], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [BF74], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [BF74], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [BF74], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [BF74], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [BF74], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [BF74], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [BF74], Local3) CH04 (Arg0, 0x00, 0x55, Z087, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [BF74], Local3) CH04 (Arg0, 0x00, 0x55, Z087, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [BF74], Local3) CH04 (Arg0, 0x00, 0x55, Z087, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [BF74], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [BF74], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [BF74], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [BF74] /* \BF74 */ M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [BF74] /* \BF74 */ M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [BF74] /* \BF74 */ M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [BF74] /* \BF74 */ M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [BF74] /* \BF74 */ M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [BF74] /* \BF74 */ M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [BF74] /* \BF74 */ M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [BF74] /* \BF74 */ M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [BF74] /* \BF74 */ M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [BF74] /* \BF74 */ M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [BF74] /* \BF74 */ M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [BF74] /* \BF74 */ M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [BF74] /* \BF74 */ CH04 (Arg0, 0x00, 0x55, Z087, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [BF74] /* \BF74 */ CH04 (Arg0, 0x00, 0x55, Z087, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [BF74] /* \BF74 */ CH04 (Arg0, 0x00, 0x55, Z087, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [BF74] /* \BF74 */ M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [BF74] /* \BF74 */ M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [BF74] /* \BF74 */ M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [BF74] /* \BF74 */ M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [BF74] /* \BF74 */ M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [BF74] /* \BF74 */ M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [BF74] /* \BF74 */ M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [BF74] /* \BF74 */ M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [BF74] /* \BF74 */ M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [BF74] /* \BF74 */ M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [BF74] /* \BF74 */ M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [BF74] /* \BF74 */ M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [BF74] /* \BF74 */ M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [BF74] /* \BF74 */ M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [BF74] /* \BF74 */ M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [BF74] /* \BF74 */ M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [BF74] /* \BF74 */ M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [BF74] /* \BF74 */ M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer Field to Integer conversion of the Buffer Field Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, BF61) If (F64) { Fatal (0xFF, 0xFFFFFFFF, BF65) } Else { Fatal (0xFF, 0xFFFFFFFF, BF65) } CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) } /* Buffer Field to Integer conversion of the Buffer Field Index */ /* and Length operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { /* Buffer Field to Integer conversion of the Buffer Field Index operand */ Local0 = Mid ("This is auxiliary String", BF74, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, BF74, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, BF74, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), BF74, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), BF74, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), BF74, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), BF74, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), BF74, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), BF74, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", BF74, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, BF74, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, BF74, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), BF74, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), BF74, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), BF74, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), BF74, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), BF74, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), BF74, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* Buffer Field to Integer conversion of the Buffer Field Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, BF74) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF74) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, BF74) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, BF74) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, BF74) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, BF74) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, BF74) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, BF74) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, BF74) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, BF74) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF74) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF74) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, BF74, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF74, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, BF74, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, BF74, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, BF74, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, BF74, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, BF74, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, BF74, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, BF74, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, BF74, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF74, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF74, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { /* Buffer Field to Integer conversion of the Buffer Field Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, BF65) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF65) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, BF65) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, BF65) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, BF65) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, BF65) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, BF65) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, BF65) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, BF65) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, BF65) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF65) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF65) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, BF65, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, BF65, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, BF65, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, BF65, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, BF65, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, BF65, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, BF65, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, BF65, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF65, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF65, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* Buffer Field to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", BF74, BF65) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, BF65) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, BF74, BF65) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, BF74, BF65) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), BF74, BF65) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), BF74, BF65) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), BF74, BF65) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), BF74, BF65) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), BF74, BF65) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), BF74, BF65) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, BF65) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, BF65) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", BF74, BF65, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, BF65, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, BF74, BF65, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, BF74, BF65, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), BF74, BF65, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), BF74, BF65, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), BF74, BF65, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), BF74, BF65, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), BF74, BF65, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), BF74, BF65, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, BF65, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, BF65, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { /* Buffer Field to Integer conversion of the Buffer Field Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, BF65) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF65) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, BF65) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, BF65) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, BF65) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, BF65) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, BF65) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, BF65) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, BF65) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, BF65) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF65) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF65) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, BF65, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, BF65, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, BF65, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, BF65, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, BF65, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, BF65, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, BF65, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, BF65, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, BF65, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, BF65, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, BF65, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, BF65, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* Buffer Field to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", BF74, BF65) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, BF65) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, BF74, BF65) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, BF74, BF65) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), BF74, BF65) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), BF74, BF65) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), BF74, BF65) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), BF74, BF65) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), BF74, BF65) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), BF74, BF65) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, BF65) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, BF65) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", BF74, BF65, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, BF74, BF65, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, BF74, BF65, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, BF74, BF65, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), BF74, BF65, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), BF74, BF65, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), BF74, BF65, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), BF74, BF65, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), BF74, BF65, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), BF74, BF65, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), BF74, BF65, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), BF74, BF65, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer Field to Integer conversion of the Buffer Field StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, BF74) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, BF74) M600 (Arg0, 0x0B, Local0, Ones) } } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (BF61) CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z087, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (BF75) CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z087, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer Field to Integer conversion of the Buffer Field TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, bf61) */ CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z087, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer Field to Integer conversion of the Buffer Field TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, BF61) CH03 (Arg0, Z087, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z087, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer Field to Integer conversion of the Buffer Field value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (BF76) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (BF61) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (BF65) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (BF65) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (BF76) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (BF61) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (BF65) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (BF65) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (BF76) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Initialize Buffer Fields */ Method (M073, 0, NotSerialized) { BF61 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF62 = Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } BF63 = Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0xA5 // ..y.. } BF64 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF65 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BF66 = Buffer (0x09) { /* 0000 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // !....... /* 0008 */ 0x01 // . } BF69 = Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc } BF6C = Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 } BF6D = Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. } BF6E = Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. } BF6F = Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. } BF70 = 0x6179534E BF71 = Buffer (0x08) { 0x14, 0x22, 0x50, 0x36, 0x41, 0x53, 0x7C, 0x6E // ."P6AS|n } BF72 = Buffer (0x08) { 0x14, 0x22, 0x00, 0x36, 0x41, 0x53, 0x00, 0x6E // .".6AS.n } BF73 = Buffer (0x08) { 0x14, 0x22, 0x00, 0x36, 0x41, 0x53, 0x7C, 0x6E // .".6AS|n } BF74 = 0x0B BF75 = 0x3F BF76 = 0x00 BF77 = 0x36002214 BF91 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BF95 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } BFA1 = Buffer (0x03) { 0x21, 0x03, 0x00 // !.. } BFA5 = Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } } /* Check Buffer Fields consistency */ Method (M074, 1, NotSerialized) { M600 (Arg0, 0x00, BF61, Buffer() {0x21, 0x03, 0x00, 0x00})//0x0321) M600 (Arg0, 0x01, BF62, Buffer() {0xFE, 0xB3, 0x79, 0xC1})//0xC179B3FE) M600 (Arg0, 0x02, BF63, Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. }) M600 (Arg0, 0x03, BF64, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0x7E // ..P...|~ }) M600 (Arg0, 0x04, BF65, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M600 (Arg0, 0x05, BF66, Buffer (0x09) { /* 0000 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // !....... /* 0008 */ 0x01 // . }) M600 (Arg0, 0x06, BF69, Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x07, BF6C, Buffer (0x09) { /* 0000 */ 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37, // ..gE#..7 /* 0008 */ 0x00 // . }) M600 (Arg0, 0x08, BF6D, Buffer (0x09) { /* 0000 */ 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D, 0x00, // 5....v.. /* 0008 */ 0x00 // . }) M600 (Arg0, 0x09, BF6E, Buffer (0x05) { 0x56, 0x34, 0x12, 0x90, 0x00 // V4... }) M600 (Arg0, 0x0A, BF6F, Buffer (0x05) { 0xC0, 0x2C, 0x5F, 0x05, 0x00 // .,_.. }) M600 (Arg0, 0x0B, BF70, Buffer() { 0x4E, 0x53, 0x79, 0x61 }) M600 (Arg0, 0x0C, BF71, Buffer (0x08) { 0x14, 0x22, 0x50, 0x36, 0x41, 0x53, 0x7C, 0x6E // ."P6AS|n }) M600 (Arg0, 0x0D, BF72, Buffer (0x08) { 0x14, 0x22, 0x00, 0x36, 0x41, 0x53, 0x00, 0x6E // .".6AS.n }) M600 (Arg0, 0x0E, BF73, Buffer (0x08) { 0x14, 0x22, 0x00, 0x36, 0x41, 0x53, 0x7C, 0x6E // .".6AS|n }) M600 (Arg0, 0x0F, BF74, Buffer (0x05) { 0x0B, 0x00, 0x00, 0x00, 0x00 // ..... }) M600 (Arg0, 0x10, BF75, Buffer (0x05) { 0x3F, 0x00, 0x00, 0x00, 0x00 // ?.... }) M600 (Arg0, 0x11, BF76, Buffer (0x05) { 0x00, 0x00, 0x00, 0x00, 0x00 // ..... }) M600 (Arg0, 0x12, BF77, Buffer() { 0x14, 0x22, 0x00, 0x36 }) M600 (Arg0, 0x13, BF91, Buffer() { 0x20, 0x03, 0x00, 0x00 }) M600 (Arg0, 0x14, BFA1, Buffer() { 0x22, 0x03, 0x00, 0x00 }) If (F64) { M600 (Arg0, 0x15, BF95, Buffer() { 0x83, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P..... }) } Else { M600 (Arg0, 0x15, BF95, Buffer (0x08) { 0x83, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00 // ..P..... }) } If (F64) { M600 (Arg0, 0x16, BFA5, Buffer() { 0x85, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P..... })//0xFE7CB391D650A285) } Else { M600 (Arg0, 0x16, BFA5, Buffer (0x08) { 0x85, 0xA2, 0x50, 0xD6, 0x00, 0x00, 0x00, 0x00 // ..P..... }) } } /* * Begin of the test body */ M073 () /* Buffer Field to Buffer implicit conversion Cases. */ /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Buffer Field to Buffer conversion of the both Integer operands */ /* of Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Buffer Field to Buffer conversion of the Buffer Field second operand */ /* of Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Buffer Field to Buffer conversion of the Buffer Field Source operand */ /* of Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* Buffer Field to Integer implicit conversion Cases. */ /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer Field to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer Field to Integer conversion of the Buffer Field second operand */ /* of Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer Field to Integer intermediate conversion of the Buffer Field */ /* second operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer Field to Integer conversion of the Buffer Field Length */ /* (second) operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer Field to Integer conversion of the Buffer Field Index */ /* (second) operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer Field to Integer conversion of the Buffer Field Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer Field to Integer conversion of the Buffer Field Index */ /* and Length operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer Field to Integer conversion of the Buffer Field StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer Field to Integer conversion of the Buffer Field sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer Field to Integer conversion of the Buffer Field TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer Field to Integer conversion of the Buffer Field value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) M06E (Local0) /* Check Buffer Fields consistency */ Concatenate (__METHOD__, "-m074", Local0) SRMT (Local0) M074 (Local0) } /* Run-method */ Method (OPR1, 0, NotSerialized) { Debug = "TEST: OPR1, Source Operand" M611 () M612 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedglob/MAIN.asl0000700000175000017500000000446614773714154032420 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ DefinitionBlock ("onamedglob", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../../../runtime/cntl/DECL_6UP.asl") Include ("../../../../../../runtime/collections/complex/operand/common/ocommon.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/onamedglob/onamedglob1.asl") Include ("../../../../../../runtime/collections/complex/operand/tests/onamedglob/onamedglob2.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../../../runtime/collections/complex/operand/tests/onamedglob/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedglob/Makefile0000700000175000017500000000023614773714154032622 0ustar ivanhuivanhu# onamedglob AMLMOD= onamedglob COLL= ../../../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedglob/onamedglob1.aslacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/tests/onamedglob/onamedglob0000700000175000017500000317003614773714154033225 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Check implicit conversion being applied to Named Objects * in the root Scope of the Global ACPI namespace */ Name (Z086, 0x56) Method (M611, 0, Serialized) { /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M640, 1, NotSerialized) { /* LEqual */ Local0 = ("FE7CB391D650A284" == I604) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("fE7CB391D650A284" == I604) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS4 == I604) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS5 == I604) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) == I604) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) == I604) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) == I604) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) == I604) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) == I604) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x05) == I604) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) == I604) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) == I604) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("FE7CB391D650A284" > I604) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("fE7CB391D650A284" > I604) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("FE7CB391D650A28 " > I604) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("FE7CB391D650A284q" > I604) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS4 > I604) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS5 > I604) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) > I604) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) > I604) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) > I604) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) > I604) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) > I604) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x05) > I604) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) > I604) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) > I604) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("FE7CB391D650A284" >= I604) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("fE7CB391D650A284" >= I604) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("FE7CB391D650A28 " >= I604) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("FE7CB391D650A284q" >= I604) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS4 >= I604) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS5 >= I604) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) >= I604) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) >= I604) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) >= I604) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) >= I604) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) >= I604) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x05) >= I604) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) >= I604) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) >= I604) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("FE7CB391D650A284" < I604) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("fE7CB391D650A284" < I604) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("FE7CB391D650A28 " < I604) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("FE7CB391D650A284q" < I604) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS4 < I604) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS5 < I604) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) < I604) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) < I604) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) < I604) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) < I604) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) < I604) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x05) < I604) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) < I604) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) < I604) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("FE7CB391D650A284" <= I604) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("fE7CB391D650A284" <= I604) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("FE7CB391D650A28 " <= I604) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("FE7CB391D650A284q" <= I604) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS4 <= I604) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS5 <= I604) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) <= I604) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS5)) <= I604) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x04]) <= I604) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x05]) <= I604) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x04) <= I604) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x05) <= I604) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) <= I604) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) <= I604) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("FE7CB391D650A284" != I604) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("fE7CB391D650A284" != I604) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("FE7CB391D650A28 " != I604) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("FE7CB391D650A284q" != I604) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS4 != I604) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS5 != I604) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS4)) != I604) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS5)) != I604) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x04]) != I604) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x05]) != I604) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x04) != I604) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x05) != I604) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x04, 0x01)) != I604) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x05, 0x01)) != I604) M600 (Arg0, 0x51, Local0, Ones) } } Method (M320, 1, NotSerialized) { /* LEqual */ Local0 = ("C179B3FE" == I603) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("c179B3FE" == I603) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS3 == I603) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUS2 == I603) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) == I603) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) == I603) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) == I603) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) == I603) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) == I603) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x02) == I603) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) == I603) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) == I603) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("C179B3FE" > I603) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("c179B3FE" > I603) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("C179B3F " > I603) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("C179B3FEq" > I603) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS3 > I603) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUS2 > I603) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) > I603) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) > I603) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) > I603) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) > I603) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) > I603) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x02) > I603) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) > I603) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) > I603) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("C179B3FE" >= I603) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("c179B3FE" >= I603) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("C179B3F " >= I603) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("C179B3FEq" >= I603) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS3 >= I603) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUS2 >= I603) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) >= I603) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) >= I603) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) >= I603) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) >= I603) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) >= I603) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x02) >= I603) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) >= I603) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) >= I603) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("C179B3FE" < I603) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("c179B3FE" < I603) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("C179B3F " < I603) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("C179B3FEq" < I603) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS3 < I603) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUS2 < I603) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) < I603) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) < I603) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) < I603) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) < I603) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) < I603) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x02) < I603) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) < I603) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) < I603) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("C179B3FE" <= I603) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("c179B3FE" <= I603) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("C179B3F " <= I603) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("C179B3FEq" <= I603) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS3 <= I603) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUS2 <= I603) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) <= I603) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUS2)) <= I603) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x03]) <= I603) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x02]) <= I603) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x03) <= I603) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x02) <= I603) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) <= I603) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) <= I603) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("C179B3FE" != I603) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("c179B3FE" != I603) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("C179B3F " != I603) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("C179B3FEq" != I603) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS3 != I603) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUS2 != I603) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS3)) != I603) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUS2)) != I603) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x03]) != I603) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x02]) != I603) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x03) != I603) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x02) != I603) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x03, 0x01)) != I603) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x02, 0x01)) != I603) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M641, 1, NotSerialized) { Local0 = Concatenate ("", I604) M600 (Arg0, 0x00, Local0, BS10) Local0 = Concatenate ("1234q", I604) M600 (Arg0, 0x01, Local0, BS11) Local0 = Concatenate (AUS0, I604) M600 (Arg0, 0x02, Local0, BS10) Local0 = Concatenate (AUS1, I604) M600 (Arg0, 0x03, Local0, BS11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), I604) M600 (Arg0, 0x04, Local0, BS10) Local0 = Concatenate (DerefOf (RefOf (AUS1)), I604) M600 (Arg0, 0x05, Local0, BS11) } Local0 = Concatenate (DerefOf (PAUS [0x00]), I604) M600 (Arg0, 0x06, Local0, BS10) Local0 = Concatenate (DerefOf (PAUS [0x01]), I604) M600 (Arg0, 0x07, Local0, BS11) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), I604) M600 (Arg0, 0x08, Local0, BS10) Local0 = Concatenate (M601 (0x02, 0x01), I604) M600 (Arg0, 0x09, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), I604) M600 (Arg0, 0x0A, Local0, BS10) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), I604) M600 (Arg0, 0x0B, Local0, BS11) } Concatenate ("", I604, Local0) M600 (Arg0, 0x0C, Local0, BS10) Concatenate ("1234q", I604, Local0) M600 (Arg0, 0x0D, Local0, BS11) Concatenate (AUS0, I604, Local0) M600 (Arg0, 0x0E, Local0, BS10) Concatenate (AUS1, I604, Local0) M600 (Arg0, 0x0F, Local0, BS11) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), I604, Local0) M600 (Arg0, 0x10, Local0, BS10) Concatenate (DerefOf (RefOf (AUS1)), I604, Local0) M600 (Arg0, 0x11, Local0, BS11) } Concatenate (DerefOf (PAUS [0x00]), I604, Local0) M600 (Arg0, 0x12, Local0, BS10) Concatenate (DerefOf (PAUS [0x01]), I604, Local0) M600 (Arg0, 0x13, Local0, BS11) /* Method returns String */ Concatenate (M601 (0x02, 0x00), I604, Local0) M600 (Arg0, 0x14, Local0, BS10) Concatenate (M601 (0x02, 0x01), I604, Local0) M600 (Arg0, 0x15, Local0, BS11) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), I604, Local0) M600 (Arg0, 0x16, Local0, BS10) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), I604, Local0) M600 (Arg0, 0x17, Local0, BS11) } } Method (M321, 1, NotSerialized) { Local0 = Concatenate ("", I603) M600 (Arg0, 0x00, Local0, BS12) Local0 = Concatenate ("1234q", I603) M600 (Arg0, 0x01, Local0, BS13) Local0 = Concatenate (AUS0, I603) M600 (Arg0, 0x02, Local0, BS12) Local0 = Concatenate (AUS1, I603) M600 (Arg0, 0x03, Local0, BS13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), I603) M600 (Arg0, 0x04, Local0, BS12) Local0 = Concatenate (DerefOf (RefOf (AUS1)), I603) M600 (Arg0, 0x05, Local0, BS13) } Local0 = Concatenate (DerefOf (PAUS [0x00]), I603) M600 (Arg0, 0x06, Local0, BS12) Local0 = Concatenate (DerefOf (PAUS [0x01]), I603) M600 (Arg0, 0x07, Local0, BS13) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), I603) M600 (Arg0, 0x08, Local0, BS12) Local0 = Concatenate (M601 (0x02, 0x01), I603) M600 (Arg0, 0x09, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), I603) M600 (Arg0, 0x0A, Local0, BS12) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), I603) M600 (Arg0, 0x0B, Local0, BS13) } Local0 = Concatenate ("", I604) M600 (Arg0, 0x0C, Local0, BS14) Local0 = Concatenate ("1234q", I604) M600 (Arg0, 0x0D, Local0, BS15) Concatenate ("", I603, Local0) M600 (Arg0, 0x0E, Local0, BS12) Concatenate ("1234q", I603, Local0) M600 (Arg0, 0x0F, Local0, BS13) Concatenate (AUS0, I603, Local0) M600 (Arg0, 0x10, Local0, BS12) Concatenate (AUS1, I603, Local0) M600 (Arg0, 0x11, Local0, BS13) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), I603, Local0) M600 (Arg0, 0x12, Local0, BS12) Concatenate (DerefOf (RefOf (AUS1)), I603, Local0) M600 (Arg0, 0x13, Local0, BS13) } Concatenate (DerefOf (PAUS [0x00]), I603, Local0) M600 (Arg0, 0x14, Local0, BS12) Concatenate (DerefOf (PAUS [0x01]), I603, Local0) M600 (Arg0, 0x15, Local0, BS13) /* Method returns String */ Concatenate (M601 (0x02, 0x00), I603, Local0) M600 (Arg0, 0x16, Local0, BS12) Concatenate (M601 (0x02, 0x01), I603, Local0) M600 (Arg0, 0x17, Local0, BS13) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), I603, Local0) M600 (Arg0, 0x18, Local0, BS12) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), I603, Local0) M600 (Arg0, 0x19, Local0, BS13) } Concatenate ("", I604, Local0) M600 (Arg0, 0x1A, Local0, BS14) Concatenate ("1234q", I604, Local0) M600 (Arg0, 0x1B, Local0, BS15) } /* Method(m642, 1) */ /* Method(m322, 1) */ /* Method(m643, 1) */ /* Method(m323, 1) */ /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M644, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } == I604) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } == I604) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB4 == I604) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == I604) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) == I604) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == I604) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) == I604) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == I604) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) == I604) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == I604) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) == I604) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == I604) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } > I604) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } > I604) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } > I604) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } > I604) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB4 > I604) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB5 > I604) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) > I604) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) > I604) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) > I604) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) > I604) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) > I604) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x05) > I604) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) > I604) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) > I604) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } >= I604) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } >= I604) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } >= I604) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } >= I604) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB4 >= I604) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB5 >= I604) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) >= I604) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) >= I604) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) >= I604) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) >= I604) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) >= I604) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x05) >= I604) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) >= I604) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) >= I604) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } < I604) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } < I604) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } < I604) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } < I604) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB4 < I604) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB5 < I604) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) < I604) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) < I604) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) < I604) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) < I604) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) < I604) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x05) < I604) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) < I604) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) < I604) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } <= I604) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } <= I604) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } <= I604) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } <= I604) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB4 <= I604) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB5 <= I604) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) <= I604) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB5)) <= I604) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x04]) <= I604) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x05]) <= I604) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) <= I604) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x05) <= I604) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) <= I604) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) <= I604) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. } != I604) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. } != I604) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFD // ..P...|. } != I604) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x01 // . } != I604) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB4 != I604) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB5 != I604) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB4)) != I604) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB5)) != I604) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x04]) != I604) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x05]) != I604) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x04) != I604) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x05) != I604) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x04, 0x01)) != I604) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x05, 0x01)) != I604) M600 (Arg0, 0x51, Local0, Ones) } } Method (M324, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } == I603) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } == I603) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB3 == I603) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB2 == I603) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) == I603) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) == I603) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) == I603) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) == I603) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) == I603) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x02) == I603) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == I603) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) == I603) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } > I603) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } > I603) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } > I603) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } > I603) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB3 > I603) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB2 > I603) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) > I603) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) > I603) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) > I603) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) > I603) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) > I603) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x02) > I603) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) > I603) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) > I603) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } >= I603) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } >= I603) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } >= I603) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } >= I603) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB3 >= I603) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB2 >= I603) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) >= I603) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) >= I603) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) >= I603) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) >= I603) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) >= I603) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x02) >= I603) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) >= I603) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) >= I603) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } < I603) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } < I603) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } < I603) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } < I603) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB3 < I603) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB2 < I603) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) < I603) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) < I603) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) < I603) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) < I603) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) < I603) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x02) < I603) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) < I603) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) < I603) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } <= I603) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } <= I603) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } <= I603) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } <= I603) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB3 <= I603) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB2 <= I603) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) <= I603) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB2)) <= I603) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x03]) <= I603) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x02]) <= I603) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) <= I603) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x02) <= I603) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) <= I603) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) <= I603) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. } != I603) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. } != I603) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC0 // ..y. } != I603) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. } != I603) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB3 != I603) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB2 != I603) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB3)) != I603) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB2)) != I603) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x03]) != I603) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x02]) != I603) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x03) != I603) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x02) != I603) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) != I603) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x02, 0x01)) != I603) M600 (Arg0, 0x51, Local0, Ones) } } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ Method (M645, 1, NotSerialized) { Local0 = Concatenate (I604, I604) M600 (Arg0, 0x00, Local0, BB20) Local0 = Concatenate (0x0321, I604) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (I604, 0x0321) M600 (Arg0, 0x01, Local0, BB22) Concatenate (I604, I604, Local0) M600 (Arg0, 0x00, Local0, BB20) Concatenate (0x0321, I604, Local0) M600 (Arg0, 0x01, Local0, BB21) Concatenate (I604, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB22) } Method (M325, 1, NotSerialized) { Local0 = Concatenate (I603, I603) M600 (Arg0, 0x00, Local0, BB23) Local0 = Concatenate (0x0321, I603) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (I603, 0x0321) M600 (Arg0, 0x01, Local0, BB25) Concatenate (I603, I603, Local0) M600 (Arg0, 0x00, Local0, BB23) Concatenate (0x0321, I603, Local0) M600 (Arg0, 0x01, Local0, BB24) Concatenate (I603, 0x0321, Local0) M600 (Arg0, 0x01, Local0, BB25) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M646, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, I604) M600 (Arg0, 0x00, Local0, BB10) Local0 = Concatenate (Buffer (0x02) { "Z" }, I604) M600 (Arg0, 0x01, Local0, BB11) Local0 = Concatenate (AUB0, I604) M600 (Arg0, 0x02, Local0, BB10) Local0 = Concatenate (AUB1, I604) M600 (Arg0, 0x03, Local0, BB11) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), I604) M600 (Arg0, 0x04, Local0, BB10) Local0 = Concatenate (DerefOf (RefOf (AUB1)), I604) M600 (Arg0, 0x05, Local0, BB11) } Local0 = Concatenate (DerefOf (PAUB [0x00]), I604) M600 (Arg0, 0x06, Local0, BB10) Local0 = Concatenate (DerefOf (PAUB [0x01]), I604) M600 (Arg0, 0x07, Local0, BB11) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), I604) M600 (Arg0, 0x08, Local0, BB10) Local0 = Concatenate (M601 (0x03, 0x01), I604) M600 (Arg0, 0x09, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), I604) M600 (Arg0, 0x0A, Local0, BB10) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), I604) M600 (Arg0, 0x0B, Local0, BB11) } Concatenate (Buffer (0x01) { 0x5A // Z }, I604, Local0) M600 (Arg0, 0x0C, Local0, BB10) Concatenate (Buffer (0x02) { "Z" }, I604, Local0) M600 (Arg0, 0x0D, Local0, BB11) Concatenate (AUB0, I604, Local0) M600 (Arg0, 0x0E, Local0, BB10) Concatenate (AUB1, I604, Local0) M600 (Arg0, 0x0F, Local0, BB11) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), I604, Local0) M600 (Arg0, 0x10, Local0, BB10) Concatenate (DerefOf (RefOf (AUB1)), I604, Local0) M600 (Arg0, 0x11, Local0, BB11) } Concatenate (DerefOf (PAUB [0x00]), I604, Local0) M600 (Arg0, 0x12, Local0, BB10) Concatenate (DerefOf (PAUB [0x01]), I604, Local0) M600 (Arg0, 0x13, Local0, BB11) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), I604, Local0) M600 (Arg0, 0x14, Local0, BB10) Concatenate (M601 (0x03, 0x01), I604, Local0) M600 (Arg0, 0x15, Local0, BB11) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), I604, Local0) M600 (Arg0, 0x16, Local0, BB10) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), I604, Local0) M600 (Arg0, 0x17, Local0, BB11) } } Method (M326, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, I603) M600 (Arg0, 0x00, Local0, BB12) Local0 = Concatenate (Buffer (0x02) { "Z" }, I603) M600 (Arg0, 0x01, Local0, BB13) Local0 = Concatenate (AUB0, I603) M600 (Arg0, 0x02, Local0, BB12) Local0 = Concatenate (AUB1, I603) M600 (Arg0, 0x03, Local0, BB13) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), I603) M600 (Arg0, 0x04, Local0, BB12) Local0 = Concatenate (DerefOf (RefOf (AUB1)), I603) M600 (Arg0, 0x05, Local0, BB13) } Local0 = Concatenate (DerefOf (PAUB [0x00]), I603) M600 (Arg0, 0x06, Local0, BB12) Local0 = Concatenate (DerefOf (PAUB [0x01]), I603) M600 (Arg0, 0x07, Local0, BB13) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), I603) M600 (Arg0, 0x08, Local0, BB12) Local0 = Concatenate (M601 (0x03, 0x01), I603) M600 (Arg0, 0x09, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), I603) M600 (Arg0, 0x0A, Local0, BB12) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), I603) M600 (Arg0, 0x0B, Local0, BB13) } Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, I604) M600 (Arg0, 0x0C, Local0, BB14) Local0 = Concatenate (Buffer (0x02) { "Z" }, I604) M600 (Arg0, 0x0D, Local0, BB15) Concatenate (Buffer (0x01) { 0x5A // Z }, I603, Local0) M600 (Arg0, 0x0E, Local0, BB12) Concatenate (Buffer (0x02) { "Z" }, I603, Local0) M600 (Arg0, 0x0F, Local0, BB13) Concatenate (AUB0, I603, Local0) M600 (Arg0, 0x10, Local0, BB12) Concatenate (AUB1, I603, Local0) M600 (Arg0, 0x11, Local0, BB13) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), I603, Local0) M600 (Arg0, 0x12, Local0, BB12) Concatenate (DerefOf (RefOf (AUB1)), I603, Local0) M600 (Arg0, 0x13, Local0, BB13) } Concatenate (DerefOf (PAUB [0x00]), I603, Local0) M600 (Arg0, 0x14, Local0, BB12) Concatenate (DerefOf (PAUB [0x01]), I603, Local0) M600 (Arg0, 0x15, Local0, BB13) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), I603, Local0) M600 (Arg0, 0x16, Local0, BB12) Concatenate (M601 (0x03, 0x01), I603, Local0) M600 (Arg0, 0x17, Local0, BB13) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), I603, Local0) M600 (Arg0, 0x18, Local0, BB12) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), I603, Local0) M600 (Arg0, 0x19, Local0, BB13) } Concatenate (Buffer (0x01) { 0x5A // Z }, I604, Local0) M600 (Arg0, 0x1A, Local0, BB14) Concatenate (Buffer (0x02) { "Z" }, I604, Local0) M600 (Arg0, 0x1B, Local0, BB15) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ Method (M647, 1, NotSerialized) { Local0 = ToString (I60D, Ones) M600 (Arg0, 0x00, Local0, BS18) Local0 = ToString (I60D, 0x03) M600 (Arg0, 0x01, Local0, BS19) Local0 = ToString (I60E, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (I60D, AUI0) M600 (Arg0, 0x03, Local0, BS18) Local0 = ToString (I60D, AUI7) M600 (Arg0, 0x04, Local0, BS19) Local0 = ToString (I60E, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (I60D, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS18) Local0 = ToString (I60D, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS19) Local0 = ToString (I60E, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (I60D, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS18) Local0 = ToString (I60D, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS19) Local0 = ToString (I60E, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (I60D, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS18) Local0 = ToString (I60D, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS19) Local0 = ToString (I60E, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (I60D, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS18) Local0 = ToString (I60D, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS19) Local0 = ToString (I60E, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (I60D, Ones, Local0) M600 (Arg0, 0x12, Local0, BS18) ToString (I60D, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS19) ToString (I60E, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (I60D, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS18) ToString (I60D, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS19) ToString (I60E, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (I60D, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS18) ToString (I60D, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS19) ToString (I60E, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (I60D, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS18) ToString (I60D, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS19) ToString (I60E, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (I60D, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS18) ToString (I60D, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS19) ToString (I60E, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (I60D, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS18) ToString (I60D, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS19) ToString (I60E, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } Method (M327, 1, NotSerialized) { Local0 = ToString (I60C, Ones) M600 (Arg0, 0x00, Local0, BS16) Local0 = ToString (I60C, 0x03) M600 (Arg0, 0x01, Local0, BS17) Local0 = ToString (I60F, Ones) M600 (Arg0, 0x02, Local0, BS1A) Local0 = ToString (I60C, AUI0) M600 (Arg0, 0x03, Local0, BS16) Local0 = ToString (I60C, AUI7) M600 (Arg0, 0x04, Local0, BS17) Local0 = ToString (I60F, AUI0) M600 (Arg0, 0x05, Local0, BS1A) If (Y078) { Local0 = ToString (I60C, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x06, Local0, BS16) Local0 = ToString (I60C, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x07, Local0, BS17) Local0 = ToString (I60F, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x08, Local0, BS1A) } Local0 = ToString (I60C, DerefOf (PAUI [0x00])) M600 (Arg0, 0x09, Local0, BS16) Local0 = ToString (I60C, DerefOf (PAUI [0x07])) M600 (Arg0, 0x0A, Local0, BS17) Local0 = ToString (I60F, DerefOf (PAUI [0x00])) M600 (Arg0, 0x0B, Local0, BS1A) /* Method returns Length parameter */ Local0 = ToString (I60C, M601 (0x01, 0x00)) M600 (Arg0, 0x0C, Local0, BS16) Local0 = ToString (I60C, M601 (0x01, 0x07)) M600 (Arg0, 0x0D, Local0, BS17) Local0 = ToString (I60F, M601 (0x01, 0x00)) M600 (Arg0, 0x0E, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (I60C, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0F, Local0, BS16) Local0 = ToString (I60C, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x10, Local0, BS17) Local0 = ToString (I60F, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x11, Local0, BS1A) } ToString (I60C, Ones, Local0) M600 (Arg0, 0x12, Local0, BS16) ToString (I60C, 0x03, Local0) M600 (Arg0, 0x13, Local0, BS17) ToString (I60F, Ones, Local0) M600 (Arg0, 0x14, Local0, BS1A) ToString (I60C, AUI0, Local0) M600 (Arg0, 0x15, Local0, BS16) ToString (I60C, AUI7, Local0) M600 (Arg0, 0x16, Local0, BS17) ToString (I60F, AUI0, Local0) M600 (Arg0, 0x17, Local0, BS1A) If (Y078) { ToString (I60C, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x18, Local0, BS16) ToString (I60C, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x19, Local0, BS17) ToString (I60F, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x1A, Local0, BS1A) } ToString (I60C, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1B, Local0, BS16) ToString (I60C, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x1C, Local0, BS17) ToString (I60F, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x1D, Local0, BS1A) /* Method returns Length parameter */ ToString (I60C, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x1E, Local0, BS16) ToString (I60C, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x1F, Local0, BS17) ToString (I60F, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x20, Local0, BS1A) /* Method returns Reference to Length parameter */ If (Y500) { ToString (I60C, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x21, Local0, BS16) ToString (I60C, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x22, Local0, BS17) ToString (I60F, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x23, Local0, BS1A) } } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ Method (M648, 1, NotSerialized) { Local0 = Mid (I604, 0x00, 0x09) M600 (Arg0, 0x00, Local0, BB1D) Local0 = Mid (I60F, 0x01, 0x08) M600 (Arg0, 0x01, Local0, BB30) Local0 = Mid (I604, AUI5, AUIB) M600 (Arg0, 0x02, Local0, BB1D) Local0 = Mid (I60F, AUI6, AUIA) M600 (Arg0, 0x03, Local0, BB30) If (Y078) { Local0 = Mid (I604, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB))) M600 (Arg0, 0x04, Local0, BB1D) Local0 = Mid (I60F, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA))) M600 (Arg0, 0x05, Local0, BB30) } Local0 = Mid (I604, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x0B])) M600 (Arg0, 0x06, Local0, BB1D) Local0 = Mid (I60F, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x0A])) M600 (Arg0, 0x07, Local0, BB30) /* Method returns Index and Length parameters */ Local0 = Mid (I604, M601 (0x01, 0x05), M601 (0x01, 0x0B)) M600 (Arg0, 0x08, Local0, BB1D) Local0 = Mid (I60F, M601 (0x01, 0x06), M601 (0x01, 0x0A)) M600 (Arg0, 0x09, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (I604, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)) ) M600 (Arg0, 0x0A, Local0, BB1D) Local0 = Mid (I60F, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)) ) M600 (Arg0, 0x0B, Local0, BB30) } Mid (I604, 0x00, 0x09, Local0) M600 (Arg0, 0x0C, Local0, BB1D) Mid (I60F, 0x01, 0x08, Local0) M600 (Arg0, 0x0D, Local0, BB30) Mid (I604, AUI5, AUIB, Local0) M600 (Arg0, 0x0E, Local0, BB1D) Mid (I60F, AUI6, AUIA, Local0) M600 (Arg0, 0x0F, Local0, BB30) If (Y078) { Mid (I604, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUIB)), Local0) M600 (Arg0, 0x10, Local0, BB1D) Mid (I60F, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUIA)), Local0) M600 (Arg0, 0x11, Local0, BB30) } Mid (I604, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x0B]), Local0) M600 (Arg0, 0x12, Local0, BB1D) Mid (I60F, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x0A]), Local0) M600 (Arg0, 0x13, Local0, BB30) /* Method returns Index and Length parameters */ Mid (I604, M601 (0x01, 0x05), M601 (0x01, 0x0B), Local0) M600 (Arg0, 0x14, Local0, BB1D) Mid (I60F, M601 (0x01, 0x06), M601 (0x01, 0x0A), Local0) M600 (Arg0, 0x15, Local0, BB30) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (I604, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x0B)), Local0) M600 (Arg0, 0x16, Local0, BB1D) Mid (I60F, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x0A)), Local0) M600 (Arg0, 0x17, Local0, BB30) } } Method (M328, 1, NotSerialized) { Local0 = Mid (I603, 0x00, 0x05) M600 (Arg0, 0x00, Local0, BB1C) Local0 = Mid (I60F, 0x01, 0x04) M600 (Arg0, 0x01, Local0, BB31) Local0 = Mid (I603, AUI5, AUI9) M600 (Arg0, 0x02, Local0, BB1C) Local0 = Mid (I60F, AUI6, AUI8) M600 (Arg0, 0x03, Local0, BB31) If (Y078) { Local0 = Mid (I603, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9))) M600 (Arg0, 0x04, Local0, BB1C) Local0 = Mid (I60F, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8))) M600 (Arg0, 0x05, Local0, BB31) } Local0 = Mid (I603, DerefOf (PAUI [0x05]), DerefOf (PAUI [ 0x09])) M600 (Arg0, 0x06, Local0, BB1C) Local0 = Mid (I60F, DerefOf (PAUI [0x06]), DerefOf (PAUI [ 0x08])) M600 (Arg0, 0x07, Local0, BB31) /* Method returns Index and Length parameters */ Local0 = Mid (I603, M601 (0x01, 0x05), M601 (0x01, 0x09)) M600 (Arg0, 0x08, Local0, BB1C) Local0 = Mid (I60F, M601 (0x01, 0x06), M601 (0x01, 0x08)) M600 (Arg0, 0x09, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Local0 = Mid (I603, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)) ) M600 (Arg0, 0x0A, Local0, BB1C) Local0 = Mid (I60F, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)) ) M600 (Arg0, 0x0B, Local0, BB31) } Mid (I603, 0x00, 0x05, Local0) M600 (Arg0, 0x0C, Local0, BB1C) Mid (I60F, 0x01, 0x04, Local0) M600 (Arg0, 0x0D, Local0, BB31) Mid (I603, AUI5, AUI9, Local0) M600 (Arg0, 0x0E, Local0, BB1C) Mid (I60F, AUI6, AUI8, Local0) M600 (Arg0, 0x0F, Local0, BB31) If (Y078) { Mid (I603, DerefOf (RefOf (AUI5)), DerefOf (RefOf (AUI9)), Local0) M600 (Arg0, 0x10, Local0, BB1C) Mid (I60F, DerefOf (RefOf (AUI6)), DerefOf (RefOf (AUI8)), Local0) M600 (Arg0, 0x11, Local0, BB31) } Mid (I603, DerefOf (PAUI [0x05]), DerefOf (PAUI [0x09]), Local0) M600 (Arg0, 0x12, Local0, BB1C) Mid (I60F, DerefOf (PAUI [0x06]), DerefOf (PAUI [0x08]), Local0) M600 (Arg0, 0x13, Local0, BB31) /* Method returns Index and Length parameters */ Mid (I603, M601 (0x01, 0x05), M601 (0x01, 0x09), Local0) M600 (Arg0, 0x14, Local0, BB1C) Mid (I60F, M601 (0x01, 0x06), M601 (0x01, 0x08), Local0) M600 (Arg0, 0x15, Local0, BB31) /* Method returns Reference to Index and Length parameters */ If (Y500) { Mid (I603, DerefOf (M601 (0x01, 0x05)), DerefOf (M601 (0x01, 0x09)), Local0) M600 (Arg0, 0x16, Local0, BB1C) Mid (I60F, DerefOf (M601 (0x01, 0x06)), DerefOf (M601 (0x01, 0x08)), Local0) M600 (Arg0, 0x17, Local0, BB31) } } /* Method(m649, 1) */ /* Method(m329, 1) */ /* Method(m64a, 1) */ /* Method(m32a, 1) */ /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = S601-- M600 (Arg0, 0x00, Local0, BI12) Local0 = S605-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = S601++ M600 (Arg0, 0x02, Local0, BI13) Local0 = S605++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (S601) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (S605) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (S601) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (S605) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~S601, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~S605, Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32B, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = S601-- M600 (Arg0, 0x00, Local0, BI12) Local0 = S604-- M600 (Arg0, 0x01, Local0, BI14) } /* Increment */ If (Y501) { Local0 = S601++ M600 (Arg0, 0x02, Local0, BI13) Local0 = S604++ M600 (Arg0, 0x03, Local0, BI15) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (S601) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (S604) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (S601) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (S604) M600 (Arg0, 0x07, Local0, 0x02) /* Not */ Store (~S601, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~S604, Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Method (M000, 1, NotSerialized) { Local0 = !S600 M600 (Arg0, 0x00, Local0, Ones) Local0 = !S601 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !S605 M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !S604 M600 (Arg0, 0x03, Local0, Zero) } } /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (S601) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (S615) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (S601, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (S615, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (S601) M600 (Arg0, 0x04, Local0, 0x0801) /* Error of iASL on constant folding Store(ToBCD(s616), Local0) m600(arg0, 5, Local0, 0x3789012345678901) */ ToBCD (S601, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (S616, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32C, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (S601) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (S617) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (S601, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (S617, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (S601) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (S618) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (S601, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (S618, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M001, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((S601 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((S601 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((S601 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((S601 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (S601 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (S601 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (S601 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (S601 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (S601 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + S601), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + S601), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + S601), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + S601), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + S601), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + S601), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + S601), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + S601), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + S601), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + S601), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + S601), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + S601), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + S601) /* \S601 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + S601) /* \S601 */ M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + S601) /* \S601 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + S601) /* \S601 */ M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + S601) /* \S601 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + S601) /* \S601 */ M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + S601) /* \S601 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + S601) /* \S601 */ M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + S601) /* \S601 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + S601) /* \S601 */ M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + S601) /* \S601 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + S601) /* \S601 */ M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M002, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((S605 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((S605 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((S605 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((S605 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (S605 + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (S605 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (S605 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (S605 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (S605 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + S605), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + S605), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + S605), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + S605), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + S605), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + S605), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + S605), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + S605), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + S605), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + S605) /* \S605 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + S605) /* \S605 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + S605) /* \S605 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + S605) /* \S605 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + S605) /* \S605 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + S605) /* \S605 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + S605) /* \S605 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + S605) /* \S605 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + S605) /* \S605 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + S605) /* \S605 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + S605) /* \S605 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + S605) /* \S605 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((S601 + S605), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((S605 + S601), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (S601 + S605) /* \S605 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (S605 + S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M003, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FF) Store ((S604 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FF) If (Y078) { Store ((S604 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FF) } Store ((S604 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((S604 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FF) } Local0 = (S604 + 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 + 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FF) Local0 = (S604 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FF) If (Y078) { Local0 = (S604 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FF) } Local0 = (S604 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (S604 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FF) } /* Conversion of the second operand */ Store ((0x00 + S604), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0x01 + S604), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FF) Store ((AUI5 + S604), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUI6 + S604), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + S604), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUI6)) + S604), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FF) } Store ((DerefOf (PAUI [0x05]) + S604), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x06]) + S604), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + S604), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x06) + S604), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + S604), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + S604), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FF) } Local0 = (0x00 + S604) /* \S604 */ M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0x01 + S604) /* \S604 */ M600 (Arg0, 0x25, Local0, 0xC179B3FF) Local0 = (AUI5 + S604) /* \S604 */ M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUI6 + S604) /* \S604 */ M600 (Arg0, 0x27, Local0, 0xC179B3FF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + S604) /* \S604 */ M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUI6)) + S604) /* \S604 */ M600 (Arg0, 0x29, Local0, 0xC179B3FF) } Local0 = (DerefOf (PAUI [0x05]) + S604) /* \S604 */ M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x06]) + S604) /* \S604 */ M600 (Arg0, 0x2B, Local0, 0xC179B3FF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + S604) /* \S604 */ M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x06) + S604) /* \S604 */ M600 (Arg0, 0x2D, Local0, 0xC179B3FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + S604) /* \S604 */ M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + S604) /* \S604 */ M600 (Arg0, 0x2F, Local0, 0xC179B3FF) } /* Conversion of the both operands */ Store ((S601 + S604), Local0) M600 (Arg0, 0x30, Local0, 0xC179B71F) Store ((S604 + S601), Local0) M600 (Arg0, 0x31, Local0, 0xC179B71F) Local0 = (S601 + S604) /* \S604 */ M600 (Arg0, 0x32, Local0, 0xC179B71F) Local0 = (S604 + S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0xC179B71F) } /* And, common 32-bit/64-bit test */ Method (M004, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S601 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((S601 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S601 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((S601 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S601 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((S601 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S601 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((S601 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S601 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S601 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (S601 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S601 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (S601 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S601 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (S601 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S601 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (S601 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S601 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (S601 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S601 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S601 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & S601), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & S601), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & S601), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & S601), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & S601), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & S601), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & S601), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & S601), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & S601), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & S601), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & S601), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & S601), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & S601) /* \S601 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & S601) /* \S601 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & S601) /* \S601 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & S601) /* \S601 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & S601) /* \S601 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & S601) /* \S601 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & S601) /* \S601 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & S601) /* \S601 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & S601) /* \S601 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & S601) /* \S601 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & S601) /* \S601 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & S601) /* \S601 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M005, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S605 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((S605 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S605 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((S605 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S605 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((S605 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S605 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((S605 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S605 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S605 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (S605 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S605 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (S605 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S605 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (S605 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S605 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (S605 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S605 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (S605 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S605 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S605 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & S605), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & S605), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & S605), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & S605), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & S605), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & S605), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & S605), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & S605), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & S605), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & S605) /* \S605 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & S605) /* \S605 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & S605) /* \S605 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & S605) /* \S605 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & S605) /* \S605 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & S605) /* \S605 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & S605) /* \S605 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & S605) /* \S605 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & S605) /* \S605 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & S605) /* \S605 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & S605) /* \S605 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & S605) /* \S605 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((S601 & S605), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((S605 & S601), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (S601 & S605) /* \S605 */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (S605 & S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M006, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S604 & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((S604 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S604 & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((S604 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S604 & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((S604 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S604 & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((S604 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S604 & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S604 & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (S604 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S604 & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (S604 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S604 & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (S604 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S604 & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (S604 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S604 & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (S604 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S604 & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S604 & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 & S604), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & S604), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 & S604), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & S604), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & S604), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & S604), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) & S604), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & S604), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & S604), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & S604), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & S604), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & S604), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 & S604) /* \S604 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & S604) /* \S604 */ M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 & S604) /* \S604 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & S604) /* \S604 */ M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & S604) /* \S604 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & S604) /* \S604 */ M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) & S604) /* \S604 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & S604) /* \S604 */ M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & S604) /* \S604 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & S604) /* \S604 */ M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & S604) /* \S604 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & S604) /* \S604 */ M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((S601 & S604), Local0) M600 (Arg0, 0x30, Local0, 0x0320) Store ((S604 & S601), Local0) M600 (Arg0, 0x31, Local0, 0x0320) Local0 = (S601 & S604) /* \S604 */ M600 (Arg0, 0x32, Local0, 0x0320) Local0 = (S604 & S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0x0320) } /* Divide, common 32-bit/64-bit test */ Method (M007, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S601 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S601 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S601 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S601 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (S601, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (S601, 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (S601, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (S601, AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (S601, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (S601, DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (S601, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (S601, DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (S601, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (S601, M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (S601, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (S601, DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / S601), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / S601), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / S601), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / S601), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / S601), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / S601), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / S601), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / S601), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / S601), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / S601), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / S601), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / S601), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, S601, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, S601, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, S601, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, S601, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), S601, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), S601, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), S601, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), S601, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), S601, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), S601, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), S601, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), S601, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M008, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S605 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S605 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S605 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S605 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (S605, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (S605, 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (S605, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (S605, AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (S605, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (S605, DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (S605, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (S605, DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (S605, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (S605, M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (S605, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (S605, DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / S605), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / S605), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / S605), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / S605), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / S605), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / S605), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / S605), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / S605), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / S605), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / S605), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / S605), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / S605), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, S605, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, S605, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, S605, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, S605, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), S605, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), S605, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), S605, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), S605, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), S605, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), S605, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), S605, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), S605, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((S601 / S605), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((S605 / S601), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (S601, S605, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (S605, S601, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M009, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 / 0xC179B3FE), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S604 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 / AUI3), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S604 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 / DerefOf (RefOf (AUI3))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S604 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 / DerefOf (PAUI [0x03])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S604 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 / M601 (0x01, 0x03)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 / DerefOf (M602 (0x01, 0x03, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (S604, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Divide (S604, 0xC179B3FE, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (S604, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Divide (S604, AUI3, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (S604, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Divide (S604, DerefOf (RefOf (AUI3)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (S604, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Divide (S604, DerefOf (PAUI [0x03]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (S604, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Divide (S604, M601 (0x01, 0x03), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (S604, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Divide (S604, DerefOf (M602 (0x01, 0x03, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / S604), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE / S604), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / S604), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 / S604), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / S604), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) / S604), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / S604), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) / S604), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / S604), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) / S604), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / S604), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) / S604), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, S604, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xC179B3FE, S604, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, S604, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI3, S604, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), S604, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI3)), S604, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), S604, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x03]), S604, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), S604, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x03), S604, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), S604, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x03, 0x01)), S604, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((S601 / S604), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((S604 / S601), Local0) M600 (Arg0, 0x31, Local0, 0x003DD5B7) Divide (S601, S604, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (S604, S601, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x003DD5B7) } /* Mod, common 32-bit/64-bit test */ Method (M00A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S601 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S601 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S601 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S601 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (S601 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (S601 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (S601 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (S601 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (S601 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % S601), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % S601), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % S601), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % S601), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % S601), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % S601), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % S601), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % S601), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % S601), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % S601), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % S601), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % S601), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % S601) /* \S601 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % S601) /* \S601 */ M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % S601) /* \S601 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % S601) /* \S601 */ M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % S601) /* \S601 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % S601) /* \S601 */ M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % S601) /* \S601 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % S601) /* \S601 */ M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % S601) /* \S601 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % S601) /* \S601 */ M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % S601) /* \S601 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % S601) /* \S601 */ M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M00B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S605 % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((S605 % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S605 % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((S605 % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S605 % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (S605 % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (S605 % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (S605 % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (S605 % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (S605 % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % S605), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % S605), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % S605), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % S605), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % S605), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % S605), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % S605), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % S605), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % S605), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % S605) /* \S605 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % S605) /* \S605 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % S605) /* \S605 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % S605) /* \S605 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % S605) /* \S605 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % S605) /* \S605 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % S605) /* \S605 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % S605) /* \S605 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % S605) /* \S605 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % S605) /* \S605 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % S605) /* \S605 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % S605) /* \S605 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((S601 % S605), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((S605 % S601), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (S601 % S605) /* \S605 */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (S605 % S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M00C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 % 0xC179B3FF), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 % 0xC179B3FD), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((S604 % AUIC), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 % AUIE), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((S604 % DerefOf (RefOf (AUIC))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 % DerefOf (RefOf (AUIE))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((S604 % DerefOf (PAUI [0x0C])), Local0) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Store ((S604 % DerefOf (PAUI [0x0E])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((S604 % M601 (0x01, 0x0C)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 % M601 (0x01, 0x0E)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 % DerefOf (M602 (0x01, 0x0C, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 % DerefOf (M602 (0x01, 0x0E, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (S604 % 0xC179B3FF) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 % 0xC179B3FD) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (S604 % AUIC) /* \AUIC */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 % AUIE) /* \AUIE */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (S604 % DerefOf (RefOf (AUIC))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 % DerefOf (RefOf (AUIE))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (S604 % DerefOf (PAUI [0x0C])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 % DerefOf (PAUI [0x0E])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (S604 % M601 (0x01, 0x0C)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 % M601 (0x01, 0x0E)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 % DerefOf (M602 (0x01, 0x0C, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 % DerefOf (M602 (0x01, 0x0E, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xC179B3FF % S604), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xC179B3FD % S604), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FD) Store ((AUIC % S604), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIE % S604), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FD) If (Y078) { Store ((DerefOf (RefOf (AUIC)) % S604), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIE)) % S604), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FD) } Store ((DerefOf (PAUI [0x0C]) % S604), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0E]) % S604), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((M601 (0x01, 0x0C) % S604), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0E) % S604), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0C, 0x01)) % S604), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0E, 0x01)) % S604), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FD) } Local0 = (0xC179B3FF % S604) /* \S604 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xC179B3FD % S604) /* \S604 */ M600 (Arg0, 0x25, Local0, 0xC179B3FD) Local0 = (AUIC % S604) /* \S604 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIE % S604) /* \S604 */ M600 (Arg0, 0x27, Local0, 0xC179B3FD) If (Y078) { Local0 = (DerefOf (RefOf (AUIC)) % S604) /* \S604 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIE)) % S604) /* \S604 */ M600 (Arg0, 0x29, Local0, 0xC179B3FD) } Local0 = (DerefOf (PAUI [0x0C]) % S604) /* \S604 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0E]) % S604) /* \S604 */ M600 (Arg0, 0x2B, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0C) % S604) /* \S604 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0E) % S604) /* \S604 */ M600 (Arg0, 0x2D, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) % S604) /* \S604 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) % S604) /* \S604 */ M600 (Arg0, 0x2F, Local0, 0xC179B3FD) } /* Conversion of the both operands */ Store ((S601 % S604), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((S604 % S601), Local0) M600 (Arg0, 0x31, Local0, 0x0267) Local0 = (S601 % S604) /* \S604 */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (S604 % S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0x0267) } /* Multiply, common 32-bit/64-bit test */ Method (M00D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S601 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((S601 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S601 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((S601 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S601 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((S601 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S601 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((S601 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S601 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S601 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (S601 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S601 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (S601 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S601 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (S601 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S601 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (S601 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S601 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (S601 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S601 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S601 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * S601), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * S601), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * S601), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * S601), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * S601), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * S601), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * S601), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * S601), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * S601), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * S601), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * S601), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * S601), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * S601) /* \S601 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * S601) /* \S601 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * S601) /* \S601 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * S601) /* \S601 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * S601) /* \S601 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * S601) /* \S601 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * S601) /* \S601 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * S601) /* \S601 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * S601) /* \S601 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * S601) /* \S601 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * S601) /* \S601 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * S601) /* \S601 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M00E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S605 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((S605 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S605 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((S605 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S605 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((S605 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S605 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((S605 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S605 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S605 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (S605 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S605 * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (S605 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S605 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (S605 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S605 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (S605 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S605 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (S605 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S605 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S605 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * S605), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * S605), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * S605), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * S605), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * S605), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * S605), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * S605), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * S605), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * S605), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * S605) /* \S605 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * S605) /* \S605 */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * S605) /* \S605 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * S605) /* \S605 */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * S605) /* \S605 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * S605) /* \S605 */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * S605) /* \S605 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * S605) /* \S605 */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * S605) /* \S605 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * S605) /* \S605 */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * S605) /* \S605 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * S605) /* \S605 */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((S601 * S605), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((S605 * S601), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (S601 * S605) /* \S605 */ M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (S605 * S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M00F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((S604 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FE) Store ((S604 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((S604 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FE) If (Y078) { Store ((S604 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((S604 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FE) } Store ((S604 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((S604 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((S604 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((S604 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((S604 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FE) } Local0 = (S604 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (S604 * 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FE) Local0 = (S604 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (S604 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FE) If (Y078) { Local0 = (S604 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (S604 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FE) } Local0 = (S604 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (S604 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (S604 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (S604 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (S604 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FE) } /* Conversion of the second operand */ Store ((0x00 * S604), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * S604), Local0) M600 (Arg0, 0x19, Local0, 0xC179B3FE) Store ((AUI5 * S604), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * S604), Local0) M600 (Arg0, 0x1B, Local0, 0xC179B3FE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * S604), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * S604), Local0) M600 (Arg0, 0x1D, Local0, 0xC179B3FE) } Store ((DerefOf (PAUI [0x05]) * S604), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * S604), Local0) M600 (Arg0, 0x1F, Local0, 0xC179B3FE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * S604), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * S604), Local0) M600 (Arg0, 0x21, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * S604), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * S604), Local0) M600 (Arg0, 0x23, Local0, 0xC179B3FE) } Local0 = (0x00 * S604) /* \S604 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * S604) /* \S604 */ M600 (Arg0, 0x25, Local0, 0xC179B3FE) Local0 = (AUI5 * S604) /* \S604 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * S604) /* \S604 */ M600 (Arg0, 0x27, Local0, 0xC179B3FE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * S604) /* \S604 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * S604) /* \S604 */ M600 (Arg0, 0x29, Local0, 0xC179B3FE) } Local0 = (DerefOf (PAUI [0x05]) * S604) /* \S604 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * S604) /* \S604 */ M600 (Arg0, 0x2B, Local0, 0xC179B3FE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * S604) /* \S604 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * S604) /* \S604 */ M600 (Arg0, 0x2D, Local0, 0xC179B3FE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * S604) /* \S604 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * S604) /* \S604 */ M600 (Arg0, 0x2F, Local0, 0xC179B3FE) } /* Conversion of the both operands */ Store ((S601 * S604), Local0) M600 (Arg0, 0x30, Local0, 0x5DCC2DBE) Store ((S604 * S601), Local0) M600 (Arg0, 0x31, Local0, 0x5DCC2DBE) Local0 = (S601 * S604) /* \S604 */ M600 (Arg0, 0x32, Local0, 0x5DCC2DBE) Local0 = (S604 * S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0x5DCC2DBE) } /* NAnd, common 32-bit/64-bit test */ Method (M010, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (S601, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (S601, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (S601, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (S601, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (S601, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (S601, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S601, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (S601, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (S601, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (S601, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (S601, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (S601, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (S601, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S601, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, S601) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, S601) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, S601) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, S601) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), S601) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), S601) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), S601) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), S601) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), S601) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), S601) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S601) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), S601) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, S601, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, S601, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, S601, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, S601, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), S601, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), S601, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), S601, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), S601, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), S601, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), S601, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S601, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), S601, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M011, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (S605, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (S605, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (S605, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (S605, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (S605, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (S605, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (S605, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (S605, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (S605, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (S605, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (S605, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (S605, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (S605, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (S605, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, S605) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, S605) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, S605) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, S605) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), S605) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), S605) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), S605) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), S605) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), S605) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), S605) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S605) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), S605) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, S605, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, S605, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, S605, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, S605, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), S605, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), S605, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), S605, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), S605, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), S605, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), S605, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S605, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), S605, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (S601, S605) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (S605, S601) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (S601, S605, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (S605, S601, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M012, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (S604, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x3E864C01) Local0 = NAnd (S604, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, AUII) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (S604, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Local0 = NAnd (S604, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (S604, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (S604, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (S604, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } NAnd (S604, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (S604, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x3E864C01) NAnd (S604, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (S604, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { NAnd (S604, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (S604, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x3E864C01) } NAnd (S604, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (S604, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (S604, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (S604, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (S604, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (S604, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Local0 = NAnd (0x00, S604) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, S604) M600 (Arg0, 0x19, Local0, 0x3E864C01) Local0 = NAnd (AUI5, S604) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, S604) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), S604) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), S604) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Local0 = NAnd (DerefOf (PAUI [0x05]), S604) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), S604) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), S604) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), S604) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S604) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), S604) M600 (Arg0, 0x23, Local0, 0x3E864C01) } NAnd (0x00, S604, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, S604, Local0) M600 (Arg0, 0x25, Local0, 0x3E864C01) NAnd (AUI5, S604, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, S604, Local0) M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), S604, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), S604, Local0) M600 (Arg0, 0x29, Local0, 0x3E864C01) } NAnd (DerefOf (PAUI [0x05]), S604, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), S604, Local0) M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), S604, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), S604, Local0) M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), S604, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), S604, Local0) M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Local0 = NAnd (S601, S604) M600 (Arg0, 0x30, Local0, 0xFFFFFCDF) Local0 = NAnd (S604, S601) M600 (Arg0, 0x31, Local0, 0xFFFFFCDF) NAnd (S601, S604, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFCDF) NAnd (S604, S601, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFCDF) } /* NOr, common 32-bit/64-bit test */ Method (M013, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (S601, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (S601, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (S601, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (S601, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (S601, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (S601, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (S601, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (S601, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (S601, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (S601, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (S601, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (S601, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (S601, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (S601, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, S601) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, S601) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, S601) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, S601) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), S601) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), S601) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), S601) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), S601) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), S601) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), S601) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S601) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), S601) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, S601, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, S601, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, S601, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, S601, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), S601, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), S601, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), S601, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), S601, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), S601, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), S601, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S601, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), S601, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M014, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (S605, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (S605, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (S605, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (S605, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (S605, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (S605, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (S605, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (S605, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (S605, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (S605, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (S605, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (S605, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (S605, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (S605, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (S605, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (S605, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (S605, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (S605, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (S605, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, S605) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, S605) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, S605) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, S605) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), S605) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), S605) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), S605) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), S605) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), S605) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), S605) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S605) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), S605) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, S605, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, S605, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, S605, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, S605, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), S605, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), S605, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), S605, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), S605, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), S605, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), S605, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S605, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), S605, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (S601, S605) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (S605, S601) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (S601, S605, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (S605, S601, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M015, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (S604, 0x00) M600 (Arg0, 0x00, Local0, 0x3E864C01) Local0 = NOr (S604, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (S604, AUI5) M600 (Arg0, 0x02, Local0, 0x3E864C01) Local0 = NOr (S604, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (S604, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x3E864C01) Local0 = NOr (S604, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (S604, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x3E864C01) Local0 = NOr (S604, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (S604, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x3E864C01) Local0 = NOr (S604, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (S604, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x3E864C01) Local0 = NOr (S604, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (S604, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x3E864C01) NOr (S604, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (S604, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x3E864C01) NOr (S604, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (S604, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x3E864C01) NOr (S604, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (S604, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x3E864C01) NOr (S604, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (S604, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x3E864C01) NOr (S604, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (S604, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x3E864C01) NOr (S604, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, S604) M600 (Arg0, 0x18, Local0, 0x3E864C01) Local0 = NOr (0xFFFFFFFF, S604) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, S604) M600 (Arg0, 0x1A, Local0, 0x3E864C01) Local0 = NOr (AUII, S604) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), S604) M600 (Arg0, 0x1C, Local0, 0x3E864C01) Local0 = NOr (DerefOf (RefOf (AUII)), S604) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), S604) M600 (Arg0, 0x1E, Local0, 0x3E864C01) Local0 = NOr (DerefOf (PAUI [0x12]), S604) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), S604) M600 (Arg0, 0x20, Local0, 0x3E864C01) Local0 = NOr (M601 (0x01, 0x12), S604) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S604) M600 (Arg0, 0x22, Local0, 0x3E864C01) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), S604) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, S604, Local0) M600 (Arg0, 0x24, Local0, 0x3E864C01) NOr (0xFFFFFFFF, S604, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, S604, Local0) M600 (Arg0, 0x26, Local0, 0x3E864C01) NOr (AUII, S604, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), S604, Local0) M600 (Arg0, 0x28, Local0, 0x3E864C01) NOr (DerefOf (RefOf (AUII)), S604, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), S604, Local0) M600 (Arg0, 0x2A, Local0, 0x3E864C01) NOr (DerefOf (PAUI [0x12]), S604, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), S604, Local0) M600 (Arg0, 0x2C, Local0, 0x3E864C01) NOr (M601 (0x01, 0x12), S604, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), S604, Local0) M600 (Arg0, 0x2E, Local0, 0x3E864C01) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), S604, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (S601, S604) M600 (Arg0, 0x30, Local0, 0x3E864C00) Local0 = NOr (S604, S601) M600 (Arg0, 0x31, Local0, 0x3E864C00) NOr (S601, S604, Local0) M600 (Arg0, 0x32, Local0, 0x3E864C00) NOr (S604, S601, Local0) M600 (Arg0, 0x33, Local0, 0x3E864C00) } /* Or, common 32-bit/64-bit test */ Method (M016, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((S601 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((S601 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((S601 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((S601 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (S601 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (S601 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (S601 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (S601 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (S601 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | S601), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | S601), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | S601), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | S601), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | S601), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | S601), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | S601), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | S601), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | S601), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | S601), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | S601), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | S601), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | S601) /* \S601 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | S601) /* \S601 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | S601) /* \S601 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | S601) /* \S601 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | S601) /* \S601 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | S601) /* \S601 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | S601) /* \S601 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | S601) /* \S601 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | S601) /* \S601 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | S601) /* \S601 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | S601) /* \S601 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | S601) /* \S601 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M017, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((S605 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((S605 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((S605 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((S605 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (S605 | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (S605 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (S605 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (S605 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (S605 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | S605), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | S605), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | S605), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | S605), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | S605), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | S605), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | S605), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | S605), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | S605), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | S605), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | S605), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | S605), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | S605) /* \S605 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | S605) /* \S605 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | S605) /* \S605 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | S605) /* \S605 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | S605) /* \S605 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | S605) /* \S605 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | S605) /* \S605 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | S605) /* \S605 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | S605) /* \S605 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | S605) /* \S605 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | S605) /* \S605 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | S605) /* \S605 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((S601 | S605), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((S605 | S601), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (S601 | S605) /* \S605 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (S605 | S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M018, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((S604 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((S604 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((S604 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((S604 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (S604 | 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (S604 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (S604 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (S604 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (S604 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | S604), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF | S604), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | S604), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII | S604), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | S604), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) | S604), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | S604), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) | S604), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | S604), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) | S604), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | S604), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | S604), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | S604) /* \S604 */ M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF | S604) /* \S604 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | S604) /* \S604 */ M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII | S604) /* \S604 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | S604) /* \S604 */ M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) | S604) /* \S604 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | S604) /* \S604 */ M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) | S604) /* \S604 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | S604) /* \S604 */ M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) | S604) /* \S604 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | S604) /* \S604 */ M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | S604) /* \S604 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((S601 | S604), Local0) M600 (Arg0, 0x30, Local0, 0xC179B3FF) Store ((S604 | S601), Local0) M600 (Arg0, 0x31, Local0, 0xC179B3FF) Local0 = (S601 | S604) /* \S604 */ M600 (Arg0, 0x32, Local0, 0xC179B3FF) Local0 = (S604 | S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0xC179B3FF) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M019, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((S601 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((S601 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((S601 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((S601 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (S601 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (S601 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (S601 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (S601 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (S601 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << S614), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << S614), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << S614), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << S614), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << S614), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << S614), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << S614) /* \S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << S614) /* \S614 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << S614) /* \S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << S614) /* \S614 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << S614) /* \S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << S614) /* \S614 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << S614) /* \S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << S614) /* \S614 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << S614) /* \S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << S614) /* \S614 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << S614) /* \S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << S614) /* \S614 */ M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M01A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((S605 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((S605 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((S605 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((S605 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (S605 << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (S605 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (S605 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (S605 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (S605 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << S614), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << S614), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << S614), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << S614), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << S614), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << S614), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << S614) /* \S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << S614) /* \S614 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << S614) /* \S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << S614) /* \S614 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << S614) /* \S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << S614) /* \S614 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << S614) /* \S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << S614) /* \S614 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << S614) /* \S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << S614) /* \S614 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << S614) /* \S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << S614) /* \S614 */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((S601 << S614), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((S605 << S614), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (S601 << S614) /* \S614 */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (S605 << S614) /* \S614 */ M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M01B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x82F367FC) Store ((S604 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x82F367FC) If (Y078) { Store ((S604 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x82F367FC) } Store ((S604 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x82F367FC) /* Method returns Integer */ Store ((S604 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x82F367FC) } Local0 = (S604 << 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 << 0x01) M600 (Arg0, 0x0D, Local0, 0x82F367FC) Local0 = (S604 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x82F367FC) If (Y078) { Local0 = (S604 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x82F367FC) } Local0 = (S604 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x82F367FC) /* Method returns Integer */ Local0 = (S604 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x82F367FC) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x82F367FC) } /* Conversion of the second operand */ Store ((0x00 << S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << S614), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << S614), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << S614), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << S614), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << S614), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << S614), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << S614) /* \S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << S614) /* \S614 */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << S614) /* \S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << S614) /* \S614 */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << S614) /* \S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << S614) /* \S614 */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << S614) /* \S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << S614) /* \S614 */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << S614) /* \S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << S614) /* \S614 */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << S614) /* \S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << S614) /* \S614 */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((S601 << S614), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((S604 << S614), Local0) M600 (Arg0, 0x31, Local0, 0xCD9FF000) Local0 = (S601 << S614) /* \S614 */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (S604 << S614) /* \S614 */ M600 (Arg0, 0x33, Local0, 0xCD9FF000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M01C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((S601 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((S601 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((S601 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((S601 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (S601 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (S601 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (S601 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (S601 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (S601 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> S614), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> S614), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> S614), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> S614), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> S614), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> S614), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> S614) /* \S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> S614) /* \S614 */ M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> S614) /* \S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> S614) /* \S614 */ M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> S614) /* \S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> S614) /* \S614 */ M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> S614) /* \S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> S614) /* \S614 */ M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> S614) /* \S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> S614) /* \S614 */ M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> S614) /* \S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> S614) /* \S614 */ M600 (Arg0, 0x2F, Local0, 0x00182F36) } } /* ShiftRight, 64-bit */ Method (M01D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((S605 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((S605 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((S605 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((S605 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (S605 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (S605 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (S605 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (S605 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (S605 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> S614), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> S614), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> S614), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> S614), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> S614), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> S614), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> S614) /* \S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> S614) /* \S614 */ M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> S614) /* \S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> S614) /* \S614 */ M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> S614) /* \S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> S614) /* \S614 */ M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> S614) /* \S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> S614) /* \S614 */ M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> S614) /* \S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> S614) /* \S614 */ M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> S614) /* \S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> S614) /* \S614 */ M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((S601 >> S614), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((S605 >> S614), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (S601 >> S614) /* \S614 */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (S605 >> S614) /* \S614 */ M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M01E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x60BCD9FF) Store ((S604 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x60BCD9FF) If (Y078) { Store ((S604 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x60BCD9FF) } Store ((S604 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x60BCD9FF) /* Method returns Integer */ Store ((S604 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x60BCD9FF) } Local0 = (S604 >> 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x60BCD9FF) Local0 = (S604 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x60BCD9FF) If (Y078) { Local0 = (S604 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x60BCD9FF) } Local0 = (S604 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x60BCD9FF) /* Method returns Integer */ Local0 = (S604 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x60BCD9FF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x60BCD9FF) } /* Conversion of the second operand */ Store ((0x0321 >> S614), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xC179B3FE >> S614), Local0) M600 (Arg0, 0x19, Local0, 0x00182F36) Store ((AUI1 >> S614), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI3 >> S614), Local0) M600 (Arg0, 0x1B, Local0, 0x00182F36) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> S614), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI3)) >> S614), Local0) M600 (Arg0, 0x1D, Local0, 0x00182F36) } Store ((DerefOf (PAUI [0x01]) >> S614), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x03]) >> S614), Local0) M600 (Arg0, 0x1F, Local0, 0x00182F36) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> S614), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x03) >> S614), Local0) M600 (Arg0, 0x21, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> S614), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x03, 0x01)) >> S614), Local0) M600 (Arg0, 0x23, Local0, 0x00182F36) } Local0 = (0x0321 >> S614) /* \S614 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xC179B3FE >> S614) /* \S614 */ M600 (Arg0, 0x25, Local0, 0x00182F36) Local0 = (AUI1 >> S614) /* \S614 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI3 >> S614) /* \S614 */ M600 (Arg0, 0x27, Local0, 0x00182F36) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> S614) /* \S614 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI3)) >> S614) /* \S614 */ M600 (Arg0, 0x29, Local0, 0x00182F36) } Local0 = (DerefOf (PAUI [0x01]) >> S614) /* \S614 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x03]) >> S614) /* \S614 */ M600 (Arg0, 0x2B, Local0, 0x00182F36) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> S614) /* \S614 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x03) >> S614) /* \S614 */ M600 (Arg0, 0x2D, Local0, 0x00182F36) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> S614) /* \S614 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >> S614) /* \S614 */ M600 (Arg0, 0x2F, Local0, 0x00182F36) } /* Conversion of the both operands */ Store ((S601 >> S614), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((S604 >> S614), Local0) M600 (Arg0, 0x31, Local0, 0x00182F36) Local0 = (S601 >> S614) /* \S614 */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (S604 >> S614) /* \S614 */ M600 (Arg0, 0x33, Local0, 0x00182F36) } /* Subtract, common 32-bit/64-bit test */ Method (M01F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((S601 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((S601 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((S601 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((S601 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (S601 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (S601 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (S601 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (S601 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (S601 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - S601), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - S601), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - S601), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - S601), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - S601), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - S601), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - S601), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - S601), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - S601), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - S601), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - S601), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - S601), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - S601) /* \S601 */ M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - S601) /* \S601 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - S601) /* \S601 */ M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - S601) /* \S601 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - S601) /* \S601 */ M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - S601) /* \S601 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - S601) /* \S601 */ M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - S601) /* \S601 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - S601) /* \S601 */ M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - S601) /* \S601 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - S601) /* \S601 */ M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - S601) /* \S601 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M020, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((S605 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((S605 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((S605 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((S605 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (S605 - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (S605 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (S605 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (S605 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (S605 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - S605), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - S605), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - S605), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - S605), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - S605), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - S605), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - S605), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - S605), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - S605), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - S605), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - S605), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - S605), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - S605) /* \S605 */ M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - S605) /* \S605 */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - S605) /* \S605 */ M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - S605) /* \S605 */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - S605) /* \S605 */ M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - S605) /* \S605 */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - S605) /* \S605 */ M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - S605) /* \S605 */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - S605) /* \S605 */ M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - S605) /* \S605 */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - S605) /* \S605 */ M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - S605) /* \S605 */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((S601 - S605), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((S605 - S601), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (S601 - S605) /* \S605 */ M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (S605 - S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M021, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xC179B3FD) Store ((S604 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xC179B3FD) If (Y078) { Store ((S604 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xC179B3FD) } Store ((S604 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xC179B3FD) /* Method returns Integer */ Store ((S604 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xC179B3FD) } Local0 = (S604 - 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 - 0x01) M600 (Arg0, 0x0D, Local0, 0xC179B3FD) Local0 = (S604 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xC179B3FD) If (Y078) { Local0 = (S604 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xC179B3FD) } Local0 = (S604 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xC179B3FD) /* Method returns Integer */ Local0 = (S604 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xC179B3FD) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xC179B3FD) } /* Conversion of the second operand */ Store ((0x00 - S604), Local0) M600 (Arg0, 0x18, Local0, 0x3E864C02) Store ((0x01 - S604), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C03) Store ((AUI5 - S604), Local0) M600 (Arg0, 0x1A, Local0, 0x3E864C02) Store ((AUI6 - S604), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C03) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - S604), Local0) M600 (Arg0, 0x1C, Local0, 0x3E864C02) Store ((DerefOf (RefOf (AUI6)) - S604), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C03) } Store ((DerefOf (PAUI [0x05]) - S604), Local0) M600 (Arg0, 0x1E, Local0, 0x3E864C02) Store ((DerefOf (PAUI [0x06]) - S604), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C03) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - S604), Local0) M600 (Arg0, 0x20, Local0, 0x3E864C02) Store ((M601 (0x01, 0x06) - S604), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - S604), Local0) M600 (Arg0, 0x22, Local0, 0x3E864C02) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - S604), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C03) } Local0 = (0x00 - S604) /* \S604 */ M600 (Arg0, 0x24, Local0, 0x3E864C02) Local0 = (0x01 - S604) /* \S604 */ M600 (Arg0, 0x25, Local0, 0x3E864C03) Local0 = (AUI5 - S604) /* \S604 */ M600 (Arg0, 0x26, Local0, 0x3E864C02) Local0 = (AUI6 - S604) /* \S604 */ M600 (Arg0, 0x27, Local0, 0x3E864C03) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - S604) /* \S604 */ M600 (Arg0, 0x28, Local0, 0x3E864C02) Local0 = (DerefOf (RefOf (AUI6)) - S604) /* \S604 */ M600 (Arg0, 0x29, Local0, 0x3E864C03) } Local0 = (DerefOf (PAUI [0x05]) - S604) /* \S604 */ M600 (Arg0, 0x2A, Local0, 0x3E864C02) Local0 = (DerefOf (PAUI [0x06]) - S604) /* \S604 */ M600 (Arg0, 0x2B, Local0, 0x3E864C03) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - S604) /* \S604 */ M600 (Arg0, 0x2C, Local0, 0x3E864C02) Local0 = (M601 (0x01, 0x06) - S604) /* \S604 */ M600 (Arg0, 0x2D, Local0, 0x3E864C03) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - S604) /* \S604 */ M600 (Arg0, 0x2E, Local0, 0x3E864C02) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - S604) /* \S604 */ M600 (Arg0, 0x2F, Local0, 0x3E864C03) } /* Conversion of the both operands */ Store ((S601 - S604), Local0) M600 (Arg0, 0x30, Local0, 0x3E864F23) Store ((S604 - S601), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DD) Local0 = (S601 - S604) /* \S604 */ M600 (Arg0, 0x32, Local0, 0x3E864F23) Local0 = (S604 - S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0xC179B0DD) } /* XOr, common 32-bit/64-bit test */ Method (M022, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S601 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((S601 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((S601 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((S601 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((S601 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((S601 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((S601 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((S601 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((S601 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((S601 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((S601 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((S601 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (S601 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (S601 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (S601 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (S601 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (S601 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (S601 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (S601 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (S601 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (S601 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (S601 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (S601 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ S601), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ S601), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ S601), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ S601), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ S601), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ S601), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ S601), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ S601), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ S601), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ S601), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ S601), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ S601), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ S601) /* \S601 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ S601) /* \S601 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ S601) /* \S601 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ S601) /* \S601 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ S601) /* \S601 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ S601) /* \S601 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ S601) /* \S601 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ S601) /* \S601 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ S601) /* \S601 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ S601) /* \S601 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ S601) /* \S601 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ S601) /* \S601 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M023, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S605 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((S605 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((S605 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((S605 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((S605 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((S605 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((S605 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((S605 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((S605 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((S605 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((S605 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((S605 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (S605 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (S605 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (S605 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (S605 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (S605 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (S605 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ S605), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ S605), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ S605), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ S605), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ S605), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ S605), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ S605), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ S605), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ S605), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ S605), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ S605), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ S605), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ S605) /* \S605 */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ S605) /* \S605 */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ S605) /* \S605 */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ S605) /* \S605 */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ S605) /* \S605 */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ S605) /* \S605 */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ S605) /* \S605 */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ S605) /* \S605 */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ S605) /* \S605 */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ S605) /* \S605 */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ S605) /* \S605 */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ S605) /* \S605 */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((S601 ^ S605), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((S605 ^ S601), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (S601 ^ S605) /* \S605 */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (S605 ^ S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M024, 1, NotSerialized) { /* Conversion of the first operand */ Store ((S604 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xC179B3FE) Store ((S604 ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x3E864C01) Store ((S604 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xC179B3FE) Store ((S604 ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x3E864C01) If (Y078) { Store ((S604 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xC179B3FE) Store ((S604 ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x3E864C01) } Store ((S604 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xC179B3FE) Store ((S604 ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x3E864C01) /* Method returns Integer */ Store ((S604 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xC179B3FE) Store ((S604 ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((S604 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xC179B3FE) Store ((S604 ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x3E864C01) } Local0 = (S604 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xC179B3FE) Local0 = (S604 ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x3E864C01) Local0 = (S604 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xC179B3FE) Local0 = (S604 ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x3E864C01) If (Y078) { Local0 = (S604 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xC179B3FE) Local0 = (S604 ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x3E864C01) } Local0 = (S604 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xC179B3FE) Local0 = (S604 ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (S604 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xC179B3FE) Local0 = (S604 ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xC179B3FE) Local0 = (S604 ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x3E864C01) } /* Conversion of the second operand */ Store ((0x00 ^ S604), Local0) M600 (Arg0, 0x18, Local0, 0xC179B3FE) Store ((0xFFFFFFFF ^ S604), Local0) M600 (Arg0, 0x19, Local0, 0x3E864C01) Store ((AUI5 ^ S604), Local0) M600 (Arg0, 0x1A, Local0, 0xC179B3FE) Store ((AUII ^ S604), Local0) M600 (Arg0, 0x1B, Local0, 0x3E864C01) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ S604), Local0) M600 (Arg0, 0x1C, Local0, 0xC179B3FE) Store ((DerefOf (RefOf (AUII)) ^ S604), Local0) M600 (Arg0, 0x1D, Local0, 0x3E864C01) } Store ((DerefOf (PAUI [0x05]) ^ S604), Local0) M600 (Arg0, 0x1E, Local0, 0xC179B3FE) Store ((DerefOf (PAUI [0x12]) ^ S604), Local0) M600 (Arg0, 0x1F, Local0, 0x3E864C01) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ S604), Local0) M600 (Arg0, 0x20, Local0, 0xC179B3FE) Store ((M601 (0x01, 0x12) ^ S604), Local0) M600 (Arg0, 0x21, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ S604), Local0) M600 (Arg0, 0x22, Local0, 0xC179B3FE) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ S604), Local0) M600 (Arg0, 0x23, Local0, 0x3E864C01) } Local0 = (0x00 ^ S604) /* \S604 */ M600 (Arg0, 0x24, Local0, 0xC179B3FE) Local0 = (0xFFFFFFFF ^ S604) /* \S604 */ M600 (Arg0, 0x25, Local0, 0x3E864C01) Local0 = (AUI5 ^ S604) /* \S604 */ M600 (Arg0, 0x26, Local0, 0xC179B3FE) Local0 = (AUII ^ S604) /* \S604 */ M600 (Arg0, 0x27, Local0, 0x3E864C01) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ S604) /* \S604 */ M600 (Arg0, 0x28, Local0, 0xC179B3FE) Local0 = (DerefOf (RefOf (AUII)) ^ S604) /* \S604 */ M600 (Arg0, 0x29, Local0, 0x3E864C01) } Local0 = (DerefOf (PAUI [0x05]) ^ S604) /* \S604 */ M600 (Arg0, 0x2A, Local0, 0xC179B3FE) Local0 = (DerefOf (PAUI [0x12]) ^ S604) /* \S604 */ M600 (Arg0, 0x2B, Local0, 0x3E864C01) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ S604) /* \S604 */ M600 (Arg0, 0x2C, Local0, 0xC179B3FE) Local0 = (M601 (0x01, 0x12) ^ S604) /* \S604 */ M600 (Arg0, 0x2D, Local0, 0x3E864C01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ S604) /* \S604 */ M600 (Arg0, 0x2E, Local0, 0xC179B3FE) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ S604) /* \S604 */ M600 (Arg0, 0x2F, Local0, 0x3E864C01) } /* Conversion of the both operands */ Store ((S601 ^ S604), Local0) M600 (Arg0, 0x30, Local0, 0xC179B0DF) Store ((S604 ^ S601), Local0) M600 (Arg0, 0x31, Local0, 0xC179B0DF) Local0 = (S601 ^ S604) /* \S604 */ M600 (Arg0, 0x32, Local0, 0xC179B0DF) Local0 = (S604 ^ S601) /* \S601 */ M600 (Arg0, 0x33, Local0, 0xC179B0DF) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m002", Local0) SRMT (Local0) M002 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m005", Local0) SRMT (Local0) M005 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m008", Local0) SRMT (Local0) M008 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00b", Local0) SRMT (Local0) M00B (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00e", Local0) SRMT (Local0) M00E (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) M010 (Local0) Concatenate (Arg0, "-m011", Local0) SRMT (Local0) M011 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) M013 (Local0) Concatenate (Arg0, "-m014", Local0) SRMT (Local0) M014 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) M016 (Local0) Concatenate (Arg0, "-m017", Local0) SRMT (Local0) M017 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01a", Local0) SRMT (Local0) M01A (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01d", Local0) SRMT (Local0) M01D (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) M01F (Local0) Concatenate (Arg0, "-m020", Local0) SRMT (Local0) M020 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) M022 (Local0) Concatenate (Arg0, "-m023", Local0) SRMT (Local0) M023 (Local0) } Method (M32D, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m001", Local0) SRMT (Local0) M001 (Local0) Concatenate (Arg0, "-m003", Local0) SRMT (Local0) M003 (Local0) /* And */ Concatenate (Arg0, "-m004", Local0) SRMT (Local0) M004 (Local0) Concatenate (Arg0, "-m006", Local0) SRMT (Local0) M006 (Local0) /* Divide */ Concatenate (Arg0, "-m007", Local0) SRMT (Local0) M007 (Local0) Concatenate (Arg0, "-m009", Local0) SRMT (Local0) M009 (Local0) /* Mod */ Concatenate (Arg0, "-m00a", Local0) SRMT (Local0) M00A (Local0) Concatenate (Arg0, "-m00c", Local0) SRMT (Local0) M00C (Local0) /* Multiply */ Concatenate (Arg0, "-m00d", Local0) SRMT (Local0) M00D (Local0) Concatenate (Arg0, "-m00f", Local0) SRMT (Local0) M00F (Local0) /* NAnd */ Concatenate (Arg0, "-m010", Local0) SRMT (Local0) If (Y119) { M010 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m012", Local0) SRMT (Local0) M012 (Local0) /* NOr */ Concatenate (Arg0, "-m013", Local0) SRMT (Local0) If (Y119) { M013 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m015", Local0) SRMT (Local0) M015 (Local0) /* Or */ Concatenate (Arg0, "-m016", Local0) SRMT (Local0) If (Y119) { M016 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m018", Local0) SRMT (Local0) M018 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m019", Local0) SRMT (Local0) M019 (Local0) Concatenate (Arg0, "-m01b", Local0) SRMT (Local0) M01B (Local0) /* ShiftRight */ Concatenate (Arg0, "-m01c", Local0) SRMT (Local0) M01C (Local0) Concatenate (Arg0, "-m01e", Local0) SRMT (Local0) M01E (Local0) /* Subtract */ Concatenate (Arg0, "-m01f", Local0) SRMT (Local0) If (Y119) { M01F (Local0) } Else { BLCK () } Concatenate (Arg0, "-m021", Local0) SRMT (Local0) M021 (Local0) /* XOr */ Concatenate (Arg0, "-m022", Local0) SRMT (Local0) If (Y119) { M022 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m024", Local0) SRMT (Local0) M024 (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M025, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (S601 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (S601 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S601 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (S601 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S601 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (S601 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S601 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (S601 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S601 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (S601 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S601 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (S601 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && S601) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && S601) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && S601) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && S601) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && S601) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && S601) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && S601) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && S601) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && S601) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && S601) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && S601) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && S601) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M026, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (S605 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (S605 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S605 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (S605 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S605 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (S605 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S605 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (S605 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S605 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (S605 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (S605 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && S605) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && S605) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && S605) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && S605) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && S605) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && S605) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && S605) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && S605) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && S605) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && S605) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && S605) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && S605) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (S601 && S605) M600 (Arg0, 0x18, Local0, Ones) Local0 = (S605 && S601) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M027, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (S604 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (S604 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S604 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (S604 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S604 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (S604 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S604 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (S604 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S604 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (S604 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (S604 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && S604) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && S604) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && S604) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && S604) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && S604) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && S604) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && S604) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && S604) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && S604) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && S604) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && S604) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && S604) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (S601 && S604) M600 (Arg0, 0x18, Local0, Ones) Local0 = (S604 && S601) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M028, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (S600 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (S600 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S600 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (S600 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S600 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (S600 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S600 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (S600 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S600 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (S600 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S600 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (S600 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || S600) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || S600) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || S600) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || S600) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || S600) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || S600) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || S600) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || S600) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || S600) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || S600) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || S600) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || S600) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M029, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (S605 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (S605 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S605 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (S605 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S605 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (S605 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S605 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (S605 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S605 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (S605 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S605 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (S605 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || S605) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || S605) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || S605) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || S605) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || S605) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || S605) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || S605) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || S605) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || S605) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || S605) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || S605) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || S605) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (S600 || S605) M600 (Arg0, 0x18, Local0, Ones) Local0 = (S605 || S600) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M02A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (S604 || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (S604 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (S604 || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (S604 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (S604 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (S604 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (S604 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (S604 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (S604 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (S604 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (S604 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (S604 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || S604) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || S604) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || S604) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || S604) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || S604) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || S604) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || S604) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || S604) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || S604) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || S604) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || S604) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || S604) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (S600 || S604) M600 (Arg0, 0x18, Local0, Ones) Local0 = (S604 || S600) M600 (Arg0, 0x19, Local0, Ones) } Method (M64E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m026", Local0) SRMT (Local0) M026 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m029", Local0) SRMT (Local0) M029 (Local0) } Method (M32E, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m025", Local0) SRMT (Local0) M025 (Local0) Concatenate (Arg0, "-m027", Local0) SRMT (Local0) M027 (Local0) /* LOr */ Concatenate (Arg0, "-m028", Local0) SRMT (Local0) M028 (Local0) Concatenate (Arg0, "-m02a", Local0) SRMT (Local0) M02A (Local0) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64F, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == S605) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == S605) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == S605) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == S605) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == S605) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == S605) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == S605) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == S605) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == S605) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == S605) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == S605) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == S605) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == S605) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == S605) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == S605) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == S605) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == S605) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == S605) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > S605) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > S605) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > S605) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > S605) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > S605) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > S605) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > S605) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > S605) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > S605) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > S605) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > S605) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > S605) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > S605) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > S605) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > S605) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > S605) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > S605) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > S605) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= S605) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= S605) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= S605) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= S605) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= S605) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= S605) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= S605) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= S605) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= S605) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= S605) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= S605) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= S605) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= S605) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= S605) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= S605) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= S605) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= S605) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= S605) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < S605) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < S605) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < S605) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < S605) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < S605) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < S605) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < S605) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < S605) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < S605) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < S605) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < S605) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < S605) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < S605) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < S605) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < S605) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < S605) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < S605) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < S605) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= S605) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= S605) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= S605) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= S605) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= S605) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= S605) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= S605) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= S605) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= S605) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= S605) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= S605) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= S605) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= S605) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= S605) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= S605) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= S605) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= S605) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= S605) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != S605) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != S605) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != S605) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != S605) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != S605) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != S605) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != S605) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != S605) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != S605) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != S605) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != S605) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != S605) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != S605) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != S605) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != S605) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != S605) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != S605) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != S605) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32F, 1, NotSerialized) { /* LEqual */ Local0 = (0xC179B3FE == S604) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xC179B3FF == S604) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xC179B3FD == S604) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI3 == S604) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIC == S604) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIE == S604) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) == S604) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) == S604) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) == S604) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) == S604) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) == S604) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) == S604) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) == S604) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0C) == S604) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0E) == S604) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) == S604) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) == S604) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) == S604) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xC179B3FE > S604) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xC179B3FF > S604) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xC179B3FD > S604) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI3 > S604) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIC > S604) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIE > S604) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) > S604) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) > S604) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) > S604) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) > S604) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) > S604) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) > S604) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) > S604) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0C) > S604) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0E) > S604) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) > S604) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) > S604) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) > S604) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xC179B3FE >= S604) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xC179B3FF >= S604) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xC179B3FD >= S604) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI3 >= S604) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIC >= S604) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIE >= S604) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) >= S604) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) >= S604) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) >= S604) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x03]) >= S604) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) >= S604) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) >= S604) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) >= S604) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0C) >= S604) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0E) >= S604) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) >= S604) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) >= S604) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) >= S604) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xC179B3FE < S604) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xC179B3FF < S604) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xC179B3FD < S604) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI3 < S604) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIC < S604) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIE < S604) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) < S604) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) < S604) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) < S604) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) < S604) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) < S604) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) < S604) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) < S604) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0C) < S604) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0E) < S604) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) < S604) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) < S604) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) < S604) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xC179B3FE <= S604) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xC179B3FF <= S604) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xC179B3FD <= S604) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI3 <= S604) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIC <= S604) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIE <= S604) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) <= S604) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIC)) <= S604) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIE)) <= S604) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) <= S604) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0C]) <= S604) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0E]) <= S604) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) <= S604) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0C) <= S604) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0E) <= S604) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) <= S604) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) <= S604) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) <= S604) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xC179B3FE != S604) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xC179B3FF != S604) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xC179B3FD != S604) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI3 != S604) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIC != S604) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIE != S604) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI3)) != S604) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIC)) != S604) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIE)) != S604) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x03]) != S604) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0C]) != S604) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0E]) != S604) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x03) != S604) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0C) != S604) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0E) != S604) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x03, 0x01)) != S604) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0C, 0x01)) != S604) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0E, 0x01)) != S604) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M02B, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == S601) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == S601) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == S601) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == S601) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == S601) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == S601) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == S601) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == S601) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == S601) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == S601) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == S601) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == S601) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == S601) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == S601) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == S601) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == S601) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == S601) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == S601) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > S601) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > S601) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > S601) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > S601) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > S601) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > S601) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > S601) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > S601) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > S601) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > S601) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > S601) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > S601) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > S601) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > S601) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > S601) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > S601) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > S601) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > S601) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= S601) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= S601) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= S601) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= S601) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= S601) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= S601) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= S601) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= S601) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= S601) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= S601) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= S601) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= S601) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= S601) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= S601) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= S601) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= S601) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= S601) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= S601) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < S601) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < S601) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < S601) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < S601) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < S601) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < S601) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < S601) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < S601) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < S601) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < S601) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < S601) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < S601) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < S601) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < S601) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < S601) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < S601) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < S601) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < S601) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= S601) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= S601) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= S601) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= S601) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= S601) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= S601) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= S601) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= S601) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= S601) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= S601) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= S601) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= S601) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= S601) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= S601) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= S601) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= S601) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= S601) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= S601) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != S601) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != S601) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != S601) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != S601) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != S601) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != S601) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != S601) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != S601) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != S601) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != S601) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != S601) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != S601) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != S601) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != S601) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != S601) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != S601) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != S601) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != S601) M600 (Arg0, 0x6B, Local0, Ones) } } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64G, 1, NotSerialized) { Local0 = Concatenate (0x0321, S601) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, S605) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, S601) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, S605) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), S601) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), S605) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), S601) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), S605) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), S601) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), S605) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S601) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S605) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, S601, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, S605, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, S601, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, S605, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), S601, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), S605, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), S601, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), S605, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), S601, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), S605, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S601, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S605, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32G, 1, NotSerialized) { Local0 = Concatenate (0x0321, S601) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, S604) M600 (Arg0, 0x01, Local0, BB24) Local0 = Concatenate (AUI1, S601) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, S604) M600 (Arg0, 0x03, Local0, BB24) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), S601) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), S604) M600 (Arg0, 0x05, Local0, BB24) } Local0 = Concatenate (DerefOf (PAUI [0x01]), S601) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), S604) M600 (Arg0, 0x07, Local0, BB24) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), S601) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), S604) M600 (Arg0, 0x09, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S601) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S604) M600 (Arg0, 0x0B, Local0, BB24) } Concatenate (0x0321, S601, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, S604, Local0) M600 (Arg0, 0x0D, Local0, BB24) Concatenate (AUI1, S601, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, S604, Local0) M600 (Arg0, 0x0F, Local0, BB24) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), S601, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), S604, Local0) M600 (Arg0, 0x11, Local0, BB24) } Concatenate (DerefOf (PAUI [0x01]), S601, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), S604, Local0) M600 (Arg0, 0x14, Local0, BB24) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), S601, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), S604, Local0) M600 (Arg0, 0x16, Local0, BB24) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S601, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), S604, Local0) M600 (Arg0, 0x18, Local0, BB24) } } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M02C, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S614) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S601) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, S614) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, S601) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), S614) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), S601) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), S614) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), S601) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), S614) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), S601) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S614) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S601) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S614, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S601, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, S614, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, S601, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), S614, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), S601, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), S614, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), S601, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), S614, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), S601, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S614, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S601, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S605) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, S605) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), S605) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), S605) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), S605) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S605) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S605, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, S605, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), S605, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), S605, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), S605, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S605, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32H, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S604) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, S604) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), S604) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), S604) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), S604) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S604) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, S604, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, S604, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), S604, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), S604, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), S604, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), S604, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Method (M02D, 1, NotSerialized) { Store (AUS6 [S614], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [S614], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [S614], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [S614], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [S614], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [S614], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [S614], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [S614], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [S614], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [S614], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [S614], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [S614], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [S614], Local3) CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [S614], Local3) CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [S614], Local3) CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [S614], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [S614], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [S614], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [S614] /* \S614 */ M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [S614] /* \S614 */ M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [S614] /* \S614 */ M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [S614] /* \S614 */ M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [S614] /* \S614 */ M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [S614] /* \S614 */ M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [S614] /* \S614 */ M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [S614] /* \S614 */ M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [S614] /* \S614 */ M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [S614] /* \S614 */ M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [S614] /* \S614 */ M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [S614] /* \S614 */ M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [S614] /* \S614 */ CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [S614] /* \S614 */ CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [S614] /* \S614 */ CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [S614] /* \S614 */ M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [S614] /* \S614 */ M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [S614] /* \S614 */ M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [S614] /* \S614 */ M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [S614] /* \S614 */ M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [S614] /* \S614 */ M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [S614] /* \S614 */ M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [S614] /* \S614 */ M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [S614] /* \S614 */ M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [S614] /* \S614 */ M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [S614] /* \S614 */ M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [S614] /* \S614 */ M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [S614] /* \S614 */ M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [S614] /* \S614 */ M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [S614] /* \S614 */ M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [S614] /* \S614 */ M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [S614] /* \S614 */ M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [S614] /* \S614 */ M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M02E, 1, NotSerialized) { CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, S601) If (F64) { Fatal (0xFF, 0xFFFFFFFF, S605) } Else { Fatal (0xFF, 0xFFFFFFFF, S604) } CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) } /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M02F, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", S614, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, S614, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, S614, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), S614, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), S614, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), S614, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), S614, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), S614, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), S614, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", S614, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, S614, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, S614, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), S614, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), S614, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), S614, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), S614, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), S614, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), S614, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, S614) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S614) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, S614) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, S614) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, S614) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, S614) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, S614) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, S614) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, S614) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, S614) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S614) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S614) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, S614, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S614, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, S614, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, S614, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, S614, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, S614, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, S614, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, S614, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, S614, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, S614, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S614, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S614, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, S605) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S605) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, S605) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, S605) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, S605) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, S605) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, S605) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, S605) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, S605) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, S605) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S605) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S605) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, S605, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S605, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, S605, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, S605, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, S605, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, S605, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, S605, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, S605, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, S605, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, S605, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S605, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S605, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", S614, S605) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, S605) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, S614, S605) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, S614, S605) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), S614, S605) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), S614, S605) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), S614, S605) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), S614, S605) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), S614, S605) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), S614, S605) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, S605) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, S605) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", S614, S605, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, S605, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, S614, S605, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, S614, S605, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), S614, S605, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), S614, S605, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), S614, S605, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), S614, S605, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), S614, S605, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), S614, S605, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, S605, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, S605, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32I, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, S604) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S604) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, S604) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, S604) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, S604) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, S604) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, S604) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, S604) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, S604) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, S604) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S604) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S604) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, S604, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, S604, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, S604, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, S604, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, S604, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, S604, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, S604, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, S604, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, S604, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, S604, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, S604, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, S604, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", S614, S604) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, S604) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, S614, S604) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, S614, S604) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), S614, S604) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), S614, S604) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), S614, S604) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), S614, S604) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), S614, S604) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), S614, S604) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, S604) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, S604) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", S614, S604, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, S614, S604, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, S614, S604, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, S614, S604, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), S614, S604, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), S614, S604, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), S614, S604, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), S614, S604, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), S614, S604, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), S614, S604, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), S614, S604, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), S614, S604, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Method (M030, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, S614) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, S614) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64j, 1) */ /* Method(m32j, 1) */ /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M031, 1, NotSerialized) { CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (S601) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z086, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (S61B) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z086, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator ??? */ Method (M032, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, s601) */ CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z086, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Method (M033, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, S601) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z086, __LINE__, 0x00, 0x00, Local2, C08C) } } /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M034, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (S600) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (S601) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (S604) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (S605) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (S600) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (S601) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (S604) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (S605) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (S600) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64k, 1) */ /* Method(m32k, 1) */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M035, 1, NotSerialized) { /* LEqual */ Local0 = (Buffer (0x05) { "0321" } == S601) M600 (Arg0, 0x00, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } == S601) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUB7 == S601) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUB3 == S601) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) == S601) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUB3)) == S601) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) == S601) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUB [0x03]) == S601) M600 (Arg0, 0x07, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) == S601) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x03, 0x03) == S601) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) == S601) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x03, 0x01)) == S601) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = (Buffer (0x05) { "0321" } > S601) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } > S601) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } > S601) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } > S601) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUB7 > S601) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUB8 > S601) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) > S601) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) > S601) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) > S601) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) > S601) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) > S601) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x03, 0x08) > S601) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) > S601) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) > S601) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = (Buffer (0x05) { "0321" } >= S601) M600 (Arg0, 0x1A, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } >= S601) M600 (Arg0, 0x1B, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } >= S601) M600 (Arg0, 0x1C, Local0, Zero) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } >= S601) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUB7 >= S601) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUB8 >= S601) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) >= S601) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) >= S601) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) >= S601) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) >= S601) M600 (Arg0, 0x23, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) >= S601) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x03, 0x08) >= S601) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) >= S601) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) >= S601) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = (Buffer (0x05) { "0321" } < S601) M600 (Arg0, 0x28, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } < S601) M600 (Arg0, 0x29, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } < S601) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } < S601) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUB7 < S601) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUB8 < S601) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) < S601) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) < S601) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) < S601) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) < S601) M600 (Arg0, 0x31, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) < S601) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x03, 0x08) < S601) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) < S601) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) < S601) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = (Buffer (0x05) { "0321" } <= S601) M600 (Arg0, 0x36, Local0, Ones) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } <= S601) M600 (Arg0, 0x37, Local0, Zero) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } <= S601) M600 (Arg0, 0x38, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } <= S601) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUB7 <= S601) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUB8 <= S601) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) <= S601) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUB8)) <= S601) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUB [0x07]) <= S601) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUB [0x08]) <= S601) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) <= S601) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x03, 0x08) <= S601) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) <= S601) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) <= S601) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = (Buffer (0x05) { "0321" } != S601) M600 (Arg0, 0x44, Local0, Zero) Local0 = (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. } != S601) M600 (Arg0, 0x45, Local0, Ones) Local0 = (Buffer (0x04) { 0x30, 0x33, 0x32, 0x31 // 0321 } != S601) M600 (Arg0, 0x46, Local0, Ones) Local0 = (Buffer (0x06) { 0x30, 0x33, 0x32, 0x31, 0x00, 0x01 // 0321.. } != S601) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUB7 != S601) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUB8 != S601) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUB7)) != S601) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUB8)) != S601) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUB [0x07]) != S601) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUB [0x08]) != S601) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns Buffer */ Local0 = (M601 (0x03, 0x07) != S601) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x03, 0x08) != S601) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to Buffer */ If (Y500) { Local0 = (DerefOf (M602 (0x03, 0x07, 0x01)) != S601) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x03, 0x08, 0x01)) != S601) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = (Buffer (0x01) { 0x00 // . } == S60C) M600 (Arg0, 0x52, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } == S60C) M600 (Arg0, 0x53, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } > S60C) M600 (Arg0, 0x54, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } > S60C) M600 (Arg0, 0x55, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } >= S60C) M600 (Arg0, 0x56, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } > S60C) M600 (Arg0, 0x57, Local0, Ones) Local0 = (Buffer (0x01) { 0x00 // . } < S60C) M600 (Arg0, 0x58, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } < S60C) M600 (Arg0, 0x59, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } <= S60C) M600 (Arg0, 0x5A, Local0, Ones) Local0 = (Buffer (0x01) { 0x01 // . } <= S60C) M600 (Arg0, 0x5B, Local0, Zero) Local0 = (Buffer (0x01) { 0x00 // . } != S60C) M600 (Arg0, 0x5C, Local0, Zero) Local0 = (Buffer (0x01) { 0x01 // . } != S60C) M600 (Arg0, 0x5D, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } == S60E) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } == S60E) M600 (Arg0, 0x5F, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } > S60E) M600 (Arg0, 0x60, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > S60E) M600 (Arg0, 0x61, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } >= S60E) M600 (Arg0, 0x62, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } > S60E) M600 (Arg0, 0x63, Local0, Ones) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } < S60E) M600 (Arg0, 0x64, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } < S60E) M600 (Arg0, 0x65, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } <= S60E) M600 (Arg0, 0x66, Local0, Ones) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } <= S60E) M600 (Arg0, 0x67, Local0, Zero) Local0 = (Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" } != S60E) M600 (Arg0, 0x68, Local0, Zero) Local0 = (Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } != S60E) M600 (Arg0, 0x69, Local0, Ones) } /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Method (M036, 1, NotSerialized) { Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, S601) M600 (Arg0, 0x00, Local0, BB29) Local0 = Concatenate (Buffer (0x02) { "Z" }, S601) M600 (Arg0, 0x01, Local0, BB2A) Local0 = Concatenate (AUB0, S601) M600 (Arg0, 0x02, Local0, BB29) Local0 = Concatenate (AUB1, S601) M600 (Arg0, 0x03, Local0, BB2A) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUB0)), S601) M600 (Arg0, 0x04, Local0, BB29) Local0 = Concatenate (DerefOf (RefOf (AUB1)), S601) M600 (Arg0, 0x05, Local0, BB2A) } Local0 = Concatenate (DerefOf (PAUB [0x00]), S601) M600 (Arg0, 0x06, Local0, BB29) Local0 = Concatenate (DerefOf (PAUB [0x01]), S601) M600 (Arg0, 0x07, Local0, BB2A) /* Method returns Buffer */ Local0 = Concatenate (M601 (0x03, 0x00), S601) M600 (Arg0, 0x08, Local0, BB29) Local0 = Concatenate (M601 (0x03, 0x01), S601) M600 (Arg0, 0x09, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), S601) M600 (Arg0, 0x0A, Local0, BB29) Local0 = Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), S601) M600 (Arg0, 0x0B, Local0, BB2A) } Concatenate (Buffer (0x01) { 0x5A // Z }, S601, Local0) M600 (Arg0, 0x0C, Local0, BB29) Concatenate (Buffer (0x02) { "Z" }, S601, Local0) M600 (Arg0, 0x0D, Local0, BB2A) Concatenate (AUB0, S601, Local0) M600 (Arg0, 0x0E, Local0, BB29) Concatenate (AUB1, S601, Local0) M600 (Arg0, 0x0F, Local0, BB2A) If (Y078) { Concatenate (DerefOf (RefOf (AUB0)), S601, Local0) M600 (Arg0, 0x10, Local0, BB29) Concatenate (DerefOf (RefOf (AUB1)), S601, Local0) M600 (Arg0, 0x11, Local0, BB2A) } Concatenate (DerefOf (PAUB [0x00]), S601, Local0) M600 (Arg0, 0x12, Local0, BB29) Concatenate (DerefOf (PAUB [0x01]), S601, Local0) M600 (Arg0, 0x13, Local0, BB2A) /* Method returns Buffer */ Concatenate (M601 (0x03, 0x00), S601, Local0) M600 (Arg0, 0x14, Local0, BB29) Concatenate (M601 (0x03, 0x01), S601, Local0) M600 (Arg0, 0x15, Local0, BB2A) /* Method returns Reference to Buffer */ If (Y500) { Concatenate (DerefOf (M602 (0x03, 0x00, 0x01)), S601, Local0) M600 (Arg0, 0x16, Local0, BB29) Concatenate (DerefOf (M602 (0x03, 0x01, 0x01)), S601, Local0) M600 (Arg0, 0x17, Local0, BB2A) } /* Boundary Cases */ Local0 = Concatenate (Buffer (0x01) { 0x5A // Z }, S60C) M600 (Arg0, 0x18, Local0, BB2B) Local0 = Concatenate (Buffer (0x02) { "Z" }, S60C) M600 (Arg0, 0x19, Local0, BB2C) Local1 = 0x00 Local0 = Concatenate (Buffer (Local1){}, S60E) M600 (Arg0, 0x1A, Local0, BB2D) } /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character, that is impossible to show */ /* with an immediate String constant). */ Method (M037, 1, NotSerialized) { Local0 = ToString (S601, Ones) M600 (Arg0, 0x00, Local0, BS20) Local0 = ToString (S601, 0x03) M600 (Arg0, 0x01, Local0, BS21) Local0 = ToString (S601, AUI0) M600 (Arg0, 0x02, Local0, BS20) Local0 = ToString (S601, AUI7) M600 (Arg0, 0x03, Local0, BS21) If (Y078) { Local0 = ToString (S601, DerefOf (RefOf (AUI0))) M600 (Arg0, 0x04, Local0, BS20) Local0 = ToString (S601, DerefOf (RefOf (AUI7))) M600 (Arg0, 0x05, Local0, BS21) } Local0 = ToString (S601, DerefOf (PAUI [0x00])) M600 (Arg0, 0x06, Local0, BS20) Local0 = ToString (S601, DerefOf (PAUI [0x07])) M600 (Arg0, 0x07, Local0, BS21) /* Method returns Length parameter */ Local0 = ToString (S601, M601 (0x01, 0x00)) M600 (Arg0, 0x08, Local0, BS20) Local0 = ToString (S601, M601 (0x01, 0x07)) M600 (Arg0, 0x09, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { Local0 = ToString (S601, DerefOf (M601 (0x01, 0x00))) M600 (Arg0, 0x0A, Local0, BS20) Local0 = ToString (S601, DerefOf (M601 (0x01, 0x07))) M600 (Arg0, 0x0B, Local0, BS21) } ToString (S601, Ones, Local0) M600 (Arg0, 0x0C, Local0, BS20) ToString (S601, 0x03, Local0) M600 (Arg0, 0x0D, Local0, BS21) ToString (S601, AUI0, Local0) M600 (Arg0, 0x0E, Local0, BS20) ToString (S601, AUI7, Local0) M600 (Arg0, 0x0F, Local0, BS21) If (Y078) { ToString (S601, DerefOf (RefOf (AUI0)), Local0) M600 (Arg0, 0x10, Local0, BS20) ToString (S601, DerefOf (RefOf (AUI7)), Local0) M600 (Arg0, 0x11, Local0, BS21) } ToString (S601, DerefOf (PAUI [0x00]), Local0) M600 (Arg0, 0x12, Local0, BS20) ToString (S601, DerefOf (PAUI [0x07]), Local0) M600 (Arg0, 0x13, Local0, BS21) /* Method returns Length parameter */ ToString (S601, M601 (0x01, 0x00), Local0) M600 (Arg0, 0x14, Local0, BS20) ToString (S601, M601 (0x01, 0x07), Local0) M600 (Arg0, 0x15, Local0, BS21) /* Method returns Reference to Length parameter */ If (Y500) { ToString (S601, DerefOf (M601 (0x01, 0x00)), Local0) M600 (Arg0, 0x16, Local0, BS20) ToString (S601, DerefOf (M601 (0x01, 0x07)), Local0) M600 (Arg0, 0x17, Local0, BS21) } /* Boundary Cases */ Local0 = ToString (S60C, Ones) M600 (Arg0, 0x18, Local0, BS22) Local0 = ToString (S60C, 0x03) M600 (Arg0, 0x19, Local0, BS22) Local0 = ToString (S60E, Ones) M600 (Arg0, 0x1A, Local0, BS23) Local0 = ToString (S60E, 0x03) M600 (Arg0, 0x1B, Local0, BS24) } /* Method(m038, 1) */ /* Method(m039, 1) */ /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ Method (M64L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = B606-- M600 (Arg0, 0x00, Local0, BI12) Local0 = B60A-- M600 (Arg0, 0x01, Local0, BI16) } /* Increment */ If (Y501) { Local0 = B606++ M600 (Arg0, 0x02, Local0, BI13) Local0 = B60A++ M600 (Arg0, 0x03, Local0, BI17) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (B606) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (B60A) M600 (Arg0, 0x05, Local0, 0x40) /* FindSetRightBit */ Local0 = FindSetRightBit (B606) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (B60A) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~B606, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Store (~B60A, Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) } Method (M32L, 1, NotSerialized) { /* Decrement */ If (Y501) { Local0 = B606-- M600 (Arg0, 0x00, Local0, BI12) Local0 = B60A-- M600 (Arg0, 0x01, Local0, BI18) } /* Increment */ If (Y501) { Local0 = B606++ M600 (Arg0, 0x02, Local0, BI13) Local0 = B60A++ M600 (Arg0, 0x03, Local0, BI19) } /* FindSetLeftBit */ Local0 = FindSetLeftBit (B606) M600 (Arg0, 0x04, Local0, 0x0A) Local0 = FindSetLeftBit (B60A) M600 (Arg0, 0x05, Local0, 0x20) /* FindSetRightBit */ Local0 = FindSetRightBit (B606) M600 (Arg0, 0x06, Local0, 0x01) Local0 = FindSetRightBit (B60A) M600 (Arg0, 0x07, Local0, 0x03) /* Not */ Store (~B606, Local0) M600 (Arg0, 0x08, Local0, 0xFFFFFCDE) Store (~B60A, Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Method (M03A, 1, NotSerialized) { Local0 = !B600 M600 (Arg0, 0x00, Local0, Ones) Local0 = !B606 M600 (Arg0, 0x01, Local0, Zero) If (F64) { Local0 = !B60A M600 (Arg0, 0x02, Local0, Zero) } Else { Local0 = !B60A M600 (Arg0, 0x03, Local0, Zero) } } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ Method (M64M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (B606) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (B60F) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) FromBCD (B606, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (B60F, Local0) M600 (Arg0, 0x03, Local0, 0x000D76162EE9EC35) /* ToBCD */ Local0 = ToBCD (B606) M600 (Arg0, 0x04, Local0, 0x0801) /* ??? No error of iASL on constant folding */ Local0 = ToBCD (B610) M600 (Arg0, 0x05, Local0, 0x3789012345678901) ToBCD (B606, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (B610, Local0) M600 (Arg0, 0x05, Local0, 0x3789012345678901) } Method (M32M, 1, NotSerialized) { /* FromBCD */ Local0 = FromBCD (B606) M600 (Arg0, 0x02, Local0, 0x0141) Local0 = FromBCD (B611) M600 (Arg0, 0x03, Local0, 0x055F2CC0) FromBCD (B606, Local0) M600 (Arg0, 0x02, Local0, 0x0141) FromBCD (B611, Local0) M600 (Arg0, 0x03, Local0, 0x055F2CC0) /* ToBCD */ Local0 = ToBCD (B606) M600 (Arg0, 0x04, Local0, 0x0801) Local0 = ToBCD (B612) M600 (Arg0, 0x05, Local0, 0x90123456) ToBCD (B606, Local0) M600 (Arg0, 0x04, Local0, 0x0801) ToBCD (B612, Local0) M600 (Arg0, 0x05, Local0, 0x90123456) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ /* Add, common 32-bit/64-bit test */ Method (M03B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0322) Store ((B606 + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0322) If (Y078) { Store ((B606 + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0322) } Store ((B606 + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0322) /* Method returns Integer */ Store ((B606 + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0322) } Local0 = (B606 + 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 + 0x01) M600 (Arg0, 0x0D, Local0, 0x0322) Local0 = (B606 + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0322) If (Y078) { Local0 = (B606 + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0322) } Local0 = (B606 + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0322) /* Method returns Integer */ Local0 = (B606 + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0322) } /* Conversion of the second operand */ Store ((0x00 + B606), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0x01 + B606), Local0) M600 (Arg0, 0x19, Local0, 0x0322) Store ((AUI5 + B606), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUI6 + B606), Local0) M600 (Arg0, 0x1B, Local0, 0x0322) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + B606), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUI6)) + B606), Local0) M600 (Arg0, 0x1D, Local0, 0x0322) } Store ((DerefOf (PAUI [0x05]) + B606), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x06]) + B606), Local0) M600 (Arg0, 0x1F, Local0, 0x0322) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + B606), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x06) + B606), Local0) M600 (Arg0, 0x21, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + B606), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + B606), Local0) M600 (Arg0, 0x23, Local0, 0x0322) } Local0 = (0x00 + B606) /* \B606 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0x01 + B606) /* \B606 */ M600 (Arg0, 0x25, Local0, 0x0322) Local0 = (AUI5 + B606) /* \B606 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUI6 + B606) /* \B606 */ M600 (Arg0, 0x27, Local0, 0x0322) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + B606) /* \B606 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUI6)) + B606) /* \B606 */ M600 (Arg0, 0x29, Local0, 0x0322) } Local0 = (DerefOf (PAUI [0x05]) + B606) /* \B606 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x06]) + B606) /* \B606 */ M600 (Arg0, 0x2B, Local0, 0x0322) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + B606) /* \B606 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x06) + B606) /* \B606 */ M600 (Arg0, 0x2D, Local0, 0x0322) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + B606) /* \B606 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + B606) /* \B606 */ M600 (Arg0, 0x2F, Local0, 0x0322) } } /* Add, 64-bit */ Method (M03C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A285) Store ((B60A + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((B60A + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A285) } Store ((B60A + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((B60A + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A285) } Local0 = (B60A + 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A + 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A285) Local0 = (B60A + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (B60A + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A285) } Local0 = (B60A + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (B60A + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A285) } /* Conversion of the second operand */ Store ((0x00 + B60A), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0x01 + B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A285) Store ((AUI5 + B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUI6 + B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUI6)) + B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A285) } Store ((DerefOf (PAUI [0x05]) + B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x06]) + B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + B60A), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x06) + B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + B60A), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A285) } Local0 = (0x00 + B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0x01 + B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A285) Local0 = (AUI5 + B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUI6 + B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUI6)) + B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A285) } Local0 = (DerefOf (PAUI [0x05]) + B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x06]) + B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x06) + B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A285) } /* Conversion of the both operands */ Store ((B606 + B60A), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A5A5) Store ((B60A + B606), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A5A5) Local0 = (B606 + B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A5A5) Local0 = (B60A + B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A5A5) } /* Add, 32-bit */ Method (M03D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A + 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A + 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A285) Store ((B60A + AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A + AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A285) If (Y078) { Store ((B60A + DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A + DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A285) } Store ((B60A + DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A + DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A285) /* Method returns Integer */ Store ((B60A + M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A + M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A + DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A + DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A285) } Local0 = (B60A + 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A + 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A285) Local0 = (B60A + AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A + AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A285) If (Y078) { Local0 = (B60A + DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A + DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A285) } Local0 = (B60A + DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A + DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (B60A + M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A + M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A + DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A + DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A285) } /* Conversion of the second operand */ Store ((0x00 + B60A), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0x01 + B60A), Local0) M600 (Arg0, 0x19, Local0, 0xD650A285) Store ((AUI5 + B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUI6 + B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A285) If (Y078) { Store ((DerefOf (RefOf (AUI5)) + B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUI6)) + B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A285) } Store ((DerefOf (PAUI [0x05]) + B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x06]) + B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A285) /* Method returns Integer */ Store ((M601 (0x01, 0x05) + B60A), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x06) + B60A), Local0) M600 (Arg0, 0x21, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) + B60A), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) + B60A), Local0) M600 (Arg0, 0x23, Local0, 0xD650A285) } Local0 = (0x00 + B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0x01 + B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xD650A285) Local0 = (AUI5 + B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUI6 + B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xD650A285) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) + B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUI6)) + B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xD650A285) } Local0 = (DerefOf (PAUI [0x05]) + B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x06]) + B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xD650A285) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) + B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x06) + B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xD650A285) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) + B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) + B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xD650A285) } /* Conversion of the both operands */ Store ((B606 + B60A), Local0) M600 (Arg0, 0x30, Local0, 0xD650A5A5) Store ((B60A + B606), Local0) M600 (Arg0, 0x31, Local0, 0xD650A5A5) Local0 = (B606 + B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0xD650A5A5) Local0 = (B60A + B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0xD650A5A5) } /* And, common 32-bit/64-bit test */ Method (M03E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B606 & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((B606 & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B606 & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((B606 & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B606 & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((B606 & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B606 & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((B606 & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B606 & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B606 & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (B606 & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B606 & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (B606 & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B606 & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (B606 & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B606 & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (B606 & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B606 & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (B606 & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B606 & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B606 & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 & B606), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & B606), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 & B606), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & B606), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & B606), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & B606), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) & B606), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & B606), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & B606), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & B606), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & B606), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & B606), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 & B606) /* \B606 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & B606) /* \B606 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 & B606) /* \B606 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & B606) /* \B606 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & B606) /* \B606 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & B606) /* \B606 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) & B606) /* \B606 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & B606) /* \B606 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & B606) /* \B606 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & B606) /* \B606 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & B606) /* \B606 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & B606) /* \B606 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* And, 64-bit */ Method (M03F, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B60A & 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((B60A & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B60A & AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((B60A & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B60A & DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((B60A & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B60A & DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((B60A & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B60A & M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B60A & DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (B60A & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B60A & 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (B60A & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B60A & AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (B60A & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B60A & DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (B60A & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B60A & DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (B60A & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B60A & M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B60A & DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 & B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFFFFFFFFFF & B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 & B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIJ & B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIJ)) & B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) & B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x13]) & B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x13) & B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) & B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 & B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFFFFFFFFFF & B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 & B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIJ & B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIJ)) & B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) & B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x13]) & B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x13) & B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) & B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((B606 & B60A), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((B60A & B606), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (B606 & B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (B60A & B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* And, 32-bit */ Method (M040, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A & 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B60A & 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((B60A & AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B60A & AUII), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((B60A & DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B60A & DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((B60A & DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B60A & DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((B60A & M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B60A & M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A & DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B60A & DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (B60A & 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B60A & 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (B60A & AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B60A & AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (B60A & DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B60A & DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (B60A & DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B60A & DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (B60A & M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B60A & M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A & DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B60A & DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 & B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFFFFFFFF & B60A), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 & B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUII & B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) & B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUII)) & B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) & B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x12]) & B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) & B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x12) & B60A), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) & B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) & B60A), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 & B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFFFFFFFF & B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 & B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUII & B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) & B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUII)) & B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) & B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x12]) & B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) & B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x12) & B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) & B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) & B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((B606 & B60A), Local0) M600 (Arg0, 0x30, Local0, 0x0200) Store ((B60A & B606), Local0) M600 (Arg0, 0x31, Local0, 0x0200) Local0 = (B606 & B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0x0200) Local0 = (B60A & B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0x0200) } /* Divide, common 32-bit/64-bit test */ Method (M041, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 / 0x0321), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B606 / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 / AUI1), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B606 / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 / DerefOf (RefOf (AUI1))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B606 / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 / DerefOf (PAUI [0x01])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B606 / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 / M601 (0x01, 0x01)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 / DerefOf (M602 (0x01, 0x01, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (B606, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0x0321) Divide (B606, 0x0321, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (B606, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0x0321) Divide (B606, AUI1, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (B606, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0x0321) Divide (B606, DerefOf (RefOf (AUI1)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (B606, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0x0321) Divide (B606, DerefOf (PAUI [0x01]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (B606, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0x0321) Divide (B606, M601 (0x01, 0x01), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (B606, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0x0321) Divide (B606, DerefOf (M602 (0x01, 0x01, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / B606), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x0321 / B606), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / B606), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI1 / B606), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / B606), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI1)) / B606), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / B606), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x01]) / B606), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / B606), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x01) / B606), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / B606), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x01, 0x01)) / B606), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, B606, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0x0321, B606, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, B606, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI1, B606, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), B606, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI1)), B606, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), B606, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x01]), B606, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), B606, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x01), B606, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), B606, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x01, 0x01)), B606, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } } /* Divide, 64-bit */ Method (M042, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A / 0xFE7CB391D650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B60A / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A / AUI4), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B60A / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A / DerefOf (RefOf (AUI4))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B60A / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A / DerefOf (PAUI [0x04])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B60A / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A / M601 (0x01, 0x04)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A / DerefOf (M602 (0x01, 0x04, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (B60A, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Divide (B60A, 0xFE7CB391D650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (B60A, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Divide (B60A, AUI4, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (B60A, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Divide (B60A, DerefOf (RefOf (AUI4)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (B60A, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Divide (B60A, DerefOf (PAUI [0x04]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (B60A, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Divide (B60A, M601 (0x01, 0x04), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (B60A, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Divide (B60A, DerefOf (M602 (0x01, 0x04, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 / B60A), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 / B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) / B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) / B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) / B60A), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) / B60A), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, B60A, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xFE7CB391D650A284, B60A, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, B60A, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUI4, B60A, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), B60A, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUI4)), B60A, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), B60A, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x04]), B60A, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), B60A, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x04), B60A, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), B60A, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x04, 0x01)), B60A, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((B606 / B60A), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((B60A / B606), Local0) M600 (Arg0, 0x31, Local0, 0x0051558EB950F5A7) Divide (B606, B60A, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (B60A, B606, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x0051558EB950F5A7) } /* Divide, 32-bit */ Method (M043, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A / 0x01), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A / 0xD650A284), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B60A / AUI6), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A / AUIK), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B60A / DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A / DerefOf (RefOf (AUIK))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B60A / DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A / DerefOf (PAUI [0x14])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B60A / M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A / M601 (0x01, 0x14)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A / DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A / DerefOf (M602 (0x01, 0x14, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Divide (B60A, 0x01, Local1, Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Divide (B60A, 0xD650A284, Local1, Local0) M600 (Arg0, 0x0D, Local0, 0x01) Divide (B60A, AUI6, Local1, Local0) M600 (Arg0, 0x0E, Local0, 0xD650A284) Divide (B60A, AUIK, Local1, Local0) M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Divide (B60A, DerefOf (RefOf (AUI6)), Local1, Local0) M600 (Arg0, 0x10, Local0, 0xD650A284) Divide (B60A, DerefOf (RefOf (AUIK)), Local1, Local0) M600 (Arg0, 0x11, Local0, 0x01) } Divide (B60A, DerefOf (PAUI [0x06]), Local1, Local0) M600 (Arg0, 0x12, Local0, 0xD650A284) Divide (B60A, DerefOf (PAUI [0x14]), Local1, Local0) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Divide (B60A, M601 (0x01, 0x06), Local1, Local0) M600 (Arg0, 0x14, Local0, 0xD650A284) Divide (B60A, M601 (0x01, 0x14), Local1, Local0) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (B60A, DerefOf (M602 (0x01, 0x06, 0x01)), Local1, Local0) M600 (Arg0, 0x16, Local0, 0xD650A284) Divide (B60A, DerefOf (M602 (0x01, 0x14, 0x01)), Local1, Local0) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x01 / B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 / B60A), Local0) M600 (Arg0, 0x19, Local0, 0x01) Store ((AUI6 / B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK / B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x01) If (Y078) { Store ((DerefOf (RefOf (AUI6)) / B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) / B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x01) } Store ((DerefOf (PAUI [0x06]) / B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) / B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x01) /* Method returns Integer */ Store ((M601 (0x01, 0x06) / B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) / B60A), Local0) M600 (Arg0, 0x21, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x06, 0x01)) / B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) / B60A), Local0) M600 (Arg0, 0x23, Local0, 0x01) } Divide (0x01, B60A, Local1, Local0) M600 (Arg0, 0x24, Local0, 0x00) Divide (0xD650A284, B60A, Local1, Local0) M600 (Arg0, 0x25, Local0, 0x01) Divide (AUI6, B60A, Local1, Local0) M600 (Arg0, 0x26, Local0, 0x00) Divide (AUIK, B60A, Local1, Local0) M600 (Arg0, 0x27, Local0, 0x01) If (Y078) { Divide (DerefOf (RefOf (AUI6)), B60A, Local1, Local0) M600 (Arg0, 0x28, Local0, 0x00) Divide (DerefOf (RefOf (AUIK)), B60A, Local1, Local0) M600 (Arg0, 0x29, Local0, 0x01) } Divide (DerefOf (PAUI [0x06]), B60A, Local1, Local0) M600 (Arg0, 0x2A, Local0, 0x00) Divide (DerefOf (PAUI [0x14]), B60A, Local1, Local0) M600 (Arg0, 0x2B, Local0, 0x01) /* Method returns Integer */ Divide (M601 (0x01, 0x06), B60A, Local1, Local0) M600 (Arg0, 0x2C, Local0, 0x00) Divide (M601 (0x01, 0x14), B60A, Local1, Local0) M600 (Arg0, 0x2D, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Divide (DerefOf (M602 (0x01, 0x06, 0x01)), B60A, Local1, Local0) M600 (Arg0, 0x2E, Local0, 0x00) Divide (DerefOf (M602 (0x01, 0x14, 0x01)), B60A, Local1, Local0) M600 (Arg0, 0x2F, Local0, 0x01) } /* Conversion of the both operands */ Store ((B606 / B60A), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((B60A / B606), Local0) M600 (Arg0, 0x31, Local0, 0x00447EC3) Divide (B606, B60A, Local1, Local0) M600 (Arg0, 0x32, Local0, 0x00) Divide (B60A, B606, Local1, Local0) M600 (Arg0, 0x33, Local0, 0x00447EC3) } /* Mod, common 32-bit/64-bit test */ Method (M044, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 % 0x0322), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 % 0x0320), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B606 % AUIG), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 % AUIH), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B606 % DerefOf (RefOf (AUIG))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 % DerefOf (RefOf (AUIH))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B606 % DerefOf (PAUI [0x10])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 % DerefOf (PAUI [0x11])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B606 % M601 (0x01, 0x10)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 % M601 (0x01, 0x11)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 % DerefOf (M602 (0x01, 0x10, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 % DerefOf (M602 (0x01, 0x11, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (B606 % 0x0322) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 % 0x0320) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (B606 % AUIG) /* \AUIG */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 % AUIH) /* \AUIH */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (B606 % DerefOf (RefOf (AUIG))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 % DerefOf (RefOf (AUIH))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (B606 % DerefOf (PAUI [0x10])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 % DerefOf (PAUI [0x11])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (B606 % M601 (0x01, 0x10)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 % M601 (0x01, 0x11)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 % DerefOf (M602 (0x01, 0x10, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 % DerefOf (M602 (0x01, 0x11, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0x0322 % B606), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0x0320 % B606), Local0) M600 (Arg0, 0x19, Local0, 0x0320) Store ((AUIG % B606), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIH % B606), Local0) M600 (Arg0, 0x1B, Local0, 0x0320) If (Y078) { Store ((DerefOf (RefOf (AUIG)) % B606), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIH)) % B606), Local0) M600 (Arg0, 0x1D, Local0, 0x0320) } Store ((DerefOf (PAUI [0x10]) % B606), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x11]) % B606), Local0) M600 (Arg0, 0x1F, Local0, 0x0320) /* Method returns Integer */ Store ((M601 (0x01, 0x10) % B606), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x11) % B606), Local0) M600 (Arg0, 0x21, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x10, 0x01)) % B606), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x11, 0x01)) % B606), Local0) M600 (Arg0, 0x23, Local0, 0x0320) } Local0 = (0x0322 % B606) /* \B606 */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0x0320 % B606) /* \B606 */ M600 (Arg0, 0x25, Local0, 0x0320) Local0 = (AUIG % B606) /* \B606 */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIH % B606) /* \B606 */ M600 (Arg0, 0x27, Local0, 0x0320) If (Y078) { Local0 = (DerefOf (RefOf (AUIG)) % B606) /* \B606 */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIH)) % B606) /* \B606 */ M600 (Arg0, 0x29, Local0, 0x0320) } Local0 = (DerefOf (PAUI [0x10]) % B606) /* \B606 */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x11]) % B606) /* \B606 */ M600 (Arg0, 0x2B, Local0, 0x0320) /* Method returns Integer */ Local0 = (M601 (0x01, 0x10) % B606) /* \B606 */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x11) % B606) /* \B606 */ M600 (Arg0, 0x2D, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) % B606) /* \B606 */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) % B606) /* \B606 */ M600 (Arg0, 0x2F, Local0, 0x0320) } } /* Mod, 64-bit */ Method (M045, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A % 0xFE7CB391D650A285), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A % 0xFE7CB391D650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B60A % AUID), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A % AUIF), Local0) M600 (Arg0, 0x03, Local0, 0x01) If (Y078) { Store ((B60A % DerefOf (RefOf (AUID))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A % DerefOf (RefOf (AUIF))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B60A % DerefOf (PAUI [0x0D])), Local0) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Store ((B60A % DerefOf (PAUI [0x0F])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B60A % M601 (0x01, 0x0D)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A % M601 (0x01, 0x0F)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A % DerefOf (M602 (0x01, 0x0D, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A % DerefOf (M602 (0x01, 0x0F, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (B60A % 0xFE7CB391D650A285) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A % 0xFE7CB391D650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (B60A % AUID) /* \AUID */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A % AUIF) /* \AUIF */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (B60A % DerefOf (RefOf (AUID))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A % DerefOf (RefOf (AUIF))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (B60A % DerefOf (PAUI [0x0D])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A % DerefOf (PAUI [0x0F])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (B60A % M601 (0x01, 0x0D)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A % M601 (0x01, 0x0F)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A % DerefOf (M602 (0x01, 0x0D, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A % DerefOf (M602 (0x01, 0x0F, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xFE7CB391D650A285 % B60A), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xFE7CB391D650A283 % B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A283) Store ((AUID % B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIF % B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((DerefOf (RefOf (AUID)) % B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIF)) % B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A283) } Store ((DerefOf (PAUI [0x0D]) % B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x0F]) % B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x0D) % B60A), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x0F) % B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x0D, 0x01)) % B60A), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x0F, 0x01)) % B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A283) } Local0 = (0xFE7CB391D650A285 % B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xFE7CB391D650A283 % B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A283) Local0 = (AUID % B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIF % B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUID)) % B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIF)) % B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A283) } Local0 = (DerefOf (PAUI [0x0D]) % B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x0F]) % B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x0D) % B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x0F) % B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) % B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) % B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A283) } /* Conversion of the both operands */ Store ((B606 % B60A), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((B60A % B606), Local0) M600 (Arg0, 0x31, Local0, 0x02FD) Local0 = (B606 % B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (B60A % B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0x02FD) } /* Mod, 32-bit */ Method (M046, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A % 0xD650A285), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A % 0xD650A283), Local0) M600 (Arg0, 0x01, Local0, 0x01) Store ((B60A % AUIL), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A % AUIM), Local0) M600 (Arg0, 0x0E, Local0, 0x01) If (Y078) { Store ((B60A % DerefOf (RefOf (AUIL))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A % DerefOf (RefOf (AUIM))), Local0) M600 (Arg0, 0x05, Local0, 0x01) } Store ((B60A % DerefOf (PAUI [0x15])), Local0) M600 (Arg0, 0x0C, Local0, 0xD650A284) Store ((B60A % DerefOf (PAUI [0x16])), Local0) M600 (Arg0, 0x07, Local0, 0x01) /* Method returns Integer */ Store ((B60A % M601 (0x01, 0x15)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A % M601 (0x01, 0x16)), Local0) M600 (Arg0, 0x09, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A % DerefOf (M602 (0x01, 0x15, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A % DerefOf (M602 (0x01, 0x16, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01) } Local0 = (B60A % 0xD650A285) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A % 0xD650A283) M600 (Arg0, 0x0D, Local0, 0x01) Local0 = (B60A % AUIL) /* \AUIL */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A % AUIM) /* \AUIM */ M600 (Arg0, 0x0F, Local0, 0x01) If (Y078) { Local0 = (B60A % DerefOf (RefOf (AUIL))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A % DerefOf (RefOf (AUIM))) M600 (Arg0, 0x11, Local0, 0x01) } Local0 = (B60A % DerefOf (PAUI [0x15])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A % DerefOf (PAUI [0x16])) M600 (Arg0, 0x13, Local0, 0x01) /* Method returns Integer */ Local0 = (B60A % M601 (0x01, 0x15)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A % M601 (0x01, 0x16)) M600 (Arg0, 0x15, Local0, 0x01) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A % DerefOf (M602 (0x01, 0x15, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A % DerefOf (M602 (0x01, 0x16, 0x01))) M600 (Arg0, 0x17, Local0, 0x01) } /* Conversion of the second operand */ Store ((0xD650A285 % B60A), Local0) M600 (Arg0, 0x18, Local0, 0x01) Store ((0xD650A283 % B60A), Local0) M600 (Arg0, 0x19, Local0, 0xD650A283) Store ((AUIL % B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x01) Store ((AUIM % B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A283) If (Y078) { Store ((DerefOf (RefOf (AUIL)) % B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x01) Store ((DerefOf (RefOf (AUIM)) % B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A283) } Store ((DerefOf (PAUI [0x15]) % B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x01) Store ((DerefOf (PAUI [0x16]) % B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A283) /* Method returns Integer */ Store ((M601 (0x01, 0x15) % B60A), Local0) M600 (Arg0, 0x20, Local0, 0x01) Store ((M601 (0x01, 0x16) % B60A), Local0) M600 (Arg0, 0x21, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x15, 0x01)) % B60A), Local0) M600 (Arg0, 0x22, Local0, 0x01) Store ((DerefOf (M602 (0x01, 0x16, 0x01)) % B60A), Local0) M600 (Arg0, 0x23, Local0, 0xD650A283) } Local0 = (0xD650A285 % B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0x01) Local0 = (0xD650A283 % B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xD650A283) Local0 = (AUIL % B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0x01) Local0 = (AUIM % B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xD650A283) If (Y078) { Local0 = (DerefOf (RefOf (AUIL)) % B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0x01) Local0 = (DerefOf (RefOf (AUIM)) % B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xD650A283) } Local0 = (DerefOf (PAUI [0x15]) % B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0x01) Local0 = (DerefOf (PAUI [0x16]) % B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (M601 (0x01, 0x15) % B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0x01) Local0 = (M601 (0x01, 0x16) % B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) % B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0x01) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) % B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xD650A283) } /* Conversion of the both operands */ Store ((B606 % B60A), Local0) M600 (Arg0, 0x30, Local0, 0x0321) Store ((B60A % B606), Local0) M600 (Arg0, 0x31, Local0, 0x0261) Local0 = (B606 % B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0x0321) Local0 = (B60A % B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0x0261) } /* Multiply, common 32-bit/64-bit test */ Method (M047, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B606 * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0321) Store ((B606 * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B606 * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0321) If (Y078) { Store ((B606 * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B606 * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0321) } Store ((B606 * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B606 * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0321) /* Method returns Integer */ Store ((B606 * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B606 * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B606 * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0321) } Local0 = (B606 * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B606 * 0x01) M600 (Arg0, 0x0D, Local0, 0x0321) Local0 = (B606 * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B606 * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0321) If (Y078) { Local0 = (B606 * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B606 * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0321) } Local0 = (B606 * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B606 * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0321) /* Method returns Integer */ Local0 = (B606 * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B606 * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B606 * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0321) } /* Conversion of the second operand */ Store ((0x00 * B606), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * B606), Local0) M600 (Arg0, 0x19, Local0, 0x0321) Store ((AUI5 * B606), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * B606), Local0) M600 (Arg0, 0x1B, Local0, 0x0321) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * B606), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * B606), Local0) M600 (Arg0, 0x1D, Local0, 0x0321) } Store ((DerefOf (PAUI [0x05]) * B606), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * B606), Local0) M600 (Arg0, 0x1F, Local0, 0x0321) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * B606), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * B606), Local0) M600 (Arg0, 0x21, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * B606), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * B606), Local0) M600 (Arg0, 0x23, Local0, 0x0321) } Local0 = (0x00 * B606) /* \B606 */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * B606) /* \B606 */ M600 (Arg0, 0x25, Local0, 0x0321) Local0 = (AUI5 * B606) /* \B606 */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * B606) /* \B606 */ M600 (Arg0, 0x27, Local0, 0x0321) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * B606) /* \B606 */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * B606) /* \B606 */ M600 (Arg0, 0x29, Local0, 0x0321) } Local0 = (DerefOf (PAUI [0x05]) * B606) /* \B606 */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * B606) /* \B606 */ M600 (Arg0, 0x2B, Local0, 0x0321) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * B606) /* \B606 */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * B606) /* \B606 */ M600 (Arg0, 0x2D, Local0, 0x0321) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * B606) /* \B606 */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * B606) /* \B606 */ M600 (Arg0, 0x2F, Local0, 0x0321) } } /* Multiply, 64-bit */ Method (M048, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B60A * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A284) Store ((B60A * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B60A * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((B60A * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B60A * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A284) } Store ((B60A * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B60A * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((B60A * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B60A * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B60A * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A284) } Local0 = (B60A * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B60A * 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A284) Local0 = (B60A * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B60A * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (B60A * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B60A * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A284) } Local0 = (B60A * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B60A * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (B60A * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B60A * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B60A * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A284) } /* Conversion of the second operand */ Store ((0x00 * B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFE7CB391D650A284) Store ((AUI5 * B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFE7CB391D650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFE7CB391D650A284) } Store ((DerefOf (PAUI [0x05]) * B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFE7CB391D650A284) } Local0 = (0x00 * B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xFE7CB391D650A284) Local0 = (AUI5 * B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xFE7CB391D650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xFE7CB391D650A284) } Local0 = (DerefOf (PAUI [0x05]) * B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xFE7CB391D650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xFE7CB391D650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xFE7CB391D650A284) } /* Conversion of the both operands */ Store ((B606 * B60A), Local0) M600 (Arg0, 0x30, Local0, 0x442DDB4F924C7F04) Store ((B60A * B606), Local0) M600 (Arg0, 0x31, Local0, 0x442DDB4F924C7F04) Local0 = (B606 * B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0x442DDB4F924C7F04) Local0 = (B60A * B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0x442DDB4F924C7F04) } /* Multiply, 32-bit */ Method (M049, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A * 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x00) Store ((B60A * 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A284) Store ((B60A * AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x00) Store ((B60A * AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A284) If (Y078) { Store ((B60A * DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x00) Store ((B60A * DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A284) } Store ((B60A * DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x00) Store ((B60A * DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A284) /* Method returns Integer */ Store ((B60A * M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x00) Store ((B60A * M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A * DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x00) Store ((B60A * DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A284) } Local0 = (B60A * 0x00) M600 (Arg0, 0x0C, Local0, 0x00) Local0 = (B60A * 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A284) Local0 = (B60A * AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x00) Local0 = (B60A * AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A284) If (Y078) { Local0 = (B60A * DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x00) Local0 = (B60A * DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A284) } Local0 = (B60A * DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x00) Local0 = (B60A * DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (B60A * M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x00) Local0 = (B60A * M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A * DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x00) Local0 = (B60A * DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A284) } /* Conversion of the second operand */ Store ((0x00 * B60A), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 * B60A), Local0) M600 (Arg0, 0x19, Local0, 0xD650A284) Store ((AUI5 * B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 * B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xD650A284) If (Y078) { Store ((DerefOf (RefOf (AUI5)) * B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) * B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xD650A284) } Store ((DerefOf (PAUI [0x05]) * B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) * B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xD650A284) /* Method returns Integer */ Store ((M601 (0x01, 0x05) * B60A), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) * B60A), Local0) M600 (Arg0, 0x21, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) * B60A), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) * B60A), Local0) M600 (Arg0, 0x23, Local0, 0xD650A284) } Local0 = (0x00 * B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 * B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xD650A284) Local0 = (AUI5 * B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 * B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xD650A284) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) * B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) * B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xD650A284) } Local0 = (DerefOf (PAUI [0x05]) * B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) * B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xD650A284) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) * B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) * B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xD650A284) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) * B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) * B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xD650A284) } /* Conversion of the both operands */ Store ((B606 * B60A), Local0) M600 (Arg0, 0x30, Local0, 0x924C7F04) Store ((B60A * B606), Local0) M600 (Arg0, 0x31, Local0, 0x924C7F04) Local0 = (B606 * B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0x924C7F04) Local0 = (B60A * B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0x924C7F04) } /* NAnd, common 32-bit/64-bit test */ Method (M04A, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (B606, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (B606, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, AUIJ) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (B606, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (B606, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (B606, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (B606, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B606, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (B606, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (B606, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (B606, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (B606, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (B606, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (B606, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B606, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Local0 = NAnd (0x00, B606) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, B606) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NAnd (AUI5, B606) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, B606) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), B606) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), B606) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = NAnd (DerefOf (PAUI [0x05]), B606) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), B606) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), B606) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), B606) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B606) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), B606) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (0x00, B606, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, B606, Local0) M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) NAnd (AUI5, B606, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, B606, Local0) M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), B606, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), B606, Local0) M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } NAnd (DerefOf (PAUI [0x05]), B606, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), B606, Local0) M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), B606, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), B606, Local0) M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B606, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), B606, Local0) M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* NAnd, 64-bit */ Method (M04B, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (B60A, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (B60A, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, AUIJ) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (B60A, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (B60A, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (B60A, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (B60A, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (B60A, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } NAnd (B60A, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) NAnd (B60A, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (B60A, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } NAnd (B60A, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (B60A, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (B60A, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (B60A, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, B60A) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (0xFFFFFFFFFFFFFFFF, B60A) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Local0 = NAnd (AUI5, B60A) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (AUIJ, B60A) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), B60A) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUIJ)), B60A) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), B60A) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x13]), B60A) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), B60A) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x13), B60A) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B60A) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), B60A) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } NAnd (0x00, B60A, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (0xFFFFFFFFFFFFFFFF, B60A, Local0) M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) NAnd (AUI5, B60A, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (AUIJ, B60A, Local0) M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), B60A, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (RefOf (AUIJ)), B60A, Local0) M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), B60A, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (PAUI [0x13]), B60A, Local0) M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), B60A, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (M601 (0x01, 0x13), B60A, Local0) M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B60A, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x13, 0x01)), B60A, Local0) M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (B606, B60A) M600 (Arg0, 0x30, Local0, 0xFFFFFFFFFFFFFDFF) Local0 = NAnd (B60A, B606) M600 (Arg0, 0x31, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (B606, B60A, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFFFFFFFFFDFF) NAnd (B60A, B606, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFFFFFFFFFDFF) } /* NAnd, 32-bit */ Method (M04C, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NAnd (B60A, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Local0 = NAnd (B60A, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, AUII) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (B60A, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Local0 = NAnd (B60A, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (B60A, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (B60A, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFF) Local0 = NAnd (B60A, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } NAnd (B60A, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFF) NAnd (B60A, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) NAnd (B60A, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFF) NAnd (B60A, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { NAnd (B60A, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFF) NAnd (B60A, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } NAnd (B60A, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFF) NAnd (B60A, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (B60A, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFF) NAnd (B60A, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (B60A, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFF) NAnd (B60A, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Local0 = NAnd (0x00, B60A) M600 (Arg0, 0x18, Local0, 0xFFFFFFFF) Local0 = NAnd (0xFFFFFFFF, B60A) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Local0 = NAnd (AUI5, B60A) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFF) Local0 = NAnd (AUII, B60A) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Local0 = NAnd (DerefOf (RefOf (AUI5)), B60A) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (RefOf (AUII)), B60A) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Local0 = NAnd (DerefOf (PAUI [0x05]), B60A) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (PAUI [0x12]), B60A) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = NAnd (M601 (0x01, 0x05), B60A) M600 (Arg0, 0x20, Local0, 0xFFFFFFFF) Local0 = NAnd (M601 (0x01, 0x12), B60A) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B60A) M600 (Arg0, 0x22, Local0, 0xFFFFFFFF) Local0 = NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), B60A) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } NAnd (0x00, B60A, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFF) NAnd (0xFFFFFFFF, B60A, Local0) M600 (Arg0, 0x25, Local0, 0x29AF5D7B) NAnd (AUI5, B60A, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFF) NAnd (AUII, B60A, Local0) M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { NAnd (DerefOf (RefOf (AUI5)), B60A, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFF) NAnd (DerefOf (RefOf (AUII)), B60A, Local0) M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } NAnd (DerefOf (PAUI [0x05]), B60A, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFF) NAnd (DerefOf (PAUI [0x12]), B60A, Local0) M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ NAnd (M601 (0x01, 0x05), B60A, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFF) NAnd (M601 (0x01, 0x12), B60A, Local0) M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { NAnd (DerefOf (M602 (0x01, 0x05, 0x01)), B60A, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFF) NAnd (DerefOf (M602 (0x01, 0x12, 0x01)), B60A, Local0) M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Local0 = NAnd (B606, B60A) M600 (Arg0, 0x30, Local0, 0xFFFFFDFF) Local0 = NAnd (B60A, B606) M600 (Arg0, 0x31, Local0, 0xFFFFFDFF) NAnd (B606, B60A, Local0) M600 (Arg0, 0x32, Local0, 0xFFFFFDFF) NAnd (B60A, B606, Local0) M600 (Arg0, 0x33, Local0, 0xFFFFFDFF) } /* NOr, common 32-bit/64-bit test */ Method (M04D, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (B606, 0x00) M600 (Arg0, 0x00, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (B606, AUI5) M600 (Arg0, 0x02, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (B606, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (B606, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (B606, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (B606, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (B606, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (B606, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (B606, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (B606, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (B606, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (B606, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (B606, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0xFFFFFFFFFFFFFCDE) NOr (B606, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, B606) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (0xFFFFFFFFFFFFFFFF, B606) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, B606) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (AUIJ, B606) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), B606) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (RefOf (AUIJ)), B606) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), B606) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (PAUI [0x13]), B606) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), B606) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (M601 (0x01, 0x13), B606) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B606) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), B606) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, B606, Local0) M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDE) NOr (0xFFFFFFFFFFFFFFFF, B606, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, B606, Local0) M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDE) NOr (AUIJ, B606, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), B606, Local0) M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (RefOf (AUIJ)), B606, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), B606, Local0) M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (PAUI [0x13]), B606, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), B606, Local0) M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDE) NOr (M601 (0x01, 0x13), B606, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B606, Local0) M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDE) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), B606, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } } /* NOr, 64-bit */ Method (M04E, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (B60A, 0x00) M600 (Arg0, 0x00, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (B60A, AUI5) M600 (Arg0, 0x02, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, AUIJ) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (B60A, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (B60A, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, DerefOf (PAUI [0x13])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (B60A, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, M601 (0x01, 0x13)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (B60A, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (B60A, DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (B60A, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x01834C6E29AF5D7B) NOr (B60A, 0xFFFFFFFFFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (B60A, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x01834C6E29AF5D7B) NOr (B60A, AUIJ, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (B60A, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x01834C6E29AF5D7B) NOr (B60A, DerefOf (RefOf (AUIJ)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (B60A, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x01834C6E29AF5D7B) NOr (B60A, DerefOf (PAUI [0x13]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (B60A, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x01834C6E29AF5D7B) NOr (B60A, M601 (0x01, 0x13), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (B60A, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x01834C6E29AF5D7B) NOr (B60A, DerefOf (M602 (0x01, 0x13, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, B60A) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (0xFFFFFFFFFFFFFFFF, B60A) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, B60A) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (AUIJ, B60A) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), B60A) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUIJ)), B60A) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), B60A) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x13]), B60A) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), B60A) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (M601 (0x01, 0x13), B60A) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B60A) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x13, 0x01)), B60A) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, B60A, Local0) M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7B) NOr (0xFFFFFFFFFFFFFFFF, B60A, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, B60A, Local0) M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7B) NOr (AUIJ, B60A, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), B60A, Local0) M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (RefOf (AUIJ)), B60A, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), B60A, Local0) M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (PAUI [0x13]), B60A, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), B60A, Local0) M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7B) NOr (M601 (0x01, 0x13), B60A, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B60A, Local0) M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7B) NOr (DerefOf (M602 (0x01, 0x13, 0x01)), B60A, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (B606, B60A) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF5C5A) Local0 = NOr (B60A, B606) M600 (Arg0, 0x31, Local0, 0x01834C6E29AF5C5A) NOr (B606, B60A, Local0) M600 (Arg0, 0x32, Local0, 0x01834C6E29AF5C5A) NOr (B60A, B606, Local0) M600 (Arg0, 0x33, Local0, 0x01834C6E29AF5C5A) } /* NOr, 32-bit */ Method (M04F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = NOr (B60A, 0x00) M600 (Arg0, 0x00, Local0, 0x29AF5D7B) Local0 = NOr (B60A, 0xFFFFFFFF) M600 (Arg0, 0x01, Local0, 0x00) Local0 = NOr (B60A, AUI5) M600 (Arg0, 0x02, Local0, 0x29AF5D7B) Local0 = NOr (B60A, AUII) M600 (Arg0, 0x03, Local0, 0x00) If (Y078) { Local0 = NOr (B60A, DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, 0x29AF5D7B) Local0 = NOr (B60A, DerefOf (RefOf (AUII))) M600 (Arg0, 0x05, Local0, 0x00) } Local0 = NOr (B60A, DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, 0x29AF5D7B) Local0 = NOr (B60A, DerefOf (PAUI [0x12])) M600 (Arg0, 0x07, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (B60A, M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, 0x29AF5D7B) Local0 = NOr (B60A, M601 (0x01, 0x12)) M600 (Arg0, 0x09, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (B60A, DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, 0x29AF5D7B) Local0 = NOr (B60A, DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x0B, Local0, 0x00) } NOr (B60A, 0x00, Local0) M600 (Arg0, 0x0C, Local0, 0x29AF5D7B) NOr (B60A, 0xFFFFFFFF, Local0) M600 (Arg0, 0x0D, Local0, 0x00) NOr (B60A, AUI5, Local0) M600 (Arg0, 0x0E, Local0, 0x29AF5D7B) NOr (B60A, AUII, Local0) M600 (Arg0, 0x0F, Local0, 0x00) If (Y078) { NOr (B60A, DerefOf (RefOf (AUI5)), Local0) M600 (Arg0, 0x10, Local0, 0x29AF5D7B) NOr (B60A, DerefOf (RefOf (AUII)), Local0) M600 (Arg0, 0x11, Local0, 0x00) } NOr (B60A, DerefOf (PAUI [0x05]), Local0) M600 (Arg0, 0x12, Local0, 0x29AF5D7B) NOr (B60A, DerefOf (PAUI [0x12]), Local0) M600 (Arg0, 0x13, Local0, 0x00) /* Method returns Integer */ NOr (B60A, M601 (0x01, 0x05), Local0) M600 (Arg0, 0x14, Local0, 0x29AF5D7B) NOr (B60A, M601 (0x01, 0x12), Local0) M600 (Arg0, 0x15, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (B60A, DerefOf (M602 (0x01, 0x05, 0x01)), Local0) M600 (Arg0, 0x16, Local0, 0x29AF5D7B) NOr (B60A, DerefOf (M602 (0x01, 0x12, 0x01)), Local0) M600 (Arg0, 0x17, Local0, 0x00) } /* Conversion of the second operand */ Local0 = NOr (0x00, B60A) M600 (Arg0, 0x18, Local0, 0x29AF5D7B) Local0 = NOr (0xFFFFFFFF, B60A) M600 (Arg0, 0x19, Local0, 0x00) Local0 = NOr (AUI5, B60A) M600 (Arg0, 0x1A, Local0, 0x29AF5D7B) Local0 = NOr (AUII, B60A) M600 (Arg0, 0x1B, Local0, 0x00) If (Y078) { Local0 = NOr (DerefOf (RefOf (AUI5)), B60A) M600 (Arg0, 0x1C, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (RefOf (AUII)), B60A) M600 (Arg0, 0x1D, Local0, 0x00) } Local0 = NOr (DerefOf (PAUI [0x05]), B60A) M600 (Arg0, 0x1E, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (PAUI [0x12]), B60A) M600 (Arg0, 0x1F, Local0, 0x00) /* Method returns Integer */ Local0 = NOr (M601 (0x01, 0x05), B60A) M600 (Arg0, 0x20, Local0, 0x29AF5D7B) Local0 = NOr (M601 (0x01, 0x12), B60A) M600 (Arg0, 0x21, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { Local0 = NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B60A) M600 (Arg0, 0x22, Local0, 0x29AF5D7B) Local0 = NOr (DerefOf (M602 (0x01, 0x12, 0x01)), B60A) M600 (Arg0, 0x23, Local0, 0x00) } NOr (0x00, B60A, Local0) M600 (Arg0, 0x24, Local0, 0x29AF5D7B) NOr (0xFFFFFFFF, B60A, Local0) M600 (Arg0, 0x25, Local0, 0x00) NOr (AUI5, B60A, Local0) M600 (Arg0, 0x26, Local0, 0x29AF5D7B) NOr (AUII, B60A, Local0) M600 (Arg0, 0x27, Local0, 0x00) If (Y078) { NOr (DerefOf (RefOf (AUI5)), B60A, Local0) M600 (Arg0, 0x28, Local0, 0x29AF5D7B) NOr (DerefOf (RefOf (AUII)), B60A, Local0) M600 (Arg0, 0x29, Local0, 0x00) } NOr (DerefOf (PAUI [0x05]), B60A, Local0) M600 (Arg0, 0x2A, Local0, 0x29AF5D7B) NOr (DerefOf (PAUI [0x12]), B60A, Local0) M600 (Arg0, 0x2B, Local0, 0x00) /* Method returns Integer */ NOr (M601 (0x01, 0x05), B60A, Local0) M600 (Arg0, 0x2C, Local0, 0x29AF5D7B) NOr (M601 (0x01, 0x12), B60A, Local0) M600 (Arg0, 0x2D, Local0, 0x00) /* Method returns Reference to Integer */ If (Y500) { NOr (DerefOf (M602 (0x01, 0x05, 0x01)), B60A, Local0) M600 (Arg0, 0x2E, Local0, 0x29AF5D7B) NOr (DerefOf (M602 (0x01, 0x12, 0x01)), B60A, Local0) M600 (Arg0, 0x2F, Local0, 0x00) } /* Conversion of the both operands */ Local0 = NOr (B606, B60A) M600 (Arg0, 0x30, Local0, 0x29AF5C5A) Local0 = NOr (B60A, B606) M600 (Arg0, 0x31, Local0, 0x29AF5C5A) NOr (B606, B60A, Local0) M600 (Arg0, 0x32, Local0, 0x29AF5C5A) NOr (B60A, B606, Local0) M600 (Arg0, 0x33, Local0, 0x29AF5C5A) } /* Or, common 32-bit/64-bit test */ Method (M050, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((B606 | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((B606 | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((B606 | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((B606 | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (B606 | 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (B606 | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (B606 | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (B606 | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (B606 | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | B606), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF | B606), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | B606), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ | B606), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | B606), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) | B606), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | B606), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) | B606), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | B606), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) | B606), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | B606), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | B606), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | B606) /* \B606 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF | B606) /* \B606 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | B606) /* \B606 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ | B606) /* \B606 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | B606) /* \B606 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) | B606) /* \B606 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | B606) /* \B606 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) | B606) /* \B606 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | B606) /* \B606 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) | B606) /* \B606 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | B606) /* \B606 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | B606) /* \B606 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } } /* Or, 64-bit */ Method (M051, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A | 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFFFF) Store ((B60A | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A | AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((B60A | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A | DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((B60A | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A | DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((B60A | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A | M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A | DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (B60A | 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A | 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (B60A | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A | AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (B60A | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A | DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (B60A | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A | DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (B60A | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A | M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A | DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | B60A), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF | B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFFFF) Store ((AUI5 | B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ | B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) | B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) | B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | B60A), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) | B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | B60A), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) | B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (0x00 | B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF | B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFFFF) Local0 = (AUI5 | B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ | B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) | B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) | B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) | B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) | B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFFFF) } /* Conversion of the both operands */ Store ((B606 | B60A), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A3A5) Store ((B60A | B606), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A3A5) Local0 = (B606 | B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A3A5) Local0 = (B60A | B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A3A5) } /* Or, 32-bit */ Method (M052, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A | 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A | 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFF) Store ((B60A | AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A | AUII), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFF) If (Y078) { Store ((B60A | DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A | DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFF) } Store ((B60A | DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A | DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((B60A | M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A | M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A | DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A | DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFF) } Local0 = (B60A | 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A | 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFF) Local0 = (B60A | AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A | AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (B60A | DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A | DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFF) } Local0 = (B60A | DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A | DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (B60A | M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A | M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A | DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A | DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFF) } /* Conversion of the second operand */ Store ((0x00 | B60A), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF | B60A), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFF) Store ((AUI5 | B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII | B60A), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFF) If (Y078) { Store ((DerefOf (RefOf (AUI5)) | B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) | B60A), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFF) } Store ((DerefOf (PAUI [0x05]) | B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) | B60A), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFF) /* Method returns Integer */ Store ((M601 (0x01, 0x05) | B60A), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) | B60A), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) | B60A), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) | B60A), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFF) } Local0 = (0x00 | B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF | B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFF) Local0 = (AUI5 | B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII | B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFF) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) | B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) | B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFF) } Local0 = (DerefOf (PAUI [0x05]) | B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) | B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFF) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) | B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) | B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFF) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) | B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) | B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFF) } /* Conversion of the both operands */ Store ((B606 | B60A), Local0) M600 (Arg0, 0x30, Local0, 0xD650A3A5) Store ((B60A | B606), Local0) M600 (Arg0, 0x31, Local0, 0xD650A3A5) Local0 = (B606 | B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0xD650A3A5) Local0 = (B60A | B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0xD650A3A5) } /* ShiftLeft, common 32-bit/64-bit test */ Method (M053, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0642) Store ((B606 << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0642) If (Y078) { Store ((B606 << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0642) } Store ((B606 << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0642) /* Method returns Integer */ Store ((B606 << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0642) } Local0 = (B606 << 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 << 0x01) M600 (Arg0, 0x0D, Local0, 0x0642) Local0 = (B606 << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0642) If (Y078) { Local0 = (B606 << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0642) } Local0 = (B606 << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0642) /* Method returns Integer */ Local0 = (B606 << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0642) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0642) } /* Conversion of the second operand */ Store ((0x00 << B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << B60E), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << B60E), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << B60E), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << B60E) /* \B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << B60E) /* \B60E */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << B60E) /* \B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << B60E) /* \B60E */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << B60E) /* \B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << B60E) /* \B60E */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << B60E) /* \B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << B60E) /* \B60E */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << B60E) /* \B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << B60E) /* \B60E */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << B60E) /* \B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << B60E) /* \B60E */ M600 (Arg0, 0x2F, Local0, 0x0800) } } /* ShiftLeft, 64-bit */ Method (M054, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFCF96723ACA14508) Store ((B60A << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFCF96723ACA14508) If (Y078) { Store ((B60A << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFCF96723ACA14508) } Store ((B60A << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Store ((B60A << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFCF96723ACA14508) } Local0 = (B60A << 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A << 0x01) M600 (Arg0, 0x0D, Local0, 0xFCF96723ACA14508) Local0 = (B60A << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFCF96723ACA14508) If (Y078) { Local0 = (B60A << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFCF96723ACA14508) } Local0 = (B60A << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFCF96723ACA14508) /* Method returns Integer */ Local0 = (B60A << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFCF96723ACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFCF96723ACA14508) } /* Conversion of the second operand */ Store ((0x00 << B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << B60E), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << B60E), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << B60E), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << B60E) /* \B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << B60E) /* \B60E */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << B60E) /* \B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << B60E) /* \B60E */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << B60E) /* \B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << B60E) /* \B60E */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << B60E) /* \B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << B60E) /* \B60E */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << B60E) /* \B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << B60E) /* \B60E */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << B60E) /* \B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << B60E) /* \B60E */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((B606 << B60E), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((B60A << B60E), Local0) M600 (Arg0, 0x31, Local0, 0xE59C8EB285142000) Local0 = (B606 << B60E) /* \B60E */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (B60A << B60E) /* \B60E */ M600 (Arg0, 0x33, Local0, 0xE59C8EB285142000) } /* ShiftLeft, 32-bit */ Method (M055, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A << 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A << 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xACA14508) Store ((B60A << AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A << AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xACA14508) If (Y078) { Store ((B60A << DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A << DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xACA14508) } Store ((B60A << DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A << DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xACA14508) /* Method returns Integer */ Store ((B60A << M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A << M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A << DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A << DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xACA14508) } Local0 = (B60A << 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A << 0x01) M600 (Arg0, 0x0D, Local0, 0xACA14508) Local0 = (B60A << AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A << AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xACA14508) If (Y078) { Local0 = (B60A << DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A << DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xACA14508) } Local0 = (B60A << DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A << DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xACA14508) /* Method returns Integer */ Local0 = (B60A << M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A << M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xACA14508) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A << DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A << DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xACA14508) } /* Conversion of the second operand */ Store ((0x00 << B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0x01 << B60E), Local0) M600 (Arg0, 0x19, Local0, 0x0800) Store ((AUI5 << B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI6 << B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x0800) If (Y078) { Store ((DerefOf (RefOf (AUI5)) << B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI6)) << B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x0800) } Store ((DerefOf (PAUI [0x05]) << B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x06]) << B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x0800) /* Method returns Integer */ Store ((M601 (0x01, 0x05) << B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x06) << B60E), Local0) M600 (Arg0, 0x21, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) << B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) << B60E), Local0) M600 (Arg0, 0x23, Local0, 0x0800) } Local0 = (0x00 << B60E) /* \B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0x01 << B60E) /* \B60E */ M600 (Arg0, 0x25, Local0, 0x0800) Local0 = (AUI5 << B60E) /* \B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI6 << B60E) /* \B60E */ M600 (Arg0, 0x27, Local0, 0x0800) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) << B60E) /* \B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI6)) << B60E) /* \B60E */ M600 (Arg0, 0x29, Local0, 0x0800) } Local0 = (DerefOf (PAUI [0x05]) << B60E) /* \B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x06]) << B60E) /* \B60E */ M600 (Arg0, 0x2B, Local0, 0x0800) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) << B60E) /* \B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x06) << B60E) /* \B60E */ M600 (Arg0, 0x2D, Local0, 0x0800) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) << B60E) /* \B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) << B60E) /* \B60E */ M600 (Arg0, 0x2F, Local0, 0x0800) } /* Conversion of the both operands */ Store ((B606 << B60E), Local0) M600 (Arg0, 0x30, Local0, 0x00190800) Store ((B60A << B60E), Local0) M600 (Arg0, 0x31, Local0, 0x85142000) Local0 = (B606 << B60E) /* \B60E */ M600 (Arg0, 0x32, Local0, 0x00190800) Local0 = (B60A << B60E) /* \B60E */ M600 (Arg0, 0x33, Local0, 0x85142000) } /* ShiftRight, common 32-bit/64-bit test */ Method (M056, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0190) Store ((B606 >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0190) If (Y078) { Store ((B606 >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0190) } Store ((B606 >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0190) /* Method returns Integer */ Store ((B606 >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0190) } Local0 = (B606 >> 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 >> 0x01) M600 (Arg0, 0x0D, Local0, 0x0190) Local0 = (B606 >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0190) If (Y078) { Local0 = (B606 >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0190) } Local0 = (B606 >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0190) /* Method returns Integer */ Local0 = (B606 >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0190) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0190) } /* Conversion of the second operand */ Store ((0x0321 >> B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> B60E), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> B60E), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> B60E), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> B60E) /* \B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> B60E) /* \B60E */ M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> B60E) /* \B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> B60E) /* \B60E */ M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> B60E) /* \B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> B60E) /* \B60E */ M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> B60E) /* \B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> B60E) /* \B60E */ M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> B60E) /* \B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> B60E) /* \B60E */ M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E) /* \B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> B60E) /* \B60E */ M600 (Arg0, 0x2F, Local0, 0x001ACA14) } } /* ShiftRight, 64-bit */ Method (M057, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x7F3E59C8EB285142) Store ((B60A >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x7F3E59C8EB285142) If (Y078) { Store ((B60A >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x7F3E59C8EB285142) } Store ((B60A >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Store ((B60A >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x7F3E59C8EB285142) } Local0 = (B60A >> 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> 0x01) M600 (Arg0, 0x0D, Local0, 0x7F3E59C8EB285142) Local0 = (B60A >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x7F3E59C8EB285142) If (Y078) { Local0 = (B60A >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x7F3E59C8EB285142) } Local0 = (B60A >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x7F3E59C8EB285142) /* Method returns Integer */ Local0 = (B60A >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x7F3E59C8EB285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x7F3E59C8EB285142) } /* Conversion of the second operand */ Store ((0x0321 >> B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xFE7CB391D650A284 >> B60E), Local0) M600 (Arg0, 0x19, Local0, 0x001FCF96723ACA14) Store ((AUI1 >> B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUI4 >> B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x001FCF96723ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUI4)) >> B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x001FCF96723ACA14) } Store ((DerefOf (PAUI [0x01]) >> B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x04]) >> B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x04) >> B60E), Local0) M600 (Arg0, 0x21, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x04, 0x01)) >> B60E), Local0) M600 (Arg0, 0x23, Local0, 0x001FCF96723ACA14) } Local0 = (0x0321 >> B60E) /* \B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xFE7CB391D650A284 >> B60E) /* \B60E */ M600 (Arg0, 0x25, Local0, 0x001FCF96723ACA14) Local0 = (AUI1 >> B60E) /* \B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUI4 >> B60E) /* \B60E */ M600 (Arg0, 0x27, Local0, 0x001FCF96723ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> B60E) /* \B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUI4)) >> B60E) /* \B60E */ M600 (Arg0, 0x29, Local0, 0x001FCF96723ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> B60E) /* \B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x04]) >> B60E) /* \B60E */ M600 (Arg0, 0x2B, Local0, 0x001FCF96723ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> B60E) /* \B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x04) >> B60E) /* \B60E */ M600 (Arg0, 0x2D, Local0, 0x001FCF96723ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E) /* \B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >> B60E) /* \B60E */ M600 (Arg0, 0x2F, Local0, 0x001FCF96723ACA14) } /* Conversion of the both operands */ Store ((B606 >> B60E), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((B60A >> B60E), Local0) M600 (Arg0, 0x31, Local0, 0x001FCF96723ACA14) Local0 = (B606 >> B60E) /* \B60E */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (B60A >> B60E) /* \B60E */ M600 (Arg0, 0x33, Local0, 0x001FCF96723ACA14) } /* ShiftRight, 32-bit */ Method (M058, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A >> 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A >> 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x6B285142) Store ((B60A >> AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A >> AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x6B285142) If (Y078) { Store ((B60A >> DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A >> DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x6B285142) } Store ((B60A >> DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A >> DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x6B285142) /* Method returns Integer */ Store ((B60A >> M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A >> M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A >> DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A >> DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x6B285142) } Local0 = (B60A >> 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A >> 0x01) M600 (Arg0, 0x0D, Local0, 0x6B285142) Local0 = (B60A >> AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A >> AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x6B285142) If (Y078) { Local0 = (B60A >> DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A >> DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x6B285142) } Local0 = (B60A >> DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A >> DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x6B285142) /* Method returns Integer */ Local0 = (B60A >> M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A >> M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x6B285142) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A >> DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A >> DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x6B285142) } /* Conversion of the second operand */ Store ((0x0321 >> B60E), Local0) M600 (Arg0, 0x18, Local0, 0x00) Store ((0xD650A284 >> B60E), Local0) M600 (Arg0, 0x19, Local0, 0x001ACA14) Store ((AUI1 >> B60E), Local0) M600 (Arg0, 0x1A, Local0, 0x00) Store ((AUIK >> B60E), Local0) M600 (Arg0, 0x1B, Local0, 0x001ACA14) If (Y078) { Store ((DerefOf (RefOf (AUI1)) >> B60E), Local0) M600 (Arg0, 0x1C, Local0, 0x00) Store ((DerefOf (RefOf (AUIK)) >> B60E), Local0) M600 (Arg0, 0x1D, Local0, 0x001ACA14) } Store ((DerefOf (PAUI [0x01]) >> B60E), Local0) M600 (Arg0, 0x1E, Local0, 0x00) Store ((DerefOf (PAUI [0x14]) >> B60E), Local0) M600 (Arg0, 0x1F, Local0, 0x001ACA14) /* Method returns Integer */ Store ((M601 (0x01, 0x01) >> B60E), Local0) M600 (Arg0, 0x20, Local0, 0x00) Store ((M601 (0x01, 0x14) >> B60E), Local0) M600 (Arg0, 0x21, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E), Local0) M600 (Arg0, 0x22, Local0, 0x00) Store ((DerefOf (M602 (0x01, 0x14, 0x01)) >> B60E), Local0) M600 (Arg0, 0x23, Local0, 0x001ACA14) } Local0 = (0x0321 >> B60E) /* \B60E */ M600 (Arg0, 0x24, Local0, 0x00) Local0 = (0xD650A284 >> B60E) /* \B60E */ M600 (Arg0, 0x25, Local0, 0x001ACA14) Local0 = (AUI1 >> B60E) /* \B60E */ M600 (Arg0, 0x26, Local0, 0x00) Local0 = (AUIK >> B60E) /* \B60E */ M600 (Arg0, 0x27, Local0, 0x001ACA14) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >> B60E) /* \B60E */ M600 (Arg0, 0x28, Local0, 0x00) Local0 = (DerefOf (RefOf (AUIK)) >> B60E) /* \B60E */ M600 (Arg0, 0x29, Local0, 0x001ACA14) } Local0 = (DerefOf (PAUI [0x01]) >> B60E) /* \B60E */ M600 (Arg0, 0x2A, Local0, 0x00) Local0 = (DerefOf (PAUI [0x14]) >> B60E) /* \B60E */ M600 (Arg0, 0x2B, Local0, 0x001ACA14) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >> B60E) /* \B60E */ M600 (Arg0, 0x2C, Local0, 0x00) Local0 = (M601 (0x01, 0x14) >> B60E) /* \B60E */ M600 (Arg0, 0x2D, Local0, 0x001ACA14) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >> B60E) /* \B60E */ M600 (Arg0, 0x2E, Local0, 0x00) Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >> B60E) /* \B60E */ M600 (Arg0, 0x2F, Local0, 0x001ACA14) } /* Conversion of the both operands */ Store ((B606 >> B60E), Local0) M600 (Arg0, 0x30, Local0, 0x00) Store ((B60A >> B60E), Local0) M600 (Arg0, 0x31, Local0, 0x001ACA14) Local0 = (B606 >> B60E) /* \B60E */ M600 (Arg0, 0x32, Local0, 0x00) Local0 = (B60A >> B60E) /* \B60E */ M600 (Arg0, 0x33, Local0, 0x001ACA14) } /* Subtract, common 32-bit/64-bit test */ Method (M059, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0x0320) Store ((B606 - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0x0320) If (Y078) { Store ((B606 - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0x0320) } Store ((B606 - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0x0320) /* Method returns Integer */ Store ((B606 - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x0320) } Local0 = (B606 - 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 - 0x01) M600 (Arg0, 0x0D, Local0, 0x0320) Local0 = (B606 - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0x0320) If (Y078) { Local0 = (B606 - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0x0320) } Local0 = (B606 - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0x0320) /* Method returns Integer */ Local0 = (B606 - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0x0320) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0x0320) } /* Conversion of the second operand */ Store ((0x00 - B606), Local0) M600 (Arg0, 0x18, Local0, 0xFFFFFFFFFFFFFCDF) Store ((0x01 - B606), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCE0) Store ((AUI5 - B606), Local0) M600 (Arg0, 0x1A, Local0, 0xFFFFFFFFFFFFFCDF) Store ((AUI6 - B606), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - B606), Local0) M600 (Arg0, 0x1C, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (RefOf (AUI6)) - B606), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCE0) } Store ((DerefOf (PAUI [0x05]) - B606), Local0) M600 (Arg0, 0x1E, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (PAUI [0x06]) - B606), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - B606), Local0) M600 (Arg0, 0x20, Local0, 0xFFFFFFFFFFFFFCDF) Store ((M601 (0x01, 0x06) - B606), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - B606), Local0) M600 (Arg0, 0x22, Local0, 0xFFFFFFFFFFFFFCDF) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - B606), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (0x00 - B606) /* \B606 */ M600 (Arg0, 0x24, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (0x01 - B606) /* \B606 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCE0) Local0 = (AUI5 - B606) /* \B606 */ M600 (Arg0, 0x26, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (AUI6 - B606) /* \B606 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCE0) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - B606) /* \B606 */ M600 (Arg0, 0x28, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (RefOf (AUI6)) - B606) /* \B606 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCE0) } Local0 = (DerefOf (PAUI [0x05]) - B606) /* \B606 */ M600 (Arg0, 0x2A, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (PAUI [0x06]) - B606) /* \B606 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - B606) /* \B606 */ M600 (Arg0, 0x2C, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (M601 (0x01, 0x06) - B606) /* \B606 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCE0) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - B606) /* \B606 */ M600 (Arg0, 0x2E, Local0, 0xFFFFFFFFFFFFFCDF) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - B606) /* \B606 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCE0) } } /* Subtract, 64-bit */ Method (M05A, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xFE7CB391D650A283) Store ((B60A - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xFE7CB391D650A283) If (Y078) { Store ((B60A - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xFE7CB391D650A283) } Store ((B60A - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Store ((B60A - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFE7CB391D650A283) } Local0 = (B60A - 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A - 0x01) M600 (Arg0, 0x0D, Local0, 0xFE7CB391D650A283) Local0 = (B60A - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xFE7CB391D650A283) If (Y078) { Local0 = (B60A - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xFE7CB391D650A283) } Local0 = (B60A - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xFE7CB391D650A283) /* Method returns Integer */ Local0 = (B60A - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xFE7CB391D650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xFE7CB391D650A283) } /* Conversion of the second operand */ Store ((0x00 - B60A), Local0) M600 (Arg0, 0x18, Local0, 0x01834C6E29AF5D7C) Store ((0x01 - B60A), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7D) Store ((AUI5 - B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x01834C6E29AF5D7C) Store ((AUI6 - B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (PAUI [0x06]) - B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - B60A), Local0) M600 (Arg0, 0x20, Local0, 0x01834C6E29AF5D7C) Store ((M601 (0x01, 0x06) - B60A), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - B60A), Local0) M600 (Arg0, 0x22, Local0, 0x01834C6E29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - B60A), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7D) } Local0 = (0x00 - B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0x01834C6E29AF5D7C) Local0 = (0x01 - B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7D) Local0 = (AUI5 - B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0x01834C6E29AF5D7C) Local0 = (AUI6 - B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0x01834C6E29AF5D7C) Local0 = (M601 (0x01, 0x06) - B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0x01834C6E29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7D) } /* Conversion of the both operands */ Store ((B606 - B60A), Local0) M600 (Arg0, 0x30, Local0, 0x01834C6E29AF609D) Store ((B60A - B606), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D6509F63) Local0 = (B606 - B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0x01834C6E29AF609D) Local0 = (B60A - B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D6509F63) } /* Subtract, 32-bit */ Method (M05B, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A - 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A - 0x01), Local0) M600 (Arg0, 0x01, Local0, 0xD650A283) Store ((B60A - AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A - AUI6), Local0) M600 (Arg0, 0x03, Local0, 0xD650A283) If (Y078) { Store ((B60A - DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A - DerefOf (RefOf (AUI6))), Local0) M600 (Arg0, 0x05, Local0, 0xD650A283) } Store ((B60A - DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A - DerefOf (PAUI [0x06])), Local0) M600 (Arg0, 0x07, Local0, 0xD650A283) /* Method returns Integer */ Store ((B60A - M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A - M601 (0x01, 0x06)), Local0) M600 (Arg0, 0x09, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A - DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A - DerefOf (M602 (0x01, 0x06, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xD650A283) } Local0 = (B60A - 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A - 0x01) M600 (Arg0, 0x0D, Local0, 0xD650A283) Local0 = (B60A - AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A - AUI6) /* \AUI6 */ M600 (Arg0, 0x0F, Local0, 0xD650A283) If (Y078) { Local0 = (B60A - DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A - DerefOf (RefOf (AUI6))) M600 (Arg0, 0x11, Local0, 0xD650A283) } Local0 = (B60A - DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A - DerefOf (PAUI [0x06])) M600 (Arg0, 0x13, Local0, 0xD650A283) /* Method returns Integer */ Local0 = (B60A - M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A - M601 (0x01, 0x06)) M600 (Arg0, 0x15, Local0, 0xD650A283) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A - DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A - DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x17, Local0, 0xD650A283) } /* Conversion of the second operand */ Store ((0x00 - B60A), Local0) M600 (Arg0, 0x18, Local0, 0x29AF5D7C) Store ((0x01 - B60A), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7D) Store ((AUI5 - B60A), Local0) M600 (Arg0, 0x1A, Local0, 0x29AF5D7C) Store ((AUI6 - B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7D) If (Y078) { Store ((DerefOf (RefOf (AUI5)) - B60A), Local0) M600 (Arg0, 0x1C, Local0, 0x29AF5D7C) Store ((DerefOf (RefOf (AUI6)) - B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7D) } Store ((DerefOf (PAUI [0x05]) - B60A), Local0) M600 (Arg0, 0x1E, Local0, 0x29AF5D7C) Store ((DerefOf (PAUI [0x06]) - B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7D) /* Method returns Integer */ Store ((M601 (0x01, 0x05) - B60A), Local0) M600 (Arg0, 0x20, Local0, 0x29AF5D7C) Store ((M601 (0x01, 0x06) - B60A), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) - B60A), Local0) M600 (Arg0, 0x22, Local0, 0x29AF5D7C) Store ((DerefOf (M602 (0x01, 0x06, 0x01)) - B60A), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7D) } Local0 = (0x00 - B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0x29AF5D7C) Local0 = (0x01 - B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0x29AF5D7D) Local0 = (AUI5 - B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0x29AF5D7C) Local0 = (AUI6 - B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0x29AF5D7D) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) - B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0x29AF5D7C) Local0 = (DerefOf (RefOf (AUI6)) - B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0x29AF5D7D) } Local0 = (DerefOf (PAUI [0x05]) - B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0x29AF5D7C) Local0 = (DerefOf (PAUI [0x06]) - B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0x29AF5D7D) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) - B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0x29AF5D7C) Local0 = (M601 (0x01, 0x06) - B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0x29AF5D7D) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) - B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0x29AF5D7C) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) - B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0x29AF5D7D) } /* Conversion of the both operands */ Store ((B606 - B60A), Local0) M600 (Arg0, 0x30, Local0, 0x29AF609D) Store ((B60A - B606), Local0) M600 (Arg0, 0x31, Local0, 0xD6509F63) Local0 = (B606 - B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0x29AF609D) Local0 = (B60A - B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0xD6509F63) } /* XOr, common 32-bit/64-bit test */ Method (M05C, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B606 ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0x0321) Store ((B606 ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0xFFFFFFFFFFFFFCDE) Store ((B606 ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0x0321) Store ((B606 ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((B606 ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0x0321) Store ((B606 ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((B606 ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0x0321) Store ((B606 ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((B606 ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0x0321) Store ((B606 ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((B606 ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0x0321) Store ((B606 ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (B606 ^ 0x00) M600 (Arg0, 0x0C, Local0, 0x0321) Local0 = (B606 ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (B606 ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0x0321) Local0 = (B606 ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (B606 ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0x0321) Local0 = (B606 ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (B606 ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0x0321) Local0 = (B606 ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (B606 ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0x0321) Local0 = (B606 ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0x0321) Local0 = (B606 ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0xFFFFFFFFFFFFFCDE) } /* Conversion of the second operand */ Store ((0x00 ^ B606), Local0) M600 (Arg0, 0x18, Local0, 0x0321) Store ((0xFFFFFFFFFFFFFFFF ^ B606), Local0) M600 (Arg0, 0x19, Local0, 0xFFFFFFFFFFFFFCDE) Store ((AUI5 ^ B606), Local0) M600 (Arg0, 0x1A, Local0, 0x0321) Store ((AUIJ ^ B606), Local0) M600 (Arg0, 0x1B, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ B606), Local0) M600 (Arg0, 0x1C, Local0, 0x0321) Store ((DerefOf (RefOf (AUIJ)) ^ B606), Local0) M600 (Arg0, 0x1D, Local0, 0xFFFFFFFFFFFFFCDE) } Store ((DerefOf (PAUI [0x05]) ^ B606), Local0) M600 (Arg0, 0x1E, Local0, 0x0321) Store ((DerefOf (PAUI [0x13]) ^ B606), Local0) M600 (Arg0, 0x1F, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ B606), Local0) M600 (Arg0, 0x20, Local0, 0x0321) Store ((M601 (0x01, 0x13) ^ B606), Local0) M600 (Arg0, 0x21, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ B606), Local0) M600 (Arg0, 0x22, Local0, 0x0321) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ B606), Local0) M600 (Arg0, 0x23, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (0x00 ^ B606) /* \B606 */ M600 (Arg0, 0x24, Local0, 0x0321) Local0 = (0xFFFFFFFFFFFFFFFF ^ B606) /* \B606 */ M600 (Arg0, 0x25, Local0, 0xFFFFFFFFFFFFFCDE) Local0 = (AUI5 ^ B606) /* \B606 */ M600 (Arg0, 0x26, Local0, 0x0321) Local0 = (AUIJ ^ B606) /* \B606 */ M600 (Arg0, 0x27, Local0, 0xFFFFFFFFFFFFFCDE) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ B606) /* \B606 */ M600 (Arg0, 0x28, Local0, 0x0321) Local0 = (DerefOf (RefOf (AUIJ)) ^ B606) /* \B606 */ M600 (Arg0, 0x29, Local0, 0xFFFFFFFFFFFFFCDE) } Local0 = (DerefOf (PAUI [0x05]) ^ B606) /* \B606 */ M600 (Arg0, 0x2A, Local0, 0x0321) Local0 = (DerefOf (PAUI [0x13]) ^ B606) /* \B606 */ M600 (Arg0, 0x2B, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ B606) /* \B606 */ M600 (Arg0, 0x2C, Local0, 0x0321) Local0 = (M601 (0x01, 0x13) ^ B606) /* \B606 */ M600 (Arg0, 0x2D, Local0, 0xFFFFFFFFFFFFFCDE) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ B606) /* \B606 */ M600 (Arg0, 0x2E, Local0, 0x0321) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ B606) /* \B606 */ M600 (Arg0, 0x2F, Local0, 0xFFFFFFFFFFFFFCDE) } } /* XOr, 64-bit */ Method (M05D, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xFE7CB391D650A284) Store ((B60A ^ 0xFFFFFFFFFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x01834C6E29AF5D7B) Store ((B60A ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xFE7CB391D650A284) Store ((B60A ^ AUIJ), Local0) M600 (Arg0, 0x03, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((B60A ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xFE7CB391D650A284) Store ((B60A ^ DerefOf (RefOf (AUIJ))), Local0) M600 (Arg0, 0x05, Local0, 0x01834C6E29AF5D7B) } Store ((B60A ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xFE7CB391D650A284) Store ((B60A ^ DerefOf (PAUI [0x13])), Local0) M600 (Arg0, 0x07, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((B60A ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xFE7CB391D650A284) Store ((B60A ^ M601 (0x01, 0x13)), Local0) M600 (Arg0, 0x09, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xFE7CB391D650A284) Store ((B60A ^ DerefOf (M602 (0x01, 0x13, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x01834C6E29AF5D7B) } Local0 = (B60A ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x01834C6E29AF5D7B) Local0 = (B60A ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ AUIJ) /* \AUIJ */ M600 (Arg0, 0x0F, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (B60A ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ DerefOf (RefOf (AUIJ))) M600 (Arg0, 0x11, Local0, 0x01834C6E29AF5D7B) } Local0 = (B60A ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ DerefOf (PAUI [0x13])) M600 (Arg0, 0x13, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (B60A ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ M601 (0x01, 0x13)) M600 (Arg0, 0x15, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xFE7CB391D650A284) Local0 = (B60A ^ DerefOf (M602 (0x01, 0x13, 0x01))) M600 (Arg0, 0x17, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ B60A), Local0) M600 (Arg0, 0x18, Local0, 0xFE7CB391D650A284) Store ((0xFFFFFFFFFFFFFFFF ^ B60A), Local0) M600 (Arg0, 0x19, Local0, 0x01834C6E29AF5D7B) Store ((AUI5 ^ B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xFE7CB391D650A284) Store ((AUIJ ^ B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x01834C6E29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xFE7CB391D650A284) Store ((DerefOf (RefOf (AUIJ)) ^ B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x01834C6E29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xFE7CB391D650A284) Store ((DerefOf (PAUI [0x13]) ^ B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ B60A), Local0) M600 (Arg0, 0x20, Local0, 0xFE7CB391D650A284) Store ((M601 (0x01, 0x13) ^ B60A), Local0) M600 (Arg0, 0x21, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ B60A), Local0) M600 (Arg0, 0x22, Local0, 0xFE7CB391D650A284) Store ((DerefOf (M602 (0x01, 0x13, 0x01)) ^ B60A), Local0) M600 (Arg0, 0x23, Local0, 0x01834C6E29AF5D7B) } Local0 = (0x00 ^ B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0xFE7CB391D650A284) Local0 = (0xFFFFFFFFFFFFFFFF ^ B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0x01834C6E29AF5D7B) Local0 = (AUI5 ^ B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0xFE7CB391D650A284) Local0 = (AUIJ ^ B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0x01834C6E29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (RefOf (AUIJ)) ^ B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0x01834C6E29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (PAUI [0x13]) ^ B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0x01834C6E29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0xFE7CB391D650A284) Local0 = (M601 (0x01, 0x13) ^ B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0x01834C6E29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0xFE7CB391D650A284) Local0 = (DerefOf (M602 (0x01, 0x13, 0x01)) ^ B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0x01834C6E29AF5D7B) } /* Conversion of the both operands */ Store ((B606 ^ B60A), Local0) M600 (Arg0, 0x30, Local0, 0xFE7CB391D650A1A5) Store ((B60A ^ B606), Local0) M600 (Arg0, 0x31, Local0, 0xFE7CB391D650A1A5) Local0 = (B606 ^ B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0xFE7CB391D650A1A5) Local0 = (B60A ^ B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0xFE7CB391D650A1A5) } /* XOr, 32-bit */ Method (M05E, 1, NotSerialized) { /* Conversion of the first operand */ Store ((B60A ^ 0x00), Local0) M600 (Arg0, 0x00, Local0, 0xD650A284) Store ((B60A ^ 0xFFFFFFFF), Local0) M600 (Arg0, 0x01, Local0, 0x29AF5D7B) Store ((B60A ^ AUI5), Local0) M600 (Arg0, 0x02, Local0, 0xD650A284) Store ((B60A ^ AUII), Local0) M600 (Arg0, 0x03, Local0, 0x29AF5D7B) If (Y078) { Store ((B60A ^ DerefOf (RefOf (AUI5))), Local0) M600 (Arg0, 0x04, Local0, 0xD650A284) Store ((B60A ^ DerefOf (RefOf (AUII))), Local0) M600 (Arg0, 0x05, Local0, 0x29AF5D7B) } Store ((B60A ^ DerefOf (PAUI [0x05])), Local0) M600 (Arg0, 0x06, Local0, 0xD650A284) Store ((B60A ^ DerefOf (PAUI [0x12])), Local0) M600 (Arg0, 0x07, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((B60A ^ M601 (0x01, 0x05)), Local0) M600 (Arg0, 0x08, Local0, 0xD650A284) Store ((B60A ^ M601 (0x01, 0x12)), Local0) M600 (Arg0, 0x09, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((B60A ^ DerefOf (M602 (0x01, 0x05, 0x01))), Local0) M600 (Arg0, 0x0A, Local0, 0xD650A284) Store ((B60A ^ DerefOf (M602 (0x01, 0x12, 0x01))), Local0) M600 (Arg0, 0x0B, Local0, 0x29AF5D7B) } Local0 = (B60A ^ 0x00) M600 (Arg0, 0x0C, Local0, 0xD650A284) Local0 = (B60A ^ 0xFFFFFFFF) M600 (Arg0, 0x0D, Local0, 0x29AF5D7B) Local0 = (B60A ^ AUI5) /* \AUI5 */ M600 (Arg0, 0x0E, Local0, 0xD650A284) Local0 = (B60A ^ AUII) /* \AUII */ M600 (Arg0, 0x0F, Local0, 0x29AF5D7B) If (Y078) { Local0 = (B60A ^ DerefOf (RefOf (AUI5))) M600 (Arg0, 0x10, Local0, 0xD650A284) Local0 = (B60A ^ DerefOf (RefOf (AUII))) M600 (Arg0, 0x11, Local0, 0x29AF5D7B) } Local0 = (B60A ^ DerefOf (PAUI [0x05])) M600 (Arg0, 0x12, Local0, 0xD650A284) Local0 = (B60A ^ DerefOf (PAUI [0x12])) M600 (Arg0, 0x13, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (B60A ^ M601 (0x01, 0x05)) M600 (Arg0, 0x14, Local0, 0xD650A284) Local0 = (B60A ^ M601 (0x01, 0x12)) M600 (Arg0, 0x15, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A ^ DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x16, Local0, 0xD650A284) Local0 = (B60A ^ DerefOf (M602 (0x01, 0x12, 0x01))) M600 (Arg0, 0x17, Local0, 0x29AF5D7B) } /* Conversion of the second operand */ Store ((0x00 ^ B60A), Local0) M600 (Arg0, 0x18, Local0, 0xD650A284) Store ((0xFFFFFFFF ^ B60A), Local0) M600 (Arg0, 0x19, Local0, 0x29AF5D7B) Store ((AUI5 ^ B60A), Local0) M600 (Arg0, 0x1A, Local0, 0xD650A284) Store ((AUII ^ B60A), Local0) M600 (Arg0, 0x1B, Local0, 0x29AF5D7B) If (Y078) { Store ((DerefOf (RefOf (AUI5)) ^ B60A), Local0) M600 (Arg0, 0x1C, Local0, 0xD650A284) Store ((DerefOf (RefOf (AUII)) ^ B60A), Local0) M600 (Arg0, 0x1D, Local0, 0x29AF5D7B) } Store ((DerefOf (PAUI [0x05]) ^ B60A), Local0) M600 (Arg0, 0x1E, Local0, 0xD650A284) Store ((DerefOf (PAUI [0x12]) ^ B60A), Local0) M600 (Arg0, 0x1F, Local0, 0x29AF5D7B) /* Method returns Integer */ Store ((M601 (0x01, 0x05) ^ B60A), Local0) M600 (Arg0, 0x20, Local0, 0xD650A284) Store ((M601 (0x01, 0x12) ^ B60A), Local0) M600 (Arg0, 0x21, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Store ((DerefOf (M602 (0x01, 0x05, 0x01)) ^ B60A), Local0) M600 (Arg0, 0x22, Local0, 0xD650A284) Store ((DerefOf (M602 (0x01, 0x12, 0x01)) ^ B60A), Local0) M600 (Arg0, 0x23, Local0, 0x29AF5D7B) } Local0 = (0x00 ^ B60A) /* \B60A */ M600 (Arg0, 0x24, Local0, 0xD650A284) Local0 = (0xFFFFFFFF ^ B60A) /* \B60A */ M600 (Arg0, 0x25, Local0, 0x29AF5D7B) Local0 = (AUI5 ^ B60A) /* \B60A */ M600 (Arg0, 0x26, Local0, 0xD650A284) Local0 = (AUII ^ B60A) /* \B60A */ M600 (Arg0, 0x27, Local0, 0x29AF5D7B) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) ^ B60A) /* \B60A */ M600 (Arg0, 0x28, Local0, 0xD650A284) Local0 = (DerefOf (RefOf (AUII)) ^ B60A) /* \B60A */ M600 (Arg0, 0x29, Local0, 0x29AF5D7B) } Local0 = (DerefOf (PAUI [0x05]) ^ B60A) /* \B60A */ M600 (Arg0, 0x2A, Local0, 0xD650A284) Local0 = (DerefOf (PAUI [0x12]) ^ B60A) /* \B60A */ M600 (Arg0, 0x2B, Local0, 0x29AF5D7B) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) ^ B60A) /* \B60A */ M600 (Arg0, 0x2C, Local0, 0xD650A284) Local0 = (M601 (0x01, 0x12) ^ B60A) /* \B60A */ M600 (Arg0, 0x2D, Local0, 0x29AF5D7B) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) ^ B60A) /* \B60A */ M600 (Arg0, 0x2E, Local0, 0xD650A284) Local0 = (DerefOf (M602 (0x01, 0x12, 0x01)) ^ B60A) /* \B60A */ M600 (Arg0, 0x2F, Local0, 0x29AF5D7B) } /* Conversion of the both operands */ Store ((B606 ^ B60A), Local0) M600 (Arg0, 0x30, Local0, 0xD650A1A5) Store ((B60A ^ B606), Local0) M600 (Arg0, 0x31, Local0, 0xD650A1A5) Local0 = (B606 ^ B60A) /* \B60A */ M600 (Arg0, 0x32, Local0, 0xD650A1A5) Local0 = (B60A ^ B606) /* \B606 */ M600 (Arg0, 0x33, Local0, 0xD650A1A5) } /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ Method (M64N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03c", Local0) SRMT (Local0) M03C (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m03f", Local0) SRMT (Local0) M03F (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m042", Local0) SRMT (Local0) M042 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m045", Local0) SRMT (Local0) M045 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m048", Local0) SRMT (Local0) M048 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) M04A (Local0) Concatenate (Arg0, "-m04b", Local0) SRMT (Local0) M04B (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) M04D (Local0) Concatenate (Arg0, "-m04e", Local0) SRMT (Local0) M04E (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) M050 (Local0) Concatenate (Arg0, "-m051", Local0) SRMT (Local0) M051 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m054", Local0) SRMT (Local0) M054 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m057", Local0) SRMT (Local0) M057 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) M059 (Local0) Concatenate (Arg0, "-m05a", Local0) SRMT (Local0) M05A (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) M05C (Local0) Concatenate (Arg0, "-m05d", Local0) SRMT (Local0) M05D (Local0) } Method (M32N, 1, NotSerialized) { /* Add */ Concatenate (Arg0, "-m03b", Local0) SRMT (Local0) M03B (Local0) Concatenate (Arg0, "-m03d", Local0) SRMT (Local0) M03D (Local0) /* And */ Concatenate (Arg0, "-m03e", Local0) SRMT (Local0) M03E (Local0) Concatenate (Arg0, "-m040", Local0) SRMT (Local0) M040 (Local0) /* Divide */ Concatenate (Arg0, "-m041", Local0) SRMT (Local0) M041 (Local0) Concatenate (Arg0, "-m043", Local0) SRMT (Local0) M043 (Local0) /* Mod */ Concatenate (Arg0, "-m044", Local0) SRMT (Local0) M044 (Local0) Concatenate (Arg0, "-m046", Local0) SRMT (Local0) M046 (Local0) /* Multiply */ Concatenate (Arg0, "-m047", Local0) SRMT (Local0) M047 (Local0) Concatenate (Arg0, "-m049", Local0) SRMT (Local0) M049 (Local0) /* NAnd */ Concatenate (Arg0, "-m04a", Local0) SRMT (Local0) If (Y119) { M04A (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04c", Local0) SRMT (Local0) M04C (Local0) /* NOr */ Concatenate (Arg0, "-m04d", Local0) SRMT (Local0) If (Y119) { M04D (Local0) } Else { BLCK () } Concatenate (Arg0, "-m04f", Local0) SRMT (Local0) M04F (Local0) /* Or */ Concatenate (Arg0, "-m050", Local0) SRMT (Local0) If (Y119) { M050 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m052", Local0) SRMT (Local0) M052 (Local0) /* ShiftLeft */ Concatenate (Arg0, "-m053", Local0) SRMT (Local0) M053 (Local0) Concatenate (Arg0, "-m055", Local0) SRMT (Local0) M055 (Local0) /* ShiftRight */ Concatenate (Arg0, "-m056", Local0) SRMT (Local0) M056 (Local0) Concatenate (Arg0, "-m058", Local0) SRMT (Local0) M058 (Local0) /* Subtract */ Concatenate (Arg0, "-m059", Local0) SRMT (Local0) If (Y119) { M059 (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05b", Local0) SRMT (Local0) M05B (Local0) /* XOr */ Concatenate (Arg0, "-m05c", Local0) SRMT (Local0) If (Y119) { M05C (Local0) } Else { BLCK () } Concatenate (Arg0, "-m05e", Local0) SRMT (Local0) M05E (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ /* LAnd, common 32-bit/64-bit test */ Method (M05F, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (B606 && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (B606 && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B606 && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (B606 && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B606 && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (B606 && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B606 && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (B606 && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B606 && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (B606 && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B606 && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (B606 && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && B606) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && B606) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && B606) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && B606) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && B606) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && B606) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && B606) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && B606) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && B606) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && B606) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && B606) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && B606) M600 (Arg0, 0x17, Local0, Ones) } } /* LAnd, 64-bit */ Method (M060, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (B60A && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (B60A && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B60A && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (B60A && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B60A && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (B60A && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B60A && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (B60A && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B60A && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (B60A && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (B60A && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && B60A) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && B60A) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && B60A) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && B60A) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && B60A) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && B60A) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && B60A) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && B60A) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && B60A) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && B60A) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && B60A) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && B60A) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (B606 && B60A) M600 (Arg0, 0x18, Local0, Ones) Local0 = (B60A && B606) M600 (Arg0, 0x19, Local0, Ones) } /* LAnd, 32-bit */ Method (M061, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (B60A && 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (B60A && 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B60A && AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (B60A && AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B60A && DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (B60A && DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B60A && DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (B60A && DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B60A && M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (B60A && M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A && DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (B60A && DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 && B60A) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 && B60A) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 && B60A) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 && B60A) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) && B60A) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) && B60A) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) && B60A) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) && B60A) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) && B60A) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) && B60A) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) && B60A) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) && B60A) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (B606 && B60A) M600 (Arg0, 0x18, Local0, Ones) Local0 = (B60A && B606) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, common 32-bit/64-bit test */ Method (M062, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (B600 || 0x00) M600 (Arg0, 0x00, Local0, Zero) Local0 = (B600 || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B600 || AUI5) M600 (Arg0, 0x02, Local0, Zero) Local0 = (B600 || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B600 || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Zero) Local0 = (B600 || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B600 || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Zero) Local0 = (B600 || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B600 || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Zero) Local0 = (B600 || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B600 || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (B600 || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || B600) M600 (Arg0, 0x0C, Local0, Zero) Local0 = (0x01 || B600) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || B600) M600 (Arg0, 0x0E, Local0, Zero) Local0 = (AUI6 || B600) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || B600) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (RefOf (AUI6)) || B600) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || B600) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (PAUI [0x06]) || B600) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || B600) M600 (Arg0, 0x14, Local0, Zero) Local0 = (M601 (0x01, 0x06) || B600) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || B600) M600 (Arg0, 0x16, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || B600) M600 (Arg0, 0x17, Local0, Ones) } } /* Lor, 64-bit */ Method (M063, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (B60A || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (B60A || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B60A || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (B60A || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B60A || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (B60A || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B60A || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (B60A || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B60A || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (B60A || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (B60A || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || B60A) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || B60A) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || B60A) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || B60A) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || B60A) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || B60A) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || B60A) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || B60A) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || B60A) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || B60A) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || B60A) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || B60A) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (B600 || B60A) M600 (Arg0, 0x18, Local0, Ones) Local0 = (B60A || B600) M600 (Arg0, 0x19, Local0, Ones) } /* Lor, 32-bit */ Method (M064, 1, NotSerialized) { /* Conversion of the first operand */ Local0 = (B60A || 0x00) M600 (Arg0, 0x00, Local0, Ones) Local0 = (B60A || 0x01) M600 (Arg0, 0x01, Local0, Ones) Local0 = (B60A || AUI5) M600 (Arg0, 0x02, Local0, Ones) Local0 = (B60A || AUI6) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = (B60A || DerefOf (RefOf (AUI5))) M600 (Arg0, 0x04, Local0, Ones) Local0 = (B60A || DerefOf (RefOf (AUI6))) M600 (Arg0, 0x05, Local0, Ones) } Local0 = (B60A || DerefOf (PAUI [0x05])) M600 (Arg0, 0x06, Local0, Ones) Local0 = (B60A || DerefOf (PAUI [0x06])) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Integer */ Local0 = (B60A || M601 (0x01, 0x05)) M600 (Arg0, 0x08, Local0, Ones) Local0 = (B60A || M601 (0x01, 0x06)) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (B60A || DerefOf (M602 (0x01, 0x05, 0x01))) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (B60A || DerefOf (M602 (0x01, 0x06, 0x01))) M600 (Arg0, 0x0B, Local0, Ones) } /* Conversion of the second operand */ Local0 = (0x00 || B60A) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (0x01 || B60A) M600 (Arg0, 0x0D, Local0, Ones) Local0 = (AUI5 || B60A) M600 (Arg0, 0x0E, Local0, Ones) Local0 = (AUI6 || B60A) M600 (Arg0, 0x0F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI5)) || B60A) M600 (Arg0, 0x10, Local0, Ones) Local0 = (DerefOf (RefOf (AUI6)) || B60A) M600 (Arg0, 0x11, Local0, Ones) } Local0 = (DerefOf (PAUI [0x05]) || B60A) M600 (Arg0, 0x12, Local0, Ones) Local0 = (DerefOf (PAUI [0x06]) || B60A) M600 (Arg0, 0x13, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x05) || B60A) M600 (Arg0, 0x14, Local0, Ones) Local0 = (M601 (0x01, 0x06) || B60A) M600 (Arg0, 0x15, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x05, 0x01)) || B60A) M600 (Arg0, 0x16, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x06, 0x01)) || B60A) M600 (Arg0, 0x17, Local0, Ones) } /* Conversion of the both operands */ Local0 = (B600 || B60A) M600 (Arg0, 0x18, Local0, Ones) Local0 = (B60A || B600) M600 (Arg0, 0x19, Local0, Ones) } Method (M64O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m060", Local0) SRMT (Local0) M060 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m063", Local0) SRMT (Local0) M063 (Local0) } Method (M32O, 1, NotSerialized) { /* LAnd */ Concatenate (Arg0, "-m05f", Local0) SRMT (Local0) M05F (Local0) Concatenate (Arg0, "-m061", Local0) SRMT (Local0) M061 (Local0) /* LOr */ Concatenate (Arg0, "-m062", Local0) SRMT (Local0) M062 (Local0) Concatenate (Arg0, "-m064", Local0) SRMT (Local0) M064 (Local0) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Method (M64P, 1, NotSerialized) { /* LEqual */ Local0 = (0xFE7CB391D650A284 == B60A) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xFE7CB391D650A285 == B60A) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xFE7CB391D650A283 == B60A) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI4 == B60A) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUID == B60A) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIF == B60A) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) == B60A) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) == B60A) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) == B60A) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) == B60A) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) == B60A) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) == B60A) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) == B60A) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x0D) == B60A) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x0F) == B60A) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) == B60A) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) == B60A) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) == B60A) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xFE7CB391D650A284 > B60A) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xFE7CB391D650A285 > B60A) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xFE7CB391D650A283 > B60A) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI4 > B60A) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUID > B60A) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIF > B60A) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) > B60A) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) > B60A) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) > B60A) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) > B60A) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) > B60A) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) > B60A) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) > B60A) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x0D) > B60A) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x0F) > B60A) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) > B60A) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) > B60A) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) > B60A) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xFE7CB391D650A284 >= B60A) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xFE7CB391D650A285 >= B60A) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xFE7CB391D650A283 >= B60A) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI4 >= B60A) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUID >= B60A) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIF >= B60A) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) >= B60A) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) >= B60A) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) >= B60A) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x04]) >= B60A) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) >= B60A) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) >= B60A) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) >= B60A) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x0D) >= B60A) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x0F) >= B60A) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) >= B60A) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) >= B60A) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) >= B60A) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xFE7CB391D650A284 < B60A) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xFE7CB391D650A285 < B60A) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xFE7CB391D650A283 < B60A) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI4 < B60A) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUID < B60A) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIF < B60A) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) < B60A) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) < B60A) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) < B60A) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) < B60A) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) < B60A) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) < B60A) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) < B60A) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x0D) < B60A) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x0F) < B60A) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) < B60A) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) < B60A) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) < B60A) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xFE7CB391D650A284 <= B60A) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xFE7CB391D650A285 <= B60A) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xFE7CB391D650A283 <= B60A) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI4 <= B60A) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUID <= B60A) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIF <= B60A) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) <= B60A) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUID)) <= B60A) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIF)) <= B60A) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) <= B60A) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x0D]) <= B60A) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x0F]) <= B60A) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) <= B60A) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x0D) <= B60A) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x0F) <= B60A) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) <= B60A) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) <= B60A) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) <= B60A) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xFE7CB391D650A284 != B60A) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xFE7CB391D650A285 != B60A) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xFE7CB391D650A283 != B60A) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI4 != B60A) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUID != B60A) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIF != B60A) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI4)) != B60A) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUID)) != B60A) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIF)) != B60A) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x04]) != B60A) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x0D]) != B60A) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x0F]) != B60A) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x04) != B60A) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x0D) != B60A) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x0F) != B60A) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x04, 0x01)) != B60A) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x0D, 0x01)) != B60A) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x0F, 0x01)) != B60A) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M32P, 1, NotSerialized) { /* LEqual */ Local0 = (0xD650A284 == B60A) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0xD650A285 == B60A) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0xD650A283 == B60A) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUIK == B60A) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIL == B60A) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIM == B60A) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) == B60A) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) == B60A) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) == B60A) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) == B60A) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) == B60A) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) == B60A) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) == B60A) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x15) == B60A) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x16) == B60A) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) == B60A) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) == B60A) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) == B60A) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0xD650A284 > B60A) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0xD650A285 > B60A) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0xD650A283 > B60A) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUIK > B60A) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIL > B60A) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIM > B60A) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) > B60A) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) > B60A) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) > B60A) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) > B60A) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) > B60A) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) > B60A) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) > B60A) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x15) > B60A) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x16) > B60A) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) > B60A) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) > B60A) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) > B60A) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0xD650A284 >= B60A) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0xD650A285 >= B60A) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0xD650A283 >= B60A) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUIK >= B60A) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIL >= B60A) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIM >= B60A) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) >= B60A) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) >= B60A) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) >= B60A) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x14]) >= B60A) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) >= B60A) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) >= B60A) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) >= B60A) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x15) >= B60A) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x16) >= B60A) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) >= B60A) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) >= B60A) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) >= B60A) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0xD650A284 < B60A) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0xD650A285 < B60A) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0xD650A283 < B60A) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUIK < B60A) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIL < B60A) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIM < B60A) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) < B60A) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) < B60A) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) < B60A) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) < B60A) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) < B60A) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) < B60A) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) < B60A) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x15) < B60A) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x16) < B60A) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) < B60A) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) < B60A) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) < B60A) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0xD650A284 <= B60A) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0xD650A285 <= B60A) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0xD650A283 <= B60A) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUIK <= B60A) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIL <= B60A) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIM <= B60A) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) <= B60A) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIL)) <= B60A) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIM)) <= B60A) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) <= B60A) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x15]) <= B60A) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x16]) <= B60A) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) <= B60A) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x15) <= B60A) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x16) <= B60A) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) <= B60A) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) <= B60A) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) <= B60A) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0xD650A284 != B60A) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0xD650A285 != B60A) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0xD650A283 != B60A) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUIK != B60A) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIL != B60A) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIM != B60A) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUIK)) != B60A) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIL)) != B60A) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIM)) != B60A) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x14]) != B60A) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x15]) != B60A) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x16]) != B60A) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x14) != B60A) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x15) != B60A) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x16) != B60A) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x14, 0x01)) != B60A) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x15, 0x01)) != B60A) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x16, 0x01)) != B60A) M600 (Arg0, 0x6B, Local0, Ones) } } Method (M065, 1, NotSerialized) { /* LEqual */ Local0 = (0x0321 == B606) M600 (Arg0, 0x00, Local0, Ones) Local0 = (0x0322 == B606) M600 (Arg0, 0x01, Local0, Zero) Local0 = (0x0320 == B606) M600 (Arg0, 0x02, Local0, Zero) Local0 = (AUI1 == B606) M600 (Arg0, 0x03, Local0, Ones) Local0 = (AUIG == B606) M600 (Arg0, 0x04, Local0, Zero) Local0 = (AUIH == B606) M600 (Arg0, 0x05, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) == B606) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) == B606) M600 (Arg0, 0x07, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) == B606) M600 (Arg0, 0x08, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) == B606) M600 (Arg0, 0x09, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) == B606) M600 (Arg0, 0x0A, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) == B606) M600 (Arg0, 0x0B, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) == B606) M600 (Arg0, 0x0C, Local0, Ones) Local0 = (M601 (0x01, 0x10) == B606) M600 (Arg0, 0x0D, Local0, Zero) Local0 = (M601 (0x01, 0x11) == B606) M600 (Arg0, 0x0E, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) == B606) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) == B606) M600 (Arg0, 0x10, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) == B606) M600 (Arg0, 0x11, Local0, Zero) } /* LGreater */ Local0 = (0x0321 > B606) M600 (Arg0, 0x12, Local0, Zero) Local0 = (0x0322 > B606) M600 (Arg0, 0x13, Local0, Ones) Local0 = (0x0320 > B606) M600 (Arg0, 0x14, Local0, Zero) Local0 = (AUI1 > B606) M600 (Arg0, 0x15, Local0, Zero) Local0 = (AUIG > B606) M600 (Arg0, 0x16, Local0, Ones) Local0 = (AUIH > B606) M600 (Arg0, 0x17, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) > B606) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) > B606) M600 (Arg0, 0x19, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) > B606) M600 (Arg0, 0x1A, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) > B606) M600 (Arg0, 0x1B, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) > B606) M600 (Arg0, 0x1C, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) > B606) M600 (Arg0, 0x1D, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) > B606) M600 (Arg0, 0x1E, Local0, Zero) Local0 = (M601 (0x01, 0x10) > B606) M600 (Arg0, 0x1F, Local0, Ones) Local0 = (M601 (0x01, 0x11) > B606) M600 (Arg0, 0x20, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) > B606) M600 (Arg0, 0x21, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) > B606) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) > B606) M600 (Arg0, 0x23, Local0, Zero) } /* LGreaterEqual */ Local0 = (0x0321 >= B606) M600 (Arg0, 0x24, Local0, Ones) Local0 = (0x0322 >= B606) M600 (Arg0, 0x25, Local0, Ones) Local0 = (0x0320 >= B606) M600 (Arg0, 0x26, Local0, Zero) Local0 = (AUI1 >= B606) M600 (Arg0, 0x27, Local0, Ones) Local0 = (AUIG >= B606) M600 (Arg0, 0x28, Local0, Ones) Local0 = (AUIH >= B606) M600 (Arg0, 0x29, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) >= B606) M600 (Arg0, 0x2A, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) >= B606) M600 (Arg0, 0x2B, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) >= B606) M600 (Arg0, 0x2C, Local0, Zero) } Local0 = (DerefOf (PAUI [0x01]) >= B606) M600 (Arg0, 0x2D, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) >= B606) M600 (Arg0, 0x2E, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) >= B606) M600 (Arg0, 0x2F, Local0, Zero) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) >= B606) M600 (Arg0, 0x30, Local0, Ones) Local0 = (M601 (0x01, 0x10) >= B606) M600 (Arg0, 0x31, Local0, Ones) Local0 = (M601 (0x01, 0x11) >= B606) M600 (Arg0, 0x32, Local0, Zero) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) >= B606) M600 (Arg0, 0x33, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) >= B606) M600 (Arg0, 0x34, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) >= B606) M600 (Arg0, 0x35, Local0, Zero) } /* LLess */ Local0 = (0x0321 < B606) M600 (Arg0, 0x36, Local0, Zero) Local0 = (0x0322 < B606) M600 (Arg0, 0x37, Local0, Zero) Local0 = (0x0320 < B606) M600 (Arg0, 0x38, Local0, Ones) Local0 = (AUI1 < B606) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUIG < B606) M600 (Arg0, 0x3A, Local0, Zero) Local0 = (AUIH < B606) M600 (Arg0, 0x3B, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) < B606) M600 (Arg0, 0x3C, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) < B606) M600 (Arg0, 0x3D, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) < B606) M600 (Arg0, 0x3E, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) < B606) M600 (Arg0, 0x3F, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) < B606) M600 (Arg0, 0x40, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) < B606) M600 (Arg0, 0x41, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) < B606) M600 (Arg0, 0x42, Local0, Zero) Local0 = (M601 (0x01, 0x10) < B606) M600 (Arg0, 0x43, Local0, Zero) Local0 = (M601 (0x01, 0x11) < B606) M600 (Arg0, 0x44, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) < B606) M600 (Arg0, 0x45, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) < B606) M600 (Arg0, 0x46, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) < B606) M600 (Arg0, 0x47, Local0, Ones) } /* LLessEqual */ Local0 = (0x0321 <= B606) M600 (Arg0, 0x48, Local0, Ones) Local0 = (0x0322 <= B606) M600 (Arg0, 0x49, Local0, Zero) Local0 = (0x0320 <= B606) M600 (Arg0, 0x4A, Local0, Ones) Local0 = (AUI1 <= B606) M600 (Arg0, 0x4B, Local0, Ones) Local0 = (AUIG <= B606) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (AUIH <= B606) M600 (Arg0, 0x4D, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) <= B606) M600 (Arg0, 0x4E, Local0, Ones) Local0 = (DerefOf (RefOf (AUIG)) <= B606) M600 (Arg0, 0x4F, Local0, Zero) Local0 = (DerefOf (RefOf (AUIH)) <= B606) M600 (Arg0, 0x50, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) <= B606) M600 (Arg0, 0x51, Local0, Ones) Local0 = (DerefOf (PAUI [0x10]) <= B606) M600 (Arg0, 0x52, Local0, Zero) Local0 = (DerefOf (PAUI [0x11]) <= B606) M600 (Arg0, 0x53, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) <= B606) M600 (Arg0, 0x54, Local0, Ones) Local0 = (M601 (0x01, 0x10) <= B606) M600 (Arg0, 0x55, Local0, Zero) Local0 = (M601 (0x01, 0x11) <= B606) M600 (Arg0, 0x56, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) <= B606) M600 (Arg0, 0x57, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) <= B606) M600 (Arg0, 0x58, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) <= B606) M600 (Arg0, 0x59, Local0, Ones) } /* LNotEqual */ Local0 = (0x0321 != B606) M600 (Arg0, 0x5A, Local0, Zero) Local0 = (0x0322 != B606) M600 (Arg0, 0x5B, Local0, Ones) Local0 = (0x0320 != B606) M600 (Arg0, 0x5C, Local0, Ones) Local0 = (AUI1 != B606) M600 (Arg0, 0x5D, Local0, Zero) Local0 = (AUIG != B606) M600 (Arg0, 0x5E, Local0, Ones) Local0 = (AUIH != B606) M600 (Arg0, 0x5F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUI1)) != B606) M600 (Arg0, 0x60, Local0, Zero) Local0 = (DerefOf (RefOf (AUIG)) != B606) M600 (Arg0, 0x61, Local0, Ones) Local0 = (DerefOf (RefOf (AUIH)) != B606) M600 (Arg0, 0x62, Local0, Ones) } Local0 = (DerefOf (PAUI [0x01]) != B606) M600 (Arg0, 0x63, Local0, Zero) Local0 = (DerefOf (PAUI [0x10]) != B606) M600 (Arg0, 0x64, Local0, Ones) Local0 = (DerefOf (PAUI [0x11]) != B606) M600 (Arg0, 0x65, Local0, Ones) /* Method returns Integer */ Local0 = (M601 (0x01, 0x01) != B606) M600 (Arg0, 0x66, Local0, Zero) Local0 = (M601 (0x01, 0x10) != B606) M600 (Arg0, 0x67, Local0, Ones) Local0 = (M601 (0x01, 0x11) != B606) M600 (Arg0, 0x68, Local0, Ones) /* Method returns Reference to Integer */ If (Y500) { Local0 = (DerefOf (M602 (0x01, 0x01, 0x01)) != B606) M600 (Arg0, 0x69, Local0, Zero) Local0 = (DerefOf (M602 (0x01, 0x10, 0x01)) != B606) M600 (Arg0, 0x6A, Local0, Ones) Local0 = (DerefOf (M602 (0x01, 0x11, 0x01)) != B606) M600 (Arg0, 0x6B, Local0, Ones) } } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ Method (M64Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, B606) M600 (Arg0, 0x00, Local0, BB26) Local0 = Concatenate (0x0321, B60A) M600 (Arg0, 0x01, Local0, BB21) Local0 = Concatenate (AUI1, B606) M600 (Arg0, 0x02, Local0, BB26) Local0 = Concatenate (AUI1, B60A) M600 (Arg0, 0x03, Local0, BB21) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), B606) M600 (Arg0, 0x04, Local0, BB26) Local0 = Concatenate (DerefOf (RefOf (AUI1)), B60A) M600 (Arg0, 0x05, Local0, BB21) } Local0 = Concatenate (DerefOf (PAUI [0x01]), B606) M600 (Arg0, 0x06, Local0, BB26) Local0 = Concatenate (DerefOf (PAUI [0x01]), B60A) M600 (Arg0, 0x07, Local0, BB21) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), B606) M600 (Arg0, 0x08, Local0, BB26) Local0 = Concatenate (M601 (0x01, 0x01), B60A) M600 (Arg0, 0x09, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B606) M600 (Arg0, 0x0A, Local0, BB26) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B60A) M600 (Arg0, 0x0B, Local0, BB21) } Concatenate (0x0321, B606, Local0) M600 (Arg0, 0x0C, Local0, BB26) Concatenate (0x0321, B60A, Local0) M600 (Arg0, 0x0D, Local0, BB21) Concatenate (AUI1, B606, Local0) M600 (Arg0, 0x0E, Local0, BB26) Concatenate (AUI1, B60A, Local0) M600 (Arg0, 0x0F, Local0, BB21) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), B606, Local0) M600 (Arg0, 0x10, Local0, BB26) Concatenate (DerefOf (RefOf (AUI1)), B60A, Local0) M600 (Arg0, 0x11, Local0, BB21) } Concatenate (DerefOf (PAUI [0x01]), B606, Local0) M600 (Arg0, 0x12, Local0, BB26) Concatenate (DerefOf (PAUI [0x01]), B60A, Local0) M600 (Arg0, 0x13, Local0, BB21) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), B606, Local0) M600 (Arg0, 0x14, Local0, BB26) Concatenate (M601 (0x01, 0x01), B60A, Local0) M600 (Arg0, 0x15, Local0, BB21) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B606, Local0) M600 (Arg0, 0x16, Local0, BB26) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B60A, Local0) M600 (Arg0, 0x17, Local0, BB21) } } Method (M32Q, 1, NotSerialized) { Local0 = Concatenate (0x0321, B606) M600 (Arg0, 0x00, Local0, BB27) Local0 = Concatenate (0x0321, B60A) M600 (Arg0, 0x01, Local0, BB28) Local0 = Concatenate (AUI1, B606) M600 (Arg0, 0x02, Local0, BB27) Local0 = Concatenate (AUI1, B60A) M600 (Arg0, 0x03, Local0, BB28) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUI1)), B606) M600 (Arg0, 0x04, Local0, BB27) Local0 = Concatenate (DerefOf (RefOf (AUI1)), B60A) M600 (Arg0, 0x05, Local0, BB28) } Local0 = Concatenate (DerefOf (PAUI [0x01]), B606) M600 (Arg0, 0x06, Local0, BB27) Local0 = Concatenate (DerefOf (PAUI [0x01]), B60A) M600 (Arg0, 0x07, Local0, BB28) /* Method returns Integer */ Local0 = Concatenate (M601 (0x01, 0x01), B606) M600 (Arg0, 0x08, Local0, BB27) Local0 = Concatenate (M601 (0x01, 0x01), B60A) M600 (Arg0, 0x09, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B606) M600 (Arg0, 0x0A, Local0, BB27) Local0 = Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B60A) M600 (Arg0, 0x0B, Local0, BB28) } Concatenate (0x0321, B606, Local0) M600 (Arg0, 0x0C, Local0, BB27) Concatenate (0x0321, B60A, Local0) M600 (Arg0, 0x0D, Local0, BB28) Concatenate (AUI1, B606, Local0) M600 (Arg0, 0x0E, Local0, BB27) Concatenate (AUI1, B60A, Local0) M600 (Arg0, 0x0F, Local0, BB28) If (Y078) { Concatenate (DerefOf (RefOf (AUI1)), B606, Local0) M600 (Arg0, 0x10, Local0, BB27) Concatenate (DerefOf (RefOf (AUI1)), B60A, Local0) M600 (Arg0, 0x11, Local0, BB28) } Concatenate (DerefOf (PAUI [0x01]), B606, Local0) M600 (Arg0, 0x12, Local0, BB27) Concatenate (DerefOf (PAUI [0x01]), B60A, Local0) M600 (Arg0, 0x14, Local0, BB28) /* Method returns Integer */ Concatenate (M601 (0x01, 0x01), B606, Local0) M600 (Arg0, 0x15, Local0, BB27) Concatenate (M601 (0x01, 0x01), B60A, Local0) M600 (Arg0, 0x16, Local0, BB28) /* Method returns Reference to Integer */ If (Y500) { Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B606, Local0) M600 (Arg0, 0x17, Local0, BB27) Concatenate (DerefOf (M602 (0x01, 0x01, 0x01)), B60A, Local0) M600 (Arg0, 0x18, Local0, BB28) } } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ /* Common 32-bit/64-bit test */ Method (M066, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60E) M600 (Arg0, 0x00, Local0, BS1B) Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B606) M600 (Arg0, 0x01, Local0, BS1C) Local0 = ToString (AUB6, B60E) M600 (Arg0, 0x02, Local0, BS1B) Local0 = ToString (AUB6, B606) M600 (Arg0, 0x03, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), B60E) M600 (Arg0, 0x04, Local0, BS1B) Local0 = ToString (DerefOf (RefOf (AUB6)), B606) M600 (Arg0, 0x05, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), B60E) M600 (Arg0, 0x06, Local0, BS1B) Local0 = ToString (DerefOf (PAUB [0x06]), B606) M600 (Arg0, 0x07, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), B60E) M600 (Arg0, 0x08, Local0, BS1B) Local0 = ToString (M601 (0x03, 0x06), B606) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60E) M600 (Arg0, 0x0A, Local0, BS1B) Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B606) M600 (Arg0, 0x0B, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, Local0) M600 (Arg0, 0x0C, Local0, BS1B) ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B606, Local0) M600 (Arg0, 0x0D, Local0, BS1C) ToString (AUB6, B60E, Local0) M600 (Arg0, 0x0E, Local0, BS1B) ToString (AUB6, B606, Local0) M600 (Arg0, 0x0F, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), B60E, Local0) M600 (Arg0, 0x10, Local0, BS1B) ToString (DerefOf (RefOf (AUB6)), B606, Local0) M600 (Arg0, 0x11, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), B60E, Local0) M600 (Arg0, 0x12, Local0, BS1B) ToString (DerefOf (PAUB [0x06]), B606, Local0) M600 (Arg0, 0x13, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), B60E, Local0) M600 (Arg0, 0x14, Local0, BS1B) ToString (M601 (0x03, 0x06), B606, Local0) M600 (Arg0, 0x15, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, Local0) M600 (Arg0, 0x16, Local0, BS1B) ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B606, Local0) M600 (Arg0, 0x17, Local0, BS1C) } } Method (M64R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60A) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, B60A) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), B60A) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), B60A) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), B60A) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60A) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60A, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, B60A, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), B60A, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), B60A, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), B60A, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60A, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } Method (M32R, 1, NotSerialized) { Local0 = ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60A) M600 (Arg0, 0x00, Local0, BS1C) Local0 = ToString (AUB6, B60A) M600 (Arg0, 0x01, Local0, BS1C) If (Y078) { Local0 = ToString (DerefOf (RefOf (AUB6)), B60A) M600 (Arg0, 0x02, Local0, BS1C) } Local0 = ToString (DerefOf (PAUB [0x06]), B60A) M600 (Arg0, 0x03, Local0, BS1C) /* Method returns Buffer */ Local0 = ToString (M601 (0x03, 0x06), B60A) M600 (Arg0, 0x04, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { Local0 = ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60A) M600 (Arg0, 0x05, Local0, BS1C) } ToString (Buffer (0x19) { "This is auxiliary Buffer" }, B60A, Local0) M600 (Arg0, 0x06, Local0, BS1C) ToString (AUB6, B60A, Local0) M600 (Arg0, 0x07, Local0, BS1C) If (Y078) { ToString (DerefOf (RefOf (AUB6)), B60A, Local0) M600 (Arg0, 0x08, Local0, BS1C) } ToString (DerefOf (PAUB [0x06]), B60A, Local0) M600 (Arg0, 0x09, Local0, BS1C) /* Method returns Buffer */ ToString (M601 (0x03, 0x06), B60A, Local0) M600 (Arg0, 0x0A, Local0, BS1C) /* Method returns Reference to Buffer */ If (Y500) { ToString (DerefOf (M602 (0x03, 0x06, 0x01)), B60A, Local0) M600 (Arg0, 0x0B, Local0, BS1C) } } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Method (M067, 1, NotSerialized) { Store (AUS6 [B60E], Local0) M600 (Arg0, 0x00, DerefOf (Local0), BI10) Store (AUB6 [B60E], Local0) M600 (Arg0, 0x01, DerefOf (Local0), BI10) Store (AUP0 [B60E], Local0) M600 (Arg0, 0x02, DerefOf (Local0), BI11) If (Y078) { Store (DerefOf (RefOf (AUS6)) [B60E], Local0) M600 (Arg0, 0x03, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUB6)) [B60E], Local0) M600 (Arg0, 0x04, DerefOf (Local0), BI10) Store (DerefOf (RefOf (AUP0)) [B60E], Local0) M600 (Arg0, 0x05, DerefOf (Local0), BI11) } Store (DerefOf (PAUS [0x06]) [B60E], Local0) M600 (Arg0, 0x06, DerefOf (Local0), BI10) Store (DerefOf (PAUB [0x06]) [B60E], Local0) M600 (Arg0, 0x07, DerefOf (Local0), BI10) Store (DerefOf (PAUP [0x00]) [B60E], Local0) M600 (Arg0, 0x08, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Store (M601 (0x02, 0x06) [B60E], Local0) M600 (Arg0, 0x09, DerefOf (Local0), BI10) Store (M601 (0x03, 0x06) [B60E], Local0) M600 (Arg0, 0x0A, DerefOf (Local0), BI10) Store (M601 (0x04, 0x00) [B60E], Local0) M600 (Arg0, 0x0B, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Store (M601 (0x02, 0x06) [B60E], Local3) CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x03, 0x06) [B60E], Local3) CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Store (M601 (0x04, 0x00) [B60E], Local3) CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Store (DerefOf (M602 (0x02, 0x06, 0x01)) [B60E], Local0) M600 (Arg0, 0x0C, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x03, 0x06, 0x01)) [B60E], Local0) M600 (Arg0, 0x0D, DerefOf (Local0), BI10) Store (DerefOf (M602 (0x04, 0x00, 0x01)) [B60E], Local0) M600 (Arg0, 0x0E, DerefOf (Local0), BI11) } Local0 = AUS6 [B60E] /* \B60E */ M600 (Arg0, 0x0F, DerefOf (Local0), BI10) Local0 = AUB6 [B60E] /* \B60E */ M600 (Arg0, 0x10, DerefOf (Local0), BI10) Local0 = AUP0 [B60E] /* \B60E */ M600 (Arg0, 0x11, DerefOf (Local0), BI11) If (Y078) { Local0 = DerefOf (RefOf (AUS6)) [B60E] /* \B60E */ M600 (Arg0, 0x12, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUB6)) [B60E] /* \B60E */ M600 (Arg0, 0x13, DerefOf (Local0), BI10) Local0 = DerefOf (RefOf (AUP0)) [B60E] /* \B60E */ M600 (Arg0, 0x14, DerefOf (Local0), BI11) } Local0 = DerefOf (PAUS [0x06]) [B60E] /* \B60E */ M600 (Arg0, 0x15, DerefOf (Local0), BI10) Local0 = DerefOf (PAUB [0x06]) [B60E] /* \B60E */ M600 (Arg0, 0x16, DerefOf (Local0), BI10) Local0 = DerefOf (PAUP [0x00]) [B60E] /* \B60E */ M600 (Arg0, 0x17, DerefOf (Local0), BI11) /* Method returns Object */ If (Y900) { Local0 = M601 (0x02, 0x06) [B60E] /* \B60E */ M600 (Arg0, 0x18, DerefOf (Local0), BI10) Local0 = M601 (0x03, 0x06) [B60E] /* \B60E */ M600 (Arg0, 0x19, DerefOf (Local0), BI10) Local0 = M601 (0x04, 0x00) [B60E] /* \B60E */ M600 (Arg0, 0x1A, DerefOf (Local0), BI11) } Else { CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local0 = M601 (0x02, 0x06) [B60E] /* \B60E */ CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x03, 0x06) [B60E] /* \B60E */ CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ Local0 = M601 (0x04, 0x00) [B60E] /* \B60E */ CH04 (Arg0, 0x00, 0x55, Z086, __LINE__, 0x00, 0x00) /* AE_INDEX_TO_NOT_ATTACHED */ } /* Method returns Reference */ If (Y500) { Local0 = DerefOf (M602 (0x02, 0x06, 0x01)) [B60E] /* \B60E */ M600 (Arg0, 0x1B, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x03, 0x06, 0x01)) [B60E] /* \B60E */ M600 (Arg0, 0x1C, DerefOf (Local0), BI10) Local0 = DerefOf (M602 (0x04, 0x00, 0x01)) [B60E] /* \B60E */ M600 (Arg0, 0x1D, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = AUS6 [B60E] /* \B60E */ M600 (Arg0, 0x1E, DerefOf (Local0), BI10) Local0 = Local1 = AUB6 [B60E] /* \B60E */ M600 (Arg0, 0x1F, DerefOf (Local0), BI10) Local0 = Local1 = AUP0 [B60E] /* \B60E */ M600 (Arg0, 0x20, DerefOf (Local0), BI11) } If (Y078) { Local0 = Local1 = DerefOf (RefOf (AUS6)) [B60E] /* \B60E */ M600 (Arg0, 0x21, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUB6)) [B60E] /* \B60E */ M600 (Arg0, 0x22, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (RefOf (AUP0)) [B60E] /* \B60E */ M600 (Arg0, 0x23, DerefOf (Local0), BI11) } If (Y098) { Local0 = Local1 = DerefOf (PAUS [0x06]) [B60E] /* \B60E */ M600 (Arg0, 0x24, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUB [0x06]) [B60E] /* \B60E */ M600 (Arg0, 0x25, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (PAUP [0x00]) [B60E] /* \B60E */ M600 (Arg0, 0x26, DerefOf (Local0), BI11) } /* Method returns Object */ If ((Y900 && Y098)) { Local0 = Local1 = M601 (0x02, 0x06) [B60E] /* \B60E */ M600 (Arg0, 0x27, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x03, 0x06) [B60E] /* \B60E */ M600 (Arg0, 0x28, DerefOf (Local0), BI10) Local0 = Local1 = M601 (0x04, 0x00) [B60E] /* \B60E */ M600 (Arg0, 0x29, DerefOf (Local0), BI11) } /* Method returns Reference */ If (Y500) { Local0 = Local1 = DerefOf (M602 (0x02, 0x06, 0x01)) [B60E] /* \B60E */ M600 (Arg0, 0x2A, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x03, 0x06, 0x01)) [B60E] /* \B60E */ M600 (Arg0, 0x2B, DerefOf (Local0), BI10) Local0 = Local1 = DerefOf (M602 (0x04, 0x00, 0x01)) [B60E] /* \B60E */ M600 (Arg0, 0x2C, DerefOf (Local0), BI11) } } /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Method (M068, 1, NotSerialized) { CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Fatal (0xFF, 0xFFFFFFFF, B606) If (F64) { Fatal (0xFF, 0xFFFFFFFF, B60A) } Else { Fatal (0xFF, 0xFFFFFFFF, B60A) } CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) } /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ /* Common 32-bit/64-bit test */ Method (M069, 1, NotSerialized) { /* String to Integer conversion of the String Index operand */ Local0 = Mid ("This is auxiliary String", B60E, 0x0A) M600 (Arg0, 0x00, Local0, BS1D) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, 0x0A) M600 (Arg0, 0x01, Local0, BB32) Local0 = Mid (AUS6, B60E, 0x0A) M600 (Arg0, 0x02, Local0, BS1D) Local0 = Mid (AUB6, B60E, 0x0A) M600 (Arg0, 0x03, Local0, BB32) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), B60E, 0x0A) M600 (Arg0, 0x04, Local0, BS1D) Local0 = Mid (DerefOf (RefOf (AUB6)), B60E, 0x0A) M600 (Arg0, 0x05, Local0, BB32) } Local0 = Mid (DerefOf (PAUS [0x06]), B60E, 0x0A) M600 (Arg0, 0x06, Local0, BS1D) Local0 = Mid (DerefOf (PAUB [0x06]), B60E, 0x0A) M600 (Arg0, 0x07, Local0, BB32) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), B60E, 0x0A) M600 (Arg0, 0x08, Local0, BS1D) Local0 = Mid (M601 (0x03, 0x06), B60E, 0x0A) M600 (Arg0, 0x09, Local0, BB32) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, 0x0A) M600 (Arg0, 0x0A, Local0, BS1D) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, 0x0A) M600 (Arg0, 0x0B, Local0, BB32) } Mid ("This is auxiliary String", B60E, 0x0A, Local0) M600 (Arg0, 0x0C, Local0, BS1D) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, 0x0A, Local0) M600 (Arg0, 0x0D, Local0, BB32) Mid (AUS6, B60E, 0x0A, Local0) M600 (Arg0, 0x0E, Local0, BS1D) Mid (AUB6, B60E, 0x0A, Local0) M600 (Arg0, 0x0F, Local0, BB32) If (Y078) { Mid (DerefOf (RefOf (AUS6)), B60E, 0x0A, Local0) M600 (Arg0, 0x10, Local0, BS1D) Mid (DerefOf (RefOf (AUB6)), B60E, 0x0A, Local0) M600 (Arg0, 0x11, Local0, BB32) } Mid (DerefOf (PAUS [0x06]), B60E, 0x0A, Local0) M600 (Arg0, 0x12, Local0, BS1D) Mid (DerefOf (PAUB [0x06]), B60E, 0x0A, Local0) M600 (Arg0, 0x13, Local0, BB32) /* Method returns Object */ Mid (M601 (0x02, 0x06), B60E, 0x0A, Local0) M600 (Arg0, 0x14, Local0, BS1D) Mid (M601 (0x03, 0x06), B60E, 0x0A, Local0) M600 (Arg0, 0x15, Local0, BB32) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, 0x0A, Local0) M600 (Arg0, 0x16, Local0, BS1D) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, 0x0A, Local0) M600 (Arg0, 0x17, Local0, BB32) } /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, B60E) M600 (Arg0, 0x18, Local0, BS1B) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60E) M600 (Arg0, 0x19, Local0, BB33) Local0 = Mid (AUS6, 0x00, B60E) M600 (Arg0, 0x1A, Local0, BS1B) Local0 = Mid (AUB6, 0x00, B60E) M600 (Arg0, 0x1B, Local0, BB33) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, B60E) M600 (Arg0, 0x1C, Local0, BS1B) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, B60E) M600 (Arg0, 0x1D, Local0, BB33) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, B60E) M600 (Arg0, 0x1E, Local0, BS1B) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, B60E) M600 (Arg0, 0x1F, Local0, BB33) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, B60E) M600 (Arg0, 0x20, Local0, BS1B) Local0 = Mid (M601 (0x03, 0x06), 0x00, B60E) M600 (Arg0, 0x21, Local0, BB33) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60E) M600 (Arg0, 0x22, Local0, BS1B) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60E) M600 (Arg0, 0x23, Local0, BB33) } Mid ("This is auxiliary String", 0x00, B60E, Local0) M600 (Arg0, 0x24, Local0, BS1B) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60E, Local0) M600 (Arg0, 0x25, Local0, BB33) Mid (AUS6, 0x00, B60E, Local0) M600 (Arg0, 0x25, Local0, BS1B) Mid (AUB6, 0x00, B60E, Local0) M600 (Arg0, 0x27, Local0, BB33) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, B60E, Local0) M600 (Arg0, 0x28, Local0, BS1B) Mid (DerefOf (RefOf (AUB6)), 0x00, B60E, Local0) M600 (Arg0, 0x29, Local0, BB33) } Mid (DerefOf (PAUS [0x06]), 0x00, B60E, Local0) M600 (Arg0, 0x2A, Local0, BS1B) Mid (DerefOf (PAUB [0x06]), 0x00, B60E, Local0) M600 (Arg0, 0x2B, Local0, BB33) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, B60E, Local0) M600 (Arg0, 0x2C, Local0, BS1B) Mid (M601 (0x03, 0x06), 0x00, B60E, Local0) M600 (Arg0, 0x2D, Local0, BB33) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60E, Local0) M600 (Arg0, 0x2E, Local0, BS1B) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60E, Local0) M600 (Arg0, 0x2F, Local0, BB33) } } Method (M64S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, B60A) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60A) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, B60A) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, B60A) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, B60A) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, B60A) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, B60A) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, B60A) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, B60A) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, B60A) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60A) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60A) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, B60A, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60A, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, B60A, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, B60A, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, B60A, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, B60A, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, B60A, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, B60A, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, B60A, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, B60A, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60A, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60A, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", B60E, B60A) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, B60A) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, B60E, B60A) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, B60E, B60A) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), B60E, B60A) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), B60E, B60A) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), B60E, B60A) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), B60E, B60A) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), B60E, B60A) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), B60E, B60A) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, B60A) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, B60A) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", B60E, B60A, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, B60A, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, B60E, B60A, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, B60E, B60A, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), B60E, B60A, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), B60E, B60A, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), B60E, B60A, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), B60E, B60A, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), B60E, B60A, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), B60E, B60A, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, B60A, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, B60A, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } Method (M32S, 1, NotSerialized) { /* String to Integer conversion of the String Length operand */ Local0 = Mid ("This is auxiliary String", 0x00, B60A) M600 (Arg0, 0x00, Local0, BS1E) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60A) M600 (Arg0, 0x01, Local0, BB34) Local0 = Mid (AUS6, 0x00, B60A) M600 (Arg0, 0x02, Local0, BS1E) Local0 = Mid (AUB6, 0x00, B60A) M600 (Arg0, 0x03, Local0, BB34) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), 0x00, B60A) M600 (Arg0, 0x04, Local0, BS1E) Local0 = Mid (DerefOf (RefOf (AUB6)), 0x00, B60A) M600 (Arg0, 0x05, Local0, BB34) } Local0 = Mid (DerefOf (PAUS [0x06]), 0x00, B60A) M600 (Arg0, 0x06, Local0, BS1E) Local0 = Mid (DerefOf (PAUB [0x06]), 0x00, B60A) M600 (Arg0, 0x07, Local0, BB34) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), 0x00, B60A) M600 (Arg0, 0x08, Local0, BS1E) Local0 = Mid (M601 (0x03, 0x06), 0x00, B60A) M600 (Arg0, 0x09, Local0, BB34) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60A) M600 (Arg0, 0x0A, Local0, BS1E) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60A) M600 (Arg0, 0x0B, Local0, BB34) } Mid ("This is auxiliary String", 0x00, B60A, Local0) M600 (Arg0, 0x0C, Local0, BS1E) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, 0x00, B60A, Local0) M600 (Arg0, 0x0D, Local0, BB34) Mid (AUS6, 0x00, B60A, Local0) M600 (Arg0, 0x0E, Local0, BS1E) Mid (AUB6, 0x00, B60A, Local0) M600 (Arg0, 0x0F, Local0, BB34) If (Y078) { Mid (DerefOf (RefOf (AUS6)), 0x00, B60A, Local0) M600 (Arg0, 0x10, Local0, BS1E) Mid (DerefOf (RefOf (AUB6)), 0x00, B60A, Local0) M600 (Arg0, 0x11, Local0, BB34) } Mid (DerefOf (PAUS [0x06]), 0x00, B60A, Local0) M600 (Arg0, 0x12, Local0, BS1E) Mid (DerefOf (PAUB [0x06]), 0x00, B60A, Local0) M600 (Arg0, 0x13, Local0, BB34) /* Method returns Object */ Mid (M601 (0x02, 0x06), 0x00, B60A, Local0) M600 (Arg0, 0x14, Local0, BS1E) Mid (M601 (0x03, 0x06), 0x00, B60A, Local0) M600 (Arg0, 0x15, Local0, BB34) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), 0x00, B60A, Local0) M600 (Arg0, 0x16, Local0, BS1E) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), 0x00, B60A, Local0) M600 (Arg0, 0x17, Local0, BB34) } /* String to Integer conversion of the both String operands */ Local0 = Mid ("This is auxiliary String", B60E, B60A) M600 (Arg0, 0x18, Local0, BS1F) Local0 = Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, B60A) M600 (Arg0, 0x19, Local0, BB35) Local0 = Mid (AUS6, B60E, B60A) M600 (Arg0, 0x1A, Local0, BS1F) Local0 = Mid (AUB6, B60E, B60A) M600 (Arg0, 0x1B, Local0, BB35) If (Y078) { Local0 = Mid (DerefOf (RefOf (AUS6)), B60E, B60A) M600 (Arg0, 0x1C, Local0, BS1F) Local0 = Mid (DerefOf (RefOf (AUB6)), B60E, B60A) M600 (Arg0, 0x1D, Local0, BB35) } Local0 = Mid (DerefOf (PAUS [0x06]), B60E, B60A) M600 (Arg0, 0x1E, Local0, BS1F) Local0 = Mid (DerefOf (PAUB [0x06]), B60E, B60A) M600 (Arg0, 0x1F, Local0, BB35) /* Method returns Object */ Local0 = Mid (M601 (0x02, 0x06), B60E, B60A) M600 (Arg0, 0x20, Local0, BS1F) Local0 = Mid (M601 (0x03, 0x06), B60E, B60A) M600 (Arg0, 0x21, Local0, BB35) /* Method returns Reference */ If (Y500) { Local0 = Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, B60A) M600 (Arg0, 0x22, Local0, BS1F) Local0 = Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, B60A) M600 (Arg0, 0x23, Local0, BB35) } Mid ("This is auxiliary String", B60E, B60A, Local0) M600 (Arg0, 0x24, Local0, BS1F) Mid (Buffer (0x19) { "This is auxiliary Buffer" }, B60E, B60A, Local0) M600 (Arg0, 0x25, Local0, BB35) Mid (AUS6, B60E, B60A, Local0) M600 (Arg0, 0x26, Local0, BS1F) Mid (AUB6, B60E, B60A, Local0) M600 (Arg0, 0x27, Local0, BB35) If (Y078) { Mid (DerefOf (RefOf (AUS6)), B60E, B60A, Local0) M600 (Arg0, 0x28, Local0, BS1F) Mid (DerefOf (RefOf (AUB6)), B60E, B60A, Local0) M600 (Arg0, 0x29, Local0, BB35) } Mid (DerefOf (PAUS [0x06]), B60E, B60A, Local0) M600 (Arg0, 0x2A, Local0, BS1F) Mid (DerefOf (PAUB [0x06]), B60E, B60A, Local0) M600 (Arg0, 0x2B, Local0, BB35) /* Method returns Object */ Mid (M601 (0x02, 0x06), B60E, B60A, Local0) M600 (Arg0, 0x2C, Local0, BS1F) Mid (M601 (0x03, 0x06), B60E, B60A, Local0) M600 (Arg0, 0x2D, Local0, BB35) /* Method returns Reference */ If (Y500) { Mid (DerefOf (M602 (0x02, 0x06, 0x01)), B60E, B60A, Local0) M600 (Arg0, 0x2E, Local0, BS1F) Mid (DerefOf (M602 (0x03, 0x06, 0x01)), B60E, B60A, Local0) M600 (Arg0, 0x2F, Local0, BB35) } } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Method (M06A, 1, NotSerialized) { Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x00, Local0, 0x0D) Local0 = Match (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x01, Local0, Ones) Local0 = Match (AUP0, MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x02, Local0, 0x0D) Local0 = Match (AUP0, MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x03, Local0, Ones) If (Y078) { Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x04, Local0, 0x0D) Local0 = Match (DerefOf (RefOf (AUP0)), MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x05, Local0, Ones) } Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x06, Local0, 0x0D) Local0 = Match (DerefOf (PAUP [0x00]), MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x07, Local0, Ones) /* Method returns Object */ Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x08, Local0, 0x0D) Local0 = Match (M601 (0x04, 0x00), MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x09, Local0, Ones) /* Method returns Reference */ If (Y500) { Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5D, MTR, 0x00, B60E) M600 (Arg0, 0x0A, Local0, 0x0D) Local0 = Match (DerefOf (M602 (0x04, 0x00, 0x01)), MEQ, 0x0A5A, MTR, 0x00, B60E) M600 (Arg0, 0x0B, Local0, Ones) } } /* Method(m64t, 1) */ /* Method(m32t, 1) */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Method (M06B, 1, NotSerialized) { CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) /* Sleep */ Local0 = Timer Sleep (B606) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z086, __LINE__, 0x00, 0x00, Local2, C08C) } /* Stall */ Local0 = Timer Stall (B613) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < 0x03DE)) { ERR (Arg0, Z086, __LINE__, 0x00, 0x00, Local2, 0x03DE) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ Method (M06C, 1, Serialized) { Mutex (MTX0, 0x00) Acquire (MTX0, 0x0000) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local0 = Timer /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Acquire(MTX0, b606) */ CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z086, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Method (M06D, 1, Serialized) { Event (EVT0) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local0 = Timer Wait (EVT0, B606) CH03 (Arg0, Z086, __LINE__, 0x00, 0x00) Local1 = Timer Local2 = (Local1 - Local0) If ((Local2 < C08C)) { ERR (Arg0, Z086, __LINE__, 0x00, 0x00, Local2, C08C) } } /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Method (M06E, 1, Serialized) { Name (IST0, 0x00) Method (M001, 0, NotSerialized) { If (B600) { IST0 = 0x00 } } Method (M002, 0, NotSerialized) { If (B606) { IST0 = 0x02 } } Method (M003, 0, NotSerialized) { If (B60A) { IST0 = 0x03 } } Method (M004, 0, NotSerialized) { If (B60A) { IST0 = 0x04 } } Method (M005, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (B600) { IST0 = 0x00 } } Method (M006, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (B606) { IST0 = 0x06 } } Method (M007, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (B60A) { IST0 = 0x07 } } Method (M008, 1, NotSerialized) { If (Arg0) { IST0 = 0xFF } ElseIf (B60A) { IST0 = 0x08 } } Method (M009, 0, NotSerialized) { While (B600) { IST0 = 0x00 } } /* If */ IST0 = 0x01 M001 () M600 (Arg0, 0x00, IST0, 0x01) M002 () M600 (Arg0, 0x01, IST0, 0x02) M003 () M600 (Arg0, 0x02, IST0, 0x03) M004 () M600 (Arg0, 0x03, IST0, 0x04) /* ElseIf */ IST0 = 0x05 M005 (0x00) M600 (Arg0, 0x04, IST0, 0x05) M006 (0x00) M600 (Arg0, 0x05, IST0, 0x06) M007 (0x00) M600 (Arg0, 0x06, IST0, 0x07) M008 (0x00) M600 (Arg0, 0x07, IST0, 0x08) /* While */ IST0 = 0x09 M009 () M600 (Arg0, 0x08, IST0, 0x09) } /* Method(m64u, 1) */ /* Method(m32u, 1) */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Method (M06F, 1, NotSerialized) { /* LEqual */ Local0 = ("21 03 00" == B606) M600 (Arg0, 0x00, Local0, Ones) Local0 = ("21 03 01" == B606) M600 (Arg0, 0x01, Local0, Zero) Local0 = (AUS9 == B606) M600 (Arg0, 0x02, Local0, Ones) Local0 = (AUSA == B606) M600 (Arg0, 0x03, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) == B606) M600 (Arg0, 0x04, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) == B606) M600 (Arg0, 0x05, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) == B606) M600 (Arg0, 0x06, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) == B606) M600 (Arg0, 0x07, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) == B606) M600 (Arg0, 0x08, Local0, Ones) Local0 = (M601 (0x02, 0x0A) == B606) M600 (Arg0, 0x09, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) == B606) M600 (Arg0, 0x0A, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) == B606) M600 (Arg0, 0x0B, Local0, Zero) } /* LGreater */ Local0 = ("21 03 00" > B606) M600 (Arg0, 0x0C, Local0, Zero) Local0 = ("21 03 01" > B606) M600 (Arg0, 0x0D, Local0, Ones) Local0 = ("21 03 0 " > B606) M600 (Arg0, 0x0E, Local0, Zero) Local0 = ("21 03 00q" > B606) M600 (Arg0, 0x0F, Local0, Ones) Local0 = (AUS9 > B606) M600 (Arg0, 0x10, Local0, Zero) Local0 = (AUSA > B606) M600 (Arg0, 0x11, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) > B606) M600 (Arg0, 0x12, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) > B606) M600 (Arg0, 0x13, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) > B606) M600 (Arg0, 0x14, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) > B606) M600 (Arg0, 0x15, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) > B606) M600 (Arg0, 0x16, Local0, Zero) Local0 = (M601 (0x02, 0x0A) > B606) M600 (Arg0, 0x17, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) > B606) M600 (Arg0, 0x18, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) > B606) M600 (Arg0, 0x19, Local0, Ones) } /* LGreaterEqual */ Local0 = ("21 03 00" >= B606) M600 (Arg0, 0x1A, Local0, Ones) Local0 = ("21 03 01" >= B606) M600 (Arg0, 0x1B, Local0, Ones) Local0 = ("21 03 0 " >= B606) M600 (Arg0, 0x1C, Local0, Zero) Local0 = ("21 03 00q" >= B606) M600 (Arg0, 0x1D, Local0, Ones) Local0 = (AUS9 >= B606) M600 (Arg0, 0x1E, Local0, Ones) Local0 = (AUSA >= B606) M600 (Arg0, 0x1F, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) >= B606) M600 (Arg0, 0x20, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) >= B606) M600 (Arg0, 0x21, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) >= B606) M600 (Arg0, 0x22, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) >= B606) M600 (Arg0, 0x23, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) >= B606) M600 (Arg0, 0x24, Local0, Ones) Local0 = (M601 (0x02, 0x0A) >= B606) M600 (Arg0, 0x25, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) >= B606) M600 (Arg0, 0x26, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) >= B606) M600 (Arg0, 0x27, Local0, Ones) } /* LLess */ Local0 = ("21 03 00" < B606) M600 (Arg0, 0x28, Local0, Zero) Local0 = ("21 03 01" < B606) M600 (Arg0, 0x29, Local0, Zero) Local0 = ("21 03 0 " < B606) M600 (Arg0, 0x2A, Local0, Ones) Local0 = ("21 03 00q" < B606) M600 (Arg0, 0x2B, Local0, Zero) Local0 = (AUS9 < B606) M600 (Arg0, 0x2C, Local0, Zero) Local0 = (AUSA < B606) M600 (Arg0, 0x2D, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) < B606) M600 (Arg0, 0x2E, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) < B606) M600 (Arg0, 0x2F, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) < B606) M600 (Arg0, 0x30, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) < B606) M600 (Arg0, 0x31, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) < B606) M600 (Arg0, 0x32, Local0, Zero) Local0 = (M601 (0x02, 0x0A) < B606) M600 (Arg0, 0x33, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) < B606) M600 (Arg0, 0x34, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) < B606) M600 (Arg0, 0x35, Local0, Zero) } /* LLessEqual */ Local0 = ("21 03 00" <= B606) M600 (Arg0, 0x36, Local0, Ones) Local0 = ("21 03 01" <= B606) M600 (Arg0, 0x37, Local0, Zero) Local0 = ("21 03 0 " <= B606) M600 (Arg0, 0x38, Local0, Ones) Local0 = ("21 03 00q" <= B606) M600 (Arg0, 0x39, Local0, Zero) Local0 = (AUS9 <= B606) M600 (Arg0, 0x3A, Local0, Ones) Local0 = (AUSA <= B606) M600 (Arg0, 0x3B, Local0, Zero) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) <= B606) M600 (Arg0, 0x3C, Local0, Ones) Local0 = (DerefOf (RefOf (AUSA)) <= B606) M600 (Arg0, 0x3D, Local0, Zero) } Local0 = (DerefOf (PAUS [0x09]) <= B606) M600 (Arg0, 0x3E, Local0, Ones) Local0 = (DerefOf (PAUS [0x0A]) <= B606) M600 (Arg0, 0x3F, Local0, Zero) /* Method returns String */ Local0 = (M601 (0x02, 0x09) <= B606) M600 (Arg0, 0x40, Local0, Ones) Local0 = (M601 (0x02, 0x0A) <= B606) M600 (Arg0, 0x41, Local0, Zero) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) <= B606) M600 (Arg0, 0x42, Local0, Ones) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) <= B606) M600 (Arg0, 0x43, Local0, Zero) } /* LNotEqual */ Local0 = ("21 03 00" != B606) M600 (Arg0, 0x44, Local0, Zero) Local0 = ("21 03 01" != B606) M600 (Arg0, 0x45, Local0, Ones) Local0 = ("21 03 0 " != B606) M600 (Arg0, 0x46, Local0, Ones) Local0 = ("21 03 00q" != B606) M600 (Arg0, 0x47, Local0, Ones) Local0 = (AUS9 != B606) M600 (Arg0, 0x48, Local0, Zero) Local0 = (AUSA != B606) M600 (Arg0, 0x49, Local0, Ones) If (Y078) { Local0 = (DerefOf (RefOf (AUS9)) != B606) M600 (Arg0, 0x4A, Local0, Zero) Local0 = (DerefOf (RefOf (AUSA)) != B606) M600 (Arg0, 0x4B, Local0, Ones) } Local0 = (DerefOf (PAUS [0x09]) != B606) M600 (Arg0, 0x4C, Local0, Zero) Local0 = (DerefOf (PAUS [0x0A]) != B606) M600 (Arg0, 0x4D, Local0, Ones) /* Method returns String */ Local0 = (M601 (0x02, 0x09) != B606) M600 (Arg0, 0x4E, Local0, Zero) Local0 = (M601 (0x02, 0x0A) != B606) M600 (Arg0, 0x4F, Local0, Ones) /* Method returns Reference to String */ If (Y500) { Local0 = (DerefOf (M602 (0x02, 0x09, 0x01)) != B606) M600 (Arg0, 0x50, Local0, Zero) Local0 = (DerefOf (M602 (0x02, 0x0A, 0x01)) != B606) M600 (Arg0, 0x51, Local0, Ones) } /* Boundary Cases */ Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" == B60C) M600 (Arg0, 0x52, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" == B60C) M600 (Arg0, 0x53, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" > B60C) M600 (Arg0, 0x54, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" > B60C) M600 (Arg0, 0x55, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" >= B60C) M600 (Arg0, 0x56, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" >= B60C) M600 (Arg0, 0x57, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" < B60C) M600 (Arg0, 0x58, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" < B60C) M600 (Arg0, 0x59, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" <= B60C) M600 (Arg0, 0x5A, Local0, Ones) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" <= B60C) M600 (Arg0, 0x5B, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63" != B60C) M600 (Arg0, 0x5C, Local0, Zero) Local0 = ("21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" != B60C) M600 (Arg0, 0x5D, Local0, Ones) } /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Method (M070, 1, NotSerialized) { Local0 = Concatenate ("", B606) M600 (Arg0, 0x00, Local0, BS25) Local0 = Concatenate ("1234q", B606) M600 (Arg0, 0x01, Local0, BS26) Local0 = Concatenate (AUS0, B606) M600 (Arg0, 0x02, Local0, BS25) Local0 = Concatenate (AUS1, B606) M600 (Arg0, 0x03, Local0, BS26) If (Y078) { Local0 = Concatenate (DerefOf (RefOf (AUS0)), B606) M600 (Arg0, 0x04, Local0, BS25) Local0 = Concatenate (DerefOf (RefOf (AUS1)), B606) M600 (Arg0, 0x05, Local0, BS26) } Local0 = Concatenate (DerefOf (PAUS [0x00]), B606) M600 (Arg0, 0x06, Local0, BS25) Local0 = Concatenate (DerefOf (PAUS [0x01]), B606) M600 (Arg0, 0x07, Local0, BS26) /* Method returns String */ Local0 = Concatenate (M601 (0x02, 0x00), B606) M600 (Arg0, 0x08, Local0, BS25) Local0 = Concatenate (M601 (0x02, 0x01), B606) M600 (Arg0, 0x09, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Local0 = Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), B606) M600 (Arg0, 0x0A, Local0, BS25) Local0 = Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), B606) M600 (Arg0, 0x0B, Local0, BS26) } Concatenate ("", B606, Local0) M600 (Arg0, 0x0C, Local0, BS25) Concatenate ("1234q", B606, Local0) M600 (Arg0, 0x0D, Local0, BS26) Concatenate (AUS0, B606, Local0) M600 (Arg0, 0x0E, Local0, BS25) Concatenate (AUS1, B606, Local0) M600 (Arg0, 0x0F, Local0, BS26) If (Y078) { Concatenate (DerefOf (RefOf (AUS0)), B606, Local0) M600 (Arg0, 0x10, Local0, BS25) Concatenate (DerefOf (RefOf (AUS1)), B606, Local0) M600 (Arg0, 0x11, Local0, BS26) } Concatenate (DerefOf (PAUS [0x00]), B606, Local0) M600 (Arg0, 0x12, Local0, BS25) Concatenate (DerefOf (PAUS [0x01]), B606, Local0) M600 (Arg0, 0x13, Local0, BS26) /* Method returns String */ Concatenate (M601 (0x02, 0x00), B606, Local0) M600 (Arg0, 0x14, Local0, BS25) Concatenate (M601 (0x02, 0x01), B606, Local0) M600 (Arg0, 0x15, Local0, BS26) /* Method returns Reference to String */ If (Y500) { Concatenate (DerefOf (M602 (0x02, 0x00, 0x01)), B606, Local0) M600 (Arg0, 0x16, Local0, BS25) Concatenate (DerefOf (M602 (0x02, 0x01, 0x01)), B606, Local0) M600 (Arg0, 0x17, Local0, BS26) } /* Boundary Cases */ Local0 = Concatenate ("", B60C) M600 (Arg0, 0x18, Local0, BS27) } /* Method(m071, 1) */ /* Method(m072, 1) */ /* * Begin of the test body */ /* Integer to String implicit conversion Cases. */ /* Integer to String conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ If (F64) { Concatenate (__METHOD__, "-m640", Local0) SRMT (Local0) M640 (Local0) } Else { Concatenate (__METHOD__, "-m320", Local0) SRMT (Local0) M320 (Local0) } /* Integer to String conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ If (F64) { Concatenate (__METHOD__, "-m641", Local0) SRMT (Local0) M641 (Local0) } Else { Concatenate (__METHOD__, "-m321", Local0) SRMT (Local0) M321 (Local0) } /* Integer to Buffer implicit conversion Cases. */ /* Integer to Buffer conversion of the Integer second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ If (F64) { Concatenate (__METHOD__, "-m644", Local0) SRMT (Local0) M644 (Local0) } Else { Concatenate (__METHOD__, "-m324", Local0) SRMT (Local0) M324 (Local0) } /* Integer to Buffer conversion of the both Integer operands of */ /* Concatenate operator */ If (F64) { Concatenate (__METHOD__, "-m645", Local0) SRMT (Local0) M645 (Local0) } Else { Concatenate (__METHOD__, "-m325", Local0) SRMT (Local0) M325 (Local0) } /* Integer to Buffer conversion of the Integer second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ If (F64) { Concatenate (__METHOD__, "-m646", Local0) SRMT (Local0) M646 (Local0) } Else { Concatenate (__METHOD__, "-m326", Local0) SRMT (Local0) M326 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* ToString operator */ If (F64) { Concatenate (__METHOD__, "-m647", Local0) SRMT (Local0) M647 (Local0) } Else { Concatenate (__METHOD__, "-m327", Local0) SRMT (Local0) M327 (Local0) } /* Integer to Buffer conversion of the Integer Source operand of */ /* Mid operator */ If (F64) { Concatenate (__METHOD__, "-m648", Local0) SRMT (Local0) M648 (Local0) } Else { Concatenate (__METHOD__, "-m328", Local0) SRMT (Local0) M328 (Local0) } /* String to Integer implicit conversion Cases. */ /* String to Integer conversion of the String sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64b", Local0) SRMT (Local0) M64B (Local0) } Else { Concatenate (__METHOD__, "-m32b", Local0) SRMT (Local0) M32B (Local0) } /* String to Integer conversion of the String sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m000", Local0) SRMT (Local0) M000 (Local0) /* String to Integer conversion of the String sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64c", Local0) SRMT (Local0) M64C (Local0) } Else { Concatenate (__METHOD__, "-m32c", Local0) SRMT (Local0) M32C (Local0) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64D (Concatenate (__METHOD__, "-m64d")) } Else { M32D (Concatenate (__METHOD__, "-m32d")) } /* String to Integer conversion of each String operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64E (Concatenate (__METHOD__, "-m64e")) } Else { M32E (Concatenate (__METHOD__, "-m32e")) } /* String to Integer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m02b", Local0) SRMT (Local0) M02B (Local0) If (F64) { Concatenate (__METHOD__, "-m64f", Local0) SRMT (Local0) M64F (Local0) } Else { Concatenate (__METHOD__, "-m32f", Local0) SRMT (Local0) M32F (Local0) } /* String to Integer intermediate conversion of the String second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64g", Local0) SRMT (Local0) M64G (Local0) } Else { Concatenate (__METHOD__, "-m32g", Local0) SRMT (Local0) M32G (Local0) } /* String to Integer conversion of the String Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m02c", Local0) SRMT (Local0) M02C (Local0) If (F64) { Concatenate (__METHOD__, "-m64h", Local0) SRMT (Local0) M64H (Local0) } Else { Concatenate (__METHOD__, "-m32h", Local0) SRMT (Local0) M32H (Local0) } /* String to Integer conversion of the String Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m02d", Local0) SRMT (Local0) M02D (Local0) /* String to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m02e", Local0) SRMT (Local0) M02E (Local0) /* String to Integer conversion of the String Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m02f", Local0) SRMT (Local0) M02F (Local0) If (F64) { Concatenate (__METHOD__, "-m64i", Local0) SRMT (Local0) M64I (Local0) } Else { Concatenate (__METHOD__, "-m32i", Local0) SRMT (Local0) M32I (Local0) } /* String to Integer conversion of the String StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m030", Local0) SRMT (Local0) M030 (Local0) /* String to Integer conversion of the String sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m031", Local0) SRMT (Local0) M031 (Local0) /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m032", Local0) SRMT(Local0) m032(Local0) */ /* String to Integer conversion of the String TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m033", Local0) SRMT (Local0) M033 (Local0) /* String to Integer conversion of the String value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m034", Local0) SRMT (Local0) If (Y111) { M034 (Local0) } Else { BLCK () } /* String to Integer conversion of the String value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* String to Buffer implicit conversion Cases. */ /* String to Buffer conversion of the String second operand of */ /* Logical operators when the first operand is evaluated as Buffer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m035", Local0) SRMT (Local0) M035 (Local0) /* String to Buffer conversion of the String second operand of */ /* Concatenate operator when the first operand is evaluated as Buffer */ Concatenate (__METHOD__, "-m036", Local0) SRMT (Local0) M036 (Local0) /* String to Buffer conversion of the String Source operand of */ /* ToString operator (has a visual effect in shortening of the */ /* String taken the null character) */ Concatenate (__METHOD__, "-m037", Local0) SRMT (Local0) M037 (Local0) /* Buffer to Integer implicit conversion Cases. */ /* Buffer to Integer conversion of the Buffer sole operand */ /* of the 1-parameter Integer arithmetic operators */ /* (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) */ If (F64) { Concatenate (__METHOD__, "-m64l", Local0) SRMT (Local0) M64L (Local0) } Else { Concatenate (__METHOD__, "-m32l", Local0) SRMT (Local0) M32L (Local0) } /* Buffer to Integer conversion of the Buffer sole operand */ /* of the LNot Logical Integer operator */ Concatenate (__METHOD__, "-m03a", Local0) SRMT (Local0) M03A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the FromBCD and ToBCD conversion operators */ If (F64) { Concatenate (__METHOD__, "-m64m", Local0) SRMT (Local0) M64M (Local0) } Else { Concatenate (__METHOD__, "-m32m", Local0) SRMT (Local0) M32M (Local0) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Integer arithmetic operators */ /* Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, */ /* ShiftLeft, ShiftRight, Subtract, Xor */ If (F64) { M64N (Concatenate (__METHOD__, "-m64n")) } Else { M32N (Concatenate (__METHOD__, "-m32n")) } /* Buffer to Integer conversion of each Buffer operand */ /* of the 2-parameter Logical Integer operators LAnd and LOr */ If (F64) { M64O (Concatenate (__METHOD__, "-m64o")) } Else { M32O (Concatenate (__METHOD__, "-m32o")) } /* Buffer to Integer conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as Integer */ /* (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, LNotEqual) */ Concatenate (__METHOD__, "-m065", Local0) SRMT (Local0) M065 (Local0) If (F64) { Concatenate (__METHOD__, "-m64p", Local0) SRMT (Local0) M64P (Local0) } Else { Concatenate (__METHOD__, "-m32p", Local0) SRMT (Local0) M32P (Local0) } /* Buffer to Integer intermediate conversion of the Buffer second */ /* operand of Concatenate operator in case the first one is Integer */ If (F64) { Concatenate (__METHOD__, "-m64q", Local0) SRMT (Local0) M64Q (Local0) } Else { Concatenate (__METHOD__, "-m32q", Local0) SRMT (Local0) M32Q (Local0) } /* Buffer to Integer conversion of the Buffer Length (second) */ /* operand of the ToString operator */ Concatenate (__METHOD__, "-m066", Local0) SRMT (Local0) M066 (Local0) If (F64) { Concatenate (__METHOD__, "-m64r", Local0) SRMT (Local0) M64R (Local0) } Else { Concatenate (__METHOD__, "-m32r", Local0) SRMT (Local0) M32R (Local0) } /* Buffer to Integer conversion of the Buffer Index (second) */ /* operand of the Index operator */ Concatenate (__METHOD__, "-m067", Local0) SRMT (Local0) M067 (Local0) /* Buffer to Integer conversion of the String Arg (third) */ /* operand of the Fatal operator */ /* (it can only be checked an exception does not occur) */ Concatenate (__METHOD__, "-m068", Local0) SRMT (Local0) M068 (Local0) /* Buffer to Integer conversion of the Buffer Index and Length */ /* operands of the Mid operator */ Concatenate (__METHOD__, "-m069", Local0) SRMT (Local0) M069 (Local0) If (F64) { Concatenate (__METHOD__, "-m64s", Local0) SRMT (Local0) M64S (Local0) } Else { Concatenate (__METHOD__, "-m32s", Local0) SRMT (Local0) M32S (Local0) } /* Buffer to Integer conversion of the Buffer StartIndex */ /* operand of the Match operator */ Concatenate (__METHOD__, "-m06a", Local0) SRMT (Local0) M06A (Local0) /* Buffer to Integer conversion of the Buffer sole operand */ /* of the Method execution control operators (Sleep, Stall) */ Concatenate (__METHOD__, "-m06b", Local0) SRMT (Local0) M06B (Local0) /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Acquire operator */ /* Compiler allows only Integer constant as TimeoutValue (Bug 1) Concatenate(ts, "-m06c", Local0) SRMT(Local0) m06c(Local0) */ /* Buffer to Integer conversion of the Buffer TimeoutValue */ /* (second) operand of the Wait operator */ Concatenate (__METHOD__, "-m06d", Local0) SRMT (Local0) M06D (Local0) /* Buffer to Integer conversion of the Buffer value */ /* of Predicate of the Method execution control statements */ /* (If, ElseIf, While) */ Concatenate (__METHOD__, "-m06e", Local0) SRMT (Local0) If (Y111) { M06E (Local0) } Else { BLCK () } /* Buffer to Integer conversion of the Buffer value */ /* of Expression of Case statement when Expression in */ /* Switch is evaluated as Integer */ /* */ /* Note: Expression of Case can be only static data */ /* Buffer to String implicit conversion Cases. */ /* Buffer to String conversion of the Buffer second operand of */ /* Logical operators when the first operand is evaluated as String. */ /* LEqual LGreater LGreaterEqual LLess LLessEqual LNotEqual */ Concatenate (__METHOD__, "-m06f", Local0) SRMT (Local0) M06F (Local0) /* Buffer to String conversion of the Buffer second operand of */ /* Concatenate operator when the first operand is evaluated as String */ Concatenate (__METHOD__, "-m070", Local0) SRMT (Local0) M070 (Local0) /* Check consistency of the test Named Objects */ /* in the root Scope of the Global ACPI namespace */ Concatenate (__METHOD__, "-m606", Local0) SRMT (Local0) M606 (Local0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/common/0000700000175000017500000000000014773714153027174 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/common/ocommon.asl0000700000175000017500000034543014773714153031360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Implicit Source Operand Conversion, complex test * * * Integer to String implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the Integer second operand of Logical operators when the first * operand is evaluated as String (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - to the Integer second operand of Concatenate operator when the first * operand is evaluated as String * - to the Integer elements of a search package of Match operator * when some MatchObject is evaluated as String * - to the Integer value of Expression of Case statement when * Expression in Switch is either static String data or explicitly * converted to String by ToDecimalString, ToHexString or ToString * * Integer to Buffer implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the Integer second operand of Logical operators when the first * operand is evaluated as Buffer (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - to both Integer operands of Concatenate operator * - to the Integer second operand of Concatenate operator when the first * operand is evaluated as Buffer * - to the Integer Source operand of ToString operator * - to the Integer Source operand of Mid operator * - to the Integer elements of a search package of Match operator * when some MatchObject is evaluated as Buffer * - to the Integer value of Expression of Case statement when * Expression in Switch is either static Buffer data or explicitly * converted to Buffer by ToBuffer * * String to Integer implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the String sole operand of the 1-parameter Integer arithmetic * operators (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) * - to the String sole operand of the LNot Logical Integer operator * - to the String sole operand of the FromBCD and ToBCD conversion operators * - to each String operand of the 2-parameter Integer arithmetic * operators (Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, * ShiftLeft, ShiftRight, Subtract, Xor) * - to each String operand of the 2-parameter Logical Integer * operators LAnd and LOr * - to the String second operand of Logical operators when the first * operand is evaluated as Integer (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - intermediately to the String second operand of Concatenate operator * in case the first one is Integer * - to the String Length (second) operand of ToString operator * - to the String Index (second) operand of Index operator * - to the String Arg (third) operand of Fatal operator * (it can only be checked an exception does not occur) * - to the String Index and Length operands of Mid operator * - to the String StartIndex operand of Match operator * - to the String elements of a search package of Match operator * when some MatchObject is evaluated as Integer * - to the String sole operand of the Method execution control operators * (Sleep, Stall) * - to the String TimeoutValue (second) operand of the Acquire operator ??? * - to the String TimeoutValue (second) operand of the Wait operator * - to the String value of Predicate of the Method execution control * statements (If, ElseIf, While) * - to the String value of Expression of Case statement when * Expression in Switch is evaluated as Integer * * String to Buffer implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the String second operand of Logical operators when the first * operand is evaluated as Buffer (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - to the String second operand of Concatenate operator when the first * operand is evaluated as Buffer * - to the String Source operand of ToString operator (has a visual * effect in shortening of the String taken the null character. * - to the String elements of a search package of Match operator * when some MatchObject is evaluated as Buffer * - to the String value of Expression of Case statement when * Expression in Switch is either static Buffer data or explicitly * converted to Buffer by ToBuffer * * Buffer to Integer implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the Buffer sole operand of the 1-parameter Integer arithmetic * operators (Decrement, Increment, FindSetLeftBit, FindSetRightBit, Not) * - to the Buffer sole operand of the LNot Logical Integer operator * - to the Buffer sole operand of the FromBCD and ToBCD conversion operators * - to each Buffer operand of the 2-parameter Integer arithmetic * operators (Add, And, Divide, Mod, Multiply, NAnd, NOr, Or, * ShiftLeft, ShiftRight, Subtract, Xor) * - to each Buffer operand of the 2-parameter Logical Integer * operators LAnd and LOr * - to the Buffer second operand of Logical operators when the first * operand is evaluated as Integer (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - intermediately to the Buffer second operand of Concatenate operator * in case the first one is Integer * - to the Buffer Length (second) operand of ToString operator * - to the Buffer Index (second) operand of Index operator * - to the Buffer Arg (third) operand of Fatal operator * (it can only be checked an exception does not occur) * - to the Buffer Index and Length operands of Mid operator * - to the Buffer StartIndex operand of Match operator * - to the Buffer elements of a search package of Match operator * when some MatchObject is evaluated as Integer * - to the Buffer sole operand of the Method execution control operators * (Sleep, Stall) * - to the Buffer TimeoutValue (second) operand of the Acquire operator ??? * - to the Buffer TimeoutValue (second) operand of the Wait operator * - to the Buffer value of Predicate of the Method execution control * statements (If, ElseIf, While) * - to the Buffer value of Expression of Case statement when * Expression in Switch is evaluated as Integer * * Buffer to String implicit conversion Cases. * There are following cases when this type of conversion is applied: * - to the Buffer second operand of Logical operators when the first * operand is evaluated as String (LEqual, LGreater, LGreaterEqual, * LLess, LLessEqual, LNotEqual) * - to the Buffer second operand of Concatenate operator when the first * operand is evaluated as String * - to the Buffer elements of a search package of Match operator * when some MatchObject is evaluated as String * - to the Buffer value of Expression of Case statement when * Expression in Switch is either static String data or explicitly * converted to String by ToDecimalString, ToHexString or ToString * * Note 1: Only an expression that is evaluated to a constant * can be used as the Expression of Case * * Note 2: So as initial elements of a package are either constant * data or name strings then check of implicit conversion * applied to the elements of the search package of Match * operator is limited to a data images case. * * Buffer field to Integer implicit conversion Cases. * First, Buffer field is evaluated either as Integer or as Buffer. * Conversion only takes place for Buffer in which case * Buffer to Integer test constructions should be used. * * Buffer field to Buffer implicit conversion Cases. * First, Buffer field is evaluated either as Integer or as Buffer. * Conversion only takes place for Integer in which case * Integer to Buffer test constructions should be used. * * Buffer field to String implicit conversion Cases. * First, Buffer field is evaluated either as Integer or as Buffer * For Integer case Integer to String test constructions should be used. * For Buffer case Buffer to String test constructions should be used. * * Field unit implicit conversion is considered similar to * Buffer field one. * * * Cases when there are more than one operand for implicit conversion * - when the first operand of Concatenate operator is Integer, * there are additional conversions besides this Integer to Buffer: * = String to Integer conversion if second operand is String * = Buffer to Integer conversion if second operand is Buffer * = Integer to Buffer conversion of the converted second operand * * * EXCEPTIONAL Conditions during implicit conversion * * String to Integer implicit conversion Cases. * * Buffer to String implicit conversion Cases. * * Buffer field to String implicit conversion Cases. * * Field unit to String implicit conversion Cases. * */ Name (Z084, 0x54) Name (TERR, "Test error") /* Test Data by types */ /* Test Integers */ Name (I601, 0xD1) Name (I602, 0x000000024CB016EA) Name (I603, 0xC179B3FE) Name (I604, 0xFE7CB391D650A284) Name (I605, 0x00) Name (I606, 0xFFFFFFFF) Name (I607, 0xFFFFFFFFFFFFFFFF) Name (I608, 0x00ABCDEF) Name (I609, 0x00ABCDEF) Name (I60A, 0xFF) Name (I60B, 0x000000FFFFFFFFFF) Name (I60C, 0x6179534E) Name (I60D, 0x6E7C534136502214) Name (I60E, 0x6E00534136002214) Name (I60F, 0x6E7C534136002214) Name (PI60, Package (0x10) { 0x01, 0xD1, 0x000000024CB016EA, 0xC179B3FE, 0xFE7CB391D650A284, 0x00, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0x00ABCDEF, 0x00ABCDEF, 0xFF, 0x000000FFFFFFFFFF, 0x6179534E, 0x6E7C534136502214, 0x6E00534136002214, 0x6E7C534136002214 }) /* Test Strings */ Name (S600, "0") Name (S601, "0321") Name (S602, "321") Name (S603, "ba9876") Name (S604, "C179B3FE") Name (S605, "FE7CB391D650A284") Name (S606, "ffffffff") Name (S607, "ffffffffffffffff") Name (S608, "fe7cb391d650a2841") Name (S609, "9876543210") Name (S60A, "0xfe7cb3") Name (S60B, "1234q") Name (S60C, "") Name (S60D, " ") /* of size 200 chars */ Name (S60E, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") /* all symbols 0x01-0x7f */ Name (S60F, "\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F") Name (S610, "abcdef") Name (S611, "ABCDEF") Name (S612, "ff") Name (S613, "ffffffffff") Name (S614, "B") Name (S615, "3789012345678901") Name (S616, "D76162EE9EC35") Name (S617, "90123456") Name (S618, "55F2CC0") Name (S619, "c179B3FE") Name (S61A, "fE7CB391D650A284") Name (S61B, "63") Name (PS60, Package (0x1C) { "0", "0321", "321", "ba9876", "C179B3FE", "FE7CB391D650A284", "ffffffff", "ffffffffffffffff", "fe7cb391d650a2841", "9876543210", "0xfe7cb3", "1234q", "", " ", /* of size 200 chars */ "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*", /* all symbols 0x01-0x7f */ "\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F", "abcdef", "ABCDEF", "ff", "ffffffffff", "B", "3789012345678901", "D76162EE9EC35", "90123456", "55F2CC0", "c179B3FE", "fE7CB391D650A284", "63" }) /* Test Buffers */ Name (B600, Buffer (0x01) { 0x00 // . }) Name (B601, Buffer (0x01) { 0xA5 // . }) Name (B602, Buffer (0x02) { 0x21, 0x03 // !. }) Name (B603, Buffer (0x03) { 0x21, 0x03, 0x5A // !.Z }) Name (B604, Buffer (0x03) { 0x21, 0x03, 0x5A // !.Z }) Name (B605, Buffer (0x03) { 0x21, 0x03 // !. }) Name (B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) Name (B607, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }) Name (B608, Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0xA5 // ..y.. }) Name (B609, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) Name (B60B, Buffer (0x0101) { 0x00 // . }) Name (B60C, Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) Name (B60D, Buffer (0x44) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abc" }) Name (B60E, Buffer (0x01) { 0x0B // . }) Name (B60F, Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }) Name (B610, Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }) Name (B611, Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. }) Name (B612, Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }) Name (B613, Buffer (0x01) { 0x3F // ? }) Name (PB60, Package (0x14) { Buffer (0x01) { 0x00 // . }, Buffer (0x01) { 0xA5 // . }, Buffer (0x02) { 0x21, 0x03 // !. }, Buffer (0x03) { 0x21, 0x03, 0x5A // !.Z }, Buffer (0x03) { 0x21, 0x03, 0x5A // !.Z }, Buffer (0x03) { 0x21, 0x03 // !. }, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }, Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0xA5 // ..y.. }, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }, Buffer (0x0101) { 0x00 // . }, Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }, Buffer (0x44) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abc" }, Buffer (0x01) { 0x0B // . }, Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }, Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }, Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. }, Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }, Buffer (0x01) { 0x3F // ? } }) /* Test Buffer Fields */ /*Name(b630, Buffer(428){}) */ Name (B630, Buffer (0x01C4){}) CreateField (B630, 0x00, 0x1F, BF61) CreateField (B630, 0x1F, 0x20, BF62) CreateField (B630, 0x3F, 0x21, BF63) CreateField (B630, 0x60, 0x3F, BF64) CreateField (B630, 0x9F, 0x40, BF65) CreateField (B630, 0xDF, 0x41, BF66) CreateField (B630, 0x0120, 0x0218, BF69) CreateField (B630, 0x0338, 0x0220, BF6A) CreateField (B630, 0x0558, 0x0808, BF6B) /* 3424 */ CreateField (B630, 0x0D60, 0x1F, BF91) CreateField (B630, 0x0D7F, 0x40, BF95) CreateField (B630, 0x0DBF, 0x1F, BFA1) CreateField (B630, 0x0DDE, 0x40, BFA5) /* 3614 */ Name (B631, Buffer (0x45){}) CreateField (B631, 0x00, 0x41, BF6C) CreateField (B631, 0x41, 0x41, BF6D) CreateField (B631, 0x82, 0x21, BF6E) CreateField (B631, 0xA3, 0x21, BF6F) CreateField (B631, 0xC4, 0x20, BF70) CreateField (B631, 0xE4, 0x40, BF71) CreateField (B631, 0x0124, 0x40, BF72) CreateField (B631, 0x0164, 0x40, BF73) CreateField (B631, 0x01A4, 0x21, BF74) CreateField (B631, 0x01C5, 0x21, BF75) CreateField (B631, 0x01E6, 0x21, BF76) CreateField (B631, 0x0207, 0x20, BF77) /* 551 */ /* Test Packages */ Name (P601, Package (0x01) { 0xC179B3FE }) Name (P602, Package (0x01) { 0xFE7CB391D650A284 }) /* Auxiliary agents triggering implicit conversion */ /* Auxiliary Integers */ Name (AUI0, Ones) Name (AUI1, 0x0321) Name (AUI2, 0x000000024CB016EA) Name (AUI3, 0xC179B3FE) Name (AUI4, 0xFE7CB391D650A284) Name (AUI5, 0x00) Name (AUI6, 0x01) Name (AUI7, 0x03) Name (AUI8, 0x04) Name (AUI9, 0x05) Name (AUIA, 0x08) Name (AUIB, 0x09) Name (AUIC, 0xC179B3FF) Name (AUID, 0xFE7CB391D650A285) Name (AUIE, 0xC179B3FD) Name (AUIF, 0xFE7CB391D650A283) Name (AUIG, 0x0322) Name (AUIH, 0x0320) Name (AUII, 0xFFFFFFFF) Name (AUIJ, 0xFFFFFFFFFFFFFFFF) Name (AUIK, 0xD650A284) Name (AUIL, 0xD650A285) Name (AUIM, 0xD650A283) Name (PAUI, Package (0x17) { Ones, 0x0321, 0x000000024CB016EA, 0xC179B3FE, 0xFE7CB391D650A284, 0x00, 0x01, 0x03, 0x04, 0x05, 0x08, 0x09, 0xC179B3FF, 0xFE7CB391D650A285, 0xC179B3FD, 0xFE7CB391D650A283, 0x0322, 0x0320, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xD650A284, 0xD650A285, 0xD650A283 }) /* Auxiliary Strings */ Name (AUS0, "") Name (AUS1, "1234q") Name (AUS2, "c179B3FE") Name (AUS3, "C179B3FE") Name (AUS4, "FE7CB391D650A284") Name (AUS5, "fE7CB391D650A284") Name (AUS6, "This is auxiliary String") Name (AUS7, "0321") Name (AUS8, "321") Name (AUS9, "21 03 00") Name (AUSA, "21 03 01") Name (AUSB, "21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63") Name (AUSC, "21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64") Name (PAUS, Package (0x0D) { "", "1234q", "c179B3FE", "C179B3FE", "FE7CB391D650A284", "fE7CB391D650A284", "This is auxiliary String", "0321", "321", "21 03 00", "21 03 01", "21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63", "21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 64" }) /* Auxiliary Buffers */ Name (AUB0, Buffer (0x01) { 0x5A // Z }) Name (AUB1, Buffer (0x02) { "Z" }) Name (AUB2, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. }) Name (AUB3, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }) Name (AUB4, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (AUB5, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. }) Name (AUB6, Buffer (0x19) { "This is auxiliary Buffer" }) Name (AUB7, Buffer (0x05) { "0321" }) Name (AUB8, Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. }) Name (AUB9, Buffer (0x01) { 0x00 // . }) Name (AUBA, Buffer (0x01) { 0x01 // . }) Name (AUBB, Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }) Name (AUBC, Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . }) Name (PAUB, Package (0x0D) { Buffer (0x01) { 0x5A // Z }, Buffer (0x02) { "Z" }, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. }, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. }, Buffer (0x19) { "This is auxiliary Buffer" }, Buffer (0x05) { "0321" }, Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. }, Buffer (0x01) { 0x00 // . }, Buffer (0x01) { 0x01 // . }, Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }, Buffer (0xC9) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0048 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0050 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0058 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, // yz{|}~ ! /* 0060 */ 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, // "#$%&'() /* 0068 */ 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, // *+,-./01 /* 0070 */ 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, // 23456789 /* 0078 */ 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, // :;<=>?@A /* 0080 */ 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, // BCDEFGHI /* 0088 */ 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, // JKLMNOPQ /* 0090 */ 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, // RSTUVWXY /* 0098 */ 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, // Z[\]^_`a /* 00A0 */ 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, // bcdefghi /* 00A8 */ 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, // jklmnopq /* 00B0 */ 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, // rstuvwxy /* 00B8 */ 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x20, 0x21, 0x22, // z{|}~ !" /* 00C0 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, // #$%&'()* /* 00C8 */ 0x01 // . } }) /* Auxiliary Packages */ Name (AUP0, Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }) Name (AUP1, Package (0x01) { 0xFE7CB391D650A284 }) Name (AUP2, Package (0x01) { 0xC179B3FE }) Name (PAUP, Package (0x03) { Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }, Package (0x01) { 0xFE7CB391D650A284 }, Package (0x01) { 0xC179B3FE } }) /* Benchmark Data */ /* Benchmark Integer Values in case conversion */ /* Derefof(Index(..., String->Integer)) */ Name (BI10, 0x69) Name (BI11, 0x0A5B) /* Benchmark Integer Values in case conversion */ /* Decrement/Increment(String/Buffer->Integer)) */ Name (BI12, 0x0320) Name (BI13, 0x0321) Name (BI14, 0xC179B3FD) Name (BI15, 0xC179B3FE) Name (BI16, 0xFE7CB391D650A283) Name (BI17, 0xFE7CB391D650A284) Name (BI18, 0xD650A283) Name (BI19, 0xD650A284) Name (BI23, 0x0322) Name (BI27, 0xFE7CB391D650A285) Name (BI29, 0xD650A285) /* Benchmark Strings in case conversion */ /* Concatenate(String, Integer->String) */ Name (BS10, "FE7CB391D650A284") Name (BS11, "1234qFE7CB391D650A284") Name (BS12, "C179B3FE") Name (BS13, "1234qC179B3FE") Name (BS14, "D650A284") Name (BS15, "1234qD650A284") /* Benchmark Strings in case conversion */ /* ToString(Integer->Buffer, ...) */ Name (BS16, "NSya") Name (BS17, "NSy") Name (BS18, "\x14\"P6AS|n") Name (BS19, "\x14\"P") Name (BS1A, "\x14\"") /* Benchmark Strings in case conversion */ /* ToString(..., String->Integer) */ Name (BS1B, "This is aux") Name (BS1C, "This is auxiliary Buffer") /* Benchmark Strings in case conversion */ /* Mid(String, String->Integer, Integer) */ Name (BS1D, "iliary Str") Name (BS1E, "This is auxiliary String") Name (BS1F, "iliary String") /* Benchmark Strings in case conversion */ /* ToString(String->Buffer, ...) */ Name (BS20, "0321") Name (BS21, "032") Name (BS22, "") Name (BS23, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") Name (BS24, "!\"#") /* Benchmark Strings in case conversion */ /* Concatenate(String, Buffer->String) */ Name (BS25, "21 03 00") Name (BS26, "1234q21 03 00") Name (BS27, "21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63") /* Benchmark Buffers in case conversion */ /* Concatenate(Buffer, Integer->Buffer) */ Name (BB10, Buffer (0x09) { /* 0000 */ 0x5A, 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, // Z..P...| /* 0008 */ 0xFE // . }) Name (BB11, Buffer (0x0A) { /* 0000 */ 0x5A, 0x00, 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, // Z...P... /* 0008 */ 0x7C, 0xFE // |. }) Name (BB12, Buffer (0x05) { 0x5A, 0xFE, 0xB3, 0x79, 0xC1 // Z..y. }) Name (BB13, Buffer (0x06) { 0x5A, 0x00, 0xFE, 0xB3, 0x79, 0xC1 // Z...y. }) Name (BB14, Buffer (0x05) { 0x5A, 0x84, 0xA2, 0x50, 0xD6 // Z..P. }) Name (BB15, Buffer (0x06) { 0x5A, 0x00, 0x84, 0xA2, 0x50, 0xD6 // Z...P. }) Name (BB16, Buffer (0x10) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x5A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Z....... }) Name (BB17, Buffer (0x10) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x5A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Z....... }) Name (BB18, Buffer (0x08) { 0xFE, 0xB3, 0x79, 0xC1, 0x5A, 0x00, 0x00, 0x00 // ..y.Z... }) Name (BB19, Buffer (0x08) { 0xFE, 0xB3, 0x79, 0xC1, 0x5A, 0x00, 0x00, 0x00 // ..y.Z... }) Name (BB1A, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x5A, 0x00, 0x00, 0x00 // ..P.Z... }) Name (BB1B, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x5A, 0x00, 0x00, 0x00 // ..P.Z... }) /* Benchmark Integer->Buffer Buffers */ /* If no buffer object exists, a new buffer */ /* object is created based on the size of */ /* the integer (4 bytes for 32-bit integers */ /* and 8 bytes for 64-bit integers). */ Name (BB1C, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }) Name (BB1D, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) /* Benchmark Buffers in case conversion */ /* Mid(Buffer Field->Integer->Buffer, 0, n, ...) */ Name (BB1E, Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0x01 // ..y.. }) Name (BB1F, Buffer (0x09) { /* 0000 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // !....... /* 0008 */ 0x01 // . }) /* Benchmark Buffers in case conversion */ /* Concatenate(Integer->Buffer, Integer->Buffer) */ Name (BB20, Buffer (0x10) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (BB21, Buffer (0x10) { /* 0000 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // !....... /* 0008 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) Name (BB22, Buffer (0x10) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // !....... }) Name (BB23, Buffer (0x08) { 0xFE, 0xB3, 0x79, 0xC1, 0xFE, 0xB3, 0x79, 0xC1 // ..y...y. }) Name (BB24, Buffer (0x08) { 0x21, 0x03, 0x00, 0x00, 0xFE, 0xB3, 0x79, 0xC1 // !.....y. }) Name (BB25, Buffer (0x08) { 0xFE, 0xB3, 0x79, 0xC1, 0x21, 0x03, 0x00, 0x00 // ..y.!... }) /* Benchmark Buffers in case conversion */ /* Concatenate(Integer->Buffer, String->Integer->Buffer) */ /* Concatenate(Integer->Buffer, Buffer->Integer->Buffer) */ Name (BB26, Buffer (0x10) { /* 0000 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // !....... /* 0008 */ 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // !....... }) Name (BB27, Buffer (0x08) { 0x21, 0x03, 0x00, 0x00, 0x21, 0x03, 0x00, 0x00 // !...!... }) Name (BB28, Buffer (0x08) { 0x21, 0x03, 0x00, 0x00, 0x84, 0xA2, 0x50, 0xD6 // !.....P. }) /* Benchmark Buffers in case conversion */ /* Concatenate(Buffer, String->Buffer) */ Name (BB29, Buffer (0x06) { "Z0321" }) Name (BB2A, Buffer (0x07) { 0x5A, 0x00, 0x30, 0x33, 0x32, 0x31, 0x00 // Z.0321. }) Name (BB2B, Buffer (0x02) { "Z" }) Name (BB2C, Buffer (0x03) { 0x5A, 0x00, 0x00 // Z.. }) Name (BB2D, Buffer (0xC9) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*" }) /* Benchmark Buffers in case conversion */ /* Mid(Integer->Buffer, 1, n, ...) */ Name (BB30, Buffer (0x07) { 0x22, 0x00, 0x36, 0x41, 0x53, 0x7C, 0x6E // ".6AS|n }) Name (BB31, Buffer (0x03) { 0x22, 0x00, 0x36 // ".6 }) /* Benchmark Buffers in case conversion */ /* Mid(Buffer, String->Integer, Integer) */ Name (BB32, Buffer (0x0A) { /* 0000 */ 0x69, 0x6C, 0x69, 0x61, 0x72, 0x79, 0x20, 0x42, // iliary B /* 0008 */ 0x75, 0x66 // uf }) Name (BB33, Buffer (0x0B) { /* 0000 */ 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, // This is /* 0008 */ 0x61, 0x75, 0x78 // aux }) Name (BB34, Buffer (0x19) { "This is auxiliary Buffer" }) Name (BB35, Buffer (0x0E) { "iliary Buffer" }) /* Check Result of operation on equal to Benchmark value */ /* m600(, */ /* , */ /* , */ /* ) */ Method (M600, 4, NotSerialized) { Local0 = ObjectType (Arg2) Local1 = ObjectType (Arg3) If ((Local0 != Local1)) { ERR (Concatenate (Arg0, "-OType"), Z084, __LINE__, 0x00, 0x00, Local0, Local1) } ElseIf ((Arg2 != Arg3)) { ERR (Arg0, Z084, __LINE__, 0x00, 0x00, Arg2, Arg3) } } /* Obtain specified Constant Auxiliary Object */ /* as result of a Method invocation (by Return) */ /* m601(, */ /* ) */ Method (M601, 2, Serialized) { Switch (ToInteger (Arg0)) { Case (0x01) { /* Integer */ Switch (ToInteger (Arg1)) { Case (0x00) { Local0 = 0x00 Return (Ones) } Case (0x01) { Return (0x0321) } Case (0x02) { Return (0x000000024CB016EA) } Case (0x03) { Return (0xC179B3FE) } Case (0x04) { Return (0xFE7CB391D650A284) } Case (0x05) { Return (0x00) } Case (0x06) { Return (0x01) } Case (0x07) { Return (0x03) } Case (0x08) { Return (0x04) } Case (0x09) { Return (0x05) } Case (0x0A) { Return (0x08) } Case (0x0B) { Return (0x09) } Case (0x0C) { Return (0xC179B3FF) } Case (0x0D) { Return (0xFE7CB391D650A285) } Case (0x0E) { Return (0xC179B3FD) } Case (0x0F) { Return (0xFE7CB391D650A283) } Case (0x10) { Return (0x0322) } Case (0x11) { Return (0x0320) } Case (0x12) { Return (0xFFFFFFFF) } Case (0x13) { Return (0xFFFFFFFFFFFFFFFF) } Case (0x14) { Return (0xD650A284) } Case (0x15) { Return (0xD650A285) } Case (0x16) { Return (0xD650A283) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } } Case (0x02) { /* String */ Switch (ToInteger (Arg1)) { Case (0x00) { Return ("") } Case (0x01) { Return ("1234q") } Case (0x02) { Return ("c179B3FE") } Case (0x03) { Return ("C179B3FE") } Case (0x04) { Return ("FE7CB391D650A284") } Case (0x05) { Return ("fE7CB391D650A284") } Case (0x06) { Return ("This is auxiliary String") } Case (0x07) { Return ("0321") } Case (0x08) { Return ("321") } Case (0x09) { Return ("21 03 00") } Case (0x0A) { Return ("21 03 01") } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } } Case (0x03) { /* Buffer */ Switch (ToInteger (Arg1)) { Case (0x00) { Return (Buffer (0x01) { 0x5A // Z }) } Case (0x01) { Return (Buffer (0x02) { "Z" }) } Case (0x02) { Return (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC2 // ..y. }) } Case (0x03) { Return (Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }) } Case (0x04) { Return (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) } Case (0x05) { Return (Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFF // ..P...|. }) } Case (0x06) { Return (Buffer (0x19) { "This is auxiliary Buffer" }) } Case (0x07) { Return (Buffer (0x05) { "0321" }) } Case (0x08) { Return (Buffer (0x05) { 0x30, 0x33, 0x32, 0x31, 0x01 // 0321. }) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } } Case (0x04) { /* Package */ Switch (ToInteger (Arg1)) { Case (0x00) { Return (Package (0x0F) { 0x0A50, 0x0A51, 0x0A52, 0x0A53, 0x0A54, 0x0A55, 0x0A56, 0x0A57, 0x0A58, 0x0A59, 0x0A5A, 0x0A5B, 0x0A5C, 0x0A5D, 0x0A5E }) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Return (Local0) } /* Obtain specified Auxiliary Global Named Object */ /* or reference to it as result of a Method invocation */ /* (by Return) */ /* m602(, */ /* , */ /* ) */ Method (M602, 3, Serialized) { If ((Arg2 < 0x03)) { Switch (ToInteger (Arg0)) { Case (0x01) { /* Integer */ Switch (ToInteger (Arg1)) { Case (0x00) { If ((Arg2 == 0x00)) { Return (AUI0) /* \AUI0 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI0)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI0, Local0) Return (Local0) } } Case (0x01) { If ((Arg2 == 0x00)) { Return (AUI1) /* \AUI1 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI1)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI1, Local0) Return (Local0) } } Case (0x02) { If ((Arg2 == 0x00)) { Return (AUI2) /* \AUI2 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI2)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI2, Local0) Return (Local0) } } Case (0x03) { If ((Arg2 == 0x00)) { Return (AUI3) /* \AUI3 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI3)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI3, Local0) Return (Local0) } } Case (0x04) { If ((Arg2 == 0x00)) { Return (AUI4) /* \AUI4 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI4)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI4, Local0) Return (Local0) } } Case (0x05) { If ((Arg2 == 0x00)) { Return (AUI5) /* \AUI5 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI5)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI5, Local0) Return (Local0) } } Case (0x06) { If ((Arg2 == 0x00)) { Return (AUI6) /* \AUI6 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI6)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI6, Local0) Return (Local0) } } Case (0x07) { If ((Arg2 == 0x00)) { Return (AUI7) /* \AUI7 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI7)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI7, Local0) Return (Local0) } } Case (0x08) { If ((Arg2 == 0x00)) { Return (AUI8) /* \AUI8 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI8)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI8, Local0) Return (Local0) } } Case (0x09) { If ((Arg2 == 0x00)) { Return (AUI9) /* \AUI9 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUI9)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUI9, Local0) Return (Local0) } } Case (0x0A) { If ((Arg2 == 0x00)) { Return (AUIA) /* \AUIA */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIA)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIA, Local0) Return (Local0) } } Case (0x0B) { If ((Arg2 == 0x00)) { Return (AUIB) /* \AUIB */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIB)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIB, Local0) Return (Local0) } } Case (0x0C) { If ((Arg2 == 0x00)) { Return (AUIC) /* \AUIC */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIC)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIC, Local0) Return (Local0) } } Case (0x0D) { If ((Arg2 == 0x00)) { Return (AUID) /* \AUID */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUID)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUID, Local0) Return (Local0) } } Case (0x0E) { If ((Arg2 == 0x00)) { Return (AUIE) /* \AUIE */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIE)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIE, Local0) Return (Local0) } } Case (0x0F) { If ((Arg2 == 0x00)) { Return (AUIF) /* \AUIF */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIF)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIF, Local0) Return (Local0) } } Case (0x10) { If ((Arg2 == 0x00)) { Return (AUIG) /* \AUIG */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIG)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIG, Local0) Return (Local0) } } Case (0x11) { If ((Arg2 == 0x00)) { Return (AUIH) /* \AUIH */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIH)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIH, Local0) Return (Local0) } } Case (0x12) { If ((Arg2 == 0x00)) { Return (AUII) /* \AUII */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUII)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUII, Local0) Return (Local0) } } Case (0x13) { If ((Arg2 == 0x00)) { Return (AUIJ) /* \AUIJ */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIJ)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIJ, Local0) Return (Local0) } } Case (0x14) { If ((Arg2 == 0x00)) { Return (AUIK) /* \AUIK */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIK)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIK, Local0) Return (Local0) } } Case (0x15) { If ((Arg2 == 0x00)) { Return (AUIL) /* \AUIL */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIL)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIL, Local0) Return (Local0) } } Case (0x16) { If ((Arg2 == 0x00)) { Return (AUIM) /* \AUIM */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUIM)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUIM, Local0) Return (Local0) } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } } Case (0x02) { /* String */ Switch (ToInteger (Arg1)) { Case (0x00) { If ((Arg2 == 0x00)) { Return (AUS0) /* \AUS0 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS0)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS0, Local0) Return (Local0) } } Case (0x01) { If ((Arg2 == 0x00)) { Return (AUS1) /* \AUS1 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS1)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS1, Local0) Return (Local0) } } Case (0x02) { If ((Arg2 == 0x00)) { Return (AUS2) /* \AUS2 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS2)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS2, Local0) Return (Local0) } } Case (0x03) { If ((Arg2 == 0x00)) { Return (AUS3) /* \AUS3 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS3)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS3, Local0) Return (Local0) } } Case (0x04) { If ((Arg2 == 0x00)) { Return (AUS4) /* \AUS4 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS4)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS4, Local0) Return (Local0) } } Case (0x05) { If ((Arg2 == 0x00)) { Return (AUS5) /* \AUS5 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS5)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS5, Local0) Return (Local0) } } Case (0x06) { If ((Arg2 == 0x00)) { Return (AUS6) /* \AUS6 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS6)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS6, Local0) Return (Local0) } } Case (0x07) { If ((Arg2 == 0x00)) { Return (AUS7) /* \AUS7 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS7)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS7, Local0) Return (Local0) } } Case (0x08) { If ((Arg2 == 0x00)) { Return (AUS8) /* \AUS8 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS8)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS8, Local0) Return (Local0) } } Case (0x09) { If ((Arg2 == 0x00)) { Return (AUS9) /* \AUS9 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUS9)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUS9, Local0) Return (Local0) } } Case (0x0A) { If ((Arg2 == 0x00)) { Return (AUSA) /* \AUSA */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUSA)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUSA, Local0) Return (Local0) } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } } Case (0x03) { /* Buffer */ Switch (ToInteger (Arg1)) { Case (0x00) { If ((Arg2 == 0x00)) { Return (AUB0) /* \AUB0 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUB0)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUB0, Local0) Return (Local0) } } Case (0x01) { If ((Arg2 == 0x00)) { Return (AUB1) /* \AUB1 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUB1)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUB1, Local0) Return (Local0) } } Case (0x02) { If ((Arg2 == 0x00)) { Return (AUB2) /* \AUB2 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUB2)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUB2, Local0) Return (Local0) } } Case (0x03) { If ((Arg2 == 0x00)) { Return (AUB3) /* \AUB3 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUB3)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUB3, Local0) Return (Local0) } } Case (0x04) { If ((Arg2 == 0x00)) { Return (AUB4) /* \AUB4 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUB4)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUB4, Local0) Return (Local0) } } Case (0x05) { If ((Arg2 == 0x00)) { Return (AUB5) /* \AUB5 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUB5)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUB5, Local0) Return (Local0) } } Case (0x06) { If ((Arg2 == 0x00)) { Return (AUB6) /* \AUB6 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUB6)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUB6, Local0) Return (Local0) } } Case (0x07) { If ((Arg2 == 0x00)) { Return (AUB7) /* \AUB7 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUB7)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUB7, Local0) Return (Local0) } } Case (0x08) { If ((Arg2 == 0x00)) { Return (AUB8) /* \AUB8 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUB8)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUB8, Local0) Return (Local0) } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } } Case (0x04) { /* Package */ Switch (ToInteger (Arg1)) { Case (0x00) { If ((Arg2 == 0x00)) { Return (AUP0) /* \AUP0 */ } ElseIf ((Arg2 == 0x01)) { Return (RefOf (AUP0)) } ElseIf ((Arg2 == 0x02)) { CondRefOf (AUP0, Local0) Return (Local0) } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } } Else { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } Return (Local0) } /* Obtain specified Auxiliary Element of Package */ /* or reference to it as result of a Method invocation */ /* (by Return) */ /* m603(, */ /* , */ /* ) */ Method (M603, 3, Serialized) { Switch (ToInteger (Arg0)) { Case (0x01) { /* Integer */ If ((Arg1 < 0x17)) { Switch (ToInteger (Arg2)) { Case (0x00) { Return (DerefOf (PAUI [Arg1])) } Case (0x01) { Return (PAUI [Arg1]) } Case (0x02) { Local0 = PAUI [Arg1] Return (Local0) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Else { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Case (0x02) { /* String */ If ((Arg1 < 0x0B)) { Switch (ToInteger (Arg2)) { Case (0x00) { Return (DerefOf (PAUS [Arg1])) } Case (0x01) { Return (PAUS [Arg1]) } Case (0x02) { Local0 = PAUS [Arg1] Return (Local0) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Else { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Case (0x03) { /* Buffer */ If ((Arg1 < 0x09)) { Switch (ToInteger (Arg2)) { Case (0x00) { Return (DerefOf (PAUB [Arg1])) } Case (0x01) { Return (PAUB [Arg1]) } Case (0x02) { Local0 = PAUB [Arg1] Return (Local0) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Else { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Case (0x04) { /* Package */ If ((Arg1 < 0x06)) { Switch (ToInteger (Arg2)) { Case (0x00) { Return (DerefOf (PAUP [Arg1])) } Case (0x01) { Return (PAUP [Arg1]) } Case (0x02) { Local0 = PAUP [Arg1] Return (Local0) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Else { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Return (Local0) } /* Obtain specified Test Object or reference to it by Return */ /* m604( */ /* , */ /* , */ /* ) */ Method (M604, 4, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { /* Constant */ If (Arg3) { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ Switch (ToInteger (Arg2)) { Case (0x03) { Return (0xC179B3FE) } Case (0x04) { Return (0xFE7CB391D650A284) } Case (0x0C) { Return (0x6179534E) } Case (0x0D) { Return (0x6E7C534136502214) } Case (0x0E) { Return (0x6E00534136002214) } Case (0x0F) { Return (0x6E7C534136002214) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Case (0x02) { /* String */ Switch (ToInteger (Arg2)) { Case (0x00) { Return ("0") } Case (0x01) { Return ("0321") } Case (0x04) { Return ("C179B3FE") } Case (0x05) { Return ("FE7CB391D650A284") } Case (0x0C) { Return ("") } Case (0x0E) { Return ("!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") } Case (0x14) { Return ("B") } Case (0x15) { Return ("3789012345678901") } Case (0x16) { Return ("D76162EE9EC35") } Case (0x17) { Return ("90123456") } Case (0x18) { Return ("55F2CC0") } Case (0x1B) { Return ("63") } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Case (0x03) { /* Buffer */ Switch (ToInteger (Arg2)) { Case (0x00) { Return (Buffer (0x01) { 0x00 // . }) } Case (0x06) { Return (Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) } Case (0x0A) { Return (Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) } Case (0x0C) { Return (Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) } Case (0x0E) { Return (Buffer (0x01) { 0x0B // . }) } Case (0x0F) { Return (Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }) } Case (0x10) { Return (Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }) } Case (0x11) { Return (Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. }) } Case (0x12) { Return (Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }) } Case (0x13) { Return (Buffer (0x01) { 0x3F // ? }) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Case (0x01) { /* Global Named Object */ Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ Switch (ToInteger (Arg2)) { Case (0x03) { Switch (ToInteger (Arg3)) { Case (0x00) { Return (I603) /* \I603 */ } Case (0x01) { Return (RefOf (I603)) } Case (0x02) { CondRefOf (I603, Local0) Return (Local0) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg2, Arg3) } } } Case (0x04) { Switch (ToInteger (Arg3)) { Case (0x00) { Return (I604) /* \I604 */ } Case (0x01) { Return (RefOf (I604)) } Case (0x02) { CondRefOf (I604, Local0) Return (Local0) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg2, Arg3) } } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Case (0x02) { /* Element of Package */ Switch (ToInteger (Arg1)) { Case (0x01) { /* Integer */ If ((Arg2 < 0x10)) { Switch (ToInteger (Arg3)) { Case (0x00) { Return (DerefOf (PI60 [Arg2])) } Case (0x01) { Return (PI60 [Arg2]) } Case (0x02) { Local0 = PI60 [Arg2] Return (Local0) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg2, Arg3) } } } Else { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } Case (0x02) { /* String */ If ((Arg2 < 0x1C)) { Switch (ToInteger (Arg3)) { Case (0x00) { Return (DerefOf (PS60 [Arg2])) } Case (0x01) { Return (PS60 [Arg2]) } Case (0x02) { Local0 = PS60 [Arg2] Return (Local0) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg2, Arg3) } } } Else { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } Case (0x03) { /* Buffer */ If ((Arg2 < 0x14)) { Switch (ToInteger (Arg3)) { Case (0x00) { Return (DerefOf (PB60 [Arg2])) } Case (0x01) { Return (PB60 [Arg2]) } Case (0x02) { Local0 = PB60 [Arg2] Return (Local0) } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg2, Arg3) } } } Else { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg1, Arg2) } } } Default { ERR (TERR, Z084, __LINE__, 0x00, 0x00, Arg0, Arg1) } } Return (Local0) } /* Check consistency of the test Named Objects */ /* in the root Scope of the Global ACPI namespace */ /* m605(, */ /* , */ /* ) */ Method (M605, 3, NotSerialized) { If ((Arg1 == 0x01)) { If (Arg2) { /* Test Integers Package */ M600 (Arg0, 0x01, DerefOf (PI60 [0x01]), 0xD1) M600 (Arg0, 0x02, DerefOf (PI60 [0x02]), 0x000000024CB016EA) M600 (Arg0, 0x03, DerefOf (PI60 [0x03]), 0xC179B3FE) M600 (Arg0, 0x04, DerefOf (PI60 [0x04]), 0xFE7CB391D650A284) M600 (Arg0, 0x05, DerefOf (PI60 [0x05]), 0x00) M600 (Arg0, 0x06, DerefOf (PI60 [0x06]), 0xFFFFFFFF) M600 (Arg0, 0x07, DerefOf (PI60 [0x07]), 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x08, DerefOf (PI60 [0x08]), 0x00ABCDEF) M600 (Arg0, 0x09, DerefOf (PI60 [0x09]), 0x00ABCDEF) M600 (Arg0, 0x0A, DerefOf (PI60 [0x0A]), 0xFF) M600 (Arg0, 0x0B, DerefOf (PI60 [0x0B]), 0x000000FFFFFFFFFF) M600 (Arg0, 0x0C, DerefOf (PI60 [0x0C]), 0x6179534E) M600 (Arg0, 0x0D, DerefOf (PI60 [0x0D]), 0x6E7C534136502214) M600 (Arg0, 0x0E, DerefOf (PI60 [0x0E]), 0x6E00534136002214) M600 (Arg0, 0x0F, DerefOf (PI60 [0x0F]), 0x6E7C534136002214) } Else { /* Test Integers */ M600 (Arg0, 0x10, I601, 0xD1) M600 (Arg0, 0x11, I602, 0x000000024CB016EA) M600 (Arg0, 0x12, I603, 0xC179B3FE) M600 (Arg0, 0x13, I604, 0xFE7CB391D650A284) M600 (Arg0, 0x14, I605, 0x00) M600 (Arg0, 0x15, I606, 0xFFFFFFFF) M600 (Arg0, 0x16, I607, 0xFFFFFFFFFFFFFFFF) M600 (Arg0, 0x17, I608, 0x00ABCDEF) M600 (Arg0, 0x18, I609, 0x00ABCDEF) M600 (Arg0, 0x19, I60A, 0xFF) M600 (Arg0, 0x1A, I60B, 0x000000FFFFFFFFFF) M600 (Arg0, 0x1B, I60C, 0x6179534E) M600 (Arg0, 0x1C, I60D, 0x6E7C534136502214) M600 (Arg0, 0x1D, I60E, 0x6E00534136002214) M600 (Arg0, 0x1E, I60F, 0x6E7C534136002214) } } ElseIf ((Arg1 == 0x02)) { If (Arg2) { /* Test Strings Package */ M600 (Arg0, 0x1F, DerefOf (PS60 [0x00]), "0") M600 (Arg0, 0x20, DerefOf (PS60 [0x01]), "0321") M600 (Arg0, 0x21, DerefOf (PS60 [0x02]), "321") M600 (Arg0, 0x22, DerefOf (PS60 [0x03]), "ba9876") M600 (Arg0, 0x23, DerefOf (PS60 [0x04]), "C179B3FE") M600 (Arg0, 0x24, DerefOf (PS60 [0x05]), "FE7CB391D650A284") M600 (Arg0, 0x25, DerefOf (PS60 [0x06]), "ffffffff") M600 (Arg0, 0x26, DerefOf (PS60 [0x07]), "ffffffffffffffff") M600 (Arg0, 0x27, DerefOf (PS60 [0x08]), "fe7cb391d650a2841") M600 (Arg0, 0x28, DerefOf (PS60 [0x09]), "9876543210") M600 (Arg0, 0x29, DerefOf (PS60 [0x0A]), "0xfe7cb3") M600 (Arg0, 0x2A, DerefOf (PS60 [0x0B]), "1234q") M600 (Arg0, 0x2B, DerefOf (PS60 [0x0C]), "") M600 (Arg0, 0x2C, DerefOf (PS60 [0x0D]), " ") M600 (Arg0, 0x2D, DerefOf (PS60 [0x0E]), "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x2E, DerefOf (PS60 [0x0F]), "\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F") M600 (Arg0, 0x2F, DerefOf (PS60 [0x10]), "abcdef") M600 (Arg0, 0x30, DerefOf (PS60 [0x11]), "ABCDEF") M600 (Arg0, 0x31, DerefOf (PS60 [0x12]), "ff") M600 (Arg0, 0x32, DerefOf (PS60 [0x13]), "ffffffffff") M600 (Arg0, 0x33, DerefOf (PS60 [0x14]), "B") M600 (Arg0, 0x34, DerefOf (PS60 [0x15]), "3789012345678901") M600 (Arg0, 0x35, DerefOf (PS60 [0x16]), "D76162EE9EC35") M600 (Arg0, 0x36, DerefOf (PS60 [0x17]), "90123456") M600 (Arg0, 0x37, DerefOf (PS60 [0x18]), "55F2CC0") M600 (Arg0, 0x38, DerefOf (PS60 [0x19]), "c179B3FE") M600 (Arg0, 0x39, DerefOf (PS60 [0x1A]), "fE7CB391D650A284") M600 (Arg0, 0x3A, DerefOf (PS60 [0x1B]), "63") } Else { /* Test Strings */ M600 (Arg0, 0x3B, S600, "0") M600 (Arg0, 0x3C, S601, "0321") M600 (Arg0, 0x3D, S602, "321") M600 (Arg0, 0x3E, S603, "ba9876") M600 (Arg0, 0x3F, S604, "C179B3FE") M600 (Arg0, 0x40, S605, "FE7CB391D650A284") M600 (Arg0, 0x41, S606, "ffffffff") M600 (Arg0, 0x42, S607, "ffffffffffffffff") M600 (Arg0, 0x43, S608, "fe7cb391d650a2841") M600 (Arg0, 0x44, S609, "9876543210") M600 (Arg0, 0x45, S60A, "0xfe7cb3") M600 (Arg0, 0x46, S60B, "1234q") M600 (Arg0, 0x47, S60C, "") M600 (Arg0, 0x48, S60D, " ") M600 (Arg0, 0x49, S60E, "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&\'()*") M600 (Arg0, 0x4A, S60F, "\x01\x02\x03\x04\x05\x06\a\b\t\n\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F") M600 (Arg0, 0x4B, S610, "abcdef") M600 (Arg0, 0x4C, S611, "ABCDEF") M600 (Arg0, 0x4D, S612, "ff") M600 (Arg0, 0x4E, S613, "ffffffffff") M600 (Arg0, 0x4F, S614, "B") M600 (Arg0, 0x50, S615, "3789012345678901") M600 (Arg0, 0x51, S616, "D76162EE9EC35") M600 (Arg0, 0x52, S617, "90123456") M600 (Arg0, 0x53, S618, "55F2CC0") M600 (Arg0, 0x54, S619, "c179B3FE") M600 (Arg0, 0x55, S61A, "fE7CB391D650A284") M600 (Arg0, 0x56, S61B, "63") } } ElseIf ((Arg1 == 0x03)) { If (Arg2) { /* Test Buffers Package */ M600 (Arg0, 0x57, DerefOf (PB60 [0x00]), Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x58, DerefOf (PB60 [0x01]), Buffer (0x01) { 0xA5 // . }) M600 (Arg0, 0x59, DerefOf (PB60 [0x02]), Buffer (0x02) { 0x21, 0x03 // !. }) M600 (Arg0, 0x5A, DerefOf (PB60 [0x03]), Buffer (0x03) { 0x21, 0x03, 0x5A // !.Z }) M600 (Arg0, 0x5B, DerefOf (PB60 [0x04]), Buffer (0x03) { 0x21, 0x03, 0x5A // !.Z }) M600 (Arg0, 0x5C, DerefOf (PB60 [0x05]), Buffer (0x03) { 0x21, 0x03 // !. }) M600 (Arg0, 0x5D, DerefOf (PB60 [0x06]), Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x5E, DerefOf (PB60 [0x07]), Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }) M600 (Arg0, 0x5F, DerefOf (PB60 [0x08]), Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0xA5 // ..y.. }) M600 (Arg0, 0x60, DerefOf (PB60 [0x09]), Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M600 (Arg0, 0x61, DerefOf (PB60 [0x0A]), Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x62, DerefOf (PB60 [0x0B]), Buffer (0x0101) { 0x00 // . }) M600 (Arg0, 0x63, DerefOf (PB60 [0x0C]), Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x64, DerefOf (PB60 [0x0D]), Buffer (0x44) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abc" }) M600 (Arg0, 0x65, DerefOf (PB60 [0x0E]), Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x66, DerefOf (PB60 [0x0F]), Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }) M600 (Arg0, 0x67, DerefOf (PB60 [0x10]), Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }) M600 (Arg0, 0x68, DerefOf (PB60 [0x11]), Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. }) M600 (Arg0, 0x69, DerefOf (PB60 [0x12]), Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }) M600 (Arg0, 0x6A, DerefOf (PB60 [0x13]), Buffer (0x01) { 0x3F // ? }) } Else { /* Test Buffers */ M600 (Arg0, 0x6B, B600, Buffer (0x01) { 0x00 // . }) M600 (Arg0, 0x6C, B601, Buffer (0x01) { 0xA5 // . }) M600 (Arg0, 0x6D, B602, Buffer (0x02) { 0x21, 0x03 // !. }) M600 (Arg0, 0x6E, B603, Buffer (0x03) { 0x21, 0x03, 0x5A // !.Z }) M600 (Arg0, 0x6F, B604, Buffer (0x03) { 0x21, 0x03, 0x5A // !.Z }) M600 (Arg0, 0x70, B605, Buffer (0x03) { 0x21, 0x03 // !. }) M600 (Arg0, 0x71, B606, Buffer (0x03) { 0x21, 0x03, 0x00 // !.. }) M600 (Arg0, 0x72, B607, Buffer (0x04) { 0xFE, 0xB3, 0x79, 0xC1 // ..y. }) M600 (Arg0, 0x73, B608, Buffer (0x05) { 0xFE, 0xB3, 0x79, 0xC1, 0xA5 // ..y.. }) M600 (Arg0, 0x74, B609, Buffer (0x08) { 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE // ..P...|. }) M600 (Arg0, 0x75, B60A, Buffer (0x09) { /* 0000 */ 0x84, 0xA2, 0x50, 0xD6, 0x91, 0xB3, 0x7C, 0xFE, // ..P...|. /* 0008 */ 0xA5 // . }) M600 (Arg0, 0x76, B60B, Buffer (0x0101) { 0x00 // . }) M600 (Arg0, 0x77, B60C, Buffer (0x43) { /* 0000 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0008 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0010 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0018 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0020 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0028 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0030 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0038 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0040 */ 0x61, 0x62, 0x63 // abc }) M600 (Arg0, 0x78, B60D, Buffer (0x44) { "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abc" }) M600 (Arg0, 0x79, B60E, Buffer (0x01) { 0x0B // . }) M600 (Arg0, 0x7A, B60F, Buffer (0x08) { 0x01, 0x89, 0x67, 0x45, 0x23, 0x01, 0x89, 0x37 // ..gE#..7 }) M600 (Arg0, 0x7B, B610, Buffer (0x07) { 0x35, 0xEC, 0xE9, 0x2E, 0x16, 0x76, 0x0D // 5....v. }) M600 (Arg0, 0x7C, B611, Buffer (0x04) { 0x56, 0x34, 0x12, 0x90 // V4.. }) M600 (Arg0, 0x7D, B612, Buffer (0x04) { 0xC0, 0x2C, 0x5F, 0x05 // .,_. }) M600 (Arg0, 0x7E, B613, Buffer (0x01) { 0x3F // ? }) } } } /* Check consistency of the test Named Objects */ /* in the root Scope of the Global ACPI namespace */ Method (M606, 1, NotSerialized) { M605 (Arg0, 0x01, 0x00) M605 (Arg0, 0x01, 0x01) M605 (Arg0, 0x02, 0x00) M605 (Arg0, 0x02, 0x01) M605 (Arg0, 0x03, 0x00) M605 (Arg0, 0x03, 0x01) } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/operand/Makefile0000700000175000017500000000011514773714153027344 0ustar ivanhuivanhu# operand MDIRS = tests TOP= ../../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/0000700000175000017500000000000014773714153026210 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/DECL.asl0000700000175000017500000000514714773714153027432 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Note: many tests of Identity2MS test case verifies * behaviour of the name space component of ACPICA too. */ Include ("../../../../runtime/collections/complex/namespace/ns0.asl") Include ("../../../../runtime/collections/complex/namespace/ns1.asl") Include ("../../../../runtime/collections/complex/namespace/ns2.asl") Include ("../../../../runtime/collections/complex/namespace/ns3.asl") Include ("../../../../runtime/collections/complex/namespace/ns4.asl") /* Include("../../../../runtime/collections/complex/namespace/ns5.asl") */ Include ("../../../../runtime/collections/complex/namespace/ns6.asl") Include ("../../../../runtime/collections/complex/namespace/ns0_root.asl") Include ("../../../../runtime/collections/complex/namespace/ns2_root.asl") Include ("../../../../runtime/collections/complex/namespace/scope.asl") Include ("../../../../runtime/collections/complex/namespace/fullpath.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/RUN.asl0000700000175000017500000000501414773714153027360 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Note: many tests of Identity2MS test case verifies * behaviour of the name space component of ACPICA too. */ /* * The NameSpace tests * * Name of methods below: * nxyy * yy - name of test * x - modification of yy test * 0 - initial test * 1 - the test contains root names */ If (STTT ("The tests of Name Space component", TCLC, 0x13, W012)) { N000 () N001 () N002 () N003 () N004 () /* n005() */ N006 () N100 () N102 () SCP0 () FPD0 () } FTTT () acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns4.asl0000700000175000017500000001126114773714153027421 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Calls to methods instead of Add */ /* SEE: do here all the tests ns0-ns... with Add replaced by MAdd */ Name (Z158, 0x9E) Method (M401, 1, Serialized) { Name (I000, 0x01) Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) CH03 (__METHOD__, Z158, __LINE__, 0x00, 0x00) I001 = Arg0 Method (MADD, 2, NotSerialized) { Local0 = (Arg0 + Arg1) Return (Local0) } Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, I000) /* \M401.I000 */ } Return (0x00) } I000 = 0x80000000 Return (MADD (I000, M008 ())) } I000 = 0x07000000 Return (MADD (I000, M007 ())) } I000 = 0x00600000 Return (MADD (I000, M006 ())) } I000 = 0x00050000 Return (MADD (I000, M005 ())) } I000 = 0x4000 Return (MADD (I000, M004 ())) } I000 = 0x0300 Return (MADD (I000, M003 ())) } I000 = 0x20 Return (MADD (I000, M002 ())) } Local0 = MADD (I000, M001 ()) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z158, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If ((I000 != 0x80000000)) { ERR (__METHOD__, Z158, __LINE__, 0x00, 0x00, I000, 0x80000000) } CH03 (__METHOD__, Z158, __LINE__, 0x00, 0x00) } Method (N004, 0, NotSerialized) { If (0x01) { SRMT ("m401-0") M401 (0x00) SRMT ("m401-1") If (Y200) { M401 (0x01) } Else { BLCK () } } Else { SRMT ("m401-0") M401 (0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns5.asl0000700000175000017500000001425014773714153027423 0ustar ivanhuivanhuin progress do these tests - enclose in method, pass device to method and check that really deal with objects of initial device Integer/package/buffer/string/... /* same as ns2 (and+ to cover all type Fields elements of Package /buffer/string) but pass that device/power/tz/... by argument. do for all types of combined objects: device/power/tz/... */ Name(z159, 159) /* * Check access to elements Package/Buffer/String and Buffer Field * where the parent is an element of some complex object (Device). */ Method(m500) { Name(ts, "m500") Device(d000) { Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) } Method(m001, 2) { Store(0x11112222, Index(arg0, 0)) } m001(d000.p000, RefOf(d000.p000)) Store(DerefOf(Index(d000.p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z159, __LINE__, 0, 0, Local0, 0x11112222) } CH03(ts, z159, 0x100, __LINE__, 0) } Method(m501) { Name(ts, "m501") Device(d000) { Name(b000, Buffer() {0x10, 0x11, 0x12}) } Method(m001, 2) { Store(0x67, Index(arg0, 0)) } m001(d000.b000, RefOf(d000.b000)) Store(DerefOf(Index(d000.b000, 0)), Local0) if (LNotEqual(Local0, 0x67)) { err(ts, z159, __LINE__, 0, 0, Local0, 0x67) } CH03(ts, z159, 0x101, __LINE__, 0) } Method(m502) { Name(ts, "m502") Device(d000) { Name(s000, "qqqqqqqqqqqqqq") } Method(m001, 2) { Store(0x38, Index(arg0, 0)) } m001(d000.s000, RefOf(d000.s000)) Store(DerefOf(Index(d000.s000, 0)), Local0) if (LNotEqual(Local0, 0x38)) { err(ts, z159, __LINE__, 0, 0, Local0, 0x38) } CH03(ts, z159, 0x102, __LINE__, 0) } /* * Element of Package instead of i000 (in m001) */ Method(m503, 1) { Name(ts, "m503") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Device(d000) { Name(pp00, Package() {0x11111111, 0x00000001, 0x22223333}) } CH03(ts, z159, 0x103, __LINE__, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { Store(p000, Index(\m503.d000.pp00, 1)) } Return (0) } Store(0x80000000, Index(\m503.d000.pp00, 1)) Return (Add(DerefOf(Index(\m503.d000.pp00, 1)), m008())) } Store(0x07000000, Index(\m503.d000.pp00, 1)) Return (Add(DerefOf(Index(\m503.d000.pp00, 1)), m007())) } Store(0x00600000, Index(\m503.d000.pp00, 1)) Return (Add(DerefOf(Index(\m503.d000.pp00, 1)), m006())) } Store(0x00050000, Index(\m503.d000.pp00, 1)) Return (Add(DerefOf(Index(\m503.d000.pp00, 1)), m005())) } Store(0x00004000, Index(\m503.d000.pp00, 1)) Return (Add(DerefOf(Index(\m503.d000.pp00, 1)), m004())) } Store(0x00000300, Index(\m503.d000.pp00, 1)) Return (Add(DerefOf(Index(\m503.d000.pp00, 1)), m003())) } Store(0x00000020, Index(^d000.pp00, 1)) Return (Add(DerefOf(Index(^d000.pp00, 1)), m002())) } Store(Add(DerefOf(Index(d000.pp00, 1)), m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z159, __LINE__, 0, 0, Local0, 0x87654321) } Store(DerefOf(Index(d000.pp00, 1)), Local0) if (LNotEqual(Local0, 0x80000000)) { err(ts, z159, __LINE__, 0, 0, Local0, 0x80000000) } CH03(ts, z159, 0x104, __LINE__, 0) } /* * Element of Package instead of i000 (in m002) */ Method(m504) { Name(ts, "m504") Name(i001, 0) Device(d000) { Name(pp00, Package() {0x11111111, 0x00100000, 0x22223333}) } Method(m001) { if (LLess(i001, 100)) { Store(DerefOf(Index(^d000.pp00, 1)), Local0) Increment(Local0) Store(Local0, Index(^d000.pp00, 1)) Increment(i001) Add(DerefOf(Index(^d000.pp00, 1)), m001(), Local0) Return (Local0) } Return (0) } Store(Add(DerefOf(Index(d000.pp00, 1)), m001()), Local0) if (LNotEqual(Local0, 0x065013BA)) { err(ts, z159, __LINE__, 0, 0, Local0, 0x065013BA) } Store(DerefOf(Index(d000.pp00, 1)), Local0) if (LNotEqual(Local0, 0x00100064)) { err(ts, z159, __LINE__, 0, 0, Local0, 0x00100064) } CH03(ts, z159, 0x105, __LINE__, 0) } /* * Buffer Field instead of i000 (in m001) */ Method(m505, 1) { Name(ts, "m505") Name(i001, 0) Name(p000, Package() {1,2,3,4}) CH03(ts, z159, 0x200, __LINE__, 0) Device(d000) { Name(b000, Buffer(16) {}) CreateField(b000, 5, 32, bf00) } CH03(ts, z159, 0x106, __LINE__, 0) if (0) { CreateField(d000.b000, 5, 32, bf00) } Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { Store(p000, Index(\m505.d000.bf00, 1)) } Return (0) } Store(0x80000000, Index(\m505.d000.bf00, 1)) Return (Add(DerefOf(Index(\m505.d000.bf00, 1)), m008())) } Store(0x07000000, Index(\m505.d000.bf00, 1)) Return (Add(DerefOf(Index(\m505.d000.bf00, 1)), m007())) } Store(0x00600000, Index(\m505.d000.bf00, 1)) Return (Add(DerefOf(Index(\m505.d000.bf00, 1)), m006())) } Store(0x00050000, Index(\m505.d000.bf00, 1)) Return (Add(DerefOf(Index(\m505.d000.bf00, 1)), m005())) } Store(0x00004000, Index(\m505.d000.bf00, 1)) Return (Add(DerefOf(Index(\m505.d000.bf00, 1)), m004())) } Store(0x00000300, Index(\m505.d000.bf00, 1)) Return (Add(DerefOf(Index(\m505.d000.bf00, 1)), m003())) } Store(0x00000020, Index(^d000.bf00, 1)) Return (Add(DerefOf(Index(^d000.bf00, 1)), m002())) } Store(Add(DerefOf(Index(d000.bf00, 1)), m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z159, __LINE__, 0, 0, Local0, 0x87654321) } Store(DerefOf(Index(d000.bf00, 1)), Local0) if (LNotEqual(Local0, 0x80000000)) { err(ts, z159, __LINE__, 0, 0, Local0, 0x80000000) } CH03(ts, z159, 0x107, __LINE__, 0) } Method(n005) { if (1) { SRMT("m500") m500() SRMT("m501") m501() SRMT("m502") m502() SRMT("m503-0") m503(0) SRMT("m503-1") if (y200) { m503(1) } else { BLCK() } SRMT("m504") m504() SRMT("m505-0") if (y216) { m505(0) } else { BLCK() } SRMT("m505-1") if (LAnd(y200, y216)) { m505(1) } else { BLCK() } } else { SRMT("m505-0") m505(0) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/fullpath.asl0000700000175000017500000000753714773714153030547 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Name (Z179, 0xB3) /* !!!!!!!!!!!!!!!! It is in progress, just started !!!!!!!!!!!!!!!! */ /* * Check full path Name declarations performed from inside Methods */ Method (FP00, 0, Serialized) { Method (M000, 0, Serialized) { Name (\I4Z0, 0xABCD0000) If ((I4Z0 != 0xABCD0000)) { ERR (__METHOD__, Z179, __LINE__, 0x00, 0x00, I4Z0, 0xABCD0000) } If ((\I4Z0 != 0xABCD0000)) { ERR (__METHOD__, Z179, __LINE__, 0x00, 0x00, \I4Z0, 0xABCD0000) } M001 () } Method (M001, 0, NotSerialized) { If ((I4Z0 != 0xABCD0000)) { ERR (__METHOD__, Z179, __LINE__, 0x00, 0x00, I4Z0, 0xABCD0000) } If ((\I4Z0 != 0xABCD0000)) { ERR (__METHOD__, Z179, __LINE__, 0x00, 0x00, \I4Z0, 0xABCD0000) } } CH03 (__METHOD__, Z179, __LINE__, 0x00, 0x00) M000 () CH03 (__METHOD__, Z179, __LINE__, 0x00, 0x00) } Method (FP01, 0, Serialized) { Method (M000, 1, Serialized) { If (!Arg0) { Name (\I4Z1, 0xABCD0000) } If ((I4Z1 != 0xABCD0000)) { ERR (__METHOD__, Z179, __LINE__, 0x00, 0x00, I4Z1, 0xABCD0000) } If ((\I4Z1 != 0xABCD0000)) { ERR (__METHOD__, Z179, __LINE__, 0x00, 0x00, \I4Z1, 0xABCD0000) } M001 () } Method (M001, 0, NotSerialized) { If ((I4Z1 != 0xABCD0000)) { ERR (__METHOD__, Z179, __LINE__, 0x00, 0x00, I4Z1, 0xABCD0000) } If ((\I4Z1 != 0xABCD0000)) { ERR (__METHOD__, Z179, __LINE__, 0x00, 0x00, \I4Z1, 0xABCD0000) } } CH03 (__METHOD__, Z179, __LINE__, 0x00, 0x00) M000 (0x00) CH03 (__METHOD__, Z179, __LINE__, 0x00, 0x00) } Method (FPD0, 0, NotSerialized) { SRMT ("fp00") FP00 () SRMT ("fp01") FP01 () } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns0.asl0000700000175000017500000003065014773714153027420 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Trying to get the chain of calls of methods such that * sections of operative stack corresponding to different * methods contain the internal object (itself, not a RefOf * reference to it) of the same Name Space node. * * Then force (by Store/CopyObject): * 1) changing the value of that internal object * 2) replacing the internal object itself by some another one * * Check that the changing/replacing has no effect on the * values evaluated on the lowest stages of calculation. */ Name (Z154, 0x9A) /* * Named Integer i000 */ Method (M000, 1, Serialized) { Name (I000, 0x01) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) Name (I001, 0x00) CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { If (I001) { CopyObject (P000, I000) /* \M000.I000 */ } Return (0xABCD0000) } Return ((I000 + M003 ())) } Return ((I000 + M002 ())) } Store ((I000 + M001 ()), Local0) If ((Local0 != 0xABCD0003)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0xABCD0003) } Debug = Local0 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) } Method (M001, 1, Serialized) { Name (I000, 0x01) Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, I000) /* \M001.I000 */ } Return (0x00) } I000 = 0x80000000 Return ((I000 + M008 ())) } I000 = 0x07000000 Return ((I000 + M007 ())) } I000 = 0x00600000 Return ((I000 + M006 ())) } I000 = 0x00050000 Return ((I000 + M005 ())) } I000 = 0x4000 Return ((I000 + M004 ())) } I000 = 0x0300 Return ((I000 + M003 ())) } I000 = 0x20 Return ((I000 + M002 ())) } Store ((I000 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If ((I000 != 0x80000000)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, I000, 0x80000000) } CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) } Method (M002, 0, Serialized) { Name (I000, 0x00100000) Name (I001, 0x00) Method (M001, 0, NotSerialized) { If ((I001 < 0x64)) { I000++ I001++ Local0 = (I000 + M001 ()) Return (Local0) } Return (0x00) } Store ((I000 + M001 ()), Local0) If ((Local0 != 0x065013BA)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x065013BA) } If ((I000 != 0x00100064)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, I000, 0x00100064) } CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) } Method (M003, 0, Serialized) { Name (I000, 0x00100000) Name (I001, 0x00) Method (M001, 0, NotSerialized) { If ((I001 < 0x64)) { I000++ I001++ Return (Local0 = (I000 + M001 ())) } Return (0x00) } Store ((I000 + M001 ()), Local0) If ((Local0 != 0x065013BA)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x065013BA) } If ((I000 != 0x00100064)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, I000, 0x00100064) } CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) } /* * Local instead of i000 (in m001) */ Method (M004, 1, Serialized) { Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) I001 = Arg0 Local7 = 0x01 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, Local7) } Return (0x00) } Local7 = 0x80000000 Return ((Local7 + M008 ())) } Local7 = 0x07000000 Return ((Local7 + M007 ())) } Local7 = 0x00600000 Return ((Local7 + M006 ())) } Local7 = 0x00050000 Return ((Local7 + M005 ())) } Local7 = 0x4000 Return ((Local7 + M004 ())) } Local7 = 0x0300 Return ((Local7 + M003 ())) } Local7 = 0x20 Return ((Local7 + M002 ())) } Store ((Local7 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If ((Local7 != 0x01)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local7, 0x01) } CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) } /* * Arg instead of i000 (in m001) */ Method (M005, 2, Serialized) { Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) I001 = Arg0 Arg1 = 0x01 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, Arg1) } Return (0x00) } Arg1 = 0x80000000 Return ((Arg1 + M008 ())) } Arg1 = 0x07000000 Return ((Arg1 + M007 ())) } Arg1 = 0x00600000 Return ((Arg1 + M006 ())) } Arg1 = 0x00050000 Return ((Arg1 + M005 ())) } Arg1 = 0x4000 Return ((Arg1 + M004 ())) } Arg1 = 0x0300 Return ((Arg1 + M003 ())) } Arg1 = 0x20 Return ((Arg1 + M002 ())) } Store ((Arg1 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If ((Arg1 != 0x01)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Arg1, 0x01) } CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) } Method (N000, 0, NotSerialized) { If (0x01) { SRMT ("m000-0") M000 (0x00) SRMT ("m000-1") M000 (0x01) SRMT ("m001-0") M001 (0x00) SRMT ("m001-1") If (Y200) { M001 (0x01) } Else { BLCK () } SRMT ("m002") M002 () SRMT ("m003") M003 () SRMT ("m004-0") M004 (0x00) SRMT ("m004-1") M004 (0x01) SRMT ("m005-0") M005 (0x00, 0x00) SRMT ("m005-1") M005 (0x01, 0x00) } Else { SRMT ("m000-0") M000 (0x00) SRMT ("m000-1") M000 (0x01) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns0_root.asl0000700000175000017500000003371314773714153030466 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * ns0 originated but has names from root */ /* * Internal Integer of Device instead of i000 (in m001) */ Method (M006, 1, Serialized) { Device (D000) { Name (I000, 0x01) } Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) I001 = Arg0 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, \M006.D000.I000) } Return (0x00) } \M006.D000.I000 = 0x80000000 Return ((\M006.D000.I000 + M008 ())) } \M006.D000.I000 = 0x07000000 Return ((\M006.D000.I000 + M007 ())) } \M006.D000.I000 = 0x00600000 Return ((\M006.D000.I000 + M006 ())) } \M006.D000.I000 = 0x00050000 Return ((\M006.D000.I000 + M005 ())) } \M006.D000.I000 = 0x4000 Return ((\M006.D000.I000 + M004 ())) } \M006.D000.I000 = 0x0300 Return ((\M006.D000.I000 + M003 ())) } ^D000.I000 = 0x20 Return ((^D000.I000 + M002 ())) } Store ((D000.I000 + M001 ()), Local0) If (FLG9) { CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If ((D000.I000 != 0x80000000)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, D000.I000, 0x80000000) } } Else { CH04 (__METHOD__, 0x01, 0x05, Z154, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ } } /* * Internal Integer of ThermalZone instead of i000 (in m001) */ Method (M007, 1, Serialized) { ThermalZone (TZ00) { Name (I000, 0x01) } Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) I001 = Arg0 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, \M007.TZ00.I000) } Return (0x00) } \M007.TZ00.I000 = 0x80000000 Return ((\M007.TZ00.I000 + M008 ())) } \M007.TZ00.I000 = 0x07000000 Return ((\M007.TZ00.I000 + M007 ())) } \M007.TZ00.I000 = 0x00600000 Return ((\M007.TZ00.I000 + M006 ())) } \M007.TZ00.I000 = 0x00050000 Return ((\M007.TZ00.I000 + M005 ())) } \M007.TZ00.I000 = 0x4000 Return ((\M007.TZ00.I000 + M004 ())) } \M007.TZ00.I000 = 0x0300 Return ((\M007.TZ00.I000 + M003 ())) } ^TZ00.I000 = 0x20 Return ((^TZ00.I000 + M002 ())) } Store ((TZ00.I000 + M001 ()), Local0) If (FLG9) { CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If ((TZ00.I000 != 0x80000000)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, TZ00.I000, 0x80000000) } } Else { CH04 (__METHOD__, 0x01, 0x05, Z154, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ } } /* * Internal Integer of Processor instead of i000 (in m001) */ Method (M008, 1, Serialized) { Processor (PR00, 0x00, 0xFFFFFFFF, 0x00) { Name (I000, 0x01) } Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) I001 = Arg0 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, \M008.PR00.I000) } Return (0x00) } \M008.PR00.I000 = 0x80000000 Return ((\M008.PR00.I000 + M008 ())) } \M008.PR00.I000 = 0x07000000 Return ((\M008.PR00.I000 + M007 ())) } \M008.PR00.I000 = 0x00600000 Return ((\M008.PR00.I000 + M006 ())) } \M008.PR00.I000 = 0x00050000 Return ((\M008.PR00.I000 + M005 ())) } \M008.PR00.I000 = 0x4000 Return ((\M008.PR00.I000 + M004 ())) } \M008.PR00.I000 = 0x0300 Return ((\M008.PR00.I000 + M003 ())) } ^PR00.I000 = 0x20 Return ((^PR00.I000 + M002 ())) } Store ((PR00.I000 + M001 ()), Local0) If (FLG9) { CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If ((PR00.I000 != 0x80000000)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, PR00.I000, 0x80000000) } } Else { CH04 (__METHOD__, 0x01, 0x05, Z154, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ } } /* * Internal Integer of PowerResource instead of i000 (in m001) */ Method (M009, 1, Serialized) { PowerResource (PW00, 0x01, 0x0000) { Name (I000, 0x01) } Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) I001 = Arg0 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { CopyObject (P000, \M009.PW00.I000) } Return (0x00) } \M009.PW00.I000 = 0x80000000 Return ((\M009.PW00.I000 + M008 ())) } \M009.PW00.I000 = 0x07000000 Return ((\M009.PW00.I000 + M007 ())) } \M009.PW00.I000 = 0x00600000 Return ((\M009.PW00.I000 + M006 ())) } \M009.PW00.I000 = 0x00050000 Return ((\M009.PW00.I000 + M005 ())) } \M009.PW00.I000 = 0x4000 Return ((\M009.PW00.I000 + M004 ())) } \M009.PW00.I000 = 0x0300 Return ((\M009.PW00.I000 + M003 ())) } ^PW00.I000 = 0x20 Return ((^PW00.I000 + M002 ())) } Store ((PW00.I000 + M001 ()), Local0) If (FLG9) { CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If ((PW00.I000 != 0x80000000)) { ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, PW00.I000, 0x80000000) } } Else { CH04 (__METHOD__, 0x01, 0x05, Z154, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */ } } Method (N100, 0, NotSerialized) { If (0x01) { SRMT ("m006-0") M006 (0x00) SRMT ("m006-1") If (Y200) { M006 (0x01) } Else { BLCK () } SRMT ("m007-0") M007 (0x00) SRMT ("m007-1") If (Y200) { M007 (0x01) } Else { BLCK () } SRMT ("m008-0") M008 (0x00) SRMT ("m008-1") If (Y200) { M008 (0x01) } Else { BLCK () } SRMT ("m009-0") M009 (0x00) SRMT ("m009-1") If (Y200) { M009 (0x01) } Else { BLCK () } } Else { } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns6.asl0000700000175000017500000000225114773714153027422 0ustar ivanhuivanhu /* in progress */ Name (Z160, 0xA0) Method (M600, 0, Serialized) { Name (I000, 0xABCD0000) Method (M000, 1, NotSerialized) { I000 = 0x11223344 If ((Arg0 != 0xABCD0000)) { ERR (__METHOD__, Z160, __LINE__, 0x00, 0x00, Arg0, 0xABCD0000) } } M000 (I000) If ((I000 != 0x11223344)) { ERR (__METHOD__, Z160, __LINE__, 0x00, 0x00, I000, 0x11223344) } } /* do these Method(m003) { Name(i000, 0x00000001) Method(m001, 1) { Store(0x00000020, i000) Return (arg0) } Store(Add(i000, m001(i000)), Local0) if (LNotEqual(Local0, 0x00000002)) { Store("Error 2", Debug) Store(Local0, Debug) } else { Store("Ok 2", Debug) } if (LNotEqual(i000, 0x00000020)) { Store("Error 3", Debug) } else { Store("Ok 3", Debug) } } */ Method (N006, 0, NotSerialized) { If (0x01) { SRMT ("m600") M600 () } Else { SRMT ("m600") M600 () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/MAIN.asl0000700000175000017500000000426514773714153027447 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Note: many tests of Identity2MS test case verifies * behaviour of the name space component of ACPICA too. */ DefinitionBlock ("namespace", "DSDT", 2, "Intel", "Many", 0x00000001) { /* All declarations */ Include ("../../../../runtime/cntl/DECL.asl") Include ("../../../../runtime/collections/complex/namespace/DECL.asl") Method (MAIN, 0, NotSerialized) { /* Initialization */ STRT (0x00) /* Run verification methods */ Include ("../../../../runtime/collections/complex/namespace/RUN.asl") /* Final actions */ Store (FNSH (), Local7) Return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns2.asl0000700000175000017500000001167414773714153027427 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Name (Z156, 0x9C) /* * Check access to elements Package/Buffer/String and Buffer Field * where the parent is an element of some complex object (Device). */ Method (M200, 0, Serialized) { Device (D000) { Name (P000, Package (0x03) { 0xABCD0000, 0xABCD0001, 0xABCD0002 }) } Method (M001, 2, NotSerialized) { Arg0 [0x00] = 0x11112222 } M001 (D000.P000, RefOf (D000.P000)) Local0 = DerefOf (D000.P000 [0x00]) If ((Local0 != 0x11112222)) { ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x11112222) } CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00) } Method (M201, 0, Serialized) { Device (D000) { Name (B000, Buffer (0x03) { 0x10, 0x11, 0x12 // ... }) } Method (M001, 2, NotSerialized) { Arg0 [0x00] = 0x67 } M001 (D000.B000, RefOf (D000.B000)) Local0 = DerefOf (D000.B000 [0x00]) If ((Local0 != 0x67)) { ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x67) } CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00) } Method (M202, 0, Serialized) { Device (D000) { Name (S000, "qqqqqqqqqqqqqq") } Method (M001, 2, NotSerialized) { Arg0 [0x00] = 0x38 } M001 (D000.S000, RefOf (D000.S000)) Local0 = DerefOf (D000.S000 [0x00]) If ((Local0 != 0x38)) { ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x38) } CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00) } /* * Element of Package instead of i000 (in m002) */ Method (M204, 0, Serialized) { Name (I001, 0x00) Device (D000) { Name (PP00, Package (0x03) { 0x11111111, 0x00100000, 0x22223333 }) } Method (M001, 0, NotSerialized) { If ((I001 < 0x64)) { Local0 = DerefOf (^D000.PP00 [0x01]) Local0++ ^D000.PP00 [0x01] = Local0 I001++ Local0 = (DerefOf (^D000.PP00 [0x01]) + M001 ()) Return (Local0) } Return (0x00) } Store ((DerefOf (D000.PP00 [0x01]) + M001 ()), Local0) If ((Local0 != 0x065013BA)) { ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x065013BA) } Local0 = DerefOf (D000.PP00 [0x01]) If ((Local0 != 0x00100064)) { ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x00100064) } CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00) } Method (N002, 0, NotSerialized) { If (0x01) { SRMT ("m200") M200 () SRMT ("m201") M201 () SRMT ("m202") M202 () SRMT ("m204") M204 () } Else { SRMT ("m200") M200 () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/Makefile0000700000175000017500000000022614773714153027653 0ustar ivanhuivanhu# namespace AMLMOD= namespace COLL= ../.. ADD_ASLFLAGS=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns7.asl0000700000175000017500000000010614773714153027420 0ustar ivanhuivanhu// in progress don't forget -- start the separate test for CopyObjectacpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/scope.asl0000700000175000017500000000437614773714153030037 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Name (Z178, 0xB2) /* !!!!!!!!!!!!!!!! It is in progress, just started !!!!!!!!!!!!!!!! */ Method (SC00, 0, Serialized) { Method (M000, 1, Serialized) { Scope (\) { Name (I2Z4, 0xABCD0007) } } CH03 (__METHOD__, Z178, __LINE__, 0x00, 0x00) M000 (0x00) CH03 (__METHOD__, Z178, __LINE__, 0x00, 0x00) } Method (SCP0, 0, NotSerialized) { SRMT ("sc00") If (Y302) { SC00 () } Else { BLCK () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns1.asl0000700000175000017500000005773514773714153027436 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Name (Z155, 0x9B) /* * Three tests below are here * as specific type arguments passing - * arguments though passed directly to method, not as references, * nevertheless allow access to the elements of original objects. */ Method (M100, 0, Serialized) { Name (P000, Package (0x03) { 0xABCD0000, 0xABCD0001, 0xABCD0002 }) Method (M001, 2, NotSerialized) { Arg0 [0x00] = 0x11112222 } M001 (P000, RefOf (P000)) Local0 = DerefOf (P000 [0x00]) If ((Local0 != 0x11112222)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x11112222) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } Method (M101, 0, Serialized) { Name (B000, Buffer (0x03) { 0x10, 0x11, 0x12 // ... }) Method (M001, 2, NotSerialized) { Arg0 [0x00] = 0x67 } M001 (B000, RefOf (B000)) Local0 = DerefOf (B000 [0x00]) If ((Local0 != 0x67)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x67) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } Method (M102, 0, Serialized) { Name (S000, "qqqqqqqqqqqqqq") Method (M001, 2, NotSerialized) { Arg0 [0x00] = 0x38 } M001 (S000, RefOf (S000)) Local0 = DerefOf (S000 [0x00]) If ((Local0 != 0x38)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x38) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } /* * Element of Package instead of i000 (in m001) */ Method (M103, 1, Serialized) { Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) Name (PP00, Package (0x03) { 0x11111111, 0x01, 0x22223333 }) CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { PP00 [0x01] = P000 /* \M103.P000 */ } Return (0x00) } PP00 [0x01] = 0x80000000 Return ((DerefOf (PP00 [0x01]) + M008 ())) } PP00 [0x01] = 0x07000000 Return ((DerefOf (PP00 [0x01]) + M007 ())) } PP00 [0x01] = 0x00600000 Return ((DerefOf (PP00 [0x01]) + M006 ())) } PP00 [0x01] = 0x00050000 Return ((DerefOf (PP00 [0x01]) + M005 ())) } PP00 [0x01] = 0x4000 Return ((DerefOf (PP00 [0x01]) + M004 ())) } PP00 [0x01] = 0x0300 Return ((DerefOf (PP00 [0x01]) + M003 ())) } PP00 [0x01] = 0x20 Return ((DerefOf (PP00 [0x01]) + M002 ())) } Store ((DerefOf (PP00 [0x01]) + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local0 = DerefOf (PP00 [0x01]) If ((Local0 != 0x80000000)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x80000000) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } /* * Element of Package instead of i000 (in m002) */ Method (M104, 0, Serialized) { Name (I001, 0x00) Name (PP00, Package (0x03) { 0x11111111, 0x00100000, 0x22223333 }) Method (M001, 0, NotSerialized) { If ((I001 < 0x64)) { Local0 = DerefOf (PP00 [0x01]) Local0++ PP00 [0x01] = Local0 I001++ Local0 = (DerefOf (PP00 [0x01]) + M001 ()) Return (Local0) } Return (0x00) } Store ((DerefOf (PP00 [0x01]) + M001 ()), Local0) If ((Local0 != 0x065013BA)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x065013BA) } Local0 = DerefOf (PP00 [0x01]) If ((Local0 != 0x00100064)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x00100064) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } /* * Buffer Field instead of i000 (in m001) */ Method (M105, 1, Serialized) { Name (I001, 0x00) Name (B000, Buffer (0x10){}) CreateField (B000, 0x05, 0x20, BF00) CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { BF00 = 0x11223344 } Return (0x00) } BF00 = 0x80000000 Return ((BF00 + M008 ())) } BF00 = 0x07000000 Return ((BF00 + M007 ())) } BF00 = 0x00600000 Return ((BF00 + M006 ())) } BF00 = 0x00050000 Return ((BF00 + M005 ())) } BF00 = 0x4000 Return ((BF00 + M004 ())) } BF00 = 0x0300 Return ((BF00 + M003 ())) } BF00 = 0x20 Return ((BF00 + M002 ())) } BF00 = 0x01 Store ((BF00 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If (Arg0) { Local1 = Buffer() {0x44, 0x33, 0x22, 0x11} } Else { Local1 = Buffer() {0x00, 0x00, 0x00, 0x80} } If ((BF00 != Local1)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, BF00, Local1) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } /* * Field instead of i000 (in m001) */ Method (M106, 1, Serialized) { Name (I001, 0x00) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 32, F001, 32 } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { F001 = 0x11223344 } Return (0x00) } F001 = 0x80000000 Return ((F001 + M008 ())) } F001 = 0x07000000 Return ((F001 + M007 ())) } F001 = 0x00600000 Return ((F001 + M006 ())) } F001 = 0x00050000 Return ((F001 + M005 ())) } F001 = 0x4000 Return ((F001 + M004 ())) } F001 = 0x0300 Return ((F001 + M003 ())) } F001 = 0x20 Return ((F001 + M002 ())) } F001 = 0x01 Store ((F001 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If (Arg0) { Local1 = 0x11223344 } Else { Local1 = 0x80000000 } If ((F001 != Local1)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, F001, Local1) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } /* * Bank Field instead of i000 (in m001) * * (is this test correct?) */ Method (M107, 1, Serialized) { Name (I001, 0x00) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 32, F001, 32 } BankField (R000, F001, 0x00, ByteAcc, NoLock, Preserve) { BNK0, 32 } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { BNK0 = 0x11223344 } Return (0x00) } BNK0 = 0x80000000 Return ((BNK0 + M008 ())) } BNK0 = 0x07000000 Return ((BNK0 + M007 ())) } BNK0 = 0x00600000 Return ((BNK0 + M006 ())) } BNK0 = 0x00050000 Return ((BNK0 + M005 ())) } BNK0 = 0x4000 Return ((BNK0 + M004 ())) } BNK0 = 0x0300 Return ((BNK0 + M003 ())) } BNK0 = 0x20 Return ((BNK0 + M002 ())) } BNK0 = 0x01 Store ((BNK0 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If (Arg0) { Local1 = 0x11223344 } Else { Local1 = 0x80000000 } If ((BNK0 != Local1)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, BNK0, Local1) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } /* * Index Field instead of i000 (in m001) * * (is this test correct?) */ Method (M108, 1, Serialized) { Name (I001, 0x00) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 32, F001, 32 } IndexField (F000, F001, ByteAcc, NoLock, Preserve) { IF00, 32 } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { IF00 = 0x11223344 } Return (0x00) } IF00 = 0x80000000 Return ((IF00 + M008 ())) } IF00 = 0x07000000 Return ((IF00 + M007 ())) } IF00 = 0x00600000 Return ((IF00 + M006 ())) } IF00 = 0x00050000 Return ((IF00 + M005 ())) } IF00 = 0x4000 Return ((IF00 + M004 ())) } IF00 = 0x0300 Return ((IF00 + M003 ())) } IF00 = 0x20 Return ((IF00 + M002 ())) } IF00 = 0x01 Store ((IF00 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If (Arg0) { Local1 = 0x11223344 } Else { Local1 = 0x80000000 } If ((IF00 != Local1)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, IF00, Local1) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } /* * Element of Buffer instead of i000 (in m001) */ Method (M109, 1, Serialized) { Name (I001, 0x00) Name (B000, Buffer (0x03) { 0x11, 0x01, 0x22 // .." }) CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { B000 [0x01] = 0xFF } Return (0x00) } B000 [0x01] = 0x08 Return ((DerefOf (B000 [0x01]) + M008 ())) } B000 [0x01] = 0x07 Return ((DerefOf (B000 [0x01]) + M007 ())) } B000 [0x01] = 0x06 Return ((DerefOf (B000 [0x01]) + M006 ())) } B000 [0x01] = 0x05 Return ((DerefOf (B000 [0x01]) + M005 ())) } B000 [0x01] = 0x04 Return ((DerefOf (B000 [0x01]) + M004 ())) } B000 [0x01] = 0x03 Return ((DerefOf (B000 [0x01]) + M003 ())) } B000 [0x01] = 0x02 Return ((DerefOf (B000 [0x01]) + M002 ())) } Store ((DerefOf (B000 [0x01]) + M001 ()), Local0) If ((Local0 != 0x24)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x24) } Local0 = DerefOf (B000 [0x01]) If (Arg0) { Local1 = 0xFF } Else { Local1 = 0x08 } If ((Local0 != Local1)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, Local1) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } /* * Element of String instead of i000 (in m001) */ Method (M10A, 1, Serialized) { Name (I001, 0x00) Name (S000, "q\x01ertyuiop") CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { S000 [0x01] = 0xFF } Return (0x00) } S000 [0x01] = 0x08 Return ((DerefOf (S000 [0x01]) + M008 ())) } S000 [0x01] = 0x07 Return ((DerefOf (S000 [0x01]) + M007 ())) } S000 [0x01] = 0x06 Return ((DerefOf (S000 [0x01]) + M006 ())) } S000 [0x01] = 0x05 Return ((DerefOf (S000 [0x01]) + M005 ())) } S000 [0x01] = 0x04 Return ((DerefOf (S000 [0x01]) + M004 ())) } S000 [0x01] = 0x03 Return ((DerefOf (S000 [0x01]) + M003 ())) } S000 [0x01] = 0x02 Return ((DerefOf (S000 [0x01]) + M002 ())) } Store ((DerefOf (S000 [0x01]) + M001 ()), Local0) If ((Local0 != 0x24)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, 0x24) } Local0 = DerefOf (S000 [0x01]) If (Arg0) { Local1 = 0xFF } Else { Local1 = 0x08 } If ((Local0 != Local1)) { ERR (__METHOD__, Z155, __LINE__, 0x00, 0x00, Local0, Local1) } CH03 (__METHOD__, Z155, __LINE__, 0x00, 0x00) } Method (N001, 0, NotSerialized) { If (0x01) { SRMT ("m100") M100 () SRMT ("m101") M101 () SRMT ("m102") M102 () SRMT ("m103-0") M103 (0x00) SRMT ("m103-1") If (Y200) { M103 (0x01) } Else { BLCK () } SRMT ("m104") M104 () SRMT ("m105-0") M105 (0x00) SRMT ("m105-1") M105 (0x01) SRMT ("m106-0") M106 (0x00) SRMT ("m106-1") M106 (0x01) SRMT ("m107-0") M107 (0x00) SRMT ("m107-1") M107 (0x01) SRMT ("m108-0") M108 (0x00) SRMT ("m108-1") M108 (0x01) SRMT ("m109-0") M109 (0x00) SRMT ("m109-1") M109 (0x01) SRMT ("m10a-0") M10A (0x00) SRMT ("m10a-1") M10A (0x01) SRMT ("m10a-0-2") /* Run it twice: see bug 265 */ M10A (0x00) M10A (0x00) } Else { SRMT ("m10a-0") M10A (0x00) SRMT ("m10a-1") M10A (0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns2_root.asl0000700000175000017500000002063114773714153030463 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * ns2 originated but has names from root */ /* * Element of Package instead of i000 (in m001) */ Method (M203, 1, Serialized) { Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) Device (D000) { Name (PP00, Package (0x03) { 0x11111111, 0x01, 0x22223333 }) } CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { \M203.D000.PP00 [0x01] = P000 /* \M203.P000 */ } Return (0x00) } \M203.D000.PP00 [0x01] = 0x80000000 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M008 ())) } \M203.D000.PP00 [0x01] = 0x07000000 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M007 ())) } \M203.D000.PP00 [0x01] = 0x00600000 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M006 ())) } \M203.D000.PP00 [0x01] = 0x00050000 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M005 ())) } \M203.D000.PP00 [0x01] = 0x4000 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M004 ())) } \M203.D000.PP00 [0x01] = 0x0300 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M003 ())) } ^D000.PP00 [0x01] = 0x20 Return ((DerefOf (^D000.PP00 [0x01]) + M002 ())) } Store ((DerefOf (D000.PP00 [0x01]) + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local0 = DerefOf (D000.PP00 [0x01]) If ((Local0 != 0x80000000)) { ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x80000000) } CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00) } /* * Buffer Field instead of i000 (in m001) */ Method (M205, 1, Serialized) { Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00) Device (D000) { Name (B000, Buffer (0x10){}) CreateField (B000, 0x05, 0x20, BF00) } CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00) If (0x00) { CreateField (D000.B000, 0x05, 0x20, BF00) } I001 = Arg0 Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { \M205.D000.BF00 [0x01] = P000 /* \M205.P000 */ } Return (0x00) } \M205.D000.BF00 [0x01] = 0x80000000 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M008 ())) } \M205.D000.BF00 [0x01] = 0x07000000 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M007 ())) } \M205.D000.BF00 [0x01] = 0x00600000 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M006 ())) } \M205.D000.BF00 [0x01] = 0x00050000 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M005 ())) } \M205.D000.BF00 [0x01] = 0x4000 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M004 ())) } \M205.D000.BF00 [0x01] = 0x0300 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M003 ())) } ^D000.BF00 [0x01] = 0x20 Return ((DerefOf (^D000.BF00 [0x01]) + M002 ())) } Store ((DerefOf (D000.BF00 [0x01]) + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local0 = DerefOf (D000.BF00 [0x01]) If ((Local0 != 0x80000000)) { ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x80000000) } CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00) } Method (N102, 0, NotSerialized) { If (0x01) { SRMT ("m203-0") M203 (0x00) SRMT ("m203-1") If (Y200) { M203 (0x01) } Else { BLCK () } SRMT ("m205-0") If (Y216) { M205 (0x00) } Else { BLCK () } SRMT ("m205-1") If ((Y200 && Y216)) { M205 (0x01) } Else { BLCK () } } Else { SRMT ("m205-0") M205 (0x00) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/complex/namespace/ns3.asl0000700000175000017500000007740114773714153027430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The tests differ those from ns1.asl by that the parent object is * passed to methods as argument (Arg) but not directly by name. */ Name (Z157, 0x9D) Method (M300, 0, Serialized) { Name (P000, Package (0x03) { 0xABCD0000, 0xABCD0001, 0xABCD0002 }) Method (M000, 1, NotSerialized) { Method (M001, 2, NotSerialized) { Arg0 [0x00] = 0x11112222 } M001 (Arg0, RefOf (Arg0)) Local0 = DerefOf (Arg0 [0x00]) If ((Local0 != 0x11112222)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x11112222) } } M000 (P000) Local0 = DerefOf (P000 [0x00]) If ((Local0 != 0x11112222)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x11112222) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } Method (M301, 0, Serialized) { Name (B000, Buffer (0x03) { 0x10, 0x11, 0x12 // ... }) Method (M000, 1, NotSerialized) { Method (M001, 2, NotSerialized) { Arg0 [0x00] = 0x67 } M001 (Arg0, RefOf (Arg0)) Local0 = DerefOf (Arg0 [0x00]) If ((Local0 != 0x67)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x67) } } M000 (B000) Local0 = DerefOf (B000 [0x00]) If ((Local0 != 0x67)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x67) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } Method (M302, 0, Serialized) { Name (S000, "qqqqqqqqqqqqqq") Method (M000, 1, NotSerialized) { Method (M001, 2, NotSerialized) { Arg0 [0x00] = 0x38 } M001 (Arg0, RefOf (Arg0)) Local0 = DerefOf (Arg0 [0x00]) If ((Local0 != 0x38)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x38) } } M000 (S000) Local0 = DerefOf (S000 [0x00]) If ((Local0 != 0x38)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x38) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } /* * Element of Package instead of i000 (in m001) */ Method (M303, 1, Serialized) { Name (PP00, Package (0x03) { 0x11111111, 0x01, 0x22223333 }) Method (M000, 2, Serialized) { Name (I001, 0x00) Name (P000, Package (0x04) { 0x01, 0x02, 0x03, 0x04 }) CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) I001 = Arg1 Method (M001, 1, NotSerialized) { Method (M002, 1, NotSerialized) { Method (M003, 1, NotSerialized) { Method (M004, 1, NotSerialized) { Method (M005, 1, NotSerialized) { Method (M006, 1, NotSerialized) { Method (M007, 1, NotSerialized) { Method (M008, 1, NotSerialized) { If (I001) { Arg0 [0x01] = P000 /* \M303.M000.P000 */ } Return (0x00) } Arg0 [0x01] = 0x80000000 Return ((DerefOf (Arg0 [0x01]) + M008 (Arg0))) } Arg0 [0x01] = 0x07000000 Return ((DerefOf (Arg0 [0x01]) + M007 (Arg0))) } Arg0 [0x01] = 0x00600000 Return ((DerefOf (Arg0 [0x01]) + M006 (Arg0))) } Arg0 [0x01] = 0x00050000 Return ((DerefOf (Arg0 [0x01]) + M005 (Arg0))) } Arg0 [0x01] = 0x4000 Return ((DerefOf (Arg0 [0x01]) + M004 (Arg0))) } Arg0 [0x01] = 0x0300 Return ((DerefOf (Arg0 [0x01]) + M003 (Arg0))) } Arg0 [0x01] = 0x20 Return ((DerefOf (Arg0 [0x01]) + M002 (Arg0))) } Store ((DerefOf (Arg0 [0x01]) + M001 (Arg0)), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local1 = DerefOf (Arg0 [0x01]) If ((Local1 != 0x80000000)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local1, 0x80000000) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) Return (Local0) } Local0 = M000 (PP00, Arg0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local0 = DerefOf (PP00 [0x01]) If ((Local0 != 0x80000000)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x80000000) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } /* * Element of Package instead of i000 (in m002) */ Method (M304, 0, Serialized) { Name (I001, 0x00) Name (PP00, Package (0x03) { 0x11111111, 0x00100000, 0x22223333 }) Method (M000, 1, NotSerialized) { Method (M001, 1, NotSerialized) { If ((I001 < 0x64)) { Local0 = DerefOf (Arg0 [0x01]) Local0++ Arg0 [0x01] = Local0 I001++ Local0 = (DerefOf (Arg0 [0x01]) + M001 (Arg0)) Return (Local0) } Return (0x00) } Store ((DerefOf (Arg0 [0x01]) + M001 (Arg0)), Local0) If ((Local0 != 0x065013BA)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x065013BA) } Local1 = DerefOf (Arg0 [0x01]) If ((Local1 != 0x00100064)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local1, 0x00100064) } Return (Local0) } Local0 = M000 (PP00) If ((Local0 != 0x065013BA)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x065013BA) } Local1 = DerefOf (PP00 [0x01]) If ((Local1 != 0x00100064)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local1, 0x00100064) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } /* * Buffer Field instead of i000 (in m001) */ Method (M305, 0, Serialized) { Name (B000, Buffer (0x10){}) CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) CreateField (B000, 0x05, 0x20, BF00) BF00 = 0xABCDEF70 Method (M000, 1, NotSerialized) { Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { Return (0x00) } Arg0 = 0x80000000 Return ((Arg0 + M008 ())) } Arg0 = 0x07000000 Return ((Arg0 + M007 ())) } Arg0 = 0x00600000 Return ((Arg0 + M006 ())) } Arg0 = 0x00050000 Return ((Arg0 + M005 ())) } Arg0 = 0x4000 Return ((Arg0 + M004 ())) } Arg0 = 0x0300 Return ((Arg0 + M003 ())) } Arg0 = 0x20 Return ((Arg0 + M002 ())) } Arg0 = 0x01 Store ((Arg0 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local1 = 0x01 If ((Arg0 != Local1)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Arg0, Local1) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) Return (Local0) } Local0 = M000 (BF00) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local1 = Buffer () {0x70, 0xEF, 0xCD, 0xAB} If ((BF00 != Local1)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, BF00, Local1) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } /* * Field instead of i000 (in m001) */ Method (M306, 0, Serialized) { Name (I001, 0x00) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 32, F001, 32 } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) F000 = 0xABCDEF70 Method (M000, 1, NotSerialized) { Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { Return (0x00) } Arg0 = 0x80000000 Return ((Arg0 + M008 ())) } Arg0 = 0x07000000 Return ((Arg0 + M007 ())) } Arg0 = 0x00600000 Return ((Arg0 + M006 ())) } Arg0 = 0x00050000 Return ((Arg0 + M005 ())) } Arg0 = 0x4000 Return ((Arg0 + M004 ())) } Arg0 = 0x0300 Return ((Arg0 + M003 ())) } Arg0 = 0x20 Return ((Arg0 + M002 ())) } Arg0 = 0x01 Store ((Arg0 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local1 = 0x01 If ((Arg0 != Local1)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Arg0, Local1) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) Return (Local0) } Local0 = M000 (F000) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local1 = 0xABCDEF70 If ((F000 != Local1)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, F000, Local1) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } /* * Bank Field instead of i000 (in m001) */ Method (M307, 0, Serialized) { Name (I001, 0x00) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 32, F001, 32 } BankField (R000, F001, 0x00, ByteAcc, NoLock, Preserve) { BNK0, 32 } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) BNK0 = 0xABCDEF70 Method (M000, 1, NotSerialized) { Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { Return (0x00) } Arg0 = 0x80000000 Return ((Arg0 + M008 ())) } Arg0 = 0x07000000 Return ((Arg0 + M007 ())) } Arg0 = 0x00600000 Return ((Arg0 + M006 ())) } Arg0 = 0x00050000 Return ((Arg0 + M005 ())) } Arg0 = 0x4000 Return ((Arg0 + M004 ())) } Arg0 = 0x0300 Return ((Arg0 + M003 ())) } Arg0 = 0x20 Return ((Arg0 + M002 ())) } Arg0 = 0x01 Store ((Arg0 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local1 = 0x01 If ((Arg0 != Local1)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Arg0, Local1) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) Return (Local0) } Local0 = M000 (BNK0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local1 = 0xABCDEF70 If ((BNK0 != Local1)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, BNK0, Local1) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } /* * Index Field instead of i000 (in m001) */ Method (M308, 0, Serialized) { Name (I001, 0x00) OperationRegion (R000, SystemMemory, 0x0100, 0x0100) Field (R000, ByteAcc, NoLock, Preserve) { F000, 32, F001, 32 } IndexField (F000, F001, ByteAcc, NoLock, Preserve) { IF00, 32 } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) IF00 = 0xABCDEF70 Method (M000, 1, NotSerialized) { Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { Return (0x00) } Arg0 = 0x80000000 Return ((Arg0 + M008 ())) } Arg0 = 0x07000000 Return ((Arg0 + M007 ())) } Arg0 = 0x00600000 Return ((Arg0 + M006 ())) } Arg0 = 0x00050000 Return ((Arg0 + M005 ())) } Arg0 = 0x4000 Return ((Arg0 + M004 ())) } Arg0 = 0x0300 Return ((Arg0 + M003 ())) } Arg0 = 0x20 Return ((Arg0 + M002 ())) } Arg0 = 0x01 Store ((Arg0 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local1 = 0x01 If ((Arg0 != Local1)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Arg0, Local1) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) Return (Local0) } Local0 = M000 (IF00) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } Local1 = 0xABCDEF70 If ((IF00 != Local1)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, IF00, Local1) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } /* * Element of Buffer instead of i000 (in m001) */ Method (M309, 1, Serialized) { Name (I001, 0x00) Name (B000, Buffer (0x03) { 0x11, 0x01, 0x22 // .." }) CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M000, 2, NotSerialized) { Method (M001, 1, NotSerialized) { Method (M002, 1, NotSerialized) { Method (M003, 1, NotSerialized) { Method (M004, 1, NotSerialized) { Method (M005, 1, NotSerialized) { Method (M006, 1, NotSerialized) { Method (M007, 1, NotSerialized) { Method (M008, 1, NotSerialized) { If (I001) { Arg0 [0x01] = 0xFF } Return (0x00) } Arg0 [0x01] = 0x08 Return ((DerefOf (Arg0 [0x01]) + M008 (Arg0))) } Arg0 [0x01] = 0x07 Return ((DerefOf (Arg0 [0x01]) + M007 (Arg0))) } Arg0 [0x01] = 0x06 Return ((DerefOf (Arg0 [0x01]) + M006 (Arg0))) } Arg0 [0x01] = 0x05 Return ((DerefOf (Arg0 [0x01]) + M005 (Arg0))) } Arg0 [0x01] = 0x04 Return ((DerefOf (Arg0 [0x01]) + M004 (Arg0))) } Arg0 [0x01] = 0x03 Return ((DerefOf (Arg0 [0x01]) + M003 (Arg0))) } Arg0 [0x01] = 0x02 Return ((DerefOf (Arg0 [0x01]) + M002 (Arg0))) } Store ((DerefOf (Arg0 [0x01]) + M001 (Arg0)), Local0) If ((Local0 != 0x24)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x24) } Local1 = DerefOf (Arg0 [0x01]) If (Arg1) { Local2 = 0xFF } Else { Local2 = 0x08 } If ((Local1 != Local2)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local1, Local2) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) Return (Local0) } Local0 = M000 (B000, Arg0) If ((Local0 != 0x24)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x24) } Local1 = DerefOf (B000 [0x01]) If (Arg0) { Local2 = 0xFF } Else { Local2 = 0x08 } If ((Local1 != Local2)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local1, Local2) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } /* * Element of String instead of i000 (in m001) */ Method (M30A, 1, Serialized) { Name (I001, 0x00) Name (S000, "q\x01ertyuiop") CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) I001 = Arg0 Method (M000, 2, NotSerialized) { Method (M001, 1, NotSerialized) { Method (M002, 1, NotSerialized) { Method (M003, 1, NotSerialized) { Method (M004, 1, NotSerialized) { Method (M005, 1, NotSerialized) { Method (M006, 1, NotSerialized) { Method (M007, 1, NotSerialized) { Method (M008, 1, NotSerialized) { If (I001) { Arg0 [0x01] = 0xFF } Return (0x00) } Arg0 [0x01] = 0x08 Return ((DerefOf (Arg0 [0x01]) + M008 (Arg0))) } Arg0 [0x01] = 0x07 Return ((DerefOf (Arg0 [0x01]) + M007 (Arg0))) } Arg0 [0x01] = 0x06 Return ((DerefOf (Arg0 [0x01]) + M006 (Arg0))) } Arg0 [0x01] = 0x05 Return ((DerefOf (Arg0 [0x01]) + M005 (Arg0))) } Arg0 [0x01] = 0x04 Return ((DerefOf (Arg0 [0x01]) + M004 (Arg0))) } Arg0 [0x01] = 0x03 Return ((DerefOf (Arg0 [0x01]) + M003 (Arg0))) } Arg0 [0x01] = 0x02 Return ((DerefOf (Arg0 [0x01]) + M002 (Arg0))) } Store ((DerefOf (Arg0 [0x01]) + M001 (Arg0)), Local0) If ((Local0 != 0x24)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x24) } Local1 = DerefOf (Arg0 [0x01]) If (Arg1) { Local2 = 0xFF } Else { Local2 = 0x08 } If ((Local1 != Local2)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local1, Local2) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) Return (Local0) } Local0 = M000 (S000, Arg0) If ((Local0 != 0x24)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x24) } Local1 = DerefOf (S000 [0x01]) If (Arg0) { Local2 = 0xFF } Else { Local2 = 0x08 } If ((Local1 != Local2)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local1, Local2) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } /* * Buffer Field instead of i000 (in m001) * * CreateField deeper than parent */ Method (M30B, 1, Serialized) { Name (I001, 0x00) Name (B000, Buffer (0x10){}) I001 = Arg0 CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) Method (M000, 2, NotSerialized) { CreateField (B000, 0x05, 0x20, BF00) Method (M001, 0, NotSerialized) { Method (M002, 0, NotSerialized) { Method (M003, 0, NotSerialized) { Method (M004, 0, NotSerialized) { Method (M005, 0, NotSerialized) { Method (M006, 0, NotSerialized) { Method (M007, 0, NotSerialized) { Method (M008, 0, NotSerialized) { If (I001) { BF00 = 0x11223344 } Return (0x00) } BF00 = 0x80000000 Return ((BF00 + M008 ())) } BF00 = 0x07000000 Return ((BF00 + M007 ())) } BF00 = 0x00600000 Return ((BF00 + M006 ())) } BF00 = 0x00050000 Return ((BF00 + M005 ())) } BF00 = 0x4000 Return ((BF00 + M004 ())) } BF00 = 0x0300 Return ((BF00 + M003 ())) } BF00 = 0x20 Return ((BF00 + M002 ())) } BF00 = 0x01 Store ((BF00 + M001 ()), Local0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } If (Arg1) { Local1 = Buffer() {0x44, 0x33, 0x22, 0x11} } Else { Local1 = Buffer() {0x00, 0x00, 0x00, 0x80} } If ((BF00 != Local1)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, BF00, Local1) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) Return (Local0) } Local0 = M000 (0x00, Arg0) If ((Local0 != 0x87654321)) { ERR (__METHOD__, Z157, __LINE__, 0x00, 0x00, Local0, 0x87654321) } CH03 (__METHOD__, Z157, __LINE__, 0x00, 0x00) } Method (N003, 0, NotSerialized) { If (0x01) { SRMT ("m300") M300 () SRMT ("m301") M301 () SRMT ("m302") M302 () SRMT ("m303-0") M303 (0x00) SRMT ("m303-1") If (Y200) { M303 (0x01) } Else { BLCK () } SRMT ("m304") M304 () SRMT ("m305") M305 () SRMT ("m306") M306 () SRMT ("m307") M307 () SRMT ("m308") M308 () SRMT ("m309-0") M309 (0x00) SRMT ("m309-1") M309 (0x01) SRMT ("m30a-0") M30A (0x00) SRMT ("m30a-1") M30A (0x01) SRMT ("m30b-0") M30B (0x00) SRMT ("m30b-1") M30B (0x01) } Else { SRMT ("m300") M300 () } } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/0000700000175000017500000000000014773714160024716 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/README0000700000175000017500000000115114773714160025577 0ustar ivanhuivanhu CONTENTS tests to prove identity of ACPICA to MS abbu Tests applicable to both AcpiExec and MS-abbu utilities Interface of these tests allows them both to be run by AcpiExec utility as elements of ASLTS test suite and by abbu utility under MS. Due to the current incomplete implementation of ACPI by MS the entire ASLTS test suite can't simply be run by abbu utility under MS. This test case is intended to accumulate tests which exercise and verify the fundamental ACPI features. The tests should succeed on both AcpiExec and abbu and thus prove identity of ACPICA and MS. acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/Makefile0000700000175000017500000000012014773714160026352 0ustar ivanhuivanhu# Identity2MS MDIRS = \ abbu TOP= ../../../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/0000700000175000017500000000000014773714157025635 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/DECL.asl0000700000175000017500000001106214773714157027050 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* in progress: Do these: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +++ 1) clean up the current set of tests +++ 2) Make automatically aslst_abbu.aml which include the original common.asl and ehandle.asl files +++ 3) introduce 'stack' directory for the stuff from ns8 +++ 4) slways should be place in POUT for lines below: OUTP(":STST:Identity2MS:abbu:mmmm:FAIL:Errors # 12 34 56 78:") OUTP(":STST:Identity2MS:abbu:mmmm:PASS:") Store("******** POUT exceeded ********, number of lost messages:", Index(POUT, Local0)) +++ 3) do the method examples and run points for each of the enumerated by 'Stuff not working under MS' 4) add the tests of namespace test case with the root names \_SB.d000.p000 ... 10) do ns6 ..... 11) develop the test to achieve cover, do methodically other urgent tests inside abbu 12) complete the namespace test case !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 13) fix bug of m01e * */ /* * Common declarations */ /* * Broke ACPICA (m01e) * * 0 - blocks execution */ Name(fix0, 1) // blocks m01e Name(fix1, 1) // causes break of path for ACPICA /* * Do additional checking */ Name(chk0, 0) // use it for those which break execution on MS (should be 0 for run on MS) Name(chk1, 1) // use it for those which don't break execution on MS Name(chk2, 0) // use it for those which break execution while re-bootin on MS Name(prt0, 0) // conditional OUTP printing Name(SLC0, 0) // modification of SCLK /* * Initialization of msfail */ Method(IIN1) { if (run4) { Store(1, y262) Store(1, y275) Store(1, SLC0) Store(0, SLCK) } else { OUTP("WARNING: don't forget to check run4 !!!!!!!!!!") Store(0, SLC0) if (SLCK) { Store(1, SLC0) } } if (ABUU) { Store(0, chk0) Store(1, chk1) Store(0, chk2) Store(0, fix0) Store(0, fix1) } else { Store(1, chk0) Store(1, chk1) Store(1, chk2) Store(1, fix0) Store(0, fix1) } } Include("./run_points.asl") // NameSpace // Initial Include("./initial/ns_in00.asl") Include("./initial/ns_in10.asl") Include("./initial/ns_in20.asl") Include("./initial/ns_in30.asl") Include("./initial/ns_in40.asl") Include("./initial/ns_in50.asl") // Device // Include("./device/ns_dv00.asl") Include("./device/device.asl") // Include("./ns3.asl") Include("./ns4.asl") Include("./ns6.asl") // Miscellaneous Include("./misc/ms0.asl") Include("./misc/ms1.asl") // MsFail Include("./MsFail/msfail.asl") // Specific initialization of abbu // Reset to the initial state Method(RST8) { Store(0, ERRS) Store(0, RMRC) } // Specific initialization of abbu Method(IIN0) { // Reset to the initial state RST8() // Reset POUT service to the initial state RST9() // Initialization of msfail IIN1() } // Conditional output Method(OUTC, 1) { if (prt0) { OUTP(arg0) } } // Run the tests Method(MAIN) { // Initialization STRT(0) // Specific initialization of abbu IIN0() // Run verification methods Include("./RUN.asl") // Final actions Store(FNSH(), Local7) if (ABUU) { Return(POUT) } Return(Local7) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/recursion/0000700000175000017500000000000014773714157027646 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/recursion/rec_abbu.asl0000700000175000017500000000524514773714157032122 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests to check recursive calls of methods for different structure of * sub-trees containing the point from where the call is made and the point * which is just the invoked method, and different relative disposition of * those sub-trees containing the points. */ Name(z171, 171) Processor(pr00, 0, 0x000, 0x008) { Name(i000, 0xabcd0000) } Name(i000, 0) Method(mr00,, Serialized) { Name(ts, "mr00") Device(d100) { Name(i200, 0xabcd0200) Name(i201, 0xabcd0201) } Device(d101) { Name(i202, 0xabcd0202) Method(m203,, Serialized) { Name(i300, 0xabcd0300) Name(i301, 0xabcd0301) Store("---------------------------------------- Run m203", Debug) Increment(i000) if (LLess(i000, 3)) { m203() } } Name(i204, 0xabcd0204) } Device(d102) { Name(i205, 0xabcd0205) Name(i206, 0xabcd0206) } d101.m203() } Method(mr01) { /* CH03(ts, z169, 0x100, __LINE__, 0) mm00() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd0000) } CH03(ts, z169, 0x101, __LINE__, 0) */ } Method(mrff,, Serialized) { Name(run0, 1) SRMT("mr00") mr00() } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/recursion/rec_aslts.asl0000700000175000017500000001661214773714157032337 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests to check recursive calls of methods for different structure of * sub-trees containing the point from where the call is made and the point * which is just the invoked method, and different relative disposition of * those sub-trees containing the points. */ Name(z172, 172) Name(IG00, 0) Name(IG01, 0) Name(IG02, 0) Name(IG03, 0) // Do anything once only Name(RC00, 5) Name(RCFF, 1) Name(ts, "mr00") Processor(pr00, 0, 0x000, 0x008) { Name(i000, 0xabcd0000) } // Initialize sub-test Method(mrfd) { Store(0, IG00) Store(0, IG01) Store(0, IG02) Store(0, IG03) } // Printing Method(mrfe, 1) { if (RCFF) { Store(arg0, Debug) } } /* * 0-th level method M0 is recursively invoked from * the same M0 method. */ Method(mr00) { Store("mr00", ts) mrfe(ts) Store(IG00, Local0) Increment(IG00) Increment(IG02) if (LLess(IG00, RC00)) { mr00() } Decrement(IG00) if (LNotEqual(Local0, IG00)) { err(ts, z172, __LINE__, 0, 0, Local0, IG00) } if (LNotEqual(IG02, RC00)) { if (LNot(IG03)) { Store(1, IG03) err(ts, z172, __LINE__, 0, 0, IG02, RC00) } } } /* * 0-th level method M0 invokes recursively 0-th level method M1 * which, in its turn, invokes recursively M0 * M0 and M1 are respectively the preceding and the following peers each to other */ Method(mr01, 1) { Store("mr01", ts) mrfe(ts) Store(IG00, Local1) Store(arg0, Local2) Increment(IG00) Increment(IG02) if (LLess(IG00, RC00)) { mr02(IG00) } Decrement(IG00) if (LNotEqual(Local1, IG00)) { err(ts, z172, __LINE__, 0, 0, Local1, IG00) } if (LNotEqual(Local2, arg0)) { err(ts, z172, __LINE__, 0, 0, Local2, arg0) } Multiply(RC00, 2, Local0) Decrement(Local0) if (LNotEqual(IG02, Local0)) { if (LNot(IG03)) { Store(1, IG03) err(ts, z172, __LINE__, 0, 0, IG02, Local0) } } } Method(mr02, 1) { Store("mr02", ts) mrfe(ts) Store(IG01, Local1) Store(arg0, Local2) Increment(IG01) Increment(IG02) if (LLess(IG01, RC00)) { mr01(IG01) } Decrement(IG01) if (LNotEqual(Local1, IG01)) { err(ts, z172, __LINE__, 0, 0, Local1, IG01) } if (LNotEqual(Local2, arg0)) { err(ts, z172, __LINE__, 0, 0, Local2, arg0) } Multiply(RC00, 2, Local0) Decrement(Local0) if (LNotEqual(IG02, Local0)) { if (LNot(IG03)) { Store(1, IG03) err(ts, z172, __LINE__, 0, 0, IG02, Local0) } } } /* * 2-th level method M0 is recursively invoked from * the same M0 method. */ Method(mr03,, Serialized) { Store("mr03", ts) Device(d100) { Name(i200, 0xabcd0200) Name(i201, 0xabcd0201) } Device(d101) { Name(i202, 0xabcd0202) Method(m203) { mrfe("m203") Store(IG00, Local0) Increment(IG00) Increment(IG02) if (LLess(IG00, RC00)) { m203() } Decrement(IG00) if (LNotEqual(Local0, IG00)) { err(ts, z172, __LINE__, 0, 0, Local0, IG00) } } Name(i204, 0xabcd0204) } Device(d102) { Name(i205, 0xabcd0205) Name(i206, 0xabcd0206) } d101.m203() if (LNotEqual(IG02, RC00)) { if (LNot(IG03)) { Store(1, IG03) err(ts, z172, __LINE__, 0, 0, IG02, RC00) } } } /* * 2-th level method M0 invokes recursively 0-th level method M1, * which is not on a path of M0-sub-tree, M1, in its turn, invokes * recursively M0. It is capable because the sub-tree of M0 has been * created at the moment when M1 is invoked. * Note: we can't run M1 in the first turn by that same reason -- * sub-tree of M0 would be not created in that case and we fall to * AE_NOT_FOUND exception. */ Method(mr04,, Serialized) { Store("mr04", ts) Device(d100) { Name(i200, 0xabcd0200) Name(i201, 0xabcd0201) } Device(d101) { Name(i202, 0xabcd0202) Method(m203, 1) { mrfe("m203") Store(IG00, Local0) Increment(IG00) Increment(IG02) if (LLess(IG00, RC00)) { mr05(IG00) } Decrement(IG00) if (LNotEqual(Local0, IG00)) { err(ts, z172, __LINE__, 0, 0, Local0, IG00) } } Name(i204, 0xabcd0204) } Device(d102) { Name(i205, 0xabcd0205) Name(i206, 0xabcd0206) } d101.m203(0) Multiply(RC00, 2, Local0) Decrement(Local0) if (LNotEqual(IG02, Local0)) { if (LNot(IG03)) { Store(1, IG03) err(ts, z172, __LINE__, 0, 0, IG02, Local0) } } } Method(mr05, 1) { Store("mr05", ts) mrfe(ts) Store(IG01, Local1) Store(arg0, Local2) Increment(IG01) Increment(IG02) if (LLess(IG01, RC00)) { ^mr04.d101.m203(IG01) } Decrement(IG01) if (LNotEqual(Local1, IG01)) { err(ts, z172, __LINE__, 0, 0, Local1, IG01) } if (LNotEqual(Local2, arg0)) { err(ts, z172, __LINE__, 0, 0, Local2, arg0) } Multiply(RC00, 2, Local0) Decrement(Local0) if (LNotEqual(IG02, Local0)) { if (LNot(IG03)) { Store(1, IG03) err(ts, z172, __LINE__, 0, 0, IG02, Local0) } } } Method(mrff,, Serialized) { Name(ts, "mrff") Name(run0, 1) CH03(ts, z172, 0x000, __LINE__, 0) SRMT("mr00") mrfd() mr00() SRMT("mr01") mrfd() mr01(0) SRMT("mr02") mrfd() mr02(0) SRMT("mr03") mrfd() mr03() SRMT("mr04") mrfd() mr04() /* test --- run mr05 and expect exception */ CH03(ts, z172, 0x000, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/RUN.asl0000700000175000017500000000376314773714157027016 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests applicable to both AcpiExec and MS-abbu utilities */ if (STTT("Tests applicable to both AcpiExec and MS-abbu utilities", TCLT, 0, W019)) { /* * The NameSpace tests */ /* Initial */ ini0() ini1() ini2() ini3() ini4() ini5() // Device // dev0() // mdfe() // mdff() // Method mtff() /* * Miscellaneous */ msff() msfe() /* * Accumulate features which don't work on MS */ msf0() // Recursion mrff() } FTTT() acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/SPEC0000700000175000017500000000703414773714157026321 0ustar ivanhuivanhu/* * Access to elements of combined objects * * Device * Power Resource * Processor * Thermal Zone * Method (access to internal objects of method, * in case that access is generated not from * inside that method looks incorrect) * * All available ways to access internal * elements of combined objects are these: * * - by name (2-4 below): * * 1) ABCD - through the all tree (search rules apply) * 2) ^...^ABCD - N parents up (search rules do not apply) * 3) XYZ.ABCD - in current scope only (search rules do not apply) * 4) \XYZ.ABCD - absolute path (search rules do not apply) * - pass to Local, Arg, immediately to expressions, etc.. * * - by RefOf/DerefOf: * * RefOf(d000.i000) * * ??????????????????????????????????????????? * * - by Index/DerefOf: * * Index(d000.p000) * * ??????????????????????????????????????????? * * - by Fields: * * Field * Index Field * Bank Field * Buffer Field * * Creating fields features: * - on the same level * - inside deeper level (inside call to another level method) * - parent object is on global/local level * - parent object is inside some compound type object * Usage fields features: * - pass by Arg to method * - Store/Copy intermediately to Local * - Store/Copy intermediately to Arg (affectively local) * - Store/Copy intermediately to Named * - Store/Copy intermediately to Named of compound object * - pass immediately to expressions * Note: don't check there the Implicit Conversion Rules * * - Method invocations: * * - pass to methods (7,6,...) objects of different type * - in other checkings pass to method not only the object * immediately participating in checking but also other * objects including: * - parent object of element of package, * - parent object of element of Field, * - parent object of IRef Reference, * - parent object of ORef Reference, * - original compound object of all other type objects above, * - pass the same object (see above too) to method by several parameters, * - etc. * * There is no way to specify by ASL code accessing * elements of combined object in case that combined * object is represented by: * * - ArgX * - LocalX * - another Named object where the combined * object has been copied by CopyObject (see Note below) * * Note: if the target object where the combined object is * copied contains some same name object as source object * then we can expect that after CopyObject operation that * object will contain new value the same as in source object * (exotic case of CopyObject usage). * I will not verify this case, at least now. * * So, there is no much sense to verify behaviour of: * * - RefOf to combined object * - combined object passed by Arg to method * - combined object Stored/CopyObject to LocalX * - combined object Stored/CopyObject to ArgX (effective local) * - combined object Stored/CopyObject to NamedX * - combined object as element of Package * * Exotic (could be done ever): * All the possible checkings can be implemented (ASL coded) * to check the behaviour of the object substituted by the * CopyObject instead of the original one. * At that the substituted object can be 1) of the same type * and have a) all the elements the original has and b) not * all of them are present in the copy and 2) be object of * some another type than original. */ acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/UTILITY/0000700000175000017500000000000014773714160026772 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/UTILITY/DSDT.AML0000700000175000017500000011640314773714143030074 0ustar ivanhuivanhuDSDTŠIBM TP-T20 MSFT \_PR_[ƒ CPU_Œl\_SB_[‚DLNKA_HID AÐ _UID (_STA ’VPIR\/_SB_PCI0ISA_PIRA¤ ¡¤ _PRS #øy/_DIS}\/_SB_PCI0ISA_PIRA €\/_SB_PCI0ISA_PIRAM_CRSBUFA #y‹BUFA IRA1{\/_SB_PCI0ISA_PIRA ` VPIR`py`IRA1¤BUFAF_SRS‹h IRA2‚IRA2`{\/_SB_PCI0ISA_PIRA pa}av`apa\/_SB_PCI0ISA_PIRA[‚DLNKB_HID AÐ _UID (_STA ’VPIR\/_SB_PCI0ISA_PIRB¤ ¡¤ _PRS #øy/_DIS}\/_SB_PCI0ISA_PIRB €\/_SB_PCI0ISA_PIRBM_CRSBUFB #y‹BUFB IRB1{\/_SB_PCI0ISA_PIRB ` VPIR`py`IRB1¤BUFBF_SRS‹h IRB2‚IRB2`{\/_SB_PCI0ISA_PIRB pa}av`apa\/_SB_PCI0ISA_PIRB[‚DLNKC_HID AÐ _UID (_STA ’VPIR\/_SB_PCI0ISA_PIRC¤ ¡¤ _PRS #øy/_DIS}\/_SB_PCI0ISA_PIRC €\/_SB_PCI0ISA_PIRCM_CRSBUFC #y‹BUFC IRC1{\/_SB_PCI0ISA_PIRC ` VPIR`py`IRC1¤BUFCF_SRS‹h IRC2‚IRC2`{\/_SB_PCI0ISA_PIRC pa}av`apa\/_SB_PCI0ISA_PIRC[‚DLNKD_HID AÐ _UID (_STA ’VPIR\/_SB_PCI0ISA_PIRD¤ ¡¤ _PRS #øy/_DIS}\/_SB_PCI0ISA_PIRD €\/_SB_PCI0ISA_PIRDM_CRSBUFD #y‹BUFD IRD1{\/_SB_PCI0ISA_PIRD ` VPIR`py`IRD1¤BUFDF_SRS‹h IRD2‚IRD2`{\/_SB_PCI0ISA_PIRD pa}av`apa\/_SB_PCI0ISA_PIRD5VPIRp`  {h €p`¡{h a •a p`¡  ‘“a “a p`¤`[‚JRMEM__HID AÐ ME985 2†  † † î† øÿyŠME98 MEB0ŠME98 MEL0MGAP † yŠMGAP MGPBŠMGAP MGPLMEMSF †  † † @ † € † À † † @ † € † À † † @† €† À† † î† øÿyŠMEMS MC0LŠMEMS MC4LŠMEMS ,MC8LŠMEMS 8MCCLŠMEMS DMD0LŠMEMS PMD4LŠMEMS \MD8LŠMEMS hMDCLŠMEMS tME0LŠMEMS €ME4LŠMEMS ŒME8LŠMEMS ˜MECLMEMS xMC0WMEMS ØMC4WMEMS 8MC8WMEMS ˜MCCWMEMS øMD0WMEMS XMD4WMEMS ¸MD8WMEMS MDCWMEMS xME0WMEMS ØME4WMEMS 8ME8WMEMS ˜MECWŠMEMS ¬MEB1ŠMEMS °MEL1G*_CRS L\W98Ft\MEMXMEB0MEL0p\GGAP MGPBp\GGAP MGPL GMGPBMGPLt‡ME98 `MBF0`r`‡MGAP`MBF1`pME98MBF0sMBF0MGAPMBF1¤MBF1¡¤ME98{\/_SB_PCI0PAM1 ` `p @MC0L  {` p MC0W{\/_SB_PCI0PAM1 0` `p @MC4L  {` p MC4W{\/_SB_PCI0PAM2 ` `p @MC8L  {` p MC8W{\/_SB_PCI0PAM2 0` `p @MCCL  {` p MCCW{\/_SB_PCI0PAM3 ` `p @MD0L  {` p MD0W{\/_SB_PCI0PAM3 0` `p @MD4L  {` p MD4W{\/_SB_PCI0PAM4 ` `p @MD8L  {` p MD8W{\/_SB_PCI0PAM4 0` `p @MDCL  {` p MDCW{\/_SB_PCI0PAM5 ` `p @ME0L  {` p ME0W{\/_SB_PCI0PAM5 0` `p @ME4L  {` p ME4W{\/_SB_PCI0PAM6 ` `p @ME8L  {` p ME8W{\/_SB_PCI0PAM6 0` `p @MECL  {` p MECWt\MEMXMEB1MEL1¤MEMS[‚G LID__HID AÐ <_LID \H8DR¤\/_SB_PCI0ISA_EC__HPLD¡ {\RBEC 6 ¤ ¡¤ &_PRW \W98F’\WMEF¤ ¡ ¤ B_PSW =\H8DR hp\/_SB_PCI0ISA_EC__HWLO¡p\/_SB_PCI0ISA_EC__HWLO¡  h\MBEC 2 ÿ ¡ \MBEC 2 û [‚L SLPB_HID AÐ &_PRW \W98F’\WMEF¤ ¡ ¤ D_PSW ?\H8DR hp \/_SB_PCI0ISA_EC__HWFN¡p \/_SB_PCI0ISA_EC__HWFN¡  h\MBEC 2 ÿ ¡ \MBEC 2 ï [‚Œ@PCI0_ADR _HID AÐ [€X000 [OX000H,PAM0PAM1PAM2PAM3PAM4PAM5PAM6DRB0DRB1DRB2DRB3DRB4DRB5DRB6DRB7@ CREN_PRW  _PSWEPSW hPMEE @ EPSW  i}PMEEh`¡ {PMEE€h`p`PMEE ?\H8DR `p \/_SB_PCI0ISA_EC__HWPM¡p \/_SB_PCI0ISA_EC__HWPM¡  `\MBEC 2 ÿ ¡ \MBEC 2 þ  `p \/_SB_PCI0ISA_WOLE¡p \/_SB_PCI0ISA_WOLE_CRSK ¦ˆ  ÿGø ø ˆ  ÷ ø ˆ   ÿÿó‡  ÿÿ ‡  ÿ? @‡ @ ÿ @‡ € ÿ¿ @‡ À ÿÿ @‡  ÿ? @‡ @ ÿ @‡ € ÿ¿ @‡ À ÿÿ @‡ ÿ?@‡ @ÿ@‡ €ÿ¿@‡ Àÿÿ@‡ ÿÿßÿÐÿyŠ_CRS hC0LNŠ_CRS ‚C4LNŠ_CRS œC8LNŠ_CRS ¶CCLNŠ_CRS ÐD0LNŠ_CRS êD4LNŠ_CRS D8LNŠ_CRS DCLNŠ_CRS 8E0LNŠ_CRS RE4LNŠ_CRS lE8LNŠ_CRS †ECLNŠ_CRS ”XXMNŠ_CRS ˜XXMXŠ_CRS  XXLNM_INI '“\SCMP\_OS_ Microsoft Windowsp\W98F¡F *“\SCMP\_OS_ Microsoft Windows NTp\WNTF¡H E“\SCMP\_OS_ Microsoft WindowsME: Millennium Editionp\WMEFp\W98FwDRB7 €`p`\MEMXp`XXMNrtXXMXXXMN XXLN {PAM1 p C0LN {PAM1 0p C4LN {PAM2 p C8LN {PAM2 0p CCLN {PAM3 p D0LN {PAM3 0p D4LN {PAM4 p D8LN {PAM4 0p DCLN {PAM5 p E0LN {PAM5 0p E4LN {PAM6 p E8LN {PAM6 0p ECLN\/_SB_PCI0ISA_GPPM \GCHKp \GVEN_PRTM  ÿÿ \._SB_LNKA  ÿÿ \._SB_LNKA  ÿÿ \._SB_LNKB  ÿÿ \._SB_LNKC  ÿÿ \._SB_LNKD  ÿÿ \._SB_LNKA  ÿÿ \._SB_LNKD [‚G‡IDE0_ADR [€X140 @ [E X140XPT0XPI0XPP0XPD0XPT1XPI1XPP1XPD1XPRTXPISXPSEXPE_XST0XSI0XSP0XSD0XST1XSI1XSP1XSD1XSRTXSISXSSEXSE_XVRTXVISXEP0XEP1XES0XES1XUP0XUP1XUS0XUS1[‚FHPRIM_ADR F_GTMt XPIS`t XPRTar`a`w ``  ”` ðp „` +XEP0p d  “XUP0 p xa¡  “XUP0 p Pa¡p AC___HID ACPI0003_UID _PCL\_SB_ _PSR¤HPAC _STA¤ O*\/_SB_PCI0ISA_EC__[6ECOR@(HMPRHMSTHMARHMDNHMADHMCMHMDTHHMBC[OECOR@*HBPUHBSTHBIDHBRC HBFC HBCC HBVLHBECHBBTHBNFHBTCHBCT @F[=ECOR@*HBTSHBAFHBSDHBDTHBH0HBL0HBH1HBL1HBH2HBL2[JECOR@*HF_ZHF_DHZIPHDVDHHFDHF_HHHDDHADPHLS_HF_CHCRWHCD_HR01HFDDHIMPHNON[I2CMAI2C¤[#I2CMÿÿ RI2C['I2CMBI2CRAI2CphHCSL HCAD}yi  HMAD¡piHMADpjHMCMp HMPRpCHKSg gpg`¡pHMDT`RI2C¤`JI2CWAI2CphHCSL HCAD}yi  HMAD¡piHMADpjHMCMpkHMDTp HMPRpCHKS`RI2C¤`6I2RBphHCSL HCADpyi HMAD¡piHMADpjHMCMp HMPR¤CHKSf  ’”f p @g¡  ’”f pwf g¡p Ðg\WPCI}b g\WPCI}b uaLLCBS} €y\RPCI  € `}`yh `p a¢3•a }`ya b\WPCI}b \WPCI}b @\WPCI}b  €uaDSSU2 .hp \/_SB_PCI0PM00S2DSp \/_SB_PCI0ISA_SUS2¡-p \/_SB_PCI0ISA_SUS2p \/_SB_PCI0PM00S2DS@\/_SB_PCI0ISA_EC__O_Q37 G\/_SB_PCI0ISA_SCISp\/_SB_PCI0ISA_SCIR` H“`  A’\/_SB_PCI0DOCKGDIDp ÿÿÿÿ\/_SB_PCI0DOCKDOID†\/_SB_PCI0DOCK  .“` \/_SB_PCI0ISA_BUSC[$\/_SB_PCI0DOCKDEVT .“` \/_SB_PCI0ISA_BUSD[$\/_SB_PCI0DOCKDEVTp \/_SB_PCI0ISA_SCISJ_Q50 B\/_SB_PCI0DOCKGDID \W98F†\/_SB_PCI0DOCK ¡†\/_SB_PCI0DOCK [€PPBR [B PPBR@ SVIDSSID@SDCLPDCL SCADBUFCCLKR0PG0DPG1DPG2DPG3DSG0DSG1DSG2DSG3DPG0OPG1OPG2OPG3OSG0OSG1OSG2OSG3OSIRQARMKNPPIN}z   €`p\RPCI}` „a a \WPCI}` „{a ü["  O\W98F\WPCI}`  ð\WPCI}`  \WPCI}` ð\WPCI}` ! ÿ\WPCI}` " \WPCI}` # \WPCI}` $ ð\WPCI}` % ÿ\WPCI}` & \WPCI}` ' \WPCI}`  \WPCI}`  \WPCI}` \WPCI}` @\WPCI}`  Dp SVIDp ãSSID}{SDCL SDCL}{PDCL PDCL}{SCAD  °SCAD}{BUFC BUFC}{CLKR CLKR}{SIRQ #SIRQ}{ARMK 8ARMKPPFDPPUB PPMX7PPEN} €z  ` h\MPCI}`  ÿ ¡\MPCI}`  ø 6PPRS} €z  `\MPCI}` > ÿ @[" d\MPCI}` > ¿ @PPFDp SG1D >“\/_SB_PCI0ISA_EC__GDEV  p \/_SB_PCI0ISA_FDC_DCFDp SG1O¡"p \/_SB_PCI0ISA_FDC_DCFDp SG1O'PPUBp SG3D  hp PG3O¡p PG3Op PG3DLPPMXp\RPCI} €z  `} €y` `p ap b¢avayb b}b\RPCI}`ab “b ˆ3!}SDCL SDCL[‚OAIDE1_ADR [€IDEC [AIDECH'ENCLPRMCSNDCXCMTXAR0XDRRXDRW@XUDMXUDCXUDTADREG I“h  Bi C“\/_SB_PCI0DOCKGDID $MJ '’{\/_SB_PCI0DOCKSCAD p PRMCp SNDC  \W98FRAIDNRAIDp ENCLp\RPCI} €z  `} €y` `}`z_ADR `}`y{_ADR  `\WPCI}` p ENCLF_STAp ` 8“\/_SB_PCI0DOCKGDID $MJ ’{\/_SB_PCI0DOCKSCAD p `¤`[‚F*PRIM_ADR I _GTMp d BXCMT XDRR  “XDRR p `¡ r XDRR`¡p `  XDRWpXDRWa¡p ar`a`w ``  ”` ðp „`p`a¡p `p`a 6XUDM}d d XUDCrXUDT aw aa¡rXUDT aw aa  “a Zp Pap`\GTP0pa\GTD0p \GTP1p \GTD1pd\GTMF¤\BGTMD_STMŠh STP0Šh STD0Šh STP1Šh STD1Šh STMF ‡i‹i DM00 DM00pe¡pe¡pe Ee CW98F‹i fDM51‹i jDM53‹i |DM62‹i ~DM63‹i €DM64‹i ‚DM65‹i ˆDM68‹i °DM88p\UDMADM53DM88`p\MDMADM53DM63DM62DM65ap\MPIODM53DM64DM51DM68b¡2p\MPIB{STMF STP0bp\UDMB{STMF STD0`p\MDMBSTD0ap{DM00 €\IDKSp\CARTbXAR0p\CCMDbXCMTp\CDRWabc{c XDRRzc XDRW +`p XUDM  ’”` p XUDC¡p XUDCp\CUDC`XUDTp\MHDM`a\HDM3p\MHDM`a\CDM3p\MHPIb\HPI3p\MHPIb\CPI3[‚(MSTR_ADR _GTF  \IDKS¤\ICC3¡¤\ICM3[‚CCBS2_ADR )_STA “\/_SB_PCI0DOCKGDID $MJ¤ ¡¤ 0DREG )“h “i  “\/_SB_PCI0DOCKGDID $MJICFG[€CBUS [2CBUS@"LGDC @SYSC @MULR RSTSCCTLDCTLDIAGG ICFGpRPCI} €z  `} €y` `}`z_ADR `}`y{_ADR  `\WPCI}` \WPCI}` ¨\WPCI}`  €}{LGDC LGDC}{SYSC ÿÿ wÀd(SYSC}{MULR MULR}{RSTS ÀRSTS}{CCTL { CCTL}{DCTL fDCTL}{DIAG  @DIAG[‚CCBS3_ADR )_STA “\/_SB_PCI0DOCKGDID $MJ¤ ¡¤ 0DREG )“h “i  “\/_SB_PCI0DOCKGDID $MJICFG[€CBUS [2CBUS@"LGDC @SYSC @MULR RSTSCCTLDCTLDIAGG ICFGpRPCI} €z  `} €y` `}`z_ADR `}`y{_ADR  `\WPCI}` \WPCI}` ¨\WPCI}`  €}{LGDC LGDC}{SYSC ÿÿ wÀd(SYSC}{MULR MULR}{RSTS ÀRSTS}{CCTL { CCTL}{DCTL fDCTL}{DIAG  @DIAGI¸\/_SB_PCI0ISA_EC__BDEV BSTS BHKE BXCN 0_Q2C )“BSTS pGUIDBDEV  BXCNNXREBDEV¡ NBREBDEV'_Q2DpGUIDBDEV  BXCNNXRCBDEV¡ NBINBDEVA_Q38pGUID` CBDEV’“`BDEV 1“` BDIS BXCNpBDEV`p BDEVNXEJ`¡NBEJBDEVp`BDEV¡2 HPBU BXCNp`BDEVNXIN`¡p`BDEV  BXCNNXRC`¡NBIN`A NBRE “h †\/_SB_PCI0ISA_FDC_FDD0  •h †\/_SB_PCI0IDE0SCNDMSTR  I“h  +‘HPACHB0A  \WNTF†\/_SB_PCI0ISA_EC__BAT1 ¡BLED  BEEP p BSTSJ NBEJ M“BSTS  “h †\/_SB_PCI0ISA_FDC_FDD0  •h †\/_SB_PCI0IDE0SCNDMSTR  C“h   \WNTF†\/_SB_PCI0ISA_EC__BAT1 ¡†\/_SB_PCI0ISA_EC__BAT1 BLED BEEP p BSTSONBIN 4“h BEN_ \SFDD BLED  †\/_SB_PCI0ISA_FDC_FDD0  ;•h   “h BEN_ ¡BEN_ BLED  †\/_SB_PCI0IDE0SCNDMSTR  I“h BLED   >\WNTFp \/_SB_PCI0ISA_EC__BAT1XB1S†\/_SB_PCI0ISA_EC__BAT1 ¡†\/_SB_PCI0ISA_EC__BAT1 BEEP p BSTSABEJ0 HhBDISBLED \BHDP p BSTS *BHKEp BHKE\/_SB_PCI0ISA_EC__HKEYMHKQ 0¡BLED  p BSTSH BEJ3 Bhp ƒBF_Zp ƒBF_Dp ƒBZIPp ƒBDVDp ƒBHFDp ƒBF_Hp ƒBHDDp ƒBLS_p ƒBF_Cp ƒBCRWp ƒBCD_p ƒBFDDBDISp BSTS¡Mp BF_Zp BF_Dp BZIPp BDVDp BHFDp BF_Hp BHDDp BLS_p BF_Cp BCRWp BCD_p BFDDp BSTSIBPTS  ‘“h ’•h ¡E ’“BSTS p BDEVp BSTSp BHKE ’“BDEV BLDT BUWK ¡ BLDT BUWK ABWAK  ‘“h ’•h ¡MBUWK pGUID`  ”` BDIS\/_SB_PCI0ISA_FDC__INI C’“`  K“\/_SB_PCI0ISA_FDC_FD0S\/_SB_PCI0ISA_EC__HPNF†\/_SB_PCI0ISA_FDC_FDD0  I “BSTS  .’“`BDEV BXCNp`BDEVNXRC`¡NBEJBDEVp`BDEVNBIN`¡@ M’“` BLED   MHPBU}yh   BHKE\/_SB_PCI0ISA_EC__HKEYMHKQBHKE ’”h ¡  BXCNNXRE`¡NBRE`FBDIS\SFDD p \/_SB_PCI0IDE0XSI0p \/_SB_PCI0ISA_GCRCp \/_SB_PCI0PM00ULONp \/_SB_PCI0PM00CSONGBEN_ ,’‘\/_SB_PCI0PM00ULON\/_SB_PCI0PM00CSON¤  hp \/_SB_PCI0IDE0XSE_[! p \/_SB_PCI0PM00URSTp \/_SB_PCI0PM00ULONp \/_SB_PCI0PM00CSON["  2hp \/_SB_PCI0ISA_GCRCp \/_SB_PCI0IDE0XSE_[! -p \/_SB_PCI0PM00URST["  h["   “h [" Ð=BSTA \/_SB_PCI0PM00CSON¤ pGUID`  “h ¤“`   “h ¤•` ¤ HBLED @\H8DR[#LEDMÿÿp HLMS  ip HLBL¡p HLBL  “h p HLCL¡  “h p HLCL¡  “h p HLCL¡[" ['LEDMBF_Z ƒBF_D ƒBZIP ƒBDVD ƒBHFD ƒBF_H ƒBHDD ƒBADP BLS_ ƒBF_C ƒBCRW ƒBCD_ ƒBR01 BFDD ƒBIMP BNON ƒNBLDTAI2C C hpBF_ZHF_ZpBF_DHF_DpBZIPHZIPpBDVDHDVDpBHFDHHFDpBF_HHF_HpBHDDHHDDpBADPHADPpBLS_HLS_pBF_CHF_CpBCRWHCRWpBCD_HCD_pBR01HR01pBFDDHFDDpBIMPHIMPpBNONHNON¡Bp HF_Zp HF_Dp HZIPp HDVDp HHFDp HF_Hp HHDDp HADPp HLS_p HF_Cp HCRWp HCD_p HR01p HFDDp HIMPp HNONpI2WB  gRI2C  g[2€gDBUWK ?\H8DR hp \/_SB_PCI0ISA_EC__HWBU¡p \/_SB_PCI0ISA_EC__HWBU¡  h\MBEC 2 ÿ €¡ \MBEC 2  ONXRE “h BLED p BSTS “h BLED  †\._SB_SWAP ƒ •h BLED  †\._SB_SWAP ƒ <“h  ‘HPACHB0ABLED  †\._SB_SWAP ƒ¡BLED  BEEP p BSTS@ NXRC '“h BLED  BEN_ \SFDD †\._SB_SWAP € .•h BLED    “h BEN_ ¡BEN_ †\._SB_SWAP € 4“h †\/_SB_PCI0ISA_EC__BAT1 BLED  †\._SB_SWAP €BEEP p BSTSINXEJ “h †\/_SB_PCI0ISA_EC__BAT1 †\._SB_SWAP ‚BLED BEEP p BSTSNXIN†\._SB_SWAP E)\_SB_[‚L(SWAP_HID $Mi_STA  \WMEF¤ ¡¤ "XCNNph\/_SB_PCI0ISA_EC__BXCN¤  XSWP¤ 

BLOCKED FILE ALERT!

The attachment 'ABBU.EXE' has been blocked because it is a disallowed file type. The attachment has been replaced by this message.

If you feel you have received this message in error and are an Intel employee, then please contact the Global Service Desk.

More Information:

If you are an Intel employee and internal to the Intel network, visit Secure Intel to learn more about E-mail attachment options.

If you are not an Intel employee, please contact your Intel sponsor for additional information.
 

Copyright © Intel Corporation, 2002-2006. All rights reserved.
*Other names and brands may be claimed as the property of others.
**Intel is not responsible for content of sites outside our intranet.
acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/UTILITY/3_WARNING.HTM0000700000175000017500000000372114773714157030707 0ustar ivanhuivanhu

BLOCKED FILE ALERT!

The attachment 'ACPIDUMP.EXE' has been blocked because it is a disallowed file type. The attachment has been replaced by this message.

If you feel you have received this message in error and are an Intel employee, then please contact the Global Service Desk.

More Information:

If you are an Intel employee and internal to the Intel network, visit Secure Intel to learn more about E-mail attachment options.

If you are not an Intel employee, please contact your Intel sponsor for additional information.
 

Copyright © Intel Corporation, 2002-2006. All rights reserved.
*Other names and brands may be claimed as the property of others.
**Intel is not responsible for content of sites outside our intranet.
acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/UTILITY/1_WARNING.HTM0000700000175000017500000000371514773714157030710 0ustar ivanhuivanhu

BLOCKED FILE ALERT!

The attachment 'ABBU.INF' has been blocked because it is a disallowed file type. The attachment has been replaced by this message.

If you feel you have received this message in error and are an Intel employee, then please contact the Global Service Desk.

More Information:

If you are an Intel employee and internal to the Intel network, visit Secure Intel to learn more about E-mail attachment options.

If you are not an Intel employee, please contact your Intel sponsor for additional information.
 

Copyright © Intel Corporation, 2002-2006. All rights reserved.
*Other names and brands may be claimed as the property of others.
**Intel is not responsible for content of sites outside our intranet.
acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/UTILITY/DSDT.asl0000700000175000017500000120005014773714160030232 0ustar ivanhuivanhu/* * Intel ACPI Component Architecture * AML Disassembler version 20021002 * * Disassembly of DSDT.AML, Wed Aug 30 20:30:19 2006 */ DefinitionBlock ("DSDT.aml", "DSDT", 1, "IBM ", "TP-T20 ", 100930080) { Scope (\_PR) { Processor (CPU, 0x01, 0x00001010, 0x06) {} } Scope (\_SB) { Device (LNKA) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x01) Method (_STA, 0, NotSerialized) { If (LNot (VPIR (\_SB.PCI0.ISA.PIRA))) { Return (0x09) } Else { Return (0x0B) } } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {3,4,5,6,7,9,10,11} }) Method (_DIS, 0, NotSerialized) { Or (\_SB.PCI0.ISA.PIRA, 0x80, \_SB.PCI0.ISA.PIRA) } Method (_CRS, 0, NotSerialized) { Name (BUFA, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (BUFA, 0x01, IRA1) And (\_SB.PCI0.ISA.PIRA, 0x8F, Local0) If (VPIR (Local0)) { Store (ShiftLeft (One, Local0), IRA1) } Return (BUFA) } Method (_SRS, 1, NotSerialized) { CreateWordField (Arg0, 0x01, IRA2) FindSetRightBit (IRA2, Local0) And (\_SB.PCI0.ISA.PIRA, 0x70, Local1) Or (Local1, Decrement (Local0), Local1) Store (Local1, \_SB.PCI0.ISA.PIRA) } } Device (LNKB) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x02) Method (_STA, 0, NotSerialized) { If (LNot (VPIR (\_SB.PCI0.ISA.PIRB))) { Return (0x09) } Else { Return (0x0B) } } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {3,4,5,6,7,9,10,11} }) Method (_DIS, 0, NotSerialized) { Or (\_SB.PCI0.ISA.PIRB, 0x80, \_SB.PCI0.ISA.PIRB) } Method (_CRS, 0, NotSerialized) { Name (BUFB, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (BUFB, 0x01, IRB1) And (\_SB.PCI0.ISA.PIRB, 0x8F, Local0) If (VPIR (Local0)) { Store (ShiftLeft (One, Local0), IRB1) } Return (BUFB) } Method (_SRS, 1, NotSerialized) { CreateWordField (Arg0, 0x01, IRB2) FindSetRightBit (IRB2, Local0) And (\_SB.PCI0.ISA.PIRB, 0x70, Local1) Or (Local1, Decrement (Local0), Local1) Store (Local1, \_SB.PCI0.ISA.PIRB) } } Device (LNKC) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x03) Method (_STA, 0, NotSerialized) { If (LNot (VPIR (\_SB.PCI0.ISA.PIRC))) { Return (0x09) } Else { Return (0x0B) } } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {3,4,5,6,7,9,10,11} }) Method (_DIS, 0, NotSerialized) { Or (\_SB.PCI0.ISA.PIRC, 0x80, \_SB.PCI0.ISA.PIRC) } Method (_CRS, 0, NotSerialized) { Name (BUFC, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (BUFC, 0x01, IRC1) And (\_SB.PCI0.ISA.PIRC, 0x8F, Local0) If (VPIR (Local0)) { Store (ShiftLeft (One, Local0), IRC1) } Return (BUFC) } Method (_SRS, 1, NotSerialized) { CreateWordField (Arg0, 0x01, IRC2) FindSetRightBit (IRC2, Local0) And (\_SB.PCI0.ISA.PIRC, 0x70, Local1) Or (Local1, Decrement (Local0), Local1) Store (Local1, \_SB.PCI0.ISA.PIRC) } } Device (LNKD) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x04) Method (_STA, 0, NotSerialized) { If (LNot (VPIR (\_SB.PCI0.ISA.PIRD))) { Return (0x09) } Else { Return (0x0B) } } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {3,4,5,6,7,9,10,11} }) Method (_DIS, 0, NotSerialized) { Or (\_SB.PCI0.ISA.PIRD, 0x80, \_SB.PCI0.ISA.PIRD) } Method (_CRS, 0, NotSerialized) { Name (BUFD, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (BUFD, 0x01, IRD1) And (\_SB.PCI0.ISA.PIRD, 0x8F, Local0) If (VPIR (Local0)) { Store (ShiftLeft (One, Local0), IRD1) } Return (BUFD) } Method (_SRS, 1, NotSerialized) { CreateWordField (Arg0, 0x01, IRD2) FindSetRightBit (IRD2, Local0) And (\_SB.PCI0.ISA.PIRD, 0x70, Local1) Or (Local1, Decrement (Local0), Local1) Store (Local1, \_SB.PCI0.ISA.PIRD) } } Method (VPIR, 1, NotSerialized) { Store (One, Local0) If (And (Arg0, 0x80)) { Store (Zero, Local0) } Else { And (Arg0, 0x0F, Local1) If (LLess (Local1, 0x03)) { Store (Zero, Local0) } Else { If (LOr (LEqual (Local1, 0x08), LEqual (Local1, 0x0D))) { Store (Zero, Local0) } } } Return (Local0) } Device (MEM) { Name (_HID, EisaId ("PNP0C01")) Name (ME98, ResourceTemplate () { Memory32Fixed (ReadWrite, 0x00000000, 0x000A0000) Memory32Fixed (ReadOnly, 0x000E0000, 0x00020000) Memory32Fixed (ReadWrite, 0x00100000, 0x01EE0000) Memory32Fixed (ReadOnly, 0xFFF80000, 0x00080000) }) CreateDWordField (ME98, 0x1C, MEB0) CreateDWordField (ME98, 0x20, MEL0) Name (MGAP, ResourceTemplate () { Memory32Fixed (ReadOnly, 0x00000000, 0x00000000) }) CreateDWordField (MGAP, 0x04, MGPB) CreateDWordField (MGAP, 0x08, MGPL) Name (MEMS, ResourceTemplate () { Memory32Fixed (ReadWrite, 0x00000000, 0x000A0000) Memory32Fixed (ReadOnly, 0x000C0000, 0x00000000) Memory32Fixed (ReadOnly, 0x000C4000, 0x00000000) Memory32Fixed (ReadOnly, 0x000C8000, 0x00000000) Memory32Fixed (ReadOnly, 0x000CC000, 0x00000000) Memory32Fixed (ReadOnly, 0x000D0000, 0x00000000) Memory32Fixed (ReadOnly, 0x000D4000, 0x00000000) Memory32Fixed (ReadOnly, 0x000D8000, 0x00000000) Memory32Fixed (ReadOnly, 0x000DC000, 0x00000000) Memory32Fixed (ReadOnly, 0x000E0000, 0x00000000) Memory32Fixed (ReadOnly, 0x000E4000, 0x00000000) Memory32Fixed (ReadOnly, 0x000E8000, 0x00000000) Memory32Fixed (ReadOnly, 0x000EC000, 0x00000000) Memory32Fixed (ReadOnly, 0x000F0000, 0x00010000) Memory32Fixed (ReadWrite, 0x00100000, 0x01EE0000) Memory32Fixed (ReadOnly, 0xFFF80000, 0x00080000) }) CreateDWordField (MEMS, 0x14, MC0L) CreateDWordField (MEMS, 0x20, MC4L) CreateDWordField (MEMS, 0x2C, MC8L) CreateDWordField (MEMS, 0x38, MCCL) CreateDWordField (MEMS, 0x44, MD0L) CreateDWordField (MEMS, 0x50, MD4L) CreateDWordField (MEMS, 0x5C, MD8L) CreateDWordField (MEMS, 0x68, MDCL) CreateDWordField (MEMS, 0x74, ME0L) CreateDWordField (MEMS, 0x80, ME4L) CreateDWordField (MEMS, 0x8C, ME8L) CreateDWordField (MEMS, 0x98, MECL) CreateBitField (MEMS, 0x78, MC0W) CreateBitField (MEMS, 0xD8, MC4W) CreateBitField (MEMS, 0x0138, MC8W) CreateBitField (MEMS, 0x0198, MCCW) CreateBitField (MEMS, 0x01F8, MD0W) CreateBitField (MEMS, 0x0258, MD4W) CreateBitField (MEMS, 0x02B8, MD8W) CreateBitField (MEMS, 0x0318, MDCW) CreateBitField (MEMS, 0x0378, ME0W) CreateBitField (MEMS, 0x03D8, ME4W) CreateBitField (MEMS, 0x0438, ME8W) CreateBitField (MEMS, 0x0498, MECW) CreateDWordField (MEMS, 0xAC, MEB1) CreateDWordField (MEMS, 0xB0, MEL1) Method (_CRS, 0, NotSerialized) { If (\W98F) { Subtract (\MEMX, MEB0, MEL0) Store (\GGAP (0x00), MGPB) Store (\GGAP (0x01), MGPL) If (LAnd (MGPB, MGPL)) { Subtract (SizeOf (ME98), 0x02, Local0) Name (MBF0, Buffer (Local0) {}) Add (Local0, SizeOf (MGAP), Local0) Name (MBF1, Buffer (Local0) {}) Store (ME98, MBF0) Concatenate (MBF0, MGAP, MBF1) Return (MBF1) } Else { Return (ME98) } } And (\_SB.PCI0.PAM1, 0x03, Local0) If (Local0) { Store (0x4000, MC0L) If (And (Local0, 0x02)) { Store (0x01, MC0W) } } And (\_SB.PCI0.PAM1, 0x30, Local0) If (Local0) { Store (0x4000, MC4L) If (And (Local0, 0x20)) { Store (0x01, MC4W) } } And (\_SB.PCI0.PAM2, 0x03, Local0) If (Local0) { Store (0x4000, MC8L) If (And (Local0, 0x02)) { Store (0x01, MC8W) } } And (\_SB.PCI0.PAM2, 0x30, Local0) If (Local0) { Store (0x4000, MCCL) If (And (Local0, 0x20)) { Store (0x01, MCCW) } } And (\_SB.PCI0.PAM3, 0x03, Local0) If (Local0) { Store (0x4000, MD0L) If (And (Local0, 0x02)) { Store (0x01, MD0W) } } And (\_SB.PCI0.PAM3, 0x30, Local0) If (Local0) { Store (0x4000, MD4L) If (And (Local0, 0x20)) { Store (0x01, MD4W) } } And (\_SB.PCI0.PAM4, 0x03, Local0) If (Local0) { Store (0x4000, MD8L) If (And (Local0, 0x02)) { Store (0x01, MD8W) } } And (\_SB.PCI0.PAM4, 0x30, Local0) If (Local0) { Store (0x4000, MDCL) If (And (Local0, 0x20)) { Store (0x01, MDCW) } } And (\_SB.PCI0.PAM5, 0x03, Local0) If (Local0) { Store (0x4000, ME0L) If (And (Local0, 0x02)) { Store (0x01, ME0W) } } And (\_SB.PCI0.PAM5, 0x30, Local0) If (Local0) { Store (0x4000, ME4L) If (And (Local0, 0x20)) { Store (0x01, ME4W) } } And (\_SB.PCI0.PAM6, 0x03, Local0) If (Local0) { Store (0x4000, ME8L) If (And (Local0, 0x02)) { Store (0x01, ME8W) } } And (\_SB.PCI0.PAM6, 0x30, Local0) If (Local0) { Store (0x4000, MECL) If (And (Local0, 0x20)) { Store (0x01, MECW) } } Subtract (\MEMX, MEB1, MEL1) Return (MEMS) } } Device (LID) { Name (_HID, EisaId ("PNP0C0D")) Method (_LID, 0, NotSerialized) { If (\H8DR) { Return (\_SB.PCI0.ISA.EC.HPLD) } Else { If (And (\RBEC (0x36), 0x04)) { Return (0x01) } Else { Return (0x00) } } } Method (_PRW, 0, NotSerialized) { If (LAnd (\W98F, LNot (\WMEF))) { Return (Package (0x02) { 0x0B, 0x04 }) } Else { Return (Package (0x02) { 0x0B, 0x03 }) } } Method (_PSW, 1, NotSerialized) { If (\H8DR) { If (Arg0) { Store (One, \_SB.PCI0.ISA.EC.HWLO) } Else { Store (Zero, \_SB.PCI0.ISA.EC.HWLO) } } Else { If (Arg0) { \MBEC (0x32, 0xFF, 0x04) } Else { \MBEC (0x32, 0xFB, 0x00) } } } } Device (SLPB) { Name (_HID, EisaId ("PNP0C0E")) Method (_PRW, 0, NotSerialized) { If (LAnd (\W98F, LNot (\WMEF))) { Return (Package (0x02) { 0x0B, 0x04 }) } Else { Return (Package (0x02) { 0x0B, 0x03 }) } } Method (_PSW, 1, NotSerialized) { If (\H8DR) { If (Arg0) { Store (0x01, \_SB.PCI0.ISA.EC.HWFN) } Else { Store (0x00, \_SB.PCI0.ISA.EC.HWFN) } } Else { If (Arg0) { \MBEC (0x32, 0xFF, 0x10) } Else { \MBEC (0x32, 0xEF, 0x00) } } } } Device (PCI0) { Name (_ADR, 0x00) Name (_HID, EisaId ("PNP0A03")) OperationRegion (X000, PCI_Config, 0x00, 0x0100) Field (X000, DWordAcc, NoLock, Preserve) { Offset (0x59), PAM0, 8, PAM1, 8, PAM2, 8, PAM3, 8, PAM4, 8, PAM5, 8, PAM6, 8, DRB0, 8, DRB1, 8, DRB2, 8, DRB3, 8, DRB4, 8, DRB5, 8, DRB6, 8, DRB7, 8, Offset (0x7A), CREN, 1, Offset (0x7B) } Name (_PRW, Package (0x02) { 0x0B, 0x04 }) Method (_PSW, 1, NotSerialized) { EPSW (0x01, Arg0) } Name (PMEE, 0x00) Method (EPSW, 2, NotSerialized) { If (Arg1) { Or (PMEE, Arg0, Local0) } Else { And (PMEE, Not (Arg0), Local0) } Store (Local0, PMEE) If (\H8DR) { If (Local0) { Store (0x01, \_SB.PCI0.ISA.EC.HWPM) } Else { Store (0x00, \_SB.PCI0.ISA.EC.HWPM) } } Else { If (Local0) { \MBEC (0x32, 0xFF, 0x01) } Else { \MBEC (0x32, 0xFE, 0x00) } } If (Local0) { Store (0x01, \_SB.PCI0.ISA.WOLE) } Else { Store (0x00, \_SB.PCI0.ISA.WOLE) } } Name (_CRS, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, 0x0000, 0x0000, 0x00FF, 0x0000, 0x0100) IO (Decode16, 0x0CF8, 0x0CF8, 0x01, 0x08) WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000, 0x0000, 0x0CF7, 0x0000, 0x0CF8) WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000, 0x0D00, 0xFFFF, 0x0000, 0xF300) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000A0000, 0x000BFFFF, 0x00000000, 0x00020000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000C0000, 0x000C3FFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000C4000, 0x000C7FFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000C8000, 0x000CBFFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000CC000, 0x000CFFFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000D0000, 0x000D3FFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000D4000, 0x000D7FFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000D8000, 0x000DBFFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000DC000, 0x000DFFFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000E0000, 0x000E3FFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000E4000, 0x000E7FFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000E8000, 0x000EBFFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x000EC000, 0x000EFFFF, 0x00000000, 0x00004000) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, 0x00100000, 0xFFDFFFFF, 0x00000000, 0xFFD00000) }) CreateDWordField (_CRS, 0x68, C0LN) CreateDWordField (_CRS, 0x82, C4LN) CreateDWordField (_CRS, 0x9C, C8LN) CreateDWordField (_CRS, 0xB6, CCLN) CreateDWordField (_CRS, 0xD0, D0LN) CreateDWordField (_CRS, 0xEA, D4LN) CreateDWordField (_CRS, 0x0104, D8LN) CreateDWordField (_CRS, 0x011E, DCLN) CreateDWordField (_CRS, 0x0138, E0LN) CreateDWordField (_CRS, 0x0152, E4LN) CreateDWordField (_CRS, 0x016C, E8LN) CreateDWordField (_CRS, 0x0186, ECLN) CreateDWordField (_CRS, 0x0194, XXMN) CreateDWordField (_CRS, 0x0198, XXMX) CreateDWordField (_CRS, 0x01A0, XXLN) Method (_INI, 0, NotSerialized) { If (LEqual (\SCMP (\_OS, "Microsoft Windows"), Zero)) { Store (One, \W98F) } Else { If (LEqual (\SCMP (\_OS, "Microsoft Windows NT"), Zero)) { Store (One, \WNTF) } Else { If (LEqual (\SCMP (\_OS, "Microsoft WindowsME: Millennium Edition"), Zero)) { Store (One, \WMEF) Store (One, \W98F) } } } Multiply (DRB7, 0x00800000, Local0) Store (Local0, \MEMX) Store (Local0, XXMN) Add (Subtract (XXMX, XXMN), 0x01, XXLN) If (And (PAM1, 0x03)) { Store (0x00, C0LN) } If (And (PAM1, 0x30)) { Store (0x00, C4LN) } If (And (PAM2, 0x03)) { Store (0x00, C8LN) } If (And (PAM2, 0x30)) { Store (0x00, CCLN) } If (And (PAM3, 0x03)) { Store (0x00, D0LN) } If (And (PAM3, 0x30)) { Store (0x00, D4LN) } If (And (PAM4, 0x03)) { Store (0x00, D8LN) } If (And (PAM4, 0x30)) { Store (0x00, DCLN) } If (And (PAM5, 0x03)) { Store (0x00, E0LN) } If (And (PAM5, 0x30)) { Store (0x00, E4LN) } If (And (PAM6, 0x03)) { Store (0x00, E8LN) } If (And (PAM6, 0x30)) { Store (0x00, ECLN) } \_SB.PCI0.ISA.GPPM () If (\GCHK ()) { Store (0x01, \GVEN) } } Name (_PRT, Package (0x07) { Package (0x04) { 0x0001FFFF, 0x00, \_SB.LNKA, 0x00 }, Package (0x04) { 0x0002FFFF, 0x00, \_SB.LNKA, 0x00 }, Package (0x04) { 0x0002FFFF, 0x01, \_SB.LNKB, 0x00 }, Package (0x04) { 0x0003FFFF, 0x00, \_SB.LNKC, 0x00 }, Package (0x04) { 0x0003FFFF, 0x01, \_SB.LNKD, 0x00 }, Package (0x04) { 0x0005FFFF, 0x00, \_SB.LNKA, 0x00 }, Package (0x04) { 0x0007FFFF, 0x03, \_SB.LNKD, 0x00 } }) Device (IDE0) { Name (_ADR, 0x00070001) OperationRegion (X140, PCI_Config, 0x40, 0x10) Field (X140, DWordAcc, NoLock, Preserve) { XPT0, 1, XPI0, 1, XPP0, 1, XPD0, 1, XPT1, 1, XPI1, 1, XPP1, 1, XPD1, 1, XPRT, 2, , 2, XPIS, 2, XPSE, 1, XPE, 1, XST0, 1, XSI0, 1, XSP0, 1, XSD0, 1, XST1, 1, XSI1, 1, XSP1, 1, XSD1, 1, XSRT, 2, , 2, XSIS, 2, XSSE, 1, XSE, 1, XVRT, 2, XVIS, 2, Offset (0x05), Offset (0x08), XEP0, 1, XEP1, 1, XES0, 1, XES1, 1, Offset (0x09), Offset (0x0A), XUP0, 2, , 2, XUP1, 2, Offset (0x0B), XUS0, 2, , 2, XUS1, 2, Offset (0x0C) } Device (PRIM) { Name (_ADR, 0x00) Method (_GTM, 0, NotSerialized) { Subtract (0x05, XPIS, Local0) Subtract (0x04, XPRT, Local1) Add (Local0, Local1, Local0) Multiply (0x1E, Local0, Local0) If (LGreater (Local0, 0xF0)) { Store (0x0384, Local0) } If (XEP0) { Store (0x11, Local4) If (LEqual (XUP0, 0x00)) { Store (0x78, Local1) } Else { If (LEqual (XUP0, 0x01)) { Store (0x50, Local1) } Else { Store (0x3C, Local1) } } } Else { Store (0x10, Local4) Store (Local0, Local1) } If (XPI0) { Or (Local4, 0x02, Local4) } If (XPSE) { Subtract (0x05, XVIS, Local2) Subtract (0x04, XVRT, Local3) Add (Local2, Local3, Local2) Multiply (0x1E, Local2, Local2) If (LGreater (Local2, 0xF0)) { Store (0x0384, Local2) } If (XEP1) { Or (Local4, 0x04, Local4) If (LEqual (XUP1, 0x00)) { Store (0x78, Local3) } Else { If (LEqual (XUP1, 0x01)) { Store (0x50, Local3) } Else { Store (0x3C, Local3) } } } Else { Store (Local2, Local3) } } Else { Store (0x00, Local2) Store (0x00, Local3) } If (XPI1) { Or (Local4, 0x08, Local4) } Store (Local0, \GTP0) Store (Local1, \GTD0) Store (Local2, \GTP1) Store (Local3, \GTD1) Store (Local4, \GTMF) Return (\BGTM) } Method (_STM, 3, NotSerialized) { CreateDWordField (Arg0, 0x00, STP0) CreateDWordField (Arg0, 0x04, STD0) CreateDWordField (Arg0, 0x08, STP1) CreateDWordField (Arg0, 0x0C, STD1) CreateDWordField (Arg0, 0x10, STMF) If (SizeOf (Arg1)) { CreateWordField (Arg1, 0x01, PMZR) If (PMZR) { Store (One, Local5) } Else { Store (Zero, Local5) } } Else { Store (Zero, Local5) } If (Local5) { If (\W98F) { CreateWordField (Arg1, 0x66, PM51) CreateWordField (Arg1, 0x6A, PM53) CreateWordField (Arg1, 0x7C, PM62) CreateWordField (Arg1, 0x7E, PM63) CreateWordField (Arg1, 0x80, PM64) CreateWordField (Arg1, 0x82, PM65) CreateWordField (Arg1, 0x88, PM68) CreateWordField (Arg1, 0xB0, PM88) Store (\UDMA (PM53, PM88), Local0) If (LGreater (Local0, 0x03)) { Store (0x03, Local0) } Store (\MDMA (PM53, PM63, PM62, PM65), Local1) Store (\MPIO (PM53, PM64, PM51, PM68), Local2) Store (\MPI4 (Local1, Local2), Local3) } Else { Store (\MPIB (And (STMF, 0x02), STP0), Local2) Store (\UDMB (And (STMF, 0x01), STD0), Local0) Store (\MP4B (Local2), Local3) Store (Local3, Local1) } Store (\MTIM (Local3, Local2, And (PMZR, 0x80)), Local4) If (And (Local4, 0x01)) { Store (One, XPT0) } If (And (Local4, 0x02)) { Store (One, XPI0) } If (And (Local4, 0x04)) { Store (One, XPP0) } If (And (Local4, 0x08)) { Store (One, XPD0) } Store (\MISP (Local3), XPIS) Store (\MRTC (Local3), XPRT) If (Local0) { Store (One, XEP0) Store (\MUCT (Local0), XUP0) } Else { Store (Zero, XEP0) Store (Zero, XUP0) } Store (\MHDM (Local0, Local1), \HDM0) Store (\MHPI (Local2), \HPI0) } If (SizeOf (Arg2)) { CreateWordField (Arg2, 0x01, PS00) If (PS00) { Store (One, Local5) } Else { Store (Zero, Local5) } } Else { Store (Zero, Local5) } If (Local5) { If (\W98F) { CreateWordField (Arg2, 0x66, PS51) CreateWordField (Arg2, 0x6A, PS53) CreateWordField (Arg2, 0x7C, PS62) CreateWordField (Arg2, 0x7E, PS63) CreateWordField (Arg2, 0x80, PS64) CreateWordField (Arg2, 0x82, PS65) CreateWordField (Arg2, 0x88, PS68) CreateWordField (Arg2, 0xB0, PS88) Store (\UDMA (PS53, PS88), Local0) If (LGreater (Local0, 0x03)) { Store (0x03, Local0) } Store (\MDMA (PS53, PS63, PS62, PS65), Local1) Store (\MPIO (PS53, PS64, PS51, PS68), Local2) Store (\MPI4 (Local1, Local2), Local3) } Else { Store (\MPIB (And (STMF, 0x08), STP1), Local2) Store (\UDMB (And (STMF, 0x04), STD1), Local0) Store (\MP4B (Local2), Local3) Store (Local3, Local1) } Store (One, XPSE) Store (\MTIM (Local3, Local2, And (PS00, 0x80)), Local4) If (And (Local4, 0x01)) { Store (One, XPT1) } If (And (Local4, 0x02)) { Store (One, XPI1) } If (And (Local4, 0x04)) { Store (One, XPP1) } If (And (Local4, 0x08)) { Store (One, XPD1) } Store (\MISP (Local3), XVIS) Store (\MRTC (Local3), XVRT) If (Local0) { Store (One, XEP1) Store (\MUCT (Local0), XUP1) } Else { Store (Zero, XEP1) Store (Zero, XUP1) } Store (\MHDM (Local0, Local1), \HDM1) Store (\MHDM (Local0, Local1), \CDM1) Store (\MHPI (Local2), \HPI1) Store (\MHPI (Local2), \CPI1) } } Device (MSTR) { Name (_ADR, 0x00) Method (_GTF, 0, NotSerialized) { Return (\ICM0) } } } Device (SCND) { Name (_ADR, 0x01) Method (_GTM, 0, NotSerialized) { Subtract (0x05, XSIS, Local0) Subtract (0x04, XSRT, Local1) Add (Local0, Local1, Local0) Multiply (0x1E, Local0, Local0) If (LGreater (Local0, 0xF0)) { Store (0x0384, Local0) } If (XES0) { Store (0x11, Local2) If (LEqual (XUS0, 0x00)) { Store (0x78, Local1) } Else { If (LEqual (XUS0, 0x01)) { Store (0x50, Local1) } Else { Store (0x3C, Local1) } } } Else { Store (0x10, Local2) Store (Local0, Local1) } If (XSI0) { Or (Local2, 0x02, Local2) } Store (Local0, \GTP0) Store (Local1, \GTD0) Store (Zero, \GTP1) Store (Zero, \GTD1) Store (Local2, \GTMF) Return (\BGTM) } Method (_STM, 3, NotSerialized) { CreateDWordField (Arg0, 0x00, STP0) CreateDWordField (Arg0, 0x04, STD0) CreateDWordField (Arg0, 0x08, STP1) CreateDWordField (Arg0, 0x0C, STD1) CreateDWordField (Arg0, 0x10, STMF) If (SizeOf (Arg1)) { CreateWordField (Arg1, 0x01, SM00) If (SM00) { Store (One, Local5) } Else { Store (Zero, Local5) } } Else { Store (Zero, Local5) } If (Local5) { If (\W98F) { CreateWordField (Arg1, 0x66, SM51) CreateWordField (Arg1, 0x6A, SM53) CreateWordField (Arg1, 0x7C, SM62) CreateWordField (Arg1, 0x7E, SM63) CreateWordField (Arg1, 0x80, SM64) CreateWordField (Arg1, 0x82, SM65) CreateWordField (Arg1, 0x88, SM68) CreateWordField (Arg1, 0xB0, SM88) Store (\UDMA (SM53, SM88), Local0) If (LGreater (Local0, 0x03)) { Store (0x03, Local0) } Store (\MDMA (SM53, SM63, SM62, SM65), Local1) Store (\MPIO (SM53, SM64, SM51, SM68), Local2) Store (\MPI4 (Local1, Local2), Local3) } Else { Store (\MPIB (And (STMF, 0x02), STP0), Local2) Store (\UDMB (And (STMF, 0x01), STD0), Local0) Store (\MP4B (Local2), Local3) Store (Local3, Local1) } Store (\MTIM (Local3, Local2, And (SM00, 0x80)), Local4) If (And (Local4, 0x01)) { Store (One, XST0) } If (And (Local4, 0x02)) { Store (One, XSI0) } If (And (Local4, 0x04)) { Store (One, XSP0) } If (And (Local4, 0x08)) { Store (One, XSD0) } Store (\MISP (Local3), XSIS) Store (\MRTC (Local3), XSRT) If (Local0) { Store (One, XES0) Store (\MUCT (Local0), XUS0) } Else { Store (Zero, XES0) Store (Zero, XUS0) } Store (\MHDM (Local0, Local1), \HDM2) Store (\MHDM (Local0, Local1), \CDM2) Store (\MHPI (Local2), \HPI2) Store (\MHPI (Local2), \CPI2) Store (MHDM (Local0, Local1), \DDM2) Store (MHPI (Local2), \DPI2) } } Device (MSTR) { Name (_ADR, 0x00) Method (_GTF, 0, NotSerialized) { Store (\_SB.PCI0.ISA.EC.GUID (), Local0) If (LEqual (Local0, 0x06)) { Return (\ICM2) } Store (Zero, Local1) If (LEqual (Local0, 0x0B)) { Store (One, Local1) } If (LEqual (Local0, 0x03)) { Store (One, Local1) } If (LEqual (Local0, 0x0A)) { Store (One, Local1) } If (Local1) { Store (\GCDT (0x00), \DTF2) Store (\GCDT (0x01), \DTA2) Return (\DCM2) } Else { Return (\ICC2) } } } } } Device (PM00) { Name (_ADR, 0x00070003) OperationRegion (X3DR, PCI_Config, 0x5C, 0x20) Field (X3DR, DWordAcc, NoLock, Preserve) { , 1, , 2, , 1, , 1, , 2, Offset (0x01), , 2, , 15, , 1, , 3, XA0E, 1, XM0E, 1, XPE, 1, X09A, 16, X09M, 4, , 1, X09E, 3, , 1, XPA, 2, , 1, XFA, 1, XFE, 1, , 1, Offset (0x08), Offset (0x0B), XU1A, 3, XU1E, 1, XU2A, 3, XU2E, 1, X12A, 16, X12M, 4, X12E, 1, Offset (0x0F), Offset (0x10), X12O, 32, X13A, 16, X13M, 4, X13E, 1, Offset (0x17), Offset (0x18), X13O, 32, Offset (0x20) } OperationRegion (SMBC, PCI_Config, 0xD2, 0x01) Field (SMBC, ByteAcc, NoLock, Preserve) { SBHE, 1, SBIS, 3 } OperationRegion (GLEN, SystemIO, 0x1020, 0x02) Field (GLEN, WordAcc, NoLock, Preserve) { , 15, BLEN, 1 } } Device (USB) { Name (_ADR, 0x00070002) Method (_PSW, 1, NotSerialized) { Noop } Name (_PRW, Package (0x02) { 0x08, 0x01 }) } Device (AGP) { Name (_ADR, 0x00010000) Name (_PRT, Package (0x02) { Package (0x04) { 0xFFFF, 0x00, \_SB.LNKA, 0x00 }, Package (0x04) { 0xFFFF, 0x01, \_SB.LNKB, 0x00 } }) Name (EDX1, Buffer (0x80) { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x24, 0x4D, 0x55, 0x0A, 0x01, 0x01, 0x01, 0x01, 0x23, 0x09, 0x01, 0x02, 0x80, 0x21, 0x18, 0x00, 0xEA, 0x0D, 0xFB, 0xA0, 0x57, 0x47, 0x98, 0x27, 0x12, 0x4D, 0x51, 0xA1, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x19, 0x00, 0x40, 0x41, 0x00, 0x26, 0x30, 0x18, 0x88, 0x36, 0x00, 0x0E, 0xCB, 0x10, 0x00, 0x00, 0x1A, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x54, 0x68, 0x69, 0x6E, 0x6B, 0x50, 0x61, 0x64, 0x20, 0x4C, 0x43, 0x44, 0x20, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x31, 0x30, 0x32, 0x34, 0x78, 0x37, 0x36, 0x38, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33 }) Name (EDX2, Buffer (0x0100) { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x24, 0x4D, 0x55, 0x0A, 0x01, 0x01, 0x01, 0x01, 0x23, 0x09, 0x01, 0x02, 0x80, 0x21, 0x18, 0x00, 0xEA, 0x0D, 0xFB, 0xA0, 0x57, 0x47, 0x98, 0x27, 0x12, 0x4D, 0x51, 0xA1, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x19, 0x00, 0x40, 0x41, 0x00, 0x26, 0x30, 0x18, 0x88, 0x36, 0x00, 0x0E, 0xCB, 0x10, 0x00, 0x00, 0x1A, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x54, 0x68, 0x69, 0x6E, 0x6B, 0x50, 0x61, 0x64, 0x20, 0x4C, 0x43, 0x44, 0x20, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x31, 0x30, 0x32, 0x34, 0x78, 0x37, 0x36, 0x38, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }) Name (EDT1, Buffer (0x80) { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xC1, 0xD0, 0xFE, 0x09, 0x01, 0x01, 0x01, 0x01, 0x23, 0x09, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0xEA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA1, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x58, 0x1C, 0x20, 0x28, 0x80, 0x01, 0x00, 0xF6, 0xB8, 0x00, 0x00, 0x00, 0x1A, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x54, 0x68, 0x69, 0x6E, 0x6B, 0x50, 0x61, 0x64, 0x20, 0x54, 0x56, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59 }) Name (EDT2, Buffer (0x0100) { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xC1, 0xD0, 0xFE, 0x09, 0x01, 0x01, 0x01, 0x01, 0x23, 0x09, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0xEA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA1, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x58, 0x1C, 0x20, 0x28, 0x80, 0x01, 0x00, 0xF6, 0xB8, 0x00, 0x00, 0x00, 0x1A, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x54, 0x68, 0x69, 0x6E, 0x6B, 0x50, 0x61, 0x64, 0x20, 0x54, 0x56, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }) Mutex (MDGS, 0x07) Name (VDEE, 0x01) Name (VDDA, Buffer (0x02) {}) CreateBitField (VDDA, 0x00, VUPC) CreateBitField (VDDA, 0x01, VQDL) CreateBitField (VDDA, 0x02, VQDC) CreateBitField (VDDA, 0x03, VQDT) CreateBitField (VDDA, 0x04, VQDD) CreateBitField (VDDA, 0x05, VSDL) CreateBitField (VDDA, 0x06, VSDC) CreateBitField (VDDA, 0x07, VSDT) CreateBitField (VDDA, 0x08, VSDD) CreateBitField (VDDA, 0x0A, MSWT) CreateBitField (VDDA, 0x0B, VWST) CreateBitField (VDDA, 0x0D, VPWR) Device (VID) { Name (_ADR, 0x00) Name (_S1D, 0x01) Name (_S3D, 0x03) Method (_INI, 0, NotSerialized) { \VUPS (0x02) Store (\VCDL, VQDL) Store (\VCDC, VQDC) Store (\VCDT, VQDT) Store (\VCDD, VQDD) } Method (_PS0, 0, NotSerialized) { Store (0x01, VPWR) } Method (_PS1, 0, NotSerialized) { Store (0x00, VPWR) } Method (_PS2, 0, NotSerialized) { Store (0x00, VPWR) } Method (_PS3, 0, NotSerialized) { Store (0x00, VPWR) } Method (VSWT, 0, NotSerialized) { \VUPS (0x80) If (LNot (\VCIN)) { Store (0x01, Local0) Store (0x00, Local2) If (\VCDT) { Or (0x04, Local2, Local2) } If (\VCDL) { Add (0x01, Local0, Local0) } If (\VCDC) { Add (0x02, Local0, Local0) } If (LEqual (0x04, Local0)) { Store (0x01, Local1) } Else { Store (Local0, Local1) } Or (Local2, Local1, Local1) ASWT (Local1, 0x01) } } Method (VLOC, 1, NotSerialized) { If (VPWR) { If (Arg0) { \VUPS (0x81) If (LNot (VCSS)) { If (LNot (\VCDL)) { ASWT (0x01, 0x00) \VNRS (0x01) } } } } } Method (_DOS, 1, NotSerialized) { If (LEqual (Arg0, 0x02)) { Store (0x01, Local0) While (Local0) { Acquire (MDGS, 0xFFFF) If (LEqual (0x00, MSWT)) { Store (0x01, MSWT) Store (0x00, Local0) Store (Arg0, VDEE) } Release (MDGS) Sleep (0x01) } } Else { Acquire (MDGS, 0xFFFF) If (LEqual (VDEE, 0x02)) { Store (0x00, MSWT) } If (LGreater (Arg0, 0x02)) { Store (0x01, VDEE) } Else { Store (Arg0, VDEE) } Release (MDGS) } } Method (_DOD, 0, NotSerialized) { Return (Package (0x03) { 0x00010110, 0x00010100, 0x00010200 }) } Method (ASWT, 2, NotSerialized) { If (LEqual (0x01, VDEE)) { \VSDS (Arg0, 0x01) } Else { Store (0x01, Local0) While (Local0) { Acquire (MDGS, 0xFFFF) If (LEqual (0x00, MSWT)) { Store (0x00, Local0) If (And (0x01, Arg1)) { Store (0x01, VUPC) } Else { Store (0x00, VUPC) } If (And (0x01, Arg0)) { Store (0x01, VQDL) } Else { Store (0x00, VQDL) } If (And (0x02, Arg0)) { Store (0x01, VQDC) } Else { Store (0x00, VQDC) } If (And (0x04, Arg0)) { Store (0x01, VQDT) } Else { Store (0x00, VQDT) } } Release (MDGS) Sleep (0x01) } If (And (0x02, Arg1)) { Notify (\_SB.PCI0.AGP.VID, 0x81) } Else { Notify (\_SB.PCI0.AGP.VID, 0x80) } } } Method (VDSW, 1, NotSerialized) { If (LNot (Arg0)) { ASWT (0x01, 0x00) \VNRS (0x05) } } Device (LCD0) { Name (_ADR, 0x0110) Method (_DCS, 0, NotSerialized) { \VUPS (0x00) If (\VCDL) { Return (0x1F) } Else { Return (0x1D) } } Method (_DDC, 1, NotSerialized) { If (LEqual (\VLID, 0x02)) { If (LEqual (Arg0, 0x01)) { Return (EDX1) } Else { If (LEqual (Arg0, 0x02)) { Return (EDX2) } } } } Method (_DGS, 0, NotSerialized) { Return (VQDL) } Method (_DSS, 1, NotSerialized) { And (Arg0, 0x01, VSDL) If (And (Arg0, 0x80000000)) { If (And (Arg0, 0x40000000)) { DSWT (0x02) } Else { DSWT (0x01) } } } } Device (CRT0) { Name (_ADR, 0x0100) Method (_DCS, 0, NotSerialized) { \VUPS (0x01) If (\VCSS) { If (\VCDC) { Return (0x1F) } Else { Return (0x1D) } } Else { If (\VCDC) { Return (0x0F) } Else { Return (0x0D) } } } Method (_DDC, 1, NotSerialized) { \VDDC () If (LEqual (Arg0, 0x01)) { Return (\DDC1) } Else { If (LEqual (Arg0, 0x02)) { Return (\DDC2) } Else { Return (0x00) } } } Method (_DGS, 0, NotSerialized) { Return (VQDC) } Method (_DSS, 1, NotSerialized) { And (Arg0, 0x01, VSDC) If (And (Arg0, 0x80000000)) { If (And (Arg0, 0x40000000)) { DSWT (0x02) } Else { DSWT (0x01) } } } } Device (TV0) { Name (_ADR, 0x0200) Method (_DCS, 0, NotSerialized) { \VUPS (0x00) If (\VCDT) { Return (0x1F) } Else { Return (0x1D) } } Method (_DDC, 1, NotSerialized) { If (LEqual (Arg0, 0x01)) { Return (EDT1) } Else { If (LEqual (Arg0, 0x02)) { Return (EDT2) } } } Method (_DGS, 0, NotSerialized) { Return (VQDT) } Method (_DSS, 1, NotSerialized) { And (Arg0, 0x01, VSDT) If (And (Arg0, 0x80000000)) { If (And (Arg0, 0x40000000)) { DSWT (0x02) } Else { DSWT (0x01) } } } } Method (DSWT, 1, NotSerialized) { If (VSDL) { Store (0x01, Local0) } Else { Store (0x00, Local0) } If (VSDC) { Or (0x02, Local0, Local0) } If (Local0) { If (VUPC) { \VSDS (Local0, Arg0) } } Else { Noop } } } } Device (ISA) { Name (_ADR, 0x00070000) OperationRegion (PIRQ, PCI_Config, 0x60, 0x60) Field (PIRQ, AnyAcc, NoLock, Preserve) { PIRA, 8, PIRB, 8, PIRC, 8, PIRD, 8, SIRQ, 8, Offset (0x16), CH00, 3, , 4, FE00, 1, CH01, 3, , 4, FE01, 1, Offset (0x22), P21E, 3, Offset (0x23), Offset (0x50), , 1, , 1, , 1, , 1, GCR4, 1, , 1, , 1, Offset (0x51), , 1, , 1, , 1, , 1, GCRC, 1, , 1, , 1, Offset (0x52), , 1, , 1, , 1, , 1, , 1, , 1, SUS2, 1, Offset (0x54), Offset (0x60) } Device (SIO) { Name (_HID, EisaId ("PNP0C02")) Name (_UID, 0x00) Name (_STA, 0x0B) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0022, 0x0022, 0x01, 0x01) IO (Decode16, 0x0092, 0x0092, 0x01, 0x01) IO (Decode16, 0x00B2, 0x00B2, 0x01, 0x02) IO (Decode16, 0x1000, 0x1000, 0x01, 0x40) IO (Decode16, 0x1040, 0x1040, 0x01, 0x10) IO (Decode16, 0xFE00, 0xFE00, 0x01, 0x10) }) } Device (PIC) { Name (_HID, EisaId ("PNP0000")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0020, 0x0020, 0x01, 0x02) IO (Decode16, 0x00A0, 0x00A0, 0x01, 0x02) IO (Decode16, 0x04D0, 0x04D0, 0x01, 0x02) IRQNoFlags () {2} }) } Device (TIMR) { Name (_HID, EisaId ("PNP0100")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0040, 0x0040, 0x01, 0x04) IRQNoFlags () {0} }) } Device (DMAC) { Name (_HID, EisaId ("PNP0200")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x01, 0x10) IO (Decode16, 0x0080, 0x0080, 0x01, 0x10) IO (Decode16, 0x00C0, 0x00C0, 0x01, 0x20) DMA (Compatibility, BusMaster, Transfer8) {4} }) } Device (SPKR) { Name (_HID, EisaId ("PNP0800")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0061, 0x0061, 0x01, 0x01) }) } Device (FPU) { Name (_HID, EisaId ("PNP0C04")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x00F0, 0x00F0, 0x01, 0x10) IRQNoFlags () {13} }) } Device (RTC) { Name (_HID, EisaId ("PNP0B00")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0070, 0x0070, 0x01, 0x04) IRQNoFlags () {8} }) } Device (KBD) { Name (_HID, EisaId ("PNP0303")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0060, 0x0060, 0x01, 0x01) IO (Decode16, 0x0064, 0x0064, 0x01, 0x01) IRQNoFlags () {1} }) } Device (MOU) { Name (_HID, EisaId ("IBM3780")) Name (_CID, 0x130FD041) Name (_CRS, ResourceTemplate () { IRQNoFlags () {12} }) } Device (PMGA) { Name (_HID, EisaId ("PNP0C02")) Name (_UID, 0x02) Name (_STA, 0x0B) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x15E0, 0x15E0, 0x01, 0x10) }) } OperationRegion (IMGA, SystemIO, 0x15EC, 0x04) Field (IMGA, ByteAcc, NoLock, Preserve) { IND0, 8, DAT0, 8, IND1, 8, DAT1, 8 } IndexField (IND0, DAT0, ByteAcc, NoLock, Preserve) { Offset (0x7F), ACI, 8 } IndexField (IND1, DAT1, ByteAcc, NoLock, Preserve) { , 4, VDPW, 1, CBPW, 1, BREN, 1, Offset (0x01), Offset (0x07), , 2, SSBY, 1, Offset (0x08), Offset (0x21), , 1, , 1, BTON, 1, , 1, Offset (0x22), Offset (0x2D), BUSC, 1, BUSD, 1, SCIS, 1, SCIR, 2, SLCK, 1, WOLE, 1, Offset (0x2E) } Method (HBEN, 0, NotSerialized) { If (\GLPW ()) { Store (0x01, BREN) } } Method (HBDS, 0, NotSerialized) { If (\GLPW ()) { Store (0x00, BREN) } } PowerResource (PSER, 0x00, 0x0000) { Method (_STA, 0, NotSerialized) { Return (XOr (SSBY, 0x01)) } Method (_ON, 0, NotSerialized) { Store (0x00, SSBY) } Method (_OFF, 0, NotSerialized) { Store (0x01, SSBY) } } Device (SPIO) { Name (_HID, EisaId ("PNP0C02")) Name (_UID, 0x01) Name (_STA, 0x0B) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x002E, 0x002E, 0x01, 0x02) }) } OperationRegion (NCFG, SystemIO, 0x2E, 0x02) Field (NCFG, ByteAcc, NoLock, Preserve) { INDX, 8, DATA, 8 } IndexField (INDX, DATA, ByteAcc, NoLock, Preserve) { FER, 8, FAR, 8, PTR, 8, FCR, 8, PCR, 8, Offset (0x06), PMC, 8, TUP, 8, SID, 8, ASC, 8, S0LA, 8, S0CF, 8, S1LA, 8, S1CF, 8, Offset (0x10), S0HA, 8, S1HA, 8, SCF0, 8, Offset (0x18), SCF1, 8, Offset (0x1B), PNP0, 8, PNP1, 8, Offset (0x40), SCF2, 8, PNP2, 8, PBAL, 8, PBAH, 8, U1AL, 8, U1AH, 8, U2AL, 8, U2AH, 8, FBAL, 8, FBAH, 8, SBAL, 8, SBAH, 8, IRQ1, 8, IRQ2, 8, IRQ3, 8, PNP3, 8, SCF3, 8, CLK, 8 } PowerResource (PSIO, 0x00, 0x0000) { Name (PSTS, 0x01) Method (_STA, 0, NotSerialized) { Return (PSTS) } Method (_ON, 0, NotSerialized) { And (PTR, 0xFE, PTR) Store (0x01, PSTS) } Method (_OFF, 0, NotSerialized) { Store (0x00, PSTS) } } Device (FDC) { Name (_HID, EisaId ("PNP0700")) Name (_PR0, Package (0x01) { PSIO }) Method (_STA, 0, NotSerialized) { Store (\_SB.PCI0.PM00.XFE, Local0) If (Local0) { Return (0x0F) } Else { Return (0x0D) } } Method (_DIS, 0, NotSerialized) { And (PNP2, 0x80, PNP2) Store (Zero, \_SB.PCI0.PM00.XFE) } Name (_CRS, ResourceTemplate () { IO (Decode16, 0x03F0, 0x03F0, 0x01, 0x06) IO (Decode16, 0x03F7, 0x03F7, 0x01, 0x01) IRQNoFlags () {6} DMA (Compatibility, NotBusMaster, Transfer8) {2} }) Name (_PRS, ResourceTemplate () { IO (Decode16, 0x03F0, 0x03F0, 0x01, 0x06) IO (Decode16, 0x03F7, 0x03F7, 0x01, 0x01) IRQNoFlags () {6} DMA (Compatibility, NotBusMaster, Transfer8) {2} }) Method (_SRS, 1, NotSerialized) { And (FBAL, 0x01, Local0) Or (Local0, 0xFC, FBAL) And (FBAH, 0x03, FBAH) And (PNP2, 0x80, Local0) Or (Local0, 0x36, PNP2) If (And (FER, 0x08, Local1)) {} Else { Or (FER, 0x08, FER) } Store (Zero, \_SB.PCI0.PM00.XFA) Store (One, \_SB.PCI0.PM00.XFE) If (LEqual (\_SB.PCI0.ISA.EC.BDEV, 0x0D)) { \SFDD (0x00) } Else { \SFDD (0x01) } } } Device (UART) { Name (_HID, EisaId ("PNP0501")) Name (_EJD, "_SB.PCI0.DOCK") Name (_PR0, Package (0x02) { PSIO, PSER }) Name (_PRW, Package (0x02) { 0x0B, 0x03 }) Method (_PSW, 1, NotSerialized) { If (\H8DR) { If (Arg0) { Store (0x01, \_SB.PCI0.ISA.EC.HWRI) } Else { Store (0x00, \_SB.PCI0.ISA.EC.HWRI) } } Else { If (Arg0) { \MBEC (0x32, 0xFF, 0x40) } Else { \MBEC (0x32, 0xBF, 0x00) } } } Method (_STA, 0, NotSerialized) { If (And (FER, 0x02)) { Return (0x0F) } Else { Return (0x0D) } } Method (_DIS, 0, NotSerialized) { And (FER, 0xFD, FER) Store (Zero, \_SB.PCI0.PM00.XU1E) } Method (_CRS, 0, NotSerialized) { Name (BUFF, ResourceTemplate () { IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08) IRQNoFlags () {4} }) CreateWordField (BUFF, 0x02, U1MN) CreateWordField (BUFF, 0x04, U1MX) CreateWordField (BUFF, 0x09, U1IQ) ShiftLeft (And (U1AL, 0xFE), 0x02, Local0) Store (Local0, U1MN) Store (Local0, U1MX) If (And (PNP1, 0x01)) { Store (0x08, U1IQ) } Return (BUFF) } Name (_PRS, ResourceTemplate () { StartDependentFn (0x00, 0x00) { IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08) IRQNoFlags () {4} } StartDependentFn (0x01, 0x00) { IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08) IRQNoFlags () {3} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08) IRQNoFlags () {4} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x02E8, 0x02E8, 0x01, 0x08) IRQNoFlags () {3} } EndDependentFn () }) Method (_SRS, 1, NotSerialized) { CreateWordField (Arg0, 0x02, IOAR) CreateWordField (Arg0, 0x09, IRQM) If (LEqual (IOAR, 0x03F8)) { Store (0xFE, Local0) Store (0x00, Local1) } Else { If (LEqual (IOAR, 0x02F8)) { Store (0xBE, Local0) Store (0x01, Local1) } Else { If (LEqual (IOAR, 0x03E8)) { Store (0xFA, Local0) Store (0x07, Local1) } Else { If (LEqual (IOAR, 0x02E8)) { Store (0xBA, Local0) Store (0x05, Local1) } Else { Fatal (0x02, 0x90000002, 0x00) } } } } And (U1AH, 0x03, U1AH) And (U1AL, 0x01, Local2) Or (Local0, Local2, U1AL) Store (Local1, \_SB.PCI0.PM00.XU1A) And (PNP1, 0xF0, Local0) If (LEqual (IRQM, 0x10)) { Or (Local0, 0x04, Local0) } Else { If (LEqual (IRQM, 0x08)) { Or (Local0, 0x03, Local0) } Else { Fatal (0x02, 0x90000002, 0x00) } } Store (Local0, PNP1) Or (FER, 0x02, FER) Store (One, \_SB.PCI0.PM00.XU1E) } } Name (PPMD, 0x00) Name (PPDR, 0x00) Method (GPPM, 0, NotSerialized) { Store (\GPAR (), Local0) And (Local0, 0x03, PPMD) ShiftRight (And (Local0, 0x04), 0x02, PPDR) } Device (LPT) { Name (_HID, EisaId ("PNP0400")) Name (_EJD, "_SB.PCI0.DOCK") Name (_PR0, Package (0x01) { PSIO }) Method (_STA, 0, NotSerialized) { If (LEqual (PPMD, 0x03)) { Return (Zero) } Else { If (And (FER, 0x01)) { Return (0x0F) } Else { Return (0x0D) } } } Method (_DIS, 0, NotSerialized) { And (FER, 0xFE, FER) Store (Zero, \_SB.PCI0.PM00.XPE) } Method (_CRS, 0, NotSerialized) { Name (BUFF, ResourceTemplate () { IO (Decode16, 0x03BC, 0x03BC, 0x01, 0x04) IRQNoFlags () {7} }) CreateWordField (BUFF, 0x02, L1MN) CreateWordField (BUFF, 0x04, L1MX) CreateByteField (BUFF, 0x06, L1AL) CreateByteField (BUFF, 0x07, L1LN) CreateWordField (BUFF, 0x09, L1IQ) If (LEqual (PPMD, 0x03)) { Store (0x00, L1MN) Store (0x00, L1MX) Store (0x00, L1AL) Store (0x00, L1LN) Store (0x00, L1IQ) Return (BUFF) } And (PBAL, 0xFF, Local0) If (LEqual (Local0, 0xEF)) {} Else { If (LEqual (Local0, 0xDE)) { Store (0x0378, L1MN) Store (0x0378, L1MX) Store (0x08, L1LN) } Else { If (LEqual (Local0, 0x9E)) { Store (0x0278, L1MN) Store (0x0278, L1MX) Store (0x08, L1LN) } } } And (PNP0, 0xF0, Local1) If (LEqual (Local1, 0x00)) { Store (0x00, L1IQ) } Else { If (LEqual (Local1, 0x50)) { Store (0x20, L1IQ) } } Return (BUFF) } Method (_PRS, 0, NotSerialized) { If (PPMD) { Return (PEPP) } Else { Return (PLPT) } } Name (PLPT, ResourceTemplate () { StartDependentFnNoPri () { IO (Decode16, 0x03BC, 0x03BC, 0x01, 0x04) IRQNoFlags () {7} } StartDependentFnNoPri () { IO (Decode16, 0x0378, 0x0378, 0x01, 0x08) IRQNoFlags () {7} } StartDependentFnNoPri () { IO (Decode16, 0x0278, 0x0278, 0x01, 0x08) IRQNoFlags () {5} } StartDependentFnNoPri () { IO (Decode16, 0x03BC, 0x03BC, 0x01, 0x04) IRQNoFlags () {} } StartDependentFnNoPri () { IO (Decode16, 0x0378, 0x0378, 0x01, 0x08) IRQNoFlags () {} } StartDependentFnNoPri () { IO (Decode16, 0x0278, 0x0278, 0x01, 0x08) IRQNoFlags () {} } EndDependentFn () }) Name (PEPP, ResourceTemplate () { StartDependentFnNoPri () { IO (Decode16, 0x0378, 0x0378, 0x01, 0x08) IRQNoFlags () {5,7} } StartDependentFnNoPri () { IO (Decode16, 0x0278, 0x0278, 0x01, 0x08) IRQNoFlags () {5,7} } EndDependentFn () }) Method (_SRS, 1, NotSerialized) { CreateWordField (Arg0, 0x02, IOAR) CreateWordField (Arg0, 0x09, IRQM) If (LEqual (IOAR, 0x03BC)) { Store (0xEF, Local0) Store (0x00, Local1) } Else { If (LEqual (IOAR, 0x0378)) { Store (0xDE, Local0) Store (0x01, Local1) } Else { If (LEqual (IOAR, 0x0278)) { Store (0x9E, Local0) Store (0x02, Local1) } Else { Fatal (0x02, 0x90000002, 0x00) } } } And (PBAH, 0x03, Local2) Store (Local2, PBAH) Store (Local0, PBAL) Store (Local1, \_SB.PCI0.PM00.XPA) And (PNP0, 0x0F, Local0) If (LEqual (IRQM, 0x20)) { Or (Local0, 0x50, Local0) } Else { If (LEqual (IRQM, 0x80)) { Or (Local0, 0x70, Local0) } Else { If (LEqual (IRQM, Zero)) {} } } Store (Local0, PNP0) If (LEqual (PPMD, 0x00)) { And (PCR, 0xFA, Local0) If (PPDR) { Or (PTR, 0x80, Local1) } Else { And (PTR, 0x7F, Local1) } } Else { If (LEqual (PPMD, 0x01)) { And (PCR, 0xF9, Local0) Or (Local0, 0x01, Local0) } Else { And (PCR, 0xFB, Local0) Or (Local0, 0x03, Local0) } And (PTR, 0x7F, Local1) } Store (Local0, PCR) Store (Local1, PTR) Or (FER, 0x01, FER) Store (One, \_SB.PCI0.PM00.XPE) } } Device (ECP) { Name (_HID, EisaId ("PNP0401")) Name (_EJD, "_SB.PCI0.DOCK") Name (_PR0, Package (0x01) { PSIO }) Method (_STA, 0, NotSerialized) { If (LEqual (PPMD, 0x03)) { If (And (FER, 0x01)) { Return (0x0F) } Else { Return (0x0D) } } Else { Return (Zero) } } Method (_DIS, 0, NotSerialized) { And (FER, 0xFE, FER) Store (Zero, \_SB.PCI0.PM00.XPE) } Method (_CRS, 0, NotSerialized) { Name (BUFF, ResourceTemplate () { IO (Decode16, 0x03BC, 0x03BC, 0x01, 0x04) IO (Decode16, 0x07BC, 0x07BC, 0x01, 0x03) IRQNoFlags () {7} DMA (Compatibility, NotBusMaster, Transfer8) {3} }) CreateWordField (BUFF, 0x02, ECN0) CreateWordField (BUFF, 0x04, ECX0) CreateByteField (BUFF, 0x06, ECA0) CreateByteField (BUFF, 0x07, ECL0) CreateWordField (BUFF, 0x0A, ECN1) CreateWordField (BUFF, 0x0C, ECX1) CreateByteField (BUFF, 0x0E, ECA1) CreateByteField (BUFF, 0x0F, ECL1) CreateWordField (BUFF, 0x11, ECIQ) CreateWordField (BUFF, 0x14, ECDQ) If (LNot (LEqual (PPMD, 0x03))) { Store (0x00, ECN0) Store (0x00, ECX0) Store (0x00, ECA0) Store (0x00, ECL0) Store (0x00, ECN1) Store (0x00, ECX1) Store (0x00, ECA1) Store (0x00, ECL1) Store (0x00, ECIQ) Store (0x00, ECDQ) Return (BUFF) } And (PBAL, 0xFF, Local0) If (LEqual (Local0, 0xEF)) { Store (0x03BC, Local1) } Else { If (LEqual (Local0, 0xDE)) { Store (0x0378, Local1) Store (0x08, ECL0) } Else { If (LEqual (Local0, 0x9E)) { Store (0x0278, Local1) Store (0x08, ECL0) } } } Store (Local1, ECN0) Store (Local1, ECX0) Add (Local1, 0x0400, ECN1) Add (Local1, 0x0400, ECX1) And (PNP0, 0xF0, Local1) If (LEqual (Local1, 0x50)) { Store (0x20, ECIQ) } Else { If (LEqual (Local1, 0x70)) {} Else { Store (0x00, ECIQ) } } And (SCF1, 0x38, Local2) If (LEqual (Local2, 0x00)) { Store (0x00, ECDQ) } Else { If (LEqual (Local2, 0x08)) { Store (0x01, ECDQ) } Else { If (LEqual (Local2, 0x10)) { Store (0x02, ECDQ) } Else { If (LEqual (Local2, 0x20)) {} Else { Store (0x00, ECDQ) } } } } Return (BUFF) } Name (_PRS, ResourceTemplate () { StartDependentFnNoPri () { IO (Decode16, 0x03BC, 0x03BC, 0x01, 0x04) IO (Decode16, 0x07BC, 0x07BC, 0x01, 0x03) IRQNoFlags () {7} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFnNoPri () { IO (Decode16, 0x0378, 0x0378, 0x01, 0x08) IO (Decode16, 0x0778, 0x0778, 0x01, 0x03) IRQNoFlags () {7} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFnNoPri () { IO (Decode16, 0x0278, 0x0278, 0x01, 0x08) IO (Decode16, 0x0678, 0x0678, 0x01, 0x03) IRQNoFlags () {5} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } EndDependentFn () }) Method (_SRS, 1, NotSerialized) { CreateWordField (Arg0, 0x02, IOAR) CreateWordField (Arg0, 0x11, IRQM) CreateByteField (Arg0, 0x14, DMAM) If (LEqual (IOAR, 0x03BC)) { Store (0xEF, Local0) Store (0x00, Local1) } Else { If (LEqual (IOAR, 0x0378)) { Store (0xDE, Local0) Store (0x01, Local1) } Else { If (LEqual (IOAR, 0x0278)) { Store (0x9E, Local0) Store (0x02, Local1) } Else { Fatal (0x02, 0x90000002, 0x00) } } } And (PBAH, 0x03, Local2) Store (Local2, PBAH) Store (Local0, PBAL) Store (Local1, \_SB.PCI0.PM00.XPA) And (PNP0, 0x0F, Local0) If (LEqual (IRQM, 0x20)) { Or (Local0, 0x50, Local0) } Else { If (LEqual (IRQM, 0x80)) { Or (Local0, 0x70, Local0) } } Store (Local0, PNP0) And (SCF1, 0xC7, Local1) If (LEqual (DMAM, 0x01)) { Or (Local1, 0x08, Local1) } Else { If (LEqual (DMAM, 0x02)) { Or (Local1, 0x10, Local1) } Else { If (LEqual (DMAM, 0x08)) { Or (Local1, 0x20, Local1) } } } Store (Local1, SCF1) And (PCR, 0xFE, Local0) Or (Local0, 0x04, PCR) Or (FER, 0x01, FER) Store (One, \_SB.PCI0.PM00.XPE) And (PCR, 0xFB, PCR) \ECPP () } } Device (FIR) { Name (_HID, EisaId ("IBM0071")) Name (_CID, 0x1105D041) Name (_PR0, Package (0x01) { PSIO }) Method (_STA, 0, NotSerialized) { If (And (FER, 0x04)) { Return (0x0F) } Else { Return (0x0D) } } Method (_DIS, 0, NotSerialized) { And (SCF2, 0x5F, SCF2) And (FER, 0xFB, FER) Store (Zero, \_SB.PCI0.PM00.XU2E) } Method (_CRS, 0, NotSerialized) { Name (BUFF, ResourceTemplate () { IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08) IRQNoFlags () {4} DMA (Compatibility, NotBusMaster, Transfer8) {3} }) CreateWordField (BUFF, 0x02, IRMN) CreateWordField (BUFF, 0x04, IRMX) CreateWordField (BUFF, 0x09, IRIQ) CreateByteField (BUFF, 0x0C, IRDR) ShiftLeft (And (U2AL, 0xFE), 0x02, Local0) Store (Local0, IRMN) Store (Local0, IRMX) If (LEqual (And (PNP1, 0xF0), 0x70)) { Store (0x80, IRIQ) } Else { If (LEqual (And (PNP1, 0xF0), 0x50)) { Store (0x20, IRIQ) } Else { If (LEqual (And (PNP1, 0xF0), 0x40)) { Store (0x10, IRIQ) } Else { If (LEqual (And (PNP1, 0xF0), 0x30)) { Store (0x08, IRIQ) } Else { Store (0x00, IRIQ) } } } } And (PNP3, 0x07, Local1) If (LEqual (Local1, 0x00)) { Store (0x00, IRDR) } Else { If (LEqual (Local1, 0x01)) { Store (0x01, IRDR) } Else { If (LEqual (Local1, 0x02)) { Store (0x02, IRDR) } Else { If (LEqual (Local1, 0x04)) { Store (0x08, IRDR) } Else { Store (Zero, IRDR) } } } } Return (BUFF) } Name (_PRS, ResourceTemplate () { StartDependentFn (0x00, 0x00) { IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08) IRQNoFlags () {4} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFn (0x01, 0x00) { IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08) IRQNoFlags () {3} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08) IRQNoFlags () {4} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x02E8, 0x02E8, 0x01, 0x08) IRQNoFlags () {3} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08) IRQNoFlags () {3,5,7} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08) IRQNoFlags () {4,5,7} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08) IRQNoFlags () {3,5,7} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x02E8, 0x02E8, 0x01, 0x08) IRQNoFlags () {4,5,7} DMA (Compatibility, NotBusMaster, Transfer8) {0,1,3} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08) IRQNoFlags () {4} DMA (Compatibility, NotBusMaster, Transfer8) {} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08) IRQNoFlags () {3} DMA (Compatibility, NotBusMaster, Transfer8) {} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08) IRQNoFlags () {4} DMA (Compatibility, NotBusMaster, Transfer8) {} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x02E8, 0x02E8, 0x01, 0x08) IRQNoFlags () {3} DMA (Compatibility, NotBusMaster, Transfer8) {} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08) IRQNoFlags () {3,5,7} DMA (Compatibility, NotBusMaster, Transfer8) {} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08) IRQNoFlags () {4,5,7} DMA (Compatibility, NotBusMaster, Transfer8) {} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08) IRQNoFlags () {3,5,7} DMA (Compatibility, NotBusMaster, Transfer8) {} } StartDependentFn (0x02, 0x00) { IO (Decode16, 0x02E8, 0x02E8, 0x01, 0x08) IRQNoFlags () {4,5,7} DMA (Compatibility, NotBusMaster, Transfer8) {} } EndDependentFn () }) Method (_SRS, 1, NotSerialized) { CreateWordField (Arg0, 0x02, IRIO) CreateWordField (Arg0, 0x09, IRIQ) CreateByteField (Arg0, 0x0C, IRDR) If (LEqual (IRIO, 0x03F8)) { Store (0xFE, Local0) Store (0x00, Local1) } Else { If (LEqual (IRIO, 0x02F8)) { Store (0xBE, Local0) Store (0x01, Local1) } Else { If (LEqual (IRIO, 0x03E8)) { Store (0xFA, Local0) Store (0x07, Local1) } Else { If (LEqual (IRIO, 0x02E8)) { Store (0xBA, Local0) Store (0x05, Local1) } Else { Fatal (0x02, 0x90000002, 0x00) } } } } And (U2AH, 0x03, U2AH) And (U2AL, 0x01, Local2) Or (Local0, Local2, U2AL) Store (Local1, \_SB.PCI0.PM00.XU2A) And (PNP1, 0x0F, Local0) If (LEqual (IRIQ, 0x80)) { Or (Local0, 0x70, Local0) } Else { If (LEqual (IRIQ, 0x20)) { Or (Local0, 0x50, Local0) } Else { If (LEqual (IRIQ, 0x10)) { Or (Local0, 0x40, Local0) } Else { If (LEqual (IRIQ, 0x08)) { Or (Local0, 0x30, Local0) } Else { Fatal (0x02, 0x90000002, 0x00) } } } } Store (Local0, PNP1) If (LEqual (IRDR, 0x00)) { Store (0x00, Local0) } Else { If (LEqual (IRDR, 0x01)) { Store (0x01, Local0) } Else { If (LEqual (IRDR, 0x02)) { Store (0x02, Local0) } Else { If (LEqual (IRDR, 0x08)) { Store (0x04, Local0) } Else { Fatal (0x02, 0x90000002, 0x00) } } } } And (PNP3, 0xC0, Local1) Or (Local1, Local0, PNP3) Or (FER, 0x04, FER) Store (One, \_SB.PCI0.PM00.XU2E) Or (SCF2, 0xA0, SCF2) } } Device (EC) { Name (_HID, EisaId ("PNP0C09")) Name (_GPE, 0x09) Name (_GLK, 0x01) Method (_REG, 2, NotSerialized) { If (LEqual (Arg0, 0x03)) { Store (Arg1, \H8DR) } } OperationRegion (ECOR, EmbeddedControl, 0x00, 0x0100) Field (ECOR, ByteAcc, Lock, Preserve) { , 1, HCGA, 1, , 1, , 1, , 1, , 1, HCAC, 1, Offset (0x01), , 1, BTCM, 1, , 1, , 1, , 1, HCAD, 1, BTPC, 1, Offset (0x02), Offset (0x03), Offset (0x04), , 1, , 1, , 1, , 1, , 1, , 1, , 1, Offset (0x05), HSPA, 1, , 1, , 1, , 1, , 1, , 1, , 1, Offset (0x06), HSUN, 8, HSRP, 8, HACC, 8, Offset (0x0A), Offset (0x0B), Offset (0x0C), HLCL, 8, HLBL, 8, HLMS, 8, HICA, 8, HAM0, 8, HAM1, 8, HAM2, 8, HAM3, 8, HAM4, 8, HAM5, 8, HAM6, 8, HAM7, 8, HAM8, 8, HAM9, 8, HAMA, 8, HAMB, 8, HAMC, 8, HAMD, 8, HAME, 8, HAMF, 8, HT00, 1, HT01, 1, HT02, 1, , 4, HT0E, 1, HT10, 1, HT11, 1, HT12, 1, , 4, HT1E, 1, HT20, 1, HT21, 1, HT22, 1, , 4, HT2E, 1, HT30, 1, HT31, 1, HT32, 1, , 4, HT3E, 1, HT40, 1, HT41, 1, HT42, 1, , 4, HT4E, 1, HT50, 1, HT51, 1, HT52, 1, , 4, HT5E, 1, HT60, 1, HT61, 1, HT62, 1, , 4, HT6E, 1, HT70, 1, HT71, 1, HT72, 1, , 4, HT7E, 1, HDID, 8, Offset (0x2A), Offset (0x2B), HT0H, 8, HT0L, 8, HT1H, 8, HT1L, 8, HFSP, 8, , 5, , 1, HMUT, 1, Offset (0x31), Offset (0x32), HWPM, 1, HWLB, 1, HWLO, 1, HWDK, 1, HWFN, 1, HWBT, 1, HWRI, 1, HWBU, 1, Offset (0x34), , 1, , 1, , 1, , 1, , 1, , 1, , 1, Offset (0x35), Offset (0x36), , 1, BTWK, 1, HPLD, 1, , 1, HPAC, 1, BTST, 1, Offset (0x37), HPBU, 1, , 1, , 1, , 1, , 1, , 1, , 1, HPNF, 1, HB0L, 4, , 1, HB0C, 1, HB0D, 1, HB0A, 1, HB1L, 4, , 1, HB1C, 1, HB1D, 1, HB1A, 1, HCMU, 1, , 1, , 1, , 1, HCSL, 2, , 1, Offset (0x3B), , 1, KBLT, 1, BTPW, 1, BTDT, 1, Offset (0x3C), Offset (0x3D), Offset (0x3E), Offset (0x46), Offset (0x47), , 4, , 1, , 1, , 1, Offset (0x48), , 4, Offset (0x49), Offset (0x4A), Offset (0x4C), Offset (0x4E), HWAK, 8, Offset (0x50), Offset (0x75), Offset (0x78), TMP0, 8, TMP1, 8, TMP2, 8, TMP3, 8, TMP4, 8, TMP5, 8, TMP6, 8, TMP7, 8, Offset (0x82), CP4E, 8, HFNI, 8, HKBD, 1, HPHT, 1, Offset (0x85), Offset (0xC0), Offset (0xC2), Offset (0xC4), Offset (0xD0), Offset (0xE0), Offset (0xE8), Offset (0xEA), Offset (0xEB), Offset (0xEC), , 1, , 1, , 2, , 1, , 1, , 1, Offset (0xED), , 1, Offset (0xEE), , 4, Offset (0xEF), Offset (0xF0), Offset (0xF8), Offset (0x100) } Method (_INI, 0, NotSerialized) { If (\H8DR) { Store (One, HCAC) Store (Zero, HWFN) Store (One, HWLB) Store (Zero, HWLO) And (HAM5, 0x3F, HAM5) } Else { \MBEC (0x00, 0xFF, 0x40) \MBEC (0x32, 0xEB, 0x02) \MBEC (0x15, 0x3F, 0x00) } If (\H8DR) { Store (0x00, HSPA) } Else { \MBEC (0x05, 0xFE, 0x00) } Store (GUID (), BDEV) GHKS () \_SB.PCI0.ISA.EC.HKEY.BTIN () } Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0062, 0x0062, 0x01, 0x01) IO (Decode16, 0x0066, 0x0066, 0x01, 0x01) }) Method (GUID, 0, NotSerialized) { Store (GDEV (0x00), Local0) If (LEqual (Local0, 0x0F)) { If (\H8DR) { If (HB1A) { Store (0x10, Local0) } } Else { If (And (\RBEC (0x39), 0x80)) { Store (0x10, Local0) } } } Return (Local0) } Mutex (MDEV, 0x07) Method (GDEV, 1, NotSerialized) { Acquire (MDEV, 0xFFFF) If (\H8DR) { And (HAM7, 0xFE, HAM7) } Else { \MBEC (0x17, 0xFE, 0x00) } And (Arg0, 0x03, \_SB.PCI0.PM00.EID) And (ShiftRight (Arg0, 0x02), 0x01, \_SB.PCI0.PM00.EID2) If (\H8DR) { Or (HDID, 0x80, HDID) Store (0x20, Local1) While (LAnd (Local1, And (HDID, 0x80))) { Sleep (0x01) Decrement (Local1) } Store (HDID, Local2) } Else { \MBEC (0x28, 0xFF, 0x80) Store (0x20, Local1) While (LAnd (Local1, And (\RBEC (0x28), 0x80))) { Sleep (0x01) Decrement (Local1) } Store (\RBEC (0x28), Local2) } If (And (Local2, 0x80)) { Store (0xFF, Local2) } Store (0x00, \_SB.PCI0.PM00.EID) Store (0x00, \_SB.PCI0.PM00.EID2) Sleep (0x64) If (\H8DR) { Or (HAM7, 0x01, HAM7) } Else { \MBEC (0x17, 0xFF, 0x01) } Release (MDEV) Return (Local2) } Mutex (LEDM, 0x07) Method (SYSL, 2, NotSerialized) { If (LEqual (Arg0, 0x00)) { Store (0x01, Local0) } Else { If (LEqual (Arg0, 0x01)) { Store (0x80, Local0) } Else { Return (0x00) } } Acquire (LEDM, 0xFFFF) If (LAnd (\H8DR, LNot (\W98F))) { Store (Local0, HLMS) If (LEqual (Arg1, 0x00)) { Store (0x00, HLBL) Store (0x00, HLCL) } Else { If (LEqual (Arg1, 0x01)) { Store (0x00, HLBL) Store (Local0, HLCL) } Else { If (LEqual (Arg1, 0x02)) { Store (Local0, HLBL) Store (Local0, HLCL) } Else { } } } } Else { \WBEC (0x0E, Local0) If (LEqual (Arg1, 0x00)) { \WBEC (0x0D, 0x00) \WBEC (0x0C, 0x00) } Else { If (LEqual (Arg1, 0x01)) { \WBEC (0x0D, 0x00) \WBEC (0x0C, Local0) } Else { If (LEqual (Arg1, 0x02)) { \WBEC (0x0D, Local0) \WBEC (0x0C, Local0) } } } } Sleep (0x0A) Release (LEDM) } Name (BAON, 0x00) Name (WBON, 0x00) Method (BEEP, 1, NotSerialized) { If (LGreater (Arg0, 0x11)) { Return (0x01) } Else { If (LAnd (\H8DR, LNot (\W98F))) { If (LEqual (Arg0, 0x00)) { If (BAON) { If (WBON) { Store (0x08, HSRP) Store (0x03, HSUN) } Else { Store (0x00, HSRP) Store (Arg0, HSUN) } Store (0x00, BAON) } } Else { If (LEqual (Arg0, 0x0F)) { Store (0x08, HSRP) Store (0x01, BAON) Store (Arg0, HSUN) } Else { If (BAON) { If (LEqual (Arg0, 0x11)) { Store (0x00, WBON) } Else { If (LEqual (Arg0, 0x10)) { If (HMUT) {} Else { Store (0x01, WBON) } } } } Else { If (LEqual (Arg0, 0x11)) { If (WBON) { Store (0x00, HSRP) Store (0x00, HSUN) Store (0x00, WBON) } } Else { If (LEqual (Arg0, 0x10)) { If (HMUT) {} Else { Store (0x01, WBON) Store (0x08, HSRP) Store (0x03, HSUN) } } Else { If (WBON) { If (LEqual (Arg0, 0x07)) { Store (0x00, WBON) } Else { If (LEqual (Arg0, 0x03)) { Store (0x00, WBON) If (LEqual (\SPS, 0x04)) {} Else { Store (0x00, HSRP) Store (0x00, HSUN) Sleep (0x64) Store (0x07, HSUN) Sleep (0x012C) } } Else { Store (0x00, HSRP) Store (0x00, HSUN) Sleep (0xC8) Store (Arg0, HSUN) Sleep (0xC8) If (LEqual (Arg0, 0x04)) { Store (0x00, WBON) } If (LEqual (Arg0, 0x05)) { Store (0x00, WBON) } If (WBON) { Store (0x08, HSRP) Store (0x03, HSUN) } } } } Else { Store (Arg0, HSUN) If (LEqual (Arg0, 0x03)) { Sleep (0x012C) } If (LEqual (Arg0, 0x07)) { Sleep (0x01F4) } } } } } } } } Else { If (LEqual (Arg0, 0x00)) { If (BAON) { If (WBON) { \WBEC (0x07, 0x08) \WBEC (0x06, 0x03) } Else { \WBEC (0x07, 0x00) \WBEC (0x06, Arg0) } Store (0x00, BAON) } } Else { If (LEqual (Arg0, 0x0F)) { \WBEC (0x07, 0x08) Store (0x01, BAON) \WBEC (0x06, Arg0) } Else { If (BAON) { If (LEqual (Arg0, 0x11)) { Store (0x00, WBON) } Else { If (LEqual (Arg0, 0x10)) { If (HMUT) {} Else { Store (0x01, WBON) } } } } Else { If (LEqual (Arg0, 0x11)) { If (WBON) { \WBEC (0x07, 0x00) \WBEC (0x06, 0x00) Store (0x00, WBON) } } Else { If (LEqual (Arg0, 0x10)) { If (And (0x40, \RBEC (0x30))) {} Else { Store (0x01, WBON) \WBEC (0x07, 0x08) \WBEC (0x06, 0x03) } } Else { If (WBON) { If (LEqual (Arg0, 0x07)) { Store (0x00, WBON) } Else { If (LEqual (Arg0, 0x03)) { Store (0x00, WBON) If (LEqual (\SPS, 0x04)) {} Else { \WBEC (0x07, 0x00) \WBEC (0x06, 0x00) Sleep (0x64) \WBEC (0x06, 0x07) Sleep (0x012C) } } Else { \WBEC (0x07, 0x00) \WBEC (0x06, 0x00) Sleep (0xC8) \WBEC (0x06, Arg0) Sleep (0xC8) If (LEqual (Arg0, 0x04)) { Store (0x00, WBON) } If (LEqual (Arg0, 0x05)) { Store (0x00, WBON) } If (WBON) { \WBEC (0x07, 0x08) \WBEC (0x06, 0x03) } } } } Else { \WBEC (0x06, Arg0) If (LEqual (Arg0, 0x03)) { Sleep (0x012C) } If (LEqual (Arg0, 0x05)) { Sleep (0xC8) } If (LEqual (Arg0, 0x07)) { Sleep (0x01F4) } } } } } } } } } } Method (EVNT, 1, NotSerialized) { If (\H8DR) { If (Arg0) { Or (HAM7, 0x01, HAM7) Or (HAM5, 0x04, HAM5) } Else { And (HAM7, 0xFE, HAM7) And (HAM5, 0xFB, HAM5) } } Else { If (Arg0) { \MBEC (0x17, 0xFF, 0x01) \MBEC (0x15, 0xFF, 0x04) If (\W98F) { \WBEC (0x18, 0xFF) } } Else { \MBEC (0x17, 0xFE, 0x00) \MBEC (0x15, 0xFB, 0x00) If (\W98F) { \WBEC (0x18, 0x00) } } } } Method (_Q12, 0, NotSerialized) { \_SB.PCI0.ISA.EC.HKEY.MHKQ (0x1003) } Method (_Q13, 0, NotSerialized) { If (\_SB.PCI0.ISA.EC.VDHK) { \_SB.PCI0.ISA.EC.HKEY.MHKQ (0x1004) } Else { Notify (\_SB.SLPB, 0x80) } } Method (_Q16, 0, NotSerialized) { \_SB.PCI0.AGP.VID.VSWT () } Method (_Q17, 0, NotSerialized) { If (LNot (\WNTF)) { VEXP () } } Method (_Q1B, 0, NotSerialized) { \_SB.PCI0.ISA.EC.HKEY.MHKQ (0x100C) } Method (_Q1F, 0, NotSerialized) { \LGHT (0x02) } Method (_Q26, 0, NotSerialized) { \_SB.PCI0.ISA.HBDS () Sleep (0x01F4) Notify (AC, 0x00) Notify (\_TZ.THM0, 0x80) If (\GVEN) { \GVIL (0x00) } } Method (_Q27, 0, NotSerialized) { \_SB.PCI0.ISA.HBEN () Sleep (0x01F4) Notify (AC, 0x00) Notify (\_TZ.THM0, 0x80) If (\GVEN) { \GVIL (0x01) } } Method (_Q2A, 0, NotSerialized) { \_SB.PCI0.AGP.VID.VLOC (0x01) \_SB.PCI0.ISA.EC.HKEY.MHKQ (0x5002) Notify (\_SB.LID, 0x80) } Method (_Q2B, 0, NotSerialized) { \_SB.PCI0.ISA.EC.HKEY.MHKQ (0x5001) \LGHT (0x00) Notify (\_SB.LID, 0x80) } Method (_Q3D, 0, NotSerialized) { \FERR () } Method (_Q48, 0, NotSerialized) { If (\GVEN) { \GVIL (0x04) } } Method (_Q49, 0, NotSerialized) { If (\GVEN) { \GVIL (0x05) } } Method (_Q7F, 0, NotSerialized) { Fatal (0x01, 0x80000001, 0x00) } Method (_Q20, 0, NotSerialized) { Notify (BAT0, 0x80) Notify (BAT1, 0x80) } Method (_Q21, 0, NotSerialized) { Notify (BAT0, 0x80) Notify (BAT1, 0x80) } Method (_Q22, 0, NotSerialized) { Notify (BAT0, 0x80) Notify (BAT1, 0x80) } Method (_Q23, 0, NotSerialized) { Store (HB0A, Local0) If (XOr (^BAT0.B0ST, Local0)) { Store (Local0, ^BAT0.B0ST) Notify (BAT0, 0x81) } Else { Notify (BAT0, 0x80) } Store (HB1A, Local0) If (XOr (^BAT1.B1ST, Local0)) { Store (Local0, ^BAT1.B1ST) _Q38 () } Else { If (LAnd (^BAT1.XB1S, Local0)) { Notify (BAT1, 0x80) } } } Method (_Q24, 0, NotSerialized) { Notify (BAT0, 0x80) } Method (_Q25, 0, NotSerialized) { Notify (BAT1, 0x80) } Name (BT0I, Package (0x0D) { 0x00, 0x00, 0x00, 0x01, 0x2A30, 0x00, 0x00, 0x01, 0x01, "ThinkPad Battery", "", "LION", "IBM Corporation " }) Name (BT0P, Package (0x04) {}) Name (BT0J, 0x00) Device (BAT0) { Name (_HID, EisaId ("PNP0C0A")) Name (_UID, 0x00) Name (_PCL, Package (0x01) { \_SB }) Name (B0ST, 0x00) Method (_STA, 0, NotSerialized) { If (\H8DR) { Store (HB0A, B0ST) } Else { If (And (\RBEC (0x38), 0x80)) { Store (0x01, B0ST) } Else { Store (0x00, B0ST) } } If (B0ST) { Return (0x1F) } Else { Return (0x0F) } } Method (_BIF, 0, NotSerialized) { AI2C () Store (0x0A, Local6) Store (0x01, Local5) While (LAnd (Local5, Local6)) { If (HB0A) { Store (I2RB (Zero, 0x01, 0x10), Local7) If (LOr (LEqual (HMBC, 0x1C), Local7)) { Store (0x00, Local5) } Else { Sleep (0x03E8) Decrement (Local6) Store (0x8080, Local7) } } Else { Store (0x00, Local6) Store (0x00, Local7) } } If (LOr (Local7, Local5)) { Store (0x00, Index (BT0I, 0x00)) Store (0xFFFFFFFF, Index (BT0I, 0x01)) Store (0x00, Index (BT0I, 0x05)) Store (0x00, Index (BT0I, 0x06)) Store (0xFFFFFFFF, Index (BT0I, 0x02)) } Else { Store (HBPU, Index (BT0I, 0x00)) Store (HBRC, Local0) Store (Local0, Index (BT0I, 0x01)) Store (Divide (Local0, 0x14, ), Index (BT0I, 0x05)) Store (Divide (Local0, 0x64, ), Index (BT0I, 0x06)) Store (HBFC, Index (BT0I, 0x02)) Store (Divide (HBFC, 0x64, ), BT0J) } RI2C () If (Local7) {} Return (BT0I) } Method (_BST, 0, NotSerialized) { AI2C () Store (I2RB (Zero, 0x01, 0x10), Local7) If (LOr (LNot (LEqual (HMBC, 0x1C)), Local7)) { Store (0x00, Index (BT0P, 0x03)) Store (0x00, Index (BT0P, 0x02)) Store (0x00, Index (BT0P, 0x01)) Store (0x04, Index (BT0P, 0x00)) } Else { Store (HBVL, Local0) Store (Local0, Index (BT0P, 0x03)) Store (Add (HBCC, BT0J), Local1) If (LNot (LLess (Local1, HBFC))) { Store (HBFC, Index (BT0P, 0x02)) } Else { Store (Local1, Index (BT0P, 0x02)) } Store (HBEC, Local1) If (LNot (LLess (Local1, 0x8000))) { Store (Subtract (0x00010000, Local1), Local2) } Else { Store (Local1, Local2) } If (HBPU) { Store (Local2, Index (BT0P, 0x01)) } Else { Multiply (Local0, Local2, Local1) Store (Divide (Local1, 0x03E8, ), Index (BT0P, 0x01)) } If (HB0C) { Store (0x02, Index (BT0P, 0x00)) } Else { If (HB0D) { Store (0x01, Index (BT0P, 0x00)) } Else { Store (0x00, Index (BT0P, 0x00)) } } If (HB0L) {} Else { Or (DerefOf (Index (BT0P, 0x00)), 0x04, Index (BT0P, 0x00)) } } RI2C () Return (BT0P) } Method (_BTP, 1, NotSerialized) { And (HAM4, 0xEF, HAM4) If (Arg0) { Subtract (Arg0, BT0J, Local1) If (LNot (DerefOf (Index (BT0I, 0x00)))) { Divide (Local1, 0x0A, Local0, Local1) } And (Local1, 0xFF, HT0L) And (ShiftRight (Local1, 0x08), 0xFF, HT0H) Or (HAM4, 0x10, HAM4) } } } Name (BT1I, Package (0x0D) { 0x00, 0x00, 0x00, 0x01, 0x2A30, 0x00, 0x00, 0x01, 0x01, "ThinkPad Battery", "", "LION", "IBM Corporation " }) Name (BT1P, Package (0x04) {}) Name (BT1J, 0x00) Device (BAT1) { Name (_HID, EisaId ("PNP0C0A")) Name (_UID, 0x01) Name (_PCL, Package (0x01) { \_SB }) Name (B1ST, 0x00) Name (XB1S, 0x01) Method (_STA, 0, NotSerialized) { If (\H8DR) { Store (HB1A, B1ST) } Else { If (And (\RBEC (0x39), 0x80)) { Store (0x01, B1ST) } Else { Store (0x00, B1ST) } } If (B1ST) { If (XB1S) { Return (0x1F) } Else { If (\WNTF) { Return (0x00) } Else { Return (0x1F) } } Return (0x1F) } Else { If (\WNTF) { Return (0x00) } Else { Return (0x0F) } } } Method (_BIF, 0, NotSerialized) { AI2C () Store (0x0A, Local6) Store (0x01, Local5) While (LAnd (Local5, Local6)) { If (HB1A) { Store (I2RB (Zero, 0x01, 0x11), Local7) If (LOr (LEqual (HMBC, 0x1C), Local7)) { Store (0x00, Local5) } Else { Sleep (0x03E8) Decrement (Local6) Store (0x8080, Local7) } } Else { Store (0x00, Local6) Store (0x00, Local7) } } If (LOr (Local7, Local5)) { Store (0x00, Index (BT1I, 0x00)) Store (0xFFFFFFFF, Index (BT1I, 0x01)) Store (0x00, Index (BT1I, 0x05)) Store (0x00, Index (BT1I, 0x06)) Store (0xFFFFFFFF, Index (BT1I, 0x02)) } Else { Store (HBPU, Index (BT1I, 0x00)) Store (HBRC, Local0) Store (Local0, Index (BT1I, 0x01)) Store (Divide (Local0, 0x14, ), Index (BT1I, 0x05)) Store (Divide (Local0, 0x64, ), Index (BT1I, 0x06)) Store (HBFC, Index (BT1I, 0x02)) Store (Divide (HBFC, 0x64, ), BT1J) } RI2C () If (Local7) {} Return (BT1I) } Method (_BST, 0, NotSerialized) { AI2C () Store (I2RB (Zero, 0x01, 0x11), Local7) If (LOr (LNot (LEqual (HMBC, 0x1C)), Local7)) { Store (0x00, Index (BT1P, 0x03)) Store (0x00, Index (BT1P, 0x02)) Store (0x00, Index (BT1P, 0x01)) Store (0x04, Index (BT1P, 0x00)) } Else { Store (HBVL, Local0) Store (Local0, Index (BT1P, 0x03)) Store (Add (HBCC, BT1J), Local1) If (LNot (LLess (Local1, HBFC))) { Store (HBFC, Index (BT1P, 0x02)) } Else { Store (Local1, Index (BT1P, 0x02)) } Store (HBEC, Local1) If (LNot (LLess (Local1, 0x8000))) { Store (Subtract (0x00010000, Local1), Local2) } Else { Store (Local1, Local2) } If (HBPU) { Store (Local2, Index (BT1P, 0x01)) } Else { Multiply (Local0, Local2, Local1) Store (Divide (Local1, 0x03E8, ), Index (BT1P, 0x01)) } If (HB1C) { Store (0x02, Index (BT1P, 0x00)) } Else { If (HB1D) { Store (0x01, Index (BT1P, 0x00)) } Else { Store (0x00, Index (BT1P, 0x00)) } } If (HB1L) {} Else { Or (DerefOf (Index (BT1P, 0x00)), 0x04, Index (BT1P, 0x00)) } } RI2C () Return (BT1P) } Method (_BTP, 1, NotSerialized) { And (HAM4, 0xDF, HAM4) If (Arg0) { Subtract (Arg0, BT1J, Local1) If (LNot (DerefOf (Index (BT1I, 0x00)))) { Divide (Local1, 0x0A, Local0, Local1) } And (Local1, 0xFF, HT1L) And (ShiftRight (Local1, 0x08), 0xFF, HT1H) Or (HAM4, 0x20, HAM4) } } } Device (AC) { Name (_HID, "ACPI0003") Name (_UID, 0x00) Name (_PCL, Package (0x01) { \_SB }) Method (_PSR, 0, NotSerialized) { Return (HPAC) } Method (_STA, 0, NotSerialized) { Return (0x0F) } } Scope (\_SB.PCI0.ISA.EC) { Field (ECOR, ByteAcc, Lock, Preserve) { Offset (0x50), HMPR, 8, HMST, 5, , 1, HMAR, 1, HMDN, 1, HMAD, 8, HMCM, 8, HMDT, 8, Offset (0x74), HMBC, 8 } Field (ECOR, ByteAcc, Lock, Preserve) { Offset (0x54), HBPU, 8, Offset (0x56), HBST, 8, HBID, 4, Offset (0x58), HBRC, 32, HBFC, 32, HBCC, 32, HBVL, 16, HBEC, 16, HBBT, 16, HBNF, 16, HBTC, 16, HBCT, 16, Offset (0x74), Offset (0x100) } Field (ECOR, ByteAcc, Lock, Preserve) { Offset (0x54), HBTS, 8, HBAF, 1, Offset (0x56), HBSD, 16, HBDT, 16, HBH0, 16, HBL0, 16, HBH1, 16, HBL1, 16, HBH2, 16, HBL2, 16 } Field (ECOR, ByteAcc, Lock, Preserve) { Offset (0x54), HF_Z, 8, HF_D, 8, HZIP, 8, HDVD, 8, HHFD, 8, HF_H, 8, HHDD, 8, HADP, 8, HLS, 8, HF_C, 8, HCRW, 8, HCD, 8, HR01, 8, HFDD, 8, HIMP, 8, HNON, 8 } Mutex (I2CM, 0x07) Method (AI2C, 0, NotSerialized) { Return (Acquire (I2CM, 0xFFFF)) } Method (RI2C, 0, NotSerialized) { Release (I2CM) } Method (I2CR, 3, NotSerialized) { AI2C () Store (Arg0, HCSL) If (HCAD) { Or (ShiftLeft (Arg1, 0x01), 0x01, HMAD) } Else { Store (Arg1, HMAD) } Store (Arg2, HMCM) Store (0x07, HMPR) Store (CHKS (), Local7) If (Local7) { Store (Local7, Local0) } Else { Store (HMDT, Local0) } RI2C () Return (Local0) } Method (I2CW, 4, NotSerialized) { AI2C () Store (Arg0, HCSL) If (HCAD) { Or (ShiftLeft (Arg1, 0x01), 0x01, HMAD) } Else { Store (Arg1, HMAD) } Store (Arg2, HMCM) Store (Arg3, HMDT) Store (0x06, HMPR) Store (CHKS (), Local0) RI2C () Return (Local0) } Method (I2RB, 3, NotSerialized) { Store (Arg0, HCSL) If (HCAD) { Store (ShiftLeft (Arg1, 0x01), HMAD) } Else { Store (Arg1, HMAD) } Store (Arg2, HMCM) Store (0x0B, HMPR) Return (CHKS ()) } Method (I2WB, 4, NotSerialized) { Store (Arg0, HCSL) If (HCAD) { Store (ShiftLeft (Arg1, 0x01), HMAD) } Else { Store (Arg1, HMAD) } Store (Arg2, HMCM) Store (Arg3, HMBC) Store (0x0A, HMPR) Return (CHKS ()) } Method (CHKS, 0, NotSerialized) { Store (0x03E8, Local0) While (HMPR) { Sleep (0x01) Decrement (Local0) If (LNot (Local0)) { Return (0x8080) } } If (HMDN) { If (HMST) { Return (Or (0x8000, HMST)) } Else { Return (Zero) } } Else { Return (0x8081) } } } Name (VDHK, 0x00) Method (GHKS, 0, NotSerialized) { Store (\GHKY (), VDHK) } Device (HKEY) { Name (_HID, EisaId ("IBM0068")) Method (_STA, 0, NotSerialized) { If (VDHK) { Return (0x0F) } Else { Return (0x00) } } Name (DHKC, 0x00) Name (DHKB, 0x01) Mutex (XDHK, 0x07) Name (DHKH, 0x00) Name (DHKW, 0x00) Name (DHKS, 0x00) Name (DHKD, 0x00) Method (MHKS, 0, NotSerialized) { Notify (\_SB.SLPB, 0x80) } Method (MHKC, 1, NotSerialized) { Store (Arg0, DHKC) } Method (MHKP, 0, NotSerialized) { Acquire (XDHK, 0xFFFF) If (DHKW) { Store (DHKW, Local1) Store (Zero, DHKW) } Else { If (DHKD) { Store (DHKD, Local1) Store (Zero, DHKD) } Else { If (DHKS) { Store (DHKS, Local1) Store (Zero, DHKS) } Else { Store (DHKH, Local1) Store (Zero, DHKH) } } } Release (XDHK) Return (Local1) } Method (MHKE, 1, NotSerialized) { Store (Arg0, DHKB) Acquire (XDHK, 0xFFFF) Store (Zero, DHKH) Store (Zero, DHKW) Store (Zero, DHKS) Store (Zero, DHKD) Release (XDHK) } Method (MHKQ, 1, NotSerialized) { If (DHKB) { If (DHKC) { Acquire (XDHK, 0xFFFF) If (LLess (Arg0, 0x1000)) {} Else { If (LLess (Arg0, 0x2000)) { Store (Arg0, DHKH) } Else { If (LLess (Arg0, 0x3000)) { Store (Arg0, DHKW) } Else { If (LLess (Arg0, 0x4000)) { Store (Arg0, DHKS) } Else { If (LLess (Arg0, 0x5000)) { Store (Arg0, DHKD) } Else { If (LLess (Arg0, 0x6000)) { Store (Arg0, DHKH) } Else { } } } } } } Release (XDHK) If (LEqual (DHKH, 0x1003)) { \LGHT (0x00) } Notify (HKEY, 0x80) } Else { If (LEqual (Arg0, 0x1004)) { Notify (\_SB.SLPB, 0x80) } } } } Method (XGWT, 0, NotSerialized) { \VUPS (0x80) If (\WNTF) { Store (0x00, Local0) If (\VCDL) { Or (0x01, Local0, Local0) } If (\VCDC) { Or (0x02, Local0, Local0) } If (\VCDT) { Or (0x04, Local0, Local0) } Return (Local0) } Else { Return (0xFFFF) } } Method (XSWT, 1, NotSerialized) { If (\WNTF) { And (0x03, Arg0, Local0) If (Local0) { \_SB.PCI0.AGP.VID.ASWT (Local0, 0x01) } } Else { Return (0xFFFF) } } Method (MHKB, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { \_SB.PCI0.ISA.EC.BEEP (0x11) } Else { If (LEqual (Arg0, 0x01)) { \_SB.PCI0.ISA.EC.BEEP (0x10) } Else { } } } Method (MHKX, 0, NotSerialized) { If (\_SB.PCI0.ISA.FDC.DCFD) { Return (0x01) } Else { Return (0x03) } } } } } Device (CBS0) { Name (_ADR, 0x00020000) OperationRegion (CBUS, PCI_Config, 0x00, 0x0100) Field (CBUS, DWordAcc, NoLock, Preserve) { Offset (0x40), SVID, 16, SSID, 16, LGDC, 32, Offset (0x80), SYSC, 32, MCTL, 8, Offset (0x91), CCTL, 8, Offset (0x93), DIAG, 8 } Method (_INI, 0, NotSerialized) { Store (Zero, LGDC) And (CCTL, 0x7F, CCTL) Or (SYSC, 0x01, SYSC) If (LNot (And (_ADR, 0xFFFF))) { And (MCTL, 0x83, BMCL) } } Name (BMCL, 0x00) Name (PWRS, 0x00) Method (_PSC, 0, NotSerialized) { Return (PWRS) } Method (_PS0, 0, NotSerialized) { PWUP () Store (0x00, PWRS) } Method (_PS3, 0, NotSerialized) { Store (0x03, PWRS) PWDN () } Method (PWDN, 0, NotSerialized) { If (LAnd (\_SB.PCI0.CBS0.PWRS, \_SB.PCI0.CBS1.PWRS)) { If (LNot (And (_ADR, 0xFFFF))) { And (MCTL, 0x83, BMCL) And (MCTL, 0xFC, Local0) Or (Local0, 0x80, MCTL) } Else { \_SB.PCI0.CBS0.PWDN () } } } Method (PWUP, 0, NotSerialized) { If (LAnd (\_SB.PCI0.CBS0.PWRS, \_SB.PCI0.CBS1.PWRS)) { If (LNot (And (_ADR, 0xFFFF))) { And (MCTL, 0x7C, Local0) Or (Local0, BMCL, MCTL) } Else { \_SB.PCI0.CBS0.PWUP () } } } } Device (CBS1) { Name (_ADR, 0x00020001) OperationRegion (CBUS, PCI_Config, 0x00, 0x0100) Field (CBUS, DWordAcc, NoLock, Preserve) { Offset (0x40), SVID, 16, SSID, 16, LGDC, 32, Offset (0x80), SYSC, 32, MCTL, 8, Offset (0x91), CCTL, 8, Offset (0x93), DIAG, 8 } Method (_INI, 0, NotSerialized) { Store (Zero, LGDC) And (CCTL, 0x7F, CCTL) Or (SYSC, 0x01, SYSC) If (LNot (And (_ADR, 0xFFFF))) { And (MCTL, 0x83, BMCL) } } Name (BMCL, 0x00) Name (PWRS, 0x00) Method (_PSC, 0, NotSerialized) { Return (PWRS) } Method (_PS0, 0, NotSerialized) { PWUP () Store (0x00, PWRS) } Method (_PS3, 0, NotSerialized) { Store (0x03, PWRS) PWDN () } Method (PWDN, 0, NotSerialized) { If (LAnd (\_SB.PCI0.CBS0.PWRS, \_SB.PCI0.CBS1.PWRS)) { If (LNot (And (_ADR, 0xFFFF))) { And (MCTL, 0x83, BMCL) And (MCTL, 0xFC, Local0) Or (Local0, 0x80, MCTL) } Else { \_SB.PCI0.CBS0.PWDN () } } } Method (PWUP, 0, NotSerialized) { If (LAnd (\_SB.PCI0.CBS0.PWRS, \_SB.PCI0.CBS1.PWRS)) { If (LNot (And (_ADR, 0xFFFF))) { And (MCTL, 0x7C, Local0) Or (Local0, BMCL, MCTL) } Else { \_SB.PCI0.CBS0.PWUP () } } } } Device (DOCK) { Name (_ADR, 0x00040000) Method (_BDN, 0, NotSerialized) { Return (GDID ()) } Method (_UID, 0, NotSerialized) { Return (GDSR ()) } Name (_PRT, Package (0x06) { Package (0x04) { 0xFFFF, 0x00, \_SB.LNKA, 0x00 }, Package (0x04) { 0xFFFF, 0x01, \_SB.LNKB, 0x00 }, Package (0x04) { 0xFFFF, 0x02, \_SB.LNKC, 0x00 }, Package (0x04) { 0xFFFF, 0x03, \_SB.LNKD, 0x00 }, Package (0x04) { 0x0001FFFF, 0x00, \_SB.LNKB, 0x00 }, Package (0x04) { 0x0002FFFF, 0x00, \_SB.LNKC, 0x00 } }) Method (_REG, 2, NotSerialized) { If (LEqual (Arg0, 0x02)) { If (Arg1) { Sleep (0x19) And (\_SB.PCI0.ISA.SIRQ, 0x3F, \_SB.PCI0.ISA.SIRQ) } \_SB.PCI0.DOCK.CBS2.DREG (0x02, Arg1) \_SB.PCI0.DOCK.CBS3.DREG (0x02, Arg1) \_SB.PCI0.DOCK.IDE1.DREG (0x02, Arg1) If (Arg1) { Or (\_SB.PCI0.ISA.SIRQ, 0xC0, \_SB.PCI0.ISA.SIRQ) Stall (0x64) And (\_SB.PCI0.ISA.SIRQ, 0xBF, \_SB.PCI0.ISA.SIRQ) LTCY () } } } Method (_INI, 0, NotSerialized) { If (GDID ()) { PPEN (0x00) PPIN () PPEN (0x01) If (\W98F) { _REG (0x02, 0x01) } DATT (0x00, 0x00) DATT (0x01, 0x01) } Else { DATT (0x00, 0x01) DATT (0x01, 0x00) } DDWK (0x00) } Method (_STA, 0, NotSerialized) { If (\W98F) { If (DFLG (0x02, 0x08)) { \_SB.PCI0.ISA.EC.HKEY.MHKQ (DHKE) Notify (\_SB.PCI0.DOCK, 0x01) DFLG (0x01, 0x08) } } \_SB.PCI0.DOCK.WURQ () If (LEqual (GDID (), 0x4A004D24)) { Store (0x0F, Local0) } Else { If (LNot (\W98F)) { Store (0x00, Local0) } Else { Store (0x0C, Local0) } } Return (Local0) } Name (_PRW, Package (0x02) { 0x0B, 0x04 }) Method (_PSW, 1, NotSerialized) { EPSW (0x02, Arg0) } Name (DIDB, 0xFFFFFFFF) Method (DPTS, 1, NotSerialized) { If (LAnd (LNot (LLess (Arg0, 0x01)), LNot (LGreater (Arg0, 0x04)))) { DFLG (0x00, 0x0100) Store (0x00, DHKE) If (DFLG (0x02, 0x02)) { Store (0x00, DOID) DFLG (0x01, 0x02) } If (GDID ()) { DDWK (0x01) If (LEqual (Arg0, 0x01)) { SSU2 (0x01) } If (LEqual (Arg0, 0x04)) { Store (0x01, \_SB.PCI0.ISA.SLCK) } } Else { DDWK (0x00) } Store (GDID (), DIDB) } } Method (DWAK, 1, NotSerialized) { Store (0xFFFFFFFF, DOID) If (LAnd (LNot (LLess (Arg0, 0x01)), LNot (LGreater (Arg0, 0x04)))) { If (LNot (LEqual (DIDB, 0x00))) { If (LNot (LEqual (GDID (), 0x00))) { PPEN (0x00) PPIN () If (\W98F) { _REG (0x02, 0x01) PPEN (0x01) } ShiftLeft (Arg0, 0x08, DHKE) If (DFLG (0x02, 0x08)) { Or (DHKE, 0x2004, DHKE) If (LNot (\W98F)) { \_SB.PCI0.ISA.EC.HKEY.MHKQ (DHKE) Notify (\_SB.PCI0.DOCK, 0x03) DFLG (0x01, 0x08) } } Else { If (LEqual (\_SB.PCI0.DOCK.GDID (), 0x4A004D24)) { Notify (\_SB.PCI0.DOCK.IDE1, 0x00) } If (LEqual (Arg0, 0x04)) { \DHDP (0x03) } } } Else { Notify (\_SB.PCI0.DOCK, 0x00) \DHDP (0x00) } } Else { If (LNot (LEqual (GDID (), 0x00))) { If (\_SB.PCI0.ISA.BUSC) { _INI () If (LNot (\W98F)) { PPEN (0x00) } } Notify (\_SB.PCI0.DOCK, 0x00) } } DDWK (0x00) Store (0x00, \_SB.PCI0.ISA.SLCK) DFLG (0x01, 0x0100) If (LEqual (Arg0, 0x01)) { SSU2 (0x00) } If (\WMEF) { DFLG (0x01, 0x02) } } } Method (_DCK, 1, NotSerialized) { If (Arg0) { BCON (0x01) Sleep (0x4B) PPIN () If (LEqual (\_SB.PCI0.DOCK.GDID (), 0x4A004D24)) { If (\W98F) { \DHDP (0x01) } Else { \DHDP (0x04) } } If (\W98F) { PPEN (0x01) _REG (0x02, 0x01) } DATT (0x00, 0x00) DATT (0x01, 0x01) If (\GVEN) { \GVIL (0x02) } } Else { DFLG (0x00, 0x02) \DHDP (0x00) If (\W98F) { _REG (0x02, 0x00) } PPUB (0x00) DATT (0x00, 0x01) DATT (0x01, 0x00) If (\GVEN) { \GVIL (0x03) } } \_SB.PCI0.AGP.VID.VDSW (Arg0) Return (0x01) } Method (_EJ0, 1, NotSerialized) { If (DFLG (0x02, 0x02)) { If (Arg0) { BCON (0x00) WUIN () Store (0x00, DOID) Store (0x00, \_SB.PCI0.ISA.FDC.DCFD) Store (0x01, \_SB.PCI0.ISA.FDC.XFDS) } DFLG (0x01, 0x02) } } Method (_EJ4, 1, NotSerialized) { Store (0x00, \_SB.PCI0.ISA.FDC.DCFD) } Name (DOID, 0xFFFFFFFF) Name (DHKE, 0x00) Name (WUCT, 0x00) Mutex (WUDM, 0x07) Method (WURQ, 0, NotSerialized) { If (And (DHKE, 0x2004)) { If (LEqual (GDID (), 0x00)) { Acquire (WUDM, 0xFFFF) If (LNot (Decrement (WUCT))) { Store (0x01, Local0) } Else { Store (0x00, Local0) } Release (WUDM) If (Local0) { Store (0x00, DHKE) \_SB.PCI0.ISA.EC.HKEY.MHKQ (0x4003) } } } } Method (WUIN, 0, NotSerialized) { Acquire (WUDM, 0xFFFF) If (\WNTF) { Store (0x21, WUCT) } Else { Store (0x01, WUCT) } Release (WUDM) } Method (GDID, 0, NotSerialized) { If (LEqual (DOID, 0xFFFFFFFF)) { Store (RDID (), DOID) } If (\WMEF) { Store (DOID, DIDB) } Return (DOID) } Method (GDSR, 0, NotSerialized) { Return (RDSR ()) } Method (RDID, 0, NotSerialized) { Store (\_SB.PCI0.ISA.EC.GDEV (0x02), Local0) If (And (Local0, 0x07)) { Return (0x00) } If (LNot (\H8DR)) { Return (\GDCK (0x02)) } Store (0x10, Local0) Store (0x00, Local1) Store (0x00, Local2) Store (0x00, Local3) Store (0x00, Local4) While (Local0) { Store (EEPR (Local2), Local1) If (LAnd (LNot (LEqual (Local1, 0x8080)), LNot (LEqual (Local1, 0x8018)))) { If (LEqual (And (Local1, 0x8000), 0x8000)) { Return (0x00) } Else { If (LLess (Local2, 0x09)) { If (LAnd (LLess (Local2, 0x08), LGreater (Local2, 0x03))) { Or (Local3, ShiftLeft (Local1, Multiply (Subtract (Local2, 0x04), 0x08)), Local3) } Add (Local4, Local1, Local4) Store (0x10, Local0) Increment (Local2) } Else { If (LEqual (Local2, 0x09)) { If (LNot (And (Add (Local4, Local1), 0xFF))) { Return (Local3) } Else { Return (0x00) } } } } } Decrement (Local0) } Return (0x00) } Method (RDSR, 0, NotSerialized) { If (LEqual (GDID (), 0x00)) { Return (0x00) } If (LNot (\H8DR)) { Return (\GDCK (0x01)) } Store (0x10, Local0) Store (0x00, Local1) Store (0x00, Local2) Store (0x00, Local3) Store (0x00, Local4) While (Local0) { Store (EEPR (Local2), Local1) If (LAnd (LNot (LEqual (Local1, 0x8080)), LNot (LEqual (Local1, 0x8018)))) { If (LEqual (And (Local1, 0x8000), 0x8000)) { Return (0x00) } Else { If (LLess (Local2, 0x09)) { If (LLess (Local2, 0x04)) { Or (Local3, ShiftLeft (Local1, Multiply (Local2, 0x08)), Local3) } Add (Local4, Local1, Local4) Store (0x10, Local0) Increment (Local2) } Else { If (LEqual (Local2, 0x09)) { If (LNot (And (Add (Local4, Local1), 0xFF))) { Return (Local3) } Else { Return (0x00) } } } } } Decrement (Local0) } Return (0x00) } Method (EEPR, 1, NotSerialized) { Store (0x00, \_SB.PCI0.ISA.EC.HCAC) Or (\_SB.PCI0.ISA.ACI, 0x01, \_SB.PCI0.ISA.ACI) Store (\_SB.PCI0.ISA.EC.I2CR (0x00, 0x51, Arg0), Local0) And (\_SB.PCI0.ISA.ACI, 0xFE, \_SB.PCI0.ISA.ACI) Store (0x01, \_SB.PCI0.ISA.EC.HCAC) Return (Local0) } Name (FLAG, 0x00) Method (DFLG, 2, NotSerialized) { If (LEqual (Arg0, 0x00)) { Or (FLAG, Arg1, FLAG) } If (LEqual (Arg0, 0x01)) { And (FLAG, Not (Arg1), FLAG) } If (And (FLAG, Arg1)) { Return (0x01) } Else { Return (0x00) } } Method (DATT, 2, NotSerialized) { Store (0x00, Local0) If (LEqual (Arg0, 0x00)) { If (LEqual (Arg1, 0x01)) { If (\H8DR) { Or (\_SB.PCI0.ISA.EC.HAM6, 0x80, \_SB.PCI0.ISA.EC.HAM6) } Else { \MBEC (0x16, 0xFF, 0x80) } } If (LEqual (Arg1, 0x00)) { If (\H8DR) { And (\_SB.PCI0.ISA.EC.HAM6, 0x7F, \_SB.PCI0.ISA.EC.HAM6) } Else { \MBEC (0x16, 0x7F, 0x00) } } If (LEqual (Arg1, 0x02)) { If (\H8DR) { If (And (\_SB.PCI0.ISA.EC.HAM6, 0x80)) { Store (0x01, Local0) } } Else { If (And (\RBEC (0x16), 0x80)) { Store (0x01, Local0) } } } } If (LEqual (Arg0, 0x01)) { If (LEqual (Arg1, 0x01)) { If (\H8DR) { Or (\_SB.PCI0.ISA.EC.HAMA, 0x01, \_SB.PCI0.ISA.EC.HAMA) } Else { \MBEC (0x1A, 0xFF, 0x01) } } If (LEqual (Arg1, 0x00)) { If (\H8DR) { And (\_SB.PCI0.ISA.EC.HAMA, 0xFE, \_SB.PCI0.ISA.EC.HAMA) } Else { \MBEC (0x1A, 0xFE, 0x00) } } If (LEqual (Arg1, 0x02)) { If (\H8DR) { If (And (\_SB.PCI0.ISA.EC.HAMA, 0x01)) { Store (0x01, Local0) } } Else { If (And (\RBEC (0x1A), 0x01)) { Store (0x01, Local0) } } } } Return (Local0) } Method (DDWK, 1, NotSerialized) { Store (0x00, Local0) If (LEqual (Arg0, 0x01)) { If (\H8DR) { Store (One, \_SB.PCI0.ISA.EC.HWDK) } Else { \MBEC (0x32, 0xFF, 0x08) } } If (LEqual (Arg0, 0x00)) { If (\H8DR) { Store (Zero, \_SB.PCI0.ISA.EC.HWDK) } Else { \MBEC (0x32, 0xF7, 0x00) } } If (LEqual (Arg0, 0x02)) { If (\H8DR) { If (\_SB.PCI0.ISA.EC.HWDK) { Store (0x01, Local0) } } Else { If (And (\RBEC (0x32), 0x08)) { Store (0x01, Local0) } } } Return (Local0) } Method (DGPE, 0, NotSerialized) { If (\WMEF) { DFLG (0x00, 0x0100) } If (DFLG (0x02, 0x0100)) { DFLG (0x00, 0x08) } Else { Or (DHKE, 0x2004, DHKE) If (\W98F) { Notify (\_SB.PCI0.DOCK, 0x01) } Else { \_SB.PCI0.ISA.EC.HKEY.MHKQ (DHKE) Notify (\_SB.PCI0.DOCK, 0x03) } } } Event (DEVT) Method (BCON, 1, NotSerialized) { If (LAnd (Arg0, \_SB.PCI0.ISA.BUSC)) { Return (0x00) } If (LAnd (LNot (Arg0), \_SB.PCI0.ISA.BUSD)) { Return (0x00) } Store (DATT (0x00, 0x02), Local0) DATT (0x00, 0x01) Reset (DEVT) If (Arg0) { Sleep (0xC8) Store (0x00, \_SB.PCI0.ISA.BUSD) Store (0x01, \_SB.PCI0.ISA.BUSC) } Else { Store (0x00, \_SB.PCI0.ISA.BUSC) Store (0x01, \_SB.PCI0.ISA.BUSD) } Wait (DEVT, 0xFFFF) If (LNot (Local0)) { DATT (0x00, 0x00) } } Method (LTCY, 0, NotSerialized) { If (LEqual (GDID (), 0x4A004D24)) { LDEV (0x00) LDEV (0x01) LCBS (0x02) } } Method (LDEV, 1, NotSerialized) { Or (0x80000000, ShiftLeft (\RPCI (0x80002019), 0x10), Local0) Or (Local0, ShiftLeft (Arg0, 0x0B), Local0) Store (0x00, Local1) While (LLess (Local1, 0x08)) { Or (Local0, ShiftLeft (Local1, 0x08), Local2) Store (\RPCI (Or (Local2, 0x02)), Local3) Store (\RPCI (Or (Local2, 0x03)), Local4) If (LOr (LNot (LEqual (Local3, 0xFF)), LNot (LEqual (Local4, 0xFF)))) { Store (\RPCI (Or (Local2, 0x0E)), Local5) If (LNot (Local5)) { Store (\RPCI (Or (Local2, 0x3E)), Local6) If (LNot (LGreater (Local6, 0x08))) { Store (0x40, Local7) } Else { If (LNot (LGreater (Local6, 0x1F))) { Store (Multiply (Local6, 0x08), Local7) } Else { Store (0xD0, Local7) } } \WPCI (Or (Local2, 0x0D), Local7) \WPCI (Or (Local2, 0x0C), 0x08) } } Increment (Local1) } } Method (LCBS, 1, NotSerialized) { Or (0x80000000, ShiftLeft (\RPCI (0x80002019), 0x10), Local0) Or (Local0, ShiftLeft (Arg0, 0x0B), Local0) Store (0x00, Local1) While (LLess (Local1, 0x02)) { Or (Local0, ShiftLeft (Local1, 0x08), Local2) \WPCI (Or (Local2, 0x0C), 0x08) \WPCI (Or (Local2, 0x0D), 0x40) \WPCI (Or (Local2, 0x1B), 0x80) Increment (Local1) } } Method (SSU2, 1, NotSerialized) { If (Arg0) { Store (0x01, \_SB.PCI0.PM00.S2DS) Store (0x01, \_SB.PCI0.ISA.SUS2) } Else { Store (0x00, \_SB.PCI0.ISA.SUS2) Store (0x00, \_SB.PCI0.PM00.S2DS) } } Scope (\_SB.PCI0.ISA.EC) { Method (_Q37, 0, NotSerialized) { If (\_SB.PCI0.ISA.SCIS) { Store (\_SB.PCI0.ISA.SCIR, Local0) If (LEqual (Local0, 0x00)) { If (LNot (\_SB.PCI0.DOCK.GDID ())) { Store (0xFFFFFFFF, \_SB.PCI0.DOCK.DOID) Notify (\_SB.PCI0.DOCK, 0x00) } } If (LAnd (LEqual (Local0, 0x02), \_SB.PCI0.ISA.BUSC)) { Signal (\_SB.PCI0.DOCK.DEVT) } If (LAnd (LEqual (Local0, 0x03), \_SB.PCI0.ISA.BUSD)) { Signal (\_SB.PCI0.DOCK.DEVT) } Store (0x00, \_SB.PCI0.ISA.SCIS) } } Method (_Q50, 0, NotSerialized) { If (\_SB.PCI0.DOCK.GDID ()) { If (\W98F) { Notify (\_SB.PCI0.DOCK, 0x01) } Else { Notify (\_SB.PCI0.DOCK, 0x03) } } } } OperationRegion (PPBR, PCI_Config, 0x00, 0x0100) Field (PPBR, DWordAcc, NoLock, Preserve) { Offset (0x40), SVID, 16, SSID, 16, Offset (0x66), SDCL, 8, PDCL, 8, Offset (0x6C), SCAD, 8, BUFC, 8, Offset (0x6F), CLKR, 8, Offset (0x76), PG0D, 1, PG1D, 1, PG2D, 1, PG3D, 1, SG0D, 1, SG1D, 1, SG2D, 1, SG3D, 1, PG0O, 1, PG1O, 1, PG2O, 1, PG3O, 1, SG0O, 1, SG1O, 1, SG2O, 1, SG3O, 1, Offset (0x79), SIRQ, 8, ARMK, 8 } Method (PPIN, 0, NotSerialized) { Or (ShiftRight (0x00040000, 0x05), 0x80000000, Local0) Store (\RPCI (Or (Local0, 0x84)), Local1) If (LAnd (Local1, 0x03)) { \WPCI (Or (Local0, 0x84), And (Local1, 0xFC)) Sleep (0x0A) } If (\W98F) { \WPCI (Or (Local0, 0x1C), 0xF0) \WPCI (Or (Local0, 0x1D), 0x00) \WPCI (Or (Local0, 0x20), 0xF0) \WPCI (Or (Local0, 0x21), 0xFF) \WPCI (Or (Local0, 0x22), 0x00) \WPCI (Or (Local0, 0x23), 0x00) \WPCI (Or (Local0, 0x24), 0xF0) \WPCI (Or (Local0, 0x25), 0xFF) \WPCI (Or (Local0, 0x26), 0x00) \WPCI (Or (Local0, 0x27), 0x00) } \WPCI (Or (Local0, 0x19), 0x08) \WPCI (Or (Local0, 0x1A), 0x0E) \WPCI (Or (Local0, 0x0C), 0x08) \WPCI (Or (Local0, 0x0D), 0x40) \WPCI (Or (Local0, 0x1B), 0x44) Store (0x1014, SVID) Store (0xE3, SSID) Or (And (SDCL, 0x00), 0x01, SDCL) Or (And (PDCL, 0x00), 0x01, PDCL) Or (And (SCAD, 0x02), 0xB0, SCAD) Or (And (BUFC, 0x00), 0x1F, BUFC) Or (And (CLKR, 0x00), 0x0C, CLKR) Or (And (SIRQ, 0x00), 0x23, SIRQ) Or (And (ARMK, 0x00), 0x38, ARMK) PPFD () PPUB (0x01) PPMX () } Method (PPEN, 1, NotSerialized) { Or (0x80000000, ShiftRight (0x00040000, 0x05), Local0) If (Arg0) { \MPCI (Or (Local0, 0x04), 0xFF, 0x07) } Else { \MPCI (Or (Local0, 0x04), 0xF8, 0x00) } } Method (PPRS, 0, NotSerialized) { Or (0x80000000, ShiftRight (0x00040000, 0x05), Local0) \MPCI (Or (Local0, 0x3E), 0xFF, 0x40) Sleep (0x64) \MPCI (Or (Local0, 0x3E), 0xBF, 0x00) } Method (PPFD, 0, NotSerialized) { Store (0x01, SG1D) If (LEqual (\_SB.PCI0.ISA.EC.GDEV (0x03), 0x0D)) { Store (0x01, \_SB.PCI0.ISA.FDC.DCFD) Store (0x01, SG1O) } Else { Store (0x00, \_SB.PCI0.ISA.FDC.DCFD) Store (0x00, SG1O) } } Method (PPUB, 1, NotSerialized) { Store (0x00, SG3D) If (Arg0) { Store (0x00, PG3O) } Else { Store (0x01, PG3O) } Store (0x01, PG3D) } Method (PPMX, 0, NotSerialized) { Store (\RPCI (Or (0x80000019, ShiftRight (0x00040000, 0x05))), Local0) Or (0x80000000, ShiftLeft (Local0, 0x10), Local0) Store (0x04, Local1) Store (0x00, Local2) While (Local1) { Decrement (Local1) ShiftLeft (Local2, 0x08, Local2) Or (Local2, \RPCI (Or (Local0, Local1)), Local2) } If (LEqual (Local2, 0x00213388)) { Or (SDCL, 0x04, SDCL) } } Device (IDE1) { Name (_ADR, 0x00010000) OperationRegion (IDEC, PCI_Config, 0x00, 0x0100) Field (IDEC, DWordAcc, NoLock, Preserve) { Offset (0x4F), , 2, ENCL, 1, Offset (0x50), Offset (0x51), , 2, PRMC, 1, SNDC, 1, Offset (0x52), XCMT, 8, , 6, XAR0, 2, XDRR, 4, XDRW, 4, Offset (0x73), XUDM, 1, , 1, XUDC, 1, , 1, XUDT, 2, Offset (0x74) } Method (DREG, 2, NotSerialized) { If (LEqual (Arg0, 0x02)) { If (Arg1) { If (LEqual (\_SB.PCI0.DOCK.GDID (), 0x4A004D24)) { If (LNot (And (\_SB.PCI0.DOCK.SCAD, 0x02))) { Store (0x01, PRMC) Store (0x01, SNDC) } } If (\W98F) { RAID () } } } } Method (RAID, 0, NotSerialized) { Store (0x01, ENCL) Store (\RPCI (Or (0x80000019, ShiftRight (0x00040000, 0x05))), Local0) Or (0x80000000, ShiftLeft (Local0, 0x10), Local0) Or (Local0, ShiftRight (_ADR, 0x05), Local0) Or (Local0, ShiftLeft (And (_ADR, 0x07), 0x08), Local0) \WPCI (Or (Local0, 0x0A), 0x04) Store (0x00, ENCL) } Method (_STA, 0, NotSerialized) { Store (0x00, Local0) If (LEqual (\_SB.PCI0.DOCK.GDID (), 0x4A004D24)) { If (LNot (And (\_SB.PCI0.DOCK.SCAD, 0x02))) { Store (0x0F, Local0) } } Return (Local0) } Device (PRIM) { Name (_ADR, 0x00) Method (_GTM, 0, NotSerialized) { Store (0x12, Local4) If (XCMT) { If (XDRR) { If (LEqual (XDRR, 0x0F)) { Store (0x01, Local0) } Else { Add (0x01, XDRR, Local0) } } Else { Store (0x10, Local0) } If (XDRW) { Store (XDRW, Local1) } Else { Store (0x10, Local1) } Add (Local0, Local1, Local0) Multiply (0x1E, Local0, Local0) If (LGreater (Local0, 0xF0)) { Store (0x0384, Local0) } Store (Local0, Local1) } Else { Store (0x00, Local0) } Store (Local0, Local1) If (XUDM) { Or (Local4, 0x01, Local4) If (XUDC) { Add (XUDT, 0x01, Local1) Multiply (0x0F, Local1, Local1) } Else { Add (XUDT, 0x01, Local1) Multiply (0x1E, Local1, Local1) If (LEqual (Local1, 0x5A)) { Store (0x50, Local1) } } } Store (Local0, \GTP0) Store (Local1, \GTD0) Store (0x00, \GTP1) Store (0x00, \GTD1) Store (Local4, \GTMF) Return (\BGTM) } Method (_STM, 3, NotSerialized) { CreateDWordField (Arg0, 0x00, STP0) CreateDWordField (Arg0, 0x04, STD0) CreateDWordField (Arg0, 0x08, STP1) CreateDWordField (Arg0, 0x0C, STD1) CreateDWordField (Arg0, 0x10, STMF) If (SizeOf (Arg1)) { CreateWordField (Arg1, 0x01, DM00) If (DM00) { Store (One, Local5) } Else { Store (Zero, Local5) } } Else { Store (Zero, Local5) } If (Local5) { If (W98F) { CreateWordField (Arg1, 0x66, DM51) CreateWordField (Arg1, 0x6A, DM53) CreateWordField (Arg1, 0x7C, DM62) CreateWordField (Arg1, 0x7E, DM63) CreateWordField (Arg1, 0x80, DM64) CreateWordField (Arg1, 0x82, DM65) CreateWordField (Arg1, 0x88, DM68) CreateWordField (Arg1, 0xB0, DM88) Store (\UDMA (DM53, DM88), Local0) Store (\MDMA (DM53, DM63, DM62, DM65), Local1) Store (\MPIO (DM53, DM64, DM51, DM68), Local2) } Else { Store (\MPIB (And (STMF, 0x02), STP0), Local2) Store (\UDMB (And (STMF, 0x01), STD0), Local0) Store (\MDMB (STD0), Local1) } Store (And (DM00, 0x80), \IDKS) Store (\CART (Local2), XAR0) Store (\CCMD (Local2), XCMT) Store (\CDRW (Local1, Local2), Local3) And (Local3, 0x0F, XDRR) ShiftRight (Local3, 0x04, XDRW) If (Local0) { Store (0x01, XUDM) If (LNot (LGreater (Local0, 0x03))) { Store (0x00, XUDC) } Else { Store (0x01, XUDC) } Store (\CUDC (Local0), XUDT) } Store (\MHDM (Local0, Local1), \HDM3) Store (\MHDM (Local0, Local1), \CDM3) Store (\MHPI (Local2), \HPI3) Store (\MHPI (Local2), \CPI3) } } Device (MSTR) { Name (_ADR, 0x00) Method (_GTF, 0, NotSerialized) { If (\IDKS) { Return (\ICC3) } Else { Return (\ICM3) } } } } } Device (CBS2) { Name (_ADR, 0x00020000) Method (_STA, 0, NotSerialized) { If (LEqual (\_SB.PCI0.DOCK.GDID (), 0x4A004D24)) { Return (0x0F) } Else { Return (0x00) } } Method (DREG, 2, NotSerialized) { If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, 0x01))) { If (LEqual (\_SB.PCI0.DOCK.GDID (), 0x4A004D24)) { ICFG () } } } OperationRegion (CBUS, PCI_Config, 0x00, 0x0100) Field (CBUS, DWordAcc, NoLock, Preserve) { Offset (0x44), LGDC, 32, Offset (0x80), SYSC, 32, Offset (0x8C), MULR, 32, RSTS, 8, CCTL, 8, DCTL, 8, DIAG, 8 } Method (ICFG, 0, NotSerialized) { Store (RPCI (Or (0x80000019, ShiftRight (0x00040000, 0x05))), Local0) Or (0x80000000, ShiftLeft (Local0, 0x10), Local0) Or (Local0, ShiftRight (_ADR, 0x05), Local0) Or (Local0, ShiftLeft (And (_ADR, 0x07), 0x08), Local0) \WPCI (Or (Local0, 0x0C), 0x08) \WPCI (Or (Local0, 0x0D), 0xA8) \WPCI (Or (Local0, 0x1B), 0x80) Or (And (LGDC, 0x00), 0x00, LGDC) Or (And (SYSC, 0x00FFFF00), 0x2864C077, SYSC) Or (And (MULR, 0x00), 0x1002, MULR) Or (And (RSTS, 0x00), 0xC0, RSTS) Or (And (CCTL, 0x7B), 0x02, CCTL) Or (And (DCTL, 0x00), 0x66, DCTL) Or (And (DIAG, 0x1E), 0x40, DIAG) } } Device (CBS3) { Name (_ADR, 0x00020001) Method (_STA, 0, NotSerialized) { If (LEqual (\_SB.PCI0.DOCK.GDID (), 0x4A004D24)) { Return (0x0F) } Else { Return (0x00) } } Method (DREG, 2, NotSerialized) { If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, 0x01))) { If (LEqual (\_SB.PCI0.DOCK.GDID (), 0x4A004D24)) { ICFG () } } } OperationRegion (CBUS, PCI_Config, 0x00, 0x0100) Field (CBUS, DWordAcc, NoLock, Preserve) { Offset (0x44), LGDC, 32, Offset (0x80), SYSC, 32, Offset (0x8C), MULR, 32, RSTS, 8, CCTL, 8, DCTL, 8, DIAG, 8 } Method (ICFG, 0, NotSerialized) { Store (RPCI (Or (0x80000019, ShiftRight (0x00040000, 0x05))), Local0) Or (0x80000000, ShiftLeft (Local0, 0x10), Local0) Or (Local0, ShiftRight (_ADR, 0x05), Local0) Or (Local0, ShiftLeft (And (_ADR, 0x07), 0x08), Local0) \WPCI (Or (Local0, 0x0C), 0x08) \WPCI (Or (Local0, 0x0D), 0xA8) \WPCI (Or (Local0, 0x1B), 0x80) Or (And (LGDC, 0x00), 0x00, LGDC) Or (And (SYSC, 0x00FFFF00), 0x2864C077, SYSC) Or (And (MULR, 0x00), 0x1002, MULR) Or (And (RSTS, 0x00), 0xC0, RSTS) Or (And (CCTL, 0x7B), 0x02, CCTL) Or (And (DCTL, 0x00), 0x66, DCTL) Or (And (DIAG, 0x1E), 0x40, DIAG) } } } } Scope (\_SB.PCI0.ISA.EC) { Name (BDEV, 0x00) Name (BSTS, 0x00) Name (BHKE, 0x00) Name (BXCN, 0x00) Method (_Q2C, 0, NotSerialized) { If (LEqual (BSTS, 0x00)) { Store (GUID (), BDEV) If (BXCN) { NXRE (BDEV) } Else { NBRE (BDEV) } } } Method (_Q2D, 0, NotSerialized) { Store (GUID (), BDEV) If (BXCN) { NXRC (BDEV) } Else { NBIN (BDEV) } } Method (_Q38, 0, NotSerialized) { Store (GUID (), Local0) If (LAnd (BDEV, LNot (LEqual (Local0, BDEV)))) { If (LEqual (Local0, 0x0F)) { BDIS () If (BXCN) { Store (BDEV, Local0) Store (0x0F, BDEV) NXEJ (Local0) } Else { NBEJ (BDEV) Store (Local0, BDEV) } } Else { If (HPBU) { If (BXCN) { Store (Local0, BDEV) NXIN (Local0) } } Else { Store (Local0, BDEV) If (BXCN) { NXRC (Local0) } Else { NBIN (Local0) } } } } } Method (NBRE, 1, NotSerialized) { If (LEqual (Arg0, 0x0D)) { Notify (\_SB.PCI0.ISA.FDC.FDD0, 0x03) } If (LLess (Arg0, 0x0C)) { Notify (\_SB.PCI0.IDE0.SCND.MSTR, 0x03) } If (LEqual (Arg0, 0x10)) { If (LOr (HPAC, HB0A)) { If (\WNTF) { Notify (\_SB.PCI0.ISA.EC.BAT1, 0x03) } } Else { BLED (0x02, 0x01) BEEP (0x0F) Store (0x02, BSTS) } } } Method (NBEJ, 1, NotSerialized) { If (LEqual (BSTS, 0x00)) { If (LEqual (Arg0, 0x0D)) { Notify (\_SB.PCI0.ISA.FDC.FDD0, 0x01) } If (LLess (Arg0, 0x0C)) { Notify (\_SB.PCI0.IDE0.SCND.MSTR, 0x01) } If (LEqual (Arg0, 0x10)) { If (\WNTF) { Notify (\_SB.PCI0.ISA.EC.BAT1, 0x01) } Else { Notify (\_SB.PCI0.ISA.EC.BAT1, 0x81) } } } BLED (0x00, 0x00) BEEP (0x00) Store (0x00, BSTS) } Method (NBIN, 1, NotSerialized) { If (LEqual (Arg0, 0x0D)) { BEN (0x00) \SFDD (0x00) BLED (0x02, 0x00) Notify (\_SB.PCI0.ISA.FDC.FDD0, 0x01) } If (LLess (Arg0, 0x0C)) { If (LEqual (Arg0, 0x06)) { BEN (0x02) } Else { BEN (0x01) } BLED (0x02, 0x00) Notify (\_SB.PCI0.IDE0.SCND.MSTR, 0x01) } If (LEqual (Arg0, 0x10)) { BLED (0x02, 0x00) If (\WNTF) { Store (0x01, \_SB.PCI0.ISA.EC.BAT1.XB1S) Notify (\_SB.PCI0.ISA.EC.BAT1, 0x01) } Else { Notify (\_SB.PCI0.ISA.EC.BAT1, 0x81) } } BEEP (0x00) Store (0x00, BSTS) } Method (BEJ0, 1, NotSerialized) { If (Arg0) { BDIS () BLED (0x00, 0x00) \BHDP (0x00) Store (0x01, BSTS) If (BHKE) { Store (0x00, BHKE) \_SB.PCI0.ISA.EC.HKEY.MHKQ (0x3003) } } Else { BLED (0x02, 0x00) Store (0x00, BSTS) } } Method (BEJ3, 1, NotSerialized) { If (Arg0) { Store (0x83, BF_Z) Store (0x83, BF_D) Store (0x83, BZIP) Store (0x83, BDVD) Store (0x83, BHFD) Store (0x83, BF_H) Store (0x83, BHDD) Store (0x83, BLS) Store (0x83, BF_C) Store (0x83, BCRW) Store (0x83, BCD) Store (0x83, BFDD) BDIS () Store (0x01, BSTS) } Else { Store (0x81, BF_Z) Store (0x81, BF_D) Store (0x81, BZIP) Store (0x81, BDVD) Store (0x81, BHFD) Store (0x81, BF_H) Store (0x81, BHDD) Store (0x81, BLS) Store (0x81, BF_C) Store (0x81, BCRW) Store (0x81, BCD) Store (0x81, BFDD) Store (0x00, BSTS) } } Method (BPTS, 1, NotSerialized) { If (LOr (LEqual (Arg0, 0x00), LNot (LLess (Arg0, 0x05)))) {} Else { If (LNot (LEqual (BSTS, 0x00))) { Store (0x0F, BDEV) Store (0x00, BSTS) } Store (0x00, BHKE) If (LNot (LEqual (BDEV, 0x0F))) { BLDT (0x00) BUWK (0x01) } Else { BLDT (0x01) BUWK (0x00) } } } Method (BWAK, 1, NotSerialized) { If (LOr (LEqual (Arg0, 0x00), LNot (LLess (Arg0, 0x05)))) {} Else { BUWK (0x00) Store (GUID (), Local0) If (LGreater (Local0, 0x0E)) { BDIS () } \_SB.PCI0.ISA.FDC._INI () If (LNot (LEqual (Local0, 0x0D))) { If (LEqual (\_SB.PCI0.ISA.FDC.FD0S, \_SB.PCI0.ISA.EC.HPNF)) { Notify (\_SB.PCI0.ISA.FDC.FDD0, 0x01) } } If (LEqual (BSTS, 0x00)) { If (LNot (LEqual (Local0, BDEV))) { If (BXCN) { Store (Local0, BDEV) NXRC (Local0) } Else { NBEJ (BDEV) Store (Local0, BDEV) NBIN (Local0) } } Else { If (LNot (LEqual (Local0, 0x0F))) { BLED (0x02, 0x00) If (HPBU) { Or (ShiftLeft (Arg0, 0x08), 0x2005, BHKE) \_SB.PCI0.ISA.EC.HKEY.MHKQ (BHKE) If (LNot (LGreater (Arg0, 0x02))) {} Else { If (BXCN) { NXRE (Local0) } Else { NBRE (Local0) } } } } } } } } Method (BDIS, 0, NotSerialized) { \SFDD (0x01) Store (0x00, \_SB.PCI0.IDE0.XSI0) Store (0x01, \_SB.PCI0.ISA.GCRC) Store (0x01, \_SB.PCI0.PM00.ULON) Store (0x01, \_SB.PCI0.PM00.CSON) } Method (BEN, 1, NotSerialized) { If (LNot (LOr (\_SB.PCI0.PM00.ULON, \_SB.PCI0.PM00.CSON))) { Return (0x00) } If (Arg0) { Store (0x00, \_SB.PCI0.IDE0.XSE) Stall (0x05) } Store (0x00, \_SB.PCI0.PM00.URST) Store (0x00, \_SB.PCI0.PM00.ULON) Store (0x00, \_SB.PCI0.PM00.CSON) Sleep (0x0F) If (Arg0) { Store (0x00, \_SB.PCI0.ISA.GCRC) Store (0x01, \_SB.PCI0.IDE0.XSE) Stall (0x2D) } Store (0x01, \_SB.PCI0.PM00.URST) Sleep (0x14) If (Arg0) { Sleep (0x0190) If (LEqual (Arg0, 0x02)) { Sleep (0x07D0) } } } Method (BSTA, 1, NotSerialized) { If (\_SB.PCI0.PM00.CSON) { Return (0x00) } Store (GUID (), Local0) If (LEqual (Arg0, 0x00)) { Return (LEqual (Local0, 0x0D)) } If (LEqual (Arg0, 0x01)) { Return (LLess (Local0, 0x0D)) } Return (0x00) } Method (BLED, 2, NotSerialized) { If (\H8DR) { Acquire (LEDM, 0xFFFF) Store (0x18, HLMS) If (Arg1) { Store (0x18, HLBL) } Else { Store (0x00, HLBL) } If (LEqual (Arg0, 0x00)) { Store (0x00, HLCL) } Else { If (LEqual (Arg0, 0x01)) { Store (0x08, HLCL) } Else { If (LEqual (Arg0, 0x02)) { Store (0x10, HLCL) } Else { } } } Sleep (0x0A) Release (LEDM) } } Name (BF_Z, 0x83) Name (BF_D, 0x83) Name (BZIP, 0x83) Name (BDVD, 0x83) Name (BHFD, 0x83) Name (BF_H, 0x83) Name (BHDD, 0x83) Name (BADP, 0x00) Name (BLS, 0x83) Name (BF_C, 0x83) Name (BCRW, 0x83) Name (BCD, 0x83) Name (BR01, 0x00) Name (BFDD, 0x83) Name (BIMP, 0x00) Name (BNON, 0x83) Method (BLDT, 1, NotSerialized) { AI2C () If (Arg0) { Store (BF_Z, HF_Z) Store (BF_D, HF_D) Store (BZIP, HZIP) Store (BDVD, HDVD) Store (BHFD, HHFD) Store (BF_H, HF_H) Store (BHDD, HHDD) Store (BADP, HADP) Store (BLS, HLS) Store (BF_C, HF_C) Store (BCRW, HCRW) Store (BCD, HCD) Store (BR01, HR01) Store (BFDD, HFDD) Store (BIMP, HIMP) Store (BNON, HNON) } Else { Store (0x81, HF_Z) Store (0x81, HF_D) Store (0x81, HZIP) Store (0x81, HDVD) Store (0x81, HHFD) Store (0x81, HF_H) Store (0x81, HHDD) Store (0x00, HADP) Store (0x81, HLS) Store (0x81, HF_C) Store (0x81, HCRW) Store (0x81, HCD) Store (0x00, HR01) Store (0x81, HFDD) Store (0x00, HIMP) Store (0x81, HNON) } Store (I2WB (Zero, 0x01, 0x09, 0x10), Local7) RI2C () If (Local7) { Fatal (0x01, 0x80000003, Local7) } } Method (BUWK, 1, NotSerialized) { If (\H8DR) { If (Arg0) { Store (0x01, \_SB.PCI0.ISA.EC.HWBU) } Else { Store (0x00, \_SB.PCI0.ISA.EC.HWBU) } } Else { If (Arg0) { \MBEC (0x32, 0xFF, 0x80) } Else { \MBEC (0x32, 0x7F, 0x00) } } } Method (NXRE, 1, NotSerialized) { If (LEqual (Arg0, 0x0F)) { BLED (0x00, 0x00) Store (0x00, BSTS) } If (LEqual (Arg0, 0x0D)) { BLED (0x02, 0x01) Notify (\_SB.SWAP, 0x83) } If (LLess (Arg0, 0x0C)) { BLED (0x02, 0x01) Notify (\_SB.SWAP, 0x83) } If (LEqual (Arg0, 0x10)) { If (LOr (HPAC, HB0A)) { BLED (0x02, 0x01) Notify (\_SB.SWAP, 0x83) } Else { BLED (0x02, 0x01) BEEP (0x0F) Store (0x02, BSTS) } } } Method (NXRC, 1, NotSerialized) { If (LEqual (Arg0, 0x0D)) { BLED (0x02, 0x00) BEN (0x00) \SFDD (0x00) Notify (\_SB.SWAP, 0x80) } If (LLess (Arg0, 0x0C)) { BLED (0x02, 0x00) If (LEqual (Arg0, 0x06)) { BEN (0x02) } Else { BEN (0x01) } Notify (\_SB.SWAP, 0x80) } If (LEqual (Arg0, 0x10)) { Notify (\_SB.PCI0.ISA.EC.BAT1, 0x81) BLED (0x02, 0x00) Notify (\_SB.SWAP, 0x80) } BEEP (0x00) Store (0x00, BSTS) } Method (NXEJ, 1, NotSerialized) { If (LEqual (Arg0, 0x10)) { Notify (\_SB.PCI0.ISA.EC.BAT1, 0x81) } Notify (\_SB.SWAP, 0x82) BLED (0x00, 0x00) BEEP (0x00) Store (0x00, BSTS) } Method (NXIN, 1, NotSerialized) { Notify (\_SB.SWAP, 0x81) } } Scope (\_SB) { Device (SWAP) { Name (_HID, EisaId ("IBM0069")) Method (_STA, 0, NotSerialized) { If (\WMEF) { Return (0x0F) } Else { Return (0x00) } } Method (XCNN, 1, NotSerialized) { Store (Arg0, \_SB.PCI0.ISA.EC.BXCN) Return (0x09) } Method (XSWP, 0, NotSerialized) { Return (0x01) } Method (XEJ0, 1, NotSerialized) { Store (0x00, \_SB.PCI0.ISA.EC.BAT1.B1ST) \_SB.PCI0.ISA.EC.BEJ0 (Arg0) } Method (XEJ3, 1, NotSerialized) { Store (0x00, \_SB.PCI0.ISA.EC.BAT1.B1ST) \_SB.PCI0.ISA.EC.BEJ3 (Arg0) } Method (XDID, 0, NotSerialized) { Name (XPCK, Package (0x06) { 0x00, 0x00, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00 }) Store (\_SB.PCI0.ISA.EC.BDEV, Local0) Store (Local0, Index (XPCK, 0x00)) If (LLess (Local0, 0x0C)) { Store (\_SB.PCI0.IDE0._ADR, Index (XPCK, 0x02)) Store (\_SB.PCI0.IDE0.SCND._ADR, Index (XPCK, 0x03)) Store (\_SB.PCI0.IDE0.SCND.MSTR._ADR, Index (XPCK, 0x04)) } If (LEqual (Local0, 0x0D)) { Store (\_SB.PCI0.ISA.FDC._HID, Index (XPCK, 0x02)) Store (\_SB.PCI0.ISA.FDC.FDD0._ADR, Index (XPCK, 0x04)) } If (LEqual (Local0, 0x10)) { Store (\_SB.PCI0.ISA.EC.BAT1._HID, Index (XPCK, 0x02)) Store (\_SB.PCI0.ISA.EC.BAT1._UID, Index (XPCK, 0x04)) } Store (XOr (\_SB.PCI0.PM00.CSON, 0x01), Index (XPCK, 0x05)) Return (XPCK) } Method (XSTM, 1, NotSerialized) { Name (XDMY, Buffer (0x14) {}) \_SB.PCI0.IDE0.SCND._STM (XDMY, Arg0, 0x00) } Method (XGTF, 0, NotSerialized) { Return (\_SB.PCI0.IDE0.SCND.MSTR._GTF ()) } } } Scope (\_SB.PCI0.IDE0.SCND.MSTR) { Method (_EJ0, 1, NotSerialized) { \_SB.PCI0.ISA.EC.BEJ0 (Arg0) } Method (_STA, 0, NotSerialized) { If (\_SB.PCI0.ISA.EC.BSTA (0x01)) { Return (0x0F) } Else { Return (0x00) } } } Scope (\_SB.PCI0.ISA.FDC) { Method (_INI, 0, NotSerialized) { Store (0x00, \_SB.PCI0.ISA.FDC.XFDS) If (\H8DR) { Or (\_SB.PCI0.ISA.EC.HAMA, 0x0C, \_SB.PCI0.ISA.EC.HAMA) } Else { \MBEC (0x1A, 0xFF, 0x0C) } } Name (FDEB, Buffer (0x14) { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }) CreateByteField (FDEB, 0x00, FD0S) Name (XFDS, 0x00) Name (DCFD, 0x00) Method (_FDE, 0, NotSerialized) { If (LOr (\_SB.PCI0.ISA.EC.BSTA (0x00), DCFD)) { Store (0x01, FD0S) } Else { If (LOr (\_SB.PCI0.ISA.EC.HPNF, XFDS)) { Store (0x00, FD0S) } Else { Store (0x01, FD0S) } } Return (FDEB) } Device (FDD0) { Name (_ADR, 0x00) Name (_EJD, "_SB.PCI0.DOCK") Method (_EJ0, 1, NotSerialized) { If (\_SB.PCI0.ISA.EC.BSTA (0x00)) { \_SB.PCI0.ISA.EC.BEJ0 (Arg0) } Else { If (DCFD) {} Else { Store (0x01, XFDS) } } } Name (_FDI, Package (0x10) { 0x00, 0x04, 0x4F, 0x12, 0x01, 0xDF, 0x02, 0x25, 0x02, 0x12, 0x1B, 0xFF, 0x6C, 0xF6, 0x0F, 0x05 }) } } Scope (\_SB.PCI0.ISA.EC) { Method (_Q52, 0, NotSerialized) { If (\_SB.PCI0.ISA.FDC.XFDS) { Store (0x00, \_SB.PCI0.ISA.FDC.XFDS) } Else { If (LOr (\_SB.PCI0.ISA.EC.BSTA (0x00), \_SB.PCI0.ISA.FDC.DCFD)) {} Else { Notify (\_SB.PCI0.ISA.FDC.FDD0, 0x01) } } } Method (_Q53, 0, NotSerialized) { Store (0x00, \_SB.PCI0.ISA.FDC.XFDS) If (LOr (\_SB.PCI0.ISA.EC.BSTA (0x00), \_SB.PCI0.ISA.FDC.DCFD)) {} Else { Notify (\_SB.PCI0.ISA.FDC.FDD0, 0x01) } } } Scope (\_SB.PCI0.ISA.EC.BAT1) { Method (_EJ0, 1, NotSerialized) { Store (0x00, B1ST) Store (0x00, XB1S) \_SB.PCI0.ISA.EC.BEJ0 (Arg0) } } Scope (\_SB.PCI0.ISA.EC) { Method (_Q1C, 0, NotSerialized) { \VOLD () } Method (_Q1D, 0, NotSerialized) { \VOLU () } Method (_Q1E, 0, NotSerialized) { \VOLM () } } Scope (\_SB.PCI0.ISA.EC) { Method (_Q14, 0, NotSerialized) { \BRIU () } Method (_Q15, 0, NotSerialized) { \BRID () } } Scope (\_SB.PCI0.ISA.EC) { Method (_Q19, 0, NotSerialized) { \TPKY () } } Scope (\_SB.PCI0.ISA.EC.HKEY) { Name (BTID, 0x00) Name (BTFG, 0x00) Method (GULP, 0, NotSerialized) { Store (0x00, Local0) If (LEqual (BTID, 0x01)) { Or (Local0, 0x01, Local0) } If (PWRS ()) { Or (Local0, 0x02, Local0) } If (And (BTFG, 0x01)) { Or (Local0, 0x04, Local0) } Return (Local0) } Method (SULP, 1, NotSerialized) { If (And (Arg0, 0x02)) { PWRC (0x01) } Else { PWRC (0x00) } If (And (Arg0, 0x04)) { Or (BTFG, 0x01, BTFG) \GBTH (0x02) } Else { And (BTFG, Not (0x01), BTFG) \GBTH (0x03) } Return (GULP ()) } Method (BTIN, 0, NotSerialized) { Store (\GBTH (0x00), BTID) If (\GBTH (0x01)) { Or (BTFG, 0x01, BTFG) } ATCH (0x01) PBTN (0x01) MODE (0x01) } Method (BTPS, 1, NotSerialized) { PBTN (0x00) If (LEqual (BTID, 0x01)) { If (LNot (And (BTFG, 0x01))) { PWRC (0x00) } } If (PWRS ()) { Or (BTFG, 0x02, BTFG) } Else { And (BTFG, Not (0x02), BTFG) } } Method (BTWK, 1, NotSerialized) { PBTN (0x01) If (And (BTFG, 0x02)) { PWRC (0x01) } } Method (PWRC, 1, NotSerialized) { If (Arg0) { If (\H8DR) { Store (One, \_SB.PCI0.ISA.EC.BTPW) } Else { \MBEC (0x3B, 0xFF, 0x04) } } Else { If (\H8DR) { Store (Zero, \_SB.PCI0.ISA.EC.BTPW) } Else { \MBEC (0x3B, 0xFB, 0x00) } } } Method (ATCH, 1, NotSerialized) { If (Arg0) { If (\H8DR) { Store (Zero, \_SB.PCI0.ISA.EC.BTDT) } Else { \MBEC (0x3B, 0xF7, 0x00) } } Else { If (\H8DR) { Store (One, \_SB.PCI0.ISA.EC.BTDT) } Else { \MBEC (0x3B, 0xFF, 0x08) } } } Method (MODE, 1, NotSerialized) { If (Arg0) { If (\H8DR) { Store (One, \_SB.PCI0.ISA.EC.BTCM) } Else { \MBEC (0x01, 0xFF, 0x02) } } Else { If (\H8DR) { Store (Zero, \_SB.PCI0.ISA.EC.BTCM) } Else { \MBEC (0x01, 0xFD, 0x00) } } } Method (PBTN, 1, NotSerialized) { If (Arg0) { If (\H8DR) { Store (One, \_SB.PCI0.ISA.EC.BTPC) } Else { \MBEC (0x01, 0xFF, 0x40) } } Else { If (\H8DR) { Store (Zero, \_SB.PCI0.ISA.EC.BTPC) } Else { \MBEC (0x01, 0xBF, 0x00) } } } Method (PWRS, 0, NotSerialized) { If (\H8DR) { Store (\_SB.PCI0.ISA.EC.BTPW, Local0) } Else { Store (ShiftRight (And (\RBEC (0x3B), 0x04), 0x02), Local0) } Return (Local0) } Method (ATCS, 0, NotSerialized) { If (\H8DR) { Store (\_SB.PCI0.ISA.EC.BTDT, Local0) } Else { Store (ShiftRight (And (\RBEC (0x3B), 0x08), 0x03), Local0) } XOr (Local0, 0x01, Local0) Return (Local0) } Method (WAKS, 0, NotSerialized) { If (\H8DR) { Store (\_SB.PCI0.ISA.EC.BTWK, Local0) } Else { Store (ShiftRight (And (\RBEC (0x36), 0x02), 0x01), Local0) } Return (Local0) } Method (BTAT, 2, NotSerialized) { Store (0x00, Local0) If (LEqual (Arg0, 0x00)) { If (LEqual (Arg1, 0x01)) { If (\H8DR) { Or (\_SB.PCI0.ISA.EC.HAMA, 0x10, \_SB.PCI0.ISA.EC.HAMA) } Else { \MBEC (0x1A, 0xFF, 0x10) } } If (LEqual (Arg1, 0x00)) { If (\H8DR) { And (\_SB.PCI0.ISA.EC.HAMA, 0xEF, \_SB.PCI0.ISA.EC.HAMA) } Else { \MBEC (0x1A, 0xEF, 0x00) } } If (LEqual (Arg1, 0x02)) { If (\H8DR) { If (And (\_SB.PCI0.ISA.EC.HAMA, 0x10)) { Store (0x01, Local0) } } Else { If (And (\RBEC (0x1A), 0x10)) { Store (0x01, Local0) } } } } If (LEqual (Arg0, 0x01)) { If (LEqual (Arg1, 0x01)) { If (\H8DR) { Or (\_SB.PCI0.ISA.EC.HAMA, 0x20, \_SB.PCI0.ISA.EC.HAMA) } Else { \MBEC (0x1A, 0xFF, 0x20) } } If (LEqual (Arg1, 0x00)) { If (\H8DR) { And (\_SB.PCI0.ISA.EC.HAMA, 0xDF, \_SB.PCI0.ISA.EC.HAMA) } Else { \MBEC (0x1A, 0xDF, 0x00) } } If (LEqual (Arg1, 0x02)) { If (\H8DR) { If (And (\_SB.PCI0.ISA.EC.HAMA, 0x20)) { Store (0x01, Local0) } } Else { If (And (\RBEC (0x1A), 0x20)) { Store (0x01, Local0) } } } } Return (Local0) } } } Name (\_S0, Package (0x04) { 0x05, 0x05, 0x00, 0x00 }) Name (\_S1, Package (0x04) { 0x04, 0x04, 0x00, 0x00 }) Name (\_S3, Package (0x04) { 0x01, 0x01, 0x00, 0x00 }) Name (\_S4, Package (0x04) { 0x07, 0x07, 0x00, 0x00 }) Name (\_S5, Package (0x04) { 0x07, 0x07, 0x00, 0x00 }) Method (\_PTS, 1, NotSerialized) { If (LEqual (Arg0, \SPS)) { Store (0x00, Local0) } Else { If (LOr (LEqual (Arg0, 0x00), LNot (LLess (Arg0, 0x06)))) { Store (0x00, Local0) } Else { Store (0x01, Local0) } } If (Local0) { Store (Arg0, \SPS) \_SB.PCI0.ISA.EC.HKEY.MHKE (0x00) \_SB.PCI0.ISA.EC.EVNT (0x00) If (\_SB.PCI0.ISA.EC.KBLT) { \LGHT (0x00) } If (LEqual (Arg0, 0x01)) { Store (0x01, \_SB.PCI0.PM00.BLEN) Store (0x00, \_SB.PCI0.ISA.EC.HCAC) Or (\_SB.PCI0.ISA.ACI, 0x01, \_SB.PCI0.ISA.ACI) Store (\_SB.PCI0.ISA.EC.HFNI, \FNID) Store (0x00, \_SB.PCI0.ISA.EC.HFNI) } If (LEqual (Arg0, 0x02)) { Store (One, \_SB.PCI0.PM00.BLEN) Store (One, \_SB.PCI0.CREN) } If (LEqual (Arg0, 0x03)) { \VVPD () Store (One, \_SB.PCI0.PM00.BLEN) } If (LEqual (Arg0, 0x04)) { \WOLP () \TRAP (0x04, 0x01) } If (LEqual (Arg0, 0x05)) { \TRAP (0x05, 0x01) } If (LNot (LEqual (Arg0, 0x05))) { Store (One, \_SB.PCI0.ISA.EC.HCMU) Store (0x00, \_SB.PCI0.ISA.EC.HFSP) \_SB.PCI0.DOCK.DPTS (Arg0) \_SB.PCI0.ISA.EC.BPTS (Arg0) } \_SB.PCI0.ISA.EC.HKEY.BTPS (Arg0) } } Name (WAKI, Package (0x02) { 0x00, 0x00 }) Method (\_WAK, 1, NotSerialized) { If (LOr (LEqual (Arg0, 0x00), LNot (LLess (Arg0, 0x05)))) { Return (WAKI) } Store (Zero, \SPS) Store (Zero, \_SB.PCI0.PM00.BLEN) Store (Zero, \_SB.PCI0.CREN) Store (Zero, \_SB.PCI0.ISA.EC.HCMU) Store (0x80, \_SB.PCI0.ISA.EC.HFSP) \_SB.PCI0.ISA.EC.EVNT (0x01) \_SB.PCI0.ISA.EC.HKEY.MHKE (0x01) If (LEqual (Arg0, 0x01)) { And (\_SB.PCI0.ISA.ACI, 0xFE, \_SB.PCI0.ISA.ACI) Store (0x01, \_SB.PCI0.ISA.EC.HCAC) Store (\_SB.PCI0.ISA.EC.HFNI, \FNID) } If (LEqual (Arg0, 0x02)) {} If (LEqual (Arg0, 0x03)) {} If (LEqual (Arg0, 0x04)) { If (\W98F) { Notify (\_SB.SLPB, 0x02) } If (\WMEF) { \_SB.PCI0.ISA.EC.BEEP (0x05) } If (LNot (\W98F)) { Store (0x00, \_SB.PCI0.ISA.EC.HSPA) } } \_SB.PCI0.DOCK.DWAK (Arg0) \_SB.PCI0.ISA.EC.BWAK (Arg0) \_SB.PCI0.ISA.EC.HKEY.BTWK (Arg0) Notify (\_TZ.THM0, 0x80) \VNRS (0x01) \VSLD (\_SB.LID._LID ()) If (LAnd (\W98F, LNot (\WMEF))) { Notify (\_SB.PCI0.USB, 0x01) } If (LLess (Arg0, 0x04)) { If (LOr (And (\_SB.PCI0.ISA.EC.CP4E, 0x02), And (\RRBF, 0x02))) { ShiftLeft (Arg0, 0x08, Local0) Store (Or (0x2013, Local0), Local0) \_SB.PCI0.ISA.EC.HKEY.MHKQ (Local0) } } Store (Zero, \RRBF) Return (WAKI) } Scope (\_SI) { Method (_SST, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { \_SB.PCI0.ISA.EC.SYSL (0x00, 0x00) \_SB.PCI0.ISA.EC.SYSL (0x01, 0x00) } If (LEqual (Arg0, 0x01)) { If (LOr (\SPS, \WNTF)) { \_SB.PCI0.ISA.EC.BEEP (0x05) } \_SB.PCI0.ISA.EC.SYSL (0x00, 0x01) \_SB.PCI0.ISA.EC.SYSL (0x01, 0x00) } If (LEqual (Arg0, 0x02)) { \_SB.PCI0.ISA.EC.SYSL (0x00, 0x01) \_SB.PCI0.ISA.EC.SYSL (0x01, 0x02) } If (LEqual (Arg0, 0x03)) { If (LGreater (\SPS, 0x03)) { \_SB.PCI0.ISA.EC.BEEP (0x07) } Else { If (LEqual (\SPS, 0x03)) { \_SB.PCI0.ISA.EC.BEEP (0x03) } Else { \_SB.PCI0.ISA.EC.BEEP (0x04) } } If (LEqual (\SPS, 0x03)) { \_SB.PCI0.ISA.EC.SYSL (0x00, 0x00) } Else { \_SB.PCI0.ISA.EC.SYSL (0x00, 0x01) } \_SB.PCI0.ISA.EC.SYSL (0x01, 0x01) } If (LEqual (Arg0, 0x04)) { \_SB.PCI0.ISA.EC.BEEP (0x03) \_SB.PCI0.ISA.EC.SYSL (0x01, 0x02) } } } Scope (\_GPE) { Method (_L0B, 0, NotSerialized) { Store (\_SB.PCI0.ISA.EC.HWAK, Local0) Sleep (0x0A) Store (Local0, \RRBF) If (And (Local0, 0x01)) { If (And (\_SB.PCI0.PMEE, 0x01)) { Notify (\_SB.PCI0, 0x02) } If (And (\_SB.PCI0.PMEE, 0x02)) { Notify (\_SB.PCI0.DOCK, 0x02) } } If (And (Local0, 0x02)) {} If (And (Local0, 0x04)) { If (\W98F) { Notify (\_SB.SLPB, 0x02) } Else { Notify (\_SB.LID, 0x02) } } If (And (Local0, 0x08)) { \_SB.PCI0.DOCK.DGPE () Notify (\_SB.SLPB, 0x02) } If (And (Local0, 0x10)) { Notify (\_SB.SLPB, 0x02) } If (And (Local0, 0x40)) { Notify (\_SB.PCI0.ISA.UART, 0x02) } If (And (Local0, 0x80)) { Notify (\_SB.SLPB, 0x02) } } } Scope (\_TZ) { ThermalZone (THM0) { Name (_CRT, 0x0E76) Name (_PSL, Package (0x01) { \_PR.CPU }) Name (_PSV, 0x0E3F) Name (_TC1, 0x05) Name (_TC2, 0x02) Name (_TSP, 0x0258) Method (_TMP, 0, NotSerialized) { If (\H8DR) { Store (\_SB.PCI0.ISA.EC.TMP0, Local0) } Else { Store (\RBEC (0x78), Local0) } Return (C2K (Local0)) } } Method (C2K, 1, NotSerialized) { Add (Multiply (Arg0, 0x0A), 0x0AAC, Local0) If (LNot (LGreater (Local0, 0x0AAC))) { Store (0x0BB8, Local0) } If (LNot (LLess (Local0, 0x0FAC))) { Store (0x0BB8, Local0) } Return (Local0) } } Scope (\_SB.PCI0.ISA.EC) { Method (_Q40, 0, NotSerialized) { Notify (\_TZ.THM0, 0x80) } } OperationRegion (MNVS, SystemMemory, 0x0FFFF000, 0x1000) Field (MNVS, DWordAcc, NoLock, Preserve) { Offset (0xF00), HDHD, 8, HDSE, 8, Offset (0xF03), Offset (0xF04), Offset (0xF08), Offset (0xF0C), Offset (0xF10), VCDL, 1, VCDC, 1, VCDT, 1, VCDD, 1, , 1, VCSS, 1, VCDB, 1, VCIN, 1, Offset (0xF12), VLID, 4, Offset (0xF14) } Field (MNVS, ByteAcc, NoLock, Preserve) { Offset (0xE00), DDC1, 1024, Offset (0xF00) } Field (MNVS, ByteAcc, NoLock, Preserve) { Offset (0xE00), DDC2, 2048 } OperationRegion (SMI0, SystemIO, 0xFE00, 0x02) Field (SMI0, ByteAcc, NoLock, Preserve) { APMC, 8 } Field (MNVS, AnyAcc, NoLock, Preserve) { Offset (0xFC0), CMD, 8, ERR, 32, PAR0, 32, PAR1, 32, PAR2, 32, PAR3, 32 } Mutex (MSMI, 0x07) Method (SMI, 5, NotSerialized) { Acquire (MSMI, 0xFFFF) Store (Arg0, CMD) Store (Arg1, PAR0) Store (Arg2, PAR1) Store (Arg3, PAR2) Store (Arg4, PAR3) Store (0x00, APMC) While (LEqual (ERR, 0x01)) { Sleep (0x64) Store (0x00, APMC) } Store (PAR0, Local0) Release (MSMI) Return (Local0) } Method (RPCI, 1, NotSerialized) { Return (SMI (0x80, 0x00, Arg0, 0x00, 0x00)) } Method (WPCI, 2, NotSerialized) { SMI (0x80, 0x01, Arg0, Arg1, 0x00) } Method (MPCI, 3, NotSerialized) { SMI (0x80, 0x02, Arg0, Arg1, Arg2) } Method (RBEC, 1, NotSerialized) { Return (SMI (0x81, 0x00, Arg0, 0x00, 0x00)) } Method (WBEC, 2, NotSerialized) { SMI (0x81, 0x01, Arg0, Arg1, 0x00) } Method (MBEC, 3, NotSerialized) { SMI (0x81, 0x02, Arg0, Arg1, Arg2) } Method (TRAP, 2, NotSerialized) { SMI (0x82, Arg0, Arg1, 0x00, 0x00) } Method (FERR, 0, NotSerialized) { SMI (0x83, 0x00, 0x00, 0x00, 0x00) } Method (GFDD, 0, NotSerialized) { Return (SMI (0x84, 0x00, 0x00, 0x00, 0x00)) } Method (SFDD, 1, NotSerialized) { SMI (0x84, 0x01, Arg0, 0x00, 0x00) } Method (DHDP, 1, NotSerialized) { Return (SMI (0x85, Arg0, 0x00, 0x00, 0x00)) } Method (VOLU, 0, NotSerialized) { SMI (0x86, 0x00, 0x00, 0x00, 0x00) } Method (VOLD, 0, NotSerialized) { SMI (0x86, 0x01, 0x00, 0x00, 0x00) } Method (VOLM, 0, NotSerialized) { SMI (0x86, 0x02, 0x00, 0x00, 0x00) } Method (TPKY, 0, NotSerialized) { SMI (0x86, 0x03, 0x00, 0x00, 0x00) } Method (BRIU, 0, NotSerialized) { SMI (0x86, 0x04, 0x00, 0x00, 0x00) } Method (BRID, 0, NotSerialized) { SMI (0x86, 0x05, 0x00, 0x00, 0x00) } Method (SNMB, 0, NotSerialized) { SMI (0x86, 0x06, 0x00, 0x00, 0x00) } Method (SMUT, 0, NotSerialized) { SMI (0x86, 0x07, 0x00, 0x00, 0x00) } Method (ESYB, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { SMI (0x86, 0x03, 0x00, 0x00, 0x00) } Else { SMI (0x86, 0x08, Decrement (Arg0), 0x00, 0x00) } } Method (DSEP, 0, NotSerialized) { SMI (0x86, 0x09, 0x00, 0x00, 0x00) } Method (VEXP, 0, NotSerialized) { SMI (0x87, 0x00, 0x00, 0x00, 0x00) } Method (VUPS, 1, NotSerialized) { SMI (0x88, Arg0, 0x00, 0x00, 0x00) } Method (VSDS, 2, NotSerialized) { SMI (0x89, Arg0, Arg1, 0x00, 0x00) } Method (VDDC, 0, NotSerialized) { SMI (0x8A, 0x00, 0x00, 0x00, 0x00) } Method (VVPD, 0, NotSerialized) { SMI (0x94, 0x00, 0x00, 0x00, 0x00) } Method (GVIL, 1, NotSerialized) { SMI (0x8B, Arg0, 0x00, 0x00, 0x00) } Method (GCHK, 0, NotSerialized) { Return (SMI (0x8B, 0x06, 0x00, 0x00, 0x00)) } Method (LGHT, 1, NotSerialized) { SMI (0x8C, Arg0, 0x00, 0x00, 0x00) } Method (GPAR, 0, NotSerialized) { Return (SMI (0x8D, 0x00, 0x00, 0x00, 0x00)) } Method (GDCK, 1, NotSerialized) { \_SB.PCI0.ISA.EC.AI2C () Store (SMI (0x8E, Arg0, 0x00, 0x00, 0x00), Local0) \_SB.PCI0.ISA.EC.RI2C () Return (Local0) } Method (GGAP, 1, NotSerialized) { Return (SMI (0x8F, Arg0, 0x00, 0x00, 0x00)) } Method (GHKY, 0, NotSerialized) { Store (SMI (0x90, 0x00, 0x00, 0x00, 0x00), Local0) Return (And (ShiftRight (Local0, 0x04), 0x01)) } Method (GCDT, 1, NotSerialized) { Return (SMI (0x91, Arg0, 0x00, 0x00, 0x00)) } Method (GBTH, 1, NotSerialized) { Return (SMI (0x92, Arg0, 0x00, 0x00, 0x00)) } Method (BHDP, 1, NotSerialized) { Return (SMI (0x93, Arg0, 0x00, 0x00, 0x00)) } Method (VNRS, 1, NotSerialized) { Return (SMI (0x95, Arg0, 0x00, 0x00, 0x00)) } Method (GLPW, 0, NotSerialized) { Return (SMI (0x96, 0x00, 0x00, 0x00, 0x00)) } Method (GTPS, 0, NotSerialized) { Return (SMI (0x97, 0x00, 0x00, 0x00, 0x00)) } Method (VSLD, 1, NotSerialized) { Return (SMI (0x99, Arg0, 0x00, 0x00, 0x00)) } Method (CBRI, 0, NotSerialized) { SMI (0x9A, 0x00, 0x00, 0x00, 0x00) } Method (WOLP, 0, NotSerialized) { SMI (0x9B, 0x00, 0x00, 0x00, 0x00) } Method (ECPP, 0, NotSerialized) { SMI (0x9C, 0x00, 0x00, 0x00, 0x00) } Scope (\_SB.PCI0.PM00) { OperationRegion (GPOR, SystemIO, 0x1034, 0x04) Field (GPOR, ByteAcc, NoLock, Preserve) { , 1, Offset (0x01), MSON, 1, , 1, URST, 1, EID2, 1, EID, 2, CSON, 1, , 4, IPDR, 1, , 1, S2DS, 1, , 1, ULON, 1, , 7 } } Name (ICM0, Buffer (0x1C) { 0x02, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xF5, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF }) CreateByteField (ICM0, 0x0F, HDM0) CreateByteField (ICM0, 0x16, HPI0) Name (ICM1, Buffer (0x1C) { 0x02, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xF5, 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF }) CreateByteField (ICM1, 0x0F, HDM1) CreateByteField (ICM1, 0x16, HPI1) Name (ICC1, Buffer (0x0E) { 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF }) CreateByteField (ICC1, 0x01, CDM1) CreateByteField (ICC1, 0x08, CPI1) Name (IDKM, 0x00) Name (ICM2, Buffer (0x1C) { 0x02, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xF5, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF }) CreateByteField (ICM2, 0x0F, HDM2) CreateByteField (ICM2, 0x16, HPI2) Name (ICC2, Buffer (0x0E) { 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF }) CreateByteField (ICC2, 0x01, CDM2) CreateByteField (ICC2, 0x08, CPI2) Name (DCM2, Buffer (0x1C) { 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xE3, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xE3 }) CreateByteField (DCM2, 0x01, DDM2) CreateByteField (DCM2, 0x08, DPI2) CreateByteField (DCM2, 0x0F, DTA2) CreateByteField (DCM2, 0x16, DTF2) Name (IDKS, 0x00) Name (ICM3, Buffer (0x1C) { 0x02, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xF5, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF }) CreateByteField (ICM3, 0x0F, HDM3) CreateByteField (ICM3, 0x16, HPI3) Name (ICC3, Buffer (0x0E) { 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF }) CreateByteField (ICC3, 0x01, CDM3) CreateByteField (ICC3, 0x08, CPI3) Name (BGTM, Buffer (0x14) {}) CreateDWordField (BGTM, 0x00, GTP0) CreateDWordField (BGTM, 0x04, GTD0) CreateDWordField (BGTM, 0x08, GTP1) CreateDWordField (BGTM, 0x0C, GTD1) CreateDWordField (BGTM, 0x10, GTMF) Method (UDMA, 2, NotSerialized) { If (And (Arg0, 0x04)) { If (And (Arg1, 0x10)) { Return (0x05) } Else { If (And (Arg1, 0x08)) { Return (0x04) } Else { If (And (Arg1, 0x04)) { Return (0x03) } Else { If (And (Arg1, 0x02)) { Return (0x02) } Else { If (And (Arg1, 0x01)) { Return (0x01) } Else { Return (0x00) } } } } } } Else { Return (0x00) } } Method (UDMB, 2, NotSerialized) { If (Arg0) { If (LGreater (Arg1, 0x1E)) { If (LGreater (Arg1, 0x2D)) { If (LGreater (Arg1, 0x3C)) { If (LGreater (Arg1, 0x50)) { Return (0x01) } Else { Return (0x02) } } Else { Return (0x03) } } Else { Return (0x04) } } Else { Return (0x05) } } Else { Return (0x00) } } Method (MDMA, 4, NotSerialized) { If (And (Arg0, 0x02)) { If (And (Arg1, 0x04)) { If (LNot (LGreater (Arg3, 0x78))) { Return (0x03) } Else { If (LNot (LGreater (Arg3, 0xB4))) { Return (0x02) } Else { If (LNot (LGreater (Arg3, 0xF0))) { Return (0x01) } Else { Return (0x00) } } } } Else { If (And (Arg1, 0x02)) { If (LNot (LGreater (Arg3, 0xB4))) { Return (0x02) } Else { If (LNot (LGreater (Arg3, 0xF0))) { Return (0x01) } Else { Return (0x00) } } } Else { If (And (Arg2, 0x04)) { If (LNot (LGreater (Arg3, 0xF0))) { Return (0x01) } Else { Return (0x00) } } Else { Return (0x00) } } } } Else { Return (0x00) } } Method (MDMB, 1, NotSerialized) { If (LGreater (Arg0, 0x78)) { If (LGreater (Arg0, 0x96)) { Return (0x01) } Else { Return (0x02) } } Else { Return (0x03) } } Method (MPIO, 4, NotSerialized) { If (And (Arg0, 0x02)) { If (And (Arg1, 0x02)) { If (LNot (LGreater (Arg3, 0x78))) { Return (0x04) } Else { If (LNot (LGreater (Arg3, 0xB4))) { Return (0x03) } Else { If (LNot (LGreater (Arg3, 0xF0))) { Return (0x02) } Else { Return (0x00) } } } } Else { If (And (Arg1, 0x01)) { If (LNot (LGreater (Arg3, 0xB4))) { Return (0x03) } Else { If (LNot (LGreater (Arg3, 0xF0))) { Return (0x02) } Else { Return (0x00) } } } Else { If (LEqual (Arg2, 0x02)) { Return (0x01) } Else { Return (0x00) } } } } Else { If (LEqual (Arg2, 0x02)) { Return (0x01) } Else { Return (0x00) } } } Method (MPIB, 2, NotSerialized) { If (LGreater (Arg1, 0x78)) { If (LGreater (Arg1, 0xB4)) { If (LGreater (Arg1, 0xF0)) { Return (0x00) } Else { If (Arg0) { Return (0x02) } Else { Return (0x01) } } } Else { Return (0x03) } } Else { Return (0x04) } } Method (MPI4, 2, NotSerialized) { If (Arg0) { If (LEqual (Arg0, 0x01)) { Return (0x01) } Else { If (LEqual (Arg0, 0x02)) { Return (0x02) } Else { If (LEqual (Arg1, 0x03)) { Return (0x02) } Else { Return (0x03) } } } } Else { If (LLess (Arg1, 0x02)) { Return (Arg1) } Else { Return (Decrement (Arg1)) } } } Method (MP4B, 1, NotSerialized) { If (LNot (LGreater (Arg0, 0x01))) { Return (Arg0) } Else { Return (Decrement (Arg0)) } } Method (MTIM, 3, NotSerialized) { If (LEqual (Arg0, 0x00)) { Store (0x00, Local5) } Else { If (LEqual (Arg0, 0x01)) { If (LLess (Arg1, 0x02)) { Store (0x01, Local5) } Else { Store (0x03, Local5) } } Else { If (LEqual (Arg0, 0x02)) { Store (0x03, Local5) } Else { Store (0x03, Local5) } } If (LEqual (Arg1, 0x00)) { Or (Local5, 0x08, Local5) } } If (Arg2) { And (Local5, 0xFB, Local5) } Else { Or (Local5, 0x04, Local5) } Return (Local5) } Method (MISP, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Return (0x00) } Else { If (LEqual (Arg0, 0x01)) { Return (0x01) } Else { If (LEqual (Arg0, 0x02)) { Return (0x02) } Else { Return (0x02) } } } } Method (MRTC, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Return (0x00) } Else { If (LEqual (Arg0, 0x01)) { Return (0x00) } Else { If (LEqual (Arg0, 0x02)) { Return (0x01) } Else { Return (0x03) } } } } Method (MUCT, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Return (0x00) } Else { If (LEqual (Arg0, 0x01)) { Return (0x00) } Else { If (LEqual (Arg0, 0x02)) { Return (0x01) } Else { Return (0x02) } } } } Method (CART, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Return (0x02) } Else { Return (0x01) } } Method (CCMD, 1, NotSerialized) { If (LEqual (Arg0, 0x04)) { Return (0x3F) } Else { If (LEqual (Arg0, 0x03)) { Return (0x32) } Else { If (LEqual (Arg0, 0x02)) { Return (0xAF) } Else { If (LEqual (Arg0, 0x01)) { Return (0xA2) } Else { Return (0xA9) } } } } } Method (CDRW, 2, NotSerialized) { If (LEqual (Arg0, 0x01)) { Store (0x88, Local0) } Else { If (LEqual (Arg0, 0x02)) { Store (0x31, Local0) } Else { If (LEqual (Arg0, 0x03)) { Store (0x3F, Local0) } Else { Store (0xFFFFFFFF, Local0) } } } If (LEqual (Arg1, 0x00)) { Store (0x6D, Local1) } Else { If (LEqual (Arg1, 0x01)) { Store (0x43, Local1) } Else { If (LEqual (Arg1, 0x02)) { Store (0x43, Local1) } Else { If (LEqual (Arg1, 0x03)) { Store (0x32, Local1) } Else { Store (0x3F, Local1) } } } } If (LGreater (CCYC (Local0), CCYC (Local1))) { Return (Local0) } Else { Return (Local1) } } Method (CCYC, 1, NotSerialized) { And (Arg0, 0x0F, Local0) ShiftRight (Arg0, 0x04, Local1) If (Local0) { If (LEqual (Local0, 0x0F)) { Store (0x01, Local0) } Else { Increment (Local0) } } Else { Store (0x10, Local0) } If (LNot (Local1)) { Store (0x10, Local1) } Add (Local0, Local1, Local0) Multiply (Local0, 0x1E, Local0) Return (Local0) } Method (CUDC, 1, NotSerialized) { If (LEqual (Arg0, 0x01)) { Return (0x03) } Else { If (LEqual (Arg0, 0x02)) { Return (0x02) } Else { If (LEqual (Arg0, 0x03)) { Return (0x01) } Else { If (LEqual (Arg0, 0x04)) { Return (0x02) } Else { Return (0x01) } } } } } Method (MHDM, 2, NotSerialized) { If (LEqual (Arg0, 0x00)) { If (LEqual (Arg1, 0x00)) { Return (0x00) } Else { If (LEqual (Arg1, 0x01)) { Return (0x12) } Else { If (LEqual (Arg1, 0x02)) { Return (0x21) } Else { Return (0x22) } } } } Else { If (LEqual (Arg0, 0x01)) { Return (0x40) } Else { If (LEqual (Arg0, 0x02)) { Return (0x41) } Else { If (LEqual (Arg0, 0x03)) { Return (0x42) } Else { If (LEqual (Arg0, 0x04)) { Return (0x43) } Else { Return (0x44) } } } } } } Method (MHPI, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Return (0x00) } Else { If (LEqual (Arg0, 0x01)) { Return (0x01) } Else { If (LEqual (Arg0, 0x02)) { Return (0x00) } Else { If (LEqual (Arg0, 0x03)) { Return (0x0B) } Else { Return (0x0C) } } } } } Method (MIN, 2, NotSerialized) { If (LLess (Arg0, Arg1)) { Return (Arg0) } Else { Return (Arg1) } } Method (SLEN, 1, NotSerialized) { Return (SizeOf (Arg0)) } Method (S2BF, 1, Serialized) { Add (SLEN (Arg0), One, Local0) Name (BUFF, Buffer (Local0) {}) Store (Arg0, BUFF) Return (BUFF) } Method (SCMP, 2, NotSerialized) { Store (S2BF (Arg0), Local0) Store (S2BF (Arg1), Local1) Store (Zero, Local4) Store (SLEN (Arg0), Local5) Store (SLEN (Arg1), Local6) Store (MIN (Local5, Local6), Local7) While (LLess (Local4, Local7)) { Store (DerefOf (Index (Local0, Local4)), Local2) Store (DerefOf (Index (Local1, Local4)), Local3) If (LGreater (Local2, Local3)) { Return (One) } Else { If (LLess (Local2, Local3)) { Return (Ones) } } Increment (Local4) } If (LLess (Local4, Local5)) { Return (One) } Else { If (LLess (Local4, Local6)) { Return (Ones) } Else { Return (Zero) } } } Name (SPS, 0x00) Name (W98F, 0x00) Name (WNTF, 0x00) Name (WMEF, 0x00) Name (H8DR, 0x00) Name (MEMX, 0x00) Name (GVEN, 0x00) Name (FNID, 0x00) Name (RRBF, 0x00) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/UTILITY/DSDT.TAB0000700000175000017500000033637414773714143030104 0ustar ivanhuivanhuDSDTó¼ÀIBM TP-T20 !MSFT \_PR_[ƒ CPU_Œl\_SB_[‚DLNKA_HID AÐ _UID (_STA ’VPIR\/_SB_PCI0ISA_PIRA¤ ¡¤ _PRS #øy/_DIS}\/_SB_PCI0ISA_PIRA €\/_SB_PCI0ISA_PIRAM_CRSBUFA #y‹BUFA IRA1{\/_SB_PCI0ISA_PIRA ` VPIR`py`IRA1¤BUFAF_SRS‹h IRA2‚IRA2`{\/_SB_PCI0ISA_PIRA pa}av`apa\/_SB_PCI0ISA_PIRA[‚DLNKB_HID AÐ _UID (_STA ’VPIR\/_SB_PCI0ISA_PIRB¤ ¡¤ _PRS #øy/_DIS}\/_SB_PCI0ISA_PIRB €\/_SB_PCI0ISA_PIRBM_CRSBUFB #y‹BUFB IRB1{\/_SB_PCI0ISA_PIRB ` VPIR`py`IRB1¤BUFBF_SRS‹h IRB2‚IRB2`{\/_SB_PCI0ISA_PIRB pa}av`apa\/_SB_PCI0ISA_PIRB[‚DLNKC_HID AÐ _UID (_STA ’VPIR\/_SB_PCI0ISA_PIRC¤ ¡¤ _PRS #øy/_DIS}\/_SB_PCI0ISA_PIRC €\/_SB_PCI0ISA_PIRCM_CRSBUFC #y‹BUFC IRC1{\/_SB_PCI0ISA_PIRC ` VPIR`py`IRC1¤BUFCF_SRS‹h IRC2‚IRC2`{\/_SB_PCI0ISA_PIRC pa}av`apa\/_SB_PCI0ISA_PIRC[‚DLNKD_HID AÐ _UID (_STA ’VPIR\/_SB_PCI0ISA_PIRD¤ ¡¤ _PRS #øy/_DIS}\/_SB_PCI0ISA_PIRD €\/_SB_PCI0ISA_PIRDM_CRSBUFD #y‹BUFD IRD1{\/_SB_PCI0ISA_PIRD ` VPIR`py`IRD1¤BUFDF_SRS‹h IRD2‚IRD2`{\/_SB_PCI0ISA_PIRD pa}av`apa\/_SB_PCI0ISA_PIRD5VPIRp`  {h €p`¡{h a •a p`¡  ‘“a “a p`¤`[‚JRMEM__HID AÐ ME985 2†  † † î† øÿyŠME98 MEB0ŠME98 MEL0MGAP † yŠMGAP MGPBŠMGAP MGPLMEMSF †  † † @ † € † À † † @ † € † À † † @† €† À† † î† øÿyŠMEMS MC0LŠMEMS MC4LŠMEMS ,MC8LŠMEMS 8MCCLŠMEMS DMD0LŠMEMS PMD4LŠMEMS \MD8LŠMEMS hMDCLŠMEMS tME0LŠMEMS €ME4LŠMEMS ŒME8LŠMEMS ˜MECLMEMS xMC0WMEMS ØMC4WMEMS 8MC8WMEMS ˜MCCWMEMS øMD0WMEMS XMD4WMEMS ¸MD8WMEMS MDCWMEMS xME0WMEMS ØME4WMEMS 8ME8WMEMS ˜MECWŠMEMS ¬MEB1ŠMEMS °MEL1G*_CRS L\W98Ft\MEMXMEB0MEL0p\GGAP MGPBp\GGAP MGPL GMGPBMGPLt‡ME98 `MBF0`r`‡MGAP`MBF1`pME98MBF0sMBF0MGAPMBF1¤MBF1¡¤ME98{\/_SB_PCI0PAM1 ` `p @MC0L  {` p MC0W{\/_SB_PCI0PAM1 0` `p @MC4L  {` p MC4W{\/_SB_PCI0PAM2 ` `p @MC8L  {` p MC8W{\/_SB_PCI0PAM2 0` `p @MCCL  {` p MCCW{\/_SB_PCI0PAM3 ` `p @MD0L  {` p MD0W{\/_SB_PCI0PAM3 0` `p @MD4L  {` p MD4W{\/_SB_PCI0PAM4 ` `p @MD8L  {` p MD8W{\/_SB_PCI0PAM4 0` `p @MDCL  {` p MDCW{\/_SB_PCI0PAM5 ` `p @ME0L  {` p ME0W{\/_SB_PCI0PAM5 0` `p @ME4L  {` p ME4W{\/_SB_PCI0PAM6 ` `p @ME8L  {` p ME8W{\/_SB_PCI0PAM6 0` `p @MECL  {` p MECWt\MEMXMEB1MEL1¤MEMS[‚G LID__HID AÐ <_LID \H8DR¤\/_SB_PCI0ISA_EC__HPLD¡ {\RBEC 6 ¤ ¡¤ &_PRW \W98F’\WMEF¤ ¡ ¤ B_PSW =\H8DR hp\/_SB_PCI0ISA_EC__HWLO¡p\/_SB_PCI0ISA_EC__HWLO¡  h\MBEC 2 ÿ ¡ \MBEC 2 û [‚L SLPB_HID AÐ &_PRW \W98F’\WMEF¤ ¡ ¤ D_PSW ?\H8DR hp \/_SB_PCI0ISA_EC__HWFN¡p \/_SB_PCI0ISA_EC__HWFN¡  h\MBEC 2 ÿ ¡ \MBEC 2 ï [‚Œ@PCI0_ADR _HID AÐ [€X000 [OX000H,PAM0PAM1PAM2PAM3PAM4PAM5PAM6DRB0DRB1DRB2DRB3DRB4DRB5DRB6DRB7@ CREN_PRW  _PSWEPSW hPMEE @ EPSW  i}PMEEh`¡ {PMEE€h`p`PMEE ?\H8DR `p \/_SB_PCI0ISA_EC__HWPM¡p \/_SB_PCI0ISA_EC__HWPM¡  `\MBEC 2 ÿ ¡ \MBEC 2 þ  `p \/_SB_PCI0ISA_WOLE¡p \/_SB_PCI0ISA_WOLE_CRSK ¦ˆ  ÿGø ø ˆ  ÷ ø ˆ   ÿÿó‡  ÿÿ ‡  ÿ? @‡ @ ÿ @‡ € ÿ¿ @‡ À ÿÿ @‡  ÿ? @‡ @ ÿ @‡ € ÿ¿ @‡ À ÿÿ @‡ ÿ?@‡ @ÿ@‡ €ÿ¿@‡ Àÿÿ@‡ ÿÿßÿÐÿyŠ_CRS hC0LNŠ_CRS ‚C4LNŠ_CRS œC8LNŠ_CRS ¶CCLNŠ_CRS ÐD0LNŠ_CRS êD4LNŠ_CRS D8LNŠ_CRS DCLNŠ_CRS 8E0LNŠ_CRS RE4LNŠ_CRS lE8LNŠ_CRS †ECLNŠ_CRS ”XXMNŠ_CRS ˜XXMXŠ_CRS  XXLNM_INI '“\SCMP\_OS_ Microsoft Windowsp\W98F¡F *“\SCMP\_OS_ Microsoft Windows NTp\WNTF¡H E“\SCMP\_OS_ Microsoft WindowsME: Millennium Editionp\WMEFp\W98FwDRB7 €`p`\MEMXp`XXMNrtXXMXXXMN XXLN {PAM1 p C0LN {PAM1 0p C4LN {PAM2 p C8LN {PAM2 0p CCLN {PAM3 p D0LN {PAM3 0p D4LN {PAM4 p D8LN {PAM4 0p DCLN {PAM5 p E0LN {PAM5 0p E4LN {PAM6 p E8LN {PAM6 0p ECLN\/_SB_PCI0ISA_GPPM \GCHKp \GVEN_PRTM  ÿÿ \._SB_LNKA  ÿÿ \._SB_LNKA  ÿÿ \._SB_LNKB  ÿÿ \._SB_LNKC  ÿÿ \._SB_LNKD  ÿÿ \._SB_LNKA  ÿÿ \._SB_LNKD [‚G‡IDE0_ADR [€X140 @ [E X140XPT0XPI0XPP0XPD0XPT1XPI1XPP1XPD1XPRTXPISXPSEXPE_XST0XSI0XSP0XSD0XST1XSI1XSP1XSD1XSRTXSISXSSEXSE_XVRTXVISXEP0XEP1XES0XES1XUP0XUP1XUS0XUS1[‚FHPRIM_ADR F_GTMt XPIS`t XPRTar`a`w ``  ”` ðp „` +XEP0p d  “XUP0 p xa¡  “XUP0 p Pa¡p AC___HID ACPI0003_UID _PCL\_SB_ _PSR¤HPAC _STA¤ O*\/_SB_PCI0ISA_EC__[6ECOR@(HMPRHMSTHMARHMDNHMADHMCMHMDTHHMBC[OECOR@*HBPUHBSTHBIDHBRC HBFC HBCC HBVLHBECHBBTHBNFHBTCHBCT @F[=ECOR@*HBTSHBAFHBSDHBDTHBH0HBL0HBH1HBL1HBH2HBL2[JECOR@*HF_ZHF_DHZIPHDVDHHFDHF_HHHDDHADPHLS_HF_CHCRWHCD_HR01HFDDHIMPHNON[I2CMAI2C¤[#I2CMÿÿ RI2C['I2CMBI2CRAI2CphHCSL HCAD}yi  HMAD¡piHMADpjHMCMp HMPRpCHKSg gpg`¡pHMDT`RI2C¤`JI2CWAI2CphHCSL HCAD}yi  HMAD¡piHMADpjHMCMpkHMDTp HMPRpCHKS`RI2C¤`6I2RBphHCSL HCADpyi HMAD¡piHMADpjHMCMp HMPR¤CHKSf  ’”f p @g¡  ’”f pwf g¡p Ðg\WPCI}b g\WPCI}b uaLLCBS} €y\RPCI  € `}`yh `p a¢3•a }`ya b\WPCI}b \WPCI}b @\WPCI}b  €uaDSSU2 .hp \/_SB_PCI0PM00S2DSp \/_SB_PCI0ISA_SUS2¡-p \/_SB_PCI0ISA_SUS2p \/_SB_PCI0PM00S2DS@\/_SB_PCI0ISA_EC__O_Q37 G\/_SB_PCI0ISA_SCISp\/_SB_PCI0ISA_SCIR` H“`  A’\/_SB_PCI0DOCKGDIDp ÿÿÿÿ\/_SB_PCI0DOCKDOID†\/_SB_PCI0DOCK  .“` \/_SB_PCI0ISA_BUSC[$\/_SB_PCI0DOCKDEVT .“` \/_SB_PCI0ISA_BUSD[$\/_SB_PCI0DOCKDEVTp \/_SB_PCI0ISA_SCISJ_Q50 B\/_SB_PCI0DOCKGDID \W98F†\/_SB_PCI0DOCK ¡†\/_SB_PCI0DOCK [€PPBR [B PPBR@ SVIDSSID@SDCLPDCL SCADBUFCCLKR0PG0DPG1DPG2DPG3DSG0DSG1DSG2DSG3DPG0OPG1OPG2OPG3OSG0OSG1OSG2OSG3OSIRQARMKNPPIN}z   €`p\RPCI}` „a a \WPCI}` „{a ü["  O\W98F\WPCI}`  ð\WPCI}`  \WPCI}` ð\WPCI}` ! ÿ\WPCI}` " \WPCI}` # \WPCI}` $ ð\WPCI}` % ÿ\WPCI}` & \WPCI}` ' \WPCI}`  \WPCI}`  \WPCI}` \WPCI}` @\WPCI}`  Dp SVIDp ãSSID}{SDCL SDCL}{PDCL PDCL}{SCAD  °SCAD}{BUFC BUFC}{CLKR CLKR}{SIRQ #SIRQ}{ARMK 8ARMKPPFDPPUB PPMX7PPEN} €z  ` h\MPCI}`  ÿ ¡\MPCI}`  ø 6PPRS} €z  `\MPCI}` > ÿ @[" d\MPCI}` > ¿ @PPFDp SG1D >“\/_SB_PCI0ISA_EC__GDEV  p \/_SB_PCI0ISA_FDC_DCFDp SG1O¡"p \/_SB_PCI0ISA_FDC_DCFDp SG1O'PPUBp SG3D  hp PG3O¡p PG3Op PG3DLPPMXp\RPCI} €z  `} €y` `p ap b¢avayb b}b\RPCI}`ab “b ˆ3!}SDCL SDCL[‚OAIDE1_ADR [€IDEC [AIDECH'ENCLPRMCSNDCXCMTXAR0XDRRXDRW@XUDMXUDCXUDTADREG I“h  Bi C“\/_SB_PCI0DOCKGDID $MJ '’{\/_SB_PCI0DOCKSCAD p PRMCp SNDC  \W98FRAIDNRAIDp ENCLp\RPCI} €z  `} €y` `}`z_ADR `}`y{_ADR  `\WPCI}` p ENCLF_STAp ` 8“\/_SB_PCI0DOCKGDID $MJ ’{\/_SB_PCI0DOCKSCAD p `¤`[‚F*PRIM_ADR I _GTMp d BXCMT XDRR  “XDRR p `¡ r XDRR`¡p `  XDRWpXDRWa¡p ar`a`w ``  ”` ðp „`p`a¡p `p`a 6XUDM}d d XUDCrXUDT aw aa¡rXUDT aw aa  “a Zp Pap`\GTP0pa\GTD0p \GTP1p \GTD1pd\GTMF¤\BGTMD_STMŠh STP0Šh STD0Šh STP1Šh STD1Šh STMF ‡i‹i DM00 DM00pe¡pe¡pe Ee CW98F‹i fDM51‹i jDM53‹i |DM62‹i ~DM63‹i €DM64‹i ‚DM65‹i ˆDM68‹i °DM88p\UDMADM53DM88`p\MDMADM53DM63DM62DM65ap\MPIODM53DM64DM51DM68b¡2p\MPIB{STMF STP0bp\UDMB{STMF STD0`p\MDMBSTD0ap{DM00 €\IDKSp\CARTbXAR0p\CCMDbXCMTp\CDRWabc{c XDRRzc XDRW +`p XUDM  ’”` p XUDC¡p XUDCp\CUDC`XUDTp\MHDM`a\HDM3p\MHDM`a\CDM3p\MHPIb\HPI3p\MHPIb\CPI3[‚(MSTR_ADR _GTF  \IDKS¤\ICC3¡¤\ICM3[‚CCBS2_ADR )_STA “\/_SB_PCI0DOCKGDID $MJ¤ ¡¤ 0DREG )“h “i  “\/_SB_PCI0DOCKGDID $MJICFG[€CBUS [2CBUS@"LGDC @SYSC @MULR RSTSCCTLDCTLDIAGG ICFGpRPCI} €z  `} €y` `}`z_ADR `}`y{_ADR  `\WPCI}` \WPCI}` ¨\WPCI}`  €}{LGDC LGDC}{SYSC ÿÿ wÀd(SYSC}{MULR MULR}{RSTS ÀRSTS}{CCTL { CCTL}{DCTL fDCTL}{DIAG  @DIAG[‚CCBS3_ADR )_STA “\/_SB_PCI0DOCKGDID $MJ¤ ¡¤ 0DREG )“h “i  “\/_SB_PCI0DOCKGDID $MJICFG[€CBUS [2CBUS@"LGDC @SYSC @MULR RSTSCCTLDCTLDIAGG ICFGpRPCI} €z  `} €y` `}`z_ADR `}`y{_ADR  `\WPCI}` \WPCI}` ¨\WPCI}`  €}{LGDC LGDC}{SYSC ÿÿ wÀd(SYSC}{MULR MULR}{RSTS ÀRSTS}{CCTL { CCTL}{DCTL fDCTL}{DIAG  @DIAGI¸\/_SB_PCI0ISA_EC__BDEV BSTS BHKE BXCN 0_Q2C )“BSTS pGUIDBDEV  BXCNNXREBDEV¡ NBREBDEV'_Q2DpGUIDBDEV  BXCNNXRCBDEV¡ NBINBDEVA_Q38pGUID` CBDEV’“`BDEV 1“` BDIS BXCNpBDEV`p BDEVNXEJ`¡NBEJBDEVp`BDEV¡2 HPBU BXCNp`BDEVNXIN`¡p`BDEV  BXCNNXRC`¡NBIN`A NBRE “h †\/_SB_PCI0ISA_FDC_FDD0  •h †\/_SB_PCI0IDE0SCNDMSTR  I“h  +‘HPACHB0A  \WNTF†\/_SB_PCI0ISA_EC__BAT1 ¡BLED  BEEP p BSTSJ NBEJ M“BSTS  “h †\/_SB_PCI0ISA_FDC_FDD0  •h †\/_SB_PCI0IDE0SCNDMSTR  C“h   \WNTF†\/_SB_PCI0ISA_EC__BAT1 ¡†\/_SB_PCI0ISA_EC__BAT1 BLED BEEP p BSTSONBIN 4“h BEN_ \SFDD BLED  †\/_SB_PCI0ISA_FDC_FDD0  ;•h   “h BEN_ ¡BEN_ BLED  †\/_SB_PCI0IDE0SCNDMSTR  I“h BLED   >\WNTFp \/_SB_PCI0ISA_EC__BAT1XB1S†\/_SB_PCI0ISA_EC__BAT1 ¡†\/_SB_PCI0ISA_EC__BAT1 BEEP p BSTSABEJ0 HhBDISBLED \BHDP p BSTS *BHKEp BHKE\/_SB_PCI0ISA_EC__HKEYMHKQ 0¡BLED  p BSTSH BEJ3 Bhp ƒBF_Zp ƒBF_Dp ƒBZIPp ƒBDVDp ƒBHFDp ƒBF_Hp ƒBHDDp ƒBLS_p ƒBF_Cp ƒBCRWp ƒBCD_p ƒBFDDBDISp BSTS¡Mp BF_Zp BF_Dp BZIPp BDVDp BHFDp BF_Hp BHDDp BLS_p BF_Cp BCRWp BCD_p BFDDp BSTSIBPTS  ‘“h ’•h ¡E ’“BSTS p BDEVp BSTSp BHKE ’“BDEV BLDT BUWK ¡ BLDT BUWK ABWAK  ‘“h ’•h ¡MBUWK pGUID`  ”` BDIS\/_SB_PCI0ISA_FDC__INI C’“`  K“\/_SB_PCI0ISA_FDC_FD0S\/_SB_PCI0ISA_EC__HPNF†\/_SB_PCI0ISA_FDC_FDD0  I “BSTS  .’“`BDEV BXCNp`BDEVNXRC`¡NBEJBDEVp`BDEVNBIN`¡@ M’“` BLED   MHPBU}yh   BHKE\/_SB_PCI0ISA_EC__HKEYMHKQBHKE ’”h ¡  BXCNNXRE`¡NBRE`FBDIS\SFDD p \/_SB_PCI0IDE0XSI0p \/_SB_PCI0ISA_GCRCp \/_SB_PCI0PM00ULONp \/_SB_PCI0PM00CSONGBEN_ ,’‘\/_SB_PCI0PM00ULON\/_SB_PCI0PM00CSON¤  hp \/_SB_PCI0IDE0XSE_[! p \/_SB_PCI0PM00URSTp \/_SB_PCI0PM00ULONp \/_SB_PCI0PM00CSON["  2hp \/_SB_PCI0ISA_GCRCp \/_SB_PCI0IDE0XSE_[! -p \/_SB_PCI0PM00URST["  h["   “h [" Ð=BSTA \/_SB_PCI0PM00CSON¤ pGUID`  “h ¤“`   “h ¤•` ¤ HBLED @\H8DR[#LEDMÿÿp HLMS  ip HLBL¡p HLBL  “h p HLCL¡  “h p HLCL¡  “h p HLCL¡[" ['LEDMBF_Z ƒBF_D ƒBZIP ƒBDVD ƒBHFD ƒBF_H ƒBHDD ƒBADP BLS_ ƒBF_C ƒBCRW ƒBCD_ ƒBR01 BFDD ƒBIMP BNON ƒNBLDTAI2C C hpBF_ZHF_ZpBF_DHF_DpBZIPHZIPpBDVDHDVDpBHFDHHFDpBF_HHF_HpBHDDHHDDpBADPHADPpBLS_HLS_pBF_CHF_CpBCRWHCRWpBCD_HCD_pBR01HR01pBFDDHFDDpBIMPHIMPpBNONHNON¡Bp HF_Zp HF_Dp HZIPp HDVDp HHFDp HF_Hp HHDDp HADPp HLS_p HF_Cp HCRWp HCD_p HR01p HFDDp HIMPp HNONpI2WB  gRI2C  g[2€gDBUWK ?\H8DR hp \/_SB_PCI0ISA_EC__HWBU¡p \/_SB_PCI0ISA_EC__HWBU¡  h\MBEC 2 ÿ €¡ \MBEC 2  ONXRE “h BLED p BSTS “h BLED  †\._SB_SWAP ƒ •h BLED  †\._SB_SWAP ƒ <“h  ‘HPACHB0ABLED  †\._SB_SWAP ƒ¡BLED  BEEP p BSTS@ NXRC '“h BLED  BEN_ \SFDD †\._SB_SWAP € .•h BLED    “h BEN_ ¡BEN_ †\._SB_SWAP € 4“h †\/_SB_PCI0ISA_EC__BAT1 BLED  †\._SB_SWAP €BEEP p BSTSINXEJ “h †\/_SB_PCI0ISA_EC__BAT1 †\._SB_SWAP ‚BLED BEEP p BSTSNXIN†\._SB_SWAP E)\_SB_[‚L(SWAP_HID $Mi_STA  \WMEF¤ ¡¤ "XCNNph\/_SB_PCI0ISA_EC__BXCN¤  XSWP¤ M005#M006M007¤p ˆh¤rƒˆhM007hp ˆh¤rƒˆhM006hp ˆh¤rƒˆhM005hp ˆh¤rƒˆhM004hp ˆh¤rƒˆhM003hp ˆh¤rƒˆhM002hprƒˆhM001h`¤`pM000B000` ’“` ERR_TS__Z166 ` pƒˆB000` hp ÿa¡p a ’“`aERR_TS__Z166 `aCH03TS__Z166 AIN3ETS__ in3eI001P000    PP00   33""CH03TS__Z166 B M000J M001N M002AM003DM004EM005&M006M007¤p ˆh¤rƒˆhM007hp `ˆh¤rƒˆhM006hp ˆh¤rƒˆhM005hp @ˆh¤rƒˆhM004hp ˆh¤rƒˆhM003hp ˆh¤rƒˆhM002hprƒˆhM001h`¤`pM000PP00` ’“` !CeERR_TS__Z166 ` !CepƒˆPP00` ’“` ERR_TS__Z166 ` CH03TS__Z166 H INI3SRMT in30IN30SRMT in31IN31SRMT in32IN32SRMT in33IN33SRMT in34  CHK0IN34¡BLCKSRMT in36IN36SRMT in37IN37SRMT in38-0IN38SRMT in39-0IN39SRMT in3a-0IN3ASRMT in3c-0IN3CSRMT in3eIN3ECH03 ini3Z166Z167 §CMD0STP0OT00AD00LN00 LN01 LN02 LN03 LN04 LN05 LN06 LN07 LN08 &OBT0pŽh` ’“`iERR_ obt0Z167`i¤ A!ACT0_T_0TS__ act0ph_T_0 "“_T_0pŽi` ’“`jERR_TS__Z167`j¡O "“_T_0rij` ’“`kERR_TS__Z167`k¡I (“_T_0  ’“i Í«ERR_TS__Z167 i Í«¡M 6“_T_0  -’“i qwrtyu0003ERR_TS__Z167 i qwrtyu0003¡C 2“_T_0  )’“i abcd0800ERR_TS__Z167 i abcd0800¡M 0“_T_0  '’“i °±²³´ERR_TS__Z167 i °±²³´¡I  /“_T_0 pƒˆi` ’“`  Í«ERR_TS__Z167 `  Í«¡F  (“_T_0  ’“i Í«ERR_TS__Z167 i Í«¡J (“_T_0  ’“i ««««ERR_TS__Z167 i ««««¡N  “_T_0  ’“iERR_TS__Z167 i¡* (“_T_0  ’“i  Í«ERR_TS__Z167 i  Í«MMI01_T_0 IV’CHK0 D“CMD0pŽh` ’“`C009ERR_ mI01Z167`C009rh`  ’“` Í«ERR_ mI01Z167` Í« !’“h Í«ERR_ mI01Z167 h Í«¤h E“CMD0 pŽh` ’“`C00AERR_ mI01Z167`C00A 6’RUN4 /’“h qwrtyu0003ERR_ mI01Z167 h qwrtyu0003¤h H“CMD0 pŽh` ’“`C00AERR_ mI01Z167`C00A I’RUN4rh `  ’“` Í«ERR_ mI01Z167` Í« +’“h abcd0800ERR_ mI01Z167 h abcd0800¤h F“CMD0 pŽh` ’“`C00BERR_ mI01Z167`C00B G’RUN4rh `  ’“` ·±²³ERR_ mI01Z167` ·±²³ )’“h °±²³´ERR_ mI01Z167 h °±²³´¤h G“CMD0 pŽh` ’“`C00CERR_ mI01Z167`C00Cpƒˆh` !’“`  Í«ERR_ mI01Z167 `  Í«¤h F“CMD0 pŽh` ’“`C009ERR_ mI01Z167`C009rh `  ’“` Í«ERR_ mI01Z167` Í« !’“h Í«ERR_ mI01Z167 h Í«¤h -“CMD0 pŽh` ’“`C00EERR_ mI01Z167`C00E¤h -“CMD0 pŽh` ’“`C00FERR_ mI01Z167`C00F¤h -“CMD0 pŽh` ’“`C011ERR_ mI01Z167`C011¤h -“CMD0 pŽh` ’“`C012ERR_ mI01Z167`C012¤h -“CMD0 pŽh` ’“`C013ERR_ mI01Z167`C013¤h -“CMD0 pŽh` ’“`C014ERR_ mI01Z167`C014¤h -“CMD0 pŽh` ’“`C015ERR_ mI01Z167`C015¤h F“CMD0 pŽh` ’“`C009ERR_ mI01Z167`C009rh `  ’“` ´«««ERR_ mI01Z167` ´««« !’“h ««««ERR_ mI01Z167 h ««««¤h H“CMD0 pŽh` ’“`C009ERR_ mI01Z167`C009rh ` ’“` ERR_ mI01Z167`  ’“hERR_ mI01Z167 h¤h E“CMD0 pŽh` &’“`C009’“`C00BERR_ mI01Z167`C00B NCHK0rh `  ’“` Í«ERR_ mI01Z167` Í« !’“h  Í«ERR_ mI01Z167 h  Í«¤hpCMD0_T_0 /“_T_0ACT0OT00hC009ACT0LN00hACT0AD00h Í«¡J$ !“_T_0 ACT0OT00hC00AACT0LN01h¡E" 1“_T_0 ACT0OT00hC00AACT0LN02hACT0AD00h  Í«¡@ 1“_T_0 ACT0OT00hC00BACT0LN03hACT0AD00h  ·±²³¡K !“_T_0 ACT0OT00hC00CACT0LN04h¡F 1“_T_0 ACT0OT00hC009ACT0LN05hACT0AD00h Í«¡A “_T_0 ACT0OT00hC00E¡G “_T_0 ACT0OT00hC00F¡M “_T_0 ACT0OT00hC011¡C “_T_0 ACT0OT00hC012¡I “_T_0 ACT0OT00hC013¡O  “_T_0 ACT0OT00hC014¡E  “_T_0 ACT0OT00hC015¡K  1“_T_0 ACT0OT00hC009ACT0LN06hACT0AD00h ´«««¡F .“_T_0 ACT0OT00hC009ACT0LN07hACT0AD00h ¡D 1“_T_0 ACT0OT00hC009ACT0LN08hACT0AD00h  Í«¡ACT0OT00hC008¤hMI02MI01hMI01i¤hMI03MI01hMI01iMI01j¤hMI04MI01hMI01iMI01jMI01k¤h!MI05MI01hMI01iMI01jMI01kMI01l¤h&MI06MI01hMI01iMI01jMI01kMI01lMI01m¤h+MI07MI01hMI01iMI01jMI01kMI01lMI01mMI01n¤hƒ&IN40TS__ in40I000 Í«S000 qwrtyu0003S001 abcd0800B000 °±²³´P000  Í«  Í«  Í«MMM0IM00 Í«SM00 qwertyui*MMM1IM00 Í«SM00 qwertyui¤ qwertyuiII00II01II03II05pCMD0pI000II00MI01II00MI02II00II00MI03II00II00II00MI04II00II00II00II00MI05II00II00II00II00II00MI06II00II00II00II00II00II00MI07II00II00II00II00II00II00II00MI01MI01II00MI02MI01II00MI02II00II00MI03MI01II00MI02II00II00MI03II00II00II00MI04MI01II00MI02II00II00MI03II00II00II00MI04II00II00II00II00 JY262MI05MI01II00MI02II00II00MI03II00II00II00MI04II00II00II00II00MI05II00II00II00II00II00MI06MI01II00MI02II00II00MI03II00II00II00MI04II00II00II00II00MI05II00II00II00II00II00MI06II00II00II00II00II00II00MI07MI01II00MI02II00II00MI03II00II00II00MI04II00II00II00II00MI05II00II00II00II00II00MI06II00II00II00II00II00II00MI07II00II00II00II00II00II00II00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pII00apII00cpII00eMI01II00MI02II00aMI03II00aII00MI04II00aII00cMI05II00aII00cII00MI06II00aII00cII00eMI07II00aII00cII00eII00MI01MI01II00MI02MI01II00MI02II00aMI03MI01II00MI02II00aMI03II00aII00MI04MI01II00MI02II00aMI03II00aII00MI04II00aII00c IY262MI05MI01II00MI02II00aMI03II00aII00MI04II00aII00cMI05II00aII00cII00MI06MI01II00MI02II00aMI03II00aII00MI04II00aII00cMI05II00aII00cII00MI06II00aII00cII00eMI07MI01II00MI02II00aMI03II00aII00MI04II00aII00cMI05II00aII00cII00MI06II00aII00cII00eMI07II00aII00cII00eII00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pII00ipII00kpII00mMI01II00MI02II00iMI03II00iII00MI04II00iII00kMI05II00iII00kII00MI06II00iII00kII00mMI07II00iII00kII00mII00MI01MI01II00MI02MI01II00MI02II00iMI03MI01II00MI02II00iMI03II00iII00MI04MI01II00MI02II00iMI03II00iII00MI04II00iII00k IY262MI05MI01II00MI02II00iMI03II00iII00MI04II00iII00kMI05II00iII00kII00MI06MI01II00MI02II00iMI03II00iII00MI04II00iII00kMI05II00iII00kII00MI06II00iII00kII00mMI07MI01II00MI02II00iMI03II00iII00MI04II00iII00kMI05II00iII00kII00MI06II00iII00kII00mMI07II00iII00kII00mII00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pII00II01pII00II03pII00II05MI01II00MI02II00II01MI03II00II01II00MI04II00II01II00II03MI05II00II01II00II03II00MI06II00II01II00II03II00II05MI07II00II01II00II03II00II05II00MI01MI01II00MI02MI01II00MI02II00II01MI03MI01II00MI02II00II01MI03II00II01II00MI04MI01II00MI02II00II01MI03II00II01II00MI04II00II01II00II03 JY262MI05MI01II00MI02II00II01MI03II00II01II00MI04II00II01II00II03MI05II00II01II00II03II00MI06MI01II00MI02II00II01MI03II00II01II00MI04II00II01II00II03MI05II00II01II00II03II00MI06II00II01II00II03II00II05MI07MI01II00MI02II00II01MI03II00II01II00MI04II00II01II00II03MI05II00II01II00II03II00MI06II00II01II00II03II00II05MI07II00II01II00II03II00II05II00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!SS00 vSS01 vSS03 vSS05 vp CMD0pS000SS00MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00MI05SS00SS00SS00SS00SS00MI06SS00SS00SS00SS00SS00SS00MI07SS00SS00SS00SS00SS00SS00SS00MI01MI01SS00MI02MI01SS00MI02SS00SS00MI03MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00 JY262MI05MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00MI05SS00SS00SS00SS00SS00MI06MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00MI05SS00SS00SS00SS00SS00MI06SS00SS00SS00SS00SS00SS00MI07MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00MI05SS00SS00SS00SS00SS00MI06SS00SS00SS00SS00SS00SS00MI07SS00SS00SS00SS00SS00SS00SS00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pSS00apSS00cpSS00eMI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00cMI05SS00aSS00cSS00MI06SS00aSS00cSS00eMI07SS00aSS00cSS00eSS00MI01MI01SS00MI02MI01SS00MI02SS00aMI03MI01SS00MI02SS00aMI03SS00aSS00MI04MI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00c IY262MI05MI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00cMI05SS00aSS00cSS00MI06MI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00cMI05SS00aSS00cSS00MI06SS00aSS00cSS00eMI07MI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00cMI05SS00aSS00cSS00MI06SS00aSS00cSS00eMI07SS00aSS00cSS00eSS00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pSS00ipSS00kpSS00mMI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00kMI05SS00iSS00kSS00MI06SS00iSS00kSS00mMI07SS00iSS00kSS00mSS00MI01MI01SS00MI02MI01SS00MI02SS00iMI03MI01SS00MI02SS00iMI03SS00iSS00MI04MI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00k IY262MI05MI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00kMI05SS00iSS00kSS00MI06MI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00kMI05SS00iSS00kSS00MI06SS00iSS00kSS00mMI07MI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00kMI05SS00iSS00kSS00MI06SS00iSS00kSS00mMI07SS00iSS00kSS00mSS00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pSS00SS01pSS00SS03pSS00SS05MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03MI05SS00SS01SS00SS03SS00MI06SS00SS01SS00SS03SS00SS05MI07SS00SS01SS00SS03SS00SS05SS00MI01MI01SS00MI02MI01SS00MI02SS00SS01MI03MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03 JY262MI05MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03MI05SS00SS01SS00SS03SS00MI06MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03MI05SS00SS01SS00SS03SS00MI06SS00SS01SS00SS03SS00SS05MI07MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03MI05SS00SS01SS00SS03SS00MI06SS00SS01SS00SS03SS00SS05MI07SS00SS01SS00SS03SS00SS05SS00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!p CMD0pS001SS00MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00MI05SS00SS00SS00SS00SS00MI06SS00SS00SS00SS00SS00SS00MI07SS00SS00SS00SS00SS00SS00SS00MI01MI01SS00MI02MI01SS00MI02SS00SS00MI03MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00 JY262MI05MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00MI05SS00SS00SS00SS00SS00MI06MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00MI05SS00SS00SS00SS00SS00MI06SS00SS00SS00SS00SS00SS00MI07MI01SS00MI02SS00SS00MI03SS00SS00SS00MI04SS00SS00SS00SS00MI05SS00SS00SS00SS00SS00MI06SS00SS00SS00SS00SS00SS00MI07SS00SS00SS00SS00SS00SS00SS00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pSS00apSS00cpSS00eMI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00cMI05SS00aSS00cSS00MI06SS00aSS00cSS00eMI07SS00aSS00cSS00eSS00MI01MI01SS00MI02MI01SS00MI02SS00aMI03MI01SS00MI02SS00aMI03SS00aSS00MI04MI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00c IY262MI05MI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00cMI05SS00aSS00cSS00MI06MI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00cMI05SS00aSS00cSS00MI06SS00aSS00cSS00eMI07MI01SS00MI02SS00aMI03SS00aSS00MI04SS00aSS00cMI05SS00aSS00cSS00MI06SS00aSS00cSS00eMI07SS00aSS00cSS00eSS00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pSS00ipSS00kpSS00mMI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00kMI05SS00iSS00kSS00MI06SS00iSS00kSS00mMI07SS00iSS00kSS00mSS00MI01MI01SS00MI02MI01SS00MI02SS00iMI03MI01SS00MI02SS00iMI03SS00iSS00MI04MI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00k IY262MI05MI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00kMI05SS00iSS00kSS00MI06MI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00kMI05SS00iSS00kSS00MI06SS00iSS00kSS00mMI07MI01SS00MI02SS00iMI03SS00iSS00MI04SS00iSS00kMI05SS00iSS00kSS00MI06SS00iSS00kSS00mMI07SS00iSS00kSS00mSS00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pSS00SS01pSS00SS03pSS00SS05MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03MI05SS00SS01SS00SS03SS00MI06SS00SS01SS00SS03SS00SS05MI07SS00SS01SS00SS03SS00SS05SS00MI01MI01SS00MI02MI01SS00MI02SS00SS01MI03MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03 JY262MI05MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03MI05SS00SS01SS00SS03SS00MI06MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03MI05SS00SS01SS00SS03SS00MI06SS00SS01SS00SS03SS00SS05MI07MI01SS00MI02SS00SS01MI03SS00SS01SS00MI04SS00SS01SS00SS03MI05SS00SS01SS00SS03SS00MI06SS00SS01SS00SS03SS00SS05MI07SS00SS01SS00SS03SS00SS05SS00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!BB00 BB01 BB03 BB05 p CMD0pB000BB00MI01BB00MI02BB00BB00MI03BB00BB00BB00MI04BB00BB00BB00BB00MI05BB00BB00BB00BB00BB00MI06BB00BB00BB00BB00BB00BB00MI07BB00BB00BB00BB00BB00BB00BB00MI01MI01BB00MI02MI01BB00MI02BB00BB00MI03MI01BB00MI02BB00BB00MI03BB00BB00BB00MI04MI01BB00MI02BB00BB00MI03BB00BB00BB00MI04BB00BB00BB00BB00 JY262MI05MI01BB00MI02BB00BB00MI03BB00BB00BB00MI04BB00BB00BB00BB00MI05BB00BB00BB00BB00BB00MI06MI01BB00MI02BB00BB00MI03BB00BB00BB00MI04BB00BB00BB00BB00MI05BB00BB00BB00BB00BB00MI06BB00BB00BB00BB00BB00BB00MI07MI01BB00MI02BB00BB00MI03BB00BB00BB00MI04BB00BB00BB00BB00MI05BB00BB00BB00BB00BB00MI06BB00BB00BB00BB00BB00BB00MI07BB00BB00BB00BB00BB00BB00BB00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pBB00apBB00cpBB00eMI01BB00MI02BB00aMI03BB00aBB00MI04BB00aBB00cMI05BB00aBB00cBB00MI06BB00aBB00cBB00eMI07BB00aBB00cBB00eBB00MI01MI01BB00MI02MI01BB00MI02BB00aMI03MI01BB00MI02BB00aMI03BB00aBB00MI04MI01BB00MI02BB00aMI03BB00aBB00MI04BB00aBB00c IY262MI05MI01BB00MI02BB00aMI03BB00aBB00MI04BB00aBB00cMI05BB00aBB00cBB00MI06MI01BB00MI02BB00aMI03BB00aBB00MI04BB00aBB00cMI05BB00aBB00cBB00MI06BB00aBB00cBB00eMI07MI01BB00MI02BB00aMI03BB00aBB00MI04BB00aBB00cMI05BB00aBB00cBB00MI06BB00aBB00cBB00eMI07BB00aBB00cBB00eBB00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pBB00ipBB00kpBB00mMI01BB00MI02BB00iMI03BB00iBB00MI04BB00iBB00kMI05BB00iBB00kBB00MI06BB00iBB00kBB00mMI07BB00iBB00kBB00mBB00MI01MI01BB00MI02MI01BB00MI02BB00iMI03MI01BB00MI02BB00iMI03BB00iBB00MI04MI01BB00MI02BB00iMI03BB00iBB00MI04BB00iBB00k IY262MI05MI01BB00MI02BB00iMI03BB00iBB00MI04BB00iBB00kMI05BB00iBB00kBB00MI06MI01BB00MI02BB00iMI03BB00iBB00MI04BB00iBB00kMI05BB00iBB00kBB00MI06BB00iBB00kBB00mMI07MI01BB00MI02BB00iMI03BB00iBB00MI04BB00iBB00kMI05BB00iBB00kBB00MI06BB00iBB00kBB00mMI07BB00iBB00kBB00mBB00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pBB00BB01pBB00BB03pBB00BB05MI01BB00MI02BB00BB01MI03BB00BB01BB00MI04BB00BB01BB00BB03MI05BB00BB01BB00BB03BB00MI06BB00BB01BB00BB03BB00BB05MI07BB00BB01BB00BB03BB00BB05BB00MI01MI01BB00MI02MI01BB00MI02BB00BB01MI03MI01BB00MI02BB00BB01MI03BB00BB01BB00MI04MI01BB00MI02BB00BB01MI03BB00BB01BB00MI04BB00BB01BB00BB03 JY262MI05MI01BB00MI02BB00BB01MI03BB00BB01BB00MI04BB00BB01BB00BB03MI05BB00BB01BB00BB03BB00MI06MI01BB00MI02BB00BB01MI03BB00BB01BB00MI04BB00BB01BB00BB03MI05BB00BB01BB00BB03BB00MI06BB00BB01BB00BB03BB00BB05MI07MI01BB00MI02BB00BB01MI03BB00BB01BB00MI04BB00BB01BB00BB03MI05BB00BB01BB00BB03BB00MI06BB00BB01BB00BB03BB00BB05MI07BB00BB01BB00BB03BB00BB05BB00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!PP00  Í«  Í«  Í«PP01PP03PP05p CMD0 CHK0pP000PP00MI01PP00MI02PP00PP00MI03PP00PP00PP00MI04PP00PP00PP00PP00MI05PP00PP00PP00PP00PP00MI06PP00PP00PP00PP00PP00PP00MI07PP00PP00PP00PP00PP00PP00PP00MI01MI01PP00MI02MI01PP00MI02PP00PP00MI03MI01PP00MI02PP00PP00MI03PP00PP00PP00MI04MI01PP00MI02PP00PP00MI03PP00PP00PP00MI04PP00PP00PP00PP00 JY262MI05MI01PP00MI02PP00PP00MI03PP00PP00PP00MI04PP00PP00PP00PP00MI05PP00PP00PP00PP00PP00MI06MI01PP00MI02PP00PP00MI03PP00PP00PP00MI04PP00PP00PP00PP00MI05PP00PP00PP00PP00PP00MI06PP00PP00PP00PP00PP00PP00MI07MI01PP00MI02PP00PP00MI03PP00PP00PP00MI04PP00PP00PP00PP00MI05PP00PP00PP00PP00PP00MI06PP00PP00PP00PP00PP00PP00MI07PP00PP00PP00PP00PP00PP00PP00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pPP00apPP00cpPP00eMI01PP00MI02PP00aMI03PP00aPP00MI04PP00aPP00cMI05PP00aPP00cPP00MI06PP00aPP00cPP00eMI07PP00aPP00cPP00ePP00MI01MI01PP00MI02MI01PP00MI02PP00aMI03MI01PP00MI02PP00aMI03PP00aPP00MI04MI01PP00MI02PP00aMI03PP00aPP00MI04PP00aPP00c IY262MI05MI01PP00MI02PP00aMI03PP00aPP00MI04PP00aPP00cMI05PP00aPP00cPP00MI06MI01PP00MI02PP00aMI03PP00aPP00MI04PP00aPP00cMI05PP00aPP00cPP00MI06PP00aPP00cPP00eMI07MI01PP00MI02PP00aMI03PP00aPP00MI04PP00aPP00cMI05PP00aPP00cPP00MI06PP00aPP00cPP00eMI07PP00aPP00cPP00ePP00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pPP00ipPP00kpPP00mMI01PP00MI02PP00iMI03PP00iPP00MI04PP00iPP00kMI05PP00iPP00kPP00MI06PP00iPP00kPP00mMI07PP00iPP00kPP00mPP00MI01MI01PP00MI02MI01PP00MI02PP00iMI03MI01PP00MI02PP00iMI03PP00iPP00MI04MI01PP00MI02PP00iMI03PP00iPP00MI04PP00iPP00k IY262MI05MI01PP00MI02PP00iMI03PP00iPP00MI04PP00iPP00kMI05PP00iPP00kPP00MI06MI01PP00MI02PP00iMI03PP00iPP00MI04PP00iPP00kMI05PP00iPP00kPP00MI06PP00iPP00kPP00mMI07MI01PP00MI02PP00iMI03PP00iPP00MI04PP00iPP00kMI05PP00iPP00kPP00MI06PP00iPP00kPP00mMI07PP00iPP00kPP00mPP00¡6OUTP WARNING: some tests of ns_in40.asl are blocked! G,CHK0pPP00PP01pPP00PP03pPP00PP05MI01PP00MI02PP00PP01MI03PP00PP01PP00MI04PP00PP01PP00PP03MI05PP00PP01PP00PP03PP00MI06PP00PP01PP00PP03PP00PP05MI07PP00PP01PP00PP03PP00PP05PP00MI01MI01PP00MI02MI01PP00MI02PP00PP01MI03MI01PP00MI02PP00PP01MI03PP00PP01PP00MI04MI01PP00MI02PP00PP01MI03PP00PP01PP00MI04PP00PP01PP00PP03 JY262MI05MI01PP00MI02PP00PP01MI03PP00PP01PP00MI04PP00PP01PP00PP03MI05PP00PP01PP00PP03PP00MI06MI01PP00MI02PP00PP01MI03PP00PP01PP00MI04PP00PP01PP00PP03MI05PP00PP01PP00PP03PP00MI06PP00PP01PP00PP03PP00PP05MI07MI01PP00MI02PP00PP01MI03PP00PP01PP00MI04PP00PP01PP00PP03MI05PP00PP01PP00PP03PP00MI06PP00PP01PP00PP03PP00PP05MI07PP00PP01PP00PP03PP00PP05PP00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!«IN41TS__ in41[E000[MX00MMM0IM00 Í«SM00 qwertyui*MMM1IM00 Í«SM00 qwertyui¤ qwertyui[‚D000ID00 Í«[…TZ00ITZ0 Í«[ƒPR00ÿÿÿÿIPR0 Í«[„PW00IPW0 Í«[€R000 €B001  ¡¢£¤[B001 BF00[€R001 € €[R001F000 F001 F002 F003 [‡R001F001BNK0 [†F002F003IF00 IF01 [€R002  €[R002FF00 FF01 FF03 FF05 p CMD0p Í«F000pF000FF00MI01FF00MI02FF00FF00MI03FF00FF00FF00MI04FF00FF00FF00FF00MI05FF00FF00FF00FF00FF00MI06FF00FF00FF00FF00FF00FF00MI07FF00FF00FF00FF00FF00FF00FF00MI01MI01FF00MI02MI01FF00MI02FF00FF00MI03MI01FF00MI02FF00FF00MI03FF00FF00FF00MI04MI01FF00MI02FF00FF00MI03FF00FF00FF00MI04FF00FF00FF00FF00 JY262MI05MI01FF00MI02FF00FF00MI03FF00FF00FF00MI04FF00FF00FF00FF00MI05FF00FF00FF00FF00FF00MI06MI01FF00MI02FF00FF00MI03FF00FF00FF00MI04FF00FF00FF00FF00MI05FF00FF00FF00FF00FF00MI06FF00FF00FF00FF00FF00FF00MI07MI01FF00MI02FF00FF00MI03FF00FF00FF00MI04FF00FF00FF00FF00MI05FF00FF00FF00FF00FF00MI06FF00FF00FF00FF00FF00FF00MI07FF00FF00FF00FF00FF00FF00FF00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pFF00apFF00cpFF00eMI01FF00MI02FF00aMI03FF00aFF00MI04FF00aFF00cMI05FF00aFF00cFF00MI06FF00aFF00cFF00eMI07FF00aFF00cFF00eFF00MI01MI01FF00MI02MI01FF00MI02FF00aMI03MI01FF00MI02FF00aMI03FF00aFF00MI04MI01FF00MI02FF00aMI03FF00aFF00MI04FF00aFF00c IY262MI05MI01FF00MI02FF00aMI03FF00aFF00MI04FF00aFF00cMI05FF00aFF00cFF00MI06MI01FF00MI02FF00aMI03FF00aFF00MI04FF00aFF00cMI05FF00aFF00cFF00MI06FF00aFF00cFF00eMI07MI01FF00MI02FF00aMI03FF00aFF00MI04FF00aFF00cMI05FF00aFF00cFF00MI06FF00aFF00cFF00eMI07FF00aFF00cFF00eFF00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pFF00ipFF00kpFF00mMI01FF00MI02FF00iMI03FF00iFF00MI04FF00iFF00kMI05FF00iFF00kFF00MI06FF00iFF00kFF00mMI07FF00iFF00kFF00mFF00MI01MI01FF00MI02MI01FF00MI02FF00iMI03MI01FF00MI02FF00iMI03FF00iFF00MI04MI01FF00MI02FF00iMI03FF00iFF00MI04FF00iFF00k IY262MI05MI01FF00MI02FF00iMI03FF00iFF00MI04FF00iFF00kMI05FF00iFF00kFF00MI06MI01FF00MI02FF00iMI03FF00iFF00MI04FF00iFF00kMI05FF00iFF00kFF00MI06FF00iFF00kFF00mMI07MI01FF00MI02FF00iMI03FF00iFF00MI04FF00iFF00kMI05FF00iFF00kFF00MI06FF00iFF00kFF00mMI07FF00iFF00kFF00mFF00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pFF00FF01pFF00FF03pFF00FF05MI01FF00MI02FF00FF01MI03FF00FF01FF00MI04FF00FF01FF00FF03MI05FF00FF01FF00FF03FF00MI06FF00FF01FF00FF03FF00FF05MI07FF00FF01FF00FF03FF00FF05FF00MI01MI01FF00MI02MI01FF00MI02FF00FF01MI03MI01FF00MI02FF00FF01MI03FF00FF01FF00MI04MI01FF00MI02FF00FF01MI03FF00FF01FF00MI04FF00FF01FF00FF03 JY262MI05MI01FF00MI02FF00FF01MI03FF00FF01FF00MI04FF00FF01FF00FF03MI05FF00FF01FF00FF03FF00MI06MI01FF00MI02FF00FF01MI03FF00FF01FF00MI04FF00FF01FF00FF03MI05FF00FF01FF00FF03FF00MI06FF00FF01FF00FF03FF00FF05MI07MI01FF00MI02FF00FF01MI03FF00FF01FF00MI04FF00FF01FF00FF03MI05FF00FF01FF00FF03FF00MI06FF00FF01FF00FF03FF00FF05MI07FF00FF01FF00FF03FF00FF05FF00¡6OUTP WARNING: some tests of ns_in40.asl are blocked![€R003 € €[R003F004 F005 [†F004F005IF02 p CMD0p  Í«IF00pIF00IF02MI01IF02MI02IF02IF02MI03IF02IF02IF02MI04IF02IF02IF02IF02MI05IF02IF02IF02IF02IF02MI06IF02IF02IF02IF02IF02IF02MI07IF02IF02IF02IF02IF02IF02IF02MI01MI01IF02MI02MI01IF02MI02IF02IF02MI03MI01IF02MI02IF02IF02MI03IF02IF02IF02MI04MI01IF02MI02IF02IF02MI03IF02IF02IF02MI04IF02IF02IF02IF02 JY262MI05MI01IF02MI02IF02IF02MI03IF02IF02IF02MI04IF02IF02IF02IF02MI05IF02IF02IF02IF02IF02MI06MI01IF02MI02IF02IF02MI03IF02IF02IF02MI04IF02IF02IF02IF02MI05IF02IF02IF02IF02IF02MI06IF02IF02IF02IF02IF02IF02MI07MI01IF02MI02IF02IF02MI03IF02IF02IF02MI04IF02IF02IF02IF02MI05IF02IF02IF02IF02IF02MI06IF02IF02IF02IF02IF02IF02MI07IF02IF02IF02IF02IF02IF02IF02¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pIF02apIF02cpIF02eMI01IF02MI02IF02aMI03IF02aIF02MI04IF02aIF02cMI05IF02aIF02cIF02MI06IF02aIF02cIF02eMI07IF02aIF02cIF02eIF02MI01MI01IF02MI02MI01IF02MI02IF02aMI03MI01IF02MI02IF02aMI03IF02aIF02MI04MI01IF02MI02IF02aMI03IF02aIF02MI04IF02aIF02c IY262MI05MI01IF02MI02IF02aMI03IF02aIF02MI04IF02aIF02cMI05IF02aIF02cIF02MI06MI01IF02MI02IF02aMI03IF02aIF02MI04IF02aIF02cMI05IF02aIF02cIF02MI06IF02aIF02cIF02eMI07MI01IF02MI02IF02aMI03IF02aIF02MI04IF02aIF02cMI05IF02aIF02cIF02MI06IF02aIF02cIF02eMI07IF02aIF02cIF02eIF02¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pIF02ipIF02kpIF02mMI01IF02MI02IF02iMI03IF02iIF02MI04IF02iIF02kMI05IF02iIF02kIF02MI06IF02iIF02kIF02mMI07IF02iIF02kIF02mIF02MI01MI01IF02MI02MI01IF02MI02IF02iMI03MI01IF02MI02IF02iMI03IF02iIF02MI04MI01IF02MI02IF02iMI03IF02iIF02MI04IF02iIF02k IY262MI05MI01IF02MI02IF02iMI03IF02iIF02MI04IF02iIF02kMI05IF02iIF02kIF02MI06MI01IF02MI02IF02iMI03IF02iIF02MI04IF02iIF02kMI05IF02iIF02kIF02MI06IF02iIF02kIF02mMI07MI01IF02MI02IF02iMI03IF02iIF02MI04IF02iIF02kMI05IF02iIF02kIF02MI06IF02iIF02kIF02mMI07IF02iIF02kIF02mIF02¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pIF02FF01pIF02FF03pIF02FF05MI01IF02MI02IF02FF01MI03IF02FF01IF02MI04IF02FF01IF02FF03MI05IF02FF01IF02FF03IF02MI06IF02FF01IF02FF03IF02FF05MI07IF02FF01IF02FF03IF02FF05IF02MI01MI01IF02MI02MI01IF02MI02IF02FF01MI03MI01IF02MI02IF02FF01MI03IF02FF01IF02MI04MI01IF02MI02IF02FF01MI03IF02FF01IF02MI04IF02FF01IF02FF03 JY262MI05MI01IF02MI02IF02FF01MI03IF02FF01IF02MI04IF02FF01IF02FF03MI05IF02FF01IF02FF03IF02MI06MI01IF02MI02IF02FF01MI03IF02FF01IF02MI04IF02FF01IF02FF03MI05IF02FF01IF02FF03IF02MI06IF02FF01IF02FF03IF02FF05MI07MI01IF02MI02IF02FF01MI03IF02FF01IF02MI04IF02FF01IF02FF03MI05IF02FF01IF02FF03IF02MI06IF02FF01IF02FF03IF02FF05MI07IF02FF01IF02FF03IF02FF05IF02¡6OUTP WARNING: some tests of ns_in40.asl are blocked![€R004  €[ R004F006 [‡R004F006BNK1 p CMD0p  Í«BNK0pBNK0BNK1MI01BNK1MI02BNK1BNK1MI03BNK1BNK1BNK1MI04BNK1BNK1BNK1BNK1MI05BNK1BNK1BNK1BNK1BNK1MI06BNK1BNK1BNK1BNK1BNK1BNK1MI07BNK1BNK1BNK1BNK1BNK1BNK1BNK1MI01MI01BNK1MI02MI01BNK1MI02BNK1BNK1MI03MI01BNK1MI02BNK1BNK1MI03BNK1BNK1BNK1MI04MI01BNK1MI02BNK1BNK1MI03BNK1BNK1BNK1MI04BNK1BNK1BNK1BNK1 JY262MI05MI01BNK1MI02BNK1BNK1MI03BNK1BNK1BNK1MI04BNK1BNK1BNK1BNK1MI05BNK1BNK1BNK1BNK1BNK1MI06MI01BNK1MI02BNK1BNK1MI03BNK1BNK1BNK1MI04BNK1BNK1BNK1BNK1MI05BNK1BNK1BNK1BNK1BNK1MI06BNK1BNK1BNK1BNK1BNK1BNK1MI07MI01BNK1MI02BNK1BNK1MI03BNK1BNK1BNK1MI04BNK1BNK1BNK1BNK1MI05BNK1BNK1BNK1BNK1BNK1MI06BNK1BNK1BNK1BNK1BNK1BNK1MI07BNK1BNK1BNK1BNK1BNK1BNK1BNK1¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pBNK1apBNK1cpBNK1eMI01BNK1MI02BNK1aMI03BNK1aBNK1MI04BNK1aBNK1cMI05BNK1aBNK1cBNK1MI06BNK1aBNK1cBNK1eMI07BNK1aBNK1cBNK1eBNK1MI01MI01BNK1MI02MI01BNK1MI02BNK1aMI03MI01BNK1MI02BNK1aMI03BNK1aBNK1MI04MI01BNK1MI02BNK1aMI03BNK1aBNK1MI04BNK1aBNK1c IY262MI05MI01BNK1MI02BNK1aMI03BNK1aBNK1MI04BNK1aBNK1cMI05BNK1aBNK1cBNK1MI06MI01BNK1MI02BNK1aMI03BNK1aBNK1MI04BNK1aBNK1cMI05BNK1aBNK1cBNK1MI06BNK1aBNK1cBNK1eMI07MI01BNK1MI02BNK1aMI03BNK1aBNK1MI04BNK1aBNK1cMI05BNK1aBNK1cBNK1MI06BNK1aBNK1cBNK1eMI07BNK1aBNK1cBNK1eBNK1¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pBNK1ipBNK1kpBNK1mMI01BNK1MI02BNK1iMI03BNK1iBNK1MI04BNK1iBNK1kMI05BNK1iBNK1kBNK1MI06BNK1iBNK1kBNK1mMI07BNK1iBNK1kBNK1mBNK1MI01MI01BNK1MI02MI01BNK1MI02BNK1iMI03MI01BNK1MI02BNK1iMI03BNK1iBNK1MI04MI01BNK1MI02BNK1iMI03BNK1iBNK1MI04BNK1iBNK1k IY262MI05MI01BNK1MI02BNK1iMI03BNK1iBNK1MI04BNK1iBNK1kMI05BNK1iBNK1kBNK1MI06MI01BNK1MI02BNK1iMI03BNK1iBNK1MI04BNK1iBNK1kMI05BNK1iBNK1kBNK1MI06BNK1iBNK1kBNK1mMI07MI01BNK1MI02BNK1iMI03BNK1iBNK1MI04BNK1iBNK1kMI05BNK1iBNK1kBNK1MI06BNK1iBNK1kBNK1mMI07BNK1iBNK1kBNK1mBNK1¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pBNK1FF01pBNK1FF03pBNK1FF05MI01BNK1MI02BNK1FF01MI03BNK1FF01BNK1MI04BNK1FF01BNK1FF03MI05BNK1FF01BNK1FF03BNK1MI06BNK1FF01BNK1FF03BNK1FF05MI07BNK1FF01BNK1FF03BNK1FF05BNK1MI01MI01BNK1MI02MI01BNK1MI02BNK1FF01MI03MI01BNK1MI02BNK1FF01MI03BNK1FF01BNK1MI04MI01BNK1MI02BNK1FF01MI03BNK1FF01BNK1MI04BNK1FF01BNK1FF03 JY262MI05MI01BNK1MI02BNK1FF01MI03BNK1FF01BNK1MI04BNK1FF01BNK1FF03MI05BNK1FF01BNK1FF03BNK1MI06MI01BNK1MI02BNK1FF01MI03BNK1FF01BNK1MI04BNK1FF01BNK1FF03MI05BNK1FF01BNK1FF03BNK1MI06BNK1FF01BNK1FF03BNK1FF05MI07MI01BNK1MI02BNK1FF01MI03BNK1FF01BNK1MI04BNK1FF01BNK1FF03MI05BNK1FF01BNK1FF03BNK1MI06BNK1FF01BNK1FF03BNK1FF05MI07BNK1FF01BNK1FF03BNK1FF05BNK1¡6OUTP WARNING: some tests of ns_in40.asl are blocked!B002  ¡¢£¤[B002 BF01p CMD0p  Í«BF00pBF00BF01MI01BF01MI02BF01BF01MI03BF01BF01BF01MI04BF01BF01BF01BF01MI05BF01BF01BF01BF01BF01MI06BF01BF01BF01BF01BF01BF01MI07BF01BF01BF01BF01BF01BF01BF01MI01MI01BF01MI02MI01BF01MI02BF01BF01MI03MI01BF01MI02BF01BF01MI03BF01BF01BF01MI04MI01BF01MI02BF01BF01MI03BF01BF01BF01MI04BF01BF01BF01BF01 JY262MI05MI01BF01MI02BF01BF01MI03BF01BF01BF01MI04BF01BF01BF01BF01MI05BF01BF01BF01BF01BF01MI06MI01BF01MI02BF01BF01MI03BF01BF01BF01MI04BF01BF01BF01BF01MI05BF01BF01BF01BF01BF01MI06BF01BF01BF01BF01BF01BF01MI07MI01BF01MI02BF01BF01MI03BF01BF01BF01MI04BF01BF01BF01BF01MI05BF01BF01BF01BF01BF01MI06BF01BF01BF01BF01BF01BF01MI07BF01BF01BF01BF01BF01BF01BF01¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pBF01apBF01cpBF01eMI01BF01MI02BF01aMI03BF01aBF01MI04BF01aBF01cMI05BF01aBF01cBF01MI06BF01aBF01cBF01eMI07BF01aBF01cBF01eBF01MI01MI01BF01MI02MI01BF01MI02BF01aMI03MI01BF01MI02BF01aMI03BF01aBF01MI04MI01BF01MI02BF01aMI03BF01aBF01MI04BF01aBF01c IY262MI05MI01BF01MI02BF01aMI03BF01aBF01MI04BF01aBF01cMI05BF01aBF01cBF01MI06MI01BF01MI02BF01aMI03BF01aBF01MI04BF01aBF01cMI05BF01aBF01cBF01MI06BF01aBF01cBF01eMI07MI01BF01MI02BF01aMI03BF01aBF01MI04BF01aBF01cMI05BF01aBF01cBF01MI06BF01aBF01cBF01eMI07BF01aBF01cBF01eBF01¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pBF01ipBF01kpBF01mMI01BF01MI02BF01iMI03BF01iBF01MI04BF01iBF01kMI05BF01iBF01kBF01MI06BF01iBF01kBF01mMI07BF01iBF01kBF01mBF01MI01MI01BF01MI02MI01BF01MI02BF01iMI03MI01BF01MI02BF01iMI03BF01iBF01MI04MI01BF01MI02BF01iMI03BF01iBF01MI04BF01iBF01k IY262MI05MI01BF01MI02BF01iMI03BF01iBF01MI04BF01iBF01kMI05BF01iBF01kBF01MI06MI01BF01MI02BF01iMI03BF01iBF01MI04BF01iBF01kMI05BF01iBF01kBF01MI06BF01iBF01kBF01mMI07MI01BF01MI02BF01iMI03BF01iBF01MI04BF01iBF01kMI05BF01iBF01kBF01MI06BF01iBF01kBF01mMI07BF01iBF01kBF01mBF01¡6OUTP WARNING: some tests of ns_in40.asl are blocked!II06II07II08pBF01II06pBF01II07pBF01II08MI01BF01MI02BF01II06MI03BF01II06BF01MI04BF01II06BF01II07MI05BF01II06BF01II07BF01MI06BF01II06BF01II07BF01II08MI07BF01II06BF01II07BF01II08BF01MI01MI01BF01MI02MI01BF01MI02BF01II06MI03MI01BF01MI02BF01II06MI03BF01II06BF01MI04MI01BF01MI02BF01II06MI03BF01II06BF01MI04BF01II06BF01II07 JY262MI05MI01BF01MI02BF01II06MI03BF01II06BF01MI04BF01II06BF01II07MI05BF01II06BF01II07BF01MI06MI01BF01MI02BF01II06MI03BF01II06BF01MI04BF01II06BF01II07MI05BF01II06BF01II07BF01MI06BF01II06BF01II07BF01II08MI07MI01BF01MI02BF01II06MI03BF01II06BF01MI04BF01II06BF01II07MI05BF01II06BF01II07BF01MI06BF01II06BF01II07BF01II08MI07BF01II06BF01II07BF01II08BF01¡6OUTP WARNING: some tests of ns_in40.asl are blocked!p CMD0MI01D000MI02D000D000MI03D000D000D000MI04D000D000D000D000MI05D000D000D000D000D000MI06D000D000D000D000D000D000MI07D000D000D000D000D000D000D000MI01MI01D000MI02MI01D000MI02D000D000MI03MI01D000MI02D000D000MI03D000D000D000MI04MI01D000MI02D000D000MI03D000D000D000MI04D000D000D000D000 JY262MI05MI01D000MI02D000D000MI03D000D000D000MI04D000D000D000D000MI05D000D000D000D000D000MI06MI01D000MI02D000D000MI03D000D000D000MI04D000D000D000D000MI05D000D000D000D000D000MI06D000D000D000D000D000D000MI07MI01D000MI02D000D000MI03D000D000D000MI04D000D000D000D000MI05D000D000D000D000D000MI06D000D000D000D000D000D000MI07D000D000D000D000D000D000D000¡6OUTP WARNING: some tests of ns_in40.asl are blocked! BFSLC0pD000apD000cpD000eMI01D000MI02D000aMI03D000aD000MI04D000aD000cMI05D000aD000cD000MI06D000aD000cD000eMI07D000aD000cD000eD000MI01MI01D000MI02MI01D000MI02D000aMI03MI01D000MI02D000aMI03D000aD000MI04MI01D000MI02D000aMI03D000aD000MI04D000aD000c IY262MI05MI01D000MI02D000aMI03D000aD000MI04D000aD000cMI05D000aD000cD000MI06MI01D000MI02D000aMI03D000aD000MI04D000aD000cMI05D000aD000cD000MI06D000aD000cD000eMI07MI01D000MI02D000aMI03D000aD000MI04D000aD000cMI05D000aD000cD000MI06D000aD000cD000eMI07D000aD000cD000eD000¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pD000ipD000kpD000mMI01D000MI02D000iMI03D000iD000MI04D000iD000kMI05D000iD000kD000MI06D000iD000kD000mMI07D000iD000kD000mD000MI01MI01D000MI02MI01D000MI02D000iMI03MI01D000MI02D000iMI03D000iD000MI04MI01D000MI02D000iMI03D000iD000MI04D000iD000k IY262MI05MI01D000MI02D000iMI03D000iD000MI04D000iD000kMI05D000iD000kD000MI06MI01D000MI02D000iMI03D000iD000MI04D000iD000kMI05D000iD000kD000MI06D000iD000kD000mMI07MI01D000MI02D000iMI03D000iD000MI04D000iD000kMI05D000iD000kD000MI06D000iD000kD000mMI07D000iD000kD000mD000¡6OUTP WARNING: some tests of ns_in40.asl are blocked!p CMD0MI01E000MI02E000E000MI03E000E000E000MI04E000E000E000E000MI05E000E000E000E000E000MI06E000E000E000E000E000E000MI07E000E000E000E000E000E000E000MI01MI01E000MI02MI01E000MI02E000E000MI03MI01E000MI02E000E000MI03E000E000E000MI04MI01E000MI02E000E000MI03E000E000E000MI04E000E000E000E000 JY262MI05MI01E000MI02E000E000MI03E000E000E000MI04E000E000E000E000MI05E000E000E000E000E000MI06MI01E000MI02E000E000MI03E000E000E000MI04E000E000E000E000MI05E000E000E000E000E000MI06E000E000E000E000E000E000MI07MI01E000MI02E000E000MI03E000E000E000MI04E000E000E000E000MI05E000E000E000E000E000MI06E000E000E000E000E000E000MI07E000E000E000E000E000E000E000¡6OUTP WARNING: some tests of ns_in40.asl are blocked! BFSLC0pE000`pE000bpE000dMI01E000MI02E000`MI03E000`E000MI04E000`E000bMI05E000`E000bE000MI06E000`E000bE000dMI07E000`E000bE000dE000MI01MI01E000MI02MI01E000MI02E000`MI03MI01E000MI02E000`MI03E000`E000MI04MI01E000MI02E000`MI03E000`E000MI04E000`E000b IY262MI05MI01E000MI02E000`MI03E000`E000MI04E000`E000bMI05E000`E000bE000MI06MI01E000MI02E000`MI03E000`E000MI04E000`E000bMI05E000`E000bE000MI06E000`E000bE000dMI07MI01E000MI02E000`MI03E000`E000MI04E000`E000bMI05E000`E000bE000MI06E000`E000bE000dMI07E000`E000bE000dE000¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pE000hpE000jpE000lMI01E000MI02E000hMI03E000hE000MI04E000hE000jMI05E000hE000jE000MI06E000hE000jE000lMI07E000hE000jE000lE000MI01MI01E000MI02MI01E000MI02E000hMI03MI01E000MI02E000hMI03E000hE000MI04MI01E000MI02E000hMI03E000hE000MI04E000hE000j IY262MI05MI01E000MI02E000hMI03E000hE000MI04E000hE000jMI05E000hE000jE000MI06MI01E000MI02E000hMI03E000hE000MI04E000hE000jMI05E000hE000jE000MI06E000hE000jE000lMI07MI01E000MI02E000hMI03E000hE000MI04E000hE000jMI05E000hE000jE000MI06E000hE000jE000lMI07E000hE000jE000lE000¡6OUTP WARNING: some tests of ns_in40.asl are blocked!p CMD0MI01MX00MI02MX00MX00MI03MX00MX00MX00MI04MX00MX00MX00MX00MI05MX00MX00MX00MX00MX00MI06MX00MX00MX00MX00MX00MX00MI07MX00MX00MX00MX00MX00MX00MX00MI01MI01MX00MI02MI01MX00MI02MX00MX00MI03MI01MX00MI02MX00MX00MI03MX00MX00MX00MI04MI01MX00MI02MX00MX00MI03MX00MX00MX00MI04MX00MX00MX00MX00 JY262MI05MI01MX00MI02MX00MX00MI03MX00MX00MX00MI04MX00MX00MX00MX00MI05MX00MX00MX00MX00MX00MI06MI01MX00MI02MX00MX00MI03MX00MX00MX00MI04MX00MX00MX00MX00MI05MX00MX00MX00MX00MX00MI06MX00MX00MX00MX00MX00MX00MI07MI01MX00MI02MX00MX00MI03MX00MX00MX00MI04MX00MX00MX00MX00MI05MX00MX00MX00MX00MX00MI06MX00MX00MX00MX00MX00MX00MI07MX00MX00MX00MX00MX00MX00MX00¡6OUTP WARNING: some tests of ns_in40.asl are blocked! BFSLCKpMX00apMX00cpMX00eMI01MX00MI02MX00aMI03MX00aMX00MI04MX00aMX00cMI05MX00aMX00cMX00MI06MX00aMX00cMX00eMI07MX00aMX00cMX00eMX00MI01MI01MX00MI02MI01MX00MI02MX00aMI03MI01MX00MI02MX00aMI03MX00aMX00MI04MI01MX00MI02MX00aMI03MX00aMX00MI04MX00aMX00c IY262MI05MI01MX00MI02MX00aMI03MX00aMX00MI04MX00aMX00cMI05MX00aMX00cMX00MI06MI01MX00MI02MX00aMI03MX00aMX00MI04MX00aMX00cMI05MX00aMX00cMX00MI06MX00aMX00cMX00eMI07MI01MX00MI02MX00aMI03MX00aMX00MI04MX00aMX00cMI05MX00aMX00cMX00MI06MX00aMX00cMX00eMI07MX00aMX00cMX00eMX00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pMX00ipMX00kpMX00mMI01MX00MI02MX00iMI03MX00iMX00MI04MX00iMX00kMI05MX00iMX00kMX00MI06MX00iMX00kMX00mMI07MX00iMX00kMX00mMX00MI01MI01MX00MI02MI01MX00MI02MX00iMI03MI01MX00MI02MX00iMI03MX00iMX00MI04MI01MX00MI02MX00iMI03MX00iMX00MI04MX00iMX00k IY262MI05MI01MX00MI02MX00iMI03MX00iMX00MI04MX00iMX00kMI05MX00iMX00kMX00MI06MI01MX00MI02MX00iMI03MX00iMX00MI04MX00iMX00kMI05MX00iMX00kMX00MI06MX00iMX00kMX00mMI07MI01MX00MI02MX00iMI03MX00iMX00MI04MX00iMX00kMI05MX00iMX00kMX00MI06MX00iMX00kMX00mMI07MX00iMX00kMX00mMX00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!p CMD0MI01R000MI02R000R000MI03R000R000R000MI04R000R000R000R000MI05R000R000R000R000R000MI06R000R000R000R000R000R000MI07R000R000R000R000R000R000R000MI01MI01R000MI02MI01R000MI02R000R000MI03MI01R000MI02R000R000MI03R000R000R000MI04MI01R000MI02R000R000MI03R000R000R000MI04R000R000R000R000 JY262MI05MI01R000MI02R000R000MI03R000R000R000MI04R000R000R000R000MI05R000R000R000R000R000MI06MI01R000MI02R000R000MI03R000R000R000MI04R000R000R000R000MI05R000R000R000R000R000MI06R000R000R000R000R000R000MI07MI01R000MI02R000R000MI03R000R000R000MI04R000R000R000R000MI05R000R000R000R000R000MI06R000R000R000R000R000R000MI07R000R000R000R000R000R000R000¡6OUTP WARNING: some tests of ns_in40.asl are blocked! BFSLCKpR000apR000cpR000eMI01R000MI02R000aMI03R000aR000MI04R000aR000cMI05R000aR000cR000MI06R000aR000cR000eMI07R000aR000cR000eR000MI01MI01R000MI02MI01R000MI02R000aMI03MI01R000MI02R000aMI03R000aR000MI04MI01R000MI02R000aMI03R000aR000MI04R000aR000c IY262MI05MI01R000MI02R000aMI03R000aR000MI04R000aR000cMI05R000aR000cR000MI06MI01R000MI02R000aMI03R000aR000MI04R000aR000cMI05R000aR000cR000MI06R000aR000cR000eMI07MI01R000MI02R000aMI03R000aR000MI04R000aR000cMI05R000aR000cR000MI06R000aR000cR000eMI07R000aR000cR000eR000¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pR000ipR000kpR000mMI01R000MI02R000iMI03R000iR000MI04R000iR000kMI05R000iR000kR000MI06R000iR000kR000mMI07R000iR000kR000mR000MI01MI01R000MI02MI01R000MI02R000iMI03MI01R000MI02R000iMI03R000iR000MI04MI01R000MI02R000iMI03R000iR000MI04R000iR000k IY262MI05MI01R000MI02R000iMI03R000iR000MI04R000iR000kMI05R000iR000kR000MI06MI01R000MI02R000iMI03R000iR000MI04R000iR000kMI05R000iR000kR000MI06R000iR000kR000mMI07MI01R000MI02R000iMI03R000iR000MI04R000iR000kMI05R000iR000kR000MI06R000iR000kR000mMI07R000iR000kR000mR000¡6OUTP WARNING: some tests of ns_in40.asl are blocked!p CMD0MI01PW00MI02PW00PW00MI03PW00PW00PW00MI04PW00PW00PW00PW00MI05PW00PW00PW00PW00PW00MI06PW00PW00PW00PW00PW00PW00MI07PW00PW00PW00PW00PW00PW00PW00MI01MI01PW00MI02MI01PW00MI02PW00PW00MI03MI01PW00MI02PW00PW00MI03PW00PW00PW00MI04MI01PW00MI02PW00PW00MI03PW00PW00PW00MI04PW00PW00PW00PW00 JY262MI05MI01PW00MI02PW00PW00MI03PW00PW00PW00MI04PW00PW00PW00PW00MI05PW00PW00PW00PW00PW00MI06MI01PW00MI02PW00PW00MI03PW00PW00PW00MI04PW00PW00PW00PW00MI05PW00PW00PW00PW00PW00MI06PW00PW00PW00PW00PW00PW00MI07MI01PW00MI02PW00PW00MI03PW00PW00PW00MI04PW00PW00PW00PW00MI05PW00PW00PW00PW00PW00MI06PW00PW00PW00PW00PW00PW00MI07PW00PW00PW00PW00PW00PW00PW00¡6OUTP WARNING: some tests of ns_in40.asl are blocked! BFSLCKpPW00apPW00cpPW00eMI01PW00MI02PW00aMI03PW00aPW00MI04PW00aPW00cMI05PW00aPW00cPW00MI06PW00aPW00cPW00eMI07PW00aPW00cPW00ePW00MI01MI01PW00MI02MI01PW00MI02PW00aMI03MI01PW00MI02PW00aMI03PW00aPW00MI04MI01PW00MI02PW00aMI03PW00aPW00MI04PW00aPW00c IY262MI05MI01PW00MI02PW00aMI03PW00aPW00MI04PW00aPW00cMI05PW00aPW00cPW00MI06MI01PW00MI02PW00aMI03PW00aPW00MI04PW00aPW00cMI05PW00aPW00cPW00MI06PW00aPW00cPW00eMI07MI01PW00MI02PW00aMI03PW00aPW00MI04PW00aPW00cMI05PW00aPW00cPW00MI06PW00aPW00cPW00eMI07PW00aPW00cPW00ePW00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pPW00ipPW00kpPW00mMI01PW00MI02PW00iMI03PW00iPW00MI04PW00iPW00kMI05PW00iPW00kPW00MI06PW00iPW00kPW00mMI07PW00iPW00kPW00mPW00MI01MI01PW00MI02MI01PW00MI02PW00iMI03MI01PW00MI02PW00iMI03PW00iPW00MI04MI01PW00MI02PW00iMI03PW00iPW00MI04PW00iPW00k IY262MI05MI01PW00MI02PW00iMI03PW00iPW00MI04PW00iPW00kMI05PW00iPW00kPW00MI06MI01PW00MI02PW00iMI03PW00iPW00MI04PW00iPW00kMI05PW00iPW00kPW00MI06PW00iPW00kPW00mMI07MI01PW00MI02PW00iMI03PW00iPW00MI04PW00iPW00kMI05PW00iPW00kPW00MI06PW00iPW00kPW00mMI07PW00iPW00kPW00mPW00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!p CMD0MI01PR00MI02PR00PR00MI03PR00PR00PR00MI04PR00PR00PR00PR00MI05PR00PR00PR00PR00PR00MI06PR00PR00PR00PR00PR00PR00MI07PR00PR00PR00PR00PR00PR00PR00MI01MI01PR00MI02MI01PR00MI02PR00PR00MI03MI01PR00MI02PR00PR00MI03PR00PR00PR00MI04MI01PR00MI02PR00PR00MI03PR00PR00PR00MI04PR00PR00PR00PR00 JY262MI05MI01PR00MI02PR00PR00MI03PR00PR00PR00MI04PR00PR00PR00PR00MI05PR00PR00PR00PR00PR00MI06MI01PR00MI02PR00PR00MI03PR00PR00PR00MI04PR00PR00PR00PR00MI05PR00PR00PR00PR00PR00MI06PR00PR00PR00PR00PR00PR00MI07MI01PR00MI02PR00PR00MI03PR00PR00PR00MI04PR00PR00PR00PR00MI05PR00PR00PR00PR00PR00MI06PR00PR00PR00PR00PR00PR00MI07PR00PR00PR00PR00PR00PR00PR00¡6OUTP WARNING: some tests of ns_in40.asl are blocked! BFSLCKpPR00apPR00cpPR00eMI01PR00MI02PR00aMI03PR00aPR00MI04PR00aPR00cMI05PR00aPR00cPR00MI06PR00aPR00cPR00eMI07PR00aPR00cPR00ePR00MI01MI01PR00MI02MI01PR00MI02PR00aMI03MI01PR00MI02PR00aMI03PR00aPR00MI04MI01PR00MI02PR00aMI03PR00aPR00MI04PR00aPR00c IY262MI05MI01PR00MI02PR00aMI03PR00aPR00MI04PR00aPR00cMI05PR00aPR00cPR00MI06MI01PR00MI02PR00aMI03PR00aPR00MI04PR00aPR00cMI05PR00aPR00cPR00MI06PR00aPR00cPR00eMI07MI01PR00MI02PR00aMI03PR00aPR00MI04PR00aPR00cMI05PR00aPR00cPR00MI06PR00aPR00cPR00eMI07PR00aPR00cPR00ePR00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pPR00ipPR00kpPR00mMI01PR00MI02PR00iMI03PR00iPR00MI04PR00iPR00kMI05PR00iPR00kPR00MI06PR00iPR00kPR00mMI07PR00iPR00kPR00mPR00MI01MI01PR00MI02MI01PR00MI02PR00iMI03MI01PR00MI02PR00iMI03PR00iPR00MI04MI01PR00MI02PR00iMI03PR00iPR00MI04PR00iPR00k IY262MI05MI01PR00MI02PR00iMI03PR00iPR00MI04PR00iPR00kMI05PR00iPR00kPR00MI06MI01PR00MI02PR00iMI03PR00iPR00MI04PR00iPR00kMI05PR00iPR00kPR00MI06PR00iPR00kPR00mMI07MI01PR00MI02PR00iMI03PR00iPR00MI04PR00iPR00kMI05PR00iPR00kPR00MI06PR00iPR00kPR00mMI07PR00iPR00kPR00mPR00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!p CMD0MI01TZ00MI02TZ00TZ00MI03TZ00TZ00TZ00MI04TZ00TZ00TZ00TZ00MI05TZ00TZ00TZ00TZ00TZ00MI06TZ00TZ00TZ00TZ00TZ00TZ00MI07TZ00TZ00TZ00TZ00TZ00TZ00TZ00MI01MI01TZ00MI02MI01TZ00MI02TZ00TZ00MI03MI01TZ00MI02TZ00TZ00MI03TZ00TZ00TZ00MI04MI01TZ00MI02TZ00TZ00MI03TZ00TZ00TZ00MI04TZ00TZ00TZ00TZ00 JY262MI05MI01TZ00MI02TZ00TZ00MI03TZ00TZ00TZ00MI04TZ00TZ00TZ00TZ00MI05TZ00TZ00TZ00TZ00TZ00MI06MI01TZ00MI02TZ00TZ00MI03TZ00TZ00TZ00MI04TZ00TZ00TZ00TZ00MI05TZ00TZ00TZ00TZ00TZ00MI06TZ00TZ00TZ00TZ00TZ00TZ00MI07MI01TZ00MI02TZ00TZ00MI03TZ00TZ00TZ00MI04TZ00TZ00TZ00TZ00MI05TZ00TZ00TZ00TZ00TZ00MI06TZ00TZ00TZ00TZ00TZ00TZ00MI07TZ00TZ00TZ00TZ00TZ00TZ00TZ00¡6OUTP WARNING: some tests of ns_in40.asl are blocked! BFSLCKpTZ00apTZ00cpTZ00eMI01TZ00MI02TZ00aMI03TZ00aTZ00MI04TZ00aTZ00cMI05TZ00aTZ00cTZ00MI06TZ00aTZ00cTZ00eMI07TZ00aTZ00cTZ00eTZ00MI01MI01TZ00MI02MI01TZ00MI02TZ00aMI03MI01TZ00MI02TZ00aMI03TZ00aTZ00MI04MI01TZ00MI02TZ00aMI03TZ00aTZ00MI04TZ00aTZ00c IY262MI05MI01TZ00MI02TZ00aMI03TZ00aTZ00MI04TZ00aTZ00cMI05TZ00aTZ00cTZ00MI06MI01TZ00MI02TZ00aMI03TZ00aTZ00MI04TZ00aTZ00cMI05TZ00aTZ00cTZ00MI06TZ00aTZ00cTZ00eMI07MI01TZ00MI02TZ00aMI03TZ00aTZ00MI04TZ00aTZ00cMI05TZ00aTZ00cTZ00MI06TZ00aTZ00cTZ00eMI07TZ00aTZ00cTZ00eTZ00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!pTZ00ipTZ00kpTZ00mMI01TZ00MI02TZ00iMI03TZ00iTZ00MI04TZ00iTZ00kMI05TZ00iTZ00kTZ00MI06TZ00iTZ00kTZ00mMI07TZ00iTZ00kTZ00mTZ00MI01MI01TZ00MI02MI01TZ00MI02TZ00iMI03MI01TZ00MI02TZ00iMI03TZ00iTZ00MI04MI01TZ00MI02TZ00iMI03TZ00iTZ00MI04TZ00iTZ00k IY262MI05MI01TZ00MI02TZ00iMI03TZ00iTZ00MI04TZ00iTZ00kMI05TZ00iTZ00kTZ00MI06MI01TZ00MI02TZ00iMI03TZ00iTZ00MI04TZ00iTZ00kMI05TZ00iTZ00kTZ00MI06TZ00iTZ00kTZ00mMI07MI01TZ00MI02TZ00iMI03TZ00iTZ00MI04TZ00iTZ00kMI05TZ00iTZ00kTZ00MI06TZ00iTZ00kTZ00mMI07TZ00iTZ00kTZ00mTZ00¡6OUTP WARNING: some tests of ns_in40.asl are blocked!BINI4SRMT in40IN40SRMT in41IN41CH03 ini4Z167Z168 ¨AIN50TS__ in50p Í«`p ar`abv`u`x`abcy`abw`abp`b}`abz`abt`ab{`ab  CHK0…`ab`b‚`b`ab|`ab~`ab€`b’`‘`a`a“`a”`a’•`a•`a’”`a’“`aII31 1Í«II32 2Í«II33 3Í«II34 4Í«II35 5Í«II36 6Í«II37 7Í«II38 8Í«II39 9Í«II3A :Í«II3B ;Í«II3C <Í«II3D =Í«II3E >Í«II3F ?Í«II40 @Í«II41 AÍ«II42 BÍ«II43 CÍ«II44 DÍ«II45 EÍ«II46 FÍ«II47 GÍ«IN51TS__ in51I000 I001 Q I002 !I003 ÙÈ«þI004 Þ¼4I005 Þ¼þI006 xV4I007 I008 ¢Çõ`II00 Í«II01 Í«II02 Í«II03 Í«II04 Í«II05 Í«II06 Í«II07 Í«II08 Í«II09 Í«II0A Í«II0B Í«II0C Í«II0D Í«II0E Í«II0F Í«II10 Í«II11 Í«II12 Í«II13 Í«II14 Í«II15 Í«II16 Í«II17 Í«II18 Í«II19 Í«II1A Í«II1B Í«II1C Í«II1D Í«II1E Í«II1F Í«II20 Í«II21 !Í«II22 "Í«II23 #Í«II24 $Í«II25 %Í«II26 &Í«II27 'Í«II28 (Í«II29 )Í«II2A *Í«II2B +Í«II2C ,Í«II2D -Í«II2E .Í«II2F /Í«II30 0Í«rrrrrrrrrt}{pwyxrrrruI000uI000I000ruI000uI000I000`rrvI000vI000I000rvI000vI000I000ahrruI000vI000I000ruI000vI000I000bi II00c II01 I000jÿII0C II0Dw{rrrrrrp{z}I001 !e II02 !^I000fr II03II04 Í{II05k‚ Í{II06l “´m|I003ÿII07n~I004 ðððøII08g€I005II09II0AÿII0B{p’p’II0BII0EII0Fdp’p’I006II11II12II10p‘’{p‘I007II14II15II13p’{pI007II16II17II18rp“I008 ¢Çõ`II19p“I008  Çõ`II1AII1BII1Crrp”I008 ¢Çõ`II1Dp”I008 £Çõ`II1EII1Frp”I008 ¡Çõ`II20p”I008  Çõ`II21II22II23II24rrp’•I008 ¢Çõ`II25p’•I008 £Çõ`II26II27rp’•I008 ¡Çõ`II28p’•I008  Çõ`II29II2AII2BII2Crrp•I008 ¢Çõ`II2Dp•I008 £Çõ`II2EII2Frp•I008 ¡Çõ`II30p•I008  Çõ`II31II32II33II34rrp’”I008 ¢Çõ`II35p’”I008 £Çõ`II36II37rp’”I008 ¡Çõ`II38p’”I008  Çõ`II39II3AII3BII3Crrp’“I008 ¢Çõ`II3Dp’“I008 £Çõ`II3EII3Frp’“I008 ¡Çõ`II40p’“I008  Çõ`II41II42II43II44 ’“` ERR_TS__Z168`  ’“a *ERR_TS__Z168a * ’“b ¦`ERR_TS__Z168 b ¦` ’“h 6ERR_TS__Z168 h 6 ’“i Ü~ERR_TS__Z168 i Ü~ ’“II00 ERR_TS__Z168 II00  ’“c viERR_TS__Z168 c vi %’“II01 °K;ERR_TS__Z168 II01 °K; ’“j `—vERR_TS__Z168 j `—v ’“e qERR_TS__Z168 e q %’“II02 !îERR_TS__Z168 II02 !î ’“f !NERR_TS__Z168 f !N ’“II03 ERR_TS__Z168 II03  %’“II04 !NERR_TS__Z168 II04 !N ’“II05 ERR_TS__Z168 II05  ’“k (!NERR_TS__Z168 k (!N ’“II06 ERR_TS__Z168 II06  ’“l 9!NERR_TS__Z168 l 9!N ’“m F²úERR_TS__Z168 m F²ú %’“II07 &7TERR_TS__Z168 II07 &7T ’“n léNERR_TS__Z168 n léN %’“II08  ERR_TS__Z168 II08   ’“g mìYERR_TS__Z168 g mìY %’“II09 !CûERR_TS__Z168 II09 !Cû %’“II0A Ž/UERR_TS__Z168 II0A Ž/U %’“II0B Ž/UERR_TS__Z168 II0B Ž/U %’“II0C `—vERR_TS__Z168 II0C `—v %’“II0D `—v ERR_TS__Z168 II0D `—v  ’“II0EERR_TS__Z168 II0E %’“II0F ÿÿÿÿERR_TS__Z168 II0F ÿÿÿÿ ’“d Òg!ERR_TS__Z168 d Òg! %’“II10 Ñg!ERR_TS__Z168 II10 Ñg! ’“II11ERR_TS__Z168 II11 %’“II12 ÿÿÿÿERR_TS__Z168 !II12 ÿÿÿÿ %’“II13 Ñg!ERR_TS__Z168 "II13 Ñg! %’“II14 ÿÿÿÿERR_TS__Z168 #II14 ÿÿÿÿ ’“II15ERR_TS__Z168 $II15 %’“II16 ÿÿÿÿERR_TS__Z168 %II16 ÿÿÿÿ ’“II17ERR_TS__Z168 &II17 %’“II18 Ñg!ERR_TS__Z168 'II18 Ñg! %’“II19 ÿÿÿÿERR_TS__Z168 (II19 ÿÿÿÿ ’“II1AERR_TS__Z168 )II1A %’“II1B ÿÿÿÿERR_TS__Z168 *II1C ÿÿÿÿ %’“II1C Ðg!ERR_TS__Z168 +II1D Ðg! ’“II1DERR_TS__Z168 ,II1D ’“II1EERR_TS__Z168 -II1E ’“II1FERR_TS__Z168 .II1F %’“II20 ÿÿÿÿERR_TS__Z168 /II20 ÿÿÿÿ %’“II21 ÿÿÿÿERR_TS__Z168 0II21 ÿÿÿÿ %’“II22 þÿÿÿERR_TS__Z168 1II22 þÿÿÿ %’“II23 þÿÿÿERR_TS__Z168 2II23 þÿÿÿ %’“II24 Îg!ERR_TS__Z168 3II24 Îg! %’“II25 ÿÿÿÿERR_TS__Z168 4II25 ÿÿÿÿ ’“II26ERR_TS__Z168 5II26 %’“II27 ÿÿÿÿERR_TS__Z168 6II27 ÿÿÿÿ %’“II28 ÿÿÿÿERR_TS__Z168 7II28 ÿÿÿÿ %’“II29 ÿÿÿÿERR_TS__Z168 8II29 ÿÿÿÿ %’“II2A þÿÿÿERR_TS__Z168 9II2A þÿÿÿ %’“II2B ýÿÿÿERR_TS__Z168 :II2B ýÿÿÿ %’“II2C Ëg!ERR_TS__Z168 ;II2C Ëg! ’“II2DERR_TS__Z168 <II2D %’“II2E ÿÿÿÿERR_TS__Z168 =II2E ÿÿÿÿ %’“II2F ÿÿÿÿERR_TS__Z168 >II2F ÿÿÿÿ ’“II30ERR_TS__Z168 ?II30 ’“II31ERR_TS__Z168 @II31 ’“II32ERR_TS__Z168 AII32 %’“II33 ÿÿÿÿERR_TS__Z168 BII33 ÿÿÿÿ %’“II34 Êg!ERR_TS__Z168 CII34 Êg! %’“II35 ÿÿÿÿERR_TS__Z168 DII35 ÿÿÿÿ %’“II36 ÿÿÿÿERR_TS__Z168 EII36 ÿÿÿÿ %’“II37 þÿÿÿERR_TS__Z168 FII37 þÿÿÿ ’“II38ERR_TS__Z168 GII38 ’“II39ERR_TS__Z168 HII39 ’“II3AERR_TS__Z168 III3A %’“II3B þÿÿÿERR_TS__Z168 JII3B þÿÿÿ %’“II3C Èg!ERR_TS__Z168 KII3C Èg! ’“II3DERR_TS__Z168 LII3D %’“II3E ÿÿÿÿERR_TS__Z168 MII3E ÿÿÿÿ %’“II3F ÿÿÿÿERR_TS__Z168 NII3F ÿÿÿÿ %’“II40 ÿÿÿÿERR_TS__Z168 OII40 ÿÿÿÿ %’“II41 ÿÿÿÿERR_TS__Z168 PII41 ÿÿÿÿ %’“II42 þÿÿÿERR_TS__Z168 QII42 þÿÿÿ %’“II43 ýÿÿÿERR_TS__Z168 RII43 ýÿÿÿ %’“II44 Åg!ERR_TS__Z168 SII44 Åg!:INI5SRMT in50IN50SRMT in51IN51CH03 ini5Z168Z171 «FMD00TS__ md00[‚D000I000 Í«I001 [‚D001I000 Í«[…TZ00I000 Í«I002 """" .’“.D000I000 Í«ERR_TS__Z171.D000I000 Í«D001D000 .’“.D000I000 Í«ERR_TS__Z171.D000I000 Í«TZ00D000 /’“.D000I000 Í«ERR_TS__Z171 .D000I000 Í«CH03TS__Z171p.D000I001`CH04TS__ ÿZ171  MDFFSRMT md00  CHK0MD00¡BLCKMDFESRMT dvf2DVF2Z100 dMM401TS__ m401I000I001P000    CH03TS__Z100phI001 MADDrhi`¤`J M001N M002AM003DM004EM005&M006M007¤p I000¤MADDI000M007p `I000¤MADDI000M006p I000¤MADDI000M005p @I000¤MADDI000M004p I000¤MADDI000M003p I000¤MADDI000M002pMADDI000M001` ’“` !CeERR_TS__Z100` !Ce %’“I000 ERR_TS__Z100 I000 CH03TS__Z100 N004SRMT m401-0M401Z101 eIM600TS__ m600I000 Í«/M000p D3"I000 ’“h Í«ERR_TS__Z101h Í«M000I000 $’“I000 D3"ERR_TS__Z101I000 D3"N006SRMT m600M600Z162 ¢E#MS00TS__ ms00IAD1IAD2 IAD3 IAD4 IAD5 IAD6 IAD7 MAD1¤hMAD7¤rrrrrrhijklmn@M000pMAD7MAD1IAD1MAD1IAD2MAD1IAD3MAD1IAD4MAD1IAD5MAD1IAD6MAD7MAD1IAD1MAD1IAD2MAD1IAD3MAD1IAD4MAD1IAD5MAD1IAD6MAD7MAD1IAD1MAD1IAD2MAD1IAD3MAD1IAD4MAD1IAD5MAD1IAD6MAD7MAD1IAD1MAD1IAD2MAD1IAD3MAD1IAD4MAD1IAD5MAD1IAD6MAD7MAD1IAD1MAD1IAD2MAD1IAD3MAD1IAD4MAD1IAD5MAD1IAD6MAD7MAD1IAD1MAD1IAD2MAD1IAD3MAD1IAD4MAD1IAD5MAD1IAD6MAD7MAD1IAD1MAD1IAD2MAD1IAD3MAD1IAD4MAD1IAD5MAD1IAD6MAD1IAD7`p`[1 ’“` wwwERR_TS__Z162` wwwCH03TS__Z162M000CH03TS__Z162 AMS01TS__ ms01I000B000 [B000 BF00TP00'M000pŽh` ’“`TP00ERR_TS__Z162`TP00pC009TP00pC00BTP00pŽBF00` ’“`C016ERR_TS__Z162`C016M000BF00pBF00I000pŽI000` ’“`C009ERR_TS__Z162 `C009pBF00apŽa` ’“`TP00ERR_TS__Z162 `TP00pBF00hpŽh` ’“`TP00ERR_TS__Z162 `TP00CMS02TS__ ms02I000[€R000  [ R000F000TP00'M000pŽh` ’“`TP00ERR_TS__Z162`TP00pC009TP00pŽF000` ’“`C00DERR_TS__Z162`C00DM000F000pF000I000pŽI000` ’“`C009ERR_TS__Z162 `C009pF000apŽa` ’“`TP00ERR_TS__Z162 `TP00pF000hpŽh` ’“`TP00ERR_TS__Z162 `TP00>MSFFSRMT ms00  Y262MS00¡BLCKSRMT ms01MS01SRMT ms02MS02Z161 ¡OMF00TS__ mf00I000 Í«I001 Í«I000I001 *CHK0 $’“I001 Í«ERR_TS__Z161I001 Í«¤POUTNMF01TS__ mf01S000 qwertyuiopS001 _sdfghjklsS000S001`OUTP` FCHK0 ?’“` qwertyuiop_sdfghjklERR_TS__Z161 ` qwertyuiop_sdfghjkl¤POUTBMF02TS__ mf02S000 qwertyuiopS001 _sdfghjkl“ qwerty sdfghj (CHK0 "ERR_TS__Z161  qwerty sdfghj¤POUTNMF03TS__ mf03I000 4,M000M001M002¤¤rI000M002¤rI000M001M000 +CHK1pM000` ’“` h$ERR_TS__Z161 ` h$¤POUTKMF04TS__ mf04I000 Í«M000p n¤rn  M001p nM001 7CHK0pM000` ’“` ERR_TS__Z161 ` CH03TS__Z161 ¤POUTOMF05TS__ mf05M000p h¤rh M000 Í« ,CHK1pM000 Í«` ’“` ERR_TS__Z161 ` ¤POUTFMF06TS__ mf06I000 Í«M000p h¤rh pM000I000` HCHK1 ’“` ERR_TS__Z161 `  %’“I000 Í«ERR_TS__Z161 I000 Í«¤POUTJMF07TS__ mf07M000p h¤rh p Í«gpM000g` BCHK1 ’“` ERR_TS__Z161 `  ’“g Í«ERR_TS__Z161 g Í«¤POUTC MF08TS__ mf08PR__I001B000 [B000 BF00’“BF00 € HCHK0pBF00`’“` €p`a’“a € PR__OUTP`OUTPBF00p €BF00  PR__OUTPBF00p €BF00 ’“BF00 €ERR_TS__Z161 BF00 €¤POUT@MF09TS__ mf09S000 qqqqqqqqqqqqqqp 8ˆS000 )CHK0pƒˆS000` ’“` 8ERR_TS__Z161 ` 8¤POUTNMF0ATS__ mf0a[€R000  [ R000F000 *M000M001p h¤rh rh`p`hprhM001h`¤`M001 M001¤rh prhM001h`¤`p xV4F000pM000F000` LCHK1 ’“` žV4ERR_TS__Z161 ` žV4 %’“F000 xV4ERR_TS__Z161 F000 xV4p uV4F000pM001F000` LCHK1 ’“` ï¬h$ERR_TS__Z161 ` ï¬h$ %’“F000 uV4ERR_TS__Z161 F000 uV4¤POUTEMF0BTS__ mf0b[€R000  [R000F000 F001 [‡R000F001BNK0 *M000M001p h¤rh rh`p`hprhM001h`¤`M001 M001¤rh prhM001h`¤`p xV4BNK0pM000BNK0` LCHK1 ’“` žV4ERR_TS__Z161 ` žV4 %’“BNK0 xV4ERR_TS__Z161 BNK0 xV4p uV4BNK0pM001BNK0` LCHK1 ’“` ï¬h$ERR_TS__Z161 ` ï¬h$ %’“BNK0 uV4ERR_TS__Z161 BNK0 uV4¤POUTDMF0CTS__ mf0c[€R000  [R000F000 F001 [†F000F001IF00 *M000M001p h¤rh rh`p`hprhM001h`¤`M001 M001¤rh prhM001h`¤`p xV4IF00pM000IF00` LCHK1 ’“` 8ERR_TS__Z161 ` 8 %’“IF00 ERR_TS__Z161 IF00 p uV4IF00pM001IF00` LCHK1 ’“` )$$$ERR_TS__Z161 ` )$$$ %’“IF00 ERR_TS__Z161 IF00 ¤POUTJ MF0DTS__ mf0dB000 [B000  BF00*M000M001p h¤rh rh`p`hprhM001h`¤`p xV4BF00pM000BF00` LCHK0 ’“` žV4ERR_TS__Z161 ` žV4 %’“BF00 xV4ERR_TS__Z161 BF00 xV4¤POUTO MF0ETS__ mf0eB000 [B000  BF00M001 M001¤rh prhM001h`¤`p uV4BF00pM001BF00` LCHK0 ’“` ï¬h$ERR_TS__Z161 ` ï¬h$ %’“BF00 uV4ERR_TS__Z161 BF00 uV4¤POUTKMF0FTS__ mf0fB000 [B000  BF00*M000M001p h¤rh rh`p`hprhM001h`¤`M001 M001¤rh prhM001h`¤`p xV4BF00pM000BF00` LCHK0 ’“` žV4ERR_TS__Z161 ` žV4 %’“BF00 xV4ERR_TS__Z161 BF00 xV4p uV4BF00pM001BF00` LCHK0 ’“` ï¬h$ERR_TS__Z161 ` ï¬h$ %’“BF00 uV4ERR_TS__Z161 BF00 uV4¤POUT@ MF10TS__ mf10B000 [B000 BF00M000¤hOUTPB000p xV4BF00pM000BF00`OUTPB000 ’“` xV4ERR_TS__Z161 ` xV4 %’“BF00 xV4ERR_TS__Z161 BF00 xV4¤POUT9MF11TS__ mf11B000 B001 “B000B001¤POUTN6MF12TS__ mf12I000I001I002I003I004I005I006I007I008I009I00AI00BI00CFM000@M001JM002D M003N M004H M005B M006LM007FM008@M009:M00A%M00BM00Cp Í«I00Cp Í«I00BM00Cp Í«I00AM00Bp Í«I009M00Ap Í«I008M009p Í«I007M008p Í«I006M007p Í«I005M006p Í«I004M005p Í«I003M004p Í«I002M003p Í«I001M002p Í«I000M001M000 %’“I000 Í«ERR_TS__Z161 I000 Í« %’“I001 Í«ERR_TS__Z161 I001 Í« %’“I002 Í«ERR_TS__Z161 I002 Í« %’“I003 Í«ERR_TS__Z161 I003 Í« %’“I004 Í«ERR_TS__Z161 I004 Í« %’“I005 Í«ERR_TS__Z161 I005 Í« %’“I006 Í«ERR_TS__Z161 I006 Í« %’“I007 Í«ERR_TS__Z161 I007 Í« %’“I008 Í«ERR_TS__Z161 I008 Í« %’“I009 Í«ERR_TS__Z161 I009 Í« %’“I00A Í«ERR_TS__Z161 I00A Í« %’“I00B Í«ERR_TS__Z161 I00B Í« %’“I00C Í«ERR_TS__Z161 I00C Í«¤POUTHFMF13TS__ mf13I000I001I002I003I004I005I006I007I008I009I00AI00BI00CI00DI00EI00FI010M000p Í«I000M001p Í«I001M000M002p Í«I002M001M003p Í«I003M002M004p Í«I004M003M005p Í«I005M004M006p Í«I006M005M007p Í«I007M006M008p Í«I008M007M009p Í«I009M008M00Ap Í«I00AM009M00Bp Í«I00BM00AM00Cp Í«I00CM00BM00Dp Í«I00DM00CM00Ep Í«I00EM00DM00Fp Í«I00FM00EM010p Í«I010M00FM010 %’“I000 Í«ERR_TS__Z161 I000 Í« %’“I001 Í«ERR_TS__Z161 I001 Í« %’“I002 Í«ERR_TS__Z161 I002 Í« %’“I003 Í«ERR_TS__Z161 I003 Í« %’“I004 Í«ERR_TS__Z161 I004 Í« %’“I005 Í«ERR_TS__Z161 I005 Í« %’“I006 Í«ERR_TS__Z161 I006 Í« %’“I007 Í«ERR_TS__Z161 I007 Í« %’“I008 Í«ERR_TS__Z161 I008 Í« %’“I009 Í«ERR_TS__Z161 I009 Í« %’“I00A Í«ERR_TS__Z161 I00A Í« %’“I00B Í«ERR_TS__Z161 I00B Í« %’“I00C Í«ERR_TS__Z161 I00C Í« %’“I00D Í«ERR_TS__Z161 I00D Í« %’“I00E Í«ERR_TS__Z161 I00E Í« %’“I00F Í«ERR_TS__Z161 I00F Í« %’“I010 Í«ERR_TS__Z161 I010 Í«¤POUT+MF14TS__ mf14I000p[3I000OUTPI000¤POUTKMF15TS__ mf15p }V4ap b…ab`OUTP` CHK0 ’“` ERR_TS__Z161 ` ¤POUTHMF16TS__ mf16P000 Í« Í« Í«M000¤hpM000P000`pƒˆ`` ’“` Í«ERR_TS__Z161 ` Í«¤POUTNMF17TS__ mf17P000 Í« Í« Í«"M000PP00 Í« Í« Í«¤PP00pM000`pƒˆ`` ’“` Í«ERR_TS__Z161 ` Í«¤POUTIMF18TS__ mf18S000 qwertyuiopS001 qwertyuiop“S000S001 &CHK0p“S000S001` ’`ERR_TS__Z161 `ÿ¤POUTAMF19TS__ mf19B000 B001 “B000B001 &CHK0p“B000B001` ’`ERR_TS__Z161 `ÿ¤POUTOMF1ATS__ mf1aP000 Í« Í« Í«PP00pP000PP00 /CHK0pƒˆPP00` ’“` Í«ERR_TS__Z161 ` Í«¤POUTAMF1BTS__ mf1bS000 12345678S001 56789012rS000S001 1CHK0prS000S001` ’“` Šæ¬hERR_TS__Z161 ` Šæ¬h¤POUTMMF1CTS__ mf1cB000 B001 $5FWrB000B001 1CHK0prB000B001` ’“` 4FXjERR_TS__Z161 ` 4FXj¤POUTGMF1DTS__ mf1d[€R000  [ R000F000 p Í«F000“F000 Í«p“F000 Í«` ’`ERR_TS__Z161 `ÿ¤POUTEMF1ETS__ mf1e[€R000  [ R000F000 p Í«F000M000p“h Í«`¤`M000F000pM000F000` ’`ERR_TS__Z161 `ÿ¤POUTJMF1FTS__ mf1f[€R000  [ R000F000 p Í«F000&M000 ’“h Í«ERR_TS__Z161 h Í«M000F000¤POUTMMF20TS__ mf20[€R000  [ R000F000 p Í«F000rF000 prF000 ` ’“` Í«ERR_TS__Z161 ` Í«¤POUTMMF21TS__ mf21[€R000  [ R000F000 p Í«F000M000prh `¤`M000F000pM000F000` ’“` Í«ERR_TS__Z161 ` Í«¤POUTOMF22TS__ mf22[€R003 € €[R003F004 F005 [†F004F005IF02 p Í«IF02&M000 ’“h ««««ERR_TS__Z161 h ««««M000IF02¤POUTD MF23TS__ mf23[€R003 € €[R003F004 F005 [†F004F005IF02 p Í«IF02GM000 ’“h ««««ERR_TS__Z161 h «««« ’“i ««««ERR_TS__Z161 i ««««M000IF02IF02¤POUTK MF24TS__ mf24[€R003 € €[R003F004 F005 [†F004F005IF02 p Í«IF02(M001 ’“h ««««ERR_TS__Z161 h ««««¤hIM002 ’“h ««««ERR_TS__Z161 h «««« ’“i ««««ERR_TS__Z161 i ««««¤ipM001IF02`pM002IF02IF02`¤POUTOMF25TS__ mf25[‚D000ID00 Í«pD000apŽa` ’“`C00EERR_TS__Z161`C00E¤POUTDMF27TS__ mf27[E000pE000apŽa` ’“`C00FERR_TS__Z161`C00F¤POUTEMF28TS__ mf28[MX00pMX00apŽa` ’“`C011ERR_TS__Z161`C011¤POUTDMF29TS__ mf29[E000pE000hpŽh` ’“`C00FERR_TS__Z161`C00F¤POUTEMF2ATS__ mf2a[MX00pMX00hpŽh` ’“`C011ERR_TS__Z161`C011¤POUTNMF2BTS__ mf2b[‚D000ID00 Í«pD000apa ,CHK0pD000apŽa` ’“`C00EERR_TS__Z161`C00E¤POUTNMF2CTS__ mf2c[‚D000ID00 Í«pD000hph ,CHK0pD000hpŽh` ’“`C00EERR_TS__Z161`C00E¤POUTC=MSF0SRMT mf00  CHK0MF00¡BLCKSRMT mf01MF01SRMT mf02  CHK0MF02¡BLCKSRMT mf03MF03SRMT mf04  CHK0MF04¡BLCKSRMT mf05MF05SRMT mf06MF06SRMT mf07MF07SRMT mf08  CHK0MF08¡BLCKSRMT mf09  CHK0MF09¡BLCKSRMT mf0aMF0ASRMT mf0bMF0BSRMT mf0cMF0CSRMT mf0d  CHK0MF0D¡BLCKSRMT mf0e  CHK0MF0E¡BLCKSRMT mf0f  CHK0MF0F¡BLCKSRMT mf10  CHK0MF10¡BLCKSRMT mf11  CHK0MF11¡BLCKSRMT mf12  CHK0MF12¡BLCKSRMT mf13  CHK0MF13¡BLCKSRMT mf14  CHK0MF14¡BLCKSRMT mf15  CHK0MF15¡BLCKSRMT mf16MF16SRMT mf17MF17SRMT mf18  CHK0MF18¡BLCKSRMT mf19  CHK0MF19¡BLCKSRMT mf1a  CHK0MF1A¡BLCKSRMT mf1b  CHK0MF1B¡BLCKSRMT mf1c  CHK0MF1C¡BLCKSRMT mf1dMF1DSRMT mf1eMF1ESRMT mf1fMF1FSRMT mf20MF20SRMT mf21MF21SRMT mf22MF22SRMT mf23MF23SRMT mf24MF24SRMT mf25  SLC0MF25¡BLCKSRMT mf26 SLC0CHK0MF26¡BLCKSRMT mf27  SLC0MF27¡BLCKSRMT mf28  SLC0MF28¡BLCKSRMT mf29  SLC0MF29¡BLCKSRMT mf2a  SLC0MF2A¡BLCKSRMT mf2b SLC0CHK0MF2B¡BLCKSRMT mf2c SLC0CHK0MF2C¡BLCKRST8pERRSpRMRCIIN0RST8RST9IIN1@ MAINSTRTIIN0 HSTTT Tests applicable to both AcpiExec and MS-abbu utilitiesTCLTW019INI0INI1INI2INI3INI4INI5MSFFMSF0FTTTpFNSHg  ABUU¤POUT¤gTSTS  ENBL TEST TST_ MAIN IN00MAIN¤\/_SB_ABBUMAINMN00¤\/_SB_ABBUMN00MN01¤\/_SB_ABBUMN01_ABBUMN01acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/UTILITY/AslCompiler.pdf0000700000175000017500000020103614773714143031705 0ustar ivanhuivanhu%PDF-1.2 %âãÏÓ 81 0 obj << /Linearized 1 /O 83 /H [ 1234 380 ] /L 66078 /E 9740 /N 10 /T 64340 >> endobj xref 81 34 0000000016 00000 n 0000001028 00000 n 0000001614 00000 n 0000001823 00000 n 0000002012 00000 n 0000002192 00000 n 0000002213 00000 n 0000002714 00000 n 0000003183 00000 n 0000003371 00000 n 0000003392 00000 n 0000003911 00000 n 0000003932 00000 n 0000004365 00000 n 0000004386 00000 n 0000004863 00000 n 0000004884 00000 n 0000005343 00000 n 0000005364 00000 n 0000005860 00000 n 0000006044 00000 n 0000006226 00000 n 0000006417 00000 n 0000007019 00000 n 0000007608 00000 n 0000007800 00000 n 0000007997 00000 n 0000008393 00000 n 0000008415 00000 n 0000008845 00000 n 0000008867 00000 n 0000009510 00000 n 0000001234 00000 n 0000001592 00000 n trailer << /Size 115 /Info 79 0 R /Root 82 0 R /Prev 64330 /ID[<2ac1c802bd685a1ce4881ba170a958c4><2ac1c802bd685a1ce4881ba170a958c4>] >> startxref 0 %%EOF 82 0 obj << /Type /Catalog /Pages 80 0 R /Outlines 57 0 R /OpenAction [ 83 0 R /XYZ null null null ] /PageMode /UseNone /PageLabels << /Nums [ 1 << /St 2 /S /D >> 2 << /St 3 /S /D >> ] >> >> endobj 113 0 obj << /S 214 /O 292 /Filter /FlateDecode /Length 114 0 R >> stream H‰b```f``¹ÄÀÊÀÀãÁÀË€¼ , l@ÌqCÌŸöóRß5£Í©í+Ž­{ßÕW.’Òx±•Óezd˜¬¨K“djR]úÒ2C7.õ¥3¿N TOötl³ÃoQ™š Ø‘R¢èæéVªÊ$’VÂ(––––ÁÀÀÁÀllltœ‰‹Kˆml ´ Dg40700¸¤5†¦50¦5`¸  ž‹i9 V‹ˆ2pés5Õ0TÈ0Ía¨i`+`(b`»ÁPvʨeÕÄä¦5bˆ¥0În^˜2O$|Ó›©:‡YD`ž³d`x{H‹10p5Ñ/Pñ endstream endobj 114 0 obj 264 endobj 83 0 obj << /Type /Page /Parent 80 0 R /Resources 84 0 R /Contents [ 87 0 R 91 0 R 93 0 R 95 0 R 97 0 R 99 0 R 109 0 R 111 0 R ] /MediaBox [ 0 0 612 792 ] /CropBox [ 0 0 612 792 ] /Rotate 0 >> endobj 84 0 obj << /ProcSet [ /PDF /Text ] /Font << /TT2 88 0 R /TT4 100 0 R /TT6 103 0 R /TT8 107 0 R /TT10 104 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 85 0 obj [ /CalRGB << /WhitePoint [ 0.9505 1 1.089 ] /Gamma [ 2.22221 2.22221 2.22221 ] /Matrix [ 0.4124 0.2126 0.0193 0.3576 0.71519 0.1192 0.1805 0.0722 0.9505 ] >> ] endobj 86 0 obj 423 endobj 87 0 obj << /Filter /FlateDecode /Length 86 0 R >> stream H‰l“±n1 †÷{ ¾@dŠGQÒì¡@N‹LN]´H–xÈëG:‘Òél8€ýSÔOêt¾¸Þ·ßýºœ~\<ü½/þÁ²Š£ä!bpY  /Û÷óÏr[NU{¾¨ör.šŸàá? ó_à~ÁïW„·ZÈ‹ÉÙE*…ViŸRçR“Œ5)ãbM߬ ‰äTU’œšV²Þ´žË_á…]PmI#×49®Yv¢RïƒK5ÙE Ãûr­W—i¥l 1fÌ `Rä¶û¤&‰­É=Ø.U@$fÁ…ç8jn‡&‡xžöŠTÏc=29Á oÓÔv.ÞN^ IA¦ÉOæ8¡zÁÅ‚ kÜ$Aqï«ùŽ}m[¼b#É:4£þÃÜj‹0⤂lîD:€æ_´]²¡îÎ5l1ì˼JO@_G»Èèû¹ÒžB‡XͱGÐý@·wc#™Ö¾æèSµ¶zMk¼Ÿ:nÒß‘M‘ñzôóô»çÙŒ1“ ÓÔv€Ò4ôN’±,| 0>Ðk endstream endobj 88 0 obj << /Type /Font /Subtype /TrueType /FirstChar 32 /LastChar 121 /Widths [ 278 0 0 0 0 0 0 0 0 0 0 584 0 0 278 278 556 556 556 556 556 556 556 0 556 0 0 0 584 0 584 0 0 722 722 722 0 667 611 778 0 278 0 0 611 833 0 778 667 0 722 667 611 722 667 0 0 0 0 0 0 0 0 0 0 556 611 556 611 556 333 611 611 278 278 0 278 889 611 611 611 611 389 556 333 611 556 778 556 556 ] /Encoding /WinAnsiEncoding /BaseFont /Arial-BoldMT /FontDescriptor 89 0 R >> endobj 89 0 obj << /Type /FontDescriptor /Ascent 905 /CapHeight 0 /Descent -211 /Flags 32 /FontBBox [ -628 -376 2034 1048 ] /FontName /Arial-BoldMT /ItalicAngle 0 /StemV 133 >> endobj 90 0 obj 441 endobj 91 0 obj << /Filter /FlateDecode /Length 90 0 R >> stream H‰t”Anã0 E÷:…—U)J¦èís©oP4‹¢ÝtÓë—Ö§KH ñû’¢ÏOÂ!%ZÒ"Ub)ËG8„Ma‹¤2OBçµXc…¢.ˆBÈ2%²GJL2 Ôm”f4GXºyziÙ}ªÙSßÛl%»xˆ (\Ô¨: R†#5š¯­VÒ/ŒJTçYðžˆçwW¶_¦x¬[4z*ެž— —ÇðwÏûÎKZöKÈGAdŸö€+IºÍý3в¿_ßááÿŸý=üÛC"sj·TZ£m]žr¶ˆ—¯·pikÅô9‘cÁ–¹Ë/A{ûêaç3l›G_aïʫ۞¸uÊRôåÊ"4^ù>·ÑÆ-žQ q'³¯·žÞáµÙStÐXܨéˆÁ¸¢zcØ·ªyä–2†È˜ Ø·Á5D5‚4N,¾½Í‹q«ÖÕŠ—scòý ׸ñ€âf6—r³‡•=¼Ó°Ÿ1ï'îÿ¯ÀUì·‰3é™Þh×Z“GÛ³HmDÏÜ£e`–{О<É„1$2áÝgœ¼¯6Ø? þÝ© endstream endobj 92 0 obj 355 endobj 93 0 obj << /Filter /FlateDecode /Length 92 0 R >> stream H‰tÓA–à Ð}OÑø àæþë!€ ¶éòc¢€øšÐ:÷7koß/3ÐihªfÍÖÜîÆ\?x7åÿ@Å2[. r4Œ•ÚÄ­mr˜w"…•ž,Mò{òí°mìY›í ÏæÜN0üAÔzÚ·j¶Ðtç^ú·);‡X[g­æiû–›0+•›4Þ¹Înjç9á$æ²Wgöæ™;‡½YfÈ1ÊaiwkЫ»ÅH4Ã<±zdòbE†QwSnçÍ›”Ù,×éñýq·Í[çq<‹âµTÃÙ¼ÛµziÏŽîÉÕìå½Ûru{yuÛŸ¡YðÙœçév¹šõkŒºáÉ3àoÜ&…t·ç:£7k‹1ˆZæ¶Ø¯¢Ãñ;€é5©òð„:Pf¤ñÐÏÀÁ¥Þ3@µ¡5Ð×/Ëž5#¬LtĶÀÀ ¬1Í@ܯÔïÀ™ú¿ÄÆ3 endstream endobj 94 0 obj 399 endobj 95 0 obj << /Filter /FlateDecode /Length 94 0 R >> stream H‰l“A²!D÷9EN`)"àþýן±Û‰“Ê*õz0 ¾ZíE´½Í¬t{ÿ½NAt R".aä/SC(h…°OOÈ>Q× -'Z‰ !È`Û‚òÄ0 ] ¨R¨<ÒñŸµLƒPƒBè—`˵g% ¡*+®‚99zÏ:0&ÿ°²¼³^X¿²K®zrpì^š€Çj¹0!Ó BŸÎÖ?¬üîÆÖ®Ý\<2é'ë×ÎfÏß'7;ëåö7f¹ýÚÝÏæíþƒÜ\é·'¯_IÕgR1w2H:™áƒýôâ~l2¹Û±êpnR‹MÛ”¬õÉrÞÇ0¶3²M°êqÓåx1˜ŸL2Ò0v¯ìÆØ½ÒÞ Ëpºw^› {§{ üd¸Ï0I᳘ô&7™TnðJÖ+^ÉÁÊï+IoÙÔ“ß׿“#N–Û¿ xÍu³¡¿d®è>¨¬^Ý»ÑýÃÛmMãÉì¬_÷ ÙôwLï‹ÿÁ\›Ù¨xeÞ‘•+^ÙÁƒå×"ÿöf endstream endobj 96 0 obj 381 endobj 97 0 obj << /Filter /FlateDecode /Length 96 0 R >> stream H‰lÔK’à Ð}N‘¸@!î4÷_Pwl“x•zÅÇMç5ôP­oí0ÿ½n&››ÛW‡ìvN/åÉ5,KÄ‚eç¤G¦lïrç¸)lzy”-.{î÷m‹_ÄŒã8ÍEue8Ë™,ïÇš'† XÖîå²»q<_“ kýuìf¬—3™èn§ñüytÛÍåyËV¬/ãq q½â áŒŽç7΢ÂÝ`縭bbßÂq/0·›jN_—ÎO,¬9½á£ðuÙaáx^ƒõ˜\ßñÞÖcζbžp> stream H‰l”;n! „û=ÅÖ‘‚ÀcΑDJª¤Éý‹ù÷¡-¿ãÁ6l£¥AeíIyÿÙ†$ÎWVËÄžˆ/È±Ê îtfM‚õ #eG‚…ÁëÀHm– KΑ[iU  A2„¼BÔCZBDIYÁ² !/õà4p&Y6‹[l` ¶Ùì¹PÃgަ€*Õe¼F™êòYÃ'-_ÕÒChHk§gaÔò{HA£ÎŠÀÕŠUé& wÍhHÉ-:”—óC µÃ«ÑGºsøl¨F×eëh ]\ò&÷~¤\B¤´îÒMðúšÀÁ¬ÏÜ(„N7Aùœ´§šª¯€>¯ùù¶qjÄezÜßÉGàïkûžËëÄNût¼Ûª5ÂV?¶FÑï>ã~_<†Œ½ý£^lClì=±›5öQ1–+vW+Ÿ™1YÆ>GáM€õÆ-Òi‹^9pÐ6¼„Ƹö'nìßÓhQ(Æk|àû…ŸÙGÞØ‡ñÅ–7£«þFŒý‹1F­æØ/ùÊk*b;úêø/Ào endstream endobj 100 0 obj << /Type /Font /Subtype /TrueType /FirstChar 32 /LastChar 32 /Widths [ 278 ] /Encoding /WinAnsiEncoding /BaseFont /Arial-ItalicMT /FontDescriptor 102 0 R >> endobj 101 0 obj << /Type /FontDescriptor /Ascent 905 /CapHeight 0 /Descent -211 /Flags 32 /FontBBox [ -665 -325 2028 1037 ] /FontName /ArialMT /ItalicAngle 0 /StemV 0 >> endobj 102 0 obj << /Type /FontDescriptor /Ascent 905 /CapHeight 0 /Descent -211 /Flags 96 /FontBBox [ -517 -325 1082 1025 ] /FontName /Arial-ItalicMT /ItalicAngle -15 /StemV 0 >> endobj 103 0 obj << /Type /Font /Subtype /TrueType /FirstChar 32 /LastChar 174 /Widths [ 278 0 355 0 0 0 0 0 0 0 389 584 278 333 278 278 556 556 556 556 556 556 556 556 556 556 278 0 584 0 584 0 0 667 667 722 722 667 611 778 0 278 0 0 556 833 722 778 667 0 722 667 611 722 667 0 0 0 0 0 0 0 0 0 0 556 556 500 556 556 278 556 556 222 222 500 222 833 556 556 556 556 333 500 278 556 500 722 500 500 500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 222 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 737 0 0 0 0 737 ] /Encoding /WinAnsiEncoding /BaseFont /ArialMT /FontDescriptor 101 0 R >> endobj 104 0 obj << /Type /Font /Subtype /TrueType /FirstChar 32 /LastChar 151 /Widths [ 250 0 408 0 500 0 0 0 333 333 0 564 250 333 250 278 500 500 500 500 500 500 500 500 500 0 278 0 564 0 564 0 0 722 667 667 722 611 556 722 722 333 0 0 611 889 722 722 556 722 667 556 611 722 722 944 722 722 0 0 278 0 0 500 0 444 500 444 500 444 333 500 500 278 278 500 278 778 500 500 500 500 333 389 278 500 500 722 500 500 444 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 333 333 444 444 0 500 1000 ] /Encoding /WinAnsiEncoding /BaseFont /TimesNewRomanPSMT /FontDescriptor 105 0 R >> endobj 105 0 obj << /Type /FontDescriptor /Ascent 891 /CapHeight 0 /Descent -216 /Flags 34 /FontBBox [ -568 -307 2028 1007 ] /FontName /TimesNewRomanPSMT /ItalicAngle 0 /StemV 0 >> endobj 106 0 obj << /Type /FontDescriptor /Ascent 905 /CapHeight 0 /Descent -211 /Flags 96 /FontBBox [ -560 -376 1157 1031 ] /FontName /Arial-BoldItalicMT /ItalicAngle -15 /StemV 133 >> endobj 107 0 obj << /Type /Font /Subtype /TrueType /FirstChar 32 /LastChar 121 /Widths [ 278 0 0 0 0 0 0 0 0 0 0 0 278 0 0 0 556 0 556 556 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 722 0 0 0 0 0 0 0 0 0 833 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 556 0 0 0 556 0 0 0 0 0 0 0 0 611 611 0 0 0 556 333 0 0 0 0 556 ] /Encoding /WinAnsiEncoding /BaseFont /Arial-BoldItalicMT /FontDescriptor 106 0 R >> endobj 108 0 obj 350 endobj 109 0 obj << /Filter /FlateDecode /Length 108 0 R >> stream H‰lÔAr! À{^áP „ÊÿÏQvf ²÷äêÄþŒQ–µ—-+®¯ßŸaEjvx<ìɳT‡—œŽ_…OÔ vÚôÙzÆË”lçøø?ÕÒ,ûÞîšo­4É–s¿°z¶Õ}Üಃ5µ†U³SVaóg_Y[çé·…ãSàÁ»0á|Qv?­¥òf»ÁM²…ÿ…»e#ûëÂÈþö`#Σ“n;A£jÕ(Âܬ6}rgxŠÁ®Ù“ë¡ü^,ÕNV™Ëia5“i|ÕL¦w,ÙÂùè¤O·B¢±ÃØV.°ñveõ“áWVOûzïêÔðÉ) ‡Óƾ~¢OnÖ°¹;¯bû|$Áþáû‘]¥‡‡e/ÎïÓm> stream H‰l“MoÛ0 †ïúYÂeÎÏÍÆK/iäyí×^£ yÎ~ÜBeG×l’îóTŽtÍž«¬ìo˜BåÚ-²nåTòçŽ]ª,Ý/p;êyªiÎn\;rÝšXä¨ÚØnØSe9zæ¶cwd[ªœÃ5§±Ú)^ºûõNÝõêCßpÐoTWdòâm@L•êûW¥Áô/eCªš`sŒžlÉCÿ0ÅPáLE’Äy1³`ç¹®¢çdé´Vh] ýZ=ë&ÚVß>½[NÛ üak´Q¯ 7«W¦ášôŸë•Ãþ“ìó³ÿª¾ô /êðXR¾rÞ‹ Ä“Áñ¹Cf[à8¨;±ƒç lã‡óì[àzcËcUæ‚K–^Î%—Oã[€þMéíçßàþðú{»Žðtâ¿Ça3‡ýz_&7&õ@åxD»¨‰_÷à<_Î}g)od/Rû¦”¾$ŽŽ'{¡tšJw%ã³~d3½LãØÄ¿ÆñÌUk>m{p–#Å[>Ü\¡©Å?ˆß)mä4CUýn’Mzõü{05¡á»£‘.Rt‘r|Û‚hÝÁQgôÜ'eW†õÒ§xvqñ¿ì± endstream endobj 112 0 obj << /Type /ExtGState /SA false /SM 0.02 /TR /Identity >> endobj 1 0 obj << /Type /Page /Parent 80 0 R /Resources 2 0 R /Contents 3 0 R /MediaBox [ 0 0 612 792 ] /CropBox [ 0 0 612 792 ] /Rotate 0 >> endobj 2 0 obj << /ProcSet [ /PDF /Text ] /Font << /TT2 88 0 R /TT6 103 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 3 0 obj << /Length 4816 /Filter /FlateDecode >> stream H‰t—M¹ †ïõ+êØ½@—U,}Á±³b$9x:'ÇÍx&±á±'›ŸJä«’Ô56`7Ÿ*©Dò)½¾N¯®W?¯óõqJKò³á¿åG ÅX“ÿwüc¾>M¯Þ<»ùþ¹¼bæçûéÕŸïÖù_ÏÓÅ,ÆÍ×û)ÿZÝ|ý}zúôÇó…§:Ýýu~s¾¬îôíÌon§§ó…ìâO¿‰ùéËÃ÷óÅ/î4ÿãù|‰ *x÷ðÈ#7þù /ë¶Vbó뽘Ϯo§_®Ó:š'Òâü:ç–g»Ð|Éÿ|˜Å7wêÆÝ›ÉÌoùÇçÙ,+Ϳϫ™ÿ6¿ÿ`æekó<ëâó<É?<ÑÝþ›oåÁe 9ZåCuôF‹çÇÖÎütõ2Ú™m1QF;â¯æEn2Òâäg^ŸñÔ[^ž Ý%M‘CMK½úoÀMå„#ÐU Åj5†V}@êå®àqz]z5I¯fÿRr¥ƒñOï¶Y–•¶¬‹¶)97ãÓ»óõsnŽR ò¦M‰¶¼Å¸³¼þirÜ¡$‚>O­…Û¿xëÕÛÚâ½×<7ŒN™¨AÕÆÇñ>èNm€U[ªAÐjÐ7$^AE_,‘ï`éÆ$«ÒŒºË E‘ƒ$»,ª €-L—Mµ¹Û¢Å¤ª Ò½Þ€ #D&  @Ä™T7DÊ ¶©«‚UyÓM¹¦º,ùèšt‹4Àuž0À²* C4Á`mƒÁ6–)vD¶t2@Šd£²0S—³¨¥ùé,¨A V/ p˜Î›Fr-"e`UaÆvÀ#rAc{ €ÑâbG@˜«º)`Õâ]w躯€úÏ€aé7À,±óþÖö}@ Dµšøª Tœ6¥ ’õ ‹!eÛï@eÀ:aµÀê+”UÔzZu‹ñSDÕ0âçðÓ*JmAì‡è&½I­f=Øóu¹(G@\f@v›Î±u¥¨¾‹4ª×Àˆ¤sFXÐç * Q³ ÊÊáÖÞdÓTDqÈ®Ö}ÕeckoIº]€N‘tËA¹ ÐeD­€Xçn«c±&Mc±ƒ€!P¡WÛQ—‘¦è…Ì€¥Âª²‹RAËD ƒD—ÿƒ­ðšrzUIDi~½Rk;ÝL^9CœŽXÑû)@¶8Þ'ºsAùN›îHMq‹jª›Îá±[’@Ô!;N¶O6ÒuîÆúœº¦ZA-;:¢¥ÝvÔ~ r±ÆÂ£Cú8€> àzèjt zh âT}ê`MO ŒiÓ¿úª-è^ýn€k%Å6ô¡MÂC8xH}Åid ‘ hEN#ô´á40Ç[«¼öC«¾F$pÓ¢¨3è 7ß•åh4¶ºç-æÀž˜ý.ù ­¤cTÈhc¦¾BV»¶zÒšºâ`³¼àô´à¨õLBZ¸I=3¸ƒ6W7qÕì7³ #‚Ù[[bcö›Ú e˜ýêv&]ý!À]ÎìW5ùÈ~1í šàæ&)j€4ο$‰ ¬}ÀÞºûbVÓÌ@ºñ ÌQ:úħGl«%¦RQHâo€S­0%8Ý ˆr¶tHŠ=XIQom~©@rŒë'¹ØÁ÷vìn¸Uï7+lÞØ°#|ì–µƒ„7pc­Û€ð\z À£¢˜þZ÷"´ê-©!€¾æ0ðƒ]kë.¶¨tõ®¶ÛßnŒv¼SZ=„%DC ®5 êmÛêªÁÛÅS‹:‹¢^âÇÃ舾s0¨ƒtŠ„!Ö  ”Kȼ×lÝu¬ål` ÎkÓlAÐ!¾ëº º›Rco: ¡÷;? Ɔ¢®Ç…¾¡rÓG J®)ë$<‚sN b·œ”Z`c»t\4Zmã=.5\¸W´ÀÚ6Â8¶ ê½Hè¹’Aw mlGmâq’­âáÓ…1­¼ÊFá ñlÅÑVOÜ9Û²LƒðÝàØ8Ã3ˆƒípê'Ýjõ®bu«Õ»I¿}P/+Þ6——Z"ê}'îw€—*cÚBÔ=TãÚ…bÖ²mA¬ÀïW·M«ll‹ØØTòj;ä(Õ^s$åN7êºQ¹vÀÖSņ NöhùçO“¾žg8ÊY°óZBñýazÍÏÓZEÍ*j€—g ò ½%IÊ@j°˜@vÅ(áÉ òçm"ÝHQ\Ë@ªÆØHìµÈf‹²¡3ðö;øc;aJ)DIêŽM›n×HáN"· J’ŽERÌàuRG ¢@Ò!^>‹âu‚Wàü¼ú¢‰wÑ8S¬ î­ýåPç¯óëµÊ´`í½Ð*ÓGã±&àȈTã{ˆv£j´ † Úz¤Õ½ Ýd°Ñ5êÜAÀasUu\+v 7•U} 8Áî`Å‘kè,3ñªj=H°€GCªçàà*i€o€…«¤!.eYÑmÎÙNtlëFÄ€ IÛl] @ÕÁÞ+ñÎ`SÏ6?€ºnQ†]ü`kaóºQ- º·C•ò*¿HÃwÒŒ3Å6@ìPÇ|Ÿ“ 5ìäàm'&7À#À8ÚT`5'… %§&vCp(kœO(l› 6ÂUØ>÷Ý£rŒvC÷AѯjÞw0ô¼[Ð5Ímì© ºî ­mˆæÚ×3 nÓì¶óÝœz¢åóÁëëôêzå3Á|}œRÖ¤á¿å‡ãó¢±ÆÍ¡œbçëÓtšÏ×ÏÓ…Ó•bHó…OœÎûùú'}bæ‹gùn±0nøÇýt)¿Â|ý}z¢3ï]~ýB](ÿ\­1æôîÌ’?=”ççK6æ¿öMÆÜW.´§7…]xpO8¯\ÖNÿã??ËÏùüáúvúå:SÔä×\„-[üKŽA>üåÒIè×YͯŜü[ígNLëü±<øvfîÿ#“<ÈØóþò¦äJxúí{yëÛõ±L!ƒ>–‰ö¯ë^?&_‘¥|}ý?ßÕ’ä¶ D÷9*+Ò¥™ˆú«*•íE6IsФ$–i’!¡;ÇÈ-²ÉÓŸ× ¨™ÌF"€FÿП×Acè)/ì¼,Á¡¿ÎM™…°ó´EpäóªQòÓ‡½xÞ4Vw”· t|¤ {X­‚ZW!°P›á ¡«d9Ýþ¦4ðG5Ž&¯ÌêÐ~â-«ra¤'áô=Í6AÛj4›º¾Wßâ¾ëT”ëŒâ*±µ¥¢·Zî)~(¶$R–ë‘2’u¦¢’0 ö,9x+‘ÈÑÎwøt9>Zü“’;ÎÏÚ6|Õ4v±ð7|å)5ҤѨ0Õ(!·‡Ý*(ø:”í‘zq¶zxHWÑϼ4Àà ?þO´^Ôey¥|Ç÷q‚Ä\ÊÎ"Çr¤õ ŸéˆÅq*TóÞÛÕ|t}dŒ¤DAúfÞX°·oÆøßsEŸàþ*.£Ë5«J÷qVJË+S¦kCIèÎT‚Õ¢<XÍ´²ºãÆ›|×WÙ&ô8 y·¸Ëay¼ÊÂø°Úï4Œ%4²ÅëL£¤ n¥ö@’tþ'sWÒPösåÑÉÚ5uŽ“lÔMÍåNà‚Ux¬›¬Uã…]²I®¹W·Q ­žñUIÄó…¤7¿¶¼Ì=»S=ËU¸Öc&ÕgcÇô ¾‚õ8±Æ?Y²ŽJ^…íoÊ©*ã=ºg¹‰q™Ø66åT–ƒJƒÙ)¹µæx\'£T­‚!Ê̓{{ÁU#¨1 PŠÔ?Á{Tbqá6š’¹ïº¹ 7'PO0ÒQ}e.¡,LŠFòc—ÜÊ_“ÒsWå'|4Ì›Çí6Û‡`Ψà2¡önyÓ½0¾9g C°Þß½ 5u0®F¶òùIeq°Æ8ôâß§†q˜ ò¹ömºæ€–ß‘&‘gm\Ï8'S>òž¸˜?t©$^ A]ƒ›°[Éê|ÎÊ.ßp™7^u‘ªÐBëÑWU3^$Œ€`r êè¿ämy’%êÁÎzÜÆX[;láàX-Áç¬{ñÖœUÅI·H8D9e{ž‰ÊA¨L M(¬3ßújnS(¬…2îçLÌ›µzÞô¼êew÷¨¶Ô§»ÎŒzÃ^OšFöt.0­ñðá©•™‰ëoñÙÝÓ„¢roZ#©·ŽROBzµµNƒŽ·œ— †‹ÜàŽÔazI§µ4ì£èÆ+4 ìkä3’ÊxµFì-ÛÖ!ÛvÒF>Mí¬=.”…LZÿZß– j[ÚWéÎR1¯’äyýÛ 2‹yHblX;ã€ã"oôc†kœ³SEd!û.!ʨ¿¾ÆÜ*E,qôy¸tÓ£‹ê˜cÙ÷sfŠÖ6Ïdxrw¨èá³í6jÓìSž‰¼4ñÀz%”/êYÉØHùá6õEd)¾!gWPç->.èó>ÕW8æf-z‹ ôKöL¬ÛvZ‹ C dŽ`µºgÔš­ÆJpÌi׬¼±:¿ Ž͵¿°‹ÉŒ5ð»X/.MÌfÅbêð?˜yóEwów1~Ð.Nx÷Ñ$Åï²ÞßÁúŸbD9’Ou0TÀ>:…°7¥™‹çŠ…©Ëª XÅòÀ¸ZXäâ9?Ô­~8À°´®Ñ@Å SDá¯mL°éÕxº:C¢¢@\ÕÌŽªÜÔºÙð8Þý0 ®œœaJÕÑTÔmŠÜ‡/fZ)4îGú[¢n‘ÿƒ#†ç@h$Q¢Û–bùVyUg›Zp¼¿ ˆŸÉ g\G•yBSªf®¥‚æähA:<Û[Kkñ2´R|"Īg¡Q ^°cXçF½f£ÍŠÛÉ*ÎÚD§”•îSyjì~Þ©}Ýár;»–ËJ÷JP¸ñŠ/=m7ß;…R/kqL&Žáí±Ç~ ÓeRŸT©Æ”ôhLß1Nxãå*t*Ô§2N AûŒ=]©kfcàä1WÌÀ~jêÂG^+Y1“ú6öwº™-Á6_à s_+ïzœ?Ðeö*gsä\¤³@€»n`;]kÂôV-Vü›N¾³A`y‡Fö`&°@¦B uy›éö $ºÜ*£C½×!Œ&‡©M é5Êq¡%øúމº‡™ïNVéhв¬º„ÁtÃŽR/>Cbè#Uè-à¡*€ïíÔ(½µ-Xwµ¾0*]U€àò}ðx4tnµ>Ìi‡V».K4뼜úø‡ä¯4³q÷KW޹Pç±ïÜØ¤’Ò.Ö@ÛE…:_§kÝPý‰mUÞ¤JÛÝÉ<ñ6*ÝÔÏŽ›à„@Ú%†ºéøÉ5àÈžgšËÇæ™8O÷‰[-—8Y.haß™Óqæ(Å›ù7Ê׃h¥Lz§ñÍ‚xž¸ºZsµj×Ó‡»´Î˜¤>HÓß%¿ûkCx戇ÊQ0)‡8ˆt¥Eãi*Né‚<0X.ž)»*+8Ĩ1½…õó[@Pðp!ÉÿóÓÿ ¬¾p¢ endstream endobj 4 0 obj << /Type /Page /Parent 80 0 R /Resources 25 0 R /Contents 26 0 R /Annots [ 5 0 R 6 0 R 7 0 R 8 0 R 9 0 R 10 0 R 11 0 R 12 0 R 13 0 R 14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R 24 0 R ] /MediaBox [ 0 0 612 792 ] /CropBox [ 0 0 612 792 ] /Rotate 0 >> endobj 5 0 obj << /Dest [ 27 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 66 648 542 662 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 6 0 obj << /Dest [ 27 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 72 627 542 641 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 7 0 obj << /Dest [ 27 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 612 541 626 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 8 0 obj << /Dest [ 27 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 598 541 612 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 9 0 obj << /Dest [ 30 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 586 541 600 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 10 0 obj << /Dest [ 30 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 72 567 542 581 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 11 0 obj << /Dest [ 30 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 552 541 566 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 12 0 obj << /Dest [ 30 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 538 541 552 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 13 0 obj << /Dest [ 30 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 526 541 540 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 14 0 obj << /Dest [ 33 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 513 541 527 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 15 0 obj << /Dest [ 33 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 499 541 513 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 16 0 obj << /Dest [ 33 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 72 481 542 495 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 17 0 obj << /Dest [ 33 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 466 541 480 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 18 0 obj << /Dest [ 33 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 453 541 467 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 19 0 obj << /Dest [ 36 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 439 541 453 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 20 0 obj << /Dest [ 36 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 180 428 542 442 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 21 0 obj << /Dest [ 39 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 180 416 542 430 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 22 0 obj << /Dest [ 39 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 72 399 542 413 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 23 0 obj << /Dest [ 39 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 384 541 398 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 24 0 obj << /Dest [ 39 0 R /FitB ] /Type /Annot /Subtype /Link /Rect [ 144 370 541 384 ] /C [ 0 0 0 ] /Border [ 0 0 1 ] /H /I >> endobj 25 0 obj << /ProcSet [ /PDF /Text ] /Font << /TT2 88 0 R /TT6 103 0 R /TT8 107 0 R /TT10 104 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 26 0 obj << /Length 4123 /Filter /FlateDecode >> stream H‰¼WM·½Ï¯èc€‘l’M†hc1’´““àC¼Þ $è#Ð*P~~ЬWì"»7É)6`ï{C²‹U¯ªX¯ïžÃôð<™úïóÃéõîíô÷ç“ÞO§Õ]]²ÓÂ5¥É_Ýt)ÿùúxz:½.;ïî±óþîd¦Ÿé“¹Z7}Ÿ¬™þ<½ûÅL¿•cl,ÇØk,Ç,ŽÿCçÜ·oø|žù‹]¯Æógdï⮑~õ~¢mä½™ì2¼78úb1pá}ôS¬ÇFüDç.ŲºÑº|õeç²\³›>uDˆÓÇJ÷Ag1=&H‰mM¾‹¹ó±:ÖÉõ/±ÇGú"ùˆ…·X2ç[,ùq ’Ñ_§ËÍÊJ£ï®Y ÎÉ®#| ¥ÞáKøz"ÊŠª„#bííòEL˜z“PB«o¶ËWh"D&o(bqLH ¢é±OÝ š"¬ë>*qWç;©VÔµÆc¢Ÿ¸¢ÉS¼§ˆ ˆÃ}‡%fJÐAYŸ:¶#Çþ2E¤Ô»¢÷Ôà7+éáü@ˆ«‚³#ZÀ÷-›$‘]gôFì”Ø´*D“·ˆ×ôjV)"Y–ìe‡ñCÖ á:³6û´eú*+¤ìQj PêOØ*ÒÚ‡D9©i¹WÿŽØUN\¤éJ\¡ˆVE«1 Dîåâéôævz}»Q7˜nO'º_Ρ6/ú3†eb³L»nŸ¨§ÝʾŸæ·çÛ‡ÓO7:×5'/hIn))FåÍ«“5Œåj-6á¶·UDµ”:ß>"ΊHÀ+ŽÌ®#V¨¾ýŠLU„æj°¢("Ê ö× Ñ7BËw@HÌÚ²™Xâ@pQ´Y– "¼W?˜á—m Ðb†*ˆˆf Ÿ/$ ¹oŸh'%ÞüÈ‹ñ¡ò¢Ÿ??`Ãtþåöó‰~3™¼u¡Òn(‚·ßŸL5°ØF¦Ý>П—XZX\ë¯dy,+êm WîðöL¹Dß Ò:Ó÷ ˜þR¹/•›îÏeÌ™ï*w![¨$Ì?œË2ÿ‹þù‘ÿ$_XŸ °ºÅÅHΞ>£üÓí´šªÁhK]÷kiRÅ~Ò½žJPúP¬ÔX<]ž§©¢X¾Úr z‚Ç5e‚ì¡Ð“‘”BóÇ¿óüüü¾p¾\ŠÔ6=”ß¾‘UI˜/Ÿ‰ù‘÷³¡$ŒÄ %[èbI\ë‹´˜B?Øéî,:ßß}ùüíñó·çºµ©‡ÐJ¹~Ì%Åäþ¦ÜTîOßvG¢lßUòõûôÁÙ–oÐ&kxUáj˜›VzŽÇn‹â¥/XïÇO¨›½›ÿøùÛ×3åãüå·>|{On»Ð¸fçëÿÿŸ%&ÖÅg2Ÿ´Í–®l)¯¹PÖ/³—ˆî|iN&ì|úÝÔ±Xq«ûï1Øÿ1ø7ïeÐÛ6Dáûþ ).LR”äc6H -Z¬‹Þ…ZhµH%W–ÛͿߙ!E‰²¬…SB› £ù4ï½±œ'»o~PB¢ ì5c ÒÿVÅkVþ†õ}U2!å¶Ïæ–{^ŒmEx:®—tV¼½Ü\a\tŽú\˜¯g/ìlëéCEfÑcõ¯ r‚zBœfGüçkwD¼’؇K¥—|U`%léAÕa}VúËïýPz{4¨ôî…àÆxAAÝ9ëHôHj>C.aÄEÎ"³û w“›r³±©šÈà…¼95Â$ü0¹U9ú‹¬M~ç¬äˬ†£!¬&ž³z¨Iœ6 WŠ|ëÞ6æÃº &rÞóuÓvå´EÞ°­ åfR"Ì¢]¨Ì:Àe½]Œ6ûÙÅp`¤UðŽ'ÁÇ], Ý2mÞ +žHÊž¤ê‹Oß‹cï+æ'¶T »u‹YÑ{ÈðÀá¢æŒDúÉp4¨C&r‡C¬$8ïð½©qP†JFqØÜaêÏÙŽ²×{ˆã+ñsÀØÿáV¹;DŠ6DHqy>ê¯*ä'®¨o”_߸… •̙ô1Ÿáh®É…VÏ䈖´´¤¡•ᤤ2hä£u XÖ]ƒ[†„ BÄ™&”C±å‘–ϳ5áJüp%î?rΤ—ÿÈ?òŸÉ…S\8Œ‘ÛPá£ô[b ußûoö´ŽH wå <Ͷ.v<Óì2ÓaòŠ!"–\ð¤`Á#ÌIaâË ‚å^¸ÞXZbJ˲’ãzRÀ ´nKZG‚³>ùŠ=¹aÔ_¬«°SÈv§é; S N§õn9H[òZäœd©8·„AàÖɬ(*pöh8÷Âa­)´e¬+j“:˜A£ÇÆŒF{*½¨iñ š…+ q¥’¿Ìƒûñ¸P™Å\—äÊt»Ü5}®möËuÃ]öÿ±Õ8]Û`÷ÍhCÎ*Á4M02ÖÆàO]ÕPÈÛG8·ô9þ+K¥ïãÜðœÁ­ds†“øÄ¹áhH+L.œÓ°F¸´z½¯ê2ÚÒð)°@½H³ùêÇS=&% ¹Á_à7 V“ZRs.“ø$¸áh!÷Â^¬ CRè” è£VZ’Lðº~Fö…à§Paå°õOæÌ"ñ‰dÃÑ úO.<x¶uW~k 3°À+¿†ÒWY×4ölûy¦k¢»èË=,1a½yƒ^¢ôlô g£:F”¿Ì¸£ê´M­»OAR‡„’×ÀkfžÌ–[;ŸŽ±”bžØ‚ª‰5Ȇ{؃™àéì•çª6b¦‰ C xG-`:oÑýÉ|`66½FŸaGŠÙ,æ(k˜xš\)~‘á,ñ†ã)Ž@럃sYÐ8öpœÉ•ÓgÜO†Žìû ùTz@­õÌÓš×§¶ùWo(iÖ颿õ°s¢ý•o÷:¶]cÆ!P)Ë}@¹sA-'3ˆõZ,ÙåXl“Ù°Ù3™Ùº_’!™ÉI2{U¦ê‚Õ(V—­­‚–˜Í¢GyаQà»hלگdQ ³œÈn’—‘ƒû´Áî/ó|Æý•O>ކ¸ÏäÂun»ÅDæÊŸ'*-¼Ûm¹7š¤XÓ> endobj 28 0 obj << /ProcSet [ /PDF /Text ] /Font << /F2 48 0 R /F4 49 0 R /TT2 88 0 R /TT6 103 0 R /TT10 104 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 29 0 obj << /Length 5612 /Filter /FlateDecode >> stream H‰t—Mo¹†ïý+úسÀ´ùý ¬”Ec“ƒ5{2|H´R"òËóóS쪗MrZ6`O=Ýd³ª^V‘7—éÝåf=_§¼æ0+ú»ýˆfUN•ÿ=ý˜/ÏÓ»ÛW?ß¿n¯¨ùõ~z÷—;=ÿëu:«U)cæËýT~i?_~L—§_Ngšj¹ûm¾=µ_^Nô¦]žOgãÖ°ü‡Í§/ßNç°úeþýõtN«Y*øððH#-ý|à—åYÚùõ^̧O—÷Ó¯—IÏOóäb^}Ðsô~Miv«™ÏåŸoÓ#»q{'nÜÝNj~O?>ÏjÕfþ1k5ÿmþøIÍló8WæÑk(óXÃÿÐDwûW\^ƒãgK´¶ÕÑÖ¬;7ÓSx´WvU‰G{C_-‹´<Ò+C)(Ï‚<£©mYµ–S&¶k6ós|˜¿l ©7ÍÅ *m ¬W›œ“ÞÑp ²\oG™Òñ79ñ°A€ o€:$ösddý*Â^=Ë5:âûð‚“M\Éf;•ö àM G öërE” ìæ‰/©m=ñ»ó›Zƒ! ŠrRoÇÐ @ÒàT÷QäݯBÐá  ¡ åŽA'¾ŠP.ÑÛ‡^p×Ù5g» @[?ukÀ»z7jÊvRŠ>RCܪÏÞ ¡®qKcdÓ¨€ Þ2d—„ðŒtp¥ÄªU€*oˆWõjn¶vYl‡Ö »ÀtË‚ ±×z³ïôˆ7P ®‚c\oë~†½"Å>%M‘CM˽ú¯ÀUå„#ÐU Åj5†VC@îå.àqºÙzµá^Mþåì·F?ƒ·3/«4l^5lµuäÒŒ—§ËçÒ½É5ÈVš’±e‹Qg¹ùiòÔ¡8‚¡LB­…Ú?{ÄÛ±Ùû yn(™2›DQØû(;µNl®QªAÞàxE}°X¾ƒ%Ó8‘f’]Ö.Š$ÞeIT@ š¸íƒYâbE›»ÍZÌ¢ cd¯7 Ê– oÀâÌ¢c$”€mUW« ª›Rçº,þ¨Î²Eà;O`Y™ƒ5A@·Á Ëd;![² E¼QI˜¹ËÙÄ’ütÔ@ šV/ ð˜.¨FrÍ"%àDaÊu rQb{€’ââF`0)*Vu“–â]w¨ÞW`úÏ€aéW@­©óþÚ}@D‘¤š+ø*`«8mJ D$=ÉC¶m¿‘ Ó «NæÐPÖ¦ÖЪ›-ˆß$T Å~¿Ñ¬Ô¤~ˆlÒkÅjÖƒ=_—‹2qØeÆ Àʶ+E-]¤Q½ŽFd™3¡Àª4€>¿UµˆªU–×¶àM¯PQÄ!»Z÷E—-½%Ëv92E–-å6@–‘¤b»-Ž¥š4‰Å"†@…AloºŒìÀ`Š^ÈL£TXUv‰+è6ÑxÂÈÑ¥ÿÓ`K ‚¤< ATÒVZXakÓÚ^6S€W^âÐ/#4z¿Ià-Ž÷Ù‰î\°}§Mw ¸¦x„E4Õ+sì–dˆÇŽãíÓ+CºÎÝØQž›®©VPËŽŒ¨Ei·½i?‰¹ƒTcÐ!C@ p=v5º†=´i?ª¾é`MO ”jÓ¯CÕƒô ~7À·’"ú& œ $‚¾â%2 àÈD´"/‘‰rÚð˜ˆã‰«U^ú¡_h%(êúÂM te¹ [÷¼ÃØós ßåД"mä`Œ Ùi̦¯Õ®­ÞHMÕ8Øì/x9-xÓz&1R¸x¦pm®nìªÚofW€GD)²×6ÇFí7µ+ÀÊPûÕí dLªÃ!À]NíW5þÈ~1m Ôpsã5€ÞœDν`Ûî¾X“4àn| æØ:úàÄ+/Gl'%¦\Qp⯀­`%xÙ H|¶ôHŠ9X*NQoÙ°VÀ9Æõ“ßNìz;u7ܪ÷+€6oX숺eí ã ÜXë¶0ø .½Þ  ¢¨þZö"¤å–T‹@_s„Á®5Èw[TºzWÛm‡o 7F7Þ)Â2¢!שõvÙâªgÁ;â)E€CQßâGCɈ¾s¨ÃÈCœÀVRœAæ»FÀv×±lggà¼4ÍDº®K »)5¶•½ß‡p0,ŠºZ`ä ‘›œ8Z°¥‘€Á5E€Ãƒ!8ç´ uëÀI©.µKÇE£É5Þã¢QÃ…{E œk#ŒS` ’ ‘‹„œ+ tÇÐÆö¦MÈ"úUÍû†žw º¦iÇžjQØÐu€ÁÖšE4u\/Àt›f·}èæ”-n.ӻ˅ÎóåqÊE“Šþn?<•S~ŽÛ)v¾]ÞO¿^¦¨65]а#‹‚.1(‡ŸÇâ{ïq,B %—h*þ–uG]\(ט˜2»0Ó7)Æ´ښ˗œòòúúT˜+ ' ,bÝ—gßiõ äå+‘Ÿy{€âþþI’O4m?[êÀ?Å|xÔ¯!vÎ[cÁÎY0‹{´†UòMI[²™åg±! Y»øÚneû`<ý în‡ºr¡ë¶Ó! Ò«ßõ¿–¶†ÿÄE&t —i&¹ã›†jC©•È}¥R¬RXã»àQ»I± @£yc¶¥EtUj%òÀZ‡ „x­}±XÒÌßô‰¨#ØÈDÀCŒ`¯_ªÐëFÚÄlõuO2íYrÃ7q¸‰AïIõ?t##?ÀÆcnF48“^Ï´ž+ûþH FåµãÝ¡nÜ‘¥ÓšÎØeŠw¬8h'ž0_ r’‚0qýwfb9fbN÷zŽúRóa•0¤KM/D´B·ëÂ62ê³pv¸ÅTÄ¡[‚M«S5Gªjºikä[óψÃ4õJK½2µduGUÄUT´ÒLÌ“ƒ"Ññ{c{ƒ¨ÝR®ëömTa¾†lµ÷•qïéXøÿITG´Œ29û2ûNÓˆÃwÿJ¿˜/3€÷i¯&7C p)Š4’¦¨tÅÏACz ¢NyÜ™Ägòv Vñu&I}+áêO¢eNâý]lCuËÿ;FÜy§8ø]Ri‚]pMÝÃïiš<»Ê ¡²&øÌ!É ¬ÒÄ{ªg˜JàÉ“žŒ¢ú#;…Õ~âúðH:×ù·šO‘:µòÀLAÃØØ…ž›$r+›Ì5iˆK­I4Ž,Ñ E{_È`GÎIQsB­¥±¢<0§´1n¬@/s -B{û;Rqøi,ÍÆ®¼¢_.QJkv¹•l9þ†O¶'ø°á_àtWë¾°-’]]¸s©(¯¾Zi÷Ëâ º’ذÐlÅ‹.m)–¶êuþþQé|ÝDê¦44Z+kuyÓl5™ÖH9hÒÏT¤ÅLÛzç0È0Pcd(íe0ñîæX~ð}Ý<g÷¢¯h¢þØì×Ss>BˆÌ D·×¦Õ_–xßÌ©‘¿çQìbž”0TZEB^²JioXD>ñ‚fªnu•2Qݸ܉•’§ßKÆicüËÉX,Uº /®D]¡ØŸ8y ˆâc a,`ÝÄç–t¤A•É¢ÃOÝ ìyBâ­zh/MZŒ'ä×R^î„×ï)4¸O$ªºm¯PfkZ™Žÿðõf‚oxv.Vɯ¿ºÖýB`ƒžSé†b·;ÉÎ<ö†Å±y.´v‡ºm‹æB8ø‚úl–ªÈëk‹dçÏü•²C’Šy‰ ºë‡_pº~²ÖT°Õ²´>‘¹óíÃNKFU9O>?†î±XÉS–ør½T!|ådá È‘UwÚÚ(²ÝE»ÛÃ| N¬_cÕûP7\Wâçâ:²×‡4·)ûyqVÑŒ9Ìø?þš zˆH™{2IrÝØÐr.ÑþÉÒH‹´gçW<ùˆ!aØ~Ëa¯ì:^© ïúÎð7&½^QÈzË ¯êØŠÁ3-§°hýžÀž°ÞÖ}®~oey}¿ˆË‚Ò;âZ7oNêâÐÌÃ,«T3™ÃÓ’»Ùîùj_+%Ù*x´U²s{;ÿÝþ#…–|9òÜuÛ›Æd®‰isÔ0WÜ\´_ïMH t)«f¢<¨PEòÓ:ëòàUÛ¾ܬU¯Ü~ÙÊd¸¼pt¡ ºd~bÖn6µ^ô—ÏÛ­0Ó%u­³D±ãW Órìã¹ú£L‚€ך×)½¹Ô)­®×œƒ»ê‰²¼ÚI¢G$†è_È2Å^ç ©Éšå|d––cx^®²ãÄ×?x샚u (Ú– Ñ!*`PBÈ’+0‘ºðô€óP;ž Nû_Ïu‘‹¬“ã ­´³B Lþ b‘<‰÷…÷R‹¥€ÓÓìÅ x«Mg™Æ+ã ]µÌ=¨À~ýyÏ6ìâà quÚÇ×ê ¤Ûgt£L‚‹†[×ÈŸÿ­Ãgs) Åïñ/1±¡ÚOÚ/rÉt…k…{žp‘*‘âÖÕEmÉQ¸"¨Ø›~ìÏÆ=t^Ž&æ¶ëdÜut¶TÛMpu«ðÐaÐ~¶àžëf¶âf–ÂË­Ûm§#nLóx¡‹\+M Þ'ËzkÔÄá°uÞýFˆzAŸ¯"céØJòU³«~–óÕØVç«I[Mmg,¹3fÑRò]ëÉFò¤o«¥4‚Zƒ­œèfËD2 \ƒodPúÈO›è:»6ñûôôHʘîõÒyŽ( é˜¾ÓKC$PÛ|”óÛÅç6 «Æ)æ¨R¥‰‹^ûYÁ™/Æ6½c#Â46…DÀýS;³¨õ¤£Í][ázNœäÛB÷$¬[¾î•vؽ)‰»Õ)ƒRf_@+• µ´jP 9œ´O‹w)}ÅK»áû>j÷À>2ªCÖߨseÌ6ü T£Å»Á?3¡nõR=Ô¾©ÿëcUžº~ðÃA6–Í`v ß[lË1€9ˆÆ @•j¡HV•6ÙD¿»Æÿ!åWĨà™ÙM𠏫7z$z©{ÉÎ+òuMmWL–zX‚Ýê=?>híÜEw¢ŒñüœïÁ·ñR|#¿¡?|š|Ùc'㥴ëQ»'= ‘ÚÑ%¦l;}¼2’V”Ì&ÜÊýüy9<ÐÝÃ]ÄŽÎn¾a§×î4çz‚ö’Ø+æ+Xi Áa ¬ÿx¾×g©À®¾ÓÇ …oÜw†Ñt[rÅZóm:™ißi×E\xR6;ßY³9dÀ‘è> endobj 31 0 obj << /ProcSet [ /PDF /Text ] /Font << /F2 48 0 R /F4 49 0 R /TT2 88 0 R /TT6 103 0 R /TT10 104 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 32 0 obj << /Length 5903 /Filter /FlateDecode >> stream H‰tWÑŽ· E_ïWÌã\{WÒH (ÄnR4h‚Â{ûäÁÝì¶6loáuáþI·”x¨¡4³ `ì9WÒPä!)Þ¾yÓýódêÿÏ÷§Û?ßÙéŸÏ';½ŸN«»¸d§5„KJ“¿¸é¦üóåáôxº-;ßÜaçÝ›“™~¢?>LæbÝôm²fúyúõ73ý^ޱ±c/±³8þ‡Î¹kßðù=ó7v½ÏŸ‘½‹»DúÕû‰~´‘÷f²ËðÞàè‹ÅÀ…÷ÑO±ñ»ËêFëòÅ—ËrÉnúÔ!N+Ü ÅDôL˜"%¶5ùB,æbÌ Äê@X'×c¼Ä{éˆä_ ÞbÉœl±äÇHFUœ.7++¾»"d8'»Žð%”z‡/áë‰(+ªŽˆµ·Ë=2aêMB ­¾IØ._u ‰™¼¡ˆÅ1!1ˆ¦Ç>u$hа®û¨Ä=\œï¤r@XQ׉N|âŠ&Oñž"‚ ÷–˜)Ae}êlØŽûkHÈ‘RïŠÞSƒß¬¤‡ó!®v~ÎŽh_Ü ¶l’hDvѱSbÓªMÞ"^Ó«Y¥ˆdY°—ÆY'„ëÌÚpì Ж髬Z°#D©y(@©?a«HkU䤦å^ý;bW9q‘¦+q…"Z5­Æ4¹—;ˆÇÓëëéöz¥n0]Ot¿œCm^ôg ËÄf™(v]?QO»Þ—¾æ·çë‡ÓW:×5'/hIn))Fåõ«“5Œåj-6á¶·UDµ”:ß>"ΊHÀ+ŽÌ®#V¨¾ýŠLU„æj°¢("Ê ö× Ñ7BËw@HÌÚ²™Xâ@pQ´Y– "¼W?˜á—m Ðb†*ˆˆf *Ìõ(#ò¾6$¹e$Ï”— am˜sঙ2„(8Á—ðuJ½ïSj±ôér9’—È#Ê‘¼<6½RB+NF¯—÷Ò†å¶ÙéòµÇIWÃ;ݵb*XJ½çv¨pß*é$ˆ¬Â}'ÚaÝÆ–¡Ç-(¤Ò÷Øa=˯ц¡ê´tÏjCÔÇáYIMúõõt{½Rgž®§ÒÃ'Cÿ×?,eÖMœVJ ®ŸN7$cãÜt½?•¿l˜®ßN¿ÎÓùÆÅDÕ0Ìï¿?ßÐîùî¯Ó›ó óÓ™6-ó'ZBœÿÍðýLJ/çªóô÷çó hnÄÛ‡GÚI‰7?ðbü@¨¼èçÏ÷Ø0»þt¢ßL&oÝPi7ÁëŸN¦Xl#Ó®èÏ›XZX\ë¯dy,+êm WîðöL¹Dß Ò:Ó÷ ˜~©ÜS妻ssæ7•»![¨$Ì<—1dþ/ý÷ÿI¾°> `u‹‹‘œ=>£üÃõ´šªÁhK]÷kiRÅ~Ò½KPúP¬ÔX<]ž§©¢X¾Úr z‚Ç5e‚ì¡Ð“‘”BóÇwçñwóõij†üŸ÷j[n9¢ïùŠy²"—q}”o©TÉö–å$µ½@$Á†H„dy?ÄùÝôéÓ‚²äRÊk¿À`¦»§/§O·ü´µ{†ž0ýÂE(¡—èI½I¬­È#­ïäht²%ÉYPACÔ0J²²ê:*‚U§‰M§Ž;wÈ”ŽW–¬šŸ…÷’Dô ALq˜ q韗&qîo°Xò/šó1(.õ×m«~'Q“òuCo)‚ÃÖþÃ%‚8úMK‰b+ÿuÔ"èYp«/’{reÊu•l‡ÝÀ­WÜ:± wâ],ÖŽÿHšHqšJ•ŒYÊäÖ4´o×v¥{òWÈa™ LŠ”+ÌÝ#q_޾ÿwðèË‚¦FžÕp^)®“ÈoûÍy×H:Gf”T:APß>_É3"bˆí† ãGnÓC.7 ÝÖU5®ïO} ãl€¯e„Fî[™b*è÷54onY÷þ½¥]”z¤ä“‡Ê cÅJ|s;Ã{dæê/ÒGʨ wäÙ½\kËÉ%öQÏ¢óˆn)ÓààZ.†à™k`аsa¼,±íÔÍvËí›~°½õ½*¹ßb…úÀÚT9‘·vkÿœâYŒƾ»Aw‹ä 9L€?H/lÑ8'ÌM‚€µnh·<(uãŸÄY€`iQ$2@¾õš°)<'³X°sg­<‡ +ˆHƒÊêLÔgÚñ¯pjõ÷Õï þ„†%˜~ä^õMóŒ¢O_ù+T§Ü‰”FWµ¬¹JKîô÷,Di%cž=„n_³ŒïA·1@ Ðo¸tŒ.áÇ¡’•F ©²¢8ø"4á?@Œ2h{- „p­ òŒåºÇÈæ8xcœìïÂÉ š%^\3dAŠÇà/[ªÕª¼Ô]ZÚ0|clÁÏ*yZS,¸ú¨O•sc„´we®x¦2ãŸ¡Ñ€Š€7qÍÛEé¿ê—WtM§/Íeü|³õÑ«¿W«Õ¯¿'’ˆ8’k|)ïSžÇºÙw…ºCÓ¨—}¿±†QH4'cq«bϚ͠˜”#­_hÝQùËÜÝØ¿¹ªo¼¡éØÐÌÇ⺠Al„ E•KŸo41—"¯=ÄŸÚ =w9{\±“‹R´ÚlßjsmµQI^—ÚÄâZÛkêìÍäÁQDÍX#׸å*_:Û¼=TÒ¬¹<8ÿÄS­ö~´_ÿËÚŒô®f‹´`3cç­Ü_@UuíÅg:À®dþ±sìT³Ü9—nhCg÷1/Ó¹›¶…{ÿWN’MêOi‡*¸äß\Aýg”]2–]F[N•&¤‚Iº@+:pµþ2 еçÜ9wË%Nªf…¶-ý»²\âÿÈ×r¢jÌÂËü¡N…K>·k=€ŠOE[£Üc8q¢”@þ<·IqÝcÔF<˜å6Ô.ÝóÍõ– +*òEp¼®:`h|Þµ;,fiðÛUµkvTûZ–¥Ñ)ªJFåUÍ#÷·fÝôè5Êzä)IÁqÇrGR¥(89 O lù롺ç n±3ÊÁ$Ó:õi!;G~:¢µ»§Q¬e¾ü1+á(28z‰a*×é3·¡uŠ·U£3Õ~Š;Fc?eÓÖOÚ¶N¯"=±æ~Ì·’(wºfsåÒT4ÒxgF[K…§\ë¿sÒgç^ë‘B'»ÜèÎH#hú~×~ç*ž¾g¦f}İÆZ8‰Ú–slšjÕs˜k—ì>}cš¼ŽPª;CI™Š–'}çk(Q¸‹„1½bGmûâ-|°IÄÙXõ £¢Å™í‹3eqÚ4•áûfµ¹å¾£ˆŽu˜dÀÏ›KÖJ@‡ñdVç¢A"Êx"o¹±Ø¡¯Þ¿®)Í ºÑ×í†Ë2¶ ‚Ì­e;ÖÉÔ¤Öë‰I• ¦™åþ[¼v ¸ßÏk¿òÿs-ð M;½c*oö 㮹¼«úKz¼wö…°Ý‡‹Æývo L] pd¶ºòG£yiìè«ËËIÔkÓØœÆç¹s¯„­YÔ«Ã n»æÈµ>(ÿe§ïRAeæéŽæ/R*Sf/>ÛJ¿ ƒ9óàÙïá2xì ^†À‘#±;®ÂÒ êš€ºE-ðµÓ_¡õ"´ŸpÂtü®j¹Mêãß%¹R­Í"‘¿VM´ˆŸ+Å{uIÆ”kØÕäÎv¨æKÙ«yp`zÅÓnq÷J`c~e¢ŒÓô,”¸`(âÍý]©Âk·{ó’®±U%ßSÂH¾0$_!„Ø‚HÇ"›‘ebMi®³mz¿peHÖýIÙÁï§,7a%ˆ˜r–oÃ8xæÁ‹ÐOhHÄþë;ù^¨“}‘ˆ“™†Ë€‹íã·9°zùx¬ÃÇ…ó‡XÅrlõ™oõñ¾Õgì )[=;zs]ÁÈÆ ïYòuaæ;zÎŽž²£GOîèq*d*[D? §/Ë}ù•¼µ{ªNbÕ˜ô,-Ù0¦‘GKk©‰vd¯}Ã+ynl75eº+‡<·9×*K´Ê¢Ìj*µiîJ… 'õ¿v¦ÂN÷îÖì‰Y¼‰VrÔü¸&U«˜¶ï[Óëéwÿbql“ÌÄò³à|Cëi—{êŒyÿàÊTs£¿’m¤®Ú%³Gz9g4)N1¯¯Vƒôˆ7¬…ˆU—ØFZ ZûÁ%ÏBéë |£bø ÈœæìðšÏÆÝR“ÈèÚZzñJšFAœÍ¹~û@ '£ ­¾è©óÍONXhaYÑðSmáXõMÅpNG•äÓ‡±Ö\ãCçÞjà·übHž&­&¸x‚Àû|ºÔEÛ·öÙáÓâÙeù´žLÅ7‹cº5"#`©óÔÍìã…=œonL¯‰Þ\\ð©Ì‘OÌQÅqØß5ëK}˜µRyï‘s¡Ù'¥¦oË„ây{ñù:ÓxØFW­V–­ s¿“è%Æ}$Ì%Q§ãN%ÀrzÕ^´„“]µTW Þ@ùÚñxÍ®'J¦Ås1ÐiÍ:^eì“™ï“éý+ÓQ¢×ü}FŸG‹bïóbôy<Á…šv¡Ü½YïØ‰ntIeà¦j YK;¤—¬ÝJ'‡Ï·í7[Xlê»Ï˜FJu:ï«y‰ý¢ÕK¸çOíºQVÎãšn<6ÝÔ7Ý¥{.½–jÖJòoö÷µ˜R ³ôë¦Æ‡4­xræ kÙGëęΜ€ÌÊSq”,çEñCñb¬¨Ø*êu#÷´I#iÍ?×Ùûªê®3ë[AßVçüÐ5;™e%òµ|—FyÊØMh![Ú¡­ì`×þQÉ@Æ üêL•—}(£‘bѧ]¶Ó#­£»©ùЇ’PÒZO¤àÁ ‘h¥LP3ñxpÌÕ…úÅþ†$äÏj|‚OÙÞqT™±¤(*?åá,¹×&Ó7 €»—Tû™$ð >´`ƒ’„m%Žijîñ\ˆšnÁšºE%‡ê:F‡ Þ¹­mxKÞŠ©w ^žv]Q²ãX¹iOk šé®ÁL¾ömH¯ƒ‰ÏÔíÜ¡¥Î ™Ü׿ Œf _àS¿÷† ZãYä#SF¾ck|O±;N@ ½4„\Þøhˆ¥ñbd×’(sèý‰\#ÚsiQÂÁžJg¹m ‰žUX“/µóGʲ EÌ|Ò¶ÑlÛG¾Ú›µ¤‚Ý»4†é胑µŠáq “¨°ÚP©—{%ó]sg[)J;M‰Ž'n§f4G®²ÙÕ[¦Ø:éÆ¥ŽŽq`jþWwë Ã@tç+;Å$¬ °1U¢H]:ÁðÅäîœ@$SÙŽú9—RêmðÄFºMž5Lë«ÐÜ¢ N÷³¡0k.#Ò™F]ýF°KèÜÁØ‚Ðe-^{¸¸hóâð¯žË“–@¥ýèît0¹` iŸ~TÐE²ììH ƒ:?z±ib3ŠÍ 6Có¨,į̈׳ÔÙ4±ÉòYzÞôô­¼Þ¦e67M^ÏUÛô¡/4²¹WžL©¤î¬{ÿ˜þà/mÁþÞ†BÌ™GM!LIò±×ÐeàÑ †VˆœEâþ2{4 âV endstream endobj 33 0 obj << /Type /Page /Parent 80 0 R /Resources 34 0 R /Contents 35 0 R /MediaBox [ 0 0 612 792 ] /CropBox [ 0 0 612 792 ] /Rotate 0 >> endobj 34 0 obj << /ProcSet [ /PDF /Text ] /Font << /F1 50 0 R /F2 48 0 R /F4 49 0 R /TT2 88 0 R /TT6 103 0 R /TT10 104 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 35 0 obj << /Length 6008 /Filter /FlateDecode >> stream H‰t—]oݸ†Ñ[ý ]ê,pd’â'P,°q7Eƒ¶(âÓ« [¯]$°7…½húó;äÌK‘ž._óöèLªAÞdS2[.1ÚYÞý09Ú¡8‚>OB[ mÿì­o`Äfï½ä¹ dÊd:Dmt`ïƒTj¬ØÜ ‚tƒx¼Áñ "ú `±|K ÓX‘f”*k7E WYf¶|0I\6Ñæn³“¨Â©õÁ2!àÌXœItcŒ„ò°­êª`cU@uSêT—ÅÕIJ¤®ó„–U‘9Xt ²±L¶#²%eH)âB%a¦.g;KòÓYP`Z½4Àa:¯É56‹”€…)ÛȉíPJš‹Á¤èXÕMZšw­P½¯ÀôŸ=ÃÒ¯€Zcçýµíû€*ˆ"J7WðU@é8mJ $=ÊCJÙï@dCÀtÂj•94”UÔzZu³ñ›ˆ®¡ØÏ#Àá7š•Ú‚Ø‘"½I¬f=¨ùº\´‰#À.0v›Ì±u­¨¾‹4º×Àˆ$sF4XÐç * 6Qµ¢ËòáÚÞ¸è:"š8dWû¾è²±eoIR.@¦HRrPndQ: Ö¹ÛâX¬I“Xì `TèÅv¦ËÈ ¦è…LÀ4J…Ue¹ƒ–‰ÀŽ.ý[á%å ô¢’°Òü [›ÖvRL^9‰CœŒÐØûM—8Þg'ºsAùN›îpOq‹hª›ÌáQ-É Ê‡ŠãòiÀ&Cº»±ƒ<7ݦZAm;2¢6¥Ýv¦ý$6ÈÄ ÒÇô± ×C×£kø°‡¶ îñG×7ÝXS‡§Jµé×¾êAº¿àZI‘ }È&ᡜ <$‚}ÅIdÀ‘ ØŠœD&ÈiÃI`Ž'¶vyÙ­ø‘ÀMˆ¦N oÜ|×– ÑØjÍ[Ìš˜û]ò-@+ÒFÆè Ùô²Úu«7ÒS56;À NN Ît žIŒ4n#ž)ÜA€«»ªö›ÙàAšìµÍ±QûMí °2Ô~u» “jp—SûU?²_ÌF{ˆj¸¹qŠÀçßœDÖ¾`oÝ}±+i&À»ñ0˜£ìèG€¯œ±­´˜pG!À‰¿N´B€•à¤,ølér°Tœ¢ÞÚüZç×O|;9°ƒïíØÝp«Þ¯Vؼ±¡"|ì–µƒ„7pc­e`ð\z€GGQýµ îMHË-©6!€¾çðƒ]{ë.¶ètõ®¶ÛßnŒv¼SZ9„%DC®U+úmÙâªcÁ[æ)M€ES/ñ#€CɈ~ç Pw#S$ ±j¥¥XƒÌ{vÀÖ]ÇZPÎÖÀyÙ4[dˆïv]ÝM©±7°÷;?Ɔ¦.Ç…yCä&'Ž”40¸¦èpx0çœÄn8)µÀÆvé¸h´ ÚÆ{\4j¸p¯hµm„q lA”!r‘s%îÚØÎ´‰ÇI¶Š‡NJµò*Go°gG[9qCädó2¤ÀQ8ȃípê7Rjõ®b¥Ôêݤ/ßÔËŠ·MÀ奶ˆz߉ûÝ@ãR¥TÛˆ ‡j\»ÐÌ`0ÄØ¶!Và÷«Û&]6¶ÅGll:yµr”ê^s8åN7ÓíFåZØ[O ÜØC È¿~˜lôõÓ‰Óy?_þ$OÔ|ö$ß-FÃý¸ŸÎåW˜/ß§O‹?QíÒëg³ÑØÕäŸÚ*¥–'’üòPž?žÎÙ˜ÿ^Ø7swÒÔh—ÛÂÎ4Œ¸ËOšÚÚò?úó#ÿœOŸ/¦Ÿ/SPEM^ç&lÉ¢àŸs òáç1ûÞ{²hÉù³¿yÝAgò5&ÄÄ.ÌôMŠ1-„Jsyúå”–××/™Ù¼pÒÀ"Ö}~ö;­>‚|ûÈ<žzóÞpø© ÓǽËåžJó—Uþæò‡Þ›÷–ß$¿]ˆ´ìyJ¢VüdA•Ƴ&•ièÅ¢¬ÿý·—ù—§§ù§[Z™Yþq:çÿþrʱY(6¯ä—£Dèåå¿':ê,¿Î÷´ðüó÷)tyùö4“Ëó‰âRÞü?íU×ÛºqDÿ ©ÂÄo1( ÜÞ"Àr‘ ñ[\4µ¶‰+“E9vÿEžúw3sÎ,?$»0ÐôE"¹³3³³3gÎ «kiÖá#„ºU·!Nø\‹I *úõçYЀ|ZE¼«àWÿå«F*ó.^n¨×·«+½hÑp× ¦Ëþ]@/O«k)sïŽ/®º{Í Ü¿ÑdØ”Ro>RÛ1R1#Uõ¢oK}<®F‡-–4 Ž)±«K;‰åpÂcÏ/”…¯«XAxðªl»Äë7 „È™ä#ö‰ïƒ=ˆL4ú²Á¥Ìd»Ý$ yçiƒîÎY½Qó¯ žñPAïžzOfYÒ†b5·« ê]P›kõ7þïÖAÀ ,ͧÆ8Å=ÚlǸG>ìõƒ¿:–(<¯ŠÐµò3§s i’‚ºhéñ©Õ}"tú5a=I_©Š~ ú“<êë5M ~ÿÓJÊ|뷮?jð‹°–èe'r•²) ý’êÅ®!¸›Ùv³—ÁÕƒ£/Þ•¡ÙÔw/“w½qsKm»`€Ý_Asdhoþ‚8¦ùˆ¿È½ œ‰d~ì<ôŽ–ès­=Múßu<ÝjùŸ ç¢ þ)‘‹,k™|îŸ-u¦82 Y–Égår*ŠKNeabcu iå﫺A-Xæ›]«?.-êꬸƒ“¹ëi§î¤´ '“b±TnYKAmÙ;,0¾_ Æ;È•cŸÝXŸÝ¹{EÉTŽ"ìTœ–)K‘¸¤æmyåÊríAú2þæÒchâ¡,ÎŽx¯‚Sø2Q²ÄëÂ,{/fêן⼠ÎÓ0òñçµÁxÌÅ-#ôíñßâRåVŠYèn„â"½ÒšW¬ ë^ðäØÕ¶@IÑÐtTªÅŽ£Tž&‘& %ª=×_ñöoÉý¡ vNJ_‘e}ØPØ ¥ï%vÚ<%ó ÄãÐo0Ë4ųTƒ3ÿžØ!íÍÎ;óª3ͣ׈‹{'ãÎ1ûHô:ƒPa¯Ss8þ#gÚšR)ÀL!ØBݰ¡sÍ ûéô…vÖb¬ÞãÀó&Ñ-A:‡–µŒy˜±ÙÁz®»+¶ÃYØÎÒ٠ܥÃ)ÿ¹Aà ¸å1ø¢½mFŒ-Xr§¹D©ÞãTŠâúª†ô¦š ¹Gœ÷ª¯•ÅëÕØ7¾1ªš^™’ºHÛ‰$ó–‘MاíF¯á…ßk³H$™©Æü©—¡'i1ðOñŸ&G£-É>nç^Ã)·«{{Ûtâß>ri:Ä`zÍéå¡èzµðx?Œ'C*æšvQ!w¹—TÊÆpÕTÑ ïêvTƒ I!‰±^VIB§Òƒp¸ȧeÓ@¨~äò®“f ¹P¾SŒCjÒ¬ÔÌ?×iáÒô,ÑÚ"p±É¸Sâe:Lí9­§ Ýß/&`‹­£nF‡;¥nŸx’ìÇæEßò|-Ïñ@‡ùÍÚÐߎæðÎd¼S¾^!dAyZáj ½SK2»ù{‰RÞËÓ C…[ÅìØ9X'fÃŽs ž‡•J ÿ@gÜW…$ñ:ôÛ‰ßzÛ9u·g~¨`j?—uZ«%x4Þ%þ ýô®‡™]˜T§Y˜›kÖon¬Ê%ØpÊ'?fqºÖD•ñTׂ£ÏÓDC#íµŒrF&Y§Ág9ÿu µÆ'¥âÝW§ÄB áQ×uhˆ“­ì¿´¨¨LO›¢AêiéC\!ÇÄ5ÆI!Î…–20U±ÄZüÌ ìkøñ¨`›7ýÒŸQ"•¬'MËrŽ'ÝèIÿ$.pÁK?‘ö >ÕzD²ïÎ ç­Á«iŸç¤®®”ŒlÕF-¯á|s-ðHÙ÷æªà¾› ‚B8{™$ŒGŽ#*”ßñmœyµÛõ'cÇíp1ÍÁï݆…~XWGg˜Ë¦s%…Cü®ˆª½áôÞa¹õ™‰&ÆäÀó3œ7-¾U¸ùØ•-m±Ç¬˜a‡š–ÏÏóõos^xéSƒÌ^jר-Ú•õFgðýЇÁÙ÷·N7ÅÐGœ$cæð iãÖŒîú=LœzUd½êè“}ÄIï\Œþýó?Všæ·È°–‹»‹Õ•4Ÿz ‡Dû™RΤ°†JÉŸþÔ^SŽö®>åhàú¾ëmC]¨‡ï”Øw¯ÚŽ&¦`Æ:¯Ý)¸Æá ?7°E ´kë£Ù”ðæÉå:÷¯ÿËüácüç`N:bN>bN"Üqœ˜“s¢ ̉96”–€ ípRÉ!' í: ””‡œM“¹“³‰v»<œ&õ3L~³[QiŒ#Îo`?á‘]Ÿ*p-õi£´‘Í>vNì€â=7QN˜(¼Á4•†4gÎìx†épo£Õå`wš \šwn) )Ö"XŒe³ë¯xîÙ–Aa_†3-œ±†QCUÛ¤VÁÀ~1ù‘– ˜æÚùÀ8#ƒ3”të’†t#xµ}ƒ4l=iˆ#O2% hÛª–%­" Göð=¿ 7÷;dAšäÃÇš{²•Þ±ý4÷‹|@¡eZhþf^¾Cïdþ6£Î²eq ‹Œ¼¯+.w¸Ÿ«ýürI9ñŠÍe1±÷\K'Vþ &jZiY¸ ¯|¢õc¦™e³ÚcìŒ-_ì£ù8*ÓDD‘;žÖŠ|k»hZ}mß«¬$›† ÌA»8D-;uhˆÉÞ1gèÛ#F ÌÎbÃF¢A qVA[Â@ oúMt>c¿¹EAfƒ ]IºAxƒ˜L–@ݶáÏš}yøƒê“FÒ\_-ìéÒÂO“Ð0Y“6ÇyÈáë)áà§xy~b.˜‰ 0[U¦š»øK}=îgà1ýyÞiòSçMÜà6‹SÌ%WcxßÓ+¶zñþb-Ó8‘ú2Z¢ÅX ôîî§Àñ ôOôìÈBaŸx„tc‚G IøYÒ- úP§&ä"w/´×æAãý€_0°^]ÎGq Ü?r‰”ùf r€Iú¼0&«ÑÓAêPj+Ú›ðG$ŠtÆQ¿–w€+ÞfÀõ&i¾Á JÏû‚ææÏZ¡‰dªRâ„Ï8¥qHx(4¶š àV×:VU¤‰žÃî¡Á?‘z6ûÆÓÏWRÙ%Õ~Ô6núAÊš‘Ì,ot›¸ñ-™ºM‚ª-¤jb|A<¶Z² g@>šœ4fàM K•‘(дØI|ÈGK¿_ÿÎ ÁmhÕa¦ ¶Ô|šÙ½]ïÑä^ h¹8 7¸7|oøVï¹úwvŒï_¹—h+÷rž+#&ýQvµì Á»_Á±^Œ¬åHŒ79á r0!‰F?ßÎìVQ/@“í™]ëL÷:åYîñµ["gÊ1°@\Y–ÂÉ´…~[V;ïêñÉ—wIƒbkäÙ©¨¾7XL PÃí4E³i;dAîN-j¾EZÏ€ÆBV‰ØRì7¹QˆV÷ÔÈ [À­ßÄêѺèîŠ1/EQ]Å,hž‘—KŸ4D>zÖzû¿î`]í„è!uDm¦>ûû‰‚eF©l”°í ~øu¹7Œ `c.é›S×'£ˆLº/ò½•FpnbéCrœtM«{1/¾ s[£^úÑ^ƒÿnfÊ´öÇÅ 3 E' endstream endobj 36 0 obj << /Type /Page /Parent 80 0 R /Resources 37 0 R /Contents 38 0 R /MediaBox [ 0 0 612 792 ] /CropBox [ 0 0 612 792 ] /Rotate 0 >> endobj 37 0 obj << /ProcSet [ /PDF /Text ] /Font << /TT2 88 0 R /TT6 103 0 R /TT10 104 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 38 0 obj << /Length 5884 /Filter /FlateDecode >> stream H‰”WÁŽ7½×WÔ±ÛÀ´%•¤’€E€Ø,${ÈtNAÞIÏî¶'ðxá|þR⣊R•›Æ¼×’Š"IñõÛ—0?¼Ì¦þÿò0½þǽÿý2ÙùižVwqÉÎk—”fqó]ùçómzœ^—oï±óþídæé÷³¹X7­™žûÝÌ”cl,ÇØK,Ç,Žÿ¡sîÛ7|¾DÏü]/Æógdïâ.‘~õ~¦mä½™ì2¼78úb1pá}ôS¬ÇFüDç.ŲºÑº|ñeç²\²›?vDˆó‡J÷ ‚Îb"z&L‘Ûš|!s1æÄê@X'×c¼Ä{éˆä¿A,¼Å’9ß °Å’"ýUqºÜ¬¬4úîŠâœì:—P꾄¯'¢¬¨J8"ÖÞ._ôÈ„©7 %´ú&a»|Õ&Bdbð†"Ç„Ä šûÔm )ºî£÷pq¾“ÊaE]k<&:ñ‰+š<Å{Šr€8ÜwXb¦=”õ©³a;Bpì¯!!SDJ½+zO ~³’΄¸Úù!8;¢|qß °e“D#²ëŒÞˆ›V…hòñš^Í*E$ËÒ€½ì0~È:!\gÖ†c_€¶L_e…Ô‚!JÍCJý [EZû¨"'5-÷ê߻ʉ‹4]‰+Ѫ±h5¦È½ÜA"ΊHÀ+ŽÌ®#V¨¾ýŠLU„æj°¢("Ê ö× Ñ7BËw@HÌÚ²™Xâ@pQ´Y– "¼W?˜á—m Ðb†*ˆˆf ŒӸæd.1) 17Ì:³®Rà`à*Ä$%kà ΫÊMRŸ6±¾J=IyÚãúJRœ6ìa?‡s) ³<; +³i' –“ù†ê¡pÒ–gÔ…W7ͶyzÄX.Žìüš]ï×ìš_ùêš_³ß ŠŒ¼S8z¥º†¡Òì¡:¨XáªzÂΫ,QØb=«pÕ Âu"Üã€Íìš=¶XÏ"qÀå<|9bß.Çΰ MÚà0šjF£ÙCd5º¶Â^ëjÁå6,ºré{xÖ ’žë£Â\2"ïkCRËQFÂáîIúl@yÉÖ†¹1nš)Cˆ‚| _§Ôû>¥@Ÿ!—#y9Œ8¢ÉËcÃÑ+%´r±ádôzy/mXn›._{œt5l°Ó]+¦‚¥Ô{n‡ ÷­¡’N‚È*Üw¢ÖmlzÜ‚B*=pÖ³ŒðmªNK÷¬V0D}ž•Ô¤ß\§××+uæùú8•>ú¿þa)³Öh⼺Pqý8Ý‘Œsóõa*Ù0_¿N¿æó‹‰ªa8=}¾£Ý§ûŸæ·ç;NÏgÚ´œ>ÒràéO†OnŸÏwT9Nó¯/ç;Щ¿Üi'%Þ鯋ñ¡ò¢?}zÀ†ùüûõlj~3™¼uG¥ÝP¯ŸL5°ØF¦]ßÓŸw±´°¸Ö_ÉòXVÔÛ®Üá—3å}ƒJ뉾_ÀüÏÊ=Wn¾?—1çô¶rwd •„ÓßÎe 9ýEÿ}Ç’/¬Ï†XÝâb$gŸV>£üÃuZMÕ`´¥®ûµ4©b?i„ÞF%(}(Vj,žŒ.ÏÓTQ,_m¹=Áãš2AöPèÉHJ¡Ó‡wç|zyy*œ/—"µ€Êo_Ȫ$Ìó'b¾ãýl( ÃVFÉÀ°Ì‘êÉB†Ã‹67%X6àîLæœj¤lqÀB•ƒn^ r%åK·w_nó÷?ÿÄŸŠbüé»èÝÌkgœñBþ®*"ížþ[×à˜‡ÛüðüÇm~¬ß$EÉ–¯gRO¹iñü>ý?|z‡nóí¯úÇ—v² üÉ'úfåİ Ûu™ç+oâuóóŸ_žž±èás¹~x'ý?VÏSM±TþÇxµí¸Ñ÷ý bŸÈµG/âå%€3k â È  àEkˆåˆ2EyíýúTSÝ$çc€ûV]]—S§$$Úfî$uæÞZÐÖÁ%*5%ð¿‹Òð‹&xómÐ×wm ÜL÷6mz¼S=òð#†IH7ƒIuã­š_ ]8mÝPDÐwG“5`‹y3KÙ·ËQ÷ Ù‘lwîAiìÓpëH—Èõ-Ìá"è_ÑU¡žÂ_Å q؉z½[JÈÿÚHwwgÅÏã8Œ¶¥>bÏ~öE¢èRó ;"ÌQ­ ˜³ã~IçÔ ¸pö4ÔxpŽ)øi£Ö“¤÷—Ëò{P»î¾ë¦d!R½"˜ÞDK¿]Kxdá›7¯ˆâñ™[Ë]øÿ5ÜäJÆu®¯1ªÜȧ/Ø…<0i˜+’É{>uß»³'4Ðc˪Ò6z[ÔŠrgì¢ZA= í ujÜ™õž5´n5­ i‚‰éÔÍœÏêgݲçÄÂÛ™º‚Œxbes/4¹ê>²_ín)ï‘>pÕvU™VõSÀ^²œÉW W2ë˜Ê†±=dr¢!ÕÔno#5ÝÞ-µ ›Æpolsÿk›;p?Ž?“°¦ºäægMÇráð×ÎÉÐSw};_Û G®Mî‚#V¦Hsp]¹·õ{˜1¶-Ôd ›•×¼žV†pÐrû‹H¡Vöž™ƒ’BBò YûŽöÝsh?ݤ¯_GõZ%çaDi&¹˜ËirNŸL–»·æÎ—‰¿UQ±~ ¤ùN¯¾FešÐw穳å£Lž­ù!–)IeBqÃí cßdcÝ3Yø ã©5©çõ~àèȳDüN ^8Ú-`>-Ùõ“2%Ùgeš•„Ip¦Â•F\á}Áü6j3Z-yDT²ÝSæ¢éKo4¨œO»ý‚s# QÓ¾Z'= n ‘2µÆ˜B€ªW²ê±æÉuwP3¿+©ÞÌ3Eý˜Ñº³ú¹Ó¬³¯¹’~t‚ša[; vew<à8‚k\%•¹wòjé¼&<;E)ò›á¯0]JÇ@i=ªÉϯà®} m<–jð-bÖ'"®Ô Óâ‹×«´Fvã£ÝiÍÙ+£¹i–ª[®Q"QÓªÐÂ]õË jr¼"Ô(´¢PuC¢á c>âJ…’X«÷*Ò÷—–ÍiˆU£yÏšê8•LÈÏjúÃ:ÚFRæ 6#‘ÔÉm9êÁnà¾`óÏ»Ñ;)Y9ië‰tÏ0’‡ˆýxaá›gÚ¦ûü=Šç46TK"R’r"Qcdcei#sS˜Dd–<Å~Ã~'í‚ÑYß°³Ü‰W^ÇQéA`îŸN«Q;Ë Ò¤EiÏoƒŽÊ5¦\kƒ=o©i•©:Sˆoú’¦WÕš¶€ioÚ䛪˜weȆ&A8+<žYî.Ñý˜ªœHx_8s&“°u.Z´Æ6œlQÂâZ Ð‹²¦µŒšïëûï¾]Ùz'õU-ýQ ú¹Á’`οÜÞ&žÏ?É£«<ØÊ¿Šd³Í¤Þ¦¹Hn~ÂRp6–´M· 0Z~ÓJÛœGš2<´²IŒŽüš†€dóãMðÛõ›7Áû£Õ5¡U ä–ý Åp|ÐsÂaŽ“W;ÞRïÊ©8Í7%Ô΄}”Nï­êý<DÏÁ¹mLeÇ«­»!©®#Û$—F]ÕÏ;”p§‘D·™Œâ:ª»h§n'djIˆÂ×Óÿ¡ËnùÔÕD)V%?F– ·K@€ŠÐˆ¼äøÌÂñT×¢¨£Pß+)šâ´œk-Qq¸µÆé¥²ÆâÍÜNØ›¤06qW¯óîí/Œ±|ÙÜjÀH }íTNŠ4ݲZ&»Uô½÷¥n–ä=F[ÅEÝ-:VᓈÏ$Âñør/ rS>øÄG|ž¹ˆ×j˜…©ýÆfAŒ×}à¼pdMÝö0ê8¡ ua8õ™î“¬W2£ÅG7Ÿ§á!¸†ž4ê“"•ñ6~÷IêÓµ˜ã^ãéÌ¶Ó -jœÆ¡i÷Ì)÷xª÷ímÇĈ³JF{±rÍD Ï…šÜ/&÷+`µÉ©Œ±Ló6NO\k¶?(¿žÄîN%«&T. ]%ØÒÌ]¿ÀÇgÔ¹Ar¤^-¡i}`>ß…°=PbÕs›ƒŽÿ¾²ŸV#øÎºãæg׬X¾k)uw›AàŠkˆ}%(ìk=æÆ$ÉBã:Û',Ç?>¶Ç×R_nÚ^`ÓˆƒšPyÔПWŸ¿^Ó¼¬qe"yÔ&Œ”™þÙ®î^´)ÖÕ²!¹ÓËÁ.q”ÓEz¿è‚߀?÷`«mðó­‘_M¬ x+«úÙê¢m¯!én³rzûwWÖ éÕ͈‚\I &s1P‘þd(Ô1½—Yþàuw«ÝLQÙWê´V¹8ô3Eé›Üvá%×vÊf'@IK XÄX:9sX$Zƒ:ÛÄ#ϾÇÓC¶¢ÔèÓ $.qL©%]Õ–¡w3ç¶Õ– ›HR+÷|T ¯²‰õAñ¨I}m£¸ßâ€ÿ½ ŠRžkÆyß5¿>€a%JšCnqÐfuZ‚€ƒÚÀË F›ØÙšÚ—:z9ˆ€êÕË æßÛ{à‡"ü‰D¹Cê=Ñ2ÉaA¶+DŸÎM4Èt%NËâDÒN²t‡œÝAò×Ôâ.uÁZгäÓÚÎq—©po7™3‹Ëb61ýíè…GÀyŠ›œBˆC™mM¨HC„N#݇›2ª(=JÛÛ)ñ MªÓx\‰–gž::Pøë…@K«}\¢ NaSÁü-ÎHpà ›àäáKÈö]ZA—÷–ºí8#ÁƒQÃ%—O_¬˜[Iñd»L¢ež å>ÑâU—±@0D{_¡P$…‚ cÒS+”רP˜Ñø·{d"Iá²!ïv°Mð5áhõÖ*Nv|²^T9S¯‰e>ì½(BKÖ¤|8ªzÚiŠ{ÂtõfÈOŠ32Þgú eŽ\a—vI!°û>¶[G¶ñïÈê7.WX{~+,²*q“’2#8ô¥»³„xàÓ¼JÆ¥x Úh endstream endobj 39 0 obj << /Type /Page /Parent 80 0 R /Resources 40 0 R /Contents 41 0 R /MediaBox [ 0 0 612 792 ] /CropBox [ 0 0 612 792 ] /Rotate 0 >> endobj 40 0 obj << /ProcSet [ /PDF /Text ] /Font << /TT2 88 0 R /TT6 103 0 R /TT10 104 0 R /TT12 51 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 41 0 obj << /Length 5172 /Filter /FlateDecode >> stream H‰t—ێܸ†ïõB õ-ó|‚2ö&ˆ‘àé½òúb3™ Æð!˜qàäíSTÕO‘l Ø]ŸDŠUõW‘¼¹L¯.—0ëùò0å5‡YÑßíG4«rªüïéÇ|ù<½zýìç»çí5?ßM¯þt«ç=Ogµ*eÌ|¹›Ê/íçË÷éýòø‡Ó™¦Znÿ2¿>µ_¾žèM»|>[Ãòo6?Ý?ÎaõËüóóéœV³TðîþFZúyÏ/˲´!óË ˜O.o§Ÿ.“žçÉżú çèýšÒìV3ŸË?O÷Ó»ñúVܸ}=©ù-ýø8«U›ùû¬Õü×ùý5ÿs›Ç¹2^C™Çþ‡&ºÝ¿âò?8ëX¢µ}¨Ž¶f ôع™žêÀ£½²«J<ÚújY¤å‘^JAyäMmËòx¨ ´œ2±]³™?wÀ‡ùÓ’zÐ\ ²a ÒÊÚxµÉ 0é§à ÛÁõv”)#‘/Øð¨Cb?Gæ@Ö¯"ìÕ³\£#¾ï/ 8ÙtÀ•l¶#\I`ÞØÄpb¿.WDÉÀnžø’ÚÖ¿;¿é É1¢Ñ€  )õv Ý$­NuEÞýj ^ÊPîtâ«¡5à½xèw]s¶ zTú©[¦ØíлQS¶ƒ”úPô‘âV}öfu[#›Fõ!»$ „gÔ 3€+%V­TyC¼ªWsS"¨²4Ø#¬ªÀtË‚ ±×~³WzÄèWÁ1®·u?ÃÞ‘bŸ’¦É¡§å^ýWàªsÂ誆bµC«! ÷rð0Ýl{µá½šüËÙo;ý Þ쬲aóºhÃVÛŽ\6ãåÝéò±lÞäd+›’±¥Ähg¹ùaò´CqC™„¶ÚþÙÛ Þ6ÀˆÍÞÉs0@É”Ùt ŠÚè8ÀÞG©Ô8±¹Dé xƒãEôÀbù–¦q"Í$UÖnŠ$®²$* ÍÜöÁ,q±¢ÍÝf-fQ…1Rë ˆ2‚eBÀ›°8³èÆ å`[ÕUÁƪ€ê¦Ô¹.‹?ª³”H|ç ,«#s°&è6dc™l'dKÊRÄ…JÂÌ]Îv –ä§³ Ñ´zi€ÇtA5’kl)' S®‘‹Û ”47ƒIѱª› ´4ïZ¡z_9€é?{†¥_µ¦Îûk;ôUE’n®à«€­ã´)%‘ô$o8 ÙÊ~"¦V œÌ¡¡¬M­ U7[¿IèŠý<~£Y©-Hý)ÒkÅjÖƒš¯ËE›8ì2ã`eÛµ¢„.Òè^G#²Ì™Ð`U@Ÿ_€ª€ÚDÕŠ.ËG„kÛpÑ+tD4qÈ®ö}ÑecËÞ’¥\€L‘¥ä ÜÈ2’t@¬s·Å±T“&±ØAĨ0ˆíM—‘LÑ ™€i” «Ê.qÝ&O9ºôl D”$0ˆJÀJ +lmZÛK1xå% ð2Bcï7i\âxŸèÎÛwÚt·€{ŠGXDS-°2G@µä0€$C<*ŽË§V†t;wcGynºMµ‚ÚvdDmJ»íMûIl;H5;dHècA®Ç®G×ðamAÚã®oº °¦O ”jÓ¯CÕƒ4ô ~7À·’"úM"@8HûŠ—È4€#±y‰L”Ó†—ÀDO\íò²:ñ5!Vˆ¦N oÜB×– Ѱµææ@ÍGÌý.‡ i#ctÈÈÆlúYíºÕé©›à/§o:PÏ$F·Ïî  ÀÕ]UûÍì ðˆ(Mö򾯬ý¦vXj¿º]ŒIu8¸Ë©ýªÆÙ/f£m’nnœ¢ð†CÀ‡'‘€s/ض»/Và$Íx7>sl;úàÄ+/Gl'-¦ÜQp⯀­`%x)‹$>[z$E€,§¨·lX+àãúI€o'v ½ºnÕûÀ ›7,*"¤nY;Èx7ÖZv_Á¥×›tÕ_kÒÞ„´Ü’jè{0صùîb‹NWïj»íðáÆèÆ;¥“CXF4¤á:µ¢ßn¢ [\õ,x§Ñ<¥©phê[ü`çP2¢ß9ÔÃÈCœÀÖRœAæ»FÀv×±lggà¼lš-ˆ2$t».î¦ÔØVdìý> €ƒaÑÔå¸Ð#oˆÜäÄÑ‚- ®)z Á9§©[NJ-p©]:.-H®ñ.Ü+Zà\aœ[dˆ\$ä\I ;†6¶7mâq’­â¡Ó…R­¼¶# ƒ7Ø3£­œ¸!r²y™ á‹Rà( œá ¤Áö8õ)µzWqRjõnÒ—oêe%¸¦àòR[D½ï¤ýn q©RªmD C5®]hf 0b\Û+ûÕÍJ—Mƒíð—šN^måº×\Æv§€év£íZØWOnÜ! ä?L.…zž¡(ÁÎz ÅÓýtCϳ®¢&•n@àÀò‰½ÅI*€{Âp˜€«âlá)`äØœwÙH!%v­îÀ\k àbK\Ð÷€ñ1%7¢Ì}Çe+åÚnÜ™åVÀ–¤#`’nf 2©7’@–!?‹æubàÂø"‰÷ÑxµY‘%Ü[û˱Î_æ—J—iî½.Óo:ÇSMÀà¹Æöí' k¨äŽm‰'&W À8ÚTà$' -§*uCp(kœÏhl6¼Ðá*ìNŸ{‹n€9&7€a÷A±_Õ¼ï`Øó®A·iÚqOµhlØu€ÁÖšE4u\/ÀtE³Û>tsʉ–Î7—éÕåBg‚ùò0å¢IE·žÎ‹Ê)?Çí;_>OË|º|œÎ”®œbžÏtâô!Ì—7òDÍç@òµic4\Ñ»é¼ýŠóåûô~I'ª]zýl,]Mù©Rjyw"É/÷Ûó‡Ó¹óß6ö•ÇÜž45ÚåõÆÎ4Œ¸ËïOšÚÚò_úó#ÿœO.o§Ÿ.ST›š‚.MØ‘EÁ?—”ÃÏCñ½÷8!Ð’Ë4˺£..”kLL™]˜é›cZ•æòé×S^žŸ seá¤E¬»òì­>|ýBäGÏ ¥økÅ  6LŸ¾|Fu* Ø~ùþ<ÿù Oúíñ×Oó›Ç§û»o_ùËO%œkXþw¢5çåw'Ê~1ÿ†”ðü–ßûeùãã§û7'Mz¢Å•·ž~9á%^哚¹¢2‘µ˜ˆµ([×òó3Å7ÿý?':Ó/ßþÏyµí¸Ñ÷|EcŸš%ˆ-^¤EÀd» '3ÙE¿PTÏX^YT(ÊYç7’Î9UÕ¥d<̈lö¥ºêÔ©SGûÍÀ½Þý¼Ëf¨‹þ ƒÛl¶”ˆÎr\Óÿ3Cû’ûoiàî>Äö™å†òkKõׇ]§Ûü1cìÕʇßÃPšE‹ˆ¢¹åhn9š+W”Ø­|÷)CÙ÷Ÿ²€dò\¾KKµ´ô:ÝéijŽÑž\îøn¢Z[ÂÇÆÝÐ×𮯼Méãg{Hß¿d85Tþ¬ëÛÛËÎmgFÕÄ®Ÿ_îÏ+ޱ Ë«Ëj3lS ·2+ŸÝÔþ4ôgyhI*8œs„c šN JžÏôãù.Mï,[í[O9ZiÀ9fÄtkÛ-âN<è{ãIµ·“klÏÛ­_Ü5z½!ºG¹®ÍêÝOw×®brYJ士þr–é†xÁ MßéÐAþo™7@Óæq˜P0ƒ´Dx…¢››®)9¶ë]Ôñf³N·?êvM›ŽÛéF‡Ä²þ°«èl{·mF'2;"¬Ð=æôfî§wÍ—e¢à<%Á#‘ÈÓ¤ÕRÁ¢å÷YNz°·VtßÜe9yÇ&‘—™ ËÓŠoæŒB鯱9&b0îÁf€Á n¢ÄNR''Ëí÷®Ùê7ûQ|–|VŠ(Á„¼*@»ÛéiÄ~pÂï •Kƒ‰€‹Îòß56xÊkõÃI³`•¶´=^>iîÜLç4£Ghp›fcóv¶ÝAߟôtæìÒÿ-C a¯p-Çs™½É#w£î­« w#VƒŸ¹žÊ–‚,¦ÌvÌ/D§&=—FÖ+“…²ÊqÖY–º¶9ØÃ~×ÊŠÊÿ¢#}‰R|ßõî“‚àŸÎ„å}ódD¥Ë9D–’Å“n-DŠ®Óc鉃\æŠ{­Œ ·7÷rf±ñ,wµ…<¸S_è¾4[´ä„'O{"ŸÇMlÑĚ˪½Ý"N¢sUY«1:…FGl_Kt–@ÏŒeo//,9ÍYrÐóJ-aI*ïL«'g·ÍÞVKØP\·;}g ZPDÆÐçEšíuë6iÝO,škbؼôZMÜO·ët»WWå­NÃj5 b»ôý¬k£û.›‘R Í*ª_¹J1ºˆöA?ª- Ø»!n¬ïýoÒÓšØcϺœE«P¶¨ sÊÅ sŽYôŸ±Ã:»Þ£éÚtÎËE¦Èdž/I«cß)c~48-ÒáˆÞ# )&/R!=S¡u5&3 /+÷`%âƒ-…,…Ó~šé¾[©;'è•ZÒ\!ñžÎ`΀í#Óf%SþÁ`J×wŸÜ}wîÛøµ¹»d'û,uGB1|à °I:÷zI¢£ò­ÞäðÙêBë¯ï¿§¨4:!C2}`ÌöºÛë2\A÷AJ£àÉt‘âR³¥2¥Y-Á´®ÿàè®:OÊ‚·—èvÂAT¸Ô— &}ûŒpËä}Å © 3ÖùÊ3ÏÝ_a ìPNy†åšYþÀCQ:)ÁRÈ®Hÿ·´+< Å:°O¢9ŠJÎâbYW ZývYè¥P•ØÉèÀ‚Í]üã>þš=|œš…Ú[”«Ëô¢¸°‡TïÞ{hÅ´,¹t^­ªÚ–]øþ7÷c’Z!^l!Å‹IpÔLšIÅx_\»ò_þ0=ɱZùÃ严™ôÃ*4ÕwÏ|þŸ^ëå¥ d(„€´K§ŽnÛg (ç‹:,'ÞkèÂjh{4¤¢%“: rQ”9 ‹œ‚Ø›ž2ªðæÍÞµMÔçkTëÕ3,’âÍ Æ’•¦`LijZˆü5+Ž}Íë­ýlBrÿÖݹLøÀZ@k½ ­õ…Öú¯ÌÆpÄŠ”4ÉÇÅ­$G¤äÑÜS²f-5òTÿ¾Õ¡¨½š»ë¶ú% |er†à;1éB â8UÉmr˜<%ñ"¶Û›fÆ:“K™?a} ¤0V”…1f>'xÖ”-ê¤Rìcƒ!-Ké—:RùtòZNÖsWz.É~¥nZ‰›‚V‰œnÛƒ—;¸pkÆ+g“6Tï´éy«îww„ËØ\9“âݽÎVo¬uù"oÖ+¥¶FÛŸÿiôro­CV»V¿kŸÙô¯®ÃÝ¢6Ñ@GH¤R‹5é'Á#îk¨Òì) úçáN0{CÙR× &ÞÃÆnug[³E­Î? ‰0|Ðv¶„›Ø´ùÎß!öÒ9ä^ßÁüIfÜ ï¼ÓtFt`‚Í1ÆÃs¹PaGÉík¹}š¥k¶NB.¡¢_ûM·wC³ÙÇùûìU²ËšÏeIå{‚‚øx{e/ì?öÿé¦Rôè¨Ì§Y²¼(ó¤¼ÎÀG.Q«ÍEñ³ iÍ 6¡ÉrAv°ÀNnôuȘ. 4ÖþW> endobj 43 0 obj << /ProcSet [ /PDF /Text ] /Font << /TT2 88 0 R /TT6 103 0 R /TT10 104 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 44 0 obj << /Length 3029 /Filter /FlateDecode >> stream H‰tWM·½Ï¯è㌀‘l²š4‘b0’´ã“ჼÞM$èÃÐÊpòïSd½b»[°ž÷šŸU¯ªX/_?§éáyríßóÃéåßïýôï瓟ÞM§%\CöÓ’Ò5ç)^ÃtWÿ|y<=^Ö™¯ï1óþõÉM?ò÷“»ú0ý9y7ýsúù7ýV—ñT—ñWªËÌAþð:÷}X®…¿óËÕEÙFçÎáJü5Ɖ?z’¹…Ïådn ¼c=à,óøµe Ÿxݹž¬Mô¡\c9Ïצ‘húЈ¾AðZBPÂe9ËYs¬Äì®Î}ƒXôz‚gqÄ’1ƒÈñÄ,S<ç¦x¶ã†ÈÎîªF×›Õ‘ÎÞÝ:@SÂ@ÄêJ;#V÷鈦„#bÏ«…pí&©ºÖÞ$­—o:°D"!6Ö0Ä„PqÌÃuš!|6U¿§kˆƒT¯êZè˜ħ¦èòTë"éjð8`õ™ô†à¨ÏÃÖ%Óx u™!rM1Zjc7¯áâ†PS‡¸qÎŽèŸÃ7LY%щ†C¯ÄN‰]«Jty«xݨf"eyƒ£ÎpquJ„áX+¦1­‘¾èÍ;B•Z6 (+¬i]b’œæ´2ªGì2'.Òu¥¦0DÏÆªUÊ¢Œrñtzu;½¼Ý¸L·§߯”ÔŠÿ¤4Or,Gz®ÛG®i·‡úçÏÓùÍåöþôÃ× ÝÈ3JR˜kˆqeyõâä]©.Â¥ÅgÜ–p[C´“rE“Ûülˆ ¼`ÉbÚ˜Û/ˆTCD`É ²!HGˆ½ˆ¾ŠD¾„Àl%[ˆ™6„$EOˆ² 0ã†mû´©8A‹ª`‚܆ˆ˜!2ñ Ä"ÎÝøS‚ç~*Åz*L¨‘°!ôXØ4 D Æ›„~,лû~*Á*ìèŒ= îZÓwç¯DÒåæ`õ³b(ÎÁ, ò['HÍà`¨BCe ö!bÉÄLhú‘kvÂ#÷pó8¹!¸í±9úŽp×<Ü~i4¨S;¤f§A"U»—ª©M]œ0ã%†-‘1%¨lZ&±„Ǥw@X©vÔ̲êd–{b~Ž––$,‘Æ)ˆ¸=Q€ìyÀëqóGDИ/4HLÌC^±ÄCH’Iž™%Ö 2å ‘0%i]ÃÂaÊP— Žø†’i‰q†f©‡8l‰zh ïá‘™ ±±…ïW_†¤½šÏu[ä¡’ÉØ¢Ñ]§•ÈK°îw¥ë¡À™6D°’b¬ú º¬ú€J]V‰@ÇLPÜb™Eëp†e–«®)†YÜÒÓ¾H&RèÔ,ïh“Éõ€Ú¾°õ$u ­f‹®á†¬ëR¯ˆ¸MV.á¬9Ô’\shÇú`"âuàiC耀÷D Ñ_- ©=èUµå4„vj¸ûÚˆí&wŒa¬µ1Û°ÞÚ©íˆf΢}Ù£q+k[j¶3p #Ö­ùÆà„ÝB>Æ„Ý=c@g;ÂŽ£8¶dè=nšfÜJünnf,/î( Æà–N‹·8‰*‹Ë“„ÁX™ Æ–2킸bD3¡Š»žÔž’ i9Å1˜†¶µ«zG¤5øtĬºn8ÖJ¡mh.%‚î¢l ‚4þ–¡½éD^ã/£[ qCŒ©† ÚàžzÂЭj‚ÓŽÌà¨ùmlmEG½¡-Cžîªi¶I‚1iro^óryôz‘,öcB,˜1Œè5èQR˜(Zc|Ø-qİ6níjLÌC[Ö í±˜è ‘\ÍSh(¶L SÇ(׌‹–ü7„cÖ>¯„•@ÃÄÚX<4,ÑÜÈž&öêú—uJêS:Aã9ð@²DpÃÑ©[£‰ìíÑp¬æ¢nžÞ x,¼tût"aJo(L^Ÿ‡h¯Ø.ŸEÓ]^újŽ^Û1<´™ðúT—sºþT—c:˜/8¸†…>î™ÈÜ{‡Pë=‹G¨õe _Cô¦e&“´‰é)¢÷=yíQ”ðºël"2é”<$3CRÈ&ÄNhÊ AÄÄDÞ`ñ*Á™LÞqÒv,ôJ³#².‘݆(¶ù0£švbéo‡þ¸-tH €üúâ´”þha#ÇêΦÚéËãéÕ‹SŽ]Ò¬ñ+&1pŽÎ2ñcÉ{1Y¢a›UràvãÚí=ÿ¼£ZÂhi_ùäTG´ÛT®ÞáÍ…c‰÷àÔzæý+˜þոϛî/µÍ9¿nÜŸ…SÂù/—Ú†œÿËÿ}/?Ù>Çlf Dlìs‘5Ú¸×4H¾æõ¸Ô"UÏÏá·ÑSuÊ芅 KäC×çi®Ž¨'_|½?ÁiÉŽàó°ëùBço/åüüü®r±^ŠÕvz¨ß¾ò©²2Ÿ?1ó½Ì—ƒ²0¼e°ýy{ât2ó¹aĪ B ÙÿV]ÎæùOÛÿqzþ\-Iç?f?² ÏÓÓ…ŸÕUÏÓÛßeþ÷øöËôîS>}Å2M t®:á5“|j^âËãÃWìÕßñš¿ ó¿ w0,(̨ë0”½ßbQ9Ù‡¯ßõ+#ø!B©^iêâ+‹øS–;¿®ûÑ9AçEtN]ç¹ê§J†þ¦É"§ówU8ÿo¼ìu†a ü*Œé€Š“ÐÀXñÙJ?ïÏJ Tbi¤(MÎ_ήëßä½Éàf0ÇêÅ\Òèí½k+ Ø&>‰îTï†þ2œ:w¾ßt¬¡‰Öl+$²(GƼôžç'wT]}-@ê`Éxº%Õÿ_i½æÝr¢P;4ôš¹’ᬶè !àkD3Ç:#ßèª …X1ZkÁY‚àX#À@=„Þž/‚ÅUJ³ý;X/c°Ñät£tzøÏoŒ¶ Õ(,ÚmûLÞ̘‘¶0/˜C±.Q~ˆ Âü>04ƒú ¦ëªäT,ºEhšb|R«æKTCÙá'!Tµ'åñje endstream endobj 45 0 obj << /Type /Page /Parent 80 0 R /Resources 46 0 R /Contents 47 0 R /MediaBox [ 0 0 612 792 ] /CropBox [ 0 0 612 792 ] /Rotate 0 >> endobj 46 0 obj << /ProcSet [ /PDF /Text ] /Font << /TT2 88 0 R /TT6 103 0 R /TT10 104 0 R >> /ExtGState << /GS1 112 0 R >> /ColorSpace << /Cs5 85 0 R >> >> endobj 47 0 obj << /Length 2752 /Filter /FlateDecode >> stream H‰t—M¹ †ïõ+êØ½@—õý ÄÎ"€‘äàéœ ¼“™±½ð,àä߇ùª$uÍ.0.>]R‰äKJz}]^]¯aÕëõqÉ[«¢ÿëC4›rªüëéa½~Y^½yöëýs}E­Ï÷Ë«¿Þéõ·çå¢6¥ŒY¯÷KyÒ~½þXÞŸ>ýù|¡©Nw[ßœ/ÚŸ¾éM{úr¾·…Óïl~zzø~¾„ÍŸÖ>Ÿ/i3§Þ=<ÒHKü²ü@–6d~½—ëùÃõíòËuÑë§uq1o>è5z¿¥´ºÍ¬—òçûÃòÈn¼¹7îÞ,j}KŸWµi³þXµZÿ¾¾ÿ ÖÕyœ+óè-”y¬á?4ÑÝþ—·àø‡‹Ž%ZõCm´5[ Ÿ[éWx´WvS‰G{C_-‹´<Ò+C)(¿ù¦¶ey<ÔZN™ØnÙ¬_àÃúTAR/š‹A6 Tª ¬W›œ“^Ñp ²ÜhG™Òñ79ñ°A€ /€6$Žsddû*ÂÞ<Ë-:âûð‚“Í\Éf?•Ž à*†#Çu¹"J¶zâKj{Oüî|ÕA’c0E£A1@Rí†HZœ>мûÍ@:¼4”¡Ü1Ä×BZÀ%z;ðÐ+î»ålô¨ôÓ°L±Ûat£¥l)¡#5Å­ùìÍê·4G6Í ê CvIϨIg7JlZhò†xÕ¨æ®DPei²FX3U€–boýf¯ôˆ7Ð n‚cÜhëq†½#Å1%]“COË£úoÀMç„#ÐU ÅZ7†VCš@å.àqy]÷jÃ{5ù—³¯;=oW^VÙ°y]´a«º#—Íøôî|ý\¶Gor ²•MÉØRb´³¼þiñ´CqC™„¶ÚþÙÛ ÞvÀˆÍÞÉs0@ɔ٠ŠÚè8ÀÞG©Ô8±¹DéxƒãEô ÀbùN–¦q"Í$UÖnŠ$®²$* Í\ý`–¸XÑæn³³¨Â©õDÁ2!àÍXœYtcŒ„ò°­Úª`cU@ SêÜ–ÅÕYJ¤~ð„–Õ€‘9Xt ²±L¶²%eH)âB%aæ!g;Kò3XPhz½tÀcº :Éu6‹”€…)7€€ÈE‰íPJš‹›Á¤èXÍMZšw«P½¯ÀŒŸ=ÓÒo€ÚÒàý­Æ€*ˆ"I7WðU@í8}J D$=ÉCjÙï@dCÀ Âê“94”UÕzzu³ñ›„®¡ØÏ#Àá7š•Úƒ4‘"½Y¬n=¨ù¶\´‰#À.0nVæ°C+êA"îu0"Ëœ V¥ Œùh hMTmè²|D¸µ-½BGD‡ìZß]v¶ì-YÊåÈYJÊí€,#IÄ:w[K-i‹D ƒØÞ ÙÁ£ ˜N©°šìwÐ:ÑxÂÈÑ¥ÓdK ‚¤< ATÒVZØ`kÓÛ^Š)À+/q耗{¿IàÇûìÄp.¨ßéÓÝî)aMõÀÊÕ’Ã’ ñ¨8.ŸX2ìÜåw3lª ´¶##ZSÚmoúObƒÜAj±Ø!CšÀ p==º…{hÒt}3l€-uØxz TŸ~š¤¡ñ»¾—ÙЇlúÀÉ @"ØW¼D¦™ˆ­ÈKd¢œ6¼&âxâZ——ýЉ¯ ´’@4ucã&†¶Ü‰†m5ï0j>bìw9ô­H9£Cv@6f3vÈf·­ÞHOÕ8Øì/x9-x3€v&1Ò¸x¦pí®nìªÚof7€GDi²·6ÇFí7µÀÊPûÕídLªÃ!À]NíW5þÈ~1›m Ôpsãu€7>¼8‰œ{À¶Ã}±'i&À»ñ0˜£îèG€¯¼±´˜pG!À‰¿^´B€•à¥,:ølé‘r°Tœ¢Ñ²ak€sŒë'¾Ø1Œvn¸Mï7+ìÞ°¨ˆ†eí ã ÜX[Ù|—^o&ÐQÔx­H{ÒrKjM`ì9Âd·䇋-:]»«í¶Ã7¦£›ï”NaцëÔ†~[EA¶¸êYðN£yJS'àÐÔkü`çP2bÜ9´ÃÈCœš@m)Î ó]#`‡ëXêÙÀ8/›f¢ îK`¸)u¶•{¿à`X4u9.ôÀÈ"79qô ¦‘€Á5EπÃ!8çô ëÀI©.õKÇE£ÉuÞã¢ÑÂ…{Eœë#ŒS`’ ‘‹„œ+ ÇÐÎö¦O> endobj 49 0 obj << /Type /Font /Subtype /Type1 /FirstChar 32 /LastChar 32 /Widths [ 253 ] /Encoding /WinAnsiEncoding /BaseFont /ADMOCP+TTBBo00 /FontDescriptor 52 0 R >> endobj 50 0 obj << /Type /Font /Subtype /Type1 /Encoding /WinAnsiEncoding /BaseFont /Courier >> endobj 51 0 obj << /Type /Font /Subtype /TrueType /FirstChar 32 /LastChar 120 /Widths [ 250 0 0 0 0 0 0 0 333 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 611 0 0 0 0 0 0 0 0 0 556 0 0 0 0 0 0 0 0 0 0 0 0 556 0 0 0 0 0 0 0 500 0 444 0 444 278 0 0 278 0 0 278 0 500 500 0 0 0 389 0 0 0 0 444 ] /Encoding /WinAnsiEncoding /BaseFont /TimesNewRomanPS-ItalicMT /FontDescriptor 54 0 R >> endobj 52 0 obj << /Type /FontDescriptor /Ascent 0 /CapHeight 0 /Descent 0 /Flags 32 /FontBBox [ 0 0 0 0 ] /FontName /ADMOCP+TTBBo00 /ItalicAngle 0 /StemV 0 /CharSet (/space) /FontFile3 53 0 R >> endobj 53 0 obj << /Filter /FlateDecode /Length 80 /Subtype /Type1C >> stream H‰bd`ad`ddäwtñõwÐ qrÊ70 )ÿæëV¹ Mÿ»»á öë‚Ý„@Ê8`Z˜™Ùºù~Ìâ0  endstream endobj 54 0 obj << /Type /FontDescriptor /Ascent 891 /CapHeight 0 /Descent -216 /Flags 98 /FontBBox [ -498 -307 1120 1023 ] /FontName /TimesNewRomanPS-ItalicMT /ItalicAngle -15 /StemV 0 >> endobj 55 0 obj << /Type /Encoding /Differences [ 1 /bullet ] >> endobj 56 0 obj << /Filter /FlateDecode /Length 208 >> stream H‰T½Â0 „÷>…GCÚÎUX:ð# ìiâV‘ˆ¹éз')ÄKöåÓ-öÍ¡!@\Ø©ô†4ãè&V† (AÖn©ÊJ"Âí<´ õª*×(ŽgØ´³íÜs—oAœY#`s+î8h'ïŸh‘äP× ±ÏÄþ(ýIZŒòŠ.ób5tG/²¤¡Ê‹ú]ô¿ö!ºþÝþ¾Ve^–u‰–à´É×[MÌ1Ö²î’(e0„ß‹xç“ezÙK€CÈi? endstream endobj 57 0 obj << /Count 21 /First 58 0 R /Last 59 0 R >> endobj 58 0 obj << /Title (Contents) /Dest [ 4 0 R /FitB ] /Parent 57 0 R /Next 75 0 R >> endobj 59 0 obj << /Title (Compiler Generation From Source) /Dest [ 39 0 R /FitB ] /Parent 57 0 R /Prev 60 0 R /First 61 0 R /Last 62 0 R /Count 2 >> endobj 60 0 obj << /Title (Compiler Operation) /Dest [ 33 0 R /FitB ] /Parent 57 0 R /Prev 63 0 R /Next 59 0 R /First 64 0 R /Last 65 0 R /Count 5 >> endobj 61 0 obj << /Title (Required Tools) /Dest [ 39 0 R /FitB ] /Parent 59 0 R /Next 62 0 R >> endobj 62 0 obj << /Title (Required Source Code) /Dest [ 39 0 R /FitB ] /Parent 59 0 R /Prev 61 0 R >> endobj 63 0 obj << /Title (Compiler Analysis Phases) /Dest [ 30 0 R /FitB ] /Parent 57 0 R /Prev 69 0 R /Next 60 0 R /First 70 0 R /Last 71 0 R /Count 5 >> endobj 64 0 obj << /Title (Command Line Invocation) /Dest [ 33 0 R /FitB ] /Parent 60 0 R /Next 66 0 R >> endobj 65 0 obj << /Title (Integration Into MS VC++ Environment) /Dest [ 36 0 R /FitB ] /Parent 60 0 R /Prev 66 0 R /First 67 0 R /Last 68 0 R /Count 2 >> endobj 66 0 obj << /Title (Options) /Dest [ 33 0 R /FitB ] /Parent 60 0 R /Prev 64 0 R /Next 65 0 R >> endobj 67 0 obj << /Title (Integration as a Custom Tool) /Dest [ 36 0 R /FitB ] /Parent 65 0 R /Next 68 0 R >> endobj 68 0 obj << /Title (Integration into a Project Build) /Dest [ 39 0 R /FitB ] /Parent 65 0 R /Prev 67 0 R >> endobj 69 0 obj << /Title (Compiler Overview) /Dest [ 27 0 R /FitB ] /Parent 57 0 R /Prev 75 0 R /Next 63 0 R /First 76 0 R /Last 77 0 R /Count 3 >> endobj 70 0 obj << /Title (General ASL Syntax Analysis) /Dest [ 30 0 R /FitB ] /Parent 63 0 R /Next 74 0 R >> endobj 71 0 obj << /Title (Constant Folding) /Dest [ 33 0 R /FitB ] /Parent 63 0 R /Prev 72 0 R >> endobj 72 0 obj << /Title (Control Method Invocation Analysis) /Dest [ 33 0 R /FitB ] /Parent 63 0 R /Prev 73 0 R /Next 71 0 R >> endobj 73 0 obj << /Title (Control Method Semantic Analysis) /Dest [ 30 0 R /FitB ] /Parent 63 0 R /Prev 74 0 R /Next 72 0 R >> endobj 74 0 obj << /Title (General Semantic Analysis) /Dest [ 30 0 R /FitB ] /Parent 63 0 R /Prev 70 0 R /Next 73 0 R >> endobj 75 0 obj << /Title (Introduction) /Dest [ 27 0 R /FitB ] /Parent 57 0 R /Prev 58 0 R /Next 69 0 R >> endobj 76 0 obj << /Title (Input Files) /Dest [ 27 0 R /FitB ] /Parent 69 0 R /Next 78 0 R >> endobj 77 0 obj << /Title (Environments Supported) /Dest [ 30 0 R /FitB ] /Parent 69 0 R /Prev 78 0 R >> endobj 78 0 obj << /Title (Output File Options) /Dest [ 27 0 R /FitB ] /Parent 69 0 R /Prev 76 0 R /Next 77 0 R >> endobj 79 0 obj << /Producer (Acrobat Distiller 4.0 for Windows) /Creator (Microsoft Word 9.0) /ModDate (D:20020515153734-07'00') /Author (Robert Moore) /Subject (iASL Compiler) /Title (iASL Compiler User Reference) /CreationDate (D:20020515153637) >> endobj 80 0 obj << /Type /Pages /Kids [ 83 0 R 1 0 R 4 0 R 27 0 R 30 0 R 33 0 R 36 0 R 39 0 R 42 0 R 45 0 R ] /Count 10 >> endobj xref 0 81 0000000000 65535 f 0000009589 00000 n 0000009740 00000 n 0000009888 00000 n 0000014778 00000 n 0000015081 00000 n 0000015224 00000 n 0000015367 00000 n 0000015511 00000 n 0000015655 00000 n 0000015799 00000 n 0000015943 00000 n 0000016088 00000 n 0000016233 00000 n 0000016378 00000 n 0000016523 00000 n 0000016668 00000 n 0000016812 00000 n 0000016957 00000 n 0000017102 00000 n 0000017247 00000 n 0000017392 00000 n 0000017537 00000 n 0000017681 00000 n 0000017826 00000 n 0000017971 00000 n 0000018147 00000 n 0000022345 00000 n 0000022499 00000 n 0000022684 00000 n 0000028371 00000 n 0000028525 00000 n 0000028710 00000 n 0000034688 00000 n 0000034842 00000 n 0000035038 00000 n 0000041121 00000 n 0000041275 00000 n 0000041438 00000 n 0000047397 00000 n 0000047551 00000 n 0000047727 00000 n 0000052974 00000 n 0000053128 00000 n 0000053291 00000 n 0000056395 00000 n 0000056549 00000 n 0000056712 00000 n 0000059539 00000 n 0000059649 00000 n 0000059828 00000 n 0000059930 00000 n 0000060330 00000 n 0000060538 00000 n 0000060708 00000 n 0000060908 00000 n 0000060977 00000 n 0000061259 00000 n 0000061323 00000 n 0000061418 00000 n 0000061576 00000 n 0000061735 00000 n 0000061837 00000 n 0000061945 00000 n 0000062110 00000 n 0000062221 00000 n 0000062384 00000 n 0000062493 00000 n 0000062609 00000 n 0000062729 00000 n 0000062887 00000 n 0000063002 00000 n 0000063106 00000 n 0000063242 00000 n 0000063376 00000 n 0000063503 00000 n 0000063617 00000 n 0000063716 00000 n 0000063826 00000 n 0000063947 00000 n 0000064201 00000 n trailer << /Size 81 /ID[<2ac1c802bd685a1ce4881ba170a958c4><2ac1c802bd685a1ce4881ba170a958c4>] >> startxref 173 %%EOF acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/UTILITY/2_WARNING.HTM0000700000175000017500000000371514773714157030711 0ustar ivanhuivanhu

BLOCKED FILE ALERT!

The attachment 'ABBU.SYS' has been blocked because it is a disallowed file type. The attachment has been replaced by this message.

If you feel you have received this message in error and are an Intel employee, then please contact the Global Service Desk.

More Information:

If you are an Intel employee and internal to the Intel network, visit Secure Intel to learn more about E-mail attachment options.

If you are not an Intel employee, please contact your Intel sponsor for additional information.
 

Copyright © Intel Corporation, 2002-2006. All rights reserved.
*Other names and brands may be claimed as the property of others.
**Intel is not responsible for content of sites outside our intranet.
acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/ns4.asl0000700000175000017500000000274714773714157027057 0ustar ivanhuivanhu/* * Tests originated from namespace/ns4 */ /* * Calls to methods instead of Add */ /* in progress // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! z100 ???????????????????????????? // ?????????????????????????????????????????????????? */ Name(z100, 100) Method(m401, 1, Serialized) { Name(ts, "m401") Name(i000, 0x00000001) Name(i001, 0) Name(p000, Package() {1,2,3,4}) CH03(ts, z100, 0x000, __LINE__, 0) Store(arg0, i001) Method(MAdd, 2) { Add(arg0, arg1, Local0) Return (Local0) } Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { /* * Because of the stack overflow issues on MS * the number of method calls eliminated. */ Return (0) } Store(0x07000000, i000) Return (MAdd(i000, m007())) } Store(0x00600000, i000) Return (MAdd(i000, m006())) } Store(0x00050000, i000) Return (MAdd(i000, m005())) } Store(0x00004000, i000) Return (MAdd(i000, m004())) } Store(0x00000300, i000) Return (MAdd(i000, m003())) } Store(0x00000020, i000) Return (MAdd(i000, m002())) } Store(MAdd(i000, m001()), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z100, __LINE__, 0, 0, Local0, 0x07654321) } if (LNotEqual(i000, 0x07000000)) { err(ts, z100, __LINE__, 0, 0, i000, 0x07000000) } CH03(ts, z100, 0x003, __LINE__, 0) } Method(n004) { SRMT("m401-0") m401(0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/method/0000700000175000017500000000000014773714157027115 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/method/mt0_abbu.asl0000700000175000017500000035724014773714157031325 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests to check path names with method type syllables */ Name(z169, 169) Processor(pr7d, 0, 0x000, 0x008) { Name(iy07, 0xabcd0120) } /* * Test shows maximal supported depth of enclosed method calls on MS */ Method(mt00,, Serialized) { Name(ts, "mt00") Name(i000, 0) Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { // OUTC("Number of calls to methods depends on the length of this message!") OUTC("Max") Store(0xabcd0000, i000) } mm0b() } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z169, 0x100, __LINE__, 0) mm00() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd0000) } CH03(ts, z169, 0x101, __LINE__, 0) } /* * The same as mt00, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt01,, Serialized) { Name(ts, "mt01") Name(i000, 0) Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { OUTC("Max") Store(0xabcd0000, i000) } mm1f() } mm1e() } mm1d() } mm1c() } mm1b() } mm1a() } mm19() } mm18() } mm17() } mm16() } mm15() } mm14() } mm13() } mm12() } mm11() } mm10() } mm0f() } mm0e() } mm0d() } mm0c() } mm0b() } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z169, 0x102, __LINE__, 0) mm00() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd0000) } CH03(ts, z169, 0x103, __LINE__, 0) } /* * Test shows maximal supported depth of enclosed method calls on MS */ Method(mt02,, Serialized) { Name(ts, "mt02") Name(i000, 0) Method(mm00) { mm01() } Method(mm01) { mm02() } Method(mm02) { mm03() } Method(mm03) { mm04() } Method(mm04) { mm05() } Method(mm05) { mm06() } Method(mm06) { mm07() } Method(mm07) { mm08() } Method(mm08) { mm09() } Method(mm09) { mm0a() } Method(mm0a) { mm0b() } Method(mm0b) { mm0c() } Method(mm0c) { mm0d() } Method(mm0d) { mm0e() } Method(mm0e) { mm0f() } Method(mm0f) { OUTC("Max") Store(0xabcd0000, i000) } CH03(ts, z169, 0x104, __LINE__, 0) mm00() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd0000) } CH03(ts, z169, 0x105, __LINE__, 0) } /* * The same as mt02, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt03,, Serialized) { Name(ts, "mt03") Name(i000, 0) Method(mm00) { mm01() } Method(mm01) { mm02() } Method(mm02) { mm03() } Method(mm03) { mm04() } Method(mm04) { mm05() } Method(mm05) { mm06() } Method(mm06) { mm07() } Method(mm07) { mm08() } Method(mm08) { mm09() } Method(mm09) { mm0a() } Method(mm0a) { mm0b() } Method(mm0b) { mm0c() } Method(mm0c) { mm0d() } Method(mm0d) { mm0e() } Method(mm0e) { mm0f() } Method(mm0f) { mm10() } Method(mm10) { mm11() } Method(mm11) { mm12() } Method(mm12) { mm13() } Method(mm13) { mm14() } Method(mm14) { mm15() } Method(mm15) { mm16() } Method(mm16) { mm17() } Method(mm17) { mm18() } Method(mm18) { mm19() } Method(mm19) { mm1a() } Method(mm1a) { mm1b() } Method(mm1b) { mm1c() } Method(mm1c) { mm1d() } Method(mm1d) { mm1e() } Method(mm1e) { mm1f() } Method(mm1f) { OUTC("Max") Store(0xabcd0000, i000) } CH03(ts, z169, 0x106, __LINE__, 0) mm00() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd0000) } CH03(ts, z169, 0x107, __LINE__, 0) } /* * Increment object with the name of method in the name path */ Method(mt04,, Serialized) { Name(ts, "mt04") Device(dz05) { Name(iy07, 0xabcd0900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Increment(\_SB_.ABBU.mt04.dz05.iy07) Store (\_SB_.ABBU.mt04.dz05.iy07, Local0) OUTC("mt04, \\_SB_.ABBU.mt04.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd0909) } if (LNotEqual(\_SB_.ABBU.mt04.dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt04.dz05.iy07, 0xabcd0909) } } Increment(\_SB_.ABBU.mt04.dz05.iy07) mm07() } Increment(\_SB_.ABBU.mt04.dz05.iy07) mm06() } Increment(\_SB_.ABBU.mt04.dz05.iy07) mm05() } Increment(\_SB_.ABBU.mt04.dz05.iy07) mm04() } Increment(\_SB_.ABBU.mt04.dz05.iy07) mm03() } Increment(\_SB_.ABBU.mt04.dz05.iy07) mm02() } Increment(\_SB_.ABBU.mt04.dz05.iy07) mm01() } CH03(ts, z169, 0x006, __LINE__, 0) Increment(\_SB_.ABBU.mt04.dz05.iy07) mm00() if (LNotEqual(\_SB_.ABBU.mt04.dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt04.dz05.iy07, 0xabcd0909) } CH03(ts, z169, 0x008, __LINE__, 0) } /* * The same as mt04, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt05,, Serialized) { Name(ts, "mt05") Device(dz05) { Name(iy07, 0xabcd0900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { Increment(\_SB_.ABBU.mt05.dz05.iy07) Store (\_SB_.ABBU.mt05.dz05.iy07, Local0) OUTC("mt05, \\_SB_.ABBU.mt05.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0921)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd0921) } if (LNotEqual(\_SB_.ABBU.mt05.dz05.iy07, 0xabcd0921)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt05.dz05.iy07, 0xabcd0921) } } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm1f() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm1e() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm1d() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm1c() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm1b() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm1a() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm19() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm18() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm17() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm16() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm15() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm14() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm13() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm12() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm11() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm10() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm0f() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm0e() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm0d() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm0c() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm0b() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm0a() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm09() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm08() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm07() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm06() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm05() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm04() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm03() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm02() } Increment(\_SB_.ABBU.mt05.dz05.iy07) mm01() } CH03(ts, z169, 0x108, __LINE__, 0) Increment(\_SB_.ABBU.mt05.dz05.iy07) mm00() if (LNotEqual(\_SB_.ABBU.mt05.dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt05.dz05.iy07, 0xabcd0909) } CH03(ts, z169, 0x109, __LINE__, 0) } /* * Check access to the internal object of method being executed * from the point inside the tree of that method being executed * but by the method statically declared outside that method. */ Method(mt06,, Serialized) { Name(ts, "mt06") Device(dz05) { Name(iy07, 0xabcd0900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Store (0x11112222, \_SB_.ABBU.mt06.dz05.iy07) } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() Store (\_SB_.ABBU.mt06.dz05.iy07, Local0) OUTC("mt06, \\_SB_.ABBU.mt06.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z169, __LINE__, 0, 0, Local0, 0x11112222) } if (LNotEqual(\_SB_.ABBU.mt06.dz05.iy07, 0x11112222)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt06.dz05.iy07, 0x11112222) } } mm04() } mm03() } mm02() } mm01() } CH03(ts, z169, 0x10a, __LINE__, 0) mm00() mt07() // succeeds here if (LNotEqual(\_SB_.ABBU.mt06.dz05.iy07, 0x11112222)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt06.dz05.iy07, 0x11112222) } CH03(ts, z169, 0x10b, __LINE__, 0) } /* * Access to the internal object of method mt06 * * Result differs depending on either mt06 is invoked or not. * Unfortunately, we can run mt06 and mt07 simultaneously only * on the same thread (invocation). */ Method(mt07,, Serialized) { Name(ts, "mt07") Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Store (\_SB_.ABBU.mt06.dz05.iy07, Local0) OUTC("0 mt07, \\_SB_.ABBU.mt06.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z169, __LINE__, 0, 0, Local0, 0x11112222) } if (LNotEqual(\_SB_.ABBU.mt06.dz05.iy07, 0x11112222)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt06.dz05.iy07, 0x11112222) } } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z169, 0x10c, __LINE__, 0) mm00() Store (\_SB_.ABBU.mt06.dz05.iy07, Local0) OUTC("1 mt07, \\_SB_.ABBU.mt06.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z169, __LINE__, 0, 0, Local0, 0x11112222) } if (LNotEqual(\_SB_.ABBU.mt06.dz05.iy07, 0x11112222)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt06.dz05.iy07, 0x11112222) } CH03(ts, z169, 0x10d, __LINE__, 0) } /* * The same as mt06, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt08,, Serialized) { Name(ts, "mt08") Device(dz05) { Name(iy07, 0xabcd0900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Store (0x22223333, \_SB_.ABBU.mt08.dz05.iy07) } mm0f() } mm0e() } mm0d() } mm0c() } mm0b() } mm0a() } mm09() } mm08() Store (\_SB_.ABBU.mt08.dz05.iy07, Local0) OUTC("mt08, \\_SB_.ABBU.mt08.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x22223333)) { err(ts, z169, __LINE__, 0, 0, Local0, 0x22223333) } if (LNotEqual(\_SB_.ABBU.mt08.dz05.iy07, 0x22223333)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt08.dz05.iy07, 0x22223333) } } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z169, 0x10e, __LINE__, 0) mm00() mt09() // succeeds here if (LNotEqual(\_SB_.ABBU.mt08.dz05.iy07, 0x22223333)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt08.dz05.iy07, 0x22223333) } CH03(ts, z169, 0x10f, __LINE__, 0) } /* * Access to the internal object of method mt08 * * see comment to mt07 */ Method(mt09,, Serialized) { Name(ts, "mt09") Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Store (\_SB_.ABBU.mt08.dz05.iy07, Local0) OUTC("0 mt09, \\_SB_.ABBU.mt08.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x22223333)) { err(ts, z169, __LINE__, 0, 0, Local0, 0x22223333) } if (LNotEqual(\_SB_.ABBU.mt08.dz05.iy07, 0x22223333)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt08.dz05.iy07, 0x22223333) } } mm0f() } mm0e() } mm0d() } mm0c() } mm0b() } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z169, 0x110, __LINE__, 0) mm00() Store (\_SB_.ABBU.mt08.dz05.iy07, Local0) OUTC("1 mt09, \\_SB_.ABBU.mt08.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x22223333)) { err(ts, z169, __LINE__, 0, 0, Local0, 0x22223333) } if (LNotEqual(\_SB_.ABBU.mt08.dz05.iy07, 0x22223333)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt08.dz05.iy07, 0x22223333) } CH03(ts, z169, 0x111, __LINE__, 0) } /* * Check simple access to the object by the name path * without method name syllables */ Method(mt0a,, Serialized) { Name(ts, "mt0a") CH03(ts, z169, 0x112, __LINE__, 0) Store (\_SB_.ABBU.pr7d.iy07, Local0) OUTC("mt0a, \\_SB_.ABBU.pr7d.iy07:") OUTC(Local0) if (LNotEqual(\_SB_.ABBU.pr7d.iy07, 0xabcd0120)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.pr7d.iy07, 0xabcd0120) } CH03(ts, z169, 0x113, __LINE__, 0) } /* * Simple increment (see comment to mt0a) */ Method(mt0b,, Serialized) { Name(ts, "mt0b") CH03(ts, z169, 0x114, __LINE__, 0) Increment(\_SB_.ABBU.pr7d.iy07) Store (\_SB_.ABBU.pr7d.iy07, Local0) OUTC("mt0b, \\_SB_.ABBU.pr7d.iy07:") OUTC(Local0) if (LNotEqual(\_SB_.ABBU.pr7d.iy07, 0xabcd0121)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.pr7d.iy07, 0xabcd0121) } CH03(ts, z169, 0x115, __LINE__, 0) } /* * Check simple access to the object by the name path * which contains the method name syllables */ Method(mt0c,, Serialized) { Name(ts, "mt0c") Processor(pr7d, 0, 0x000, 0x008) { Name(iy07, 0xabcd0660) } CH03(ts, z169, 0x01c, __LINE__, 0) Increment(\_SB_.ABBU.mt0c.pr7d.iy07) Store (\_SB_.ABBU.mt0c.pr7d.iy07, Local0) OUTC("mt0c, \\_SB_.ABBU.mt0c.pr7d.iy07:") OUTC(Local0) if (LNotEqual(\_SB_.ABBU.mt0c.pr7d.iy07, 0xabcd0661)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt0c.pr7d.iy07, 0xabcd0661) } CH03(ts, z169, 0x01e, __LINE__, 0) } /* * Simply long cycle in While */ Method(mt0d,, Serialized) { Name(ts, "mt0d") Name(i000, 0xabcd1234) CH03(ts, z169, 0x116, __LINE__, 0) Store(0, Local0) While (1) { Increment(Local0) // if (LEqual(Local0, 0x40000)) { if (LEqual(Local0, 100)) { // Break -- doesn't work on MS OUTC("mt0d, Local0:") OUTC(Local0) mt0e() CH03(ts, z169, 0x117, __LINE__, 0) Return } } CH03(ts, z169, 0x118, __LINE__, 0) } /* * Access to the internal object of method mt0d */ Method(mt0e,, Serialized) { Name(ts, "mt0e") CH03(ts, z169, 0x119, __LINE__, 0) Store (\_SB_.ABBU.mt0d.i000, Local0) OUTC("mt0e, \\_SB_.ABBU.mt0d.i000:") OUTC(Local0) if (LNotEqual(\_SB_.ABBU.mt0d.i000, 0xabcd1234)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt0d.i000, 0xabcd1234) } CH03(ts, z169, 0x11a, __LINE__, 0) } /* * Use Add for incrementing object with the * name of method in the name path. */ Method(mt0f,, Serialized) { Name(ts, "mt0f") Device(dz05) { Name(iy07, 0xabcd0900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Add(\_SB_.ABBU.mt0f.dz05.iy07, 1, \_SB_.ABBU.mt0f.dz05.iy07) Store (\_SB_.ABBU.mt0f.dz05.iy07, Local0) OUTC("mt0f, \\_SB_.ABBU.mt0f.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd0909) } if (LNotEqual(\_SB_.ABBU.mt0f.dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt0f.dz05.iy07, 0xabcd0909) } } Add(\_SB_.ABBU.mt0f.dz05.iy07, 1, \_SB_.ABBU.mt0f.dz05.iy07) mm07() } Add(\_SB_.ABBU.mt0f.dz05.iy07, 1, \_SB_.ABBU.mt0f.dz05.iy07) mm06() } Add(\_SB_.ABBU.mt0f.dz05.iy07, 1, \_SB_.ABBU.mt0f.dz05.iy07) mm05() } Add(\_SB_.ABBU.mt0f.dz05.iy07, 1, \_SB_.ABBU.mt0f.dz05.iy07) mm04() } Add(\_SB_.ABBU.mt0f.dz05.iy07, 1, \_SB_.ABBU.mt0f.dz05.iy07) mm03() } Add(\_SB_.ABBU.mt0f.dz05.iy07, 1, \_SB_.ABBU.mt0f.dz05.iy07) mm02() } Add(\_SB_.ABBU.mt0f.dz05.iy07, 1, \_SB_.ABBU.mt0f.dz05.iy07) mm01() } CH03(ts, z169, 0x022, __LINE__, 0) Add(\_SB_.ABBU.mt0f.dz05.iy07, 1, \_SB_.ABBU.mt0f.dz05.iy07) mm00() if (LNotEqual(\_SB_.ABBU.mt0f.dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt0f.dz05.iy07, 0xabcd0909) } CH03(ts, z169, 0x024, __LINE__, 0) } /* * The same as mt0f, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt10,, Serialized) { Name(ts, "mt10") Device(dz05) { Name(iy07, 0xabcd0900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) Store (\_SB_.ABBU.mt10.dz05.iy07, Local0) OUTC("mt10, \\_SB_.ABBU.mt10.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd0909) } if (LNotEqual(\_SB_.ABBU.mt10.dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt10.dz05.iy07, 0xabcd0909) } } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm0f() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm0e() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm0d() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm0c() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm0b() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm0a() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm09() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm08() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm07() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm06() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm05() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm04() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm03() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm02() } Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm01() } CH03(ts, z169, 0x027, __LINE__, 0) Add(\_SB_.ABBU.mt10.dz05.iy07, 1, \_SB_.ABBU.mt10.dz05.iy07) mm00() if (LNotEqual(\_SB_.ABBU.mt10.dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt10.dz05.iy07, 0xabcd0909) } CH03(ts, z169, 0x029, __LINE__, 0) } /* * Increment with the parent name paths */ Method(mt11,, Serialized) { Name(ts, "mt11") Device(dz05) { Name(iy07, 0xabcd0900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Increment(^^^^^^^^dz05.iy07) Store (^^^^^^^^dz05.iy07, Local0) OUTC("mt11, ^^^^^^^^dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd0909) } if (LNotEqual(^^^^^^^^dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^dz05.iy07, 0xabcd0909) } } Increment(^^^^^^^dz05.iy07) mm07() } Increment(^^^^^^dz05.iy07) mm06() } Increment(^^^^^dz05.iy07) mm05() } Increment(^^^^dz05.iy07) mm04() } Increment(^^^dz05.iy07) mm03() } Increment(^^dz05.iy07) mm02() } Increment(^dz05.iy07) mm01() } CH03(ts, z169, 0x02c, __LINE__, 0) Increment(dz05.iy07) mm00() if (LNotEqual(dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, dz05.iy07, 0xabcd0909) } CH03(ts, z169, 0x02e, __LINE__, 0) } /* * The same as mt11, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt12,, Serialized) { Name(ts, "mt12") Device(dz05) { Name(iy07, 0xabcd0900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) OUTC("mt12, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0921)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd0921) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd0921)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd0921) } } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1f() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1e() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1d() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1c() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1b() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1a() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm19() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm18() } Increment(^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm17() } Increment(^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm16() } Increment(^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm15() } Increment(^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm14() } Increment(^^^^^^^^^^^^^^^^^^^dz05.iy07) mm13() } Increment(^^^^^^^^^^^^^^^^^^dz05.iy07) mm12() } Increment(^^^^^^^^^^^^^^^^^dz05.iy07) mm11() } Increment(^^^^^^^^^^^^^^^^dz05.iy07) mm10() } Increment(^^^^^^^^^^^^^^^dz05.iy07) mm0f() } Increment(^^^^^^^^^^^^^^dz05.iy07) mm0e() } Increment(^^^^^^^^^^^^^dz05.iy07) mm0d() } Increment(^^^^^^^^^^^^dz05.iy07) mm0c() } Increment(^^^^^^^^^^^dz05.iy07) mm0b() } Increment(^^^^^^^^^^dz05.iy07) mm0a() } Increment(^^^^^^^^^dz05.iy07) mm09() } Increment(^^^^^^^^dz05.iy07) mm08() } Increment(^^^^^^^dz05.iy07) mm07() } Increment(^^^^^^dz05.iy07) mm06() } Increment(^^^^^dz05.iy07) mm05() } Increment(^^^^dz05.iy07) mm04() } Increment(^^^dz05.iy07) mm03() } Increment(^^dz05.iy07) mm02() } Increment(^dz05.iy07) mm01() } CH03(ts, z169, 0x11b, __LINE__, 0) Increment(dz05.iy07) mm00() if (LNotEqual(dz05.iy07, 0xabcd0909)) { err(ts, z169, __LINE__, 0, 0, dz05.iy07, 0xabcd0909) } CH03(ts, z169, 0x11c, __LINE__, 0) } /* * Simple Store of object with the name of method in the name path */ Method(mt13,, Serialized) { Name(ts, "mt13") Device(dz05) { Name(iy07, 0xabcd0500) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Store (\_SB_.ABBU.mt13.dz05.iy07, Local0) OUTC("mt13, \\_SB_.ABBU.mt13.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0500)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd0500) } if (LNotEqual(\_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500) } } Store (\_SB_.ABBU.mt13.dz05.iy07, Local0) mm06() if (LNotEqual(\_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500) } } Store (\_SB_.ABBU.mt13.dz05.iy07, Local0) mm05() if (LNotEqual(\_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500) } } Store (\_SB_.ABBU.mt13.dz05.iy07, Local0) mm04() if (LNotEqual(\_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500) } } Store (\_SB_.ABBU.mt13.dz05.iy07, Local0) mm03() if (LNotEqual(\_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500) } } Store (\_SB_.ABBU.mt13.dz05.iy07, Local0) mm02() if (LNotEqual(\_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500) } } Store (\_SB_.ABBU.mt13.dz05.iy07, Local0) mm01() if (LNotEqual(\_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500) } } CH03(ts, z169, 0x03a, __LINE__, 0) Store (\_SB_.ABBU.mt13.dz05.iy07, Local0) mm00() if (LNotEqual(\_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt13.dz05.iy07, 0xabcd0500) } CH03(ts, z169, 0x03c, __LINE__, 0) } /* * The same as mt13, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt14,, Serialized) { Name(ts, "mt14") Device(dz05) { Name(iy07, 0xabcd2900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) OUTC("mt14, \\_SB_.ABBU.mt14.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm1f() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm1e() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm1d() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm1c() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm1b() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm1a() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm19() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm18() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm17() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm16() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm15() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm14() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm13() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm12() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm11() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm10() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm0f() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm0e() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm0d() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm0c() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm0b() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm0a() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm09() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm08() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm07() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm06() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm05() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm04() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm03() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm02() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm01() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } } CH03(ts, z169, 0x11d, __LINE__, 0) Store (\_SB_.ABBU.mt14.dz05.iy07, Local0) mm00() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt14.dz05.iy07, 0xabcd2900) } CH03(ts, z169, 0x11e, __LINE__, 0) } /* * The same as mt14, but contains parent name paths. * To be run on ACPICA only. */ Method(mt15,, Serialized) { Name(ts, "mt15") Device(dz05) { Name(iy07, 0xabcd3900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) OUTC("mt15, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1f() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1e() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1d() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1c() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1b() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1a() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm19() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm18() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm17() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm16() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm15() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm14() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm13() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm12() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm11() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm10() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^dz05.iy07, Local0) mm0f() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^dz05.iy07, Local0) mm0e() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^dz05.iy07, Local0) mm0d() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^dz05.iy07, Local0) mm0c() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^dz05.iy07, Local0) mm0b() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^dz05.iy07, Local0) mm0a() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^dz05.iy07, Local0) mm09() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^dz05.iy07, Local0) mm08() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^dz05.iy07, Local0) mm07() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^dz05.iy07, Local0) mm06() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^dz05.iy07, Local0) mm05() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^dz05.iy07, Local0) mm04() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^^dz05.iy07, 0xabcd3900) } } Store (^^^dz05.iy07, Local0) mm03() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^^dz05.iy07, 0xabcd3900) } } Store (^^dz05.iy07, Local0) mm02() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^^dz05.iy07, 0xabcd3900) } } Store (^dz05.iy07, Local0) mm01() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, ^dz05.iy07, 0xabcd3900) } } CH03(ts, z169, 0x11f, __LINE__, 0) Store (dz05.iy07, Local0) mm00() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(dz05.iy07, 0xabcd3900)) { err(ts, z169, __LINE__, 0, 0, dz05.iy07, 0xabcd3900) } CH03(ts, z169, 0x120, __LINE__, 0) } /* * Access to the internal object of invoked method */ Method(mt16, 1, Serialized) { Name(ts, "mt16") Name(i000, 0) Name(i001, 0) Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04,, Serialized) { Device(dz05) { Name(iy07, 0xabcd4900) } if (LEqual(i001, 1)) { Store(0xabcd4904, dz05.iy07) m001(1) } elseif (LEqual(i001, 2)) { Store(0xabcd4905, dz05.iy07) m001(2) } elseif (LEqual(i001, 3)) { m001(3) } } mm04() } mm03() } mm02() } mm01() } Method(m000) { Store (^mm00.mm01.mm02.mm03.mm04.dz05.iy07, i000) } Method(m001, 1) { Method(mmF1, 1) { Method(mmF2, 1, Serialized) { Device(dz05) { Name(iy07, 0xabcd6900) } if (LEqual(arg0, 1)) { Store (\_SB_.ABBU.mt16.mm00.mm01.mm02.mm03.mm04.dz05.iy07, i000) } elseif (LEqual(arg0, 2)) { Store (^^^mm00.mm01.mm02.mm03.mm04.dz05.iy07, i000) } elseif (LEqual(arg0, 3)) { Store (^^mmF1.mmF2.dz05.iy07, i000) } } mmF2(arg0) } mmF1(arg0) } CH03(ts, z169, 0x0c1, __LINE__, 0) if (LEqual(arg0, 0)) { // Access to the internal data of method (mm00...) not being invoked m000() CH04(ts, 0, 5, z169, __LINE__, 0, 0) // AE_NOT_FOUND } elseif (LEqual(arg0, 1)) { // Access to the internal data of method (mm00...) being invoked // by \_SB_.ABBU.mt16.mm00.... Store(1, i001) mm00() if (LNotEqual(i000, 0xabcd4904)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd4904) } } elseif (LEqual(arg0, 2)) { // Access to the internal data of method (mm00...) being invoked // by ^^^^^^^^^^^^mm00... Store(2, i001) mm00() if (LNotEqual(i000, 0xabcd4905)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd4905) } } elseif (LEqual(arg0, 3)) { // Access to the internal data of method (m001.mmF1.mmF2.mmF3.dz05.iy07...) // being invoked by ^^^^^^^^^^^^mm01... Store(3, i001) mm00() if (LNotEqual(i000, 0xabcd6900)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd6900) } } CH03(ts, z169, 0x0c5, __LINE__, 0) } /* * The same as mt16, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt17, 1, Serialized) { Name(ts, "mt17") Name(i000, 0) Name(i001, 0) Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { Method(mm20) { Method(mm21,, Serialized) { Device(dz05) { Name(iy07, 0xabcd5900) } Method(mm22) { Method(mm23) { Method(mm24) { Method(mm25) { if (LEqual(i001, 1)) { Store(0xabcd4906, ^^^^dz05.iy07) m001(1) } elseif (LEqual(i001, 2)) { Store(0xabcd4907, ^^^^dz05.iy07) m001(2) } elseif (LEqual(i001, 3)) { m001(3) } } mm25() } mm24() } mm23() } mm22() } mm21() } mm20() } mm1f() } mm1e() } mm1d() } mm1c() } mm1b() } mm1a() } mm19() } mm18() } mm17() } mm16() } mm15() } mm14() } mm13() } mm12() } mm11() } mm10() } mm0f() } mm0e() } mm0d() } mm0c() } mm0b() } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } Method(m000) { Store (^mm00.mm01.mm02.mm03.mm04.mm05.mm06.mm07.mm08.mm09.mm0a.mm0b.mm0c.mm0d.mm0e.mm0f.mm10.mm11.mm12.mm13.mm14.mm15.mm16.mm17.mm18.mm19.mm1a.mm1b.mm1c.mm1d.mm1e.mm1f.mm20.mm21.dz05.iy07, i000) } Method(m001, 1) { Method(mmF1, 1) { Method(mmF2, 1) { Method(mmF3, 1) { Method(mmF4, 1) { Method(mmF5, 1) { Method(mmF6, 1) { Method(mmF7, 1) { Method(mmF8, 1) { Method(mmF9, 1) { Method(mmFa, 1) { Method(mmFb, 1) { Method(mmFc, 1) { Method(mmFd, 1) { Method(mmFe, 1) { Method(mmFf, 1) { Method(mm10, 1) { Method(mm11, 1, Serialized) { Device(dz05) { Name(iy07, 0xabcd4908) } Method(mm12, 1) { Method(mm13, 1) { Method(mm14, 1) { Method(mm15, 1) { Method(mm16, 1) { Method(mm17, 1) { Method(mm18, 1) { Method(mm19, 1) { Method(mm1a, 1) { Method(mm1b, 1) { Method(mm1c, 1) { Method(mm1d, 1) { Method(mm1e, 1) { Method(mm1f, 1) { if (LEqual(arg0, 1)) { Store (\_SB_.ABBU.mt17.mm00.mm01.mm02.mm03.mm04.mm05.mm06.mm07.mm08.mm09.mm0a.mm0b.mm0c.mm0d.mm0e.mm0f.mm10.mm11.mm12.mm13.mm14.mm15.mm16.mm17.mm18.mm19.mm1a.mm1b.mm1c.mm1d.mm1e.mm1f.mm20.mm21.dz05.iy07, i000) } elseif (LEqual(arg0, 2)) { Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^mm00.mm01.mm02.mm03.mm04.mm05.mm06.mm07.mm08.mm09.mm0a.mm0b.mm0c.mm0d.mm0e.mm0f.mm10.mm11.mm12.mm13.mm14.mm15.mm16.mm17.mm18.mm19.mm1a.mm1b.mm1c.mm1d.mm1e.mm1f.mm20.mm21.dz05.iy07, i000) } elseif (LEqual(arg0, 3)) { Store (^^^^^^^^^^^^^^^^^^^^^^^^^^mmF6.mmF7.mmF8.mmF9.mmFa.mmFb.mmFc.mmFd.mmFe.mmFf.mm10.mm11.dz05.iy07, i000) } } mm1f(arg0) } mm1e(arg0) } mm1d(arg0) } mm1c(arg0) } mm1b(arg0) } mm1a(arg0) } mm19(arg0) } mm18(arg0) } mm17(arg0) } mm16(arg0) } mm15(arg0) } mm14(arg0) } mm13(arg0) } mm12(arg0) } mm11(arg0) } mm10(arg0) } mmFf(arg0) } mmFe(arg0) } mmFd(arg0) } mmFc(arg0) } mmFb(arg0) } mmFa(arg0) } mmF9(arg0) } mmF8(arg0) } mmF7(arg0) } mmF6(arg0) } mmF5(arg0) } mmF4(arg0) } mmF3(arg0) } mmF2(arg0) } mmF1(arg0) } CH03(ts, z169, 0x0c6, __LINE__, 0) if (LEqual(arg0, 0)) { // Access to the internal data of method (mm00...) not being invoked m000() CH04(ts, 0, 5, z169, __LINE__, 0, 0) // AE_NOT_FOUND } elseif (LEqual(arg0, 1)) { // Access to the internal data of method (mm00...) being invoked // by \_SB_.ABBU.mt16.mm00.... Store(1, i001) mm00() if (LNotEqual(i000, 0xabcd4906)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd4906) } } elseif (LEqual(arg0, 2)) { // Access to the internal data of method (mm00...) being invoked // by ^^^^^^^^^^^^mm00... Store(2, i001) mm00() if (LNotEqual(i000, 0xabcd4907)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd4907) } } elseif (LEqual(arg0, 3)) { // Access to the internal data of method (m001.mmF1.mmF2.mmF3.dz05.iy07...) // being invoked by ^^^^^^^^^^^^mm01... Store(3, i001) mm00() if (LNotEqual(i000, 0xabcd4908)) { err(ts, z169, __LINE__, 0, 0, i000, 0xabcd4908) } } CH03(ts, z169, 0x0cb, __LINE__, 0) } Method(mt18, 1, Serialized) { Name(ts, "mt18") Device(dz05) { Name(iy07, 0xabcd4900) } CH03(ts, z169, 0x0cc, __LINE__, 0) if (arg0) { Store(0xabcd9000, \_SB_.ABBU.mt18.dz05.iy07) if (LNotEqual(\_SB_.ABBU.mt18.dz05.iy07, 0xabcd9000)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt18.dz05.iy07, 0xabcd9000) } } else { Store(0xabcd9001, dz05.iy07) if (LNotEqual(dz05.iy07, 0xabcd9001)) { err(ts, z169, __LINE__, 0, 0, dz05.iy07, 0xabcd9001) } } CH03(ts, z169, 0x0cd, __LINE__, 0) } Method(mt19, 1, Serialized) { Name(ts, "mt19") Processor(pr7d, 0, 0x000, 0x008) { Name(iy07, 0xabcd0660) } CH03(ts, z169, 0x0ce, __LINE__, 0) if (arg0) { Store(0xabcd9002, \_SB_.ABBU.mt19.pr7d.iy07) if (LNotEqual(\_SB_.ABBU.mt19.pr7d.iy07, 0xabcd9002)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.mt19.pr7d.iy07, 0xabcd9002) } } else { Store(0xabcd9003, pr7d.iy07) if (LNotEqual(pr7d.iy07, 0xabcd9003)) { err(ts, z169, __LINE__, 0, 0, pr7d.iy07, 0xabcd9003) } } CH03(ts, z169, 0x0cf, __LINE__, 0) } Method(mt1a, 1, Serialized) { Name(ts, "mt1a") CH03(ts, z169, 0x0d0, __LINE__, 0) if (arg0) { Store(0xabcd9004, \_SB_.ABBU.pr7d.iy07) if (LNotEqual(\_SB_.ABBU.pr7d.iy07, 0xabcd9004)) { err(ts, z169, __LINE__, 0, 0, \_SB_.ABBU.pr7d.iy07, 0xabcd9004) } } else { Store(0xabcd9005, ^pr7d.iy07) if (LNotEqual(^pr7d.iy07, 0xabcd9005)) { err(ts, z169, __LINE__, 0, 0, ^pr7d.iy07, 0xabcd9005) } } CH03(ts, z169, 0x0d1, __LINE__, 0) } Method(mtff,, Serialized) { Name(run0, 1) // Works on both SRMT("mt00") mt00() if (chk0) { // Exceeded the depth supported on MS SRMT("mt01") mt01() } // Works on both SRMT("mt02") mt02() if (chk0) { // Exceeded the depth supported on MS SRMT("mt03") mt03() } if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt04") mt04() } if (LAnd(chk0, run0)) { // Exceeded the depth supported on MS SRMT("mt05") mt05() } // Works on both SRMT("mt06") mt06() if (0) { // Fails for both here - for MS and ACPICA SRMT("mt07") mt07() } if (chk0) { // Exceeded the depth supported on MS SRMT("mt08") mt08() } // Works on both SRMT("mt0a") mt0a() SRMT("mt0b") mt0b() if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt0c") mt0c() } // Simply long cycle in While SRMT("mt0d") mt0d() if (0) { SRMT("mt0e") mt0e() // Result: ACPICA - AE_NOT_FOUND, MS - Failure } if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt0f") mt0f() } if (LAnd(chk0, run0)) { // Exceeded the depth supported on MS SRMT("mt10") mt10() } if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt11") mt11() } if (LAnd(chk0, run0)) { // Exceeded the depth supported on MS SRMT("mt12") mt12() } // Works on both SRMT("mt13") mt13() if (chk0) { // Exceeded the depth supported on MS SRMT("mt14") mt14() SRMT("mt15") mt15() } if (chk0) { // ACPICA - AE_NOT_FOUND (it is correct), MS - Failure SRMT("mt16-0") mt16(0) } if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt16-1") mt16(1) SRMT("mt16-2") mt16(2) SRMT("mt16-3") mt16(3) } if (chk0) { // ACPICA - AE_NOT_FOUND (it is correct), MS - Failure SRMT("mt17-0") mt17(0) } if (LAnd(chk0, run0)) { // Exceeded the depth supported on MS SRMT("mt17-1") mt17(1) SRMT("mt17-2") mt17(2) } SRMT("mt18-0") mt18(0) SRMT("mt18-1") mt18(1) SRMT("mt19-0") mt19(0) SRMT("mt19-1") mt19(1) SRMT("mt1a-0") mt1a(0) SRMT("mt1a-1") mt1a(1) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/method/mt0_aslts.asl0000700000175000017500000033717614773714157031550 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests to check path names with method type syllables */ Name(z170, 170) Processor(pr7d, 0, 0x000, 0x008) { Name(iy07, 0xabcd0120) } /* * Test shows maximal supported depth of enclosed method calls on MS */ Method(mt00,, Serialized) { Name(ts, "mt00") Name(i000, 0) Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { // OUTC("Number of calls to methods depends on the length of this message!") OUTC("Max") Store(0xabcd0000, i000) } mm0b() } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z170, 0x100, __LINE__, 0) mm00() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd0000) } CH03(ts, z170, 0x101, __LINE__, 0) } /* * The same as mt00, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt01,, Serialized) { Name(ts, "mt01") Name(i000, 0) Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { OUTC("Max") Store(0xabcd0000, i000) } mm1f() } mm1e() } mm1d() } mm1c() } mm1b() } mm1a() } mm19() } mm18() } mm17() } mm16() } mm15() } mm14() } mm13() } mm12() } mm11() } mm10() } mm0f() } mm0e() } mm0d() } mm0c() } mm0b() } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z170, 0x102, __LINE__, 0) mm00() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd0000) } CH03(ts, z170, 0x103, __LINE__, 0) } /* * Test shows maximal supported depth of enclosed method calls on MS */ Method(mt02,, Serialized) { Name(ts, "mt02") Name(i000, 0) Method(mm00) { mm01() } Method(mm01) { mm02() } Method(mm02) { mm03() } Method(mm03) { mm04() } Method(mm04) { mm05() } Method(mm05) { mm06() } Method(mm06) { mm07() } Method(mm07) { mm08() } Method(mm08) { mm09() } Method(mm09) { mm0a() } Method(mm0a) { mm0b() } Method(mm0b) { mm0c() } Method(mm0c) { mm0d() } Method(mm0d) { mm0e() } Method(mm0e) { mm0f() } Method(mm0f) { OUTC("Max") Store(0xabcd0000, i000) } CH03(ts, z170, 0x104, __LINE__, 0) mm00() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd0000) } CH03(ts, z170, 0x105, __LINE__, 0) } /* * The same as mt02, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt03,, Serialized) { Name(ts, "mt03") Name(i000, 0) Method(mm00) { mm01() } Method(mm01) { mm02() } Method(mm02) { mm03() } Method(mm03) { mm04() } Method(mm04) { mm05() } Method(mm05) { mm06() } Method(mm06) { mm07() } Method(mm07) { mm08() } Method(mm08) { mm09() } Method(mm09) { mm0a() } Method(mm0a) { mm0b() } Method(mm0b) { mm0c() } Method(mm0c) { mm0d() } Method(mm0d) { mm0e() } Method(mm0e) { mm0f() } Method(mm0f) { mm10() } Method(mm10) { mm11() } Method(mm11) { mm12() } Method(mm12) { mm13() } Method(mm13) { mm14() } Method(mm14) { mm15() } Method(mm15) { mm16() } Method(mm16) { mm17() } Method(mm17) { mm18() } Method(mm18) { mm19() } Method(mm19) { mm1a() } Method(mm1a) { mm1b() } Method(mm1b) { mm1c() } Method(mm1c) { mm1d() } Method(mm1d) { mm1e() } Method(mm1e) { mm1f() } Method(mm1f) { OUTC("Max") Store(0xabcd0000, i000) } CH03(ts, z170, 0x106, __LINE__, 0) mm00() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd0000) } CH03(ts, z170, 0x107, __LINE__, 0) } /* * Increment object with the name of method in the name path */ Method(mt04,, Serialized) { Name(ts, "mt04") Device(dz05) { Name(iy07, 0xabcd0100) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Increment(\mt04.dz05.iy07) Store (\mt04.dz05.iy07, Local0) OUTC("mt04, \\mt04.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0109)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd0109) } if (LNotEqual(\mt04.dz05.iy07, 0xabcd0109)) { err(ts, z170, __LINE__, 0, 0, \mt04.dz05.iy07, 0xabcd0109) } } Increment(\mt04.dz05.iy07) mm07() } Increment(\mt04.dz05.iy07) mm06() } Increment(\mt04.dz05.iy07) mm05() } Increment(\mt04.dz05.iy07) mm04() } Increment(\mt04.dz05.iy07) mm03() } Increment(\mt04.dz05.iy07) mm02() } Increment(\mt04.dz05.iy07) mm01() } CH03(ts, z170, 0x006, __LINE__, 0) Increment(\mt04.dz05.iy07) mm00() if (LNotEqual(\mt04.dz05.iy07, 0xabcd0109)) { err(ts, z170, __LINE__, 0, 0, \mt04.dz05.iy07, 0xabcd0109) } CH03(ts, z170, 0x008, __LINE__, 0) } /* * The same as mt04, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt05,, Serialized) { Name(ts, "mt05") Device(dz05) { Name(iy07, 0xabcd0200) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Increment(\mt05.dz05.iy07) Store (\mt05.dz05.iy07, Local0) OUTC("mt05, \\mt05.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0211)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd0211) } if (LNotEqual(\mt05.dz05.iy07, 0xabcd0211)) { err(ts, z170, __LINE__, 0, 0, \mt05.dz05.iy07, 0xabcd0211) } } Increment(\mt05.dz05.iy07) mm0f() } Increment(\mt05.dz05.iy07) mm0e() } Increment(\mt05.dz05.iy07) mm0d() } Increment(\mt05.dz05.iy07) mm0c() } Increment(\mt05.dz05.iy07) mm0b() } Increment(\mt05.dz05.iy07) mm0a() } Increment(\mt05.dz05.iy07) mm09() } Increment(\mt05.dz05.iy07) mm08() } Increment(\mt05.dz05.iy07) mm07() } Increment(\mt05.dz05.iy07) mm06() } Increment(\mt05.dz05.iy07) mm05() } Increment(\mt05.dz05.iy07) mm04() } Increment(\mt05.dz05.iy07) mm03() } Increment(\mt05.dz05.iy07) mm02() } Increment(\mt05.dz05.iy07) mm01() } CH03(ts, z170, 0x108, __LINE__, 0) Increment(\mt05.dz05.iy07) mm00() if (LNotEqual(\mt05.dz05.iy07, 0xabcd0211)) { err(ts, z170, __LINE__, 0, 0, \mt05.dz05.iy07, 0xabcd0211) } CH03(ts, z170, 0x109, __LINE__, 0) } /* * Check access to the internal object of method being executed * from the point inside the tree of that method being executed * but by the method statically declared outside that method. */ Method(mt06,, Serialized) { Name(ts, "mt06") Device(dz05) { Name(iy07, 0xabcd0300) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Store (0x11112222, \mt06.dz05.iy07) } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() Store (\mt06.dz05.iy07, Local0) OUTC("mt06, \\mt06.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z170, __LINE__, 0, 0, Local0, 0x11112222) } if (LNotEqual(\mt06.dz05.iy07, 0x11112222)) { err(ts, z170, __LINE__, 0, 0, \mt06.dz05.iy07, 0x11112222) } } mm04() } mm03() } mm02() } mm01() } CH03(ts, z170, 0x10a, __LINE__, 0) mm00() mt07() if (LNotEqual(\mt06.dz05.iy07, 0x11112222)) { err(ts, z170, __LINE__, 0, 0, \mt06.dz05.iy07, 0x11112222) } CH03(ts, z170, 0x10b, __LINE__, 0) } /* * Access to the internal object of method mt06 * * Result differs depending on either mt06 is invoked or not. * Unfortunately, we can run mt06 and mt07 simultaneously only * on the same thread (invocation). */ Method(mt07,, Serialized) { Name(ts, "mt07") Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Store (\mt06.dz05.iy07, Local0) OUTC("0 mt07, \\mt06.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z170, __LINE__, 0, 0, Local0, 0x11112222) } if (LNotEqual(\mt06.dz05.iy07, 0x11112222)) { err(ts, z170, __LINE__, 0, 0, \mt06.dz05.iy07, 0x11112222) } } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z170, 0x10c, __LINE__, 0) mm00() Store (\mt06.dz05.iy07, Local0) OUTC("1 mt07, \\mt06.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z170, __LINE__, 0, 0, Local0, 0x11112222) } if (LNotEqual(\mt06.dz05.iy07, 0x11112222)) { err(ts, z170, __LINE__, 0, 0, \mt06.dz05.iy07, 0x11112222) } CH03(ts, z170, 0x10d, __LINE__, 0) } /* * The same as mt06, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt08,, Serialized) { Name(ts, "mt08") Device(dz05) { Name(iy07, 0xabcd0400) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Store (0x22223333, \mt08.dz05.iy07) } mm0f() } mm0e() } mm0d() } mm0c() } mm0b() } mm0a() } mm09() } mm08() Store (\mt08.dz05.iy07, Local0) OUTC("mt08, \\mt08.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x22223333)) { err(ts, z170, __LINE__, 0, 0, Local0, 0x22223333) } if (LNotEqual(\mt08.dz05.iy07, 0x22223333)) { err(ts, z170, __LINE__, 0, 0, \mt08.dz05.iy07, 0x22223333) } } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z170, 0x10e, __LINE__, 0) mm00() mt09() if (LNotEqual(\mt08.dz05.iy07, 0x22223333)) { err(ts, z170, __LINE__, 0, 0, \mt08.dz05.iy07, 0x22223333) } CH03(ts, z170, 0x10f, __LINE__, 0) } /* * Access to the internal object of method mt08 * * see comment to mt07 */ Method(mt09,, Serialized) { Name(ts, "mt09") Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Store (\mt08.dz05.iy07, Local0) OUTC("0 mt09, \\mt08.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x22223333)) { err(ts, z170, __LINE__, 0, 0, Local0, 0x22223333) } if (LNotEqual(\mt08.dz05.iy07, 0x22223333)) { err(ts, z170, __LINE__, 0, 0, \mt08.dz05.iy07, 0x22223333) } } mm0f() } mm0e() } mm0d() } mm0c() } mm0b() } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } CH03(ts, z170, 0x110, __LINE__, 0) mm00() Store (\mt08.dz05.iy07, Local0) OUTC("1 mt09, \\mt08.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0x22223333)) { err(ts, z170, __LINE__, 0, 0, Local0, 0x22223333) } if (LNotEqual(\mt08.dz05.iy07, 0x22223333)) { err(ts, z170, __LINE__, 0, 0, \mt08.dz05.iy07, 0x22223333) } CH03(ts, z170, 0x111, __LINE__, 0) } /* * Check simple access to the object by the name path * without method name syllables */ Method(mt0a,, Serialized) { Name(ts, "mt0a") CH03(ts, z170, 0x112, __LINE__, 0) Store (\pr7d.iy07, Local0) OUTC("mt0a, \\pr7d.iy07:") OUTC(Local0) if (LNotEqual(\pr7d.iy07, 0xabcd0120)) { err(ts, z170, __LINE__, 0, 0, \pr7d.iy07, 0xabcd0120) } CH03(ts, z170, 0x113, __LINE__, 0) } /* * Simple increment (see comment to mt0a) */ Method(mt0b,, Serialized) { Name(ts, "mt0b") CH03(ts, z170, 0x114, __LINE__, 0) Increment(\pr7d.iy07) Store (\pr7d.iy07, Local0) OUTC("mt0b, \\pr7d.iy07:") OUTC(Local0) if (LNotEqual(\pr7d.iy07, 0xabcd0121)) { err(ts, z170, __LINE__, 0, 0, \pr7d.iy07, 0xabcd0121) } CH03(ts, z170, 0x115, __LINE__, 0) } /* * Check simple access to the object by the name path * which contains the method name syllables */ Method(mt0c,, Serialized) { Name(ts, "mt0c") Processor(pr7d, 0, 0x000, 0x008) { Name(iy07, 0xabcd0660) } CH03(ts, z170, 0x116, __LINE__, 0) Increment(\mt0c.pr7d.iy07) Store (\mt0c.pr7d.iy07, Local0) OUTC("mt0c, \\mt0c.pr7d.iy07:") OUTC(Local0) if (LNotEqual(\mt0c.pr7d.iy07, 0xabcd0661)) { err(ts, z170, __LINE__, 0, 0, \mt0c.pr7d.iy07, 0xabcd0661) } CH03(ts, z170, 0x117, __LINE__, 0) } /* * Simply long cycle in While */ Method(mt0d,, Serialized) { Name(ts, "mt0d") Name(i000, 0xabcd1234) CH03(ts, z170, 0x118, __LINE__, 0) Store(0, Local0) While (1) { Increment(Local0) // if (LEqual(Local0, 0x40000)) { if (LEqual(Local0, 100)) { // Break -- doesn't work on MS OUTC("mt0d, Local0:") OUTC(Local0) mt0e() CH03(ts, z170, 0x119, __LINE__, 0) Return } } CH03(ts, z170, 0x11a, __LINE__, 0) } /* * Access to the internal object of method mt0d */ Method(mt0e,, Serialized) { Name(ts, "mt0e") CH03(ts, z170, 0x11b, __LINE__, 0) Store (\mt0d.i000, Local0) OUTC("mt0e, \\mt0d.i000:") OUTC(Local0) if (LNotEqual(\mt0d.i000, 0xabcd1234)) { err(ts, z170, __LINE__, 0, 0, \mt0d.i000, 0xabcd1234) } CH03(ts, z170, 0x11c, __LINE__, 0) } /* * Use Add for incrementing object with the * name of method in the name path. */ Method(mt0f,, Serialized) { Name(ts, "mt0f") Device(dz05) { Name(iy07, 0xabcd0500) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Add(\mt0f.dz05.iy07, 1, \mt0f.dz05.iy07) Store (\mt0f.dz05.iy07, Local0) OUTC("mt0f, \\mt0f.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0509)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd0509) } if (LNotEqual(\mt0f.dz05.iy07, 0xabcd0509)) { err(ts, z170, __LINE__, 0, 0, \mt0f.dz05.iy07, 0xabcd0509) } } Add(\mt0f.dz05.iy07, 1, \mt0f.dz05.iy07) mm07() } Add(\mt0f.dz05.iy07, 1, \mt0f.dz05.iy07) mm06() } Add(\mt0f.dz05.iy07, 1, \mt0f.dz05.iy07) mm05() } Add(\mt0f.dz05.iy07, 1, \mt0f.dz05.iy07) mm04() } Add(\mt0f.dz05.iy07, 1, \mt0f.dz05.iy07) mm03() } Add(\mt0f.dz05.iy07, 1, \mt0f.dz05.iy07) mm02() } Add(\mt0f.dz05.iy07, 1, \mt0f.dz05.iy07) mm01() } CH03(ts, z170, 0x022, __LINE__, 0) Add(\mt0f.dz05.iy07, 1, \mt0f.dz05.iy07) mm00() if (LNotEqual(\mt0f.dz05.iy07, 0xabcd0509)) { err(ts, z170, __LINE__, 0, 0, \mt0f.dz05.iy07, 0xabcd0509) } CH03(ts, z170, 0x024, __LINE__, 0) } /* * The same as mt0f, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt10,, Serialized) { Name(ts, "mt10") Device(dz05) { Name(iy07, 0xabcd0600) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) Store (\mt10.dz05.iy07, Local0) OUTC("mt10, \\mt10.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0611)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd0611) } if (LNotEqual(\mt10.dz05.iy07, 0xabcd0611)) { err(ts, z170, __LINE__, 0, 0, \mt10.dz05.iy07, 0xabcd0611) } } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm0f() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm0e() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm0d() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm0c() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm0b() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm0a() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm09() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm08() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm07() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm06() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm05() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm04() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm03() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm02() } Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm01() } CH03(ts, z170, 0x027, __LINE__, 0) Add(\mt10.dz05.iy07, 1, \mt10.dz05.iy07) mm00() if (LNotEqual(\mt10.dz05.iy07, 0xabcd0611)) { err(ts, z170, __LINE__, 0, 0, \mt10.dz05.iy07, 0xabcd0611) } CH03(ts, z170, 0x029, __LINE__, 0) } /* * Increment with the parent name paths */ Method(mt11,, Serialized) { Name(ts, "mt11") Device(dz05) { Name(iy07, 0xabcd0700) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Increment(^^^^^^^^dz05.iy07) Store (^^^^^^^^dz05.iy07, Local0) OUTC("mt11, ^^^^^^^^dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0709)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd0709) } if (LNotEqual(^^^^^^^^dz05.iy07, 0xabcd0709)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^dz05.iy07, 0xabcd0709) } } Increment(^^^^^^^dz05.iy07) mm07() } Increment(^^^^^^dz05.iy07) mm06() } Increment(^^^^^dz05.iy07) mm05() } Increment(^^^^dz05.iy07) mm04() } Increment(^^^dz05.iy07) mm03() } Increment(^^dz05.iy07) mm02() } Increment(^dz05.iy07) mm01() } CH03(ts, z170, 0x02c, __LINE__, 0) Increment(dz05.iy07) mm00() if (LNotEqual(dz05.iy07, 0xabcd0709)) { err(ts, z170, __LINE__, 0, 0, dz05.iy07, 0xabcd0709) } CH03(ts, z170, 0x02e, __LINE__, 0) } /* * The same as mt11, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt12,, Serialized) { Name(ts, "mt12") Device(dz05) { Name(iy07, 0xabcd0800) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) OUTC("mt12, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0821)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd0821) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd0821)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd0821) } } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1f() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1e() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1d() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1c() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1b() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm1a() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm19() } Increment(^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm18() } Increment(^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm17() } Increment(^^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm16() } Increment(^^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm15() } Increment(^^^^^^^^^^^^^^^^^^^^dz05.iy07) mm14() } Increment(^^^^^^^^^^^^^^^^^^^dz05.iy07) mm13() } Increment(^^^^^^^^^^^^^^^^^^dz05.iy07) mm12() } Increment(^^^^^^^^^^^^^^^^^dz05.iy07) mm11() } Increment(^^^^^^^^^^^^^^^^dz05.iy07) mm10() } Increment(^^^^^^^^^^^^^^^dz05.iy07) mm0f() } Increment(^^^^^^^^^^^^^^dz05.iy07) mm0e() } Increment(^^^^^^^^^^^^^dz05.iy07) mm0d() } Increment(^^^^^^^^^^^^dz05.iy07) mm0c() } Increment(^^^^^^^^^^^dz05.iy07) mm0b() } Increment(^^^^^^^^^^dz05.iy07) mm0a() } Increment(^^^^^^^^^dz05.iy07) mm09() } Increment(^^^^^^^^dz05.iy07) mm08() } Increment(^^^^^^^dz05.iy07) mm07() } Increment(^^^^^^dz05.iy07) mm06() } Increment(^^^^^dz05.iy07) mm05() } Increment(^^^^dz05.iy07) mm04() } Increment(^^^dz05.iy07) mm03() } Increment(^^dz05.iy07) mm02() } Increment(^dz05.iy07) mm01() } CH03(ts, z170, 0x11d, __LINE__, 0) Increment(dz05.iy07) mm00() if (LNotEqual(dz05.iy07, 0xabcd0821)) { err(ts, z170, __LINE__, 0, 0, dz05.iy07, 0xabcd0821) } CH03(ts, z170, 0x11e, __LINE__, 0) } /* * Simple Store of object with the name of method in the name path */ Method(mt13,, Serialized) { Name(ts, "mt13") Device(dz05) { Name(iy07, 0xabcd0500) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Store (\mt13.dz05.iy07, Local0) OUTC("mt13, \\mt13.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd0500)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd0500) } if (LNotEqual(\mt13.dz05.iy07, 0xabcd0500)) { err(ts, z170, __LINE__, 0, 0, \mt13.dz05.iy07, 0xabcd0500) } } Store (\mt13.dz05.iy07, Local0) mm06() if (LNotEqual(\mt13.dz05.iy07, 0xabcd0500)) { err(ts, z170, __LINE__, 0, 0, \mt13.dz05.iy07, 0xabcd0500) } } Store (\mt13.dz05.iy07, Local0) mm05() if (LNotEqual(\mt13.dz05.iy07, 0xabcd0500)) { err(ts, z170, __LINE__, 0, 0, \mt13.dz05.iy07, 0xabcd0500) } } Store (\mt13.dz05.iy07, Local0) mm04() if (LNotEqual(\mt13.dz05.iy07, 0xabcd0500)) { err(ts, z170, __LINE__, 0, 0, \mt13.dz05.iy07, 0xabcd0500) } } Store (\mt13.dz05.iy07, Local0) mm03() if (LNotEqual(\mt13.dz05.iy07, 0xabcd0500)) { err(ts, z170, __LINE__, 0, 0, \mt13.dz05.iy07, 0xabcd0500) } } Store (\mt13.dz05.iy07, Local0) mm02() if (LNotEqual(\mt13.dz05.iy07, 0xabcd0500)) { err(ts, z170, __LINE__, 0, 0, \mt13.dz05.iy07, 0xabcd0500) } } Store (\mt13.dz05.iy07, Local0) mm01() if (LNotEqual(\mt13.dz05.iy07, 0xabcd0500)) { err(ts, z170, __LINE__, 0, 0, \mt13.dz05.iy07, 0xabcd0500) } } CH03(ts, z170, 0x03a, __LINE__, 0) Store (\mt13.dz05.iy07, Local0) mm00() if (LNotEqual(\mt13.dz05.iy07, 0xabcd0500)) { err(ts, z170, __LINE__, 0, 0, \mt13.dz05.iy07, 0xabcd0500) } CH03(ts, z170, 0x03c, __LINE__, 0) } /* * The same as mt13, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt14,, Serialized) { Name(ts, "mt14") Device(dz05) { Name(iy07, 0xabcd2900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { Store (\mt14.dz05.iy07, Local0) OUTC("mt14, \\mt14.dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm1f() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm1e() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm1d() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm1c() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm1b() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm1a() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm19() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm18() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm17() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm16() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm15() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm14() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm13() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm12() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm11() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm10() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm0f() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm0e() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm0d() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm0c() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm0b() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm0a() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm09() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm08() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm07() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm06() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm05() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm04() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm03() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm02() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } Store (\mt14.dz05.iy07, Local0) mm01() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } } CH03(ts, z170, 0x11f, __LINE__, 0) Store (\mt14.dz05.iy07, Local0) mm00() if (LNotEqual(Local0, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd2900) } if (LNotEqual(\mt14.dz05.iy07, 0xabcd2900)) { err(ts, z170, __LINE__, 0, 0, \mt14.dz05.iy07, 0xabcd2900) } CH03(ts, z170, 0x120, __LINE__, 0) } /* * The same as mt14, but contains parent name paths. * To be run on ACPICA only. */ Method(mt15,, Serialized) { Name(ts, "mt15") Device(dz05) { Name(iy07, 0xabcd3900) } Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) OUTC("mt15, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07:") OUTC(Local0) if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1f() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1e() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1d() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1c() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1b() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm1a() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm19() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm18() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm17() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm16() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm15() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm14() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm13() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm12() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm11() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^^dz05.iy07, Local0) mm10() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^^dz05.iy07, Local0) mm0f() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^^dz05.iy07, Local0) mm0e() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^^dz05.iy07, Local0) mm0d() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^^dz05.iy07, Local0) mm0c() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^^dz05.iy07, Local0) mm0b() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^^dz05.iy07, Local0) mm0a() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^^dz05.iy07, Local0) mm09() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^^dz05.iy07, Local0) mm08() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^^dz05.iy07, Local0) mm07() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^^dz05.iy07, Local0) mm06() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^^dz05.iy07, Local0) mm05() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^^dz05.iy07, 0xabcd3900) } } Store (^^^^dz05.iy07, Local0) mm04() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^^dz05.iy07, 0xabcd3900) } } Store (^^^dz05.iy07, Local0) mm03() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^^dz05.iy07, 0xabcd3900) } } Store (^^dz05.iy07, Local0) mm02() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^^dz05.iy07, 0xabcd3900) } } Store (^dz05.iy07, Local0) mm01() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(^dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, ^dz05.iy07, 0xabcd3900) } } CH03(ts, z170, 0x121, __LINE__, 0) Store (dz05.iy07, Local0) mm00() if (LNotEqual(Local0, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, Local0, 0xabcd3900) } if (LNotEqual(dz05.iy07, 0xabcd3900)) { err(ts, z170, __LINE__, 0, 0, dz05.iy07, 0xabcd3900) } CH03(ts, z170, 0x122, __LINE__, 0) } /* * Access to the internal object of invoked method */ Method(mt16, 1, Serialized) { Name(ts, "mt16") Name(i000, 0) Name(i001, 0) Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04,, Serialized) { Device(dz05) { Name(iy07, 0xabcd4900) } if (LEqual(i001, 1)) { Store(0xabcd4904, dz05.iy07) m001(1) } elseif (LEqual(i001, 2)) { Store(0xabcd4905, dz05.iy07) m001(2) } elseif (LEqual(i001, 3)) { m001(3) } } mm04() } mm03() } mm02() } mm01() } Method(m000) { Store (^mm00.mm01.mm02.mm03.mm04.dz05.iy07, i000) } Method(m001, 1) { Method(mmF1, 1) { Method(mmF2, 1, Serialized) { Device(dz05) { Name(iy07, 0xabcd6900) } if (LEqual(arg0, 1)) { Store (\mt16.mm00.mm01.mm02.mm03.mm04.dz05.iy07, i000) } elseif (LEqual(arg0, 2)) { Store (^^^mm00.mm01.mm02.mm03.mm04.dz05.iy07, i000) } elseif (LEqual(arg0, 3)) { Store (^^mmF1.mmF2.dz05.iy07, i000) } } mmF2(arg0) } mmF1(arg0) } CH03(ts, z170, 0x0c1, __LINE__, 0) if (LEqual(arg0, 0)) { // Access to the internal data of method (mm00...) not being invoked m000() CH04(ts, 1, 5, z170, __LINE__, 0, 0) // AE_NOT_FOUND } elseif (LEqual(arg0, 1)) { // Access to the internal data of method (mm00...) being invoked // by \mt16.mm00.... Store(0, i000) Store(1, i001) mm00() if (LNotEqual(i000, 0xabcd4904)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd4904) } } elseif (LEqual(arg0, 2)) { // Access to the internal data of method (mm00...) being invoked // by ^^^^^^^^^^^^mm00... Store(2, i001) mm00() if (LNotEqual(i000, 0xabcd4905)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd4905) } } elseif (LEqual(arg0, 3)) { // Access to the internal data of method (m001.mmF1.mmF2.mmF3.dz05.iy07...) // being invoked by ^^^^^^^^^^^^mm01... Store(3, i001) mm00() if (LNotEqual(i000, 0xabcd6900)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd6900) } } CH03(ts, z170, 0x0c5, __LINE__, 0) } /* * The same as mt16, but contains more depth of enclosed method calls. * To be run on ACPICA only. */ Method(mt17, 1, Serialized) { Name(ts, "mt17") Name(i000, 0) Name(i001, 0) Method(mm00) { Method(mm01) { Method(mm02) { Method(mm03) { Method(mm04) { Method(mm05) { Method(mm06) { Method(mm07) { Method(mm08) { Method(mm09) { Method(mm0a) { Method(mm0b) { Method(mm0c) { Method(mm0d) { Method(mm0e) { Method(mm0f) { Method(mm10) { Method(mm11) { Method(mm12) { Method(mm13) { Method(mm14) { Method(mm15) { Method(mm16) { Method(mm17) { Method(mm18) { Method(mm19) { Method(mm1a) { Method(mm1b) { Method(mm1c) { Method(mm1d) { Method(mm1e) { Method(mm1f) { Method(mm20) { Method(mm21,, Serialized) { Device(dz05) { Name(iy07, 0xabcd5900) } Method(mm22) { Method(mm23) { Method(mm24) { Method(mm25) { if (LEqual(i001, 1)) { Store(0xabcd4906, ^^^^dz05.iy07) m001(1) } elseif (LEqual(i001, 2)) { Store(0xabcd4907, ^^^^dz05.iy07) m001(2) } elseif (LEqual(i001, 3)) { m001(3) } } mm25() } mm24() } mm23() } mm22() } mm21() } mm20() } mm1f() } mm1e() } mm1d() } mm1c() } mm1b() } mm1a() } mm19() } mm18() } mm17() } mm16() } mm15() } mm14() } mm13() } mm12() } mm11() } mm10() } mm0f() } mm0e() } mm0d() } mm0c() } mm0b() } mm0a() } mm09() } mm08() } mm07() } mm06() } mm05() } mm04() } mm03() } mm02() } mm01() } Method(m000) { Store (^mm00.mm01.mm02.mm03.mm04.mm05.mm06.mm07.mm08.mm09.mm0a.mm0b.mm0c.mm0d.mm0e.mm0f.mm10.mm11.mm12.mm13.mm14.mm15.mm16.mm17.mm18.mm19.mm1a.mm1b.mm1c.mm1d.mm1e.mm1f.mm20.mm21.dz05.iy07, i000) } Method(m001, 1) { Method(mmF1, 1) { Method(mmF2, 1) { Method(mmF3, 1) { Method(mmF4, 1) { Method(mmF5, 1) { Method(mmF6, 1) { Method(mmF7, 1) { Method(mmF8, 1) { Method(mmF9, 1) { Method(mmFa, 1) { Method(mmFb, 1) { Method(mmFc, 1) { Method(mmFd, 1) { Method(mmFe, 1) { Method(mmFf, 1) { Method(mm10, 1) { Method(mm11, 1, Serialized) { Device(dz05) { Name(iy07, 0xabcd4908) } Method(mm12, 1) { Method(mm13, 1) { Method(mm14, 1) { Method(mm15, 1) { Method(mm16, 1) { Method(mm17, 1) { Method(mm18, 1) { Method(mm19, 1) { Method(mm1a, 1) { Method(mm1b, 1) { Method(mm1c, 1) { Method(mm1d, 1) { Method(mm1e, 1) { Method(mm1f, 1) { if (LEqual(arg0, 1)) { Store (\mt17.mm00.mm01.mm02.mm03.mm04.mm05.mm06.mm07.mm08.mm09.mm0a.mm0b.mm0c.mm0d.mm0e.mm0f.mm10.mm11.mm12.mm13.mm14.mm15.mm16.mm17.mm18.mm19.mm1a.mm1b.mm1c.mm1d.mm1e.mm1f.mm20.mm21.dz05.iy07, i000) } elseif (LEqual(arg0, 2)) { Store (^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^mm00.mm01.mm02.mm03.mm04.mm05.mm06.mm07.mm08.mm09.mm0a.mm0b.mm0c.mm0d.mm0e.mm0f.mm10.mm11.mm12.mm13.mm14.mm15.mm16.mm17.mm18.mm19.mm1a.mm1b.mm1c.mm1d.mm1e.mm1f.mm20.mm21.dz05.iy07, i000) } elseif (LEqual(arg0, 3)) { Store (^^^^^^^^^^^^^^^^^^^^^^^^^^mmF6.mmF7.mmF8.mmF9.mmFa.mmFb.mmFc.mmFd.mmFe.mmFf.mm10.mm11.dz05.iy07, i000) } } mm1f(arg0) } mm1e(arg0) } mm1d(arg0) } mm1c(arg0) } mm1b(arg0) } mm1a(arg0) } mm19(arg0) } mm18(arg0) } mm17(arg0) } mm16(arg0) } mm15(arg0) } mm14(arg0) } mm13(arg0) } mm12(arg0) } mm11(arg0) } mm10(arg0) } mmFf(arg0) } mmFe(arg0) } mmFd(arg0) } mmFc(arg0) } mmFb(arg0) } mmFa(arg0) } mmF9(arg0) } mmF8(arg0) } mmF7(arg0) } mmF6(arg0) } mmF5(arg0) } mmF4(arg0) } mmF3(arg0) } mmF2(arg0) } mmF1(arg0) } CH03(ts, z170, 0x0c6, __LINE__, 0) if (LEqual(arg0, 0)) { // Access to the internal data of method (mm00...) not being invoked m000() CH04(ts, 1, 5, z170, __LINE__, 0, 0) // AE_NOT_FOUND } elseif (LEqual(arg0, 1)) { // Access to the internal data of method (mm00...) being invoked // by \mt16.mm00.... Store(1, i001) mm00() if (LNotEqual(i000, 0xabcd4906)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd4906) } } elseif (LEqual(arg0, 2)) { // Access to the internal data of method (mm00...) being invoked // by ^^^^^^^^^^^^mm00... Store(2, i001) mm00() if (LNotEqual(i000, 0xabcd4907)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd4907) } } elseif (LEqual(arg0, 3)) { // Access to the internal data of method (m001.mmF1.mmF2.mmF3.dz05.iy07...) // being invoked by ^^^^^^^^^^^^mm01... Store(3, i001) mm00() if (LNotEqual(i000, 0xabcd4908)) { err(ts, z170, __LINE__, 0, 0, i000, 0xabcd4908) } } CH03(ts, z170, 0x0cb, __LINE__, 0) } Method(mt18, 1, Serialized) { Name(ts, "mt18") Device(dz05) { Name(iy07, 0xabcd4900) } CH03(ts, z170, 0x0cc, __LINE__, 0) if (arg0) { Store(0xabcd9000, \mt18.dz05.iy07) if (LNotEqual(\mt18.dz05.iy07, 0xabcd9000)) { err(ts, z170, __LINE__, 0, 0, \mt18.dz05.iy07, 0xabcd9000) } } else { Store(0xabcd9001, dz05.iy07) if (LNotEqual(dz05.iy07, 0xabcd9001)) { err(ts, z170, __LINE__, 0, 0, dz05.iy07, 0xabcd9001) } } CH03(ts, z170, 0x0cd, __LINE__, 0) } Method(mt19, 1, Serialized) { Name(ts, "mt19") Processor(pr7d, 0, 0x000, 0x008) { Name(iy07, 0xabcd0660) } CH03(ts, z170, 0x0ce, __LINE__, 0) if (arg0) { Store(0xabcd9002, \mt19.pr7d.iy07) if (LNotEqual(\mt19.pr7d.iy07, 0xabcd9002)) { err(ts, z170, __LINE__, 0, 0, \mt19.pr7d.iy07, 0xabcd9002) } } else { Store(0xabcd9003, pr7d.iy07) if (LNotEqual(pr7d.iy07, 0xabcd9003)) { err(ts, z170, __LINE__, 0, 0, pr7d.iy07, 0xabcd9003) } } CH03(ts, z170, 0x0cf, __LINE__, 0) } Method(mt1a, 1, Serialized) { Name(ts, "mt1a") CH03(ts, z170, 0x0d0, __LINE__, 0) if (arg0) { Store(0xabcd9004, \pr7d.iy07) if (LNotEqual(\pr7d.iy07, 0xabcd9004)) { err(ts, z170, __LINE__, 0, 0, \pr7d.iy07, 0xabcd9004) } } else { Store(0xabcd9005, ^pr7d.iy07) if (LNotEqual(^pr7d.iy07, 0xabcd9005)) { err(ts, z170, __LINE__, 0, 0, ^pr7d.iy07, 0xabcd9005) } } CH03(ts, z170, 0x0d1, __LINE__, 0) } Method(mtff,, Serialized) { Name(run0, 1) // Works on both SRMT("mt00") mt00() if (chk0) { // Exceeded the depth supported on MS SRMT("mt01") mt01() } // Works on both SRMT("mt02") mt02() if (chk0) { // Exceeded the depth supported on MS SRMT("mt03") mt03() } if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt04") mt04() } if (LAnd(chk0, run0)) { // Exceeded the depth supported on MS SRMT("mt05") mt05() } if (run0) { // Works on MS, AE_NOT_FOUND on ACPICA SRMT("mt06") mt06() } if (0) { // Fails for both here - for MS and ACPICA SRMT("mt07") mt07() } if (chk0) { // Exceeded the depth supported on MS SRMT("mt08") mt08() } // Works on both SRMT("mt0a") mt0a() SRMT("mt0b") mt0b() if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt0c") mt0c() } // Simply long cycle in While SRMT("mt0d") mt0d() if (0) { SRMT("mt0e") mt0e() // Result: ACPICA - AE_NOT_FOUND, MS - Failure } if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt0f") mt0f() } if (LAnd(chk0, run0)) { // Exceeded the depth supported on MS SRMT("mt10") mt10() } if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt11") mt11() } if (LAnd(chk0, run0)) { // Exceeded the depth supported on MS SRMT("mt12") mt12() } // Works on both SRMT("mt13") mt13() if (chk0) { // Exceeded the depth supported on MS SRMT("mt14") mt14() SRMT("mt15") mt15() } if (chk0) { // ACPICA - AE_NOT_FOUND (it is correct), MS - Failure SRMT("mt16-0") mt16(0) } if (run0) { // Works on MS, AE_AML_OPERAND_TYPE on ACPICA SRMT("mt16-1") mt16(1) SRMT("mt16-2") mt16(2) SRMT("mt16-3") mt16(3) } if (chk0) { // ACPICA - AE_NOT_FOUND (it is correct), MS - Failure SRMT("mt17-0") mt17(0) } if (LAnd(chk0, run0)) { // Exceeded the depth supported on MS SRMT("mt17-1") mt17(1) SRMT("mt17-2") mt17(2) } SRMT("mt18-0") mt18(0) SRMT("mt18-1") mt18(1) SRMT("mt19-0") mt19(0) SRMT("mt19-1") mt19(1) SRMT("mt1a-0") mt1a(0) SRMT("mt1a-1") mt1a(1) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/misc/0000700000175000017500000000000014773714157026570 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/misc/ms1.asl0000700000175000017500000042262014773714157030002 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests exercized during ACPICA to MS implementation comparison */ Name(z179, 179) /* * * Stuff not working under MS: * * 1) String to Integer Implicit operand conversion, ms10: a063, b063, c063 - * a failure when a String in a position of an Integer; errors in e063, * f063, g063, h063 are inverted by q004 flag (Implicit Operand conversion * on MS contradicts ACPI Spec). * 2) No exception on DerefOf of an arbitrary Source, ms11: b083, d083 - * an expected failure on DerefOf of an Integer. * 3) Access to FieldObject element of Package causes exception, ms16: f118 - * a failure when an Integer is stored to a Named Package. * 4) The Read access automatic dereference ... doesn't work, ms17: b126, * c126 - a failure when a reference in ArgX is used in a position of Data. * 5) CopyObject of immediately passed Index ... is not a reference, ms18: * a127 - a failure due to the CopyObject operator in AML code. * 6) Copying the RefOf reference to Named object ..., ms19: d128, e128 - * a failure when a reference is stored to a Package element. * 7) Store to the Index reference ... returned by Method ..., ms1a: a131, * b131, c131 - a failure when a Method call is the Target of Store. * 8) Read access automatic dereference for Index reference ..., ms1b: a132, * b132 - a failure when the Index argument is used without Derefof. * 9) Write access automatic dereference for Index reference ..., ms1c: b133 - * a failure when a String element is to be changed. * 10) Forward reference within a control method, ms20: cmfr - an expected * failure when a Named Object is accessed before its declaration. * 11) Recursive Serialized method execution, ms21: erec - an expected * failure for the enough deep recursion. * 12) Implicit return, ms23: emir?, fmir?, gmir - Break in the specifically * declared while doesn't work. * 13) Store(..., DeRefof(...)) behavior, ms25: a failure when a Refof or * Derefof is the Target of Store. * 14) IndexField implementation, my27: jife - a failure when the Access type * of a Field is specified to be QWordAcc. * 15) Acquire/Release, ms29: a hang when used with the Dynamic Mutex. * 16) ToBuffer optional store, ms2a: it looks like ToBuffer does not work. * 17) Package size calculation, ms2b: pac2 actually should be used with * Package(3){1, 2, 3, 4, 5}) declaration, but iASL reports "Initializer * list too long" error. Use it with -f iASL option. * 18) Bug 246 issue, ms2f: c246 actually should be used without * While(1){... Break) declaration, but iASL reports "No enclosing While * statement" error. Use it with -f iASL option. * 19) Storing of an improper specified Device object ..., ms33: * a blue screen appears on the MS OS booting if that Device is global. * * 99) */ // Useful for indirect storing Method(RSTO, 2) {Store(arg0, arg1)} Method(DSTO, 2) {Store(Derefof(arg0), arg1)} /* * Bug 63 issue: * * SUMMARY: String to Integer conversion contradicts new April 2005 Conversion Rules */ Method(ms10, 1, Serialized) { Name(ts, "ms10") Method(m063, 2) { OUTP("Bug 63: Add(\"0x1111\", 0, Local0) should return 0?") OUTP("Addend1:") OUTP(arg0) Add(arg0, 0, Local0) OUTP("Result (Local0):") OUTP(Local0) if (LNotEqual(arg1, Local0)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } } Method(n063, 3, Serialized) { Name (INT0, 0xffff) OUTP("Bug 63upd: Implicit conversion \"0x1111\" to Integer should return 0?") OUTP("String:") OUTP(arg0) Store(arg0, INT0) OUTP("Result (INT0):") OUTP(INT0) if (LAnd(ABUU, LNot(q004))) { // Implicit Operand conversion on MS contradicts ACPI Spec if (LNotEqual(arg2, INT0)) { err(ts, z179, __LINE__, 0, 0, INT0, arg2) } } else { if (LNotEqual(arg1, INT0)) { err(ts, z179, __LINE__, 0, 0, INT0, arg1) } } } Method(m000) { if (ABUU) { } else { m063("0", 0) m063("0x", 0) m063("0x1111", 0) } m063(1, 1) n063("0", 0, 0x30) n063("0x", 0, 0x7830) n063("0x1111", 0, 0x31317830) n063("0x111111111", 0, 0x31317830) } CH03(ts, z179, 0x002, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { m063("0", 0) } case (2) { m063("0x", 0) } case (3) { m063("0x1111", 0) } case (4) { m063(1, 1) } case (5) { n063("0", 0, 0x30) } case (6) { n063("0x", 0, 0x7830) } case (7) { n063("0x1111", 0, 0x31317830) } case (8) { n063("0x111111111", 0, 0x31317830) } } CH03(ts, z179, 0x003, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a063) { IIN0() ms10(1) Return(POUT) } Method(b063) { IIN0() ms10(2) Return(POUT) } Method(c063) { IIN0() ms10(3) Return(POUT) } Method(d063) { IIN0() ms10(4) Return(POUT) } Method(e063) { IIN0() ms10(5) Return(POUT) } Method(f063) { IIN0() ms10(6) Return(POUT) } Method(g063) { IIN0() ms10(7) Return(POUT) } Method(h063) { IIN0() ms10(8) Return(POUT) } /* * Bug 83 issue: * * SUMMARY: No exception on DerefOf of an arbitrary Source */ Method(ms11, 1, Serialized) { Name(ts, "ms11") Method(m083, 1, Serialized) { Name(i000, 0x89abcdef) OUTP("Bug 83: Derefof of non-Ref. (f.e. Integer) should produce exception") OUTP("Name(i000, 0x89abcdef)") if (arg0) { Store(Derefof(i000), Local0) CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } else { Store(Derefof(Refof(i000)), Local0) CH03(ts, z179, 0x005, __LINE__, 0) } } Method(n083, 1, Serialized) { Name(i000, 0x89abcdef) OUTP("Bug 83upd: Derefof of non-Ref. (f.e. Integer) should produce exception") if (arg0) { Store(0x89abcdef, Local0) OUTP("Store(0x89abcdef, Local0)") } else { Store(Refof(i000), Local0) OUTP("Store(Refof(i000), Local0)") } Store(Derefof(Local0), Local1) if (arg0) { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } else { CH03(ts, z179, 0x007, __LINE__, 0) } } Method(m000) { m083(0) if (ABUU) { } else { m083(1) } n083(0) if (ABUU) { } else { n083(1) } } CH03(ts, z179, 0x008, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { m083(0) } case (2) { m083(1) } case (3) { n083(0) } case (4) { n083(1) } } CH03(ts, z179, 0x009, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a083) { IIN0() ms11(1) Return(POUT) } Method(b083) { IIN0() ms11(2) Return(POUT) } Method(x083) { IIN0() ms11(3) Return(POUT) } Method(d083) { IIN0() ms11(4) Return(POUT) } /* * Bug 100 issue: * * SUMMARY: The specific combination of operators aborts execution */ Method(ms12,, Serialized) { Name(ts, "ms12") Method(m100) { Method(m000) { return (0) } Method(m001,, Serialized) { m000() Device(d000) {} Name(i000, 0xabcdef) OUTP("Finish of test") } OUTP("Bug 100 (fixed for 20050526): some combination of operators aborts execution") m001() } CH03(ts, z179, 0x00a, __LINE__, 0) m100() CH03(ts, z179, 0x00b, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a100) { IIN0() ms12() Return(POUT) } /* * Bug 113 issue: * * SUMMARY: Unexpected dereference of Index reference immediately passed to Method */ Method(ms13, 1, Serialized) { Name(ts, "ms13") Name(p001, Package(){0x10, 0x11, 0x12, 0x13, 0x14}) Name(p002, Package(){0x20, 0x21, 0x22, 0x23, 0x24}) Name(p003, Package(){0x30, 0x31, 0x32, 0x33, 0x34}) Name(p004, Package(){0x40, 0x41, 0x42, 0x43, 0x44}) Name(p005, Package(){0x50, 0x51, 0x52, 0x53, 0x54}) Method(a113) { Method(m000, 2) { Store(Derefof(arg0), Local0) if (CH03(ts, z179, 0x00c, __LINE__, 0)) { } elseif (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } } OUTP("Bug 113: immediate Indexed Ref. as parameters of Methods are unexpectedly dereferenced 1") m000(Index(p001, 0), 0x10) } Method(b113) { Method(m000, 2) { Store(Derefof(arg0), Local0) if (CH03(ts, z179, 0x00e, __LINE__, 0)) { } elseif (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } } OUTP("Bug 113: immediate Indexed Ref. as parameters of Methods are unexpectedly dereferenced 2") Store(Index(p001, 0), Local0) m000(Local0, 0x10) } Method(s113) { Method(m000, 6) { OUTP(Derefof(arg0)) CH03(ts, z179, 0x012, __LINE__, 0) OUTP(Derefof(arg1)) CH03(ts, z179, 0x013, __LINE__, 0) OUTP(Derefof(arg2)) CH03(ts, z179, 0x014, __LINE__, 0) OUTP(Derefof(arg3)) CH03(ts, z179, 0x015, __LINE__, 0) OUTP(Derefof(arg4)) CH03(ts, z179, 0x016, __LINE__, 0) OUTP(Derefof(arg5)) CH03(ts, z179, 0x017, __LINE__, 0) } OUTP("Bug 113 MS: immediate Indexed Ref. as parameters of Methods can be dereferenced 3") Store(Index(p002, 1), Local0) Index(p004, 3, Local1) Store(Index(p005, 4, Local2), Local3) m000(Index(p001, 0), Local0, Index(p003, 2, Local4), Local1, Local2, Local3) OUTP(Derefof(Local4)) } CH03(ts, z179, 0x018, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { a113() b113() s113()} case (1) { a113() } case (2) { b113() } case (3) { s113() } } CH03(ts, z179, 0x019, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a113) { IIN0() ms13(1) Return(POUT) } Method(b113) { IIN0() ms13(2) Return(POUT) } Method(c113) { IIN0() ms13(3) Return(POUT) } /* * Bug 114 issue: * * SUMMARY: Method object as a Source of Index operation is treated by iASL as a call to that Method * Note: M001 will become a method call. No parens needed because it has no argument. */ Method(ms14, 1, Serialized) { Name(ts, "ms14") Method(m114, 1) { Method(m000, 1, Serialized) { Name(i001, 0) Name(b001, Buffer(){10,2,3,4,5}) Method(m001) { Increment(i001) return (Buffer(){10,2,3,4,5}) } Method(m002) { Increment(i001) return (Package(){10,2,3,4,5}) } if (LEqual(arg0, 0)) { OUTP("Start of test: Method returns (Buffer(){10,2,3,4,5})") OUTP("Index(m001, 0, Local0)") Index(m001, 0, Local0) if (LAnd(ABUU, LNot(q005))) { } elseif (LNot(i001)) { err(ts, z179, __LINE__, 0, 0, i001, 0) } } elseif (LEqual(arg0, 1)) { OUTP("Start of test: Method returns (Package(){10,2,3,4,5})") OUTP("Index(m001, 0, Local0)") Index(m001, 0, Local0) if (LAnd(ABUU, LNot(q005))) { } elseif (LNot(i001)) { err(ts, z179, __LINE__, 0, 0, i001, 0) } } elseif (LEqual(arg0, 2)) { OUTP("Start of test: Name(b001, Buffer(){10,2,3,4,5})") OUTP("Index(b001, 0, Local0)") Index(b001, 0, Local0) OUTP(i001) Store(DerefOf(Local0), Local1) OUTP(Local1) } OUTP("Finish of test") } OUTP("Bug 114: Method object as a Source of Index operation") m000(arg0) } Method(m000) { m114(0) m114(1) m114(2) } CH03(ts, z179, 0x01e, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000()} case (1) { m114(0) } case (2) { m114(1) } case (3) { m114(2) } } CH03(ts, z179, 0x01f, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a114) { IIN0() ms14(1) Return(POUT) } Method(b114) { IIN0() ms14(2) Return(POUT) } Method(c114) { IIN0() ms14(3) Return(POUT) } /* * Bug 115 issue: * * SUMMARY: Unexpected dereference of Index reference returned by Method and immediately passed to another Method */ Method(ms15, 1, Serialized) { Name(ts, "ms15") Name(p001, Package(){0x10}) Name(p002, Package(){0x20}) Name(p003, Package(){0x30}) Name(p004, Package(){0x40}) Name(p005, Package(){0x50}) Name(p006, Package(){0x60}) Method(m001) {Return(Index(p001, 0))} Method(m002) {Store(Index(p002, 0), Local0) Return(Local0)} Method(m003) {Return(Index(p003, 0, Local0))} Method(m004) {Index(p004, 0, Local0) Return(Local0)} Method(m005) {Store(Index(p005, 0, Local0), Local1) Return(Local1)} Method(m006) {Store(Index(p006, 0, Local0), Local1) Return(Local0)} Method(a115) { Method(m000, 2) { Store(Derefof(arg0), Local0) if (CH03(ts, z179, 0x020, __LINE__, 0)) { } elseif (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } } OUTP("Bug 115: immediately returned Indexed Ref. as parameters of Methods are unexpectedly dereferenced 1") m000(m001(), 0x10) } Method(b115) { Method(m000, 2) { Store(Derefof(arg0), Local0) if (CH03(ts, z179, 0x022, __LINE__, 0)) { } elseif (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } } OUTP("Bug 115: immediately returned Indexed Ref. as parameters of Methods are unexpectedly dereferenced 2") m000(m002(), 0x20) } Method(c115) { Method(m000, 2) { Store(Derefof(arg0), Local0) if (CH03(ts, z179, 0x024, __LINE__, 0)) { } elseif (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } } OUTP("Bug 115: immediately returned Indexed Ref. as parameters of Methods are unexpectedly dereferenced 3") m000(m003(), 0x30) } Method(d115) { Method(m000, 2) { Store(Derefof(arg0), Local0) if (CH03(ts, z179, 0x026, __LINE__, 0)) { } elseif (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } } OUTP("Bug 115: immediately returned Indexed Ref. as parameters of Methods are unexpectedly dereferenced 4") m000(m004(), 0x40) } Method(e115) { Method(m000, 2) { Store(Derefof(arg0), Local0) if (CH03(ts, z179, 0x028, __LINE__, 0)) { } elseif (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } } OUTP("Bug 115: immediately returned Indexed Ref. as parameters of Methods are unexpectedly dereferenced 5") m000(m005(), 0x50) } Method(f115) { Method(m000, 2) { Store(Derefof(arg0), Local0) if (CH03(ts, z179, 0x02a, __LINE__, 0)) { } elseif (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } } OUTP("Bug 115: immediately returned Indexed Ref. as parameters of Methods are unexpectedly dereferenced 6") m000(m006(), 0x60) } CH03(ts, z179, 0x02c, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { a115() b115() c115() d115() e115() f115()} case (1) { a115() } case (2) { b115() } case (3) { c115() } case (4) { d115() } case (5) { e115() } case (6) { f115() } } CH03(ts, z179, 0x02d, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a115) { IIN0() ms15(1) Return(POUT) } Method(b115) { IIN0() ms15(2) Return(POUT) } Method(c115) { IIN0() ms15(3) Return(POUT) } Method(d115) { IIN0() ms15(4) Return(POUT) } Method(e115) { IIN0() ms15(5) Return(POUT) } Method(f115) { IIN0() ms15(6) Return(POUT) } /* * Bug 118 issue: * * SUMMARY: Access to FieldObject element of Package causes exception */ Method(ms16, 1, Serialized) { Name(ts, "ms16") Method(a118,, Serialized) { Name(p90d, Package() {0xd650a284}) // Access to the Integer data as an element of Package Method(m000) { OUTP("Test m000 started") Store(Index(p90d, 0), Local0) Store(DerefOf(Local0), Local1) Store(ObjectType(Local1), Local2) if (LNotEqual(Local2, 1)) { err(ts, z179, __LINE__, 0, 0, Local2, 1) if (LEqual(Local2, 2)) { OUTP(Local1) } else { OUTP(Local2) } } else { OUTP(Local1) if (LNotEqual(Local1, 0xd650a284)) { err(ts, z179, __LINE__, 0, 0, Local1, 0xd650a284) } else { OUTP("Ok") } } OUTP("Test m000 finished") } OUTP("Bug 118: Integer data as an element of Package") m000() } Method(b118,, Serialized) { Name(i900, 0xd650a284) Name(p90d, Package() {i900}) // Access to the named Integer object as an element of Package Method(m000) { OUTP("Test m000 started") Store(Index(p90d, 0), Local0) Store(DerefOf(Local0), Local1) Store(ObjectType(Local1), Local2) if (LAnd(ABUU, LNot(q006))) { if (LNotEqual(Local2, 2)) { err(ts, z179, __LINE__, 0, 0, Local2, 2) } } elseif (LNotEqual(Local2, 1)) { err(ts, z179, __LINE__, 0, 0, Local2, 1) } else { OUTP(Local1) if (LNotEqual(Local1, 0xd650a284)) { err(ts, z179, __LINE__, 0, 0, Local1, 0xd650a284) } else { OUTP("Ok") } } OUTP("Test m000 finished") } OUTP("Bug 118: Named Integer Object reference in Package") m000() } Method(c118,, Serialized) { Name(b900, Buffer() {10,2,3,4,5,6,7,8,9}) CreateField(b900, 0, 8, bf90) Name(p915, Package() {bf90}) // Access to the Buffer Field object as an element of Package Method(m001) { OUTP("Test m001 started") Store(Index(p915, 0), Local0) Store(DerefOf(Local0), Local1) Store(ObjectType(Local1), Local2) if (LAnd(ABUU, LNot(q006))) { if (LNotEqual(Local2, 2)) { err(ts, z179, __LINE__, 0, 0, Local2, 2) } } elseif (LNotEqual(Local2, 0x3)) { err(ts, z179, __LINE__, 0, 0, Local2, 0x3) } elseif (y118) { OUTP(Local1) if (LNotEqual(Local1, 10)) { err(ts, z179, __LINE__, 0, 0, Local1, 10) } else { OUTP("Ok") } } OUTP("Test m001 finished") } OUTP("Bug 118: Named Buffer Field Object reference in Package") m001() } Method(d118,, Serialized) { Name(b900, Buffer() {10,2,3,4,5,6,7,8,9}) CreateField(b900, 0, 8, bf90) // Access to the Buffer Field object by Reference Method(m001) { OUTP("Test m001 started: Store bf90 to Local1") Store(bf90, Local1) Store(ObjectType(Local1), Local2) if (LAnd(ABUU, LNot(q007))) { if (LNotEqual(Local2, 3)) { err(ts, z179, __LINE__, 0, 0, Local2, 3) } } elseif (LNotEqual(Local2, 0x3)) { err(ts, z179, __LINE__, 0, 0, Local2, 0x3) } else { OUTP(Local1) if (LNotEqual(Local1, Buffer(){0xA})) { err(ts, z179, __LINE__, 0, 0, Local1, Buffer(){0xA}) } else { OUTP("Ok") } } OUTP("Test m001 finished") } OUTP("Bug 118 issue: Fields are immediately resolved to integers/buffers.") m001() } Method(e118,, Serialized) { Name(b900, Buffer() {10,2,3,4,5,6,7,8,9}) CreateField(b900, 0, 8, bf90) // Access to the Buffer Field object by Reference Method(m001) { OUTP("Test m001 started: Store DerefOf(Refof(bf90)) to Local1") Store(Refof(bf90), Local0) Store(DerefOf(Local0), Local1) Store(ObjectType(Local1), Local2) if (LAnd(ABUU, LNot(q007))) { if (LNotEqual(Local2, 3)) { err(ts, z179, __LINE__, 0, 0, Local2, 3) } } elseif (LNotEqual(Local2, 0x3)) { err(ts, z179, __LINE__, 0, 0, Local2, 0x3) } else { OUTP(Local1) if (LNotEqual(Local1, Buffer(){0xA})) { err(ts, z179, __LINE__, 0, 0, Local1, Buffer(){0xA}) } else { OUTP("Ok") } } OUTP("Test m001 finished") } OUTP("Bug 118 issue: Fields are immediately resolved to integers/buffers.") m001() } Method(f118,, Serialized) { Name(b900, Buffer() {10,2,3,4,5,6,7,8,9}) CreateField(b900, 0, 8, bf90) Name(p915, Package(1) {}) // Access to the Buffer Field object by Reference Method(m001) { Method(m000, 1) {return(arg0)} OUTP("Test m001 started: Store DerefOf(Refof(bf90)) to Named Package") Store(Refof(bf90), Local0) Store(DerefOf(Local0), p915) Store(ObjectType(p915), Local2) if (LNotEqual(Local2, 1)) { err(ts, z179, __LINE__, 0, 0, Local2, 1) } else { OUTP(p915) if (LNotEqual(m000(p915), 10)) { err(ts, z179, __LINE__, 0, 0, p915, 10) } else { OUTP("Ok") } } OUTP("Test m001 finished") } OUTP("Bug 118 issue: Fields are immediately resolved to integers/buffers.") m001() } Method(g118,, Serialized) { Name(i900, 0xd650a284) Name(p90d, Package() {i900}) // Access to the named Integer object as an element of Package Method(m000) { OUTP("Test m000 started") Store(Index(p90d, 0), Local0) Store(DerefOf(Local0), Local1) Store(ObjectType(Local1), Local2) if (LAnd(ABUU, LNot(q006))) { if (LNotEqual(Local2, 2)) { err(ts, z179, __LINE__, 0, 0, Local2, 2) } } elseif (LNotEqual(Local2, 1)) { err(ts, z179, __LINE__, 0, 0, Local2, 1) } else { OUTP(Local1) if (LNotEqual(Local1, 0xd650a284)) { err(ts, z179, __LINE__, 0, 0, Local1, 0xd650a284) } else { OUTP("Ok") } } OUTP("Test m000 finished") } OUTP("Bug 118: DerefOf Named Integer Object reference in Package") m000() } Method(m000) { a118() b118() c118() d118() e118() if (ABUU) { } else { f118() } g118() } CH03(ts, z179, 0x03c, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { a118() } case (2) { b118() } case (3) { c118() } case (4) { d118() } case (5) { e118() } case (6) { f118() } case (7) { g118() } } CH03(ts, z179, 0x03d, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a118) { IIN0() ms16(1) Return(POUT) } Method(b118) { IIN0() ms16(2) Return(POUT) } Method(c118) { IIN0() ms16(3) Return(POUT) } Method(d118) { IIN0() ms16(4) Return(POUT) } Method(e118) { IIN0() ms16(5) Return(POUT) } Method(f118) { IIN0() ms16(6) Return(POUT) } Method(g118) { IIN0() ms16(7) Return(POUT) } /* * Bug 126 issue: * * SUMMARY: The Read access automatic dereference for RefOf reference doesn't work */ Method(ms17, 1, Serialized) { Name(ts, "ms17") Method(m126, 1, Serialized) { Method(m000, 1, Serialized) { Name(i001, 0) OUTP("m000 started, apply DerefOf()") Store(DerefOf(arg0), Local0) Add(Local0, 1, Local6) CH03(ts, z179, 0x03e, __LINE__, 0) OUTP(Local6) Store(DerefOf(arg0), i001) OUTP(i001) Add(i001, 1, Local7) CH03(ts, z179, 0x03f, __LINE__, 0) OUTP(Local7) if (LNotEqual(Local6, Local7)) { err(ts, z179, __LINE__, 0, 0, Local6, Local7) } OUTP("m000 finished") } Method(m001, 1, Serialized) { Name(i001, 0) OUTP("m001 started, DON'T apply DerefOf()") Store(arg0, Local0) OUTP("Before Add") Add(Local0, 1, Local6) CH03(ts, z179, 0x041, __LINE__, 0) OUTP("After Add") OUTP(Local6) OUTP("sit 1") Store(arg0, i001) CH03(ts, z179, 0x042, __LINE__, 0) OUTP(i001) Add(i001, 1, Local7) CH03(ts, z179, 0x043, __LINE__, 0) if (LNotEqual(Local6, Local7)) { err(ts, z179, __LINE__, 0, 0, Local6, Local7) } OUTP("m001 finished") } Method(m002, 1) { OUTP("m002 started, immediate Arg") OUTP("Before Add") Add(arg0, 1, Local7) CH03(ts, z179, 0x045, __LINE__, 0) OUTP("After Add") if (LNotEqual(8, Local7)) { err(ts, z179, __LINE__, 0, 0, Local7, 8) } OUTP("m002 finished") } Method(m003, 1) { OUTP("m003 started, apply DerefOf(Arg)") OUTP("Before Add") Add(DerefOf(arg0), 1, Local7) CH03(ts, z179, 0x047, __LINE__, 0) OUTP("After Add") if (LNotEqual(8, Local7)) { err(ts, z179, __LINE__, 0, 0, Local7, 8) } OUTP("m003 finished") } Name(i000, 7) Name(i001, 7) Name(i002, 7) Name(i003, 7) OUTP("Bug 126: automatic dereference on reading issue") if (LEqual(arg0, 0)) { m000(RefOf(i000)) } elseif (LEqual(arg0, 1)) { m001(RefOf(i001)) } elseif (LEqual(arg0, 2)) { m002(RefOf(i002)) } elseif (LEqual(arg0, 3)) { m003(RefOf(i003)) } } Method(m000) { m126(0) if (ABUU) { } else { m126(1) m126(2) } m126(3) } CH03(ts, z179, 0x049, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { m126(0) } case (2) { m126(1) } case (3) { m126(2) } case (4) { m126(3) } } CH03(ts, z179, 0x04a, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a126) { IIN0() ms17(1) Return(POUT) } Method(b126) { IIN0() ms17(2) Return(POUT) } Method(c126) { IIN0() ms17(3) Return(POUT) } Method(d126) { IIN0() ms17(4) Return(POUT) } /* * Bug 127 issue: * * SUMMARY: Unexpectedly CopyObject of immediately passed Index reference is not reference */ Method(ms18,, Serialized) { Name(ts, "ms18") Method(m127,, Serialized) { Name (p000, Package(2) {1, 2}) OUTP("Bug 127: CopyObject unexpectedly performs dereference") OUTP("Store(Index(p000, 0, Local0), Local1):") Store(Index(p000, 0, Local0), Local1) Store(Derefof(Local0), Local4) CH03(ts, z179, 0x04b, __LINE__, 0) Store(Derefof(Local1), Local4) CH03(ts, z179, 0x04c, __LINE__, 0) OUTP("CopyObject(Index(p000, 0, Local2), Local3):") CopyObject(Index(p000, 0, Local2), Local3) Store(Derefof(Local2), Local4) CH03(ts, z179, 0x04d, __LINE__, 0) Store(Derefof(Local3), Local4) CH03(ts, z179, 0x04e, __LINE__, 0) } CH03(ts, z179, 0x04f, __LINE__, 0) m127() CH03(ts, z179, 0x050, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a127) { IIN0() ms18() Return(POUT) } /* * Bug 128 issue: * * SUMMARY: Copying the RefOf reference to Named object spoils that reference */ Method(ms19, 1, Serialized) { Name(ts, "ms19") // Store Object_Reference to LocalX (No exception, Ok) Method(a128,, Serialized) { Name(i000, 0x1234) OUTP("Bug 128:") OUTP("a128 started: Store Object_Reference to LocalX (No exception, Ok)") Store(RefOf(i000), Local0) Store(DerefOf(Local0), Local1) if (LNotEqual(Local1, 0x1234)) { err(ts, z179, __LINE__, 0, 0, Local1, 0x1234) } OUTP("a128 finished") } // Store Object_Reference to NamedX (Exception, Ok) Method(b128,, Serialized) { Name(i000, 0x1234) Name(ref0, 0) OUTP("Bug 128:") OUTP("b128 started: Store Object_Reference to NamedX (Exception, Ok)") Store(RefOf(i000), ref0) CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) OUTP("b128 finished") } // CopyObject Object_Reference to NamedX (Exception, Bug) Method(c128,, Serialized) { Name(i000, 0x1234) Name(ref0, 0) OUTP("Bug 128:") OUTP("c128 started: CopyObject Object_Reference to NamedX (Exception, Bug)") CopyObject(RefOf(i000), ref0) if (CH04(ts, 0, 0xff, z179, __LINE__, 0, 0)) { return } // When an invocation of a Method tries to return a Package, // where some reference was saved, the AE_TYPE exception occurs. //OUTP(ref0) Store(DerefOf(ref0), Local1) if (LNotEqual(Local1, 0x1234)) { err(ts, z179, __LINE__, 0, 0, Local1, 0x1234) } OUTP("c128 finished") } // Store Object_Reference to uninit Package element (No exception, Ok) Method(d128,, Serialized) { Name(i000, 0x1234) Name(p000, Package(1){}) OUTP("Bug 128:") OUTP("d128 started: Store Object_Reference to uninit Package element (No exception, Ok)") Store(RefOf(i000), Index(p000, 0)) Store(DerefOf(DerefOf(Index(p000, 0))), Local1) if (LNotEqual(Local1, 0x1234)) { err(ts, z179, __LINE__, 0, 0, Local1, 0x1234) } OUTP("d128 finished") } // Store Object_Reference to init Package element (No exception, Ok) Method(e128,, Serialized) { Name(i000, 0x1234) Name(p000, Package(1){0x5678}) OUTP("Bug 128:") OUTP("d128 started: Store Object_Reference to init Package element (No exception, Ok)") Store(RefOf(i000), Index(p000, 0)) Store(DerefOf(DerefOf(Index(p000, 0))), Local1) if (LNotEqual(Local1, 0x1234)) { err(ts, z179, __LINE__, 0, 0, Local1, 0x1234) } OUTP("d128 finished") } Method(m000) { a128() // Causes exception if (ABUU) { } else { b128() } // Causes exception if (ABUU) { } else { c128() } if (ABUU) { } else { d128() } if (ABUU) { } else { e128() } } CH03(ts, z179, 0x057, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { a128() } case (2) { b128() } case (3) { c128() } case (4) { d128() } case (5) { e128() } } CH03(ts, z179, 0x058, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a128) { IIN0() ms19(1) Return(POUT) } Method(b128) { IIN0() ms19(2) Return(POUT) } Method(c128) { IIN0() ms19(3) Return(POUT) } Method(d128) { IIN0() ms19(4) Return(POUT) } Method(e128) { IIN0() ms19(5) Return(POUT) } /* * Bug 131 issue: * * SUMMARY: Store to the Index reference immediately returned by Method doesn't work */ Method(ms1a, 1, Serialized) { Name(ts, "ms1a") Method(a131,, Serialized) { Name(i000, 0x77) Name(i001, 0) Method(m000) { Increment(i001) return (RefOf(i000)) } Method(m001) { Increment(i001) Store(RefOf(i000), Local0) return (Local0) } OUTP("Case return (RefOf(i000))") /* // Removed 09/2015. iASL store to method invocation is not supported Store(5, m000()) */ if (LEqual(i001, 0)) { err(ts, z179, __LINE__, 0, 0, i001, 0) } elseif (LNotEqual(i000, 5)) { err(ts, z179, __LINE__, 0, 0, i000, 5) } else { OUTP("Ok a131") } } Method(b131,, Serialized) { Name(i000, 0x77) Name(i001, 0) Method(m000) { Increment(i001) return (RefOf(i000)) } Method(m001) { Increment(i001) Store(RefOf(i000), Local0) return (Local0) } OUTP("Case return (Local0) (= RefOf(i000))") /* // Removed 09/2015. iASL store to method invocation not supported Store(0x15, m001()) */ if (LEqual(i001, 0)) { err(ts, z179, __LINE__, 0, 0, i001, 0) } elseif (LNotEqual(i000, 0x15)) { err(ts, z179, __LINE__, 0, 0, i000, 0x15) } else { OUTP("Ok b131") } } Method(c131,, Serialized) { Name(i000, 0x77) Name(i001, 0) Method(m000) { Increment(i001) return (RefOf(i000)) } Method(m001) { Increment(i001) Store(RefOf(i000), Local0) return (Local0) } Store(Refof(Local0), Local1) OUTP("Case Store(return (RefOf(i000)), Local0)") Store(m000(), Local0) Store(0x25, Derefof(Local1)) if (LEqual(i001, 0)) { err(ts, z179, __LINE__, 0, 0, i001, 0) } elseif (LNotEqual(i000, 0x25)) { err(ts, z179, __LINE__, 0, 0, i000, 0x25) } else { OUTP("Ok c131") } } Method(d131,, Serialized) { Name(i000, 0x77) Name(i001, 0) Method(m000) { Increment(i001) return (RefOf(i000)) } Method(m001) { Increment(i001) Store(RefOf(i000), Local0) return (Local0) } OUTP("Case - test tools proper work indication") RSTO(0x35, m000()) if (LEqual(i001, 0)) { err(ts, z179, __LINE__, 0, 0, i001, 0) } elseif (LNotEqual(i000, 0x35)) { err(ts, z179, __LINE__, 0, 0, i000, 0x35) } else { OUTP("Ok d131") } } Method(e131,, Serialized) { Name(i000, 0x77) Name(i001, 0) Method(m000) { Increment(i001) return (RefOf(i000)) } OUTP("Case Store(return (RefOf(i000)), Local0), step 1") Store(m000(), Local0) if (LEqual(i001, 0)) { err(ts, z179, __LINE__, 0, 0, i001, 0) } else { OUTP("Ok e131") } } Method(m000) { if (ABUU) { } else { a131() } if (ABUU) { } else { b131() } if (ABUU) { } else { c131() } d131() e131() } OUTP("Bug 131: Writing to the reference immediately returned by Method") CH03(ts, z179, 0x062, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { a131() } case (2) { b131() } case (3) { c131() } case (4) { d131() } case (5) { e131() } } CH03(ts, z179, 0x063, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a131) { IIN0() ms1a(1) Return(POUT) } Method(b131) { IIN0() ms1a(2) Return(POUT) } Method(c131) { IIN0() ms1a(3) Return(POUT) } Method(d131) { IIN0() ms1a(4) Return(POUT) } Method(e131) { IIN0() ms1a(4) Return(POUT) } /* * Bug 132 issue: * * SUMMARY: The Read access automatic dereference for Index reference doesn't work */ Method(ms1b, 1, Serialized) { Name(ts, "ms1b") Method(m132, 2, Serialized) { Name(p000, Package(1) {0x77}) Method(m000, 2) { OUTP("m000 started") if (arg1) { Add(DerefOf(arg0), 1, Local7) } else { Add(arg0, 1, Local7) } CH03(ts, z179, 0x064, __LINE__, 0) OUTP("After Add") if (LNotEqual(Local7, 0x78)) { err(ts, z179, __LINE__, 0, 0, Local7, 0x78) } else { OUTP("Ok 0") } OUTP(Local7) if (arg1) { OUTP("Accessed with DerefOf properly!") } else { OUTP("Accessed without DerefOf properly!") } } OUTP("Bug 132: read access \"Automatic dereference\" for Index Reference") if (arg0) { OUTP("Transfer Index reference by LocalX:") Index(p000, 0, Local0) m000(Local0, arg1) } else { OUTP("Specify Index reference immediately:") m000(Index(p000, 0), arg1) } } Method(m000) { if (ABUU) { } else { m132(0, 0) } if (ABUU) { } else { m132(1, 0) } m132(0, 1) m132(1, 1) } CH03(ts, z179, 0x066, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { m132(0, 0) } case (2) { m132(1, 0) } case (3) { m132(0, 1) } case (4) { m132(1, 1) } } CH03(ts, z179, 0x067, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a132) { IIN0() ms1b(1) Return(POUT) } Method(b132) { IIN0() ms1b(2) Return(POUT) } Method(c132) { IIN0() ms1b(3) Return(POUT) } Method(d132) { IIN0() ms1b(4) Return(POUT) } /* * Bug 133 issue: * * SUMMARY: The Write access automatic dereference for Index reference doesn't work */ Method(ms1c, 1, Serialized) { Name(ts, "ms1c") Method(m133, 1, Serialized) { Name(i000, 0) Name(s000, "q_er0000") Name(b000, Buffer(4) {1,0,3,4}) Name(p000, Package(3) {5,0,7}) Method(m000, 1) { Store(0x77, arg0) } OUTP("Bug 133: WRITE access to the initial object by reference in ArgX") if (LEqual(arg0, 0)) { OUTP("Writing by RefOf reference to Integer") Store(RefOf(i000), Local0) m000(Local0) if (LNotEqual(i000, 0x77)) { err(ts, z179, __LINE__, 0, 0, i000, 0x77) } else { OUTP("Ok 0") } OUTP(i000) } elseif (LEqual(arg0, 1)) { OUTP("Writing by Index to String") Index(s000, 1, Local0) m000(Local0) Store(Derefof(Local0), Local1) if (LNotEqual(Local1, 0x77)) { err(ts, z179, __LINE__, 0, 0, Local1, 0x77) } else { OUTP("Ok 1") } OUTP(s000) } elseif (LEqual(arg0, 2)) { OUTP("Writing by Index to Buffer") Index(b000, 1, Local0) m000(Local0) Store(Derefof(Local0), Local1) if (LNotEqual(Local1, 0x77)) { err(ts, z179, __LINE__, 0, 0, Local1, 0x77) } else { OUTP("Ok 2") } OUTP(b000) } elseif (LEqual(arg0, 3)) { OUTP("Check Index of Package") Index(p000, 1, Local0) Store(DerefOf(Local0), Local1) if (LNotEqual(Local1, 0)) { err(ts, z179, __LINE__, 0, 0, Local1, 0) } else { OUTP("Ok 3") } OUTP(Local1) } elseif (LEqual(arg0, 4)) { OUTP("Writing by Index to Package") Index(p000, 1, Local0) m000(Local0) Store(DerefOf(Local0), Local1) if (LNotEqual(Local1, 0x77)) { err(ts, z179, __LINE__, 0, 0, Local1, 0x77) } else { OUTP("Ok 4") } OUTP(Local1) } } Method(m000) { m133(0) if (ABUU) { } else { m133(1) } m133(2) m133(3) m133(4) } CH03(ts, z179, 0x06d, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { m133(0) } case (2) { m133(1) } case (3) { m133(2) } case (4) { m133(3) } case (5) { m133(4) } } CH03(ts, z179, 0x06e, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a133) { IIN0() ms1c(1) Return(POUT) } Method(b133) { IIN0() ms1c(2) Return(POUT) } Method(c133) { IIN0() ms1c(3) Return(POUT) } Method(d133) { IIN0() ms1c(4) Return(POUT) } Method(e133) { IIN0() ms1c(5) Return(POUT) } /* * Bug 134 issue: * * SUMMARY: Writing RefOf reference from inside Method breaks effectively local Arg */ Method(ms1d, 1, Serialized) { Name(ts, "ms1d") Method(m134, 1, Serialized) { Name(i000, 0x11) Name(i001, 0x22) Name(i002, 0x33) Name(i003, 0x44) Name(i004, 0x55) Name(i005, 0x66) Name(i006, 0x77) Method(m000, 7) { OUTP("LocalX case of Method started:") Store(RefOf(i000), Local0) Store(Local0, Local1) Store(Local1, Local2) Store(Local2, Local3) Store(Local3, Local4) Store(Local4, Local5) Store(Local5, Local6) Store(0x88, Local6) if (LAnd(ABUU, LNot(q008))) { if (LNotEqual(i000, 0x88)) { err(ts, z179, __LINE__, 0, 0, i000, 0x88) } } elseif (LNotEqual(i000, 0x11)) { err(ts, z179, __LINE__, 0, 0, i000, 0x11) } else { if (LNotEqual(Local6, 0x88)) { err(ts, z179, __LINE__, 0, 0, Local6, 0x88) } else { OUTP("Ok 0:") } OUTP(Local6) } OUTP("LocalX case of Method finished") } Method(m001, 7) { OUTP("ArgX case of Method started:") Store(RefOf(i000), arg0) Store(arg0, arg1) Store(arg1, arg2) Store(arg2, arg3) Store(arg3, arg4) Store(arg4, arg5) Store(arg5, arg6) Store(0x88, arg6) if (LAnd(ABUU, LNot(q008))) { if (LNotEqual(i000, 0x88)) { err(ts, z179, __LINE__, 0, 0, i000, 0x88) } } elseif (LNotEqual(i000, 0x11)) { err(ts, z179, __LINE__, 0, 0, i000, 0x11) } else { if (LNotEqual(arg6, 0x88)) { err(ts, z179, __LINE__, 0, 0, arg6, 0x88) } else { OUTP("Ok 1:") } OUTP(arg6) } OUTP("ArgX case of Method finished") } Method(m002, 7) { OUTP("references in ArgX case of Method started:") Store(RefOf(i000), arg0) Store(arg0, arg1) Store(arg1, arg2) Store(arg2, arg3) Store(arg3, arg4) Store(arg4, arg5) Store(arg5, arg6) Store(0x88, arg6) if (LAnd(ABUU, LNot(q008))) { if (LNotEqual(i000, 0x88)) { err(ts, z179, __LINE__, 0, 0, i000, 0x88) } } elseif (LNotEqual(i000, 0x11)) { err(ts, z179, __LINE__, 0, 0, i000, 0x11) OUTP(i000) } else { Store(DerefOf(arg6), Local1) if (LNotEqual(Local1, 0x88)) { err(ts, z179, __LINE__, 0, 0, Local1, 0x88) } else { OUTP("Ok 1:") } OUTP(arg6) } OUTP("ArgX case of Method finished") } OUTP("Bug 134: ArgX term effectively becomes a LocalX term") if (LEqual(arg0, 0)) { m000(i000,i001,i002,i003,i004,i005,i006) } elseif (LEqual(arg0, 1)) { m001(i000,i001,i002,i003,i004,i005,i006) } elseif (LEqual(arg0, 2)) { m002(Refof(Local0),Refof(Local1),Refof(Local2),Refof(Local3),Refof(Local4), Refof(Local5),Refof(Local6)) } } Method(m000) { m134(0) m134(1) m134(2) } CH03(ts, z179, 0x075, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { m134(0) } case (2) { m134(1) } case (3) { m134(2) } } CH03(ts, z179, 0x076, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a134) { IIN0() ms1d(1) Return(POUT) } Method(b134) { IIN0() ms1d(2) Return(POUT) } Method(c134) { IIN0() ms1d(3) Return(POUT) } /* * Bug 136 issue: * * SUMMARY: CopyObject of named Buffer to the longer named Buffer works incorrectly */ Method(ms1e,, Serialized) { Name(ts, "ms1e") Method(m136,, Serialized) { Name(b000, Buffer(1){0x3c}) Name(b001, Buffer(3){0x01, 0x02, 0x03}) OUTP("Bug 136: CopyObject does not perform an implicit store") CopyObject(b000, b001) if (LEqual(b000, b001)) { OUTP("Ok") } else { err(ts, z179, __LINE__, 0, 0, b000, b001) } OUTP(b000) OUTP(b001) } CH03(ts, z179, 0x078, __LINE__, 0) m136() CH03(ts, z179, 0x079, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a136) { IIN0() ms1e() Return(POUT) } /* * Hot issue: * * Checks store of a Local Reference into the Package */ Method(ms1f, 1, Serialized) { Name(ts, "ms1f") Name(I999, 0) Name(PREF, Package(4) {0xa5a5a5a5, I999, I999}) Method(mlrp, 2) { Store(ObjectType(Arg0), Local0) Store(Arg0, Index(PREF, Arg1)) CH03(ts, z179, 0x07a, __LINE__, 0) Store(ObjectType(Index(PREF, Arg1)), Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local1, Local0) } } Method(mlr0) { OUTP("Store a Local Reference to Uninit Package element") Store("Local0", Local0) mlrp(Refof(Local0), 3) } Method(mlr1) { OUTP("Store a Local Reference to Integer Package element") Store("Local0", Local0) mlrp(Refof(Local0), 0) } Method(mlr2) { OUTP("Store a Local Reference to Reference Package element") Store("Local0", Local0) mlrp(Refof(Local0), 1) } Method(mlr3) { OUTP("Store a Integer to Reference Package element") Store("Local0", Local0) mlrp(3, 2) } Method(m000) { mlr0() mlr1() mlr2() mlr3() } CH03(ts, z179, 0x07c, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { mlr0() } case (2) { mlr1() } case (3) { mlr2() } case (4) { mlr3() } } CH03(ts, z179, 0x07d, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(alrp) { IIN0() ms1f(1) Return(POUT) } Method(blrp) { IIN0() ms1f(2) Return(POUT) } Method(clrp) { IIN0() ms1f(3) Return(POUT) } Method(dlrp) { IIN0() ms1f(4) Return(POUT) } Method(elrp) { IIN0() ms1f(0) Return(POUT) } /* * Hot issue: * * Forward reference within a control method */ Method(ms20, 1, Serialized) { Name(ts, "ms20") Name (Y, 2) Method(mfr0,, Serialized) { OUTP("Forward reference within a control method 0") Store (Y, Local0) if (LNotEqual(Local0, 2)) { err(ts, z179, __LINE__, 0, 0, Local0, 2) } Name (Y, 1) Store (Y, Local0) if (LNotEqual(Local0, 1)) { err(ts, z179, __LINE__, 0, 0, Local0, 1) } } Method(mfr1,, Serialized) { OUTP("Natural reference within a control method") Name (Y, 1) Store (^Y, Local0) if (LNotEqual(Local0, 2)) { err(ts, z179, __LINE__, 0, 0, Local0, 2) } Store (Y, Local0) if (LNotEqual(Local0, 1)) { err(ts, z179, __LINE__, 0, 0, Local0, 1) } } Method(mfr2,, Serialized) { OUTP("Forward reference within a control method 2") Store (^mfr2.Y, Local0) CH04(ts, 0, 0xff, z179, __LINE__, "^mfr2.Y", Local0) Name (Y, 1) Store (^mfr2.Y, Local0) if (LNotEqual(Local0, 1)) { err(ts, z179, __LINE__, 0, 0, Local0, 1) } } Method(mfr3,, Serialized) { OUTP("Forward reference within a control method 3") Name (Y, 1) Store (^mfr3.Y, Local0) if (LNotEqual(Local0, 1)) { err(ts, z179, __LINE__, 0, 0, Local0, 1) } } Method(m000) { mfr0() mfr1() if (ABUU) { } else { mfr2() } mfr3() } CH03(ts, z179, 0x085, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { mfr0() } case (2) { mfr1() } case (3) { mfr2() } case (4) { mfr3() } } CH03(ts, z179, 0x086, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(amfr) { IIN0() ms20(1) Return(POUT) } Method(bmfr) { IIN0() ms20(2) Return(POUT) } Method(cmfr) { IIN0() ms20(3) Return(POUT) } Method(dmfr) { IIN0() ms20(4) Return(POUT) } /* * Hot issue: AE_AML_METHOD_LIMIT * * Recursive Serialized method execution */ Method(ms21, 1, Serialized) { Name(ts, "ms21") Method(aact, 1, Serialized) { if (Arg0) { Return (Add(Arg0, aact(Subtract(Arg0, 1)))) } else { Return (0) } } Method(mac0) { OUTP("Recursive method execution aact(0)") OUTP(aact(0)) } Method(mac1) { OUTP("Recursive method execution aact(1)") OUTP(aact(1)) } Method(mac2) { OUTP("Recursive method execution aact(2)") OUTP(aact(2)) } Method(mac3) { OUTP("Recursive method execution aact(6)") OUTP(aact(6)) } Method(mac4) { OUTP("Recursive method execution aact(513)") OUTP(aact(513)) CH04(ts, 0, 0xff, z179, __LINE__, "recursion", 513) } Method(m000) { mac0() mac1() mac2() mac3() if (ABUU) { } else { mac4() } } CH03(ts, z179, 0x088, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { mac0() } case (2) { mac1() } case (3) { mac2() } case (4) { mac3() } case (5) { mac4() } } CH03(ts, z179, 0x089, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(arec) { IIN0() ms21(1) Return(POUT) } Method(brec) { IIN0() ms21(2) Return(POUT) } Method(crec) { IIN0() ms21(3) Return(POUT) } Method(drec) { IIN0() ms21(4) Return(POUT) } Method(erec) { IIN0() ms21(5) Return(POUT) } /* * Hot issue: * * Conditional reference within a control method */ Method(ms22, 1, Serialized) { Name(ts, "ms22") Name(iact, 0) Method(cact, 1, Serialized) { if (Arg0) { Name(iact, 0xffffffff) } Return (iact) } Method(m000) { OUTP("Conditional reference within a control method 0") OUTP("expected iact 0:") Store(cact(0), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } } Method(m001) { OUTP("Conditional reference within a control method 1") OUTP("expected iact 0xffffffff:") Store(cact(1), Local0) if (LNotEqual(Local0, 0xffffffff)) { err(ts, z179, __LINE__, 0, 0, Local0, 0xffffffff) } } CH03(ts, z179, 0x08c, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() m001() } case (1) { m000() } case (2) { m001() } } CH03(ts, z179, 0x08d, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(amcr) { IIN0() ms22(1) Return(POUT) } Method(bmcr) { IIN0() ms22(2) Return(POUT) } /* * Hot issue: * * Implicit return */ Method(ms23, 1, Serialized) { Name(ts, "ms23") Method(mir0,, Serialized) { Name(fl00, 0) Method(m001) { if (fl00) { Store(Add (0xabcd, 0), Local1) } elseif (0) { return (1) } } OUTP("Implicit return no operator") OUTP("An exception is expected: ...") Store(m001(), Local0) CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } Method(mir1,, Serialized) { Name(fl00, 1) Method(m001) { if (fl00) { Store(Add (0xabcd, 0), Local1) } else { return (1) } } OUTP("Implicit return after Add") OUTP("0xabcd expected: ...") Store(m001(), Local0) if (SLCK) { if (CH03(ts, z179, 0x08f, __LINE__, 0)) {return} if (LNotEqual(Local0, 0xabcd)) { err(ts, z179, __LINE__, 0, 0, Local0, 0xabcd) } } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } Method(mir2,, Serialized) { Name(fl00, 0) Method(m001) { if (fl00) { Return (0xabce) } elseif (0) { return (1) } } OUTP("Implicit return no operator 2") OUTP("An exception is expected: ...") Store(m001(), Local0) CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } Method(mir3,, Serialized) { Name(fl00, 1) Method(m001) { if (fl00) { Return (0xabce) } else { return (1) } } OUTP("Explicit return conditionally") OUTP("0xabce expected: ...") Store(m001(), Local0) if (SLCK) { if (CH03(ts, z179, 0x093, __LINE__, 0)) {return} if (LNotEqual(Local0, 0xabce)) { err(ts, z179, __LINE__, 0, 0, Local0, 0xabce) } } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } Method(mir4,, Serialized) { Name(fl00, 0) Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Method(m000, 0, Serialized) { Switch (ToInteger (Store(0xabcd000f, i001))) { Case (0) { if (fl00) { Return (0) } } } } OUTP("Implicit return on Switch") Store(0xdddd9000, i000) Store(m000, i000) if (SLCK) { if (CH03(ts, z179, 0x096, __LINE__, 0)) {return} //y901: Predicate generates Implicit Return since ACPICA release 20080926 if (y901) { Store(0, Local0) } else { Store(0xabcd000f, Local0) } if (LNotEqual(i000, Local0)) { err(ts, z179, __LINE__, 0, 0, i000, Local0) } } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } Method(mir5,, Serialized) { Name(fl00, 0) Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Method(m000) { if (Store(0xabcd000d, i001)) { if (fl00) { Return (0) } } } OUTP("Implicit return on If") Store(0xdddd9000, i000) Store(m000, i000) if (SLCK) { if (CH03(ts, z179, 0x099, __LINE__, 0)) {return} //y901: Predicate generates Implicit Return since ACPICA release 20080926 if (y901) { Store(0, Local0) } else { Store(0xabcd000d, Local0) } if (LNotEqual(i000, Local0)) { err(ts, z179, __LINE__, 0, 0, i000, Local0) } } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } Method(mir6,, Serialized) { Name(fl00, 0) Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Method(m000) { While (Store(0xabcd000e, i001)) { if (fl00) { Return (0) } Break } } OUTP("Implicit return on While") Store(0xdddd9000, i000) Store(m000, i000) if (SLCK) { if (CH03(ts, z179, 0x09c, __LINE__, 0)) {return} //y901: Predicate generates Implicit Return since ACPICA release 20080926 if (y901) { Store(0, Local0) } else { Store(0xabcd000e, Local0) } if (LNotEqual(i000, Local0)) { err(ts, z179, __LINE__, 0, 0, i000, Local0) } } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } Method(m000) { mir0() mir1() mir2() mir3() if (ABUU) { } else { mir4() } if (ABUU) { } else { mir5() } if (ABUU) { } else { mir6() } } CH03(ts, z179, 0x09f, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { mir0() } case (2) { mir1() } case (3) { mir2() } case (4) { mir3() } case (5) { mir4() } case (6) { mir5() } case (7) { mir6() } } CH03(ts, z179, 0x0a0, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(amir) { IIN0() ms23(1) Return(POUT) } Method(bmir) { IIN0() ms23(2) Return(POUT) } Method(cmir) { IIN0() ms23(3) Return(POUT) } Method(dmir) { IIN0() ms23(4) Return(POUT) } Method(emir) { IIN0() ms23(5) Return(POUT) } Method(fmir) { IIN0() ms23(6) Return(POUT) } Method(gmir) { IIN0() ms23(7) Return(POUT) } /* * Hot issue: * * Increment/Decrement with String/Buffer */ Method(ms24,, Serialized) { Name(ts, "ms24") Method(mmid,, Serialized) { Name(s000, "0321") Name(s001, "0321") Name(b000, Buffer(3){0x21, 0x03, 0x00}) Name(b001, Buffer(3){0x21, 0x03, 0x00}) OUTP("Increment/Decrement with String/Buffer") OUTP(s000) OUTP(s001) Subtract(s000, 1, s000) Decrement(s001) Store(ObjectType(s000), Local0) Store(ObjectType(s001), Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } elseif (LNotEqual(s000, s001)) { err(ts, z179, __LINE__, 0, 0, s000, s001) } else { OUTP("Ok Subtract/Decrement for String") } OUTP("======") OUTP(b000) OUTP(b001) Add(b000, 1, b000) Increment(b001) Store(ObjectType(b000), Local0) Store(ObjectType(b001), Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } elseif (LNotEqual(b000, b001)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } else { OUTP("Ok Add/Increment for Buffer") } } CH03(ts, z179, 0x0a5, __LINE__, 0) mmid() CH03(ts, z179, 0x0a6, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(amid) { IIN0() ms24() Return(POUT) } /* * Hot issue: * * Check Store(..., DeRefof(...)) behavior */ Method(ms25, 1, Serialized) { Name(ts, "ms25") Method(msd0,, Serialized) { Name(i000, 0xffffffff) Name(i001, 0x12345678) OUTP("Check Store(..., DeRefof(...)) behavior: none DeRefof") Store(i001, Refof(i000)) CH03(ts, z179, 0x0a7, __LINE__, 0) if (LNotEqual(i000, 0x12345678)) { err(ts, z179, __LINE__, 0, 0, i000, 0x12345678) } } Method(msd1,, Serialized) { Name(i000, 0xffffffff) Name(i001, 0x12345678) OUTP("Check Store(..., DeRefof(...)) behavior: Refof(Named)") Store(i001, DeRefof(Refof(i000))) CH03(ts, z179, 0x0a9, __LINE__, 0) if (LNotEqual(i000, 0x12345678)) { err(ts, z179, __LINE__, 0, 0, i000, 0x12345678) } } Method(msd2,, Serialized) { Name(i000, 0xffffffff) Name(i001, 0x12345678) OUTP("Check Store(..., DeRefof(...)) behavior: Refof in LocalX") Store(Refof(i000), Local2) Store(i001, DeRefof(Local2)) CH03(ts, z179, 0x0ab, __LINE__, 0) if (LNotEqual(i000, 0x12345678)) { err(ts, z179, __LINE__, 0, 0, i000, 0x12345678) } } Method(msd3,, Serialized) { Name(i000, 0xffffffff) Name(i001, 0x12345678) OUTP("Check Store(..., DeRefof(...)) behavior: DeRefof(2xRefof)") Store(Refof(i000), Local1) Store(Refof(Local1), Local2) Store(i001, DeRefof(Local2)) CH03(ts, z179, 0x0ad, __LINE__, 0) if (LNotEqual(i000, 0xffffffff)) { err(ts, z179, __LINE__, 0, 0, i000, 0xffffffff) } Store(Derefof(Local1), Local4) if (CH04(ts, 0, 0xff, z179, __LINE__, 0, 0)) { } elseif (LNotEqual(Local1, 0x12345678)) { err(ts, z179, __LINE__, 0, 0, Local1, 0x12345678) } } CH03(ts, z179, 0x0b1, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { msd0() msd1() msd2() msd3() } case (1) { msd0() } case (2) { msd1() } case (3) { msd2() } case (4) { msd3() } } CH03(ts, z179, 0x0b2, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(amsd) { IIN0() ms25(1) Return(POUT) } Method(bmsd) { IIN0() ms25(2) Return(POUT) } Method(cmsd) { IIN0() ms25(3) Return(POUT) } Method(dmsd) { IIN0() ms25(4) Return(POUT) } // Video memory address to maintain SystemMemory OpRegions // Name(VMEM, 0xA0000) // VGA memory // Name(VMEM, 0xF0000000) // T22 Savage3 // Name(VMEM, 0xD0000000) // IntelliStation Z Pro NVidia Name(VMEM, 0xA0000) // VGA memory // SystemMemory OpRegions base address is maintained flag Name(SMBA, 1) /* * Hot issue: * * Exceeding Field Unit */ Method(ms26, 1, Serialized) { Name(ts, "ms26") OperationRegion(OPR0, SystemMemory, VMEM, 256) Method(rfu0,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { g001, 0x80, } Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x8), FU01, 8, } OUTP("Store Integer exceeding Field Unit") Store(0, g001) Store(FU01, Local0) Store(0, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x5a, FU01) Store(FU01, Local0) Store(0x5a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x3c69, FU01) Store(FU01, Local0) Store(0x69, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(rfu1,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { g001, 0x80, } Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x8), FU01, 8, } OUTP("Store Buffer exceeding Field Unit") Store(0, g001) Store(FU01, Local0) Store(0, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x5a, FU01) Store(FU01, Local0) Store(0x5a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(Buffer(){0x3c, 0x69}, FU01) Store(FU01, Local0) Store(0x3c, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x69, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(rfu2,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { g001, 0x80, } Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x8), FU01, 8, } OUTP("Store String exceeding Field Unit") Store(0, g001) Store(FU01, Local0) Store(0, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x5a, FU01) Store(FU01, Local0) Store(0x5a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store("79", FU01) Store(FU01, Local0) Store(0x37, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x39, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(rfu3,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { g001, 0x80, } Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x8), FU01, 6, FU02, 2 } OUTP("Store Buffer exceeding 6-bit Field Unit") Store(0, g001) Store(FU01, Local0) Store(0, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x5a, FU01) Store(FU01, Local0) Store(0x1a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(Buffer(){0x7c, 0x69}, FU01) Store(FU01, Local0) Store(0x3c, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x29, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(FU02, Local0) Store(0, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x01, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(rfu4,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { g001, 0x80, } Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x8), FU01, 6, FU02, 2 } OUTP("Store String exceeding 6-bit Field Unit") Store(0, g001) Store(FU01, Local0) Store(0, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x5a, FU01) Store(FU01, Local0) Store(0x1a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store("79", FU01) Store(FU01, Local0) Store(0x37, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x39, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(FU02, Local0) Store(0, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x01, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(rfu5,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { g001, 0x80, } Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x8), FU01, 10, FU02, 6 } OUTP("Store Buffer exceeding 10-bit Field Unit") Store(0, g001) Store(FU01, Local0) Store(0, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x5a, FU01) Store(FU01, Local0) Store(0x5a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(Buffer(){0x3c, 0x69}, FU01) Store(FU01, Local0) Store(0x13c, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(FU02, Local0) Store(0, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x1a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(rfu6,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { g001, 0x80, } Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x8), FU01, 10, FU02, 6 } OUTP("Store String exceeding 10-bit Field Unit") Store(0, g001) Store(FU01, Local0) Store(0, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x5a, FU01) Store(FU01, Local0) Store(0x5a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store("79", FU01) Store(FU01, Local0) Store(0x137, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(FU02, Local0) Store(0, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x0e, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(rfu7,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { g001, 0x80, } Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x8), FU01, 10, FU02, 6 } OUTP("Store 3-byte Buffer exceeding 10-bit Field Unit") Store(0, g001) Store(FU01, Local0) Store(0, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x5a, FU01) Store(FU01, Local0) Store(0x5a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(Buffer(){0x3c, 0x69, 0xa5}, FU01) Store(FU01, Local0) Store(0x13c, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0xa5, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(FU02, Local0) Store(0, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x1a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(rfu8,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { g001, 0x80, } Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x8), FU01, 10, FU02, 6 } OUTP("Store 3-char String exceeding 10-bit Field Unit") Store(0, g001) Store(FU01, Local0) Store(0, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(0x5a, FU01) Store(FU01, Local0) Store(0x5a, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store("795", FU01) Store(FU01, Local0) Store(0x137, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x35, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } Store(FU02, Local0) Store(0, Local1) if (LAnd(ABUU, LNot(q009))) { Store(0x0e, Local1) if (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } elseif (LNotEqual(Local0, Local1)) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(m000) { rfu0() rfu1() rfu2() rfu3() rfu4() rfu5() rfu6() rfu7() rfu8() } CH03(ts, z179, 0x0d4, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { rfu0() } case (2) { rfu1() } case (3) { rfu2() } case (4) { rfu3() } case (5) { rfu4() } case (6) { rfu5() } case (7) { rfu6() } case (8) { rfu7() } case (9) { rfu8() } } CH03(ts, z179, 0x0d5, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(arfu) { IIN0() ms26(1) Return(POUT) } Method(brfu) { IIN0() ms26(2) Return(POUT) } Method(crfu) { IIN0() ms26(3) Return(POUT) } Method(drfu) { IIN0() ms26(4) Return(POUT) } Method(erfu) { IIN0() ms26(5) Return(POUT) } Method(frfu) { IIN0() ms26(6) Return(POUT) } Method(grfu) { IIN0() ms26(7) Return(POUT) } Method(hrfu) { IIN0() ms26(8) Return(POUT) } Method(irfu) { IIN0() ms26(9) Return(POUT) } /* * Hot issue: * * Check IndexField implementation */ Method(ms27, 1, Serialized) { Name(ts, "ms27") OperationRegion(OPR0, SystemMemory, VMEM, 256) Field(OPR0, ByteAcc, NoLock, Preserve) { tot0, 32, tot1, 32, } Method(ifd0,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx1, 4, dta1, 3, } IndexField(idx1, dta1, ByteAcc, NoLock, WriteAsZeros) { re10, 3, re11, 3, re12, 3, re13, 3, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(Ones, ^re10)} Case (1) {Store(Ones, ^re11)} Case (2) {Store(Ones, ^re12)} Case (3) {Store(Ones, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField ByteAcc 4-3 Ones write 3-3-3-3") TRY0(0, 0, 0x7) TRY0(1, 0, 0x0) Store(0x1, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x07, Local0) } TRY0(2, 0, Local0) TRY0(3, 0, 0x06) } Method(ifd1,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx1, 8, dta1, 8, } IndexField(idx1, dta1, ByteAcc, NoLock, WriteAsZeros) { re10, 8, re11, 8, re12, 8, re13, 8, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(0x12345678, ^re10)} Case (1) {Store(0x12345678, ^re11)} Case (2) {Store(0x12345678, ^re12)} Case (3) {Store(0x12345678, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField ByteAcc 0x12345678 write 8-8-8-8") TRY0(0, 0, 0x78) TRY0(1, 1, 0x78) TRY0(2, 2, 0x78) TRY0(3, 3, 0x78) } Method(ifd2,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx1, 8, dta1, 8, } IndexField(idx1, dta1, ByteAcc, NoLock, WriteAsZeros) { , 7, re10, 1, re11, 1, Offset(2), re12, 4, re13, 4, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(Ones, ^re10)} Case (1) {Store(Ones, ^re11)} Case (2) {Store(Ones, ^re12)} Case (3) {Store(Ones, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField ByteAcc Ones write Offset (0:7)1-(1:0)1-(2:0)4-4") TRY0(0, 0, 0x80) Store(0x01, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0xff, Local0) } TRY0(1, 1, Local0) Store(0x0f, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0xff, Local0) } TRY0(2, 2, Local0) TRY0(3, 2, 0xf0) } Method(ifd3,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx1, 8, dta1, 8, } IndexField(idx1, dta1, ByteAcc, NoLock, WriteAsZeros) { Offset(1), re10, 8, Offset(2), re11, 8, Offset(7), re12, 8, Offset(16), re13, 8, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(0x12345678, ^re10)} Case (1) {Store(0x12345678, ^re11)} Case (2) {Store(0x12345678, ^re12)} Case (3) {Store(0x12345678, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField ByteAcc 0x12345678 write Offset (1:0)8-(2:0)8-(7:0)8-(16:0)8") TRY0(0, 1, 0x78) TRY0(1, 2, 0x78) TRY0(2, 7, 0x78) TRY0(3, 16, 0x78) } CH03(ts, z179, 0x0e6, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { ifd0() ifd1() ifd2() ifd3() } case (1) { ifd0() } case (2) { ifd1() } case (3) { ifd2() } case (4) { ifd3() } } CH03(ts, z179, 0x0e7, __LINE__, 0) } Method(mt27, 1, Serialized) { Name(ts, "mt27") OperationRegion(OPR0, SystemMemory, VMEM, 256) Field(OPR0, ByteAcc, NoLock, Preserve) { tot0, 32, tot1, 32, } Method(ifd4,, Serialized) { Field(OPR0, WordAcc, NoLock, WriteAsZeros) { idx1, 16, dta1, 16, } IndexField(idx1, dta1, WordAcc, NoLock, WriteAsZeros) { re10, 8, re11, 8, re12, 8, re13, 8, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(0x12345678, ^re10)} Case (1) {Store(0x12345678, ^re11)} Case (2) {Store(0x12345678, ^re12)} Case (3) {Store(0x12345678, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField WordAcc Ones write 8-8-8-8") Store(0x0078, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x5678, Local0) } TRY0(0, 0, Local0) TRY0(1, 0, 0x7800) Store(0x0078, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x5678, Local0) } TRY0(2, 2, Local0) TRY0(3, 2, 0x7800) } Method(ifd5,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx1, 8, dta1, 8, } IndexField(idx1, dta1, ByteAcc, NoLock, WriteAsZeros) { , 1, re10, 8, , 1, re11, 8, , 1, re12, 8, , 1, re13, 8, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(Ones, ^re10)} Case (1) {Store(Ones, ^re11)} Case (2) {Store(Ones, ^re12)} Case (3) {Store(Ones, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField ByteAcc Ones write (:1)8-(:1)8-(:1)8-(:1)8") TRY0(0, 1, 0x1) TRY0(1, 2, 0x3) TRY0(2, 3, 0x7) TRY0(3, 4, 0xf) } Method(ifd6,, Serialized) { Field(OPR0, DWordAcc, NoLock, WriteAsZeros) { idx1, 32, dta1, 32, } IndexField(idx1, dta1, DWordAcc, NoLock, WriteAsZeros) { re10, 8, re11, 8, re12, 8, re13, 8, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) Store(Zero, tot1) switch (ToInteger (Arg0)) { Case (0) {Store(Ones, ^re10)} Case (1) {Store(Ones, ^re11)} Case (2) {Store(Ones, ^re12)} Case (3) {Store(Ones, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField DWordAcc Ones write 8-8-8-8") Store(0xff, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0xffffffff, Local0) } TRY0(0, 0, Local0) Store(0xff00, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0xffffff00, Local0) } TRY0(1, 0, Local0) Store(0xff0000, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0xffff0000, Local0) } TRY0(2, 0, Local0) TRY0(3, 0, 0xff000000) } Method(ifd7,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx1, 8, dta1, 8, } IndexField(idx1, dta1, ByteAcc, NoLock, WriteAsZeros) { , 2, re10, 7, , 2, re11, 7, , 2, re12, 7, , 2, re13, 7, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(Ones, ^re10)} Case (1) {Store(Ones, ^re11)} Case (2) {Store(Ones, ^re12)} Case (3) {Store(Ones, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField ByteAcc Ones write (:2)7-(:2)7-(:2)7-(:2)7") Store(0x1, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x3, Local0) } TRY0(0, 1, Local0) Store(0x3, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x7, Local0) } TRY0(1, 2, Local0) Store(0x7, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0xf, Local0) } TRY0(2, 3, Local0) Store(0xf, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x1f, Local0) } TRY0(3, 4, Local0) } CH03(ts, z179, 0x0e8, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { ifd4() ifd5() ifd6() ifd7() } case (5) { ifd4() } case (6) { ifd5() } case (7) { ifd6() } case (8) { ifd7() } } CH03(ts, z179, 0x0e9, __LINE__, 0) } Method(mu27, 1, Serialized) { Name(ts, "mu27") OperationRegion(OPR0, SystemMemory, VMEM, 256) Field(OPR0, ByteAcc, NoLock, Preserve) { tot0, 32, tot1, 32, } Method(ifd8,, Serialized) { Field(OPR0, DWordAcc, NoLock, WriteAsZeros) { idx1, 32, dta1, 32, } IndexField(idx1, dta1, DWordAcc, NoLock, WriteAsZeros) { Offset(1), re10, 8, Offset(4), re11, 8, Offset(9), re12, 8, Offset(12), re13, 8, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) Store(Zero, tot1) switch (ToInteger (Arg0)) { Case (0) {Store(0x12345678, ^re10)} Case (1) {Store(0x12345678, ^re11)} Case (2) {Store(0x12345678, ^re12)} Case (3) {Store(0x12345678, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField DWordAcc 0x12345678 write Offset (1)8-(4)8-(9)8-(12)8") Store(0x7800, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x34567800, Local0) } TRY0(0, 0, Local0) Store(0x78, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x12345678, Local0) } TRY0(1, 4, Local0) Store(0x7800, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x34567800, Local0) } TRY0(2, 8, Local0) Store(0x78, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x12345678, Local0) } TRY0(3, 12, Local0) } Method(ifd9,, Serialized) { Field(OPR0, WordAcc, NoLock, WriteAsZeros) { idx1, 16, dta1, 16, } IndexField(idx1, dta1, WordAcc, NoLock, WriteAsZeros) { Offset(1), re10, 8, Offset(4), re11, 8, Offset(9), re12, 8, Offset(12), re13, 8, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(0x12345678, ^re10)} Case (1) {Store(0x12345678, ^re11)} Case (2) {Store(0x12345678, ^re12)} Case (3) {Store(0x12345678, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField WordAcc 0x12345678 write Offset (1)8-(4)8-(9)8-(12)8") TRY0(0, 0, 0x7800) Store(0x78, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x5678, Local0) } TRY0(1, 4, Local0) TRY0(2, 8, 0x7800) Store(0x78, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x5678, Local0) } TRY0(3, 12, Local0) } Method(ifda,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx1, 16, dta1, 16, } IndexField(idx1, dta1, ByteAcc, NoLock, WriteAsZeros) { Offset(1), re10, 8, Offset(4), re11, 8, Offset(9), re12, 8, Offset(12), re13, 8, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(0x12345678, ^re10)} Case (1) {Store(0x12345678, ^re11)} Case (2) {Store(0x12345678, ^re12)} Case (3) {Store(0x12345678, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField ByteAcc 0x12345678 write Offset (1)8-(4)8-(9)8-(12)8") TRY0(0, 1, 0x78) TRY0(1, 4, 0x78) TRY0(2, 9, 0x78) TRY0(3, 12, 0x78) } Method(ifdb,, Serialized) { Field(OPR0, AnyAcc, NoLock, WriteAsZeros) { idx1, 16, dta1, 16, } IndexField(idx1, dta1, AnyAcc, NoLock, WriteAsZeros) { Offset(1), re10, 8, Offset(4), re11, 8, Offset(9), re12, 8, Offset(12), re13, 8, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(0x12345678, ^re10)} Case (1) {Store(0x12345678, ^re11)} Case (2) {Store(0x12345678, ^re12)} Case (3) {Store(0x12345678, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField AnyAcc 0x12345678 write Offset (1)8-(4)8-(9)8-(12)8") TRY0(0, 1, 0x78) TRY0(1, 4, 0x78) TRY0(2, 9, 0x78) TRY0(3, 12, 0x78) } CH03(ts, z179, 0x0ea, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { ifd8() ifd9() ifda() ifdb() } case (9) { ifd8() } case (10) { ifd9() } case (11) { ifda() } case (12) { ifdb() } } CH03(ts, z179, 0x0eb, __LINE__, 0) } Method(mv27, 1, Serialized) { Name(ts, "mv27") OperationRegion(OPR0, SystemMemory, VMEM, 256) Field(OPR0, ByteAcc, NoLock, Preserve) { tot0, 32, tot1, 32, } Method(ifdc,, Serialized) { Field(OPR0, WordAcc, NoLock, WriteAsZeros) { idx0, 16, dta0, 16, } IndexField(idx0, dta0, WordAcc, NoLock, WriteAsZeros) { idf0, 8, Offset(3), idf1, 8, Offset(6), idf2, 8, Offset(11), idf3, 8, } Method(TRY0, 4) { Store(idx0, Local0) Store(dta0, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField WordAcc read") Store(0x1234ffff, tot0) TRY0(0, 0, 0x1234, idf0) Store(0x5678ffff, tot0) TRY0(2, 2, 0x5678, idf1) Store(0x9abcffff, tot0) TRY0(3, 6, 0x9abc, idf2) Store(0xde01ffff, tot0) TRY0(4, 10, 0xde01, idf3) } Method(TRY4, 5) { Method(TRY0, 3) { Store(arg0, tot0) Store(Derefof(arg1), Local0) Store(tot0, Local1) Store(DeRefof(Index(arg2, 0)), Local2) Store(DeRefof(Index(arg2, 1)), Local3) Store(DeRefof(Index(arg2, 2)), Local4) Add(0x140, Multiply(Local2, 2), Local2) if (LNotEqual(Local0, Local3)) { err(ts, z179, __LINE__, 0, 0, Local0, Local3) } if (LNotEqual(Local1, Local4)) { err(ts, z179, __LINE__, 0, 0, Local1, Local4) } } Store(DeRefof(Index(arg0, 0)), Local0) TRY0(Local0, arg1, DeRefof(Index(arg0, 1))) TRY0(Local0, arg2, DeRefof(Index(arg0, 2))) TRY0(Local0, arg3, DeRefof(Index(arg0, 3))) TRY0(Local0, arg4, DeRefof(Index(arg0, 4))) } Method(ifdd,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { idx1, 8, dta1, 8, } IndexField(idx1, dta1, ByteAcc, NoLock, Preserve) { , 4, re10, 1, re11, 1, re12, 3, re13, 3, } OUTP("Check IndexField implementation ByteAcc 4,1-1-3-3") Store(Package(){0xa5a5a5a5, Package(){0, 0x0, 0xa5a5a500}, Package(){1, 0x1, 0xa5a5a500}, Package(){2, 0x6, 0xa5a5a501}, Package(){3, 0x2, 0xa5a5a501},}, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x96, Index(DeRefof(Index(Local0, 3)), 1)) } TRY4(Local0, Refof(re10), Refof(re11), Refof(re12), Refof(re13)) Store(Package(){0x5a5a5a5a, Package(){4, 0x1, 0x5a5a5a00}, Package(){5, 0x0, 0x5a5a5a00}, Package(){6, 0x1, 0x5a5a5a01}, Package(){7, 0x5, 0x5a5a5a01},}, Local0) if (LAnd(ABUU, LNot(q00a))) { Store(0x169, Index(DeRefof(Index(Local0, 3)), 1)) } TRY4(Local0, Refof(re10), Refof(re11), Refof(re12), Refof(re13)) } Method(ifde,, Serialized) { Field(OPR0, WordAcc, NoLock, Preserve) { idx1, 16, dta1, 16, } IndexField(idx1, dta1, WordAcc, NoLock, Preserve) { , 4, re10, 1, re11, 1, re12, 3, re13, 3, } OUTP("Check IndexField implementation WordAcc 4,1-1-3-3") Store(Package(){0xa5a5a5a5, Package(){8, 0x0, 0xa5a50000}, Package(){9, 0x1, 0xa5a50000}, Package(){10, 0x6, 0xa5a50000}, Package(){11, 0x2, 0xa5a50000},}, Local0) TRY4(Local0, Refof(re10), Refof(re11), Refof(re12), Refof(re13)) Store(Package(){0x5a5a5a5a, Package(){12, 0x1, 0x5a5a0000}, Package(){13, 0x0, 0x5a5a0000}, Package(){14, 0x1, 0x5a5a0000}, Package(){15, 0x5, 0x5a5a0000},}, Local0) TRY4(Local0, Refof(re10), Refof(re11), Refof(re12), Refof(re13)) } Method(ifdf,, Serialized) { Field(OPR0, ByteAcc, NoLock, Preserve) { idx1, 8, dta1, 8, } IndexField(idx1, dta1, ByteAcc, NoLock, Preserve) { , 7, re10, 1, re11, 1, Offset(2), re12, 4, re13, 4, } OUTP("Check IndexField implementation ByteAcc 7,1-1,O2,4-4") Store(Package(){0xa5a5a5a5, Package(){16, 0x1, 0xa5a5a500}, Package(){17, 0x1, 0xa5a5a501}, Package(){18, 0x5, 0xa5a5a502}, Package(){19, 0xa, 0xa5a5a502},}, Local0) TRY4(Local0, Refof(re10), Refof(re11), Refof(re12), Refof(re13)) Store(Package(){0x5a5a5a5a, Package(){20, 0x0, 0x5a5a5a00}, Package(){21, 0x0, 0x5a5a5a01}, Package(){22, 0xa, 0x5a5a5a02}, Package(){23, 0x5, 0x5a5a5a02},}, Local0) TRY4(Local0, Refof(re10), Refof(re11), Refof(re12), Refof(re13)) } CH03(ts, z179, 0x0ec, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { ifdc() ifdd() ifde() ifdf() } case (13) { ifdc() } case (14) { ifdd() } case (15) { ifde() } case (16) { ifdf() } } CH03(ts, z179, 0x0ed, __LINE__, 0) } Method(mw27, 1, Serialized) { Name(ts, "mw27") OperationRegion(OPR0, SystemMemory, VMEM, 256) Field(OPR0, ByteAcc, NoLock, Preserve) { tot0, 32, tot1, 32, } Method(ife0,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 16, dta0, 16, } IndexField(idx0, dta0, ByteAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 5) { Store(arg0, tot0) Store(Derefof(arg1), Local0) Store(tot0, Local1) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } } OUTP("Check IndexField implementation: ByteAcc2") m000(0x0001ffff, Refof(idf0), 0x150, 0x1, 0x00010000) m000(0x0080ffff, Refof(idf1), 0x152, 0x1, 0x00800000) m000(0x0001ffff, Refof(idf2), 0x154, 0x1, 0x00010001) m000(0x0080ffff, Refof(idf3), 0x156, 0x1, 0x00800001) m000(0x0001ffff, Refof(idf4), 0x158, 0x1, 0x00010002) m000(0x0080ffff, Refof(idf5), 0x15a, 0x1, 0x00800002) m000(0x0001ffff, Refof(idf6), 0x15c, 0x1, 0x00010003) m000(0x0080ffff, Refof(idf7), 0x15e, 0x1, 0x00800003) } Method(ife1,, Serialized) { Field(OPR0, WordAcc, NoLock, WriteAsZeros) { idx0, 16, dta0, 16, } IndexField(idx0, dta0, ByteAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 5) { Store(arg0, tot0) Store(Derefof(arg1), Local0) Store(tot0, Local1) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } } OUTP("Check IndexField implementation: WordAccByteAcc") m000(0x0001ffff, Refof(idf0), 0x160, 0x1, 0x00010000) m000(0x0080ffff, Refof(idf1), 0x162, 0x1, 0x00800000) m000(0x0001ffff, Refof(idf2), 0x164, 0x1, 0x00010001) m000(0x0080ffff, Refof(idf3), 0x166, 0x1, 0x00800001) m000(0x0001ffff, Refof(idf4), 0x168, 0x1, 0x00010002) m000(0x0080ffff, Refof(idf5), 0x16a, 0x1, 0x00800002) m000(0x0001ffff, Refof(idf6), 0x16c, 0x1, 0x00010003) m000(0x0080ffff, Refof(idf7), 0x16e, 0x1, 0x00800003) } Method(ife2,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 16, dta0, 16, } IndexField(idx0, dta0, WordAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 5) { Store(arg0, tot0) Store(Derefof(arg1), Local0) Store(tot0, Local1) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } } OUTP("Check IndexField implementation: ByteAccWordAcc") m000(0x0001ffff, Refof(idf0), 0x170, 0x1, 0x00010000) m000(0x0080ffff, Refof(idf1), 0x172, 0x1, 0x00800000) m000(0x0001ffff, Refof(idf2), 0x174, 0x0, 0x00010000) m000(0x0080ffff, Refof(idf3), 0x176, 0x0, 0x00800000) m000(0x0001ffff, Refof(idf4), 0x178, 0x1, 0x00010002) m000(0x0080ffff, Refof(idf5), 0x17a, 0x1, 0x00800002) m000(0x0001ffff, Refof(idf6), 0x17c, 0x0, 0x00010002) m000(0x0080ffff, Refof(idf7), 0x17e, 0x0, 0x00800002) } Method(ife3,, Serialized) { Field(OPR0, WordAcc, NoLock, WriteAsZeros) { idx0, 16, dta0, 16, } IndexField(idx0, dta0, WordAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 5) { Store(arg0, tot0) Store(Derefof(arg1), Local0) Store(tot0, Local1) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } } OUTP("Check IndexField implementation: WordAcc2") m000(0x0001ffff, Refof(idf0), 0x180, 0x1, 0x00010000) m000(0x0080ffff, Refof(idf1), 0x182, 0x1, 0x00800000) m000(0x0001ffff, Refof(idf2), 0x184, 0x0, 0x00010000) m000(0x0080ffff, Refof(idf3), 0x186, 0x0, 0x00800000) m000(0x0001ffff, Refof(idf4), 0x188, 0x1, 0x00010002) m000(0x0080ffff, Refof(idf5), 0x18a, 0x1, 0x00800002) m000(0x0001ffff, Refof(idf6), 0x18c, 0x0, 0x00010002) m000(0x0080ffff, Refof(idf7), 0x18e, 0x0, 0x00800002) } CH03(ts, z179, 0x0ee, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { ife0() ife1() ife2() ife3() } case (17) { ife0() } case (18) { ife1() } case (19) { ife2() } case (20) { ife3() } } CH03(ts, z179, 0x0ef, __LINE__, 0) } Method(mx27, 1, Serialized) { Name(ts, "mx27") OperationRegion(OPR0, SystemMemory, VMEM, 256) Field(OPR0, ByteAcc, NoLock, Preserve) { tot0, 32, tot1, 32, } Method(ife4,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 16, dta0, 4, } IndexField(idx0, dta0, ByteAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 5) { Store(arg0, tot0) Store(Derefof(arg1), Local0) Store(tot0, Local1) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } } OUTP("Check IndexField implementation: ByteAcc2, dta0:4") m000(0x0001ffff, Refof(idf0), 0x190, 0x1, 0x00010000) m000(0xffffffff, Refof(idf1), 0x192, 0x0, 0xffff0000) m000(0x0001ffff, Refof(idf2), 0x194, 0x1, 0x00010001) m000(0xffffffff, Refof(idf3), 0x196, 0x0, 0xffff0001) m000(0x0001ffff, Refof(idf4), 0x198, 0x1, 0x00010002) m000(0xffffffff, Refof(idf5), 0x19a, 0x0, 0xffff0002) m000(0x0001ffff, Refof(idf6), 0x19c, 0x1, 0x00010003) m000(0xffffffff, Refof(idf7), 0x19e, 0x0, 0xffff0003) } Method(ife5,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 8, dta0, 8, } IndexField(idx0, dta0, WordAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 5) { Store(arg0, tot0) Store(Derefof(arg1), Local0) Store(tot0, Local1) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } } OUTP("Check IndexField implementation: ByteAccWordAcc, idx0, 8, dta0, 8") m000(0x000001ff, Refof(idf0), 0x1a0, 0x1, 0x00000100) m000(0x000080ff, Refof(idf1), 0x1a2, 0x1, 0x00008000) m000(0xffffffff, Refof(idf2), 0x1a4, 0x0, 0xffffff00) m000(0xffffffff, Refof(idf3), 0x1a6, 0x0, 0xffffff00) m000(0x000001ff, Refof(idf4), 0x1a8, 0x1, 0x00000102) m000(0x000080ff, Refof(idf5), 0x1aa, 0x1, 0x00008002) m000(0xffffffff, Refof(idf6), 0x1ac, 0x0, 0xffffff02) m000(0xffffffff, Refof(idf7), 0x1ae, 0x0, 0xffffff02) } Method(ife6,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 32, dta0, 32, } IndexField(idx0, dta0, WordAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 6) { Store(0xffffffff, tot0) Store(arg0, tot1) Store(Derefof(arg1), Local0) Store(tot1, Local1) Store(tot0, Local2) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } if (LNotEqual(Local2, arg5)) { err(ts, z179, __LINE__, 0, 0, Local2, arg5) } } OUTP("Check IndexField implementation: ByteAccWordAcc, idx0, 32, dta0, 32") m000(0x00000001, Refof(idf0), 0x1b0, 0x1, 0x00000001, 0) m000(0x00000080, Refof(idf1), 0x1b3, 0x1, 0x00000080, 0) m000(0x00000100, Refof(idf2), 0x1b6, 0x1, 0x00000100, 0) m000(0x00008000, Refof(idf3), 0x1b9, 0x1, 0x00008000, 0) m000(0x00000001, Refof(idf4), 0x1bc, 0x1, 0x00000001, 2) m000(0x00000080, Refof(idf5), 0x1bf, 0x1, 0x00000080, 2) m000(0x00000100, Refof(idf6), 0x1c2, 0x1, 0x00000100, 2) m000(0x00008000, Refof(idf7), 0x1c5, 0x1, 0x00008000, 2) } Method(ife7,, Serialized) { Field(OPR0, DWordAcc, NoLock, WriteAsZeros) { idx0, 32, dta0, 32, } IndexField(idx0, dta0, WordAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 6) { Store(0xffffffff, tot0) Store(arg0, tot1) Store(Derefof(arg1), Local0) Store(tot1, Local1) Store(tot0, Local2) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } if (LNotEqual(Local2, arg5)) { err(ts, z179, __LINE__, 0, 0, Local2, arg5) } } OUTP("Check IndexField implementation: DWordAccWordAcc, idx0, 32, dta0, 32") m000(0x00000001, Refof(idf0), 0x1f0, 0x1, 0x00000001, 0) m000(0x00000080, Refof(idf1), 0x1f3, 0x1, 0x00000080, 0) m000(0x00000100, Refof(idf2), 0x1f6, 0x1, 0x00000100, 0) m000(0x00008000, Refof(idf3), 0x1f9, 0x1, 0x00008000, 0) m000(0x00000001, Refof(idf4), 0x1fc, 0x1, 0x00000001, 2) m000(0x00000080, Refof(idf5), 0x1ff, 0x1, 0x00000080, 2) m000(0x00000100, Refof(idf6), 0x202, 0x1, 0x00000100, 2) m000(0x00008000, Refof(idf7), 0x215, 0x1, 0x00008000, 2) } CH03(ts, z179, 0x1c8, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { ife4() ife5() ife6() ife7() } case (21) { ife4() } case (22) { ife5() } case (23) { ife6() } case (24) { ife7() } } CH03(ts, z179, 0x1c9, __LINE__, 0) } Method(my27, 1, Serialized) { Name(ts, "my27") OperationRegion(OPR0, SystemMemory, VMEM, 256) Field(OPR0, ByteAcc, NoLock, Preserve) { tot0, 32, tot1, 32, } Method(ife8,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 32, dta0, 32, } IndexField(idx0, dta0, DWordAcc, NoLock, WriteAsZeros) { idf0, 1, , 14, idf1, 1, idf2, 1, , 14, idf3, 1, idf4, 1, , 14, idf5, 1, idf6, 1, , 14, idf7, 1, } Method(m000, 6) { Store(0xffffffff, tot0) Store(arg0, tot1) Store(Derefof(arg1), Local0) Store(tot1, Local1) Store(tot0, Local2) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } if (LNotEqual(Local2, arg5)) { err(ts, z179, __LINE__, 0, 0, Local2, arg5) } } OUTP("Check IndexField implementation: ByteAccDWordAcc, idx0, 32, dta0, 32") m000(0x00000001, Refof(idf0), 0x200, 0x1, 0x00000001, 0) m000(0x00008000, Refof(idf1), 0x203, 0x1, 0x00008000, 0) m000(0x00010000, Refof(idf2), 0x206, 0x1, 0x00010000, 0) m000(0x80000000, Refof(idf3), 0x209, 0x1, 0x80000000, 0) m000(0x00000001, Refof(idf4), 0x20c, 0x1, 0x00000001, 4) m000(0x00008000, Refof(idf5), 0x20f, 0x1, 0x00008000, 4) m000(0x00010000, Refof(idf6), 0x212, 0x1, 0x00010000, 4) m000(0x80000000, Refof(idf7), 0x215, 0x1, 0x80000000, 4) } Method(ife9,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 32, dta0, 32, } IndexField(idx0, dta0, QWordAcc, NoLock, WriteAsZeros) { idf0, 1, , 14, idf1, 1, idf2, 1, , 14, idf3, 1, idf4, 1, , 14, idf5, 1, idf6, 1, , 14, idf7, 1, } Method(m000, 6) { Store(0xffffffff, tot0) Store(arg0, tot1) Store(Derefof(arg1), Local0) Store(tot1, Local1) Store(tot0, Local2) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } if (LNotEqual(Local2, arg5)) { err(ts, z179, __LINE__, 0, 0, Local2, arg5) } } OUTP("Check IndexField implementation: ByteAccQWordAcc, idx0, 32, dta0, 32") m000(0x00000001, Refof(idf0), 0x220, 0x1, 0x00000001, 0) m000(0x00008000, Refof(idf1), 0x223, 0x1, 0x00008000, 0) m000(0x00010000, Refof(idf2), 0x226, 0x1, 0x00010000, 0) m000(0x80000000, Refof(idf3), 0x229, 0x1, 0x80000000, 0) m000(0xffffffff, Refof(idf4), 0x22c, 0x0, 0xffffffff, 0) m000(0xffffffff, Refof(idf5), 0x22f, 0x0, 0xffffffff, 0) m000(0xffffffff, Refof(idf6), 0x232, 0x0, 0xffffffff, 0) m000(0xffffffff, Refof(idf7), 0x235, 0x0, 0xffffffff, 0) } Method(ifea,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 16, dta0, 16, } IndexField(idx0, dta0, ByteAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 4, Serialized) { Store(arg0, tot0) switch (ToInteger (Arg1)) { case (0) {Store(1, idf0)} case (1) {Store(1, idf1)} case (2) {Store(1, idf2)} case (3) {Store(1, idf3)} case (4) {Store(1, idf4)} case (5) {Store(1, idf5)} case (6) {Store(1, idf6)} case (7) {Store(1, idf7)} } Store(tot0, Local0) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } } OUTP("Check IndexField implementation: ByteAcc2, Store") m000(0xffffffff, 0, 0x240, 0x00010000) m000(0xffffffff, 1, 0x241, 0x00800000) m000(0xffffffff, 2, 0x242, 0x00010001) m000(0xffffffff, 3, 0x243, 0x00800001) m000(0xffffffff, 4, 0x244, 0x00010002) m000(0xffffffff, 5, 0x245, 0x00800002) m000(0xffffffff, 6, 0x246, 0x00010003) m000(0xffffffff, 7, 0x247, 0x00800003) } Method(ifeb,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 16, dta0, 16, } IndexField(idx0, dta0, WordAcc, NoLock, WriteAsZeros) { idf0, 1, , 6, idf1, 1, idf2, 1, , 6, idf3, 1, idf4, 1, , 6, idf5, 1, idf6, 1, , 6, idf7, 1, } Method(m000, 4, Serialized) { Store(arg0, tot0) switch (ToInteger (Arg1)) { case (0) {Store(1, idf0)} case (1) {Store(1, idf1)} case (2) {Store(1, idf2)} case (3) {Store(1, idf3)} case (4) {Store(1, idf4)} case (5) {Store(1, idf5)} case (6) {Store(1, idf6)} case (7) {Store(1, idf7)} } Store(tot0, Local0) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } } OUTP("Check IndexField implementation: ByteAccWordAcc, Store") m000(0xffffffff, 0, 0x248, 0x00010000) m000(0xffffffff, 1, 0x249, 0x00800000) m000(0xffffffff, 2, 0x24a, 0x01000000) m000(0xffffffff, 3, 0x24b, 0x80000000) m000(0xffffffff, 4, 0x24c, 0x00010002) m000(0xffffffff, 5, 0x24d, 0x00800002) m000(0xffffffff, 6, 0x24e, 0x01000002) m000(0xffffffff, 7, 0x24f, 0x80000002) } CH03(ts, z179, 0x1ca, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { ife8() if (ABUU) { } else { ife9() } if (ABUU) { } else { ifea() } if (ABUU) { } else { ifeb() } } case (25) { ife8() } case (26) { ife9() } case (27) { ifea() } case (28) { ifeb() } } CH03(ts, z179, 0x1cb, __LINE__, 0) } Method(mz27, 1, Serialized) { Name(ts, "mz27") OperationRegion(OPR0, SystemMemory, VMEM, 256) Field(OPR0, ByteAcc, NoLock, Preserve) { tot0, 32, tot1, 32, } Method(ifec,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 32, dta0, 32, } IndexField(idx0, dta0, DWordAcc, NoLock, WriteAsZeros) { idf0, 1, , 14, idf1, 1, idf2, 1, , 14, idf3, 1, idf4, 1, , 14, idf5, 1, idf6, 1, , 14, idf7, 1, } Method(m000, 5, Serialized) { Store(0xffffffff, tot0) Store(arg0, tot1) switch (ToInteger (Arg1)) { case (0) {Store(1, idf0)} case (1) {Store(1, idf1)} case (2) {Store(1, idf2)} case (3) {Store(1, idf3)} case (4) {Store(1, idf4)} case (5) {Store(1, idf5)} case (6) {Store(1, idf6)} case (7) {Store(1, idf7)} } Store(tot1, Local0) Store(tot0, Local1) if (LNotEqual(Local0, arg3)) { err(ts, z179, __LINE__, 0, 0, Local0, arg3) } if (LNotEqual(Local1, arg4)) { err(ts, z179, __LINE__, 0, 0, Local1, arg4) } } OUTP("Check IndexField implementation: ByteAccDWordAcc, Store") m000(0xffffffff, 0, 0x250, 0x00000001, 0) m000(0xffffffff, 1, 0x252, 0x00008000, 0) m000(0xffffffff, 2, 0x254, 0x00010000, 0) m000(0xffffffff, 3, 0x256, 0x80000000, 0) m000(0xffffffff, 4, 0x258, 0x00000001, 4) m000(0xffffffff, 5, 0x25a, 0x00008000, 4) m000(0xffffffff, 6, 0x25c, 0x00010000, 4) m000(0xffffffff, 7, 0x25e, 0x80000000, 4) } Method(ifed,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 8, dta0, 24, } IndexField(idx0, dta0, ByteAcc, NoLock, WriteAsZeros) { , 15, idf0, 1 } OUTP("Check IndexField implementation: dta wider than idf Access width") Store(0x3FF, idf0) Store(tot0, Local0) if (LNotEqual(Local0, 0x8001)) { err(ts, z179, __LINE__, 0, 0, Local0, 0x8001) } } Method(ifee,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx0, 8, dta0, 24, } IndexField(idx0, dta0, ByteAcc, NoLock, WriteAsZeros) { , 7, idf0, 1 } OUTP("Check IndexField implementation: dta wider than idf Access width 2") Store(0xFF, idf0) Store(tot0, Local0) if (LNotEqual(Local0, 0x8000)) { err(ts, z179, __LINE__, 0, 0, Local0, 0x8000) } } Method(ifef,, Serialized) { Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { idx1, 8, dta1, 8, } IndexField(idx1, dta1, ByteAcc, NoLock, WriteAsZeros) { , 2, re10, 6, , 3, re11, 5, , 4, re12, 4, , 5, re13, 3, } Method(TRY0, 3, Serialized) { Store(Zero, tot0) switch (ToInteger (Arg0)) { Case (0) {Store(Ones, ^re10)} Case (1) {Store(Ones, ^re11)} Case (2) {Store(Ones, ^re12)} Case (3) {Store(Ones, ^re13)} } Store(idx1, Local0) Store(dta1, Local1) Multiply(arg0, 2, Local2) if (LNotEqual(Local0, arg1)) { err(ts, z179, __LINE__, 0, 0, Local0, arg1) } if (LNotEqual(Local1, arg2)) { err(ts, z179, __LINE__, 0, 0, Local1, arg2) } } OUTP("Check IndexField ByteAcc Ones write (:2)6-(:3)5-(:4)4-(:5)3") TRY0(0, 0, 0xfc) TRY0(1, 1, 0xf8) TRY0(2, 2, 0xf0) TRY0(3, 3, 0xe0) } CH03(ts, z179, 0x1cc, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { ifec() ifed() ifee() ifef() } case (29) { ifec() } case (30) { ifed() } case (31) { ifee() } case (32) { ifef() } } CH03(ts, z179, 0x1cd, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(aifd) { IIN0() ms27(1) Return(POUT) } Method(bifd) { IIN0() ms27(2) Return(POUT) } Method(cifd) { IIN0() ms27(3) Return(POUT) } Method(difd) { IIN0() ms27(4) Return(POUT) } Method(sifd) { IIN0() ms27(0) Return(POUT) } Method(eifd) { IIN0() mt27(5) Return(POUT) } Method(fifd) { IIN0() mt27(6) Return(POUT) } Method(gifd) { IIN0() mt27(7) Return(POUT) } Method(hifd) { IIN0() mt27(8) Return(POUT) } Method(tifd) { IIN0() mt27(0) Return(POUT) } Method(iifd) { IIN0() mu27(9) Return(POUT) } Method(jifd) { IIN0() mu27(10) Return(POUT) } Method(kifd) { IIN0() mu27(11) Return(POUT) } Method(lifd) { IIN0() mu27(12) Return(POUT) } Method(uifd) { IIN0() mu27(0) Return(POUT) } Method(mifd) { IIN0() mv27(13) Return(POUT) } Method(nifd) { IIN0() mv27(14) Return(POUT) } Method(oifd) { IIN0() mv27(15) Return(POUT) } Method(pifd) { IIN0() mv27(16) Return(POUT) } Method(vifd) { IIN0() mv27(0) Return(POUT) } Method(aife) { IIN0() mw27(17) Return(POUT) } Method(bife) { IIN0() mw27(18) Return(POUT) } Method(cife) { IIN0() mw27(19) Return(POUT) } Method(dife) { IIN0() mw27(20) Return(POUT) } Method(wife) { IIN0() mw27(0) Return(POUT) } Method(eife) { IIN0() mx27(21) Return(POUT) } Method(fife) { IIN0() mx27(22) Return(POUT) } Method(gife) { IIN0() mx27(23) Return(POUT) } Method(hife) { IIN0() mx27(24) Return(POUT) } Method(xife) { IIN0() mx27(0) Return(POUT) } Method(iife) { IIN0() my27(25) Return(POUT) } Method(jife) { IIN0() my27(26) Return(POUT) } Method(kife) { IIN0() my27(27) Return(POUT) } Method(life) { IIN0() my27(28) Return(POUT) } Method(yife) { IIN0() my27(0) Return(POUT) } Method(mife) { IIN0() mz27(29) Return(POUT) } Method(nife) { IIN0() mz27(30) Return(POUT) } Method(oife) { IIN0() mz27(31) Return(POUT) } Method(pife) { IIN0() mz27(32) Return(POUT) } Method(zife) { IIN0() mz27(0) Return(POUT) } /* * Hot issue: * * Check BankField implementation */ Method(ms28,, Serialized) { Name(ts, "ms28") OperationRegion(OPR0, SystemMemory, 0, 256) Field(OPR0, ByteAcc, NoLock, Preserve) { tot0, 32, tot1, 32, } Method(bfd0,, Serialized) { Field (OPR0, ByteAcc, NoLock, Preserve) { bnk0, 8 } Field (OPR0, ByteAcc, NoLock, Preserve) { tot0, 80 } BankField (OPR0, bnk0, 0, ByteAcc, NoLock, Preserve) { Offset(8), bf00, 8, } BankField (OPR0, bnk0, 1, ByteAcc, NoLock, Preserve) { Offset(9), bf01, 8, } OUTP("Check BankField implementation") // Deal with 0-th bank layout: Store(0, bnk0) if (LNotEqual(bnk0, 0)) { err(ts, z179, __LINE__, 0, 0, bnk0, 0) } Store(0x87, bf00) if (LNotEqual(bnk0, 0)) { err(ts, z179, __LINE__, 0, 0, bnk0, 0) } if (LNotEqual(bf00, 0x87)) { err(ts, z179, __LINE__, 0, 0, bf00, 0x87) } // Deal with 1-th bank layout: Store(1, bnk0) if (LNotEqual(bnk0, 1)) { err(ts, z179, __LINE__, 0, 0, bnk0, 1) } Store(0x96, bf01) if (LNotEqual(bnk0, 1)) { err(ts, z179, __LINE__, 0, 0, bnk0, 1) } if (LNotEqual(bf01, 0x96)) { err(ts, z179, __LINE__, 0, 0, bf01, 0x96) } } CH03(ts, z179, 0x276, __LINE__, 0) bfd0() CH03(ts, z179, 0x277, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(abfd) { IIN0() ms28() Return(POUT) } Mutex (C152, 0) Mutex (C153, 0) Mutex (C154, 0) Mutex (C155, 0) Mutex (C156, 0) Mutex (C159, 0) /* * Hot issue: * * Check Acquire/Release */ Method(ms29, 1, Serialized) { Name(ts, "ms29") Method (C157, 1, NotSerialized) { if (arg0) { Store(Acquire (C154, 0xFFFF), Local0) } else { Store(Acquire (C154, 0), Local0) } Return (Local0) } Method (C158, 0, NotSerialized) { Release (C154) } Method (C160, 0, NotSerialized) { Release (C152) } Method(mut0) { OUTP("Check Release by different ASL Methods") C160() CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } Method(mut1) { OUTP("Check Acquire/Release by different ASL Methods") OUTP("Acquire") Store(C157(1), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Release") C158() } Method(mut2) { OUTP("Check Acquire/Acquire by the different Method's calls") OUTP("Acquire 1") Store(C157(1), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Acquire 2") Store(C157(1), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } } Method(mut3) { OUTP("Check Acquire/Acquire in one Method") OUTP("Acquire 1") Store(Acquire (C155, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Acquire 2") Store(Acquire (C155, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } } Method(mut4) { OUTP("Check Acquire/Release/Release by different ASL Methods") OUTP("Acquire") Store(C157(1), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Release 1") C158() OUTP("Release 2") C158() CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } Method(mut5) { OUTP("Check Acquire(,0xFFFF)/Acquire(,0) in one Method") OUTP("Acquire( , 0xFFFF) 1") Store(Acquire (C156, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Acquire( , 0) 2") Store(Acquire (C156, 0), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } } Method(mut6) { OUTP("Check Acquire2/Release2 in one Method") OUTP("Acquire 1") Store(Acquire (C153, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Acquire 2") Store(Acquire (C153, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Release 1") Release (C153) OUTP("Release 2") Release (C153) } Method(mut7) { OUTP("Check Acquire2/Release3 in one Method") OUTP("Acquire 1") Store(Acquire (C159, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Acquire 2") Store(Acquire (C159, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Release 1") Release (C159) OUTP("Release 2") Release (C159) OUTP("Release 3") Release (C159) CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } Method(mut8) { OUTP("Check Acquire2/Release2 in one Method") OUTP("Acquire 1") Store(Acquire (C153, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Acquire 2") Store(Acquire (C153, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Release 1") Release (C153) OUTP("Release 2") Release (C153) } Method(mut9,, Serialized) { Mutex (C159, 0) OUTP("Check Acquire2/Release2 in one Method for dynamic Mutex") OUTP("Acquire 1") Store(Acquire (C159, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Acquire 2") Store(Acquire (C159, 0xFFFF), Local0) if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } OUTP("Release 1") Release (C159) OUTP("Release 2") Release (C159) OUTP("Release 3") Release (C159) CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } Method(m000) { if (ABUU) { } else { mut0() } mut1() if (ABUU) { } else { mut3() } if (ABUU) { } else { mut4() } mut5() mut6() if (ABUU) { } else { mut7() } mut8() if (ABUU) { } else { mut9() } } CH03(ts, z179, 0x292, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { mut0() } case (2) { mut1() } case (3) { mut2() } case (4) { mut3() } case (5) { mut4() } case (6) { mut5() } case (7) { mut6() } case (8) { mut7() } case (9) { mut8() } case (10) { mut9() } } CH03(ts, z179, 0x293, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(amut) { IIN0() ms29(1) Return(POUT) } Method(bmut) { IIN0() ms29(2) Return(POUT) } Method(cmut) { IIN0() ms29(3) Return(POUT) } Method(dmut) { IIN0() ms29(4) Return(POUT) } Method(emut) { IIN0() ms29(5) Return(POUT) } Method(fmut) { IIN0() ms29(6) Return(POUT) } Method(gmut) { IIN0() ms29(7) Return(POUT) } Method(hmut) { IIN0() ms29(8) Return(POUT) } Method(imut) { IIN0() ms29(9) Return(POUT) } Method(jmut) { IIN0() ms29(10) Return(POUT) } Method(kmut) { IIN0() ms29(0) Return(POUT) } // LEqual implementation for Buffers to use on MS Method(BCMP, 2) { if (ABUU) { Store(Sizeof(Arg0), Local0) if (LNotEqual(Local0, Sizeof(Arg1))) { return (0) } Store(Sizeof(Arg0), Local0) while(Local0) { Decrement(Local0) Store(Derefof(Index(Arg0, Local0)), Local1) Store(Derefof(Index(Arg1, Local0)), Local2) if (LNotEqual(Local1, Local2)) { return (0) } } return (1) } else { return (LEqual(arg0, arg1)) } } /* * Hot issue: * * Check ToBuffer optional store (Bug 194) */ Method(ms2a, 1, Serialized) { Name(ts, "ms2a") Name(F64, 0) Method(tob0) { Method(m000, 1, Serialized) { Name(b000, Buffer(1){0x3c}) Name(b001, Buffer(3){0x01, 0x02, 0x03}) if (arg0) { OUTP("ToBuffer(b001, b000)") ToBuffer(b001, b000) } else { OUTP("ToBuffer(b000, b001)") ToBuffer(b000, b001) } if (LNot(BCMP(b000, b001))) { err(ts, z179, __LINE__, 0, 0, b000, b001) } } OUTP("Check ToBuffer optional store behaves like CopyObject") m000(0) m000(1) } Method(tob1) { OUTP("Check ToBuffer(0x456789ab)") Store(ToBuffer(0x456789ab), Local0) if (F64) { Store(Buffer(8){0xab, 0x89, 0x67, 0x45}, Local1) } else { Store(Buffer(4){0xab, 0x89, 0x67, 0x45}, Local1) } if (LNot(BCMP(Local1, Local0))) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(tob2) { OUTP("Check ToBuffer(\"456789ab\")") Store(ToBuffer("456789ab"), Local0) Store(Buffer(){"456789ab"}, Local1) if (LNot(BCMP(Local1, Local0))) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(tob3) { OUTP("Check ToBuffer(Buffer(4){0x45, 0x67, 0x89, 0xab})") Store(ToBuffer(Buffer(4){0x45, 0x67, 0x89, 0xab}), Local0) Store(Buffer(4){0x45, 0x67, 0x89, 0xab}, Local1) if (LNot(BCMP(Local1, Local0))) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(tob4) { OUTP("Check ToBuffer(0x456789ab, Local0)") ToBuffer(0x456789ab, Local0) if (F64) { Store(Buffer(8){0xab, 0x89, 0x67, 0x45}, Local1) } else { Store(Buffer(4){0xab, 0x89, 0x67, 0x45}, Local1) } if (LNot(BCMP(Local1, Local0))) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(tob5) { OUTP("Check ToBuffer(\"456789ab\", Local0)") ToBuffer("456789ab", Local0) Store(Buffer(){"456789ab"}, Local1) if (LNot(BCMP(Local1, Local0))) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(tob6) { OUTP("Check ToBuffer(Buffer(4){0x45, 0x67, 0x89, 0xab}, Local0)") ToBuffer(Buffer(4){0x45, 0x67, 0x89, 0xab}, Local0) Store(Buffer(4){0x45, 0x67, 0x89, 0xab}, Local1) if (LNot(BCMP(Local1, Local0))) { err(ts, z179, __LINE__, 0, 0, Local0, Local1) } } Method(tob7,, Serialized) { Name(i000, 0) OUTP("Check ToBuffer(0x456789ab, i000)") ToBuffer(0x456789ab, i000) if (F64) { Store(Buffer(8){0xab, 0x89, 0x67, 0x45}, Local1) } else { Store(Buffer(4){0xab, 0x89, 0x67, 0x45}, Local1) } Store(ObjectType(i000), Local2) if (LNotEqual(Local2, 3)) { err(ts, z179, __LINE__, 0, 0, Local2, 3) } elseif (LNot(BCMP(Local1, i000))) { err(ts, z179, __LINE__, 0, 0, i000, Local1) } } Method(tob8,, Serialized) { Name(s000, "s000") OUTP("Check ToBuffer(\"456789ab\", s000)") ToBuffer("456789ab", s000) Store(Buffer(){"456789ab"}, Local1) Store(ObjectType(s000), Local2) if (LNotEqual(Local2, 3)) { err(ts, z179, __LINE__, 0, 0, Local2, 3) } elseif (LNot(BCMP(Local1, s000))) { err(ts, z179, __LINE__, 0, 0, s000, Local1) } } Method(tob9,, Serialized) { Name(b000, Buffer(2){}) OUTP("Check ToBuffer(Buffer(4){0x45, 0x67, 0x89, 0xab}, b000)") ToBuffer(Buffer(4){0x45, 0x67, 0x89, 0xab}, b000) Store(Buffer(4){0x45, 0x67, 0x89, 0xab}, Local1) Store(ObjectType(b000), Local2) if (LNotEqual(Local2, 3)) { err(ts, z179, __LINE__, 0, 0, Local2, 3) } elseif (LNot(BCMP(Local1, b000))) { err(ts, z179, __LINE__, 0, 0, b000, Local1) } } Method(toba) { Method(m000, 1, Serialized) { Name(b000, Buffer(1){0x3c}) Name(b001, Buffer(3){0x01, 0x02, 0x03}) if (arg0) { OUTP("Store(b001, b000)") Store(b001, b000) Store(Buffer(1){0x01}, Local0) if (LNot(BCMP(b000, Local0))) { err(ts, z179, __LINE__, 0, 0, b000, Local0) } } else { OUTP("Store(b000, b001)") Store(b000, b001) Store(Buffer(3){0x3c}, Local0) if (LNot(BCMP(b001, Local0))) { err(ts, z179, __LINE__, 0, 0, b001, Local0) } } } OUTP("Check if Store fails the same way as ToBuffer optional store") m000(0) m000(1) } Method(m000) { if (ABUU) { } else { tob0() tob1() tob2() tob3() tob4() tob5() tob6() tob7() tob8() tob9() } toba() } if (ABUU) { } elseif (LEqual(SizeOf(F64), 8)) { Store (1, F64) } CH03(ts, z179, 0x2a4, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { tob0() } case (2) { tob1() } case (3) { tob2() } case (4) { tob3() } case (5) { tob4() } case (6) { tob5() } case (7) { tob6() } case (8) { tob7() } case (9) { tob8() } case (10) { tob9() } case (11) { toba() } } CH03(ts, z179, 0x2a5, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(atob) { IIN0() ms2a(1) Return(POUT) } Method(btob) { IIN0() ms2a(2) Return(POUT) } Method(ctob) { IIN0() ms2a(3) Return(POUT) } Method(dtob) { IIN0() ms2a(4) Return(POUT) } Method(etob) { IIN0() ms2a(5) Return(POUT) } Method(ftob) { IIN0() ms2a(6) Return(POUT) } Method(gtob) { IIN0() ms2a(7) Return(POUT) } Method(htob) { IIN0() ms2a(8) Return(POUT) } Method(itob) { IIN0() ms2a(9) Return(POUT) } Method(jtob) { IIN0() ms2a(10) Return(POUT) } Method(ktob) { IIN0() ms2a(11) Return(POUT) } /* * Hot issue: * * Check Package size calculation */ Method(ms2b, 1, Serialized) { Name(ts, "ms2b") Method(pac0,, Serialized) { Name(p000, Package(5){1, 2, 3}) OUTP("Check if Package list < explicit size the last is in use") Store(SizeOf(p000), Local0) if (LNotEqual(Local0, 5)) { err(ts, z179, __LINE__, 0, 0, Local0, 5) } } Method(pac1,, Serialized) { Name(p000, Package(5){1, 2, 3}) OUTP("Check if Package list < explicit size there are undef elements") Store(ObjectType(Index(p000, 2)), Local0) if (Local0) { } else { err(ts, z179, __LINE__, 0, 0, Local0, 1) } Store(ObjectType(Index(p000, 3)), Local0) if (Local0) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } } // This test actually should be used with Package(3){1, 2, 3, 4, 5}) // declaration, but iASL reports "Initializer list too long" error. // Uncomment, set 'fopt' below to 1 and use it with -f iASL option Method(pac2,, Serialized) { Name(fopt, 0) // Name(p000, Package(3){1, 2, 3, 4, 5}) Name(p000, Package(3){1, 2, 3}) OUTP("Check if Package list > explicit size the former is in use") if (fopt) { Store(SizeOf(p000), Local0) } else { Store(5, Local0) } if (LNotEqual(Local0, 5)) { err(ts, z179, __LINE__, 0, 0, Local0, 5) } } CH03(ts, z179, 0x2ab, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { pac0() pac1() pac2() } case (1) { pac0() } case (2) { pac1() } case (3) { pac2() } } CH03(ts, z179, 0x2ac, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(apac) { IIN0() ms2b(1) Return(POUT) } Method(bpac) { IIN0() ms2b(2) Return(POUT) } Method(cpac) { IIN0() ms2b(3) Return(POUT) } /* * Hot issue: * * Check Switch implementation * * isw0 test should expectedly fail */ Method(ms2c, 1, Serialized) { Name(ts, "ms2c") Method(sw00, 0, Serialized) { Method(m000, 1, Serialized) { Store(0, Local1) switch (ToInteger (Arg0)) { case (1) { Store(1, Local1) } case (2) { Store(2, Local1) } } return (Local1) } OUTP("Check Switch implementation 0: standalone") Store(2, Local0) Store(0, Local1) switch (ToInteger (Local0)) { case (1) { Store(1, Local1) } case (2) { Store(2, Local1) } } if (LNotEqual(Local1, 2)) { err(ts, z179, __LINE__, 0, 0, Local1, 2) } Store(m000(1), Local1) if (LNotEqual(Local1, 1)) { err(ts, z179, __LINE__, 0, 0, Local1, 1) } } Method(sw01) { OUTP("Check While implementation 1: standalone") Store(2, Local0) Store(0, Local1) while (Local0) { if (LEqual(Local0, 1)) { Increment(Local1) } else { Increment(Local1) } Decrement(Local0) } if (LNotEqual(Local1, 2)) { err(ts, z179, __LINE__, 0, 0, Local1, 2) } } Method(sw02, 0, Serialized) { OUTP("Check Switch implementation 2: inside While (1 step)") Store(1, Local0) Store(0, Local1) Store(0, Local2) while (Local0) { switch (ToInteger (Local0)) { case (1) { Increment(Local1) } case (2) { Increment(Local2) } } Decrement(Local0) } if (LNotEqual(Local1, 1)) { err(ts, z179, __LINE__, 0, 0, Local1, 1) } if (LNotEqual(Local2, 0)) { err(ts, z179, __LINE__, 0, 0, Local2, 0) } } Method(sw03, 0, Serialized) { OUTP("Check Switch implementation 3: inside While (2 steps)") Store(2, Local0) Store(0, Local1) Store(0, Local2) while (Local0) { switch (ToInteger (Local0)) { case (1) { Increment(Local1) } case (2) { Increment(Local2) } } Decrement(Local0) } if (LNotEqual(Local1, 1)) { err(ts, z179, __LINE__, 0, 0, Local1, 1) } if (LNotEqual(Local2, 1)) { err(ts, z179, __LINE__, 0, 0, Local2, 1) } } Method(sw04, 0, Serialized) { OUTP("Check Switch implementation 4: inside While 2, 2 Breaks") Store(2, Local0) Store(0, Local1) Store(0, Local2) while (Local0) { switch (ToInteger (Local0)) { case (1) { Increment(Local1) Break } case (2) { Increment(Local2) Break } } Decrement(Local0) } if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } if (LNotEqual(Local1, 1)) { err(ts, z179, __LINE__, 0, 0, Local1, 1) } if (LNotEqual(Local2, 1)) { err(ts, z179, __LINE__, 0, 0, Local2, 1) } } Method(sw05, 0, Serialized) { OUTP("Check Switch implementation 5: inside While 1, 2 Breaks") Store(1, Local0) Store(0, Local1) Store(0, Local2) while (Local0) { switch (ToInteger (Local0)) { case (1) { Increment(Local1) Break } case (2) { Increment(Local2) Break } } Decrement(Local0) } if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } if (LNotEqual(Local1, 1)) { err(ts, z179, __LINE__, 0, 0, Local1, 1) } if (LNotEqual(Local2, 0)) { err(ts, z179, __LINE__, 0, 0, Local2, 0) } } Method(sw06, 0, Serialized) { OUTP("Check Switch implementation 6: inside While 2, 1 Break") Store(2, Local0) Store(0, Local1) Store(0, Local2) while (Local0) { switch (ToInteger (Local0)) { case (1) { Increment(Local1) } case (2) { Increment(Local2) Break } } Decrement(Local0) } if (LNotEqual(Local0, 0)) { err(ts, z179, __LINE__, 0, 0, Local0, 0) } if (LNotEqual(Local1, 1)) { err(ts, z179, __LINE__, 0, 0, Local1, 1) } if (LNotEqual(Local2, 1)) { err(ts, z179, __LINE__, 0, 0, Local2, 1) } } Method(sw07,, Serialized) { OUTP("Check While implementation 7: Name inside, 1 step") Store(1, Local0) Store(0, Local1) Name(WHIN, Ones) while (Local0) { if (Local1) { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } else { CH03(ts, z179, 0x2be, __LINE__, 0) } Store(Local1, WHIN) Decrement(Local0) Increment(Local1) } } Method(sw08,, Serialized) { OUTP("Check While implementation 8: Name inside, 2 steps") Store(2, Local0) Store(0, Local1) Name(WHIN, Ones) while (Local0) { if (LGreater(Local1, 2)) { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } else { CH03(ts, z179, 0x2c0, __LINE__, 0) } Store(Local1, WHIN) Decrement(Local0) Increment(Local1) } } Method(m000) { sw00() sw01() sw02() sw03() if (LAnd(ABUU, LNot(q00a))) { } else { sw04() sw05() sw06() } sw07() if (ABUU) { } else { sw08() } } CH03(ts, z179, 0x2c1, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { sw00() } case (2) { sw01() } case (3) { sw02() } case (4) { sw03() } case (5) { sw04() } case (6) { sw05() } case (7) { sw06() } case (8) { sw07() } case (9) { sw08() } } CH03(ts, z179, 0x2c2, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(asw0) { IIN0() ms2c(1) Return(POUT) } Method(bsw0) { IIN0() ms2c(2) Return(POUT) } Method(csw0) { IIN0() ms2c(3) Return(POUT) } Method(dsw0) { IIN0() ms2c(4) Return(POUT) } Method(esw0) { IIN0() ms2c(5) Return(POUT) } Method(fsw0) { IIN0() ms2c(6) Return(POUT) } Method(gsw0) { IIN0() ms2c(7) Return(POUT) } Method(hsw0) { IIN0() ms2c(8) Return(POUT) } Method(isw0) { IIN0() ms2c(9) Return(POUT) } /* * Hot issue: * * Recursive method with local named * * bwac & cwac tests should expectedly fail */ Method(ms2d, 1, Serialized) { Name(ts, "ms2d") Name(Y, 0) Method (M001, 1, NotSerialized) { Name (X, Zero) If (Y) { If (y300) { CH03(ts, z179, 0x3c3, __LINE__, 0) } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } else { CH03(ts, z179, 0x2c4, __LINE__, 0) } Increment (Y) Increment (X) Decrement (Arg0) If (LGreater (Arg0, Zero)) { M001 (Arg0) } } Method(wac0) { OUTP("Recursive method with local named execution 1") Store(0, Y) M001 (0x1) } Method(wac1) { OUTP("Recursive method with local named execution 2") Store(0, Y) M001 (0x2) } Method(wac2) { OUTP("Recursive method with local named execution 4") Store(0, Y) M001 (0x4) } Method(m000) { wac0() if (ABUU) { } else { wac1() } if (ABUU) { } else { wac2() } } CH03(ts, z179, 0x2c5, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m000() } case (1) { wac0() } case (2) { wac1() } case (3) { wac2() } } CH03(ts, z179, 0x2c6, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(awac) { IIN0() ms2d(1) Return(POUT) } Method(bwac) { IIN0() ms2d(2) Return(POUT) } Method(cwac) { IIN0() ms2d(3) Return(POUT) } Method(dwac) { IIN0() ms2d(4) Return(POUT) } /* * Hot issue: * * Recursive method with local named: handmade asynchronous test: * - bzac can be called many times * - after azac any bzac should fail, but then after czac succeed again * - 3 consecutive execution of dzac in the different instances of ABBU * should show actual behavior, on acpiexec run "thr 4 1 dzac" */ Event(EV00) Method (MZAC, 1, NotSerialized) { Name (X, Zero) Increment (X) OUTP(X) If (LGreater (Arg0, Zero)) { // Block on event Wait(EV00, 0xFFFF) } } Method(zac0) { OUTP("Method with local named execution 1: Block") MZAC (0x1) } Method(zac1) { OUTP("Method with local named execution 2: Pass") MZAC (0x0) } Method(zac2) { Sleep(5000) OUTP("Method with local named execution 3: Signal") Signal (EV00) } Name(zacz, 5) Method(zac3) { Sleep(1000) Decrement(zacz) if (LEqual(zacz, 4)) {zac0()} elseif (LEqual(zacz, 2)) {zac2()} else {zac1()} Return (zacz) } /* Methods to run manually (for ABBU only) */ Method(azac) { IIN0() zac0() Return(POUT) } Method(bzac) { IIN0() zac1() Return(POUT) } Method(czac) { IIN0() zac2() Return(POUT) } Method(dzac) { IIN0() zac3() Return(POUT) } /* * Hot issue: * * Example from Bob, * Buffer is not shortened on storing short string */ Method(ms2e,, Serialized) { Name(ts, "ms2e") Name (BUF0, Buffer (12) {}) OUTP("Buffer is not shortened on storing short string") CH03(ts, z179, 0x2c7, __LINE__, 0) Store ("ABCD", BUF0) Store(SizeOf (BUF0), Local0) if (LNotEqual(Local0, 12)) { err(ts, z179, __LINE__, 0, 0, Local0, 12) } CH03(ts, z179, 0x2c9, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(abuf) { IIN0() ms2e() Return(POUT) } /* * Bug 246 issue: * * SUMMARY: Switch implementation can cause AE_ALREADY_EXISTS exception * when Switch is within While */ Method(ms2f, 1, Serialized) { Name(ts, "ms2f") Method(B246, 0, Serialized) { Name(LN00, 2) OUTP("Switch implementation can cause AE_ALREADY_EXISTS 1") Store(0, Local1) while (LN00) { switch (ToInteger (LN00)) { case (1) { Add(Local1, 1, Local1) } case (2) { Add(Local1, 2, Local1) } } Decrement(LN00) } if (LNotEqual(Local1, 3)) { err(ts, z179, __LINE__, 0, 0, Local1, 3) } } Method(U246, 0, Serialized) { Name(LN00, 1) OUTP("Switch implementation can cause AE_ALREADY_EXISTS 2") Store(0, Local1) while (LN00) { switch (ToInteger (LN00)) { case (1) { Add(Local1, 1, Local1) } case (2) { Add(Local1, 2, Local1) } } Decrement(LN00) } if (LNotEqual(Local1, 1)) { err(ts, z179, __LINE__, 0, 0, Local1, 1) } } CH03(ts, z179, 0x2cc, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { b246() u246() } case (1) { b246() } case (2) { u246() } } CH03(ts, z179, 0x2cd, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a246) { IIN0() ms2f(1) Return(POUT) } Method(b246) { IIN0() ms2f(2) Return(POUT) } /* * Bug 247 issue: * * SUMMARY: ASL compiler incorrectly implements Break within Switch */ Method(ms30,, Serialized) { Name(ts, "ms30") // This test actually should be used without "while (1) { ... Break}" // wrapping, but iASL reports "Initializer list too long" error. // Comment the wrappers and compile with -f iASL option. Method(B247) { Method(m000, 4, Serialized) { Name(LN00, 2) Name(CH10, 0) Name(CH11, 0) Name(CH20, 0) Name(CH21, 0) OUTP(arg0) // Workaround for "No enclosing While statement" iASl error while (1) { switch (ToInteger (arg3)) { case (1) { if (Arg1) { Store(1, CH10) Break } Store(1, CH11) } case (2) { if (Arg2) { Store(1, CH20) Break } Store(1, CH21) } } Break } if (LEqual(Arg3, 1)) { if (LNotEqual(CH10, Arg1)) { err(ts, z179, __LINE__, 0, 0, CH10, Arg1) } if (LEqual(CH11, Arg1)) { err(ts, z179, __LINE__, 0, 0, CH11, Arg1) } } if (LEqual(Arg3, 2)) { if (LNotEqual(CH20, Arg2)) { err(ts, z179, __LINE__, 0, 0, CH20, Arg2) } if (LEqual(CH21, Arg2)) { err(ts, z179, __LINE__, 0, 0, CH21, Arg2) } } } OUTP("Switch implementation can cause AE_ALREADY_EXISTS 3") m000("Break 100", 0, 0, 1) m000("Break 101", 0, 1, 1) m000("Break 110", 1, 0, 1) m000("Break 111", 1, 1, 1) m000("Break 200", 0, 0, 2) m000("Break 201", 0, 1, 2) m000("Break 210", 1, 0, 2) m000("Break 211", 1, 1, 2) } CH03(ts, z179, 0x2d2, __LINE__, 0) b247() CH03(ts, z179, 0x2d3, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(a247) { IIN0() ms30() Return(POUT) } /* * Hot issue: * * Load ASL operator */ Method(ms31, 1, Serialized) { Name(ts, "ms31") // Originated from table/ssdt0.asl: iasl -tc ssdt0.asl Name(BUF0, Buffer() { 0x53,0x53,0x44,0x54,0x34,0x00,0x00,0x00, /* 00000000 "SSDT4..." */ 0x02,0xDE,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 "..Intel." */ 0x4D,0x61,0x6E,0x79,0x00,0x00,0x00,0x00, /* 00000010 "Many...." */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x15,0x12,0x06,0x20,0x14,0x0F,0x5C,0x53, /* 00000020 "... ..\S" */ 0x53,0x30,0x30,0x00,0xA4,0x0D,0x5C,0x53, /* 00000028 "S00...\S" */ 0x53,0x30,0x30,0x00, }) OperationRegion (IST0, SystemMemory, VMEM, 0x34) Field(IST0, ByteAcc, NoLock, Preserve) { RFU0, 0x1a0, } Name(DDBH, 0) External(\SS00) Method(m000) { OUTP("ldt0: Simple Load/Unload(Field, LocalX) test") Store(BUF0, RFU0) Load(RFU0, Local0) CH03(ts, z179, 0x2d4, __LINE__, 0) OUTP("SSDT loaded") UnLoad(Local0) CH03(ts, z179, 0x2d5, __LINE__, 0) OUTP("SSDT unloaded") } // Manual test for ABBU Method(m001) { OUTP("ldt1: Simple Load(OpRegion, LocalX) test") Store(BUF0, RFU0) Load(IST0, Local0) CH03(ts, z179, 0x2d6, __LINE__, 0) OUTP("SSDT loaded") } Method(m002) { OUTP("ldt2: Simple Load/Unload(OpRegion, LocalX) test") Store(BUF0, RFU0) Load(IST0, DDBH) CH03(ts, z179, 0x2d7, __LINE__, 0) OUTP("SSDT loaded") Unload(DDBH) CH03(ts, z179, 0x2d8, __LINE__, 0) OUTP("SSDT unloaded") } Method(m003) { OUTP("ldt3: Simple Load/ObjectType(DDBHandle) test") Store(BUF0, RFU0) Load(IST0, Local0) CH03(ts, z179, 0x2d9, __LINE__, 0) OUTP("SSDT loaded") Store(ObjectType(Local0), Local1) if (LNotEqual(15, Local1)) { err(ts, z179, __LINE__, 0, 0, Local1, 15) } Unload(DDBH) CH03(ts, z179, 0x2db, __LINE__, 0) OUTP("SSDT unloaded") } // Manual test for ABBU: hangs on MS Method(m013) { OUTP("ldt13: Simple Load/ObjectType(DDBHandle) test") Store(BUF0, RFU0) Load(IST0, Local0) CH03(ts, z179, 0x2dc, __LINE__, 0) OUTP("SSDT loaded") Store(ObjectType(Local0), Local1) if (LNotEqual(15, Local1)) { err(ts, z179, __LINE__, 0, 0, Local1, 15) } } Method(m004,, Serialized) { Name(DDBH, 0) OUTP("ldt4: Simple Load/ObjectType(Named DDBHandle) test") Store(BUF0, RFU0) Load(IST0, DDBH) CH03(ts, z179, 0x2de, __LINE__, 0) OUTP("SSDT loaded") Store(ObjectType(DDBH), Local1) if (LNotEqual(15, Local1)) { err(ts, z179, __LINE__, 0, 0, Local1, 15) } UnLoad(DDBH) CH03(ts, z179, 0x2e0, __LINE__, 0) OUTP("SSDT unloaded") } // Manual test for ABBU: hangs on MS Method(m014,, Serialized) { Name(DDBH, 0) OUTP("ldt14: Simple Load/ObjectType(Named DDBHandle) test") Store(BUF0, RFU0) Load(IST0, DDBH) CH03(ts, z179, 0x2e1, __LINE__, 0) OUTP("SSDT loaded") Store(ObjectType(DDBH), Local1) if (LNotEqual(15, Local1)) { err(ts, z179, __LINE__, 0, 0, Local1, 15) } } Method(m005,, Serialized) { Name(PAC0, Package(1){}) OUTP("ldt5: Simple Load(OpRegion, Indexed DDBHandle) test") Store(BUF0, RFU0) Load(IST0, Index(PAC0, 0)) CH03(ts, z179, 0x2e3, __LINE__, 0) OUTP("SSDT loaded") Store(Derefof(Index(PAC0, 0)), Local0) UnLoad(Local0) CH03(ts, z179, 0x2e4, __LINE__, 0) OUTP("SSDT unloaded") } // Manual test for ABBU Method(m015,, Serialized) { Name(PAC0, Package(1){}) OUTP("ldt15: Simple Load(OpRegion, Indexed DDBHandle) test") Store(BUF0, RFU0) Load(IST0, Index(PAC0, 0)) CH03(ts, z179, 0x2e5, __LINE__, 0) OUTP("SSDT loaded") } Method(m006) { OUTP("ldt6: Complex Load(OpRegion, LocalX) - CondRefof test") Store(BUF0, RFU0) Store(CondRefof(\SS00, Local1), Local2) OUTP("CondRefof before Load") if (Local2) { err(ts, z179, __LINE__, 0, 0, Local2, 0) } Load(IST0, Local0) CH03(ts, z179, 0x2e7, __LINE__, 0) Store(CondRefof(\SS00, Local3), Local4) OUTP("CondRefof after Load") if (Local4) { } else { err(ts, z179, __LINE__, 0, 0, Local4, 1) } UnLoad(Local0) CH03(ts, z179, 0x2e9, __LINE__, 0) Store(CondRefof(\SS00, Local5), Local6) OUTP("CondRefof after UnLoad") if (Local6) { err(ts, z179, __LINE__, 0, 0, Local6, 0) } } // Manual test for ABBU Method(m016) { OUTP("ldt16: Complex Load(OpRegion, LocalX) - CondRefof test") Store(BUF0, RFU0) Store(CondRefof(\SS00, Local1), Local2) OUTP("CondRefof before Load") if (Local2) { err(ts, z179, __LINE__, 0, 0, Local2, 0) } Load(IST0, Local0) CH03(ts, z179, 0x2ec, __LINE__, 0) Store(CondRefof(\SS00, Local3), Local4) OUTP("CondRefof after Load") if (Local4) { } else { err(ts, z179, __LINE__, 0, 0, Local4, 1) } } Method(m010) { m000() if (y290) { m002() m003() m004() } if (LAnd(y261, y290)) { m005() } if (y290) { m006() } } CH03(ts, z179, 0x2ee, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m010() } case (1) { m000() } case (2) { m001() } case (3) { m002() } case (4) { m003() } case (5) { m004() } case (6) { m005() } case (7) { m006() } case (8) { m013() } case (9) { m014() } case (10) { m015() } case (11) { m016() } } CH03(ts, z179, 0x2ef, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(aldt) { IIN0() ms31(1) Return(POUT) } Method(bldt) { IIN0() ms31(2) Return(POUT) } Method(cldt) { IIN0() ms31(3) Return(POUT) } Method(dldt) { IIN0() ms31(4) Return(POUT) } Method(eldt) { IIN0() ms31(5) Return(POUT) } Method(fldt) { IIN0() ms31(6) Return(POUT) } Method(gldt) { IIN0() ms31(7) Return(POUT) } Method(hldt) { IIN0() ms31(8) Return(POUT) } Method(ildt) { IIN0() ms31(9) Return(POUT) } Method(jldt) { IIN0() ms31(10) Return(POUT) } Method(kldt) { IIN0() ms31(11) Return(POUT) } /* * Hot issue: * * CondRefOf ASL operator */ Method(ms32, 1, Serialized) { Name(ts, "ms32") Method(m000) { OUTP("cnr0: Simple CondRefof() positive test") Store(CondRefof(\_SB.ABBU.IMAX), Local0) CH03(ts, z179, 0x2f0, __LINE__, 0) } Method(m001) { OUTP("cnr1: Simple CondRefof( , ) positive test 2") Store(CondRefof(\_SB.ABBU._HID, Local1), Local0) CH03(ts, z179, 0x2f1, __LINE__, 0) if (Local0) { } else { err(ts, z179, __LINE__, 0, 0, Local0, 1) } } Method(m002,, Serialized) { Name(I000, 0x76543210) OUTP("cnr2: Simple CondRefof( , ) positive test for dynamic object") Store(CondRefof(^m002.I000, Local1), Local0) if (Local0) { Store(Derefof(Local1), Local2) if (LNotEqual(0x76543210, Local2)) { err(ts, z179, __LINE__, 0, 0, Local2, 0x76543210) } } else { err(ts, z179, __LINE__, 0, 0, Local0, 1) } } Method(m003,, Serialized) { OUTP("cnr3: Simple CondRefof( , ) negative test for dynamic object") Store(CondRefof(^M003.I000, Local1), Local0) if (Local0) { err(ts, z179, __LINE__, 0, 0, Local0, 1) } Name(I000, 1) Store(CondRefof(^M003.I000, Local1), Local0) if (Local0) { } else { err(ts, z179, __LINE__, 0, 0, Local0, 0) } } Method(m004) { OUTP("cnr4: Simple CondRefof(_OSI, Local0) test") OUTP("if (CondRefOf (_OSI, Local0))") if (CondRefOf (_OSI, Local0)) { OUTP("True") OUTP("_OSI (\"Windows 2001\"):") if (\_OSI ("Windows 2001")) { OUTP("True") } else { OUTP("False") } } else { OUTP("False") } CH03(ts, z179, 0x2f7, __LINE__, 0) } Method(m010) { m000() m001() m002() m003() m004() } CH03(ts, z179, 0x2f8, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { m010() } case (1) { m000() } case (2) { m001() } case (3) { m002() } case (4) { m003() } case (5) { m004() } } CH03(ts, z179, 0x2f9, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(acnr) { IIN0() ms32(1) Return(POUT) } Method(bcnr) { IIN0() ms32(2) Return(POUT) } Method(ccnr) { IIN0() ms32(3) Return(POUT) } Method(dcnr) { IIN0() ms32(4) Return(POUT) } Method(ecnr) { IIN0() ms32(5) Return(POUT) } /* * Hot issue: * * Check storing of a Device into LocalX */ Method(ms33, 1, Serialized) { Name(ts, "ms33") Method(asdl) { /* // Removed 09/2015. iASL now disallows these stores OUTP("Store _SB.ABBU Device object into LocalX, don't check the type") Store(\_SB.ABBU, Local0) */ if (LOr(ABUU, SLCK)) { CH03(ts, z179, 0x2fa, __LINE__, 0) } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } Method(bsdl) { /* // Removed 09/2015. iASL now disallows these stores OUTP("Store _SB.ABBU Device object into LocalX") Store(\_SB.ABBU, Local0) */ if (LOr(ABUU, SLCK)) { Store(ObjectType(Local0), Local1) if (LNotEqual(6, Local1)) { err(ts, z179, __LINE__, 0, 0, Local1, 6) } } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } Method(csdl,, Serialized) { Device(DLOC) {} /* // Removed 09/2015. iASL now disallows these stores OUTP("Store an improper dynamic Device object into LocalX") Store(DLOC, Local0) */ if (LOr(ABUU, SLCK)) { Store(ObjectType(Local0), Local1) if (LNotEqual(6, Local1)) { err(ts, z179, __LINE__, 0, 0, Local1, 6) } else { OUTP("Ok: ObjectType succeeded") } } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } Method(dsdl) { External(\_SB.LNKA) OUTP("Store _SB.LNKA Device object into LocalX") if (CondRefof(\_SB.LNKA, Local2)) { } else { OUTP("CondRefof for _SB.LNKA returns FALSE") return } Store(\_SB.LNKA, Local0) if (LOr(ABUU, SLCK)) { Store(ObjectType(Local0), Local1) if (LNotEqual(6, Local1)) { err(ts, z179, __LINE__, 0, 0, Local1, 6) } } else { CH04(ts, 0, 0xff, z179, __LINE__, 0, 0) } } CH03(ts, z179, 0x2a2, __LINE__, 0) switch (ToInteger (Arg0)) { case (0) { asdl() bsdl() csdl() dsdl() } case (1) { asdl() } case (2) { bsdl() } case (3) { csdl() } case (4) { dsdl() } } CH03(ts, z179, 0x2a3, __LINE__, 0) } /* Methods to run manually (for ABBU only) */ Method(asdl) { IIN0() ms33(1) Return(POUT) } Method(bsdl) { IIN0() ms33(2) Return(POUT) } Method(csdl) { IIN0() ms33(3) Return(POUT) } Method(dsdl) { IIN0() ms33(4) Return(POUT) } Method(msfe) { // Bug 63 issues SRMT("ms10") ms10(0) // Bug 83 issues SRMT("ms11") ms11(0) // Bug 100 issues SRMT("ms12") ms12() // Bug 113 issues SRMT("ms13") ms13(0) // Bug 114 issues SRMT("ms14") ms14(0) // Bug 115 issues SRMT("ms15") ms15(0) // Bug 118 issues SRMT("ms16") ms16(0) // Bug 126 issues SRMT("ms17") ms17(0) // Bug 127 issues SRMT("ms18") if (ABUU) { BLCK() } else { ms18() } // Bug 128 issues SRMT("ms19") ms19(0) // Bug 131 issues SRMT("ms1a") ms1a(0) // Bug 132 issues SRMT("ms1b") ms1b(0) // Bug 133 issues SRMT("ms1c") ms1c(0) // Bug 134 issues SRMT("ms1d") ms1d(0) // Bug 136 issues SRMT("ms1e") if (ABUU) { BLCK() } else { ms1e() } // Local Reference into the Package issues SRMT("ms1f") ms1f(0) // Forward reference within a control method SRMT("ms20") ms20(0) // Recursive method execution SRMT("ms21") ms21(0) // Conditional reference within a control method SRMT("ms22") ms22(0) // Implicit return SRMT("ms23") ms23(0) // Increment/Decrement with String/Buffer SRMT("ms24") if (ABUU) { BLCK() } else { ms24() } // Check Store(..., DeRefof(...)) behavior SRMT("ms25") if (ABUU) { BLCK() } else { ms25(0) } // Exceeding Field Unit SRMT("ms26") if (SMBA) { ms26(0) } else { BLCK() } // Check IndexField implementation SRMT("ms27") if (SMBA) { ms27(0) } else { BLCK() } SRMT("mt27") if (SMBA) { mt27(0) } else { BLCK() } SRMT("mu27") if (SMBA) { mu27(0) } else { BLCK() } SRMT("mv27") if (SMBA) { mv27(0) } else { BLCK() } SRMT("mw27") if (SMBA) { mw27(0) } else { BLCK() } SRMT("mx27") if (SMBA) { mx27(0) } else { BLCK() } SRMT("my27") if (SMBA) { my27(0) } else { BLCK() } SRMT("mz27") if (SMBA) { mz27(0) } else { BLCK() } // Check BankField implementation SRMT("ms28") if (SMBA) { ms28() } else { BLCK() } // Check Acquire/Release SRMT("ms29") ms29(0) // Check ToBuffer optional store SRMT("ms2a") ms2a(0) // Check Package size calculation SRMT("ms2b") ms2b(0) // Check Switch implementation SRMT("ms2c") ms2c(0) // Recursive method with local named SRMT("ms2d") ms2d(0) // Buffer is not shortened on storing short string SRMT("ms2e") ms2e() // Bug 246 issues SRMT("ms2f") ms2f(0) // Bug 247 issues SRMT("ms30") if (ABUU) { BLCK() } else { ms30() } // Load ASL operator SRMT("ms31") if (ABUU) { BLCK() } else { ms31(0) } // CondRefOf ASL operator SRMT("ms32") ms32(0) // Storing of a Device into LocalX SRMT("ms33") ms33(0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/misc/ms0.asl0000700000175000017500000001305714773714157030001 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests originated from bdemo/0262 */ Name(z162, 162) /* * Bug 262 (Fiodor Suietov): * * SUMMARY: Unexpected AE_STACK_OVERFLOW for a method call expression with nested calls */ Method(ms00,, Serialized) { Name(ts, "ms00") Name(iad1, 0x1) Name(iad2, 0x10) Name(iad3, 0x100) Name(iad4, 0x1000) Name(iad5, 0x10000) Name(iad6, 0x100000) Name(iad7, 0x1000000) Method(mad1, 1) {Return(Arg0)} Method(mad7, 7) {Return(Add(Add(Add(Add(Add(Add(Arg0, Arg1), Arg2), Arg3), Arg4), Arg5), Arg6))} Method(m000) { Store(mad7(mad1(iad1), mad1(iad2), mad1(iad3), mad1(iad4), mad1(iad5), mad1(iad6), mad7(mad1(iad1), mad1(iad2), mad1(iad3), mad1(iad4), mad1(iad5), mad1(iad6), mad7(mad1(iad1), mad1(iad2), mad1(iad3), mad1(iad4), mad1(iad5), mad1(iad6), mad7(mad1(iad1), mad1(iad2), mad1(iad3), mad1(iad4), mad1(iad5), mad1(iad6), mad7(mad1(iad1), mad1(iad2), mad1(iad3), mad1(iad4), mad1(iad5), mad1(iad6), mad7(mad1(iad1), mad1(iad2), mad1(iad3), mad1(iad4), mad1(iad5), mad1(iad6), mad7(mad1(iad1), mad1(iad2), mad1(iad3), mad1(iad4), mad1(iad5), mad1(iad6), mad1(iad7)))))))), Local0) Store (Local0, Debug) if (LNotEqual(Local0, 0x1777777)) { err(ts, z162, __LINE__, 0, 0, Local0, 0x1777777) } } CH03(ts, z162, 0x001, __LINE__, 0) m000() CH03(ts, z162, 0x002, __LINE__, 0) } /* * This is how MS actually works */ Method(ms01, 1, Serialized) { Name(ts, "ms01") Name(i000, 0) Name(b000, Buffer(9) {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18}) CreateField(b000, 0, 8, bf00) Name(tp00, 0) Method(m000, 1) { Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, tp00)) { err(ts, z162, __LINE__, 0, 0, Local0, tp00) } } // This is how it should be: Store(c009, tp00) // This is how MS actually works: Store(c00b, tp00) Store(ObjectType(bf00), Local0) if (LNotEqual(Local0, c016)) { err(ts, z162, __LINE__, 0, 0, Local0, c016) } m000(bf00) Store(bf00, i000) Store(ObjectType(i000), Local0) if (LNotEqual(Local0, c009)) { err(ts, z162, __LINE__, 0, 0, Local0, c009) } Store(bf00, Local1) Store(ObjectType(Local1), Local0) if (LNotEqual(Local0, tp00)) { err(ts, z162, __LINE__, 0, 0, Local0, tp00) } Store(bf00, arg0) Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, tp00)) { err(ts, z162, __LINE__, 0, 0, Local0, tp00) } } /* * This is how MS actually works */ Method(ms02, 1, Serialized) { Name(ts, "ms02") Name(i000, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 8 } Name(tp00, 0) Method(m000, 1) { Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, tp00)) { err(ts, z162, __LINE__, 0, 0, Local0, tp00) } } Store(c009, tp00) Store(ObjectType(f000), Local0) if (LNotEqual(Local0, c00d)) { err(ts, z162, __LINE__, 0, 0, Local0, c00d) } m000(f000) Store(f000, i000) Store(ObjectType(i000), Local0) if (LNotEqual(Local0, c009)) { err(ts, z162, __LINE__, 0, 0, Local0, c009) } Store(f000, Local1) Store(ObjectType(Local1), Local0) if (LNotEqual(Local0, tp00)) { err(ts, z162, __LINE__, 0, 0, Local0, tp00) } Store(f000, arg0) Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, tp00)) { err(ts, z162, __LINE__, 0, 0, Local0, tp00) } } /* * Bug 275: * * SUMMARY: Pop result from bottom principle doesn't work */ Method(ms03,, Serialized) { Name(i000, 0x11000000) Name(i001, 0x00220000) Name(p000, Package () {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m000) { Return (p000) } Method(m001, 1) { Return (0xabcd0003) } Method(m002, 2) { Index(arg0, 1, Local0) Store(DerefOf(Local0), Local1) if (LNotEqual(Local1, 0xabcd0001)) { err("ms03", z162, __LINE__, 0, 0, Local0, c00d) } } // Works correctly: m002(p000, 0xabcd0004) m002(m000(), 0xabcd0004) m002(p000, m001(Add(i000, i001))) // Works incorrectly (bug 275): m002(m000(), m001(Add(i000, i001))) } Method(msff) { SRMT("ms00") if (y262) { ms00() } else { BLCK() } SRMT("ms01") ms01(0) SRMT("ms02") ms02(0) SRMT("ms03") if (y275) { ms03() } else { BLCK() } } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/DECL_ABBU.asl0000700000175000017500000000355214773714157027646 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // All declarations to compile for abbu Include("../../../../runtime/cntl/abbu_common.asl") Include("../../../../runtime/cntl/runmode.asl") Include("../../../../runtime/cntl/runpoint.asl") Include("./device/device_abbu.asl") Include("./method/mt0_abbu.asl") Include("./recursion/rec_abbu.asl") Include("./DECL.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/ToDo.txt0000700000175000017500000000262314773714157027251 0ustar ivanhuivanhuremained: ======== * Device * Power Resource * Processor * Thermal Zone * Method Fields in all type applications String - do it in main_aslts.asl part Local & Arg - effectively local, -- what is the behaviour when some type value is passed to it Scope Alias m000(int,str,buf,pkg,dev,pwr,pr,tz,mth) expressions ======================================================= // Types, as returned by ObjectType Name(c008, 0) // Uninitialized Name(c009, 1) // Integer Name(c00a, 2) // String Name(c00b, 3) // Buffer Name(c00c, 4) // Package Name(c00d, 5) // Field Unit Name(c00e, 6) // Device Name(c00f, 7) // Event Name(c010, 8) // Method Name(c011, 9) // Mutex Name(c012, 10) // Operation Region Name(c013, 11) // Power Resource Name(c014, 12) // Processor Name(c015, 13) // Thermal Zone Name(c016, 14) // Buffer Field Name(c017, 15) // DDB Handle Name(c018, 16) // Debug Object Name(c019, 17) // LOCAL_REGION_FIELD Name(c01a, 18) // LOCAL_BANK_FIELD Name(c01b, 19) // LOCAL_INDEX_FIELD Name(c01c, 20) // LOCAL_REFERENCE Name(c01d, 21) // LOCAL_ALIAS Name(c01e, 22) // LOCAL_METHOD_ALIAS Name(c01f, 23) // LOCAL_NOTIFY Name(c020, 24) // LOCAL_ADDRESS_HANDLER Name(c021, 25) // LOCAL_RESOURCE Name(c022, 26) // LOCAL_RESOURCE_FIELD Name(c023, 27) // LOCAL_SCOPE Name(c024, 28) // LOCAL_EXTRA Name(c025, 29) // LOCAL_DATA Name(c027, 30) // Number of different types ========== Put all abbu-demos into this test case acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/device/0000700000175000017500000000000014773714157027074 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/device/ns_dv20.asl0000700000175000017500000001010214773714157031045 0ustar ivanhuivanhu/* * Source file ns_0000.asl * * The tests differ those from ns_0000.asl by that the objects are * passed to methods as argument (Arg) but not directly by name. */ Name(z165, 165) /* * Named Integer i000 */ /* * Simple, 3-level */ Method(in20, 1) { Name(ts, "in20") Name(i000, 0x00000001) Name(p000, Package() {1,2,3,4}) Name(i001, 0) CH03(ts, z165, 0x000, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { if (i001) { CopyObject(p000, arg0) } Return (0xabcd0000) } Return (Add(arg0, m003(arg0))) } Return (Add(arg0, m002(arg0))) } Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(m000(i000), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z165, __LINE__, 0, 0, Local0, 0xabcd0003) } } /* * 8-level * added writing into i000: * Store(0x00040000, i000) */ Method(in21, 1) { Name(ts, "in21") Name(i000, 0x00000001) Name(i001, 0) Name(p000, Package() {1,2,3,4}) Store(arg0, i001) Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Method(m008, 1) { if (i001) { CopyObject(p000, arg0) } Return (0) } Store(0x80000000, arg0) Return (Add(arg0, m008(arg0))) } Store(0x07000000, arg0) Return (Add(arg0, m007(arg0))) } Store(0x00600000, arg0) Return (Add(arg0, m006(arg0))) } Store(0x00050000, arg0) Return (Add(arg0, m005(arg0))) } Store(0x00004000, arg0) Return (Add(arg0, m004(arg0))) } Store(0x00000300, arg0) Return (Add(arg0, m003(arg0))) } Store(0x00000020, arg0) Return (Add(arg0, m002(arg0))) } Store(Add(i000, m001(i000)), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z165, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(i000, 0x00000001)) { err(ts, z165, __LINE__, 0, 0, i000, 0x00000001) } } /* * Recurcive execution of m001: * Add(i000, m001(), Local0) */ Method(in22) { Name(ts, "in22") Name(i000, 0x00100000) Name(i001, 0) Method(m000, 1) { Method(m001, 1) { /* * Because of the stack overflow issues on MS the number * of repetitions was changed from 100 to 9 here. */ if (LLess(i001, 9)) { Increment(arg0) Increment(i001) Add(arg0, m001(arg0), Local0) Return (Local0) } Return (0) } Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(Add(i000, m000(i000)), Local0) if (LNotEqual(Local0, 0x00b0002d)) { err(ts, z165, __LINE__, 0, 0, Local0, 0x00b0002d) } if (LNotEqual(i000, 0x00100000)) { err(ts, z165, __LINE__, 0, 0, i000, 0x00100000) } } /* * Arg instead of i000 (in in01) */ Method(in23, 2) { Name(ts, "in23") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Store(arg0, i001) Store(0x00000001, arg1) Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Method(m008, 1) { if (i001) { CopyObject(p000, arg0) } Return (0) } Store(0x80000000, arg0) Return (Add(arg0, m008(8))) } Store(0x07000000, arg0) Return (Add(arg0, m007(7))) } Store(0x00600000, arg0) Return (Add(arg0, m006(6))) } Store(0x00050000, arg0) Return (Add(arg0, m005(5))) } Store(0x00004000, arg0) Return (Add(arg0, m004(4))) } Store(0x00000300, arg0) Return (Add(arg0, m003(3))) } Store(0x00000020, arg0) Return (Add(arg0, m002(2))) } Store(Add(arg1, m001(1)), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z165, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(arg1, 1)) { err(ts, z165, __LINE__, 0, 0, arg1, 1) } CH03(ts, z165, 0x011, __LINE__, 0) } Method(ini2) { SRMT("in20-0") in20(0) SRMT("in21-0") in21(0) SRMT("in22") in22() SRMT("in23-0") in23(0, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/device/device.asl0000700000175000017500000000502014773714157031034 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Name(z174, 174) /* * Exotic case of CopyObject usage */ Method(md00,, Serialized) { Name(ts, "md00") Device(d000) { Name(i000, 0xabcd0000) Name(i001, 0x11111111) } Device(d001) { Name(i000, 0xabcd0001) } ThermalZone(tz00) { Name(i000, 0xabcd0002) Name(i002, 0x22222222) } if (LNotEqual(d000.i000, 0xabcd0000)) { err(ts, z174, __LINE__, 0, 0, d000.i000, 0xabcd0000) } CopyObject(d001, d000) if (LNotEqual(d000.i000, 0xabcd0001)) { err(ts, z174, __LINE__, 0, 0, d000.i000, 0xabcd0001) } CopyObject(tz00, d000) if (LNotEqual(d000.i000, 0xabcd0002)) { err(ts, z174, __LINE__, 0, 0, d000.i000, 0xabcd0002) } CH03(ts, z174, 0x003, __LINE__, 0) Store(d000.i001, Local0) CH04(ts, 0, 0xff, z174, __LINE__, 0, 0) // Rejected by ASL compiler // if (LNotEqual(d000.i002, 0x22222222)) { // err(ts, z174, __LINE__, 0, 0, d000.i002, 0x22222222) // } } Method(mdff) { SRMT("md00") if (chk0) { md00() } else { BLCK() } } Method(mdfe) { SRMT("dvf2") dvf2() } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/device/ns_dv10.asl0000700000175000017500000004572614773714157031070 0ustar ivanhuivanhu/* * Tests originated from namespace/ns1 */ /* * Package/Buffer/String/Field/IndexField/BankField/BufferField * * Tests below are here * as specific type arguments passing - * arguments though passed directly to method, not as references, * nevertheless allow access to the elements of original objects. */ Name(z164, 164) /* * * Read/write access to elements of Package passed to method. * */ /* * * Elements of Package are constant Integer (0xabcd0000) * */ /* * Package is passed by ArgX to method: * - directly */ Method(in10) { Name(ts, "in10") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(0x11112222, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is passed by ArgX to method: * - by ORef */ Method(in11) { Name(ts, "in11") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m001, 2) { Store(DerefOf(arg1), Local7) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x33334444) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is passed by ArgX to method: * - directly * - by ORef */ Method(in12) { Name(ts, "in12") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m001, 2) { Store(0x11112222, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(arg1), Local7) Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x33334444) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is given directly by name: * - do ORef and pass to LocalX * - do DerefOf and pass to LocalX */ Method(in13) { Name(ts, "in13") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m001, 2) { Store(RefOf(p000), Local6) Store(DerefOf(Local6), Local7) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x33334444) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } } /* * * Elements of Package are Named Integer (i000) * */ /* * Package is passed by ArgX to method * * fail * * Note: * Named element of Package is simply not implemented by MS, * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}. */ Method(in14) { Name(ts, "in14") Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Name(i002, 0xabcd0002) Name(ii00, 0x11112222) Name(p000, Package() {i000, i001, i002, "i000"}) Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(arg0, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(arg0, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(arg0, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z164, __LINE__, 0, 0, Local0, "i000") } Store(ii00, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(p000, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z164, __LINE__, 0, 0, Local0, "i000") } } /* * Package is used directly by Name * * Example to show behaviour of MS for Package(){i000} * * Note: * Named element of Package is simply not implemented by MS, * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}. */ Method(in15) { Name(ts, "in15") Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Name(i002, 0xabcd0002) Name(ii00, 0x11112222) Name(p000, Package() {i000, i001, i002, "i000"}) Store(DerefOf(Index(p000, 0)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 1)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 2)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 3)), Local0) OUTP(Local0) Store(ii00, Index(p000, 1)) OUTP("After re-write 1-th element:") Store(DerefOf(Index(p000, 0)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 1)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 2)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 3)), Local0) OUTP(Local0) } /* * Buffer */ Method(in16) { Name(ts, "in16") Name(b000, Buffer() {0x10, 0x11, 0x12}) Method(m001, 2) { // arg0 - b000 Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x10)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x10) } Store(0x67, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x67)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x67) } // arg1 - RefOf(b000) Store(DerefOf(arg1), Local7) Store(0x55, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x55)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x55) } } m001(b000, RefOf(b000)) Store(DerefOf(Index(b000, 0)), Local0) if (LNotEqual(Local0, 0x67)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x67) } Store(DerefOf(Index(b000, 1)), Local0) if (LNotEqual(Local0, 0x11)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11) } Store(DerefOf(Index(b000, 2)), Local0) if (LNotEqual(Local0, 0x12)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x12) } } /* * Element of Package instead of i000 (in in02) * * Recursive call to m001 */ Method(in17) { Name(ts, "in17") Name(i001, 0) Name(pp00, Package() {0x11111111, 0x00100000, 0x22223333}) Method(m001) { /* * Because of the stack overflow issues on MS the number * of repetitions was changed from 100 to 11 here. */ if (LLess(i001, 11)) { Store(DerefOf(Index(pp00, 1)), Local0) Increment(Local0) Store(Local0, Index(pp00, 1)) Increment(i001) Add(DerefOf(Index(pp00, 1)), m001(), Local0) Return (Local0) } Return (0) } Store(Add(DerefOf(Index(pp00, 1)), m001()), Local0) if (LNotEqual(Local0, 0x00c00042)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x00c00042) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x0010000b)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x0010000b) } CH03(ts, z164, 0x00c, __LINE__, 0) } /* * Buffer Field instead of i000 (in in01) * * fail * * Note: Buffer Field in expressions is not supported by MS, * see msfail.asl */ /* * Field instead of i000 (in in01) */ Method(in18, 1) { Name(ts, "in18") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } CH03(ts, z164, 0x011, __LINE__, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { Store(0x11223344, f001) } Return (0) } Store(0x80000000, f001) Return (Add(f001, m008())) } Store(0x07000000, f001) Return (Add(f001, m007())) } Store(0x00600000, f001) Return (Add(f001, m006())) } Store(0x00050000, f001) Return (Add(f001, m005())) } Store(0x00004000, f001) Return (Add(f001, m004())) } Store(0x00000300, f001) Return (Add(f001, m003())) } Store(0x00000020, f001) Return (Add(f001, m002())) } Store(0x00000001, f001) Store(Add(f001, m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x87654321) } if (arg0) { Store(0x11223344, Local1) } else { Store(0x80000000, Local1) } if (LNotEqual(f001, Local1)) { err(ts, z164, __LINE__, 0, 0, f001, Local1) } CH03(ts, z164, 0x014, __LINE__, 0) } /* * Bank Field instead of i000 (in in01) * * (is this test correct?) */ Method(in19, 1) { Name(ts, "in19") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } BankField(r000, f001, 0, ByteAcc, NoLock, Preserve) { bnk0, 32 } CH03(ts, z164, 0x015, __LINE__, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { Store(0x11223344, bnk0) } Return (0) } Store(0x80000000, bnk0) Return (Add(bnk0, m008())) } Store(0x07000000, bnk0) Return (Add(bnk0, m007())) } Store(0x00600000, bnk0) Return (Add(bnk0, m006())) } Store(0x00050000, bnk0) Return (Add(bnk0, m005())) } Store(0x00004000, bnk0) Return (Add(bnk0, m004())) } Store(0x00000300, bnk0) Return (Add(bnk0, m003())) } Store(0x00000020, bnk0) Return (Add(bnk0, m002())) } Store(0x00000001, bnk0) Store(Add(bnk0, m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x87654321) } if (arg0) { Store(0x11223344, Local1) } else { Store(0x80000000, Local1) } if (LNotEqual(bnk0, Local1)) { err(ts, z164, __LINE__, 0, 0, bnk0, Local1) } CH03(ts, z164, 0x018, __LINE__, 0) } /* * Index Field instead of i000 (in in01) * * (is this test correct?) */ Method(in1a, 1) { Name(ts, "in1a") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } IndexField(f000, f001, ByteAcc, NoLock, Preserve) { if00, 32 } CH03(ts, z164, 0x019, __LINE__, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { Store(0x11223344, if00) } Return (0) } Store(0x80000000, if00) Return (Add(if00, m008())) } Store(0x07000000, if00) Return (Add(if00, m007())) } Store(0x00600000, if00) Return (Add(if00, m006())) } Store(0x00050000, if00) Return (Add(if00, m005())) } Store(0x00004000, if00) Return (Add(if00, m004())) } Store(0x00000300, if00) Return (Add(if00, m003())) } Store(0x00000020, if00) Return (Add(if00, m002())) } Store(0x00000001, if00) Store(Add(if00, m001()), Local0) /* * The benchmark values for arg0==0 below * are how MS actually works. */ if (LNotEqual(Local0, 0x87878787)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x87878787) } if (arg0) { Store(0x11223344, Local1) } else { Store(0x80808080, Local1) } if (LNotEqual(if00, Local1)) { err(ts, z164, __LINE__, 0, 0, if00, Local1) } CH03(ts, z164, 0x01c, __LINE__, 0) } /* * Element of Buffer instead of i000 (in in01) */ Method(in1b, 1) { Name(ts, "in1b") Name(i001, 0) Name(b000, Buffer() {0x11, 0x01, 0x22}) CH03(ts, z164, 0x01d, __LINE__, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Return (0) } Store(0x07, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m007())) } Store(0x06, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m006())) } Store(0x05, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m005())) } Store(0x04, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m004())) } Store(0x03, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m003())) } Store(0x02, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m002())) } Store(Add(DerefOf(Index(b000, 1)), m001()), Local0) if (LNotEqual(Local0, 0x1c)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x1c) } Store(DerefOf(Index(b000, 1)), Local0) if (arg0) { Store(0xff, Local1) } else { Store(0x07, Local1) } if (LNotEqual(Local0, Local1)) { err(ts, z164, __LINE__, 0, 0, Local0, Local1) } CH03(ts, z164, 0x020, __LINE__, 0) } /* * Element of Buffer instead of i000 (in in01) * * in1b+: * added argument to methods and b000 passed without any use of that * parameter inside the methods */ Method(in1c, 1) { Name(ts, "in1c") Name(i001, 0) Name(b000, Buffer() {0x11, 0x01, 0x22}) CH03(ts, z164, 0x01d, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Return (0) } Store(0x07, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m007(b000))) } Store(0x06, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m006(b000))) } Store(0x05, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m005(b000))) } Store(0x04, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m004(b000))) } Store(0x03, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m003(b000))) } Store(0x02, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m002(b000))) } Store(Add(DerefOf(Index(b000, 1)), m001(b000)), Local0) Return (Local0) } CH03(ts, z164, 0x000, __LINE__, 0) Store(m000(b000), Local0) if (LNotEqual(Local0, 0x1c)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x1c) } Store(DerefOf(Index(b000, 1)), Local0) if (arg0) { Store(0xff, Local1) } else { Store(0x07, Local1) } if (LNotEqual(Local0, Local1)) { err(ts, z164, __LINE__, 0, 0, Local0, Local1) } CH03(ts, z164, 0x020, __LINE__, 0) } /* * Element of Package instead of i000 (in in01) */ Method(in1d) { Name(ts, "in1d") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Name(pp00, Package() {0x11111111, 0x00000001, 0x22223333}) CH03(ts, z164, 0x006, __LINE__, 0) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Return (0) } Store(0x07000000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m007())) } Store(0x00600000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m006())) } Store(0x00050000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m005())) } Store(0x00004000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m004())) } Store(0x00000300, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m003())) } Store(0x00000020, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m002())) } Store(Add(DerefOf(Index(pp00, 1)), m001()), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x07654321) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x07000000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x07000000) } CH03(ts, z164, 0x009, __LINE__, 0) } /* * Element of Package instead of i000 (in in01) * * in1d+: * added argument to methods and b000 passed without any use of that * parameter inside the methods */ Method(in1e) { Name(ts, "in1e") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Name(pp00, Package() {0x11111111, 0x00000001, 0x22223333}) CH03(ts, z164, 0x006, __LINE__, 0) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Return (0) } Store(0x07000000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m007(pp00))) } Store(0x00600000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m006(pp00))) } Store(0x00050000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m005(pp00))) } Store(0x00004000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m004(pp00))) } Store(0x00000300, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m003(pp00))) } Store(0x00000020, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m002(pp00))) } Store(Add(DerefOf(Index(pp00, 1)), m001(pp00)), Local0) Return (Local0) } CH03(ts, z164, 0x000, __LINE__, 0) Store(m000(pp00), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x07654321) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x07000000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x07000000) } CH03(ts, z164, 0x009, __LINE__, 0) } Method(ini1) { SRMT("in10") in10() SRMT("in11") in11() SRMT("in12") in12() SRMT("in13") in13() SRMT("in14") if (chk0) { in14() } else { BLCK() } SRMT("in15") if (chk0) { in15() } else { BLCK() } SRMT("in16") in16() SRMT("in17") in17() SRMT("in18-0") in18(0) SRMT("in19-0") in19(0) SRMT("in1a-0") in1a(0) SRMT("in1b-0") in1b(0) SRMT("in1c-0") in1c(0) SRMT("in1d") in1d() SRMT("in1e") if (fix0) { in1e() } else { BLCK() } } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/device/device_abbu.asl0000700000175000017500000001115214773714157032030 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Aplicable for abbu only */ Name(z172, 172) Method(dvf2,, Serialized) { Name(ts, "dvf2") Device(d000) { Name(i000, 0x00000001) } Method(m001) { Method(m002) { Method(m003) { Return (0xabcd0000) } Return (Add(\_SB_.ABBU.dvf2.d000.i000, m003())) } Return (Add(\_SB_.ABBU.dvf2.d000.i000, m002())) } Store(Add(\_SB_.ABBU.dvf2.d000.i000, m001()), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z172, __LINE__, 0, 0, Local0, 0xabcd0003) } } /* * Named object as element of Package * * Named element of Package, perhaps, is not implemented by MS, * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}. * * fail */ Method(mf26,, Serialized) { Name(ts, "mf26") Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Name(i002, 0xabcd0002) Name(i003, 0xabcd0003) Name(ii00, 0x11112222) Name(p000, Package() { i000, i001, i002, "i000", \_SB_.ABBU.mf26.i003, 0xabcd0004 }) Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(arg0, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(arg0, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(arg0, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z164, __LINE__, 0, 0, Local0, "i000") } Store(DerefOf(Index(arg0, 4)), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0003) } Store(DerefOf(Index(arg0, 5)), Local0) if (LNotEqual(Local0, 0xabcd0004)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0004) } Store(ii00, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } } if (0) { Store(DerefOf(Index(p000, 0)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 1)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 2)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 3)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 4)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 5)), Local0) OUTP(Local0) } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(p000, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z164, __LINE__, 0, 0, Local0, "i000") } Store(DerefOf(Index(p000, 4)), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0003) } Store(DerefOf(Index(p000, 5)), Local0) if (LNotEqual(Local0, 0xabcd0004)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0004) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/device/ns_dv30.asl0000700000175000017500000004115714773714157031064 0ustar ivanhuivanhu/* * Source file ns_0010.asl * * The tests differ those from ns_0010.asl by that the objects are * passed to methods as argument (Arg) but not directly by name. */ Name(z166, 166) /* * * Read/write access to elements of Package passed to method. * */ /* * * Elements of Package are constant Integer (0xabcd0000) * */ /* * Package is passed by ArgX to method: * - directly */ Method(in30) { Name(ts, "in30") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m000, 2) { Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(0x11112222, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is passed by ArgX to method: * - by ORef */ Method(in31) { Name(ts, "in31") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m000, 2) { Method(m001, 2) { Store(DerefOf(arg1), Local7) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x33334444) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is passed by ArgX to method: * - directly * - by ORef */ Method(in32) { Name(ts, "in32") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m000, 2) { Method(m001, 2) { Store(0x11112222, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(arg1), Local7) Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x33334444) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is given directly by name: * - do ORef and pass to LocalX * - do DerefOf and pass to LocalX */ Method(in33) { Name(ts, "in33") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m000, 2) { Method(m001, 2) { Store(RefOf(arg0), Local6) Store(DerefOf(Local6), Local7) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x33334444) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0002) } } /* * * Elements of Package are Named Integer (i000) * */ /* * Package is passed by ArgX to method * * fail * * Note: * Named element of Package is simply not implemented by MS, * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}. */ Method(in34) { Name(ts, "in34") Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Name(i002, 0xabcd0002) Name(ii00, 0x11112222) Name(p000, Package() {i000, i001, i002, "i000"}) Method(m000, 2) { Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z162, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(arg0, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z162, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(arg0, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z162, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(arg0, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z162, __LINE__, 0, 0, Local0, "i000") } Store(ii00, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z162, __LINE__, 0, 0, Local0, 0x11112222) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z162, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z162, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z162, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(p000, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z162, __LINE__, 0, 0, Local0, "i000") } } /* * Buffer */ Method(in36) { Name(ts, "in36") Name(b000, Buffer() {0x10, 0x11, 0x12}) Method(m000, 2) { Method(m001, 2) { // arg0 - b000 Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x10)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x10) } Store(0x67, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x67)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x67) } // arg1 - RefOf(b000) Store(DerefOf(arg1), Local7) Store(0x55, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x55)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x55) } } m001(arg0, arg1) } m000(b000, RefOf(b000)) Store(DerefOf(Index(b000, 0)), Local0) if (LNotEqual(Local0, 0x67)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x67) } Store(DerefOf(Index(b000, 1)), Local0) if (LNotEqual(Local0, 0x11)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11) } Store(DerefOf(Index(b000, 2)), Local0) if (LNotEqual(Local0, 0x12)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x12) } } /* * Element of Package instead of i000 (in in02) * * Recursive call to m001 */ Method(in37) { Name(ts, "in37") Name(i001, 0) Name(pp00, Package() {0x11111111, 0x00100000, 0x22223333}) Method(m000, 1) { Method(m001, 1) { /* * Because of the stack overflow issues on MS the number * of repetitions was changed from 100 to 9 here. */ if (LLess(i001, 9)) { Store(DerefOf(Index(arg0, 1)), Local0) Increment(Local0) Store(Local0, Index(arg0, 1)) Increment(i001) Add(DerefOf(Index(arg0, 1)), m001(arg0), Local0) Return (Local0) } Return (0) } Store(Add(DerefOf(Index(arg0, 1)), m001(arg0)), Local0) Return (Local0) } Store(m000(pp00), Local0) if (LNotEqual(Local0, 0x00a0002d)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x00a0002d) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x00100009)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x00100009) } CH03(ts, z166, 0x00c, __LINE__, 0) } /* * Buffer Field instead of i000 (in in01) * * fail * * Note: Buffer Field in expressions is not supported by MS, * see msfail.asl */ /* * Field instead of i000 (in in01) */ Method(in38, 1) { Name(ts, "in38") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } CH03(ts, z166, 0x011, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { /* * To exclude stack overflow * >>>>>>>>>>>>>>>> Method(m008, 1) { if (i001) { Store(0x11223344, arg0) } Return (0) } Store(0x80000000, arg0) Return (Add(arg0, m008(arg0))) * <<<<<<<<<<<<<<<< */ Return (0) } Store(0x07000000, arg0) Return (Add(arg0, m007(arg0))) } Store(0x00600000, arg0) Return (Add(arg0, m006(arg0))) } Store(0x00050000, arg0) Return (Add(arg0, m005(arg0))) } Store(0x00004000, arg0) Return (Add(arg0, m004(arg0))) } Store(0x00000300, arg0) Return (Add(arg0, m003(arg0))) } Store(0x00000020, arg0) Return (Add(arg0, m002(arg0))) } Store(0x00000001, arg0) Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0xabcd9876, f001) Store(m000(f001), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x07654321) } if (arg0) { Store(0x11223344, Local1) } else { Store(0xabcd9876, Local1) } if (LNotEqual(f001, Local1)) { err(ts, z166, __LINE__, 0, 0, f001, Local1) } CH03(ts, z166, 0x014, __LINE__, 0) } /* * Bank Field instead of i000 (in in01) * * (is this test correct?) */ Method(in39, 1) { Name(ts, "in39") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } BankField(r000, f001, 0, ByteAcc, NoLock, Preserve) { bnk0, 32 } CH03(ts, z166, 0x015, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { /* * To exclude stack overflow * >>>>>>>>>>>>>>>> Method(m008, 1) { if (i001) { Store(0x11223344, arg0) } Return (0) } Store(0x80000000, arg0) Return (Add(arg0, m008(arg0))) * <<<<<<<<<<<<<<<< */ Return (0) } Store(0x07000000, arg0) Return (Add(arg0, m007(arg0))) } Store(0x00600000, arg0) Return (Add(arg0, m006(arg0))) } Store(0x00050000, arg0) Return (Add(arg0, m005(arg0))) } Store(0x00004000, arg0) Return (Add(arg0, m004(arg0))) } Store(0x00000300, arg0) Return (Add(arg0, m003(arg0))) } Store(0x00000020, arg0) Return (Add(arg0, m002(arg0))) } Store(0x00000001, arg0) Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0xaabbccdd, bnk0) Store(m000(bnk0), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x07654321) } if (arg0) { Store(0x11223344, Local1) } else { Store(0xaabbccdd, Local1) } if (LNotEqual(bnk0, Local1)) { err(ts, z166, __LINE__, 0, 0, bnk0, Local1) } CH03(ts, z166, 0x018, __LINE__, 0) } /* * Index Field instead of i000 (in in01) * * (is this test correct?) */ Method(in3a, 1) { Name(ts, "in3a") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } IndexField(f000, f001, ByteAcc, NoLock, Preserve) { if00, 32 } CH03(ts, z166, 0x019, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { /* * To exclude stack overflow * >>>>>>>>>>>>>>>> Method(m008, 1) { if (i001) { Store(0x11223344, if00) } Return (0) } Store(0x80000000, if00) Return (Add(if00, m008(if00))) * <<<<<<<<<<<<<<<< */ Return (0) } Store(0x07000000, if00) Return (Add(if00, m007(if00))) } Store(0x00600000, if00) Return (Add(if00, m006(if00))) } Store(0x00050000, if00) Return (Add(if00, m005(if00))) } Store(0x00004000, if00) Return (Add(if00, m004(if00))) } Store(0x00000300, if00) Return (Add(if00, m003(if00))) } Store(0x00000020, if00) Return (Add(if00, m002(if00))) } Store(0x00000001, if00) Store(Add(if00, m001(if00)), Local0) Return (Local0) } Store(0xabababab, if00) Store(m000(if00), Local0) /* * The benchmark values for arg0==0 below * are how MS actually works. */ if (LNotEqual(Local0, 0x07070707)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x07070707) } if (arg0) { Store(0x11223344, Local1) } else { Store(0x07070707, Local1) } if (LNotEqual(if00, Local1)) { err(ts, z166, __LINE__, 0, 0, if00, Local1) } CH03(ts, z166, 0x01c, __LINE__, 0) } /* * Element of Buffer instead of i000 (in in01) * * see in3c below * * Method(in3b, 1) * { * } */ /* * Element of Buffer instead of i000 (in in01) * * m01b+: * added argument to methods and b000 passed without any use of that * parameter inside the methods */ Method(in3c, 1) { Name(ts, "in3c") Name(i001, 0) Name(b000, Buffer() {0x11, 0x01, 0x22}) CH03(ts, z162, 0x01d, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Return (0) } Store(0x07, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m007(arg0))) } Store(0x06, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m006(arg0))) } Store(0x05, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m005(arg0))) } Store(0x04, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m004(arg0))) } Store(0x03, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m003(arg0))) } Store(0x02, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m002(arg0))) } Store(Add(DerefOf(Index(arg0, 1)), m001(arg0)), Local0) Return (Local0) } Store(m000(b000), Local0) if (LNotEqual(Local0, 0x1c)) { err(ts, z162, __LINE__, 0, 0, Local0, 0x1c) } Store(DerefOf(Index(b000, 1)), Local0) if (arg0) { Store(0xff, Local1) } else { Store(0x07, Local1) } if (LNotEqual(Local0, Local1)) { err(ts, z162, __LINE__, 0, 0, Local0, Local1) } CH03(ts, z162, 0x020, __LINE__, 0) } /* * Element of Package instead of i000 (in in01) * * see in3e below * * Method(in3d) * { * } */ /* * Element of Package instead of i000 (in in01) * * m01d+: * added argument to methods and b000 passed without any use of that * parameter inside the methods */ Method(in3e) { Name(ts, "in3e") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Name(pp00, Package() {0x11111111, 0x00000001, 0x22223333}) CH03(ts, z162, 0x006, __LINE__, 0) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Return (0) } Store(0x07000000, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m007(arg0))) } Store(0x00600000, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m006(arg0))) } Store(0x00050000, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m005(arg0))) } Store(0x00004000, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m004(arg0))) } Store(0x00000300, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m003(arg0))) } Store(0x00000020, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m002(arg0))) } Store(Add(DerefOf(Index(arg0, 1)), m001(arg0)), Local0) Return (Local0) } Store(m000(pp00), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z162, __LINE__, 0, 0, Local0, 0x07654321) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x07000000)) { err(ts, z162, __LINE__, 0, 0, Local0, 0x07000000) } CH03(ts, z162, 0x009, __LINE__, 0) } Method(ini3) { SRMT("in30") in30() SRMT("in31") in31() SRMT("in32") in32() SRMT("in33") in33() SRMT("in34") if (chk0) { in34() } else { BLCK() } SRMT("in36") in36() SRMT("in37") in37() SRMT("in38-0") in38(0) SRMT("in39-0") in39(0) SRMT("in3a-0") in3a(0) SRMT("in3c-0") in3c(0) SRMT("in3e") in3e() } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/device/ns_dv00.asl0000700000175000017500000003077114773714157031061 0ustar ivanhuivanhu/* * Access to elements of combined objects (Device) */ Name(z167, 167) /* * Named Integer i000 */ /* * Simple, 3-level */ Method(dv00) { Name(ts, "dv00") Device(d000) { Name(i000, 0x00000001) } Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Return (0xabcd0000) } Return (Add(arg0, m003(arg0))) } Return (Add(arg0, m002(arg0))) } Store(Add(d000.i000, m001(d000.i000)), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0003) } } Method(dvf0) { Name(ts, "dvf0") Device(d000) { Name(i000, 0x00000001) } Method(m001) { Method(m002) { Method(m003) { Return (0xabcd0000) } Return (Add(^^d000.i000, m003())) } Return (Add(^d000.i000, m002())) } Store(Add(d000.i000, m001()), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0003) } } Method(dvf1) { Name(ts, "dvf1") Device(d000) { Name(i000, 0x00000001) } Method(m001) { Method(m002) { Method(m003) { Return (0xabcd0000) } Return (Add(^^^dvf1.d000.i000, m003())) } Return (Add(^^dvf1.d000.i000, m002())) } Store(Add(^dvf1.d000.i000, m001()), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0003) } } /* * 8-level * added writing into i000: * Store(0x00040000, i000) */ Method(dv01, 1) { Name(ts, "dv01") Name(i000, 0x00000001) Name(i001, 0) Name(p000, Package() {1,2,3,4}) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { CopyObject(p000, i000) } Return (0) } Store(0x80000000, i000) Return (Add(i000, m008())) } Store(0x07000000, i000) Return (Add(i000, m007())) } Store(0x00600000, i000) Return (Add(i000, m006())) } Store(0x00050000, i000) Return (Add(i000, m005())) } Store(0x00004000, i000) Return (Add(i000, m004())) } Store(0x00000300, i000) Return (Add(i000, m003())) } Store(0x00000020, i000) Return (Add(i000, m002())) } Store(Add(i000, m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z167, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(i000, 0x80000000)) { err(ts, z167, __LINE__, 0, 0, i000, 0x80000000) } } /* * Recurcive execution of m001: * Add(i000, m001(), Local0) */ Method(dv02) { Name(ts, "dv02") Name(i000, 0x00100000) Name(i001, 0) Method(m001) { /* * Because of the stack overflow issues on MS the number * of repetitions was changed from 100 to 11 here. */ if (LLess(i001, 11)) { Increment(i000) Increment(i001) Add(i000, m001(), Local0) Return (Local0) } Return (0) } Store(Add(i000, m001()), Local0) if (LNotEqual(Local0, 0x00c00042)) { err(ts, z167, __LINE__, 0, 0, Local0, 0x00c00042) } if (LNotEqual(i000, 0x0010000b)) { err(ts, z167, __LINE__, 0, 0, i000, 0x0010000b) } } /* * Local instead of i000 (in in01) */ Method(dv03, 1) { Name(ts, "dv03") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Store(arg0, i001) Store(0x00000001, Local7) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { CopyObject(p000, Local7) } Return (0) } Store(0x80000000, Local7) Return (Add(Local7, m008())) } Store(0x07000000, Local7) Return (Add(Local7, m007())) } Store(0x00600000, Local7) Return (Add(Local7, m006())) } Store(0x00050000, Local7) Return (Add(Local7, m005())) } Store(0x00004000, Local7) Return (Add(Local7, m004())) } Store(0x00000300, Local7) Return (Add(Local7, m003())) } Store(0x00000020, Local7) Return (Add(Local7, m002())) } Store(Add(Local7, m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z167, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(Local7, 1)) { err(ts, z167, __LINE__, 0, 0, Local7, 1) } } /* * Arg instead of i000 (in in01) * * see ns_0100.asl */ /* * 8-level * added writing into i000: * Store(0x00040000, i000) * * dv01 +: * m00X are passed with i000 * argX inside m00X is rewritten */ Method(dv04) { Name(ts, "dv04") Name(i000, 0x00000001) Name(i001, 0) Name(p000, Package() {1,2,3,4}) Method(m001, 2) { Method(m002, 2) { Method(m003, 2) { Method(m004, 2) { Method(m005, 2) { Method(m006, 2) { Method(m007, 2) { /* * ====================== >>>>>>>> * Sometimes, after I added a big group of * 'If' operators, this fragment of code causes * break of execution on MS. But, namely -- * sometimes! To investigate the reason I * commented part by part of it to find * workable code, then un-commented it * part by part too. * It entire initial code * started working on MS again! */ /* Method(m008, 2) { if (i001) { CopyObject(p000, i000) } Store(0x10000008, arg0) Return (0) } Store(0x80000000, i000) Store(0x10000007, arg0) Return (Add(i000, m008(i000, arg0))) */ /* * ====================== <<<<<<<< */ Store(0x80000000, i000) Store(0x10000007, arg0) Add(i000, 0, Local0) Return (Local0) } Store(0x07000000, i000) Store(0x10000006, arg0) Return (Add(i000, m007(i000, arg0))) } Store(0x00600000, i000) Store(0x10000005, arg0) Return (Add(i000, m006(i000, arg0))) } Store(0x00050000, i000) Store(0x10000004, arg0) Return (Add(i000, m005(i000, arg0))) } if (LNotEqual(arg0, 0x00000300)) { err(ts, z167, __LINE__, 0, 0, arg0, 0x00000300) } if (LNotEqual(arg1, 0x10000001)) { err(ts, z167, __LINE__, 0, 0, arg1, 0x10000001) } Store(0x00004000, i000) Store(0x10000003, arg0) Return (Add(i000, m004(i000, arg0))) } if (LNotEqual(arg0, 0x00000020)) { err(ts, z167, __LINE__, 0, 0, arg0, 0x00000020) } if (LNotEqual(i000, 0x00000020)) { err(ts, z167, __LINE__, 0, 0, i000, 0x00000020) } Store(0x10000002, arg0) if (LNotEqual(i000, 0x00000020)) { err(ts, z167, __LINE__, 0, 0, i000, 0x00000020) } if (LNotEqual(arg0, 0x10000002)) { err(ts, z167, __LINE__, 0, 0, arg0, 0x10000002) } Store(0x00000300, i000) if (LNotEqual(i000, 0x00000300)) { err(ts, z167, __LINE__, 0, 0, i000, 0x00000300) } if (LNotEqual(arg0, 0x10000002)) { err(ts, z167, __LINE__, 0, 0, arg0, 0x10000002) } if (LNotEqual(arg1, 0x10000001)) { err(ts, z167, __LINE__, 0, 0, arg1, 0x10000001) } Store(0x10000002, arg0) Store(0x00000300, i000) Return (Add(i000, m003(i000, arg1))) } if (LNotEqual(arg0, 0x00000001)) { err(ts, z167, __LINE__, 0, 0, arg0, 0x00000001) } if (LNotEqual(i000, 0x00000001)) { err(ts, z167, __LINE__, 0, 0, i000, 0x00000001) } Store(0x10000001, arg0) if (LNotEqual(i000, 0x00000001)) { err(ts, z167, __LINE__, 0, 0, i000, 0x00000001) } if (LNotEqual(arg0, 0x10000001)) { err(ts, z167, __LINE__, 0, 0, arg0, 0x10000001) } Store(0x00000020, i000) if (LNotEqual(i000, 0x00000020)) { err(ts, z167, __LINE__, 0, 0, i000, 0x00000020) } if (LNotEqual(arg0, 0x10000001)) { err(ts, z167, __LINE__, 0, 0, arg0, 0x10000001) } if (LNotEqual(arg1, 0x10000000)) { err(ts, z167, __LINE__, 0, 0, arg1, 0x10000000) } Store(0x10000001, arg0) Store(0x00000020, i000) Return (Add(i000, m002(i000, arg0))) } Store(Add(i000, m001(i000, 0x10000000)), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z167, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(i000, 0x80000000)) { err(ts, z167, __LINE__, 0, 0, i000, 0x80000000) } } /* * Note: now the checkings are so that dv05 succeeds on MS. */ Method(dv05) { Name(ts, "dv05") Name(i000, 0xabcd0000) Name(s000, "qwrtyu0003") Name(b000, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) Name(p000, Package() {0xabcd0001, 0xabcd0002, 0xabcd0003}) Event(e000) Mutex(mx00, 0) Method(mmm0) { Name(im00, 0xabcd0004) Name(sm00, "qwertyui") // Return ( "qwertyui" ) } Method(mmm1) { Name(im00, 0xabcd0004) Name(sm00, "qwertyui") // Return ( 0xabcd0004 ) Return ( "qwertyui" ) } Device(d000) { Name(id00, 0xabcd0005) } ThermalZone(tz00) { Name(itz0, 0xabcd0006) } Processor(pr00, 0, 0xFFFFFFFF, 0) { Name(ipr0, 0xabcd0007) } PowerResource(pw00, 1, 0) { Name(ipw0, 0xabcd0008) } OperationRegion(r000, SystemMemory, 0x100, 0x100) Name(b001, Buffer() {0xa0,0xa1,0xa2,0xa3,0xa4}) CreateField(b001, 0, 8, bf00) OperationRegion(r001, SystemMemory, 0x100, 0x100) Field(r001, ByteAcc, NoLock, Preserve) {f000,32, f001,32, f002,32, f003,32} BankField(r001, f001, 0, ByteAcc, NoLock, Preserve) {bnk0,32} IndexField(f002, f003, ByteAcc, NoLock, Preserve) {if00,32, if01,32} Method(m001, 2) { Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, arg1)) { err(ts, z167, __LINE__, 0, 0, Local0, arg1) } Return (5) } CH03(ts, z167, 0x000, __LINE__, 0) Store(Add(DerefOf(Index(p000, 0)), m001(i000, c009)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(s000, c00a)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(b000, c00b)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(p000, c00c)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(e000, c00f)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(mx00, c011)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(mmm0, c008)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(mmm1, c00a)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(d000, c00e)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(tz00, c015)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(pr00, c014)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(pw00, c013)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(r000, c012)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(bf00, c00b)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(f000, c009)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(bnk0, c009)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(if00, c009)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0006) } CH03(ts, z167, 0x000, __LINE__, 0) } Method(dv06) { Name(ts, "dv06") Name(i000, 0xabcd0000) Store(ObjectType(i000), Local0) if (LNotEqual(Local0, c009)) { err(ts, z167, __LINE__, 0, 0, Local0, c009) } } Method(dev0) { SRMT("dv00") dv00() SRMT("dvf0") dvf0() SRMT("dvf1") dvf1() SRMT("dv01-0") dv01(0) SRMT("dv02") dv02() SRMT("dv03-0") dv03(0) SRMT("dv04") dv04() SRMT("dv05") if (LAnd(fix1, chk3)) { /* * It breaks MS while re-booting, * for ACPICA it causes exception * and breaks path. */ dv05() } else { BLCK() } SRMT("dv06") dv06() } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/device/device_aslts.asl0000700000175000017500000001033614773714157032250 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Aplicable for AcpiExec only */ Name(z173, 173) Method(dvf2,, Serialized) { Name(ts, "dvf2") Device(d000) { Name(i000, 0x00000001) } Method(m001) { Method(m002) { Method(m003) { Return (0xabcd0000) } Return (Add(\dvf2.d000.i000, m003())) } Return (Add(\dvf2.d000.i000, m002())) } Store(Add(\dvf2.d000.i000, m001()), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z173, __LINE__, 0, 0, Local0, 0xabcd0003) } } /* * Named object as element of Package * * Named element of Package, perhaps, is not implemented by MS, * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}. */ Method(mf26,, Serialized) { Name(ts, "mf26") Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Name(i002, 0xabcd0002) Name(i003, 0xabcd0003) Name(ii00, 0x11112222) Name(p000, Package() { i000, i001, i002, "i000", \mf26.i003, 0xabcd0004 }) Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(arg0, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(arg0, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(arg0, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z164, __LINE__, 0, 0, Local0, "i000") } Store(DerefOf(Index(arg0, 4)), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0003) } Store(DerefOf(Index(arg0, 5)), Local0) if (LNotEqual(Local0, 0xabcd0004)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0004) } Store(ii00, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(p000, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z164, __LINE__, 0, 0, Local0, "i000") } Store(DerefOf(Index(p000, 4)), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0003) } Store(DerefOf(Index(p000, 5)), Local0) if (LNotEqual(Local0, 0xabcd0004)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0004) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/device/Info.txt0000700000175000017500000000010314773714157030525 0ustar ivanhuivanhuThe tests of this 'device' directory are just started, in progress.acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/ns6.asl0000700000175000017500000000130714773714157027050 0ustar ivanhuivanhu/* * Tests originated from namespace/ns6 */ /* in progress SEE: do the same as ns3.asl but complex some pass by arg/local/ store/copy to other Named and some directly (locally/globally allocated objects) */ // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! z101 ???????????????????????????? // ?????????????????????????????????????????????????? Name(z101, 101) Method(m600,, Serialized) { Name(ts, "m600") Name(i000, 0xabcd0000) Method(m000, 1) { Store(0x11223344, i000) if (LNotEqual(arg0, 0xabcd0000)) { err(ts, z101, __LINE__, 0, 0, arg0, 0xabcd0000) } } m000(i000) if (LNotEqual(i000, 0x11223344)) { err(ts, z101, __LINE__, 0, 0, i000, 0x11223344) } } Method(n006) { SRMT("m600") m600() } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/MAIN.asl0000700000175000017500000001073414773714157027072 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests applicable to both AcpiExec and MS-abbu utilities */ DefinitionBlock("extra.aml", "DSDT", 0x1, "INTEL", "ABCDE", 0x1) { Scope(\_SB) { Device(ABBU) { Name(_HID, "ACPIABB0") Method(ENBL) { Return(Zero) } Method(TEST) { Return(Zero) } Method(TST) { Return(TSTS) } /* Definitions of common use */ /* * AI00: * * The abbu utility provides some restricted amount of elements of POUT, * it is not the constant number of elements of Package (!), not good interface, * but looks like some restricted amount of memory. When that variable number of * elements is exceeded, abbu returns FAILURE which we can't differentiate from * the actual failure of MS being examined. So, don't use the big AI00 to be sure * that returned FAILURE, if any, is not caused by the mentioned fact. */ Name (AI00, 17) // MAX Name (POUT, Package(17) {}) Name (AI01, 0) // current OUT Name (AI02, 0) // counter of lost POUT messages Name (AI07, 0) // print once only the end-message Name (AI08, 0) // total number of messages Method(OUUP, 2) { /* Last 6 lines are reserved for the test run summary and end-message */ Subtract(AI00, 6, Local0) if (LLess(AI01, Local0)) { Store(arg0, Index(POUT, AI01)) Increment(AI01) } else { /* Last 2 lines are reserved for the end-message */ Subtract(AI00, 2, Local0) if (LAnd(arg1, LLess(AI01, Local0))) { Store(arg0, Index(POUT, AI01)) Increment(AI01) } else { if (LNot(AI07)) { Store(1, AI07) Subtract(AI00, 2, Local0) Store("******** POUT exceeded ********", Index(POUT, Local0)) } } } /* Last element of POUT is the total number of messages */ Increment(AI08) Subtract(AI00, 1, Local0) Store(AI08, Index(POUT, Local0)) } Method(OUTP, 1) { OUUP(arg0, 0) } /* * Reset POUT service to the initial state */ Method(RST9,, Serialized) { Name(lpN0, 0) Name(lpC0, 0) Store (0, AI01) Store (0, AI02) Store (0, AI07) Store (0, AI08) Store(AI00, lpN0) Store(0, lpC0) While (lpN0) { Store(" ", Index(POUT, lpC0)) Decrement(lpN0) Increment(lpC0) } Subtract(AI00, 2, Local0) Store("Total number of messages:", Index(POUT, Local0)) Increment(Local0) Store(0, Index(POUT, Local0)) } // ====================================================== // // ====================================================== // // ====================================================== // /* Definitions relative to the subject */ Include("./DECL_ABBU.asl") // ====================================================== // // ====================================================== // // ====================================================== // Name(TSTS, Package() { "ENBL", "TEST", "TST_", "MAIN", "IN00", }) } } Method(MAIN) { Return (\_SB_.ABBU.MAIN()) } Method(MN00) { Return (\_SB_.ABBU.MN00()) } Method(MN01) { Return (\_SB_.ABBU.MN01()) } } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/Makefile0000700000175000017500000000042014773714157027274 0ustar ivanhuivanhu# abbu ASLMODADD= MAIN_ASLTS AMLMOD= extra extra_aslts COLL= ../.. ADD_ASLFLAGS=-vx 6142 #illegal forward reference ADD_ASLFLAGS+=-vx 6152 #recursive method call ADD_ASLFLAGS+=-vx 6163 #illegal reference in method TOP= $(COLL)/../../.. include $(COLL)/Makefile.install acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/run_points.asl0000700000175000017500000000403214773714157030540 0ustar ivanhuivanhu/* Methods to run manually (for ABBU only) */ Method(lf00) { IIN0() mf00() Return(POUT) } Method(lf01) { IIN0() mf01() Return(POUT) } Method(lf02) { IIN0() mf02() Return(POUT) } Method(lf03) { IIN0() mf03() Return(POUT) } Method(lf04) { IIN0() mf04() Return(POUT) } Method(lf05) { IIN0() mf05() Return(POUT) } Method(lf06) { IIN0() mf06() Return(POUT) } Method(lf07) { IIN0() mf07() Return(POUT) } Method(lf08) { IIN0() mf08() Return(POUT) } Method(lf09) { IIN0() mf09() Return(POUT) } Method(lf0a) { IIN0() mf0a() Return(POUT) } Method(lf0b) { IIN0() mf0b() Return(POUT) } Method(lf0c) { IIN0() mf0c() Return(POUT) } Method(lf0d) { IIN0() mf0d() Return(POUT) } Method(lf0e) { IIN0() mf0e() Return(POUT) } Method(lf0f) { IIN0() mf0f() Return(POUT) } Method(lf10) { IIN0() mf10() Return(POUT) } Method(lf11) { IIN0() mf11() Return(POUT) } Method(lf12) { IIN0() mf12() Return(POUT) } Method(lf13) { IIN0() mf13() Return(POUT) } Method(lf14) { IIN0() mf14() Return(POUT) } Method(lf15) { IIN0() mf15() Return(POUT) } Method(lf16) { IIN0() mf16() Return(POUT) } Method(lf17) { IIN0() mf17() Return(POUT) } Method(lf18) { IIN0() mf18() Return(POUT) } Method(lf19) { IIN0() mf19() Return(POUT) } Method(lf1a) { IIN0() mf1a() Return(POUT) } Method(lf1b) { IIN0() mf1b() Return(POUT) } Method(lf1c) { IIN0() mf1c() Return(POUT) } Method(lf1d) { IIN0() mf1d() Return(POUT) } Method(lf1e) { IIN0() mf1e() Return(POUT) } Method(lf1f) { IIN0() mf1f() Return(POUT) } Method(lf20) { IIN0() mf20() Return(POUT) } Method(lf21) { IIN0() mf21() Return(POUT) } Method(lf22) { IIN0() mf22() Return(POUT) } Method(lf23) { IIN0() mf23() Return(POUT) } Method(lf24) { IIN0() mf24() Return(POUT) } Method(lf25) { IIN0() mf25() Return(POUT) } Method(lf26) { IIN0() mf26() Return(POUT) } Method(lf27) { IIN0() mf27() Return(POUT) } Method(lf28) { IIN0() mf28() Return(POUT) } Method(lf29) { IIN0() mf29(0) Return(POUT) } Method(lf2a) { IIN0() mf2a(0) Return(POUT) } Method(lf2b) { IIN0() mf2b() Return(POUT) } Method(lf2c) { IIN0() mf2c(0) Return(POUT) } Method(lf2d) { IIN0() mt0e() Return(POUT) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/initial/0000700000175000017500000000000014773714157027266 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/initial/ns_in00.asl0000700000175000017500000003470714773714157031253 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests originated from namespace/ns0 */ /* * Trying to get the chain of calls of methods such that * sections of operative stack corresponding to different * methods contain the internal object (itself, not a RefOf * reference to it) of the same Name Space node. * * Then force (by Store/CopyObject): * 1) changing the value of that internal object * 2) replacing the internal object itself by some another one * * Check that the changing/replacing has no effect on the * values evaluated on the lowest stages of calculation. * * Accessing objects by argX and directly by name too. */ Name(z163, 163) /* * Named Integer i000 */ /* * Simple, 3-level */ Method(in00, 1, Serialized) { Name(ts, "in00") Name(i000, 0x00000001) Name(p000, Package() {1,2,3,4}) Name(i001, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { if (i001) { CopyObject(p000, i000) } Return (0xabcd0000) } Return (Add(i000, m003())) } Return (Add(i000, m002())) } Store(Add(i000, m001()), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0003) } } /* * 8-level * added writing into i000: * Store(0x00040000, i000) */ Method(in01, 1, Serialized) { Name(ts, "in01") Name(i000, 0x00000001) Name(i001, 0) Name(p000, Package() {1,2,3,4}) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { CopyObject(p000, i000) } Return (0) } Store(0x80000000, i000) Return (Add(i000, m008())) } Store(0x07000000, i000) Return (Add(i000, m007())) } Store(0x00600000, i000) Return (Add(i000, m006())) } Store(0x00050000, i000) Return (Add(i000, m005())) } Store(0x00004000, i000) Return (Add(i000, m004())) } Store(0x00000300, i000) Return (Add(i000, m003())) } Store(0x00000020, i000) Return (Add(i000, m002())) } Store(Add(i000, m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z163, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(i000, 0x80000000)) { err(ts, z163, __LINE__, 0, 0, i000, 0x80000000) } } /* * Recurcive execution of m001: * Add(i000, m001(), Local0) */ Method(in02,, Serialized) { Name(ts, "in02") Name(i000, 0x00100000) Name(i001, 0) Method(m001) { /* * Because of the stack overflow issues on MS the number * of repetitions was changed from 100 to 11 here. */ if (LLess(i001, 11)) { Increment(i000) Increment(i001) Add(i000, m001(), Local0) Return (Local0) } Return (0) } Store(Add(i000, m001()), Local0) if (LNotEqual(Local0, 0x00c00042)) { err(ts, z163, __LINE__, 0, 0, Local0, 0x00c00042) } if (LNotEqual(i000, 0x0010000b)) { err(ts, z163, __LINE__, 0, 0, i000, 0x0010000b) } } /* * Local instead of i000 (in in01) */ Method(in03, 1, Serialized) { Name(ts, "in03") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Store(arg0, i001) Store(0x00000001, Local7) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { CopyObject(p000, Local7) } Return (0) } Store(0x80000000, Local7) Return (Add(Local7, m008())) } Store(0x07000000, Local7) Return (Add(Local7, m007())) } Store(0x00600000, Local7) Return (Add(Local7, m006())) } Store(0x00050000, Local7) Return (Add(Local7, m005())) } Store(0x00004000, Local7) Return (Add(Local7, m004())) } Store(0x00000300, Local7) Return (Add(Local7, m003())) } Store(0x00000020, Local7) Return (Add(Local7, m002())) } Store(Add(Local7, m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z163, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(Local7, 1)) { err(ts, z163, __LINE__, 0, 0, Local7, 1) } } /* * Arg instead of i000 (in in01) * * see ns_0100.asl */ /* * 8-level * added writing into i000: * Store(0x00040000, i000) * * in01 +: * m00X are passed with i000 * argX inside m00X is rewritten */ Method(in04,, Serialized) { Name(ts, "in04") Name(i000, 0x00000001) Name(i001, 0) Name(p000, Package() {1,2,3,4}) Method(m001, 2) { Method(m002, 2) { Method(m003, 2) { Method(m004, 2) { Method(m005, 2) { Method(m006, 2) { Method(m007, 2) { /* * ====================== >>>>>>>> * Sometimes, after I added a big group of * 'If' operators, this fragment of code causes * break of execution on MS. But, namely -- * sometimes! To investigate the reason I * commented part by part of it to find * workable code, then un-commented it * part by part too. * It entire initial code * started working on MS again! */ /* Method(m008, 2) { if (i001) { CopyObject(p000, i000) } Store(0x10000008, arg0) Return (0) } Store(0x80000000, i000) Store(0x10000007, arg0) Return (Add(i000, m008(i000, arg0))) */ /* * ====================== <<<<<<<< */ Store(0x80000000, i000) Store(0x10000007, arg0) Add(i000, 0, Local0) Return (Local0) } Store(0x07000000, i000) Store(0x10000006, arg0) Return (Add(i000, m007(i000, arg0))) } Store(0x00600000, i000) Store(0x10000005, arg0) Return (Add(i000, m006(i000, arg0))) } Store(0x00050000, i000) Store(0x10000004, arg0) Return (Add(i000, m005(i000, arg0))) } if (LNotEqual(arg0, 0x00000300)) { err(ts, z163, __LINE__, 0, 0, arg0, 0x00000300) } if (LNotEqual(arg1, 0x10000001)) { err(ts, z163, __LINE__, 0, 0, arg1, 0x10000001) } Store(0x00004000, i000) Store(0x10000003, arg0) Return (Add(i000, m004(i000, arg0))) } if (LNotEqual(arg0, 0x00000020)) { err(ts, z163, __LINE__, 0, 0, arg0, 0x00000020) } if (LNotEqual(i000, 0x00000020)) { err(ts, z163, __LINE__, 0, 0, i000, 0x00000020) } Store(0x10000002, arg0) if (LNotEqual(i000, 0x00000020)) { err(ts, z163, __LINE__, 0, 0, i000, 0x00000020) } if (LNotEqual(arg0, 0x10000002)) { err(ts, z163, __LINE__, 0, 0, arg0, 0x10000002) } Store(0x00000300, i000) if (LNotEqual(i000, 0x00000300)) { err(ts, z163, __LINE__, 0, 0, i000, 0x00000300) } if (LNotEqual(arg0, 0x10000002)) { err(ts, z163, __LINE__, 0, 0, arg0, 0x10000002) } if (LNotEqual(arg1, 0x10000001)) { err(ts, z163, __LINE__, 0, 0, arg1, 0x10000001) } Store(0x10000002, arg0) Store(0x00000300, i000) Return (Add(i000, m003(i000, arg1))) } if (LNotEqual(arg0, 0x00000001)) { err(ts, z163, __LINE__, 0, 0, arg0, 0x00000001) } if (LNotEqual(i000, 0x00000001)) { err(ts, z163, __LINE__, 0, 0, i000, 0x00000001) } Store(0x10000001, arg0) if (LNotEqual(i000, 0x00000001)) { err(ts, z163, __LINE__, 0, 0, i000, 0x00000001) } if (LNotEqual(arg0, 0x10000001)) { err(ts, z163, __LINE__, 0, 0, arg0, 0x10000001) } Store(0x00000020, i000) if (LNotEqual(i000, 0x00000020)) { err(ts, z163, __LINE__, 0, 0, i000, 0x00000020) } if (LNotEqual(arg0, 0x10000001)) { err(ts, z163, __LINE__, 0, 0, arg0, 0x10000001) } if (LNotEqual(arg1, 0x10000000)) { err(ts, z163, __LINE__, 0, 0, arg1, 0x10000000) } Store(0x10000001, arg0) Store(0x00000020, i000) Return (Add(i000, m002(i000, arg0))) } Store(Add(i000, m001(i000, 0x10000000)), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z163, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(i000, 0x80000000)) { err(ts, z163, __LINE__, 0, 0, i000, 0x80000000) } } /* * Note: now the checkings are so that in05 succeeds on MS. */ Method(in05,, Serialized) { Name(ts, "in05") Name(i000, 0xabcd0000) Name(s000, "qwrtyu0003") Name(b000, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) Name(p000, Package() {0xabcd0001, 0xabcd0002, 0xabcd0003}) Event(e000) Mutex(mx00, 0) Method(mmm0,, Serialized) { Name(im00, 0xabcd0004) Name(sm00, "qwertyui") // Return ( "qwertyui" ) } Method(mmm1,, Serialized) { Name(im00, 0xabcd0004) Name(sm00, "qwertyui") // Return ( 0xabcd0004 ) Return ( "qwertyui" ) } Device(d000) { Name(id00, 0xabcd0005) } ThermalZone(tz00) { Name(itz0, 0xabcd0006) } Processor(pr00, 0, 0xFFFFFFFF, 0) { Name(ipr0, 0xabcd0007) } PowerResource(pw00, 1, 0) { Name(ipw0, 0xabcd0008) } OperationRegion(r000, SystemMemory, 0x100, 0x100) Name(b001, Buffer() {0xa0,0xa1,0xa2,0xa3,0xa4}) CreateField(b001, 0, 8, bf00) OperationRegion(r001, SystemMemory, 0x100, 0x100) Field(r001, ByteAcc, NoLock, Preserve) {f000,32, f001,32, f002,32, f003,32} BankField(r001, f001, 0, ByteAcc, NoLock, Preserve) {bnk0,32} IndexField(f002, f003, ByteAcc, NoLock, Preserve) {if00,32, if01,32} Method(m001, 2) { Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, arg1)) { err(ts, z163, __LINE__, 0, 0, Local0, arg1) } Return (5) } CH03(ts, z163, 0x000, __LINE__, 0) Store(Add(DerefOf(Index(p000, 0)), m001(i000, c009)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(s000, c00a)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(b000, c00b)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(p000, c00c)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(e000, c00f)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(mx00, c011)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(mmm0, c008)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(mmm1, c00a)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(d000, c00e)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(tz00, c015)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(pr00, c014)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(pw00, c013)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(r000, c012)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(bf00, c00b)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(f000, c009)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(bnk0, c009)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(Add(DerefOf(Index(p000, 0)), m001(if00, c009)), Local0) if (LNotEqual(Local0, 0xabcd0006)) { err(ts, z163, __LINE__, 0, 0, Local0, 0xabcd0006) } Store(ObjectType(f000), Local0) if (LNotEqual(Local0, c00d)) { err(ts, z163, __LINE__, 0, 0, Local0, c00d) } Store(ObjectType(if00), Local0) if (LNotEqual(Local0, c00d)) { err(ts, z163, __LINE__, 0, 0, Local0, c00d) } Store(ObjectType(bnk0), Local0) if (LNotEqual(Local0, c00d)) { err(ts, z163, __LINE__, 0, 0, Local0, c00d) } Store(ObjectType(bf00), Local0) if (LNotEqual(Local0, c016)) { err(ts, z163, __LINE__, 0, 0, Local0, c016) } CH03(ts, z163, 0x000, __LINE__, 0) } Method(in06,, Serialized) { Name(ts, "in06") Name(i000, 0xabcd0000) Store(ObjectType(i000), Local0) if (LNotEqual(Local0, c009)) { err(ts, z163, __LINE__, 0, 0, Local0, c009) } } Method(ini0) { SRMT("in00-0") in00(0) SRMT("in01-0") in01(0) SRMT("in02") in02() SRMT("in03-0") in03(0) SRMT("in04") in04() SRMT("in05") if (LAnd(fix1, chk2)) { /* * It breaks MS while re-booting, * for ACPICA it causes exception * and breaks path. */ in05() } else { BLCK() } SRMT("in06") in06() CH03("ini0", z163, 0x000, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/initial/ns_in20.asl0000700000175000017500000001331114773714157031241 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Source file ns_0000.asl * * The tests differ those from ns_0000.asl by that the objects are * passed to methods as argument (Arg) but not directly by name. */ Name(z165, 165) /* * Named Integer i000 */ /* * Simple, 3-level */ Method(in20, 1, Serialized) { Name(ts, "in20") Name(i000, 0x00000001) Name(p000, Package() {1,2,3,4}) Name(i001, 0) CH03(ts, z165, 0x000, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { if (i001) { CopyObject(p000, arg0) } Return (0xabcd0000) } Return (Add(arg0, m003(arg0))) } Return (Add(arg0, m002(arg0))) } Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(m000(i000), Local0) if (LNotEqual(Local0, 0xabcd0003)) { err(ts, z165, __LINE__, 0, 0, Local0, 0xabcd0003) } } /* * 8-level * added writing into i000: * Store(0x00040000, i000) */ Method(in21, 1, Serialized) { Name(ts, "in21") Name(i000, 0x00000001) Name(i001, 0) Name(p000, Package() {1,2,3,4}) Store(arg0, i001) Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Method(m008, 1) { if (i001) { CopyObject(p000, arg0) } Return (0) } Store(0x80000000, arg0) Return (Add(arg0, m008(arg0))) } Store(0x07000000, arg0) Return (Add(arg0, m007(arg0))) } Store(0x00600000, arg0) Return (Add(arg0, m006(arg0))) } Store(0x00050000, arg0) Return (Add(arg0, m005(arg0))) } Store(0x00004000, arg0) Return (Add(arg0, m004(arg0))) } Store(0x00000300, arg0) Return (Add(arg0, m003(arg0))) } Store(0x00000020, arg0) Return (Add(arg0, m002(arg0))) } Store(Add(i000, m001(i000)), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z165, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(i000, 0x00000001)) { err(ts, z165, __LINE__, 0, 0, i000, 0x00000001) } } /* * Recurcive execution of m001: * Add(i000, m001(), Local0) */ Method(in22,, Serialized) { Name(ts, "in22") Name(i000, 0x00100000) Name(i001, 0) Method(m000, 1) { Method(m001, 1) { /* * Because of the stack overflow issues on MS the number * of repetitions was changed from 100 to 9 here. */ if (LLess(i001, 9)) { Increment(arg0) Increment(i001) Add(arg0, m001(arg0), Local0) Return (Local0) } Return (0) } Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(Add(i000, m000(i000)), Local0) if (LNotEqual(Local0, 0x00b0002d)) { err(ts, z165, __LINE__, 0, 0, Local0, 0x00b0002d) } if (LNotEqual(i000, 0x00100000)) { err(ts, z165, __LINE__, 0, 0, i000, 0x00100000) } } /* * Arg instead of i000 (in in01) */ Method(in23, 2, Serialized) { Name(ts, "in23") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Store(arg0, i001) Store(0x00000001, arg1) Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Method(m008, 1) { if (i001) { CopyObject(p000, arg0) } Return (0) } Store(0x80000000, arg0) Return (Add(arg0, m008(8))) } Store(0x07000000, arg0) Return (Add(arg0, m007(7))) } Store(0x00600000, arg0) Return (Add(arg0, m006(6))) } Store(0x00050000, arg0) Return (Add(arg0, m005(5))) } Store(0x00004000, arg0) Return (Add(arg0, m004(4))) } Store(0x00000300, arg0) Return (Add(arg0, m003(3))) } Store(0x00000020, arg0) Return (Add(arg0, m002(2))) } Store(Add(arg1, m001(1)), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z165, __LINE__, 0, 0, Local0, 0x87654321) } if (LNotEqual(arg1, 1)) { err(ts, z165, __LINE__, 0, 0, arg1, 1) } CH03(ts, z165, 0x011, __LINE__, 0) } Method(ini2) { SRMT("in20-0") in20(0) SRMT("in21-0") in21(0) SRMT("in22") in22() SRMT("in23-0") in23(0, 0) CH03("ini2", z165, 0x000, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/initial/ns_in10.asl0000700000175000017500000005143214773714157031246 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Tests originated from namespace/ns1 */ /* * Package/Buffer/String/Field/IndexField/BankField/BufferField * * Tests below are here * as specific type arguments passing - * arguments though passed directly to method, not as references, * nevertheless allow access to the elements of original objects. */ Name(z164, 164) /* * * Read/write access to elements of Package passed to method. * */ /* * * Elements of Package are constant Integer (0xabcd0000) * */ /* * Package is passed by ArgX to method: * - directly */ Method(in10,, Serialized) { Name(ts, "in10") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(0x11112222, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is passed by ArgX to method: * - by ORef */ Method(in11,, Serialized) { Name(ts, "in11") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m001, 2) { Store(DerefOf(arg1), Local7) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x33334444) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is passed by ArgX to method: * - directly * - by ORef */ Method(in12,, Serialized) { Name(ts, "in12") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m001, 2) { Store(0x11112222, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(arg1), Local7) Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x33334444) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is given directly by name: * - do ORef and pass to LocalX * - do DerefOf and pass to LocalX */ Method(in13,, Serialized) { Name(ts, "in13") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m001, 2) { Store(RefOf(p000), Local6) Store(DerefOf(Local6), Local7) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x33334444) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } } /* * * Elements of Package are Named Integer (i000) * */ /* * Package is passed by ArgX to method * * fail * * Note: * Named element of Package is simply not implemented by MS, * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}. */ Method(in14,, Serialized) { Name(ts, "in14") Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Name(i002, 0xabcd0002) Name(ii00, 0x11112222) Name(p000, Package() {i000, i001, i002, "i000"}) Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(arg0, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(arg0, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(arg0, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z164, __LINE__, 0, 0, Local0, "i000") } Store(ii00, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } } m001(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z164, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(p000, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z164, __LINE__, 0, 0, Local0, "i000") } } /* * Package is used directly by Name * * Example to show behaviour of MS for Package(){i000} * * Note: * Named element of Package is simply not implemented by MS, * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}. */ Method(in15,, Serialized) { Name(ts, "in15") Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Name(i002, 0xabcd0002) Name(ii00, 0x11112222) Name(p000, Package() {i000, i001, i002, "i000"}) Store(DerefOf(Index(p000, 0)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 1)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 2)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 3)), Local0) OUTP(Local0) Store(ii00, Index(p000, 1)) OUTP("After re-write 1-th element:") Store(DerefOf(Index(p000, 0)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 1)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 2)), Local0) OUTP(Local0) Store(DerefOf(Index(p000, 3)), Local0) OUTP(Local0) } /* * Buffer */ Method(in16,, Serialized) { Name(ts, "in16") Name(b000, Buffer() {0x10, 0x11, 0x12}) Method(m001, 2) { // arg0 - b000 Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x10)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x10) } Store(0x67, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x67)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x67) } // arg1 - RefOf(b000) Store(DerefOf(arg1), Local7) Store(0x55, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x55)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x55) } } m001(b000, RefOf(b000)) Store(DerefOf(Index(b000, 0)), Local0) if (LNotEqual(Local0, 0x67)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x67) } Store(DerefOf(Index(b000, 1)), Local0) if (LNotEqual(Local0, 0x11)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x11) } Store(DerefOf(Index(b000, 2)), Local0) if (LNotEqual(Local0, 0x12)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x12) } } /* * Element of Package instead of i000 (in in02) * * Recursive call to m001 */ Method(in17,, Serialized) { Name(ts, "in17") Name(i001, 0) Name(pp00, Package() {0x11111111, 0x00100000, 0x22223333}) Method(m001) { /* * Because of the stack overflow issues on MS the number * of repetitions was changed from 100 to 11 here. */ if (LLess(i001, 11)) { Store(DerefOf(Index(pp00, 1)), Local0) Increment(Local0) Store(Local0, Index(pp00, 1)) Increment(i001) Add(DerefOf(Index(pp00, 1)), m001(), Local0) Return (Local0) } Return (0) } Store(Add(DerefOf(Index(pp00, 1)), m001()), Local0) if (LNotEqual(Local0, 0x00c00042)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x00c00042) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x0010000b)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x0010000b) } CH03(ts, z164, 0x00c, __LINE__, 0) } /* * Buffer Field instead of i000 (in in01) * * fail * * Note: Buffer Field in expressions is not supported by MS, * see msfail.asl */ /* * Field instead of i000 (in in01) */ Method(in18, 1, Serialized) { Name(ts, "in18") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } CH03(ts, z164, 0x011, __LINE__, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { Store(0x11223344, f001) } Return (0) } Store(0x80000000, f001) Return (Add(f001, m008())) } Store(0x07000000, f001) Return (Add(f001, m007())) } Store(0x00600000, f001) Return (Add(f001, m006())) } Store(0x00050000, f001) Return (Add(f001, m005())) } Store(0x00004000, f001) Return (Add(f001, m004())) } Store(0x00000300, f001) Return (Add(f001, m003())) } Store(0x00000020, f001) Return (Add(f001, m002())) } Store(0x00000001, f001) Store(Add(f001, m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x87654321) } if (arg0) { Store(0x11223344, Local1) } else { Store(0x80000000, Local1) } if (LNotEqual(f001, Local1)) { err(ts, z164, __LINE__, 0, 0, f001, Local1) } CH03(ts, z164, 0x014, __LINE__, 0) } /* * Bank Field instead of i000 (in in01) * * (is this test correct?) */ Method(in19, 1, Serialized) { Name(ts, "in19") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } BankField(r000, f001, 0, ByteAcc, NoLock, Preserve) { bnk0, 32 } CH03(ts, z164, 0x015, __LINE__, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { Store(0x11223344, bnk0) } Return (0) } Store(0x80000000, bnk0) Return (Add(bnk0, m008())) } Store(0x07000000, bnk0) Return (Add(bnk0, m007())) } Store(0x00600000, bnk0) Return (Add(bnk0, m006())) } Store(0x00050000, bnk0) Return (Add(bnk0, m005())) } Store(0x00004000, bnk0) Return (Add(bnk0, m004())) } Store(0x00000300, bnk0) Return (Add(bnk0, m003())) } Store(0x00000020, bnk0) Return (Add(bnk0, m002())) } Store(0x00000001, bnk0) Store(Add(bnk0, m001()), Local0) if (LNotEqual(Local0, 0x87654321)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x87654321) } if (arg0) { Store(0x11223344, Local1) } else { Store(0x80000000, Local1) } if (LNotEqual(bnk0, Local1)) { err(ts, z164, __LINE__, 0, 0, bnk0, Local1) } CH03(ts, z164, 0x018, __LINE__, 0) } /* * Index Field instead of i000 (in in01) * * (is this test correct?) */ Method(in1a, 1, Serialized) { Name(ts, "in1a") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } IndexField(f000, f001, ByteAcc, NoLock, Preserve) { if00, 32 } CH03(ts, z164, 0x019, __LINE__, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { if (i001) { Store(0x11223344, if00) } Return (0) } Store(0x80000000, if00) Return (Add(if00, m008())) } Store(0x07000000, if00) Return (Add(if00, m007())) } Store(0x00600000, if00) Return (Add(if00, m006())) } Store(0x00050000, if00) Return (Add(if00, m005())) } Store(0x00004000, if00) Return (Add(if00, m004())) } Store(0x00000300, if00) Return (Add(if00, m003())) } Store(0x00000020, if00) Return (Add(if00, m002())) } Store(0x00000001, if00) Store(Add(if00, m001()), Local0) /* * The benchmark values for arg0==0 below * are how MS actually works. */ if (LNotEqual(Local0, 0x87878787)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x87878787) } if (arg0) { Store(0x11223344, Local1) } else { Store(0x80808080, Local1) } if (LNotEqual(if00, Local1)) { err(ts, z164, __LINE__, 0, 0, if00, Local1) } CH03(ts, z164, 0x01c, __LINE__, 0) } /* * Element of Buffer instead of i000 (in in01) */ Method(in1b, 1, Serialized) { Name(ts, "in1b") Name(i001, 0) Name(b000, Buffer() {0x11, 0x01, 0x22}) CH03(ts, z164, 0x01d, __LINE__, 0) Store(arg0, i001) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Return (0) } Store(0x07, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m007())) } Store(0x06, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m006())) } Store(0x05, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m005())) } Store(0x04, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m004())) } Store(0x03, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m003())) } Store(0x02, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m002())) } Store(Add(DerefOf(Index(b000, 1)), m001()), Local0) if (LNotEqual(Local0, 0x1c)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x1c) } Store(DerefOf(Index(b000, 1)), Local0) if (arg0) { Store(0xff, Local1) } else { Store(0x07, Local1) } if (LNotEqual(Local0, Local1)) { err(ts, z164, __LINE__, 0, 0, Local0, Local1) } CH03(ts, z164, 0x020, __LINE__, 0) } /* * Element of Buffer instead of i000 (in in01) * * in1b+: * added argument to methods and b000 passed without any use of that * parameter inside the methods */ Method(in1c, 1, Serialized) { Name(ts, "in1c") Name(i001, 0) Name(b000, Buffer() {0x11, 0x01, 0x22}) CH03(ts, z164, 0x01d, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Return (0) } Store(0x07, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m007(b000))) } Store(0x06, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m006(b000))) } Store(0x05, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m005(b000))) } Store(0x04, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m004(b000))) } Store(0x03, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m003(b000))) } Store(0x02, Index(b000, 1)) Return (Add(DerefOf(Index(b000, 1)), m002(b000))) } Store(Add(DerefOf(Index(b000, 1)), m001(b000)), Local0) Return (Local0) } CH03(ts, z164, 0x000, __LINE__, 0) Store(m000(b000), Local0) if (LNotEqual(Local0, 0x1c)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x1c) } Store(DerefOf(Index(b000, 1)), Local0) if (arg0) { Store(0xff, Local1) } else { Store(0x07, Local1) } if (LNotEqual(Local0, Local1)) { err(ts, z164, __LINE__, 0, 0, Local0, Local1) } CH03(ts, z164, 0x020, __LINE__, 0) } /* * Element of Package instead of i000 (in in01) */ Method(in1d,, Serialized) { Name(ts, "in1d") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Name(pp00, Package() {0x11111111, 0x00000001, 0x22223333}) CH03(ts, z164, 0x006, __LINE__, 0) Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Return (0) } Store(0x07000000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m007())) } Store(0x00600000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m006())) } Store(0x00050000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m005())) } Store(0x00004000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m004())) } Store(0x00000300, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m003())) } Store(0x00000020, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m002())) } Store(Add(DerefOf(Index(pp00, 1)), m001()), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x07654321) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x07000000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x07000000) } CH03(ts, z164, 0x009, __LINE__, 0) } /* * Element of Package instead of i000 (in in01) * * in1d+: * added argument to methods and b000 passed without any use of that * parameter inside the methods */ Method(in1e,, Serialized) { Name(ts, "in1e") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Name(pp00, Package() {0x11111111, 0x00000001, 0x22223333}) CH03(ts, z164, 0x006, __LINE__, 0) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Return (0) } Store(0x07000000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m007(pp00))) } Store(0x00600000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m006(pp00))) } Store(0x00050000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m005(pp00))) } Store(0x00004000, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m004(pp00))) } Store(0x00000300, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m003(pp00))) } Store(0x00000020, Index(pp00, 1)) Return (Add(DerefOf(Index(pp00, 1)), m002(pp00))) } Store(Add(DerefOf(Index(pp00, 1)), m001(pp00)), Local0) Return (Local0) } CH03(ts, z164, 0x000, __LINE__, 0) Store(m000(pp00), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x07654321) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x07000000)) { err(ts, z164, __LINE__, 0, 0, Local0, 0x07000000) } CH03(ts, z164, 0x009, __LINE__, 0) } Method(ini1) { SRMT("in10") in10() SRMT("in11") in11() SRMT("in12") in12() SRMT("in13") in13() SRMT("in14") if (chk0) { in14() } else { BLCK() } SRMT("in15") if (chk0) { in15() } else { BLCK() } SRMT("in16") in16() SRMT("in17") in17() SRMT("in18-0") in18(0) SRMT("in19-0") in19(0) SRMT("in1a-0") in1a(0) SRMT("in1b-0") in1b(0) SRMT("in1c-0") if (y275) { in1c(0) } else { BLCK() } SRMT("in1d") in1d() SRMT("in1e") if (LAnd(fix0, y275)) { in1e() } else { BLCK() } CH03("ini1", z164, 0x000, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/initial/ns_in50.asl0000700000175000017500000005572514773714157031263 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Expressions */ Name(z168, 168) /* * Table 1: operations applied in this file tests * * 1 - Add (arg0, arg1, RES) => Local7 * 7 - Decrement (arg0 --> RES) => Local7 * 14 - Increment (arg0 --> RES) => Local7 * 9 - Divide (arg0, arg1, RES, RES) => Local7 * 38 - ShiftLeft (arg0, arg1, RES) => Local7 * 28 - Multiply (arg0, arg1, RES) => Local7 * 44 - Store (arg0, RES) => Local7 * 33 - Or (arg0, arg1, RES) => Local7 * 39 - ShiftRight (arg0, arg1, RES) => Local7 * 45 - Subtract (arg0, arg1, RES) => Local7 * 2 - And (arg0, arg1, RES) => Local7 * 27 - Mod (arg0, arg1, RES) => Local7 * 11 - FindSetLeftBit (arg0, RES) => Local7 * 12 - FindSetRightBit (arg0, RES) => Local7 * 53 - XOr (arg0, arg1, RES) => Local7 * 29 - NAnd (arg0, arg1, RES) => Local7 * 30 - NOr (arg0, arg1, RES) => Local7 * 31 - Not (arg0, RES) => Local7 * 22 - LNot (arg0) => Local7 * 24 - LOr (arg0, arg1) => Local7 * 16 - LAnd (arg0, arg1) => Local7 * 17 - LEqual (arg0, arg1) => Local7 * 18 - LGreater (arg0, arg1) => Local7 * 19 - LGreaterEqual (arg0, arg1) => Local7 * 20 - LLess (arg0, arg1) => Local7 * 21 - LLessEqual (arg0, arg1) => Local7 * 23 - LNotEqual (arg0, arg1) => Local7 */ /* * This method doesn't contain verification and is * only used to determine opcodes not implemented on MS. * For verification is intended the method in51. * * The ASL Mod operation is not implemented on MS */ Method(in50,, Serialized) { Name(ts, "in50") Store(0xabcd0000, Local0) Store(2, Local1) Add (Local0, Local1, Local2) Decrement (Local0) Increment (Local0) Divide (Local0, Local1, Local2, Local3) ShiftLeft (Local0, Local1, Local2) Multiply (Local0, Local1, Local2) Store (Local0, Local2) Or (Local0, Local1, Local2) ShiftRight (Local0, Local1, Local2) Subtract (Local0, Local1, Local2) And (Local0, Local1, Local2) if (chk0) { Mod (Local0, Local1, Local2) } FindSetLeftBit (Local0, Local2) FindSetRightBit (Local0, Local2) XOr (Local0, Local1, Local2) NAnd (Local0, Local1, Local2) NOr (Local0, Local1, Local2) Not (Local0, Local2) Store(LNot (Local0), Local4) Store(LOr (Local0, Local1), Local4) Store(LAnd (Local0, Local1), Local4) Store(LEqual (Local0, Local1), Local4) Store(LGreater (Local0, Local1), Local4) Store(LGreaterEqual (Local0, Local1), Local4) Store(LLess (Local0, Local1), Local4) Store(LLessEqual (Local0, Local1), Local4) Store(LNotEqual (Local0, Local1), Local4) } /* * Internal objects of methods on MS consume some internal * resources of ACPI MS interpreter. We are forced to pull * some of internal objects of in51 out to prevent breakage * of MS interpreter. */ Name(ii31, 0xabcd0031) Name(ii32, 0xabcd0032) Name(ii33, 0xabcd0033) Name(ii34, 0xabcd0034) Name(ii35, 0xabcd0035) Name(ii36, 0xabcd0036) Name(ii37, 0xabcd0037) Name(ii38, 0xabcd0038) Name(ii39, 0xabcd0039) Name(ii3a, 0xabcd003a) Name(ii3b, 0xabcd003b) Name(ii3c, 0xabcd003c) Name(ii3d, 0xabcd003d) Name(ii3e, 0xabcd003e) Name(ii3f, 0xabcd003f) Name(ii40, 0xabcd0040) Name(ii41, 0xabcd0041) Name(ii42, 0xabcd0042) Name(ii43, 0xabcd0043) Name(ii44, 0xabcd0044) Name(ii45, 0xabcd0045) Name(ii46, 0xabcd0046) Name(ii47, 0xabcd0047) /* * All opcodes of Table 1 above are applied in a single expression * and their results are then verified. * * The ASL Mod operation is not implemented on MS thus * it is not applied here. All other opcodes enumerated * in the table above are applied and verified in this test. */ Method(in51, 7, Serialized) { Name(ts, "in51") Name(i000, 0x00010000) Name(i001, 0x0a510010) Name(i002, 0x15210800) Name(i003, 0xfeabc8d9) Name(i004, 0x1234bcde) Name(i005, 0xfe04bcde) Name(i006, 0x12345678) Name(i007, 0x01000000) Name(i008, 0x60f5c7a2) Name(ii00, 0xabcd0000) Name(ii01, 0xabcd0001) Name(ii02, 0xabcd0002) Name(ii03, 0xabcd0003) Name(ii04, 0xabcd0004) Name(ii05, 0xabcd0005) Name(ii06, 0xabcd0006) Name(ii07, 0xabcd0007) Name(ii08, 0xabcd0008) Name(ii09, 0xabcd0009) Name(ii0a, 0xabcd000a) Name(ii0b, 0xabcd000b) Name(ii0c, 0xabcd000c) Name(ii0d, 0xabcd000d) Name(ii0e, 0xabcd000e) Name(ii0f, 0xabcd000f) Name(ii10, 0xabcd0010) Name(ii11, 0xabcd0011) Name(ii12, 0xabcd0012) Name(ii13, 0xabcd0013) Name(ii14, 0xabcd0014) Name(ii15, 0xabcd0015) Name(ii16, 0xabcd0016) Name(ii17, 0xabcd0017) Name(ii18, 0xabcd0018) Name(ii19, 0xabcd0019) Name(ii1a, 0xabcd001a) Name(ii1b, 0xabcd001b) Name(ii1c, 0xabcd001c) Name(ii1d, 0xabcd001d) Name(ii1e, 0xabcd001e) Name(ii1f, 0xabcd001f) Name(ii20, 0xabcd0020) Name(ii21, 0xabcd0021) Name(ii22, 0xabcd0022) Name(ii23, 0xabcd0023) Name(ii24, 0xabcd0024) Name(ii25, 0xabcd0025) Name(ii26, 0xabcd0026) Name(ii27, 0xabcd0027) Name(ii28, 0xabcd0028) Name(ii29, 0xabcd0029) Name(ii2a, 0xabcd002a) Name(ii2b, 0xabcd002b) Name(ii2c, 0xabcd002c) Name(ii2d, 0xabcd002d) Name(ii2e, 0xabcd002e) Name(ii2f, 0xabcd002f) Name(ii30, 0xabcd0030) /* Name(ii31, 0xabcd0031) Name(ii32, 0xabcd0032) Name(ii33, 0xabcd0033) Name(ii34, 0xabcd0034) Name(ii35, 0xabcd0035) Name(ii36, 0xabcd0036) Name(ii37, 0xabcd0037) Name(ii38, 0xabcd0038) Name(ii39, 0xabcd0039) Name(ii3a, 0xabcd003a) Name(ii3b, 0xabcd003b) Name(ii3c, 0xabcd003c) Name(ii3d, 0xabcd003d) Name(ii3e, 0xabcd003e) Name(ii3f, 0xabcd003f) Name(ii40, 0xabcd0040) Name(ii41, 0xabcd0041) Name(ii42, 0xabcd0042) Name(ii43, 0xabcd0043) Name(ii44, 0xabcd0044) Name(ii45, 0xabcd0045) Name(ii46, 0xabcd0046) Name(ii47, 0xabcd0047) */ Add( Add( Add( Add( Add( Add( Add( Add( Add( Subtract( Or( And( //Store( Multiply( ShiftLeft( Divide( Add( Add( Add( Add( Increment(i000), Increment(i000), i000), Add( Increment(i000), Increment(i000), i000), Local0), Add( Add( Decrement(i000), Decrement(i000), i000), Add( Decrement(i000), Decrement(i000), i000), Local1), arg0), Add( Add( Increment(i000), Decrement(i000), i000), Add( Increment(i000), Decrement(i000), i000), Local2), arg1), 17, // Divide ii00, Local3), // Divide 3, // ShiftLeft ii01), // ShiftLeft 2, // Multiply i000), // Multiply //arg2), // Store 0xffffffff, // And ii0c), // And 0x20000000, // Or ii0d), // Or Multiply( And( Add( Add( Add( XOr( Add( Add( Add( //Store( And( ShiftRight( Or( i001, 0x15210800, Local5), 3, // ShiftRight ii02), // ShiftRight 0x035E2102, // And Local6), // And //Local6), // Store //Add(0, 7, ii03), // OLD Add(ii0d, 7, ii03), // NEW ii04), // Add FindSetLeftBit(0x7bcd0000, ii05), arg3), // Add FindSetRightBit(0x7bcd0000, ii06), arg4), // Add 0x11b4937f, // XOr arg5), // XOr NAnd(i003, 0xffffffff, ii07), arg6), // Add NOr(i004, 0xf8f0f0f0, ii08), Local7), // Add Not(i005, ii09), ii0a), // Add 0xffffffff, // And ii0b), // And And(Store(LNot(Store(LNot(ii0b), ii0e)), ii0f), 0x01)), // Multiply Local4), // Subtract Store(LNot(Store(LNot(i006), ii11)), ii12), ii10), // Add Store(LOr(LNot(And(Store(LOr(i007, 0), ii14), 0x01)), 0), ii15), ii13), // Add Store(LAnd(LNot(And(Store(LAnd(i007, 1), ii16), 0x01)), 0), ii17), ii18), // Add Add( Store(LEqual(i008, 0x60f5c7a2), ii19), Store(LEqual(i008, 0x60f5c7a0), ii1a), ii1b), ii1c), // Add Add( Add( Store(LGreater(i008, 0x60f5c7a2), ii1d), Store(LGreater(i008, 0x60f5c7a3), ii1e), ii1f), Add( Store(LGreater(i008, 0x60f5c7a1), ii20), Store(LGreater(i008, 0x60f5c7a0), ii21), ii22), ii23), ii24), // Add Add( Add( Store(LGreaterEqual(i008, 0x60f5c7a2), ii25), Store(LGreaterEqual(i008, 0x60f5c7a3), ii26), ii27), Add( Store(LGreaterEqual(i008, 0x60f5c7a1), ii28), Store(LGreaterEqual(i008, 0x60f5c7a0), ii29), ii2a), ii2b), ii2c), // Add Add( Add( Store(LLess(i008, 0x60f5c7a2), ii2d), Store(LLess(i008, 0x60f5c7a3), ii2e), ii2f), Add( Store(LLess(i008, 0x60f5c7a1), ii30), Store(LLess(i008, 0x60f5c7a0), ii31), ii32), ii33), ii34), // Add Add( Add( Store(LLessEqual(i008, 0x60f5c7a2), ii35), Store(LLessEqual(i008, 0x60f5c7a3), ii36), ii37), Add( Store(LLessEqual(i008, 0x60f5c7a1), ii38), Store(LLessEqual(i008, 0x60f5c7a0), ii39), ii3a), ii3b), ii3c), // Add Add( Add( Store(LNotEqual(i008, 0x60f5c7a2), ii3d), Store(LNotEqual(i008, 0x60f5c7a3), ii3e), ii3f), Add( Store(LNotEqual(i008, 0x60f5c7a1), ii40), Store(LNotEqual(i008, 0x60f5c7a0), ii41), ii42), ii43), ii44) // Add if (LNotEqual(Local0, 0x0006000C)) { err(ts, z168, __LINE__, 0, 0, Local0, 0x0006000C) } if (LNotEqual(Local1, 0x0018002A)) { err(ts, z168, __LINE__, 0, 0, Local1, 0x0018002A) } if (LNotEqual(Local2, 0x006000A6)) { err(ts, z168, __LINE__, 0, 0, Local2, 0x006000A6) } if (LNotEqual(arg0, 0x001E0036)) { err(ts, z168, __LINE__, 0, 0, arg0, 0x001E0036) } if (LNotEqual(arg1, 0x007E00DC)) { err(ts, z168, __LINE__, 0, 0, arg1, 0x007E00DC) } if (LNotEqual(ii00, 0x00000006)) { err(ts, z168, __LINE__, 0, 0, ii00, 0x00000006) } if (LNotEqual(Local3, 0x00076976)) { err(ts, z168, __LINE__, 0, 0, Local3, 0x00076976) } if (LNotEqual(ii01, 0x003B4BB0)) { err(ts, z168, __LINE__, 0, 0, ii01, 0x003B4BB0) } if (LNotEqual(arg2, 0x00769760)) { err(ts, z168, __LINE__, 0, 0, arg2, 0x00769760) } if (LNotEqual(Local5, 0x1F710810)) { err(ts, z168, __LINE__, 0, 0, Local5, 0x1F710810) } if (LNotEqual(ii02, 0x03EE2102)) { err(ts, z168, __LINE__, 0, 0, ii02, 0x03EE2102) } if (LNotEqual(Local6, 0x034E2102)) { err(ts, z168, __LINE__, 0, 0, Local6, 0x034E2102) } if (LNotEqual(ii03, 0x00000007)) { err(ts, z168, __LINE__, 0, 0, ii03, 0x00000007) } if (LNotEqual(ii04, 0x034E2109)) { err(ts, z168, __LINE__, 0, 0, ii04, 0x034E2109) } if (LNotEqual(ii05, 0x0000001F)) { err(ts, z168, __LINE__, 0, 0, ii05, 0x0000001F) } if (LNotEqual(arg3, 0x034E2128)) { err(ts, z168, __LINE__, 0, 0, arg3, 0x034E2128) } if (LNotEqual(ii06, 0x00000011)) { err(ts, z168, __LINE__, 0, 0, ii06, 0x00000011) } if (LNotEqual(arg4, 0x034E2139)) { err(ts, z168, __LINE__, 0, 0, arg4, 0x034E2139) } if (LNotEqual(arg5, 0x12FAB246)) { err(ts, z168, __LINE__, 0, 0, arg5, 0x12FAB246) } if (LNotEqual(ii07, 0xFFFFFFFF01543726)) { err(ts, z168, __LINE__, 0, 0, ii07, 0xFFFFFFFF01543726) } if (LNotEqual(arg6, 0xFFFFFFFF144EE96C)) { err(ts, z168, __LINE__, 0, 0, arg6, 0xFFFFFFFF144EE96C) } if (LNotEqual(ii08, 0xFFFFFFFF050B0301)) { err(ts, z168, __LINE__, 0, 0, ii08, 0xFFFFFFFF050B0301) } if (LNotEqual(Local7, 0xFFFFFFFE1959EC6D)) { err(ts, z168, __LINE__, 0, 0, Local7, 0xFFFFFFFE1959EC6D) } if (LNotEqual(ii09, 0xFFFFFFFF01FB4321)) { err(ts, z168, __LINE__, 0, 0, ii09, 0xFFFFFFFF01FB4321) } if (LNotEqual(ii0a, 0xFFFFFFFD1B552F8E)) { err(ts, z168, __LINE__, 0, 0, ii0a, 0xFFFFFFFD1B552F8E) } if (LNotEqual(ii0b, 0x1B552F8E)) { err(ts, z168, __LINE__, 0, 0, ii0b, 0x1B552F8E) } if (LNotEqual(ii0c, 0x00769760)) { err(ts, z168, __LINE__, 0, 0, ii0c, 0x00769760) } if (LNotEqual(ii0d, 0x20769760)) { err(ts, z168, __LINE__, 0, 0, ii0d, 0x20769760) } if (LNotEqual(ii0e, 0)) { err(ts, z168, __LINE__, 0, 0, ii0e, 0) } if (LNotEqual(ii0f, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii0f, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(Local4, 0x052167D2)) { err(ts, z168, __LINE__, 0, 0, Local4, 0x052167D2) } if (LNotEqual(ii10, 0x052167D1)) { err(ts, z168, __LINE__, 0, 0, ii10, 0x052167D1) } if (LNotEqual(ii11, 0)) { err(ts, z168, __LINE__, 0, 0, ii11, 0) } if (LNotEqual(ii12, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii12, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii13, 0x00000000052167D1)) { err(ts, z168, __LINE__, 0, 0, ii13, 0x00000000052167D1) } if (LNotEqual(ii14, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii14, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii15, 0)) { err(ts, z168, __LINE__, 0, 0, ii15, 0) } if (LNotEqual(ii16, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii16, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii17, 0)) { err(ts, z168, __LINE__, 0, 0, ii17, 0) } if (LNotEqual(ii18, 0x052167D1)) { err(ts, z168, __LINE__, 0, 0, ii18, 0x052167D1) } if (LNotEqual(ii19, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii19, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii1a, 0)) { err(ts, z168, __LINE__, 0, 0, ii1a, 0) } if (LNotEqual(ii1b, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii1c, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii1c, 0x052167D0)) { err(ts, z168, __LINE__, 0, 0, ii1d, 0x052167D0) } if (LNotEqual(ii1d, 0)) { err(ts, z168, __LINE__, 0, 0, ii1d, 0) } if (LNotEqual(ii1e, 0)) { err(ts, z168, __LINE__, 0, 0, ii1e, 0) } if (LNotEqual(ii1f, 0)) { err(ts, z168, __LINE__, 0, 0, ii1f, 0) } if (LNotEqual(ii20, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii20, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii21, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii21, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii22, 0xFFFFFFFFFFFFFFFE)) { err(ts, z168, __LINE__, 0, 0, ii22, 0xFFFFFFFFFFFFFFFE) } if (LNotEqual(ii23, 0xFFFFFFFFFFFFFFFE)) { err(ts, z168, __LINE__, 0, 0, ii23, 0xFFFFFFFFFFFFFFFE) } if (LNotEqual(ii24, 0x052167CE)) { err(ts, z168, __LINE__, 0, 0, ii24, 0x052167CE) } if (LNotEqual(ii25, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii25, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii26, 0)) { err(ts, z168, __LINE__, 0, 0, ii26, 0) } if (LNotEqual(ii27, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii27, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii28, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii28, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii29, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii29, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii2a, 0xFFFFFFFFFFFFFFFE)) { err(ts, z168, __LINE__, 0, 0, ii2a, 0xFFFFFFFFFFFFFFFE) } if (LNotEqual(ii2b, 0xFFFFFFFFFFFFFFFD)) { err(ts, z168, __LINE__, 0, 0, ii2b, 0xFFFFFFFFFFFFFFFD) } if (LNotEqual(ii2c, 0x052167CB)) { err(ts, z168, __LINE__, 0, 0, ii2c, 0x052167CB) } if (LNotEqual(ii2d, 0)) { err(ts, z168, __LINE__, 0, 0, ii2d, 0) } if (LNotEqual(ii2e, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii2e, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii2f, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii2f, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii30, 0)) { err(ts, z168, __LINE__, 0, 0, ii30, 0) } if (LNotEqual(ii31, 0)) { err(ts, z168, __LINE__, 0, 0, ii31, 0) } if (LNotEqual(ii32, 0)) { err(ts, z168, __LINE__, 0, 0, ii32, 0) } if (LNotEqual(ii33, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii33, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii34, 0x052167CA)) { err(ts, z168, __LINE__, 0, 0, ii34, 0x052167CA) } if (LNotEqual(ii35, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii35, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii36, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii36, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii37, 0xFFFFFFFFFFFFFFFE)) { err(ts, z168, __LINE__, 0, 0, ii37, 0xFFFFFFFFFFFFFFFE) } if (LNotEqual(ii38, 0)) { err(ts, z168, __LINE__, 0, 0, ii38, 0) } if (LNotEqual(ii39, 0)) { err(ts, z168, __LINE__, 0, 0, ii39, 0) } if (LNotEqual(ii3a, 0)) { err(ts, z168, __LINE__, 0, 0, ii3a, 0) } if (LNotEqual(ii3b, 0xFFFFFFFFFFFFFFFE)) { err(ts, z168, __LINE__, 0, 0, ii3b, 0xFFFFFFFFFFFFFFFE) } if (LNotEqual(ii3c, 0x052167C8)) { err(ts, z168, __LINE__, 0, 0, ii3c, 0x052167C8) } if (LNotEqual(ii3d, 0)) { err(ts, z168, __LINE__, 0, 0, ii3d, 0) } if (LNotEqual(ii3e, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii3e, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii3f, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii3f, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii40, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii40, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii41, 0xFFFFFFFFFFFFFFFF)) { err(ts, z168, __LINE__, 0, 0, ii41, 0xFFFFFFFFFFFFFFFF) } if (LNotEqual(ii42, 0xFFFFFFFFFFFFFFFE)) { err(ts, z168, __LINE__, 0, 0, ii42, 0xFFFFFFFFFFFFFFFE) } if (LNotEqual(ii43, 0xFFFFFFFFFFFFFFFD)) { err(ts, z168, __LINE__, 0, 0, ii43, 0xFFFFFFFFFFFFFFFD) } if (LNotEqual(ii44, 0x052167C5)) { err(ts, z168, __LINE__, 0, 0, ii44, 0x052167C5) } } Method(ini5) { SRMT("in50") in50() SRMT("in51") in51(0,0,0,0,0,0,0) CH03("ini5", z168, 0x000, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/initial/ns_in40.asl0000700000175000017500000025732714773714157031264 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Method invocations, Arguments, Locals... * * The same object is passed simultaneously by several Args, * thus, the same object is represented in stack several times. */ Name(z167, 167) /* * See comment below why the functionally unnecessary * or commented branches 'if (chk0)' are not removed. * * They remind the problems of adjusting AML code for MS. */ Name(cmd0, 0) Name(stp0, 0) // Opcodes of actions Name(OT00, 0) // ObjectType Name(AD00, 1) // Add Name(LN00, 2) // LNotEqual Name(LN01, 3) // LNotEqual Name(LN02, 4) // LNotEqual Name(LN03, 5) // LNotEqual Name(LN04, 6) // LNotEqual Name(LN05, 7) // LNotEqual Name(LN06, 8) // LNotEqual Name(LN07, 9) // LNotEqual Name(LN08, 10) // LNotEqual /* * Verify the type of object */ Method(obt0, 2) { Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, arg1)) { err("obt0", z167, __LINE__, 0, 0, Local0, arg1) } Return (5) } /* * Do simple verification actions * * arg0 - command to be performed * arg1 - object * arg2 - depends on arg0 */ Method(act0, 4, Serialized) { Name(ts, "act0") Switch (ToInteger (arg0)) { Case (0) { // ObjectType Store(ObjectType(arg1), Local0) if (LNotEqual(Local0, arg2)) { err(ts, z167, __LINE__, 0, 0, Local0, arg2) } } Case (1) { // Add Add(arg1, arg2, Local0) if (LNotEqual(Local0, arg3)) { err(ts, z167, __LINE__, 0, 0, Local0, arg3) } } Case (2) { // LNotEqual if (LNotEqual(arg1, 0xabcd0000)) { err(ts, z167, __LINE__, 0, 0, arg1, 0xabcd0000) } } Case (3) { // LNotEqual // if (chk0) { if (LNotEqual(arg1, "qwrtyu0003")) { err(ts, z167, __LINE__, 0, 0, arg1, "qwrtyu0003") } // } } Case (4) { // LNotEqual // if (chk0) { if (LNotEqual(arg1, "abcd0800")) { err(ts, z167, __LINE__, 0, 0, arg1, "abcd0800") } // } } Case (5) { // LNotEqual // if (chk0) { if (LNotEqual(arg1, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})) { err(ts, z167, __LINE__, 0, 0, arg1, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) } // } } Case (6) { // LNotEqual Store(DerefOf(Index(arg1, 1)), Local0) if (LNotEqual(Local0, 0xabcd0902)) { err(ts, z167, __LINE__, 0, 0, Local0, 0xabcd0902) } } Case (7) { // LNotEqual if (LNotEqual(arg1, 0xabcd0a00)) { err(ts, z167, __LINE__, 0, 0, arg1, 0xabcd0a00) } } Case (8) { // LNotEqual if (LNotEqual(arg1, 0xabababab)) { err(ts, z167, __LINE__, 0, 0, arg1, 0xabababab) } } Case (9) { // LNotEqual if (LNotEqual(arg1, 0)) { err(ts, z167, __LINE__, 0, 0, arg1, 0) } } Case (10) { // LNotEqual if (LNotEqual(arg1, Buffer(){0x08, 0x0d, 0xcd, 0xab})) { err(ts, z167, __LINE__, 0, 0, arg1, Buffer(){0x08, 0x0d, 0xcd, 0xab}) } } } // Switch (arg0) } /* Methods with different # of args but doing the same */ Method(mI01, 1, Serialized) { if (LNot(chk0)) { /* * This code helps for some branches to work on MS. * This code being placed in Switch below doesn't work. * I moved this code from the Switch below and replaced * calls to Methods by the contents of those methods. * * Nevertheless, I have not removed the 'if (chk0)' in * Switch below and beneath it to show additionally the * problems I encountered, where MS doesn't work, while * attempting to work with Switch. */ if (LEqual(cmd0, 1)) { // Integer Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c009)) { err("mI01", z167, __LINE__, 0, 0, Local0, c009) } Add(arg0, 1, Local0) if (LNotEqual(Local0, 0xabcd0001)) { err("mI01", z167, __LINE__, 0, 0, Local0, 0xabcd0001) } if (LNotEqual(arg0, 0xabcd0000)) { err("mI01", z167, __LINE__, 0, 0, arg0, 0xabcd0000) } Return (arg0) } if (LEqual(cmd0, 2)) { // String Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c00a)) { err("mI01", z167, __LINE__, 0, 0, Local0, c00a) } if (LNot(run4)) { // Run on ACPICA only if (LNotEqual(arg0, "qwrtyu0003")) { err("mI01", z167, __LINE__, 0, 0, arg0, "qwrtyu0003") } } Return (arg0) } if (LEqual(cmd0, 3)) { // String applicable to the Implicit Conversion Rules ("abcd0800") Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c00a)) { err("mI01", z167, __LINE__, 0, 0, Local0, c00a) } if (LNot(run4)) { // Run on ACPICA only Add(arg0, 5, Local0) if (LNotEqual(Local0, 0xabcd0805)) { err("mI01", z167, __LINE__, 0, 0, Local0, 0xabcd0805) } if (LNotEqual(arg0, "abcd0800")) { err("mI01", z167, __LINE__, 0, 0, arg0, "abcd0800") } } Return (arg0) } if (LEqual(cmd0, 4)) { // Buffer Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c00b)) { err("mI01", z167, __LINE__, 0, 0, Local0, c00b) } if (LNot(run4)) { // Run on ACPICA only Add(arg0, 7, Local0) if (LNotEqual(Local0, 0xb4b3b2b1b7)) { err("mI01", z167, __LINE__, 0, 0, Local0, 0xb4b3b2b1b7) } if (LNotEqual(arg0, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})) { err("mI01", z167, __LINE__, 0, 0, arg0, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) } } Return (arg0) } if (LEqual(cmd0, 5)) { // Package Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c00c)) { err("mI01", z167, __LINE__, 0, 0, Local0, c00c) } Store(DerefOf(Index(arg0, 1)), Local0) if (LNotEqual(Local0, 0xabcd0902)) { err("mI01", z167, __LINE__, 0, 0, Local0, 0xabcd0902) } Return (arg0) } if (LEqual(cmd0, 6)) { // Field Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c009)) { err("mI01", z167, __LINE__, 0, 0, Local0, c009) } Add(arg0, 9, Local0) if (LNotEqual(Local0, 0xabcd0a09)) { err("mI01", z167, __LINE__, 0, 0, Local0, 0xabcd0a09) } if (LNotEqual(arg0, 0xabcd0a00)) { err("mI01", z167, __LINE__, 0, 0, arg0, 0xabcd0a00) } Return (arg0) } if (LEqual(cmd0, 7)) { // Device Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c00e)) { err("mI01", z167, __LINE__, 0, 0, Local0, c00e) } Return (arg0) } if (LEqual(cmd0, 8)) { // Event Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c00f)) { err("mI01", z167, __LINE__, 0, 0, Local0, c00f) } Return (arg0) } if (LEqual(cmd0, 9)) { // Mutex Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c011)) { err("mI01", z167, __LINE__, 0, 0, Local0, c011) } Return (arg0) } if (LEqual(cmd0, 10)) { // Operation Region Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c012)) { err("mI01", z167, __LINE__, 0, 0, Local0, c012) } Return (arg0) } if (LEqual(cmd0, 11)) { // Power Resource Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c013)) { err("mI01", z167, __LINE__, 0, 0, Local0, c013) } Return (arg0) } if (LEqual(cmd0, 12)) { // Processor Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c014)) { err("mI01", z167, __LINE__, 0, 0, Local0, c014) } Return (arg0) } if (LEqual(cmd0, 13)) { // Thermal Zone Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c015)) { err("mI01", z167, __LINE__, 0, 0, Local0, c015) } Return (arg0) } if (LEqual(cmd0, 14)) { // Index Field Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c009)) { err("mI01", z167, __LINE__, 0, 0, Local0, c009) } Add(arg0, 9, Local0) if (LNotEqual(Local0, 0xabababb4)) { err("mI01", z167, __LINE__, 0, 0, Local0, 0xabababb4) } if (LNotEqual(arg0, 0xabababab)) { err("mI01", z167, __LINE__, 0, 0, arg0, 0xabababab) } Return (arg0) } if (LEqual(cmd0, 15)) { // Bank Field Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c009)) { err("mI01", z167, __LINE__, 0, 0, Local0, c009) } Add(arg0, 9, Local0) if (LNotEqual(Local0, 9)) { err("mI01", z167, __LINE__, 0, 0, Local0, 9) } if (LNotEqual(arg0, 0)) { err("mI01", z167, __LINE__, 0, 0, arg0, 0) } Return (arg0) } if (LEqual(cmd0, 16)) { // Buffer Field // On MS ObjectType(BufferField) == c00b Store(ObjectType(arg0), Local0) if (LAnd(LNotEqual(Local0, c009), LNotEqual(Local0, c00b))) { err("mI01", z167, __LINE__, 0, 0, Local0, c00b) } if (chk0) { Add(arg0, 2, Local0) if (LNotEqual(Local0, 0xabcd0d0a)) { err("mI01", z167, __LINE__, 0, 0, Local0, 0xabcd0d0a) } if (LNotEqual(arg0, 0xabcd0d08)) { err("mI01", z167, __LINE__, 0, 0, arg0, 0xabcd0d08) } } Return (arg0) } } Switch (ToInteger (cmd0)) { Case (1) { // Integer act0(OT00, arg0, c009, 0) act0(LN00, arg0, 0, 0) act0(AD00, arg0, 1, 0xabcd0001) } Case (2) { // String ("qwrtyu0003") act0(OT00, arg0, c00a, 0) act0(LN01, arg0, 0, 0) } Case (3) { // String applicable to the Implicit Conversion Rules ("abcd0800") act0(OT00, arg0, c00a, 0) act0(LN02, arg0, 0, 0) // if (chk0) { act0(AD00, arg0, 5, 0xabcd0805) // } } Case (4) { // Buffer act0(OT00, arg0, c00b, 0) act0(LN03, arg0, 0, 0) // if (chk0) { act0(AD00, arg0, 7, 0xb4b3b2b1b7) // } } Case (5) { // Package act0(OT00, arg0, c00c, 0) act0(LN04, arg0, 0, 0) } Case (6) { // Field act0(OT00, arg0, c009, 0) // if (chk0) { // This breaks Field (see qqq below): act0(LN05, arg0, 0, 0) // } act0(AD00, arg0, 9, 0xabcd0a09) } Case (7) { // Device act0(OT00, arg0, c00e, 0) } Case (8) { // Event act0(OT00, arg0, c00f, 0) } Case (9) { // Mutex act0(OT00, arg0, c011, 0) } Case (10) { // Operation Region act0(OT00, arg0, c012, 0) } Case (11) { // Power Resource // if (chk0) { act0(OT00, arg0, c013, 0) // } } Case (12) { // Processor act0(OT00, arg0, c014, 0) } Case (13) { // Thermal Zone act0(OT00, arg0, c015, 0) } Case (14) { // Index Field act0(OT00, arg0, c009, 0) // if (chk0) { act0(LN06, arg0, 0, 0) // } act0(AD00, arg0, 9, 0xabababb4) } Case (15) { // Bank Field // if (chk0) { act0(OT00, arg0, c009, 0) // } // if (chk0) { act0(LN07, arg0, 0, 0) // } // if (chk0) { act0(AD00, arg0, 9, 9) // } } Case (16) { // Buffer Field // if (chk0) { act0(OT00, arg0, c00b, 0) // } // if (chk0) { act0(LN08, arg0, 0, 0) // } // if (chk0) { act0(AD00, arg0, 2, Buffer(){0x0a, 0x0d, 0xcd, 0xab}) // } } Default { // Uninitialized act0(OT00, arg0, c008, 0) } } // Switch (arg0) Return (arg0) } Method(mI02, 2) { mI01(arg0) mI01(arg1) Return (arg0) } Method(mI03, 3) { mI01(arg0) mI01(arg1) mI01(arg2) Return (arg0) } Method(mI04, 4) { mI01(arg0) mI01(arg1) mI01(arg2) mI01(arg3) Return (arg0) } Method(mI05, 5) { mI01(arg0) mI01(arg1) mI01(arg2) mI01(arg3) mI01(arg4) Return (arg0) } Method(mI06, 6) { mI01(arg0) mI01(arg1) mI01(arg2) mI01(arg3) mI01(arg4) mI01(arg5) Return (arg0) } Method(mI07, 7) { mI01(arg0) mI01(arg1) mI01(arg2) mI01(arg3) mI01(arg4) mI01(arg5) mI01(arg6) Return (arg0) } Method(in40, 7, Serialized) { Name(ts, "in40") Name(i000, 0xabcd0000) Name(s000, "qwrtyu0003") Name(s001, "abcd0800") Name(b000, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) Name(p000, Package() {0xabcd0901, 0xabcd0902, 0xabcd0903}) Method(mmm0,, Serialized) { Name(im00, 0xabcd0004) Name(sm00, "qwertyui") // Return ( "qwertyui" ) } Method(mmm1,, Serialized) { Name(im00, 0xabcd0004) Name(sm00, "qwertyui") // Return ( 0xabcd0004 ) Return ( "qwertyui" ) } /* * Integer */ Name(ii00, 0) Name(ii01, 0) Name(ii03, 0) Name(ii05, 0) Store(1, cmd0) Store(i000, ii00) /* * Modification 0: */ mI01(ii00) mI02(ii00, ii00) mI03(ii00, ii00, ii00) mI04(ii00, ii00, ii00, ii00) mI05(ii00, ii00, ii00, ii00, ii00) mI06(ii00, ii00, ii00, ii00, ii00, ii00) mI07(ii00, ii00, ii00, ii00, ii00, ii00, ii00) mI01( mI01(ii00)) mI02( mI01(ii00), mI02(ii00, ii00)) mI03( mI01(ii00), mI02(ii00, ii00), mI03(ii00, ii00, ii00)) mI04( mI01(ii00), mI02(ii00, ii00), mI03(ii00, ii00, ii00), mI04(ii00, ii00, ii00, ii00)) if (y262) { mI05( mI01(ii00), mI02(ii00, ii00), mI03(ii00, ii00, ii00), mI04(ii00, ii00, ii00, ii00), mI05(ii00, ii00, ii00, ii00, ii00)) mI06( mI01(ii00), mI02(ii00, ii00), mI03(ii00, ii00, ii00), mI04(ii00, ii00, ii00, ii00), mI05(ii00, ii00, ii00, ii00, ii00), mI06(ii00, ii00, ii00, ii00, ii00, ii00)) mI07( mI01(ii00), mI02(ii00, ii00), mI03(ii00, ii00, ii00), mI04(ii00, ii00, ii00, ii00), mI05(ii00, ii00, ii00, ii00, ii00), mI06(ii00, ii00, ii00, ii00, ii00, ii00), mI07(ii00, ii00, ii00, ii00, ii00, ii00, ii00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 1: * * Some params are intermediately stored to Locals */ Store(ii00, Local1) Store(ii00, Local3) Store(ii00, Local5) mI01(ii00) mI02(ii00, Local1) mI03(ii00, Local1, ii00) mI04(ii00, Local1, ii00, Local3) mI05(ii00, Local1, ii00, Local3, ii00) mI06(ii00, Local1, ii00, Local3, ii00, Local5) mI07(ii00, Local1, ii00, Local3, ii00, Local5, ii00) mI01( mI01(ii00)) mI02( mI01(ii00), mI02(ii00, Local1)) mI03( mI01(ii00), mI02(ii00, Local1), mI03(ii00, Local1, ii00)) mI04( mI01(ii00), mI02(ii00, Local1), mI03(ii00, Local1, ii00), mI04(ii00, Local1, ii00, Local3)) if (y262) { mI05( mI01(ii00), mI02(ii00, Local1), mI03(ii00, Local1, ii00), mI04(ii00, Local1, ii00, Local3), mI05(ii00, Local1, ii00, Local3, ii00)) mI06( mI01(ii00), mI02(ii00, Local1), mI03(ii00, Local1, ii00), mI04(ii00, Local1, ii00, Local3), mI05(ii00, Local1, ii00, Local3, ii00), mI06(ii00, Local1, ii00, Local3, ii00, Local5)) mI07( mI01(ii00), mI02(ii00, Local1), mI03(ii00, Local1, ii00), mI04(ii00, Local1, ii00, Local3), mI05(ii00, Local1, ii00, Local3, ii00), mI06(ii00, Local1, ii00, Local3, ii00, Local5), mI07(ii00, Local1, ii00, Local3, ii00, Local5, ii00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ Store(ii00, Arg1) Store(ii00, Arg3) Store(ii00, Arg5) mI01(ii00) mI02(ii00, Arg1) mI03(ii00, Arg1, ii00) mI04(ii00, Arg1, ii00, Arg3) mI05(ii00, Arg1, ii00, Arg3, ii00) mI06(ii00, Arg1, ii00, Arg3, ii00, Arg5) mI07(ii00, Arg1, ii00, Arg3, ii00, Arg5, ii00) mI01( mI01(ii00)) mI02( mI01(ii00), mI02(ii00, Arg1)) mI03( mI01(ii00), mI02(ii00, Arg1), mI03(ii00, Arg1, ii00)) mI04( mI01(ii00), mI02(ii00, Arg1), mI03(ii00, Arg1, ii00), mI04(ii00, Arg1, ii00, Arg3)) if (y262) { mI05( mI01(ii00), mI02(ii00, Arg1), mI03(ii00, Arg1, ii00), mI04(ii00, Arg1, ii00, Arg3), mI05(ii00, Arg1, ii00, Arg3, ii00)) mI06( mI01(ii00), mI02(ii00, Arg1), mI03(ii00, Arg1, ii00), mI04(ii00, Arg1, ii00, Arg3), mI05(ii00, Arg1, ii00, Arg3, ii00), mI06(ii00, Arg1, ii00, Arg3, ii00, Arg5)) mI07( mI01(ii00), mI02(ii00, Arg1), mI03(ii00, Arg1, ii00), mI04(ii00, Arg1, ii00, Arg3), mI05(ii00, Arg1, ii00, Arg3, ii00), mI06(ii00, Arg1, ii00, Arg3, ii00, Arg5), mI07(ii00, Arg1, ii00, Arg3, ii00, Arg5, ii00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 3: * * Some params are intermediately stored to Named */ Store(ii00, ii01) Store(ii00, ii03) Store(ii00, ii05) mI01(ii00) mI02(ii00, ii01) mI03(ii00, ii01, ii00) mI04(ii00, ii01, ii00, ii03) mI05(ii00, ii01, ii00, ii03, ii00) mI06(ii00, ii01, ii00, ii03, ii00, ii05) mI07(ii00, ii01, ii00, ii03, ii00, ii05, ii00) mI01( mI01(ii00)) mI02( mI01(ii00), mI02(ii00, ii01)) mI03( mI01(ii00), mI02(ii00, ii01), mI03(ii00, ii01, ii00)) mI04( mI01(ii00), mI02(ii00, ii01), mI03(ii00, ii01, ii00), mI04(ii00, ii01, ii00, ii03)) if (y262) { mI05( mI01(ii00), mI02(ii00, ii01), mI03(ii00, ii01, ii00), mI04(ii00, ii01, ii00, ii03), mI05(ii00, ii01, ii00, ii03, ii00)) mI06( mI01(ii00), mI02(ii00, ii01), mI03(ii00, ii01, ii00), mI04(ii00, ii01, ii00, ii03), mI05(ii00, ii01, ii00, ii03, ii00), mI06(ii00, ii01, ii00, ii03, ii00, ii05)) mI07( mI01(ii00), mI02(ii00, ii01), mI03(ii00, ii01, ii00), mI04(ii00, ii01, ii00, ii03), mI05(ii00, ii01, ii00, ii03, ii00), mI06(ii00, ii01, ii00, ii03, ii00, ii05), mI07(ii00, ii01, ii00, ii03, ii00, ii05, ii00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * String */ Name(ss00, "v") Name(ss01, "v") Name(ss03, "v") Name(ss05, "v") Store(2, cmd0) Store(s000, ss00) /* * Modification 0: */ mI01(ss00) mI02(ss00, ss00) mI03(ss00, ss00, ss00) mI04(ss00, ss00, ss00, ss00) mI05(ss00, ss00, ss00, ss00, ss00) mI06(ss00, ss00, ss00, ss00, ss00, ss00) mI07(ss00, ss00, ss00, ss00, ss00, ss00, ss00) mI01( mI01(ss00)) mI02( mI01(ss00), mI02(ss00, ss00)) mI03( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00)) mI04( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00), mI04(ss00, ss00, ss00, ss00)) if (y262) { mI05( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00), mI04(ss00, ss00, ss00, ss00), mI05(ss00, ss00, ss00, ss00, ss00)) mI06( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00), mI04(ss00, ss00, ss00, ss00), mI05(ss00, ss00, ss00, ss00, ss00), mI06(ss00, ss00, ss00, ss00, ss00, ss00)) mI07( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00), mI04(ss00, ss00, ss00, ss00), mI05(ss00, ss00, ss00, ss00, ss00), mI06(ss00, ss00, ss00, ss00, ss00, ss00), mI07(ss00, ss00, ss00, ss00, ss00, ss00, ss00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 1: * * Some params are intermediately stored to Locals */ Store(ss00, Local1) Store(ss00, Local3) Store(ss00, Local5) mI01(ss00) mI02(ss00, Local1) mI03(ss00, Local1, ss00) mI04(ss00, Local1, ss00, Local3) mI05(ss00, Local1, ss00, Local3, ss00) mI06(ss00, Local1, ss00, Local3, ss00, Local5) mI07(ss00, Local1, ss00, Local3, ss00, Local5, ss00) mI01( mI01(ss00)) mI02( mI01(ss00), mI02(ss00, Local1)) mI03( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00)) mI04( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00), mI04(ss00, Local1, ss00, Local3)) if (y262) { mI05( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00), mI04(ss00, Local1, ss00, Local3), mI05(ss00, Local1, ss00, Local3, ss00)) mI06( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00), mI04(ss00, Local1, ss00, Local3), mI05(ss00, Local1, ss00, Local3, ss00), mI06(ss00, Local1, ss00, Local3, ss00, Local5)) mI07( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00), mI04(ss00, Local1, ss00, Local3), mI05(ss00, Local1, ss00, Local3, ss00), mI06(ss00, Local1, ss00, Local3, ss00, Local5), mI07(ss00, Local1, ss00, Local3, ss00, Local5, ss00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ Store(ss00, Arg1) Store(ss00, Arg3) Store(ss00, Arg5) mI01(ss00) mI02(ss00, Arg1) mI03(ss00, Arg1, ss00) mI04(ss00, Arg1, ss00, Arg3) mI05(ss00, Arg1, ss00, Arg3, ss00) mI06(ss00, Arg1, ss00, Arg3, ss00, Arg5) mI07(ss00, Arg1, ss00, Arg3, ss00, Arg5, ss00) mI01( mI01(ss00)) mI02( mI01(ss00), mI02(ss00, Arg1)) mI03( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00)) mI04( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00), mI04(ss00, Arg1, ss00, Arg3)) if (y262) { mI05( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00), mI04(ss00, Arg1, ss00, Arg3), mI05(ss00, Arg1, ss00, Arg3, ss00)) mI06( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00), mI04(ss00, Arg1, ss00, Arg3), mI05(ss00, Arg1, ss00, Arg3, ss00), mI06(ss00, Arg1, ss00, Arg3, ss00, Arg5)) mI07( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00), mI04(ss00, Arg1, ss00, Arg3), mI05(ss00, Arg1, ss00, Arg3, ss00), mI06(ss00, Arg1, ss00, Arg3, ss00, Arg5), mI07(ss00, Arg1, ss00, Arg3, ss00, Arg5, ss00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 3: * * Some params are intermediately stored to Named */ Store(ss00, ss01) Store(ss00, ss03) Store(ss00, ss05) mI01(ss00) mI02(ss00, ss01) mI03(ss00, ss01, ss00) mI04(ss00, ss01, ss00, ss03) mI05(ss00, ss01, ss00, ss03, ss00) mI06(ss00, ss01, ss00, ss03, ss00, ss05) mI07(ss00, ss01, ss00, ss03, ss00, ss05, ss00) mI01( mI01(ss00)) mI02( mI01(ss00), mI02(ss00, ss01)) mI03( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00)) mI04( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00), mI04(ss00, ss01, ss00, ss03)) if (y262) { mI05( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00), mI04(ss00, ss01, ss00, ss03), mI05(ss00, ss01, ss00, ss03, ss00)) mI06( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00), mI04(ss00, ss01, ss00, ss03), mI05(ss00, ss01, ss00, ss03, ss00), mI06(ss00, ss01, ss00, ss03, ss00, ss05)) mI07( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00), mI04(ss00, ss01, ss00, ss03), mI05(ss00, ss01, ss00, ss03, ss00), mI06(ss00, ss01, ss00, ss03, ss00, ss05), mI07(ss00, ss01, ss00, ss03, ss00, ss05, ss00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * String (applicable to Implicit Conversion Rules) */ Store(3, cmd0) Store(s001, ss00) /* * Modification 0: */ mI01(ss00) mI02(ss00, ss00) mI03(ss00, ss00, ss00) mI04(ss00, ss00, ss00, ss00) mI05(ss00, ss00, ss00, ss00, ss00) mI06(ss00, ss00, ss00, ss00, ss00, ss00) mI07(ss00, ss00, ss00, ss00, ss00, ss00, ss00) mI01( mI01(ss00)) mI02( mI01(ss00), mI02(ss00, ss00)) mI03( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00)) mI04( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00), mI04(ss00, ss00, ss00, ss00)) if (y262) { mI05( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00), mI04(ss00, ss00, ss00, ss00), mI05(ss00, ss00, ss00, ss00, ss00)) mI06( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00), mI04(ss00, ss00, ss00, ss00), mI05(ss00, ss00, ss00, ss00, ss00), mI06(ss00, ss00, ss00, ss00, ss00, ss00)) mI07( mI01(ss00), mI02(ss00, ss00), mI03(ss00, ss00, ss00), mI04(ss00, ss00, ss00, ss00), mI05(ss00, ss00, ss00, ss00, ss00), mI06(ss00, ss00, ss00, ss00, ss00, ss00), mI07(ss00, ss00, ss00, ss00, ss00, ss00, ss00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 1: * * Some params are intermediately stored to Locals */ Store(ss00, Local1) Store(ss00, Local3) Store(ss00, Local5) mI01(ss00) mI02(ss00, Local1) mI03(ss00, Local1, ss00) mI04(ss00, Local1, ss00, Local3) mI05(ss00, Local1, ss00, Local3, ss00) mI06(ss00, Local1, ss00, Local3, ss00, Local5) mI07(ss00, Local1, ss00, Local3, ss00, Local5, ss00) mI01( mI01(ss00)) mI02( mI01(ss00), mI02(ss00, Local1)) mI03( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00)) mI04( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00), mI04(ss00, Local1, ss00, Local3)) if (y262) { mI05( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00), mI04(ss00, Local1, ss00, Local3), mI05(ss00, Local1, ss00, Local3, ss00)) mI06( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00), mI04(ss00, Local1, ss00, Local3), mI05(ss00, Local1, ss00, Local3, ss00), mI06(ss00, Local1, ss00, Local3, ss00, Local5)) mI07( mI01(ss00), mI02(ss00, Local1), mI03(ss00, Local1, ss00), mI04(ss00, Local1, ss00, Local3), mI05(ss00, Local1, ss00, Local3, ss00), mI06(ss00, Local1, ss00, Local3, ss00, Local5), mI07(ss00, Local1, ss00, Local3, ss00, Local5, ss00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ Store(ss00, Arg1) Store(ss00, Arg3) Store(ss00, Arg5) mI01(ss00) mI02(ss00, Arg1) mI03(ss00, Arg1, ss00) mI04(ss00, Arg1, ss00, Arg3) mI05(ss00, Arg1, ss00, Arg3, ss00) mI06(ss00, Arg1, ss00, Arg3, ss00, Arg5) mI07(ss00, Arg1, ss00, Arg3, ss00, Arg5, ss00) mI01( mI01(ss00)) mI02( mI01(ss00), mI02(ss00, Arg1)) mI03( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00)) mI04( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00), mI04(ss00, Arg1, ss00, Arg3)) if (y262) { mI05( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00), mI04(ss00, Arg1, ss00, Arg3), mI05(ss00, Arg1, ss00, Arg3, ss00)) mI06( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00), mI04(ss00, Arg1, ss00, Arg3), mI05(ss00, Arg1, ss00, Arg3, ss00), mI06(ss00, Arg1, ss00, Arg3, ss00, Arg5)) mI07( mI01(ss00), mI02(ss00, Arg1), mI03(ss00, Arg1, ss00), mI04(ss00, Arg1, ss00, Arg3), mI05(ss00, Arg1, ss00, Arg3, ss00), mI06(ss00, Arg1, ss00, Arg3, ss00, Arg5), mI07(ss00, Arg1, ss00, Arg3, ss00, Arg5, ss00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 3: * * Some params are intermediately stored to Named */ Store(ss00, ss01) Store(ss00, ss03) Store(ss00, ss05) mI01(ss00) mI02(ss00, ss01) mI03(ss00, ss01, ss00) mI04(ss00, ss01, ss00, ss03) mI05(ss00, ss01, ss00, ss03, ss00) mI06(ss00, ss01, ss00, ss03, ss00, ss05) mI07(ss00, ss01, ss00, ss03, ss00, ss05, ss00) mI01( mI01(ss00)) mI02( mI01(ss00), mI02(ss00, ss01)) mI03( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00)) mI04( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00), mI04(ss00, ss01, ss00, ss03)) if (y262) { mI05( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00), mI04(ss00, ss01, ss00, ss03), mI05(ss00, ss01, ss00, ss03, ss00)) mI06( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00), mI04(ss00, ss01, ss00, ss03), mI05(ss00, ss01, ss00, ss03, ss00), mI06(ss00, ss01, ss00, ss03, ss00, ss05)) mI07( mI01(ss00), mI02(ss00, ss01), mI03(ss00, ss01, ss00), mI04(ss00, ss01, ss00, ss03), mI05(ss00, ss01, ss00, ss03, ss00), mI06(ss00, ss01, ss00, ss03, ss00, ss05), mI07(ss00, ss01, ss00, ss03, ss00, ss05, ss00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Buffer */ Name(bb00, Buffer(5) {}) Name(bb01, Buffer(5) {}) Name(bb03, Buffer(5) {}) Name(bb05, Buffer(5) {}) Store(4, cmd0) Store(b000, bb00) /* * Modification 0: */ mI01(bb00) mI02(bb00, bb00) mI03(bb00, bb00, bb00) mI04(bb00, bb00, bb00, bb00) mI05(bb00, bb00, bb00, bb00, bb00) mI06(bb00, bb00, bb00, bb00, bb00, bb00) mI07(bb00, bb00, bb00, bb00, bb00, bb00, bb00) mI01( mI01(bb00)) mI02( mI01(bb00), mI02(bb00, bb00)) mI03( mI01(bb00), mI02(bb00, bb00), mI03(bb00, bb00, bb00)) mI04( mI01(bb00), mI02(bb00, bb00), mI03(bb00, bb00, bb00), mI04(bb00, bb00, bb00, bb00)) if (y262) { mI05( mI01(bb00), mI02(bb00, bb00), mI03(bb00, bb00, bb00), mI04(bb00, bb00, bb00, bb00), mI05(bb00, bb00, bb00, bb00, bb00)) mI06( mI01(bb00), mI02(bb00, bb00), mI03(bb00, bb00, bb00), mI04(bb00, bb00, bb00, bb00), mI05(bb00, bb00, bb00, bb00, bb00), mI06(bb00, bb00, bb00, bb00, bb00, bb00)) mI07( mI01(bb00), mI02(bb00, bb00), mI03(bb00, bb00, bb00), mI04(bb00, bb00, bb00, bb00), mI05(bb00, bb00, bb00, bb00, bb00), mI06(bb00, bb00, bb00, bb00, bb00, bb00), mI07(bb00, bb00, bb00, bb00, bb00, bb00, bb00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 1: * * Some params are intermediately stored to Locals */ Store(bb00, Local1) Store(bb00, Local3) Store(bb00, Local5) mI01(bb00) mI02(bb00, Local1) mI03(bb00, Local1, bb00) mI04(bb00, Local1, bb00, Local3) mI05(bb00, Local1, bb00, Local3, bb00) mI06(bb00, Local1, bb00, Local3, bb00, Local5) mI07(bb00, Local1, bb00, Local3, bb00, Local5, bb00) mI01( mI01(bb00)) mI02( mI01(bb00), mI02(bb00, Local1)) mI03( mI01(bb00), mI02(bb00, Local1), mI03(bb00, Local1, bb00)) mI04( mI01(bb00), mI02(bb00, Local1), mI03(bb00, Local1, bb00), mI04(bb00, Local1, bb00, Local3)) if (y262) { mI05( mI01(bb00), mI02(bb00, Local1), mI03(bb00, Local1, bb00), mI04(bb00, Local1, bb00, Local3), mI05(bb00, Local1, bb00, Local3, bb00)) mI06( mI01(bb00), mI02(bb00, Local1), mI03(bb00, Local1, bb00), mI04(bb00, Local1, bb00, Local3), mI05(bb00, Local1, bb00, Local3, bb00), mI06(bb00, Local1, bb00, Local3, bb00, Local5)) mI07( mI01(bb00), mI02(bb00, Local1), mI03(bb00, Local1, bb00), mI04(bb00, Local1, bb00, Local3), mI05(bb00, Local1, bb00, Local3, bb00), mI06(bb00, Local1, bb00, Local3, bb00, Local5), mI07(bb00, Local1, bb00, Local3, bb00, Local5, bb00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ Store(bb00, Arg1) Store(bb00, Arg3) Store(bb00, Arg5) mI01(bb00) mI02(bb00, Arg1) mI03(bb00, Arg1, bb00) mI04(bb00, Arg1, bb00, Arg3) mI05(bb00, Arg1, bb00, Arg3, bb00) mI06(bb00, Arg1, bb00, Arg3, bb00, Arg5) mI07(bb00, Arg1, bb00, Arg3, bb00, Arg5, bb00) mI01( mI01(bb00)) mI02( mI01(bb00), mI02(bb00, Arg1)) mI03( mI01(bb00), mI02(bb00, Arg1), mI03(bb00, Arg1, bb00)) mI04( mI01(bb00), mI02(bb00, Arg1), mI03(bb00, Arg1, bb00), mI04(bb00, Arg1, bb00, Arg3)) if (y262) { mI05( mI01(bb00), mI02(bb00, Arg1), mI03(bb00, Arg1, bb00), mI04(bb00, Arg1, bb00, Arg3), mI05(bb00, Arg1, bb00, Arg3, bb00)) mI06( mI01(bb00), mI02(bb00, Arg1), mI03(bb00, Arg1, bb00), mI04(bb00, Arg1, bb00, Arg3), mI05(bb00, Arg1, bb00, Arg3, bb00), mI06(bb00, Arg1, bb00, Arg3, bb00, Arg5)) mI07( mI01(bb00), mI02(bb00, Arg1), mI03(bb00, Arg1, bb00), mI04(bb00, Arg1, bb00, Arg3), mI05(bb00, Arg1, bb00, Arg3, bb00), mI06(bb00, Arg1, bb00, Arg3, bb00, Arg5), mI07(bb00, Arg1, bb00, Arg3, bb00, Arg5, bb00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 3: * * Some params are intermediately stored to Named */ Store(bb00, bb01) Store(bb00, bb03) Store(bb00, bb05) mI01(bb00) mI02(bb00, bb01) mI03(bb00, bb01, bb00) mI04(bb00, bb01, bb00, bb03) mI05(bb00, bb01, bb00, bb03, bb00) mI06(bb00, bb01, bb00, bb03, bb00, bb05) mI07(bb00, bb01, bb00, bb03, bb00, bb05, bb00) mI01( mI01(bb00)) mI02( mI01(bb00), mI02(bb00, bb01)) mI03( mI01(bb00), mI02(bb00, bb01), mI03(bb00, bb01, bb00)) mI04( mI01(bb00), mI02(bb00, bb01), mI03(bb00, bb01, bb00), mI04(bb00, bb01, bb00, bb03)) if (y262) { mI05( mI01(bb00), mI02(bb00, bb01), mI03(bb00, bb01, bb00), mI04(bb00, bb01, bb00, bb03), mI05(bb00, bb01, bb00, bb03, bb00)) mI06( mI01(bb00), mI02(bb00, bb01), mI03(bb00, bb01, bb00), mI04(bb00, bb01, bb00, bb03), mI05(bb00, bb01, bb00, bb03, bb00), mI06(bb00, bb01, bb00, bb03, bb00, bb05)) mI07( mI01(bb00), mI02(bb00, bb01), mI03(bb00, bb01, bb00), mI04(bb00, bb01, bb00, bb03), mI05(bb00, bb01, bb00, bb03, bb00), mI06(bb00, bb01, bb00, bb03, bb00, bb05), mI07(bb00, bb01, bb00, bb03, bb00, bb05, bb00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Package */ Name(pp00, Package() {0xabcd0901, 0xabcd0902, 0xabcd0903}) Name(pp01, Package(3) {}) Name(pp03, Package(3) {}) Name(pp05, Package(3) {}) Store(5, cmd0) if (chk0) { Store(p000, pp00) } /* * Modification 0: */ mI01(pp00) mI02(pp00, pp00) mI03(pp00, pp00, pp00) mI04(pp00, pp00, pp00, pp00) mI05(pp00, pp00, pp00, pp00, pp00) mI06(pp00, pp00, pp00, pp00, pp00, pp00) mI07(pp00, pp00, pp00, pp00, pp00, pp00, pp00) mI01( mI01(pp00)) mI02( mI01(pp00), mI02(pp00, pp00)) mI03( mI01(pp00), mI02(pp00, pp00), mI03(pp00, pp00, pp00)) mI04( mI01(pp00), mI02(pp00, pp00), mI03(pp00, pp00, pp00), mI04(pp00, pp00, pp00, pp00)) if (y262) { mI05( mI01(pp00), mI02(pp00, pp00), mI03(pp00, pp00, pp00), mI04(pp00, pp00, pp00, pp00), mI05(pp00, pp00, pp00, pp00, pp00)) mI06( mI01(pp00), mI02(pp00, pp00), mI03(pp00, pp00, pp00), mI04(pp00, pp00, pp00, pp00), mI05(pp00, pp00, pp00, pp00, pp00), mI06(pp00, pp00, pp00, pp00, pp00, pp00)) mI07( mI01(pp00), mI02(pp00, pp00), mI03(pp00, pp00, pp00), mI04(pp00, pp00, pp00, pp00), mI05(pp00, pp00, pp00, pp00, pp00), mI06(pp00, pp00, pp00, pp00, pp00, pp00), mI07(pp00, pp00, pp00, pp00, pp00, pp00, pp00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 1: * * Some params are intermediately stored to Locals */ Store(pp00, Local1) Store(pp00, Local3) Store(pp00, Local5) mI01(pp00) mI02(pp00, Local1) mI03(pp00, Local1, pp00) mI04(pp00, Local1, pp00, Local3) mI05(pp00, Local1, pp00, Local3, pp00) mI06(pp00, Local1, pp00, Local3, pp00, Local5) mI07(pp00, Local1, pp00, Local3, pp00, Local5, pp00) mI01( mI01(pp00)) mI02( mI01(pp00), mI02(pp00, Local1)) mI03( mI01(pp00), mI02(pp00, Local1), mI03(pp00, Local1, pp00)) mI04( mI01(pp00), mI02(pp00, Local1), mI03(pp00, Local1, pp00), mI04(pp00, Local1, pp00, Local3)) if (y262) { mI05( mI01(pp00), mI02(pp00, Local1), mI03(pp00, Local1, pp00), mI04(pp00, Local1, pp00, Local3), mI05(pp00, Local1, pp00, Local3, pp00)) mI06( mI01(pp00), mI02(pp00, Local1), mI03(pp00, Local1, pp00), mI04(pp00, Local1, pp00, Local3), mI05(pp00, Local1, pp00, Local3, pp00), mI06(pp00, Local1, pp00, Local3, pp00, Local5)) mI07( mI01(pp00), mI02(pp00, Local1), mI03(pp00, Local1, pp00), mI04(pp00, Local1, pp00, Local3), mI05(pp00, Local1, pp00, Local3, pp00), mI06(pp00, Local1, pp00, Local3, pp00, Local5), mI07(pp00, Local1, pp00, Local3, pp00, Local5, pp00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ Store(pp00, Arg1) Store(pp00, Arg3) Store(pp00, Arg5) mI01(pp00) mI02(pp00, Arg1) mI03(pp00, Arg1, pp00) mI04(pp00, Arg1, pp00, Arg3) mI05(pp00, Arg1, pp00, Arg3, pp00) mI06(pp00, Arg1, pp00, Arg3, pp00, Arg5) mI07(pp00, Arg1, pp00, Arg3, pp00, Arg5, pp00) mI01( mI01(pp00)) mI02( mI01(pp00), mI02(pp00, Arg1)) mI03( mI01(pp00), mI02(pp00, Arg1), mI03(pp00, Arg1, pp00)) mI04( mI01(pp00), mI02(pp00, Arg1), mI03(pp00, Arg1, pp00), mI04(pp00, Arg1, pp00, Arg3)) if (y262) { mI05( mI01(pp00), mI02(pp00, Arg1), mI03(pp00, Arg1, pp00), mI04(pp00, Arg1, pp00, Arg3), mI05(pp00, Arg1, pp00, Arg3, pp00)) mI06( mI01(pp00), mI02(pp00, Arg1), mI03(pp00, Arg1, pp00), mI04(pp00, Arg1, pp00, Arg3), mI05(pp00, Arg1, pp00, Arg3, pp00), mI06(pp00, Arg1, pp00, Arg3, pp00, Arg5)) mI07( mI01(pp00), mI02(pp00, Arg1), mI03(pp00, Arg1, pp00), mI04(pp00, Arg1, pp00, Arg3), mI05(pp00, Arg1, pp00, Arg3, pp00), mI06(pp00, Arg1, pp00, Arg3, pp00, Arg5), mI07(pp00, Arg1, pp00, Arg3, pp00, Arg5, pp00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } if (chk0) { /* * Modification 3: * * Some params are intermediately stored to Named */ Store(pp00, pp01) Store(pp00, pp03) Store(pp00, pp05) mI01(pp00) mI02(pp00, pp01) mI03(pp00, pp01, pp00) mI04(pp00, pp01, pp00, pp03) mI05(pp00, pp01, pp00, pp03, pp00) mI06(pp00, pp01, pp00, pp03, pp00, pp05) mI07(pp00, pp01, pp00, pp03, pp00, pp05, pp00) mI01( mI01(pp00)) mI02( mI01(pp00), mI02(pp00, pp01)) mI03( mI01(pp00), mI02(pp00, pp01), mI03(pp00, pp01, pp00)) mI04( mI01(pp00), mI02(pp00, pp01), mI03(pp00, pp01, pp00), mI04(pp00, pp01, pp00, pp03)) if (y262) { mI05( mI01(pp00), mI02(pp00, pp01), mI03(pp00, pp01, pp00), mI04(pp00, pp01, pp00, pp03), mI05(pp00, pp01, pp00, pp03, pp00)) mI06( mI01(pp00), mI02(pp00, pp01), mI03(pp00, pp01, pp00), mI04(pp00, pp01, pp00, pp03), mI05(pp00, pp01, pp00, pp03, pp00), mI06(pp00, pp01, pp00, pp03, pp00, pp05)) mI07( mI01(pp00), mI02(pp00, pp01), mI03(pp00, pp01, pp00), mI04(pp00, pp01, pp00, pp03), mI05(pp00, pp01, pp00, pp03, pp00), mI06(pp00, pp01, pp00, pp03, pp00, pp05), mI07(pp00, pp01, pp00, pp03, pp00, pp05, pp00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } } // if (chk0) } Method(in41, 7, Serialized) { Name(ts, "in41") Event(e000) Mutex(mx00, 0) Method(mmm0,, Serialized) { Name(im00, 0xabcd0004) Name(sm00, "qwertyui") // Return ( "qwertyui" ) } Method(mmm1,, Serialized) { Name(im00, 0xabcd0004) Name(sm00, "qwertyui") // Return ( 0xabcd0004 ) Return ( "qwertyui" ) } Device(d000) { Name(id00, 0xabcd0005) } ThermalZone(tz00) { Name(itz0, 0xabcd0006) } Processor(pr00, 0, 0xFFFFFFFF, 0) { Name(ipr0, 0xabcd0007) } PowerResource(pw00, 1, 0) { Name(ipw0, 0xabcd0008) } OperationRegion(r000, SystemMemory, 0x000, 0x080) Name(b001, Buffer() {0xa0,0xa1,0xa2,0xa3,0xa4}) CreateField(b001, 0, 32, bf00) OperationRegion(r001, SystemMemory, 0x080, 0x080) Field(r001, ByteAcc, NoLock, Preserve) {f000,32, f001,32, f002,32, f003,32} BankField(r001, f001, 0, ByteAcc, NoLock, Preserve) {bnk0,32} IndexField(f002, f003, ByteAcc, NoLock, Preserve) {if00,32, if01,32} /* * Field */ OperationRegion(r002, SystemMemory, 0x100, 0x080) Field(r002, ByteAcc, NoLock, Preserve) {ff00,32, ff01,32, ff03,32, ff05,32} Store(6, cmd0) Store(0xabcd0a00, f000) Store(f000, ff00) /* * Modification 0: */ mI01(ff00) mI02(ff00, ff00) mI03(ff00, ff00, ff00) mI04(ff00, ff00, ff00, ff00) mI05(ff00, ff00, ff00, ff00, ff00) mI06(ff00, ff00, ff00, ff00, ff00, ff00) mI07(ff00, ff00, ff00, ff00, ff00, ff00, ff00) mI01( mI01(ff00)) mI02( mI01(ff00), mI02(ff00, ff00)) mI03( mI01(ff00), mI02(ff00, ff00), mI03(ff00, ff00, ff00)) mI04( mI01(ff00), mI02(ff00, ff00), mI03(ff00, ff00, ff00), mI04(ff00, ff00, ff00, ff00)) if (y262) { mI05( mI01(ff00), mI02(ff00, ff00), mI03(ff00, ff00, ff00), mI04(ff00, ff00, ff00, ff00), mI05(ff00, ff00, ff00, ff00, ff00)) mI06( mI01(ff00), mI02(ff00, ff00), mI03(ff00, ff00, ff00), mI04(ff00, ff00, ff00, ff00), mI05(ff00, ff00, ff00, ff00, ff00), mI06(ff00, ff00, ff00, ff00, ff00, ff00)) // if (chk0) { // qqq: This breaks Field: mI07( mI01(ff00), mI02(ff00, ff00), mI03(ff00, ff00, ff00), mI04(ff00, ff00, ff00, ff00), mI05(ff00, ff00, ff00, ff00, ff00), mI06(ff00, ff00, ff00, ff00, ff00, ff00), mI07(ff00, ff00, ff00, ff00, ff00, ff00, ff00)) // } } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 1: * * Some params are intermediately stored to Locals */ Store(ff00, Local1) Store(ff00, Local3) Store(ff00, Local5) mI01(ff00) mI02(ff00, Local1) mI03(ff00, Local1, ff00) mI04(ff00, Local1, ff00, Local3) mI05(ff00, Local1, ff00, Local3, ff00) mI06(ff00, Local1, ff00, Local3, ff00, Local5) mI07(ff00, Local1, ff00, Local3, ff00, Local5, ff00) mI01( mI01(ff00)) mI02( mI01(ff00), mI02(ff00, Local1)) mI03( mI01(ff00), mI02(ff00, Local1), mI03(ff00, Local1, ff00)) mI04( mI01(ff00), mI02(ff00, Local1), mI03(ff00, Local1, ff00), mI04(ff00, Local1, ff00, Local3)) if (y262) { mI05( mI01(ff00), mI02(ff00, Local1), mI03(ff00, Local1, ff00), mI04(ff00, Local1, ff00, Local3), mI05(ff00, Local1, ff00, Local3, ff00)) mI06( mI01(ff00), mI02(ff00, Local1), mI03(ff00, Local1, ff00), mI04(ff00, Local1, ff00, Local3), mI05(ff00, Local1, ff00, Local3, ff00), mI06(ff00, Local1, ff00, Local3, ff00, Local5)) // if (chk0) { // qqq: This breaks Field: mI07( mI01(ff00), mI02(ff00, Local1), mI03(ff00, Local1, ff00), mI04(ff00, Local1, ff00, Local3), mI05(ff00, Local1, ff00, Local3, ff00), mI06(ff00, Local1, ff00, Local3, ff00, Local5), mI07(ff00, Local1, ff00, Local3, ff00, Local5, ff00)) // } } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ Store(ff00, Arg1) Store(ff00, Arg3) Store(ff00, Arg5) mI01(ff00) mI02(ff00, Arg1) mI03(ff00, Arg1, ff00) mI04(ff00, Arg1, ff00, Arg3) mI05(ff00, Arg1, ff00, Arg3, ff00) mI06(ff00, Arg1, ff00, Arg3, ff00, Arg5) mI07(ff00, Arg1, ff00, Arg3, ff00, Arg5, ff00) mI01( mI01(ff00)) mI02( mI01(ff00), mI02(ff00, Arg1)) mI03( mI01(ff00), mI02(ff00, Arg1), mI03(ff00, Arg1, ff00)) mI04( mI01(ff00), mI02(ff00, Arg1), mI03(ff00, Arg1, ff00), mI04(ff00, Arg1, ff00, Arg3)) if (y262) { mI05( mI01(ff00), mI02(ff00, Arg1), mI03(ff00, Arg1, ff00), mI04(ff00, Arg1, ff00, Arg3), mI05(ff00, Arg1, ff00, Arg3, ff00)) mI06( mI01(ff00), mI02(ff00, Arg1), mI03(ff00, Arg1, ff00), mI04(ff00, Arg1, ff00, Arg3), mI05(ff00, Arg1, ff00, Arg3, ff00), mI06(ff00, Arg1, ff00, Arg3, ff00, Arg5)) // if (chk0) { // qqq: This breaks Field: mI07( mI01(ff00), mI02(ff00, Arg1), mI03(ff00, Arg1, ff00), mI04(ff00, Arg1, ff00, Arg3), mI05(ff00, Arg1, ff00, Arg3, ff00), mI06(ff00, Arg1, ff00, Arg3, ff00, Arg5), mI07(ff00, Arg1, ff00, Arg3, ff00, Arg5, ff00)) // } } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 3: * * Some params are intermediately stored to Named */ Store(ff00, ff01) Store(ff00, ff03) Store(ff00, ff05) mI01(ff00) mI02(ff00, ff01) mI03(ff00, ff01, ff00) mI04(ff00, ff01, ff00, ff03) mI05(ff00, ff01, ff00, ff03, ff00) mI06(ff00, ff01, ff00, ff03, ff00, ff05) mI07(ff00, ff01, ff00, ff03, ff00, ff05, ff00) mI01( mI01(ff00)) mI02( mI01(ff00), mI02(ff00, ff01)) mI03( mI01(ff00), mI02(ff00, ff01), mI03(ff00, ff01, ff00)) mI04( mI01(ff00), mI02(ff00, ff01), mI03(ff00, ff01, ff00), mI04(ff00, ff01, ff00, ff03)) if (y262) { mI05( mI01(ff00), mI02(ff00, ff01), mI03(ff00, ff01, ff00), mI04(ff00, ff01, ff00, ff03), mI05(ff00, ff01, ff00, ff03, ff00)) mI06( mI01(ff00), mI02(ff00, ff01), mI03(ff00, ff01, ff00), mI04(ff00, ff01, ff00, ff03), mI05(ff00, ff01, ff00, ff03, ff00), mI06(ff00, ff01, ff00, ff03, ff00, ff05)) // if (chk0) { // qqq: This breaks Field: mI07( mI01(ff00), mI02(ff00, ff01), mI03(ff00, ff01, ff00), mI04(ff00, ff01, ff00, ff03), mI05(ff00, ff01, ff00, ff03, ff00), mI06(ff00, ff01, ff00, ff03, ff00, ff05), mI07(ff00, ff01, ff00, ff03, ff00, ff05, ff00)) // } } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Index Field */ OperationRegion(r003, SystemMemory, 0x180, 0x080) Field(r003, ByteAcc, NoLock, Preserve) {f004,32, f005,32} IndexField(f004, f005, ByteAcc, NoLock, Preserve) {if02,32} Store(14, cmd0) Store(0xabcd0b04, if00) Store(if00, if02) /* * Modification 0: */ mI01(if02) mI02(if02, if02) mI03(if02, if02, if02) mI04(if02, if02, if02, if02) mI05(if02, if02, if02, if02, if02) mI06(if02, if02, if02, if02, if02, if02) mI07(if02, if02, if02, if02, if02, if02, if02) // if (chk0) { mI01( mI01(if02)) mI02( mI01(if02), mI02(if02, if02)) mI03( mI01(if02), mI02(if02, if02), mI03(if02, if02, if02)) mI04( mI01(if02), mI02(if02, if02), mI03(if02, if02, if02), mI04(if02, if02, if02, if02)) if (y262) { mI05( mI01(if02), mI02(if02, if02), mI03(if02, if02, if02), mI04(if02, if02, if02, if02), mI05(if02, if02, if02, if02, if02)) mI06( mI01(if02), mI02(if02, if02), mI03(if02, if02, if02), mI04(if02, if02, if02, if02), mI05(if02, if02, if02, if02, if02), mI06(if02, if02, if02, if02, if02, if02)) mI07( mI01(if02), mI02(if02, if02), mI03(if02, if02, if02), mI04(if02, if02, if02, if02), mI05(if02, if02, if02, if02, if02), mI06(if02, if02, if02, if02, if02, if02), mI07(if02, if02, if02, if02, if02, if02, if02)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 1: * * Some params are intermediately stored to Locals */ Store(if02, Local1) Store(if02, Local3) Store(if02, Local5) mI01(if02) mI02(if02, Local1) mI03(if02, Local1, if02) mI04(if02, Local1, if02, Local3) mI05(if02, Local1, if02, Local3, if02) mI06(if02, Local1, if02, Local3, if02, Local5) mI07(if02, Local1, if02, Local3, if02, Local5, if02) mI01( mI01(if02)) mI02( mI01(if02), mI02(if02, Local1)) mI03( mI01(if02), mI02(if02, Local1), mI03(if02, Local1, if02)) mI04( mI01(if02), mI02(if02, Local1), mI03(if02, Local1, if02), mI04(if02, Local1, if02, Local3)) if (y262) { mI05( mI01(if02), mI02(if02, Local1), mI03(if02, Local1, if02), mI04(if02, Local1, if02, Local3), mI05(if02, Local1, if02, Local3, if02)) mI06( mI01(if02), mI02(if02, Local1), mI03(if02, Local1, if02), mI04(if02, Local1, if02, Local3), mI05(if02, Local1, if02, Local3, if02), mI06(if02, Local1, if02, Local3, if02, Local5)) mI07( mI01(if02), mI02(if02, Local1), mI03(if02, Local1, if02), mI04(if02, Local1, if02, Local3), mI05(if02, Local1, if02, Local3, if02), mI06(if02, Local1, if02, Local3, if02, Local5), mI07(if02, Local1, if02, Local3, if02, Local5, if02)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ Store(if02, Arg1) Store(if02, Arg3) Store(if02, Arg5) mI01(if02) mI02(if02, Arg1) mI03(if02, Arg1, if02) mI04(if02, Arg1, if02, Arg3) mI05(if02, Arg1, if02, Arg3, if02) mI06(if02, Arg1, if02, Arg3, if02, Arg5) mI07(if02, Arg1, if02, Arg3, if02, Arg5, if02) mI01( mI01(if02)) mI02( mI01(if02), mI02(if02, Arg1)) mI03( mI01(if02), mI02(if02, Arg1), mI03(if02, Arg1, if02)) mI04( mI01(if02), mI02(if02, Arg1), mI03(if02, Arg1, if02), mI04(if02, Arg1, if02, Arg3)) if (y262) { mI05( mI01(if02), mI02(if02, Arg1), mI03(if02, Arg1, if02), mI04(if02, Arg1, if02, Arg3), mI05(if02, Arg1, if02, Arg3, if02)) mI06( mI01(if02), mI02(if02, Arg1), mI03(if02, Arg1, if02), mI04(if02, Arg1, if02, Arg3), mI05(if02, Arg1, if02, Arg3, if02), mI06(if02, Arg1, if02, Arg3, if02, Arg5)) mI07( mI01(if02), mI02(if02, Arg1), mI03(if02, Arg1, if02), mI04(if02, Arg1, if02, Arg3), mI05(if02, Arg1, if02, Arg3, if02), mI06(if02, Arg1, if02, Arg3, if02, Arg5), mI07(if02, Arg1, if02, Arg3, if02, Arg5, if02)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 3: * * Some params are intermediately stored to Named */ Store(if02, ff01) Store(if02, ff03) Store(if02, ff05) mI01(if02) mI02(if02, ff01) mI03(if02, ff01, if02) mI04(if02, ff01, if02, ff03) mI05(if02, ff01, if02, ff03, if02) mI06(if02, ff01, if02, ff03, if02, ff05) mI07(if02, ff01, if02, ff03, if02, ff05, if02) mI01( mI01(if02)) mI02( mI01(if02), mI02(if02, ff01)) mI03( mI01(if02), mI02(if02, ff01), mI03(if02, ff01, if02)) mI04( mI01(if02), mI02(if02, ff01), mI03(if02, ff01, if02), mI04(if02, ff01, if02, ff03)) if (y262) { mI05( mI01(if02), mI02(if02, ff01), mI03(if02, ff01, if02), mI04(if02, ff01, if02, ff03), mI05(if02, ff01, if02, ff03, if02)) mI06( mI01(if02), mI02(if02, ff01), mI03(if02, ff01, if02), mI04(if02, ff01, if02, ff03), mI05(if02, ff01, if02, ff03, if02), mI06(if02, ff01, if02, ff03, if02, ff05)) mI07( mI01(if02), mI02(if02, ff01), mI03(if02, ff01, if02), mI04(if02, ff01, if02, ff03), mI05(if02, ff01, if02, ff03, if02), mI06(if02, ff01, if02, ff03, if02, ff05), mI07(if02, ff01, if02, ff03, if02, ff05, if02)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) /* * Bank Field */ OperationRegion(r004, SystemMemory, 0x200, 0x080) Field(r004, ByteAcc, NoLock, Preserve) {f006,32} BankField(r004, f006, 0, ByteAcc, NoLock, Preserve) {bnk1,32} Store(15, cmd0) Store(0xabcd0c07, bnk0) Store(bnk0, bnk1) /* * Modification 0: */ mI01(bnk1) mI02(bnk1, bnk1) mI03(bnk1, bnk1, bnk1) mI04(bnk1, bnk1, bnk1, bnk1) // if (chk0) { mI05(bnk1, bnk1, bnk1, bnk1, bnk1) mI06(bnk1, bnk1, bnk1, bnk1, bnk1, bnk1) mI07(bnk1, bnk1, bnk1, bnk1, bnk1, bnk1, bnk1) mI01( mI01(bnk1)) mI02( mI01(bnk1), mI02(bnk1, bnk1)) mI03( mI01(bnk1), mI02(bnk1, bnk1), mI03(bnk1, bnk1, bnk1)) mI04( mI01(bnk1), mI02(bnk1, bnk1), mI03(bnk1, bnk1, bnk1), mI04(bnk1, bnk1, bnk1, bnk1)) if (y262) { mI05( mI01(bnk1), mI02(bnk1, bnk1), mI03(bnk1, bnk1, bnk1), mI04(bnk1, bnk1, bnk1, bnk1), mI05(bnk1, bnk1, bnk1, bnk1, bnk1)) mI06( mI01(bnk1), mI02(bnk1, bnk1), mI03(bnk1, bnk1, bnk1), mI04(bnk1, bnk1, bnk1, bnk1), mI05(bnk1, bnk1, bnk1, bnk1, bnk1), mI06(bnk1, bnk1, bnk1, bnk1, bnk1, bnk1)) mI07( mI01(bnk1), mI02(bnk1, bnk1), mI03(bnk1, bnk1, bnk1), mI04(bnk1, bnk1, bnk1, bnk1), mI05(bnk1, bnk1, bnk1, bnk1, bnk1), mI06(bnk1, bnk1, bnk1, bnk1, bnk1, bnk1), mI07(bnk1, bnk1, bnk1, bnk1, bnk1, bnk1, bnk1)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) /* * Modification 1: * * Some params are intermediately stored to Locals */ Store(bnk1, Local1) Store(bnk1, Local3) Store(bnk1, Local5) mI01(bnk1) mI02(bnk1, Local1) mI03(bnk1, Local1, bnk1) // if (chk0) { mI04(bnk1, Local1, bnk1, Local3) mI05(bnk1, Local1, bnk1, Local3, bnk1) mI06(bnk1, Local1, bnk1, Local3, bnk1, Local5) mI07(bnk1, Local1, bnk1, Local3, bnk1, Local5, bnk1) mI01( mI01(bnk1)) mI02( mI01(bnk1), mI02(bnk1, Local1)) mI03( mI01(bnk1), mI02(bnk1, Local1), mI03(bnk1, Local1, bnk1)) mI04( mI01(bnk1), mI02(bnk1, Local1), mI03(bnk1, Local1, bnk1), mI04(bnk1, Local1, bnk1, Local3)) if (y262) { mI05( mI01(bnk1), mI02(bnk1, Local1), mI03(bnk1, Local1, bnk1), mI04(bnk1, Local1, bnk1, Local3), mI05(bnk1, Local1, bnk1, Local3, bnk1)) mI06( mI01(bnk1), mI02(bnk1, Local1), mI03(bnk1, Local1, bnk1), mI04(bnk1, Local1, bnk1, Local3), mI05(bnk1, Local1, bnk1, Local3, bnk1), mI06(bnk1, Local1, bnk1, Local3, bnk1, Local5)) mI07( mI01(bnk1), mI02(bnk1, Local1), mI03(bnk1, Local1, bnk1), mI04(bnk1, Local1, bnk1, Local3), mI05(bnk1, Local1, bnk1, Local3, bnk1), mI06(bnk1, Local1, bnk1, Local3, bnk1, Local5), mI07(bnk1, Local1, bnk1, Local3, bnk1, Local5, bnk1)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) { /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ Store(bnk1, Arg1) Store(bnk1, Arg3) Store(bnk1, Arg5) mI01(bnk1) mI02(bnk1, Arg1) mI03(bnk1, Arg1, bnk1) mI04(bnk1, Arg1, bnk1, Arg3) // if (chk0) { mI05(bnk1, Arg1, bnk1, Arg3, bnk1) mI06(bnk1, Arg1, bnk1, Arg3, bnk1, Arg5) mI07(bnk1, Arg1, bnk1, Arg3, bnk1, Arg5, bnk1) mI01( mI01(bnk1)) mI02( mI01(bnk1), mI02(bnk1, Arg1)) mI03( mI01(bnk1), mI02(bnk1, Arg1), mI03(bnk1, Arg1, bnk1)) mI04( mI01(bnk1), mI02(bnk1, Arg1), mI03(bnk1, Arg1, bnk1), mI04(bnk1, Arg1, bnk1, Arg3)) if (y262) { mI05( mI01(bnk1), mI02(bnk1, Arg1), mI03(bnk1, Arg1, bnk1), mI04(bnk1, Arg1, bnk1, Arg3), mI05(bnk1, Arg1, bnk1, Arg3, bnk1)) mI06( mI01(bnk1), mI02(bnk1, Arg1), mI03(bnk1, Arg1, bnk1), mI04(bnk1, Arg1, bnk1, Arg3), mI05(bnk1, Arg1, bnk1, Arg3, bnk1), mI06(bnk1, Arg1, bnk1, Arg3, bnk1, Arg5)) mI07( mI01(bnk1), mI02(bnk1, Arg1), mI03(bnk1, Arg1, bnk1), mI04(bnk1, Arg1, bnk1, Arg3), mI05(bnk1, Arg1, bnk1, Arg3, bnk1), mI06(bnk1, Arg1, bnk1, Arg3, bnk1, Arg5), mI07(bnk1, Arg1, bnk1, Arg3, bnk1, Arg5, bnk1)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) { /* * Modification 3: * * Some params are intermediately stored to Named */ Store(bnk1, ff01) Store(bnk1, ff03) Store(bnk1, ff05) mI01(bnk1) mI02(bnk1, ff01) mI03(bnk1, ff01, bnk1) mI04(bnk1, ff01, bnk1, ff03) // if (chk0) { mI05(bnk1, ff01, bnk1, ff03, bnk1) mI06(bnk1, ff01, bnk1, ff03, bnk1, ff05) mI07(bnk1, ff01, bnk1, ff03, bnk1, ff05, bnk1) mI01( mI01(bnk1)) mI02( mI01(bnk1), mI02(bnk1, ff01)) mI03( mI01(bnk1), mI02(bnk1, ff01), mI03(bnk1, ff01, bnk1)) mI04( mI01(bnk1), mI02(bnk1, ff01), mI03(bnk1, ff01, bnk1), mI04(bnk1, ff01, bnk1, ff03)) if (y262) { mI05( mI01(bnk1), mI02(bnk1, ff01), mI03(bnk1, ff01, bnk1), mI04(bnk1, ff01, bnk1, ff03), mI05(bnk1, ff01, bnk1, ff03, bnk1)) mI06( mI01(bnk1), mI02(bnk1, ff01), mI03(bnk1, ff01, bnk1), mI04(bnk1, ff01, bnk1, ff03), mI05(bnk1, ff01, bnk1, ff03, bnk1), mI06(bnk1, ff01, bnk1, ff03, bnk1, ff05)) mI07( mI01(bnk1), mI02(bnk1, ff01), mI03(bnk1, ff01, bnk1), mI04(bnk1, ff01, bnk1, ff03), mI05(bnk1, ff01, bnk1, ff03, bnk1), mI06(bnk1, ff01, bnk1, ff03, bnk1, ff05), mI07(bnk1, ff01, bnk1, ff03, bnk1, ff05, bnk1)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) { /* * Buffer Field */ Name(b002, Buffer() {0xa0,0xa1,0xa2,0xa3,0xa4}) CreateField(b002, 0, 32, bf01) Store(16, cmd0) Store(0xabcd0d08, bf00) Store(bf00, bf01) /* * Modification 0: */ mI01(bf01) mI02(bf01, bf01) mI03(bf01, bf01, bf01) mI04(bf01, bf01, bf01, bf01) mI05(bf01, bf01, bf01, bf01, bf01) mI06(bf01, bf01, bf01, bf01, bf01, bf01) mI07(bf01, bf01, bf01, bf01, bf01, bf01, bf01) mI01( mI01(bf01)) mI02( mI01(bf01), mI02(bf01, bf01)) mI03( mI01(bf01), mI02(bf01, bf01), mI03(bf01, bf01, bf01)) mI04( mI01(bf01), mI02(bf01, bf01), mI03(bf01, bf01, bf01), mI04(bf01, bf01, bf01, bf01)) if (y262) { mI05( mI01(bf01), mI02(bf01, bf01), mI03(bf01, bf01, bf01), mI04(bf01, bf01, bf01, bf01), mI05(bf01, bf01, bf01, bf01, bf01)) mI06( mI01(bf01), mI02(bf01, bf01), mI03(bf01, bf01, bf01), mI04(bf01, bf01, bf01, bf01), mI05(bf01, bf01, bf01, bf01, bf01), mI06(bf01, bf01, bf01, bf01, bf01, bf01)) mI07( mI01(bf01), mI02(bf01, bf01), mI03(bf01, bf01, bf01), mI04(bf01, bf01, bf01, bf01), mI05(bf01, bf01, bf01, bf01, bf01), mI06(bf01, bf01, bf01, bf01, bf01, bf01), mI07(bf01, bf01, bf01, bf01, bf01, bf01, bf01)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 1: * * Some params are intermediately stored to Locals */ Store(bf01, Local1) Store(bf01, Local3) Store(bf01, Local5) mI01(bf01) // if (chk0) { mI02(bf01, Local1) mI03(bf01, Local1, bf01) mI04(bf01, Local1, bf01, Local3) mI05(bf01, Local1, bf01, Local3, bf01) mI06(bf01, Local1, bf01, Local3, bf01, Local5) mI07(bf01, Local1, bf01, Local3, bf01, Local5, bf01) mI01( mI01(bf01)) mI02( mI01(bf01), mI02(bf01, Local1)) mI03( mI01(bf01), mI02(bf01, Local1), mI03(bf01, Local1, bf01)) mI04( mI01(bf01), mI02(bf01, Local1), mI03(bf01, Local1, bf01), mI04(bf01, Local1, bf01, Local3)) if (y262) { mI05( mI01(bf01), mI02(bf01, Local1), mI03(bf01, Local1, bf01), mI04(bf01, Local1, bf01, Local3), mI05(bf01, Local1, bf01, Local3, bf01)) mI06( mI01(bf01), mI02(bf01, Local1), mI03(bf01, Local1, bf01), mI04(bf01, Local1, bf01, Local3), mI05(bf01, Local1, bf01, Local3, bf01), mI06(bf01, Local1, bf01, Local3, bf01, Local5)) mI07( mI01(bf01), mI02(bf01, Local1), mI03(bf01, Local1, bf01), mI04(bf01, Local1, bf01, Local3), mI05(bf01, Local1, bf01, Local3, bf01), mI06(bf01, Local1, bf01, Local3, bf01, Local5), mI07(bf01, Local1, bf01, Local3, bf01, Local5, bf01)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) { /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ Store(bf01, Arg1) Store(bf01, Arg3) Store(bf01, Arg5) mI01(bf01) // if (chk0) { mI02(bf01, Arg1) mI03(bf01, Arg1, bf01) mI04(bf01, Arg1, bf01, Arg3) mI05(bf01, Arg1, bf01, Arg3, bf01) mI06(bf01, Arg1, bf01, Arg3, bf01, Arg5) mI07(bf01, Arg1, bf01, Arg3, bf01, Arg5, bf01) mI01( mI01(bf01)) mI02( mI01(bf01), mI02(bf01, Arg1)) mI03( mI01(bf01), mI02(bf01, Arg1), mI03(bf01, Arg1, bf01)) mI04( mI01(bf01), mI02(bf01, Arg1), mI03(bf01, Arg1, bf01), mI04(bf01, Arg1, bf01, Arg3)) if (y262) { mI05( mI01(bf01), mI02(bf01, Arg1), mI03(bf01, Arg1, bf01), mI04(bf01, Arg1, bf01, Arg3), mI05(bf01, Arg1, bf01, Arg3, bf01)) mI06( mI01(bf01), mI02(bf01, Arg1), mI03(bf01, Arg1, bf01), mI04(bf01, Arg1, bf01, Arg3), mI05(bf01, Arg1, bf01, Arg3, bf01), mI06(bf01, Arg1, bf01, Arg3, bf01, Arg5)) mI07( mI01(bf01), mI02(bf01, Arg1), mI03(bf01, Arg1, bf01), mI04(bf01, Arg1, bf01, Arg3), mI05(bf01, Arg1, bf01, Arg3, bf01), mI06(bf01, Arg1, bf01, Arg3, bf01, Arg5), mI07(bf01, Arg1, bf01, Arg3, bf01, Arg5, bf01)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) { /* * Modification 3: * * Some params are intermediately stored to Named */ /* * bf01 is always treated like a buffer rather than an integer or buffer. * The tests below assume that this bf01 is treated like an integer. * Skip these tests for now... */ /* Name(ii06, 0) Name(ii07, 0) Name(ii08, 0) Store(bf01, ii06) Store(bf01, ii07) Store(bf01, ii08) mI01(bf01) mI02(bf01, ii06) mI03(bf01, ii06, bf01) mI04(bf01, ii06, bf01, ii07) mI05(bf01, ii06, bf01, ii07, bf01) mI06(bf01, ii06, bf01, ii07, bf01, ii08) mI07(bf01, ii06, bf01, ii07, bf01, ii08, bf01) mI01( mI01(bf01)) mI02( mI01(bf01), mI02(bf01, ii06)) mI03( mI01(bf01), mI02(bf01, ii06), mI03(bf01, ii06, bf01)) mI04( mI01(bf01), mI02(bf01, ii06), mI03(bf01, ii06, bf01), mI04(bf01, ii06, bf01, ii07)) if (y262) { mI05( mI01(bf01), mI02(bf01, ii06), mI03(bf01, ii06, bf01), mI04(bf01, ii06, bf01, ii07), mI05(bf01, ii06, bf01, ii07, bf01)) mI06( mI01(bf01), mI02(bf01, ii06), mI03(bf01, ii06, bf01), mI04(bf01, ii06, bf01, ii07), mI05(bf01, ii06, bf01, ii07, bf01), mI06(bf01, ii06, bf01, ii07, bf01, ii08)) mI07( mI01(bf01), mI02(bf01, ii06), mI03(bf01, ii06, bf01), mI04(bf01, ii06, bf01, ii07), mI05(bf01, ii06, bf01, ii07, bf01), mI06(bf01, ii06, bf01, ii07, bf01, ii08), mI07(bf01, ii06, bf01, ii07, bf01, ii08, bf01)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } */ /* * Device */ Store(7, cmd0) /* * Modification 0: */ mI01(d000) mI02(d000, d000) mI03(d000, d000, d000) mI04(d000, d000, d000, d000) // if (chk0) { mI05(d000, d000, d000, d000, d000) mI06(d000, d000, d000, d000, d000, d000) mI07(d000, d000, d000, d000, d000, d000, d000) mI01( mI01(d000)) mI02( mI01(d000), mI02(d000, d000)) mI03( mI01(d000), mI02(d000, d000), mI03(d000, d000, d000)) mI04( mI01(d000), mI02(d000, d000), mI03(d000, d000, d000), mI04(d000, d000, d000, d000)) if (y262) { mI05( mI01(d000), mI02(d000, d000), mI03(d000, d000, d000), mI04(d000, d000, d000, d000), mI05(d000, d000, d000, d000, d000)) mI06( mI01(d000), mI02(d000, d000), mI03(d000, d000, d000), mI04(d000, d000, d000, d000), mI05(d000, d000, d000, d000, d000), mI06(d000, d000, d000, d000, d000, d000)) mI07( mI01(d000), mI02(d000, d000), mI03(d000, d000, d000), mI04(d000, d000, d000, d000), mI05(d000, d000, d000, d000, d000), mI06(d000, d000, d000, d000, d000, d000), mI07(d000, d000, d000, d000, d000, d000, d000)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) if (SLC0) { /* * Modification 1: * * Some params are intermediately stored to Locals */ /* // Removed 09/2015. iASL now disallows these stores Store(d000, Local1) Store(d000, Local3) Store(d000, Local5) */ mI01(d000) mI02(d000, Local1) mI03(d000, Local1, d000) mI04(d000, Local1, d000, Local3) mI05(d000, Local1, d000, Local3, d000) mI06(d000, Local1, d000, Local3, d000, Local5) mI07(d000, Local1, d000, Local3, d000, Local5, d000) mI01( mI01(d000)) mI02( mI01(d000), mI02(d000, Local1)) mI03( mI01(d000), mI02(d000, Local1), mI03(d000, Local1, d000)) mI04( mI01(d000), mI02(d000, Local1), mI03(d000, Local1, d000), mI04(d000, Local1, d000, Local3)) if (y262) { mI05( mI01(d000), mI02(d000, Local1), mI03(d000, Local1, d000), mI04(d000, Local1, d000, Local3), mI05(d000, Local1, d000, Local3, d000)) mI06( mI01(d000), mI02(d000, Local1), mI03(d000, Local1, d000), mI04(d000, Local1, d000, Local3), mI05(d000, Local1, d000, Local3, d000), mI06(d000, Local1, d000, Local3, d000, Local5)) mI07( mI01(d000), mI02(d000, Local1), mI03(d000, Local1, d000), mI04(d000, Local1, d000, Local3), mI05(d000, Local1, d000, Local3, d000), mI06(d000, Local1, d000, Local3, d000, Local5), mI07(d000, Local1, d000, Local3, d000, Local5, d000)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) */ /* // Removed 09/2015. iASL now disallows these stores Store(d000, Arg1) Store(d000, Arg3) Store(d000, Arg5) */ mI01(d000) mI02(d000, Arg1) mI03(d000, Arg1, d000) mI04(d000, Arg1, d000, Arg3) // if (chk0) { mI05(d000, Arg1, d000, Arg3, d000) mI06(d000, Arg1, d000, Arg3, d000, Arg5) mI07(d000, Arg1, d000, Arg3, d000, Arg5, d000) mI01( mI01(d000)) mI02( mI01(d000), mI02(d000, Arg1)) mI03( mI01(d000), mI02(d000, Arg1), mI03(d000, Arg1, d000)) mI04( mI01(d000), mI02(d000, Arg1), mI03(d000, Arg1, d000), mI04(d000, Arg1, d000, Arg3)) if (y262) { mI05( mI01(d000), mI02(d000, Arg1), mI03(d000, Arg1, d000), mI04(d000, Arg1, d000, Arg3), mI05(d000, Arg1, d000, Arg3, d000)) mI06( mI01(d000), mI02(d000, Arg1), mI03(d000, Arg1, d000), mI04(d000, Arg1, d000, Arg3), mI05(d000, Arg1, d000, Arg3, d000), mI06(d000, Arg1, d000, Arg3, d000, Arg5)) mI07( mI01(d000), mI02(d000, Arg1), mI03(d000, Arg1, d000), mI04(d000, Arg1, d000, Arg3), mI05(d000, Arg1, d000, Arg3, d000), mI06(d000, Arg1, d000, Arg3, d000, Arg5), mI07(d000, Arg1, d000, Arg3, d000, Arg5, d000)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) { } // if (SLC0) /* * Event */ Store(8, cmd0) /* * Modification 0: */ mI01(e000) // if (chk0) { mI02(e000, e000) mI03(e000, e000, e000) mI04(e000, e000, e000, e000) mI05(e000, e000, e000, e000, e000) mI06(e000, e000, e000, e000, e000, e000) mI07(e000, e000, e000, e000, e000, e000, e000) mI01( mI01(e000)) mI02( mI01(e000), mI02(e000, e000)) mI03( mI01(e000), mI02(e000, e000), mI03(e000, e000, e000)) mI04( mI01(e000), mI02(e000, e000), mI03(e000, e000, e000), mI04(e000, e000, e000, e000)) if (y262) { mI05( mI01(e000), mI02(e000, e000), mI03(e000, e000, e000), mI04(e000, e000, e000, e000), mI05(e000, e000, e000, e000, e000)) mI06( mI01(e000), mI02(e000, e000), mI03(e000, e000, e000), mI04(e000, e000, e000, e000), mI05(e000, e000, e000, e000, e000), mI06(e000, e000, e000, e000, e000, e000)) mI07( mI01(e000), mI02(e000, e000), mI03(e000, e000, e000), mI04(e000, e000, e000, e000), mI05(e000, e000, e000, e000, e000), mI06(e000, e000, e000, e000, e000, e000), mI07(e000, e000, e000, e000, e000, e000, e000)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) { if (SLC0) { /* * Modification 1: * * Some params are intermediately stored to Locals * * Note: * in the checking above the locals (Local1, Local3, Local5) * were assigned with the object of type Device. MS rejects * those locals to be rewritten after that assigning. * So, here I use Local0,Local2,Local4. */ /* // Removed 09/2015. iASL now disallows these stores Store(e000, Local0) Store(e000, Local2) Store(e000, Local4) */ Store (0, Local0) Store (2, Local2) Store (4, Local4) mI01(e000) mI02(e000, Local0) mI03(e000, Local0, e000) mI04(e000, Local0, e000, Local2) mI05(e000, Local0, e000, Local2, e000) mI06(e000, Local0, e000, Local2, e000, Local4) mI07(e000, Local0, e000, Local2, e000, Local4, e000) mI01( mI01(e000)) mI02( mI01(e000), mI02(e000, Local0)) mI03( mI01(e000), mI02(e000, Local0), mI03(e000, Local0, e000)) mI04( mI01(e000), mI02(e000, Local0), mI03(e000, Local0, e000), mI04(e000, Local0, e000, Local2)) if (y262) { mI05( mI01(e000), mI02(e000, Local0), mI03(e000, Local0, e000), mI04(e000, Local0, e000, Local2), mI05(e000, Local0, e000, Local2, e000)) mI06( mI01(e000), mI02(e000, Local0), mI03(e000, Local0, e000), mI04(e000, Local0, e000, Local2), mI05(e000, Local0, e000, Local2, e000), mI06(e000, Local0, e000, Local2, e000, Local4)) mI07( mI01(e000), mI02(e000, Local0), mI03(e000, Local0, e000), mI04(e000, Local0, e000, Local2), mI05(e000, Local0, e000, Local2, e000), mI06(e000, Local0, e000, Local2, e000, Local4), mI07(e000, Local0, e000, Local2, e000, Local4, e000)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) * * Note: * in the checking above the locals (Local1, Local3, Local5) * were assigned with the object of type Device. MS rejects * those locals to be rewritten after that assigning. * So, here I use Arg0,Arg2,Arg4. */ /* // Removed 09/2015. iASL now disallows these stores Store(e000, Arg0) Store(e000, Arg2) Store(e000, Arg4) */ mI01(e000) mI02(e000, Arg0) mI03(e000, Arg0, e000) mI04(e000, Arg0, e000, Arg2) mI05(e000, Arg0, e000, Arg2, e000) mI06(e000, Arg0, e000, Arg2, e000, Arg4) mI07(e000, Arg0, e000, Arg2, e000, Arg4, e000) mI01( mI01(e000)) mI02( mI01(e000), mI02(e000, Arg0)) mI03( mI01(e000), mI02(e000, Arg0), mI03(e000, Arg0, e000)) mI04( mI01(e000), mI02(e000, Arg0), mI03(e000, Arg0, e000), mI04(e000, Arg0, e000, Arg2)) if (y262) { mI05( mI01(e000), mI02(e000, Arg0), mI03(e000, Arg0, e000), mI04(e000, Arg0, e000, Arg2), mI05(e000, Arg0, e000, Arg2, e000)) mI06( mI01(e000), mI02(e000, Arg0), mI03(e000, Arg0, e000), mI04(e000, Arg0, e000, Arg2), mI05(e000, Arg0, e000, Arg2, e000), mI06(e000, Arg0, e000, Arg2, e000, Arg4)) mI07( mI01(e000), mI02(e000, Arg0), mI03(e000, Arg0, e000), mI04(e000, Arg0, e000, Arg2), mI05(e000, Arg0, e000, Arg2, e000), mI06(e000, Arg0, e000, Arg2, e000, Arg4), mI07(e000, Arg0, e000, Arg2, e000, Arg4, e000)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } } // if (SLC0) /* * Method */ /* * Mutex */ Store(9, cmd0) /* * Modification 0: */ mI01(mx00) // if (chk0) { mI02(mx00, mx00) mI03(mx00, mx00, mx00) mI04(mx00, mx00, mx00, mx00) mI05(mx00, mx00, mx00, mx00, mx00) mI06(mx00, mx00, mx00, mx00, mx00, mx00) mI07(mx00, mx00, mx00, mx00, mx00, mx00, mx00) mI01( mI01(mx00)) mI02( mI01(mx00), mI02(mx00, mx00)) mI03( mI01(mx00), mI02(mx00, mx00), mI03(mx00, mx00, mx00)) mI04( mI01(mx00), mI02(mx00, mx00), mI03(mx00, mx00, mx00), mI04(mx00, mx00, mx00, mx00)) if (y262) { mI05( mI01(mx00), mI02(mx00, mx00), mI03(mx00, mx00, mx00), mI04(mx00, mx00, mx00, mx00), mI05(mx00, mx00, mx00, mx00, mx00)) mI06( mI01(mx00), mI02(mx00, mx00), mI03(mx00, mx00, mx00), mI04(mx00, mx00, mx00, mx00), mI05(mx00, mx00, mx00, mx00, mx00), mI06(mx00, mx00, mx00, mx00, mx00, mx00)) mI07( mI01(mx00), mI02(mx00, mx00), mI03(mx00, mx00, mx00), mI04(mx00, mx00, mx00, mx00), mI05(mx00, mx00, mx00, mx00, mx00), mI06(mx00, mx00, mx00, mx00, mx00, mx00), mI07(mx00, mx00, mx00, mx00, mx00, mx00, mx00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) { if (SLCK) { /* * Modification 1: * * Some params are intermediately stored to Locals * * Note: * in the checkings above the locals (Local0-Local5) * were assigned with the object of type Device/Event. * MS rejects those locals to be rewritten after that assigning. * So, I have no more Locals for checking (SLCK here - because of that). */ /* // Removed 09/2015. iASL now disallows these stores Store(mx00, Local1) Store(mx00, Local3) Store(mx00, Local5) */ mI01(mx00) mI02(mx00, Local1) mI03(mx00, Local1, mx00) mI04(mx00, Local1, mx00, Local3) mI05(mx00, Local1, mx00, Local3, mx00) mI06(mx00, Local1, mx00, Local3, mx00, Local5) mI07(mx00, Local1, mx00, Local3, mx00, Local5, mx00) mI01( mI01(mx00)) mI02( mI01(mx00), mI02(mx00, Local1)) mI03( mI01(mx00), mI02(mx00, Local1), mI03(mx00, Local1, mx00)) mI04( mI01(mx00), mI02(mx00, Local1), mI03(mx00, Local1, mx00), mI04(mx00, Local1, mx00, Local3)) if (y262) { mI05( mI01(mx00), mI02(mx00, Local1), mI03(mx00, Local1, mx00), mI04(mx00, Local1, mx00, Local3), mI05(mx00, Local1, mx00, Local3, mx00)) mI06( mI01(mx00), mI02(mx00, Local1), mI03(mx00, Local1, mx00), mI04(mx00, Local1, mx00, Local3), mI05(mx00, Local1, mx00, Local3, mx00), mI06(mx00, Local1, mx00, Local3, mx00, Local5)) mI07( mI01(mx00), mI02(mx00, Local1), mI03(mx00, Local1, mx00), mI04(mx00, Local1, mx00, Local3), mI05(mx00, Local1, mx00, Local3, mx00), mI06(mx00, Local1, mx00, Local3, mx00, Local5), mI07(mx00, Local1, mx00, Local3, mx00, Local5, mx00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) * * Note: * in the checkings above the locals (Arg0-Arg5) * were assigned with the object of type Device/Event. * MS rejects those locals to be rewritten after that assigning. * So, I have no more Args for checking (SLCK here - because of that). */ /* // Removed 09/2015. iASL now disallows these stores Store(mx00, Arg1) Store(mx00, Arg3) Store(mx00, Arg5) */ mI01(mx00) mI02(mx00, Arg1) mI03(mx00, Arg1, mx00) mI04(mx00, Arg1, mx00, Arg3) mI05(mx00, Arg1, mx00, Arg3, mx00) mI06(mx00, Arg1, mx00, Arg3, mx00, Arg5) mI07(mx00, Arg1, mx00, Arg3, mx00, Arg5, mx00) mI01( mI01(mx00)) mI02( mI01(mx00), mI02(mx00, Arg1)) mI03( mI01(mx00), mI02(mx00, Arg1), mI03(mx00, Arg1, mx00)) mI04( mI01(mx00), mI02(mx00, Arg1), mI03(mx00, Arg1, mx00), mI04(mx00, Arg1, mx00, Arg3)) if (y262) { mI05( mI01(mx00), mI02(mx00, Arg1), mI03(mx00, Arg1, mx00), mI04(mx00, Arg1, mx00, Arg3), mI05(mx00, Arg1, mx00, Arg3, mx00)) mI06( mI01(mx00), mI02(mx00, Arg1), mI03(mx00, Arg1, mx00), mI04(mx00, Arg1, mx00, Arg3), mI05(mx00, Arg1, mx00, Arg3, mx00), mI06(mx00, Arg1, mx00, Arg3, mx00, Arg5)) mI07( mI01(mx00), mI02(mx00, Arg1), mI03(mx00, Arg1, mx00), mI04(mx00, Arg1, mx00, Arg3), mI05(mx00, Arg1, mx00, Arg3, mx00), mI06(mx00, Arg1, mx00, Arg3, mx00, Arg5), mI07(mx00, Arg1, mx00, Arg3, mx00, Arg5, mx00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } } // if (SLCK) /* * Operation Region */ Store(10, cmd0) /* * Modification 0: */ mI01(r000) // if (chk0) { mI02(r000, r000) mI03(r000, r000, r000) mI04(r000, r000, r000, r000) mI05(r000, r000, r000, r000, r000) mI06(r000, r000, r000, r000, r000, r000) mI07(r000, r000, r000, r000, r000, r000, r000) mI01( mI01(r000)) mI02( mI01(r000), mI02(r000, r000)) mI03( mI01(r000), mI02(r000, r000), mI03(r000, r000, r000)) mI04( mI01(r000), mI02(r000, r000), mI03(r000, r000, r000), mI04(r000, r000, r000, r000)) if (y262) { mI05( mI01(r000), mI02(r000, r000), mI03(r000, r000, r000), mI04(r000, r000, r000, r000), mI05(r000, r000, r000, r000, r000)) mI06( mI01(r000), mI02(r000, r000), mI03(r000, r000, r000), mI04(r000, r000, r000, r000), mI05(r000, r000, r000, r000, r000), mI06(r000, r000, r000, r000, r000, r000)) mI07( mI01(r000), mI02(r000, r000), mI03(r000, r000, r000), mI04(r000, r000, r000, r000), mI05(r000, r000, r000, r000, r000), mI06(r000, r000, r000, r000, r000, r000), mI07(r000, r000, r000, r000, r000, r000, r000)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) { if (SLCK) { /* * Modification 1: * * Some params are intermediately stored to Locals * * Note: * in the checkings above the locals (Local0-Local5) * were assigned with the object of type Device/Event. * MS rejects those locals to be rewritten after that assigning. * So, I have no more Locals for checking (SLCK here - because of that). */ /* // Removed 09/2015. iASL now disallows these stores Store(r000, Local1) Store(r000, Local3) Store(r000, Local5) */ mI01(r000) mI02(r000, Local1) mI03(r000, Local1, r000) mI04(r000, Local1, r000, Local3) mI05(r000, Local1, r000, Local3, r000) mI06(r000, Local1, r000, Local3, r000, Local5) mI07(r000, Local1, r000, Local3, r000, Local5, r000) mI01( mI01(r000)) mI02( mI01(r000), mI02(r000, Local1)) mI03( mI01(r000), mI02(r000, Local1), mI03(r000, Local1, r000)) mI04( mI01(r000), mI02(r000, Local1), mI03(r000, Local1, r000), mI04(r000, Local1, r000, Local3)) if (y262) { mI05( mI01(r000), mI02(r000, Local1), mI03(r000, Local1, r000), mI04(r000, Local1, r000, Local3), mI05(r000, Local1, r000, Local3, r000)) mI06( mI01(r000), mI02(r000, Local1), mI03(r000, Local1, r000), mI04(r000, Local1, r000, Local3), mI05(r000, Local1, r000, Local3, r000), mI06(r000, Local1, r000, Local3, r000, Local5)) mI07( mI01(r000), mI02(r000, Local1), mI03(r000, Local1, r000), mI04(r000, Local1, r000, Local3), mI05(r000, Local1, r000, Local3, r000), mI06(r000, Local1, r000, Local3, r000, Local5), mI07(r000, Local1, r000, Local3, r000, Local5, r000)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) * * Note: * in the checkings above the locals (Arg0-Arg5) * were assigned with the object of type Device/Event. * MS rejects those locals to be rewritten after that assigning. * So, I have no more Args for checking (SLCK here - because of that). */ /* // Removed 09/2015. iASL now disallows these stores Store(r000, Arg1) Store(r000, Arg3) Store(r000, Arg5) */ mI01(r000) mI02(r000, Arg1) mI03(r000, Arg1, r000) mI04(r000, Arg1, r000, Arg3) mI05(r000, Arg1, r000, Arg3, r000) mI06(r000, Arg1, r000, Arg3, r000, Arg5) mI07(r000, Arg1, r000, Arg3, r000, Arg5, r000) mI01( mI01(r000)) mI02( mI01(r000), mI02(r000, Arg1)) mI03( mI01(r000), mI02(r000, Arg1), mI03(r000, Arg1, r000)) mI04( mI01(r000), mI02(r000, Arg1), mI03(r000, Arg1, r000), mI04(r000, Arg1, r000, Arg3)) if (y262) { mI05( mI01(r000), mI02(r000, Arg1), mI03(r000, Arg1, r000), mI04(r000, Arg1, r000, Arg3), mI05(r000, Arg1, r000, Arg3, r000)) mI06( mI01(r000), mI02(r000, Arg1), mI03(r000, Arg1, r000), mI04(r000, Arg1, r000, Arg3), mI05(r000, Arg1, r000, Arg3, r000), mI06(r000, Arg1, r000, Arg3, r000, Arg5)) mI07( mI01(r000), mI02(r000, Arg1), mI03(r000, Arg1, r000), mI04(r000, Arg1, r000, Arg3), mI05(r000, Arg1, r000, Arg3, r000), mI06(r000, Arg1, r000, Arg3, r000, Arg5), mI07(r000, Arg1, r000, Arg3, r000, Arg5, r000)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } } // if (SLCK) /* * Power Resource */ Store(11, cmd0) /* * Modification 0: */ mI01(pw00) mI02(pw00, pw00) mI03(pw00, pw00, pw00) mI04(pw00, pw00, pw00, pw00) mI05(pw00, pw00, pw00, pw00, pw00) mI06(pw00, pw00, pw00, pw00, pw00, pw00) mI07(pw00, pw00, pw00, pw00, pw00, pw00, pw00) mI01( mI01(pw00)) mI02( mI01(pw00), mI02(pw00, pw00)) mI03( mI01(pw00), mI02(pw00, pw00), mI03(pw00, pw00, pw00)) // if (chk0) { mI04( mI01(pw00), mI02(pw00, pw00), mI03(pw00, pw00, pw00), mI04(pw00, pw00, pw00, pw00)) if (y262) { mI05( mI01(pw00), mI02(pw00, pw00), mI03(pw00, pw00, pw00), mI04(pw00, pw00, pw00, pw00), mI05(pw00, pw00, pw00, pw00, pw00)) mI06( mI01(pw00), mI02(pw00, pw00), mI03(pw00, pw00, pw00), mI04(pw00, pw00, pw00, pw00), mI05(pw00, pw00, pw00, pw00, pw00), mI06(pw00, pw00, pw00, pw00, pw00, pw00)) mI07( mI01(pw00), mI02(pw00, pw00), mI03(pw00, pw00, pw00), mI04(pw00, pw00, pw00, pw00), mI05(pw00, pw00, pw00, pw00, pw00), mI06(pw00, pw00, pw00, pw00, pw00, pw00), mI07(pw00, pw00, pw00, pw00, pw00, pw00, pw00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } // } // if (chk0) if (SLCK) { /* * Modification 1: * * Some params are intermediately stored to Locals * * Note: no Locals for this checking (see comment above). */ /* // Removed 09/2015. iASL now disallows these stores Store(pw00, Local1) Store(pw00, Local3) Store(pw00, Local5) */ mI01(pw00) mI02(pw00, Local1) mI03(pw00, Local1, pw00) mI04(pw00, Local1, pw00, Local3) mI05(pw00, Local1, pw00, Local3, pw00) mI06(pw00, Local1, pw00, Local3, pw00, Local5) mI07(pw00, Local1, pw00, Local3, pw00, Local5, pw00) mI01( mI01(pw00)) mI02( mI01(pw00), mI02(pw00, Local1)) mI03( mI01(pw00), mI02(pw00, Local1), mI03(pw00, Local1, pw00)) mI04( mI01(pw00), mI02(pw00, Local1), mI03(pw00, Local1, pw00), mI04(pw00, Local1, pw00, Local3)) if (y262) { mI05( mI01(pw00), mI02(pw00, Local1), mI03(pw00, Local1, pw00), mI04(pw00, Local1, pw00, Local3), mI05(pw00, Local1, pw00, Local3, pw00)) mI06( mI01(pw00), mI02(pw00, Local1), mI03(pw00, Local1, pw00), mI04(pw00, Local1, pw00, Local3), mI05(pw00, Local1, pw00, Local3, pw00), mI06(pw00, Local1, pw00, Local3, pw00, Local5)) mI07( mI01(pw00), mI02(pw00, Local1), mI03(pw00, Local1, pw00), mI04(pw00, Local1, pw00, Local3), mI05(pw00, Local1, pw00, Local3, pw00), mI06(pw00, Local1, pw00, Local3, pw00, Local5), mI07(pw00, Local1, pw00, Local3, pw00, Local5, pw00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) * * Note: no Args for this checking (see comment above). */ /* // Removed 09/2015. iASL now disallows these stores Store(pw00, Arg1) Store(pw00, Arg3) Store(pw00, Arg5) */ mI01(pw00) mI02(pw00, Arg1) mI03(pw00, Arg1, pw00) mI04(pw00, Arg1, pw00, Arg3) mI05(pw00, Arg1, pw00, Arg3, pw00) mI06(pw00, Arg1, pw00, Arg3, pw00, Arg5) mI07(pw00, Arg1, pw00, Arg3, pw00, Arg5, pw00) mI01( mI01(pw00)) mI02( mI01(pw00), mI02(pw00, Arg1)) mI03( mI01(pw00), mI02(pw00, Arg1), mI03(pw00, Arg1, pw00)) mI04( mI01(pw00), mI02(pw00, Arg1), mI03(pw00, Arg1, pw00), mI04(pw00, Arg1, pw00, Arg3)) if (y262) { mI05( mI01(pw00), mI02(pw00, Arg1), mI03(pw00, Arg1, pw00), mI04(pw00, Arg1, pw00, Arg3), mI05(pw00, Arg1, pw00, Arg3, pw00)) mI06( mI01(pw00), mI02(pw00, Arg1), mI03(pw00, Arg1, pw00), mI04(pw00, Arg1, pw00, Arg3), mI05(pw00, Arg1, pw00, Arg3, pw00), mI06(pw00, Arg1, pw00, Arg3, pw00, Arg5)) mI07( mI01(pw00), mI02(pw00, Arg1), mI03(pw00, Arg1, pw00), mI04(pw00, Arg1, pw00, Arg3), mI05(pw00, Arg1, pw00, Arg3, pw00), mI06(pw00, Arg1, pw00, Arg3, pw00, Arg5), mI07(pw00, Arg1, pw00, Arg3, pw00, Arg5, pw00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } } // if (SLCK) /* * Processor */ Store(12, cmd0) /* * Modification 0: */ mI01(pr00) mI02(pr00, pr00) mI03(pr00, pr00, pr00) mI04(pr00, pr00, pr00, pr00) mI05(pr00, pr00, pr00, pr00, pr00) mI06(pr00, pr00, pr00, pr00, pr00, pr00) mI07(pr00, pr00, pr00, pr00, pr00, pr00, pr00) mI01( mI01(pr00)) mI02( mI01(pr00), mI02(pr00, pr00)) mI03( mI01(pr00), mI02(pr00, pr00), mI03(pr00, pr00, pr00)) mI04( mI01(pr00), mI02(pr00, pr00), mI03(pr00, pr00, pr00), mI04(pr00, pr00, pr00, pr00)) if (y262) { mI05( mI01(pr00), mI02(pr00, pr00), mI03(pr00, pr00, pr00), mI04(pr00, pr00, pr00, pr00), mI05(pr00, pr00, pr00, pr00, pr00)) mI06( mI01(pr00), mI02(pr00, pr00), mI03(pr00, pr00, pr00), mI04(pr00, pr00, pr00, pr00), mI05(pr00, pr00, pr00, pr00, pr00), mI06(pr00, pr00, pr00, pr00, pr00, pr00)) mI07( mI01(pr00), mI02(pr00, pr00), mI03(pr00, pr00, pr00), mI04(pr00, pr00, pr00, pr00), mI05(pr00, pr00, pr00, pr00, pr00), mI06(pr00, pr00, pr00, pr00, pr00, pr00), mI07(pr00, pr00, pr00, pr00, pr00, pr00, pr00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } if (SLCK) { /* * Modification 1: * * Some params are intermediately stored to Locals * * Note: no Locals for this checking (see comment above). */ /* // Removed 09/2015. iASL now disallows these stores Store(pr00, Local1) Store(pr00, Local3) Store(pr00, Local5) */ mI01(pr00) mI02(pr00, Local1) mI03(pr00, Local1, pr00) mI04(pr00, Local1, pr00, Local3) mI05(pr00, Local1, pr00, Local3, pr00) mI06(pr00, Local1, pr00, Local3, pr00, Local5) mI07(pr00, Local1, pr00, Local3, pr00, Local5, pr00) mI01( mI01(pr00)) mI02( mI01(pr00), mI02(pr00, Local1)) mI03( mI01(pr00), mI02(pr00, Local1), mI03(pr00, Local1, pr00)) mI04( mI01(pr00), mI02(pr00, Local1), mI03(pr00, Local1, pr00), mI04(pr00, Local1, pr00, Local3)) if (y262) { mI05( mI01(pr00), mI02(pr00, Local1), mI03(pr00, Local1, pr00), mI04(pr00, Local1, pr00, Local3), mI05(pr00, Local1, pr00, Local3, pr00)) mI06( mI01(pr00), mI02(pr00, Local1), mI03(pr00, Local1, pr00), mI04(pr00, Local1, pr00, Local3), mI05(pr00, Local1, pr00, Local3, pr00), mI06(pr00, Local1, pr00, Local3, pr00, Local5)) mI07( mI01(pr00), mI02(pr00, Local1), mI03(pr00, Local1, pr00), mI04(pr00, Local1, pr00, Local3), mI05(pr00, Local1, pr00, Local3, pr00), mI06(pr00, Local1, pr00, Local3, pr00, Local5), mI07(pr00, Local1, pr00, Local3, pr00, Local5, pr00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) * * Note: no Args for this checking (see comment above). */ /* // Removed 09/2015. iASL now disallows these stores Store(pr00, Arg1) Store(pr00, Arg3) Store(pr00, Arg5) */ mI01(pr00) mI02(pr00, Arg1) mI03(pr00, Arg1, pr00) mI04(pr00, Arg1, pr00, Arg3) mI05(pr00, Arg1, pr00, Arg3, pr00) mI06(pr00, Arg1, pr00, Arg3, pr00, Arg5) mI07(pr00, Arg1, pr00, Arg3, pr00, Arg5, pr00) mI01( mI01(pr00)) mI02( mI01(pr00), mI02(pr00, Arg1)) mI03( mI01(pr00), mI02(pr00, Arg1), mI03(pr00, Arg1, pr00)) mI04( mI01(pr00), mI02(pr00, Arg1), mI03(pr00, Arg1, pr00), mI04(pr00, Arg1, pr00, Arg3)) if (y262) { mI05( mI01(pr00), mI02(pr00, Arg1), mI03(pr00, Arg1, pr00), mI04(pr00, Arg1, pr00, Arg3), mI05(pr00, Arg1, pr00, Arg3, pr00)) mI06( mI01(pr00), mI02(pr00, Arg1), mI03(pr00, Arg1, pr00), mI04(pr00, Arg1, pr00, Arg3), mI05(pr00, Arg1, pr00, Arg3, pr00), mI06(pr00, Arg1, pr00, Arg3, pr00, Arg5)) mI07( mI01(pr00), mI02(pr00, Arg1), mI03(pr00, Arg1, pr00), mI04(pr00, Arg1, pr00, Arg3), mI05(pr00, Arg1, pr00, Arg3, pr00), mI06(pr00, Arg1, pr00, Arg3, pr00, Arg5), mI07(pr00, Arg1, pr00, Arg3, pr00, Arg5, pr00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } } // if (SLCK) /* * Thermal Zone */ Store(13, cmd0) /* * Modification 0: */ mI01(tz00) mI02(tz00, tz00) mI03(tz00, tz00, tz00) mI04(tz00, tz00, tz00, tz00) mI05(tz00, tz00, tz00, tz00, tz00) mI06(tz00, tz00, tz00, tz00, tz00, tz00) mI07(tz00, tz00, tz00, tz00, tz00, tz00, tz00) mI01( mI01(tz00)) mI02( mI01(tz00), mI02(tz00, tz00)) mI03( mI01(tz00), mI02(tz00, tz00), mI03(tz00, tz00, tz00)) mI04( mI01(tz00), mI02(tz00, tz00), mI03(tz00, tz00, tz00), mI04(tz00, tz00, tz00, tz00)) if (y262) { mI05( mI01(tz00), mI02(tz00, tz00), mI03(tz00, tz00, tz00), mI04(tz00, tz00, tz00, tz00), mI05(tz00, tz00, tz00, tz00, tz00)) mI06( mI01(tz00), mI02(tz00, tz00), mI03(tz00, tz00, tz00), mI04(tz00, tz00, tz00, tz00), mI05(tz00, tz00, tz00, tz00, tz00), mI06(tz00, tz00, tz00, tz00, tz00, tz00)) mI07( mI01(tz00), mI02(tz00, tz00), mI03(tz00, tz00, tz00), mI04(tz00, tz00, tz00, tz00), mI05(tz00, tz00, tz00, tz00, tz00), mI06(tz00, tz00, tz00, tz00, tz00, tz00), mI07(tz00, tz00, tz00, tz00, tz00, tz00, tz00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } if (SLCK) { /* * Modification 1: * * Some params are intermediately stored to Locals * * Note: no Locals for this checking (see comment above). */ /* // Removed 09/2015. iASL now disallows these stores Store(tz00, Local1) Store(tz00, Local3) Store(tz00, Local5) */ mI01(tz00) mI02(tz00, Local1) mI03(tz00, Local1, tz00) mI04(tz00, Local1, tz00, Local3) mI05(tz00, Local1, tz00, Local3, tz00) mI06(tz00, Local1, tz00, Local3, tz00, Local5) mI07(tz00, Local1, tz00, Local3, tz00, Local5, tz00) mI01( mI01(tz00)) mI02( mI01(tz00), mI02(tz00, Local1)) mI03( mI01(tz00), mI02(tz00, Local1), mI03(tz00, Local1, tz00)) mI04( mI01(tz00), mI02(tz00, Local1), mI03(tz00, Local1, tz00), mI04(tz00, Local1, tz00, Local3)) if (y262) { mI05( mI01(tz00), mI02(tz00, Local1), mI03(tz00, Local1, tz00), mI04(tz00, Local1, tz00, Local3), mI05(tz00, Local1, tz00, Local3, tz00)) mI06( mI01(tz00), mI02(tz00, Local1), mI03(tz00, Local1, tz00), mI04(tz00, Local1, tz00, Local3), mI05(tz00, Local1, tz00, Local3, tz00), mI06(tz00, Local1, tz00, Local3, tz00, Local5)) mI07( mI01(tz00), mI02(tz00, Local1), mI03(tz00, Local1, tz00), mI04(tz00, Local1, tz00, Local3), mI05(tz00, Local1, tz00, Local3, tz00), mI06(tz00, Local1, tz00, Local3, tz00, Local5), mI07(tz00, Local1, tz00, Local3, tz00, Local5, tz00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } /* * Modification 2: * * Some params are intermediately stored to Args (effectively local) * * Note: no Args for this checking (see comment above). */ /* // Removed 09/2015. iASL now disallows these stores Store(tz00, Arg1) Store(tz00, Arg3) Store(tz00, Arg5) */ mI01(tz00) mI02(tz00, Arg1) mI03(tz00, Arg1, tz00) mI04(tz00, Arg1, tz00, Arg3) mI05(tz00, Arg1, tz00, Arg3, tz00) mI06(tz00, Arg1, tz00, Arg3, tz00, Arg5) mI07(tz00, Arg1, tz00, Arg3, tz00, Arg5, tz00) mI01( mI01(tz00)) mI02( mI01(tz00), mI02(tz00, Arg1)) mI03( mI01(tz00), mI02(tz00, Arg1), mI03(tz00, Arg1, tz00)) mI04( mI01(tz00), mI02(tz00, Arg1), mI03(tz00, Arg1, tz00), mI04(tz00, Arg1, tz00, Arg3)) if (y262) { mI05( mI01(tz00), mI02(tz00, Arg1), mI03(tz00, Arg1, tz00), mI04(tz00, Arg1, tz00, Arg3), mI05(tz00, Arg1, tz00, Arg3, tz00)) mI06( mI01(tz00), mI02(tz00, Arg1), mI03(tz00, Arg1, tz00), mI04(tz00, Arg1, tz00, Arg3), mI05(tz00, Arg1, tz00, Arg3, tz00), mI06(tz00, Arg1, tz00, Arg3, tz00, Arg5)) mI07( mI01(tz00), mI02(tz00, Arg1), mI03(tz00, Arg1, tz00), mI04(tz00, Arg1, tz00, Arg3), mI05(tz00, Arg1, tz00, Arg3, tz00), mI06(tz00, Arg1, tz00, Arg3, tz00, Arg5), mI07(tz00, Arg1, tz00, Arg3, tz00, Arg5, tz00)) } else { OUTP("WARNING: some tests of ns_in40.asl are blocked!") } } // if (SLCK) } Method(ini4) { SRMT("in40") in40(0,0,0,0,0,0,0) SRMT("in41") in41(0,0,0,0,0,0,0) CH03("ini4", z167, 0x000, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/initial/ns_in30.asl0000700000175000017500000004453514773714157031256 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Source file ns_0010.asl * * The tests differ those from ns_0010.asl by that the objects are * passed to methods as argument (Arg) but not directly by name. */ Name(z166, 166) /* * * Read/write access to elements of Package passed to method. * */ /* * * Elements of Package are constant Integer (0xabcd0000) * */ /* * Package is passed by ArgX to method: * - directly */ Method(in30,, Serialized) { Name(ts, "in30") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m000, 2) { Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(0x11112222, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is passed by ArgX to method: * - by ORef */ Method(in31,, Serialized) { Name(ts, "in31") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m000, 2) { Method(m001, 2) { Store(DerefOf(arg1), Local7) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x33334444) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is passed by ArgX to method: * - directly * - by ORef */ Method(in32,, Serialized) { Name(ts, "in32") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m000, 2) { Method(m001, 2) { Store(0x11112222, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(arg1), Local7) Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x33334444) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } } /* * Package is given directly by name: * - do ORef and pass to LocalX * - do DerefOf and pass to LocalX */ Method(in33,, Serialized) { Name(ts, "in33") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002}) Method(m000, 2) { Method(m001, 2) { Store(RefOf(arg0), Local6) Store(DerefOf(Local6), Local7) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(0x33334444, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x33334444)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x33334444) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0002) } } /* * * Elements of Package are Named Integer (i000) * */ /* * Package is passed by ArgX to method * * fail * * Note: * Named element of Package is simply not implemented by MS, * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}. */ Method(in34,, Serialized) { Name(ts, "in34") Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) Name(i002, 0xabcd0002) Name(ii00, 0x11112222) Name(p000, Package() {i000, i001, i002, "i000"}) Method(m000, 2) { Method(m001, 2) { Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0xabcd0000)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000) } Store(DerefOf(Index(arg0, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(arg0, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(arg0, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z166, __LINE__, 0, 0, Local0, "i000") } Store(ii00, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } } m001(arg0, arg1) } m000(p000, RefOf(p000)) Store(DerefOf(Index(p000, 0)), Local0) if (LNotEqual(Local0, 0x11112222)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222) } Store(DerefOf(Index(p000, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001) } Store(DerefOf(Index(p000, 2)), Local0) if (LNotEqual(Local0, 0xabcd0002)) { err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0002) } Store(DerefOf(Index(p000, 3)), Local0) if (LNotEqual(Local0, "i000")) { err(ts, z166, __LINE__, 0, 0, Local0, "i000") } } /* * Buffer */ Method(in36,, Serialized) { Name(ts, "in36") Name(b000, Buffer() {0x10, 0x11, 0x12}) Method(m000, 2) { Method(m001, 2) { // arg0 - b000 Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x10)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x10) } Store(0x67, Index(arg0, 0)) Store(DerefOf(Index(arg0, 0)), Local0) if (LNotEqual(Local0, 0x67)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x67) } // arg1 - RefOf(b000) Store(DerefOf(arg1), Local7) Store(0x55, Index(Local7, 1)) Store(DerefOf(Index(Local7, 1)), Local0) if (LNotEqual(Local0, 0x55)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x55) } } m001(arg0, arg1) } m000(b000, RefOf(b000)) Store(DerefOf(Index(b000, 0)), Local0) if (LNotEqual(Local0, 0x67)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x67) } Store(DerefOf(Index(b000, 1)), Local0) if (LNotEqual(Local0, 0x11)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x11) } Store(DerefOf(Index(b000, 2)), Local0) if (LNotEqual(Local0, 0x12)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x12) } } /* * Element of Package instead of i000 (in in02) * * Recursive call to m001 */ Method(in37,, Serialized) { Name(ts, "in37") Name(i001, 0) Name(pp00, Package() {0x11111111, 0x00100000, 0x22223333}) Method(m000, 1) { Method(m001, 1) { /* * Because of the stack overflow issues on MS the number * of repetitions was changed from 100 to 9 here. */ if (LLess(i001, 9)) { Store(DerefOf(Index(arg0, 1)), Local0) Increment(Local0) Store(Local0, Index(arg0, 1)) Increment(i001) Add(DerefOf(Index(arg0, 1)), m001(arg0), Local0) Return (Local0) } Return (0) } Store(Add(DerefOf(Index(arg0, 1)), m001(arg0)), Local0) Return (Local0) } Store(m000(pp00), Local0) if (LNotEqual(Local0, 0x00a0002d)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x00a0002d) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x00100009)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x00100009) } CH03(ts, z166, 0x00c, __LINE__, 0) } /* * Buffer Field instead of i000 (in in01) * * fail * * Note: Buffer Field in expressions is not supported by MS, * see msfail.asl */ /* * Field instead of i000 (in in01) */ Method(in38, 1, Serialized) { Name(ts, "in38") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } CH03(ts, z166, 0x011, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { /* * To exclude stack overflow * >>>>>>>>>>>>>>>> Method(m008, 1) { if (i001) { Store(0x11223344, arg0) } Return (0) } Store(0x80000000, arg0) Return (Add(arg0, m008(arg0))) * <<<<<<<<<<<<<<<< */ Return (0) } Store(0x07000000, arg0) Return (Add(arg0, m007(arg0))) } Store(0x00600000, arg0) Return (Add(arg0, m006(arg0))) } Store(0x00050000, arg0) Return (Add(arg0, m005(arg0))) } Store(0x00004000, arg0) Return (Add(arg0, m004(arg0))) } Store(0x00000300, arg0) Return (Add(arg0, m003(arg0))) } Store(0x00000020, arg0) Return (Add(arg0, m002(arg0))) } Store(0x00000001, arg0) Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0xabcd9876, f001) Store(m000(f001), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x07654321) } if (arg0) { Store(0x11223344, Local1) } else { Store(0xabcd9876, Local1) } if (LNotEqual(f001, Local1)) { err(ts, z166, __LINE__, 0, 0, f001, Local1) } CH03(ts, z166, 0x014, __LINE__, 0) } /* * Bank Field instead of i000 (in in01) * * (is this test correct?) */ Method(in39, 1, Serialized) { Name(ts, "in39") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } BankField(r000, f001, 0, ByteAcc, NoLock, Preserve) { bnk0, 32 } CH03(ts, z166, 0x015, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { /* * To exclude stack overflow * >>>>>>>>>>>>>>>> Method(m008, 1) { if (i001) { Store(0x11223344, arg0) } Return (0) } Store(0x80000000, arg0) Return (Add(arg0, m008(arg0))) * <<<<<<<<<<<<<<<< */ Return (0) } Store(0x07000000, arg0) Return (Add(arg0, m007(arg0))) } Store(0x00600000, arg0) Return (Add(arg0, m006(arg0))) } Store(0x00050000, arg0) Return (Add(arg0, m005(arg0))) } Store(0x00004000, arg0) Return (Add(arg0, m004(arg0))) } Store(0x00000300, arg0) Return (Add(arg0, m003(arg0))) } Store(0x00000020, arg0) Return (Add(arg0, m002(arg0))) } Store(0x00000001, arg0) Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0xaabbccdd, bnk0) Store(m000(bnk0), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x07654321) } if (arg0) { Store(0x11223344, Local1) } else { Store(0xaabbccdd, Local1) } if (LNotEqual(bnk0, Local1)) { err(ts, z166, __LINE__, 0, 0, bnk0, Local1) } CH03(ts, z166, 0x018, __LINE__, 0) } /* * Index Field instead of i000 (in in01) * * (is this test correct?) */ Method(in3a, 1, Serialized) { Name(ts, "in3a") Name(i001, 0) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } IndexField(f000, f001, ByteAcc, NoLock, Preserve) { if00, 32 } CH03(ts, z166, 0x019, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { /* * To exclude stack overflow * >>>>>>>>>>>>>>>> Method(m008, 1) { if (i001) { Store(0x11223344, if00) } Return (0) } Store(0x80000000, if00) Return (Add(if00, m008(if00))) * <<<<<<<<<<<<<<<< */ Return (0) } Store(0x07000000, if00) Return (Add(if00, m007(if00))) } Store(0x00600000, if00) Return (Add(if00, m006(if00))) } Store(0x00050000, if00) Return (Add(if00, m005(if00))) } Store(0x00004000, if00) Return (Add(if00, m004(if00))) } Store(0x00000300, if00) Return (Add(if00, m003(if00))) } Store(0x00000020, if00) Return (Add(if00, m002(if00))) } Store(0x00000001, if00) Store(Add(if00, m001(if00)), Local0) Return (Local0) } Store(0xabababab, if00) Store(m000(if00), Local0) /* * The benchmark values for arg0==0 below * are how MS actually works. */ if (LNotEqual(Local0, 0x07070707)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x07070707) } if (arg0) { Store(0x11223344, Local1) } else { Store(0x07070707, Local1) } if (LNotEqual(if00, Local1)) { err(ts, z166, __LINE__, 0, 0, if00, Local1) } CH03(ts, z166, 0x01c, __LINE__, 0) } /* * Element of Buffer instead of i000 (in in01) * * see in3c below * * Method(in3b, 1) * { * } */ /* * Element of Buffer instead of i000 (in in01) * * m01b+: * added argument to methods and b000 passed without any use of that * parameter inside the methods */ Method(in3c, 1, Serialized) { Name(ts, "in3c") Name(i001, 0) Name(b000, Buffer() {0x11, 0x01, 0x22}) CH03(ts, z166, 0x01d, __LINE__, 0) Store(arg0, i001) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Return (0) } Store(0x07, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m007(arg0))) } Store(0x06, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m006(arg0))) } Store(0x05, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m005(arg0))) } Store(0x04, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m004(arg0))) } Store(0x03, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m003(arg0))) } Store(0x02, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m002(arg0))) } Store(Add(DerefOf(Index(arg0, 1)), m001(arg0)), Local0) Return (Local0) } Store(m000(b000), Local0) if (LNotEqual(Local0, 0x1c)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x1c) } Store(DerefOf(Index(b000, 1)), Local0) if (arg0) { Store(0xff, Local1) } else { Store(0x07, Local1) } if (LNotEqual(Local0, Local1)) { err(ts, z166, __LINE__, 0, 0, Local0, Local1) } CH03(ts, z166, 0x020, __LINE__, 0) } /* * Element of Package instead of i000 (in in01) * * see in3e below * * Method(in3d) * { * } */ /* * Element of Package instead of i000 (in in01) * * m01d+: * added argument to methods and b000 passed without any use of that * parameter inside the methods */ Method(in3e,, Serialized) { Name(ts, "in3e") Name(i001, 0) Name(p000, Package() {1,2,3,4}) Name(pp00, Package() {0x11111111, 0x00000001, 0x22223333}) CH03(ts, z166, 0x006, __LINE__, 0) Method(m000, 1) { Method(m001, 1) { Method(m002, 1) { Method(m003, 1) { Method(m004, 1) { Method(m005, 1) { Method(m006, 1) { Method(m007, 1) { Return (0) } Store(0x07000000, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m007(arg0))) } Store(0x00600000, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m006(arg0))) } Store(0x00050000, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m005(arg0))) } Store(0x00004000, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m004(arg0))) } Store(0x00000300, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m003(arg0))) } Store(0x00000020, Index(arg0, 1)) Return (Add(DerefOf(Index(arg0, 1)), m002(arg0))) } Store(Add(DerefOf(Index(arg0, 1)), m001(arg0)), Local0) Return (Local0) } Store(m000(pp00), Local0) if (LNotEqual(Local0, 0x07654321)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x07654321) } Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0x07000000)) { err(ts, z166, __LINE__, 0, 0, Local0, 0x07000000) } CH03(ts, z166, 0x009, __LINE__, 0) } Method(ini3) { SRMT("in30") in30() SRMT("in31") in31() SRMT("in32") in32() SRMT("in33") in33() SRMT("in34") if (chk0) { in34() } else { BLCK() } SRMT("in36") in36() SRMT("in37") in37() SRMT("in38-0") in38(0) SRMT("in39-0") in39(0) SRMT("in3a-0") in3a(0) SRMT("in3c-0") in3c(0) SRMT("in3e") in3e() CH03("ini3", z166, 0x000, __LINE__, 0) } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/MsFail/0000700000175000017500000000000014773714157027010 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/MsFail/msfail.asl0000700000175000017500000007616214773714157031003 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Accumulate features which don't work on MS * * This should help to adapt tests to MS * * Stuff not working under MS: * * 1) Mod * 2) Concatenate * 3) CopyObject * 4) POUT - is restricted by abbu, apparently, by byte-size(!), * not by the number of elements (!), and ABBU reports Failure in * that case not distinguishable from failures of MS being examined. * 5) Return (Add(i000, m001())) -- !! but this works: Return (Add(Local7, m006())) * 6) Arg instead of i000 (in m001): * Store(0x07000000, arg1) * Return (Add(arg1, m007())) * 7) LNotEqual(bf00, 0x80) : bf00 - Buffer Field * * 8) (?) Buffer Field by arg -- doesn't work (?) (see xxx) * 9) Field passed by arg -- doesn't work (see m30c) * 10) Bank Field passed by arg -- doesn't work (see m30d): * 11) Index Field passed by arg -- doesn't work (see m30e): * * 12) write access to element of String by Index/DerefOf * 13) Stack overflow on about 10-12 method calls depth, * call methods chain is restricted by ~11 * 14) Named element of Package is, perhaps, not implemented by MS, * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}, * (see ns1.asl for example). * 15) Stack (resource) overflow depends very much on other * reasons, not only the depth of method calls. * So, trying to wrap methods of ns0.asl into one parent method * decreases the available number of levels by more than 4 levels. * 16) Internal objects of methods on MS consume some internal * resources of ACPI MS interpreter. Pulling some internal objects * of that method helps to prevent breakage of MS interpreter. */ Name(z161, 161) /* * Named Integer i000 */ /* * CopyObject * * fail */ Method(mf00,, Serialized) { Name(ts, "mf00") Name(i000, 0xabcd0000) Name(i001, 0xabcd0001) /* Breaks on this command itself */ CopyObject(i000, i001) if (chk0) { if (LNotEqual(i001, 0xabcd0000)) { err(ts, z161, __LINE__, 0, 0, i001, 0xabcd0000) } } Return(POUT) } /* * Concatenate * * success/fail */ Method(mf01,, Serialized) { Name(ts, "mf01") Name(s000, "qwertyuiop") Name(s001, "_sdfghjkl") /* Doesn't break on this command itself */ Concatenate(s000, s001, Local0) OUTP(Local0) if (chk0) { /* This LNotEqual breaks */ if (LNotEqual(Local0, "qwertyuiop_sdfghjkl")) { err(ts, z161, __LINE__, 0, 0, Local0, "qwertyuiop_sdfghjkl") } } Return(POUT) } /* * LEqual of Strings * * fail */ Method(mf02,, Serialized) { Name(ts, "mf02") Name(s000, "qwertyuiop") Name(s001, "_sdfghjkl") Store(LEqual("qwerty", "sdfghj"), Local3) if (chk0) { /* This LNotEqual breaks */ if (LEqual("qwerty", "sdfghj")) { err(ts, z161, __LINE__, 0, 0, "qwerty", "sdfghj") } } Return(POUT) } /* * Return (Add(i000, m001())) * * success */ Method(mf03,, Serialized) { Name(ts, "mf03") Name(i000, 0x12340001) Method(m000) { Method(m001) { Method(m002) { Return (1) } Return (Add(i000, m002())) } Return (Add(i000, m001())) } m000() if (chk1) { Store(m000(), Local0) if (LNotEqual(Local0, 0x24680003)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x24680003) } } Return(POUT) } /* * Store to uninitialized ArgX (no value passed by that ArgX) * * Store(0x00001000, arg6) * Return (Add(arg6, m007())) * * fail */ Method(mf04,, Serialized) { Name(ts, "mf04") Name(i000, 0xabcd0000) Method(m000) { Store(0x00001001, arg6) Return (Add(arg6, 5)) } Method(m001) { // With this line commented works: // Store(0x00001001, arg6) Store(0x00001001, arg6) // Doesn't work: // Return (Add(arg6, 5)) // Return (0) } m001() if (chk0) { Store(m000(), Local0) if (LNotEqual(Local0, 0x1006)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x1006) } CH03(ts, z161, 0x00b, __LINE__, 0) } Return(POUT) } /* * Store to initialized ArgX (ArgX is passed with Constant Integer) * * Store(0x00001000, arg0) * Return (Add(arg0, m007(0xabcd0000))) * * succeeded */ Method(mf05,, Serialized) { Name(ts, "mf05") Method(m000, 1) { Store(0x00001001, arg0) Return (Add(arg0, 5)) } m000(0xabcd0000) if (chk1) { Store(m000(0xabcd0000), Local0) if (LNotEqual(Local0, 0x1006)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x1006) } } Return(POUT) } /* * Store to initialized ArgX (ArgX is passed with Named Integer) * * Store(0x00001000, arg0) * Return (Add(arg0, m007(i000))) * * succeeded */ Method(mf06,, Serialized) { Name(ts, "mf06") Name(i000, 0xabcd0000) Method(m000, 1) { Store(0x00001001, arg0) Return (Add(arg0, 5)) } Store(m000(i000), Local0) if (chk1) { if (LNotEqual(Local0, 0x1006)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x1006) } if (LNotEqual(i000, 0xabcd0000)) { err(ts, z161, __LINE__, 0, 0, i000, 0xabcd0000) } } Return(POUT) } /* * Store to initialized ArgX (ArgX is passed with Integer by LocalX) * * Store(0x00001000, arg0) * Return (Add(arg0, m007(i000))) * * succeeded */ Method(mf07,, Serialized) { Name(ts, "mf07") Method(m000, 1) { Store(0x00001001, arg0) Return (Add(arg0, 5)) } Store(0xabcd0000, Local7) Store(m000(Local7), Local0) if (chk1) { if (LNotEqual(Local0, 0x1006)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x1006) } if (LNotEqual(Local7, 0xabcd0000)) { err(ts, z161, __LINE__, 0, 0, Local7, 0xabcd0000) } } Return(POUT) } /* * LNotEqual(bf00, 0x80) * bf00 -- Buffer Field * * fail */ Method(mf08,, Serialized) { Name(ts, "mf08") Name(pr, 1) Name(i001, 0) Name(b000, Buffer(9) {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18}) CreateField(b000, 0, 8, bf00) // Doesn't work Store(LNotEqual(bf00, 0x80), Local3) if (chk0) { // Works Store(bf00, Local0) // Doesn't work (!) too: Store(LNotEqual(Local0, 0x80), Local3) // Doesn't work (!) too: Store(Local0, Local1) Store(LNotEqual(Local1, 0x80), Local3) // Works if (pr) { OUTP(Local0) OUTP(bf00) } // Works Store(0x80, bf00) // Works if (pr) { // There is ok: OUTP(bf00) } Store(0x80, bf00) if (LNotEqual(bf00, Buffer(){0x80})) { err(ts, z161, __LINE__, 0, 0, bf00, Buffer(){0x80}) } } /* if(chk0) */ Return(POUT) } /* * Write access to element of String by Index operator * * fail */ Method(mf09,, Serialized) { Name(ts, "mf09") Name(s000, "qqqqqqqqqqqqqq") Store(0x38, Index(s000, 0)) if (chk0) { Store(DerefOf(Index(s000, 0)), Local0) if (LNotEqual(Local0, 0x38)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x38) } } Return(POUT) } /* * Field passed by agrX doesn't work * * success */ Method(mf0a,, Serialized) { Name(ts, "mf0a") OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000, 32 } Method(m000, 1) { Method(m001, 1) { Store(0x00000020, arg0) Return (Add(arg0, 5)) } Add(arg0, 1, Local0) Store(Local0, arg0) Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Method(m001, 1) { Method(m001, 1) { Return (Add(arg0, 5)) } Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0x12345678, f000) Store(m000(f000), Local0) if (chk1) { if (LNotEqual(Local0, 0x1234569e)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x1234569e) } if (LNotEqual(f000, 0x12345678)) { err(ts, z161, __LINE__, 0, 0, f000, 0x12345678) } } Store(0x12345675, f000) Store(m001(f000), Local0) if (chk1) { if (LNotEqual(Local0, 0x2468acef)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x2468acef) } if (LNotEqual(f000, 0x12345675)) { err(ts, z161, __LINE__, 0, 0, f000, 0x12345675) } } Return(POUT) } /* * Bank Field passed by agrX doesn't work * * succeeded */ Method(mf0b,, Serialized) { Name(ts, "mf0b") OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } BankField(r000, f001, 0, ByteAcc, NoLock, Preserve) { bnk0, 32 } Method(m000, 1) { Method(m001, 1) { Store(0x00000020, arg0) Return (Add(arg0, 5)) } Add(arg0, 1, Local0) Store(Local0, arg0) Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Method(m001, 1) { Method(m001, 1) { Return (Add(arg0, 5)) } Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0x12345678, bnk0) Store(m000(bnk0), Local0) if (chk1) { if (LNotEqual(Local0, 0x1234569e)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x1234569e) } if (LNotEqual(bnk0, 0x12345678)) { err(ts, z161, __LINE__, 0, 0, bnk0, 0x12345678) } } Store(0x12345675, bnk0) Store(m001(bnk0), Local0) if (chk1) { if (LNotEqual(Local0, 0x2468acef)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x2468acef) } if (LNotEqual(bnk0, 0x12345675)) { err(ts, z161, __LINE__, 0, 0, bnk0, 0x12345675) } } Return(POUT) } /* * Index Field passed by agrX doesn't work * * succeeded */ Method(mf0c,, Serialized) { Name(ts, "mf0c") OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 } IndexField(f000, f001, ByteAcc, NoLock, Preserve) { if00, 32 } Method(m000, 1) { Method(m001, 1) { Store(0x00000020, arg0) Return (Add(arg0, 5)) } Add(arg0, 1, Local0) Store(Local0, arg0) Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Method(m001, 1) { Method(m001, 1) { Return (Add(arg0, 5)) } Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0x12345678, if00) Store(m000(if00), Local0) if (chk1) { if (LNotEqual(Local0, 0x12121238)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x12121238) } if (LNotEqual(if00, 0x12121212)) { err(ts, z161, __LINE__, 0, 0, if00, 0x12121212) } } Store(0x12345675, if00) Store(m001(if00), Local0) if (chk1) { if (LNotEqual(Local0, 0x24242429)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x24242429) } if (LNotEqual(if00, 0x12121212)) { err(ts, z161, __LINE__, 0, 0, if00, 0x12121212) } } Return(POUT) } /* * Buffer Field passed by agrX * * fail */ Method(mf0d,, Serialized) { Name(ts, "mf0d") Name(b000, Buffer(16) {}) CreateField(b000, 5, 32, bf00) Method(m000, 1) { Method(m001, 1) { Store(0x00000020, arg0) Return (Add(arg0, 5)) } Add(arg0, 1, Local0) Store(Local0, arg0) Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0x12345678, bf00) Store(m000(bf00), Local0) if (chk0) { if (LNotEqual(Local0, 0x1234569e)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x1234569e) } if (LNotEqual(bf00, Buffer(){0x78, 0x56, 0x34, 0x12})) { err(ts, z161, __LINE__, 0, 0, bf00, Buffer(){0x78, 0x56, 0x34, 0x12}) } } Return(POUT) } /* * Buffer Field passed by agrX * * fail */ Method(mf0e,, Serialized) { Name(ts, "mf0e") Name(b000, Buffer(16) {}) CreateField(b000, 5, 32, bf00) Method(m001, 1) { Method(m001, 1) { Return (Add(arg0, 5)) } Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0x12345675, bf00) Store(m001(bf00), Local0) if (chk0) { if (LNotEqual(Local0, 0x2468acef)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x2468acef) } if (LNotEqual(bf00, Buffer(){0x75, 0x56, 0x34, 0x12})) { err(ts, z161, __LINE__, 0, 0, bf00, Buffer(){0x75, 0x56, 0x34, 0x12}) } } Return(POUT) } /* * Buffer Field passed by agrX * * fail */ Method(mf0f,, Serialized) { Name(ts, "mf0f") Name(b000, Buffer(16) {}) CreateField(b000, 5, 32, bf00) Method(m000, 1) { Method(m001, 1) { Store(0x00000020, arg0) Return (Add(arg0, 5)) } Add(arg0, 1, Local0) Store(Local0, arg0) Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Method(m001, 1) { Method(m001, 1) { Return (Add(arg0, 5)) } Store(Add(arg0, m001(arg0)), Local0) Return (Local0) } Store(0x12345678, bf00) Store(m000(bf00), Local0) if (chk0) { if (LNotEqual(Local0, 0x1234569e)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x1234569e) } if (LNotEqual(bf00, Buffer(){0x78, 0x56, 0x34, 0x12})) { err(ts, z161, __LINE__, 0, 0, bf00, Buffer(){0x78, 0x56, 0x34, 0x12}) } } Store(0x12345675, bf00) Store(m001(bf00), Local0) if (chk0) { if (LNotEqual(Local0, 0x2468acef)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x2468acef) } if (LNotEqual(bf00, Buffer(){0x75, 0x56, 0x34, 0x12})) { err(ts, z161, __LINE__, 0, 0, bf00, Buffer(){0x75, 0x56, 0x34, 0x12}) } } Return(POUT) } /* * Buffer Field passed by agrX * * fail */ Method(mf10,, Serialized) { Name(ts, "mf10") Name(b000, Buffer(16) {}) CreateField(b000, 0, 32, bf00) Method(m000, 1) { Return (arg0) } // Ok OUTP(b000) // This write works correctly: Store(0x12345678, bf00) // Succeeds: Store(m000(bf00), Local0) // Breaks: // LNotEqual(Local0, 0x12345678) // Breaks: // Add(Local0, 0) // Breaks: // Add(bf00, 0) // Ok OUTP(b000) if (LNotEqual(Local0, Buffer(){0x78, 0x56, 0x34, 0x12})) { err(ts, z161, __LINE__, 0, 0, Local0, Buffer(){0x78, 0x56, 0x34, 0x12}) } if (LNotEqual(bf00, Buffer(){0x78, 0x56, 0x34, 0x12})) { err(ts, z161, __LINE__, 0, 0, bf00, Buffer(){0x78, 0x56, 0x34, 0x12}) } Return(POUT) } /* * LEqual of Buffers * * fail */ Method(mf11,, Serialized) { Name(ts, "mf11") Name(b000, Buffer(4) {0x10, 0x11, 0x12, 0x13}) Name(b001, Buffer(4) {0x10, 0x11, 0x12, 0x13}) Store(LEqual(b000, b001), Local3) Return(POUT) } /* * Method calculation stack overflow * * If remove one level the test succeeds * * fail */ Method(mf12,, Serialized) { Name(ts, "mf12") Name(i000, 0) Name(i001, 0) Name(i002, 0) Name(i003, 0) Name(i004, 0) Name(i005, 0) Name(i006, 0) Name(i007, 0) Name(i008, 0) Name(i009, 0) Name(i00a, 0) Name(i00b, 0) Name(i00c, 0) Method(m000) { Method(m001) { Method(m002) { Method(m003) { Method(m004) { Method(m005) { Method(m006) { Method(m007) { Method(m008) { Method(m009) { Method(m00a) { Method(m00b) { Method(m00c) { Store(0xabcd000c, i00c) } Store(0xabcd000b, i00b) m00c() } Store(0xabcd000a, i00a) m00b() } Store(0xabcd0009, i009) m00a() } Store(0xabcd0008, i008) m009() } Store(0xabcd0007, i007) m008() } Store(0xabcd0006, i006) m007() } Store(0xabcd0005, i005) m006() } Store(0xabcd0004, i004) m005() } Store(0xabcd0003, i003) m004() } Store(0xabcd0002, i002) m003() } Store(0xabcd0001, i001) m002() } Store(0xabcd0000, i000) m001() } /* * If remove one level the test succeeds */ m000() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z161, __LINE__, 0, 0, i000, 0xabcd0000) } if (LNotEqual(i001, 0xabcd0001)) { err(ts, z161, __LINE__, 0, 0, i001, 0xabcd0001) } if (LNotEqual(i002, 0xabcd0002)) { err(ts, z161, __LINE__, 0, 0, i002, 0xabcd0002) } if (LNotEqual(i003, 0xabcd0003)) { err(ts, z161, __LINE__, 0, 0, i003, 0xabcd0003) } if (LNotEqual(i004, 0xabcd0004)) { err(ts, z161, __LINE__, 0, 0, i004, 0xabcd0004) } if (LNotEqual(i005, 0xabcd0005)) { err(ts, z161, __LINE__, 0, 0, i005, 0xabcd0005) } if (LNotEqual(i006, 0xabcd0006)) { err(ts, z161, __LINE__, 0, 0, i006, 0xabcd0006) } if (LNotEqual(i007, 0xabcd0007)) { err(ts, z161, __LINE__, 0, 0, i007, 0xabcd0007) } if (LNotEqual(i008, 0xabcd0008)) { err(ts, z161, __LINE__, 0, 0, i008, 0xabcd0008) } if (LNotEqual(i009, 0xabcd0009)) { err(ts, z161, __LINE__, 0, 0, i009, 0xabcd0009) } if (LNotEqual(i00a, 0xabcd000a)) { err(ts, z161, __LINE__, 0, 0, i00a, 0xabcd000a) } if (LNotEqual(i00b, 0xabcd000b)) { err(ts, z161, __LINE__, 0, 0, i00b, 0xabcd000b) } if (LNotEqual(i00c, 0xabcd000c)) { err(ts, z161, __LINE__, 0, 0, i00c, 0xabcd000c) } Return(POUT) } /* * Method calculation stack overflow * * If remove one level the test succeeds * * fail */ Method(mf13,, Serialized) { Name(ts, "mf13") Name(i000, 0) Name(i001, 0) Name(i002, 0) Name(i003, 0) Name(i004, 0) Name(i005, 0) Name(i006, 0) Name(i007, 0) Name(i008, 0) Name(i009, 0) Name(i00a, 0) Name(i00b, 0) Name(i00c, 0) Name(i00d, 0) Name(i00e, 0) Name(i00f, 0) Name(i010, 0) Method(m000) { Store(0xabcd0000, i000) } Method(m001) { Store(0xabcd0001, i001) m000() } Method(m002) { Store(0xabcd0002, i002) m001() } Method(m003) { Store(0xabcd0003, i003) m002() } Method(m004) { Store(0xabcd0004, i004) m003() } Method(m005) { Store(0xabcd0005, i005) m004() } Method(m006) { Store(0xabcd0006, i006) m005() } Method(m007) { Store(0xabcd0007, i007) m006() } Method(m008) { Store(0xabcd0008, i008) m007() } Method(m009) { Store(0xabcd0009, i009) m008() } Method(m00a) { Store(0xabcd000a, i00a) m009() } Method(m00b) { Store(0xabcd000b, i00b) m00a() } Method(m00c) { Store(0xabcd000c, i00c) m00b() } Method(m00d) { Store(0xabcd000d, i00d) m00c() } Method(m00e) { Store(0xabcd000e, i00e) m00d() } Method(m00f) { Store(0xabcd000f, i00f) m00e() } Method(m010) { Store(0xabcd0010, i010) m00f() } /* * If remove one level the test succeeds */ m010() if (LNotEqual(i000, 0xabcd0000)) { err(ts, z161, __LINE__, 0, 0, i000, 0xabcd0000) } if (LNotEqual(i001, 0xabcd0001)) { err(ts, z161, __LINE__, 0, 0, i001, 0xabcd0001) } if (LNotEqual(i002, 0xabcd0002)) { err(ts, z161, __LINE__, 0, 0, i002, 0xabcd0002) } if (LNotEqual(i003, 0xabcd0003)) { err(ts, z161, __LINE__, 0, 0, i003, 0xabcd0003) } if (LNotEqual(i004, 0xabcd0004)) { err(ts, z161, __LINE__, 0, 0, i004, 0xabcd0004) } if (LNotEqual(i005, 0xabcd0005)) { err(ts, z161, __LINE__, 0, 0, i005, 0xabcd0005) } if (LNotEqual(i006, 0xabcd0006)) { err(ts, z161, __LINE__, 0, 0, i006, 0xabcd0006) } if (LNotEqual(i007, 0xabcd0007)) { err(ts, z161, __LINE__, 0, 0, i007, 0xabcd0007) } if (LNotEqual(i008, 0xabcd0008)) { err(ts, z161, __LINE__, 0, 0, i008, 0xabcd0008) } if (LNotEqual(i009, 0xabcd0009)) { err(ts, z161, __LINE__, 0, 0, i009, 0xabcd0009) } if (LNotEqual(i00a, 0xabcd000a)) { err(ts, z161, __LINE__, 0, 0, i00a, 0xabcd000a) } if (LNotEqual(i00b, 0xabcd000b)) { err(ts, z161, __LINE__, 0, 0, i00b, 0xabcd000b) } if (LNotEqual(i00c, 0xabcd000c)) { err(ts, z161, __LINE__, 0, 0, i00c, 0xabcd000c) } if (LNotEqual(i00d, 0xabcd000d)) { err(ts, z161, __LINE__, 0, 0, i00d, 0xabcd000d) } if (LNotEqual(i00e, 0xabcd000e)) { err(ts, z161, __LINE__, 0, 0, i00e, 0xabcd000e) } if (LNotEqual(i00f, 0xabcd000f)) { err(ts, z161, __LINE__, 0, 0, i00f, 0xabcd000f) } if (LNotEqual(i010, 0xabcd0010)) { err(ts, z161, __LINE__, 0, 0, i010, 0xabcd0010) } Return(POUT) } /* * Check Timer * * fail */ Method(mf14,, Serialized) { Name(ts, "mf14") Name(i000, 0) Store(Timer, i000) OUTP(i000) Return(POUT) } /* * Mod * * fail */ Method(mf15,, Serialized) { Name(ts, "mf15") Store(0x1234567d, Local1) Store(8, Local2) /* This Mod breaks */ Mod(Local1, Local2, Local0) OUTP(Local0) if (chk0) { if (LNotEqual(Local0, 5)) { err(ts, z161, __LINE__, 0, 0, Local0, 5) } } Return(POUT) } /* * Return (Package) * * success */ Method(mf16,, Serialized) { Name(ts, "mf16") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0003}) Method(m000, 1) { Return (arg0) } Store(m000(p000), Local0) Store(DerefOf(Index(Local0, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z161, __LINE__, 0, 0, Local0, 0xabcd0001) } Return(POUT) } /* * Return (Package) * * success */ Method(mf17,, Serialized) { Name(ts, "mf17") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0003}) Method(m000,, Serialized) { Name(pp00, Package() {0xabcd0000, 0xabcd0001, 0xabcd0003}) Return (pp00) } Store(m000(), Local0) Store(DerefOf(Index(Local0, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z161, __LINE__, 0, 0, Local0, 0xabcd0001) } Return(POUT) } /* * LEqual (String, String) * * fail */ Method(mf18,, Serialized) { Name(ts, "mf18") Name(s000, "qwertyuiop") Name(s001, "qwertyuiop") Store(LEqual(s000, s001), Local3) if (chk0) { Store(LEqual(s000, s001), Local0) if (LNot(Local0)) { err(ts, z161, __LINE__, 0, 0, Local0, Ones) } } Return(POUT) } /* * LEqual (Buffer, Buffer) * * fail */ Method(mf19,, Serialized) { Name(ts, "mf19") Name(b000, Buffer(4) {0x10, 0x11, 0x12, 0x13}) Name(b001, Buffer(4) {0x10, 0x11, 0x12, 0x13}) Store(LEqual(b000, b001), Local3) if (chk0) { Store(LEqual(b000, b001), Local0) if (LNot(Local0)) { err(ts, z161, __LINE__, 0, 0, Local0, Ones) } } Return(POUT) } /* * Store (Package, Package) * * fail */ Method(mf1a,, Serialized) { Name(ts, "mf1a") Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0003}) Name(pp00, Package(3) {}) Store(p000, pp00) if (chk0) { Store(DerefOf(Index(pp00, 1)), Local0) if (LNotEqual(Local0, 0xabcd0001)) { err(ts, z161, __LINE__, 0, 0, Local0, 0xabcd0001) } } Return(POUT) } /* * Add (String, String) * * fail */ Method(mf1b,, Serialized) { Name(ts, "mf1b") Name(s000, "12345678") Name(s001, "56789012") Store(Add(s000, s001), Local3) if (chk0) { Store(Add(s000, s001), Local0) if (LNotEqual(Local0, 0x68ACE68A)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x68ACE68A) } } Return(POUT) } /* * Add (Buffer, Buffer) * * fail */ Method(mf1c,, Serialized) { Name(ts, "mf1c") Name(b000, Buffer(4) {0x10, 0x11, 0x12, 0x13}) Name(b001, Buffer(4) {0x24, 0x35, 0x46, 0x57}) Store(Add(b000, b001), Local3) if (chk0) { Store(Add(b000, b001), Local0) if (LNotEqual(Local0, 0x6A584634)) { err(ts, z161, __LINE__, 0, 0, Local0, 0x6A584634) } } Return(POUT) } /* * LEqual (Field, ....) * * success */ Method(mf1d,, Serialized) { Name(ts, "mf1d") OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,32} Store(0xabcd0000, f000) Store(LEqual(f000, 0xabcd0000), Local3) Store(LEqual(f000, 0xabcd0000), Local0) if (LNot(Local0)) { err(ts, z161, __LINE__, 0, 0, Local0, Ones) } Return(POUT) } /* * LEqual (Field, ....) * * success */ Method(mf1e,, Serialized) { Name(ts, "mf1e") OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,32} Store(0xabcd0000, f000) Method(m000, 1) { Store(LEqual(arg0, 0xabcd0000), Local0) Return (Local0) } m000(f000) Store(m000(f000), Local0) if (LNot(Local0)) { err(ts, z161, __LINE__, 0, 0, Local0, Ones) } Return(POUT) } /* * LNotEqual (Field, ....) * * success */ Method(mf1f,, Serialized) { Name(ts, "mf1f") OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,32} Store(0xabcd0000, f000) Method(m000, 1) { if (LNotEqual(arg0, 0xabcd0000)) { err(ts, z161, __LINE__, 0, 0, arg0, 0xabcd0000) } } m000(f000) Return(POUT) } /* * Add (Field, .......) * * success */ Method(mf20,, Serialized) { Name(ts, "mf20") OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,32} Store(0xabcd0000, f000) Store(Add(f000, 0x12), Local3) Store(Add(f000, 0x12), Local0) if (LNotEqual(Local0, 0xabcd0012)) { err(ts, z161, __LINE__, 0, 0, Local0, 0xabcd0012) } Return(POUT) } /* * Add (Field, .......) * * success */ Method(mf21,, Serialized) { Name(ts, "mf21") OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,32} Store(0xabcd0000, f000) Method(m000, 1) { Store(Add(arg0, 0x12), Local0) Return (Local0) } m000(f000) Store(m000(f000), Local0) if (LNotEqual(Local0, 0xabcd0012)) { err(ts, z161, __LINE__, 0, 0, Local0, 0xabcd0012) } Return(POUT) } /* * LNotEqual (Index Field, ....) * * success */ Method(mf22,, Serialized) { Name(ts, "mf22") OperationRegion(r003, SystemMemory, 0x180, 0x080) Field(r003, ByteAcc, NoLock, Preserve) {f004,32, f005,32} IndexField(f004, f005, ByteAcc, NoLock, Preserve) {if02,32} Store(0xabcd0000, if02) Method(m000, 1) { if (LNotEqual(arg0, 0xabababab)) { err(ts, z161, __LINE__, 0, 0, arg0, 0xabababab) } } m000(if02) Return(POUT) } /* * Two the same simultaneously (Index Field, ....) * * success */ Method(mf23,, Serialized) { Name(ts, "mf23") OperationRegion(r003, SystemMemory, 0x180, 0x080) Field(r003, ByteAcc, NoLock, Preserve) {f004,32, f005,32} IndexField(f004, f005, ByteAcc, NoLock, Preserve) {if02,32} Store(0xabcd0000, if02) Method(m000, 2) { if (LNotEqual(arg0, 0xabababab)) { err(ts, z161, __LINE__, 0, 0, arg0, 0xabababab) } if (LNotEqual(arg1, 0xabababab)) { err(ts, z161, __LINE__, 0, 0, arg1, 0xabababab) } } m000(if02, if02) Return(POUT) } /* * Two the same simultaneously (Index Field, ....) * * success */ Method(mf24,, Serialized) { Name(ts, "mf24") OperationRegion(r003, SystemMemory, 0x180, 0x080) Field(r003, ByteAcc, NoLock, Preserve) {f004,32, f005,32} IndexField(f004, f005, ByteAcc, NoLock, Preserve) {if02,32} Store(0xabcd0000, if02) Method(m001, 1) { if (LNotEqual(arg0, 0xabababab)) { err(ts, z161, __LINE__, 0, 0, arg0, 0xabababab) } Return (arg0) } Method(m002, 2) { if (LNotEqual(arg0, 0xabababab)) { err(ts, z161, __LINE__, 0, 0, arg0, 0xabababab) } if (LNotEqual(arg1, 0xabababab)) { err(ts, z161, __LINE__, 0, 0, arg1, 0xabababab) } Return (arg1) } Store(m001(if02), Local0) Store(m002(if02, if02), Local0) Return(POUT) } /* * Store (Device, Local) * * succeed */ Method(mf25,, Serialized) { /* // Removed 09/2015. iASL now disallows these stores Name(ts, "mf25") Device(d000) { Name(id00, 0xabcd0005) } Store(d000, Local1) Store(ObjectType(Local1), Local0) if (LNotEqual(Local0, c00e)) { err(ts, z161, __LINE__, 0, 0, Local0, c00e) } */ Return(POUT) } /* * Store (Event, Local) * * success */ Method(mf27,, Serialized) { /* // Removed 09/2015. iASL now disallows these stores Name(ts, "mf27") Event(e000) Store(e000, Local1) Store(ObjectType(Local1), Local0) if (LNotEqual(Local0, c00f)) { err(ts, z161, __LINE__, 0, 0, Local0, c00f) } */ Return(POUT) } /* * Store (Mutex, Local) * * success */ Method(mf28,, Serialized) { /* // Removed 09/2015. iASL now disallows these stores Name(ts, "mf28") Mutex(mx00, 0) Store(mx00, Local1) Store(ObjectType(Local1), Local0) if (LNotEqual(Local0, c011)) { err(ts, z161, __LINE__, 0, 0, Local0, c011) } */ Return(POUT) } /* * Store (Event, Local) * * success */ Method(mf29, 1, Serialized) { /* // Removed 09/2015. iASL now disallows these stores Name(ts, "mf29") Event(e000) Store(e000, arg0) Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c00f)) { err(ts, z161, __LINE__, 0, 0, Local0, c00f) } */ Return(POUT) } /* * Store (Mutex, Local) * * success */ Method(mf2a, 1, Serialized) { /* // Removed 09/2015. iASL now disallows these stores Name(ts, "mf2a") Mutex(mx00, 0) Store(mx00, arg0) Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c011)) { err(ts, z161, __LINE__, 0, 0, Local0, c011) } */ Return(POUT) } /* * Store (Device, Local) * Store (another type object, into the same Local) * * fail */ Method(mf2b,, Serialized) { /* // Removed 09/2015. iASL now disallows these stores Name(ts, "mf2b") Device(d000) { Name(id00, 0xabcd0005) } Store(d000, Local1) Store(0, Local1) if (chk0) { Store(d000, Local1) Store(ObjectType(Local1), Local0) if (LNotEqual(Local0, c00e)) { err(ts, z161, __LINE__, 0, 0, Local0, c00e) } } */ Return(POUT) } /* * Store (Device, Arg) * Store (another type object, into the same Arg) * * fail */ Method(mf2c, 1, Serialized) { /* // Removed 09/2015. iASL now disallows these stores Name(ts, "mf2c") Device(d000) { Name(id00, 0xabcd0005) } Store(d000, arg0) Store(0, arg0) if (chk0) { Store(d000, arg0) Store(ObjectType(arg0), Local0) if (LNotEqual(Local0, c00e)) { err(ts, z161, __LINE__, 0, 0, Local0, c00e) } } */ Return(POUT) } Method(msf0) { SRMT("mf00") if (chk0) { mf00() } else { BLCK() } SRMT("mf01") mf01() SRMT("mf02") if (chk0) { mf02() } else { BLCK() } SRMT("mf03") mf03() SRMT("mf04") if (LAnd(chk0, y275)) { mf04() } else { BLCK() } SRMT("mf05") mf05() SRMT("mf06") mf06() SRMT("mf07") mf07() SRMT("mf08") if (chk0) { mf08() } else { BLCK() } SRMT("mf09") if (chk0) { mf09() } else { BLCK() } SRMT("mf0a") mf0a() SRMT("mf0b") mf0b() SRMT("mf0c") mf0c() SRMT("mf0d") if (chk0) { mf0d() } else { BLCK() } SRMT("mf0e") if (chk0) { mf0e() } else { BLCK() } SRMT("mf0f") if (chk0) { mf0f() } else { BLCK() } SRMT("mf10") if (chk0) { mf10() } else { BLCK() } SRMT("mf11") if (chk0) { mf11() } else { BLCK() } SRMT("mf12") if (chk0) { mf12() } else { BLCK() } SRMT("mf13") if (chk0) { mf13() } else { BLCK() } SRMT("mf14") if (chk0) { mf14() } else { BLCK() } SRMT("mf15") if (chk0) { mf15() } else { BLCK() } SRMT("mf16") mf16() SRMT("mf17") mf17() SRMT("mf18") if (chk0) { mf18() } else { BLCK() } SRMT("mf19") if (chk0) { mf19() } else { BLCK() } SRMT("mf1a") if (chk0) { mf1a() } else { BLCK() } SRMT("mf1b") if (chk0) { mf1b() } else { BLCK() } SRMT("mf1c") if (chk0) { mf1c() } else { BLCK() } SRMT("mf1d") mf1d() SRMT("mf1e") mf1e() SRMT("mf1f") mf1f() SRMT("mf20") mf20() SRMT("mf21") mf21() SRMT("mf22") mf22() SRMT("mf23") mf23() SRMT("mf24") mf24() SRMT("mf25") if (SLC0) { mf25() } else { BLCK() } SRMT("mf26") if (LAnd(SLC0, chk0)) { mf26() } else { BLCK() } SRMT("mf27") if (SLC0) { mf27() } else { BLCK() } SRMT("mf28") if (SLC0) { mf28() } else { BLCK() } SRMT("mf29") if (SLC0) { mf29(0) } else { BLCK() } SRMT("mf2a") if (SLC0) { mf2a(0) } else { BLCK() } SRMT("mf2b") if (LAnd(SLC0, chk0)) { mf2b() } else { BLCK() } SRMT("mf2c") if (LAnd(SLC0, chk0)) { mf2c(0) } else { BLCK() } } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/MAIN_ASLTS.asl0000700000175000017500000000506714773714157030043 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * For AcpiExec only (not abbu) * * Tests applicable to both AcpiExec and MS-abbu utilities */ DefinitionBlock("extra_aslts.aml", "DSDT", 0x2, "INTEL", "ABCDE", 0x1) { Include("./DECL_ASLTS.asl") /* Definitions of common use */ Name (POUT, Package(1) {"EMPTY"}) Method(OUTP, 1) { Store(arg0, Debug) } Method(RST9) { } Scope(\_SB) { Device(ABBU) { Name(_HID, "ACPIABB0") Method(ENBL) { Return(Zero) } Method(TEST) { Return(Zero) } Method(TST) { Return(TSTS) } // ====================================================== // // ====================================================== // // ====================================================== // /* Definitions inside _SB relative to the subject */ // ====================================================== // // ====================================================== // // ====================================================== // Name(TSTS, Package() { "ENBL", "TEST", "TST_", }) } } } acpica-unix-20250404/tests/aslts/src/runtime/collections/Identity2MS/abbu/DECL_ASLTS.asl0000700000175000017500000000341114773714157030015 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // All declarations to compile for AcpiExec Include("../../../../runtime/cntl/DECL.asl") Include("./device/device_aslts.asl") Include("./method/mt0_aslts.asl") Include("./recursion/rec_aslts.asl") Include("./DECL.asl") acpica-unix-20250404/tests/aslts/src/runtime/collections/FULL/0000700000175000017500000000000014773714143023346 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/FULL/FULL/0000700000175000017500000000000014773714155024113 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/collections/FULL/FULL/MAIN.asl0000700000175000017500000000571614773714155025354 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Full test, all the collections together DefinitionBlock( "full.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("../../../../runtime/cntl/DECL.asl") Include("../../../../runtime/common/data.asl") Include("../../../../runtime/common/dataproc.asl") Include("../../../../runtime/common/datastproc.asl") // Functional tests collection Include("../../../../runtime/collections/functional/FULL/DECL.asl") Include("../../../../runtime/common/conversion/oDECL.asl") Include("../../../../runtime/common/conversion/rDECL.asl") // Complex tests collection Include("../../../../runtime/collections/complex/operand/common/ocommon.asl") Include("../../../../runtime/collections/complex/FULL/DECL.asl") // Exceptional conditions tests collection Include("../../../../runtime/collections/exceptions/FULL/DECL.asl") Method(MAIN) { // Initialization STRT(1) // Run verification methods // Run functional tests collection Include("../../../../runtime/collections/functional/FULL/RUN.asl") // Run complex tests collection Include("../../../../runtime/collections/complex/FULL/RUN.asl") // Run exceptional conditions tests collection Include("../../../../runtime/collections/exceptions/FULL/RUN.asl") // Final actions Store(FNSH(), Local7) return (Local7) } } acpica-unix-20250404/tests/aslts/src/runtime/common/0000700000175000017500000000000014773714160021555 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/common/TCI/0000700000175000017500000000000014773714160022174 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/common/TCI/tcicmd.asl0000700000175000017500000007045314773714160024154 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * The Test Command Interface with the ACPICA (_TCI) * * Note: _TCI and TCI mean the same in comments below. * But, actually the name of the relevant predefined * Method is _TCI. */ Name (Z128, 0x80) Name (DE00, 0x00) /* Disable reporting errors from m3a4, needed in m3aa (not enough params) */ Name (FOPT, 0x00) /* Flag of optimization */ /* * Constants */ /* Opcodes of the Test Commands provided by _TCI */ Name (C200, 0x00CD0000) /* _TCI-end statistics */ Name (C201, 0x00CD0001) /* _TCI-begin statistics */ Name (C202, 0x00CD0002) /* TCI_CMD_CHECK_SUPPORTED */ Name (C203, 0x00CD0003) /* TCI_CMD_GET_ID_OF_THREADS */ /* Tags of commands (to be filled into TCI Package by aslts) */ Name (C208, 0xEEEE0596) /* TCI_TAG_GET_MC_STAT_AFTER_TCI_TERM */ Name (C209, 0xBBBB063A) /* TCI_TAG_GET_MC_STAT_BEFORE_TCI_RUN */ Name (C20A, 0xCCCC07B9) /* TCI_TAG_CHECK_SUPPORTED */ Name (C20B, 0xDDDD01F5) /* TCI_TAG_GET_ID_OF_THREADS */ /* * The layout of the Package for Memory Consumption Statistics * applied for TCI commands: * _TCI-end statistics (command TCI_CMD_GET_MC_STAT_AFTER_TCI_TERM) * _TCI-begin statistics (command TCI_CMD_GET_MC_STAT_BEFORE_TCI_RUN) */ Name (C210, 0x00) /* Title */ Name (C211, 0x04) /* acq0 */ Name (C212, 0x09) /* acq1 (-) */ Name (C213, 0x0E) /* acq2 (-) */ Name (C214, 0x13) /* acq3 */ Name (C215, 0x18) /* acq4 (-) */ Name (C216, 0x1D) /* acq5 */ Name (C217, 0x22) /* rel0 */ Name (C218, 0x27) /* rel1 */ Name (C219, 0x2C) /* rel2 (-) */ Name (C21A, 0x31) /* rel3 */ Name (C21B, 0x36) /* Created Objects */ Name (C21C, 0x54) /* Deleted Objects */ Name (C21D, 0x72) /* Miscellaneous Stat */ Name (C220, 0x79) /* the length of the Package for */ /* Memory Consumption Statistics. */ /* The layout of header of the common _TCI Package */ /* Input, data of header passed to ACPICA */ Name (C222, 0x00) /* Tag of command (to be set up by aslts) */ /* Output, data of header returned to aslts from ACPICA */ Name (C223, 0x01) /* Size (number of elements actually packed into TCI package, */ /* to be filled by ACPICA) */ Name (C224, 0x02) /* Cmd (command has been executed, to be filled by ACPICA) */ Name (C225, 0x03) /* CACHE_ENABLED (object cache is enabled info flag, */ /* to be filled by ACPICA) */ Name (C22B, 0x04) /* length of the common _TCI Package header */ /* The layout of header of TCI_CMD_GET_ID_OF_THREADS command */ /* (returned to aslts from ACPICA) */ Name (C22C, 0x04) /* TCI_PACKAGE_THR_NUM */ Name (C22D, 0x05) /* TCI_PACKAGE_THR_NUM_REAL */ Name (C22E, 0x06) /* TCI_PACKAGE_THR_ID */ Name (C22F, 0x07) /* length TCI_PACKAGE_THR_HEADER_SIZE */ Name (C221, 0x05) /* CACHE_LISTS_NUMBER (Object Caches): */ /* CLIST_ID_NAMESPACE 0 -- Acpi-Namespace */ /* CLIST_ID_STATE 1 -- Acpi-State */ /* CLIST_ID_OPERAND 2 -- Acpi-Operand */ /* CLIST_ID_PSNODE 3 -- Acpi-Parse */ /* CLIST_ID_PSNODE_EXT 4 -- Acpi-ParseExt */ Name (C226, 0x00) /* CLIST_ID_NAMESPACE */ Name (C227, 0x01) /* CLIST_ID_STATE */ Name (C228, 0x02) /* CLIST_ID_OPERAND */ Name (C229, 0x03) /* CLIST_ID_PSNODE */ Name (C22A, 0x04) /* CLIST_ID_PSNODE_EXT */ /* * The main Test Command interface with the ACPICA * * arg0 - opcode of the Test Command * arg1 - Package for different needs depending on the command. * So, in case of the Memory Consumption Statistics commands it * is filled by ACPICA with the Memory Consumption Statistics. * The length of package in this case should be not less than c220, * otherwise, no any failure arises but not all data are returned * by Package just only the relevant part of it. It is true for all * commands. * Note: use m3a0 or m165 to prepare the arg1-package. */ Method (_TCI, 2, NotSerialized) { /* * Before to run this method reset location * of Command which is to be filled by ACPICA * to acknowledge the interconnection. * It is performed in m3a0 and m3a4. */ Return (Arg1) } /* * Create and initialize the Package for _TCI * * arg0 - opcode of the Test Command. * Use 0 for allocation without initialization. * arg1 - number of element of Package (for some of commands) * * Return the resulting Package: * * - if arg0 is zero - the Package of c220 length * - otherwise - the Package of length depending on * the command is additionally initialized */ Method (M165, 2, Serialized) { Name (NUM, 0x00) Name (TAG, 0x00) If (Arg0) { Switch (ToInteger (Arg0)) { Case (0x00CD0000) { /* _TCI-end statistics */ TAG = C208 /* \C208 */ NUM = C220 /* \C220 */ } Case (0x00CD0001) { /* _TCI-begin statistics */ TAG = C209 /* \C209 */ NUM = C220 /* \C220 */ } Case (0x00CD0002) { /* TCI_CMD_CHECK_SUPPORTED */ TAG = C20A /* \C20A */ NUM = C22B /* \C22B */ } Case (0x00CD0003) { /* TCI_CMD_GET_ID_OF_THREADS */ TAG = C20B /* \C20B */ NUM = Arg1 } Default { ERR ("m165", Z128, __LINE__, 0x00, 0x00, Arg0, 0x00) } } If ((NUM < C22B)) { ERR ("m165", Z128, __LINE__, 0x00, 0x00, NUM, C22B) } Else { Name (P000, Package (NUM){}) Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = NUM /* \M165.NUM_ */ LPC0 = 0x00 While (LPN0) { P000 [LPC0] = 0x00 LPN0-- LPC0++ } P000 [0x00] = TAG /* \M165.TAG_ */ Return (P000) /* \M165.P000 */ } } Else { Name (P001, Package (C220){}) Return (P001) /* \M165.P001 */ } Return (0x00) } /* * Create and initialize the Package for simple cases * entirely specified by the opcode of command. * * a. for Memory Consumption Statistics * (_TCI-begin or _TCI-end statistics). * * b. TCI_CMD_CHECK_SUPPORTED * * arg0 - opcode of the Test Command. * Use 0 for allocation without initialization. * * Returns the TCI Package */ Method (M3A0, 1, NotSerialized) { Local0 = M165 (Arg0, 0x00) Return (Local0) } Method (M3A1, 2, NotSerialized) { Local0 = DerefOf (NMTP [Arg1]) Concatenate ("", Arg0, Local2) Concatenate (Local2, " ", Local1) Concatenate (Local1, Local0, Debug) } /* * Print out the Memory Consumption Statistics Package * * arg0 - Memory Consumption Statistics Package * arg1 - opcode of the title message */ Method (M3A2, 2, Serialized) { If ((Arg1 == 0x00)) { Debug = "==== _TCI-end statistics" } ElseIf ((Arg1 == 0x01)) { Debug = "==== _TCI-begin statistics" } ElseIf ((Arg1 == 0x02)) { Debug = "==== _TCI-end-begin difference" } Else { Debug = "???" } Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = C220 /* \C220 */ LPC0 = 0x00 Local1 = 0x00 Local2 = 0x00 While (LPN0) { If ((LPC0 == C210)) { Debug = "Title:" } ElseIf ((LPC0 == C211)) { Debug = "acq0: all calls to AcpiUtAcquireFromCache" } ElseIf ((LPC0 == C212)) { Debug = "acq1: +AcpiUtAcquireMutex" } ElseIf ((LPC0 == C213)) { Debug = "acq2: +there is a cache object available" } ElseIf ((LPC0 == C214)) { Debug = "acq3: +AcpiUtReleaseMutex" } ElseIf ((LPC0 == C215)) { Debug = "acq4: +otherwise, the cache is empty, create a new object" } ElseIf ((LPC0 == C216)) { Debug = "acq5: +AcpiUtReleaseMutex" } ElseIf ((LPC0 == C217)) { Debug = "rel0: all calls to AcpiUtReleaseToCache" } ElseIf ((LPC0 == C218)) { Debug = "rel1: +walk cache is full, just free this object" } ElseIf ((LPC0 == C219)) { Debug = "rel2: +otherwise, put this object back into the cache" } ElseIf ((LPC0 == C21A)) { Debug = "rel3: +AcpiUtAcquireMutex" } ElseIf ((LPC0 == C21B)) { Debug = "Created Objects:" } ElseIf ((LPC0 == C21C)) { Debug = "Deleted Objects:" } ElseIf ((LPC0 == C21D)) { Debug = "Miscellaneous Stat:" } If ((LPC0 >= C21D)) { Debug = DerefOf (Arg0 [LPC0]) } ElseIf ((LPC0 >= C21C)) { Local0 = DerefOf (Arg0 [LPC0]) M3A1 (Local0, Local1) Local1++ } ElseIf ((LPC0 >= C21B)) { Local0 = DerefOf (Arg0 [LPC0]) M3A1 (Local0, Local2) Local2++ } Else { Debug = DerefOf (Arg0 [LPC0]) } LPN0-- LPC0++ } } /* * Calculate the difference between the two * Memory Consumption Statistics Packages. * * arg0 - Package of _TCI-end statistics * arg1 - Package of _TCI-begin statistics * arg2 - Package for _TCI-end-begin difference */ Method (M3A3, 3, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = C220 /* \C220 */ LPC0 = 0x00 While (LPN0) { Local0 = DerefOf (Arg0 [LPC0]) Local1 = DerefOf (Arg1 [LPC0]) Local2 = (Local1 - Local0) Arg2 [LPC0] = Local2 LPN0-- LPC0++ } } /* * Verify difference of Memory Consumption Statistics between * two points: _TCI-end statistics and _TCI-begin statistics * (and reset locations of Command of arg0 and arg1 Packages * for the following run). * * Check that the Memory Consumption Statistics measured at the first point * as '_TCI-end statistics' was then changed as expected to the second point * where statistics was measured as '_TCI-begin statistics'. Between these * two points we initiate some AML activity which involves the memory * consumption acquire/release to be then analyzed and verified. * * * arg0 - Package of _TCI-end statistics * arg1 - Package of _TCI-begin statistics * arg2 - Package for _TCI-end-begin difference * arg3 - Package with the benchmark information on Created Objects * arg4 - Package with the benchmark information on Deleted Objects * (if non-Package, then arg3 is used) * arg5 - Package with the benchmark information on memory acq0 and rel0 * (if non-Package, then compare acq0 and rel0 of arg2, * otherwise, arg5 is a Package with the expected per-memory * type differences, expected: acq0[i] - rel0[i] = arg5[i]) * arg6 - index of checking (inside the file) * * Return: * 0 - success * 1 - incorrect Memory Consumption Statistics encountered * otherwise - failed to determine the Memory Consumption Statistics * * See: the time of execution can be reduced (design and use additional flags): * - exclude initialization before each operation * (ACPICA writes all elements, benchmarks for the * following sub-test mostly differ previous ones) * - restrict checkings (use flag) by the acq0 & rel0, * and add & del. */ Method (M3A4, 7, Serialized) { /* Flag of printing */ Name (PR1, 0x00) Name (PR2, 0x00) Name (LPN0, 0x00) Name (LPC0, 0x00) If (PR1) { M3A2 (Arg0, 0x00) M3A2 (Arg1, 0x01) } If (PR2) { M3A2 (Arg2, 0x02) } Local7 = 0x00 /* Check headers of Packages */ If (M3A6 (Arg0, 0x00, Arg6)) { Local7 = 0x02 } If (M3A6 (Arg1, 0x01, Arg6)) { Local7 = 0x02 } /* Check statistics specified by index */ If (M3A7 (Arg0, 0x00, Arg6)) { Local7 = 0x02 } If (M3A7 (Arg1, 0x00, Arg6)) { Local7 = 0x02 } If (M3A7 (Arg2, 0x01, Arg6)) { Local7 = 0x02 } /* * acq0 and rel0 of arg2-difference * are to be equal each to another * (or correspond to arg5): */ If ((ObjectType (Arg5) == C00C)) { Local0 = C211 /* \C211 */ Local1 = C217 /* \C217 */ Local4 = 0x00 LPN0 = C221 /* \C221 */ LPC0 = 0x00 While (LPN0) { Local2 = DerefOf (Arg2 [Local0]) Local3 = DerefOf (Arg2 [Local1]) Local5 = DerefOf (Arg5 [Local4]) Local6 = (Local2 - Local3) If ((Local6 != Local5)) { If (!DE00) { ERR ("m3a4", Z128, __LINE__, 0x00, Arg6, Local6, Local5) Debug = LPC0 /* \M3A4.LPC0 */ Debug = Local0 Debug = Local1 Debug = Local4 Debug = Local2 Debug = Local3 Debug = Local5 Debug = Local6 } Local7 = 0x01 } Local0++ Local1++ Local4++ LPN0-- LPC0++ } } Else { Local0 = C211 /* \C211 */ Local1 = C217 /* \C217 */ LPN0 = C221 /* \C221 */ LPC0 = 0x00 While (LPN0) { Local2 = DerefOf (Arg2 [Local0]) Local3 = DerefOf (Arg2 [Local1]) If ((Local2 != Local3)) { If (!DE00) { ERR ("m3a4", Z128, __LINE__, 0x00, Arg6, Local2, Local3) } Local7 = 0x01 } Local0++ Local1++ LPN0-- LPC0++ } } /* arg2-difference: acq0 == acq3 + acq5 */ Local0 = C211 /* \C211 */ Local1 = C214 /* \C214 */ Local2 = C216 /* \C216 */ LPN0 = C221 /* \C221 */ LPC0 = 0x00 While (LPN0) { Local3 = DerefOf (Arg2 [Local0]) Local4 = DerefOf (Arg2 [Local1]) Local5 = DerefOf (Arg2 [Local2]) Local6 = (Local4 + Local5) If ((Local3 != Local6)) { If (!DE00) { ERR ("m3a4", Z128, __LINE__, 0x00, Arg6, Local3, Local6) } Local7 = 0x01 } Local0++ Local1++ Local2++ LPN0-- LPC0++ } /* arg2-difference: rel0 == rel1 + rel3 */ Local0 = C217 /* \C217 */ Local1 = C218 /* \C218 */ Local2 = C21A /* \C21A */ LPN0 = C221 /* \C221 */ LPC0 = 0x00 While (LPN0) { Local3 = DerefOf (Arg2 [Local0]) Local4 = DerefOf (Arg2 [Local1]) Local5 = DerefOf (Arg2 [Local2]) Local6 = (Local4 + Local5) If ((Local3 != Local6)) { If (!DE00) { ERR ("m3a4", Z128, __LINE__, 0x00, Arg6, Local3, Local6) } Local7 = 0x01 } Local0++ Local1++ Local2++ LPN0-- LPC0++ } /* Check, created Objects are identical to the benchmark ones */ If ((ObjectType (Arg3) == C00C)) { LPN0 = C027 /* \C027 */ Local0 = C21B /* \C21B */ Local1 = 0x00 While (LPN0) { Local2 = DerefOf (Arg2 [Local0]) Local3 = DerefOf (Arg3 [Local1]) If ((Local2 != Local3)) { If (!DE00) { ERR ("m3a4", Z128, __LINE__, 0x00, Arg6, Local2, Local3) } Local7 = 0x01 } Local0++ Local1++ LPN0-- } } /* Check, deleted Objects are identical to the benchmark ones */ LPN0 = C027 /* \C027 */ Local0 = C21C /* \C21C */ Local1 = 0x00 Local4 = 0x00 If ((ObjectType (Arg4) == C00C)) { Local4 = Arg4 } ElseIf ((ObjectType (Arg3) == C00C)) { Local4 = Arg3 } If ((ObjectType (Local4) == C00C)) { While (LPN0) { Local2 = DerefOf (Arg2 [Local0]) Local3 = DerefOf (Local4 [Local1]) If ((Local2 != Local3)) { If (!DE00) { ERR ("m3a4", Z128, __LINE__, 0x00, Arg6, Local2, Local3) } Local7 = 0x01 } Local0++ Local1++ LPN0-- } } /* * Reset locations of Command of arg0 and arg1 * Packages for the following run. * Store(0, Index(arg0, c224)) * Store(0, Index(arg1, c224)) */ Return (Local7) } /* * Return non-zero in case the Test Command interface * with the ACPICA (_TCI) is supported. */ Method (M3A5, 0, NotSerialized) { Local0 = M3A0 (C202) /* TCI_CMD_CHECK_SUPPORTED */ _TCI (C202, Local0) Local1 = DerefOf (Local0 [C224]) If ((Local1 != C202)) { Return (0x00) } Return (0x01) } /* * Check header of Memory Consumption Statistics Package * arg0 - Memory Consumption Statistics Package * arg1 - Means: * 0 - _TCI-end statistics * otherwise - _TCI-begin statistics * arg2 - index of checking (inside the file) */ Method (M3A6, 3, NotSerialized) { Local7 = 0x00 /* Tag of command */ If (Arg1) { Local0 = C209 /* \C209 */ } Else { Local0 = C208 /* \C208 */ } Local1 = DerefOf (Arg0 [0x00]) If ((Local1 != Local0)) { ERR ("m3a6", Z128, __LINE__, 0x00, Arg2, Local1, Local0) Local7 = 0x01 } /* Number of elements actually packed */ Local1 = DerefOf (Arg0 [0x01]) If ((Local1 != C220)) { ERR ("m3a6", Z128, __LINE__, 0x00, Arg2, Local1, C220) Local7 = 0x01 } /* Command has been executed */ If (Arg1) { Local0 = C201 /* \C201 */ } Else { Local0 = C200 /* \C200 */ } Local1 = DerefOf (Arg0 [0x02]) If ((Local1 != Local0)) { ERR ("m3a6", Z128, __LINE__, 0x00, Arg2, Local1, Local0) Local7 = 0x01 } /* Object cache is enabled */ Local1 = DerefOf (Arg0 [0x03]) If (!Local1) { ERR ("m3a6", Z128, __LINE__, 0x00, Arg2, Local1, 0x01) Local7 = 0x01 } Return (Local7) } /* * Check statistics specified by index * * arg0 - Memory Consumption Statistics Package * arg1 - Means: * non-zero - _TCI-end-begin difference Package * otherwise - usual Memory Consumption Statistics Package * arg2 - index of checking (inside the file) */ Method (M3A7, 3, NotSerialized) { Local7 = 0x00 If (Arg1){ /* // ACPI_STAT_SUCCESS_FREE == ACPI_STAT_SUCCESS_ALLOC Add(c21d, 5, Local0) Store(DerefOf(Index(arg0, Local0)), Local1) Increment(Local0) Store(DerefOf(Index(arg0, Local0)), Local2) if (LNotEqual(Local2, Local1)) { err("m3a7", z128, __LINE__, 0, arg2, Local2, Local1) Store(1, Local7) } */ } Else { /* ACPI_STAT_INVALID_EXBUF */ Local0 = C21D /* \C21D */ Local1 = DerefOf (Arg0 [Local0]) If (Local1) { ERR ("m3a7", Z128, __LINE__, 0x00, Arg2, Local1, 0x00) Local7 = 0x01 } /* ACPI_STAT_ZONE0_CORRUPTED */ Local0++ Local1 = DerefOf (Arg0 [Local0]) If (Local1) { ERR ("m3a7", Z128, __LINE__, 0x00, Arg2, Local1, 0x00) Local7 = 0x01 } /* ACPI_STAT_ZONE1_CORRUPTED */ Local0++ Local1 = DerefOf (Arg0 [Local0]) If (Local1) { ERR ("m3a7", Z128, __LINE__, 0x00, Arg2, Local1, 0x00) Local7 = 0x01 } /* ACPI_STAT_FAILED_ALLOC */ Local0++ Local1 = DerefOf (Arg0 [Local0]) If (Local1) { ERR ("m3a7", Z128, __LINE__, 0x00, Arg2, Local1, 0x00) Local7 = 0x01 } /* ACPI_STAT_NULL_FREE */ Local0++ Local1 = DerefOf (Arg0 [Local0]) If (Local1) { ERR ("m3a7", Z128, __LINE__, 0x00, Arg2, Local1, 0x00) Local7 = 0x01 } } Return (Local7) } /* * Create and initialize the sample Package for the * per-object type benchmark Memory Consumption Statistics */ Method (M3A8, 0, Serialized) { Name (P000, Package (0x20) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }) Return (P000) /* \M3A8.P000 */ } /* * Create and initialize the sample Package for the * per-memory type benchmark Memory Consumption Statistics */ Method (M3A9, 0, Serialized) { Name (P000, Package (0x07) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }) Return (P000) /* \M3A9.P000 */ } /* * Determine the flag of optimization: check that * processing of the Add operation corresponds to * the expectation: optimized/non-optimized. * * Mode of run, optimized/non-optimized, is essential * for this kind tests (memory consumption). * * arg0 - Means: * 0 - check for Optimization is tuned off * otherwise - check for Optimization is tuned on */ Method (M3AA, 0, Serialized) { Name (I000, 0x00) Name (P000, Package (0x01){}) Name (P00B, Package (0x01){}) FOPT = 0xFF Local0 = M3A0 (C200) /* _TCI-end statistics */ P00B = M3A0 (C201) /* _TCI-begin statistics */ Local1 = M3A0 (0x00) /* difference */ _TCI (C200, Local0) Store ((0x03 + 0x04), I000) /* \M3AA.I000 */ _TCI (C201, P00B) M3A3 (Local0, P00B, Local1) /* Statistics expected in case Optimization is tuned off */ P000 = M3A8 () P000 [C009] = 0x04 /* Integer */ DE00 = 0x01 Local6 = M3A4 (Local0, P00B, Local1, P000, 0x00, 0x00, 0x00) DE00 = 0x00 If ((Local6 == 0x02)) { Debug = "Failed to determine the flag of optimization" Return (Zero) } Else { /* Statistics expected in case Optimization is tuned on */ P000 = M3A8 () P000 [C009] = 0x01 /* Integer */ DE00 = 0x01 Local7 = M3A4 (Local0, P00B, Local1, P000, 0x00, 0x00, 0x01) DE00 = 0x00 If ((Local7 == 0x02)) { Debug = "Failed to determine the flag of optimization" Return (Zero) } } If ((Local6 == Local7)) { Debug = "Internal error 0" ERR ("m3aa", Z128, __LINE__, 0x00, 0x00, Local6, Local7) } ElseIf (Local6) { FOPT = 0x01 } Else { FOPT = 0x00 } } /* * Return Package with the array of thread indexes * otherwise Integer 0. * * arg0 - number of threads */ Method (M163, 1, Serialized) { Name (SIZE, 0x00) SIZE = (C22F + Arg0) Local0 = M165 (C203, SIZE) /* TCI_CMD_GET_ID_OF_THREADS */ _TCI (C203, Local0) Local1 = DerefOf (Local0 [C224]) If ((Local1 != C203)) { Return (0x00) } Return (Local0) } acpica-unix-20250404/tests/aslts/src/runtime/common/data.asl0000700000175000017500000004044614773714160023202 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * * Different type data for different needs * */ /* SEE: uncomment m918 after fixing bug (?) of ACPICA SEE: uncomment below: // Method(m918) { return (tz90) } */ Name (Z113, 0x71) /* Not Computational Data */ Event (E900) Event (E9Z0) Mutex (MX90, 0x00) Mutex (MX91, 0x00) Device (D900) { Name (I900, 0xABCD0017) } Device (D9Z0) { Name (I900, 0xABCD0017) } ThermalZone (TZ90) { } ThermalZone (TZ91) { } Processor (PR90, 0x00, 0xFFFFFFFF, 0x00){} Processor (PR91, 0x00, 0xFFFFFFFF, 0x00){} OperationRegion (R900, SystemMemory, 0x0100, 0x0100) OperationRegion (R9Z0, SystemMemory, 0x0100, 0x0100) PowerResource (PW90, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } PowerResource (PW91, 0x01, 0x0000) { Method (MMMM, 0, NotSerialized) { Return (0x00) } } /* Computational Data */ Name (I900, 0xFE7CB391D65A0000) Name (I9Z0, 0xFE7CB391D65A0000) Name (I901, 0xC1790001) Name (I9Z1, 0xC1790001) Name (I902, 0x00) Name (I903, 0xFFFFFFFFFFFFFFFF) Name (I904, 0xFFFFFFFF) Name (S900, "12340002") Name (S9Z0, "12340002") Name (S901, "qwrtyu0003") Name (S9Z1, "qwrtyu0003") Name (B900, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) Name (B9Z0, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) CreateField (B9Z0, 0x00, 0x08, BF90) Field (R9Z0, ByteAcc, NoLock, Preserve) { F900, 8, F901, 8, F902, 8, F903, 8 } BankField (R9Z0, F901, 0x00, ByteAcc, NoLock, Preserve) { BN90, 4 } IndexField (F902, F903, ByteAcc, NoLock, Preserve) { IF90, 8, IF91, 8 } /* Elements of Package are Uninitialized */ Name (P900, Package (0x01){}) /* Elements of Package are Computational Data */ Name (P901, Package (0x02) { 0xABCD0004, 0x1122334455660005 }) Name (P902, Package (0x02) { "12340006", "q1w2e3r4t5y6u7i80007" }) Name (P903, Package (0x02) { "qwrtyuiop0008", "1234567890abdef0250009" }) Name (P904, Package (0x02) { Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }, Buffer (0x02) { 0xB8, 0xB9 // .. } }) Name (P905, Package (0x01) { Package (0x03) { 0x0ABC000A, "0xabc000b", "abc000c" } }) Name (P906, Package (0x01) { Package (0x01) { "abc000d" } }) Name (P907, Package (0x01) { Package (0x01) { "aqwevbgnm000e" } }) Name (P908, Package (0x01) { Package (0x01) { Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... } } }) Name (P909, Package (0x01) { Package (0x01) { Package (0x01) { 0x0ABC000F } } }) Name (P90A, Package (0x01) { Package (0x01) { Package (0x01) { "12340010" } } }) Name (P90B, Package (0x01) { Package (0x01) { Package (0x01) { "zxswefas0011" } } }) Name (P90C, Package (0x01) { Package (0x01) { Package (0x01) { Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... } } } }) Name (P90D, Package (0x01) { I900 }) Name (P90E, Package (0x01) { I901 }) Name (P90F, Package (0x01) { S900 }) Name (P910, Package (0x01) { S901 }) Name (P911, Package (0x01) { B9Z0 }) Name (P912, Package (0x01) { F900 }) Name (P913, Package (0x01) { BN90 }) Name (P914, Package (0x01) { IF90 }) Name (P915, Package (0x01) { BF90 }) /* Elements of Package are NOT Computational Data */ Name (P916, Package (0x01) { D900 }) Name (P917, Package (0x01) { E900 }) Name (P918, Package (0x01) { MX90 }) Name (P919, Package (0x01) { R9Z0 }) Name (P91A, Package (0x01) { PW90 }) Name (P91B, Package (0x01) { PR90 }) Name (P91C, Package (0x01) { TZ90 }) /* Methods */ Method (M900, 0, NotSerialized) { } Method (M901, 0, NotSerialized) { Return (0x0ABC0012) } Method (M902, 0, NotSerialized) { Return ("zxvgswquiy0013") } Method (M903, 0, NotSerialized) { Return (Buffer (0x01) { 0xC2 // . }) } Method (M904, 0, NotSerialized) { Return (Package (0x01) { 0x0ABC0014 }) } Method (M905, 0, NotSerialized) { Return (Package (0x01) { "lkjhgtre0015" }) } Method (M906, 0, NotSerialized) { Return (Package (0x01) { Buffer (0x01) { 0xC3 // . } }) } Method (M907, 0, NotSerialized) { Return (Package (0x01) { Package (0x01) { 0x0ABC0016 } }) } Method (M908, 0, NotSerialized) { Return (I900) /* \I900 */ } Method (M909, 0, NotSerialized) { Return (I901) /* \I901 */ } Method (M90A, 0, NotSerialized) { Return (S900) /* \S900 */ } Method (M90B, 0, NotSerialized) { Return (S901) /* \S901 */ } Method (M90C, 0, NotSerialized) { Return (B9Z0) /* \B9Z0 */ } Method (M90D, 0, NotSerialized) { Return (F900) /* \F900 */ } Method (M90E, 0, NotSerialized) { Return (BN90) /* \BN90 */ } Method (M90F, 0, NotSerialized) { Return (IF90) /* \IF90 */ } Method (M910, 0, NotSerialized) { Return (BF90) /* \BF90 */ } Method (M911, 0, NotSerialized) { Return (D900) /* \D900 */ } Method (M912, 0, NotSerialized) { Return (E900) /* \E900 */ } Method (M913, 0, NotSerialized) { Return (M901 ()) } Method (M914, 0, NotSerialized) { Return (MX90) /* \MX90 */ } Method (M915, 0, NotSerialized) { Return (R9Z0) /* \R9Z0 */ } Method (M916, 0, NotSerialized) { Return (PW90) /* \PW90 */ } Method (M917, 0, NotSerialized) { Return (PR90) /* \PR90 */ } /* Method(m918) { return (tz90) } */ Method (M918, 0, NotSerialized) { Return (0x00) } Method (M919, 0, NotSerialized) { Return (P900) /* \P900 */ } Method (M91A, 0, NotSerialized) { Return (P901) /* \P901 */ } Method (M91B, 0, NotSerialized) { Return (P902) /* \P902 */ } Method (M91C, 0, NotSerialized) { Return (P903) /* \P903 */ } Method (M91D, 0, NotSerialized) { Return (P904) /* \P904 */ } Method (M91E, 0, NotSerialized) { Return (P905) /* \P905 */ } Method (M91F, 0, NotSerialized) { Return (P906) /* \P906 */ } Method (M920, 0, NotSerialized) { Return (P907) /* \P907 */ } Method (M921, 0, NotSerialized) { Return (P908) /* \P908 */ } Method (M922, 0, NotSerialized) { Return (P909) /* \P909 */ } Method (M923, 0, NotSerialized) { Return (P90A) /* \P90A */ } Method (M924, 0, NotSerialized) { Return (P90B) /* \P90B */ } Method (M925, 0, NotSerialized) { Return (P90C) /* \P90C */ } Method (M926, 0, NotSerialized) { Return (P90D) /* \P90D */ } Method (M927, 0, NotSerialized) { Return (P90E) /* \P90E */ } Method (M928, 0, NotSerialized) { Return (P90F) /* \P90F */ } Method (M929, 0, NotSerialized) { Return (P910) /* \P910 */ } Method (M92A, 0, NotSerialized) { Return (P911) /* \P911 */ } Method (M92B, 0, NotSerialized) { Return (P912) /* \P912 */ } Method (M92C, 0, NotSerialized) { Return (P913) /* \P913 */ } Method (M92D, 0, NotSerialized) { Return (P914) /* \P914 */ } Method (M92E, 0, NotSerialized) { Return (P915) /* \P915 */ } Method (M92F, 0, NotSerialized) { Return (P916) /* \P916 */ } Method (M930, 0, NotSerialized) { Return (P917) /* \P917 */ } Method (M931, 0, NotSerialized) { Return (P918) /* \P918 */ } Method (M932, 0, NotSerialized) { Return (P919) /* \P919 */ } Method (M933, 0, NotSerialized) { Return (P91A) /* \P91A */ } Method (M934, 0, NotSerialized) { Return (P91B) /* \P91B */ } Method (M935, 0, NotSerialized) { Return (P91C) /* \P91C */ } /* Elements of Package are Methods */ Name (P91D, Package (0x01) { M900 }) Name (P91E, Package (0x01) { M901 }) Name (P91F, Package (0x01) { M902 }) Name (P920, Package (0x01) { M903 }) Name (P921, Package (0x01) { M904 }) Name (P922, Package (0x01) { M905 }) Name (P923, Package (0x01) { M906 }) Name (P924, Package (0x01) { M907 }) Name (P925, Package (0x01) { M908 }) Name (P926, Package (0x01) { M909 }) Name (P927, Package (0x01) { M90A }) Name (P928, Package (0x01) { M90B }) Name (P929, Package (0x01) { M90C }) Name (P92A, Package (0x01) { M90D }) Name (P92B, Package (0x01) { M90E }) Name (P92C, Package (0x01) { M90F }) Name (P92D, Package (0x01) { M910 }) Name (P92E, Package (0x01) { M911 }) Name (P92F, Package (0x01) { M912 }) Name (P930, Package (0x01) { M913 }) Name (P931, Package (0x01) { M914 }) Name (P932, Package (0x01) { M915 }) Name (P933, Package (0x01) { M916 }) Name (P934, Package (0x01) { M917 }) If (Y103) { Name (P935, Package (0x01) { M918 }) } Name (P936, Package (0x01) { M919 }) Name (P937, Package (0x01) { M91A }) Name (P938, Package (0x01) { M91B }) Name (P939, Package (0x01) { M91C }) Name (P93A, Package (0x01) { M91D }) Name (P93B, Package (0x01) { M91E }) Name (P93C, Package (0x01) { M91F }) Name (P93D, Package (0x01) { M920 }) Name (P93E, Package (0x01) { M921 }) Name (P93F, Package (0x01) { M922 }) Name (P940, Package (0x01) { M923 }) Name (P941, Package (0x01) { M924 }) Name (P942, Package (0x01) { M925 }) Name (P943, Package (0x01) { M926 }) Name (P944, Package (0x01) { M927 }) Name (P945, Package (0x01) { M928 }) Name (P946, Package (0x01) { M929 }) Name (P947, Package (0x01) { M92A }) Name (P948, Package (0x01) { M92B }) Name (P949, Package (0x01) { M92C }) Name (P94A, Package (0x01) { M92D }) Name (P94B, Package (0x01) { M92E }) Name (P94C, Package (0x01) { M92F }) Name (P94D, Package (0x01) { M930 }) Name (P94E, Package (0x01) { M931 }) Name (P94F, Package (0x01) { M932 }) Name (P950, Package (0x01) { M933 }) Name (P951, Package (0x01) { M934 }) Name (P952, Package (0x01) { M935 }) Name (P953, Package (0x02) { 0xABCD0018, 0xABCD0019 }) Name (P954, Package (0x02) { 0xABCD0018, 0xABCD0019 }) Name (I905, 0xABCD001A) Name (I9Z5, 0xABCD001A) Method (M936, 0, NotSerialized) { I905 = 0x00 Return (MX90) /* \MX90 */ } Name (P955, Package (0x12) { 0x00, I900, S900, B900, P953, F900, D900, E900, M936, MX90, R900, PW90, PR90, TZ90, BF90, 0x0F, 0x10 }) Name (P956, Package (0x12) { 0x00, I900, S900, B900, P953, F900, D900, E900, M936, MX90, R900, PW90, PR90, TZ90, BF90, 0x0F, 0x10 }) /* Global Standard Data */ Name (IA00, 0x77) Name (SA00, "qwer0000") Name (BA00, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (PA00, Package (0x03) { 0x05, 0x77, 0x07 }) Name (IA10, 0x77) Name (SA10, "qwer0000") Name (BA10, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) Name (PA10, Package (0x03) { 0x05, 0x77, 0x07 }) Name (IA01, 0x2B) Name (SA01, "qw+r0000") Name (BA01, Buffer (0x04) { 0x01, 0x2B, 0x03, 0x04 // .+.. }) Name (PA01, Package (0x03) { 0x05, 0x2B, 0x07 }) Name (IA11, 0x2B) Name (SA11, "qw+r0000") Name (BA11, Buffer (0x04) { 0x01, 0x2B, 0x03, 0x04 // .+.. }) Name (PA11, Package (0x03) { 0x05, 0x2B, 0x07 }) acpica-unix-20250404/tests/aslts/src/runtime/common/README0000700000175000017500000000143214773714160022440 0ustar ivanhuivanhu CONTENTS Objects of common use which may be useful in more then one test conversion Objects applicable to Source Operand and Result conversion tests (now not in use) operations.asl Methods allowing to handle particular ASL operators data.asl all the type objects dataproc.asl some common use methods which deal with the data of data.asl file datastproc.asl methods applied to the Standard Data (data of known type and value) TCI the Test Command Interface with the ACPI implemenntation (_TCI). Provides interaction with the ACPI implementation basing on the conditional insertions into ACPI implementation code. By now based on it are implemented (in ACPICA) the memory leak detecting instrumentation and multi-threading testing (just started).acpica-unix-20250404/tests/aslts/src/runtime/common/datastproc.asl0000700000175000017500000002104614773714160024430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Methods applied to the Standard Data */ Name (Z115, 0x73) /* Check original values */ /* arg0 - test name */ /* arg1 - Integer, original object */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M380, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != C009)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local0, C009) } ElseIf ((Arg1 != 0x77)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Arg1, 0x77) } } /* arg0 - test name */ /* arg1 - String, original object */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M381, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != C00A)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local0, C00A) } ElseIf ((Arg1 != "qwer0000")) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Arg1, "qwer0000") } } /* arg0 - test name */ /* arg1 - Buffer, original object */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M382, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != C00B)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local0, C00B) } ElseIf ((Arg1 != Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. })) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Arg1, Buffer (0x04) { 0x01, 0x77, 0x03, 0x04 // .w.. }) } } /* arg0 - test name */ /* arg1 - Package, original object */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M383, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != C00C)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local0, C00C) } Else { Local0 = Arg1 [0x00] Local1 = DerefOf (Local0) If ((Local1 != 0x05)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local1, 0x05) } Local0 = Arg1 [0x01] Local1 = DerefOf (Local0) If ((Local1 != 0x77)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local1, 0x77) } Local0 = Arg1 [0x02] Local1 = DerefOf (Local0) If ((Local1 != 0x07)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local1, 0x07) } } } /* Check result of writing */ /* arg0 - test name */ /* arg1 - Integer, original object */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M384, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != C009)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local0, C009) } ElseIf ((Arg1 != 0x2B)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Arg1, 0x2B) } } /* arg0 - test name */ /* arg1 - String, original object */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M385, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != C00A)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local0, C00A) } ElseIf ((Arg1 != "q+er0000")) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Arg1, "q+er0000") } } /* arg0 - test name */ /* arg1 - Buffer, original object */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M386, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != C00B)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local0, C00B) } ElseIf ((Arg1 != Buffer (0x04) { 0x01, 0x2B, 0x03, 0x04 // .+.. })) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Arg1, Buffer (0x04) { 0x01, 0x2B, 0x03, 0x04 // .+.. }) } } /* arg0 - test name */ /* arg1 - Package, original object */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M387, 4, NotSerialized) { Local0 = ObjectType (Arg1) If ((Local0 != C00C)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local0, C00C) } Else { Local0 = Arg1 [0x00] Local1 = DerefOf (Local0) If ((Local1 != 0x05)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local1, 0x05) } Local0 = Arg1 [0x01] Local1 = DerefOf (Local0) If ((Local1 != 0x2B)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local1, 0x2B) } Local0 = Arg1 [0x02] Local1 = DerefOf (Local0) If ((Local1 != 0x07)) { ERR (Arg0, Z115, __LINE__, Arg2, Arg3, Local1, 0x07) } } } /* arg0 - original object */ /* arg1 - type of it */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M390, 4, Serialized) { Name (TS, "m390") If ((Arg1 == C009)) { M380 (TS, Arg0, Arg2, __LINE__) } ElseIf ((Arg1 == C00A)) { M381 (TS, Arg0, Arg2, __LINE__) } ElseIf ((Arg1 == C00B)) { M382 (TS, Arg0, Arg2, __LINE__) } ElseIf ((Arg1 == C00C)) { M383 (TS, Arg0, Arg2, __LINE__) } } /* arg0 - original object */ /* arg1 - type of it */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - line number of checking (inside the file) */ Method (M391, 4, Serialized) { Name (TS, "m391") If ((Arg1 == C009)) { M384 (TS, Arg0, Arg2, __LINE__) } ElseIf ((Arg1 == C00A)) { M385 (TS, Arg0, Arg2, __LINE__) } ElseIf ((Arg1 == C00B)) { M386 (TS, Arg0, Arg2, __LINE__) } ElseIf ((Arg1 == C00C)) { M387 (TS, Arg0, Arg2, __LINE__) } } acpica-unix-20250404/tests/aslts/src/runtime/common/operations.asl0000700000175000017500000006504114773714160024452 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ///////////////////////////////////////////////////////////////////////// */ /* 0 - Acquire (arg0, arg1) => Local7 */ /* 1 - Add (arg0, arg1, RES) => Local7 */ /* 2 - And (arg0, arg1, RES) => Local7 */ /* 3 - Concatenate (arg0, arg1, RES) => Local7 */ /* 4 - ConcatenateResTemplate (arg0, arg1, RES) => Local7 */ /* 5 - CondRefOf (arg0, RES) => Local7 */ /* 6 - CopyObject (arg0, RES) => Local7 */ /* 7 - Decrement (arg0 --> RES) => Local7 */ /* 8 - DerefOf (arg0) => Local7 */ /* 9 - Divide (arg0, arg1, RES, RES) => Local7 */ /* 10 - Fatal (arg0, arg1, arg2) */ /* 11 - FindSetLeftBit (arg0, RES) => Local7 */ /* 12 - FindSetRightBit (arg0, RES) => Local7 */ /* 13 - FromBCD (arg0, RES) => Local7 */ /* 14 - Increment (arg0 --> RES) => Local7 */ /* 15 - Index (arg0, arg1, RES) => Local7 */ /* 16 - LAnd (arg0, arg1) => Local7 */ /* 17 - LEqual (arg0, arg1) => Local7 */ /* 18 - LGreater (arg0, arg1) => Local7 */ /* 19 - LGreaterEqual (arg0, arg1) => Local7 */ /* 20 - LLess (arg0, arg1) => Local7 */ /* 21 - LLessEqual (arg0, arg1) => Local7 */ /* 22 - LNot (arg0) => Local7 */ /* 23 - LNotEqual (arg0, arg1) => Local7 */ /* 24 - LOr (arg0, arg1) => Local7 */ /* 25 - Match (arg0, , arg2, , arg3, arg4) => Local7 */ /* 26 - Mid (arg0, arg1, arg2, RES) => Local7 */ /* 27 - Mod (arg0, arg1, RES) => Local7 */ /* 28 - Multiply (arg0, arg1, RES) => Local7 */ /* 29 - NAnd (arg0, arg1, RES) => Local7 */ /* 30 - NOr (arg0, arg1, RES) => Local7 */ /* 31 - Not (arg0, RES) => Local7 */ /* 32 - ObjectType (arg0) => Local7 */ /* 33 - Or (arg0, arg1, RES) => Local7 */ /* 34 - RefOf (arg0) => Local7 */ /* 35 - Release (arg0) */ /* 36 - Reset (arg0) */ /* 37 - Return (arg0) */ /* 38 - ShiftLeft (arg0, arg1, RES) => Local7 */ /* 39 - ShiftRight (arg0, arg1, RES) => Local7 */ /* 40 - Signal (arg0) */ /* 41 - SizeOf (arg0) => Local7 */ /* 42 - Sleep (arg0) */ /* 43 - Stall (arg0) */ /* 44 - Store (arg0, RES) => Local7 */ /* 45 - Subtract (arg0, arg1, RES) => Local7 */ /* 46 - ToBCD (arg0, RES) => Local7 */ /* 47 - ToBuffer (arg0, RES) => Local7 */ /* 48 - ToDecimalString (arg0, RES) => Local7 */ /* 49 - ToHexString (arg0, RES) => Local7 */ /* 50 - ToInteger (arg0, RES) => Local7 */ /* 51 - ToString (arg0, arg1, RES) => Local7 */ /* 52 - Wait (arg0, arg1) => Local7 */ /* 53 - XOr (arg0, arg1, RES) => Local7 */ /* ////////////////////////////////////////////////////////////////////////// */ Name (Z082, 0x52) /* Flag - verify result with the contents of Package */ Name (FLG2, 0x3859A0D4) /* Flag - it is expected that operation will cause exception */ Name (FLG3, 0x00) /* Flag - don't do further checkings */ Name (FLG4, 0x00) /* Collect calls to all operators */ /* */ /* arg0-arg4 - parameters of operators */ /* arg5 - miscellaneous */ /* arg6 - opcode of operation */ Method (M480, 7, Serialized) { Name (TS, "m480") Name (PR00, 0x00) Name (PR01, 0x00) Name (CHK0, 0x01) Name (RES0, 0x00) Name (RES1, 0x00) Name (RES2, 0x00) If ((Arg5 == FLG2)) { CHK0 = 0x00 } If (CHK0) { Name (TMP0, 0x00) Name (TMP1, 0x00) Name (OT00, 0x00) Name (OT01, 0x00) Name (OT02, 0x00) Name (OT03, 0x00) Name (OT04, 0x00) Name (OT05, 0x00) Name (OT06, 0x00) OT00 = ObjectType (Arg0) OT01 = ObjectType (Arg1) OT02 = ObjectType (Arg2) OT03 = ObjectType (Arg3) OT04 = ObjectType (Arg4) OT05 = ObjectType (Arg5) OT06 = ObjectType (Arg6) Local0 = Arg0 Local1 = Arg1 Local2 = Arg2 Local3 = Arg3 Local4 = Arg4 Local5 = Arg5 Local6 = Arg6 Name (OT10, 0x00) Name (OT11, 0x00) Name (OT12, 0x00) Name (OT13, 0x00) Name (OT14, 0x00) Name (OT15, 0x00) Name (OT16, 0x00) OT10 = ObjectType (Local0) OT11 = ObjectType (Local1) OT12 = ObjectType (Local2) OT13 = ObjectType (Local3) OT14 = ObjectType (Local4) OT15 = ObjectType (Local5) OT16 = ObjectType (Local6) } /* if(chk0) */ Local7 = 0x00 If (PR00) { Debug = "===================== m480, Start:" Debug = Arg0 Debug = Arg1 Debug = Arg2 Debug = Arg3 Debug = Arg4 Debug = Arg5 Debug = Arg6 If (CHK0) { Debug = "--------" Debug = Local0 Debug = Local1 Debug = Local2 Debug = Local3 Debug = Local4 Debug = Local5 Debug = Local6 Debug = Local7 } Debug = "=====================." } Switch (ToInteger (Arg6)) { Case (0x00) { Local7 = Acquire (Arg0, 0x0064) } Case (0x01) { RES0 = 0x01 Local7 = Arg5 = (Arg0 + Arg1) } Case (0x02) { RES0 = 0x01 Local7 = Arg5 = (Arg0 & Arg1) } Case (0x03) { RES0 = 0x01 Local7 = Concatenate (Arg0, Arg1, Arg5) } Case (0x04) { RES0 = 0x01 Local7 = ConcatenateResTemplate (Arg0, Arg1, Arg5) } Case (0x05) { RES2 = 0x01 Local7 = CondRefOf (Arg0, Arg5) } Case (0x06) { RES0 = 0x01 Local7 = CopyObject (Arg0, Arg5) } Case (0x07) { RES0 = 0x01 Arg5 = Arg0 Local7 = Arg5-- } Case (0x08) { Local7 = DerefOf (Arg0) } Case (0x09) { RES0 = 0x01 RES1 = 0x01 Local7 = Divide (Arg0, Arg1, Arg2, Arg5) } Case (0x0A) { Fatal (0xFF, 0xFFFFFFFF, Arg0) } Case (0x0B) { RES0 = 0x01 Local7 = FindSetLeftBit (Arg0, Arg5) } Case (0x0C) { RES0 = 0x01 Local7 = FindSetRightBit (Arg0, Arg5) } Case (0x0D) { RES0 = 0x01 Local7 = FromBCD (Arg0, Arg5) } Case (0x0E) { RES0 = 0x01 Arg5 = Arg0 Local7 = Arg5++ } Case (0x0F) { RES0 = 0x01 Local7 = Arg5 = Arg0 [Arg1] } Case (0x10) { Local7 = (Arg0 && Arg1) } Case (0x11) { Local7 = (Arg0 == Arg1) } Case (0x12) { Local7 = (Arg0 > Arg1) } Case (0x13) { Local7 = (Arg0 >= Arg1) } Case (0x14) { Local7 = (Arg0 < Arg1) } Case (0x15) { Local7 = (Arg0 <= Arg1) } Case (0x16) { Local7 = !Arg0 } Case (0x17) { Local7 = (Arg0 != Arg1) } Case (0x18) { Local7 = (Arg0 || Arg1) } Case (0x19) { /* arg1 - determine OP1 and OP2 */ Local7 = Match (Arg0, MTR, Arg2, MTR, Arg3, Arg4) } Case (0x1A) { RES0 = 0x01 Local7 = Mid (Arg0, Arg1, Arg2, Arg5) } Case (0x1B) { RES0 = 0x01 Local7 = Arg5 = (Arg0 % Arg1) } Case (0x1C) { RES0 = 0x01 Local7 = Arg5 = (Arg0 * Arg1) } Case (0x1D) { RES0 = 0x01 Local7 = NAnd (Arg0, Arg1, Arg5) } Case (0x1E) { RES0 = 0x01 Local7 = NOr (Arg0, Arg1, Arg5) } Case (0x1F) { RES0 = 0x01 Local7 = Arg5 = ~Arg0 } Case (0x20) { Local7 = ObjectType (Arg0) } Case (0x21) { RES0 = 0x01 Local7 = Arg5 = (Arg0 | Arg1) } Case (0x22) { Local7 = RefOf (Arg0) } Case (0x23) { Release (Arg0) } Case (0x24) { Reset (Arg0) } Case (0x25) { Return (Arg0) } Case (0x26) { RES0 = 0x01 Local7 = Arg5 = (Arg0 << Arg1) } Case (0x27) { RES0 = 0x01 Local7 = Arg5 = (Arg0 >> Arg1) } Case (0x28) { Signal (Arg0) } Case (0x29) { Local7 = SizeOf (Arg0) } Case (0x2A) { Sleep (Arg0) } Case (0x2B) { Stall (Arg0) } Case (0x2C) { RES0 = 0x01 Local7 = Arg5 = Arg0 } Case (0x2D) { RES0 = 0x01 Local7 = Arg5 = (Arg0 - Arg1) } Case (0x2E) { RES0 = 0x01 Local7 = ToBCD (Arg0, Arg5) } Case (0x2F) { RES0 = 0x01 Local7 = ToBuffer (Arg0, Arg5) } Case (0x30) { RES0 = 0x01 Local7 = ToDecimalString (Arg0, Arg5) } Case (0x31) { RES0 = 0x01 Local7 = ToHexString (Arg0, Arg5) } Case (0x32) { RES0 = 0x01 Local7 = ToInteger (Arg0, Arg5) } Case (0x33) { RES0 = 0x01 Local7 = ToString (Arg0, Arg1, Arg5) } Case (0x34) { Local7 = Wait (Arg0, Arg1) } Case (0x35) { RES0 = 0x01 Local7 = Arg5 = (Arg0 ^ Arg1) } Default { Debug = "Param error 0" Local0 = 0x01 Local1 = 0x00 Divide (Local0, Local1, Local2, Local3) } } If (FLG3) { /* It was expected that operation will cause exception. */ /* We verify only the presence of exception. */ /* Nothing to do more. */ Return (0x01) } If (FLG4) { /* Don't do further checkings. */ Return (0x01) } If (CHK0) { /* Types of ArgX are save */ TMP0 = ObjectType (Arg0) If ((TMP0 != OT00)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT00) } TMP0 = ObjectType (Arg1) If ((TMP0 != OT01)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT01) } TMP0 = ObjectType (Arg2) If ((TMP0 != OT02)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT02) } TMP0 = ObjectType (Arg3) If ((TMP0 != OT03)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT03) } TMP0 = ObjectType (Arg4) If ((TMP0 != OT04)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT04) } If (RES0) { TMP0 = ObjectType (Arg5) If ((TMP0 != OT05)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT05) } } TMP0 = ObjectType (Arg6) If ((TMP0 != OT06)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT06) } /* Types of LocalX are save, and data of LocalX and ArgX are identical */ TMP0 = ObjectType (Local0) If ((TMP0 != OT10)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT10) } Else { M481 (TS, 0x08, TMP0, Local0, Arg0) } TMP0 = ObjectType (Local1) If ((TMP0 != OT11)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT11) } Else { M481 (TS, 0x0A, TMP0, Local1, Arg1) } If (RES1) { TMP0 = ObjectType (Local2) If ((TMP0 != OT12)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT12) } Else { M481 (TS, 0x0C, TMP0, Local2, Arg2) } } TMP0 = ObjectType (Local3) If ((TMP0 != OT13)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT13) } Else { M481 (TS, 0x0E, TMP0, Local3, Arg3) } TMP0 = ObjectType (Local4) If ((TMP0 != OT14)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT14) } Else { M481 (TS, 0x10, TMP0, Local4, Arg4) } TMP0 = ObjectType (Local5) If ((TMP0 != OT15)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT15) } ElseIf (RES0) { M481 (TS, 0x12, TMP0, Local5, Arg5) } TMP0 = ObjectType (Local6) If ((TMP0 != OT16)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT16) } Else { M481 (TS, 0x14, TMP0, Local6, Arg6) } If (RES2) { If ((Local7 != Ones)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, Local7, Ones) } } ElseIf (RES0) { TMP0 = ObjectType (Local7) TMP1 = ObjectType (Arg5) If ((TMP0 != TMP1)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, TMP1) } Else { M481 (TS, 0x17, TMP0, Local7, Arg5) } } } /* if(chk0) */ If (PR01) { Debug = "===================== m480, Finish:" Debug = Arg0 Debug = Arg1 Debug = Arg2 Debug = Arg3 Debug = Arg4 Debug = Arg5 Debug = Arg6 If (CHK0) { Debug = "--------" Debug = Local0 Debug = Local1 Debug = Local2 Debug = Local3 Debug = Local4 Debug = Local5 Debug = Local6 Debug = Local7 } Debug = "=====================." } Return (Local7) } /* Compare the contents of arg3 and arg4, arg2 - the type of objects */ Method (M481, 5, Serialized) { Local0 = 0x00 Switch (ToInteger (Arg2)) { Case (0x01) { If ((Arg3 != Arg4)) { ERR (Arg0, Z082, __LINE__, 0x00, 0x00, Arg1, 0x00) Local0 = 0x01 } } Case (0x02) { If ((Arg3 != Arg4)) { ERR (Arg0, Z082, __LINE__, 0x00, 0x00, Arg1, 0x00) Local0 = 0x01 } } Case (0x03) { If ((Arg3 != Arg4)) { ERR (Arg0, Z082, __LINE__, 0x00, 0x00, Arg1, 0x00) Local0 = 0x01 } } } If (Local0) { Debug = Arg3 Debug = Arg4 } } /* Layer for checking referencies */ /* */ /* arg0-arg4 - parameters of operators */ /* arg5 - miscellaneous */ /* arg6 - opcode of operation */ Method (M482, 7, Serialized) { /*///////////////// */ /* */ /* !!!!!!!!!!!!!! ?????????????????????????????????????? */ /* */ /* Looks like a bug - why this construction is impossible: */ /* */ /* Name(OT11, ObjectType(arg0)) */ /* Name(a000, arg0) */ /*///////////////// */ Name (TS, "m482") Name (PK06, 0x00) Name (TMP0, 0x00) Name (OT00, 0x00) Name (OT01, 0x00) Name (OT02, 0x00) Name (OT03, 0x00) Name (OT04, 0x00) Name (OT05, 0x00) Name (OT06, 0x00) OT00 = ObjectType (Arg0) OT01 = ObjectType (Arg1) OT02 = ObjectType (Arg2) OT03 = ObjectType (Arg3) OT04 = ObjectType (Arg4) OT05 = ObjectType (Arg5) OT06 = ObjectType (Arg6) /* Operation */ OT06 = ObjectType (Arg6) If ((OT06 == 0x04)) { Local6 = DerefOf (Arg6 [0x00]) PK06 = 0x01 } Else { Local6 = Arg6 } Local0 = Arg0 Local1 = Arg1 Local2 = Arg2 Local3 = Arg3 Local4 = Arg4 Local5 = Arg5 /* Store(arg6, Local6) */ Local7 = Arg6 Name (OT10, 0x00) Name (OT11, 0x00) Name (OT12, 0x00) Name (OT13, 0x00) Name (OT14, 0x00) Name (OT15, 0x00) Name (OT16, 0x00) OT10 = ObjectType (Local0) OT11 = ObjectType (Local1) OT12 = ObjectType (Local2) OT13 = ObjectType (Local3) OT14 = ObjectType (Local4) OT15 = ObjectType (Local5) OT16 = ObjectType (Local6) Local7 = M480 (Local0, Local1, Local2, Local3, Local4, Local5, Local6) /* Types of ArgX are save */ TMP0 = ObjectType (Arg0) If ((TMP0 != OT00)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT00) } TMP0 = ObjectType (Arg1) If ((TMP0 != OT01)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT01) } TMP0 = ObjectType (Arg2) If ((TMP0 != OT02)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT02) } TMP0 = ObjectType (Arg3) If ((TMP0 != OT03)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT03) } TMP0 = ObjectType (Arg4) If ((TMP0 != OT04)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT04) } TMP0 = ObjectType (Arg5) If ((TMP0 != OT05)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT05) } TMP0 = ObjectType (Arg6) If ((TMP0 != OT06)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT06) } /* Types of LocalX are save, and data of LocalX and ArgX are identical */ TMP0 = ObjectType (Local0) If ((TMP0 != OT10)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT10) } Else { M481 (TS, 0x23, TMP0, Local0, Arg0) } TMP0 = ObjectType (Local1) If ((TMP0 != OT11)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT11) } Else { M481 (TS, 0x25, TMP0, Local1, Arg1) } TMP0 = ObjectType (Local2) If ((TMP0 != OT12)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT12) } Else { M481 (TS, 0x27, TMP0, Local2, Arg2) } TMP0 = ObjectType (Local3) If ((TMP0 != OT13)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT13) } Else { M481 (TS, 0x29, TMP0, Local3, Arg3) } TMP0 = ObjectType (Local4) If ((TMP0 != OT14)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT14) } Else { M481 (TS, 0x2B, TMP0, Local4, Arg4) } TMP0 = ObjectType (Local5) If ((TMP0 != OT15)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT15) } Else { M481 (TS, 0x2D, TMP0, Local5, Arg5) } TMP0 = ObjectType (Local6) If ((TMP0 != OT16)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, TMP0, OT16) } /* Package is passed by arg6 */ /* m481(ts, 47, tmp0, Local6, arg6) */ Else { } If (PK06) { /* SEE: either to remove this ability??????????????????? */ /* Presence of result */ Local0 = DerefOf (Arg6 [0x01]) If (Local0) { /* Type of result */ Local0 = DerefOf (Arg6 [0x02]) /* Result */ Local1 = DerefOf (Arg6 [0x03]) Local2 = ObjectType (Local7) Local3 = 0x00 If ((Local2 != Local0)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, 0x00, 0x00) Debug = "Expected type of result:" Debug = Local0 Debug = "The type of obtained result:" Debug = Local2 Local3 = 0x01 } ElseIf ((Local7 != Local1)) { ERR (TS, Z082, __LINE__, 0x00, 0x00, 0x00, 0x00) Local3 = 0x01 } If (Local3) { Debug = "Expected result:" Debug = Local1 Debug = "Actual result:" Debug = Local7 } } } Return (Local7) } acpica-unix-20250404/tests/aslts/src/runtime/common/mx_objects.asl0000700000175000017500000017056114773714160024430 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Mutex * * declarations for common use */ Name (MAX0, 0x10) /* Number of different Levels of mutexes */ Name (HLMX, 0x0F) /* Highest Level of mutex */ Name (MAX1, 0x12) /* Max number of mutexes of the same level */ Name (UNIM, 0x12) /* Undefined index of mutex */ Name (MAX2, Buffer (MAX0) { /* 0000 */ 0x12, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, // ........ /* 0008 */ 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04 // ........ }) /* * GLLL - Level of mutex for Global Lock. * GLIX - Index of mutex for Global Lock. * * The Global Lock in tests is represented as mutex of 0-th Level 1-th Index. */ Name (GLLL, 0x00) /* Level of mutex for GL */ Name (GLIX, 0x01) /* Index of mutex for GL */ /* * Flag of Global lock. * If non-zero then actually the Global lock is used in tests * instead of the usual mutex T001 (of level 0 index 1). */ Name (GL00, 0x00) Name (MIN0, 0x04) /* Minimal number of mutexes of the same level in groups below */ Name (MIN1, 0x05) /* Minimal number of threads corresponding to min0 */ /* * See TOV0 and TOV0 below, * all other opcodes of TimeOutValue correspond to 0xffff. */ Name (TOV0, 0x05) /* opcode of TimeOutValue corresponding to 0 milliseconds */ Name (TOV1, 0x06) /* opcode of TimeOutValue corresponding to 1 milliseconds */ Name (TOVF, 0x00) /* opcode of TimeOutValue corresponding to 0xffff (endless) */ /* Level 0 */ Mutex (T000, 0x00) Mutex (T001, 0x00) /* used in case when the flag of the Global Lock (GL00) is zero */ Mutex (T002, 0x00) Mutex (T003, 0x00) Mutex (T004, 0x00) Mutex (T005, 0x00) Mutex (T006, 0x00) Mutex (T007, 0x00) Mutex (T008, 0x00) Mutex (T009, 0x00) Mutex (T00A, 0x00) Mutex (T00B, 0x00) Mutex (T00C, 0x00) Mutex (T00D, 0x00) Mutex (T00E, 0x00) Mutex (T00F, 0x00) Mutex (T010, 0x00) Mutex (T011, 0x00) /* Level 1 */ Mutex (T100, 0x01) Mutex (T101, 0x01) Mutex (T102, 0x01) Mutex (T103, 0x01) /* Level 2 */ Mutex (T200, 0x02) Mutex (T201, 0x02) Mutex (T202, 0x02) Mutex (T203, 0x02) /* Level 3 */ Mutex (T300, 0x03) Mutex (T301, 0x03) Mutex (T302, 0x03) Mutex (T303, 0x03) /* Level 4 */ Mutex (T400, 0x04) Mutex (T401, 0x04) Mutex (T402, 0x04) Mutex (T403, 0x04) /* Level 5 */ Mutex (T500, 0x05) Mutex (T501, 0x05) Mutex (T502, 0x05) Mutex (T503, 0x05) /* Level 6 */ Mutex (T600, 0x06) Mutex (T601, 0x06) Mutex (T602, 0x06) Mutex (T603, 0x06) /* Level 7 */ Mutex (T700, 0x07) Mutex (T701, 0x07) Mutex (T702, 0x07) Mutex (T703, 0x07) /* Level 8 */ Mutex (T800, 0x08) Mutex (T801, 0x08) Mutex (T802, 0x08) Mutex (T803, 0x08) Mutex (T804, 0x08) /* used in functional/synchronization */ Mutex (T805, 0x08) /* used in functional/synchronization */ /* Level 9 */ Mutex (T900, 0x09) Mutex (T901, 0x09) Mutex (T902, 0x09) Mutex (T903, 0x09) /* Level 10 */ Mutex (TA00, 0x0A) Mutex (TA01, 0x0A) Mutex (TA02, 0x0A) Mutex (TA03, 0x0A) /* Level 11 */ Mutex (TB00, 0x0B) Mutex (TB01, 0x0B) Mutex (TB02, 0x0B) Mutex (TB03, 0x0B) /* Level 12 */ Mutex (TC00, 0x0C) Mutex (TC01, 0x0C) Mutex (TC02, 0x0C) Mutex (TC03, 0x0C) /* Level 13 */ Mutex (TD00, 0x0D) Mutex (TD01, 0x0D) Mutex (TD02, 0x0D) Mutex (TD03, 0x0D) /* Level 14 */ Mutex (TE00, 0x0E) Mutex (TE01, 0x0E) Mutex (TE02, 0x0E) Mutex (TE03, 0x0E) /* Level 15 */ Mutex (TF00, 0x0F) Mutex (TF01, 0x0F) Mutex (TF02, 0x0F) Mutex (TF03, 0x0F) /* * * Methods to manage mutexes declared above * */ /* * Set flag of Global lock * * arg0 - new value of flag of GL * * Return: * old value of flag of GL */ Method (M078, 1, NotSerialized) { Local7 = GL00 /* \GL00 */ GL00 = Arg0 Return (Local7) } /* * Acquire mutex of level 0 * * arg0 - Index of mutex * arg1 - opcode of exception to be generated or zero * arg2 - opcode of TimeOutValue (unfortunately, ACPA doesn't allow TermArg there) * 0 - 0 * 1 - 1 * otherwise - oxffff */ Method (MA00, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T000, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T000, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T000, 0x0001) } Else { Local0 = Acquire (T000, 0xFFFF) } } Case (0x01) { If (GL00) { If (Arg1) { Acquire (\_GL, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (\_GL, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (\_GL, 0x0001) } Else { Local0 = Acquire (\_GL, 0xFFFF) } } ElseIf (Arg1) { Acquire (T001, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T001, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T001, 0x0001) } Else { Local0 = Acquire (T001, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T002, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T002, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T002, 0x0001) } Else { Local0 = Acquire (T002, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T003, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T003, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T003, 0x0001) } Else { Local0 = Acquire (T003, 0xFFFF) } } Case (0x04) { If (Arg1) { Acquire (T004, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T004, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T004, 0x0001) } Else { Local0 = Acquire (T004, 0xFFFF) } } Case (0x05) { If (Arg1) { Acquire (T005, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T005, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T005, 0x0001) } Else { Local0 = Acquire (T005, 0xFFFF) } } Case (0x06) { If (Arg1) { Acquire (T006, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T006, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T006, 0x0001) } Else { Local0 = Acquire (T006, 0xFFFF) } } Case (0x07) { If (Arg1) { Acquire (T007, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T007, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T007, 0x0001) } Else { Local0 = Acquire (T007, 0xFFFF) } } Case (0x08) { If (Arg1) { Acquire (T008, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T008, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T008, 0x0001) } Else { Local0 = Acquire (T008, 0xFFFF) } } Case (0x09) { If (Arg1) { Acquire (T009, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T009, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T009, 0x0001) } Else { Local0 = Acquire (T009, 0xFFFF) } } Case (0x0A) { If (Arg1) { Acquire (T00A, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T00A, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T00A, 0x0001) } Else { Local0 = Acquire (T00A, 0xFFFF) } } Case (0x0B) { If (Arg1) { Acquire (T00B, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T00B, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T00B, 0x0001) } Else { Local0 = Acquire (T00B, 0xFFFF) } } Case (0x0C) { If (Arg1) { Acquire (T00C, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T00C, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T00C, 0x0001) } Else { Local0 = Acquire (T00C, 0xFFFF) } } Case (0x0D) { If (Arg1) { Acquire (T00D, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T00D, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T00D, 0x0001) } Else { Local0 = Acquire (T00D, 0xFFFF) } } Case (0x0E) { If (Arg1) { Acquire (T00E, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T00E, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T00E, 0x0001) } Else { Local0 = Acquire (T00E, 0xFFFF) } } Case (0x0F) { If (Arg1) { Acquire (T00F, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T00F, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T00F, 0x0001) } Else { Local0 = Acquire (T00F, 0xFFFF) } } Case (0x10) { If (Arg1) { Acquire (T010, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T010, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T010, 0x0001) } Else { Local0 = Acquire (T010, 0xFFFF) } } Case (0x11) { If (Arg1) { Acquire (T011, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T011, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T011, 0x0001) } Else { Local0 = Acquire (T011, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 1 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA01, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T100, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T100, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T100, 0x0001) } Else { Local0 = Acquire (T100, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (T101, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T101, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T101, 0x0001) } Else { Local0 = Acquire (T101, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T102, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T102, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T102, 0x0001) } Else { Local0 = Acquire (T102, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T103, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T103, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T103, 0x0001) } Else { Local0 = Acquire (T103, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 2 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA02, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T200, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T200, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T200, 0x0001) } Else { Local0 = Acquire (T200, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (T201, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T201, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T201, 0x0001) } Else { Local0 = Acquire (T201, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T202, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T202, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T202, 0x0001) } Else { Local0 = Acquire (T202, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T203, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T203, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T203, 0x0001) } Else { Local0 = Acquire (T203, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 3 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA03, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T300, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T300, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T300, 0x0001) } Else { Local0 = Acquire (T300, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (T301, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T301, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T301, 0x0001) } Else { Local0 = Acquire (T301, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T302, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T302, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T302, 0x0001) } Else { Local0 = Acquire (T302, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T303, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T303, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T303, 0x0001) } Else { Local0 = Acquire (T303, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 4 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA04, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T400, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T400, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T400, 0x0001) } Else { Local0 = Acquire (T400, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (T401, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T401, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T401, 0x0001) } Else { Local0 = Acquire (T401, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T402, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T402, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T402, 0x0001) } Else { Local0 = Acquire (T402, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T403, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T403, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T403, 0x0001) } Else { Local0 = Acquire (T403, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 5 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA05, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T500, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T500, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T500, 0x0001) } Else { Local0 = Acquire (T500, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (T501, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T501, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T501, 0x0001) } Else { Local0 = Acquire (T501, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T502, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T502, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T502, 0x0001) } Else { Local0 = Acquire (T502, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T503, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T503, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T503, 0x0001) } Else { Local0 = Acquire (T503, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 6 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA06, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T600, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T600, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T600, 0x0001) } Else { Local0 = Acquire (T600, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (T601, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T601, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T601, 0x0001) } Else { Local0 = Acquire (T601, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T602, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T602, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T602, 0x0001) } Else { Local0 = Acquire (T602, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T603, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T603, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T603, 0x0001) } Else { Local0 = Acquire (T603, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 7 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA07, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T700, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T700, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T700, 0x0001) } Else { Local0 = Acquire (T700, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (T701, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T701, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T701, 0x0001) } Else { Local0 = Acquire (T701, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T702, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T702, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T702, 0x0001) } Else { Local0 = Acquire (T702, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T703, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T703, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T703, 0x0001) } Else { Local0 = Acquire (T703, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 8 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA08, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T800, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T800, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T800, 0x0001) } Else { Local0 = Acquire (T800, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (T801, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T801, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T801, 0x0001) } Else { Local0 = Acquire (T801, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T802, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T802, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T802, 0x0001) } Else { Local0 = Acquire (T802, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T803, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T803, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T803, 0x0001) } Else { Local0 = Acquire (T803, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 9 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA09, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (T900, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T900, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T900, 0x0001) } Else { Local0 = Acquire (T900, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (T901, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T901, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T901, 0x0001) } Else { Local0 = Acquire (T901, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (T902, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T902, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T902, 0x0001) } Else { Local0 = Acquire (T902, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (T903, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (T903, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (T903, 0x0001) } Else { Local0 = Acquire (T903, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 10 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA0A, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (TA00, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TA00, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TA00, 0x0001) } Else { Local0 = Acquire (TA00, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (TA01, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TA01, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TA01, 0x0001) } Else { Local0 = Acquire (TA01, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (TA02, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TA02, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TA02, 0x0001) } Else { Local0 = Acquire (TA02, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (TA03, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TA03, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TA03, 0x0001) } Else { Local0 = Acquire (TA03, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 11 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA0B, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (TB00, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TB00, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TB00, 0x0001) } Else { Local0 = Acquire (TB00, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (TB01, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TB01, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TB01, 0x0001) } Else { Local0 = Acquire (TB01, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (TB02, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TB02, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TB02, 0x0001) } Else { Local0 = Acquire (TB02, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (TB03, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TB03, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TB03, 0x0001) } Else { Local0 = Acquire (TB03, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 12 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA0C, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (TC00, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TC00, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TC00, 0x0001) } Else { Local0 = Acquire (TC00, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (TC01, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TC01, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TC01, 0x0001) } Else { Local0 = Acquire (TC01, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (TC02, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TC02, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TC02, 0x0001) } Else { Local0 = Acquire (TC02, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (TC03, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TC03, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TC03, 0x0001) } Else { Local0 = Acquire (TC03, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 13 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA0D, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (TD00, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TD00, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TD00, 0x0001) } Else { Local0 = Acquire (TD00, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (TD01, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TD01, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TD01, 0x0001) } Else { Local0 = Acquire (TD01, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (TD02, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TD02, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TD02, 0x0001) } Else { Local0 = Acquire (TD02, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (TD03, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TD03, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TD03, 0x0001) } Else { Local0 = Acquire (TD03, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 14 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA0E, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (TE00, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TE00, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TE00, 0x0001) } Else { Local0 = Acquire (TE00, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (TE01, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TE01, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TE01, 0x0001) } Else { Local0 = Acquire (TE01, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (TE02, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TE02, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TE02, 0x0001) } Else { Local0 = Acquire (TE02, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (TE03, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TE03, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TE03, 0x0001) } Else { Local0 = Acquire (TE03, 0xFFFF) } } } Return (Local0) } /* * Acquire mutex of level 15 * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue) */ Method (MA0F, 3, Serialized) { Local0 = 0x01 Switch (ToInteger (Arg0)) { Case (0x00) { If (Arg1) { Acquire (TF00, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TF00, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TF00, 0x0001) } Else { Local0 = Acquire (TF00, 0xFFFF) } } Case (0x01) { If (Arg1) { Acquire (TF01, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TF01, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TF01, 0x0001) } Else { Local0 = Acquire (TF01, 0xFFFF) } } Case (0x02) { If (Arg1) { Acquire (TF02, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TF02, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TF02, 0x0001) } Else { Local0 = Acquire (TF02, 0xFFFF) } } Case (0x03) { If (Arg1) { Acquire (TF03, 0xFFFF) } ElseIf ((Arg2 == TOV0)) { Local0 = Acquire (TF03, 0x0000) } ElseIf ((Arg2 == TOV1)) { Local0 = Acquire (TF03, 0x0001) } Else { Local0 = Acquire (TF03, 0xFFFF) } } } Return (Local0) } /* * Release mutex of level 0 * * arg0 - Index of mutex */ Method (MA10, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T000) } Case (0x01) { If (GL00) { Release (\_GL) } Else { Release (T001) } } Case (0x02) { Release (T002) } Case (0x03) { Release (T003) } Case (0x04) { Release (T004) } Case (0x05) { Release (T005) } Case (0x06) { Release (T006) } Case (0x07) { Release (T007) } Case (0x08) { Release (T008) } Case (0x09) { Release (T009) } Case (0x0A) { Release (T00A) } Case (0x0B) { Release (T00B) } Case (0x0C) { Release (T00C) } Case (0x0D) { Release (T00D) } Case (0x0E) { Release (T00E) } Case (0x0F) { Release (T00F) } Case (0x10) { Release (T010) } Case (0x11) { Release (T011) } } } /* * Release mutex of level 1 (Index of mux) */ Method (MA11, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T100) } Case (0x01) { Release (T101) } Case (0x02) { Release (T102) } Case (0x03) { Release (T103) } } } /* * Release mutex of level 2 (Index of mux) */ Method (MA12, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T200) } Case (0x01) { Release (T201) } Case (0x02) { Release (T202) } Case (0x03) { Release (T203) } } } /* * Release mutex of level 3 (Index of mux) */ Method (MA13, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T300) } Case (0x01) { Release (T301) } Case (0x02) { Release (T302) } Case (0x03) { Release (T303) } } } /* * Release mutex of level 4 (Index of mux) */ Method (MA14, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T400) } Case (0x01) { Release (T401) } Case (0x02) { Release (T402) } Case (0x03) { Release (T403) } } } /* * Release mutex of level 5 (Index of mux) */ Method (MA15, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T500) } Case (0x01) { Release (T501) } Case (0x02) { Release (T502) } Case (0x03) { Release (T503) } } } /* * Release mutex of level 6 (Index of mux) */ Method (MA16, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T600) } Case (0x01) { Release (T601) } Case (0x02) { Release (T602) } Case (0x03) { Release (T603) } } } /* * Release mutex of level 7 (Index of mux) */ Method (MA17, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T700) } Case (0x01) { Release (T701) } Case (0x02) { Release (T702) } Case (0x03) { Release (T703) } } } /* * Release mutex of level 8 (Index of mux) */ Method (MA18, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T800) } Case (0x01) { Release (T801) } Case (0x02) { Release (T802) } Case (0x03) { Release (T803) } } } /* * Release mutex of level 9 (Index of mux) */ Method (MA19, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (T900) } Case (0x01) { Release (T901) } Case (0x02) { Release (T902) } Case (0x03) { Release (T903) } } } /* * Release mutex of level 10 (Index of mux) */ Method (MA1A, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (TA00) } Case (0x01) { Release (TA01) } Case (0x02) { Release (TA02) } Case (0x03) { Release (TA03) } } } /* * Release mutex of level 11 (Index of mux) */ Method (MA1B, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (TB00) } Case (0x01) { Release (TB01) } Case (0x02) { Release (TB02) } Case (0x03) { Release (TB03) } } } /* * Release mutex of level 12 (Index of mux) */ Method (MA1C, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (TC00) } Case (0x01) { Release (TC01) } Case (0x02) { Release (TC02) } Case (0x03) { Release (TC03) } } } /* * Release mutex of level 13 (Index of mux) */ Method (MA1D, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (TD00) } Case (0x01) { Release (TD01) } Case (0x02) { Release (TD02) } Case (0x03) { Release (TD03) } } } /* * Release mutex of level 14 (Index of mux) */ Method (MA1E, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (TE00) } Case (0x01) { Release (TE01) } Case (0x02) { Release (TE02) } Case (0x03) { Release (TE03) } } } /* * Release mutex of level 15 (Index of mux) */ Method (MA1F, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { Release (TF00) } Case (0x01) { Release (TF01) } Case (0x02) { Release (TF02) } Case (0x03) { Release (TF03) } } } /* * Get name of mutex * * arg0 - string * arg1 - Level of mutex * arg2 - Index of mutex */ Method (M21E, 3, NotSerialized) { Concatenate (Arg0, "Level ", Local0) Concatenate (Local0, Arg1, Local1) Concatenate (Local1, ", Index ", Local0) Concatenate (Local0, Arg2, Local1) If ((Arg1 == GLLL)) { If ((Arg2 == GLIX)) { If (GL00) { Concatenate (Local1, " (Global lock)", Local1) } } } Return (Local1) } acpica-unix-20250404/tests/aslts/src/runtime/common/conversion/0000700000175000017500000000000014773714160023742 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/common/conversion/rtest.asl0000700000175000017500000015532114773714160025616 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ============================ !!!!!!!!!!!!!!!!!!!!!!!!!!!! IT IS IN PROGRESS !!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!! ============================ */ /* Implicit Result Object Conversion, complex test */ Name (Z067, 0x43) /* Integers */ Name (II00, 0x00) Name (II10, 0x00) /* Strings */ Name (SS00, "") Name (SS10, "!@#$%^&*()_+=-[]{}") /* Buffers */ Name (BB00, Buffer (0x01){}) Name (BB80, Buffer (0x01){}) /* Inside 32-bit Integer */ Name (BB01, Buffer (0x03){}) Name (BB81, Buffer (0x03){}) /* 32-bit Integer */ Name (BB02, Buffer (0x04){}) Name (BB82, Buffer (0x04){}) /* Inside 64-bit Integer */ Name (BB03, Buffer (0x05){}) Name (BB83, Buffer (0x05){}) /* Inside 64-bit Integer */ Name (BB04, Buffer (0x08){}) Name (BB84, Buffer (0x08){}) /* Size exceeding result */ Name (BB05, Buffer (0x14){}) Name (BB85, Buffer (0x14){}) /* Buffer Fields */ Name (BBFF, Buffer (0xA0){}) CreateField (BBFF, 0x05, 0x1B, BF00) CreateField (BBFF, 0x20, 0x2F, BF01) CreateField (BBFF, 0x4F, 0x1B, BF10) CreateField (BBFF, 0x6A, 0x2F, BF11) /* Incomplete last byte */ CreateField (BBFF, 0x99, 0x6F, BF02) CreateField (BBFF, 0x0108, 0x6F, BF12) /* Incomplete extra byte */ CreateField (BBFF, 0x0177, 0x77, BF03) CreateField (BBFF, 0x01EE, 0x77, BF13) /* Size exceeding result */ CreateField (BBFF, 0x028E, 0xA0, BF04) CreateField (BBFF, 0x032E, 0xA0, BF14) /* 32-bit Integer */ CreateField (BBFF, 0x03CE, 0x20, BF05) CreateField (BBFF, 0x03EE, 0x20, BF15) /* 64-bit Integer */ CreateField (BBFF, 0x040E, 0x40, BF06) CreateField (BBFF, 0x044E, 0x40, BF16) /* Set all bytes of Buffer bbff to 0xff */ Method (M565, 0, Serialized) { Name (LPN0, 0xA0) Name (LPC0, 0x00) While (LPN0) { BBFF [LPC0] = 0xFF LPN0-- LPC0++ } } /* Acquire (mux, wrd) => Boolean */ Method (M500, 1, Serialized) { Name (TS, "m500") TS00 (TS) Mutex (MT00, 0x00) Name (B000, Buffer (0x01) { 0x00 // . }) II10 = Acquire (MT00, 0x0000) M4C0 (TS, II10, Zero, Zero) SS10 = Acquire (MT00, 0x0010) M4C0 (TS, SS10, "0000000000000000", "00000000") BB80 = Acquire (MT00, 0x0020) M4C0 (TS, BB80, B000, B000) } /* Add (int, int, Result) => Integer */ Method (M501, 1, Serialized) { Name (TS, "m501") TS00 (TS) Name (B000, Buffer (0x01) { 0x63 // c }) Name (B001, Buffer (0x01) { 0x63 // c }) Name (B002, Buffer (0x10) { /* 0000 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, // ........ /* 0008 */ 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F // ........ }) Name (B003, Buffer (0x10) { /* 0000 */ 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, // !"#$%&' /* 0008 */ 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F // ()*+,-./ }) Name (B004, Buffer (0x10) { /* 0000 */ 0x63, 0xF4, 0x9C, 0x52, 0x13, 0xCF, 0x8A, 0x00, // c..R.... /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }) Name (B005, Buffer (0x10) { /* 0000 */ 0x63, 0xF4, 0x9C, 0x52, 0x00, 0x00, 0x00, 0x00, // c..R.... /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }) /* Integers */ II10 = II00 = (0x00123456789ABCDA + 0x00789ABCDA023789) M4C0 (TS, II00, 0x008ACF13529CF463, 0x529CF463) M4C0 (TS, II10, 0x008ACF13529CF463, 0x529CF463) /* Strings */ SS10 = SS00 = (0x00123456789ABCDA + 0x00789ABCDA023789) M4C0 (TS, SS00, "008ACF13529CF463", "529CF463") M4C0 (TS, SS10, "008ACF13529CF463", "529CF463") /* Buffers smaller than result */ BB80 = BB00 = (0x00123456789ABCDA + 0x00789ABCDA023789) M4C0 (TS, BB00, B000, B001) M4C0 (TS, BB80, B000, B001) /* Buffers greater than result */ B003 = B002 = (0x00123456789ABCDA + 0x00789ABCDA023789) M4C0 (TS, B002, B004, B005) M4C0 (TS, B003, B004, B005) /* Set fields (their source buffer) to zero */ /* Store(bbff, Debug) */ M565 () BF10 = BF00 = (0x00123456789ABCDA + 0x00789ABCDA023789) M4C0 (TS, BF00, B004, B005) M4C0 (TS, BF10, B004, B005) /* !!! check the contents of bbff !!!!!!!!! */ /* Store(bbff, Debug) */ } /* And (int, int, Result) => Integer */ Method (M502, 1, Serialized) { Name (TS, "m502") TS00 (TS) } /* Concatenate ({int|str|buf}, {int|str|buf}, Result) => ComputationalData */ Method (M503, 1, NotSerialized) { M563 () M564 () } Method (M563, 0, Serialized) { Name (TS, "m503,s+s") /* s+s -->> s -->> all combinations of Result and ComputationalData */ /* Result 64-bit, 32-bit, ComputationalData 64-bit, 32-bit */ Name (P000, Package (0xAC) { /* ============= With Result */ 0x00ABCDEF12345678, 0x12345678, 0x00ABCDEF12345678, 0x12345678, 0x00ABCDEF12345678, 0x12345678, "abcdef12345678", "abcdef12345678", 0x00ABCDEF12345678, 0x12345678, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x00ABCDEF12345678, 0x12345678, 0x04636261, 0x04636261, 0x00ABCDEF12345678, 0x12345678, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, "abcdef12345678", "abcdef12345678", 0x00ABCDEF12345678, 0x12345678, "abcdef12345678", "abcdef12345678", "abcdef12345678", "abcdef12345678", "abcdef12345678", "abcdef12345678", Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, "abcdef12345678", "abcdef12345678", 0x04636261, 0x04636261, "abcdef12345678", "abcdef12345678", 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x00ABCDEF12345678, 0x12345678, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, "abcdef12345678", "abcdef12345678", Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x04636261, 0x04636261, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x04636261, 0x04636261, 0x00ABCDEF12345678, 0x12345678, 0x04636261, 0x04636261, "abcdef12345678", "abcdef12345678", 0x04636261, 0x04636261, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x04636261, 0x04636261, 0x04636261, 0x04636261, 0x04636261, 0x04636261, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x00ABCDEF12345678, 0x12345678, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, "abcdef12345678", "abcdef12345678", 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x04636261, 0x04636261, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, /* ============= Result omitted */ 0x00, 0x00, 0x00ABCDEF12345678, 0x12345678, 0x00, 0x00, "abcdef12345678", "abcdef12345678", 0x00, 0x00, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x00, 0x00, 0x04636261, 0x04636261, 0x00, 0x00, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, /* ============= Store omitted */ 0x00ABCDEF12345678, 0x12345678, 0x00, 0x00, "abcdef12345678", "abcdef12345678", 0x00, 0x00, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x00, 0x00, 0x04636261, 0x04636261, 0x00, 0x00, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x00, 0x00, /* ============= Particular additional cases */ Buffer (0x0E) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38 // 345678 }, Buffer (0x0E) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38 // 345678 }, Buffer (0x0E) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38 // 345678 }, Buffer (0x0E) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38 // 345678 }, Buffer (0x0F) { "abcdef12345678" }, Buffer (0x0F) { "abcdef12345678" }, Buffer (0x0F) { "abcdef12345678" }, Buffer (0x0F) { "abcdef12345678" }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x03) { 0x61, 0x62, 0x63 // abc }, Buffer (0x03) { 0x61, 0x62, 0x63 // abc }, Buffer (0x03) { 0x61, 0x62, 0x63 // abc }, Buffer (0x03) { 0x61, 0x62, 0x63 // abc }, Buffer (0x04) { 0x61, 0x62, 0x63, 0x64 // abcd }, Buffer (0x04) { 0x61, 0x62, 0x63, 0x64 // abcd }, Buffer (0x04) { 0x61, 0x62, 0x63, 0x64 // abcd }, Buffer (0x04) { 0x61, 0x62, 0x63, 0x64 // abcd }, Buffer (0x05) { 0x61, 0x62, 0x63, 0x64, 0x65 // abcde }, Buffer (0x05) { 0x61, 0x62, 0x63, 0x64, 0x65 // abcde }, Buffer (0x05) { 0x61, 0x62, 0x63, 0x64, 0x65 // abcde }, Buffer (0x05) { 0x61, 0x62, 0x63, 0x64, 0x65 // abcde }, Buffer (0x08) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32 // abcdef12 }, Buffer (0x08) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32 // abcdef12 }, Buffer (0x08) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32 // abcdef12 }, Buffer (0x08) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32 // abcdef12 }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... } }) Local0 = "abcdef" Local1 = "12345678" M562 (TS, Local0, Local1, P000) /* Source values are not corrupted */ Local2 = ObjectType (Local0) If ((Local2 != 0x02)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local2, 0x02) } ElseIf ((Local0 != "abcdef")) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local0, "abcdef") } Local2 = ObjectType (Local1) If ((Local2 != 0x02)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local2, 0x02) } ElseIf ((Local1 != "12345678")) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local1, "12345678") } } Method (M564, 0, Serialized) { Name (TS, "m503,b+b") /* b+b -->> b -->> all combinations of Result and ComputationalData */ /* Result 64-bit, 32-bit, ComputationalData 64-bit, 32-bit */ Name (P000, Package (0xAC) { /* ============= With Result */ /* i,i */ 0x3231666564636261, 0x64636261, 0x3231666564636261, 0x64636261, /* i,s */ 0x3231666564636261, 0x64636261, "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", /* i,b */ 0x3231666564636261, 0x64636261, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, /* i,bf(i,i) */ 0x3231666564636261, 0x64636261, 0x04636261, 0x04636261, /* i,bf(i,b) */ 0x3231666564636261, 0x64636261, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, /* s,i */ "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", 0x3231666564636261, 0x64636261, /* s,s */ "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", /* s,b */ "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, /* s,bf(i,i) */ "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", 0x04636261, 0x04636261, /* s,bf(i,b) */ "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, /* b,i */ Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x3231666564636261, 0x64636261, /* b,s */ Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", /* b,b */ Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, /* b,bf(i,i) */ Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x04636261, 0x04636261, /* b,bf(i,b) */ Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, /* bf(i,i),i */ 0x04636261, 0x04636261, 0x3231666564636261, 0x64636261, /* bf(i,i),s */ 0x04636261, 0x04636261, "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", /* bf(i,i),b */ 0x04636261, 0x04636261, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, /* bf(i,i),bf(i,i) */ 0x04636261, 0x04636261, 0x04636261, 0x04636261, /* bf(i,i),bf(i,b) */ 0x04636261, 0x04636261, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, /* bf(i,b),i */ 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x3231666564636261, 0x64636261, /* bf(i,b),s */ 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", /* bf(i,b),b */ 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, /* bf(i,b),bf(i,i) */ 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x04636261, 0x04636261, /* bf(i,b),bf(i,b) */ 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, /* ============= Result omitted */ /* ,i */ 0x00, 0x00, 0x3231666564636261, 0x64636261, /* ,s */ 0x00, 0x00, "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", /* ,b */ 0x00, 0x00, Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, /* ,bf(i,i) */ 0x00, 0x00, 0x04636261, 0x04636261, /* b,bf(i,b) */ 0x00, 0x00, 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, /* ============= Store omitted */ /* i, */ 0x3231666564636261, 0x64636261, 0x00, 0x00, /* s, */ "61 62 63 64 65 66 31 32 33 34 35 36 37 38", "61 62 63 64 65 66 31 32 33 34 35 36 37 38", 0x00, 0x00, /* b, */ Buffer (0x01) { 0x61 // a }, Buffer (0x01) { 0x61 // a }, 0x00, 0x00, /* bf(i,i), */ 0x04636261, 0x04636261, 0x00, 0x00, /* bf(i,b), */ 0x0000666564636261, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }, 0x00, 0x00, /* ============= Particular additional cases */ /* Buffer Field, incomplete last byte */ Buffer (0x0E) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38 // 345678 }, Buffer (0x0E) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38 // 345678 }, Buffer (0x0E) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38 // 345678 }, Buffer (0x0E) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38 // 345678 }, /* Buffer Field, incomplete extra byte */ Buffer (0x0F) { "abcdef12345678" }, Buffer (0x0F) { "abcdef12345678" }, Buffer (0x0F) { "abcdef12345678" }, Buffer (0x0F) { "abcdef12345678" }, /* Buffer Field, size exceeding result */ Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, /* Buffer, inside 32-bit Integer */ Buffer (0x03) { 0x61, 0x62, 0x63 // abc }, Buffer (0x03) { 0x61, 0x62, 0x63 // abc }, Buffer (0x03) { 0x61, 0x62, 0x63 // abc }, Buffer (0x03) { 0x61, 0x62, 0x63 // abc }, /* Buffer, 32-bit Integer */ Buffer (0x04) { 0x61, 0x62, 0x63, 0x64 // abcd }, Buffer (0x04) { 0x61, 0x62, 0x63, 0x64 // abcd }, Buffer (0x04) { 0x61, 0x62, 0x63, 0x64 // abcd }, Buffer (0x04) { 0x61, 0x62, 0x63, 0x64 // abcd }, /* Buffer, inside 64-bit Integer */ Buffer (0x05) { 0x61, 0x62, 0x63, 0x64, 0x65 // abcde }, Buffer (0x05) { 0x61, 0x62, 0x63, 0x64, 0x65 // abcde }, Buffer (0x05) { 0x61, 0x62, 0x63, 0x64, 0x65 // abcde }, Buffer (0x05) { 0x61, 0x62, 0x63, 0x64, 0x65 // abcde }, /* Buffer, 64-bit Integer */ Buffer (0x08) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32 // abcdef12 }, Buffer (0x08) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32 // abcdef12 }, Buffer (0x08) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32 // abcdef12 }, Buffer (0x08) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32 // abcdef12 }, /* Buffer, size exceeding result */ Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... }, Buffer (0x14) { /* 0000 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x31, 0x32, // abcdef12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x00, 0x00, // 345678.. /* 0010 */ 0x00, 0x00, 0x00, 0x00 // .... } }) Name (B000, Buffer (0x06) { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 // abcdef }) Name (B001, Buffer (0x08) { 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38 // 12345678 }) Local0 = B000 /* \M564.B000 */ Local1 = B001 /* \M564.B001 */ M562 (TS, Local0, Local1, P000) /* Source values are not corrupted */ Local2 = ObjectType (Local0) If ((Local2 != 0x03)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local2, 0x03) } ElseIf ((Local0 != B000)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local0, B000) } Local2 = ObjectType (Local1) If ((Local2 != 0x03)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local2, 0x03) } ElseIf ((Local1 != B001)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local1, B001) } } /* arg0 - name of test */ /* arg1 - Source1 */ /* arg2 - Source2 */ /* arg3 - results */ Method (M562, 4, NotSerialized) { TS00 (Arg0) /* ============= With Result */ /* ii,is,ib,ibf */ /* si,ss,sb,sbf */ /* bi,bs,bb,bbf */ /* bfi,bfs,bfb,bfbf */ /* i,i */ II10 = Concatenate (Arg1, Arg2, II00) /* \II00 */ M4C1 (Arg0, Arg3, 0x00, 0x01, 0x01, II00, II10) /* i,s */ SS10 = Concatenate (Arg1, Arg2, II00) /* \II00 */ M4C1 (Arg0, Arg3, 0x01, 0x01, 0x01, II00, SS10) /* i,b */ BB80 = Concatenate (Arg1, Arg2, II00) /* \II00 */ M4C1 (Arg0, Arg3, 0x02, 0x01, 0x01, II00, BB80) /* i,bf(i,i) */ BF10 = Concatenate (Arg1, Arg2, II00) /* \II00 */ M4C1 (Arg0, Arg3, 0x03, 0x01, 0x01, II00, BF10) /* i,bf(i,b) */ BF11 = Concatenate (Arg1, Arg2, II00) /* \II00 */ M4C1 (Arg0, Arg3, 0x04, 0x01, 0x01, II00, BF11) /* s,i */ II10 = Concatenate (Arg1, Arg2, SS00) /* \SS00 */ M4C1 (Arg0, Arg3, 0x05, 0x01, 0x01, SS00, II10) /* s,s */ SS10 = Concatenate (Arg1, Arg2, SS00) /* \SS00 */ M4C1 (Arg0, Arg3, 0x06, 0x01, 0x01, SS00, SS10) /* s,b */ BB80 = Concatenate (Arg1, Arg2, SS00) /* \SS00 */ M4C1 (Arg0, Arg3, 0x07, 0x01, 0x01, SS00, BB80) /* s,bf(i,i) */ BF10 = Concatenate (Arg1, Arg2, SS00) /* \SS00 */ M4C1 (Arg0, Arg3, 0x08, 0x01, 0x01, SS00, BF10) /* s,bf(i,b) */ BF11 = Concatenate (Arg1, Arg2, SS00) /* \SS00 */ M4C1 (Arg0, Arg3, 0x09, 0x01, 0x01, SS00, BF11) /* b,i */ II10 = Concatenate (Arg1, Arg2, BB00) /* \BB00 */ M4C1 (Arg0, Arg3, 0x0A, 0x01, 0x01, BB00, II10) /* b,s */ SS10 = Concatenate (Arg1, Arg2, BB00) /* \BB00 */ M4C1 (Arg0, Arg3, 0x0B, 0x01, 0x01, BB00, SS10) /* b,b */ BB80 = Concatenate (Arg1, Arg2, BB00) /* \BB00 */ M4C1 (Arg0, Arg3, 0x0C, 0x01, 0x01, BB00, BB80) /* b,bf(i,i) */ BF10 = Concatenate (Arg1, Arg2, BB00) /* \BB00 */ M4C1 (Arg0, Arg3, 0x0D, 0x01, 0x01, BB00, BF10) /* b,bf(i,b) */ BF11 = Concatenate (Arg1, Arg2, BB00) /* \BB00 */ M4C1 (Arg0, Arg3, 0x0E, 0x01, 0x01, BB00, BF11) /* bf(i,i),i */ II10 = Concatenate (Arg1, Arg2, BF00) /* \BF00 */ M4C1 (Arg0, Arg3, 0x0F, 0x01, 0x01, BF00, II10) /* bf(i,i),s */ SS10 = Concatenate (Arg1, Arg2, BF00) /* \BF00 */ M4C1 (Arg0, Arg3, 0x10, 0x01, 0x01, BF00, SS10) /* bf(i,i),b */ BB80 = Concatenate (Arg1, Arg2, BF00) /* \BF00 */ M4C1 (Arg0, Arg3, 0x11, 0x01, 0x01, BF00, BB80) /* bf(i,i),bf(i,i) */ BF10 = Concatenate (Arg1, Arg2, BF00) /* \BF00 */ M4C1 (Arg0, Arg3, 0x12, 0x01, 0x01, BF00, BF10) /* bf(i,i),bf(i,b) */ BF11 = Concatenate (Arg1, Arg2, BF00) /* \BF00 */ M4C1 (Arg0, Arg3, 0x13, 0x01, 0x01, BF00, BF11) /* bf(i,b),i */ II10 = Concatenate (Arg1, Arg2, BF01) /* \BF01 */ M4C1 (Arg0, Arg3, 0x14, 0x01, 0x01, BF01, II10) /* bf(i,b),s */ SS10 = Concatenate (Arg1, Arg2, BF01) /* \BF01 */ M4C1 (Arg0, Arg3, 0x15, 0x01, 0x01, BF01, SS10) /* bf(i,b),b */ BB80 = Concatenate (Arg1, Arg2, BF01) /* \BF01 */ M4C1 (Arg0, Arg3, 0x16, 0x01, 0x01, BF01, BB80) /* bf(i,b),bf(i,i) */ BF10 = Concatenate (Arg1, Arg2, BF01) /* \BF01 */ M4C1 (Arg0, Arg3, 0x17, 0x01, 0x01, BF01, BF10) /* bf(i,b),bf(i,b) */ BF11 = Concatenate (Arg1, Arg2, BF01) /* \BF01 */ M4C1 (Arg0, Arg3, 0x18, 0x01, 0x01, BF01, BF11) /* ============= Result omitted */ /* ,i,s,b,bf */ /* ,i */ II10 = Concatenate (Arg1, Arg2) M4C1 (Arg0, Arg3, 0x19, 0x00, 0x01, 0x00, II10) /* ,s */ SS10 = Concatenate (Arg1, Arg2) M4C1 (Arg0, Arg3, 0x1A, 0x00, 0x01, 0x00, SS10) /* ,b */ BB80 = Concatenate (Arg1, Arg2) M4C1 (Arg0, Arg3, 0x1B, 0x00, 0x01, 0x00, BB80) /* ,bf(i,i) */ BF10 = Concatenate (Arg1, Arg2) M4C1 (Arg0, Arg3, 0x1C, 0x00, 0x01, 0x00, BF10) /* b,bf(i,b) */ BF11 = Concatenate (Arg1, Arg2) M4C1 (Arg0, Arg3, 0x1D, 0x00, 0x01, 0x00, BF11) /* ============= Store omitted */ /* i,s,b,bf, */ /* i, */ Concatenate (Arg1, Arg2, II00) /* \II00 */ M4C1 (Arg0, Arg3, 0x1E, 0x01, 0x00, II00, 0x00) /* s, */ Concatenate (Arg1, Arg2, SS00) /* \SS00 */ M4C1 (Arg0, Arg3, 0x1F, 0x01, 0x00, SS00, 0x00) /* b, */ Concatenate (Arg1, Arg2, BB00) /* \BB00 */ M4C1 (Arg0, Arg3, 0x20, 0x01, 0x00, BB00, 0x00) /* bf(i,i), */ Concatenate (Arg1, Arg2, BF00) /* \BF00 */ M4C1 (Arg0, Arg3, 0x21, 0x01, 0x00, BF00, 0x00) /* bf(i,b), */ Concatenate (Arg1, Arg2, BF01) /* \BF01 */ M4C1 (Arg0, Arg3, 0x22, 0x01, 0x00, BF01, 0x00) /* ============= Particular additional cases */ /* Buffer Field, incomplete last byte */ BF12 = Concatenate (Arg1, Arg2, BF02) /* \BF02 */ M4C1 (Arg0, Arg3, 0x23, 0x01, 0x01, BF02, BF12) /* Buffer Field, incomplete extra byte */ BF13 = Concatenate (Arg1, Arg2, BF03) /* \BF03 */ M4C1 (Arg0, Arg3, 0x24, 0x01, 0x01, BF03, BF13) /* Buffer Field, size exceeding result */ BF14 = Concatenate (Arg1, Arg2, BF04) /* \BF04 */ M4C1 (Arg0, Arg3, 0x25, 0x01, 0x01, BF04, BF14) /* Buffer, inside 32-bit Integer */ BB81 = Concatenate (Arg1, Arg2, BB01) /* \BB01 */ M4C1 (Arg0, Arg3, 0x26, 0x01, 0x01, BB01, BB81) /* Buffer, 32-bit Integer */ BB82 = Concatenate (Arg1, Arg2, BB02) /* \BB02 */ M4C1 (Arg0, Arg3, 0x27, 0x01, 0x01, BB02, BB82) /* Buffer, inside 64-bit Integer */ BB83 = Concatenate (Arg1, Arg2, BB03) /* \BB03 */ M4C1 (Arg0, Arg3, 0x28, 0x01, 0x01, BB03, BB83) /* Buffer, 64-bit Integer */ BB84 = Concatenate (Arg1, Arg2, BB04) /* \BB04 */ M4C1 (Arg0, Arg3, 0x29, 0x01, 0x01, BB04, BB84) /* Buffer, size exceeding result */ BB85 = Concatenate (Arg1, Arg2, BB05) /* \BB05 */ M4C1 (Arg0, Arg3, 0x2A, 0x01, 0x01, BB05, BB85) } /* ConcatenateResTemplate (rtb, rtb, Result) => Buffer */ Method (M504, 1, Serialized) { Name (OP, 0x04) Name (TS, "m504") TS00 (TS) If (Arg0){} Else { } } /* CondRefOf (any, Result) => Boolean */ Method (M505, 1, Serialized) { Name (OP, 0x00) Name (TS, "m505") TS00 (TS) If (Arg0){} Else { } } /* CopyObject (any, Destination) => DataRefObject */ Method (M506, 1, Serialized) { Name (OP, 0x00) Name (TS, "m506") TS00 (TS) If (Arg0){} Else { } } /* Decrement (int) => Integer */ Method (M507, 1, Serialized) { Name (OP, 0x00) Name (TS, "m507") TS00 (TS) If (Arg0){} Else { } } /* DerefOf ({ref|str}) => Object */ Method (M508, 1, Serialized) { Name (OP, 0x00) Name (TS, "m508") TS00 (TS) If (Arg0){} Else { } } /* Divide (int, int, Remainder, Result) => Integer */ Method (M509, 1, Serialized) { Name (OP, 0x00) Name (TS, "m509") TS00 (TS) If (Arg0){} Else { } } /* FindSetLeftBit (int, Result) => Integer */ Method (M511, 1, Serialized) { Name (OP, 0x00) Name (TS, "m511") TS00 (TS) If (Arg0){} Else { } } /* FindSetRightBit (int, Result) => Integer */ Method (M512, 1, Serialized) { Name (OP, 0x00) Name (TS, "m512") TS00 (TS) If (Arg0){} Else { } } /* FromBCD (int, Result) => Integer */ Method (M513, 1, Serialized) { Name (OP, 0x00) Name (TS, "m513") TS00 (TS) If (Arg0){} Else { } } /* Increment (int) => Integer */ Method (M514, 1, Serialized) { Name (OP, 0x00) Name (TS, "m514") TS00 (TS) If (Arg0){} Else { } } /* Index ({str|buf|pkg}, int, Destination) => ObjectReference */ Method (M515, 1, Serialized) { Name (OP, 0x00) Name (TS, "m515") TS00 (TS) If (Arg0){} Else { } } /* LAnd (int, int) => Boolean */ Method (M516, 1, Serialized) { Name (OP, 0x00) Name (TS, "m516") TS00 (TS) If (Arg0){} Else { } } /* LEqual ({int|str|buf}, {int|str|buf}) => Boolean */ Method (M517, 1, Serialized) { Name (OP, 0x00) Name (TS, "m517") TS00 (TS) If (Arg0){} Else { } } /* LGreater ({int|str|buf}, {int|str|buf}) => Boolean */ Method (M518, 1, Serialized) { Name (OP, 0x00) Name (TS, "m518") TS00 (TS) If (Arg0){} Else { } } /* LGreaterEqual ({int|str|buf}, {int|str|buf}) => Boolean */ Method (M519, 1, Serialized) { Name (OP, 0x00) Name (TS, "m519") TS00 (TS) If (Arg0){} Else { } } /* LLess ({int|str|buf}, {int|str|buf}) => Boolean */ Method (M520, 1, Serialized) { Name (OP, 0x00) Name (TS, "m520") TS00 (TS) If (Arg0){} Else { } } /* LLessEqual ({int|str|buf}, {int|str|buf}) => Boolean */ Method (M521, 1, Serialized) { Name (OP, 0x00) Name (TS, "m521") TS00 (TS) If (Arg0){} Else { } } /* LNot (int) => Boolean */ Method (M522, 1, Serialized) { Name (OP, 0x00) Name (TS, "m522") TS00 (TS) If (Arg0){} Else { } } /* LNotEqual ({int|str|buf}, {int|str|buf}) => Boolean */ Method (M523, 1, Serialized) { Name (OP, 0x00) Name (TS, "m523") TS00 (TS) If (Arg0){} Else { } } /* LOr (int, int) => Boolean */ Method (M524, 1, Serialized) { Name (OP, 0x00) Name (TS, "m524") TS00 (TS) If (Arg0){} Else { } } /* Match (pkg, byt, int, byt, int, int) => Ones | Integer */ Method (M525, 1, Serialized) { Name (OP, 0x00) Name (TS, "m525") TS00 (TS) If (Arg0){} Else { } } /* Mid ({str|buf}, int, int, Result) => Buffer or String */ Method (M526, 1, Serialized) { Name (OP, 0x00) Name (TS, "m526") TS00 (TS) If (Arg0){} Else { } } /* Mod (int, int, Result) => Integer */ Method (M527, 1, Serialized) { Name (OP, 0x00) Name (TS, "m527") TS00 (TS) If (Arg0){} Else { } } /* Multiply (int, int, Result) => Integer */ Method (M528, 1, Serialized) { Name (OP, 0x00) Name (TS, "m528") TS00 (TS) If (Arg0){} Else { } } /* NAnd (int, int, Result) => Integer */ Method (M529, 1, Serialized) { Name (OP, 0x00) Name (TS, "m529") TS00 (TS) If (Arg0){} Else { } } /* NOr (int, int, Result) => Integer */ Method (M530, 1, Serialized) { Name (OP, 0x00) Name (TS, "m530") TS00 (TS) If (Arg0){} Else { } } /* Not (int, Result) => Integer */ Method (M531, 1, Serialized) { Name (OP, 0x00) Name (TS, "m531") TS00 (TS) If (Arg0){} Else { } } /* ObjectType (any) => Integer */ Method (M532, 1, Serialized) { Name (OP, 0x00) Name (TS, "m532") TS00 (TS) If (Arg0){} Else { } } /* Or (int, int, Result) => Integer */ Method (M533, 1, Serialized) { Name (OP, 0x00) Name (TS, "m533") TS00 (TS) If (Arg0){} Else { } } /* RefOf (any) => ObjectReference */ Method (M534, 1, Serialized) { Name (OP, 0x00) Name (TS, "m534") TS00 (TS) If (Arg0){} Else { } } /* Return ({any|ref}) */ Method (M537, 1, Serialized) { Name (OP, 0x00) Name (TS, "m537") TS00 (TS) If (Arg0){} Else { } } /* ShiftLeft (int, int, Result) => Integer */ Method (M538, 1, Serialized) { Name (OP, 0x00) Name (TS, "m538") TS00 (TS) If (Arg0){} Else { } } /* ShiftRight (int, int, Result) => Integer */ Method (M539, 1, Serialized) { Name (OP, 0x00) Name (TS, "m539") TS00 (TS) If (Arg0){} Else { } } /* SizeOf ({int|str|buf|pkg}) => Integer */ Method (M541, 1, Serialized) { Name (OP, 0x00) Name (TS, "m541") TS00 (TS) If (Arg0){} Else { } } /* Store (any, Destination) => DataRefObject */ Method (M544, 1, Serialized) { Name (TS, "m544") TS00 (TS) Name (SS00, "DEF") SS00 = "ABC" Local0 = ObjectType (SS00) If ((Local0 != 0x02)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local0, 0x02) } ElseIf ((SS00 != "ABC")) { ERR (TS, Z067, __LINE__, 0x00, 0x00, SS00, "ABC") } Name (B000, Buffer (0xC8){}) Name (B001, Buffer (0x06) { 0x41, 0x42, 0x43, 0x44, 0x45, 0x46 // ABCDEF }) B000 = "ABCDEF" Local0 = ObjectType (B000) Local1 = SizeOf (B000) If ((Local0 != 0x03)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local0, 0x03) } ElseIf ((Local1 != 0x06)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, Local1, 0x06) } ElseIf ((B000 != B001)) { ERR (TS, Z067, __LINE__, 0x00, 0x00, B000, B001) } } /* Subtract (int, int, Result) => Integer */ Method (M545, 1, Serialized) { Name (OP, 0x00) Name (TS, "m545") TS00 (TS) If (Arg0){} Else { } } /* ToBCD (int, Result) => Integer */ Method (M546, 1, Serialized) { Name (OP, 0x00) Name (TS, "m546") TS00 (TS) If (Arg0){} Else { } } /* ToBuffer ({int|str|buf}, Result) => Buffer */ Method (M547, 1, Serialized) { Name (OP, 0x00) Name (TS, "m547") TS00 (TS) If (Arg0){} Else { } } /* ToDecimalString ({int|str|buf}, Result) => String */ Method (M548, 1, Serialized) { Name (OP, 0x00) Name (TS, "m548") TS00 (TS) If (Arg0){} Else { } } /* ToHexString ({int|str|buf}, Result) => String */ Method (M549, 1, Serialized) { Name (OP, 0x00) Name (TS, "m549") TS00 (TS) If (Arg0){} Else { } } /* ToInteger ({int|str|buf}, Result) => Integer */ Method (M550, 1, Serialized) { Name (OP, 0x00) Name (TS, "m550") TS00 (TS) If (Arg0){} Else { } } /* ToString (buf, int, Result) => String */ Method (M551, 1, Serialized) { Name (OP, 0x00) Name (TS, "m551") TS00 (TS) If (Arg0){} Else { } } /* Wait (evt, int) => Boolean */ Method (M552, 1, Serialized) { Name (OP, 0x00) Name (TS, "m552") TS00 (TS) If (Arg0){} Else { } } /* XOr (int, int, Result) => Integer */ Method (M553, 1, Serialized) { Name (OP, 0x00) Name (TS, "m553") TS00 (TS) If (Arg0){} Else { } } Method (M560, 1, NotSerialized) { /* m500(arg0) m501(arg0) m502(arg0) m503(arg0) m504(arg0) m505(arg0) m506(arg0) m507(arg0) m508(arg0) m509(arg0) m511(arg0) m512(arg0) m513(arg0) m514(arg0) m515(arg0) m516(arg0) m517(arg0) m518(arg0) m519(arg0) m520(arg0) m521(arg0) m522(arg0) m523(arg0) m524(arg0) m525(arg0) m526(arg0) m527(arg0) m528(arg0) m529(arg0) m530(arg0) m531(arg0) m532(arg0) m533(arg0) m534(arg0) m537(arg0) m538(arg0) m539(arg0) m541(arg0) m544(arg0) m545(arg0) m546(arg0) m547(arg0) m548(arg0) m549(arg0) m550(arg0) m551(arg0) m552(arg0) m553(arg0) */ M500 (Arg0) M501 (Arg0) M502 (Arg0) M503 (Arg0) M544 (Arg0) } acpica-unix-20250404/tests/aslts/src/runtime/common/conversion/otest.asl0000700000175000017500000100660614773714160025615 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ============================ !!!!!!!!!!!!!!!!!!!!!!!!!!!! IT IS IN PROGRESS !!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!! ============================ SEE: LEqual (and LGreater ?) tests were mostly checked for 64-bit mode only. Do that after ACPICA bugs are fixed. SEE: what can be removed from m48b */ /* */ /* Implicit Source Operand Conversion, complex test */ /* */ Name (Z065, 0x41) /* Acquire (mux, wrd) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* SyncObject: 0x5cff */ /* Total scale of acceptable types: */ /* SyncObject: 0x0200 */ Method (M400, 1, Serialized) { Name (OP, 0x00) Name (TS, "m400") TS00 (TS) If (Arg0) { M486 () DF00 = 0x0900 Local7 = M488 (OP, 0x5CFF, 0x00, 0x00, 0x00, 0x00) } Else { Local7 = M48D (OP, 0x0900, 0x00, 0x00, 0x00, Zero, Zero) Local7 = M48D (OP, 0x0901, 0x00, 0x00, 0x00, Zero, Zero) } } /* Add, check all unavailable non-hex symbols */ Method (M4A2, 1, Serialized) { Name (TS, "m4a2") Name (S000, "`-=qwrtyuiop[]\\sghjkl;\'zxvnm,./~!@#$%^&*()_+QWRTYUIOP{}|SGHJKL:\"ZXVNM<>? ") Name (LPN0, 0x49) Name (LPC0, 0x00) While (LPN0) { Local0 = M4A1 (S000, LPC0) Local1 = ObjectType (Local0) If ((Local1 != 0x02)) { ERR (Arg0, Z065, __LINE__, 0x00, 0x00, Local1, 0x02) } Else { Local1 = SizeOf (Local0) If ((Local1 != 0x01)) { ERR (Arg0, Z065, __LINE__, 0x00, 0x00, Local1, 0x01) } Else { CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (Local0 + 0x00) CH04 (Arg0, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (0x00 + Local0) CH04 (Arg0, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ } } Debug = Local0 LPN0-- LPC0++ } } /* Add, check all available hex symbols */ Method (M4A4, 1, Serialized) { Name (TS, "m4a4") Name (S000, "0123456789abcdefABCDEF") Name (LPN0, 0x16) Name (LPC0, 0x00) While (LPN0) { Local0 = M4A1 (S000, LPC0) Local1 = ObjectType (Local0) If ((Local1 != 0x02)) { ERR (Arg0, Z065, __LINE__, 0x00, 0x00, Local1, 0x02) } Else { Local1 = SizeOf (Local0) If ((Local1 != 0x01)) { ERR (Arg0, Z065, __LINE__, 0x00, 0x00, Local1, 0x01) } Else { CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (Local0 + 0x00) CH03 (TS, Z065, __LINE__, 0x00, 0x00) CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (0x00 + Local0) CH03 (TS, Z065, __LINE__, 0x00, 0x00) } } Debug = Local0 LPN0-- LPC0++ } } /* Add, checkings in accordance with the Table 1 */ Method (M4A0, 1, Serialized) { Name (TS, "m4a0") TS00 (TS) If (Arg0) { CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = ("fedcba98765432101" + 0x00) CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (0x00 + "fedcba98765432101") CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = ("1234q" + 0x00) CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (0x00 + "1234q") CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ If (0x00) { CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = ("0xfedcba98765432" + 0x00) CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (0x00 + "0xfedcba98765432") CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = ("" + 0x00) CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (0x00 + "") CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (" " + 0x00) CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ CH03 (TS, Z065, __LINE__, 0x00, 0x00) Local7 = (0x00 + " ") CH04 (__METHOD__, 0x00, 0x22, Z065, __LINE__, 0x00, 0x00) /* AE_BAD_HEX_CONSTANT */ } M4A2 (TS) } /* Buffers */ /* Buffer Units */ Else { /* Integers, directly */ Local7 = (0xD1 + 0x00) M4C0 (TS, Local7, 0xD1, 0xD1) Local7 = (0x000000024CB016EA + 0x00) M4C0 (TS, Local7, 0x000000024CB016EA, 0x4CB016EA) Local7 = (0xFEDCBA9876543210 + 0x00) M4C0 (TS, Local7, 0xFEDCBA9876543210, 0x76543210) Local7 = (0x00 + 0x00) M4C0 (TS, Local7, 0x00, 0x00) Local7 = (0xFFFFFFFFFFFFFFFF + 0x00) M4C0 (TS, Local7, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFF) Local7 = (0x00 + 0xD1) M4C0 (TS, Local7, 0xD1, 0xD1) Local7 = (0x00 + 0x000000024CB016EA) M4C0 (TS, Local7, 0x000000024CB016EA, 0x4CB016EA) Local7 = (0x00 + 0xFEDCBA9876543210) M4C0 (TS, Local7, 0xFEDCBA9876543210, 0x76543210) Local7 = (0x00 + 0xFFFFFFFFFFFFFFFF) M4C0 (TS, Local7, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFF) /* Strings, directly */ Local7 = ("0321" + 0x00) M4C0 (TS, Local7, 0x0321, 0x0321) Local7 = ("9876543210" + 0x00) M4C0 (TS, Local7, 0x0000009876543210, 0x76543210) Local7 = ("321" + 0x00) M4C0 (TS, Local7, 0x0321, 0x0321) Local7 = ("fedcba9876543210" + 0x00) M4C0 (TS, Local7, 0xFEDCBA9876543210, 0x76543210) M4A4 (TS) } /* Add(xxxxxx, 0, Local7) m4c0(ts, Local7, 0, 0) Add("xxxxxx", 0, Local7) m4c0(ts, Local7, 0, 0) */ If (0x00) { Debug = 0x000000024CB016EA } } /* Add (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Addend1: 0x1ed1 */ /* Addend2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Addend1: 0x402e */ /* Addend1: 0x402e */ Method (M401, 1, Serialized) { Name (OP, 0x01) TS00 ("m401") /* Expected results: 64-bit, 32-bit */ Name (P000, Package (0x62) { /* X - Integer */ 0x58765432, 0x58765432, /* X - String */ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", 0x9876, 0x9876, 0xABCD, 0xABCD, 0x1234567890987654, 0x90987654, 0xDAFECBAABBDDFFEE, 0xBBDDFFEE, 0x1234567890ABCDEF, 0x90ABCDEF, 0xFDEACB0132547698, 0x32547698, "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", /* X - Buffer */ 0x00832291, 0x00832291, 0x80, 0x80, 0x8281, 0x8281, 0x86858483, 0x86858483, 0x0000009B9A999887, 0x9A999887, 0xA3A2A1A09F9E9D9C, 0x9F9E9D9C, 0xBBBAB9B8A7A6A5A4, 0xA7A6A5A4, 0x6261605F94939291, 0x94939291, 0x0807060504030201, 0x04030201, /* X - Field Unit */ 0x7F, 0x7F, 0x07, 0x07, 0x8D, 0x8D, 0x8C8D, 0x8C8D, 0x8A8B8C8D, 0x8A8B8C8D, 0x00000001FFFFFFFF, 0xFFFFFFFF, 0x5CDEFA1988374658, 0x88374658, 0xDCDEFA1988379A58, 0x88379A58, 0xDCDEFA198837C758, 0x8837C758, 0xEFCDAB9078563482, 0x78563482, 0x52CD1299EFCDAB93, 0xEFCDAB93, /* X - Buffer Field */ 0x918654AB, 0x918654AB, 0x07, 0x07, 0x8D, 0x8D, 0x8C8D, 0x8C8D, 0x8A8B8C8D, 0x8A8B8C8D, 0x00000001FFFFFFFF, 0xFFFFFFFF, 0x5CDEFA1988374658, 0x88374658, 0xDCDEFA1988379A58, 0x88379A58, 0xDCDEFA198837C758, 0x8837C758, 0xEFCDAB9078563482, 0x78563482, 0x52CD1299EFCDAB93, 0xEFCDAB93 }) If (Arg0) { If (0x00) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } M4A0 (0x01) } ElseIf (0x00) { FLG1 = 0x01 COM2 = 0x01 /* Store(p000, PKG1) */ /* Store(PKG0, PKG2) */ M48B (OP, 0x0104) /* Store(PKG0, PKG1) */ /* Store(PKG0, PKG2) */ COM2 = 0x00 FLG1 = 0x00 } Else { M4A0 (0x00) } } /* And (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M402, 1, Serialized) { Name (OP, 0x02) TS00 ("m402") /* Expected results: 64-bit, 32-bit */ Name (P000, Package (0x62) { /* X - Integer */ 0x58765432, 0x58765432, /* X - String */ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", 0x9876, 0x9876, 0xABCD, 0xABCD, 0x1234567890987654, 0x90987654, 0xDAFECBAABBDDFFEE, 0xBBDDFFEE, 0x1234567890ABCDEF, 0x90ABCDEF, 0xFDEACB0132547698, 0x32547698, "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", /* X - Buffer */ 0x00832291, 0x00832291, 0x80, 0x80, 0x8281, 0x8281, 0x86858483, 0x86858483, 0x0000009B9A999887, 0x9A999887, 0xA3A2A1A09F9E9D9C, 0x9F9E9D9C, 0xBBBAB9B8A7A6A5A4, 0xA7A6A5A4, 0x6261605F94939291, 0x94939291, 0x0807060504030201, 0x04030201, /* X - Field Unit */ 0x7F, 0x7F, 0x07, 0x07, 0x8D, 0x8D, 0x8C8D, 0x8C8D, 0x8A8B8C8D, 0x8A8B8C8D, 0x00000001FFFFFFFF, 0xFFFFFFFF, 0x5CDEFA1988374658, 0x88374658, 0xDCDEFA1988379A58, 0x88379A58, 0xDCDEFA198837C758, 0x8837C758, 0xEFCDAB9078563482, 0x78563482, 0x52CD1299EFCDAB93, 0xEFCDAB93, /* X - Buffer Field */ 0x918654AB, 0x918654AB, 0x07, 0x07, 0x8D, 0x8D, 0x8C8D, 0x8C8D, 0x8A8B8C8D, 0x8A8B8C8D, 0x00000001FFFFFFFF, 0xFFFFFFFF, 0x5CDEFA1988374658, 0x88374658, 0xDCDEFA1988379A58, 0x88379A58, 0xDCDEFA198837C758, 0x8837C758, 0xEFCDAB9078563482, 0x78563482, 0x52CD1299EFCDAB93, 0xEFCDAB93 }) If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { FLG1 = 0x01 COM2 = 0x01 /* Store(p000, PKG1) */ /* Store(PKG0, PKG2) */ M48B (OP, 0x0106) /* Store(PKG0, PKG1) */ /* Store(PKG0, PKG2) */ COM2 = 0x00 FLG1 = 0x00 } } /* Concatenate({int|str|buf}, {int|str|buf}, Result) => ComputationalData */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M403, 1, Serialized) { Name (OP, 0x03) TS00 ("m403") /* Expected results: 64-bit, 32-bit */ Name (P000, Package (0x62) { /* X - Integer */ Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x32, 0x54, 0x76, 0x58, 0x00, 0x00, 0x00, 0x00 // 2TvX.... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x32, 0x54, 0x76, 0x58 // xV4B2TvX }, /* X - String */ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x76, 0x98, 0x00, 0x00 // xV4Bv... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0xCD, 0xAB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0xCD, 0xAB, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x54, 0x76, 0x98, 0x90, 0x78, 0x56, 0x34, 0x12 // Tv..xV4. }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x54, 0x76, 0x98, 0x90 // xV4BTv.. }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0xEE, 0xFF, 0xDD, 0xBB, 0xAA, 0xCB, 0xFE, 0xDA // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0xEE, 0xFF, 0xDD, 0xBB // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0xEF, 0xCD, 0xAB, 0x90, 0x78, 0x56, 0x34, 0x12 // ....xV4. }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0xEF, 0xCD, 0xAB, 0x90 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x98, 0x76, 0x54, 0x32, 0x01, 0xCB, 0xEA, 0xFD // .vT2.... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x98, 0x76, 0x54, 0x32 // xV4B.vT2 }, "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", /* X - Buffer */ Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x91, 0x22, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00 // ."...... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x91, 0x22, 0x83, 0x00 // xV4B.".. }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x80, 0x00, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x81, 0x82, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x83, 0x84, 0x85, 0x86, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x83, 0x84, 0x85, 0x86 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x87, 0x98, 0x99, 0x9A, 0x9B, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x87, 0x98, 0x99, 0x9A // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x9C, 0x9D, 0x9E, 0x9F // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0xA4, 0xA5, 0xA6, 0xA7 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, 0x61, 0x62 // ...._`ab }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x91, 0x92, 0x93, 0x94 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x01, 0x02, 0x03, 0x04 // xV4B.... }, /* X - Field Unit */ Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x7F, 0x00, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x07, 0x00, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x8D, 0x00, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x8D, 0x8C, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x8D, 0x8C, 0x8B, 0x8A // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0xFF, 0xFF, 0xFF, 0xFF // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C // XF7....\ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x58, 0x46, 0x37, 0x88 // xV4BXF7. }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC // X.7..... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x58, 0x9A, 0x37, 0x88 // xV4BX.7. }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC // X.7..... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x58, 0xC7, 0x37, 0x88 // xV4BX.7. }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF // .4Vx.... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x82, 0x34, 0x56, 0x78 // xV4B.4Vx }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52 // .......R }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x93, 0xAB, 0xCD, 0xEF // xV4B.... }, /* X - Buffer Field */ Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0xAB, 0x54, 0x86, 0x91, 0x00, 0x00, 0x00, 0x00 // .T...... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0xAB, 0x54, 0x86, 0x91 // xV4B.T.. }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x07, 0x00, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x8D, 0x00, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x8D, 0x8C, 0x00, 0x00 // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x8D, 0x8C, 0x8B, 0x8A // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0xFF, 0xFF, 0xFF, 0xFF // xV4B.... }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C // XF7....\ }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x58, 0x46, 0x37, 0x88 // xV4BXF7. }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC // X.7..... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x58, 0x9A, 0x37, 0x88 // xV4BX.7. }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC // X.7..... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x58, 0xC7, 0x37, 0x88 // xV4BX.7. }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF // .4Vx.... }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x82, 0x34, 0x56, 0x78 // xV4B.4Vx }, Buffer (0x10) { /* 0000 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB, // xV4B.... /* 0008 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52 // .......R }, Buffer (0x08) { 0x78, 0x56, 0x34, 0x42, 0x93, 0xAB, 0xCD, 0xEF // xV4B.... } }) /* Expected results: 64-bit, 32-bit */ Name (P001, Package (0x62) { /* X - Integer */ Buffer (0x10) { /* 0000 */ 0x32, 0x54, 0x76, 0x58, 0x00, 0x00, 0x00, 0x00, // 2TvX.... /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x32, 0x54, 0x76, 0x58, 0x78, 0x56, 0x34, 0x42 // 2TvXxV4B }, /* X - String */ "qwrtABEDF18942345678", "qwrt42345678", "svnmjklABEDF18942345678", "svnmjkl42345678", "1234zyqABEDF18942345678", "1234zyq42345678", "abcdefzyqABEDF18942345678", "abcdefzyq42345678", "9876ABEDF18942345678", "987642345678", "aBcDABEDF18942345678", "aBcD42345678", "1234567890987654ABEDF18942345678", "123456789098765442345678", "daFeCBaabbddffeeABEDF18942345678", "daFeCBaabbddffee42345678", "1234567890abCdeFABEDF18942345678", "1234567890abCdeF42345678", "FdeAcb0132547698ABEDF18942345678", "FdeAcb013254769842345678", "12345678909876540ABEDF18942345678", "1234567890987654042345678", "fdeacb01325476980ABEDF18942345678", "fdeacb0132547698042345678", "123456789011223344556677889998765432199983337744ABEDF18942345678", "12345678901122334455667788999876543219998333774442345678", "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffddABEDF18942345678", "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd42345678", "1234567890abcdef9876543210fedbca1122334455667788fdeacbABEDF18942345678", "1234567890abcdef9876543210fedbca1122334455667788fdeacb42345678", "defa1234567890abcdef9876543210fedbca1122334455667788fdeacbABEDF18942345678", "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb42345678", "123456789011223344556677889998765432199983337744zABEDF18942345678", "123456789011223344556677889998765432199983337744z42345678", /* X - Buffer */ Buffer (0x0B) { /* 0000 */ 0x91, 0x22, 0x83, 0x78, 0x56, 0x34, 0x42, 0x89, // .".xV4B. /* 0008 */ 0xF1, 0xED, 0xAB // ... }, Buffer (0x07) { 0x91, 0x22, 0x83, 0x78, 0x56, 0x34, 0x42 // .".xV4B }, Buffer (0x09) { /* 0000 */ 0x80, 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, // .xV4B... /* 0008 */ 0xAB // . }, Buffer (0x05) { 0x80, 0x78, 0x56, 0x34, 0x42 // .xV4B }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, // ..xV4B.. /* 0008 */ 0xED, 0xAB // .. }, Buffer (0x06) { 0x81, 0x82, 0x78, 0x56, 0x34, 0x42 // ..xV4B }, Buffer (0x0C) { /* 0000 */ 0x83, 0x84, 0x85, 0x86, 0x78, 0x56, 0x34, 0x42, // ....xV4B /* 0008 */ 0x89, 0xF1, 0xED, 0xAB // .... }, Buffer (0x08) { 0x83, 0x84, 0x85, 0x86, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x0D) { /* 0000 */ 0x87, 0x98, 0x99, 0x9A, 0x9B, 0x78, 0x56, 0x34, // .....xV4 /* 0008 */ 0x42, 0x89, 0xF1, 0xED, 0xAB // B.... }, Buffer (0x09) { /* 0000 */ 0x87, 0x98, 0x99, 0x9A, 0x9B, 0x78, 0x56, 0x34, // .....xV4 /* 0008 */ 0x42 // B }, Buffer (0x10) { /* 0000 */ 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x0C) { /* 0000 */ 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42 // xV4B }, Buffer (0x11) { /* 0000 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB, // ........ /* 0008 */ 0xBC, 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, // .xV4B... /* 0010 */ 0xAB // . }, Buffer (0x0D) { /* 0000 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB, // ........ /* 0008 */ 0xBC, 0x78, 0x56, 0x34, 0x42 // .xV4B }, Buffer (0xD0) { /* 0000 */ 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, 0x61, 0x62, // ...._`ab /* 0008 */ 0x63, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // c....... /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0xCC) { /* 0000 */ 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, 0x61, 0x62, // ...._`ab /* 0008 */ 0x63, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // c....... /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0x78, 0x56, 0x34, 0x42 // xV4B }, Buffer (0x0109) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 00D0 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 00D8 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 00E0 */ 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, // ........ /* 00E8 */ 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, // ........ /* 00F0 */ 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, // ........ /* 00F8 */ 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, // ........ /* 0100 */ 0x01, 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, // .xV4B... /* 0108 */ 0xAB // . }, Buffer (0x0105) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 00D0 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 00D8 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 00E0 */ 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, // ........ /* 00E8 */ 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, // ........ /* 00F0 */ 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, // ........ /* 00F8 */ 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, // ........ /* 0100 */ 0x01, 0x78, 0x56, 0x34, 0x42 // .xV4B }, /* X - Field Unit */ Buffer (0x10) { /* 0000 */ 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x7F, 0x00, 0x00, 0x00, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x10) { /* 0000 */ 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x07, 0x00, 0x00, 0x00, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x10) { /* 0000 */ 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x8D, 0x00, 0x00, 0x00, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x8D, 0x8C, 0x00, 0x00, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x8D, 0x8C, 0x8B, 0x8A, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x10) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x09) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x78, 0x56, 0x34, // .....xV4 /* 0008 */ 0x42 // B }, Buffer (0x10) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x0C) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x78, 0x56, 0x34, 0x42 // xV4B }, Buffer (0x10) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x0C) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x78, 0x56, 0x34, 0x42 // xV4B }, Buffer (0x11) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, // .xV4B... /* 0010 */ 0xAB // . }, Buffer (0x0D) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x78, 0x56, 0x34, 0x42 // .xV4B }, Buffer (0x18) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x14) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x78, 0x56, 0x34, 0x42 // xV4B }, Buffer (0x29) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, // .xV4B... /* 0028 */ 0xAB // . }, Buffer (0x25) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x78, 0x56, 0x34, 0x42 // .xV4B }, /* X - Buffer Field */ Buffer (0x10) { /* 0000 */ 0xAB, 0x54, 0x86, 0x91, 0x00, 0x00, 0x00, 0x00, // .T...... /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0xAB, 0x54, 0x86, 0x91, 0x78, 0x56, 0x34, 0x42 // .T..xV4B }, Buffer (0x10) { /* 0000 */ 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x07, 0x00, 0x00, 0x00, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x10) { /* 0000 */ 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x8D, 0x00, 0x00, 0x00, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x8D, 0x8C, 0x00, 0x00, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x08) { 0x8D, 0x8C, 0x8B, 0x8A, 0x78, 0x56, 0x34, 0x42 // ....xV4B }, Buffer (0x10) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x09) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x78, 0x56, 0x34, // .....xV4 /* 0008 */ 0x42 // B }, Buffer (0x10) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x0C) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x78, 0x56, 0x34, 0x42 // xV4B }, Buffer (0x10) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x0C) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x78, 0x56, 0x34, 0x42 // xV4B }, Buffer (0x11) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, // .xV4B... /* 0010 */ 0xAB // . }, Buffer (0x0D) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x78, 0x56, 0x34, 0x42 // .xV4B }, Buffer (0x18) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, 0xAB // xV4B.... }, Buffer (0x14) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x78, 0x56, 0x34, 0x42 // xV4B }, Buffer (0x29) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x78, 0x56, 0x34, 0x42, 0x89, 0xF1, 0xED, // .xV4B... /* 0028 */ 0xAB // . }, Buffer (0x25) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x78, 0x56, 0x34, 0x42 // .xV4B } }) /* Expected results: 64-bit, 32-bit */ Name (P002, Package (0x62) { /* X - Integer */ "98760000000058765432", "987658765432", /* X - String */ "9876qwrt", "9876qwrt", "9876svnmjkl", "9876svnmjkl", "98761234zyq", "98761234zyq", "9876abcdefzyq", "9876abcdefzyq", "98769876", "98769876", "9876aBcD", "9876aBcD", "98761234567890987654", "98761234567890987654", "9876daFeCBaabbddffee", "9876daFeCBaabbddffee", "98761234567890abCdeF", "98761234567890abCdeF", "9876FdeAcb0132547698", "9876FdeAcb0132547698", "987612345678909876540", "987612345678909876540", "9876fdeacb01325476980", "9876fdeacb01325476980", "9876123456789011223344556677889998765432199983337744", "9876123456789011223344556677889998765432199983337744", "9876abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd", "9876abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd", "98761234567890abcdef9876543210fedbca1122334455667788fdeacb", "98761234567890abcdef9876543210fedbca1122334455667788fdeacb", "9876defa1234567890abcdef9876543210fedbca1122334455667788fdeacb", "9876defa1234567890abcdef9876543210fedbca1122334455667788fdeacb", "9876123456789011223344556677889998765432199983337744z", "9876123456789011223344556677889998765432199983337744z", /* X - Buffer */ "987691 22 83", "987691 22 83", "987680", "987680", "987681 82", "987681 82", "987683 84 85 86", "987683 84 85 86", "987687 98 99 9A 9B", "987687 98 99 9A 9B", "98769C 9D 9E 9F A0 A1 A2 A3", "98769C 9D 9E 9F A0 A1 A2 A3", "9876A4 A5 A6 A7 B8 B9 BA BB BC", "9876A4 A5 A6 A7 B8 B9 BA BB BC", "Exc", "Exc", "Exc", "Exc", /* X - Field Unit */ "9876000000000000007F", "98760000007F", "98760000000000000007", "987600000007", "9876000000000000008D", "98760000008D", "98760000000000008C8D", "987600008C8D", "9876000000008A8B8C8D", "98768A8B8C8D", "987600000001FFFFFFFF", "9876FF FF FF FF 01", "98765CDEFA1988374658", "987658 46 37 88 19 FA DE 5C", "9876DCDEFA1988379A58", "987658 9A 37 88 19 FA DE DC", "987658 C7 37 88 19 FA DE DC 00", "987658 C7 37 88 19 FA DE DC 00", "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00", "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00", "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00", "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00", /* X - Buffer Field */ "987600000000918654AB", "9876918654AB", "98760000000000000007", "987600000007", "9876000000000000008D", "98760000008D", "98760000000000008C8D", "987600008C8D", "9876000000008A8B8C8D", "98768A8B8C8D", "987600000001FFFFFFFF", "9876FF FF FF FF 01", "98765CDEFA1988374658", "987658 46 37 88 19 FA DE 5C", "9876DCDEFA1988379A58", "987658 9A 37 88 19 FA DE DC", "987658 C7 37 88 19 FA DE DC 00", "987658 C7 37 88 19 FA DE DC 00", "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00", "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00", "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00", "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" }) /* Expected results: 64-bit, 32-bit */ Name (P003, Package (0x62) { /* X - Integer */ Buffer (0x10) { /* 0000 */ 0x32, 0x54, 0x76, 0x58, 0x00, 0x00, 0x00, 0x00, // 2TvX.... /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x32, 0x54, 0x76, 0x58, 0x76, 0x98, 0x00, 0x00 // 2TvXv... }, /* X - String */ "qwrt9876", "qwrt9876", "svnmjkl9876", "svnmjkl9876", "1234zyq9876", "1234zyq9876", "abcdefzyq9876", "abcdefzyq9876", "98769876", "98769876", "aBcD9876", "aBcD9876", "12345678909876549876", "12345678909876549876", "daFeCBaabbddffee9876", "daFeCBaabbddffee9876", "1234567890abCdeF9876", "1234567890abCdeF9876", "FdeAcb01325476989876", "FdeAcb01325476989876", "123456789098765409876", "123456789098765409876", "fdeacb013254769809876", "fdeacb013254769809876", "1234567890112233445566778899987654321999833377449876", "1234567890112233445566778899987654321999833377449876", "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd9876", "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd9876", "1234567890abcdef9876543210fedbca1122334455667788fdeacb9876", "1234567890abcdef9876543210fedbca1122334455667788fdeacb9876", "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb9876", "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb9876", "123456789011223344556677889998765432199983337744z9876", "123456789011223344556677889998765432199983337744z9876", /* X - Buffer */ Buffer (0x07) { 0x91, 0x22, 0x83, 0x39, 0x38, 0x37, 0x36 // .".9876 }, Buffer (0x07) { 0x91, 0x22, 0x83, 0x39, 0x38, 0x37, 0x36 // .".9876 }, Buffer (0x05) { 0x80, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x05) { 0x80, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x06) { 0x81, 0x82, 0x39, 0x38, 0x37, 0x36 // ..9876 }, Buffer (0x06) { 0x81, 0x82, 0x39, 0x38, 0x37, 0x36 // ..9876 }, Buffer (0x08) { 0x83, 0x84, 0x85, 0x86, 0x39, 0x38, 0x37, 0x36 // ....9876 }, Buffer (0x08) { 0x83, 0x84, 0x85, 0x86, 0x39, 0x38, 0x37, 0x36 // ....9876 }, Buffer (0x09) { /* 0000 */ 0x87, 0x98, 0x99, 0x9A, 0x9B, 0x39, 0x38, 0x37, // .....987 /* 0008 */ 0x36 // 6 }, Buffer (0x09) { /* 0000 */ 0x87, 0x98, 0x99, 0x9A, 0x9B, 0x39, 0x38, 0x37, // .....987 /* 0008 */ 0x36 // 6 }, Buffer (0x0C) { /* 0000 */ 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, // ........ /* 0008 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x0C) { /* 0000 */ 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, // ........ /* 0008 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x0D) { /* 0000 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB, // ........ /* 0008 */ 0xBC, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x0D) { /* 0000 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB, // ........ /* 0008 */ 0xBC, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0xCC) { /* 0000 */ 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, 0x61, 0x62, // ...._`ab /* 0008 */ 0x63, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // c....... /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0xCC) { /* 0000 */ 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, 0x61, 0x62, // ...._`ab /* 0008 */ 0x63, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // c....... /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x0105) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 00D0 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 00D8 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 00E0 */ 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, // ........ /* 00E8 */ 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, // ........ /* 00F0 */ 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, // ........ /* 00F8 */ 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, // ........ /* 0100 */ 0x01, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x0105) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 00D0 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 00D8 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 00E0 */ 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, // ........ /* 00E8 */ 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, // ........ /* 00F0 */ 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, // ........ /* 00F8 */ 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, // ........ /* 0100 */ 0x01, 0x39, 0x38, 0x37, 0x36 // .9876 }, /* X - Field Unit */ Buffer (0x10) { /* 0000 */ 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x7F, 0x00, 0x00, 0x00, 0x76, 0x98, 0x00, 0x00 // ....v... }, Buffer (0x10) { /* 0000 */ 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x07, 0x00, 0x00, 0x00, 0x76, 0x98, 0x00, 0x00 // ....v... }, Buffer (0x10) { /* 0000 */ 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x8D, 0x00, 0x00, 0x00, 0x76, 0x98, 0x00, 0x00 // ....v... }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x8D, 0x8C, 0x00, 0x00, 0x76, 0x98, 0x00, 0x00 // ....v... }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x8D, 0x8C, 0x8B, 0x8A, 0x76, 0x98, 0x00, 0x00 // ....v... }, Buffer (0x10) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x09) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x39, 0x38, 0x37, // .....987 /* 0008 */ 0x36 // 6 }, Buffer (0x10) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x0C) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x10) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x0C) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x0D) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x0D) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x14) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x14) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x25) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x25) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x39, 0x38, 0x37, 0x36 // .9876 }, /* X - Buffer Field */ Buffer (0x10) { /* 0000 */ 0xAB, 0x54, 0x86, 0x91, 0x00, 0x00, 0x00, 0x00, // .T...... /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0xAB, 0x54, 0x86, 0x91, 0x76, 0x98, 0x00, 0x00 // .T..v... }, Buffer (0x10) { /* 0000 */ 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x07, 0x00, 0x00, 0x00, 0x76, 0x98, 0x00, 0x00 // ....v... }, Buffer (0x10) { /* 0000 */ 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x8D, 0x00, 0x00, 0x00, 0x76, 0x98, 0x00, 0x00 // ....v... }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x8D, 0x8C, 0x00, 0x00, 0x76, 0x98, 0x00, 0x00 // ....v... }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x08) { 0x8D, 0x8C, 0x8B, 0x8A, 0x76, 0x98, 0x00, 0x00 // ....v... }, Buffer (0x10) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x09) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x39, 0x38, 0x37, // .....987 /* 0008 */ 0x36 // 6 }, Buffer (0x10) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x0C) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x10) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x76, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // v....... }, Buffer (0x0C) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x0D) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x0D) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x14) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x14) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x39, 0x38, 0x37, 0x36 // 9876 }, Buffer (0x25) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x39, 0x38, 0x37, 0x36 // .9876 }, Buffer (0x25) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x39, 0x38, 0x37, 0x36 // .9876 } }) /* Expected results: 64-bit, 32-bit */ Name (P004, Package (0x62) { /* X - Integer */ Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x32, 0x54, 0x76, 0x58, 0x00, 0x00, // ..2TvX.. /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x32, 0x54, 0x76, 0x58 // ..2TvX }, /* X - String */ Buffer (0x06) { 0x81, 0x82, 0x71, 0x77, 0x72, 0x74 // ..qwrt }, Buffer (0x06) { 0x81, 0x82, 0x71, 0x77, 0x72, 0x74 // ..qwrt }, Buffer (0x09) { /* 0000 */ 0x81, 0x82, 0x73, 0x76, 0x6E, 0x6D, 0x6A, 0x6B, // ..svnmjk /* 0008 */ 0x6C // l }, Buffer (0x09) { /* 0000 */ 0x81, 0x82, 0x73, 0x76, 0x6E, 0x6D, 0x6A, 0x6B, // ..svnmjk /* 0008 */ 0x6C // l }, Buffer (0x09) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x7A, 0x79, // ..1234zy /* 0008 */ 0x71 // q }, Buffer (0x09) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x7A, 0x79, // ..1234zy /* 0008 */ 0x71 // q }, Buffer (0x0B) { /* 0000 */ 0x81, 0x82, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, // ..abcdef /* 0008 */ 0x7A, 0x79, 0x71 // zyq }, Buffer (0x0B) { /* 0000 */ 0x81, 0x82, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, // ..abcdef /* 0008 */ 0x7A, 0x79, 0x71 // zyq }, Buffer (0x06) { 0x81, 0x82, 0x39, 0x38, 0x37, 0x36 // ..9876 }, Buffer (0x06) { 0x81, 0x82, 0x39, 0x38, 0x37, 0x36 // ..9876 }, Buffer (0x06) { 0x81, 0x82, 0x61, 0x42, 0x63, 0x44 // ..aBcD }, Buffer (0x06) { 0x81, 0x82, 0x61, 0x42, 0x63, 0x44 // ..aBcD }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x39, 0x38, 0x37, 0x36, // 78909876 /* 0010 */ 0x35, 0x34 // 54 }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x39, 0x38, 0x37, 0x36, // 78909876 /* 0010 */ 0x35, 0x34 // 54 }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x64, 0x61, 0x46, 0x65, 0x43, 0x42, // ..daFeCB /* 0008 */ 0x61, 0x61, 0x62, 0x62, 0x64, 0x64, 0x66, 0x66, // aabbddff /* 0010 */ 0x65, 0x65 // ee }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x64, 0x61, 0x46, 0x65, 0x43, 0x42, // ..daFeCB /* 0008 */ 0x61, 0x61, 0x62, 0x62, 0x64, 0x64, 0x66, 0x66, // aabbddff /* 0010 */ 0x65, 0x65 // ee }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x61, 0x62, 0x43, 0x64, // 7890abCd /* 0010 */ 0x65, 0x46 // eF }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x61, 0x62, 0x43, 0x64, // 7890abCd /* 0010 */ 0x65, 0x46 // eF }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x46, 0x64, 0x65, 0x41, 0x63, 0x62, // ..FdeAcb /* 0008 */ 0x30, 0x31, 0x33, 0x32, 0x35, 0x34, 0x37, 0x36, // 01325476 /* 0010 */ 0x39, 0x38 // 98 }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x46, 0x64, 0x65, 0x41, 0x63, 0x62, // ..FdeAcb /* 0008 */ 0x30, 0x31, 0x33, 0x32, 0x35, 0x34, 0x37, 0x36, // 01325476 /* 0010 */ 0x39, 0x38 // 98 }, Buffer (0x13) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x39, 0x38, 0x37, 0x36, // 78909876 /* 0010 */ 0x35, 0x34, 0x30 // 540 }, Buffer (0x13) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x39, 0x38, 0x37, 0x36, // 78909876 /* 0010 */ 0x35, 0x34, 0x30 // 540 }, Buffer (0x13) { /* 0000 */ 0x81, 0x82, 0x66, 0x64, 0x65, 0x61, 0x63, 0x62, // ..fdeacb /* 0008 */ 0x30, 0x31, 0x33, 0x32, 0x35, 0x34, 0x37, 0x36, // 01325476 /* 0010 */ 0x39, 0x38, 0x30 // 980 }, Buffer (0x13) { /* 0000 */ 0x81, 0x82, 0x66, 0x64, 0x65, 0x61, 0x63, 0x62, // ..fdeacb /* 0008 */ 0x30, 0x31, 0x33, 0x32, 0x35, 0x34, 0x37, 0x36, // 01325476 /* 0010 */ 0x39, 0x38, 0x30 // 980 }, Buffer (0x32) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x31, 0x31, 0x32, 0x32, // 78901122 /* 0010 */ 0x33, 0x33, 0x34, 0x34, 0x35, 0x35, 0x36, 0x36, // 33445566 /* 0018 */ 0x37, 0x37, 0x38, 0x38, 0x39, 0x39, 0x39, 0x38, // 77889998 /* 0020 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x39, // 76543219 /* 0028 */ 0x39, 0x39, 0x38, 0x33, 0x33, 0x33, 0x37, 0x37, // 99833377 /* 0030 */ 0x34, 0x34 // 44 }, Buffer (0x32) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x31, 0x31, 0x32, 0x32, // 78901122 /* 0010 */ 0x33, 0x33, 0x34, 0x34, 0x35, 0x35, 0x36, 0x36, // 33445566 /* 0018 */ 0x37, 0x37, 0x38, 0x38, 0x39, 0x39, 0x39, 0x38, // 77889998 /* 0020 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x39, // 76543219 /* 0028 */ 0x39, 0x39, 0x38, 0x33, 0x33, 0x33, 0x37, 0x37, // 99833377 /* 0030 */ 0x34, 0x34 // 44 }, Buffer (0x36) { /* 0000 */ 0x81, 0x82, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, // ..abcdef /* 0008 */ 0x61, 0x41, 0x62, 0x62, 0x63, 0x63, 0x64, 0x64, // aAbbccdd /* 0010 */ 0x65, 0x65, 0x66, 0x66, 0x66, 0x66, 0x65, 0x65, // eeffffee /* 0018 */ 0x64, 0x64, 0x63, 0x63, 0x61, 0x61, 0x62, 0x62, // ddccaabb /* 0020 */ 0x64, 0x64, 0x65, 0x65, 0x66, 0x66, 0x61, 0x61, // ddeeffaa /* 0028 */ 0x61, 0x61, 0x62, 0x62, 0x62, 0x62, 0x65, 0x65, // aabbbbee /* 0030 */ 0x65, 0x66, 0x66, 0x66, 0x64, 0x64 // efffdd }, Buffer (0x36) { /* 0000 */ 0x81, 0x82, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, // ..abcdef /* 0008 */ 0x61, 0x41, 0x62, 0x62, 0x63, 0x63, 0x64, 0x64, // aAbbccdd /* 0010 */ 0x65, 0x65, 0x66, 0x66, 0x66, 0x66, 0x65, 0x65, // eeffffee /* 0018 */ 0x64, 0x64, 0x63, 0x63, 0x61, 0x61, 0x62, 0x62, // ddccaabb /* 0020 */ 0x64, 0x64, 0x65, 0x65, 0x66, 0x66, 0x61, 0x61, // ddeeffaa /* 0028 */ 0x61, 0x61, 0x62, 0x62, 0x62, 0x62, 0x65, 0x65, // aabbbbee /* 0030 */ 0x65, 0x66, 0x66, 0x66, 0x64, 0x64 // efffdd }, Buffer (0x38) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x61, 0x62, 0x63, 0x64, // 7890abcd /* 0010 */ 0x65, 0x66, 0x39, 0x38, 0x37, 0x36, 0x35, 0x34, // ef987654 /* 0018 */ 0x33, 0x32, 0x31, 0x30, 0x66, 0x65, 0x64, 0x62, // 3210fedb /* 0020 */ 0x63, 0x61, 0x31, 0x31, 0x32, 0x32, 0x33, 0x33, // ca112233 /* 0028 */ 0x34, 0x34, 0x35, 0x35, 0x36, 0x36, 0x37, 0x37, // 44556677 /* 0030 */ 0x38, 0x38, 0x66, 0x64, 0x65, 0x61, 0x63, 0x62 // 88fdeacb }, Buffer (0x38) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x61, 0x62, 0x63, 0x64, // 7890abcd /* 0010 */ 0x65, 0x66, 0x39, 0x38, 0x37, 0x36, 0x35, 0x34, // ef987654 /* 0018 */ 0x33, 0x32, 0x31, 0x30, 0x66, 0x65, 0x64, 0x62, // 3210fedb /* 0020 */ 0x63, 0x61, 0x31, 0x31, 0x32, 0x32, 0x33, 0x33, // ca112233 /* 0028 */ 0x34, 0x34, 0x35, 0x35, 0x36, 0x36, 0x37, 0x37, // 44556677 /* 0030 */ 0x38, 0x38, 0x66, 0x64, 0x65, 0x61, 0x63, 0x62 // 88fdeacb }, Buffer (0x3C) { /* 0000 */ 0x81, 0x82, 0x64, 0x65, 0x66, 0x61, 0x31, 0x32, // ..defa12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x30, // 34567890 /* 0010 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x39, 0x38, // abcdef98 /* 0018 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x30, // 76543210 /* 0020 */ 0x66, 0x65, 0x64, 0x62, 0x63, 0x61, 0x31, 0x31, // fedbca11 /* 0028 */ 0x32, 0x32, 0x33, 0x33, 0x34, 0x34, 0x35, 0x35, // 22334455 /* 0030 */ 0x36, 0x36, 0x37, 0x37, 0x38, 0x38, 0x66, 0x64, // 667788fd /* 0038 */ 0x65, 0x61, 0x63, 0x62 // eacb }, Buffer (0x3C) { /* 0000 */ 0x81, 0x82, 0x64, 0x65, 0x66, 0x61, 0x31, 0x32, // ..defa12 /* 0008 */ 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x30, // 34567890 /* 0010 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x39, 0x38, // abcdef98 /* 0018 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x30, // 76543210 /* 0020 */ 0x66, 0x65, 0x64, 0x62, 0x63, 0x61, 0x31, 0x31, // fedbca11 /* 0028 */ 0x32, 0x32, 0x33, 0x33, 0x34, 0x34, 0x35, 0x35, // 22334455 /* 0030 */ 0x36, 0x36, 0x37, 0x37, 0x38, 0x38, 0x66, 0x64, // 667788fd /* 0038 */ 0x65, 0x61, 0x63, 0x62 // eacb }, Buffer (0x33) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x31, 0x31, 0x32, 0x32, // 78901122 /* 0010 */ 0x33, 0x33, 0x34, 0x34, 0x35, 0x35, 0x36, 0x36, // 33445566 /* 0018 */ 0x37, 0x37, 0x38, 0x38, 0x39, 0x39, 0x39, 0x38, // 77889998 /* 0020 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x39, // 76543219 /* 0028 */ 0x39, 0x39, 0x38, 0x33, 0x33, 0x33, 0x37, 0x37, // 99833377 /* 0030 */ 0x34, 0x34, 0x7A // 44z }, Buffer (0x33) { /* 0000 */ 0x81, 0x82, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // ..123456 /* 0008 */ 0x37, 0x38, 0x39, 0x30, 0x31, 0x31, 0x32, 0x32, // 78901122 /* 0010 */ 0x33, 0x33, 0x34, 0x34, 0x35, 0x35, 0x36, 0x36, // 33445566 /* 0018 */ 0x37, 0x37, 0x38, 0x38, 0x39, 0x39, 0x39, 0x38, // 77889998 /* 0020 */ 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0x39, // 76543219 /* 0028 */ 0x39, 0x39, 0x38, 0x33, 0x33, 0x33, 0x37, 0x37, // 99833377 /* 0030 */ 0x34, 0x34, 0x7A // 44z }, /* X - Buffer */ Buffer (0x05) { 0x81, 0x82, 0x91, 0x22, 0x83 // ...". }, Buffer (0x05) { 0x81, 0x82, 0x91, 0x22, 0x83 // ...". }, Buffer (0x03) { 0x81, 0x82, 0x80 // ... }, Buffer (0x03) { 0x81, 0x82, 0x80 // ... }, Buffer (0x04) { 0x81, 0x82, 0x81, 0x82 // .... }, Buffer (0x04) { 0x81, 0x82, 0x81, 0x82 // .... }, Buffer (0x06) { 0x81, 0x82, 0x83, 0x84, 0x85, 0x86 // ...... }, Buffer (0x06) { 0x81, 0x82, 0x83, 0x84, 0x85, 0x86 // ...... }, Buffer (0x07) { 0x81, 0x82, 0x87, 0x98, 0x99, 0x9A, 0x9B // ....... }, Buffer (0x07) { 0x81, 0x82, 0x87, 0x98, 0x99, 0x9A, 0x9B // ....... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, // ........ /* 0008 */ 0xA2, 0xA3 // .. }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, // ........ /* 0008 */ 0xA2, 0xA3 // .. }, Buffer (0x0B) { /* 0000 */ 0x81, 0x82, 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, // ........ /* 0008 */ 0xBA, 0xBB, 0xBC // ... }, Buffer (0x0B) { /* 0000 */ 0x81, 0x82, 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, // ........ /* 0008 */ 0xBA, 0xBB, 0xBC // ... }, Buffer (0xCA) { /* 0000 */ 0x81, 0x82, 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, // ......_` /* 0008 */ 0x61, 0x62, 0x63, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, // abc..... /* 0010 */ 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, // ........ /* 0018 */ 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, // ........ /* 0020 */ 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, // . !"#$%& /* 0028 */ 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, // '()*+,-. /* 0030 */ 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // /0123456 /* 0038 */ 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, // 789:;<=> /* 0040 */ 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, // ?@ABCDEF /* 0048 */ 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, // GHIJKLMN /* 0050 */ 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, // OPQRSTUV /* 0058 */ 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, // WXYZ[\]^ /* 0060 */ 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, // _`abcdef /* 0068 */ 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, // ghijklmn /* 0070 */ 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, // opqrstuv /* 0078 */ 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, // wxyz{|}~ /* 0080 */ 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, // ........ /* 0088 */ 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, // ........ /* 0090 */ 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, // ........ /* 0098 */ 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, // ........ /* 00A0 */ 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, // ........ /* 00A8 */ 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, // ........ /* 00B0 */ 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, // ........ /* 00B8 */ 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, // ........ /* 00C0 */ 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, // ........ /* 00C8 */ 0xC7, 0xC8 // .. }, Buffer (0xCA) { /* 0000 */ 0x81, 0x82, 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, // ......_` /* 0008 */ 0x61, 0x62, 0x63, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, // abc..... /* 0010 */ 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, // ........ /* 0018 */ 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, // ........ /* 0020 */ 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, // . !"#$%& /* 0028 */ 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, // '()*+,-. /* 0030 */ 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // /0123456 /* 0038 */ 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, // 789:;<=> /* 0040 */ 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, // ?@ABCDEF /* 0048 */ 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, // GHIJKLMN /* 0050 */ 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, // OPQRSTUV /* 0058 */ 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, // WXYZ[\]^ /* 0060 */ 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, // _`abcdef /* 0068 */ 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, // ghijklmn /* 0070 */ 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, // opqrstuv /* 0078 */ 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, // wxyz{|}~ /* 0080 */ 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, // ........ /* 0088 */ 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, // ........ /* 0090 */ 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, // ........ /* 0098 */ 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, // ........ /* 00A0 */ 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, // ........ /* 00A8 */ 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, // ........ /* 00B0 */ 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, // ........ /* 00B8 */ 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, // ........ /* 00C0 */ 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, // ........ /* 00C8 */ 0xC7, 0xC8 // .. }, Buffer (0x0103) { /* 0000 */ 0x81, 0x82, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, // ........ /* 0008 */ 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, // ........ /* 0010 */ 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, // ........ /* 0018 */ 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, // ........ /* 0020 */ 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, // . !"#$%& /* 0028 */ 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, // '()*+,-. /* 0030 */ 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // /0123456 /* 0038 */ 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, // 789:;<=> /* 0040 */ 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, // ?@ABCDEF /* 0048 */ 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, // GHIJKLMN /* 0050 */ 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, // OPQRSTUV /* 0058 */ 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, // WXYZ[\]^ /* 0060 */ 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, // _`abcdef /* 0068 */ 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, // ghijklmn /* 0070 */ 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, // opqrstuv /* 0078 */ 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, // wxyz{|}~ /* 0080 */ 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, // ........ /* 0088 */ 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, // ........ /* 0090 */ 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, // ........ /* 0098 */ 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, // ........ /* 00A0 */ 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, // ........ /* 00A8 */ 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, // ........ /* 00B0 */ 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, // ........ /* 00B8 */ 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, // ........ /* 00C0 */ 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, // ........ /* 00C8 */ 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, // ........ /* 00D0 */ 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, // ........ /* 00D8 */ 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, // ........ /* 00E0 */ 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, // ........ /* 00E8 */ 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, // ........ /* 00F0 */ 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 00F8 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0100 */ 0xFF, 0x00, 0x01 // ... }, Buffer (0x0103) { /* 0000 */ 0x81, 0x82, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, // ........ /* 0008 */ 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, // ........ /* 0010 */ 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, // ........ /* 0018 */ 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, // ........ /* 0020 */ 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, // . !"#$%& /* 0028 */ 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, // '()*+,-. /* 0030 */ 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, // /0123456 /* 0038 */ 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, // 789:;<=> /* 0040 */ 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, // ?@ABCDEF /* 0048 */ 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, // GHIJKLMN /* 0050 */ 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, // OPQRSTUV /* 0058 */ 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, // WXYZ[\]^ /* 0060 */ 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, // _`abcdef /* 0068 */ 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, // ghijklmn /* 0070 */ 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, // opqrstuv /* 0078 */ 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, // wxyz{|}~ /* 0080 */ 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, // ........ /* 0088 */ 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, // ........ /* 0090 */ 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, // ........ /* 0098 */ 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, // ........ /* 00A0 */ 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, // ........ /* 00A8 */ 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, // ........ /* 00B0 */ 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, // ........ /* 00B8 */ 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, // ........ /* 00C0 */ 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, // ........ /* 00C8 */ 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, // ........ /* 00D0 */ 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, // ........ /* 00D8 */ 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, // ........ /* 00E0 */ 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, // ........ /* 00E8 */ 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, // ........ /* 00F0 */ 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, // ........ /* 00F8 */ 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, // ........ /* 0100 */ 0xFF, 0x00, 0x01 // ... }, /* X - Field Unit */ Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x7F, 0x00, 0x00, 0x00 // ...... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x07, 0x00, 0x00, 0x00 // ...... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x8D, 0x00, 0x00, 0x00 // ...... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x8D, 0x8C, 0x00, 0x00 // ...... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x8D, 0x8C, 0x8B, 0x8A // ...... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x07) { 0x81, 0x82, 0xFF, 0xFF, 0xFF, 0xFF, 0x01 // ....... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, // ..XF7... /* 0008 */ 0xDE, 0x5C // .\ }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, // ..XF7... /* 0008 */ 0xDE, 0x5C // .\ }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, // ..X.7... /* 0008 */ 0xDE, 0xDC // .. }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, // ..X.7... /* 0008 */ 0xDE, 0xDC // .. }, Buffer (0x0B) { /* 0000 */ 0x81, 0x82, 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, // ..X.7... /* 0008 */ 0xDE, 0xDC, 0x00 // ... }, Buffer (0x0B) { /* 0000 */ 0x81, 0x82, 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, // ..X.7... /* 0008 */ 0xDE, 0xDC, 0x00 // ... }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, // ...4Vx.. /* 0008 */ 0xCD, 0xEF, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, // ..U..... /* 0010 */ 0x00, 0x00 // .. }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, // ...4Vx.. /* 0008 */ 0xCD, 0xEF, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, // ..U..... /* 0010 */ 0x00, 0x00 // .. }, Buffer (0x23) { /* 0000 */ 0x81, 0x82, 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, // ........ /* 0008 */ 0xCD, 0x52, 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, // .R...... /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x00, 0x00 // ... }, Buffer (0x23) { /* 0000 */ 0x81, 0x82, 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, // ........ /* 0008 */ 0xCD, 0x52, 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, // .R...... /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x00, 0x00 // ... }, /* X - Buffer Field */ Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0xAB, 0x54, 0x86, 0x91, 0x00, 0x00, // ...T.... /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0xAB, 0x54, 0x86, 0x91 // ...T.. }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x07, 0x00, 0x00, 0x00 // ...... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x8D, 0x00, 0x00, 0x00 // ...... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x8D, 0x8C, 0x00, 0x00 // ...... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x06) { 0x81, 0x82, 0x8D, 0x8C, 0x8B, 0x8A // ...... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, // ........ /* 0008 */ 0x00, 0x00 // .. }, Buffer (0x07) { 0x81, 0x82, 0xFF, 0xFF, 0xFF, 0xFF, 0x01 // ....... }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, // ..XF7... /* 0008 */ 0xDE, 0x5C // .\ }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, // ..XF7... /* 0008 */ 0xDE, 0x5C // .\ }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, // ..X.7... /* 0008 */ 0xDE, 0xDC // .. }, Buffer (0x0A) { /* 0000 */ 0x81, 0x82, 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, // ..X.7... /* 0008 */ 0xDE, 0xDC // .. }, Buffer (0x0B) { /* 0000 */ 0x81, 0x82, 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, // ..X.7... /* 0008 */ 0xDE, 0xDC, 0x00 // ... }, Buffer (0x0B) { /* 0000 */ 0x81, 0x82, 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, // ..X.7... /* 0008 */ 0xDE, 0xDC, 0x00 // ... }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, // ...4Vx.. /* 0008 */ 0xCD, 0xEF, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, // ..U..... /* 0010 */ 0x00, 0x00 // .. }, Buffer (0x12) { /* 0000 */ 0x81, 0x82, 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, // ...4Vx.. /* 0008 */ 0xCD, 0xEF, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, // ..U..... /* 0010 */ 0x00, 0x00 // .. }, Buffer (0x23) { /* 0000 */ 0x81, 0x82, 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, // ........ /* 0008 */ 0xCD, 0x52, 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, // .R...... /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x00, 0x00 // ... }, Buffer (0x23) { /* 0000 */ 0x81, 0x82, 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, // ........ /* 0008 */ 0xCD, 0x52, 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, // .R...... /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x00, 0x00 // ... } }) /* Expected results: 64-bit, 32-bit */ Name (P005, Package (0x62) { /* X - Integer */ Buffer (0x10) { /* 0000 */ 0x32, 0x54, 0x76, 0x58, 0x00, 0x00, 0x00, 0x00, // 2TvX.... /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x32, 0x54, 0x76, 0x58, 0x81, 0x82, 0x00, 0x00 // 2TvX.... }, /* X - String */ "qwrt81 82", "qwrt81 82", "svnmjkl81 82", "svnmjkl81 82", "1234zyq81 82", "1234zyq81 82", "abcdefzyq81 82", "abcdefzyq81 82", "987681 82", "987681 82", "aBcD81 82", "aBcD81 82", "123456789098765481 82", "123456789098765481 82", "daFeCBaabbddffee81 82", "daFeCBaabbddffee81 82", "1234567890abCdeF81 82", "1234567890abCdeF81 82", "FdeAcb013254769881 82", "FdeAcb013254769881 82", "1234567890987654081 82", "1234567890987654081 82", "fdeacb0132547698081 82", "fdeacb0132547698081 82", "12345678901122334455667788999876543219998333774481 82", "12345678901122334455667788999876543219998333774481 82", "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd81 82", "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd81 82", "1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82", "1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82", "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82", "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82", "123456789011223344556677889998765432199983337744z81 82", "123456789011223344556677889998765432199983337744z81 82", /* X - Buffer */ Buffer (0x05) { 0x91, 0x22, 0x83, 0x81, 0x82 // ."... }, Buffer (0x05) { 0x91, 0x22, 0x83, 0x81, 0x82 // ."... }, Buffer (0x03) { 0x80, 0x81, 0x82 // ... }, Buffer (0x03) { 0x80, 0x81, 0x82 // ... }, Buffer (0x04) { 0x81, 0x82, 0x81, 0x82 // .... }, Buffer (0x04) { 0x81, 0x82, 0x81, 0x82 // .... }, Buffer (0x06) { 0x83, 0x84, 0x85, 0x86, 0x81, 0x82 // ...... }, Buffer (0x06) { 0x83, 0x84, 0x85, 0x86, 0x81, 0x82 // ...... }, Buffer (0x07) { 0x87, 0x98, 0x99, 0x9A, 0x9B, 0x81, 0x82 // ....... }, Buffer (0x07) { 0x87, 0x98, 0x99, 0x9A, 0x9B, 0x81, 0x82 // ....... }, Buffer (0x0A) { /* 0000 */ 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, // ........ /* 0008 */ 0x81, 0x82 // .. }, Buffer (0x0A) { /* 0000 */ 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, // ........ /* 0008 */ 0x81, 0x82 // .. }, Buffer (0x0B) { /* 0000 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB, // ........ /* 0008 */ 0xBC, 0x81, 0x82 // ... }, Buffer (0x0B) { /* 0000 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB, // ........ /* 0008 */ 0xBC, 0x81, 0x82 // ... }, Buffer (0xCA) { /* 0000 */ 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, 0x61, 0x62, // ...._`ab /* 0008 */ 0x63, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // c....... /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0x81, 0x82 // .. }, Buffer (0xCA) { /* 0000 */ 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, 0x61, 0x62, // ...._`ab /* 0008 */ 0x63, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // c....... /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0x81, 0x82 // .. }, Buffer (0x0103) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 00D0 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 00D8 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 00E0 */ 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, // ........ /* 00E8 */ 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, // ........ /* 00F0 */ 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, // ........ /* 00F8 */ 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, // ........ /* 0100 */ 0x01, 0x81, 0x82 // ... }, Buffer (0x0103) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 00D0 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 00D8 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 00E0 */ 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, // ........ /* 00E8 */ 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, // ........ /* 00F0 */ 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, // ........ /* 00F8 */ 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, // ........ /* 0100 */ 0x01, 0x81, 0x82 // ... }, /* X - Field Unit */ Buffer (0x10) { /* 0000 */ 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x7F, 0x00, 0x00, 0x00, 0x81, 0x82, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x07, 0x00, 0x00, 0x00, 0x81, 0x82, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x8D, 0x00, 0x00, 0x00, 0x81, 0x82, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x8D, 0x8C, 0x00, 0x00, 0x81, 0x82, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x8D, 0x8C, 0x8B, 0x8A, 0x81, 0x82, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x07) { 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x81, 0x82 // ....... }, ToUUID ("88374658-fa19-5cde-8182-000000000000"), Buffer (0x0A) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x81, 0x82 // .. }, Buffer (0x10) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x0A) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x81, 0x82 // .. }, Buffer (0x0B) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x81, 0x82 // ... }, Buffer (0x0B) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x81, 0x82 // ... }, Buffer (0x12) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x81, 0x82 // .. }, Buffer (0x12) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x81, 0x82 // .. }, Buffer (0x23) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x81, 0x82 // ... }, Buffer (0x23) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x81, 0x82 // ... }, /* X - Buffer Field */ Buffer (0x10) { /* 0000 */ 0xAB, 0x54, 0x86, 0x91, 0x00, 0x00, 0x00, 0x00, // .T...... /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0xAB, 0x54, 0x86, 0x91, 0x81, 0x82, 0x00, 0x00 // .T...... }, Buffer (0x10) { /* 0000 */ 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x07, 0x00, 0x00, 0x00, 0x81, 0x82, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x8D, 0x00, 0x00, 0x00, 0x81, 0x82, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x8D, 0x8C, 0x00, 0x00, 0x81, 0x82, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0x8D, 0x8C, 0x8B, 0x8A, 0x00, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x08) { 0x8D, 0x8C, 0x8B, 0x8A, 0x81, 0x82, 0x00, 0x00 // ........ }, Buffer (0x10) { /* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, // ........ /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x07) { 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x81, 0x82 // ....... }, ToUUID ("88374658-fa19-5cde-8182-000000000000"), Buffer (0x0A) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0x5C, // XF7....\ /* 0008 */ 0x81, 0x82 // .. }, Buffer (0x10) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x81, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ }, Buffer (0x0A) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x81, 0x82 // .. }, Buffer (0x0B) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x81, 0x82 // ... }, Buffer (0x0B) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0x00, 0x81, 0x82 // ... }, Buffer (0x12) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x81, 0x82 // .. }, Buffer (0x12) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // U....... /* 0010 */ 0x81, 0x82 // .. }, Buffer (0x23) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x81, 0x82 // ... }, Buffer (0x23) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ /* 0020 */ 0x00, 0x81, 0x82 // ... } }) If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) /* Store(0x200, df00) */ /* Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7) */ /* Store(0x300, df00) */ /* Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7) */ } Else { FLG1 = 0x01 /* (Integer ==> All other types) */ /* (All other types ==> Integer) */ COM2 = 0x02 /* Store(p000, PKG1) */ /* Store(p001, PKG2) */ M48B (OP, 0x0103) /* (String ==> All other types) */ /* (All other types ==> String) */ COM2 = 0x02 /* Store(p002, PKG1) */ /* Store(p003, PKG2) */ M48B (OP, 0x0204) /* (Buffer ==> All other types) */ /* (All other types ==> Buffer) */ COM2 = 0x02 /* Store(p004, PKG1) */ /* Store(p005, PKG2) */ M48B (OP, 0x0302) /* Store(PKG0, PKG1) */ /* Store(PKG0, PKG2) */ COM2 = 0x00 FLG1 = 0x00 } } /* ConcatenateResTemplate (rtb, rtb, Result) => Buffer */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x5ef7 */ /* Source2: 0x5ef7 */ /* Total scale of acceptable types: */ /* Source1: 0x0008 */ /* Source2: 0x0008 */ Method (M404, 1, Serialized) { Name (OP, 0x04) TS00 ("m404") If (Arg0) { M486 () DF00 = 0x030B DF01 = 0x030B Local7 = M488 (OP, 0x5FFF, 0x5FFF, 0x00, 0x00, 0x00) } Else { } } /* CondRefOf (any, Result) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x0000 */ /* Total scale of acceptable types: */ /* Source: 0x5eff */ Method (M405, 1, Serialized) { Name (OP, 0x05) TS00 ("m405") If (Arg0) { M486 () /* Error: CondRefOf fails with the Uninitialized type */ Local7 = M488 (OP, 0x01, 0x00, 0x00, 0x00, 0x00) } Else { } } /* CopyObject (any, Destination) => DataRefObject */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x0000 */ /* Total scale of acceptable types: */ /* Source: 0x5eff */ Method (M406, 1, Serialized) { Name (OP, 0x06) TS00 ("m406") If (Arg0) { M486 () /* Error: CopyObject fails with the Uninitialized type */ Local7 = M488 (OP, 0x01, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Decrement (int) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Minuend: 0x1ed1 */ /* Total scale of acceptable types: */ /* Minuend: 0x402e */ Method (M407, 1, Serialized) { Name (OP, 0x07) Name (TS, "m407") TS00 (TS) If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { Local7 = M48D (OP, 0x0102, 0x00, 0x00, 0x00, 0x12345677, 0x12345677) Local7 = M48D (OP, 0x0204, 0x00, 0x00, 0x00, 0x9875, 0x9875) Local7 = M48D (OP, 0x0209, 0x00, 0x00, 0x00, 0xFDEACB0132547697, 0x32547697) Local7 = M48D (OP, 0x0302, 0x00, 0x00, 0x00, 0x8280, 0x8280) Local7 = M48D (OP, 0x0308, 0x00, 0x00, 0x00, 0x0807060504030200, 0x04030200) Local7 = M48D (OP, 0x0506, 0x00, 0x00, 0x00, 0x5CDEFA1988374657, 0x88374657) Local7 = M48D (OP, 0x0E06, 0x00, 0x00, 0x00, 0x5CDEFA1988374657, 0x88374657) /* Exceptions */ Local7 = M48D (OP, 0x0202, 0x00, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x020A, 0x00, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x0210, 0x00, 0x00, 0x00, "Exc", "Exc") } } /* DerefOf ({ref|str}) => Object */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x5fff */ /* Total scale of acceptable types: */ /* Source: 0x0000 */ Method (M408, 1, Serialized) { Name (OP, 0x08) TS00 ("m408") If (Arg0) { M486 () Local7 = M488 (OP, 0x5FFF, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Divide (int, int, Remainder, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Dividend: 0x1ed1 */ /* Divisor: 0x1ed1 */ /* Total scale of acceptable types: */ /* Dividend: 0x402e */ /* Divisor: 0x402e */ Method (M409, 1, Serialized) { Name (OP, 0x09) TS00 ("m409") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { Local7 = M48D (OP, 0x0102, 0x0102, 0x00, 0x00, 0x01, 0x01) Local7 = M48D (OP, 0x0103, 0x0102, 0x00, 0x00, 0x0000000971C214EA, 0x03) Local7 = M48D (OP, 0x0204, 0x0102, 0x00, 0x00, 0x00, 0x00) Local7 = M48D (OP, 0x0209, 0x0102, 0x00, 0x00, 0x0000000DF2B5C737, 0x02) Local7 = M48D (OP, 0x0302, 0x0102, 0x00, 0x00, 0x00, 0x00) Local7 = M48D (OP, 0x0308, 0x0102, 0x00, 0x00, 0x70E2C4AA, 0x00) Local7 = M48D (OP, 0x0506, 0x0102, 0x00, 0x00, 0x0000000519FF9D32, 0x07) Local7 = M48D (OP, 0x0E06, 0x0102, 0x00, 0x00, 0x0000000519FF9D32, 0x07) Local7 = M48D (OP, 0x0103, 0x0204, 0x00, 0x00, 0x000120B0A1E2C2D5, 0x6F2A) /* Exceptions */ Local7 = M48D (OP, 0x0202, 0x0102, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x020A, 0x0102, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x0210, 0x0102, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x0102, 0x0202, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x0102, 0x020A, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x0102, 0x0210, 0x00, 0x00, "Exc", "Exc") } } /* Fatal (byt, dwd, int) */ /* */ /* iasl: "Fatal operator requires [Integer|String|Buffer]" */ /* Total scale of unacceptable types: */ /* Arg: 0x1ed1 */ /* Total scale of acceptable types: */ /* Arg: 0x402e */ Method (M410, 1, Serialized) { Name (OP, 0x0A) TS00 ("m410") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { } } /* FindSetLeftBit (int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source: 0x402e */ Method (M411, 1, Serialized) { Name (OP, 0x0B) TS00 ("m411") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { Local7 = M48D (OP, 0x0102, 0x00, 0x00, 0x00, 0x1D, 0x1D) Local7 = M48D (OP, 0x0204, 0x00, 0x00, 0x00, 0x10, 0x10) Local7 = M48D (OP, 0x0206, 0x00, 0x00, 0x00, 0x3D, 0x20) /* Exceptions */ Local7 = M48D (OP, 0x0202, 0x00, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x020A, 0x00, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x0210, 0x00, 0x00, 0x00, "Exc", "Exc") } } /* FindSetRightBit (int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source: 0x402e */ Method (M412, 1, Serialized) { Name (OP, 0x0C) TS00 ("m412") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { Local7 = M48D (OP, 0x0102, 0x00, 0x00, 0x00, 0x04, 0x04) Local7 = M48D (OP, 0x0204, 0x00, 0x00, 0x00, 0x02, 0x02) Local7 = M48D (OP, 0x0206, 0x00, 0x00, 0x00, 0x03, 0x03) /* Exceptions */ Local7 = M48D (OP, 0x0202, 0x00, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x020A, 0x00, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x0210, 0x00, 0x00, 0x00, "Exc", "Exc") } } /* FromBCD (int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* BCDValue: 0x1ed1 */ /* Total scale of acceptable types: */ /* BCDValue: 0x402e */ Method (M413, 1, Serialized) { Name (OP, 0x0D) TS00 ("m413") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Increment (int) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Addend: 0x1ed1 */ /* Total scale of acceptable types: */ /* Addend: 0x402e */ Method (M414, 1, Serialized) { Name (OP, 0x0E) TS00 ("m414") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { Local7 = M48D (OP, 0x0102, 0x00, 0x00, 0x00, 0x12345679, 0x12345679) Local7 = M48D (OP, 0x0204, 0x00, 0x00, 0x00, 0x9877, 0x9877) Local7 = M48D (OP, 0x0209, 0x00, 0x00, 0x00, 0xFDEACB0132547699, 0x32547699) Local7 = M48D (OP, 0x0302, 0x00, 0x00, 0x00, 0x8282, 0x8282) Local7 = M48D (OP, 0x0308, 0x00, 0x00, 0x00, 0x0807060504030202, 0x04030202) Local7 = M48D (OP, 0x0506, 0x00, 0x00, 0x00, 0x5CDEFA1988374659, 0x88374659) Local7 = M48D (OP, 0x0E06, 0x00, 0x00, 0x00, 0x5CDEFA1988374659, 0x88374659) /* Exceptions */ Local7 = M48D (OP, 0x0202, 0x00, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x020A, 0x00, 0x00, 0x00, "Exc", "Exc") Local7 = M48D (OP, 0x0210, 0x00, 0x00, 0x00, "Exc", "Exc") } } /* Index ({str|buf|pkg}, int, Destination) => ObjectReference */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x5fe3 */ /* Index: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source: 0x001c */ /* Index: 0x402e */ Method (M415, 1, Serialized) { Name (OP, 0x0F) TS00 ("m415") If (Arg0) { M486 () DF00 = 0x0200 DF01 = 0x0104 /* Zero */ Local7 = M488 (OP, 0x5FE3, 0x1ED1, 0x00, 0x00, 0x00) /* // The action above together with those below generates exception Store(0x300, df00) Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7) Store(0x400, df00) Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7) */ } Else { } } /* LAnd (int, int) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M416, 1, Serialized) { Name (OP, 0x10) TS00 ("m416") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* LEqual ({int|str|buf}, {int|str|buf}) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M417, 1, Serialized) { Name (OP, 0x11) TS00 ("m417") /* Expected results: 64-bit, 32-bit */ Name (P000, Package (0x62) { /* X - Integer */ Zero, Zero, /* X - String */ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", /* X - Buffer */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Field Unit */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P001, Package (0x62) { /* X - Integer */ Zero, Zero, /* X - String */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Field Unit */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P002, Package (0x62) { /* X - Integer */ Zero, Zero, /* X - String */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc", /* X - Field Unit */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P003, Package (0x62) { /* X - Integer */ Zero, Zero, /* X - String */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Field Unit */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P004, Package (0x62) { /* X - Integer */ Zero, Zero, /* X - String */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Field Unit */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P005, Package (0x62) { /* X - Integer */ Zero, Zero, /* X - String */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Field Unit */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { FLG1 = 0x01 /* (Integer ==> All other types) */ /* (All other types ==> Integer)2556 */ COM2 = 0x02 /* Store(p000, PKG1) */ /* Store(p001, PKG2) */ M48B (OP, 0x0103) /* (String ==> All other types) */ /* (All other types ==> String) */ COM2 = 0x02 /* Store(p002, PKG1) */ /* Store(p003, PKG2) */ M48B (OP, 0x0204) /* (Buffer ==> All other types) */ /* (All other types ==> Buffer) */ COM2 = 0x02 /* Store(p004, PKG1) */ /* Store(p005, PKG2) */ M48B (OP, 0x0302) /* Store(PKG0, PKG1) */ /* Store(PKG0, PKG2) */ COM2 = 0x00 FLG1 = 0x00 } } /* LGreater ({int|str|buf}, {int|str|buf}) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M418, 1, Serialized) { Name (OP, 0x12) TS00 ("m418") /* Expected results: 64-bit, 32-bit */ Name (P000, Package (0x62) { /* X - Integer, (0) */ Ones, Zero, /* X - String, (1) */ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Ones, Zero, Zero, Ones, "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", /* X - Buffer, (18) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, /* X - Buffer Field, (38) */ Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P001, Package (0x62) { /* X - Integer, (0) */ Zero, Ones, /* X - String, (1) */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, /* X - Buffer, (18) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P002, Package (0x62) { /* X - Integer, (0) */ Ones, Ones, /* X - String, (1) */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, /* X - Buffer, (18) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc", /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P003, Package (0x62) { /* X - Integer, (0) */ Ones, Ones, /* X - String, (1) */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, /* X - Buffer, (18) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P004, Package (0x62) { /* X - Integer, (0) */ Ones, Ones, /* X - String, (1) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer, (18) */ Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P005, Package (0x62) { /* X - Integer, (0) */ Ones, Ones, /* X - String, (1) */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, /* X - Buffer, (18) */ Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Ones, Ones }) If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { FLG1 = 0x01 /* (Integer ==> All other types) */ /* (All other types ==> Integer) */ COM2 = 0x02 /* Store(p000, PKG1) */ /* Store(p001, PKG2) */ M48B (OP, 0x0103) /* (String ==> All other types) */ /* (All other types ==> String) */ COM2 = 0x02 /* Store(p002, PKG1) */ /* Store(p003, PKG2) */ M48B (OP, 0x0204) /* (Buffer ==> All other types) */ /* (All other types ==> Buffer) */ COM2 = 0x02 /* Store(p004, PKG1) */ /* Store(p005, PKG2) */ M48B (OP, 0x0302) /* Store(PKG0, PKG1) */ /* Store(PKG0, PKG2) */ COM2 = 0x00 FLG1 = 0x00 } } /* LGreaterEqual ({int|str|buf}, {int|str|buf}) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M419, 1, Serialized) { Name (OP, 0x13) TS00 ("m419") /* Expected results: 64-bit, 32-bit */ Name (P000, Package (0x62) { /* X - Integer, (0) */ Ones, Zero, /* X - String, (1) */ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Ones, Zero, Zero, Ones, "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", /* X - Buffer, (18) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, /* X - Buffer Field, (38) */ Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P001, Package (0x62) { /* X - Integer, (0) */ Zero, Ones, /* X - String, (1) */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, /* X - Buffer, (18) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P002, Package (0x62) { /* X - Integer, (0) */ Ones, Ones, /* X - String, (1) */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, /* X - Buffer, (18) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc", /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P003, Package (0x62) { /* X - Integer, (0) */ Ones, Ones, /* X - String, (1) */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, /* X - Buffer, (18) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P004, Package (0x62) { /* X - Integer, (0) */ Ones, Ones, /* X - String, (1) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer, (18) */ Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P005, Package (0x62) { /* X - Integer, (0) */ Ones, Ones, /* X - String, (1) */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, /* X - Buffer, (18) */ Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Ones, Ones }) If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { FLG1 = 0x01 /* (Integer ==> All other types) */ /* (All other types ==> Integer) */ COM2 = 0x02 /* Store(p000, PKG1) */ /* Store(p001, PKG2) */ M48B (OP, 0x0103) /* (String ==> All other types) */ /* (All other types ==> String) */ COM2 = 0x02 /* Store(p002, PKG1) */ /* Store(p003, PKG2) */ M48B (OP, 0x0204) /* (Buffer ==> All other types) */ /* (All other types ==> Buffer) */ COM2 = 0x02 /* Store(p004, PKG1) */ /* Store(p005, PKG2) */ M48B (OP, 0x0302) /* Store(PKG0, PKG1) */ /* Store(PKG0, PKG2) */ COM2 = 0x00 FLG1 = 0x00 } } /* LLess ({int|str|buf}, {int|str|buf}) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M420, 1, Serialized) { Name (OP, 0x14) TS00 ("m420") /* Expected results: 64-bit, 32-bit */ Name (P000, Package (0x62) { /* X - Integer, (0) */ Zero, Ones, /* X - String, (1) */ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Zero, Ones, Ones, Zero, "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", /* X - Buffer, (18) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, /* X - Buffer Field, (38) */ Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P001, Package (0x62) { /* X - Integer, (0) */ Ones, Zero, /* X - String, (1) */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, /* X - Buffer, (18) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P002, Package (0x62) { /* X - Integer, (0) */ Zero, Zero, /* X - String, (1) */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, /* X - Buffer, (18) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc", /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P003, Package (0x62) { /* X - Integer, (0) */ Zero, Zero, /* X - String, (1) */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, /* X - Buffer, (18) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P004, Package (0x62) { /* X - Integer, (0) */ Zero, Zero, /* X - String, (1) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer, (18) */ Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P005, Package (0x62) { /* X - Integer, (0) */ Zero, Zero, /* X - String, (1) */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, /* X - Buffer, (18) */ Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Zero, Zero }) If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { FLG1 = 0x01 /* (Integer ==> All other types) */ /* (All other types ==> Integer) */ COM2 = 0x02 /* Store(p000, PKG1) */ /* Store(p001, PKG2) */ M48B (OP, 0x0103) /* (String ==> All other types) */ /* (All other types ==> String) */ COM2 = 0x02 /* Store(p002, PKG1) */ /* Store(p003, PKG2) */ M48B (OP, 0x0204) /* (Buffer ==> All other types) */ /* (All other types ==> Buffer) */ COM2 = 0x02 /* Store(p004, PKG1) */ /* Store(p005, PKG2) */ M48B (OP, 0x0302) /* Store(PKG0, PKG1) */ /* Store(PKG0, PKG2) */ COM2 = 0x00 FLG1 = 0x00 } } /* LLessEqual ({int|str|buf}, {int|str|buf}) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M421, 1, Serialized) { Name (OP, 0x15) TS00 ("m421") /* Expected results: 64-bit, 32-bit */ Name (P000, Package (0x62) { /* X - Integer, (0) */ Zero, Ones, /* X - String, (1) */ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Zero, Ones, Ones, Zero, "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", /* X - Buffer, (18) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, /* X - Buffer Field, (38) */ Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P001, Package (0x62) { /* X - Integer, (0) */ Ones, Zero, /* X - String, (1) */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, /* X - Buffer, (18) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P002, Package (0x62) { /* X - Integer, (0) */ Zero, Zero, /* X - String, (1) */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, /* X - Buffer, (18) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc", /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P003, Package (0x62) { /* X - Integer, (0) */ Zero, Zero, /* X - String, (1) */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, /* X - Buffer, (18) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero }) /* Expected results: 64-bit, 32-bit */ Name (P004, Package (0x62) { /* X - Integer, (0) */ Zero, Zero, /* X - String, (1) */ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, /* X - Buffer, (18) */ Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, /* X - Field Unit, (27) */ Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, /* X - Buffer Field, (38) */ Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P005, Package (0x62) { /* X - Integer, (0) */ Zero, Zero, /* X - String, (1) */ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, /* X - Buffer, (18) */ Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, /* X - Field Unit, (27) */ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Zero, Zero, /* X - Buffer Field, (38) */ Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero, Zero, Zero }) If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { FLG1 = 0x01 /* (Integer ==> All other types) */ /* (All other types ==> Integer) */ COM2 = 0x02 /* Store(p000, PKG1) */ /* Store(p001, PKG2) */ M48B (OP, 0x0103) /* (String ==> All other types) */ /* (All other types ==> String) */ COM2 = 0x02 /* Store(p002, PKG1) */ /* Store(p003, PKG2) */ M48B (OP, 0x0204) /* (Buffer ==> All other types) */ /* (All other types ==> Buffer) */ COM2 = 0x02 /* Store(p004, PKG1) */ /* Store(p005, PKG2) */ M48B (OP, 0x0302) /* Store(PKG0, PKG1) */ /* Store(PKG0, PKG2) */ COM2 = 0x00 FLG1 = 0x00 } } /* LNot (int) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source: 0x402e */ Method (M422, 1, Serialized) { Name (OP, 0x16) TS00 ("m422") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { } } /* LNotEqual ({int|str|buf}, {int|str|buf}) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M423, 1, Serialized) { Name (OP, 0x17) TS00 ("m423") /* Expected results: 64-bit, 32-bit */ Name (P000, Package (0x62) { /* X - Integer */ Ones, Ones, /* X - String */ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", /* X - Buffer */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Field Unit */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P001, Package (0x62) { /* X - Integer */ Ones, Ones, /* X - String */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Field Unit */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P002, Package (0x62) { /* X - Integer */ Ones, Ones, /* X - String */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc", /* X - Field Unit */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P003, Package (0x62) { /* X - Integer */ Ones, Ones, /* X - String */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Field Unit */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P004, Package (0x62) { /* X - Integer */ Ones, Ones, /* X - String */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Field Unit */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) /* Expected results: 64-bit, 32-bit */ Name (P005, Package (0x62) { /* X - Integer */ Ones, Ones, /* X - String */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer */ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Field Unit */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, /* X - Buffer Field */ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones }) If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { FLG1 = 0x01 /* (Integer ==> All other types) */ /* (All other types ==> Integer) */ COM2 = 0x02 /* Store(p000, PKG1) */ /* Store(p001, PKG2) */ M48B (OP, 0x0103) /* (String ==> All other types) */ /* (All other types ==> String) */ COM2 = 0x02 /* Store(p002, PKG1) */ /* Store(p003, PKG2) */ M48B (OP, 0x0204) /* (Buffer ==> All other types) */ /* (All other types ==> Buffer) */ COM2 = 0x02 /* Store(p004, PKG1) */ /* Store(p005, PKG2) */ M48B (OP, 0x0302) /* Store(PKG0, PKG1) */ /* Store(PKG0, PKG2) */ COM2 = 0x00 FLG1 = 0x00 } } /* LOr (int, int) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M424, 1, Serialized) { Name (OP, 0x18) TS00 ("m424") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* Match (pkg, byt, int, byt, int, int) => Ones | Integer */ /* */ /* Total scale of unacceptable types: */ /* */ /* Total Currently excluded from it */ /* SearchPackage: 0x5eef */ /* MatchObject1: 0x1ed1 */ /* MatchObject2: 0x1ed1 0x1ed1 (causes error) */ /* StartIndex: 0x1ed1 0x1ed1 (causes error) */ /* Total scale of acceptable types: */ /* SearchPackage: 0x0010 */ /* MatchObject1: 0x402e */ /* MatchObject2: 0x402e */ /* StartIndex: 0x402e */ Method (M425, 1, Serialized) { Name (OP, 0x19) TS00 ("m425") If (Arg0) { M486 () DF00 = 0x0400 DF01 = 0x0100 DF02 = 0x0100 DF03 = 0x0100 DF04 = 0x0100 Local7 = M488 (OP, 0x5EEF, 0x00, 0x1ED1, 0x00, 0x00) } Else { } } /* Mid ({str|buf}, int, int, Result) => Buffer or String */ /* */ /* Total scale of unacceptable types: */ /* */ /* Total Currently excluded from it */ /* Source: 0x1ed1 */ /* Index: 0x1ed1 0x0400 Op.Region (causes error) */ /* Length: 0x1ed1 0x0400 Op.Region (causes error) */ /* Total scale of acceptable types: */ /* Source: 0x402e */ /* Index: 0x402e */ /* Length: 0x402e */ Method (M426, 1, Serialized) { Name (OP, 0x1A) TS00 ("m426") If (Arg0) { M486 () DF00 = 0x0200 DF01 = 0x0100 DF02 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1AD1, 0x1AD1, 0x00, 0x00) } Else { } } /* Mod (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Dividend: 0x1ed1 */ /* Divisor: 0x1ed1 */ /* Total scale of acceptable types: */ /* Dividend: 0x402e */ /* Divisor: 0x402e */ Method (M427, 1, Serialized) { Name (OP, 0x1B) TS00 ("m427") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* Multiply (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Multiplicand: 0x1ed1 */ /* Multiplier: 0x1ed1 */ /* Total scale of acceptable types: */ /* Multiplicand: 0x402e */ /* Multiplier: 0x402e */ Method (M428, 1, Serialized) { Name (OP, 0x1C) TS00 ("m428") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* NAnd (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M429, 1, Serialized) { Name (OP, 0x1D) TS00 ("m429") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* NOr (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M430, 1, Serialized) { Name (OP, 0x1E) TS00 ("m430") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* Not (int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source: 0x402e */ Method (M431, 1, Serialized) { Name (OP, 0x1F) TS00 ("m431") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { } } /* ObjectType (any) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Object: 0x0000 */ /* Total scale of acceptable types: */ /* Object: 0x5eff */ Method (M432, 1, Serialized) { Name (OP, 0x20) TS00 ("m432") If (Arg0) { M486 () /* Error: ObjectType fails with the Uninitialized type */ Local7 = M488 (OP, 0x01, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Or (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M433, 1, Serialized) { Name (OP, 0x21) TS00 ("m433") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* RefOf (any) => ObjectReference */ /* */ /* Total scale of unacceptable types: */ /* Object: 0x0000 */ /* Total scale of acceptable types: */ /* Object: 0x5eff */ Method (M434, 1, Serialized) { Name (OP, 0x22) TS00 ("m434") If (Arg0) { M486 () /* Error: RefOf fails with the Uninitialized type */ Local7 = M488 (OP, 0x01, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Release (mux) */ /* */ /* Total scale of unacceptable types: */ /* SyncObject: 0x5cff */ /* Total scale of acceptable types: */ /* SyncObject: 0x0200 */ Method (M435, 1, Serialized) { Name (OP, 0x23) TS00 ("m435") If (Arg0) { M486 () Local7 = M488 (OP, 0x5CFF, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Reset (evt) */ /* */ /* Total scale of unacceptable types: */ /* SyncObject: 0x5e7f */ /* Total scale of acceptable types: */ /* SyncObject: 0x0080 */ Method (M436, 1, Serialized) { Name (OP, 0x24) TS00 ("m436") If (Arg0) { M486 () Local7 = M488 (OP, 0x5E7F, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Return ({any|ref}) */ /* */ /* Total scale of unacceptable types: */ /* Arg: 0x0000 */ /* Total scale of acceptable types: */ /* Arg: 0x5eff */ Method (M437, 1, Serialized) { Name (OP, 0x25) TS00 ("m437") If (Arg0) { M486 () /* Error: Return fails with the Uninitialized type */ Local7 = M488 (OP, 0x01, 0x00, 0x00, 0x00, 0x00) } Else { } } /* ShiftLeft (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x1ed1 */ /* ShiftCount: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source: 0x402e */ /* ShiftCount: 0x402e */ Method (M438, 1, Serialized) { Name (OP, 0x26) TS00 ("m438") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* ShiftRight (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x1ed1 */ /* ShiftCount: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source: 0x402e */ /* ShiftCount: 0x402e */ Method (M439, 1, Serialized) { Name (OP, 0x27) TS00 ("m439") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* Signal (evt) */ /* */ /* Total scale of unacceptable types: */ /* SyncObject: 0x5e7f */ /* Total scale of acceptable types: */ /* SyncObject: 0x0080 */ Method (M440, 1, Serialized) { Name (OP, 0x28) TS00 ("m440") If (Arg0) { M486 () Local7 = M488 (OP, 0x5E7F, 0x00, 0x00, 0x00, 0x00) } Else { } } /* SizeOf ({int|str|buf|pkg}) => Integer */ /* */ /* Total scale of unacceptable types: */ /* ObjectName: 0x5ee3 */ /* Total scale of acceptable types: */ /* ObjectName: 0x004c */ Method (M441, 1, Serialized) { Name (OP, 0x29) TS00 ("m441") If (Arg0) { M486 () Local7 = M488 (OP, 0x5EE3, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Sleep (int) */ /* */ /* Total scale of unacceptable types: */ /* MilliSeconds: 0x1ed1 */ /* Total scale of acceptable types: */ /* MilliSeconds: 0x402e */ Method (M442, 1, Serialized) { Name (OP, 0x2A) TS00 ("m442") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Stall (int) */ /* */ /* Total scale of unacceptable types: */ /* MicroSeconds: 0x1ed1 */ /* Total scale of acceptable types: */ /* MicroSeconds: 0x402e */ Method (M443, 1, Serialized) { Name (OP, 0x2B) TS00 ("m443") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Store (any, Destination) => DataRefObject */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x0000 */ /* Total scale of acceptable types: */ /* Source: 0x5eff */ Method (M444, 1, Serialized) { Name (OP, 0x2C) TS00 ("m444") If (Arg0) { M486 () /* Error: Store fails with the Uninitialized type */ Local7 = M488 (OP, 0x01, 0x00, 0x00, 0x00, 0x00) } Else { } } /* Subtract (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Minuend: 0x1ed1 */ /* Subtrahend: 0x1ed1 */ /* Total scale of acceptable types: */ /* Minuend: 0x402e */ /* Subtrahend: 0x402e */ Method (M445, 1, Serialized) { Name (OP, 0x2D) TS00 ("m445") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* ToBCD (int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Value: 0x1ed1 */ /* Total scale of acceptable types: */ /* Value: 0x402e */ Method (M446, 1, Serialized) { Name (OP, 0x2E) TS00 ("m446") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { } } /* ToBuffer ({int|str|buf}, Result) => Buffer */ /* */ /* Total scale of unacceptable types: */ /* Data: 0x1ed1 */ /* Total scale of acceptable types: */ /* Data: 0x402e */ Method (M447, 1, Serialized) { Name (OP, 0x2F) TS00 ("m447") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { } } /* ToDecimalString ({int|str|buf}, Result) => String */ /* */ /* Total scale of unacceptable types: */ /* Data: 0x1ed1 */ /* Total scale of acceptable types: */ /* Data: 0x402e */ Method (M448, 1, Serialized) { Name (OP, 0x30) TS00 ("m448") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { Local7 = M48D (OP, 0x0102, 0x00, 0x00, 0x00, "305419896", "305419896") Local7 = M48D (OP, 0x0204, 0x00, 0x00, 0x00, "9876", "9876") Local7 = M48D (OP, 0x0209, 0x00, 0x00, 0x00, "FdeAcb0132547698", "FdeAcb0132547698") Local7 = M48D (OP, 0x0302, 0x00, 0x00, 0x00, "129,130", "129,130") Local7 = M48D (OP, 0x0303, 0x00, 0x00, 0x00, "131,132,133,134", "131,132,133,134") Local7 = M48D (OP, 0x0506, 0x00, 0x00, 0x00, "6692061083885586008", "88,70,55,136,25,250,198,82") Local7 = M48D (OP, 0x0E06, 0x00, 0x00, 0x00, "6692061083885586008", "88,70,55,136,25,250,198,82") } } /* ToHexString ({int|str|buf}, Result) => String */ /* */ /* Total scale of unacceptable types: */ /* Data: 0x1ed1 */ /* Total scale of acceptable types: */ /* Data: 0x402e */ Method (M449, 1, Serialized) { Name (OP, 0x31) TS00 ("m449") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { Local7 = M48D (OP, 0x0102, 0x00, 0x00, 0x00, "0000000012345678", "12345678") Local7 = M48D (OP, 0x0204, 0x00, 0x00, 0x00, "9876", "9876") Local7 = M48D (OP, 0x0209, 0x00, 0x00, 0x00, "FdeAcb0132547698", "FdeAcb0132547698") Local7 = M48D (OP, 0x0302, 0x00, 0x00, 0x00, "81,82", "81,82") Local7 = M48D (OP, 0x0303, 0x00, 0x00, 0x00, "83,84,85,86", "83,84,85,86") Local7 = M48D (OP, 0x0506, 0x00, 0x00, 0x00, "6692061083885586008", "58,46,37,88,19,FA,C6,52") Local7 = M48D (OP, 0x0E06, 0x00, 0x00, 0x00, "6692061083885586008", "58,46,37,88,19,FA,C6,52") } } /* ToInteger ({int|str|buf}, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Data: 0x1ed1 */ /* Total scale of acceptable types: */ /* Data: 0x402e */ Method (M450, 1, Serialized) { Name (OP, 0x32) TS00 ("m450") If (Arg0) { M486 () Local7 = M488 (OP, 0x1ED1, 0x00, 0x00, 0x00, 0x00) } Else { Local7 = M48D (OP, 0x0102, 0x00, 0x00, 0x00, 0x12345678, 0x12345678) Local7 = M48D (OP, 0x0204, 0x00, 0x00, 0x00, 0x9876, 0x9876) Local7 = M48D (OP, 0x0211, 0x00, 0x00, 0x00, 0xF1DAB98E0D794BC5, 0x0D794BC5) Local7 = M48D (OP, 0x0302, 0x00, 0x00, 0x00, 0x8281, 0x8281) Local7 = M48D (OP, 0x0303, 0x00, 0x00, 0x00, 0x86858483, 0x86858483) Local7 = M48D (OP, 0x0506, 0x00, 0x00, 0x00, 0x52C6FA1988374658, 0x88374658) Local7 = M48D (OP, 0x0E06, 0x00, 0x00, 0x00, 0x52C6FA1988374658, 0x88374658) } } /* ToString (buf, int, Result) => String */ /* */ /* Total scale of unacceptable types: */ /* Source: 0x1ed1 */ /* Length: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source: 0x402e */ /* Length: 0x402e */ Method (M451, 1, Serialized) { Name (OP, 0x33) TS00 ("m451") If (Arg0) { M486 () DF00 = 0x0300 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* Wait (evt, int) => Boolean */ /* */ /* Total scale of unacceptable types: */ /* SyncObject: 0x5e7f */ /* SyncObject: 0x1ed1 */ /* Total scale of acceptable types: */ /* SyncObject: 0x0080 */ /* SyncObject: 0x402e */ Method (M452, 1, Serialized) { Name (OP, 0x34) TS00 ("m452") If (Arg0) { M486 () DF00 = 0x0700 DF01 = 0x0100 Local7 = M488 (OP, 0x5E7F, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } /* XOr (int, int, Result) => Integer */ /* */ /* Total scale of unacceptable types: */ /* Source1: 0x1ed1 */ /* Source2: 0x1ed1 */ /* Total scale of acceptable types: */ /* Source1: 0x402e */ /* Source2: 0x402e */ Method (M453, 1, Serialized) { Name (OP, 0x35) TS00 ("m453") If (Arg0) { M486 () DF00 = 0x0100 DF01 = 0x0100 Local7 = M488 (OP, 0x1ED1, 0x1ED1, 0x00, 0x00, 0x00) } Else { } } Method (M460, 1, Serialized) { If (0x01) { M400 (Arg0) M401 (Arg0) M402 (Arg0) M403 (Arg0) M404 (Arg0) M405 (Arg0) M406 (Arg0) M407 (Arg0) M408 (Arg0) M409 (Arg0) M410 (Arg0) M411 (Arg0) M412 (Arg0) M413 (Arg0) M414 (Arg0) M415 (Arg0) M416 (Arg0) M417 (Arg0) M418 (Arg0) M419 (Arg0) M420 (Arg0) M421 (Arg0) M422 (Arg0) M423 (Arg0) M424 (Arg0) M425 (Arg0) M426 (Arg0) M427 (Arg0) M428 (Arg0) M429 (Arg0) M430 (Arg0) M431 (Arg0) M432 (Arg0) M433 (Arg0) M434 (Arg0) M435 (Arg0) M436 (Arg0) M437 (Arg0) M438 (Arg0) M439 (Arg0) M440 (Arg0) M441 (Arg0) M442 (Arg0) M443 (Arg0) M444 (Arg0) M445 (Arg0) M446 (Arg0) M447 (Arg0) M448 (Arg0) M449 (Arg0) M450 (Arg0) M451 (Arg0) M452 (Arg0) M453 (Arg0) } Else { /* m400(arg0) */ /* m401(arg0) */ /* m402(arg0) */ /* m403(arg0) */ /* m407(arg0) */ /* m409(arg0) */ /* m411(arg0) */ /* m412(arg0) */ /* m414(arg0) */ /* m417(arg0) */ /* m418(arg0) */ /* m448(arg0) */ /* m449(arg0) */ /* m450(arg0) */ /* m400(arg0) */ M401 (Arg0) } If (0x00) { Name (XXXX, 0x00) Name (B000, Buffer (0x0A){}) Name (S000, "000000000000000000000000000000") Debug = "-=-=-=-=-=-=-=-=-=-=-=" Local0 = (0x0A > 0x05) Debug = Local0 Local0 = (0x05 > 0x0A) Debug = Local0 Local0 = ("11" > 0x11) Debug = Local0 Local0 = ("11" == 0x11) Debug = Local0 XXXX = "11" Debug = XXXX /* \M460.XXXX */ Local0 = ("11" > 0x0FFFFFFF) Debug = Local0 Local0 = (0x12 > "11") Debug = Local0 XXXX = "1234567890abCdeF" Debug = XXXX /* \M460.XXXX */ XXXX = "FdeAcb0132547698" Debug = XXXX /* \M460.XXXX */ XXXX = "FdeAcb0132547698" Debug = XXXX /* \M460.XXXX */ /* [ACPI Debug] Integer: 0x90ABCDEF */ /* [ACPI Debug] Integer: 0x32547698 */ B000 = "qwrt" Debug = B000 /* \M460.B000 */ /* 71 77 72 74 00 00 00 00 00 00 */ S000 = 0xABEDF18942345678 Debug = S000 /* \M460.S000 */ /* "ABEDF18942345678" */ B000 = "ABEDF18942345678" Debug = B000 /* \M460.B000 */ /* 41 42 45 44 46 31 38 39 34 32 */ } } acpica-unix-20250404/tests/aslts/src/runtime/common/conversion/rproc.asl0000700000175000017500000001024414773714160025574 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Name (Z066, 0x42) /* Verify result */ /* */ /* arg0 - name of test */ /* arg1 - results Package */ /* arg2 - index of four results */ /* arg3 - indication of Result */ /* arg4 - indication of ComputationalData */ /* arg5 - Result */ /* arg6 - ComputationalData */ Method (M4C1, 7, Serialized) { Name (TMP0, 0x00) Name (TMP1, 0x00) Name (LPC0, 0x00) LPC0 = (Arg2 * 0x04) If (Arg3) { /* Result */ /* Benchmark of Result */ Local0 = DerefOf (Arg1 [LPC0]) LPC0++ Local1 = DerefOf (Arg1 [LPC0]) TMP0 = ObjectType (Arg5) If (F64) { TMP1 = ObjectType (Local0) If ((TMP0 != TMP1)) { ERR (Arg0, Z066, __LINE__, 0x00, 0x00, TMP0, TMP1) } ElseIf ((Arg5 != Local0)) { ERR (Arg0, Z066, __LINE__, 0x00, 0x00, Arg5, Local0) } } Else { TMP1 = ObjectType (Local1) If ((TMP0 != TMP1)) { ERR (Arg0, Z066, __LINE__, 0x00, 0x00, TMP0, TMP1) } ElseIf ((Arg5 != Local1)) { ERR (Arg0, Z066, __LINE__, 0x00, 0x00, Arg5, Local1) } } } Else { LPC0++ } If (Arg4) { /* ComputationalData */ /* Benchmark of ComputationalData */ LPC0++ Local2 = DerefOf (Arg1 [LPC0]) LPC0++ Local3 = DerefOf (Arg1 [LPC0]) TMP0 = ObjectType (Arg6) If (F64) { TMP1 = ObjectType (Local2) If ((TMP0 != TMP1)) { ERR (Arg0, Z066, __LINE__, 0x00, 0x00, TMP0, TMP1) } ElseIf ((Arg6 != Local2)) { ERR (Arg0, Z066, __LINE__, 0x00, 0x00, Arg6, Local2) } } Else { TMP1 = ObjectType (Local3) If ((TMP0 != TMP1)) { ERR (Arg0, Z066, __LINE__, 0x00, 0x00, TMP0, TMP1) } ElseIf ((Arg6 != Local3)) { ERR (Arg0, Z066, __LINE__, 0x00, 0x00, Arg6, Local3) } } } } acpica-unix-20250404/tests/aslts/src/runtime/common/conversion/rDECL.asl0000700000175000017500000000331114773714160025335 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Implicit Result Object Conversion Include("../../../../runtime/common/conversion/rproc.asl") Include("../../../../runtime/common/conversion/rtest.asl") acpica-unix-20250404/tests/aslts/src/runtime/common/conversion/oDECL.asl0000700000175000017500000000337714773714160025346 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Implicit Source Operand Conversion Include("../../../../runtime/common/operations.asl") Include("../../../../runtime/common/conversion/oproc.asl") Include("../../../../runtime/common/conversion/otest.asl") acpica-unix-20250404/tests/aslts/src/runtime/common/conversion/oproc.asl0000700000175000017500000011777114773714160025606 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ============================ !!!!!!!!!!!!!!!!!!!!!!!!!!!! IT IS IN PROGRESS !!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!! ============================ SEE: ???????????? 1) Add 0 into the middle of any Buffer 2) Do BOTH directions for Concatenation: - First argument - String - First argument - Buffer 3) Extend the test, if possible, for all the operators 4) add method m480 with the different objects creations. 5) change Name(ss08, "1234567890abCdeF") to Name(ss08, "1234567830abCdeF") 6) do the same as m480() but use LocalX instead ArgX in Operators invocations: Store(Add(Local0, Local1, Local7), local7) */ /* Methods for Conversion tests */ /* */ /* (low number of available arguments {Arg0-Arg6} complicates algorithms). */ /* */ /* Currently from the mask of exceptions to be forced are excluded bits */ /* corresponding to the following types ("don't know how" have to be added): */ /* */ /* - Method (don't know how) */ /* - Thermal Zones (don't know how) */ /* - DDB Handle (don't know how) */ /* - Debug Object (impossible, Compiler refuses) */ /* - Uninitialized (update needed, currently the test is implemented incorrectly. */ /* Uninitialized type have to be passed immediately as operands */ /* in m480). */ /* */ /* Currently excluded from all the total scales of unacceptable types */ /* (to be added later): */ /* */ /* 0x0100 - Method */ /* 0x2000 - Thermal Zone */ /* 0x8000 - DDB Handle */ /* */ /* Total scale of acceptable types: */ /* */ /* int - 0xc02e - Integer, String, Buffer, Field Unit, Buffer Field, DDB Handle */ /* */ /* NOTE: many entries are commented not to cause crashes. */ /* Have to be uncommented after ACPICA will be fixed. */ /* */ Name (Z064, 0x40) /* Commutative two operands operation */ /* (CAUTION: don't forget to clean it) */ Name (COM2, 0x00) /* Flags exception expected */ /* (needed due to the lack of Arguments number) */ Name (FLG0, 0x19283746) /* Flag - verify result with the contents of Package */ Name (FLG1, 0x00) /* Package contains benchmarks of results */ Name (PKG0, Package (0x01) { 0x10000001 }) Name (PKG1, Package (0x01) { 0x11111111 }) Name (PKG2, Package (0x01) { 0x22222222 }) Name (DF00, 0x00) Name (DF01, 0x00) Name (DF02, 0x00) Name (DF03, 0x00) Name (DF04, 0x00) Event (E000) Mutex (MX00, 0x00) Name (I000, 0x58765432) Name (I001, 0xABCDEFABAABBCCDD) Name (S000, "qwrt") Name (B001, Buffer (0x03) { 0x91, 0x22, 0x83 // .". }) Name (P08B, Package (0x02) { 0x13, 0x1B }) Device (DV00) { } Method (M4A3, 0, NotSerialized) { Return (0x00) } OperationRegion (RG00, SystemMemory, 0x0100, 0x0100) Field (RG00, ByteAcc, NoLock, Preserve) { FR20, 7 } PowerResource (PWR0, 0x01, 0x0000) { Method (M000, 0, NotSerialized) { Return (0x00) } } Processor (PRC0, 0x00, 0xFFFFFFFF, 0x00){} Name (B002, Buffer (0x64){}) CreateDWordField (B002, 0x03, BFZ0) /* Return object of required type */ /* */ /* arg0 - type of object */ Method (M484, 1, Serialized) { Name (TS, "m484") Event (E001) Mutex (MX01, 0x00) Name (SS01, "svnmjkl") Name (SS02, "1234zyq") Name (SS03, "abcdefzyq") Name (SS04, "9876") Name (SS05, "aBcD") Name (SS06, "1234567890987654") Name (SS07, "daFeCBaabbddffee") Name (SS08, "1234567890abCdeF") Name (SS09, "FdeAcb0132547698") Name (SS0A, "12345678909876540") Name (SS0B, "fdeacb01325476980") Name (SS0C, "123456789011223344556677889998765432199983337744") Name (SS0D, "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd") Name (SS0E, "1234567890abcdef9876543210fedbca1122334455667788fdeacb") Name (SS0F, "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb") Name (SS10, "123456789011223344556677889998765432199983337744z") Name (SS11, "0xF1dAB98e0D794Bc5") Name (BB01, Buffer (0x01) { 0x80 // . }) Name (BB02, Buffer (0x02) { 0x81, 0x82 // .. }) Name (BB03, Buffer (0x04) { 0x83, 0x84, 0x85, 0x86 // .... }) Name (BB04, Buffer (0x05) { 0x87, 0x98, 0x99, 0x9A, 0x9B // ..... }) Name (BB05, Buffer (0x08) { 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3 // ........ }) Name (BB06, Buffer (0x09) { /* 0000 */ 0xA4, 0xA5, 0xA6, 0xA7, 0xB8, 0xB9, 0xBA, 0xBB, // ........ /* 0008 */ 0xBC // . }) Name (BB07, Buffer (0xC8) { /* 0000 */ 0x91, 0x92, 0x93, 0x94, 0x5F, 0x60, 0x61, 0x62, // ...._`ab /* 0008 */ 0x63, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // c....... /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8 // ........ }) Name (BB08, Buffer (0x0101) { /* 0000 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // ........ /* 0008 */ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, // ........ /* 0010 */ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, // ........ /* 0018 */ 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, // ....... /* 0020 */ 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, // !"#$%&'( /* 0028 */ 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, // )*+,-./0 /* 0030 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, // 12345678 /* 0038 */ 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, // 9:;<=>?@ /* 0040 */ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, // ABCDEFGH /* 0048 */ 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, // IJKLMNOP /* 0050 */ 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, // QRSTUVWX /* 0058 */ 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, // YZ[\]^_` /* 0060 */ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, // abcdefgh /* 0068 */ 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, // ijklmnop /* 0070 */ 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, // qrstuvwx /* 0078 */ 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, // yz{|}~.. /* 0080 */ 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, // ........ /* 0088 */ 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, // ........ /* 0090 */ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, // ........ /* 0098 */ 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, // ........ /* 00A0 */ 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, // ........ /* 00A8 */ 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, // ........ /* 00B0 */ 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, // ........ /* 00B8 */ 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, // ........ /* 00C0 */ 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, // ........ /* 00C8 */ 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, // ........ /* 00D0 */ 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, // ........ /* 00D8 */ 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, // ........ /* 00E0 */ 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, // ........ /* 00E8 */ 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, // ........ /* 00F0 */ 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, // ........ /* 00F8 */ 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, // ........ /* 0100 */ 0x01 // . }) /* Field Units */ OperationRegion (R001, SystemMemory, 0x0100, 0x0100) Field (R001, ByteAcc, NoLock, Preserve) { F001, 3, F002, 8, F003, 16, F004, 32, F005,/*33 */ 33, F006,/*63 */ 63, F007,/*64 */ 64, F008,/*65 */ 65, F009, 127, F00A, 257 /* f00b, 201*8, do it also */ } /* Buffer Fields */ Name (BB09, Buffer (0xC8){}) CreateField (BB09, 0x01, 0x03, BF01) CreateField (BB09, 0x04, 0x08, BF02) CreateField (BB09, 0x0C, 0x10, BF03) CreateField (BB09, 0x1C, 0x20, BF04) CreateField (BB09, 0x3C, 0x21, BF05) CreateField (BB09, 0x5D, 0x3F, BF06)/*93 */ CreateField (BB09, 0x9C, 0x40, BF07)/*156 */ CreateField (BB09, 0xDC, 0x41, BF08)/*220 */ CreateField (BB09, 0x011D, 0x7F, BF09)/*285 */ CreateField (BB09, 0x019C, 0x0101, BF0A)/*412 */ /* CreateField(bb09, xxx, 201*8, bf0b) */ CreateDWordField (BB09, 0x97, BF0B) /*/////////////////////////////////////////////////////////////////// */ FR20 = 0xFF F001 = 0xFF F002 = 0x8A8B8C8D F003 = 0x8A8B8C8D F004 = 0x8A8B8C8D F005 = Buffer (0x05) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ..... } F006 = Buffer (0x09) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // XF7..... /* 0008 */ 0xFA // . } F007 = Buffer (0x09) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0xFA // . } F008 = Buffer (0x09) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0xFA // . } F009 = Buffer (0x09) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55 // U } F00A = Buffer (0x09) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87 // . } BFZ0 = 0x918654AB BF01 = 0xFF BF02 = 0x8A8B8C8D BF03 = 0x8A8B8C8D BF04 = 0x8A8B8C8D BF05 = Buffer (0x05) { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ..... } BF06 = Buffer (0x09) { /* 0000 */ 0x58, 0x46, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // XF7..... /* 0008 */ 0xFA // . } BF07 = Buffer (0x09) { /* 0000 */ 0x58, 0x9A, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0xFA // . } BF08 = Buffer (0x09) { /* 0000 */ 0x58, 0xC7, 0x37, 0x88, 0x19, 0xFA, 0xDE, 0xDC, // X.7..... /* 0008 */ 0xFA // . } BF09 = Buffer (0x09) { /* 0000 */ 0x82, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF, // .4Vx.... /* 0008 */ 0x55 // U } BF0A = Buffer (0x09) { /* 0000 */ 0x93, 0xAB, 0xCD, 0xEF, 0x99, 0x12, 0xCD, 0x52, // .......R /* 0008 */ 0x87 // . } BF0B = 0xA2B3C4D5 /*/////////////////////////////////////////////////////////////////// */ Name (PP01, Package (0x01) { 0x13 }) Device (DV01) { } Method (M001, 0, NotSerialized) { Return (0x00) } OperationRegion (R002, SystemMemory, 0x0100, 0x0100) PowerResource (PWR1, 0x01, 0x0000) { Method (M000, 0, NotSerialized) { Return (0x00) } } Processor (PR01, 0x00, 0xFFFFFFFF, 0x00){} Local7 = 0x00 Switch (ToInteger (Arg0)) { /* Uninitialized */ /* * case (0x000) { * } */ /* Integers */ Case (0x0100) { Local7 = I000 /* \I000 */ } Case (0x0101) { Local7 = I001 /* \I001 */ } Case (0x0102) { Local7 = 0x12345678 } Case (0x0103) { Local7 = 0xABEDF18942345678 } Case (0x0104) { Local7 = Zero } Case (0x0105) { Local7 = One } Case (0x0106) { Local7 = Ones } Case (0x0107) { Local7 = Revision } Case (0x0108) { Local7 = 0x0123 } Case (0x0109) { Local7 = 0x0B } Case /* Strings */ (0x0200) { Local7 = S000 /* \S000 */ } Case (0x0201) { Local7 = SS01 /* \M484.SS01 */ } Case (0x0202) { Local7 = SS02 /* \M484.SS02 */ } Case (0x0203) { Local7 = SS03 /* \M484.SS03 */ } Case (0x0204) { Local7 = SS04 /* \M484.SS04 */ } Case (0x0205) { Local7 = SS05 /* \M484.SS05 */ } Case (0x0206) { Local7 = SS06 /* \M484.SS06 */ } Case (0x0207) { Local7 = SS07 /* \M484.SS07 */ } Case (0x0208) { Local7 = SS08 /* \M484.SS08 */ } Case (0x0209) { Local7 = SS09 /* \M484.SS09 */ } Case (0x020A) { Local7 = SS0A /* \M484.SS0A */ } Case (0x020B) { Local7 = SS0B /* \M484.SS0B */ } Case (0x020C) { Local7 = SS0C /* \M484.SS0C */ } Case (0x020D) { Local7 = SS0D /* \M484.SS0D */ } Case (0x020E) { Local7 = SS0E /* \M484.SS0E */ } Case (0x020F) { Local7 = SS0F /* \M484.SS0F */ } Case (0x0210) { Local7 = SS10 /* \M484.SS10 */ } Case (0x0211) { Local7 = SS11 /* \M484.SS11 */ } Case /* Buffers */ (0x0300) { Local7 = B001 /* \B001 */ } Case (0x0301) { Local7 = BB01 /* \M484.BB01 */ } Case (0x0302) { Local7 = BB02 /* \M484.BB02 */ } Case (0x0303) { Local7 = BB03 /* \M484.BB03 */ } Case (0x0304) { Local7 = BB04 /* \M484.BB04 */ } Case (0x0305) { Local7 = BB05 /* \M484.BB05 */ } Case (0x0306) { Local7 = BB06 /* \M484.BB06 */ } Case (0x0307) { Local7 = BB07 /* \M484.BB07 */ } Case (0x0308) { Local7 = BB08 /* \M484.BB08 */ } Case /* Packages */ (0x0400) { Local7 = P08B /* \P08B */ } Case (0x0401) { Local7 = PP01 /* \M484.PP01 */ } Case /* Field Units */ (0x0500) { Local7 = FR20 /* \FR20 */ } Case (0x0501) { Local7 = F001 /* \M484.F001 */ } Case (0x0502) { Local7 = F002 /* \M484.F002 */ } Case (0x0503) { Local7 = F003 /* \M484.F003 */ } Case (0x0504) { Local7 = F004 /* \M484.F004 */ } Case (0x0505) { Local7 = F005 /* \M484.F005 */ } Case (0x0506) { Local7 = F006 /* \M484.F006 */ } Case (0x0507) { Local7 = F007 /* \M484.F007 */ } Case (0x0508) { Local7 = F008 /* \M484.F008 */ } Case (0x0509) { Local7 = F009 /* \M484.F009 */ } Case (0x050A) { Local7 = F00A /* \M484.F00A */ } Case /* // Removed 09/2015: iASL now disallows these stores // Devices case (0x600) { Store(dv00, Local7) } case (0x601) { Store(dv01, Local7) } // Events case (0x700) { Store(e000, Local7) } case (0x701) { Store(e001, Local7) } // Methods case (0x800) { Store(m4a3, Local7) } case (0x801) { Store(m001, Local7) } // Mutexes case (0x900) { Store(mx00, Local7) } case (0x901) { Store(mx01, Local7) } // Operation Regions case (0xa00) { Store(rg00, Local7) } case (0xa01) { Store(r001, Local7) } case (0xa02) { Store(r002, Local7) } // Power Resources case (0xb00) { Store(pwr0, Local7) } case (0xb01) { Store(pwr1, Local7) } // Processor case (0xc00) { Store(prc0, Local7) } case (0xc01) { Store(pr01, Local7) } // Thermal Zones */ /* * case (0xd00) { * Store(Debug, Local7) * } */ /* Buffer Field */ (0x0E00) { Local7 = BFZ0 /* \BFZ0 */ } Case (0x0E01) { Local7 = BF01 /* \M484.BF01 */ } Case (0x0E02) { Local7 = BF02 /* \M484.BF02 */ } Case (0x0E03) { Local7 = BF03 /* \M484.BF03 */ } Case (0x0E04) { Local7 = BF04 /* \M484.BF04 */ } Case (0x0E05) { Local7 = BF05 /* \M484.BF05 */ } Case (0x0E06) { Local7 = BF06 /* \M484.BF06 */ } Case (0x0E07) { Local7 = BF07 /* \M484.BF07 */ } Case (0x0E08) { Local7 = BF08 /* \M484.BF08 */ } Case (0x0E09) { Local7 = BF09 /* \M484.BF09 */ } Case (0x0E0A) { Local7 = BF0A /* \M484.BF0A */ } Case (0x0E0B) { Local7 = BF0B /* \M484.BF0B */ } /* DDB Handle */ /* * case (0xf00) { * Store(Debug, Local7) * } */ /* Debug Object */ /* * case (0x1000) { * Store(Debug, Local7) * } */ Default { If ((Arg0 != 0x00)) { ERR ("----------- ERROR, m484: incorrect Arg0:", Z064, 0x023D, 0x00, 0x00, 0x00, 0x00) Debug = Arg0 } } } Return (Local7) } /* arg0 - opcode of operation */ /* arg1 - type of 0-th argument */ /* arg2 - type of 1-th argument */ /* arg3 - type of 2-th argument */ /* arg4 - type of 3-th argument */ /* arg5 - type of 4-th argument */ /* arg6 - {Ones - flag of exception, otherwise - index of result pair} */ Method (M485, 7, Serialized) { If (0x00) { Debug = "##################################################################" Debug = Arg6 } Name (TS, "m485") Name (EX00, 0x00) Name (TMP0, 0x00) If ((Arg6 == FLG0)) { EX00 = 0x01 } Else { Local5 = M48C (PKG1, Arg6) Local7 = ObjectType (Local5) If ((Local7 == 0x02)) { If ((Local5 == "Exc")) { EX00 = 0x01 } } } Local7 = 0x00 /* m482: */ /* */ /* arg0-arg4 - parameters of operators */ /* arg5 - miscellaneous */ /* arg6 - opcode of operation */ /* * //// ????????????????????????? * Uninitialized data should be passed to the operators immediately * in the m480 but not here to these Store operations!!!!!!!!!!!!!! * But this will a few complicate m480 !!!!!!!!!!!!!!!!!!!!!!!!!!!! * //// ????????????????????????? */ /* Parameters (if not to save them Uninitialized) */ If ((Arg1 != 0x0FFF)) { Local0 = M484 (Arg1) } If ((Arg2 != 0x0FFF)) { Local1 = M484 (Arg2) } If ((Arg3 != 0x0FFF)) { Local2 = M484 (Arg3) } If ((Arg4 != 0x0FFF)) { Local3 = M484 (Arg4) } If ((Arg5 != 0x0FFF)) { Local4 = M484 (Arg5) } If (EX00) { TMP0 = FLG2 /* \FLG2 */ CH03 (TS, Z064, __LINE__, 0x00, 0x00) } Local7 = M482 (Local0, Local1, Local2, Local3, Local4, TMP0, Arg0) If (EX00) { CH04 (__METHOD__, 0x00, 0xFF, Z064, __LINE__, 0x00, 0x00) } ElseIf (FLG1) { /* Verify the first result */ M489 (TS, Local7, Local5) } If (COM2) { /* The same operation but the first two arguments interchange */ If ((Arg6 != FLG0)) { If ((COM2 == 0x02)) { EX00 = 0x00 Local5 = M48C (PKG2, Arg6) Local7 = ObjectType (Local5) If ((Local7 == 0x02)) { If ((Local5 == "Exc")) { EX00 = 0x01 } } } } If (EX00) { CH03 (TS, Z064, __LINE__, 0x00, 0x00) } Local7 = M482 (Local1, Local0, Local2, Local3, Local4, TMP0, Arg0) If (EX00) { CH04 (__METHOD__, 0x00, 0xFF, Z064, __LINE__, 0x00, 0x00) } ElseIf (FLG1) { /* Verify the second result */ M489 (TS, Local7, Local5) } } Return (Local7) } /* Init all parameters as non-usable */ Method (M486, 0, NotSerialized) { DF00 = 0x00 DF01 = 0x00 DF02 = 0x00 DF03 = 0x00 DF04 = 0x00 } /* Return the object of required type. */ /* Allowed types are {1-12,14}, == 0x5fff. */ /* Returned 0xfff is flag of "Uninitialized". */ /* */ /* These have to be implemented: */ /* */ /* Method, Thermal Zone, DDB Handle */ /* */ Method (M487, 1, Serialized) { Switch (ToInteger (Arg0)) { Case (0x00) { /* Uninitialized */ Local7 = 0x0FFF } Case (0x01) { /* Integers */ Local7 = 0x0100 } Case (0x02) { /* Strings */ Local7 = 0x0204 } Case (0x03) { /* Buffers */ Local7 = 0x0300 } Case (0x04) { /* Packages */ Local7 = 0x0400 } Case (0x05) { /* Field Units */ Local7 = 0x0500 } Case (0x06) { /* Devices */ Local7 = 0x0600 } Case (0x07) { /* Events */ Local7 = 0x0700 } Case (0x08) { /* Methods */ Local7 = 0x0800 } Case (0x09) { /* Mutexes */ Local7 = 0x0900 } Case (0x0A) { /* Operation Regions */ Local7 = 0x0A00 } Case (0x0B) { /* Power Resources */ Local7 = 0x0B00 } Case (0x0C) { /* Processor */ Local7 = 0x0C00 } Case /* * case (0xd00) { * // Thermal Zones * Store(Debug, Local7) * } */ (0x0E) { /* Buffer Field */ Local7 = 0x0E00 } /* * case (0xf00) { * // DDB Handle * Store(Debug, Local7) * } * * * case (0x1000) { * // Debug Object * Store(Debug, Local7) * } */ Default { If ((Arg0 != 0x00)) { ERR ("----------- ERROR, m487: incorrect Arg0:", Z064, 0x0319, 0x00, 0x00, 0x00, 0x00) Debug = Arg0 Local7 = 0x00 } } } Return (Local7) } /* Initiate exception by inappropriate operand */ Method (M488, 6, Serialized) { Local7 = 0x00 Name (LPN0, 0x00) Name (LPC0, 0x00) If ((Arg1 & 0x5FFF)) { LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { Local6 = (0x01 << LPC0) /* \M488.LPC0 */ If ((Arg1 & Local6)) { Local5 = M487 (LPC0) Local7 = M485 (Arg0, Local5, DF01, DF02, DF03, DF04, FLG0) } LPN0-- LPC0++ } } If ((Arg2 & 0x5FFF)) { LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { Local6 = (0x01 << LPC0) /* \M488.LPC0 */ If ((Arg2 & Local6)) { Local5 = M487 (LPC0) Local7 = M485 (Arg0, DF00, Local5, DF02, DF03, DF04, FLG0) } LPN0-- LPC0++ } } If ((Arg3 & 0x5FFF)) { LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { Local6 = (0x01 << LPC0) /* \M488.LPC0 */ If ((Arg3 & Local6)) { Local5 = M487 (LPC0) Local7 = M485 (Arg0, DF00, DF01, Local5, DF03, DF04, FLG0) } LPN0-- LPC0++ } } If ((Arg4 & 0x5FFF)) { LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { Local6 = (0x01 << LPC0) /* \M488.LPC0 */ If ((Arg4 & Local6)) { Local5 = M487 (LPC0) Local7 = M485 (Arg0, DF00, DF01, DF02, Local5, DF04, FLG0) } LPN0-- LPC0++ } } If ((Arg5 & 0x5FFF)) { LPN0 = 0x10 LPC0 = 0x00 While (LPN0) { Local6 = (0x01 << LPC0) /* \M488.LPC0 */ If ((Arg5 & Local6)) { Local5 = M487 (LPC0) Local7 = M485 (Arg0, DF00, DF01, DF02, DF03, Local5, FLG0) } LPN0-- LPC0++ } } Return (Local7) } Method (M489, 3, NotSerialized) { Local0 = ObjectType (Arg1) Local1 = ObjectType (Arg2) If ((Local0 != Local1)) { ERR (Arg0, Z064, __LINE__, 0x00, 0x00, Local0, Local1) } ElseIf ((Arg1 != Arg2)) { ERR (Arg0, Z064, __LINE__, 0x00, 0x00, Arg1, Arg2) } } /* Verify result */ /* ,,, */ Method (M48A, 4, NotSerialized) { Local0 = (Arg3 * 0x02) Local7 = DerefOf (Arg1 [Local0]) Local0++ Local6 = DerefOf (Arg1 [Local0]) If (F64) { If ((Arg2 != Local7)) { ERR (Arg0, Z064, __LINE__, 0x00, 0x00, Arg2, Local7) } } ElseIf ((Arg2 != Local6)) { ERR (Arg0, Z064, __LINE__, 0x00, 0x00, Arg2, Local6) } } /* Integer two operands operation */ /* , */ /* */ /* NOTE: now it work only by particular parts, */ /* all together produce crashes. Uncomment */ /* in future. */ Method (M48B, 2, NotSerialized) { /* X - Integer */ Local7 = M485 (Arg0, Arg1, 0x0100, 0x00, 0x00, 0x00, 0x00) /* X - String */ Local7 = M485 (Arg0, Arg1, 0x0200, 0x00, 0x00, 0x00, 0x01) Local7 = M485 (Arg0, Arg1, 0x0201, 0x00, 0x00, 0x00, 0x02) Local7 = M485 (Arg0, Arg1, 0x0202, 0x00, 0x00, 0x00, 0x03) Local7 = M485 (Arg0, Arg1, 0x0203, 0x00, 0x00, 0x00, 0x04) Local7 = M485 (Arg0, Arg1, 0x0204, 0x00, 0x00, 0x00, 0x05) Local7 = M485 (Arg0, Arg1, 0x0205, 0x00, 0x00, 0x00, 0x06) Local7 = M485 (Arg0, Arg1, 0x0206, 0x00, 0x00, 0x00, 0x07) Local7 = M485 (Arg0, Arg1, 0x0207, 0x00, 0x00, 0x00, 0x08) Local7 = M485 (Arg0, Arg1, 0x0208, 0x00, 0x00, 0x00, 0x09) Local7 = M485 (Arg0, Arg1, 0x0209, 0x00, 0x00, 0x00, 0x0A) Local7 = M485 (Arg0, Arg1, 0x020A, 0x00, 0x00, 0x00, 0x0B) Local7 = M485 (Arg0, Arg1, 0x020B, 0x00, 0x00, 0x00, 0x0C) Local7 = M485 (Arg0, Arg1, 0x020C, 0x00, 0x00, 0x00, 0x0D) Local7 = M485 (Arg0, Arg1, 0x020D, 0x00, 0x00, 0x00, 0x0E) Local7 = M485 (Arg0, Arg1, 0x020E, 0x00, 0x00, 0x00, 0x0F) Local7 = M485 (Arg0, Arg1, 0x020F, 0x00, 0x00, 0x00, 0x10) Local7 = M485 (Arg0, Arg1, 0x0210, 0x00, 0x00, 0x00, 0x11) /* X - Buffer */ Local7 = M485 (Arg0, Arg1, 0x0300, 0x00, 0x00, 0x00, 0x12) Local7 = M485 (Arg0, Arg1, 0x0301, 0x00, 0x00, 0x00, 0x13) Local7 = M485 (Arg0, Arg1, 0x0302, 0x00, 0x00, 0x00, 0x14) Local7 = M485 (Arg0, Arg1, 0x0303, 0x00, 0x00, 0x00, 0x15) Local7 = M485 (Arg0, Arg1, 0x0304, 0x00, 0x00, 0x00, 0x16) Local7 = M485 (Arg0, Arg1, 0x0305, 0x00, 0x00, 0x00, 0x17) Local7 = M485 (Arg0, Arg1, 0x0306, 0x00, 0x00, 0x00, 0x18) Local7 = M485 (Arg0, Arg1, 0x0307, 0x00, 0x00, 0x00, 0x19) Local7 = M485 (Arg0, Arg1, 0x0308, 0x00, 0x00, 0x00, 0x1A) /* X - Field Unit */ Local7 = M485 (Arg0, Arg1, 0x0500, 0x00, 0x00, 0x00, 0x1B) Local7 = M485 (Arg0, Arg1, 0x0501, 0x00, 0x00, 0x00, 0x1C) Local7 = M485 (Arg0, Arg1, 0x0502, 0x00, 0x00, 0x00, 0x1D) Local7 = M485 (Arg0, Arg1, 0x0503, 0x00, 0x00, 0x00, 0x1E) Local7 = M485 (Arg0, Arg1, 0x0504, 0x00, 0x00, 0x00, 0x1F) Local7 = M485 (Arg0, Arg1, 0x0505, 0x00, 0x00, 0x00, 0x20) Local7 = M485 (Arg0, Arg1, 0x0506, 0x00, 0x00, 0x00, 0x21) Local7 = M485 (Arg0, Arg1, 0x0507, 0x00, 0x00, 0x00, 0x22) Local7 = M485 (Arg0, Arg1, 0x0508, 0x00, 0x00, 0x00, 0x23) Local7 = M485 (Arg0, Arg1, 0x0509, 0x00, 0x00, 0x00, 0x24) Local7 = M485 (Arg0, Arg1, 0x050A, 0x00, 0x00, 0x00, 0x25) /* X - Buffer Field */ Local7 = M485 (Arg0, Arg1, 0x0E00, 0x00, 0x00, 0x00, 0x26) Local7 = M485 (Arg0, Arg1, 0x0E01, 0x00, 0x00, 0x00, 0x27) Local7 = M485 (Arg0, Arg1, 0x0E02, 0x00, 0x00, 0x00, 0x28) Local7 = M485 (Arg0, Arg1, 0x0E03, 0x00, 0x00, 0x00, 0x29) Local7 = M485 (Arg0, Arg1, 0x0E04, 0x00, 0x00, 0x00, 0x2A) Local7 = M485 (Arg0, Arg1, 0x0E05, 0x00, 0x00, 0x00, 0x2B) Local7 = M485 (Arg0, Arg1, 0x0E06, 0x00, 0x00, 0x00, 0x2C) Local7 = M485 (Arg0, Arg1, 0x0E07, 0x00, 0x00, 0x00, 0x2D) Local7 = M485 (Arg0, Arg1, 0x0E08, 0x00, 0x00, 0x00, 0x2E) Local7 = M485 (Arg0, Arg1, 0x0E09, 0x00, 0x00, 0x00, 0x2F) Local7 = M485 (Arg0, Arg1, 0x0E0A, 0x00, 0x00, 0x00, 0x30) } /* Return element of Package */ /* , */ /* pair: {F64-element, F32-element} */ Method (M48C, 2, NotSerialized) { Local0 = (Arg1 * 0x02) If (F64) { Local7 = DerefOf (Arg0 [Local0]) } Else { Local0++ Local7 = DerefOf (Arg0 [Local0]) } Return (Local7) } /* arg0 - opcode of operation */ /* */ /* arg1 - type of 0-th argument */ /* arg2 - type of 1-th argument */ /* arg3 - type of 2-th argument */ /* arg4 - type of 3-th argument */ /* */ /* arg5 - expected 64-bit result */ /* arg6 - expected 32-bit result */ Method (M48D, 7, Serialized) { Name (TS, "m48d") Name (TMP0, 0x00) If (0x00) { Debug = "##################################################################" Debug = Arg6 } Name (EX00, 0x00) If (F64) { Local0 = ObjectType (Arg5) If ((Local0 == 0x02)) { If ((Arg5 == "Exc")) { EX00 = 0x01 } } } Else { Local0 = ObjectType (Arg6) If ((Local0 == 0x02)) { If ((Arg6 == "Exc")) { EX00 = 0x01 } } } Local7 = 0x00 /* m482: */ /* */ /* arg0-arg4 - parameters of operators */ /* arg5 - miscellaneous */ /* arg6 - opcode of operation */ Local0 = M484 (Arg1) Local1 = M484 (Arg2) Local2 = M484 (Arg3) Local3 = M484 (Arg4) If (EX00) { TMP0 = FLG2 /* \FLG2 */ CH03 (TS, Z064, __LINE__, 0x00, 0x00) } Local7 = M482 (Local0, Local1, Local2, Local3, 0x00, TMP0, Arg0) If (EX00) { CH04 (__METHOD__, 0x00, 0xFF, Z064, __LINE__, 0x00, 0x00) } ElseIf /* Verify the result */ (F64) { M489 (TS, Local7, Arg5) } Else { M489 (TS, Local7, Arg6) } Return (Local7) } acpica-unix-20250404/tests/aslts/src/runtime/common/dataproc.asl0000700000175000017500000006152714773714160024071 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Name (Z114, 0x72) /* Check the type of Object */ /* arg0 - Object */ /* arg1 - expected type */ /* arg2 - absolute index of file initiating the checking */ /* arg3 - the name of Method initiating the checking */ /* arg4 - index of checking (inside the file) */ Method (M1A3, 5, NotSerialized) { Local7 = 0x01 Local0 = ObjectType (Arg0) If ((Local0 != Arg1)) { ERR ("m1a3", Z114, __LINE__, Arg2, Arg4, Local0, Arg1) Local7 = 0x00 } Return (Local7) } /* Check that all the data (global) are not corrupted */ Method (M1A6, 0, Serialized) { Name (TS, "m1a6") /* Computational Data */ /* Integer */ Local0 = ObjectType (I900) If ((Local0 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C009) } If ((I900 != 0xFE7CB391D65A0000)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, I900, 0xFE7CB391D65A0000) } Local0 = ObjectType (I901) If ((Local0 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C009) } If ((I901 != 0xC1790001)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, I901, 0xC1790001) } Local0 = ObjectType (I902) If ((Local0 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C009) } If ((I902 != 0x00)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, I902, 0x00) } Local0 = ObjectType (I903) If ((Local0 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C009) } If ((I903 != 0xFFFFFFFFFFFFFFFF)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, I903, 0xFFFFFFFFFFFFFFFF) } Local0 = ObjectType (I904) If ((Local0 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C009) } If ((I904 != 0xFFFFFFFF)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, I904, 0xFFFFFFFF) } /* String */ Local0 = ObjectType (S900) If ((Local0 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S900 != "12340002")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, S900, "12340002") } Local0 = ObjectType (S901) If ((Local0 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00A) } If ((S901 != "qwrtyu0003")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, S901, "qwrtyu0003") } /* Buffer */ Local0 = ObjectType (B900) If ((Local0 != C00B)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00B) } If ((B900 != Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... })) { ERR (TS, Z114, __LINE__, 0x00, 0x00, B900, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) } /* Buffer Field */ Local0 = ObjectType (BF90) If ((Local0 != C016)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C016) } Local1 = Buffer (0x1) { 0xB0} If (BF90 != Local1) { ERR (TS, Z114, __LINE__, 0x00, 0x00, BF90, Local1) } /* One level Package */ Store (P900 [0x00], Local0) Local1 = ObjectType (Local0) If ((Local1 != C008)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C008) } Store (P901 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD0004)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, 0xABCD0004) } Store (P901 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0x1122334455660005)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, 0x1122334455660005) } Store (P902 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "12340006")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, "12340006") } Store (P902 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "q1w2e3r4t5y6u7i80007")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, "q1w2e3r4t5y6u7i80007") } Store (P903 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "qwrtyuiop0008")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, "qwrtyuiop0008") } Store (P903 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C00A) } If ((Local1 != "1234567890abdef0250009")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, "1234567890abdef0250009") } Store (P904 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... })) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, Buffer (0x03) { 0xB5, 0xB6, 0xB7 // ... }) } Store (P904 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C00B)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C00B) } If ((Local1 != Buffer (0x02) { 0xB8, 0xB9 // .. })) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, Buffer (0x02) { 0xB8, 0xB9 // .. }) } /* Two level Package */ Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local4, C009) } If ((Local3 != 0x0ABC000A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local3, 0x0ABC000A) } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x01], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "0xabc000b")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local3, "0xabc000b") } Store (P905 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x02], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc000c")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local3, "abc000c") } Store (P906 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "abc000d")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local3, "abc000d") } Store (P907 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local4, C00A) } If ((Local3 != "aqwevbgnm000e")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local3, "aqwevbgnm000e") } Store (P908 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Local4 = ObjectType (Local3) If ((Local4 != C00B)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local4, C00B) } If ((Local3 != Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... })) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local3, Buffer (0x05) { 0xBA, 0xBB, 0xBC, 0xBD, 0xBE // ..... }) } /* Three level Package */ Store (P909 [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local6, C009) } If ((Local5 != 0x0ABC000F)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local5, 0x0ABC000F) } Store (P90A [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "12340010")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local5, "12340010") } Store (P90B [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local6, C00A) } If ((Local5 != "zxswefas0011")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local5, "zxswefas0011") } Store (P90C [0x00], Local0) Local1 = DerefOf (Local0) Store (Local1 [0x00], Local2) Local3 = DerefOf (Local2) Store (Local3 [0x00], Local4) Local5 = DerefOf (Local4) Local6 = ObjectType (Local5) If ((Local6 != C00B)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local6, C00B) } If ((Local5 != Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... })) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local5, Buffer (0x03) { 0xBF, 0xC0, 0xC1 // ... }) } /* Additional Packages */ /* p953 */ Store (P953 [0x00], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD0018)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, 0xABCD0018) } Store (P953 [0x01], Local0) Local1 = DerefOf (Local0) Local2 = ObjectType (Local1) If ((Local2 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local2, C009) } If ((Local1 != 0xABCD0019)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, 0xABCD0019) } /* p955 */ M1AF (P955, 0x01, 0x01, 0x00) /* Not Computational Data */ M1AA (TS, E900, C00F, 0x00, 0x013B) M1AA (TS, MX90, C011, 0x00, 0x013C) M1AA (TS, D900, C00E, 0x00, 0x013D) If (Y508) { M1AA (TS, TZ90, C015, 0x00, 0x013E) } M1AA (TS, PR90, C014, 0x00, 0x013F) M1AA (TS, R900, C012, 0x00, 0x0140) M1AA (TS, PW90, C013, 0x00, 0x0141) /* Field Unit (Field) */ Local0 = ObjectType (F900) If ((Local0 != C00D)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00D) } Local0 = ObjectType (F901) If ((Local0 != C00D)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00D) } Local0 = ObjectType (F902) If ((Local0 != C00D)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00D) } Local0 = ObjectType (F903) If ((Local0 != C00D)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00D) } /* Field Unit (IndexField) */ Local0 = ObjectType (IF90) If ((Local0 != C00D)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00D) } Local0 = ObjectType (IF91) If ((Local0 != C00D)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00D) } /* Field Unit (BankField) */ Local0 = ObjectType (BN90) If ((Local0 != C00D)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local0, C00D) } /* * if (LNotEqual(f900, 0xd7)) { * err(ts, z114, __LINE__, 0, 0, f900, 0xd7) * } * * if (LNotEqual(if90, 0xd7)) { * err(ts, z114, __LINE__, 0, 0, if90, 0xd7) * } */ } /* Verifying result */ /* arg0 - test name */ /* arg1 - object */ /* arg2 - expected type of object */ /* arg3 - expected value of object */ /* arg4 - index of checking (inside the file) */ Method (M1AA, 5, NotSerialized) { Local7 = 0x00 Local0 = ObjectType (Arg1) If ((Local0 != Arg2)) { ERR (Arg0, Z114, __LINE__, 0x00, Arg4, Local0, Arg2) Local7 = 0x01 } ElseIf ((Arg2 < C00C)) { If ((Arg1 != Arg3)) { ERR (Arg0, Z114, __LINE__, 0x00, Arg4, Arg1, Arg3) Local7 = 0x01 } } Return (Local7) } /* Check and restore the global data after writing into them */ Method (M1AB, 0, Serialized) { Name (TS, "m1ab") /* Computational Data */ M1AA (TS, I900, C009, C08A, 0x0144) M1AA (TS, I901, C009, C08A, 0x0145) M1AA (TS, S900, C009, C08A, 0x0146) M1AA (TS, S901, C009, C08A, 0x0147) M1AA (TS, B900, C009, C08A, 0x0148) /* Package */ M1AA (TS, P953, C009, C08A, 0x0149) /* Not Computational Data */ M1AA (TS, E900, C009, C08A, 0x014A) M1AA (TS, MX90, C009, C08A, 0x014B) M1AA (TS, D900, C009, C08A, 0x014C) If (Y508) { M1AA (TS, TZ90, C009, C08A, 0x014D) } M1AA (TS, PR90, C009, C08A, 0x014E) If (Y510) { M1AA (TS, R900, C009, C08A, 0x014F) } M1AA (TS, PW90, C009, C08A, 0x0150) M1AC () M1A6 () } /* Restore the global data after writing into them */ Method (M1AC, 0, NotSerialized) { /* Computational Data */ CopyObject (I9Z0, I900) /* \I900 */ CopyObject (I9Z1, I901) /* \I901 */ CopyObject (S9Z0, S900) /* \S900 */ CopyObject (S9Z1, S901) /* \S901 */ CopyObject (B9Z0, B900) /* \B900 */ /* Package */ CopyObject (P954, P953) /* \P953 */ /* Restore p955 Package */ M1C6 () /* Not Computational Data */ CopyObject (E9Z0, E900) /* \E900 */ CopyObject (MX91, MX90) /* \MX90 */ CopyObject (D9Z0, D900) /* \D900 */ If (Y508) { CopyObject (TZ91, TZ90) /* \TZ90 */ } CopyObject (PR91, PR90) /* \PR90 */ If (Y510) { CopyObject (R9Z0, R900) /* \R900 */ } CopyObject (PW91, PW90) /* \PW90 */ } /* Verify p955-like Package */ /* arg0 - Package */ /* arg1 - check for non-computational data */ /* arg2 - check Field Unit and Buffer Field */ /* arg3 - elements of Package are RefOf_References */ Method (M1AF, 4, Serialized) { Name (TS, "m1af") Store (Arg0 [0x00], Local0) Local1 = ObjectType (Local0) If ((Local1 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C009) } Else { Local1 = DerefOf (Local0) If ((Local1 != 0x00)) { ERR (TS, Z113, __LINE__, 0x00, 0x00, Local1, 0x00) } } Store (Arg0 [0x01], Local0) Local1 = ObjectType (Local0) If ((Local1 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C009) } Else { Local1 = DerefOf (Local0) If (Arg3) { Local2 = DerefOf (Local1) Local1 = Local2 } If ((Local1 != 0xFE7CB391D65A0000)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, 0xFE7CB391D65A0000) } } Store (Arg0 [0x02], Local0) Local1 = ObjectType (Local0) If ((Local1 != C00A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C00A) } Else { Local1 = DerefOf (Local0) If (Arg3) { Local2 = DerefOf (Local1) Local1 = Local2 } If ((Local1 != "12340002")) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, "12340002") } } Store (Arg0 [0x03], Local0) Local1 = ObjectType (Local0) If ((Local1 != C00B)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C00A) } Else { Local1 = DerefOf (Local0) If (Arg3) { Local2 = DerefOf (Local1) Local1 = Local2 } If ((Local1 != Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... })) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, Buffer (0x05) { 0xB0, 0xB1, 0xB2, 0xB3, 0xB4 // ..... }) } } Store (Arg0 [0x04], Local0) M1AA (TS, Local0, C00C, 0x00, 0x013F) /* 5th element is a region field, which will be resolved to an integer */ If (Arg2) { Store (Arg0 [0x05], Local0) Local1 = ObjectType (Local0) Local7 = DerefOf (Local0) If (Arg3) { If ((Local1 != C00D)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C00D) } Else { Local6 = DerefOf (Local7) Local7 = Local6 } } Local5 = ObjectType (Local7) If ((Local5 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local5, C009) } ElseIf ((Local7 != 0x00)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local7, 0x00) } } If (Arg1) { Store (Arg0 [0x06], Local0) M1AA (TS, Local0, C00E, 0x00, 0x013F) Store (Arg0 [0x07], Local0) M1AA (TS, Local0, C00F, 0x00, 0x013F) Store (Arg0 [0x08], Local0) M1AA (TS, Local0, C010, 0x00, 0x013F) Store (Arg0 [0x09], Local0) M1AA (TS, Local0, C011, 0x00, 0x013F) Store (Arg0 [0x0A], Local0) M1AA (TS, Local0, C012, 0x00, 0x013F) Store (Arg0 [0x0B], Local0) M1AA (TS, Local0, C013, 0x00, 0x013F) Store (Arg0 [0x0C], Local0) M1AA (TS, Local0, C014, 0x00, 0x013F) Store (Arg0 [0x0D], Local0) M1AA (TS, Local0, C015, 0x00, 0x013F) } /* 14th element is a buffer field created by CreateField, which will be resolved to a buffer */ If (Arg2) { Store (Arg0 [0x0E], Local0) Local1 = ObjectType (Local0) Local7 = DerefOf (Local0) If (Arg3) { If ((Local1 != C016)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C016) } Else { Local6 = DerefOf (Local7) Local7 = Local6 } } Local5 = ObjectType (Local7) If ((Local5 != C00B)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local5, C00B) } ElseIf ((Local7 != Buffer(){0xB0})) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local7, Buffer(){0xB0}) } } Store (Arg0 [0x0F], Local0) Local1 = ObjectType (Local0) If ((Local1 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C009) } Else { Local1 = DerefOf (Local0) If ((Local1 != 0x0F)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, 0x0F) } } Store (Arg0 [0x10], Local0) Local1 = ObjectType (Local0) If ((Local1 != C009)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C009) } Else { Local1 = DerefOf (Local0) If ((Local1 != 0x10)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, 0x10) } } Store (Arg0 [0x11], Local0) Local1 = ObjectType (Local0) If ((Local1 != C008)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, Local1, C008) } /* Evaluation of Method m936 takes place */ If ((I905 != 0xABCD001A)) { ERR (TS, Z114, __LINE__, 0x00, 0x00, I905, 0xABCD001A) } } /* Restore p955 Package */ Method (M1C6, 0, NotSerialized) { CopyObject (P956, P955) /* \P955 */ I905 = I9Z5 /* \I9Z5 */ } acpica-unix-20250404/tests/aslts/src/runtime/Makefile0000700000175000017500000000011214773714160021722 0ustar ivanhuivanhu# runtime MDIRS = collections TOP= ../.. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/runtime/cntl/0000700000175000017500000000000014773714147021232 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/runtime/cntl/DECL.asl0000700000175000017500000000355414773714147022454 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../runtime/cntl/common.asl") Include ("../../../../runtime/cntl/runpoint.asl") Include ("../../../../runtime/cntl/runmode.asl") Include ("../../../../runtime/cntl/ehandle.asl") acpica-unix-20250404/tests/aslts/src/runtime/cntl/runmode.asl0000700000175000017500000006300514773714147023413 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Run Tests Parameters Technique (RTPT) * * These parameters have effect only when * running a group of tests (collections) * such as all Functional tests, all Complex * tests, all Exceptions tests, Full test * (all enumerated above tests). * * Main flag: * 0 - run unconditionally all tests * 1 - run all the tests with non-zero params * 2 - run all the tests with zero params * 3 - run all the tests with params equal to RUN1 * 4 - run a particular test specified by: * RUN2 - index of collection * RUN3 - index of the test inside the collection */ Name (RUN0, 0x00) /* main flag */ Name (RUN1, 0x00) /* level */ Name (RUN2, 0x00) /* collection */ Name (RUN3, 0x00) /* test */ Name (RTPT, 0x00) /* validity of RTPT mode */ /* FUNCTIONAL */ Name (W000, 0x00) /* arithmetic */ Name (W001, 0x00) /* bfield */ Name (W002, 0x00) /* constant */ Name (W003, 0x00) /* control */ Name (W004, 0x00) /* descriptor */ Name (W005, 0x00) /* extern */ Name (W006, 0x00) /* local */ Name (W007, 0x00) /* logic */ Name (W008, 0x00) /* manipulation */ Name (W009, 0x00) /* name */ Name (W00A, 0x00) /* reference */ Name (W00B, 0x00) /* region */ Name (W00C, 0x00) /* synchronization */ Name (W00D, 0x00) /* table */ Name (W01A, 0x00) /* module */ /* COMPLEX */ Name (W00E, 0x00) /* misc */ Name (W00F, 0x00) /* provoke */ Name (W010, 0x00) /* operand */ Name (W011, 0x00) /* result */ Name (W012, 0x00) /* namespace */ Name (W022, 0x00) /* badasl */ /* EXCEPTIONS */ Name (W013, 0x00) /* exc */ Name (W014, 0x00) /* exc_operand */ Name (W015, 0x00) /* exc_result */ Name (W016, 0x00) /* exc_ref */ /* DEMO */ Name (W017, 0x00) /* Bugs (0-N) */ /* IMPL */ Name (W021, 0x00) /* dynobj */ /* SERVICE */ Name (W018, 0x00) /* condbranches */ /* Identity2MS */ Name (W019, 0x00) /* abbu */ /* Reserved names */ Name (W020, 0x00) /* * Set RTPT technique. * Should be invoked in MAIN files of * ALL functional, complex, exceptions,... */ Method (SRTP, 1, NotSerialized) { RTPT = Arg0 } /* * Set up the particular desirable set of tests to be run * * These parameters have effect only when * running a group of test cases or even * collections) such as all Functional tests, * all Complex tests, all Exceptions tests, * Full test (all enumerated above tests) * compiled all as one DefinitionBlock. * * Parameters: * * RUN0 - main flag * 0 - run unconditionally all tests * 1 - run all the tests with non-zero params * 2 - run all the tests with zero params * 3 - run all the tests with params equal to RUN1 * 4 - run a particular test specified by: * RUN2 - index of collection * 1 - functional * 2 - complex * 3 - exceptions * RUN3 - index of the test inside the collection * RUN1 - level * RUN2 - collection * RUN3 - test */ Method (RTPI, 0, NotSerialized) { /* PARAMETERS OF MODE */ RUN0 = 0x00 /* main flag */ RUN1 = 0x00 /* level */ RUN2 = 0x01 /* collection */ RUN3 = 0x03 /* test */ /* FUNCTIONAL, collection # 1 */ W000 = 0x01 /* arithmetic 0 */ W001 = 0x01 /* bfield 1 */ W002 = 0x01 /* constant 2 */ W003 = 0x01 /* control 3 */ W004 = 0x01 /* descriptor 4 */ W005 = 0x01 /* extern 5 */ W006 = 0x01 /* local 6 */ W007 = 0x01 /* logic 7 */ W008 = 0x01 /* manipulation 8 */ W009 = 0x01 /* name 9 */ W00A = 0x01 /* reference 10 */ W00B = 0x01 /* region 11 */ W00C = 0x01 /* synchronization 12 */ W00D = 0x01 /* table 13 */ /* COMPLEX, collection # 2 */ W00E = 0x01 /* misc 0 */ W00F = 0x01 /* provoke 1 */ W010 = 0x01 /* operand 2 */ W011 = 0x01 /* result 3 */ W021 = 0x01 /* dynobj 4 */ W012 = 0x01 /* RESERVED, not in use */ /* EXCEPTIONS, collection # 3 */ W013 = 0x01 /* exc 0 */ W014 = 0x01 /* exc_operand 1,2 */ W015 = 0x01 /* exc_result 3,4 */ W016 = 0x01 /* exc_ref 5 */ W019 = 0x01 /* exc_tbl 6 */ /* DEMO */ W017 = 0x01 /* Bugs (0-N) 0 */ /* SERVICE */ W018 = 0x01 /* condbranches 0 */ } /* * Variables below allow to exclude code which causes crashes * or hangs or prevents execution of other tests. * * ATTENTION: all these variables should be set to 1 eventually * (after all bugs fixing). * * Format of variable name: y - xxx is the number of bug * 0 - do not run * non-zero - run * * ATTENTION: see all the qXXX & rnXX conditions of the particular * tests (which also provide the temporary exclusion). * * ATTENTION: all disablings must go through this technique of * y disable/enable variables. * * y - prevents undesirable consequences of the surrounded * code (crashes, hangs etc. of tests). Should be finally * set to non-zero (after the product-bug fixing) so * enabling execution of the surrounded code. * X - surrounds particular Bugs. Used mostly to point out * the reasons of test failures (xxx - number of bug) * not to review the results of tests each time anew. * So, as a rule these variables are set to non-zero. */ /* * Bugs */ Name (Y078, 0x00) Name (Y083, 0x00) Name (Y084, 0x01) Name (Y098, 0x01) Name (Y100, 0x00) Name (Y103, 0x01) Name (Y104, 0x01) Name (Y105, 0x01) Name (Y106, 0x00) Name (Y111, 0x01) Name (Y113, 0x00) Name (Y114, 0x00) Name (Y118, 0x00) /* elements of Package are NamedX, failed access to Field Unit and Buffer Field */ Name (Y119, 0x00) Name (Y120, 0x00) Name (Y121, 0x00) Name (Y126, 0x00) Name (Y127, 0x00) /* Automatic dereference of Index in CopyObject */ Name (Y128, 0x01) Name (Y132, 0x00) Name (Y133, 0x00) /* Write access automatic dereference for Index reference */ Name (Y134, 0x00) Name (Y135, 0x00) Name (Y136, 0x01) /* CopyObject(A, B) for Buffers causes implicit */ Name (Y157, 0x01) /* problems when ParameterTypes declaration data omitted */ Name (Y164, 0x01) /* tests m22d and m26b of reference test */ Name (Y176, 0x00) Name (Y178, 0x01) /* Non-constant Bank values works since ACPICA release 20071211 */ Name (Y182, 0x01) Name (Y192, 0x01) /* AcpiExec is able to emulate access to BankField Objects since ACPICA release 20071211 */ Name (Y200, 0x00) /* The code path taken after exception in AcpiPsParseLoop is incorrect */ Name (Y203, 0x00) /* ObjectType operation falls into infinite loop for ring of RefOf references */ Name (Y204, 0x00) /* SizeOf operation falls into infinite loop for ring of RefOf references */ Name (Y205, 0x00) /* Store-to-Debug operation falls into infinite loop for ring of RefOf references */ Name (Y206, 0x00) /* ObjectType operation falls into infinite loop for ring of Index references */ Name (Y207, 0x00) /* SizeOf operation falls into infinite loop for ring of Index references */ Name (Y208, 0x00) /* Store-to-Debug operation falls into infinite loop for ring of Index references */ Name (Y213, 0x00) /* Crash */ Name (Y214, 0x00) /* Crash on repeated duplication of an OpRegion by CopyObject */ Name (Y215, 0x00) /* Exception AE_BUFFER_OVERFLOW when IndexName Field exceeds 32 bits */ Name (Y216, 0x00) /* exception AE_NOT_FOUND on CreateField under specific conditions */ Name (Y217, 0x00) /* Dynamic OpRegion _REG method execution problem */ Name (Y220, 0x00) /* Inconsistent "Access is available/unavailable" _REG method calls */ Name (Y221, 0x01) /* Alternating access to OpRegions covering different ranges */ Name (Y222, 0x00) /* Alternating access to OpRegions of different Address Spaces */ Name (Y223, 0x01) /* DataTableRegion with the non-constant *Strings works since ACPICA release 20071211 */ Name (Y224, 0x00) /* AcpiExec is unable to emulate access to IndexField Objects */ Name (Y238, 0x00) /* the jumping over levels in releasing mutexes is not prohibited */ Name (Y242, 0x00) /* Releasing the mutex the first Acquired on the non-zero level makes Releasing the residuary mutexes of that level impossible */ Name (Y243, 0x00) /* the normal work with mutexes is broken after the mutex Release order violation */ Name (Y248, 0x00) /* Incorrect ReferenceCount on Switch operation */ Name (Y251, 0x00) /* AE_ALREADY_EXISTS on multi-threading on Switch operator */ Name (Y260, 0x00) /* AE_AML_TARGET_TYPE on writing NewObj to ArgX [RefOf(OldObj)] instead of RefOf(NewObj) */ Name (Y261, 0x00) /* Crash when DDBHandle parameter of Load is an Indexed Reference */ Name (Y262, 0x00) /* Unexpected AE_STACK_OVERFLOW for a method call expression with nested calls */ Name (Y263, 0x00) /* The sequence of evaluating operands of expression with the named objects is violated */ Name (Y264, 0x00) /* Crash on re-writing named element of Package */ Name (Y275, 0x00) /* Pop result from bottom principle doesn't work */ Name (Y276, 0x00) /* 'Large Reference Count' on AML code with LoadTable/UnLoad in a slack mode */ Name (Y281, 0x00) /* Normal strings as the LoadTable parameters can cause the matching table to be not found */ Name (Y282, 0x00) /* Crash when the Buffer Object parameter of Load is used after an exception in it */ Name (Y283, 0x01) /* When the Object parameter of Load is a Field the checksum of the supplied SSDT should be verified */ Name (Y284, 0x01) /* An exception should be emitted on Load if the Length field of SSDT exceeds length of its source */ Name (Y286, 0x01) /* After an exception the elements of the Package passed to Unload are unexpectedly deleted */ Name (Y287, 0x00) /* If any string to match a proper field on LoadTable exceeds field's length an exception should be emitted */ Name (Y288, 0x00) /* iASL unexpectedly forbids ParameterData of Loadtable to be LocalX or UserTerm */ Name (Y289, 0x00) /* Search of the table matched Loadtable parameters should be restricted to XSDT */ Name (Y290, 0x00) /* AcpiExec is unable to emulate Load from OpRegion */ Name (Y292, 0x00) /* Different second and third UnLoad execution with the same argument behavior */ Name (Y293, 0x00) /* Incorrect zero-length Buffer to String conversion */ Name (Y294, 0x00) /* _ERR method can not be evaluated when AE_OWNER_ID_LIMIT is emitted */ Name (Y296, 0x00) /* AE_AML_INTERNAL unexpectedly occurs when the Loadtable ParameterData and its Target differ in the types */ Name (Y297, 0x00) /* After AE_LIMIT the further work of ACPICA mutex framework looks unstable */ Name (Y300, 0x00) /* Recursive calls to methods with the internal names (and Switches) should be provided */ Name (Y301, 0x00) /* Recursive call on the same thread to the Serialized method with the internal objects (Switches) causes AE_AML_INTERNAL */ Name (Y302, 0x00) /* Scope operation doesn't work for the root node Location */ /* * Issues (replace them with the Bug indexes) */ Name (Y349, 0x00) /* to clarify what is the proper behaviour when Serialized Method is invoked recursively (now hangs) */ Name (Y350, 0x00) /* TermalZone AE_AML_NO_RETURN_VALUE exception */ Name (Y361, 0x00) /* OperationRegion in Result tests */ Name (Y362, 0x00) /* Investigate and uncomment m4ba */ Name (Y364, 0x00) /* if (Derefof(Refof(bf76))) exception in m61b-m06e */ Name (Y365, 0x00) /* Increment(Derefof(Refof(bf76))) exception in m61b-m64l */ Name (Y366, 0x00) /* exception on Store(Package, Derefof(Arg(Int/Str/Buf))) */ Name (Y367, 0x00) /* Increment(Refof(Named))) exception in m692-m00b */ Name (Y500, 0x00) /* Deletion of Named Object due to DeRefOf(m000()) */ Name (Y501, 0x00) /* Increment/Decrement for String/Buffer Named Object */ Name (Y502, 0x00) /* Exceptions on DeRefOf(Index(p000, 0)) */ Name (Y503, 0x00) /* AE_AML_OPERAND_TYPE => AE_AML_NO_RETURN_VALUE */ Name (Y504, 0x00) /* Exception on CopyObject(ThermalZone, ...) */ Name (Y505, 0x00) /* Buffer Field and Field Unit types should allow SizeOf() */ Name (Y506, 0x00) /* exc_ref: crash for DerefOf */ Name (Y507, 0x00) /* ref: read of ArgX-RefOf_References without DerefOf */ Name (Y508, 0x00) /* all about ThermalZone */ Name (Y509, 0x00) /* all about Method */ Name (Y510, 0x00) /* all about OperationRegion */ Name (Y511, 0x00) /* all about Device */ Name (Y512, 0x00) /* the checking causes unexpected exception */ Name (Y513, 0x00) /* m005(Index(s021, 1, Local0), RefOf(i020)) */ /* m005(RefOf(i000), RefOf(i061)) */ Name (Y514, 0x00) /* repeated attempts to overwrite RefOf_Reference-ArgX cause exceptions */ /* Name(y515, 0) // Uninitialized element of Package (the same as y127) */ Name (Y516, 0x00) /* write from {Integer/String/Buffer} to Package */ Name (Y517, 0x00) /* Buffer Field (and Field Unit) as elements of Package */ Name (Y518, 0x00) /* utdelete-0487 [07] UtUpdateRefCount : **** Warning */ /* **** Large Reference Count (EAEA) in object 00466BC8 */ Name (Y519, 0x00) /* ArgX term effectively becomes a LocalX term */ /* Store(x,ArgX-Object) should be identical to Store(x,LocalX) */ Name (Y520, 0x00) /* ArgX term effectively becomes a LocalX term */ /* CopyObject(x,ArgX-Object) should be identical to CopyObject(x,LocalX) */ /* Now, DerefOf(arg0) causes exception */ Name (Y521, 0x00) /* Store reference to NamedX */ Name (Y522, 0x01) /* CopyObject reference to NamedX */ Name (Y523, 0x00) /* Store(RefOf(NamedX), NamedX) */ Name (Y524, 0x00) /* Store(RefOf(NamedX), DerefOf(Expr_resulting_in_ORef)) */ Name (Y525, 0x00) /* Store(RefOf(NamedX), RefOf(Named_X)) */ Name (Y526, 0x00) /* CopyObject(RefOf(NamedX), ArgX-ORef-to-Named_X) */ Name (Y527, 0x00) /* The code path taken after AE_OWNER_ID_LIMIT is incorrect */ Name (Y600, 0x00) /* Some oprators (not all) doesn't provide passing invocation */ /* of Method as a parameter to them (though iASL succeeds). */ /* Looks that Method is simply not invoked. But, since it doesn't */ /* now look as an important feature for those particular operators */ /* we don't file bug in this respect but exclude tesing. */ Name (Y601, 0x00) /* The Reference issues to be thought over in the future */ Name (Y602, 0x01) /* generalized - new specs of String to Integer conversion */ Name (Y603, 0x00) /* bunch of anomalies with references to be splited to separate bugs, */ /* mostly - cyclical references (rings of references). */ Name (Y900, 0x00) /* Allow immediate Index(Buffer(){}), Index("qwerty"), Index(Package(){}) */ Name (Y901, 0x01) /* Predicate generates Implicit Return */ Name (Y902, 0x01) /* Expected is that Serialized method being invoked recursively on the same thread: */ /* 1) 0 - doesn't cause */ /* 2) otherwise - causes */ /* exception in case it has either internal objects (including Methods) or Switches */ /* * functional/reference * * Exclude temporary the relevant checking. * * All them should be set to non-zero after * clarifying the relevant issue, or provided * with the comment clarifying what is wrong in * the sub-test - don't remove them even in the * latter case. */ Name (Q001, 0x01) /* Dereference of Store(Index(x,x,Index(x,x)), Index(x,x)) */ Name (Q002, 0x00) /* The chain of Index_References */ Name (Q003, 0x00) /* CURRENTLY: compiler failed CopyObject(xx, Index(xx,xx)) */ Name (Q004, 0x00) /* Implicit Operand conversion on MS contradicts ACPI Spec */ Name (Q005, 0x00) /* Method object as a Source of Index operation is treated as a call to that Method */ Name (Q006, 0x00) /* on MS Name of an Object as an element of Package is treated as String */ Name (Q007, 0x00) /* Disregard of the length Buffer Fields on MS are read as Buffers */ Name (Q008, 0x00) /* On MS Store to LocalX containing a reference causes indirect access */ Name (Q009, 0x00) /* It looks like on MS writing to a narrow Field Unit is splited on pieces */ Name (Q00A, 0x00) /* On MS writing to unmodified bits of Field OpRegion implemented differently */ Name (Q00B, 0x00) /* On MS Break in Switch is not implemented */ /* * The non-zero value flags allow to run the relevant part of sub-tests. * * Each sub-test is conditioned by some rn0*. * * ATTENTION: many sub-tests conditioned by rn01-rn04 are not run now * in general mode, they should be investigated. */ Name (RN00, 0x01) /* Correct, no any remarks */ Name (RN01, 0x00) /* Investigation needed */ Name (RN02, 0x00) /* Classified as a bug */ Name (RN03, 0x00) /* Causes exception */ Name (RN04, 0x00) /* Regression */ Name (RN05, 0x00) /* Long-time tests of bug-demo collection */ Name (RN06, 0x00) /* 1 - CopyObject and Store of Method doesn't evaluate that Method */ /* * Indicators of bugs. */ Name (X104, 0x01) Name (X114, 0x01) Name (X127, 0x01) Name (X128, 0x01) Name (X131, 0x01) Name (X132, 0x01) Name (X133, 0x01) Name (X153, 0x01) /* Store() to Named Target allows to update the Source */ Name (X170, 0x01) Name (X191, 0x01) Name (X192, 0x01) Name (X193, 0x01) /* 32-bit mode optional storing of Not, NAnd, or NOr */ /* ASL operators result to Buffer Field produces 64-bit */ Name (X194, 0x01) /* Unexpected implicit result object conversion when the */ /* Target operand of ToBuffer operator is a Named Buffer */ Name (X195, 0x00) /* Increment and Decrement of an either String or Buffer */ /* Object will not change the type of the Object to Integer (~ y501) */ /* * Flag, allows (when non-zero) access to the internal objects of method. * * No entry of type Method should occur in the declared path specified for search. */ Name (FLG9, 0x00) /* * Set up run4 to non-zero when compile aslts (affects actually only Identity2MS) * for to run on MS, and reset it to zero when compile to run on ACPICA * * for ACPICA - 0 * for MS - non-zero */ Name (RUN4, 0x00) /* * Current release of ASLTS test suite * * Layout: * now simply incremental number * * Releases: * * 31.12.2004 - 1 * 31.07.2005 - 2 * 16.11.2005 - 3 * 21.07.2006 - 4, (1115 files), with ACPICA version 20060721 released * 25.12.2006 - 5, (1277 files, 382 folder, 15.3 MB, 2006 tests, 38(44) test cases, 278 bugs of ACPICA) * 01.03.2007 - 6, (1403 files, 415 folder, 17.0 MB, 2227 tests, 40(46) test cases, 305 bugs of ACPICA) * 21.03.2007 - 7, (1409 files, 417 folder, 17.1 MB, 2236 tests, 40(46) test cases, 307 bugs of ACPICA) * December 2011: - 0x15 (ACPI 5.0) * April 2011: - 0x16, iASL fix for StartDependentFunction* descriptors to account for descriptor length. */ Name (REL0, 0x16) /* * Settings number, used to adjust the aslts tests for different releases of ACPICA * * SETN - settings number of aslts: * 0 - release from Bob * 1 - release from Bob + my updates * 2 - new architecture of Method calculation * 3 - fixed bug 263,266 * 4 - fixed bugs 275,276 * 5 - fixed bugs 262 (corresponds to the 20070320 release of ACPICA) * 6 - 20074403 * all the greater - not used yet * * Used for to adjust some skippings of tests for different ACPICA releases * (set up this value manually). See Method SET2 below. * * Note: the value 5 of SETN corresponds to the 20070320 release of ACPICA. */ Name (SETN, 0x05) /* * Adjust some skippings of tests for different ACPICA releases * * arg0 - settings number of aslts (see SETN for comment) */ Method (SET2, 1, Serialized) { Local0 = Arg0 /* if (ABUU) { Store(0, Local0) } else { Store(arg0, Local0) } */ Switch (ToInteger (Local0)) { Case (0x00) { Y135 = 0x00 Y900 = 0x01 Y901 = 0x00 FLG9 = 0x01 Y263 = 0x00 Y275 = 0x00 Y276 = 0x00 } Case (0x01) { Y135 = 0x01 Y900 = 0x00 Y901 = 0x00 FLG9 = 0x01 Y263 = 0x00 Y275 = 0x00 Y276 = 0x00 } Case (0x02) { Y135 = 0x00 Y900 = 0x00 Y901 = 0x01 FLG9 = 0x00 Y263 = 0x00 Y275 = 0x00 Y276 = 0x00 } Case (0x03) { Y135 = 0x00 Y900 = 0x01 Y901 = 0x00 FLG9 = 0x01 Y263 = 0x01 Y275 = 0x00 Y276 = 0x00 Y262 = 0x00 } Case (0x04) { Y135 = 0x00 /* Store of Index reference to another element of the same Package causes hang */ Y900 = 0x01 /* Allow immediate Index(Buffer(){}), Index("qwerty"), Index(Package(){}) */ Y901 = 0x00 /* Predicate generates Implicit Return */ FLG9 = 0x01 /* Non-zero allows accessing internal objects of method */ Y263 = 0x01 /* The sequence of evaluating operands of expression with the named objects is violated */ Y275 = 0x01 /* Pop result from bottom principle doesn't work */ Y276 = 0x01 /* 'Large Reference Count' on AML code with LoadTable/UnLoad in a slack mode */ Y262 = 0x00 /* Unexpected AE_STACK_OVERFLOW for a method call expression with nested calls */ Y251 = 0x00 /* AE_ALREADY_EXISTS on multi-threading on Switch operator */ Y300 = 0x00 /* Recursive calls to methods with the internal names (and Switches) should be provided */ } Case (0x05) { Y135 = 0x00 Y900 = 0x01 Y901 = 0x01 /* Predicate generates Implicit Return since ACPICA release 20080926 */ FLG9 = 0x01 Y263 = 0x01 Y275 = 0x01 Y276 = 0x01 Y262 = 0x01 Y251 = 0x00 Y300 = 0x00 } Case (0x06) { Y135 = 0x00 Y900 = 0x01 Y901 = 0x00 FLG9 = 0x01 Y263 = 0x01 Y275 = 0x01 Y276 = 0x01 Y262 = 0x01 Y251 = 0x01 Y300 = 0x01 Y902 = 0x00 } } If (!RUN4) { Concatenate ("Release of parent ACPICA code 0x", Revision, Debug) Concatenate ("Release of ASLTS test suite 0x", REL0, Debug) Concatenate ("Settings of ASLTS test suite 0x", Arg0, Debug) } } acpica-unix-20250404/tests/aslts/src/runtime/cntl/README0000700000175000017500000000153514773714147022121 0ustar ivanhuivanhu CONTENTS common control of test run common.asl objects of common use provide the common control of test run, provide the uniform structure of all run-time tests ehandle.asl exceptional conditions support runmode.asl 1. It is no longer utilized though available Set up the particular desirable set of tests to be run (have effect only when running a group of test cases or even collections) such as all Functional tests, all Complex tests, all Exceptions tests or Full test (all enumerated above tests) compiled all as one DefinitionBlock. See additional comments in runmode.asl file. 2. Variables which disable/enable pieces of tests. This serves different purposes - to prevent crashes, hangs, and so on. All these variables must be finally set to non-zero - so enabling all the excluded now tests. acpica-unix-20250404/tests/aslts/src/runtime/cntl/DECL_5UP.asl0000700000175000017500000000357014773714147023143 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../../runtime/cntl/common.asl") Include ("../../../../../runtime/cntl/runpoint.asl") Include ("../../../../../runtime/cntl/runmode.asl") Include ("../../../../../runtime/cntl/ehandle.asl") acpica-unix-20250404/tests/aslts/src/runtime/cntl/DECL_6UP.asl0000700000175000017500000000360414773714147023142 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include ("../../../../../../runtime/cntl/common.asl") Include ("../../../../../../runtime/cntl/runpoint.asl") Include ("../../../../../../runtime/cntl/runmode.asl") Include ("../../../../../../runtime/cntl/ehandle.asl") acpica-unix-20250404/tests/aslts/src/runtime/cntl/runpoint.asl0000700000175000017500000000532614773714147023622 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Start points of execution */ /* Flag of slack mode (non-zero - means slack mode) */ Name (SLCK, 0x00) /* * Flag shows that the test has been run by means either * of MN00 or MN01 but not immediately by MAIN. * It is necessary to know in tests where the number of * preceding method calls is important. */ Name (MLVL, 0x00) /* * ATTENTION: in future determine the actual SLCK mode * by accessing the table info or generating some exception * (see F64) and remove MN00 and MN01. * * Method applied to initiate normal (non-slack) mode. * Make sure that AcpiExec is actually in non-slack mode. */ Method (MN00, 0, NotSerialized) { SLCK = 0x00 MLVL = 0x01 Local7 = MAIN () Return (Local7) } /* * Method applied to initiate slack mode. * Make sure that AcpiExec is actually in slack mode. */ Method (MN01, 0, NotSerialized) { SLCK = 0x01 MLVL = 0x01 Local7 = MAIN () Return (Local7) } acpica-unix-20250404/tests/aslts/src/runtime/cntl/abbu_common.asl0000700000175000017500000001037014773714147024220 0ustar ivanhuivanhu /* * Flag, compiler the test in the abbu layout */ Name (ABUU, 0x01) /* * Internal objects used in this file only */ Name (AI03, 0x01) /* Print out the name of test-case */ Name (AI05, 0x00) /* Print out the name of test */ Name (AI06, 0x01) /* Print out additional parameters of errors */ /* * Objects from the common.asl used there also */ Name (TCLT, 0x07) /* Identity2MS test case ID */ Name (ERRS, 0x00) /* Errors counter */ Name (RMRC, 0x00) /* Current number of root Methods runs */ /* Types, as returned by ObjectType */ Name (C008, 0x00) /* Uninitialized */ Name (C009, 0x01) /* Integer */ Name (C00A, 0x02) /* String */ Name (C00B, 0x03) /* Buffer */ Name (C00C, 0x04) /* Package */ Name (C00D, 0x05) /* Field Unit */ Name (C00E, 0x06) /* Device */ Name (C00F, 0x07) /* Event */ Name (C010, 0x08) /* Method */ Name (C011, 0x09) /* Mutex */ Name (C012, 0x0A) /* Operation Region */ Name (C013, 0x0B) /* Power Resource */ Name (C014, 0x0C) /* Processor */ Name (C015, 0x0D) /* Thermal Zone */ Name (C016, 0x0E) /* Buffer Field */ Name (C017, 0x0F) /* DDB Handle */ Name (C018, 0x10) /* Debug Object */ Name (C019, 0x11) /* LOCAL_REGION_FIELD */ Name (C01A, 0x12) /* LOCAL_BANK_FIELD */ Name (C01B, 0x13) /* LOCAL_INDEX_FIELD */ Name (C01C, 0x14) /* LOCAL_REFERENCE */ Name (C01D, 0x15) /* LOCAL_ALIAS */ Name (C01E, 0x16) /* LOCAL_METHOD_ALIAS */ Name (C01F, 0x17) /* LOCAL_NOTIFY */ Name (C020, 0x18) /* LOCAL_ADDRESS_HANDLER */ Name (C021, 0x19) /* LOCAL_RESOURCE */ Name (C022, 0x1A) /* LOCAL_RESOURCE_FIELD */ Name (C023, 0x1B) /* LOCAL_SCOPE */ Name (C024, 0x1C) /* LOCAL_EXTRA */ Name (C025, 0x1D) /* LOCAL_DATA */ Name (C027, 0x1E) /* Number of different types */ /* * Methods from common.asl */ Method (STRT, 1, NotSerialized) { /* Adjust some skippings of tests for different ACPICA rereales */ SET2 (SETN) } Method (FNSH, 0, NotSerialized) { /* The usual layout of aslts summary lines */ If (ERRS) { OUUP ("\":STST:Identity2MS:abbu:mmmm:FAIL:Errors # 12 34 56 78:\"", 0x01) } Else { OUUP ("\":STST:Identity2MS:abbu:mmmm:PASS:\"", 0x01) } OUUP (ERRS, 0x01) OUUP ("The number of tests has been executed:", 0x01) OUUP (RMRC, 0x01) Return (ERRS) /* \_SB_.ABBU.ERRS */ } Method (STTT, 4, NotSerialized) { If (AI03) { OUTP (Arg0) } Return (0x01) } Method (SRMT, 1, NotSerialized) { If (AI05) { OUTP (Arg0) } RMRC++ } Method (ERR, 7, NotSerialized) { OUTP (Arg0) If (AI06) { OUTP (Arg2) OUTP (Arg5) } ERRS++ } Method (FTTT, 0, NotSerialized) { } Method (BLCK, 0, NotSerialized) { } /* * Methods from ehandle.asl */ Method (CH02, 0, NotSerialized) { Return (0x00) } Method (CH03, 5, NotSerialized) { Return (0x00) } Method (CH04, 7, NotSerialized) { Return (0x00) } acpica-unix-20250404/tests/aslts/src/runtime/cntl/mt_runpoint.asl0000700000175000017500000000541714773714147024323 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Start points of execution for multi-threading mode */ /* Flag of slack mode (non-zero - means slack mode) */ Name (SLCK, 0x00) /* * Flag shows that the test has been run by means either * of MN00 or MN01 but not immediately by MAIN. * It is necessary to know in tests where the number of * preceding method calls is important. */ Name (MLVL, 0x00) /* * ATTENTION: in future determine the actual SLCK mode * by accessing the table info or generating some exception * (see F64) and remove MN00 and MN01. * * Method applied to initiate normal (non-slack) mode. * Make sure that AcpiExec is actually in non-slack mode. */ Method (MN00, 3, NotSerialized) { SLCK = 0x00 MLVL = 0x01 Local7 = MAIN (Arg0, Arg1, Arg2) Return (Local7) } /* * Method applied to initiate slack mode. * Make sure that AcpiExec is actually in slack mode. */ Method (MN01, 3, NotSerialized) { SLCK = 0x01 MLVL = 0x01 Local7 = MAIN (Arg0, Arg1, Arg2) Return (Local7) } acpica-unix-20250404/tests/aslts/src/runtime/cntl/common.asl0000700000175000017500000016553014773714147023240 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Objects of common use to provide the common control of test run, * provide the uniform structure of all run-time tests. * * The full applied hierarchy of test-concepts follows: * - test suite (aslts) * - test collection (functional, complex, exceptions,...) * - test case (arithmetic, bfield, exc, opackageel,..) * - test (or root method) simplest test unit supplied with the * status line and evaluated as [PASS|FAIL|BLOCKED|SKIPPED]. */ Name (Z062, 0x3E) Name (FF32, 0xFFFFFFFF) /* -1, 32-bit */ Name (FF64, Ones) /* -1, 64-bit */ /* Test execution trace */ Name (TRCF, 0x00) /* Trace enabling flag */ Name (TRCH, "ASLTS") /* Head of trace message */ Name (STST, "STST") /* Head of summary status message of test run */ Name (CTST, "CTST") /* Head of current status message of test run */ Name (PR01, 0x01) /* Printing starts of sub-tests */ Name (PR02, 0x01) /* More detailed printing */ /* Start time (Timer-time) of running test */ Name (TMT0, 0x00) /* Flag of multi-threading mode */ Name (MTHR, 0x00) /* Set the multi-threading mode flag */ Method (SET3, 1, NotSerialized) { MTHR = Arg0 } /* From Integer arithmetic */ Name (C000, 0x0A) Name (C001, 0x05) /* From Logical operators */ Name (C002, 0x0D) Name (C003, 0x0C) Name (C004, 0x06) Name (C005, 0x04) Name (C006, 0x1F) Name (C007, 0x33) /* Types, as returned by ObjectType */ Name (C008, 0x00) /* Uninitialized */ Name (C009, 0x01) /* Integer */ Name (C00A, 0x02) /* String */ Name (C00B, 0x03) /* Buffer */ Name (C00C, 0x04) /* Package */ Name (C00D, 0x05) /* Field Unit */ Name (C00E, 0x06) /* Device */ Name (C00F, 0x07) /* Event */ Name (C010, 0x08) /* Method */ Name (C011, 0x09) /* Mutex */ Name (C012, 0x0A) /* Operation Region */ Name (C013, 0x0B) /* Power Resource */ Name (C014, 0x0C) /* Processor */ Name (C015, 0x0D) /* Thermal Zone */ Name (C016, 0x0E) /* Buffer Field */ Name (C017, 0x0F) /* DDB Handle */ Name (C018, 0x10) /* Debug Object */ Name (C019, 0x11) /* LOCAL_REGION_FIELD */ Name (C01A, 0x12) /* LOCAL_BANK_FIELD */ Name (C01B, 0x13) /* LOCAL_INDEX_FIELD */ Name (C01C, 0x14) /* LOCAL_REFERENCE */ Name (C01D, 0x15) /* LOCAL_ALIAS */ Name (C01E, 0x16) /* LOCAL_METHOD_ALIAS */ Name (C01F, 0x17) /* LOCAL_NOTIFY */ Name (C020, 0x18) /* LOCAL_ADDRESS_HANDLER */ Name (C021, 0x19) /* LOCAL_RESOURCE */ Name (C022, 0x1A) /* LOCAL_RESOURCE_FIELD */ Name (C023, 0x1B) /* LOCAL_SCOPE */ Name (C024, 0x1C) /* LOCAL_EXTRA */ Name (C025, 0x1D) /* LOCAL_DATA */ Name (C027, 0x1E) /* Number of different types */ Name (C028, 0x00) /* Reserved (first) */ /* The name of type Package */ Name (NMTP, Package (0x20) { "Uninitialized", "Integer", "String", "Buffer", "Package", "Field Unit", "Device", "Event", "Method", "Mutex", "Operation Region", "Power Resource", "Processor", "Thermal Zone", "Buffer Field", "DDB Handle", "Debug Object", "LOCAL_REGION_FIELD", "LOCAL_BANK_FIELD", "LOCAL_INDEX_FIELD", "LOCAL_REFERENCE", "LOCAL_ALIAS", "LOCAL_METHOD_ALIAS", "LOCAL_NOTIFY", "LOCAL_ADDRESS_HANDLER", "LOCAL_RESOURCE", "LOCAL_RESOURCE_FIELD", "LOCAL_SCOPE", "LOCAL_EXTRA", "LOCAL_DATA", "--", "--" }) /* Global variables for an arbitrary use inside the particular Run-methods */ Name (C080, 0x00) Name (C081, 0x00) Name (C082, 0x00) Name (C083, 0x00) Name (C084, 0x00) Name (C085, 0x00) Name (C086, 0x00) Name (C087, 0x00) Name (C088, 0x00) Name (C089, 0x00) Name (C08A, 0x00) Name (C08B, 0x00) Name (C08C, 0x00788B60) /* used in operand tests (801 - 2 msec) */ /* * Flag: * non-zero - prohibits non-precise opcode exceptions * (one particular opcode of exception is verified). * 0 - only presence of some exception(s) is verified. */ Name (EXCV, 0x00) /* * An "absolute index of file reporting error" used for reporting errors * from the bug-demo files (only!). It is the same for all the bug-demo files * (files of TCLD type tests). It is not even an index of file as such in this * case but only designation of reporting error from some bug-demo file. The * actual number of bug (NNN) in this case is taken from TIND and the same file * name like this "*NNN.asl" is reported for all the bug-demo files corresponding * to the same bug where NNN is the number of bug. So, "indexes of errors * (inside the file)" corresponding to the same bug should differ through * all files of that bug. */ Name (ZFFF, 0x07FF) /* * Flag: 0 - 32, 1 - 64 */ Name (F64, 0x00) /* * Byte and character size of Integer */ Name (ISZ0, 0x00) Name (ISZC, 0x00) /* * The tests execution trace. * * ETR0 - the size of trace Packages * ETR1 - the number of units (ETR0/3) in trace Packages * ERRP - Package for summary information about the first ETR1 errors * RP0P - Package to store the first ETR0 status lines of the * root Methods run results. * RMRC - current number of root Methods runs */ Name (ETR0, 0x04B0) Name (ETR1, 0x0190) Name (ERRP, Package (ETR0){}) Name (RP0P, Package (ETR0){}) Name (RMRC, 0x00) /* * Errors handling * (ERR0 & ERR2) overwrite (arg3 & arg4) of err() * (but there is no remained ArgX for ERR1 in err()). */ Name (ERRS, 0x00) /* Errors counter */ Name (ERRB, 0x00) /* Error opcode base */ Name (ERR0, 0x00) /* Absolute index of file initiating the checking */ Name (ERR1, 0x00) /* Name of Method initiating the checking */ Name (ERR2, 0x00) /* Index of checking */ Name (ERR3, 0x00) /* Current indicator of errors */ Name (ERR4, 0x00) /* Full print out of ERRORS SUMMARY */ Name (ERR5, 0x00) /* Used to calculate the number of errors of root Method */ Name (ERR6, 0x00) /* The number of failed root Methods (tests) */ Name (ERR7, 0x00) /* The number of errors detected during the loading stage */ Name (FNAM, 0x00) /* Test filename */ /* * Set parameters of current checking * * arg0 - absolute index of file initiating the checking * arg1 - name of Method initiating the checking * arg2 - index of checking (inside the file) * * ATTENTION: * These globals are introduced due to the lack of * parameters of ASL-Method (7). * Sometimes these parameters may mislead, because * may be redirected by the following more deeper * calls. We don't restore the previous values - it * would be too complicated. * * Apply it when the common Methods are used and * the initial Method which initialized the checking * is somewhere in another file and there is no remained * ArgX to pass that information. * * Apply it also when there are many entries with the * "index of checking" in the same file. It is more * convenient to arrange them inside the particular * Methods than to update all them inside the entire * file each time when it is needed to change any * or add some new. * * Note: * Due to the lack of ArgX the direct call to err() * doesn't allow to print the "Name of Method initiating * the checking". This is possible due to SET0 as well. * * Note: * Don't attempt to set up the zero "index of checking" * by this Method. It will be ignored and overwritten * by arg4 of err(). * * Note: * Nevertheless, in any case, the err() provides * not exact address of error but only hints where * to seek the actual source Method of error. */ Method (SET0, 3, NotSerialized) { If (ERR0) { ERR ("SET0", Z062, __LINE__, 0x00, 0x00, ERR0, 0x00) } Else { CopyObject (Arg0, ERR0) /* \ERR0 */ CopyObject (Arg1, ERR1) /* \ERR1 */ CopyObject (Arg2, ERR2) /* \ERR2 */ } } /* Reset parameters of current checking */ Method (RST0, 0, NotSerialized) { CopyObject (0x00, ERR0) /* \ERR0 */ CopyObject (0x00, ERR1) /* \ERR1 */ CopyObject (0x00, ERR2) /* \ERR2 */ CopyObject (0x00, FNAM) /* \FNAM */ } /* Reset current indicator of errors */ Method (RST2, 0, NotSerialized) { ERR3 = 0x00 } /* Get current indicator of errors */ Method (GET2, 0, NotSerialized) { Return (ERR3) /* \ERR3 */ } /* Collections of tests */ Name (TCLA, 0x00) /* compilation */ Name (TCLF, 0x01) /* functional */ Name (TCLC, 0x02) /* complex */ Name (TCLE, 0x03) /* exceptions */ Name (TCLD, 0x04) /* bug-demo (bdemo) */ Name (TCLS, 0x05) /* service */ Name (TCLM, 0x06) /* mt */ Name (TCLT, 0x07) /* Identity2MS */ Name (TCLI, 0x08) /* implementation dependent */ Name (MAXC, 0x08) /* equal to last maximal */ /* Current index of tests collection */ Name (TCLL, 0x00) /* Index of current test inside the collection */ Name (TIND, 0x12345678) /* Name of test */ Name (TSNM, "NAME_OF_TEST") /* Name of root method */ Name (NRMT, "") /* * Flag, execution of root-method was skipped. * * It means that there where no conditions to run the test, * the test was not run and the reported status is 'skipped'. * The relevant assertion specified by the test is not to be * verified under the particular conditions at all. * * For example, the test can be run only in 64-bit mode, in * 32-bit mode the result of the test is undefined, so in * 32-bit mode, don't run it but only report the status of * test as skipped. */ Name (FLG5, 0x00) /* * Flag, execution of root-method was blocked. * * It means that for some reason the test at present can not be run. * The tests was not run and the relevant assertion was not verified. * The test will be run when the conditions are changed. Up to that * moment, the status of such test is reported as 'blocked'. * * For example, some tests temporarily cause abort of testing, * thus preventing normal completion of all the tests of aslts * and generating the summary status of run of aslts. * To provide the normal conditions for other tests of aslts * we block the tests which prevent normal work * until the relevant causes are fixed in ACPICA. */ Name (FLG6, 0x00) /* * Flag, compiler the test in the abbu layout */ Name (ABUU, 0x00) /* Set global test filename */ Method (SETF, 1, NotSerialized) { CopyObject (Arg0, FNAM) /* \FNAM */ } /* * Test Header - Display common test header * * Arg0 - Name of test (RT25, etc) * Arg1 - Full Name of test ("Resource Descriptor Macro", etc.) * Arg2 - Test filename (via __FILE__ macro) */ Method (THDR, 3, NotSerialized) { /* Save the test filename in the FNAM global */ SETF (Arg2) /* Build output string and store to debug object */ Concatenate ("TEST: ", Arg0, Local1) Concatenate (Local1, ", ", Local2) Concatenate (Local2, Arg1, Local3) Concatenate (Local3, " (", Local4) Concatenate (Local4, Arg2, Local5) Concatenate (Local5, ")", Local6) Debug = Local6 } /* Report completion of root Method */ Method (RPT0, 0, NotSerialized) { /* To get the same view in both 32-bit and 64-bit modes */ Name (B000, Buffer (0x04){}) If (SizeOf (NRMT)) { /* Analyze previous run of root Method */ Concatenate (":", TCN0 (TCLL), Local1) Concatenate (Local1, ":", Local0) Concatenate (Local0, TNIC (TCLL, TIND), Local1) Concatenate (Local1, ":", Local0) Concatenate (Local0, NRMT, Local1) Concatenate (Local1, ":", Local0) Local7 = (ERRS - ERR5) /* \ERR5 */ If (FLG5) { Concatenate (Local0, "SKIPPED:", Local1) } ElseIf (FLG6) { Concatenate (Local0, "BLOCKED:", Local1) } ElseIf (Local7) { Concatenate (Local0, "FAIL:Errors # ", Local2) B000 = Local7 Concatenate (Local2, B000, Local0) Concatenate (Local0, ":", Local1) ERR6++ } Else { Concatenate (Local0, "PASS:", Local1) } Concatenate (":", CTST, Local0) Concatenate (Local0, Local1, Local2) Debug = Local2 If ((RMRC < ETR0)) { Concatenate (":", STST, Local2) Concatenate (Local2, Local1, Local0) RP0P [RMRC] = Local0 } RMRC++ } ERR5 = 0x00 FLG5 = 0x00 FLG6 = 0x00 } /* Set the name of current root method */ Method (SRMT, 1, NotSerialized) { /* Report completion of previous root Method */ RPT0 () /* Current number of errors */ ERR5 = ERRS /* \ERRS */ If (0x01) { Concatenate (Arg0, " test started", Debug) } CopyObject(Arg0, NRMT) } /* * Set 'skipped' status of execution of root method. * Used only to report that the root-method was not * run but skipped. */ Method (SKIP, 0, NotSerialized) { FLG5 = 0x01 } /* * Set 'blocked' status of execution of root method. * Used only to report that the root-method was not * run, it was blocked. */ Method (BLCK, 0, NotSerialized) { FLG6 = 0x01 } /* * Open sub-test * * arg0 - absolute index of file initiating the checking * arg1 - the name of Method initiating the checking */ Method (BEG0, 2, NotSerialized) { SET0 (Arg0, Arg1, 0x00) } /* Close sub-test */ Method (END0, 0, NotSerialized) { RST0 () } /* * Current test start * arg0 - name of test * arg1 - index of tests collection * arg2 - index of test inside the collection * arg3 - run mode parameter of test */ Method (STTT, 4, NotSerialized) { TSNM = Arg0 TCLL = Arg1 TIND = Arg2 NRMT = "" FLG5 = 0x00 FLG6 = 0x00 ERR5 = 0x00 /* Pack up ID of test case to use it in err() */ ERRB = PK00 (Arg1, Arg2) /* Initial work for any test */ Concatenate ("TEST (", TCN0 (TCLL), Local1) Concatenate (Local1, "), ", Local0) Concatenate (Local0, TSNM, Local1) If (RTPT) { /* Run Tests Parameters Technique (RTPT) */ /* When running a group of tests (collections), full* */ Local7 = 0x00 If ((RUN0 == 0x00)) { Local7 = 0x01 } ElseIf ((RUN0 == 0x01)) { If (Arg3) { Local7 = 0x01 } } ElseIf ((RUN0 == 0x02)) { If ((Arg3 == 0x00)) { Local7 = 0x01 } } ElseIf ((RUN0 == 0x03)) { If ((Arg3 == RUN1)) { Local7 = 0x01 } } ElseIf ((RUN0 == 0x04)) { If ((Arg1 == RUN2)) { If ((Arg2 == RUN3)) { Local7 = 0x01 } } } } Else { Local7 = 0x01 } If (!Local7) { Concatenate (Local1, ", SKIPPED", Local0) Local1 = Local0 } Debug = Local1 Return (Local7) } /* Current test finish */ Method (FTTT, 0, NotSerialized) { CH03 ("FTTT", 0x00, __LINE__, 0x00, 0x00) /* Report completion of previous root Method */ RPT0 () TSNM = "NAME_OF_TEST" TCLL = 0x00 TIND = 0x12345678 NRMT = "" FLG5 = 0x00 FLG6 = 0x00 ERR5 = 0x00 } /* * Pack up ID of test case * * arg0 - index of tests collection * arg1 - index of test inside the collection */ Method (PK00, 2, NotSerialized) { Local0 = (Arg0 & 0x0F) Local1 = (Arg1 & 0x1F) Local2 = (Local0 << 0x05) Local0 = (Local2 | Local1) Local7 = (Local0 << 0x17) Return (Local7) } /* * Pack up information of checking * * arg0 - absolute index of file initiating the checking * arg1 - index of checking (inside the file) */ Method (PK01, 2, NotSerialized) { Local0 = (Arg0 & 0x07FF) Local1 = (Arg1 & 0x0FFF) Local2 = (Local0 << 0x0C) Local7 = (Local2 | Local1) Return (Local7) } /* * Pack up index of bug * * arg0 - index of bug */ Method (PK02, 1, NotSerialized) { Local0 = (Arg0 & 0x01FF) Local7 = (Local0 << 0x17) Return (Local7) } /* * Pack up information of error * * arg0 - absolute index of file reporting the error * arg1 - index of error (inside the file) */ Method (PK03, 2, NotSerialized) { Local0 = (Arg0 & 0x07FF) Local1 = (Arg1 & 0x0FFF) Local2 = (Local0 << 0x0C) Local7 = (Local2 | Local1) Return (Local7) } /* * Errors processing * * NOTE: looks we have exceeded some of the fields below * but don't actually use them though pack them up. * * The layout of opcode of error (three 32-bit words) * * Word 0) 0xctfffeee (information of error) * * [31:28,4] - c 0xf0000000 * [27:23,5] - t 0x0f800000 * [22:12,11] - fff 0x007ff000 * [11:0,12] - eee 0x00000fff * * Word 1) 0xmmzzzuuu (information of checking) * * [31:23,9] - m 0xff800000 * [22:12,11] - zzz 0x007ff000 * [11:0,12] - uuu 0x00000fff * * Word 2) 0xnnnnnnnn (name of method) * * c - index of tests collection * t - index of test inside the collection * f - absolute index of file reporting the error * e - index of error (inside the file) * * z - absolute index of file initiating the checking * u - index of checking * m - miscellaneous: * 1) in case of TCLD tests there is an index of bug * * n - name of Method initiating the checking * * arg0 - diagnostic message (usually, the name of method conglomeration of tests) * arg1 - absolute index of file reporting the error * arg2 - line number of error (inside the file) * arg3 - absolute index of file initiating the checking * arg4 - line number of of checking (inside the file) * arg5 - first value (usually, received value) * arg6 - second value (usually, expected value) */ Method (ERR, 7, NotSerialized) { Local3 = 0x00 Local6 = 0x00 If (ERR0) { /* ERR0 (Local4) - absolute index of file initiating the checking */ /* ERR1 (Local3) - name of Method initiating the checking */ /* ERR2 (Local5) - index of checking */ Local4 = ERR0 /* \ERR0 */ Local3 = ERR1 /* \ERR1 */ /* Don't attempt to set up the zero "index of checking" */ /* by SET0. It will be ignored and overwritten by arg4 */ /* of err(). */ If (ERR2) { Local5 = ERR2 /* \ERR2 */ } Else { Local5 = Arg4 } } Else { Local4 = 0x00 Local5 = Arg4 If ((TCLL == TCLD)) { If (Local5) { Local4 = ZFFF /* \ZFFF */ } } Else { Local4 = Arg3 } If ((ObjectType (Arg0) == C00A)) { Local3 = Arg0 } } If (Local4) { /* Pack up information of checking */ Local6 = PK01 (Local4, Local5) } If ((TCLL == TCLD)) { /* Pack up index of bug */ Local0 = PK02 (TIND) Local6 |= Local0 } /* Pack up information of error */ Local0 = PK03 (Arg1, Arg2) /* Add ID of test case being executed */ Local7 = (ERRB | Local0) Local1 = "---------- ERROR : " Concatenate (Local1, Arg0, Local0) Debug = Local0 ERP0 (Arg1, Arg2, Local4, Local3, Local5) If ((ObjectType (Arg5) == 0x01)) /* Check for Integer */ { /* Format/print the Expected result value */ ToHexString (Arg6, Local0) ToDecimalString (Arg6, Local1) Concatenate ("**** Expected Result: 0x", Local0, Local0) Concatenate (Local0, ", (", Local0) Concatenate (Local0, Local1, Local0) Concatenate (Local0, ")", Local0) Debug = Local0 /* Format/print the Actual result value */ ToHexString (Arg5, Local0) ToDecimalString (Arg5, Local1) Concatenate ("**** Actual Result : 0x", Local0, Local0) Concatenate (Local0, ", (", Local0) Concatenate (Local0, Local1, Local0) Concatenate (Local0, ")", Local0) Debug = Local0 } Else { Debug = "**** Actual Result:" Debug = Arg5 Debug = "**** Expected Result:" Debug = Arg6 } Debug = "---------- END\n" /* Pack the summary information about the first N errors */ If ((ERRS < ETR1)) { Local0 = (ERRS * 0x03) ERRP [Local0] = Local7 /* information of error */ Local0++ ERRP [Local0] = Local6 /* information of checking */ Local0++ ERRP [Local0] = Local3 /* name of method */ } ERRS++ /* Set current indicator of errors */ ERR3 = 0x01 } /* * Report parameters of error * arg0 - absolute index of file reporting the error * arg1 - index of error * arg2 - absolute index of file initiating the checking * arg3 - name of Method initiating the checking * arg4 - index of checking */ Method (ERP0, 5, NotSerialized) { Concatenate ("TITLE : ", TSNM, Local0) Debug = Local0 Concatenate ("COLLECTION : ", TCN0 (TCLL), Local0) Local1 = TNIC (TCLL, TIND) Debug = Local0 Concatenate ("TEST CASE : ", Local1, Local0) Debug = Local0 Concatenate ("TEST : ", NRMT, Local0) Debug = Local0 /* Error */ If ((FNAM != 0x00)) { /* Use global filename, set via SETF */ Local1 = FNAM /* \FNAM */ } ElseIf ((Arg0 == ZFFF)) { /* ATTENTION: don't use zFFF in tests other than TCLD */ Local1 = SB00 (TIND, 0x00) } Else { Local1 = DerefOf (TFN0 [Arg0]) } Concatenate ("ERROR, File : ", Local1, Local0) Debug = Local0 Concatenate (" Line : ", ToDecimalString(Arg1), Local0) Debug = Local0 /* Checking */ If (Arg2) { If ((Arg2 == ZFFF)) { /* ATTENTION: don't use zFFF in tests other than TCLD */ Local1 = SB00 (TIND, 0x00) } Else { Local1 = DerefOf (TFN0 [Arg2]) } Concatenate ("CHECKING, File : ", Local1, Local0) Debug = Local0 If ((ObjectType (Arg3) == C00A)) { Concatenate (" Method : ", Arg3, Local0) Debug = Local0 } Concatenate (" Line : ", ToDecimalString(Arg4), Local0) Debug = Local0 } } /* * Service for bug-demo. * * arg0 - index of bug * arg1 - type of work: * 0 - return the name of test corresponding to bug-demo * 1 - return the name of file .. */ Method (SB00, 2, NotSerialized) { Local7 = "?" If ((Arg1 == 0x00)) { ToDecimalString (Arg0, Local0) Concatenate ("*", Local0, Local1) Concatenate (Local1, ".asl", Local7) } ElseIf ((Arg1 == 0x01)) { ToDecimalString (Arg0, Local0) Concatenate ("Demo of bug ", Local0, Local7) } Return (Local7) } /* Print out the whole contents, not only 32 bytes as debugger does */ Method (PRN0, 1, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = SizeOf (Arg0) LPC0 = 0x00 While (LPN0) { Local0 = DerefOf (Arg0 [LPC0]) Debug = Local0 LPN0-- LPC0++ } } /* * Check result of operation on equal to Zero * arg0 - message of error * arg1 - arg5 of err, "received value" * arg2 - arg6 of err, "expected value" * arg3 - value */ Method (CH00, 4, NotSerialized) { If ((Arg3 != Zero)) { ERR (Arg0, Z062, __LINE__, 0x00, 0x00, Arg1, Arg2) } } /* * Check result of operation on equal to Non-Zero (Ones) * arg0 - message of error * arg1 - arg5 of err, "received value" * arg2 - arg6 of err, "expected value" * arg3 - value */ Method (CH01, 4, NotSerialized) { If ((Arg3 != Ones)) { ERR (Arg0, Z062, __LINE__, 0x00, 0x00, Arg1, Arg2) } } /* * True, when the value is in range * * arg0 - Value * arg1 - RangeMin * arg2 - RangeMax */ Method (RNG0, 3, NotSerialized) { If ((Arg1 > Arg2)) { Debug = "RNG0: RangeMin greater than RangeMax" Fatal (0x00, 0x00000000, 0x00) /* Type, Code, Arg */ } If ((Arg1 > Arg0)) { Return (Zero) } ElseIf ((Arg0 > Arg2)) { Return (Zero) } Return (Ones) } /* 200 symbols (without '\0') */ Name (BIG0, "qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdf") /* All symbols */ Name (ALL0, "`1234567890-=qwertyuiop[]\\asdfghjkl;\'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?") /* Check all the constants are not corrupted */ Method (CST0, 0, NotSerialized) { If ((C000 != 0x0A)) { ERR ("c000 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C001 != 0x05)) { ERR ("c001 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C002 != 0x0D)) { ERR ("c002 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C003 != 0x0C)) { ERR ("c003 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C004 != 0x06)) { ERR ("c004 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C005 != 0x04)) { ERR ("c005 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C006 != 0x1F)) { ERR ("c006 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C007 != 0x33)) { ERR ("c007 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C008 != 0x00)) { ERR ("c008 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C009 != 0x01)) { ERR ("c009 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C00A != 0x02)) { ERR ("c00a corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C00B != 0x03)) { ERR ("c00b corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C00C != 0x04)) { ERR ("c00c corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C00D != 0x05)) { ERR ("c00d corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C00E != 0x06)) { ERR ("c00e corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C00F != 0x07)) { ERR ("c00f corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C010 != 0x08)) { ERR ("c010 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C011 != 0x09)) { ERR ("c011 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C012 != 0x0A)) { ERR ("c012 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C013 != 0x0B)) { ERR ("c013 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C014 != 0x0C)) { ERR ("c014 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C015 != 0x0D)) { ERR ("c015 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C016 != 0x0E)) { ERR ("c016 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C017 != 0x0F)) { ERR ("c017 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C018 != 0x10)) { ERR ("c018 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } If ((C019 != 0x11)) { ERR ("c019 corrupted", Z062, __LINE__, 0x00, 0x00, 0x00, 0x00) } } /* * Shift elements of buffer * , * , * * */ Method (SFT0, 4, Serialized) { Name (N000, 0x00) Name (NCUR, 0x00) N000 = Arg1 NCUR = 0x00 Local6 = 0x00 If (Arg2) { Local3 = Arg3 Local5 = (0x08 - Local3) } Else { Local5 = Arg3 Local3 = (0x08 - Local5) } Local0 = Arg1 Local0++ Name (B000, Buffer (Local0){}) While (N000) { Local0 = DerefOf (Arg0 [NCUR]) Local1 = (Local0 >> Local3) Local2 = (Local1 & 0xFF) Local1 = (Local2 | Local6) Local4 = (Local0 << Local5) Local6 = (Local4 & 0xFF) B000 [NCUR] = Local1 N000-- NCUR++ } B000 [NCUR] = Local6 /* Store(arg0, Debug) */ /* Store(b000, Debug) */ Return (B000) /* \SFT0.B000 */ } /* * The entire byte size of buffer (starting with the * first byte of buffer, not field) affected by field. * * , * , */ Method (MBS0, 2, NotSerialized) { Local0 = (Arg0 + Arg1) Local1 = (Local0 + 0x07) Divide (Local1, 0x08, Local2, Local0) Return (Local0) } /* * Bit-shift (0-7) elements of buffer * * , * * , * , * , */ Method (SFT1, 5, Serialized) { Name (PREV, 0x00) Name (MS00, 0x00) Name (MS01, 0x00) Name (MS02, 0x00) Name (MS03, 0x00) Name (TAIL, 0x00) Name (LBT0, 0x00) /* Loop 0 */ Name (LPN0, 0x00) Name (LPC0, 0x00) /* Byte size of result buffer */ Name (NB01, 0x00) /* Reqular processed bytes number */ Name (NREG, 0x00) /* Bit-size of low part of byte */ Name (NB08, 0x00) /* Bit-size of high part of byte */ Name (NB09, 0x00) /* Bit-size of last byte */ Name (REST, 0x00) If ((Arg2 < 0x01)) { ERR ("sft", Z062, __LINE__, 0x00, 0x00, Arg2, 0x01) Return (Ones) } If ((Arg1 > 0x07)) { ERR ("sft", Z062, __LINE__, 0x00, 0x00, Arg1, 0x07) Return (Ones) } NB01 = MBS0 (Arg1, Arg2) Name (B000, Buffer (NB01){}) /* Layout of regulsr bytes */ NB08 = Arg1 NB09 = (0x08 - NB08) /* \SFT1.NB08 */ /* Produce masks of regulsr byte */ Local0 = (0xFF >> NB08) /* \SFT1.NB08 */ MS01 = (Local0 << NB08) /* \SFT1.NB08 */ MS00 = ~MS01 /* \SFT1.MS01 */ /* Last byte size */ Local7 = (Arg1 + Arg2) REST = (Local7 % 0x08) If ((REST == 0x00)) { REST = 0x08 } /* Substitute field usually determined on previous step */ PREV = (Arg3 & MS00) /* \SFT1.MS00 */ /* Reqular processing repetition number */ If ((Arg2 >= NB09)) { NREG = 0x01 Local7 = (Arg2 - NB09) /* \SFT1.NB09 */ Divide (Local7, 0x08, Local1, Local0) NREG += Local0 } /* Regular processing */ LPN0 = NREG /* \SFT1.NREG */ LPC0 = 0x00 While (LPN0) { Local7 = DerefOf (Arg0 [LPC0]) Local0 = (Local7 << NB08) /* \SFT1.NB08 */ Local1 = (Local0 | PREV) /* \SFT1.PREV */ B000 [LPC0] = Local1 PREV = (Local7 >> NB09) /* \SFT1.NB09 */ LPN0-- LPC0++ } If ((REST == 0x08)) { TAIL = 0x00 } ElseIf ((REST <= NB08)) { TAIL = 0x01 } Else { TAIL = 0x02 LBT0 = DerefOf (Arg0 [LPC0]) } /* =================== */ /* Processing the tail */ /* =================== */ If ((TAIL == 0x01)) { /* Produce masks */ Local0 = (0xFF >> REST) /* \SFT1.REST */ MS03 = (Local0 << REST) /* \SFT1.REST */ MS02 = ~MS03 /* \SFT1.MS03 */ Local0 = (PREV & MS02) /* \SFT1.MS02 */ Local1 = (Arg4 & MS03) /* \SFT1.MS03 */ Local2 = (Local0 | Local1) B000 [LPC0] = Local2 } ElseIf ((TAIL == 0x02)) { Local0 = (PREV & MS00) /* \SFT1.MS00 */ Local1 = (LBT0 << NB08) /* \SFT1.NB08 */ Local7 = (Local0 | Local1) /* * Byte layout: * 000011112222 * rem sz nb08 * 33333333 * nb09 * 44444444 * rest */ /* Produce masks of rem field */ Local2 = (0xFF >> REST) /* \SFT1.REST */ Local0 = (Local2 << REST) /* \SFT1.REST */ Local1 = ~Local0 /* Determine contents of field */ Local2 = (Local7 & Local1) /* Remained of original last (first) byte */ Local3 = (Arg4 & Local0) /* Result */ Local0 = (Local2 | Local3) B000 [LPC0] = Local0 } Return (B000) /* \SFT1.B000 */ } /* * Verify result * * arg0 - name of test * arg1 - result * arg2 - expected value (64-bit mode) * arg3 - expected value (32-bit mode) * DISADVANTAGE: information about the actual place * in errors reports is lost, should be * resolved in the future. */ Method (M4C0, 4, Serialized) { Name (TMP0, 0x00) Name (TMP1, 0x00) Local7 = 0x00 TMP0 = ObjectType (Arg1) If (F64) { TMP1 = ObjectType (Arg2) If ((TMP0 != TMP1)) { ERR (Arg0, Z062, __LINE__, 0x00, 0x00, TMP0, TMP1) Local7 = 0x01 } ElseIf ((Arg1 != Arg2)) { ERR (Arg0, Z062, __LINE__, 0x00, 0x00, Arg1, Arg2) Local7 = 0x01 } } Else { TMP1 = ObjectType (Arg3) If ((TMP0 != TMP1)) { ERR (Arg0, Z062, __LINE__, 0x00, 0x00, TMP0, TMP1) Local7 = 0x01 } ElseIf ((Arg1 != Arg3)) { ERR (Arg0, Z062, __LINE__, 0x00, 0x00, Arg1, Arg3) Local7 = 0x01 } } Return (Local7) } /* * Return one-symbol string * * arg0 - source string contains desirable symbols * srg1 - index inside the source string */ Method (M4A1, 2, Serialized) { Name (S000, " ") Local0 = DerefOf (Arg0 [Arg1]) S000 [0x00] = Local0 Return (S000) /* \M4A1.S000 */ } /* Initialization */ Method (STRT, 1, Serialized) { Method (M555, 0, NotSerialized) { } /* Data to determine 32/64 mode, global because of mt-tests */ DataTableRegion (HDR, "DSDT", "", "") Field (HDR, AnyAcc, NoLock, Preserve) { SIG, 32, LENG, 32, REV, 8, SUM, 8, OID, 48, OTID, 64, OREV, 32, CID, 32, CREV, 32 } /* * The first fictitious Method execution which statistics * is then used for to estimate all other Methods executions. */ M555 () TMT0 = Timer If ((REV < 0x02)) { F64 = 0x00 ISZ0 = 0x04 ISZC = 0x08 Debug = "32-bit mode" } Else { F64 = 0x01 ISZ0 = 0x08 ISZC = 0x10 Debug = "64-bit mode" } /* * Check that the total number of exceptions is zero here. * The internal data about the exceptions initiated by some * bdemo tests on a global level should be reset by them to * this point as they didn't take place. Otherwise, an error * will be below registered. */ If (CH02 ()) { ERR7++ /* Reset internal information about exceptions */ CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) EXC0 = 0x00 EXC1 = 0x00 } SRTP (Arg0) RTPI () RST0 () RST2 () /* Adjust some skippings of tests for different ACPICA releases */ SET2 (SETN) } Name (TCNP, Package (0x09) { "compilation", "functional", "complex", "exceptions", "bdemo", "service", "mt", "Identity2MS", "IMPL" }) /* * Test collection name * arg0 - index of test collection */ Method (TCN0, 1, NotSerialized) { Local7 = "?" If ((Arg0 <= MAXC)) { Local7 = DerefOf (TCNP [Arg0]) } Return (Local7) } /* * Name of test inside collection * arg0 - index of test collection * arg1 - index of test inside the collection */ Method (TNIC, 2, Serialized) { Local7 = "?" Switch (ToInteger (Arg0)) { Case (0x01) { Local7 = DerefOf (TNF0 [Arg1]) } Case (0x02) { Local7 = DerefOf (TNC0 [Arg1]) } Case (0x03) { Local7 = DerefOf (TNE0 [Arg1]) } Case (0x04) { Local7 = SB00 (Arg1, 0x01) } Case (0x05) { Local7 = DerefOf (TNS0 [Arg1]) } Case (0x06) { Local7 = DerefOf (TNM0 [Arg1]) } Case (0x07) { Local7 = DerefOf (TNT0 [Arg1]) } Case (0x08) { Local7 = DerefOf (TNI0 [Arg1]) } } Return (Local7) } /* Names of functional tests */ Name (TNF0, Package (0x0F) { "arithmetic", "bfield", "constant", "control", "descriptor", "external", "local", "logic", "manipulation", "name", "reference", "region", "synchronization", "table", "module" }) /* Names of complex tests */ Name (TNC0, Package (0x14) { "misc", "provoke", "oarg", "oconst", "olocal", "oreturn", "onamedloc", "onamedglob", "opackageel", "oreftonamed", "oconversion", "oreftopackageel", "rstore", "roptional", "rconversion", "rcopyobject", "rindecrement", "rexplicitconv", "badasl", "namespace" }) /* Names of exceptions tests */ Name (TNE0, Package (0x07) { "exc", "exc_operand1", "exc_operand2", "exc_result1", "exc_result2", "exc_ref", "exc_tbl" }) /* Names of service tests */ Name (TNS0, Package (0x01) { "condbranches" }) /* Names of mt tests */ Name (TNM0, Package (0x01) { "mt-mutex" }) /* Names of Identity2MS tests */ Name (TNT0, Package (0x01) { "abbu" }) /* Names of IMPL tests */ Name (TNI0, Package (0x01) { "dynobj" }) /* Names of test files */ Name (TFN0, Package (0xCD) { "UNDEF", /* 0 */ "crbuffield.asl", "constants.asl", "ctl0.asl", "ctl1.asl", "ctl2.asl", "timing.asl", "concatenaterestemplate.asl", "dependentfn.asl", "dma.asl", "dwordio.asl", "dwordmemory.asl", "dwordspace.asl", "extendedio.asl", "extendedmemory.asl", "extendedspace.asl", "fixedio.asl", "interrupt.asl", "io.asl", "irq.asl", "irqnoflags.asl", "memory24.asl", "memory32.asl", "memory32fixed.asl", "qwordio.asl", "qwordmemory.asl", /* 25 */ "qwordspace.asl", "register.asl", "resourcetemplate.asl", "rtemplate.asl", "vendorlong.asl", "vendorshort.asl", "wordbusnumber.asl", "wordio.asl", "wordspace.asl", "logical.asl", "concatenate.asl", "eisaid.asl", "match1.asl", "mid.asl", "objecttype.asl", "sizeof.asl", "store.asl", "tobuffer.asl", "todecimalstring.asl", "tofrombcd.asl", "tohexstring.asl", "tointeger.asl", "tostring.asl", "touuid.asl", "unicode.asl", /* 50 */ "package.asl", "event.asl", "mutex.asl", "misc.asl", "provoke.asl", "oconversion.asl", "rconversion.asl", "exc.asl", "exc_operand1.asl", "exc_result.asl", "XXXXXX.asl", /* 61 - RESERVED, not in use */ "common.asl", "ehandle.asl", "oproc.asl", "otest.asl", "rproc.asl", "rtest.asl", "switch1.asl", "switch2.asl", "switch3.asl", "switch4.asl", "switch5.asl", "switch6.asl", "while.asl", "match2.asl", "ref00.asl", "ref01.asl", "ref02.asl", "ref03.asl", "ref04.asl", "ref70.asl", "operations.asl", "arithmetic.asl", "ocommon.asl", "oconst.asl", "onamedglob1.asl", "onamedglob2.asl", "onamedloc1.asl", "onamedloc2.asl", "opackageel.asl", "oreftonamed1.asl", "exc_00_undef.asl", "exc_01_int.asl", "exc_02_str.asl", "exc_03_buf.asl", "exc_04_pckg.asl", "exc_05_funit.asl", "exc_06_dev.asl", "exc_07_event.asl", "exc_08_method.asl", /* 100 */ "exc_09_mux.asl", "exc_10_oreg.asl", "exc_11_pwr.asl", "exc_12_proc.asl", "exc_13_tzone.asl", "exc_14_bfield.asl", "exc_operand2.asl", "ref05.asl", "ref71.asl", "ref06.asl", "ref50.asl", "name.asl", "data.asl", "dataproc.asl", "datastproc.asl", "ref07.asl", /* 116 */ "olocal.asl", "oreturn.asl", "oreftopackageel.asl", "oreftonamed2.asl", /* 120 */ "oarg.asl", "rcommon.asl", "rstore.asl", "rcopyobject.asl", "rindecrement.asl", "rexplicitconv.asl", "roptional.asl", "tcicmd.asl", "dobexec.asl", "dobdecl.asl", /* 130 */ "dobctl.asl", "dobexceptions.asl", "method.asl", "function.asl", "condbranches.asl", "add.asl", "standaloneRet.asl", "store.asl", "return.asl", "dobmisc.asl", /* 140 */ "opregions.asl", "dtregions.asl", "regionfield.asl", "indexfield.asl", "bankfield.asl", "badasl.asl", "mt-common.asl", "mt-mutex.asl", "mt-mxs.asl", "mutex2.asl", /* 150 */ "mutex_proc.asl", "mt-tests.asl", "mt-service.asl", "ns0.asl", "ns1.asl", "ns2.asl", "ns3.asl", "ns4.asl", "ns5.asl", "ns6.asl", /* 160 */ "I2MS_msfail0.asl", "I2MS_st0.asl", "I2MS_ns_in00.asl", "I2MS_ns_in10.asl", "I2MS_ns_in20.asl", "I2MS_ns_in30.asl", "I2MS_ns_in40.asl", "I2MS_ns_in50.asl", "I2MS_mt0_abbu.asl", "I2MS_mt0_aslts.asl", /* 170 */ "I2MS_recursion_abbu.asl", "I2MS_recursion_aslts.asl", "serialized.asl", "load.asl", /* 174 */ "unload.asl", "loadtable.asl", "recursion.asl", "ns-scope.asl", /* 178 */ "ns-fullpath.asl", "scope.asl", /* 180 */ "object.asl", "order.asl", /* below are incorrect yet: */ "I2MS_ns_dv00.asl", "I2MS_ns_dv10.asl", "I2MS_ns_dv20.asl", "I2MS_ns_dv30.asl", "I2MS_ns_device.asl", "I2MS_ns_device_abbu.asl", "I2MS_ns_device_aslts.asl", /* see these files can be not used at all: */ "I2MS_ns4.asl", /* 190 */ "I2MS_ns5.asl", "I2MS_ns6.asl", /* ACPI 5.0 */ "fixeddma.asl", "gpioint.asl", "gpioio.asl", "i2cserialbus.asl", "spiserialbus.asl", "uartserialbus.asl", /* ACPI 6.2 */ "pinfunction.asl", "pinconfig.asl", /* 200 */ "pingroup.asl", "pingroupfunction.asl", "pingroupconfig.asl", /* External Op tests */ "external.asl" /* 204 */ }) /* * Unpack error * * arg0 - information of error (Word 0) * arg1 - information of checking (Word 1) * arg2 - name of Method initiating the checking (Word 2) */ Method (UNP0, 3, Serialized) { /* c - index of tests collection */ Local7 = (Arg0 >> 0x1C) Local0 = (Local7 & 0x0F) /* t - index of test inside the collection */ Local7 = (Arg0 >> 0x17) Local1 = (Local7 & 0x1F) /* f - absolute index of file reporting the error */ Local7 = (Arg0 >> 0x0C) Local2 = (Local7 & 0x07FF) /* e - index of error (inside the file) */ Local3 = (Arg0 & 0x0FFF) Local6 = "" Local7 = "" Switch (ToInteger (Local0)) { Case (0x01) { Local6 = DerefOf (TNF0 [Local1]) If (ERR4) { Local7 = ", functional, " } } Case (0x02) { Local6 = DerefOf (TNC0 [Local1]) If (ERR4) { Local7 = ", complex, " } } Case (0x03) { Local6 = DerefOf (TNE0 [Local1]) If (ERR4) { Local7 = ", exceptions, " } } Case (0x04) { /* m - in case of TCLD tests there is an index of bug */ Local0 = (Arg1 >> 0x17) Local1 = (Local0 & 0x01FF) Local6 = SB00 (Local1, 0x01) If (ERR4) { Local7 = ", bug-demo, " } } Case (0x05) { Local6 = DerefOf (TNS0 [Local1]) If (ERR4) { Local7 = ", service, " } } Case (0x06) { Local6 = DerefOf (TNM0 [Local1]) If (ERR4) { Local7 = ", mt, " } } Case (0x07) { Local6 = DerefOf (TNT0 [Local1]) If (ERR4) { Local7 = ", Identity2MS, " } } Case (0x08) { Local6 = DerefOf (TNI0 [Local1]) If (ERR4) { Local7 = ", IMPL, " } } } Concatenate (Local7, Local6, Local5) Concatenate (Local5, ", ", Local1) /* Error */ If ((Local2 == ZFFF)) { /* ATTENTION: don't use zFFF in tests other than TCLD */ /* m - in case of TCLD tests there is an index of bug */ Local0 = (Arg1 >> 0x17) Local2 = (Local0 & 0x01FF) Local6 = SB00 (Local2, 0x00) } Else { Local6 = DerefOf (TFN0 [Local2]) } Concatenate (Local1, Local6, Local7) Concatenate (Local7, ", ", Local1) Concatenate (Local1, Local3, Local7) /* (z+u) - entire field of checking */ Local5 = (Arg1 & 0x007FFFFF) If (Local5) { /* z - absolute index of file initiating the checking */ Local5 = (Arg1 >> 0x0C) Local2 = (Local5 & 0x07FF) /* u - index of checking */ Local3 = (Arg1 & 0x0FFF) If ((Local2 == ZFFF)) { /* ATTENTION: don't use zFFF in tests other than TCLD */ /* m - in case of TCLD tests there is an index of bug */ Local0 = (Arg1 >> 0x17) Local2 = (Local0 & 0x01FF) Local6 = SB00 (Local2, 0x00) } Else { Local6 = DerefOf (TFN0 [Local2]) } Concatenate (Local7, ", ", Local1) Concatenate (Local1, Local6, Local5) Concatenate (Local5, ", ", Local1) Concatenate (Local1, Local3, Local7) If ((ObjectType (Arg2) == C00A)) { Concatenate (Local7, ", ", Local1) Concatenate (Local1, Arg2, Local7) } } Return (Local7) } /* Report errors */ Method (RERR, 0, Serialized) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = ETR1 /* \ETR1 */ If ((ERRS < LPN0)) { LPN0 = ERRS /* \ERRS */ } Local0 = 0x00 Debug = "========= ERRORS SUMMARY (max 400):" While (LPN0) { Local7 = DerefOf (ERRP [Local0]) Local0++ Local6 = DerefOf (ERRP [Local0]) Local0++ Local4 = DerefOf (ERRP [Local0]) Local0++ Local1 = UNP0 (Local7, Local6, Local4) If (ERR4) { Concatenate ("", Local7, Local2) Concatenate (Local2, ", ", Local5) Concatenate (Local5, Local6, Local2) Concatenate (Local2, Local1, Local7) } Else { Concatenate ("", Local1, Local7) } Debug = Local7 LPN0-- LPC0++ } If ((ERRS > ETR1)) { Debug = "********* Not all errors were traced, maximum exceeded!" } Debug = "========= END." } /* Report root Methods run results */ Method (RRM0, 0, Serialized, 3) { Name (LPN0, 0x00) Name (LPC0, 0x00) LPN0 = ETR0 /* \ETR0 */ If ((RMRC < LPN0)) { LPN0 = RMRC /* \RMRC */ } Debug = "========= ROOT METHODS SUMMARY (max 600):" While (LPN0) { Local7 = DerefOf (RP0P [LPC0]) Debug = Local7 LPN0-- LPC0++ } If ((RMRC > ETR0)) { Debug = "********* Not all root Methods were traced, maximum exceeded!" } Debug = "========= END." } /* Final actions */ Method (FNSH, 0, NotSerialized) { /* Check, the current number of exceptions is zero */ CH03 ("FNSH", 0x00, __LINE__, 0x00, 0x00) /* Check all the constants are not corrupted */ CST0 () /* Run time */ Local7 = Timer Local6 = (Local7 - TMT0) /* \TMT0 */ Divide (Local6, 0x0A, Local1, Local2) Divide (Local2, 0x000F4240, Local1, Local0) Debug = Concatenate ("Run time (in seconds): 0x", Local0) /* Exceptions total */ Debug = Concatenate ("The total number of exceptions handled: 0x", EXC1) /* Status of test run */ If (ERRS) { RERR () } /* Report root Methods run results */ RRM0 () If (F64) { Concatenate ("TEST ACPICA: ", "64-bit :", Local0) } Else { Concatenate ("TEST ACPICA: ", "32-bit :", Local0) } If (ERR7) { Concatenate ("!!!! ERRORS were detected during the loading stage, # 0x", ERR7, Debug) } EXC1 = 0x00 If ((ERRS || ERR7)) { Concatenate (Local0, " FAIL : Errors # 0x", Local1) Concatenate (Local1, ERRS, Local2) Concatenate (Local2, ", Failed tests # 0x", Local1) Debug = Concatenate (Local1, ERR6) Return (0x01) } Debug = Concatenate (Local0, " PASS") Return (0x00) } /* Trace execution */ /* * Report write operation * arg0 - object where writing * arg1 - index where writing * arg2 - value */ Method (TRC0, 3, NotSerialized) { If (TRCF) { Concatenate (TRCH, ", WRITE: where ", Local0) Concatenate (Local0, Arg1, Local1) Concatenate (Local1, ", ", Local0) Concatenate (Local0, Arg2, Local1) Debug = Local1 } } /* * Report read operation * arg0 - object from where reading * arg1 - index from where reading * arg2 - obtained value */ Method (TRC1, 3, NotSerialized) { If (TRCF) { Concatenate (TRCH, ", READ: where ", Local0) Concatenate (Local0, Arg1, Local1) Concatenate (Local1, ", ", Local0) Concatenate (Local0, Arg2, Local1) Debug = Local1 } } /* * Report string * arg0 - string */ Method (TRC2, 1, NotSerialized) { If (TRCF) { Concatenate (TRCH, ", ", Local0) Concatenate (Local0, Arg0, Local1) Debug = Local1 } } /* Switch on trace */ Method (TRC8, 0, NotSerialized) { TRCF = 0x01 } /* Switch off trace */ Method (TRC9, 0, NotSerialized) { TRCF = 0x00 } /* Start of test */ Method (TS00, 1, NotSerialized) { If (PR01) { Concatenate ("Test ", Arg0, Local0) Concatenate (Local0, " started", Local1) Debug = Local1 } } /* * Convert the Timer units (one unit - 100 nsecs) to Seconds * arg0 - interval in Timer units */ Method (TMR0, 1, NotSerialized) { /* Convert to microseconds */ Divide (Arg0, 0x0A, Local0, Local1) /* Convert to seconds */ Divide (Local1, 0x000F4240, Local0, Local2) Return (Local2) } acpica-unix-20250404/tests/aslts/src/runtime/cntl/ehandle.asl0000700000175000017500000006243114773714147023344 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Exceptional conditions support */ Name (Z063, 0x3F) /* The current number of exceptions handled */ Name (EXC0, 0x00) /* The total number of exceptions handled */ Name (EXC1, 0x00) /* Opcode of the last exception */ Name (EX00, 0x00) /* Name of the last exception */ Name (EX01, "") /* Opcode of the first exception */ Name (EX04, 0x00) /* Name of the first exception */ Name (EX05, "") /* * Undefined opcodes of exception */ Name (EX0D, 0xFD) Name (EX0E, 0xFE) /* Undefined opcode of exception means 'any exceptions' */ Name (EX0F, 0xFF) /* Description of all exceptional conditions */ Name (PF00, Package (0x57) { /* ix opcodes names */ Package (0x03) { 0x00, 0x00, "AE_OK" }, Package (0x03) { 0x01, 0x01, "AE_ERROR" }, Package (0x03) { 0x02, 0x02, "AE_NO_ACPI_TABLES" }, Package (0x03) { 0x03, 0x03, "AE_NO_NAMESPACE" }, Package (0x03) { 0x04, 0x04, "AE_NO_MEMORY" }, Package (0x03) { 0x05, 0x05, "AE_NOT_FOUND" }, Package (0x03) { 0x06, 0x06, "AE_NOT_EXIST" }, Package (0x03) { 0x07, 0x07, "AE_ALREADY_EXISTS" }, Package (0x03) { 0x08, 0x08, "AE_TYPE" }, Package (0x03) { 0x09, 0x09, "AE_NULL_OBJECT" }, Package (0x03) { 0x0A, 0x0A, "AE_NULL_ENTRY" }, Package (0x03) { 0x0B, 0x0B, "AE_BUFFER_OVERFLOW" }, Package (0x03) { 0x0C, 0x0C, "AE_STACK_OVERFLOW" }, Package (0x03) { 0x0D, 0x0D, "AE_STACK_UNDERFLOW" }, Package (0x03) { 0x0E, 0x0E, "AE_NOT_IMPLEMENTED" }, Package (0x03) { 0x0F, 0x0F, "AE_VERSION_MISMATCH" }, /* obsolete */ Package (0x03) { 0x10, 0x0F, "AE_SUPPORT" }, Package (0x03) { 0x11, 0x11, "AE_SHARE" }, /* obsolete */ Package (0x03) { 0x12, 0x10, "AE_LIMIT" }, Package (0x03) { 0x13, 0x11, "AE_TIME" }, Package (0x03) { 0x14, 0x14, "AE_UNKNOWN_STATUS" }, /* obsolete */ Package (0x03) { 0x15, 0x12, "AE_ACQUIRE_DEADLOCK" }, Package (0x03) { 0x16, 0x13, "AE_RELEASE_DEADLOCK" }, Package (0x03) { 0x17, 0x14, "AE_NOT_ACQUIRED" }, Package (0x03) { 0x18, 0x15, "AE_ALREADY_ACQUIRED" }, Package (0x03) { 0x19, 0x16, "AE_NO_HARDWARE_RESPONSE" }, Package (0x03) { 0x1A, 0x17, "AE_NO_GLOBAL_LOCK" }, Package (0x03) { 0x1B, 0x18, "AE_ABORT_METHOD" }, Package (0x03) { 0x1C, 0x1001, "AE_BAD_PARAMETER" }, Package (0x03) { 0x1D, 0x1002, "AE_BAD_CHARACTER" }, Package (0x03) { 0x1E, 0x1003, "AE_BAD_PATHNAME" }, Package (0x03) { 0x1F, 0x1004, "AE_BAD_DATA" }, Package (0x03) { 0x20, 0x1005, "AE_BAD_ADDRESS" }, /* obsolete */ Package (0x03) { 0x21, 0x1006, "AE_ALIGNMENT" }, /* obsolete */ Package (0x03) { 0x22, 0x1005, "AE_BAD_HEX_CONSTANT" }, Package (0x03) { 0x23, 0x1006, "AE_BAD_OCTAL_CONSTANT" }, Package (0x03) { 0x24, 0x1007, "AE_BAD_DECIMAL_CONSTANT" }, Package (0x03) { 0x25, 0x2001, "AE_BAD_SIGNATURE" }, Package (0x03) { 0x26, 0x2002, "AE_BAD_HEADER" }, Package (0x03) { 0x27, 0x2003, "AE_BAD_CHECKSUM" }, Package (0x03) { 0x28, 0x2004, "AE_BAD_VALUE" }, Package (0x03) { 0x29, 0x2005, "AE_TABLE_NOT_SUPPORTED" }, /* obsolete */ Package (0x03) { 0x2A, 0x2005, "AE_INVALID_TABLE_LENGTH" }, Package (0x03) { 0x2B, 0x3001, "AE_AML_ERROR" }, /* obsolete */ Package (0x03) { 0x2C, 0x3002, "AE_AML_PARSE" }, /* obsolete */ Package (0x03) { 0x2D, 0x3001, "AE_AML_BAD_OPCODE" }, Package (0x03) { 0x2E, 0x3002, "AE_AML_NO_OPERAND" }, Package (0x03) { 0x2F, 0x3003, "AE_AML_OPERAND_TYPE" }, Package (0x03) { 0x30, 0x3004, "AE_AML_OPERAND_VALUE" }, Package (0x03) { 0x31, 0x3005, "AE_AML_UNINITIALIZED_LOCAL" }, Package (0x03) { 0x32, 0x3006, "AE_AML_UNINITIALIZED_ARG" }, Package (0x03) { 0x33, 0x3007, "AE_AML_UNINITIALIZED_ELEMENT" }, Package (0x03) { 0x34, 0x3008, "AE_AML_NUMERIC_OVERFLOW" }, Package (0x03) { 0x35, 0x3009, "AE_AML_REGION_LIMIT" }, Package (0x03) { 0x36, 0x300A, "AE_AML_BUFFER_LIMIT" }, Package (0x03) { 0x37, 0x300B, "AE_AML_PACKAGE_LIMIT" }, Package (0x03) { 0x38, 0x300C, "AE_AML_DIVIDE_BY_ZERO" }, Package (0x03) { 0x39, 0x300D, "AE_AML_BAD_NAME" }, Package (0x03) { 0x3A, 0x300E, "AE_AML_NAME_NOT_FOUND" }, Package (0x03) { 0x3B, 0x300F, "AE_AML_INTERNAL" }, Package (0x03) { 0x3C, 0x3010, "AE_AML_INVALID_SPACE_ID" }, Package (0x03) { 0x3D, 0x3011, "AE_AML_STRING_LIMIT" }, Package (0x03) { 0x3E, 0x3012, "AE_AML_NO_RETURN_VALUE" }, Package (0x03) { 0x3F, 0x3014, "AE_AML_NOT_OWNER" }, Package (0x03) { 0x40, 0x3015, "AE_AML_MUTEX_ORDER" }, Package (0x03) { 0x41, 0x3016, "AE_AML_MUTEX_NOT_ACQUIRED" }, Package (0x03) { 0x42, 0x3017, "AE_AML_INVALID_RESOURCE_TYPE" }, Package (0x03) { 0x43, 0x3018, "AE_AML_INVALID_INDEX" }, Package (0x03) { 0x44, 0x3019, "AE_AML_REGISTER_LIMIT" }, Package (0x03) { 0x45, 0x301A, "AE_AML_NO_WHILE" }, Package (0x03) { 0x46, 0x301B, "AE_AML_ALIGNMENT" }, Package (0x03) { 0x47, 0x301C, "AE_AML_NO_RESOURCE_END_TAG" }, Package (0x03) { 0x48, 0x301D, "AE_AML_BAD_RESOURCE_VALUE" }, Package (0x03) { 0x49, 0x301E, "AE_AML_CIRCULAR_REFERENCE" }, Package (0x03) { 0x4A, 0x4001, "AE_CTRL_RETURN_VALUE" }, Package (0x03) { 0x4B, 0x4002, "AE_CTRL_PENDING" }, Package (0x03) { 0x4C, 0x4003, "AE_CTRL_TERMINATE" }, Package (0x03) { 0x4D, 0x4004, "AE_CTRL_TRUE" }, Package (0x03) { 0x4E, 0x4005, "AE_CTRL_FALSE" }, Package (0x03) { 0x4F, 0x4006, "AE_CTRL_DEPTH" }, Package (0x03) { 0x50, 0x4007, "AE_CTRL_END" }, Package (0x03) { 0x51, 0x4008, "AE_CTRL_TRANSFER" }, Package (0x03) { 0x52, 0x4009, "AE_CTRL_BREAK" }, Package (0x03) { 0x53, 0x400A, "AE_CTRL_CONTINUE" }, /* New additional are here not to touch previous indexes */ Package (0x03) { 0x54, 0x3013, "AE_AML_METHOD_LIMIT" }, Package (0x03) { 0x55, 0x100B, "AE_INDEX_TO_NOT_ATTACHED" }, Package (0x03) { 0x56, 0x1B, "AE_OWNER_ID_LIMIT" } }) /* * (multi-threading) * * Packages to store per-thread information about exceptions * (used in mt-mode) * * EXC2 - maximal number of exception can be registered * EX02 - package to store ID of thread where exception occurs * EX03 - package to store opcode of exception */ Name (EXC2, 0xC8) Name (EX02, Package (EXC2){}) Name (EX03, Package (EXC2){}) /* * Exceptional conditions handler * * arg0 - AcpiStatus * arg1 - AsciiExceptionString * arg2 - ID of current thread */ Method (_ERR, 3, NotSerialized) { EX00 = Arg0 EX01 = Arg1 If ((EX04 == 0x00)) { EX04 = Arg0 EX05 = Arg1 } /* multi-threading */ If (MTHR) { /* If the current number of exceptions handled doesn't exceed EXC2 */ If ((EXC0 < EXC2)) { EX02 [EXC0] = Arg2 EX03 [EXC0] = Arg0 } Else { Debug = "Maximal number of exceptions exceeded" ERR ("_ERR", Z063, __LINE__, 0x00, 0x00, EXC0, EXC2) } } EXC0++ EXC1++ /* Store("Run-time exception:", Debug) */ /* Store(arg0, Debug) */ /* Store(arg1, Debug) */ /* Store(arg2, Debug) */ Return (0x00) /* Map error to AE_OK */ } /* Check that exceptions has not arisen at all */ Method (CH02, 0, NotSerialized) { If (EXC1) { Concatenate ("Some unexpected exceptions were handled, 0x", EXC1, Local0) ERR ("CH02", Z063, __LINE__, 0x00, 0x00, Local0, 0x00) } Return (EXC1) /* \EXC1 */ } /* * Check that the counter of current exceptions is zero. Set it to zero. * arg0 - diagnostic message * arg1 - absolute index of file initiating the checking * arg2 - line number of checking * arg3 - arg5 of err, "received value" * arg4 - arg6 of err, "expected value" */ Method (CH03, 5, NotSerialized) { Local7 = 0x00 If (EXC0) { Concatenate ("Unexpected exceptions (count ", EXC0, Local0) Concatenate (Local0, "), the last is ", Local1) Concatenate (Local1, EX01, Local0) Concatenate (Local0, ", ", Local1) Concatenate (Local1, EX00, Debug) ERR (Arg0, Z063, __LINE__, Arg1, Arg2, Arg3, Arg4) Local7 = EXC0 /* \EXC0 */ } EXC0 = 0x00 EX04 = 0x00 Return (Local7) } /* */ /* Convert 32/64 bit integer to 16-bit Hex value */ /* */ Method (ST16, 1, Serialized) { Name (EBUF, Buffer (ISZC){}) /* 8 or 16 bytes, depending on 32/64 mode */ Name (RBUF, Buffer (0x04){}) EBUF = ToHexString (Arg0) Mid (EBUF, (ISZC - 0x04), 0x04, RBUF) /* \ST16.RBUF */ Return (Concatenate ("0x", ToString (RBUF, Ones))) } /* * Check that exceptions are handled as expected, report errors * (if any) and set the current number of exceptions to zero. * * Verified: * - exception has arisen * - check the number of exceptions * - the last arisen exception matches one described by arguments * * arg0 - diagnostic message * arg1 - * zero means: * - check that only one exception has arisen (current number is equal to 1) * - check that opcode is equal to that specified by arg2 * non-zero means: * - check that the number of exception arisen is not less than 1 * (current number is equal to 1 or greater) * 1: check that the first opcode is equal to that specified by arg2 * 2: check that the last opcode is equal to that specified by arg2 * * arg2 - index of exception info in pf00 Package * arg3 - absolute index of file initiating the checking * arg4 - line number of checking * arg5 - arg5 of err, "received value" * arg6 - arg6 of err, "expected value" */ Method (CH04, 7, NotSerialized) { Local5 = 0x00 If ((Arg2 == 0xFF)) { If ((EXC0 == 0x00)) { Local5 = 0x01 Debug = "ERROR: No ANY exception has arisen." } } Else { /* Determine opcode and name of the expected exception */ Local2 = DerefOf (PF00 [Arg2]) /* exception info */ Local3 = DerefOf (Local2 [0x01]) /* opcode */ Local4 = DerefOf (Local2 [0x02]) /* name */ If ((EXC0 == 0x00)) { Local5 = 0x01 Concatenate ("No exception - expected: ", Local4, Local0) Concatenate (Local0, "-", Local0) Concatenate (Local0, ST16 (Local3), Local0) Debug = Local0 } ElseIf ((!Arg1 && (EXC0 > 0x01))) { Local5 = 0x01 Concatenate ("More than one exception: 0x", EXC0, Local0) Debug = Local0 } Else { If ((Arg1 == 0x01)) { /* Opcode of the first exception */ Local6 = EX04 /* \EX04 */ Local7 = EX05 /* \EX05 */ } Else { /* Opcode of the last exception */ Local6 = EX00 /* \EX00 */ Local7 = EX01 /* \EX01 */ } If ((Local3 != Local6)) { Local5 = 0x01 Concatenate ("Exception: ", Local7, Local0) Concatenate (Local0, "-", Local0) Concatenate (Local0, ST16 (Local6), Local0) Concatenate (" differs from expected: ", Local4, Local1) Concatenate (Local0, Local1, Local0) Concatenate (Local0, "-", Local0) Concatenate (Local0, ST16 (Local3), Local0) Debug = Local0 } If ((Local4 != Local7)) { Local5 = 0x01 Debug = "Unexpected exception:" Debug = Concatenate ("Expected: ", Local4) Debug = Concatenate ("Received: ", Local7) } } } /* if(LNotEqual(arg2,0xff)) */ EXC0 = 0x00 EX04 = 0x00 If (Local5) { ERR (Arg0, Z063, __LINE__, Arg3, Arg4, Arg5, Arg6) } Return (Local5) } Method (CH05, 0, NotSerialized) { Return (CH03 ("CH05", 0x00, __LINE__, 0x00, 0x00)) } Method (CH06, 3, NotSerialized) { If (EXCV) { Return (CH04 (Arg0, 0x00, Arg2, 0x00, __LINE__, 0x00, 0x00)) } Else { /* Just only presence of ANY exception(s) */ Return (CH04 (Arg0, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00)) } } /* * Check for any exception when the slack mode is initiated */ Method (CH07, 7, NotSerialized) { If (SLCK) { CH03 (Arg0, Arg3, __LINE__, 0x00, Arg6) } Else { CH04 (Arg0, Arg1, Arg2, Arg3, __LINE__, Arg5, Arg6) } } /* MULTI-THREADING */ /* * Report message of thread * (adds ID of thread and reports the message) * * arg0 - ID of current thread * arg1 - string */ Method (MSG0, 2, NotSerialized) { Concatenate ("THREAD ID ", Arg0, Local0) Concatenate (Local0, ": ", Local1) Concatenate (Local1, Arg1, Local0) Debug = Local0 } /* * Used in multi-threading mode * * Return the first encountered exception corresponding to this Thread ID * and the total number of exceptions corresponding to this Thread ID. * Reset all the entries corresponding to the thread identified by arg0. * * Note: this method is used in mt-mode (by several threads simultaneously) * but each of threads changes only its elements of EX02. * * arg0 - ID of current thread */ Method (MTEX, 1, NotSerialized) { Local2 = Package (0x02) { 0x00, 0x00 } /* Package to be returned */ Local3 = 0x00 /* found */ Local4 = EXC0 /* lpN0 */ /* \EXC0 */ Local5 = 0x00 /* lpC0 */ While (Local4) { Local0 = DerefOf (EX02 [Local5]) /* Matching ID of current thread */ If ((Local0 == Arg0)) { Local1 = DerefOf (EX03 [Local5]) If ((Local3 == 0x00)) { /* Opcode of the first exception */ Local2 [0x00] = Local1 } Local3++ /* Reset information about this exception */ EX02 [Local5] = 0x00 } Local4-- Local5++ } Local2 [0x01] = Local3 Return (Local2) } /* * The same as CH03, but to be used in multi-threading mode * * arg0 - diagnostic message * arg1 - ID of current thread * arg2 - absolute index of file initiating the checking * arg3 - index of checking * arg4 - arg5 of err, "received value" * arg5 - arg6 of err, "expected value" * * Return: current number of exceptions occur on this thread */ Method (CH08, 6, NotSerialized) { Local2 = MTEX (Arg1) Local3 = DerefOf (Local2 [0x00]) /* opcode of the first exception */ Local4 = DerefOf (Local2 [0x01]) /* number of exceptions */ Local7 = 0x00 If (Local4) { Concatenate ("Unexpected exception 0x", Local3, Local0) Concatenate (Local0, ", number of exceptions 0x", Local1) Concatenate (Local1, Local4, Local0) MSG0 (Arg1, Local0) ERR (Arg0, Z063, __LINE__, Arg2, Arg3, Arg4, Arg5) Local7 = 0x01 } /* * Reset of EXC0 should be done by Control thread * Store(0, EXC0) */ Return (Local4) } /* * The same as CH04, but to be used in multi-threading mode * * arg0 - non-zero means to treat "More than one exceptions" as error * arg1 - ID of current thread * arg2 - index of exception info in pf00 Package * arg3 - absolute index of file initiating the checking * arg4 - index of checking * arg5 - RefOf to Integer to return 'current number of exceptions occur on this thread' * * Return: non-zero when errors detected */ Method (CH09, 6, NotSerialized) { Local7 = MTEX (Arg1) Local6 = DerefOf (Local7 [0x00]) /* opcode of the first exception */ Local7 = DerefOf (Local7 [0x01]) /* number of exceptions */ Local5 = 0x00 If ((Arg2 == 0xFF)) { If ((Local7 == 0x00)) { /* No exceptions */ Local5 = 0x01 MSG0 (Arg1, "ERROR: No ANY exception has arisen.") } } Else { /* Determine opcode and name of the expected exception */ Local2 = DerefOf (PF00 [Arg2]) /* exception info */ Local3 = DerefOf (Local2 [0x01]) /* opcode */ Local4 = DerefOf (Local2 [0x02]) /* name */ If ((Local7 == 0x00)) { /* No exceptions */ Local5 = 0x01 Concatenate ("No exception has arisen, expected: ", Local4, Local0) Concatenate (", opcode 0x", Local3, Local1) Concatenate (Local0, Local1, Local0) MSG0 (Arg1, Local0) } ElseIf ((Arg0 && (Local7 > 0x01))) { Local5 = 0x01 Concatenate ("More than one exception has arisen: 0x", Local7, Local0) MSG0 (Arg1, Local0) } ElseIf /* Opcode of the first exception */ ((Local3 != Local6)) { Local5 = 0x01 Concatenate ("The exception 0x", Local6, Local0) Concatenate (Local0, " differs from expected ", Local1) Concatenate (Local1, ST16 (Local3), Local0) MSG0 (Arg1, Local0) } } /* if(LNotEqual(arg2,0xff)) */ /* * Reset of EXC0 should be done by Control thread * Store(0, EXC0) */ If (Local5) { ERR (__METHOD__, Z063, __LINE__, Arg3, Arg4, 0x00, 0x00) } Arg5 = Local7 Return (Local5) } /* * Reset EXC0 (the current number of exceptions handled) * * It should be invoked by the Control thread. */ Method (CH0A, 0, NotSerialized) { EXC0 = 0x00 } acpica-unix-20250404/tests/aslts/src/runtime/cntl/MT_DECL.asl0000700000175000017500000000361514773714147023052 0ustar ivanhuivanhu /* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* For multi-threading */ Include ("../../../../runtime/cntl/common.asl") Include ("../../../../runtime/cntl/mt_runpoint.asl") Include ("../../../../runtime/cntl/runmode.asl") Include ("../../../../runtime/cntl/ehandle.asl") acpica-unix-20250404/tests/aslts/src/runtime/cntl/DECL_7UP.asl0000700000175000017500000000342114773714147023140 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ Include("../../../../../../../runtime/cntl/common.asl") Include("../../../../../../../runtime/cntl/runpoint.asl") Include("../../../../../../../runtime/cntl/runmode.asl") Include("../../../../../../../runtime/cntl/ehandle.asl") acpica-unix-20250404/tests/aslts/src/Makefile0000700000175000017500000000007714773714147020256 0ustar ivanhuivanhu# src MDIRS = runtime TOP= .. include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/src/compilation/0000700000175000017500000000000014773714147021125 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/compilation/README0000700000175000017500000000015714773714147022013 0ustar ivanhuivanhu CONTENTS ASL-compilation control test collection collection ASL-compilation control test collection acpica-unix-20250404/tests/aslts/src/compilation/collection/0000700000175000017500000000000014773714147023260 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/src/compilation/collection/extern.asl0000700000175000017500000000310614773714147025271 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // ASL compiler controls acpica-unix-20250404/tests/aslts/src/compilation/collection/README0000700000175000017500000000025214773714147024142 0ustar ivanhuivanhu CONTENTS ASL-compilation control test collection The contents of test is split into several files according to the groups of ASL operators which are examined.acpica-unix-20250404/tests/aslts/src/compilation/collection/local.asl0000700000175000017500000000341114773714147025055 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Control method objects Method(m600) { Store(Local0, Debug) Store(Local1, Debug) Store(Local2, Debug) Store(Local3, Debug) Store(Local4, Debug) Store(Local5, Debug) Store(Local6, Debug) Store(Local7, Debug) } acpica-unix-20250404/tests/aslts/src/compilation/collection/reference.asl0000700000175000017500000005466514773714147025742 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Object references */ // !!!!!!!!!!!!!!!!!!!!!!!!!!!!! // ????? don't forget to remove DefinitionBlock from there !!!!!!!!!!! // ??????????????????????????????? DefinitionBlock( "reference.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // /////////////////////////////////////////////////////////////////////////// // // TABLE 1: all the legal ways to generate references // to the immediate images (constants) // // /////////////////////////////////////////////////////////////////////////// Name(b100, Buffer(32) {0x12}) OperationRegion(r100, SystemMemory, 0x100, 0x100) Field(r100, ByteAcc, NoLock, Preserve) {bnk0, 8, f00a, 8, f00b, 8} /* Method(ma00) { // T1:x,I1,+,+,+,I5-I7,,I9-I14,x,I16 Store(Index(0xabcdef, 0), Local0) Store(Index(Field(r100, ByteAcc, NoLock, Preserve) { f000, 8 }, 0), Local0) Store(Index(BankField(r100, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0, 8}, 0), Local0) Store(Index(IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,8,if01,8}, 0), Local0) Store(Index(Device(d000) {}, 0), Local0) Store(Index(Event(e000), 0), Local0) Store(Index(Mutex(mx00, 0), 0), Local0) Store(Index(OperationRegion(r000, SystemMemory, 0x100, 0x100), 0), Local0) Store(Index(PowerResource(pwr0, 1, 0) {}, 0), Local0) Store(Index(Processor(prc0, 0, 0xFFFFFFFF, 0) {}, 0), Local0) Store(Index(ThermalZone(tz00) {}, 0), Local0) Store(Index(CreateField(b100, 0, 8, bf00), 0), Local0) Store(Index(Debug, 0), Local0) } */ /* Method(ma01) { // T1:x,IR1,+,+,+,IR5-IR7,,IR9-IR14,x,IR16 Store(Index(0xabcdef, 0, Local1), Local0) Store(Index(Field(r100, ByteAcc, NoLock, Preserve) { f000, 8 }, 0, Local1), Local0) Store(Index(BankField(r100, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0, 8}, 0, Local1), Local0) Store(Index(IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,8,if01,8}, 0, Local1), Local0) Store(Index(Device(d000) {}, 0, Local1), Local0) Store(Index(Event(e000), 0, Local1), Local0) Store(Index(Mutex(mx00, 0), 0, Local1), Local0) Store(Index(OperationRegion(r000, SystemMemory, 0x100, 0x100), 0, Local1), Local0) Store(Index(PowerResource(pwr0, 1, 0) {}, 0, Local1), Local0) Store(Index(Processor(prc0, 0, 0xFFFFFFFF, 0) {}, 0, Local1), Local0) Store(Index(ThermalZone(tz00) {}, 0, Local1), Local0) Store(Index(CreateField(b100, 0, 8, bf00), 0, Local1), Local0) Store(Index(Debug, 0, Local1), Local0) } */ /* // Currently commented, because it breaks further compilation Method(ma02) { // T1:I8 Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,8} Field(r000, ByteAcc, NoLock, Preserve) {bnk0,8,f00a,8,f00b,8} BankField(r000, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0,4} IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,1,if01,1} Device(d000) {} Event(e000) Mutex(mx00, 0) PowerResource(pwr0, 1, 0) {Method(mmmm){return (0)}} Processor(prc0, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} CreateField(b000, 0, 8, bf00) Store(Index(Method(m000){}, 0), Local0) Store(Index(Method(m001){return (0x12345678)}, 0), Local0) Store(Index(Method(m002){return ("zxvgswquiy")}, 0), Local0) Store(Index(Method(m003){return (Buffer() {0x11})}, 0), Local0) Store(Index(Method(m004){return (Package() {0x22})}, 0), Local0) Store(Index(Method(m005){return (Package() {"zxvgswquiy"})}, 0), Local0) Store(Index(Method(m006){return (Package() {Buffer() {0x11}})}, 0), Local0) Store(Index(Method(m007){return (Package() {Package() {0x22}})}, 0), Local0) Store(Index(Method(m008){return (f000)}, 0), Local0) Store(Index(Method(m009){return (bkf0)}, 0), Local0) Store(Index(Method(m00a){return (if00)}, 0), Local0) Store(Index(Method(m00b){return (d000)}, 0), Local0) Store(Index(Method(m00c){return (e000)}, 0), Local0) Store(Index(Method(m00d){return (m001)}, 0), Local0) Store(Index(Method(m00e){return (mx00)}, 0), Local0) Store(Index(Method(m00f){return (r000)}, 0), Local0) Store(Index(Method(m010){return (pwr0)}, 0), Local0) Store(Index(Method(m011){return (prc0)}, 0), Local0) Store(Index(Method(m012){return (tz00)}, 0), Local0) Store(Index(Method(m013){return (bf00)}, 0), Local0) } */ /* Method(ma03) { // T1:IR8 Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,8} Field(r000, ByteAcc, NoLock, Preserve) {bnk0,8,f00a,8,f00b,8} BankField(r000, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0,4} IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,1,if01,1} Device(d000) {} Event(e000) Mutex(mx00, 0) PowerResource(pwr0, 1, 0) {Method(mmmm){return (0)}} Processor(prc0, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} CreateField(b000, 0, 8, bf00) Store(Index(Method(m000){}, 0, Local1), Local0) Store(Index(Method(m001){return (0x12345678)}, 0, Local1), Local0) Store(Index(Method(m002){return ("zxvgswquiy")}, 0, Local1), Local0) Store(Index(Method(m003){return (Buffer() {0x11})}, 0, Local1), Local0) Store(Index(Method(m004){return (Package() {0x22})}, 0, Local1), Local0) Store(Index(Method(m005){return (Package() {"zxvgswquiy"})}, 0, Local1), Local0) Store(Index(Method(m006){return (Package() {Buffer() {0x11}})}, 0, Local1), Local0) Store(Index(Method(m007){return (Package() {Package() {0x22}})}, 0, Local1), Local0) Store(Index(Method(m008){return (f000)}, 0, Local1), Local0) Store(Index(Method(m009){return (bkf0)}, 0, Local1), Local0) Store(Index(Method(m00a){return (if00)}, 0, Local1), Local0) Store(Index(Method(m00b){return (d000)}, 0, Local1), Local0) Store(Index(Method(m00c){return (e000)}, 0, Local1), Local0) Store(Index(Method(m00d){return (m001)}, 0, Local1), Local0) Store(Index(Method(m00e){return (mx00)}, 0, Local1), Local0) Store(Index(Method(m00f){return (r000)}, 0, Local1), Local0) Store(Index(Method(m010){return (pwr0)}, 0, Local1), Local0) Store(Index(Method(m011){return (prc0)}, 0, Local1), Local0) Store(Index(Method(m012){return (tz00)}, 0, Local1), Local0) Store(Index(Method(m013){return (bf00)}, 0, Local1), Local0) } */ /* Method(ma04) { // T1:x,R1-R7,,R9-R14,x,R16 Store(RefOf(0xabcdef), Local0) Store(RefOf("qwrtyuiop"), Local0) Store(RefOf(Buffer() {1,2,3,4,5,6,7,8}), Local0) Store(RefOf(Package() {1,2,3,4,5,6,7,8}), Local0) Store(RefOf(Field(r100, ByteAcc, NoLock, Preserve) { f000, 8 }), Local0) Store(RefOf(BankField(r100, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0, 8}), Local0) Store(RefOf(IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,8,if01,8}), Local0) Store(RefOf(Device(d000) {}), Local0) Store(RefOf(Event(e000)), Local0) Store(RefOf(Mutex(mx00, 0)), Local0) Store(RefOf(OperationRegion(r000, SystemMemory, 0x100, 0x100)), Local0) Store(RefOf(PowerResource(pwr0, 1, 0) {}), Local0) Store(RefOf(Processor(prc0, 0, 0xFFFFFFFF, 0) {}), Local0) Store(RefOf(ThermalZone(tz00) {}), Local0) Store(RefOf(CreateField(b100, 0, 8, bf00)), Local0) Store(RefOf(Debug), Local0) } */ /* // Currently commented, because it breaks further compilation Method(ma05) { // T1:R8 Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,8} Field(r000, ByteAcc, NoLock, Preserve) {bnk0,8,f00a,8,f00b,8} BankField(r000, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0,4} IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,1,if01,1} Device(d000) {} Event(e000) Mutex(mx00, 0) PowerResource(pwr0, 1, 0) {Method(mmmm){return (0)}} Processor(prc0, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} CreateField(b000, 0, 8, bf00) Store(RefOf(Method(m000){}), Local0) Store(RefOf(Method(m001){return (0x12345678)}), Local0) Store(RefOf(Method(m002){return ("zxvgswquiy")}), Local0) Store(RefOf(Method(m003){return (Buffer() {0x11})}), Local0) Store(RefOf(Method(m004){return (Package() {0x22})}), Local0) Store(RefOf(Method(m005){return (Package() {"zxvgswquiy"})}), Local0) Store(RefOf(Method(m006){return (Package() {Buffer() {0x11}})}), Local0) Store(RefOf(Method(m007){return (Package() {Package() {0x22}})}), Local0) Store(RefOf(Method(m008){return (f000)}), Local0) Store(RefOf(Method(m009){return (bkf0)}), Local0) Store(RefOf(Method(m00a){return (if00)}), Local0) Store(RefOf(Method(m00b){return (d000)}), Local0) Store(RefOf(Method(m00c){return (e000)}), Local0) Store(RefOf(Method(m00d){return (m001)}), Local0) Store(RefOf(Method(m00e){return (mx00)}), Local0) Store(RefOf(Method(m00f){return (r000)}), Local0) Store(RefOf(Method(m010){return (pwr0)}), Local0) Store(RefOf(Method(m011){return (prc0)}), Local0) Store(RefOf(Method(m012){return (tz00)}), Local0) Store(RefOf(Method(m013){return (bf00)}), Local0) } */ /* Method(ma06) { // T1:x,C1-C7,,C9-C14,x,C16 Store(CondRefOf(0xabcdef), Local0) Store(CondRefOf("qwrtyuiop"), Local0) Store(CondRefOf(Buffer() {1,2,3,4,5,6,7,8}), Local0) Store(CondRefOf(Package() {1,2,3,4,5,6,7,8}), Local0) Store(CondRefOf(Field(r100, ByteAcc, NoLock, Preserve) { f000, 8 }), Local0) Store(CondRefOf(BankField(r100, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0, 8}), Local0) Store(CondRefOf(IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,8,if01,8}), Local0) Store(CondRefOf(Device(d000) {}), Local0) Store(CondRefOf(Event(e000)), Local0) Store(CondRefOf(Mutex(mx00, 0)), Local0) Store(CondRefOf(OperationRegion(r000, SystemMemory, 0x100, 0x100)), Local0) Store(CondRefOf(PowerResource(pwr0, 1, 0) {}), Local0) Store(CondRefOf(Processor(prc0, 0, 0xFFFFFFFF, 0) {}), Local0) Store(CondRefOf(ThermalZone(tz00) {}), Local0) Store(CondRefOf(CreateField(b100, 0, 8, bf00)), Local0) Store(CondRefOf(Debug), Local0) } */ /* Method(ma07) { // T1:x,CR1-CR7,,CR9-CR14,x,CR16 Store(CondRefOf(0xabcdef, Local1), Local0) Store(CondRefOf("qwrtyuiop", Local1), Local0) Store(CondRefOf(Buffer() {1,2,3,4,5,6,7,8}, Local1), Local0) Store(CondRefOf(Package() {1,2,3,4,5,6,7,8}, Local1), Local0) Store(CondRefOf(Field(r100, ByteAcc, NoLock, Preserve) { f000, 8 }, Local1), Local0) Store(CondRefOf(BankField(r100, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0, 8}, Local1), Local0) Store(CondRefOf(IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,8,if01,8}, Local1), Local0) Store(CondRefOf(Device(d000) {}, Local1), Local0) Store(CondRefOf(Event(e000), Local1), Local0) Store(CondRefOf(Mutex(mx00, 0), Local1), Local0) Store(CondRefOf(OperationRegion(r000, SystemMemory, 0x100, 0x100), Local1), Local0) Store(CondRefOf(PowerResource(pwr0, 1, 0) {}, Local1), Local0) Store(CondRefOf(Processor(prc0, 0, 0xFFFFFFFF, 0) {}, Local1), Local0) Store(CondRefOf(ThermalZone(tz00) {}, Local1), Local0) Store(CondRefOf(CreateField(b100, 0, 8, bf00), Local1), Local0) Store(CondRefOf(Debug, Local1), Local0) } */ /* // Currently commented, because it breaks further compilation Method(ma08) { // T1:C8 Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,8} Field(r000, ByteAcc, NoLock, Preserve) {bnk0,8,f00a,8,f00b,8} BankField(r000, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0,4} IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,1,if01,1} Device(d000) {} Event(e000) Mutex(mx00, 0) PowerResource(pwr0, 1, 0) {Method(mmmm){return (0)}} Processor(prc0, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} CreateField(b000, 0, 8, bf00) Store(CondRefOf(Method(m000){}), Local0) Store(CondRefOf(Method(m001){return (0x12345678)}), Local0) Store(CondRefOf(Method(m002){return ("zxvgswquiy")}), Local0) Store(CondRefOf(Method(m003){return (Buffer() {0x11})}), Local0) Store(CondRefOf(Method(m004){return (Package() {0x22})}), Local0) Store(CondRefOf(Method(m005){return (Package() {"zxvgswquiy"})}), Local0) Store(CondRefOf(Method(m006){return (Package() {Buffer() {0x11}})}), Local0) Store(CondRefOf(Method(m007){return (Package() {Package() {0x22}})}), Local0) Store(CondRefOf(Method(m008){return (f000)}), Local0) Store(CondRefOf(Method(m009){return (bkf0)}), Local0) Store(CondRefOf(Method(m00a){return (if00)}), Local0) Store(CondRefOf(Method(m00b){return (d000)}), Local0) Store(CondRefOf(Method(m00c){return (e000)}), Local0) Store(CondRefOf(Method(m00d){return (m001)}), Local0) Store(CondRefOf(Method(m00e){return (mx00)}), Local0) Store(CondRefOf(Method(m00f){return (r000)}), Local0) Store(CondRefOf(Method(m010){return (pwr0)}), Local0) Store(CondRefOf(Method(m011){return (prc0)}), Local0) Store(CondRefOf(Method(m012){return (tz00)}), Local0) Store(CondRefOf(Method(m013){return (bf00)}), Local0) } */ /* Method(ma09) { // T1:CR8 Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,8} Field(r000, ByteAcc, NoLock, Preserve) {bnk0,8,f00a,8,f00b,8} BankField(r000, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0,4} IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,1,if01,1} Device(d000) {} Event(e000) Mutex(mx00, 0) PowerResource(pwr0, 1, 0) {Method(mmmm){return (0)}} Processor(prc0, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} CreateField(b000, 0, 8, bf00) Store(CondRefOf(Method(m000){}, Local1), Local0) Store(CondRefOf(Method(m001){return (0x12345678)}, Local1), Local0) Store(CondRefOf(Method(m002){return ("zxvgswquiy")}, Local1), Local0) Store(CondRefOf(Method(m003){return (Buffer() {0x11})}, Local1), Local0) Store(CondRefOf(Method(m004){return (Package() {0x22})}, Local1), Local0) Store(CondRefOf(Method(m005){return (Package() {"zxvgswquiy"})}, Local1), Local0) Store(CondRefOf(Method(m006){return (Package() {Buffer() {0x11}})}, Local1), Local0) Store(CondRefOf(Method(m007){return (Package() {Package() {0x22}})}, Local1), Local0) Store(CondRefOf(Method(m008){return (f000)}, Local1), Local0) Store(CondRefOf(Method(m009){return (bkf0)}, Local1), Local0) Store(CondRefOf(Method(m00a){return (if00)}, Local1), Local0) Store(CondRefOf(Method(m00b){return (d000)}, Local1), Local0) Store(CondRefOf(Method(m00c){return (e000)}, Local1), Local0) Store(CondRefOf(Method(m00d){return (m001)}, Local1), Local0) Store(CondRefOf(Method(m00e){return (mx00)}, Local1), Local0) Store(CondRefOf(Method(m00f){return (r000)}, Local1), Local0) Store(CondRefOf(Method(m010){return (pwr0)}, Local1), Local0) Store(CondRefOf(Method(m011){return (prc0)}, Local1), Local0) Store(CondRefOf(Method(m012){return (tz00)}, Local1), Local0) Store(CondRefOf(Method(m013){return (bf00)}, Local1), Local0) } */ // /////////////////////////////////////////////////////////////////////////// // // TABLE 2: all the legal ways to generate references to the named objects // // /////////////////////////////////////////////////////////////////////////// /* Method(ma0a) { Name(i000, 0x12) Name(s000, "123456789") Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) Name(p000, Package() {1,2,3,4,5,6,7,8,9}) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,8} Field(r000, ByteAcc, NoLock, Preserve) {bnk0,8,f00a,8,f00b,8} BankField(r000, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0,4} IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,1,if01,1} Device(d000) {} Event(e000) Method(m000) { return ("zxvgswquiy") } Method(m001) { return (0x12345678) } Mutex(mx00, 0) PowerResource(pwr0, 1, 0) {Method(mmmm){return (0)}} Processor(prc0, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} CreateField(b000, 0, 8, bf00) // T2:x,I1,+,+,+,I5-I7,,I9-I14 Store(Index(i000, 0), Local0) Store(Index(f000, 0), Local0) Store(Index(bkf0, 0), Local0) Store(Index(if00, 0), Local0) Store(Index(bf00, 0), Local0) Store(Index(d000, 0), Local0) Store(Index(e000, 0), Local0) Store(Index(mx00, 0), Local0) Store(Index(r000, 0), Local0) Store(Index(pwr0, 0), Local0) Store(Index(prc0, 0), Local0) Store(Index(tz00, 0), Local0) // T2:x,IR1,+,+,+,IR5-IR7,,IR9-IR14 Store(Index(i000, 0, Local1), Local0) Store(Index(d000, 0, Local1), Local0) Store(Index(e000, 0, Local1), Local0) Store(Index(mx00, 0, Local1), Local0) Store(Index(r000, 0, Local1), Local0) Store(Index(pwr0, 0, Local1), Local0) Store(Index(prc0, 0, Local1), Local0) Store(Index(tz00, 0, Local1), Local0) } */ /* Method(ma0b) { Name(i000, 0xabcdef) Name(s000, "123456789") Name(s001, "qwrtyuiop") Name(b000, Buffer() {1,2,3,4,5,6,7,8,9}) Name(p000, Package() {1,2,3,4,5,6,7,8,9}) OperationRegion(r000, SystemMemory, 0x100, 0x100) Field(r000, ByteAcc, NoLock, Preserve) {f000,8} Field(r000, ByteAcc, NoLock, Preserve) {bnk0,8,f00a,8,f00b,8} BankField(r000, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0,4} IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,1,if01,1} Device(d000) {} Event(e000) Mutex(mx00, 0) PowerResource(pwr0, 1, 0) {Method(mmmm){return (0)}} Processor(prc0, 0, 0xFFFFFFFF, 0) {} ThermalZone(tz00) {} CreateField(b000, 0, 8, bf00) Method(m000) {} Method(m001) { return (0x12345678) } Method(m002) { return ("zxvgswquiy") } Method(m003) { return (Buffer() {0x11}) } Method(m004) { return (Package() {0x22}) } Method(m005) { return (Package() {"zxvgswquiy"}) } Method(m006) { return (Package() {Buffer() {0x11}}) } Method(m007) { return (Package() {Package() {0x22}}) } Method(m008) { return (f000) } Method(m009) { return (bkf0) } Method(m00a) { return (if00) } Method(m00b) { return (d000) } Method(m00c) { return (e000) } Method(m00d) { return (m001) } Method(m00e) { return (mx00) } Method(m00f) { return (r000) } Method(m010) { return (pwr0) } Method(m011) { return (prc0) } Method(m012) { return (tz00) } Method(m013) { return (bf00) } // T2:I8 Store(Index(m000, 0), Local0) Store(Index(m001, 0), Local0) Store(Index(m002, 0), Local0) Store(Index(m003, 0), Local0) Store(Index(m004, 0), Local0) Store(Index(m005, 0), Local0) Store(Index(m006, 0), Local0) Store(Index(m007, 0), Local0) Store(Index(m008, 0), Local0) Store(Index(m009, 0), Local0) Store(Index(m00a, 0), Local0) Store(Index(m00b, 0), Local0) Store(Index(m00c, 0), Local0) Store(Index(m00d, 0), Local0) Store(Index(m00e, 0), Local0) Store(Index(m00f, 0), Local0) Store(Index(m010, 0), Local0) Store(Index(m011, 0), Local0) Store(Index(m012, 0), Local0) Store(Index(m013, 0), Local0) // T2:IR8 Store(Index(m000, 0, Local1), Local0) Store(Index(m001, 0, Local1), Local0) Store(Index(m002, 0, Local1), Local0) Store(Index(m003, 0, Local1), Local0) Store(Index(m004, 0, Local1), Local0) Store(Index(m005, 0, Local1), Local0) Store(Index(m006, 0, Local1), Local0) Store(Index(m007, 0, Local1), Local0) Store(Index(m008, 0, Local1), Local0) Store(Index(m009, 0, Local1), Local0) Store(Index(m00a, 0, Local1), Local0) Store(Index(m00b, 0, Local1), Local0) Store(Index(m00c, 0, Local1), Local0) Store(Index(m00d, 0, Local1), Local0) Store(Index(m00e, 0, Local1), Local0) Store(Index(m00f, 0, Local1), Local0) Store(Index(m010, 0, Local1), Local0) Store(Index(m011, 0, Local1), Local0) Store(Index(m012, 0, Local1), Local0) Store(Index(m013, 0, Local1), Local0) } */ /* Method(ma0c) { // T3:5-14,16 for all (I,IR,R,C,CR) Name(bbbb, Buffer() {1,2,3,4,5,6,7,8,9}) OperationRegion(rrrr, SystemMemory, 0x100, 0x100) Field(rrrr, ByteAcc, NoLock, Preserve) {bnk0,8,f00a,8,f00b,8} // These should be checked for RefOf and CondRefOf Name(u000, Package(1) {}) Name(i000, Package() {0xabcdef}) Name(s000, Package() {"123456789"}) Name(s001, Package() {"qwrtyuiop"}) Name(b000, Package() {Buffer() {1,2,3,4,5,6,7,8,9}}) Name(p000, Package() {Package() {1,2,3,4,5,6,7,8,9}}) // The entries below show that there is no necessity to // check the lines 5-14,16 for all the I,IR,R,C,CR columns. Name(ffuu, Package() {Field(rrrr, ByteAcc, NoLock, Preserve) {f000,8}}) Name(bbnk, Package() {BankField(rrrr, bnk0, 0, ByteAcc, NoLock, Preserve) {bkf0,4}}) Name(iiff, Package() {IndexField (f00a, f00b, ByteAcc, NoLock, Preserve) {if00,1,if01,1}}) Name(dddd, Package() {Device(d000) {}}) Name(eeee, Package() {Event(e000)}) Name(mmtt, Package() {Method(m001) { return (0x12345678) }}) Name(mmxx, Package() {Mutex(mx00, 0)}) Name(r000, Package() {OperationRegion(r000, SystemMemory, 0x100, 0x100)}) Name(ppww, Package() {PowerResource(pwr0, 1, 0) {Method(mmmm){return (0)}}}) Name(pprr, Package() {Processor(prc0, 0, 0xFFFFFFFF, 0) {}}) Name(ttzz, Package() {ThermalZone(tz00) {}}) Name(bbff, Package() {CreateField(bbbb, 0, 8, bf00)}) Name(ddbb, Package() {Debug}) } */ /* Method(ma0d) { // T3:R0-R4 RefOf(Package(1) {}) RefOf(Package() {0xabcdef}) RefOf(Package() {"123456789"}) RefOf(Package() {"qwrtyuiop"}) RefOf(Package() {Buffer() {1,2,3,4,5,6,7,8,9}}) RefOf(Package() {Package() {1,2,3,4,5,6,7,8,9}}) } */ /* Method(ma0e) { // T3:C0-C4 CondRefOf(Package(1) {}) CondRefOf(Package() {0xabcdef}) CondRefOf(Package() {"123456789"}) CondRefOf(Package() {"qwrtyuiop"}) CondRefOf(Package() {Buffer() {1,2,3,4,5,6,7,8,9}}) CondRefOf(Package() {Package() {1,2,3,4,5,6,7,8,9}}) } */ /* Method(ma0f) { // T3:CR0-CR4 CondRefOf(Package(1) {}, Local0) CondRefOf(Package() {0xabcdef}, Local0) CondRefOf(Package() {"123456789"}, Local0) CondRefOf(Package() {"qwrtyuiop"}, Local0) CondRefOf(Package() {Buffer() {1,2,3,4,5,6,7,8,9}}, Local0) CondRefOf(Package() {Package() {1,2,3,4,5,6,7,8,9}}, Local0) } */ acpica-unix-20250404/tests/aslts/src/compilation/collection/name.asl0000700000175000017500000002362714773714147024716 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Miscellaneous named object creation // Packages // Effective AML package length is zero Method(m900) { Name(p000, Package() {}) } // Effective AML package length is zero Method(m901) { Name(p000, Package(0) {}) } // Effective AML package length is zero Method(m902) { Name(p000, Package(0) {0,1,2,3}) } // Size exceeds 255 (It is an error for NumElements to exceed 255) Method(m903) { Name(p000, Package(256) {0,1,2,3,4,5,6,7,8,9}) } // It is an error for NumElements to be less than the number // of elements in the PackageList. // // Apparently, it will be updated: // // From: Moore, Robert // Sent: Saturday, February 12, 2005 3:44 AM // To: Therien, Guy; Hanumant Yadav; Tim Lewis // Cc: Podrezov, Valery A; Suietov, Fiodor F // Subject: ACPI errata for Package (2) // // "The Moscow validation team asked about this discrepancy" // "Why is there a difference in behavior between BuffSize // and NumElements? Aren’t they essentially the same thing? // I would propose that we update Package to behave the same // as Buffer. Bob" Method(m904) { Name(p000, Package(3) {0,1,2,3,4,5,6,7,8,9}) } // NumElements > 255 Method(m905) { Name(p000, Package() { // 0 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, // 100 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, // 200 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, // 255 255 }) } // ArgX Method(m906) { return (0) } Method(m907, 1) { return (0) } Method(m908, 2) { return (0) } Method(m909, 3) { return (0) } Method(m90a, 4) { return (0) } Method(m90b, 5) { return (0) } Method(m90c, 6) { return (0) } Method(m90d, 7) { return (0) } // Extra param Method(m90e, 8) { return (0) } Method(m90f, 7) { m906(0) m907(0,0) m908(0,0,0) m909(0,0,0,0) m90a(0,0,0,0,0) m90b(0,0,0,0,0,0) m90c(0,0,0,0,0,0,0) m90d(0,0,0,0,0,0,0,0) m90e(0,0,0,0,0,0,0,0) return (0) } Method(m910) { Store(Arg0, Debug) Store(Arg1, Debug) Store(Arg2, Debug) Store(Arg3, Debug) Store(Arg4, Debug) Store(Arg5, Debug) Store(Arg6, Debug) // Extra Store(Arg7, Debug) return (0) } Method(m911, 1) { return (Arg1) } Method(m912, 2) { return (Arg2) } Method(m913, 3) { return (Arg3) } Method(m914, 4) { return (Arg4) } Method(m915, 5) { return (Arg5) } Method(m916, 6) { return (Arg6) } Method(m917, 7) { return (Arg7) } Method(m918) { Name(db00, Debug) } // Data of not Namestring type in the MethodName position Method("m919") {Return ("m919")} // Too many arguments in Method declaration Method(m91a, , , , , , ) {Return ("m91a")} // NumArgs is outside of valid range 0x0-0x7 Method(m91b, 8) {Return ("m91b")} // NumArgs as other than Type3Opcode (integer) expression Method(m91c, Arg0) {Return ("m91c")} Method(m91d, i000) {Return ("m91d")} Method(m91e, Derefof(Index(Package(1){2}, 0))) {Return ("m91e")} Method(m91f, Local0) {Return ("m91f")} // NumArgs as Type3Opcode (integer) non-constant expression Name(i920, 1) Method(m920, Add(i920, 1)) {Return ("m920")} Method(m921, Increment(i920)) {Return ("m921")} // SerializeRule is not the keywords 'NotSerialized' and 'Serialized' Method(m922, 7, 1, 0) {Return ("m922")} // SyncLevel specified when SerializeRule is not specified Method(m923, , , 0) {Return ("m923")} // SyncLevel specified when SerializeRule is set up to NotSerialized Method(m924, , NotSerialized, 0) {Return ("m924")} // SyncLevel is outside of valid range 0x0-0xf Method(m925, , Serialized, 16) {Return ("m925")} // Both NumArgs and SyncLevel are outside of valid ranges Method(m926, 8, Serialized, 16) {Return ("m926")} // SyncLevel as other than Type3Opcode (integer) expression Method(m927, , Serialized, Arg0, StrObj) {Return ("m927")} Method(m928, , Serialized, i000, StrObj) {Return ("m928")} Method(m929, , Serialized, Derefof(Index(Package(1){2}, 0)), StrObj) {Return ("m929")} Method(m92a, , Serialized, Local0, StrObj) {Return ("m92a")} // SyncLevel as Type3Opcode (integer) non-constant expression Method(m92b, , Serialized, Add(i000, 1), StrObj) {Return ("m92b")} Method(m92c, , Serialized, Increment(i000), StrObj) {Return ("m92c")} // ReturnType is not an ObjectTypeKeywords package Method(m92d, , , , 2) {Return ("m92d")} Method(m92e, , , , {1, 2}) {Return ("m92e")} // Actual Object specified to be returned is not of ReturnType type Method(m92f, , , , PkgObj) {Return ("m92f")} // At least one control path in the method returns no any actual Object Method(m930, 1, , , StrObj) {if (Arg0) Return ("m930")} // ParameterTypes is not an ObjectTypeKeywords package Method(m931, 1, , , , 2) {Return ("m931")} Method(m932, 2, , , , {1, StrObj}) {Return ("m932")} Method(m933, 2, , , , {{StrObj, 1}, StrObj}) {Return ("m933")} // Some different from UnknownObj ObjectType Keyword specified in the // ReturnType position but no any actual Object specified to be returned. Method(m934, , , , IntObj) {Store(1, Debug)} // The same specific keyword in the ReturnType list twice Method(m935, , , , {IntObj, IntObj}) {Store(1, Debug)} Method(m936, , , , {UnknownObj, UnknownObj}) {Store(1, Debug)} // Simulteneously UnknownObj and a specific keyword in the ReturnType list Method(m937, , , , {UnknownObj, IntObj}) {Store(1, Debug)} // NumArgs 0 but non-empty list of parameters Method(m938, 0, , , , IntObj) {Return ("m938")} Method(m939, 0, , , , {IntObj}) {Return ("m939")} Method(m93a, , , , , {IntObj}) {Return ("m93a")} // NumArgs 1 but 2-element list of parameters Method(m93b, 1, , , , {IntObj, IntObj}) {Return ("m93b")} // NumArgs 2 but 1-element list of parameters Method(m93c, 2, , , , {IntObj}) {Return ("m93c")} // NumArgs 6 but 5-element list of parameters Method(m93d, 6, , , , {IntObj, IntObj, IntObj, IntObj, IntObj}) {Return ("m93d")} // NumArgs 6 but 7-element list of parameters Method(m93e, 7, , , , {IntObj, IntObj, IntObj, IntObj, IntObj, IntObj, IntObj}) {Return ("m93e")} // NumArgs 7 but 8-element list of parameters Method(m93f, 7, , , , {IntObj, IntObj, IntObj, IntObj, IntObj, IntObj, IntObj, IntObj}) {Return ("m93f")} // The same specific keyword in the ParameterType list twice Method(m940, , , , , {{IntObj, IntObj}}) {Store(1, Debug)} Method(m941, , , , , {{UnknownObj, UnknownObj}}) {Store(1, Debug)} // Simulteneously UnknownObj and a specific keyword in the ParameterType list Method(m942, , , , , {{UnknownObj, IntObj}}) {Store(1, Debug)} // An actual Object specified to be a respective argument // of the Method is of inappropriate type Method(m943, 1, , , , IntObj) {Store(Arg0, Debug)} Method(m944) {m943(Package(2){255, 257})} // Too many arguments in Function declaration Function(m945, , , ) {Return ("m945")} // There is at least one control path in the Function // that returns no any actual Object: Function(m946, IntObj) { Store(2, Local0) if (Local0) { Return ("m946") } else { Store(1, Debug) } } // Some different from UnknownObj ObjectType Keyword specified in the // ReturnType position but no any actual Object specified to be returned. Function(m947, IntObj) {Store(1, Debug)} // The same specific keyword in the ReturnType list twice Function(m948, {IntObj, IntObj}) {Store(1, Debug)} Function(m949, {UnknownObj, UnknownObj}) {Store(1, Debug)} // Simulteneously UnknownObj and a specific keyword in the ReturnType list Function(m94a, {UnknownObj, IntObj}) {Store(1, Debug)} // 8-element list of parameters Function(m94b, 7, {IntObj, IntObj, IntObj, IntObj, IntObj, IntObj, IntObj, IntObj}) {Return ("m94b")} acpica-unix-20250404/tests/aslts/src/compilation/collection/bfield.asl0000700000175000017500000000476714773714147025227 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Buffer Fields // Compiler crashed for Create*Field with FieldName specified // by LocalX and ArgX. Method(m100, 4) { // Compiler crashes for each of these Create*Field // (FieldName specified by LocalX): Store("bf06", Local0) Store("bf07", Local1) Store("bf08", Local2) Store("bf09", Local3) Store("bf0a", Local4) Store("bf0b", Local5) CreateBitField (arg0, arg1, Local0) CreateByteField (arg0, arg1, Local1) CreateDWordField (arg0, arg1, Local2) CreateField (arg0, arg1, arg2, Local3) CreateQWordField (arg0, arg1, Local4) CreateWordField (arg0, arg1, Local5) // Compiler crashes for each of these Create*Field // (FieldName specified by ArgX): CreateBitField (arg0, arg1, arg3) CreateByteField (arg0, arg1, arg3) CreateDWordField (arg0, arg1, arg3) CreateField (arg0, arg1, arg2, arg3) CreateQWordField (arg0, arg1, arg3) CreateWordField (arg0, arg1, arg3) } acpica-unix-20250404/tests/aslts/src/compilation/collection/arithmetic.asl0000700000175000017500000000310314773714147026112 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Integer arithmetic acpica-unix-20250404/tests/aslts/src/compilation/collection/table.asl0000700000175000017500000000310614773714147025053 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // ACPI table management acpica-unix-20250404/tests/aslts/src/compilation/collection/synchronization.asl0000700000175000017500000000332014773714147027223 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Synchronization Mutex(MT00, 0) // TimeoutValue passed by Argx or LocalX Method(mc00, 1) { Acquire(MT00, arg0) Store(arg0, Local0) Acquire(MT00, Local0) } acpica-unix-20250404/tests/aslts/src/compilation/collection/MAIN.asl0000700000175000017500000000441714773714147024516 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // ASL-compilation control tests collection // Bug (-1). // The comment string "//" in the last line checks bug (-1). DefinitionBlock( "compilation.aml", // Output filename "DSDT", // Signature 0x02, // DSDT Revision "Intel", // OEMID "Many", // TABLE ID 0x00000001 // OEM Revision ) { // All declarations Include("./arithmetic.asl") Include("./bfield.asl") Include("./constant.asl") Include("./control.asl") Include("./descriptor.asl") Include("./extern.asl") Include("./local.asl") Include("./logic.asl") Include("./manipulation.asl") Include("./name.asl") Include("./reference.asl") Include("./region.asl") Include("./synchronization.asl") Include("./table.asl") Include("./misc.asl") } //acpica-unix-20250404/tests/aslts/src/compilation/collection/region.asl0000700000175000017500000000622614773714147025255 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Operation Regions Method(mb00) { // Field(arg0, ByteAcc, NoLock, Preserve) {...} // Error 1037 - ^ parse error OperationRegion(r000, SystemMemory, 0x100, 0x100) Method(m000, 1) { Field(arg0, ByteAcc, NoLock, Preserve) {f900,8,f901,8,f902,8,f903,8} BankField(arg0, f901, 0, ByteAcc, NoLock, Preserve) {bn90,4} IndexField(f902, f903, ByteAcc, NoLock, Preserve) {if90,8,if91,8} } m000(r000) // Invalid RegionSpaceKeyword, should cause ASL compiler's // diagnostics like: // OperationRegion(RGNy, 0x7f, 0, 0x100) // Error 4094 - ^ Value below valid range 0x80-0xFF // Error 4094 - ^ Value above valid range 0x80-0xFF OperationRegion(RGNx, 0x00, 0, 0x100) OperationRegion(RGNy, 0x7f, 0, 0x100) OperationRegion(RGNz, 0x100, 0, 0x100) // Additional Invalid RegionName arguments, should cause // ASL compiler's diagnostics like: // OperationRegion(0xabcd, SystemMemory, 0, 0x100) // Error 4094 - parse error ^ OperationRegion("arg0", SystemMemory, 0, 0x100) OperationRegion(0xabcd, SystemMemory, 0, 0x100) // Invalid Field's Offset and Length arguments, should cause // ASL compiler's diagnostics like: // Offset(0x2000000), f000, 1, // Error 4023 - Package length too long to encode ^ /* Now it below causes crash of iASL compiler, bug 225 OperationRegion(OPR0, SystemMemory, 0, 0x2000001) Field(OPR0, ByteAcc, NoLock, Preserve) { Offset(0x2000000), f000, 1, } Field(OPR0, ByteAcc, NoLock, WriteAsZeros) { , 0xffffffc, f001, 6, } Field(OPR0, ByteAcc, NoLock, WriteAsOnes) { f002, 0xffffffc, } */ } acpica-unix-20250404/tests/aslts/src/compilation/collection/constant.asl0000700000175000017500000000307214773714147025617 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Constants acpica-unix-20250404/tests/aslts/src/compilation/collection/control.asl0000700000175000017500000000455214773714147025452 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Method execution control // The same values in Case: two Case(0) Method(m300, 1) { Switch(ToInteger(Arg0)) { case (0) { Store("Case 0", Debug) } case (0) { Store("Case 0, also", Debug) } } } // The same values in Case: // two the same values in Package of Case. Method(m301, 1) { Switch(ToInteger(Arg0)) { Case (Package(2) {7, 7}) { Store("Case 0", Debug) } } } // Switch(Arg0) // Warning 2091 ^ Switch expression is not a static // Integer/Buffer/String data type, defaulting to Integer Method(m302, 1) { Switch(Arg0) { case (0) { Store("Case 0", Debug) } } } // MicroSeconds parameter is too large Method(m303) { // Ok yet Stall(100) // To be reported Stall(101) } // Statement is unreachable Method(m304) { Store("Point 0", Debug) Return (0) Store("Point 1", Debug) } acpica-unix-20250404/tests/aslts/src/compilation/collection/manipulation.asl0000700000175000017500000000312614773714147026466 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Data type conversion and manipulation acpica-unix-20250404/tests/aslts/src/compilation/collection/logic.asl0000700000175000017500000000310214773714147025055 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Logical operators acpica-unix-20250404/tests/aslts/src/compilation/collection/descriptor.asl0000700000175000017500000002002114773714147026135 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Resource Descriptor macros // For each Resource Descriptor Macro declaration // below Error/Warning is expected. // The same descriptor names, DN00, in the same scope Method(m400) { Name(RT00, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared, DN00) {} IRQ (Edge, ActiveLow, Shared, DN00) {} }) Name(RT01, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8, DN00) {} DMA (Compatibility, NotBusMaster, Transfer8, DN00) {} }) Name(RT02, ResourceTemplate () { IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN00) IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN00) }) Name(RT03, ResourceTemplate () { Memory24 ( , 0x0000, 0xffff, 0x0001, 0xfffe, DN00) Memory24 ( , 0x0000, 0xffff, 0x0001, 0xfffe, DN00) }) Name(RT04, ResourceTemplate () { IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN00) IO (Decode16, 0xf0f1, 0xf2f3, 0xf4, 0xf5, DN00) }) } Method(m401) { Name(RT00, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8) {8} }) Name(RT01, ResourceTemplate () { DMA (TypeA, NotBusMaster, Transfer8) {0, 0} }) } Method(m402) { Name(RT00, ResourceTemplate () { DWordIO ( , , , , , 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff, 0x0f) }) Name(RT01, ResourceTemplate () { DWordIO ( , , , , , 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff,, "PATHPATHPATH") }) } Method(m403) { Name(RT00, ResourceTemplate () { DWordMemory ( , , , , , , 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff, 0x0f) }) Name(RT01, ResourceTemplate () { DWordMemory ( , , , , , , 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff,, "PATHPATHPATH") }) } Method(m404) { Name(RT00, ResourceTemplate () { DWordSpace (0xc0, , , , , 0x5a, 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff, 0x0f) }) Name(RT01, ResourceTemplate () { DWordSpace (0xc0, , , , , 0x5a, 0xecedeeef, 0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff,, "PATHPATHPATH") }) } Method(m405) { Name(RT00, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared, 0x0f) {0xfcfdfeff} }) Name(RT01, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared,, "PATHPATHPATH") {0xfcfdfeff} }) Name(RT02, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) {9, 9} }) Name(RT03, ResourceTemplate () { Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112, 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128, 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144, 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160, 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176, 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192, 193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208, 209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224, 225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240, 241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256} }) } Method(m406) { Name(RT00, ResourceTemplate () { IRQ (Edge, ActiveLow, Shared) {16} }) Name(RT01, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {9, 9} }) } Method(m407) { Name(RT00, ResourceTemplate () { IRQNoFlags () {16} }) Name(RT01, ResourceTemplate () { IRQNoFlags () {9, 9} }) } Method(m408) { Name(RT00, ResourceTemplate () { QWordIO ( , , , , , 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff, 0x0f) }) Name(RT01, ResourceTemplate () { QWordIO ( , , , , , 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff,, "PATHPATHPATH") }) } Method(m409) { Name(RT00, ResourceTemplate () { QWordMemory ( , , , , , , 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff, 0x0f) }) Name(RT01, ResourceTemplate () { QWordMemory ( , , , , , , 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff,, "PATHPATHPATH") }) } Method(m40a) { Name(RT00, ResourceTemplate () { QWordSpace (0xc0, , , , , 0x5a, 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff, 0x0f) }) Name(RT01, ResourceTemplate () { QWordSpace (0xc0, , , , , 0x5a, 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef, 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff,, "PATHPATHPATH") }) } Method(m40b) { Name(RT00, ResourceTemplate () { Register (SystemMemory, 0xf0, 0xf1, 0xf2f3f4f5f6f7f8f9, 5) }) } Method(m40c) { Name(RT00, ResourceTemplate () { VendorShort () {0x00, 0x81, 0xa2, 0xb3, 0x76, 0xd5, 0xe6, 0xf7} }) Name(RT01, ResourceTemplate () { VendorShort (VS00) {0x00, 0xa2, 0xb3, 0x76, 0xd5, 0xe6, 0xf7} }) } Method(m40d) { Name(RT00, ResourceTemplate () { WordBusNumber ( , , , , 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff, 0x0f) }) Name(RT01, ResourceTemplate () { WordBusNumber ( , , , , 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff,, "PATHPATHPATH") }) } Method(m40e) { Name(RT00, ResourceTemplate () { WordIO ( , , , , , 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff, 0x0f) }) Name(RT01, ResourceTemplate () { WordIO ( , , , , , 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff,, "PATHPATHPATH") }) } Method(m40f) { Name(RT00, ResourceTemplate () { WordSpace (0xc0, , , , , 0x5a, 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff, 0x0f) }) Name(RT01, ResourceTemplate () { WordSpace (0xc0, , , , , 0x5a, 0xf6f7, 0xf8f9, 0xfafb, 0xfcfd, 0xfeff,, "PATHPATHPATH") }) } // An example to provoke message: // "nsaccess-0713: *** Warning: NsLookup: Type mismatch on // M40f (Method), searching for (ResourceDesc)". // Expect a compiler error because the Descriptorname M40f and // the Method m40f are defined on the same scope. Name(M410, ResourceTemplate () { DMA (Compatibility, NotBusMaster, Transfer8, M40f) {0} }) acpica-unix-20250404/tests/aslts/src/compilation/collection/misc.asl0000700000175000017500000000652514773714147024727 0ustar ivanhuivanhu/* * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Miscellaneous tests which are difficult to bring // into correlation with the particular known group Method(me00) { Store("\x00", Debug) Store("\x000123", Debug) Store("\x00123", Debug) Store("\x00xyz", Debug) Store("1\x00", Debug) Store("z\x00", Debug) Store("2\x000123", Debug) Store("x\x000123", Debug) Store("3\x00xyz", Debug) Store("w\x00xyz", Debug) } // Strings originally exceeding the maximal size, 200 symbols Method(me01) { Store("012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", Local0) Store(Local0, Debug) } /* * Locally Created Data Objects are used before they * are actually created though they are dynamic objects * which appears only after execution of the relevant * operator (Name in our example). * * 5.5.2.4 Local Variables and Locally Created Data Objects: * NameSpace objects created within the scope of a method * are dynamic. They exist only for the duration of the * method execution. They are created when specified by * the code... */ Method(me02) { Store(0x12345678, n000) Name(n000, 0) } // Commented, because it stops translation. // // From Bug 62. // Method(me02) // { // // Name(s001, "\\sq\"v") // Name(s002, "\sq"v") // } Method(me03) { Store("me03", Debug) } // Method(me03) // Errorb1034 - ^ Name already exists in scope (ME03) Method(me03) { Store("me03", Debug) } // Name(n000, 0) // Error 1034 - ^ Name already exists in scope (N000) Method(me04) { Name(n000, 0) Name(n000, 0) Store(n000, Debug) } // Name(n000, 0) // Error 1034 - ^ Name already exists in scope (N000) Method(me05) { Name (VV, 0x1234) Store (32, Local0) Name (VV, 0xBBBBAAAA) Store (12, Local2) } acpica-unix-20250404/tests/aslts/bin/0000700000175000017500000000000014773714146016567 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/bin/asltsdiffres0000700000175000017500000000364714773714146021220 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # Compare two multi-results # # The first specified multi-result is being compared against the second one, # that is, if something in the first multi-result is worse than in the second # one, it could be treated as some kind regression of the product being tested. # # (for additional comments see Do and asltsrun utilities). # Includes . common . settings . diffproc # Report summary of comparing. # arg1 - first multi-result directory # arg2 - against the second multi-result directory # Opcodes of comparing results: # arg3 - 32-bit unoptimized code # arg4 - 64-bit unoptimized code # arg5 - 32-bit optimized code # arg6 - 64-bit optimized code report_multi_runs_cmp() { local msg echo "" echo "Summary of comparing:" echo " - multi-result directory (new) : $1" echo " - against multi-result directory (old) : $2" echo "Summary of comparing:" echo " `get_mode_string $NORM32 1`: `cmp_result_opcode_to_str $3`" echo " `get_mode_string $NORM64 1`: `cmp_result_opcode_to_str $4`" echo " `get_mode_string $OPT32 1`: `cmp_result_opcode_to_str $5`" echo " `get_mode_string $OPT64 1`: `cmp_result_opcode_to_str $6`" } # ############################## MAIN ############################### date DIR0="$1" DIR1="$2" UTILSTATUS=0 INIT_MEM_STAT # Check the multi-result directories check_dir "$DIR0" check_dir "$DIR1" # Do compare per each possible run mode # 32-bit unoptimized code do_compare_two_runs "$DIR0" $NORM32 "$DIR1" $NORM32 CMP0=$? # 64-bit unoptimized code do_compare_two_runs "$DIR0" $NORM64 "$DIR1" $NORM64 CMP1=$? # 32-bit optimized code do_compare_two_runs "$DIR0" $OPT32 "$DIR1" $OPT32 CMP2=$? # 64-bit optimized code do_compare_two_runs "$DIR0" $OPT64 "$DIR1" $OPT64 CMP3=$? # Report the summary of comparing report_multi_runs_cmp "$DIR1" "$DIR0" "$CMP0" "$CMP1" "$CMP2" "$CMP3" if [ $UTILSTATUS == 0 ]; then msg "Ok" else msg "MISCOMPARED!" fi date exit $UTILSTATUS acpica-unix-20250404/tests/aslts/bin/README0000700000175000017500000001040514773714146017452 0ustar ivanhuivanhu Utilities to manage the test suite ---------------------------------- Do utility This is the test suite command dispatcher. It allows the user to compile/install the AML tests, run them, and compare results of runs. The output log of tests and results of processing the test logs are saved in the aslts/tmp/RESULTS automatically generated directory. Run Do without parameters to print out its Usage. The simplest sequence of actions to deal with the test suite is shown in the example below. 1. Create the following environment variables: ASL - pathname of iASL compiler acpiexec - pathname of AcpiExec utility ASLTSDIR - pathname of root directory of aslts test suite 2. Add the following directory to the PATH variable: aslts/bin If necessary, convert all scripts in the aslts/bin directory to unix line endings: > d2u aslts/bin/* 3. To configure the required/desired set of test cases and the modes of the execution runs, manually edit the settings file: aslts/bin/settings 4. Usage message: > cd aslts/bin > Do The utility prints out the usage message. 5. Compile and install all AML test cases: > Do 0 aslts This command will compile and install all of the AML test cases under the tmp directory: aslts/tmp/aml 6. Run all configured test cases in all modes: > Do 1 This command will run all the specified test cases in the specified modes. The possible modes are: 32-bit normal mode (AML interpreter slack mode disabled) 64-bit normal mode 32-bit slack mode (AML interpreter slack mode enabled) 64-bit slack mode 7. Examine the results: a) See the summary file for test execution information: aslts/tmp/RESULTS//Summary b) Compare the obtained multi-result with the previous benchmark multi-result for to catch regressions (the 'Do 2' command below). 8. Compare the results to previous test executions: > Do 2 This command will compare the current test execution with the previous one. Also used for comparing any two particular multi-results. > Do 2 The contains the results from one of test suite executions. The contains the results of a previous test suite execution. The 'Do 2' command will compare the results of both test suite executions and report any differences/regressions. The result directories are contained in aslts/tmp/RESULTS, and have names of the form: Example: > cd aslts > Do 2 tmp/RESULTS/20090325.151601.20090320 tmp/RESULTS/20090325.150744.20090320 Do 2 output: ============ 1. Summary information related to a particular test case: echo "|$2|$cnt|$pass|$fail|$skip|$start|$finish|$total|$outstand0|$blck|$memtotal|$max0|$max1|$max2|$max3|$max4|$max5|$out0|$out1|$out2|$out3|$out4|$out5|$outstand1|$LargeRefCount|$memtotalbytes|$exceptionsnum|" >> "$3" outstand0 - Outstanding allocations of the particular test case Example from arithmetic test case log: Outstanding: 0x11 allocations after execution outstand1 - Outstanding allocations of the particular test case Example from reference test case log: ACPI Error (uttrack-0719): 39(27) Outstanding allocations [20090320] memtotal - Total memory in bytes consumed during execution of the particular test case start - Time when test case started finish - Time when test case finished total - Duration of test case execution 2. Summary information related to all test cases that have been run for a particular test mode (32-bit normal, etc..): echo "|TOTAL|$outstand0|$memtotal|${MODES_TIMES[$2]}|$outstand1|$LargeRefCount|$memtotalbytes|" >> "$path" totaloutstand00 - Summary of outstand0 of all test cases totalmem0 - Summary of memtotal of all test cases totaltime0 - All the test cases execution duration totaloutstand01 - Summary of outstand1 of all test cases acpica-unix-20250404/tests/aslts/bin/diffproc0000700000175000017500000002760314773714146020321 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # Compare results of two runs of tests # # (for comments see Do and asltsrun utilities). # Compare the summary information of two runs # arg1 - the first run test status lines file # arg2 - the second run test status lines file cmp_two_runs() { local ret echo "diff old: $1 -- new: $2" diff -s "$1" "$2" ret=$? echo "" return $ret } # Chose line of file by head # arg1 - file pathname # arg2 - delimiter # arg3 - string, the first element of line chose_line_of_file() { cat "$1" |\ while [ 1 ] do read line if [ $? -ne 0 ] ; then break fi tcasename=`echo "$line" | awk -F"$2" '{print $2}'` if [ "$tcasename" == "$3" ]; then echo "$line" return 1 fi done } # Compare and report two run times # # arg1 - run time 1 # arg2 - run time 2 # # Return: # 0 - T1 == T2 # 1 - T1 < T2 # 2 - T1 > T2 # 3 - bad layout of T1 # 4 - bad layout of T2 report_run_time_cmp() { local rval=0 str ret t0 t1 local diff01 diff01str str=`diff_of_str_times "$1" "$2"` ret=$? if [ $ret -gt 2 ] ; then echo "report_run_time_cmp: bad layout, <$1>, <$2>" return 3 fi t0=`echo "$str" | awk -F"|" '{print $1}'` t1=`echo "$str" | awk -F"|" '{print $2}'` diff01=`echo "$str" | awk -F"|" '{print $3}'` diff01str=`echo "$str" | awk -F"|" '{print $4}'` if [ $ret -eq 2 ] ; then # 2 means arg1 is greater than arg2 percent=$[ ($diff01 * 10000) / ($t1 * 100 + 1) ] echo "WARNING, TOTAL, time of tests run grown from $2 to $1, (+$diff01str, $percent% of $2)" rval=2 elif [ $ret -eq 1 ] ; then # 1 means arg1 is less than arg2 percent=$[ ($diff01 * 10000) / ($t0 * 100 + 1) ] echo "INFO, TOTAL, time of tests run reduced from "$2" to "$1", (-$diff01str, $percent% of $2)" rval=1 fi return $rval } # Compare and report two memory statistics # arg1 - the test case name # arg2 - component # arg3 - the value on the first run # arg4 - the value on the second run report_mem_stat_cmp() { local rval=0 x percent if [[ $4 -eq 0 ]]; then return 0 fi # # We are only interested in memory differences that are greater than 10% # if [[ $3 -gt $4 ]]; then x=$[ $3 - $4 ] percent=$[ ($x * 100) / $4 ] if [[ $percent -lt 10 ]]; then return 1 fi echo "WARNING, $1, memory use grown ($2): $3, $4, (+$x, $percent% of $4)" rval=1 elif [[ $3 -lt $4 ]]; then x=$[ $4 - $3 ] percent=$[ ($x * 100) / $4 ] if [[ $percent -lt 10 ]]; then return 2 fi echo "INFO, $1, memory use reduced ($2): $3, $4, (-$x, $percent% of $4)" rval=2 fi return $rval } # Compare and report two exceptions statistics # arg1 - the test case name # arg2 - component # arg3 - the value on the first run # arg4 - the value on the second run report_exceptions_stat_cmp() { local rval=0 if [[ $3 -gt $4 ]]; then echo "WARNING, $1, exceptions occurrence number grown ($2): $3, $4" rval=1 elif [[ $3 -lt $4 ]]; then echo "INFO, $1, exceptions occurrence number reduced ($2): $3, $4" rval=2 fi return $rval } # Compare status lines of the same test case of two different runs # arg1 - the first run test case status line # arg2 - the second run test case status line # arg3 - the test case name cmp_two_status_lines() { local rval=0 local memtotal00 local outstand00 local outstand01 local max00 max01 max02 max03 max04 max05 local out00 out01 out02 out03 out04 out05 local memtotal10 local outstand10 local outstand11 local max10 max11 max12 max13 max14 max15 local out10 out11 out12 out13 out14 out15 local totalmem0 local totaloutstand00 local totaltime0 local totaloutstand01 local totalmem1 local totaloutstand10 local totaltime1 local totaloutstand11 local exceptionsnum0 local exceptionsnum1 if [ "$3" == TOTAL ]; then totaloutstand00=`echo "$1" | awk -F"|" '{print $3}'` totalmem0=`echo "$1" | awk -F"|" '{print $4}'` totaltime0=`echo "$1" | awk -F"|" '{print $5}'` totaloutstand01=`echo "$1" | awk -F"|" '{print $6}'` totaloutstand10=`echo "$2" | awk -F"|" '{print $3}'` totalmem1=`echo "$2" | awk -F"|" '{print $4}'` totaltime1=`echo "$2" | awk -F"|" '{print $5}'` totaloutstand11=`echo "$2" | awk -F"|" '{print $6}'` if [ x$totaloutstand01 == x ]; then # For obsolete layout return 0 fi if [ x$totaloutstand11 == x ]; then # For obsolete layout return 0 fi report_run_time_cmp "$totaltime0" "$totaltime1" if [ $? -eq 2 ]; then rval=1 fi report_mem_stat_cmp "$3" total_memory $totalmem0 $totalmem1 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" total_outstand0 $totaloutstand00 $totaloutstand10 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" total_outstand1 $totaloutstand01 $totaloutstand11 if [ $? -eq 1 ]; then rval=1 fi return $rval fi memtotal00=`echo "$1" | awk -F"|" '{print $12}'` if [ x$memtotal00 == x ]; then # For obsolete layout return 0 fi memtotal10=`echo "$2" | awk -F"|" '{print $12}'` if [ x$memtotal10 == x ]; then # For obsolete layout return 0 fi if [ "$DO_COMPARE_OF_EXCEPTIONS" == "yes" ]; then exceptionsnum0=`echo "$1" | awk -F"|" '{print $28}'` exceptionsnum1=`echo "$2" | awk -F"|" '{print $28}'` report_exceptions_stat_cmp "$3" exceptionsnum $exceptionsnum0 $exceptionsnum1 if [ $? -eq 1 ]; then rval=1 fi fi if [ "$DO_COMPARE_OF_TEST_CASES" == "yes" ]; then outstand00=`echo "$1" | awk -F"|" '{print $10}'` max00=`echo "$1" | awk -F"|" '{print $13}'` max01=`echo "$1" | awk -F"|" '{print $14}'` max02=`echo "$1" | awk -F"|" '{print $15}'` max03=`echo "$1" | awk -F"|" '{print $16}'` max04=`echo "$1" | awk -F"|" '{print $17}'` max05=`echo "$1" | awk -F"|" '{print $18}'` out00=`echo "$1" | awk -F"|" '{print $19}'` out01=`echo "$1" | awk -F"|" '{print $20}'` out02=`echo "$1" | awk -F"|" '{print $21}'` out03=`echo "$1" | awk -F"|" '{print $22}'` out04=`echo "$1" | awk -F"|" '{print $23}'` out05=`echo "$1" | awk -F"|" '{print $24}'` outstand01=`echo "$1" | awk -F"|" '{print $25}'` outstand10=`echo "$2" | awk -F"|" '{print $10}'` max10=`echo "$2" | awk -F"|" '{print $13}'` max11=`echo "$2" | awk -F"|" '{print $14}'` max12=`echo "$2" | awk -F"|" '{print $15}'` max13=`echo "$2" | awk -F"|" '{print $16}'` max14=`echo "$2" | awk -F"|" '{print $17}'` max15=`echo "$2" | awk -F"|" '{print $18}'` out10=`echo "$2" | awk -F"|" '{print $19}'` out11=`echo "$2" | awk -F"|" '{print $20}'` out12=`echo "$2" | awk -F"|" '{print $21}'` out13=`echo "$2" | awk -F"|" '{print $22}'` out14=`echo "$2" | awk -F"|" '{print $23}'` out15=`echo "$2" | awk -F"|" '{print $24}'` outstand11=`echo "$2" | awk -F"|" '{print $25}'` report_mem_stat_cmp "$3" memtotal $memtotal00 $memtotal10 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" outstand0 $outstand00 $outstand10 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" outstand1 $outstand01 $outstand11 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" max0 $max00 $max10 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" max1 $max01 $max11 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" max2 $max02 $max12 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" max3 $max03 $max13 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" max4 $max04 $max14 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" max5 $max05 $max15 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" out0 $out00 $out10 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" out1 $out01 $out11 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" out2 $out02 $out12 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" out3 $out03 $out13 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" out4 $out04 $out14 if [ $? -eq 1 ]; then rval=1 fi report_mem_stat_cmp "$3" out5 $out05 $out15 if [ $? -eq 1 ]; then rval=1 fi fi return $rval } # Unpack file into array, # element of array is a line of file. # arg1 - path name of file unpack_file_into_array() { x=`cat "$1" | sort |\ while [ 1 ] do read line if [ $? -ne 0 ] ; then break fi echo "$line" done` echo "$x" } # Compare the memory consumption statistics of two runs # arg1 - the first run test cases status lines file # arg2 - the second run test cases status lines file cmp_memory_of_two_runs() { local rval=0 index=0 index_of_last_found=0 length=0 ARRAY= file1=`unpack_file_into_array "$1"` file2=`unpack_file_into_array "$2"` # Put second input into array for line in $file2 do if [ x"$line" == x ]; then continue fi ARRAY[$index]="$line" index=$[ $index + 1 ] done length=$index if [ "$length" -eq 0 ]; then echo "Empty file <$2>" return 0 fi # Run through the first input and check equivalent line from the # array of second input, do one pass only through both inputs (they # are sorted identically). for i in $file1 do tcasename0=`echo "$i" | awk -F"|" '{print $2}'` if [ x"$tcasename0" == x ]; then continue fi index=$index_of_last_found while [ 1 ] do if [ "$index" -ge "$length" ]; then break fi line="${ARRAY[$index]}" index=$[ $index + 1 ] tcasename1=`echo "$line" | awk -F"|" '{print $2}'` if [ "$tcasename1" == "$tcasename0" ]; then index_of_last_found=$index cmp_two_status_lines "$i" "$line" "$tcasename0" if [ $? -ne 0 ]; then rval=1 fi if [ "$DO_COMPARE_TOTAL_ONLY" == yes -a "$tcasename0" == TOTAL ]; then echo "!!!!!!!, REDUCED MODE OF STAT CMP: only TOTAL statistics was compared!" return $rval fi break fi done done return $rval } # Determine the test status lines files # corresponding to the first and the second # runs and initiate comparing of them. # arg1 - second multi-result directory # arg2 - second bitmap of mode # arg3 - first multi-result directory # arg4 - first bitmap of mode do_compare_two_runs() { local rval=100 ret mark path0 path1 exists0 exists1 path2 path3 local modepart0 modename0 local modepart1 modename1 modepart0=`get_mode_string $2 0` modename0=`get_mode_string $2 1` modepart1=`get_mode_string $4 0` modename1=`get_mode_string $4 1` path0="$1/$modepart0/__STATUS_OF_TESTS" path1="$3/$modepart1/__STATUS_OF_TESTS" echo "" mark="================" echo "$mark Comparing results of <$modename0> and <$modename1>:" exists0=0 exists1=0 ret=1 if [ -f "$path0" ]; then exists0=1 fi if [ -f "$path1" ]; then exists1=1 fi if [ $exists0 == 1 -a $exists1 == 1 ]; then cmp_two_runs "$path0" "$path1" ret=$? if [ "$DO_MEMSTAT" == "yes" ]; then path2="$3/$modepart1/__STATUS_OF_TEST_CASES" path3="$1/$modepart0/__STATUS_OF_TEST_CASES" cmp_memory_of_two_runs "$path2" "$path3" fi fi if [ $exists0 == 1 -a $exists1 == 1 ]; then if [ $ret == 0 ]; then rval=$CMP_CMP_OP echo "$mark `cmp_result_opcode_to_str $rval`" else rval=$CMP_MISCMP_OP echo "$mark `cmp_result_opcode_to_str $rval`" UTILSTATUS=1 fi elif [ $exists0 == 1 ]; then rval=$CMP_NO_SECOND_OP echo "$mark `cmp_result_opcode_to_str $rval`" elif [ $exists1 == 1 ]; then rval=$CMP_NO_FIRST_OP echo "$mark `cmp_result_opcode_to_str $rval`" else rval=$CMP_NO_BOTH_OP echo "$mark `cmp_result_opcode_to_str $rval`" fi echo "" echo "Failures in new version: `grep -c FAIL $path1` -- $path1" echo "Failures in old version: `grep -c FAIL $path0` -- $path0" echo "" return $rval } # Convert opcode of result of comparing to string # arg1 - opcode of result of comparing cmp_result_opcode_to_str() { local msg case $1 in $CMP_CMP_OP) msg=compared;; $CMP_MISCMP_OP) msg=miscompared;; $CMP_NO_SECOND_OP) msg="- (the SUMMARY file of second run doesn't exist)";; $CMP_NO_FIRST_OP) msg="- (the SUMMARY file of first run doesn't exist)";; $CMP_NO_BOTH_OP) msg="- (the SUMMARY files of both runs don't exist)";; *) msg="???" esac echo "$msg" } # ############################## MAIN ############################### # Initialize the common variables # Constants # Opcodes of result of comparing CMP_CMP_OP=0 CMP_MISCMP_OP=1 CMP_NO_SECOND_OP=2 CMP_NO_FIRST_OP=3 CMP_NO_BOTH_OP=4 acpica-unix-20250404/tests/aslts/bin/common0000700000175000017500000003165214773714146020014 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # The common use data and routines # Report message msg() { prog_name=`basename "$0"` echo "$prog_name: $1" } # Report error message msgE() { prog_name=`basename "$0"` echo "$prog_name[ERROR]: $1" } # Exit the program do_exit() { if [ $1 -eq 0 ]; then if [ "$2" != "" ]; then msg "$2" fi exit 0 else msgE "$2" exit 1 fi } # Make directory # arg1 - pathname of directory make_dir() { if [ ! -d "$1" ]; then mkdir "$2" if [ $? -ne 0 ]; then do_exit 1 "Failed to make $3 directory" fi fi } # Abort the program if arg1 is not a directory # arg1 - path name of directory check_dir() { if [ ! -d "$1" ]; then do_exit 1 "Not a directory: $1" fi } # Invalid number of parameters reaction bad_param_number() { do_exit 1 "Invalid number of parameters for command $1: applied $2, expected $3" } # Print out a list of lexems echo_list() { echo "" echo " $1:" echo "" for lexem in $2 do echo " $lexem" done } # Return separated by ':' sorted last and previous # elements of directory. # arg1 - directory get_two_last_dirs() { local path previous last ls "$1" | sort -r |\ while [ 1 ] do read filename if [ $? -ne 0 ] ; then echo ":$last:$previous:" break fi path="$1/$filename" if [ -d "$path" ]; then if [ -z "$last" ]; then last="$filename" elif [ -z "$previous" ]; then previous="$filename" fi fi if [ -n "$previous" -a -n "$last" ]; then echo ":$last:$previous:" break fi done } # Return string describing mode of run # arg1 - bitmap of mode # arg2 - what to print: # 0 - part of pathname # 1 - name of mode # 2 - BITMODE # 3 - OPTMODE get_mode_string() { local x OPTMODE BITMODE eval "x=$[ $1 & $FLAGOPT ]" if [ $x == 0 ]; then OPTMODE="nopt" else OPTMODE="opt" fi eval "x=$[ $1 & $FLAG64 ]" if [ $x == 0 ]; then BITMODE=32 else BITMODE=64 fi if [ $2 == 0 ]; then echo "$OPTMODE/$BITMODE" elif [ $2 == 1 ]; then echo "$BITMODE-bit $OPTMODE mode" elif [ $2 == 2 ]; then echo "$BITMODE" elif [ $2 == 3 ]; then echo "$OPTMODE" fi } export -f get_mode_string # Return string describing mode of run # arg1 - bitmap of mode get_mode_id() { local x OPTMODE BITMODE eval "x=$[ $1 & $FLAGOPT ]" if [ $x == 0 ]; then OPTMODE="n" else OPTMODE="o" fi eval "x=$[ $1 & $FLAG64 ]" if [ $x == 0 ]; then BITMODE=32 else BITMODE=64 fi echo "$BITMODE:$OPTMODE" } # check if mode id is valid check_mode_id() { local m for m in $ALL_AVAILABLE_TEST_MODES; do if [ "x$m" = "x$1" ]; then return 0 fi done return 1 } # Echo the name of collection # arg1 - opcode of collection get_collection_name() { local dirname case $1 in $FUNC_COLL_OP) dirname=functional;; $CPLX_COLL_OP) dirname=complex;; $EXCP_COLL_OP) dirname=exceptions;; $BDEMO_COLL_OP) dirname=bdemo;; $SERV_COLL_OP) dirname=service;; $MT_COLL_OP) dirname=mt;; $MS_IDENT_COLL_OP) dirname=Identity2MS;; $IMPL_COLL_OP) dirname=IMPL;; *) dirname="?" esac echo "$dirname" } # Return non-zero when the string is a name of some test collection # arg1 - string (to be the name of some test collection) is_collection_name() { echo $ALL_AVAILABLE_COLLS | grep $1 > /dev/null return $? } # Return opcode of the test collection which # contains the test case named as string parameter, # COLLS_NUM, if no one collection contains such # test case. # arg1 - string (to be the name of some test case) get_collection_opcode() { local rval=0 if [ -z $1 ]; then return $COLLS_NUM fi echo $FUNC_COLL | grep -w $1 > /dev/null if [ $? -eq 0 ]; then return $FUNC_COLL_OP fi echo $CPLX_COLL | grep -w $1 > /dev/null if [ $? -eq 0 ]; then return $CPLX_COLL_OP fi echo $EXCP_COLL | grep -w $1 > /dev/null if [ $? -eq 0 ]; then return $EXCP_COLL_OP fi echo $BDEMO_COLL | grep -w $1 > /dev/null if [ $? -eq 0 ]; then return $BDEMO_COLL_OP fi echo $SERV_COLL | grep -w $1 > /dev/null if [ $? -eq 0 ]; then return $SERV_COLL_OP fi echo $MT_COLL | grep -w $1 > /dev/null if [ $? -eq 0 ]; then return $MT_COLL_OP fi echo $MS_IDENT_COLL | grep -w $1 > /dev/null if [ $? -eq 0 ]; then return $MS_IDENT_COLL_OP fi echo $IMPL_COLL | grep -w $1 > /dev/null if [ $? -eq 0 ]; then return $IMPL_COLL_OP fi return $COLLS_NUM } # Mark - test collection was involved in processing # arg1 - name of test case mark_collection_flag() { local ret get_collection_opcode "$1" ret=$? case $ret in $FUNC_COLL_OP) FUNC_COLL_FLAG=1;; $CPLX_COLL_OP) CPLX_COLL_FLAG=1;; $EXCP_COLL_OP) EXCP_COLL_FLAG=1;; $BDEMO_COLL_OP) BDEMO_COLL_FLAG=1;; $SERV_COLL_OP) SERV_COLL_FLAG=1;; $MT_COLL_OP) MT_COLL_FLAG=1;; $MS_IDENT_COLL_OP) MS_IDENT_COLL_FLAG=1;; $IMPL_COLL_OP) IMPL_COLL_FLAG=1;; *) do_exit 1 "Not the name of any test case: $1" esac } # Get ' ' blank-separated collections involved total get_collections_total() { local count=0 msg=" " if [ $FUNC_COLL_FLAG != 0 ]; then count=$[ $count + 1 ] msg="$msg `get_collection_name $FUNC_COLL_OP`" fi if [ $CPLX_COLL_FLAG != 0 ]; then count=$[ $count + 1 ] msg="$msg `get_collection_name $CPLX_COLL_OP`" fi if [ $EXCP_COLL_FLAG != 0 ]; then count=$[ $count + 1 ] msg="$msg `get_collection_name $EXCP_COLL_OP`" fi if [ $BDEMO_COLL_FLAG != 0 ]; then count=$[ $count + 1 ] msg="$msg `get_collection_name $BDEMO_COLL_OP`" fi if [ $SERV_COLL_FLAG != 0 ]; then count=$[ $count + 1 ] msg="$msg `get_collection_name $SERV_COLL_OP`" fi if [ $MT_COLL_FLAG != 0 ]; then count=$[ $count + 1 ] msg="$msg `get_collection_name $MT_COLL_OP`" fi if [ $MS_IDENT_COLL_FLAG != 0 ]; then count=$[ $count + 1 ] msg="$msg `get_collection_name $MS_IDENT_COLL_OP`" fi if [ $IMPL_COLL_FLAG != 0 ]; then count=$[ $count + 1 ] msg="$msg `get_collection_name $IMPL_COLL_OP`" fi echo "$count:$msg:" } # Return the pathname of the collections root directory # arg1 - root directory of aslts get_collections_root_dir() { echo "$1/src/runtime/collections" } # Return the pathname of the specified test collection # arg1 - root directory of aslts # arg2 - opcode of test collection get_collection_dir() { local dir dir="`get_collections_root_dir "$1"`/`get_collection_name $2`" echo "$dir" } # Get pathname of test case # arg1 - root directory of aslts # arg2 - opcode of test collection # arg3 - name of test case get_test_case_dir() { local x path word_is_in_line "$OPER_TCASES" "$3" " " if [ $? -ne 0 ]; then path="`get_collection_dir "$1" $2`/operand/tests/$3" else x=`echo $RES_TCASES | grep $3` if [ $? -eq 0 ]; then path="`get_collection_dir "$1" $2`/result/tests/$3" else if [ $3 == exc_operand1 -o $3 == exc_operand2 ]; then path="`get_collection_dir "$1" $2`/exc_operand/$3" elif [ $3 == exc_result1 -o $3 == exc_result2 ]; then path="`get_collection_dir "$1" $2`/exc_result/$3" elif [ $3 == dynobj ]; then path="`get_collection_dir "$1" $2`/ACPICA/tests/$3" elif [ $3 == bdemo -o $3 == bdemof ]; then path="`get_collection_dir "$1" $2`/ACPICA/$3" elif [ $3 == extra -o $3 == extra_aslts ]; then path="`get_collection_dir "$1" $2`/abbu" elif [[ $3 == mt_* ]]; then x=`echo $3 | sed 's/mt_//'g` path="`get_collection_dir "$1" $2`/$x" else path="`get_collection_dir "$1" $2`/$3" fi fi fi echo "$path" } # Return the name of underlying system the tests were run on # # arg0 - pathname of Summary file get_name_of_system() { OLD_IFS=$IFS IFS=" " cat "$1" |\ while [ 1 ] do read mark system line if [ $? -ne 0 ] ; then echo "?" break fi if [ "$mark" == ASLTS_SYSTEM ]; then echo "$system" break fi done IFS=$OLD_IFS } # Get element of line of file. # # Each line of file arg1 consists of elements separated by symbol arg2. # The first element of line is marker. Routine seeks for the line identified # by the given marker (arg3) and returns arg4-th element of that line. # # arg1 - pathname of file (line of file |el0|el1|...; | - any symbol) # arg2 - separator # arg3 - marker of line to fit # arg4 - element of line to be returned (now maximum is 4 elements - 0,1,2,3) get_element_of_line() { OLD_IFS=$IFS IFS="$2" cat "$1" |\ while [ 1 ] do read marker s0 s1 s2 s3 line if [ $? -ne 0 ] ; then break fi if [ "$marker" == "$3" ] ; then case $4 in 0) echo "$s0" ;; 1) echo "$s1" ;; 2) echo "$s2" ;; 3) echo "$s3" ;; *) echo "???" esac fi done IFS=$OLD_IFS } # Split the input file, each char is transformed to one line split_line_to_chars() { local x index=1 while [ 1 ] do x=`echo "$1" | cut -c "$index"` if [ "x$x" == x ]; then break fi echo "$x" ((index=index+1)) done } # Transform input to a line where each char occurs only once, # blanks are deleted. # # Note: works very slowly. # transform_to_single_chars() { local x line str str="qwertyuiopasdfghjklzxcvbnm0123456789QWERTYUIOPASDFGHJKLZXCVBNM\*" while [ 1 ] do read line if [ $? -ne 0 ] ; then break fi x=`echo $line | sed 's/ //'g` split_line_to_chars "$x" done | sort | paste -s -d " " | sed 's/ //'g | tr -s "$str" } # Print out all lines of file arg1 corresponding to the # chars of string arg2: line == : . report_lines_per_char() { index=1 while [ 1 ] do x=`echo "$2" | cut -c "$index"` if [ "x$x" == x ]; then break fi y=`get_element_of_line "$1" ":" "$x" 0` if [ "x$y" != x ]; then echo "$x -$y" elif [ "$x" != " " ]; then echo "$x - ???" fi ((index=index+1)) done } # arg1 - line # arg2 - word # arg3 - delimiter word_is_in_line() { local rval=0 OLD_IFS=$IFS IFS="$3" echo "$1" | awk '{ for (i=1; i<=NF; i++) { print $i}}' |\ while [ 1 ] do read line if [ $? -ne 0 ]; then return 0 fi if [ "$line" == "$2" ]; then return 1 fi done rval=$? IFS=$OLD_IFS return $rval } # Convert the centisecond unit time to string {[h:]m:s.c} # arg1 - centisecond unit time cent_units_to_cent_str() { local rval local TIME_STRING= RAWSECONDS=$[ $1 / 100 ] RAWCENTISECS=$[ $1 - $RAWSECONDS * 100 ] RAWMINUTES=$[ $RAWSECONDS / 60 ] RAWSECONDS=$[ $RAWSECONDS - $RAWMINUTES * 60 ] RAWHOURS=$[ $RAWMINUTES / 60 ] RAWMINUTES=$[ $RAWMINUTES - $RAWHOURS * 60 ] if [ $RAWHOURS -le 9 ]; then if [ $RAWHOURS -ne 0 ]; then TIME_STRING=0$RAWHOURS: fi else TIME_STRING=$RAWHOURS: fi if [ $RAWMINUTES -le 9 ]; then TIME_STRING=${TIME_STRING}0$RAWMINUTES: else TIME_STRING=$TIME_STRING$RAWMINUTES: fi if [ $RAWSECONDS -le 9 ]; then TIME_STRING=${TIME_STRING}0$RAWSECONDS else TIME_STRING=$TIME_STRING$RAWSECONDS fi if [ $RAWCENTISECS -le 9 ]; then TIME_STRING=${TIME_STRING}.0$RAWCENTISECS else TIME_STRING=${TIME_STRING}.$RAWCENTISECS fi eval "rval=$TIME_STRING" echo "$rval" } export -f cent_units_to_cent_str # Convert time to centisecond units # # Layout of time is one of these: # 1) hours:mins:secs.centisecs # 2) mins:secs.centisecs # # arg1 - time 1 # # Return: # 0 - success # otherwise - bad layout # convert_string_to_centisecond_units() { local n0=0 h0=0 m0=0 s0=0 csec0=0 sec0=0 total0=0 n0=`echo "$1" | awk -F: '{ print NF}'` if [ "$n0" -eq 2 ]; then m0=`echo "$1" | awk -F: '{ print $1}'` x=`echo "$1" | awk -F: '{ print $2}'` s0=`echo "$x" | awk -F"." '{ print $1}'` csec0=`echo "$x" | awk -F"." '{ print $2}'` if [ x"$csec0" == x ]; then return 1 fi elif [ "$n0" -eq 3 ]; then h0=`echo "$1" | awk -F: '{ print $1}'` m0=`echo "$1" | awk -F: '{ print $2}'` x=`echo "$1" | awk -F: '{ print $3}'` s0=`echo "$x" | awk -F"." '{ print $1}'` csec0=`echo "$x" | awk -F"." '{ print $2}'` if [ x"$csec0" == x ]; then return 2 fi else return 3 fi sec0=$[ $s0 + $m0 * 60 + $h0 * 3600 ] total0=$[ $csec0 + $sec0 * 100 ] echo "$total0" return 0 } # Compare two times given by strings # # Layout of time is one of these: # 1) hours:mins:secs.centisecs # 2) mins:secs.centisecs # # arg1 - time 1 # arg2 - time 2 # # Return: # 0 - T1 == T2 # 1 - T1 < T2 # 2 - T1 > T2 # 3 - bad layout of T1 # 4 - bad layout of T2 # diff_of_str_times() { local total0=0 local total1=0 local rval=0 diff01 diff01str total0=`convert_string_to_centisecond_units "$1"` if [ $? -ne 0 ]; then return 3 fi total1=`convert_string_to_centisecond_units "$2"` if [ $? -ne 0 ]; then return 4 fi if [ "$total0" -gt "$total1" ]; then diff01=$[ $total0 - $total1 ] rval=2 elif [ "$total0" -eq "$total1" ]; then diff01=0 rval=0 else diff01=$[ $total1 - $total0 ] rval=1 fi diff01str=`cent_units_to_cent_str $diff01` echo "$total0|$total1|$diff01|$diff01str" return $rval } # ############################## MAIN ############################### # Initialize the common variables # Constants # Bitmap: 1 - 64, 2 - opt export FLAG64=1 export FLAGOPT=2 NORM32=0 NORM64=1 OPT32=2 OPT64=3 # Opcodes of the test collections (according to aslts) ASL_COLL_OP=0 FUNC_COLL_OP=1 CPLX_COLL_OP=2 EXCP_COLL_OP=3 BDEMO_COLL_OP=4 SERV_COLL_OP=5 MT_COLL_OP=6 MS_IDENT_COLL_OP=7 IMPL_COLL_OP=8 RUNTIME_COLLS_NUM=8 COLLS_NUM=9 acpica-unix-20250404/tests/aslts/bin/Do0000700000175000017500000004566314773714146017075 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # The test suite command dispatcher # # Available commands: # # 0 - Make and install AML tests # 1 - Run specified set of tests in all enabled modes # 2 - Compare two multi-results of two runs of tests # 3 - Print out the names of all the available test cases # 4 - Calculate the current state of all bugs and report the summary # tables # 5 - Prepare bdemo summary files of one multi-results directory for all # modes # 6 - Concatenate bdemo summary files of two multi-results # # Notations: # # ASL - iASL compiler # acpiexec - AcpiExec utility # acpibin - AcpiBin utility # ASLTSDIR - pathname of root directory of aslts test suite # # External definitions required for particular command: # # 0 - ASLTSDIR, ASL # 1 - ASLTSDIR, acpiexec, acpibin # 2 - ASLTSDIR # 3 - none # 4 - ASLTSDIR # 5 - ASLTSDIR # 6 - ASLTSDIR # # Other: # Make sure that "." (current directory) is in your default search path. # If necessary, convert all scripts in the aslts/bin directory to unix # line endings: # d2u aslts/bin/* # # Concepts: # # run - execution of the specified set of tests # for one particular enabled mode # # multi-run - execution of the specified set of tests # for all the enabled modes # # multi-result (directory) - directory in RESULTS one containing # all results of one multi-run # # root directory of results - aslts/tmp/RESULTS # root directory of aslts - aslts # # REMEMBER (To-Be-Done items) # # 1. Don't forget to add testing of aml/nopt mode. # 2. Do make-install till the first error automatically # 3. Not implemented yet though announced in Usage: # - "Do 1 [n32 [n64 [s32 [s64]]]] [ [ [...]]]" # - "Make-install all the test cases of the specified test collections" # - ... # 4. Add checking of presence of "Large reference count" message in logs # STR_BDEMOSSUM="prepare bdemo summary files of one multi-results directory for all modes" STR_CONCBDEMOS="concatenate bdemo summary files of two multi-results" STR_BDEMOSTABS="calculate the current state of all bugs and report the summary tables" usage() { echo "Usage:" echo " print out usage:" echo " Do" echo " make and install AML tests:" echo " Do $ASLCOMPILE [ASLTS|aslts]" echo " Do $ASLCOMPILE [ [...]]" echo " Do $ASLCOMPILE [ALL|all] [functional[complex[exceptions[bdemo[service[mt[Identity2MS]]]]]]]" echo " run specified set of tests in all enabled modes:" echo " Do $RUNTESTS" echo " Do $RUNTESTS [n32 [n64 [o32 [o64]]]] [ [ [...]]]" echo " compare two multi-results of two runs of tests:" echo " Do $DIFFRESULTS" echo " Do $DIFFRESULTS " echo " Do $DIFFRESULTS " echo " print out names of all the available test cases:" echo " Do $PRINTTESTCASES" echo " $STR_BDEMOSTABS:" echo " Do $BDEMOSTABS " echo " " echo " $STR_BDEMOSSUM:" echo " Do $BDEMOSSUM " echo " $STR_CONCBDEMOS:" echo " Do $CONCBDEMOS " } # Report message msg() { prog_name=`basename "$0"` echo "$prog_name: $1" } # Report error message msgE() { prog_name=`basename "$0"` echo "$prog_name[ERROR]: $1" } # Exit the program # agr1 - 0 success, non-zero - fail do_exit() { if [ $1 -eq 0 ]; then if [ "$2" != "" ]; then msg "$2" fi exit 0 else msgE "$2" exit 1 fi } # Abort program when arg1 is not a directory # arg1 - path name of directory check_dir() { if [ ! -d "$1" ]; then do_exit 1 "Not a directory: $1" fi } # Return the string-description of compare command # arg1 - opcode of compare command cmp_cmd_string() { local msg case $1 in 1) msg="Compare the last multi-result against the previous one:";; 2) msg="Compare the last multi-result against the specified one:";; 3) msg="Compare the first(new) specified multi-result against the second(old):";; *) msg="?" esac echo "$msg" } # Compare the last multi-result against the previous one # arg1 - root directory of results do_cmp1() { local x previous last DIR0 DIR1 x=`get_two_last_dirs "$1"` last=`echo "$x" | awk -F: '{ print $2}'` previous=`echo "$x" | awk -F: '{ print $3}'` if [ -n "$previous" -a -n "$last" ]; then DIR0="$1/$previous" DIR1="$1/$last" echo " root directory of results : $1" echo " the last multi-result : $last" echo " against previous one : $previous" echo "" asltsdiffres "$DIR0" "$DIR1" elif [ -n "$last" ]; then echo "There is the only component of root directory of results: $last" echo "root directory of results: $1" else echo "No one component in the root directory of results: $1" fi } # Compare the last multi-result against the specified one # arg1 - root directory of results # arg2 - second multi-result directory do_cmp2() { local x last DIR0 DIR1 x=`get_two_last_dirs "$1"` last=`echo "$x" | awk -F: '{ print $2}'` if [ -n "$last" ]; then DIR0="$2" DIR1="$1/$last" echo " root directory of results : $1" echo " the last multi-result : $DIR1" echo " against the specified one : $DIR0" echo "" asltsdiffres "$DIR0" "$DIR1" else echo "No one component in the root directory of results: $1" fi } # Compare the first specified multi-result against the second one # arg1 - first multi-result directory # arg2 - second multi-result directory do_cmp3() { local DIR0 DIR1 DIR0="$2" DIR1="$1" echo " First (new) specified multi-result : $DIR1" echo " Second (old) specified multi-result : $DIR0" asltsdiffres "$DIR0" "$DIR1" } # Compare two multi-results # arg1 - the number of parameters passed to Do utility # arg2 - first multi-result directory # arg3 - second multi-result directory # arg4 - root directory of results do_cmp() { cmp_cmd_string $1 if [ $1 == 1 ]; then do_cmp1 "$4" elif [ $1 == 2 ]; then do_cmp2 "$4" "$3" elif [ $1 == 3 ]; then do_cmp3 "$2" "$3" else do_exit 1 "Invalid usage" fi } # Summary files of bdemos do_bdemo_sums() { dir="$2" echo "$STR_BDEMOSSUM:" echo " the multi-result : $dir" bdemossum "$dir" } # Concatenate summary files of bdemos concatenate_bdemo_sums() { local DIR0 DIR1 DIR0="$2" DIR1="$3" echo "$STR_CONCBDEMOS:" echo " the first multi-result : $DIR0" echo " the second multi-result : $DIR1" bdemosconc "$DIR0" "$DIR1" } # Summary table of bdemos do_bdemo_table() { local DIR0 DIR1 DIR0="$2" DIR1="$3" ALLBUGS="$4" KBSUM="$5" LBSUM="$6" echo "$STR_BDEMOSTABS:" echo " the first multi-result : $DIR0" echo " the second multi-result : $DIR1" echo " ALLBUGS Description File : $ALLBUGS" echo " kernel bugzilla Bug List file : $KBSUM" echo " local bugzilla Bug List file : $LBSUM" echo " BUG_STATE_DIR : $BUG_STATE_DIR" bdemostabs "$DIR0" "$DIR1" "$ALLBUGS" "$KBSUM" "$LBSUM" "$BUG_STATE_DIR" } make_target() { local dir restore_dir mode options aslversion restore_dir=$PWD target=$1 dir="$2" mode=$3 aslversion=`get_iasl_version` cd "$dir" echo "Running make $target from $dir" options="ASLTS_VER=$aslversion" if [ ! -z $mode ]; then options="$options ASLTS_MODE=$mode" fi make $target $options > /dev/null res=$? cd "$restore_dir" return $res } binary_compare() { mode=$1 aslversion=`get_iasl_version` disasm_compile_dir="$ASLTSDIR/tmp/aml/$aslversion/$mode" normal_compile_dir="$ASLTSDIR/tmp/aml/$aslversion/nopt/64" echo "Performing binary comparison of AML files within" echo " $normal_compile_dir" echo " $disasm_compile_dir" if [ ! -d $disasm_compile_dir ]; then echo " $dism_compile_dir does not exist. Aborting binary compare" return; fi if [ ! -d $normal_compile_dir ]; then echo " $normal_compile_dir does not exist. Aborting binary compare" return; fi for f in $disasm_compile_dir/* do filename=`basename $f` if [ ! -f "$normal_compile_dir/$filename" ]; then echo " binary compare $mode the following file does not exist: $normal_compile_dir/$filename" else $acpibin -a "$f" "$normal_compile_dir/$filename" > /dev/null if [ $? -ne 0 ]; then echo " [[ Error: $mode Binary compare for $filename failed ]]" else echo " $mode Binary compare for $filename passed" fi fi done } make_install() { local res=0 nres=0 execonly=$2 if [ $ENABLENORM32 != 0 ]; then echo "Make n32" make_target install "$1" "n32" nres=$? if [ $nres -ne 0 ]; then res=$nres fi fi if [ $ENABLENORM64 != 0 ]; then echo "Make n64" make_target install "$1" "n64" nres=$? if [ $nres -ne 0 ]; then res=$nres fi fi if [ $ENABLEOPT32 != 0 ]; then echo "Make s32" make_target install "$1" "o32" nres=$? if [ $nres -ne 0 ]; then res=$nres fi fi if [ $ENABLEOPT64 != 0 ]; then echo "Make s64" make_target install "$1" "o64" nres=$? if [ $nres -ne 0 ]; then res=$nres fi fi if [ "x$execonly" = "xno" ]; then # for binary compare, we need to compare with normal 64 bit aml # files build n64 mode normal 64 bit aml files build n64 mode # if this test run does not include it. if [ $ENABLENORM64 -eq 0 ]; then echo "Make n64" make_target install "$1" "n64" nres=$? if [ $nres -ne 0 ]; then res=$nres fi fi echo "Make ASL convert" make_target install "$1" "aslconvert" find . -type f -name *.dsl -delete nres=$? binary_compare "aslconvert" nres=$(($nres+ $?)) if [ $nres -ne 0 ]; then res=$(($res + $nres)) fi echo "Make ASL plus" make_target install "$1" "aslplus" nres=$? binary_compare "aslplus" nres=$(($nres+ $?)) if [ $nres -ne 0 ]; then res=$nres fi echo "Make ASL minus" make_target install "$1" "aslminus" nres=$? binary_compare "aslminus" nres=$(($nres+ $?)) if [ $nres -ne 0 ]; then res=$(($res + $nres)) fi fi return $res } # Make-install all the provided test cases # (make install from aslts directory) # arg1 - root directory of aslts make_install_1() { make_install "$1" "$2" if [ $? -ne 0 ]; then do_exit 1 "make install error" fi } # Check parameters to be the names of test # cases and run make install for each of them # if specified. # arg1 - root directory of aslts # arg2 - all the lexem here must be the names of test cases # arg3 - either to actually run make install do_test_cases_make_install() { local errors=0 dir restore_dir execonly restore_dir=$PWD execonly=$4 for filename in $2 do get_collection_opcode "$filename" ret=$? if [ $ret -eq $COLLS_NUM ]; then do_exit 1 "Not the name of any test case: $filename" fi dir="`get_test_case_dir "$1" $ret $filename`" check_dir "$dir" if [ $3 != 0 ]; then make_install "$dir" "$execonly" if [ $? -ne 0 ]; then errors=1 fi fi done cd "$restore_dir" } # Make-install a list of specified test cases # arg1 - root directory of aslts # arg2 - all the lexem here must be the names of test cases make_install_2() { # Check only all parameters are correct # (abort when something is wrong) do_test_cases_make_install "$1" "$2" 0 # Run actual work do_test_cases_make_install "$1" "$2" 1 "$3" } # Check parameters to be the names of test # collections and run make install for each # of them, if specified. # arg1 - root directory of aslts # arg2 - all the lexem here must be the names of test collections # arg3 - either to actually run make install do_collections_make_install() { local errors=0 dir restore_dir execonly restore_dir=$PWD execonly=$4 for filename in $2 do is_collection_name "$filename" if [ $? -ne 0 ]; then do_exit 1 "Not the name of any test collection: $filename" fi dir="`get_collections_root_dir "$1"`/$filename" check_dir "$dir" if [ $3 != 0 ]; then make_install "$dir" "$execonly" if [ $? -ne 0 ]; then errors=1 fi fi done cd "$restore_dir" return $errors } # Make-install all the test cases of the specified test collections # arg1 - root directory of aslts # arg2 - all the lexem here must be the names of test collections make_install_3() { # Check only all parameters are correct # (abort when something is wrong) do_collections_make_install "$1" "$2" 0 # Run actual work do_collections_make_install "$1" "$2" 1 "$3" } # Make-install the test case(s). # # Parameters: # # 1. Make-install all the provided test cases: # # aslts # # 2. Make-install a list of specified test cases: # # test_case_name [test_case_name...] # # 3. Make-install all the test cases of the specified test collections: # # [ALL|all] [functional[complex[exceptions[bdemo[service[mt[Identity2MS]]]]]]] # # arg1 - root directory of aslts # arg2 - number of parameters passed to Do utility # arg3 - all parameters passed to Do utility run_asl_compiler() { local list="$2" execonly=$3 local action=100 # It's better to split this function into a special 'asltscomp' # script. For now, still uses it as an inline function. RESET_SETTINGS INIT_ALL_AVAILABLE_CASES INIT_ALL_AVAILABLE_MODES INIT_SET_OF_TEST_CASES INIT_SET_OF_TEST_MODES INIT_LOG_RESULTS INIT_MEM_STAT if [ $list == ASLTS -o $list == aslts ]; then action=1 elif [ $list == ALL -o $list == all ]; then list=`echo "$3" | cut -c 7-` action=3 else action=2 fi echo "list of testcases: $list" if [ $action == 1 ]; then echo "Make-install all the provided test cases" make_install_1 "$1" "$execonly" elif [ $action == 2 ]; then echo "Make-install a list of specified test cases: $list" make_install_2 "$1" "$list" "$execonly" elif [ $action == 3 ]; then echo "Make-install all the test cases of the specified test collections: $list" make_install_3 "$1" "$list" "$execonly" else do_exit 1 "Bad parameters 2" fi } get_iasl_version() { local x version if [ ! -f $ASL ]; then do_exit 1 "Bad iASL 1: <$ASL> does not exist" else x=`$ASL -version | grep "Compiler/Disassembler version"` if [ x"$x" == x ]; then version=00000000 do_exit 1 "Bad iASL 2: bad signon <$ASL>" else version=`echo "$x" | awk -F" " '{print $5}'` if [ x"$version" == x ]; then do_exit 1 "Bad iASL 3: could not get version <$ASL>" else echo "$version" fi fi fi } get_aslts_bin_line() { echo "$1" | awk -F: '{ for (i=1; i<=NF; i++) { print $i}}' |\ while [ 1 ] do read line if [ $? -ne 0 ]; then break fi if [[ "$line" == *aslts/bin ]]; then echo "$line" fi done } # ############################## MAIN ############################### # Init variables of utility # Available commands CMD=$1 NPARAM=$# ASLCOMPILE=0 RUNTESTS=1 DIFFRESULTS=2 PRINTTESTCASES=3 BDEMOSTABS=4 BDEMOSSUM=5 CONCBDEMOS=6 EXECONLY=$3 # Set defaults RESULTDIR= # ################################################################## # # ATTENTION: don't use yet here any common stuff till the next remark # # ################################################################## # # Only report USAGE if [ $NPARAM == 0 ]; then usage do_exit 0 "" fi # Determine the working directory and take precautions (last name should be aslts) if [ ! -d "$ASLTSDIR" ]; then do_exit 1 "Undefined ASLTSDIR variable! Set it to pathname of root directory of aslts test suite." fi x=`basename "$ASLTSDIR"` if [ "$x" != aslts ]; then do_exit 1 "The last name in ASLTSDIR should be 'aslts', but it is $x!" fi check_dir "$ASLTSDIR" # Set up the additional environment x=`echo $PATH | grep "aslts/bin"` if [ "$x" == "" ]; then PATH=$PATH:$ASLTSDIR/bin fi x=`echo $PATH | grep "aslts/bin"` if [ "$x" == "" ]; then do_exit 1 "Failed to set up aslts/bin to PATH!" fi # The simple below doesn't work on Cygwin: # BUG_STATE_DIR=$ASLTSDIR/bin/bugstate # Basing on grep will not work in abnormal case # when there are several "aslts/bin" in PATH, so # detailed calculation of line with "aslts/bin": x=`get_aslts_bin_line "$PATH"` if [ x"$x" == x ]; then do_exit 1 "No aslts/bin in PATH!" fi BUG_STATE_DIR="$x/bugstate" PATH=$PATH:$BUG_STATE_DIR # Add the common use stuff . common . settings # ###################################################### # # ATTENTION: can use the common stuff starting from here # # ###################################################### # # Init available tests RESET_SETTINGS INIT_ALL_AVAILABLE_CASES INIT_ALL_AVAILABLE_MODES # Only report available test cases if [ $CMD == $PRINTTESTCASES ]; then echo_available_test_cases do_exit 0 "" fi # Command execution if [ $CMD == $ASLCOMPILE ]; then # Check access to iASL compiler if [ ! -f "$ASL" ]; then do_exit 1 "Undefined ASL variable! Set it to pathname of ASL compiler." fi shift 1 ENABLED_TMODES= while : do check_mode_id $1 if [ $? -eq 1 ]; then break fi ENABLED_TMODES="$1 $ENABLED_TMODES" shift 1 done export ENABLED_TMODES #NPARAM counts the number of enabled test cases NPARAM=0 ENABLED_TCASES= while : do get_collection_opcode $1 if [ $? -eq $COLLS_NUM ]; then break fi ENABLED_TCASES="$1 $ENABLED_TCASES" shift 1 NPARAM=$(($NPARAM + 1)) done export ENABLED_TCASES if [ "x$ENABLED_TCASES" == "x" ]; then x=aslts NPARAM=$(($NPARAM + 1)) else x="$ENABLED_TCASES" fi if [ $NPARAM -le 0 ]; then usage do_exit 1 "Bad parameters 0" elif [ $x == ASLTS -o $x == aslts ]; then if [ $NPARAM != 1 ]; then usage do_exit 1 "Bad parameters 1" fi elif [ $x == ALL -o $x == all ]; then if [ $NPARAM -le 0 ]; then usage do_exit 1 "Bad parameters 2" fi fi EXECONLY=$1 run_asl_compiler "$ASLTSDIR" "$x" "$EXECONLY" elif [ $CMD == $RUNTESTS ]; then # Check access to AcpiExec utility if [ ! -f "$acpiexec" ]; then do_exit 1 "Undefined acpiexec variable! Set it to pathname of AcpiExec utility." fi # Check access to AcpiBin utility if [ ! -f "$acpibin" ]; then do_exit 1 "Undefined acpibin variable! Set it to pathname of AcpiBin utility." fi shift 1 ASLTSRUN_PARAMS= ENABLED_TMODES= while : do check_mode_id $1 if [ $? -eq 1 ]; then break fi ENABLED_TMODES="$1 $ENABLED_TMODES" shift 1 done export ENABLED_TMODES export ENABLED_TCASES="$@" asltsrun elif [ $CMD == $DIFFRESULTS ]; then RESULTDIR="$ASLTSDIR/tmp/RESULTS" check_dir "$RESULTDIR" if [ $NPARAM == 1 ]; then do_cmp $NPARAM 0 0 "$RESULTDIR" elif [ $NPARAM == 2 ]; then do_cmp $NPARAM 0 "$2" "$RESULTDIR" elif [ $NPARAM == 3 ]; then do_cmp $NPARAM "$2" "$3" "$RESULTDIR" else bad_param_number $CMD $NPARAM "not more than 3" fi elif [ $CMD == $BDEMOSSUM ]; then if [ $NPARAM == 2 ]; then do_bdemo_sums "$NPARAM" "$2" else bad_param_number $CMD $NPARAM "2" fi elif [ $CMD == $CONCBDEMOS ]; then if [ $NPARAM == 3 ]; then concatenate_bdemo_sums $NPARAM "$2" "$3" else bad_param_number $CMD $NPARAM "3" fi elif [ $CMD == $BDEMOSTABS ]; then if [ $NPARAM == 6 ]; then do_bdemo_table $NPARAM "$2" "$3" "$4" "$5" "$6" else bad_param_number $CMD $NPARAM "6" fi else do_exit 1 "Bad parameters 3" fi acpica-unix-20250404/tests/aslts/bin/bugstate/0000700000175000017500000000000014773714146020405 5ustar ivanhuivanhuacpica-unix-20250404/tests/aslts/bin/bugstate/bdemossum0000700000175000017500000000611114773714146022330 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # Prepare bdemo summary files of one multi-results directory for all modes: # # - 32-bit norm mode # - 64-bit norm mode # - 32-bit slack mode # - 64-bit slack mode # # Each line of the summary files represents the state of the relevant bug # reported by the relevant bdemo test. # # Parameters: # # arg1 - multi-result directory # # (for comments see Do and asltsrun utilities). # Includes . common . settings # arg1 - file "__STATUS_OF_TESTS" # arg2 - the name of system and modeid (system:modeid) the tests were run on get_summary() { local pass=0 fail=0 blck=0 skip=0 number= prev_num= bdemo_started= OLD_IFS=$IFS IFS=":" cat "$1" |\ while [ 1 ] do read s0 s1 s2 s3 s4 s5 line if [ $? -ne 0 ] ; then SUMMARY[$prev_num]="$prev_num:$2:$fail:$blck:$pass:$skip" do_report_summary break fi if [[ "$s2" == *bug-demo* ]]; then bdemo_started=yes number=`echo "$s3" | awk -F" " '{ print $4}'` if [[ "$number" != "$prev_num" ]]; then if [[ "$prev_num" != "" ]]; then SUMMARY[$prev_num]="$prev_num:$2:$fail:$blck:$pass:$skip" pass=0 fail=0 blck=0 skip=0 fi prev_num=$number fi if [[ "$s5" == PASS ]]; then pass=$[ $pass + 1 ] elif [[ "$s5" == FAIL ]]; then fail=$[ $fail + 1 ] elif [[ "$s5" == BLOCKED ]]; then blck=$[ $blck + 1 ] elif [[ "$s5" == SKIPPED ]]; then skip=$[ $skip + 1 ] fi elif [[ $bdemo_started == yes ]]; then SUMMARY[$prev_num]="$prev_num:$2:$fail:$blck:$pass:$skip" do_report_summary break fi done IFS=$OLD_IFS } # arg1 - multi-result directory # arg2 - the name of system the tests were run on # arg3 - mode of run # Result - file "__STATUS_OF_BDEMO_TESTS" do_summary() { local path0 path1 modepart0 modename0 system modepart0=`get_mode_string $3 0` modename0=`get_mode_string $3 1` path0="$1/$modepart0/__STATUS_OF_TESTS" path1="$1/$modepart0/__STATUS_OF_BDEMO_TESTS" system="$2" echo "Extracting bdemo-results of <$system, $modename0>:" if [ -f "$path1" ]; then echo "Do nothing, file exists already:" echo " $path1" elif [ -f "$path0" ]; then modeid=`get_mode_id $3` get_summary "$path0" "$system:$modeid" > "$path1" else echo "File doesn't exists:" echo " $path0" fi } do_report_summary() { index=0 while [ 1 ] do if [[ $index -ge $MAXBDEMO ]]; then break fi echo "${SUMMARY[$index]}" index=$[ $index + 1 ] done } # ############################## MAIN ############################### DIR0="$1" UTILSTATUS=0 SUMMARY= # Initialization INIT_MAX_BDEMO echo "Preparing the bdemo summary files of one multi-results directory for all modes:" echo " $DIR0" echo "The number of bdemo-tests is equal to $MAXBDEMO" # Do all summaries of bdemos check_dir "$DIR0" COMMONLOGFILE="$DIR0/Summary" if [ ! -f "$COMMONLOGFILE" ]; then do_exit 1 "COMMONLOGFILE is not file: <$COMMONLOGFILE>" else system=`get_name_of_system "$COMMONLOGFILE"` fi do_summary "$DIR0" "$system" $NORM32 do_summary "$DIR0" "$system" $NORM64 do_summary "$DIR0" "$system" $SLACK32 do_summary "$DIR0" "$system" $SLACK64 exit $UTILSTATUS acpica-unix-20250404/tests/aslts/bin/bugstate/parsebuglist0000700000175000017500000000406114773714146023040 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # Parse the Bug List output file (ID State Result Component) # # Parameters: # # arg1 - pathname of file with the Bug List # Includes . common . settings # ID State Result Component # # State:=[NEW|RESO|CLOS|ASSI|REJE|NEED] # Result:=[CODE|PATC|DOCU|FIXE|INVA] # # State entries: # # NEW == NEW # RESO == RESOLVED # CLOS == CLOSED # ASSI == ASSIGNED # REJE == REJECTED # NEED == NEEDINFO # # Result entries: # # FIXE == FIXED # INVA == INVALID # CODE == CODE_FIX # PATC == PATCH_ALREADY_AVAILABLE # DOCU == DOCUMENTED get_summary() { # echo "=====================$s0:$s1:$s2:$s3:$s4:$s5:$line" ID="$s0" State="$s1" Result= Component= if [ "$State" == RESO\ -o "$State" == CLOS\ -o "$State" == REJE ]; then Result="$s2" if [ "x$s4" == x ]; then Component="$s3" else Component="$s3 $s4" fi else if [ "$State" != NEW\ -a "$State" != NEED\ -a "$State" != ASSI ]; then echo "ERROR 0: get_summary, <$State>" CountERR=$[ $CountERR + 1 ] else if [ "x$s3" == x ]; then Component="$s2" else Component="$s2 $s3" fi fi fi echo "$ID:$State: Exp $Result:$Component:" } # arg1 - pathname of file with the Bug List do_summary() { started= OLD_IFS=$IFS IFS=" " cat "$1" |\ while [ 1 ] do read s0 s1 s2 s3 s4 s5 line if [ $? -ne 0 ] ; then # echo "Number of the table inconsistency errors: CountERR = $CountERR" if [ "$CountERR" != 0 ]; then return 1 fi break fi if [ "$s1" == bugs -a "$s2" == "found." ]; then if [ "$started" == yes ]; then started=no else started=yes fi elif [ "$started" == yes ]; then get_summary fi done ret=$? IFS=$OLD_IFS if [ $ret -ne 0 ]; then return 1 fi } # ############################## MAIN ############################### PATHNAME="$1" UTILSTATUS=0 SUMMARY= CountERR=0 # echo "Parse the Bug List output file:" # echo " $PATHNAME" if [ ! -f "$PATHNAME" ]; then do_exit 1 "It is not file: <$PATHNAME>" fi do_summary "$PATHNAME" if [ $? -ne 0 ]; then do_exit 1 "parsebuglist failed" else exit 0 fi acpica-unix-20250404/tests/aslts/bin/bugstate/bdemosconc0000700000175000017500000000437414773714146022457 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # Concatenate bdemo summary files (obtained by bdemossum) # of two multi-results. # # Parameters: # # arg1 - the first multi-result directory # arg2 - the second multi-result directory # # (for comments see Do and asltsrun utilities). # Includes . common . settings get_summary() { OLD_IFS=$IFS IFS=":" cat\ $path0\ $path1\ $path2\ $path3\ $path4\ $path5\ $path6\ $path7 |\ while [ 1 ] do read number line if [ $? -ne 0 ] ; then do_report_summary break fi if [ "x$number" != x ]; then SUMMARY[$number]=${SUMMARY[$number]}"|$line" fi done IFS=$OLD_IFS } # arg1 - multi-result directory # arg2 - mode of run get_name_of_bdemossum() { local path modepart0 modepart0=`get_mode_string $2 0` path="$1/$modepart0/__STATUS_OF_BDEMO_TESTS" echo "$path" } do_report_summary() { index=0 while [ 1 ] do if [[ $index -ge $MAXBDEMO ]]; then break fi echo "$index${SUMMARY[$index]}" index=$[ $index + 1 ] done } # ############################## MAIN ############################### DIR0="$1" DIR1="$2" UTILSTATUS=0 SUMMARY= # Initialization INIT_MAX_BDEMO echo "The number of bdemo-tests is equal to $MAXBDEMO" # Do summary files of bdemos if [ -d "$DIR0" ]; then bdemossum "$DIR0" 0 fi if [ -d "$DIR1" ]; then bdemossum "$DIR1" 1 fi # Concatenate the summary files of bdemos of two multi-results echo "Concatenating bdemo summary files of two multi-results:" echo " the first : $DIR0" echo " the second : $DIR1" bdemo_sum= if [ -d "$DIR0" ]; then bdemo_sum="$DIR0/__STATUS_OF_ALL_BDEMO_TESTS" elif [ -d "$DIR1" ]; then bdemo_sum="$DIR1/__STATUS_OF_ALL_BDEMO_TESTS" else do_exit 1 "No one directory specified by both parameters" fi path0="" path1="" path2="" path3="" path4="" path5="" path6="" path7="" if [ -d "$DIR0" ]; then path0=`get_name_of_bdemossum "$DIR0" $NORM32` path1=`get_name_of_bdemossum "$DIR0" $NORM64` path2=`get_name_of_bdemossum "$DIR0" $SLACK32` path3=`get_name_of_bdemossum "$DIR0" $SLACK64` fi if [ -d "$DIR1" ]; then path4=`get_name_of_bdemossum "$DIR1" $NORM32` path5=`get_name_of_bdemossum "$DIR1" $NORM64` path6=`get_name_of_bdemossum "$DIR1" $SLACK32` path7=`get_name_of_bdemossum "$DIR1" $SLACK64` fi get_summary > "$bdemo_sum" exit $UTILSTATUS acpica-unix-20250404/tests/aslts/bin/bugstate/HOW_TO_USE0000700000175000017500000000611414773714146022110 0ustar ivanhuivanhubdemostabs =========== The utility bdemostabs calculates the current state of all bugs and reports the summary tables. The input data of bdemostabs are as follow. arg1 - the first multi-result directory arg2 - the second multi-result directory arg3 - ALLBUGS file which is a manually prepared description of all bugs, those features of current state of bugs which could not be obtained automatically. NOTE: it should be kept up to date regularly. arg4 - kernel bugzilla Bug List file arg5 - local bugzilla Bug List file Error opcodes in 'Errors' field of Table 1 ========================================== The 'Errors' field of the summary table (Table 1) contains the letter opcodes of errors which points out the inconsistences of the particular bug state which require working on them. See opcodes of errors enumerated in ERROR_OPCODES file. ALLBUGS file manual description of per-bug state ================================================ One new line is to be added into this file for each new bug. The contents of fields of the line are given below. COMP - component the bug relates to: I - AML Interpreter C - iASL compiler M - simulation purposes (OS Layer insertions for simulation purposes only) U - utility S - specs ML - memory leak (additional information but not component) IID - internal ID of bug LBZID - local bugzilla ID KBZID - kernel bugzilla ID PR - priority for fixing the bug. Should be non-empty for each not fixed bug and empty otherwise: 1 - will be fixed in the first turn 2 - will be fixed in the second turn.. SUMMARY - summary. Short description of bug. STATE-MANUALLY - the state of bug set up/confirmed (if needed) manually: FIXED - bug is fixed. It is to be filled only when there is no ability to create the relevant bdemo test which shows the current state of the bug. REJECTED - no longer a bug. Each rejected bug should be confirmed by this entry here. INTEGRATED - bug-fix is olready integrated. Each fixed bug should be confirmed by this entry here that its patch/update is integrated into ACPICA. Discipline of setting up INTEGRATED into STATE-MANUALLY of ALLBUGS file =================================== 1. If bug fix is proposed by our side we check manually through the code that bug fix is actually integrated into ACPICA code. 2. If bug is fixed by other side we don't know where to look for the relevant update and simply run the relevant bdemo test on the obtained release to ensure the bug-fix is already integrated. 3. For bugs of internal bugzilla other side sets RESOLVED FIXED when integrated the bug-fix update but doesn't close the relevant bug. We run the bdemo test check the result of the test and set CLOSED when the test results in PASS. 4. CLOSED but not INTEGRATED yet bug is considered as a wrong combination. . acpica-unix-20250404/tests/aslts/bin/bugstate/bdemostabs0000700000175000017500000011235014773714146022460 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # Calculate the current state of all bugs # and report the summary tables. # # Parameters: # # arg1 - the first multi-result directory # arg2 - the second multi-result directory # # Note: fictitious invalid name could be applied instead of either arg1 or arg2. # # arg3 - ALLBUGS file which is a manually prepared description of all bugs, # those features of current state of bugs which could not be obtained # automatically # arg4 - kernel bugzilla Bug List file # arg5 - local bugzilla Bug List file # # (for additional comments see Do and asltsrun utilities). # Includes . common . settings print_complete_list_per_comp=yes # Opcodes of TEST-RESULT PASS=0 FAIL=1 BLOCKED=2 SKIPPED=3 UNDEFINED=4 ST_FAIL=" FAIL " ST_BLCK=" BLOCKED " ST_PASS=" PASS " ST_SKIP=" SKIPPED " ST_UNDF=" UNDEFINED " ST_EMPT=" " # Opcodes of (STATE-MANUALLY) Man_REJECTED=0 Man_FIXED=1 Man_INTEGRATED=2 Man_FIXED_INTEGRATED=3 Man_EMPTY=4 Man_UNDEFINED=5 # Overall status REJ_STATUS=0 PASS_STATUS=1 FAIL_STATUS=2 # Opcodes of component I_COMP=0 C_COMP=1 M_COMP=2 U_COMP=3 S_COMP=4 UNDEF_COMP=5 # Return opcode of TEST-RESULT according to weights gen_stat() { if [ "x$1" != x ]; then stat=`echo "$1" | awk -F: '{ print $4}'` if [ "$stat" != 0 ]; then rval=$FAIL else stat=`echo "$1" | awk -F: '{ print $5}'` if [ "$stat" != 0 ]; then if [ "$rval" != $FAIL ]; then rval=$BLOCKED fi else stat=`echo "$1" | awk -F: '{ print $6}'` if [ "$stat" != 0 ]; then if [ "$rval" != $FAIL -a "$rval" != $BLOCKED ]; then rval=$PASS fi else stat=`echo "$1" | awk -F: '{ print $7}'` if [ "$stat" != 0 ]; then if [ "$rval" != $FAIL -a "$rval" != $BLOCKED -a "$rval" != $PASS ]; then rval=$SKIPPED fi fi fi fi fi fi } # Inputs/outputs are 'Opcodes of TEST-RESULT' generate_status() { rval="$UNDEFINED" gen_stat "$c32n_GL" gen_stat "$c64n_GL" gen_stat "$c32s_GL" gen_stat "$c64s_GL" gen_stat "$l32n_GL" gen_stat "$l64n_GL" gen_stat "$l32s_GL" gen_stat "$l64s_GL" return $rval } # Get name of 'Opcode of TEST-RESULT' get_test_result_name() { case $1 in 0) echo "$ST_PASS";; 1) echo "$ST_FAIL";; 2) echo "$ST_BLCK";; 3) echo "$ST_SKIP";; 4) echo "$ST_UNDF";; *) echo "?" esac } get_state_result() { if [ "x$2" != x ]; then State=`get_element_of_line "$1" ":" $2 0` Result=`get_element_of_line "$1" ":" $2 1` if [ "x$State" == x ]; then StateResult=" " elif [ "$State" == NEW ]; then StateResult="$State " elif [ "x$Result" == x ]; then StateResult="$State " else StateResult="$State $Result" fi else StateResult=" " fi echo "$StateResult" } # Check(STATE-MANUALLY) == {REJECTED|FIXED|INTEGRATED|FIXED INTEGRATED|} check_state_manually() { rval=$Man_UNDEFINED x=`echo "$1" | awk -F" " '{print $1}'` y=`echo "$1" | awk -F" " '{print $2}'` # FIXED INTEGRATED if [ "x$y" != x ]; then if [ "$x" != FIXED -o "$y" != INTEGRATED ]; then CerrSTMAN=h else rval=$Man_FIXED_INTEGRATED z=`echo "$1" | awk -F" " '{print NF}'` if [ "$z" != 2 ]; then CerrSTMAN=i fi fi elif [ "$x" == REJECTED ]; then rval=$Man_REJECTED elif [ "$x" == FIXED ]; then rval=$Man_FIXED elif [ "$x" == INTEGRATED ]; then rval=$Man_INTEGRATED elif [ "x$x" == x ]; then rval=$Man_EMPTY else CerrSTMAN=j fi return $rval } # Check(TEST-RESULT) == {PASS|FAIL|BLOCKED|SKIPPED|UNDEFINED} check_test_result() { if [ "$1" != $PASS\ -a "$1" != $FAIL\ -a "$1" != $BLOCKED\ -a "$1" != $SKIPPED\ -a "$1" != $UNDEFINED ]; then CerrTSRESID=k fi } check_conformity() { entry=7 rval=$FAIL_STATUS if [ "$1" == $Man_REJECTED ]; then entry=0 rval=$REJ_STATUS elif [ "$1" == $Man_FIXED -a "$2" == $UNDEFINED ]; then entry=1 rval=$PASS_STATUS elif [ "$1" == $Man_FIXED_INTEGRATED -a "$2" == $UNDEFINED ]; then entry=1 rval=$PASS_STATUS elif [ "$1" == $Man_EMPTY -o "$1" == $Man_INTEGRATED ]; then if [ "$2" == $PASS ]; then entry=2 rval=$PASS_STATUS elif [ "$2" == $FAIL ]; then entry=4 rval=$FAIL_STATUS elif [ "$2" == $BLOCKED ]; then entry=5 rval=$FAIL_STATUS elif [ "$2" == $SKIPPED ]; then entry=3 rval=$PASS_STATUS elif [ "$2" == $UNDEFINED ]; then entry=6 rval=$FAIL_STATUS else CerrCONFORMITY=l fi else entry=7 echo "ERROR 0: check_conformity, <$1> <$2>" InternalErrCount=$[ $InternalErrCount + 1 ] CerrCONFORMITY=m fi if [ "$1" == $Man_FIXED_INTEGRATED -o "$1" == $Man_INTEGRATED ]; then if [ "x$LBZID" == x -a "x$KBZID" == x ]; then CerrCONFORMITY=u fi fi entry_of_table=$entry return $rval } # Check(COMP) == {I|C|M|U|S} check_component() { rval=$UNDEF_COMP if [[ "$1" == I* ]]; then rval=$I_COMP elif [[ "$1" == C* ]]; then rval=$C_COMP elif [[ "$1" == M* ]]; then rval=$M_COMP elif [[ "$1" == U* ]]; then rval=$U_COMP elif [[ "$1" == S* ]]; then rval=$S_COMP else CerrCOMP=g echo "ERROR 0: check_component, <$1>" InternalErrCount=$[ $InternalErrCount + 1 ] fi return $rval } report_state_of_bugs() { local second_file= rintinbzcnt=0 notresolvedcnt=0 rnotintcnt=0 rjinbzilla=0 rstateinbzilla=0 rstateinbzillafail=0 init_summary_table echo "" echo "" echo "" echo "Table 1 (Complete list of per-bug states)" echo "" report_head_of_table OLD_IFS=$IFS IFS="|" cat\ "$BDEMO_SUM"\ "$ALLBUGS" |\ while [ 1 ] do read number s0 s1 s2 s3 s4 s5 s6 s7 if [ $? -ne 0 ] ; then do_report_summary echo "" report_errors_encountered echo "" echo "" echo "" report_bug_summary echo "" echo "" echo "" report_rejected_in_bzilla echo "" echo "" echo "" report_resolved_integrated echo "" echo "" echo "" report_resolved_not_integrated echo "" echo "" echo "" report_not_resolved echo "" echo "" echo "" report_resolved_state_in_bzilla echo "" echo "" echo "" report_resolved_state_in_bzilla_but_fail echo "" echo "" echo "" report_bzilla_summary echo "" echo "" echo "" report_internal_bugs_number break fi if [ "$number" == ALLBUGS ] ; then second_file=yes continue fi if [ "$second_file" == yes ] ; then if [ "x$number" == x ]; then continue fi CerrMISC=" " # Local/kernel bugzilla State/Result parameters LBZID=`echo $s1 | sed 's/ //'g` lst=`get_state_result "$LBSUM_PARSED" "$LBZID"` KBZID=`echo $s2 | sed 's/ //'g` kst=`get_state_result "$KBSUM_PARSED" "$KBZID"` lState=`echo "$lst" | awk -F" " '{print $1}'` lResult=`echo "$lst" | awk -F" " '{print $2}'` kState=`echo "$kst" | awk -F" " '{print $1}'` kResult=`echo "$kst" | awk -F" " '{print $2}'` resolved_state_in_bzilla= resolved_state_in_bzilla_but_fail= if [ "$lState" == RESO\ -o "$lState" == REJE\ -o "$lState" == CLOS\ -o "$kState" == RESO\ -o "$kState" == REJE\ -o "$kState" == CLOS ]; then resolved_state_in_bzilla=yes fi # Check consistency of bug-data. # # Check that the state of bugs reported by local and kernel # bugzilla don't contradict with the actual state of bugs # reported by test runs and manually provided data. # Check STATE-MANUALLY (error # 1) CerrSTMAN=" " check_state_manually "$s3" MANstat=$? # Check TEST-RESULT (error # 1) TSRESstat="${SUMMARY[$number]}" CerrTSRESID=" " check_test_result "$TSRESstat" # Check Component (error # 2,3,4,5,6) LerrCOMP=" " KerrCOMP=" " CerrCOMP=" " Component=`echo $s0 | sed 's/ //'g` check_component "$Component" Component=$? if [ "x$KBZID" != x ]; then if [ "x$kState" == x ]; then KerrCOMP=s else Comp=`get_element_of_line "$KBSUM_PARSED" ":" "$KBZID" 2` if [ "$Comp" != "ACPI" ]; then KerrCOMP=v elif [[ "$Component" != $I_COMP ]]; then KerrCOMP=f fi fi fi if [ "x$LBZID" != x ]; then if [ "x$lState" == x ]; then LerrCOMP=s else Comp=`get_element_of_line "$LBSUM_PARSED" ":" "$LBZID" 2` if [ "$Comp" == "Core/Int" ]; then if [[ "$Component" != $I_COMP ]]; then LerrCOMP=a fi elif [ "$Comp" == "iASL Com" ]; then if [[ "$Component" != $C_COMP ]]; then LerrCOMP=b fi elif [ "$Comp" == "ACPI Spe" ]; then if [[ "$Component" != $S_COMP ]]; then LerrCOMP=c fi elif [ "$Comp" == "Utilitie" ]; then if [ "$Component" != $U_COMP -a "$Component" != $M_COMP ]; then LerrCOMP=d fi else LerrCOMP=e fi fi fi # Check conformity of STATE-MANUALLY & TEST-RESULT (error # 1) CerrCONFORMITY=" " entry_of_table=100 check_conformity "$MANstat" "$TSRESstat" overall_status=$? # Increment the relevant entry of the summary table if [ "$Component" != $UNDEF_COMP ]; then increment_summary_table "$Component" "$entry_of_table" else CerrMISC=t echo "ERROR 0: report_state_of_bugs, <$number> <$Component> <$entry_of_table>" InternalErrCount=$[ $InternalErrCount + 1 ] fi if [ "$overall_status" == $FAIL_STATUS ]; then tobefixed="*" else tobefixed=" " fi # Check REJECTED (error # 1) LerrRJ=" " KerrRJ=" " if [ "x$LBZID" != x -o "x$KBZID" != x ]; then MNrejected= if [ "$overall_status" == $REJ_STATUS ]; then MNrejected=yes fi # Local bugzilla if [ "x$LBZID" != x ]; then rejected= if [ "$lResult" == INVA ]; then rejected=yes fi if [ "$rejected" != "$MNrejected" ]; then LerrRJ=A fi fi # Kernel bugzilla if [ "x$KBZID" != x ]; then rejected= if [ "$kState" == REJE ]; then rejected=yes fi if [ "$rejected" != "$MNrejected" ]; then KerrRJ=F fi fi fi # Check State-Result (error # 7,8,9,a,b,c,d,e) intgr= if [[ "$s3" == *INTEGRATED* ]]; then intgr=yes fi LerrSTAT=" " LerrRES=" " KerrSTAT=" " KerrRES=" " CerrPRIOR=" " x=`echo $s4 | sed 's/ //'g` if [ "$overall_status" == $REJ_STATUS ]; then if [ "x$x" != x ]; then CerrPRIOR=n fi elif [ "$overall_status" == $PASS_STATUS ]; then if [ "x$LBZID" != x ]; then if [ "$lState" == CLOS -a "x$intgr" == x ]; then LerrSTAT=L elif [ "$lState" != RESO -a "$lState" != CLOS ]; then LerrSTAT=R elif [ "$lState" == RESO ]; then LerrSTAT=C if [ "$lResult" != FIXE ]; then LerrRES=D fi else if [ "$lResult" != FIXE ]; then LerrRES=D fi fi fi if [ "x$KBZID" != x ]; then if [ "$kState" == CLOS -a "x$intgr" == x ]; then KerrSTAT=L elif [ "$kState" != RESO -a "$kState" != CLOS ]; then KerrSTAT=R elif [ "$kState" == RESO ]; then KerrSTAT=C if [ "$kResult" != CODE -a "$kResult" != PATC ]; then KerrRES=H fi else if [ "$kResult" != CODE -a "$kResult" != PATC ]; then KerrRES=H fi fi fi if [ "x$x" != x ]; then CerrPRIOR=o fi else if [ "x$LBZID" != x ]; then if [ "$lState" == RESO\ -o "$lState" == CLOS ]; then LerrSTAT=B elif [ "$lResult" == FIXE\ -o "$lResult" == CODE\ -o "$lResult" == PATC ]; then LerrRES=E fi fi if [ "x$KBZID" != x ]; then if [ "$kState" == RESO\ -o "$kState" == CLOS ]; then KerrSTAT=G elif [ "$kResult" == FIXE\ -o "$kResult" == CODE\ -o "$kResult" == PATC ]; then KerrRES=J fi fi if [ "x$LBZID" == x -a "x$KBZID" == x ]; then LerrSTAT=r KerrSTAT=r fi if [ "x$x" == x ]; then CerrPRIOR=p fi fi # Check INTEGRATED (error # f,g,h,i) CerrINTEGR=" " rejected_in_bz= rejected_not_in_bz= not_resolved= resolved_integrated_in_bz= resolved_not_integrated_in_bz= if [ "$overall_status" == $REJ_STATUS ]; then if [ "x$KBZID" != x -o "x$LBZID" != x ]; then rejected_in_bz=yes else rejected_not_in_bz=yes fi elif [ "$overall_status" == $FAIL_STATUS ]; then not_resolved=yes if [ "x$LBZID" != x -o "x$KBZID" != x ]; then if [ "$resolved_state_in_bzilla" == yes ]; then resolved_state_in_bzilla_but_fail=yes fi if [ "x$intgr" != x ]; then CerrINTEGR=K fi fi else if [ "x$LBZID" != x -o "x$KBZID" != x ]; then if [ "x$intgr" == x ]; then CerrINTEGR=I resolved_not_integrated_in_bz=yes else resolved_integrated_in_bz=yes fi fi fi # Local & Kernel bugzilla summary if [ "x$LBZID" != x -o "x$KBZID" != x ]; then if [ "$kState" == NEW ]; then KBarr[0]=$[ ${KBarr[0]} + 1 ] elif [ "$kState" == ASSI ]; then KBarr[1]=$[ ${KBarr[1]} + 1 ] elif [ "$kState" == NEED ]; then KBarr[2]=$[ ${KBarr[2]} + 1 ] elif [ "$kState" == RESO ]; then if [ "$kResult" == CODE ]; then KBarr[3]=$[ ${KBarr[3]} + 1 ] elif [ "$kResult" == PATC ]; then KBarr[4]=$[ ${KBarr[4]} + 1 ] elif [ "$kResult" == FIXE ]; then KBarr[5]=$[ ${KBarr[5]} + 1 ] elif [ "$kResult" == INVA ]; then KBarr[6]=$[ ${KBarr[6]} + 1 ] else KBarr[9]=$[ ${KBarr[9]} + 1 ] fi elif [ "$kState" == REJE ]; then if [ "$kResult" == DOCU ]; then KBarr[7]=$[ ${KBarr[7]} + 1 ] else KBarr[9]=$[ ${KBarr[9]} + 1 ] fi elif [ "$kState" == CLOS ]; then if [ "$kResult" == CODE ]; then KBarr[8]=$[ ${KBarr[8]} + 1 ] else KBarr[9]=$[ ${KBarr[9]} + 1 ] fi fi if [ "$lState" == NEW ]; then LBarr[0]=$[ ${LBarr[0]} + 1 ] elif [ "$lState" == ASSI ]; then LBarr[1]=$[ ${LBarr[1]} + 1 ] elif [ "$lState" == NEED ]; then LBarr[2]=$[ ${LBarr[2]} + 1 ] elif [ "$lState" == RESO ]; then if [ "$lResult" == CODE ]; then LBarr[3]=$[ ${LBarr[3]} + 1 ] elif [ "$lResult" == PATC ]; then LBarr[4]=$[ ${LBarr[4]} + 1 ] elif [ "$lResult" == FIXE ]; then LBarr[5]=$[ ${LBarr[5]} + 1 ] elif [ "$lResult" == INVA ]; then LBarr[6]=$[ ${LBarr[6]} + 1 ] else LBarr[9]=$[ ${LBarr[9]} + 1 ] fi elif [ "$lState" == REJE ]; then if [ "$lResult" == DOCU ]; then LBarr[7]=$[ ${LBarr[7]} + 1 ] else LBarr[9]=$[ ${LBarr[9]} + 1 ] fi elif [ "$lState" == CLOS ]; then if [ "$lResult" == CODE ]; then LBarr[8]=$[ ${LBarr[8]} + 1 ] else LBarr[9]=$[ ${LBarr[9]} + 1 ] fi fi if [ "$overall_status" == $REJ_STATUS ]; then if [ "x$LBZID" != x ]; then LBarr[10]=$[ ${LBarr[10]} + 1 ] fi if [ "x$KBZID" != x ]; then KBarr[10]=$[ ${KBarr[10]} + 1 ] fi elif [ "$overall_status" == $PASS_STATUS ]; then if [ "x$LBZID" != x ]; then LBarr[11]=$[ ${LBarr[11]} + 1 ] fi if [ "x$KBZID" != x ]; then KBarr[11]=$[ ${KBarr[11]} + 1 ] fi else if [ "x$LBZID" != x ]; then LBarr[12]=$[ ${LBarr[12]} + 1 ] fi if [ "x$KBZID" != x ]; then KBarr[12]=$[ ${KBarr[12]} + 1 ] fi fi fi TSRESname=`get_test_result_name "$TSRESstat"` if [ "$overall_status" == $REJ_STATUS ]; then TSRESname="$ST_EMPT" fi # Summary error string LErrStr="$LerrRJ$LerrCOMP$LerrSTAT$LerrRES" KErrStr="$KerrRJ$KerrCOMP$KerrSTAT$KerrRES" CommonErrStr="$CerrCOMP$CerrSTMAN$CerrTSRESID$CerrCONFORMITY$CerrPRIOR$CerrINTEGR" AllErrors="$LErrStr$KErrStr$CommonErrStr$CerrMISC $tobefixed" x=`echo "$AllErrors" | sed 's/ //'g` AccumulateErrors="$AccumulateErrors$x" line="$AllErrors|$number|$s0|$s1|$lst|$s2|$kst|$TSRESname|$s3|$s4| $tobefixed$s5" SUMMARY[$number]="$line" if [ "x$print_complete_list_per_comp" != x ]; then if [[ "$Component" == $I_COMP ]]; then SUMMARY_I="$SUMMARY_I:$number" elif [[ "$Component" == $C_COMP ]]; then SUMMARY_C="$SUMMARY_C:$number" elif [[ "$Component" == $M_COMP ]]; then SUMMARY_M="$SUMMARY_M:$number" elif [[ "$Component" == $U_COMP ]]; then SUMMARY_U="$SUMMARY_U:$number" elif [[ "$Component" == $S_COMP ]]; then SUMMARY_S="$SUMMARY_S:$number" else SUMMARY_UNDEF="$SUMMARY_UNDEF:$number" fi fi if [ "$not_resolved" == yes ]; then if [[ "$Component" == $I_COMP ]]; then NOT_RESOLVED_I="$NOT_RESOLVED_I:$number" elif [[ "$Component" == $C_COMP ]]; then NOT_RESOLVED_C="$NOT_RESOLVED_C:$number" elif [[ "$Component" == $M_COMP ]]; then NOT_RESOLVED_M="$NOT_RESOLVED_M:$number" elif [[ "$Component" == $U_COMP ]]; then NOT_RESOLVED_U="$NOT_RESOLVED_U:$number" elif [[ "$Component" == $S_COMP ]]; then NOT_RESOLVED_S="$NOT_RESOLVED_S:$number" else NOT_RESOLVED_UNDEF="$NOT_RESOLVED_UNDEF:$number" fi notresolvedcnt=$[ $notresolvedcnt + 1 ] elif [ "$resolved_integrated_in_bz" == yes ]; then if [[ "$Component" == $I_COMP ]]; then RESOLVED_INTEGRATED_IN_BZ_I="$RESOLVED_INTEGRATED_IN_BZ_I:$number" elif [[ "$Component" == $C_COMP ]]; then RESOLVED_INTEGRATED_IN_BZ_C="$RESOLVED_INTEGRATED_IN_BZ_C:$number" elif [[ "$Component" == $M_COMP ]]; then RESOLVED_INTEGRATED_IN_BZ_M="$RESOLVED_INTEGRATED_IN_BZ_M:$number" elif [[ "$Component" == $U_COMP ]]; then RESOLVED_INTEGRATED_IN_BZ_U="$RESOLVED_INTEGRATED_IN_BZ_U:$number" elif [[ "$Component" == $S_COMP ]]; then RESOLVED_INTEGRATED_IN_BZ_S="$RESOLVED_INTEGRATED_IN_BZ_S:$number" else RESOLVED_INTEGRATED_IN_BZ_UNDEF="$RESOLVED_INTEGRATED_IN_BZ_UNDEF:$number" fi rintinbzcnt=$[ $rintinbzcnt + 1 ] elif [ "$resolved_not_integrated_in_bz" == yes ]; then if [[ "$Component" == $I_COMP ]]; then RESOLVED_NOT_INTEGRATED_IN_BZ_I="$RESOLVED_NOT_INTEGRATED_IN_BZ_I:$number" elif [[ "$Component" == $C_COMP ]]; then RESOLVED_NOT_INTEGRATED_IN_BZ_C="$RESOLVED_NOT_INTEGRATED_IN_BZ_C:$number" elif [[ "$Component" == $M_COMP ]]; then RESOLVED_NOT_INTEGRATED_IN_BZ_M="$RESOLVED_NOT_INTEGRATED_IN_BZ_M:$number" elif [[ "$Component" == $U_COMP ]]; then RESOLVED_NOT_INTEGRATED_IN_BZ_U="$RESOLVED_NOT_INTEGRATED_IN_BZ_U:$number" elif [[ "$Component" == $S_COMP ]]; then RESOLVED_NOT_INTEGRATED_IN_BZ_S="$RESOLVED_NOT_INTEGRATED_IN_BZ_S:$number" else RESOLVED_NOT_INTEGRATED_IN_BZ_UNDEF="$RESOLVED_NOT_INTEGRATED_IN_BZ_UNDEF:$number" fi rnotintcnt=$[ $rnotintcnt + 1 ] elif [ "$rejected_in_bz" == yes ]; then REJECTED_IN_BZILLA="$REJECTED_IN_BZILLA:$number" rjinbzilla=$[ $rjinbzilla + 1 ] elif [ "$rejected_not_in_bz" == yes ]; then if [[ "$Component" == $I_COMP ]]; then REJECTED_NOT_IN_BZILLA_I="$REJECTED_NOT_IN_BZILLA_I:$number" elif [[ "$Component" == $C_COMP ]]; then REJECTED_NOT_IN_BZILLA_C="$REJECTED_NOT_IN_BZILLA_C:$number" elif [[ "$Component" == $M_COMP ]]; then REJECTED_NOT_IN_BZILLA_M="$REJECTED_NOT_IN_BZILLA_M:$number" elif [[ "$Component" == $U_COMP ]]; then REJECTED_NOT_IN_BZILLA_U="$REJECTED_NOT_IN_BZILLA_U:$number" elif [[ "$Component" == $S_COMP ]]; then REJECTED_NOT_IN_BZILLA_S="$REJECTED_NOT_IN_BZILLA_S:$number" else REJECTED_NOT_IN_BZILLA_UNDEF="$REJECTED_NOT_IN_BZILLA_UNDEF:$number" fi rjnotinbzilla=$[ $rjnotinbzilla + 1 ] fi if [ "$resolved_state_in_bzilla" == yes ]; then if [[ "$Component" == $I_COMP ]]; then RESOLVED_STATE_IN_BZILLA_I="$RESOLVED_STATE_IN_BZILLA_I:$number" elif [[ "$Component" == $C_COMP ]]; then RESOLVED_STATE_IN_BZILLA_C="$RESOLVED_STATE_IN_BZILLA_C:$number" elif [[ "$Component" == $M_COMP ]]; then RESOLVED_STATE_IN_BZILLA_M="$RESOLVED_STATE_IN_BZILLA_M:$number" elif [[ "$Component" == $U_COMP ]]; then RESOLVED_STATE_IN_BZILLA_U="$RESOLVED_STATE_IN_BZILLA_U:$number" elif [[ "$Component" == $S_COMP ]]; then RESOLVED_STATE_IN_BZILLA_S="$RESOLVED_STATE_IN_BZILLA_S:$number" else RESOLVED_STATE_IN_BZILLA_UNDEF="$RESOLVED_STATE_IN_BZILLA_UNDEF:$number" fi rstateinbzilla=$[ $rstateinbzilla + 1 ] fi if [ "$resolved_state_in_bzilla_but_fail" == yes ]; then if [[ "$Component" == $I_COMP ]]; then RESOLVED_STATE_IN_BZILLA_BUT_FAIL_I="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_I:$number" elif [[ "$Component" == $C_COMP ]]; then RESOLVED_STATE_IN_BZILLA_BUT_FAIL_C="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_C:$number" elif [[ "$Component" == $M_COMP ]]; then RESOLVED_STATE_IN_BZILLA_BUT_FAIL_M="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_M:$number" elif [[ "$Component" == $U_COMP ]]; then RESOLVED_STATE_IN_BZILLA_BUT_FAIL_U="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_U:$number" elif [[ "$Component" == $S_COMP ]]; then RESOLVED_STATE_IN_BZILLA_BUT_FAIL_S="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_S:$number" else RESOLVED_STATE_IN_BZILLA_BUT_FAIL_UNDEF="$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_UNDEF:$number" fi rstateinbzillafail=$[ $rstateinbzillafail + 1 ] fi else c32n_GL="$s0" c64n_GL="$s1" c32s_GL="$s2" c64s_GL="$s3" l32n_GL="$s4" l64n_GL="$s5" l32s_GL="$s6" l64s_GL="$s7" generate_status "$number" status=$? if [ "x$number" != x ]; then SUMMARY[$number]="$status" fi fi done IFS=$OLD_IFS } init_summary_table() { # Elements of arrays: # 0 - rejected # 1 - undef_fixed # 2 - pass # 3 - skipped # 4 - failed # 5 - blocked # 6 - undef_not_fixed InternalErrCount=0 # Interpreter StINT[0]=0 StINT[1]=0 StINT[2]=0 StINT[3]=0 StINT[4]=0 StINT[5]=0 StINT[6]=0 StINT[7]=0 # iASL StASL[0]=0 StASL[1]=0 StASL[2]=0 StASL[3]=0 StASL[4]=0 StASL[5]=0 StASL[6]=0 StASL[7]=0 # Simulation StSIM[0]=0 StSIM[1]=0 StSIM[2]=0 StSIM[3]=0 StSIM[4]=0 StSIM[5]=0 StSIM[6]=0 StSIM[7]=0 # Utilities StUTIL[0]=0 StUTIL[1]=0 StUTIL[2]=0 StUTIL[3]=0 StUTIL[4]=0 StUTIL[5]=0 StUTIL[6]=0 StUTIL[7]=0 # Specs StSPEC[0]=0 StSPEC[1]=0 StSPEC[2]=0 StSPEC[3]=0 StSPEC[4]=0 StSPEC[5]=0 StSPEC[6]=0 StSPEC[7]=0 # LBarr LBarr[0]=0 LBarr[1]=0 LBarr[2]=0 LBarr[3]=0 LBarr[4]=0 LBarr[5]=0 LBarr[6]=0 LBarr[7]=0 LBarr[8]=0 LBarr[9]=0 LBarr[10]=0 LBarr[11]=0 LBarr[12]=0 # KBarr KBarr[0]=0 KBarr[1]=0 KBarr[2]=0 KBarr[3]=0 KBarr[4]=0 KBarr[5]=0 KBarr[6]=0 KBarr[7]=0 KBarr[8]=0 KBarr[9]=0 KBarr[10]=0 KBarr[11]=0 KBarr[12]=0 } increment_summary_table() { if [ "$1" == $I_COMP ]; then StINT[$2]=$[ ${StINT[$2]} + 1 ] elif [ "$1" == $C_COMP ]; then StASL[$2]=$[ ${StASL[$2]} + 1 ] elif [ "$1" == $S_COMP ]; then StSPEC[$2]=$[ ${StSPEC[$2]} + 1 ] elif [ "$1" == $M_COMP ]; then StSIM[$2]=$[ ${StSIM[$2]} + 1 ] elif [ "$1" == $U_COMP ]; then StUTIL[$2]=$[ ${StUTIL[$2]} + 1 ] fi } report_bug_summary() { y0=$[ ${StINT[0]} + ${StASL[0]} + ${StSIM[0]} + ${StUTIL[0]} + ${StSPEC[0]} ] y1=$[ ${StINT[1]} + ${StASL[1]} + ${StSIM[1]} + ${StUTIL[1]} + ${StSPEC[1]} ] y2=$[ ${StINT[2]} + ${StASL[2]} + ${StSIM[2]} + ${StUTIL[2]} + ${StSPEC[2]} ] y3=$[ ${StINT[3]} + ${StASL[3]} + ${StSIM[3]} + ${StUTIL[3]} + ${StSPEC[3]} ] x=" " echo "Table 2 (Summary of bugs)" echo "" echo " | Interpreter iASL Simulation Utilities Specs | TOTAL |" echo "=============================|=========================================================|===========|" echo "F |* & REJECTED | ${StINT[0]}$x${StASL[0]}$x${StSIM[0]}$x${StUTIL[0]}$x${StSPEC[0]} | $y0" echo " I |UNDEFINED & FIXED | ${StINT[1]}$x${StASL[1]}$x${StSIM[1]}$x${StUTIL[1]}$x${StSPEC[1]} | $y1" echo " X |PASS | ${StINT[2]}$x${StASL[2]}$x${StSIM[2]}$x${StUTIL[2]}$x${StSPEC[2]} | $y2" echo " ED |SKIPPED | ${StINT[3]}$x${StASL[3]}$x${StSIM[3]}$x${StUTIL[3]}$x${StSPEC[3]} | $y3" echo "-----------------------------|---------------------------------------------------------|" y4=$[ ${StINT[4]} + ${StASL[4]} + ${StSIM[4]} + ${StUTIL[4]} + ${StSPEC[4]} ] y5=$[ ${StINT[5]} + ${StASL[5]} + ${StSIM[5]} + ${StUTIL[5]} + ${StSPEC[5]} ] y6=$[ ${StINT[6]} + ${StASL[6]} + ${StSIM[6]} + ${StUTIL[6]} + ${StSPEC[6]} ] # y7=$[ ${StINT[7]} + ${StASL[7]} + ${StSIM[7]} + ${StUTIL[7]} + ${StSPEC[7]} ] x00=$[ ${StINT[0]} + ${StINT[1]} + ${StINT[2]} + ${StINT[3]} ] x01=$[ ${StASL[0]} + ${StASL[1]} + ${StASL[2]} + ${StASL[3]} ] x02=$[ ${StSIM[0]} + ${StSIM[1]} + ${StSIM[2]} + ${StSIM[3]} ] x03=$[ ${StUTIL[0]} + ${StUTIL[1]} + ${StUTIL[2]} + ${StUTIL[3]} ] x04=$[ ${StSPEC[0]} + ${StSPEC[1]} + ${StSPEC[2]} + ${StSPEC[3]} ] x05=$[ $x00 + $x01 + $x02 + $x03 + $x04 ] echo " Total (fixed) | $x00$x$x01$x$x02$x$x03$x$x04 | $x05" echo "-----------------------------|---------------------------------------------------------|" echo "TO |FAIL | ${StINT[4]}$x${StASL[4]}$x${StSIM[4]}$x${StUTIL[4]}$x${StSPEC[4]} | $y4" echo " BE |BLOCKED | ${StINT[5]}$x${StASL[5]}$x${StSIM[5]}$x${StUTIL[5]}$x${StSPEC[5]} | $y5" echo " FIXED|UNDEFINED & !FIXED | ${StINT[6]}$x${StASL[6]}$x${StSIM[6]}$x${StUTIL[6]}$x${StSPEC[6]} | $y6" # echo " | Other (must be 0) | ${StINT[7]}$x${StASL[7]}$x${StSIM[7]}$x${StUTIL[7]}$x${StSPEC[7]} | $y7" echo "-----------------------------|---------------------------------------------------------|" x10=$[ ${StINT[4]} + ${StINT[5]} + ${StINT[6]} ] x11=$[ ${StASL[4]} + ${StASL[5]} + ${StASL[6]} ] x12=$[ ${StSIM[4]} + ${StSIM[5]} + ${StSIM[6]} ] x13=$[ ${StUTIL[4]} + ${StUTIL[5]} + ${StUTIL[6]} ] x14=$[ ${StSPEC[4]} + ${StSPEC[5]} + ${StSPEC[6]} ] x15=$[ $x10 + $x11 + $x12 + $x13 + $x14 ] echo " Total (NOT fixed) | $x10$x$x11$x$x12$x$x13$x$x14 | $x15" x20=$[ $x00 + $x10 ] x21=$[ $x01 + $x11 ] x22=$[ $x02 + $x12 ] x23=$[ $x03 + $x13 ] x24=$[ $x04 + $x14 ] x25=$[ $x20 + $x21 + $x22 + $x23 + $x24 ] echo "-----------------------------|---------------------------------------------------------|" echo " TOTAL ($MAXBDEMO) | $x20$x$x21$x$x22$x$x23$x$x24 | $x25" echo "===================================================================================================|" if [ "$x25" != "$MAXBDEMO" ]; then echo "ERROR 0: report_bug_summary, incorrect TOTAL, expected <$MAXBDEMO> received <$x25>" InternalErrCount=$[ $InternalErrCount + 1 ] fi } report_internal_bugs_number() { echo "Number of data inconsistency internal errors: InternalErrCount = $InternalErrCount (program to be updated)" } status_calculation_comment() { echo "Calculate status of bug according to the results of bdemo-tests run on two systems" echo "for all modes (norm-32,norm-64,slack-32,slack-64):" echo "" echo " UNDEFINED & FIXED == PASS" echo "" echo " UNDEFINED & {FAIL|BLOCKED| |PASS|SKIPPED} == UNDEFINED == FAIL" echo " REJECTED & {FAIL|BLOCKED|UNDEFINED|PASS|SKIPPED} == REJECTED == PASS" echo " FAIL & { BLOCKED|UNDEFINED|PASS|SKIPPED} == FAIL == FAIL" echo " BLOCKED & { UNDEFINED|PASS|SKIPPED} == BLOCKED == FAIL" echo " PASS & { SKIPPED} == PASS == PASS" } status_entries_comment() { echo "Bug status entries:" echo "" echo " REJECTED : bug is rejected - no matter what are the results of bdemo-test runs" echo " UNDEFINED & FIXED : no runtime bdemo-test for this bug (impossible), status FIXED was set up manually" echo " FAIL : some of runs of the relevant bdemo-test on either system in different modes failed" echo " BLOCKED : no failures for the bdemo-test but it was not run in some of modes (see FAIL) (blocked temporary for some reason)" echo " PASS : the bdemo-test doesn't failed or blocked and some runs resulted in PASS" echo " SKIPPED : no FAIL/BLOCKED/PASS for this bdemo-test and some run was SKIPPED (no conditions to run the test)" echo " UNDEFINED : no result of bdemo-test for this bug (either temporary or impossible to generate runtime test conditions at all)" } # arg1 - the first multi-result directory # arg2 - the second multi-result directory init_bdemo_sum() { if [ -d "$DIR0" ]; then BDEMO_SUM="$DIR0/__STATUS_OF_ALL_BDEMO_TESTS" elif [ -d "$DIR1" ]; then BDEMO_SUM="$DIR1/__STATUS_OF_ALL_BDEMO_TESTS" else do_exit 1 "No one directory specified by both parameters" fi } report_head_of_table() { echo "Errors IID COMP LBZID ST/RES KBZID ST/RES TEST-RESULT STATE-MANUALLY PR SUMMARY" echo "=====================================================================================================|" } report_end_of_table() { echo "=====================================================================================================|" } report_mid_line() { echo " |---|-------|------|---------|------|---------|------------|------------------|-----|" } do_report_summary() { if [ "x$print_complete_list_per_comp" != x ]; then report_subset_of_summary "$SUMMARY_S" report_subset_of_summary "$SUMMARY_C" report_subset_of_summary "$SUMMARY_M" report_subset_of_summary "$SUMMARY_U" report_subset_of_summary "$SUMMARY_UNDEF" report_subset_of_summary "$SUMMARY_I" else index=0 while [ 1 ] do if [[ $index -ge $MAXBDEMO ]]; then break fi echo "${SUMMARY[$index]}" index=$[ $index + 1 ] done fi report_end_of_table } # arg1 - numbers of bugs - ":n0:n1:...:nX" report_subset_of_summary() { if [ "x$1" != x ]; then echo "$1" | awk -F: '{ for (i=2; i<=NF; i++) { print $i}}' |\ while [ 1 ] do read number if [ $? -ne 0 ] ; then break fi echo "${SUMMARY[$number]}" done fi } report_rejected_in_bzilla() { x=$[ $rjnotinbzilla + $rjinbzilla ] echo "Table 3 (Rejected, $rjnotinbzilla + $rjinbzilla == $x)" echo "" report_head_of_table report_subset_of_summary "$REJECTED_NOT_IN_BZILLA_S" report_subset_of_summary "$REJECTED_NOT_IN_BZILLA_C" report_subset_of_summary "$REJECTED_NOT_IN_BZILLA_M" report_subset_of_summary "$REJECTED_NOT_IN_BZILLA_U" report_subset_of_summary "$REJECTED_NOT_IN_BZILLA_UNDEF" report_subset_of_summary "$REJECTED_NOT_IN_BZILLA_I" if [ $rjnotinbzilla -gt 0 ]; then report_mid_line fi report_subset_of_summary "$REJECTED_IN_BZILLA" report_end_of_table } report_resolved_integrated() { echo "Table 4 (PASS-state and INTEGRATED (of BZ), $rintinbzcnt)" echo "" report_head_of_table report_subset_of_summary "$RESOLVED_INTEGRATED_IN_BZ_S" report_subset_of_summary "$RESOLVED_INTEGRATED_IN_BZ_C" report_subset_of_summary "$RESOLVED_INTEGRATED_IN_BZ_M" report_subset_of_summary "$RESOLVED_INTEGRATED_IN_BZ_U" report_subset_of_summary "$RESOLVED_INTEGRATED_IN_BZ_UNDEF" report_subset_of_summary "$RESOLVED_INTEGRATED_IN_BZ_I" report_end_of_table } report_resolved_not_integrated() { echo "Table 5 (PASS-state but NOT INTEGRATED (of BZ), $rnotintcnt)" echo "" report_head_of_table report_subset_of_summary "$RESOLVED_NOT_INTEGRATED_IN_BZ_S" report_subset_of_summary "$RESOLVED_NOT_INTEGRATED_IN_BZ_C" report_subset_of_summary "$RESOLVED_NOT_INTEGRATED_IN_BZ_M" report_subset_of_summary "$RESOLVED_NOT_INTEGRATED_IN_BZ_U" report_subset_of_summary "$RESOLVED_NOT_INTEGRATED_IN_BZ_UNDEF" report_subset_of_summary "$RESOLVED_NOT_INTEGRATED_IN_BZ_I" report_end_of_table } report_not_resolved() { echo "Table 6 (FAIL-state, $notresolvedcnt)" echo "" report_head_of_table report_subset_of_summary "$NOT_RESOLVED_S" report_subset_of_summary "$NOT_RESOLVED_C" report_subset_of_summary "$NOT_RESOLVED_M" report_subset_of_summary "$NOT_RESOLVED_U" report_subset_of_summary "$NOT_RESOLVED_UNDEF" report_subset_of_summary "$NOT_RESOLVED_I" report_end_of_table } report_resolved_state_in_bzilla() { echo "Table 7 (RESOLVED-Bugzilla-State, $rstateinbzilla)" echo "" report_head_of_table report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_S" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_C" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_M" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_U" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_UNDEF" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_I" report_end_of_table } report_resolved_state_in_bzilla_but_fail() { echo "Table 8 (RESOLVED-Bugzilla-State BUT FAIL-state, $rstateinbzillafail)" echo "" report_head_of_table report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_S" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_C" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_M" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_U" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_UNDEF" report_subset_of_summary "$RESOLVED_STATE_IN_BZILLA_BUT_FAIL_I" report_end_of_table } report_bzilla_summary() { y=$[ ${LBarr[0]} + ${LBarr[1]} + ${LBarr[2]} + ${LBarr[3]}\ + ${LBarr[4]} + ${LBarr[5]} + ${LBarr[6]} + ${LBarr[7]}\ + ${LBarr[8]} + ${LBarr[9]} ] z=$[ ${KBarr[0]} + ${KBarr[1]} + ${KBarr[2]} + ${KBarr[3]}\ + ${KBarr[4]} + ${KBarr[5]} + ${KBarr[6]} + ${KBarr[7]}\ + ${KBarr[8]} + ${KBarr[9]} ] x=" " echo "Table 9 (Summary per-State-Result in BZ)" echo "" echo "State Result | LBZ KBZ" echo "=============|===================" echo "NEW | ${LBarr[0]}$x${KBarr[0]}" echo "ASSI | ${LBarr[1]}$x${KBarr[1]}" echo "NEED | ${LBarr[2]}$x${KBarr[2]}" echo "RESO CODE | ${LBarr[3]}$x${KBarr[3]}" echo "RESO PATC | ${LBarr[4]}$x${KBarr[4]}" echo "RESO FIXE | ${LBarr[5]}$x${KBarr[5]}" echo "RESO INVA | ${LBarr[6]}$x${KBarr[6]}" echo "REJE DOCU | ${LBarr[7]}$x${KBarr[7]}" echo "CLOS CODE | ${LBarr[8]}$x${KBarr[8]}" echo "Other | ${LBarr[9]}$x${KBarr[9]}" echo "-------------|-------------------" echo "Total | $y$x$z" echo "=============|===================" y=$[ ${LBarr[10]} + ${LBarr[11]} + ${LBarr[12]} ] z=$[ ${KBarr[10]} + ${KBarr[11]} + ${KBarr[12]} ] echo "" echo "" echo "" echo "Table 10 (Summary state of bugs (of BZ))" echo "" echo " State | LBZ KBZ" echo "=============|===================" echo "REJECTED | ${LBarr[10]}$x${KBarr[10]}" echo "PASS-state | ${LBarr[11]}$x${KBarr[11]}" echo "FAIL-state | ${LBarr[12]}$x${KBarr[12]}" echo "-------------|-------------------" echo "Total | $y$x$z" echo "=================================" } report_errors_encountered() { echo "A list of encountered errors:" echo "" if [ -f "$ERROR_OPCODES" ]; then z=`echo "$AccumulateErrors" | transform_to_single_chars` report_lines_per_char "$ERROR_OPCODES" "$z" else echo "Error: ERROR_OPCODES is not file: <$ERROR_OPCODES>" fi } # ############################## MAIN ############################### date DIR0="$1" DIR1="$2" ALLBUGS="$3" KBSUM="$4" LBSUM="$5" BUG_STATE_DIR="$6" BDEMO_SUM= KBSUM_PARSED= LBSUM_PARSED= c32n_GL= c64n_GL= c32s_GL= c64s_GL= l32n_GL= l64n_GL= l32s_GL= l64s_GL= UTILSTATUS=0 SUMMARY= # NOT_RESOLVED= # RESOLVED_INTEGRATED_IN_BZ= # RESOLVED_NOT_INTEGRATED_IN_BZ= # RESOLVED_STATE_IN_BZILLA= # REJECTED_IN_BZILLA= # REJECTED_NOT_IN_BZILLA= LBarr= KBarr= ERROR_OPCODES="$BUG_STATE_DIR/ERROR_OPCODES" # Opcodes of errors # REJECTED_ERR=1 # COMP_ERR=9 # Arrays for summary information for Interpreter, iASL, Simulation, Utilities, Specs. StINT= StASL= StSIM= StUTIL= StSPEC= # Prepare the summary table of bdemo summary files of two multi-results: echo "Preparing the summary table of bdemo summary files of two multi-results:" echo " the first : $DIR0" echo " the second : $DIR1" echo " ALLBUGS : $ALLBUGS" echo " kernel bugzilla Bug List file : $KBSUM" echo " local bugzilla Bug List file : $LBSUM" # Initialization INIT_MAX_BDEMO system0= system1= if [ -d "$DIR0" ]; then COMMONLOGFILE="$DIR0/Summary" if [ ! -f "$COMMONLOGFILE" ]; then do_exit 1 "COMMONLOGFILE is not file: <$COMMONLOGFILE>" else system0=`get_name_of_system "$COMMONLOGFILE"` fi fi if [ -d "$DIR1" ]; then COMMONLOGFILE="$DIR1/Summary" if [ ! -f "$COMMONLOGFILE" ]; then do_exit 1 "COMMONLOGFILE is not file: <$COMMONLOGFILE>" else system1=`get_name_of_system "$COMMONLOGFILE"` fi fi if [ ! -f "$KBSUM" ]; then do_exit 1 "KBSUM is not file: <$KBSUM>" fi if [ ! -f "$LBSUM" ]; then do_exit 1 "LBSUM is not file: <$LBSUM>" fi if [ -d "$DIR0" ]; then KBSUM_PARSED="$DIR0/__KERNEL_ASLTS_BUG_LIST" LBSUM_PARSED="$DIR0/__LOCAL_ASLTS_BUG_LIST" elif [ -d "$DIR1" ]; then KBSUM_PARSED="$DIR1/__KERNEL_ASLTS_BUG_LIST" LBSUM_PARSED="$DIR1/__LOCAL_ASLTS_BUG_LIST" fi if [ "x$KBSUM_PARSED" == x -o "x$LBSUM_PARSED" == x ]; then do_exit 1 "Failed to initialize KBSUM_PARSED & LBSUM_PARSED" fi if [ ! -f "$ALLBUGS" ]; then do_exit 1 "ALLBUGS is not file: <$ALLBUGS>" fi init_bdemo_sum # Parse the Bug List files (kernel and local bugzilla) echo "Parse the Bug List files (kernel and local bugzilla)" echo " kernel bugzilla Bug List file : $KBSUM" echo " local bugzilla Bug List file : $LBSUM" parsebuglist "$KBSUM" > "$KBSUM_PARSED" if [ $? -ne 0 ]; then do_exit 1 "Failed to parse KBSUM: <$KBSUM>" fi parsebuglist "$LBSUM" > "$LBSUM_PARSED" if [ $? -ne 0 ]; then do_exit 1 "Failed to parse LBSUM: <$LBSUM>" fi # Concatenate the summary files of bdemos of two multi-results bdemosconc "$DIR0" "$DIR1" if [ ! -f "$BDEMO_SUM" ]; then do_exit 1 "BDEMO_SUM is not file: <$BDEMO_SUM>" fi echo "" echo "" echo "The tables below represent the current state of all bugs encountered by ASLTS project." echo "" echo "The underlying systems the aslts tests were run:" echo "" echo " the first <$system0>" echo " the second <$system1>" echo "" echo "The aslts tests multi-results analyzed:" echo "" echo " the first multi-result directory : <$DIR0>" echo " the second multi-result directory : <$DIR1>" echo "" report_state_of_bugs if [ 0 -eq 1 ]; then echo "" status_calculation_comment echo "" status_entries_comment fi echo "" date exit $UTILSTATUS acpica-unix-20250404/tests/aslts/bin/bugstate/ERROR_OPCODES0000700000175000017500000000434214773714146022403 0ustar ivanhuivanhu# Automatically processed list of opcodes of errors reported # by bdemostabs utility in the 'Errors' field of Table 1. *: bug requires working on it (FAIL-state bug) a: Component field of description for "Core/Int" of LBZ is incorrect (expected I) b: Component field of description for "iASL Com" of LBZ is incorrect (expected C) c: Component field of description for "ACPI Spe" of LBZ is incorrect (expected S) d: Component field of description for "Utilitie" of LBZ is incorrect (expected U) e: invalid Component field in LBZ f: Component field of description for "ACPI" of KBZ is incorrect (expected I) g: Component field of description is incorrect (expected {I|C|M|U|S}) h: STATE-MANUALLY area contains 2 or more elements but it is not "FIXED INTEGRATED" i: STATE-MANUALLY area contains more than 2 elements j: STATE-MANUALLY area contains unexpected lexeme k: TEST-RESULT area contains unexpected lexeme l: TEST-RESULT area contains unexpected lexeme m: STATE-MANUALLY area contains unexpected lexeme n: non-zero priority for PASS-state bug o: non-zero priority for PASS-state bug p: zero priority for FAIL-state bug r: FAIL-state bug is not filed into bugzilla s: the bugzilla query file doesn't contain the entry corresponding to the bug t: failed to identify entry of summary table u: unnecessary INTEGRATED is set up for non-bugzilla bug v: invalid Component field in KBZ (expected "ACPI") w: ALLBUGS doesn't contain the entry present in query (not implemented yet, do it for both Local and Kernel BZ query files) A: inconsistence between LBZ-rejection and manual-rejection B: bug in LBZ is RESOLVED/CLOSED but is of FAIL-state C: bug in BZ is not CLOSED but is of PASS-state D: the Result field of RESOLVED/CLOSED bug in LBZ is not FIXED E: the Result field in LBZ is {FIXE|CODE|PATC} for FAIL-state bug F: inconsistence between KBZ-rejection and manual-rejection G: bug in KBZ is RESOLVED/CLOSED but is of FAIL-state H: bug in KBZ is RESOLVED/CLOSED but the Result field is not {CODE|PATC} I: bug is not INTEGRATED but is of PASS-state J: the Result field in KBZ is {FIXE|CODE|PATC} for FAIL-state bug K: bug is marked as INTEGRATED but is of FAIL-state L: bug in BZ is CLOSED while it is not yet INTEGRATED R: bug in BZ is not RESOLVED but is of PASS-state acpica-unix-20250404/tests/aslts/bin/asltsrun0000700000175000017500000007052314773714146020377 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # Run specified set of test cases in all enabled modes # # DESCRIPTION: # # 1. A set of test cases to be run is manually # specified in INIT_SET_OF_TEST_CASES() routine # # 2. Modes of runs to be executed are manually # specified by non-zero variables: # ENABLEOPT32 - 32-bit optimized code # ENABLEOPT64 - 64-bit optimized code # ENABLENORM32 - 32-bit unoptimized code # ENABLENORM64 - 64-bit unoptimized code # # 3. You can exclude log out to RESULTS directory # by setting to zero the variable: # ENABLELOG # # External definitions required: # # acpiexec - AcpiExec utility # ASLTSDIR - the pathname of root directory of aslts test suite # # Concepts: # # bitmap of mode - # 0-th bit - [0 - 32-bit, 1 - 64-bit] # 1-th bit - [0 - nopt, 1 - opt] # # See comment of Do utility for more information. # Includes . common . settings . diffproc # Store message to the common multi-result log file # arg1 - message multi_log() { if [ -f "$COMMONLOGFILE" ]; then echo "$1" >> "$COMMONLOGFILE" else echo "$1" fi } # Convert {h:m:s:cs} string to centisecond time units # [arg1-arg4] - centisecond time string {h:m:s:cs} cent_str_to_cent_units() { local rval # Note: '1' before arguments (hours - exception took place) # added to mask first '0' in cases '08' and '09' eval "rval=$[ (((1$1 - 100) * 60 + (1$2 - 100)) * 60 + (1$3 - 100)) * 100 + (1$4 - 100) ]" echo "$rval" } export -f cent_str_to_cent_units # Convert {h:m:s} string to centisecond time units # arg1 - time string {h:m:s} sec_str_to_cent_units() { local rval hmscS=$1:00 _ifs="$IFS" IFS=: rval=`cent_str_to_cent_units $hmscS` IFS="$_ifs" echo "$rval" } export -f sec_str_to_cent_units # Return the length of time period in centisecond time units # Note: assumed the total running time is less than 24 hours # arg1 - start time in centisecond time units # arg2 - finish time in centisecond time units get_cent_units_diff() { local rval local hmscU=$2 # Check crossing 24-hour boundary if [ $hmscU -lt $1 ]; then hmscU=$[ $hmscU + 8640000 ] fi eval "rval=$[ $hmscU - $1 ]" echo "$rval" } export -f get_cent_units_diff # Calculate and return the length of time period as string {[h:]m:s.c} # arg1 - start time string {h:m:s} # arg2 - finish time string {h:m:s} get_cent_str_diff() { local rval RAW_INITIME=`sec_str_to_cent_units $1` RAW_ENDTIME=`sec_str_to_cent_units $2` RAW_RUNTIME=`get_cent_units_diff $RAW_INITIME $RAW_ENDTIME` rval=`cent_units_to_cent_str $RAW_RUNTIME` echo "$rval" } export -f get_cent_str_diff # Get version of AcpiExec get_acpiexec_version() { local x version x=`"$acpiexec" -bex,MAIN | grep "Utility version"` if [ x"$x" == x ]; then version=00000000 else version=`echo "$x" | awk -F" " '{print $5}'` fi echo $version } # Get the patname of AML code of test case # arg1 - the name of test case # arg2 - bitmap of mode get_aml_code_path() { local BITMODE=`get_mode_string $2 2` local OPTMODE=`get_mode_string $2 3` path="$ASLTSDIR/tmp/aml/$EXECVERSION/$OPTMODE/$BITMODE/$1.aml" echo "$path" } export -f get_aml_code_path # Run particular test case # arg1 - the name of test case # arg2 - bitmap of mode run_test_case() { local amlcodepath tcase=$1 modepart modename BITMODE local options method commandline modepart=`get_mode_string $2 0` modename=`get_mode_string $2 1` BITMODE=`get_mode_string $2 2` OPTMODE=`get_mode_string $2 3` TEST_TITLE="$tcase $modename" amlcodepath=`get_aml_code_path $1 $2` if [ ! -f "$amlcodepath" ]; then echo "Test doesn't exist: $amlcodepath" AML_DONT_EXIST=$[ $AML_DONT_EXIST + 1 ] return fi # Start time FMT_INITIME=$(date +%T) # Initial message echo "ASLTS: START, $TEST_TITLE, $FMT_INITIME" # Simulate test by acpiexec amlcodepath=`get_aml_code_path $tcase $2` if [ ! -f "$amlcodepath" ]; then echo "Test doesn't exist: $amlcodepath" AML_DONT_EXIST=$[ $AML_DONT_EXIST + 1 ] TEST_RET=1 else options="-ef -el -to 60" method=MN00 if [ "$DO_MEMSTAT" == "yes" ]; then options="$options -ef" fi if [[ "$tcase" == mt_* ]]; then commandline="thr,6,1" else commandline=ex fi echo "" echo "acpiexec options to reproduce:" echo " $options -b\"$commandline,$method\"" echo "ASLTS aml tables to reproduce:" echo " $amlcodepath" echo "" "$acpiexec" $options -b"$commandline,$method" "$amlcodepath" TEST_RET=$? fi # Finish time FMT_ENDTIME=$(date +%T) # Calculate the run time FMT_RUNTIME=`get_cent_str_diff $FMT_INITIME $FMT_ENDTIME` # Report the status message if [ $TEST_RET != 0 ]; then echo "ASLTS: FINISH, $TEST_TITLE, FAIL, $FMT_ENDTIME ($FMT_RUNTIME)" UTILSTATUS=1 else echo "ASLTS: FINISH, $TEST_TITLE, SUCCESS, $FMT_ENDTIME ($FMT_RUNTIME)" fi return $TEST_RET } export -f run_test_case # Run a set of test cases (specified by INIT_SET_OF_TEST_CASES) # in one particular mode. # arg1 - bitmap of mode # arg2 - multi-result directory # arg3 - a list of test cases to be run run_set_of_test_cases() { local x y z q status=0 total modepart modename tcase amlcodepath test_case_arr=($3) res_dir=$2 bit_mode=$1 procs=`nproc --all` modepart=`get_mode_string $1 0` modename=`get_mode_string $1 1` x=$(date +%F) y=$(date +%T) multi_log "$modename started $x $y" total="$x $y" # Explanation of command below: # For each testcase that we will run, we are going to parallelize the # execution with the number of available processors. printf '%s\n' "${test_case_arr[@]}" |\ xargs -n 1 -P $procs -I {} bash -c 'run_test_case $1 $2 > $3/$4/$1'\ _ {} $bit_mode $res_dir $modepart z=$(date +%T) q=`get_cent_str_diff $y $z` x="$(date +%F)" multi_log "$modename finished $x $z, ($q)" total="$modename, $total, $x $z ($q)" MODES_SUMMARIES[$1]="$total" MODES_TIMES[$1]="$q" } # Get the date-time-like name (used # as a multi-result directory name) # arg1 - time string {h:m:s} # arg2 - date string {y-m-d} get_date_time_like_name() { local x y rval x=`echo $1 | sed 's/-//g'` y=`echo $2 | sed 's/://g'` rval="$x.$y.$EXECVERSION" echo "$rval" } # Check-make multi-result directory # arg1 - multi-result directory name make_multi_result_dir() { local srcdir=`pwd` path cd "$ASLTSDIR" make_dir "./tmp" tmp tmp cd "./tmp" make_dir "./RESULTS" RESULTS RESULTS cd "./RESULTS" make_dir "./$1" "$1" "RESULTS/$1" cd "./$1" if [ $ENABLENORM32 != 0 -o $ENABLENORM64 != 0 ]; then path="RESULTS/$1/nopt" make_dir "./nopt" nopt "$path" cd "./nopt" if [ $ENABLENORM32 != 0 ]; then make_dir "./32" 32 "$path/32" fi if [ $ENABLENORM64 != 0 ]; then make_dir "./64" 64 "$path/64" fi cd ".." fi if [ $ENABLEOPT32 != 0 -o $ENABLEOPT64 != 0 ]; then path="RESULTS/$1/opt" make_dir "./opt" opt "$path" cd "./opt" if [ $ENABLEOPT32 != 0 ]; then make_dir "./32" 32 "$path/32" fi if [ $ENABLEOPT64 != 0 ]; then make_dir "./64" 64 "$path/64" fi fi cd "$srcdir" } # Report to multi-log all the specified modes # the tests to be run in. report_specified_modes() { local flag=0 x=" " multi_log "Modes specified for running:" multi_log "" if [ $ENABLENORM32 != 0 ]; then multi_log "${x}`get_mode_string $NORM32 1`" flag=1 fi if [ $ENABLENORM64 != 0 ]; then multi_log "${x}`get_mode_string $NORM64 1`" flag=1 fi if [ $ENABLEOPT32 != 0 ]; then multi_log "${x}`get_mode_string $OPT32 1`" flag=1 fi if [ $ENABLEOPT64 != 0 ]; then multi_log "${x}`get_mode_string $OPT64 1`" flag=1 fi if [ $flag == 0 ]; then multi_log "${x}No any run mode" fi } # Report all status lines encountered in the test case # run log file and count and report the summary status # line of the test case. # arg1 - resulting log file of particular test case run # arg2 - the name of test case # arg3 - file where to store summary information do_summary_of_test_case() { local status cnt=0 pass=0 fail=0 skip=0 start=0 finish=0 total=0 local outstand0=0 blck=0 outstand1=0 local memcnt=0 memtotal=0 local max0=0 max1=0 max2=0 max3=0 max4=0 max5=0 local out0=0 out1=0 out2=0 out3=0 out4=0 out5=0 local LargeRefCount=0 local x=0 exceptionsnum=0 local trimmedLine OLD_IFS=$IFS IFS=" " cat "$1" |\ while [ 1 ] do read line if [ $? -ne 0 ] ; then echo "|$2|$cnt|$pass|$fail|$skip|$start|$finish|$total|$outstand0|$blck|$memtotal|$max0|$max1|$max2|$max3|$max4|$max5|$out0|$out1|$out2|$out3|$out4|$out5|$outstand1|$LargeRefCount|$exceptionsnum|" >> "$3" break fi if [[ "$line" == *STST* ]]; then echo "$line" cnt=$[ $cnt + 1 ] trimmedLine=`echo "$line" | awk -F"STST:" '{print $2}'` status=`echo "$trimmedLine" | awk -F: '{print $4}'` if [ "$status" == PASS ]; then pass=$[ $pass + 1 ] elif [ "$status" == FAIL ]; then fail=$[ $fail + 1 ] elif [ "$status" == BLOCKED ]; then blck=$[ $blck + 1 ] elif [ "$status" == SKIPPED ]; then skip=$[ $skip + 1 ] fi elif [[ "$line" == "ASLTS:"* ]]; then if [[ "$line" == *START* ]]; then start=`echo "$line" | awk -F" " '{print $7}'` elif [[ "$line" == *FINISH* ]]; then finish=`echo "$line" | awk -F" " '{print $8}'` total=`echo "$line" | awk -F" " '{print $9}'` fi elif [[ "$line" == *"Mem:"* ]]; then if [ $memcnt == 0 ]; then memtotal=`echo "$line" | awk -F" " '{print $13}'` memtotal=$[ 0 + 0x$memtotal ] max0=`echo "$line" | awk -F" " '{print $10}'` out0=`echo "$line" | awk -F" " '{print $12}'` max0=$[ 0 + 0x$max0 ] out0=$[ 0 + 0x$out0 ] elif [ $memcnt == 1 ]; then max1=`echo "$line" | awk -F" " '{print $9}'` out1=`echo "$line" | awk -F" " '{print $11}'` max1=$[ 0 + 0x$max1 ] out1=$[ 0 + 0x$out1 ] elif [ $memcnt == 2 ]; then max2=`echo "$line" | awk -F" " '{print $9}'` out2=`echo "$line" | awk -F" " '{print $11}'` max2=$[ 0 + 0x$max2 ] out2=$[ 0 + 0x$out2 ] elif [ $memcnt == 3 ]; then max3=`echo "$line" | awk -F" " '{print $9}'` out3=`echo "$line" | awk -F" " '{print $11}'` max3=$[ 0 + 0x$max3 ] out3=$[ 0 + 0x$out3 ] elif [ $memcnt == 4 ]; then max4=`echo "$line" | awk -F" " '{print $9}'` out4=`echo "$line" | awk -F" " '{print $11}'` max4=$[ 0 + 0x$max4 ] out4=$[ 0 + 0x$out4 ] elif [ $memcnt == 5 ]; then max5=`echo "$line" | awk -F" " '{print $9}'` out5=`echo "$line" | awk -F" " '{print $11}'` max5=$[ 0 + 0x$max5 ] out5=$[ 0 + 0x$out5 ] fi memcnt=$[ $memcnt + 1 ] elif [[ "$line" == *"Outstanding cache allocations"* ]]; then trimmedLine=`echo "$line" | awk -F" Outstanding cache allocations" '{printf $1}'` outstand1=`echo "$trimmedLine" | awk -F" " '{print $3}'` elif [[ "$line" == *"The total number of exceptions handled"* ]]; then exceptionsnum=`echo "$line" | sed 's/^\[.*\]//g' | awk -F" " '{print $7}'` x=`echo $exceptionsnum | sed 's/"//g'` exceptionsnum=$[ 0 + $x ] elif [[ "$s3" == Large ]]; then if [[ "$line" == "Reference Count"* ]]; then LargeRefCount=$[ $LargeRefCount + 1 ] fi fi done IFS=$OLD_IFS } # Report the status lines and summary information # for one particular mode of run for each test case # specified for running which have the test case run # log file located in the given directory. # arg1 - directory containing the test case run log files # corresponding to one particular mode of run # arg2 - a list of test cases the logs of which to be processed # arg3 - file where to store summary information do_summary_of_mode() { local path for filename in $2 do path="$1/$filename" if [ -f "$path" ]; then do_summary_of_test_case "$path" "$filename" "$3" fi done } # Prepare all summary information per each test case # specified by INIT_SET_OF_TEST_CASES for all the specified # modes of runs. # arg1 - multi-result directory pathname # arg2 - a list of test cases the logs of which to be processed do_all_summary() { local path summ ls "$1" |\ while [ 1 ] do read filename if [ $? -ne 0 ] ; then break fi if [ "$filename" == nopt -o "$filename" == opt ]; then path="$1/$filename" if [ -d "$path/32" ]; then summ="$path/32/__STATUS_OF_TEST_CASES" echo -n "" > "$summ" do_summary_of_mode "$path/32" "$2" "$summ" > "$path/32/__STATUS_OF_TESTS" fi if [ -d "$path/64" ]; then summ="$path/64/__STATUS_OF_TEST_CASES" echo -n "" > "$summ" do_summary_of_mode "$path/64" "$2" "$summ" > "$path/64/__STATUS_OF_TESTS" fi fi done } # Report summary information corresponding # to the given mode of run. # arg1 - ':' separated total information # corresponding to the given mode of run # returned by parse_status_of_test_cases() # arg2 - summary information corresponding # to the given mode of run report_total_of_mode() { local x y num memtotal multi_log "TOTAL: ($2)" x=`echo "$1" | awk -F: '{print $4}'` multi_log " PASS : $x" x=`echo "$1" | awk -F: '{print $5}'` multi_log " FAIL : $x" x=`echo "$1" | awk -F: '{print $12}'` multi_log " BLOCKED : $x" x=`echo "$1" | awk -F: '{print $6}'` multi_log " SKIPPED : $x" x=`echo "$1" | awk -F: '{print $3}'` multi_log " Tests : $x" get_num_of_available_test_cases num=$? x=`echo "$1" | awk -F: '{print $2}'` multi_log " Test Cases : $x (of $num)" NUM_DISABLED_BRANCHES=`echo "$1" | awk -F: '{print $7}'` x=`echo "$1" | awk -F: '{print $8}'` y=`echo "$1" | awk -F: '{print $9}'` multi_log " Test Collections : $x (of $RUNTIME_COLLS_NUM), $y" x=`echo "$1" | awk -F: '{print $11}'` multi_log " Outstanding allocations after execution : $x" x=`echo "$1" | awk -F: '{print $14}'` multi_log " Outstanding allocations (ACPI Error) : $x" x=`echo "$1" | awk -F: '{print $15}'` multi_log " Large Reference Count (ACPI Error) : $x" memtotal=`echo "$1" | awk -F: '{print $13}'` multi_log " Memory consumption total : $memtotal Kb" } # Report the status of particular test case # and summarize the particular entries of the # test cases status lines. # arg1 - status line of one particular test case report_test_case_summary() { local x y z q l m n o p b u local max0=0 max1=0 max2=0 max3=0 max4=0 max5=0 local out0=0 out1=0 out2=0 out3=0 out4=0 out5=0 local memtotal=0 local outstand1=0 local LargeRefCount=0 x=`echo "$1" | awk -F"|" '{print $2}'` y=`echo "$1" | awk -F"|" '{print $7}'` z=`echo "$1" | awk -F"|" '{print $8}'` q=`echo "$1" | awk -F"|" '{print $9}'` l=`echo "$1" | awk -F"|" '{print $4}'` m=`echo "$1" | awk -F"|" '{print $5}'` n=`echo "$1" | awk -F"|" '{print $6}'` o=`echo "$1" | awk -F"|" '{print $3}'` p=`echo "$1" | awk -F"|" '{print $10}'` b=`echo "$1" | awk -F"|" '{print $11}'` if [ $x == "condbranches" ]; then multi_log "$x: (service-test not counted to TOTAL)" N_DISABLED_BRANCHES="$m" else multi_log "$x:" fi multi_log " ($y-$z $q)" multi_log " PASS : $l" multi_log " FAIL : $m" multi_log " BLOCKED : $b" multi_log " SKIPPED : $n" multi_log " total : $o" p=$[ 0 + $p ] outstand1=`echo "$1" | awk -F"|" '{print $25}'` multi_log " Outstanding allocations after execution : $p" multi_log " Outstanding allocations (ACPI Error) : $outstand1" LargeRefCount=`echo "$1" | awk -F"|" '{print $26}'` if [[ "$LargeRefCount" -gt 0 ]]; then multi_log " Large Reference Count (ACPI Error) : $LargeRefCount" fi multi_log " Memory statistics (per cache type):" memtotal=`echo "$1" | awk -F"|" '{print $12}'` multi_log " Total : $memtotal Kb" max0=`echo "$1" | awk -F"|" '{print $13}'` max1=`echo "$1" | awk -F"|" '{print $14}'` max2=`echo "$1" | awk -F"|" '{print $15}'` max3=`echo "$1" | awk -F"|" '{print $16}'` max4=`echo "$1" | awk -F"|" '{print $17}'` max5=`echo "$1" | awk -F"|" '{print $18}'` multi_log " Maximum occupied : $max0(Kb) $max1 $max2 $max3 $max4 $max5" out0=`echo "$1" | awk -F"|" '{print $19}'` out1=`echo "$1" | awk -F"|" '{print $20}'` out2=`echo "$1" | awk -F"|" '{print $21}'` out3=`echo "$1" | awk -F"|" '{print $22}'` out4=`echo "$1" | awk -F"|" '{print $23}'` out5=`echo "$1" | awk -F"|" '{print $24}'` multi_log " Outstandings : $out0 $out1 $out2 $out3 $out4 $out5" if [ $x != "condbranches" ]; then N_TEST_CASES=$[ $N_TEST_CASES + 1 ] N_PASS=$[ $N_PASS + $l ] N_FAIL=$[ $N_FAIL + $m ] N_SKIP=$[ $N_SKIP + $n ] N_BLCK=$[ $N_BLCK + $b ] N_TESTS=$[ $N_TESTS + $o ] N_OUTSTAND=$[ $N_OUTSTAND + $p ] N_OUTSTAND_1=$[ $N_OUTSTAND_1 + $outstand1 ] N_LARGE_REF_CNT=$[ $N_LARGE_REF_CNT + $LargeRefCount ] N_TOTAL=$[ $N_TOTAL + $memtotal ] fi mark_collection_flag "$x" } # Run reporting and summarizing the status lines # of test cases present in the given file. # arg1 - file containing the status lines of # all the test cases have been executed # in one particular mode. parse_status_of_test_cases() { local x cat "$1" |\ while [ 1 ] do read line if [ $? -ne 0 ] ; then x="`get_collections_total`" echo ":$N_TEST_CASES:$N_TESTS:$N_PASS:$N_FAIL:$N_SKIP:$N_DISABLED_BRANCHES:$x:$N_OUTSTAND:$N_BLCK:$N_TOTAL:$N_OUTSTAND_1:$N_LARGE_REF_CNT" break fi if [ -n "$line" ] ; then report_test_case_summary "$line" fi done } # Generalization of summary information # prepared for test cases runs for the given # mode of run - prepare the convenient view # survey in the common multi-result log. # arg1 - multi-result directory pathname # arg2 - bitmap of mode # arg3 - summary information corresponding # to the given mode of run report_mode_summary() { local x memtotal outstand0 outstand1 LargeRefCount path modepart modename modepart=`get_mode_string $2 0` modename=`get_mode_string $2 1` path="$1/$modepart/__STATUS_OF_TEST_CASES" if [ -f "$path" ]; then multi_log "$modename:" multi_log "" # Reset test collections involved flags reset_collections_flags x=`parse_status_of_test_cases "$path"` report_total_of_mode "$x" "$3" outstand0=`echo "$x" | awk -F: '{print $11}'` outstand1=`echo "$x" | awk -F: '{print $14}'` LargeRefCount=`echo "$x" | awk -F: '{print $15}'` memtotal=`echo "$x" | awk -F: '{print $13}'` if [[ "$LargeRefCount" -gt 0 ]]; then HAVE_LARGE_REF_CNT=yes fi echo "|TOTAL|$outstand0|$memtotal|${MODES_TIMES[$2]}|$outstand1|$LargeRefCount|" >> "$path" multi_log "" else multi_log "$modename: summary information is not present" multi_log "" fi } # Report the test cases specified (by INIT_SET_OF_TEST_CASES) # for running. # arg1 - a list of test cases to be run report_enabled_test_cases() { multi_log "Test cases specified for running:" multi_log "" for name in $1 do multi_log " $name" done } # Report comparing results of different mode runs # of the same multi-run. # arg1 - result of two modes comparing # arg2 - first bitmap of mode # arg3 - second bitmap of mode report_inner_modes_cmp() { local rval=0 local modename0 modename1 modename0=`get_mode_string $2 1` modename1=`get_mode_string $3 1` if [ $1 == $CMP_CMP_OP ]; then rval=1 multi_log " Compared : <$modename0> and <$modename1>" elif [ $1 == $CMP_MISCMP_OP ]; then rval=1 multi_log " Miscompared : <$modename0> and <$modename1>" fi return $rval } # Compare results of different mode runs # of the same multi-result directory. # arg1 - multi-result directory do_inner_modes_cmp() { local CMP0 CMP1 CMP2 CMP3 CMP4 CMP5 # Compare results of different mode runs # and report the summary of comparing. multi_log "" multi_log "Compare different mode runs of the same multi-run:" multi_log "" do_compare_two_runs "$1" $NORM32 "$1" $OPT32 > /dev/null report_inner_modes_cmp $? $NORM32 $OPT32 CMP4=$? do_compare_two_runs "$1" $NORM32 "$1" $NORM64 > /dev/null report_inner_modes_cmp $? $NORM32 $NORM64 CMP0=$? do_compare_two_runs "$1" $NORM32 "$1" $OPT64 > /dev/null report_inner_modes_cmp $? $NORM32 $OPT64 CMP2=$? do_compare_two_runs "$1" $OPT32 "$1" $NORM64 > /dev/null report_inner_modes_cmp $? $OPT32 $NORM64 CMP3=$? do_compare_two_runs "$1" $OPT32 "$1" $OPT64 > /dev/null report_inner_modes_cmp $? $OPT32 $OPT64 CMP1=$? do_compare_two_runs "$1" $NORM64 "$1" $OPT64 > /dev/null report_inner_modes_cmp $? $NORM64 $OPT64 CMP5=$? if [ $CMP0 == 0 -a $CMP1 == 0 -a $CMP2 == 0\ -a $CMP3 == 0 -a $CMP4 == 0 -a $CMP5 == 0 ]; then multi_log " Nothing to compare" fi } # Compare results from two summary files # arg1 - summary that this particular test run created # arg2 - summary to compare against # arg3 - string representing the mode compare_summary_of_data() { local mode=$3 local result_line delta_data local no_result=no local p1 p2 result_line=`grep -A 2 -h '^TOTAL: [[:space:]]* ('"$mode" $1` CMP0PASS=`echo "$result_line" | grep 'PASS' | awk -F' ' '{printf $3}'` CMP0FAIL=`echo "$result_line" | grep 'FAIL' | awk -F' ' '{printf $3}'` result_line=`grep -A 2 -h '^TOTAL: [[:space:]]* ('"$mode" $2` CMP1PASS=`echo "$result_line" | grep 'PASS' | awk -F' ' '{printf $3}'` CMP1FAIL=`echo "$result_line" | grep 'FAIL' | awk -F' ' '{printf $3}'` >&2 echo "==============================================================================" >&2 echo "" >&2 echo " Difference summary of $mode" >&2 echo "" if [ -z $CMP0PASS ]; then >&2 echo " This run did not report any pass numbers for $mode" CMP0PASS=0 no_result=yes fi if [ -z $CMP0FAIL ]; then >&2 echo " This run did not report any fail numbers for $mode" CMP0FAIL=0 no_result=yes fi if [ -z $CMP1PASS ]; then >&2 echo " The previous run did not report any pass numbers for $mode" CMP1PASS=0 no_result=yes fi if [ -z $CMP1FAIL ]; then >&2 echo " The previous run did not report any pass numbers for $mode" CMP1FAIL=0 no_result=yes fi if [ no_result = $"no" ]; then >&2 echo "" fi if [ $CMP0PASS -ne $CMP1PASS ] || [ $CMP0FAIL -ne $CMP1FAIL ]; then change_exists=yes >&2 echo " Difference in $mode:" let "delta_data=$CMP0PASS-$CMP1PASS" if [ $delta_data -gt 0 ]; then p1="+" fi >&2 echo " Pass: $p1$delta_data (from $CMP1PASS to $CMP0PASS)" pass_delta=$p1$delta_data let "delta_data=$CMP0FAIL-$CMP1FAIL" if [ $delta_data -gt 0 ]; then p2="+" fi >&2 echo " Fail: $p2$delta_data (from $CMP1FAIL to $CMP0FAIL)" fail_delta=$p2$delta_data else >&2 echo " No pass/fail difference in $mode" >&2 echo " total pass: $CMP0PASS" >&2 echo " total fail: $CMP0FAIL" pass_delta=0 fail_delta=0 fi >&2 echo "" echo "$pass_delta:$fail_delta" } # Compare results from two summary files # arg1 - summary that this particular test run created # arg2 - summary to compare against compare_two_summaries() { n32res=$(compare_summary_of_data $1 $2 $"32-bit nopt mode") n64res=$(compare_summary_of_data $1 $2 $"64-bit nopt mode") o32res=$(compare_summary_of_data $1 $2 $"32-bit opt mode") o64res=$(compare_summary_of_data $1 $2 $"64-bit opt mode") n32p=`echo $n32res | awk -F":" '{print $1}'` n32f=`echo $n32res | awk -F":" '{print $2}'` n64p=`echo $n64res | awk -F":" '{print $1}'` n64f=`echo $n64res | awk -F":" '{print $2}'` o32p=`echo $o32res | awk -F":" '{print $1}'` o32f=`echo $o32res | awk -F":" '{print $2}'` o64p=`echo $o64res | awk -F":" '{print $1}'` o64f=`echo $o64res | awk -F":" '{print $2}'` header="%-11s %10s %11s %10s %11s\n" format="%-11s %10d %11d %10d %11d\n" divider="---------------------------------" longDivider="$divider$divider" printf "$header" "test type" "64 bit opt" "64 bit nopt" "32 bit opt" "32 bit nopt" echo "$longDivider" printf "$format" "pass diff" $o64p $n64p $o32p $n32p printf "$format" "fail diff" $o64f $n64f $o32f $n32f for result_value in $o64p $n64p $o32p $n32p $o64f $n64f $o32f $n32f do if [ $result_value -ne 0 ]; then return 1 fi done } # ############################## MAIN ############################### # Init variables of utility UTILSTATUS=0 AML_DONT_EXIST=0 DO_INNER_MODES_COMPARE=no MULTIPATH= export EXECVERSION= COMMONLOGFILE= MODES_TIMES= MODES_SUMMARIES= NUM_DISABLED_BRANCHES= # Do settings: # - set up a list of test cases you want to be processed # - set up a set of modes to run the tests # - init log out results of runs RESET_SETTINGS INIT_ALL_AVAILABLE_CASES INIT_ALL_AVAILABLE_MODES INIT_SET_OF_TEST_CASES INIT_SET_OF_TEST_MODES INIT_LOG_RESULTS INIT_MEM_STAT # Check access to AcpiExec utility if [ ! -f "$acpiexec" ]; then do_exit 1 "Undefined acpiexec variable! Set it to pathname of AcpiExec utility." fi # Determine the working directory and take precautions (last name should be aslts) if [ ! -d "$ASLTSDIR" ]; then do_exit 1 "Undefined ASLTSDIR variable! Set it to pathname of root directory of aslts test suite." fi x=`basename "$ASLTSDIR"` if [ "$x" != aslts ]; then do_exit 1 "The last name in ASLTSDIR should be 'aslts', but it is $x!" fi # Start date and time (used in name of result directory) TS_FMT_INIDATE=$(date +%F) TS_FMT_INITIME=$(date +%T) # Prepare directory for results if [ $ENABLELOG != 0 ]; then EXECVERSION=`get_acpiexec_version` MULTINAME=`get_date_time_like_name "$TS_FMT_INIDATE" "$TS_FMT_INITIME"` make_multi_result_dir "$MULTINAME" # Set up the common messages log file MULTIPATH="$ASLTSDIR/tmp/RESULTS/$MULTINAME" check_dir "$MULTIPATH" echo "Generating ASLTS log into directory $MULTIPATH" COMMONLOGFILE="$MULTIPATH/Summary" SUMMARYDELTAFILE="$MULTIPATH/DeltaSummary" echo "# Trace and summary of $MULTINAME bunch of test runs." > "$COMMONLOGFILE" multi_log "" multi_log "ASLTS_SYSTEM `uname -a`" multi_log "" fi # Start of tests run report_enabled_test_cases "$ENABLED_TCASES" multi_log "" report_specified_modes multi_log "" multi_log "Execution started $TS_FMT_INIDATE $TS_FMT_INITIME" # Run tests in 32-bit unoptimized code if [ $ENABLENORM32 != 0 ]; then run_set_of_test_cases $NORM32 "$MULTIPATH" "$ENABLED_TCASES" fi # Run tests in 64-bit unoptimized code if [ $ENABLENORM64 != 0 ]; then run_set_of_test_cases $NORM64 "$MULTIPATH" "$ENABLED_TCASES" fi # Run tests in 32-bit optimized code if [ $ENABLEOPT32 != 0 ]; then run_set_of_test_cases $OPT32 "$MULTIPATH" "$ENABLED_TCASES" fi # Run tests in 64-bit optimized code if [ $ENABLEOPT64 != 0 ]; then run_set_of_test_cases $OPT64 "$MULTIPATH" "$ENABLED_TCASES" fi # Finish of tests run TS_FMT_ENDTIME=$(date +%T) TS_FMT_RUNTIME=`get_cent_str_diff $TS_FMT_INITIME $TS_FMT_ENDTIME` # AcpiExec doesn't provide status of test execution, # so don't report STATUS of AcpiExec execution here # not to mislead as it means STATUS of the tests # execution. # if [ $UTILSTATUS == 0 ]; then # status=PASS # else # status=FAIL # fi multi_log "Execution finished $(date +%F) $TS_FMT_ENDTIME ($TS_FMT_RUNTIME)" if [ $ENABLELOG != 0 ]; then # Prepare all summaries do_all_summary "$MULTIPATH" "$ENABLED_TCASES" # Generalization of summaries multi_log " " multi_log " PER-MODE TEST CASES EXECUTION SUMMARY:" multi_log " " report_mode_summary "$MULTIPATH" $NORM32 "${MODES_SUMMARIES[$NORM32]}" report_mode_summary "$MULTIPATH" $NORM64 "${MODES_SUMMARIES[$NORM64]}" report_mode_summary "$MULTIPATH" $OPT32 "${MODES_SUMMARIES[$OPT32]}" report_mode_summary "$MULTIPATH" $OPT64 "${MODES_SUMMARIES[$OPT64]}" # Cross-compare results of runs of the same multi-result directory if [ "$DO_INNER_MODES_COMPARE" == yes ]; then do_inner_modes_cmp "$MULTIPATH" fi # Alarm the number of excluded testing branches multi_log "" if [ -n "$NUM_DISABLED_BRANCHES" ]; then if [ "$NUM_DISABLED_BRANCHES" != 0 ]; then multi_log "WARNING: the number of excluded testing branches is non-zero: $NUM_DISABLED_BRANCHES" fi fi TS_FMT_ENDTIME=$(date +%T) TS_FMT_TOTALTIME=`get_cent_str_diff $TS_FMT_INITIME $TS_FMT_ENDTIME` multi_log "Summary prepared $(date +%F) $TS_FMT_ENDTIME ($TS_FMT_TOTALTIME)" fi if [ $AML_DONT_EXIST != 0 ]; then msg="WARNING: some test cases don't have AML code! ($AML_DONT_EXIST)" echo "$msg" multi_log "$msg" fi if [ $HAVE_LARGE_REF_CNT == yes ]; then msg="WARNING: where detected!" echo "$msg" multi_log "" multi_log "$msg" fi # Generate diff of test results based on this run's summary and the latest summary file of a test run. summary_to_compare=`find . -name "Summary" -type f -printf '%T@ %p\n' | sort -k 1 -nr | sed 's/^[^ ]* //' | sed -n 2p` if [ "$summary_to_compare" == "" ]; then echo "No summary file to compare against." else echo "comparing against $summary_to_compare" compare_two_summaries "$COMMONLOGFILE" "$summary_to_compare" if [ $? -ne 0 ]; then \ do2path=$MULTIPATH/do2Output.txt Do 2 > $do2path if [ $? -ne 0 ]; then \ echo "Detailed comparison of previous 2 test runs in $do2path" fi fi fi exit $UTILSTATUS acpica-unix-20250404/tests/aslts/bin/settings0000700000175000017500000001616314773714146020364 0ustar ivanhuivanhu#!/bin/bash # # @echo off # # Settings and initializations # # Initialize all the AVAILABLE test cases # and collections (all which are). # INIT_ALL_AVAILABLE_CASES() { # Functional test collection FUNC_COLL="arithmetic bfield constant control descriptor" FUNC_COLL="$FUNC_COLL logic manipulation name reference region synchronization" FUNC_COLL="$FUNC_COLL table module external" # Complex test collection OPER_TCASES="oarg oconst oconversion olocal onamedglob onamedloc opackageel oreftonamed oreftopackageel oreturn" RES_TCASES="rconversion rcopyobject rexplicitconv rindecrement roptional rstore" CPLX_COLL="misc provoke" CPLX_COLL="$CPLX_COLL $OPER_TCASES" CPLX_COLL="$CPLX_COLL $RES_TCASES" CPLX_COLL="$CPLX_COLL badasl namespace" # Exceptions test collection EXCP_COLL="exc exc_operand1 exc_operand2 exc_ref exc_result1 exc_result2" EXCP_COLL="$EXCP_COLL exc_tbl" # Bug-demo test collection BDEMO_COLL="bdemo bdemof" # Service test collection SERV_COLL="condbranches" # Implementation dependent test collection IMPL_COLL="dynobj" # Tests of multi-threading functionality (mt-tests) MT_COLL="mt_mutex" # Tests to prove identity of ACPICA to MS MS_IDENT_COLL="extra extra_aslts" # All collections of tests ALL_AVAILABLE_COLLS="functional complex exceptions bdemo service mt Identity2MS IMPL" ALL_AVAILABLE_TEST_CASES="$FUNC_COLL $CPLX_COLL $EXCP_COLL $BDEMO_COLL $MT_COLL $SERV_COLL $IMPL_COLL $MS_IDENT_COLL" } # # Initialize all the AVAILABLE test modes # INIT_ALL_AVAILABLE_MODES() { # All test modes ALL_AVAILABLE_TEST_MODES="n32 n64 o32 o64" } # # Report all the available test cases # echo_available_test_cases() { echo "All available test cases:" echo_list "functional" "$FUNC_COLL" echo_list "complex" "$CPLX_COLL" echo_list "exceptions" "$EXCP_COLL" echo_list "bug-demo" "$BDEMO_COLL" echo_list "mt" "$MT_COLL" echo_list "service" "$SERV_COLL" echo_list "implementation dependent" "$IMPL_COLL" echo_list "Identity2MS" "$MS_IDENT_COLL" } # # Return the number of all the available test cases # get_num_of_available_test_cases() { local count=0 for tcase in $ALL_AVAILABLE_TEST_CASES do count=$[ $count + 1 ] done return $count } # # Set up a list of test cases you want # to be processed by run and compare utilities. # Do that here manually. # INIT_SET_OF_TEST_CASES() { local func compl excep bdemo serv impl # Functional test collection func="arithmetic bfield constant control descriptor" func="$func logic manipulation name reference region synchronization" func="$func table external" # Complex test collection compl="misc provoke" compl="$compl oarg oconst olocal onamedloc onamedglob opackageel oreftonamed oreftopackageel oreturn" compl="$compl rstore roptional rcopyobject rindecrement rexplicitconv" compl="$compl badasl namespace" # Exceptions test collection excep="exc exc_ref exc_operand2 exc_result2" excep="$excep exc_tbl" # Bug-demo test collection bdemo="bdemo bdemof" # Service test collection serv="condbranches" # Tests of multi-threading functionality (mt-tests) mt="mt_mutex" # Tests to prove identity of ACPICA to MS Identity2MS="extra extra_aslts" # Implementation dependent test collection impl="dynobj" # The test cases to be processed by run and compare utilities: if [ "x$ENABLED_TCASES" = "x" ]; then # ENABLED_TCASES="$func $compl $excep $bdemo $serv" # ENABLED_TCASES="$func $compl $excep $Identity2MS $bdemo $serv" ENABLED_TCASES="$func $compl $excep $mt $Identity2MS $bdemo $serv" # ENABLED_TCASES="extra extra_aslts" # ENABLED_TCASES="control" # ENABLED_TCASES="bdemo" # ENABLED_TCASES="bdemo bdemof" # ENABLED_TCASES="bdemo misc" # ENABLED_TCASES="arithmetic constant" # ENABLED_TCASES="condbranches" # ENABLED_TCASES="exc" # ENABLED_TCASES="arithmetic constant exc condbranches" # ENABLED_TCASES="arithmetic bfield constant control descriptor logic manipulation name reference region synchronization misc provoke exc bdemo" # ENABLED_TCASES="oarg oconst olocal onamedloc onamedglob opackageel oreftonamed oreftopackageel oreturn" # ENABLED_TCASES="rstore roptional rcopyobject rindecrement rexplicitconv exc_ref exc_operand2 exc_result2" # ENABLED_TCASES="condbranches" # ENABLED_TCASES="arithmetic bfield" # ENABLED_TCASES="descriptor" # ENABLED_TCASES="reference" # ENABLED_TCASES="arithmetic misc logic bdemo" # ENABLED_TCASES="misc control manipulation" # ENABLED_TCASES="exc_ref" # ENABLED_TCASES="rstore" # ENABLED_TCASES="bdemo reference" # ENABLED_TCASES="name" # ENABLED_TCASES="badasl" # ENABLED_TCASES="constant" # ENABLED_TCASES="arithmetic constant exc mt_mutex bdemo" # ENABLED_TCASES="mt_mutex" # ENABLED_TCASES="region" fi } # # Set up a list of test modes you want # to be processed by run and compare utilities. # INIT_SET_OF_TEST_MODES() { local m n found for m in $ALL_AVAILABLE_TEST_MODES do found=0 for n in $ENABLED_TMODES do if [ "x$m" = "x$n" ]; then found=1 fi done if [ $found -eq 1 ]; then # 32-bit unoptimized code: if [ "$m" = "n32" ]; then ENABLENORM32=1 fi # 64-bit unoptimized code: if [ "$m" = "n64" ]; then ENABLENORM64=1 fi # 32-bit optimized code: if [ "$m" = "o32" ]; then ENABLEOPT32=1 fi # 64-bit unoptimized code: if [ "$m" = "o64" ]; then ENABLEOPT64=1 fi fi done } # # Set it up to zero to exclude the aslts/RESULTS technique at all # INIT_LOG_RESULTS() { ENABLELOG=1 } # # Set it up to the maximal number of bdemo tests (of all bugs of ACPICA) # INIT_MAX_BDEMO() { MAXBDEMO=307 } # # Reset collections involved flags # reset_collections_flags() { FUNC_COLL_FLAG=0 CPLX_COLL_FLAG=0 EXCP_COLL_FLAG=0 BDEMO_COLL_FLAG=0 MT_COLL_FLAG=0 SERV_COLL_FLAG=0 IMPL_COLL_FLAG=0 MS_IDENT_COLL_FLAG=0 } RESET_SETTINGS() { # Log enable flag ENABLELOG=0 # Enabled modes ENABLENORM32=0 ENABLENORM64=0 ENABLEOPT32=0 ENABLEOPT64=0 # Available test collections FUNC_COLL= CPLX_COLL= EXCP_COLL= BDEMO_COLL= MT_COLL= SERV_COLL= MS_IDENT_COLL= IMPL_COLL= ALL_AVAILABLE_COLLS= ALL_AVAILABLE_TEST_CASES= # Particular test cases staff OPER_TCASES= RES_TCASES= # Test collections involved flags reset_collections_flags # Run test error flags HAVE_LARGE_REF_CNT=no } INIT_MEM_STAT() { # If 'yes', eliminates all settings of comparing below DO_ALL_COMPARE=yes DO_COMPARE_TOTAL_ONLY=no # Enable memory statistics processing DO_MEMSTAT=yes # # Enable comparing of memory statistics for the test cases # (not only the total figures related to all the test cases # of mode). # Allows to reduce the time of the comparing utility. # This comparing utility takes too long time on Cygwin # (more than 1 hour 10 minutes, though quickly on Linux - # not more than 1 minute). # DO_COMPARE_OF_TEST_CASES=no DO_COMPARE_OF_EXCEPTIONS=no if [ "$DO_COMPARE_OF_TEST_CASES" != yes -a "$DO_COMPARE_OF_EXCEPTIONS" != yes ]; then DO_COMPARE_TOTAL_ONLY=yes fi if [ "$DO_ALL_COMPARE" == yes ]; then DO_COMPARE_TOTAL_ONLY=no DO_COMPARE_OF_TEST_CASES=yes DO_COMPARE_OF_EXCEPTIONS=yes fi } acpica-unix-20250404/tests/aslts/Makefile.def0000700000175000017500000002100314773714147020214 0ustar ivanhuivanhu# Makefile.def # Set variables: # # for install: # ASL - path name of iASL compiler # # Internal variables to be pre-defined: # TOP - relative name of aslts directory # AMLMOD - name of resulting AML module (DefinitionBlock->AMLFileName) # without .aml extension. # Two level hierarchy of compilation: # optimization & (32/64 mode). # # Directory | Flags # |--------------------------- # | optimization | 32/64 mode # --------------------------------------- # opt/32 | | -r 1 # opt/64 | | -r 2 # nopt/32 | -oa | -r 1 # nopt/64 | -oa | -r 2 ifndef ASLTS_AMLDIR ifeq ("$(ASLTS_MODE)", "n32") ASLTS_AMLDIR=nopt/32 ASLTS_ASLFLAGS="-oa -r 1" endif ifeq ("$(ASLTS_MODE)", "n64") ASLTS_AMLDIR=nopt/64 ASLTS_ASLFLAGS="-oa -r 2" endif ifeq ("$(ASLTS_MODE)", "o32") ASLTS_AMLDIR=opt/32 ASLTS_ASLFLAGS="-r 1" endif ifeq ("$(ASLTS_MODE)", "o64") ASLTS_AMLDIR=opt/64 ASLTS_ASLFLAGS="-r 2" endif ifeq ("$(ASLTS_MODE)", "aslminus") ASLTS_AMLDIR=aslminus/ ASLTS_ASLFLAGS="-oa -r 2" endif ifeq ("$(ASLTS_MODE)", "aslplus") ASLTS_AMLDIR=aslplus/ ASLTS_ASLFLAGS="-oa -r 2" endif ifeq ("$(ASLTS_MODE)", "aslconvert") ASLTS_AMLDIR=aslconvert/ ASLTS_ASLFLAGS="-oa -r 2" endif endif ASLTS_VER ?= $(ASLTS_VER) COMMON_NO_OUTPUT_ASL_FLAGS= "-of -cr -vs" COMMON_ASL_FLAGS= $(COMMON_NO_OUTPUT_ASL_FLAGS)" -l -sc -sa -ic -ta -ts -so -lm -ln -ls -li" COMPILER_LOG="$(TOP)/tmp/aml/$(ASLTS_VER)/compile.txt" COMPILER_ERROR_LOG="$(TOP)/tmp/aml/$(ASLTS_VER)/error.txt" # Create general directory GDMODE=775 INST= install INST.dir= $(INST) -d -m $(GDMODE) $@ ASLMOD= MAIN # Empty all (specify 'all' target, if needed, before Makefile.def include) empty_all: FORCE # Rule to create directories located into aslts/tmp/aml; $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR): @$(INST.dir) # Make-install one particular Test Case for all modes install_all_modes_of_test_case: $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR) @rval=0; \ if [ -f "$(ASL)" ]; then \ dd=`pwd`; \ echo "---- Test path: $$dd" >> $(COMPILER_LOG); \ echo "---- Test path: $$dd" >> $(COMPILER_ERROR_LOG); \ >&2 echo "Test path: $$dd"; \ echo "---- Test type: $(ASLTS_AMLDIR) (Flags $(COMMON_ASL_FLAGS) $(ASLTS_ASLFLAGS) $(ADD_ASLFLAGS))" >> $(COMPILER_LOG); \ echo "---- Test type: $(ASLTS_AMLDIR) (Flags $(COMMON_ASL_FLAGS) $(ASLTS_ASLFLAGS) $(ADD_ASLFLAGS))" >> $(COMPILER_ERROR_LOG); \ for j in ${AMLMOD}; do \ rm -f $$j.aml; \ done; \ for j in ${ASLMOD} $(ASLMODADD); do \ echo "---- Compile: $$j.asl" >> $(COMPILER_LOG); \ >&2 printf "%-18s" " Type: $(ASLTS_AMLDIR) "; \ >&2 printf "Compile"; \ "$(ASL)" $(ASLTS_ASLFLAGS) "$(COMMON_ASL_FLAGS)" $(ADD_ASLFLAGS) $$j.asl >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); \ ret=$$?; \ echo "" >> $(COMPILER_LOG); \ >&2 printf " => Removing files"; \ rm $$j.asm; \ rm $$j.c; \ rm $$j.h; \ rm $$j.i; \ rm $$j.hex; \ rm $$j.lst; \ rm $$j.map; \ rm $$j.nsp; \ rm $$j.offset.h; \ rm $$j.src; \ >&2 printf " => Done "; \ if [ $$ret != 0 ]; then \ rval=1; \ >&2 echo "**** Unexpected iASL failure in $$dd/$$j.asl!"; \ fi; \ done; \ >&2 echo ""; \ if [ $$ret != 0 ]; then break; fi; \ for j in ${AMLMOD}; do \ ls -l $$j.aml >> $(COMPILER_LOG); \ echo "---- Move: $$j.aml $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR)" >> $(COMPILER_LOG); \ mv $$j.aml $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR); \ ret=$$?; \ if [ $$ret != 0 ]; then rval=2; echo "**** mv failed!" >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); break; fi; \ done; \ else \ echo "Bad iASL 0: <$(ASL)> does not exist"; \ exit 1; \ fi; # Make-install one particular Test Case for all modes. install_test_case: @if [ ! -f "$(ASL)" ]; then \ echo "Bad iASL 1: <$(ASL)> does not exist"; exit 1; \ fi; \ if [ "$(ASLTS_MODE)" = "aslminus" ]; then \ make install_disasm_test_case DISASM_FLAG="-dl" ASLTS_MODE=$(ASLTS_MODE) ASLTS_VER=$(ASLTS_VER); \ elif [ "$(ASLTS_MODE)" = "aslplus" ]; then \ make install_disasm_test_case DISASM_FLAG="-d" ASLTS_MODE=$(ASLTS_MODE) ASLTS_VER=$(ASLTS_VER); \ elif [ "$(ASLTS_MODE)" = "aslconvert" ]; then \ make install_converter_test_case ASLTS_MODE=$(ASLTS_MODE) ASLTS_VER=$(ASLTS_VER); \ else \ make install_all_modes_of_test_case ASLTS_MODE=$(ASLTS_MODE) ASLTS_VER=$(ASLTS_VER); \ fi TEST_SEQUENCE_ASL_FLAGS="$(ASLTS_ASLFLAGS) $(COMMON_NO_OUTPUT_ASL_FLAGS)" disasm_test_compile: $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR) @rval=0; \ for j in ${ASLMOD} $(ASLMODADD); do \ for k in ${AMLMOD}; do \ >&2 printf " => Compile with externals in place"; \ "$(ASL)" -p $$k-extInPlace -oE $(ADD_ASLFLAGS) $(TEST_SEQUENCE_ASL_FLAGS) $$j.asl >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); \ ret=$$?; \ if [ $$ret != 0 ]; then \ rval=2; \ >&2 printf " [[ Error: compiling $$k.aml with externals in place failed ]]\n"; \ >&2 printf " Flags used: -p $$k-extInPlace -oE $(ADD_ASLFLAGS) $(TEST_SEQUENCE_ASL_FLAGS)\n\n"; \ fi; \ done; \ done; \ if [ $$rval != 0 ]; then exit 1; fi disasm_test_disassemble: disasm_test_compile @rval=0; \ for k in ${AMLMOD}; do \ >&2 printf " => Disassemble"; \ "$(ASL)" -p $$k -oe -od $(COMMON_NO_OUTPUT_ASL_FLAGS) $(ADD_ASLFLAGS) $(DISASM_FLAG) $$k-extInPlace.aml >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); \ ret=$$?; \ if [ $$ret != 0 ]; then \ retval=2; \ >&2 printf " [[ Error: disassembly of $$k-extInPlace.aml failed ]]\n"; \ >&2 printf " Flags used: -oe -od $(COMMON_NO_OUTPUT_ASL_FLAGS) $(ADD_ASLFLAGS) $(DISASM_FLAG)\n\n"; \ fi; \ done; \ if [ $$rval != 0 ]; then exit 1; fi disasm_test_recompile: disasm_test_disassemble @rval=0; \ for k in ${AMLMOD}; do \ >&2 printf " => Recompile\n"; \ "$(ASL)" $(ADD_ASLFLAGS) $(TEST_SEQUENCE_ASL_FLAGS) $$k.dsl >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); \ ret=$$?; \ if [ $$ret != 0 ]; then \ rval=2; \ >&2 printf " [[ Error: re-compilation of $$k-$$l.dsl failed]]\n"; \ >&2 printf " Flags used: $(ADD_ASLFLAGS) $(TEST_SEQUENCE_ASL_FLAGS)\n\n"; \ fi; \ rm $$k.dsl; \ echo "---- Move: $$k.aml $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR)" >> $(COMPILER_LOG); \ mv $$k.aml $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR); \ ret=$$?; \ if [ $$ret != 0 ]; then rval=2; echo "**** mv failed!" >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); break; fi; \ done; \ install_disasm_test_case: if [ "x$(ADD_ASLFLAGS)" != "x-f" ]; then \ make disasm_test_recompile; \ make clean; \ else \ >&2 echo "Skipping disassembler test for this test case"; \ fi; converter_test_convert: $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR) @rval=0; \ for j in ${ASLMOD} $(ASLMODADD); do \ >&2 printf " Convert"; \ "$(ASL)" $(ADD_ASLFLAGS) -cr -ca $$j.asl >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); \ ret=$$?; \ if [ $$ret != 0 ]; then \ rval=2; \ >&2 printf " [[ Error: conversion of $$j.asl failed ]]\n"; \ >&2 printf " Flags used: -ca\n\n"; \ fi; \ done; \ if [ $$rval != 0 ]; then exit 1; fi converter_test_recompile: converter_test_convert @rval=0; \ for j in ${ASLMOD} $(ASLMODADD); do \ for k in ${AMLMOD}; do \ >&2 printf " => Recompile"; \ "$(ASL)" $(ADD_ASLFLAGS) $(TEST_SEQUENCE_ASL_FLAGS) -p $$k $$j.dsl >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); \ ret=$$?; \ if [ $$ret != 0 ]; then \ rval=2; \ >&2 printf " [[ Error: re-compilation of $$j.dsl failed]]\n"; \ >&2 printf " Flags used: $(ADD_ASLFLAGS) $(TEST_SEQUENCE_ASL_FLAGS) -p $$k\n\n"; \ else \ >&2 printf " => Done\n"; \ fi; \ echo "---- Move: $$k.aml $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR)" >> $(COMPILER_LOG); \ mv $$k.aml $(TOP)/tmp/aml/$(ASLTS_VER)/$(ASLTS_AMLDIR); \ ret=$$?; \ if [ $$ret != 0 ]; then rval=2; echo "**** mv failed!" >> $(COMPILER_LOG) 2>> $(COMPILER_ERROR_LOG); break; fi; \ done; \ done; \ install_converter_test_case: if [ "x$(ADD_ASLFLAGS)" != "x-f" ]; then \ make converter_test_recompile; \ make clean; \ else \ >&2 echo "Skipping converter test for this test case"; \ fi; # Compile one particular Test Case for all modes. # No moving results to aslts/tmp/aml directory. compile_test_case: @rval=0; \ echo "Compile_test_case" if [ -f "$(ASL)" ]; then \ for j in ${ASLMOD} $(ASLMODADD); do \ "$(ASL)" $(ASLTS_ASLFLAGS) $(ADD_ASLFLAGS) $$j.asl; \ ret=$$?; \ if [ $$ret != 0 ]; then rval=1; echo "**** Unexpected iASL failure!"; exit 1; fi; \ done; \ else \ echo "Bad iASL 4: <$(ASL)> does not exist"; \ rval=1; \ fi; \ if [ $$rval != 0 ]; then exit 1; fi acpica-unix-20250404/tests/aslts/Makefile0000700000175000017500000000007314773714147017463 0ustar ivanhuivanhu# aslts MDIRS= src TOP= . include $(TOP)/Makefile.switch acpica-unix-20250404/tests/aslts/Makefile.switch0000700000175000017500000000301114773714147020756 0ustar ivanhuivanhu# common switch make ASLTS_VER ?= 00000000 all: ${MDIRS} ${MDIRS}: FORCE @cd $@; pwd; make install: FORCE @r=0; set -e; for d in ${MDIRS}; do \ (cd $$d; \ if [ $$? -ne 0 ]; then \ echo "Bad element of MDIRS: <$$d>"; \ else \ pwd; \ >&2 echo "Begin compiling test package: [$$d]"; \ $(MAKE) install ASLTS_MODE=$(ASLTS_MODE) ASLTS_VER=$(ASLTS_VER); \ if [ $$? -ne 0 ]; then \ r=1; \ false; \ fi; \ fi); \ if [ $$r -ne 0 ]; then \ exit $r; \ fi; \ >&2 echo "Compiled test package: [$$d]"; \ done install_n32: $(MAKE) install ASLTS_MODE=n32 ASLTS_VER=$(ASLTS_VER) install_n64: $(MAKE) install ASLTS_MODE=n64 ASLTS_VER=$(ASLTS_VER) install_o32: $(MAKE) install ASLTS_MODE=o32 ASLTS_VER=$(ASLTS_VER) install_o64: $(MAKE) install ASLTS_MODE=o64 ASLTS_VER=$(ASLTS_VER) install_aslminus: $(MAKE) install ASLTS_MODE=aslminus ASLTS_VER=$(ASLTS_VER) install_aslplus: $(MAKE) install ASLTS_MODE=aslplus ASLTS_VER=$(ASLTS_VER) install_aslconvert: $(MAKE) install ASLTS_MODE=aslconvert ASLTS_VER=$(ASLTS_VER) install_all: install_n32 install_n64 install_o32 install_o64 install_aslminus install_aslplus install_aslconvert clean: FORCE @for d in ${MDIRS}; do \ (cd $$d; \ if [ $$? -ne 0 ]; then \ echo "Bad element of MDIRS: <$$d>"; \ else \ pwd; make clean; \ fi); \ done clobber: FORCE @for d in ${MDIRS}; do \ (cd $$d; \ if [ $$? -ne 0 ]; then \ echo "Bad element of MDIRS: <$$d>"; \ else \ pwd; make clobber; \ fi); \ done FORCE: acpica-unix-20250404/tests/aslts/HOW_TO_USE0000700000175000017500000002246114773714147017526 0ustar ivanhuivanhu How to execute the run-time tests --------------------------------- 1. Install the tests (see HOW_TO_INSTALL). 2. To configure the required/desired set of test cases and the modes of the execution runs, manually edit the settings file: aslts/bin/settings If necessary, tune the test suite to your current needs by setting the variables SETN and run4. These variables control the test suite options and are contained in this file: aslts/src/runtime/cntl/runmode.asl 3. Use the Do utility to run the specified set of tests in all specified modes of execution runs. It supports the automated logging of the results of test runs and allows results to be compared. See comments for the Do utility within the Do script file (aslts/bin/Do). a) Set the following environment variables: ASL - path to iASL compiler: (example) > export ASL="c:/acpica/libraries/iasl.exe" acpiexec - path to acpiexec utility: (example) > export acpiexec="c:/acpica/libraries/acpiexec.exe" acpibin - path to acpibin utility: (example) > export acpibin="c:/acpica/libraries/acpibin.exe" ASLTSDIR - path to the aslts directory: (example) > export ASLTSDIR="c:/acpica/tests/aslts" b) Add the following directory to the PATH variable: aslts/bin c) If necessary, convert all scripts in the aslts/bin directory to unix line endings: > d2u aslts/bin/* d) Execute "Do" with one of the following commands: (Use 'Do 1' to run all tests) 0 - Compile and install AML tests 1 - Execute all configured tests in all enabled modes 2 - Compare two multi-results of two runs of tests 3 - Print out the names of all the available test cases 4 - Calculate the current state of all bugs and report the summary tables 5 - Prepare bdemo summary files of one multi-results directory for all modes 6 - Concatenate bdemo summary files of two multi-results 4. If desired, any individual AML test can be generated from within its directory by running the iASL compiler on the MAIN.asl file for that test. For example: > iASL MAIN.asl 5. If desired, any individual AML test can be executed from the aslts/tmp/aml directory by invoking the AcpiExec utility with the name of the AML test and the batch execute option. For example: > cd aslts/tmp/aml > acpiexec -b "Execute MAIN" 20090320/nopt/32/arithmetic.aml 6. When all tests are executed in batch mode (Do 1), the individual test results are placed in the following directory structure: aslts/tmp/RESULTS/ / norm/ // normal interpreter mode, no slack 32/ // 32-bit table execution 64/ // 64-bit table execution slack/ // interpreter slack mode enabled 32/ // 32-bit table execution 64/ // 64-bit table execution summary // test execution summary 7. After completion, each AML test reports its status as one of the following: [PASS|FAIL|BLOCKED|SKIPPED] PASS - Success, no errors encountered in the functionality of the product. FAIL - The test encountered errors - improper functionality of the product. BLOCKED - The test was blocked (was not run). This option is used for the tests which are temporarily causing abort or hang of execution due to the errors the product. SKIPPED - The test was skipped (was not run). This option is used in case where the result of the test is undefined under the particular conditions. 8. How to evaluate the results of the run-time tests. A. Successful run. After the run is completed, the following summary lines are displayed by ASLTS: a) "Run time (in seconds): 0x0000000000000031" b) "The total number of exceptions handled: 0x0000000000000005" c) "TEST ACPICA: 64-bit : PASS" Line (a) shows the run time in seconds measured by the ASL Timer operator. Line (b) reports the number of exceptions which took place during the test execution. Line (c) reports the mode of the run and the summary status: Mode is either 32-bit or 64-bit Status is one of [PASS|FAIL|BLOCKED|SKIPPED] B. Failed run. a) "Run time (in seconds): 0x0000000000000031" b) "The total number of exceptions handled: 0x0000000000000005" c) "TEST ACPICA: 64-bit : FAIL : Errors # 0x0000000000000009" The number of errors (9 here) is reported as Errors # 0x0000000000000009". C. Example error message: "---------- ERROR : 0x000000001903301A, 0x0000000000033017, m503" "TITLE : Miscellaneous named object creation" "COLLECTION : functional" "TEST CASE : name" "TEST : PCG0" "ERROR, file : package.asl" " index : 000000000000001A" "CHECKING, file : package.asl" " method : m123" " index : 0000000000000017" "(r):" 0x0000000000000025 "(e):" 0x0000000000000027 "---------- END." Explanations: 0x000000001903301A, 0x0000000000033017 - two 32-bit words of error opcode (see "The layout of error opcode" below) m503 - This is usually the name of the executing control method (which in turn is usually a conglomeration of subtests) or some brief diagnostic message explanation/designation/naming of the error. "TITLE : The common intention of the test "COLLECTION : Functional/complex/exceptions/.. "TEST CASE : The name of test case (bfield, arithmetic, opackageel, ...) "TEST : The name of test (simplest unit reported by diagnostics and supplied with the satatus line) "ERROR, file : The name of file where the error reporting function (err()) was invoked " index : Index of error inside that file where err() was invoked (each invocation of err() differs with its index) "CHECKING, file : The name of the file where the checking was initiated " method : The name of method initiated the checking " index : Index of the checking inside the file "CHECKING, file" (r): - usually, the following value is a received one (e): - usually, the following value is an expected one D. The errors (currently 200 max) are summarized as follows at the end of the test output. Example of test "Reference": "========= ERRORS SUMMARY (max 200):" "reference, ref50.asl, 0000000000000003, ref50.asl, 0000000000000000, m22c" "reference, datastproc.asl, 000000000000000F, ref50.asl, 0000000000000001, m22c" "reference, ref50.asl, 0000000000000007, ref50.asl, 0000000000000000, m234" "reference, ref50.asl, 0000000000000007, ref50.asl, 0000000000000000, m234" "reference, datastproc.asl, 0000000000000001, ref50.asl, 0000000000000013, m365" "reference, datastproc.asl, 0000000000000001, ref50.asl, 0000000000000015, m365" "reference, datastproc.asl, 0000000000000001, ref50.asl, 0000000000000017, m365" "========= END." Explanations: "reference, datastproc.asl, 0000000000000001, ref50.asl, 0000000000000017, m365" reference - The name of the test case datastproc.asl - The name of the file where the error was revealed and reported by invoking err(..,index,..) 0000000000000001 - Index of error inside that (datastproc.asl) file ref50.asl - The name of file where the checking was initiated 0000000000000017 - Index of that checking inside that (ref50.asl) file m365 - Diagnostic message (usually, the name of the method containing the conglomeration of tests) For more information, see the file aslts/TESTS. 9. The layout of the error opcode (three 32-bit words) 0xctfffeee 0xmmzzzuuu 0xnnnnnnnn c - Index of tests collection t - Index of test inside the collection f - Absolute index of the file reporting the error e - Index of error (inside the file) z - Absolute index of the file initiating the checking u - Index of checking n - Name of Method initiating the checking m - Miscellaneous: 1) in case of TCLD tests there is an index of bug stored (max 600) How to use ASL-compilation control test collection ================================================== The tests for the ASL Compiler to check its ability to detect, report and reject wrong ASL code are contained in this directory: aslts/src/compilation/collection At present, no utility is provided to perform automated run and verification of these tests. The tests contain ASL code with compile errors such that no output AML files are expected. Expected are Warning and Error messages to be reported by ASL Compiler for the incorrect ASL code. When implemented, the utility should parse the output of the ASL Compiler for these files to verify the presence of the expected messages. acpica-unix-20250404/tests/aslts/HOW_TO_INSTALL0000700000175000017500000000274214773714147020200 0ustar ivanhuivanhu How to install the AML tests ---------------------------- There are two ways to install the AML tests in a Unix-like environment: 1. > cd aslts > make install 2. > aslts/bin/Do 0 aslts where 'aslts' is the root directory of the test suite. The base name must be exactly 'aslts'. The generated tests will be located in the aslts/tmp/aml parent directory which is created automatically by make-install. The actual AML code of the individual ASL tests are placed in the following subdirectories: With compiler optimization: aslts/tmp/aml/opt/32 aslts/tmp/aml/opt/64 Without compiler optimization: aslts/tmp/aml/nopt/32 aslts/tmp/aml/nopt/64 If the directories aslts/tmp/aml/* do not exist they are automatically created. SEE ALSO aslts/HOW_TO_USE Comments on the Do utility in the bin/README file ENVIRONMENT For test generation, the environment variable 'ASL' should be set to the pathname of the iASL compiler. For example, for cygwin under windows: > export ASL="c:/acpica/libraries/iasl.exe" For test execution, three additional variables are required: acpiexec - path to acpiexec utility: (example) > export acpiexec="c:/acpica/libraries/acpiexec.exe" acpibin - path to acpibin utility: (example) > export acpibin="c:/acpica/libraries/acpibin.exe" ASLTSDIR - path to the aslts directory: (example) > export ASLTSDIR="c:/acpica/tests/aslts" acpica-unix-20250404/tests/aslts/TESTS0000700000175000017500000002160514773714160016647 0ustar ivanhuivanhu ALL THE RUN-TIME TESTS ====================== 51 - the current total amount of resulting *.aml files in aslts/aml/*/ directory. Among them are 7 conglomerations of particular tests: complex, exc_operand, exceptions, functional, full, operand, result Per-collection list of run-time tests - Name of test ------ Contents of test --------------------------------------- Functional tests, collection #1 ______________________________________________________________________________ 0 | arithmetic | Integer arithmetic | 1 | bfield | Buffer Fields | 2 | constant | Constants | 3 | control | Method execution control | 4 | descriptor | Resource Descriptor macros | 5 | extern | ASL compiler controls | 6 | local | Control method objects | 7 | logic | Logical operators | 8 | manipulation | Data type conversion and manipulation | 9 | name | Miscellaneous named object creation | 10 | reference | Object references | 11 | region | Operation Regions | 12 | synchronization | Synchronization | 13 | table | ACPI table management | | | | | functional | full the functional test collection - all the tests of | | | the functional test collection are compiled together | | | as one DefinitionBlock | ______________________________________________________________________________ Complex tests, collection #2 ______________________________________________________________________________ 0 | misc | Miscellaneous not systematized tests | 1 | provoke | Check operators under the known critical conditions | | | | | operand | Source Operand tests | | | | 2 | oarg | | 3 | oconst | | 4 | olocal | | 5 | oreturn | | 6 | onamedloc | | 7 | onamedglob | | 8 | opackageel | | 9 | oreftonamed | | 10 | oconversion | (obsolete, update required) | 11 | oreftopackageel | | | | | | result | Result of Operators tests | | | | 12 | rstore | | 13 | roptional | | 14 | rconversion | (obsolete, update required) | 15 | rcopyobject | | 16 | rindecrement | | 17 | rexplicitconv | | | | | 18 | badasl | ASL-incorrect tests compiled with -f option of ASL | | | | 19 | namespace | Name Space component tests | | | | | complex | full the complex test collection - all the tests of | | | the complex test collection are compiled together | | | as one DefinitionBlock | ______________________________________________________________________________ Exceptional conditions tests, collection # 3 ______________________________________________________________________________ 0 | exc | Initiate and verify exceptional conditions | | | | | exc_operand | Exceptions caused by inappropriate type of operands | | | | 1 | exc_operand1 | (obsolete, update required) | 2 | exc_operand2 | | | | | | exc_result | Exceptions caused by inappropriate type of destination | | | | 3 | exc_result1 | (obsolete, update required) | 4 | exc_result2 | | | | | 5 | exc_ref | Exceptions caused by inappropriate use of references | | | | 6 | exc_tbl | Exceptions caused by inappropriate use of table | | | management | | | | | exceptions | full the exceptional conditions test collection - all | | | the tests of the exceptional conditions test | | | collection are compiled together as one | | | DefinitionBlock | ______________________________________________________________________________ Bug-demo tests, collection #4 ______________________________________________________________________________ 0 | bdemo | The tests to demonstrate bugs and prove bug-fixes | 1 | bdemof | The same but the tests which require -f option of ASL | ______________________________________________________________________________ Service tests, collection #5 ______________________________________________________________________________ 0 | condbranches | Service-test reports failures when | | | some conditional branches are disabled. | ______________________________________________________________________________ Mt-tests, collection #6 ______________________________________________________________________________ 0 | mt | Tests of multi-threading functionality | | | | | mt_mutex | tests of mutexes | ______________________________________________________________________________ To prove identity of ACPICA to MS tests, collection #7 ______________________________________________________________________________ 0 | abbu | Tests applicable to both AcpiExec and MS-abbu utilities | ______________________________________________________________________________ Implementation dependent tests, collection #8 ______________________________________________________________________________ 0 | dynobj | The ASL Dynamical Object support test | ______________________________________________________________________________ All tests together (functional + complex + exceptions + etc.) ______________________________________________________________________________ | full | full test - all the collections (functional + complex | | | + exceptions + etc.) are compiled together as one | | | DefinitionBlock | ______________________________________________________________________________ acpica-unix-20250404/tests/aslts/NOTE0000700000175000017500000001622114773714147016515 0ustar ivanhuivanhuFree layout. Any remarks (e.g. not to forget to do something). Some information can be obsolete. ================================= |------------------------------------------------------------------------------| runtime/collections/complex/misc/misc.asl: don't forget to uncomment switch operator in method m100 after when the bug 73 will be fixed. |------------------------------------------------------------------------------| clean up method m218 (crbuffield.asl) after that when errors 65,66,68,69 (in 32-bit mode) will be investigated and resolved |------------------------------------------------------------------------------| do up to date COVERAGE files |------------------------------------------------------------------------------| the tests to check the return code of ASL compiler |------------------------------------------------------------------------------| additional option of acpiexec is required |------------------------------------------------------------------------------| 1. investigate and report the errors of bfield test run in 32-bit mode: "=========== ERRORS SUMMARY (max 255):" "11001041, functional, bfield, crbuffield.asl, 00000041" "11001042, functional, bfield, crbuffield.asl, 00000042" "11001044, functional, bfield, crbuffield.asl, 00000044" "11001045, functional, bfield, crbuffield.asl, 00000045" "=========== END." "TEST ACPICA: 32-bit : FAIL : Errors # 0x00000004" 2. do test: 64-bit constant (I64), 32-bit run mode, Store(I64, Buffer Field (64-bit; <64-bit ; >64-bit)) see bfield test, method m218. |------------------------------------------------------------------------------| aslts/src/runtime/collections/functional/descriptor/register.asl: Currently Register macro DescriptorName is not implemented. Uncomment fragment of code in Method RT19 when in will be implemented in ACPICA. |------------------------------------------------------------------------------| file bug on Timer operator again: test timing and this: [ACPI Debug] String: [0x21] "Run time (in seconds): 0x00000000" |------------------------------------------------------------------------------| replace "if (LEqual(F64, 1))" by "if (F64)" |------------------------------------------------------------------------------| see errors: "12002003, functional, constant, constants.asl, 00000003" "12002006, functional, constant, constants.asl, 00000006" |------------------------------------------------------------------------------| see summary list of tests run: grammar/TMP/pass/results |------------------------------------------------------------------------------| NOTE: to handle the opcode of ASLTS release |------------------------------------------------------------------------------| fix the test CST1 - "(\_REV, Revision" |------------------------------------------------------------------------------| write email: methods should be able to obtain and return UNINITIALIZED type data |------------------------------------------------------------------------------| Update the line of HOW_TO_USE file: C. The layout of the particular error message. |------------------------------------------------------------------------------| !DONE: !To generate: !aml/32 !aml/64 !aml/notoptimized/32 !aml/notoptimized/64 |------------------------------------------------------------------------------| estimate the run time of each test (on the particular machine) and describe that in file TESTS |------------------------------------------------------------------------------| estimate the run time of full tests and the summary times of their parts |------------------------------------------------------------------------------| image of integer 0x1234567890abcfed in 32-bit mode would be converted to buffer. See this also in relation to bug 74 (?) |------------------------------------------------------------------------------| do test converting "big constant" 0x1234567890abcfed: Name(,Integer); Name(,Buffer); Buffer Field; LocalX; ArgX; ... |------------------------------------------------------------------------------| see: 2+2=5 |------------------------------------------------------------------------------| Add the test from the demo of Bug 61 into exc.asl test when the relevant bug will be fixed. Now it is not safe for the common test run. |------------------------------------------------------------------------------| Do the test package2.asl or remove the file. |------------------------------------------------------------------------------| See aslts/reference.asl test, particularly all concerned to Method and if those problems were not resolved by reporting Error of compilation do the relevant RUNTIME tests! As well for Buffer Fields and Field Units. |------------------------------------------------------------------------------| Many files contain SEE items at their tops. See them and fix what they require! |------------------------------------------------------------------------------| Don't forget to uncomment ASL code relevant to bugs: y000,y0..., see runmode.asl |------------------------------------------------------------------------------| UPDATE exc.m084: Implement this test for all the types of objects (see for example ref.asl files about objects) and all the types of operators. name space, object life time issues |------------------------------------------------------------------------------| Update the tests in case the change of "Table 17-8 Object Conversion Rules" will take place. |------------------------------------------------------------------------------| 1. bdemo/DECL.asl, bdemo/RUN.asl Bug demo 144 excluded until the bug 182 is fixed 2. name/DECL.asl, name/RUN.asl method.asl and function.asl files excluded until the bug 182 is fixed 3. bdemo of 161 excluded again!!!!!!!!!!!!!!!!!! see test bdemo, concerning bug 161: Note: restore the initial form of the CreateField-s below of bug 161. DONE! 4. set yXXX after the relevant bug fixing! 5. change all R0?? to W0?? 6. see bdemo 118 7. test Reference: RUN.asl // Uncomment when the most bugs are fixed! 8. Method(m21c, 4) While(lpN0) { // Operands Multiply(lpC0, 4, Local6) ^ ???? Multiply(lpC0, 6, Local6) |------------------------------------------------------------------------------| bdemostabs - # Extend the PATH variable x=`echo "$PATH" | awk -F: '{ for (i=1; i<=NF; i++) { print $i}}' | grep "aslts/bin"` BUG_STATE_DIR="$x/bugstate" PATH=$PATH:$BUG_STATE_DIR this works incorrectly when the origin PATH has several "aslts/bin". |------------------------------------------------------------------------------| Statistics (of memory consumption, time of execution, etc.) reported at the end of each test and summarized by Do (asltsrun) utility should be further generalized and adapted for needs to show improving/regression of memory consumption, time execution, etc. to serve the improvement of ACPICA purposes. |------------------------------------------------------------------------------| |------------------------------------------------------------------------------| |------------------------------------------------------------------------------| |------------------------------------------------------------------------------| acpica-unix-20250404/tests/.setup0000700000175000017500000000022214773714146016031 0ustar ivanhuivanhuexport ASL="/usr/bin/iasl" export acpiexec="/usr/bin/acpiexec" export ASLTSDIR="$HOME/acpica/tests/aslts" PATH=$PATH:$HOME/acpica/tests/aslts/bin acpica-unix-20250404/tests/aslts.sh0000700000175000017500000001234414773714160016356 0ustar ivanhuivanhu#!/bin/bash # # aslts - execute ASL test suite # # Will build temporary versions of iASL and acpiexec postfix=`date +%H%M%S` tmp_iasl=/tmp/iasl-$postfix tmp_acpiexec=/tmp/acpiexec-$postfix tmp_acpibin=/tmp/acpibin-$postfix TEST_CASES= TEST_MODES= REBUILD_TOOLS=yes BINCOMPONLY=no DATATABLEONLY=no EXECONLY=no usage() { echo "Usage:" echo "`basename $0` [-c case] [-m mode] [-u]" echo "Where:" echo " -c: Specify individual test cases (can be used multiple times)" echo " -m: Specify individual test modes (can be used multiple times)" echo " -u: Do not force rebuilding of ACPICA utilities (acpiexec, iasl)" echo " -e: Perform the execution of aml files and omit binary comparison of regular aml and disassembled aml file." echo " -b: Only perform binary comparison of regular aml and disasssembled aml file" echo " -d: Only execute data table compiler/disassembler test" echo "" echo "Available test modes:" echo " n32 32-bit unoptimized code (tests are compiled with iasl -oa -r 1 and other flags)" echo " n64 64-bit unoptimized code (tests are compiled with iasl -oa -r 2 and other flags)" echo " o32 32-bit optimized code (tests are compiled with iasl -r 1 and other flags)" echo " o64 64-bit optimized code (tests are compiled with iasl -r 2 and other flags)" echo "" Do 3 exit 1 } # Setup environment and variables. # Need a path to ASLTS and iasl,acpiexec generation dir setup_environment() { aslts_dir=$1 generation_dir=$2 if [ -z "$generation_dir" ] ; then echo "missing generation directory argument" exit elif [ -z "$aslts_dir" ] ; then echo "missing aslts directory argument" exit elif [ ! -d "$generation_dir" ] ; then echo $generation_dir is not a dir exit elif [ ! -d "$aslts_dir" ] ; then echo $aslts_dir is not a dir exit fi # Variables required by ASLTS unset ASL unset acpiexec unset ASLTSDIR export ASL=$tmp_iasl export acpiexec=$tmp_acpiexec export acpibin=$tmp_acpibin export ASLTSDIR=$aslts_dir export PATH=$ASLTSDIR/bin:$PATH } # Generate both iASL and acpiexec from source build_acpi_tools() { restore_dir=$PWD cd ${generation_dir} rm -f $tmp_iasl $tmp_acpiexec $tmp_acpibin # Build native-width iASL compiler and acpiexec if [ ! -e bin/iasl -o ! -e bin/acpiexec ]; then REBUILD_TOOLS=yes fi if [ "x$REBUILD_TOOLS" = "xyes" ]; then jobs=`nproc` make clean make iasl ASLTS=TRUE -j$jobs make acpibin ASLTS=TRUE -j$jobs make acpiexec ASLTS=TRUE -j$jobs fi if [ -d "bin" ] && [ -f "bin/iasl" ]; then echo "Installing ACPICA tools" cp bin/iasl $tmp_iasl cp bin/acpiexec $tmp_acpiexec cp bin/acpibin $tmp_acpibin else echo "Could not find iASL/acpiexec tools" exit fi # Ensure that the tools are available if [ ! -f $tmp_iasl ] ; then echo "iasl compiler not found" exit elif [ ! -f $tmp_acpiexec ] ; then echo "acpiexec utility not found" exit elif [ ! -f $tmp_acpibin ] ; then echo "acpibin utility not found" exit fi cd $restore_dir } # Run a simple compiler test. # This test does the following: # 1 generate all sample tables in the compiler # 2 compile all tables (.asl -> .aml) # 3 disassembles all tables (.aml -> .dsl) # 4 recompiles all all tables (.dsl -> recomp.aml) # 5 runs binary comparison between .aml and recomp.aml run_compiler_template_test() { pushd templates rm -f *.asl *.aml *.dsl $ASL -T all 2> /dev/null for filename in *.asl do make -s NAME=$(basename "$filename" .asl) done rm -f *.asl *.aml *.dsl popd } # Compile and run the ASLTS suite run_aslts() { # Remove a previous version of the AML test code version=`$ASL | grep version | awk '{print $5}'` rm -rf $ASLTSDIR/tmp/aml/$version # run templates test run_compiler_template_test if [ "x$DATATABLEONLY" = "xyes" ]; then return 0 fi; if [ "x$TEST_MODES" = "x" ]; then TEST_MODES="n32 n64 o32 o64" fi Do 0 $TEST_MODES $TEST_CASES $EXECONLY if [ $? -ne 0 ]; then echo "ASLTS Compile Failure" exit 1 fi # Execute the test suite if [ "x$BINCOMPONLY" = "xno" ]; then echo "" echo "ASL Test Suite Started: `date`" start_time=$(date) if [ "x$TEST_MODES" = "x" ]; then TEST_MODES="n32 n64 o32 o64" fi Do 1 $TEST_MODES $TEST_CASES echo "" echo "ASL Test Suite Finished: `date`" echo " Started: $start_time" rm -f $tmp_iasl $tmp_acpiexec $tmp_acpibin fi; } SRCDIR=`(cd \`dirname $0\`; cd ..; pwd)` setup_environment $SRCDIR/tests/aslts $SRCDIR/generate/unix # To use common utilities . $SRCDIR/tests/aslts/bin/common . $SRCDIR/tests/aslts/bin/settings RESET_SETTINGS INIT_ALL_AVAILABLE_CASES INIT_ALL_AVAILABLE_MODES while getopts "c:m:uebd" opt do case $opt in b) BINCOMPONLY=yes echo "Running only binary comparisons" ;; c) get_collection_opcode "$OPTARG" if [ $? -eq $COLLS_NUM ]; then echo "Invalid test case: $OPTARG" usage else TEST_CASES="$OPTARG $TEST_CASES" fi ;; d) DATATABLEONLY=yes echo "Running only data table test" ;; e) EXECONLY=yes echo "Running tests without binary comparisons" ;; m) check_mode_id "$OPTARG" if [ $? -eq 1 ]; then echo "Invalid test mode: $OPTARG" usage else TEST_MODES="$OPTARG $TEST_MODES" fi ;; u) REBUILD_TOOLS=no ;; ?) echo "Invalid argument: $opt" usage ;; esac done shift $(($OPTIND - 1)) build_acpi_tools run_aslts acpica-unix-20250404/Makefile0000775000175000017500000000133014773714131015175 0ustar ivanhuivanhu# # Common make for acpica tools and utilities # # # Note: This makefile is intended to be used from within the native # ACPICA directory structure, from under top level acpica directory. # It specifically places all the object files for each tool in separate # generate/unix subdirectories, not within the various ACPICA source # code directories. This prevents collisions between different # compilations of the same source file with different compile options. # ifeq ($(OS),efi) BUILD_DIRECTORY_PATH = "generate/efi" include generate/efi/Makefile.config include generate/efi/Makefile.common else BUILD_DIRECTORY_PATH = "generate/unix" include generate/unix/Makefile.config include generate/unix/Makefile.common endif acpica-unix-20250404/source/0000775000175000017500000000000014773713561015043 5ustar ivanhuivanhuacpica-unix-20250404/source/include/0000775000175000017500000000000014774137774016475 5ustar ivanhuivanhuacpica-unix-20250404/source/include/acevents.h0000775000175000017500000002326614773714133020457 0ustar ivanhuivanhu/****************************************************************************** * * Name: acevents.h - Event subcomponent prototypes and defines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACEVENTS_H__ #define __ACEVENTS_H__ /* * Conditions to trigger post enabling GPE polling: * It is not sufficient to trigger edge-triggered GPE with specific GPE * chips, software need to poll once after enabling. */ #ifdef ACPI_USE_GPE_POLLING #define ACPI_GPE_IS_POLLING_NEEDED(__gpe__) \ ((__gpe__)->RuntimeCount == 1 && \ (__gpe__)->Flags & ACPI_GPE_INITIALIZED && \ ((__gpe__)->Flags & ACPI_GPE_XRUPT_TYPE_MASK) == ACPI_GPE_EDGE_TRIGGERED) #else #define ACPI_GPE_IS_POLLING_NEEDED(__gpe__) FALSE #endif /* * evevent */ ACPI_STATUS AcpiEvInitializeEvents ( void); ACPI_STATUS AcpiEvInstallXruptHandlers ( void); UINT32 AcpiEvFixedEventDetect ( void); /* * evmisc */ BOOLEAN AcpiEvIsNotifyObject ( ACPI_NAMESPACE_NODE *Node); UINT32 AcpiEvGetGpeNumberIndex ( UINT32 GpeNumber); ACPI_STATUS AcpiEvQueueNotifyRequest ( ACPI_NAMESPACE_NODE *Node, UINT32 NotifyValue); /* * evglock - Global Lock support */ ACPI_STATUS AcpiEvInitGlobalLockHandler ( void); ACPI_HW_DEPENDENT_RETURN_OK ( ACPI_STATUS AcpiEvAcquireGlobalLock( UINT16 Timeout)) ACPI_HW_DEPENDENT_RETURN_OK ( ACPI_STATUS AcpiEvReleaseGlobalLock( void)) ACPI_STATUS AcpiEvRemoveGlobalLockHandler ( void); /* * evgpe - Low-level GPE support */ UINT32 AcpiEvGpeDetect ( ACPI_GPE_XRUPT_INFO *GpeXruptList); ACPI_STATUS AcpiEvUpdateGpeEnableMask ( ACPI_GPE_EVENT_INFO *GpeEventInfo); ACPI_STATUS AcpiEvEnableGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo); ACPI_STATUS AcpiEvMaskGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo, BOOLEAN IsMasked); ACPI_STATUS AcpiEvAddGpeReference ( ACPI_GPE_EVENT_INFO *GpeEventInfo, BOOLEAN ClearOnEnable); ACPI_STATUS AcpiEvRemoveGpeReference ( ACPI_GPE_EVENT_INFO *GpeEventInfo); ACPI_GPE_EVENT_INFO * AcpiEvGetGpeEventInfo ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber); ACPI_GPE_EVENT_INFO * AcpiEvLowGetGpeInfo ( UINT32 GpeNumber, ACPI_GPE_BLOCK_INFO *GpeBlock); ACPI_STATUS AcpiEvFinishGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo); UINT32 AcpiEvDetectGpe ( ACPI_NAMESPACE_NODE *GpeDevice, ACPI_GPE_EVENT_INFO *GpeEventInfo, UINT32 GpeNumber); /* * evgpeblk - Upper-level GPE block support */ ACPI_STATUS AcpiEvCreateGpeBlock ( ACPI_NAMESPACE_NODE *GpeDevice, UINT64 Address, UINT8 SpaceId, UINT32 RegisterCount, UINT16 GpeBlockBaseNumber, UINT32 InterruptNumber, ACPI_GPE_BLOCK_INFO **ReturnGpeBlock); ACPI_STATUS AcpiEvInitializeGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context); ACPI_HW_DEPENDENT_RETURN_OK ( ACPI_STATUS AcpiEvDeleteGpeBlock ( ACPI_GPE_BLOCK_INFO *GpeBlock)) UINT32 AcpiEvGpeDispatch ( ACPI_NAMESPACE_NODE *GpeDevice, ACPI_GPE_EVENT_INFO *GpeEventInfo, UINT32 GpeNumber); /* * evgpeinit - GPE initialization and update */ ACPI_STATUS AcpiEvGpeInitialize ( void); ACPI_HW_DEPENDENT_RETURN_VOID ( void AcpiEvUpdateGpes ( ACPI_OWNER_ID TableOwnerId)) ACPI_STATUS AcpiEvMatchGpeMethod ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); /* * evgpeutil - GPE utilities */ ACPI_STATUS AcpiEvWalkGpeList ( ACPI_GPE_CALLBACK GpeWalkCallback, void *Context); ACPI_STATUS AcpiEvGetGpeDevice ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context); ACPI_STATUS AcpiEvGetGpeXruptBlock ( UINT32 InterruptNumber, ACPI_GPE_XRUPT_INFO **GpeXruptBlock); ACPI_STATUS AcpiEvDeleteGpeXrupt ( ACPI_GPE_XRUPT_INFO *GpeXrupt); ACPI_STATUS AcpiEvDeleteGpeHandlers ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context); /* * evhandler - Address space handling */ ACPI_OPERAND_OBJECT * AcpiEvFindRegionHandler ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_OPERAND_OBJECT *HandlerObj); BOOLEAN AcpiEvHasDefaultHandler ( ACPI_NAMESPACE_NODE *Node, ACPI_ADR_SPACE_TYPE SpaceId); ACPI_STATUS AcpiEvInstallRegionHandlers ( void); ACPI_STATUS AcpiEvInstallSpaceHandler ( ACPI_NAMESPACE_NODE *Node, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler, ACPI_ADR_SPACE_SETUP Setup, void *Context); /* * evregion - Operation region support */ ACPI_STATUS AcpiEvInitializeOpRegions ( void); ACPI_STATUS AcpiEvAddressSpaceDispatch ( ACPI_OPERAND_OBJECT *RegionObj, ACPI_OPERAND_OBJECT *FieldObj, UINT32 Function, UINT32 RegionOffset, UINT32 BitWidth, UINT64 *Value); ACPI_STATUS AcpiEvAttachRegion ( ACPI_OPERAND_OBJECT *HandlerObj, ACPI_OPERAND_OBJECT *RegionObj, BOOLEAN AcpiNsIsLocked); void AcpiEvDetachRegion ( ACPI_OPERAND_OBJECT *RegionObj, BOOLEAN AcpiNsIsLocked); void AcpiEvExecuteRegMethods ( ACPI_NAMESPACE_NODE *Node, ACPI_ADR_SPACE_TYPE SpaceId, UINT32 Function); ACPI_STATUS AcpiEvExecuteRegMethod ( ACPI_OPERAND_OBJECT *RegionObj, UINT32 Function); /* * evregini - Region initialization and setup */ ACPI_STATUS AcpiEvSystemMemoryRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext); ACPI_STATUS AcpiEvIoSpaceRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext); ACPI_STATUS AcpiEvPciConfigRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext); ACPI_STATUS AcpiEvCmosRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext); ACPI_STATUS AcpiEvPciBarRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext); ACPI_STATUS AcpiEvDataTableRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext); ACPI_STATUS AcpiEvDefaultRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext); ACPI_STATUS AcpiEvInitializeRegion ( ACPI_OPERAND_OBJECT *RegionObj); BOOLEAN AcpiEvIsPciRootBridge ( ACPI_NAMESPACE_NODE *Node); /* * evsci - SCI (System Control Interrupt) handling/dispatch */ UINT32 ACPI_SYSTEM_XFACE AcpiEvGpeXruptHandler ( void *Context); UINT32 AcpiEvSciDispatch ( void); UINT32 AcpiEvInstallSciHandler ( void); ACPI_STATUS AcpiEvRemoveAllSciHandlers ( void); ACPI_HW_DEPENDENT_RETURN_VOID ( void AcpiEvTerminate ( void)) #endif /* __ACEVENTS_H__ */ acpica-unix-20250404/source/include/actbinfo.h0000775000175000017500000010477514773714133020441 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: actbinfo - Table disassembly info for non-AML tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * Macros used to generate offsets to specific table fields */ #define ACPI_AGDI_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_AGDI,f) #define ACPI_ASPT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_ASPT,f) #define ACPI_FACS_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_FACS,f) #define ACPI_GAS_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_GENERIC_ADDRESS,f) #define ACPI_HDR_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_HEADER,f) #define ACPI_RSDP_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_RSDP,f) #define ACPI_BDAT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_BDAT,f) #define ACPI_BERT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_BERT,f) #define ACPI_BGRT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_BGRT,f) #define ACPI_BOOT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_BOOT,f) #define ACPI_CCEL_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_CCEL,f) #define ACPI_CPEP_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_CPEP,f) #define ACPI_DBG2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_DBG2,f) #define ACPI_DBGP_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_DBGP,f) #define ACPI_DMAR_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_DMAR,f) #define ACPI_DRTM_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_DRTM,f) #define ACPI_ECDT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_ECDT,f) #define ACPI_EINJ_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_EINJ,f) #define ACPI_ERDT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_ERDT,f) #define ACPI_ERST_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_ERST,f) #define ACPI_GTDT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_GTDT,f) #define ACPI_HEST_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_HEST,f) #define ACPI_HPET_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_HPET,f) #define ACPI_HMAT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_HMAT,f) #define ACPI_IORT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_IORT,f) #define ACPI_IVRS_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_IVRS,f) #define ACPI_MADT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_MADT,f) #define ACPI_MCFG_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_MCFG,f) #define ACPI_MCHI_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_MCHI,f) #define ACPI_MPST_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_MPST,f) #define ACPI_MRRM_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_MRRM,f) #define ACPI_MSCT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_MSCT,f) #define ACPI_NFIT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_NFIT,f) #define ACPI_PCCT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_PCCT,f) #define ACPI_PDTT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_PDTT,f) #define ACPI_PMTT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_PMTT,f) #define ACPI_RASF_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_RASF,f) #define ACPI_RAS2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_RAS2,f) #define ACPI_RGRT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_RGRT,f) #define ACPI_RHCT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_RHCT,f) #define ACPI_RIMT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_RIMT,f) #define ACPI_S3PT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_S3PT,f) #define ACPI_SBST_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SBST,f) #define ACPI_SDEI_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SDEI,f) #define ACPI_SDEV_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SDEV,f) #define ACPI_SLIT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SLIT,f) #define ACPI_SPCR_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SPCR,f) #define ACPI_SPMI_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SPMI,f) #define ACPI_SRAT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SRAT,f) #define ACPI_STAO_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_STAO,f) #define ACPI_SVKL_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SVKL,f) #define ACPI_TCPA_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_TCPA_HDR,f) #define ACPI_TDEL_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_TDEL,f) #define ACPI_TPM2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_TPM2,f) #define ACPI_TPM23_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_TPM23,f) #define ACPI_UEFI_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_UEFI,f) #define ACPI_VIOT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_VIOT,f) #define ACPI_WAET_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_WAET,f) #define ACPI_WDAT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_WDAT,f) #define ACPI_WDDT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_WDDT,f) #define ACPI_WDRT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_WDRT,f) #define ACPI_WPBT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_WPBT,f) #define ACPI_WPBT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_WPBT_UNICODE,f) #define ACPI_WSMT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_WSMT,f) #define ACPI_XENV_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_XENV,f) /* Subtables */ #define ACPI_AESTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_HEADER,f) #define ACPI_AEST0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_PROCESSOR,f) #define ACPI_AEST0A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_PROCESSOR_CACHE,f) #define ACPI_AEST0B_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_PROCESSOR_TLB,f) #define ACPI_AEST0C_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_PROCESSOR_GENERIC,f) #define ACPI_AEST1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_MEMORY,f) #define ACPI_AEST2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_SMMU,f) #define ACPI_AEST3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_VENDOR,f) #define ACPI_AEST3A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_VENDOR_V2,f) #define ACPI_AEST4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_GIC,f) #define ACPI_AEST5_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_PCIE,f) #define ACPI_AEST6_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_PROXY,f) #define ACPI_AEST0D_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_NODE_INTERFACE,f) #define ACPI_AEST0DH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_NODE_INTERFACE_HEADER,f) #define ACPI_AEST0D4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_NODE_INTERFACE_4K,f) #define ACPI_AEST0D16_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_NODE_INTERFACE_16K,f) #define ACPI_AEST0D64_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_NODE_INTERFACE_64K,f) #define ACPI_AEST0E_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_NODE_INTERRUPT,f) #define ACPI_AEST0EA_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_AEST_NODE_INTERRUPT_V2,f) #define ACPI_APMTN_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_APMT_NODE,f) #define ACPI_ASF0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASF_INFO,f) #define ACPI_ASF1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASF_ALERT,f) #define ACPI_ASF1a_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASF_ALERT_DATA,f) #define ACPI_ASF2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASF_REMOTE,f) #define ACPI_ASF2a_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASF_CONTROL_DATA,f) #define ACPI_ASF3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASF_RMCP,f) #define ACPI_ASF4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASF_ADDRESS,f) #define ACPI_ASPTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASPT_HEADER,f) #define ACPI_ASPT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASPT_GLOBAL_REGS,f) #define ACPI_ASPT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASPT_SEV_MBOX_REGS,f) #define ACPI_ASPT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ASPT_ACPI_MBOX_REGS,f) #define ACPI_CDAT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_CDAT,f) #define ACPI_CDATH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CDAT_HEADER,f) #define ACPI_CDAT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CDAT_DSMAS,f) #define ACPI_CDAT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CDAT_DSLBIS,f) #define ACPI_CDAT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CDAT_DSMSCIS,f) #define ACPI_CDAT3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CDAT_DSIS,f) #define ACPI_CDAT4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CDAT_DSEMTS,f) #define ACPI_CDAT5_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CDAT_SSLBIS,f) #define ACPI_CDATE_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CDAT_SSLBE,f) #define ACPI_CEDT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CEDT_HEADER, f) #define ACPI_CEDT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CEDT_CHBS, f) #define ACPI_CEDT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CEDT_CFMWS, f) #define ACPI_CEDT1_TE_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CEDT_CFMWS_TARGET_ELEMENT, f) #define ACPI_CEDT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CEDT_CXIMS, f) #define ACPI_CEDT2_TE_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CEDT_CXIMS_TARGET_ELEMENT, f) #define ACPI_CPEP0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CPEP_POLLING,f) #define ACPI_CSRT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CSRT_GROUP,f) #define ACPI_CSRT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CSRT_SHARED_INFO,f) #define ACPI_CSRT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_CSRT_DESCRIPTOR,f) #define ACPI_DBG20_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DBG2_DEVICE,f) #define ACPI_DMARS_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DMAR_DEVICE_SCOPE,f) #define ACPI_DMAR0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DMAR_HARDWARE_UNIT,f) #define ACPI_DMAR1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DMAR_RESERVED_MEMORY,f) #define ACPI_DMAR2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DMAR_ATSR,f) #define ACPI_DMAR3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DMAR_RHSA,f) #define ACPI_DMAR4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DMAR_ANDD,f) #define ACPI_DMAR5_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DMAR_SATC,f) #define ACPI_DMAR6_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DMAR_SIDP,f) #define ACPI_DRTM0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DRTM_VTABLE_LIST,f) #define ACPI_DRTM1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DRTM_RESOURCE_LIST,f) #define ACPI_DRTM1a_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DRTM_RESOURCE,f) #define ACPI_DRTM2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_DRTM_DPS_ID,f) #define ACPI_EINJ0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_WHEA_HEADER,f) #define ACPI_ERDT_HDR_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SUBTBL_HDR_16,f) #define ACPI_ERDT_CACD_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_CACD,f) #define ACPI_ERDT_CARC_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_CARC,f) #define ACPI_ERDT_CARD_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_CARD,f) #define ACPI_ERDT_CMRC_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_CMRC,f) #define ACPI_ERDT_CMRD_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_CMRD,f) #define ACPI_ERDT_DACD_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_DACD,f) #define ACPI_ERDT_DACD_PATH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_DACD_PATHS,f) #define ACPI_ERDT_IBAD_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_IBAD,f) #define ACPI_ERDT_IBRD_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_IBRD,f) #define ACPI_ERDT_MARC_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_MARC,f) #define ACPI_ERDT_MMRC_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_MMRC,f) #define ACPI_ERDT_RMDD_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_ERDT_RMDD,f) #define ACPI_ERST0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_WHEA_HEADER,f) #define ACPI_FPDTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_FPDT_HEADER,f) #define ACPI_FPDT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_FPDT_BOOT_POINTER,f) #define ACPI_FPDT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_FPDT_S3PT_POINTER,f) #define ACPI_GTDT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_GTDT_TIMER_BLOCK,f) #define ACPI_GTDT0a_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_GTDT_TIMER_ENTRY,f) #define ACPI_GTDT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_GTDT_WATCHDOG,f) #define ACPI_GTDTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_GTDT_HEADER,f) #define ACPI_GTDT_EL2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_GTDT_EL2,f) #define ACPI_HEST0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_IA_MACHINE_CHECK,f) #define ACPI_HEST1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_IA_CORRECTED,f) #define ACPI_HEST2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_IA_NMI,f) #define ACPI_HEST6_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_AER_ROOT,f) #define ACPI_HEST7_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_AER,f) #define ACPI_HEST8_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_AER_BRIDGE,f) #define ACPI_HEST9_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_GENERIC,f) #define ACPI_HEST10_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_GENERIC_V2,f) #define ACPI_HEST11_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_IA_DEFERRED_CHECK,f) #define ACPI_HESTN_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_NOTIFY,f) #define ACPI_HESTB_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HEST_IA_ERROR_BANK,f) #define ACPI_HMAT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HMAT_PROXIMITY_DOMAIN,f) #define ACPI_HMAT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HMAT_LOCALITY,f) #define ACPI_HMAT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HMAT_CACHE,f) #define ACPI_HMATH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_HMAT_STRUCTURE,f) #define ACPI_IORT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_ITS_GROUP,f) #define ACPI_IORT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_NAMED_COMPONENT,f) #define ACPI_IORT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_ROOT_COMPLEX,f) #define ACPI_IORT3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_SMMU,f) #define ACPI_IORT3A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_SMMU_GSI,f) #define ACPI_IORT4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_SMMU_V3,f) #define ACPI_IORT5_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_PMCG,f) #define ACPI_IORT6_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_RMR,f) #define ACPI_IORT6A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_RMR_DESC,f) #define ACPI_IORTA_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_MEMORY_ACCESS,f) #define ACPI_IORTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_NODE,f) #define ACPI_IORTM_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IORT_ID_MAPPING,f) #define ACPI_IVRSH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IVRS_HEADER,f) #define ACPI_IVRS0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IVRS_HARDWARE1,f) #define ACPI_IVRS01_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IVRS_HARDWARE2,f) #define ACPI_IVRS1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IVRS_MEMORY,f) #define ACPI_IVRSD_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IVRS_DE_HEADER,f) #define ACPI_IVRS8A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IVRS_DEVICE8A,f) #define ACPI_IVRS8B_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IVRS_DEVICE8B,f) #define ACPI_IVRS8C_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IVRS_DEVICE8C,f) #define ACPI_IVRSHID_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_IVRS_DEVICE_HID,f) #define ACPI_LPITH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_LPIT_HEADER,f) #define ACPI_LPIT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_LPIT_NATIVE,f) #define ACPI_MADT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_APIC,f) #define ACPI_MADT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_IO_APIC,f) #define ACPI_MADT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_INTERRUPT_OVERRIDE,f) #define ACPI_MADT3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_NMI_SOURCE,f) #define ACPI_MADT4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_APIC_NMI,f) #define ACPI_MADT5_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_APIC_OVERRIDE,f) #define ACPI_MADT6_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_IO_SAPIC,f) #define ACPI_MADT7_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_SAPIC,f) #define ACPI_MADT8_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_INTERRUPT_SOURCE,f) #define ACPI_MADT9_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_X2APIC,f) #define ACPI_MADT10_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_LOCAL_X2APIC_NMI,f) #define ACPI_MADT11_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_INTERRUPT,f) #define ACPI_MADT12_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_DISTRIBUTOR,f) #define ACPI_MADT13_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_MSI_FRAME,f) #define ACPI_MADT14_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_REDISTRIBUTOR,f) #define ACPI_MADT15_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_GENERIC_TRANSLATOR,f) #define ACPI_MADT16_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_MULTIPROC_WAKEUP,f) #define ACPI_MADT17_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_CORE_PIC,f) #define ACPI_MADT18_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_LIO_PIC,f) #define ACPI_MADT19_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_HT_PIC,f) #define ACPI_MADT20_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_EIO_PIC,f) #define ACPI_MADT21_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_MSI_PIC,f) #define ACPI_MADT22_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_BIO_PIC,f) #define ACPI_MADT23_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_LPC_PIC,f) #define ACPI_MADT24_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_RINTC,f) #define ACPI_MADT25_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_IMSIC,f) #define ACPI_MADT26_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_APLIC,f) #define ACPI_MADT27_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_PLIC,f) #define ACPI_MADT128_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MADT_OEM_DATA,f) #define ACPI_MADTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SUBTABLE_HEADER,f) #define ACPI_MCFG0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MCFG_ALLOCATION,f) #define ACPI_MPAM0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_MSC_NODE,f) #define ACPI_MPAM1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_NODE,f) #define ACPI_MPAM1A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_CACHE_LOCATOR,f) #define ACPI_MPAM1B_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_MEMORY_LOCATOR,f) #define ACPI_MPAM1C_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_SMMU_INTERFACE,f) #define ACPI_MPAM1D_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_MEMCACHE_INTERFACE,f) #define ACPI_MPAM1E_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_ACPI_INTERFACE,f) #define ACPI_MPAM1F_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_INTERCONNECT_INTERFACE,f) #define ACPI_MPAM1G_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_RESOURCE_GENERIC_LOCATOR,f) #define ACPI_MPAM2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPAM_FUNC_DEPS,f) #define ACPI_MPST0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPST_POWER_NODE,f) #define ACPI_MPST0A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPST_POWER_STATE,f) #define ACPI_MPST0B_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPST_COMPONENT,f) #define ACPI_MPST1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPST_DATA_HDR,f) #define ACPI_MPST2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MPST_POWER_DATA,f) #define ACPI_MRRM0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MRRM_MEM_RANGE_ENTRY,f) #define ACPI_MSCT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_MSCT_PROXIMITY,f) #define ACPI_NFITH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_NFIT_HEADER,f) #define ACPI_NFIT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_NFIT_SYSTEM_ADDRESS,f) #define ACPI_NFIT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_NFIT_MEMORY_MAP,f) #define ACPI_NFIT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_NFIT_INTERLEAVE,f) #define ACPI_NFIT3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_NFIT_SMBIOS,f) #define ACPI_NFIT4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_NFIT_CONTROL_REGION,f) #define ACPI_NFIT5_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_NFIT_DATA_REGION,f) #define ACPI_NFIT6_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_NFIT_FLUSH_ADDRESS,f) #define ACPI_NFIT7_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_NFIT_CAPABILITIES,f) #define ACPI_PCCT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PCCT_SUBSPACE,f) #define ACPI_PCCT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PCCT_HW_REDUCED,f) #define ACPI_PCCT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PCCT_HW_REDUCED_TYPE2,f) #define ACPI_PCCT3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PCCT_EXT_PCC_MASTER,f) #define ACPI_PCCT4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PCCT_EXT_PCC_SLAVE,f) #define ACPI_PCCT5_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PCCT_HW_REG,f) #define ACPI_PDTT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PDTT_CHANNEL,f) #define ACPI_PHATH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PHAT_HEADER,f) #define ACPI_PHAT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PHAT_VERSION_DATA,f) #define ACPI_PHAT0A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PHAT_VERSION_ELEMENT,f) #define ACPI_PHAT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PHAT_HEALTH_DATA,f) #define ACPI_PMTT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PMTT_SOCKET,f) #define ACPI_PMTT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PMTT_CONTROLLER,f) #define ACPI_PMTT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PMTT_PHYSICAL_COMPONENT,f) #define ACPI_PMTT_VENDOR_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PMTT_VENDOR_SPECIFIC,f) #define ACPI_PMTTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PMTT_HEADER,f) #define ACPI_PPTTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SUBTABLE_HEADER,f) #define ACPI_PPTT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PPTT_PROCESSOR,f) #define ACPI_PPTT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PPTT_CACHE,f) #define ACPI_PPTT1A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PPTT_CACHE_V1,f) #define ACPI_PPTT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PPTT_ID,f) #define ACPI_PRMTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_PRMT_HEADER,f) #define ACPI_PRMT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PRMT_MODULE_INFO,f) #define ACPI_PRMT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_PRMT_HANDLER_INFO,f) #define ACPI_RAS2_PCC_DESC_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RAS2_PCC_DESC,f) #define ACPI_RHCTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RHCT_NODE_HEADER,f) #define ACPI_RHCT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RHCT_ISA_STRING,f) #define ACPI_RHCT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RHCT_CMO_NODE,f) #define ACPI_RHCT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RHCT_MMU_NODE,f) #define ACPI_RHCTFFFF_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RHCT_HART_INFO,f) #define ACPI_RIMTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RIMT_NODE,f) #define ACPI_RIMTI_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RIMT_IOMMU,f) #define ACPI_RIMTW_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RIMT_IOMMU_WIRE_GSI,f) #define ACPI_RIMTP_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RIMT_PCIE_RC,f) #define ACPI_RIMTM_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RIMT_ID_MAPPING,f) #define ACPI_RIMTN_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_RIMT_PLATFORM_DEVICE,f) #define ACPI_S3PTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_FPDT_HEADER,f) #define ACPI_S3PT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_S3PT_RESUME,f) #define ACPI_S3PT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_S3PT_SUSPEND,f) #define ACPI_SDEVH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SDEV_HEADER,f) #define ACPI_SDEV0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SDEV_NAMESPACE,f) #define ACPI_SDEV0B_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SDEV_SECURE_COMPONENT,f) #define ACPI_SDEVCH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SDEV_HEADER,f) #define ACPI_SDEVC0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SDEV_ID_COMPONENT, f) #define ACPI_SDEVC1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SDEV_MEM_COMPONENT, f) #define ACPI_SDEV1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SDEV_PCIE,f) #define ACPI_SDEV1A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SDEV_PCIE_PATH,f) #define ACPI_SLIC_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_SLIC,f) #define ACPI_SRATH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SUBTABLE_HEADER,f) #define ACPI_SRAT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SRAT_CPU_AFFINITY,f) #define ACPI_SRAT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SRAT_MEM_AFFINITY,f) #define ACPI_SRAT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SRAT_X2APIC_CPU_AFFINITY,f) #define ACPI_SRAT3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SRAT_GICC_AFFINITY,f) #define ACPI_SRAT4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SRAT_GIC_ITS_AFFINITY,f) #define ACPI_SRAT5_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SRAT_GENERIC_AFFINITY,f) #define ACPI_SRAT7_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SRAT_RINTC_AFFINITY,f) #define ACPI_SVKL0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_SVKL_KEY,f) #define ACPI_TCPA_CLIENT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_TCPA_CLIENT,f) #define ACPI_TCPA_SERVER_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_TCPA_SERVER,f) #define ACPI_TPM2A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TPM2_TRAILER,f) #define ACPI_TPM211_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TPM2_ARM_SMC,f) #define ACPI_TPM23A_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TPM23_TRAILER,f) #define ACPI_VIOTH_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_VIOT_HEADER,f) #define ACPI_VIOT1_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_VIOT_PCI_RANGE,f) #define ACPI_VIOT2_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_VIOT_MMIO,f) #define ACPI_VIOT3_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_VIOT_VIRTIO_IOMMU_PCI,f) #define ACPI_VIOT4_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_VIOT_VIRTIO_IOMMU_MMIO,f) #define ACPI_WDAT0_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_WDAT_ENTRY,f) /* * Simplify access to flag fields by breaking them up into bytes */ #define ACPI_FLAG_OFFSET(d,f,o) (UINT16) (ACPI_OFFSET (d,f) + o) /* Flags */ #define ACPI_AEST0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_AEST_PROCESSOR,f,o) #define ACPI_AEST0D_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_AEST_NODE_INTERFACE,f,o) #define ACPI_AEST0E_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_AEST_NODE_INTERRUPT,f,o) #define ACPI_AEST0EA_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_AEST_NODE_INTERRUPT_V2,f,o) #define ACPI_AGDI_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_AGDI,f,o) #define ACPI_APMTN_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_APMT_NODE,f,o) #define ACPI_BGRT_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_BGRT,f,o) #define ACPI_DMAR0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_DMAR_HARDWARE_UNIT,f,o) #define ACPI_DRTM_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_DRTM,f,o) #define ACPI_DRTM1a_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_DRTM_RESOURCE,f,o) #define ACPI_ERDT_RMDD_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_ERDT_RMDD,f,o) #define ACPI_FADT_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_FADT,f,o) #define ACPI_FACS_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_FACS,f,o) #define ACPI_HPET_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_HPET,f,o) #define ACPI_PPTT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_PPTT_PROCESSOR,f,o) #define ACPI_PPTT1_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_PPTT_CACHE,f,o) #define ACPI_PPTT1A_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_PPTT_CACHE_V1,f,o) #define ACPI_SRAT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SRAT_CPU_AFFINITY,f,o) #define ACPI_SRAT1_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SRAT_MEM_AFFINITY,f,o) #define ACPI_SRAT2_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SRAT_X2APIC_CPU_AFFINITY,f,o) #define ACPI_SRAT3_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SRAT_GICC_AFFINITY,f,o) #define ACPI_SRAT5_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SRAT_GENERIC_AFFINITY,f,o) #define ACPI_SRAT7_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SRAT_RINTC_AFFINITY,f,o) #define ACPI_GTDT_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_GTDT,f,o) #define ACPI_GTDT0a_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_GTDT_TIMER_ENTRY,f,o) #define ACPI_GTDT1_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_GTDT_WATCHDOG,f,o) #define ACPI_HMAT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_HMAT_PROXIMITY_DOMAIN,f,o) #define ACPI_HMAT1_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_HMAT_LOCALITY,f,o) #define ACPI_HMAT2_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_HMAT_CACHE,f,o) #define ACPI_IORT3_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_IORT_SMMU,f,o) #define ACPI_IORT3a_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_IORT_SMMU_GSI,f,o) #define ACPI_IORT4_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_IORT_SMMU_V3,f,o) #define ACPI_IORT6_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_IORT_RMR,f,o) #define ACPI_IORTA_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_IORT_MEMORY_ACCESS,f,o) #define ACPI_IORTM_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_IORT_ID_MAPPING,f,o) #define ACPI_IVRS_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_IVRS_HEADER,f,o) #define ACPI_IVRSDE_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_IVRS_DE_HEADER,f,o) #define ACPI_LPITH_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_LPIT_HEADER,f,o) #define ACPI_MADT_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_MADT,f,o) #define ACPI_MADT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_APIC,f,o) #define ACPI_MADT2_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_INTERRUPT_OVERRIDE,f,o) #define ACPI_MADT3_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_NMI_SOURCE,f,o) #define ACPI_MADT4_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_APIC_NMI,f,o) #define ACPI_MADT7_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_SAPIC,f,o) #define ACPI_MADT8_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_INTERRUPT_SOURCE,f,o) #define ACPI_MADT9_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_X2APIC,f,o) #define ACPI_MADT10_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_LOCAL_X2APIC_NMI,f,o) #define ACPI_MADT11_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_GENERIC_INTERRUPT,f,o) #define ACPI_MADT13_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_GENERIC_MSI_FRAME,f,o) #define ACPI_MADT14_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_GENERIC_REDISTRIBUTOR,f,o) #define ACPI_MADT15_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MADT_GENERIC_TRANSLATOR,f,o) #define ACPI_MPST0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MPST_POWER_NODE,f,o) #define ACPI_MPST2_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_MPST_POWER_DATA,f,o) #define ACPI_NFIT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_NFIT_SYSTEM_ADDRESS,f,o) #define ACPI_NFIT1_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_NFIT_MEMORY_MAP,f,o) #define ACPI_NFIT4_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_NFIT_CONTROL_REGION,f,o) #define ACPI_NFIT7_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_NFIT_CAPABILITIES,f,o) #define ACPI_PCCT_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_PCCT,f,o) #define ACPI_PCCT1_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_PCCT_HW_REDUCED,f,o) #define ACPI_PCCT2_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_PCCT_HW_REDUCED_TYPE2,f,o) #define ACPI_PCCT3_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_PCCT_EXT_PCC_MASTER,f,o) #define ACPI_PCCT4_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_PCCT_EXT_PCC_SLAVE,f,o) #define ACPI_PDTT0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_PDTT_CHANNEL,f,o) #define ACPI_PMTTH_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_PMTT_HEADER,f,o) #define ACPI_SDEVH_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_SDEV_HEADER,f,o) #define ACPI_WDDT_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_WDDT,f,o) #define ACPI_WSMT_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_TABLE_WSMT,f,o) #define ACPI_EINJ0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_WHEA_HEADER,f,o) #define ACPI_ERST0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_WHEA_HEADER,f,o) #define ACPI_HEST0_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_HEST_IA_MACHINE_CHECK,f,o) #define ACPI_HEST1_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_HEST_IA_CORRECTED,f,o) #define ACPI_HEST6_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_HEST_AER_ROOT,f,o) #define ACPI_HEST11_FLAG_OFFSET(f,o) ACPI_FLAG_OFFSET (ACPI_HEST_IA_DEFERRED_CHECK,f,o) /* * Required terminator for all tables below */ #define ACPI_DMT_TERMINATOR {ACPI_DMT_EXIT, 0, NULL, 0} #define ACPI_DMT_NEW_LINE {ACPI_DMT_EXTRA_TEXT, 0, "\n", 0} acpica-unix-20250404/source/include/acuuid.h0000775000175000017500000001251614773714133020115 0ustar ivanhuivanhu/****************************************************************************** * * Name: acuuid.h - ACPI-related UUID/GUID definitions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACUUID_H__ #define __ACUUID_H__ /* * Note1: UUIDs and GUIDs are defined to be identical in ACPI. * * Note2: This file is standalone and should remain that way. */ /* Controllers */ #define UUID_GPIO_CONTROLLER "4f248f40-d5e2-499f-834c-27758ea1cd3f" #define UUID_USB_CONTROLLER "ce2ee385-00e6-48cb-9f05-2edb927c4899" #define UUID_SATA_CONTROLLER "e4db149b-fcfe-425b-a6d8-92357d78fc7f" /* Devices */ #define UUID_PCI_HOST_BRIDGE "33db4d5b-1ff7-401c-9657-7441c03dd766" #define UUID_I2C_DEVICE "3cdff6f7-4267-4555-ad05-b30a3d8938de" #define UUID_POWER_BUTTON "dfbcf3c5-e7a5-44e6-9c1f-29c76f6e059c" #define UUID_MEMORY_DEVICE "03b19910-f473-11dd-87af-0800200c9a66" #define UUID_GENERIC_BUTTONS_DEVICE "fa6bd625-9ce8-470d-a2c7-b3ca36c4282e" #define UUID_NVDIMM_ROOT_DEVICE "2f10e7a4-9e91-11e4-89d3-123b93f75cba" #define UUID_CONTROL_METHOD_BATTERY "f18fc78b-0f15-4978-b793-53f833a1d35b" /* Interfaces */ #define UUID_DEVICE_LABELING "e5c937d0-3553-4d7a-9117-ea4d19c3434d" #define UUID_PHYSICAL_PRESENCE "3dddfaa6-361b-4eb4-a424-8d10089d1653" /* NVDIMM - NFIT table */ #define UUID_NFIT_DIMM "4309ac30-0d11-11e4-9191-0800200c9a66" #define UUID_VOLATILE_MEMORY "7305944f-fdda-44e3-b16c-3f22d252e5d0" #define UUID_PERSISTENT_MEMORY "66f0d379-b4f3-4074-ac43-0d3318b78cdb" #define UUID_CONTROL_REGION "92f701f6-13b4-405d-910b-299367e8234c" #define UUID_DATA_REGION "91af0530-5d86-470e-a6b0-0a2db9408249" #define UUID_VOLATILE_VIRTUAL_DISK "77ab535a-45fc-624b-5560-f7b281d1f96e" #define UUID_VOLATILE_VIRTUAL_CD "3d5abd30-4175-87ce-6d64-d2ade523c4bb" #define UUID_PERSISTENT_VIRTUAL_DISK "5cea02c9-4d07-69d3-269f-4496fbe096f9" #define UUID_PERSISTENT_VIRTUAL_CD "08018188-42cd-bb48-100f-5387d53ded3d" #define UUID_NFIT_DIMM_N_MSFT "1ee68b36-d4bd-4a1a-9a16-4f8e53d46e05" #define UUID_NFIT_DIMM_N_HPE1 "9002c334-acf3-4c0e-9642-a235f0d53bc6" #define UUID_NFIT_DIMM_N_HPE2 "5008664b-b758-41a0-a03c-27c2f2d04f7e" #define UUID_NFIT_DIMM_N_HYPERV "5746c5f2-a9a2-4264-ad0e-e4ddc9e09e80" /* Processor Properties (ACPI 6.2) */ #define UUID_CACHE_PROPERTIES "6DC63E77-257E-4E78-A973-A21F2796898D" #define UUID_PHYSICAL_PROPERTY "DDE4D59A-AA42-4349-B407-EA40F57D9FB7" /* Miscellaneous */ #define UUID_PLATFORM_CAPABILITIES "0811b06e-4a27-44f9-8d60-3cbbc22e7b48" #define UUID_DYNAMIC_ENUMERATION "d8c1a3a6-be9b-4c9b-91bf-c3cb81fc5daf" #define UUID_BATTERY_THERMAL_LIMIT "4c2067e3-887d-475c-9720-4af1d3ed602e" #define UUID_THERMAL_EXTENSIONS "14d399cd-7a27-4b18-8fb4-7cb7b9f4e500" #define UUID_DEVICE_PROPERTIES "daffd814-6eba-4d8c-8a91-bc9bbf4aa301" #define UUID_DEVICE_GRAPHS "ab02a46b-74c7-45a2-bd68-f7d344ef2153" #define UUID_HIERARCHICAL_DATA_EXTENSION "dbb8e3e6-5886-4ba6-8795-1319f52a966b" #define UUID_CORESIGHT_GRAPH "3ecbc8b6-1d0e-4fb3-8107-e627f805c6cd" #define UUID_USB4_CAPABILITIES "23a0d13a-26ab-486c-9c5f-0ffa525a575a" #define UUID_1ST_FUNCTION_ID "893f00a6-660c-494e-bcfd-3043f4fb67c0" #define UUID_2ND_FUNCTION_ID "107ededd-d381-4fd7-8da9-08e9a6c79644" #endif /* __ACUUID_H__ */ acpica-unix-20250404/source/include/acparser.h0000775000175000017500000002143714773714133020445 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acparser.h - AML Parser subcomponent prototypes and defines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACPARSER_H__ #define __ACPARSER_H__ #define OP_HAS_RETURN_VALUE 1 /* Variable number of arguments. This field must be 32 bits */ #define ACPI_VAR_ARGS ACPI_UINT32_MAX #define ACPI_PARSE_DELETE_TREE 0x0001 #define ACPI_PARSE_NO_TREE_DELETE 0x0000 #define ACPI_PARSE_TREE_MASK 0x0001 #define ACPI_PARSE_LOAD_PASS1 0x0010 #define ACPI_PARSE_LOAD_PASS2 0x0020 #define ACPI_PARSE_EXECUTE 0x0030 #define ACPI_PARSE_MODE_MASK 0x0030 #define ACPI_PARSE_DEFERRED_OP 0x0100 #define ACPI_PARSE_DISASSEMBLE 0x0200 #define ACPI_PARSE_MODULE_LEVEL 0x0400 /****************************************************************************** * * Parser interfaces * *****************************************************************************/ extern const UINT8 AcpiGbl_ShortOpIndex[]; extern const UINT8 AcpiGbl_LongOpIndex[]; /* * psxface - Parser external interfaces */ ACPI_STATUS AcpiPsExecuteMethod ( ACPI_EVALUATE_INFO *Info); ACPI_STATUS AcpiPsExecuteTable ( ACPI_EVALUATE_INFO *Info); /* * psargs - Parse AML opcode arguments */ UINT8 * AcpiPsGetNextPackageEnd ( ACPI_PARSE_STATE *ParserState); char * AcpiPsGetNextNamestring ( ACPI_PARSE_STATE *ParserState); void AcpiPsGetNextSimpleArg ( ACPI_PARSE_STATE *ParserState, UINT32 ArgType, ACPI_PARSE_OBJECT *Arg); ACPI_STATUS AcpiPsGetNextNamepath ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT *Arg, BOOLEAN PossibleMethodCall); /* Values for BOOLEAN above */ #define ACPI_NOT_METHOD_CALL FALSE #define ACPI_POSSIBLE_METHOD_CALL TRUE ACPI_STATUS AcpiPsGetNextArg ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_STATE *ParserState, UINT32 ArgType, ACPI_PARSE_OBJECT **ReturnArg); /* * psfind */ ACPI_PARSE_OBJECT * AcpiPsFindName ( ACPI_PARSE_OBJECT *Scope, UINT32 Name, UINT32 Opcode); ACPI_PARSE_OBJECT* AcpiPsGetParent ( ACPI_PARSE_OBJECT *Op); /* * psobject - support for parse object processing */ ACPI_STATUS AcpiPsBuildNamedOp ( ACPI_WALK_STATE *WalkState, UINT8 *AmlOpStart, ACPI_PARSE_OBJECT *UnnamedOp, ACPI_PARSE_OBJECT **Op); ACPI_STATUS AcpiPsCreateOp ( ACPI_WALK_STATE *WalkState, UINT8 *AmlOpStart, ACPI_PARSE_OBJECT **NewOp); ACPI_STATUS AcpiPsCompleteOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **Op, ACPI_STATUS Status); ACPI_STATUS AcpiPsCompleteFinalOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status); /* * psopinfo - AML Opcode information */ const ACPI_OPCODE_INFO * AcpiPsGetOpcodeInfo ( UINT16 Opcode); const char * AcpiPsGetOpcodeName ( UINT16 Opcode); UINT8 AcpiPsGetArgumentCount ( UINT32 OpType); /* * psparse - top level parsing routines */ ACPI_STATUS AcpiPsParseAml ( ACPI_WALK_STATE *WalkState); UINT32 AcpiPsGetOpcodeSize ( UINT32 Opcode); UINT16 AcpiPsPeekOpcode ( ACPI_PARSE_STATE *state); ACPI_STATUS AcpiPsCompleteThisOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); ACPI_STATUS AcpiPsNextParseState ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_STATUS CallbackStatus); /* * psloop - main parse loop */ ACPI_STATUS AcpiPsParseLoop ( ACPI_WALK_STATE *WalkState); /* * psscope - Scope stack management routines */ ACPI_STATUS AcpiPsInitScope ( ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT *Root); ACPI_PARSE_OBJECT * AcpiPsGetParentScope ( ACPI_PARSE_STATE *state); BOOLEAN AcpiPsHasCompletedScope ( ACPI_PARSE_STATE *ParserState); void AcpiPsPopScope ( ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT **Op, UINT32 *ArgList, UINT32 *ArgCount); ACPI_STATUS AcpiPsPushScope ( ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT *Op, UINT32 RemainingArgs, UINT32 ArgCount); void AcpiPsCleanupScope ( ACPI_PARSE_STATE *state); /* * pstree - parse tree manipulation routines */ void AcpiPsAppendArg( ACPI_PARSE_OBJECT *op, ACPI_PARSE_OBJECT *arg); ACPI_PARSE_OBJECT* AcpiPsFind ( ACPI_PARSE_OBJECT *Scope, char *Path, UINT16 Opcode, UINT32 Create); ACPI_PARSE_OBJECT * AcpiPsGetArg( ACPI_PARSE_OBJECT *op, UINT32 argn); ACPI_PARSE_OBJECT * AcpiPsGetDepthNext ( ACPI_PARSE_OBJECT *Origin, ACPI_PARSE_OBJECT *Op); /* * pswalk - parse tree walk routines */ ACPI_STATUS AcpiPsWalkParsedAml ( ACPI_PARSE_OBJECT *StartOp, ACPI_PARSE_OBJECT *EndOp, ACPI_OPERAND_OBJECT *MthDesc, ACPI_NAMESPACE_NODE *StartNode, ACPI_OPERAND_OBJECT **Params, ACPI_OPERAND_OBJECT **CallerReturnDesc, ACPI_OWNER_ID OwnerId, ACPI_PARSE_DOWNWARDS DescendingCallback, ACPI_PARSE_UPWARDS AscendingCallback); ACPI_STATUS AcpiPsGetNextWalkOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_PARSE_UPWARDS AscendingCallback); ACPI_STATUS AcpiPsDeleteCompletedOp ( ACPI_WALK_STATE *WalkState); void AcpiPsDeleteParseTree ( ACPI_PARSE_OBJECT *root); /* * psutils - parser utilities */ ACPI_PARSE_OBJECT * AcpiPsCreateScopeOp ( UINT8 *Aml); void AcpiPsInitOp ( ACPI_PARSE_OBJECT *op, UINT16 opcode); ACPI_PARSE_OBJECT * AcpiPsAllocOp ( UINT16 Opcode, UINT8 *Aml); void AcpiPsFreeOp ( ACPI_PARSE_OBJECT *Op); BOOLEAN AcpiPsIsLeadingChar ( UINT32 c); UINT32 AcpiPsGetName( ACPI_PARSE_OBJECT *op); void AcpiPsSetName( ACPI_PARSE_OBJECT *op, UINT32 name); /* * psdump - display parser tree */ UINT32 AcpiPsSprintPath ( char *BufferStart, UINT32 BufferSize, ACPI_PARSE_OBJECT *Op); UINT32 AcpiPsSprintOp ( char *BufferStart, UINT32 BufferSize, ACPI_PARSE_OBJECT *Op); void AcpiPsShow ( ACPI_PARSE_OBJECT *op); #endif /* __ACPARSER_H__ */ acpica-unix-20250404/source/include/actables.h0000775000175000017500000001507014773714133020417 0ustar ivanhuivanhu/****************************************************************************** * * Name: actables.h - ACPI table management * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACTABLES_H__ #define __ACTABLES_H__ ACPI_STATUS AcpiAllocateRootTable ( UINT32 InitialTableCount); /* * tbxfroot - Root pointer utilities */ UINT32 AcpiTbGetRsdpLength ( ACPI_TABLE_RSDP *Rsdp); ACPI_STATUS AcpiTbValidateRsdp ( ACPI_TABLE_RSDP *Rsdp); UINT8 * AcpiTbScanMemoryForRsdp ( UINT8 *StartAddress, UINT32 Length); /* * tbdata - table data structure management */ ACPI_STATUS AcpiTbGetNextTableDescriptor ( UINT32 *TableIndex, ACPI_TABLE_DESC **TableDesc); void AcpiTbInitTableDescriptor ( ACPI_TABLE_DESC *TableDesc, ACPI_PHYSICAL_ADDRESS Address, UINT8 Flags, ACPI_TABLE_HEADER *Table); ACPI_STATUS AcpiTbAcquireTempTable ( ACPI_TABLE_DESC *TableDesc, ACPI_PHYSICAL_ADDRESS Address, UINT8 Flags, ACPI_TABLE_HEADER *Table); void AcpiTbReleaseTempTable ( ACPI_TABLE_DESC *TableDesc); ACPI_STATUS AcpiTbValidateTempTable ( ACPI_TABLE_DESC *TableDesc); ACPI_STATUS AcpiTbVerifyTempTable ( ACPI_TABLE_DESC *TableDesc, char *Signature, UINT32 *TableIndex); BOOLEAN AcpiTbIsTableLoaded ( UINT32 TableIndex); void AcpiTbSetTableLoadedFlag ( UINT32 TableIndex, BOOLEAN IsLoaded); /* * tbfadt - FADT parse/convert/validate */ void AcpiTbParseFadt ( void); void AcpiTbCreateLocalFadt ( ACPI_TABLE_HEADER *Table, UINT32 Length); /* * tbfind - find ACPI table */ ACPI_STATUS AcpiTbFindTable ( char *Signature, char *OemId, char *OemTableId, UINT32 *TableIndex); /* * tbinstal - Table removal and deletion */ ACPI_STATUS AcpiTbResizeRootTableList ( void); ACPI_STATUS AcpiTbValidateTable ( ACPI_TABLE_DESC *TableDesc); void AcpiTbInvalidateTable ( ACPI_TABLE_DESC *TableDesc); void AcpiTbOverrideTable ( ACPI_TABLE_DESC *OldTableDesc); ACPI_STATUS AcpiTbAcquireTable ( ACPI_TABLE_DESC *TableDesc, ACPI_TABLE_HEADER **TablePtr, UINT32 *TableLength, UINT8 *TableFlags); void AcpiTbReleaseTable ( ACPI_TABLE_HEADER *Table, UINT32 TableLength, UINT8 TableFlags); ACPI_STATUS AcpiTbInstallStandardTable ( ACPI_PHYSICAL_ADDRESS Address, UINT8 Flags, ACPI_TABLE_HEADER *Table, BOOLEAN Reload, BOOLEAN Override, UINT32 *TableIndex); void AcpiTbUninstallTable ( ACPI_TABLE_DESC *TableDesc); ACPI_STATUS AcpiTbLoadTable ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *ParentNode); ACPI_STATUS AcpiTbInstallAndLoadTable ( ACPI_PHYSICAL_ADDRESS Address, UINT8 Flags, ACPI_TABLE_HEADER *Table, BOOLEAN Override, UINT32 *TableIndex); ACPI_STATUS AcpiTbUnloadTable ( UINT32 TableIndex); void AcpiTbNotifyTable ( UINT32 Event, void *Table); void AcpiTbTerminate ( void); ACPI_STATUS AcpiTbDeleteNamespaceByOwner ( UINT32 TableIndex); ACPI_STATUS AcpiTbAllocateOwnerId ( UINT32 TableIndex); ACPI_STATUS AcpiTbReleaseOwnerId ( UINT32 TableIndex); ACPI_STATUS AcpiTbGetOwnerId ( UINT32 TableIndex, ACPI_OWNER_ID *OwnerId); /* * tbutils - table manager utilities */ ACPI_STATUS AcpiTbInitializeFacs ( void); void AcpiTbPrintTableHeader( ACPI_PHYSICAL_ADDRESS Address, ACPI_TABLE_HEADER *Header); void AcpiTbCheckDsdtHeader ( void); ACPI_TABLE_HEADER * AcpiTbCopyDsdt ( UINT32 TableIndex); void AcpiTbInstallTableWithOverride ( ACPI_TABLE_DESC *NewTableDesc, BOOLEAN Override, UINT32 *TableIndex); ACPI_STATUS AcpiTbParseRootTable ( ACPI_PHYSICAL_ADDRESS RsdpAddress); ACPI_STATUS AcpiTbGetTable ( ACPI_TABLE_DESC *TableDesc, ACPI_TABLE_HEADER **OutTable); void AcpiTbPutTable ( ACPI_TABLE_DESC *TableDesc); /* * tbxfload */ ACPI_STATUS AcpiTbLoadNamespace ( void); #endif /* __ACTABLES_H__ */ acpica-unix-20250404/source/include/platform/0000775000175000017500000000000014773714133020306 5ustar ivanhuivanhuacpica-unix-20250404/source/include/platform/acenv.h0000775000175000017500000002623714773714133021570 0ustar ivanhuivanhu/****************************************************************************** * * Name: acenv.h - Host and compiler configuration * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACENV_H__ #define __ACENV_H__ /* * Environment configuration. The purpose of this file is to interface ACPICA * to the local environment. This includes compiler-specific, OS-specific, * and machine-specific configuration. */ /* Types for ACPI_MUTEX_TYPE */ #define ACPI_BINARY_SEMAPHORE 0 #define ACPI_OSL_MUTEX 1 /* Types for DEBUGGER_THREADING */ #define DEBUGGER_SINGLE_THREADED 0 #define DEBUGGER_MULTI_THREADED 1 /****************************************************************************** * * Configuration for ACPI tools and utilities * *****************************************************************************/ /* Common application configuration. All single threaded except for AcpiExec. */ #if (defined ACPI_ASL_COMPILER) || \ (defined ACPI_BIN_APP) || \ (defined ACPI_DUMP_APP) || \ (defined ACPI_HELP_APP) || \ (defined ACPI_NAMES_APP) || \ (defined ACPI_SRC_APP) || \ (defined ACPI_XTRACT_APP) || \ (defined ACPI_EXAMPLE_APP) || \ (defined ACPI_EFI_HELLO) #define ACPI_APPLICATION #define ACPI_SINGLE_THREADED #define USE_NATIVE_ALLOCATE_ZEROED #endif /* iASL configuration */ #ifdef ACPI_ASL_COMPILER #define ACPI_DEBUG_OUTPUT #define ACPI_CONSTANT_EVAL_ONLY #define ACPI_LARGE_NAMESPACE_NODE #define ACPI_DATA_TABLE_DISASSEMBLY #define ACPI_32BIT_PHYSICAL_ADDRESS #define ACPI_DISASSEMBLER 1 #endif /* AcpiExec configuration. Multithreaded with full AML debugger */ #ifdef ACPI_EXEC_APP #define ACPI_APPLICATION #define ACPI_FULL_DEBUG #define ACPI_MUTEX_DEBUG #define ACPI_DBG_TRACK_ALLOCATIONS #endif /* AcpiHelp configuration. Error messages disabled. */ #ifdef ACPI_HELP_APP #define ACPI_NO_ERROR_MESSAGES #endif /* AcpiNames configuration. Debug output enabled. */ #ifdef ACPI_NAMES_APP #define ACPI_DEBUG_OUTPUT #endif /* AcpiExec/AcpiNames/Example configuration. Native RSDP used. */ #if (defined ACPI_EXEC_APP) || \ (defined ACPI_EXAMPLE_APP) || \ (defined ACPI_NAMES_APP) #define ACPI_USE_NATIVE_RSDP_POINTER #endif /* AcpiDump configuration. Native mapping used if provided by the host */ #ifdef ACPI_DUMP_APP #define ACPI_USE_NATIVE_MEMORY_MAPPING #endif /* AcpiNames/Example configuration. Hardware disabled */ #if (defined ACPI_EXAMPLE_APP) || \ (defined ACPI_NAMES_APP) #define ACPI_REDUCED_HARDWARE 1 #endif /* Linkable ACPICA library. Two versions, one with full debug. */ #ifdef ACPI_LIBRARY #define ACPI_USE_LOCAL_CACHE #define ACPI_DEBUGGER 1 #define ACPI_DISASSEMBLER 1 #ifdef _DEBUG #define ACPI_DEBUG_OUTPUT #endif #endif /* Common for all ACPICA applications */ #ifdef ACPI_APPLICATION #define ACPI_USE_LOCAL_CACHE #endif /* Common debug/disassembler support */ #ifdef ACPI_FULL_DEBUG #define ACPI_DEBUG_OUTPUT #define ACPI_DEBUGGER 1 #define ACPI_DISASSEMBLER 1 #endif /* * acpisrc CR\LF support * Unix file line endings do not include the carriage return. * If the acpisrc utility is being built using a microsoft compiler, it means * that it will be running on a windows machine which means that the output is * expected to have CR/LF newlines. If the acpisrc utility is built with * anything else, it will likely run on a system with LF newlines. This flag * tells the acpisrc utility that newlines will be in the LF format. */ #if defined(ACPI_SRC_APP) && !defined(_MSC_VER) #define ACPI_SRC_OS_LF_ONLY 1 #else #define ACPI_SRC_OS_LF_ONLY 0 #endif /*! [Begin] no source code translation */ /****************************************************************************** * * Host configuration files. The compiler configuration files are included * first. * *****************************************************************************/ #if defined(__GNUC__) && !defined(__INTEL_COMPILER) #include "acgcc.h" #elif defined(_MSC_VER) #include "acmsvc.h" #elif defined(__INTEL_COMPILER) #include "acintel.h" #endif #if defined(_LINUX) || defined(__linux__) #include "aclinux.h" #elif defined(_APPLE) || defined(__APPLE__) #include "acmacosx.h" #elif defined(__DragonFly__) #include "acdragonfly.h" #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #include "acfreebsd.h" #elif defined(__NetBSD__) #include "acnetbsd.h" #elif defined(__sun) #include "acsolaris.h" #elif defined(MODESTO) #include "acmodesto.h" #elif defined(NETWARE) #include "acnetware.h" #elif defined(_CYGWIN) #include "accygwin.h" #elif defined(WIN32) #include "acwin.h" #elif defined(WIN64) #include "acwin64.h" #elif defined(_WRS_LIB_BUILD) #include "acvxworks.h" #elif defined(__OS2__) #include "acos2.h" #elif defined(__HAIKU__) #include "achaiku.h" #elif defined(__QNX__) #include "acqnx.h" /* * EFI applications can be built with -nostdlib, in this case, it must be * included after including all other host environmental definitions, in * order to override the definitions. */ #elif defined(_AED_EFI) || defined(_GNU_EFI) || defined(_EDK2_EFI) #include "acefi.h" #elif defined(__ZEPHYR__) #include "aczephyr.h" #else /* Unknown environment */ #error Unknown target environment #endif /*! [End] no source code translation !*/ /****************************************************************************** * * Setup defaults for the required symbols that were not defined in one of * the host/compiler files above. * *****************************************************************************/ /* 64-bit data types */ #ifndef COMPILER_DEPENDENT_INT64 #define COMPILER_DEPENDENT_INT64 long long #endif #ifndef COMPILER_DEPENDENT_UINT64 #define COMPILER_DEPENDENT_UINT64 unsigned long long #endif /* Type of mutex supported by host. Default is binary semaphores. */ #ifndef ACPI_MUTEX_TYPE #define ACPI_MUTEX_TYPE ACPI_BINARY_SEMAPHORE #endif /* Global Lock acquire/release */ #ifndef ACPI_ACQUIRE_GLOBAL_LOCK #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acquired) Acquired = 1 #endif #ifndef ACPI_RELEASE_GLOBAL_LOCK #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pending) Pending = 0 #endif /* NULL/invalid value to use for destroyed or not-yet-created semaphores. */ #ifndef ACPI_SEMAPHORE_NULL #define ACPI_SEMAPHORE_NULL NULL #endif /* Flush CPU cache - used when going to sleep. Wbinvd or similar. */ #ifndef ACPI_FLUSH_CPU_CACHE #define ACPI_FLUSH_CPU_CACHE() #endif /* "inline" keywords - configurable since inline is not standardized */ #ifndef ACPI_INLINE #define ACPI_INLINE #endif /* Use ordered initialization if compiler doesn't support designated. */ #ifndef ACPI_STRUCT_INIT #define ACPI_STRUCT_INIT(field, value) value #endif /* * Configurable calling conventions: * * ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads) * ACPI_EXTERNAL_XFACE - External ACPI interfaces * ACPI_INTERNAL_XFACE - Internal ACPI interfaces * ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces */ #ifndef ACPI_SYSTEM_XFACE #define ACPI_SYSTEM_XFACE #endif #ifndef ACPI_EXTERNAL_XFACE #define ACPI_EXTERNAL_XFACE #endif #ifndef ACPI_INTERNAL_XFACE #define ACPI_INTERNAL_XFACE #endif #ifndef ACPI_INTERNAL_VAR_XFACE #define ACPI_INTERNAL_VAR_XFACE #endif /* * Debugger threading model * Use single threaded if the entire subsystem is contained in an application * Use multiple threaded when the subsystem is running in the kernel. * * By default the model is single threaded if ACPI_APPLICATION is set, * multi-threaded if ACPI_APPLICATION is not set. */ #ifndef DEBUGGER_THREADING #if !defined (ACPI_APPLICATION) || defined (ACPI_EXEC_APP) #define DEBUGGER_THREADING DEBUGGER_MULTI_THREADED #else #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED #endif #endif /* !DEBUGGER_THREADING */ /****************************************************************************** * * C library configuration * *****************************************************************************/ /* * ACPI_USE_SYSTEM_CLIBRARY - Define this if linking to an actual C library. * Otherwise, local versions of string/memory functions will be used. * ACPI_USE_STANDARD_HEADERS - Define this if linking to a C library and * the standard header files may be used. Defining this implies that * ACPI_USE_SYSTEM_CLIBRARY has been defined. * * The ACPICA subsystem only uses low level C library functions that do not * call operating system services and may therefore be inlined in the code. * * It may be necessary to tailor these include files to the target * generation environment. */ /* Use the standard C library headers. We want to keep these to a minimum. */ #ifdef ACPI_USE_STANDARD_HEADERS /* Use the standard headers from the standard locations */ #include #include #include #if defined (ACPI_APPLICATION) || defined(ACPI_LIBRARY) #include #include #include #include #include #endif #endif /* ACPI_USE_STANDARD_HEADERS */ #ifdef ACPI_APPLICATION #define ACPI_FILE FILE * #define ACPI_FILE_OUT stdout #define ACPI_FILE_ERR stderr #else #define ACPI_FILE void * #define ACPI_FILE_OUT NULL #define ACPI_FILE_ERR NULL #endif /* ACPI_APPLICATION */ #ifndef ACPI_INIT_FUNCTION #define ACPI_INIT_FUNCTION #endif #endif /* __ACENV_H__ */ acpica-unix-20250404/source/include/platform/aclinux.h0000775000175000017500000001726414773714133022137 0ustar ivanhuivanhu/****************************************************************************** * * Name: aclinux.h - OS specific defines, etc. for Linux * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACLINUX_H__ #define __ACLINUX_H__ #ifdef __KERNEL__ /* ACPICA external files should not include ACPICA headers directly. */ #if !defined(BUILDING_ACPICA) && !defined(_LINUX_ACPI_H) #error "Please don't include directly, include instead." #endif #endif /* Common (in-kernel/user-space) ACPICA configuration */ #define ACPI_USE_SYSTEM_CLIBRARY #define ACPI_USE_DO_WHILE_0 #define ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS #ifdef __KERNEL__ #define ACPI_USE_SYSTEM_INTTYPES #define ACPI_USE_GPE_POLLING /* Kernel specific ACPICA configuration */ #ifdef CONFIG_ACPI_REDUCED_HARDWARE_ONLY #define ACPI_REDUCED_HARDWARE 1 #endif #ifdef CONFIG_ACPI_DEBUGGER #define ACPI_DEBUGGER #endif #ifdef CONFIG_ACPI_DEBUG #define ACPI_MUTEX_DEBUG #endif #include #include #include #include #include #include #include #include #ifdef EXPORT_ACPI_INTERFACES #include #endif #ifdef CONFIG_ACPI #include #endif #define ACPI_INIT_FUNCTION __init /* Use a specific bugging default separate from ACPICA */ #undef ACPI_DEBUG_DEFAULT #define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR) #ifndef CONFIG_ACPI /* External globals for __KERNEL__, stubs is needed */ #define ACPI_GLOBAL(t,a) #define ACPI_INIT_GLOBAL(t,a,b) /* Generating stubs for configurable ACPICA macros */ #define ACPI_NO_MEM_ALLOCATIONS /* Generating stubs for configurable ACPICA functions */ #define ACPI_NO_ERROR_MESSAGES #undef ACPI_DEBUG_OUTPUT /* External interface for __KERNEL__, stub is needed */ #define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \ static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);} #define ACPI_EXTERNAL_RETURN_OK(Prototype) \ static ACPI_INLINE Prototype {return(AE_OK);} #define ACPI_EXTERNAL_RETURN_VOID(Prototype) \ static ACPI_INLINE Prototype {return;} #define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \ static ACPI_INLINE Prototype {return(0);} #define ACPI_EXTERNAL_RETURN_PTR(Prototype) \ static ACPI_INLINE Prototype {return(NULL);} #endif /* CONFIG_ACPI */ /* Host-dependent types and defines for in-kernel ACPICA */ #define ACPI_MACHINE_WIDTH BITS_PER_LONG #define ACPI_USE_NATIVE_MATH64 #define ACPI_EXPORT_SYMBOL(symbol) EXPORT_SYMBOL(symbol); #define strtoul simple_strtoul #define ACPI_CACHE_T struct kmem_cache #define ACPI_SPINLOCK spinlock_t * #define ACPI_CPU_FLAGS unsigned long #define ACPI_UINTPTR_T uintptr_t #define ACPI_TO_INTEGER(p) ((uintptr_t)(p)) #define ACPI_OFFSET(d, f) offsetof(d, f) /* Use native linux version of AcpiOsAllocateZeroed */ #define USE_NATIVE_ALLOCATE_ZEROED /* * Overrides for in-kernel ACPICA */ #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInitialize #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTerminate #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocate #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocateZeroed #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsFree #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireObject #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetThreadId #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateLock /* * OSL interfaces used by debugger/disassembler */ #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadable #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritable #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInitializeDebugger #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTerminateDebugger /* * OSL interfaces used by utilities */ #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsRedirectOutput #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByName #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByIndex #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByAddress #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsOpenDirectory #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetNextFilename #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCloseDirectory #define ACPI_MSG_ERROR KERN_ERR "ACPI Error: " #define ACPI_MSG_EXCEPTION KERN_ERR "ACPI Exception: " #define ACPI_MSG_WARNING KERN_WARNING "ACPI Warning: " #define ACPI_MSG_INFO KERN_INFO "ACPI: " #define ACPI_MSG_BIOS_ERROR KERN_ERR "ACPI BIOS Error (bug): " #define ACPI_MSG_BIOS_WARNING KERN_WARNING "ACPI BIOS Warning (bug): " /* * Linux wants to use designated initializers for function pointer structs. */ #define ACPI_STRUCT_INIT(field, value) .field = value #else /* !__KERNEL__ */ #define ACPI_USE_STANDARD_HEADERS #ifdef ACPI_USE_STANDARD_HEADERS #include #include #include #define ACPI_OFFSET(d, f) offsetof(d, f) #endif /* Define/disable kernel-specific declarators */ #ifndef __init #define __init #endif #ifndef __iomem #define __iomem #endif /* Host-dependent types and defines for user-space ACPICA */ #define ACPI_FLUSH_CPU_CACHE() #define ACPI_CAST_PTHREAD_T(Pthread) ((ACPI_THREAD_ID) (Pthread)) #if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\ defined(__aarch64__) || defined(__PPC64__) ||\ defined(__s390x__) || defined(__loongarch__) ||\ (defined(__riscv) && (defined(__LP64__) || defined(_LP64))) #define ACPI_MACHINE_WIDTH 64 #define COMPILER_DEPENDENT_INT64 long #define COMPILER_DEPENDENT_UINT64 unsigned long #else #define ACPI_MACHINE_WIDTH 32 #define COMPILER_DEPENDENT_INT64 long long #define COMPILER_DEPENDENT_UINT64 unsigned long long #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #endif #ifndef __cdecl #define __cdecl #endif #endif /* __KERNEL__ */ #endif /* __ACLINUX_H__ */ acpica-unix-20250404/source/include/platform/achaiku.h0000775000175000017500000000756314773714133022102 0ustar ivanhuivanhu/****************************************************************************** * * Name: achaiku.h - OS specific defines, etc. for Haiku (www.haiku-os.org) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACHAIKU_H__ #define __ACHAIKU_H__ #define ACPI_USE_STANDARD_HEADERS #define ACPI_USE_SYSTEM_CLIBRARY #include struct mutex; /* Host-dependent types and defines for user- and kernel-space ACPICA */ #define ACPI_MUTEX_TYPE ACPI_OSL_MUTEX #define ACPI_MUTEX struct mutex * #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 /* #define ACPI_THREAD_ID thread_id */ #define ACPI_SEMAPHORE sem_id #define ACPI_SPINLOCK spinlock * #define ACPI_CPU_FLAGS cpu_status #define COMPILER_DEPENDENT_INT64 int64 #define COMPILER_DEPENDENT_UINT64 uint64 #ifdef B_HAIKU_64_BIT #define ACPI_MACHINE_WIDTH 64 #else #define ACPI_MACHINE_WIDTH 32 #endif #ifdef _KERNEL_MODE /* Host-dependent types and defines for in-kernel ACPICA */ /* ACPICA cache implementation is adequate. */ #define ACPI_USE_LOCAL_CACHE /* On other platform the default definition (do nothing) is fine. */ #if defined(__i386__) || defined(__x86_64__) #define ACPI_FLUSH_CPU_CACHE() __asm __volatile("wbinvd"); #endif /* Based on FreeBSD's due to lack of documentation */ extern int AcpiOsAcquireGlobalLock(volatile uint32_t *lock); extern int AcpiOsReleaseGlobalLock(volatile uint32_t *lock); #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) do { \ (Acq) = AcpiOsAcquireGlobalLock(&((GLptr)->GlobalLock)); \ } while (0) #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Acq) do { \ (Acq) = AcpiOsReleaseGlobalLock(&((GLptr)->GlobalLock)); \ } while (0) #define ACPI_SEMAPHORE_NULL -1 #else /* _KERNEL_MODE */ /* Host-dependent types and defines for user-space ACPICA */ #error "We only support kernel mode ACPI atm." #endif /* _KERNEL_MODE */ #endif /* __ACHAIKU_H__ */ acpica-unix-20250404/source/include/platform/aclinuxex.h0000775000175000017500000001121414773714133022461 0ustar ivanhuivanhu/****************************************************************************** * * Name: aclinuxex.h - Extra OS specific defines, etc. for Linux * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACLINUXEX_H__ #define __ACLINUXEX_H__ #ifdef __KERNEL__ #ifndef ACPI_USE_NATIVE_DIVIDE #ifndef ACPI_DIV_64_BY_32 #define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \ do { \ UINT64 (__n) = ((UINT64) n_hi) << 32 | (n_lo); \ (r32) = do_div ((__n), (d32)); \ (q32) = (UINT32) (__n); \ } while (0) #endif #ifndef ACPI_SHIFT_RIGHT_64 #define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \ do { \ (n_lo) >>= 1; \ (n_lo) |= (((n_hi) & 1) << 31); \ (n_hi) >>= 1; \ } while (0) #endif #endif /* * Overrides for in-kernel ACPICA */ ACPI_STATUS ACPI_INIT_FUNCTION AcpiOsInitialize ( void); ACPI_STATUS AcpiOsTerminate ( void); /* * The irqs_disabled() check is for resume from RAM. * Interrupts are off during resume, just like they are for boot. * However, boot has (system_state != SYSTEM_RUNNING) * to quiet __might_sleep() in kmalloc() and resume does not. */ static inline void * AcpiOsAllocate ( ACPI_SIZE Size) { return kmalloc (Size, irqs_disabled () ? GFP_ATOMIC : GFP_KERNEL); } static inline void * AcpiOsAllocateZeroed ( ACPI_SIZE Size) { return kzalloc (Size, irqs_disabled () ? GFP_ATOMIC : GFP_KERNEL); } static inline void AcpiOsFree ( void *Memory) { kfree (Memory); } static inline void * AcpiOsAcquireObject ( ACPI_CACHE_T *Cache) { return kmem_cache_zalloc (Cache, irqs_disabled () ? GFP_ATOMIC : GFP_KERNEL); } static inline ACPI_THREAD_ID AcpiOsGetThreadId ( void) { return (ACPI_THREAD_ID) (unsigned long) current; } /* * When lockdep is enabled, the spin_lock_init() macro stringifies it's * argument and uses that as a name for the lock in debugging. * By executing spin_lock_init() in a macro the key changes from "lock" for * all locks to the name of the argument of acpi_os_create_lock(), which * prevents lockdep from reporting false positives for ACPICA locks. */ #define AcpiOsCreateLock(__Handle) \ ({ \ spinlock_t *Lock = ACPI_ALLOCATE(sizeof(*Lock)); \ if (Lock) { \ *(__Handle) = Lock; \ spin_lock_init(*(__Handle)); \ } \ Lock ? AE_OK : AE_NO_MEMORY; \ }) static inline BOOLEAN AcpiOsReadable ( void *Pointer, ACPI_SIZE Length) { return TRUE; } static inline ACPI_STATUS AcpiOsInitializeDebugger ( void) { return AE_OK; } static inline void AcpiOsTerminateDebugger ( void) { return; } /* * OSL interfaces added by Linux */ #endif /* __KERNEL__ */ #endif /* __ACLINUXEX_H__ */ acpica-unix-20250404/source/include/platform/acmsvcex.h0000775000175000017500000000655414773714133022305 0ustar ivanhuivanhu/****************************************************************************** * * Name: acmsvcex.h - Extra VC specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACMSVCEX_H__ #define __ACMSVCEX_H__ /* va_arg implementation can be compiler specific */ #ifdef ACPI_USE_STANDARD_HEADERS #include #endif /* ACPI_USE_STANDARD_HEADERS */ /* Debug support. */ #ifdef _DEBUG #define _CRTDBG_MAP_ALLOC /* Enables specific file/lineno for leaks */ #include #endif /* End standard headers */ #pragma warning(pop) #ifndef ACPI_USE_SYSTEM_CLIBRARY /****************************************************************************** * * Not using native C library, use local implementations * *****************************************************************************/ #ifndef va_arg #ifndef _VALIST #define _VALIST typedef char *va_list; #endif /* _VALIST */ /* Storage alignment properties */ #define _AUPBND (sizeof (ACPI_NATIVE_INT) - 1) #define _ADNBND (sizeof (ACPI_NATIVE_INT) - 1) /* Variable argument list macro definitions */ #define _Bnd(X, bnd) (((sizeof (X)) + (bnd)) & (~(bnd))) #define va_arg(ap, T) (*(T *)(((ap) += (_Bnd (T, _AUPBND))) - (_Bnd (T,_ADNBND)))) #define va_end(ap) (ap = (va_list) NULL) #define va_start(ap, A) (void) ((ap) = (((char *) &(A)) + (_Bnd (A,_AUPBND)))) #endif /* va_arg */ #endif /* !ACPI_USE_SYSTEM_CLIBRARY */ #endif /* __ACMSVCEX_H__ */ acpica-unix-20250404/source/include/platform/acos2.h0000775000175000017500000000705714773714133021502 0ustar ivanhuivanhu/****************************************************************************** * * Name: acos2.h - OS/2 specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACOS2_H__ #define __ACOS2_H__ #define ACPI_USE_STANDARD_HEADERS #define ACPI_USE_SYSTEM_CLIBRARY #define INCL_LONGLONG #include #define ACPI_MACHINE_WIDTH 32 #define COMPILER_DEPENDENT_INT64 long long #define COMPILER_DEPENDENT_UINT64 unsigned long long #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #define ACPI_SYSTEM_XFACE APIENTRY #define ACPI_EXTERNAL_XFACE APIENTRY #define ACPI_INTERNAL_XFACE APIENTRY #define ACPI_INTERNAL_VAR_XFACE APIENTRY /* * Some compilers complain about unused variables. Sometimes we don't want to * use all the variables (most specifically for _THIS_MODULE). This allow us * to to tell the compiler warning in a per-variable manner that a variable * is unused. */ #define ACPI_UNUSED_VAR #include #define ACPI_FLUSH_CPU_CACHE() Wbinvd() void Wbinvd(void); #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) Acq = OSPMAcquireGlobalLock(GLptr) #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) Pnd = OSPMReleaseGlobalLock(GLptr) unsigned short OSPMAcquireGlobalLock (void *); unsigned short OSPMReleaseGlobalLock (void *); #define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \ { \ unsigned long long val = 0LL; \ val = n_lo | ( ((unsigned long long)h_hi) << 32 ); \ __llrotr (val,1); \ n_hi = (unsigned long)((val >> 32 ) & 0xffffffff ); \ n_lo = (unsigned long)(val & 0xffffffff); \ } #ifndef ACPI_ASL_COMPILER #define ACPI_USE_LOCAL_CACHE #undef ACPI_DEBUGGER #endif #endif /* __ACOS2_H__ */ acpica-unix-20250404/source/include/platform/acwin.h0000775000175000017500000001644214773714133021572 0ustar ivanhuivanhu/****************************************************************************** * * Name: acwin.h - OS specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACWIN_H__ #define __ACWIN_H__ #include #define ACPI_USE_STANDARD_HEADERS #define ACPI_USE_SYSTEM_CLIBRARY /* Note: do not include any C library headers here */ /* * Note: MSVC project files should define ACPI_DEBUGGER and ACPI_DISASSEMBLER * as appropriate to enable editor functions like "Find all references". * The editor isn't smart enough to dig through the include files to find * out if these are actually defined. */ /* Eliminate warnings for "old" (non-secure) versions of clib functions */ #ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #endif /* Eliminate warnings for POSIX clib function names (open, write, etc.) */ #ifndef _CRT_NONSTDC_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE #endif /* Disable these warnings under Windows and MSVC since C4201: nameless * structs/unions are needed as ACPI event-handling under Linux/GCC breaks * with named and nested structs/unions while C4068: unknown pragma * complains of GCC pragmas in use to disable dangling ptr warnings */ #pragma warning( disable: 4201) #pragma warning( disable: 4068) #pragma warning( push) #define ACPI_MACHINE_WIDTH 32 #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #ifdef ACPI_DEFINE_ALTERNATE_TYPES /* * Types used only in (Linux) translated source, defined here to enable * cross-platform compilation (i.e., generate the Linux code on Windows, * for test purposes only) */ typedef int s32; typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; typedef COMPILER_DEPENDENT_UINT64 u64; #endif /* * Map low I/O functions for MS. This allows us to disable MS language * extensions for maximum portability. */ #define open _open #define read _read #define write _write #define close _close #define stat _stat #define fstat _fstat #define mkdir _mkdir #define fileno _fileno #define isatty _isatty #if _MSC_VER <= 1200 /* Versions below VC++ 6 */ #define vsnprintf _vsnprintf #endif #define O_RDONLY _O_RDONLY #define O_BINARY _O_BINARY #define O_CREAT _O_CREAT #define O_WRONLY _O_WRONLY #define O_TRUNC _O_TRUNC #define S_IREAD _S_IREAD #define S_IWRITE _S_IWRITE #define S_IFDIR _S_IFDIR #if _MSC_VER < 1900 #define snprintf _snprintf #endif /* * Handle platform- and compiler-specific assembly language differences. * * Notes: * 1) Interrupt 3 is used to break into a debugger * 2) Interrupts are turned off during ACPI register setup */ /*! [Begin] no source code translation */ #ifdef ACPI_APPLICATION #define ACPI_FLUSH_CPU_CACHE() #else #define ACPI_FLUSH_CPU_CACHE() __asm {WBINVD} #endif #ifdef _DEBUG #define ACPI_SIMPLE_RETURN_MACROS #endif /*! [End] no source code translation !*/ /* * Global Lock acquire/release code * * Note: Handles case where the FACS pointer is null */ #define ACPI_ACQUIRE_GLOBAL_LOCK(FacsPtr, Acq) __asm \ { \ __asm mov eax, 0xFF \ __asm mov ecx, FacsPtr \ __asm or ecx, ecx \ __asm jz exit_acq \ __asm lea ecx, [ecx].GlobalLock \ \ __asm acq10: \ __asm mov eax, [ecx] \ __asm mov edx, eax \ __asm and edx, 0xFFFFFFFE \ __asm bts edx, 1 \ __asm adc edx, 0 \ __asm lock cmpxchg dword ptr [ecx], edx \ __asm jnz acq10 \ \ __asm cmp dl, 3 \ __asm sbb eax, eax \ \ __asm exit_acq: \ __asm mov Acq, al \ } #define ACPI_RELEASE_GLOBAL_LOCK(FacsPtr, Pnd) __asm \ { \ __asm xor eax, eax \ __asm mov ecx, FacsPtr \ __asm or ecx, ecx \ __asm jz exit_rel \ __asm lea ecx, [ecx].GlobalLock \ \ __asm Rel10: \ __asm mov eax, [ecx] \ __asm mov edx, eax \ __asm and edx, 0xFFFFFFFC \ __asm lock cmpxchg dword ptr [ecx], edx \ __asm jnz Rel10 \ \ __asm cmp dl, 3 \ __asm and eax, 1 \ \ __asm exit_rel: \ __asm mov Pnd, al \ } #endif /* __ACWIN_H__ */ acpica-unix-20250404/source/include/platform/acgccex.h0000775000175000017500000000462514773714133022066 0ustar ivanhuivanhu/****************************************************************************** * * Name: acgccex.h - Extra GCC specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACGCCEX_H__ #define __ACGCCEX_H__ /* * Some versions of gcc implement strchr() with a buggy macro. So, * undef it here. Prevents error messages of this form (usually from the * file getopt.c): * * error: logical '&&' with non-zero constant will always evaluate as true */ #ifdef strchr #undef strchr #endif #endif /* __ACGCCEX_H__ */ acpica-unix-20250404/source/include/platform/acmsvc.h0000775000175000017500000001610714773714133021743 0ustar ivanhuivanhu/****************************************************************************** * * Name: acmsvc.h - VC specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACMSVC_H__ #define __ACMSVC_H__ /* Note: do not include any C library headers here */ /* * Note: MSVC project files should define ACPI_DEBUGGER and ACPI_DISASSEMBLER * as appropriate to enable editor functions like "Find all references". * The editor isn't smart enough to dig through the include files to find * out if these are actually defined. */ /* Eliminate warnings for "old" (non-secure) versions of clib functions */ #ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #endif /* Eliminate warnings for POSIX clib function names (open, write, etc.) */ #ifndef _CRT_NONSTDC_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE #endif #define COMPILER_DEPENDENT_INT64 __int64 #define COMPILER_DEPENDENT_UINT64 unsigned __int64 #define ACPI_INLINE __inline /* * Calling conventions: * * ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads) * ACPI_EXTERNAL_XFACE - External ACPI interfaces * ACPI_INTERNAL_XFACE - Internal ACPI interfaces * ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces */ #define ACPI_SYSTEM_XFACE __cdecl #define ACPI_EXTERNAL_XFACE #define ACPI_INTERNAL_XFACE #define ACPI_INTERNAL_VAR_XFACE __cdecl /* Do not maintain the architecture specific stuffs for the EFI ports */ #if defined(__i386__) && !defined(_GNU_EFI) && !defined(_EDK2_EFI) /* * Math helper functions */ #ifndef ACPI_DIV_64_BY_32 #define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \ { \ __asm mov edx, n_hi \ __asm mov eax, n_lo \ __asm div d32 \ __asm mov q32, eax \ __asm mov r32, edx \ } #endif #ifndef ACPI_MUL_64_BY_32 #define ACPI_MUL_64_BY_32(n_hi, n_lo, m32, p32, c32) \ { \ __asm mov edx, n_hi \ __asm mov eax, n_lo \ __asm mul m32 \ __asm mov p32, eax \ __asm mov c32, edx \ } #endif #ifndef ACPI_SHIFT_LEFT_64_BY_32 #define ACPI_SHIFT_LEFT_64_BY_32(n_hi, n_lo, s32) \ { \ __asm mov edx, n_hi \ __asm mov eax, n_lo \ __asm mov ecx, s32 \ __asm and ecx, 31 \ __asm shld edx, eax, cl \ __asm shl eax, cl \ __asm mov n_hi, edx \ __asm mov n_lo, eax \ } #endif #ifndef ACPI_SHIFT_RIGHT_64_BY_32 #define ACPI_SHIFT_RIGHT_64_BY_32(n_hi, n_lo, s32) \ { \ __asm mov edx, n_hi \ __asm mov eax, n_lo \ __asm mov ecx, s32 \ __asm and ecx, 31 \ __asm shrd eax, edx, cl \ __asm shr edx, cl \ __asm mov n_hi, edx \ __asm mov n_lo, eax \ } #endif #ifndef ACPI_SHIFT_RIGHT_64 #define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \ { \ __asm shr n_hi, 1 \ __asm rcr n_lo, 1 \ } #endif #endif /* warn C4001: use of slash-slash comments */ /* NOTE: MSVC 2015 headers use these extensively */ #pragma warning(disable:4001) /* warn C4100: unreferenced formal parameter */ #pragma warning(disable:4100) /* warn C4127: conditional expression is constant */ #pragma warning(disable:4127) /* warn C4706: assignment within conditional expression */ #pragma warning(disable:4706) /* warn C4131: uses old-style declarator (iASL compiler only) */ #pragma warning(disable:4131) /* warn C4131: uses old-style declarator (iASL compiler only) */ #pragma warning(disable:4459) /* warn c4200: allow flexible arrays (of zero length) */ #pragma warning(disable:4200) #if _MSC_VER > 1200 /* Versions above VC++ 6 */ #pragma warning( disable : 4295 ) /* needed for acpredef.h array */ #endif /* * MSVC 2015+ */ /* warn C4459: xxxx (identifier) hides global declaration */ #pragma warning(disable:4459) /* Debug support. */ #ifdef _DEBUG /* * Debugging memory corruption issues with windows: * Add #include to accommon.h if necessary. * Add _ASSERTE(_CrtCheckMemory()); where needed to test memory integrity. * This can quickly localize the memory corruption. */ #define ACPI_DEBUG_INITIALIZE() \ _CrtSetDbgFlag (\ _CRTDBG_CHECK_ALWAYS_DF | \ _CRTDBG_ALLOC_MEM_DF | \ _CRTDBG_DELAY_FREE_MEM_DF | \ _CRTDBG_LEAK_CHECK_DF | \ _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG)); #if 0 /* * _CrtSetBreakAlloc can be used to set a breakpoint at a particular * memory leak, add to the macro above. */ Detected memory leaks! Dumping objects -> ..\..\source\os_specific\service_layers\oswinxf.c(701) : {937} normal block at 0x002E9190, 40 bytes long. Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 _CrtSetBreakAlloc (937); #endif #endif #if _MSC_VER > 1200 /* Versions above VC++ 6 */ #define COMPILER_VA_MACRO 1 #else #endif /* Begin standard headers */ /* * warn C4001: nonstandard extension 'single line comment' was used * * We need to enable this for ACPICA internal files, but disable it for * buggy MS runtime headers. */ #pragma warning(push) #pragma warning(disable:4001) #endif /* __ACMSVC_H__ */ acpica-unix-20250404/source/include/platform/acdragonflyex.h0000775000175000017500000000600414773714133023310 0ustar ivanhuivanhu/****************************************************************************** * * Name: acdragonflyex.h - Extra OS specific defines, etc. for DragonFly BSD * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACDRAGONFLYEX_H__ #define __ACDRAGONFLYEX_H__ #ifdef _KERNEL #ifdef ACPI_DEBUG_CACHE ACPI_STATUS _AcpiOsReleaseObject ( ACPI_CACHE_T *Cache, void *Object, const char *func, int line); #endif #ifdef ACPI_DEBUG_LOCKS ACPI_CPU_FLAGS _AcpiOsAcquireLock ( ACPI_SPINLOCK Spin, const char *func, int line); #endif #ifdef ACPI_DEBUG_MEMMAP void * _AcpiOsMapMemory ( ACPI_PHYSICAL_ADDRESS Where, ACPI_SIZE Length, const char *caller, int line); void _AcpiOsUnmapMemory ( void *LogicalAddress, ACPI_SIZE Length, const char *caller, int line); #endif #endif /* _KERNEL */ #endif /* __ACDRAGONFLYEX_H__ */ acpica-unix-20250404/source/include/platform/acmacosx.h0000775000175000017500000000447114773714133022266 0ustar ivanhuivanhu/****************************************************************************** * * Name: acmacosx.h - OS specific defines, etc. for Mac OS X * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACMACOSX_H__ #define __ACMACOSX_H__ #include "aclinux.h" #ifdef __APPLE__ #define ACPI_USE_ALTERNATE_TIMEOUT #endif /* __APPLE__ */ #ifdef __clang__ #pragma clang diagnostic ignored "-Wformat-nonliteral" #endif #endif /* __ACMACOSX_H__ */ acpica-unix-20250404/source/include/platform/acdragonfly.h0000775000175000017500000001032014773714133022747 0ustar ivanhuivanhu/****************************************************************************** * * Name: acdragonfly.h - OS specific for DragonFly BSD * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACDRAGONFLY_H_ #define __ACDRAGONFLY_H_ #include #ifdef __LP64__ #define ACPI_MACHINE_WIDTH 64 #else #define ACPI_MACHINE_WIDTH 32 #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #endif #define ACPI_UINTPTR_T uintptr_t #define COMPILER_DEPENDENT_INT64 int64_t #define COMPILER_DEPENDENT_UINT64 uint64_t #define ACPI_USE_DO_WHILE_0 #define ACPI_USE_SYSTEM_CLIBRARY #ifdef _KERNEL #include "opt_acpi.h" #include #include #include #include #ifdef ACPI_DEBUG #define ACPI_DEBUG_OUTPUT /* enable debug output */ #ifdef DEBUGGER_THREADING #undef DEBUGGER_THREADING #endif /* DEBUGGER_THREADING */ #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED /* integrated with DDB */ #include "opt_ddb.h" #ifdef DDB #define ACPI_DEBUGGER #endif /* DDB */ #define ACPI_DISASSEMBLER #endif #ifdef ACPI_DEBUG_CACHE #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseObject #define AcpiOsReleaseObject(Cache, Object) \ _AcpiOsReleaseObject((Cache), (Object), __func__, __LINE__) #endif #ifdef ACPI_DEBUG_LOCKS #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireLock #define AcpiOsAcquireLock(Handle) \ _AcpiOsAcquireLock((Handle), __func__, __LINE__) #endif #ifdef ACPI_DEBUG_MEMMAP #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsMapMemory #define AcpiOsMapMemory(Where, Length) \ _AcpiOsMapMemory((Where), (Length), __func__, __LINE__) #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsUnmapMemory #define AcpiOsUnmapMemory(LogicalAddress, Size) \ _AcpiOsUnmapMemory((LogicalAddress), (Size), __func__, __LINE__) #endif /* XXX TBI */ #define ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitEventsComplete #define AcpiOsWaitEventsComplete() #define USE_NATIVE_ALLOCATE_ZEROED #define ACPI_SPINLOCK struct acpi_spinlock * struct acpi_spinlock; #define ACPI_CACHE_T struct acpicache struct acpicache; #else /* _KERNEL */ #define ACPI_USE_STANDARD_HEADERS #define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread)) #define ACPI_FLUSH_CPU_CACHE() #endif /* _KERNEL */ #endif /* __ACDRAGONFLY_H_ */ acpica-unix-20250404/source/include/platform/aczephyr.h0000775000175000017500000000630714773714133022315 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aczephyr.h - OS specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACZEPHYR_H__ #define __ACZEPHYR_H__ #if defined(__x86_64__) #define ACPI_MACHINE_WIDTH 64 #else #define ACPI_32BIT_PHYSICAL_ADDRESS #define ACPI_MACHINE_WIDTH 32 #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #endif #define COMPILER_DEPENDENT_INT64 long long #define COMPILER_DEPENDENT_UINT64 unsigned long long #define ACPI_NO_ERROR_MESSAGES #undef ACPI_DEBUG_OUTPUT #define ACPI_USE_SYSTEM_CLIBRARY #undef ACPI_DBG_TRACK_ALLOCATIONS #define ACPI_SINGLE_THREADED #define ACPI_USE_NATIVE_RSDP_POINTER #include #include #include #include #include #include #include #include #include /****************************************************************************** * * FUNCTION: AcpiEnableDbgPrint * * PARAMETERS: Enable, - Enable/Disable debug print * * RETURN: None * * DESCRIPTION: Enable/disable debug print * *****************************************************************************/ void AcpiEnableDbgPrint ( bool Enable); #endif acpica-unix-20250404/source/include/platform/acefi.h0000775000175000017500000002466114773714133021542 0ustar ivanhuivanhu/****************************************************************************** * * Name: acefi.h - OS specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACEFI_H__ #define __ACEFI_H__ /* * Single threaded environment where Mutex/Event/Sleep are fake. This model is * sufficient for pre-boot AcpiExec. */ #ifndef DEBUGGER_THREADING #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED #endif /* !DEBUGGER_THREADING */ /* EDK2 EFI environment */ #if defined(_EDK2_EFI) #ifdef USE_STDLIB #define ACPI_USE_STANDARD_HEADERS #define ACPI_USE_SYSTEM_CLIBRARY #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #endif #endif #if defined(__x86_64__) #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) #define USE_MS_ABI 1 #endif #endif #ifdef _MSC_EXTENSIONS #define ACPI_EFI_API __cdecl #elif USE_MS_ABI #define ACPI_EFI_API __attribute__((ms_abi)) #else #define ACPI_EFI_API #endif #define VOID void #if defined(__ia64__) || defined(__x86_64__) #define ACPI_MACHINE_WIDTH 64 #if defined(__x86_64__) /* for x86_64, EFI_FUNCTION_WRAPPER must be defined */ #ifndef USE_MS_ABI #define USE_EFI_FUNCTION_WRAPPER #endif #ifdef _MSC_EXTENSIONS #pragma warning ( disable : 4731 ) /* Suppress warnings about modification of EBP */ #endif #endif #ifndef USE_STDLIB #define UINTN uint64_t #define INTN int64_t #endif #define ACPI_EFI_ERR(a) (0x8000000000000000 | a) #else #define ACPI_MACHINE_WIDTH 32 #ifndef USE_STDLIB #define UINTN uint32_t #define INTN int32_t #endif #define ACPI_EFI_ERR(a) (0x80000000 | a) #endif #define CHAR16 uint16_t #ifdef USE_EFI_FUNCTION_WRAPPER #define __VA_NARG__(...) \ __VA_NARG_(_0, ## __VA_ARGS__, __RSEQ_N()) #define __VA_NARG_(...) \ __VA_ARG_N(__VA_ARGS__) #define __VA_ARG_N( \ _0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,N,...) N #define __RSEQ_N() \ 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 #define __VA_ARG_NSUFFIX__(prefix,...) \ __VA_ARG_NSUFFIX_N(prefix, __VA_NARG__(__VA_ARGS__)) #define __VA_ARG_NSUFFIX_N(prefix,nargs) \ __VA_ARG_NSUFFIX_N_(prefix, nargs) #define __VA_ARG_NSUFFIX_N_(prefix,nargs) \ prefix ## nargs /* Prototypes of EFI cdecl -> stdcall trampolines */ UINT64 efi_call0(void *func); UINT64 efi_call1(void *func, UINT64 arg1); UINT64 efi_call2(void *func, UINT64 arg1, UINT64 arg2); UINT64 efi_call3(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3); UINT64 efi_call4(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3, UINT64 arg4); UINT64 efi_call5(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3, UINT64 arg4, UINT64 arg5); UINT64 efi_call6(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3, UINT64 arg4, UINT64 arg5, UINT64 arg6); UINT64 efi_call7(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3, UINT64 arg4, UINT64 arg5, UINT64 arg6, UINT64 arg7); UINT64 efi_call8(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3, UINT64 arg4, UINT64 arg5, UINT64 arg6, UINT64 arg7, UINT64 arg8); UINT64 efi_call9(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3, UINT64 arg4, UINT64 arg5, UINT64 arg6, UINT64 arg7, UINT64 arg8, UINT64 arg9); UINT64 efi_call10(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3, UINT64 arg4, UINT64 arg5, UINT64 arg6, UINT64 arg7, UINT64 arg8, UINT64 arg9, UINT64 arg10); /* Front-ends to efi_callX to avoid compiler warnings */ #define _cast64_efi_call0(f) \ efi_call0(f) #define _cast64_efi_call1(f,a1) \ efi_call1(f, (UINT64)(a1)) #define _cast64_efi_call2(f,a1,a2) \ efi_call2(f, (UINT64)(a1), (UINT64)(a2)) #define _cast64_efi_call3(f,a1,a2,a3) \ efi_call3(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3)) #define _cast64_efi_call4(f,a1,a2,a3,a4) \ efi_call4(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4)) #define _cast64_efi_call5(f,a1,a2,a3,a4,a5) \ efi_call5(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \ (UINT64)(a5)) #define _cast64_efi_call6(f,a1,a2,a3,a4,a5,a6) \ efi_call6(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \ (UINT64)(a5), (UINT64)(a6)) #define _cast64_efi_call7(f,a1,a2,a3,a4,a5,a6,a7) \ efi_call7(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \ (UINT64)(a5), (UINT64)(a6), (UINT64)(a7)) #define _cast64_efi_call8(f,a1,a2,a3,a4,a5,a6,a7,a8) \ efi_call8(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \ (UINT64)(a5), (UINT64)(a6), (UINT64)(a7), (UINT64)(a8)) #define _cast64_efi_call9(f,a1,a2,a3,a4,a5,a6,a7,a8,a9) \ efi_call9(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \ (UINT64)(a5), (UINT64)(a6), (UINT64)(a7), (UINT64)(a8), \ (UINT64)(a9)) #define _cast64_efi_call10(f,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) \ efi_call10(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \ (UINT64)(a5), (UINT64)(a6), (UINT64)(a7), (UINT64)(a8), \ (UINT64)(a9), (UINT64)(a10)) /* main wrapper (va_num ignored) */ #define uefi_call_wrapper(func,va_num,...) \ __VA_ARG_NSUFFIX__(_cast64_efi_call, __VA_ARGS__) (func , ##__VA_ARGS__) #else #define uefi_call_wrapper(func, va_num, ...) func(__VA_ARGS__) #endif /* AED EFI definitions */ #if defined(_AED_EFI) /* _int64 works for both IA32 and IA64 */ #define COMPILER_DEPENDENT_INT64 __int64 #define COMPILER_DEPENDENT_UINT64 unsigned __int64 /* * Calling conventions: * * ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads) * ACPI_EXTERNAL_XFACE - External ACPI interfaces * ACPI_INTERNAL_XFACE - Internal ACPI interfaces * ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces */ #define ACPI_SYSTEM_XFACE #define ACPI_EXTERNAL_XFACE #define ACPI_INTERNAL_XFACE #define ACPI_INTERNAL_VAR_XFACE /* warn C4142: redefinition of type */ #pragma warning(disable:4142) #endif /* EFI math64 definitions */ #if defined(_GNU_EFI) || defined(_EDK2_EFI) /* * Math helpers, GNU EFI provided a platform independent 64-bit math * support. */ #ifndef ACPI_DIV_64_BY_32 #define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \ do { \ UINT64 __n = ((UINT64) n_hi) << 32 | (n_lo); \ (q32) = (UINT32) DivU64x32 ((__n), (d32), &(r32)); \ } while (0) #endif #ifndef ACPI_MUL_64_BY_32 #define ACPI_MUL_64_BY_32(n_hi, n_lo, m32, p32, c32) \ do { \ UINT64 __n = ((UINT64) n_hi) << 32 | (n_lo); \ UINT64 __p = MultU64x32 (__n, (m32)); \ (p32) = (UINT32) __p; \ (c32) = (UINT32) (__p >> 32); \ } while (0) #endif #ifndef ACPI_SHIFT_LEFT_64_by_32 #define ACPI_SHIFT_LEFT_64_BY_32(n_hi, n_lo, s32) \ do { \ UINT64 __n = ((UINT64) n_hi) << 32 | (n_lo); \ UINT64 __r = LShiftU64 (__n, (s32)); \ (n_lo) = (UINT32) __r; \ (n_hi) = (UINT32) (__r >> 32); \ } while (0) #endif #ifndef ACPI_SHIFT_RIGHT_64_BY_32 #define ACPI_SHIFT_RIGHT_64_BY_32(n_hi, n_lo, s32) \ do { \ UINT64 __n = ((UINT64) n_hi) << 32 | (n_lo); \ UINT64 __r = RShiftU64 (__n, (s32)); \ (n_lo) = (UINT32) __r; \ (n_hi) = (UINT32) (__r >> 32); \ } while (0) #endif #ifndef ACPI_SHIFT_RIGHT_64 #define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \ do { \ (n_lo) >>= 1; \ (n_lo) |= (((n_hi) & 1) << 31); \ (n_hi) >>= 1; \ } while (0) #endif #endif struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE; struct _ACPI_SIMPLE_INPUT_INTERFACE; struct _ACPI_EFI_FILE_IO_INTERFACE; struct _ACPI_EFI_FILE_HANDLE; struct _ACPI_EFI_BOOT_SERVICES; struct _ACPI_EFI_RUNTIME_SERVICES; struct _ACPI_EFI_SYSTEM_TABLE; struct _ACPI_EFI_PCI_IO; extern struct _ACPI_EFI_SYSTEM_TABLE *ST; extern struct _ACPI_EFI_BOOT_SERVICES *BS; extern struct _ACPI_EFI_RUNTIME_SERVICES *RT; #ifndef USE_STDLIB typedef union acpi_efi_file ACPI_EFI_FILE; #define FILE ACPI_EFI_FILE extern FILE *stdin; extern FILE *stdout; extern FILE *stderr; #endif #endif /* __ACEFI_H__ */ acpica-unix-20250404/source/include/platform/acqnx.h0000775000175000017500000000533514773714133021602 0ustar ivanhuivanhu/****************************************************************************** * * Name: acqnx.h - OS specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACQNX_H__ #define __ACQNX_H__ #define ACPI_USE_STANDARD_HEADERS #define ACPI_USE_SYSTEM_CLIBRARY #define ACPI_UINTPTR_T uintptr_t #define ACPI_USE_LOCAL_CACHE #define ACPI_CAST_PTHREAD_T(x) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (x)) /* At present time (QNX 6.6) all supported architectures are 32 bits. */ #define ACPI_MACHINE_WIDTH 32 #define COMPILER_DEPENDENT_INT64 int64_t #define COMPILER_DEPENDENT_UINT64 uint64_t #include #include #include #define __cli() InterruptDisable(); #define __sti() InterruptEnable(); #define __cdecl #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #endif /* __ACQNX_H__ */ acpica-unix-20250404/source/include/platform/acgcc.h0000775000175000017500000001060314773714133021522 0ustar ivanhuivanhu/****************************************************************************** * * Name: acgcc.h - GCC specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACGCC_H__ #define __ACGCC_H__ /* * Use compiler specific is a good practice for even when * -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined. */ #ifndef va_arg #ifdef ACPI_USE_BUILTIN_STDARG typedef __builtin_va_list va_list; #define va_start(v, l) __builtin_va_start(v, l) #define va_end(v) __builtin_va_end(v) #define va_arg(v, l) __builtin_va_arg(v, l) #define va_copy(d, s) __builtin_va_copy(d, s) #else #include #endif #endif #define ACPI_INLINE __inline__ /* Function name is used for debug output. Non-ANSI, compiler-dependent */ #define ACPI_GET_FUNCTION_NAME __func__ /* * This macro is used to tag functions as "printf-like" because * some compilers (like GCC) can catch printf format string problems. */ #define ACPI_PRINTF_LIKE(c) __attribute__ ((__format__ (__printf__, c, c+1))) /* * Some compilers complain about unused variables. Sometimes we don't want to * use all the variables (for example, _AcpiModuleName). This allows us * to tell the compiler warning in a per-variable manner that a variable * is unused. */ #define ACPI_UNUSED_VAR __attribute__ ((unused)) /* GCC supports __VA_ARGS__ in macros */ #define COMPILER_VA_MACRO 1 /* GCC supports native multiply/shift on 32-bit platforms */ #define ACPI_USE_NATIVE_MATH64 /* GCC did not support __has_attribute until 5.1. */ #ifndef __has_attribute #define __has_attribute(x) 0 #endif /* * Explicitly mark intentional explicit fallthrough to silence * -Wimplicit-fallthrough in GCC 7.1+. */ #if __has_attribute(__fallthrough__) #define ACPI_FALLTHROUGH __attribute__((__fallthrough__)) #endif /* * Flexible array members are not allowed to be part of a union under * C99, but this is not for any technical reason. Work around the * limitation. */ #ifndef __cplusplus #define ACPI_FLEX_ARRAY(TYPE, NAME) \ struct { \ struct { } __Empty_ ## NAME; \ TYPE NAME[]; \ } #endif /* * Explicitly mark strings that lack a terminating NUL character so * that ACPICA can be built with -Wunterminated-string-initialization. */ #if __has_attribute(__nonstring__) #define ACPI_NONSTRING __attribute__((__nonstring__)) #endif #endif /* __ACGCC_H__ */ acpica-unix-20250404/source/include/platform/acefiex.h0000775000175000017500000010401414773714133022066 0ustar ivanhuivanhu/****************************************************************************** * * Name: acefiex.h - Extra OS specific defines, etc. for EFI * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACEFIEX_H__ #define __ACEFIEX_H__ #ifndef ACPI_USE_SYSTEM_CLIBRARY typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef COMPILER_DEPENDENT_INT64 int64_t; typedef COMPILER_DEPENDENT_UINT64 uint64_t; #endif /* ACPI_USE_SYSTEM_CLIBRARY */ #define ACPI_EFI_ERROR(a) (((INTN) a) < 0) #define ACPI_EFI_SUCCESS 0 #define ACPI_EFI_LOAD_ERROR ACPI_EFI_ERR(1) #define ACPI_EFI_INVALID_PARAMETER ACPI_EFI_ERR(2) #define ACPI_EFI_UNSUPPORTED ACPI_EFI_ERR(3) #define ACPI_EFI_BAD_BUFFER_SIZE ACPI_EFI_ERR(4) #define ACPI_EFI_BUFFER_TOO_SMALL ACPI_EFI_ERR(5) #define ACPI_EFI_NOT_READY ACPI_EFI_ERR(6) #define ACPI_EFI_DEVICE_ERROR ACPI_EFI_ERR(7) #define ACPI_EFI_WRITE_PROTECTED ACPI_EFI_ERR(8) #define ACPI_EFI_OUT_OF_RESOURCES ACPI_EFI_ERR(9) #define ACPI_EFI_VOLUME_CORRUPTED ACPI_EFI_ERR(10) #define ACPI_EFI_VOLUME_FULL ACPI_EFI_ERR(11) #define ACPI_EFI_NO_MEDIA ACPI_EFI_ERR(12) #define ACPI_EFI_MEDIA_CHANGED ACPI_EFI_ERR(13) #define ACPI_EFI_NOT_FOUND ACPI_EFI_ERR(14) #define ACPI_EFI_ACCESS_DENIED ACPI_EFI_ERR(15) #define ACPI_EFI_NO_RESPONSE ACPI_EFI_ERR(16) #define ACPI_EFI_NO_MAPPING ACPI_EFI_ERR(17) #define ACPI_EFI_TIMEOUT ACPI_EFI_ERR(18) #define ACPI_EFI_NOT_STARTED ACPI_EFI_ERR(19) #define ACPI_EFI_ALREADY_STARTED ACPI_EFI_ERR(20) #define ACPI_EFI_ABORTED ACPI_EFI_ERR(21) #define ACPI_EFI_PROTOCOL_ERROR ACPI_EFI_ERR(24) typedef UINTN ACPI_EFI_STATUS; typedef VOID *ACPI_EFI_HANDLE; typedef VOID *ACPI_EFI_EVENT; typedef struct { UINT32 Data1; UINT16 Data2; UINT16 Data3; UINT8 Data4[8]; } ACPI_EFI_GUID; typedef struct { UINT16 Year; /* 1998 - 20XX */ UINT8 Month; /* 1 - 12 */ UINT8 Day; /* 1 - 31 */ UINT8 Hour; /* 0 - 23 */ UINT8 Minute; /* 0 - 59 */ UINT8 Second; /* 0 - 59 */ UINT8 Pad1; UINT32 Nanosecond; /* 0 - 999,999,999 */ INT16 TimeZone; /* -1440 to 1440 or 2047 */ UINT8 Daylight; UINT8 Pad2; } ACPI_EFI_TIME; typedef struct _ACPI_EFI_DEVICE_PATH { UINT8 Type; UINT8 SubType; UINT8 Length[2]; } ACPI_EFI_DEVICE_PATH; typedef UINT64 ACPI_EFI_PHYSICAL_ADDRESS; typedef UINT64 ACPI_EFI_VIRTUAL_ADDRESS; typedef enum { AcpiEfiAllocateAnyPages, AcpiEfiAllocateMaxAddress, AcpiEfiAllocateAddress, AcpiEfiMaxAllocateType } ACPI_EFI_ALLOCATE_TYPE; typedef enum { AcpiEfiReservedMemoryType, AcpiEfiLoaderCode, AcpiEfiLoaderData, AcpiEfiBootServicesCode, AcpiEfiBootServicesData, AcpiEfiRuntimeServicesCode, AcpiEfiRuntimeServicesData, AcpiEfiConventionalMemory, AcpiEfiUnusableMemory, AcpiEfiACPIReclaimMemory, AcpiEfiACPIMemoryNVS, AcpiEfiMemoryMappedIO, AcpiEfiMemoryMappedIOPortSpace, AcpiEfiPalCode, AcpiEfiMaxMemoryType } ACPI_EFI_MEMORY_TYPE; /* possible caching types for the memory range */ #define ACPI_EFI_MEMORY_UC 0x0000000000000001 #define ACPI_EFI_MEMORY_WC 0x0000000000000002 #define ACPI_EFI_MEMORY_WT 0x0000000000000004 #define ACPI_EFI_MEMORY_WB 0x0000000000000008 #define ACPI_EFI_MEMORY_UCE 0x0000000000000010 /* physical memory protection on range */ #define ACPI_EFI_MEMORY_WP 0x0000000000001000 #define ACPI_EFI_MEMORY_RP 0x0000000000002000 #define ACPI_EFI_MEMORY_XP 0x0000000000004000 /* range requires a runtime mapping */ #define ACPI_EFI_MEMORY_RUNTIME 0x8000000000000000 #define ACPI_EFI_MEMORY_DESCRIPTOR_VERSION 1 typedef struct { UINT32 Type; UINT32 Pad; ACPI_EFI_PHYSICAL_ADDRESS PhysicalStart; ACPI_EFI_VIRTUAL_ADDRESS VirtualStart; UINT64 NumberOfPages; UINT64 Attribute; } ACPI_EFI_MEMORY_DESCRIPTOR; typedef struct _ACPI_EFI_TABLE_HEARDER { UINT64 Signature; UINT32 Revision; UINT32 HeaderSize; UINT32 CRC32; UINT32 Reserved; } ACPI_EFI_TABLE_HEADER; typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_UNKNOWN_INTERFACE) ( void); /* * Text output protocol */ #define ACPI_SIMPLE_TEXT_OUTPUT_PROTOCOL \ { 0x387477c2, 0x69c7, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} } typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_TEXT_RESET) ( struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *This, BOOLEAN ExtendedVerification); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_TEXT_OUTPUT_STRING) ( struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *This, CHAR16 *String); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_TEXT_TEST_STRING) ( struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *This, CHAR16 *String); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_TEXT_QUERY_MODE) ( struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *This, UINTN ModeNumber, UINTN *Columns, UINTN *Rows); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_TEXT_SET_MODE) ( struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *This, UINTN ModeNumber); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_TEXT_SET_ATTRIBUTE) ( struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *This, UINTN Attribute); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_TEXT_CLEAR_SCREEN) ( struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *This); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_TEXT_SET_CURSOR_POSITION) ( struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *This, UINTN Column, UINTN Row); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_TEXT_ENABLE_CURSOR) ( struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *This, BOOLEAN Enable); typedef struct { INT32 MaxMode; INT32 Mode; INT32 Attribute; INT32 CursorColumn; INT32 CursorRow; BOOLEAN CursorVisible; } ACPI_SIMPLE_TEXT_OUTPUT_MODE; typedef struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE { ACPI_EFI_TEXT_RESET Reset; ACPI_EFI_TEXT_OUTPUT_STRING OutputString; ACPI_EFI_TEXT_TEST_STRING TestString; ACPI_EFI_TEXT_QUERY_MODE QueryMode; ACPI_EFI_TEXT_SET_MODE SetMode; ACPI_EFI_TEXT_SET_ATTRIBUTE SetAttribute; ACPI_EFI_TEXT_CLEAR_SCREEN ClearScreen; ACPI_EFI_TEXT_SET_CURSOR_POSITION SetCursorPosition; ACPI_EFI_TEXT_ENABLE_CURSOR EnableCursor; ACPI_SIMPLE_TEXT_OUTPUT_MODE *Mode; } ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE; /* * Text input protocol */ #define ACPI_SIMPLE_TEXT_INPUT_PROTOCOL \ { 0x387477c1, 0x69c7, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} } typedef struct { UINT16 ScanCode; CHAR16 UnicodeChar; } ACPI_EFI_INPUT_KEY; /* * Baseline unicode control chars */ #define CHAR_NULL 0x0000 #define CHAR_BACKSPACE 0x0008 #define CHAR_TAB 0x0009 #define CHAR_LINEFEED 0x000A #define CHAR_CARRIAGE_RETURN 0x000D typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_INPUT_RESET) ( struct _ACPI_SIMPLE_INPUT_INTERFACE *This, BOOLEAN ExtendedVerification); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_INPUT_READ_KEY) ( struct _ACPI_SIMPLE_INPUT_INTERFACE *This, ACPI_EFI_INPUT_KEY *Key); typedef struct _ACPI_SIMPLE_INPUT_INTERFACE { ACPI_EFI_INPUT_RESET Reset; ACPI_EFI_INPUT_READ_KEY ReadKeyStroke; ACPI_EFI_EVENT WaitForKey; } ACPI_SIMPLE_INPUT_INTERFACE; /* * Simple file system protocol */ #define ACPI_SIMPLE_FILE_SYSTEM_PROTOCOL \ { 0x964e5b22, 0x6459, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} } typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_VOLUME_OPEN) ( struct _ACPI_EFI_FILE_IO_INTERFACE *This, struct _ACPI_EFI_FILE_HANDLE **Root); #define ACPI_EFI_FILE_IO_INTERFACE_REVISION 0x00010000 typedef struct _ACPI_EFI_FILE_IO_INTERFACE { UINT64 Revision; ACPI_EFI_VOLUME_OPEN OpenVolume; } ACPI_EFI_FILE_IO_INTERFACE; typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_OPEN) ( struct _ACPI_EFI_FILE_HANDLE *File, struct _ACPI_EFI_FILE_HANDLE **NewHandle, CHAR16 *FileName, UINT64 OpenMode, UINT64 Attributes); /* Values for OpenMode used above */ #define ACPI_EFI_FILE_MODE_READ 0x0000000000000001 #define ACPI_EFI_FILE_MODE_WRITE 0x0000000000000002 #define ACPI_EFI_FILE_MODE_CREATE 0x8000000000000000 /* Values for Attribute used above */ #define ACPI_EFI_FILE_READ_ONLY 0x0000000000000001 #define ACPI_EFI_FILE_HIDDEN 0x0000000000000002 #define ACPI_EFI_FILE_SYSTEM 0x0000000000000004 #define ACPI_EFI_FILE_RESERVIED 0x0000000000000008 #define ACPI_EFI_FILE_DIRECTORY 0x0000000000000010 #define ACPI_EFI_FILE_ARCHIVE 0x0000000000000020 #define ACPI_EFI_FILE_VALID_ATTR 0x0000000000000037 typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_CLOSE) ( struct _ACPI_EFI_FILE_HANDLE *File); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_DELETE) ( struct _ACPI_EFI_FILE_HANDLE *File); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_READ) ( struct _ACPI_EFI_FILE_HANDLE *File, UINTN *BufferSize, VOID *Buffer); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_WRITE) ( struct _ACPI_EFI_FILE_HANDLE *File, UINTN *BufferSize, VOID *Buffer); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_SET_POSITION) ( struct _ACPI_EFI_FILE_HANDLE *File, UINT64 Position); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_GET_POSITION) ( struct _ACPI_EFI_FILE_HANDLE *File, UINT64 *Position); #define ACPI_EFI_FILE_INFO_ID \ { 0x9576e92, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} } typedef struct { UINT64 Size; UINT64 FileSize; UINT64 PhysicalSize; ACPI_EFI_TIME CreateTime; ACPI_EFI_TIME LastAccessTime; ACPI_EFI_TIME ModificationTime; UINT64 Attribute; CHAR16 FileName[]; } ACPI_EFI_FILE_INFO; #define SIZE_OF_ACPI_EFI_FILE_INFO ACPI_OFFSET(ACPI_EFI_FILE_INFO, FileName) typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_GET_INFO) ( struct _ACPI_EFI_FILE_HANDLE *File, ACPI_EFI_GUID *InformationType, UINTN *BufferSize, VOID *Buffer); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_SET_INFO) ( struct _ACPI_EFI_FILE_HANDLE *File, ACPI_EFI_GUID *InformationType, UINTN BufferSize, VOID *Buffer); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FILE_FLUSH) ( struct _ACPI_EFI_FILE_HANDLE *File); #define ACPI_EFI_FILE_HANDLE_REVISION 0x00010000 typedef struct _ACPI_EFI_FILE_HANDLE { UINT64 Revision; ACPI_EFI_FILE_OPEN Open; ACPI_EFI_FILE_CLOSE Close; ACPI_EFI_FILE_DELETE Delete; ACPI_EFI_FILE_READ Read; ACPI_EFI_FILE_WRITE Write; ACPI_EFI_FILE_GET_POSITION GetPosition; ACPI_EFI_FILE_SET_POSITION SetPosition; ACPI_EFI_FILE_GET_INFO GetInfo; ACPI_EFI_FILE_SET_INFO SetInfo; ACPI_EFI_FILE_FLUSH Flush; } ACPI_EFI_FILE_STRUCT, *ACPI_EFI_FILE_HANDLE; /* * Loaded image protocol */ #define ACPI_EFI_LOADED_IMAGE_PROTOCOL \ { 0x5B1B31A1, 0x9562, 0x11d2, {0x8E, 0x3F, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B} } typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_IMAGE_ENTRY_POINT) ( ACPI_EFI_HANDLE ImageHandle, struct _ACPI_EFI_SYSTEM_TABLE *SystemTable); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_IMAGE_LOAD) ( BOOLEAN BootPolicy, ACPI_EFI_HANDLE ParentImageHandle, ACPI_EFI_DEVICE_PATH *FilePath, VOID *SourceBuffer, UINTN SourceSize, ACPI_EFI_HANDLE *ImageHandle); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_IMAGE_START) ( ACPI_EFI_HANDLE ImageHandle, UINTN *ExitDataSize, CHAR16 **ExitData); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_EXIT) ( ACPI_EFI_HANDLE ImageHandle, ACPI_EFI_STATUS ExitStatus, UINTN ExitDataSize, CHAR16 *ExitData); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_IMAGE_UNLOAD) ( ACPI_EFI_HANDLE ImageHandle); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_STALL) ( UINTN Microseconds); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_SET_WATCHDOG_TIMER) ( UINTN Timeout, UINT64 WatchdogCode, UINTN DataSize, CHAR16 *WatchdogData); #define EFI_IMAGE_INFORMATION_REVISION 0x1000 typedef struct { UINT32 Revision; ACPI_EFI_HANDLE ParentHandle; struct _ACPI_EFI_SYSTEM_TABLE *SystemTable; ACPI_EFI_HANDLE DeviceHandle; ACPI_EFI_DEVICE_PATH *FilePath; VOID *Reserved; UINT32 LoadOptionsSize; VOID *LoadOptions; VOID *ImageBase; UINT64 ImageSize; ACPI_EFI_MEMORY_TYPE ImageCodeType; ACPI_EFI_MEMORY_TYPE ImageDataType; ACPI_EFI_IMAGE_UNLOAD Unload; } ACPI_EFI_LOADED_IMAGE; /* * EFI Memory */ typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_ALLOCATE_PAGES) ( ACPI_EFI_ALLOCATE_TYPE Type, ACPI_EFI_MEMORY_TYPE MemoryType, UINTN NoPages, ACPI_EFI_PHYSICAL_ADDRESS *Memory); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FREE_PAGES) ( ACPI_EFI_PHYSICAL_ADDRESS Memory, UINTN NoPages); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_GET_MEMORY_MAP) ( UINTN *MemoryMapSize, ACPI_EFI_MEMORY_DESCRIPTOR *MemoryMap, UINTN *MapKey, UINTN *DescriptorSize, UINT32 *DescriptorVersion); #define NextMemoryDescriptor(Ptr,Size) ((ACPI_EFI_MEMORY_DESCRIPTOR *) (((UINT8 *) Ptr) + Size)) typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_ALLOCATE_POOL) ( ACPI_EFI_MEMORY_TYPE PoolType, UINTN Size, VOID **Buffer); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_FREE_POOL) ( VOID *Buffer); /* * EFI Time */ typedef struct { UINT32 Resolution; UINT32 Accuracy; BOOLEAN SetsToZero; } ACPI_EFI_TIME_CAPABILITIES; typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_GET_TIME) ( ACPI_EFI_TIME *Time, ACPI_EFI_TIME_CAPABILITIES *Capabilities); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_SET_TIME) ( ACPI_EFI_TIME *Time); /* * Protocol handler functions */ typedef enum { ACPI_EFI_NATIVE_INTERFACE, ACPI_EFI_PCODE_INTERFACE } ACPI_EFI_INTERFACE_TYPE; typedef enum { AcpiEfiAllHandles, AcpiEfiByRegisterNotify, AcpiEfiByProtocol } ACPI_EFI_LOCATE_SEARCH_TYPE; typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_INSTALL_PROTOCOL_INTERFACE) ( ACPI_EFI_HANDLE *Handle, ACPI_EFI_GUID *Protocol, ACPI_EFI_INTERFACE_TYPE InterfaceType, VOID *Interface); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_REINSTALL_PROTOCOL_INTERFACE) ( ACPI_EFI_HANDLE Handle, ACPI_EFI_GUID *Protocol, VOID *OldInterface, VOID *NewInterface); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_UNINSTALL_PROTOCOL_INTERFACE) ( ACPI_EFI_HANDLE Handle, ACPI_EFI_GUID *Protocol, VOID *Interface); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_HANDLE_PROTOCOL) ( ACPI_EFI_HANDLE Handle, ACPI_EFI_GUID *Protocol, VOID **Interface); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_REGISTER_PROTOCOL_NOTIFY) ( ACPI_EFI_GUID *Protocol, ACPI_EFI_EVENT Event, VOID **Registration); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_LOCATE_HANDLE) ( ACPI_EFI_LOCATE_SEARCH_TYPE SearchType, ACPI_EFI_GUID *Protocol, VOID *SearchKey, UINTN *BufferSize, ACPI_EFI_HANDLE *Buffer); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_LOCATE_DEVICE_PATH) ( ACPI_EFI_GUID *Protocol, ACPI_EFI_DEVICE_PATH **DevicePath, ACPI_EFI_HANDLE *Device); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_INSTALL_CONFIGURATION_TABLE) ( ACPI_EFI_GUID *Guid, VOID *Table); #define ACPI_EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL 0x00000001 #define ACPI_EFI_OPEN_PROTOCOL_GET_PROTOCOL 0x00000002 #define ACPI_EFI_OPEN_PROTOCOL_TEST_PROTOCOL 0x00000004 #define ACPI_EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER 0x00000008 #define ACPI_EFI_OPEN_PROTOCOL_BY_DRIVER 0x00000010 #define ACPI_EFI_OPEN_PROTOCOL_EXCLUSIVE 0x00000020 typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_OPEN_PROTOCOL) ( ACPI_EFI_HANDLE Handle, ACPI_EFI_GUID *Protocol, VOID **Interface, ACPI_EFI_HANDLE AgentHandle, ACPI_EFI_HANDLE ControllerHandle, UINT32 Attributes); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_CLOSE_PROTOCOL) ( ACPI_EFI_HANDLE Handle, ACPI_EFI_GUID *Protocol, ACPI_EFI_HANDLE AgentHandle, ACPI_EFI_HANDLE ControllerHandle); typedef struct { ACPI_EFI_HANDLE AgentHandle; ACPI_EFI_HANDLE ControllerHandle; UINT32 Attributes; UINT32 OpenCount; } ACPI_EFI_OPEN_PROTOCOL_INFORMATION_ENTRY; typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_OPEN_PROTOCOL_INFORMATION) ( ACPI_EFI_HANDLE Handle, ACPI_EFI_GUID *Protocol, ACPI_EFI_OPEN_PROTOCOL_INFORMATION_ENTRY **EntryBuffer, UINTN *EntryCount); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_PROTOCOLS_PER_HANDLE) ( ACPI_EFI_HANDLE Handle, ACPI_EFI_GUID ***ProtocolBuffer, UINTN *ProtocolBufferCount); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_LOCATE_HANDLE_BUFFER) ( ACPI_EFI_LOCATE_SEARCH_TYPE SearchType, ACPI_EFI_GUID *Protocol, VOID *SearchKey, UINTN *NoHandles, ACPI_EFI_HANDLE **Buffer); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_LOCATE_PROTOCOL) ( ACPI_EFI_GUID *Protocol, VOID *Registration, VOID **Interface); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_INSTALL_MULTIPLE_PROTOCOL_INTERFACES) ( ACPI_EFI_HANDLE *Handle, ...); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_UNINSTALL_MULTIPLE_PROTOCOL_INTERFACES) ( ACPI_EFI_HANDLE Handle, ...); typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_CALCULATE_CRC32) ( VOID *Data, UINTN DataSize, UINT32 *Crc32); typedef VOID (ACPI_EFI_API *ACPI_EFI_COPY_MEM) ( VOID *Destination, VOID *Source, UINTN Length); typedef VOID (ACPI_EFI_API *ACPI_EFI_SET_MEM) ( VOID *Buffer, UINTN Size, UINT8 Value); /* * EFI Boot Services Table */ #define ACPI_EFI_BOOT_SERVICES_SIGNATURE 0x56524553544f4f42 #define ACPI_EFI_BOOT_SERVICES_REVISION (ACPI_EFI_SPECIFICATION_MAJOR_REVISION<<16) | (ACPI_EFI_SPECIFICATION_MINOR_REVISION) typedef struct _ACPI_EFI_BOOT_SERVICES { ACPI_EFI_TABLE_HEADER Hdr; #if 0 ACPI_EFI_RAISE_TPL RaiseTPL; ACPI_EFI_RESTORE_TPL RestoreTPL; #else ACPI_EFI_UNKNOWN_INTERFACE RaiseTPL; ACPI_EFI_UNKNOWN_INTERFACE RestoreTPL; #endif ACPI_EFI_ALLOCATE_PAGES AllocatePages; ACPI_EFI_FREE_PAGES FreePages; ACPI_EFI_GET_MEMORY_MAP GetMemoryMap; ACPI_EFI_ALLOCATE_POOL AllocatePool; ACPI_EFI_FREE_POOL FreePool; #if 0 ACPI_EFI_CREATE_EVENT CreateEvent; ACPI_EFI_SET_TIMER SetTimer; ACPI_EFI_WAIT_FOR_EVENT WaitForEvent; ACPI_EFI_SIGNAL_EVENT SignalEvent; ACPI_EFI_CLOSE_EVENT CloseEvent; ACPI_EFI_CHECK_EVENT CheckEvent; #else ACPI_EFI_UNKNOWN_INTERFACE CreateEvent; ACPI_EFI_UNKNOWN_INTERFACE SetTimer; ACPI_EFI_UNKNOWN_INTERFACE WaitForEvent; ACPI_EFI_UNKNOWN_INTERFACE SignalEvent; ACPI_EFI_UNKNOWN_INTERFACE CloseEvent; ACPI_EFI_UNKNOWN_INTERFACE CheckEvent; #endif ACPI_EFI_INSTALL_PROTOCOL_INTERFACE InstallProtocolInterface; ACPI_EFI_REINSTALL_PROTOCOL_INTERFACE ReinstallProtocolInterface; ACPI_EFI_UNINSTALL_PROTOCOL_INTERFACE UninstallProtocolInterface; ACPI_EFI_HANDLE_PROTOCOL HandleProtocol; ACPI_EFI_HANDLE_PROTOCOL PCHandleProtocol; ACPI_EFI_REGISTER_PROTOCOL_NOTIFY RegisterProtocolNotify; ACPI_EFI_LOCATE_HANDLE LocateHandle; ACPI_EFI_LOCATE_DEVICE_PATH LocateDevicePath; ACPI_EFI_INSTALL_CONFIGURATION_TABLE InstallConfigurationTable; ACPI_EFI_IMAGE_LOAD LoadImage; ACPI_EFI_IMAGE_START StartImage; ACPI_EFI_EXIT Exit; ACPI_EFI_IMAGE_UNLOAD UnloadImage; #if 0 ACPI_EFI_EXIT_BOOT_SERVICES ExitBootServices; ACPI_EFI_GET_NEXT_MONOTONIC_COUNT GetNextMonotonicCount; #else ACPI_EFI_UNKNOWN_INTERFACE ExitBootServices; ACPI_EFI_UNKNOWN_INTERFACE GetNextMonotonicCount; #endif ACPI_EFI_STALL Stall; ACPI_EFI_SET_WATCHDOG_TIMER SetWatchdogTimer; #if 0 ACPI_EFI_CONNECT_CONTROLLER ConnectController; ACPI_EFI_DISCONNECT_CONTROLLER DisconnectController; #else ACPI_EFI_UNKNOWN_INTERFACE ConnectController; ACPI_EFI_UNKNOWN_INTERFACE DisconnectController; #endif ACPI_EFI_OPEN_PROTOCOL OpenProtocol; ACPI_EFI_CLOSE_PROTOCOL CloseProtocol; ACPI_EFI_OPEN_PROTOCOL_INFORMATION OpenProtocolInformation; ACPI_EFI_PROTOCOLS_PER_HANDLE ProtocolsPerHandle; ACPI_EFI_LOCATE_HANDLE_BUFFER LocateHandleBuffer; ACPI_EFI_LOCATE_PROTOCOL LocateProtocol; ACPI_EFI_INSTALL_MULTIPLE_PROTOCOL_INTERFACES InstallMultipleProtocolInterfaces; ACPI_EFI_UNINSTALL_MULTIPLE_PROTOCOL_INTERFACES UninstallMultipleProtocolInterfaces; ACPI_EFI_CALCULATE_CRC32 CalculateCrc32; ACPI_EFI_COPY_MEM CopyMem; ACPI_EFI_SET_MEM SetMem; #if 0 ACPI_EFI_CREATE_EVENT_EX CreateEventEx; #else ACPI_EFI_UNKNOWN_INTERFACE CreateEventEx; #endif } ACPI_EFI_BOOT_SERVICES; /* * EFI Runtime Services Table */ #define ACPI_EFI_RUNTIME_SERVICES_SIGNATURE 0x56524553544e5552 #define ACPI_EFI_RUNTIME_SERVICES_REVISION (EFI_SPECIFICATION_MAJOR_REVISION<<16) | (EFI_SPECIFICATION_MINOR_REVISION) typedef struct _ACPI_EFI_RUNTIME_SERVICES { ACPI_EFI_TABLE_HEADER Hdr; ACPI_EFI_GET_TIME GetTime; ACPI_EFI_SET_TIME SetTime; #if 0 ACPI_EFI_GET_WAKEUP_TIME GetWakeupTime; ACPI_EFI_SET_WAKEUP_TIME SetWakeupTime; #else ACPI_EFI_UNKNOWN_INTERFACE GetWakeupTime; ACPI_EFI_UNKNOWN_INTERFACE SetWakeupTime; #endif #if 0 ACPI_EFI_SET_VIRTUAL_ADDRESS_MAP SetVirtualAddressMap; ACPI_EFI_CONVERT_POINTER ConvertPointer; #else ACPI_EFI_UNKNOWN_INTERFACE SetVirtualAddressMap; ACPI_EFI_UNKNOWN_INTERFACE ConvertPointer; #endif #if 0 ACPI_EFI_GET_VARIABLE GetVariable; ACPI_EFI_GET_NEXT_VARIABLE_NAME GetNextVariableName; ACPI_EFI_SET_VARIABLE SetVariable; #else ACPI_EFI_UNKNOWN_INTERFACE GetVariable; ACPI_EFI_UNKNOWN_INTERFACE GetNextVariableName; ACPI_EFI_UNKNOWN_INTERFACE SetVariable; #endif #if 0 ACPI_EFI_GET_NEXT_HIGH_MONO_COUNT GetNextHighMonotonicCount; ACPI_EFI_RESET_SYSTEM ResetSystem; #else ACPI_EFI_UNKNOWN_INTERFACE GetNextHighMonotonicCount; ACPI_EFI_UNKNOWN_INTERFACE ResetSystem; #endif } ACPI_EFI_RUNTIME_SERVICES; /* * EFI System Table */ /* * EFI Configuration Table and GUID definitions */ #define ACPI_TABLE_GUID \ { 0xeb9d2d30, 0x2d88, 0x11d3, {0x9a, 0x16, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d} } #define ACPI_20_TABLE_GUID \ { 0x8868e871, 0xe4f1, 0x11d3, {0xbc, 0x22, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81} } typedef struct _ACPI_EFI_CONFIGURATION_TABLE { ACPI_EFI_GUID VendorGuid; VOID *VendorTable; } ACPI_EFI_CONFIGURATION_TABLE; #define ACPI_EFI_SYSTEM_TABLE_SIGNATURE 0x5453595320494249 #define ACPI_EFI_SYSTEM_TABLE_REVISION (ACPI_EFI_SPECIFICATION_MAJOR_REVISION<<16) | (ACPI_EFI_SPECIFICATION_MINOR_REVISION) typedef struct _ACPI_EFI_SYSTEM_TABLE { ACPI_EFI_TABLE_HEADER Hdr; CHAR16 *FirmwareVendor; UINT32 FirmwareRevision; ACPI_EFI_HANDLE ConsoleInHandle; ACPI_SIMPLE_INPUT_INTERFACE *ConIn; ACPI_EFI_HANDLE ConsoleOutHandle; ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *ConOut; ACPI_EFI_HANDLE StandardErrorHandle; ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE *StdErr; ACPI_EFI_RUNTIME_SERVICES *RuntimeServices; ACPI_EFI_BOOT_SERVICES *BootServices; UINTN NumberOfTableEntries; ACPI_EFI_CONFIGURATION_TABLE *ConfigurationTable; } ACPI_EFI_SYSTEM_TABLE; /* * EFI PCI I/O Protocol */ #define ACPI_EFI_PCI_IO_PROTOCOL \ { 0x4cf5b200, 0x68b8, 0x4ca5, {0x9e, 0xec, 0xb2, 0x3e, 0x3f, 0x50, 0x2, 0x9a} } typedef enum { AcpiEfiPciIoWidthUint8 = 0, AcpiEfiPciIoWidthUint16, AcpiEfiPciIoWidthUint32, AcpiEfiPciIoWidthUint64, AcpiEfiPciIoWidthFifoUint8, AcpiEfiPciIoWidthFifoUint16, AcpiEfiPciIoWidthFifoUint32, AcpiEfiPciIoWidthFifoUint64, AcpiEfiPciIoWidthFillUint8, AcpiEfiPciIoWidthFillUint16, AcpiEfiPciIoWidthFillUint32, AcpiEfiPciIoWidthFillUint64, AcpiEfiPciIoWidthMaximum } ACPI_EFI_PCI_IO_PROTOCOL_WIDTH; typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_PCI_IO_PROTOCOL_CONFIG)( struct _ACPI_EFI_PCI_IO *This, ACPI_EFI_PCI_IO_PROTOCOL_WIDTH Width, UINT32 Offset, UINTN Count, VOID *Buffer); typedef struct { ACPI_EFI_PCI_IO_PROTOCOL_CONFIG Read; ACPI_EFI_PCI_IO_PROTOCOL_CONFIG Write; } ACPI_EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS; typedef ACPI_EFI_STATUS (ACPI_EFI_API *ACPI_EFI_PCI_IO_PROTOCOL_GET_LOCATION)( struct _ACPI_EFI_PCI_IO *This, UINTN *SegmentNumber, UINTN *BusNumber, UINTN *DeviceNumber, UINTN *FunctionNumber); typedef struct _ACPI_EFI_PCI_IO { ACPI_EFI_UNKNOWN_INTERFACE PollMem; ACPI_EFI_UNKNOWN_INTERFACE PollIo; ACPI_EFI_UNKNOWN_INTERFACE Mem; ACPI_EFI_UNKNOWN_INTERFACE Io; ACPI_EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS Pci; ACPI_EFI_UNKNOWN_INTERFACE CopyMem; ACPI_EFI_UNKNOWN_INTERFACE Map; ACPI_EFI_UNKNOWN_INTERFACE Unmap; ACPI_EFI_UNKNOWN_INTERFACE AllocateBuffer; ACPI_EFI_UNKNOWN_INTERFACE FreeBuffer; ACPI_EFI_UNKNOWN_INTERFACE Flush; ACPI_EFI_PCI_IO_PROTOCOL_GET_LOCATION GetLocation; ACPI_EFI_UNKNOWN_INTERFACE Attributes; ACPI_EFI_UNKNOWN_INTERFACE GetBarAttributes; ACPI_EFI_UNKNOWN_INTERFACE SetBarAttributes; UINT64 RomSize; VOID *RomImage; } ACPI_EFI_PCI_IO; /* FILE abstraction */ union acpi_efi_file { struct _ACPI_EFI_FILE_HANDLE File; struct _ACPI_SIMPLE_TEXT_OUTPUT_INTERFACE ConOut; struct _ACPI_SIMPLE_INPUT_INTERFACE ConIn; }; /* EFI definitions */ #if defined(_GNU_EFI) || defined(_EDK2_EFI) /* * This is needed to hide platform specific code from ACPICA */ UINT64 ACPI_EFI_API DivU64x32 ( UINT64 Dividend, UINTN Divisor, UINTN *Remainder); UINT64 ACPI_EFI_API MultU64x32 ( UINT64 Multiplicand, UINTN Multiplier); UINT64 ACPI_EFI_API LShiftU64 ( UINT64 Operand, UINTN Count); UINT64 ACPI_EFI_API RShiftU64 ( UINT64 Operand, UINTN Count); /* * EFI specific prototypes */ ACPI_EFI_STATUS efi_main ( ACPI_EFI_HANDLE Image, ACPI_EFI_SYSTEM_TABLE *SystemTab); int acpi_main ( int argc, char *argv[]); #endif extern ACPI_EFI_GUID AcpiGbl_LoadedImageProtocol; extern ACPI_EFI_GUID AcpiGbl_TextInProtocol; extern ACPI_EFI_GUID AcpiGbl_TextOutProtocol; extern ACPI_EFI_GUID AcpiGbl_FileSystemProtocol; extern ACPI_EFI_GUID AcpiGbl_GenericFileInfo; #endif /* __ACEFIEX_H__ */ acpica-unix-20250404/source/include/platform/acintel.h0000775000175000017500000000647114773714133022111 0ustar ivanhuivanhu/****************************************************************************** * * Name: acintel.h - VC specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACINTEL_H__ #define __ACINTEL_H__ /* * Use compiler specific is a good practice for even when * -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined. */ #ifndef va_arg #include #endif /* Configuration specific to Intel 64-bit C compiler */ #define COMPILER_DEPENDENT_INT64 __int64 #define COMPILER_DEPENDENT_UINT64 unsigned __int64 #define ACPI_INLINE __inline /* * Calling conventions: * * ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads) * ACPI_EXTERNAL_XFACE - External ACPI interfaces * ACPI_INTERNAL_XFACE - Internal ACPI interfaces * ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces */ #define ACPI_SYSTEM_XFACE #define ACPI_EXTERNAL_XFACE #define ACPI_INTERNAL_XFACE #define ACPI_INTERNAL_VAR_XFACE /* remark 981 - operands evaluated in no particular order */ #pragma warning(disable:981) /* warn C4100: unreferenced formal parameter */ #pragma warning(disable:4100) /* warn C4127: conditional expression is constant */ #pragma warning(disable:4127) /* warn C4706: assignment within conditional expression */ #pragma warning(disable:4706) /* warn C4214: bit field types other than int */ #pragma warning(disable:4214) #endif /* __ACINTEL_H__ */ acpica-unix-20250404/source/include/platform/acfreebsd.h0000775000175000017500000000706514773714133022410 0ustar ivanhuivanhu/****************************************************************************** * * Name: acfreebsd.h - OS specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACFREEBSD_H__ #define __ACFREEBSD_H__ #include #ifdef __LP64__ #define ACPI_MACHINE_WIDTH 64 #else #define ACPI_MACHINE_WIDTH 32 #endif #define COMPILER_DEPENDENT_INT64 int64_t #define COMPILER_DEPENDENT_UINT64 uint64_t #define ACPI_UINTPTR_T uintptr_t #define ACPI_TO_INTEGER(p) ((uintptr_t)(p)) #define ACPI_OFFSET(d, f) __offsetof(d, f) #define ACPI_USE_DO_WHILE_0 #define ACPI_USE_LOCAL_CACHE #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #define ACPI_USE_SYSTEM_CLIBRARY #ifdef _KERNEL #include #include #include #include #include #include #include "opt_acpi.h" #define ACPI_MUTEX_TYPE ACPI_OSL_MUTEX #ifdef ACPI_DEBUG #define ACPI_DEBUG_OUTPUT /* for backward compatibility */ #define ACPI_DISASSEMBLER #endif #ifdef ACPI_DEBUG_OUTPUT #include "opt_ddb.h" #ifdef DDB #define ACPI_DEBUGGER #endif /* DDB */ #endif /* ACPI_DEBUG_OUTPUT */ #ifdef DEBUGGER_THREADING #undef DEBUGGER_THREADING #endif /* DEBUGGER_THREADING */ #define DEBUGGER_THREADING 0 /* integrated with DDB */ #ifdef INVARIANTS #define ACPI_MUTEX_DEBUG #endif #else /* _KERNEL */ #if __STDC_HOSTED__ #include #include #endif #define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread)) #define ACPI_USE_STANDARD_HEADERS #define ACPI_FLUSH_CPU_CACHE() #define __cdecl #endif /* _KERNEL */ #endif /* __ACFREEBSD_H__ */ acpica-unix-20250404/source/include/platform/accygwin.h0000775000175000017500000000702114773714133022266 0ustar ivanhuivanhu/****************************************************************************** * * Name: accygwin.h - OS specific defines, etc. for cygwin environment * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACCYGWIN_H__ #define __ACCYGWIN_H__ /* * ACPICA configuration */ #define ACPI_USE_STANDARD_HEADERS #define ACPI_USE_SYSTEM_CLIBRARY #define ACPI_USE_DO_WHILE_0 #define ACPI_FLUSH_CPU_CACHE() /* * This is needed since sem_timedwait does not appear to work properly * on cygwin (always hangs forever). */ #define ACPI_USE_ALTERNATE_TIMEOUT #ifdef ACPI_USE_STANDARD_HEADERS #include #endif #if defined(__ia64__) || defined(__x86_64__) #define ACPI_MACHINE_WIDTH 64 #define COMPILER_DEPENDENT_INT64 long #define COMPILER_DEPENDENT_UINT64 unsigned long #else #define ACPI_MACHINE_WIDTH 32 #define COMPILER_DEPENDENT_INT64 long long #define COMPILER_DEPENDENT_UINT64 unsigned long long #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #endif #ifndef __cdecl #define __cdecl #endif #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) if (GLptr) Acq=1; else Acq=0; #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pending) Pending = 1 /* On Cygwin, pthread_t is a pointer */ #define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread)) /* * The vsnprintf/snprintf functions are defined by c99, but cygwin/gcc * does not enable this prototype when the -ansi flag is set. Also related * to __STRICT_ANSI__. So, we just declare the prototype here. */ int vsnprintf (char *s, size_t n, const char *format, va_list ap); int snprintf (char *s, size_t n, const char *format, ...); #endif /* __ACCYGWIN_H__ */ acpica-unix-20250404/source/include/platform/acwin64.h0000775000175000017500000001044014773714133021734 0ustar ivanhuivanhu/****************************************************************************** * * Name: acwin64.h - OS specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACWIN64_H__ #define __ACWIN64_H__ #define ACPI_USE_STANDARD_HEADERS #define ACPI_USE_SYSTEM_CLIBRARY /* Note: do not include any C library headers here */ /* * Note: MSVC project files should define ACPI_DEBUGGER and ACPI_DISASSEMBLER * as appropriate to enable editor functions like "Find all references". * The editor isn't smart enough to dig through the include files to find * out if these are actually defined. */ /* Eliminate warnings for "old" (non-secure) versions of clib functions */ #ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #endif /* Eliminate warnings for POSIX clib function names (open, write, etc.) */ #ifndef _CRT_NONSTDC_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE #endif #define ACPI_MACHINE_WIDTH 64 /* * Map low I/O functions for MS. This allows us to disable MS language * extensions for maximum portability. */ #define open _open #define read _read #define write _write #define close _close #define stat _stat #define fstat _fstat #define mkdir _mkdir #define snprintf _snprintf #if _MSC_VER <= 1200 /* Versions below VC++ 6 */ #define vsnprintf _vsnprintf #endif #define O_RDONLY _O_RDONLY #define O_BINARY _O_BINARY #define O_CREAT _O_CREAT #define O_WRONLY _O_WRONLY #define O_TRUNC _O_TRUNC #define S_IREAD _S_IREAD #define S_IWRITE _S_IWRITE #define S_IFDIR _S_IFDIR /* * Handle platform- and compiler-specific assembly language differences. * * Notes: * 1) Interrupt 3 is used to break into a debugger * 2) Interrupts are turned off during ACPI register setup */ /*! [Begin] no source code translation */ #define ACPI_FLUSH_CPU_CACHE() /* * For Acpi applications, we don't want to try to access the global lock */ #ifdef ACPI_APPLICATION #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) if (AcpiGbl_GlobalLockPresent) {Acq = 0xFF;} else {Acq = 0;} #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) if (AcpiGbl_GlobalLockPresent) {Pnd = 0xFF;} else {Pnd = 0;} #else #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) #endif /*! [End] no source code translation !*/ #endif /* __ACWIN_H__ */ acpica-unix-20250404/source/include/platform/acnetbsd.h0000775000175000017500000000723014773714133022247 0ustar ivanhuivanhu/****************************************************************************** * * Name: acnetbsd.h - OS specific defines, etc. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACNETBSD_H__ #define __ACNETBSD_H__ #define ACPI_UINTPTR_T uintptr_t #define ACPI_USE_LOCAL_CACHE #define ACPI_CAST_PTHREAD_T(x) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (x)) #ifdef _LP64 #define ACPI_MACHINE_WIDTH 64 #else #define ACPI_MACHINE_WIDTH 32 #endif #define COMPILER_DEPENDENT_INT64 int64_t #define COMPILER_DEPENDENT_UINT64 uint64_t #if defined(_KERNEL) || defined(_STANDALONE) #ifdef _KERNEL_OPT #include "opt_acpi.h" /* collect build-time options here */ #endif /* _KERNEL_OPT */ #include #include #include #include #define asm __asm #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #define ACPI_SYSTEM_XFACE #define ACPI_EXTERNAL_XFACE #define ACPI_INTERNAL_XFACE #define ACPI_INTERNAL_VAR_XFACE #ifdef ACPI_DEBUG #define ACPI_DEBUG_OUTPUT #define ACPI_DBG_TRACK_ALLOCATIONS #ifdef DEBUGGER_THREADING #undef DEBUGGER_THREADING #endif /* DEBUGGER_THREADING */ #define DEBUGGER_THREADING 0 /* integrated with DDB */ #include "opt_ddb.h" #ifdef DDB #define ACPI_DISASSEMBLER #define ACPI_DEBUGGER #endif /* DDB */ #endif /* ACPI_DEBUG */ #else /* defined(_KERNEL) || defined(_STANDALONE) */ #include #include /* Not building kernel code, so use libc */ #define ACPI_USE_STANDARD_HEADERS #define __cli() #define __sti() #define __cdecl #endif /* defined(_KERNEL) || defined(_STANDALONE) */ /* Always use NetBSD code over our local versions */ #define ACPI_USE_SYSTEM_CLIBRARY #define ACPI_USE_NATIVE_DIVIDE #define ACPI_USE_NATIVE_MATH64 #endif /* __ACNETBSD_H__ */ acpica-unix-20250404/source/include/platform/acenvex.h0000775000175000017500000000577714773714133022133 0ustar ivanhuivanhu/****************************************************************************** * * Name: acenvex.h - Extra host and compiler configuration * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACENVEX_H__ #define __ACENVEX_H__ /*! [Begin] no source code translation */ /****************************************************************************** * * Extra host configuration files. All ACPICA headers are included before * including these files. * *****************************************************************************/ #if defined(_LINUX) || defined(__linux__) #include "aclinuxex.h" #elif defined(__DragonFly__) #include "acdragonflyex.h" /* * EFI applications can be built with -nostdlib, in this case, it must be * included after including all other host environmental definitions, in * order to override the definitions. */ #elif defined(_AED_EFI) || defined(_GNU_EFI) || defined(_EDK2_EFI) #include "acefiex.h" #endif #if defined(__GNUC__) && !defined(__INTEL_COMPILER) #include "acgccex.h" #elif defined(_MSC_VER) #include "acmsvcex.h" #endif /*! [End] no source code translation !*/ #endif /* __ACENVEX_H__ */ acpica-unix-20250404/source/include/acstruct.h0000775000175000017500000002734414773714133020500 0ustar ivanhuivanhu/****************************************************************************** * * Name: acstruct.h - Internal structs * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACSTRUCT_H__ #define __ACSTRUCT_H__ /* acpisrc:StructDefs -- for acpisrc conversion */ /***************************************************************************** * * Tree walking typedefs and structs * ****************************************************************************/ /* * Walk state - current state of a parse tree walk. Used for both a leisurely * stroll through the tree (for whatever reason), and for control method * execution. */ #define ACPI_NEXT_OP_DOWNWARD 1 #define ACPI_NEXT_OP_UPWARD 2 /* * Groups of definitions for WalkType used for different implementations of * walkers (never simultaneously) - flags for interpreter: */ #define ACPI_WALK_NON_METHOD 0 #define ACPI_WALK_METHOD 0x01 #define ACPI_WALK_METHOD_RESTART 0x02 typedef struct acpi_walk_state { struct acpi_walk_state *Next; /* Next WalkState in list */ UINT8 DescriptorType; /* To differentiate various internal objs */ UINT8 WalkType; UINT16 Opcode; /* Current AML opcode */ UINT8 NextOpInfo; /* Info about NextOp */ UINT8 NumOperands; /* Stack pointer for Operands[] array */ UINT8 OperandIndex; /* Index into operand stack, to be used by AcpiDsObjStackPush */ ACPI_OWNER_ID OwnerId; /* Owner of objects created during the walk */ BOOLEAN LastPredicate; /* Result of last predicate */ UINT8 CurrentResult; UINT8 ReturnUsed; UINT8 ScopeDepth; UINT8 PassNumber; /* Parse pass during table load */ BOOLEAN NamespaceOverride; /* Override existing objects */ UINT8 ResultSize; /* Total elements for the result stack */ UINT8 ResultCount; /* Current number of occupied elements of result stack */ UINT8 *Aml; UINT32 ArgTypes; UINT32 MethodBreakpoint; /* For single stepping */ UINT32 UserBreakpoint; /* User AML breakpoint */ UINT32 ParseFlags; ACPI_PARSE_STATE ParserState; /* Current state of parser */ UINT32 PrevArgTypes; UINT32 ArgCount; /* push for fixed or var args */ UINT16 MethodNestingDepth; UINT8 MethodIsNested; struct acpi_namespace_node Arguments[ACPI_METHOD_NUM_ARGS]; /* Control method arguments */ struct acpi_namespace_node LocalVariables[ACPI_METHOD_NUM_LOCALS]; /* Control method locals */ union acpi_operand_object *Operands[ACPI_OBJ_NUM_OPERANDS + 1]; /* Operands passed to the interpreter (+1 for NULL terminator) */ union acpi_operand_object **Params; UINT8 *AmlLastWhile; union acpi_operand_object **CallerReturnDesc; ACPI_GENERIC_STATE *ControlState; /* List of control states (nested IFs) */ struct acpi_namespace_node *DeferredNode; /* Used when executing deferred opcodes */ union acpi_operand_object *ImplicitReturnObj; struct acpi_namespace_node *MethodCallNode; /* Called method Node*/ ACPI_PARSE_OBJECT *MethodCallOp; /* MethodCall Op if running a method */ union acpi_operand_object *MethodDesc; /* Method descriptor if running a method */ struct acpi_namespace_node *MethodNode; /* Method node if running a method */ char *MethodPathname; /* Full pathname of running method */ ACPI_PARSE_OBJECT *Op; /* Current parser op */ const ACPI_OPCODE_INFO *OpInfo; /* Info on current opcode */ ACPI_PARSE_OBJECT *Origin; /* Start of walk [Obsolete] */ union acpi_operand_object *ResultObj; ACPI_GENERIC_STATE *Results; /* Stack of accumulated results */ union acpi_operand_object *ReturnDesc; /* Return object, if any */ ACPI_GENERIC_STATE *ScopeInfo; /* Stack of nested scopes */ ACPI_PARSE_OBJECT *PrevOp; /* Last op that was processed */ ACPI_PARSE_OBJECT *NextOp; /* next op to be processed */ ACPI_THREAD_STATE *Thread; ACPI_PARSE_DOWNWARDS DescendingCallback; ACPI_PARSE_UPWARDS AscendingCallback; } ACPI_WALK_STATE; /* Info used by AcpiNsInitializeObjects and AcpiDsInitializeObjects */ typedef struct acpi_init_walk_info { UINT32 TableIndex; UINT32 ObjectCount; UINT32 MethodCount; UINT32 SerialMethodCount; UINT32 NonSerialMethodCount; UINT32 SerializedMethodCount; UINT32 DeviceCount; UINT32 OpRegionCount; UINT32 FieldCount; UINT32 BufferCount; UINT32 PackageCount; UINT32 OpRegionInit; UINT32 FieldInit; UINT32 BufferInit; UINT32 PackageInit; ACPI_OWNER_ID OwnerId; } ACPI_INIT_WALK_INFO; typedef struct acpi_get_devices_info { ACPI_WALK_CALLBACK UserFunction; void *Context; char *Hid; } ACPI_GET_DEVICES_INFO; typedef union acpi_aml_operands { ACPI_OPERAND_OBJECT *Operands[7]; struct { ACPI_OBJECT_INTEGER *Type; ACPI_OBJECT_INTEGER *Code; ACPI_OBJECT_INTEGER *Argument; } Fatal; struct { ACPI_OPERAND_OBJECT *Source; ACPI_OBJECT_INTEGER *Index; ACPI_OPERAND_OBJECT *Target; } Index; struct { ACPI_OPERAND_OBJECT *Source; ACPI_OBJECT_INTEGER *Index; ACPI_OBJECT_INTEGER *Length; ACPI_OPERAND_OBJECT *Target; } Mid; } ACPI_AML_OPERANDS; /* * Structure used to pass object evaluation information and parameters. * Purpose is to reduce CPU stack use. */ typedef struct acpi_evaluate_info { /* The first 3 elements are passed by the caller to AcpiNsEvaluate */ ACPI_NAMESPACE_NODE *PrefixNode; /* Input: starting node */ const char *RelativePathname; /* Input: path relative to PrefixNode */ ACPI_OPERAND_OBJECT **Parameters; /* Input: argument list */ ACPI_NAMESPACE_NODE *Node; /* Resolved node (PrefixNode:RelativePathname) */ ACPI_OPERAND_OBJECT *ObjDesc; /* Object attached to the resolved node */ char *FullPathname; /* Full pathname of the resolved node */ const ACPI_PREDEFINED_INFO *Predefined; /* Used if Node is a predefined name */ ACPI_OPERAND_OBJECT *ReturnObject; /* Object returned from the evaluation */ union acpi_operand_object *ParentPackage; /* Used if return object is a Package */ UINT32 ReturnFlags; /* Used for return value analysis */ UINT32 ReturnBtype; /* Bitmapped type of the returned object */ UINT16 ParamCount; /* Count of the input argument list */ UINT16 NodeFlags; /* Same as Node->Flags */ UINT8 PassNumber; /* Parser pass number */ UINT8 ReturnObjectType; /* Object type of the returned object */ UINT8 Flags; /* General flags */ } ACPI_EVALUATE_INFO; /* Values for Flags above */ #define ACPI_IGNORE_RETURN_VALUE 1 /* Defines for ReturnFlags field above */ #define ACPI_OBJECT_REPAIRED 1 #define ACPI_OBJECT_WRAPPED 2 /* Info used by AcpiNsInitializeDevices */ typedef struct acpi_device_walk_info { ACPI_TABLE_DESC *TableDesc; ACPI_EVALUATE_INFO *EvaluateInfo; UINT32 DeviceCount; UINT32 Num_STA; UINT32 Num_INI; } ACPI_DEVICE_WALK_INFO; /* Info used by Acpi AcpiDbDisplayFields */ typedef struct acpi_region_walk_info { UINT32 DebugLevel; UINT32 Count; ACPI_OWNER_ID OwnerId; UINT8 DisplayType; UINT32 AddressSpaceId; } ACPI_REGION_WALK_INFO; /* TBD: [Restructure] Merge with struct above */ typedef struct acpi_walk_info { UINT32 DebugLevel; UINT32 Count; ACPI_OWNER_ID OwnerId; UINT8 DisplayType; } ACPI_WALK_INFO; /* Display Types */ #define ACPI_DISPLAY_SUMMARY (UINT8) 0 #define ACPI_DISPLAY_OBJECTS (UINT8) 1 #define ACPI_DISPLAY_MASK (UINT8) 1 #define ACPI_DISPLAY_SHORT (UINT8) 2 #endif acpica-unix-20250404/source/include/acopcode.h0000775000175000017500000005470214773714133020423 0ustar ivanhuivanhu/****************************************************************************** * * Name: acopcode.h - AML opcode information for the AML parser and interpreter * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACOPCODE_H__ #define __ACOPCODE_H__ #define MAX_EXTENDED_OPCODE 0x88 #define NUM_EXTENDED_OPCODE (MAX_EXTENDED_OPCODE + 1) #define MAX_INTERNAL_OPCODE #define NUM_INTERNAL_OPCODE (MAX_INTERNAL_OPCODE + 1) /* Used for non-assigned opcodes */ #define _UNK 0x6B /* * Reserved ASCII characters. Do not use any of these for * internal opcodes, since they are used to differentiate * name strings from AML opcodes */ #define _ASC 0x6C #define _NAM 0x6C #define _PFX 0x6D /* * All AML opcodes and the parse-time arguments for each. Used by the AML * parser Each list is compressed into a 32-bit number and stored in the * master opcode table (in psopcode.c). */ #define ARGP_ACCESSFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) #define ARGP_ACQUIRE_OP ARGP_LIST2 (ARGP_SUPERNAME, ARGP_WORDDATA) #define ARGP_ADD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_ALIAS_OP ARGP_LIST2 (ARGP_NAMESTRING, ARGP_NAME) #define ARGP_ARG0 ARG_NONE #define ARGP_ARG1 ARG_NONE #define ARGP_ARG2 ARG_NONE #define ARGP_ARG3 ARG_NONE #define ARGP_ARG4 ARG_NONE #define ARGP_ARG5 ARG_NONE #define ARGP_ARG6 ARG_NONE #define ARGP_BANK_FIELD_OP ARGP_LIST6 (ARGP_PKGLENGTH, ARGP_NAMESTRING, ARGP_NAMESTRING,ARGP_TERMARG, ARGP_BYTEDATA, ARGP_FIELDLIST) #define ARGP_BIT_AND_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_BIT_NAND_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_BIT_NOR_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_BIT_NOT_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) #define ARGP_BIT_OR_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_BIT_XOR_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_BREAK_OP ARG_NONE #define ARGP_BREAK_POINT_OP ARG_NONE #define ARGP_BUFFER_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_BYTELIST) #define ARGP_BYTE_OP ARGP_LIST1 (ARGP_BYTEDATA) #define ARGP_BYTELIST_OP ARGP_LIST1 (ARGP_NAMESTRING) #define ARGP_COMMENT_OP ARGP_LIST2 (ARGP_BYTEDATA, ARGP_COMMENT) #define ARGP_CONCAT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_CONCAT_RES_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_COND_REF_OF_OP ARGP_LIST2 (ARGP_SIMPLENAME, ARGP_TARGET) #define ARGP_CONNECTFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) #define ARGP_CONTINUE_OP ARG_NONE #define ARGP_COPY_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_SIMPLENAME) #define ARGP_CREATE_BIT_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) #define ARGP_CREATE_BYTE_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) #define ARGP_CREATE_DWORD_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) #define ARGP_CREATE_FIELD_OP ARGP_LIST4 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) #define ARGP_CREATE_QWORD_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) #define ARGP_CREATE_WORD_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) #define ARGP_DATA_REGION_OP ARGP_LIST4 (ARGP_NAME, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG) #define ARGP_DEBUG_OP ARG_NONE #define ARGP_DECREMENT_OP ARGP_LIST1 (ARGP_SUPERNAME) #define ARGP_DEREF_OF_OP ARGP_LIST1 (ARGP_SUPERNAME) #define ARGP_DEVICE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_OBJLIST) #define ARGP_DIVIDE_OP ARGP_LIST4 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET, ARGP_TARGET) #define ARGP_DWORD_OP ARGP_LIST1 (ARGP_DWORDDATA) #define ARGP_ELSE_OP ARGP_LIST2 (ARGP_PKGLENGTH, ARGP_TERMLIST) #define ARGP_EVENT_OP ARGP_LIST1 (ARGP_NAME) #define ARGP_EXTERNAL_OP ARGP_LIST3 (ARGP_NAME, ARGP_BYTEDATA, ARGP_BYTEDATA) #define ARGP_FATAL_OP ARGP_LIST3 (ARGP_BYTEDATA, ARGP_DWORDDATA, ARGP_TERMARG) #define ARGP_FIELD_OP ARGP_LIST4 (ARGP_PKGLENGTH, ARGP_NAMESTRING, ARGP_BYTEDATA, ARGP_FIELDLIST) #define ARGP_FIND_SET_LEFT_BIT_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) #define ARGP_FIND_SET_RIGHT_BIT_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) #define ARGP_FROM_BCD_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) #define ARGP_IF_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_TERMLIST) #define ARGP_INCREMENT_OP ARGP_LIST1 (ARGP_SUPERNAME) #define ARGP_INDEX_FIELD_OP ARGP_LIST5 (ARGP_PKGLENGTH, ARGP_NAMESTRING, ARGP_NAMESTRING,ARGP_BYTEDATA, ARGP_FIELDLIST) #define ARGP_INDEX_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_LAND_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) #define ARGP_LEQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) #define ARGP_LGREATER_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) #define ARGP_LGREATEREQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) #define ARGP_LLESS_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) #define ARGP_LLESSEQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) #define ARGP_LNOT_OP ARGP_LIST1 (ARGP_TERMARG) #define ARGP_LNOTEQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) #define ARGP_LOAD_OP ARGP_LIST2 (ARGP_NAMESTRING, ARGP_SUPERNAME) #define ARGP_LOAD_TABLE_OP ARGP_LIST6 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG) #define ARGP_LOCAL0 ARG_NONE #define ARGP_LOCAL1 ARG_NONE #define ARGP_LOCAL2 ARG_NONE #define ARGP_LOCAL3 ARG_NONE #define ARGP_LOCAL4 ARG_NONE #define ARGP_LOCAL5 ARG_NONE #define ARGP_LOCAL6 ARG_NONE #define ARGP_LOCAL7 ARG_NONE #define ARGP_LOR_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) #define ARGP_MATCH_OP ARGP_LIST6 (ARGP_TERMARG, ARGP_BYTEDATA, ARGP_TERMARG, ARGP_BYTEDATA, ARGP_TERMARG, ARGP_TERMARG) #define ARGP_METHOD_OP ARGP_LIST4 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_BYTEDATA, ARGP_TERMLIST) #define ARGP_METHODCALL_OP ARGP_LIST1 (ARGP_NAMESTRING) #define ARGP_MID_OP ARGP_LIST4 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_MOD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_MULTIPLY_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_MUTEX_OP ARGP_LIST2 (ARGP_NAME, ARGP_BYTEDATA) #define ARGP_NAME_OP ARGP_LIST2 (ARGP_NAME, ARGP_DATAOBJ) #define ARGP_NAMEDFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) #define ARGP_NAMEPATH_OP ARGP_LIST1 (ARGP_NAMESTRING) #define ARGP_NOOP_OP ARG_NONE #define ARGP_NOTIFY_OP ARGP_LIST2 (ARGP_SUPERNAME, ARGP_TERMARG) #define ARGP_OBJECT_TYPE_OP ARGP_LIST1 (ARGP_SIMPLENAME) #define ARGP_ONE_OP ARG_NONE #define ARGP_ONES_OP ARG_NONE #define ARGP_PACKAGE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_BYTEDATA, ARGP_DATAOBJLIST) #define ARGP_POWER_RES_OP ARGP_LIST5 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_BYTEDATA, ARGP_WORDDATA, ARGP_OBJLIST) #define ARGP_PROCESSOR_OP ARGP_LIST6 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_BYTEDATA, ARGP_DWORDDATA, ARGP_BYTEDATA, ARGP_OBJLIST) #define ARGP_QWORD_OP ARGP_LIST1 (ARGP_QWORDDATA) #define ARGP_REF_OF_OP ARGP_LIST1 (ARGP_SIMPLENAME) #define ARGP_REGION_OP ARGP_LIST4 (ARGP_NAME, ARGP_BYTEDATA, ARGP_TERMARG, ARGP_TERMARG) #define ARGP_RELEASE_OP ARGP_LIST1 (ARGP_SUPERNAME) #define ARGP_RESERVEDFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) #define ARGP_RESET_OP ARGP_LIST1 (ARGP_SUPERNAME) #define ARGP_RETURN_OP ARGP_LIST1 (ARGP_TERMARG) #define ARGP_REVISION_OP ARG_NONE #define ARGP_SCOPE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_TERMLIST) #define ARGP_SERIALFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) #define ARGP_SHIFT_LEFT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_SHIFT_RIGHT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_SIGNAL_OP ARGP_LIST1 (ARGP_SUPERNAME) #define ARGP_SIZE_OF_OP ARGP_LIST1 (ARGP_SUPERNAME) #define ARGP_SLEEP_OP ARGP_LIST1 (ARGP_TERMARG) #define ARGP_STALL_OP ARGP_LIST1 (ARGP_TERMARG) #define ARGP_STATICSTRING_OP ARGP_LIST1 (ARGP_NAMESTRING) #define ARGP_STORE_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_SUPERNAME) #define ARGP_STRING_OP ARGP_LIST1 (ARGP_CHARLIST) #define ARGP_SUBTRACT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_THERMAL_ZONE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_OBJLIST) #define ARGP_TIMER_OP ARG_NONE #define ARGP_TO_BCD_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) #define ARGP_TO_BUFFER_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) #define ARGP_TO_DEC_STR_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) #define ARGP_TO_HEX_STR_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) #define ARGP_TO_INTEGER_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) #define ARGP_TO_STRING_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) #define ARGP_UNLOAD_OP ARGP_LIST1 (ARGP_SUPERNAME) #define ARGP_VAR_PACKAGE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_DATAOBJLIST) #define ARGP_WAIT_OP ARGP_LIST2 (ARGP_SUPERNAME, ARGP_TERMARG) #define ARGP_WHILE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_TERMLIST) #define ARGP_WORD_OP ARGP_LIST1 (ARGP_WORDDATA) #define ARGP_ZERO_OP ARG_NONE /* * All AML opcodes and the runtime arguments for each. Used by the AML * interpreter Each list is compressed into a 32-bit number and stored * in the master opcode table (in psopcode.c). * * (Used by PrepOperands procedure and the ASL Compiler) */ #define ARGI_ACCESSFIELD_OP ARGI_INVALID_OPCODE #define ARGI_ACQUIRE_OP ARGI_LIST2 (ARGI_MUTEX, ARGI_INTEGER) #define ARGI_ADD_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_ALIAS_OP ARGI_INVALID_OPCODE #define ARGI_ARG0 ARG_NONE #define ARGI_ARG1 ARG_NONE #define ARGI_ARG2 ARG_NONE #define ARGI_ARG3 ARG_NONE #define ARGI_ARG4 ARG_NONE #define ARGI_ARG5 ARG_NONE #define ARGI_ARG6 ARG_NONE #define ARGI_BANK_FIELD_OP ARGI_LIST1 (ARGI_INTEGER) #define ARGI_BIT_AND_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_BIT_NAND_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_BIT_NOR_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_BIT_NOT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_BIT_OR_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_BIT_XOR_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_BREAK_OP ARG_NONE #define ARGI_BREAK_POINT_OP ARG_NONE #define ARGI_BUFFER_OP ARGI_LIST1 (ARGI_INTEGER) #define ARGI_BYTE_OP ARGI_INVALID_OPCODE #define ARGI_BYTELIST_OP ARGI_INVALID_OPCODE #define ARGI_COMMENT_OP ARGI_INVALID_OPCODE #define ARGI_CONCAT_OP ARGI_LIST3 (ARGI_ANYTYPE, ARGI_ANYTYPE, ARGI_TARGETREF) #define ARGI_CONCAT_RES_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_BUFFER, ARGI_TARGETREF) #define ARGI_COND_REF_OF_OP ARGI_LIST2 (ARGI_OBJECT_REF, ARGI_TARGETREF) #define ARGI_CONNECTFIELD_OP ARGI_INVALID_OPCODE #define ARGI_CONTINUE_OP ARGI_INVALID_OPCODE #define ARGI_COPY_OP ARGI_LIST2 (ARGI_ANYTYPE, ARGI_SIMPLE_TARGET) #define ARGI_CREATE_BIT_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) #define ARGI_CREATE_BYTE_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) #define ARGI_CREATE_DWORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) #define ARGI_CREATE_FIELD_OP ARGI_LIST4 (ARGI_BUFFER, ARGI_INTEGER, ARGI_INTEGER, ARGI_REFERENCE) #define ARGI_CREATE_QWORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) #define ARGI_CREATE_WORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) #define ARGI_DATA_REGION_OP ARGI_LIST3 (ARGI_STRING, ARGI_STRING, ARGI_STRING) #define ARGI_DEBUG_OP ARG_NONE #define ARGI_DECREMENT_OP ARGI_LIST1 (ARGI_TARGETREF) #define ARGI_DEREF_OF_OP ARGI_LIST1 (ARGI_REF_OR_STRING) #define ARGI_DEVICE_OP ARGI_INVALID_OPCODE #define ARGI_DIVIDE_OP ARGI_LIST4 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF, ARGI_TARGETREF) #define ARGI_DWORD_OP ARGI_INVALID_OPCODE #define ARGI_ELSE_OP ARGI_INVALID_OPCODE #define ARGI_EVENT_OP ARGI_INVALID_OPCODE #define ARGI_EXTERNAL_OP ARGI_LIST3 (ARGI_STRING, ARGI_INTEGER, ARGI_INTEGER) #define ARGI_FATAL_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_INTEGER) #define ARGI_FIELD_OP ARGI_INVALID_OPCODE #define ARGI_FIND_SET_LEFT_BIT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_FIND_SET_RIGHT_BIT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_FROM_BCD_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_FIXED_TARGET) #define ARGI_IF_OP ARGI_INVALID_OPCODE #define ARGI_INCREMENT_OP ARGI_LIST1 (ARGI_TARGETREF) #define ARGI_INDEX_FIELD_OP ARGI_INVALID_OPCODE #define ARGI_INDEX_OP ARGI_LIST3 (ARGI_COMPLEXOBJ, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_LAND_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) #define ARGI_LEQUAL_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA) #define ARGI_LGREATER_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA) #define ARGI_LGREATEREQUAL_OP ARGI_INVALID_OPCODE #define ARGI_LLESS_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA) #define ARGI_LLESSEQUAL_OP ARGI_INVALID_OPCODE #define ARGI_LNOT_OP ARGI_LIST1 (ARGI_INTEGER) #define ARGI_LNOTEQUAL_OP ARGI_INVALID_OPCODE #define ARGI_LOAD_OP ARGI_LIST2 (ARGI_REGION_OR_BUFFER,ARGI_TARGETREF) #define ARGI_LOAD_TABLE_OP ARGI_LIST6 (ARGI_STRING, ARGI_STRING, ARGI_STRING, ARGI_STRING, ARGI_STRING, ARGI_ANYTYPE) #define ARGI_LOCAL0 ARG_NONE #define ARGI_LOCAL1 ARG_NONE #define ARGI_LOCAL2 ARG_NONE #define ARGI_LOCAL3 ARG_NONE #define ARGI_LOCAL4 ARG_NONE #define ARGI_LOCAL5 ARG_NONE #define ARGI_LOCAL6 ARG_NONE #define ARGI_LOCAL7 ARG_NONE #define ARGI_LOR_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) #define ARGI_MATCH_OP ARGI_LIST6 (ARGI_PACKAGE, ARGI_INTEGER, ARGI_COMPUTEDATA, ARGI_INTEGER,ARGI_COMPUTEDATA,ARGI_INTEGER) #define ARGI_METHOD_OP ARGI_INVALID_OPCODE #define ARGI_METHODCALL_OP ARGI_INVALID_OPCODE #define ARGI_MID_OP ARGI_LIST4 (ARGI_BUFFER_OR_STRING,ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_MOD_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_MULTIPLY_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_MUTEX_OP ARGI_INVALID_OPCODE #define ARGI_NAME_OP ARGI_INVALID_OPCODE #define ARGI_NAMEDFIELD_OP ARGI_INVALID_OPCODE #define ARGI_NAMEPATH_OP ARGI_INVALID_OPCODE #define ARGI_NOOP_OP ARG_NONE #define ARGI_NOTIFY_OP ARGI_LIST2 (ARGI_DEVICE_REF, ARGI_INTEGER) #define ARGI_OBJECT_TYPE_OP ARGI_LIST1 (ARGI_ANYTYPE) #define ARGI_ONE_OP ARG_NONE #define ARGI_ONES_OP ARG_NONE #define ARGI_PACKAGE_OP ARGI_LIST1 (ARGI_INTEGER) #define ARGI_POWER_RES_OP ARGI_INVALID_OPCODE #define ARGI_PROCESSOR_OP ARGI_INVALID_OPCODE #define ARGI_QWORD_OP ARGI_INVALID_OPCODE #define ARGI_REF_OF_OP ARGI_LIST1 (ARGI_OBJECT_REF) #define ARGI_REGION_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) #define ARGI_RELEASE_OP ARGI_LIST1 (ARGI_MUTEX) #define ARGI_RESERVEDFIELD_OP ARGI_INVALID_OPCODE #define ARGI_RESET_OP ARGI_LIST1 (ARGI_EVENT) #define ARGI_RETURN_OP ARGI_INVALID_OPCODE #define ARGI_REVISION_OP ARG_NONE #define ARGI_SCOPE_OP ARGI_INVALID_OPCODE #define ARGI_SERIALFIELD_OP ARGI_INVALID_OPCODE #define ARGI_SHIFT_LEFT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_SHIFT_RIGHT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_SIGNAL_OP ARGI_LIST1 (ARGI_EVENT) #define ARGI_SIZE_OF_OP ARGI_LIST1 (ARGI_DATAOBJECT) #define ARGI_SLEEP_OP ARGI_LIST1 (ARGI_INTEGER) #define ARGI_STALL_OP ARGI_LIST1 (ARGI_INTEGER) #define ARGI_STATICSTRING_OP ARGI_INVALID_OPCODE #define ARGI_STORE_OP ARGI_LIST2 (ARGI_DATAREFOBJ, ARGI_STORE_TARGET) #define ARGI_STRING_OP ARGI_INVALID_OPCODE #define ARGI_SUBTRACT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_THERMAL_ZONE_OP ARGI_INVALID_OPCODE #define ARGI_TIMER_OP ARG_NONE #define ARGI_TO_BCD_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_FIXED_TARGET) #define ARGI_TO_BUFFER_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET) #define ARGI_TO_DEC_STR_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET) #define ARGI_TO_HEX_STR_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET) #define ARGI_TO_INTEGER_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET) #define ARGI_TO_STRING_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_FIXED_TARGET) #define ARGI_UNLOAD_OP ARGI_LIST1 (ARGI_DDBHANDLE) #define ARGI_VAR_PACKAGE_OP ARGI_LIST1 (ARGI_INTEGER) #define ARGI_WAIT_OP ARGI_LIST2 (ARGI_EVENT, ARGI_INTEGER) #define ARGI_WHILE_OP ARGI_INVALID_OPCODE #define ARGI_WORD_OP ARGI_INVALID_OPCODE #define ARGI_ZERO_OP ARG_NONE #endif /* __ACOPCODE_H__ */ acpica-unix-20250404/source/include/acconfig.h0000775000175000017500000002231314773714133020410 0ustar ivanhuivanhu/****************************************************************************** * * Name: acconfig.h - Global configuration constants * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef _ACCONFIG_H #define _ACCONFIG_H /****************************************************************************** * * Configuration options * *****************************************************************************/ /* * ACPI_DEBUG_OUTPUT - This switch enables all the debug facilities of the * ACPI subsystem. This includes the DEBUG_PRINT output * statements. When disabled, all DEBUG_PRINT * statements are compiled out. * * ACPI_APPLICATION - Use this switch if the subsystem is going to be run * at the application level. * */ /* * OS name, used for the _OS object. The _OS object is essentially obsolete, * but there is a large base of ASL/AML code in existing machines that check * for the string below. The use of this string usually guarantees that * the ASL will execute down the most tested code path. Also, there is some * code that will not execute the _OSI method unless _OS matches the string * below. Therefore, change this string at your own risk. */ #define ACPI_OS_NAME "Microsoft Windows NT" /* Maximum objects in the various object caches */ #define ACPI_MAX_STATE_CACHE_DEPTH 96 /* State objects */ #define ACPI_MAX_PARSE_CACHE_DEPTH 96 /* Parse tree objects */ #define ACPI_MAX_EXTPARSE_CACHE_DEPTH 96 /* Parse tree objects */ #define ACPI_MAX_OBJECT_CACHE_DEPTH 96 /* Interpreter operand objects */ #define ACPI_MAX_NAMESPACE_CACHE_DEPTH 96 /* Namespace objects */ #define ACPI_MAX_COMMENT_CACHE_DEPTH 96 /* Comments for the -ca option */ /* * Should the subsystem abort the loading of an ACPI table if the * table checksum is incorrect? */ #ifndef ACPI_CHECKSUM_ABORT #define ACPI_CHECKSUM_ABORT FALSE #endif /* * Generate a version of ACPICA that only supports "reduced hardware" * platforms (as defined in ACPI 5.0). Set to TRUE to generate a specialized * version of ACPICA that ONLY supports the ACPI 5.0 "reduced hardware" * model. In other words, no ACPI hardware is supported. * * If TRUE, this means no support for the following: * PM Event and Control registers * SCI interrupt (and handler) * Fixed Events * General Purpose Events (GPEs) * Global Lock * ACPI PM timer */ #ifndef ACPI_REDUCED_HARDWARE #define ACPI_REDUCED_HARDWARE FALSE #endif /****************************************************************************** * * Subsystem Constants * *****************************************************************************/ /* Version of ACPI supported */ #define ACPI_CA_SUPPORT_LEVEL 5 /* Maximum count for a semaphore object */ #define ACPI_MAX_SEMAPHORE_COUNT 256 /* Maximum object reference count (detects object deletion issues) */ #define ACPI_MAX_REFERENCE_COUNT 0x4000 /* Default page size for use in mapping memory for operation regions */ #define ACPI_DEFAULT_PAGE_SIZE 4096 /* Must be power of 2 */ /* OwnerId tracking. 128 entries allows for 4095 OwnerIds */ #define ACPI_NUM_OWNERID_MASKS 128 /* Size of the root table array is increased by this increment */ #define ACPI_ROOT_TABLE_SIZE_INCREMENT 4 /* Maximum sleep allowed via Sleep() operator */ #define ACPI_MAX_SLEEP 2000 /* 2000 millisec == two seconds */ /* Address Range lists are per-SpaceId (Memory and I/O only) */ #define ACPI_ADDRESS_RANGE_MAX 2 /* Maximum time (default 30s) of While() loops before abort */ #define ACPI_MAX_LOOP_TIMEOUT 30 /****************************************************************************** * * ACPI Specification constants (Do not change unless the specification changes) * *****************************************************************************/ /* Method info (in WALK_STATE), containing local variables and arguments */ #define ACPI_METHOD_NUM_LOCALS 8 #define ACPI_METHOD_MAX_LOCAL 7 #define ACPI_METHOD_NUM_ARGS 7 #define ACPI_METHOD_MAX_ARG 6 /* * Operand Stack (in WALK_STATE), Must be large enough to contain METHOD_MAX_ARG */ #define ACPI_OBJ_NUM_OPERANDS 8 #define ACPI_OBJ_MAX_OPERAND 7 /* Number of elements in the Result Stack frame, can be an arbitrary value */ #define ACPI_RESULTS_FRAME_OBJ_NUM 8 /* * Maximal number of elements the Result Stack can contain, * it may be an arbitrary value not exceeding the types of * ResultSize and ResultCount (now UINT8). */ #define ACPI_RESULTS_OBJ_NUM_MAX 255 /* Constants used in searching for the RSDP in low memory */ #define ACPI_EBDA_PTR_LOCATION 0x0000040E /* Physical Address */ #define ACPI_EBDA_PTR_LENGTH 2 #define ACPI_EBDA_WINDOW_SIZE 1024 #define ACPI_HI_RSDP_WINDOW_BASE 0x000E0000 /* Physical Address */ #define ACPI_HI_RSDP_WINDOW_SIZE 0x00020000 #define ACPI_RSDP_SCAN_STEP 16 /* Operation regions */ #define ACPI_USER_REGION_BEGIN 0x80 /* Maximum SpaceIds for Operation Regions */ #define ACPI_MAX_ADDRESS_SPACE 255 #define ACPI_NUM_DEFAULT_SPACES 4 /* Array sizes. Used for range checking also */ #define ACPI_MAX_MATCH_OPCODE 5 /* RSDP checksums */ #define ACPI_RSDP_CHECKSUM_LENGTH 20 #define ACPI_RSDP_XCHECKSUM_LENGTH 36 /* * SMBus, GSBus and IPMI buffer sizes. All have a 2-byte header, * containing both Status and Length. */ #define ACPI_SERIAL_HEADER_SIZE 2 /* Common for below. Status and Length fields */ #define ACPI_SMBUS_DATA_SIZE 32 #define ACPI_SMBUS_BUFFER_SIZE ACPI_SERIAL_HEADER_SIZE + ACPI_SMBUS_DATA_SIZE #define ACPI_IPMI_DATA_SIZE 64 #define ACPI_IPMI_BUFFER_SIZE ACPI_SERIAL_HEADER_SIZE + ACPI_IPMI_DATA_SIZE #define ACPI_MAX_GSBUS_DATA_SIZE 255 #define ACPI_MAX_GSBUS_BUFFER_SIZE ACPI_SERIAL_HEADER_SIZE + ACPI_MAX_GSBUS_DATA_SIZE #define ACPI_PRM_INPUT_BUFFER_SIZE 26 #define ACPI_FFH_INPUT_BUFFER_SIZE 256 /* _SxD and _SxW control methods */ #define ACPI_NUM_SxD_METHODS 4 #define ACPI_NUM_SxW_METHODS 5 /****************************************************************************** * * Miscellaneous constants * *****************************************************************************/ /* UUID constants */ #define UUID_BUFFER_LENGTH 16 /* Length of UUID in memory */ #define UUID_STRING_LENGTH 36 /* Total length of a UUID string */ /* Positions for required hyphens (dashes) in UUID strings */ #define UUID_HYPHEN1_OFFSET 8 #define UUID_HYPHEN2_OFFSET 13 #define UUID_HYPHEN3_OFFSET 18 #define UUID_HYPHEN4_OFFSET 23 /****************************************************************************** * * ACPI AML Debugger * *****************************************************************************/ #define ACPI_DEBUGGER_MAX_ARGS ACPI_METHOD_NUM_ARGS + 4 /* Max command line arguments */ #define ACPI_DB_LINE_BUFFER_SIZE 512 #define ACPI_DEBUGGER_COMMAND_PROMPT '-' #define ACPI_DEBUGGER_EXECUTE_PROMPT '%' #endif /* _ACCONFIG_H */ acpica-unix-20250404/source/include/actbl1.h0000775000175000017500000020746514773714133020022 0ustar ivanhuivanhu/****************************************************************************** * * Name: actbl1.h - Additional ACPI table definitions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACTBL1_H__ #define __ACTBL1_H__ /******************************************************************************* * * Additional ACPI Tables * * These tables are not consumed directly by the ACPICA subsystem, but are * included here to support device drivers and the AML disassembler. * ******************************************************************************/ /* * Values for description table header signatures for tables defined in this * file. Useful because they make it more difficult to inadvertently type in * the wrong signature. */ #define ACPI_SIG_AEST "AEST" /* Arm Error Source Table */ #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */ #define ACPI_SIG_ASPT "ASPT" /* AMD Secure Processor Table */ #define ACPI_SIG_BERT "BERT" /* Boot Error Record Table */ #define ACPI_SIG_BGRT "BGRT" /* Boot Graphics Resource Table */ #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */ #define ACPI_SIG_CEDT "CEDT" /* CXL Early Discovery Table */ #define ACPI_SIG_CPEP "CPEP" /* Corrected Platform Error Polling table */ #define ACPI_SIG_CSRT "CSRT" /* Core System Resource Table */ #define ACPI_SIG_DBG2 "DBG2" /* Debug Port table type 2 */ #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */ #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */ #define ACPI_SIG_DRTM "DRTM" /* Dynamic Root of Trust for Measurement table */ #define ACPI_SIG_ECDT "ECDT" /* Embedded Controller Boot Resources Table */ #define ACPI_SIG_EINJ "EINJ" /* Error Injection table */ #define ACPI_SIG_ERST "ERST" /* Error Record Serialization Table */ #define ACPI_SIG_FPDT "FPDT" /* Firmware Performance Data Table */ #define ACPI_SIG_GTDT "GTDT" /* Generic Timer Description Table */ #define ACPI_SIG_HEST "HEST" /* Hardware Error Source Table */ #define ACPI_SIG_HMAT "HMAT" /* Heterogeneous Memory Attributes Table */ #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */ #define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */ #define ACPI_SIG_MSCT "MSCT" /* Maximum System Characteristics Table*/ #define ACPI_SIG_S3PT "S3PT" /* S3 Performance (sub)Table */ #define ACPI_SIG_PCCS "PCC" /* PCC Shared Memory Region */ /* Reserved table signatures */ #define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */ #define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */ /* * These tables have been seen in the field, but no definition has been found */ #ifdef ACPI_UNDEFINED_TABLES #define ACPI_SIG_ATKG "ATKG" #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */ #define ACPI_SIG_IEIT "IEIT" #endif /* * All tables must be byte-packed to match the ACPI specification, since * the tables are provided by the system BIOS. */ #pragma pack(1) /* * Note: C bitfields are not used for this reason: * * "Bitfields are great and easy to read, but unfortunately the C language * does not specify the layout of bitfields in memory, which means they are * essentially useless for dealing with packed data in on-disk formats or * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me, * this decision was a design error in C. Ritchie could have picked an order * and stuck with it." Norman Ramsey. * See http://stackoverflow.com/a/1053662/41661 */ /******************************************************************************* * * Common subtable headers * ******************************************************************************/ /* Generic subtable header (used in MADT, SRAT, etc.) */ typedef struct acpi_subtable_header { UINT8 Type; UINT8 Length; } ACPI_SUBTABLE_HEADER; /* Subtable header for WHEA tables (EINJ, ERST, WDAT) */ typedef struct acpi_whea_header { UINT8 Action; UINT8 Instruction; UINT8 Flags; UINT8 Reserved; ACPI_GENERIC_ADDRESS RegisterRegion; UINT64 Value; /* Value used with Read/Write register */ UINT64 Mask; /* Bitmask required for this register instruction */ } ACPI_WHEA_HEADER; /* Larger subtable header (when Length can exceed 255) */ typedef struct acpi_subtable_header_16 { UINT16 Type; UINT16 Length; } ACPI_SUBTBL_HDR_16; /******************************************************************************* * * ASF - Alert Standard Format table (Signature "ASF!") * Revision 0x10 * * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003 * ******************************************************************************/ typedef struct acpi_table_asf { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_ASF; /* ASF subtable header */ typedef struct acpi_asf_header { UINT8 Type; UINT8 Reserved; UINT16 Length; } ACPI_ASF_HEADER; /* Values for Type field above */ enum AcpiAsfType { ACPI_ASF_TYPE_INFO = 0, ACPI_ASF_TYPE_ALERT = 1, ACPI_ASF_TYPE_CONTROL = 2, ACPI_ASF_TYPE_BOOT = 3, ACPI_ASF_TYPE_ADDRESS = 4, ACPI_ASF_TYPE_RESERVED = 5 }; /* * ASF subtables */ /* 0: ASF Information */ typedef struct acpi_asf_info { ACPI_ASF_HEADER Header; UINT8 MinResetValue; UINT8 MinPollInterval; UINT16 SystemId; UINT32 MfgId; UINT8 Flags; UINT8 Reserved2[3]; } ACPI_ASF_INFO; /* Masks for Flags field above */ #define ACPI_ASF_SMBUS_PROTOCOLS (1) /* 1: ASF Alerts */ typedef struct acpi_asf_alert { ACPI_ASF_HEADER Header; UINT8 AssertMask; UINT8 DeassertMask; UINT8 Alerts; UINT8 DataLength; } ACPI_ASF_ALERT; typedef struct acpi_asf_alert_data { UINT8 Address; UINT8 Command; UINT8 Mask; UINT8 Value; UINT8 SensorType; UINT8 Type; UINT8 Offset; UINT8 SourceType; UINT8 Severity; UINT8 SensorNumber; UINT8 Entity; UINT8 Instance; } ACPI_ASF_ALERT_DATA; /* 2: ASF Remote Control */ typedef struct acpi_asf_remote { ACPI_ASF_HEADER Header; UINT8 Controls; UINT8 DataLength; UINT16 Reserved2; } ACPI_ASF_REMOTE; typedef struct acpi_asf_control_data { UINT8 Function; UINT8 Address; UINT8 Command; UINT8 Value; } ACPI_ASF_CONTROL_DATA; /* 3: ASF RMCP Boot Options */ typedef struct acpi_asf_rmcp { ACPI_ASF_HEADER Header; UINT8 Capabilities[7]; UINT8 CompletionCode; UINT32 EnterpriseId; UINT8 Command; UINT16 Parameter; UINT16 BootOptions; UINT16 OemParameters; } ACPI_ASF_RMCP; /* 4: ASF Address */ typedef struct acpi_asf_address { ACPI_ASF_HEADER Header; UINT8 EpromAddress; UINT8 Devices; } ACPI_ASF_ADDRESS; /******************************************************************************* * * ASPT - AMD Secure Processor Table (Signature "ASPT") * Revision 0x1 * * Conforms to AMD Socket SP5/SP6 Platform ASPT Rev1 Specification, * 12 September 2022 * ******************************************************************************/ typedef struct acpi_table_aspt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 NumEntries; } ACPI_TABLE_ASPT; /* ASPT subtable header */ typedef struct acpi_aspt_header { UINT16 Type; UINT16 Length; } ACPI_ASPT_HEADER; /* Values for Type field above */ enum AcpiAsptType { ACPI_ASPT_TYPE_GLOBAL_REGS = 0, ACPI_ASPT_TYPE_SEV_MBOX_REGS = 1, ACPI_ASPT_TYPE_ACPI_MBOX_REGS = 2, ACPI_ASPT_TYPE_UNKNOWN = 3, }; /* * ASPT subtables */ /* 0: ASPT Global Registers */ typedef struct acpi_aspt_global_regs { ACPI_ASPT_HEADER Header; UINT32 Reserved; UINT64 FeatureRegAddr; UINT64 IrqEnRegAddr; UINT64 IrqStRegAddr; } ACPI_ASPT_GLOBAL_REGS; /* 1: ASPT SEV Mailbox Registers */ typedef struct acpi_aspt_sev_mbox_regs { ACPI_ASPT_HEADER Header; UINT8 MboxIrqId; UINT8 Reserved[3]; UINT64 CmdRespRegAddr; UINT64 CmdBufLoRegAddr; UINT64 CmdBufHiRegAddr; } ACPI_ASPT_SEV_MBOX_REGS; /* 2: ASPT ACPI Mailbox Registers */ typedef struct acpi_aspt_acpi_mbox_regs { ACPI_ASPT_HEADER Header; UINT32 Reserved1; UINT64 CmdRespRegAddr; UINT64 Reserved2[2]; } ACPI_ASPT_ACPI_MBOX_REGS; /******************************************************************************* * * BERT - Boot Error Record Table (ACPI 4.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_bert { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 RegionLength; /* Length of the boot error region */ UINT64 Address; /* Physical address of the error region */ } ACPI_TABLE_BERT; /* Boot Error Region (not a subtable, pointed to by Address field above) */ typedef struct acpi_bert_region { UINT32 BlockStatus; /* Type of error information */ UINT32 RawDataOffset; /* Offset to raw error data */ UINT32 RawDataLength; /* Length of raw error data */ UINT32 DataLength; /* Length of generic error data */ UINT32 ErrorSeverity; /* Severity code */ } ACPI_BERT_REGION; /* Values for BlockStatus flags above */ #define ACPI_BERT_UNCORRECTABLE (1) #define ACPI_BERT_CORRECTABLE (1<<1) #define ACPI_BERT_MULTIPLE_UNCORRECTABLE (1<<2) #define ACPI_BERT_MULTIPLE_CORRECTABLE (1<<3) #define ACPI_BERT_ERROR_ENTRY_COUNT (0xFF<<4) /* 8 bits, error count */ /* Values for ErrorSeverity above */ enum AcpiBertErrorSeverity { ACPI_BERT_ERROR_CORRECTABLE = 0, ACPI_BERT_ERROR_FATAL = 1, ACPI_BERT_ERROR_CORRECTED = 2, ACPI_BERT_ERROR_NONE = 3, ACPI_BERT_ERROR_RESERVED = 4 /* 4 and greater are reserved */ }; /* * Note: The generic error data that follows the ErrorSeverity field above * uses the ACPI_HEST_GENERIC_DATA defined under the HEST table below */ /******************************************************************************* * * BGRT - Boot Graphics Resource Table (ACPI 5.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_bgrt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT16 Version; UINT8 Status; UINT8 ImageType; UINT64 ImageAddress; UINT32 ImageOffsetX; UINT32 ImageOffsetY; } ACPI_TABLE_BGRT; /* Flags for Status field above */ #define ACPI_BGRT_DISPLAYED (1) #define ACPI_BGRT_ORIENTATION_OFFSET (3 << 1) /******************************************************************************* * * BOOT - Simple Boot Flag Table * Version 1 * * Conforms to the "Simple Boot Flag Specification", Version 2.1 * ******************************************************************************/ typedef struct acpi_table_boot { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 CmosIndex; /* Index in CMOS RAM for the boot register */ UINT8 Reserved[3]; } ACPI_TABLE_BOOT; /******************************************************************************* * * CDAT - Coherent Device Attribute Table * Version 1 * * Conforms to the "Coherent Device Attribute Table (CDAT) Specification " (Revision 1.01, October 2020.) * ******************************************************************************/ typedef struct acpi_table_cdat { UINT32 Length; /* Length of table in bytes, including this header */ UINT8 Revision; /* ACPI Specification minor version number */ UINT8 Checksum; /* To make sum of entire table == 0 */ UINT8 Reserved[6]; UINT32 Sequence; /* Used to detect runtime CDAT table changes */ } ACPI_TABLE_CDAT; /* CDAT common subtable header */ typedef struct acpi_cdat_header { UINT8 Type; UINT8 Reserved; UINT16 Length; } ACPI_CDAT_HEADER; /* Values for Type field above */ enum AcpiCdatType { ACPI_CDAT_TYPE_DSMAS = 0, ACPI_CDAT_TYPE_DSLBIS = 1, ACPI_CDAT_TYPE_DSMSCIS = 2, ACPI_CDAT_TYPE_DSIS = 3, ACPI_CDAT_TYPE_DSEMTS = 4, ACPI_CDAT_TYPE_SSLBIS = 5, ACPI_CDAT_TYPE_RESERVED = 6 /* 6 through 0xFF are reserved */ }; /* Subtable 0: Device Scoped Memory Affinity Structure (DSMAS) */ typedef struct acpi_cdat_dsmas { UINT8 DsmadHandle; UINT8 Flags; UINT16 Reserved; UINT64 DpaBaseAddress; UINT64 DpaLength; } ACPI_CDAT_DSMAS; /* Flags for subtable above */ #define ACPI_CDAT_DSMAS_NON_VOLATILE (1 << 2) #define ACPI_CDAT_DSMAS_SHAREABLE (1 << 3) #define ACPI_CDAT_DSMAS_READ_ONLY (1 << 6) /* Subtable 1: Device scoped Latency and Bandwidth Information Structure (DSLBIS) */ typedef struct acpi_cdat_dslbis { UINT8 Handle; UINT8 Flags; /* If Handle matches a DSMAS handle, the definition of this field matches * Flags field in HMAT System Locality Latency */ UINT8 DataType; UINT8 Reserved; UINT64 EntryBaseUnit; UINT16 Entry[3]; UINT16 Reserved2; } ACPI_CDAT_DSLBIS; /* Subtable 2: Device Scoped Memory Side Cache Information Structure (DSMSCIS) */ typedef struct acpi_cdat_dsmscis { UINT8 DsmasHandle; UINT8 Reserved[3]; UINT64 SideCacheSize; UINT32 CacheAttributes; } ACPI_CDAT_DSMSCIS; /* Subtable 3: Device Scoped Initiator Structure (DSIS) */ typedef struct acpi_cdat_dsis { UINT8 Flags; UINT8 Handle; UINT16 Reserved; } ACPI_CDAT_DSIS; /* Flags for above subtable */ #define ACPI_CDAT_DSIS_MEM_ATTACHED (1 << 0) /* Subtable 4: Device Scoped EFI Memory Type Structure (DSEMTS) */ typedef struct acpi_cdat_dsemts { UINT8 DsmasHandle; UINT8 MemoryType; UINT16 Reserved; UINT64 DpaOffset; UINT64 RangeLength; } ACPI_CDAT_DSEMTS; /* Subtable 5: Switch Scoped Latency and Bandwidth Information Structure (SSLBIS) */ typedef struct acpi_cdat_sslbis { UINT8 DataType; UINT8 Reserved[3]; UINT64 EntryBaseUnit; } ACPI_CDAT_SSLBIS; /* Sub-subtable for above, SslbeEntries field */ typedef struct acpi_cdat_sslbe { UINT16 PortxId; UINT16 PortyId; UINT16 LatencyOrBandwidth; UINT16 Reserved; } ACPI_CDAT_SSLBE; #define ACPI_CDAT_SSLBIS_US_PORT 0x0100 #define ACPI_CDAT_SSLBIS_ANY_PORT 0xffff /******************************************************************************* * * CEDT - CXL Early Discovery Table * Version 1 * * Conforms to the "CXL Early Discovery Table" (CXL 2.0, October 2020) * ******************************************************************************/ typedef struct acpi_table_cedt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_CEDT; /* CEDT subtable header (Performance Record Structure) */ typedef struct acpi_cedt_header { UINT8 Type; UINT8 Reserved; UINT16 Length; } ACPI_CEDT_HEADER; /* Values for Type field above */ enum AcpiCedtType { ACPI_CEDT_TYPE_CHBS = 0, ACPI_CEDT_TYPE_CFMWS = 1, ACPI_CEDT_TYPE_CXIMS = 2, ACPI_CEDT_TYPE_RDPAS = 3, ACPI_CEDT_TYPE_RESERVED = 4, }; /* Values for version field above */ #define ACPI_CEDT_CHBS_VERSION_CXL11 (0) #define ACPI_CEDT_CHBS_VERSION_CXL20 (1) /* Values for length field above */ #define ACPI_CEDT_CHBS_LENGTH_CXL11 (0x2000) #define ACPI_CEDT_CHBS_LENGTH_CXL20 (0x10000) /* * CEDT subtables */ /* 0: CXL Host Bridge Structure */ typedef struct acpi_cedt_chbs { ACPI_CEDT_HEADER Header; UINT32 Uid; UINT32 CxlVersion; UINT32 Reserved; UINT64 Base; UINT64 Length; } ACPI_CEDT_CHBS; /* 1: CXL Fixed Memory Window Structure */ typedef struct acpi_cedt_cfmws { ACPI_CEDT_HEADER Header; UINT32 Reserved1; UINT64 BaseHpa; UINT64 WindowSize; UINT8 InterleaveWays; UINT8 InterleaveArithmetic; UINT16 Reserved2; UINT32 Granularity; UINT16 Restrictions; UINT16 QtgId; UINT32 InterleaveTargets[]; } ACPI_CEDT_CFMWS; typedef struct acpi_cedt_cfmws_target_element { UINT32 InterleaveTarget; } ACPI_CEDT_CFMWS_TARGET_ELEMENT; /* Values for Interleave Arithmetic field above */ #define ACPI_CEDT_CFMWS_ARITHMETIC_MODULO (0) #define ACPI_CEDT_CFMWS_ARITHMETIC_XOR (1) /* Values for Restrictions field above */ #define ACPI_CEDT_CFMWS_RESTRICT_TYPE2 (1) #define ACPI_CEDT_CFMWS_RESTRICT_TYPE3 (1<<1) #define ACPI_CEDT_CFMWS_RESTRICT_VOLATILE (1<<2) #define ACPI_CEDT_CFMWS_RESTRICT_PMEM (1<<3) #define ACPI_CEDT_CFMWS_RESTRICT_FIXED (1<<4) /* 2: CXL XOR Interleave Math Structure */ typedef struct acpi_cedt_cxims { ACPI_CEDT_HEADER Header; UINT16 Reserved1; UINT8 Hbig; UINT8 NrXormaps; UINT64 XormapList[]; } ACPI_CEDT_CXIMS; typedef struct acpi_cedt_cxims_target_element { UINT64 Xormap; } ACPI_CEDT_CXIMS_TARGET_ELEMENT; /* 3: CXL RCEC Downstream Port Association Structure */ struct acpi_cedt_rdpas { ACPI_CEDT_HEADER Header; UINT16 Segment; UINT16 Bdf; UINT8 Protocol; UINT64 Address; }; /* Masks for bdf field above */ #define ACPI_CEDT_RDPAS_BUS_MASK 0xff00 #define ACPI_CEDT_RDPAS_DEVICE_MASK 0x00f8 #define ACPI_CEDT_RDPAS_FUNCTION_MASK 0x0007 #define ACPI_CEDT_RDPAS_PROTOCOL_IO (0) #define ACPI_CEDT_RDPAS_PROTOCOL_CACHEMEM (1) /******************************************************************************* * * CPEP - Corrected Platform Error Polling table (ACPI 4.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_cpep { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT64 Reserved; } ACPI_TABLE_CPEP; /* Subtable */ typedef struct acpi_cpep_polling { ACPI_SUBTABLE_HEADER Header; UINT8 Id; /* Processor ID */ UINT8 Eid; /* Processor EID */ UINT32 Interval; /* Polling interval (msec) */ } ACPI_CPEP_POLLING; /******************************************************************************* * * CSRT - Core System Resource Table * Version 0 * * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011 * ******************************************************************************/ typedef struct acpi_table_csrt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_CSRT; /* Resource Group subtable */ typedef struct acpi_csrt_group { UINT32 Length; UINT32 VendorId; UINT32 SubvendorId; UINT16 DeviceId; UINT16 SubdeviceId; UINT16 Revision; UINT16 Reserved; UINT32 SharedInfoLength; /* Shared data immediately follows (Length = SharedInfoLength) */ } ACPI_CSRT_GROUP; /* Shared Info subtable */ typedef struct acpi_csrt_shared_info { UINT16 MajorVersion; UINT16 MinorVersion; UINT32 MmioBaseLow; UINT32 MmioBaseHigh; UINT32 GsiInterrupt; UINT8 InterruptPolarity; UINT8 InterruptMode; UINT8 NumChannels; UINT8 DmaAddressWidth; UINT16 BaseRequestLine; UINT16 NumHandshakeSignals; UINT32 MaxBlockSize; /* Resource descriptors immediately follow (Length = Group Length - SharedInfoLength) */ } ACPI_CSRT_SHARED_INFO; /* Resource Descriptor subtable */ typedef struct acpi_csrt_descriptor { UINT32 Length; UINT16 Type; UINT16 Subtype; UINT32 Uid; /* Resource-specific information immediately follows */ } ACPI_CSRT_DESCRIPTOR; /* Resource Types */ #define ACPI_CSRT_TYPE_INTERRUPT 0x0001 #define ACPI_CSRT_TYPE_TIMER 0x0002 #define ACPI_CSRT_TYPE_DMA 0x0003 /* Resource Subtypes */ #define ACPI_CSRT_XRUPT_LINE 0x0000 #define ACPI_CSRT_XRUPT_CONTROLLER 0x0001 #define ACPI_CSRT_TIMER 0x0000 #define ACPI_CSRT_DMA_CHANNEL 0x0000 #define ACPI_CSRT_DMA_CONTROLLER 0x0001 /******************************************************************************* * * DBG2 - Debug Port Table 2 * Version 0 (Both main table and subtables) * * Conforms to "Microsoft Debug Port Table 2 (DBG2)", September 21, 2020 * ******************************************************************************/ typedef struct acpi_table_dbg2 { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 InfoOffset; UINT32 InfoCount; } ACPI_TABLE_DBG2; typedef struct acpi_dbg2_header { UINT32 InfoOffset; UINT32 InfoCount; } ACPI_DBG2_HEADER; /* Debug Device Information Subtable */ typedef struct acpi_dbg2_device { UINT8 Revision; UINT16 Length; UINT8 RegisterCount; /* Number of BaseAddress registers */ UINT16 NamepathLength; UINT16 NamepathOffset; UINT16 OemDataLength; UINT16 OemDataOffset; UINT16 PortType; UINT16 PortSubtype; UINT16 Reserved; UINT16 BaseAddressOffset; UINT16 AddressSizeOffset; /* * Data that follows: * BaseAddress (required) - Each in 12-byte Generic Address Structure format. * AddressSize (required) - Array of UINT32 sizes corresponding to each BaseAddress register. * Namepath (required) - Null terminated string. Single dot if not supported. * OemData (optional) - Length is OemDataLength. */ } ACPI_DBG2_DEVICE; /* Types for PortType field above */ #define ACPI_DBG2_SERIAL_PORT 0x8000 #define ACPI_DBG2_1394_PORT 0x8001 #define ACPI_DBG2_USB_PORT 0x8002 #define ACPI_DBG2_NET_PORT 0x8003 /* Subtypes for PortSubtype field above */ #define ACPI_DBG2_16550_COMPATIBLE 0x0000 #define ACPI_DBG2_16550_SUBSET 0x0001 #define ACPI_DBG2_MAX311XE_SPI 0x0002 #define ACPI_DBG2_ARM_PL011 0x0003 #define ACPI_DBG2_MSM8X60 0x0004 #define ACPI_DBG2_16550_NVIDIA 0x0005 #define ACPI_DBG2_TI_OMAP 0x0006 #define ACPI_DBG2_APM88XXXX 0x0008 #define ACPI_DBG2_MSM8974 0x0009 #define ACPI_DBG2_SAM5250 0x000A #define ACPI_DBG2_INTEL_USIF 0x000B #define ACPI_DBG2_IMX6 0x000C #define ACPI_DBG2_ARM_SBSA_32BIT 0x000D #define ACPI_DBG2_ARM_SBSA_GENERIC 0x000E #define ACPI_DBG2_ARM_DCC 0x000F #define ACPI_DBG2_BCM2835 0x0010 #define ACPI_DBG2_SDM845_1_8432MHZ 0x0011 #define ACPI_DBG2_16550_WITH_GAS 0x0012 #define ACPI_DBG2_SDM845_7_372MHZ 0x0013 #define ACPI_DBG2_INTEL_LPSS 0x0014 #define ACPI_DBG2_RISCV_SBI_CON 0x0015 #define ACPI_DBG2_1394_STANDARD 0x0000 #define ACPI_DBG2_USB_XHCI 0x0000 #define ACPI_DBG2_USB_EHCI 0x0001 /******************************************************************************* * * DBGP - Debug Port table * Version 1 * * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000 * ******************************************************************************/ typedef struct acpi_table_dbgp { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 Type; /* 0=full 16550, 1=subset of 16550 */ UINT8 Reserved[3]; ACPI_GENERIC_ADDRESS DebugPort; } ACPI_TABLE_DBGP; /******************************************************************************* * * DMAR - DMA Remapping table * Version 1 * * Conforms to "Intel Virtualization Technology for Directed I/O", * Version 2.3, October 2014 * ******************************************************************************/ typedef struct acpi_table_dmar { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 Width; /* Host Address Width */ UINT8 Flags; UINT8 Reserved[10]; } ACPI_TABLE_DMAR; /* Masks for Flags field above */ #define ACPI_DMAR_INTR_REMAP (1) #define ACPI_DMAR_X2APIC_OPT_OUT (1<<1) #define ACPI_DMAR_X2APIC_MODE (1<<2) /* DMAR subtable header */ typedef struct acpi_dmar_header { UINT16 Type; UINT16 Length; } ACPI_DMAR_HEADER; /* Values for subtable type in ACPI_DMAR_HEADER */ enum AcpiDmarType { ACPI_DMAR_TYPE_HARDWARE_UNIT = 0, ACPI_DMAR_TYPE_RESERVED_MEMORY = 1, ACPI_DMAR_TYPE_ROOT_ATS = 2, ACPI_DMAR_TYPE_HARDWARE_AFFINITY = 3, ACPI_DMAR_TYPE_NAMESPACE = 4, ACPI_DMAR_TYPE_SATC = 5, ACPI_DMAR_TYPE_SIDP = 6, ACPI_DMAR_TYPE_RESERVED = 7 /* 7 and greater are reserved */ }; /* DMAR Device Scope structure */ typedef struct acpi_dmar_device_scope { UINT8 EntryType; UINT8 Length; UINT8 Flags; UINT8 Reserved; UINT8 EnumerationId; UINT8 Bus; } ACPI_DMAR_DEVICE_SCOPE; /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE - device types */ enum AcpiDmarScopeType { ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0, ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1, ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2, ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3, ACPI_DMAR_SCOPE_TYPE_HPET = 4, ACPI_DMAR_SCOPE_TYPE_NAMESPACE = 5, ACPI_DMAR_SCOPE_TYPE_RESERVED = 6 /* 6 and greater are reserved */ }; typedef struct acpi_dmar_pci_path { UINT8 Device; UINT8 Function; } ACPI_DMAR_PCI_PATH; /* * DMAR Subtables, correspond to Type in ACPI_DMAR_HEADER */ /* 0: Hardware Unit Definition */ typedef struct acpi_dmar_hardware_unit { ACPI_DMAR_HEADER Header; UINT8 Flags; UINT8 Size; UINT16 Segment; UINT64 Address; /* Register Base Address */ } ACPI_DMAR_HARDWARE_UNIT; /* Masks for Flags field above */ #define ACPI_DMAR_INCLUDE_ALL (1) /* 1: Reserved Memory Definition */ typedef struct acpi_dmar_reserved_memory { ACPI_DMAR_HEADER Header; UINT16 Reserved; UINT16 Segment; UINT64 BaseAddress; /* 4K aligned base address */ UINT64 EndAddress; /* 4K aligned limit address */ } ACPI_DMAR_RESERVED_MEMORY; /* Masks for Flags field above */ #define ACPI_DMAR_ALLOW_ALL (1) /* 2: Root Port ATS Capability Reporting Structure */ typedef struct acpi_dmar_atsr { ACPI_DMAR_HEADER Header; UINT8 Flags; UINT8 Reserved; UINT16 Segment; } ACPI_DMAR_ATSR; /* Masks for Flags field above */ #define ACPI_DMAR_ALL_PORTS (1) /* 3: Remapping Hardware Static Affinity Structure */ typedef struct acpi_dmar_rhsa { ACPI_DMAR_HEADER Header; UINT32 Reserved; UINT64 BaseAddress; UINT32 ProximityDomain; } ACPI_DMAR_RHSA; /* 4: ACPI Namespace Device Declaration Structure */ typedef struct acpi_dmar_andd { ACPI_DMAR_HEADER Header; UINT8 Reserved[3]; UINT8 DeviceNumber; union { char __pad; ACPI_FLEX_ARRAY(char, DeviceName); }; } ACPI_DMAR_ANDD; /* 5: SoC Integrated Address Translation Cache (SATC) */ typedef struct acpi_dmar_satc { ACPI_DMAR_HEADER Header; UINT8 Flags; UINT8 Reserved; UINT16 Segment; } ACPI_DMAR_SATC; /* 6: SoC Integrated Device Property Reporting Structure */ typedef struct acpi_dmar_sidp { ACPI_DMAR_HEADER Header; UINT16 Reserved; UINT16 Segment; } ACPI_DMAR_SIDP; /******************************************************************************* * * DRTM - Dynamic Root of Trust for Measurement table * Conforms to "TCG D-RTM Architecture" June 17 2013, Version 1.0.0 * Table version 1 * ******************************************************************************/ typedef struct acpi_table_drtm { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT64 EntryBaseAddress; UINT64 EntryLength; UINT32 EntryAddress32; UINT64 EntryAddress64; UINT64 ExitAddress; UINT64 LogAreaAddress; UINT32 LogAreaLength; UINT64 ArchDependentAddress; UINT32 Flags; } ACPI_TABLE_DRTM; /* Flag Definitions for above */ #define ACPI_DRTM_ACCESS_ALLOWED (1) #define ACPI_DRTM_ENABLE_GAP_CODE (1<<1) #define ACPI_DRTM_INCOMPLETE_MEASUREMENTS (1<<2) #define ACPI_DRTM_AUTHORITY_ORDER (1<<3) /* 1) Validated Tables List (64-bit addresses) */ typedef struct acpi_drtm_vtable_list { UINT32 ValidatedTableCount; UINT64 ValidatedTables[]; } ACPI_DRTM_VTABLE_LIST; /* 2) Resources List (of Resource Descriptors) */ /* Resource Descriptor */ typedef struct acpi_drtm_resource { UINT8 Size[7]; UINT8 Type; UINT64 Address; } ACPI_DRTM_RESOURCE; typedef struct acpi_drtm_resource_list { UINT32 ResourceCount; ACPI_DRTM_RESOURCE Resources[]; } ACPI_DRTM_RESOURCE_LIST; /* 3) Platform-specific Identifiers List */ typedef struct acpi_drtm_dps_id { UINT32 DpsIdLength; UINT8 DpsId[16]; } ACPI_DRTM_DPS_ID; /******************************************************************************* * * ECDT - Embedded Controller Boot Resources Table * Version 1 * ******************************************************************************/ typedef struct acpi_table_ecdt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ ACPI_GENERIC_ADDRESS Control; /* Address of EC command/status register */ ACPI_GENERIC_ADDRESS Data; /* Address of EC data register */ UINT32 Uid; /* Unique ID - must be same as the EC _UID method */ UINT8 Gpe; /* The GPE for the EC */ UINT8 Id[]; /* Full namepath of the EC in the ACPI namespace */ } ACPI_TABLE_ECDT; /******************************************************************************* * * EINJ - Error Injection Table (ACPI 4.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_einj { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 HeaderLength; UINT8 Flags; UINT8 Reserved[3]; UINT32 Entries; } ACPI_TABLE_EINJ; /* EINJ Injection Instruction Entries (actions) */ typedef struct acpi_einj_entry { ACPI_WHEA_HEADER WheaHeader; /* Common header for WHEA tables */ } ACPI_EINJ_ENTRY; /* Masks for Flags field above */ #define ACPI_EINJ_PRESERVE (1) /* Values for Action field above */ enum AcpiEinjActions { ACPI_EINJ_BEGIN_OPERATION = 0x0, ACPI_EINJ_GET_TRIGGER_TABLE = 0x1, ACPI_EINJ_SET_ERROR_TYPE = 0x2, ACPI_EINJ_GET_ERROR_TYPE = 0x3, ACPI_EINJ_END_OPERATION = 0x4, ACPI_EINJ_EXECUTE_OPERATION = 0x5, ACPI_EINJ_CHECK_BUSY_STATUS = 0x6, ACPI_EINJ_GET_COMMAND_STATUS = 0x7, ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS = 0x8, ACPI_EINJ_GET_EXECUTE_TIMINGS = 0x9, ACPI_EINJV2_GET_ERROR_TYPE = 0x11, ACPI_EINJ_ACTION_RESERVED = 0x12, /* 0x12 and greater are reserved */ ACPI_EINJ_TRIGGER_ERROR = 0xFF /* Except for this value */ }; /* Values for Instruction field above */ enum AcpiEinjInstructions { ACPI_EINJ_READ_REGISTER = 0, ACPI_EINJ_READ_REGISTER_VALUE = 1, ACPI_EINJ_WRITE_REGISTER = 2, ACPI_EINJ_WRITE_REGISTER_VALUE = 3, ACPI_EINJ_NOOP = 4, ACPI_EINJ_FLUSH_CACHELINE = 5, ACPI_EINJ_INSTRUCTION_RESERVED = 6 /* 6 and greater are reserved */ }; typedef struct acpi_einj_error_type_with_addr { UINT32 ErrorType; UINT32 VendorStructOffset; UINT32 Flags; UINT32 ApicId; UINT64 Address; UINT64 Range; UINT32 PcieId; } ACPI_EINJ_ERROR_TYPE_WITH_ADDR; typedef struct acpi_einj_vendor { UINT32 Length; UINT32 PcieId; UINT16 VendorId; UINT16 DeviceId; UINT8 RevisionId; UINT8 Reserved[3]; } ACPI_EINJ_VENDOR; /* EINJ Trigger Error Action Table */ typedef struct acpi_einj_trigger { UINT32 HeaderSize; UINT32 Revision; UINT32 TableSize; UINT32 EntryCount; } ACPI_EINJ_TRIGGER; /* Command status return values */ enum AcpiEinjCommandStatus { ACPI_EINJ_SUCCESS = 0, ACPI_EINJ_FAILURE = 1, ACPI_EINJ_INVALID_ACCESS = 2, ACPI_EINJ_STATUS_RESERVED = 3 /* 3 and greater are reserved */ }; /* Error types returned from ACPI_EINJ_GET_ERROR_TYPE (bitfield) */ #define ACPI_EINJ_PROCESSOR_CORRECTABLE (1) #define ACPI_EINJ_PROCESSOR_UNCORRECTABLE (1<<1) #define ACPI_EINJ_PROCESSOR_FATAL (1<<2) #define ACPI_EINJ_MEMORY_CORRECTABLE (1<<3) #define ACPI_EINJ_MEMORY_UNCORRECTABLE (1<<4) #define ACPI_EINJ_MEMORY_FATAL (1<<5) #define ACPI_EINJ_PCIX_CORRECTABLE (1<<6) #define ACPI_EINJ_PCIX_UNCORRECTABLE (1<<7) #define ACPI_EINJ_PCIX_FATAL (1<<8) #define ACPI_EINJ_PLATFORM_CORRECTABLE (1<<9) #define ACPI_EINJ_PLATFORM_UNCORRECTABLE (1<<10) #define ACPI_EINJ_PLATFORM_FATAL (1<<11) #define ACPI_EINJ_CXL_CACHE_CORRECTABLE (1<<12) #define ACPI_EINJ_CXL_CACHE_UNCORRECTABLE (1<<13) #define ACPI_EINJ_CXL_CACHE_FATAL (1<<14) #define ACPI_EINJ_CXL_MEM_CORRECTABLE (1<<15) #define ACPI_EINJ_CXL_MEM_UNCORRECTABLE (1<<16) #define ACPI_EINJ_CXL_MEM_FATAL (1<<17) #define ACPI_EINJ_VENDOR_DEFINED (1<<31) /******************************************************************************* * * ERST - Error Record Serialization Table (ACPI 4.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_erst { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 HeaderLength; UINT32 Reserved; UINT32 Entries; } ACPI_TABLE_ERST; /* ERST Serialization Entries (actions) */ typedef struct acpi_erst_entry { ACPI_WHEA_HEADER WheaHeader; /* Common header for WHEA tables */ } ACPI_ERST_ENTRY; /* Masks for Flags field above */ #define ACPI_ERST_PRESERVE (1) /* Values for Action field above */ enum AcpiErstActions { ACPI_ERST_BEGIN_WRITE = 0, ACPI_ERST_BEGIN_READ = 1, ACPI_ERST_BEGIN_CLEAR = 2, ACPI_ERST_END = 3, ACPI_ERST_SET_RECORD_OFFSET = 4, ACPI_ERST_EXECUTE_OPERATION = 5, ACPI_ERST_CHECK_BUSY_STATUS = 6, ACPI_ERST_GET_COMMAND_STATUS = 7, ACPI_ERST_GET_RECORD_ID = 8, ACPI_ERST_SET_RECORD_ID = 9, ACPI_ERST_GET_RECORD_COUNT = 10, ACPI_ERST_BEGIN_DUMMY_WRIITE = 11, ACPI_ERST_NOT_USED = 12, ACPI_ERST_GET_ERROR_RANGE = 13, ACPI_ERST_GET_ERROR_LENGTH = 14, ACPI_ERST_GET_ERROR_ATTRIBUTES = 15, ACPI_ERST_EXECUTE_TIMINGS = 16, ACPI_ERST_ACTION_RESERVED = 17 /* 17 and greater are reserved */ }; /* Values for Instruction field above */ enum AcpiErstInstructions { ACPI_ERST_READ_REGISTER = 0, ACPI_ERST_READ_REGISTER_VALUE = 1, ACPI_ERST_WRITE_REGISTER = 2, ACPI_ERST_WRITE_REGISTER_VALUE = 3, ACPI_ERST_NOOP = 4, ACPI_ERST_LOAD_VAR1 = 5, ACPI_ERST_LOAD_VAR2 = 6, ACPI_ERST_STORE_VAR1 = 7, ACPI_ERST_ADD = 8, ACPI_ERST_SUBTRACT = 9, ACPI_ERST_ADD_VALUE = 10, ACPI_ERST_SUBTRACT_VALUE = 11, ACPI_ERST_STALL = 12, ACPI_ERST_STALL_WHILE_TRUE = 13, ACPI_ERST_SKIP_NEXT_IF_TRUE = 14, ACPI_ERST_GOTO = 15, ACPI_ERST_SET_SRC_ADDRESS_BASE = 16, ACPI_ERST_SET_DST_ADDRESS_BASE = 17, ACPI_ERST_MOVE_DATA = 18, ACPI_ERST_INSTRUCTION_RESERVED = 19 /* 19 and greater are reserved */ }; /* Command status return values */ enum AcpiErstCommandStatus { ACPI_ERST_SUCCESS = 0, ACPI_ERST_NO_SPACE = 1, ACPI_ERST_NOT_AVAILABLE = 2, ACPI_ERST_FAILURE = 3, ACPI_ERST_RECORD_EMPTY = 4, ACPI_ERST_NOT_FOUND = 5, ACPI_ERST_STATUS_RESERVED = 6 /* 6 and greater are reserved */ }; /* Error Record Serialization Information */ typedef struct acpi_erst_info { UINT16 Signature; /* Should be "ER" */ UINT8 Data[48]; } ACPI_ERST_INFO; /******************************************************************************* * * FPDT - Firmware Performance Data Table (ACPI 5.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_fpdt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_FPDT; /* FPDT subtable header (Performance Record Structure) */ typedef struct acpi_fpdt_header { UINT16 Type; UINT8 Length; UINT8 Revision; } ACPI_FPDT_HEADER; /* Values for Type field above */ enum AcpiFpdtType { ACPI_FPDT_TYPE_BOOT = 0, ACPI_FPDT_TYPE_S3PERF = 1 }; /* * FPDT subtables */ /* 0: Firmware Basic Boot Performance Record */ typedef struct acpi_fpdt_boot_pointer { ACPI_FPDT_HEADER Header; UINT8 Reserved[4]; UINT64 Address; } ACPI_FPDT_BOOT_POINTER; /* 1: S3 Performance Table Pointer Record */ typedef struct acpi_fpdt_s3pt_pointer { ACPI_FPDT_HEADER Header; UINT8 Reserved[4]; UINT64 Address; } ACPI_FPDT_S3PT_POINTER; /* * S3PT - S3 Performance Table. This table is pointed to by the * S3 Pointer Record above. */ typedef struct acpi_table_s3pt { UINT8 Signature[4]; /* "S3PT" */ UINT32 Length; } ACPI_TABLE_S3PT; /* * S3PT Subtables (Not part of the actual FPDT) */ /* Values for Type field in S3PT header */ enum AcpiS3ptType { ACPI_S3PT_TYPE_RESUME = 0, ACPI_S3PT_TYPE_SUSPEND = 1, ACPI_FPDT_BOOT_PERFORMANCE = 2 }; typedef struct acpi_s3pt_resume { ACPI_FPDT_HEADER Header; UINT32 ResumeCount; UINT64 FullResume; UINT64 AverageResume; } ACPI_S3PT_RESUME; typedef struct acpi_s3pt_suspend { ACPI_FPDT_HEADER Header; UINT64 SuspendStart; UINT64 SuspendEnd; } ACPI_S3PT_SUSPEND; /* * FPDT Boot Performance Record (Not part of the actual FPDT) */ typedef struct acpi_fpdt_boot { ACPI_FPDT_HEADER Header; UINT8 Reserved[4]; UINT64 ResetEnd; UINT64 LoadStart; UINT64 StartupStart; UINT64 ExitServicesEntry; UINT64 ExitServicesExit; } ACPI_FPDT_BOOT; /******************************************************************************* * * GTDT - Generic Timer Description Table (ACPI 5.1) * Version 2 * ******************************************************************************/ typedef struct acpi_table_gtdt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT64 CounterBlockAddresss; UINT32 Reserved; UINT32 SecureEl1Interrupt; UINT32 SecureEl1Flags; UINT32 NonSecureEl1Interrupt; UINT32 NonSecureEl1Flags; UINT32 VirtualTimerInterrupt; UINT32 VirtualTimerFlags; UINT32 NonSecureEl2Interrupt; UINT32 NonSecureEl2Flags; UINT64 CounterReadBlockAddress; UINT32 PlatformTimerCount; UINT32 PlatformTimerOffset; } ACPI_TABLE_GTDT; /* Flag Definitions: Timer Block Physical Timers and Virtual timers */ #define ACPI_GTDT_INTERRUPT_MODE (1) #define ACPI_GTDT_INTERRUPT_POLARITY (1<<1) #define ACPI_GTDT_ALWAYS_ON (1<<2) typedef struct acpi_gtdt_el2 { UINT32 VirtualEL2TimerGsiv; UINT32 VirtualEL2TimerFlags; } ACPI_GTDT_EL2; /* Common GTDT subtable header */ typedef struct acpi_gtdt_header { UINT8 Type; UINT16 Length; } ACPI_GTDT_HEADER; /* Values for GTDT subtable type above */ enum AcpiGtdtType { ACPI_GTDT_TYPE_TIMER_BLOCK = 0, ACPI_GTDT_TYPE_WATCHDOG = 1, ACPI_GTDT_TYPE_RESERVED = 2 /* 2 and greater are reserved */ }; /* GTDT Subtables, correspond to Type in acpi_gtdt_header */ /* 0: Generic Timer Block */ typedef struct acpi_gtdt_timer_block { ACPI_GTDT_HEADER Header; UINT8 Reserved; UINT64 BlockAddress; UINT32 TimerCount; UINT32 TimerOffset; } ACPI_GTDT_TIMER_BLOCK; /* Timer Sub-Structure, one per timer */ typedef struct acpi_gtdt_timer_entry { UINT8 FrameNumber; UINT8 Reserved[3]; UINT64 BaseAddress; UINT64 El0BaseAddress; UINT32 TimerInterrupt; UINT32 TimerFlags; UINT32 VirtualTimerInterrupt; UINT32 VirtualTimerFlags; UINT32 CommonFlags; } ACPI_GTDT_TIMER_ENTRY; /* Flag Definitions: TimerFlags and VirtualTimerFlags above */ #define ACPI_GTDT_GT_IRQ_MODE (1) #define ACPI_GTDT_GT_IRQ_POLARITY (1<<1) /* Flag Definitions: CommonFlags above */ #define ACPI_GTDT_GT_IS_SECURE_TIMER (1) #define ACPI_GTDT_GT_ALWAYS_ON (1<<1) /* 1: SBSA Generic Watchdog Structure */ typedef struct acpi_gtdt_watchdog { ACPI_GTDT_HEADER Header; UINT8 Reserved; UINT64 RefreshFrameAddress; UINT64 ControlFrameAddress; UINT32 TimerInterrupt; UINT32 TimerFlags; } ACPI_GTDT_WATCHDOG; /* Flag Definitions: TimerFlags above */ #define ACPI_GTDT_WATCHDOG_IRQ_MODE (1) #define ACPI_GTDT_WATCHDOG_IRQ_POLARITY (1<<1) #define ACPI_GTDT_WATCHDOG_SECURE (1<<2) /******************************************************************************* * * HEST - Hardware Error Source Table (ACPI 4.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_hest { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 ErrorSourceCount; } ACPI_TABLE_HEST; /* HEST subtable header */ typedef struct acpi_hest_header { UINT16 Type; UINT16 SourceId; } ACPI_HEST_HEADER; /* Values for Type field above for subtables */ enum AcpiHestTypes { ACPI_HEST_TYPE_IA32_CHECK = 0, ACPI_HEST_TYPE_IA32_CORRECTED_CHECK = 1, ACPI_HEST_TYPE_IA32_NMI = 2, ACPI_HEST_TYPE_NOT_USED3 = 3, ACPI_HEST_TYPE_NOT_USED4 = 4, ACPI_HEST_TYPE_NOT_USED5 = 5, ACPI_HEST_TYPE_AER_ROOT_PORT = 6, ACPI_HEST_TYPE_AER_ENDPOINT = 7, ACPI_HEST_TYPE_AER_BRIDGE = 8, ACPI_HEST_TYPE_GENERIC_ERROR = 9, ACPI_HEST_TYPE_GENERIC_ERROR_V2 = 10, ACPI_HEST_TYPE_IA32_DEFERRED_CHECK = 11, ACPI_HEST_TYPE_RESERVED = 12 /* 12 and greater are reserved */ }; /* * HEST substructures contained in subtables */ /* * IA32 Error Bank(s) - Follows the ACPI_HEST_IA_MACHINE_CHECK and * ACPI_HEST_IA_CORRECTED structures. */ typedef struct acpi_hest_ia_error_bank { UINT8 BankNumber; UINT8 ClearStatusOnInit; UINT8 StatusFormat; UINT8 Reserved; UINT32 ControlRegister; UINT64 ControlData; UINT32 StatusRegister; UINT32 AddressRegister; UINT32 MiscRegister; } ACPI_HEST_IA_ERROR_BANK; /* Common HEST sub-structure for PCI/AER structures below (6,7,8) */ typedef struct acpi_hest_aer_common { UINT16 Reserved1; UINT8 Flags; UINT8 Enabled; UINT32 RecordsToPreallocate; UINT32 MaxSectionsPerRecord; UINT32 Bus; /* Bus and Segment numbers */ UINT16 Device; UINT16 Function; UINT16 DeviceControl; UINT16 Reserved2; UINT32 UncorrectableMask; UINT32 UncorrectableSeverity; UINT32 CorrectableMask; UINT32 AdvancedCapabilities; } ACPI_HEST_AER_COMMON; /* Masks for HEST Flags fields */ #define ACPI_HEST_FIRMWARE_FIRST (1) #define ACPI_HEST_GLOBAL (1<<1) #define ACPI_HEST_GHES_ASSIST (1<<2) /* * Macros to access the bus/segment numbers in Bus field above: * Bus number is encoded in bits 7:0 * Segment number is encoded in bits 23:8 */ #define ACPI_HEST_BUS(Bus) ((Bus) & 0xFF) #define ACPI_HEST_SEGMENT(Bus) (((Bus) >> 8) & 0xFFFF) /* Hardware Error Notification */ typedef struct acpi_hest_notify { UINT8 Type; UINT8 Length; UINT16 ConfigWriteEnable; UINT32 PollInterval; UINT32 Vector; UINT32 PollingThresholdValue; UINT32 PollingThresholdWindow; UINT32 ErrorThresholdValue; UINT32 ErrorThresholdWindow; } ACPI_HEST_NOTIFY; /* Values for Notify Type field above */ enum AcpiHestNotifyTypes { ACPI_HEST_NOTIFY_POLLED = 0, ACPI_HEST_NOTIFY_EXTERNAL = 1, ACPI_HEST_NOTIFY_LOCAL = 2, ACPI_HEST_NOTIFY_SCI = 3, ACPI_HEST_NOTIFY_NMI = 4, ACPI_HEST_NOTIFY_CMCI = 5, /* ACPI 5.0 */ ACPI_HEST_NOTIFY_MCE = 6, /* ACPI 5.0 */ ACPI_HEST_NOTIFY_GPIO = 7, /* ACPI 6.0 */ ACPI_HEST_NOTIFY_SEA = 8, /* ACPI 6.1 */ ACPI_HEST_NOTIFY_SEI = 9, /* ACPI 6.1 */ ACPI_HEST_NOTIFY_GSIV = 10, /* ACPI 6.1 */ ACPI_HEST_NOTIFY_SOFTWARE_DELEGATED = 11, /* ACPI 6.2 */ ACPI_HEST_NOTIFY_RESERVED = 12 /* 12 and greater are reserved */ }; /* Values for ConfigWriteEnable bitfield above */ #define ACPI_HEST_TYPE (1) #define ACPI_HEST_POLL_INTERVAL (1<<1) #define ACPI_HEST_POLL_THRESHOLD_VALUE (1<<2) #define ACPI_HEST_POLL_THRESHOLD_WINDOW (1<<3) #define ACPI_HEST_ERR_THRESHOLD_VALUE (1<<4) #define ACPI_HEST_ERR_THRESHOLD_WINDOW (1<<5) /* * HEST subtables */ /* 0: IA32 Machine Check Exception */ typedef struct acpi_hest_ia_machine_check { ACPI_HEST_HEADER Header; UINT16 Reserved1; UINT8 Flags; /* See flags ACPI_HEST_GLOBAL, etc. above */ UINT8 Enabled; UINT32 RecordsToPreallocate; UINT32 MaxSectionsPerRecord; UINT64 GlobalCapabilityData; UINT64 GlobalControlData; UINT8 NumHardwareBanks; UINT8 Reserved3[7]; } ACPI_HEST_IA_MACHINE_CHECK; /* 1: IA32 Corrected Machine Check */ typedef struct acpi_hest_ia_corrected { ACPI_HEST_HEADER Header; UINT16 Reserved1; UINT8 Flags; /* See flags ACPI_HEST_GLOBAL, etc. above */ UINT8 Enabled; UINT32 RecordsToPreallocate; UINT32 MaxSectionsPerRecord; ACPI_HEST_NOTIFY Notify; UINT8 NumHardwareBanks; UINT8 Reserved2[3]; } ACPI_HEST_IA_CORRECTED; /* 2: IA32 Non-Maskable Interrupt */ typedef struct acpi_hest_ia_nmi { ACPI_HEST_HEADER Header; UINT32 Reserved; UINT32 RecordsToPreallocate; UINT32 MaxSectionsPerRecord; UINT32 MaxRawDataLength; } ACPI_HEST_IA_NMI; /* 3,4,5: Not used */ /* 6: PCI Express Root Port AER */ typedef struct acpi_hest_aer_root { ACPI_HEST_HEADER Header; ACPI_HEST_AER_COMMON Aer; UINT32 RootErrorCommand; } ACPI_HEST_AER_ROOT; /* 7: PCI Express AER (AER Endpoint) */ typedef struct acpi_hest_aer { ACPI_HEST_HEADER Header; ACPI_HEST_AER_COMMON Aer; } ACPI_HEST_AER; /* 8: PCI Express/PCI-X Bridge AER */ typedef struct acpi_hest_aer_bridge { ACPI_HEST_HEADER Header; ACPI_HEST_AER_COMMON Aer; UINT32 UncorrectableMask2; UINT32 UncorrectableSeverity2; UINT32 AdvancedCapabilities2; } ACPI_HEST_AER_BRIDGE; /* 9: Generic Hardware Error Source */ typedef struct acpi_hest_generic { ACPI_HEST_HEADER Header; UINT16 RelatedSourceId; UINT8 Reserved; UINT8 Enabled; UINT32 RecordsToPreallocate; UINT32 MaxSectionsPerRecord; UINT32 MaxRawDataLength; ACPI_GENERIC_ADDRESS ErrorStatusAddress; ACPI_HEST_NOTIFY Notify; UINT32 ErrorBlockLength; } ACPI_HEST_GENERIC; /* 10: Generic Hardware Error Source, version 2 */ typedef struct acpi_hest_generic_v2 { ACPI_HEST_HEADER Header; UINT16 RelatedSourceId; UINT8 Reserved; UINT8 Enabled; UINT32 RecordsToPreallocate; UINT32 MaxSectionsPerRecord; UINT32 MaxRawDataLength; ACPI_GENERIC_ADDRESS ErrorStatusAddress; ACPI_HEST_NOTIFY Notify; UINT32 ErrorBlockLength; ACPI_GENERIC_ADDRESS ReadAckRegister; UINT64 ReadAckPreserve; UINT64 ReadAckWrite; } ACPI_HEST_GENERIC_V2; /* Generic Error Status block */ typedef struct acpi_hest_generic_status { UINT32 BlockStatus; UINT32 RawDataOffset; UINT32 RawDataLength; UINT32 DataLength; UINT32 ErrorSeverity; } ACPI_HEST_GENERIC_STATUS; /* Values for BlockStatus flags above */ #define ACPI_HEST_UNCORRECTABLE (1) #define ACPI_HEST_CORRECTABLE (1<<1) #define ACPI_HEST_MULTIPLE_UNCORRECTABLE (1<<2) #define ACPI_HEST_MULTIPLE_CORRECTABLE (1<<3) #define ACPI_HEST_ERROR_ENTRY_COUNT (0xFF<<4) /* 8 bits, error count */ /* Generic Error Data entry */ typedef struct acpi_hest_generic_data { UINT8 SectionType[16]; UINT32 ErrorSeverity; UINT16 Revision; UINT8 ValidationBits; UINT8 Flags; UINT32 ErrorDataLength; UINT8 FruId[16]; UINT8 FruText[20]; } ACPI_HEST_GENERIC_DATA; /* Extension for revision 0x0300 */ typedef struct acpi_hest_generic_data_v300 { UINT8 SectionType[16]; UINT32 ErrorSeverity; UINT16 Revision; UINT8 ValidationBits; UINT8 Flags; UINT32 ErrorDataLength; UINT8 FruId[16]; UINT8 FruText[20]; UINT64 TimeStamp; } ACPI_HEST_GENERIC_DATA_V300; /* Values for ErrorSeverity above */ #define ACPI_HEST_GEN_ERROR_RECOVERABLE 0 #define ACPI_HEST_GEN_ERROR_FATAL 1 #define ACPI_HEST_GEN_ERROR_CORRECTED 2 #define ACPI_HEST_GEN_ERROR_NONE 3 /* Flags for ValidationBits above */ #define ACPI_HEST_GEN_VALID_FRU_ID (1) #define ACPI_HEST_GEN_VALID_FRU_STRING (1<<1) #define ACPI_HEST_GEN_VALID_TIMESTAMP (1<<2) /* 11: IA32 Deferred Machine Check Exception (ACPI 6.2) */ typedef struct acpi_hest_ia_deferred_check { ACPI_HEST_HEADER Header; UINT16 Reserved1; UINT8 Flags; /* See flags ACPI_HEST_GLOBAL, etc. above */ UINT8 Enabled; UINT32 RecordsToPreallocate; UINT32 MaxSectionsPerRecord; ACPI_HEST_NOTIFY Notify; UINT8 NumHardwareBanks; UINT8 Reserved2[3]; } ACPI_HEST_IA_DEFERRED_CHECK; /******************************************************************************* * * HMAT - Heterogeneous Memory Attributes Table (ACPI 6.3) * ******************************************************************************/ typedef struct acpi_table_hmat { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Reserved; } ACPI_TABLE_HMAT; /* Values for HMAT structure types */ enum AcpiHmatType { ACPI_HMAT_TYPE_ADDRESS_RANGE = 0, /* Memory subsystem address range */ ACPI_HMAT_TYPE_LOCALITY = 1, /* System locality latency and bandwidth information */ ACPI_HMAT_TYPE_CACHE = 2, /* Memory side cache information */ ACPI_HMAT_TYPE_RESERVED = 3 /* 3 and greater are reserved */ }; typedef struct acpi_hmat_structure { UINT16 Type; UINT16 Reserved; UINT32 Length; } ACPI_HMAT_STRUCTURE; /* * HMAT Structures, correspond to Type in ACPI_HMAT_STRUCTURE */ /* 0: Memory proximity domain attributes */ typedef struct acpi_hmat_proximity_domain { ACPI_HMAT_STRUCTURE Header; UINT16 Flags; UINT16 Reserved1; UINT32 InitiatorPD; /* Attached Initiator proximity domain */ UINT32 MemoryPD; /* Memory proximity domain */ UINT32 Reserved2; UINT64 Reserved3; UINT64 Reserved4; } ACPI_HMAT_PROXIMITY_DOMAIN; /* Masks for Flags field above */ #define ACPI_HMAT_INITIATOR_PD_VALID (1) /* 1: InitiatorPD field is valid */ /* 1: System locality latency and bandwidth information */ typedef struct acpi_hmat_locality { ACPI_HMAT_STRUCTURE Header; UINT8 Flags; UINT8 DataType; UINT8 MinTransferSize; UINT8 Reserved1; UINT32 NumberOfInitiatorPDs; UINT32 NumberOfTargetPDs; UINT32 Reserved2; UINT64 EntryBaseUnit; } ACPI_HMAT_LOCALITY; /* Masks for Flags field above */ #define ACPI_HMAT_MEMORY_HIERARCHY (0x0F) /* Bits 0-3 */ /* Values for Memory Hierarchy flags */ #define ACPI_HMAT_MEMORY 0 #define ACPI_HMAT_1ST_LEVEL_CACHE 1 #define ACPI_HMAT_2ND_LEVEL_CACHE 2 #define ACPI_HMAT_3RD_LEVEL_CACHE 3 #define ACPI_HMAT_MINIMUM_XFER_SIZE 0x10 /* Bit 4: ACPI 6.4 */ #define ACPI_HMAT_NON_SEQUENTIAL_XFERS 0x20 /* Bit 5: ACPI 6.4 */ /* Values for DataType field above */ #define ACPI_HMAT_ACCESS_LATENCY 0 #define ACPI_HMAT_READ_LATENCY 1 #define ACPI_HMAT_WRITE_LATENCY 2 #define ACPI_HMAT_ACCESS_BANDWIDTH 3 #define ACPI_HMAT_READ_BANDWIDTH 4 #define ACPI_HMAT_WRITE_BANDWIDTH 5 /* 2: Memory side cache information */ typedef struct acpi_hmat_cache { ACPI_HMAT_STRUCTURE Header; UINT32 MemoryPD; UINT32 Reserved1; UINT64 CacheSize; UINT32 CacheAttributes; UINT16 AddressMode; UINT16 NumberOfSMBIOSHandles; } ACPI_HMAT_CACHE; /* Masks for CacheAttributes field above */ #define ACPI_HMAT_TOTAL_CACHE_LEVEL (0x0000000F) #define ACPI_HMAT_CACHE_LEVEL (0x000000F0) #define ACPI_HMAT_CACHE_ASSOCIATIVITY (0x00000F00) #define ACPI_HMAT_WRITE_POLICY (0x0000F000) #define ACPI_HMAT_CACHE_LINE_SIZE (0xFFFF0000) #define ACPI_HMAT_CACHE_MODE_UNKNOWN (0) #define ACPI_HMAT_CACHE_MODE_EXTENDED_LINEAR (1) /* Values for cache associativity flag */ #define ACPI_HMAT_CA_NONE (0) #define ACPI_HMAT_CA_DIRECT_MAPPED (1) #define ACPI_HMAT_CA_COMPLEX_CACHE_INDEXING (2) /* Values for write policy flag */ #define ACPI_HMAT_CP_NONE (0) #define ACPI_HMAT_CP_WB (1) #define ACPI_HMAT_CP_WT (2) /******************************************************************************* * * HPET - High Precision Event Timer table * Version 1 * * Conforms to "IA-PC HPET (High Precision Event Timers) Specification", * Version 1.0a, October 2004 * ******************************************************************************/ typedef struct acpi_table_hpet { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Id; /* Hardware ID of event timer block */ ACPI_GENERIC_ADDRESS Address; /* Address of event timer block */ UINT8 Sequence; /* HPET sequence number */ UINT16 MinimumTick; /* Main counter min tick, periodic mode */ UINT8 Flags; } ACPI_TABLE_HPET; /* Masks for Flags field above */ #define ACPI_HPET_PAGE_PROTECT_MASK (3) /* Values for Page Protect flags */ enum AcpiHpetPageProtect { ACPI_HPET_NO_PAGE_PROTECT = 0, ACPI_HPET_PAGE_PROTECT4 = 1, ACPI_HPET_PAGE_PROTECT64 = 2 }; /******************************************************************************* * * IBFT - Boot Firmware Table * Version 1 * * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b * Specification", Version 1.01, March 1, 2007 * * Note: It appears that this table is not intended to appear in the RSDT/XSDT. * Therefore, it is not currently supported by the disassembler. * ******************************************************************************/ typedef struct acpi_table_ibft { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 Reserved[12]; } ACPI_TABLE_IBFT; /* IBFT common subtable header */ typedef struct acpi_ibft_header { UINT8 Type; UINT8 Version; UINT16 Length; UINT8 Index; UINT8 Flags; } ACPI_IBFT_HEADER; /* Values for Type field above */ enum AcpiIbftType { ACPI_IBFT_TYPE_NOT_USED = 0, ACPI_IBFT_TYPE_CONTROL = 1, ACPI_IBFT_TYPE_INITIATOR = 2, ACPI_IBFT_TYPE_NIC = 3, ACPI_IBFT_TYPE_TARGET = 4, ACPI_IBFT_TYPE_EXTENSIONS = 5, ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */ }; /* IBFT subtables */ typedef struct acpi_ibft_control { ACPI_IBFT_HEADER Header; UINT16 Extensions; UINT16 InitiatorOffset; UINT16 Nic0Offset; UINT16 Target0Offset; UINT16 Nic1Offset; UINT16 Target1Offset; } ACPI_IBFT_CONTROL; typedef struct acpi_ibft_initiator { ACPI_IBFT_HEADER Header; UINT8 SnsServer[16]; UINT8 SlpServer[16]; UINT8 PrimaryServer[16]; UINT8 SecondaryServer[16]; UINT16 NameLength; UINT16 NameOffset; } ACPI_IBFT_INITIATOR; typedef struct acpi_ibft_nic { ACPI_IBFT_HEADER Header; UINT8 IpAddress[16]; UINT8 SubnetMaskPrefix; UINT8 Origin; UINT8 Gateway[16]; UINT8 PrimaryDns[16]; UINT8 SecondaryDns[16]; UINT8 Dhcp[16]; UINT16 Vlan; UINT8 MacAddress[6]; UINT16 PciAddress; UINT16 NameLength; UINT16 NameOffset; } ACPI_IBFT_NIC; typedef struct acpi_ibft_target { ACPI_IBFT_HEADER Header; UINT8 TargetIpAddress[16]; UINT16 TargetIpSocket; UINT8 TargetBootLun[8]; UINT8 ChapType; UINT8 NicAssociation; UINT16 TargetNameLength; UINT16 TargetNameOffset; UINT16 ChapNameLength; UINT16 ChapNameOffset; UINT16 ChapSecretLength; UINT16 ChapSecretOffset; UINT16 ReverseChapNameLength; UINT16 ReverseChapNameOffset; UINT16 ReverseChapSecretLength; UINT16 ReverseChapSecretOffset; } ACPI_IBFT_TARGET; /* Reset to default packing */ #pragma pack() #endif /* __ACTBL1_H__ */ acpica-unix-20250404/source/include/acresrc.h0000775000175000017500000003267414773714133020274 0ustar ivanhuivanhu/****************************************************************************** * * Name: acresrc.h - Resource Manager function prototypes * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACRESRC_H__ #define __ACRESRC_H__ /* Need the AML resource descriptor structs */ #include "amlresrc.h" /* * If possible, pack the following structures to byte alignment, since we * don't care about performance for debug output. Two cases where we cannot * pack the structures: * * 1) Hardware does not support misaligned memory transfers * 2) Compiler does not support pointers within packed structures */ #if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED)) #pragma pack(1) #endif /* * Individual entry for the resource conversion tables */ typedef const struct acpi_rsconvert_info { UINT8 Opcode; UINT8 ResourceOffset; UINT8 AmlOffset; UINT8 Value; } ACPI_RSCONVERT_INFO; /* Resource conversion opcodes */ typedef enum { ACPI_RSC_INITGET = 0, ACPI_RSC_INITSET, ACPI_RSC_FLAGINIT, ACPI_RSC_1BITFLAG, ACPI_RSC_2BITFLAG, ACPI_RSC_3BITFLAG, ACPI_RSC_6BITFLAG, ACPI_RSC_ADDRESS, ACPI_RSC_BITMASK, ACPI_RSC_BITMASK16, ACPI_RSC_COUNT, ACPI_RSC_COUNT16, ACPI_RSC_COUNT_GPIO_PIN, ACPI_RSC_COUNT_GPIO_RES, ACPI_RSC_COUNT_GPIO_VEN, ACPI_RSC_COUNT_SERIAL_RES, ACPI_RSC_COUNT_SERIAL_VEN, ACPI_RSC_DATA8, ACPI_RSC_EXIT_EQ, ACPI_RSC_EXIT_LE, ACPI_RSC_EXIT_NE, ACPI_RSC_LENGTH, ACPI_RSC_MOVE_GPIO_PIN, ACPI_RSC_MOVE_GPIO_RES, ACPI_RSC_MOVE_SERIAL_RES, ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RSC_MOVE8, ACPI_RSC_MOVE16, ACPI_RSC_MOVE32, ACPI_RSC_MOVE64, ACPI_RSC_SET8, ACPI_RSC_SOURCE, ACPI_RSC_SOURCEX } ACPI_RSCONVERT_OPCODES; /* Resource Conversion sub-opcodes */ #define ACPI_RSC_COMPARE_AML_LENGTH 0 #define ACPI_RSC_COMPARE_VALUE 1 #define ACPI_RSC_TABLE_SIZE(d) (sizeof (d) / sizeof (ACPI_RSCONVERT_INFO)) #define ACPI_RS_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_RESOURCE,f) #define AML_OFFSET(f) (UINT8) ACPI_OFFSET (AML_RESOURCE,f) /* * Individual entry for the resource dump tables */ typedef const struct acpi_rsdump_info { UINT8 Opcode; UINT8 Offset; const char *Name; const char **Pointer; } ACPI_RSDUMP_INFO; /* Values for the Opcode field above */ typedef enum { ACPI_RSD_TITLE = 0, ACPI_RSD_1BITFLAG, ACPI_RSD_2BITFLAG, ACPI_RSD_3BITFLAG, ACPI_RSD_6BITFLAG, ACPI_RSD_ADDRESS, ACPI_RSD_DWORDLIST, ACPI_RSD_LITERAL, ACPI_RSD_LONGLIST, ACPI_RSD_SHORTLIST, ACPI_RSD_SHORTLISTX, ACPI_RSD_SOURCE, ACPI_RSD_STRING, ACPI_RSD_UINT8, ACPI_RSD_UINT16, ACPI_RSD_UINT32, ACPI_RSD_UINT64, ACPI_RSD_WORDLIST, ACPI_RSD_LABEL, ACPI_RSD_SOURCE_LABEL, } ACPI_RSDUMP_OPCODES; /* restore default alignment */ #pragma pack() /* Resource tables indexed by internal resource type */ extern const UINT8 AcpiGbl_AmlResourceSizes[]; extern const UINT8 AcpiGbl_AmlResourceSerialBusSizes[]; extern ACPI_RSCONVERT_INFO *AcpiGbl_SetResourceDispatch[]; /* Resource tables indexed by raw AML resource descriptor type */ extern const UINT8 AcpiGbl_ResourceStructSizes[]; extern const UINT8 AcpiGbl_ResourceStructSerialBusSizes[]; extern ACPI_RSCONVERT_INFO *AcpiGbl_GetResourceDispatch[]; extern ACPI_RSCONVERT_INFO *AcpiGbl_ConvertResourceSerialBusDispatch[]; typedef struct acpi_vendor_walk_info { ACPI_VENDOR_UUID *Uuid; ACPI_BUFFER *Buffer; ACPI_STATUS Status; } ACPI_VENDOR_WALK_INFO; /* * rscreate */ ACPI_STATUS AcpiRsCreateResourceList ( ACPI_OPERAND_OBJECT *AmlBuffer, ACPI_BUFFER *OutputBuffer); ACPI_STATUS AcpiRsCreateAmlResources ( ACPI_BUFFER *ResourceList, ACPI_BUFFER *OutputBuffer); ACPI_STATUS AcpiRsCreatePciRoutingTable ( ACPI_OPERAND_OBJECT *PackageObject, ACPI_BUFFER *OutputBuffer); /* * rsutils */ ACPI_STATUS AcpiRsGetPrtMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer); ACPI_STATUS AcpiRsGetCrsMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer); ACPI_STATUS AcpiRsGetPrsMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer); ACPI_STATUS AcpiRsGetMethodData ( ACPI_HANDLE Handle, const char *Path, ACPI_BUFFER *RetBuffer); ACPI_STATUS AcpiRsSetSrsMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer); ACPI_STATUS AcpiRsGetAeiMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer); /* * rscalc */ ACPI_STATUS AcpiRsGetListLength ( UINT8 *AmlBuffer, UINT32 AmlBufferLength, ACPI_SIZE *SizeNeeded); ACPI_STATUS AcpiRsGetAmlLength ( ACPI_RESOURCE *ResourceList, ACPI_SIZE ResourceListSize, ACPI_SIZE *SizeNeeded); ACPI_STATUS AcpiRsGetPciRoutingTableLength ( ACPI_OPERAND_OBJECT *PackageObject, ACPI_SIZE *BufferSizeNeeded); ACPI_STATUS AcpiRsConvertAmlToResources ( UINT8 *Aml, UINT32 Length, UINT32 Offset, UINT8 ResourceIndex, void **Context); ACPI_STATUS AcpiRsConvertResourcesToAml ( ACPI_RESOURCE *Resource, ACPI_SIZE AmlSizeNeeded, UINT8 *OutputBuffer); /* * rsaddr */ void AcpiRsSetAddressCommon ( AML_RESOURCE *Aml, ACPI_RESOURCE *Resource); BOOLEAN AcpiRsGetAddressCommon ( ACPI_RESOURCE *Resource, AML_RESOURCE *Aml); /* * rsmisc */ ACPI_STATUS AcpiRsConvertAmlToResource ( ACPI_RESOURCE *Resource, AML_RESOURCE *Aml, ACPI_RSCONVERT_INFO *Info); ACPI_STATUS AcpiRsConvertResourceToAml ( ACPI_RESOURCE *Resource, AML_RESOURCE *Aml, ACPI_RSCONVERT_INFO *Info); /* * rsutils */ void AcpiRsMoveData ( void *Destination, void *Source, UINT16 ItemCount, UINT8 MoveType); UINT8 AcpiRsDecodeBitmask ( UINT16 Mask, UINT8 *List); UINT16 AcpiRsEncodeBitmask ( UINT8 *List, UINT8 Count); ACPI_RS_LENGTH AcpiRsGetResourceSource ( ACPI_RS_LENGTH ResourceLength, ACPI_RS_LENGTH MinimumLength, ACPI_RESOURCE_SOURCE *ResourceSource, AML_RESOURCE *Aml, char *StringPtr); ACPI_RSDESC_SIZE AcpiRsSetResourceSource ( AML_RESOURCE *Aml, ACPI_RS_LENGTH MinimumLength, ACPI_RESOURCE_SOURCE *ResourceSource); void AcpiRsSetResourceHeader ( UINT8 DescriptorType, ACPI_RSDESC_SIZE TotalLength, AML_RESOURCE *Aml); void AcpiRsSetResourceLength ( ACPI_RSDESC_SIZE TotalLength, AML_RESOURCE *Aml); /* * rsdump - Debugger support */ #ifdef ACPI_DEBUGGER void AcpiRsDumpResourceList ( ACPI_RESOURCE *Resource); void AcpiRsDumpIrqList ( UINT8 *RouteTable); #endif /* * Resource conversion tables */ extern ACPI_RSCONVERT_INFO AcpiRsConvertDma[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertEndDpf[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertIo[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertFixedIo[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertEndTag[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertMemory24[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertGenericReg[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertMemory32[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertFixedMemory32[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertAddress32[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertAddress16[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertExtIrq[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertAddress64[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertExtAddress64[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertGpio[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertFixedDma[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertCsi2SerialBus[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertI2cSerialBus[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertSpiSerialBus[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertUartSerialBus[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertPinFunction[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertPinConfig[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertPinGroup[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertPinGroupFunction[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertPinGroupConfig[]; extern ACPI_RSCONVERT_INFO AcpiRsConvertClockInput[]; /* These resources require separate get/set tables */ extern ACPI_RSCONVERT_INFO AcpiRsGetIrq[]; extern ACPI_RSCONVERT_INFO AcpiRsGetStartDpf[]; extern ACPI_RSCONVERT_INFO AcpiRsGetVendorSmall[]; extern ACPI_RSCONVERT_INFO AcpiRsGetVendorLarge[]; extern ACPI_RSCONVERT_INFO AcpiRsSetIrq[]; extern ACPI_RSCONVERT_INFO AcpiRsSetStartDpf[]; extern ACPI_RSCONVERT_INFO AcpiRsSetVendor[]; #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) /* * rsinfo */ extern ACPI_RSDUMP_INFO *AcpiGbl_DumpResourceDispatch[]; extern ACPI_RSDUMP_INFO *AcpiGbl_DumpSerialBusDispatch[]; /* * rsdumpinfo */ extern ACPI_RSDUMP_INFO AcpiRsDumpIrq[]; extern ACPI_RSDUMP_INFO AcpiRsDumpPrt[]; extern ACPI_RSDUMP_INFO AcpiRsDumpDma[]; extern ACPI_RSDUMP_INFO AcpiRsDumpStartDpf[]; extern ACPI_RSDUMP_INFO AcpiRsDumpEndDpf[]; extern ACPI_RSDUMP_INFO AcpiRsDumpIo[]; extern ACPI_RSDUMP_INFO AcpiRsDumpIoFlags[]; extern ACPI_RSDUMP_INFO AcpiRsDumpFixedIo[]; extern ACPI_RSDUMP_INFO AcpiRsDumpVendor[]; extern ACPI_RSDUMP_INFO AcpiRsDumpEndTag[]; extern ACPI_RSDUMP_INFO AcpiRsDumpMemory24[]; extern ACPI_RSDUMP_INFO AcpiRsDumpMemory32[]; extern ACPI_RSDUMP_INFO AcpiRsDumpMemoryFlags[]; extern ACPI_RSDUMP_INFO AcpiRsDumpFixedMemory32[]; extern ACPI_RSDUMP_INFO AcpiRsDumpAddress16[]; extern ACPI_RSDUMP_INFO AcpiRsDumpAddress32[]; extern ACPI_RSDUMP_INFO AcpiRsDumpAddress64[]; extern ACPI_RSDUMP_INFO AcpiRsDumpExtAddress64[]; extern ACPI_RSDUMP_INFO AcpiRsDumpExtIrq[]; extern ACPI_RSDUMP_INFO AcpiRsDumpGenericReg[]; extern ACPI_RSDUMP_INFO AcpiRsDumpGpio[]; extern ACPI_RSDUMP_INFO AcpiRsDumpPinFunction[]; extern ACPI_RSDUMP_INFO AcpiRsDumpFixedDma[]; extern ACPI_RSDUMP_INFO AcpiRsDumpCommonSerialBus[]; extern ACPI_RSDUMP_INFO AcpiRsDumpCsi2SerialBus[]; extern ACPI_RSDUMP_INFO AcpiRsDumpI2cSerialBus[]; extern ACPI_RSDUMP_INFO AcpiRsDumpSpiSerialBus[]; extern ACPI_RSDUMP_INFO AcpiRsDumpUartSerialBus[]; extern ACPI_RSDUMP_INFO AcpiRsDumpGeneralFlags[]; extern ACPI_RSDUMP_INFO AcpiRsDumpPinConfig[]; extern ACPI_RSDUMP_INFO AcpiRsDumpPinGroup[]; extern ACPI_RSDUMP_INFO AcpiRsDumpPinGroupFunction[]; extern ACPI_RSDUMP_INFO AcpiRsDumpPinGroupConfig[]; extern ACPI_RSDUMP_INFO AcpiRsDumpClockInput[]; #endif #endif /* __ACRESRC_H__ */ acpica-unix-20250404/source/include/acrestyp.h0000775000175000017500000007125214773714133020477 0ustar ivanhuivanhu/****************************************************************************** * * Name: acrestyp.h - Defines, types, and structures for resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACRESTYP_H__ #define __ACRESTYP_H__ /* * Definitions for Resource Attributes */ typedef UINT16 ACPI_RS_LENGTH; /* Resource Length field is fixed at 16 bits */ typedef UINT32 ACPI_RSDESC_SIZE; /* Max Resource Descriptor size is (Length+3) = (64K-1)+3 */ /* * Memory Attributes */ #define ACPI_READ_ONLY_MEMORY (UINT8) 0x00 #define ACPI_READ_WRITE_MEMORY (UINT8) 0x01 #define ACPI_NON_CACHEABLE_MEMORY (UINT8) 0x00 #define ACPI_CACHABLE_MEMORY (UINT8) 0x01 #define ACPI_WRITE_COMBINING_MEMORY (UINT8) 0x02 #define ACPI_PREFETCHABLE_MEMORY (UINT8) 0x03 /*! [Begin] no source code translation */ /* * IO Attributes * The ISA IO ranges are: n000-n0FFh, n400-n4FFh, n800-n8FFh, nC00-nCFFh. * The non-ISA IO ranges are: n100-n3FFh, n500-n7FFh, n900-nBFFh, nCD0-nFFFh. */ /*! [End] no source code translation !*/ #define ACPI_NON_ISA_ONLY_RANGES (UINT8) 0x01 #define ACPI_ISA_ONLY_RANGES (UINT8) 0x02 #define ACPI_ENTIRE_RANGE (ACPI_NON_ISA_ONLY_RANGES | ACPI_ISA_ONLY_RANGES) /* Type of translation - 1=Sparse, 0=Dense */ #define ACPI_SPARSE_TRANSLATION (UINT8) 0x01 /* * IO Port Descriptor Decode */ #define ACPI_DECODE_10 (UINT8) 0x00 /* 10-bit IO address decode */ #define ACPI_DECODE_16 (UINT8) 0x01 /* 16-bit IO address decode */ /* * Interrupt attributes - used in multiple descriptors */ /* Triggering */ #define ACPI_LEVEL_SENSITIVE (UINT8) 0x00 #define ACPI_EDGE_SENSITIVE (UINT8) 0x01 /* Polarity */ #define ACPI_ACTIVE_HIGH (UINT8) 0x00 #define ACPI_ACTIVE_LOW (UINT8) 0x01 #define ACPI_ACTIVE_BOTH (UINT8) 0x02 /* Sharing */ #define ACPI_EXCLUSIVE (UINT8) 0x00 #define ACPI_SHARED (UINT8) 0x01 /* Wake */ #define ACPI_NOT_WAKE_CAPABLE (UINT8) 0x00 #define ACPI_WAKE_CAPABLE (UINT8) 0x01 /* * DMA Attributes */ #define ACPI_COMPATIBILITY (UINT8) 0x00 #define ACPI_TYPE_A (UINT8) 0x01 #define ACPI_TYPE_B (UINT8) 0x02 #define ACPI_TYPE_F (UINT8) 0x03 #define ACPI_NOT_BUS_MASTER (UINT8) 0x00 #define ACPI_BUS_MASTER (UINT8) 0x01 #define ACPI_TRANSFER_8 (UINT8) 0x00 #define ACPI_TRANSFER_8_16 (UINT8) 0x01 #define ACPI_TRANSFER_16 (UINT8) 0x02 /* * Start Dependent Functions Priority definitions */ #define ACPI_GOOD_CONFIGURATION (UINT8) 0x00 #define ACPI_ACCEPTABLE_CONFIGURATION (UINT8) 0x01 #define ACPI_SUB_OPTIMAL_CONFIGURATION (UINT8) 0x02 /* * 16, 32 and 64-bit Address Descriptor resource types */ #define ACPI_MEMORY_RANGE (UINT8) 0x00 #define ACPI_IO_RANGE (UINT8) 0x01 #define ACPI_BUS_NUMBER_RANGE (UINT8) 0x02 #define ACPI_ADDRESS_NOT_FIXED (UINT8) 0x00 #define ACPI_ADDRESS_FIXED (UINT8) 0x01 #define ACPI_POS_DECODE (UINT8) 0x00 #define ACPI_SUB_DECODE (UINT8) 0x01 /* Producer/Consumer */ #define ACPI_PRODUCER (UINT8) 0x00 #define ACPI_CONSUMER (UINT8) 0x01 /* * If possible, pack the following structures to byte alignment */ #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED #pragma pack(1) #endif /* UUID data structures for use in vendor-defined resource descriptors */ typedef struct acpi_uuid { UINT8 Data[ACPI_UUID_LENGTH]; } ACPI_UUID; typedef struct acpi_vendor_uuid { UINT8 Subtype; UINT8 Data[ACPI_UUID_LENGTH]; } ACPI_VENDOR_UUID; /* * Structures used to describe device resources */ typedef struct acpi_resource_irq { UINT8 DescriptorLength; UINT8 Triggering; UINT8 Polarity; UINT8 Shareable; UINT8 WakeCapable; UINT8 InterruptCount; union { UINT8 Interrupt; ACPI_FLEX_ARRAY(UINT8, Interrupts); }; } ACPI_RESOURCE_IRQ; typedef struct acpi_resource_dma { UINT8 Type; UINT8 BusMaster; UINT8 Transfer; UINT8 ChannelCount; union { UINT8 Channel; ACPI_FLEX_ARRAY(UINT8, Channels); }; } ACPI_RESOURCE_DMA; typedef struct acpi_resource_start_dependent { UINT8 DescriptorLength; UINT8 CompatibilityPriority; UINT8 PerformanceRobustness; } ACPI_RESOURCE_START_DEPENDENT; /* * The END_DEPENDENT_FUNCTIONS_RESOURCE struct is not * needed because it has no fields */ typedef struct acpi_resource_io { UINT8 IoDecode; UINT8 Alignment; UINT8 AddressLength; UINT16 Minimum; UINT16 Maximum; } ACPI_RESOURCE_IO; typedef struct acpi_resource_fixed_io { UINT16 Address; UINT8 AddressLength; } ACPI_RESOURCE_FIXED_IO; typedef struct acpi_resource_fixed_dma { UINT16 RequestLines; UINT16 Channels; UINT8 Width; } ACPI_RESOURCE_FIXED_DMA; /* Values for Width field above */ #define ACPI_DMA_WIDTH8 0 #define ACPI_DMA_WIDTH16 1 #define ACPI_DMA_WIDTH32 2 #define ACPI_DMA_WIDTH64 3 #define ACPI_DMA_WIDTH128 4 #define ACPI_DMA_WIDTH256 5 typedef struct acpi_resource_vendor { UINT16 ByteLength; UINT8 ByteData[]; } ACPI_RESOURCE_VENDOR; /* Vendor resource with UUID info (introduced in ACPI 3.0) */ typedef struct acpi_resource_vendor_typed { UINT16 ByteLength; UINT8 UuidSubtype; UINT8 Uuid[ACPI_UUID_LENGTH]; UINT8 ByteData[]; } ACPI_RESOURCE_VENDOR_TYPED; typedef struct acpi_resource_end_tag { UINT8 Checksum; } ACPI_RESOURCE_END_TAG; typedef struct acpi_resource_memory24 { UINT8 WriteProtect; UINT16 Minimum; UINT16 Maximum; UINT16 Alignment; UINT16 AddressLength; } ACPI_RESOURCE_MEMORY24; typedef struct acpi_resource_memory32 { UINT8 WriteProtect; UINT32 Minimum; UINT32 Maximum; UINT32 Alignment; UINT32 AddressLength; } ACPI_RESOURCE_MEMORY32; typedef struct acpi_resource_fixed_memory32 { UINT8 WriteProtect; UINT32 Address; UINT32 AddressLength; } ACPI_RESOURCE_FIXED_MEMORY32; typedef struct acpi_memory_attribute { UINT8 WriteProtect; UINT8 Caching; UINT8 RangeType; UINT8 Translation; } ACPI_MEMORY_ATTRIBUTE; typedef struct acpi_io_attribute { UINT8 RangeType; UINT8 Translation; UINT8 TranslationType; UINT8 Reserved1; } ACPI_IO_ATTRIBUTE; typedef union acpi_resource_attribute { ACPI_MEMORY_ATTRIBUTE Mem; ACPI_IO_ATTRIBUTE Io; /* Used for the *WordSpace macros */ UINT8 TypeSpecific; } ACPI_RESOURCE_ATTRIBUTE; typedef struct acpi_resource_label { UINT16 StringLength; char *StringPtr; } ACPI_RESOURCE_LABEL; typedef struct acpi_resource_source { UINT8 Index; UINT16 StringLength; char *StringPtr; } ACPI_RESOURCE_SOURCE; /* Fields common to all address descriptors, 16/32/64 bit */ #define ACPI_RESOURCE_ADDRESS_COMMON \ UINT8 ResourceType; \ UINT8 ProducerConsumer; \ UINT8 Decode; \ UINT8 MinAddressFixed; \ UINT8 MaxAddressFixed; \ ACPI_RESOURCE_ATTRIBUTE Info; typedef struct acpi_address16_attribute { UINT16 Granularity; UINT16 Minimum; UINT16 Maximum; UINT16 TranslationOffset; UINT16 AddressLength; } ACPI_ADDRESS16_ATTRIBUTE; typedef struct acpi_address32_attribute { UINT32 Granularity; UINT32 Minimum; UINT32 Maximum; UINT32 TranslationOffset; UINT32 AddressLength; } ACPI_ADDRESS32_ATTRIBUTE; typedef struct acpi_address64_attribute { UINT64 Granularity; UINT64 Minimum; UINT64 Maximum; UINT64 TranslationOffset; UINT64 AddressLength; } ACPI_ADDRESS64_ATTRIBUTE; typedef struct acpi_resource_address { ACPI_RESOURCE_ADDRESS_COMMON } ACPI_RESOURCE_ADDRESS; typedef struct acpi_resource_address16 { ACPI_RESOURCE_ADDRESS_COMMON ACPI_ADDRESS16_ATTRIBUTE Address; ACPI_RESOURCE_SOURCE ResourceSource; } ACPI_RESOURCE_ADDRESS16; typedef struct acpi_resource_address32 { ACPI_RESOURCE_ADDRESS_COMMON ACPI_ADDRESS32_ATTRIBUTE Address; ACPI_RESOURCE_SOURCE ResourceSource; } ACPI_RESOURCE_ADDRESS32; typedef struct acpi_resource_address64 { ACPI_RESOURCE_ADDRESS_COMMON ACPI_ADDRESS64_ATTRIBUTE Address; ACPI_RESOURCE_SOURCE ResourceSource; } ACPI_RESOURCE_ADDRESS64; typedef struct acpi_resource_extended_address64 { ACPI_RESOURCE_ADDRESS_COMMON UINT8 RevisionID; ACPI_ADDRESS64_ATTRIBUTE Address; UINT64 TypeSpecific; } ACPI_RESOURCE_EXTENDED_ADDRESS64; typedef struct acpi_resource_extended_irq { UINT8 ProducerConsumer; UINT8 Triggering; UINT8 Polarity; UINT8 Shareable; UINT8 WakeCapable; UINT8 InterruptCount; ACPI_RESOURCE_SOURCE ResourceSource; union { UINT32 Interrupt; ACPI_FLEX_ARRAY(UINT32, Interrupts); }; } ACPI_RESOURCE_EXTENDED_IRQ; typedef struct acpi_resource_generic_register { UINT8 SpaceId; UINT8 BitWidth; UINT8 BitOffset; UINT8 AccessSize; UINT64 Address; } ACPI_RESOURCE_GENERIC_REGISTER; typedef struct acpi_resource_gpio { UINT8 RevisionId; UINT8 ConnectionType; UINT8 ProducerConsumer; /* For values, see Producer/Consumer above */ UINT8 PinConfig; UINT8 Shareable; /* For values, see Interrupt Attributes above */ UINT8 WakeCapable; /* For values, see Interrupt Attributes above */ UINT8 IoRestriction; UINT8 Triggering; /* For values, see Interrupt Attributes above */ UINT8 Polarity; /* For values, see Interrupt Attributes above */ UINT16 DriveStrength; UINT16 DebounceTimeout; UINT16 PinTableLength; UINT16 VendorLength; ACPI_RESOURCE_SOURCE ResourceSource; UINT16 *PinTable; UINT8 *VendorData; } ACPI_RESOURCE_GPIO; /* Values for GPIO ConnectionType field above */ #define ACPI_RESOURCE_GPIO_TYPE_INT 0 #define ACPI_RESOURCE_GPIO_TYPE_IO 1 /* Values for PinConfig field above */ #define ACPI_PIN_CONFIG_DEFAULT 0 #define ACPI_PIN_CONFIG_PULLUP 1 #define ACPI_PIN_CONFIG_PULLDOWN 2 #define ACPI_PIN_CONFIG_NOPULL 3 /* Values for IoRestriction field above */ #define ACPI_IO_RESTRICT_NONE 0 #define ACPI_IO_RESTRICT_INPUT 1 #define ACPI_IO_RESTRICT_OUTPUT 2 #define ACPI_IO_RESTRICT_NONE_PRESERVE 3 /* Common structure for I2C, SPI, UART, CSI2 serial descriptors */ #define ACPI_RESOURCE_SERIAL_COMMON \ UINT8 RevisionId; \ UINT8 Type; \ UINT8 ProducerConsumer; /* For values, see Producer/Consumer above */\ UINT8 SlaveMode; \ UINT8 ConnectionSharing; \ UINT8 TypeRevisionId; \ UINT16 TypeDataLength; \ UINT16 VendorLength; \ ACPI_RESOURCE_SOURCE ResourceSource; \ UINT8 *VendorData; typedef struct acpi_resource_common_serialbus { ACPI_RESOURCE_SERIAL_COMMON } ACPI_RESOURCE_COMMON_SERIALBUS; /* Values for the Type field above */ #define ACPI_RESOURCE_SERIAL_TYPE_I2C 1 #define ACPI_RESOURCE_SERIAL_TYPE_SPI 2 #define ACPI_RESOURCE_SERIAL_TYPE_UART 3 #define ACPI_RESOURCE_SERIAL_TYPE_CSI2 4 /* Values for SlaveMode field above */ #define ACPI_CONTROLLER_INITIATED 0 #define ACPI_DEVICE_INITIATED 1 typedef struct acpi_resource_i2c_serialbus { ACPI_RESOURCE_SERIAL_COMMON UINT8 AccessMode; UINT16 SlaveAddress; UINT32 ConnectionSpeed; } ACPI_RESOURCE_I2C_SERIALBUS; /* Values for AccessMode field above */ #define ACPI_I2C_7BIT_MODE 0 #define ACPI_I2C_10BIT_MODE 1 typedef struct acpi_resource_spi_serialbus { ACPI_RESOURCE_SERIAL_COMMON UINT8 WireMode; UINT8 DevicePolarity; UINT8 DataBitLength; UINT8 ClockPhase; UINT8 ClockPolarity; UINT16 DeviceSelection; UINT32 ConnectionSpeed; } ACPI_RESOURCE_SPI_SERIALBUS; /* Values for WireMode field above */ #define ACPI_SPI_4WIRE_MODE 0 #define ACPI_SPI_3WIRE_MODE 1 /* Values for DevicePolarity field above */ #define ACPI_SPI_ACTIVE_LOW 0 #define ACPI_SPI_ACTIVE_HIGH 1 /* Values for ClockPhase field above */ #define ACPI_SPI_FIRST_PHASE 0 #define ACPI_SPI_SECOND_PHASE 1 /* Values for ClockPolarity field above */ #define ACPI_SPI_START_LOW 0 #define ACPI_SPI_START_HIGH 1 typedef struct acpi_resource_uart_serialbus { ACPI_RESOURCE_SERIAL_COMMON UINT8 Endian; UINT8 DataBits; UINT8 StopBits; UINT8 FlowControl; UINT8 Parity; UINT8 LinesEnabled; UINT16 RxFifoSize; UINT16 TxFifoSize; UINT32 DefaultBaudRate; } ACPI_RESOURCE_UART_SERIALBUS; /* Values for Endian field above */ #define ACPI_UART_LITTLE_ENDIAN 0 #define ACPI_UART_BIG_ENDIAN 1 /* Values for DataBits field above */ #define ACPI_UART_5_DATA_BITS 0 #define ACPI_UART_6_DATA_BITS 1 #define ACPI_UART_7_DATA_BITS 2 #define ACPI_UART_8_DATA_BITS 3 #define ACPI_UART_9_DATA_BITS 4 /* Values for StopBits field above */ #define ACPI_UART_NO_STOP_BITS 0 #define ACPI_UART_1_STOP_BIT 1 #define ACPI_UART_1P5_STOP_BITS 2 #define ACPI_UART_2_STOP_BITS 3 /* Values for FlowControl field above */ #define ACPI_UART_FLOW_CONTROL_NONE 0 #define ACPI_UART_FLOW_CONTROL_HW 1 #define ACPI_UART_FLOW_CONTROL_XON_XOFF 2 /* Values for Parity field above */ #define ACPI_UART_PARITY_NONE 0 #define ACPI_UART_PARITY_EVEN 1 #define ACPI_UART_PARITY_ODD 2 #define ACPI_UART_PARITY_MARK 3 #define ACPI_UART_PARITY_SPACE 4 /* Values for LinesEnabled bitfield above */ #define ACPI_UART_CARRIER_DETECT (1<<2) #define ACPI_UART_RING_INDICATOR (1<<3) #define ACPI_UART_DATA_SET_READY (1<<4) #define ACPI_UART_DATA_TERMINAL_READY (1<<5) #define ACPI_UART_CLEAR_TO_SEND (1<<6) #define ACPI_UART_REQUEST_TO_SEND (1<<7) typedef struct acpi_resource_csi2_serialbus { ACPI_RESOURCE_SERIAL_COMMON UINT8 LocalPortInstance; UINT8 PhyType; } ACPI_RESOURCE_CSI2_SERIALBUS; typedef struct acpi_resource_pin_function { UINT8 RevisionId; UINT8 PinConfig; UINT8 Shareable; /* For values, see Interrupt Attributes above */ UINT16 FunctionNumber; UINT16 PinTableLength; UINT16 VendorLength; ACPI_RESOURCE_SOURCE ResourceSource; UINT16 *PinTable; UINT8 *VendorData; } ACPI_RESOURCE_PIN_FUNCTION; typedef struct acpi_resource_pin_config { UINT8 RevisionId; UINT8 ProducerConsumer; /* For values, see Producer/Consumer above */ UINT8 Shareable; /* For values, see Interrupt Attributes above */ UINT8 PinConfigType; UINT32 PinConfigValue; UINT16 PinTableLength; UINT16 VendorLength; ACPI_RESOURCE_SOURCE ResourceSource; UINT16 *PinTable; UINT8 *VendorData; } ACPI_RESOURCE_PIN_CONFIG; typedef struct acpi_resource_clock_input { UINT8 RevisionId; UINT8 Mode; UINT8 Scale; UINT16 FrequencyDivisor; UINT32 FrequencyNumerator; ACPI_RESOURCE_SOURCE ResourceSource; } ACPI_RESOURCE_CLOCK_INPUT; /* Values for PinConfigType field above */ #define ACPI_PIN_CONFIG_DEFAULT 0 #define ACPI_PIN_CONFIG_BIAS_PULL_UP 1 #define ACPI_PIN_CONFIG_BIAS_PULL_DOWN 2 #define ACPI_PIN_CONFIG_BIAS_DEFAULT 3 #define ACPI_PIN_CONFIG_BIAS_DISABLE 4 #define ACPI_PIN_CONFIG_BIAS_HIGH_IMPEDANCE 5 #define ACPI_PIN_CONFIG_BIAS_BUS_HOLD 6 #define ACPI_PIN_CONFIG_DRIVE_OPEN_DRAIN 7 #define ACPI_PIN_CONFIG_DRIVE_OPEN_SOURCE 8 #define ACPI_PIN_CONFIG_DRIVE_PUSH_PULL 9 #define ACPI_PIN_CONFIG_DRIVE_STRENGTH 10 #define ACPI_PIN_CONFIG_SLEW_RATE 11 #define ACPI_PIN_CONFIG_INPUT_DEBOUNCE 12 #define ACPI_PIN_CONFIG_INPUT_SCHMITT_TRIGGER 13 typedef struct acpi_resource_pin_group { UINT8 RevisionId; UINT8 ProducerConsumer; /* For values, see Producer/Consumer above */ UINT16 PinTableLength; UINT16 VendorLength; UINT16 *PinTable; ACPI_RESOURCE_LABEL ResourceLabel; UINT8 *VendorData; } ACPI_RESOURCE_PIN_GROUP; typedef struct acpi_resource_pin_group_function { UINT8 RevisionId; UINT8 ProducerConsumer; /* For values, see Producer/Consumer above */ UINT8 Shareable; /* For values, see Interrupt Attributes above */ UINT16 FunctionNumber; UINT16 VendorLength; ACPI_RESOURCE_SOURCE ResourceSource; ACPI_RESOURCE_LABEL ResourceSourceLabel; UINT8 *VendorData; } ACPI_RESOURCE_PIN_GROUP_FUNCTION; typedef struct acpi_resource_pin_group_config { UINT8 RevisionId; UINT8 ProducerConsumer; /* For values, see Producer/Consumer above */ UINT8 Shareable; /* For values, see Interrupt Attributes above */ UINT8 PinConfigType; /* For values, see PinConfigType above */ UINT32 PinConfigValue; UINT16 VendorLength; ACPI_RESOURCE_SOURCE ResourceSource; ACPI_RESOURCE_LABEL ResourceSourceLabel; UINT8 *VendorData; } ACPI_RESOURCE_PIN_GROUP_CONFIG; /* ACPI_RESOURCE_TYPEs */ #define ACPI_RESOURCE_TYPE_IRQ 0 #define ACPI_RESOURCE_TYPE_DMA 1 #define ACPI_RESOURCE_TYPE_START_DEPENDENT 2 #define ACPI_RESOURCE_TYPE_END_DEPENDENT 3 #define ACPI_RESOURCE_TYPE_IO 4 #define ACPI_RESOURCE_TYPE_FIXED_IO 5 #define ACPI_RESOURCE_TYPE_VENDOR 6 #define ACPI_RESOURCE_TYPE_END_TAG 7 #define ACPI_RESOURCE_TYPE_MEMORY24 8 #define ACPI_RESOURCE_TYPE_MEMORY32 9 #define ACPI_RESOURCE_TYPE_FIXED_MEMORY32 10 #define ACPI_RESOURCE_TYPE_ADDRESS16 11 #define ACPI_RESOURCE_TYPE_ADDRESS32 12 #define ACPI_RESOURCE_TYPE_ADDRESS64 13 #define ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 14 /* ACPI 3.0 */ #define ACPI_RESOURCE_TYPE_EXTENDED_IRQ 15 #define ACPI_RESOURCE_TYPE_GENERIC_REGISTER 16 #define ACPI_RESOURCE_TYPE_GPIO 17 /* ACPI 5.0 */ #define ACPI_RESOURCE_TYPE_FIXED_DMA 18 /* ACPI 5.0 */ #define ACPI_RESOURCE_TYPE_SERIAL_BUS 19 /* ACPI 5.0 */ #define ACPI_RESOURCE_TYPE_PIN_FUNCTION 20 /* ACPI 6.2 */ #define ACPI_RESOURCE_TYPE_PIN_CONFIG 21 /* ACPI 6.2 */ #define ACPI_RESOURCE_TYPE_PIN_GROUP 22 /* ACPI 6.2 */ #define ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION 23 /* ACPI 6.2 */ #define ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG 24 /* ACPI 6.2 */ #define ACPI_RESOURCE_TYPE_CLOCK_INPUT 25 /* ACPI 6.5 */ #define ACPI_RESOURCE_TYPE_MAX 25 /* Master union for resource descriptors */ typedef union acpi_resource_data { ACPI_RESOURCE_IRQ Irq; ACPI_RESOURCE_DMA Dma; ACPI_RESOURCE_START_DEPENDENT StartDpf; ACPI_RESOURCE_IO Io; ACPI_RESOURCE_FIXED_IO FixedIo; ACPI_RESOURCE_FIXED_DMA FixedDma; ACPI_RESOURCE_VENDOR Vendor; ACPI_RESOURCE_VENDOR_TYPED VendorTyped; ACPI_RESOURCE_END_TAG EndTag; ACPI_RESOURCE_MEMORY24 Memory24; ACPI_RESOURCE_MEMORY32 Memory32; ACPI_RESOURCE_FIXED_MEMORY32 FixedMemory32; ACPI_RESOURCE_ADDRESS16 Address16; ACPI_RESOURCE_ADDRESS32 Address32; ACPI_RESOURCE_ADDRESS64 Address64; ACPI_RESOURCE_EXTENDED_ADDRESS64 ExtAddress64; ACPI_RESOURCE_EXTENDED_IRQ ExtendedIrq; ACPI_RESOURCE_GENERIC_REGISTER GenericReg; ACPI_RESOURCE_GPIO Gpio; ACPI_RESOURCE_I2C_SERIALBUS I2cSerialBus; ACPI_RESOURCE_SPI_SERIALBUS SpiSerialBus; ACPI_RESOURCE_UART_SERIALBUS UartSerialBus; ACPI_RESOURCE_CSI2_SERIALBUS Csi2SerialBus; ACPI_RESOURCE_COMMON_SERIALBUS CommonSerialBus; ACPI_RESOURCE_PIN_FUNCTION PinFunction; ACPI_RESOURCE_PIN_CONFIG PinConfig; ACPI_RESOURCE_PIN_GROUP PinGroup; ACPI_RESOURCE_PIN_GROUP_FUNCTION PinGroupFunction; ACPI_RESOURCE_PIN_GROUP_CONFIG PinGroupConfig; ACPI_RESOURCE_CLOCK_INPUT ClockInput; /* Common fields */ ACPI_RESOURCE_ADDRESS Address; /* Common 16/32/64 address fields */ } ACPI_RESOURCE_DATA; /* Common resource header */ typedef struct acpi_resource { UINT32 Type; UINT32 Length; ACPI_RESOURCE_DATA Data; } ACPI_RESOURCE; /* restore default alignment */ #pragma pack() #define ACPI_RS_SIZE_NO_DATA 8 /* Id + Length fields */ #define ACPI_RS_SIZE_MIN (UINT32) ACPI_ROUND_UP_TO_NATIVE_WORD (12) #define ACPI_RS_SIZE(Type) (UINT32) (ACPI_RS_SIZE_NO_DATA + sizeof (Type)) /* Macro for walking resource templates with multiple descriptors */ #define ACPI_NEXT_RESOURCE(Res) \ ACPI_ADD_PTR (ACPI_RESOURCE, (Res), (Res)->Length) typedef struct acpi_pci_routing_table { UINT32 Length; UINT32 Pin; UINT64 Address; /* here for 64-bit alignment */ UINT32 SourceIndex; union { char Pad[4]; /* pad to 64 bits so sizeof() works in all cases */ ACPI_FLEX_ARRAY(char, Source); }; } ACPI_PCI_ROUTING_TABLE; #endif /* __ACRESTYP_H__ */ acpica-unix-20250404/source/include/acnames.h0000775000175000017500000000776314773714133020262 0ustar ivanhuivanhu/****************************************************************************** * * Name: acnames.h - Global names and strings * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACNAMES_H__ #define __ACNAMES_H__ /* Method names - these methods can appear anywhere in the namespace */ #define METHOD_NAME__ADR "_ADR" #define METHOD_NAME__AEI "_AEI" #define METHOD_NAME__BBN "_BBN" #define METHOD_NAME__CBA "_CBA" #define METHOD_NAME__CID "_CID" #define METHOD_NAME__CLS "_CLS" #define METHOD_NAME__CRS "_CRS" #define METHOD_NAME__DDN "_DDN" #define METHOD_NAME__DIS "_DIS" #define METHOD_NAME__DMA "_DMA" #define METHOD_NAME__EVT "_EVT" #define METHOD_NAME__HID "_HID" #define METHOD_NAME__INI "_INI" #define METHOD_NAME__PLD "_PLD" #define METHOD_NAME__DSD "_DSD" #define METHOD_NAME__PRS "_PRS" #define METHOD_NAME__PRT "_PRT" #define METHOD_NAME__PRW "_PRW" #define METHOD_NAME__PS0 "_PS0" #define METHOD_NAME__PS1 "_PS1" #define METHOD_NAME__PS2 "_PS2" #define METHOD_NAME__PS3 "_PS3" #define METHOD_NAME__REG "_REG" #define METHOD_NAME__SB_ "_SB_" #define METHOD_NAME__SEG "_SEG" #define METHOD_NAME__SRS "_SRS" #define METHOD_NAME__STA "_STA" #define METHOD_NAME__SUB "_SUB" #define METHOD_NAME__UID "_UID" /* Method names - these methods must appear at the namespace root */ #define METHOD_PATHNAME__PTS "\\_PTS" #define METHOD_PATHNAME__SST "\\_SI._SST" #define METHOD_PATHNAME__WAK "\\_WAK" /* Definitions of the predefined namespace names */ #define ACPI_UNKNOWN_NAME (UINT32) 0x3F3F3F3F /* Unknown name is "????" */ #define ACPI_PREFIX_MIXED (UINT32) 0x69706341 /* "Acpi" */ #define ACPI_PREFIX_LOWER (UINT32) 0x69706361 /* "acpi" */ /* Root name stuff */ #define ACPI_ROOT_NAME (UINT32) 0x5F5F5F5C /* Root name is "\___" */ #define ACPI_ROOT_PATHNAME "\\___" #define ACPI_NAMESPACE_ROOT "Namespace Root" #define ACPI_NS_ROOT_PATH "\\" #endif /* __ACNAMES_H__ */ acpica-unix-20250404/source/include/acglobal.h0000775000175000017500000004503114773714133020405 0ustar ivanhuivanhu/****************************************************************************** * * Name: acglobal.h - Declarations for global variables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACGLOBAL_H__ #define __ACGLOBAL_H__ /***************************************************************************** * * Globals related to the incoming ACPI tables * ****************************************************************************/ /* Master list of all ACPI tables that were found in the RSDT/XSDT */ ACPI_GLOBAL (ACPI_TABLE_LIST, AcpiGbl_RootTableList); /* DSDT information. Used to check for DSDT corruption */ ACPI_GLOBAL (ACPI_TABLE_HEADER *, AcpiGbl_DSDT); ACPI_GLOBAL (ACPI_TABLE_HEADER, AcpiGbl_OriginalDsdtHeader); ACPI_INIT_GLOBAL (char *, AcpiGbl_CDAT, NULL); ACPI_INIT_GLOBAL (UINT32, AcpiGbl_DsdtIndex, ACPI_INVALID_TABLE_INDEX); ACPI_INIT_GLOBAL (UINT32, AcpiGbl_FacsIndex, ACPI_INVALID_TABLE_INDEX); ACPI_INIT_GLOBAL (UINT32, AcpiGbl_XFacsIndex, ACPI_INVALID_TABLE_INDEX); ACPI_INIT_GLOBAL (UINT32, AcpiGbl_FadtIndex, ACPI_INVALID_TABLE_INDEX); ACPI_INIT_GLOBAL (ACPI_TABLE_FACS *, AcpiGbl_FACS, NULL); /* These addresses are calculated from the FADT Event Block addresses */ ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1aStatus); ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1aEnable); ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1bStatus); ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1bEnable); /* * Handle both ACPI 1.0 and ACPI 2.0+ Integer widths. The integer width is * determined by the revision of the DSDT: If the DSDT revision is less than * 2, use only the lower 32 bits of the internal 64-bit Integer. */ ACPI_GLOBAL (UINT8, AcpiGbl_IntegerBitWidth); ACPI_GLOBAL (UINT8, AcpiGbl_IntegerByteWidth); ACPI_GLOBAL (UINT8, AcpiGbl_IntegerNybbleWidth); /***************************************************************************** * * Mutual exclusion within the ACPICA subsystem * ****************************************************************************/ /* * Predefined mutex objects. This array contains the * actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs. * (The table maps local handles to the real OS handles) */ ACPI_GLOBAL (ACPI_MUTEX_INFO, AcpiGbl_MutexInfo[ACPI_NUM_MUTEX]); /* * Global lock mutex is an actual AML mutex object * Global lock semaphore works in conjunction with the actual global lock * Global lock spinlock is used for "pending" handshake */ ACPI_GLOBAL (ACPI_OPERAND_OBJECT *, AcpiGbl_GlobalLockMutex); ACPI_GLOBAL (ACPI_SEMAPHORE, AcpiGbl_GlobalLockSemaphore); ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_GlobalLockPendingLock); ACPI_GLOBAL (UINT16, AcpiGbl_GlobalLockHandle); ACPI_GLOBAL (BOOLEAN, AcpiGbl_GlobalLockAcquired); ACPI_GLOBAL (BOOLEAN, AcpiGbl_GlobalLockPresent); ACPI_GLOBAL (BOOLEAN, AcpiGbl_GlobalLockPending); /* * Spinlocks are used for interfaces that can be possibly called at * interrupt level */ ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_GpeLock); /* For GPE data structs and registers */ ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_HardwareLock); /* For ACPI H/W except GPE registers */ ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_ReferenceCountLock); /* Mutex for _OSI support */ ACPI_GLOBAL (ACPI_MUTEX, AcpiGbl_OsiMutex); /* Reader/Writer lock is used for namespace walk and dynamic table unload */ ACPI_GLOBAL (ACPI_RW_LOCK, AcpiGbl_NamespaceRwLock); /***************************************************************************** * * Miscellaneous globals * ****************************************************************************/ /* Object caches */ ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_NamespaceCache); ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_StateCache); ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_PsNodeCache); ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_PsNodeExtCache); ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_OperandCache); /* System */ ACPI_INIT_GLOBAL (UINT32, AcpiGbl_StartupFlags, 0); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_Shutdown, TRUE); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_EarlyInitialization, TRUE); /* Global handlers */ ACPI_GLOBAL (ACPI_GLOBAL_NOTIFY_HANDLER,AcpiGbl_GlobalNotify[2]); ACPI_GLOBAL (ACPI_EXCEPTION_HANDLER, AcpiGbl_ExceptionHandler); ACPI_GLOBAL (ACPI_INIT_HANDLER, AcpiGbl_InitHandler); ACPI_GLOBAL (ACPI_TABLE_HANDLER, AcpiGbl_TableHandler); ACPI_GLOBAL (void *, AcpiGbl_TableHandlerContext); ACPI_GLOBAL (ACPI_INTERFACE_HANDLER, AcpiGbl_InterfaceHandler); ACPI_GLOBAL (ACPI_SCI_HANDLER_INFO *, AcpiGbl_SciHandlerList); ACPI_GLOBAL (ACPI_GED_HANDLER_INFO *, AcpiGbl_GedHandlerList); /* Owner ID support */ ACPI_GLOBAL (UINT32, AcpiGbl_OwnerIdMask[ACPI_NUM_OWNERID_MASKS]); ACPI_GLOBAL (UINT8, AcpiGbl_LastOwnerIdIndex); ACPI_GLOBAL (UINT8, AcpiGbl_NextOwnerIdOffset); /* Initialization sequencing */ ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_NamespaceInitialized, FALSE); /* Miscellaneous */ ACPI_GLOBAL (UINT32, AcpiGbl_OriginalMode); ACPI_GLOBAL (UINT32, AcpiGbl_NsLookupCount); ACPI_GLOBAL (UINT32, AcpiGbl_PsFindCount); ACPI_GLOBAL (UINT16, AcpiGbl_Pm1EnableRegisterSave); ACPI_GLOBAL (UINT8, AcpiGbl_DebuggerConfiguration); ACPI_GLOBAL (BOOLEAN, AcpiGbl_StepToNextCall); ACPI_GLOBAL (BOOLEAN, AcpiGbl_AcpiHardwarePresent); ACPI_GLOBAL (BOOLEAN, AcpiGbl_EventsInitialized); ACPI_GLOBAL (ACPI_INTERFACE_INFO *, AcpiGbl_SupportedInterfaces); ACPI_GLOBAL (ACPI_ADDRESS_RANGE *, AcpiGbl_AddressRangeList[ACPI_ADDRESS_RANGE_MAX]); /* Other miscellaneous, declared and initialized in utglobal */ extern const char *AcpiGbl_SleepStateNames[ACPI_S_STATE_COUNT]; extern const char *AcpiGbl_LowestDstateNames[ACPI_NUM_SxW_METHODS]; extern const char *AcpiGbl_HighestDstateNames[ACPI_NUM_SxD_METHODS]; extern const char *AcpiGbl_RegionTypes[ACPI_NUM_PREDEFINED_REGIONS]; extern const char AcpiGbl_LowerHexDigits[]; extern const char AcpiGbl_UpperHexDigits[]; extern const ACPI_OPCODE_INFO AcpiGbl_AmlOpInfo[AML_NUM_OPCODES]; /* Lists for tracking memory allocations (debug only) */ #ifdef ACPI_DBG_TRACK_ALLOCATIONS ACPI_GLOBAL (ACPI_MEMORY_LIST *, AcpiGbl_GlobalList); ACPI_GLOBAL (ACPI_MEMORY_LIST *, AcpiGbl_NsNodeList); ACPI_GLOBAL (BOOLEAN, AcpiGbl_DisplayFinalMemStats); ACPI_GLOBAL (BOOLEAN, AcpiGbl_DisableMemTracking); ACPI_GLOBAL (BOOLEAN, AcpiGbl_VerboseLeakDump); #endif /***************************************************************************** * * ACPI Namespace * ****************************************************************************/ #define NUM_PREDEFINED_NAMES 10 ACPI_GLOBAL (ACPI_NAMESPACE_NODE, AcpiGbl_RootNodeStruct); ACPI_GLOBAL (ACPI_NAMESPACE_NODE *, AcpiGbl_RootNode); ACPI_GLOBAL (ACPI_NAMESPACE_NODE *, AcpiGbl_FadtGpeDevice); extern const UINT8 AcpiGbl_NsProperties [ACPI_NUM_NS_TYPES]; extern const ACPI_PREDEFINED_NAMES AcpiGbl_PreDefinedNames [NUM_PREDEFINED_NAMES]; #ifdef ACPI_DEBUG_OUTPUT ACPI_GLOBAL (UINT32, AcpiGbl_CurrentNodeCount); ACPI_GLOBAL (UINT32, AcpiGbl_CurrentNodeSize); ACPI_GLOBAL (UINT32, AcpiGbl_MaxConcurrentNodeCount); ACPI_GLOBAL (ACPI_SIZE *, AcpiGbl_EntryStackPointer); ACPI_GLOBAL (ACPI_SIZE *, AcpiGbl_LowestStackPointer); ACPI_GLOBAL (UINT32, AcpiGbl_DeepestNesting); ACPI_INIT_GLOBAL (UINT32, AcpiGbl_NestingLevel, 0); #endif /***************************************************************************** * * Interpreter/Parser globals * ****************************************************************************/ /* Control method single step flag */ ACPI_GLOBAL (UINT8, AcpiGbl_CmSingleStep); ACPI_GLOBAL (ACPI_THREAD_STATE *, AcpiGbl_CurrentWalkList); ACPI_INIT_GLOBAL (ACPI_PARSE_OBJECT, *AcpiGbl_CurrentScope, NULL); /* ASL/ASL+ converter */ ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_CaptureComments, FALSE); ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_LastListHead, NULL); /***************************************************************************** * * Hardware globals * ****************************************************************************/ extern ACPI_BIT_REGISTER_INFO AcpiGbl_BitRegisterInfo[ACPI_NUM_BITREG]; ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeA); ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeB); ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeAS0); ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeBS0); /***************************************************************************** * * Event and GPE globals * ****************************************************************************/ #if (!ACPI_REDUCED_HARDWARE) ACPI_GLOBAL (UINT8, AcpiGbl_AllGpesInitialized); ACPI_GLOBAL (ACPI_GPE_XRUPT_INFO *, AcpiGbl_GpeXruptListHead); ACPI_GLOBAL (ACPI_GPE_BLOCK_INFO *, AcpiGbl_GpeFadtBlocks[ACPI_MAX_GPE_BLOCKS]); ACPI_GLOBAL (ACPI_GBL_EVENT_HANDLER, AcpiGbl_GlobalEventHandler); ACPI_GLOBAL (void *, AcpiGbl_GlobalEventHandlerContext); ACPI_GLOBAL (ACPI_FIXED_EVENT_HANDLER, AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS]); extern ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS]; #endif /* !ACPI_REDUCED_HARDWARE */ /***************************************************************************** * * Debug support * ****************************************************************************/ /* Event counters */ ACPI_GLOBAL (UINT32, AcpiMethodCount); ACPI_GLOBAL (UINT32, AcpiGpeCount); ACPI_GLOBAL (UINT32, AcpiSciCount); ACPI_GLOBAL (UINT32, AcpiFixedEventCount[ACPI_NUM_FIXED_EVENTS]); /* Dynamic control method tracing mechanism */ ACPI_GLOBAL (UINT32, AcpiGbl_OriginalDbgLevel); ACPI_GLOBAL (UINT32, AcpiGbl_OriginalDbgLayer); /***************************************************************************** * * Debugger and Disassembler * ****************************************************************************/ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DbOutputFlags, ACPI_DB_CONSOLE_OUTPUT); #ifdef ACPI_DISASSEMBLER /* Do not disassemble buffers to resource descriptors */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_NoResourceDisassembly, FALSE); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_IgnoreNoopOperator, FALSE); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_CstyleDisassembly, TRUE); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ForceAmlDisassembly, FALSE); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DmOpt_Verbose, TRUE); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DmEmitExternalOpcodes, FALSE); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DoDisassemblerOptimizations, TRUE); ACPI_INIT_GLOBAL (ACPI_PARSE_OBJECT_LIST, *AcpiGbl_TempListHead, NULL); ACPI_GLOBAL (BOOLEAN, AcpiGbl_DmOpt_Disasm); ACPI_GLOBAL (BOOLEAN, AcpiGbl_DmOpt_Listing); ACPI_GLOBAL (BOOLEAN, AcpiGbl_NumExternalMethods); ACPI_GLOBAL (UINT32, AcpiGbl_ResolvedExternalMethods); ACPI_GLOBAL (ACPI_EXTERNAL_LIST *, AcpiGbl_ExternalList); ACPI_GLOBAL (ACPI_EXTERNAL_FILE *, AcpiGbl_ExternalFileList); #endif #ifdef ACPI_DEBUGGER ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_AbortMethod, FALSE); ACPI_INIT_GLOBAL (ACPI_THREAD_ID, AcpiGbl_DbThreadId, ACPI_INVALID_THREAD_ID); ACPI_INIT_GLOBAL (UINT32, AcpiGbl_NextCmdNum, 1); ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoIniMethods); ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoRegionSupport); ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOutputToFile); ACPI_GLOBAL (char *, AcpiGbl_DbBuffer); ACPI_GLOBAL (char *, AcpiGbl_DbFilename); ACPI_GLOBAL (UINT32, AcpiGbl_DbDebugLevel); ACPI_GLOBAL (UINT32, AcpiGbl_DbConsoleDebugLevel); ACPI_GLOBAL (ACPI_NAMESPACE_NODE *, AcpiGbl_DbScopeNode); ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbTerminateLoop); ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbThreadsTerminated); ACPI_GLOBAL (char *, AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS]); ACPI_GLOBAL (ACPI_OBJECT_TYPE, AcpiGbl_DbArgTypes[ACPI_DEBUGGER_MAX_ARGS]); /* These buffers should all be the same size */ ACPI_GLOBAL (char, AcpiGbl_DbParsedBuf[ACPI_DB_LINE_BUFFER_SIZE]); ACPI_GLOBAL (char, AcpiGbl_DbScopeBuf[ACPI_DB_LINE_BUFFER_SIZE]); ACPI_GLOBAL (char, AcpiGbl_DbDebugFilename[ACPI_DB_LINE_BUFFER_SIZE]); /* Statistics globals */ ACPI_GLOBAL (UINT16, AcpiGbl_ObjTypeCount[ACPI_TOTAL_TYPES]); ACPI_GLOBAL (UINT16, AcpiGbl_NodeTypeCount[ACPI_TOTAL_TYPES]); ACPI_GLOBAL (UINT16, AcpiGbl_ObjTypeCountMisc); ACPI_GLOBAL (UINT16, AcpiGbl_NodeTypeCountMisc); ACPI_GLOBAL (UINT32, AcpiGbl_NumNodes); ACPI_GLOBAL (UINT32, AcpiGbl_NumObjects); #endif /* ACPI_DEBUGGER */ #if defined (ACPI_DISASSEMBLER) || defined (ACPI_ASL_COMPILER) ACPI_GLOBAL (const char, *AcpiGbl_PldPanelList[]); ACPI_GLOBAL (const char, *AcpiGbl_PldVerticalPositionList[]); ACPI_GLOBAL (const char, *AcpiGbl_PldHorizontalPositionList[]); ACPI_GLOBAL (const char, *AcpiGbl_PldShapeList[]); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DisasmFlag, FALSE); #endif /***************************************************************************** * * ACPICA application-specific globals * ****************************************************************************/ /* ASL-to-ASL+ conversion utility (implemented within the iASL compiler) */ #ifdef ACPI_ASL_COMPILER ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentInlineComment, NULL); ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentEndNodeComment, NULL); ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentOpenBraceComment, NULL); ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentCloseBraceComment, NULL); ACPI_INIT_GLOBAL (char *, AcpiGbl_RootFilename, NULL); ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentFilename, NULL); ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentParentFilename, NULL); ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentIncludeFilename, NULL); ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_DefBlkCommentListHead, NULL); ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_DefBlkCommentListTail, NULL); ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_RegCommentListHead, NULL); ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_RegCommentListTail, NULL); ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_IncCommentListHead, NULL); ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_IncCommentListTail, NULL); ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_EndBlkCommentListHead, NULL); ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_EndBlkCommentListTail, NULL); ACPI_INIT_GLOBAL (ACPI_COMMENT_ADDR_NODE, *AcpiGbl_CommentAddrListHead, NULL); ACPI_INIT_GLOBAL (ACPI_FILE_NODE, *AcpiGbl_FileTreeRoot, NULL); ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_RegCommentCache); ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_CommentAddrCache); ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_FileCache); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DebugAslConversion, FALSE); ACPI_INIT_GLOBAL (ACPI_FILE, AcpiGbl_ConvDebugFile, NULL); ACPI_GLOBAL (char, AcpiGbl_TableSig[4]); #endif #ifdef ACPI_APPLICATION ACPI_INIT_GLOBAL (ACPI_FILE, AcpiGbl_DebugFile, NULL); ACPI_INIT_GLOBAL (ACPI_FILE, AcpiGbl_OutputFile, NULL); ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DebugTimeout, FALSE); /* Print buffer */ ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_PrintLock); /* For print buffer */ ACPI_GLOBAL (char, AcpiGbl_PrintBuffer[1024]); #endif /* ACPI_APPLICATION */ #endif /* __ACGLOBAL_H__ */ acpica-unix-20250404/source/include/aclocal.h0000775000175000017500000015211014773714133020234 0ustar ivanhuivanhu/****************************************************************************** * * Name: aclocal.h - Internal data types used across the ACPI subsystem * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACLOCAL_H__ #define __ACLOCAL_H__ /* acpisrc:StructDefs -- for acpisrc conversion */ #define ACPI_SERIALIZED 0xFF typedef UINT32 ACPI_MUTEX_HANDLE; #define ACPI_GLOBAL_LOCK (ACPI_SEMAPHORE) (-1) /* Total number of aml opcodes defined */ #define AML_NUM_OPCODES 0x83 /* Forward declarations */ struct acpi_walk_state; struct acpi_obj_mutex; union acpi_parse_object; /***************************************************************************** * * Mutex typedefs and structs * ****************************************************************************/ /* * Predefined handles for the mutex objects used within the subsystem * All mutex objects are automatically created by AcpiUtMutexInitialize. * * The acquire/release ordering protocol is implied via this list. Mutexes * with a lower value must be acquired before mutexes with a higher value. * * NOTE: any changes here must be reflected in the AcpiGbl_MutexNames * table below also! */ #define ACPI_MTX_INTERPRETER 0 /* AML Interpreter, main lock */ #define ACPI_MTX_NAMESPACE 1 /* ACPI Namespace */ #define ACPI_MTX_TABLES 2 /* Data for ACPI tables */ #define ACPI_MTX_EVENTS 3 /* Data for ACPI events */ #define ACPI_MTX_CACHES 4 /* Internal caches, general purposes */ #define ACPI_MTX_MEMORY 5 /* Debug memory tracking lists */ #define ACPI_MAX_MUTEX 5 #define ACPI_NUM_MUTEX (ACPI_MAX_MUTEX+1) /* Lock structure for reader/writer interfaces */ typedef struct acpi_rw_lock { ACPI_MUTEX WriterMutex; ACPI_MUTEX ReaderMutex; UINT32 NumReaders; } ACPI_RW_LOCK; /* * Predefined handles for spinlocks used within the subsystem. * These spinlocks are created by AcpiUtMutexInitialize */ #define ACPI_LOCK_GPES 0 #define ACPI_LOCK_HARDWARE 1 #define ACPI_MAX_LOCK 1 #define ACPI_NUM_LOCK (ACPI_MAX_LOCK+1) /* This Thread ID means that the mutex is not in use (unlocked) */ #define ACPI_MUTEX_NOT_ACQUIRED ((ACPI_THREAD_ID) -1) /* This Thread ID means an invalid thread ID */ #ifdef ACPI_OS_INVALID_THREAD_ID #define ACPI_INVALID_THREAD_ID ACPI_OS_INVALID_THREAD_ID #else #define ACPI_INVALID_THREAD_ID ((ACPI_THREAD_ID) 0xFFFFFFFF) #endif /* Table for the global mutexes */ typedef struct acpi_mutex_info { ACPI_MUTEX Mutex; UINT32 UseCount; ACPI_THREAD_ID ThreadId; } ACPI_MUTEX_INFO; /* Lock flag parameter for various interfaces */ #define ACPI_MTX_DO_NOT_LOCK 0 #define ACPI_MTX_LOCK 1 /* Field access granularities */ #define ACPI_FIELD_BYTE_GRANULARITY 1 #define ACPI_FIELD_WORD_GRANULARITY 2 #define ACPI_FIELD_DWORD_GRANULARITY 4 #define ACPI_FIELD_QWORD_GRANULARITY 8 #define ACPI_ENTRY_NOT_FOUND NULL /***************************************************************************** * * Namespace typedefs and structs * ****************************************************************************/ /* Operational modes of the AML interpreter/scanner */ typedef enum { ACPI_IMODE_LOAD_PASS1 = 0x01, ACPI_IMODE_LOAD_PASS2 = 0x02, ACPI_IMODE_EXECUTE = 0x03 } ACPI_INTERPRETER_MODE; /* * The Namespace Node describes a named object that appears in the AML. * DescriptorType is used to differentiate between internal descriptors. * * The node is optimized for both 32-bit and 64-bit platforms: * 20 bytes for the 32-bit case, 32 bytes for the 64-bit case. * * Note: The DescriptorType and Type fields must appear in the identical * position in both the ACPI_NAMESPACE_NODE and ACPI_OPERAND_OBJECT * structures. */ typedef struct acpi_namespace_node { union acpi_operand_object *Object; /* Interpreter object */ UINT8 DescriptorType; /* Differentiate object descriptor types */ UINT8 Type; /* ACPI Type associated with this name */ UINT16 Flags; /* Miscellaneous flags */ ACPI_NAME_UNION Name; /* ACPI Name, always 4 chars per ACPI spec */ struct acpi_namespace_node *Parent; /* Parent node */ struct acpi_namespace_node *Child; /* First child */ struct acpi_namespace_node *Peer; /* First peer */ ACPI_OWNER_ID OwnerId; /* Node creator */ /* * The following fields are used by the ASL compiler and disassembler only */ #ifdef ACPI_LARGE_NAMESPACE_NODE union acpi_parse_object *Op; void *MethodLocals; void *MethodArgs; UINT32 Value; UINT32 Length; UINT8 ArgCount; #endif } ACPI_NAMESPACE_NODE; /* Namespace Node flags */ #define ANOBJ_RESERVED 0x01 /* Available for use */ #define ANOBJ_TEMPORARY 0x02 /* Node is create by a method and is temporary */ #define ANOBJ_METHOD_ARG 0x04 /* Node is a method argument */ #define ANOBJ_METHOD_LOCAL 0x08 /* Node is a method local */ #define ANOBJ_SUBTREE_HAS_INI 0x10 /* Used to optimize device initialization */ #define ANOBJ_EVALUATED 0x20 /* Set on first evaluation of node */ #define ANOBJ_ALLOCATED_BUFFER 0x40 /* Method AML buffer is dynamic (InstallMethod) */ #define ANOBJ_NODE_EARLY_INIT 0x80 /* AcpiExec only: Node was create via init file (-fi) */ #define ANOBJ_IS_EXTERNAL 0x08 /* iASL only: This object created via External() */ #define ANOBJ_METHOD_NO_RETVAL 0x10 /* iASL only: Method has no return value */ #define ANOBJ_METHOD_SOME_NO_RETVAL 0x20 /* iASL only: Method has at least one return value */ #define ANOBJ_IS_REFERENCED 0x80 /* iASL only: Object was referenced */ /* Internal ACPI table management - master table list */ typedef struct acpi_table_list { ACPI_TABLE_DESC *Tables; /* Table descriptor array */ UINT32 CurrentTableCount; /* Tables currently in the array */ UINT32 MaxTableCount; /* Max tables array will hold */ UINT8 Flags; } ACPI_TABLE_LIST; /* Flags for above */ #define ACPI_ROOT_ORIGIN_UNKNOWN (0) /* ~ORIGIN_ALLOCATED */ #define ACPI_ROOT_ORIGIN_ALLOCATED (1) #define ACPI_ROOT_ALLOW_RESIZE (2) /* List to manage incoming ACPI tables */ typedef struct acpi_new_table_desc { ACPI_TABLE_HEADER *Table; struct acpi_new_table_desc *Next; } ACPI_NEW_TABLE_DESC; /* Predefined table indexes */ #define ACPI_INVALID_TABLE_INDEX (0xFFFFFFFF) typedef struct acpi_find_context { char *SearchFor; ACPI_HANDLE *List; UINT32 *Count; } ACPI_FIND_CONTEXT; typedef struct acpi_ns_search_data { ACPI_NAMESPACE_NODE *Node; } ACPI_NS_SEARCH_DATA; /* Object types used during package copies */ #define ACPI_COPY_TYPE_SIMPLE 0 #define ACPI_COPY_TYPE_PACKAGE 1 /* Info structure used to convert external<->internal namestrings */ typedef struct acpi_namestring_info { const char *ExternalName; const char *NextExternalChar; char *InternalName; UINT32 Length; UINT32 NumSegments; UINT32 NumCarats; BOOLEAN FullyQualified; } ACPI_NAMESTRING_INFO; /* Field creation info */ typedef struct acpi_create_field_info { ACPI_NAMESPACE_NODE *RegionNode; ACPI_NAMESPACE_NODE *FieldNode; ACPI_NAMESPACE_NODE *RegisterNode; ACPI_NAMESPACE_NODE *DataRegisterNode; ACPI_NAMESPACE_NODE *ConnectionNode; UINT8 *ResourceBuffer; UINT32 BankValue; UINT32 FieldBitPosition; UINT32 FieldBitLength; UINT16 ResourceLength; UINT16 PinNumberIndex; UINT8 FieldFlags; UINT8 Attribute; UINT8 FieldType; UINT8 AccessLength; } ACPI_CREATE_FIELD_INFO; typedef ACPI_STATUS (*ACPI_INTERNAL_METHOD) ( struct acpi_walk_state *WalkState); /* * Bitmapped ACPI types. Used internally only */ #define ACPI_BTYPE_ANY 0x00000000 #define ACPI_BTYPE_INTEGER 0x00000001 #define ACPI_BTYPE_STRING 0x00000002 #define ACPI_BTYPE_BUFFER 0x00000004 #define ACPI_BTYPE_PACKAGE 0x00000008 #define ACPI_BTYPE_FIELD_UNIT 0x00000010 #define ACPI_BTYPE_DEVICE 0x00000020 #define ACPI_BTYPE_EVENT 0x00000040 #define ACPI_BTYPE_METHOD 0x00000080 #define ACPI_BTYPE_MUTEX 0x00000100 #define ACPI_BTYPE_REGION 0x00000200 #define ACPI_BTYPE_POWER 0x00000400 #define ACPI_BTYPE_PROCESSOR 0x00000800 #define ACPI_BTYPE_THERMAL 0x00001000 #define ACPI_BTYPE_BUFFER_FIELD 0x00002000 #define ACPI_BTYPE_DDB_HANDLE 0x00004000 #define ACPI_BTYPE_DEBUG_OBJECT 0x00008000 #define ACPI_BTYPE_REFERENCE_OBJECT 0x00010000 /* From Index(), RefOf(), etc (Type6Opcodes) */ #define ACPI_BTYPE_RESOURCE 0x00020000 #define ACPI_BTYPE_NAMED_REFERENCE 0x00040000 /* Generic unresolved Name or Namepath */ #define ACPI_BTYPE_COMPUTE_DATA (ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING | ACPI_BTYPE_BUFFER) #define ACPI_BTYPE_DATA (ACPI_BTYPE_COMPUTE_DATA | ACPI_BTYPE_PACKAGE) /* Used by Copy, DeRefOf, Store, Printf, Fprintf */ #define ACPI_BTYPE_DATA_REFERENCE (ACPI_BTYPE_DATA | ACPI_BTYPE_REFERENCE_OBJECT | ACPI_BTYPE_DDB_HANDLE) #define ACPI_BTYPE_DEVICE_OBJECTS (ACPI_BTYPE_DEVICE | ACPI_BTYPE_THERMAL | ACPI_BTYPE_PROCESSOR) #define ACPI_BTYPE_OBJECTS_AND_REFS 0x0001FFFF /* ARG or LOCAL */ #define ACPI_BTYPE_ALL_OBJECTS 0x0000FFFF #pragma pack(1) /* * Information structure for ACPI predefined names. * Each entry in the table contains the following items: * * Name - The ACPI reserved name * ParamCount - Number of arguments to the method * ExpectedReturnBtypes - Allowed type(s) for the return value */ typedef struct acpi_name_info { char Name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; UINT16 ArgumentList; UINT8 ExpectedBtypes; } ACPI_NAME_INFO; /* * Secondary information structures for ACPI predefined objects that return * package objects. This structure appears as the next entry in the table * after the NAME_INFO structure above. * * The reason for this is to minimize the size of the predefined name table. */ /* * Used for ACPI_PTYPE1_FIXED, ACPI_PTYPE1_VAR, ACPI_PTYPE2, * ACPI_PTYPE2_MIN, ACPI_PTYPE2_PKG_COUNT, ACPI_PTYPE2_COUNT, * ACPI_PTYPE2_FIX_VAR */ typedef struct acpi_package_info { UINT8 Type; UINT8 ObjectType1; UINT8 Count1; UINT8 ObjectType2; UINT8 Count2; UINT16 Reserved; } ACPI_PACKAGE_INFO; /* Used for ACPI_PTYPE2_FIXED */ typedef struct acpi_package_info2 { UINT8 Type; UINT8 Count; UINT8 ObjectType[4]; UINT8 Reserved; } ACPI_PACKAGE_INFO2; /* Used for ACPI_PTYPE1_OPTION */ typedef struct acpi_package_info3 { UINT8 Type; UINT8 Count; UINT8 ObjectType[2]; UINT8 TailObjectType; UINT16 Reserved; } ACPI_PACKAGE_INFO3; typedef struct acpi_package_info4 { UINT8 Type; UINT8 ObjectType1; UINT8 Count1; UINT8 SubObjectTypes; UINT8 PkgCount; UINT16 Reserved; } ACPI_PACKAGE_INFO4; typedef union acpi_predefined_info { ACPI_NAME_INFO Info; ACPI_PACKAGE_INFO RetInfo; ACPI_PACKAGE_INFO2 RetInfo2; ACPI_PACKAGE_INFO3 RetInfo3; ACPI_PACKAGE_INFO4 RetInfo4; } ACPI_PREDEFINED_INFO; /* Reset to default packing */ #pragma pack() /* Return object auto-repair info */ typedef ACPI_STATUS (*ACPI_OBJECT_CONVERTER) ( struct acpi_namespace_node *Scope, union acpi_operand_object *OriginalObject, union acpi_operand_object **ConvertedObject); typedef struct acpi_simple_repair_info { char Name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; UINT32 UnexpectedBtypes; UINT32 PackageIndex; ACPI_OBJECT_CONVERTER ObjectConverter; } ACPI_SIMPLE_REPAIR_INFO; /* * Bitmapped return value types * Note: the actual data types must be contiguous, a loop in nspredef.c * depends on this. */ #define ACPI_RTYPE_ANY 0x00 #define ACPI_RTYPE_NONE 0x01 #define ACPI_RTYPE_INTEGER 0x02 #define ACPI_RTYPE_STRING 0x04 #define ACPI_RTYPE_BUFFER 0x08 #define ACPI_RTYPE_PACKAGE 0x10 #define ACPI_RTYPE_REFERENCE 0x20 #define ACPI_RTYPE_ALL 0x3F #define ACPI_NUM_RTYPES 5 /* Number of actual object types */ /* Info for running the _REG methods */ typedef struct acpi_reg_walk_info { UINT32 Function; UINT32 RegRunCount; ACPI_ADR_SPACE_TYPE SpaceId; } ACPI_REG_WALK_INFO; /***************************************************************************** * * Event typedefs and structs * ****************************************************************************/ /* Dispatch info for each host-installed SCI handler */ typedef struct acpi_sci_handler_info { struct acpi_sci_handler_info *Next; ACPI_SCI_HANDLER Address; /* Address of handler */ void *Context; /* Context to be passed to handler */ } ACPI_SCI_HANDLER_INFO; /* Dispatch info for each GPE -- either a method or handler, cannot be both */ typedef struct acpi_gpe_handler_info { ACPI_GPE_HANDLER Address; /* Address of handler, if any */ void *Context; /* Context to be passed to handler */ ACPI_NAMESPACE_NODE *MethodNode; /* Method node for this GPE level (saved) */ UINT8 OriginalFlags; /* Original (pre-handler) GPE info */ BOOLEAN OriginallyEnabled; /* True if GPE was originally enabled */ } ACPI_GPE_HANDLER_INFO; /* Notify info for implicit notify, multiple device objects */ typedef struct acpi_gpe_notify_info { ACPI_NAMESPACE_NODE *DeviceNode; /* Device to be notified */ struct acpi_gpe_notify_info *Next; } ACPI_GPE_NOTIFY_INFO; /* * GPE dispatch info. At any time, the GPE can have at most one type * of dispatch - Method, Handler, or Implicit Notify. */ typedef union acpi_gpe_dispatch_info { ACPI_NAMESPACE_NODE *MethodNode; /* Method node for this GPE level */ ACPI_GPE_HANDLER_INFO *Handler; /* Installed GPE handler */ ACPI_GPE_NOTIFY_INFO *NotifyList; /* List of _PRW devices for implicit notifies */ } ACPI_GPE_DISPATCH_INFO; /* * Information about a GPE, one per each GPE in an array. * NOTE: Important to keep this struct as small as possible. */ typedef struct acpi_gpe_event_info { union acpi_gpe_dispatch_info Dispatch; /* Either Method, Handler, or NotifyList */ struct acpi_gpe_register_info *RegisterInfo; /* Backpointer to register info */ UINT8 Flags; /* Misc info about this GPE */ UINT8 GpeNumber; /* This GPE */ UINT8 RuntimeCount; /* References to a run GPE */ BOOLEAN DisableForDispatch; /* Masked during dispatching */ } ACPI_GPE_EVENT_INFO; /* Information about a GPE register pair, one per each status/enable pair in an array */ typedef struct acpi_gpe_register_info { ACPI_GENERIC_ADDRESS StatusAddress; /* Address of status reg */ ACPI_GENERIC_ADDRESS EnableAddress; /* Address of enable reg */ UINT16 BaseGpeNumber; /* Base GPE number for this register */ UINT8 EnableForWake; /* GPEs to keep enabled when sleeping */ UINT8 EnableForRun; /* GPEs to keep enabled when running */ UINT8 MaskForRun; /* GPEs to keep masked when running */ UINT8 EnableMask; /* Current mask of enabled GPEs */ } ACPI_GPE_REGISTER_INFO; /* * Information about a GPE register block, one per each installed block -- * GPE0, GPE1, and one per each installed GPE Block Device. */ typedef struct acpi_gpe_block_info { ACPI_NAMESPACE_NODE *Node; struct acpi_gpe_block_info *Previous; struct acpi_gpe_block_info *Next; struct acpi_gpe_xrupt_info *XruptBlock; /* Backpointer to interrupt block */ ACPI_GPE_REGISTER_INFO *RegisterInfo; /* One per GPE register pair */ ACPI_GPE_EVENT_INFO *EventInfo; /* One for each GPE */ UINT64 Address; /* Base address of the block */ UINT32 RegisterCount; /* Number of register pairs in block */ UINT16 GpeCount; /* Number of individual GPEs in block */ UINT16 BlockBaseNumber;/* Base GPE number for this block */ UINT8 SpaceId; BOOLEAN Initialized; /* TRUE if this block is initialized */ } ACPI_GPE_BLOCK_INFO; /* Information about GPE interrupt handlers, one per each interrupt level used for GPEs */ typedef struct acpi_gpe_xrupt_info { struct acpi_gpe_xrupt_info *Previous; struct acpi_gpe_xrupt_info *Next; ACPI_GPE_BLOCK_INFO *GpeBlockListHead; /* List of GPE blocks for this xrupt */ UINT32 InterruptNumber; /* System interrupt number */ } ACPI_GPE_XRUPT_INFO; typedef struct acpi_gpe_walk_info { ACPI_NAMESPACE_NODE *GpeDevice; ACPI_GPE_BLOCK_INFO *GpeBlock; UINT16 Count; ACPI_OWNER_ID OwnerId; BOOLEAN ExecuteByOwnerId; } ACPI_GPE_WALK_INFO; typedef struct acpi_gpe_device_info { UINT32 Index; UINT32 NextBlockBaseIndex; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *GpeDevice; } ACPI_GPE_DEVICE_INFO; typedef ACPI_STATUS (*ACPI_GPE_CALLBACK) ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context); /* Information about each particular fixed event */ typedef struct acpi_fixed_event_handler { ACPI_EVENT_HANDLER Handler; /* Address of handler. */ void *Context; /* Context to be passed to handler */ } ACPI_FIXED_EVENT_HANDLER; typedef struct acpi_fixed_event_info { UINT8 StatusRegisterId; UINT8 EnableRegisterId; UINT16 StatusBitMask; UINT16 EnableBitMask; } ACPI_FIXED_EVENT_INFO; /* Information used during field processing */ typedef struct acpi_field_info { UINT8 SkipField; UINT8 FieldFlag; UINT32 PkgLength; } ACPI_FIELD_INFO; /* Information about the interrupt ID and _EVT of a GED device */ typedef struct acpi_ged_handler_info { struct acpi_ged_handler_info *Next; UINT32 IntId; /* The interrupt ID that triggers the execution of the EvtMethod. */ ACPI_NAMESPACE_NODE *EvtMethod; /* The _EVT method to be executed when an interrupt with ID = IntID is received */ } ACPI_GED_HANDLER_INFO; /***************************************************************************** * * Generic "state" object for stacks * ****************************************************************************/ #define ACPI_CONTROL_NORMAL 0xC0 #define ACPI_CONTROL_CONDITIONAL_EXECUTING 0xC1 #define ACPI_CONTROL_PREDICATE_EXECUTING 0xC2 #define ACPI_CONTROL_PREDICATE_FALSE 0xC3 #define ACPI_CONTROL_PREDICATE_TRUE 0xC4 #define ACPI_STATE_COMMON \ void *Next; \ UINT8 DescriptorType; /* To differentiate various internal objs */\ UINT8 Flags; \ UINT16 Value; \ UINT16 State /* There are 2 bytes available here until the next natural alignment boundary */ typedef struct acpi_common_state { ACPI_STATE_COMMON; } ACPI_COMMON_STATE; /* * Update state - used to traverse complex objects such as packages */ typedef struct acpi_update_state { ACPI_STATE_COMMON; union acpi_operand_object *Object; } ACPI_UPDATE_STATE; /* * Pkg state - used to traverse nested package structures */ typedef struct acpi_pkg_state { ACPI_STATE_COMMON; UINT32 Index; union acpi_operand_object *SourceObject; union acpi_operand_object *DestObject; struct acpi_walk_state *WalkState; void *ThisTargetObj; UINT32 NumPackages; } ACPI_PKG_STATE; /* * Control state - one per if/else and while constructs. * Allows nesting of these constructs */ typedef struct acpi_control_state { ACPI_STATE_COMMON; UINT16 Opcode; union acpi_parse_object *PredicateOp; UINT8 *AmlPredicateStart; /* Start of if/while predicate */ UINT8 *PackageEnd; /* End of if/while block */ UINT64 LoopTimeout; /* While() loop timeout */ } ACPI_CONTROL_STATE; /* * Scope state - current scope during namespace lookups */ typedef struct acpi_scope_state { ACPI_STATE_COMMON; ACPI_NAMESPACE_NODE *Node; } ACPI_SCOPE_STATE; typedef struct acpi_pscope_state { ACPI_STATE_COMMON; UINT32 ArgCount; /* Number of fixed arguments */ union acpi_parse_object *Op; /* Current op being parsed */ UINT8 *ArgEnd; /* Current argument end */ UINT8 *PkgEnd; /* Current package end */ UINT32 ArgList; /* Next argument to parse */ } ACPI_PSCOPE_STATE; /* * Thread state - one per thread across multiple walk states. Multiple walk * states are created when there are nested control methods executing. */ typedef struct acpi_thread_state { ACPI_STATE_COMMON; UINT8 CurrentSyncLevel; /* Mutex Sync (nested acquire) level */ struct acpi_walk_state *WalkStateList; /* Head of list of WalkStates for this thread */ union acpi_operand_object *AcquiredMutexList; /* List of all currently acquired mutexes */ ACPI_THREAD_ID ThreadId; /* Running thread ID */ } ACPI_THREAD_STATE; /* * Result values - used to accumulate the results of nested * AML arguments */ typedef struct acpi_result_values { ACPI_STATE_COMMON; union acpi_operand_object *ObjDesc [ACPI_RESULTS_FRAME_OBJ_NUM]; } ACPI_RESULT_VALUES; typedef ACPI_STATUS (*ACPI_PARSE_DOWNWARDS) ( struct acpi_walk_state *WalkState, union acpi_parse_object **OutOp); typedef ACPI_STATUS (*ACPI_PARSE_UPWARDS) ( struct acpi_walk_state *WalkState); /* Global handlers for AML Notifies */ typedef struct acpi_global_notify_handler { ACPI_NOTIFY_HANDLER Handler; void *Context; } ACPI_GLOBAL_NOTIFY_HANDLER; /* * Notify info - used to pass info to the deferred notify * handler/dispatcher. */ typedef struct acpi_notify_info { ACPI_STATE_COMMON; UINT8 HandlerListId; ACPI_NAMESPACE_NODE *Node; union acpi_operand_object *HandlerListHead; ACPI_GLOBAL_NOTIFY_HANDLER *Global; } ACPI_NOTIFY_INFO; /* Generic state is union of structs above */ typedef union acpi_generic_state { ACPI_COMMON_STATE Common; ACPI_CONTROL_STATE Control; ACPI_UPDATE_STATE Update; ACPI_SCOPE_STATE Scope; ACPI_PSCOPE_STATE ParseScope; ACPI_PKG_STATE Pkg; ACPI_THREAD_STATE Thread; ACPI_RESULT_VALUES Results; ACPI_NOTIFY_INFO Notify; } ACPI_GENERIC_STATE; /***************************************************************************** * * Interpreter typedefs and structs * ****************************************************************************/ typedef ACPI_STATUS (*ACPI_EXECUTE_OP) ( struct acpi_walk_state *WalkState); /* Address Range info block */ typedef struct acpi_address_range { struct acpi_address_range *Next; ACPI_NAMESPACE_NODE *RegionNode; ACPI_PHYSICAL_ADDRESS StartAddress; ACPI_PHYSICAL_ADDRESS EndAddress; } ACPI_ADDRESS_RANGE; /***************************************************************************** * * Parser typedefs and structs * ****************************************************************************/ /* * AML opcode, name, and argument layout */ typedef struct acpi_opcode_info { #if defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUG_OUTPUT) char *Name; /* Opcode name (disassembler/debug only) */ #endif UINT32 ParseArgs; /* Grammar/Parse time arguments */ UINT32 RuntimeArgs; /* Interpret time arguments */ UINT16 Flags; /* Misc flags */ UINT8 ObjectType; /* Corresponding internal object type */ UINT8 Class; /* Opcode class */ UINT8 Type; /* Opcode type */ } ACPI_OPCODE_INFO; /* Structure for Resource Tag information */ typedef struct acpi_tag_info { UINT32 BitOffset; UINT32 BitLength; } ACPI_TAG_INFO; /* Value associated with the parse object */ typedef union acpi_parse_value { UINT64 Integer; /* Integer constant (Up to 64 bits) */ UINT32 Size; /* bytelist or field size */ char *String; /* NULL terminated string */ UINT8 *Buffer; /* buffer or string */ char *Name; /* NULL terminated string */ union acpi_parse_object *Arg; /* arguments and contained ops */ ACPI_TAG_INFO Tag; /* Resource descriptor tag info */ } ACPI_PARSE_VALUE; #if defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUG_OUTPUT) #define ACPI_DISASM_ONLY_MEMBERS(a) a; #else #define ACPI_DISASM_ONLY_MEMBERS(a) #endif #if defined(ACPI_ASL_COMPILER) #define ACPI_CONVERTER_ONLY_MEMBERS(a) a; #else #define ACPI_CONVERTER_ONLY_MEMBERS(a) #endif #define ACPI_PARSE_COMMON \ union acpi_parse_object *Parent; /* Parent op */\ UINT8 DescriptorType; /* To differentiate various internal objs */\ UINT8 Flags; /* Type of Op */\ UINT16 AmlOpcode; /* AML opcode */\ UINT8 *Aml; /* Address of declaration in AML */\ union acpi_parse_object *Next; /* Next op */\ ACPI_NAMESPACE_NODE *Node; /* For use by interpreter */\ ACPI_PARSE_VALUE Value; /* Value or args associated with the opcode */\ UINT8 ArgListLength; /* Number of elements in the arg list */\ ACPI_DISASM_ONLY_MEMBERS (\ UINT16 DisasmFlags; /* Used during AML disassembly */\ UINT8 DisasmOpcode; /* Subtype used for disassembly */\ char *OperatorSymbol; /* Used for C-style operator name strings */\ char AmlOpName[16]) /* Op name (debug only) */\ ACPI_CONVERTER_ONLY_MEMBERS (\ char *InlineComment; /* Inline comment */\ char *EndNodeComment; /* End of node comment */\ char *NameComment; /* Comment associated with the first parameter of the name node */\ char *CloseBraceComment; /* Comments that come after } on the same as } */\ ACPI_COMMENT_NODE *CommentList; /* comments that appears before this node */\ ACPI_COMMENT_NODE *EndBlkComment; /* comments that at the end of a block but before ) or } */\ char *CvFilename; /* Filename associated with this node. Used for ASL/ASL+ converter */\ char *CvParentFilename) /* Parent filename associated with this node. Used for ASL/ASL+ converter */ /* categories of comments */ typedef enum { STANDARD_COMMENT = 1, INLINE_COMMENT, ENDNODE_COMMENT, OPENBRACE_COMMENT, CLOSE_BRACE_COMMENT, STD_DEFBLK_COMMENT, END_DEFBLK_COMMENT, FILENAME_COMMENT, PARENTFILENAME_COMMENT, ENDBLK_COMMENT, INCLUDE_COMMENT } ASL_COMMENT_TYPES; /* Internal opcodes for DisasmOpcode field above */ #define ACPI_DASM_BUFFER 0x00 /* Buffer is a simple data buffer */ #define ACPI_DASM_RESOURCE 0x01 /* Buffer is a Resource Descriptor */ #define ACPI_DASM_STRING 0x02 /* Buffer is a ASCII string */ #define ACPI_DASM_UNICODE 0x03 /* Buffer is a Unicode string */ #define ACPI_DASM_PLD_METHOD 0x04 /* Buffer is a _PLD method bit-packed buffer */ #define ACPI_DASM_UUID 0x05 /* Buffer is a UUID/GUID */ #define ACPI_DASM_EISAID 0x06 /* Integer is an EISAID */ #define ACPI_DASM_MATCHOP 0x07 /* Parent opcode is a Match() operator */ #define ACPI_DASM_LNOT_PREFIX 0x08 /* Start of a LNotEqual (etc.) pair of opcodes */ #define ACPI_DASM_LNOT_SUFFIX 0x09 /* End of a LNotEqual (etc.) pair of opcodes */ #define ACPI_DASM_HID_STRING 0x0A /* String is a _HID or _CID */ #define ACPI_DASM_IGNORE_SINGLE 0x0B /* Ignore the opcode but not it's children */ #define ACPI_DASM_SWITCH 0x0C /* While is a Switch */ #define ACPI_DASM_SWITCH_PREDICATE 0x0D /* Object is a predicate for a Switch or Case block */ #define ACPI_DASM_CASE 0x0E /* If/Else is a Case in a Switch/Case block */ #define ACPI_DASM_DEFAULT 0x0F /* Else is a Default in a Switch/Case block */ /* * List struct used in the -ca option */ typedef struct acpi_comment_node { char *Comment; struct acpi_comment_node *Next; } ACPI_COMMENT_NODE; typedef struct acpi_comment_addr_node { UINT8 *Addr; struct acpi_comment_addr_node *Next; } ACPI_COMMENT_ADDR_NODE; /* * File node - used for "Include" operator file stack and * dependency tree for the -ca option */ typedef struct acpi_file_node { void *File; char *Filename; char *FileStart; /* Points to AML and indicates when the AML for this particular file starts. */ char *FileEnd; /* Points to AML and indicates when the AML for this particular file ends. */ struct acpi_file_node *Next; struct acpi_file_node *Parent; BOOLEAN IncludeWritten; ACPI_COMMENT_NODE *IncludeComment; } ACPI_FILE_NODE; /* * Generic operation (for example: If, While, Store) */ typedef struct acpi_parse_obj_common { ACPI_PARSE_COMMON } ACPI_PARSE_OBJ_COMMON; /* * Extended Op for named ops (Scope, Method, etc.), deferred ops (Methods and OpRegions), * and bytelists. */ typedef struct acpi_parse_obj_named { ACPI_PARSE_COMMON char *Path; UINT8 *Data; /* AML body or bytelist data */ UINT32 Length; /* AML length */ UINT32 Name; /* 4-byte name or zero if no name */ } ACPI_PARSE_OBJ_NAMED; /* This version is used by the iASL compiler only */ #define ACPI_MAX_PARSEOP_NAME 20 typedef struct acpi_parse_obj_asl { ACPI_PARSE_COMMON union acpi_parse_object *Child; union acpi_parse_object *ParentMethod; char *Filename; BOOLEAN FileChanged; char *ParentFilename; char *ExternalName; char *Namepath; char NameSeg[4]; UINT32 ExtraValue; UINT32 Column; UINT32 LineNumber; UINT32 LogicalLineNumber; UINT32 LogicalByteOffset; UINT32 EndLine; UINT32 EndLogicalLine; UINT32 AcpiBtype; UINT32 AmlLength; UINT32 AmlSubtreeLength; UINT32 FinalAmlLength; UINT32 FinalAmlOffset; UINT32 CompileFlags; UINT16 ParseOpcode; UINT8 AmlOpcodeLength; UINT8 AmlPkgLenBytes; UINT8 Extra; char ParseOpName[ACPI_MAX_PARSEOP_NAME]; } ACPI_PARSE_OBJ_ASL; typedef union acpi_parse_object { ACPI_PARSE_OBJ_COMMON Common; ACPI_PARSE_OBJ_NAMED Named; ACPI_PARSE_OBJ_ASL Asl; } ACPI_PARSE_OBJECT; typedef struct asl_comment_state { UINT8 CommentType; UINT32 SpacesBefore; ACPI_PARSE_OBJECT *LatestParseOp; ACPI_PARSE_OBJECT *ParsingParenBraceNode; BOOLEAN CaptureComments; } ASL_COMMENT_STATE; /* * Parse state - one state per parser invocation and each control * method. */ typedef struct acpi_parse_state { UINT8 *AmlStart; /* First AML byte */ UINT8 *Aml; /* Next AML byte */ UINT8 *AmlEnd; /* (last + 1) AML byte */ UINT8 *PkgStart; /* Current package begin */ UINT8 *PkgEnd; /* Current package end */ union acpi_parse_object *StartOp; /* Root of parse tree */ struct acpi_namespace_node *StartNode; union acpi_generic_state *Scope; /* Current scope */ union acpi_parse_object *StartScope; UINT32 AmlSize; } ACPI_PARSE_STATE; /* Parse object flags */ #define ACPI_PARSEOP_GENERIC 0x01 #define ACPI_PARSEOP_NAMED_OBJECT 0x02 #define ACPI_PARSEOP_DEFERRED 0x04 #define ACPI_PARSEOP_BYTELIST 0x08 #define ACPI_PARSEOP_IN_STACK 0x10 #define ACPI_PARSEOP_TARGET 0x20 #define ACPI_PARSEOP_IN_CACHE 0x80 /* Parse object DisasmFlags */ #define ACPI_PARSEOP_IGNORE 0x0001 #define ACPI_PARSEOP_PARAMETER_LIST 0x0002 #define ACPI_PARSEOP_EMPTY_TERMLIST 0x0004 #define ACPI_PARSEOP_PREDEFINED_CHECKED 0x0008 #define ACPI_PARSEOP_CLOSING_PAREN 0x0010 #define ACPI_PARSEOP_COMPOUND_ASSIGNMENT 0x0020 #define ACPI_PARSEOP_ASSIGNMENT 0x0040 #define ACPI_PARSEOP_ELSEIF 0x0080 #define ACPI_PARSEOP_LEGACY_ASL_ONLY 0x0100 /***************************************************************************** * * Hardware (ACPI registers) and PNP * ****************************************************************************/ typedef struct acpi_bit_register_info { UINT8 ParentRegister; UINT8 BitPosition; UINT16 AccessBitMask; } ACPI_BIT_REGISTER_INFO; /* * Some ACPI registers have bits that must be ignored -- meaning that they * must be preserved. */ #define ACPI_PM1_STATUS_PRESERVED_BITS 0x0800 /* Bit 11 */ /* Write-only bits must be zeroed by software */ #define ACPI_PM1_CONTROL_WRITEONLY_BITS 0x2004 /* Bits 13, 2 */ /* For control registers, both ignored and reserved bits must be preserved */ /* * For PM1 control, the SCI enable bit (bit 0, SCI_EN) is defined by the * ACPI specification to be a "preserved" bit - "OSPM always preserves this * bit position", section 4.7.3.2.1. However, on some machines the OS must * write a one to this bit after resume for the machine to work properly. * To enable this, we no longer attempt to preserve this bit. No machines * are known to fail if the bit is not preserved. (May 2009) */ #define ACPI_PM1_CONTROL_IGNORED_BITS 0x0200 /* Bit 9 */ #define ACPI_PM1_CONTROL_RESERVED_BITS 0xC1F8 /* Bits 14-15, 3-8 */ #define ACPI_PM1_CONTROL_PRESERVED_BITS \ (ACPI_PM1_CONTROL_IGNORED_BITS | ACPI_PM1_CONTROL_RESERVED_BITS) #define ACPI_PM2_CONTROL_PRESERVED_BITS 0xFFFFFFFE /* All except bit 0 */ /* * Register IDs * These are the full ACPI registers */ #define ACPI_REGISTER_PM1_STATUS 0x01 #define ACPI_REGISTER_PM1_ENABLE 0x02 #define ACPI_REGISTER_PM1_CONTROL 0x03 #define ACPI_REGISTER_PM2_CONTROL 0x04 #define ACPI_REGISTER_PM_TIMER 0x05 #define ACPI_REGISTER_PROCESSOR_BLOCK 0x06 #define ACPI_REGISTER_SMI_COMMAND_BLOCK 0x07 /* Masks used to access the BitRegisters */ #define ACPI_BITMASK_TIMER_STATUS 0x0001 #define ACPI_BITMASK_BUS_MASTER_STATUS 0x0010 #define ACPI_BITMASK_GLOBAL_LOCK_STATUS 0x0020 #define ACPI_BITMASK_POWER_BUTTON_STATUS 0x0100 #define ACPI_BITMASK_SLEEP_BUTTON_STATUS 0x0200 #define ACPI_BITMASK_RT_CLOCK_STATUS 0x0400 #define ACPI_BITMASK_PCIEXP_WAKE_STATUS 0x4000 /* ACPI 3.0 */ #define ACPI_BITMASK_WAKE_STATUS 0x8000 #define ACPI_BITMASK_ALL_FIXED_STATUS (\ ACPI_BITMASK_TIMER_STATUS | \ ACPI_BITMASK_BUS_MASTER_STATUS | \ ACPI_BITMASK_GLOBAL_LOCK_STATUS | \ ACPI_BITMASK_POWER_BUTTON_STATUS | \ ACPI_BITMASK_SLEEP_BUTTON_STATUS | \ ACPI_BITMASK_RT_CLOCK_STATUS | \ ACPI_BITMASK_PCIEXP_WAKE_STATUS | \ ACPI_BITMASK_WAKE_STATUS) #define ACPI_BITMASK_TIMER_ENABLE 0x0001 #define ACPI_BITMASK_GLOBAL_LOCK_ENABLE 0x0020 #define ACPI_BITMASK_POWER_BUTTON_ENABLE 0x0100 #define ACPI_BITMASK_SLEEP_BUTTON_ENABLE 0x0200 #define ACPI_BITMASK_RT_CLOCK_ENABLE 0x0400 #define ACPI_BITMASK_PCIEXP_WAKE_DISABLE 0x4000 /* ACPI 3.0 */ #define ACPI_BITMASK_SCI_ENABLE 0x0001 #define ACPI_BITMASK_BUS_MASTER_RLD 0x0002 #define ACPI_BITMASK_GLOBAL_LOCK_RELEASE 0x0004 #define ACPI_BITMASK_SLEEP_TYPE 0x1C00 #define ACPI_BITMASK_SLEEP_ENABLE 0x2000 #define ACPI_BITMASK_ARB_DISABLE 0x0001 /* Raw bit position of each BitRegister */ #define ACPI_BITPOSITION_TIMER_STATUS 0x00 #define ACPI_BITPOSITION_BUS_MASTER_STATUS 0x04 #define ACPI_BITPOSITION_GLOBAL_LOCK_STATUS 0x05 #define ACPI_BITPOSITION_POWER_BUTTON_STATUS 0x08 #define ACPI_BITPOSITION_SLEEP_BUTTON_STATUS 0x09 #define ACPI_BITPOSITION_RT_CLOCK_STATUS 0x0A #define ACPI_BITPOSITION_PCIEXP_WAKE_STATUS 0x0E /* ACPI 3.0 */ #define ACPI_BITPOSITION_WAKE_STATUS 0x0F #define ACPI_BITPOSITION_TIMER_ENABLE 0x00 #define ACPI_BITPOSITION_GLOBAL_LOCK_ENABLE 0x05 #define ACPI_BITPOSITION_POWER_BUTTON_ENABLE 0x08 #define ACPI_BITPOSITION_SLEEP_BUTTON_ENABLE 0x09 #define ACPI_BITPOSITION_RT_CLOCK_ENABLE 0x0A #define ACPI_BITPOSITION_PCIEXP_WAKE_DISABLE 0x0E /* ACPI 3.0 */ #define ACPI_BITPOSITION_SCI_ENABLE 0x00 #define ACPI_BITPOSITION_BUS_MASTER_RLD 0x01 #define ACPI_BITPOSITION_GLOBAL_LOCK_RELEASE 0x02 #define ACPI_BITPOSITION_SLEEP_TYPE 0x0A #define ACPI_BITPOSITION_SLEEP_ENABLE 0x0D #define ACPI_BITPOSITION_ARB_DISABLE 0x00 /* Structs and definitions for _OSI support and I/O port validation */ #define ACPI_ALWAYS_ILLEGAL 0x00 typedef struct acpi_interface_info { char *Name; struct acpi_interface_info *Next; UINT8 Flags; UINT8 Value; } ACPI_INTERFACE_INFO; #define ACPI_OSI_INVALID 0x01 #define ACPI_OSI_DYNAMIC 0x02 #define ACPI_OSI_FEATURE 0x04 #define ACPI_OSI_DEFAULT_INVALID 0x08 #define ACPI_OSI_OPTIONAL_FEATURE (ACPI_OSI_FEATURE | ACPI_OSI_DEFAULT_INVALID | ACPI_OSI_INVALID) typedef struct acpi_port_info { char *Name; UINT16 Start; UINT16 End; UINT8 OsiDependency; } ACPI_PORT_INFO; /***************************************************************************** * * Resource descriptors * ****************************************************************************/ /* ResourceType values */ #define ACPI_ADDRESS_TYPE_MEMORY_RANGE 0 #define ACPI_ADDRESS_TYPE_IO_RANGE 1 #define ACPI_ADDRESS_TYPE_BUS_NUMBER_RANGE 2 #define ACPI_ADDRESS_TYPE_PCC_NUMBER 0xA /* Resource descriptor types and masks */ #define ACPI_RESOURCE_NAME_LARGE 0x80 #define ACPI_RESOURCE_NAME_SMALL 0x00 #define ACPI_RESOURCE_NAME_SMALL_MASK 0x78 /* Bits 6:3 contain the type */ #define ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK 0x07 /* Bits 2:0 contain the length */ #define ACPI_RESOURCE_NAME_LARGE_MASK 0x7F /* Bits 6:0 contain the type */ /* * Small resource descriptor "names" as defined by the ACPI specification. * Note: Bits 2:0 are used for the descriptor length */ #define ACPI_RESOURCE_NAME_IRQ 0x20 #define ACPI_RESOURCE_NAME_DMA 0x28 #define ACPI_RESOURCE_NAME_START_DEPENDENT 0x30 #define ACPI_RESOURCE_NAME_END_DEPENDENT 0x38 #define ACPI_RESOURCE_NAME_IO 0x40 #define ACPI_RESOURCE_NAME_FIXED_IO 0x48 #define ACPI_RESOURCE_NAME_FIXED_DMA 0x50 #define ACPI_RESOURCE_NAME_RESERVED_S2 0x58 #define ACPI_RESOURCE_NAME_RESERVED_S3 0x60 #define ACPI_RESOURCE_NAME_RESERVED_S4 0x68 #define ACPI_RESOURCE_NAME_VENDOR_SMALL 0x70 #define ACPI_RESOURCE_NAME_END_TAG 0x78 /* * Large resource descriptor "names" as defined by the ACPI specification. * Note: includes the Large Descriptor bit in bit[7] */ #define ACPI_RESOURCE_NAME_MEMORY24 0x81 #define ACPI_RESOURCE_NAME_GENERIC_REGISTER 0x82 #define ACPI_RESOURCE_NAME_RESERVED_L1 0x83 #define ACPI_RESOURCE_NAME_VENDOR_LARGE 0x84 #define ACPI_RESOURCE_NAME_MEMORY32 0x85 #define ACPI_RESOURCE_NAME_FIXED_MEMORY32 0x86 #define ACPI_RESOURCE_NAME_ADDRESS32 0x87 #define ACPI_RESOURCE_NAME_ADDRESS16 0x88 #define ACPI_RESOURCE_NAME_EXTENDED_IRQ 0x89 #define ACPI_RESOURCE_NAME_ADDRESS64 0x8A #define ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64 0x8B #define ACPI_RESOURCE_NAME_GPIO 0x8C #define ACPI_RESOURCE_NAME_PIN_FUNCTION 0x8D #define ACPI_RESOURCE_NAME_SERIAL_BUS 0x8E #define ACPI_RESOURCE_NAME_PIN_CONFIG 0x8F #define ACPI_RESOURCE_NAME_PIN_GROUP 0x90 #define ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION 0x91 #define ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG 0x92 #define ACPI_RESOURCE_NAME_CLOCK_INPUT 0x93 #define ACPI_RESOURCE_NAME_LARGE_MAX 0x94 /***************************************************************************** * * Miscellaneous * ****************************************************************************/ #define ACPI_ASCII_ZERO 0x30 /***************************************************************************** * * Disassembler * ****************************************************************************/ typedef struct acpi_external_list { char *Path; char *InternalPath; struct acpi_external_list *Next; UINT32 Value; UINT16 Length; UINT16 Flags; UINT8 Type; } ACPI_EXTERNAL_LIST; /* Values for Flags field above */ #define ACPI_EXT_RESOLVED_REFERENCE 0x01 /* Object was resolved during cross ref */ #define ACPI_EXT_ORIGIN_FROM_FILE 0x02 /* External came from a file */ #define ACPI_EXT_INTERNAL_PATH_ALLOCATED 0x04 /* Deallocate internal path on completion */ #define ACPI_EXT_EXTERNAL_EMITTED 0x08 /* External() statement has been emitted */ #define ACPI_EXT_ORIGIN_FROM_OPCODE 0x10 /* External came from a External() opcode */ #define ACPI_EXT_CONFLICTING_DECLARATION 0x20 /* External has a conflicting declaration within AML */ typedef struct acpi_external_file { char *Path; struct acpi_external_file *Next; } ACPI_EXTERNAL_FILE; typedef struct acpi_parse_object_list { ACPI_PARSE_OBJECT *Op; struct acpi_parse_object_list *Next; } ACPI_PARSE_OBJECT_LIST; /***************************************************************************** * * Debugger * ****************************************************************************/ typedef struct acpi_db_method_info { ACPI_HANDLE Method; ACPI_HANDLE MainThreadGate; ACPI_HANDLE ThreadCompleteGate; ACPI_HANDLE InfoGate; ACPI_THREAD_ID *Threads; UINT32 NumThreads; UINT32 NumCreated; UINT32 NumCompleted; char *Name; UINT32 Flags; UINT32 NumLoops; char Pathname[ACPI_DB_LINE_BUFFER_SIZE]; char **Args; ACPI_OBJECT_TYPE *Types; /* * Arguments to be passed to method for the commands Threads and * Background. Note, ACPI specifies a maximum of 7 arguments (0 - 6). * * For the Threads command, the Number of threads, ID of current * thread and Index of current thread inside all them created. */ char InitArgs; #ifdef ACPI_DEBUGGER ACPI_OBJECT_TYPE ArgTypes[ACPI_METHOD_NUM_ARGS]; #endif char *Arguments[ACPI_METHOD_NUM_ARGS]; char NumThreadsStr[11]; char IdOfThreadStr[11]; char IndexOfThreadStr[11]; } ACPI_DB_METHOD_INFO; typedef struct acpi_integrity_info { UINT32 Nodes; UINT32 Objects; } ACPI_INTEGRITY_INFO; #define ACPI_DB_DISABLE_OUTPUT 0x00 #define ACPI_DB_REDIRECTABLE_OUTPUT 0x01 #define ACPI_DB_CONSOLE_OUTPUT 0x02 #define ACPI_DB_DUPLICATE_OUTPUT 0x03 typedef struct acpi_object_info { UINT32 Types[ACPI_TOTAL_TYPES]; } ACPI_OBJECT_INFO; /***************************************************************************** * * Debug * ****************************************************************************/ /* Entry for a memory allocation (debug only) */ #define ACPI_MEM_MALLOC 0 #define ACPI_MEM_CALLOC 1 #define ACPI_MAX_MODULE_NAME 16 #define ACPI_COMMON_DEBUG_MEM_HEADER \ struct acpi_debug_mem_block *Previous; \ struct acpi_debug_mem_block *Next; \ UINT32 Size; \ UINT32 Component; \ UINT32 Line; \ char Module[ACPI_MAX_MODULE_NAME]; \ UINT8 AllocType; typedef struct acpi_debug_mem_header { ACPI_COMMON_DEBUG_MEM_HEADER } ACPI_DEBUG_MEM_HEADER; typedef struct acpi_debug_mem_block { ACPI_COMMON_DEBUG_MEM_HEADER UINT64 UserSpace; } ACPI_DEBUG_MEM_BLOCK; #define ACPI_MEM_LIST_GLOBAL 0 #define ACPI_MEM_LIST_NSNODE 1 #define ACPI_MEM_LIST_MAX 1 #define ACPI_NUM_MEM_LISTS 2 /***************************************************************************** * * Info/help support * ****************************************************************************/ typedef struct ah_predefined_name { char *Name; char *Description; #ifndef ACPI_ASL_COMPILER char *Action; #endif } AH_PREDEFINED_NAME; typedef struct ah_device_id { char *Name; char *Description; } AH_DEVICE_ID; typedef struct ah_uuid { char *Description; char *String; } AH_UUID; typedef struct ah_table { char *Signature; char *Description; } AH_TABLE; #endif /* __ACLOCAL_H__ */ acpica-unix-20250404/source/include/acbuffer.h0000775000175000017500000002737514773714133020431 0ustar ivanhuivanhu/****************************************************************************** * * Name: acbuffer.h - Support for buffers returned by ACPI predefined names * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACBUFFER_H__ #define __ACBUFFER_H__ /* * Contains buffer structures for these predefined names: * _FDE, _GRT, _GTM, _PLD, _SRT */ /* * Note: C bitfields are not used for this reason: * * "Bitfields are great and easy to read, but unfortunately the C language * does not specify the layout of bitfields in memory, which means they are * essentially useless for dealing with packed data in on-disk formats or * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me, * this decision was a design error in C. Ritchie could have picked an order * and stuck with it." Norman Ramsey. * See http://stackoverflow.com/a/1053662/41661 */ /* _FDE return value */ typedef struct acpi_fde_info { UINT32 Floppy0; UINT32 Floppy1; UINT32 Floppy2; UINT32 Floppy3; UINT32 Tape; } ACPI_FDE_INFO; /* * _GRT return value * _SRT input value */ typedef struct acpi_grt_info { UINT16 Year; UINT8 Month; UINT8 Day; UINT8 Hour; UINT8 Minute; UINT8 Second; UINT8 Valid; UINT16 Milliseconds; UINT16 Timezone; UINT8 Daylight; UINT8 Reserved[3]; } ACPI_GRT_INFO; /* _GTM return value */ typedef struct acpi_gtm_info { UINT32 PioSpeed0; UINT32 DmaSpeed0; UINT32 PioSpeed1; UINT32 DmaSpeed1; UINT32 Flags; } ACPI_GTM_INFO; /* * Formatted _PLD return value. The minimum size is a package containing * one buffer. * Revision 1: Buffer is 16 bytes (128 bits) * Revision 2: Buffer is 20 bytes (160 bits) * * Note: This structure is returned from the AcpiDecodePldBuffer * interface. */ typedef struct acpi_pld_info { UINT8 Revision; UINT8 IgnoreColor; UINT8 Red; UINT8 Green; UINT8 Blue; UINT16 Width; UINT16 Height; UINT8 UserVisible; UINT8 Dock; UINT8 Lid; UINT8 Panel; UINT8 VerticalPosition; UINT8 HorizontalPosition; UINT8 Shape; UINT8 GroupOrientation; UINT8 GroupToken; UINT8 GroupPosition; UINT8 Bay; UINT8 Ejectable; UINT8 OspmEjectRequired; UINT8 CabinetNumber; UINT8 CardCageNumber; UINT8 Reference; UINT8 Rotation; UINT8 Order; UINT8 Reserved; UINT16 VerticalOffset; UINT16 HorizontalOffset; } ACPI_PLD_INFO; /* * Macros to: * 1) Convert a _PLD buffer to internal ACPI_PLD_INFO format - ACPI_PLD_GET* * (Used by AcpiDecodePldBuffer) * 2) Construct a _PLD buffer - ACPI_PLD_SET* * (Intended for BIOS use only) */ #define ACPI_PLD_REV1_BUFFER_SIZE 16 /* For Revision 1 of the buffer (From ACPI spec) */ #define ACPI_PLD_REV2_BUFFER_SIZE 20 /* For Revision 2 of the buffer (From ACPI spec) */ #define ACPI_PLD_BUFFER_SIZE 20 /* For Revision 2 of the buffer (From ACPI spec) */ /* First 32-bit dword, bits 0:32 */ #define ACPI_PLD_GET_REVISION(dword) ACPI_GET_BITS (dword, 0, ACPI_7BIT_MASK) #define ACPI_PLD_SET_REVISION(dword,value) ACPI_SET_BITS (dword, 0, ACPI_7BIT_MASK, value) /* Offset 0, Len 7 */ #define ACPI_PLD_GET_IGNORE_COLOR(dword) ACPI_GET_BITS (dword, 7, ACPI_1BIT_MASK) #define ACPI_PLD_SET_IGNORE_COLOR(dword,value) ACPI_SET_BITS (dword, 7, ACPI_1BIT_MASK, value) /* Offset 7, Len 1 */ #define ACPI_PLD_GET_RED(dword) ACPI_GET_BITS (dword, 8, ACPI_8BIT_MASK) #define ACPI_PLD_SET_RED(dword,value) ACPI_SET_BITS (dword, 8, ACPI_8BIT_MASK, value) /* Offset 8, Len 8 */ #define ACPI_PLD_GET_GREEN(dword) ACPI_GET_BITS (dword, 16, ACPI_8BIT_MASK) #define ACPI_PLD_SET_GREEN(dword,value) ACPI_SET_BITS (dword, 16, ACPI_8BIT_MASK, value) /* Offset 16, Len 8 */ #define ACPI_PLD_GET_BLUE(dword) ACPI_GET_BITS (dword, 24, ACPI_8BIT_MASK) #define ACPI_PLD_SET_BLUE(dword,value) ACPI_SET_BITS (dword, 24, ACPI_8BIT_MASK, value) /* Offset 24, Len 8 */ /* Second 32-bit dword, bits 33:63 */ #define ACPI_PLD_GET_WIDTH(dword) ACPI_GET_BITS (dword, 0, ACPI_16BIT_MASK) #define ACPI_PLD_SET_WIDTH(dword,value) ACPI_SET_BITS (dword, 0, ACPI_16BIT_MASK, value) /* Offset 32+0=32, Len 16 */ #define ACPI_PLD_GET_HEIGHT(dword) ACPI_GET_BITS (dword, 16, ACPI_16BIT_MASK) #define ACPI_PLD_SET_HEIGHT(dword,value) ACPI_SET_BITS (dword, 16, ACPI_16BIT_MASK, value) /* Offset 32+16=48, Len 16 */ /* Third 32-bit dword, bits 64:95 */ #define ACPI_PLD_GET_USER_VISIBLE(dword) ACPI_GET_BITS (dword, 0, ACPI_1BIT_MASK) #define ACPI_PLD_SET_USER_VISIBLE(dword,value) ACPI_SET_BITS (dword, 0, ACPI_1BIT_MASK, value) /* Offset 64+0=64, Len 1 */ #define ACPI_PLD_GET_DOCK(dword) ACPI_GET_BITS (dword, 1, ACPI_1BIT_MASK) #define ACPI_PLD_SET_DOCK(dword,value) ACPI_SET_BITS (dword, 1, ACPI_1BIT_MASK, value) /* Offset 64+1=65, Len 1 */ #define ACPI_PLD_GET_LID(dword) ACPI_GET_BITS (dword, 2, ACPI_1BIT_MASK) #define ACPI_PLD_SET_LID(dword,value) ACPI_SET_BITS (dword, 2, ACPI_1BIT_MASK, value) /* Offset 64+2=66, Len 1 */ #define ACPI_PLD_GET_PANEL(dword) ACPI_GET_BITS (dword, 3, ACPI_3BIT_MASK) #define ACPI_PLD_SET_PANEL(dword,value) ACPI_SET_BITS (dword, 3, ACPI_3BIT_MASK, value) /* Offset 64+3=67, Len 3 */ #define ACPI_PLD_GET_VERTICAL(dword) ACPI_GET_BITS (dword, 6, ACPI_2BIT_MASK) #define ACPI_PLD_SET_VERTICAL(dword,value) ACPI_SET_BITS (dword, 6, ACPI_2BIT_MASK, value) /* Offset 64+6=70, Len 2 */ #define ACPI_PLD_GET_HORIZONTAL(dword) ACPI_GET_BITS (dword, 8, ACPI_2BIT_MASK) #define ACPI_PLD_SET_HORIZONTAL(dword,value) ACPI_SET_BITS (dword, 8, ACPI_2BIT_MASK, value) /* Offset 64+8=72, Len 2 */ #define ACPI_PLD_GET_SHAPE(dword) ACPI_GET_BITS (dword, 10, ACPI_4BIT_MASK) #define ACPI_PLD_SET_SHAPE(dword,value) ACPI_SET_BITS (dword, 10, ACPI_4BIT_MASK, value) /* Offset 64+10=74, Len 4 */ #define ACPI_PLD_GET_ORIENTATION(dword) ACPI_GET_BITS (dword, 14, ACPI_1BIT_MASK) #define ACPI_PLD_SET_ORIENTATION(dword,value) ACPI_SET_BITS (dword, 14, ACPI_1BIT_MASK, value) /* Offset 64+14=78, Len 1 */ #define ACPI_PLD_GET_TOKEN(dword) ACPI_GET_BITS (dword, 15, ACPI_8BIT_MASK) #define ACPI_PLD_SET_TOKEN(dword,value) ACPI_SET_BITS (dword, 15, ACPI_8BIT_MASK, value) /* Offset 64+15=79, Len 8 */ #define ACPI_PLD_GET_POSITION(dword) ACPI_GET_BITS (dword, 23, ACPI_8BIT_MASK) #define ACPI_PLD_SET_POSITION(dword,value) ACPI_SET_BITS (dword, 23, ACPI_8BIT_MASK, value) /* Offset 64+23=87, Len 8 */ #define ACPI_PLD_GET_BAY(dword) ACPI_GET_BITS (dword, 31, ACPI_1BIT_MASK) #define ACPI_PLD_SET_BAY(dword,value) ACPI_SET_BITS (dword, 31, ACPI_1BIT_MASK, value) /* Offset 64+31=95, Len 1 */ /* Fourth 32-bit dword, bits 96:127 */ #define ACPI_PLD_GET_EJECTABLE(dword) ACPI_GET_BITS (dword, 0, ACPI_1BIT_MASK) #define ACPI_PLD_SET_EJECTABLE(dword,value) ACPI_SET_BITS (dword, 0, ACPI_1BIT_MASK, value) /* Offset 96+0=96, Len 1 */ #define ACPI_PLD_GET_OSPM_EJECT(dword) ACPI_GET_BITS (dword, 1, ACPI_1BIT_MASK) #define ACPI_PLD_SET_OSPM_EJECT(dword,value) ACPI_SET_BITS (dword, 1, ACPI_1BIT_MASK, value) /* Offset 96+1=97, Len 1 */ #define ACPI_PLD_GET_CABINET(dword) ACPI_GET_BITS (dword, 2, ACPI_8BIT_MASK) #define ACPI_PLD_SET_CABINET(dword,value) ACPI_SET_BITS (dword, 2, ACPI_8BIT_MASK, value) /* Offset 96+2=98, Len 8 */ #define ACPI_PLD_GET_CARD_CAGE(dword) ACPI_GET_BITS (dword, 10, ACPI_8BIT_MASK) #define ACPI_PLD_SET_CARD_CAGE(dword,value) ACPI_SET_BITS (dword, 10, ACPI_8BIT_MASK, value) /* Offset 96+10=106, Len 8 */ #define ACPI_PLD_GET_REFERENCE(dword) ACPI_GET_BITS (dword, 18, ACPI_1BIT_MASK) #define ACPI_PLD_SET_REFERENCE(dword,value) ACPI_SET_BITS (dword, 18, ACPI_1BIT_MASK, value) /* Offset 96+18=114, Len 1 */ #define ACPI_PLD_GET_ROTATION(dword) ACPI_GET_BITS (dword, 19, ACPI_4BIT_MASK) #define ACPI_PLD_SET_ROTATION(dword,value) ACPI_SET_BITS (dword, 19, ACPI_4BIT_MASK, value) /* Offset 96+19=115, Len 4 */ #define ACPI_PLD_GET_ORDER(dword) ACPI_GET_BITS (dword, 23, ACPI_5BIT_MASK) #define ACPI_PLD_SET_ORDER(dword,value) ACPI_SET_BITS (dword, 23, ACPI_5BIT_MASK, value) /* Offset 96+23=119, Len 5 */ /* Fifth 32-bit dword, bits 128:159 (Revision 2 of _PLD only) */ #define ACPI_PLD_GET_VERT_OFFSET(dword) ACPI_GET_BITS (dword, 0, ACPI_16BIT_MASK) #define ACPI_PLD_SET_VERT_OFFSET(dword,value) ACPI_SET_BITS (dword, 0, ACPI_16BIT_MASK, value) /* Offset 128+0=128, Len 16 */ #define ACPI_PLD_GET_HORIZ_OFFSET(dword) ACPI_GET_BITS (dword, 16, ACPI_16BIT_MASK) #define ACPI_PLD_SET_HORIZ_OFFSET(dword,value) ACPI_SET_BITS (dword, 16, ACPI_16BIT_MASK, value) /* Offset 128+16=144, Len 16 */ /* Panel position defined in _PLD section of ACPI Specification 6.3 */ #define ACPI_PLD_PANEL_TOP 0 #define ACPI_PLD_PANEL_BOTTOM 1 #define ACPI_PLD_PANEL_LEFT 2 #define ACPI_PLD_PANEL_RIGHT 3 #define ACPI_PLD_PANEL_FRONT 4 #define ACPI_PLD_PANEL_BACK 5 #define ACPI_PLD_PANEL_UNKNOWN 6 #endif /* ACBUFFER_H */ acpica-unix-20250404/source/include/acobject.h0000775000175000017500000005310414773714133020413 0ustar ivanhuivanhu/****************************************************************************** * * Name: acobject.h - Definition of ACPI_OPERAND_OBJECT (Internal object only) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef _ACOBJECT_H #define _ACOBJECT_H /* acpisrc:StructDefs -- for acpisrc conversion */ /* * The ACPI_OPERAND_OBJECT is used to pass AML operands from the dispatcher * to the interpreter, and to keep track of the various handlers such as * address space handlers and notify handlers. The object is a constant * size in order to allow it to be cached and reused. * * Note: The object is optimized to be aligned and will not work if it is * byte-packed. */ #if ACPI_MACHINE_WIDTH == 64 #pragma pack(8) #else #pragma pack(4) #endif /******************************************************************************* * * Common Descriptors * ******************************************************************************/ /* * Common area for all objects. * * DescriptorType is used to differentiate between internal descriptors, and * must be in the same place across all descriptors * * Note: The DescriptorType and Type fields must appear in the identical * position in both the ACPI_NAMESPACE_NODE and ACPI_OPERAND_OBJECT * structures. */ #define ACPI_OBJECT_COMMON_HEADER \ union acpi_operand_object *NextObject; /* Objects linked to parent NS node */\ UINT8 DescriptorType; /* To differentiate various internal objs */\ UINT8 Type; /* ACPI_OBJECT_TYPE */\ UINT16 ReferenceCount; /* For object deletion management */\ UINT8 Flags /* * Note: There are 3 bytes available here before the * next natural alignment boundary (for both 32/64 cases) */ /* Values for Flag byte above */ #define AOPOBJ_AML_CONSTANT 0x01 /* Integer is an AML constant */ #define AOPOBJ_STATIC_POINTER 0x02 /* Data is part of an ACPI table, don't delete */ #define AOPOBJ_DATA_VALID 0x04 /* Object is initialized and data is valid */ #define AOPOBJ_OBJECT_INITIALIZED 0x08 /* Region is initialized */ #define AOPOBJ_REG_CONNECTED 0x10 /* _REG was run */ #define AOPOBJ_SETUP_COMPLETE 0x20 /* Region setup is complete */ #define AOPOBJ_INVALID 0x40 /* Host OS won't allow a Region address */ /****************************************************************************** * * Basic data types * *****************************************************************************/ typedef struct acpi_object_common { ACPI_OBJECT_COMMON_HEADER; } ACPI_OBJECT_COMMON; typedef struct acpi_object_integer { ACPI_OBJECT_COMMON_HEADER; UINT8 Fill[3]; /* Prevent warning on some compilers */ UINT64 Value; } ACPI_OBJECT_INTEGER; /* * Note: The String and Buffer object must be identical through the * pointer and length elements. There is code that depends on this. * * Fields common to both Strings and Buffers */ #define ACPI_COMMON_BUFFER_INFO(_Type) \ _Type *Pointer; \ UINT32 Length /* Null terminated, ASCII characters only */ typedef struct acpi_object_string { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_BUFFER_INFO(char); /* String in AML stream or allocated string */ } ACPI_OBJECT_STRING; typedef struct acpi_object_buffer { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_BUFFER_INFO(UINT8); /* Buffer in AML stream or allocated buffer */ UINT32 AmlLength; UINT8 *AmlStart; ACPI_NAMESPACE_NODE *Node; /* Link back to parent node */ } ACPI_OBJECT_BUFFER; typedef struct acpi_object_package { ACPI_OBJECT_COMMON_HEADER; ACPI_NAMESPACE_NODE *Node; /* Link back to parent node */ union acpi_operand_object **Elements; /* Array of pointers to AcpiObjects */ UINT8 *AmlStart; UINT32 AmlLength; UINT32 Count; /* # of elements in package */ } ACPI_OBJECT_PACKAGE; /****************************************************************************** * * Complex data types * *****************************************************************************/ typedef struct acpi_object_event { ACPI_OBJECT_COMMON_HEADER; ACPI_SEMAPHORE OsSemaphore; /* Actual OS synchronization object */ } ACPI_OBJECT_EVENT; typedef struct acpi_object_mutex { ACPI_OBJECT_COMMON_HEADER; UINT8 SyncLevel; /* 0-15, specified in Mutex() call */ UINT16 AcquisitionDepth; /* Allow multiple Acquires, same thread */ ACPI_MUTEX OsMutex; /* Actual OS synchronization object */ ACPI_THREAD_ID ThreadId; /* Current owner of the mutex */ struct acpi_thread_state *OwnerThread; /* Current owner of the mutex */ union acpi_operand_object *Prev; /* Link for list of acquired mutexes */ union acpi_operand_object *Next; /* Link for list of acquired mutexes */ ACPI_NAMESPACE_NODE *Node; /* Containing namespace node */ UINT8 OriginalSyncLevel; /* Owner's original sync level (0-15) */ } ACPI_OBJECT_MUTEX; typedef struct acpi_object_region { ACPI_OBJECT_COMMON_HEADER; UINT8 SpaceId; ACPI_NAMESPACE_NODE *Node; /* Containing namespace node */ union acpi_operand_object *Handler; /* Handler for region access */ union acpi_operand_object *Next; ACPI_PHYSICAL_ADDRESS Address; UINT32 Length; void *Pointer; /* Only for data table regions */ } ACPI_OBJECT_REGION; typedef struct acpi_object_method { ACPI_OBJECT_COMMON_HEADER; UINT8 InfoFlags; UINT8 ParamCount; UINT8 SyncLevel; union acpi_operand_object *Mutex; union acpi_operand_object *Node; UINT8 *AmlStart; union { ACPI_INTERNAL_METHOD Implementation; union acpi_operand_object *Handler; } Dispatch; UINT32 AmlLength; ACPI_OWNER_ID OwnerId; UINT8 ThreadCount; } ACPI_OBJECT_METHOD; /* Flags for InfoFlags field above */ #define ACPI_METHOD_MODULE_LEVEL 0x01 /* Method is actually module-level code */ #define ACPI_METHOD_INTERNAL_ONLY 0x02 /* Method is implemented internally (_OSI) */ #define ACPI_METHOD_SERIALIZED 0x04 /* Method is serialized */ #define ACPI_METHOD_SERIALIZED_PENDING 0x08 /* Method is to be marked serialized */ #define ACPI_METHOD_IGNORE_SYNC_LEVEL 0x10 /* Method was auto-serialized at table load time */ #define ACPI_METHOD_MODIFIED_NAMESPACE 0x20 /* Method modified the namespace */ /****************************************************************************** * * Objects that can be notified. All share a common NotifyInfo area. * *****************************************************************************/ /* * Common fields for objects that support ASL notifications */ #define ACPI_COMMON_NOTIFY_INFO \ union acpi_operand_object *NotifyList[2]; /* Handlers for system/device notifies */\ union acpi_operand_object *Handler /* Handler for Address space */ /* COMMON NOTIFY for POWER, PROCESSOR, DEVICE, and THERMAL */ typedef struct acpi_object_notify_common { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_NOTIFY_INFO; } ACPI_OBJECT_NOTIFY_COMMON; typedef struct acpi_object_device { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_NOTIFY_INFO; ACPI_GPE_BLOCK_INFO *GpeBlock; } ACPI_OBJECT_DEVICE; typedef struct acpi_object_power_resource { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_NOTIFY_INFO; UINT32 SystemLevel; UINT32 ResourceOrder; } ACPI_OBJECT_POWER_RESOURCE; typedef struct acpi_object_processor { ACPI_OBJECT_COMMON_HEADER; /* The next two fields take advantage of the 3-byte space before NOTIFY_INFO */ UINT8 ProcId; UINT8 Length; ACPI_COMMON_NOTIFY_INFO; ACPI_IO_ADDRESS Address; } ACPI_OBJECT_PROCESSOR; typedef struct acpi_object_thermal_zone { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_NOTIFY_INFO; } ACPI_OBJECT_THERMAL_ZONE; /****************************************************************************** * * Fields. All share a common header/info field. * *****************************************************************************/ /* * Common bitfield for the field objects * "Field Datum" -- a datum from the actual field object * "Buffer Datum" -- a datum from a user buffer, read from or to be written to the field */ #define ACPI_COMMON_FIELD_INFO \ UINT8 FieldFlags; /* Access, update, and lock bits */\ UINT8 Attribute; /* From AccessAs keyword */\ UINT8 AccessByteWidth; /* Read/Write size in bytes */\ ACPI_NAMESPACE_NODE *Node; /* Link back to parent node */\ UINT32 BitLength; /* Length of field in bits */\ UINT32 BaseByteOffset; /* Byte offset within containing object */\ UINT32 Value; /* Value to store into the Bank or Index register */\ UINT8 StartFieldBitOffset;/* Bit offset within first field datum (0-63) */\ UINT8 AccessLength /* For serial regions/fields */ /* COMMON FIELD (for BUFFER, REGION, BANK, and INDEX fields) */ typedef struct acpi_object_field_common { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_FIELD_INFO; union acpi_operand_object *RegionObj; /* Parent Operation Region object (REGION/BANK fields only) */ } ACPI_OBJECT_FIELD_COMMON; typedef struct acpi_object_region_field { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_FIELD_INFO; UINT16 ResourceLength; union acpi_operand_object *RegionObj; /* Containing OpRegion object */ UINT8 *ResourceBuffer; /* ResourceTemplate for serial regions/fields */ UINT16 PinNumberIndex; /* Index relative to previous Connection/Template */ UINT8 *InternalPccBuffer; /* Internal buffer for fields associated with PCC */ } ACPI_OBJECT_REGION_FIELD; typedef struct acpi_object_bank_field { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_FIELD_INFO; union acpi_operand_object *RegionObj; /* Containing OpRegion object */ union acpi_operand_object *BankObj; /* BankSelect Register object */ } ACPI_OBJECT_BANK_FIELD; typedef struct acpi_object_index_field { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_FIELD_INFO; /* * No "RegionObj" pointer needed since the Index and Data registers * are each field definitions unto themselves. */ union acpi_operand_object *IndexObj; /* Index register */ union acpi_operand_object *DataObj; /* Data register */ } ACPI_OBJECT_INDEX_FIELD; /* The BufferField is different in that it is part of a Buffer, not an OpRegion */ typedef struct acpi_object_buffer_field { ACPI_OBJECT_COMMON_HEADER; ACPI_COMMON_FIELD_INFO; BOOLEAN IsCreateField; /* Special case for objects created by CreateField() */ union acpi_operand_object *BufferObj; /* Containing Buffer object */ } ACPI_OBJECT_BUFFER_FIELD; /****************************************************************************** * * Objects for handlers * *****************************************************************************/ typedef struct acpi_object_notify_handler { ACPI_OBJECT_COMMON_HEADER; ACPI_NAMESPACE_NODE *Node; /* Parent device */ UINT32 HandlerType; /* Type: Device/System/Both */ ACPI_NOTIFY_HANDLER Handler; /* Handler address */ void *Context; union acpi_operand_object *Next[2]; /* Device and System handler lists */ } ACPI_OBJECT_NOTIFY_HANDLER; typedef struct acpi_object_addr_handler { ACPI_OBJECT_COMMON_HEADER; UINT8 SpaceId; UINT8 HandlerFlags; ACPI_ADR_SPACE_HANDLER Handler; ACPI_NAMESPACE_NODE *Node; /* Parent device */ void *Context; ACPI_MUTEX ContextMutex; ACPI_ADR_SPACE_SETUP Setup; union acpi_operand_object *RegionList; /* Regions using this handler */ union acpi_operand_object *Next; } ACPI_OBJECT_ADDR_HANDLER; /* Flags for address handler (HandlerFlags) */ #define ACPI_ADDR_HANDLER_DEFAULT_INSTALLED 0x01 /****************************************************************************** * * Special internal objects * *****************************************************************************/ /* * The Reference object is used for these opcodes: * Arg[0-6], Local[0-7], IndexOp, NameOp, RefOfOp, LoadOp, LoadTableOp, DebugOp * The Reference.Class differentiates these types. */ typedef struct acpi_object_reference { ACPI_OBJECT_COMMON_HEADER; UINT8 Class; /* Reference Class */ UINT8 TargetType; /* Used for Index Op */ UINT8 Resolved; /* Reference has been resolved to a value */ void *Object; /* NameOp=>HANDLE to obj, IndexOp=>ACPI_OPERAND_OBJECT */ ACPI_NAMESPACE_NODE *Node; /* RefOf or Namepath */ union acpi_operand_object **Where; /* Target of Index */ UINT8 *IndexPointer; /* Used for Buffers and Strings */ UINT8 *Aml; /* Used for deferred resolution of the ref */ UINT32 Value; /* Used for Local/Arg/Index/DdbHandle */ } ACPI_OBJECT_REFERENCE; /* Values for Reference.Class above */ typedef enum { ACPI_REFCLASS_LOCAL = 0, /* Method local */ ACPI_REFCLASS_ARG = 1, /* Method argument */ ACPI_REFCLASS_REFOF = 2, /* Result of RefOf() TBD: Split to Ref/Node and Ref/OperandObj? */ ACPI_REFCLASS_INDEX = 3, /* Result of Index() */ ACPI_REFCLASS_TABLE = 4, /* DdbHandle - Load(), LoadTable() */ ACPI_REFCLASS_NAME = 5, /* Reference to a named object */ ACPI_REFCLASS_DEBUG = 6, /* Debug object */ ACPI_REFCLASS_MAX = 6 } ACPI_REFERENCE_CLASSES; /* * Extra object is used as additional storage for types that * have AML code in their declarations (TermArgs) that must be * evaluated at run time. * * Currently: Region and FieldUnit types */ typedef struct acpi_object_extra { ACPI_OBJECT_COMMON_HEADER; ACPI_NAMESPACE_NODE *Method_REG; /* _REG method for this region (if any) */ ACPI_NAMESPACE_NODE *ScopeNode; void *RegionContext; /* Region-specific data */ UINT8 *AmlStart; UINT32 AmlLength; } ACPI_OBJECT_EXTRA; /* Additional data that can be attached to namespace nodes */ typedef struct acpi_object_data { ACPI_OBJECT_COMMON_HEADER; ACPI_OBJECT_HANDLER Handler; void *Pointer; } ACPI_OBJECT_DATA; /* Structure used when objects are cached for reuse */ typedef struct acpi_object_cache_list { ACPI_OBJECT_COMMON_HEADER; union acpi_operand_object *Next; /* Link for object cache and internal lists*/ } ACPI_OBJECT_CACHE_LIST; /****************************************************************************** * * ACPI_OPERAND_OBJECT Descriptor - a giant union of all of the above * *****************************************************************************/ typedef union acpi_operand_object { ACPI_OBJECT_COMMON Common; ACPI_OBJECT_INTEGER Integer; ACPI_OBJECT_STRING String; ACPI_OBJECT_BUFFER Buffer; ACPI_OBJECT_PACKAGE Package; ACPI_OBJECT_EVENT Event; ACPI_OBJECT_METHOD Method; ACPI_OBJECT_MUTEX Mutex; ACPI_OBJECT_REGION Region; ACPI_OBJECT_NOTIFY_COMMON CommonNotify; ACPI_OBJECT_DEVICE Device; ACPI_OBJECT_POWER_RESOURCE PowerResource; ACPI_OBJECT_PROCESSOR Processor; ACPI_OBJECT_THERMAL_ZONE ThermalZone; ACPI_OBJECT_FIELD_COMMON CommonField; ACPI_OBJECT_REGION_FIELD Field; ACPI_OBJECT_BUFFER_FIELD BufferField; ACPI_OBJECT_BANK_FIELD BankField; ACPI_OBJECT_INDEX_FIELD IndexField; ACPI_OBJECT_NOTIFY_HANDLER Notify; ACPI_OBJECT_ADDR_HANDLER AddressSpace; ACPI_OBJECT_REFERENCE Reference; ACPI_OBJECT_EXTRA Extra; ACPI_OBJECT_DATA Data; ACPI_OBJECT_CACHE_LIST Cache; /* * Add namespace node to union in order to simplify code that accepts both * ACPI_OPERAND_OBJECTs and ACPI_NAMESPACE_NODEs. The structures share * a common DescriptorType field in order to differentiate them. */ ACPI_NAMESPACE_NODE Node; } ACPI_OPERAND_OBJECT; /****************************************************************************** * * ACPI_DESCRIPTOR - objects that share a common descriptor identifier * *****************************************************************************/ /* Object descriptor types */ #define ACPI_DESC_TYPE_CACHED 0x01 /* Used only when object is cached */ #define ACPI_DESC_TYPE_STATE 0x02 #define ACPI_DESC_TYPE_STATE_UPDATE 0x03 #define ACPI_DESC_TYPE_STATE_PACKAGE 0x04 #define ACPI_DESC_TYPE_STATE_CONTROL 0x05 #define ACPI_DESC_TYPE_STATE_RPSCOPE 0x06 #define ACPI_DESC_TYPE_STATE_PSCOPE 0x07 #define ACPI_DESC_TYPE_STATE_WSCOPE 0x08 #define ACPI_DESC_TYPE_STATE_RESULT 0x09 #define ACPI_DESC_TYPE_STATE_NOTIFY 0x0A #define ACPI_DESC_TYPE_STATE_THREAD 0x0B #define ACPI_DESC_TYPE_WALK 0x0C #define ACPI_DESC_TYPE_PARSER 0x0D #define ACPI_DESC_TYPE_OPERAND 0x0E #define ACPI_DESC_TYPE_NAMED 0x0F #define ACPI_DESC_TYPE_MAX 0x0F typedef struct acpi_common_descriptor { void *CommonPointer; UINT8 DescriptorType; /* To differentiate various internal objs */ } ACPI_COMMON_DESCRIPTOR; typedef union acpi_descriptor { ACPI_COMMON_DESCRIPTOR Common; ACPI_OPERAND_OBJECT Object; ACPI_NAMESPACE_NODE Node; ACPI_PARSE_OBJECT Op; } ACPI_DESCRIPTOR; #pragma pack() #endif /* _ACOBJECT_H */ acpica-unix-20250404/source/include/acdebug.h0000775000175000017500000002570214773714133020236 0ustar ivanhuivanhu/****************************************************************************** * * Name: acdebug.h - ACPI/AML debugger * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACDEBUG_H__ #define __ACDEBUG_H__ /* The debugger is used in conjunction with the disassembler most of time */ #ifdef ACPI_DISASSEMBLER #include "acdisasm.h" #endif #define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */ #define ACPI_DEBUG_LENGTH_FORMAT " (%.4X bits, %.3X bytes)" typedef struct acpi_db_command_info { const char *Name; /* Command Name */ UINT8 MinArgs; /* Minimum arguments required */ } ACPI_DB_COMMAND_INFO; typedef struct acpi_db_command_help { UINT8 LineCount; /* Number of help lines */ char *Invocation; /* Command Invocation */ char *Description; /* Command Description */ } ACPI_DB_COMMAND_HELP; typedef struct acpi_db_argument_info { const char *Name; /* Argument Name */ } ACPI_DB_ARGUMENT_INFO; typedef struct acpi_db_execute_walk { UINT32 Count; UINT32 MaxCount; char NameSeg[ACPI_NAMESEG_SIZE + 1] ACPI_NONSTRING; } ACPI_DB_EXECUTE_WALK; #define PARAM_LIST(pl) pl #define EX_NO_SINGLE_STEP 1 #define EX_SINGLE_STEP 2 #define EX_ALL 4 /* * dbxface - external debugger interfaces */ ACPI_DBR_DEPENDENT_RETURN_OK ( ACPI_STATUS AcpiDbSingleStep ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, UINT32 OpType)) ACPI_DBR_DEPENDENT_RETURN_VOID ( void AcpiDbSignalBreakPoint ( ACPI_WALK_STATE *WalkState)) /* * dbcmds - debug commands and output routines */ ACPI_NAMESPACE_NODE * AcpiDbConvertToNode ( char *InString); void AcpiDbDisplayTableInfo ( char *TableArg); void AcpiDbDisplayTemplate ( char *BufferArg); void AcpiDbUnloadAcpiTable ( char *Name); void AcpiDbSendNotify ( char *Name, UINT32 Value); void AcpiDbDisplayInterfaces ( char *ActionArg, char *InterfaceNameArg); ACPI_STATUS AcpiDbSleep ( char *ObjectArg); void AcpiDbTrace ( char *EnableArg, char *MethodArg, char *OnceArg); void AcpiDbDisplayLocks ( void); void AcpiDbDisplayResources ( char *ObjectArg); ACPI_HW_DEPENDENT_RETURN_VOID ( void AcpiDbDisplayGpes ( void)) void AcpiDbDisplayHandlers ( void); ACPI_HW_DEPENDENT_RETURN_VOID ( void AcpiDbGenerateGpe ( char *GpeArg, char *BlockArg)) ACPI_HW_DEPENDENT_RETURN_VOID ( void AcpiDbGenerateSci ( void)) void AcpiDbExecuteTest ( char *TypeArg); /* * dbconvert - miscellaneous conversion routines */ ACPI_STATUS AcpiDbHexCharToValue ( int HexChar, UINT8 *ReturnValue); ACPI_STATUS AcpiDbConvertToPackage ( char *String, ACPI_OBJECT *Object); ACPI_STATUS AcpiDbConvertToObject ( ACPI_OBJECT_TYPE Type, char *String, ACPI_OBJECT *Object); UINT8 * AcpiDbEncodePldBuffer ( ACPI_PLD_INFO *PldInfo); void AcpiDbDumpPldBuffer ( ACPI_OBJECT *ObjDesc); /* * dbmethod - control method commands */ void AcpiDbSetMethodBreakpoint ( char *Location, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); void AcpiDbSetMethodCallBreakpoint ( ACPI_PARSE_OBJECT *Op); void AcpiDbSetMethodData ( char *TypeArg, char *IndexArg, char *ValueArg); ACPI_STATUS AcpiDbDisassembleMethod ( char *Name); void AcpiDbDisassembleAml ( char *Statements, ACPI_PARSE_OBJECT *Op); void AcpiDbEvaluatePredefinedNames ( void); void AcpiDbEvaluateAll ( char *NameSeg); /* * dbnames - namespace commands */ void AcpiDbSetScope ( char *Name); void AcpiDbDumpNamespace ( char *StartArg, char *DepthArg); void AcpiDbDumpNamespacePaths ( void); void AcpiDbDumpNamespaceByOwner ( char *OwnerArg, char *DepthArg); ACPI_STATUS AcpiDbFindNameInNamespace ( char *NameArg); void AcpiDbCheckPredefinedNames ( void); ACPI_STATUS AcpiDbDisplayObjects ( char *ObjTypeArg, char *DisplayCountArg); void AcpiDbCheckIntegrity ( void); void AcpiDbFindReferences ( char *ObjectArg); void AcpiDbGetBusInfo ( void); ACPI_STATUS AcpiDbDisplayFields ( UINT32 AddressSpaceId); /* * dbdisply - debug display commands */ void AcpiDbDisplayMethodInfo ( ACPI_PARSE_OBJECT *Op); void AcpiDbDecodeAndDisplayObject ( char *Target, char *OutputType); ACPI_DBR_DEPENDENT_RETURN_VOID ( void AcpiDbDisplayResultObject ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState)) ACPI_STATUS AcpiDbDisplayAllMethods ( char *DisplayCountArg); void AcpiDbDisplayArguments ( void); void AcpiDbDisplayLocals ( void); void AcpiDbDisplayResults ( void); void AcpiDbDisplayCallingTree ( void); void AcpiDbDisplayObjectType ( char *ObjectArg); ACPI_DBR_DEPENDENT_RETURN_VOID ( void AcpiDbDisplayArgumentObject ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState)) /* * dbexec - debugger control method execution */ void AcpiDbExecute ( char *Name, char **Args, ACPI_OBJECT_TYPE *Types, UINT32 Flags); void AcpiDbCreateExecutionThread ( char *MethodNameArg, char **Arguments, ACPI_OBJECT_TYPE *Types); void AcpiDbCreateExecutionThreads ( char *NumThreadsArg, char *NumLoopsArg, char *MethodNameArg); void AcpiDbDeleteObjects ( UINT32 Count, ACPI_OBJECT *Objects); #ifdef ACPI_DBG_TRACK_ALLOCATIONS UINT32 AcpiDbGetCacheInfo ( ACPI_MEMORY_LIST *Cache); #endif /* * dbfileio - Debugger file I/O commands */ ACPI_OBJECT_TYPE AcpiDbMatchArgument ( char *UserArgument, ACPI_DB_ARGUMENT_INFO *Arguments); void AcpiDbCloseDebugFile ( void); void AcpiDbOpenDebugFile ( char *Name); ACPI_STATUS AcpiDbLoadAcpiTable ( char *Filename); ACPI_STATUS AcpiDbLoadTables ( ACPI_NEW_TABLE_DESC *ListHead); /* * dbhistry - debugger HISTORY command */ void AcpiDbAddToHistory ( char *CommandLine); void AcpiDbDisplayHistory ( void); char * AcpiDbGetFromHistory ( char *CommandNumArg); char * AcpiDbGetHistoryByIndex ( UINT32 CommanddNum); /* * dbinput - user front-end to the AML debugger */ ACPI_STATUS AcpiDbCommandDispatch ( char *InputBuffer, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); void ACPI_SYSTEM_XFACE AcpiDbExecuteThread ( void *Context); ACPI_STATUS AcpiDbUserCommands ( void); char * AcpiDbGetNextToken ( char *String, char **Next, ACPI_OBJECT_TYPE *ReturnType); /* * dbobject */ void AcpiDbDecodeInternalObject ( ACPI_OPERAND_OBJECT *ObjDesc); void AcpiDbDisplayInternalObject ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState); void AcpiDbDecodeArguments ( ACPI_WALK_STATE *WalkState); void AcpiDbDecodeLocals ( ACPI_WALK_STATE *WalkState); void AcpiDbDumpMethodInfo ( ACPI_STATUS Status, ACPI_WALK_STATE *WalkState); /* * dbstats - Generation and display of ACPI table statistics */ void AcpiDbGenerateStatistics ( ACPI_PARSE_OBJECT *Root, BOOLEAN IsMethod); ACPI_STATUS AcpiDbDisplayStatistics ( char *TypeArg); /* * dbutils - AML debugger utilities */ void AcpiDbSetOutputDestination ( UINT32 Where); void AcpiDbDumpExternalObject ( ACPI_OBJECT *ObjDesc, UINT32 Level); void AcpiDbPrepNamestring ( char *Name); ACPI_NAMESPACE_NODE * AcpiDbLocalNsLookup ( char *Name); void AcpiDbUint32ToHexString ( UINT32 Value, char *Buffer); void AcpiDbGenerateInterrupt ( char *GsivArg); #endif /* __ACDEBUG_H__ */ acpica-unix-20250404/source/include/acmacros.h0000775000175000017500000006343514773714133020441 0ustar ivanhuivanhu/****************************************************************************** * * Name: acmacros.h - C macros for the entire subsystem. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACMACROS_H__ #define __ACMACROS_H__ /* * Extract data using a pointer. Any more than a byte and we * get into potential alignment issues -- see the STORE macros below. * Use with care. */ #define ACPI_CAST8(ptr) ACPI_CAST_PTR (UINT8, (ptr)) #define ACPI_CAST16(ptr) ACPI_CAST_PTR (UINT16, (ptr)) #define ACPI_CAST32(ptr) ACPI_CAST_PTR (UINT32, (ptr)) #define ACPI_CAST64(ptr) ACPI_CAST_PTR (UINT64, (ptr)) #define ACPI_GET8(ptr) (*ACPI_CAST8 (ptr)) #define ACPI_GET16(ptr) (*ACPI_CAST16 (ptr)) #define ACPI_GET32(ptr) (*ACPI_CAST32 (ptr)) #define ACPI_GET64(ptr) (*ACPI_CAST64 (ptr)) #define ACPI_SET8(ptr, val) (*ACPI_CAST8 (ptr) = (UINT8) (val)) #define ACPI_SET16(ptr, val) (*ACPI_CAST16 (ptr) = (UINT16) (val)) #define ACPI_SET32(ptr, val) (*ACPI_CAST32 (ptr) = (UINT32) (val)) #define ACPI_SET64(ptr, val) (*ACPI_CAST64 (ptr) = (UINT64) (val)) /* * 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. */ #define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i), ACPI_LODWORD(i) /* * Macros for moving data around to/from buffers that are possibly unaligned. * If the hardware supports the transfer of unaligned data, just do the store. * Otherwise, we have to move one byte at a time. */ #ifdef ACPI_BIG_ENDIAN /* * Macros for big-endian machines */ /* These macros reverse the bytes during the move, converting little-endian to big endian */ /* Big Endian <== Little Endian */ /* Hi...Lo Lo...Hi */ /* 16-bit source, 16/32/64 destination */ #define ACPI_MOVE_16_TO_16(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[1];\ (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[0];} #define ACPI_MOVE_16_TO_32(d, s) {(*(UINT32 *)(void *)(d))=0;\ ((UINT8 *)(void *)(d))[2] = ((UINT8 *)(void *)(s))[1];\ ((UINT8 *)(void *)(d))[3] = ((UINT8 *)(void *)(s))[0];} #define ACPI_MOVE_16_TO_64(d, s) {(*(UINT64 *)(void *)(d))=0;\ ((UINT8 *)(void *)(d))[6] = ((UINT8 *)(void *)(s))[1];\ ((UINT8 *)(void *)(d))[7] = ((UINT8 *)(void *)(s))[0];} /* 32-bit source, 16/32/64 destination */ #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ #define ACPI_MOVE_32_TO_32(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[3];\ (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[2];\ (( UINT8 *)(void *)(d))[2] = ((UINT8 *)(void *)(s))[1];\ (( UINT8 *)(void *)(d))[3] = ((UINT8 *)(void *)(s))[0];} #define ACPI_MOVE_32_TO_64(d, s) {(*(UINT64 *)(void *)(d))=0;\ ((UINT8 *)(void *)(d))[4] = ((UINT8 *)(void *)(s))[3];\ ((UINT8 *)(void *)(d))[5] = ((UINT8 *)(void *)(s))[2];\ ((UINT8 *)(void *)(d))[6] = ((UINT8 *)(void *)(s))[1];\ ((UINT8 *)(void *)(d))[7] = ((UINT8 *)(void *)(s))[0];} /* 64-bit source, 16/32/64 destination */ #define ACPI_MOVE_64_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ #define ACPI_MOVE_64_TO_32(d, s) ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */ #define ACPI_MOVE_64_TO_64(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[7];\ (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[6];\ (( UINT8 *)(void *)(d))[2] = ((UINT8 *)(void *)(s))[5];\ (( UINT8 *)(void *)(d))[3] = ((UINT8 *)(void *)(s))[4];\ (( UINT8 *)(void *)(d))[4] = ((UINT8 *)(void *)(s))[3];\ (( UINT8 *)(void *)(d))[5] = ((UINT8 *)(void *)(s))[2];\ (( UINT8 *)(void *)(d))[6] = ((UINT8 *)(void *)(s))[1];\ (( UINT8 *)(void *)(d))[7] = ((UINT8 *)(void *)(s))[0];} #else /* * Macros for little-endian machines */ #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED /* The hardware supports unaligned transfers, just do the little-endian move */ /* 16-bit source, 16/32/64 destination */ #define ACPI_MOVE_16_TO_16(d, s) *(UINT16 *)(void *)(d) = *(UINT16 *)(void *)(s) #define ACPI_MOVE_16_TO_32(d, s) *(UINT32 *)(void *)(d) = *(UINT16 *)(void *)(s) #define ACPI_MOVE_16_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT16 *)(void *)(s) /* 32-bit source, 16/32/64 destination */ #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ #define ACPI_MOVE_32_TO_32(d, s) *(UINT32 *)(void *)(d) = *(UINT32 *)(void *)(s) #define ACPI_MOVE_32_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT32 *)(void *)(s) /* 64-bit source, 16/32/64 destination */ #define ACPI_MOVE_64_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ #define ACPI_MOVE_64_TO_32(d, s) ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */ #define ACPI_MOVE_64_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT64 *)(void *)(s) #else /* * The hardware does not support unaligned transfers. We must move the * data one byte at a time. These macros work whether the source or * the destination (or both) is/are unaligned. (Little-endian move) */ /* 16-bit source, 16/32/64 destination */ #define ACPI_MOVE_16_TO_16(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[0];\ (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[1];} #define ACPI_MOVE_16_TO_32(d, s) {(*(UINT32 *)(void *)(d)) = 0; ACPI_MOVE_16_TO_16(d, s);} #define ACPI_MOVE_16_TO_64(d, s) {(*(UINT64 *)(void *)(d)) = 0; ACPI_MOVE_16_TO_16(d, s);} /* 32-bit source, 16/32/64 destination */ #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ #define ACPI_MOVE_32_TO_32(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[0];\ (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[1];\ (( UINT8 *)(void *)(d))[2] = ((UINT8 *)(void *)(s))[2];\ (( UINT8 *)(void *)(d))[3] = ((UINT8 *)(void *)(s))[3];} #define ACPI_MOVE_32_TO_64(d, s) {(*(UINT64 *)(void *)(d)) = 0; ACPI_MOVE_32_TO_32(d, s);} /* 64-bit source, 16/32/64 destination */ #define ACPI_MOVE_64_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ #define ACPI_MOVE_64_TO_32(d, s) ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */ #define ACPI_MOVE_64_TO_64(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[0];\ (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[1];\ (( UINT8 *)(void *)(d))[2] = ((UINT8 *)(void *)(s))[2];\ (( UINT8 *)(void *)(d))[3] = ((UINT8 *)(void *)(s))[3];\ (( UINT8 *)(void *)(d))[4] = ((UINT8 *)(void *)(s))[4];\ (( UINT8 *)(void *)(d))[5] = ((UINT8 *)(void *)(s))[5];\ (( UINT8 *)(void *)(d))[6] = ((UINT8 *)(void *)(s))[6];\ (( UINT8 *)(void *)(d))[7] = ((UINT8 *)(void *)(s))[7];} #endif #endif /* * Fast power-of-two math macros for non-optimized compilers */ #define _ACPI_DIV(value, PowerOf2) ((UINT32) ((value) >> (PowerOf2))) #define _ACPI_MUL(value, PowerOf2) ((UINT32) ((value) << (PowerOf2))) #define _ACPI_MOD(value, Divisor) ((UINT32) ((value) & ((Divisor) -1))) #define ACPI_DIV_2(a) _ACPI_DIV(a, 1) #define ACPI_MUL_2(a) _ACPI_MUL(a, 1) #define ACPI_MOD_2(a) _ACPI_MOD(a, 2) #define ACPI_DIV_4(a) _ACPI_DIV(a, 2) #define ACPI_MUL_4(a) _ACPI_MUL(a, 2) #define ACPI_MOD_4(a) _ACPI_MOD(a, 4) #define ACPI_DIV_8(a) _ACPI_DIV(a, 3) #define ACPI_MUL_8(a) _ACPI_MUL(a, 3) #define ACPI_MOD_8(a) _ACPI_MOD(a, 8) #define ACPI_DIV_16(a) _ACPI_DIV(a, 4) #define ACPI_MUL_16(a) _ACPI_MUL(a, 4) #define ACPI_MOD_16(a) _ACPI_MOD(a, 16) #define ACPI_DIV_32(a) _ACPI_DIV(a, 5) #define ACPI_MUL_32(a) _ACPI_MUL(a, 5) #define ACPI_MOD_32(a) _ACPI_MOD(a, 32) /* Test for ASCII character */ #define ACPI_IS_ASCII(c) ((c) < 0x80) /* Signed integers */ #define ACPI_SIGN_POSITIVE 0 #define ACPI_SIGN_NEGATIVE 1 /* * Rounding macros (Power of two boundaries only) */ #define ACPI_ROUND_DOWN(value, boundary) (((ACPI_SIZE)(value)) & \ (~(((ACPI_SIZE) boundary)-1))) #define ACPI_ROUND_UP(value, boundary) ((((ACPI_SIZE)(value)) + \ (((ACPI_SIZE) boundary)-1)) & \ (~(((ACPI_SIZE) boundary)-1))) /* Note: sizeof(ACPI_SIZE) evaluates to either 4 or 8 (32- vs 64-bit mode) */ #define ACPI_ROUND_DOWN_TO_32BIT(a) ACPI_ROUND_DOWN(a, 4) #define ACPI_ROUND_DOWN_TO_64BIT(a) ACPI_ROUND_DOWN(a, 8) #define ACPI_ROUND_DOWN_TO_NATIVE_WORD(a) ACPI_ROUND_DOWN(a, sizeof(ACPI_SIZE)) #define ACPI_ROUND_UP_TO_32BIT(a) ACPI_ROUND_UP(a, 4) #define ACPI_ROUND_UP_TO_64BIT(a) ACPI_ROUND_UP(a, 8) #define ACPI_ROUND_UP_TO_NATIVE_WORD(a) ACPI_ROUND_UP(a, sizeof(ACPI_SIZE)) #define ACPI_ROUND_BITS_UP_TO_BYTES(a) ACPI_DIV_8((a) + 7) #define ACPI_ROUND_BITS_DOWN_TO_BYTES(a) ACPI_DIV_8((a)) #define ACPI_ROUND_UP_TO_1K(a) (((a) + 1023) >> 10) /* Generic (non-power-of-two) rounding */ #define ACPI_ROUND_UP_TO(value, boundary) (((value) + ((boundary)-1)) / (boundary)) #define ACPI_IS_MISALIGNED(value) (((ACPI_SIZE) value) & (sizeof(ACPI_SIZE)-1)) /* Generic bit manipulation */ #ifndef ACPI_USE_NATIVE_BIT_FINDER #define __ACPI_FIND_LAST_BIT_2(a, r) ((((UINT8) (a)) & 0x02) ? (r)+1 : (r)) #define __ACPI_FIND_LAST_BIT_4(a, r) ((((UINT8) (a)) & 0x0C) ? \ __ACPI_FIND_LAST_BIT_2 ((a)>>2, (r)+2) : \ __ACPI_FIND_LAST_BIT_2 ((a), (r))) #define __ACPI_FIND_LAST_BIT_8(a, r) ((((UINT8) (a)) & 0xF0) ? \ __ACPI_FIND_LAST_BIT_4 ((a)>>4, (r)+4) : \ __ACPI_FIND_LAST_BIT_4 ((a), (r))) #define __ACPI_FIND_LAST_BIT_16(a, r) ((((UINT16) (a)) & 0xFF00) ? \ __ACPI_FIND_LAST_BIT_8 ((a)>>8, (r)+8) : \ __ACPI_FIND_LAST_BIT_8 ((a), (r))) #define __ACPI_FIND_LAST_BIT_32(a, r) ((((UINT32) (a)) & 0xFFFF0000) ? \ __ACPI_FIND_LAST_BIT_16 ((a)>>16, (r)+16) : \ __ACPI_FIND_LAST_BIT_16 ((a), (r))) #define __ACPI_FIND_LAST_BIT_64(a, r) ((((UINT64) (a)) & 0xFFFFFFFF00000000) ? \ __ACPI_FIND_LAST_BIT_32 ((a)>>32, (r)+32) : \ __ACPI_FIND_LAST_BIT_32 ((a), (r))) #define ACPI_FIND_LAST_BIT_8(a) ((a) ? __ACPI_FIND_LAST_BIT_8 (a, 1) : 0) #define ACPI_FIND_LAST_BIT_16(a) ((a) ? __ACPI_FIND_LAST_BIT_16 (a, 1) : 0) #define ACPI_FIND_LAST_BIT_32(a) ((a) ? __ACPI_FIND_LAST_BIT_32 (a, 1) : 0) #define ACPI_FIND_LAST_BIT_64(a) ((a) ? __ACPI_FIND_LAST_BIT_64 (a, 1) : 0) #define __ACPI_FIND_FIRST_BIT_2(a, r) ((((UINT8) (a)) & 0x01) ? (r) : (r)+1) #define __ACPI_FIND_FIRST_BIT_4(a, r) ((((UINT8) (a)) & 0x03) ? \ __ACPI_FIND_FIRST_BIT_2 ((a), (r)) : \ __ACPI_FIND_FIRST_BIT_2 ((a)>>2, (r)+2)) #define __ACPI_FIND_FIRST_BIT_8(a, r) ((((UINT8) (a)) & 0x0F) ? \ __ACPI_FIND_FIRST_BIT_4 ((a), (r)) : \ __ACPI_FIND_FIRST_BIT_4 ((a)>>4, (r)+4)) #define __ACPI_FIND_FIRST_BIT_16(a, r) ((((UINT16) (a)) & 0x00FF) ? \ __ACPI_FIND_FIRST_BIT_8 ((a), (r)) : \ __ACPI_FIND_FIRST_BIT_8 ((a)>>8, (r)+8)) #define __ACPI_FIND_FIRST_BIT_32(a, r) ((((UINT32) (a)) & 0x0000FFFF) ? \ __ACPI_FIND_FIRST_BIT_16 ((a), (r)) : \ __ACPI_FIND_FIRST_BIT_16 ((a)>>16, (r)+16)) #define __ACPI_FIND_FIRST_BIT_64(a, r) ((((UINT64) (a)) & 0x00000000FFFFFFFF) ? \ __ACPI_FIND_FIRST_BIT_32 ((a), (r)) : \ __ACPI_FIND_FIRST_BIT_32 ((a)>>32, (r)+32)) #define ACPI_FIND_FIRST_BIT_8(a) ((a) ? __ACPI_FIND_FIRST_BIT_8 (a, 1) : 0) #define ACPI_FIND_FIRST_BIT_16(a) ((a) ? __ACPI_FIND_FIRST_BIT_16 (a, 1) : 0) #define ACPI_FIND_FIRST_BIT_32(a) ((a) ? __ACPI_FIND_FIRST_BIT_32 (a, 1) : 0) #define ACPI_FIND_FIRST_BIT_64(a) ((a) ? __ACPI_FIND_FIRST_BIT_64 (a, 1) : 0) #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) \ (((UINT16) 1) << (ACPI_FIND_LAST_BIT_8 ((a)) - 1))) #define ACPI_ROUND_UP_POWER_OF_TWO_16(a) ((UINT16) \ (((UINT32) 1) << ACPI_FIND_LAST_BIT_16 ((a) - 1))) #define ACPI_ROUND_DOWN_POWER_OF_TWO_16(a) ((UINT16) \ (((UINT32) 1) << (ACPI_FIND_LAST_BIT_16 ((a)) - 1))) #define ACPI_ROUND_UP_POWER_OF_TWO_32(a) ((UINT32) \ (((UINT64) 1) << ACPI_FIND_LAST_BIT_32 ((a) - 1))) #define ACPI_ROUND_DOWN_POWER_OF_TWO_32(a) ((UINT32) \ (((UINT64) 1) << (ACPI_FIND_LAST_BIT_32 ((a)) - 1))) #define ACPI_IS_ALIGNED(a, s) (((a) & ((s) - 1)) == 0) #define ACPI_IS_POWER_OF_TWO(a) ACPI_IS_ALIGNED(a, a) /* * Bitmask creation * 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 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 */ #define ACPI_MASK_BITS_ABOVE(position) (~((ACPI_UINT64_MAX) << ((UINT32) (position)))) #define ACPI_MASK_BITS_BELOW(position) ((ACPI_UINT64_MAX) << ((UINT32) (position))) #define ACPI_MASK_BITS_ABOVE_32(width) ((UINT32) ACPI_MASK_BITS_ABOVE(width)) #define ACPI_MASK_BITS_BELOW_32(width) ((UINT32) ACPI_MASK_BITS_BELOW(width)) #define ACPI_MASK_BITS_ABOVE_64(width) ((width) == ACPI_INTEGER_BIT_SIZE ? \ ACPI_UINT64_MAX : \ ACPI_MASK_BITS_ABOVE(width)) #define ACPI_MASK_BITS_BELOW_64(width) ((width) == ACPI_INTEGER_BIT_SIZE ? \ (UINT64) 0 : \ ACPI_MASK_BITS_BELOW(width)) /* Bitfields within ACPI registers */ #define ACPI_REGISTER_PREPARE_BITS(Val, Pos, Mask) \ ((Val << Pos) & Mask) #define ACPI_REGISTER_INSERT_VALUE(Reg, Pos, Mask, Val) \ Reg = (Reg & (~(Mask))) | ACPI_REGISTER_PREPARE_BITS(Val, Pos, Mask) #define ACPI_INSERT_BITS(Target, Mask, Source) \ Target = ((Target & (~(Mask))) | (Source & Mask)) /* Generic bitfield macros and masks */ #define ACPI_GET_BITS(SourcePtr, Position, Mask) \ ((*(SourcePtr) >> (Position)) & (Mask)) #define ACPI_SET_BITS(TargetPtr, Position, Mask, Value) \ (*(TargetPtr) |= (((Value) & (Mask)) << (Position))) #define ACPI_1BIT_MASK 0x00000001 #define ACPI_2BIT_MASK 0x00000003 #define ACPI_3BIT_MASK 0x00000007 #define ACPI_4BIT_MASK 0x0000000F #define ACPI_5BIT_MASK 0x0000001F #define ACPI_6BIT_MASK 0x0000003F #define ACPI_7BIT_MASK 0x0000007F #define ACPI_8BIT_MASK 0x000000FF #define ACPI_16BIT_MASK 0x0000FFFF #define ACPI_24BIT_MASK 0x00FFFFFF /* Macros to extract flag bits from position zero */ #define ACPI_GET_1BIT_FLAG(Value) ((Value) & ACPI_1BIT_MASK) #define ACPI_GET_2BIT_FLAG(Value) ((Value) & ACPI_2BIT_MASK) #define ACPI_GET_3BIT_FLAG(Value) ((Value) & ACPI_3BIT_MASK) #define ACPI_GET_4BIT_FLAG(Value) ((Value) & ACPI_4BIT_MASK) /* Macros to extract flag bits from position one and above */ #define ACPI_EXTRACT_1BIT_FLAG(Field, Position) (ACPI_GET_1BIT_FLAG ((Field) >> Position)) #define ACPI_EXTRACT_2BIT_FLAG(Field, Position) (ACPI_GET_2BIT_FLAG ((Field) >> Position)) #define ACPI_EXTRACT_3BIT_FLAG(Field, Position) (ACPI_GET_3BIT_FLAG ((Field) >> Position)) #define ACPI_EXTRACT_4BIT_FLAG(Field, Position) (ACPI_GET_4BIT_FLAG ((Field) >> Position)) /* ACPI Pathname helpers */ #define ACPI_IS_ROOT_PREFIX(c) ((c) == (UINT8) 0x5C) /* Backslash */ #define ACPI_IS_PARENT_PREFIX(c) ((c) == (UINT8) 0x5E) /* Carat */ #define ACPI_IS_PATH_SEPARATOR(c) ((c) == (UINT8) 0x2E) /* Period (dot) */ /* * An object of type ACPI_NAMESPACE_NODE can appear in some contexts * where a pointer to an object of type ACPI_OPERAND_OBJECT can also * appear. This macro is used to distinguish them. * * The "DescriptorType" field is the second field in both structures. */ #define ACPI_GET_DESCRIPTOR_PTR(d) (((ACPI_DESCRIPTOR *)(void *)(d))->Common.CommonPointer) #define ACPI_SET_DESCRIPTOR_PTR(d, p) (((ACPI_DESCRIPTOR *)(void *)(d))->Common.CommonPointer = (p)) #define ACPI_GET_DESCRIPTOR_TYPE(d) (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType) #define ACPI_SET_DESCRIPTOR_TYPE(d, t) (((ACPI_DESCRIPTOR *)(void *)(d))->Common.DescriptorType = (t)) /* * Macros for the master AML opcode table */ #if defined (ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT) #define ACPI_OP(Name, PArgs, IArgs, ObjType, Class, Type, Flags) \ {Name, (UINT32)(PArgs), (UINT32)(IArgs), (UINT32)(Flags), ObjType, Class, Type} #else #define ACPI_OP(Name, PArgs, IArgs, ObjType, Class, Type, Flags) \ {(UINT32)(PArgs), (UINT32)(IArgs), (UINT32)(Flags), ObjType, Class, Type} #endif #define ARG_TYPE_WIDTH 5 #define ARG_1(x) ((UINT32)(x)) #define ARG_2(x) ((UINT32)(x) << (1 * ARG_TYPE_WIDTH)) #define ARG_3(x) ((UINT32)(x) << (2 * ARG_TYPE_WIDTH)) #define ARG_4(x) ((UINT32)(x) << (3 * ARG_TYPE_WIDTH)) #define ARG_5(x) ((UINT32)(x) << (4 * ARG_TYPE_WIDTH)) #define ARG_6(x) ((UINT32)(x) << (5 * ARG_TYPE_WIDTH)) #define ARGI_LIST1(a) (ARG_1(a)) #define ARGI_LIST2(a, b) (ARG_1(b)|ARG_2(a)) #define ARGI_LIST3(a, b, c) (ARG_1(c)|ARG_2(b)|ARG_3(a)) #define ARGI_LIST4(a, b, c, d) (ARG_1(d)|ARG_2(c)|ARG_3(b)|ARG_4(a)) #define ARGI_LIST5(a, b, c, d, e) (ARG_1(e)|ARG_2(d)|ARG_3(c)|ARG_4(b)|ARG_5(a)) #define ARGI_LIST6(a, b, c, d, e, f) (ARG_1(f)|ARG_2(e)|ARG_3(d)|ARG_4(c)|ARG_5(b)|ARG_6(a)) #define ARGP_LIST1(a) (ARG_1(a)) #define ARGP_LIST2(a, b) (ARG_1(a)|ARG_2(b)) #define ARGP_LIST3(a, b, c) (ARG_1(a)|ARG_2(b)|ARG_3(c)) #define ARGP_LIST4(a, b, c, d) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)) #define ARGP_LIST5(a, b, c, d, e) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)) #define ARGP_LIST6(a, b, c, d, e, f) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)|ARG_6(f)) #define GET_CURRENT_ARG_TYPE(List) (List & ((UINT32) 0x1F)) #define INCREMENT_ARG_LIST(List) (List >>= ((UINT32) ARG_TYPE_WIDTH)) /* * Ascii error messages can be configured out */ #ifndef ACPI_NO_ERROR_MESSAGES /* * 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. */ #define ACPI_ERROR_NAMESPACE(s, p, e) AcpiUtPrefixedNamespaceError (AE_INFO, s, p, e); #define ACPI_ERROR_METHOD(s, n, p, e) AcpiUtMethodError (AE_INFO, s, n, p, e); #define ACPI_WARN_PREDEFINED(plist) AcpiUtPredefinedWarning plist #define ACPI_INFO_PREDEFINED(plist) AcpiUtPredefinedInfo plist #define ACPI_BIOS_ERROR_PREDEFINED(plist) AcpiUtPredefinedBiosError plist #define ACPI_ERROR_ONLY(s) s #else /* No error messages */ #define ACPI_ERROR_NAMESPACE(s, p, e) #define ACPI_ERROR_METHOD(s, n, p, e) #define ACPI_WARN_PREDEFINED(plist) #define ACPI_INFO_PREDEFINED(plist) #define ACPI_BIOS_ERROR_PREDEFINED(plist) #define ACPI_ERROR_ONLY(s) #endif /* ACPI_NO_ERROR_MESSAGES */ #if (!ACPI_REDUCED_HARDWARE) #define ACPI_HW_OPTIONAL_FUNCTION(addr) addr #else #define ACPI_HW_OPTIONAL_FUNCTION(addr) NULL #endif /* * Macros used for ACPICA utilities only */ /* Generate a UUID */ #define ACPI_INIT_UUID(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \ (a) & 0xFF, ((a) >> 8) & 0xFF, ((a) >> 16) & 0xFF, ((a) >> 24) & 0xFF, \ (b) & 0xFF, ((b) >> 8) & 0xFF, \ (c) & 0xFF, ((c) >> 8) & 0xFF, \ (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) #define ACPI_IS_OCTAL_DIGIT(d) (((char)(d) >= '0') && ((char)(d) <= '7')) /* * Macros used for the ASL-/ASL+ converter utility */ #ifdef ACPI_ASL_COMPILER #define ASL_CV_LABEL_FILENODE(a) CvLabelFileNode(a); #define ASL_CV_CAPTURE_COMMENTS_ONLY(a) CvCaptureCommentsOnly (a); #define ASL_CV_CAPTURE_COMMENTS(a) CvCaptureComments (a); #define ASL_CV_TRANSFER_COMMENTS(a) CvTransferComments (a); #define ASL_CV_CLOSE_PAREN(a,b) CvCloseParenWriteComment(a,b); #define ASL_CV_CLOSE_BRACE(a,b) CvCloseBraceWriteComment(a,b); #define ASL_CV_SWITCH_FILES(a,b) CvSwitchFiles(a,b); #define ASL_CV_CLEAR_OP_COMMENTS(a) CvClearOpComments(a); #define ASL_CV_PRINT_ONE_COMMENT(a,b,c,d) CvPrintOneCommentType (a,b,c,d); #define ASL_CV_PRINT_ONE_COMMENT_LIST(a,b) CvPrintOneCommentList (a,b); #define ASL_CV_FILE_HAS_SWITCHED(a) CvFileHasSwitched(a) #define ASL_CV_INIT_FILETREE(a,b) CvInitFileTree(a,b); #else #define ASL_CV_LABEL_FILENODE(a) #define ASL_CV_CAPTURE_COMMENTS_ONLY(a) #define ASL_CV_CAPTURE_COMMENTS(a) #define ASL_CV_TRANSFER_COMMENTS(a) #define ASL_CV_CLOSE_PAREN(a,b) AcpiOsPrintf (")"); #define ASL_CV_CLOSE_BRACE(a,b) AcpiOsPrintf ("}"); #define ASL_CV_SWITCH_FILES(a,b) #define ASL_CV_CLEAR_OP_COMMENTS(a) #define ASL_CV_PRINT_ONE_COMMENT(a,b,c,d) #define ASL_CV_PRINT_ONE_COMMENT_LIST(a,b) #define ASL_CV_FILE_HAS_SWITCHED(a) 0 #define ASL_CV_INIT_FILETREE(a,b) #endif #endif /* ACMACROS_H */ acpica-unix-20250404/source/include/acpi.h0000775000175000017500000000615014773714133017554 0ustar ivanhuivanhu/****************************************************************************** * * Name: acpi.h - Master public include file used to interface to ACPICA * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACPI_H__ #define __ACPI_H__ /* * Public include files for use by code that will interface to ACPICA. * * Information includes the ACPICA data types, names, exceptions, and * external interface prototypes. Also included are the definitions for * all ACPI tables (FADT, MADT, etc.) * * Note: The order of these include files is important. */ #include "platform/acenv.h" /* Environment-specific items */ #include "actypes.h" /* ACPICA data types and structures */ #include "platform/acenvex.h" /* Extra environment-specific items */ #include "acnames.h" /* Common ACPI names and strings */ #include "acexcep.h" /* ACPICA exceptions */ #include "actbl.h" /* ACPI table definitions */ #include "acoutput.h" /* Error output and Debug macros */ #include "acrestyp.h" /* Resource Descriptor structs */ #include "acpiosxf.h" /* OSL interfaces (ACPICA-to-OS) */ #include "acpixf.h" /* ACPI core subsystem external interfaces */ #endif /* __ACPI_H__ */ acpica-unix-20250404/source/include/acdisasm.h0000775000175000017500000012722014773714133020426 0ustar ivanhuivanhu/****************************************************************************** * * Name: acdisasm.h - AML disassembler * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACDISASM_H__ #define __ACDISASM_H__ #include "amlresrc.h" #define BLOCK_NONE 0 #define BLOCK_PAREN 1 #define BLOCK_BRACE 2 #define BLOCK_COMMA_LIST 4 #define ACPI_DEFAULT_RESNAME *(UINT32 *) "__RD" /* * Raw table data header. Used by disassembler and data table compiler. * Do not change. */ #define ACPI_RAW_TABLE_DATA_HEADER "Raw Table Data" typedef struct acpi_dmtable_info { UINT8 Opcode; UINT16 Offset; char *Name; UINT8 Flags; } ACPI_DMTABLE_INFO; /* Values for Flags field above */ #define DT_LENGTH 0x01 /* Field is a subtable length */ #define DT_FLAG 0x02 /* Field is a flag value */ #define DT_NON_ZERO 0x04 /* Field must be non-zero */ #define DT_OPTIONAL 0x08 /* Field is optional */ #define DT_DESCRIBES_OPTIONAL 0x10 /* Field describes an optional field (length, etc.) */ #define DT_COUNT 0x20 /* Currently not used */ /* * Values for Opcode above. * Note: 0-7 must not change, they are used as a flag shift value. Other * than those, new values can be added wherever appropriate. */ typedef enum { /* Simple Data Types */ ACPI_DMT_FLAG0 = 0, ACPI_DMT_FLAG1 = 1, ACPI_DMT_FLAG2 = 2, ACPI_DMT_FLAG3 = 3, ACPI_DMT_FLAG4 = 4, ACPI_DMT_FLAG5 = 5, ACPI_DMT_FLAG6 = 6, ACPI_DMT_FLAG7 = 7, ACPI_DMT_FLAGS0, ACPI_DMT_FLAGS1, ACPI_DMT_FLAGS2, ACPI_DMT_FLAGS8_2, ACPI_DMT_FLAGS4, ACPI_DMT_FLAGS4_0, ACPI_DMT_FLAGS4_4, ACPI_DMT_FLAGS4_8, ACPI_DMT_FLAGS4_12, ACPI_DMT_FLAGS16_16, ACPI_DMT_UINT8, ACPI_DMT_UINT16, ACPI_DMT_UINT24, ACPI_DMT_UINT32, ACPI_DMT_UINT40, ACPI_DMT_UINT48, ACPI_DMT_UINT56, ACPI_DMT_UINT64, ACPI_DMT_BUF7, ACPI_DMT_BUF10, ACPI_DMT_BUF11, ACPI_DMT_BUF12, ACPI_DMT_BUF16, ACPI_DMT_BUF18, ACPI_DMT_BUF24, ACPI_DMT_BUF26, ACPI_DMT_BUF32, ACPI_DMT_BUF112, ACPI_DMT_BUF128, ACPI_DMT_SIG, ACPI_DMT_STRING, ACPI_DMT_NAME4, ACPI_DMT_NAME6, ACPI_DMT_NAME8, /* Types that are decoded to strings and miscellaneous */ ACPI_DMT_ACCWIDTH, ACPI_DMT_CHKSUM, ACPI_DMT_GAS, ACPI_DMT_SPACEID, ACPI_DMT_UNICODE, ACPI_DMT_UUID, /* Types used only for the Data Table Compiler */ ACPI_DMT_BUFFER, ACPI_DMT_RAW_BUFFER, /* Large, multiple line buffer */ ACPI_DMT_DEVICE_PATH, ACPI_DMT_LABEL, ACPI_DMT_PCI_PATH, /* Types that are specific to particular ACPI tables */ ACPI_DMT_AEST, ACPI_DMT_AEST_CACHE, ACPI_DMT_AEST_GIC, ACPI_DMT_AEST_RES, ACPI_DMT_AEST_XFACE, ACPI_DMT_AEST_XRUPT, ACPI_DMT_AGDI, ACPI_DMT_ASF, ACPI_DMT_ASPT, ACPI_DMT_CDAT, ACPI_DMT_CEDT, ACPI_DMT_DMAR, ACPI_DMT_DMAR_SCOPE, ACPI_DMT_EINJACT, ACPI_DMT_EINJINST, ACPI_DMT_ERDT, ACPI_DMT_ERSTACT, ACPI_DMT_ERSTINST, ACPI_DMT_FADTPM, ACPI_DMT_GTDT, ACPI_DMT_HEST, ACPI_DMT_HESTNTFY, ACPI_DMT_HESTNTYP, ACPI_DMT_HMAT, ACPI_DMT_IORTMEM, ACPI_DMT_IVRS, ACPI_DMT_IVRS_DE, ACPI_DMT_IVRS_UNTERMINATED_STRING, ACPI_DMT_LPIT, ACPI_DMT_MADT, ACPI_DMT_MPAM_LOCATOR, ACPI_DMT_NFIT, ACPI_DMT_PCCT, ACPI_DMT_PHAT, ACPI_DMT_PMTT, ACPI_DMT_PMTT_VENDOR, ACPI_DMT_PPTT, ACPI_DMT_RGRT, ACPI_DMT_RHCT, ACPI_DMT_RIMT, ACPI_DMT_SDEI, ACPI_DMT_SDEV, ACPI_DMT_SLIC, ACPI_DMT_SRAT, ACPI_DMT_TPM2, ACPI_DMT_VIOT, ACPI_DMT_WPBT_UNICODE, /* Special opcodes */ ACPI_DMT_EXTRA_TEXT, ACPI_DMT_EXIT } ACPI_ENTRY_TYPES; typedef void (*ACPI_DMTABLE_HANDLER) ( ACPI_TABLE_HEADER *Table); typedef ACPI_STATUS (*ACPI_CMTABLE_HANDLER) ( void **PFieldList); typedef struct acpi_dmtable_data { char *Signature; ACPI_DMTABLE_INFO *TableInfo; ACPI_DMTABLE_HANDLER TableHandler; ACPI_CMTABLE_HANDLER CmTableHandler; const unsigned char *Template; } ACPI_DMTABLE_DATA; typedef struct acpi_op_walk_info { ACPI_WALK_STATE *WalkState; ACPI_PARSE_OBJECT *MappingOp; UINT8 *PreviousAml; UINT8 *StartAml; UINT32 Level; UINT32 LastLevel; UINT32 Count; UINT32 BitOffset; UINT32 Flags; UINT32 AmlOffset; } ACPI_OP_WALK_INFO; /* * TBD - another copy of this is in asltypes.h, fix */ #ifndef ASL_WALK_CALLBACK_DEFINED typedef ACPI_STATUS (*ASL_WALK_CALLBACK) ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); #define ASL_WALK_CALLBACK_DEFINED #endif typedef void (*ACPI_RESOURCE_HANDLER) ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); typedef struct acpi_resource_tag { UINT32 BitIndex; char *Tag; } ACPI_RESOURCE_TAG; /* Strings used for decoding flags to ASL keywords */ extern const char *AcpiGbl_WordDecode[]; extern const char *AcpiGbl_IrqDecode[]; extern const char *AcpiGbl_LockRule[]; extern const char *AcpiGbl_AccessTypes[]; extern const char *AcpiGbl_UpdateRules[]; extern const char *AcpiGbl_MatchOps[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestProcError[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestCacheRsrc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestTlbRsrc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestGenRsrc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestMemError[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestSmmuError[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestVendorError[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestVendorV2Error[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestGicError[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestPCIeError[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestProxyError[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXfaceHeader[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface4k[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface16k[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface64k[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXrupt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAestXruptV2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAgdi[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoApmtNode[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsfHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsptHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoAspt2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoBdat[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoBoot[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoBert[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoBgrt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCcel[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdatTableHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdatHeader[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdat5[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCdatEntries[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedtHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt1_te[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCedt2_te[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Device[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Addr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Size[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Name[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2OemData[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbgp[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmarHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmarScope[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar5[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar6[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoEcdt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCacd[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCacdX2apic[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCarc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCard[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCmrc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCmrd[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtDacd[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtDacdPath[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtDacdScope[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtIbad[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtIbrd[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtIbrdCorrFactor[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtMarc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtMmrc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtMmrcCorrFactor[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErdtRmdd[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFacs[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt5[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt6[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdtHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoGas[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdtHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdtEl2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHeader[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest6[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest7[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest8[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest9[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest10[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest11[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestNotify[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestBank[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHpet[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpitHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1b[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1c[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmatHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3b[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3c[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort5[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort6[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort6a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortAcc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortMap[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortPad[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHware1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHware23[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsMemory[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8b[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8c[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsCidString[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsCidInteger[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHid[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsUidString[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsUidInteger[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHidString[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHidInteger[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt5[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt6[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt7[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt8[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt9[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt10[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11b[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt12[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt13[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt16[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt17[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt18[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt19[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt20[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt21[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt22[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt23[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt24[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt25[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt26[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt27[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt128[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadtHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMchi[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1A[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1B[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1C[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1D[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1E[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1F[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1G[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1Deps[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpam2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0A[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0B[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMrrm[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMrrm0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfitHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit5[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit7[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhatHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat0a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1b[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmttVendor[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmttHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcctHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct5[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPdtt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPdtt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt1a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPpttHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtModule[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtHandler[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRasf[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRas2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRas2PccDesc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRgrt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRgrt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhct[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctNodeHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctIsa1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctIsaPad[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctCmo1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctMmu1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctHartInfo1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRhctHartInfo2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRimt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRimtNodeHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRimtIommu[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRimtIommuWire[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRimtPcieRc[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRimtIdMapping[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRimtPlatDev[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRimtPlatDevPad[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3ptHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSbst[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdei[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0b[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompId[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompMem[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1b[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlic[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlit[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpcr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpmi[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSratHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat5[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat6[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat7[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoStao[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoStaoStr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaHdr[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaClient[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaServer[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoTdel[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm211[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23a[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoUefi[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoViotHeader[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot1[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot2[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot3[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoViot4[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoWaet[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoWddt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt0[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoWsmt[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoXenv[]; extern ACPI_DMTABLE_INFO AcpiDmTableInfoGeneric[][2]; /* * dmtable and ahtable */ extern const ACPI_DMTABLE_DATA AcpiDmTableData[]; extern const AH_TABLE AcpiGbl_SupportedTables[]; UINT8 AcpiDmGenerateChecksum ( void *Table, UINT32 Length, UINT8 OriginalChecksum); const ACPI_DMTABLE_DATA * AcpiDmGetTableData ( char *Signature); void AcpiDmDumpDataTable ( ACPI_TABLE_HEADER *Table); ACPI_STATUS AcpiDmDumpTable ( UINT32 TableLength, UINT32 TableOffset, void *Table, UINT32 SubtableLength, ACPI_DMTABLE_INFO *Info); void AcpiDmLineHeader ( UINT32 Offset, UINT32 ByteLength, char *Name); void AcpiDmLineHeader2 ( UINT32 Offset, UINT32 ByteLength, char *Name, UINT32 Value); /* * dmtbdump */ void AcpiDmDumpBuffer ( void *Table, UINT32 BufferOffset, UINT32 Length, UINT32 AbsoluteOffset, char *Header); void AcpiDmDumpUnicode ( void *Table, UINT32 BufferOffset, UINT32 ByteLength); void AcpiDmDumpAest ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpApmt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpAsf ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpAspt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpCcel ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpCdat ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpCedt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpCpep ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpCsrt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpDbg2 ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpDmar ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpDrtm ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpEinj ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpErdt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpErst ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpFadt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpFpdt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpGtdt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpHest ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpHmat ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpIort ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpIvrs ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpLpit ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpMadt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpMcfg ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpMpam ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpMpst ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpMrrm ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpMsct ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpNfit ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpPcct ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpPdtt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpPhat ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpPmtt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpPptt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpPrmt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpRas2 ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpRgrt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpRhct ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpRimt ( ACPI_TABLE_HEADER *Table); UINT32 AcpiDmDumpRsdp ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpRsdt ( ACPI_TABLE_HEADER *Table); UINT32 AcpiDmDumpS3pt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpSdev ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpSlic ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpSlit ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpSrat ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpStao ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpSvkl ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpTcpa ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpTdel ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpTpm2 ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpViot ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpWdat ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpWpbt ( ACPI_TABLE_HEADER *Table); void AcpiDmDumpXsdt ( ACPI_TABLE_HEADER *Table); /* * dmwalk */ void AcpiDmDisassemble ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Origin, UINT32 NumOpcodes); void AcpiDmWalkParseTree ( ACPI_PARSE_OBJECT *Op, ASL_WALK_CALLBACK DescendingCallback, ASL_WALK_CALLBACK AscendingCallback, void *Context); /* * dmopcode */ void AcpiDmDisassembleOneOp ( ACPI_WALK_STATE *WalkState, ACPI_OP_WALK_INFO *Info, ACPI_PARSE_OBJECT *Op); UINT32 AcpiDmListType ( ACPI_PARSE_OBJECT *Op); void AcpiDmMethodFlags ( ACPI_PARSE_OBJECT *Op); void AcpiDmDisplayTargetPathname ( ACPI_PARSE_OBJECT *Op); void AcpiDmNotifyDescription ( ACPI_PARSE_OBJECT *Op); void AcpiDmPredefinedDescription ( ACPI_PARSE_OBJECT *Op); void AcpiDmFieldPredefinedDescription ( ACPI_PARSE_OBJECT *Op); void AcpiDmFieldFlags ( ACPI_PARSE_OBJECT *Op); void AcpiDmAddressSpace ( UINT8 SpaceId); void AcpiDmRegionFlags ( ACPI_PARSE_OBJECT *Op); void AcpiDmMatchOp ( ACPI_PARSE_OBJECT *Op); /* * dmnames */ UINT32 AcpiDmDumpName ( UINT32 Name); ACPI_STATUS AcpiPsDisplayObjectPathname ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); void AcpiDmNamestring ( char *Name); /* * dmbuffer */ void AcpiDmDisasmByteList ( UINT32 Level, UINT8 *ByteData, UINT32 ByteCount); void AcpiDmByteList ( ACPI_OP_WALK_INFO *Info, ACPI_PARSE_OBJECT *Op); void AcpiDmCheckForHardwareId ( ACPI_PARSE_OBJECT *Op); void AcpiDmDecompressEisaId ( UINT32 EncodedId); BOOLEAN AcpiDmIsUuidBuffer ( ACPI_PARSE_OBJECT *Op); BOOLEAN AcpiDmIsUnicodeBuffer ( ACPI_PARSE_OBJECT *Op); BOOLEAN AcpiDmIsStringBuffer ( ACPI_PARSE_OBJECT *Op); BOOLEAN AcpiDmIsPldBuffer ( ACPI_PARSE_OBJECT *Op); /* * dmdeferred */ ACPI_STATUS AcpiDmParseDeferredOps ( ACPI_PARSE_OBJECT *Root); /* * dmextern */ ACPI_STATUS AcpiDmAddToExternalFileList ( char *PathList); void AcpiDmClearExternalFileList ( void); void AcpiDmAddOpToExternalList ( ACPI_PARSE_OBJECT *Op, char *Path, UINT8 Type, UINT32 Value, UINT16 Flags); void AcpiDmCreateSubobjectForExternal ( UINT8 Type, ACPI_NAMESPACE_NODE **Node, UINT32 Value); void AcpiDmAddNodeToExternalList ( ACPI_NAMESPACE_NODE *Node, UINT8 Type, UINT32 Value, UINT16 Flags); void AcpiDmAddExternalListToNamespace ( void); void AcpiDmAddOneExternalToNamespace ( char *Path, UINT8 Type, UINT32 Value); UINT32 AcpiDmGetUnresolvedExternalMethodCount ( void); void AcpiDmClearExternalList ( void); void AcpiDmEmitExternals ( void); void AcpiDmEmitExternal ( ACPI_PARSE_OBJECT *NameOp, ACPI_PARSE_OBJECT *TypeOp); void AcpiDmUnresolvedWarning ( UINT8 Type); void AcpiDmGetExternalsFromFile ( void); void AcpiDmMarkExternalConflict ( ACPI_NAMESPACE_NODE *Node); /* * dmresrc */ void AcpiDmDumpInteger8 ( UINT8 Value, const char *Name); void AcpiDmDumpInteger16 ( UINT16 Value, const char *Name); void AcpiDmDumpInteger32 ( UINT32 Value, const char *Name); void AcpiDmDumpInteger64 ( UINT64 Value, const char *Name); void AcpiDmResourceTemplate ( ACPI_OP_WALK_INFO *Info, ACPI_PARSE_OBJECT *Op, UINT8 *ByteData, UINT32 ByteCount); ACPI_STATUS AcpiDmIsResourceTemplate ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); void AcpiDmBitList ( UINT16 Mask); void AcpiDmDescriptorName ( void); /* * dmresrcl */ void AcpiDmWordDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmDwordDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmExtendedDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmQwordDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmMemory24Descriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmMemory32Descriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmFixedMemory32Descriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmGenericRegisterDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmInterruptDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmVendorLargeDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmGpioDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmPinFunctionDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmPinConfigDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmPinGroupDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmPinGroupFunctionDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmPinGroupConfigDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmSerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmVendorCommon ( const char *Name, UINT8 *ByteData, UINT32 Length, UINT32 Level); void AcpiDmClockInputDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); /* * dmresrcs */ void AcpiDmIrqDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmDmaDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmFixedDmaDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmIoDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmFixedIoDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmStartDependentDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmEndDependentDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); void AcpiDmVendorSmallDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); /* * dmutils */ void AcpiDmDecodeAttribute ( UINT8 Attribute); void AcpiDmIndent ( UINT32 Level); BOOLEAN AcpiDmCommaIfListMember ( ACPI_PARSE_OBJECT *Op); void AcpiDmCommaIfFieldMember ( ACPI_PARSE_OBJECT *Op); /* * dmrestag */ void AcpiDmFindResources ( ACPI_PARSE_OBJECT *Root); void AcpiDmCheckResourceReference ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); /* * dmcstyle */ BOOLEAN AcpiDmCheckForSymbolicOpcode ( ACPI_PARSE_OBJECT *Op, ACPI_OP_WALK_INFO *Info); void AcpiDmCloseOperator ( ACPI_PARSE_OBJECT *Op); /* * dmtables */ ACPI_STATUS AcpiDmProcessSwitch ( ACPI_PARSE_OBJECT *Op); void AcpiDmClearTempList( void); /* * dmtables */ void AdDisassemblerHeader ( char *Filename, UINT8 TableType); #define ACPI_IS_AML_TABLE 0 #define ACPI_IS_DATA_TABLE 1 /* * adisasm */ ACPI_STATUS AdAmlDisassemble ( BOOLEAN OutToFile, char *Filename, char *Prefix, char **OutFilename); ACPI_STATUS AdGetLocalTables ( void); ACPI_STATUS AdParseTable ( ACPI_TABLE_HEADER *Table, ACPI_OWNER_ID *OwnerId, BOOLEAN LoadTable, BOOLEAN External); ACPI_STATUS AdDisplayTables ( char *Filename, ACPI_TABLE_HEADER *Table); ACPI_STATUS AdDisplayStatistics ( void); /* * dmwalk */ UINT32 AcpiDmBlockType ( ACPI_PARSE_OBJECT *Op); #endif /* __ACDISASM_H__ */ acpica-unix-20250404/source/include/achware.h0000775000175000017500000001313114773714133020247 0ustar ivanhuivanhu/****************************************************************************** * * Name: achware.h -- hardware specific interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACHWARE_H__ #define __ACHWARE_H__ /* Values for the _SST predefined method */ #define ACPI_SST_INDICATOR_OFF 0 #define ACPI_SST_WORKING 1 #define ACPI_SST_WAKING 2 #define ACPI_SST_SLEEPING 3 #define ACPI_SST_SLEEP_CONTEXT 4 /* * hwacpi - high level functions */ ACPI_STATUS AcpiHwSetMode ( UINT32 Mode); UINT32 AcpiHwGetMode ( void); /* * hwregs - ACPI Register I/O */ ACPI_STATUS AcpiHwValidateRegister ( ACPI_GENERIC_ADDRESS *Reg, UINT8 MaxBitWidth, UINT64 *Address); ACPI_STATUS AcpiHwRead ( UINT64 *Value, ACPI_GENERIC_ADDRESS *Reg); ACPI_STATUS AcpiHwWrite ( UINT64 Value, ACPI_GENERIC_ADDRESS *Reg); ACPI_BIT_REGISTER_INFO * AcpiHwGetBitRegisterInfo ( UINT32 RegisterId); ACPI_STATUS AcpiHwWritePm1Control ( UINT32 Pm1aControl, UINT32 Pm1bControl); ACPI_STATUS AcpiHwRegisterRead ( UINT32 RegisterId, UINT32 *ReturnValue); ACPI_STATUS AcpiHwRegisterWrite ( UINT32 RegisterId, UINT32 Value); ACPI_STATUS AcpiHwClearAcpiStatus ( void); /* * hwsleep - sleep/wake support (Legacy sleep registers) */ ACPI_STATUS AcpiHwLegacySleep ( UINT8 SleepState); ACPI_STATUS AcpiHwLegacyWakePrep ( UINT8 SleepState); ACPI_STATUS AcpiHwLegacyWake ( UINT8 SleepState); /* * hwesleep - sleep/wake support (Extended FADT-V5 sleep registers) */ void AcpiHwExecuteSleepMethod ( char *MethodName, UINT32 IntegerArgument); ACPI_STATUS AcpiHwExtendedSleep ( UINT8 SleepState); ACPI_STATUS AcpiHwExtendedWakePrep ( UINT8 SleepState); ACPI_STATUS AcpiHwExtendedWake ( UINT8 SleepState); /* * hwvalid - Port I/O with validation */ ACPI_STATUS AcpiHwReadPort ( ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width); ACPI_STATUS AcpiHwWritePort ( ACPI_IO_ADDRESS Address, UINT32 Value, UINT32 Width); /* * hwgpe - GPE support */ UINT32 AcpiHwGetGpeRegisterBit ( ACPI_GPE_EVENT_INFO *GpeEventInfo); ACPI_STATUS AcpiHwLowSetGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo, UINT32 Action); ACPI_STATUS AcpiHwDisableGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context); ACPI_STATUS AcpiHwClearGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo); ACPI_STATUS AcpiHwClearGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context); ACPI_STATUS AcpiHwGetGpeStatus ( ACPI_GPE_EVENT_INFO *GpeEventInfo, ACPI_EVENT_STATUS *EventStatus); ACPI_STATUS AcpiHwDisableAllGpes ( void); ACPI_STATUS AcpiHwEnableAllRuntimeGpes ( void); ACPI_STATUS AcpiHwEnableAllWakeupGpes ( void); UINT8 AcpiHwCheckAllGpes ( void); ACPI_STATUS AcpiHwEnableRuntimeGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context); /* * hwpci - PCI configuration support */ ACPI_STATUS AcpiHwDerivePciId ( ACPI_PCI_ID *PciId, ACPI_HANDLE RootPciDevice, ACPI_HANDLE PciRegion); #endif /* __ACHWARE_H__ */ acpica-unix-20250404/source/include/actbl.h0000775000175000017500000005730014773714133017730 0ustar ivanhuivanhu/****************************************************************************** * * Name: actbl.h - Basic ACPI Table Definitions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACTBL_H__ #define __ACTBL_H__ /******************************************************************************* * * Fundamental ACPI tables * * This file contains definitions for the ACPI tables that are directly consumed * by ACPICA. All other tables are consumed by the OS-dependent ACPI-related * device drivers and other OS support code. * * The RSDP and FACS do not use the common ACPI table header. All other ACPI * tables use the header. * ******************************************************************************/ /* * Values for description table header signatures for tables defined in this * file. Useful because they make it more difficult to inadvertently type in * the wrong signature. */ #define ACPI_SIG_DSDT "DSDT" /* Differentiated System Description Table */ #define ACPI_SIG_FADT "FACP" /* Fixed ACPI Description Table */ #define ACPI_SIG_FACS "FACS" /* Firmware ACPI Control Structure */ #define ACPI_SIG_OSDT "OSDT" /* Override System Description Table */ #define ACPI_SIG_PSDT "PSDT" /* Persistent System Description Table */ #define ACPI_SIG_RSDP "RSD PTR " /* Root System Description Pointer */ #define ACPI_SIG_RSDT "RSDT" /* Root System Description Table */ #define ACPI_SIG_XSDT "XSDT" /* Extended System Description Table */ #define ACPI_SIG_SSDT "SSDT" /* Secondary System Description Table */ #define ACPI_RSDP_NAME "RSDP" /* Short name for RSDP, not signature */ #define ACPI_OEM_NAME "OEM" /* Short name for OEM, not signature */ /* * All tables and structures must be byte-packed to match the ACPI * specification, since the tables are provided by the system BIOS */ #pragma pack(1) /* * Note: C bitfields are not used for this reason: * * "Bitfields are great and easy to read, but unfortunately the C language * does not specify the layout of bitfields in memory, which means they are * essentially useless for dealing with packed data in on-disk formats or * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me, * this decision was a design error in C. Ritchie could have picked an order * and stuck with it." Norman Ramsey. * See http://stackoverflow.com/a/1053662/41661 */ /******************************************************************************* * * Master ACPI Table Header. This common header is used by all ACPI tables * except the RSDP and FACS. * ******************************************************************************/ typedef struct acpi_table_header { char Signature[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; /* ASCII table signature */ UINT32 Length; /* Length of table in bytes, including this header */ UINT8 Revision; /* ACPI Specification minor version number */ UINT8 Checksum; /* To make sum of entire table == 0 */ char OemId[ACPI_OEM_ID_SIZE] ACPI_NONSTRING; /* ASCII OEM identification */ char OemTableId[ACPI_OEM_TABLE_ID_SIZE] ACPI_NONSTRING; /* ASCII OEM table identification */ UINT32 OemRevision; /* OEM revision number */ char AslCompilerId[ACPI_NAMESEG_SIZE]; /* ASCII ASL compiler vendor ID */ UINT32 AslCompilerRevision; /* ASL compiler version */ } ACPI_TABLE_HEADER; /******************************************************************************* * * GAS - Generic Address Structure (ACPI 2.0+) * * Note: Since this structure is used in the ACPI tables, it is byte aligned. * If misaligned access is not supported by the hardware, accesses to the * 64-bit Address field must be performed with care. * ******************************************************************************/ typedef struct acpi_generic_address { UINT8 SpaceId; /* Address space where struct or register exists */ UINT8 BitWidth; /* Size in bits of given register */ UINT8 BitOffset; /* Bit offset within the register */ UINT8 AccessWidth; /* Minimum Access size (ACPI 3.0) */ UINT64 Address; /* 64-bit address of struct or register */ } ACPI_GENERIC_ADDRESS; /******************************************************************************* * * RSDP - Root System Description Pointer (Signature is "RSD PTR ") * Version 2 * ******************************************************************************/ typedef struct acpi_table_rsdp { char Signature[8]; /* ACPI signature, contains "RSD PTR " */ UINT8 Checksum; /* ACPI 1.0 checksum */ char OemId[ACPI_OEM_ID_SIZE]; /* OEM identification */ UINT8 Revision; /* Must be (0) for ACPI 1.0 or (2) for ACPI 2.0+ */ UINT32 RsdtPhysicalAddress; /* 32-bit physical address of the RSDT */ UINT32 Length; /* Table length in bytes, including header (ACPI 2.0+) */ UINT64 XsdtPhysicalAddress; /* 64-bit physical address of the XSDT (ACPI 2.0+) */ UINT8 ExtendedChecksum; /* Checksum of entire table (ACPI 2.0+) */ UINT8 Reserved[3]; /* Reserved, must be zero */ } ACPI_TABLE_RSDP; /* Standalone struct for the ACPI 1.0 RSDP */ typedef struct acpi_rsdp_common { char Signature[8]; UINT8 Checksum; char OemId[ACPI_OEM_ID_SIZE]; UINT8 Revision; UINT32 RsdtPhysicalAddress; } ACPI_RSDP_COMMON; /* Standalone struct for the extended part of the RSDP (ACPI 2.0+) */ typedef struct acpi_rsdp_extension { UINT32 Length; UINT64 XsdtPhysicalAddress; UINT8 ExtendedChecksum; UINT8 Reserved[3]; } ACPI_RSDP_EXTENSION; /******************************************************************************* * * RSDT/XSDT - Root System Description Tables * Version 1 (both) * ******************************************************************************/ typedef struct acpi_table_rsdt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 TableOffsetEntry[1]; /* Array of pointers to ACPI tables */ } ACPI_TABLE_RSDT; typedef struct acpi_table_xsdt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT64 TableOffsetEntry[1]; /* Array of pointers to ACPI tables */ } ACPI_TABLE_XSDT; #define ACPI_RSDT_ENTRY_SIZE (sizeof (UINT32)) #define ACPI_XSDT_ENTRY_SIZE (sizeof (UINT64)) /******************************************************************************* * * FACS - Firmware ACPI Control Structure (FACS) * ******************************************************************************/ typedef struct acpi_table_facs { char Signature[4]; /* ASCII table signature */ UINT32 Length; /* Length of structure, in bytes */ UINT32 HardwareSignature; /* Hardware configuration signature */ UINT32 FirmwareWakingVector; /* 32-bit physical address of the Firmware Waking Vector */ UINT32 GlobalLock; /* Global Lock for shared hardware resources */ UINT32 Flags; UINT64 XFirmwareWakingVector; /* 64-bit version of the Firmware Waking Vector (ACPI 2.0+) */ UINT8 Version; /* Version of this table (ACPI 2.0+) */ UINT8 Reserved[3]; /* Reserved, must be zero */ UINT32 OspmFlags; /* Flags to be set by OSPM (ACPI 4.0) */ UINT8 Reserved1[24]; /* Reserved, must be zero */ } ACPI_TABLE_FACS; /* Masks for GlobalLock flag field above */ #define ACPI_GLOCK_PENDING (1) /* 00: Pending global lock ownership */ #define ACPI_GLOCK_OWNED (1<<1) /* 01: Global lock is owned */ /* Masks for Flags field above */ #define ACPI_FACS_S4_BIOS_PRESENT (1) /* 00: S4BIOS support is present */ #define ACPI_FACS_64BIT_WAKE (1<<1) /* 01: 64-bit wake vector supported (ACPI 4.0) */ /* Masks for OspmFlags field above */ #define ACPI_FACS_64BIT_ENVIRONMENT (1) /* 00: 64-bit wake environment is required (ACPI 4.0) */ /******************************************************************************* * * FADT - Fixed ACPI Description Table (Signature "FACP") * Version 6 * ******************************************************************************/ /* Fields common to all versions of the FADT */ typedef struct acpi_table_fadt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Facs; /* 32-bit physical address of FACS */ UINT32 Dsdt; /* 32-bit physical address of DSDT */ UINT8 Model; /* System Interrupt Model (ACPI 1.0) - not used in ACPI 2.0+ */ UINT8 PreferredProfile; /* Conveys preferred power management profile to OSPM. */ UINT16 SciInterrupt; /* System vector of SCI interrupt */ UINT32 SmiCommand; /* 32-bit Port address of SMI command port */ UINT8 AcpiEnable; /* Value to write to SMI_CMD to enable ACPI */ UINT8 AcpiDisable; /* Value to write to SMI_CMD to disable ACPI */ UINT8 S4BiosRequest; /* Value to write to SMI_CMD to enter S4BIOS state */ UINT8 PstateControl; /* Processor performance state control*/ UINT32 Pm1aEventBlock; /* 32-bit port address of Power Mgt 1a Event Reg Blk */ UINT32 Pm1bEventBlock; /* 32-bit port address of Power Mgt 1b Event Reg Blk */ UINT32 Pm1aControlBlock; /* 32-bit port address of Power Mgt 1a Control Reg Blk */ UINT32 Pm1bControlBlock; /* 32-bit port address of Power Mgt 1b Control Reg Blk */ UINT32 Pm2ControlBlock; /* 32-bit port address of Power Mgt 2 Control Reg Blk */ UINT32 PmTimerBlock; /* 32-bit port address of Power Mgt Timer Ctrl Reg Blk */ UINT32 Gpe0Block; /* 32-bit port address of General Purpose Event 0 Reg Blk */ UINT32 Gpe1Block; /* 32-bit port address of General Purpose Event 1 Reg Blk */ UINT8 Pm1EventLength; /* Byte Length of ports at Pm1xEventBlock */ UINT8 Pm1ControlLength; /* Byte Length of ports at Pm1xControlBlock */ UINT8 Pm2ControlLength; /* Byte Length of ports at Pm2ControlBlock */ UINT8 PmTimerLength; /* Byte Length of ports at PmTimerBlock */ UINT8 Gpe0BlockLength; /* Byte Length of ports at Gpe0Block */ UINT8 Gpe1BlockLength; /* Byte Length of ports at Gpe1Block */ UINT8 Gpe1Base; /* Offset in GPE number space where GPE1 events start */ UINT8 CstControl; /* Support for the _CST object and C-States change notification */ UINT16 C2Latency; /* Worst case HW latency to enter/exit C2 state */ UINT16 C3Latency; /* Worst case HW latency to enter/exit C3 state */ UINT16 FlushSize; /* Processor memory cache line width, in bytes */ UINT16 FlushStride; /* Number of flush strides that need to be read */ UINT8 DutyOffset; /* Processor duty cycle index in processor P_CNT reg */ UINT8 DutyWidth; /* Processor duty cycle value bit width in P_CNT register */ UINT8 DayAlarm; /* Index to day-of-month alarm in RTC CMOS RAM */ UINT8 MonthAlarm; /* Index to month-of-year alarm in RTC CMOS RAM */ UINT8 Century; /* Index to century in RTC CMOS RAM */ UINT16 BootFlags; /* IA-PC Boot Architecture Flags (see below for individual flags) */ UINT8 Reserved; /* Reserved, must be zero */ UINT32 Flags; /* Miscellaneous flag bits (see below for individual flags) */ ACPI_GENERIC_ADDRESS ResetRegister; /* 64-bit address of the Reset register */ UINT8 ResetValue; /* Value to write to the ResetRegister port to reset the system */ UINT16 ArmBootFlags; /* ARM-Specific Boot Flags (see below for individual flags) (ACPI 5.1) */ UINT8 MinorRevision; /* FADT Minor Revision (ACPI 5.1) */ UINT64 XFacs; /* 64-bit physical address of FACS */ UINT64 XDsdt; /* 64-bit physical address of DSDT */ ACPI_GENERIC_ADDRESS XPm1aEventBlock; /* 64-bit Extended Power Mgt 1a Event Reg Blk address */ ACPI_GENERIC_ADDRESS XPm1bEventBlock; /* 64-bit Extended Power Mgt 1b Event Reg Blk address */ ACPI_GENERIC_ADDRESS XPm1aControlBlock; /* 64-bit Extended Power Mgt 1a Control Reg Blk address */ ACPI_GENERIC_ADDRESS XPm1bControlBlock; /* 64-bit Extended Power Mgt 1b Control Reg Blk address */ ACPI_GENERIC_ADDRESS XPm2ControlBlock; /* 64-bit Extended Power Mgt 2 Control Reg Blk address */ ACPI_GENERIC_ADDRESS XPmTimerBlock; /* 64-bit Extended Power Mgt Timer Ctrl Reg Blk address */ ACPI_GENERIC_ADDRESS XGpe0Block; /* 64-bit Extended General Purpose Event 0 Reg Blk address */ ACPI_GENERIC_ADDRESS XGpe1Block; /* 64-bit Extended General Purpose Event 1 Reg Blk address */ ACPI_GENERIC_ADDRESS SleepControl; /* 64-bit Sleep Control register (ACPI 5.0) */ ACPI_GENERIC_ADDRESS SleepStatus; /* 64-bit Sleep Status register (ACPI 5.0) */ UINT64 HypervisorId; /* Hypervisor Vendor ID (ACPI 6.0) */ } ACPI_TABLE_FADT; /* Masks for FADT IA-PC Boot Architecture Flags (boot_flags) [Vx]=Introduced in this FADT revision */ #define ACPI_FADT_LEGACY_DEVICES (1) /* 00: [V2] System has LPC or ISA bus devices */ #define ACPI_FADT_8042 (1<<1) /* 01: [V3] System has an 8042 controller on port 60/64 */ #define ACPI_FADT_NO_VGA (1<<2) /* 02: [V4] It is not safe to probe for VGA hardware */ #define ACPI_FADT_NO_MSI (1<<3) /* 03: [V4] Message Signaled Interrupts (MSI) must not be enabled */ #define ACPI_FADT_NO_ASPM (1<<4) /* 04: [V4] PCIe ASPM control must not be enabled */ #define ACPI_FADT_NO_CMOS_RTC (1<<5) /* 05: [V5] No CMOS real-time clock present */ /* Masks for FADT ARM Boot Architecture Flags (arm_boot_flags) ACPI 5.1 */ #define ACPI_FADT_PSCI_COMPLIANT (1) /* 00: [V5+] PSCI 0.2+ is implemented */ #define ACPI_FADT_PSCI_USE_HVC (1<<1) /* 01: [V5+] HVC must be used instead of SMC as the PSCI conduit */ /* Masks for FADT flags */ #define ACPI_FADT_WBINVD (1) /* 00: [V1] The WBINVD instruction works properly */ #define ACPI_FADT_WBINVD_FLUSH (1<<1) /* 01: [V1] WBINVD flushes but does not invalidate caches */ #define ACPI_FADT_C1_SUPPORTED (1<<2) /* 02: [V1] All processors support C1 state */ #define ACPI_FADT_C2_MP_SUPPORTED (1<<3) /* 03: [V1] C2 state works on MP system */ #define ACPI_FADT_POWER_BUTTON (1<<4) /* 04: [V1] Power button is handled as a control method device */ #define ACPI_FADT_SLEEP_BUTTON (1<<5) /* 05: [V1] Sleep button is handled as a control method device */ #define ACPI_FADT_FIXED_RTC (1<<6) /* 06: [V1] RTC wakeup status is not in fixed register space */ #define ACPI_FADT_S4_RTC_WAKE (1<<7) /* 07: [V1] RTC alarm can wake system from S4 */ #define ACPI_FADT_32BIT_TIMER (1<<8) /* 08: [V1] ACPI timer width is 32-bit (0=24-bit) */ #define ACPI_FADT_DOCKING_SUPPORTED (1<<9) /* 09: [V1] Docking supported */ #define ACPI_FADT_RESET_REGISTER (1<<10) /* 10: [V2] System reset via the FADT RESET_REG supported */ #define ACPI_FADT_SEALED_CASE (1<<11) /* 11: [V3] No internal expansion capabilities and case is sealed */ #define ACPI_FADT_HEADLESS (1<<12) /* 12: [V3] No local video capabilities or local input devices */ #define ACPI_FADT_SLEEP_TYPE (1<<13) /* 13: [V3] Must execute native instruction after writing SLP_TYPx register */ #define ACPI_FADT_PCI_EXPRESS_WAKE (1<<14) /* 14: [V4] System supports PCIEXP_WAKE (STS/EN) bits (ACPI 3.0) */ #define ACPI_FADT_PLATFORM_CLOCK (1<<15) /* 15: [V4] OSPM should use platform-provided timer (ACPI 3.0) */ #define ACPI_FADT_S4_RTC_VALID (1<<16) /* 16: [V4] Contents of RTC_STS valid after S4 wake (ACPI 3.0) */ #define ACPI_FADT_REMOTE_POWER_ON (1<<17) /* 17: [V4] System is compatible with remote power on (ACPI 3.0) */ #define ACPI_FADT_APIC_CLUSTER (1<<18) /* 18: [V4] All local APICs must use cluster model (ACPI 3.0) */ #define ACPI_FADT_APIC_PHYSICAL (1<<19) /* 19: [V4] All local xAPICs must use physical dest mode (ACPI 3.0) */ #define ACPI_FADT_HW_REDUCED (1<<20) /* 20: [V5] ACPI hardware is not implemented (ACPI 5.0) */ #define ACPI_FADT_LOW_POWER_S0 (1<<21) /* 21: [V5] S0 power savings are equal or better than S3 (ACPI 5.0) */ /* Values for PreferredProfile (Preferred Power Management Profiles) */ enum AcpiPreferredPmProfiles { PM_UNSPECIFIED = 0, PM_DESKTOP = 1, PM_MOBILE = 2, PM_WORKSTATION = 3, PM_ENTERPRISE_SERVER = 4, PM_SOHO_SERVER = 5, PM_APPLIANCE_PC = 6, PM_PERFORMANCE_SERVER = 7, PM_TABLET = 8 }; /* Values for SleepStatus and SleepControl registers (V5+ FADT) */ #define ACPI_X_WAKE_STATUS 0x80 #define ACPI_X_SLEEP_TYPE_MASK 0x1C #define ACPI_X_SLEEP_TYPE_POSITION 0x02 #define ACPI_X_SLEEP_ENABLE 0x20 /* Reset to default packing */ #pragma pack() /* * Internal table-related structures */ typedef union acpi_name_union { UINT32 Integer; char Ascii[4]; } ACPI_NAME_UNION; /* Internal ACPI Table Descriptor. One per ACPI table. */ typedef struct acpi_table_desc { ACPI_PHYSICAL_ADDRESS Address; ACPI_TABLE_HEADER *Pointer; UINT32 Length; /* Length fixed at 32 bits (fixed in table header) */ ACPI_NAME_UNION Signature; ACPI_OWNER_ID OwnerId; UINT8 Flags; UINT16 ValidationCount; } ACPI_TABLE_DESC; /* * Maximum value of the ValidationCount field in ACPI_TABLE_DESC. * When reached, ValidationCount cannot be changed any more and the table will * be permanently regarded as validated. * * This is to prevent situations in which unbalanced table get/put operations * may cause premature table unmapping in the OS to happen. * * The maximum validation count can be defined to any value, but should be * greater than the maximum number of OS early stage mapping slots to avoid * leaking early stage table mappings to the late stage. */ #define ACPI_MAX_TABLE_VALIDATIONS ACPI_UINT16_MAX /* Masks for Flags field above */ #define ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL (0) /* Virtual address, external maintained */ #define ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL (1) /* Physical address, internally mapped */ #define ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL (2) /* Virtual address, internallly allocated */ #define ACPI_TABLE_ORIGIN_MASK (3) #define ACPI_TABLE_IS_VERIFIED (4) #define ACPI_TABLE_IS_LOADED (8) /* * Get the remaining ACPI tables */ #include "actbl1.h" #include "actbl2.h" #include "actbl3.h" /* Macros used to generate offsets to specific table fields */ #define ACPI_FADT_OFFSET(f) (UINT16) ACPI_OFFSET (ACPI_TABLE_FADT, f) /* * Sizes of the various flavors of FADT. We need to look closely * at the FADT length because the version number essentially tells * us nothing because of many BIOS bugs where the version does not * match the expected length. In other words, the length of the * FADT is the bottom line as to what the version really is. * * For reference, the values below are as follows: * FADT V1 size: 0x074 * FADT V2 size: 0x084 * FADT V3 size: 0x0F4 * FADT V4 size: 0x0F4 * FADT V5 size: 0x10C * FADT V6 size: 0x114 */ #define ACPI_FADT_V1_SIZE (UINT32) (ACPI_FADT_OFFSET (Flags) + 4) #define ACPI_FADT_V2_SIZE (UINT32) (ACPI_FADT_OFFSET (MinorRevision) + 1) #define ACPI_FADT_V3_SIZE (UINT32) (ACPI_FADT_OFFSET (SleepControl)) #define ACPI_FADT_V5_SIZE (UINT32) (ACPI_FADT_OFFSET (HypervisorId)) #define ACPI_FADT_V6_SIZE (UINT32) (sizeof (ACPI_TABLE_FADT)) #define ACPI_FADT_CONFORMANCE "ACPI 6.1 (FADT version 6)" #endif /* __ACTBL_H__ */ acpica-unix-20250404/source/include/acpiosxf.h0000775000175000017500000003400514773714133020454 0ustar ivanhuivanhu/****************************************************************************** * * Name: acpiosxf.h - All interfaces to the OS Services Layer (OSL). These * interfaces must be implemented by OSL to interface the * ACPI components to the host operating system. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACPIOSXF_H__ #define __ACPIOSXF_H__ #include "platform/acenv.h" #include "actypes.h" /* Types for AcpiOsExecute */ typedef enum { OSL_GLOBAL_LOCK_HANDLER, OSL_NOTIFY_HANDLER, OSL_GPE_HANDLER, OSL_DEBUGGER_MAIN_THREAD, OSL_DEBUGGER_EXEC_THREAD, OSL_EC_POLL_HANDLER, OSL_EC_BURST_HANDLER } ACPI_EXECUTE_TYPE; #define ACPI_NO_UNIT_LIMIT ((UINT32) -1) #define ACPI_MUTEX_SEM 1 /* Functions for AcpiOsSignal */ #define ACPI_SIGNAL_FATAL 0 #define ACPI_SIGNAL_BREAKPOINT 1 typedef struct acpi_signal_fatal_info { UINT32 Type; UINT32 Code; UINT32 Argument; } ACPI_SIGNAL_FATAL_INFO; /* * OSL Initialization and shutdown primitives */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInitialize ACPI_STATUS AcpiOsInitialize ( void); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTerminate ACPI_STATUS AcpiOsTerminate ( void); #endif /* * ACPI Table interfaces */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetRootPointer ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer ( void); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPredefinedOverride ACPI_STATUS AcpiOsPredefinedOverride ( const ACPI_PREDEFINED_NAMES *InitVal, ACPI_STRING *NewVal); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTableOverride ACPI_STATUS AcpiOsTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPhysicalTableOverride ACPI_STATUS AcpiOsPhysicalTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_PHYSICAL_ADDRESS *NewAddress, UINT32 *NewTableLength); #endif /* * Spinlock primitives */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateLock ACPI_STATUS AcpiOsCreateLock ( ACPI_SPINLOCK *OutHandle); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteLock void AcpiOsDeleteLock ( ACPI_SPINLOCK Handle); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireLock ACPI_CPU_FLAGS AcpiOsAcquireLock ( ACPI_SPINLOCK Handle); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseLock void AcpiOsReleaseLock ( ACPI_SPINLOCK Handle, ACPI_CPU_FLAGS Flags); #endif /* * Semaphore primitives */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateSemaphore ACPI_STATUS AcpiOsCreateSemaphore ( UINT32 MaxUnits, UINT32 InitialUnits, ACPI_SEMAPHORE *OutHandle); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteSemaphore ACPI_STATUS AcpiOsDeleteSemaphore ( ACPI_SEMAPHORE Handle); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitSemaphore ACPI_STATUS AcpiOsWaitSemaphore ( ACPI_SEMAPHORE Handle, UINT32 Units, UINT16 Timeout); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSignalSemaphore ACPI_STATUS AcpiOsSignalSemaphore ( ACPI_SEMAPHORE Handle, UINT32 Units); #endif /* * Mutex primitives. May be configured to use semaphores instead via * ACPI_MUTEX_TYPE (see platform/acenv.h) */ #if (ACPI_MUTEX_TYPE != ACPI_BINARY_SEMAPHORE) #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateMutex ACPI_STATUS AcpiOsCreateMutex ( ACPI_MUTEX *OutHandle); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteMutex void AcpiOsDeleteMutex ( ACPI_MUTEX Handle); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireMutex ACPI_STATUS AcpiOsAcquireMutex ( ACPI_MUTEX Handle, UINT16 Timeout); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseMutex void AcpiOsReleaseMutex ( ACPI_MUTEX Handle); #endif #endif /* * Memory allocation and mapping */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocate void * AcpiOsAllocate ( ACPI_SIZE Size); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAllocateZeroed void * AcpiOsAllocateZeroed ( ACPI_SIZE Size); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsFree void AcpiOsFree ( void * Memory); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsMapMemory void * AcpiOsMapMemory ( ACPI_PHYSICAL_ADDRESS Where, ACPI_SIZE Length); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsUnmapMemory void AcpiOsUnmapMemory ( void *LogicalAddress, ACPI_SIZE Size); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetPhysicalAddress ACPI_STATUS AcpiOsGetPhysicalAddress ( void *LogicalAddress, ACPI_PHYSICAL_ADDRESS *PhysicalAddress); #endif /* * Memory/Object Cache */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCreateCache ACPI_STATUS AcpiOsCreateCache ( char *CacheName, UINT16 ObjectSize, UINT16 MaxDepth, ACPI_CACHE_T **ReturnCache); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsDeleteCache ACPI_STATUS AcpiOsDeleteCache ( ACPI_CACHE_T *Cache); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPurgeCache ACPI_STATUS AcpiOsPurgeCache ( ACPI_CACHE_T *Cache); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsAcquireObject void * AcpiOsAcquireObject ( ACPI_CACHE_T *Cache); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReleaseObject ACPI_STATUS AcpiOsReleaseObject ( ACPI_CACHE_T *Cache, void *Object); #endif /* * Interrupt handlers */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInstallInterruptHandler ACPI_STATUS AcpiOsInstallInterruptHandler ( UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine, void *Context); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsRemoveInterruptHandler ACPI_STATUS AcpiOsRemoveInterruptHandler ( UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine); #endif /* * Threads and Scheduling */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetThreadId ACPI_THREAD_ID AcpiOsGetThreadId ( void); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsExecute ACPI_STATUS AcpiOsExecute ( ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function, void *Context); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitEventsComplete void AcpiOsWaitEventsComplete ( void); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSleep void AcpiOsSleep ( UINT64 Milliseconds); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsStall void AcpiOsStall ( UINT32 Microseconds); #endif /* * Platform and hardware-independent I/O interfaces */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadPort ACPI_STATUS AcpiOsReadPort ( ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritePort ACPI_STATUS AcpiOsWritePort ( ACPI_IO_ADDRESS Address, UINT32 Value, UINT32 Width); #endif /* * Platform and hardware-independent physical memory interfaces */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadMemory ACPI_STATUS AcpiOsReadMemory ( ACPI_PHYSICAL_ADDRESS Address, UINT64 *Value, UINT32 Width); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWriteMemory ACPI_STATUS AcpiOsWriteMemory ( ACPI_PHYSICAL_ADDRESS Address, UINT64 Value, UINT32 Width); #endif /* * Platform and hardware-independent PCI configuration space access * Note: Can't use "Register" as a parameter, changed to "Reg" -- * certain compilers complain. */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadPciConfiguration ACPI_STATUS AcpiOsReadPciConfiguration ( ACPI_PCI_ID *PciId, UINT32 Reg, UINT64 *Value, UINT32 Width); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritePciConfiguration ACPI_STATUS AcpiOsWritePciConfiguration ( ACPI_PCI_ID *PciId, UINT32 Reg, UINT64 Value, UINT32 Width); #endif /* * Miscellaneous */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsReadable BOOLEAN AcpiOsReadable ( void *Pointer, ACPI_SIZE Length); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWritable BOOLEAN AcpiOsWritable ( void *Pointer, ACPI_SIZE Length); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTimer UINT64 AcpiOsGetTimer ( void); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsSignal ACPI_STATUS AcpiOsSignal ( UINT32 Function, void *Info); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsEnterSleep ACPI_STATUS AcpiOsEnterSleep ( UINT8 SleepState, UINT32 RegaValue, UINT32 RegbValue); #endif /* * Debug print routines */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsPrintf ACPI_PRINTF_LIKE (1) void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf ( const char *Format, ...); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsVprintf void AcpiOsVprintf ( const char *Format, va_list Args); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsRedirectOutput void AcpiOsRedirectOutput ( void *Destination); #endif /* * Debug IO */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetLine ACPI_STATUS AcpiOsGetLine ( char *Buffer, UINT32 BufferLength, UINT32 *BytesRead); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsInitializeDebugger ACPI_STATUS AcpiOsInitializeDebugger ( void); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTerminateDebugger void AcpiOsTerminateDebugger ( void); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsWaitCommandReady ACPI_STATUS AcpiOsWaitCommandReady ( void); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsNotifyCommandComplete ACPI_STATUS AcpiOsNotifyCommandComplete ( void); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsTracePoint void AcpiOsTracePoint ( ACPI_TRACE_EVENT_TYPE Type, BOOLEAN Begin, UINT8 *Aml, char *Pathname); #endif /* * Obtain ACPI table(s) */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByName ACPI_STATUS AcpiOsGetTableByName ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByIndex ACPI_STATUS AcpiOsGetTableByIndex ( UINT32 Index, ACPI_TABLE_HEADER **Table, UINT32 *Instance, ACPI_PHYSICAL_ADDRESS *Address); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetTableByAddress ACPI_STATUS AcpiOsGetTableByAddress ( ACPI_PHYSICAL_ADDRESS Address, ACPI_TABLE_HEADER **Table); #endif /* * Directory manipulation */ #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsOpenDirectory void * AcpiOsOpenDirectory ( char *Pathname, char *WildcardSpec, char RequestedFileType); #endif /* RequesteFileType values */ #define REQUEST_FILE_ONLY 0 #define REQUEST_DIR_ONLY 1 #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsGetNextFilename char * AcpiOsGetNextFilename ( void *DirHandle); #endif #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_AcpiOsCloseDirectory void AcpiOsCloseDirectory ( void *DirHandle); #endif #endif /* __ACPIOSXF_H__ */ acpica-unix-20250404/source/include/acexcep.h0000775000175000017500000005005714773714133020255 0ustar ivanhuivanhu/****************************************************************************** * * Name: acexcep.h - Exception codes returned by the ACPI subsystem * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACEXCEP_H__ #define __ACEXCEP_H__ /* This module contains all possible exception codes for ACPI_STATUS */ /* * Exception code classes */ #define AE_CODE_ENVIRONMENTAL 0x0000 /* General ACPICA environment */ #define AE_CODE_PROGRAMMER 0x1000 /* External ACPICA interface caller */ #define AE_CODE_ACPI_TABLES 0x2000 /* ACPI tables */ #define AE_CODE_AML 0x3000 /* From executing AML code */ #define AE_CODE_CONTROL 0x4000 /* Internal control codes */ #define AE_CODE_MAX 0x4000 #define AE_CODE_MASK 0xF000 /* * Macros to insert the exception code classes */ #define EXCEP_ENV(code) ((ACPI_STATUS) (code | AE_CODE_ENVIRONMENTAL)) #define EXCEP_PGM(code) ((ACPI_STATUS) (code | AE_CODE_PROGRAMMER)) #define EXCEP_TBL(code) ((ACPI_STATUS) (code | AE_CODE_ACPI_TABLES)) #define EXCEP_AML(code) ((ACPI_STATUS) (code | AE_CODE_AML)) #define EXCEP_CTL(code) ((ACPI_STATUS) (code | AE_CODE_CONTROL)) /* * Exception info table. The "Description" field is used only by the * ACPICA help application (acpihelp). */ typedef struct acpi_exception_info { char *Name; #if defined (ACPI_HELP_APP) || defined (ACPI_ASL_COMPILER) char *Description; #endif } ACPI_EXCEPTION_INFO; #if defined (ACPI_HELP_APP) || defined (ACPI_ASL_COMPILER) #define EXCEP_TXT(Name,Description) {Name, Description} #else #define EXCEP_TXT(Name,Description) {Name} #endif /* * Success is always zero, failure is non-zero */ #define ACPI_SUCCESS(a) (!(a)) #define ACPI_FAILURE(a) (a) #define AE_OK (ACPI_STATUS) 0x0000 #define ACPI_ENV_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_ENVIRONMENTAL) #define ACPI_AML_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_AML) #define ACPI_PROG_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_PROGRAMMER) #define ACPI_TABLE_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_ACPI_TABLES) #define ACPI_CNTL_EXCEPTION(Status) (((Status) & AE_CODE_MASK) == AE_CODE_CONTROL) /* * Environmental exceptions */ #define AE_ERROR EXCEP_ENV (0x0001) #define AE_NO_ACPI_TABLES EXCEP_ENV (0x0002) #define AE_NO_NAMESPACE EXCEP_ENV (0x0003) #define AE_NO_MEMORY EXCEP_ENV (0x0004) #define AE_NOT_FOUND EXCEP_ENV (0x0005) #define AE_NOT_EXIST EXCEP_ENV (0x0006) #define AE_ALREADY_EXISTS EXCEP_ENV (0x0007) #define AE_TYPE EXCEP_ENV (0x0008) #define AE_NULL_OBJECT EXCEP_ENV (0x0009) #define AE_NULL_ENTRY EXCEP_ENV (0x000A) #define AE_BUFFER_OVERFLOW EXCEP_ENV (0x000B) #define AE_STACK_OVERFLOW EXCEP_ENV (0x000C) #define AE_STACK_UNDERFLOW EXCEP_ENV (0x000D) #define AE_NOT_IMPLEMENTED EXCEP_ENV (0x000E) #define AE_SUPPORT EXCEP_ENV (0x000F) #define AE_LIMIT EXCEP_ENV (0x0010) #define AE_TIME EXCEP_ENV (0x0011) #define AE_ACQUIRE_DEADLOCK EXCEP_ENV (0x0012) #define AE_RELEASE_DEADLOCK EXCEP_ENV (0x0013) #define AE_NOT_ACQUIRED EXCEP_ENV (0x0014) #define AE_ALREADY_ACQUIRED EXCEP_ENV (0x0015) #define AE_NO_HARDWARE_RESPONSE EXCEP_ENV (0x0016) #define AE_NO_GLOBAL_LOCK EXCEP_ENV (0x0017) #define AE_ABORT_METHOD EXCEP_ENV (0x0018) #define AE_SAME_HANDLER EXCEP_ENV (0x0019) #define AE_NO_HANDLER EXCEP_ENV (0x001A) #define AE_OWNER_ID_LIMIT EXCEP_ENV (0x001B) #define AE_NOT_CONFIGURED EXCEP_ENV (0x001C) #define AE_ACCESS EXCEP_ENV (0x001D) #define AE_IO_ERROR EXCEP_ENV (0x001E) #define AE_NUMERIC_OVERFLOW EXCEP_ENV (0x001F) #define AE_HEX_OVERFLOW EXCEP_ENV (0x0020) #define AE_DECIMAL_OVERFLOW EXCEP_ENV (0x0021) #define AE_OCTAL_OVERFLOW EXCEP_ENV (0x0022) #define AE_END_OF_TABLE EXCEP_ENV (0x0023) #define AE_CODE_ENV_MAX 0x0023 /* * Programmer exceptions */ #define AE_BAD_PARAMETER EXCEP_PGM (0x0001) #define AE_BAD_CHARACTER EXCEP_PGM (0x0002) #define AE_BAD_PATHNAME EXCEP_PGM (0x0003) #define AE_BAD_DATA EXCEP_PGM (0x0004) #define AE_BAD_HEX_CONSTANT EXCEP_PGM (0x0005) #define AE_BAD_OCTAL_CONSTANT EXCEP_PGM (0x0006) #define AE_BAD_DECIMAL_CONSTANT EXCEP_PGM (0x0007) #define AE_MISSING_ARGUMENTS EXCEP_PGM (0x0008) #define AE_BAD_ADDRESS EXCEP_PGM (0x0009) #define AE_CODE_PGM_MAX 0x0009 /* * Acpi table exceptions */ #define AE_BAD_SIGNATURE EXCEP_TBL (0x0001) #define AE_BAD_HEADER EXCEP_TBL (0x0002) #define AE_BAD_CHECKSUM EXCEP_TBL (0x0003) #define AE_BAD_VALUE EXCEP_TBL (0x0004) #define AE_INVALID_TABLE_LENGTH EXCEP_TBL (0x0005) #define AE_CODE_TBL_MAX 0x0005 /* * AML exceptions. These are caused by problems with * the actual AML byte stream */ #define AE_AML_BAD_OPCODE EXCEP_AML (0x0001) #define AE_AML_NO_OPERAND EXCEP_AML (0x0002) #define AE_AML_OPERAND_TYPE EXCEP_AML (0x0003) #define AE_AML_OPERAND_VALUE EXCEP_AML (0x0004) #define AE_AML_UNINITIALIZED_LOCAL EXCEP_AML (0x0005) #define AE_AML_UNINITIALIZED_ARG EXCEP_AML (0x0006) #define AE_AML_UNINITIALIZED_ELEMENT EXCEP_AML (0x0007) #define AE_AML_NUMERIC_OVERFLOW EXCEP_AML (0x0008) #define AE_AML_REGION_LIMIT EXCEP_AML (0x0009) #define AE_AML_BUFFER_LIMIT EXCEP_AML (0x000A) #define AE_AML_PACKAGE_LIMIT EXCEP_AML (0x000B) #define AE_AML_DIVIDE_BY_ZERO EXCEP_AML (0x000C) #define AE_AML_BAD_NAME EXCEP_AML (0x000D) #define AE_AML_NAME_NOT_FOUND EXCEP_AML (0x000E) #define AE_AML_INTERNAL EXCEP_AML (0x000F) #define AE_AML_INVALID_SPACE_ID EXCEP_AML (0x0010) #define AE_AML_STRING_LIMIT EXCEP_AML (0x0011) #define AE_AML_NO_RETURN_VALUE EXCEP_AML (0x0012) #define AE_AML_METHOD_LIMIT EXCEP_AML (0x0013) #define AE_AML_NOT_OWNER EXCEP_AML (0x0014) #define AE_AML_MUTEX_ORDER EXCEP_AML (0x0015) #define AE_AML_MUTEX_NOT_ACQUIRED EXCEP_AML (0x0016) #define AE_AML_INVALID_RESOURCE_TYPE EXCEP_AML (0x0017) #define AE_AML_INVALID_INDEX EXCEP_AML (0x0018) #define AE_AML_REGISTER_LIMIT EXCEP_AML (0x0019) #define AE_AML_NO_WHILE EXCEP_AML (0x001A) #define AE_AML_ALIGNMENT EXCEP_AML (0x001B) #define AE_AML_NO_RESOURCE_END_TAG EXCEP_AML (0x001C) #define AE_AML_BAD_RESOURCE_VALUE EXCEP_AML (0x001D) #define AE_AML_CIRCULAR_REFERENCE EXCEP_AML (0x001E) #define AE_AML_BAD_RESOURCE_LENGTH EXCEP_AML (0x001F) #define AE_AML_ILLEGAL_ADDRESS EXCEP_AML (0x0020) #define AE_AML_LOOP_TIMEOUT EXCEP_AML (0x0021) #define AE_AML_UNINITIALIZED_NODE EXCEP_AML (0x0022) #define AE_AML_TARGET_TYPE EXCEP_AML (0x0023) #define AE_AML_PROTOCOL EXCEP_AML (0x0024) #define AE_AML_BUFFER_LENGTH EXCEP_AML (0x0025) #define AE_CODE_AML_MAX 0x0025 /* * Internal exceptions used for control */ #define AE_CTRL_RETURN_VALUE EXCEP_CTL (0x0001) #define AE_CTRL_PENDING EXCEP_CTL (0x0002) #define AE_CTRL_TERMINATE EXCEP_CTL (0x0003) #define AE_CTRL_TRUE EXCEP_CTL (0x0004) #define AE_CTRL_FALSE EXCEP_CTL (0x0005) #define AE_CTRL_DEPTH EXCEP_CTL (0x0006) #define AE_CTRL_END EXCEP_CTL (0x0007) #define AE_CTRL_TRANSFER EXCEP_CTL (0x0008) #define AE_CTRL_BREAK EXCEP_CTL (0x0009) #define AE_CTRL_CONTINUE EXCEP_CTL (0x000A) #define AE_CTRL_PARSE_CONTINUE EXCEP_CTL (0x000B) #define AE_CTRL_PARSE_PENDING EXCEP_CTL (0x000C) #define AE_CODE_CTRL_MAX 0x000C /* Exception strings for AcpiFormatException */ #ifdef ACPI_DEFINE_EXCEPTION_TABLE /* * String versions of the exception codes above * These strings must match the corresponding defines exactly */ static const ACPI_EXCEPTION_INFO AcpiGbl_ExceptionNames_Env[] = { EXCEP_TXT ("AE_OK", "No error"), EXCEP_TXT ("AE_ERROR", "Unspecified error"), EXCEP_TXT ("AE_NO_ACPI_TABLES", "ACPI tables could not be found"), EXCEP_TXT ("AE_NO_NAMESPACE", "A namespace has not been loaded"), EXCEP_TXT ("AE_NO_MEMORY", "Insufficient dynamic memory"), EXCEP_TXT ("AE_NOT_FOUND", "A requested entity is not found"), EXCEP_TXT ("AE_NOT_EXIST", "A required entity does not exist"), EXCEP_TXT ("AE_ALREADY_EXISTS", "An entity already exists"), EXCEP_TXT ("AE_TYPE", "The object type is incorrect"), EXCEP_TXT ("AE_NULL_OBJECT", "A required object was missing"), EXCEP_TXT ("AE_NULL_ENTRY", "The requested object does not exist"), EXCEP_TXT ("AE_BUFFER_OVERFLOW", "The buffer provided is too small"), EXCEP_TXT ("AE_STACK_OVERFLOW", "An internal stack overflowed"), EXCEP_TXT ("AE_STACK_UNDERFLOW", "An internal stack underflowed"), EXCEP_TXT ("AE_NOT_IMPLEMENTED", "The feature is not implemented"), EXCEP_TXT ("AE_SUPPORT", "The feature is not supported"), EXCEP_TXT ("AE_LIMIT", "A predefined limit was exceeded"), EXCEP_TXT ("AE_TIME", "A time limit or timeout expired"), EXCEP_TXT ("AE_ACQUIRE_DEADLOCK", "Internal error, attempt was made to acquire a mutex in improper order"), EXCEP_TXT ("AE_RELEASE_DEADLOCK", "Internal error, attempt was made to release a mutex in improper order"), EXCEP_TXT ("AE_NOT_ACQUIRED", "An attempt to release a mutex or Global Lock without a previous acquire"), EXCEP_TXT ("AE_ALREADY_ACQUIRED", "Internal error, attempt was made to acquire a mutex twice"), EXCEP_TXT ("AE_NO_HARDWARE_RESPONSE", "Hardware did not respond after an I/O operation"), EXCEP_TXT ("AE_NO_GLOBAL_LOCK", "There is no FACS Global Lock"), EXCEP_TXT ("AE_ABORT_METHOD", "A control method was aborted"), EXCEP_TXT ("AE_SAME_HANDLER", "Attempt was made to install the same handler that is already installed"), EXCEP_TXT ("AE_NO_HANDLER", "A handler for the operation is not installed"), EXCEP_TXT ("AE_OWNER_ID_LIMIT", "There are no more Owner IDs available for ACPI tables or control methods"), EXCEP_TXT ("AE_NOT_CONFIGURED", "The interface is not part of the current subsystem configuration"), EXCEP_TXT ("AE_ACCESS", "Permission denied for the requested operation"), EXCEP_TXT ("AE_IO_ERROR", "An I/O error occurred"), EXCEP_TXT ("AE_NUMERIC_OVERFLOW", "Overflow during string-to-integer conversion"), EXCEP_TXT ("AE_HEX_OVERFLOW", "Overflow during ASCII hex-to-binary conversion"), EXCEP_TXT ("AE_DECIMAL_OVERFLOW", "Overflow during ASCII decimal-to-binary conversion"), EXCEP_TXT ("AE_OCTAL_OVERFLOW", "Overflow during ASCII octal-to-binary conversion"), EXCEP_TXT ("AE_END_OF_TABLE", "Reached the end of table") }; static const ACPI_EXCEPTION_INFO AcpiGbl_ExceptionNames_Pgm[] = { EXCEP_TXT (NULL, NULL), EXCEP_TXT ("AE_BAD_PARAMETER", "A parameter is out of range or invalid"), EXCEP_TXT ("AE_BAD_CHARACTER", "An invalid character was found in a name"), EXCEP_TXT ("AE_BAD_PATHNAME", "An invalid character was found in a pathname"), EXCEP_TXT ("AE_BAD_DATA", "A package or buffer contained incorrect data"), EXCEP_TXT ("AE_BAD_HEX_CONSTANT", "Invalid character in a Hex constant"), EXCEP_TXT ("AE_BAD_OCTAL_CONSTANT", "Invalid character in an Octal constant"), EXCEP_TXT ("AE_BAD_DECIMAL_CONSTANT", "Invalid character in a Decimal constant"), EXCEP_TXT ("AE_MISSING_ARGUMENTS", "Too few arguments were passed to a control method"), EXCEP_TXT ("AE_BAD_ADDRESS", "An illegal null I/O address") }; static const ACPI_EXCEPTION_INFO AcpiGbl_ExceptionNames_Tbl[] = { EXCEP_TXT (NULL, NULL), EXCEP_TXT ("AE_BAD_SIGNATURE", "An ACPI table has an invalid signature"), EXCEP_TXT ("AE_BAD_HEADER", "Invalid field in an ACPI table header"), EXCEP_TXT ("AE_BAD_CHECKSUM", "An ACPI table checksum is not correct"), EXCEP_TXT ("AE_BAD_VALUE", "An invalid value was found in a table"), EXCEP_TXT ("AE_INVALID_TABLE_LENGTH", "The FADT or FACS has improper length") }; static const ACPI_EXCEPTION_INFO AcpiGbl_ExceptionNames_Aml[] = { EXCEP_TXT (NULL, NULL), EXCEP_TXT ("AE_AML_BAD_OPCODE", "Invalid AML opcode encountered"), EXCEP_TXT ("AE_AML_NO_OPERAND", "A required operand is missing"), EXCEP_TXT ("AE_AML_OPERAND_TYPE", "An operand of an incorrect type was encountered"), EXCEP_TXT ("AE_AML_OPERAND_VALUE", "The operand had an inappropriate or invalid value"), EXCEP_TXT ("AE_AML_UNINITIALIZED_LOCAL", "Method tried to use an uninitialized local variable"), EXCEP_TXT ("AE_AML_UNINITIALIZED_ARG", "Method tried to use an uninitialized argument"), EXCEP_TXT ("AE_AML_UNINITIALIZED_ELEMENT", "Method tried to use an empty package element"), EXCEP_TXT ("AE_AML_NUMERIC_OVERFLOW", "Overflow during BCD conversion or other"), EXCEP_TXT ("AE_AML_REGION_LIMIT", "Tried to access beyond the end of an Operation Region"), EXCEP_TXT ("AE_AML_BUFFER_LIMIT", "Tried to access beyond the end of a buffer"), EXCEP_TXT ("AE_AML_PACKAGE_LIMIT", "Tried to access beyond the end of a package"), EXCEP_TXT ("AE_AML_DIVIDE_BY_ZERO", "During execution of AML Divide operator"), EXCEP_TXT ("AE_AML_BAD_NAME", "An ACPI name contains invalid character(s)"), EXCEP_TXT ("AE_AML_NAME_NOT_FOUND", "Could not resolve a named reference"), EXCEP_TXT ("AE_AML_INTERNAL", "An internal error within the interpreter"), EXCEP_TXT ("AE_AML_INVALID_SPACE_ID", "An Operation Region SpaceID is invalid"), EXCEP_TXT ("AE_AML_STRING_LIMIT", "String is longer than 200 characters"), EXCEP_TXT ("AE_AML_NO_RETURN_VALUE", "A method did not return a required value"), EXCEP_TXT ("AE_AML_METHOD_LIMIT", "A control method reached the maximum reentrancy limit of 255"), EXCEP_TXT ("AE_AML_NOT_OWNER", "A thread tried to release a mutex that it does not own"), EXCEP_TXT ("AE_AML_MUTEX_ORDER", "Mutex SyncLevel release mismatch"), EXCEP_TXT ("AE_AML_MUTEX_NOT_ACQUIRED", "Attempt to release a mutex that was not previously acquired"), EXCEP_TXT ("AE_AML_INVALID_RESOURCE_TYPE", "Invalid resource type in resource list"), EXCEP_TXT ("AE_AML_INVALID_INDEX", "Invalid Argx or Localx (x too large)"), EXCEP_TXT ("AE_AML_REGISTER_LIMIT", "Bank value or Index value beyond range of register"), EXCEP_TXT ("AE_AML_NO_WHILE", "Break or Continue without a While"), EXCEP_TXT ("AE_AML_ALIGNMENT", "Non-aligned memory transfer on platform that does not support this"), EXCEP_TXT ("AE_AML_NO_RESOURCE_END_TAG", "No End Tag in a resource list"), EXCEP_TXT ("AE_AML_BAD_RESOURCE_VALUE", "Invalid value of a resource element"), EXCEP_TXT ("AE_AML_CIRCULAR_REFERENCE", "Two references refer to each other"), EXCEP_TXT ("AE_AML_BAD_RESOURCE_LENGTH", "The length of a Resource Descriptor in the AML is incorrect"), EXCEP_TXT ("AE_AML_ILLEGAL_ADDRESS", "A memory, I/O, or PCI configuration address is invalid"), EXCEP_TXT ("AE_AML_LOOP_TIMEOUT", "An AML While loop exceeded the maximum execution time"), EXCEP_TXT ("AE_AML_UNINITIALIZED_NODE", "A namespace node is uninitialized or unresolved"), EXCEP_TXT ("AE_AML_TARGET_TYPE", "A target operand of an incorrect type was encountered"), EXCEP_TXT ("AE_AML_PROTOCOL", "Violation of a fixed ACPI protocol"), EXCEP_TXT ("AE_AML_BUFFER_LENGTH", "The length of the buffer is invalid/incorrect") }; static const ACPI_EXCEPTION_INFO AcpiGbl_ExceptionNames_Ctrl[] = { EXCEP_TXT (NULL, NULL), EXCEP_TXT ("AE_CTRL_RETURN_VALUE", "A Method returned a value"), EXCEP_TXT ("AE_CTRL_PENDING", "Method is calling another method"), EXCEP_TXT ("AE_CTRL_TERMINATE", "Terminate the executing method"), EXCEP_TXT ("AE_CTRL_TRUE", "An If or While predicate result"), EXCEP_TXT ("AE_CTRL_FALSE", "An If or While predicate result"), EXCEP_TXT ("AE_CTRL_DEPTH", "Maximum search depth has been reached"), EXCEP_TXT ("AE_CTRL_END", "An If or While predicate is false"), EXCEP_TXT ("AE_CTRL_TRANSFER", "Transfer control to called method"), EXCEP_TXT ("AE_CTRL_BREAK", "A Break has been executed"), EXCEP_TXT ("AE_CTRL_CONTINUE", "A Continue has been executed"), EXCEP_TXT ("AE_CTRL_PARSE_CONTINUE", "Used to skip over bad opcodes"), EXCEP_TXT ("AE_CTRL_PARSE_PENDING", "Used to implement AML While loops") }; #endif /* EXCEPTION_TABLE */ #endif /* __ACEXCEP_H__ */ acpica-unix-20250404/source/include/acconvert.h0000775000175000017500000001204014773714133020617 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acapps - common include for ACPI applications/tools * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef _ACCONVERT #define _ACCONVERT /* Definitions for comment state */ #define ASL_COMMENT_STANDARD 1 #define ASLCOMMENT_INLINE 2 #define ASL_COMMENT_OPEN_PAREN 3 #define ASL_COMMENT_CLOSE_PAREN 4 #define ASL_COMMENT_CLOSE_BRACE 5 /* Definitions for comment print function*/ #define AML_COMMENT_STANDARD 1 #define AMLCOMMENT_INLINE 2 #define AML_COMMENT_END_NODE 3 #define AML_NAMECOMMENT 4 #define AML_COMMENT_CLOSE_BRACE 5 #define AML_COMMENT_ENDBLK 6 #define AML_COMMENT_INCLUDE 7 #ifdef ACPI_ASL_COMPILER /* * cvcompiler */ void CvProcessComment ( ASL_COMMENT_STATE CurrentState, char *StringBuffer, int c1); void CvProcessCommentType2 ( ASL_COMMENT_STATE CurrentState, char *StringBuffer); UINT32 CvCalculateCommentLengths( ACPI_PARSE_OBJECT *Op); void CvProcessCommentState ( char input); char* CvAppendInlineComment ( char *InlineComment, char *ToAdd); void CvAddToCommentList ( char* ToAdd); void CvPlaceComment ( UINT8 Type, char *CommentString); UINT32 CvParseOpBlockType ( ACPI_PARSE_OBJECT *Op); ACPI_COMMENT_NODE* CvCommentNodeCalloc ( void); void CgWriteAmlDefBlockComment ( ACPI_PARSE_OBJECT *Op); void CgWriteOneAmlComment ( ACPI_PARSE_OBJECT *Op, char* CommentToPrint, UINT8 InputOption); void CgWriteAmlComment ( ACPI_PARSE_OBJECT *Op); /* * cvparser */ void CvInitFileTree ( ACPI_TABLE_HEADER *Table, FILE *RootFile); void CvClearOpComments ( ACPI_PARSE_OBJECT *Op); ACPI_FILE_NODE* CvFilenameExists ( char *Filename, ACPI_FILE_NODE *Head); void CvLabelFileNode ( ACPI_PARSE_OBJECT *Op); void CvCaptureListComments ( ACPI_PARSE_STATE *ParserState, ACPI_COMMENT_NODE *ListHead, ACPI_COMMENT_NODE *ListTail); void CvCaptureCommentsOnly ( ACPI_PARSE_STATE *ParserState); void CvCaptureComments ( ACPI_WALK_STATE *WalkState); void CvTransferComments ( ACPI_PARSE_OBJECT *Op); /* * cvdisasm */ void CvSwitchFiles ( UINT32 level, ACPI_PARSE_OBJECT *op); BOOLEAN CvFileHasSwitched ( ACPI_PARSE_OBJECT *Op); void CvCloseParenWriteComment ( ACPI_PARSE_OBJECT *Op, UINT32 Level); void CvCloseBraceWriteComment ( ACPI_PARSE_OBJECT *Op, UINT32 Level); void CvPrintOneCommentList ( ACPI_COMMENT_NODE *CommentList, UINT32 Level); void CvPrintOneCommentType ( ACPI_PARSE_OBJECT *Op, UINT8 CommentType, char* EndStr, UINT32 Level); #endif #endif /* _ACCONVERT */ acpica-unix-20250404/source/include/acutils.h0000775000175000017500000007047614773714133020320 0ustar ivanhuivanhu/****************************************************************************** * * Name: acutils.h -- prototypes for the common (subsystem-wide) procedures * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef _ACUTILS_H #define _ACUTILS_H extern const UINT8 AcpiGbl_ResourceAmlSizes[]; extern const UINT8 AcpiGbl_ResourceAmlSerialBusSizes[]; /* Strings used by the disassembler and debugger resource dump routines */ #if defined(ACPI_DEBUG_OUTPUT) || defined (ACPI_DISASSEMBLER) || defined (ACPI_DEBUGGER) extern const char *AcpiGbl_BmDecode[]; extern const char *AcpiGbl_ConfigDecode[]; extern const char *AcpiGbl_ConsumeDecode[]; extern const char *AcpiGbl_DecDecode[]; extern const char *AcpiGbl_HeDecode[]; extern const char *AcpiGbl_IoDecode[]; extern const char *AcpiGbl_LlDecode[]; extern const char *AcpiGbl_MaxDecode[]; extern const char *AcpiGbl_MemDecode[]; extern const char *AcpiGbl_MinDecode[]; extern const char *AcpiGbl_MtpDecode[]; extern const char *AcpiGbl_PhyDecode[]; extern const char *AcpiGbl_RngDecode[]; extern const char *AcpiGbl_RwDecode[]; extern const char *AcpiGbl_ShrDecode[]; extern const char *AcpiGbl_SizDecode[]; extern const char *AcpiGbl_TrsDecode[]; extern const char *AcpiGbl_TtpDecode[]; extern const char *AcpiGbl_TypDecode[]; extern const char *AcpiGbl_PpcDecode[]; extern const char *AcpiGbl_IorDecode[]; extern const char *AcpiGbl_DtsDecode[]; extern const char *AcpiGbl_CtDecode[]; extern const char *AcpiGbl_SbtDecode[]; extern const char *AcpiGbl_AmDecode[]; extern const char *AcpiGbl_SmDecode[]; extern const char *AcpiGbl_WmDecode[]; extern const char *AcpiGbl_CphDecode[]; extern const char *AcpiGbl_CpoDecode[]; extern const char *AcpiGbl_DpDecode[]; extern const char *AcpiGbl_EdDecode[]; extern const char *AcpiGbl_BpbDecode[]; extern const char *AcpiGbl_SbDecode[]; extern const char *AcpiGbl_FcDecode[]; extern const char *AcpiGbl_PtDecode[]; extern const char *AcpiGbl_PtypDecode[]; extern const char *AcpiGbl_ClockInputMode[]; extern const char *AcpiGbl_ClockInputScale[]; #endif /* * For the iASL compiler case, the output is redirected to stderr so that * any of the various ACPI errors and warnings do not appear in the output * files, for either the compiler or disassembler portions of the tool. */ #ifdef ACPI_ASL_COMPILER #include #define ACPI_MSG_REDIRECT_BEGIN \ FILE *OutputFile = AcpiGbl_OutputFile; \ AcpiOsRedirectOutput (stderr); #define ACPI_MSG_REDIRECT_END \ AcpiOsRedirectOutput (OutputFile); #else /* * non-iASL case - no redirection, nothing to do */ #define ACPI_MSG_REDIRECT_BEGIN #define ACPI_MSG_REDIRECT_END #endif /* * Common error message prefixes */ #ifndef ACPI_MSG_ERROR #define ACPI_MSG_ERROR "ACPI Error: " #endif #ifndef ACPI_MSG_WARNING #define ACPI_MSG_WARNING "ACPI Warning: " #endif #ifndef ACPI_MSG_INFO #define ACPI_MSG_INFO "ACPI: " #endif #ifndef ACPI_MSG_BIOS_ERROR #define ACPI_MSG_BIOS_ERROR "Firmware Error (ACPI): " #endif #ifndef ACPI_MSG_BIOS_WARNING #define ACPI_MSG_BIOS_WARNING "Firmware Warning (ACPI): " #endif /* * Common message suffix */ #define ACPI_MSG_SUFFIX \ AcpiOsPrintf (" (%8.8X/%s-%u)\n", ACPI_CA_VERSION, ModuleName, LineNumber) /* Flags to indicate implicit or explicit string-to-integer conversion */ #define ACPI_IMPLICIT_CONVERSION TRUE #define ACPI_NO_IMPLICIT_CONVERSION FALSE /* Types for Resource descriptor entries */ #define ACPI_INVALID_RESOURCE 0 #define ACPI_FIXED_LENGTH 1 #define ACPI_VARIABLE_LENGTH 2 #define ACPI_SMALL_VARIABLE_LENGTH 3 typedef ACPI_STATUS (*ACPI_WALK_AML_CALLBACK) ( UINT8 *Aml, UINT32 Length, UINT32 Offset, UINT8 ResourceIndex, void **Context); typedef ACPI_STATUS (*ACPI_PKG_CALLBACK) ( UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context); typedef struct acpi_pkg_info { UINT8 *FreeSpace; ACPI_SIZE Length; UINT32 ObjectSpace; UINT32 NumPackages; } ACPI_PKG_INFO; /* Object reference counts */ #define REF_INCREMENT (UINT16) 0 #define REF_DECREMENT (UINT16) 1 /* AcpiUtDumpBuffer */ #define DB_BYTE_DISPLAY 0x01 #define DB_WORD_DISPLAY 0x02 #define DB_DWORD_DISPLAY 0x04 #define DB_QWORD_DISPLAY 0x08 #define DB_DISPLAY_DATA_ONLY 0x10 /* * utascii - ASCII utilities */ BOOLEAN AcpiUtValidNameseg ( char *Signature); BOOLEAN AcpiUtValidNameChar ( char Character, UINT32 Position); void AcpiUtCheckAndRepairAscii ( UINT8 *Name, char *RepairedName, UINT32 Count); /* * utcksum - Checksum utilities */ UINT8 AcpiUtGenerateChecksum ( void *Table, UINT32 Length, UINT8 OriginalChecksum); UINT8 AcpiUtChecksum ( UINT8 *Buffer, UINT32 Length); ACPI_STATUS AcpiUtVerifyCdatChecksum ( ACPI_TABLE_CDAT *CdatTable, UINT32 Length); ACPI_STATUS AcpiUtVerifyChecksum ( ACPI_TABLE_HEADER *Table, UINT32 Length); /* * utnonansi - Non-ANSI C library functions */ void AcpiUtStrupr ( char *SrcString); void AcpiUtStrlwr ( char *SrcString); int AcpiUtStricmp ( char *String1, char *String2); /* * utstrsuppt - string-to-integer conversion support functions */ ACPI_STATUS AcpiUtConvertOctalString ( char *String, UINT64 *ReturnValue); ACPI_STATUS AcpiUtConvertDecimalString ( char *String, UINT64 *ReturnValuePtr); ACPI_STATUS AcpiUtConvertHexString ( char *String, UINT64 *ReturnValuePtr); char AcpiUtRemoveWhitespace ( char **String); char AcpiUtRemoveLeadingZeros ( char **String); BOOLEAN AcpiUtDetectHexPrefix ( char **String); void AcpiUtRemoveHexPrefix ( char **String); BOOLEAN AcpiUtDetectOctalPrefix ( char **String); /* * utstrtoul64 - string-to-integer conversion functions */ ACPI_STATUS AcpiUtStrtoul64 ( char *String, UINT64 *RetInteger); UINT64 AcpiUtExplicitStrtoul64 ( char *String); UINT64 AcpiUtImplicitStrtoul64 ( char *String); /* * utglobal - Global data structures and procedures */ ACPI_STATUS AcpiUtInitGlobals ( void); const char * AcpiUtGetMutexName ( UINT32 MutexId); #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) const char * AcpiUtGetNotifyName ( UINT32 NotifyValue, ACPI_OBJECT_TYPE Type); #endif const char * AcpiUtGetTypeName ( ACPI_OBJECT_TYPE Type); const char * AcpiUtGetNodeName ( void *Object); const char * AcpiUtGetDescriptorName ( void *Object); const char * AcpiUtGetReferenceName ( ACPI_OPERAND_OBJECT *Object); const char * AcpiUtGetObjectTypeName ( ACPI_OPERAND_OBJECT *ObjDesc); const char * AcpiUtGetRegionName ( UINT8 SpaceId); const char * AcpiUtGetEventName ( UINT32 EventId); const char * AcpiUtGetArgumentTypeName ( UINT32 ArgType); char AcpiUtHexToAsciiChar ( UINT64 Integer, UINT32 Position); ACPI_STATUS AcpiUtAsciiToHexByte ( char *TwoAsciiChars, UINT8 *ReturnByte); UINT8 AcpiUtAsciiCharToHex ( int HexChar); BOOLEAN AcpiUtValidObjectType ( ACPI_OBJECT_TYPE Type); /* * utinit - miscellaneous initialization and shutdown */ ACPI_STATUS AcpiUtHardwareInitialize ( void); void AcpiUtSubsystemShutdown ( void); /* * utcopy - Object construction and conversion interfaces */ ACPI_STATUS AcpiUtBuildSimpleObject( ACPI_OPERAND_OBJECT *Obj, ACPI_OBJECT *UserObj, UINT8 *DataSpace, UINT32 *BufferSpaceUsed); ACPI_STATUS AcpiUtBuildPackageObject ( ACPI_OPERAND_OBJECT *Obj, UINT8 *Buffer, UINT32 *SpaceUsed); ACPI_STATUS AcpiUtCopyIobjectToEobject ( ACPI_OPERAND_OBJECT *Obj, ACPI_BUFFER *RetBuffer); ACPI_STATUS AcpiUtCopyEobjectToIobject ( ACPI_OBJECT *Obj, ACPI_OPERAND_OBJECT **InternalObj); ACPI_STATUS AcpiUtCopyISimpleToIsimple ( ACPI_OPERAND_OBJECT *SourceObj, ACPI_OPERAND_OBJECT *DestObj); ACPI_STATUS AcpiUtCopyIobjectToIobject ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT **DestDesc, ACPI_WALK_STATE *WalkState); /* * utcreate - Object creation */ ACPI_STATUS AcpiUtUpdateObjectReference ( ACPI_OPERAND_OBJECT *Object, UINT16 Action); /* * utdebug - Debug interfaces */ void AcpiUtInitStackPtrTrace ( void); void AcpiUtTrackStackPtr ( void); void AcpiUtTrace ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId); void AcpiUtTracePtr ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const void *Pointer); void AcpiUtTraceU32 ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT32 Integer); void AcpiUtTraceStr ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *String); void AcpiUtExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId); void AcpiUtStatusExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, ACPI_STATUS Status); void AcpiUtValueExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT64 Value); void AcpiUtPtrExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT8 *Ptr); void AcpiUtStrExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *String); void AcpiUtDebugDumpBuffer ( UINT8 *Buffer, UINT32 Count, UINT32 Display, UINT32 ComponentId); void AcpiUtDumpBuffer ( UINT8 *Buffer, UINT32 Count, UINT32 Display, UINT32 Offset); #ifdef ACPI_APPLICATION void AcpiUtDumpBufferToFile ( ACPI_FILE File, UINT8 *Buffer, UINT32 Count, UINT32 Display, UINT32 BaseOffset); #endif void AcpiUtReportError ( char *ModuleName, UINT32 LineNumber); void AcpiUtReportInfo ( char *ModuleName, UINT32 LineNumber); void AcpiUtReportWarning ( char *ModuleName, UINT32 LineNumber); /* * utdelete - Object deletion and reference counts */ void AcpiUtAddReference ( ACPI_OPERAND_OBJECT *Object); void AcpiUtRemoveReference ( ACPI_OPERAND_OBJECT *Object); void AcpiUtDeleteInternalPackageObject ( ACPI_OPERAND_OBJECT *Object); void AcpiUtDeleteInternalSimpleObject ( ACPI_OPERAND_OBJECT *Object); void AcpiUtDeleteInternalObjectList ( ACPI_OPERAND_OBJECT **ObjList); /* * uteval - object evaluation */ ACPI_STATUS AcpiUtEvaluateObject ( ACPI_NAMESPACE_NODE *PrefixNode, const char *Path, UINT32 ExpectedReturnBtypes, ACPI_OPERAND_OBJECT **ReturnDesc); ACPI_STATUS AcpiUtEvaluateNumericObject ( const char *ObjectName, ACPI_NAMESPACE_NODE *DeviceNode, UINT64 *Value); ACPI_STATUS AcpiUtExecute_STA ( ACPI_NAMESPACE_NODE *DeviceNode, UINT32 *StatusFlags); ACPI_STATUS AcpiUtExecutePowerMethods ( ACPI_NAMESPACE_NODE *DeviceNode, const char **MethodNames, UINT8 MethodCount, UINT8 *OutValues); /* * utids - device ID support */ ACPI_STATUS AcpiUtExecute_HID ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID **ReturnId); ACPI_STATUS AcpiUtExecute_UID ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID **ReturnId); ACPI_STATUS AcpiUtExecute_CID ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID_LIST **ReturnCidList); ACPI_STATUS AcpiUtExecute_CLS ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID **ReturnId); /* * utlock - reader/writer locks */ ACPI_STATUS AcpiUtCreateRwLock ( ACPI_RW_LOCK *Lock); void AcpiUtDeleteRwLock ( ACPI_RW_LOCK *Lock); ACPI_STATUS AcpiUtAcquireReadLock ( ACPI_RW_LOCK *Lock); ACPI_STATUS AcpiUtReleaseReadLock ( ACPI_RW_LOCK *Lock); ACPI_STATUS AcpiUtAcquireWriteLock ( ACPI_RW_LOCK *Lock); void AcpiUtReleaseWriteLock ( ACPI_RW_LOCK *Lock); /* * utobject - internal object create/delete/cache routines */ ACPI_OPERAND_OBJECT * AcpiUtCreateInternalObjectDbg ( const char *ModuleName, UINT32 LineNumber, UINT32 ComponentId, ACPI_OBJECT_TYPE Type); void * AcpiUtAllocateObjectDescDbg ( const char *ModuleName, UINT32 LineNumber, UINT32 ComponentId); #define AcpiUtCreateInternalObject(t) AcpiUtCreateInternalObjectDbg (_AcpiModuleName,__LINE__,_COMPONENT,t) #define AcpiUtAllocateObjectDesc() AcpiUtAllocateObjectDescDbg (_AcpiModuleName,__LINE__,_COMPONENT) void AcpiUtDeleteObjectDesc ( ACPI_OPERAND_OBJECT *Object); BOOLEAN AcpiUtValidInternalObject ( void *Object); ACPI_OPERAND_OBJECT * AcpiUtCreatePackageObject ( UINT32 Count); ACPI_OPERAND_OBJECT * AcpiUtCreateIntegerObject ( UINT64 Value); ACPI_OPERAND_OBJECT * AcpiUtCreateBufferObject ( ACPI_SIZE BufferSize); ACPI_OPERAND_OBJECT * AcpiUtCreateStringObject ( ACPI_SIZE StringSize); ACPI_STATUS AcpiUtGetObjectSize( ACPI_OPERAND_OBJECT *Obj, ACPI_SIZE *ObjLength); /* * utosi - Support for the _OSI predefined control method */ ACPI_STATUS AcpiUtInitializeInterfaces ( void); ACPI_STATUS AcpiUtInterfaceTerminate ( void); ACPI_STATUS AcpiUtInstallInterface ( ACPI_STRING InterfaceName); ACPI_STATUS AcpiUtRemoveInterface ( ACPI_STRING InterfaceName); ACPI_STATUS AcpiUtUpdateInterfaces ( UINT8 Action); ACPI_INTERFACE_INFO * AcpiUtGetInterface ( ACPI_STRING InterfaceName); ACPI_STATUS AcpiUtOsiImplementation ( ACPI_WALK_STATE *WalkState); /* * utpredef - support for predefined names */ const ACPI_PREDEFINED_INFO * AcpiUtGetNextPredefinedMethod ( const ACPI_PREDEFINED_INFO *ThisName); const ACPI_PREDEFINED_INFO * AcpiUtMatchPredefinedMethod ( char *Name); void AcpiUtGetExpectedReturnTypes ( char *Buffer, UINT32 ExpectedBtypes); #if (defined ACPI_ASL_COMPILER || defined ACPI_HELP_APP) const ACPI_PREDEFINED_INFO * AcpiUtMatchResourceName ( char *Name); void AcpiUtDisplayPredefinedMethod ( char *Buffer, const ACPI_PREDEFINED_INFO *ThisName, BOOLEAN MultiLine); UINT32 AcpiUtGetResourceBitWidth ( char *Buffer, UINT16 Types); #endif /* * utstate - Generic state creation/cache routines */ void AcpiUtPushGenericState ( ACPI_GENERIC_STATE **ListHead, ACPI_GENERIC_STATE *State); ACPI_GENERIC_STATE * AcpiUtPopGenericState ( ACPI_GENERIC_STATE **ListHead); ACPI_GENERIC_STATE * AcpiUtCreateGenericState ( void); ACPI_THREAD_STATE * AcpiUtCreateThreadState ( void); ACPI_GENERIC_STATE * AcpiUtCreateUpdateState ( ACPI_OPERAND_OBJECT *Object, UINT16 Action); ACPI_GENERIC_STATE * AcpiUtCreatePkgState ( void *InternalObject, void *ExternalObject, UINT32 Index); ACPI_STATUS AcpiUtCreateUpdateStateAndPush ( ACPI_OPERAND_OBJECT *Object, UINT16 Action, ACPI_GENERIC_STATE **StateList); ACPI_GENERIC_STATE * AcpiUtCreateControlState ( void); void AcpiUtDeleteGenericState ( ACPI_GENERIC_STATE *State); /* * utmath */ ACPI_STATUS AcpiUtDivide ( UINT64 InDividend, UINT64 InDivisor, UINT64 *OutQuotient, UINT64 *OutRemainder); ACPI_STATUS AcpiUtShortDivide ( UINT64 InDividend, UINT32 Divisor, UINT64 *OutQuotient, UINT32 *OutRemainder); ACPI_STATUS AcpiUtShortMultiply ( UINT64 InMultiplicand, UINT32 Multiplier, UINT64 *Outproduct); ACPI_STATUS AcpiUtShortShiftLeft ( UINT64 Operand, UINT32 Count, UINT64 *OutResult); ACPI_STATUS AcpiUtShortShiftRight ( UINT64 Operand, UINT32 Count, UINT64 *OutResult); /* * utmisc */ const ACPI_EXCEPTION_INFO * AcpiUtValidateException ( ACPI_STATUS Status); BOOLEAN AcpiUtIsPciRootBridge ( char *Id); #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_NAMES_APP) BOOLEAN AcpiUtIsAmlTable ( ACPI_TABLE_HEADER *Table); #endif ACPI_STATUS AcpiUtWalkPackageTree ( ACPI_OPERAND_OBJECT *SourceObject, void *TargetObject, ACPI_PKG_CALLBACK WalkCallback, void *Context); /* Values for Base above (16=Hex, 10=Decimal) */ #define ACPI_ANY_BASE 0 UINT32 AcpiUtDwordByteSwap ( UINT32 Value); void AcpiUtSetIntegerWidth ( UINT8 Revision); #ifdef ACPI_DEBUG_OUTPUT void AcpiUtDisplayInitPathname ( UINT8 Type, ACPI_NAMESPACE_NODE *ObjHandle, const char *Path); #endif /* * utownerid - Support for Table/Method Owner IDs */ ACPI_STATUS AcpiUtAllocateOwnerId ( ACPI_OWNER_ID *OwnerId); void AcpiUtReleaseOwnerId ( ACPI_OWNER_ID *OwnerId); /* * utresrc */ ACPI_STATUS AcpiUtWalkAmlResources ( ACPI_WALK_STATE *WalkState, UINT8 *Aml, ACPI_SIZE AmlLength, ACPI_WALK_AML_CALLBACK UserFunction, void **Context); ACPI_STATUS AcpiUtValidateResource ( ACPI_WALK_STATE *WalkState, void *Aml, UINT8 *ReturnIndex); UINT32 AcpiUtGetDescriptorLength ( void *Aml); UINT16 AcpiUtGetResourceLength ( void *Aml); UINT8 AcpiUtGetResourceHeaderLength ( void *Aml); UINT8 AcpiUtGetResourceType ( void *Aml); ACPI_STATUS AcpiUtGetResourceEndTag ( ACPI_OPERAND_OBJECT *ObjDesc, UINT8 **EndTag); /* * utstring - String and character utilities */ void AcpiUtPrintString ( char *String, UINT16 MaxLength); #if defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP void UtConvertBackslashes ( char *Pathname); #endif void AcpiUtRepairName ( char *Name); #if defined (ACPI_DEBUGGER) || defined (ACPI_APPLICATION) || defined (ACPI_DEBUG_OUTPUT) BOOLEAN AcpiUtSafeStrcpy ( char *Dest, ACPI_SIZE DestSize, char *Source); void AcpiUtSafeStrncpy ( char *Dest, char *Source, ACPI_SIZE DestSize); BOOLEAN AcpiUtSafeStrcat ( char *Dest, ACPI_SIZE DestSize, char *Source); BOOLEAN AcpiUtSafeStrncat ( char *Dest, ACPI_SIZE DestSize, char *Source, ACPI_SIZE MaxTransferLength); #endif /* * utmutex - mutex support */ ACPI_STATUS AcpiUtMutexInitialize ( void); void AcpiUtMutexTerminate ( void); ACPI_STATUS AcpiUtAcquireMutex ( ACPI_MUTEX_HANDLE MutexId); ACPI_STATUS AcpiUtReleaseMutex ( ACPI_MUTEX_HANDLE MutexId); /* * utalloc - memory allocation and object caching */ ACPI_STATUS AcpiUtCreateCaches ( void); ACPI_STATUS AcpiUtDeleteCaches ( void); ACPI_STATUS AcpiUtValidateBuffer ( ACPI_BUFFER *Buffer); ACPI_STATUS AcpiUtInitializeBuffer ( ACPI_BUFFER *Buffer, ACPI_SIZE RequiredLength); #ifdef ACPI_DBG_TRACK_ALLOCATIONS void * AcpiUtAllocateAndTrack ( ACPI_SIZE Size, UINT32 Component, const char *Module, UINT32 Line); void * AcpiUtAllocateZeroedAndTrack ( ACPI_SIZE Size, UINT32 Component, const char *Module, UINT32 Line); void AcpiUtFreeAndTrack ( void *Address, UINT32 Component, const char *Module, UINT32 Line); void AcpiUtDumpAllocationInfo ( void); void AcpiUtDumpAllocations ( UINT32 Component, const char *Module); ACPI_STATUS AcpiUtCreateList ( const char *ListName, UINT16 ObjectSize, ACPI_MEMORY_LIST **ReturnCache); #endif /* ACPI_DBG_TRACK_ALLOCATIONS */ /* * utaddress - address range check */ ACPI_STATUS AcpiUtAddAddressRange ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_PHYSICAL_ADDRESS Address, UINT32 Length, ACPI_NAMESPACE_NODE *RegionNode); void AcpiUtRemoveAddressRange ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_NAMESPACE_NODE *RegionNode); UINT32 AcpiUtCheckAddressRange ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_PHYSICAL_ADDRESS Address, UINT32 Length, BOOLEAN Warn); void AcpiUtDeleteAddressLists ( void); /* * utxferror - various error/warning output functions */ ACPI_PRINTF_LIKE(5) void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedWarning ( const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT16 NodeFlags, const char *Format, ...); ACPI_PRINTF_LIKE(5) void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedInfo ( const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT16 NodeFlags, const char *Format, ...); ACPI_PRINTF_LIKE(5) void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedBiosError ( const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT16 NodeFlags, const char *Format, ...); void AcpiUtPrefixedNamespaceError ( const char *ModuleName, UINT32 LineNumber, ACPI_GENERIC_STATE *PrefixScope, const char *InternalName, ACPI_STATUS LookupStatus); void AcpiUtMethodError ( const char *ModuleName, UINT32 LineNumber, const char *Message, ACPI_NAMESPACE_NODE *Node, const char *Path, ACPI_STATUS LookupStatus); /* * Utility functions for ACPI names and IDs */ const AH_PREDEFINED_NAME * AcpiAhMatchPredefinedName ( char *Nameseg); const AH_DEVICE_ID * AcpiAhMatchHardwareId ( char *Hid); const char * AcpiAhMatchUuid ( UINT8 *Data); /* * utuuid -- UUID support functions */ #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_HELP_APP) void AcpiUtConvertStringToUuid ( char *InString, UINT8 *UuidBuffer); ACPI_STATUS AcpiUtConvertUuidToString ( char *UuidBuffer, char *OutString); #endif #endif /* _ACUTILS_H */ acpica-unix-20250404/source/include/acpixf.h0000775000175000017500000010636114773714133020117 0ustar ivanhuivanhu/****************************************************************************** * * Name: acpixf.h - External interfaces to the ACPI subsystem * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACXFACE_H__ #define __ACXFACE_H__ /* Current ACPICA subsystem version in YYYYMMDD format */ #define ACPI_CA_VERSION 0x20250404 #include "acconfig.h" #include "actypes.h" #include "actbl.h" #include "acbuffer.h" /***************************************************************************** * * Macros used for ACPICA globals and configuration * ****************************************************************************/ /* * Ensure that global variables are defined and initialized only once. * * The use of these macros allows for a single list of globals (here) * in order to simplify maintenance of the code. */ #ifdef DEFINE_ACPI_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 /* * These macros configure the various ACPICA interfaces. They are * useful for generating stub inline functions for features that are * configured out of the current kernel or ACPICA application. */ #ifndef ACPI_EXTERNAL_RETURN_STATUS #define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \ Prototype; #endif #ifndef ACPI_EXTERNAL_RETURN_OK #define ACPI_EXTERNAL_RETURN_OK(Prototype) \ Prototype; #endif #ifndef ACPI_EXTERNAL_RETURN_VOID #define ACPI_EXTERNAL_RETURN_VOID(Prototype) \ Prototype; #endif #ifndef ACPI_EXTERNAL_RETURN_UINT32 #define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \ Prototype; #endif #ifndef ACPI_EXTERNAL_RETURN_PTR #define ACPI_EXTERNAL_RETURN_PTR(Prototype) \ Prototype; #endif /***************************************************************************** * * Public globals and runtime configuration options * ****************************************************************************/ /* * Enable "slack mode" of the AML interpreter? Default is FALSE, and the * interpreter strictly follows the ACPI specification. Setting to TRUE * allows the interpreter to ignore certain errors and/or bad AML constructs. * * Currently, these features are enabled by this flag: * * 1) Allow "implicit return" of last value in a control method * 2) Allow access beyond the end of an operation region * 3) Allow access to uninitialized locals/args (auto-init to integer 0) * 4) Allow ANY object type to be a source operand for the Store() operator * 5) Allow unresolved references (invalid target name) in package objects * 6) Enable warning messages for behavior that is not ACPI spec compliant */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableInterpreterSlack, FALSE); /* * Automatically serialize all methods that create named objects? Default * is TRUE, meaning that all NonSerialized methods are scanned once at * table load time to determine those that create named objects. Methods * that create named objects are marked Serialized in order to prevent * possible run-time problems if they are entered by more than one thread. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_AutoSerializeMethods, TRUE); /* * Create the predefined _OSI method in the namespace? Default is TRUE * because ACPICA is fully compatible with other ACPI implementations. * Changing this will revert ACPICA (and machine ASL) to pre-OSI behavior. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CreateOsiMethod, TRUE); /* * Optionally use default values for the ACPI register widths. Set this to * TRUE to use the defaults, if an FADT contains incorrect widths/lengths. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_UseDefaultRegisterWidths, TRUE); /* * Whether or not to validate (map) an entire table to verify * checksum/duplication in early stage before install. Set this to TRUE to * allow early table validation before install it to the table manager. * Note that enabling this option causes errors to happen in some OSPMs * during early initialization stages. Default behavior is to allow such * validation. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableTableValidation, TRUE); /* * Optionally enable output from the AML Debug Object. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableAmlDebugObject, FALSE); /* * Optionally copy the entire DSDT to local memory (instead of simply * mapping it.) There are some BIOSs that corrupt or replace the original * DSDT, creating the need for this option. Default is FALSE, do not copy * the DSDT. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CopyDsdtLocally, FALSE); /* * Optionally ignore an XSDT if present and use the RSDT instead. * Although the ACPI specification requires that an XSDT be used instead * of the RSDT, the XSDT has been found to be corrupt or ill-formed on * some machines. Default behavior is to use the XSDT if present. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DoNotUseXsdt, FALSE); /* * Optionally use 32-bit FADT addresses if and when there is a conflict * (address mismatch) between the 32-bit and 64-bit versions of the * address. Although ACPICA adheres to the ACPI specification which * requires the use of the corresponding 64-bit address if it is non-zero, * some machines have been found to have a corrupted non-zero 64-bit * address. Default is FALSE, do not favor the 32-bit addresses. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE); /* * Optionally use 32-bit FACS table addresses. * It is reported that some platforms fail to resume from system suspending * if 64-bit FACS table address is selected: * https://bugzilla.kernel.org/show_bug.cgi?id=74021 * Default is TRUE, favor the 32-bit addresses. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE); /* * Optionally truncate I/O addresses to 16 bits. Provides compatibility * with other ACPI implementations. NOTE: During ACPICA initialization, * this value is set to TRUE if any Windows OSI strings have been * requested by the BIOS. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE); /* * Disable runtime checking and repair of values returned by control methods. * Use only if the repair is causing a problem on a particular machine. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE); /* * Optionally do not install any SSDTs from the RSDT/XSDT during initialization. * This can be useful for debugging ACPI problems on some machines. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE); /* * Optionally enable runtime namespace override. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE); /* * We keep track of the latest version of Windows that has been requested by * the BIOS. ACPI 5.0. */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0); /* * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning * that the ACPI hardware is no longer required. A flag in the FADT indicates * a reduced HW machine, and that flag is duplicated here for convenience. */ ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE); /* * Maximum timeout for While() loop iterations before forced method abort. * This mechanism is intended to prevent infinite loops during interpreter * execution within a host kernel. */ ACPI_INIT_GLOBAL (UINT32, AcpiGbl_MaxLoopIterations, ACPI_MAX_LOOP_TIMEOUT); /* * Optionally ignore AE_NOT_FOUND errors from named reference package elements * during DSDT/SSDT table loading. This reduces error "noise" in platforms * whose firmware is carrying around a bunch of unused package objects that * refer to non-existent named objects. However, If the AML actually tries to * use such a package, the unresolved element(s) will be replaced with NULL * elements. */ ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_IgnorePackageResolutionErrors, FALSE); /* * This mechanism is used to trace a specified AML method. The method is * traced each time it is executed. */ ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0); ACPI_INIT_GLOBAL (const char *, AcpiGbl_TraceMethodName, NULL); ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT); ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT); /* * Runtime configuration of debug output control masks. We want the debug * switches statically initialized so they are already set when the debugger * is entered. */ #ifdef ACPI_DEBUG_OUTPUT ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_DEBUG_DEFAULT); #else ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_NORMAL_DEFAULT); #endif ACPI_INIT_GLOBAL (UINT32, AcpiDbgLayer, ACPI_COMPONENT_DEFAULT); /* Optionally enable timer output with Debug Object output */ ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisplayDebugTimer, FALSE); /* * Debugger command handshake globals. Host OSes need to access these * variables to implement their own command handshake mechanism. */ #ifdef ACPI_DEBUGGER ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_MethodExecuting, FALSE); ACPI_GLOBAL (char, AcpiGbl_DbLineBuf[ACPI_DB_LINE_BUFFER_SIZE]); #endif /* * Other miscellaneous globals */ ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT); ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount); ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning); /***************************************************************************** * * ACPICA public interface configuration. * * Interfaces that are configured out of the ACPICA build are replaced * by inlined stubs by default. * ****************************************************************************/ /* * Hardware-reduced prototypes (default: Not hardware reduced). * * All ACPICA hardware-related interfaces that use these macros will be * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag * is set to TRUE. * * Note: This static build option for reduced hardware is intended to * reduce ACPICA code size if desired or necessary. However, even if this * option is not specified, the runtime behavior of ACPICA is dependent * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set, * the flag will enable similar behavior -- ACPICA will not attempt * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.) */ #if (!ACPI_REDUCED_HARDWARE) #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \ ACPI_EXTERNAL_RETURN_STATUS(Prototype) #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \ ACPI_EXTERNAL_RETURN_OK(Prototype) #define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \ ACPI_EXTERNAL_RETURN_UINT32(prototype) #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \ ACPI_EXTERNAL_RETURN_VOID(Prototype) #else #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \ static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);} #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \ static ACPI_INLINE Prototype {return(AE_OK);} #define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \ static ACPI_INLINE prototype {return(0);} #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \ static ACPI_INLINE Prototype {return;} #endif /* !ACPI_REDUCED_HARDWARE */ /* * Error message prototypes (default: error messages enabled). * * All interfaces related to error and warning messages * will be configured out of the ACPICA build if the * ACPI_NO_ERROR_MESSAGE flag is defined. */ #ifndef ACPI_NO_ERROR_MESSAGES #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \ Prototype; #else #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \ static ACPI_INLINE Prototype {return;} #endif /* ACPI_NO_ERROR_MESSAGES */ /* * Debugging output prototypes (default: no debug output). * * All interfaces related to debug output messages * will be configured out of the ACPICA build unless the * ACPI_DEBUG_OUTPUT flag is defined. */ #ifdef ACPI_DEBUG_OUTPUT #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \ Prototype; #else #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \ static ACPI_INLINE Prototype {return;} #endif /* ACPI_DEBUG_OUTPUT */ /* * Application prototypes * * All interfaces used by application will be configured * out of the ACPICA build unless the ACPI_APPLICATION * flag is defined. */ #ifdef ACPI_APPLICATION #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \ Prototype; #else #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \ static ACPI_INLINE Prototype {return;} #endif /* ACPI_APPLICATION */ /* * Debugger prototypes * * All interfaces used by debugger will be configured * out of the ACPICA build unless the ACPI_DEBUGGER * flag is defined. */ #ifdef ACPI_DEBUGGER #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \ ACPI_EXTERNAL_RETURN_OK(Prototype) #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \ ACPI_EXTERNAL_RETURN_VOID(Prototype) #else #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \ static ACPI_INLINE Prototype {return(AE_OK);} #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \ static ACPI_INLINE Prototype {return;} #endif /* ACPI_DEBUGGER */ /***************************************************************************** * * ACPICA public interface prototypes * ****************************************************************************/ /* * Initialization */ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeTables ( ACPI_TABLE_DESC *InitialStorage, UINT32 InitialTableCount, BOOLEAN AllowResize)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeSubsystem ( void)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiEnableSubsystem ( UINT32 Flags)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeObjects ( UINT32 Flags)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiTerminate ( void)) /* * Miscellaneous global interfaces */ ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiEnable ( void)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiDisable ( void)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiSubsystemStatus ( void)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetSystemInfo ( ACPI_BUFFER *RetBuffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetStatistics ( ACPI_STATISTICS *Stats)) ACPI_EXTERNAL_RETURN_PTR ( const char * AcpiFormatException ( ACPI_STATUS Exception)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiPurgeCachedObjects ( void)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiInstallInterface ( ACPI_STRING InterfaceName)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiRemoveInterface ( ACPI_STRING InterfaceName)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiUpdateInterfaces ( UINT8 Action)) ACPI_EXTERNAL_RETURN_UINT32 ( UINT32 AcpiCheckAddressRange ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_PHYSICAL_ADDRESS Address, ACPI_SIZE Length, BOOLEAN Warn)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiDecodePldBuffer ( UINT8 *InBuffer, ACPI_SIZE Length, ACPI_PLD_INFO **ReturnBuffer)) /* * ACPI table load/unload interfaces */ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiInstallTable ( ACPI_TABLE_HEADER *Table)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiInstallPhysicalTable ( ACPI_PHYSICAL_ADDRESS Address)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiLoadTable ( ACPI_TABLE_HEADER *Table, UINT32 *TableIdx)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiUnloadTable ( UINT32 TableIndex)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiUnloadParentTable ( ACPI_HANDLE Object)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiLoadTables ( void)) /* * ACPI table manipulation interfaces */ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiReallocateRootTable ( void)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS ACPI_INIT_FUNCTION AcpiFindRootPointer ( ACPI_PHYSICAL_ADDRESS *RsdpAddress)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetTableHeader ( ACPI_STRING Signature, UINT32 Instance, ACPI_TABLE_HEADER *OutTableHeader)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetTable ( ACPI_STRING Signature, UINT32 Instance, ACPI_TABLE_HEADER **OutTable)) ACPI_EXTERNAL_RETURN_VOID ( void AcpiPutTable ( ACPI_TABLE_HEADER *Table)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetTableByIndex ( UINT32 TableIndex, ACPI_TABLE_HEADER **OutTable)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiInstallTableHandler ( ACPI_TABLE_HANDLER Handler, void *Context)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiRemoveTableHandler ( ACPI_TABLE_HANDLER Handler)) /* * Namespace and name interfaces */ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiWalkNamespace ( ACPI_OBJECT_TYPE Type, ACPI_HANDLE StartObject, UINT32 MaxDepth, ACPI_WALK_CALLBACK DescendingCallback, ACPI_WALK_CALLBACK AscendingCallback, void *Context, void **ReturnValue)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetDevices ( char *HID, ACPI_WALK_CALLBACK UserFunction, void *Context, void **ReturnValue)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetName ( ACPI_HANDLE Object, UINT32 NameType, ACPI_BUFFER *RetPathPtr)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetHandle ( ACPI_HANDLE Parent, const char *Pathname, ACPI_HANDLE *RetHandle)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiAttachData ( ACPI_HANDLE Object, ACPI_OBJECT_HANDLER Handler, void *Data)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiDetachData ( ACPI_HANDLE Object, ACPI_OBJECT_HANDLER Handler)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetData ( ACPI_HANDLE Object, ACPI_OBJECT_HANDLER Handler, void **Data)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiDebugTrace ( const char *Name, UINT32 DebugLevel, UINT32 DebugLayer, UINT32 Flags)) /* * Object manipulation and enumeration */ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiEvaluateObject ( ACPI_HANDLE Object, ACPI_STRING Pathname, ACPI_OBJECT_LIST *ParameterObjects, ACPI_BUFFER *ReturnObjectBuffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiEvaluateObjectTyped ( ACPI_HANDLE Object, ACPI_STRING Pathname, ACPI_OBJECT_LIST *ExternalParams, ACPI_BUFFER *ReturnBuffer, ACPI_OBJECT_TYPE ReturnType)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetObjectInfo ( ACPI_HANDLE Object, ACPI_DEVICE_INFO **ReturnBuffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiInstallMethod ( UINT8 *Buffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetNextObject ( ACPI_OBJECT_TYPE Type, ACPI_HANDLE Parent, ACPI_HANDLE Child, ACPI_HANDLE *OutHandle)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetType ( ACPI_HANDLE Object, ACPI_OBJECT_TYPE *OutType)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetParent ( ACPI_HANDLE Object, ACPI_HANDLE *OutHandle)) /* * Handler interfaces */ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiInstallInitializationHandler ( ACPI_INIT_HANDLER Handler, UINT32 Function)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiInstallSciHandler ( ACPI_SCI_HANDLER Address, void *Context)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiRemoveSciHandler ( ACPI_SCI_HANDLER Address)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiInstallGlobalEventHandler ( ACPI_GBL_EVENT_HANDLER Handler, void *Context)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiInstallFixedEventHandler ( UINT32 AcpiEvent, ACPI_EVENT_HANDLER Handler, void *Context)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiRemoveFixedEventHandler ( UINT32 AcpiEvent, ACPI_EVENT_HANDLER Handler)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiInstallGpeHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiInstallGpeRawHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiRemoveGpeHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_GPE_HANDLER Address)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiInstallNotifyHandler ( ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler, void *Context)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiRemoveNotifyHandler ( ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiInstallAddressSpaceHandler ( ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler, ACPI_ADR_SPACE_SETUP Setup, void *Context)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiInstallAddressSpaceHandlerNo_Reg( ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler, ACPI_ADR_SPACE_SETUP Setup, void *Context)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiExecuteRegMethods ( ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiRemoveAddressSpaceHandler ( ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiInstallExceptionHandler ( ACPI_EXCEPTION_HANDLER Handler)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiInstallInterfaceHandler ( ACPI_INTERFACE_HANDLER Handler)) /* * Global Lock interfaces */ ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiAcquireGlobalLock ( UINT16 Timeout, UINT32 *Handle)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiReleaseGlobalLock ( UINT32 Handle)) /* * Interfaces to AML mutex objects */ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiAcquireMutex ( ACPI_HANDLE Handle, ACPI_STRING Pathname, UINT16 Timeout)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiReleaseMutex ( ACPI_HANDLE Handle, ACPI_STRING Pathname)) /* * Fixed Event interfaces */ ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiEnableEvent ( UINT32 Event, UINT32 Flags)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiDisableEvent ( UINT32 Event, UINT32 Flags)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiClearEvent ( UINT32 Event)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiGetEventStatus ( UINT32 Event, ACPI_EVENT_STATUS *EventStatus)) /* * General Purpose Event (GPE) Interfaces */ ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiUpdateAllGpes ( void)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiEnableGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiDisableGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiClearGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiSetGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiFinishGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiMaskGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, BOOLEAN IsMasked)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiMarkGpeForWake ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiSetupGpeForWake ( ACPI_HANDLE ParentDevice, ACPI_HANDLE GpeDevice, UINT32 GpeNumber)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiSetGpeWakeMask ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiGetGpeStatus ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_EVENT_STATUS *EventStatus)) ACPI_HW_DEPENDENT_RETURN_UINT32 ( UINT32 AcpiDispatchGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiDisableAllGpes ( void)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiEnableAllRuntimeGpes ( void)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiEnableAllWakeupGpes ( void)) ACPI_HW_DEPENDENT_RETURN_UINT32 ( UINT32 AcpiAnyGpeStatusSet ( void)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiGetGpeDevice ( UINT32 GpeIndex, ACPI_HANDLE *GpeDevice)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiInstallGpeBlock ( ACPI_HANDLE GpeDevice, ACPI_GENERIC_ADDRESS *GpeBlockAddress, UINT32 RegisterCount, UINT32 InterruptNumber)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiRemoveGpeBlock ( ACPI_HANDLE GpeDevice)) /* * Resource interfaces */ typedef ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) ( ACPI_RESOURCE *Resource, void *Context); ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetVendorResource ( ACPI_HANDLE Device, char *Name, ACPI_VENDOR_UUID *Uuid, ACPI_BUFFER *RetBuffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetCurrentResources ( ACPI_HANDLE Device, ACPI_BUFFER *RetBuffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetPossibleResources ( ACPI_HANDLE Device, ACPI_BUFFER *RetBuffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetEventResources ( ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiWalkResourceBuffer ( ACPI_BUFFER *Buffer, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiWalkResources ( ACPI_HANDLE Device, char *Name, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiSetCurrentResources ( ACPI_HANDLE Device, ACPI_BUFFER *InBuffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetIrqRoutingTable ( ACPI_HANDLE Device, ACPI_BUFFER *RetBuffer)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiResourceToAddress64 ( ACPI_RESOURCE *Resource, ACPI_RESOURCE_ADDRESS64 *Out)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiBufferToResource ( UINT8 *AmlBuffer, UINT16 AmlBufferLength, ACPI_RESOURCE **ResourcePtr)) /* * Hardware (ACPI device) interfaces */ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiReset ( void)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiRead ( UINT64 *Value, ACPI_GENERIC_ADDRESS *Reg)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiWrite ( UINT64 Value, ACPI_GENERIC_ADDRESS *Reg)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiReadBitRegister ( UINT32 RegisterId, UINT32 *ReturnValue)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiWriteBitRegister ( UINT32 RegisterId, UINT32 Value)) /* * Sleep/Wake interfaces */ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetSleepTypeData ( UINT8 SleepState, UINT8 *Slp_TypA, UINT8 *Slp_TypB)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiEnterSleepStatePrep ( UINT8 SleepState)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiEnterSleepState ( UINT8 SleepState)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiEnterSleepStateS4bios ( void)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiLeaveSleepStatePrep ( UINT8 SleepState)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiLeaveSleepState ( UINT8 SleepState)) ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiSetFirmwareWakingVector ( ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_PHYSICAL_ADDRESS PhysicalAddress64)) /* * ACPI Timer interfaces */ ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiGetTimerResolution ( UINT32 *Resolution)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiGetTimer ( UINT32 *Ticks)) ACPI_HW_DEPENDENT_RETURN_STATUS ( ACPI_STATUS AcpiGetTimerDuration ( UINT32 StartTicks, UINT32 EndTicks, UINT32 *TimeElapsed)) /* * Error/Warning output */ ACPI_MSG_DEPENDENT_RETURN_VOID ( ACPI_PRINTF_LIKE(3) void ACPI_INTERNAL_VAR_XFACE AcpiError ( const char *ModuleName, UINT32 LineNumber, const char *Format, ...)) ACPI_MSG_DEPENDENT_RETURN_VOID ( ACPI_PRINTF_LIKE(4) void ACPI_INTERNAL_VAR_XFACE AcpiException ( const char *ModuleName, UINT32 LineNumber, ACPI_STATUS Status, const char *Format, ...)) ACPI_MSG_DEPENDENT_RETURN_VOID ( ACPI_PRINTF_LIKE(3) void ACPI_INTERNAL_VAR_XFACE AcpiWarning ( const char *ModuleName, UINT32 LineNumber, const char *Format, ...)) ACPI_MSG_DEPENDENT_RETURN_VOID ( ACPI_PRINTF_LIKE(1) void ACPI_INTERNAL_VAR_XFACE AcpiInfo ( const char *Format, ...)) ACPI_MSG_DEPENDENT_RETURN_VOID ( ACPI_PRINTF_LIKE(3) void ACPI_INTERNAL_VAR_XFACE AcpiBiosError ( const char *ModuleName, UINT32 LineNumber, const char *Format, ...)) ACPI_MSG_DEPENDENT_RETURN_VOID ( ACPI_PRINTF_LIKE(4) void ACPI_INTERNAL_VAR_XFACE AcpiBiosException ( const char *ModuleName, UINT32 LineNumber, ACPI_STATUS Status, const char *Format, ...)) ACPI_MSG_DEPENDENT_RETURN_VOID ( ACPI_PRINTF_LIKE(3) void ACPI_INTERNAL_VAR_XFACE AcpiBiosWarning ( const char *ModuleName, UINT32 LineNumber, const char *Format, ...)) /* * Debug output */ ACPI_DBG_DEPENDENT_RETURN_VOID ( ACPI_PRINTF_LIKE(6) void ACPI_INTERNAL_VAR_XFACE AcpiDebugPrint ( UINT32 RequestedDebugLevel, UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *Format, ...)) ACPI_DBG_DEPENDENT_RETURN_VOID ( ACPI_PRINTF_LIKE(6) void ACPI_INTERNAL_VAR_XFACE AcpiDebugPrintRaw ( UINT32 RequestedDebugLevel, UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *Format, ...)) ACPI_DBG_DEPENDENT_RETURN_VOID ( void AcpiTracePoint ( ACPI_TRACE_EVENT_TYPE Type, BOOLEAN Begin, UINT8 *Aml, char *Pathname)) ACPI_STATUS AcpiInitializeDebugger ( void); void AcpiTerminateDebugger ( void); void AcpiRunDebugger ( char *BatchBuffer); void AcpiSetDebuggerThreadId ( ACPI_THREAD_ID ThreadId); #endif /* __ACXFACE_H__ */ acpica-unix-20250404/source/include/actbl2.h0000775000175000017500000036502014773714133020013 0ustar ivanhuivanhu/****************************************************************************** * * Name: actbl2.h - ACPI Table Definitions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACTBL2_H__ #define __ACTBL2_H__ /******************************************************************************* * * Additional ACPI Tables (2) * * These tables are not consumed directly by the ACPICA subsystem, but are * included here to support device drivers and the AML disassembler. * ******************************************************************************/ /* * Values for description table header signatures for tables defined in this * file. Useful because they make it more difficult to inadvertently type in * the wrong signature. */ #define ACPI_SIG_AGDI "AGDI" /* Arm Generic Diagnostic Dump and Reset Device Interface */ #define ACPI_SIG_APMT "APMT" /* Arm Performance Monitoring Unit table */ #define ACPI_SIG_BDAT "BDAT" /* BIOS Data ACPI Table */ #define ACPI_SIG_CCEL "CCEL" /* CC Event Log Table */ #define ACPI_SIG_CDAT "CDAT" /* Coherent Device Attribute Table */ #define ACPI_SIG_ERDT "ERDT" /* Enhanced Resource Director Technology */ #define ACPI_SIG_IORT "IORT" /* IO Remapping Table */ #define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */ #define ACPI_SIG_LPIT "LPIT" /* Low Power Idle Table */ #define ACPI_SIG_MADT "APIC" /* Multiple APIC Description Table */ #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */ #define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */ #define ACPI_SIG_MPAM "MPAM" /* Memory System Resource Partitioning and Monitoring Table */ #define ACPI_SIG_MPST "MPST" /* Memory Power State Table */ #define ACPI_SIG_MRRM "MRRM" /* Memory Range and Region Mapping table */ #define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */ #define ACPI_SIG_NFIT "NFIT" /* NVDIMM Firmware Interface Table */ #define ACPI_SIG_NHLT "NHLT" /* Non HD Audio Link Table */ #define ACPI_SIG_PCCT "PCCT" /* Platform Communications Channel Table */ #define ACPI_SIG_PDTT "PDTT" /* Platform Debug Trigger Table */ #define ACPI_SIG_PHAT "PHAT" /* Platform Health Assessment Table */ #define ACPI_SIG_PMTT "PMTT" /* Platform Memory Topology Table */ #define ACPI_SIG_PPTT "PPTT" /* Processor Properties Topology Table */ #define ACPI_SIG_PRMT "PRMT" /* Platform Runtime Mechanism Table */ #define ACPI_SIG_RASF "RASF" /* RAS Feature table */ #define ACPI_SIG_RAS2 "RAS2" /* RAS2 Feature table */ #define ACPI_SIG_RGRT "RGRT" /* Regulatory Graphics Resource Table */ #define ACPI_SIG_RHCT "RHCT" /* RISC-V Hart Capabilities Table */ #define ACPI_SIG_RIMT "RIMT" /* RISC-V IO Mapping Table */ #define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */ #define ACPI_SIG_SDEI "SDEI" /* Software Delegated Exception Interface Table */ #define ACPI_SIG_SDEV "SDEV" /* Secure Devices table */ #define ACPI_SIG_SVKL "SVKL" /* Storage Volume Key Location Table */ #define ACPI_SIG_TDEL "TDEL" /* TD Event Log Table */ /* * All tables must be byte-packed to match the ACPI specification, since * the tables are provided by the system BIOS. */ #pragma pack(1) /* * Note: C bitfields are not used for this reason: * * "Bitfields are great and easy to read, but unfortunately the C language * does not specify the layout of bitfields in memory, which means they are * essentially useless for dealing with packed data in on-disk formats or * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me, * this decision was a design error in C. Ritchie could have picked an order * and stuck with it." Norman Ramsey. * See http://stackoverflow.com/a/1053662/41661 */ /******************************************************************************* * * AEST - Arm Error Source Table * * Conforms to: ACPI for the Armv8 RAS Extensions 1.1 Platform Design Document * September 2020. * ******************************************************************************/ typedef struct acpi_table_aest { ACPI_TABLE_HEADER Header; } ACPI_TABLE_AEST; /* Common Subtable header - one per Node Structure (Subtable) */ typedef struct acpi_aest_hdr { UINT8 Type; UINT16 Length; UINT8 Reserved; UINT32 NodeSpecificOffset; UINT32 NodeInterfaceOffset; UINT32 NodeInterruptOffset; UINT32 NodeInterruptCount; UINT64 TimestampRate; UINT64 Reserved1; UINT64 ErrorInjectionRate; } ACPI_AEST_HEADER; /* Values for Type above */ #define ACPI_AEST_PROCESSOR_ERROR_NODE 0 #define ACPI_AEST_MEMORY_ERROR_NODE 1 #define ACPI_AEST_SMMU_ERROR_NODE 2 #define ACPI_AEST_VENDOR_ERROR_NODE 3 #define ACPI_AEST_GIC_ERROR_NODE 4 #define ACPI_AEST_PCIE_ERROR_NODE 5 #define ACPI_AEST_PROXY_ERROR_NODE 6 #define ACPI_AEST_NODE_TYPE_RESERVED 7 /* 7 and above are reserved */ /* * AEST subtables (Error nodes) */ /* 0: Processor Error */ typedef struct acpi_aest_processor { UINT32 ProcessorId; UINT8 ResourceType; UINT8 Reserved; UINT8 Flags; UINT8 Revision; UINT64 ProcessorAffinity; } ACPI_AEST_PROCESSOR; /* Values for ResourceType above, related structs below */ #define ACPI_AEST_CACHE_RESOURCE 0 #define ACPI_AEST_TLB_RESOURCE 1 #define ACPI_AEST_GENERIC_RESOURCE 2 #define ACPI_AEST_RESOURCE_RESERVED 3 /* 3 and above are reserved */ /* 0R: Processor Cache Resource Substructure */ typedef struct acpi_aest_processor_cache { UINT32 CacheReference; UINT32 Reserved; } ACPI_AEST_PROCESSOR_CACHE; /* Values for CacheType above */ #define ACPI_AEST_CACHE_DATA 0 #define ACPI_AEST_CACHE_INSTRUCTION 1 #define ACPI_AEST_CACHE_UNIFIED 2 #define ACPI_AEST_CACHE_RESERVED 3 /* 3 and above are reserved */ /* 1R: Processor TLB Resource Substructure */ typedef struct acpi_aest_processor_tlb { UINT32 TlbLevel; UINT32 Reserved; } ACPI_AEST_PROCESSOR_TLB; /* 2R: Processor Generic Resource Substructure */ typedef struct acpi_aest_processor_generic { UINT32 Resource; } ACPI_AEST_PROCESSOR_GENERIC; /* 1: Memory Error */ typedef struct acpi_aest_memory { UINT32 SratProximityDomain; } ACPI_AEST_MEMORY; /* 2: Smmu Error */ typedef struct acpi_aest_smmu { UINT32 IortNodeReference; UINT32 SubcomponentReference; } ACPI_AEST_SMMU; /* 3: Vendor Defined */ typedef struct acpi_aest_vendor { UINT32 AcpiHid; UINT32 AcpiUid; UINT8 VendorSpecificData[16]; } ACPI_AEST_VENDOR; /* 3: Vendor Defined V2 */ typedef struct acpi_aest_vendor_v2 { UINT64 AcpiHid; UINT32 AcpiUid; UINT8 VendorSpecificData[16]; } ACPI_AEST_VENDOR_V2; /* 4: Gic Error */ typedef struct acpi_aest_gic { UINT32 InterfaceType; UINT32 InstanceId; } ACPI_AEST_GIC; /* Values for InterfaceType above */ #define ACPI_AEST_GIC_CPU 0 #define ACPI_AEST_GIC_DISTRIBUTOR 1 #define ACPI_AEST_GIC_REDISTRIBUTOR 2 #define ACPI_AEST_GIC_ITS 3 #define ACPI_AEST_GIC_RESERVED 4 /* 4 and above are reserved */ /* 5: PCIe Error */ typedef struct acpi_aest_pcie { UINT32 IortNodeReference; } ACPI_AEST_PCIE; /* 6: Proxy Error */ typedef struct acpi_aest_proxy { UINT64 NodeAddress; } ACPI_AEST_PROXY; /* Node Interface Structure */ typedef struct acpi_aest_node_interface { UINT8 Type; UINT8 Reserved[3]; UINT32 Flags; UINT64 Address; UINT32 ErrorRecordIndex; UINT32 ErrorRecordCount; UINT64 ErrorRecordImplemented; UINT64 ErrorStatusReporting; UINT64 AddressingMode; } ACPI_AEST_NODE_INTERFACE; /* Node Interface Structure V2*/ typedef struct acpi_aest_node_interface_header { UINT8 Type; UINT8 GroupFormat; UINT8 Reserved[2]; UINT32 Flags; UINT64 Address; UINT32 ErrorRecordIndex; UINT32 ErrorRecordCount; } ACPI_AEST_NODE_INTERFACE_HEADER; #define ACPI_AEST_NODE_GROUP_FORMAT_4K 0 #define ACPI_AEST_NODE_GROUP_FORMAT_16K 1 #define ACPI_AEST_NODE_GROUP_FORMAT_64K 2 typedef struct acpi_aest_node_interface_common { UINT32 ErrorNodeDevice; UINT32 ProcessorAffinity; UINT64 ErrorGroupRegisterBase; UINT64 FaultInjectRegisterBase; UINT64 InterruptConfigRegisterBase; } ACPI_AEST_NODE_INTERFACE_COMMON; typedef struct acpi_aest_node_interface_4k { UINT64 ErrorRecordImplemented; UINT64 ErrorStatusReporting; UINT64 AddressingMode; ACPI_AEST_NODE_INTERFACE_COMMON Common; } ACPI_AEST_NODE_INTERFACE_4K; typedef struct acpi_aest_node_interface_16k { UINT64 ErrorRecordImplemented[4]; UINT64 ErrorStatusReporting[4]; UINT64 AddressingMode[4]; ACPI_AEST_NODE_INTERFACE_COMMON Common; } ACPI_AEST_NODE_INTERFACE_16K; typedef struct acpi_aest_node_interface_64k { INT64 ErrorRecordImplemented[14]; UINT64 ErrorStatusReporting[14]; UINT64 AddressingMode[14]; ACPI_AEST_NODE_INTERFACE_COMMON Common; } ACPI_AEST_NODE_INTERFACE_64K; /* Values for Type field above */ #define ACPI_AEST_NODE_SYSTEM_REGISTER 0 #define ACPI_AEST_NODE_MEMORY_MAPPED 1 #define ACPI_AEST_NODE_SINGLE_RECORD_MEMORY_MAPPED 2 #define ACPI_AEST_XFACE_RESERVED 3 /* 2 and above are reserved */ /* Node Interrupt Structure */ typedef struct acpi_aest_node_interrupt { UINT8 Type; UINT8 Reserved[2]; UINT8 Flags; UINT32 Gsiv; UINT8 IortId; UINT8 Reserved1[3]; } ACPI_AEST_NODE_INTERRUPT; /* Node Interrupt Structure V2 */ typedef struct acpi_aest_node_interrupt_v2 { UINT8 Type; UINT8 Reserved[2]; UINT8 Flags; UINT32 Gsiv; UINT8 Reserved1[4]; } ACPI_AEST_NODE_INTERRUPT_V2; /* Values for Type field above */ #define ACPI_AEST_NODE_FAULT_HANDLING 0 #define ACPI_AEST_NODE_ERROR_RECOVERY 1 #define ACPI_AEST_XRUPT_RESERVED 2 /* 2 and above are reserved */ /******************************************************************************* * AGDI - Arm Generic Diagnostic Dump and Reset Device Interface * * Conforms to "ACPI for Arm Components 1.1, Platform Design Document" * ARM DEN0093 v1.1 * ******************************************************************************/ typedef struct acpi_table_agdi { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 Flags; UINT8 Reserved[3]; UINT32 SdeiEvent; UINT32 Gsiv; } ACPI_TABLE_AGDI; /* Mask for Flags field above */ #define ACPI_AGDI_SIGNALING_MODE (1) /******************************************************************************* * * APMT - ARM Performance Monitoring Unit Table * * Conforms to: * ARM Performance Monitoring Unit Architecture 1.0 Platform Design Document * ARM DEN0117 v1.0 November 25, 2021 * ******************************************************************************/ typedef struct acpi_table_apmt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_APMT; #define ACPI_APMT_NODE_ID_LENGTH 4 /* * APMT subtables */ typedef struct acpi_apmt_node { UINT16 Length; UINT8 Flags; UINT8 Type; UINT32 Id; UINT64 InstPrimary; UINT32 InstSecondary; UINT64 BaseAddress0; UINT64 BaseAddress1; UINT32 OvflwIrq; UINT32 Reserved; UINT32 OvflwIrqFlags; UINT32 ProcAffinity; UINT32 ImplId; } ACPI_APMT_NODE; /* Masks for Flags field above */ #define ACPI_APMT_FLAGS_DUAL_PAGE (1<<0) #define ACPI_APMT_FLAGS_AFFINITY (1<<1) #define ACPI_APMT_FLAGS_ATOMIC (1<<2) /* Values for Flags dual page field above */ #define ACPI_APMT_FLAGS_DUAL_PAGE_NSUPP (0<<0) #define ACPI_APMT_FLAGS_DUAL_PAGE_SUPP (1<<0) /* Values for Flags processor affinity field above */ #define ACPI_APMT_FLAGS_AFFINITY_PROC (0<<1) #define ACPI_APMT_FLAGS_AFFINITY_PROC_CONTAINER (1<<1) /* Values for Flags 64-bit atomic field above */ #define ACPI_APMT_FLAGS_ATOMIC_NSUPP (0<<2) #define ACPI_APMT_FLAGS_ATOMIC_SUPP (1<<2) /* Values for Type field above */ enum acpi_apmt_node_type { ACPI_APMT_NODE_TYPE_MC = 0x00, ACPI_APMT_NODE_TYPE_SMMU = 0x01, ACPI_APMT_NODE_TYPE_PCIE_ROOT = 0x02, ACPI_APMT_NODE_TYPE_ACPI = 0x03, ACPI_APMT_NODE_TYPE_CACHE = 0x04, ACPI_APMT_NODE_TYPE_COUNT }; /* Masks for ovflw_irq_flags field above */ #define ACPI_APMT_OVFLW_IRQ_FLAGS_MODE (1<<0) #define ACPI_APMT_OVFLW_IRQ_FLAGS_TYPE (1<<1) /* Values for ovflw_irq_flags mode field above */ #define ACPI_APMT_OVFLW_IRQ_FLAGS_MODE_LEVEL (0<<0) #define ACPI_APMT_OVFLW_IRQ_FLAGS_MODE_EDGE (1<<0) /* Values for ovflw_irq_flags type field above */ #define ACPI_APMT_OVFLW_IRQ_FLAGS_TYPE_WIRED (0<<1) /******************************************************************************* * * BDAT - BIOS Data ACPI Table * * Conforms to "BIOS Data ACPI Table", Interface Specification v4.0 Draft 5 * Nov 2020 * ******************************************************************************/ typedef struct acpi_table_bdat { ACPI_TABLE_HEADER Header; ACPI_GENERIC_ADDRESS Gas; } ACPI_TABLE_BDAT; /******************************************************************************* * * CCEL - CC-Event Log * From: "Guest-Host-Communication Interface (GHCI) for Intel * Trust Domain Extensions (Intel TDX)". Feb 2022 * ******************************************************************************/ typedef struct acpi_table_ccel { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 CCType; UINT8 CCSubType; UINT16 Reserved; UINT64 LogAreaMinimumLength; UINT64 LogAreaStartAddress; } ACPI_TABLE_CCEL; /******************************************************************************* * * ERDT - Enhanced Resource Director Technology (ERDT) table * * Conforms to "Intel Resource Director Technology Architecture Specification" * Version 1.1, January 2025 * ******************************************************************************/ typedef struct acpi_table_erdt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 MaxClos; /* Maximum classes of service */ UINT8 Reserved[24]; UINT8 Erdt_Substructures[]; } ACPI_TABLE_ERDT; /* Values for subtable type in ACPI_SUBTBL_HDR_16 */ enum AcpiErdtType { ACPI_ERDT_TYPE_RMDD = 0, ACPI_ERDT_TYPE_CACD = 1, ACPI_ERDT_TYPE_DACD = 2, ACPI_ERDT_TYPE_CMRC = 3, ACPI_ERDT_TYPE_MMRC = 4, ACPI_ERDT_TYPE_MARC = 5, ACPI_ERDT_TYPE_CARC = 6, ACPI_ERDT_TYPE_CMRD = 7, ACPI_ERDT_TYPE_IBRD = 8, ACPI_ERDT_TYPE_IBAD = 9, ACPI_ERDT_TYPE_CARD = 10, ACPI_ERDT_TYPE_RESERVED = 11 /* 11 and above are reserved */ }; /* * ERDT Subtables, correspond to Type in ACPI_SUBTBL_HDR_16 */ /* 0: RMDD - Resource Management Domain Description */ typedef struct acpi_erdt_rmdd { ACPI_SUBTBL_HDR_16 Header; UINT16 Flags; UINT16 IO_l3_Slices; /* Number of slices in IO cache */ UINT8 IO_l3_Sets; /* Number of sets in IO cache */ UINT8 IO_l3_Ways; /* Number of ways in IO cache */ UINT64 Reserved; UINT16 DomainId; /* Unique domain ID */ UINT32 MaxRmid; /* Maximun RMID supported */ UINT64 CregBase; /* Control Register Base Address */ UINT16 CregSize; /* Control Register Size (4K pages) */ UINT8 RmddStructs[]; } ACPI_ERDT_RMDD; /* 1: CACD - CPU Agent Collection Description */ typedef struct acpi_erdt_cacd { ACPI_SUBTBL_HDR_16 Header; UINT16 Reserved; UINT16 DomainId; /* Unique domain ID */ UINT32 X2APICIDS[]; } ACPI_ERDT_CACD; /* 2: DACD - Device Agent Collection Description */ typedef struct acpi_erdt_dacd { ACPI_SUBTBL_HDR_16 Header; UINT16 Reserved; UINT16 DomainId; /* Unique domain ID */ UINT8 DevPaths[]; } ACPI_ERDT_DACD; typedef struct acpi_erdt_dacd_dev_paths { ACPI_SUBTABLE_HEADER Header; UINT16 Segment; UINT8 Reserved; UINT8 StartBus; UINT8 Path[]; } ACPI_ERDT_DACD_PATHS; /* 3: CMRC - Cache Monitoring Registers for CPU Agents */ typedef struct acpi_erdt_cmrc { ACPI_SUBTBL_HDR_16 Header; UINT32 Reserved1; UINT32 Flags; UINT8 IndexFn; UINT8 Reserved2[11]; UINT64 CmtRegBase; UINT32 CmtRegSize; UINT16 ClumpSize; UINT16 ClumpStride; UINT64 UpScale; } ACPI_ERDT_CMRC; /* 4: MMRC - Memory-bandwidth Monitoring Registers for CPU Agents */ typedef struct acpi_erdt_mmrc { ACPI_SUBTBL_HDR_16 Header; UINT32 Reserved1; UINT32 Flags; UINT8 IndexFn; UINT8 Reserved2[11]; UINT64 RegBase; UINT32 RegSize; UINT8 CounterWidth; UINT64 UpScale; UINT8 Reserved3[7]; UINT32 CorrFactorListLen; UINT32 CorrFactorList[]; } ACPI_ERDT_MMRC; /* 5: MARC - Memory-bandwidth Allocation Registers for CPU Agents */ typedef struct acpi_erdt_marc { ACPI_SUBTBL_HDR_16 Header; UINT16 Reserved1; UINT16 Flags; UINT8 IndexFn; UINT8 Reserved2[7]; UINT64 RegBaseOpt; UINT64 RegBaseMin; UINT64 RegBaseMax; UINT32 MbaRegSize; UINT32 MbaCtrlRange; } ACPI_ERDT_MARC; /* 6: CARC - Cache Allocation Registers for CPU Agents */ typedef struct acpi_erdt_carc { ACPI_SUBTBL_HDR_16 Header; } ACPI_ERDT_CARC; /* 7: CMRD - Cache Monitoring Registers for Device Agents */ typedef struct acpi_erdt_cmrd { ACPI_SUBTBL_HDR_16 Header; UINT32 Reserved1; UINT32 Flags; UINT8 IndexFn; UINT8 Reserved2[11]; UINT64 RegBase; UINT32 RegSize; UINT16 CmtRegOff; UINT16 CmtClumpSize; UINT64 UpScale; } ACPI_ERDT_CMRD; /* 8: IBRD - Cache Monitoring Registers for Device Agents */ typedef struct acpi_erdt_ibrd { ACPI_SUBTBL_HDR_16 Header; UINT32 Reserved1; UINT32 Flags; UINT8 IndexFn; UINT8 Reserved2[11]; UINT64 RegBase; UINT32 RegSize; UINT16 TotalBwOffset; UINT16 IOMissBwOffset; UINT16 TotalBwClump; UINT16 IOMissBwClump; UINT8 Reserved3[7]; UINT8 CounterWidth; UINT64 UpScale; UINT32 CorrFactorListLen; UINT32 CorrFactorList[]; } ACPI_ERDT_IBRD; /* 9: IBAD - IO bandwidth Allocation Registers for device agents */ typedef struct acpi_erdt_ibad { ACPI_SUBTBL_HDR_16 Header; } ACPI_ERDT_IBAD; /* 10: CARD - IO bandwidth Allocation Registers for Device Agents */ typedef struct acpi_erdt_card { ACPI_SUBTBL_HDR_16 Header; UINT32 Reserved1; UINT32 Flags; UINT32 ContentionMask; UINT8 IndexFn; UINT8 Reserved2[7]; UINT64 RegBase; UINT32 RegSize; UINT16 CatRegOffset; UINT16 CatRegBlockSize; } ACPI_ERDT_CARD; /******************************************************************************* * * IORT - IO Remapping Table * * Conforms to "IO Remapping Table System Software on ARM Platforms", * Document number: ARM DEN 0049E.f, Apr 2024 * ******************************************************************************/ typedef struct acpi_table_iort { ACPI_TABLE_HEADER Header; UINT32 NodeCount; UINT32 NodeOffset; UINT32 Reserved; } ACPI_TABLE_IORT; /* * IORT subtables */ typedef struct acpi_iort_node { UINT8 Type; UINT16 Length; UINT8 Revision; UINT32 Identifier; UINT32 MappingCount; UINT32 MappingOffset; char NodeData[]; } ACPI_IORT_NODE; /* Values for subtable Type above */ enum AcpiIortNodeType { ACPI_IORT_NODE_ITS_GROUP = 0x00, ACPI_IORT_NODE_NAMED_COMPONENT = 0x01, ACPI_IORT_NODE_PCI_ROOT_COMPLEX = 0x02, ACPI_IORT_NODE_SMMU = 0x03, ACPI_IORT_NODE_SMMU_V3 = 0x04, ACPI_IORT_NODE_PMCG = 0x05, ACPI_IORT_NODE_RMR = 0x06, }; typedef struct acpi_iort_id_mapping { UINT32 InputBase; /* Lowest value in input range */ UINT32 IdCount; /* Number of IDs */ UINT32 OutputBase; /* Lowest value in output range */ UINT32 OutputReference; /* A reference to the output node */ UINT32 Flags; } ACPI_IORT_ID_MAPPING; /* Masks for Flags field above for IORT subtable */ #define ACPI_IORT_ID_SINGLE_MAPPING (1) typedef struct acpi_iort_memory_access { UINT32 CacheCoherency; UINT8 Hints; UINT16 Reserved; UINT8 MemoryFlags; } ACPI_IORT_MEMORY_ACCESS; /* Values for CacheCoherency field above */ #define ACPI_IORT_NODE_COHERENT 0x00000001 /* The device node is fully coherent */ #define ACPI_IORT_NODE_NOT_COHERENT 0x00000000 /* The device node is not coherent */ /* Masks for Hints field above */ #define ACPI_IORT_HT_TRANSIENT (1) #define ACPI_IORT_HT_WRITE (1<<1) #define ACPI_IORT_HT_READ (1<<2) #define ACPI_IORT_HT_OVERRIDE (1<<3) /* Masks for MemoryFlags field above */ #define ACPI_IORT_MF_COHERENCY (1) #define ACPI_IORT_MF_ATTRIBUTES (1<<1) #define ACPI_IORT_MF_CANWBS (1<<2) /* * IORT node specific subtables */ typedef struct acpi_iort_its_group { UINT32 ItsCount; UINT32 Identifiers[]; /* GIC ITS identifier array */ } ACPI_IORT_ITS_GROUP; typedef struct acpi_iort_named_component { UINT32 NodeFlags; UINT64 MemoryProperties; /* Memory access properties */ UINT8 MemoryAddressLimit; /* Memory address size limit */ char DeviceName[]; /* Path of namespace object */ } ACPI_IORT_NAMED_COMPONENT; /* Masks for Flags field above */ #define ACPI_IORT_NC_STALL_SUPPORTED (1) #define ACPI_IORT_NC_PASID_BITS (31<<1) typedef struct acpi_iort_root_complex { UINT64 MemoryProperties; /* Memory access properties */ UINT32 AtsAttribute; UINT32 PciSegmentNumber; UINT8 MemoryAddressLimit; /* Memory address size limit */ UINT16 PasidCapabilities; /* PASID Capabilities */ UINT8 Reserved[]; /* Reserved, must be zero */ } ACPI_IORT_ROOT_COMPLEX; /* Masks for AtsAttribute field above */ #define ACPI_IORT_ATS_SUPPORTED (1) /* The root complex ATS support */ #define ACPI_IORT_PRI_SUPPORTED (1<<1) /* The root complex PRI support */ #define ACPI_IORT_PASID_FWD_SUPPORTED (1<<2) /* The root complex PASID forward support */ /* Masks for PasidCapabilities field above */ #define ACPI_IORT_PASID_MAX_WIDTH (0x1F) /* Bits 0-4 */ typedef struct acpi_iort_smmu { UINT64 BaseAddress; /* SMMU base address */ UINT64 Span; /* Length of memory range */ UINT32 Model; UINT32 Flags; UINT32 GlobalInterruptOffset; UINT32 ContextInterruptCount; UINT32 ContextInterruptOffset; UINT32 PmuInterruptCount; UINT32 PmuInterruptOffset; UINT64 Interrupts[]; /* Interrupt array */ } ACPI_IORT_SMMU; /* Values for Model field above */ #define ACPI_IORT_SMMU_V1 0x00000000 /* Generic SMMUv1 */ #define ACPI_IORT_SMMU_V2 0x00000001 /* Generic SMMUv2 */ #define ACPI_IORT_SMMU_CORELINK_MMU400 0x00000002 /* ARM Corelink MMU-400 */ #define ACPI_IORT_SMMU_CORELINK_MMU500 0x00000003 /* ARM Corelink MMU-500 */ #define ACPI_IORT_SMMU_CORELINK_MMU401 0x00000004 /* ARM Corelink MMU-401 */ #define ACPI_IORT_SMMU_CAVIUM_THUNDERX 0x00000005 /* Cavium ThunderX SMMUv2 */ /* Masks for Flags field above */ #define ACPI_IORT_SMMU_DVM_SUPPORTED (1) #define ACPI_IORT_SMMU_COHERENT_WALK (1<<1) /* Global interrupt format */ typedef struct acpi_iort_smmu_gsi { UINT32 NSgIrpt; UINT32 NSgIrptFlags; UINT32 NSgCfgIrpt; UINT32 NSgCfgIrptFlags; } ACPI_IORT_SMMU_GSI; typedef struct acpi_iort_smmu_v3 { UINT64 BaseAddress; /* SMMUv3 base address */ UINT32 Flags; UINT32 Reserved; UINT64 VatosAddress; UINT32 Model; UINT32 EventGsiv; UINT32 PriGsiv; UINT32 GerrGsiv; UINT32 SyncGsiv; UINT32 Pxm; UINT32 IdMappingIndex; } ACPI_IORT_SMMU_V3; /* Values for Model field above */ #define ACPI_IORT_SMMU_V3_GENERIC 0x00000000 /* Generic SMMUv3 */ #define ACPI_IORT_SMMU_V3_HISILICON_HI161X 0x00000001 /* HiSilicon Hi161x SMMUv3 */ #define ACPI_IORT_SMMU_V3_CAVIUM_CN99XX 0x00000002 /* Cavium CN99xx SMMUv3 */ /* Masks for Flags field above */ #define ACPI_IORT_SMMU_V3_COHACC_OVERRIDE (1) #define ACPI_IORT_SMMU_V3_HTTU_OVERRIDE (3<<1) #define ACPI_IORT_SMMU_V3_PXM_VALID (1<<3) #define ACPI_IORT_SMMU_V3_DEVICEID_VALID (1<<4) typedef struct acpi_iort_pmcg { UINT64 Page0BaseAddress; UINT32 OverflowGsiv; UINT32 NodeReference; UINT64 Page1BaseAddress; } ACPI_IORT_PMCG; typedef struct acpi_iort_rmr { UINT32 Flags; UINT32 RmrCount; UINT32 RmrOffset; } ACPI_IORT_RMR; /* Masks for Flags field above */ #define ACPI_IORT_RMR_REMAP_PERMITTED (1) #define ACPI_IORT_RMR_ACCESS_PRIVILEGE (1<<1) /* * Macro to access the Access Attributes in flags field above: * Access Attributes is encoded in bits 9:2 */ #define ACPI_IORT_RMR_ACCESS_ATTRIBUTES(flags) (((flags) >> 2) & 0xFF) /* Values for above Access Attributes */ #define ACPI_IORT_RMR_ATTR_DEVICE_NGNRNE 0x00 #define ACPI_IORT_RMR_ATTR_DEVICE_NGNRE 0x01 #define ACPI_IORT_RMR_ATTR_DEVICE_NGRE 0x02 #define ACPI_IORT_RMR_ATTR_DEVICE_GRE 0x03 #define ACPI_IORT_RMR_ATTR_NORMAL_NC 0x04 #define ACPI_IORT_RMR_ATTR_NORMAL_IWB_OWB 0x05 typedef struct acpi_iort_rmr_desc { UINT64 BaseAddress; UINT64 Length; UINT32 Reserved; } ACPI_IORT_RMR_DESC; /******************************************************************************* * * IVRS - I/O Virtualization Reporting Structure * Version 1 * * Conforms to "AMD I/O Virtualization Technology (IOMMU) Specification", * Revision 1.26, February 2009. * ******************************************************************************/ typedef struct acpi_table_ivrs { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Info; /* Common virtualization info */ UINT64 Reserved; } ACPI_TABLE_IVRS; /* Values for Info field above */ #define ACPI_IVRS_PHYSICAL_SIZE 0x00007F00 /* 7 bits, physical address size */ #define ACPI_IVRS_VIRTUAL_SIZE 0x003F8000 /* 7 bits, virtual address size */ #define ACPI_IVRS_ATS_RESERVED 0x00400000 /* ATS address translation range reserved */ /* IVRS subtable header */ typedef struct acpi_ivrs_header { UINT8 Type; /* Subtable type */ UINT8 Flags; UINT16 Length; /* Subtable length */ UINT16 DeviceId; /* ID of IOMMU */ } ACPI_IVRS_HEADER; /* Values for subtable Type above */ enum AcpiIvrsType { ACPI_IVRS_TYPE_HARDWARE1 = 0x10, ACPI_IVRS_TYPE_HARDWARE2 = 0x11, ACPI_IVRS_TYPE_HARDWARE3 = 0x40, ACPI_IVRS_TYPE_MEMORY1 = 0x20, ACPI_IVRS_TYPE_MEMORY2 = 0x21, ACPI_IVRS_TYPE_MEMORY3 = 0x22 }; /* Masks for Flags field above for IVHD subtable */ #define ACPI_IVHD_TT_ENABLE (1) #define ACPI_IVHD_PASS_PW (1<<1) #define ACPI_IVHD_RES_PASS_PW (1<<2) #define ACPI_IVHD_ISOC (1<<3) #define ACPI_IVHD_IOTLB (1<<4) /* Masks for Flags field above for IVMD subtable */ #define ACPI_IVMD_UNITY (1) #define ACPI_IVMD_READ (1<<1) #define ACPI_IVMD_WRITE (1<<2) #define ACPI_IVMD_EXCLUSION_RANGE (1<<3) /* * IVRS subtables, correspond to Type in ACPI_IVRS_HEADER */ /* 0x10: I/O Virtualization Hardware Definition Block (IVHD) */ typedef struct acpi_ivrs_hardware_10 { ACPI_IVRS_HEADER Header; UINT16 CapabilityOffset; /* Offset for IOMMU control fields */ UINT64 BaseAddress; /* IOMMU control registers */ UINT16 PciSegmentGroup; UINT16 Info; /* MSI number and unit ID */ UINT32 FeatureReporting; } ACPI_IVRS_HARDWARE1; /* 0x11: I/O Virtualization Hardware Definition Block (IVHD) */ typedef struct acpi_ivrs_hardware_11 { ACPI_IVRS_HEADER Header; UINT16 CapabilityOffset; /* Offset for IOMMU control fields */ UINT64 BaseAddress; /* IOMMU control registers */ UINT16 PciSegmentGroup; UINT16 Info; /* MSI number and unit ID */ UINT32 Attributes; UINT64 EfrRegisterImage; UINT64 Reserved; } ACPI_IVRS_HARDWARE2; /* Masks for Info field above */ #define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */ #define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, UnitID */ /* * Device Entries for IVHD subtable, appear after ACPI_IVRS_HARDWARE structure. * Upper two bits of the Type field are the (encoded) length of the structure. * Currently, only 4 and 8 byte entries are defined. 16 and 32 byte entries * are reserved for future use but not defined. */ typedef struct acpi_ivrs_de_header { UINT8 Type; UINT16 Id; UINT8 DataSetting; } ACPI_IVRS_DE_HEADER; /* Length of device entry is in the top two bits of Type field above */ #define ACPI_IVHD_ENTRY_LENGTH 0xC0 /* Values for device entry Type field above */ enum AcpiIvrsDeviceEntryType { /* 4-byte device entries, all use ACPI_IVRS_DEVICE4 */ ACPI_IVRS_TYPE_PAD4 = 0, ACPI_IVRS_TYPE_ALL = 1, ACPI_IVRS_TYPE_SELECT = 2, ACPI_IVRS_TYPE_START = 3, ACPI_IVRS_TYPE_END = 4, /* 8-byte device entries */ ACPI_IVRS_TYPE_PAD8 = 64, ACPI_IVRS_TYPE_NOT_USED = 65, ACPI_IVRS_TYPE_ALIAS_SELECT = 66, /* Uses ACPI_IVRS_DEVICE8A */ ACPI_IVRS_TYPE_ALIAS_START = 67, /* Uses ACPI_IVRS_DEVICE8A */ ACPI_IVRS_TYPE_EXT_SELECT = 70, /* Uses ACPI_IVRS_DEVICE8B */ ACPI_IVRS_TYPE_EXT_START = 71, /* Uses ACPI_IVRS_DEVICE8B */ ACPI_IVRS_TYPE_SPECIAL = 72, /* Uses ACPI_IVRS_DEVICE8C */ /* Variable-length device entries */ ACPI_IVRS_TYPE_HID = 240 /* Uses ACPI_IVRS_DEVICE_HID */ }; /* Values for Data field above */ #define ACPI_IVHD_INIT_PASS (1) #define ACPI_IVHD_EINT_PASS (1<<1) #define ACPI_IVHD_NMI_PASS (1<<2) #define ACPI_IVHD_SYSTEM_MGMT (3<<4) #define ACPI_IVHD_LINT0_PASS (1<<6) #define ACPI_IVHD_LINT1_PASS (1<<7) /* Types 0-4: 4-byte device entry */ typedef struct acpi_ivrs_device4 { ACPI_IVRS_DE_HEADER Header; } ACPI_IVRS_DEVICE4; /* Types 66-67: 8-byte device entry */ typedef struct acpi_ivrs_device8a { ACPI_IVRS_DE_HEADER Header; UINT8 Reserved1; UINT16 UsedId; UINT8 Reserved2; } ACPI_IVRS_DEVICE8A; /* Types 70-71: 8-byte device entry */ typedef struct acpi_ivrs_device8b { ACPI_IVRS_DE_HEADER Header; UINT32 ExtendedData; } ACPI_IVRS_DEVICE8B; /* Values for ExtendedData above */ #define ACPI_IVHD_ATS_DISABLED (1<<31) /* Type 72: 8-byte device entry */ typedef struct acpi_ivrs_device8c { ACPI_IVRS_DE_HEADER Header; UINT8 Handle; UINT16 UsedId; UINT8 Variety; } ACPI_IVRS_DEVICE8C; /* Values for Variety field above */ #define ACPI_IVHD_IOAPIC 1 #define ACPI_IVHD_HPET 2 /* Type 240: variable-length device entry */ typedef struct acpi_ivrs_device_hid { ACPI_IVRS_DE_HEADER Header; UINT64 AcpiHid; UINT64 AcpiCid; UINT8 UidType; UINT8 UidLength; } ACPI_IVRS_DEVICE_HID; /* Values for UidType above */ #define ACPI_IVRS_UID_NOT_PRESENT 0 #define ACPI_IVRS_UID_IS_INTEGER 1 #define ACPI_IVRS_UID_IS_STRING 2 /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition Block (IVMD) */ typedef struct acpi_ivrs_memory { ACPI_IVRS_HEADER Header; UINT16 AuxData; UINT64 Reserved; UINT64 StartAddress; UINT64 MemoryLength; } ACPI_IVRS_MEMORY; /******************************************************************************* * * LPIT - Low Power Idle Table * * Conforms to "ACPI Low Power Idle Table (LPIT)" July 2014. * ******************************************************************************/ typedef struct acpi_table_lpit { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_LPIT; /* LPIT subtable header */ typedef struct acpi_lpit_header { UINT32 Type; /* Subtable type */ UINT32 Length; /* Subtable length */ UINT16 UniqueId; UINT16 Reserved; UINT32 Flags; } ACPI_LPIT_HEADER; /* Values for subtable Type above */ enum AcpiLpitType { ACPI_LPIT_TYPE_NATIVE_CSTATE = 0x00, ACPI_LPIT_TYPE_RESERVED = 0x01 /* 1 and above are reserved */ }; /* Masks for Flags field above */ #define ACPI_LPIT_STATE_DISABLED (1) #define ACPI_LPIT_NO_COUNTER (1<<1) /* * LPIT subtables, correspond to Type in ACPI_LPIT_HEADER */ /* 0x00: Native C-state instruction based LPI structure */ typedef struct acpi_lpit_native { ACPI_LPIT_HEADER Header; ACPI_GENERIC_ADDRESS EntryTrigger; UINT32 Residency; UINT32 Latency; ACPI_GENERIC_ADDRESS ResidencyCounter; UINT64 CounterFrequency; } ACPI_LPIT_NATIVE; /******************************************************************************* * * MADT - Multiple APIC Description Table * Version 3 * ******************************************************************************/ typedef struct acpi_table_madt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Address; /* Physical address of local APIC */ UINT32 Flags; } ACPI_TABLE_MADT; /* Masks for Flags field above */ #define ACPI_MADT_PCAT_COMPAT (1) /* 00: System also has dual 8259s */ /* Values for PCATCompat flag */ #define ACPI_MADT_DUAL_PIC 1 #define ACPI_MADT_MULTIPLE_APIC 0 /* Values for MADT subtable type in ACPI_SUBTABLE_HEADER */ enum AcpiMadtType { ACPI_MADT_TYPE_LOCAL_APIC = 0, ACPI_MADT_TYPE_IO_APIC = 1, ACPI_MADT_TYPE_INTERRUPT_OVERRIDE = 2, ACPI_MADT_TYPE_NMI_SOURCE = 3, ACPI_MADT_TYPE_LOCAL_APIC_NMI = 4, ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE = 5, ACPI_MADT_TYPE_IO_SAPIC = 6, ACPI_MADT_TYPE_LOCAL_SAPIC = 7, ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8, ACPI_MADT_TYPE_LOCAL_X2APIC = 9, ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10, ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11, ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12, ACPI_MADT_TYPE_GENERIC_MSI_FRAME = 13, ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR = 14, ACPI_MADT_TYPE_GENERIC_TRANSLATOR = 15, ACPI_MADT_TYPE_MULTIPROC_WAKEUP = 16, ACPI_MADT_TYPE_CORE_PIC = 17, ACPI_MADT_TYPE_LIO_PIC = 18, ACPI_MADT_TYPE_HT_PIC = 19, ACPI_MADT_TYPE_EIO_PIC = 20, ACPI_MADT_TYPE_MSI_PIC = 21, ACPI_MADT_TYPE_BIO_PIC = 22, ACPI_MADT_TYPE_LPC_PIC = 23, ACPI_MADT_TYPE_RINTC = 24, ACPI_MADT_TYPE_IMSIC = 25, ACPI_MADT_TYPE_APLIC = 26, ACPI_MADT_TYPE_PLIC = 27, ACPI_MADT_TYPE_RESERVED = 28, /* 28 to 0x7F are reserved */ ACPI_MADT_TYPE_OEM_RESERVED = 0x80 /* 0x80 to 0xFF are reserved for OEM use */ }; /* * MADT Subtables, correspond to Type in ACPI_SUBTABLE_HEADER */ /* 0: Processor Local APIC */ typedef struct acpi_madt_local_apic { ACPI_SUBTABLE_HEADER Header; UINT8 ProcessorId; /* ACPI processor id */ UINT8 Id; /* Processor's local APIC id */ UINT32 LapicFlags; } ACPI_MADT_LOCAL_APIC; /* 1: IO APIC */ typedef struct acpi_madt_io_apic { ACPI_SUBTABLE_HEADER Header; UINT8 Id; /* I/O APIC ID */ UINT8 Reserved; /* Reserved - must be zero */ UINT32 Address; /* APIC physical address */ UINT32 GlobalIrqBase; /* Global system interrupt where INTI lines start */ } ACPI_MADT_IO_APIC; /* 2: Interrupt Override */ typedef struct acpi_madt_interrupt_override { ACPI_SUBTABLE_HEADER Header; UINT8 Bus; /* 0 - ISA */ UINT8 SourceIrq; /* Interrupt source (IRQ) */ UINT32 GlobalIrq; /* Global system interrupt */ UINT16 IntiFlags; } ACPI_MADT_INTERRUPT_OVERRIDE; /* 3: NMI Source */ typedef struct acpi_madt_nmi_source { ACPI_SUBTABLE_HEADER Header; UINT16 IntiFlags; UINT32 GlobalIrq; /* Global system interrupt */ } ACPI_MADT_NMI_SOURCE; /* 4: Local APIC NMI */ typedef struct acpi_madt_local_apic_nmi { ACPI_SUBTABLE_HEADER Header; UINT8 ProcessorId; /* ACPI processor id */ UINT16 IntiFlags; UINT8 Lint; /* LINTn to which NMI is connected */ } ACPI_MADT_LOCAL_APIC_NMI; /* 5: Address Override */ typedef struct acpi_madt_local_apic_override { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; /* Reserved, must be zero */ UINT64 Address; /* APIC physical address */ } ACPI_MADT_LOCAL_APIC_OVERRIDE; /* 6: I/O Sapic */ typedef struct acpi_madt_io_sapic { ACPI_SUBTABLE_HEADER Header; UINT8 Id; /* I/O SAPIC ID */ UINT8 Reserved; /* Reserved, must be zero */ UINT32 GlobalIrqBase; /* Global interrupt for SAPIC start */ UINT64 Address; /* SAPIC physical address */ } ACPI_MADT_IO_SAPIC; /* 7: Local Sapic */ typedef struct acpi_madt_local_sapic { ACPI_SUBTABLE_HEADER Header; UINT8 ProcessorId; /* ACPI processor id */ UINT8 Id; /* SAPIC ID */ UINT8 Eid; /* SAPIC EID */ UINT8 Reserved[3]; /* Reserved, must be zero */ UINT32 LapicFlags; UINT32 Uid; /* Numeric UID - ACPI 3.0 */ char UidString[]; /* String UID - ACPI 3.0 */ } ACPI_MADT_LOCAL_SAPIC; /* 8: Platform Interrupt Source */ typedef struct acpi_madt_interrupt_source { ACPI_SUBTABLE_HEADER Header; UINT16 IntiFlags; UINT8 Type; /* 1=PMI, 2=INIT, 3=corrected */ UINT8 Id; /* Processor ID */ UINT8 Eid; /* Processor EID */ UINT8 IoSapicVector; /* Vector value for PMI interrupts */ UINT32 GlobalIrq; /* Global system interrupt */ UINT32 Flags; /* Interrupt Source Flags */ } ACPI_MADT_INTERRUPT_SOURCE; /* Masks for Flags field above */ #define ACPI_MADT_CPEI_OVERRIDE (1) /* 9: Processor Local X2APIC (ACPI 4.0) */ typedef struct acpi_madt_local_x2apic { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; /* Reserved - must be zero */ UINT32 LocalApicId; /* Processor x2APIC ID */ UINT32 LapicFlags; UINT32 Uid; /* ACPI processor UID */ } ACPI_MADT_LOCAL_X2APIC; /* 10: Local X2APIC NMI (ACPI 4.0) */ typedef struct acpi_madt_local_x2apic_nmi { ACPI_SUBTABLE_HEADER Header; UINT16 IntiFlags; UINT32 Uid; /* ACPI processor UID */ UINT8 Lint; /* LINTn to which NMI is connected */ UINT8 Reserved[3]; /* Reserved - must be zero */ } ACPI_MADT_LOCAL_X2APIC_NMI; /* 11: Generic Interrupt - GICC (ACPI 5.0 + ACPI 6.0 + ACPI 6.3 + ACPI 6.5 changes) */ typedef struct acpi_madt_generic_interrupt { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; /* Reserved - must be zero */ UINT32 CpuInterfaceNumber; UINT32 Uid; UINT32 Flags; UINT32 ParkingVersion; UINT32 PerformanceInterrupt; UINT64 ParkedAddress; UINT64 BaseAddress; UINT64 GicvBaseAddress; UINT64 GichBaseAddress; UINT32 VgicInterrupt; UINT64 GicrBaseAddress; UINT64 ArmMpidr; UINT8 EfficiencyClass; UINT8 Reserved2[1]; UINT16 SpeInterrupt; /* ACPI 6.3 */ UINT16 TrbeInterrupt; /* ACPI 6.5 */ } ACPI_MADT_GENERIC_INTERRUPT; /* Masks for Flags field above */ /* ACPI_MADT_ENABLED (1) Processor is usable if set */ #define ACPI_MADT_PERFORMANCE_IRQ_MODE (1<<1) /* 01: Performance Interrupt Mode */ #define ACPI_MADT_VGIC_IRQ_MODE (1<<2) /* 02: VGIC Maintenance Interrupt mode */ #define ACPI_MADT_GICC_ONLINE_CAPABLE (1<<3) /* 03: Processor is online capable */ #define ACPI_MADT_GICC_NON_COHERENT (1<<4) /* 04: GIC redistributor is not coherent */ /* 12: Generic Distributor (ACPI 5.0 + ACPI 6.0 changes) */ typedef struct acpi_madt_generic_distributor { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; /* Reserved - must be zero */ UINT32 GicId; UINT64 BaseAddress; UINT32 GlobalIrqBase; UINT8 Version; UINT8 Reserved2[3]; /* Reserved - must be zero */ } ACPI_MADT_GENERIC_DISTRIBUTOR; /* Values for Version field above */ enum AcpiMadtGicVersion { ACPI_MADT_GIC_VERSION_NONE = 0, ACPI_MADT_GIC_VERSION_V1 = 1, ACPI_MADT_GIC_VERSION_V2 = 2, ACPI_MADT_GIC_VERSION_V3 = 3, ACPI_MADT_GIC_VERSION_V4 = 4, ACPI_MADT_GIC_VERSION_RESERVED = 5 /* 5 and greater are reserved */ }; /* 13: Generic MSI Frame (ACPI 5.1) */ typedef struct acpi_madt_generic_msi_frame { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; /* Reserved - must be zero */ UINT32 MsiFrameId; UINT64 BaseAddress; UINT32 Flags; UINT16 SpiCount; UINT16 SpiBase; } ACPI_MADT_GENERIC_MSI_FRAME; /* Masks for Flags field above */ #define ACPI_MADT_OVERRIDE_SPI_VALUES (1) /* 14: Generic Redistributor (ACPI 5.1) */ typedef struct acpi_madt_generic_redistributor { ACPI_SUBTABLE_HEADER Header; UINT8 Flags; UINT8 Reserved; /* reserved - must be zero */ UINT64 BaseAddress; UINT32 Length; } ACPI_MADT_GENERIC_REDISTRIBUTOR; #define ACPI_MADT_GICR_NON_COHERENT (1) /* 15: Generic Translator (ACPI 6.0) */ typedef struct acpi_madt_generic_translator { ACPI_SUBTABLE_HEADER Header; UINT8 Flags; UINT8 Reserved; /* reserved - must be zero */ UINT32 TranslationId; UINT64 BaseAddress; UINT32 Reserved2; } ACPI_MADT_GENERIC_TRANSLATOR; #define ACPI_MADT_ITS_NON_COHERENT (1) /* 16: Multiprocessor wakeup (ACPI 6.4) */ typedef struct acpi_madt_multiproc_wakeup { ACPI_SUBTABLE_HEADER Header; UINT16 MailboxVersion; UINT32 Reserved; /* reserved - must be zero */ UINT64 BaseAddress; } ACPI_MADT_MULTIPROC_WAKEUP; #define ACPI_MULTIPROC_WAKEUP_MB_OS_SIZE 2032 #define ACPI_MULTIPROC_WAKEUP_MB_FIRMWARE_SIZE 2048 typedef struct acpi_madt_multiproc_wakeup_mailbox { UINT16 Command; UINT16 Reserved; /* reserved - must be zero */ UINT32 ApicId; UINT64 WakeupVector; UINT8 ReservedOs[ACPI_MULTIPROC_WAKEUP_MB_OS_SIZE]; /* reserved for OS use */ UINT8 ReservedFirmware[ACPI_MULTIPROC_WAKEUP_MB_FIRMWARE_SIZE]; /* reserved for firmware use */ } ACPI_MADT_MULTIPROC_WAKEUP_MAILBOX; #define ACPI_MP_WAKE_COMMAND_WAKEUP 1 /* 17: CPU Core Interrupt Controller (ACPI 6.5) */ typedef struct acpi_madt_core_pic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT32 ProcessorId; UINT32 CoreId; UINT32 Flags; } ACPI_MADT_CORE_PIC; /* Values for Version field above */ enum AcpiMadtCorePicVersion { ACPI_MADT_CORE_PIC_VERSION_NONE = 0, ACPI_MADT_CORE_PIC_VERSION_V1 = 1, ACPI_MADT_CORE_PIC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ }; /* 18: Legacy I/O Interrupt Controller (ACPI 6.5) */ typedef struct acpi_madt_lio_pic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT64 Address; UINT16 Size; UINT8 Cascade[2]; UINT32 CascadeMap[2]; } ACPI_MADT_LIO_PIC; /* Values for Version field above */ enum AcpiMadtLioPicVersion { ACPI_MADT_LIO_PIC_VERSION_NONE = 0, ACPI_MADT_LIO_PIC_VERSION_V1 = 1, ACPI_MADT_LIO_PIC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ }; /* 19: HT Interrupt Controller (ACPI 6.5) */ typedef struct acpi_madt_ht_pic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT64 Address; UINT16 Size; UINT8 Cascade[8]; } ACPI_MADT_HT_PIC; /* Values for Version field above */ enum AcpiMadtHtPicVersion { ACPI_MADT_HT_PIC_VERSION_NONE = 0, ACPI_MADT_HT_PIC_VERSION_V1 = 1, ACPI_MADT_HT_PIC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ }; /* 20: Extend I/O Interrupt Controller (ACPI 6.5) */ typedef struct acpi_madt_eio_pic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT8 Cascade; UINT8 Node; UINT64 NodeMap; } ACPI_MADT_EIO_PIC; /* Values for Version field above */ enum AcpiMadtEioPicVersion { ACPI_MADT_EIO_PIC_VERSION_NONE = 0, ACPI_MADT_EIO_PIC_VERSION_V1 = 1, ACPI_MADT_EIO_PIC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ }; /* 21: MSI Interrupt Controller (ACPI 6.5) */ typedef struct acpi_madt_msi_pic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT64 MsgAddress; UINT32 Start; UINT32 Count; } ACPI_MADT_MSI_PIC; /* Values for Version field above */ enum AcpiMadtMsiPicVersion { ACPI_MADT_MSI_PIC_VERSION_NONE = 0, ACPI_MADT_MSI_PIC_VERSION_V1 = 1, ACPI_MADT_MSI_PIC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ }; /* 22: Bridge I/O Interrupt Controller (ACPI 6.5) */ typedef struct acpi_madt_bio_pic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT64 Address; UINT16 Size; UINT16 Id; UINT16 GsiBase; } ACPI_MADT_BIO_PIC; /* Values for Version field above */ enum AcpiMadtBioPicVersion { ACPI_MADT_BIO_PIC_VERSION_NONE = 0, ACPI_MADT_BIO_PIC_VERSION_V1 = 1, ACPI_MADT_BIO_PIC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ }; /* 23: LPC Interrupt Controller (ACPI 6.5) */ typedef struct acpi_madt_lpc_pic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT64 Address; UINT16 Size; UINT8 Cascade; } ACPI_MADT_LPC_PIC; /* Values for Version field above */ enum AcpiMadtLpcPicVersion { ACPI_MADT_LPC_PIC_VERSION_NONE = 0, ACPI_MADT_LPC_PIC_VERSION_V1 = 1, ACPI_MADT_LPC_PIC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ }; /* 24: RISC-V INTC */ typedef struct acpi_madt_rintc { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT8 Reserved; UINT32 Flags; UINT64 HartId; UINT32 Uid; /* ACPI processor UID */ UINT32 ExtIntcId; /* External INTC Id */ UINT64 ImsicAddr; /* IMSIC base address */ UINT32 ImsicSize; /* IMSIC size */ } ACPI_MADT_RINTC; /* Values for RISC-V INTC Version field above */ enum AcpiMadtRintcVersion { ACPI_MADT_RINTC_VERSION_NONE = 0, ACPI_MADT_RINTC_VERSION_V1 = 1, ACPI_MADT_RINTC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ }; /* 25: RISC-V IMSIC */ typedef struct acpi_madt_imsic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT8 Reserved; UINT32 Flags; UINT16 NumIds; UINT16 NumGuestIds; UINT8 GuestIndexBits; UINT8 HartIndexBits; UINT8 GroupIndexBits; UINT8 GroupIndexShift; } ACPI_MADT_IMSIC; /* 26: RISC-V APLIC */ typedef struct acpi_madt_aplic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT8 Id; UINT32 Flags; UINT8 HwId[8]; UINT16 NumIdcs; UINT16 NumSources; UINT32 GsiBase; UINT64 BaseAddr; UINT32 Size; } ACPI_MADT_APLIC; /* 27: RISC-V PLIC */ typedef struct acpi_madt_plic { ACPI_SUBTABLE_HEADER Header; UINT8 Version; UINT8 Id; UINT8 HwId[8]; UINT16 NumIrqs; UINT16 MaxPrio; UINT32 Flags; UINT32 Size; UINT64 BaseAddr; UINT32 GsiBase; } ACPI_MADT_PLIC; /* 80: OEM data */ typedef struct acpi_madt_oem_data { ACPI_FLEX_ARRAY(UINT8, OemData); } ACPI_MADT_OEM_DATA; /* * Common flags fields for MADT subtables */ /* MADT Local APIC flags */ #define ACPI_MADT_ENABLED (1) /* 00: Processor is usable if set */ #define ACPI_MADT_ONLINE_CAPABLE (2) /* 01: System HW supports enabling processor at runtime */ /* MADT MPS INTI flags (IntiFlags) */ #define ACPI_MADT_POLARITY_MASK (3) /* 00-01: Polarity of APIC I/O input signals */ #define ACPI_MADT_TRIGGER_MASK (3<<2) /* 02-03: Trigger mode of APIC input signals */ /* Values for MPS INTI flags */ #define ACPI_MADT_POLARITY_CONFORMS 0 #define ACPI_MADT_POLARITY_ACTIVE_HIGH 1 #define ACPI_MADT_POLARITY_RESERVED 2 #define ACPI_MADT_POLARITY_ACTIVE_LOW 3 #define ACPI_MADT_TRIGGER_CONFORMS (0) #define ACPI_MADT_TRIGGER_EDGE (1<<2) #define ACPI_MADT_TRIGGER_RESERVED (2<<2) #define ACPI_MADT_TRIGGER_LEVEL (3<<2) /******************************************************************************* * * MCFG - PCI Memory Mapped Configuration table and subtable * Version 1 * * Conforms to "PCI Firmware Specification", Revision 3.0, June 20, 2005 * ******************************************************************************/ typedef struct acpi_table_mcfg { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 Reserved[8]; } ACPI_TABLE_MCFG; /* Subtable */ typedef struct acpi_mcfg_allocation { UINT64 Address; /* Base address, processor-relative */ UINT16 PciSegment; /* PCI segment group number */ UINT8 StartBusNumber; /* Starting PCI Bus number */ UINT8 EndBusNumber; /* Final PCI Bus number */ UINT32 Reserved; } ACPI_MCFG_ALLOCATION; /******************************************************************************* * * MCHI - Management Controller Host Interface Table * Version 1 * * Conforms to "Management Component Transport Protocol (MCTP) Host * Interface Specification", Revision 1.0.0a, October 13, 2009 * ******************************************************************************/ typedef struct acpi_table_mchi { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 InterfaceType; UINT8 Protocol; UINT64 ProtocolData; UINT8 InterruptType; UINT8 Gpe; UINT8 PciDeviceFlag; UINT32 GlobalInterrupt; ACPI_GENERIC_ADDRESS ControlRegister; UINT8 PciSegment; UINT8 PciBus; UINT8 PciDevice; UINT8 PciFunction; } ACPI_TABLE_MCHI; /******************************************************************************* * * MPAM - Memory System Resource Partitioning and Monitoring * * Conforms to "ACPI for Memory System Resource Partitioning and Monitoring 2.0" * Document number: ARM DEN 0065, December, 2022. * ******************************************************************************/ /* MPAM RIS locator types. Table 11, Location types */ enum AcpiMpamLocatorType { ACPI_MPAM_LOCATION_TYPE_PROCESSOR_CACHE = 0, ACPI_MPAM_LOCATION_TYPE_MEMORY = 1, ACPI_MPAM_LOCATION_TYPE_SMMU = 2, ACPI_MPAM_LOCATION_TYPE_MEMORY_CACHE = 3, ACPI_MPAM_LOCATION_TYPE_ACPI_DEVICE = 4, ACPI_MPAM_LOCATION_TYPE_INTERCONNECT = 5, ACPI_MPAM_LOCATION_TYPE_UNKNOWN = 0xFF }; /* MPAM Functional dependency descriptor. Table 10 */ typedef struct acpi_mpam_func_deps { UINT32 Producer; UINT32 Reserved; } ACPI_MPAM_FUNC_DEPS; /* MPAM Processor cache locator descriptor. Table 13 */ typedef struct acpi_mpam_resource_cache_locator { UINT64 CacheReference; UINT32 Reserved; } ACPI_MPAM_RESOURCE_CACHE_LOCATOR; /* MPAM Memory locator descriptor. Table 14 */ typedef struct acpi_mpam_resource_memory_locator { UINT64 ProximityDomain; UINT32 Reserved; } ACPI_MPAM_RESOURCE_MEMORY_LOCATOR; /* MPAM SMMU locator descriptor. Table 15 */ typedef struct acpi_mpam_resource_smmu_locator { UINT64 SmmuInterface; UINT32 Reserved; } ACPI_MPAM_RESOURCE_SMMU_INTERFACE; /* MPAM Memory-side cache locator descriptor. Table 16 */ typedef struct acpi_mpam_resource_memcache_locator { UINT8 Reserved[7]; UINT8 Level; UINT32 Reference; } ACPI_MPAM_RESOURCE_MEMCACHE_INTERFACE; /* MPAM ACPI device locator descriptor. Table 17 */ typedef struct acpi_mpam_resource_acpi_locator { UINT64 AcpiHwId; UINT32 AcpiUniqueId; } ACPI_MPAM_RESOURCE_ACPI_INTERFACE; /* MPAM Interconnect locator descriptor. Table 18 */ typedef struct acpi_mpam_resource_interconnect_locator { UINT64 InterConnectDescTblOff; UINT32 Reserved; } ACPI_MPAM_RESOURCE_INTERCONNECT_INTERFACE; /* MPAM Locator structure. Table 12 */ typedef struct acpi_mpam_resource_generic_locator { UINT64 Descriptor1; UINT32 Descriptor2; } ACPI_MPAM_RESOURCE_GENERIC_LOCATOR; typedef union acpi_mpam_resource_locator { ACPI_MPAM_RESOURCE_CACHE_LOCATOR CacheLocator; ACPI_MPAM_RESOURCE_MEMORY_LOCATOR MemoryLocator; ACPI_MPAM_RESOURCE_SMMU_INTERFACE SmmuLocator; ACPI_MPAM_RESOURCE_MEMCACHE_INTERFACE MemCacheLocator; ACPI_MPAM_RESOURCE_ACPI_INTERFACE AcpiLocator; ACPI_MPAM_RESOURCE_INTERCONNECT_INTERFACE InterconnectIfcLocator; ACPI_MPAM_RESOURCE_GENERIC_LOCATOR GenericLocator; } ACPI_MPAM_RESOURCE_LOCATOR; /* Memory System Component Resource Node Structure Table 9 */ typedef struct acpi_mpam_resource_node { UINT32 Identifier; UINT8 RISIndex; UINT16 Reserved1; UINT8 LocatorType; ACPI_MPAM_RESOURCE_LOCATOR Locator; UINT32 NumFunctionalDeps; } ACPI_MPAM_RESOURCE_NODE; /* Memory System Component (MSC) Node Structure. Table 4 */ typedef struct acpi_mpam_msc_node { UINT16 Length; UINT8 InterfaceType; UINT8 Reserved; UINT32 Identifier; UINT64 BaseAddress; UINT32 MMIOSize; UINT32 OverflowInterrupt; UINT32 OverflowInterruptFlags; UINT32 Reserved1; UINT32 OverflowInterruptAffinity; UINT32 ErrorInterrupt; UINT32 ErrorInterruptFlags; UINT32 Reserved2; UINT32 ErrorInterruptAffinity; UINT32 MaxNrdyUsec; UINT64 HardwareIdLinkedDevice; UINT32 InstanceIdLinkedDevice; UINT32 NumResourceNodes; } ACPI_MPAM_MSC_NODE; typedef struct acpi_table_mpam { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_MPAM; /******************************************************************************* * * MPST - Memory Power State Table (ACPI 5.0) * Version 1 * ******************************************************************************/ #define ACPI_MPST_CHANNEL_INFO \ UINT8 ChannelId; \ UINT8 Reserved1[3]; \ UINT16 PowerNodeCount; \ UINT16 Reserved2; /* Main table */ typedef struct acpi_table_mpst { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */ } ACPI_TABLE_MPST; /* Memory Platform Communication Channel Info */ typedef struct acpi_mpst_channel { ACPI_MPST_CHANNEL_INFO /* Platform Communication Channel */ } ACPI_MPST_CHANNEL; /* Memory Power Node Structure */ typedef struct acpi_mpst_power_node { UINT8 Flags; UINT8 Reserved1; UINT16 NodeId; UINT32 Length; UINT64 RangeAddress; UINT64 RangeLength; UINT32 NumPowerStates; UINT32 NumPhysicalComponents; } ACPI_MPST_POWER_NODE; /* Values for Flags field above */ #define ACPI_MPST_ENABLED 1 #define ACPI_MPST_POWER_MANAGED 2 #define ACPI_MPST_HOT_PLUG_CAPABLE 4 /* Memory Power State Structure (follows POWER_NODE above) */ typedef struct acpi_mpst_power_state { UINT8 PowerState; UINT8 InfoIndex; } ACPI_MPST_POWER_STATE; /* Physical Component ID Structure (follows POWER_STATE above) */ typedef struct acpi_mpst_component { UINT16 ComponentId; } ACPI_MPST_COMPONENT; /* Memory Power State Characteristics Structure (follows all POWER_NODEs) */ typedef struct acpi_mpst_data_hdr { UINT16 CharacteristicsCount; UINT16 Reserved; } ACPI_MPST_DATA_HDR; typedef struct acpi_mpst_power_data { UINT8 StructureId; UINT8 Flags; UINT16 Reserved1; UINT32 AveragePower; UINT32 PowerSaving; UINT64 ExitLatency; UINT64 Reserved2; } ACPI_MPST_POWER_DATA; /* Values for Flags field above */ #define ACPI_MPST_PRESERVE 1 #define ACPI_MPST_AUTOENTRY 2 #define ACPI_MPST_AUTOEXIT 4 /* Shared Memory Region (not part of an ACPI table) */ typedef struct acpi_mpst_shared { UINT32 Signature; UINT16 PccCommand; UINT16 PccStatus; UINT32 CommandRegister; UINT32 StatusRegister; UINT32 PowerStateId; UINT32 PowerNodeId; UINT64 EnergyConsumed; UINT64 AveragePower; } ACPI_MPST_SHARED; /******************************************************************************* * * MSCT - Maximum System Characteristics Table (ACPI 4.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_msct { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 ProximityOffset; /* Location of proximity info struct(s) */ UINT32 MaxProximityDomains;/* Max number of proximity domains */ UINT32 MaxClockDomains; /* Max number of clock domains */ UINT64 MaxAddress; /* Max physical address in system */ } ACPI_TABLE_MSCT; /* Subtable - Maximum Proximity Domain Information. Version 1 */ typedef struct acpi_msct_proximity { UINT8 Revision; UINT8 Length; UINT32 RangeStart; /* Start of domain range */ UINT32 RangeEnd; /* End of domain range */ UINT32 ProcessorCapacity; UINT64 MemoryCapacity; /* In bytes */ } ACPI_MSCT_PROXIMITY; /******************************************************************************* * * MRRM - Memory Range and Region Mapping (MRRM) table * Conforms to "Intel Resource Director Technology Architecture Specification" * Version 1.1, January 2025 * ******************************************************************************/ typedef struct acpi_table_mrrm { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 MaxMemRegion; /* Max Memory Regions supported */ UINT8 Flags; /* Region assignment type */ UINT8 Reserved[26]; UINT8 Memory_Range_Entry[]; } ACPI_TABLE_MRRM; /* Flags */ #define ACPI_MRRM_FLAGS_REGION_ASSIGNMENT_OS (1<<0) /******************************************************************************* * * Memory Range entry - Memory Range entry in MRRM table * ******************************************************************************/ typedef struct acpi_mrrm_mem_range_entry { ACPI_SUBTBL_HDR_16 Header; UINT32 Reserved0; /* Reserved */ UINT64 AddrBase; /* Base addr of the mem range */ UINT64 AddrLen; /* Length of the mem range */ UINT16 RegionIdFlags; /* Valid local or remote Region-ID */ UINT8 LocalRegionId; /* Platform-assigned static local Region-ID */ UINT8 RemoteRegionId; /* Platform-assigned static remote Region-ID */ UINT32 Reserved1; /* Reserved */ /* Region-ID Programming Registers[] */ } ACPI_MRRM_MEM_RANGE_ENTRY; /* Values for RegionIdFlags above */ #define ACPI_MRRM_VALID_REGION_ID_FLAGS_LOCAL (1<<0) #define ACPI_MRRM_VALID_REGION_ID_FLAGS_REMOTE (1<<1) /******************************************************************************* * * MSDM - Microsoft Data Management table * * Conforms to "Microsoft Software Licensing Tables (SLIC and MSDM)", * November 29, 2011. Copyright 2011 Microsoft * ******************************************************************************/ /* Basic MSDM table is only the common ACPI header */ typedef struct acpi_table_msdm { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_MSDM; /******************************************************************************* * * NFIT - NVDIMM Interface Table (ACPI 6.0+) * Version 1 * ******************************************************************************/ typedef struct acpi_table_nfit { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Reserved; /* Reserved, must be zero */ } ACPI_TABLE_NFIT; /* Subtable header for NFIT */ typedef struct acpi_nfit_header { UINT16 Type; UINT16 Length; } ACPI_NFIT_HEADER; /* Values for subtable type in ACPI_NFIT_HEADER */ enum AcpiNfitType { ACPI_NFIT_TYPE_SYSTEM_ADDRESS = 0, ACPI_NFIT_TYPE_MEMORY_MAP = 1, ACPI_NFIT_TYPE_INTERLEAVE = 2, ACPI_NFIT_TYPE_SMBIOS = 3, ACPI_NFIT_TYPE_CONTROL_REGION = 4, ACPI_NFIT_TYPE_DATA_REGION = 5, ACPI_NFIT_TYPE_FLUSH_ADDRESS = 6, ACPI_NFIT_TYPE_CAPABILITIES = 7, ACPI_NFIT_TYPE_RESERVED = 8 /* 8 and greater are reserved */ }; /* * NFIT Subtables */ /* 0: System Physical Address Range Structure */ typedef struct acpi_nfit_system_address { ACPI_NFIT_HEADER Header; UINT16 RangeIndex; UINT16 Flags; UINT32 Reserved; /* Reserved, must be zero */ UINT32 ProximityDomain; UINT8 RangeGuid[16]; UINT64 Address; UINT64 Length; UINT64 MemoryMapping; UINT64 LocationCookie; /* ACPI 6.4 */ } ACPI_NFIT_SYSTEM_ADDRESS; /* Flags */ #define ACPI_NFIT_ADD_ONLINE_ONLY (1) /* 00: Add/Online Operation Only */ #define ACPI_NFIT_PROXIMITY_VALID (1<<1) /* 01: Proximity Domain Valid */ #define ACPI_NFIT_LOCATION_COOKIE_VALID (1<<2) /* 02: SPA location cookie valid (ACPI 6.4) */ /* Range Type GUIDs appear in the include/acuuid.h file */ /* 1: Memory Device to System Address Range Map Structure */ typedef struct acpi_nfit_memory_map { ACPI_NFIT_HEADER Header; UINT32 DeviceHandle; UINT16 PhysicalId; UINT16 RegionId; UINT16 RangeIndex; UINT16 RegionIndex; UINT64 RegionSize; UINT64 RegionOffset; UINT64 Address; UINT16 InterleaveIndex; UINT16 InterleaveWays; UINT16 Flags; UINT16 Reserved; /* Reserved, must be zero */ } ACPI_NFIT_MEMORY_MAP; /* Flags */ #define ACPI_NFIT_MEM_SAVE_FAILED (1) /* 00: Last SAVE to Memory Device failed */ #define ACPI_NFIT_MEM_RESTORE_FAILED (1<<1) /* 01: Last RESTORE from Memory Device failed */ #define ACPI_NFIT_MEM_FLUSH_FAILED (1<<2) /* 02: Platform flush failed */ #define ACPI_NFIT_MEM_NOT_ARMED (1<<3) /* 03: Memory Device is not armed */ #define ACPI_NFIT_MEM_HEALTH_OBSERVED (1<<4) /* 04: Memory Device observed SMART/health events */ #define ACPI_NFIT_MEM_HEALTH_ENABLED (1<<5) /* 05: SMART/health events enabled */ #define ACPI_NFIT_MEM_MAP_FAILED (1<<6) /* 06: Mapping to SPA failed */ /* 2: Interleave Structure */ typedef struct acpi_nfit_interleave { ACPI_NFIT_HEADER Header; UINT16 InterleaveIndex; UINT16 Reserved; /* Reserved, must be zero */ UINT32 LineCount; UINT32 LineSize; UINT32 LineOffset[]; /* Variable length */ } ACPI_NFIT_INTERLEAVE; /* 3: SMBIOS Management Information Structure */ typedef struct acpi_nfit_smbios { ACPI_NFIT_HEADER Header; UINT32 Reserved; /* Reserved, must be zero */ UINT8 Data[]; /* Variable length */ } ACPI_NFIT_SMBIOS; /* 4: NVDIMM Control Region Structure */ typedef struct acpi_nfit_control_region { ACPI_NFIT_HEADER Header; UINT16 RegionIndex; UINT16 VendorId; UINT16 DeviceId; UINT16 RevisionId; UINT16 SubsystemVendorId; UINT16 SubsystemDeviceId; UINT16 SubsystemRevisionId; UINT8 ValidFields; UINT8 ManufacturingLocation; UINT16 ManufacturingDate; UINT8 Reserved[2]; /* Reserved, must be zero */ UINT32 SerialNumber; UINT16 Code; UINT16 Windows; UINT64 WindowSize; UINT64 CommandOffset; UINT64 CommandSize; UINT64 StatusOffset; UINT64 StatusSize; UINT16 Flags; UINT8 Reserved1[6]; /* Reserved, must be zero */ } ACPI_NFIT_CONTROL_REGION; /* Flags */ #define ACPI_NFIT_CONTROL_BUFFERED (1) /* Block Data Windows implementation is buffered */ /* ValidFields bits */ #define ACPI_NFIT_CONTROL_MFG_INFO_VALID (1) /* Manufacturing fields are valid */ /* 5: NVDIMM Block Data Window Region Structure */ typedef struct acpi_nfit_data_region { ACPI_NFIT_HEADER Header; UINT16 RegionIndex; UINT16 Windows; UINT64 Offset; UINT64 Size; UINT64 Capacity; UINT64 StartAddress; } ACPI_NFIT_DATA_REGION; /* 6: Flush Hint Address Structure */ typedef struct acpi_nfit_flush_address { ACPI_NFIT_HEADER Header; UINT32 DeviceHandle; UINT16 HintCount; UINT8 Reserved[6]; /* Reserved, must be zero */ UINT64 HintAddress[]; /* Variable length */ } ACPI_NFIT_FLUSH_ADDRESS; /* 7: Platform Capabilities Structure */ typedef struct acpi_nfit_capabilities { ACPI_NFIT_HEADER Header; UINT8 HighestCapability; UINT8 Reserved[3]; /* Reserved, must be zero */ UINT32 Capabilities; UINT32 Reserved2; } ACPI_NFIT_CAPABILITIES; /* Capabilities Flags */ #define ACPI_NFIT_CAPABILITY_CACHE_FLUSH (1) /* 00: Cache Flush to NVDIMM capable */ #define ACPI_NFIT_CAPABILITY_MEM_FLUSH (1<<1) /* 01: Memory Flush to NVDIMM capable */ #define ACPI_NFIT_CAPABILITY_MEM_MIRRORING (1<<2) /* 02: Memory Mirroring capable */ /* * NFIT/DVDIMM device handle support - used as the _ADR for each NVDIMM */ typedef struct nfit_device_handle { UINT32 Handle; } NFIT_DEVICE_HANDLE; /* Device handle construction and extraction macros */ #define ACPI_NFIT_DIMM_NUMBER_MASK 0x0000000F #define ACPI_NFIT_CHANNEL_NUMBER_MASK 0x000000F0 #define ACPI_NFIT_MEMORY_ID_MASK 0x00000F00 #define ACPI_NFIT_SOCKET_ID_MASK 0x0000F000 #define ACPI_NFIT_NODE_ID_MASK 0x0FFF0000 #define ACPI_NFIT_DIMM_NUMBER_OFFSET 0 #define ACPI_NFIT_CHANNEL_NUMBER_OFFSET 4 #define ACPI_NFIT_MEMORY_ID_OFFSET 8 #define ACPI_NFIT_SOCKET_ID_OFFSET 12 #define ACPI_NFIT_NODE_ID_OFFSET 16 /* Macro to construct a NFIT/NVDIMM device handle */ #define ACPI_NFIT_BUILD_DEVICE_HANDLE(dimm, channel, memory, socket, node) \ ((dimm) | \ ((channel) << ACPI_NFIT_CHANNEL_NUMBER_OFFSET) | \ ((memory) << ACPI_NFIT_MEMORY_ID_OFFSET) | \ ((socket) << ACPI_NFIT_SOCKET_ID_OFFSET) | \ ((node) << ACPI_NFIT_NODE_ID_OFFSET)) /* Macros to extract individual fields from a NFIT/NVDIMM device handle */ #define ACPI_NFIT_GET_DIMM_NUMBER(handle) \ ((handle) & ACPI_NFIT_DIMM_NUMBER_MASK) #define ACPI_NFIT_GET_CHANNEL_NUMBER(handle) \ (((handle) & ACPI_NFIT_CHANNEL_NUMBER_MASK) >> ACPI_NFIT_CHANNEL_NUMBER_OFFSET) #define ACPI_NFIT_GET_MEMORY_ID(handle) \ (((handle) & ACPI_NFIT_MEMORY_ID_MASK) >> ACPI_NFIT_MEMORY_ID_OFFSET) #define ACPI_NFIT_GET_SOCKET_ID(handle) \ (((handle) & ACPI_NFIT_SOCKET_ID_MASK) >> ACPI_NFIT_SOCKET_ID_OFFSET) #define ACPI_NFIT_GET_NODE_ID(handle) \ (((handle) & ACPI_NFIT_NODE_ID_MASK) >> ACPI_NFIT_NODE_ID_OFFSET) /******************************************************************************* * * NHLT - Non HDAudio Link Table * Version 1 * ******************************************************************************/ typedef struct acpi_table_nhlt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 EndpointsCount; /* * ACPI_NHLT_ENDPOINT Endpoints[]; * ACPI_NHLT_CONFIG OEDConfig; */ } ACPI_TABLE_NHLT; typedef struct acpi_nhlt_endpoint { UINT32 Length; UINT8 LinkType; UINT8 InstanceId; UINT16 VendorId; UINT16 DeviceId; UINT16 RevisionId; UINT32 SubsystemId; UINT8 DeviceType; UINT8 Direction; UINT8 VirtualBusId; /* * ACPI_NHLT_CONFIG DeviceConfig; * ACPI_NHLT_FORMATS_CONFIG FormatsConfig; * ACPI_NHLT_DEVICES_INFO DevicesInfo; */ } ACPI_NHLT_ENDPOINT; /* Values for LinkType field above */ #define ACPI_NHLT_LINKTYPE_HDA 0 #define ACPI_NHLT_LINKTYPE_DSP 1 #define ACPI_NHLT_LINKTYPE_PDM 2 #define ACPI_NHLT_LINKTYPE_SSP 3 #define ACPI_NHLT_LINKTYPE_SLIMBUS 4 #define ACPI_NHLT_LINKTYPE_SDW 5 #define ACPI_NHLT_LINKTYPE_UAOL 6 /* Values for DeviceId field above */ #define ACPI_NHLT_DEVICEID_DMIC 0xAE20 #define ACPI_NHLT_DEVICEID_BT 0xAE30 #define ACPI_NHLT_DEVICEID_I2S 0xAE34 /* Values for DeviceType field above */ /* Device types unique to endpoint of LinkType=PDM */ #define ACPI_NHLT_DEVICETYPE_PDM 0 #define ACPI_NHLT_DEVICETYPE_PDM_SKL 1 /* Device types unique to endpoint of LinkType=SSP */ #define ACPI_NHLT_DEVICETYPE_BT 0 #define ACPI_NHLT_DEVICETYPE_FM 1 #define ACPI_NHLT_DEVICETYPE_MODEM 2 #define ACPI_NHLT_DEVICETYPE_CODEC 4 /* Values for Direction field above */ #define ACPI_NHLT_DIR_RENDER 0 #define ACPI_NHLT_DIR_CAPTURE 1 typedef struct acpi_nhlt_config { UINT32 CapabilitiesSize; UINT8 Capabilities[1]; } ACPI_NHLT_CONFIG; typedef struct acpi_nhlt_gendevice_config { UINT8 VirtualSlot; UINT8 ConfigType; } ACPI_NHLT_GENDEVICE_CONFIG; /* Values for ConfigType field above */ #define ACPI_NHLT_CONFIGTYPE_GENERIC 0 #define ACPI_NHLT_CONFIGTYPE_MICARRAY 1 typedef struct acpi_nhlt_micdevice_config { UINT8 VirtualSlot; UINT8 ConfigType; UINT8 ArrayType; } ACPI_NHLT_MICDEVICE_CONFIG; /* Values for ArrayType field above */ #define ACPI_NHLT_ARRAYTYPE_LINEAR2_SMALL 0xA #define ACPI_NHLT_ARRAYTYPE_LINEAR2_BIG 0xB #define ACPI_NHLT_ARRAYTYPE_LINEAR4_GEO1 0xC #define ACPI_NHLT_ARRAYTYPE_PLANAR4_LSHAPED 0xD #define ACPI_NHLT_ARRAYTYPE_LINEAR4_GEO2 0xE #define ACPI_NHLT_ARRAYTYPE_VENDOR 0xF typedef struct acpi_nhlt_vendor_mic_config { UINT8 Type; UINT8 Panel; UINT16 SpeakerPositionDistance; /* mm */ UINT16 HorizontalOffset; /* mm */ UINT16 VerticalOffset; /* mm */ UINT8 FrequencyLowBand; /* 5*Hz */ UINT8 FrequencyHighBand; /* 500*Hz */ UINT16 DirectionAngle; /* -180 - +180 */ UINT16 ElevationAngle; /* -180 - +180 */ UINT16 WorkVerticalAngleBegin; /* -180 - +180 with 2 deg step */ UINT16 WorkVerticalAngleEnd; /* -180 - +180 with 2 deg step */ UINT16 WorkHorizontalAngleBegin; /* -180 - +180 with 2 deg step */ UINT16 WorkHorizontalAngleEnd; /* -180 - +180 with 2 deg step */ } ACPI_NHLT_VENDOR_MIC_CONFIG; /* Values for Type field above */ #define ACPI_NHLT_MICTYPE_OMNIDIRECTIONAL 0 #define ACPI_NHLT_MICTYPE_SUBCARDIOID 1 #define ACPI_NHLT_MICTYPE_CARDIOID 2 #define ACPI_NHLT_MICTYPE_SUPERCARDIOID 3 #define ACPI_NHLT_MICTYPE_HYPERCARDIOID 4 #define ACPI_NHLT_MICTYPE_8SHAPED 5 #define ACPI_NHLT_MICTYPE_RESERVED 6 #define ACPI_NHLT_MICTYPE_VENDORDEFINED 7 /* Values for Panel field above */ #define ACPI_NHLT_MICLOCATION_TOP 0 #define ACPI_NHLT_MICLOCATION_BOTTOM 1 #define ACPI_NHLT_MICLOCATION_LEFT 2 #define ACPI_NHLT_MICLOCATION_RIGHT 3 #define ACPI_NHLT_MICLOCATION_FRONT 4 #define ACPI_NHLT_MICLOCATION_REAR 5 typedef struct acpi_nhlt_vendor_micdevice_config { UINT8 VirtualSlot; UINT8 ConfigType; UINT8 ArrayType; UINT8 MicsCount; ACPI_NHLT_VENDOR_MIC_CONFIG Mics[]; } ACPI_NHLT_VENDOR_MICDEVICE_CONFIG; typedef union acpi_nhlt_device_config { UINT8 VirtualSlot; ACPI_NHLT_GENDEVICE_CONFIG Gen; ACPI_NHLT_MICDEVICE_CONFIG Mic; ACPI_NHLT_VENDOR_MICDEVICE_CONFIG VendorMic; } ACPI_NHLT_DEVICE_CONFIG; /* Inherited from Microsoft's WAVEFORMATEXTENSIBLE. */ typedef struct acpi_nhlt_wave_formatext { UINT16 FormatTag; UINT16 ChannelCount; UINT32 SamplesPerSec; UINT32 AvgBytesPerSec; UINT16 BlockAlign; UINT16 BitsPerSample; UINT16 ExtraFormatSize; UINT16 ValidBitsPerSample; UINT32 ChannelMask; UINT8 Subformat[16]; } ACPI_NHLT_WAVE_FORMATEXT; typedef struct acpi_nhlt_format_config { ACPI_NHLT_WAVE_FORMATEXT Format; ACPI_NHLT_CONFIG Config; } ACPI_NHLT_FORMAT_CONFIG; typedef struct acpi_nhlt_formats_config { UINT8 FormatsCount; ACPI_NHLT_FORMAT_CONFIG Formats[]; } ACPI_NHLT_FORMATS_CONFIG; typedef struct acpi_nhlt_device_info { UINT8 Id[16]; UINT8 InstanceId; UINT8 PortId; } ACPI_NHLT_DEVICE_INFO; typedef struct acpi_nhlt_devices_info { UINT8 DevicesCount; ACPI_NHLT_DEVICE_INFO Devices[]; } ACPI_NHLT_DEVICES_INFO; /******************************************************************************* * * PCCT - Platform Communications Channel Table (ACPI 5.0) * Version 2 (ACPI 6.2) * ******************************************************************************/ typedef struct acpi_table_pcct { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Flags; UINT64 Reserved; } ACPI_TABLE_PCCT; /* Values for Flags field above */ #define ACPI_PCCT_DOORBELL 1 /* Values for subtable type in ACPI_SUBTABLE_HEADER */ enum AcpiPcctType { ACPI_PCCT_TYPE_GENERIC_SUBSPACE = 0, ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE = 1, ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2 = 2, /* ACPI 6.1 */ ACPI_PCCT_TYPE_EXT_PCC_MASTER_SUBSPACE = 3, /* ACPI 6.2 */ ACPI_PCCT_TYPE_EXT_PCC_SLAVE_SUBSPACE = 4, /* ACPI 6.2 */ ACPI_PCCT_TYPE_HW_REG_COMM_SUBSPACE = 5, /* ACPI 6.4 */ ACPI_PCCT_TYPE_RESERVED = 6 /* 6 and greater are reserved */ }; /* * PCCT Subtables, correspond to Type in ACPI_SUBTABLE_HEADER */ /* 0: Generic Communications Subspace */ typedef struct acpi_pcct_subspace { ACPI_SUBTABLE_HEADER Header; UINT8 Reserved[6]; UINT64 BaseAddress; UINT64 Length; ACPI_GENERIC_ADDRESS DoorbellRegister; UINT64 PreserveMask; UINT64 WriteMask; UINT32 Latency; UINT32 MaxAccessRate; UINT16 MinTurnaroundTime; } ACPI_PCCT_SUBSPACE; /* 1: HW-reduced Communications Subspace (ACPI 5.1) */ typedef struct acpi_pcct_hw_reduced { ACPI_SUBTABLE_HEADER Header; UINT32 PlatformInterrupt; UINT8 Flags; UINT8 Reserved; UINT64 BaseAddress; UINT64 Length; ACPI_GENERIC_ADDRESS DoorbellRegister; UINT64 PreserveMask; UINT64 WriteMask; UINT32 Latency; UINT32 MaxAccessRate; UINT16 MinTurnaroundTime; } ACPI_PCCT_HW_REDUCED; /* 2: HW-reduced Communications Subspace Type 2 (ACPI 6.1) */ typedef struct acpi_pcct_hw_reduced_type2 { ACPI_SUBTABLE_HEADER Header; UINT32 PlatformInterrupt; UINT8 Flags; UINT8 Reserved; UINT64 BaseAddress; UINT64 Length; ACPI_GENERIC_ADDRESS DoorbellRegister; UINT64 PreserveMask; UINT64 WriteMask; UINT32 Latency; UINT32 MaxAccessRate; UINT16 MinTurnaroundTime; ACPI_GENERIC_ADDRESS PlatformAckRegister; UINT64 AckPreserveMask; UINT64 AckWriteMask; } ACPI_PCCT_HW_REDUCED_TYPE2; /* 3: Extended PCC Master Subspace Type 3 (ACPI 6.2) */ typedef struct acpi_pcct_ext_pcc_master { ACPI_SUBTABLE_HEADER Header; UINT32 PlatformInterrupt; UINT8 Flags; UINT8 Reserved1; UINT64 BaseAddress; UINT32 Length; ACPI_GENERIC_ADDRESS DoorbellRegister; UINT64 PreserveMask; UINT64 WriteMask; UINT32 Latency; UINT32 MaxAccessRate; UINT32 MinTurnaroundTime; ACPI_GENERIC_ADDRESS PlatformAckRegister; UINT64 AckPreserveMask; UINT64 AckSetMask; UINT64 Reserved2; ACPI_GENERIC_ADDRESS CmdCompleteRegister; UINT64 CmdCompleteMask; ACPI_GENERIC_ADDRESS CmdUpdateRegister; UINT64 CmdUpdatePreserveMask; UINT64 CmdUpdateSetMask; ACPI_GENERIC_ADDRESS ErrorStatusRegister; UINT64 ErrorStatusMask; } ACPI_PCCT_EXT_PCC_MASTER; /* 4: Extended PCC Slave Subspace Type 4 (ACPI 6.2) */ typedef struct acpi_pcct_ext_pcc_slave { ACPI_SUBTABLE_HEADER Header; UINT32 PlatformInterrupt; UINT8 Flags; UINT8 Reserved1; UINT64 BaseAddress; UINT32 Length; ACPI_GENERIC_ADDRESS DoorbellRegister; UINT64 PreserveMask; UINT64 WriteMask; UINT32 Latency; UINT32 MaxAccessRate; UINT32 MinTurnaroundTime; ACPI_GENERIC_ADDRESS PlatformAckRegister; UINT64 AckPreserveMask; UINT64 AckSetMask; UINT64 Reserved2; ACPI_GENERIC_ADDRESS CmdCompleteRegister; UINT64 CmdCompleteMask; ACPI_GENERIC_ADDRESS CmdUpdateRegister; UINT64 CmdUpdatePreserveMask; UINT64 CmdUpdateSetMask; ACPI_GENERIC_ADDRESS ErrorStatusRegister; UINT64 ErrorStatusMask; } ACPI_PCCT_EXT_PCC_SLAVE; /* 5: HW Registers based Communications Subspace */ typedef struct acpi_pcct_hw_reg { ACPI_SUBTABLE_HEADER Header; UINT16 Version; UINT64 BaseAddress; UINT64 Length; ACPI_GENERIC_ADDRESS DoorbellRegister; UINT64 DoorbellPreserve; UINT64 DoorbellWrite; ACPI_GENERIC_ADDRESS CmdCompleteRegister; UINT64 CmdCompleteMask; ACPI_GENERIC_ADDRESS ErrorStatusRegister; UINT64 ErrorStatusMask; UINT32 NominalLatency; UINT32 MinTurnaroundTime; } ACPI_PCCT_HW_REG; /* Values for doorbell flags above */ #define ACPI_PCCT_INTERRUPT_POLARITY (1) #define ACPI_PCCT_INTERRUPT_MODE (1<<1) /* * PCC memory structures (not part of the ACPI table) */ /* Shared Memory Region */ typedef struct acpi_pcct_shared_memory { UINT32 Signature; UINT16 Command; UINT16 Status; } ACPI_PCCT_SHARED_MEMORY; /* Extended PCC Subspace Shared Memory Region (ACPI 6.2) */ typedef struct acpi_pcct_ext_pcc_shared_memory { UINT32 Signature; UINT32 Flags; UINT32 Length; UINT32 Command; } ACPI_PCCT_EXT_PCC_SHARED_MEMORY; /******************************************************************************* * * PDTT - Platform Debug Trigger Table (ACPI 6.2) * Version 0 * ******************************************************************************/ typedef struct acpi_table_pdtt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 TriggerCount; UINT8 Reserved[3]; UINT32 ArrayOffset; } ACPI_TABLE_PDTT; /* * PDTT Communication Channel Identifier Structure. * The number of these structures is defined by TriggerCount above, * starting at ArrayOffset. */ typedef struct acpi_pdtt_channel { UINT8 SubchannelId; UINT8 Flags; } ACPI_PDTT_CHANNEL; /* Flags for above */ #define ACPI_PDTT_RUNTIME_TRIGGER (1) #define ACPI_PDTT_WAIT_COMPLETION (1<<1) #define ACPI_PDTT_TRIGGER_ORDER (1<<2) /******************************************************************************* * * PHAT - Platform Health Assessment Table (ACPI 6.4) * Version 1 * ******************************************************************************/ typedef struct acpi_table_phat { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_PHAT; /* Common header for PHAT subtables that follow main table */ typedef struct acpi_phat_header { UINT16 Type; UINT16 Length; UINT8 Revision; } ACPI_PHAT_HEADER; /* Values for Type field above */ #define ACPI_PHAT_TYPE_FW_VERSION_DATA 0 #define ACPI_PHAT_TYPE_FW_HEALTH_DATA 1 #define ACPI_PHAT_TYPE_RESERVED 2 /* 0x02-0xFFFF are reserved */ /* * PHAT subtables, correspond to Type in ACPI_PHAT_HEADER */ /* 0: Firmware Version Data Record */ typedef struct acpi_phat_version_data { ACPI_PHAT_HEADER Header; UINT8 Reserved[3]; UINT32 ElementCount; } ACPI_PHAT_VERSION_DATA; typedef struct acpi_phat_version_element { UINT8 Guid[16]; UINT64 VersionValue; UINT32 ProducerId; } ACPI_PHAT_VERSION_ELEMENT; /* 1: Firmware Health Data Record */ typedef struct acpi_phat_health_data { ACPI_PHAT_HEADER Header; UINT8 Reserved[2]; UINT8 Health; UINT8 DeviceGuid[16]; UINT32 DeviceSpecificOffset; /* Zero if no Device-specific data */ } ACPI_PHAT_HEALTH_DATA; /* Values for Health field above */ #define ACPI_PHAT_ERRORS_FOUND 0 #define ACPI_PHAT_NO_ERRORS 1 #define ACPI_PHAT_UNKNOWN_ERRORS 2 #define ACPI_PHAT_ADVISORY 3 /******************************************************************************* * * PMTT - Platform Memory Topology Table (ACPI 5.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_pmtt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 MemoryDeviceCount; /* * Immediately followed by: * MEMORY_DEVICE MemoryDeviceStruct[MemoryDeviceCount]; */ } ACPI_TABLE_PMTT; /* Common header for PMTT subtables that follow main table */ typedef struct acpi_pmtt_header { UINT8 Type; UINT8 Reserved1; UINT16 Length; UINT16 Flags; UINT16 Reserved2; UINT32 MemoryDeviceCount; /* Zero means no memory device structs follow */ /* * Immediately followed by: * UINT8 TypeSpecificData[] * MEMORY_DEVICE MemoryDeviceStruct[MemoryDeviceCount]; */ } ACPI_PMTT_HEADER; /* Values for Type field above */ #define ACPI_PMTT_TYPE_SOCKET 0 #define ACPI_PMTT_TYPE_CONTROLLER 1 #define ACPI_PMTT_TYPE_DIMM 2 #define ACPI_PMTT_TYPE_RESERVED 3 /* 0x03-0xFE are reserved */ #define ACPI_PMTT_TYPE_VENDOR 0xFF /* Values for Flags field above */ #define ACPI_PMTT_TOP_LEVEL 0x0001 #define ACPI_PMTT_PHYSICAL 0x0002 #define ACPI_PMTT_MEMORY_TYPE 0x000C /* * PMTT subtables, correspond to Type in acpi_pmtt_header */ /* 0: Socket Structure */ typedef struct acpi_pmtt_socket { ACPI_PMTT_HEADER Header; UINT16 SocketId; UINT16 Reserved; } ACPI_PMTT_SOCKET; /* * Immediately followed by: * MEMORY_DEVICE MemoryDeviceStruct[MemoryDeviceCount]; */ /* 1: Memory Controller subtable */ typedef struct acpi_pmtt_controller { ACPI_PMTT_HEADER Header; UINT16 ControllerId; UINT16 Reserved; } ACPI_PMTT_CONTROLLER; /* * Immediately followed by: * MEMORY_DEVICE MemoryDeviceStruct[MemoryDeviceCount]; */ /* 2: Physical Component Identifier (DIMM) */ typedef struct acpi_pmtt_physical_component { ACPI_PMTT_HEADER Header; UINT32 BiosHandle; } ACPI_PMTT_PHYSICAL_COMPONENT; /* 0xFF: Vendor Specific Data */ typedef struct acpi_pmtt_vendor_specific { ACPI_PMTT_HEADER Header; UINT8 TypeUuid[16]; UINT8 Specific[]; /* * Immediately followed by: * UINT8 VendorSpecificData[]; * MEMORY_DEVICE MemoryDeviceStruct[MemoryDeviceCount]; */ } ACPI_PMTT_VENDOR_SPECIFIC; /******************************************************************************* * * PPTT - Processor Properties Topology Table (ACPI 6.2) * Version 1 * ******************************************************************************/ typedef struct acpi_table_pptt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_PPTT; /* Values for Type field above */ enum AcpiPpttType { ACPI_PPTT_TYPE_PROCESSOR = 0, ACPI_PPTT_TYPE_CACHE = 1, ACPI_PPTT_TYPE_ID = 2, ACPI_PPTT_TYPE_RESERVED = 3 }; /* 0: Processor Hierarchy Node Structure */ typedef struct acpi_pptt_processor { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; UINT32 Flags; UINT32 Parent; UINT32 AcpiProcessorId; UINT32 NumberOfPrivResources; } ACPI_PPTT_PROCESSOR; /* Flags */ #define ACPI_PPTT_PHYSICAL_PACKAGE (1) #define ACPI_PPTT_ACPI_PROCESSOR_ID_VALID (1<<1) #define ACPI_PPTT_ACPI_PROCESSOR_IS_THREAD (1<<2) /* ACPI 6.3 */ #define ACPI_PPTT_ACPI_LEAF_NODE (1<<3) /* ACPI 6.3 */ #define ACPI_PPTT_ACPI_IDENTICAL (1<<4) /* ACPI 6.3 */ /* 1: Cache Type Structure */ typedef struct acpi_pptt_cache { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; UINT32 Flags; UINT32 NextLevelOfCache; UINT32 Size; UINT32 NumberOfSets; UINT8 Associativity; UINT8 Attributes; UINT16 LineSize; } ACPI_PPTT_CACHE; /* 1: Cache Type Structure for PPTT version 3 */ typedef struct acpi_pptt_cache_v1 { UINT32 CacheId; } ACPI_PPTT_CACHE_V1; /* Flags */ #define ACPI_PPTT_SIZE_PROPERTY_VALID (1) /* Physical property valid */ #define ACPI_PPTT_NUMBER_OF_SETS_VALID (1<<1) /* Number of sets valid */ #define ACPI_PPTT_ASSOCIATIVITY_VALID (1<<2) /* Associativity valid */ #define ACPI_PPTT_ALLOCATION_TYPE_VALID (1<<3) /* Allocation type valid */ #define ACPI_PPTT_CACHE_TYPE_VALID (1<<4) /* Cache type valid */ #define ACPI_PPTT_WRITE_POLICY_VALID (1<<5) /* Write policy valid */ #define ACPI_PPTT_LINE_SIZE_VALID (1<<6) /* Line size valid */ #define ACPI_PPTT_CACHE_ID_VALID (1<<7) /* Cache ID valid */ /* Masks for Attributes */ #define ACPI_PPTT_MASK_ALLOCATION_TYPE (0x03) /* Allocation type */ #define ACPI_PPTT_MASK_CACHE_TYPE (0x0C) /* Cache type */ #define ACPI_PPTT_MASK_WRITE_POLICY (0x10) /* Write policy */ /* Attributes describing cache */ #define ACPI_PPTT_CACHE_READ_ALLOCATE (0x0) /* Cache line is allocated on read */ #define ACPI_PPTT_CACHE_WRITE_ALLOCATE (0x01) /* Cache line is allocated on write */ #define ACPI_PPTT_CACHE_RW_ALLOCATE (0x02) /* Cache line is allocated on read and write */ #define ACPI_PPTT_CACHE_RW_ALLOCATE_ALT (0x03) /* Alternate representation of above */ #define ACPI_PPTT_CACHE_TYPE_DATA (0x0) /* Data cache */ #define ACPI_PPTT_CACHE_TYPE_INSTR (1<<2) /* Instruction cache */ #define ACPI_PPTT_CACHE_TYPE_UNIFIED (2<<2) /* Unified I & D cache */ #define ACPI_PPTT_CACHE_TYPE_UNIFIED_ALT (3<<2) /* Alternate representation of above */ #define ACPI_PPTT_CACHE_POLICY_WB (0x0) /* Cache is write back */ #define ACPI_PPTT_CACHE_POLICY_WT (1<<4) /* Cache is write through */ /* 2: ID Structure */ typedef struct acpi_pptt_id { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; UINT32 VendorId; UINT64 Level1Id; UINT64 Level2Id; UINT16 MajorRev; UINT16 MinorRev; UINT16 SpinRev; } ACPI_PPTT_ID; /******************************************************************************* * * PRMT - Platform Runtime Mechanism Table * Version 1 * ******************************************************************************/ typedef struct acpi_table_prmt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_PRMT; typedef struct acpi_table_prmt_header { UINT8 PlatformGuid[16]; UINT32 ModuleInfoOffset; UINT32 ModuleInfoCount; } ACPI_TABLE_PRMT_HEADER; typedef struct acpi_prmt_module_header { UINT16 Revision; UINT16 Length; } ACPI_PRMT_MODULE_HEADER; typedef struct acpi_prmt_module_info { UINT16 Revision; UINT16 Length; UINT8 ModuleGuid[16]; UINT16 MajorRev; UINT16 MinorRev; UINT16 HandlerInfoCount; UINT32 HandlerInfoOffset; UINT64 MmioListPointer; } ACPI_PRMT_MODULE_INFO; typedef struct acpi_prmt_handler_info { UINT16 Revision; UINT16 Length; UINT8 HandlerGuid[16]; UINT64 HandlerAddress; UINT64 StaticDataBufferAddress; UINT64 AcpiParamBufferAddress; } ACPI_PRMT_HANDLER_INFO; /******************************************************************************* * * RASF - RAS Feature Table (ACPI 5.0) * Version 1 * ******************************************************************************/ typedef struct acpi_table_rasf { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 ChannelId[12]; } ACPI_TABLE_RASF; /* RASF Platform Communication Channel Shared Memory Region */ typedef struct acpi_rasf_shared_memory { UINT32 Signature; UINT16 Command; UINT16 Status; UINT16 Version; UINT8 Capabilities[16]; UINT8 SetCapabilities[16]; UINT16 NumParameterBlocks; UINT32 SetCapabilitiesStatus; } ACPI_RASF_SHARED_MEMORY; /* RASF Parameter Block Structure Header */ typedef struct acpi_rasf_parameter_block { UINT16 Type; UINT16 Version; UINT16 Length; } ACPI_RASF_PARAMETER_BLOCK; /* RASF Parameter Block Structure for PATROL_SCRUB */ typedef struct acpi_rasf_patrol_scrub_parameter { ACPI_RASF_PARAMETER_BLOCK Header; UINT16 PatrolScrubCommand; UINT64 RequestedAddressRange[2]; UINT64 ActualAddressRange[2]; UINT16 Flags; UINT8 RequestedSpeed; } ACPI_RASF_PATROL_SCRUB_PARAMETER; /* Masks for Flags and Speed fields above */ #define ACPI_RASF_SCRUBBER_RUNNING 1 #define ACPI_RASF_SPEED (7<<1) #define ACPI_RASF_SPEED_SLOW (0<<1) #define ACPI_RASF_SPEED_MEDIUM (4<<1) #define ACPI_RASF_SPEED_FAST (7<<1) /* Channel Commands */ enum AcpiRasfCommands { ACPI_RASF_EXECUTE_RASF_COMMAND = 1 }; /* Platform RAS Capabilities */ enum AcpiRasfCapabiliities { ACPI_HW_PATROL_SCRUB_SUPPORTED = 0, ACPI_SW_PATROL_SCRUB_EXPOSED = 1 }; /* Patrol Scrub Commands */ enum AcpiRasfPatrolScrubCommands { ACPI_RASF_GET_PATROL_PARAMETERS = 1, ACPI_RASF_START_PATROL_SCRUBBER = 2, ACPI_RASF_STOP_PATROL_SCRUBBER = 3 }; /* Channel Command flags */ #define ACPI_RASF_GENERATE_SCI (1<<15) /* Status values */ enum AcpiRasfStatus { ACPI_RASF_SUCCESS = 0, ACPI_RASF_NOT_VALID = 1, ACPI_RASF_NOT_SUPPORTED = 2, ACPI_RASF_BUSY = 3, ACPI_RASF_FAILED = 4, ACPI_RASF_ABORTED = 5, ACPI_RASF_INVALID_DATA = 6 }; /* Status flags */ #define ACPI_RASF_COMMAND_COMPLETE (1) #define ACPI_RASF_SCI_DOORBELL (1<<1) #define ACPI_RASF_ERROR (1<<2) #define ACPI_RASF_STATUS (0x1F<<3) /******************************************************************************* * * RAS2 - RAS2 Feature Table (ACPI 6.5) * Version 1 * * ******************************************************************************/ typedef struct acpi_table_ras2 { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT16 Reserved; UINT16 NumPccDescs; } ACPI_TABLE_RAS2; /* RAS2 Platform Communication Channel Descriptor */ typedef struct acpi_ras2_pcc_desc { UINT8 ChannelId; UINT16 Reserved; UINT8 FeatureType; UINT32 Instance; } ACPI_RAS2_PCC_DESC; /* RAS2 Platform Communication Channel Shared Memory Region */ typedef struct acpi_ras2_shmem { UINT32 Signature; UINT16 Command; UINT16 Status; UINT16 Version; UINT8 Features[16]; UINT8 SetCaps[16]; UINT16 NumParamBlks; UINT32 SetCapsStatus; } ACPI_RAS2_SHMEM; /* RAS2 Parameter Block Structure for PATROL_SCRUB */ typedef struct acpi_ras2_parameter_block { UINT16 Type; UINT16 Version; UINT16 Length; } ACPI_RAS2_PARAMETER_BLOCK; /* RAS2 Parameter Block Structure for PATROL_SCRUB */ typedef struct acpi_ras2_patrol_scrub_param { ACPI_RAS2_PARAMETER_BLOCK Header; UINT16 Command; UINT64 ReqAddrRange[2]; UINT64 ActlAddrRange[2]; UINT32 Flags; UINT32 ScrubParamsOut; UINT32 ScrubParamsIn; } ACPI_RAS2_PATROL_SCRUB_PARAM; /* Masks for Flags field above */ #define ACPI_RAS2_SCRUBBER_RUNNING 1 /* RAS2 Parameter Block Structure for LA2PA_TRANSLATION */ typedef struct acpi_ras2_la2pa_translation_parameter { ACPI_RAS2_PARAMETER_BLOCK Header; UINT16 AddrTranslationCommand; UINT64 SubInstId; UINT64 LogicalAddress; UINT64 PhysicalAddress; UINT32 Status; } ACPI_RAS2_LA2PA_TRANSLATION_PARAM; /* Channel Commands */ enum AcpiRas2Commands { ACPI_RAS2_EXECUTE_RAS2_COMMAND = 1 }; /* Platform RAS2 Features */ enum AcpiRas2Features { ACPI_RAS2_PATROL_SCRUB_SUPPORTED = 0, ACPI_RAS2_LA2PA_TRANSLATION = 1 }; /* RAS2 Patrol Scrub Commands */ enum AcpiRas2PatrolScrubCommands { ACPI_RAS2_GET_PATROL_PARAMETERS = 1, ACPI_RAS2_START_PATROL_SCRUBBER = 2, ACPI_RAS2_STOP_PATROL_SCRUBBER = 3 }; /* RAS2 LA2PA Translation Commands */ enum AcpiRas2La2PaTranslationCommands { ACPI_RAS2_GET_LA2PA_TRANSLATION = 1, }; /* RAS2 LA2PA Translation Status values */ enum AcpiRas2La2PaTranslationStatus { ACPI_RAS2_LA2PA_TRANSLATION_SUCCESS = 0, ACPI_RAS2_LA2PA_TRANSLATION_FAIL = 1, }; /* Channel Command flags */ #define ACPI_RAS2_GENERATE_SCI (1<<15) /* Status values */ enum AcpiRas2Status { ACPI_RAS2_SUCCESS = 0, ACPI_RAS2_NOT_VALID = 1, ACPI_RAS2_NOT_SUPPORTED = 2, ACPI_RAS2_BUSY = 3, ACPI_RAS2_FAILED = 4, ACPI_RAS2_ABORTED = 5, ACPI_RAS2_INVALID_DATA = 6 }; /* Status flags */ #define ACPI_RAS2_COMMAND_COMPLETE (1) #define ACPI_RAS2_SCI_DOORBELL (1<<1) #define ACPI_RAS2_ERROR (1<<2) #define ACPI_RAS2_STATUS (0x1F<<3) /******************************************************************************* * * RGRT - Regulatory Graphics Resource Table * Version 1 * * Conforms to "ACPI RGRT" available at: * https://microsoft.github.io/mu/dyn/mu_plus/MsCorePkg/AcpiRGRT/feature_acpi_rgrt/ * ******************************************************************************/ typedef struct acpi_table_rgrt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT16 Version; UINT8 ImageType; UINT8 Reserved; UINT8 Image[]; } ACPI_TABLE_RGRT; /* ImageType values */ enum AcpiRgrtImageType { ACPI_RGRT_TYPE_RESERVED0 = 0, ACPI_RGRT_IMAGE_TYPE_PNG = 1, ACPI_RGRT_TYPE_RESERVED = 2 /* 2 and greater are reserved */ }; /******************************************************************************* * * RHCT - RISC-V Hart Capabilities Table * Version 1 * ******************************************************************************/ typedef struct acpi_table_rhct { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Flags; /* RHCT flags */ UINT64 TimeBaseFreq; UINT32 NodeCount; UINT32 NodeOffset; } ACPI_TABLE_RHCT; /* RHCT Flags */ #define ACPI_RHCT_TIMER_CANNOT_WAKEUP_CPU (1) /* * RHCT subtables */ typedef struct acpi_rhct_node_header { UINT16 Type; UINT16 Length; UINT16 Revision; } ACPI_RHCT_NODE_HEADER; /* Values for RHCT subtable Type above */ enum acpi_rhct_node_type { ACPI_RHCT_NODE_TYPE_ISA_STRING = 0x0000, ACPI_RHCT_NODE_TYPE_CMO = 0x0001, ACPI_RHCT_NODE_TYPE_MMU = 0x0002, ACPI_RHCT_NODE_TYPE_RESERVED = 0x0003, ACPI_RHCT_NODE_TYPE_HART_INFO = 0xFFFF, }; /* * RHCT node specific subtables */ /* ISA string node structure */ typedef struct acpi_rhct_isa_string { UINT16 IsaLength; char Isa[]; } ACPI_RHCT_ISA_STRING; typedef struct acpi_rhct_cmo_node { UINT8 Reserved; /* Must be zero */ UINT8 CbomSize; /* CBOM size in powerof 2 */ UINT8 CbopSize; /* CBOP size in powerof 2 */ UINT8 CbozSize; /* CBOZ size in powerof 2 */ } ACPI_RHCT_CMO_NODE; typedef struct acpi_rhct_mmu_node { UINT8 Reserved; /* Must be zero */ UINT8 MmuType; /* Virtual Address Scheme */ } ACPI_RHCT_MMU_NODE; enum acpi_rhct_mmu_type { ACPI_RHCT_MMU_TYPE_SV39 = 0, ACPI_RHCT_MMU_TYPE_SV48 = 1, ACPI_RHCT_MMU_TYPE_SV57 = 2 }; /* Hart Info node structure */ typedef struct acpi_rhct_hart_info { UINT16 NumOffsets; UINT32 Uid; /* ACPI processor UID */ } ACPI_RHCT_HART_INFO; /******************************************************************************* * * RIMT - RISC-V IO Remapping Table * * https://github.com/riscv-non-isa/riscv-acpi-rimt * ******************************************************************************/ typedef struct acpi_table_rimt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 NumNodes; /* Number of RIMT Nodes */ UINT32 NodeOffset; /* Offset to RIMT Node Array */ UINT32 Reserved; } ACPI_TABLE_RIMT; typedef struct acpi_rimt_node { UINT8 Type; UINT8 Revision; UINT16 Length; UINT16 Reserved; UINT16 Id; char NodeData[]; } ACPI_RIMT_NODE; enum acpi_rimt_node_type { ACPI_RIMT_NODE_TYPE_IOMMU = 0x0, ACPI_RIMT_NODE_TYPE_PCIE_ROOT_COMPLEX = 0x1, ACPI_RIMT_NODE_TYPE_PLAT_DEVICE = 0x2, }; typedef struct acpi_rimt_iommu { UINT8 HardwareId[8]; /* Hardware ID */ UINT64 BaseAddress; /* Base Address */ UINT32 Flags; /* Flags */ UINT32 ProximityDomain; /* Proximity Domain */ UINT16 PcieSegmentNumber; /* PCIe Segment number */ UINT16 PcieBdf; /* PCIe B/D/F */ UINT16 NumInterruptWires; /* Number of interrupt wires */ UINT16 InterruptWireOffset; /* Interrupt wire array offset */ UINT64 InterruptWire[]; /* Interrupt wire array */ } ACPI_RIMT_IOMMU; /* IOMMU Node Flags */ #define ACPI_RIMT_IOMMU_FLAGS_PCIE (1) #define ACPI_RIMT_IOMMU_FLAGS_PXM_VALID (1 << 1) /* Interrupt Wire Structure */ typedef struct acpi_rimt_iommu_wire_gsi { UINT32 IrqNum; /* Interrupt Number */ UINT32 Flags; /* Flags */ } ACPI_RIMT_IOMMU_WIRE_GSI; /* Interrupt Wire Flags */ #define ACPI_RIMT_GSI_LEVEL_TRIGGERRED (1) #define ACPI_RIMT_GSI_ACTIVE_HIGH (1 << 1) typedef struct acpi_rimt_id_mapping { UINT32 SourceIdBase; /* Source ID Base */ UINT32 NumIds; /* Number of IDs */ UINT32 DestIdBase; /* Destination Device ID Base */ UINT32 DestOffset; /* Destination IOMMU Offset */ UINT32 Flags; /* Flags */ } ACPI_RIMT_ID_MAPPING; typedef struct acpi_rimt_pcie_rc { UINT32 Flags; /* Flags */ UINT16 Reserved; /* Reserved */ UINT16 PcieSegmentNumber; /* PCIe Segment number */ UINT16 IdMappingOffset; /* ID mapping array offset */ UINT16 NumIdMappings; /* Number of ID mappings */ } ACPI_RIMT_PCIE_RC; /* PCIe Root Complex Node Flags */ #define ACPI_RIMT_PCIE_ATS_SUPPORTED (1) #define ACPI_RIMT_PCIE_PRI_SUPPORTED (1 << 1) typedef struct acpi_rimt_platform_device { UINT16 IdMappingOffset; /* ID Mapping array offset */ UINT16 NumIdMappings; /* Number of ID mappings */ char DeviceName[]; /* Device Object Name */ } ACPI_RIMT_PLATFORM_DEVICE; /******************************************************************************* * * SBST - Smart Battery Specification Table * Version 1 * ******************************************************************************/ typedef struct acpi_table_sbst { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 WarningLevel; UINT32 LowLevel; UINT32 CriticalLevel; } ACPI_TABLE_SBST; /******************************************************************************* * * SDEI - Software Delegated Exception Interface Descriptor Table * * Conforms to "Software Delegated Exception Interface (SDEI)" ARM DEN0054A, * May 8th, 2017. Copyright 2017 ARM Ltd. * ******************************************************************************/ typedef struct acpi_table_sdei { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_SDEI; /******************************************************************************* * * SDEV - Secure Devices Table (ACPI 6.2) * Version 1 * ******************************************************************************/ typedef struct acpi_table_sdev { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_SDEV; typedef struct acpi_sdev_header { UINT8 Type; UINT8 Flags; UINT16 Length; } ACPI_SDEV_HEADER; /* Values for subtable type above */ enum AcpiSdevType { ACPI_SDEV_TYPE_NAMESPACE_DEVICE = 0, ACPI_SDEV_TYPE_PCIE_ENDPOINT_DEVICE = 1, ACPI_SDEV_TYPE_RESERVED = 2 /* 2 and greater are reserved */ }; /* Values for flags above */ #define ACPI_SDEV_HANDOFF_TO_UNSECURE_OS (1) #define ACPI_SDEV_SECURE_COMPONENTS_PRESENT (1<<1) /* * SDEV subtables */ /* 0: Namespace Device Based Secure Device Structure */ typedef struct acpi_sdev_namespace { ACPI_SDEV_HEADER Header; UINT16 DeviceIdOffset; UINT16 DeviceIdLength; UINT16 VendorDataOffset; UINT16 VendorDataLength; } ACPI_SDEV_NAMESPACE; typedef struct acpi_sdev_secure_component { UINT16 SecureComponentOffset; UINT16 SecureComponentLength; } ACPI_SDEV_SECURE_COMPONENT; /* * SDEV sub-subtables ("Components") for above */ typedef struct acpi_sdev_component { ACPI_SDEV_HEADER Header; } ACPI_SDEV_COMPONENT; /* Values for sub-subtable type above */ enum AcpiSacType { ACPI_SDEV_TYPE_ID_COMPONENT = 0, ACPI_SDEV_TYPE_MEM_COMPONENT = 1 }; typedef struct acpi_sdev_id_component { ACPI_SDEV_HEADER Header; UINT16 HardwareIdOffset; UINT16 HardwareIdLength; UINT16 SubsystemIdOffset; UINT16 SubsystemIdLength; UINT16 HardwareRevision; UINT8 HardwareRevPresent; UINT8 ClassCodePresent; UINT8 PciBaseClass; UINT8 PciSubClass; UINT8 PciProgrammingXface; } ACPI_SDEV_ID_COMPONENT; typedef struct acpi_sdev_mem_component { ACPI_SDEV_HEADER Header; UINT32 Reserved; UINT64 MemoryBaseAddress; UINT64 MemoryLength; } ACPI_SDEV_MEM_COMPONENT; /* 1: PCIe Endpoint Device Based Device Structure */ typedef struct acpi_sdev_pcie { ACPI_SDEV_HEADER Header; UINT16 Segment; UINT16 StartBus; UINT16 PathOffset; UINT16 PathLength; UINT16 VendorDataOffset; UINT16 VendorDataLength; } ACPI_SDEV_PCIE; /* 1a: PCIe Endpoint path entry */ typedef struct acpi_sdev_pcie_path { UINT8 Device; UINT8 Function; } ACPI_SDEV_PCIE_PATH; /******************************************************************************* * * SVKL - Storage Volume Key Location Table (ACPI 6.4) * From: "Guest-Host-Communication Interface (GHCI) for Intel * Trust Domain Extensions (Intel TDX)". * Version 1 * ******************************************************************************/ typedef struct acpi_table_svkl { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Count; } ACPI_TABLE_SVKL; typedef struct acpi_svkl_key { UINT16 Type; UINT16 Format; UINT32 Size; UINT64 Address; } ACPI_SVKL_KEY; enum acpi_svkl_type { ACPI_SVKL_TYPE_MAIN_STORAGE = 0, ACPI_SVKL_TYPE_RESERVED = 1 /* 1 and greater are reserved */ }; enum acpi_svkl_format { ACPI_SVKL_FORMAT_RAW_BINARY = 0, ACPI_SVKL_FORMAT_RESERVED = 1 /* 1 and greater are reserved */ }; /******************************************************************************* * * TDEL - TD-Event Log * From: "Guest-Host-Communication Interface (GHCI) for Intel * Trust Domain Extensions (Intel TDX)". * September 2020 * ******************************************************************************/ typedef struct acpi_table_tdel { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Reserved; UINT64 LogAreaMinimumLength; UINT64 LogAreaStartAddress; } ACPI_TABLE_TDEL; /* Reset to default packing */ #pragma pack() #endif /* __ACTBL2_H__ */ acpica-unix-20250404/source/include/accommon.h0000775000175000017500000000572114773714133020437 0ustar ivanhuivanhu/****************************************************************************** * * Name: accommon.h - Common include files for generation of ACPICA source * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACCOMMON_H__ #define __ACCOMMON_H__ /* * Common set of includes for all ACPICA source files. * We put them here because we don't want to duplicate them * in the source code again and again. * * Note: The order of these include files is important. */ #include "acconfig.h" /* Global configuration constants */ #include "acmacros.h" /* C macros */ #include "aclocal.h" /* Internal data types */ #include "acobject.h" /* ACPI internal object */ #include "acstruct.h" /* Common structures */ #include "acglobal.h" /* All global variables */ #include "achware.h" /* Hardware defines and interfaces */ #include "acutils.h" /* Utility interfaces */ #ifndef ACPI_USE_SYSTEM_CLIBRARY #include "acclib.h" /* C library interfaces */ #endif /* !ACPI_USE_SYSTEM_CLIBRARY */ #endif /* __ACCOMMON_H__ */ acpica-unix-20250404/source/include/acnamesp.h0000775000175000017500000003471714773714133020441 0ustar ivanhuivanhu/****************************************************************************** * * Name: acnamesp.h - Namespace subcomponent prototypes and defines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACNAMESP_H__ #define __ACNAMESP_H__ /* To search the entire name space, pass this as SearchBase */ #define ACPI_NS_ALL ((ACPI_HANDLE)0) /* * Elements of AcpiNsProperties are bit significant * and should be one-to-one with values of ACPI_OBJECT_TYPE */ #define ACPI_NS_NORMAL 0 #define ACPI_NS_NEWSCOPE 1 /* a definition of this type opens a name scope */ #define ACPI_NS_LOCAL 2 /* suppress search of enclosing scopes */ /* Flags for AcpiNsLookup, AcpiNsSearchAndEnter */ #define ACPI_NS_NO_UPSEARCH 0 #define ACPI_NS_SEARCH_PARENT 0x0001 #define ACPI_NS_DONT_OPEN_SCOPE 0x0002 #define ACPI_NS_NO_PEER_SEARCH 0x0004 #define ACPI_NS_ERROR_IF_FOUND 0x0008 #define ACPI_NS_PREFIX_IS_SCOPE 0x0010 #define ACPI_NS_EXTERNAL 0x0020 #define ACPI_NS_TEMPORARY 0x0040 #define ACPI_NS_OVERRIDE_IF_FOUND 0x0080 #define ACPI_NS_EARLY_INIT 0x0100 #define ACPI_NS_PREFIX_MUST_EXIST 0x0200 /* Flags for AcpiNsWalkNamespace */ #define ACPI_NS_WALK_NO_UNLOCK 0 #define ACPI_NS_WALK_UNLOCK 0x01 #define ACPI_NS_WALK_TEMP_NODES 0x02 /* Object is not a package element */ #define ACPI_NOT_PACKAGE_ELEMENT ACPI_UINT32_MAX #define ACPI_ALL_PACKAGE_ELEMENTS (ACPI_UINT32_MAX-1) /* Always emit warning message, not dependent on node flags */ #define ACPI_WARN_ALWAYS 0 /* * nsinit - Namespace initialization */ ACPI_STATUS AcpiNsInitializeObjects ( void); ACPI_STATUS AcpiNsInitializeDevices ( UINT32 Flags); ACPI_STATUS AcpiNsInitOnePackage ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); /* * nsload - Namespace loading */ ACPI_STATUS AcpiNsLoadNamespace ( void); ACPI_STATUS AcpiNsLoadTable ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *Node); /* * nswalk - walk the namespace */ ACPI_STATUS AcpiNsWalkNamespace ( ACPI_OBJECT_TYPE Type, ACPI_HANDLE StartObject, UINT32 MaxDepth, UINT32 Flags, ACPI_WALK_CALLBACK DescendingCallback, ACPI_WALK_CALLBACK AscendingCallback, void *Context, void **ReturnValue); ACPI_NAMESPACE_NODE * AcpiNsGetNextNode ( ACPI_NAMESPACE_NODE *Parent, ACPI_NAMESPACE_NODE *Child); ACPI_NAMESPACE_NODE * AcpiNsGetNextNodeTyped ( ACPI_OBJECT_TYPE Type, ACPI_NAMESPACE_NODE *Parent, ACPI_NAMESPACE_NODE *Child); /* * nsparse - table parsing */ ACPI_STATUS AcpiNsParseTable ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *StartNode); ACPI_STATUS AcpiNsExecuteTable ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *StartNode); ACPI_STATUS AcpiNsOneCompleteParse ( UINT32 PassNumber, UINT32 TableIndex, ACPI_NAMESPACE_NODE *StartNode); /* * nsaccess - Top-level namespace access */ ACPI_STATUS AcpiNsRootInitialize ( void); ACPI_STATUS AcpiNsLookup ( ACPI_GENERIC_STATE *ScopeInfo, char *Name, ACPI_OBJECT_TYPE Type, ACPI_INTERPRETER_MODE InterpreterMode, UINT32 Flags, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE **RetNode); /* * nsalloc - Named object allocation/deallocation */ ACPI_NAMESPACE_NODE * AcpiNsCreateNode ( UINT32 Name); void AcpiNsDeleteNode ( ACPI_NAMESPACE_NODE *Node); void AcpiNsRemoveNode ( ACPI_NAMESPACE_NODE *Node); void AcpiNsDeleteNamespaceSubtree ( ACPI_NAMESPACE_NODE *ParentHandle); void AcpiNsDeleteNamespaceByOwner ( ACPI_OWNER_ID OwnerId); void AcpiNsDetachObject ( ACPI_NAMESPACE_NODE *Node); void AcpiNsDeleteChildren ( ACPI_NAMESPACE_NODE *Parent); int AcpiNsCompareNames ( char *Name1, char *Name2); /* * nsconvert - Dynamic object conversion routines */ ACPI_STATUS AcpiNsConvertToInteger ( ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject); ACPI_STATUS AcpiNsConvertToString ( ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject); ACPI_STATUS AcpiNsConvertToBuffer ( ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject); ACPI_STATUS AcpiNsConvertToUnicode ( ACPI_NAMESPACE_NODE *Scope, ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject); ACPI_STATUS AcpiNsConvertToResource ( ACPI_NAMESPACE_NODE *Scope, ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject); ACPI_STATUS AcpiNsConvertToReference ( ACPI_NAMESPACE_NODE *Scope, ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject); /* * nsdump - Namespace dump/print utilities */ void AcpiNsDumpTables ( ACPI_HANDLE SearchBase, UINT32 MaxDepth); void AcpiNsDumpEntry ( ACPI_HANDLE Handle, UINT32 DebugLevel); void AcpiNsDumpPathname ( ACPI_HANDLE Handle, const char *Msg, UINT32 Level, UINT32 Component); void AcpiNsPrintPathname ( UINT32 NumSegments, const char *Pathname); ACPI_STATUS AcpiNsDumpOneObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); void AcpiNsDumpObjects ( ACPI_OBJECT_TYPE Type, UINT8 DisplayType, UINT32 MaxDepth, ACPI_OWNER_ID OwnerId, ACPI_HANDLE StartHandle); void AcpiNsDumpObjectPaths ( ACPI_OBJECT_TYPE Type, UINT8 DisplayType, UINT32 MaxDepth, ACPI_OWNER_ID OwnerId, ACPI_HANDLE StartHandle); /* * nseval - Namespace evaluation functions */ ACPI_STATUS AcpiNsEvaluate ( ACPI_EVALUATE_INFO *Info); /* * nsarguments - Argument count/type checking for predefined/reserved names */ void AcpiNsCheckArgumentCount ( char *Pathname, ACPI_NAMESPACE_NODE *Node, UINT32 UserParamCount, const ACPI_PREDEFINED_INFO *Info); void AcpiNsCheckAcpiCompliance ( char *Pathname, ACPI_NAMESPACE_NODE *Node, const ACPI_PREDEFINED_INFO *Predefined); void AcpiNsCheckArgumentTypes ( ACPI_EVALUATE_INFO *Info); /* * nspredef - Return value checking for predefined/reserved names */ ACPI_STATUS AcpiNsCheckReturnValue ( ACPI_NAMESPACE_NODE *Node, ACPI_EVALUATE_INFO *Info, UINT32 UserParamCount, ACPI_STATUS ReturnStatus, ACPI_OPERAND_OBJECT **ReturnObject); ACPI_STATUS AcpiNsCheckObjectType ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr, UINT32 ExpectedBtypes, UINT32 PackageIndex); /* * nsprepkg - Validation of predefined name packages */ ACPI_STATUS AcpiNsCheckPackage ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); /* * nsnames - Name and Scope manipulation */ UINT32 AcpiNsOpensScope ( ACPI_OBJECT_TYPE Type); char * AcpiNsGetExternalPathname ( ACPI_NAMESPACE_NODE *Node); UINT32 AcpiNsBuildNormalizedPath ( ACPI_NAMESPACE_NODE *Node, char *FullPath, UINT32 PathSize, BOOLEAN NoTrailing); void AcpiNsNormalizePathname ( char *OriginalPath); char * AcpiNsGetNormalizedPathname ( ACPI_NAMESPACE_NODE *Node, BOOLEAN NoTrailing); char * AcpiNsBuildPrefixedPathname ( ACPI_GENERIC_STATE *PrefixScope, const char *InternalPath); char * AcpiNsNameOfCurrentScope ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiNsHandleToName ( ACPI_HANDLE TargetHandle, ACPI_BUFFER *Buffer); ACPI_STATUS AcpiNsHandleToPathname ( ACPI_HANDLE TargetHandle, ACPI_BUFFER *Buffer, BOOLEAN NoTrailing); BOOLEAN AcpiNsPatternMatch ( ACPI_NAMESPACE_NODE *ObjNode, char *SearchFor); ACPI_STATUS AcpiNsGetNodeUnlocked ( ACPI_NAMESPACE_NODE *PrefixNode, const char *ExternalPathname, UINT32 Flags, ACPI_NAMESPACE_NODE **OutNode); ACPI_STATUS AcpiNsGetNode ( ACPI_NAMESPACE_NODE *PrefixNode, const char *ExternalPathname, UINT32 Flags, ACPI_NAMESPACE_NODE **OutNode); ACPI_SIZE AcpiNsGetPathnameLength ( ACPI_NAMESPACE_NODE *Node); /* * nsobject - Object management for namespace nodes */ ACPI_STATUS AcpiNsAttachObject ( ACPI_NAMESPACE_NODE *Node, ACPI_OPERAND_OBJECT *Object, ACPI_OBJECT_TYPE Type); ACPI_OPERAND_OBJECT * AcpiNsGetAttachedObject ( ACPI_NAMESPACE_NODE *Node); ACPI_OPERAND_OBJECT * AcpiNsGetSecondaryObject ( ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiNsAttachData ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_HANDLER Handler, void *Data); ACPI_STATUS AcpiNsDetachData ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_HANDLER Handler); ACPI_STATUS AcpiNsGetAttachedData ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_HANDLER Handler, void **Data); /* * nsrepair - General return object repair for all * predefined methods/objects */ ACPI_STATUS AcpiNsSimpleRepair ( ACPI_EVALUATE_INFO *Info, UINT32 ExpectedBtypes, UINT32 PackageIndex, ACPI_OPERAND_OBJECT **ReturnObjectPtr); ACPI_STATUS AcpiNsWrapWithPackage ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ObjDescPtr); ACPI_STATUS AcpiNsRepairNullElement ( ACPI_EVALUATE_INFO *Info, UINT32 ExpectedBtypes, UINT32 PackageIndex, ACPI_OPERAND_OBJECT **ReturnObjectPtr); void AcpiNsRemoveNullElements ( ACPI_EVALUATE_INFO *Info, UINT8 PackageType, ACPI_OPERAND_OBJECT *ObjDesc); /* * nsrepair2 - Return object repair for specific * predefined methods/objects */ ACPI_STATUS AcpiNsComplexRepairs ( ACPI_EVALUATE_INFO *Info, ACPI_NAMESPACE_NODE *Node, ACPI_STATUS ValidateStatus, ACPI_OPERAND_OBJECT **ReturnObjectPtr); /* * nssearch - Namespace searching and entry */ ACPI_STATUS AcpiNsSearchAndEnter ( UINT32 EntryName, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *Node, ACPI_INTERPRETER_MODE InterpreterMode, ACPI_OBJECT_TYPE Type, UINT32 Flags, ACPI_NAMESPACE_NODE **RetNode); ACPI_STATUS AcpiNsSearchOneScope ( UINT32 EntryName, ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_TYPE Type, ACPI_NAMESPACE_NODE **RetNode); void AcpiNsInstallNode ( ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *ParentNode, ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_TYPE Type); /* * nsutils - Utility functions */ ACPI_OBJECT_TYPE AcpiNsGetType ( ACPI_NAMESPACE_NODE *Node); UINT32 AcpiNsLocal ( ACPI_OBJECT_TYPE Type); void AcpiNsPrintNodePathname ( ACPI_NAMESPACE_NODE *Node, const char *Msg); ACPI_STATUS AcpiNsBuildInternalName ( ACPI_NAMESTRING_INFO *Info); void AcpiNsGetInternalNameLength ( ACPI_NAMESTRING_INFO *Info); ACPI_STATUS AcpiNsInternalizeName ( const char *DottedName, char **ConvertedName); ACPI_STATUS AcpiNsExternalizeName ( UINT32 InternalNameLength, const char *InternalName, UINT32 *ConvertedNameLength, char **ConvertedName); ACPI_NAMESPACE_NODE * AcpiNsValidateHandle ( ACPI_HANDLE Handle); void AcpiNsTerminate ( void); #endif /* __ACNAMESP_H__ */ acpica-unix-20250404/source/include/acoutput.h0000775000175000017500000004473314773714133020515 0ustar ivanhuivanhu/****************************************************************************** * * Name: acoutput.h -- debug output * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACOUTPUT_H__ #define __ACOUTPUT_H__ /* * Debug levels and component IDs. These are used to control the * granularity of the output of the ACPI_DEBUG_PRINT macro -- on a * per-component basis and a per-exception-type basis. */ /* Component IDs are used in the global "DebugLayer" */ #define ACPI_UTILITIES 0x00000001 #define ACPI_HARDWARE 0x00000002 #define ACPI_EVENTS 0x00000004 #define ACPI_TABLES 0x00000008 #define ACPI_NAMESPACE 0x00000010 #define ACPI_PARSER 0x00000020 #define ACPI_DISPATCHER 0x00000040 #define ACPI_EXECUTER 0x00000080 #define ACPI_RESOURCES 0x00000100 #define ACPI_CA_DEBUGGER 0x00000200 #define ACPI_OS_SERVICES 0x00000400 #define ACPI_CA_DISASSEMBLER 0x00000800 /* Component IDs for ACPI tools and utilities */ #define ACPI_COMPILER 0x00001000 #define ACPI_TOOLS 0x00002000 #define ACPI_EXAMPLE 0x00004000 #define ACPI_DRIVER 0x00008000 #define DT_COMPILER 0x00010000 #define ASL_PREPROCESSOR 0x00020000 #define ACPI_ALL_COMPONENTS 0x0001FFFF #define ACPI_COMPONENT_DEFAULT (ACPI_ALL_COMPONENTS) /* Component IDs reserved for ACPI drivers */ #define ACPI_ALL_DRIVERS 0xFFFF0000 /* * Raw debug output levels, do not use these in the ACPI_DEBUG_PRINT macros */ #define ACPI_LV_INIT 0x00000001 #define ACPI_LV_DEBUG_OBJECT 0x00000002 #define ACPI_LV_INFO 0x00000004 #define ACPI_LV_REPAIR 0x00000008 #define ACPI_LV_TRACE_POINT 0x00000010 #define ACPI_LV_ALL_EXCEPTIONS 0x0000001F /* Trace verbosity level 1 [Standard Trace Level] */ #define ACPI_LV_INIT_NAMES 0x00000020 #define ACPI_LV_PARSE 0x00000040 #define ACPI_LV_LOAD 0x00000080 #define ACPI_LV_DISPATCH 0x00000100 #define ACPI_LV_EXEC 0x00000200 #define ACPI_LV_NAMES 0x00000400 #define ACPI_LV_OPREGION 0x00000800 #define ACPI_LV_BFIELD 0x00001000 #define ACPI_LV_TABLES 0x00002000 #define ACPI_LV_VALUES 0x00004000 #define ACPI_LV_OBJECTS 0x00008000 #define ACPI_LV_RESOURCES 0x00010000 #define ACPI_LV_USER_REQUESTS 0x00020000 #define ACPI_LV_PACKAGE 0x00040000 #define ACPI_LV_EVALUATION 0x00080000 #define ACPI_LV_VERBOSITY1 0x000FFF40 | ACPI_LV_ALL_EXCEPTIONS /* Trace verbosity level 2 [Function tracing and memory allocation] */ #define ACPI_LV_ALLOCATIONS 0x00100000 #define ACPI_LV_FUNCTIONS 0x00200000 #define ACPI_LV_OPTIMIZATIONS 0x00400000 #define ACPI_LV_PARSE_TREES 0x00800000 #define ACPI_LV_VERBOSITY2 0x00F00000 | ACPI_LV_VERBOSITY1 #define ACPI_LV_ALL ACPI_LV_VERBOSITY2 /* Trace verbosity level 3 [Threading, I/O, and Interrupts] */ #define ACPI_LV_MUTEX 0x01000000 #define ACPI_LV_THREADS 0x02000000 #define ACPI_LV_IO 0x04000000 #define ACPI_LV_INTERRUPTS 0x08000000 #define ACPI_LV_VERBOSITY3 0x0F000000 | ACPI_LV_VERBOSITY2 /* Exceptionally verbose output -- also used in the global "DebugLevel" */ #define ACPI_LV_AML_DISASSEMBLE 0x10000000 #define ACPI_LV_VERBOSE_INFO 0x20000000 #define ACPI_LV_FULL_TABLES 0x40000000 #define ACPI_LV_EVENTS 0x80000000 #define ACPI_LV_VERBOSE 0xF0000000 /* * Debug level macros that are used in the DEBUG_PRINT macros */ #define ACPI_DEBUG_LEVEL(dl) (UINT32) dl,ACPI_DEBUG_PARAMETERS /* * Exception level -- used in the global "DebugLevel" * * Note: For errors, use the ACPI_ERROR or ACPI_EXCEPTION interfaces. * For warnings, use ACPI_WARNING. */ #define ACPI_DB_INIT ACPI_DEBUG_LEVEL (ACPI_LV_INIT) #define ACPI_DB_DEBUG_OBJECT ACPI_DEBUG_LEVEL (ACPI_LV_DEBUG_OBJECT) #define ACPI_DB_INFO ACPI_DEBUG_LEVEL (ACPI_LV_INFO) #define ACPI_DB_REPAIR ACPI_DEBUG_LEVEL (ACPI_LV_REPAIR) #define ACPI_DB_TRACE_POINT ACPI_DEBUG_LEVEL (ACPI_LV_TRACE_POINT) #define ACPI_DB_ALL_EXCEPTIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALL_EXCEPTIONS) /* Trace level -- also used in the global "DebugLevel" */ #define ACPI_DB_INIT_NAMES ACPI_DEBUG_LEVEL (ACPI_LV_INIT_NAMES) #define ACPI_DB_THREADS ACPI_DEBUG_LEVEL (ACPI_LV_THREADS) #define ACPI_DB_PARSE ACPI_DEBUG_LEVEL (ACPI_LV_PARSE) #define ACPI_DB_DISPATCH ACPI_DEBUG_LEVEL (ACPI_LV_DISPATCH) #define ACPI_DB_LOAD ACPI_DEBUG_LEVEL (ACPI_LV_LOAD) #define ACPI_DB_EXEC ACPI_DEBUG_LEVEL (ACPI_LV_EXEC) #define ACPI_DB_NAMES ACPI_DEBUG_LEVEL (ACPI_LV_NAMES) #define ACPI_DB_OPREGION ACPI_DEBUG_LEVEL (ACPI_LV_OPREGION) #define ACPI_DB_BFIELD ACPI_DEBUG_LEVEL (ACPI_LV_BFIELD) #define ACPI_DB_TABLES ACPI_DEBUG_LEVEL (ACPI_LV_TABLES) #define ACPI_DB_FUNCTIONS ACPI_DEBUG_LEVEL (ACPI_LV_FUNCTIONS) #define ACPI_DB_OPTIMIZATIONS ACPI_DEBUG_LEVEL (ACPI_LV_OPTIMIZATIONS) #define ACPI_DB_PARSE_TREES ACPI_DEBUG_LEVEL (ACPI_LV_PARSE_TREES) #define ACPI_DB_VALUES ACPI_DEBUG_LEVEL (ACPI_LV_VALUES) #define ACPI_DB_OBJECTS ACPI_DEBUG_LEVEL (ACPI_LV_OBJECTS) #define ACPI_DB_ALLOCATIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALLOCATIONS) #define ACPI_DB_RESOURCES ACPI_DEBUG_LEVEL (ACPI_LV_RESOURCES) #define ACPI_DB_IO ACPI_DEBUG_LEVEL (ACPI_LV_IO) #define ACPI_DB_INTERRUPTS ACPI_DEBUG_LEVEL (ACPI_LV_INTERRUPTS) #define ACPI_DB_USER_REQUESTS ACPI_DEBUG_LEVEL (ACPI_LV_USER_REQUESTS) #define ACPI_DB_PACKAGE ACPI_DEBUG_LEVEL (ACPI_LV_PACKAGE) #define ACPI_DB_EVALUATION ACPI_DEBUG_LEVEL (ACPI_LV_EVALUATION) #define ACPI_DB_MUTEX ACPI_DEBUG_LEVEL (ACPI_LV_MUTEX) #define ACPI_DB_EVENTS ACPI_DEBUG_LEVEL (ACPI_LV_EVENTS) #define ACPI_DB_ALL ACPI_DEBUG_LEVEL (ACPI_LV_ALL) /* Defaults for DebugLevel, debug and normal */ #define ACPI_DEBUG_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_EVALUATION | ACPI_LV_REPAIR) #define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR) #define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL) /* * Global trace flags */ #define ACPI_TRACE_ENABLED ((UINT32) 4) #define ACPI_TRACE_ONESHOT ((UINT32) 2) #define ACPI_TRACE_OPCODE ((UINT32) 1) /* Defaults for trace debugging level/layer */ #define ACPI_TRACE_LEVEL_ALL ACPI_LV_ALL #define ACPI_TRACE_LAYER_ALL 0x000001FF #define ACPI_TRACE_LEVEL_DEFAULT ACPI_LV_TRACE_POINT #define ACPI_TRACE_LAYER_DEFAULT ACPI_EXECUTER #if defined (ACPI_DEBUG_OUTPUT) || !defined (ACPI_NO_ERROR_MESSAGES) /* * The module name is used primarily for error and debug messages. * The __FILE__ macro is not very useful for this, because it * usually includes the entire pathname to the module making the * debug output difficult to read. */ #define ACPI_MODULE_NAME(Name) static const char ACPI_UNUSED_VAR _AcpiModuleName[] = Name; #else /* * For the no-debug and no-error-msg cases, we must at least define * a null module name. */ #define ACPI_MODULE_NAME(Name) #define _AcpiModuleName "" #endif /* * Ascii error messages can be configured out */ #ifndef ACPI_NO_ERROR_MESSAGES #define AE_INFO _AcpiModuleName, __LINE__ #define ACPI_ONCE(_fn, _plist) { static char _done; if (!_done) { _done = 1; _fn _plist; } } /* * Error reporting. 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. */ #define ACPI_INFO(plist) AcpiInfo plist #define ACPI_WARNING(plist) AcpiWarning plist #define ACPI_WARNING_ONCE(plist) ACPI_ONCE(AcpiWarning, plist) #define ACPI_EXCEPTION(plist) AcpiException plist #define ACPI_ERROR(plist) AcpiError plist #define ACPI_ERROR_ONCE(plist) ACPI_ONCE(AcpiError, plist) #define ACPI_BIOS_WARNING(plist) AcpiBiosWarning plist #define ACPI_BIOS_EXCEPTION(plist) AcpiBiosException plist #define ACPI_BIOS_ERROR(plist) AcpiBiosError plist #define ACPI_DEBUG_OBJECT(obj,l,i) AcpiExDoDebugObject(obj,l,i) #else /* No error messages */ #define ACPI_INFO(plist) #define ACPI_WARNING(plist) #define ACPI_WARNING_ONCE(plist) #define ACPI_EXCEPTION(plist) #define ACPI_ERROR(plist) #define ACPI_ERROR_ONCE(plist) #define ACPI_BIOS_WARNING(plist) #define ACPI_BIOS_EXCEPTION(plist) #define ACPI_BIOS_ERROR(plist) #define ACPI_DEBUG_OBJECT(obj,l,i) #endif /* ACPI_NO_ERROR_MESSAGES */ /* * Debug macros that are conditionally compiled */ #ifdef ACPI_DEBUG_OUTPUT /* * If ACPI_GET_FUNCTION_NAME was not defined in the compiler-dependent header, * define it now. This is the case where there the compiler does not support * a __FUNCTION__ macro or equivalent. */ #ifndef ACPI_GET_FUNCTION_NAME #define ACPI_GET_FUNCTION_NAME _AcpiFunctionName /* * The Name parameter should be the procedure name as a non-quoted string. * The function name is also used by the function exit macros below. * Note: (const char) is used to be compatible with the debug interfaces * and macros such as __FUNCTION__. */ #define ACPI_FUNCTION_NAME(Name) static const char _AcpiFunctionName[] = #Name; #else /* Compiler supports __FUNCTION__ (or equivalent) -- Ignore this macro */ #define ACPI_FUNCTION_NAME(Name) #endif /* ACPI_GET_FUNCTION_NAME */ /* * Common parameters used for debug output functions: * line number, function name, module(file) name, component ID */ #define ACPI_DEBUG_PARAMETERS \ __LINE__, ACPI_GET_FUNCTION_NAME, _AcpiModuleName, _COMPONENT /* Check if debug output is currently dynamically enabled */ #define ACPI_IS_DEBUG_ENABLED(Level, Component) \ ((Level & AcpiDbgLevel) && (Component & AcpiDbgLayer)) /* * Master debug print macros * Print message if and only if: * 1) Debug print for the current component is enabled * 2) Debug error level or trace level for the print statement is enabled * * November 2012: Moved the runtime check for whether to actually emit the * debug message outside of the print function itself. This improves overall * performance at a relatively small code cost. Implementation involves the * use of variadic macros supported by C99. * * Note: the ACPI_DO_WHILE0 macro is used to prevent some compilers from * complaining about these constructs. On other compilers the do...while * adds some extra code, so this feature is optional. */ #ifdef ACPI_USE_DO_WHILE_0 #define ACPI_DO_WHILE0(a) do a while(0) #else #define ACPI_DO_WHILE0(a) a #endif /* DEBUG_PRINT functions */ #ifndef COMPILER_VA_MACRO #define ACPI_DEBUG_PRINT(plist) AcpiDebugPrint plist #define ACPI_DEBUG_PRINT_RAW(plist) AcpiDebugPrintRaw plist #else /* Helper macros for DEBUG_PRINT */ #define ACPI_DO_DEBUG_PRINT(Function, Level, Line, Filename, Modulename, Component, ...) \ ACPI_DO_WHILE0 ({ \ if (ACPI_IS_DEBUG_ENABLED (Level, Component)) \ { \ Function (Level, Line, Filename, Modulename, Component, __VA_ARGS__); \ } \ }) #define ACPI_ACTUAL_DEBUG(Level, Line, Filename, Modulename, Component, ...) \ ACPI_DO_DEBUG_PRINT (AcpiDebugPrint, Level, Line, \ Filename, Modulename, Component, __VA_ARGS__) #define ACPI_ACTUAL_DEBUG_RAW(Level, Line, Filename, Modulename, Component, ...) \ ACPI_DO_DEBUG_PRINT (AcpiDebugPrintRaw, Level, Line, \ Filename, Modulename, Component, __VA_ARGS__) #define ACPI_DEBUG_PRINT(plist) ACPI_ACTUAL_DEBUG plist #define ACPI_DEBUG_PRINT_RAW(plist) ACPI_ACTUAL_DEBUG_RAW plist #endif /* * Function entry tracing * * The name of the function is emitted as a local variable that is * intended to be used by both the entry trace and the exit trace. */ /* Helper macro */ #define ACPI_TRACE_ENTRY(Name, Function, Type, Param) \ ACPI_FUNCTION_NAME (Name) \ Function (ACPI_DEBUG_PARAMETERS, (Type) (Param)) /* The actual entry trace macros */ #define ACPI_FUNCTION_TRACE(Name) \ ACPI_FUNCTION_NAME(Name) \ AcpiUtTrace (ACPI_DEBUG_PARAMETERS) #define ACPI_FUNCTION_TRACE_PTR(Name, Pointer) \ ACPI_TRACE_ENTRY (Name, AcpiUtTracePtr, void *, Pointer) #define ACPI_FUNCTION_TRACE_U32(Name, Value) \ ACPI_TRACE_ENTRY (Name, AcpiUtTraceU32, UINT32, Value) #define ACPI_FUNCTION_TRACE_STR(Name, String) \ ACPI_TRACE_ENTRY (Name, AcpiUtTraceStr, const char *, String) #define ACPI_FUNCTION_ENTRY() \ AcpiUtTrackStackPtr() /* * Function exit tracing * * These macros include a return statement. This is usually considered * bad form, but having a separate exit macro before the actual return * is very ugly and difficult to maintain. * * One of the FUNCTION_TRACE macros above must be used in conjunction * with these macros so that "_AcpiFunctionName" is defined. * * There are two versions of most of the return macros. The default version is * safer, since it avoids side-effects by guaranteeing that the argument will * not be evaluated twice. * * A less-safe version of the macros is provided for optional use if the * compiler uses excessive CPU stack (for example, this may happen in the * debug case if code optimization is disabled.) */ /* Exit trace helper macro */ #ifndef ACPI_SIMPLE_RETURN_MACROS #define ACPI_TRACE_EXIT(Function, Type, Param) \ ACPI_DO_WHILE0 ({ \ register Type _Param = (Type) (Param); \ Function (ACPI_DEBUG_PARAMETERS, _Param); \ return (_Param); \ }) #else /* Use original less-safe macros */ #define ACPI_TRACE_EXIT(Function, Type, Param) \ ACPI_DO_WHILE0 ({ \ Function (ACPI_DEBUG_PARAMETERS, (Type) (Param)); \ return (Param); \ }) #endif /* ACPI_SIMPLE_RETURN_MACROS */ /* The actual exit macros */ #define return_VOID \ ACPI_DO_WHILE0 ({ \ AcpiUtExit (ACPI_DEBUG_PARAMETERS); \ return; \ }) #define return_ACPI_STATUS(Status) \ ACPI_TRACE_EXIT (AcpiUtStatusExit, ACPI_STATUS, Status) #define return_PTR(Pointer) \ ACPI_TRACE_EXIT (AcpiUtPtrExit, void *, Pointer) #define return_STR(String) \ ACPI_TRACE_EXIT (AcpiUtStrExit, const char *, String) #define return_VALUE(Value) \ ACPI_TRACE_EXIT (AcpiUtValueExit, UINT64, Value) #define return_UINT32(Value) \ ACPI_TRACE_EXIT (AcpiUtValueExit, UINT32, Value) #define return_UINT8(Value) \ ACPI_TRACE_EXIT (AcpiUtValueExit, UINT8, Value) /* Conditional execution */ #define ACPI_DEBUG_EXEC(a) a #define ACPI_DEBUG_ONLY_MEMBERS(a) a #define _VERBOSE_STRUCTURES /* Various object display routines for debug */ #define ACPI_DUMP_STACK_ENTRY(a) AcpiExDumpOperand((a), 0) #define ACPI_DUMP_OPERANDS(a, b ,c) AcpiExDumpOperands(a, b, c) #define ACPI_DUMP_ENTRY(a, b) AcpiNsDumpEntry (a, b) #define ACPI_DUMP_PATHNAME(a, b, c, d) AcpiNsDumpPathname(a, b, c, d) #define ACPI_DUMP_BUFFER(a, b) AcpiUtDebugDumpBuffer((UINT8 *) a, b, DB_BYTE_DISPLAY, _COMPONENT) #define ACPI_TRACE_POINT(a, b, c, d) AcpiTracePoint (a, b, c, d) #else /* ACPI_DEBUG_OUTPUT */ /* * This is the non-debug case -- make everything go away, * leaving no executable debug code! */ #define ACPI_DEBUG_PRINT(pl) #define ACPI_DEBUG_PRINT_RAW(pl) #define ACPI_DEBUG_EXEC(a) #define ACPI_DEBUG_ONLY_MEMBERS(a) #define ACPI_FUNCTION_NAME(a) #define ACPI_FUNCTION_TRACE(a) #define ACPI_FUNCTION_TRACE_PTR(a, b) #define ACPI_FUNCTION_TRACE_U32(a, b) #define ACPI_FUNCTION_TRACE_STR(a, b) #define ACPI_FUNCTION_ENTRY() #define ACPI_DUMP_STACK_ENTRY(a) #define ACPI_DUMP_OPERANDS(a, b, c) #define ACPI_DUMP_ENTRY(a, b) #define ACPI_DUMP_PATHNAME(a, b, c, d) #define ACPI_DUMP_BUFFER(a, b) #define ACPI_IS_DEBUG_ENABLED(Level, Component) 0 #define ACPI_TRACE_POINT(a, b, c, d) /* Return macros must have a return statement at the minimum */ #define return_VOID return #define return_ACPI_STATUS(s) return(s) #define return_PTR(s) return(s) #define return_STR(s) return(s) #define return_VALUE(s) return(s) #define return_UINT8(s) return(s) #define return_UINT32(s) return(s) #endif /* ACPI_DEBUG_OUTPUT */ #endif /* __ACOUTPUT_H__ */ acpica-unix-20250404/source/include/actbl3.h0000775000175000017500000007447414773714133020026 0ustar ivanhuivanhu/****************************************************************************** * * Name: actbl3.h - ACPI Table Definitions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACTBL3_H__ #define __ACTBL3_H__ /******************************************************************************* * * Additional ACPI Tables * * These tables are not consumed directly by the ACPICA subsystem, but are * included here to support device drivers and the AML disassembler. * ******************************************************************************/ /* * Values for description table header signatures for tables defined in this * file. Useful because they make it more difficult to inadvertently type in * the wrong signature. */ #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */ #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */ #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */ #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */ #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */ #define ACPI_SIG_STAO "STAO" /* Status Override table */ #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */ #define ACPI_SIG_TPM2 "TPM2" /* Trusted Platform Module 2.0 H/W interface table */ #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */ #define ACPI_SIG_VIOT "VIOT" /* Virtual I/O Translation Table */ #define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */ #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */ #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */ #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */ #define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */ #define ACPI_SIG_WSMT "WSMT" /* Windows SMM Security Mitigations Table */ #define ACPI_SIG_XENV "XENV" /* Xen Environment table */ #define ACPI_SIG_XXXX "XXXX" /* Intermediate AML header for ASL/ASL+ converter */ /* * All tables must be byte-packed to match the ACPI specification, since * the tables are provided by the system BIOS. */ #pragma pack(1) /* * Note: C bitfields are not used for this reason: * * "Bitfields are great and easy to read, but unfortunately the C language * does not specify the layout of bitfields in memory, which means they are * essentially useless for dealing with packed data in on-disk formats or * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me, * this decision was a design error in C. Ritchie could have picked an order * and stuck with it." Norman Ramsey. * See http://stackoverflow.com/a/1053662/41661 */ /******************************************************************************* * * SLIC - Software Licensing Description Table * * Conforms to "Microsoft Software Licensing Tables (SLIC and MSDM)", * November 29, 2011. Copyright 2011 Microsoft * ******************************************************************************/ /* Basic SLIC table is only the common ACPI header */ typedef struct acpi_table_slic { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ } ACPI_TABLE_SLIC; /******************************************************************************* * * SLIT - System Locality Distance Information Table * Version 1 * ******************************************************************************/ typedef struct acpi_table_slit { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT64 LocalityCount; UINT8 Entry[1]; /* Real size = localities^2 */ } ACPI_TABLE_SLIT; /******************************************************************************* * * SPCR - Serial Port Console Redirection table * Version 4 * * Conforms to "Serial Port Console Redirection Table", * Version 1.10, Jan 5, 2023 * ******************************************************************************/ typedef struct acpi_table_spcr { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 InterfaceType; /* 0=full 16550, 1=subset of 16550 */ UINT8 Reserved[3]; ACPI_GENERIC_ADDRESS SerialPort; UINT8 InterruptType; UINT8 PcInterrupt; UINT32 Interrupt; UINT8 BaudRate; UINT8 Parity; UINT8 StopBits; UINT8 FlowControl; UINT8 TerminalType; UINT8 Language; UINT16 PciDeviceId; UINT16 PciVendorId; UINT8 PciBus; UINT8 PciDevice; UINT8 PciFunction; UINT32 PciFlags; UINT8 PciSegment; UINT32 UartClkFreq; UINT32 PreciseBaudrate; UINT16 NameSpaceStringLength; UINT16 NameSpaceStringOffset; char NameSpaceString[]; } ACPI_TABLE_SPCR; /* Masks for PciFlags field above */ #define ACPI_SPCR_DO_NOT_DISABLE (1) /* Values for Interface Type: See the definition of the DBG2 table */ /******************************************************************************* * * SPMI - Server Platform Management Interface table * Version 5 * * Conforms to "Intelligent Platform Management Interface Specification * Second Generation v2.0", Document Revision 1.0, February 12, 2004 with * June 12, 2009 markup. * ******************************************************************************/ typedef struct acpi_table_spmi { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 InterfaceType; UINT8 Reserved; /* Must be 1 */ UINT16 SpecRevision; /* Version of IPMI */ UINT8 InterruptType; UINT8 GpeNumber; /* GPE assigned */ UINT8 Reserved1; UINT8 PciDeviceFlag; UINT32 Interrupt; ACPI_GENERIC_ADDRESS IpmiRegister; UINT8 PciSegment; UINT8 PciBus; UINT8 PciDevice; UINT8 PciFunction; UINT8 Reserved2; } ACPI_TABLE_SPMI; /* Values for InterfaceType above */ enum AcpiSpmiInterfaceTypes { ACPI_SPMI_NOT_USED = 0, ACPI_SPMI_KEYBOARD = 1, ACPI_SPMI_SMI = 2, ACPI_SPMI_BLOCK_TRANSFER = 3, ACPI_SPMI_SMBUS = 4, ACPI_SPMI_RESERVED = 5 /* 5 and above are reserved */ }; /******************************************************************************* * * SRAT - System Resource Affinity Table * Version 3 * ******************************************************************************/ typedef struct acpi_table_srat { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 TableRevision; /* Must be value '1' */ UINT64 Reserved; /* Reserved, must be zero */ } ACPI_TABLE_SRAT; /* Values for subtable type in ACPI_SUBTABLE_HEADER */ enum AcpiSratType { ACPI_SRAT_TYPE_CPU_AFFINITY = 0, ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1, ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2, ACPI_SRAT_TYPE_GICC_AFFINITY = 3, ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4, /* ACPI 6.2 */ ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5, /* ACPI 6.3 */ ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY = 6, /* ACPI 6.4 */ ACPI_SRAT_TYPE_RINTC_AFFINITY = 7, /* ACPI 6.6 */ ACPI_SRAT_TYPE_RESERVED = 8 /* 8 and greater are reserved */ }; /* * SRAT Subtables, correspond to Type in ACPI_SUBTABLE_HEADER */ /* 0: Processor Local APIC/SAPIC Affinity */ typedef struct acpi_srat_cpu_affinity { ACPI_SUBTABLE_HEADER Header; UINT8 ProximityDomainLo; UINT8 ApicId; UINT32 Flags; UINT8 LocalSapicEid; UINT8 ProximityDomainHi[3]; UINT32 ClockDomain; } ACPI_SRAT_CPU_AFFINITY; /* Flags */ #define ACPI_SRAT_CPU_USE_AFFINITY (1) /* 00: Use affinity structure */ /* 1: Memory Affinity */ typedef struct acpi_srat_mem_affinity { ACPI_SUBTABLE_HEADER Header; UINT32 ProximityDomain; UINT16 Reserved; /* Reserved, must be zero */ UINT64 BaseAddress; UINT64 Length; UINT32 Reserved1; UINT32 Flags; UINT64 Reserved2; /* Reserved, must be zero */ } ACPI_SRAT_MEM_AFFINITY; /* Flags */ #define ACPI_SRAT_MEM_ENABLED (1) /* 00: Use affinity structure */ #define ACPI_SRAT_MEM_HOT_PLUGGABLE (1<<1) /* 01: Memory region is hot pluggable */ #define ACPI_SRAT_MEM_NON_VOLATILE (1<<2) /* 02: Memory region is non-volatile */ /* 2: Processor Local X2_APIC Affinity (ACPI 4.0) */ typedef struct acpi_srat_x2apic_cpu_affinity { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; /* Reserved, must be zero */ UINT32 ProximityDomain; UINT32 ApicId; UINT32 Flags; UINT32 ClockDomain; UINT32 Reserved2; } ACPI_SRAT_X2APIC_CPU_AFFINITY; /* Flags for ACPI_SRAT_CPU_AFFINITY and ACPI_SRAT_X2APIC_CPU_AFFINITY */ #define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */ /* 3: GICC Affinity (ACPI 5.1) */ typedef struct acpi_srat_gicc_affinity { ACPI_SUBTABLE_HEADER Header; UINT32 ProximityDomain; UINT32 AcpiProcessorUid; UINT32 Flags; UINT32 ClockDomain; } ACPI_SRAT_GICC_AFFINITY; /* Flags for ACPI_SRAT_GICC_AFFINITY */ #define ACPI_SRAT_GICC_ENABLED (1) /* 00: Use affinity structure */ /* 4: GIC ITS Affinity (ACPI 6.2) */ typedef struct acpi_srat_gic_its_affinity { ACPI_SUBTABLE_HEADER Header; UINT32 ProximityDomain; UINT16 Reserved; UINT32 ItsId; } ACPI_SRAT_GIC_ITS_AFFINITY; /* * Common structure for SRAT subtable types: * 5: ACPI_SRAT_TYPE_GENERIC_AFFINITY * 6: ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY */ #define ACPI_SRAT_DEVICE_HANDLE_SIZE 16 typedef struct acpi_srat_generic_affinity { ACPI_SUBTABLE_HEADER Header; UINT8 Reserved; UINT8 DeviceHandleType; UINT32 ProximityDomain; UINT8 DeviceHandle[ACPI_SRAT_DEVICE_HANDLE_SIZE]; UINT32 Flags; UINT32 Reserved1; } ACPI_SRAT_GENERIC_AFFINITY; /* Flags for ACPI_SRAT_GENERIC_AFFINITY */ #define ACPI_SRAT_GENERIC_AFFINITY_ENABLED (1) /* 00: Use affinity structure */ #define ACPI_SRAT_ARCHITECTURAL_TRANSACTIONS (1<<1) /* ACPI 6.4 */ /* 7: RINTC Affinity Structure(ACPI 6.6) */ typedef struct acpi_srat_rintc_affinity { ACPI_SUBTABLE_HEADER Header; UINT16 Reserved; UINT32 ProximityDomain; UINT32 AcpiProcessorUid; UINT32 Flags; UINT32 ClockDomain; } ACPI_SRAT_RINTC_AFFINITY; /* Flags for ACPI_SRAT_RINTC_AFFINITY */ #define ACPI_SRAT_RINTC_ENABLED (1) /* 00: Use affinity structure */ /******************************************************************************* * * STAO - Status Override Table (_STA override) - ACPI 6.0 * Version 1 * * Conforms to "ACPI Specification for Status Override Table" * 6 January 2015 * ******************************************************************************/ typedef struct acpi_table_stao { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 IgnoreUart; } ACPI_TABLE_STAO; /******************************************************************************* * * TCPA - Trusted Computing Platform Alliance table * Version 2 * * TCG Hardware Interface Table for TPM 1.2 Clients and Servers * * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0", * Version 1.2, Revision 8 * February 27, 2017 * * NOTE: There are two versions of the table with the same signature -- * the client version and the server version. The common PlatformClass * field is used to differentiate the two types of tables. * ******************************************************************************/ typedef struct acpi_table_tcpa_hdr { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT16 PlatformClass; } ACPI_TABLE_TCPA_HDR; /* * Values for PlatformClass above. * This is how the client and server subtables are differentiated */ #define ACPI_TCPA_CLIENT_TABLE 0 #define ACPI_TCPA_SERVER_TABLE 1 typedef struct acpi_table_tcpa_client { UINT32 MinimumLogLength; /* Minimum length for the event log area */ UINT64 LogAddress; /* Address of the event log area */ } ACPI_TABLE_TCPA_CLIENT; typedef struct acpi_table_tcpa_server { UINT16 Reserved; UINT64 MinimumLogLength; /* Minimum length for the event log area */ UINT64 LogAddress; /* Address of the event log area */ UINT16 SpecRevision; UINT8 DeviceFlags; UINT8 InterruptFlags; UINT8 GpeNumber; UINT8 Reserved2[3]; UINT32 GlobalInterrupt; ACPI_GENERIC_ADDRESS Address; UINT32 Reserved3; ACPI_GENERIC_ADDRESS ConfigAddress; UINT8 Group; UINT8 Bus; /* PCI Bus/Segment/Function numbers */ UINT8 Device; UINT8 Function; } ACPI_TABLE_TCPA_SERVER; /* Values for DeviceFlags above */ #define ACPI_TCPA_PCI_DEVICE (1) #define ACPI_TCPA_BUS_PNP (1<<1) #define ACPI_TCPA_ADDRESS_VALID (1<<2) /* Values for InterruptFlags above */ #define ACPI_TCPA_INTERRUPT_MODE (1) #define ACPI_TCPA_INTERRUPT_POLARITY (1<<1) #define ACPI_TCPA_SCI_VIA_GPE (1<<2) #define ACPI_TCPA_GLOBAL_INTERRUPT (1<<3) /******************************************************************************* * * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table * Version 4 * * TCG Hardware Interface Table for TPM 2.0 Clients and Servers * * Conforms to "TCG ACPI Specification, Family 1.2 and 2.0", * Version 1.2, Revision 8 * February 27, 2017 * ******************************************************************************/ /* Revision 3 */ typedef struct acpi_table_tpm23 { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Reserved; UINT64 ControlAddress; UINT32 StartMethod; } ACPI_TABLE_TPM23; /* Value for StartMethod above */ #define ACPI_TPM23_ACPI_START_METHOD 2 /* * Optional trailer for revision 3. If start method is 2, there is a 4 byte * reserved area of all zeros. */ typedef struct acpi_tmp23_trailer { UINT32 Reserved; } ACPI_TPM23_TRAILER; /* Revision 4 */ typedef struct acpi_table_tpm2 { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT16 PlatformClass; UINT16 Reserved; UINT64 ControlAddress; UINT32 StartMethod; /* Platform-specific data follows */ } ACPI_TABLE_TPM2; /* Values for StartMethod above */ #define ACPI_TPM2_NOT_ALLOWED 0 #define ACPI_TPM2_RESERVED1 1 #define ACPI_TPM2_START_METHOD 2 #define ACPI_TPM2_RESERVED3 3 #define ACPI_TPM2_RESERVED4 4 #define ACPI_TPM2_RESERVED5 5 #define ACPI_TPM2_MEMORY_MAPPED 6 #define ACPI_TPM2_COMMAND_BUFFER 7 #define ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD 8 #define ACPI_TPM2_RESERVED9 9 #define ACPI_TPM2_RESERVED10 10 #define ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC 11 /* V1.2 Rev 8 */ #define ACPI_TPM2_RESERVED 12 #define ACPI_TPM2_COMMAND_BUFFER_WITH_PLUTON 13 #define ACPI_TPM2_CRB_WITH_ARM_FFA 15 /* Optional trailer appears after any StartMethod subtables */ typedef struct acpi_tpm2_trailer { UINT8 MethodParameters[12]; UINT32 MinimumLogLength; /* Minimum length for the event log area */ UINT64 LogAddress; /* Address of the event log area */ } ACPI_TPM2_TRAILER; /* * Subtables (StartMethod-specific) */ /* 11: Start Method for ARM SMC (V1.2 Rev 8) */ typedef struct acpi_tpm2_arm_smc { UINT32 GlobalInterrupt; UINT8 InterruptFlags; UINT8 OperationFlags; UINT16 Reserved; UINT32 FunctionId; } ACPI_TPM2_ARM_SMC; /* Values for InterruptFlags above */ #define ACPI_TPM2_INTERRUPT_SUPPORT (1) /* Values for OperationFlags above */ #define ACPI_TPM2_IDLE_SUPPORT (1) /******************************************************************************* * * UEFI - UEFI Boot optimization Table * Version 1 * * Conforms to "Unified Extensible Firmware Interface Specification", * Version 2.3, May 8, 2009 * ******************************************************************************/ typedef struct acpi_table_uefi { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT8 Identifier[16]; /* UUID identifier */ UINT16 DataOffset; /* Offset of remaining data in table */ } ACPI_TABLE_UEFI; /******************************************************************************* * * VIOT - Virtual I/O Translation Table * Version 1 * ******************************************************************************/ typedef struct acpi_table_viot { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT16 NodeCount; UINT16 NodeOffset; UINT8 Reserved[8]; } ACPI_TABLE_VIOT; /* VIOT subtable header */ typedef struct acpi_viot_header { UINT8 Type; UINT8 Reserved; UINT16 Length; } ACPI_VIOT_HEADER; /* Values for Type field above */ enum AcpiViotNodeType { ACPI_VIOT_NODE_PCI_RANGE = 0x01, ACPI_VIOT_NODE_MMIO = 0x02, ACPI_VIOT_NODE_VIRTIO_IOMMU_PCI = 0x03, ACPI_VIOT_NODE_VIRTIO_IOMMU_MMIO = 0x04, ACPI_VIOT_RESERVED = 0x05 }; /* VIOT subtables */ typedef struct acpi_viot_pci_range { ACPI_VIOT_HEADER Header; UINT32 EndpointStart; UINT16 SegmentStart; UINT16 SegmentEnd; UINT16 BdfStart; UINT16 BdfEnd; UINT16 OutputNode; UINT8 Reserved[6]; } ACPI_VIOT_PCI_RANGE; typedef struct acpi_viot_mmio { ACPI_VIOT_HEADER Header; UINT32 Endpoint; UINT64 BaseAddress; UINT16 OutputNode; UINT8 Reserved[6]; } ACPI_VIOT_MMIO; typedef struct acpi_viot_virtio_iommu_pci { ACPI_VIOT_HEADER Header; UINT16 Segment; UINT16 Bdf; UINT8 Reserved[8]; } ACPI_VIOT_VIRTIO_IOMMU_PCI; typedef struct acpi_viot_virtio_iommu_mmio { ACPI_VIOT_HEADER Header; UINT8 Reserved[4]; UINT64 BaseAddress; } ACPI_VIOT_VIRTIO_IOMMU_MMIO; /******************************************************************************* * * WAET - Windows ACPI Emulated devices Table * Version 1 * * Conforms to "Windows ACPI Emulated Devices Table", version 1.0, April 6, 2009 * ******************************************************************************/ typedef struct acpi_table_waet { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 Flags; } ACPI_TABLE_WAET; /* Masks for Flags field above */ #define ACPI_WAET_RTC_NO_ACK (1) /* RTC requires no int acknowledge */ #define ACPI_WAET_TIMER_ONE_READ (1<<1) /* PM timer requires only one read */ /******************************************************************************* * * WDAT - Watchdog Action Table * Version 1 * * Conforms to "Hardware Watchdog Timers Design Specification", * Copyright 2006 Microsoft Corporation. * ******************************************************************************/ typedef struct acpi_table_wdat { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 HeaderLength; /* Watchdog Header Length */ UINT16 PciSegment; /* PCI Segment number */ UINT8 PciBus; /* PCI Bus number */ UINT8 PciDevice; /* PCI Device number */ UINT8 PciFunction; /* PCI Function number */ UINT8 Reserved[3]; UINT32 TimerPeriod; /* Period of one timer count (msec) */ UINT32 MaxCount; /* Maximum counter value supported */ UINT32 MinCount; /* Minimum counter value */ UINT8 Flags; UINT8 Reserved2[3]; UINT32 Entries; /* Number of watchdog entries that follow */ } ACPI_TABLE_WDAT; /* Masks for Flags field above */ #define ACPI_WDAT_ENABLED (1) #define ACPI_WDAT_STOPPED 0x80 /* WDAT Instruction Entries (actions) */ typedef struct acpi_wdat_entry { UINT8 Action; UINT8 Instruction; UINT16 Reserved; ACPI_GENERIC_ADDRESS RegisterRegion; UINT32 Value; /* Value used with Read/Write register */ UINT32 Mask; /* Bitmask required for this register instruction */ } ACPI_WDAT_ENTRY; /* Values for Action field above */ enum AcpiWdatActions { ACPI_WDAT_RESET = 1, ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4, ACPI_WDAT_GET_COUNTDOWN = 5, ACPI_WDAT_SET_COUNTDOWN = 6, ACPI_WDAT_GET_RUNNING_STATE = 8, ACPI_WDAT_SET_RUNNING_STATE = 9, ACPI_WDAT_GET_STOPPED_STATE = 10, ACPI_WDAT_SET_STOPPED_STATE = 11, ACPI_WDAT_GET_REBOOT = 16, ACPI_WDAT_SET_REBOOT = 17, ACPI_WDAT_GET_SHUTDOWN = 18, ACPI_WDAT_SET_SHUTDOWN = 19, ACPI_WDAT_GET_STATUS = 32, ACPI_WDAT_SET_STATUS = 33, ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */ }; /* Values for Instruction field above */ enum AcpiWdatInstructions { ACPI_WDAT_READ_VALUE = 0, ACPI_WDAT_READ_COUNTDOWN = 1, ACPI_WDAT_WRITE_VALUE = 2, ACPI_WDAT_WRITE_COUNTDOWN = 3, ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */ ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */ }; /******************************************************************************* * * WDDT - Watchdog Descriptor Table * Version 1 * * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)", * Version 001, September 2002 * ******************************************************************************/ typedef struct acpi_table_wddt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT16 SpecVersion; UINT16 TableVersion; UINT16 PciVendorId; ACPI_GENERIC_ADDRESS Address; UINT16 MaxCount; /* Maximum counter value supported */ UINT16 MinCount; /* Minimum counter value supported */ UINT16 Period; UINT16 Status; UINT16 Capability; } ACPI_TABLE_WDDT; /* Flags for Status field above */ #define ACPI_WDDT_AVAILABLE (1) #define ACPI_WDDT_ACTIVE (1<<1) #define ACPI_WDDT_TCO_OS_OWNED (1<<2) #define ACPI_WDDT_USER_RESET (1<<11) #define ACPI_WDDT_WDT_RESET (1<<12) #define ACPI_WDDT_POWER_FAIL (1<<13) #define ACPI_WDDT_UNKNOWN_RESET (1<<14) /* Flags for Capability field above */ #define ACPI_WDDT_AUTO_RESET (1) #define ACPI_WDDT_ALERT_SUPPORT (1<<1) /******************************************************************************* * * WDRT - Watchdog Resource Table * Version 1 * * Conforms to "Watchdog Timer Hardware Requirements for Windows Server 2003", * Version 1.01, August 28, 2006 * ******************************************************************************/ typedef struct acpi_table_wdrt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ ACPI_GENERIC_ADDRESS ControlRegister; ACPI_GENERIC_ADDRESS CountRegister; UINT16 PciDeviceId; UINT16 PciVendorId; UINT8 PciBus; /* PCI Bus number */ UINT8 PciDevice; /* PCI Device number */ UINT8 PciFunction; /* PCI Function number */ UINT8 PciSegment; /* PCI Segment number */ UINT16 MaxCount; /* Maximum counter value supported */ UINT8 Units; } ACPI_TABLE_WDRT; /******************************************************************************* * * WPBT - Windows Platform Environment Table (ACPI 6.0) * Version 1 * * Conforms to "Windows Platform Binary Table (WPBT)" 29 November 2011 * ******************************************************************************/ typedef struct acpi_table_wpbt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 HandoffSize; UINT64 HandoffAddress; UINT8 Layout; UINT8 Type; UINT16 ArgumentsLength; } ACPI_TABLE_WPBT; typedef struct acpi_wpbt_unicode { UINT16 *UnicodeString; } ACPI_WPBT_UNICODE; /******************************************************************************* * * WSMT - Windows SMM Security Mitigations Table * Version 1 * * Conforms to "Windows SMM Security Mitigations Table", * Version 1.0, April 18, 2016 * ******************************************************************************/ typedef struct acpi_table_wsmt { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT32 ProtectionFlags; } ACPI_TABLE_WSMT; /* Flags for ProtectionFlags field above */ #define ACPI_WSMT_FIXED_COMM_BUFFERS (1) #define ACPI_WSMT_COMM_BUFFER_NESTED_PTR_PROTECTION (2) #define ACPI_WSMT_SYSTEM_RESOURCE_PROTECTION (4) /******************************************************************************* * * XENV - Xen Environment Table (ACPI 6.0) * Version 1 * * Conforms to "ACPI Specification for Xen Environment Table" 4 January 2015 * ******************************************************************************/ typedef struct acpi_table_xenv { ACPI_TABLE_HEADER Header; /* Common ACPI table header */ UINT64 GrantTableAddress; UINT64 GrantTableSize; UINT32 EventInterrupt; UINT8 EventFlags; } ACPI_TABLE_XENV; /* Reset to default packing */ #pragma pack() #endif /* __ACTBL3_H__ */ acpica-unix-20250404/source/include/amlcode.h0000775000175000017500000005075114773714133020252 0ustar ivanhuivanhu/****************************************************************************** * * Name: amlcode.h - Definitions for AML, as included in "definition blocks" * Declarations and definitions contained herein are derived * directly from the ACPI specification. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __AMLCODE_H__ #define __AMLCODE_H__ /* primary opcodes */ #define AML_ZERO_OP (UINT16) 0x00 #define AML_ONE_OP (UINT16) 0x01 #define AML_ALIAS_OP (UINT16) 0x06 #define AML_NAME_OP (UINT16) 0x08 #define AML_BYTE_OP (UINT16) 0x0a #define AML_WORD_OP (UINT16) 0x0b #define AML_DWORD_OP (UINT16) 0x0c #define AML_STRING_OP (UINT16) 0x0d #define AML_QWORD_OP (UINT16) 0x0e /* ACPI 2.0 */ #define AML_SCOPE_OP (UINT16) 0x10 #define AML_BUFFER_OP (UINT16) 0x11 #define AML_PACKAGE_OP (UINT16) 0x12 #define AML_VARIABLE_PACKAGE_OP (UINT16) 0x13 /* ACPI 2.0 */ #define AML_METHOD_OP (UINT16) 0x14 #define AML_EXTERNAL_OP (UINT16) 0x15 /* ACPI 6.0 */ #define AML_DUAL_NAME_PREFIX (UINT16) 0x2e #define AML_MULTI_NAME_PREFIX (UINT16) 0x2f #define AML_EXTENDED_PREFIX (UINT16) 0x5b #define AML_ROOT_PREFIX (UINT16) 0x5c #define AML_PARENT_PREFIX (UINT16) 0x5e #define AML_FIRST_LOCAL_OP (UINT16) 0x60 /* Used for Local op # calculations */ #define AML_LOCAL0 (UINT16) 0x60 #define AML_LOCAL1 (UINT16) 0x61 #define AML_LOCAL2 (UINT16) 0x62 #define AML_LOCAL3 (UINT16) 0x63 #define AML_LOCAL4 (UINT16) 0x64 #define AML_LOCAL5 (UINT16) 0x65 #define AML_LOCAL6 (UINT16) 0x66 #define AML_LOCAL7 (UINT16) 0x67 #define AML_FIRST_ARG_OP (UINT16) 0x68 /* Used for Arg op # calculations */ #define AML_ARG0 (UINT16) 0x68 #define AML_ARG1 (UINT16) 0x69 #define AML_ARG2 (UINT16) 0x6a #define AML_ARG3 (UINT16) 0x6b #define AML_ARG4 (UINT16) 0x6c #define AML_ARG5 (UINT16) 0x6d #define AML_ARG6 (UINT16) 0x6e #define AML_STORE_OP (UINT16) 0x70 #define AML_REF_OF_OP (UINT16) 0x71 #define AML_ADD_OP (UINT16) 0x72 #define AML_CONCATENATE_OP (UINT16) 0x73 #define AML_SUBTRACT_OP (UINT16) 0x74 #define AML_INCREMENT_OP (UINT16) 0x75 #define AML_DECREMENT_OP (UINT16) 0x76 #define AML_MULTIPLY_OP (UINT16) 0x77 #define AML_DIVIDE_OP (UINT16) 0x78 #define AML_SHIFT_LEFT_OP (UINT16) 0x79 #define AML_SHIFT_RIGHT_OP (UINT16) 0x7a #define AML_BIT_AND_OP (UINT16) 0x7b #define AML_BIT_NAND_OP (UINT16) 0x7c #define AML_BIT_OR_OP (UINT16) 0x7d #define AML_BIT_NOR_OP (UINT16) 0x7e #define AML_BIT_XOR_OP (UINT16) 0x7f #define AML_BIT_NOT_OP (UINT16) 0x80 #define AML_FIND_SET_LEFT_BIT_OP (UINT16) 0x81 #define AML_FIND_SET_RIGHT_BIT_OP (UINT16) 0x82 #define AML_DEREF_OF_OP (UINT16) 0x83 #define AML_CONCATENATE_TEMPLATE_OP (UINT16) 0x84 /* ACPI 2.0 */ #define AML_MOD_OP (UINT16) 0x85 /* ACPI 2.0 */ #define AML_NOTIFY_OP (UINT16) 0x86 #define AML_SIZE_OF_OP (UINT16) 0x87 #define AML_INDEX_OP (UINT16) 0x88 #define AML_MATCH_OP (UINT16) 0x89 #define AML_CREATE_DWORD_FIELD_OP (UINT16) 0x8a #define AML_CREATE_WORD_FIELD_OP (UINT16) 0x8b #define AML_CREATE_BYTE_FIELD_OP (UINT16) 0x8c #define AML_CREATE_BIT_FIELD_OP (UINT16) 0x8d #define AML_OBJECT_TYPE_OP (UINT16) 0x8e #define AML_CREATE_QWORD_FIELD_OP (UINT16) 0x8f /* ACPI 2.0 */ #define AML_LOGICAL_AND_OP (UINT16) 0x90 #define AML_LOGICAL_OR_OP (UINT16) 0x91 #define AML_LOGICAL_NOT_OP (UINT16) 0x92 #define AML_LOGICAL_EQUAL_OP (UINT16) 0x93 #define AML_LOGICAL_GREATER_OP (UINT16) 0x94 #define AML_LOGICAL_LESS_OP (UINT16) 0x95 #define AML_TO_BUFFER_OP (UINT16) 0x96 /* ACPI 2.0 */ #define AML_TO_DECIMAL_STRING_OP (UINT16) 0x97 /* ACPI 2.0 */ #define AML_TO_HEX_STRING_OP (UINT16) 0x98 /* ACPI 2.0 */ #define AML_TO_INTEGER_OP (UINT16) 0x99 /* ACPI 2.0 */ #define AML_TO_STRING_OP (UINT16) 0x9c /* ACPI 2.0 */ #define AML_COPY_OBJECT_OP (UINT16) 0x9d /* ACPI 2.0 */ #define AML_MID_OP (UINT16) 0x9e /* ACPI 2.0 */ #define AML_CONTINUE_OP (UINT16) 0x9f /* ACPI 2.0 */ #define AML_IF_OP (UINT16) 0xa0 #define AML_ELSE_OP (UINT16) 0xa1 #define AML_WHILE_OP (UINT16) 0xa2 #define AML_NOOP_OP (UINT16) 0xa3 #define AML_RETURN_OP (UINT16) 0xa4 #define AML_BREAK_OP (UINT16) 0xa5 #define AML_COMMENT_OP (UINT16) 0xa9 #define AML_BREAKPOINT_OP (UINT16) 0xcc #define AML_ONES_OP (UINT16) 0xff /* * Combination opcodes (actually two one-byte opcodes) * Used by the disassembler and iASL compiler */ #define AML_LOGICAL_GREATER_EQUAL_OP (UINT16) 0x9295 /* LNot (LLess) */ #define AML_LOGICAL_LESS_EQUAL_OP (UINT16) 0x9294 /* LNot (LGreater) */ #define AML_LOGICAL_NOT_EQUAL_OP (UINT16) 0x9293 /* LNot (LEqual) */ /* Prefixed (2-byte) opcodes (with AML_EXTENDED_PREFIX) */ #define AML_EXTENDED_OPCODE (UINT16) 0x5b00 /* Prefix for 2-byte opcodes */ #define AML_MUTEX_OP (UINT16) 0x5b01 #define AML_EVENT_OP (UINT16) 0x5b02 #define AML_SHIFT_RIGHT_BIT_OP (UINT16) 0x5b10 /* Obsolete, not in ACPI spec */ #define AML_SHIFT_LEFT_BIT_OP (UINT16) 0x5b11 /* Obsolete, not in ACPI spec */ #define AML_CONDITIONAL_REF_OF_OP (UINT16) 0x5b12 #define AML_CREATE_FIELD_OP (UINT16) 0x5b13 #define AML_LOAD_TABLE_OP (UINT16) 0x5b1f /* ACPI 2.0 */ #define AML_LOAD_OP (UINT16) 0x5b20 #define AML_STALL_OP (UINT16) 0x5b21 #define AML_SLEEP_OP (UINT16) 0x5b22 #define AML_ACQUIRE_OP (UINT16) 0x5b23 #define AML_SIGNAL_OP (UINT16) 0x5b24 #define AML_WAIT_OP (UINT16) 0x5b25 #define AML_RESET_OP (UINT16) 0x5b26 #define AML_RELEASE_OP (UINT16) 0x5b27 #define AML_FROM_BCD_OP (UINT16) 0x5b28 #define AML_TO_BCD_OP (UINT16) 0x5b29 #define AML_UNLOAD_OP (UINT16) 0x5b2a #define AML_REVISION_OP (UINT16) 0x5b30 #define AML_DEBUG_OP (UINT16) 0x5b31 #define AML_FATAL_OP (UINT16) 0x5b32 #define AML_TIMER_OP (UINT16) 0x5b33 /* ACPI 3.0 */ #define AML_REGION_OP (UINT16) 0x5b80 #define AML_FIELD_OP (UINT16) 0x5b81 #define AML_DEVICE_OP (UINT16) 0x5b82 #define AML_PROCESSOR_OP (UINT16) 0x5b83 #define AML_POWER_RESOURCE_OP (UINT16) 0x5b84 #define AML_THERMAL_ZONE_OP (UINT16) 0x5b85 #define AML_INDEX_FIELD_OP (UINT16) 0x5b86 #define AML_BANK_FIELD_OP (UINT16) 0x5b87 #define AML_DATA_REGION_OP (UINT16) 0x5b88 /* ACPI 2.0 */ /* * Opcodes for "Field" operators */ #define AML_FIELD_OFFSET_OP (UINT8) 0x00 #define AML_FIELD_ACCESS_OP (UINT8) 0x01 #define AML_FIELD_CONNECTION_OP (UINT8) 0x02 /* ACPI 5.0 */ #define AML_FIELD_EXT_ACCESS_OP (UINT8) 0x03 /* ACPI 5.0 */ /* * Internal opcodes * Use only "Unknown" AML opcodes, don't attempt to use * any valid ACPI ASCII values (A-Z, 0-9, '-') */ #define AML_INT_NAMEPATH_OP (UINT16) 0x002d #define AML_INT_NAMEDFIELD_OP (UINT16) 0x0030 #define AML_INT_RESERVEDFIELD_OP (UINT16) 0x0031 #define AML_INT_ACCESSFIELD_OP (UINT16) 0x0032 #define AML_INT_BYTELIST_OP (UINT16) 0x0033 #define AML_INT_METHODCALL_OP (UINT16) 0x0035 #define AML_INT_RETURN_VALUE_OP (UINT16) 0x0036 #define AML_INT_EVAL_SUBTREE_OP (UINT16) 0x0037 #define AML_INT_CONNECTION_OP (UINT16) 0x0038 #define AML_INT_EXTACCESSFIELD_OP (UINT16) 0x0039 #define ARG_NONE 0x0 /* * Argument types for the AML Parser * Each field in the ArgTypes UINT32 is 5 bits, allowing for a maximum of 6 arguments. * There can be up to 31 unique argument types * Zero is reserved as end-of-list indicator */ #define ARGP_BYTEDATA 0x01 #define ARGP_BYTELIST 0x02 #define ARGP_CHARLIST 0x03 #define ARGP_DATAOBJ 0x04 #define ARGP_DATAOBJLIST 0x05 #define ARGP_DWORDDATA 0x06 #define ARGP_FIELDLIST 0x07 #define ARGP_NAME 0x08 #define ARGP_NAMESTRING 0x09 #define ARGP_OBJLIST 0x0A #define ARGP_PKGLENGTH 0x0B #define ARGP_SUPERNAME 0x0C #define ARGP_TARGET 0x0D #define ARGP_TERMARG 0x0E #define ARGP_TERMLIST 0x0F #define ARGP_WORDDATA 0x10 #define ARGP_QWORDDATA 0x11 #define ARGP_SIMPLENAME 0x12 /* NameString | LocalTerm | ArgTerm */ #define ARGP_NAME_OR_REF 0x13 /* For ObjectType only */ #define ARGP_MAX 0x13 #define ARGP_COMMENT 0x14 /* * Resolved argument types for the AML Interpreter * Each field in the ArgTypes UINT32 is 5 bits, allowing for a maximum of 6 arguments. * There can be up to 31 unique argument types (0 is end-of-arg-list indicator) * * Note1: These values are completely independent from the ACPI_TYPEs * i.e., ARGI_INTEGER != ACPI_TYPE_INTEGER * * Note2: If and when 5 bits becomes insufficient, it would probably be best * to convert to a 6-byte array of argument types, allowing 8 bits per argument. */ /* Single, simple types */ #define ARGI_ANYTYPE 0x01 /* Don't care */ #define ARGI_PACKAGE 0x02 #define ARGI_EVENT 0x03 #define ARGI_MUTEX 0x04 #define ARGI_DDBHANDLE 0x05 /* Interchangeable types (via implicit conversion) */ #define ARGI_INTEGER 0x06 #define ARGI_STRING 0x07 #define ARGI_BUFFER 0x08 #define ARGI_BUFFER_OR_STRING 0x09 /* Used by MID op only */ #define ARGI_COMPUTEDATA 0x0A /* Buffer, String, or Integer */ /* Reference objects */ #define ARGI_INTEGER_REF 0x0B #define ARGI_OBJECT_REF 0x0C #define ARGI_DEVICE_REF 0x0D #define ARGI_REFERENCE 0x0E #define ARGI_TARGETREF 0x0F /* Target, subject to implicit conversion */ #define ARGI_FIXED_TARGET 0x10 /* Target, no implicit conversion */ #define ARGI_SIMPLE_TARGET 0x11 /* Name, Local, Arg -- no implicit conversion */ #define ARGI_STORE_TARGET 0x12 /* Target for store is TARGETREF + package objects */ /* Multiple/complex types */ #define ARGI_DATAOBJECT 0x13 /* Buffer, String, package or reference to a Node - Used only by SizeOf operator*/ #define ARGI_COMPLEXOBJ 0x14 /* Buffer, String, or package (Used by INDEX op only) */ #define ARGI_REF_OR_STRING 0x15 /* Reference or String (Used by DEREFOF op only) */ #define ARGI_REGION_OR_BUFFER 0x16 /* Used by LOAD op only */ #define ARGI_DATAREFOBJ 0x17 /* Note: types above can expand to 0x1F maximum */ #define ARGI_INVALID_OPCODE 0xFFFFFFFF /* * Some of the flags and types below are of the form: * * AML_FLAGS_EXEC_#A_#T,#R, or * AML_TYPE_EXEC_#A_#T,#R where: * * #A is the number of required arguments * #T is the number of target operands * #R indicates whether there is a return value * * These types are used for the top-level dispatch of the AML * opcode. They group similar operators that can share common * front-end code before dispatch to the final code that implements * the operator. */ /* * Opcode information flags */ #define AML_LOGICAL 0x0001 #define AML_LOGICAL_NUMERIC 0x0002 #define AML_MATH 0x0004 #define AML_CREATE 0x0008 #define AML_FIELD 0x0010 #define AML_DEFER 0x0020 #define AML_NAMED 0x0040 #define AML_NSNODE 0x0080 #define AML_NSOPCODE 0x0100 #define AML_NSOBJECT 0x0200 #define AML_HAS_RETVAL 0x0400 #define AML_HAS_TARGET 0x0800 #define AML_HAS_ARGS 0x1000 #define AML_CONSTANT 0x2000 #define AML_NO_OPERAND_RESOLVE 0x4000 /* Convenient flag groupings of the flags above */ #define AML_FLAGS_EXEC_0A_0T_1R AML_HAS_RETVAL #define AML_FLAGS_EXEC_1A_0T_0R AML_HAS_ARGS /* Monadic1 */ #define AML_FLAGS_EXEC_1A_0T_1R AML_HAS_ARGS | AML_HAS_RETVAL /* Monadic2 */ #define AML_FLAGS_EXEC_1A_1T_0R AML_HAS_ARGS | AML_HAS_TARGET #define AML_FLAGS_EXEC_1A_1T_1R AML_HAS_ARGS | AML_HAS_TARGET | AML_HAS_RETVAL /* Monadic2R */ #define AML_FLAGS_EXEC_2A_0T_0R AML_HAS_ARGS /* Dyadic1 */ #define AML_FLAGS_EXEC_2A_0T_1R AML_HAS_ARGS | AML_HAS_RETVAL /* Dyadic2 */ #define AML_FLAGS_EXEC_2A_1T_1R AML_HAS_ARGS | AML_HAS_TARGET | AML_HAS_RETVAL /* Dyadic2R */ #define AML_FLAGS_EXEC_2A_2T_1R AML_HAS_ARGS | AML_HAS_TARGET | AML_HAS_RETVAL #define AML_FLAGS_EXEC_3A_0T_0R AML_HAS_ARGS #define AML_FLAGS_EXEC_3A_1T_1R AML_HAS_ARGS | AML_HAS_TARGET | AML_HAS_RETVAL #define AML_FLAGS_EXEC_6A_0T_1R AML_HAS_ARGS | AML_HAS_RETVAL /* * The opcode Type is used in a dispatch table, do not change * or add anything new without updating the table. */ #define AML_TYPE_EXEC_0A_0T_1R 0x00 /* 0 Args, 0 Target, 1 RetVal */ #define AML_TYPE_EXEC_1A_0T_0R 0x01 /* 1 Args, 0 Target, 0 RetVal */ #define AML_TYPE_EXEC_1A_0T_1R 0x02 /* 1 Args, 0 Target, 1 RetVal */ #define AML_TYPE_EXEC_1A_1T_0R 0x03 /* 1 Args, 1 Target, 0 RetVal */ #define AML_TYPE_EXEC_1A_1T_1R 0x04 /* 1 Args, 1 Target, 1 RetVal */ #define AML_TYPE_EXEC_2A_0T_0R 0x05 /* 2 Args, 0 Target, 0 RetVal */ #define AML_TYPE_EXEC_2A_0T_1R 0x06 /* 2 Args, 0 Target, 1 RetVal */ #define AML_TYPE_EXEC_2A_1T_1R 0x07 /* 2 Args, 1 Target, 1 RetVal */ #define AML_TYPE_EXEC_2A_2T_1R 0x08 /* 2 Args, 2 Target, 1 RetVal */ #define AML_TYPE_EXEC_3A_0T_0R 0x09 /* 3 Args, 0 Target, 0 RetVal */ #define AML_TYPE_EXEC_3A_1T_1R 0x0A /* 3 Args, 1 Target, 1 RetVal */ #define AML_TYPE_EXEC_6A_0T_1R 0x0B /* 6 Args, 0 Target, 1 RetVal */ /* End of types used in dispatch table */ #define AML_TYPE_LITERAL 0x0C #define AML_TYPE_CONSTANT 0x0D #define AML_TYPE_METHOD_ARGUMENT 0x0E #define AML_TYPE_LOCAL_VARIABLE 0x0F #define AML_TYPE_DATA_TERM 0x10 /* Generic for an op that returns a value */ #define AML_TYPE_METHOD_CALL 0x11 /* Miscellaneous types */ #define AML_TYPE_CREATE_FIELD 0x12 #define AML_TYPE_CREATE_OBJECT 0x13 #define AML_TYPE_CONTROL 0x14 #define AML_TYPE_NAMED_NO_OBJ 0x15 #define AML_TYPE_NAMED_FIELD 0x16 #define AML_TYPE_NAMED_SIMPLE 0x17 #define AML_TYPE_NAMED_COMPLEX 0x18 #define AML_TYPE_RETURN 0x19 #define AML_TYPE_UNDEFINED 0x1A #define AML_TYPE_BOGUS 0x1B /* AML Package Length encodings */ #define ACPI_AML_PACKAGE_TYPE1 0x40 #define ACPI_AML_PACKAGE_TYPE2 0x4000 #define ACPI_AML_PACKAGE_TYPE3 0x400000 #define ACPI_AML_PACKAGE_TYPE4 0x40000000 /* * Opcode classes */ #define AML_CLASS_EXECUTE 0x00 #define AML_CLASS_CREATE 0x01 #define AML_CLASS_ARGUMENT 0x02 #define AML_CLASS_NAMED_OBJECT 0x03 #define AML_CLASS_CONTROL 0x04 #define AML_CLASS_ASCII 0x05 #define AML_CLASS_PREFIX 0x06 #define AML_CLASS_INTERNAL 0x07 #define AML_CLASS_RETURN_VALUE 0x08 #define AML_CLASS_METHOD_CALL 0x09 #define AML_CLASS_UNKNOWN 0x0A /* Comparison operation codes for MatchOp operator */ typedef enum { MATCH_MTR = 0, MATCH_MEQ = 1, MATCH_MLE = 2, MATCH_MLT = 3, MATCH_MGE = 4, MATCH_MGT = 5 } AML_MATCH_OPERATOR; #define MAX_MATCH_OPERATOR 5 /* * FieldFlags * * This byte is extracted from the AML and includes three separate * pieces of information about the field: * 1) The field access type * 2) The field update rule * 3) The lock rule for the field * * Bits 00 - 03 : AccessType (AnyAcc, ByteAcc, etc.) * 04 : LockRule (1 == Lock) * 05 - 06 : UpdateRule */ #define AML_FIELD_ACCESS_TYPE_MASK 0x0F #define AML_FIELD_LOCK_RULE_MASK 0x10 #define AML_FIELD_UPDATE_RULE_MASK 0x60 /* 1) Field Access Types */ typedef enum { AML_FIELD_ACCESS_ANY = 0x00, AML_FIELD_ACCESS_BYTE = 0x01, AML_FIELD_ACCESS_WORD = 0x02, AML_FIELD_ACCESS_DWORD = 0x03, AML_FIELD_ACCESS_QWORD = 0x04, /* ACPI 2.0 */ AML_FIELD_ACCESS_BUFFER = 0x05 /* ACPI 2.0 */ } AML_ACCESS_TYPE; /* 2) Field Lock Rules */ typedef enum { AML_FIELD_LOCK_NEVER = 0x00, AML_FIELD_LOCK_ALWAYS = 0x10 } AML_LOCK_RULE; /* 3) Field Update Rules */ typedef enum { AML_FIELD_UPDATE_PRESERVE = 0x00, AML_FIELD_UPDATE_WRITE_AS_ONES = 0x20, AML_FIELD_UPDATE_WRITE_AS_ZEROS = 0x40 } AML_UPDATE_RULE; /* * Field Access Attributes. * This byte is extracted from the AML via the * AccessAs keyword */ typedef enum { AML_FIELD_ATTRIB_QUICK = 0x02, AML_FIELD_ATTRIB_SEND_RECEIVE = 0x04, AML_FIELD_ATTRIB_BYTE = 0x06, AML_FIELD_ATTRIB_WORD = 0x08, AML_FIELD_ATTRIB_BLOCK = 0x0A, AML_FIELD_ATTRIB_BYTES = 0x0B, AML_FIELD_ATTRIB_PROCESS_CALL = 0x0C, AML_FIELD_ATTRIB_BLOCK_PROCESS_CALL = 0x0D, AML_FIELD_ATTRIB_RAW_BYTES = 0x0E, AML_FIELD_ATTRIB_RAW_PROCESS_BYTES = 0x0F } AML_ACCESS_ATTRIBUTE; /* Bit fields in the AML MethodFlags byte */ #define AML_METHOD_ARG_COUNT 0x07 #define AML_METHOD_SERIALIZED 0x08 #define AML_METHOD_SYNC_LEVEL 0xF0 #endif /* __AMLCODE_H__ */ acpica-unix-20250404/source/include/acpredef.h0000775000175000017500000013753414773714133020424 0ustar ivanhuivanhu/****************************************************************************** * * Name: acpredef - Information table for ACPI predefined methods and objects * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACPREDEF_H__ #define __ACPREDEF_H__ /****************************************************************************** * * Return Package types * * 1) PTYPE1 packages do not contain subpackages. * * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types: * object type * count * object type * count * * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed: * object type (Int/Buf/Ref) * * ACPI_PTYPE1_OPTION: Package has some required and some optional elements * (Used for _PRW) * * * 2) PTYPE2 packages contain a Variable-length number of subpackages. Each * of the different types describe the contents of each of the subpackages. * * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length * parent package is allowed: * object type * count * object type * count * (Used for _ALR,_MLS,_PSS,_TRT,_TSS) * * ACPI_PTYPE2_COUNT: Each subpackage has a count as first element. * Zero-length parent package is allowed: * object type * (Used for _CSD,_PSD,_TSD) * * ACPI_PTYPE2_PKG_COUNT: Count of subpackages at start, 1 or 2 object types: * object type * count * object type * count * (Used for _CST) * * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length. Zero-length * parent package is allowed. * (Used for _PRT) * * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length. * Zero-length parent package is allowed: * (Used for _HPX) * * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length * (Used for _ART, _FPS) * * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements * followed by an optional element. Zero-length parent package is allowed. * object type * count * object type * count = 0 (optional) * (Used for _DLM) * * ACPI_PTYPE2_VAR_VAR: Variable number of subpackages, each of either a * constant or variable length. The subpackages are preceded by a * constant number of objects. * (Used for _LPI, _RDI) * * ACPI_PTYPE2_UUID_PAIR: Each subpackage is preceded by a UUID Buffer. The UUID * defines the format of the package. Zero-length parent package is * allowed. * (Used for _DSD) * *****************************************************************************/ enum AcpiReturnPackageTypes { ACPI_PTYPE1_FIXED = 1, ACPI_PTYPE1_VAR = 2, ACPI_PTYPE1_OPTION = 3, ACPI_PTYPE2 = 4, ACPI_PTYPE2_COUNT = 5, ACPI_PTYPE2_PKG_COUNT = 6, ACPI_PTYPE2_FIXED = 7, ACPI_PTYPE2_MIN = 8, ACPI_PTYPE2_REV_FIXED = 9, ACPI_PTYPE2_FIX_VAR = 10, ACPI_PTYPE2_VAR_VAR = 11, ACPI_PTYPE2_UUID_PAIR = 12, ACPI_PTYPE_CUSTOM = 13 }; /* Support macros for users of the predefined info table */ #define METHOD_PREDEF_ARGS_MAX 5 #define METHOD_ARG_BIT_WIDTH 3 #define METHOD_ARG_MASK 0x0007 #define ARG_COUNT_IS_MINIMUM 0x8000 #define METHOD_MAX_ARG_TYPE ACPI_TYPE_PACKAGE #define METHOD_GET_ARG_COUNT(ArgList) ((ArgList) & METHOD_ARG_MASK) #define METHOD_GET_NEXT_TYPE(ArgList) (((ArgList) >>= METHOD_ARG_BIT_WIDTH) & METHOD_ARG_MASK) /* Macros used to build the predefined info table */ #define METHOD_0ARGS 0 #define METHOD_1ARGS(a1) (1 | (a1 << 3)) #define METHOD_2ARGS(a1,a2) (2 | (a1 << 3) | (a2 << 6)) #define METHOD_3ARGS(a1,a2,a3) (3 | (a1 << 3) | (a2 << 6) | (a3 << 9)) #define METHOD_4ARGS(a1,a2,a3,a4) (4 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12)) #define METHOD_5ARGS(a1,a2,a3,a4,a5) (5 | (a1 << 3) | (a2 << 6) | (a3 << 9) | (a4 << 12) | (a5 << 15)) #define METHOD_RETURNS(type) (type) #define METHOD_NO_RETURN_VALUE 0 #define PACKAGE_INFO(a,b,c,d,e,f) {{{(a),(b),(c),(d)}, ((((UINT16)(f)) << 8) | (e)), 0}} /* Support macros for the resource descriptor info table */ #define WIDTH_1 0x0001 #define WIDTH_2 0x0002 #define WIDTH_3 0x0004 #define WIDTH_8 0x0008 #define WIDTH_16 0x0010 #define WIDTH_32 0x0020 #define WIDTH_64 0x0040 #define VARIABLE_DATA 0x0080 #define NUM_RESOURCE_WIDTHS 8 #define WIDTH_ADDRESS WIDTH_16 | WIDTH_32 | WIDTH_64 #ifdef ACPI_CREATE_PREDEFINED_TABLE /****************************************************************************** * * Predefined method/object information table. * * These are the names that can actually be evaluated via AcpiEvaluateObject. * Not present in this table are the following: * * 1) Predefined/Reserved names that are not usually evaluated via * AcpiEvaluateObject: * _Lxx and _Exx GPE methods * _Qxx EC methods * _T_x compiler temporary variables * _Wxx wake events * * 2) Predefined names that never actually exist within the AML code: * Predefined resource descriptor field names * * 3) Predefined names that are implemented within ACPICA: * _OSI * * The main entries in the table each contain the following items: * * Name - The ACPI reserved name * ArgumentList - Contains (in 16 bits), the number of required * arguments to the method (3 bits), and a 3-bit type * field for each argument (up to 4 arguments). The * METHOD_?ARGS macros generate the correct packed data. * ExpectedBtypes - Allowed type(s) for the return value. * 0 means that no return value is expected. * * For methods that return packages, the next entry in the table contains * information about the expected structure of the package. This information * is saved here (rather than in a separate table) in order to minimize the * overall size of the stored data. * * Note: The additional braces are intended to promote portability. * * Note2: Table is used by the kernel-resident subsystem, the iASL compiler, * and the AcpiHelp utility. * * TBD: _PRT - currently ignore reversed entries. Attempt to fix in nsrepair. * Possibly fixing package elements like _BIF, etc. * *****************************************************************************/ const ACPI_PREDEFINED_INFO AcpiGbl_PredefinedMethods[] = { {{"_AC0", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AC1", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AC2", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AC3", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AC4", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AC5", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AC6", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AC7", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AC8", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AC9", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_ADR", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_AEI", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_AL0", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_AL1", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_AL2", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_AL3", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_AL4", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_AL5", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_AL6", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_AL7", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_AL8", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_AL9", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_ALC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_ALI", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_ALP", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_ALR", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 (Ints) */ PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 2,0,0,0), {{"_ALT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_ART", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (2 Ref/11 Int) */ PACKAGE_INFO (ACPI_PTYPE2_REV_FIXED, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER, 11,0), {{"_BBN", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_BCL", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0,0,0), {{"_BCM", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_BCT", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_BDN", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_BFS", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_BIF", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (9 Int),(4 Str) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 9, ACPI_RTYPE_STRING, 4,0), {{"_BIX", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int),(4 Str) */ PACKAGE_INFO (ACPI_PTYPE_CUSTOM, ACPI_RTYPE_INTEGER, 16, ACPI_RTYPE_STRING, 4,0), {{"_BLT", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_BMA", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_BMC", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_BMD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (5 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0,0,0), {{"_BMS", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_BPC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), {{"_BPS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (5 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 5,0,0,0), {{"_BPT", METHOD_1ARGS (ACPI_TYPE_PACKAGE), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_BQC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_BST", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), {{"_BTH", METHOD_1ARGS (ACPI_TYPE_INTEGER), /* ACPI 6.0 */ METHOD_NO_RETURN_VALUE}}, {{"_BTM", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_BTP", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_CBA", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See PCI firmware spec 3.0 */ {{"_CBR", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0,0,0), {{"_CCA", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 5.1 */ {{"_CDM", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_CID", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Strs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING, 0,0,0,0), {{"_CLS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0,0,0), {{"_CPC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints/Bufs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER, 0,0,0,0), {{"_CR3", METHOD_0ARGS, /* ACPI 6.0 */ METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_CRS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_CRT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_CSD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n-1 Int) */ PACKAGE_INFO (ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0,0,0), {{"_CST", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(n), n Pkg (1 Buf/3 Int) */ PACKAGE_INFO (ACPI_PTYPE2_PKG_COUNT,ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_INTEGER, 3,0), {{"_CWS", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_DCK", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_DCS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_DDC", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER)}}, {{"_DDN", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_STRING)}}, {{"_DEP", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_DGS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_DIS", METHOD_0ARGS, METHOD_NO_RETURN_VALUE}}, {{"_DLM", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Ref, 0/1 Optional Buf/Ref) */ PACKAGE_INFO (ACPI_PTYPE2_FIX_VAR, ACPI_RTYPE_REFERENCE, 1, ACPI_RTYPE_REFERENCE | ACPI_RTYPE_BUFFER, 0,0), {{"_DMA", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_DOD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0,0,0), {{"_DOS", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, { {"_DSC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_DSD", METHOD_0ARGS, /* ACPI 6.0 */ METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: 1 Buf, 1 Pkg */ PACKAGE_INFO (ACPI_PTYPE2_UUID_PAIR, ACPI_RTYPE_BUFFER, 1, ACPI_RTYPE_PACKAGE, 1,0), {{"_DSM", METHOD_4ARGS (ACPI_TYPE_BUFFER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_ANY) | ARG_COUNT_IS_MINIMUM, METHOD_RETURNS (ACPI_RTYPE_ALL)}}, /* Must return a value, but it can be of any type */ {{"_DSS", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_DSW", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_DTI", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_EC_", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_EDL", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs)*/ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_EJ0", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_EJ1", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_EJ2", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_EJ3", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_EJ4", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_EJD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_STRING)}}, {{"_ERR", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_STRING, ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* Internal use only, used by ACPICA test suites */ {{"_EVT", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_FDE", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_FDI", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (16 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 16,0,0,0), {{"_FDM", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_FIF", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), {{"_FIT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, /* ACPI 6.0 */ {{"_FIX", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Ints) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 0,0,0,0), {{"_FPS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (5 Int) */ PACKAGE_INFO (ACPI_PTYPE2_REV_FIXED,ACPI_RTYPE_INTEGER, 5, 0,0,0), {{"_FSL", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_FST", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0,0,0), {{"_GAI", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_GCP", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_GHL", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_GLK", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_GPD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_GPE", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* _GPE method, not _GPE scope */ {{"_GRT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_GSB", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_GTF", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_GTM", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_GTS", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_GWS", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_HID", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING)}}, {{"_HMA", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_HOT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_HPP", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), /* * For _HPX, a single package is returned, containing a variable-length number * of subpackages. Each subpackage contains a PCI record setting. * There are several different type of record settings, of different * lengths, but all elements of all settings are Integers. */ {{"_HPX", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (var Ints) */ PACKAGE_INFO (ACPI_PTYPE2_MIN, ACPI_RTYPE_INTEGER, 5,0,0,0), {{"_HRV", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_IFT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */ {{"_INI", METHOD_0ARGS, METHOD_NO_RETURN_VALUE}}, {{"_IRC", METHOD_0ARGS, METHOD_NO_RETURN_VALUE}}, {{"_LCK", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_LID", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_LPD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int(rev), n Pkg (2 Int) */ PACKAGE_INFO (ACPI_PTYPE2_REV_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0), {{"_LPI", METHOD_0ARGS, /* ACPI 6.0 */ METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (3 Int, n Pkg (10 Int/Buf) */ PACKAGE_INFO (ACPI_PTYPE2_VAR_VAR, ACPI_RTYPE_INTEGER, 3, ACPI_RTYPE_INTEGER | ACPI_RTYPE_BUFFER | ACPI_RTYPE_STRING, 10,0), {{"_LSI", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3,0,0,0), {{"_LSR", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 1, ACPI_RTYPE_BUFFER, 1,0), {{"_LSW", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_BUFFER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_MAT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_MBM", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (8 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 8,0,0,0), {{"_MLS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (1 Str/1 Buf) */ PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_STRING, 1, ACPI_RTYPE_BUFFER, 1,0), {{"_MSG", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_MSM", METHOD_4ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_MTL", METHOD_0ARGS, /* ACPI 6.0 */ METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_NBS", METHOD_0ARGS, /* ACPI 6.3 */ METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_NCH", METHOD_0ARGS, /* ACPI 6.3 */ METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_NIC", METHOD_0ARGS, /* ACPI 6.3 */ METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_NIG", METHOD_0ARGS, /* ACPI 6.3 */ METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_NIH", METHOD_1ARGS (ACPI_TYPE_BUFFER), /* ACPI 6.3 */ METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_NTT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_OFF", METHOD_0ARGS, METHOD_NO_RETURN_VALUE}}, {{"_ON_", METHOD_0ARGS, METHOD_NO_RETURN_VALUE}}, {{"_OS_", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_STRING)}}, {{"_OSC", METHOD_4ARGS (ACPI_TYPE_BUFFER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_BUFFER), METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_OST", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_BUFFER), METHOD_NO_RETURN_VALUE}}, {{"_PAI", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_PCL", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_PCT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0,0,0), {{"_PDC", METHOD_1ARGS (ACPI_TYPE_BUFFER), METHOD_NO_RETURN_VALUE}}, {{"_PDL", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_PIC", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_PIF", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (3 Int),(3 Str) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 3, ACPI_RTYPE_STRING, 3,0), {{"_PLD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Bufs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_BUFFER, 0,0,0,0), {{"_PMC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (11 Int),(3 Str) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 11, ACPI_RTYPE_STRING, 3,0), {{"_PMD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_PMM", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_PPC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_PPE", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See dig64 spec */ {{"_PR0", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_PR1", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_PR2", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_PR3", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_PRE", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_PRL", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_PRR", METHOD_0ARGS, /* ACPI 6.0 */ METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Ref) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_REFERENCE, 1,0,0,0), {{"_PRS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, /* * For _PRT, many BIOSs reverse the 3rd and 4th Package elements (Source * and SourceIndex). This bug is so prevalent that there is code in the * ACPICA Resource Manager to detect this and switch them back. For now, * do not allow and issue a warning. To allow this and eliminate the * warning, add the ACPI_RTYPE_REFERENCE type to the 4th element (index 3) * in the statement below. */ {{"_PRT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (4): Int,Int,Int/Ref,Int */ PACKAGE_INFO (ACPI_PTYPE2_FIXED, 4, ACPI_RTYPE_INTEGER, ACPI_RTYPE_INTEGER, ACPI_RTYPE_INTEGER | ACPI_RTYPE_REFERENCE, ACPI_RTYPE_INTEGER), {{"_PRW", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each: Pkg/Int,Int,[Variable-length Refs] (Pkg is Ref/Int) */ PACKAGE_INFO (ACPI_PTYPE1_OPTION, 2, ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE, ACPI_RTYPE_INTEGER, ACPI_RTYPE_REFERENCE, 0), {{"_PS0", METHOD_0ARGS, METHOD_NO_RETURN_VALUE}}, {{"_PS1", METHOD_0ARGS, METHOD_NO_RETURN_VALUE}}, {{"_PS2", METHOD_0ARGS, METHOD_NO_RETURN_VALUE}}, {{"_PS3", METHOD_0ARGS, METHOD_NO_RETURN_VALUE}}, {{"_PSC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_PSD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (5 Int) with count */ PACKAGE_INFO (ACPI_PTYPE2_COUNT, ACPI_RTYPE_INTEGER, 0,0,0,0), {{"_PSE", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_PSL", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_PSR", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_PSS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each (6 Int) */ PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 6,0,0,0), {{"_PSV", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_PSW", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_PTC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Buf) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER, 2,0,0,0), {{"_PTP", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_PTS", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_PUR", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0), {{"_PXM", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_RDI", METHOD_0ARGS, /* ACPI 6.0 */ METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (1 Int, n Pkg (m Ref)) */ PACKAGE_INFO (ACPI_PTYPE2_VAR_VAR, ACPI_RTYPE_INTEGER, 1, ACPI_RTYPE_REFERENCE,0,0), {{"_REG", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_REV", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_RMV", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_ROM", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_RST", METHOD_0ARGS, /* ACPI 6.0 */ METHOD_NO_RETURN_VALUE}}, {{"_RTV", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* * For _S0_ through _S5_, the ACPI spec defines a return Package * containing 1 Integer, but most DSDTs have it wrong - 2,3, or 4 integers. * Allow this by making the objects "Variable-length length", but all elements * must be Integers. */ {{"_S0_", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), {{"_S1_", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), {{"_S2_", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), {{"_S3_", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), {{"_S4_", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), {{"_S5_", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_INTEGER, 1,0,0,0), {{"_S1D", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_S2D", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_S3D", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_S4D", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_S0W", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_S1W", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_S2W", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_S3W", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_S4W", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_SBA", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), {{"_SBI", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (1 Int, 1 Buf) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 1, ACPI_RTYPE_BUFFER,1,0), {{"_SBR", METHOD_3ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2, ACPI_RTYPE_BUFFER | ACPI_RTYPE_INTEGER, 1,0), {{"_SBS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_SBT", METHOD_4ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_ANY), METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (2 Int, 1 Buf | Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2, ACPI_RTYPE_BUFFER | ACPI_RTYPE_INTEGER, 1,0), {{"_SBW", METHOD_5ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER, ACPI_TYPE_ANY), METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_BUFFER | ACPI_RTYPE_INTEGER, 1, 0,0,0), {{"_SCP", METHOD_1ARGS (ACPI_TYPE_INTEGER) | ARG_COUNT_IS_MINIMUM, METHOD_NO_RETURN_VALUE}}, /* Acpi 1.0 allowed 1 integer arg. Acpi 3.0 expanded to 3 args. Allow both. */ {{"_SDD", METHOD_1ARGS (ACPI_TYPE_BUFFER), METHOD_NO_RETURN_VALUE}}, {{"_SEG", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_SHL", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_SLI", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_SPD", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_SRS", METHOD_1ARGS (ACPI_TYPE_BUFFER), METHOD_NO_RETURN_VALUE}}, {{"_SRT", METHOD_1ARGS (ACPI_TYPE_BUFFER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_SRV", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* See IPMI spec */ {{"_SST", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_STA", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_STM", METHOD_3ARGS (ACPI_TYPE_BUFFER, ACPI_TYPE_BUFFER, ACPI_TYPE_BUFFER), METHOD_NO_RETURN_VALUE}}, {{"_STP", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_STR", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_STV", METHOD_2ARGS (ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_SUB", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_STRING)}}, {{"_SUN", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_SWS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TC1", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TC2", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TDL", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TFP", METHOD_0ARGS, /* ACPI 6.0 */ METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TIP", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TIV", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TMP", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TPC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TPT", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_TRT", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 2 Ref/6 Int */ PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_REFERENCE, 2, ACPI_RTYPE_INTEGER, 6, 0), {{"_TSD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int with count */ PACKAGE_INFO (ACPI_PTYPE2_COUNT,ACPI_RTYPE_INTEGER, 5,0,0,0), {{"_TSN", METHOD_0ARGS, /* ACPI 6.0 */ METHOD_RETURNS (ACPI_RTYPE_REFERENCE)}}, {{"_TSP", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TSS", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Pkgs) each 5 Int */ PACKAGE_INFO (ACPI_PTYPE2, ACPI_RTYPE_INTEGER, 5,0,0,0), {{"_TST", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_TTS", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_NO_RETURN_VALUE}}, {{"_TZD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Variable-length (Refs) */ PACKAGE_INFO (ACPI_PTYPE1_VAR, ACPI_RTYPE_REFERENCE, 0,0,0,0), {{"_TZM", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_REFERENCE)}}, {{"_TZP", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_UID", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING)}}, {{"_UPC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_PACKAGE)}}, /* Fixed-length (4 Int) */ PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 4,0,0,0), {{"_UPD", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_UPP", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, {{"_VPO", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */ {{"_WAK", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_NONE | ACPI_RTYPE_INTEGER | ACPI_RTYPE_PACKAGE)}}, PACKAGE_INFO (ACPI_PTYPE1_FIXED, ACPI_RTYPE_INTEGER, 2,0,0,0), /* Fixed-length (2 Int), but is optional */ /* _WDG/_WED are MS extensions defined by "Windows Instrumentation" */ {{"_WDG", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_BUFFER)}}, {{"_WED", METHOD_1ARGS (ACPI_TYPE_INTEGER), METHOD_RETURNS (ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER)}}, {{"_WPC", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 6.1 */ {{"_WPP", METHOD_0ARGS, METHOD_RETURNS (ACPI_RTYPE_INTEGER)}}, /* ACPI 6.1 */ PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */ }; #else extern const ACPI_PREDEFINED_INFO AcpiGbl_PredefinedMethods[]; #endif #if (defined ACPI_CREATE_RESOURCE_TABLE && defined ACPI_APPLICATION) /****************************************************************************** * * Predefined names for use in Resource Descriptors. These names do not * appear in the global Predefined Name table (since these names never * appear in actual AML byte code, only in the original ASL) * * Note: Used by iASL compiler and AcpiHelp utility only. * *****************************************************************************/ const ACPI_PREDEFINED_INFO AcpiGbl_ResourceNames[] = { {{"_ADR", WIDTH_16 | WIDTH_64, 0}}, {{"_ALN", WIDTH_8 | WIDTH_16 | WIDTH_32, 0}}, {{"_ASI", WIDTH_8, 0}}, {{"_ASZ", WIDTH_8, 0}}, {{"_ATT", WIDTH_64, 0}}, {{"_BAS", WIDTH_16 | WIDTH_32, 0}}, {{"_BM_", WIDTH_1, 0}}, {{"_DBT", WIDTH_16, 0}}, /* Acpi 5.0 */ {{"_DEC", WIDTH_1, 0}}, {{"_DMA", WIDTH_8, 0}}, {{"_DPL", WIDTH_1, 0}}, /* Acpi 5.0 */ {{"_DRS", WIDTH_16, 0}}, /* Acpi 5.0 */ {{"_END", WIDTH_1, 0}}, /* Acpi 5.0 */ {{"_FLC", WIDTH_2, 0}}, /* Acpi 5.0 */ {{"_GRA", WIDTH_ADDRESS, 0}}, {{"_HE_", WIDTH_1, 0}}, {{"_INT", WIDTH_16 | WIDTH_32, 0}}, {{"_IOR", WIDTH_2, 0}}, /* Acpi 5.0 */ {{"_LEN", WIDTH_8 | WIDTH_ADDRESS, 0}}, {{"_LIN", WIDTH_8, 0}}, /* Acpi 5.0 */ {{"_LL_", WIDTH_1, 0}}, {{"_MAF", WIDTH_1, 0}}, {{"_MAX", WIDTH_ADDRESS, 0}}, {{"_MEM", WIDTH_2, 0}}, {{"_MIF", WIDTH_1, 0}}, {{"_MIN", WIDTH_ADDRESS, 0}}, {{"_MOD", WIDTH_1, 0}}, /* Acpi 5.0 */ {{"_MTP", WIDTH_2, 0}}, {{"_PAR", WIDTH_8, 0}}, /* Acpi 5.0 */ {{"_PHA", WIDTH_1, 0}}, /* Acpi 5.0 */ {{"_PIN", WIDTH_16, 0}}, /* Acpi 5.0 */ {{"_PPI", WIDTH_8, 0}}, /* Acpi 5.0 */ {{"_POL", WIDTH_1 | WIDTH_2, 0}}, /* Acpi 5.0 */ {{"_RBO", WIDTH_8, 0}}, {{"_RBW", WIDTH_8, 0}}, {{"_RNG", WIDTH_1, 0}}, {{"_RT_", WIDTH_8, 0}}, /* Acpi 3.0 */ {{"_RW_", WIDTH_1, 0}}, {{"_RXL", WIDTH_16, 0}}, /* Acpi 5.0 */ {{"_SHR", WIDTH_2, 0}}, {{"_SIZ", WIDTH_2, 0}}, {{"_SLV", WIDTH_1, 0}}, /* Acpi 5.0 */ {{"_SPE", WIDTH_32, 0}}, /* Acpi 5.0 */ {{"_STB", WIDTH_2, 0}}, /* Acpi 5.0 */ {{"_TRA", WIDTH_ADDRESS, 0}}, {{"_TRS", WIDTH_1, 0}}, {{"_TSF", WIDTH_8, 0}}, /* Acpi 3.0 */ {{"_TTP", WIDTH_1, 0}}, {{"_TXL", WIDTH_16, 0}}, /* Acpi 5.0 */ {{"_TYP", WIDTH_2 | WIDTH_16, 0}}, {{"_VEN", VARIABLE_DATA, 0}}, /* Acpi 5.0 */ PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */ }; const ACPI_PREDEFINED_INFO AcpiGbl_ScopeNames[] = { {{"_GPE", 0, 0}}, {{"_PR_", 0, 0}}, {{"_SB_", 0, 0}}, {{"_SI_", 0, 0}}, {{"_TZ_", 0, 0}}, PACKAGE_INFO (0,0,0,0,0,0) /* Table terminator */ }; #else extern const ACPI_PREDEFINED_INFO AcpiGbl_ResourceNames[]; #endif #endif acpica-unix-20250404/source/include/actypes.h0000775000175000017500000014255014773714133020315 0ustar ivanhuivanhu/****************************************************************************** * * Name: actypes.h - Common data types for the entire ACPI subsystem * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACTYPES_H__ #define __ACTYPES_H__ /* acpisrc:StructDefs -- for acpisrc conversion */ /* * ACPI_MACHINE_WIDTH must be specified in an OS- or compiler-dependent * header and must be either 32 or 64. 16-bit ACPICA is no longer * supported, as of 12/2006. */ #ifndef ACPI_MACHINE_WIDTH #error ACPI_MACHINE_WIDTH not defined #endif /* * Data type ranges * Note: These macros are designed to be compiler independent as well as * working around problems that some 32-bit compilers have with 64-bit * constants. */ #define ACPI_UINT8_MAX (UINT8) (~((UINT8) 0)) /* 0xFF */ #define ACPI_UINT16_MAX (UINT16)(~((UINT16) 0)) /* 0xFFFF */ #define ACPI_UINT32_MAX (UINT32)(~((UINT32) 0)) /* 0xFFFFFFFF */ #define ACPI_UINT64_MAX (UINT64)(~((UINT64) 0)) /* 0xFFFFFFFFFFFFFFFF */ #define ACPI_ASCII_MAX 0x7F /* * Architecture-specific ACPICA Subsystem Data Types * * The goal of these types is to provide source code portability across * 16-bit, 32-bit, and 64-bit targets. * * 1) The following types are of fixed size for all targets (16/32/64): * * BOOLEAN Logical boolean * * UINT8 8-bit (1 byte) unsigned value * UINT16 16-bit (2 byte) unsigned value * UINT32 32-bit (4 byte) unsigned value * UINT64 64-bit (8 byte) unsigned value * * INT16 16-bit (2 byte) signed value * INT32 32-bit (4 byte) signed value * INT64 64-bit (8 byte) signed value * * COMPILER_DEPENDENT_UINT64/INT64 - These types are defined in the * compiler-dependent header(s) and were introduced because there is no * common 64-bit integer type across the various compilation models, as * shown in the table below. * * Datatype LP64 ILP64 LLP64 ILP32 LP32 16bit * char 8 8 8 8 8 8 * short 16 16 16 16 16 16 * _int32 32 * int 32 64 32 32 16 16 * long 64 64 32 32 32 32 * long long 64 64 * pointer 64 64 64 32 32 32 * * Note: ILP64 and LP32 are currently not supported. * * * 2) These types represent the native word size of the target mode of the * processor, and may be 16-bit, 32-bit, or 64-bit as required. They are * usually used for memory allocation, efficient loop counters, and array * indexes. The types are similar to the size_t type in the C library and * are required because there is no C type that consistently represents the * native data width. ACPI_SIZE is needed because there is no guarantee * that a kernel-level C library is present. * * ACPI_SIZE 16/32/64-bit unsigned value * ACPI_NATIVE_INT 16/32/64-bit signed value */ /******************************************************************************* * * Common types for all compilers, all targets * ******************************************************************************/ #ifndef ACPI_USE_SYSTEM_INTTYPES typedef unsigned char BOOLEAN; typedef unsigned char UINT8; typedef unsigned short UINT16; typedef short INT16; typedef COMPILER_DEPENDENT_UINT64 UINT64; typedef COMPILER_DEPENDENT_INT64 INT64; #endif /* ACPI_USE_SYSTEM_INTTYPES */ /* * Value returned by AcpiOsGetThreadId. There is no standard "thread_id" * across operating systems or even the various UNIX systems. Since ACPICA * only needs the thread ID as a unique thread identifier, we use a UINT64 * as the only common data type - it will accommodate any type of pointer or * any type of integer. It is up to the host-dependent OSL to cast the * native thread ID type to a UINT64 (in AcpiOsGetThreadId). */ #define ACPI_THREAD_ID UINT64 /******************************************************************************* * * Types specific to 64-bit targets * ******************************************************************************/ #if ACPI_MACHINE_WIDTH == 64 #ifndef ACPI_USE_SYSTEM_INTTYPES typedef unsigned int UINT32; typedef int INT32; #endif /* ACPI_USE_SYSTEM_INTTYPES */ typedef INT64 ACPI_NATIVE_INT; typedef UINT64 ACPI_SIZE; typedef UINT64 ACPI_IO_ADDRESS; typedef UINT64 ACPI_PHYSICAL_ADDRESS; #define ACPI_MAX_PTR ACPI_UINT64_MAX #define ACPI_SIZE_MAX ACPI_UINT64_MAX #define ACPI_USE_NATIVE_DIVIDE /* Has native 64-bit integer support */ #define ACPI_USE_NATIVE_MATH64 /* Has native 64-bit integer support */ /* * In the case of the Itanium Processor Family (IPF), the hardware does not * support misaligned memory transfers. Set the MISALIGNMENT_NOT_SUPPORTED * flag to indicate that special precautions must be taken to avoid alignment * faults. (IA64 or ia64 is currently used by existing compilers to indicate * IPF.) * * Note: EM64T and other X86-64 processors support misaligned transfers, * so there is no need to define this flag. */ #if defined (__IA64__) || defined (__ia64__) #define ACPI_MISALIGNMENT_NOT_SUPPORTED #endif /******************************************************************************* * * Types specific to 32-bit targets * ******************************************************************************/ #elif ACPI_MACHINE_WIDTH == 32 #ifndef ACPI_USE_SYSTEM_INTTYPES typedef unsigned int UINT32; typedef int INT32; #endif /* ACPI_USE_SYSTEM_INTTYPES */ typedef INT32 ACPI_NATIVE_INT; typedef UINT32 ACPI_SIZE; #ifdef ACPI_32BIT_PHYSICAL_ADDRESS /* * OSPMs can define this to shrink the size of the structures for 32-bit * none PAE environment. ASL compiler may always define this to generate * 32-bit OSPM compliant tables. */ typedef UINT32 ACPI_IO_ADDRESS; typedef UINT32 ACPI_PHYSICAL_ADDRESS; #else /* ACPI_32BIT_PHYSICAL_ADDRESS */ /* * It is reported that, after some calculations, the physical addresses can * wrap over the 32-bit boundary on 32-bit PAE environment. * https://bugzilla.kernel.org/show_bug.cgi?id=87971 */ typedef UINT64 ACPI_IO_ADDRESS; typedef UINT64 ACPI_PHYSICAL_ADDRESS; #endif /* ACPI_32BIT_PHYSICAL_ADDRESS */ #define ACPI_MAX_PTR ACPI_UINT32_MAX #define ACPI_SIZE_MAX ACPI_UINT32_MAX #else /* ACPI_MACHINE_WIDTH must be either 64 or 32 */ #error unknown ACPI_MACHINE_WIDTH #endif /******************************************************************************* * * OS-dependent types * * If the defaults below are not appropriate for the host system, they can * be defined in the OS-specific header, and this will take precedence. * ******************************************************************************/ /* Flags for AcpiOsAcquireLock/AcpiOsReleaseLock */ #ifndef ACPI_CPU_FLAGS #define ACPI_CPU_FLAGS ACPI_SIZE #endif /* Object returned from AcpiOsCreateCache */ #ifndef ACPI_CACHE_T #ifdef ACPI_USE_LOCAL_CACHE #define ACPI_CACHE_T ACPI_MEMORY_LIST #else #define ACPI_CACHE_T void * #endif #endif /* * Synchronization objects - Mutexes, Semaphores, and SpinLocks */ #if (ACPI_MUTEX_TYPE == ACPI_BINARY_SEMAPHORE) /* * These macros are used if the host OS does not support a mutex object. * Map the OSL Mutex interfaces to binary semaphores. */ #define ACPI_MUTEX ACPI_SEMAPHORE #define AcpiOsCreateMutex(OutHandle) AcpiOsCreateSemaphore (1, 1, OutHandle) #define AcpiOsDeleteMutex(Handle) (void) AcpiOsDeleteSemaphore (Handle) #define AcpiOsAcquireMutex(Handle,Time) AcpiOsWaitSemaphore (Handle, 1, Time) #define AcpiOsReleaseMutex(Handle) (void) AcpiOsSignalSemaphore (Handle, 1) #endif /* Configurable types for synchronization objects */ #ifndef ACPI_SPINLOCK #define ACPI_SPINLOCK void * #endif #ifndef ACPI_SEMAPHORE #define ACPI_SEMAPHORE void * #endif #ifndef ACPI_MUTEX #define ACPI_MUTEX void * #endif /******************************************************************************* * * Compiler-dependent types * * If the defaults below are not appropriate for the host compiler, they can * be defined in the compiler-specific header, and this will take precedence. * ******************************************************************************/ /* Use C99 uintptr_t for pointer casting if available, "void *" otherwise */ #ifndef ACPI_UINTPTR_T #define ACPI_UINTPTR_T void * #endif /* * ACPI_PRINTF_LIKE is used to tag functions as "printf-like" because * some compilers can catch printf format string problems */ #ifndef ACPI_PRINTF_LIKE #define ACPI_PRINTF_LIKE(c) #endif /* * Some compilers complain about unused variables. Sometimes we don't want * to use all the variables (for example, _AcpiModuleName). This allows us * to tell the compiler in a per-variable manner that a variable * is unused */ #ifndef ACPI_UNUSED_VAR #define ACPI_UNUSED_VAR #endif /* * All ACPICA external functions that are available to the rest of the * kernel are tagged with these macros which can be defined as appropriate * for the host. * * Notes: * ACPI_EXPORT_SYMBOL_INIT is used for initialization and termination * interfaces that may need special processing. * ACPI_EXPORT_SYMBOL is used for all other public external functions. */ #ifndef ACPI_EXPORT_SYMBOL_INIT #define ACPI_EXPORT_SYMBOL_INIT(Symbol) #endif #ifndef ACPI_EXPORT_SYMBOL #define ACPI_EXPORT_SYMBOL(Symbol) #endif /* * Compiler/Clibrary-dependent debug initialization. Used for ACPICA * utilities only. */ #ifndef ACPI_DEBUG_INITIALIZE #define ACPI_DEBUG_INITIALIZE() #endif /******************************************************************************* * * Configuration * ******************************************************************************/ #ifdef ACPI_NO_MEM_ALLOCATIONS #define ACPI_ALLOCATE(a) NULL #define ACPI_ALLOCATE_ZEROED(a) NULL #define ACPI_FREE(a) #define ACPI_MEM_TRACKING(a) #else /* ACPI_NO_MEM_ALLOCATIONS */ #ifdef ACPI_DBG_TRACK_ALLOCATIONS /* * Memory allocation tracking (used by AcpiExec to detect memory leaks) */ #define ACPI_MEM_PARAMETERS _COMPONENT, _AcpiModuleName, __LINE__ #define ACPI_ALLOCATE(a) AcpiUtAllocateAndTrack ((ACPI_SIZE) (a), ACPI_MEM_PARAMETERS) #define ACPI_ALLOCATE_ZEROED(a) AcpiUtAllocateZeroedAndTrack ((ACPI_SIZE) (a), ACPI_MEM_PARAMETERS) #define ACPI_FREE(a) AcpiUtFreeAndTrack (a, ACPI_MEM_PARAMETERS) #define ACPI_MEM_TRACKING(a) a #else /* * Normal memory allocation directly via the OS services layer */ #define ACPI_ALLOCATE(a) AcpiOsAllocate ((ACPI_SIZE) (a)) #define ACPI_ALLOCATE_ZEROED(a) AcpiOsAllocateZeroed ((ACPI_SIZE) (a)) #define ACPI_FREE(a) AcpiOsFree (a) #define ACPI_MEM_TRACKING(a) #endif /* ACPI_DBG_TRACK_ALLOCATIONS */ #endif /* ACPI_NO_MEM_ALLOCATIONS */ /****************************************************************************** * * ACPI Specification constants (Do not change unless the specification * changes) * *****************************************************************************/ /* Number of distinct FADT-based GPE register blocks (GPE0 and GPE1) */ #define ACPI_MAX_GPE_BLOCKS 2 /* Default ACPI register widths */ #define ACPI_GPE_REGISTER_WIDTH 8 #define ACPI_PM1_REGISTER_WIDTH 16 #define ACPI_PM2_REGISTER_WIDTH 8 #define ACPI_PM_TIMER_WIDTH 32 #define ACPI_RESET_REGISTER_WIDTH 8 /* Names within the namespace are 4 bytes long */ #define ACPI_NAMESEG_SIZE 4 /* Fixed by ACPI spec */ #define ACPI_PATH_SEGMENT_LENGTH 5 /* 4 chars for name + 1 char for separator */ #define ACPI_PATH_SEPARATOR '.' /* Sizes for ACPI table headers */ #define ACPI_OEM_ID_SIZE 6 #define ACPI_OEM_TABLE_ID_SIZE 8 /* ACPI/PNP hardware IDs */ #define PCI_ROOT_HID_STRING "PNP0A03" #define PCI_EXPRESS_ROOT_HID_STRING "PNP0A08" /* PM Timer ticks per second (HZ) */ #define ACPI_PM_TIMER_FREQUENCY 3579545 /******************************************************************************* * * Independent types * ******************************************************************************/ /* Logical defines and NULL */ #ifdef FALSE #undef FALSE #endif #define FALSE (1 == 0) #ifdef TRUE #undef TRUE #endif #define TRUE (1 == 1) #ifndef NULL #define NULL (void *) 0 #endif /* * Miscellaneous types */ typedef UINT32 ACPI_STATUS; /* All ACPI Exceptions */ typedef UINT32 ACPI_NAME; /* 4-byte ACPI name */ typedef char * ACPI_STRING; /* Null terminated ASCII string */ typedef void * ACPI_HANDLE; /* Actually a ptr to a NS Node */ /* Time constants for timer calculations */ #define ACPI_MSEC_PER_SEC 1000L #define ACPI_USEC_PER_MSEC 1000L #define ACPI_USEC_PER_SEC 1000000L #define ACPI_100NSEC_PER_USEC 10L #define ACPI_100NSEC_PER_MSEC 10000L #define ACPI_100NSEC_PER_SEC 10000000L #define ACPI_NSEC_PER_USEC 1000L #define ACPI_NSEC_PER_MSEC 1000000L #define ACPI_NSEC_PER_SEC 1000000000L #define ACPI_TIME_AFTER(a, b) ((INT64)((b) - (a)) < 0) /* Owner IDs are used to track namespace nodes for selective deletion */ typedef UINT16 ACPI_OWNER_ID; #define ACPI_OWNER_ID_MAX 0xFFF /* 4095 possible owner IDs */ #define ACPI_INTEGER_BIT_SIZE 64 #define ACPI_MAX_DECIMAL_DIGITS 20 /* 2^64 = 18,446,744,073,709,551,616 */ #define ACPI_MAX64_DECIMAL_DIGITS 20 #define ACPI_MAX32_DECIMAL_DIGITS 10 #define ACPI_MAX16_DECIMAL_DIGITS 5 #define ACPI_MAX8_DECIMAL_DIGITS 3 /* * Constants with special meanings */ #define ACPI_ROOT_OBJECT ((ACPI_HANDLE) ACPI_TO_POINTER (ACPI_MAX_PTR)) #define ACPI_WAIT_FOREVER 0xFFFF /* UINT16, as per ACPI spec */ #define ACPI_DO_NOT_WAIT 0 /* * Obsolete: Acpi integer width. In ACPI version 1 (1996), integers are * 32 bits. In ACPI version 2 (2000) and later, integers are max 64 bits. * Note that this pertains to the ACPI integer type only, not to other * integers used in the implementation of the ACPICA subsystem. * * 01/2010: This type is obsolete and has been removed from the entire ACPICA * code base. It remains here for compatibility with device drivers that use * the type. However, it will be removed in the future. */ typedef UINT64 ACPI_INTEGER; #define ACPI_INTEGER_MAX ACPI_UINT64_MAX /******************************************************************************* * * Commonly used macros * ******************************************************************************/ /* Data manipulation */ #define ACPI_LOBYTE(Integer) ((UINT8) (UINT16)(Integer)) #define ACPI_HIBYTE(Integer) ((UINT8) (((UINT16)(Integer)) >> 8)) #define ACPI_LOWORD(Integer) ((UINT16) (UINT32)(Integer)) #define ACPI_HIWORD(Integer) ((UINT16)(((UINT32)(Integer)) >> 16)) #define ACPI_LODWORD(Integer64) ((UINT32) (UINT64)(Integer64)) #define ACPI_HIDWORD(Integer64) ((UINT32)(((UINT64)(Integer64)) >> 32)) #define ACPI_SET_BIT(target,bit) ((target) |= (bit)) #define ACPI_CLEAR_BIT(target,bit) ((target) &= ~(bit)) #define ACPI_MIN(a,b) (((a)<(b))?(a):(b)) #define ACPI_MAX(a,b) (((a)>(b))?(a):(b)) /* Size calculation */ #define ACPI_ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) /* Pointer manipulation */ #define ACPI_CAST_PTR(t, p) ((t *) (ACPI_UINTPTR_T) (p)) #define ACPI_CAST_INDIRECT_PTR(t, p) ((t **) (ACPI_UINTPTR_T) (p)) #define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) + (ACPI_SIZE)(b))) #define ACPI_SUB_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) - (ACPI_SIZE)(b))) #define ACPI_PTR_DIFF(a, b) ((ACPI_SIZE) (ACPI_CAST_PTR (UINT8, (a)) - ACPI_CAST_PTR (UINT8, (b)))) /* Pointer/Integer type conversions */ #define ACPI_TO_POINTER(i) ACPI_CAST_PTR (void, (ACPI_SIZE) (i)) #ifndef ACPI_TO_INTEGER #define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) 0) #endif #ifndef ACPI_OFFSET #define ACPI_OFFSET(d, f) ACPI_PTR_DIFF (&(((d *) 0)->f), (void *) 0) #endif #define ACPI_PTR_TO_PHYSADDR(i) ACPI_TO_INTEGER(i) /* Optimizations for 4-character (32-bit) ACPI_NAME manipulation */ #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED #define ACPI_COMPARE_NAMESEG(a,b) (*ACPI_CAST_PTR (UINT32, (a)) == *ACPI_CAST_PTR (UINT32, (b))) #define ACPI_COPY_NAMESEG(dest,src) (*ACPI_CAST_PTR (UINT32, (dest)) = *ACPI_CAST_PTR (UINT32, (src))) #else #define ACPI_COMPARE_NAMESEG(a,b) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (char, (b)), ACPI_NAMESEG_SIZE)) #define ACPI_COPY_NAMESEG(dest,src) (memcpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE)) #endif /* Support for the special RSDP signature (8 characters) */ #define ACPI_VALIDATE_RSDP_SIG(a) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_SIG_RSDP, (sizeof(a) < 8) ? ACPI_NAMESEG_SIZE : 8)) #define ACPI_MAKE_RSDP_SIG(dest) (memcpy (ACPI_CAST_PTR (char, (dest)), ACPI_SIG_RSDP, 8)) /* Support for OEMx signature (x can be any character) */ #define ACPI_IS_OEM_SIG(a) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_OEM_NAME, 3) &&\ strnlen (a, ACPI_NAMESEG_SIZE) == ACPI_NAMESEG_SIZE) /* * Algorithm to obtain access bit or byte width. * Can be used with AccessSize field of ACPI_GENERIC_ADDRESS and * ACPI_RESOURCE_GENERIC_REGISTER. */ #define ACPI_ACCESS_BIT_SHIFT 2 #define ACPI_ACCESS_BYTE_SHIFT -1 #define ACPI_ACCESS_BIT_MAX (31 - ACPI_ACCESS_BIT_SHIFT) #define ACPI_ACCESS_BYTE_MAX (31 - ACPI_ACCESS_BYTE_SHIFT) #define ACPI_ACCESS_BIT_DEFAULT (8 - ACPI_ACCESS_BIT_SHIFT) #define ACPI_ACCESS_BYTE_DEFAULT (8 - ACPI_ACCESS_BYTE_SHIFT) #define ACPI_ACCESS_BIT_WIDTH(size) (1 << ((size) + ACPI_ACCESS_BIT_SHIFT)) #define ACPI_ACCESS_BYTE_WIDTH(size) (1 << ((size) + ACPI_ACCESS_BYTE_SHIFT)) /******************************************************************************* * * Miscellaneous constants * ******************************************************************************/ /* * Initialization sequence options */ #define ACPI_FULL_INITIALIZATION 0x0000 #define ACPI_NO_FACS_INIT 0x0001 #define ACPI_NO_ACPI_ENABLE 0x0002 #define ACPI_NO_HARDWARE_INIT 0x0004 #define ACPI_NO_EVENT_INIT 0x0008 #define ACPI_NO_HANDLER_INIT 0x0010 #define ACPI_NO_OBJECT_INIT 0x0020 #define ACPI_NO_DEVICE_INIT 0x0040 #define ACPI_NO_ADDRESS_SPACE_INIT 0x0080 /* * Initialization state */ #define ACPI_SUBSYSTEM_INITIALIZE 0x01 #define ACPI_INITIALIZED_OK 0x02 /* * Power state values */ #define ACPI_STATE_UNKNOWN (UINT8) 0xFF #define ACPI_STATE_S0 (UINT8) 0 #define ACPI_STATE_S1 (UINT8) 1 #define ACPI_STATE_S2 (UINT8) 2 #define ACPI_STATE_S3 (UINT8) 3 #define ACPI_STATE_S4 (UINT8) 4 #define ACPI_STATE_S5 (UINT8) 5 #define ACPI_S_STATES_MAX ACPI_STATE_S5 #define ACPI_S_STATE_COUNT 6 #define ACPI_STATE_D0 (UINT8) 0 #define ACPI_STATE_D1 (UINT8) 1 #define ACPI_STATE_D2 (UINT8) 2 #define ACPI_STATE_D3 (UINT8) 3 #define ACPI_D_STATES_MAX ACPI_STATE_D3 #define ACPI_D_STATE_COUNT 4 #define ACPI_STATE_C0 (UINT8) 0 #define ACPI_STATE_C1 (UINT8) 1 #define ACPI_STATE_C2 (UINT8) 2 #define ACPI_STATE_C3 (UINT8) 3 #define ACPI_C_STATES_MAX ACPI_STATE_C3 #define ACPI_C_STATE_COUNT 4 /* * Sleep type invalid value */ #define ACPI_SLEEP_TYPE_MAX 0x7 #define ACPI_SLEEP_TYPE_INVALID 0xFF /* * Standard notify values */ #define ACPI_NOTIFY_BUS_CHECK (UINT8) 0x00 #define ACPI_NOTIFY_DEVICE_CHECK (UINT8) 0x01 #define ACPI_NOTIFY_DEVICE_WAKE (UINT8) 0x02 #define ACPI_NOTIFY_EJECT_REQUEST (UINT8) 0x03 #define ACPI_NOTIFY_DEVICE_CHECK_LIGHT (UINT8) 0x04 #define ACPI_NOTIFY_FREQUENCY_MISMATCH (UINT8) 0x05 #define ACPI_NOTIFY_BUS_MODE_MISMATCH (UINT8) 0x06 #define ACPI_NOTIFY_POWER_FAULT (UINT8) 0x07 #define ACPI_NOTIFY_CAPABILITIES_CHECK (UINT8) 0x08 #define ACPI_NOTIFY_DEVICE_PLD_CHECK (UINT8) 0x09 #define ACPI_NOTIFY_RESERVED (UINT8) 0x0A #define ACPI_NOTIFY_LOCALITY_UPDATE (UINT8) 0x0B #define ACPI_NOTIFY_SHUTDOWN_REQUEST (UINT8) 0x0C #define ACPI_NOTIFY_AFFINITY_UPDATE (UINT8) 0x0D #define ACPI_NOTIFY_MEMORY_UPDATE (UINT8) 0x0E #define ACPI_NOTIFY_DISCONNECT_RECOVER (UINT8) 0x0F #define ACPI_GENERIC_NOTIFY_MAX 0x0F #define ACPI_SPECIFIC_NOTIFY_MAX 0x84 /* * Types associated with ACPI names and objects. The first group of * values (up to ACPI_TYPE_EXTERNAL_MAX) correspond to the definition * of the ACPI ObjectType() operator (See the ACPI Spec). Therefore, * only add to the first group if the spec changes. * * NOTE: Types must be kept in sync with the global AcpiNsProperties * and AcpiNsTypeNames arrays. */ typedef UINT32 ACPI_OBJECT_TYPE; #define ACPI_TYPE_ANY 0x00 #define ACPI_TYPE_INTEGER 0x01 /* Byte/Word/Dword/Zero/One/Ones */ #define ACPI_TYPE_STRING 0x02 #define ACPI_TYPE_BUFFER 0x03 #define ACPI_TYPE_PACKAGE 0x04 /* ByteConst, multiple DataTerm/Constant/SuperName */ #define ACPI_TYPE_FIELD_UNIT 0x05 #define ACPI_TYPE_DEVICE 0x06 /* Name, multiple Node */ #define ACPI_TYPE_EVENT 0x07 #define ACPI_TYPE_METHOD 0x08 /* Name, ByteConst, multiple Code */ #define ACPI_TYPE_MUTEX 0x09 #define ACPI_TYPE_REGION 0x0A #define ACPI_TYPE_POWER 0x0B /* Name,ByteConst,WordConst,multi Node */ #define ACPI_TYPE_PROCESSOR 0x0C /* Name,ByteConst,DWordConst,ByteConst,multi NmO */ #define ACPI_TYPE_THERMAL 0x0D /* Name, multiple Node */ #define ACPI_TYPE_BUFFER_FIELD 0x0E #define ACPI_TYPE_DDB_HANDLE 0x0F #define ACPI_TYPE_DEBUG_OBJECT 0x10 #define ACPI_TYPE_EXTERNAL_MAX 0x10 #define ACPI_NUM_TYPES (ACPI_TYPE_EXTERNAL_MAX + 1) /* * These are object types that do not map directly to the ACPI * ObjectType() operator. They are used for various internal purposes * only. If new predefined ACPI_TYPEs are added (via the ACPI * specification), these internal types must move upwards. (There * is code that depends on these values being contiguous with the * external types above.) */ #define ACPI_TYPE_LOCAL_REGION_FIELD 0x11 #define ACPI_TYPE_LOCAL_BANK_FIELD 0x12 #define ACPI_TYPE_LOCAL_INDEX_FIELD 0x13 #define ACPI_TYPE_LOCAL_REFERENCE 0x14 /* Arg#, Local#, Name, Debug, RefOf, Index */ #define ACPI_TYPE_LOCAL_ALIAS 0x15 #define ACPI_TYPE_LOCAL_METHOD_ALIAS 0x16 #define ACPI_TYPE_LOCAL_NOTIFY 0x17 #define ACPI_TYPE_LOCAL_ADDRESS_HANDLER 0x18 #define ACPI_TYPE_LOCAL_RESOURCE 0x19 #define ACPI_TYPE_LOCAL_RESOURCE_FIELD 0x1A #define ACPI_TYPE_LOCAL_SCOPE 0x1B /* 1 Name, multiple ObjectList Nodes */ #define ACPI_TYPE_NS_NODE_MAX 0x1B /* Last typecode used within a NS Node */ #define ACPI_TOTAL_TYPES (ACPI_TYPE_NS_NODE_MAX + 1) /* * These are special object types that never appear in * a Namespace node, only in an object of ACPI_OPERAND_OBJECT */ #define ACPI_TYPE_LOCAL_EXTRA 0x1C #define ACPI_TYPE_LOCAL_DATA 0x1D #define ACPI_TYPE_LOCAL_MAX 0x1D /* All types above here are invalid */ #define ACPI_TYPE_INVALID 0x1E #define ACPI_TYPE_NOT_FOUND 0xFF #define ACPI_NUM_NS_TYPES (ACPI_TYPE_INVALID + 1) /* * All I/O */ #define ACPI_READ 0 #define ACPI_WRITE 1 #define ACPI_IO_MASK 1 /* * Event Types: Fixed & General Purpose */ typedef UINT32 ACPI_EVENT_TYPE; /* * Fixed events */ #define ACPI_EVENT_PMTIMER 0 #define ACPI_EVENT_GLOBAL 1 #define ACPI_EVENT_POWER_BUTTON 2 #define ACPI_EVENT_SLEEP_BUTTON 3 #define ACPI_EVENT_RTC 4 #define ACPI_EVENT_MAX 4 #define ACPI_NUM_FIXED_EVENTS ACPI_EVENT_MAX + 1 /* * Event Status - Per event * ------------- * The encoding of ACPI_EVENT_STATUS is illustrated below. * Note that a set bit (1) indicates the property is TRUE * (e.g. if bit 0 is set then the event is enabled). * +-------------+-+-+-+-+-+-+ * | Bits 31:6 |5|4|3|2|1|0| * +-------------+-+-+-+-+-+-+ * | | | | | | | * | | | | | | +- Enabled? * | | | | | +--- Enabled for wake? * | | | | +----- Status bit set? * | | | +------- Enable bit set? * | | +--------- Has a handler? * | +----------- Masked? * +----------------- */ typedef UINT32 ACPI_EVENT_STATUS; #define ACPI_EVENT_FLAG_DISABLED (ACPI_EVENT_STATUS) 0x00 #define ACPI_EVENT_FLAG_ENABLED (ACPI_EVENT_STATUS) 0x01 #define ACPI_EVENT_FLAG_WAKE_ENABLED (ACPI_EVENT_STATUS) 0x02 #define ACPI_EVENT_FLAG_STATUS_SET (ACPI_EVENT_STATUS) 0x04 #define ACPI_EVENT_FLAG_ENABLE_SET (ACPI_EVENT_STATUS) 0x08 #define ACPI_EVENT_FLAG_HAS_HANDLER (ACPI_EVENT_STATUS) 0x10 #define ACPI_EVENT_FLAG_MASKED (ACPI_EVENT_STATUS) 0x20 #define ACPI_EVENT_FLAG_SET ACPI_EVENT_FLAG_STATUS_SET /* Actions for AcpiSetGpe, AcpiGpeWakeup, AcpiHwLowSetGpe */ #define ACPI_GPE_ENABLE 0 #define ACPI_GPE_DISABLE 1 #define ACPI_GPE_CONDITIONAL_ENABLE 2 /* * GPE info flags - Per GPE * +---+-+-+-+---+ * |7:6|5|4|3|2:0| * +---+-+-+-+---+ * | | | | | * | | | | +-- Type of dispatch:to method, handler, notify, or none * | | | +----- Interrupt type: edge or level triggered * | | +------- Is a Wake GPE * | +--------- Has been enabled automatically at init time * +------------ */ #define ACPI_GPE_DISPATCH_NONE (UINT8) 0x00 #define ACPI_GPE_DISPATCH_METHOD (UINT8) 0x01 #define ACPI_GPE_DISPATCH_HANDLER (UINT8) 0x02 #define ACPI_GPE_DISPATCH_NOTIFY (UINT8) 0x03 #define ACPI_GPE_DISPATCH_RAW_HANDLER (UINT8) 0x04 #define ACPI_GPE_DISPATCH_MASK (UINT8) 0x07 #define ACPI_GPE_DISPATCH_TYPE(flags) ((UINT8) ((flags) & ACPI_GPE_DISPATCH_MASK)) #define ACPI_GPE_LEVEL_TRIGGERED (UINT8) 0x08 #define ACPI_GPE_EDGE_TRIGGERED (UINT8) 0x00 #define ACPI_GPE_XRUPT_TYPE_MASK (UINT8) 0x08 #define ACPI_GPE_CAN_WAKE (UINT8) 0x10 #define ACPI_GPE_AUTO_ENABLED (UINT8) 0x20 #define ACPI_GPE_INITIALIZED (UINT8) 0x40 /* * Flags for GPE and Lock interfaces */ #define ACPI_NOT_ISR 0x1 #define ACPI_ISR 0x0 /* Notify types */ #define ACPI_SYSTEM_NOTIFY 0x1 #define ACPI_DEVICE_NOTIFY 0x2 #define ACPI_ALL_NOTIFY (ACPI_SYSTEM_NOTIFY | ACPI_DEVICE_NOTIFY) #define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3 #define ACPI_NUM_NOTIFY_TYPES 2 #define ACPI_MAX_SYS_NOTIFY 0x7F #define ACPI_MAX_DEVICE_SPECIFIC_NOTIFY 0xBF #define ACPI_SYSTEM_HANDLER_LIST 0 /* Used as index, must be SYSTEM_NOTIFY -1 */ #define ACPI_DEVICE_HANDLER_LIST 1 /* Used as index, must be DEVICE_NOTIFY -1 */ /* Address Space (Operation Region) Types */ typedef UINT8 ACPI_ADR_SPACE_TYPE; #define ACPI_ADR_SPACE_SYSTEM_MEMORY (ACPI_ADR_SPACE_TYPE) 0 #define ACPI_ADR_SPACE_SYSTEM_IO (ACPI_ADR_SPACE_TYPE) 1 #define ACPI_ADR_SPACE_PCI_CONFIG (ACPI_ADR_SPACE_TYPE) 2 #define ACPI_ADR_SPACE_EC (ACPI_ADR_SPACE_TYPE) 3 #define ACPI_ADR_SPACE_SMBUS (ACPI_ADR_SPACE_TYPE) 4 #define ACPI_ADR_SPACE_CMOS (ACPI_ADR_SPACE_TYPE) 5 #define ACPI_ADR_SPACE_PCI_BAR_TARGET (ACPI_ADR_SPACE_TYPE) 6 #define ACPI_ADR_SPACE_IPMI (ACPI_ADR_SPACE_TYPE) 7 #define ACPI_ADR_SPACE_GPIO (ACPI_ADR_SPACE_TYPE) 8 #define ACPI_ADR_SPACE_GSBUS (ACPI_ADR_SPACE_TYPE) 9 #define ACPI_ADR_SPACE_PLATFORM_COMM (ACPI_ADR_SPACE_TYPE) 10 #define ACPI_ADR_SPACE_PLATFORM_RT (ACPI_ADR_SPACE_TYPE) 11 #define ACPI_NUM_PREDEFINED_REGIONS 12 /* * Special Address Spaces * * Note: A Data Table region is a special type of operation region * that has its own AML opcode. However, internally, the AML * interpreter simply creates an operation region with an address * space type of ACPI_ADR_SPACE_DATA_TABLE. */ #define ACPI_ADR_SPACE_DATA_TABLE (ACPI_ADR_SPACE_TYPE) 0x7E /* Internal to ACPICA only */ #define ACPI_ADR_SPACE_FIXED_HARDWARE (ACPI_ADR_SPACE_TYPE) 0x7F /* Values for _REG connection code */ #define ACPI_REG_DISCONNECT 0 #define ACPI_REG_CONNECT 1 /* * BitRegister IDs * * These values are intended to be used by the hardware interfaces * and are mapped to individual bitfields defined within the ACPI * registers. See the AcpiGbl_BitRegisterInfo global table in utglobal.c * for this mapping. */ /* PM1 Status register */ #define ACPI_BITREG_TIMER_STATUS 0x00 #define ACPI_BITREG_BUS_MASTER_STATUS 0x01 #define ACPI_BITREG_GLOBAL_LOCK_STATUS 0x02 #define ACPI_BITREG_POWER_BUTTON_STATUS 0x03 #define ACPI_BITREG_SLEEP_BUTTON_STATUS 0x04 #define ACPI_BITREG_RT_CLOCK_STATUS 0x05 #define ACPI_BITREG_WAKE_STATUS 0x06 #define ACPI_BITREG_PCIEXP_WAKE_STATUS 0x07 /* PM1 Enable register */ #define ACPI_BITREG_TIMER_ENABLE 0x08 #define ACPI_BITREG_GLOBAL_LOCK_ENABLE 0x09 #define ACPI_BITREG_POWER_BUTTON_ENABLE 0x0A #define ACPI_BITREG_SLEEP_BUTTON_ENABLE 0x0B #define ACPI_BITREG_RT_CLOCK_ENABLE 0x0C #define ACPI_BITREG_PCIEXP_WAKE_DISABLE 0x0D /* PM1 Control register */ #define ACPI_BITREG_SCI_ENABLE 0x0E #define ACPI_BITREG_BUS_MASTER_RLD 0x0F #define ACPI_BITREG_GLOBAL_LOCK_RELEASE 0x10 #define ACPI_BITREG_SLEEP_TYPE 0x11 #define ACPI_BITREG_SLEEP_ENABLE 0x12 /* PM2 Control register */ #define ACPI_BITREG_ARB_DISABLE 0x13 #define ACPI_BITREG_MAX 0x13 #define ACPI_NUM_BITREG ACPI_BITREG_MAX + 1 /* Status register values. A 1 clears a status bit. 0 = no effect */ #define ACPI_CLEAR_STATUS 1 /* Enable and Control register values */ #define ACPI_ENABLE_EVENT 1 #define ACPI_DISABLE_EVENT 0 /* Sleep function dispatch */ typedef ACPI_STATUS (*ACPI_SLEEP_FUNCTION) ( UINT8 SleepState); typedef struct acpi_sleep_functions { ACPI_SLEEP_FUNCTION LegacyFunction; ACPI_SLEEP_FUNCTION ExtendedFunction; } ACPI_SLEEP_FUNCTIONS; /* * External ACPI object definition */ /* * Note: Type == ACPI_TYPE_ANY (0) is used to indicate a NULL package * element or an unresolved named reference. */ typedef union acpi_object { ACPI_OBJECT_TYPE Type; /* See definition of AcpiNsType for values */ struct { ACPI_OBJECT_TYPE Type; /* ACPI_TYPE_INTEGER */ UINT64 Value; /* The actual number */ } Integer; struct { ACPI_OBJECT_TYPE Type; /* ACPI_TYPE_STRING */ UINT32 Length; /* # of bytes in string, excluding trailing null */ char *Pointer; /* points to the string value */ } String; struct { ACPI_OBJECT_TYPE Type; /* ACPI_TYPE_BUFFER */ UINT32 Length; /* # of bytes in buffer */ UINT8 *Pointer; /* points to the buffer */ } Buffer; struct { ACPI_OBJECT_TYPE Type; /* ACPI_TYPE_PACKAGE */ UINT32 Count; /* # of elements in package */ union acpi_object *Elements; /* Pointer to an array of ACPI_OBJECTs */ } Package; struct { ACPI_OBJECT_TYPE Type; /* ACPI_TYPE_LOCAL_REFERENCE */ ACPI_OBJECT_TYPE ActualType; /* Type associated with the Handle */ ACPI_HANDLE Handle; /* object reference */ } Reference; struct { ACPI_OBJECT_TYPE Type; /* ACPI_TYPE_PROCESSOR */ UINT32 ProcId; ACPI_IO_ADDRESS PblkAddress; UINT32 PblkLength; } Processor; struct { ACPI_OBJECT_TYPE Type; /* ACPI_TYPE_POWER */ UINT32 SystemLevel; UINT32 ResourceOrder; } PowerResource; } ACPI_OBJECT; /* * List of objects, used as a parameter list for control method evaluation */ typedef struct acpi_object_list { UINT32 Count; ACPI_OBJECT *Pointer; } ACPI_OBJECT_LIST; /* * Miscellaneous common Data Structures used by the interfaces */ #define ACPI_NO_BUFFER 0 #ifdef ACPI_NO_MEM_ALLOCATIONS #define ACPI_ALLOCATE_BUFFER (ACPI_SIZE) (0) #define ACPI_ALLOCATE_LOCAL_BUFFER (ACPI_SIZE) (0) #else /* ACPI_NO_MEM_ALLOCATIONS */ #define ACPI_ALLOCATE_BUFFER (ACPI_SIZE) (-1) /* Let ACPICA allocate buffer */ #define ACPI_ALLOCATE_LOCAL_BUFFER (ACPI_SIZE) (-2) /* For internal use only (enables tracking) */ #endif /* ACPI_NO_MEM_ALLOCATIONS */ typedef struct acpi_buffer { ACPI_SIZE Length; /* Length in bytes of the buffer */ void *Pointer; /* pointer to buffer */ } ACPI_BUFFER; /* * NameType for AcpiGetName */ #define ACPI_FULL_PATHNAME 0 #define ACPI_SINGLE_NAME 1 #define ACPI_FULL_PATHNAME_NO_TRAILING 2 #define ACPI_NAME_TYPE_MAX 2 /* * Predefined Namespace items */ typedef struct acpi_predefined_names { const char *Name; UINT8 Type; char *Val; } ACPI_PREDEFINED_NAMES; /* * Structure and flags for AcpiGetSystemInfo */ #define ACPI_SYS_MODE_UNKNOWN 0x0000 #define ACPI_SYS_MODE_ACPI 0x0001 #define ACPI_SYS_MODE_LEGACY 0x0002 #define ACPI_SYS_MODES_MASK 0x0003 /* * System info returned by AcpiGetSystemInfo() */ typedef struct acpi_system_info { UINT32 AcpiCaVersion; UINT32 Flags; UINT32 TimerResolution; UINT32 Reserved1; UINT32 Reserved2; UINT32 DebugLevel; UINT32 DebugLayer; } ACPI_SYSTEM_INFO; /* * System statistics returned by AcpiGetStatistics() */ typedef struct acpi_statistics { UINT32 SciCount; UINT32 GpeCount; UINT32 FixedEventCount[ACPI_NUM_FIXED_EVENTS]; UINT32 MethodCount; } ACPI_STATISTICS; /* * Types specific to the OS service interfaces */ typedef UINT32 (ACPI_SYSTEM_XFACE *ACPI_OSD_HANDLER) ( void *Context); typedef void (ACPI_SYSTEM_XFACE *ACPI_OSD_EXEC_CALLBACK) ( void *Context); /* * Various handlers and callback procedures */ typedef UINT32 (*ACPI_SCI_HANDLER) ( void *Context); typedef void (*ACPI_GBL_EVENT_HANDLER) ( UINT32 EventType, ACPI_HANDLE Device, UINT32 EventNumber, void *Context); #define ACPI_EVENT_TYPE_GPE 0 #define ACPI_EVENT_TYPE_FIXED 1 typedef UINT32 (*ACPI_EVENT_HANDLER) ( void *Context); typedef UINT32 (*ACPI_GPE_HANDLER) ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, void *Context); typedef void (*ACPI_NOTIFY_HANDLER) ( ACPI_HANDLE Device, UINT32 Value, void *Context); typedef void (*ACPI_OBJECT_HANDLER) ( ACPI_HANDLE Object, void *Data); typedef ACPI_STATUS (*ACPI_INIT_HANDLER) ( ACPI_HANDLE Object, UINT32 Function); #define ACPI_INIT_DEVICE_INI 1 typedef ACPI_STATUS (*ACPI_EXCEPTION_HANDLER) ( ACPI_STATUS AmlStatus, ACPI_NAME Name, UINT16 Opcode, UINT32 AmlOffset, void *Context); /* Table Event handler (Load, LoadTable, etc.) and types */ typedef ACPI_STATUS (*ACPI_TABLE_HANDLER) ( UINT32 Event, void *Table, void *Context); /* Table Event Types */ #define ACPI_TABLE_EVENT_LOAD 0x0 #define ACPI_TABLE_EVENT_UNLOAD 0x1 #define ACPI_TABLE_EVENT_INSTALL 0x2 #define ACPI_TABLE_EVENT_UNINSTALL 0x3 #define ACPI_NUM_TABLE_EVENTS 4 /* Address Spaces (For Operation Regions) */ typedef ACPI_STATUS (*ACPI_ADR_SPACE_HANDLER) ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); #define ACPI_DEFAULT_HANDLER NULL /* Special Context data for GenericSerialBus/GeneralPurposeIo (ACPI 5.0) */ typedef struct acpi_connection_info { UINT8 *Connection; UINT16 Length; UINT8 AccessLength; } ACPI_CONNECTION_INFO; /* Special Context data for PCC Opregion (ACPI 6.3) */ typedef struct acpi_pcc_info { UINT8 SubspaceId; UINT16 Length; UINT8 *InternalBuffer; } ACPI_PCC_INFO; /* Special Context data for FFH Opregion (ACPI 6.5) */ typedef struct acpi_ffh_info { UINT64 Offset; UINT64 Length; } ACPI_FFH_INFO; typedef ACPI_STATUS (*ACPI_ADR_SPACE_SETUP) ( ACPI_HANDLE RegionHandle, UINT32 Function, void *HandlerContext, void **RegionContext); #define ACPI_REGION_ACTIVATE 0 #define ACPI_REGION_DEACTIVATE 1 typedef ACPI_STATUS (*ACPI_WALK_CALLBACK) ( ACPI_HANDLE Object, UINT32 NestingLevel, void *Context, void **ReturnValue); typedef UINT32 (*ACPI_INTERFACE_HANDLER) ( ACPI_STRING InterfaceName, UINT32 Supported); /* Interrupt handler return values */ #define ACPI_INTERRUPT_NOT_HANDLED 0x00 #define ACPI_INTERRUPT_HANDLED 0x01 /* GPE handler return values */ #define ACPI_REENABLE_GPE 0x80 /* Length of 32-bit EISAID values when converted back to a string */ #define ACPI_EISAID_STRING_SIZE 8 /* Includes null terminator */ /* Length of UUID (string) values */ #define ACPI_UUID_LENGTH 16 /* Length of 3-byte PCI class code values when converted back to a string */ #define ACPI_PCICLS_STRING_SIZE 7 /* Includes null terminator */ /* Structures used for device/processor HID, UID, CID */ typedef struct acpi_pnp_device_id { UINT32 Length; /* Length of string + null */ char *String; } ACPI_PNP_DEVICE_ID; typedef struct acpi_pnp_device_id_list { UINT32 Count; /* Number of IDs in Ids array */ UINT32 ListSize; /* Size of list, including ID strings */ ACPI_PNP_DEVICE_ID Ids[]; /* ID array */ } ACPI_PNP_DEVICE_ID_LIST; /* * Structure returned from AcpiGetObjectInfo. * Optimized for both 32-bit and 64-bit builds. */ typedef struct acpi_device_info { UINT32 InfoSize; /* Size of info, including ID strings */ UINT32 Name; /* ACPI object Name */ ACPI_OBJECT_TYPE Type; /* ACPI object Type */ UINT8 ParamCount; /* If a method, required parameter count */ UINT16 Valid; /* Indicates which optional fields are valid */ UINT8 Flags; /* Miscellaneous info */ UINT8 HighestDstates[4]; /* _SxD values: 0xFF indicates not valid */ UINT8 LowestDstates[5]; /* _SxW values: 0xFF indicates not valid */ UINT64 Address; /* _ADR value */ ACPI_PNP_DEVICE_ID HardwareId; /* _HID value */ ACPI_PNP_DEVICE_ID UniqueId; /* _UID value */ ACPI_PNP_DEVICE_ID ClassCode; /* _CLS value */ ACPI_PNP_DEVICE_ID_LIST CompatibleIdList; /* _CID list */ } ACPI_DEVICE_INFO; /* Values for Flags field above (AcpiGetObjectInfo) */ #define ACPI_PCI_ROOT_BRIDGE 0x01 /* Flags for Valid field above (AcpiGetObjectInfo) */ #define ACPI_VALID_ADR 0x0002 #define ACPI_VALID_HID 0x0004 #define ACPI_VALID_UID 0x0008 #define ACPI_VALID_CID 0x0020 #define ACPI_VALID_CLS 0x0040 #define ACPI_VALID_SXDS 0x0100 #define ACPI_VALID_SXWS 0x0200 /* Flags for _STA method */ #define ACPI_STA_DEVICE_PRESENT 0x01 #define ACPI_STA_DEVICE_ENABLED 0x02 #define ACPI_STA_DEVICE_UI 0x04 #define ACPI_STA_DEVICE_FUNCTIONING 0x08 #define ACPI_STA_DEVICE_OK 0x08 /* Synonym */ #define ACPI_STA_BATTERY_PRESENT 0x10 /* Context structs for address space handlers */ typedef struct acpi_pci_id { UINT16 Segment; UINT16 Bus; UINT16 Device; UINT16 Function; } ACPI_PCI_ID; typedef struct acpi_mem_mapping { ACPI_PHYSICAL_ADDRESS PhysicalAddress; UINT8 *LogicalAddress; ACPI_SIZE Length; struct acpi_mem_mapping *NextMm; } ACPI_MEM_MAPPING; typedef struct acpi_mem_space_context { UINT32 Length; ACPI_PHYSICAL_ADDRESS Address; ACPI_MEM_MAPPING *CurMm; ACPI_MEM_MAPPING *FirstMm; } ACPI_MEM_SPACE_CONTEXT; typedef struct acpi_data_table_mapping { void *Pointer; } ACPI_DATA_TABLE_MAPPING; /* * ACPI_MEMORY_LIST is used only if the ACPICA local cache is enabled */ typedef struct acpi_memory_list { const char *ListName; void *ListHead; UINT16 ObjectSize; UINT16 MaxDepth; UINT16 CurrentDepth; #ifdef ACPI_DBG_TRACK_ALLOCATIONS /* Statistics for debug memory tracking only */ UINT32 TotalAllocated; UINT32 TotalFreed; UINT32 MaxOccupied; UINT32 TotalSize; UINT32 CurrentTotalSize; UINT32 Requests; UINT32 Hits; #endif } ACPI_MEMORY_LIST; /* Definitions of trace event types */ typedef enum { ACPI_TRACE_AML_METHOD, ACPI_TRACE_AML_OPCODE, ACPI_TRACE_AML_REGION } ACPI_TRACE_EVENT_TYPE; /* Definitions of _OSI support */ #define ACPI_VENDOR_STRINGS 0x01 #define ACPI_FEATURE_STRINGS 0x02 #define ACPI_ENABLE_INTERFACES 0x00 #define ACPI_DISABLE_INTERFACES 0x04 #define ACPI_DISABLE_ALL_VENDOR_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_VENDOR_STRINGS) #define ACPI_DISABLE_ALL_FEATURE_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_FEATURE_STRINGS) #define ACPI_DISABLE_ALL_STRINGS (ACPI_DISABLE_INTERFACES | ACPI_VENDOR_STRINGS | ACPI_FEATURE_STRINGS) #define ACPI_ENABLE_ALL_VENDOR_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_VENDOR_STRINGS) #define ACPI_ENABLE_ALL_FEATURE_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_FEATURE_STRINGS) #define ACPI_ENABLE_ALL_STRINGS (ACPI_ENABLE_INTERFACES | ACPI_VENDOR_STRINGS | ACPI_FEATURE_STRINGS) #define ACPI_OSI_WIN_2000 0x01 #define ACPI_OSI_WIN_XP 0x02 #define ACPI_OSI_WIN_XP_SP1 0x03 #define ACPI_OSI_WINSRV_2003 0x04 #define ACPI_OSI_WIN_XP_SP2 0x05 #define ACPI_OSI_WINSRV_2003_SP1 0x06 #define ACPI_OSI_WIN_VISTA 0x07 #define ACPI_OSI_WINSRV_2008 0x08 #define ACPI_OSI_WIN_VISTA_SP1 0x09 #define ACPI_OSI_WIN_VISTA_SP2 0x0A #define ACPI_OSI_WIN_7 0x0B #define ACPI_OSI_WIN_8 0x0C #define ACPI_OSI_WIN_8_1 0x0D #define ACPI_OSI_WIN_10 0x0E #define ACPI_OSI_WIN_10_RS1 0x0F #define ACPI_OSI_WIN_10_RS2 0x10 #define ACPI_OSI_WIN_10_RS3 0x11 #define ACPI_OSI_WIN_10_RS4 0x12 #define ACPI_OSI_WIN_10_RS5 0x13 #define ACPI_OSI_WIN_10_19H1 0x14 #define ACPI_OSI_WIN_10_20H1 0x15 #define ACPI_OSI_WIN_11 0x16 #define ACPI_OSI_WIN_11_22H2 0x17 /* Definitions of getopt */ #define ACPI_OPT_END -1 /* Definitions for explicit fallthrough */ #ifndef ACPI_FALLTHROUGH #define ACPI_FALLTHROUGH do {} while(0) #endif #ifndef ACPI_FLEX_ARRAY #define ACPI_FLEX_ARRAY(TYPE, NAME) TYPE NAME[0] #endif #ifndef ACPI_NONSTRING #define ACPI_NONSTRING /* No terminating NUL character */ #endif #endif /* __ACTYPES_H__ */ acpica-unix-20250404/source/include/acdispat.h0000775000175000017500000002740314773714133020434 0ustar ivanhuivanhu/****************************************************************************** * * Name: acdispat.h - dispatcher (parser to interpreter interface) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef _ACDISPAT_H_ #define _ACDISPAT_H_ #define NAMEOF_LOCAL_NTE "__L0" #define NAMEOF_ARG_NTE "__A0" /* * dsargs - execution of dynamic arguments for static objects */ ACPI_STATUS AcpiDsGetBufferFieldArguments ( ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiDsGetBankFieldArguments ( ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiDsGetRegionArguments ( ACPI_OPERAND_OBJECT *RgnDesc); ACPI_STATUS AcpiDsGetBufferArguments ( ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiDsGetPackageArguments ( ACPI_OPERAND_OBJECT *ObjDesc); /* * dscontrol - support for execution control opcodes */ ACPI_STATUS AcpiDsExecBeginControlOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); ACPI_STATUS AcpiDsExecEndControlOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); /* * dsopcode - support for late operand evaluation */ ACPI_STATUS AcpiDsEvalBufferFieldOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); ACPI_STATUS AcpiDsEvalRegionOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); ACPI_STATUS AcpiDsEvalTableRegionOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); ACPI_STATUS AcpiDsEvalDataObjectOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiDsEvalBankFieldOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); ACPI_STATUS AcpiDsInitializeRegion ( ACPI_HANDLE ObjHandle); /* * dsexec - Parser/Interpreter interface, method execution callbacks */ ACPI_STATUS AcpiDsGetPredicateValue ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ResultObj); ACPI_STATUS AcpiDsExecBeginOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **OutOp); ACPI_STATUS AcpiDsExecEndOp ( ACPI_WALK_STATE *State); /* * dsfield - Parser/Interpreter interface for AML fields */ ACPI_STATUS AcpiDsCreateField ( ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE *RegionNode, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsCreateBankField ( ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE *RegionNode, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsCreateIndexField ( ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE *RegionNode, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsCreateBufferField ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsInitFieldObjects ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); /* * dsload - Parser/Interpreter interface */ ACPI_STATUS AcpiDsInitCallbacks ( ACPI_WALK_STATE *WalkState, UINT32 PassNumber); /* dsload - pass 1 namespace load callbacks */ ACPI_STATUS AcpiDsLoad1BeginOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **OutOp); ACPI_STATUS AcpiDsLoad1EndOp ( ACPI_WALK_STATE *WalkState); /* dsload - pass 2 namespace load callbacks */ ACPI_STATUS AcpiDsLoad2BeginOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **OutOp); ACPI_STATUS AcpiDsLoad2EndOp ( ACPI_WALK_STATE *WalkState); /* * dsmthdat - method data (locals/args) */ ACPI_STATUS AcpiDsStoreObjectToLocal ( UINT8 Type, UINT32 Index, ACPI_OPERAND_OBJECT *SrcDesc, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsMethodDataGetEntry ( UINT16 Opcode, UINT32 Index, ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT ***Node); void AcpiDsMethodDataDeleteAll ( ACPI_WALK_STATE *WalkState); BOOLEAN AcpiDsIsMethodValue ( ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiDsMethodDataGetValue ( UINT8 Type, UINT32 Index, ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT **DestDesc); ACPI_STATUS AcpiDsMethodDataInitArgs ( ACPI_OPERAND_OBJECT **Params, UINT32 MaxParamCount, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsMethodDataGetNode ( UINT8 Type, UINT32 Index, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE **Node); void AcpiDsMethodDataInit ( ACPI_WALK_STATE *WalkState); /* * dsmethod - Parser/Interpreter interface - control method parsing */ ACPI_STATUS AcpiDsAutoSerializeMethod ( ACPI_NAMESPACE_NODE *Node, ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiDsCallControlMethod ( ACPI_THREAD_STATE *Thread, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); ACPI_STATUS AcpiDsRestartControlMethod ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ReturnDesc); void AcpiDsTerminateControlMethod ( ACPI_OPERAND_OBJECT *MethodDesc, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsBeginMethodExecution ( ACPI_NAMESPACE_NODE *MethodNode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsMethodError ( ACPI_STATUS Status, ACPI_WALK_STATE *WalkState); /* * dsinit */ ACPI_STATUS AcpiDsInitializeObjects ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *StartNode); /* * dsobject - Parser/Interpreter interface - object initialization and conversion */ ACPI_STATUS AcpiDsBuildInternalObject ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_OPERAND_OBJECT **ObjDescPtr); ACPI_STATUS AcpiDsBuildInternalBufferObj ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, UINT32 BufferLength, ACPI_OPERAND_OBJECT **ObjDescPtr); ACPI_STATUS AcpiDsBuildInternalPackageObj ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *op, UINT32 PackageLength, ACPI_OPERAND_OBJECT **ObjDesc); ACPI_STATUS AcpiDsInitObjectFromOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, UINT16 Opcode, ACPI_OPERAND_OBJECT **ObjDesc); ACPI_STATUS AcpiDsCreateNode ( ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op); /* * dspkginit - Package object initialization */ ACPI_STATUS AcpiDsInitPackageElement ( UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context); /* * dsutils - Parser/Interpreter interface utility routines */ void AcpiDsClearImplicitReturn ( ACPI_WALK_STATE *WalkState); BOOLEAN AcpiDsDoImplicitReturn ( ACPI_OPERAND_OBJECT *ReturnDesc, ACPI_WALK_STATE *WalkState, BOOLEAN AddReference); BOOLEAN AcpiDsIsResultUsed ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); void AcpiDsDeleteResultIfNotUsed ( ACPI_PARSE_OBJECT *Op, ACPI_OPERAND_OBJECT *ResultObj, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsCreateOperand ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Arg, UINT32 ArgsRemaining); ACPI_STATUS AcpiDsCreateOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *FirstArg); ACPI_STATUS AcpiDsResolveOperands ( ACPI_WALK_STATE *WalkState); void AcpiDsClearOperands ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsEvaluateNamePath ( ACPI_WALK_STATE *WalkState); /* * dswscope - Scope Stack manipulation */ ACPI_STATUS AcpiDsScopeStackPush ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_TYPE Type, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsScopeStackPop ( ACPI_WALK_STATE *WalkState); void AcpiDsScopeStackClear ( ACPI_WALK_STATE *WalkState); /* * dswstate - parser WALK_STATE management routines */ ACPI_STATUS AcpiDsObjStackPush ( void *Object, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsObjStackPop ( UINT32 PopCount, ACPI_WALK_STATE *WalkState); ACPI_WALK_STATE * AcpiDsCreateWalkState ( ACPI_OWNER_ID OwnerId, ACPI_PARSE_OBJECT *Origin, ACPI_OPERAND_OBJECT *MthDesc, ACPI_THREAD_STATE *Thread); ACPI_STATUS AcpiDsInitAmlWalk ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE *MethodNode, UINT8 *AmlStart, UINT32 AmlLength, ACPI_EVALUATE_INFO *Info, UINT8 PassNumber); void AcpiDsObjStackPopAndDelete ( UINT32 PopCount, ACPI_WALK_STATE *WalkState); void AcpiDsDeleteWalkState ( ACPI_WALK_STATE *WalkState); ACPI_WALK_STATE * AcpiDsPopWalkState ( ACPI_THREAD_STATE *Thread); void AcpiDsPushWalkState ( ACPI_WALK_STATE *WalkState, ACPI_THREAD_STATE *Thread); ACPI_STATUS AcpiDsResultStackClear ( ACPI_WALK_STATE *WalkState); ACPI_WALK_STATE * AcpiDsGetCurrentWalkState ( ACPI_THREAD_STATE *Thread); ACPI_STATUS AcpiDsResultPop ( ACPI_OPERAND_OBJECT **Object, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiDsResultPush ( ACPI_OPERAND_OBJECT *Object, ACPI_WALK_STATE *WalkState); /* * dsdebug - parser debugging routines */ void AcpiDsDumpMethodStack ( ACPI_STATUS Status, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); #endif /* _ACDISPAT_H_ */ acpica-unix-20250404/source/include/amlresrc.h0000775000175000017500000006300514773714133020452 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: amlresrc.h - AML resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* acpisrc:StructDefs -- for acpisrc conversion */ #ifndef __AMLRESRC_H #define __AMLRESRC_H /* * Resource descriptor tags, as defined in the ACPI specification. * Used to symbolically reference fields within a descriptor. */ #define ACPI_RESTAG_ADDRESS "_ADR" #define ACPI_RESTAG_ALIGNMENT "_ALN" #define ACPI_RESTAG_ADDRESSSPACE "_ASI" #define ACPI_RESTAG_ACCESSSIZE "_ASZ" #define ACPI_RESTAG_TYPESPECIFICATTRIBUTES "_ATT" #define ACPI_RESTAG_BASEADDRESS "_BAS" #define ACPI_RESTAG_BUSMASTER "_BM_" /* Master(1), Slave(0) */ #define ACPI_RESTAG_DEBOUNCETIME "_DBT" #define ACPI_RESTAG_DECODE "_DEC" #define ACPI_RESTAG_DEVICEPOLARITY "_DPL" #define ACPI_RESTAG_DMA "_DMA" #define ACPI_RESTAG_DMATYPE "_TYP" /* Compatible(0), A(1), B(2), F(3) */ #define ACPI_RESTAG_DRIVESTRENGTH "_DRS" #define ACPI_RESTAG_ENDIANNESS "_END" #define ACPI_RESTAG_FLOWCONTROL "_FLC" #define ACPI_RESTAG_FUNCTION "_FUN" #define ACPI_RESTAG_GRANULARITY "_GRA" #define ACPI_RESTAG_INTERRUPT "_INT" #define ACPI_RESTAG_INTERRUPTLEVEL "_LL_" /* ActiveLo(1), ActiveHi(0) */ #define ACPI_RESTAG_INTERRUPTSHARE "_SHR" /* Shareable(1), NoShare(0) */ #define ACPI_RESTAG_INTERRUPTTYPE "_HE_" /* Edge(1), Level(0) */ #define ACPI_RESTAG_IORESTRICTION "_IOR" #define ACPI_RESTAG_LENGTH "_LEN" #define ACPI_RESTAG_LINE "_LIN" #define ACPI_RESTAG_LOCALPORT "_PRT" #define ACPI_RESTAG_MEMATTRIBUTES "_MTP" /* Memory(0), Reserved(1), ACPI(2), NVS(3) */ #define ACPI_RESTAG_MEMTYPE "_MEM" /* NonCache(0), Cacheable(1) Cache+combine(2), Cache+prefetch(3) */ #define ACPI_RESTAG_MAXADDR "_MAX" #define ACPI_RESTAG_MINADDR "_MIN" #define ACPI_RESTAG_MAXTYPE "_MAF" #define ACPI_RESTAG_MINTYPE "_MIF" #define ACPI_RESTAG_MODE "_MOD" #define ACPI_RESTAG_PARITY "_PAR" #define ACPI_RESTAG_PHASE "_PHA" #define ACPI_RESTAG_PHYTYPE "_PHY" #define ACPI_RESTAG_PIN "_PIN" #define ACPI_RESTAG_PINCONFIG "_PPI" #define ACPI_RESTAG_PINCONFIG_TYPE "_TYP" #define ACPI_RESTAG_PINCONFIG_VALUE "_VAL" #define ACPI_RESTAG_POLARITY "_POL" #define ACPI_RESTAG_REGISTERBITOFFSET "_RBO" #define ACPI_RESTAG_REGISTERBITWIDTH "_RBW" #define ACPI_RESTAG_RANGETYPE "_RNG" #define ACPI_RESTAG_READWRITETYPE "_RW_" /* ReadOnly(0), Writeable (1) */ #define ACPI_RESTAG_LENGTH_RX "_RXL" #define ACPI_RESTAG_LENGTH_TX "_TXL" #define ACPI_RESTAG_SLAVEMODE "_SLV" #define ACPI_RESTAG_SPEED "_SPE" #define ACPI_RESTAG_STOPBITS "_STB" #define ACPI_RESTAG_TRANSLATION "_TRA" #define ACPI_RESTAG_TRANSTYPE "_TRS" /* Sparse(1), Dense(0) */ #define ACPI_RESTAG_TYPE "_TTP" /* Translation(1), Static (0) */ #define ACPI_RESTAG_XFERTYPE "_SIZ" /* 8(0), 8And16(1), 16(2) */ #define ACPI_RESTAG_VENDORDATA "_VEN" #define ACPI_RESTAG_FQN "_FQN" #define ACPI_RESTAG_FQD "_FQD" /* Default sizes for "small" resource descriptors */ #define ASL_RDESC_IRQ_SIZE 0x02 #define ASL_RDESC_DMA_SIZE 0x02 #define ASL_RDESC_ST_DEPEND_SIZE 0x00 #define ASL_RDESC_END_DEPEND_SIZE 0x00 #define ASL_RDESC_IO_SIZE 0x07 #define ASL_RDESC_FIXED_IO_SIZE 0x03 #define ASL_RDESC_FIXED_DMA_SIZE 0x05 #define ASL_RDESC_END_TAG_SIZE 0x01 typedef struct asl_resource_node { UINT32 BufferLength; void *Buffer; struct asl_resource_node *Next; } ASL_RESOURCE_NODE; typedef struct asl_resource_info { ACPI_PARSE_OBJECT *DescriptorTypeOp; /* Resource descriptor parse node */ ACPI_PARSE_OBJECT *MappingOp; /* Used for mapfile support */ UINT32 CurrentByteOffset; /* Offset in resource template */ } ASL_RESOURCE_INFO; /* Macros used to generate AML resource length fields */ #define ACPI_AML_SIZE_LARGE(r) (sizeof (r) - sizeof (AML_RESOURCE_LARGE_HEADER)) #define ACPI_AML_SIZE_SMALL(r) (sizeof (r) - sizeof (AML_RESOURCE_SMALL_HEADER)) /* * Resource descriptors defined in the ACPI specification. * * Packing/alignment must be BYTE because these descriptors * are used to overlay the raw AML byte stream. */ #pragma pack(1) /* * SMALL descriptors */ #define AML_RESOURCE_SMALL_HEADER_COMMON \ UINT8 DescriptorType; typedef struct aml_resource_small_header { AML_RESOURCE_SMALL_HEADER_COMMON } AML_RESOURCE_SMALL_HEADER; typedef struct aml_resource_irq { AML_RESOURCE_SMALL_HEADER_COMMON UINT16 IrqMask; UINT8 Flags; } AML_RESOURCE_IRQ; typedef struct aml_resource_irq_noflags { AML_RESOURCE_SMALL_HEADER_COMMON UINT16 IrqMask; } AML_RESOURCE_IRQ_NOFLAGS; typedef struct aml_resource_dma { AML_RESOURCE_SMALL_HEADER_COMMON UINT8 DmaChannelMask; UINT8 Flags; } AML_RESOURCE_DMA; typedef struct aml_resource_start_dependent { AML_RESOURCE_SMALL_HEADER_COMMON UINT8 Flags; } AML_RESOURCE_START_DEPENDENT; typedef struct aml_resource_start_dependent_noprio { AML_RESOURCE_SMALL_HEADER_COMMON } AML_RESOURCE_START_DEPENDENT_NOPRIO; typedef struct aml_resource_end_dependent { AML_RESOURCE_SMALL_HEADER_COMMON } AML_RESOURCE_END_DEPENDENT; typedef struct aml_resource_io { AML_RESOURCE_SMALL_HEADER_COMMON UINT8 Flags; UINT16 Minimum; UINT16 Maximum; UINT8 Alignment; UINT8 AddressLength; } AML_RESOURCE_IO; typedef struct aml_resource_fixed_io { AML_RESOURCE_SMALL_HEADER_COMMON UINT16 Address; UINT8 AddressLength; } AML_RESOURCE_FIXED_IO; typedef struct aml_resource_vendor_small { AML_RESOURCE_SMALL_HEADER_COMMON } AML_RESOURCE_VENDOR_SMALL; typedef struct aml_resource_end_tag { AML_RESOURCE_SMALL_HEADER_COMMON UINT8 Checksum; } AML_RESOURCE_END_TAG; typedef struct aml_resource_fixed_dma { AML_RESOURCE_SMALL_HEADER_COMMON UINT16 RequestLines; UINT16 Channels; UINT8 Width; } AML_RESOURCE_FIXED_DMA; /* * LARGE descriptors */ #define AML_RESOURCE_LARGE_HEADER_COMMON \ UINT8 DescriptorType;\ UINT16 ResourceLength; typedef struct aml_resource_large_header { AML_RESOURCE_LARGE_HEADER_COMMON } AML_RESOURCE_LARGE_HEADER; /* General Flags for address space resource descriptors */ #define ACPI_RESOURCE_FLAG_DEC 2 #define ACPI_RESOURCE_FLAG_MIF 4 #define ACPI_RESOURCE_FLAG_MAF 8 typedef struct aml_resource_memory24 { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 Flags; UINT16 Minimum; UINT16 Maximum; UINT16 Alignment; UINT16 AddressLength; } AML_RESOURCE_MEMORY24; typedef struct aml_resource_vendor_large { AML_RESOURCE_LARGE_HEADER_COMMON } AML_RESOURCE_VENDOR_LARGE; typedef struct aml_resource_memory32 { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 Flags; UINT32 Minimum; UINT32 Maximum; UINT32 Alignment; UINT32 AddressLength; } AML_RESOURCE_MEMORY32; typedef struct aml_resource_fixed_memory32 { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 Flags; UINT32 Address; UINT32 AddressLength; } AML_RESOURCE_FIXED_MEMORY32; #define AML_RESOURCE_ADDRESS_COMMON \ UINT8 ResourceType; \ UINT8 Flags; \ UINT8 SpecificFlags; typedef struct aml_resource_address { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_ADDRESS_COMMON } AML_RESOURCE_ADDRESS; typedef struct aml_resource_extended_address64 { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_ADDRESS_COMMON UINT8 RevisionID; UINT8 Reserved; UINT64 Granularity; UINT64 Minimum; UINT64 Maximum; UINT64 TranslationOffset; UINT64 AddressLength; UINT64 TypeSpecific; } AML_RESOURCE_EXTENDED_ADDRESS64; #define AML_RESOURCE_EXTENDED_ADDRESS_REVISION 1 /* ACPI 3.0 */ typedef struct aml_resource_address64 { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_ADDRESS_COMMON UINT64 Granularity; UINT64 Minimum; UINT64 Maximum; UINT64 TranslationOffset; UINT64 AddressLength; } AML_RESOURCE_ADDRESS64; typedef struct aml_resource_address32 { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_ADDRESS_COMMON UINT32 Granularity; UINT32 Minimum; UINT32 Maximum; UINT32 TranslationOffset; UINT32 AddressLength; } AML_RESOURCE_ADDRESS32; typedef struct aml_resource_address16 { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_ADDRESS_COMMON UINT16 Granularity; UINT16 Minimum; UINT16 Maximum; UINT16 TranslationOffset; UINT16 AddressLength; } AML_RESOURCE_ADDRESS16; typedef struct aml_resource_extended_irq { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 Flags; UINT8 InterruptCount; union { UINT32 Interrupt; ACPI_FLEX_ARRAY(UINT32, Interrupts); }; /* ResSourceIndex, ResSource optional fields follow */ } AML_RESOURCE_EXTENDED_IRQ; typedef struct aml_resource_generic_register { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 AddressSpaceId; UINT8 BitWidth; UINT8 BitOffset; UINT8 AccessSize; /* ACPI 3.0, was previously Reserved */ UINT64 Address; } AML_RESOURCE_GENERIC_REGISTER; /* Common descriptor for GpioInt and GpioIo (ACPI 5.0) */ typedef struct aml_resource_gpio { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 RevisionId; UINT8 ConnectionType; UINT16 Flags; UINT16 IntFlags; UINT8 PinConfig; UINT16 DriveStrength; UINT16 DebounceTimeout; UINT16 PinTableOffset; UINT8 ResSourceIndex; UINT16 ResSourceOffset; UINT16 VendorOffset; UINT16 VendorLength; /* * Optional fields follow immediately: * 1) PIN list (Words) * 2) Resource Source String * 3) Vendor Data bytes */ } AML_RESOURCE_GPIO; #define AML_RESOURCE_GPIO_REVISION 1 /* ACPI 5.0 */ /* Values for ConnectionType above */ #define AML_RESOURCE_GPIO_TYPE_INT 0 #define AML_RESOURCE_GPIO_TYPE_IO 1 #define AML_RESOURCE_MAX_GPIOTYPE 1 /* Common preamble for all serial descriptors (ACPI 5.0) */ #define AML_RESOURCE_SERIAL_COMMON \ UINT8 RevisionId; \ UINT8 ResSourceIndex; \ UINT8 Type; \ UINT8 Flags; \ UINT16 TypeSpecificFlags; \ UINT8 TypeRevisionId; \ UINT16 TypeDataLength; \ /* Values for the type field above */ #define AML_RESOURCE_I2C_SERIALBUSTYPE 1 #define AML_RESOURCE_SPI_SERIALBUSTYPE 2 #define AML_RESOURCE_UART_SERIALBUSTYPE 3 #define AML_RESOURCE_CSI2_SERIALBUSTYPE 4 #define AML_RESOURCE_MAX_SERIALBUSTYPE 4 #define AML_RESOURCE_VENDOR_SERIALBUSTYPE 192 /* Vendor defined is 0xC0-0xFF (NOT SUPPORTED) */ typedef struct aml_resource_common_serialbus { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_SERIAL_COMMON } AML_RESOURCE_COMMON_SERIALBUS; typedef struct aml_resource_csi2_serialbus { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_SERIAL_COMMON /* * Optional fields follow immediately: * 1) Vendor Data bytes * 2) Resource Source String */ } AML_RESOURCE_CSI2_SERIALBUS; #define AML_RESOURCE_CSI2_REVISION 1 /* ACPI 6.4 */ #define AML_RESOURCE_CSI2_TYPE_REVISION 1 /* ACPI 6.4 */ #define AML_RESOURCE_CSI2_MIN_DATA_LEN 0 /* ACPI 6.4 */ typedef struct aml_resource_i2c_serialbus { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_SERIAL_COMMON UINT32 ConnectionSpeed; UINT16 SlaveAddress; /* * Optional fields follow immediately: * 1) Vendor Data bytes * 2) Resource Source String */ } AML_RESOURCE_I2C_SERIALBUS; #define AML_RESOURCE_I2C_REVISION 1 /* ACPI 5.0 */ #define AML_RESOURCE_I2C_TYPE_REVISION 1 /* ACPI 5.0 */ #define AML_RESOURCE_I2C_MIN_DATA_LEN 6 typedef struct aml_resource_spi_serialbus { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_SERIAL_COMMON UINT32 ConnectionSpeed; UINT8 DataBitLength; UINT8 ClockPhase; UINT8 ClockPolarity; UINT16 DeviceSelection; /* * Optional fields follow immediately: * 1) Vendor Data bytes * 2) Resource Source String */ } AML_RESOURCE_SPI_SERIALBUS; #define AML_RESOURCE_SPI_REVISION 1 /* ACPI 5.0 */ #define AML_RESOURCE_SPI_TYPE_REVISION 1 /* ACPI 5.0 */ #define AML_RESOURCE_SPI_MIN_DATA_LEN 9 typedef struct aml_resource_uart_serialbus { AML_RESOURCE_LARGE_HEADER_COMMON AML_RESOURCE_SERIAL_COMMON UINT32 DefaultBaudRate; UINT16 RxFifoSize; UINT16 TxFifoSize; UINT8 Parity; UINT8 LinesEnabled; /* * Optional fields follow immediately: * 1) Vendor Data bytes * 2) Resource Source String */ } AML_RESOURCE_UART_SERIALBUS; #define AML_RESOURCE_UART_REVISION 1 /* ACPI 5.0 */ #define AML_RESOURCE_UART_TYPE_REVISION 1 /* ACPI 5.0 */ #define AML_RESOURCE_UART_MIN_DATA_LEN 10 typedef struct aml_resource_pin_function { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 RevisionId; UINT16 Flags; UINT8 PinConfig; UINT16 FunctionNumber; UINT16 PinTableOffset; UINT8 ResSourceIndex; UINT16 ResSourceOffset; UINT16 VendorOffset; UINT16 VendorLength; /* * Optional fields follow immediately: * 1) PIN list (Words) * 2) Resource Source String * 3) Vendor Data bytes */ } AML_RESOURCE_PIN_FUNCTION; #define AML_RESOURCE_PIN_FUNCTION_REVISION 1 /* ACPI 6.2 */ typedef struct aml_resource_pin_config { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 RevisionId; UINT16 Flags; UINT8 PinConfigType; UINT32 PinConfigValue; UINT16 PinTableOffset; UINT8 ResSourceIndex; UINT16 ResSourceOffset; UINT16 VendorOffset; UINT16 VendorLength; /* * Optional fields follow immediately: * 1) PIN list (Words) * 2) Resource Source String * 3) Vendor Data bytes */ } AML_RESOURCE_PIN_CONFIG; #define AML_RESOURCE_CLOCK_INPUT_REVISION 1 /* ACPI 6.5 */ typedef struct aml_resource_clock_input { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 RevisionId; UINT16 Flags; UINT16 FrequencyDivisor; UINT32 FrequencyNumerator; /* * Optional fields follow immediately: * 1) Resource Source index * 2) Resource Source String */ } AML_RESOURCE_CLOCK_INPUT; #define AML_RESOURCE_PIN_CONFIG_REVISION 1 /* ACPI 6.2 */ typedef struct aml_resource_pin_group { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 RevisionId; UINT16 Flags; UINT16 PinTableOffset; UINT16 LabelOffset; UINT16 VendorOffset; UINT16 VendorLength; /* * Optional fields follow immediately: * 1) PIN list (Words) * 2) Resource Label String * 3) Vendor Data bytes */ } AML_RESOURCE_PIN_GROUP; #define AML_RESOURCE_PIN_GROUP_REVISION 1 /* ACPI 6.2 */ typedef struct aml_resource_pin_group_function { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 RevisionId; UINT16 Flags; UINT16 FunctionNumber; UINT8 ResSourceIndex; UINT16 ResSourceOffset; UINT16 ResSourceLabelOffset; UINT16 VendorOffset; UINT16 VendorLength; /* * Optional fields follow immediately: * 1) Resource Source String * 2) Resource Source Label String * 3) Vendor Data bytes */ } AML_RESOURCE_PIN_GROUP_FUNCTION; #define AML_RESOURCE_PIN_GROUP_FUNCTION_REVISION 1 /* ACPI 6.2 */ typedef struct aml_resource_pin_group_config { AML_RESOURCE_LARGE_HEADER_COMMON UINT8 RevisionId; UINT16 Flags; UINT8 PinConfigType; UINT32 PinConfigValue; UINT8 ResSourceIndex; UINT16 ResSourceOffset; UINT16 ResSourceLabelOffset; UINT16 VendorOffset; UINT16 VendorLength; /* * Optional fields follow immediately: * 1) Resource Source String * 2) Resource Source Label String * 3) Vendor Data bytes */ } AML_RESOURCE_PIN_GROUP_CONFIG; #define AML_RESOURCE_PIN_GROUP_CONFIG_REVISION 1 /* ACPI 6.2 */ /* Union of all resource descriptors, so we can allocate the worst case */ typedef union aml_resource { /* Descriptor headers */ UINT8 DescriptorType; AML_RESOURCE_SMALL_HEADER SmallHeader; AML_RESOURCE_LARGE_HEADER LargeHeader; /* Small resource descriptors */ AML_RESOURCE_IRQ Irq; AML_RESOURCE_DMA Dma; AML_RESOURCE_START_DEPENDENT StartDpf; AML_RESOURCE_END_DEPENDENT EndDpf; AML_RESOURCE_IO Io; AML_RESOURCE_FIXED_IO FixedIo; AML_RESOURCE_FIXED_DMA FixedDma; AML_RESOURCE_VENDOR_SMALL VendorSmall; AML_RESOURCE_END_TAG EndTag; /* Large resource descriptors */ AML_RESOURCE_MEMORY24 Memory24; AML_RESOURCE_GENERIC_REGISTER GenericReg; AML_RESOURCE_VENDOR_LARGE VendorLarge; AML_RESOURCE_MEMORY32 Memory32; AML_RESOURCE_FIXED_MEMORY32 FixedMemory32; AML_RESOURCE_ADDRESS16 Address16; AML_RESOURCE_ADDRESS32 Address32; AML_RESOURCE_ADDRESS64 Address64; AML_RESOURCE_EXTENDED_ADDRESS64 ExtAddress64; AML_RESOURCE_EXTENDED_IRQ ExtendedIrq; AML_RESOURCE_GPIO Gpio; AML_RESOURCE_I2C_SERIALBUS I2cSerialBus; AML_RESOURCE_SPI_SERIALBUS SpiSerialBus; AML_RESOURCE_UART_SERIALBUS UartSerialBus; AML_RESOURCE_CSI2_SERIALBUS Csi2SerialBus; AML_RESOURCE_COMMON_SERIALBUS CommonSerialBus; AML_RESOURCE_PIN_FUNCTION PinFunction; AML_RESOURCE_PIN_CONFIG PinConfig; AML_RESOURCE_PIN_GROUP PinGroup; AML_RESOURCE_PIN_GROUP_FUNCTION PinGroupFunction; AML_RESOURCE_PIN_GROUP_CONFIG PinGroupConfig; AML_RESOURCE_CLOCK_INPUT ClockInput; /* Utility overlays */ AML_RESOURCE_ADDRESS Address; UINT32 DwordItem; UINT16 WordItem; UINT8 ByteItem; } AML_RESOURCE; /* restore default alignment */ #pragma pack() /* Interfaces used by both the disassembler and compiler */ void MpSaveGpioInfo ( ACPI_PARSE_OBJECT *Op, AML_RESOURCE *Resource, UINT32 PinCount, UINT16 *PinList, char *DeviceName); void MpSaveSerialInfo ( ACPI_PARSE_OBJECT *Op, AML_RESOURCE *Resource, char *DeviceName); char * MpGetHidFromParseTree ( ACPI_NAMESPACE_NODE *HidNode); char * MpGetHidViaNamestring ( char *DeviceName); char * MpGetConnectionInfo ( ACPI_PARSE_OBJECT *Op, UINT32 PinIndex, ACPI_NAMESPACE_NODE **TargetNode, char **TargetName); char * MpGetParentDeviceHid ( ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE **TargetNode, char **ParentDeviceName); char * MpGetDdnValue ( char *DeviceName); char * MpGetHidValue ( ACPI_NAMESPACE_NODE *DeviceNode); #endif acpica-unix-20250404/source/include/acapps.h0000775000175000017500000001440014773714133020104 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acapps - common include for ACPI applications/tools * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef _ACAPPS #define _ACAPPS #ifdef ACPI_USE_STANDARD_HEADERS #include #endif /* ACPI_USE_STANDARD_HEADERS */ /* Common info for tool signons */ #define ACPICA_NAME "Intel ACPI Component Architecture" #define ACPICA_COPYRIGHT "Copyright (c) 2000 - 2025 Intel Corporation" #if ACPI_MACHINE_WIDTH == 64 #define ACPI_WIDTH " (64-bit version)" #elif ACPI_MACHINE_WIDTH == 32 #define ACPI_WIDTH " (32-bit version)" #else #error unknown ACPI_MACHINE_WIDTH #define ACPI_WIDTH " (unknown bit width, not 32 or 64)" #endif /* Macros for signons and file headers */ #define ACPI_COMMON_SIGNON(UtilityName) \ "\n%s\n%s version %8.8X\n%s\n\n", \ ACPICA_NAME, \ UtilityName, ((UINT32) ACPI_CA_VERSION), \ ACPICA_COPYRIGHT #define ACPI_COMMON_HEADER(UtilityName, Prefix) \ "%s%s\n%s%s version %8.8X%s\n%s%s\n%s\n", \ Prefix, ACPICA_NAME, \ Prefix, UtilityName, ((UINT32) ACPI_CA_VERSION), ACPI_WIDTH, \ Prefix, ACPICA_COPYRIGHT, \ Prefix #define ACPI_COMMON_BUILD_TIME \ "Build date/time: %s %s\n", __DATE__, __TIME__ /* Macros for usage messages */ #define ACPI_USAGE_HEADER(Usage) \ printf ("Usage: %s\nOptions:\n", Usage); #define ACPI_USAGE_TEXT(Description) \ printf (Description); #define ACPI_OPTION(Name, Description) \ printf (" %-20s%s\n", Name, Description); /* Check for unexpected exceptions */ #define ACPI_CHECK_STATUS(Name, Status, Expected) \ if (Status != Expected) \ { \ AcpiOsPrintf ("Unexpected %s from %s (%s-%d)\n", \ AcpiFormatException (Status), #Name, _AcpiModuleName, __LINE__); \ } /* Check for unexpected non-AE_OK errors */ #define ACPI_CHECK_OK(Name, Status) ACPI_CHECK_STATUS (Name, Status, AE_OK); #define FILE_SUFFIX_DISASSEMBLY "dsl" #define FILE_SUFFIX_BINARY_TABLE ".dat" /* Needs the dot */ /* acfileio */ ACPI_STATUS AcGetAllTablesFromFile ( char *Filename, UINT8 GetOnlyAmlTables, ACPI_NEW_TABLE_DESC **ReturnListHead); void AcDeleteTableList ( ACPI_NEW_TABLE_DESC *ListHead); BOOLEAN AcIsFileBinary ( FILE *File); ACPI_STATUS AcValidateTableHeader ( FILE *File, long TableOffset); /* Values for GetOnlyAmlTables */ #define ACPI_GET_ONLY_AML_TABLES TRUE #define ACPI_GET_ALL_TABLES FALSE /* * getopt */ int AcpiGetopt( int argc, char **argv, char *opts); int AcpiGetoptArgument ( int argc, char **argv); extern int AcpiGbl_Optind; extern int AcpiGbl_Opterr; extern int AcpiGbl_SubOptChar; extern char *AcpiGbl_Optarg; /* * cmfsize - Common get file size function */ UINT32 CmGetFileSize ( ACPI_FILE File); /* * adwalk */ void AcpiDmCrossReferenceNamespace ( ACPI_PARSE_OBJECT *ParseTreeRoot, ACPI_NAMESPACE_NODE *NamespaceRoot, ACPI_OWNER_ID OwnerId); void AcpiDmDumpTree ( ACPI_PARSE_OBJECT *Origin); void AcpiDmFindOrphanMethods ( ACPI_PARSE_OBJECT *Origin); void AcpiDmFinishNamespaceLoad ( ACPI_PARSE_OBJECT *ParseTreeRoot, ACPI_NAMESPACE_NODE *NamespaceRoot, ACPI_OWNER_ID OwnerId); void AcpiDmConvertParseObjects ( ACPI_PARSE_OBJECT *ParseTreeRoot, ACPI_NAMESPACE_NODE *NamespaceRoot); /* * adfile */ ACPI_STATUS AdInitialize ( void); char * FlGenerateFilename ( char *InputFilename, char *Suffix); ACPI_STATUS FlSplitInputPathname ( char *InputPath, char **OutDirectoryPath, char **OutFilename); char * FlGetFileBasename ( char *FilePathname); char * AdGenerateFilename ( char *Prefix, char *TableId); void AdWriteTable ( ACPI_TABLE_HEADER *Table, UINT32 Length, char *TableName, char *OemTableId); #endif /* _ACAPPS */ acpica-unix-20250404/source/include/acinterp.h0000775000175000017500000004654514773714133020461 0ustar ivanhuivanhu/****************************************************************************** * * Name: acinterp.h - Interpreter subcomponent prototypes and defines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACINTERP_H__ #define __ACINTERP_H__ #define ACPI_WALK_OPERANDS (&(WalkState->Operands [WalkState->NumOperands -1])) /* Macros for tables used for debug output */ #define ACPI_EXD_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_OPERAND_OBJECT,f) #define ACPI_EXD_NSOFFSET(f) (UINT8) ACPI_OFFSET (ACPI_NAMESPACE_NODE,f) #define ACPI_EXD_TABLE_SIZE(name) (sizeof(name) / sizeof (ACPI_EXDUMP_INFO)) /* * If possible, pack the following structures to byte alignment, since we * don't care about performance for debug output. Two cases where we cannot * pack the structures: * * 1) Hardware does not support misaligned memory transfers * 2) Compiler does not support pointers within packed structures */ #if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED)) #pragma pack(1) #endif typedef const struct acpi_exdump_info { UINT8 Opcode; UINT8 Offset; const char *Name; } ACPI_EXDUMP_INFO; /* Values for the Opcode field above */ #define ACPI_EXD_INIT 0 #define ACPI_EXD_TYPE 1 #define ACPI_EXD_UINT8 2 #define ACPI_EXD_UINT16 3 #define ACPI_EXD_UINT32 4 #define ACPI_EXD_UINT64 5 #define ACPI_EXD_LITERAL 6 #define ACPI_EXD_POINTER 7 #define ACPI_EXD_ADDRESS 8 #define ACPI_EXD_STRING 9 #define ACPI_EXD_BUFFER 10 #define ACPI_EXD_PACKAGE 11 #define ACPI_EXD_FIELD 12 #define ACPI_EXD_REFERENCE 13 #define ACPI_EXD_LIST 14 /* Operand object list */ #define ACPI_EXD_HDLR_LIST 15 /* Address Handler list */ #define ACPI_EXD_RGN_LIST 16 /* Region list */ #define ACPI_EXD_NODE 17 /* Namespace Node */ /* restore default alignment */ #pragma pack() /* * exconvrt - object conversion */ ACPI_STATUS AcpiExConvertToInteger ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc, UINT32 ImplicitConversion); ACPI_STATUS AcpiExConvertToBuffer ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc); ACPI_STATUS AcpiExConvertToString ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc, UINT32 Type); /* Types for ->String conversion */ #define ACPI_EXPLICIT_BYTE_COPY 0x00000000 #define ACPI_EXPLICIT_CONVERT_HEX 0x00000001 #define ACPI_IMPLICIT_CONVERT_HEX 0x00000002 #define ACPI_EXPLICIT_CONVERT_DECIMAL 0x00000003 ACPI_STATUS AcpiExConvertToTargetType ( ACPI_OBJECT_TYPE DestinationType, ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT **ResultDesc, ACPI_WALK_STATE *WalkState); /* * exdebug - AML debug object */ void AcpiExDoDebugObject ( ACPI_OPERAND_OBJECT *SourceDesc, UINT32 Level, UINT32 Index); void AcpiExStartTraceMethod ( ACPI_NAMESPACE_NODE *MethodNode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState); void AcpiExStopTraceMethod ( ACPI_NAMESPACE_NODE *MethodNode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState); void AcpiExStartTraceOpcode ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); void AcpiExStopTraceOpcode ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); void AcpiExTracePoint ( ACPI_TRACE_EVENT_TYPE Type, BOOLEAN Begin, UINT8 *Aml, char *Pathname); /* * exfield - ACPI AML (p-code) execution - field manipulation */ ACPI_STATUS AcpiExGetProtocolBufferLength ( UINT32 ProtocolId, UINT32 *ReturnLength); ACPI_STATUS AcpiExCommonBufferSetup ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 BufferLength, UINT32 *DatumCount); ACPI_STATUS AcpiExWriteWithUpdateRule ( ACPI_OPERAND_OBJECT *ObjDesc, UINT64 Mask, UINT64 FieldValue, UINT32 FieldDatumByteOffset); void AcpiExGetBufferDatum( UINT64 *Datum, void *Buffer, UINT32 BufferLength, UINT32 ByteGranularity, UINT32 BufferOffset); void AcpiExSetBufferDatum ( UINT64 MergedDatum, void *Buffer, UINT32 BufferLength, UINT32 ByteGranularity, UINT32 BufferOffset); ACPI_STATUS AcpiExReadDataFromField ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **RetBufferDesc); ACPI_STATUS AcpiExWriteDataToField ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc); /* * exfldio - low level field I/O */ ACPI_STATUS AcpiExExtractFromField ( ACPI_OPERAND_OBJECT *ObjDesc, void *Buffer, UINT32 BufferLength); ACPI_STATUS AcpiExInsertIntoField ( ACPI_OPERAND_OBJECT *ObjDesc, void *Buffer, UINT32 BufferLength); ACPI_STATUS AcpiExAccessRegion ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 FieldDatumByteOffset, UINT64 *Value, UINT32 ReadWrite); /* * exmisc - misc support routines */ ACPI_STATUS AcpiExGetObjectReference ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnDesc, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExConcatTemplate ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT *ObjDesc2, ACPI_OPERAND_OBJECT **ActualReturnDesc, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExDoConcatenate ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT *ObjDesc2, ACPI_OPERAND_OBJECT **ActualReturnDesc, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExDoLogicalNumericOp ( UINT16 Opcode, UINT64 Integer0, UINT64 Integer1, BOOLEAN *LogicalResult); ACPI_STATUS AcpiExDoLogicalOp ( UINT16 Opcode, ACPI_OPERAND_OBJECT *Operand0, ACPI_OPERAND_OBJECT *Operand1, BOOLEAN *LogicalResult); UINT64 AcpiExDoMathOp ( UINT16 Opcode, UINT64 Operand0, UINT64 Operand1); ACPI_STATUS AcpiExCreateMutex ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExCreateProcessor ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExCreatePowerResource ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExCreateRegion ( UINT8 *AmlStart, UINT32 AmlLength, UINT8 RegionSpace, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExCreateEvent ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExCreateAlias ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExCreateMethod ( UINT8 *AmlStart, UINT32 AmlLength, ACPI_WALK_STATE *WalkState); /* * exconfig - dynamic table load/unload */ ACPI_STATUS AcpiExLoadOp ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT *Target, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExLoadTableOp ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT **ReturnDesc); ACPI_STATUS AcpiExUnloadTable ( ACPI_OPERAND_OBJECT *DdbHandle); /* * exmutex - mutex support */ ACPI_STATUS AcpiExAcquireMutex ( ACPI_OPERAND_OBJECT *TimeDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExAcquireMutexObject ( UINT16 Timeout, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_THREAD_ID ThreadId); ACPI_STATUS AcpiExReleaseMutex ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExReleaseMutexObject ( ACPI_OPERAND_OBJECT *ObjDesc); void AcpiExReleaseAllMutexes ( ACPI_THREAD_STATE *Thread); void AcpiExUnlinkMutex ( ACPI_OPERAND_OBJECT *ObjDesc); /* * exprep - ACPI AML execution - prep utilities */ ACPI_STATUS AcpiExPrepCommonFieldObject ( ACPI_OPERAND_OBJECT *ObjDesc, UINT8 FieldFlags, UINT8 FieldAttribute, UINT32 FieldBitPosition, UINT32 FieldBitLength); ACPI_STATUS AcpiExPrepFieldValue ( ACPI_CREATE_FIELD_INFO *Info); /* * exserial - FieldUnit support for serial address spaces */ ACPI_STATUS AcpiExReadSerialBus ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnBuffer); ACPI_STATUS AcpiExWriteSerialBus ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnBuffer); ACPI_STATUS AcpiExReadGpio ( ACPI_OPERAND_OBJECT *ObjDesc, void *Buffer); ACPI_STATUS AcpiExWriteGpio ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnBuffer); /* * exsystem - Interface to OS services */ ACPI_STATUS AcpiExSystemDoNotifyOp ( ACPI_OPERAND_OBJECT *Value, ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiExSystemDoSleep( UINT64 Time); ACPI_STATUS AcpiExSystemDoStall ( UINT32 Time); ACPI_STATUS AcpiExSystemSignalEvent( ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiExSystemWaitEvent( ACPI_OPERAND_OBJECT *Time, ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiExSystemResetEvent( ACPI_OPERAND_OBJECT *ObjDesc); ACPI_STATUS AcpiExSystemWaitSemaphore ( ACPI_SEMAPHORE Semaphore, UINT16 Timeout); ACPI_STATUS AcpiExSystemWaitMutex ( ACPI_MUTEX Mutex, UINT16 Timeout); /* * exoparg1 - ACPI AML execution, 1 operand */ ACPI_STATUS AcpiExOpcode_0A_0T_1R ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExOpcode_1A_0T_0R ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExOpcode_1A_0T_1R ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExOpcode_1A_1T_1R ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExOpcode_1A_1T_0R ( ACPI_WALK_STATE *WalkState); /* * exoparg2 - ACPI AML execution, 2 operands */ ACPI_STATUS AcpiExOpcode_2A_0T_0R ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExOpcode_2A_0T_1R ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExOpcode_2A_1T_1R ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExOpcode_2A_2T_1R ( ACPI_WALK_STATE *WalkState); /* * exoparg3 - ACPI AML execution, 3 operands */ ACPI_STATUS AcpiExOpcode_3A_0T_0R ( ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExOpcode_3A_1T_1R ( ACPI_WALK_STATE *WalkState); /* * exoparg6 - ACPI AML execution, 6 operands */ ACPI_STATUS AcpiExOpcode_6A_0T_1R ( ACPI_WALK_STATE *WalkState); /* * exresolv - Object resolution and get value functions */ ACPI_STATUS AcpiExResolveToValue ( ACPI_OPERAND_OBJECT **StackPtr, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExResolveMultiple ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *Operand, ACPI_OBJECT_TYPE *ReturnType, ACPI_OPERAND_OBJECT **ReturnDesc); /* * exresnte - resolve namespace node */ ACPI_STATUS AcpiExResolveNodeToValue ( ACPI_NAMESPACE_NODE **StackPtr, ACPI_WALK_STATE *WalkState); /* * exresop - resolve operand to value */ ACPI_STATUS AcpiExResolveOperands ( UINT16 Opcode, ACPI_OPERAND_OBJECT **StackPtr, ACPI_WALK_STATE *WalkState); /* * exdump - Interpreter debug output routines */ void AcpiExDumpOperand ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 Depth); void AcpiExDumpOperands ( ACPI_OPERAND_OBJECT **Operands, const char *OpcodeName, UINT32 NumOpcodes); void AcpiExDumpObjectDescriptor ( ACPI_OPERAND_OBJECT *Object, UINT32 Flags); void AcpiExDumpNamespaceNode ( ACPI_NAMESPACE_NODE *Node, UINT32 Flags); /* * exnames - AML namestring support */ ACPI_STATUS AcpiExGetNameString ( ACPI_OBJECT_TYPE DataType, UINT8 *InAmlAddress, char **OutNameString, UINT32 *OutNameLength); /* * exstore - Object store support */ ACPI_STATUS AcpiExStore ( ACPI_OPERAND_OBJECT *ValDesc, ACPI_OPERAND_OBJECT *DestDesc, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExStoreObjectToNode ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_NAMESPACE_NODE *Node, ACPI_WALK_STATE *WalkState, UINT8 ImplicitConversion); /* * exstoren - resolve/store object */ ACPI_STATUS AcpiExResolveObject ( ACPI_OPERAND_OBJECT **SourceDescPtr, ACPI_OBJECT_TYPE TargetType, ACPI_WALK_STATE *WalkState); ACPI_STATUS AcpiExStoreObjectToObject ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *DestDesc, ACPI_OPERAND_OBJECT **NewDesc, ACPI_WALK_STATE *WalkState); /* * exstorob - store object - buffer/string */ ACPI_STATUS AcpiExStoreBufferToBuffer ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *TargetDesc); ACPI_STATUS AcpiExStoreStringToString ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *TargetDesc); /* * excopy - object copy */ ACPI_STATUS AcpiExCopyIntegerToIndexField ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *TargetDesc); ACPI_STATUS AcpiExCopyIntegerToBankField ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *TargetDesc); ACPI_STATUS AcpiExCopyDataToNamedField ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_NAMESPACE_NODE *Node); ACPI_STATUS AcpiExCopyIntegerToBufferField ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *TargetDesc); /* * exutils - interpreter/scanner utilities */ void AcpiExEnterInterpreter ( void); void AcpiExExitInterpreter ( void); BOOLEAN AcpiExTruncateFor32bitTable ( ACPI_OPERAND_OBJECT *ObjDesc); void AcpiExAcquireGlobalLock ( UINT32 Rule); void AcpiExReleaseGlobalLock ( UINT32 Rule); void AcpiExEisaIdToString ( char *Dest, UINT64 CompressedId); void AcpiExIntegerToString ( char *Dest, UINT64 Value); void AcpiExPciClsToString ( char *Dest, UINT8 ClassCode[3]); BOOLEAN AcpiIsValidSpaceId ( UINT8 SpaceId); /* * exregion - default OpRegion handlers */ ACPI_STATUS AcpiExSystemMemorySpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); ACPI_STATUS AcpiExSystemIoSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); ACPI_STATUS AcpiExPciConfigSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); ACPI_STATUS AcpiExCmosSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); ACPI_STATUS AcpiExPciBarSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); ACPI_STATUS AcpiExEmbeddedControllerSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); ACPI_STATUS AcpiExSmBusSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); ACPI_STATUS AcpiExDataTableSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); #endif /* __INTERP_H__ */ acpica-unix-20250404/source/include/acclib.h0000775000175000017500000002055714773714133020064 0ustar ivanhuivanhu/****************************************************************************** * * Name: acclib.h -- C library support. Prototypes for the (optional) local * implementations of required C library functions. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef _ACCLIB_H #define _ACCLIB_H /* * Prototypes and macros for local implementations of C library functions */ /* is* functions. The AcpiGbl_Ctypes array is defined in utclib.c */ extern const UINT8 AcpiGbl_Ctypes[]; #define _ACPI_XA 0x00 /* extra alphabetic - not supported */ #define _ACPI_XS 0x40 /* extra space */ #define _ACPI_BB 0x00 /* BEL, BS, etc. - not supported */ #define _ACPI_CN 0x20 /* CR, FF, HT, NL, VT */ #define _ACPI_DI 0x04 /* '0'-'9' */ #define _ACPI_LO 0x02 /* 'a'-'z' */ #define _ACPI_PU 0x10 /* punctuation */ #define _ACPI_SP 0x08 /* space, tab, CR, LF, VT, FF */ #define _ACPI_UP 0x01 /* 'A'-'Z' */ #define _ACPI_XD 0x80 /* '0'-'9', 'A'-'F', 'a'-'f' */ #define isdigit(c) (AcpiGbl_Ctypes[(unsigned char)(c)] & (_ACPI_DI)) #define isspace(c) (AcpiGbl_Ctypes[(unsigned char)(c)] & (_ACPI_SP)) #define isxdigit(c) (AcpiGbl_Ctypes[(unsigned char)(c)] & (_ACPI_XD)) #define isupper(c) (AcpiGbl_Ctypes[(unsigned char)(c)] & (_ACPI_UP)) #define islower(c) (AcpiGbl_Ctypes[(unsigned char)(c)] & (_ACPI_LO)) #define isprint(c) (AcpiGbl_Ctypes[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP | _ACPI_DI | _ACPI_XS | _ACPI_PU)) #define isalpha(c) (AcpiGbl_Ctypes[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP)) /* Error code */ #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define EINTR 4 /* Interrupted system call */ #define EIO 5 /* I/O error */ #define EBADF 9 /* Bad file number */ #define EAGAIN 11 /* Try again */ #define ENOMEM 12 /* Out of memory */ #define EACCES 13 /* Permission denied */ #define EFAULT 14 /* Bad address */ #define EBUSY 16 /* Device or resource busy */ #define EEXIST 17 /* File exists */ #define ENODEV 19 /* No such device */ #define EINVAL 22 /* Invalid argument */ #define EPIPE 32 /* Broken pipe */ #define ERANGE 34 /* Math result not representable */ /* Strings */ char * strcat ( char *DstString, const char *SrcString); char * strchr ( const char *String, int ch); char * strpbrk ( const char *String, const char *Delimiters); char * strtok ( char *String, const char *Delimiters); char * strcpy ( char *DstString, const char *SrcString); int strcmp ( const char *String1, const char *String2); ACPI_SIZE strlen ( const char *String); char * strncat ( char *DstString, const char *SrcString, ACPI_SIZE Count); int strncmp ( const char *String1, const char *String2, ACPI_SIZE Count); char * strncpy ( char *DstString, const char *SrcString, ACPI_SIZE Count); char * strstr ( char *String1, char *String2); /* Conversion */ UINT32 strtoul ( const char *String, char **Terminator, UINT32 Base); /* Memory */ int memcmp ( void *Buffer1, void *Buffer2, ACPI_SIZE Count); void * memcpy ( void *Dest, const void *Src, ACPI_SIZE Count); void * memmove ( void *Dest, const void *Src, ACPI_SIZE Count); void * memset ( void *Dest, int Value, ACPI_SIZE Count); /* upper/lower case */ int tolower ( int c); int toupper ( int c); /* * utprint - printf/vprintf output functions */ const char * AcpiUtScanNumber ( const char *String, UINT64 *NumberPtr); const char * AcpiUtPrintNumber ( char *String, UINT64 Number); int vsnprintf ( char *String, ACPI_SIZE Size, const char *Format, va_list Args); int snprintf ( char *String, ACPI_SIZE Size, const char *Format, ...); int sprintf ( char *String, const char *Format, ...); #ifdef ACPI_APPLICATION #define SEEK_SET 0 #define SEEK_CUR 1 #define SEEK_END 2 /* * NOTE: Currently we only need to update errno for file IOs. Other * Clibrary invocations in ACPICA do not make decisions according to * the errno. */ extern int errno; #ifndef EOF #define EOF (-1) #endif #define putchar(c) fputc(stdout, c) #define getchar(c) fgetc(stdin) int vprintf ( const char *Format, va_list Args); int printf ( const char *Format, ...); int vfprintf ( FILE *File, const char *Format, va_list Args); int fprintf ( FILE *File, const char *Format, ...); FILE * fopen ( const char *Path, const char *Modes); void fclose ( FILE *File); int fread ( void *Buffer, ACPI_SIZE Size, ACPI_SIZE Count, FILE *File); int fwrite ( void *Buffer, ACPI_SIZE Size, ACPI_SIZE Count, FILE *File); int fseek ( FILE *File, long Offset, int From); long ftell ( FILE *File); int fgetc ( FILE *File); int fputc ( FILE *File, char c); char * fgets ( char *s, ACPI_SIZE Size, FILE *File); #endif #endif /* _ACCLIB_H */ acpica-unix-20250404/source/common/0000775000175000017500000000000014773714131016325 5ustar ivanhuivanhuacpica-unix-20250404/source/common/ahids.c0000775000175000017500000002564114773714131017574 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahids - Table of ACPI/PNP _HID/_CID values * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("ahids") /* * ACPI/PNP Device IDs with description strings */ const AH_DEVICE_ID AslDeviceIds[] = { {"10EC5640", "Realtek I2S Audio Codec"}, {"80860F09", "Intel PWM Controller"}, {"80860F0A", "Intel Atom UART Controller"}, {"80860F0E", "Intel SPI Controller"}, {"80860F14", "Intel Baytrail SDIO/MMC Host Controller"}, {"80860F28", "Intel SST Audio DSP"}, {"80860F41", "Intel Baytrail I2C Host Controller"}, {"ACPI0001", "SMBus 1.0 Host Controller"}, {"ACPI0002", "Smart Battery Subsystem"}, {"ACPI0003", "Power Source Device"}, {"ACPI0004", "Module Device"}, {"ACPI0005", "SMBus 2.0 Host Controller"}, {"ACPI0006", "GPE Block Device"}, {"ACPI0007", "Processor Device"}, {"ACPI0008", "Ambient Light Sensor Device"}, {"ACPI0009", "I/O xAPIC Device"}, {"ACPI000A", "I/O APIC Device"}, {"ACPI000B", "I/O SAPIC Device"}, {"ACPI000C", "Processor Aggregator Device"}, {"ACPI000D", "Power Meter Device"}, {"ACPI000E", "Time and Alarm Device"}, {"ACPI000F", "User Presence Detection Device"}, {"ACPI0010", "Processor Container Device"}, {"ACPI0011", "Generic Buttons Device"}, {"ACPI0012", "NVDIMM Root Device"}, {"ACPI0013", "Generic Event Device"}, {"ACPI0014", "Wireless Power Calibration Device"}, {"ACPI0015", "USB4 host interface device"}, {"ACPI0016", "Compute Express Link Host Bridge"}, {"ADMA0F28", "Intel Audio DMA"}, {"AMCR0F28", "Intel Audio Machine Driver"}, {"ATK4001", "Asus Radio Control Button"}, {"ATML1000", "Atmel Touchscreen Controller"}, {"AUTH2750", "AuthenTec AES2750"}, {"BCM2E39", "Broadcom BT Serial Bus Driver over UART Bus Enumerator"}, {"BCM4752E", "Broadcom GPS Controller"}, {"BMG0160", "Bosch Gyro Sensor"}, {"CPLM3218", "Capella Micro CM3218x Ambient Light Sensor"}, {"DELLABCE", "Dell Airplane Mode Switch Driver"}, {"DLAC3002", "Qualcomm Atheros Bluetooth UART Transport"}, {"FTTH5506", "FocalTech 5506 Touch Controller"}, {"HAD0F28", "Intel HDMI Audio Driver"}, {"INBC0000", "GPIO Expander"}, {"INT0002", "Virtual GPIO Controller"}, {"INT0800", "Intel 82802 Firmware Hub Device"}, {"INT3394", "ACPI System Fan"}, {"INT3396", "Standard Power Management Controller"}, {"INT33A0", "Intel Smart Connect Technology Device"}, {"INT33A1", "Intel Power Engine"}, {"INT33BB", "Intel Baytrail SD Host Controller"}, {"INT33BD", "Intel Baytrail Mailbox Device"}, {"INT33BE", "Camera Sensor OV5693"}, {"INT33C0", "Intel Serial I/O SPI Host Controller"}, {"INT33C1", "Intel Serial I/O SPI Host Controller"}, {"INT33C2", "Intel Serial I/O I2C Host Controller"}, {"INT33C3", "Intel Serial I/O I2C Host Controller"}, {"INT33C4", "Intel Serial I/O UART Host Controller"}, {"INT33C5", "Intel Serial I/O UART Host Controller"}, {"INT33C6", "Intel SD Host Controller"}, {"INT33C7", "Intel Serial I/O GPIO Host Controller"}, {"INT33C8", "Intel Smart Sound Technology Host Controller"}, {"INT33C9", "Wolfson Microelectronics Audio WM5102"}, {"INT33CA", "Intel SPB Peripheral"}, {"INT33CB", "Intel Smart Sound Technology Audio Codec"}, {"INT33D1", "Intel GPIO Buttons"}, {"INT33D2", "Intel GPIO Buttons"}, {"INT33D3", "Intel GPIO Buttons"}, {"INT33D4", "Intel GPIO Buttons"}, {"INT33D6", "Intel Virtual Buttons Device"}, {"INT33F0", "Camera Sensor MT9M114"}, {"INT33F4", "XPOWER PMIC Controller"}, {"INT33F5", "TI PMIC Controller"}, {"INT33FB", "MIPI-CSI Camera Sensor OV2722"}, {"INT33FC", "Intel Baytrail GPIO Controller"}, {"INT33FD", "Intel Baytrail Power Management IC"}, {"INT33FE", "XPOWER Battery Device"}, {"INT3400", "Intel Dynamic Power Performance Management"}, {"INT3401", "Intel Extended Thermal Model CPU"}, {"INT3403", "DPTF Temperature Sensor"}, {"INT3406", "Intel Dynamic Platform & Thermal Framework Display Participant"}, {"INT3407", "DPTF Platform Power Meter"}, {"INT340E", "Motherboard Resources"}, {"INT3420", "Intel Bluetooth RF Kill"}, {"INT3F0D", "ACPI Motherboard Resources"}, {"INTCF1A", "Sony IMX175 Camera Sensor"}, {"INTCFD9", "Intel Baytrail SOC GPIO Controller"}, {"INTL9C60", "Intel Baytrail SOC DMA Controller"}, {"INVN6500", "InvenSense MPU-6500 Six Axis Gyroscope and Accelerometer"}, {"LNXCPU", "Linux Logical CPU"}, {"LNXPOWER", "ACPI Power Resource (power gating)"}, {"LNXPWRBN", "System Power Button"}, {"LNXSYBUS", "System Bus"}, {"LNXSYSTM", "ACPI Root Node"}, {"LNXTHERM", "ACPI Thermal Zone"}, {"LNXVIDEO", "ACPI Video Controller"}, {"MAX17047", "Fuel Gauge Controller"}, {"MSFT0101", "TPM 2.0 Security Device"}, {"NXP5442", "NXP 5442 Near Field Communications Controller"}, {"NXP5472", "NXP NFC"}, {"PNP0000", "8259-compatible Programmable Interrupt Controller"}, {"PNP0001", "EISA Interrupt Controller"}, {"PNP0002", "MCA Interrupt Controller"}, {"PNP0003", "IO-APIC Interrupt Controller"}, {"PNP0100", "PC-class System Timer"}, {"PNP0103", "HPET System Timer"}, {"PNP0200", "PC-class DMA Controller"}, {"PNP0300", "IBM PC/XT Keyboard Controller (83 key)"}, {"PNP0301", "IBM PC/XT Keyboard Controller (86 key)"}, {"PNP0302", "IBM PC/XT Keyboard Controller (84 key)"}, {"PNP0303", "IBM Enhanced Keyboard (101/102-key, PS/2 Mouse)"}, {"PNP0400", "Standard LPT Parallel Port"}, {"PNP0401", "ECP Parallel Port"}, {"PNP0500", "Standard PC COM Serial Port"}, {"PNP0501", "16550A-compatible COM Serial Port"}, {"PNP0510", "Generic IRDA-compatible Device"}, {"PNP0800", "Microsoft Sound System Compatible Device"}, {"PNP0A03", "PCI Bus"}, {"PNP0A05", "Generic Container Device"}, {"PNP0A06", "Generic Container Device"}, {"PNP0A08", "PCI Express Bus"}, {"PNP0B00", "AT Real-Time Clock"}, {"PNP0B01", "Intel PIIX4-compatible RTC/CMOS Device"}, {"PNP0B02", "Dallas Semiconductor-compatible RTC/CMOS Device"}, {"PNP0C01", "System Board"}, {"PNP0C02", "PNP Motherboard Resources"}, {"PNP0C04", "x87-compatible Floating Point Processing Unit"}, {"PNP0C08", "ACPI Core Hardware"}, {"PNP0C09", "Embedded Controller Device"}, {"PNP0C0A", "Control Method Battery"}, {"PNP0C0B", "Fan (Thermal Solution)"}, {"PNP0C0C", "Power Button Device"}, {"PNP0C0D", "Lid Device"}, {"PNP0C0E", "Sleep Button Device"}, {"PNP0C0F", "PCI Interrupt Link Device"}, {"PNP0C10", "System Indicator Device"}, {"PNP0C11", "Thermal Zone"}, {"PNP0C12", "Device Bay Controller"}, {"PNP0C14", "Windows Management Instrumentation Device"}, {"PNP0C15", "Docking Station"}, {"PNP0C33", "Error Device"}, {"PNP0C40", "Standard Button Controller"}, {"PNP0C50", "HID Protocol Device (I2C bus)"}, {"PNP0C60", "Display Sensor Device"}, {"PNP0C70", "Dock Sensor Device"}, {"PNP0C80", "Memory Device"}, {"PNP0D10", "XHCI USB Controller with debug"}, {"PNP0D15", "XHCI USB Controller without debug"}, {"PNP0D20", "EHCI USB Controller without debug"}, {"PNP0D25", "EHCI USB Controller with debug"}, {"PNP0D40", "SDA Standard Compliant SD Host Controller"}, {"PNP0D80", "Windows-compatible System Power Management Controller"}, {"PNP0F03", "Microsoft PS/2-style Mouse"}, {"PNP0F13", "PS/2 Mouse"}, {"RTL8723", "Realtek Wireless Controller"}, {"SMB0349", "Charger"}, {"SMO91D0", "Sensor Hub"}, {"SMSC3750", "SMSC 3750 USB MUX"}, {"SSPX0000", "Intel SSP Device"}, {"TBQ24296", "Charger"}, {NULL, NULL} }; /******************************************************************************* * * FUNCTION: AcpiAhMatchHardwareId * * PARAMETERS: HardwareId - String representation of an _HID or _CID * * RETURN: ID info struct. NULL if HardwareId is not found * * DESCRIPTION: Lookup an _HID/_CID in the device ID table * ******************************************************************************/ const AH_DEVICE_ID * AcpiAhMatchHardwareId ( char *HardwareId) { const AH_DEVICE_ID *Info; for (Info = AslDeviceIds; Info->Name; Info++) { if (!strcmp (HardwareId, Info->Name)) { return (Info); } } return (NULL); } acpica-unix-20250404/source/common/dmtbdump.c0000775000175000017500000003541114773714131020314 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtbdump - Dump ACPI data tables that contain no AML code * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "actables.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmtbdump") /* Local prototypes */ static void AcpiDmValidateFadtLength ( UINT32 Revision, UINT32 Length); /******************************************************************************* * * FUNCTION: AcpiDmDumpBuffer * * PARAMETERS: Table - ACPI Table or subtable * BufferOffset - Offset of buffer from Table above * Length - Length of the buffer * AbsoluteOffset - Offset of buffer in the main ACPI table * Header - Name of the buffer field (printed on the * first line only.) * * RETURN: None * * DESCRIPTION: Format the contents of an arbitrary length data buffer (in the * disassembler output format.) * ******************************************************************************/ void AcpiDmDumpBuffer ( void *Table, UINT32 BufferOffset, UINT32 Length, UINT32 AbsoluteOffset, char *Header) { UINT8 *Buffer; UINT8 BufChar; UINT32 i; UINT32 j; if (!Length) { return; } Buffer = ACPI_CAST_PTR (UINT8, Table) + BufferOffset; i = 0; while (i < Length) { if ((Length > 16) && (i != 0)) { if ((Length - i) < 16) AcpiOsPrintf ("\n/* %3.3Xh %4.4u %3u */ ", AbsoluteOffset, AbsoluteOffset, Length - i); else AcpiOsPrintf ("\n/* %3.3Xh %4.4u 16 */ ", AbsoluteOffset, AbsoluteOffset); } AbsoluteOffset += 16; /* Emit the raw data bytes*/ for (j = 0; j < 16; j++) { if (i + j >= Length) { /* Dump fill spaces */ AcpiOsPrintf ("%*s", (48 - (3 * (Length -i))), " "); break; } AcpiOsPrintf ("%.02X ", Buffer[(ACPI_SIZE) i + j]); } /* Emit the ASCII equivalent to the raw data bytes */ for (j = 0; j < 16; j++) { if (i + j >= Length) { AcpiOsPrintf (" */\\\n"); return; } /* * Add comment characters so rest of line is ignored when * compiled */ if (j == 0) { AcpiOsPrintf ("/* "); } BufChar = Buffer[(ACPI_SIZE) i + j]; if (isprint (BufChar)) { AcpiOsPrintf ("%c", BufChar); } else { AcpiOsPrintf ("."); } } /* Done with that line. */ /* Close the comment and insert a backslash - line continuation character */ AcpiOsPrintf (" */\\"); i += 16; /* Point to next line */ } AcpiOsPrintf ("\n"); } /******************************************************************************* * * FUNCTION: AcpiDmDumpUnicode * * PARAMETERS: Table - ACPI Table or subtable * BufferOffset - Offset of buffer from Table above * ByteLength - Length of the buffer * * RETURN: None * * DESCRIPTION: Validate and dump the contents of a buffer that contains * unicode data. The output is a standard ASCII string. If it * appears that the data is not unicode, the buffer is dumped * as hex characters. * ******************************************************************************/ void AcpiDmDumpUnicode ( void *Table, UINT32 BufferOffset, UINT32 ByteLength) { UINT8 *Buffer; UINT32 Length; UINT32 i; Buffer = ((UINT8 *) Table) + BufferOffset; Length = ByteLength - 2; /* Last two bytes are the null terminator */ /* Ensure all low bytes are entirely printable ASCII */ for (i = 0; i < Length; i += 2) { if (!isprint (Buffer[i])) { goto DumpRawBuffer; } } /* Ensure all high bytes are zero */ for (i = 1; i < Length; i += 2) { if (Buffer[i]) { goto DumpRawBuffer; } } /* Dump the buffer as a normal string */ AcpiOsPrintf ("\""); for (i = 0; i < Length; i += 2) { AcpiOsPrintf ("%c", Buffer[i]); } AcpiOsPrintf ("\"\n"); return; DumpRawBuffer: AcpiDmDumpBuffer (Table, BufferOffset, ByteLength, BufferOffset, NULL); AcpiOsPrintf ("\n"); } /******************************************************************************* * * FUNCTION: AcpiDmDumpRsdp * * PARAMETERS: Table - A RSDP * * RETURN: Length of the table (there is not always a length field, * use revision or length if available (ACPI 2.0+)) * * DESCRIPTION: Format the contents of a RSDP * ******************************************************************************/ UINT32 AcpiDmDumpRsdp ( ACPI_TABLE_HEADER *Table) { ACPI_TABLE_RSDP *Rsdp = ACPI_CAST_PTR (ACPI_TABLE_RSDP, Table); UINT32 Length = sizeof (ACPI_RSDP_COMMON); UINT8 Checksum; ACPI_STATUS Status; /* Dump the common ACPI 1.0 portion */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoRsdp1); if (ACPI_FAILURE (Status)) { return (Length); } /* Validate the first checksum */ Checksum = AcpiUtGenerateChecksum (Rsdp, sizeof (ACPI_RSDP_COMMON), Rsdp->Checksum); if (Checksum != Rsdp->Checksum) { AcpiOsPrintf ("/* Incorrect Checksum above, should be 0x%2.2X */\n", Checksum); } /* The RSDP for ACPI 2.0+ contains more data and has a Length field */ if (Rsdp->Revision > 0) { Length = Rsdp->Length; Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoRsdp2); if (ACPI_FAILURE (Status)) { return (Length); } /* Validate the extended checksum over entire RSDP */ Checksum = AcpiUtGenerateChecksum (Rsdp, sizeof (ACPI_TABLE_RSDP), Rsdp->ExtendedChecksum); if (Checksum != Rsdp->ExtendedChecksum) { AcpiOsPrintf ( "/* Incorrect Extended Checksum above, should be 0x%2.2X */\n", Checksum); } } return (Length); } /******************************************************************************* * * FUNCTION: AcpiDmDumpRsdt * * PARAMETERS: Table - A RSDT * * RETURN: None * * DESCRIPTION: Format the contents of a RSDT * ******************************************************************************/ void AcpiDmDumpRsdt ( ACPI_TABLE_HEADER *Table) { UINT32 *Array; UINT32 Entries; UINT32 Offset; UINT32 i; /* Point to start of table pointer array */ Array = ACPI_CAST_PTR (ACPI_TABLE_RSDT, Table)->TableOffsetEntry; Offset = sizeof (ACPI_TABLE_HEADER); /* RSDT uses 32-bit pointers */ Entries = (Table->Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT32); for (i = 0; i < Entries; i++) { AcpiDmLineHeader2 (Offset, sizeof (UINT32), "ACPI Table Address", i); AcpiOsPrintf ("%8.8X\n", Array[i]); Offset += sizeof (UINT32); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpXsdt * * PARAMETERS: Table - A XSDT * * RETURN: None * * DESCRIPTION: Format the contents of a XSDT * ******************************************************************************/ void AcpiDmDumpXsdt ( ACPI_TABLE_HEADER *Table) { UINT64 *Array; UINT32 Entries; UINT32 Offset; UINT32 i; /* Point to start of table pointer array */ Array = ACPI_CAST_PTR (ACPI_TABLE_XSDT, Table)->TableOffsetEntry; Offset = sizeof (ACPI_TABLE_HEADER); /* XSDT uses 64-bit pointers */ Entries = (Table->Length - sizeof (ACPI_TABLE_HEADER)) / sizeof (UINT64); for (i = 0; i < Entries; i++) { AcpiDmLineHeader2 (Offset, sizeof (UINT64), "ACPI Table Address", i); AcpiOsPrintf ("%8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Array[i])); Offset += sizeof (UINT64); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpFadt * * PARAMETERS: Table - A FADT * * RETURN: None * * DESCRIPTION: Format the contents of a FADT * * NOTE: We cannot depend on the FADT version to indicate the actual * contents of the FADT because of BIOS bugs. The table length * is the only reliable indicator. * ******************************************************************************/ void AcpiDmDumpFadt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; /* Always dump the minimum FADT revision 1 fields (ACPI 1.0) */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoFadt1); if (ACPI_FAILURE (Status)) { return; } /* Check for FADT revision 2 fields (ACPI 1.0B MS extensions) */ if ((Table->Length > ACPI_FADT_V1_SIZE) && (Table->Length <= ACPI_FADT_V2_SIZE)) { Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoFadt2); if (ACPI_FAILURE (Status)) { return; } } /* Check for FADT revision 3/4 fields and up (ACPI 2.0+ extended data) */ else if (Table->Length > ACPI_FADT_V2_SIZE) { Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoFadt3); if (ACPI_FAILURE (Status)) { return; } /* Check for FADT revision 5 fields and up (ACPI 5.0+) */ if (Table->Length > ACPI_FADT_V3_SIZE) { Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoFadt5); if (ACPI_FAILURE (Status)) { return; } } /* Check for FADT revision 6 fields and up (ACPI 6.0+) */ if (Table->Length > ACPI_FADT_V5_SIZE) { Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoFadt6); if (ACPI_FAILURE (Status)) { return; } } } /* Validate various fields in the FADT, including length */ AcpiTbCreateLocalFadt (Table, Table->Length); /* Validate FADT length against the revision */ AcpiDmValidateFadtLength (Table->Revision, Table->Length); } /******************************************************************************* * * FUNCTION: AcpiDmValidateFadtLength * * PARAMETERS: Revision - FADT revision (Header->Revision) * Length - FADT length (Header->Length * * RETURN: None * * DESCRIPTION: Check the FADT revision against the expected table length for * that revision. Issue a warning if the length is not what was * expected. This seems to be such a common BIOS bug that the * FADT revision has been rendered virtually meaningless. * ******************************************************************************/ static void AcpiDmValidateFadtLength ( UINT32 Revision, UINT32 Length) { UINT32 ExpectedLength; switch (Revision) { case 0: AcpiOsPrintf ("// ACPI Warning: Invalid FADT revision: 0\n"); return; case 1: ExpectedLength = ACPI_FADT_V1_SIZE; break; case 2: ExpectedLength = ACPI_FADT_V2_SIZE; break; case 3: case 4: ExpectedLength = ACPI_FADT_V3_SIZE; break; case 5: ExpectedLength = ACPI_FADT_V5_SIZE; break; case 6: ExpectedLength = ACPI_FADT_V6_SIZE; break; default: return; } if (Length == ExpectedLength) { return; } AcpiOsPrintf ( "\n// ACPI Warning: FADT revision %X does not match length: " "found %X expected %X\n", Revision, Length, ExpectedLength); } acpica-unix-20250404/source/common/dmtbinfo1.c0000775000175000017500000025334514773714131020373 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtbinfo1 - Table info for non-AML tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "actbinfo.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmtbinfo1") /* * How to add a new table: * * - Add the C table definition to the actbl1.h or actbl2.h header. * - Add ACPI_xxxx_OFFSET macro(s) for the table (and subtables) to list below. * - Define the table in this file (for the disassembler). If any * new data types are required (ACPI_DMT_*), see below. * - Add an external declaration for the new table definition (AcpiDmTableInfo*) * in acdisam.h * - Add new table definition to the dispatch table in dmtable.c (AcpiDmTableData) * If a simple table (with no subtables), no disassembly code is needed. * Otherwise, create the AcpiDmDump* function for to disassemble the table * and add it to the dmtbdump.c file. * - Add an external declaration for the new AcpiDmDump* function in acdisasm.h * - Add the new AcpiDmDump* function to the dispatch table in dmtable.c * - Create a template for the new table * - Add data table compiler support * * How to add a new data type (ACPI_DMT_*): * * - Add new type at the end of the ACPI_DMT list in acdisasm.h * - Add length and implementation cases in dmtable.c (disassembler) * - Add type and length cases in dtutils.c (DT compiler) */ /* * ACPI Table Information, used to dump formatted ACPI tables * * Each entry is of the form: */ /******************************************************************************* * * AEST - ARM Error Source table. Conforms to: * ACPI for the Armv8 RAS Extensions 1.1 Platform Design Document Sep 2020 * ******************************************************************************/ /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestHdr[] = { {ACPI_DMT_AEST, ACPI_AESTH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT16, ACPI_AESTH_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_AESTH_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_AESTH_OFFSET (NodeSpecificOffset), "Node Specific Offset", 0}, {ACPI_DMT_UINT32, ACPI_AESTH_OFFSET (NodeInterfaceOffset), "Node Interface Offset", 0}, {ACPI_DMT_UINT32, ACPI_AESTH_OFFSET (NodeInterruptOffset), "Node Interrupt Array Offset", 0}, {ACPI_DMT_UINT32, ACPI_AESTH_OFFSET (NodeInterruptCount), "Node Interrupt Array Count", 0}, {ACPI_DMT_UINT64, ACPI_AESTH_OFFSET (TimestampRate), "Timestamp Rate", 0}, {ACPI_DMT_UINT64, ACPI_AESTH_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_AESTH_OFFSET (ErrorInjectionRate), "Error Injection Rate", 0}, ACPI_DMT_TERMINATOR }; /* * AEST subtables (nodes) */ /* 0: Processor Error */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestProcError[] = { {ACPI_DMT_UINT32, ACPI_AEST0_OFFSET (ProcessorId), "Processor ID", 0}, {ACPI_DMT_AEST_RES, ACPI_AEST0_OFFSET (ResourceType), "Resource Type", 0}, {ACPI_DMT_UINT8, ACPI_AEST0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_AEST0_OFFSET (Flags), "Flags (decoded Below)", 0}, {ACPI_DMT_FLAG0, ACPI_AEST0_FLAG_OFFSET (Flags, 0), "Global", 0}, {ACPI_DMT_FLAG1, ACPI_AEST0_FLAG_OFFSET (Flags, 0), "Shared", 0}, {ACPI_DMT_UINT8, ACPI_AEST0_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT64, ACPI_AEST0_OFFSET (ProcessorAffinity), "Processor Affinity Structure", 0}, ACPI_DMT_TERMINATOR }; /* 0RT: Processor Cache Resource */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestCacheRsrc[] = { {ACPI_DMT_UINT32, ACPI_AEST0A_OFFSET (CacheReference), "Cache Reference", 0}, {ACPI_DMT_UINT32, ACPI_AEST0A_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 1RT: ProcessorTLB Resource */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestTlbRsrc[] = { {ACPI_DMT_UINT32, ACPI_AEST0B_OFFSET (TlbLevel), "TLB Level", 0}, {ACPI_DMT_UINT32, ACPI_AEST0B_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 2RT: Processor Generic Resource */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestGenRsrc[] = { {ACPI_DMT_RAW_BUFFER, 0, "Resource", 0}, ACPI_DMT_TERMINATOR }; /* 1: Memory Error */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestMemError[] = { {ACPI_DMT_UINT32, ACPI_AEST1_OFFSET (SratProximityDomain), "Srat Proximity Domain", 0}, ACPI_DMT_TERMINATOR }; /* 2: Smmu Error */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestSmmuError[] = { {ACPI_DMT_UINT32, ACPI_AEST2_OFFSET (IortNodeReference), "Iort Node Reference", 0}, {ACPI_DMT_UINT32, ACPI_AEST2_OFFSET (SubcomponentReference), "Subcomponent Reference", 0}, ACPI_DMT_TERMINATOR }; /* 3: Vendor Defined */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestVendorError[] = { {ACPI_DMT_UINT32, ACPI_AEST3_OFFSET (AcpiHid), "ACPI HID", 0}, {ACPI_DMT_UINT32, ACPI_AEST3_OFFSET (AcpiUid), "ACPI UID", 0}, {ACPI_DMT_BUF16, ACPI_AEST3_OFFSET (VendorSpecificData), "Vendor Specific Data", 0}, ACPI_DMT_TERMINATOR }; /* 3: Vendor Defined V2 */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestVendorV2Error[] = { {ACPI_DMT_UINT64, ACPI_AEST3A_OFFSET (AcpiHid), "ACPI HID", 0}, {ACPI_DMT_UINT32, ACPI_AEST3A_OFFSET (AcpiUid), "ACPI UID", 0}, {ACPI_DMT_BUF16, ACPI_AEST3A_OFFSET (VendorSpecificData), "Vendor Specific Data", 0}, ACPI_DMT_TERMINATOR }; /* 4: Gic Error */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestGicError[] = { {ACPI_DMT_AEST_GIC, ACPI_AEST4_OFFSET (InterfaceType), "GIC Interface Type", 0}, {ACPI_DMT_UINT32, ACPI_AEST4_OFFSET (InstanceId), "Instance ID", 0}, ACPI_DMT_TERMINATOR }; /* 5: PCIe Error */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestPCIeError[] = { {ACPI_DMT_UINT32, ACPI_AEST5_OFFSET (IortNodeReference), "Iort Node Reference", 0}, ACPI_DMT_TERMINATOR }; /* 6: Proxy Error */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestProxyError[] = { {ACPI_DMT_UINT64, ACPI_AEST6_OFFSET (NodeAddress), "Proxy Node Address", 0}, ACPI_DMT_TERMINATOR }; /* Common AEST structures for subtables */ #define ACPI_DM_AEST_INTERFACE_COMMON(a) \ {ACPI_DMT_UINT32, ACPI_AEST0D##a##_OFFSET (Common.ErrorNodeDevice), "Arm Error Node Device", 0},\ {ACPI_DMT_UINT32, ACPI_AEST0D##a##_OFFSET (Common.ProcessorAffinity), "Processor Affinity", 0}, \ {ACPI_DMT_UINT64, ACPI_AEST0D##a##_OFFSET (Common.ErrorGroupRegisterBase), "Err-Group Register Addr", 0}, \ {ACPI_DMT_UINT64, ACPI_AEST0D##a##_OFFSET (Common.FaultInjectRegisterBase), "Err-Inject Register Addr", 0}, \ {ACPI_DMT_UINT64, ACPI_AEST0D##a##_OFFSET (Common.InterruptConfigRegisterBase), "IRQ-Config Register Addr", 0}, /* AestXface: Node Interface Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface[] = { {ACPI_DMT_AEST_XFACE, ACPI_AEST0D_OFFSET (Type), "Interface Type", 0}, {ACPI_DMT_UINT24, ACPI_AEST0D_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_AEST0D_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_AEST0D_FLAG_OFFSET (Flags, 0), "Shared Interface", 0}, {ACPI_DMT_FLAG1, ACPI_AEST0D_FLAG_OFFSET (Flags, 0), "Clear MISCx Registers", 0}, {ACPI_DMT_UINT64, ACPI_AEST0D_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT32, ACPI_AEST0D_OFFSET (ErrorRecordIndex), "Error Record Index", 0}, {ACPI_DMT_UINT32, ACPI_AEST0D_OFFSET (ErrorRecordCount), "Error Record Count", 0}, {ACPI_DMT_UINT64, ACPI_AEST0D_OFFSET (ErrorRecordImplemented),"Error Record Implemented", 0}, {ACPI_DMT_UINT64, ACPI_AEST0D_OFFSET (ErrorStatusReporting), "Error Status Reporting", 0}, {ACPI_DMT_UINT64, ACPI_AEST0D_OFFSET (AddressingMode), "Addressing Mode", 0}, ACPI_DMT_TERMINATOR }; /* AestXface: Node Interface Structure V2 Header */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestXfaceHeader[] = { {ACPI_DMT_AEST_XFACE, ACPI_AEST0DH_OFFSET (Type), "Interface Type", 0}, {ACPI_DMT_UINT8, ACPI_AEST0DH_OFFSET (GroupFormat), "Group Format", 0}, {ACPI_DMT_UINT16, ACPI_AEST0DH_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_AEST0DH_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_AEST0D_FLAG_OFFSET (Flags, 0), "Shared Interface", 0}, {ACPI_DMT_FLAG1, ACPI_AEST0D_FLAG_OFFSET (Flags, 0), "Clear MISCx Registers", 0}, {ACPI_DMT_FLAG2, ACPI_AEST0D_FLAG_OFFSET (Flags, 0), "Error Node Device Valid", 0}, {ACPI_DMT_FLAG3, ACPI_AEST0D_FLAG_OFFSET (Flags, 0), "Affinity Type", 0}, {ACPI_DMT_FLAG4, ACPI_AEST0D_FLAG_OFFSET (Flags, 0), "Error group Address Valid", 0}, {ACPI_DMT_FLAG5, ACPI_AEST0D_FLAG_OFFSET (Flags, 0), "Fault Injection Address Valid", 0}, {ACPI_DMT_FLAG7, ACPI_AEST0D_FLAG_OFFSET (Flags, 0), "Interrupt Config Address valid", 0}, {ACPI_DMT_UINT64, ACPI_AEST0DH_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT32, ACPI_AEST0DH_OFFSET (ErrorRecordIndex), "Error Record Index", 0}, {ACPI_DMT_UINT32, ACPI_AEST0DH_OFFSET (ErrorRecordCount), "Error Record Count", 0}, ACPI_DMT_TERMINATOR }; /* AestXface: Node Interface Structure V2 4K Group Format */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface4k[] = { {ACPI_DMT_UINT64, ACPI_AEST0D4_OFFSET (ErrorRecordImplemented),"Error Record Implemented", 0}, {ACPI_DMT_UINT64, ACPI_AEST0D4_OFFSET (ErrorStatusReporting), "Error Status Reporting", 0}, {ACPI_DMT_UINT64, ACPI_AEST0D4_OFFSET (AddressingMode), "Addressing Mode", 0}, ACPI_DM_AEST_INTERFACE_COMMON(4) ACPI_DMT_TERMINATOR }; /* AestXface: Node Interface Structure V2 16K Group Format */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface16k[] = { {ACPI_DMT_BUF32, ACPI_AEST0D16_OFFSET (ErrorRecordImplemented[0]),"Error Record Implemented", 0}, {ACPI_DMT_BUF32, ACPI_AEST0D16_OFFSET (ErrorStatusReporting[0]), "Error Status Reporting", 0}, {ACPI_DMT_BUF32, ACPI_AEST0D16_OFFSET (AddressingMode[0]), "Addressing Mode", 0}, ACPI_DM_AEST_INTERFACE_COMMON(16) ACPI_DMT_TERMINATOR }; /* AestXface: Node Interface Structure V2 64K Group Format */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestXface64k[] = { {ACPI_DMT_BUF112, ACPI_AEST0D64_OFFSET (ErrorRecordImplemented[0]),"Error Record Implemented", 0}, {ACPI_DMT_BUF112, ACPI_AEST0D64_OFFSET (ErrorStatusReporting[0]), "Error Status Reporting", 0}, {ACPI_DMT_BUF112, ACPI_AEST0D64_OFFSET (AddressingMode[0]), "Addressing Mode", 0}, ACPI_DM_AEST_INTERFACE_COMMON(64) ACPI_DMT_TERMINATOR }; /* AestXrupt: Node Interrupt Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestXrupt[] = { {ACPI_DMT_AEST_XRUPT, ACPI_AEST0E_OFFSET (Type), "Interrupt Type", 0}, {ACPI_DMT_UINT16, ACPI_AEST0E_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_AEST0E_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_AEST0E_FLAG_OFFSET (Flags, 0), "Level Triggered", 0}, {ACPI_DMT_UINT32, ACPI_AEST0E_OFFSET (Gsiv), "Gsiv", 0}, {ACPI_DMT_UINT8, ACPI_AEST0E_OFFSET (IortId), "IortId", 0}, {ACPI_DMT_UINT24, ACPI_AEST0E_OFFSET (Reserved1[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* AestXrupt: Node Interrupt Structure V2 */ ACPI_DMTABLE_INFO AcpiDmTableInfoAestXruptV2[] = { {ACPI_DMT_AEST_XRUPT, ACPI_AEST0EA_OFFSET (Type), "Interrupt Type", 0}, {ACPI_DMT_UINT16, ACPI_AEST0EA_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_AEST0EA_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_AEST0EA_FLAG_OFFSET (Flags, 0), "Level Triggered", 0}, {ACPI_DMT_UINT32, ACPI_AEST0EA_OFFSET (Gsiv), "Gsiv", 0}, {ACPI_DMT_UINT32, ACPI_AEST0EA_OFFSET (Reserved1[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * ASF - Alert Standard Format table (Signature "ASF!") * ******************************************************************************/ /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoAsfHdr[] = { {ACPI_DMT_ASF, ACPI_ASF0_OFFSET (Header.Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_ASF0_OFFSET (Header.Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_ASF0_OFFSET (Header.Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* 0: ASF Information */ ACPI_DMTABLE_INFO AcpiDmTableInfoAsf0[] = { {ACPI_DMT_UINT8, ACPI_ASF0_OFFSET (MinResetValue), "Minimum Reset Value", 0}, {ACPI_DMT_UINT8, ACPI_ASF0_OFFSET (MinPollInterval), "Minimum Polling Interval", 0}, {ACPI_DMT_UINT16, ACPI_ASF0_OFFSET (SystemId), "System ID", 0}, {ACPI_DMT_UINT32, ACPI_ASF0_OFFSET (MfgId), "Manufacturer ID", 0}, {ACPI_DMT_UINT8, ACPI_ASF0_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT24, ACPI_ASF0_OFFSET (Reserved2[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 1: ASF Alerts */ ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1[] = { {ACPI_DMT_UINT8, ACPI_ASF1_OFFSET (AssertMask), "AssertMask", 0}, {ACPI_DMT_UINT8, ACPI_ASF1_OFFSET (DeassertMask), "DeassertMask", 0}, {ACPI_DMT_UINT8, ACPI_ASF1_OFFSET (Alerts), "Alert Count", 0}, {ACPI_DMT_UINT8, ACPI_ASF1_OFFSET (DataLength), "Alert Data Length", 0}, ACPI_DMT_TERMINATOR }; /* 1a: ASF Alert data */ ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1a[] = { {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (Command), "Command", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (Mask), "Mask", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (Value), "Value", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (SensorType), "SensorType", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (Type), "Type", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (Offset), "Offset", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (SourceType), "SourceType", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (Severity), "Severity", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (SensorNumber), "SensorNumber", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (Entity), "Entity", 0}, {ACPI_DMT_UINT8, ACPI_ASF1a_OFFSET (Instance), "Instance", 0}, ACPI_DMT_TERMINATOR }; /* 2: ASF Remote Control */ ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2[] = { {ACPI_DMT_UINT8, ACPI_ASF2_OFFSET (Controls), "Control Count", 0}, {ACPI_DMT_UINT8, ACPI_ASF2_OFFSET (DataLength), "Control Data Length", 0}, {ACPI_DMT_UINT16, ACPI_ASF2_OFFSET (Reserved2), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 2a: ASF Control data */ ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2a[] = { {ACPI_DMT_UINT8, ACPI_ASF2a_OFFSET (Function), "Function", 0}, {ACPI_DMT_UINT8, ACPI_ASF2a_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT8, ACPI_ASF2a_OFFSET (Command), "Command", 0}, {ACPI_DMT_UINT8, ACPI_ASF2a_OFFSET (Value), "Value", 0}, ACPI_DMT_TERMINATOR }; /* 3: ASF RMCP Boot Options */ ACPI_DMTABLE_INFO AcpiDmTableInfoAsf3[] = { {ACPI_DMT_BUF7, ACPI_ASF3_OFFSET (Capabilities[0]), "Capabilities", 0}, {ACPI_DMT_UINT8, ACPI_ASF3_OFFSET (CompletionCode), "Completion Code", 0}, {ACPI_DMT_UINT32, ACPI_ASF3_OFFSET (EnterpriseId), "Enterprise ID", 0}, {ACPI_DMT_UINT8, ACPI_ASF3_OFFSET (Command), "Command", 0}, {ACPI_DMT_UINT16, ACPI_ASF3_OFFSET (Parameter), "Parameter", 0}, {ACPI_DMT_UINT16, ACPI_ASF3_OFFSET (BootOptions), "Boot Options", 0}, {ACPI_DMT_UINT16, ACPI_ASF3_OFFSET (OemParameters), "Oem Parameters", 0}, ACPI_DMT_TERMINATOR }; /* 4: ASF Address */ ACPI_DMTABLE_INFO AcpiDmTableInfoAsf4[] = { {ACPI_DMT_UINT8, ACPI_ASF4_OFFSET (EpromAddress), "Eprom Address", 0}, {ACPI_DMT_UINT8, ACPI_ASF4_OFFSET (Devices), "Device Count", DT_COUNT}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * ASPT - AMD Secure Processor table (Signature "ASPT") * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoAspt[] = { {ACPI_DMT_UINT32, ACPI_ASPT_OFFSET(NumEntries), "Number of Subtables", 0}, ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoAsptHdr[] = { {ACPI_DMT_ASPT, ACPI_ASPTH_OFFSET(Type), "Type", 0}, {ACPI_DMT_UINT16, ACPI_ASPTH_OFFSET(Length), "Length", 0}, ACPI_DMT_TERMINATOR }; /* 0: ASPT Global Registers */ ACPI_DMTABLE_INFO AcpiDmTableInfoAspt0[] = { {ACPI_DMT_UINT32, ACPI_ASPT0_OFFSET(Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_ASPT0_OFFSET(FeatureRegAddr), "Feature Register Address", 0}, {ACPI_DMT_UINT64, ACPI_ASPT0_OFFSET(IrqEnRegAddr), "Interrupt Enable Register Address", 0}, {ACPI_DMT_UINT64, ACPI_ASPT0_OFFSET(IrqStRegAddr), "Interrupt Status Register Address", 0}, ACPI_DMT_TERMINATOR }; /* 1: ASPT SEV Mailbox Registers */ ACPI_DMTABLE_INFO AcpiDmTableInfoAspt1[] = { {ACPI_DMT_UINT8, ACPI_ASPT1_OFFSET(MboxIrqId), "Mailbox Interrupt ID", 0}, {ACPI_DMT_UINT24, ACPI_ASPT1_OFFSET(Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_ASPT1_OFFSET(CmdRespRegAddr), "CmdResp Register Address", 0}, {ACPI_DMT_UINT64, ACPI_ASPT1_OFFSET(CmdBufLoRegAddr), "CmdBufAddr_Lo Register Address", 0}, {ACPI_DMT_UINT64, ACPI_ASPT1_OFFSET(CmdBufHiRegAddr), "CmdBufAddr_Hi Register Address", 0}, ACPI_DMT_TERMINATOR }; /* 2: ASPT ACPI Maiblox Registers */ ACPI_DMTABLE_INFO AcpiDmTableInfoAspt2[] = { {ACPI_DMT_UINT32, ACPI_ASPT2_OFFSET(Reserved1), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_ASPT2_OFFSET(CmdRespRegAddr), "CmdResp Register Address", 0}, {ACPI_DMT_UINT64, ACPI_ASPT2_OFFSET(Reserved2[0]), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_ASPT2_OFFSET(Reserved2[1]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * BDAT - BIOS Data ACPI Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoBdat[] = { {ACPI_DMT_GAS, ACPI_BDAT_OFFSET (Gas), "BDAT Generic Address", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * BERT - Boot Error Record table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoBert[] = { {ACPI_DMT_UINT32, ACPI_BERT_OFFSET (RegionLength), "Boot Error Region Length", 0}, {ACPI_DMT_UINT64, ACPI_BERT_OFFSET (Address), "Boot Error Region Address", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * BGRT - Boot Graphics Resource Table (ACPI 5.0) * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoBgrt[] = { {ACPI_DMT_UINT16, ACPI_BGRT_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT8, ACPI_BGRT_OFFSET (Status), "Status (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_BGRT_FLAG_OFFSET (Status, 0), "Displayed", 0}, {ACPI_DMT_FLAGS1, ACPI_BGRT_FLAG_OFFSET (Status, 0), "Orientation Offset", 0}, {ACPI_DMT_UINT8, ACPI_BGRT_OFFSET (ImageType), "Image Type", 0}, {ACPI_DMT_UINT64, ACPI_BGRT_OFFSET (ImageAddress), "Image Address", 0}, {ACPI_DMT_UINT32, ACPI_BGRT_OFFSET (ImageOffsetX), "Image OffsetX", 0}, {ACPI_DMT_UINT32, ACPI_BGRT_OFFSET (ImageOffsetY), "Image OffsetY", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * BOOT - Simple Boot Flag Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoBoot[] = { {ACPI_DMT_UINT8, ACPI_BOOT_OFFSET (CmosIndex), "Boot Register Index", 0}, {ACPI_DMT_UINT24, ACPI_BOOT_OFFSET (Reserved[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * CDAT - Coherent Device Attribute Table * ******************************************************************************/ /* Table header (not ACPI-compliant) */ ACPI_DMTABLE_INFO AcpiDmTableInfoCdatTableHdr[] = { {ACPI_DMT_UINT32, ACPI_CDAT_OFFSET (Length), "CDAT Table Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_CDAT_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT8, ACPI_CDAT_OFFSET (Checksum), "Checksum", 0}, {ACPI_DMT_UINT48, ACPI_CDAT_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_CDAT_OFFSET (Sequence), "Sequence", 0}, ACPI_DMT_TERMINATOR }; /* Common subtable header */ ACPI_DMTABLE_INFO AcpiDmTableInfoCdatHeader[] = { {ACPI_DMT_CDAT, ACPI_CDATH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_CDATH_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_CDATH_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* Subtable 0: Device Scoped Memory Affinity Structure (DSMAS) */ ACPI_DMTABLE_INFO AcpiDmTableInfoCdat0[] = { {ACPI_DMT_UINT8, ACPI_CDAT0_OFFSET (DsmadHandle), "DSMAD Handle", 0}, {ACPI_DMT_UINT8, ACPI_CDAT0_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT16, ACPI_CDAT0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_CDAT0_OFFSET (DpaBaseAddress), "DPA Base Address", 0}, {ACPI_DMT_UINT64, ACPI_CDAT0_OFFSET (DpaLength), "DPA Length", 0}, ACPI_DMT_TERMINATOR }; /* Subtable 1: Device scoped Latency and Bandwidth Information Structure (DSLBIS) */ ACPI_DMTABLE_INFO AcpiDmTableInfoCdat1[] = { {ACPI_DMT_UINT8, ACPI_CDAT1_OFFSET (Handle), "Handle", 0}, {ACPI_DMT_UINT8, ACPI_CDAT1_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_CDAT1_OFFSET (DataType), "Data Type", 0}, {ACPI_DMT_UINT8, ACPI_CDAT1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_CDAT1_OFFSET (EntryBaseUnit), "Entry Base Unit", 0}, {ACPI_DMT_UINT16, ACPI_CDAT1_OFFSET (Entry[0]), "Entry0", 0}, {ACPI_DMT_UINT16, ACPI_CDAT1_OFFSET (Entry[1]), "Entry1", 0}, {ACPI_DMT_UINT16, ACPI_CDAT1_OFFSET (Entry[2]), "Entry2", 0}, {ACPI_DMT_UINT16, ACPI_CDAT1_OFFSET (Reserved2), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* Subtable 2: Device Scoped Memory Side Cache Information Structure (DSMSCIS) */ ACPI_DMTABLE_INFO AcpiDmTableInfoCdat2[] = { {ACPI_DMT_UINT8, ACPI_CDAT2_OFFSET (DsmasHandle), "DSMAS Handle", 0}, {ACPI_DMT_UINT24, ACPI_CDAT2_OFFSET (Reserved[3]), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_CDAT2_OFFSET (SideCacheSize), "Side Cache Size", 0}, {ACPI_DMT_UINT32, ACPI_CDAT2_OFFSET (CacheAttributes), "Cache Attributes", 0}, ACPI_DMT_TERMINATOR }; /* Subtable 3: Device Scoped Initiator Structure (DSIS) */ ACPI_DMTABLE_INFO AcpiDmTableInfoCdat3[] = { {ACPI_DMT_UINT8, ACPI_CDAT3_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_CDAT3_OFFSET (Handle), "Handle", 0}, {ACPI_DMT_UINT16, ACPI_CDAT3_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* Subtable 4: Device Scoped EFI Memory Type Structure (DSEMTS) */ ACPI_DMTABLE_INFO AcpiDmTableInfoCdat4[] = { {ACPI_DMT_UINT8, ACPI_CDAT4_OFFSET (DsmasHandle), "DSMAS Handle", 0}, {ACPI_DMT_UINT8, ACPI_CDAT4_OFFSET (MemoryType), "Memory Type", 0}, {ACPI_DMT_UINT16, ACPI_CDAT4_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_CDAT4_OFFSET (DpaOffset), "DPA Offset", 0}, {ACPI_DMT_UINT64, ACPI_CDAT4_OFFSET (RangeLength), "DPA Range Length", 0}, ACPI_DMT_TERMINATOR }; /* Subtable 5: Switch Scoped Latency and Bandwidth Information Structure (SSLBIS) */ ACPI_DMTABLE_INFO AcpiDmTableInfoCdat5[] = { {ACPI_DMT_UINT8, ACPI_CDAT5_OFFSET (DataType), "Data Type", 0}, {ACPI_DMT_UINT24, ACPI_CDAT5_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_CDAT5_OFFSET (EntryBaseUnit), "Entry Base Unit", 0}, ACPI_DMT_TERMINATOR }; /* Switch Scoped Latency and Bandwidth Entry (SSLBE) (For subtable 5 above) */ ACPI_DMTABLE_INFO AcpiDmTableInfoCdatEntries[] = { {ACPI_DMT_UINT16, ACPI_CDATE_OFFSET (PortxId), "Port X Id", 0}, {ACPI_DMT_UINT16, ACPI_CDATE_OFFSET (PortyId), "Port Y Id", 0}, {ACPI_DMT_UINT16, ACPI_CDATE_OFFSET (LatencyOrBandwidth), "Latency or Bandwidth", 0}, {ACPI_DMT_UINT16, ACPI_CDATE_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * CEDT - CXL Early Discovery Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoCedtHdr[] = { {ACPI_DMT_CEDT, ACPI_CEDT_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_CEDT_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_CEDT_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* 0: CXL Host Bridge Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoCedt0[] = { {ACPI_DMT_UINT32, ACPI_CEDT0_OFFSET (Uid), "Associated host bridge", 0}, {ACPI_DMT_UINT32, ACPI_CEDT0_OFFSET (CxlVersion), "Specification version", 0}, {ACPI_DMT_UINT32, ACPI_CEDT0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_CEDT0_OFFSET (Base), "Register base", 0}, {ACPI_DMT_UINT64, ACPI_CEDT0_OFFSET (Length), "Register length", 0}, ACPI_DMT_TERMINATOR }; /* 1: CXL Fixed Memory Window Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoCedt1[] = { {ACPI_DMT_UINT32, ACPI_CEDT1_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_CEDT1_OFFSET (BaseHpa), "Window base address", 0}, {ACPI_DMT_UINT64, ACPI_CEDT1_OFFSET (WindowSize), "Window size", 0}, {ACPI_DMT_UINT8, ACPI_CEDT1_OFFSET (InterleaveWays), "Interleave Members", 0}, {ACPI_DMT_UINT8, ACPI_CEDT1_OFFSET (InterleaveArithmetic), "Interleave Arithmetic", 0}, {ACPI_DMT_UINT16, ACPI_CEDT1_OFFSET (Reserved2), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_CEDT1_OFFSET (Granularity), "Granularity", 0}, {ACPI_DMT_UINT16, ACPI_CEDT1_OFFSET (Restrictions), "Restrictions", 0}, {ACPI_DMT_UINT16, ACPI_CEDT1_OFFSET (QtgId), "QtgId", 0}, {ACPI_DMT_UINT32, ACPI_CEDT1_OFFSET (InterleaveTargets), "First Target", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoCedt1_te[] = { {ACPI_DMT_UINT32, ACPI_CEDT1_TE_OFFSET (InterleaveTarget), "Next Target", 0}, ACPI_DMT_TERMINATOR }; /* 2: CXL XOR Interleave Math Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoCedt2[] = { {ACPI_DMT_UINT16, ACPI_CEDT2_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_CEDT2_OFFSET (Hbig), "Interleave Granularity", 0}, {ACPI_DMT_UINT8, ACPI_CEDT2_OFFSET (NrXormaps), "Xormap List Count", 0}, {ACPI_DMT_UINT64, ACPI_CEDT2_OFFSET (XormapList), "First Xormap", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoCedt2_te[] = { {ACPI_DMT_UINT64, ACPI_CEDT2_TE_OFFSET (Xormap), "Next Xormap", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * CPEP - Corrected Platform Error Polling table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoCpep[] = { {ACPI_DMT_UINT64, ACPI_CPEP_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoCpep0[] = { {ACPI_DMT_UINT8, ACPI_CPEP0_OFFSET (Header.Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_CPEP0_OFFSET (Header.Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_CPEP0_OFFSET (Id), "Processor ID", 0}, {ACPI_DMT_UINT8, ACPI_CPEP0_OFFSET (Eid), "Processor EID", 0}, {ACPI_DMT_UINT32, ACPI_CPEP0_OFFSET (Interval), "Polling Interval", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * CSRT - Core System Resource Table * ******************************************************************************/ /* Main table consists only of the standard ACPI table header */ /* Resource Group subtable */ ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt0[] = { {ACPI_DMT_UINT32, ACPI_CSRT0_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT32, ACPI_CSRT0_OFFSET (VendorId), "Vendor ID", 0}, {ACPI_DMT_UINT32, ACPI_CSRT0_OFFSET (SubvendorId), "Subvendor ID", 0}, {ACPI_DMT_UINT16, ACPI_CSRT0_OFFSET (DeviceId), "Device ID", 0}, {ACPI_DMT_UINT16, ACPI_CSRT0_OFFSET (SubdeviceId), "Subdevice ID", 0}, {ACPI_DMT_UINT16, ACPI_CSRT0_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT16, ACPI_CSRT0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_CSRT0_OFFSET (SharedInfoLength), "Shared Info Length", 0}, ACPI_DMT_TERMINATOR }; /* Shared Info subtable */ ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt1[] = { {ACPI_DMT_UINT16, ACPI_CSRT1_OFFSET (MajorVersion), "Major Version", 0}, {ACPI_DMT_UINT16, ACPI_CSRT1_OFFSET (MinorVersion), "Minor Version", 0}, {ACPI_DMT_UINT32, ACPI_CSRT1_OFFSET (MmioBaseLow), "MMIO Base Address Low", 0}, {ACPI_DMT_UINT32, ACPI_CSRT1_OFFSET (MmioBaseHigh), "MMIO Base Address High", 0}, {ACPI_DMT_UINT32, ACPI_CSRT1_OFFSET (GsiInterrupt), "GSI Interrupt", 0}, {ACPI_DMT_UINT8, ACPI_CSRT1_OFFSET (InterruptPolarity), "Interrupt Polarity", 0}, {ACPI_DMT_UINT8, ACPI_CSRT1_OFFSET (InterruptMode), "Interrupt Mode", 0}, {ACPI_DMT_UINT8, ACPI_CSRT1_OFFSET (NumChannels), "Num Channels", 0}, {ACPI_DMT_UINT8, ACPI_CSRT1_OFFSET (DmaAddressWidth), "DMA Address Width", 0}, {ACPI_DMT_UINT16, ACPI_CSRT1_OFFSET (BaseRequestLine), "Base Request Line", 0}, {ACPI_DMT_UINT16, ACPI_CSRT1_OFFSET (NumHandshakeSignals), "Num Handshake Signals", 0}, {ACPI_DMT_UINT32, ACPI_CSRT1_OFFSET (MaxBlockSize), "Max Block Size", 0}, ACPI_DMT_TERMINATOR }; /* Resource Descriptor subtable */ ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2[] = { {ACPI_DMT_UINT32, ACPI_CSRT2_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT16, ACPI_CSRT2_OFFSET (Type), "Type", 0}, {ACPI_DMT_UINT16, ACPI_CSRT2_OFFSET (Subtype), "Subtype", 0}, {ACPI_DMT_UINT32, ACPI_CSRT2_OFFSET (Uid), "UID", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2a[] = { {ACPI_DMT_RAW_BUFFER, 0, "ResourceInfo", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * DBG2 - Debug Port Table 2 * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2[] = { {ACPI_DMT_UINT32, ACPI_DBG2_OFFSET (InfoOffset), "Info Offset", 0}, {ACPI_DMT_UINT32, ACPI_DBG2_OFFSET (InfoCount), "Info Count", 0}, ACPI_DMT_TERMINATOR }; /* Debug Device Information Subtable */ ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Device[] = { {ACPI_DMT_UINT8, ACPI_DBG20_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_DBG20_OFFSET (RegisterCount), "Register Count", 0}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (NamepathLength), "Namepath Length", 0}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (NamepathOffset), "Namepath Offset", 0}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (OemDataLength), "OEM Data Length", DT_DESCRIBES_OPTIONAL}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (OemDataOffset), "OEM Data Offset", DT_DESCRIBES_OPTIONAL}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (PortType), "Port Type", 0}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (PortSubtype), "Port Subtype", 0}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (BaseAddressOffset), "Base Address Offset", 0}, {ACPI_DMT_UINT16, ACPI_DBG20_OFFSET (AddressSizeOffset), "Address Size Offset", 0}, ACPI_DMT_TERMINATOR }; /* Variable-length data for the subtable */ ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Addr[] = { {ACPI_DMT_GAS, 0, "Base Address Register", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Size[] = { {ACPI_DMT_UINT32, 0, "Address Size", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Name[] = { {ACPI_DMT_STRING, 0, "Namepath", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2OemData[] = { {ACPI_DMT_RAW_BUFFER, 0, "OEM Data", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * DBGP - Debug Port * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoDbgp[] = { {ACPI_DMT_UINT8, ACPI_DBGP_OFFSET (Type), "Interface Type", 0}, {ACPI_DMT_UINT24, ACPI_DBGP_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_GAS, ACPI_DBGP_OFFSET (DebugPort), "Debug Port Register", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * DMAR - DMA Remapping table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoDmar[] = { {ACPI_DMT_UINT8, ACPI_DMAR_OFFSET (Width), "Host Address Width", 0}, {ACPI_DMT_UINT8, ACPI_DMAR_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_BUF10, ACPI_DMAR_OFFSET (Reserved[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoDmarHdr[] = { {ACPI_DMT_DMAR, ACPI_DMAR0_OFFSET (Header.Type), "Subtable Type", 0}, {ACPI_DMT_UINT16, ACPI_DMAR0_OFFSET (Header.Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* Common device scope entry */ ACPI_DMTABLE_INFO AcpiDmTableInfoDmarScope[] = { {ACPI_DMT_DMAR_SCOPE, ACPI_DMARS_OFFSET (EntryType), "Device Scope Type", 0}, {ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (Length), "Entry Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (EnumerationId), "Enumeration ID", 0}, {ACPI_DMT_UINT8, ACPI_DMARS_OFFSET (Bus), "PCI Bus Number", 0}, ACPI_DMT_TERMINATOR }; /* DMAR Subtables */ /* 0: Hardware Unit Definition */ ACPI_DMTABLE_INFO AcpiDmTableInfoDmar0[] = { {ACPI_DMT_UINT8, ACPI_DMAR0_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_DMAR0_OFFSET (Size), "Size (decoded below)", 0}, {ACPI_DMT_FLAGS4_0, ACPI_DMAR0_FLAG_OFFSET (Size,0), "Size (pages, log2)", 0}, {ACPI_DMT_UINT16, ACPI_DMAR0_OFFSET (Segment), "PCI Segment Number", 0}, {ACPI_DMT_UINT64, ACPI_DMAR0_OFFSET (Address), "Register Base Address", 0}, ACPI_DMT_TERMINATOR }; /* 1: Reserved Memory Definition */ ACPI_DMTABLE_INFO AcpiDmTableInfoDmar1[] = { {ACPI_DMT_UINT16, ACPI_DMAR1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_DMAR1_OFFSET (Segment), "PCI Segment Number", 0}, {ACPI_DMT_UINT64, ACPI_DMAR1_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_DMAR1_OFFSET (EndAddress), "End Address (limit)", 0}, ACPI_DMT_TERMINATOR }; /* 2: Root Port ATS Capability Definition */ ACPI_DMTABLE_INFO AcpiDmTableInfoDmar2[] = { {ACPI_DMT_UINT8, ACPI_DMAR2_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_DMAR2_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_DMAR2_OFFSET (Segment), "PCI Segment Number", 0}, ACPI_DMT_TERMINATOR }; /* 3: Remapping Hardware Static Affinity Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoDmar3[] = { {ACPI_DMT_UINT32, ACPI_DMAR3_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_DMAR3_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_DMAR3_OFFSET (ProximityDomain), "Proximity Domain", 0}, ACPI_DMT_TERMINATOR }; /* 4: ACPI Namespace Device Declaration Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoDmar4[] = { {ACPI_DMT_UINT24, ACPI_DMAR4_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_DMAR4_OFFSET (DeviceNumber), "Device Number", 0}, {ACPI_DMT_STRING, ACPI_DMAR4_OFFSET (DeviceName[0]), "Device Name", 0}, ACPI_DMT_TERMINATOR }; /* 5: SoC Integrated Address Translation Cache */ ACPI_DMTABLE_INFO AcpiDmTableInfoDmar5[] = { {ACPI_DMT_UINT8, ACPI_DMAR5_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_DMAR5_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_DMAR5_OFFSET (Segment), "PCI Segment Number", 0}, ACPI_DMT_TERMINATOR }; /* 6: SoC Integrated Device Property */ ACPI_DMTABLE_INFO AcpiDmTableInfoDmar6[] = { {ACPI_DMT_UINT16, ACPI_DMAR6_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_DMAR6_OFFSET (Segment), "PCI Segment Number", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * DRTM - Dynamic Root of Trust for Measurement table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm[] = { {ACPI_DMT_UINT64, ACPI_DRTM_OFFSET (EntryBaseAddress), "Entry Base Address", 0}, {ACPI_DMT_UINT64, ACPI_DRTM_OFFSET (EntryLength), "Entry Length", 0}, {ACPI_DMT_UINT32, ACPI_DRTM_OFFSET (EntryAddress32), "Entry 32", 0}, {ACPI_DMT_UINT64, ACPI_DRTM_OFFSET (EntryAddress64), "Entry 64", 0}, {ACPI_DMT_UINT64, ACPI_DRTM_OFFSET (ExitAddress), "Exit Address", 0}, {ACPI_DMT_UINT64, ACPI_DRTM_OFFSET (LogAreaAddress), "Log Area Start", 0}, {ACPI_DMT_UINT32, ACPI_DRTM_OFFSET (LogAreaLength), "Log Area Length", 0}, {ACPI_DMT_UINT64, ACPI_DRTM_OFFSET (ArchDependentAddress), "Arch Dependent Address", 0}, {ACPI_DMT_UINT32, ACPI_DRTM_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_DRTM_FLAG_OFFSET (Flags, 0), "Namespace in TCB", 0}, {ACPI_DMT_FLAG1, ACPI_DRTM_FLAG_OFFSET (Flags, 0), "Gap Code on S3 Resume", 0}, {ACPI_DMT_FLAG2, ACPI_DRTM_FLAG_OFFSET (Flags, 0), "Gap Code on DLME_Exit", 0}, {ACPI_DMT_FLAG3, ACPI_DRTM_FLAG_OFFSET (Flags, 0), "PCR_Authorities Changed", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0[] = { {ACPI_DMT_UINT32, ACPI_DRTM0_OFFSET (ValidatedTableCount), "Validated Table Count", DT_COUNT}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0a[] = { {ACPI_DMT_UINT64, 0, "Table Address", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1[] = { {ACPI_DMT_UINT32, ACPI_DRTM1_OFFSET (ResourceCount), "Resource Count", DT_COUNT}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1a[] = { {ACPI_DMT_UINT56, ACPI_DRTM1a_OFFSET (Size[0]), "Size", DT_OPTIONAL}, {ACPI_DMT_UINT8, ACPI_DRTM1a_OFFSET (Type), "Type", 0}, {ACPI_DMT_FLAG0, ACPI_DRTM1a_FLAG_OFFSET (Type, 0), "Resource Type", 0}, {ACPI_DMT_FLAG7, ACPI_DRTM1a_FLAG_OFFSET (Type, 0), "Protections", 0}, {ACPI_DMT_UINT64, ACPI_DRTM1a_OFFSET (Address), "Address", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm2[] = { {ACPI_DMT_UINT32, ACPI_DRTM2_OFFSET (DpsIdLength), "DLME Platform Id Length", DT_COUNT}, {ACPI_DMT_BUF16, ACPI_DRTM2_OFFSET (DpsId), "DLME Platform Id", DT_COUNT}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * ECDT - Embedded Controller Boot Resources Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoEcdt[] = { {ACPI_DMT_GAS, ACPI_ECDT_OFFSET (Control), "Command/Status Register", 0}, {ACPI_DMT_GAS, ACPI_ECDT_OFFSET (Data), "Data Register", 0}, {ACPI_DMT_UINT32, ACPI_ECDT_OFFSET (Uid), "UID", 0}, {ACPI_DMT_UINT8, ACPI_ECDT_OFFSET (Gpe), "GPE Number", 0}, {ACPI_DMT_STRING, ACPI_ECDT_OFFSET (Id[0]), "Namepath", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * EINJ - Error Injection table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoEinj[] = { {ACPI_DMT_UINT32, ACPI_EINJ_OFFSET (HeaderLength), "Injection Header Length", 0}, {ACPI_DMT_UINT8, ACPI_EINJ_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT24, ACPI_EINJ_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_EINJ_OFFSET (Entries), "Injection Entry Count", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoEinj0[] = { {ACPI_DMT_EINJACT, ACPI_EINJ0_OFFSET (Action), "Action", 0}, {ACPI_DMT_EINJINST, ACPI_EINJ0_OFFSET (Instruction), "Instruction", 0}, {ACPI_DMT_UINT8, ACPI_EINJ0_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_EINJ0_FLAG_OFFSET (Flags,0), "Preserve Register Bits", 0}, {ACPI_DMT_UINT8, ACPI_EINJ0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_GAS, ACPI_EINJ0_OFFSET (RegisterRegion), "Register Region", 0}, {ACPI_DMT_UINT64, ACPI_EINJ0_OFFSET (Value), "Value", 0}, {ACPI_DMT_UINT64, ACPI_EINJ0_OFFSET (Mask), "Mask", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * ERDT - Enhanced Resource Director Technology table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdt[] = { {ACPI_DMT_UINT32, ACPI_ERDT_OFFSET (MaxClos), "Maximum supported CLOSID", 0}, {ACPI_DMT_BUF24, ACPI_ERDT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * ERDT - Common Subtable Header * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtHdr[] = { {ACPI_DMT_ERDT, ACPI_ERDT_HDR_OFFSET (Type), "Type", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_HDR_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - ERDT Resource Management Domain Description subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtRmdd[] = { {ACPI_DMT_UINT16, ACPI_ERDT_RMDD_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_ERDT_RMDD_FLAG_OFFSET (Flags,0), "L3 Domain", 0}, {ACPI_DMT_FLAG1, ACPI_ERDT_RMDD_FLAG_OFFSET (Flags,0), "I/O L3 Domain", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_RMDD_OFFSET (IO_l3_Slices), "I/O L3 Slices", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_RMDD_OFFSET (IO_l3_Sets), "I/O L3 Sets", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_RMDD_OFFSET (IO_l3_Ways), "I/O L3 Ways", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_RMDD_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_RMDD_OFFSET (DomainId), "Domain ID", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_RMDD_OFFSET (MaxRmid), "Maximum supported RMID", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_RMDD_OFFSET (CregBase), "Control Register Base Address", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_RMDD_OFFSET (CregSize), "Control Register Base Size", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - CACD CPU Agent Collection Description subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCacd[] = { {ACPI_DMT_UINT16, ACPI_ERDT_CACD_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_CACD_OFFSET (DomainId), "Domain ID", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCacdX2apic[] = { {ACPI_DMT_UINT32, 0, "X2ApicID", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - DACD Device Agent Collection Description subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtDacd[] = { {ACPI_DMT_UINT16, ACPI_ERDT_DACD_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_DACD_OFFSET (DomainId), "Domain ID", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoErdtDacdScope[] = { {ACPI_DMT_UINT8, ACPI_ERDT_DACD_PATH_OFFSET (Header.Type), "PCIType", DT_OPTIONAL}, {ACPI_DMT_UINT8, ACPI_ERDT_DACD_PATH_OFFSET (Header.Length), "Length", DT_OPTIONAL}, {ACPI_DMT_UINT16, ACPI_ERDT_DACD_PATH_OFFSET (Segment), "Segment", DT_OPTIONAL}, {ACPI_DMT_UINT8, ACPI_ERDT_DACD_PATH_OFFSET (Reserved), "Reserved", DT_OPTIONAL}, {ACPI_DMT_UINT8, ACPI_ERDT_DACD_PATH_OFFSET (StartBus), "StartBus", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoErdtDacdPath[] = { {ACPI_DMT_UINT8, 0, "Path", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - Cache Monitoring Registers for CPU Agents subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCmrc[] = { {ACPI_DMT_UINT32, ACPI_ERDT_CMRC_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_CMRC_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_CMRC_OFFSET (IndexFn), "Register Index Function", 0}, {ACPI_DMT_BUF11, ACPI_ERDT_CMRC_OFFSET (Reserved2), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_CMRC_OFFSET (CmtRegBase), "CMT Register Base Address", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_CMRC_OFFSET (CmtRegSize), "CMT Register Size", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_CMRC_OFFSET (ClumpSize), "Clump Size", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_CMRC_OFFSET (ClumpStride), "Clump Stride", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_CMRC_OFFSET (UpScale), "Upscale factor", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - Memory-bandwidth Monitoring Registers for CPU agents subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtMmrc[] = { {ACPI_DMT_UINT32, ACPI_ERDT_MMRC_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_MMRC_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_MMRC_OFFSET (IndexFn), "Register Index Function", 0}, {ACPI_DMT_BUF11, ACPI_ERDT_MMRC_OFFSET (Reserved2), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_MMRC_OFFSET (RegBase), "MBM Register Base Address", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_MMRC_OFFSET (RegSize), "MBM Register Size", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_MMRC_OFFSET (CounterWidth), "MBM Counter Width", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_MMRC_OFFSET (UpScale), "Upscale factor", 0}, {ACPI_DMT_UINT56, ACPI_ERDT_MMRC_OFFSET (Reserved3), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_MMRC_OFFSET (CorrFactorListLen), "Corr Factor List Length", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoErdtMmrcCorrFactor[] = { {ACPI_DMT_UINT32, 0, "CorrFactor", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - Memory-bandwidth Allocation Registers for CPU agents subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtMarc[] = { {ACPI_DMT_UINT16, ACPI_ERDT_MARC_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_MARC_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_MARC_OFFSET (IndexFn), "Register Index Function", 0}, {ACPI_DMT_UINT56, ACPI_ERDT_MARC_OFFSET (Reserved2), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_MARC_OFFSET (RegBaseOpt), "MBA Register Opt Base Address", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_MARC_OFFSET (RegBaseMin), "MBA Register Min Base Address", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_MARC_OFFSET (RegBaseMax), "MBA Register Max Base Address", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_MARC_OFFSET (MbaRegSize), "MBA Register Size", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_MARC_OFFSET (MbaCtrlRange), "MBA Control Range", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - Cache Allocation Registers for CPU Agents subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCarc[] = { ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - Cache Monitoring Registers for Device Agents subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCmrd[] = { {ACPI_DMT_UINT32, ACPI_ERDT_CMRD_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_CMRD_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_CMRD_OFFSET (IndexFn), "Register Index Function", 0}, {ACPI_DMT_BUF11, ACPI_ERDT_CMRD_OFFSET (Reserved2), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_CMRD_OFFSET (RegBase), "CMRD Register Base Address", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_CMRD_OFFSET (RegSize), "CMRD Register Size", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_CMRD_OFFSET (CmtRegOff), "Register Offset", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_CMRD_OFFSET (CmtClumpSize), "Clump Size", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_CMRD_OFFSET (UpScale), "Upscale factor", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - O Bandwidth Monitoring Registers for Device Agents subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtIbrd[] = { {ACPI_DMT_UINT32, ACPI_ERDT_IBRD_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_IBRD_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_IBRD_OFFSET (IndexFn), "Register Index Function", 0}, {ACPI_DMT_BUF11, ACPI_ERDT_IBRD_OFFSET (Reserved2), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_IBRD_OFFSET (RegBase), "IBRD Register Base Address", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_IBRD_OFFSET (RegSize), "IBRD Register Size", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_IBRD_OFFSET (TotalBwOffset), "TotalBw Offset", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_IBRD_OFFSET (IOMissBwOffset), "IO Miss Offset", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_IBRD_OFFSET (TotalBwClump), "TotalBw Clump", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_IBRD_OFFSET (IOMissBwClump), "IO Miss Clump", 0}, {ACPI_DMT_UINT56, ACPI_ERDT_IBRD_OFFSET (Reserved3), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_IBRD_OFFSET (CounterWidth), "Counter Width", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_IBRD_OFFSET (UpScale), "Upscale factor", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_IBRD_OFFSET (CorrFactorListLen), "Corr Factor List Length", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoErdtIbrdCorrFactor[] = { {ACPI_DMT_UINT32, 0, "CorrFactor", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - O bandwidth Allocation Registers for Device Agents subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtIbad[] = { ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RMDD - Cache Allocation Registers for Device Agents subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErdtCard[] = { {ACPI_DMT_UINT32, ACPI_ERDT_CARD_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_CARD_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_CARD_OFFSET (ContentionMask), "ContentionMask", 0}, {ACPI_DMT_UINT8, ACPI_ERDT_CARD_OFFSET (IndexFn), "Register Index Function", 0}, {ACPI_DMT_UINT56, ACPI_ERDT_CARD_OFFSET (Reserved2), "Register Index Function", 0}, {ACPI_DMT_UINT64, ACPI_ERDT_CARD_OFFSET (RegBase), "CARD Register Base Address", 0}, {ACPI_DMT_UINT32, ACPI_ERDT_CARD_OFFSET (RegSize), "CARD Register Size", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_CARD_OFFSET (CatRegOffset), "CARD Register Offset", 0}, {ACPI_DMT_UINT16, ACPI_ERDT_CARD_OFFSET (CatRegBlockSize), "CARD Register Block Size", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * ERST - Error Record Serialization table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoErst[] = { {ACPI_DMT_UINT32, ACPI_ERST_OFFSET (HeaderLength), "Serialization Header Length", 0}, {ACPI_DMT_UINT32, ACPI_ERST_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_ERST_OFFSET (Entries), "Instruction Entry Count", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoErst0[] = { {ACPI_DMT_ERSTACT, ACPI_ERST0_OFFSET (Action), "Action", 0}, {ACPI_DMT_ERSTINST, ACPI_ERST0_OFFSET (Instruction), "Instruction", 0}, {ACPI_DMT_UINT8, ACPI_ERST0_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_ERST0_FLAG_OFFSET (Flags,0), "Preserve Register Bits", 0}, {ACPI_DMT_UINT8, ACPI_ERST0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_GAS, ACPI_ERST0_OFFSET (RegisterRegion), "Register Region", 0}, {ACPI_DMT_UINT64, ACPI_ERST0_OFFSET (Value), "Value", 0}, {ACPI_DMT_UINT64, ACPI_ERST0_OFFSET (Mask), "Mask", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * FPDT - Firmware Performance Data Table (ACPI 5.0) * ******************************************************************************/ /* Main table consists of only the standard ACPI header - subtables follow */ /* FPDT subtable header */ ACPI_DMTABLE_INFO AcpiDmTableInfoFpdtHdr[] = { {ACPI_DMT_UINT16, ACPI_FPDTH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_FPDTH_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_FPDTH_OFFSET (Revision), "Revision", 0}, ACPI_DMT_TERMINATOR }; /* 0: Firmware Basic Boot Performance Record */ ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt0[] = { {ACPI_DMT_UINT32, ACPI_FPDT0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_FPDT1_OFFSET (Address), "FPDT Boot Record Address", 0}, ACPI_DMT_TERMINATOR }; /* 1: S3 Performance Table Pointer Record */ ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt1[] = { {ACPI_DMT_UINT32, ACPI_FPDT1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_FPDT1_OFFSET (Address), "S3PT Record Address", 0}, ACPI_DMT_TERMINATOR }; #if 0 /* Boot Performance Record, not supported at this time. */ {ACPI_DMT_UINT64, ACPI_FPDT0_OFFSET (ResetEnd), "Reset End", 0}, {ACPI_DMT_UINT64, ACPI_FPDT0_OFFSET (LoadStart), "Load Image Start", 0}, {ACPI_DMT_UINT64, ACPI_FPDT0_OFFSET (StartupStart), "Start Image Start", 0}, {ACPI_DMT_UINT64, ACPI_FPDT0_OFFSET (ExitServicesEntry), "Exit Services Entry", 0}, {ACPI_DMT_UINT64, ACPI_FPDT0_OFFSET (ExitServicesExit), "Exit Services Exit", 0}, #endif /******************************************************************************* * * GTDT - Generic Timer Description Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt[] = { {ACPI_DMT_UINT64, ACPI_GTDT_OFFSET (CounterBlockAddresss), "Counter Block Address", 0}, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_NEW_LINE, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (SecureEl1Interrupt), "Secure EL1 Interrupt", 0}, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (SecureEl1Flags), "EL1 Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_GTDT_FLAG_OFFSET (SecureEl1Flags,0), "Trigger Mode", 0}, {ACPI_DMT_FLAG1, ACPI_GTDT_FLAG_OFFSET (SecureEl1Flags,0), "Polarity", 0}, {ACPI_DMT_FLAG2, ACPI_GTDT_FLAG_OFFSET (SecureEl1Flags,0), "Always On", 0}, ACPI_DMT_NEW_LINE, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (NonSecureEl1Interrupt), "Non-Secure EL1 Interrupt", 0}, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (NonSecureEl1Flags), "NEL1 Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_GTDT_FLAG_OFFSET (NonSecureEl1Flags,0),"Trigger Mode", 0}, {ACPI_DMT_FLAG1, ACPI_GTDT_FLAG_OFFSET (NonSecureEl1Flags,0),"Polarity", 0}, {ACPI_DMT_FLAG2, ACPI_GTDT_FLAG_OFFSET (NonSecureEl1Flags,0),"Always On", 0}, ACPI_DMT_NEW_LINE, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (VirtualTimerInterrupt), "Virtual Timer Interrupt", 0}, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (VirtualTimerFlags), "VT Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_GTDT_FLAG_OFFSET (VirtualTimerFlags,0),"Trigger Mode", 0}, {ACPI_DMT_FLAG1, ACPI_GTDT_FLAG_OFFSET (VirtualTimerFlags,0),"Polarity", 0}, {ACPI_DMT_FLAG2, ACPI_GTDT_FLAG_OFFSET (VirtualTimerFlags,0),"Always On", 0}, ACPI_DMT_NEW_LINE, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (NonSecureEl2Interrupt), "Non-Secure EL2 Interrupt", 0}, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (NonSecureEl2Flags), "NEL2 Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_GTDT_FLAG_OFFSET (NonSecureEl2Flags,0),"Trigger Mode", 0}, {ACPI_DMT_FLAG1, ACPI_GTDT_FLAG_OFFSET (NonSecureEl2Flags,0),"Polarity", 0}, {ACPI_DMT_FLAG2, ACPI_GTDT_FLAG_OFFSET (NonSecureEl2Flags,0),"Always On", 0}, {ACPI_DMT_UINT64, ACPI_GTDT_OFFSET (CounterReadBlockAddress), "Counter Read Block Address", 0}, ACPI_DMT_NEW_LINE, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (PlatformTimerCount), "Platform Timer Count", 0}, {ACPI_DMT_UINT32, ACPI_GTDT_OFFSET (PlatformTimerOffset), "Platform Timer Offset", 0}, ACPI_DMT_TERMINATOR }; /* GDTD EL2 timer info. This table is appended to AcpiDmTableInfoGtdt for rev 3 and later */ ACPI_DMTABLE_INFO AcpiDmTableInfoGtdtEl2[] = { {ACPI_DMT_UINT32, ACPI_GTDT_EL2_OFFSET (VirtualEL2TimerGsiv), "Virtual EL2 Timer GSIV", 0}, {ACPI_DMT_UINT32, ACPI_GTDT_EL2_OFFSET (VirtualEL2TimerFlags), "Virtual EL2 Timer Flags", 0}, ACPI_DMT_TERMINATOR }; /* GTDT Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoGtdtHdr[] = { {ACPI_DMT_GTDT, ACPI_GTDTH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT16, ACPI_GTDTH_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* GTDT Subtables */ ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0[] = { {ACPI_DMT_UINT8, ACPI_GTDT0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_GTDT0_OFFSET (BlockAddress), "Block Address", 0}, {ACPI_DMT_UINT32, ACPI_GTDT0_OFFSET (TimerCount), "Timer Count", 0}, {ACPI_DMT_UINT32, ACPI_GTDT0_OFFSET (TimerOffset), "Timer Offset", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0a[] = { {ACPI_DMT_UINT8 , ACPI_GTDT0a_OFFSET (FrameNumber), "Frame Number", 0}, {ACPI_DMT_UINT24, ACPI_GTDT0a_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_GTDT0a_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_GTDT0a_OFFSET (El0BaseAddress), "EL0 Base Address", 0}, {ACPI_DMT_UINT32, ACPI_GTDT0a_OFFSET (TimerInterrupt), "Timer Interrupt", 0}, {ACPI_DMT_UINT32, ACPI_GTDT0a_OFFSET (TimerFlags), "Timer Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_GTDT0a_FLAG_OFFSET (TimerFlags,0), "Trigger Mode", 0}, {ACPI_DMT_FLAG1, ACPI_GTDT0a_FLAG_OFFSET (TimerFlags,0), "Polarity", 0}, {ACPI_DMT_UINT32, ACPI_GTDT0a_OFFSET (VirtualTimerInterrupt), "Virtual Timer Interrupt", 0}, {ACPI_DMT_UINT32, ACPI_GTDT0a_OFFSET (VirtualTimerFlags), "Virtual Timer Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_GTDT0a_FLAG_OFFSET (VirtualTimerFlags,0), "Trigger Mode", 0}, {ACPI_DMT_FLAG1, ACPI_GTDT0a_FLAG_OFFSET (VirtualTimerFlags,0), "Polarity", 0}, {ACPI_DMT_UINT32, ACPI_GTDT0a_OFFSET (CommonFlags), "Common Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_GTDT0a_FLAG_OFFSET (CommonFlags,0), "Secure", 0}, {ACPI_DMT_FLAG1, ACPI_GTDT0a_FLAG_OFFSET (CommonFlags,0), "Always On", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt1[] = { {ACPI_DMT_UINT8, ACPI_GTDT1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_GTDT1_OFFSET (RefreshFrameAddress), "Refresh Frame Address", 0}, {ACPI_DMT_UINT64, ACPI_GTDT1_OFFSET (ControlFrameAddress), "Control Frame Address", 0}, {ACPI_DMT_UINT32, ACPI_GTDT1_OFFSET (TimerInterrupt), "Timer Interrupt", 0}, {ACPI_DMT_UINT32, ACPI_GTDT1_OFFSET (TimerFlags), "Timer Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_GTDT1_FLAG_OFFSET (TimerFlags,0), "Trigger Mode", 0}, {ACPI_DMT_FLAG1, ACPI_GTDT1_FLAG_OFFSET (TimerFlags,0), "Polarity", 0}, {ACPI_DMT_FLAG2, ACPI_GTDT1_FLAG_OFFSET (TimerFlags,0), "Security", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * HEST - Hardware Error Source table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoHest[] = { {ACPI_DMT_UINT32, ACPI_HEST_OFFSET (ErrorSourceCount), "Error Source Count", 0}, ACPI_DMT_TERMINATOR }; /* Common HEST structures for subtables */ #define ACPI_DM_HEST_HEADER \ {ACPI_DMT_HEST, ACPI_HEST0_OFFSET (Header.Type), "Subtable Type", 0}, \ {ACPI_DMT_UINT16, ACPI_HEST0_OFFSET (Header.SourceId), "Source Id", 0} #define ACPI_DM_HEST_AER \ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Reserved1), "Reserved", 0}, \ {ACPI_DMT_UINT8, ACPI_HEST6_OFFSET (Aer.Flags), "Flags (decoded below)", DT_FLAG}, \ {ACPI_DMT_FLAG0, ACPI_HEST6_FLAG_OFFSET (Aer.Flags,0), "Firmware First", 0}, \ {ACPI_DMT_FLAG0, ACPI_HEST6_FLAG_OFFSET (Aer.Flags,0), "Global", 0}, \ {ACPI_DMT_UINT8, ACPI_HEST6_OFFSET (Aer.Enabled), "Enabled", 0}, \ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.RecordsToPreallocate), "Records To Preallocate", 0}, \ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.MaxSectionsPerRecord), "Max Sections Per Record", 0}, \ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.Bus), "Bus", 0}, \ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Device), "Device", 0}, \ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Function), "Function", 0}, \ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.DeviceControl), "DeviceControl", 0}, \ {ACPI_DMT_UINT16, ACPI_HEST6_OFFSET (Aer.Reserved2), "Reserved", 0}, \ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.UncorrectableMask), "Uncorrectable Mask", 0}, \ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.UncorrectableSeverity), "Uncorrectable Severity", 0}, \ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.CorrectableMask), "Correctable Mask", 0}, \ {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (Aer.AdvancedCapabilities), "Advanced Capabilities", 0} /* HEST Subtables */ /* 0: IA32 Machine Check Exception */ ACPI_DMTABLE_INFO AcpiDmTableInfoHest0[] = { ACPI_DM_HEST_HEADER, {ACPI_DMT_UINT16, ACPI_HEST0_OFFSET (Reserved1), "Reserved1", 0}, {ACPI_DMT_UINT8, ACPI_HEST0_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_HEST0_FLAG_OFFSET (Flags,0), "Firmware First", 0}, {ACPI_DMT_FLAG2, ACPI_HEST0_FLAG_OFFSET (Flags,0), "GHES Assist", 0}, {ACPI_DMT_UINT8, ACPI_HEST0_OFFSET (Enabled), "Enabled", 0}, {ACPI_DMT_UINT32, ACPI_HEST0_OFFSET (RecordsToPreallocate), "Records To Preallocate", 0}, {ACPI_DMT_UINT32, ACPI_HEST0_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record", 0}, {ACPI_DMT_UINT64, ACPI_HEST0_OFFSET (GlobalCapabilityData), "Global Capability Data", 0}, {ACPI_DMT_UINT64, ACPI_HEST0_OFFSET (GlobalControlData), "Global Control Data", 0}, {ACPI_DMT_UINT8, ACPI_HEST0_OFFSET (NumHardwareBanks), "Num Hardware Banks", 0}, {ACPI_DMT_UINT56, ACPI_HEST0_OFFSET (Reserved3[0]), "Reserved2", 0}, ACPI_DMT_TERMINATOR }; /* 1: IA32 Corrected Machine Check */ ACPI_DMTABLE_INFO AcpiDmTableInfoHest1[] = { ACPI_DM_HEST_HEADER, {ACPI_DMT_UINT16, ACPI_HEST1_OFFSET (Reserved1), "Reserved1", 0}, {ACPI_DMT_UINT8, ACPI_HEST1_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_HEST1_FLAG_OFFSET (Flags,0), "Firmware First", 0}, {ACPI_DMT_FLAG2, ACPI_HEST1_FLAG_OFFSET (Flags,0), "GHES Assist", 0}, {ACPI_DMT_UINT8, ACPI_HEST1_OFFSET (Enabled), "Enabled", 0}, {ACPI_DMT_UINT32, ACPI_HEST1_OFFSET (RecordsToPreallocate), "Records To Preallocate", 0}, {ACPI_DMT_UINT32, ACPI_HEST1_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record", 0}, {ACPI_DMT_HESTNTFY, ACPI_HEST1_OFFSET (Notify), "Notify", 0}, {ACPI_DMT_UINT8, ACPI_HEST1_OFFSET (NumHardwareBanks), "Num Hardware Banks", 0}, {ACPI_DMT_UINT24, ACPI_HEST1_OFFSET (Reserved2[0]), "Reserved2", 0}, ACPI_DMT_TERMINATOR }; /* 2: IA32 Non-Maskable Interrupt */ ACPI_DMTABLE_INFO AcpiDmTableInfoHest2[] = { ACPI_DM_HEST_HEADER, {ACPI_DMT_UINT32, ACPI_HEST2_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_HEST2_OFFSET (RecordsToPreallocate), "Records To Preallocate", 0}, {ACPI_DMT_UINT32, ACPI_HEST2_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record", 0}, {ACPI_DMT_UINT32, ACPI_HEST2_OFFSET (MaxRawDataLength), "Max Raw Data Length", 0}, ACPI_DMT_TERMINATOR }; /* 6: PCI Express Root Port AER */ ACPI_DMTABLE_INFO AcpiDmTableInfoHest6[] = { ACPI_DM_HEST_HEADER, ACPI_DM_HEST_AER, {ACPI_DMT_UINT32, ACPI_HEST6_OFFSET (RootErrorCommand), "Root Error Command", 0}, ACPI_DMT_TERMINATOR }; /* 7: PCI Express AER (AER Endpoint) */ ACPI_DMTABLE_INFO AcpiDmTableInfoHest7[] = { ACPI_DM_HEST_HEADER, ACPI_DM_HEST_AER, ACPI_DMT_TERMINATOR }; /* 8: PCI Express/PCI-X Bridge AER */ ACPI_DMTABLE_INFO AcpiDmTableInfoHest8[] = { ACPI_DM_HEST_HEADER, ACPI_DM_HEST_AER, {ACPI_DMT_UINT32, ACPI_HEST8_OFFSET (UncorrectableMask2), "2nd Uncorrectable Mask", 0}, {ACPI_DMT_UINT32, ACPI_HEST8_OFFSET (UncorrectableSeverity2), "2nd Uncorrectable Severity", 0}, {ACPI_DMT_UINT32, ACPI_HEST8_OFFSET (AdvancedCapabilities2), "2nd Advanced Capabilities", 0}, ACPI_DMT_TERMINATOR }; /* 9: Generic Hardware Error Source */ ACPI_DMTABLE_INFO AcpiDmTableInfoHest9[] = { ACPI_DM_HEST_HEADER, {ACPI_DMT_UINT16, ACPI_HEST9_OFFSET (RelatedSourceId), "Related Source Id", 0}, {ACPI_DMT_UINT8, ACPI_HEST9_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_HEST9_OFFSET (Enabled), "Enabled", 0}, {ACPI_DMT_UINT32, ACPI_HEST9_OFFSET (RecordsToPreallocate), "Records To Preallocate", 0}, {ACPI_DMT_UINT32, ACPI_HEST9_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record", 0}, {ACPI_DMT_UINT32, ACPI_HEST9_OFFSET (MaxRawDataLength), "Max Raw Data Length", 0}, {ACPI_DMT_GAS, ACPI_HEST9_OFFSET (ErrorStatusAddress), "Error Status Address", 0}, {ACPI_DMT_HESTNTFY, ACPI_HEST9_OFFSET (Notify), "Notify", 0}, {ACPI_DMT_UINT32, ACPI_HEST9_OFFSET (ErrorBlockLength), "Error Status Block Length", 0}, ACPI_DMT_TERMINATOR }; /* 10: Generic Hardware Error Source - Version 2 */ ACPI_DMTABLE_INFO AcpiDmTableInfoHest10[] = { ACPI_DM_HEST_HEADER, {ACPI_DMT_UINT16, ACPI_HEST10_OFFSET (RelatedSourceId), "Related Source Id", 0}, {ACPI_DMT_UINT8, ACPI_HEST10_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_HEST10_OFFSET (Enabled), "Enabled", 0}, {ACPI_DMT_UINT32, ACPI_HEST10_OFFSET (RecordsToPreallocate), "Records To Preallocate", 0}, {ACPI_DMT_UINT32, ACPI_HEST10_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record", 0}, {ACPI_DMT_UINT32, ACPI_HEST10_OFFSET (MaxRawDataLength), "Max Raw Data Length", 0}, {ACPI_DMT_GAS, ACPI_HEST10_OFFSET (ErrorStatusAddress), "Error Status Address", 0}, {ACPI_DMT_HESTNTFY, ACPI_HEST10_OFFSET (Notify), "Notify", 0}, {ACPI_DMT_UINT32, ACPI_HEST10_OFFSET (ErrorBlockLength), "Error Status Block Length", 0}, {ACPI_DMT_GAS, ACPI_HEST10_OFFSET (ReadAckRegister), "Read Ack Register", 0}, {ACPI_DMT_UINT64, ACPI_HEST10_OFFSET (ReadAckPreserve), "Read Ack Preserve", 0}, {ACPI_DMT_UINT64, ACPI_HEST10_OFFSET (ReadAckWrite), "Read Ack Write", 0}, ACPI_DMT_TERMINATOR }; /* 11: IA32 Deferred Machine Check */ ACPI_DMTABLE_INFO AcpiDmTableInfoHest11[] = { ACPI_DM_HEST_HEADER, {ACPI_DMT_UINT16, ACPI_HEST11_OFFSET (Reserved1), "Reserved1", 0}, {ACPI_DMT_UINT8, ACPI_HEST11_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_HEST11_FLAG_OFFSET (Flags,0), "Firmware First", 0}, {ACPI_DMT_FLAG2, ACPI_HEST11_FLAG_OFFSET (Flags,0), "GHES Assist", 0}, {ACPI_DMT_UINT8, ACPI_HEST11_OFFSET (Enabled), "Enabled", 0}, {ACPI_DMT_UINT32, ACPI_HEST11_OFFSET (RecordsToPreallocate), "Records To Preallocate", 0}, {ACPI_DMT_UINT32, ACPI_HEST11_OFFSET (MaxSectionsPerRecord), "Max Sections Per Record", 0}, {ACPI_DMT_HESTNTFY, ACPI_HEST11_OFFSET (Notify), "Notify", 0}, {ACPI_DMT_UINT8, ACPI_HEST11_OFFSET (NumHardwareBanks), "Num Hardware Banks", 0}, {ACPI_DMT_UINT24, ACPI_HEST11_OFFSET (Reserved2[0]), "Reserved2", 0}, ACPI_DMT_TERMINATOR }; /* Notification Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoHestNotify[] = { {ACPI_DMT_HESTNTYP, ACPI_HESTN_OFFSET (Type), "Notify Type", 0}, {ACPI_DMT_UINT8, ACPI_HESTN_OFFSET (Length), "Notify Length", DT_LENGTH}, {ACPI_DMT_UINT16, ACPI_HESTN_OFFSET (ConfigWriteEnable), "Configuration Write Enable", 0}, {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (PollInterval), "PollInterval", 0}, {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (Vector), "Vector", 0}, {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (PollingThresholdValue), "Polling Threshold Value", 0}, {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (PollingThresholdWindow), "Polling Threshold Window", 0}, {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (ErrorThresholdValue), "Error Threshold Value", 0}, {ACPI_DMT_UINT32, ACPI_HESTN_OFFSET (ErrorThresholdWindow), "Error Threshold Window", 0}, ACPI_DMT_TERMINATOR }; /* * IA32 Error Bank(s) - Follows the ACPI_HEST_IA_MACHINE_CHECK and * ACPI_HEST_IA_CORRECTED structures. */ ACPI_DMTABLE_INFO AcpiDmTableInfoHestBank[] = { {ACPI_DMT_UINT8, ACPI_HESTB_OFFSET (BankNumber), "Bank Number", 0}, {ACPI_DMT_UINT8, ACPI_HESTB_OFFSET (ClearStatusOnInit), "Clear Status On Init", 0}, {ACPI_DMT_UINT8, ACPI_HESTB_OFFSET (StatusFormat), "Status Format", 0}, {ACPI_DMT_UINT8, ACPI_HESTB_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_HESTB_OFFSET (ControlRegister), "Control Register", 0}, {ACPI_DMT_UINT64, ACPI_HESTB_OFFSET (ControlData), "Control Data", 0}, {ACPI_DMT_UINT32, ACPI_HESTB_OFFSET (StatusRegister), "Status Register", 0}, {ACPI_DMT_UINT32, ACPI_HESTB_OFFSET (AddressRegister), "Address Register", 0}, {ACPI_DMT_UINT32, ACPI_HESTB_OFFSET (MiscRegister), "Misc Register", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * HMAT - Heterogeneous Memory Attributes Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoHmat[] = { {ACPI_DMT_UINT32, ACPI_HMAT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* Common HMAT structure header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoHmatHdr[] = { {ACPI_DMT_HMAT, ACPI_HMATH_OFFSET (Type), "Structure Type", 0}, {ACPI_DMT_UINT16, ACPI_HMATH_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_HMATH_OFFSET (Length), "Length", 0}, ACPI_DMT_TERMINATOR }; /* HMAT subtables */ /* 0x00: Memory proximity domain attributes */ ACPI_DMTABLE_INFO AcpiDmTableInfoHmat0[] = { {ACPI_DMT_UINT16, ACPI_HMAT0_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_HMAT0_FLAG_OFFSET (Flags,0), "Processor Proximity Domain Valid", 0}, {ACPI_DMT_UINT16, ACPI_HMAT0_OFFSET (Reserved1), "Reserved1", 0}, {ACPI_DMT_UINT32, ACPI_HMAT0_OFFSET (InitiatorPD), "Attached Initiator Proximity Domain", 0}, {ACPI_DMT_UINT32, ACPI_HMAT0_OFFSET (MemoryPD), "Memory Proximity Domain", 0}, {ACPI_DMT_UINT32, ACPI_HMAT0_OFFSET (Reserved2), "Reserved2", 0}, {ACPI_DMT_UINT64, ACPI_HMAT0_OFFSET (Reserved3), "Reserved3", 0}, {ACPI_DMT_UINT64, ACPI_HMAT0_OFFSET (Reserved4), "Reserved4", 0}, ACPI_DMT_TERMINATOR }; /* 0x01: System Locality Latency and Bandwidth Information */ ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1[] = { {ACPI_DMT_UINT8, ACPI_HMAT1_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAGS4_0, ACPI_HMAT1_FLAG_OFFSET (Flags,0), "Memory Hierarchy", 0}, /* First 4 bits */ {ACPI_DMT_FLAG4, ACPI_HMAT1_FLAG_OFFSET (Flags,0), "Use Minimum Transfer Size", 0}, {ACPI_DMT_FLAG5, ACPI_HMAT1_FLAG_OFFSET (Flags,0), "Non-sequential Transfers", 0}, {ACPI_DMT_UINT8, ACPI_HMAT1_OFFSET (DataType), "Data Type", 0}, {ACPI_DMT_UINT8, ACPI_HMAT1_OFFSET (MinTransferSize), "Minimum Transfer Size", 0}, {ACPI_DMT_UINT8, ACPI_HMAT1_OFFSET (Reserved1), "Reserved1", 0}, {ACPI_DMT_UINT32, ACPI_HMAT1_OFFSET (NumberOfInitiatorPDs), "Initiator Proximity Domains #", 0}, {ACPI_DMT_UINT32, ACPI_HMAT1_OFFSET (NumberOfTargetPDs), "Target Proximity Domains #", 0}, {ACPI_DMT_UINT32, ACPI_HMAT1_OFFSET (Reserved2), "Reserved2", 0}, {ACPI_DMT_UINT64, ACPI_HMAT1_OFFSET (EntryBaseUnit), "Entry Base Unit", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1a[] = { {ACPI_DMT_UINT32, 0, "Initiator Proximity Domain List", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1b[] = { {ACPI_DMT_UINT32, 0, "Target Proximity Domain List", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1c[] = { {ACPI_DMT_UINT16, 0, "Entry", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* 0x02: Memory Side Cache Information */ ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2[] = { {ACPI_DMT_UINT32, ACPI_HMAT2_OFFSET (MemoryPD), "Memory Proximity Domain", 0}, {ACPI_DMT_UINT32, ACPI_HMAT2_OFFSET (Reserved1), "Reserved1", 0}, {ACPI_DMT_UINT64, ACPI_HMAT2_OFFSET (CacheSize), "Memory Side Cache Size", 0}, {ACPI_DMT_UINT32, ACPI_HMAT2_OFFSET (CacheAttributes), "Cache Attributes (decoded below)", 0}, {ACPI_DMT_FLAGS4_0, ACPI_HMAT2_FLAG_OFFSET (CacheAttributes,0), "Total Cache Levels", 0}, {ACPI_DMT_FLAGS4_4, ACPI_HMAT2_FLAG_OFFSET (CacheAttributes,0), "Cache Level", 0}, {ACPI_DMT_FLAGS4_8, ACPI_HMAT2_FLAG_OFFSET (CacheAttributes,0), "Cache Associativity", 0}, {ACPI_DMT_FLAGS4_12, ACPI_HMAT2_FLAG_OFFSET (CacheAttributes,0), "Write Policy", 0}, {ACPI_DMT_FLAGS16_16, ACPI_HMAT2_FLAG_OFFSET (CacheAttributes,0), "Cache Line Size", 0}, {ACPI_DMT_UINT16, ACPI_HMAT2_OFFSET (AddressMode), "Address Mode", 0}, {ACPI_DMT_UINT16, ACPI_HMAT2_OFFSET (NumberOfSMBIOSHandles), "SMBIOS Handle #", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2a[] = { {ACPI_DMT_UINT16, 0, "SMBIOS Handle", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * HPET - High Precision Event Timer table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoHpet[] = { {ACPI_DMT_UINT32, ACPI_HPET_OFFSET (Id), "Hardware Block ID", 0}, {ACPI_DMT_GAS, ACPI_HPET_OFFSET (Address), "Timer Block Register", 0}, {ACPI_DMT_UINT8, ACPI_HPET_OFFSET (Sequence), "Sequence Number", 0}, {ACPI_DMT_UINT16, ACPI_HPET_OFFSET (MinimumTick), "Minimum Clock Ticks", 0}, {ACPI_DMT_UINT8, ACPI_HPET_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_HPET_FLAG_OFFSET (Flags,0), "4K Page Protect", 0}, {ACPI_DMT_FLAG1, ACPI_HPET_FLAG_OFFSET (Flags,0), "64K Page Protect", 0}, ACPI_DMT_TERMINATOR }; /*! [End] no source code translation !*/ acpica-unix-20250404/source/common/dmtbinfo.c0000775000175000017500000004253714773714131020311 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtbinfo - Table info for non-AML tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "actbinfo.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmtbinfo") /* * How to add a new table: * * - Add the C table definition to the actbl1.h or actbl2.h header. * - Add ACPI_xxxx_OFFSET macro(s) for the table (and subtables) to list below. * - Define the table in this file (for the disassembler). If any * new data types are required (ACPI_DMT_*), see below. * - Add an external declaration for the new table definition (AcpiDmTableInfo*) * in acdisam.h * - Add new table definition to the dispatch table in dmtable.c (AcpiDmTableData) * If a simple table (with no subtables), no disassembly code is needed. * Otherwise, create the AcpiDmDump* function for to disassemble the table * and add it to the dmtbdump.c file. * - Add an external declaration for the new AcpiDmDump* function in acdisasm.h * - Add the new AcpiDmDump* function to the dispatch table in dmtable.c * - Create a template for the new table * - Add data table compiler support * * How to add a new data type (ACPI_DMT_*): * * - Add new type at the end of the ACPI_DMT list in acdisasm.h * - Add length and implementation cases in dmtable.c (disassembler) * - Add type and length cases in dtutils.c (DT compiler) */ /* * ACPI Table Information, used to dump formatted ACPI tables * * Each entry is of the form: */ /******************************************************************************* * * Common ACPI table header * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoHeader[] = { {ACPI_DMT_SIG, ACPI_HDR_OFFSET (Signature[0]), "Signature", 0}, {ACPI_DMT_UINT32, ACPI_HDR_OFFSET (Length), "Table Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_HDR_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_CHKSUM, ACPI_HDR_OFFSET (Checksum), "Checksum", 0}, {ACPI_DMT_NAME6, ACPI_HDR_OFFSET (OemId[0]), "Oem ID", 0}, {ACPI_DMT_NAME8, ACPI_HDR_OFFSET (OemTableId[0]), "Oem Table ID", 0}, {ACPI_DMT_UINT32, ACPI_HDR_OFFSET (OemRevision), "Oem Revision", 0}, {ACPI_DMT_NAME4, ACPI_HDR_OFFSET (AslCompilerId[0]), "Asl Compiler ID", 0}, {ACPI_DMT_UINT32, ACPI_HDR_OFFSET (AslCompilerRevision), "Asl Compiler Revision", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * GAS - Generic Address Structure * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoGas[] = { {ACPI_DMT_SPACEID, ACPI_GAS_OFFSET (SpaceId), "Space ID", 0}, {ACPI_DMT_UINT8, ACPI_GAS_OFFSET (BitWidth), "Bit Width", 0}, {ACPI_DMT_UINT8, ACPI_GAS_OFFSET (BitOffset), "Bit Offset", 0}, {ACPI_DMT_ACCWIDTH, ACPI_GAS_OFFSET (AccessWidth), "Encoded Access Width", 0}, {ACPI_DMT_UINT64, ACPI_GAS_OFFSET (Address), "Address", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RSDP - Root System Description Pointer (Signature is "RSD PTR ") * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp1[] = { {ACPI_DMT_NAME8, ACPI_RSDP_OFFSET (Signature[0]), "Signature", 0}, {ACPI_DMT_UINT8, ACPI_RSDP_OFFSET (Checksum), "Checksum", 0}, {ACPI_DMT_NAME6, ACPI_RSDP_OFFSET (OemId[0]), "Oem ID", 0}, {ACPI_DMT_UINT8, ACPI_RSDP_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT32, ACPI_RSDP_OFFSET (RsdtPhysicalAddress), "RSDT Address", 0}, ACPI_DMT_TERMINATOR }; /* ACPI 2.0+ Extensions */ ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp2[] = { {ACPI_DMT_UINT32, ACPI_RSDP_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT64, ACPI_RSDP_OFFSET (XsdtPhysicalAddress), "XSDT Address", 0}, {ACPI_DMT_UINT8, ACPI_RSDP_OFFSET (ExtendedChecksum), "Extended Checksum", 0}, {ACPI_DMT_UINT24, ACPI_RSDP_OFFSET (Reserved[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * FACS - Firmware ACPI Control Structure * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoFacs[] = { {ACPI_DMT_NAME4, ACPI_FACS_OFFSET (Signature[0]), "Signature", 0}, {ACPI_DMT_UINT32, ACPI_FACS_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT32, ACPI_FACS_OFFSET (HardwareSignature), "Hardware Signature", 0}, {ACPI_DMT_UINT32, ACPI_FACS_OFFSET (FirmwareWakingVector), "32 Firmware Waking Vector", 0}, {ACPI_DMT_UINT32, ACPI_FACS_OFFSET (GlobalLock), "Global Lock", 0}, {ACPI_DMT_UINT32, ACPI_FACS_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_FACS_FLAG_OFFSET (Flags,0), "S4BIOS Support Present", 0}, {ACPI_DMT_FLAG1, ACPI_FACS_FLAG_OFFSET (Flags,0), "64-bit Wake Supported (V2)", 0}, {ACPI_DMT_UINT64, ACPI_FACS_OFFSET (XFirmwareWakingVector), "64 Firmware Waking Vector", 0}, {ACPI_DMT_UINT8, ACPI_FACS_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT24, ACPI_FACS_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_FACS_OFFSET (OspmFlags), "OspmFlags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_FACS_FLAG_OFFSET (OspmFlags,0), "64-bit Wake Env Required (V2)", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * FADT - Fixed ACPI Description Table (Signature is FACP) * ******************************************************************************/ /* ACPI 1.0 FADT (Version 1) */ ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[] = { {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Facs), "FACS Address", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Dsdt), "DSDT Address", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Model), "Model", 0}, {ACPI_DMT_FADTPM, ACPI_FADT_OFFSET (PreferredProfile), "PM Profile", 0}, {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (SciInterrupt), "SCI Interrupt", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (SmiCommand), "SMI Command Port", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (AcpiEnable), "ACPI Enable Value", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (AcpiDisable), "ACPI Disable Value", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (S4BiosRequest), "S4BIOS Command", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (PstateControl), "P-State Control", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Pm1aEventBlock), "PM1A Event Block Address", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Pm1bEventBlock), "PM1B Event Block Address", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Pm1aControlBlock), "PM1A Control Block Address", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Pm1bControlBlock), "PM1B Control Block Address", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Pm2ControlBlock), "PM2 Control Block Address", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (PmTimerBlock), "PM Timer Block Address", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Gpe0Block), "GPE0 Block Address", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Gpe1Block), "GPE1 Block Address", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Pm1EventLength), "PM1 Event Block Length", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Pm1ControlLength), "PM1 Control Block Length", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Pm2ControlLength), "PM2 Control Block Length", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (PmTimerLength), "PM Timer Block Length", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Gpe0BlockLength), "GPE0 Block Length", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Gpe1BlockLength), "GPE1 Block Length", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Gpe1Base), "GPE1 Base Offset", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (CstControl), "_CST Support", 0}, {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (C2Latency), "C2 Latency", 0}, {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (C3Latency), "C3 Latency", 0}, {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (FlushSize), "CPU Cache Size", 0}, {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (FlushStride), "Cache Flush Stride", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (DutyOffset), "Duty Cycle Offset", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (DutyWidth), "Duty Cycle Width", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (DayAlarm), "RTC Day Alarm Index", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (MonthAlarm), "RTC Month Alarm Index", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Century), "RTC Century Index", 0}, {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (BootFlags), "Boot Flags (decoded below)", DT_FLAG}, /* Boot Architecture Flags byte 0 */ {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "Legacy Devices Supported (V2)", 0}, {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "8042 Present on ports 60/64 (V2)", 0}, {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "VGA Not Present (V4)", 0}, {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "MSI Not Supported (V4)", 0}, {ACPI_DMT_FLAG4, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "PCIe ASPM Not Supported (V4)", 0}, {ACPI_DMT_FLAG5, ACPI_FADT_FLAG_OFFSET (BootFlags,0), "CMOS RTC Not Present (V5)", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_FADT_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, /* Flags byte 0 */ {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (Flags,0), "WBINVD instruction is operational (V1)", 0}, {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (Flags,0), "WBINVD flushes all caches (V1)", 0}, {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (Flags,0), "All CPUs support C1 (V1)", 0}, {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (Flags,0), "C2 works on MP system (V1)", 0}, {ACPI_DMT_FLAG4, ACPI_FADT_FLAG_OFFSET (Flags,0), "Control Method Power Button (V1)", 0}, {ACPI_DMT_FLAG5, ACPI_FADT_FLAG_OFFSET (Flags,0), "Control Method Sleep Button (V1)", 0}, {ACPI_DMT_FLAG6, ACPI_FADT_FLAG_OFFSET (Flags,0), "RTC wake not in fixed reg space (V1)", 0}, {ACPI_DMT_FLAG7, ACPI_FADT_FLAG_OFFSET (Flags,0), "RTC can wake system from S4 (V1)", 0}, /* Flags byte 1 */ {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (Flags,1), "32-bit PM Timer (V1)", 0}, {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (Flags,1), "Docking Supported (V1)", 0}, {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (Flags,1), "Reset Register Supported (V2)", 0}, {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (Flags,1), "Sealed Case (V3)", 0}, {ACPI_DMT_FLAG4, ACPI_FADT_FLAG_OFFSET (Flags,1), "Headless - No Video (V3)", 0}, {ACPI_DMT_FLAG5, ACPI_FADT_FLAG_OFFSET (Flags,1), "Use native instr after SLP_TYPx (V3)", 0}, {ACPI_DMT_FLAG6, ACPI_FADT_FLAG_OFFSET (Flags,1), "PCIEXP_WAK Bits Supported (V4)", 0}, {ACPI_DMT_FLAG7, ACPI_FADT_FLAG_OFFSET (Flags,1), "Use Platform Timer (V4)", 0}, /* Flags byte 2 */ {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET (Flags,2), "RTC_STS valid on S4 wake (V4)", 0}, {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET (Flags,2), "Remote Power-on capable (V4)", 0}, {ACPI_DMT_FLAG2, ACPI_FADT_FLAG_OFFSET (Flags,2), "Use APIC Cluster Model (V4)", 0}, {ACPI_DMT_FLAG3, ACPI_FADT_FLAG_OFFSET (Flags,2), "Use APIC Physical Destination Mode (V4)", 0}, {ACPI_DMT_FLAG4, ACPI_FADT_FLAG_OFFSET (Flags,2), "Hardware Reduced (V5)", 0}, {ACPI_DMT_FLAG5, ACPI_FADT_FLAG_OFFSET (Flags,2), "Low Power S0 Idle (V5)", 0}, ACPI_DMT_TERMINATOR }; /* ACPI 1.0 MS Extensions (FADT version 2) */ ACPI_DMTABLE_INFO AcpiDmTableInfoFadt2[] = { {ACPI_DMT_GAS, ACPI_FADT_OFFSET (ResetRegister), "Reset Register", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (ResetValue), "Value to cause reset", 0}, {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (ArmBootFlags), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (MinorRevision), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* ACPI 2.0+ Extensions (FADT version 3, 4, and 5) */ ACPI_DMTABLE_INFO AcpiDmTableInfoFadt3[] = { {ACPI_DMT_GAS, ACPI_FADT_OFFSET (ResetRegister), "Reset Register", 0}, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (ResetValue), "Value to cause reset", 0}, {ACPI_DMT_UINT16, ACPI_FADT_OFFSET (ArmBootFlags), "ARM Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_FADT_FLAG_OFFSET(ArmBootFlags,0), "PSCI Compliant", 0}, {ACPI_DMT_FLAG1, ACPI_FADT_FLAG_OFFSET(ArmBootFlags,0), "Must use HVC for PSCI", 0}, ACPI_DMT_NEW_LINE, {ACPI_DMT_UINT8, ACPI_FADT_OFFSET (MinorRevision), "FADT Minor Revision", 0}, {ACPI_DMT_UINT64, ACPI_FADT_OFFSET (XFacs), "FACS Address", 0}, {ACPI_DMT_UINT64, ACPI_FADT_OFFSET (XDsdt), "DSDT Address", 0}, {ACPI_DMT_GAS, ACPI_FADT_OFFSET (XPm1aEventBlock), "PM1A Event Block", 0}, {ACPI_DMT_GAS, ACPI_FADT_OFFSET (XPm1bEventBlock), "PM1B Event Block", 0}, {ACPI_DMT_GAS, ACPI_FADT_OFFSET (XPm1aControlBlock), "PM1A Control Block", 0}, {ACPI_DMT_GAS, ACPI_FADT_OFFSET (XPm1bControlBlock), "PM1B Control Block", 0}, {ACPI_DMT_GAS, ACPI_FADT_OFFSET (XPm2ControlBlock), "PM2 Control Block", 0}, {ACPI_DMT_GAS, ACPI_FADT_OFFSET (XPmTimerBlock), "PM Timer Block", 0}, {ACPI_DMT_GAS, ACPI_FADT_OFFSET (XGpe0Block), "GPE0 Block", 0}, {ACPI_DMT_GAS, ACPI_FADT_OFFSET (XGpe1Block), "GPE1 Block", 0}, ACPI_DMT_TERMINATOR }; /* Extensions for FADT version 5 */ ACPI_DMTABLE_INFO AcpiDmTableInfoFadt5[] = { {ACPI_DMT_GAS, ACPI_FADT_OFFSET (SleepControl), "Sleep Control Register", 0}, {ACPI_DMT_GAS, ACPI_FADT_OFFSET (SleepStatus), "Sleep Status Register", 0}, ACPI_DMT_TERMINATOR }; /* Extensions for FADT version 6 */ ACPI_DMTABLE_INFO AcpiDmTableInfoFadt6[] = { {ACPI_DMT_UINT64, ACPI_FADT_OFFSET (HypervisorId), "Hypervisor ID", 0}, ACPI_DMT_TERMINATOR }; acpica-unix-20250404/source/common/adisasm.c0000775000175000017500000004666114773714131020132 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: adisasm - Application-level disassembler routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "amlcode.h" #include "acdisasm.h" #include "acdispat.h" #include "acnamesp.h" #include "acparser.h" #include "acapps.h" #include "acconvert.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("adisasm") /* Local prototypes */ static ACPI_STATUS AdDoExternalFileList ( char *Filename); static ACPI_STATUS AdDisassembleOneTable ( ACPI_TABLE_HEADER *Table, FILE *File, char *Filename, char *DisasmFilename); static ACPI_STATUS AdReparseOneTable ( ACPI_TABLE_HEADER *Table, FILE *File, ACPI_OWNER_ID OwnerId); ACPI_TABLE_DESC LocalTables[1]; ACPI_PARSE_OBJECT *AcpiGbl_ParseOpRoot; /* Stubs for everything except ASL compiler */ #ifndef ACPI_ASL_COMPILER BOOLEAN AcpiDsIsResultUsed ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { return (TRUE); } ACPI_STATUS AcpiDsMethodError ( ACPI_STATUS Status, ACPI_WALK_STATE *WalkState) { return (Status); } #endif /******************************************************************************* * * FUNCTION: AdInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: ACPICA and local initialization * ******************************************************************************/ ACPI_STATUS AdInitialize ( void) { ACPI_STATUS Status; /* ACPICA subsystem initialization */ Status = AcpiOsInitialize (); if (ACPI_FAILURE (Status)) { fprintf (stderr, "Could not initialize ACPICA subsystem: %s\n", AcpiFormatException (Status)); return (Status); } Status = AcpiUtInitGlobals (); if (ACPI_FAILURE (Status)) { fprintf (stderr, "Could not initialize ACPICA globals: %s\n", AcpiFormatException (Status)); return (Status); } Status = AcpiUtMutexInitialize (); if (ACPI_FAILURE (Status)) { fprintf (stderr, "Could not initialize ACPICA mutex objects: %s\n", AcpiFormatException (Status)); return (Status); } Status = AcpiNsRootInitialize (); if (ACPI_FAILURE (Status)) { fprintf (stderr, "Could not initialize ACPICA namespace: %s\n", AcpiFormatException (Status)); return (Status); } /* Setup the Table Manager (cheat - there is no RSDT) */ AcpiGbl_RootTableList.MaxTableCount = 1; AcpiGbl_RootTableList.CurrentTableCount = 0; AcpiGbl_RootTableList.Tables = LocalTables; return (AE_OK); } /****************************************************************************** * * FUNCTION: AdAmlDisassemble * * PARAMETERS: Filename - AML input filename * OutToFile - TRUE if output should go to a file * Prefix - Path prefix for output * OutFilename - where the filename is returned * * RETURN: Status * * DESCRIPTION: Disassembler entry point. Disassemble an entire ACPI table. * *****************************************************************************/ ACPI_STATUS AdAmlDisassemble ( BOOLEAN OutToFile, char *Filename, char *Prefix, char **OutFilename) { ACPI_STATUS Status; char *DisasmFilename = NULL; FILE *File = NULL; ACPI_TABLE_HEADER *Table = NULL; ACPI_NEW_TABLE_DESC *ListHead = NULL; /* * Input: AML code from either a file or via GetTables (memory or * registry) */ if (Filename) { /* Get the list of all AML tables in the file */ Status = AcGetAllTablesFromFile (Filename, ACPI_GET_ALL_TABLES, &ListHead); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not get ACPI tables from %s, %s\n", Filename, AcpiFormatException (Status)); return (Status); } /* Process any user-specified files for external objects */ Status = AdDoExternalFileList (Filename); if (ACPI_FAILURE (Status)) { return (Status); } } else { Status = AdGetLocalTables (); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not get ACPI tables, %s\n", AcpiFormatException (Status)); return (Status); } if (!AcpiGbl_DmOpt_Disasm) { return (AE_OK); } /* Obtained the local tables, just disassemble the DSDT */ Status = AcpiGetTable (ACPI_SIG_DSDT, 0, &Table); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not get DSDT, %s\n", AcpiFormatException (Status)); return (Status); } AcpiOsPrintf ("\nDisassembly of DSDT\n"); Prefix = AdGenerateFilename ("dsdt", Table->OemTableId); } /* * Output: ASL code. Redirect to a file if requested */ if (OutToFile) { /* Create/Open a disassembly output file */ DisasmFilename = FlGenerateFilename (Prefix, FILE_SUFFIX_DISASSEMBLY); if (!DisasmFilename) { fprintf (stderr, "Could not generate output filename\n"); Status = AE_ERROR; goto Cleanup; } File = fopen (DisasmFilename, "w+"); if (!File) { fprintf (stderr, "Could not open output file %s\n", DisasmFilename); Status = AE_ERROR; goto Cleanup; } } *OutFilename = DisasmFilename; /* Disassemble all AML tables within the file */ while (ListHead) { Status = AdDisassembleOneTable (ListHead->Table, File, Filename, DisasmFilename); if (ACPI_FAILURE (Status)) { break; } ListHead = ListHead->Next; } Cleanup: if (Table && !AcpiGbl_ForceAmlDisassembly && !AcpiUtIsAmlTable (Table)) { ACPI_FREE (Table); } AcDeleteTableList (ListHead); if (File) { fclose (File); AcpiOsRedirectOutput (stdout); } AcpiPsDeleteParseTree (AcpiGbl_ParseOpRoot); AcpiGbl_ParseOpRoot = NULL; return (Status); } /****************************************************************************** * * FUNCTION: AdDisassembleOneTable * * PARAMETERS: Table - Raw AML table * File - Pointer for the input file * Filename - AML input filename * DisasmFilename - Output filename * * RETURN: Status * * DESCRIPTION: Disassemble a single ACPI table. AML or data table. * *****************************************************************************/ static ACPI_STATUS AdDisassembleOneTable ( ACPI_TABLE_HEADER *Table, FILE *File, char *Filename, char *DisasmFilename) { ACPI_STATUS Status; ACPI_OWNER_ID OwnerId; #ifdef ACPI_ASL_COMPILER /* * For ASL-/ASL+ converter: replace the temporary "XXXX" * table signature with the original. This "XXXX" makes * it harder for the AML interpreter to run the badaml * (.xxx) file produced from the converter in case if * it fails to get deleted. */ if (AcpiGbl_CaptureComments) { memcpy (Table->Signature, AcpiGbl_TableSig, ACPI_NAMESEG_SIZE); } #endif /* ForceAmlDisassembly means to assume the table contains valid AML */ if (!AcpiGbl_ForceAmlDisassembly && !AcpiUtIsAmlTable (Table)) { if (File) { AcpiOsRedirectOutput (File); } AdDisassemblerHeader (Filename, ACPI_IS_DATA_TABLE); /* This is a "Data Table" (non-AML table) */ AcpiOsPrintf (" * ACPI Data Table [%4.4s]\n *\n", AcpiGbl_CDAT ? (char *) AcpiGbl_CDAT : Table->Signature); AcpiOsPrintf (" * Format: [HexOffset DecimalOffset ByteLength] " "FieldName : FieldValue (in hex)\n */\n\n"); AcpiDmDumpDataTable (Table); fprintf (stderr, "Acpi Data Table [%4.4s] decoded\n", AcpiGbl_CDAT ? (char *) AcpiGbl_CDAT : Table->Signature); if (File) { fprintf (stderr, "Formatted output: %s - %u bytes\n", DisasmFilename, CmGetFileSize (File)); } return (AE_OK); } /* Initialize the converter output file */ ASL_CV_INIT_FILETREE(Table, File); /* * This is an AML table (DSDT or SSDT). * Always parse the tables, only option is what to display */ Status = AdParseTable (Table, &OwnerId, TRUE, FALSE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not parse ACPI tables, %s\n", AcpiFormatException (Status)); return (Status); } /* Redirect output for code generation and debugging output */ if (File) { AcpiOsRedirectOutput (File); } /* Debug output, namespace and parse tree */ if (AslCompilerdebug && File) { AcpiOsPrintf ("/**** Before second load\n"); NsSetupNamespaceListing (File); NsDisplayNamespace (); AcpiOsPrintf ("*****/\n"); } /* Load namespace from names created within control methods */ AcpiDmFinishNamespaceLoad (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode, OwnerId); /* * Cross reference the namespace here, in order to * generate External() statements */ AcpiDmCrossReferenceNamespace (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode, OwnerId); if (AslCompilerdebug) { AcpiDmDumpTree (AcpiGbl_ParseOpRoot); } /* Find possible calls to external control methods */ AcpiDmFindOrphanMethods (AcpiGbl_ParseOpRoot); /* * If we found any external control methods, we must reparse * the entire tree with the new information (namely, the * number of arguments per method) */ if (AcpiDmGetUnresolvedExternalMethodCount ()) { Status = AdReparseOneTable (Table, File, OwnerId); if (ACPI_FAILURE (Status)) { return (Status); } } /* * Now that the namespace is finalized, we can perform namespace * transforms. * * 1) Convert fixed-offset references to resource descriptors * to symbolic references (Note: modifies namespace) */ AcpiDmConvertParseObjects (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode); /* Optional displays */ if (AcpiGbl_DmOpt_Disasm) { /* This is the real disassembly */ AdDisplayTables (Filename, Table); /* Dump hex table if requested (-vt) */ AcpiDmDumpDataTable (Table); fprintf (stderr, "Disassembly completed\n"); if (File) { fprintf (stderr, "ASL Output: %s - %u bytes\n", DisasmFilename, CmGetFileSize (File)); } if (AslGbl_MapfileFlag) { fprintf (stderr, "%14s %s - %u bytes\n", AslGbl_FileDescs[ASL_FILE_MAP_OUTPUT].ShortDescription, AslGbl_Files[ASL_FILE_MAP_OUTPUT].Filename, FlGetFileSize (ASL_FILE_MAP_OUTPUT)); } } return (AE_OK); } /****************************************************************************** * * FUNCTION: AdReparseOneTable * * PARAMETERS: Table - Raw AML table * File - Pointer for the input file * OwnerId - ID for this table * * RETURN: Status * * DESCRIPTION: Reparse a table that has already been loaded. Used to * integrate information about external control methods. * These methods may have been previously parsed incorrectly. * *****************************************************************************/ static ACPI_STATUS AdReparseOneTable ( ACPI_TABLE_HEADER *Table, FILE *File, ACPI_OWNER_ID OwnerId) { ACPI_STATUS Status; ACPI_COMMENT_ADDR_NODE *AddrListHead; fprintf (stderr, "\nFound %u external control methods, " "reparsing with new information\n", AcpiDmGetUnresolvedExternalMethodCount ()); /* Reparse, rebuild namespace */ AcpiPsDeleteParseTree (AcpiGbl_ParseOpRoot); AcpiGbl_ParseOpRoot = NULL; AcpiNsDeleteNamespaceSubtree (AcpiGbl_RootNode); AcpiGbl_RootNode = NULL; AcpiGbl_RootNodeStruct.Name.Integer = ACPI_ROOT_NAME; AcpiGbl_RootNodeStruct.DescriptorType = ACPI_DESC_TYPE_NAMED; AcpiGbl_RootNodeStruct.Type = ACPI_TYPE_DEVICE; AcpiGbl_RootNodeStruct.Parent = NULL; AcpiGbl_RootNodeStruct.Child = NULL; AcpiGbl_RootNodeStruct.Peer = NULL; AcpiGbl_RootNodeStruct.Object = NULL; AcpiGbl_RootNodeStruct.Flags = 0; Status = AcpiNsRootInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* New namespace, add the external definitions first */ AcpiDmAddExternalListToNamespace (); /* For -ca option: clear the list of comment addresses. */ while (AcpiGbl_CommentAddrListHead) { AddrListHead= AcpiGbl_CommentAddrListHead; AcpiGbl_CommentAddrListHead = AcpiGbl_CommentAddrListHead->Next; AcpiOsFree(AddrListHead); } /* Parse the table again. No need to reload it, however */ Status = AdParseTable (Table, NULL, FALSE, FALSE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not parse ACPI tables, %s\n", AcpiFormatException (Status)); return (Status); } /* Cross reference the namespace again */ AcpiDmFinishNamespaceLoad (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode, OwnerId); AcpiDmCrossReferenceNamespace (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode, OwnerId); /* Debug output - namespace and parse tree */ if (AslCompilerdebug) { AcpiOsPrintf ("/**** After second load and resource conversion\n"); if (File) { NsSetupNamespaceListing (File); NsDisplayNamespace (); } AcpiOsPrintf ("*****/\n"); AcpiDmDumpTree (AcpiGbl_ParseOpRoot); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AdDoExternalFileList * * PARAMETERS: Filename - Input file for the table * * RETURN: Status * * DESCRIPTION: Process all tables found in the -e external files list * *****************************************************************************/ static ACPI_STATUS AdDoExternalFileList ( char *Filename) { ACPI_EXTERNAL_FILE *ExternalFileList; char *ExternalFilename; ACPI_NEW_TABLE_DESC *ExternalListHead = NULL; ACPI_STATUS Status; ACPI_STATUS GlobalStatus = AE_OK; ACPI_OWNER_ID OwnerId; /* * External filenames are specified on the command line like this: * Example: iasl -e file1,file2,file3 -d xxx.aml */ ExternalFileList = AcpiGbl_ExternalFileList; /* Process each external file */ while (ExternalFileList) { ExternalFilename = ExternalFileList->Path; if (!strcmp (ExternalFilename, Filename)) { /* Next external file */ ExternalFileList = ExternalFileList->Next; continue; } AcpiOsPrintf ("External object resolution file %16s\n", ExternalFilename); Status = AcGetAllTablesFromFile ( ExternalFilename, ACPI_GET_ONLY_AML_TABLES, &ExternalListHead); if (ACPI_FAILURE (Status)) { if (Status == AE_TYPE) { ExternalFileList = ExternalFileList->Next; GlobalStatus = AE_TYPE; continue; } AcDeleteTableList (ExternalListHead); return (Status); } /* Load external tables for symbol resolution */ while (ExternalListHead) { Status = AdParseTable ( ExternalListHead->Table, &OwnerId, TRUE, TRUE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not parse external ACPI tables, %s\n", AcpiFormatException (Status)); AcDeleteTableList (ExternalListHead); return (Status); } /* * Load namespace from names created within control methods * Set owner id of nodes in external table */ AcpiDmFinishNamespaceLoad (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode, OwnerId); AcpiPsDeleteParseTree (AcpiGbl_ParseOpRoot); AcpiGbl_ParseOpRoot = NULL; ExternalListHead = ExternalListHead->Next; } /* Next external file */ ExternalFileList = ExternalFileList->Next; } AcDeleteTableList (ExternalListHead); if (ACPI_FAILURE (GlobalStatus)) { return (GlobalStatus); } /* Clear external list generated by Scope in external tables */ if (AcpiGbl_ExternalFileList) { AcpiDmClearExternalList (); } /* Load any externals defined in the optional external ref file */ AcpiDmGetExternalsFromFile (); return (AE_OK); } acpica-unix-20250404/source/common/acgetline.c0000775000175000017500000003273114773714131020435 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acgetline - local line editing * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acparser.h" #include "acdebug.h" /* * This is an os-independent implementation of line-editing services needed * by the AcpiExec utility. It uses getchar() and putchar() and the existing * history support provided by the AML debugger. It assumes that the terminal * is in the correct line-editing mode such as raw and noecho. The OSL * interface AcpiOsInitialize should do this. AcpiOsTerminate should put the * terminal back into the original mode. */ #define _COMPONENT ACPI_OS_SERVICES ACPI_MODULE_NAME ("acgetline") /* Local prototypes */ static void AcpiAcClearLine ( UINT32 EndOfLine, UINT32 CursorPosition); /* Various ASCII constants */ #define _ASCII_NUL 0 #define _ASCII_BACKSPACE 0x08 #define _ASCII_TAB 0x09 #define _ASCII_ESCAPE 0x1B #define _ASCII_SPACE 0x20 #define _ASCII_LEFT_BRACKET 0x5B #define _ASCII_DEL 0x7F #define _ASCII_UP_ARROW 'A' #define _ASCII_DOWN_ARROW 'B' #define _ASCII_RIGHT_ARROW 'C' #define _ASCII_LEFT_ARROW 'D' #define _ASCII_NEWLINE '\n' /* Erase a single character on the input command line */ #define ACPI_CLEAR_CHAR() \ putchar (_ASCII_BACKSPACE); \ putchar (_ASCII_SPACE); \ putchar (_ASCII_BACKSPACE); /* Backup cursor by Count positions */ #define ACPI_BACKUP_CURSOR(i, Count) \ for (i = 0; i < (Count); i++) \ {putchar (_ASCII_BACKSPACE);} /****************************************************************************** * * FUNCTION: AcpiAcClearLine * * PARAMETERS: EndOfLine - Current end-of-line index * CursorPosition - Current cursor position within line * * RETURN: None * * DESCRIPTION: Clear the entire command line the hard way, but probably the * most portable. * *****************************************************************************/ static void AcpiAcClearLine ( UINT32 EndOfLine, UINT32 CursorPosition) { UINT32 i; if (CursorPosition < EndOfLine) { /* Clear line from current position to end of line */ for (i = 0; i < (EndOfLine - CursorPosition); i++) { putchar (' '); } } /* Clear the entire line */ for (; EndOfLine > 0; EndOfLine--) { ACPI_CLEAR_CHAR (); } } /****************************************************************************** * * FUNCTION: AcpiOsGetLine * * PARAMETERS: Buffer - Where to return the command line * BufferLength - Maximum length of Buffer * BytesRead - Where the actual byte count is returned * * RETURN: Status and actual bytes read * * DESCRIPTION: Get the next input line from the terminal. NOTE: terminal * is expected to be in a mode that supports line-editing (raw, * noecho). This function is intended to be very portable. Also, * it uses the history support implemented in the AML debugger. * *****************************************************************************/ ACPI_STATUS AcpiOsGetLine ( char *Buffer, UINT32 BufferLength, UINT32 *BytesRead) { char *NextCommand; UINT32 MaxCommandIndex = AcpiGbl_NextCmdNum - 1; UINT32 CurrentCommandIndex = MaxCommandIndex; UINT32 PreviousCommandIndex = MaxCommandIndex; int InputChar; UINT32 CursorPosition = 0; UINT32 EndOfLine = 0; UINT32 i; /* Always clear the line buffer before we read a new line */ memset (Buffer, 0, BufferLength); /* * This loop gets one character at a time (except for esc sequences) * until a newline or error is detected. * * Note: Don't attempt to write terminal control ESC sequences, even * though it makes certain things more difficult. */ while (1) { if (EndOfLine >= (BufferLength - 1)) { return (AE_BUFFER_OVERFLOW); } InputChar = getchar (); switch (InputChar) { default: /* This is the normal character case */ /* Echo the character (at EOL) and copy it to the line buffer */ if (EndOfLine == CursorPosition) { putchar (InputChar); Buffer[EndOfLine] = (char) InputChar; EndOfLine++; CursorPosition++; Buffer[EndOfLine] = 0; continue; } /* Insert character into the middle of the buffer */ memmove (&Buffer[CursorPosition + 1], &Buffer[CursorPosition], (EndOfLine - CursorPosition + 1)); Buffer [CursorPosition] = (char) InputChar; Buffer [EndOfLine + 1] = 0; /* Display the new part of line starting at the new character */ fprintf (stdout, "%s", &Buffer[CursorPosition]); /* Restore cursor */ ACPI_BACKUP_CURSOR (i, EndOfLine - CursorPosition); CursorPosition++; EndOfLine++; continue; case _ASCII_DEL: /* Backspace key */ if (!EndOfLine) /* Any characters on the command line? */ { continue; } if (EndOfLine == CursorPosition) /* Erase the final character */ { ACPI_CLEAR_CHAR (); EndOfLine--; CursorPosition--; continue; } if (!CursorPosition) /* Do not backup beyond start of line */ { continue; } /* Remove the character from the line */ memmove (&Buffer[CursorPosition - 1], &Buffer[CursorPosition], (EndOfLine - CursorPosition + 1)); /* Display the new part of line starting at the new character */ putchar (_ASCII_BACKSPACE); fprintf (stdout, "%s ", &Buffer[CursorPosition - 1]); /* Restore cursor */ ACPI_BACKUP_CURSOR (i, EndOfLine - CursorPosition + 1); EndOfLine--; if (CursorPosition > 0) { CursorPosition--; } continue; case _ASCII_NEWLINE: /* Normal exit case at end of command line */ case _ASCII_NUL: /* Return the number of bytes in the command line string */ if (BytesRead) { *BytesRead = EndOfLine; } /* Echo, terminate string buffer, and exit */ putchar (InputChar); Buffer[EndOfLine] = 0; return (AE_OK); case _ASCII_TAB: /* Ignore */ continue; case EOF: return (AE_ERROR); case _ASCII_ESCAPE: /* Check for escape sequences of the form "ESC[x" */ InputChar = getchar (); if (InputChar != _ASCII_LEFT_BRACKET) { continue; /* Ignore this ESC, does not have the '[' */ } /* Get the code following the ESC [ */ InputChar = getchar (); /* Backup one character */ switch (InputChar) { case _ASCII_LEFT_ARROW: if (CursorPosition > 0) { putchar (_ASCII_BACKSPACE); CursorPosition--; } continue; case _ASCII_RIGHT_ARROW: /* * Move one character forward. Do this without sending * ESC sequence to the terminal for max portability. */ if (CursorPosition < EndOfLine) { /* Backup to start of line and print the entire line */ ACPI_BACKUP_CURSOR (i, CursorPosition); fprintf (stdout, "%s", Buffer); /* Backup to where the cursor should be */ CursorPosition++; ACPI_BACKUP_CURSOR (i, EndOfLine - CursorPosition); } continue; case _ASCII_UP_ARROW: /* If no commands available or at start of history list, ignore */ if (!CurrentCommandIndex) { continue; } /* Manage our up/down progress */ if (CurrentCommandIndex > PreviousCommandIndex) { CurrentCommandIndex = PreviousCommandIndex; } /* Get the historical command from the debugger */ NextCommand = AcpiDbGetHistoryByIndex (CurrentCommandIndex); if (!NextCommand) { return (AE_ERROR); } /* Make this the active command and echo it */ AcpiAcClearLine (EndOfLine, CursorPosition); strcpy (Buffer, NextCommand); fprintf (stdout, "%s", Buffer); EndOfLine = CursorPosition = strlen (Buffer); PreviousCommandIndex = CurrentCommandIndex; CurrentCommandIndex--; continue; case _ASCII_DOWN_ARROW: if (!MaxCommandIndex) /* Any commands available? */ { continue; } /* Manage our up/down progress */ if (CurrentCommandIndex < PreviousCommandIndex) { CurrentCommandIndex = PreviousCommandIndex; } /* If we are the end of the history list, output a clear new line */ if ((CurrentCommandIndex + 1) > MaxCommandIndex) { AcpiAcClearLine (EndOfLine, CursorPosition); EndOfLine = CursorPosition = 0; PreviousCommandIndex = CurrentCommandIndex; continue; } PreviousCommandIndex = CurrentCommandIndex; CurrentCommandIndex++; /* Get the historical command from the debugger */ NextCommand = AcpiDbGetHistoryByIndex (CurrentCommandIndex); if (!NextCommand) { return (AE_ERROR); } /* Make this the active command and echo it */ AcpiAcClearLine (EndOfLine, CursorPosition); strcpy (Buffer, NextCommand); fprintf (stdout, "%s", Buffer); EndOfLine = CursorPosition = strlen (Buffer); continue; case 0x31: case 0x32: case 0x33: case 0x34: case 0x35: case 0x36: /* * Ignore the various keys like insert/delete/home/end, etc. * But we must eat the final character of the ESC sequence. */ (void) getchar (); continue; default: /* Ignore random escape sequences that we don't care about */ continue; } continue; } } } acpica-unix-20250404/source/common/dmextern.c0000775000175000017500000013661214773714131020333 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmextern - Support for External() ASL statements * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acnamesp.h" #include "acdisasm.h" #include "aslcompiler.h" #include #include /* * This module is used for application-level code (iASL disassembler) only. * * It contains the code to create and emit any necessary External() ASL * statements for the module being disassembled. */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmextern") /* * This table maps ACPI_OBJECT_TYPEs to the corresponding ASL * ObjectTypeKeyword. Used to generate typed external declarations */ static const char *AcpiGbl_DmTypeNames[] = { /* 00 */ ", UnknownObj", /* Type ANY */ /* 01 */ ", IntObj", /* 02 */ ", StrObj", /* 03 */ ", BuffObj", /* 04 */ ", PkgObj", /* 05 */ ", FieldUnitObj", /* 06 */ ", DeviceObj", /* 07 */ ", EventObj", /* 08 */ ", MethodObj", /* 09 */ ", MutexObj", /* 10 */ ", OpRegionObj", /* 11 */ ", PowerResObj", /* 12 */ ", ProcessorObj", /* 13 */ ", ThermalZoneObj", /* 14 */ ", BuffFieldObj", /* 15 */ ", DDBHandleObj", /* 16 */ "", /* Debug object */ /* 17 */ ", FieldUnitObj", /* 18 */ ", FieldUnitObj", /* 19 */ ", FieldUnitObj" }; #define METHOD_SEPARATORS " \t,()\n" static const char *ExternalConflictMessage = " // Conflicts with a later declaration"; /* Local prototypes */ static const char * AcpiDmGetObjectTypeName ( ACPI_OBJECT_TYPE Type); static char * AcpiDmNormalizeParentPrefix ( ACPI_PARSE_OBJECT *Op, char *Path); static ACPI_STATUS AcpiDmGetExternalAndInternalPath ( ACPI_NAMESPACE_NODE *Node, char **ExternalPath, char **InternalPath); static ACPI_STATUS AcpiDmRemoveRootPrefix ( char **Path); static void AcpiDmAddPathToExternalList ( char *Path, UINT8 Type, UINT32 Value, UINT16 Flags); static ACPI_STATUS AcpiDmCreateNewExternal ( char *ExternalPath, char *InternalPath, UINT8 Type, UINT32 Value, UINT16 Flags); static void AcpiDmCheckForExternalConflict ( char *Path); static ACPI_STATUS AcpiDmResolveExternal ( char *Path, UINT8 Type, ACPI_NAMESPACE_NODE **Node); static void AcpiDmConflictingDeclaration ( char *Path); /******************************************************************************* * * FUNCTION: AcpiDmGetObjectTypeName * * PARAMETERS: Type - An ACPI_OBJECT_TYPE * * RETURN: Pointer to a string * * DESCRIPTION: Map an object type to the ASL object type string. * ******************************************************************************/ static const char * AcpiDmGetObjectTypeName ( ACPI_OBJECT_TYPE Type) { if (Type == ACPI_TYPE_LOCAL_SCOPE) { Type = ACPI_TYPE_DEVICE; } else if (Type > ACPI_TYPE_LOCAL_INDEX_FIELD) { return (""); } return (AcpiGbl_DmTypeNames[Type]); } /******************************************************************************* * * FUNCTION: AcpiDmNormalizeParentPrefix * * PARAMETERS: Op - Parse op * Path - Path with parent prefix * * RETURN: The full pathname to the object (from the namespace root) * * DESCRIPTION: Returns the full pathname of a path with parent prefix * The caller must free the fullpath returned. * ******************************************************************************/ static char * AcpiDmNormalizeParentPrefix ( ACPI_PARSE_OBJECT *Op, char *Path) { ACPI_NAMESPACE_NODE *Node; char *Fullpath; char *ParentPath; ACPI_SIZE Length; UINT32 Index = 0; if (!Op) { return (NULL); } /* Search upwards in the parse tree until we reach the next namespace node */ Op = Op->Common.Parent; while (Op) { if (Op->Common.Node) { break; } Op = Op->Common.Parent; } if (!Op) { return (NULL); } /* * Find the actual parent node for the reference: * Remove all carat prefixes from the input path. * There may be multiple parent prefixes (For example, ^^^M000) */ Node = Op->Common.Node; while (Node && (*Path == (UINT8) AML_PARENT_PREFIX)) { Node = Node->Parent; Path++; } if (!Node) { return (NULL); } /* Get the full pathname for the parent node */ ParentPath = AcpiNsGetExternalPathname (Node); if (!ParentPath) { return (NULL); } Length = (strlen (ParentPath) + strlen (Path) + 1); if (ParentPath[1]) { /* * If ParentPath is not just a simple '\', increment the length * for the required dot separator (ParentPath.Path) */ Length++; /* For External() statements, we do not want a leading '\' */ if (*ParentPath == AML_ROOT_PREFIX) { Index = 1; } } Fullpath = ACPI_ALLOCATE_ZEROED (Length); if (!Fullpath) { goto Cleanup; } /* * Concatenate parent fullpath and path. For example, * parent fullpath "\_SB_", Path "^INIT", Fullpath "\_SB_.INIT" * * Copy the parent path */ strcpy (Fullpath, &ParentPath[Index]); /* * Add dot separator * (don't need dot if parent fullpath is a single backslash) */ if (ParentPath[1]) { strcat (Fullpath, "."); } /* Copy child path (carat parent prefix(es) were skipped above) */ strcat (Fullpath, Path); Cleanup: ACPI_FREE (ParentPath); return (Fullpath); } /******************************************************************************* * * FUNCTION: AcpiDmAddToExternalFileList * * PARAMETERS: PathList - Single path or list separated by comma * * RETURN: None * * DESCRIPTION: Add external files to global list * ******************************************************************************/ ACPI_STATUS AcpiDmAddToExternalFileList ( char *Pathname) { ACPI_EXTERNAL_FILE *ExternalFile; char *LocalPathname; if (!Pathname) { return (AE_OK); } LocalPathname = ACPI_ALLOCATE (strlen (Pathname) + 1); if (!LocalPathname) { return (AE_NO_MEMORY); } ExternalFile = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EXTERNAL_FILE)); if (!ExternalFile) { ACPI_FREE (LocalPathname); return (AE_NO_MEMORY); } /* Take a copy of the file pathname */ strcpy (LocalPathname, Pathname); ExternalFile->Path = LocalPathname; if (AcpiGbl_ExternalFileList) { ExternalFile->Next = AcpiGbl_ExternalFileList; } AcpiGbl_ExternalFileList = ExternalFile; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmClearExternalFileList * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Clear the external file list * ******************************************************************************/ void AcpiDmClearExternalFileList ( void) { ACPI_EXTERNAL_FILE *NextExternal; while (AcpiGbl_ExternalFileList) { NextExternal = AcpiGbl_ExternalFileList->Next; ACPI_FREE (AcpiGbl_ExternalFileList->Path); ACPI_FREE (AcpiGbl_ExternalFileList); AcpiGbl_ExternalFileList = NextExternal; } } /******************************************************************************* * * FUNCTION: AcpiDmGetExternalsFromFile * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Process the optional external reference file. * * Each line in the file should be of the form: * External (, MethodObj, ) * * Example: * External (_SB_.PCI0.XHC_.PS0X, MethodObj, 4) * ******************************************************************************/ void AcpiDmGetExternalsFromFile ( void) { FILE *ExternalRefFile; char *Token; char *MethodName; UINT32 ArgCount; UINT32 ImportCount = 0; if (!AslGbl_ExternalRefFilename) { return; } /* Open the file */ ExternalRefFile = fopen (AslGbl_ExternalRefFilename, "r"); if (!ExternalRefFile) { fprintf (stderr, "Could not open external reference file \"%s\"\n", AslGbl_ExternalRefFilename); AslAbort (); return; } /* Each line defines a method */ while (fgets (AslGbl_StringBuffer, ASL_STRING_BUFFER_SIZE, ExternalRefFile)) { Token = strtok (AslGbl_StringBuffer, METHOD_SEPARATORS); /* "External" */ if (!Token) { continue; } if (strcmp (Token, "External")) { continue; } MethodName = strtok (NULL, METHOD_SEPARATORS); /* Method namepath */ if (!MethodName) { continue; } Token = strtok (NULL, METHOD_SEPARATORS); /* "MethodObj" */ if (!Token) { continue; } if (strcmp (Token, "MethodObj")) { continue; } Token = strtok (NULL, METHOD_SEPARATORS); /* Arg count */ if (!Token) { continue; } /* Convert arg count string to an integer */ errno = 0; ArgCount = strtoul (Token, NULL, 0); if (errno) { fprintf (stderr, "Invalid argument count (%s)\n", Token); continue; } if (ArgCount > 7) { fprintf (stderr, "Invalid argument count (%u)\n", ArgCount); continue; } /* Add this external to the global list */ AcpiOsPrintf ("%s: Importing method external (%u arguments) %s\n", AslGbl_ExternalRefFilename, ArgCount, MethodName); AcpiDmAddPathToExternalList (MethodName, ACPI_TYPE_METHOD, ArgCount, (ACPI_EXT_RESOLVED_REFERENCE | ACPI_EXT_ORIGIN_FROM_FILE)); ImportCount++; } if (!ImportCount) { fprintf (stderr, "Did not find any external methods in reference file \"%s\"\n", AslGbl_ExternalRefFilename); } else { /* Add the external(s) to the namespace */ AcpiDmAddExternalListToNamespace (); AcpiOsPrintf ("%s: Imported %u external method definitions\n", AslGbl_ExternalRefFilename, ImportCount); } fclose (ExternalRefFile); } /******************************************************************************* * * FUNCTION: AcpiDmAddOpToExternalList * * PARAMETERS: Op - Current parser Op * Path - Internal (AML) path to the object * Type - ACPI object type to be added * Value - Arg count if adding a Method object * Flags - To be passed to the external object * * RETURN: None * * DESCRIPTION: Insert a new name into the global list of Externals which * will in turn be later emitted as an External() declaration * in the disassembled output. * * This function handles the most common case where the referenced * name is simply not found in the constructed namespace. * ******************************************************************************/ void AcpiDmAddOpToExternalList ( ACPI_PARSE_OBJECT *Op, char *Path, UINT8 Type, UINT32 Value, UINT16 Flags) { char *ExternalPath; char *InternalPath = Path; char *Temp; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (DmAddOpToExternalList); if (!Path) { return_VOID; } /* Remove a root backslash if present */ if ((*Path == AML_ROOT_PREFIX) && (Path[1])) { Path++; } /* Externalize the pathname */ Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, Path, NULL, &ExternalPath); if (ACPI_FAILURE (Status)) { return_VOID; } /* * Get the full pathname from the root if "Path" has one or more * parent prefixes (^). Note: path will not contain a leading '\'. */ if (*Path == (UINT8) AML_PARENT_PREFIX) { Temp = AcpiDmNormalizeParentPrefix (Op, ExternalPath); /* Set new external path */ ACPI_FREE (ExternalPath); ExternalPath = Temp; if (!Temp) { return_VOID; } /* Create the new internal pathname */ Flags |= ACPI_EXT_INTERNAL_PATH_ALLOCATED; Status = AcpiNsInternalizeName (ExternalPath, &InternalPath); if (ACPI_FAILURE (Status)) { ACPI_FREE (ExternalPath); return_VOID; } } /* Create the new External() declaration node */ Status = AcpiDmCreateNewExternal (ExternalPath, InternalPath, Type, Value, Flags); if (ACPI_FAILURE (Status)) { ACPI_FREE (ExternalPath); if (Flags & ACPI_EXT_INTERNAL_PATH_ALLOCATED) { ACPI_FREE (InternalPath); } } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDmGetExternalAndInternalPath * * PARAMETERS: Node - Namespace node for object to be added * ExternalPath - Will contain the external path of the node * InternalPath - Will contain the internal path of the node * * RETURN: None * * DESCRIPTION: Get the External and Internal path from the given node. * ******************************************************************************/ static ACPI_STATUS AcpiDmGetExternalAndInternalPath ( ACPI_NAMESPACE_NODE *Node, char **ExternalPath, char **InternalPath) { ACPI_STATUS Status; if (!Node) { return (AE_BAD_PARAMETER); } /* Get the full external and internal pathnames to the node */ *ExternalPath = AcpiNsGetExternalPathname (Node); if (!*ExternalPath) { return (AE_BAD_PATHNAME); } Status = AcpiNsInternalizeName (*ExternalPath, InternalPath); if (ACPI_FAILURE (Status)) { ACPI_FREE (*ExternalPath); return (Status); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmRemoveRootPrefix * * PARAMETERS: Path - Remove Root prefix from this Path * * RETURN: None * * DESCRIPTION: Remove the root prefix character '\' from Path. * ******************************************************************************/ static ACPI_STATUS AcpiDmRemoveRootPrefix ( char **Path) { char *InputPath = *Path; if ((*InputPath == AML_ROOT_PREFIX) && (InputPath[1])) { if (!memmove(InputPath, InputPath+1, strlen(InputPath))) { return (AE_ERROR); } *Path = InputPath; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmAddNodeToExternalList * * PARAMETERS: Node - Namespace node for object to be added * Type - ACPI object type to be added * Value - Arg count if adding a Method object * Flags - To be passed to the external object * * RETURN: None * * DESCRIPTION: Insert a new name into the global list of Externals which * will in turn be later emitted as an External() declaration * in the disassembled output. * * This function handles the case where the referenced name has * been found in the namespace, but the name originated in a * table other than the one that is being disassembled (such * as a table that is added via the iASL -e option). * ******************************************************************************/ void AcpiDmAddNodeToExternalList ( ACPI_NAMESPACE_NODE *Node, UINT8 Type, UINT32 Value, UINT16 Flags) { char *ExternalPath; char *InternalPath; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (DmAddNodeToExternalList); /* Get the full external and internal pathnames to the node */ Status = AcpiDmGetExternalAndInternalPath (Node, &ExternalPath, &InternalPath); if (ACPI_FAILURE (Status)) { return_VOID; } /* Remove the root backslash */ Status = AcpiDmRemoveRootPrefix (&ExternalPath); if (ACPI_FAILURE (Status)) { ACPI_FREE (ExternalPath); ACPI_FREE (InternalPath); return_VOID; } /* Create the new External() declaration node */ Status = AcpiDmCreateNewExternal (ExternalPath, InternalPath, Type, Value, (Flags | ACPI_EXT_INTERNAL_PATH_ALLOCATED)); if (ACPI_FAILURE (Status)) { ACPI_FREE (ExternalPath); ACPI_FREE (InternalPath); } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDmAddPathToExternalList * * PARAMETERS: Path - External name of the object to be added * Type - ACPI object type to be added * Value - Arg count if adding a Method object * Flags - To be passed to the external object * * RETURN: None * * DESCRIPTION: Insert a new name into the global list of Externals which * will in turn be later emitted as an External() declaration * in the disassembled output. * * This function currently is used to add externals via a * reference file (via the -fe iASL option). * ******************************************************************************/ static void AcpiDmAddPathToExternalList ( char *Path, UINT8 Type, UINT32 Value, UINT16 Flags) { char *InternalPath; char *ExternalPath; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (DmAddPathToExternalList); if (!Path) { return_VOID; } /* Remove a root backslash if present */ if ((*Path == AML_ROOT_PREFIX) && (Path[1])) { Path++; } /* Create the internal and external pathnames */ Status = AcpiNsInternalizeName (Path, &InternalPath); if (ACPI_FAILURE (Status)) { return_VOID; } Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, InternalPath, NULL, &ExternalPath); if (ACPI_FAILURE (Status)) { ACPI_FREE (InternalPath); return_VOID; } /* Create the new External() declaration node */ Status = AcpiDmCreateNewExternal (ExternalPath, InternalPath, Type, Value, (Flags | ACPI_EXT_INTERNAL_PATH_ALLOCATED)); if (ACPI_FAILURE (Status)) { ACPI_FREE (ExternalPath); ACPI_FREE (InternalPath); } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDmCreateNewExternal * * PARAMETERS: ExternalPath - External path to the object * InternalPath - Internal (AML) path to the object * Type - ACPI object type to be added * Value - Arg count if adding a Method object * Flags - To be passed to the external object * * RETURN: Status * * DESCRIPTION: Common low-level function to insert a new name into the global * list of Externals which will in turn be later emitted as * External() declarations in the disassembled output. * * Note: The external name should not include a root prefix * (backslash). We do not want External() statements to contain * a leading '\', as this prevents duplicate external statements * of the form: * * External (\ABCD) * External (ABCD) * * This would cause a compile time error when the disassembled * output file is recompiled. * * There are two cases that are handled here. For both, we emit * an External() statement: * 1) The name was simply not found in the namespace. * 2) The name was found, but it originated in a table other than * the table that is being disassembled. * ******************************************************************************/ static ACPI_STATUS AcpiDmCreateNewExternal ( char *ExternalPath, char *InternalPath, UINT8 Type, UINT32 Value, UINT16 Flags) { ACPI_EXTERNAL_LIST *NewExternal; ACPI_EXTERNAL_LIST *NextExternal; ACPI_EXTERNAL_LIST *PrevExternal = NULL; ACPI_FUNCTION_TRACE (DmCreateNewExternal); /* Check all existing externals to ensure no duplicates */ NextExternal = AcpiGbl_ExternalList; while (NextExternal) { /* Check for duplicates */ if (!strcmp (ExternalPath, NextExternal->Path)) { /* * If this external came from an External() opcode, we are * finished with this one. (No need to check any further). */ if (NextExternal->Flags & ACPI_EXT_ORIGIN_FROM_OPCODE) { return_ACPI_STATUS (AE_ALREADY_EXISTS); } /* Allow upgrade of type from ANY */ else if ((NextExternal->Type == ACPI_TYPE_ANY) && (Type != ACPI_TYPE_ANY)) { NextExternal->Type = Type; } /* Update the argument count as necessary */ if (Value < NextExternal->Value) { NextExternal->Value = Value; } /* Update flags. */ NextExternal->Flags |= Flags; NextExternal->Flags &= ~ACPI_EXT_INTERNAL_PATH_ALLOCATED; return_ACPI_STATUS (AE_ALREADY_EXISTS); } NextExternal = NextExternal->Next; } /* Allocate and init a new External() descriptor */ NewExternal = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EXTERNAL_LIST)); if (!NewExternal) { return_ACPI_STATUS (AE_NO_MEMORY); } ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Adding external reference node (%s) type [%s]\n", ExternalPath, AcpiUtGetTypeName (Type))); NewExternal->Flags = Flags; NewExternal->Value = Value; NewExternal->Path = ExternalPath; NewExternal->Type = Type; NewExternal->Length = (UINT16) strlen (ExternalPath); NewExternal->InternalPath = InternalPath; /* Link the new descriptor into the global list, alphabetically ordered */ NextExternal = AcpiGbl_ExternalList; while (NextExternal) { if (AcpiUtStricmp (NewExternal->Path, NextExternal->Path) < 0) { if (PrevExternal) { PrevExternal->Next = NewExternal; } else { AcpiGbl_ExternalList = NewExternal; } NewExternal->Next = NextExternal; return_ACPI_STATUS (AE_OK); } PrevExternal = NextExternal; NextExternal = NextExternal->Next; } if (PrevExternal) { PrevExternal->Next = NewExternal; } else { AcpiGbl_ExternalList = NewExternal; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmResolveExternal * * PARAMETERS: Path - Path of the external * Type - Type of the external * Node - Input node for AcpiNsLookup * * RETURN: Status * * DESCRIPTION: Resolve the external within the namespace by AcpiNsLookup. * If the returned node is an external and has the same type * we assume that it was either an existing external or a * ******************************************************************************/ static ACPI_STATUS AcpiDmResolveExternal ( char *Path, UINT8 Type, ACPI_NAMESPACE_NODE **Node) { ACPI_STATUS Status; Status = AcpiNsLookup (NULL, Path, Type, ACPI_IMODE_LOAD_PASS1, ACPI_NS_ERROR_IF_FOUND | ACPI_NS_EXTERNAL | ACPI_NS_DONT_OPEN_SCOPE, NULL, Node); if (!Node) { ACPI_EXCEPTION ((AE_INFO, Status, "while adding external to namespace [%s]", Path)); } /* Note the asl code "external(a) external(a)" is acceptable ASL */ else if ((*Node)->Type == Type && (*Node)->Flags & ANOBJ_IS_EXTERNAL) { return (AE_OK); } else { ACPI_EXCEPTION ((AE_INFO, AE_ERROR, "[%s] has conflicting declarations", Path)); } return (AE_ERROR); } /******************************************************************************* * * FUNCTION: AcpiDmCreateSubobjectForExternal * * PARAMETERS: Type - Type of the external * Node - Namespace node from AcpiNsLookup * ParamCount - Value to be used for Method * * RETURN: None * * DESCRIPTION: Add one external to the namespace. Allows external to be * "resolved". * ******************************************************************************/ void AcpiDmCreateSubobjectForExternal ( UINT8 Type, ACPI_NAMESPACE_NODE **Node, UINT32 ParamCount) { ACPI_OPERAND_OBJECT *ObjDesc; switch (Type) { case ACPI_TYPE_METHOD: /* For methods, we need to save the argument count */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_METHOD); ObjDesc->Method.ParamCount = (UINT8) ParamCount; (*Node)->Object = ObjDesc; break; case ACPI_TYPE_REGION: /* Regions require a region sub-object */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_REGION); ObjDesc->Region.Node = *Node; (*Node)->Object = ObjDesc; break; default: break; } } /******************************************************************************* * * FUNCTION: AcpiDmAddOneExternalToNamespace * * PARAMETERS: Path - External parse object * Type - Type of parse object * ParamCount - External method parameter count * * RETURN: None * * DESCRIPTION: Add one external to the namespace by resolvign the external * (by performing a namespace lookup) and annotating the resulting * namespace node with the appropriate information if the type * is ACPI_TYPE_REGION or ACPI_TYPE_METHOD. * ******************************************************************************/ void AcpiDmAddOneExternalToNamespace ( char *Path, UINT8 Type, UINT32 ParamCount) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; Status = AcpiDmResolveExternal (Path, Type, &Node); if (ACPI_FAILURE (Status)) { return; } AcpiDmCreateSubobjectForExternal (Type, &Node, ParamCount); } /******************************************************************************* * * FUNCTION: AcpiDmAddExternalListToNamespace * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Add all externals within AcpiGbl_ExternalList to the namespace. * Allows externals to be "resolved". * ******************************************************************************/ void AcpiDmAddExternalListToNamespace ( void) { ACPI_EXTERNAL_LIST *External = AcpiGbl_ExternalList; while (External) { AcpiDmAddOneExternalToNamespace (External->InternalPath, External->Type, External->Value); External = External->Next; } } /******************************************************************************* * * FUNCTION: AcpiDmGetUnresolvedExternalMethodCount * * PARAMETERS: None * * RETURN: The number of unresolved control method externals in the * external list * * DESCRIPTION: Return the number of unresolved external methods that have been * generated. If any unresolved control method externals have been * found, we must re-parse the entire definition block with the new * information (number of arguments for the methods.) * This is limitation of AML, we don't know the number of arguments * from the control method invocation itself. * * Note: resolved external control methods are external control * methods encoded with the AML_EXTERNAL_OP bytecode within the * AML being disassembled. * ******************************************************************************/ UINT32 AcpiDmGetUnresolvedExternalMethodCount ( void) { ACPI_EXTERNAL_LIST *External = AcpiGbl_ExternalList; UINT32 Count = 0; while (External) { if (External->Type == ACPI_TYPE_METHOD && !(External->Flags & ACPI_EXT_ORIGIN_FROM_OPCODE)) { Count++; } External = External->Next; } return (Count); } /******************************************************************************* * * FUNCTION: AcpiDmClearExternalList * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Free the entire External info list * ******************************************************************************/ void AcpiDmClearExternalList ( void) { ACPI_EXTERNAL_LIST *NextExternal; while (AcpiGbl_ExternalList) { NextExternal = AcpiGbl_ExternalList->Next; ACPI_FREE (AcpiGbl_ExternalList->Path); ACPI_FREE (AcpiGbl_ExternalList); AcpiGbl_ExternalList = NextExternal; } } /******************************************************************************* * * FUNCTION: AcpiDmEmitExternals * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Emit an External() ASL statement for each of the externals in * the global external info list. * ******************************************************************************/ void AcpiDmEmitExternals ( void) { ACPI_EXTERNAL_LIST *NextExternal; if (!AcpiGbl_ExternalList) { return; } /* * Determine the number of control methods in the external list, and * also how many of those externals were resolved via the namespace. */ NextExternal = AcpiGbl_ExternalList; while (NextExternal) { if (NextExternal->Type == ACPI_TYPE_METHOD) { AcpiGbl_NumExternalMethods++; if (NextExternal->Flags & ACPI_EXT_RESOLVED_REFERENCE) { AcpiGbl_ResolvedExternalMethods++; } } NextExternal = NextExternal->Next; } /* Check if any control methods were unresolved */ AcpiDmUnresolvedWarning (1); if (AslGbl_ExternalRefFilename) { AcpiOsPrintf ( " /*\n * External declarations were imported from\n" " * a reference file -- %s\n */\n\n", AslGbl_ExternalRefFilename); } /* * Walk and emit the list of externals found during the AML parsing */ while (AcpiGbl_ExternalList) { if (!(AcpiGbl_ExternalList->Flags & ACPI_EXT_EXTERNAL_EMITTED)) { AcpiOsPrintf (" External (%s%s)", AcpiGbl_ExternalList->Path, AcpiDmGetObjectTypeName (AcpiGbl_ExternalList->Type)); /* Check for "unresolved" method reference */ if ((AcpiGbl_ExternalList->Type == ACPI_TYPE_METHOD) && (!(AcpiGbl_ExternalList->Flags & ACPI_EXT_RESOLVED_REFERENCE))) { AcpiOsPrintf (" // Warning: Unknown method, " "guessing %u arguments", AcpiGbl_ExternalList->Value); } /* Check for external from a external references file */ else if (AcpiGbl_ExternalList->Flags & ACPI_EXT_ORIGIN_FROM_FILE) { if (AcpiGbl_ExternalList->Type == ACPI_TYPE_METHOD) { AcpiOsPrintf (" // %u Arguments", AcpiGbl_ExternalList->Value); } AcpiOsPrintf (" // From external reference file"); } /* This is the normal external case */ else { /* For methods, add a comment with the number of arguments */ if (AcpiGbl_ExternalList->Type == ACPI_TYPE_METHOD) { AcpiOsPrintf (" // %u Arguments", AcpiGbl_ExternalList->Value); } } if (AcpiGbl_ExternalList->Flags &= ACPI_EXT_CONFLICTING_DECLARATION) { AcpiOsPrintf ("%s", ExternalConflictMessage); AcpiDmConflictingDeclaration (AcpiGbl_ExternalList->Path); } AcpiOsPrintf ("\n"); } /* Free this external info block and move on to next external */ NextExternal = AcpiGbl_ExternalList->Next; if (AcpiGbl_ExternalList->Flags & ACPI_EXT_INTERNAL_PATH_ALLOCATED) { ACPI_FREE (AcpiGbl_ExternalList->InternalPath); } ACPI_FREE (AcpiGbl_ExternalList->Path); ACPI_FREE (AcpiGbl_ExternalList); AcpiGbl_ExternalList = NextExternal; } AcpiOsPrintf ("\n"); } /******************************************************************************* * * FUNCTION: AcpiDmMarkExternalConflict * * PARAMETERS: Path - Namepath to search * * RETURN: ExternalList * * DESCRIPTION: Search the AcpiGbl_ExternalList for a matching path * ******************************************************************************/ void AcpiDmMarkExternalConflict ( ACPI_NAMESPACE_NODE *Node) { ACPI_EXTERNAL_LIST *ExternalList = AcpiGbl_ExternalList; char *ExternalPath; char *InternalPath; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (DmMarkExternalConflict); if (Node->Flags & ANOBJ_IS_EXTERNAL) { return_VOID; } /* Get the full external and internal pathnames to the node */ Status = AcpiDmGetExternalAndInternalPath (Node, &ExternalPath, &InternalPath); if (ACPI_FAILURE (Status)) { return_VOID; } /* Remove the root backslash */ Status = AcpiDmRemoveRootPrefix (&InternalPath); if (ACPI_FAILURE (Status)) { ACPI_FREE (InternalPath); ACPI_FREE (ExternalPath); return_VOID; } while (ExternalList) { if (!strcmp (ExternalList->InternalPath, InternalPath)) { ExternalList->Flags |= ACPI_EXT_CONFLICTING_DECLARATION; } ExternalList = ExternalList->Next; } ACPI_FREE (InternalPath); ACPI_FREE (ExternalPath); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDmConflictingDeclaration * * PARAMETERS: Path - Path with conflicting declaration * * RETURN: None * * DESCRIPTION: Emit a warning when printing conflicting ASL external * declarations. * ******************************************************************************/ static void AcpiDmConflictingDeclaration ( char *Path) { fprintf (stderr, " Warning - Emitting ASL code \"External (%s)\"\n" " This is a conflicting declaration with some " "other declaration within the ASL code.\n" " This external declaration may need to be " "deleted in order to recompile the dsl file.\n\n", Path); } /******************************************************************************* * * FUNCTION: AcpiDmEmitExternal * * PARAMETERS: Op External Parse Object * * RETURN: None * * DESCRIPTION: Emit an External() ASL statement for the current External * parse object. Note: External Ops are named types so the * namepath is contained within NameOp->Name.Path. * ******************************************************************************/ void AcpiDmEmitExternal ( ACPI_PARSE_OBJECT *NameOp, ACPI_PARSE_OBJECT *TypeOp) { AcpiOsPrintf ("External ("); AcpiDmNamestring (NameOp->Named.Path); AcpiOsPrintf ("%s)", AcpiDmGetObjectTypeName ((ACPI_OBJECT_TYPE) TypeOp->Common.Value.Integer)); AcpiDmCheckForExternalConflict (NameOp->Named.Path); AcpiOsPrintf ("\n"); } /******************************************************************************* * * FUNCTION: AcpiDmCheckForExternalConflict * * PARAMETERS: Path - Path to check * * RETURN: None * * DESCRIPTION: Search the External List to see if the input Path has a * conflicting declaration. * ******************************************************************************/ static void AcpiDmCheckForExternalConflict ( char *Path) { ACPI_EXTERNAL_LIST *ExternalList = AcpiGbl_ExternalList; char *ListItemPath; char *InputPath; if (!Path) { return; } /* Move past the root prefix '\' */ InputPath = Path; if ((*InputPath == AML_ROOT_PREFIX) && InputPath[1]) { InputPath++; } while (ExternalList) { ListItemPath = ExternalList->Path; if (ListItemPath) { /* Move past the root prefix '\' */ if ((*ListItemPath == AML_ROOT_PREFIX) && ListItemPath[1]) { ListItemPath++; } if (!strcmp (ListItemPath, InputPath) && (ExternalList->Flags & ACPI_EXT_CONFLICTING_DECLARATION)) { AcpiOsPrintf ("%s", ExternalConflictMessage); AcpiDmConflictingDeclaration (Path); return; } } ExternalList = ExternalList->Next; } } /******************************************************************************* * * FUNCTION: AcpiDmUnresolvedWarning * * PARAMETERS: Type - Where to output the warning. * 0 means write to stderr * 1 means write to AcpiOsPrintf * * RETURN: None * * DESCRIPTION: Issue warning message if there are unresolved external control * methods within the disassembly. * ******************************************************************************/ /* Summary of the external control method problem: When the -e option is used with disassembly, the various SSDTs are simply loaded into a global namespace for the disassembler to use in order to resolve control method references (invocations). The disassembler tracks any such references, and will emit an External() statement for these types of methods, with the proper number of arguments . Without the SSDTs, the AML does not contain enough information to properly disassemble the control method invocation -- because the disassembler does not know how many arguments to parse. An example: Assume we have two control methods. ABCD has one argument, and EFGH has zero arguments. Further, we have two additional control methods that invoke ABCD and EFGH, named T1 and T2: Method (ABCD, 1) { } Method (EFGH, 0) { } Method (T1) { ABCD (Add (2, 7, Local0)) } Method (T2) { EFGH () Add (2, 7, Local0) } Here is the AML code that is generated for T1 and T2: 185: Method (T1) 0000034C: 14 10 54 31 5F 5F 00 ... "..T1__." 186: { 187: ABCD (Add (2, 7, Local0)) 00000353: 41 42 43 44 ............ "ABCD" 00000357: 72 0A 02 0A 07 60 ...... "r....`" 188: } 190: Method (T2) 0000035D: 14 10 54 32 5F 5F 00 ... "..T2__." 191: { 192: EFGH () 00000364: 45 46 47 48 ............ "EFGH" 193: Add (2, 7, Local0) 00000368: 72 0A 02 0A 07 60 ...... "r....`" 194: } Note that the AML code for T1 and T2 is essentially identical. When disassembling this code, the methods ABCD and EFGH must be known to the disassembler, otherwise it does not know how to handle the method invocations. In other words, if ABCD and EFGH are actually external control methods appearing in an SSDT, the disassembler does not know what to do unless the owning SSDT has been loaded via the -e option. */ static char ExternalWarningPart1[600]; static char ExternalWarningPart2[400]; static char ExternalWarningPart3[400]; static char ExternalWarningPart4[200]; void AcpiDmUnresolvedWarning ( UINT8 Type) { char *Format; char Pad[] = " *"; char NoPad[] = ""; if (!AcpiGbl_NumExternalMethods) { return; } if (AcpiGbl_NumExternalMethods == AcpiGbl_ResolvedExternalMethods) { return; } Format = Type ? Pad : NoPad; sprintf (ExternalWarningPart1, "%s iASL Warning: There %s %u external control method%s found during\n" "%s disassembly, but only %u %s resolved (%u unresolved). Additional\n" "%s ACPI tables may be required to properly disassemble the code. This\n" "%s resulting disassembler output file may not compile because the\n" "%s disassembler did not know how many arguments to assign to the\n" "%s unresolved methods. Note: SSDTs can be dynamically loaded at\n" "%s runtime and may or may not be available via the host OS.\n", Format, (AcpiGbl_NumExternalMethods != 1 ? "were" : "was"), AcpiGbl_NumExternalMethods, (AcpiGbl_NumExternalMethods != 1 ? "s" : ""), Format, AcpiGbl_ResolvedExternalMethods, (AcpiGbl_ResolvedExternalMethods != 1 ? "were" : "was"), (AcpiGbl_NumExternalMethods - AcpiGbl_ResolvedExternalMethods), Format, Format, Format, Format, Format); sprintf (ExternalWarningPart2, "%s To specify the tables needed to resolve external control method\n" "%s references, the -e option can be used to specify the filenames.\n" "%s Example iASL invocations:\n" "%s iasl -e ssdt1.aml ssdt2.aml ssdt3.aml -d dsdt.aml\n" "%s iasl -e dsdt.aml ssdt2.aml -d ssdt1.aml\n" "%s iasl -e ssdt*.aml -d dsdt.aml\n", Format, Format, Format, Format, Format, Format); sprintf (ExternalWarningPart3, "%s In addition, the -fe option can be used to specify a file containing\n" "%s control method external declarations with the associated method\n" "%s argument counts. Each line of the file must be of the form:\n" "%s External (, MethodObj, )\n" "%s Invocation:\n" "%s iasl -fe refs.txt -d dsdt.aml\n", Format, Format, Format, Format, Format, Format); sprintf (ExternalWarningPart4, "%s The following methods were unresolved and many not compile properly\n" "%s because the disassembler had to guess at the number of arguments\n" "%s required for each:\n", Format, Format, Format); if (Type) { if (!AcpiGbl_ExternalFileList) { /* The -e option was not specified */ AcpiOsPrintf (" /*\n%s *\n%s *\n%s *\n%s */\n", ExternalWarningPart1, ExternalWarningPart2, ExternalWarningPart3, ExternalWarningPart4); } else { /* The -e option was specified, but there are still some unresolved externals */ AcpiOsPrintf (" /*\n%s *\n%s *\n%s */\n", ExternalWarningPart1, ExternalWarningPart3, ExternalWarningPart4); } } else { if (!AcpiGbl_ExternalFileList) { /* The -e option was not specified */ fprintf (stderr, "\n%s\n%s\n%s\n", ExternalWarningPart1, ExternalWarningPart2, ExternalWarningPart3); } else { /* The -e option was specified, but there are still some unresolved externals */ fprintf (stderr, "\n%s\n%s\n", ExternalWarningPart1, ExternalWarningPart3); } } } acpica-unix-20250404/source/common/cmfsize.c0000775000175000017500000000710014773714131020132 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: cmfsize - Common get file size function * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acapps.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("cmfsize") /******************************************************************************* * * FUNCTION: CmGetFileSize * * PARAMETERS: File - Open file descriptor * * RETURN: File Size. On error, -1 (ACPI_UINT32_MAX) * * DESCRIPTION: Get the size of a file. Uses seek-to-EOF. File must be open. * Does not disturb the current file pointer. * ******************************************************************************/ UINT32 CmGetFileSize ( ACPI_FILE File) { long FileSize; long CurrentOffset; ACPI_STATUS Status; /* Save the current file pointer, seek to EOF to obtain file size */ CurrentOffset = ftell (File); if (CurrentOffset < 0) { goto OffsetError; } Status = fseek (File, 0, SEEK_END); if (ACPI_FAILURE (Status)) { goto SeekError; } FileSize = ftell (File); if (FileSize < 0) { goto OffsetError; } /* Restore original file pointer */ Status = fseek (File, CurrentOffset, SEEK_SET); if (ACPI_FAILURE (Status)) { goto SeekError; } return ((UINT32) FileSize); OffsetError: fprintf (stderr, "Could not get file offset\n"); return (ACPI_UINT32_MAX); SeekError: fprintf (stderr, "Could not set file offset\n"); return (ACPI_UINT32_MAX); } acpica-unix-20250404/source/common/dmtbinfo2.c0000775000175000017500000034233414773714131020371 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtbinfo2 - Table info for non-AML tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "actbinfo.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmtbinfo2") /* * How to add a new table: * * - Add the C table definition to the actbl1.h or actbl2.h header. * - Add ACPI_xxxx_OFFSET macro(s) for the table (and subtables) to list below. * - Define the table in this file (for the disassembler). If any * new data types are required (ACPI_DMT_*), see below. * - Add an external declaration for the new table definition (AcpiDmTableInfo*) * in acdisam.h * - Add new table definition to the dispatch table in dmtable.c (AcpiDmTableData) * If a simple table (with no subtables), no disassembly code is needed. * Otherwise, create the AcpiDmDump* function for to disassemble the table * and add it to the dmtbdump.c file. * - Add an external declaration for the new AcpiDmDump* function in acdisasm.h * - Add the new AcpiDmDump* function to the dispatch table in dmtable.c * - Create a template for the new table * - Add data table compiler support * * How to add a new data type (ACPI_DMT_*): * * - Add new type at the end of the ACPI_DMT list in acdisasm.h * - Add length and implementation cases in dmtable.c (disassembler) * - Add type and length cases in dtutils.c (DT compiler) */ /* * Remaining tables are not consumed directly by the ACPICA subsystem */ /******************************************************************************* * * AGDI - Arm Generic Diagnostic Dump and Reset Device Interface * * Conforms to "ACPI for Arm Components 1.1, Platform Design Document" * ARM DEN0093 v1.1 * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoAgdi[] = { {ACPI_DMT_UINT8, ACPI_AGDI_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_AGDI_FLAG_OFFSET (Flags, 0), "Signalling mode", 0}, {ACPI_DMT_UINT24, ACPI_AGDI_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_AGDI_OFFSET (SdeiEvent), "SdeiEvent", 0}, {ACPI_DMT_UINT32, ACPI_AGDI_OFFSET (Gsiv), "Gsiv", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * APMT - ARM Performance Monitoring Unit Table * * Conforms to: * ARM Performance Monitoring Unit Architecture 1.0 Platform Design Document * ARM DEN0117 v1.0 November 25, 2021 * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoApmtNode[] = { {ACPI_DMT_UINT16, ACPI_APMTN_OFFSET (Length), "Length of APMT Node", 0}, {ACPI_DMT_UINT8, ACPI_APMTN_OFFSET (Flags), "Node Flags", 0}, {ACPI_DMT_FLAG0, ACPI_APMTN_FLAG_OFFSET (Flags, 0), "Dual Page Extension", 0}, {ACPI_DMT_FLAG1, ACPI_APMTN_FLAG_OFFSET (Flags, 0), "Processor Affinity Type", 0}, {ACPI_DMT_FLAG2, ACPI_APMTN_FLAG_OFFSET (Flags, 0), "64-bit Atomic Support", 0}, {ACPI_DMT_UINT8, ACPI_APMTN_OFFSET (Type), "Node Type", 0}, {ACPI_DMT_UINT32, ACPI_APMTN_OFFSET (Id), "Unique Node Identifier", 0}, {ACPI_DMT_UINT64, ACPI_APMTN_OFFSET (InstPrimary), "Primary Node Instance", 0}, {ACPI_DMT_UINT32, ACPI_APMTN_OFFSET (InstSecondary), "Secondary Node Instance", 0}, {ACPI_DMT_UINT64, ACPI_APMTN_OFFSET (BaseAddress0), "Page 0 Base Address", 0}, {ACPI_DMT_UINT64, ACPI_APMTN_OFFSET (BaseAddress1), "Page 1 Base Address", 0}, {ACPI_DMT_UINT32, ACPI_APMTN_OFFSET (OvflwIrq), "Overflow Interrupt ID", 0}, {ACPI_DMT_UINT32, ACPI_APMTN_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_APMTN_OFFSET (OvflwIrqFlags), "Overflow Interrupt Flags", 0}, {ACPI_DMT_FLAG0, ACPI_APMTN_FLAG_OFFSET (OvflwIrqFlags, 0), "Interrupt Mode", 0}, {ACPI_DMT_FLAG1, ACPI_APMTN_FLAG_OFFSET (OvflwIrqFlags, 0), "Interrupt Type", 0}, {ACPI_DMT_UINT32, ACPI_APMTN_OFFSET (ProcAffinity), "Processor Affinity", 0}, {ACPI_DMT_UINT32, ACPI_APMTN_OFFSET (ImplId), "Implementation ID", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * IORT - IO Remapping Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoIort[] = { {ACPI_DMT_UINT32, ACPI_IORT_OFFSET (NodeCount), "Node Count", 0}, {ACPI_DMT_UINT32, ACPI_IORT_OFFSET (NodeOffset), "Node Offset", 0}, {ACPI_DMT_UINT32, ACPI_IORT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* Optional padding field */ ACPI_DMTABLE_INFO AcpiDmTableInfoIortPad[] = { {ACPI_DMT_RAW_BUFFER, 0, "Optional Padding", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr[] = { {ACPI_DMT_UINT8, ACPI_IORTH_OFFSET (Type), "Type", 0}, {ACPI_DMT_UINT16, ACPI_IORTH_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_IORTH_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT32, ACPI_IORTH_OFFSET (Identifier), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_IORTH_OFFSET (MappingCount), "Mapping Count", 0}, {ACPI_DMT_UINT32, ACPI_IORTH_OFFSET (MappingOffset), "Mapping Offset", 0}, ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable)- Revision 3 */ ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr3[] = { {ACPI_DMT_UINT8, ACPI_IORTH_OFFSET (Type), "Type", 0}, {ACPI_DMT_UINT16, ACPI_IORTH_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_IORTH_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT32, ACPI_IORTH_OFFSET (Identifier), "Identifier", 0}, {ACPI_DMT_UINT32, ACPI_IORTH_OFFSET (MappingCount), "Mapping Count", 0}, {ACPI_DMT_UINT32, ACPI_IORTH_OFFSET (MappingOffset), "Mapping Offset", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIortMap[] = { {ACPI_DMT_UINT32, ACPI_IORTM_OFFSET (InputBase), "Input base", DT_OPTIONAL}, {ACPI_DMT_UINT32, ACPI_IORTM_OFFSET (IdCount), "ID Count", 0}, {ACPI_DMT_UINT32, ACPI_IORTM_OFFSET (OutputBase), "Output Base", 0}, {ACPI_DMT_UINT32, ACPI_IORTM_OFFSET (OutputReference), "Output Reference", 0}, {ACPI_DMT_UINT32, ACPI_IORTM_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_IORTM_FLAG_OFFSET (Flags, 0), "Single Mapping", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIortAcc[] = { {ACPI_DMT_UINT32, ACPI_IORTA_OFFSET (CacheCoherency), "Cache Coherency", 0}, {ACPI_DMT_UINT8, ACPI_IORTA_OFFSET (Hints), "Hints (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_IORTA_FLAG_OFFSET (Hints, 0), "Transient", 0}, {ACPI_DMT_FLAG1, ACPI_IORTA_FLAG_OFFSET (Hints, 0), "Write Allocate", 0}, {ACPI_DMT_FLAG2, ACPI_IORTA_FLAG_OFFSET (Hints, 0), "Read Allocate", 0}, {ACPI_DMT_FLAG3, ACPI_IORTA_FLAG_OFFSET (Hints, 0), "Override", 0}, {ACPI_DMT_UINT16, ACPI_IORTA_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_IORTA_OFFSET (MemoryFlags), "Memory Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_IORTA_FLAG_OFFSET (MemoryFlags, 0), "Coherency", 0}, {ACPI_DMT_FLAG1, ACPI_IORTA_FLAG_OFFSET (MemoryFlags, 0), "Device Attribute", 0}, {ACPI_DMT_FLAG2, ACPI_IORTA_FLAG_OFFSET (MemoryFlags, 0), "Ensured Coherency of Accesses", 0}, ACPI_DMT_TERMINATOR }; /* IORT subtables */ /* 0x00: ITS Group */ ACPI_DMTABLE_INFO AcpiDmTableInfoIort0[] = { {ACPI_DMT_UINT32, ACPI_IORT0_OFFSET (ItsCount), "ItsCount", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIort0a[] = { {ACPI_DMT_UINT32, 0, "Identifiers", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* 0x01: Named Component */ ACPI_DMTABLE_INFO AcpiDmTableInfoIort1[] = { {ACPI_DMT_UINT32, ACPI_IORT1_OFFSET (NodeFlags), "Node Flags", 0}, {ACPI_DMT_IORTMEM, ACPI_IORT1_OFFSET (MemoryProperties), "Memory Properties", 0}, {ACPI_DMT_UINT8, ACPI_IORT1_OFFSET (MemoryAddressLimit), "Memory Size Limit", 0}, {ACPI_DMT_STRING, ACPI_IORT1_OFFSET (DeviceName[0]), "Device Name", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIort1a[] = { {ACPI_DMT_RAW_BUFFER, 0, "Padding", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* 0x02: PCI Root Complex */ ACPI_DMTABLE_INFO AcpiDmTableInfoIort2[] = { {ACPI_DMT_IORTMEM, ACPI_IORT2_OFFSET (MemoryProperties), "Memory Properties", 0}, {ACPI_DMT_UINT32, ACPI_IORT2_OFFSET (AtsAttribute), "ATS Attribute", 0}, {ACPI_DMT_UINT32, ACPI_IORT2_OFFSET (PciSegmentNumber), "PCI Segment Number", 0}, {ACPI_DMT_UINT8, ACPI_IORT2_OFFSET (MemoryAddressLimit), "Memory Size Limit", 0}, {ACPI_DMT_UINT16, ACPI_IORT2_OFFSET (PasidCapabilities), "PASID Capabilities", 0}, {ACPI_DMT_UINT8, ACPI_IORT2_OFFSET (Reserved[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 0x03: SMMUv1/2 */ ACPI_DMTABLE_INFO AcpiDmTableInfoIort3[] = { {ACPI_DMT_UINT64, ACPI_IORT3_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_IORT3_OFFSET (Span), "Span", 0}, {ACPI_DMT_UINT32, ACPI_IORT3_OFFSET (Model), "Model", 0}, {ACPI_DMT_UINT32, ACPI_IORT3_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_IORT3_FLAG_OFFSET (Flags, 0), "DVM Supported", 0}, {ACPI_DMT_FLAG1, ACPI_IORT3_FLAG_OFFSET (Flags, 0), "Coherent Walk", 0}, {ACPI_DMT_UINT32, ACPI_IORT3_OFFSET (GlobalInterruptOffset), "Global Interrupt Offset", 0}, {ACPI_DMT_UINT32, ACPI_IORT3_OFFSET (ContextInterruptCount), "Context Interrupt Count", 0}, {ACPI_DMT_UINT32, ACPI_IORT3_OFFSET (ContextInterruptOffset), "Context Interrupt Offset", 0}, {ACPI_DMT_UINT32, ACPI_IORT3_OFFSET (PmuInterruptCount), "PMU Interrupt Count", 0}, {ACPI_DMT_UINT32, ACPI_IORT3_OFFSET (PmuInterruptOffset), "PMU Interrupt Offset", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIort3a[] = { {ACPI_DMT_UINT32, ACPI_IORT3A_OFFSET (NSgIrpt), "NSgIrpt", 0}, {ACPI_DMT_UINT32, ACPI_IORT3A_OFFSET (NSgIrptFlags), "NSgIrpt Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_IORT3a_FLAG_OFFSET (NSgIrptFlags, 0), "Edge Triggered", 0}, {ACPI_DMT_UINT32, ACPI_IORT3A_OFFSET (NSgCfgIrpt), "NSgCfgIrpt", 0}, {ACPI_DMT_UINT32, ACPI_IORT3A_OFFSET (NSgCfgIrptFlags), "NSgCfgIrpt Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_IORT3a_FLAG_OFFSET (NSgCfgIrptFlags, 0), "Edge Triggered", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIort3b[] = { {ACPI_DMT_UINT64, 0, "Context Interrupt", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIort3c[] = { {ACPI_DMT_UINT64, 0, "PMU Interrupt", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* 0x04: SMMUv3 */ ACPI_DMTABLE_INFO AcpiDmTableInfoIort4[] = { {ACPI_DMT_UINT64, ACPI_IORT4_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_IORT4_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_IORT4_FLAG_OFFSET (Flags, 0), "COHACC Override", 0}, {ACPI_DMT_FLAG1, ACPI_IORT4_FLAG_OFFSET (Flags, 0), "HTTU Override", 0}, {ACPI_DMT_FLAG3, ACPI_IORT4_FLAG_OFFSET (Flags, 0), "Proximity Domain Valid", 0}, {ACPI_DMT_FLAG4, ACPI_IORT4_FLAG_OFFSET (Flags, 0), "DeviceID Valid", 0}, {ACPI_DMT_UINT32, ACPI_IORT4_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_IORT4_OFFSET (VatosAddress), "VATOS Address", 0}, {ACPI_DMT_UINT32, ACPI_IORT4_OFFSET (Model), "Model", 0}, {ACPI_DMT_UINT32, ACPI_IORT4_OFFSET (EventGsiv), "Event GSIV", 0}, {ACPI_DMT_UINT32, ACPI_IORT4_OFFSET (PriGsiv), "PRI GSIV", 0}, {ACPI_DMT_UINT32, ACPI_IORT4_OFFSET (GerrGsiv), "GERR GSIV", 0}, {ACPI_DMT_UINT32, ACPI_IORT4_OFFSET (SyncGsiv), "Sync GSIV", 0}, {ACPI_DMT_UINT32, ACPI_IORT4_OFFSET (Pxm), "Proximity Domain", 0}, {ACPI_DMT_UINT32, ACPI_IORT4_OFFSET (IdMappingIndex), "Device ID Mapping Index", 0}, ACPI_DMT_TERMINATOR }; /* 0x05: PMCG */ ACPI_DMTABLE_INFO AcpiDmTableInfoIort5[] = { {ACPI_DMT_UINT64, ACPI_IORT5_OFFSET (Page0BaseAddress), "Page 0 Base Address", 0}, {ACPI_DMT_UINT32, ACPI_IORT5_OFFSET (OverflowGsiv), "Overflow Interrupt GSIV", 0}, {ACPI_DMT_UINT32, ACPI_IORT5_OFFSET (NodeReference), "Node Reference", 0}, {ACPI_DMT_UINT64, ACPI_IORT5_OFFSET (Page1BaseAddress), "Page 1 Base Address", 0}, ACPI_DMT_TERMINATOR }; /* 0x06: RMR */ ACPI_DMTABLE_INFO AcpiDmTableInfoIort6[] = { {ACPI_DMT_UINT32, ACPI_IORT6_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_IORT6_FLAG_OFFSET (Flags, 0), "Remapping Permitted", 0}, {ACPI_DMT_FLAG1, ACPI_IORT6_FLAG_OFFSET (Flags, 0), "Access Privileged", 0}, {ACPI_DMT_FLAGS8_2, ACPI_IORT6_FLAG_OFFSET (Flags, 0), "Access Attributes", 0}, {ACPI_DMT_UINT32, ACPI_IORT6_OFFSET (RmrCount), "Number of RMR Descriptors", 0}, {ACPI_DMT_UINT32, ACPI_IORT6_OFFSET (RmrOffset), "RMR Descriptor Offset", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIort6a[] = { {ACPI_DMT_UINT64, ACPI_IORT6A_OFFSET (BaseAddress), "Base Address of RMR", DT_OPTIONAL}, {ACPI_DMT_UINT64, ACPI_IORT6A_OFFSET (Length), "Length of RMR", 0}, {ACPI_DMT_UINT32, ACPI_IORT6A_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * IVRS - I/O Virtualization Reporting Structure * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs[] = { {ACPI_DMT_UINT32, ACPI_IVRS_OFFSET (Info), "Virtualization Info", 0}, {ACPI_DMT_UINT64, ACPI_IVRS_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* IVRS subtables */ /* 0x10: I/O Virtualization Hardware Definition (IVHD) Block */ ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHware1[] = { {ACPI_DMT_IVRS, ACPI_IVRSH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_IVRSH_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_IVRS_FLAG_OFFSET (Flags,0), "HtTunEn", 0}, {ACPI_DMT_FLAG1, ACPI_IVRS_FLAG_OFFSET (Flags,0), "PassPW", 0}, {ACPI_DMT_FLAG2, ACPI_IVRS_FLAG_OFFSET (Flags,0), "ResPassPW", 0}, {ACPI_DMT_FLAG3, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Isoc Control", 0}, {ACPI_DMT_FLAG4, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Iotlb Support", 0}, {ACPI_DMT_FLAG5, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Coherent", 0}, {ACPI_DMT_FLAG6, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Prefetch Support", 0}, {ACPI_DMT_FLAG7, ACPI_IVRS_FLAG_OFFSET (Flags,0), "PPR Support", 0}, {ACPI_DMT_UINT16, ACPI_IVRSH_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT16, ACPI_IVRSH_OFFSET (DeviceId), "DeviceId", 0}, {ACPI_DMT_UINT16, ACPI_IVRS0_OFFSET (CapabilityOffset), "Capability Offset", 0}, {ACPI_DMT_UINT64, ACPI_IVRS0_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT16, ACPI_IVRS0_OFFSET (PciSegmentGroup), "PCI Segment Group", 0}, {ACPI_DMT_UINT16, ACPI_IVRS0_OFFSET (Info), "Virtualization Info", 0}, {ACPI_DMT_UINT32, ACPI_IVRS0_OFFSET (FeatureReporting), "Feature Reporting", 0}, ACPI_DMT_TERMINATOR }; /* 0x11, 0x40: I/O Virtualization Hardware Definition (IVHD) Block */ ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHware23[] = { {ACPI_DMT_IVRS, ACPI_IVRSH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_IVRSH_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_IVRS_FLAG_OFFSET (Flags,0), "HtTunEn", 0}, {ACPI_DMT_FLAG1, ACPI_IVRS_FLAG_OFFSET (Flags,0), "PassPW", 0}, {ACPI_DMT_FLAG2, ACPI_IVRS_FLAG_OFFSET (Flags,0), "ResPassPW", 0}, {ACPI_DMT_FLAG3, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Isoc Control", 0}, {ACPI_DMT_FLAG4, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Iotlb Support", 0}, {ACPI_DMT_FLAG5, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Coherent", 0}, {ACPI_DMT_FLAG6, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Prefetch Support", 0}, {ACPI_DMT_FLAG7, ACPI_IVRS_FLAG_OFFSET (Flags,0), "PPR Support", 0}, {ACPI_DMT_UINT16, ACPI_IVRS01_OFFSET (Header.Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT16, ACPI_IVRS01_OFFSET (Header.DeviceId), "DeviceId", 0}, {ACPI_DMT_UINT16, ACPI_IVRS01_OFFSET (CapabilityOffset), "Capability Offset", 0}, {ACPI_DMT_UINT64, ACPI_IVRS01_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT16, ACPI_IVRS01_OFFSET (PciSegmentGroup), "PCI Segment Group", 0}, {ACPI_DMT_UINT16, ACPI_IVRS01_OFFSET (Info), "Virtualization Info", 0}, {ACPI_DMT_UINT32, ACPI_IVRS01_OFFSET (Attributes), "Attributes", 0}, {ACPI_DMT_UINT64, ACPI_IVRS01_OFFSET (EfrRegisterImage), "EFR Image", 0}, {ACPI_DMT_UINT64, ACPI_IVRS01_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 0x20, 0x21, 0x22: I/O Virtualization Memory Definition (IVMD) Device Entry Block */ ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsMemory[] = { {ACPI_DMT_IVRS, ACPI_IVRSH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_IVRSH_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Unity", 0}, {ACPI_DMT_FLAG1, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Readable", 0}, {ACPI_DMT_FLAG2, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Writeable", 0}, {ACPI_DMT_FLAG3, ACPI_IVRS_FLAG_OFFSET (Flags,0), "Exclusion Range", 0}, {ACPI_DMT_UINT16, ACPI_IVRSH_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT16, ACPI_IVRSH_OFFSET (DeviceId), "DeviceId", 0}, {ACPI_DMT_UINT16, ACPI_IVRS1_OFFSET (AuxData), "Auxiliary Data", 0}, {ACPI_DMT_UINT64, ACPI_IVRS1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_IVRS1_OFFSET (StartAddress), "Start Address", 0}, {ACPI_DMT_UINT64, ACPI_IVRS1_OFFSET (MemoryLength), "Memory Length", 0}, ACPI_DMT_TERMINATOR }; /* Device entry header for IVHD block */ #define ACPI_DMT_IVRS_DE_HEADER \ {ACPI_DMT_IVRS_DE, ACPI_IVRSD_OFFSET (Type), "Subtable Type", 0}, \ {ACPI_DMT_UINT16, ACPI_IVRSD_OFFSET (Id), "Device ID", 0}, \ {ACPI_DMT_UINT8, ACPI_IVRSD_OFFSET (DataSetting), "Data Setting (decoded below)", 0}, \ {ACPI_DMT_FLAG0, ACPI_IVRSDE_FLAG_OFFSET (DataSetting, 0), "INITPass", 0}, \ {ACPI_DMT_FLAG1, ACPI_IVRSDE_FLAG_OFFSET (DataSetting, 0), "EIntPass", 0}, \ {ACPI_DMT_FLAG2, ACPI_IVRSDE_FLAG_OFFSET (DataSetting, 0), "NMIPass", 0}, \ {ACPI_DMT_FLAG3, ACPI_IVRSDE_FLAG_OFFSET (DataSetting, 0), "Reserved", 0}, \ {ACPI_DMT_FLAGS4, ACPI_IVRSDE_FLAG_OFFSET (DataSetting, 0), "System MGMT", 0}, \ {ACPI_DMT_FLAG6, ACPI_IVRSDE_FLAG_OFFSET (DataSetting, 0), "LINT0 Pass", 0}, \ {ACPI_DMT_FLAG7, ACPI_IVRSDE_FLAG_OFFSET (DataSetting, 0), "LINT1 Pass", 0} /* 4-byte device entry (Types 1,2,3,4) */ ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs4[] = { ACPI_DMT_IVRS_DE_HEADER, ACPI_DMT_TERMINATOR }; /* 8-byte device entry (Type Alias Select, Alias Start of Range) */ ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8a[] = { ACPI_DMT_IVRS_DE_HEADER, {ACPI_DMT_UINT8, ACPI_IVRS8A_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_IVRS8A_OFFSET (UsedId), "Source Used Device ID", 0}, {ACPI_DMT_UINT8, ACPI_IVRS8A_OFFSET (Reserved2), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 8-byte device entry (Type Extended Select, Extended Start of Range) */ ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8b[] = { ACPI_DMT_IVRS_DE_HEADER, {ACPI_DMT_UINT32, ACPI_IVRS8B_OFFSET (ExtendedData), "Extended Data", 0}, ACPI_DMT_TERMINATOR }; /* 8-byte device entry (Type Special Device) */ ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8c[] = { ACPI_DMT_IVRS_DE_HEADER, {ACPI_DMT_UINT8, ACPI_IVRS8C_OFFSET (Handle), "Handle", 0}, {ACPI_DMT_UINT16, ACPI_IVRS8C_OFFSET (UsedId), "Source Used Device ID", 0}, {ACPI_DMT_UINT8, ACPI_IVRS8C_OFFSET (Variety), "Variety", 0}, ACPI_DMT_TERMINATOR }; /* Variable-length Device Entry Type 0xF0 */ ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHid[] = { ACPI_DMT_IVRS_DE_HEADER, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsUidString[] = { {ACPI_DMT_UINT8, 0, "UID Format", DT_DESCRIBES_OPTIONAL}, {ACPI_DMT_UINT8, 1, "UID Length", DT_DESCRIBES_OPTIONAL}, {ACPI_DMT_IVRS_UNTERMINATED_STRING, 2, "UID", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsUidInteger[] = { {ACPI_DMT_UINT8, 0, "UID Format", DT_DESCRIBES_OPTIONAL}, {ACPI_DMT_UINT8, 1, "UID Length", DT_DESCRIBES_OPTIONAL}, {ACPI_DMT_UINT64, 2, "UID", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHidString[] = { {ACPI_DMT_NAME8, 0, "ACPI HID", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHidInteger[] = { {ACPI_DMT_UINT64, 0, "ACPI HID", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsCidString[] = { {ACPI_DMT_NAME8, 0, "ACPI CID", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsCidInteger[] = { {ACPI_DMT_UINT64, 0, "ACPI CID", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * LPIT - Low Power Idle Table * ******************************************************************************/ /* Main table consists only of the standard ACPI table header */ /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoLpitHdr[] = { {ACPI_DMT_LPIT, ACPI_LPITH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT32, ACPI_LPITH_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT16, ACPI_LPITH_OFFSET (UniqueId), "Unique ID", 0}, {ACPI_DMT_UINT16, ACPI_LPITH_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_LPITH_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_LPITH_FLAG_OFFSET (Flags, 0), "State Disabled", 0}, {ACPI_DMT_FLAG1, ACPI_LPITH_FLAG_OFFSET (Flags, 0), "No Counter", 0}, ACPI_DMT_TERMINATOR }; /* LPIT Subtables */ /* 0: Native C-state */ ACPI_DMTABLE_INFO AcpiDmTableInfoLpit0[] = { {ACPI_DMT_GAS, ACPI_LPIT0_OFFSET (EntryTrigger), "Entry Trigger", 0}, {ACPI_DMT_UINT32, ACPI_LPIT0_OFFSET (Residency), "Residency", 0}, {ACPI_DMT_UINT32, ACPI_LPIT0_OFFSET (Latency), "Latency", 0}, {ACPI_DMT_GAS, ACPI_LPIT0_OFFSET (ResidencyCounter), "Residency Counter", 0}, {ACPI_DMT_UINT64, ACPI_LPIT0_OFFSET (CounterFrequency), "Counter Frequency", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * MADT - Multiple APIC Description Table and subtables * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt[] = { {ACPI_DMT_UINT32, ACPI_MADT_OFFSET (Address), "Local Apic Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT_FLAG_OFFSET (Flags,0), "PC-AT Compatibility", 0}, ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadtHdr[] = { {ACPI_DMT_MADT, ACPI_MADTH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_MADTH_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* MADT Subtables */ /* 0: processor APIC */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt0[] = { {ACPI_DMT_UINT8, ACPI_MADT0_OFFSET (ProcessorId), "Processor ID", 0}, {ACPI_DMT_UINT8, ACPI_MADT0_OFFSET (Id), "Local Apic ID", 0}, {ACPI_DMT_UINT32, ACPI_MADT0_OFFSET (LapicFlags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT0_FLAG_OFFSET (LapicFlags,0), "Processor Enabled", 0}, {ACPI_DMT_FLAG1, ACPI_MADT0_FLAG_OFFSET (LapicFlags,0), "Runtime Online Capable", 0}, ACPI_DMT_TERMINATOR }; /* 1: IO APIC */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt1[] = { {ACPI_DMT_UINT8, ACPI_MADT1_OFFSET (Id), "I/O Apic ID", 0}, {ACPI_DMT_UINT8, ACPI_MADT1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT1_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT1_OFFSET (GlobalIrqBase), "Interrupt", 0}, ACPI_DMT_TERMINATOR }; /* 2: Interrupt Override */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt2[] = { {ACPI_DMT_UINT8, ACPI_MADT2_OFFSET (Bus), "Bus", 0}, {ACPI_DMT_UINT8, ACPI_MADT2_OFFSET (SourceIrq), "Source", 0}, {ACPI_DMT_UINT32, ACPI_MADT2_OFFSET (GlobalIrq), "Interrupt", 0}, {ACPI_DMT_UINT16, ACPI_MADT2_OFFSET (IntiFlags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAGS0, ACPI_MADT2_FLAG_OFFSET (IntiFlags,0), "Polarity", 0}, {ACPI_DMT_FLAGS2, ACPI_MADT2_FLAG_OFFSET (IntiFlags,0), "Trigger Mode", 0}, ACPI_DMT_TERMINATOR }; /* 3: NMI Sources */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt3[] = { {ACPI_DMT_UINT16, ACPI_MADT3_OFFSET (IntiFlags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAGS0, ACPI_MADT3_FLAG_OFFSET (IntiFlags,0), "Polarity", 0}, {ACPI_DMT_FLAGS2, ACPI_MADT3_FLAG_OFFSET (IntiFlags,0), "Trigger Mode", 0}, {ACPI_DMT_UINT32, ACPI_MADT3_OFFSET (GlobalIrq), "Interrupt", 0}, ACPI_DMT_TERMINATOR }; /* 4: Local APIC NMI */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt4[] = { {ACPI_DMT_UINT8, ACPI_MADT4_OFFSET (ProcessorId), "Processor ID", 0}, {ACPI_DMT_UINT16, ACPI_MADT4_OFFSET (IntiFlags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAGS0, ACPI_MADT4_FLAG_OFFSET (IntiFlags,0), "Polarity", 0}, {ACPI_DMT_FLAGS2, ACPI_MADT4_FLAG_OFFSET (IntiFlags,0), "Trigger Mode", 0}, {ACPI_DMT_UINT8, ACPI_MADT4_OFFSET (Lint), "Interrupt Input LINT", 0}, ACPI_DMT_TERMINATOR }; /* 5: Address Override */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt5[] = { {ACPI_DMT_UINT16, ACPI_MADT5_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_MADT5_OFFSET (Address), "APIC Address", 0}, ACPI_DMT_TERMINATOR }; /* 6: I/O Sapic */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt6[] = { {ACPI_DMT_UINT8, ACPI_MADT6_OFFSET (Id), "I/O Sapic ID", 0}, {ACPI_DMT_UINT8, ACPI_MADT6_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT6_OFFSET (GlobalIrqBase), "Interrupt Base", 0}, {ACPI_DMT_UINT64, ACPI_MADT6_OFFSET (Address), "Address", 0}, ACPI_DMT_TERMINATOR }; /* 7: Local Sapic */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt7[] = { {ACPI_DMT_UINT8, ACPI_MADT7_OFFSET (ProcessorId), "Processor ID", 0}, {ACPI_DMT_UINT8, ACPI_MADT7_OFFSET (Id), "Local Sapic ID", 0}, {ACPI_DMT_UINT8, ACPI_MADT7_OFFSET (Eid), "Local Sapic EID", 0}, {ACPI_DMT_UINT24, ACPI_MADT7_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT7_OFFSET (LapicFlags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT7_FLAG_OFFSET (LapicFlags,0), "Processor Enabled", 0}, {ACPI_DMT_UINT32, ACPI_MADT7_OFFSET (Uid), "Processor UID", 0}, {ACPI_DMT_STRING, ACPI_MADT7_OFFSET (UidString[0]), "Processor UID String", 0}, ACPI_DMT_TERMINATOR }; /* 8: Platform Interrupt Source */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt8[] = { {ACPI_DMT_UINT16, ACPI_MADT8_OFFSET (IntiFlags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAGS0, ACPI_MADT8_FLAG_OFFSET (IntiFlags,0), "Polarity", 0}, {ACPI_DMT_FLAGS2, ACPI_MADT8_FLAG_OFFSET (IntiFlags,0), "Trigger Mode", 0}, {ACPI_DMT_UINT8, ACPI_MADT8_OFFSET (Type), "InterruptType", 0}, {ACPI_DMT_UINT8, ACPI_MADT8_OFFSET (Id), "Processor ID", 0}, {ACPI_DMT_UINT8, ACPI_MADT8_OFFSET (Eid), "Processor EID", 0}, {ACPI_DMT_UINT8, ACPI_MADT8_OFFSET (IoSapicVector), "I/O Sapic Vector", 0}, {ACPI_DMT_UINT32, ACPI_MADT8_OFFSET (GlobalIrq), "Interrupt", 0}, {ACPI_DMT_UINT32, ACPI_MADT8_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT8_OFFSET (Flags), "CPEI Override", 0}, ACPI_DMT_TERMINATOR }; /* 9: Processor Local X2_APIC (ACPI 4.0) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt9[] = { {ACPI_DMT_UINT16, ACPI_MADT9_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT9_OFFSET (LocalApicId), "Processor x2Apic ID", 0}, {ACPI_DMT_UINT32, ACPI_MADT9_OFFSET (LapicFlags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT9_FLAG_OFFSET (LapicFlags,0), "Processor Enabled", 0}, {ACPI_DMT_UINT32, ACPI_MADT9_OFFSET (Uid), "Processor UID", 0}, ACPI_DMT_TERMINATOR }; /* 10: Local X2_APIC NMI (ACPI 4.0) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt10[] = { {ACPI_DMT_UINT16, ACPI_MADT10_OFFSET (IntiFlags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAGS0, ACPI_MADT10_FLAG_OFFSET (IntiFlags,0), "Polarity", 0}, {ACPI_DMT_FLAGS2, ACPI_MADT10_FLAG_OFFSET (IntiFlags,0), "Trigger Mode", 0}, {ACPI_DMT_UINT32, ACPI_MADT10_OFFSET (Uid), "Processor UID", 0}, {ACPI_DMT_UINT8, ACPI_MADT10_OFFSET (Lint), "Interrupt Input LINT", 0}, {ACPI_DMT_UINT24, ACPI_MADT10_OFFSET (Reserved[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 11: Generic Interrupt Controller (ACPI 5.0) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11[] = { {ACPI_DMT_UINT16, ACPI_MADT11_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (CpuInterfaceNumber), "CPU Interface Number", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (Uid), "Processor UID", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Processor Enabled", 0}, {ACPI_DMT_FLAG1, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Performance Interrupt Trigger Mode", 0}, {ACPI_DMT_FLAG2, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Virtual GIC Interrupt Trigger Mode", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (ParkingVersion), "Parking Protocol Version", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (PerformanceInterrupt), "Performance Interrupt", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (ParkedAddress), "Parked Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (GicvBaseAddress), "Virtual GIC Base Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (GichBaseAddress), "Hypervisor GIC Base Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (VgicInterrupt), "Virtual GIC Interrupt", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (GicrBaseAddress), "Redistributor Base Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (ArmMpidr), "ARM MPIDR", 0}, {ACPI_DMT_UINT8, ACPI_MADT11_OFFSET (EfficiencyClass), "Efficiency Class", 0}, {ACPI_DMT_UINT8, ACPI_MADT11_OFFSET (Reserved2[0]), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_MADT11_OFFSET (SpeInterrupt), "SPE Overflow Interrupt", 0}, {ACPI_DMT_UINT16, ACPI_MADT11_OFFSET (TrbeInterrupt), "TRBE Interrupt", 0}, ACPI_DMT_TERMINATOR }; /* 11: Generic Interrupt Controller (ACPI 5.0) - MADT revision 6 */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11a[] = { {ACPI_DMT_UINT16, ACPI_MADT11_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (CpuInterfaceNumber), "CPU Interface Number", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (Uid), "Processor UID", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Processor Enabled", 0}, {ACPI_DMT_FLAG1, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Performance Interrupt Trigger Mode", 0}, {ACPI_DMT_FLAG2, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Virtual GIC Interrupt Trigger Mode", 0}, {ACPI_DMT_FLAG3, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Online Capable", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (ParkingVersion), "Parking Protocol Version", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (PerformanceInterrupt), "Performance Interrupt", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (ParkedAddress), "Parked Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (GicvBaseAddress), "Virtual GIC Base Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (GichBaseAddress), "Hypervisor GIC Base Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (VgicInterrupt), "Virtual GIC Interrupt", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (GicrBaseAddress), "Redistributor Base Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (ArmMpidr), "ARM MPIDR", 0}, {ACPI_DMT_UINT8, ACPI_MADT11_OFFSET (EfficiencyClass), "Efficiency Class", 0}, {ACPI_DMT_UINT8, ACPI_MADT11_OFFSET (Reserved2[0]), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_MADT11_OFFSET (SpeInterrupt), "SPE Overflow Interrupt", 0}, {ACPI_DMT_UINT16, ACPI_MADT11_OFFSET (TrbeInterrupt), "TRBE Interrupt", 0}, ACPI_DMT_TERMINATOR }; /* 11: Generic Interrupt Controller (ACPI 5.0) - MADT revision 7 */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11b[] = { {ACPI_DMT_UINT16, ACPI_MADT11_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (CpuInterfaceNumber), "CPU Interface Number", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (Uid), "Processor UID", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Processor Enabled", 0}, {ACPI_DMT_FLAG1, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Performance Interrupt Trigger Mode", 0}, {ACPI_DMT_FLAG2, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Virtual GIC Interrupt Trigger Mode", 0}, {ACPI_DMT_FLAG3, ACPI_MADT11_FLAG_OFFSET (Flags,0), "Online Capable", 0}, {ACPI_DMT_FLAG4, ACPI_MADT11_FLAG_OFFSET (Flags,0), "GICR non-coherent", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (ParkingVersion), "Parking Protocol Version", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (PerformanceInterrupt), "Performance Interrupt", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (ParkedAddress), "Parked Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (GicvBaseAddress), "Virtual GIC Base Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (GichBaseAddress), "Hypervisor GIC Base Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT11_OFFSET (VgicInterrupt), "Virtual GIC Interrupt", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (GicrBaseAddress), "Redistributor Base Address", 0}, {ACPI_DMT_UINT64, ACPI_MADT11_OFFSET (ArmMpidr), "ARM MPIDR", 0}, {ACPI_DMT_UINT8, ACPI_MADT11_OFFSET (EfficiencyClass), "Efficiency Class", 0}, {ACPI_DMT_UINT8, ACPI_MADT11_OFFSET (Reserved2[0]), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_MADT11_OFFSET (SpeInterrupt), "SPE Overflow Interrupt", 0}, {ACPI_DMT_UINT16, ACPI_MADT11_OFFSET (TrbeInterrupt), "TRBE Interrupt", 0}, ACPI_DMT_TERMINATOR }; /* 12: Generic Interrupt Distributor (ACPI 5.0) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt12[] = { {ACPI_DMT_UINT16, ACPI_MADT12_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT12_OFFSET (GicId), "Local GIC Hardware ID", 0}, {ACPI_DMT_UINT64, ACPI_MADT12_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT12_OFFSET (GlobalIrqBase), "Interrupt Base", 0}, {ACPI_DMT_UINT8, ACPI_MADT12_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT24, ACPI_MADT12_OFFSET (Reserved2[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 13: Generic MSI Frame (ACPI 5.1) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt13[] = { {ACPI_DMT_UINT16, ACPI_MADT13_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT13_OFFSET (MsiFrameId), "MSI Frame ID", 0}, {ACPI_DMT_UINT64, ACPI_MADT13_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT13_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT13_FLAG_OFFSET (Flags,0), "Select SPI", 0}, {ACPI_DMT_UINT16, ACPI_MADT13_OFFSET (SpiCount), "SPI Count", 0}, {ACPI_DMT_UINT16, ACPI_MADT13_OFFSET (SpiBase), "SPI Base", 0}, ACPI_DMT_TERMINATOR }; /* 14: Generic Redistributor (ACPI 5.1) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14[] = { {ACPI_DMT_UINT16, ACPI_MADT14_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_MADT14_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT14_OFFSET (Length), "Length", 0}, ACPI_DMT_TERMINATOR }; /* 14: Generic Redistributor (ACPI 5.1) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14a[] = { {ACPI_DMT_UINT8, ACPI_MADT14_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT14_FLAG_OFFSET (Flags,0), "GICR non-coherent", 0}, {ACPI_DMT_UINT8, ACPI_MADT14_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_MADT14_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT14_OFFSET (Length), "Length", 0}, ACPI_DMT_TERMINATOR }; /* 15: Generic Translator (ACPI 6.0) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15[] = { {ACPI_DMT_UINT16, ACPI_MADT15_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT15_OFFSET (TranslationId), "Translation ID", 0}, {ACPI_DMT_UINT64, ACPI_MADT15_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT15_OFFSET (Reserved2), "Reserved", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15a[] = { {ACPI_DMT_UINT8, ACPI_MADT15_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MADT15_FLAG_OFFSET (Flags,0), "GIC ITS non-coherent", 0}, {ACPI_DMT_UINT8, ACPI_MADT15_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT15_OFFSET (TranslationId), "Translation ID", 0}, {ACPI_DMT_UINT64, ACPI_MADT15_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_MADT15_OFFSET (Reserved2), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 16: Multiprocessor wakeup structure (ACPI 6.4) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt16[] = { {ACPI_DMT_UINT16, ACPI_MADT16_OFFSET (MailboxVersion), "Mailbox Version", 0}, {ACPI_DMT_UINT32, ACPI_MADT16_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_MADT16_OFFSET (BaseAddress), "Mailbox Address", 0}, ACPI_DMT_TERMINATOR }; /* 17: core interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt17[] = { {ACPI_DMT_UINT8, ACPI_MADT17_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT32, ACPI_MADT17_OFFSET (ProcessorId), "ProcessorId", 0}, {ACPI_DMT_UINT32, ACPI_MADT17_OFFSET (CoreId), "CoreId", 0}, {ACPI_DMT_UINT32, ACPI_MADT17_OFFSET (Flags), "Flags", 0}, ACPI_DMT_TERMINATOR }; /* 18: Legacy I/O interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt18[] = { {ACPI_DMT_UINT8, ACPI_MADT18_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT64, ACPI_MADT18_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT16, ACPI_MADT18_OFFSET (Size), "Size", 0}, {ACPI_DMT_UINT16, ACPI_MADT18_OFFSET (Cascade), "Cascade", 0}, {ACPI_DMT_UINT64, ACPI_MADT18_OFFSET (CascadeMap), "CascadeMap", 0}, ACPI_DMT_TERMINATOR }; /* 19: HT interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt19[] = { {ACPI_DMT_UINT8, ACPI_MADT19_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT64, ACPI_MADT19_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT16, ACPI_MADT19_OFFSET (Size), "Size", 0}, {ACPI_DMT_UINT64, ACPI_MADT19_OFFSET (Cascade), "Cascade", 0}, ACPI_DMT_TERMINATOR }; /* 20: Extend I/O interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt20[] = { {ACPI_DMT_UINT8, ACPI_MADT20_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT8, ACPI_MADT20_OFFSET (Cascade), "Cascade", 0}, {ACPI_DMT_UINT8, ACPI_MADT20_OFFSET (Node), "Node", 0}, {ACPI_DMT_UINT64, ACPI_MADT20_OFFSET (NodeMap), "NodeMap", 0}, ACPI_DMT_TERMINATOR }; /* 21: MSI controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt21[] = { {ACPI_DMT_UINT8, ACPI_MADT21_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT64, ACPI_MADT21_OFFSET (MsgAddress), "MsgAddress", 0}, {ACPI_DMT_UINT32, ACPI_MADT21_OFFSET (Start), "Start", 0}, {ACPI_DMT_UINT32, ACPI_MADT21_OFFSET (Count), "Count", 0}, ACPI_DMT_TERMINATOR }; /* 22: BIO interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt22[] = { {ACPI_DMT_UINT8, ACPI_MADT22_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT64, ACPI_MADT22_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT16, ACPI_MADT22_OFFSET (Size), "Size", 0}, {ACPI_DMT_UINT16, ACPI_MADT22_OFFSET (Id), "Id", 0}, {ACPI_DMT_UINT16, ACPI_MADT22_OFFSET (GsiBase), "GsiBase", 0}, ACPI_DMT_TERMINATOR }; /* 23: LPC interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt23[] = { {ACPI_DMT_UINT8, ACPI_MADT23_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT64, ACPI_MADT23_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT16, ACPI_MADT23_OFFSET (Size), "Size", 0}, {ACPI_DMT_UINT8, ACPI_MADT23_OFFSET (Cascade), "Cascade", 0}, ACPI_DMT_TERMINATOR }; /* 24: RINTC interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt24[] = { {ACPI_DMT_UINT8, ACPI_MADT24_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT8, ACPI_MADT24_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT24_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT64, ACPI_MADT24_OFFSET (HartId), "HartId", 0}, {ACPI_DMT_UINT32, ACPI_MADT24_OFFSET (Uid), "Uid", 0}, {ACPI_DMT_UINT32, ACPI_MADT24_OFFSET (ExtIntcId), "ExtIntcId", 0}, {ACPI_DMT_UINT64, ACPI_MADT24_OFFSET (ImsicAddr), "ImsicAddr", 0}, {ACPI_DMT_UINT32, ACPI_MADT24_OFFSET (ImsicSize), "ImsicSize", 0}, ACPI_DMT_TERMINATOR }; /* 25: RISC-V IMSIC interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt25[] = { {ACPI_DMT_UINT8, ACPI_MADT25_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT8, ACPI_MADT25_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MADT25_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT16, ACPI_MADT25_OFFSET (NumIds), "NumIds", 0}, {ACPI_DMT_UINT16, ACPI_MADT25_OFFSET (NumGuestIds), "NumGuestIds", 0}, {ACPI_DMT_UINT8, ACPI_MADT25_OFFSET (GuestIndexBits), "GuestIndexBits", 0}, {ACPI_DMT_UINT8, ACPI_MADT25_OFFSET (HartIndexBits), "HartIndexBits", 0}, {ACPI_DMT_UINT8, ACPI_MADT25_OFFSET (GroupIndexBits), "GroupIndexBits", 0}, {ACPI_DMT_UINT8, ACPI_MADT25_OFFSET (GroupIndexShift), "GroupIndexShift", 0}, ACPI_DMT_TERMINATOR }; /* 26: RISC-V APLIC interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt26[] = { {ACPI_DMT_UINT8, ACPI_MADT26_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT8, ACPI_MADT26_OFFSET (Id), "Id", 0}, {ACPI_DMT_UINT32, ACPI_MADT26_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT64, ACPI_MADT26_OFFSET (HwId), "HwId", 0}, {ACPI_DMT_UINT16, ACPI_MADT26_OFFSET (NumIdcs), "NumIdcs", 0}, {ACPI_DMT_UINT16, ACPI_MADT26_OFFSET (NumSources), "NumSources", 0}, {ACPI_DMT_UINT32, ACPI_MADT26_OFFSET (GsiBase), "GsiBase", 0}, {ACPI_DMT_UINT64, ACPI_MADT26_OFFSET (BaseAddr), "BaseAddr", 0}, {ACPI_DMT_UINT32, ACPI_MADT26_OFFSET (Size), "Size", 0}, ACPI_DMT_TERMINATOR }; /* 27: RISC-V PLIC interrupt controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt27[] = { {ACPI_DMT_UINT8, ACPI_MADT27_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT8, ACPI_MADT27_OFFSET (Id), "Id", 0}, {ACPI_DMT_UINT64, ACPI_MADT27_OFFSET (HwId), "HwId", 0}, {ACPI_DMT_UINT16, ACPI_MADT27_OFFSET (NumIrqs), "NumIrqs", 0}, {ACPI_DMT_UINT16, ACPI_MADT27_OFFSET (MaxPrio), "MaxPrio", 0}, {ACPI_DMT_UINT32, ACPI_MADT27_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT32, ACPI_MADT27_OFFSET (Size), "Size", 0}, {ACPI_DMT_UINT64, ACPI_MADT27_OFFSET (BaseAddr), "BaseAddr", 0}, {ACPI_DMT_UINT32, ACPI_MADT27_OFFSET (GsiBase), "GsiBase", 0}, ACPI_DMT_TERMINATOR }; /* 128: OEM data structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoMadt128[] = { {ACPI_DMT_RAW_BUFFER, 0, "OEM Data", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * MCFG - PCI Memory Mapped Configuration table and Subtable * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg[] = { {ACPI_DMT_UINT64, ACPI_MCFG_OFFSET (Reserved[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg0[] = { {ACPI_DMT_UINT64, ACPI_MCFG0_OFFSET (Address), "Base Address", 0}, {ACPI_DMT_UINT16, ACPI_MCFG0_OFFSET (PciSegment), "Segment Group Number", 0}, {ACPI_DMT_UINT8, ACPI_MCFG0_OFFSET (StartBusNumber), "Start Bus Number", 0}, {ACPI_DMT_UINT8, ACPI_MCFG0_OFFSET (EndBusNumber), "End Bus Number", 0}, {ACPI_DMT_UINT32, ACPI_MCFG0_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * MCHI - Management Controller Host Interface table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoMchi[] = { {ACPI_DMT_UINT8, ACPI_MCHI_OFFSET (InterfaceType), "Interface Type", 0}, {ACPI_DMT_UINT8, ACPI_MCHI_OFFSET (Protocol), "Protocol", 0}, {ACPI_DMT_UINT64, ACPI_MCHI_OFFSET (ProtocolData), "Protocol Data", 0}, {ACPI_DMT_UINT8, ACPI_MCHI_OFFSET (InterruptType), "Interrupt Type", 0}, {ACPI_DMT_UINT8, ACPI_MCHI_OFFSET (Gpe), "Gpe", 0}, {ACPI_DMT_UINT8, ACPI_MCHI_OFFSET (PciDeviceFlag), "Pci Device Flag", 0}, {ACPI_DMT_UINT32, ACPI_MCHI_OFFSET (GlobalInterrupt), "Global Interrupt", 0}, {ACPI_DMT_GAS, ACPI_MCHI_OFFSET (ControlRegister), "Control Register", 0}, {ACPI_DMT_UINT8, ACPI_MCHI_OFFSET (PciSegment), "Pci Segment", 0}, {ACPI_DMT_UINT8, ACPI_MCHI_OFFSET (PciBus), "Pci Bus", 0}, {ACPI_DMT_UINT8, ACPI_MCHI_OFFSET (PciDevice), "Pci Device", 0}, {ACPI_DMT_UINT8, ACPI_MCHI_OFFSET (PciFunction), "Pci Function", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * MPAM - Memory System Resource Partitioning and Monitoring Tables * Arm's DEN0065 MPAM ACPI 2.0. December 2022. ******************************************************************************/ /* MPAM subtables */ /* 0: MPAM Resource Node Structure - A root MSC table. * Arm's DEN0065 MPAM ACPI 2.0. Table 4: MPAM MSC node body. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam0[] = { {ACPI_DMT_UINT16, ACPI_MPAM0_OFFSET (Length), "Length", 0}, {ACPI_DMT_UINT8, ACPI_MPAM0_OFFSET (InterfaceType), "Interface type", 0}, {ACPI_DMT_UINT8, ACPI_MPAM0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (Identifier), "Identifier", 0}, {ACPI_DMT_UINT64, ACPI_MPAM0_OFFSET (BaseAddress), "Base address", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (MMIOSize), "MMIO size", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (OverflowInterrupt), "Overflow interrupt", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (OverflowInterruptFlags), "Overflow interrupt flags", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (Reserved1), "Reserved1", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (OverflowInterruptAffinity), "Overflow interrupt affinity", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (ErrorInterrupt), "Error interrupt", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (ErrorInterruptFlags), "Error interrupt flags", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (Reserved2), "Reserved2", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (ErrorInterruptAffinity), "Error interrupt affinity", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (MaxNrdyUsec), "MAX_NRDY_USEC", 0}, {ACPI_DMT_NAME8, ACPI_MPAM0_OFFSET (HardwareIdLinkedDevice), "Hardware ID of linked device", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (InstanceIdLinkedDevice), "Instance ID of linked device", 0}, {ACPI_DMT_UINT32, ACPI_MPAM0_OFFSET (NumResourceNodes), "Number of resource nodes", 0}, ACPI_DMT_TERMINATOR }; /* 1: MPAM Resource (RIS) Node Structure - A subtable of MSC Nodes. * Arm's DEN0065 MPAM ACPI 2.0. Table 9: Resource node. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1[] = { {ACPI_DMT_UINT32, ACPI_MPAM1_OFFSET (Identifier), "Identifier", 0}, {ACPI_DMT_UINT8, ACPI_MPAM1_OFFSET (RISIndex), "RIS Index", 0}, {ACPI_DMT_UINT16, ACPI_MPAM1_OFFSET (Reserved1), "Reserved1", 0}, {ACPI_DMT_MPAM_LOCATOR, ACPI_MPAM1_OFFSET (LocatorType), "Locator type", 0}, ACPI_DMT_TERMINATOR }; /* An RIS field part of the RIS subtable */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1Deps[] = { {ACPI_DMT_UINT32, 0, "Number of functional dependencies", 0}, ACPI_DMT_TERMINATOR }; /* 1A: MPAM Processor cache locator descriptor. A subtable of RIS. * Arm's DEN0065 MPAM ACPI 2.0. Table 13. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1A[] = { {ACPI_DMT_UINT64, ACPI_MPAM1A_OFFSET (CacheReference), "Cache reference", 0}, {ACPI_DMT_UINT32, ACPI_MPAM1A_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 1B: MPAM Memory locator descriptor. A subtable of RIS. * Arm's DEN0065 MPAM ACPI 2.0. Table 14. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1B[] = { {ACPI_DMT_UINT64, ACPI_MPAM1B_OFFSET (ProximityDomain), "Proximity domain", 0}, {ACPI_DMT_UINT32, ACPI_MPAM1B_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 1C: MPAM SMMU locator descriptor. A subtable of RIS. * Arm's DEN0065 MPAM ACPI 2.0. Table 15. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1C[] = { {ACPI_DMT_UINT64, ACPI_MPAM1C_OFFSET (SmmuInterface), "SMMU Interface", 0}, {ACPI_DMT_UINT32, ACPI_MPAM1C_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 1D: MPAM Memory-side cache locator descriptor. A subtable of RIS. * Arm's DEN0065 MPAM ACPI 2.0. Table 16. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1D[] = { {ACPI_DMT_UINT56, ACPI_MPAM1D_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_MPAM1D_OFFSET (Level), "Level", 0}, {ACPI_DMT_UINT32, ACPI_MPAM1D_OFFSET (Reference), "Reference", 0}, ACPI_DMT_TERMINATOR }; /* 1E: MPAM ACPI device locator descriptor. A subtable of RIS. * Arm's DEN0065 MPAM ACPI 2.0. Table 17. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1E[] = { {ACPI_DMT_UINT64, ACPI_MPAM1E_OFFSET (AcpiHwId), "ACPI Hardware ID", 0}, {ACPI_DMT_UINT32, ACPI_MPAM1E_OFFSET (AcpiUniqueId), "ACPI Unique ID", 0}, ACPI_DMT_TERMINATOR }; /* 1F: MPAM Interconnect locator descriptor. A subtable of RIS. * Arm's DEN0065 MPAM ACPI 2.0. Table 18. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1F[] = { {ACPI_DMT_UINT64, ACPI_MPAM1F_OFFSET (InterConnectDescTblOff), "Interconnect descriptor table offset", 0}, {ACPI_DMT_UINT32, ACPI_MPAM1F_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 1G: MPAM Locator structure. * Arm's DEN0065 MPAM ACPI 2.0. Table 12. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam1G[] = { {ACPI_DMT_UINT64, ACPI_MPAM1G_OFFSET (Descriptor1), "Descriptor1", 0}, {ACPI_DMT_UINT32, ACPI_MPAM1G_OFFSET (Descriptor2), "Descriptor2", 0}, ACPI_DMT_TERMINATOR }; /* 2: MPAM Functional dependency descriptor. * Arm's DEN0065 MPAM ACPI 2.0. Table 10. */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpam2[] = { {ACPI_DMT_UINT32, ACPI_MPAM2_OFFSET (Producer), "Producer", 0}, {ACPI_DMT_UINT32, ACPI_MPAM2_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * MPST - Memory Power State Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoMpst[] = { {ACPI_DMT_UINT8, ACPI_MPST_OFFSET (ChannelId), "Channel ID", 0}, {ACPI_DMT_UINT24, ACPI_MPST_OFFSET (Reserved1[0]), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_MPST_OFFSET (PowerNodeCount), "Power Node Count", 0}, {ACPI_DMT_UINT16, ACPI_MPST_OFFSET (Reserved2), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* MPST subtables */ /* 0: Memory Power Node Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0[] = { {ACPI_DMT_UINT8, ACPI_MPST0_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MPST0_FLAG_OFFSET (Flags,0), "Node Enabled", 0}, {ACPI_DMT_FLAG1, ACPI_MPST0_FLAG_OFFSET (Flags,0), "Power Managed", 0}, {ACPI_DMT_FLAG2, ACPI_MPST0_FLAG_OFFSET (Flags,0), "Hot Plug Capable", 0}, {ACPI_DMT_UINT8, ACPI_MPST0_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_MPST0_OFFSET (NodeId), "Node ID", 0}, {ACPI_DMT_UINT32, ACPI_MPST0_OFFSET (Length), "Length", 0}, {ACPI_DMT_UINT64, ACPI_MPST0_OFFSET (RangeAddress), "Range Address", 0}, {ACPI_DMT_UINT64, ACPI_MPST0_OFFSET (RangeLength), "Range Length", 0}, {ACPI_DMT_UINT32, ACPI_MPST0_OFFSET (NumPowerStates), "Num Power States", 0}, {ACPI_DMT_UINT32, ACPI_MPST0_OFFSET (NumPhysicalComponents), "Num Physical Components", 0}, ACPI_DMT_TERMINATOR }; /* 0A: Sub-subtable - Memory Power State Structure (follows Memory Power Node above) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0A[] = { {ACPI_DMT_UINT8, ACPI_MPST0A_OFFSET (PowerState), "Power State", 0}, {ACPI_DMT_UINT8, ACPI_MPST0A_OFFSET (InfoIndex), "InfoIndex", 0}, ACPI_DMT_TERMINATOR }; /* 0B: Sub-subtable - Physical Component ID Structure (follows Memory Power State(s) above) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0B[] = { {ACPI_DMT_UINT16, ACPI_MPST0B_OFFSET (ComponentId), "Component Id", 0}, ACPI_DMT_TERMINATOR }; /* 01: Power Characteristics Count (follows all Power Node(s) above) */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpst1[] = { {ACPI_DMT_UINT16, ACPI_MPST1_OFFSET (CharacteristicsCount), "Characteristics Count", 0}, {ACPI_DMT_UINT16, ACPI_MPST1_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 02: Memory Power State Characteristics Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoMpst2[] = { {ACPI_DMT_UINT8, ACPI_MPST2_OFFSET (StructureId), "Structure ID", 0}, {ACPI_DMT_UINT8, ACPI_MPST2_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_MPST2_FLAG_OFFSET (Flags,0), "Memory Preserved", 0}, {ACPI_DMT_FLAG1, ACPI_MPST2_FLAG_OFFSET (Flags,0), "Auto Entry", 0}, {ACPI_DMT_FLAG2, ACPI_MPST2_FLAG_OFFSET (Flags,0), "Auto Exit", 0}, {ACPI_DMT_UINT16, ACPI_MPST2_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_MPST2_OFFSET (AveragePower), "Average Power", 0}, {ACPI_DMT_UINT32, ACPI_MPST2_OFFSET (PowerSaving), "Power Saving", 0}, {ACPI_DMT_UINT64, ACPI_MPST2_OFFSET (ExitLatency), "Exit Latency", 0}, {ACPI_DMT_UINT64, ACPI_MPST2_OFFSET (Reserved2), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * MRRM - Memory Range and Region Mapping Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoMrrm[] = { {ACPI_DMT_UINT8, ACPI_MRRM_OFFSET (MaxMemRegion), "Max Memory Regions", 0}, {ACPI_DMT_UINT8, ACPI_MRRM_OFFSET (Flags), "Region Assignment Type", 0}, {ACPI_DMT_BUF26, ACPI_MRRM_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* MRRM Subtable */ /* 0: Memory Range entry */ ACPI_DMTABLE_INFO AcpiDmTableInfoMrrm0[] = { {ACPI_DMT_UINT16, ACPI_MRRM0_OFFSET (Header.Type), "Memory Range", 0}, {ACPI_DMT_UINT16, ACPI_MRRM0_OFFSET (Header.Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT32, ACPI_MRRM0_OFFSET (Reserved0), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_MRRM0_OFFSET (AddrBase), "System Address Base", 0}, {ACPI_DMT_UINT64, ACPI_MRRM0_OFFSET (AddrLen), "System Address Length", 0}, {ACPI_DMT_UINT16, ACPI_MRRM0_OFFSET (RegionIdFlags), "Region Valid Flags", 0}, {ACPI_DMT_UINT8, ACPI_MRRM0_OFFSET (LocalRegionId), "Static Local Region ID", 0}, {ACPI_DMT_UINT8, ACPI_MRRM0_OFFSET (RemoteRegionId), "Static Remote Region ID", 0}, {ACPI_DMT_UINT32, ACPI_MRRM0_OFFSET (Reserved1), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * MSCT - Maximum System Characteristics Table (ACPI 4.0) * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoMsct[] = { {ACPI_DMT_UINT32, ACPI_MSCT_OFFSET (ProximityOffset), "Proximity Offset", 0}, {ACPI_DMT_UINT32, ACPI_MSCT_OFFSET (MaxProximityDomains), "Max Proximity Domains", 0}, {ACPI_DMT_UINT32, ACPI_MSCT_OFFSET (MaxClockDomains), "Max Clock Domains", 0}, {ACPI_DMT_UINT64, ACPI_MSCT_OFFSET (MaxAddress), "Max Physical Address", 0}, ACPI_DMT_TERMINATOR }; /* Subtable - Maximum Proximity Domain Information. Version 1 */ ACPI_DMTABLE_INFO AcpiDmTableInfoMsct0[] = { {ACPI_DMT_UINT8, ACPI_MSCT0_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT8, ACPI_MSCT0_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT32, ACPI_MSCT0_OFFSET (RangeStart), "Domain Range Start", 0}, {ACPI_DMT_UINT32, ACPI_MSCT0_OFFSET (RangeEnd), "Domain Range End", 0}, {ACPI_DMT_UINT32, ACPI_MSCT0_OFFSET (ProcessorCapacity), "Processor Capacity", 0}, {ACPI_DMT_UINT64, ACPI_MSCT0_OFFSET (MemoryCapacity), "Memory Capacity", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * NFIT - NVDIMM Firmware Interface Table and Subtables - (ACPI 6.0) * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoNfit[] = { {ACPI_DMT_UINT32, ACPI_NFIT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* Common Subtable header */ ACPI_DMTABLE_INFO AcpiDmTableInfoNfitHdr[] = { {ACPI_DMT_NFIT, ACPI_NFITH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT16, ACPI_NFITH_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* 0: System Physical Address Range Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoNfit0[] = { {ACPI_DMT_UINT16, ACPI_NFIT0_OFFSET (RangeIndex), "Range Index", 0}, {ACPI_DMT_UINT16, ACPI_NFIT0_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_NFIT0_FLAG_OFFSET (Flags,0), "Add/Online Operation Only", 0}, {ACPI_DMT_FLAG1, ACPI_NFIT0_FLAG_OFFSET (Flags,0), "Proximity Domain Valid", 0}, {ACPI_DMT_FLAG2, ACPI_NFIT0_FLAG_OFFSET (Flags,0), "Location Cookie Valid", 0}, {ACPI_DMT_UINT32, ACPI_NFIT0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_NFIT0_OFFSET (ProximityDomain), "Proximity Domain", 0}, {ACPI_DMT_UUID, ACPI_NFIT0_OFFSET (RangeGuid[0]), "Region Type GUID", 0}, {ACPI_DMT_UINT64, ACPI_NFIT0_OFFSET (Address), "Address Range Base", 0}, {ACPI_DMT_UINT64, ACPI_NFIT0_OFFSET (Length), "Address Range Length", 0}, {ACPI_DMT_UINT64, ACPI_NFIT0_OFFSET (MemoryMapping), "Memory Map Attribute", 0}, {ACPI_DMT_UINT64, ACPI_NFIT0_OFFSET (LocationCookie), "Location Cookie", 0}, /* ACPI 6.4 */ ACPI_DMT_TERMINATOR }; /* 1: Memory Device to System Address Range Map Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoNfit1[] = { {ACPI_DMT_UINT32, ACPI_NFIT1_OFFSET (DeviceHandle), "Device Handle", 0}, {ACPI_DMT_UINT16, ACPI_NFIT1_OFFSET (PhysicalId), "Physical Id", 0}, {ACPI_DMT_UINT16, ACPI_NFIT1_OFFSET (RegionId), "Region Id", 0}, {ACPI_DMT_UINT16, ACPI_NFIT1_OFFSET (RangeIndex), "Range Index", 0}, {ACPI_DMT_UINT16, ACPI_NFIT1_OFFSET (RegionIndex), "Control Region Index", 0}, {ACPI_DMT_UINT64, ACPI_NFIT1_OFFSET (RegionSize), "Region Size", 0}, {ACPI_DMT_UINT64, ACPI_NFIT1_OFFSET (RegionOffset), "Region Offset", 0}, {ACPI_DMT_UINT64, ACPI_NFIT1_OFFSET (Address), "Address Region Base", 0}, {ACPI_DMT_UINT16, ACPI_NFIT1_OFFSET (InterleaveIndex), "Interleave Index", 0}, {ACPI_DMT_UINT16, ACPI_NFIT1_OFFSET (InterleaveWays), "Interleave Ways", 0}, {ACPI_DMT_UINT16, ACPI_NFIT1_OFFSET (Flags), "Flags", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_NFIT1_FLAG_OFFSET (Flags,0), "Save to device failed", 0}, {ACPI_DMT_FLAG1, ACPI_NFIT1_FLAG_OFFSET (Flags,0), "Restore from device failed", 0}, {ACPI_DMT_FLAG2, ACPI_NFIT1_FLAG_OFFSET (Flags,0), "Platform flush failed", 0}, {ACPI_DMT_FLAG3, ACPI_NFIT1_FLAG_OFFSET (Flags,0), "Device not armed", 0}, {ACPI_DMT_FLAG4, ACPI_NFIT1_FLAG_OFFSET (Flags,0), "Health events observed", 0}, {ACPI_DMT_FLAG5, ACPI_NFIT1_FLAG_OFFSET (Flags,0), "Health events enabled", 0}, {ACPI_DMT_FLAG6, ACPI_NFIT1_FLAG_OFFSET (Flags,0), "Mapping failed", 0}, {ACPI_DMT_UINT16, ACPI_NFIT1_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 2: Interleave Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2[] = { {ACPI_DMT_UINT16, ACPI_NFIT2_OFFSET (InterleaveIndex), "Interleave Index", 0}, {ACPI_DMT_UINT16, ACPI_NFIT2_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_NFIT2_OFFSET (LineCount), "Line Count", 0}, {ACPI_DMT_UINT32, ACPI_NFIT2_OFFSET (LineSize), "Line Size", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2a[] = { {ACPI_DMT_UINT32, 0, "Line Offset", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* 3: SMBIOS Management Information Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3[] = { {ACPI_DMT_UINT32, ACPI_NFIT3_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3a[] = { {ACPI_DMT_RAW_BUFFER, 0, "SMBIOS Table Entries", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* 4: NVDIMM Control Region Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoNfit4[] = { {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (RegionIndex), "Region Index", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (VendorId), "Vendor Id", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (DeviceId), "Device Id", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (RevisionId), "Revision Id", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (SubsystemVendorId), "Subsystem Vendor Id", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (SubsystemDeviceId), "Subsystem Device Id", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (SubsystemRevisionId), "Subsystem Revision Id", 0}, {ACPI_DMT_UINT8, ACPI_NFIT4_OFFSET (ValidFields), "Valid Fields", 0}, {ACPI_DMT_UINT8, ACPI_NFIT4_OFFSET (ManufacturingLocation), "Manufacturing Location", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (ManufacturingDate), "Manufacturing Date", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_NFIT4_OFFSET (SerialNumber), "Serial Number", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (Code), "Code", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (Windows), "Window Count", 0}, {ACPI_DMT_UINT64, ACPI_NFIT4_OFFSET (WindowSize), "Window Size", 0}, {ACPI_DMT_UINT64, ACPI_NFIT4_OFFSET (CommandOffset), "Command Offset", 0}, {ACPI_DMT_UINT64, ACPI_NFIT4_OFFSET (CommandSize), "Command Size", 0}, {ACPI_DMT_UINT64, ACPI_NFIT4_OFFSET (StatusOffset), "Status Offset", 0}, {ACPI_DMT_UINT64, ACPI_NFIT4_OFFSET (StatusSize), "Status Size", 0}, {ACPI_DMT_UINT16, ACPI_NFIT4_OFFSET (Flags), "Flags", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_NFIT4_FLAG_OFFSET (Flags,0), "Windows buffered", 0}, {ACPI_DMT_UINT48, ACPI_NFIT4_OFFSET (Reserved1[0]), "Reserved1", 0}, ACPI_DMT_TERMINATOR }; /* 5: NVDIMM Block Data Window Region Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoNfit5[] = { {ACPI_DMT_UINT16, ACPI_NFIT5_OFFSET (RegionIndex), "Region Index", 0}, {ACPI_DMT_UINT16, ACPI_NFIT5_OFFSET (Windows), "Window Count", 0}, {ACPI_DMT_UINT64, ACPI_NFIT5_OFFSET (Offset), "Offset", 0}, {ACPI_DMT_UINT64, ACPI_NFIT5_OFFSET (Size), "Size", 0}, {ACPI_DMT_UINT64, ACPI_NFIT5_OFFSET (Capacity), "Capacity", 0}, {ACPI_DMT_UINT64, ACPI_NFIT5_OFFSET (StartAddress), "Start Address", 0}, ACPI_DMT_TERMINATOR }; /* 6: Flush Hint Address Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6[] = { {ACPI_DMT_UINT32, ACPI_NFIT6_OFFSET (DeviceHandle), "Device Handle", 0}, {ACPI_DMT_UINT16, ACPI_NFIT6_OFFSET (HintCount), "Hint Count", 0}, {ACPI_DMT_UINT48, ACPI_NFIT6_OFFSET (Reserved[0]), "Reserved", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6a[] = { {ACPI_DMT_UINT64, 0, "Hint Address", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoNfit7[] = { {ACPI_DMT_UINT8, ACPI_NFIT7_OFFSET (HighestCapability), "Highest Capability", 0}, {ACPI_DMT_UINT24, ACPI_NFIT7_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_NFIT7_OFFSET (Capabilities), "Capabilities (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_NFIT7_FLAG_OFFSET (Capabilities,0), "Cache Flush to NVDIMM", 0}, {ACPI_DMT_FLAG1, ACPI_NFIT7_FLAG_OFFSET (Capabilities,0), "Memory Flush to NVDIMM", 0}, {ACPI_DMT_FLAG2, ACPI_NFIT7_FLAG_OFFSET (Capabilities,0), "Memory Mirroring", 0}, {ACPI_DMT_UINT32, ACPI_NFIT7_OFFSET (Reserved2), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * PCCT - Platform Communications Channel Table (ACPI 5.0) * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoPcct[] = { {ACPI_DMT_UINT32, ACPI_PCCT_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_PCCT_FLAG_OFFSET (Flags,0), "Platform", 0}, {ACPI_DMT_UINT64, ACPI_PCCT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* PCCT subtables */ ACPI_DMTABLE_INFO AcpiDmTableInfoPcctHdr[] = { {ACPI_DMT_PCCT, ACPI_PCCT0_OFFSET (Header.Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_PCCT0_OFFSET (Header.Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* 0: Generic Communications Subspace */ ACPI_DMTABLE_INFO AcpiDmTableInfoPcct0[] = { {ACPI_DMT_UINT48, ACPI_PCCT0_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_PCCT0_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_PCCT0_OFFSET (Length), "Address Length", 0}, {ACPI_DMT_GAS, ACPI_PCCT0_OFFSET (DoorbellRegister), "Doorbell Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT0_OFFSET (PreserveMask), "Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT0_OFFSET (WriteMask), "Write Mask", 0}, {ACPI_DMT_UINT32, ACPI_PCCT0_OFFSET (Latency), "Command Latency", 0}, {ACPI_DMT_UINT32, ACPI_PCCT0_OFFSET (MaxAccessRate), "Maximum Access Rate", 0}, {ACPI_DMT_UINT16, ACPI_PCCT0_OFFSET (MinTurnaroundTime), "Minimum Turnaround Time", 0}, ACPI_DMT_TERMINATOR }; /* 1: HW-reduced Communications Subspace (ACPI 5.1) */ ACPI_DMTABLE_INFO AcpiDmTableInfoPcct1[] = { {ACPI_DMT_UINT32, ACPI_PCCT1_OFFSET (PlatformInterrupt), "Platform Interrupt", 0}, {ACPI_DMT_UINT8, ACPI_PCCT1_OFFSET (Flags), "Flags (Decoded Below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_PCCT1_FLAG_OFFSET (Flags,0), "Polarity", 0}, {ACPI_DMT_FLAG1, ACPI_PCCT1_FLAG_OFFSET (Flags,0), "Mode", 0}, {ACPI_DMT_UINT8, ACPI_PCCT1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_PCCT1_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_PCCT1_OFFSET (Length), "Address Length", 0}, {ACPI_DMT_GAS, ACPI_PCCT1_OFFSET (DoorbellRegister), "Doorbell Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT1_OFFSET (PreserveMask), "Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT1_OFFSET (WriteMask), "Write Mask", 0}, {ACPI_DMT_UINT32, ACPI_PCCT1_OFFSET (Latency), "Command Latency", 0}, {ACPI_DMT_UINT32, ACPI_PCCT1_OFFSET (MaxAccessRate), "Maximum Access Rate", 0}, {ACPI_DMT_UINT16, ACPI_PCCT1_OFFSET (MinTurnaroundTime), "Minimum Turnaround Time", 0}, ACPI_DMT_TERMINATOR }; /* 2: HW-reduced Communications Subspace Type 2 (ACPI 6.1) */ ACPI_DMTABLE_INFO AcpiDmTableInfoPcct2[] = { {ACPI_DMT_UINT32, ACPI_PCCT2_OFFSET (PlatformInterrupt), "Platform Interrupt", 0}, {ACPI_DMT_UINT8, ACPI_PCCT2_OFFSET (Flags), "Flags (Decoded Below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_PCCT2_FLAG_OFFSET (Flags,0), "Polarity", 0}, {ACPI_DMT_FLAG1, ACPI_PCCT2_FLAG_OFFSET (Flags,0), "Mode", 0}, {ACPI_DMT_UINT8, ACPI_PCCT2_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_PCCT2_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_PCCT2_OFFSET (Length), "Address Length", 0}, {ACPI_DMT_GAS, ACPI_PCCT2_OFFSET (DoorbellRegister), "Doorbell Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT2_OFFSET (PreserveMask), "Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT2_OFFSET (WriteMask), "Write Mask", 0}, {ACPI_DMT_UINT32, ACPI_PCCT2_OFFSET (Latency), "Command Latency", 0}, {ACPI_DMT_UINT32, ACPI_PCCT2_OFFSET (MaxAccessRate), "Maximum Access Rate", 0}, {ACPI_DMT_UINT16, ACPI_PCCT2_OFFSET (MinTurnaroundTime), "Minimum Turnaround Time", 0}, {ACPI_DMT_GAS, ACPI_PCCT2_OFFSET (PlatformAckRegister), "Platform ACK Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT2_OFFSET (AckPreserveMask), "ACK Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT2_OFFSET (AckWriteMask), "ACK Write Mask", 0}, ACPI_DMT_TERMINATOR }; /* 3: Extended PCC Master Subspace Type 3 (ACPI 6.2) */ ACPI_DMTABLE_INFO AcpiDmTableInfoPcct3[] = { {ACPI_DMT_UINT32, ACPI_PCCT3_OFFSET (PlatformInterrupt), "Platform Interrupt", 0}, {ACPI_DMT_UINT8, ACPI_PCCT3_OFFSET (Flags), "Flags (Decoded Below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_PCCT3_FLAG_OFFSET (Flags,0), "Polarity", 0}, {ACPI_DMT_FLAG1, ACPI_PCCT3_FLAG_OFFSET (Flags,0), "Mode", 0}, {ACPI_DMT_UINT8, ACPI_PCCT3_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_PCCT3_OFFSET (Length), "Address Length", 0}, {ACPI_DMT_GAS, ACPI_PCCT3_OFFSET (DoorbellRegister), "Doorbell Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (PreserveMask), "Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (WriteMask), "Write Mask", 0}, {ACPI_DMT_UINT32, ACPI_PCCT3_OFFSET (Latency), "Command Latency", 0}, {ACPI_DMT_UINT32, ACPI_PCCT3_OFFSET (MaxAccessRate), "Maximum Access Rate", 0}, {ACPI_DMT_UINT32, ACPI_PCCT3_OFFSET (MinTurnaroundTime), "Minimum Turnaround Time", 0}, {ACPI_DMT_GAS, ACPI_PCCT3_OFFSET (PlatformAckRegister), "Platform ACK Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (AckPreserveMask), "ACK Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (AckSetMask), "ACK Set Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (Reserved2), "Reserved", 0}, {ACPI_DMT_GAS, ACPI_PCCT3_OFFSET (CmdCompleteRegister), "Command Complete Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (CmdCompleteMask), "Command Complete Check Mask", 0}, {ACPI_DMT_GAS, ACPI_PCCT3_OFFSET (CmdUpdateRegister), "Command Update Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (CmdUpdatePreserveMask), "Command Update Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (CmdUpdateSetMask), "Command Update Set Mask", 0}, {ACPI_DMT_GAS, ACPI_PCCT3_OFFSET (ErrorStatusRegister), "Error Status Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT3_OFFSET (ErrorStatusMask), "Error Status Mask", 0}, ACPI_DMT_TERMINATOR }; /* 4: Extended PCC Slave Subspace Type 4 (ACPI 6.2) */ ACPI_DMTABLE_INFO AcpiDmTableInfoPcct4[] = { {ACPI_DMT_UINT32, ACPI_PCCT4_OFFSET (PlatformInterrupt), "Platform Interrupt", 0}, {ACPI_DMT_UINT8, ACPI_PCCT4_OFFSET (Flags), "Flags (Decoded Below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_PCCT4_FLAG_OFFSET (Flags,0), "Polarity", 0}, {ACPI_DMT_FLAG1, ACPI_PCCT4_FLAG_OFFSET (Flags,0), "Mode", 0}, {ACPI_DMT_UINT8, ACPI_PCCT4_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_PCCT4_OFFSET (Length), "Address Length", 0}, {ACPI_DMT_GAS, ACPI_PCCT4_OFFSET (DoorbellRegister), "Doorbell Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (PreserveMask), "Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (WriteMask), "Write Mask", 0}, {ACPI_DMT_UINT32, ACPI_PCCT4_OFFSET (Latency), "Command Latency", 0}, {ACPI_DMT_UINT32, ACPI_PCCT4_OFFSET (MaxAccessRate), "Maximum Access Rate", 0}, {ACPI_DMT_UINT32, ACPI_PCCT4_OFFSET (MinTurnaroundTime), "Minimum Turnaround Time", 0}, {ACPI_DMT_GAS, ACPI_PCCT4_OFFSET (PlatformAckRegister), "Platform ACK Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (AckPreserveMask), "ACK Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (AckSetMask), "ACK Set Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (Reserved2), "Reserved", 0}, {ACPI_DMT_GAS, ACPI_PCCT4_OFFSET (CmdCompleteRegister), "Command Complete Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (CmdCompleteMask), "Command Complete Check Mask", 0}, {ACPI_DMT_GAS, ACPI_PCCT4_OFFSET (CmdUpdateRegister), "Command Update Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (CmdUpdatePreserveMask), "Command Update Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (CmdUpdateSetMask), "Command Update Set Mask", 0}, {ACPI_DMT_GAS, ACPI_PCCT4_OFFSET (ErrorStatusRegister), "Error Status Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT4_OFFSET (ErrorStatusMask), "Error Status Mask", 0}, ACPI_DMT_TERMINATOR }; /* 5: HW Registers based Communications Subspace */ ACPI_DMTABLE_INFO AcpiDmTableInfoPcct5[] = { {ACPI_DMT_UINT16, ACPI_PCCT5_OFFSET (Version), "Version", 0}, {ACPI_DMT_UINT64, ACPI_PCCT5_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_PCCT5_OFFSET (Length), "Length", 0}, {ACPI_DMT_GAS, ACPI_PCCT5_OFFSET (DoorbellRegister), "Doorbell Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT5_OFFSET (DoorbellPreserve), "Preserve Mask", 0}, {ACPI_DMT_UINT64, ACPI_PCCT5_OFFSET (DoorbellWrite), "Write Mask", 0}, {ACPI_DMT_GAS, ACPI_PCCT5_OFFSET (CmdCompleteRegister), "Command Complete Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT5_OFFSET (CmdCompleteMask), "Command Complete Check Mask", 0}, {ACPI_DMT_GAS, ACPI_PCCT5_OFFSET (ErrorStatusRegister), "Error Status Register", 0}, {ACPI_DMT_UINT64, ACPI_PCCT5_OFFSET (ErrorStatusMask), "Error Status Mask", 0}, {ACPI_DMT_UINT32, ACPI_PCCT5_OFFSET (NominalLatency), "Nominal Latency", 0}, {ACPI_DMT_UINT32, ACPI_PCCT5_OFFSET (MinTurnaroundTime), "Minimum Turnaround Time", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * PDTT - Platform Debug Trigger Table (ACPI 6.2) * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoPdtt[] = { {ACPI_DMT_UINT8, ACPI_PDTT_OFFSET (TriggerCount), "Trigger Count", 0}, {ACPI_DMT_UINT24, ACPI_PDTT_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_PDTT_OFFSET (ArrayOffset), "Array Offset", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoPdtt0[] = { {ACPI_DMT_UINT8, ACPI_PDTT0_OFFSET (SubchannelId), "Subchannel Id", 0}, {ACPI_DMT_UINT8, ACPI_PDTT0_OFFSET (Flags), "Flags (Decoded Below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_PDTT0_FLAG_OFFSET (Flags,0), "Runtime Trigger", 0}, {ACPI_DMT_FLAG1, ACPI_PDTT0_FLAG_OFFSET (Flags,0), "Wait for Completion", 0}, {ACPI_DMT_FLAG2, ACPI_PDTT0_FLAG_OFFSET (Flags,0), "Trigger Order", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * PHAT - Platform Health Assessment Table (ACPI 6.4) * ******************************************************************************/ /* Common subtable header */ ACPI_DMTABLE_INFO AcpiDmTableInfoPhatHdr[] = { {ACPI_DMT_PHAT, ACPI_PHATH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT16, ACPI_PHATH_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_PHATH_OFFSET (Revision), "Revision", 0}, ACPI_DMT_TERMINATOR }; /* 0: Firmware version table */ ACPI_DMTABLE_INFO AcpiDmTableInfoPhat0[] = { {ACPI_DMT_UINT24, ACPI_PHAT0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_PHAT0_OFFSET (ElementCount), "Element Count", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoPhat0a[] = { {ACPI_DMT_UUID, ACPI_PHAT0A_OFFSET (Guid), "GUID", 0}, {ACPI_DMT_UINT64, ACPI_PHAT0A_OFFSET (VersionValue), "Version Value", 0}, {ACPI_DMT_UINT32, ACPI_PHAT0A_OFFSET (ProducerId), "Producer ID", 0}, ACPI_DMT_TERMINATOR }; /* 1: Firmware Health Data Record */ ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1[] = { {ACPI_DMT_UINT16, ACPI_PHAT1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_PHAT1_OFFSET (Health), "Health", 0}, {ACPI_DMT_UUID, ACPI_PHAT1_OFFSET (DeviceGuid), "Device GUID", 0}, {ACPI_DMT_UINT32, ACPI_PHAT1_OFFSET (DeviceSpecificOffset), "Device-Specific Offset", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1a[] = { {ACPI_DMT_UNICODE, 0, "Device Path", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoPhat1b[] = { {ACPI_DMT_RAW_BUFFER, 0, "Device-Specific Data", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * PMTT - Platform Memory Topology Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt[] = { {ACPI_DMT_UINT32, ACPI_PMTT_OFFSET (MemoryDeviceCount), "Memory Device Count", 0}, ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable) */ #define ACPI_DM_PMTT_HEADER \ {ACPI_DMT_PMTT, ACPI_PMTTH_OFFSET (Type), "Subtable Type", 0}, \ {ACPI_DMT_UINT8, ACPI_PMTTH_OFFSET (Reserved1), "Reserved", 0}, \ {ACPI_DMT_UINT16, ACPI_PMTTH_OFFSET (Length), "Length", DT_LENGTH}, \ {ACPI_DMT_UINT16, ACPI_PMTTH_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, \ {ACPI_DMT_FLAG0, ACPI_PMTTH_FLAG_OFFSET (Flags,0), "Top-level Device", 0}, \ {ACPI_DMT_FLAG1, ACPI_PMTTH_FLAG_OFFSET (Flags,0), "Physical Element", 0}, \ {ACPI_DMT_FLAGS2, ACPI_PMTTH_FLAG_OFFSET (Flags,0), "Memory Type", 0}, \ {ACPI_DMT_UINT16, ACPI_PMTTH_OFFSET (Reserved2), "Reserved", 0}, \ {ACPI_DMT_UINT32, ACPI_PMTTH_OFFSET (MemoryDeviceCount), "Memory Device Count", 0} /* PMTT Subtables */ /* 0: Socket */ ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt0[] = { ACPI_DM_PMTT_HEADER, {ACPI_DMT_UINT16, ACPI_PMTT0_OFFSET (SocketId), "Socket ID", 0}, {ACPI_DMT_UINT16, ACPI_PMTT0_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 1: Memory Controller */ ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt1[] = { ACPI_DM_PMTT_HEADER, {ACPI_DMT_UINT16, ACPI_PMTT1_OFFSET (ControllerId), "Controller ID", 0}, {ACPI_DMT_UINT16, ACPI_PMTT1_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 2: Physical Component */ ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt2[] = { ACPI_DM_PMTT_HEADER, {ACPI_DMT_UINT32, ACPI_PMTT2_OFFSET (BiosHandle), "Bios Handle", 0}, ACPI_DMT_TERMINATOR }; /* 0xFF: Vendor Specific */ ACPI_DMTABLE_INFO AcpiDmTableInfoPmttVendor[] = { ACPI_DM_PMTT_HEADER, {ACPI_DMT_UUID, ACPI_PMTT_VENDOR_OFFSET (TypeUuid), "Type Uuid", 0}, {ACPI_DMT_PMTT_VENDOR, ACPI_PMTT_VENDOR_OFFSET (Specific), "Vendor Data", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * PPTT - Processor Properties Topology Table (ACPI 6.2) * ******************************************************************************/ /* Main table consists of only the standard ACPI header - subtables follow */ /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoPpttHdr[] = { {ACPI_DMT_PPTT, ACPI_PPTTH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_PPTTH_OFFSET (Length), "Length", 0}, ACPI_DMT_TERMINATOR }; /* 0: Processor hierarchy node */ ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0[] = { {ACPI_DMT_UINT16, ACPI_PPTT0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_PPTT0_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_PPTT0_FLAG_OFFSET (Flags,0), "Physical package", 0}, {ACPI_DMT_FLAG1, ACPI_PPTT0_FLAG_OFFSET (Flags,0), "ACPI Processor ID valid", 0}, {ACPI_DMT_FLAG2, ACPI_PPTT0_FLAG_OFFSET (Flags,0), "Processor is a thread", 0}, {ACPI_DMT_FLAG3, ACPI_PPTT0_FLAG_OFFSET (Flags,0), "Node is a leaf", 0}, {ACPI_DMT_FLAG4, ACPI_PPTT0_FLAG_OFFSET (Flags,0), "Identical Implementation", 0}, {ACPI_DMT_UINT32, ACPI_PPTT0_OFFSET (Parent), "Parent", 0}, {ACPI_DMT_UINT32, ACPI_PPTT0_OFFSET (AcpiProcessorId), "ACPI Processor ID", 0}, {ACPI_DMT_UINT32, ACPI_PPTT0_OFFSET (NumberOfPrivResources), "Private Resource Number", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0a[] = { {ACPI_DMT_UINT32, 0, "Private Resource", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* 1: Cache type */ ACPI_DMTABLE_INFO AcpiDmTableInfoPptt1[] = { {ACPI_DMT_UINT16, ACPI_PPTT1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_PPTT1_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_PPTT1_FLAG_OFFSET (Flags,0), "Size valid", 0}, {ACPI_DMT_FLAG1, ACPI_PPTT1_FLAG_OFFSET (Flags,0), "Number of Sets valid", 0}, {ACPI_DMT_FLAG2, ACPI_PPTT1_FLAG_OFFSET (Flags,0), "Associativity valid", 0}, {ACPI_DMT_FLAG3, ACPI_PPTT1_FLAG_OFFSET (Flags,0), "Allocation Type valid", 0}, {ACPI_DMT_FLAG4, ACPI_PPTT1_FLAG_OFFSET (Flags,0), "Cache Type valid", 0}, {ACPI_DMT_FLAG5, ACPI_PPTT1_FLAG_OFFSET (Flags,0), "Write Policy valid", 0}, {ACPI_DMT_FLAG6, ACPI_PPTT1_FLAG_OFFSET (Flags,0), "Line Size valid", 0}, {ACPI_DMT_FLAG7, ACPI_PPTT1_FLAG_OFFSET (Flags,0), "Cache ID valid", 0}, {ACPI_DMT_UINT32, ACPI_PPTT1_OFFSET (NextLevelOfCache), "Next Level of Cache", 0}, {ACPI_DMT_UINT32, ACPI_PPTT1_OFFSET (Size), "Size", 0}, {ACPI_DMT_UINT32, ACPI_PPTT1_OFFSET (NumberOfSets), "Number of Sets", 0}, {ACPI_DMT_UINT8, ACPI_PPTT1_OFFSET (Associativity), "Associativity", 0}, {ACPI_DMT_UINT8, ACPI_PPTT1_OFFSET (Attributes), "Attributes", 0}, {ACPI_DMT_FLAGS0, ACPI_PPTT1_OFFSET (Attributes), "Allocation Type", 0}, {ACPI_DMT_FLAGS2, ACPI_PPTT1_OFFSET (Attributes), "Cache Type", 0}, {ACPI_DMT_FLAG4, ACPI_PPTT1_OFFSET (Attributes), "Write Policy", 0}, {ACPI_DMT_UINT16, ACPI_PPTT1_OFFSET (LineSize), "Line Size", 0}, ACPI_DMT_TERMINATOR }; /* 1: cache type v1 */ ACPI_DMTABLE_INFO AcpiDmTableInfoPptt1a[] = { {ACPI_DMT_UINT32, ACPI_PPTT1A_OFFSET (CacheId), "Cache ID", 0}, ACPI_DMT_TERMINATOR }; /* 2: ID */ ACPI_DMTABLE_INFO AcpiDmTableInfoPptt2[] = { {ACPI_DMT_UINT16, ACPI_PPTT2_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_PPTT2_OFFSET (VendorId), "Vendor ID", 0}, {ACPI_DMT_UINT64, ACPI_PPTT2_OFFSET (Level1Id), "Level1 ID", 0}, {ACPI_DMT_UINT64, ACPI_PPTT2_OFFSET (Level2Id), "Level2 ID", 0}, {ACPI_DMT_UINT16, ACPI_PPTT2_OFFSET (MajorRev), "Major revision", 0}, {ACPI_DMT_UINT16, ACPI_PPTT2_OFFSET (MinorRev), "Minor revision", 0}, {ACPI_DMT_UINT16, ACPI_PPTT2_OFFSET (SpinRev), "Spin revision", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * PRMT - Platform Runtime Mechanism Table * Version 1 * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtHdr[] = { {ACPI_DMT_UUID, ACPI_PRMTH_OFFSET (PlatformGuid[0]), "Platform GUID", 0}, {ACPI_DMT_UINT32, ACPI_PRMTH_OFFSET (ModuleInfoOffset), "Module info offset", 0}, {ACPI_DMT_UINT32, ACPI_PRMTH_OFFSET (ModuleInfoCount), "Module info count", 0}, ACPI_DMT_NEW_LINE, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtModule[] = { {ACPI_DMT_UINT16, ACPI_PRMT0_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT16, ACPI_PRMT0_OFFSET (Length), "Length", 0}, {ACPI_DMT_UUID, ACPI_PRMT0_OFFSET (ModuleGuid[0]), "Module GUID", 0}, {ACPI_DMT_UINT16, ACPI_PRMT0_OFFSET (MajorRev), "Major Revision", 0}, {ACPI_DMT_UINT16, ACPI_PRMT0_OFFSET (MinorRev), "Minor Revision", 0}, {ACPI_DMT_UINT16, ACPI_PRMT0_OFFSET (HandlerInfoCount), "Handler Info Count", 0}, {ACPI_DMT_UINT32, ACPI_PRMT0_OFFSET (HandlerInfoOffset), "Handler Info Offset", 0}, {ACPI_DMT_UINT64, ACPI_PRMT0_OFFSET (MmioListPointer), "Mmio List pointer", 0}, ACPI_DMT_NEW_LINE, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoPrmtHandler[] = { {ACPI_DMT_UINT16, ACPI_PRMT1_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT16, ACPI_PRMT1_OFFSET (Length), "Length", 0}, {ACPI_DMT_UUID, ACPI_PRMT1_OFFSET (HandlerGuid[0]), "Handler GUID", 0}, {ACPI_DMT_UINT64, ACPI_PRMT1_OFFSET (HandlerAddress), "Handler address", 0}, {ACPI_DMT_UINT64, ACPI_PRMT1_OFFSET (StaticDataBufferAddress),"Static Data Address", 0}, {ACPI_DMT_UINT64, ACPI_PRMT1_OFFSET (AcpiParamBufferAddress), "ACPI Parameter Address", 0}, ACPI_DMT_NEW_LINE, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RASF - RAS Feature table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoRasf[] = { {ACPI_DMT_BUF12, ACPI_RASF_OFFSET (ChannelId[0]), "Channel ID", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RAS2 - RAS2 Feature table (ACPI 6.5) * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoRas2[] = { {ACPI_DMT_UINT16, ACPI_RAS2_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_RAS2_OFFSET (NumPccDescs), "Number of PCC Descriptors", 0}, ACPI_DMT_TERMINATOR }; /* RAS2 PCC Descriptor */ ACPI_DMTABLE_INFO AcpiDmTableInfoRas2PccDesc[] = { {ACPI_DMT_UINT8, ACPI_RAS2_PCC_DESC_OFFSET (ChannelId), "Channel ID", 0}, {ACPI_DMT_UINT16, ACPI_RAS2_PCC_DESC_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_RAS2_PCC_DESC_OFFSET (FeatureType), "Feature Type", 0}, {ACPI_DMT_UINT32, ACPI_RAS2_PCC_DESC_OFFSET (Instance), "Instance", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RGRT - Regulatory Graphics Resource Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoRgrt[] = { {ACPI_DMT_UINT16, ACPI_RGRT_OFFSET (Version), "Version", 0}, {ACPI_DMT_RGRT, ACPI_RGRT_OFFSET (ImageType), "Image Type", 0}, {ACPI_DMT_UINT8, ACPI_RGRT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* * We treat the binary image field as its own subtable (to make * ACPI_DMT_RAW_BUFFER work properly). */ ACPI_DMTABLE_INFO AcpiDmTableInfoRgrt0[] = { {ACPI_DMT_RAW_BUFFER, 0, "Image", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RHCT - RISC-V Hart Capabilities Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoRhct[] = { {ACPI_DMT_UINT32, ACPI_RHCT_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT64, ACPI_RHCT_OFFSET (TimeBaseFreq), "Timer Base Frequency", 0}, {ACPI_DMT_UINT32, ACPI_RHCT_OFFSET (NodeCount), "Number of nodes", 0}, {ACPI_DMT_UINT32, ACPI_RHCT_OFFSET (NodeOffset), "Offset to the node array", 0}, ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoRhctNodeHdr[] = { {ACPI_DMT_RHCT, ACPI_RHCTH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT16, ACPI_RHCTH_OFFSET (Length), "Length", 0}, {ACPI_DMT_UINT16, ACPI_RHCTH_OFFSET (Revision), "Revision", 0}, ACPI_DMT_TERMINATOR }; /* 0: ISA string type */ ACPI_DMTABLE_INFO AcpiDmTableInfoRhctIsa1[] = { {ACPI_DMT_UINT16, ACPI_RHCT0_OFFSET (IsaLength), "ISA string length", 0}, {ACPI_DMT_STRING, ACPI_RHCT0_OFFSET (Isa[0]), "ISA string", 0}, ACPI_DMT_TERMINATOR }; /* Optional padding field */ ACPI_DMTABLE_INFO AcpiDmTableInfoRhctIsaPad[] = { {ACPI_DMT_RAW_BUFFER, 0, "Optional Padding", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* 1: CMO node type */ ACPI_DMTABLE_INFO AcpiDmTableInfoRhctCmo1[] = { {ACPI_DMT_UINT8, ACPI_RHCT1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_RHCT1_OFFSET (CbomSize), "CBOM Block Size", 0}, {ACPI_DMT_UINT8, ACPI_RHCT1_OFFSET (CbopSize), "CBOP Block Size", 0}, {ACPI_DMT_UINT8, ACPI_RHCT1_OFFSET (CbozSize), "CBOZ Block Size", 0}, ACPI_DMT_TERMINATOR }; /* 2: MMU node type */ ACPI_DMTABLE_INFO AcpiDmTableInfoRhctMmu1[] = { {ACPI_DMT_UINT8, ACPI_RHCT2_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_RHCT2_OFFSET (MmuType), "MMU Type", 0}, ACPI_DMT_TERMINATOR }; /* 0xFFFF: Hart Info type */ ACPI_DMTABLE_INFO AcpiDmTableInfoRhctHartInfo1[] = { {ACPI_DMT_UINT16, ACPI_RHCTFFFF_OFFSET (NumOffsets), "Number of offsets", 0}, {ACPI_DMT_UINT32, ACPI_RHCTFFFF_OFFSET (Uid), "Processor UID", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoRhctHartInfo2[] = { {ACPI_DMT_UINT32, 0, "Nodes", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * RIMT - RISC-V IO Mapping Table * * https://github.com/riscv-non-isa/riscv-acpi-rimt * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoRimt[] = { {ACPI_DMT_UINT32, ACPI_RIMT_OFFSET (NumNodes), "Number of RIMT Nodes", 0}, {ACPI_DMT_UINT32, ACPI_RIMT_OFFSET (NodeOffset), "Offset to RIMT Node Array", 0}, {ACPI_DMT_UINT32, ACPI_RIMT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoRimtNodeHdr[] = { {ACPI_DMT_UINT8, ACPI_RIMTH_OFFSET (Type), "Type", 0}, {ACPI_DMT_UINT8, ACPI_RIMTH_OFFSET (Revision), "Revision", 0}, {ACPI_DMT_UINT16, ACPI_RIMTH_OFFSET (Length), "Length", 0}, {ACPI_DMT_UINT16, ACPI_RIMTH_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_RIMTH_OFFSET (Id), "ID", 0}, ACPI_DMT_TERMINATOR }; /* 0: IOMMU Node type */ ACPI_DMTABLE_INFO AcpiDmTableInfoRimtIommu[] = { {ACPI_DMT_NAME8, ACPI_RIMTI_OFFSET (HardwareId), "Hardware ID", 0}, {ACPI_DMT_UINT64, ACPI_RIMTI_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT32, ACPI_RIMTI_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT32, ACPI_RIMTI_OFFSET (ProximityDomain), "Proximity Domain", 0}, {ACPI_DMT_UINT16, ACPI_RIMTI_OFFSET (PcieSegmentNumber), "PCIe Segment number", 0}, {ACPI_DMT_UINT16, ACPI_RIMTI_OFFSET (PcieBdf), "PCIe B/D/F", 0}, {ACPI_DMT_UINT16, ACPI_RIMTI_OFFSET (NumInterruptWires), "Number of interrupt wires", 0}, {ACPI_DMT_UINT16, ACPI_RIMTI_OFFSET (InterruptWireOffset), "Interrupt wire array offset", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoRimtIommuWire[] = { {ACPI_DMT_UINT32, ACPI_RIMTW_OFFSET (IrqNum), "Interrupt Number", 0}, {ACPI_DMT_UINT32, ACPI_RIMTW_OFFSET (Flags), "Flags", 0}, ACPI_DMT_TERMINATOR }; /* 1: PCIE Root Complex Node type */ ACPI_DMTABLE_INFO AcpiDmTableInfoRimtPcieRc[] = { {ACPI_DMT_UINT32, ACPI_RIMTP_OFFSET (Flags), "Flags", 0}, {ACPI_DMT_UINT16, ACPI_RIMTP_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_RIMTP_OFFSET (PcieSegmentNumber), "PCIe Segment number", 0}, {ACPI_DMT_UINT16, ACPI_RIMTP_OFFSET (IdMappingOffset), "ID mapping array offset", 0}, {ACPI_DMT_UINT16, ACPI_RIMTP_OFFSET (NumIdMappings), "Number of ID mappings", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoRimtIdMapping[] = { {ACPI_DMT_UINT32, ACPI_RIMTM_OFFSET (SourceIdBase), "Source ID Base", 0}, {ACPI_DMT_UINT32, ACPI_RIMTM_OFFSET (NumIds), "Number of IDs", 0}, {ACPI_DMT_UINT32, ACPI_RIMTM_OFFSET (DestIdBase), "Destination Device ID Base", 0}, {ACPI_DMT_UINT32, ACPI_RIMTM_OFFSET (DestOffset), "Destination IOMMU Offset", 0}, {ACPI_DMT_UINT32, ACPI_RIMTM_OFFSET (Flags), "Flags", 0}, ACPI_DMT_TERMINATOR }; /* 2: Platform Device Node type */ ACPI_DMTABLE_INFO AcpiDmTableInfoRimtPlatDev[] = { {ACPI_DMT_UINT16, ACPI_RIMTN_OFFSET (IdMappingOffset), "ID mapping array offset", 0}, {ACPI_DMT_UINT16, ACPI_RIMTN_OFFSET (NumIdMappings), "Number of ID mappings", 0}, {ACPI_DMT_STRING, ACPI_RIMTN_OFFSET (DeviceName[0]), "Device Object Name", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoRimtPlatDevPad[] = { {ACPI_DMT_RAW_BUFFER, 0, "Padding", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * S3PT - S3 Performance Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt[] = { {ACPI_DMT_SIG, ACPI_S3PT_OFFSET (Signature[0]), "Signature", 0}, {ACPI_DMT_UINT32, ACPI_S3PT_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* S3PT subtable header */ ACPI_DMTABLE_INFO AcpiDmTableInfoS3ptHdr[] = { {ACPI_DMT_UINT16, ACPI_S3PTH_OFFSET (Type), "Type", 0}, {ACPI_DMT_UINT8, ACPI_S3PTH_OFFSET (Length), "Length", DT_LENGTH}, {ACPI_DMT_UINT8, ACPI_S3PTH_OFFSET (Revision), "Revision", 0}, ACPI_DMT_TERMINATOR }; /* 0: Basic S3 Resume Performance Record */ ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt0[] = { {ACPI_DMT_UINT32, ACPI_S3PT0_OFFSET (ResumeCount), "Resume Count", 0}, {ACPI_DMT_UINT64, ACPI_S3PT0_OFFSET (FullResume), "Full Resume", 0}, {ACPI_DMT_UINT64, ACPI_S3PT0_OFFSET (AverageResume), "Average Resume", 0}, ACPI_DMT_TERMINATOR }; /* 1: Basic S3 Suspend Performance Record */ ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt1[] = { {ACPI_DMT_UINT64, ACPI_S3PT1_OFFSET (SuspendStart), "Suspend Start", 0}, {ACPI_DMT_UINT64, ACPI_S3PT1_OFFSET (SuspendEnd), "Suspend End", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * SBST - Smart Battery Specification Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoSbst[] = { {ACPI_DMT_UINT32, ACPI_SBST_OFFSET (WarningLevel), "Warning Level", 0}, {ACPI_DMT_UINT32, ACPI_SBST_OFFSET (LowLevel), "Low Level", 0}, {ACPI_DMT_UINT32, ACPI_SBST_OFFSET (CriticalLevel), "Critical Level", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * SDEI - Software Delegated Exception Interface Descriptor Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoSdei[] = { ACPI_DMT_TERMINATOR }; /******************************************************************************* * * SDEV - Secure Devices Table (ACPI 6.2) * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoSdev[] = { ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoSdevHdr[] = { {ACPI_DMT_SDEV, ACPI_SDEVH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_SDEVH_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_FLAG0, ACPI_SDEVH_FLAG_OFFSET (Flags,0), "Allow handoff to unsecure OS", 0}, {ACPI_DMT_FLAG1, ACPI_SDEVH_FLAG_OFFSET (Flags,0), "Secure access components present", 0}, {ACPI_DMT_UINT16, ACPI_SDEVH_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* SDEV Subtables */ /* 0: Namespace Device Based Secure Device Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0[] = { {ACPI_DMT_UINT16, ACPI_SDEV0_OFFSET (DeviceIdOffset), "Device ID Offset", 0}, {ACPI_DMT_UINT16, ACPI_SDEV0_OFFSET (DeviceIdLength), "Device ID Length", 0}, {ACPI_DMT_UINT16, ACPI_SDEV0_OFFSET (VendorDataOffset), "Vendor Data Offset", 0}, {ACPI_DMT_UINT16, ACPI_SDEV0_OFFSET (VendorDataLength), "Vendor Data Length", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0a[] = { {ACPI_DMT_STRING, 0, "Namepath", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoSdev0b[] = { {ACPI_DMT_UINT16, ACPI_SDEV0B_OFFSET (SecureComponentOffset), "Secure Access Components Offset", 0}, {ACPI_DMT_UINT16, ACPI_SDEV0B_OFFSET (SecureComponentLength), "Secure Access Components Length", 0}, ACPI_DMT_TERMINATOR }; /* Secure access components */ /* Common secure access components header secure access component */ ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompHdr[] = { {ACPI_DMT_UINT8, ACPI_SDEVCH_OFFSET (Type), "Secure Component Type", 0}, {ACPI_DMT_UINT8, ACPI_SDEVCH_OFFSET (Flags), "Flags (decoded below)", 0}, {ACPI_DMT_UINT16, ACPI_SDEVCH_OFFSET (Length), "Length", 0}, ACPI_DMT_TERMINATOR }; /* 0: Identification Based Secure Access Component */ ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompId[] = { {ACPI_DMT_UINT16, ACPI_SDEVC0_OFFSET (HardwareIdOffset), "Hardware ID Offset", 0}, {ACPI_DMT_UINT16, ACPI_SDEVC0_OFFSET (HardwareIdLength), "Hardware ID Length", 0}, {ACPI_DMT_UINT16, ACPI_SDEVC0_OFFSET (SubsystemIdOffset), "Subsystem ID Offset", 0}, {ACPI_DMT_UINT16, ACPI_SDEVC0_OFFSET (SubsystemIdLength), "Subsystem ID Length", 0}, {ACPI_DMT_UINT16, ACPI_SDEVC0_OFFSET (HardwareRevision), "Hardware Revision", 0}, {ACPI_DMT_UINT8, ACPI_SDEVC0_OFFSET (HardwareRevPresent), "Hardware Rev Present", 0}, {ACPI_DMT_UINT8, ACPI_SDEVC0_OFFSET (ClassCodePresent), "Class Code Present", 0}, {ACPI_DMT_UINT8, ACPI_SDEVC0_OFFSET (PciBaseClass), "PCI Base Class", 0}, {ACPI_DMT_UINT8, ACPI_SDEVC0_OFFSET (PciSubClass), "PCI SubClass", 0}, {ACPI_DMT_UINT8, ACPI_SDEVC0_OFFSET (PciProgrammingXface), "PCI Programming Xface", 0}, ACPI_DMT_TERMINATOR }; /* 1: Memory Based Secure Access Component */ ACPI_DMTABLE_INFO AcpiDmTableInfoSdevSecCompMem[] = { {ACPI_DMT_UINT32, ACPI_SDEVC1_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_SDEVC1_OFFSET (MemoryBaseAddress), "Memory Base Address", 0}, {ACPI_DMT_UINT64, ACPI_SDEVC1_OFFSET (MemoryLength), "Memory Length", 0}, ACPI_DMT_TERMINATOR }; /* 1: PCIe Endpoint Device Based Device Structure */ ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1[] = { {ACPI_DMT_UINT16, ACPI_SDEV1_OFFSET (Segment), "Segment", 0}, {ACPI_DMT_UINT16, ACPI_SDEV1_OFFSET (StartBus), "Start Bus", 0}, {ACPI_DMT_UINT16, ACPI_SDEV1_OFFSET (PathOffset), "Path Offset", 0}, {ACPI_DMT_UINT16, ACPI_SDEV1_OFFSET (PathLength), "Path Length", 0}, {ACPI_DMT_UINT16, ACPI_SDEV1_OFFSET (VendorDataOffset), "Vendor Data Offset", 0}, {ACPI_DMT_UINT16, ACPI_SDEV1_OFFSET (VendorDataLength), "Vendor Data Length", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1a[] = { {ACPI_DMT_UINT8, ACPI_SDEV1A_OFFSET (Device), "Device", 0}, {ACPI_DMT_UINT8, ACPI_SDEV1A_OFFSET (Function), "Function", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoSdev1b[] = { {ACPI_DMT_RAW_BUFFER, 0, "Vendor Data", 0}, /*, DT_OPTIONAL}, */ ACPI_DMT_TERMINATOR }; /*! [End] no source code translation !*/ acpica-unix-20250404/source/common/dmtbdump1.c0000775000175000017500000021775114773714131020406 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtbdump1 - Dump ACPI data tables that contain no AML code * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "actables.h" #include "aslcompiler.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmtbdump1") /******************************************************************************* * * FUNCTION: AcpiDmDumpAest * * PARAMETERS: Table - A AEST table * * RETURN: None * * DESCRIPTION: Format the contents of a AEST table * * NOTE: Assumes the following table structure: * For all AEST Error Nodes: * 1) An AEST Error Node, followed immediately by: * 2) Any node-specific data * 3) An Interface Structure (one) * 4) A list (array) of Interrupt Structures * * AEST - ARM Error Source table. Conforms to: * ACPI for the Armv8 RAS Extensions 1.1 Platform Design Document Sep 2020 * ******************************************************************************/ void AcpiDmDumpAest ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_HEADER); ACPI_AEST_HEADER *Subtable; ACPI_AEST_HEADER *NodeHeader; ACPI_AEST_PROCESSOR *ProcessorSubtable; ACPI_DMTABLE_INFO *InfoTable; ACPI_SIZE Length; UINT8 Type; UINT8 Revision = Table->Revision; UINT32 Count; ACPI_AEST_NODE_INTERFACE_HEADER *InterfaceHeader; /* Very small, generic main table. AEST consists of mostly subtables */ while (Offset < Table->Length) { NodeHeader = ACPI_ADD_PTR (ACPI_AEST_HEADER, Table, Offset); /* Dump the common error node (subtable) header */ Status = AcpiDmDumpTable (Table->Length, Offset, NodeHeader, NodeHeader->Length, AcpiDmTableInfoAestHdr); if (ACPI_FAILURE (Status)) { return; } Type = NodeHeader->Type; /* Setup the node-specific subtable based on the header Type field */ switch (Type) { case ACPI_AEST_PROCESSOR_ERROR_NODE: InfoTable = AcpiDmTableInfoAestProcError; Length = sizeof (ACPI_AEST_PROCESSOR); break; case ACPI_AEST_MEMORY_ERROR_NODE: InfoTable = AcpiDmTableInfoAestMemError; Length = sizeof (ACPI_AEST_MEMORY); break; case ACPI_AEST_SMMU_ERROR_NODE: InfoTable = AcpiDmTableInfoAestSmmuError; Length = sizeof (ACPI_AEST_SMMU); break; case ACPI_AEST_VENDOR_ERROR_NODE: switch (Revision) { case 1: InfoTable = AcpiDmTableInfoAestVendorError; Length = sizeof (ACPI_AEST_VENDOR); break; case 2: InfoTable = AcpiDmTableInfoAestVendorV2Error; Length = sizeof (ACPI_AEST_VENDOR_V2); break; default: AcpiOsPrintf ("\n**** Unknown AEST revision 0x%X\n", Revision); return; } break; case ACPI_AEST_GIC_ERROR_NODE: InfoTable = AcpiDmTableInfoAestGicError; Length = sizeof (ACPI_AEST_GIC); break; case ACPI_AEST_PCIE_ERROR_NODE: InfoTable = AcpiDmTableInfoAestPCIeError; Length = sizeof (ACPI_AEST_PCIE); break; case ACPI_AEST_PROXY_ERROR_NODE: InfoTable = AcpiDmTableInfoAestProxyError; Length = sizeof (ACPI_AEST_PROXY); break; /* Error case below */ default: AcpiOsPrintf ("\n**** Unknown AEST Error Subtable type 0x%X\n", Type); return; } /* Point past the common header (to the node-specific data) */ Offset += sizeof (ACPI_AEST_HEADER); Subtable = ACPI_ADD_PTR (ACPI_AEST_HEADER, Table, Offset); AcpiOsPrintf ("\n"); /* Dump the node-specific subtable */ Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); if (Type == ACPI_AEST_PROCESSOR_ERROR_NODE) { /* * Special handling for PROCESSOR_ERROR_NODE subtables * (to handle the Resource Substructure via the ResourceType * field). */ /* Point past the node-specific data */ Offset += Length; ProcessorSubtable = ACPI_CAST_PTR (ACPI_AEST_PROCESSOR, Subtable); switch (ProcessorSubtable->ResourceType) { /* Setup the Resource Substructure subtable */ case ACPI_AEST_CACHE_RESOURCE: InfoTable = AcpiDmTableInfoAestCacheRsrc; Length = sizeof (ACPI_AEST_PROCESSOR_CACHE); break; case ACPI_AEST_TLB_RESOURCE: InfoTable = AcpiDmTableInfoAestTlbRsrc; Length = sizeof (ACPI_AEST_PROCESSOR_TLB); break; case ACPI_AEST_GENERIC_RESOURCE: InfoTable = AcpiDmTableInfoAestGenRsrc; Length = sizeof (ACPI_AEST_PROCESSOR_GENERIC); break; /* Error case below */ default: AcpiOsPrintf ("\n**** Unknown AEST Processor Resource type 0x%X\n", ProcessorSubtable->ResourceType); return; } ProcessorSubtable = ACPI_ADD_PTR (ACPI_AEST_PROCESSOR, Table, Offset); /* Dump the resource substructure subtable */ Status = AcpiDmDumpTable (Table->Length, Offset, ProcessorSubtable, Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); } /* Point past the resource substructure or the node-specific data */ Offset += Length; /* Dump the interface structure, required to be present */ Subtable = ACPI_ADD_PTR (ACPI_AEST_HEADER, Table, Offset); if (Subtable->Type >= ACPI_AEST_XFACE_RESERVED) { AcpiOsPrintf ("\n**** Unknown AEST Node Interface type 0x%X\n", Subtable->Type); return; } if (Revision == 1) { InfoTable = AcpiDmTableInfoAestXface; Length = sizeof (ACPI_AEST_NODE_INTERFACE); } else if (Revision == 2) { InfoTable = AcpiDmTableInfoAestXfaceHeader; Length = sizeof (ACPI_AEST_NODE_INTERFACE_HEADER); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } Offset += Length; InterfaceHeader = ACPI_CAST_PTR (ACPI_AEST_NODE_INTERFACE_HEADER, Subtable); switch (InterfaceHeader->GroupFormat) { case ACPI_AEST_NODE_GROUP_FORMAT_4K: InfoTable = AcpiDmTableInfoAestXface4k; Length = sizeof (ACPI_AEST_NODE_INTERFACE_4K); break; case ACPI_AEST_NODE_GROUP_FORMAT_16K: InfoTable = AcpiDmTableInfoAestXface16k; Length = sizeof (ACPI_AEST_NODE_INTERFACE_16K); break; case ACPI_AEST_NODE_GROUP_FORMAT_64K: InfoTable = AcpiDmTableInfoAestXface64k; Length = sizeof (ACPI_AEST_NODE_INTERFACE_64K); break; default: AcpiOsPrintf ("\n**** Unknown AEST Interface Group Format 0x%X\n", InterfaceHeader->GroupFormat); return; } Subtable = ACPI_ADD_PTR (ACPI_AEST_HEADER, Table, Offset); } else { AcpiOsPrintf ("\n**** Unknown AEST revision 0x%X\n", Revision); return; } Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* Point past the interface structure */ AcpiOsPrintf ("\n"); Offset += Length; /* Dump the entire interrupt structure array, if present */ if (NodeHeader->NodeInterruptOffset) { Count = NodeHeader->NodeInterruptCount; Subtable = ACPI_ADD_PTR (ACPI_AEST_HEADER, Table, Offset); while (Count) { /* Dump the interrupt structure */ switch (Revision) { case 1: InfoTable = AcpiDmTableInfoAestXrupt; Length = sizeof (ACPI_AEST_NODE_INTERRUPT); break; case 2: InfoTable = AcpiDmTableInfoAestXruptV2; Length = sizeof (ACPI_AEST_NODE_INTERRUPT_V2); break; default: AcpiOsPrintf ("\n**** Unknown AEST revision 0x%X\n", Revision); return; } Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* Point to the next interrupt structure */ Offset += Length; Subtable = ACPI_ADD_PTR (ACPI_AEST_HEADER, Table, Offset); Count--; AcpiOsPrintf ("\n"); } } } } /******************************************************************************* * * FUNCTION: AcpiDmDumpApmt * * PARAMETERS: Table - A APMT table * * RETURN: None * * DESCRIPTION: Format the contents of a APMT. This table type consists * of an open-ended number of subtables. * * * APMT - ARM Performance Monitoring Unit table. Conforms to: * ARM Performance Monitoring Unit Architecture 1.0 Platform Design Document * ARM DEN0117 v1.0 November 25, 2021 * ******************************************************************************/ void AcpiDmDumpApmt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_APMT_NODE *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_APMT); UINT32 NodeNum = 0; /* There is no main table (other than the standard ACPI header) */ /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_APMT_NODE, Table, Offset); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); if (Subtable->Type >= ACPI_APMT_NODE_TYPE_COUNT) { AcpiOsPrintf ("\n**** Unknown APMT subtable type 0x%X\n", Subtable->Type); return; } AcpiOsPrintf ("/* APMT Node-%u */\n", NodeNum++); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoApmtNode); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_APMT_NODE, Subtable, Subtable->Length); AcpiOsPrintf ("\n"); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpAsf * * PARAMETERS: Table - A ASF table * * RETURN: None * * DESCRIPTION: Format the contents of a ASF table * ******************************************************************************/ void AcpiDmDumpAsf ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_HEADER); ACPI_ASF_INFO *Subtable; ACPI_DMTABLE_INFO *InfoTable; ACPI_DMTABLE_INFO *DataInfoTable = NULL; UINT8 *DataTable = NULL; UINT32 DataCount = 0; UINT32 DataLength = 0; UINT32 DataOffset = 0; UINT32 i; UINT8 Type; /* No main table, only subtables */ Subtable = ACPI_ADD_PTR (ACPI_ASF_INFO, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Header.Length, AcpiDmTableInfoAsfHdr); if (ACPI_FAILURE (Status)) { return; } /* The actual type is the lower 7 bits of Type */ Type = (UINT8) (Subtable->Header.Type & 0x7F); switch (Type) { case ACPI_ASF_TYPE_INFO: InfoTable = AcpiDmTableInfoAsf0; break; case ACPI_ASF_TYPE_ALERT: InfoTable = AcpiDmTableInfoAsf1; DataInfoTable = AcpiDmTableInfoAsf1a; DataTable = ACPI_ADD_PTR (UINT8, Subtable, sizeof (ACPI_ASF_ALERT)); DataCount = ACPI_CAST_PTR (ACPI_ASF_ALERT, Subtable)->Alerts; DataLength = ACPI_CAST_PTR (ACPI_ASF_ALERT, Subtable)->DataLength; DataOffset = Offset + sizeof (ACPI_ASF_ALERT); break; case ACPI_ASF_TYPE_CONTROL: InfoTable = AcpiDmTableInfoAsf2; DataInfoTable = AcpiDmTableInfoAsf2a; DataTable = ACPI_ADD_PTR (UINT8, Subtable, sizeof (ACPI_ASF_REMOTE)); DataCount = ACPI_CAST_PTR (ACPI_ASF_REMOTE, Subtable)->Controls; DataLength = ACPI_CAST_PTR (ACPI_ASF_REMOTE, Subtable)->DataLength; DataOffset = Offset + sizeof (ACPI_ASF_REMOTE); break; case ACPI_ASF_TYPE_BOOT: InfoTable = AcpiDmTableInfoAsf3; break; case ACPI_ASF_TYPE_ADDRESS: InfoTable = AcpiDmTableInfoAsf4; DataTable = ACPI_ADD_PTR (UINT8, Subtable, sizeof (ACPI_ASF_ADDRESS)); DataLength = ACPI_CAST_PTR (ACPI_ASF_ADDRESS, Subtable)->Devices; DataOffset = Offset + sizeof (ACPI_ASF_ADDRESS); break; default: AcpiOsPrintf ("\n**** Unknown ASF subtable type 0x%X\n", Subtable->Header.Type); return; } Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Header.Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* Dump variable-length extra data */ switch (Type) { case ACPI_ASF_TYPE_ALERT: case ACPI_ASF_TYPE_CONTROL: for (i = 0; i < DataCount; i++) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, DataOffset, DataTable, DataLength, DataInfoTable); if (ACPI_FAILURE (Status)) { return; } DataTable = ACPI_ADD_PTR (UINT8, DataTable, DataLength); DataOffset += DataLength; } break; case ACPI_ASF_TYPE_ADDRESS: for (i = 0; i < DataLength; i++) { if (!(i % 16)) { AcpiDmLineHeader (DataOffset, 1, "Addresses"); } AcpiOsPrintf ("%2.2X ", *DataTable); DataTable++; DataOffset++; if (DataOffset > Table->Length) { AcpiOsPrintf ( "**** ACPI table terminates in the middle of a " "data structure! (ASF! table)\n"); return; } } AcpiOsPrintf ("\n"); break; default: break; } AcpiOsPrintf ("\n"); /* Point to next subtable */ if (!Subtable->Header.Length) { AcpiOsPrintf ("Invalid zero subtable header length\n"); return; } Offset += Subtable->Header.Length; Subtable = ACPI_ADD_PTR (ACPI_ASF_INFO, Subtable, Subtable->Header.Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpAspt * * PARAMETERS: Table - A ASPT table * * RETURN: None * * DESCRIPTION: Format the contents of a ASPT table * ******************************************************************************/ void AcpiDmDumpAspt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_ASPT); UINT32 Length = Table->Length; ACPI_ASPT_HEADER *Subtable; ACPI_DMTABLE_INFO *InfoTable; UINT16 Type; /* Main table */ Status = AcpiDmDumpTable(Length, 0, Table, 0, AcpiDmTableInfoAspt); /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_ASPT_HEADER, Table, Offset); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); /* Common subtable header */ Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoAsptHdr); if (ACPI_FAILURE (Status)) { return; } Type = Subtable->Type; switch (Type) { case ACPI_ASPT_TYPE_GLOBAL_REGS: InfoTable = AcpiDmTableInfoAspt0; break; case ACPI_ASPT_TYPE_SEV_MBOX_REGS: InfoTable = AcpiDmTableInfoAspt1; break; case ACPI_ASPT_TYPE_ACPI_MBOX_REGS: InfoTable = AcpiDmTableInfoAspt2; break; default: AcpiOsPrintf ("\n**** Unknown ASPT subtable type 0x%X\n", Subtable->Type); return; } Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); /* Point to next subtable */ if (!Subtable->Length) { AcpiOsPrintf ("Invalid zero subtable header length\n"); return; } Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_ASPT_HEADER, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpCdat * * PARAMETERS: InTable - A CDAT table * * RETURN: None * * DESCRIPTION: Format the contents of a CDAT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpCdat ( ACPI_TABLE_HEADER *InTable) { ACPI_TABLE_CDAT *Table = ACPI_CAST_PTR (ACPI_TABLE_CDAT, InTable); ACPI_STATUS Status; ACPI_CDAT_HEADER *Subtable; ACPI_TABLE_CDAT *CdatTable = ACPI_CAST_PTR (ACPI_TABLE_CDAT, Table); ACPI_DMTABLE_INFO *InfoTable; UINT32 Length = CdatTable->Length; UINT32 Offset = sizeof (ACPI_TABLE_CDAT); UINT32 SubtableLength; UINT32 SubtableType; INT32 EntriesLength; /* Main table */ Status = AcpiDmDumpTable (Offset, 0, CdatTable, 0, AcpiDmTableInfoCdatTableHdr); if (ACPI_FAILURE (Status)) { return; } Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, sizeof (ACPI_TABLE_CDAT)); while (Offset < Table->Length) { /* Dump the common subtable header */ DbgPrint (ASL_DEBUG_OUTPUT, "0) HeaderOffset: %X\n", Offset); AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, sizeof (ACPI_CDAT_HEADER), AcpiDmTableInfoCdatHeader); if (ACPI_FAILURE (Status)) { return; } /* Point past the common subtable header, decode the subtable type */ Offset += sizeof (ACPI_CDAT_HEADER); SubtableType = Subtable->Type; switch (Subtable->Type) { case ACPI_CDAT_TYPE_DSMAS: Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, Offset); SubtableLength = sizeof (ACPI_CDAT_DSMAS); InfoTable = AcpiDmTableInfoCdat0; break; case ACPI_CDAT_TYPE_DSLBIS: Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, Offset); SubtableLength = sizeof (ACPI_CDAT_DSLBIS); DbgPrint (ASL_DEBUG_OUTPUT, "1) Offset: %X\n", Offset); InfoTable = AcpiDmTableInfoCdat1; break; case ACPI_CDAT_TYPE_DSMSCIS: Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, Offset); SubtableLength = sizeof (ACPI_CDAT_DSMSCIS); InfoTable = AcpiDmTableInfoCdat2; break; case ACPI_CDAT_TYPE_DSIS: DbgPrint (ASL_DEBUG_OUTPUT, "2) Offset: %X ", Offset); SubtableLength = sizeof (ACPI_CDAT_DSIS); DbgPrint (ASL_DEBUG_OUTPUT, "1) input pointer: %p\n", Table); Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, Offset); DbgPrint (ASL_DEBUG_OUTPUT, "1) output pointers: %p, %p, Offset: %X\n", Table, Subtable, Offset); DbgPrint (ASL_DEBUG_OUTPUT, "3) Offset: %X\n", Offset); InfoTable = AcpiDmTableInfoCdat3; break; case ACPI_CDAT_TYPE_DSEMTS: Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, Offset); SubtableLength = sizeof (ACPI_CDAT_DSEMTS); InfoTable = AcpiDmTableInfoCdat4; break; case ACPI_CDAT_TYPE_SSLBIS: SubtableLength = Subtable->Length; InfoTable = AcpiDmTableInfoCdat5; Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, Offset); break; default: fprintf (stderr, "ERROR: Unknown SubtableType: %X\n", Subtable->Type); return; } DbgPrint (ASL_DEBUG_OUTPUT, "SubtableType: %X, Length: %X Actual " "Length: %X Offset: %X tableptr: %p\n", SubtableType, Subtable->Length, SubtableLength, Offset, Table); /* * Do the subtable-specific fields */ Status = AcpiDmDumpTable (Length, Offset, Subtable, Offset, InfoTable); if (ACPI_FAILURE (Status)) { return; } DbgPrint (ASL_DEBUG_OUTPUT, "Subtable Type: %X, Offset: %X, SubtableLength: %X\n", SubtableType, Offset, SubtableLength); /* Additional sub-subtables, dependent on the main subtable type */ switch (SubtableType) { case ACPI_CDAT_TYPE_SSLBIS: Offset += sizeof (ACPI_CDAT_SSLBIS); Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, Offset); DbgPrint (ASL_DEBUG_OUTPUT, "Case SSLBIS, Offset: %X, SubtableLength: %X " "Subtable->Length %X\n", Offset, SubtableLength, Subtable->Length); /* Generate the total length of all the SSLBE entries */ EntriesLength = SubtableLength - sizeof (ACPI_CDAT_HEADER) - sizeof (ACPI_CDAT_SSLBIS); DbgPrint (ASL_DEBUG_OUTPUT, "EntriesLength: %X, Offset: %X, Table->Length: %X\n", EntriesLength, Offset, Table->Length); /* Do each of the SSLBE Entries */ while ((EntriesLength > 0) && (Offset < Table->Length)) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Offset, AcpiDmTableInfoCdatEntries); if (ACPI_FAILURE (Status)) { return; } EntriesLength -= sizeof (ACPI_CDAT_SSLBE); Offset += sizeof (ACPI_CDAT_SSLBE); Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, Offset); } SubtableLength = 0; break; default: break; } DbgPrint (ASL_DEBUG_OUTPUT, "Offset: %X, Subtable Length: %X\n", Offset, SubtableLength); /* Point to next subtable */ Offset += SubtableLength; Subtable = ACPI_ADD_PTR (ACPI_CDAT_HEADER, Table, Offset); } return; } /******************************************************************************* * * FUNCTION: AcpiDmDumpCedt * * PARAMETERS: Table - A CEDT table * * RETURN: None * * DESCRIPTION: Format the contents of a CEDT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpCedt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_CEDT_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_CEDT); /* There is no main table (other than the standard ACPI header) */ Subtable = ACPI_ADD_PTR (ACPI_CEDT_HEADER, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoCedtHdr); if (ACPI_FAILURE (Status)) { return; } switch (Subtable->Type) { case ACPI_CEDT_TYPE_CHBS: Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoCedt0); if (ACPI_FAILURE (Status)) { return; } break; case ACPI_CEDT_TYPE_CFMWS: { ACPI_CEDT_CFMWS *ptr = (ACPI_CEDT_CFMWS *) Subtable; unsigned int i, max; if (ptr->InterleaveWays < 8) max = 1 << (ptr->InterleaveWays); else max = 3 << (ptr->InterleaveWays - 8); /* print out table with first "Interleave target" */ Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoCedt1); if (ACPI_FAILURE (Status)) { return; } /* Now, print out any interleave targets beyond the first. */ for (i = 1; i < max; i++) { unsigned int loc_offset = Offset + (i * 4) + ACPI_OFFSET (ACPI_CEDT_CFMWS, InterleaveTargets); unsigned int *trg = &(ptr->InterleaveTargets[i]); Status = AcpiDmDumpTable (Length, loc_offset, trg, Subtable->Length, AcpiDmTableInfoCedt1_te); if (ACPI_FAILURE (Status)) { return; } } break; } case ACPI_CEDT_TYPE_CXIMS: { ACPI_CEDT_CXIMS *ptr = (ACPI_CEDT_CXIMS *) Subtable; unsigned int i, max = ptr->NrXormaps; /* print out table with first "XOR Map" */ Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoCedt2); if (ACPI_FAILURE (Status)) { return; } /* Now, print out any XOR Map beyond the first. */ for (i = 1; i < max; i++) { unsigned int loc_offset = Offset + (i * 1) + ACPI_OFFSET (ACPI_CEDT_CXIMS, XormapList); UINT64 *trg = &(ptr->XormapList[i]); Status = AcpiDmDumpTable (Length, loc_offset, trg, Subtable->Length, AcpiDmTableInfoCedt2_te); if (ACPI_FAILURE (Status)) { return; } } break; } default: AcpiOsPrintf ("\n**** Unknown CEDT subtable type 0x%X\n\n", Subtable->Type); /* Attempt to continue */ if (!Subtable->Length) { AcpiOsPrintf ("Invalid zero length subtable\n"); return; } } /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_CEDT_HEADER, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpCpep * * PARAMETERS: Table - A CPEP table * * RETURN: None * * DESCRIPTION: Format the contents of a CPEP. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpCpep ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_CPEP_POLLING *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_CPEP); /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoCpep); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_CPEP_POLLING, Table, Offset); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Header.Length, AcpiDmTableInfoCpep0); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable */ Offset += Subtable->Header.Length; Subtable = ACPI_ADD_PTR (ACPI_CPEP_POLLING, Subtable, Subtable->Header.Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpCsrt * * PARAMETERS: Table - A CSRT table * * RETURN: None * * DESCRIPTION: Format the contents of a CSRT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpCsrt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_CSRT_GROUP *Subtable; ACPI_CSRT_SHARED_INFO *SharedInfoTable; ACPI_CSRT_DESCRIPTOR *SubSubtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_CSRT); UINT32 SubOffset; UINT32 SubSubOffset; UINT32 InfoLength; /* The main table only contains the ACPI header, thus already handled */ /* Subtables (Resource Groups) */ Subtable = ACPI_ADD_PTR (ACPI_CSRT_GROUP, Table, Offset); while (Offset < Table->Length) { /* Resource group subtable */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoCsrt0); if (ACPI_FAILURE (Status)) { return; } /* Shared info subtable (One per resource group) */ SubOffset = sizeof (ACPI_CSRT_GROUP); SharedInfoTable = ACPI_ADD_PTR (ACPI_CSRT_SHARED_INFO, Table, Offset + SubOffset); AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset + SubOffset, SharedInfoTable, sizeof (ACPI_CSRT_SHARED_INFO), AcpiDmTableInfoCsrt1); if (ACPI_FAILURE (Status)) { return; } SubOffset += Subtable->SharedInfoLength; /* Sub-Subtables (Resource Descriptors) */ SubSubtable = ACPI_ADD_PTR (ACPI_CSRT_DESCRIPTOR, Table, Offset + SubOffset); while ((SubOffset < Subtable->Length) && ((Offset + SubOffset) < Table->Length)) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset + SubOffset, SubSubtable, SubSubtable->Length, AcpiDmTableInfoCsrt2); if (ACPI_FAILURE (Status)) { return; } SubSubOffset = sizeof (ACPI_CSRT_DESCRIPTOR); /* Resource-specific info buffer */ InfoLength = SubSubtable->Length - SubSubOffset; if (InfoLength) { Status = AcpiDmDumpTable (Length, Offset + SubOffset + SubSubOffset, Table, InfoLength, AcpiDmTableInfoCsrt2a); if (ACPI_FAILURE (Status)) { return; } } /* Point to next sub-subtable */ SubOffset += SubSubtable->Length; SubSubtable = ACPI_ADD_PTR (ACPI_CSRT_DESCRIPTOR, SubSubtable, SubSubtable->Length); } /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_CSRT_GROUP, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpDbg2 * * PARAMETERS: Table - A DBG2 table * * RETURN: None * * DESCRIPTION: Format the contents of a DBG2. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpDbg2 ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_DBG2_DEVICE *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_DBG2); UINT32 i; UINT32 ArrayOffset; UINT32 AbsoluteOffset; UINT8 *Array; /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDbg2); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_DBG2_DEVICE, Table, Offset); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoDbg2Device); if (ACPI_FAILURE (Status)) { return; } /* Dump the BaseAddress array */ for (i = 0; i < Subtable->RegisterCount; i++) { ArrayOffset = Subtable->BaseAddressOffset + (sizeof (ACPI_GENERIC_ADDRESS) * i); AbsoluteOffset = Offset + ArrayOffset; Array = (UINT8 *) Subtable + ArrayOffset; Status = AcpiDmDumpTable (Length, AbsoluteOffset, Array, Subtable->Length, AcpiDmTableInfoDbg2Addr); if (ACPI_FAILURE (Status)) { return; } } /* Dump the AddressSize array */ for (i = 0; i < Subtable->RegisterCount; i++) { ArrayOffset = Subtable->AddressSizeOffset + (sizeof (UINT32) * i); AbsoluteOffset = Offset + ArrayOffset; Array = (UINT8 *) Subtable + ArrayOffset; Status = AcpiDmDumpTable (Length, AbsoluteOffset, Array, Subtable->Length, AcpiDmTableInfoDbg2Size); if (ACPI_FAILURE (Status)) { return; } } /* Dump the Namestring (required) */ AcpiOsPrintf ("\n"); ArrayOffset = Subtable->NamepathOffset; AbsoluteOffset = Offset + ArrayOffset; Array = (UINT8 *) Subtable + ArrayOffset; Status = AcpiDmDumpTable (Length, AbsoluteOffset, Array, Subtable->Length, AcpiDmTableInfoDbg2Name); if (ACPI_FAILURE (Status)) { return; } /* Dump the OemData (optional) */ if (Subtable->OemDataOffset) { Status = AcpiDmDumpTable (Length, Subtable->OemDataOffset, Subtable, Subtable->OemDataLength, AcpiDmTableInfoDbg2OemData); if (ACPI_FAILURE (Status)) { return; } } /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_DBG2_DEVICE, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpDmar * * PARAMETERS: Table - A DMAR table * * RETURN: None * * DESCRIPTION: Format the contents of a DMAR. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpDmar ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_DMAR_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_DMAR); ACPI_DMTABLE_INFO *InfoTable; ACPI_DMAR_DEVICE_SCOPE *ScopeTable; UINT32 ScopeOffset; UINT8 *PciPath; UINT32 PathOffset; /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoDmar); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_DMAR_HEADER, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoDmarHdr); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); switch (Subtable->Type) { case ACPI_DMAR_TYPE_HARDWARE_UNIT: InfoTable = AcpiDmTableInfoDmar0; ScopeOffset = sizeof (ACPI_DMAR_HARDWARE_UNIT); break; case ACPI_DMAR_TYPE_RESERVED_MEMORY: InfoTable = AcpiDmTableInfoDmar1; ScopeOffset = sizeof (ACPI_DMAR_RESERVED_MEMORY); break; case ACPI_DMAR_TYPE_ROOT_ATS: InfoTable = AcpiDmTableInfoDmar2; ScopeOffset = sizeof (ACPI_DMAR_ATSR); break; case ACPI_DMAR_TYPE_HARDWARE_AFFINITY: InfoTable = AcpiDmTableInfoDmar3; ScopeOffset = sizeof (ACPI_DMAR_RHSA); break; case ACPI_DMAR_TYPE_NAMESPACE: InfoTable = AcpiDmTableInfoDmar4; ScopeOffset = sizeof (ACPI_DMAR_ANDD); break; case ACPI_DMAR_TYPE_SATC: InfoTable = AcpiDmTableInfoDmar5; ScopeOffset = sizeof (ACPI_DMAR_SATC); break; case ACPI_DMAR_TYPE_SIDP: InfoTable = AcpiDmTableInfoDmar6; ScopeOffset = sizeof (ACPI_DMAR_SIDP); break; default: AcpiOsPrintf ("\n**** Unknown DMAR subtable type 0x%X\n\n", Subtable->Type); return; } Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* * Dump the optional device scope entries */ if ((Subtable->Type == ACPI_DMAR_TYPE_HARDWARE_AFFINITY) || (Subtable->Type == ACPI_DMAR_TYPE_NAMESPACE)) { /* These types do not support device scopes */ goto NextSubtable; } ScopeTable = ACPI_ADD_PTR (ACPI_DMAR_DEVICE_SCOPE, Subtable, ScopeOffset); while (ScopeOffset < Subtable->Length) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset + ScopeOffset, ScopeTable, ScopeTable->Length, AcpiDmTableInfoDmarScope); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); /* Dump the PCI Path entries for this device scope */ PathOffset = sizeof (ACPI_DMAR_DEVICE_SCOPE); /* Path entries start at this offset */ PciPath = ACPI_ADD_PTR (UINT8, ScopeTable, sizeof (ACPI_DMAR_DEVICE_SCOPE)); while (PathOffset < ScopeTable->Length) { AcpiDmLineHeader ((PathOffset + ScopeOffset + Offset), 2, "PCI Path"); AcpiOsPrintf ("%2.2X,%2.2X\n", PciPath[0], PciPath[1]); /* Point to next PCI Path entry */ PathOffset += 2; PciPath += 2; AcpiOsPrintf ("\n"); } /* Point to next device scope entry */ ScopeOffset += ScopeTable->Length; ScopeTable = ACPI_ADD_PTR (ACPI_DMAR_DEVICE_SCOPE, ScopeTable, ScopeTable->Length); } NextSubtable: /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_DMAR_HEADER, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpDrtm * * PARAMETERS: Table - A DRTM table * * RETURN: None * * DESCRIPTION: Format the contents of a DRTM. * ******************************************************************************/ void AcpiDmDumpDrtm ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset; ACPI_DRTM_VTABLE_LIST *DrtmVtl; ACPI_DRTM_RESOURCE_LIST *DrtmRl; ACPI_DRTM_DPS_ID *DrtmDps; UINT32 Count; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoDrtm); if (ACPI_FAILURE (Status)) { return; } Offset = sizeof (ACPI_TABLE_DRTM); /* Sub-tables */ /* Dump ValidatedTable length */ DrtmVtl = ACPI_ADD_PTR (ACPI_DRTM_VTABLE_LIST, Table, Offset); AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, DrtmVtl, ACPI_OFFSET (ACPI_DRTM_VTABLE_LIST, ValidatedTables), AcpiDmTableInfoDrtm0); if (ACPI_FAILURE (Status)) { return; } Offset += ACPI_OFFSET (ACPI_DRTM_VTABLE_LIST, ValidatedTables); /* Dump Validated table addresses */ Count = 0; while ((Offset < Table->Length) && (DrtmVtl->ValidatedTableCount > Count)) { Status = AcpiDmDumpTable (Table->Length, Offset, ACPI_ADD_PTR (void, Table, Offset), sizeof (UINT64), AcpiDmTableInfoDrtm0a); if (ACPI_FAILURE (Status)) { return; } Offset += sizeof (UINT64); Count++; } /* Dump ResourceList length */ DrtmRl = ACPI_ADD_PTR (ACPI_DRTM_RESOURCE_LIST, Table, Offset); AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, DrtmRl, ACPI_OFFSET (ACPI_DRTM_RESOURCE_LIST, Resources), AcpiDmTableInfoDrtm1); if (ACPI_FAILURE (Status)) { return; } Offset += ACPI_OFFSET (ACPI_DRTM_RESOURCE_LIST, Resources); /* Dump the Resource List */ Count = 0; while ((Offset < Table->Length) && (DrtmRl->ResourceCount > Count)) { Status = AcpiDmDumpTable (Table->Length, Offset, ACPI_ADD_PTR (void, Table, Offset), sizeof (ACPI_DRTM_RESOURCE), AcpiDmTableInfoDrtm1a); if (ACPI_FAILURE (Status)) { return; } Offset += sizeof (ACPI_DRTM_RESOURCE); Count++; } /* Dump DPS */ DrtmDps = ACPI_ADD_PTR (ACPI_DRTM_DPS_ID, Table, Offset); AcpiOsPrintf ("\n"); (void) AcpiDmDumpTable (Table->Length, Offset, DrtmDps, sizeof (ACPI_DRTM_DPS_ID), AcpiDmTableInfoDrtm2); } /******************************************************************************* * * FUNCTION: AcpiDmDumpEinj * * PARAMETERS: Table - A EINJ table * * RETURN: None * * DESCRIPTION: Format the contents of a EINJ. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpEinj ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_WHEA_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_EINJ); /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoEinj); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, sizeof (ACPI_WHEA_HEADER), AcpiDmTableInfoEinj0); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable (each subtable is of fixed length) */ Offset += sizeof (ACPI_WHEA_HEADER); Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Subtable, sizeof (ACPI_WHEA_HEADER)); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpErdt * * PARAMETERS: Table - A ERDT table * * RETURN: None * * DESCRIPTION: Format the contents of a ERDT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpErdt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_SUBTBL_HDR_16 *Subtable, *Subsubtable; ACPI_ERDT_DACD_PATHS *ScopeTable; UINT32 Offset = sizeof (ACPI_TABLE_ERDT); UINT32 Suboffset; UINT32 ScopeOffset; UINT32 SubsubtableLength = 0; ACPI_DMTABLE_INFO *InfoTable, *TrailEntries, *DacdEntries; UINT32 NumTrailers = 0; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoErdt); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_SUBTBL_HDR_16, Table, Offset); while (Offset < Table->Length) { /* Dump common header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoErdtHdr); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoErdtRmdd); if (ACPI_FAILURE (Status)) { return; } /* Subtables of this RMDD table */ Suboffset = Offset + sizeof(ACPI_ERDT_RMDD); Subsubtable = ACPI_ADD_PTR (ACPI_SUBTBL_HDR_16, Table, Suboffset); while (Suboffset < Offset + Subtable->Length) { AcpiOsPrintf ("\n"); TrailEntries = NULL; DacdEntries = NULL; switch (Subsubtable->Type) { case ACPI_ERDT_TYPE_CACD: InfoTable = AcpiDmTableInfoErdtCacd; TrailEntries = AcpiDmTableInfoErdtCacdX2apic; SubsubtableLength = sizeof(ACPI_ERDT_CACD); break; case ACPI_ERDT_TYPE_DACD: InfoTable = AcpiDmTableInfoErdtDacd; DacdEntries = AcpiDmTableInfoErdtDacdScope; SubsubtableLength = sizeof(ACPI_ERDT_DACD); break; case ACPI_ERDT_TYPE_CMRC: InfoTable = AcpiDmTableInfoErdtCmrc; break; case ACPI_ERDT_TYPE_MMRC: InfoTable = AcpiDmTableInfoErdtMmrc; TrailEntries = AcpiDmTableInfoErdtMmrcCorrFactor; SubsubtableLength = sizeof(ACPI_ERDT_MMRC); break; case ACPI_ERDT_TYPE_MARC: InfoTable = AcpiDmTableInfoErdtMarc; break; case ACPI_ERDT_TYPE_CARC: InfoTable = AcpiDmTableInfoErdtCarc; break; case ACPI_ERDT_TYPE_CMRD: InfoTable = AcpiDmTableInfoErdtCmrd; break; case ACPI_ERDT_TYPE_IBRD: InfoTable = AcpiDmTableInfoErdtIbrd; TrailEntries = AcpiDmTableInfoErdtIbrdCorrFactor; SubsubtableLength = sizeof(ACPI_ERDT_IBRD); break; case ACPI_ERDT_TYPE_IBAD: InfoTable = AcpiDmTableInfoErdtIbad; break; case ACPI_ERDT_TYPE_CARD: InfoTable = AcpiDmTableInfoErdtCard; break; default: AcpiOsPrintf ("\n**** Unknown RMDD subtable type 0x%X\n", Subsubtable->Type); /* Attempt to continue */ if (!Subsubtable->Length) { AcpiOsPrintf ("Invalid zero length subtable\n"); return; } goto NextSubsubtable; } /* Dump subtable header */ Status = AcpiDmDumpTable (Table->Length, Suboffset, Subsubtable, Subsubtable->Length, AcpiDmTableInfoErdtHdr); if (ACPI_FAILURE (Status)) { return; } /* Dump subtable body */ Status = AcpiDmDumpTable (Table->Length, Suboffset, Subsubtable, Subsubtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* CACD, MMRC, and IBRD subtables have simple flex array at end */ if (TrailEntries) { NumTrailers = 0; while (NumTrailers < Subsubtable->Length - SubsubtableLength) { /* Dump one flex array element */ Status = AcpiDmDumpTable (Table->Length, Suboffset + SubsubtableLength + NumTrailers, ACPI_ADD_PTR (ACPI_SUBTBL_HDR_16, Subsubtable, SubsubtableLength + NumTrailers), sizeof(UINT32), TrailEntries); if (ACPI_FAILURE (Status)) { return; } NumTrailers += sizeof(UINT32); } } /* DACD subtable has flex array of device agent structures */ if (DacdEntries) { ScopeOffset = Suboffset + SubsubtableLength; ScopeTable = ACPI_ADD_PTR (ACPI_ERDT_DACD_PATHS, Subsubtable, SubsubtableLength); while (ScopeOffset < Suboffset + Subsubtable->Length) { /* Dump one device agent structure */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, ScopeOffset, ScopeTable, ScopeTable->Header.Length, DacdEntries); if (ACPI_FAILURE (Status)) { return; } /* Flex array of UINT8 for device path */ NumTrailers = 0; while (NumTrailers < ScopeTable->Header.Length - sizeof(ACPI_ERDT_DACD_PATHS)) { /* Dump one UINT8 of the device path */ Status = AcpiDmDumpTable (Table->Length, ScopeOffset + sizeof(ACPI_ERDT_DACD_PATHS) + NumTrailers, ACPI_ADD_PTR (ACPI_SUBTBL_HDR_16, ScopeTable, sizeof(*ScopeTable) + NumTrailers), sizeof(UINT32), AcpiDmTableInfoErdtDacdPath); if (ACPI_FAILURE (Status)) { return; } NumTrailers++; } ScopeOffset += ScopeTable->Header.Length; ScopeTable = ACPI_ADD_PTR (ACPI_ERDT_DACD_PATHS, ScopeTable, ScopeTable->Header.Length); } } NextSubsubtable: Suboffset += Subsubtable->Length; Subsubtable = ACPI_ADD_PTR (ACPI_SUBTBL_HDR_16, Table, Suboffset); } Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_SUBTBL_HDR_16, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpErst * * PARAMETERS: Table - A ERST table * * RETURN: None * * DESCRIPTION: Format the contents of a ERST. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpErst ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_WHEA_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_ERST); /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoErst); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Table, Offset); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, sizeof (ACPI_WHEA_HEADER), AcpiDmTableInfoErst0); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable (each subtable is of fixed length) */ Offset += sizeof (ACPI_WHEA_HEADER); Subtable = ACPI_ADD_PTR (ACPI_WHEA_HEADER, Subtable, sizeof (ACPI_WHEA_HEADER)); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpFpdt * * PARAMETERS: Table - A FPDT table * * RETURN: None * * DESCRIPTION: Format the contents of a FPDT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpFpdt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_FPDT_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_FPDT); ACPI_DMTABLE_INFO *InfoTable; /* There is no main table (other than the standard ACPI header) */ /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_FPDT_HEADER, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoFpdtHdr); if (ACPI_FAILURE (Status)) { return; } switch (Subtable->Type) { case ACPI_FPDT_TYPE_BOOT: InfoTable = AcpiDmTableInfoFpdt0; break; case ACPI_FPDT_TYPE_S3PERF: InfoTable = AcpiDmTableInfoFpdt1; break; default: AcpiOsPrintf ("\n**** Unknown FPDT subtable type 0x%X\n\n", Subtable->Type); /* Attempt to continue */ if (!Subtable->Length) { AcpiOsPrintf ("Invalid zero length subtable\n"); return; } goto NextSubtable; } Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } NextSubtable: /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_FPDT_HEADER, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpGtdt * * PARAMETERS: Table - A GTDT table * * RETURN: None * * DESCRIPTION: Format the contents of a GTDT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpGtdt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_GTDT_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_GTDT); ACPI_DMTABLE_INFO *InfoTable; UINT32 SubtableLength; UINT32 GtCount; ACPI_GTDT_TIMER_ENTRY *GtxTable; /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoGtdt); if (ACPI_FAILURE (Status)) { return; } /* Rev 3 fields */ Subtable = ACPI_ADD_PTR (ACPI_GTDT_HEADER, Table, Offset); if (Table->Revision > 2) { SubtableLength = sizeof (ACPI_GTDT_EL2); Status = AcpiDmDumpTable (Length, Offset, Subtable, SubtableLength, AcpiDmTableInfoGtdtEl2); if (ACPI_FAILURE (Status)) { return; } Offset += SubtableLength; } Subtable = ACPI_ADD_PTR (ACPI_GTDT_HEADER, Table, Offset); /* Subtables */ while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoGtdtHdr); if (ACPI_FAILURE (Status)) { return; } GtCount = 0; switch (Subtable->Type) { case ACPI_GTDT_TYPE_TIMER_BLOCK: SubtableLength = sizeof (ACPI_GTDT_TIMER_BLOCK); GtCount = (ACPI_CAST_PTR (ACPI_GTDT_TIMER_BLOCK, Subtable))->TimerCount; InfoTable = AcpiDmTableInfoGtdt0; break; case ACPI_GTDT_TYPE_WATCHDOG: SubtableLength = sizeof (ACPI_GTDT_WATCHDOG); InfoTable = AcpiDmTableInfoGtdt1; break; default: /* Cannot continue on unknown type - no length */ AcpiOsPrintf ("\n**** Unknown GTDT subtable type 0x%X\n", Subtable->Type); return; } Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* Point to end of current subtable (each subtable above is of fixed length) */ Offset += SubtableLength; /* If there are any Gt Timer Blocks from above, dump them now */ if (GtCount) { GtxTable = ACPI_ADD_PTR ( ACPI_GTDT_TIMER_ENTRY, Subtable, SubtableLength); SubtableLength += GtCount * sizeof (ACPI_GTDT_TIMER_ENTRY); while (GtCount) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, GtxTable, sizeof (ACPI_GTDT_TIMER_ENTRY), AcpiDmTableInfoGtdt0a); if (ACPI_FAILURE (Status)) { return; } Offset += sizeof (ACPI_GTDT_TIMER_ENTRY); GtxTable++; GtCount--; } } /* Point to next subtable */ Subtable = ACPI_ADD_PTR (ACPI_GTDT_HEADER, Subtable, SubtableLength); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpHest * * PARAMETERS: Table - A HEST table * * RETURN: None * * DESCRIPTION: Format the contents of a HEST. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpHest ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_HEST_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_HEST); ACPI_DMTABLE_INFO *InfoTable; UINT32 SubtableLength; UINT32 BankCount; ACPI_HEST_IA_ERROR_BANK *BankTable; /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoHest); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_HEST_HEADER, Table, Offset); while (Offset < Table->Length) { BankCount = 0; switch (Subtable->Type) { case ACPI_HEST_TYPE_IA32_CHECK: InfoTable = AcpiDmTableInfoHest0; SubtableLength = sizeof (ACPI_HEST_IA_MACHINE_CHECK); BankCount = (ACPI_CAST_PTR (ACPI_HEST_IA_MACHINE_CHECK, Subtable))->NumHardwareBanks; break; case ACPI_HEST_TYPE_IA32_CORRECTED_CHECK: InfoTable = AcpiDmTableInfoHest1; SubtableLength = sizeof (ACPI_HEST_IA_CORRECTED); BankCount = (ACPI_CAST_PTR (ACPI_HEST_IA_CORRECTED, Subtable))->NumHardwareBanks; break; case ACPI_HEST_TYPE_IA32_NMI: InfoTable = AcpiDmTableInfoHest2; SubtableLength = sizeof (ACPI_HEST_IA_NMI); break; case ACPI_HEST_TYPE_AER_ROOT_PORT: InfoTable = AcpiDmTableInfoHest6; SubtableLength = sizeof (ACPI_HEST_AER_ROOT); break; case ACPI_HEST_TYPE_AER_ENDPOINT: InfoTable = AcpiDmTableInfoHest7; SubtableLength = sizeof (ACPI_HEST_AER); break; case ACPI_HEST_TYPE_AER_BRIDGE: InfoTable = AcpiDmTableInfoHest8; SubtableLength = sizeof (ACPI_HEST_AER_BRIDGE); break; case ACPI_HEST_TYPE_GENERIC_ERROR: InfoTable = AcpiDmTableInfoHest9; SubtableLength = sizeof (ACPI_HEST_GENERIC); break; case ACPI_HEST_TYPE_GENERIC_ERROR_V2: InfoTable = AcpiDmTableInfoHest10; SubtableLength = sizeof (ACPI_HEST_GENERIC_V2); break; case ACPI_HEST_TYPE_IA32_DEFERRED_CHECK: InfoTable = AcpiDmTableInfoHest11; SubtableLength = sizeof (ACPI_HEST_IA_DEFERRED_CHECK); BankCount = (ACPI_CAST_PTR (ACPI_HEST_IA_DEFERRED_CHECK, Subtable))->NumHardwareBanks; break; default: /* Cannot continue on unknown type - no length */ AcpiOsPrintf ("\n**** Unknown HEST subtable type 0x%X\n", Subtable->Type); return; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, SubtableLength, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* Point to end of current subtable (each subtable above is of fixed length) */ Offset += SubtableLength; /* If there are any (fixed-length) Error Banks from above, dump them now */ if (BankCount) { BankTable = ACPI_ADD_PTR (ACPI_HEST_IA_ERROR_BANK, Subtable, SubtableLength); SubtableLength += BankCount * sizeof (ACPI_HEST_IA_ERROR_BANK); while (BankCount) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, BankTable, sizeof (ACPI_HEST_IA_ERROR_BANK), AcpiDmTableInfoHestBank); if (ACPI_FAILURE (Status)) { return; } Offset += sizeof (ACPI_HEST_IA_ERROR_BANK); BankTable++; BankCount--; } } /* Point to next subtable */ Subtable = ACPI_ADD_PTR (ACPI_HEST_HEADER, Subtable, SubtableLength); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpHmat * * PARAMETERS: Table - A HMAT table * * RETURN: None * * DESCRIPTION: Format the contents of a HMAT. * ******************************************************************************/ void AcpiDmDumpHmat ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_HMAT_STRUCTURE *HmatStruct; ACPI_HMAT_LOCALITY *HmatLocality; ACPI_HMAT_CACHE *HmatCache; UINT32 Offset; UINT32 SubtableOffset; UINT32 Length; ACPI_DMTABLE_INFO *InfoTable; UINT32 i, j; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoHmat); if (ACPI_FAILURE (Status)) { return; } Offset = sizeof (ACPI_TABLE_HMAT); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); /* Dump HMAT structure header */ HmatStruct = ACPI_ADD_PTR (ACPI_HMAT_STRUCTURE, Table, Offset); if (HmatStruct->Length < sizeof (ACPI_HMAT_STRUCTURE)) { AcpiOsPrintf ("Invalid HMAT structure length\n"); return; } Status = AcpiDmDumpTable (Table->Length, Offset, HmatStruct, HmatStruct->Length, AcpiDmTableInfoHmatHdr); if (ACPI_FAILURE (Status)) { return; } switch (HmatStruct->Type) { case ACPI_HMAT_TYPE_ADDRESS_RANGE: InfoTable = AcpiDmTableInfoHmat0; Length = sizeof (ACPI_HMAT_PROXIMITY_DOMAIN); break; case ACPI_HMAT_TYPE_LOCALITY: InfoTable = AcpiDmTableInfoHmat1; Length = sizeof (ACPI_HMAT_LOCALITY); break; case ACPI_HMAT_TYPE_CACHE: InfoTable = AcpiDmTableInfoHmat2; Length = sizeof (ACPI_HMAT_CACHE); break; default: AcpiOsPrintf ("\n**** Unknown HMAT structure type 0x%X\n", HmatStruct->Type); /* Attempt to continue */ goto NextSubtable; } /* Dump HMAT structure body */ if (HmatStruct->Length < Length) { AcpiOsPrintf ("Invalid HMAT structure length\n"); return; } Status = AcpiDmDumpTable (Table->Length, Offset, HmatStruct, HmatStruct->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* Dump HMAT structure additional */ switch (HmatStruct->Type) { case ACPI_HMAT_TYPE_LOCALITY: HmatLocality = ACPI_CAST_PTR (ACPI_HMAT_LOCALITY, HmatStruct); SubtableOffset = sizeof (ACPI_HMAT_LOCALITY); /* Dump initiator proximity domains */ if ((UINT32)(HmatStruct->Length - SubtableOffset) < (UINT32)(HmatLocality->NumberOfInitiatorPDs * 4)) { AcpiOsPrintf ("Invalid initiator proximity domain number\n"); return; } for (i = 0; i < HmatLocality->NumberOfInitiatorPDs; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_HMAT_STRUCTURE, HmatStruct, SubtableOffset), 4, AcpiDmTableInfoHmat1a); if (ACPI_FAILURE (Status)) { return; } SubtableOffset += 4; } /* Dump target proximity domains */ if ((UINT32)(HmatStruct->Length - SubtableOffset) < (UINT32)(HmatLocality->NumberOfTargetPDs * 4)) { AcpiOsPrintf ("Invalid target proximity domain number\n"); return; } for (i = 0; i < HmatLocality->NumberOfTargetPDs; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_HMAT_STRUCTURE, HmatStruct, SubtableOffset), 4, AcpiDmTableInfoHmat1b); if (ACPI_FAILURE (Status)) { return; } SubtableOffset += 4; } /* Dump latency/bandwidth entris */ if ((UINT32)(HmatStruct->Length - SubtableOffset) < (UINT32)(HmatLocality->NumberOfInitiatorPDs * HmatLocality->NumberOfTargetPDs * 2)) { AcpiOsPrintf ("Invalid latency/bandwidth entry number\n"); return; } for (i = 0; i < HmatLocality->NumberOfInitiatorPDs; i++) { for (j = 0; j < HmatLocality->NumberOfTargetPDs; j++) { Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_HMAT_STRUCTURE, HmatStruct, SubtableOffset), 2, AcpiDmTableInfoHmat1c); if (ACPI_FAILURE(Status)) { return; } SubtableOffset += 2; } } break; case ACPI_HMAT_TYPE_CACHE: HmatCache = ACPI_CAST_PTR (ACPI_HMAT_CACHE, HmatStruct); SubtableOffset = sizeof (ACPI_HMAT_CACHE); /* Dump SMBIOS handles */ if ((UINT32)(HmatStruct->Length - SubtableOffset) < (UINT32)(HmatCache->NumberOfSMBIOSHandles * 2)) { AcpiOsPrintf ("Invalid SMBIOS handle number\n"); return; } for (i = 0; i < HmatCache->NumberOfSMBIOSHandles; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_HMAT_STRUCTURE, HmatStruct, SubtableOffset), 2, AcpiDmTableInfoHmat2a); if (ACPI_FAILURE (Status)) { return; } SubtableOffset += 2; } break; default: break; } NextSubtable: /* Point to next HMAT structure subtable */ Offset += (HmatStruct->Length); } } acpica-unix-20250404/source/common/getopt.c0000775000175000017500000001732314773714131020004 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: getopt * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * ACPICA getopt() implementation * * Option strings: * "f" - Option has no arguments * "f:" - Option requires an argument * "f+" - Option has an optional argument * "f^" - Option has optional single-char sub-options * "f|" - Option has required single-char sub-options */ #include "acpi.h" #include "accommon.h" #include "acapps.h" #define ACPI_OPTION_ERROR(msg, badchar) \ if (AcpiGbl_Opterr) {fprintf (stderr, "%s%c\n", msg, badchar);} int AcpiGbl_Opterr = 1; int AcpiGbl_Optind = 1; int AcpiGbl_SubOptChar = 0; char *AcpiGbl_Optarg; static int CurrentCharPtr = 1; /******************************************************************************* * * FUNCTION: AcpiGetoptArgument * * PARAMETERS: argc, argv - from main * * RETURN: 0 if an argument was found, -1 otherwise. Sets AcpiGbl_Optarg * to point to the next argument. * * DESCRIPTION: Get the next argument. Used to obtain arguments for the * two-character options after the original call to AcpiGetopt. * Note: Either the argument starts at the next character after * the option, or it is pointed to by the next argv entry. * (After call to AcpiGetopt, we need to backup to the previous * argv entry). * ******************************************************************************/ int AcpiGetoptArgument ( int argc, char **argv) { AcpiGbl_Optind--; CurrentCharPtr++; if (argv[AcpiGbl_Optind][(int) (CurrentCharPtr+1)] != '\0') { AcpiGbl_Optarg = &argv[AcpiGbl_Optind++][(int) (CurrentCharPtr+1)]; } else if (++AcpiGbl_Optind >= argc) { ACPI_OPTION_ERROR ("\nOption requires an argument", 0); CurrentCharPtr = 1; return (-1); } else { AcpiGbl_Optarg = argv[AcpiGbl_Optind++]; } CurrentCharPtr = 1; return (0); } /******************************************************************************* * * FUNCTION: AcpiGetopt * * PARAMETERS: argc, argv - from main * opts - options info list * * RETURN: Option character or ACPI_OPT_END * * DESCRIPTION: Get the next option * ******************************************************************************/ int AcpiGetopt( int argc, char **argv, char *opts) { int CurrentChar; char *OptsPtr; if (CurrentCharPtr == 1) { if (AcpiGbl_Optind >= argc || argv[AcpiGbl_Optind][0] != '-' || argv[AcpiGbl_Optind][1] == '\0') { return (ACPI_OPT_END); } else if (strcmp (argv[AcpiGbl_Optind], "--") == 0) { AcpiGbl_Optind++; return (ACPI_OPT_END); } } /* Get the option */ CurrentChar = argv[AcpiGbl_Optind][CurrentCharPtr]; /* Make sure that the option is legal */ if (CurrentChar == ':' || (OptsPtr = strchr (opts, CurrentChar)) == NULL) { ACPI_OPTION_ERROR ("Illegal option: -", CurrentChar); if (argv[AcpiGbl_Optind][++CurrentCharPtr] == '\0') { AcpiGbl_Optind++; CurrentCharPtr = 1; } return ('?'); } /* Option requires an argument? */ if (*++OptsPtr == ':') { if (argv[AcpiGbl_Optind][(int) (CurrentCharPtr+1)] != '\0') { AcpiGbl_Optarg = &argv[AcpiGbl_Optind++][(int) (CurrentCharPtr+1)]; } else if (++AcpiGbl_Optind >= argc) { ACPI_OPTION_ERROR ( "Option requires an argument: -", CurrentChar); CurrentCharPtr = 1; return ('?'); } else { AcpiGbl_Optarg = argv[AcpiGbl_Optind++]; } CurrentCharPtr = 1; } /* Option has an optional argument? */ else if (*OptsPtr == '+') { if (argv[AcpiGbl_Optind][(int) (CurrentCharPtr+1)] != '\0') { AcpiGbl_Optarg = &argv[AcpiGbl_Optind++][(int) (CurrentCharPtr+1)]; } else if (++AcpiGbl_Optind >= argc) { AcpiGbl_Optarg = NULL; } else { AcpiGbl_Optarg = argv[AcpiGbl_Optind++]; } CurrentCharPtr = 1; } /* Option has optional single-char arguments? */ else if (*OptsPtr == '^') { if (argv[AcpiGbl_Optind][(int) (CurrentCharPtr+1)] != '\0') { AcpiGbl_Optarg = &argv[AcpiGbl_Optind][(int) (CurrentCharPtr+1)]; } else { AcpiGbl_Optarg = "^"; } AcpiGbl_SubOptChar = AcpiGbl_Optarg[0]; AcpiGbl_Optind++; CurrentCharPtr = 1; } /* Option has a required single-char argument? */ else if (*OptsPtr == '|') { if (argv[AcpiGbl_Optind][(int) (CurrentCharPtr+1)] != '\0') { AcpiGbl_Optarg = &argv[AcpiGbl_Optind][(int) (CurrentCharPtr+1)]; } else { ACPI_OPTION_ERROR ( "Option requires a single-character suboption: -", CurrentChar); CurrentCharPtr = 1; return ('?'); } AcpiGbl_SubOptChar = AcpiGbl_Optarg[0]; AcpiGbl_Optind++; CurrentCharPtr = 1; } /* Option with no arguments */ else { if (argv[AcpiGbl_Optind][++CurrentCharPtr] == '\0') { CurrentCharPtr = 1; AcpiGbl_Optind++; } AcpiGbl_Optarg = NULL; } return (CurrentChar); } acpica-unix-20250404/source/common/dmtbdump2.c0000775000175000017500000026071114773714131020401 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtbdump2 - Dump ACPI data tables that contain no AML code * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "actables.h" #include "aslcompiler.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmtbdump2") /******************************************************************************* * * FUNCTION: AcpiDmDumpIort * * PARAMETERS: Table - A IORT table * * RETURN: None * * DESCRIPTION: Format the contents of a IORT * ******************************************************************************/ void AcpiDmDumpIort ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_TABLE_IORT *Iort; ACPI_IORT_NODE *IortNode; ACPI_IORT_ITS_GROUP *IortItsGroup = NULL; ACPI_IORT_SMMU *IortSmmu = NULL; ACPI_IORT_RMR *IortRmr = NULL; UINT32 Offset; UINT32 NodeOffset; UINT32 Length; ACPI_DMTABLE_INFO *InfoTable; char *String; UINT32 i; UINT32 MappingByteLength; UINT8 Revision; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoIort); if (ACPI_FAILURE (Status)) { return; } Revision = Table->Revision; /* IORT Revisions E, E.a and E.c have known issues and are not supported */ if (Revision == 1 || Revision == 2 || Revision == 4) { AcpiOsPrintf ("\n**** Unsupported IORT revision 0x%X\n", Revision); return; } Iort = ACPI_CAST_PTR (ACPI_TABLE_IORT, Table); Offset = sizeof (ACPI_TABLE_IORT); /* Dump the OptionalPadding (optional) */ if (Iort->NodeOffset > Offset) { Status = AcpiDmDumpTable (Table->Length, Offset, Table, Iort->NodeOffset - Offset, AcpiDmTableInfoIortPad); if (ACPI_FAILURE (Status)) { return; } } Offset = Iort->NodeOffset; while (Offset < Table->Length) { /* Common subtable header */ IortNode = ACPI_ADD_PTR (ACPI_IORT_NODE, Table, Offset); AcpiOsPrintf ("\n"); Length = ACPI_OFFSET (ACPI_IORT_NODE, NodeData); if (Revision == 0) { Status = AcpiDmDumpTable (Table->Length, Offset, IortNode, Length, AcpiDmTableInfoIortHdr); } else if (Revision >= 3) { Status = AcpiDmDumpTable (Table->Length, Offset, IortNode, Length, AcpiDmTableInfoIortHdr3); } if (ACPI_FAILURE (Status)) { return; } NodeOffset = Length; switch (IortNode->Type) { case ACPI_IORT_NODE_ITS_GROUP: InfoTable = AcpiDmTableInfoIort0; Length = ACPI_OFFSET (ACPI_IORT_ITS_GROUP, Identifiers); IortItsGroup = ACPI_ADD_PTR (ACPI_IORT_ITS_GROUP, IortNode, NodeOffset); break; case ACPI_IORT_NODE_NAMED_COMPONENT: InfoTable = AcpiDmTableInfoIort1; Length = ACPI_OFFSET (ACPI_IORT_NAMED_COMPONENT, DeviceName); String = ACPI_ADD_PTR (char, IortNode, NodeOffset + Length); Length += strlen (String) + 1; break; case ACPI_IORT_NODE_PCI_ROOT_COMPLEX: InfoTable = AcpiDmTableInfoIort2; Length = IortNode->Length - NodeOffset; break; case ACPI_IORT_NODE_SMMU: InfoTable = AcpiDmTableInfoIort3; Length = ACPI_OFFSET (ACPI_IORT_SMMU, Interrupts); IortSmmu = ACPI_ADD_PTR (ACPI_IORT_SMMU, IortNode, NodeOffset); break; case ACPI_IORT_NODE_SMMU_V3: InfoTable = AcpiDmTableInfoIort4; Length = IortNode->Length - NodeOffset; break; case ACPI_IORT_NODE_PMCG: InfoTable = AcpiDmTableInfoIort5; Length = IortNode->Length - NodeOffset; break; case ACPI_IORT_NODE_RMR: InfoTable = AcpiDmTableInfoIort6; Length = IortNode->Length - NodeOffset; IortRmr = ACPI_ADD_PTR (ACPI_IORT_RMR, IortNode, NodeOffset); break; default: AcpiOsPrintf ("\n**** Unknown IORT node type 0x%X\n", IortNode->Type); /* Attempt to continue */ if (!IortNode->Length) { AcpiOsPrintf ("Invalid zero length IORT node\n"); return; } goto NextSubtable; } /* Dump the node subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } NodeOffset += Length; /* Dump the node specific data */ switch (IortNode->Type) { case ACPI_IORT_NODE_ITS_GROUP: /* Validate IortItsGroup to avoid compiler warnings */ if (IortItsGroup) { for (i = 0; i < IortItsGroup->ItsCount; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), 4, AcpiDmTableInfoIort0a); if (ACPI_FAILURE (Status)) { return; } NodeOffset += 4; } } break; case ACPI_IORT_NODE_NAMED_COMPONENT: /* Dump the Padding (optional) */ if (IortNode->Length > NodeOffset) { MappingByteLength = IortNode->MappingCount * sizeof (ACPI_IORT_ID_MAPPING); Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, Table, IortNode->Length - NodeOffset - MappingByteLength, AcpiDmTableInfoIort1a); if (ACPI_FAILURE (Status)) { return; } } break; case ACPI_IORT_NODE_SMMU: AcpiOsPrintf ("\n"); /* Validate IortSmmu to avoid compiler warnings */ if (IortSmmu) { Length = 2 * sizeof (UINT64); NodeOffset = IortSmmu->GlobalInterruptOffset; Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), Length, AcpiDmTableInfoIort3a); if (ACPI_FAILURE (Status)) { return; } NodeOffset = IortSmmu->ContextInterruptOffset; for (i = 0; i < IortSmmu->ContextInterruptCount; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), 8, AcpiDmTableInfoIort3b); if (ACPI_FAILURE (Status)) { return; } NodeOffset += 8; } NodeOffset = IortSmmu->PmuInterruptOffset; for (i = 0; i < IortSmmu->PmuInterruptCount; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), 8, AcpiDmTableInfoIort3c); if (ACPI_FAILURE (Status)) { return; } NodeOffset += 8; } } break; case ACPI_IORT_NODE_RMR: /* Validate IortRmr to avoid compiler warnings */ if (IortRmr) { NodeOffset = IortRmr->RmrOffset; Length = sizeof (ACPI_IORT_RMR_DESC); for (i = 0; i < IortRmr->RmrCount; i++) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), Length, AcpiDmTableInfoIort6a); if (ACPI_FAILURE (Status)) { return; } NodeOffset += Length; } } break; default: break; } /* Dump the ID mappings */ NodeOffset = IortNode->MappingOffset; for (i = 0; i < IortNode->MappingCount; i++) { AcpiOsPrintf ("\n"); Length = sizeof (ACPI_IORT_ID_MAPPING); Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ACPI_ADD_PTR (ACPI_IORT_NODE, IortNode, NodeOffset), Length, AcpiDmTableInfoIortMap); if (ACPI_FAILURE (Status)) { return; } NodeOffset += Length; } NextSubtable: /* Point to next node subtable */ Offset += IortNode->Length; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpIvrs * * PARAMETERS: Table - A IVRS table * * RETURN: None * * DESCRIPTION: Format the contents of a IVRS. Notes: * The IVRS is essentially a flat table, with the following * structure: *
*
* * * ... * * * * ... * ******************************************************************************/ void AcpiDmDumpIvrs ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_IVRS); UINT32 EntryOffset; UINT32 EntryLength; UINT32 EntryType; ACPI_IVRS_DEVICE_HID *HidSubtable; ACPI_IVRS_DE_HEADER *DeviceEntry; ACPI_IVRS_HEADER *Subtable; ACPI_DMTABLE_INFO *InfoTable; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoIvrs); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_IVRS_HEADER, Table, Offset); while (Offset < Table->Length) { switch (Subtable->Type) { /* Type 10h, IVHD (I/O Virtualization Hardware Definition) */ case ACPI_IVRS_TYPE_HARDWARE1: AcpiOsPrintf ("\n"); InfoTable = AcpiDmTableInfoIvrsHware1; break; /* Types 11h, 40h, IVHD (I/O Virtualization Hardware Definition) */ case ACPI_IVRS_TYPE_HARDWARE2: case ACPI_IVRS_TYPE_HARDWARE3: AcpiOsPrintf ("\n"); InfoTable = AcpiDmTableInfoIvrsHware23; break; /* Types 20h-22h, IVMD (I/O Virtualization Memory Definition Block) */ case ACPI_IVRS_TYPE_MEMORY1: case ACPI_IVRS_TYPE_MEMORY2: case ACPI_IVRS_TYPE_MEMORY3: AcpiOsPrintf ("\n"); InfoTable = AcpiDmTableInfoIvrsMemory; break; default: AcpiOsPrintf ("\n**** Unknown IVRS subtable type 0x%X\n", Subtable->Type); /* Attempt to continue */ if (!Subtable->Length) { AcpiOsPrintf ("Invalid zero length subtable\n"); return; } goto NextSubtable; } /* Dump the subtable */ Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* The hardware subtables (IVHD) can contain multiple device entries */ if (Subtable->Type == ACPI_IVRS_TYPE_HARDWARE1 || Subtable->Type == ACPI_IVRS_TYPE_HARDWARE2 || Subtable->Type == ACPI_IVRS_TYPE_HARDWARE3) { if (Subtable->Type == ACPI_IVRS_TYPE_HARDWARE1) { EntryOffset = Offset + sizeof (ACPI_IVRS_HARDWARE1); DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, Subtable, sizeof (ACPI_IVRS_HARDWARE1)); } else { /* ACPI_IVRS_TYPE_HARDWARE2, HARDWARE3 subtable types */ EntryOffset = Offset + sizeof (ACPI_IVRS_HARDWARE2); DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, Subtable, sizeof (ACPI_IVRS_HARDWARE2)); } /* Process all of the Device Entries */ while (EntryOffset < (Offset + Subtable->Length)) { AcpiOsPrintf ("\n"); /* * Upper 2 bits of Type encode the length of the device entry * * 00 = 4 byte * 01 = 8 byte * 1x = variable length */ EntryType = DeviceEntry->Type; EntryLength = EntryType >> 6 == 1 ? 8 : 4; switch (EntryType) { /* 4-byte device entries */ case ACPI_IVRS_TYPE_PAD4: case ACPI_IVRS_TYPE_ALL: case ACPI_IVRS_TYPE_SELECT: case ACPI_IVRS_TYPE_START: case ACPI_IVRS_TYPE_END: InfoTable = AcpiDmTableInfoIvrs4; break; /* 8-byte entries, type A */ case ACPI_IVRS_TYPE_ALIAS_SELECT: case ACPI_IVRS_TYPE_ALIAS_START: InfoTable = AcpiDmTableInfoIvrs8a; break; /* 8-byte entries, type B */ case ACPI_IVRS_TYPE_PAD8: case ACPI_IVRS_TYPE_EXT_SELECT: case ACPI_IVRS_TYPE_EXT_START: InfoTable = AcpiDmTableInfoIvrs8b; break; /* 8-byte entries, type C */ case ACPI_IVRS_TYPE_SPECIAL: InfoTable = AcpiDmTableInfoIvrs8c; break; /* Variable-length entries */ case ACPI_IVRS_TYPE_HID: EntryLength = 4; InfoTable = AcpiDmTableInfoIvrsHid; break; default: InfoTable = AcpiDmTableInfoIvrs4; AcpiOsPrintf ( "\n**** Unknown IVRS device entry type/length: " "0x%.2X/0x%X at offset 0x%.4X: (header below)\n", EntryType, EntryLength, EntryOffset); break; } /* Dump the Device Entry */ Status = AcpiDmDumpTable (Table->Length, EntryOffset, DeviceEntry, EntryLength, InfoTable); if (ACPI_FAILURE (Status)) { return; } HidSubtable = ACPI_CAST_PTR (ACPI_IVRS_DEVICE_HID, DeviceEntry); EntryOffset += EntryLength; DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, HidSubtable, EntryLength); if (EntryType == ACPI_IVRS_TYPE_HID) { /* * Determine if the HID is an integer or a string. * An integer is defined to be 32 bits, with the upper 32 bits * set to zero. (from the ACPI Spec): "The HID can be a 32-bit * integer or a character string. If an integer, the lower * 4 bytes of the field contain the integer and the upper * 4 bytes are padded with 0". */ if (UtIsIdInteger ((UINT8 *) &HidSubtable->AcpiHid)) { Status = AcpiDmDumpTable (Table->Length, EntryOffset, &HidSubtable->AcpiHid, 8, AcpiDmTableInfoIvrsHidInteger); } else { Status = AcpiDmDumpTable (Table->Length, EntryOffset, &HidSubtable->AcpiHid, 8, AcpiDmTableInfoIvrsHidString); } if (ACPI_FAILURE (Status)) { return; } EntryOffset += 8; /* * Determine if the CID is an integer or a string. The format * of the CID is the same as the HID above. From ACPI Spec: * "If present, CID must be a single Compatible Device ID * following the same format as the HID field." */ if (UtIsIdInteger ((UINT8 *) &HidSubtable->AcpiCid)) { Status = AcpiDmDumpTable (Table->Length, EntryOffset, &HidSubtable->AcpiCid, 8, AcpiDmTableInfoIvrsCidInteger); } else { Status = AcpiDmDumpTable (Table->Length, EntryOffset, &HidSubtable->AcpiCid, 8, AcpiDmTableInfoIvrsCidString); } if (ACPI_FAILURE (Status)) { return; } EntryOffset += 8; EntryLength = HidSubtable->UidLength; if (EntryLength > ACPI_IVRS_UID_NOT_PRESENT) { /* Dump the UID based upon the UidType field (String or Integer) */ if (HidSubtable->UidType == ACPI_IVRS_UID_IS_STRING) { Status = AcpiDmDumpTable (Table->Length, EntryOffset, &HidSubtable->UidType, EntryLength, AcpiDmTableInfoIvrsUidString); if (ACPI_FAILURE (Status)) { return; } } else /* ACPI_IVRS_UID_IS_INTEGER */ { Status = AcpiDmDumpTable (Table->Length, EntryOffset, &HidSubtable->UidType, EntryLength, AcpiDmTableInfoIvrsUidInteger); if (ACPI_FAILURE (Status)) { return; } } } EntryOffset += EntryLength+2; DeviceEntry = ACPI_ADD_PTR (ACPI_IVRS_DE_HEADER, Table, EntryOffset); } } } NextSubtable: /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_IVRS_HEADER, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpLpit * * PARAMETERS: Table - A LPIT table * * RETURN: None * * DESCRIPTION: Format the contents of a LPIT. This table type consists * of an open-ended number of subtables. Note: There are no * entries in the main table. An LPIT consists of the table * header and then subtables only. * ******************************************************************************/ void AcpiDmDumpLpit ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_LPIT_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_LPIT); ACPI_DMTABLE_INFO *InfoTable; UINT32 SubtableLength; /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_LPIT_HEADER, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ Status = AcpiDmDumpTable (Length, Offset, Subtable, sizeof (ACPI_LPIT_HEADER), AcpiDmTableInfoLpitHdr); if (ACPI_FAILURE (Status)) { return; } switch (Subtable->Type) { case ACPI_LPIT_TYPE_NATIVE_CSTATE: InfoTable = AcpiDmTableInfoLpit0; SubtableLength = sizeof (ACPI_LPIT_NATIVE); break; default: /* Cannot continue on unknown type - no length */ AcpiOsPrintf ("\n**** Unknown LPIT subtable type 0x%X\n", Subtable->Type); return; } Status = AcpiDmDumpTable (Length, Offset, Subtable, SubtableLength, InfoTable); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); /* Point to next subtable */ Offset += SubtableLength; Subtable = ACPI_ADD_PTR (ACPI_LPIT_HEADER, Subtable, SubtableLength); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpMadt * * PARAMETERS: Table - A MADT table * * RETURN: None * * DESCRIPTION: Format the contents of a MADT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpMadt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_SUBTABLE_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_MADT); ACPI_DMTABLE_INFO *InfoTable; UINT8 Revision; /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMadt); if (ACPI_FAILURE (Status)) { return; } Revision = Table->Revision; /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); DbgPrint (ASL_PARSE_OUTPUT, "//0B) Offset %X, from table start: 0x%8.8X%8.8X\n", Offset, ACPI_FORMAT_UINT64 (ACPI_CAST_PTR (char, Subtable) - ACPI_CAST_PTR (char, Table))); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoMadtHdr); if (ACPI_FAILURE (Status)) { return; } DbgPrint (ASL_PARSE_OUTPUT, "subtableType: %X\n", Subtable->Type); switch (Subtable->Type) { case ACPI_MADT_TYPE_LOCAL_APIC: InfoTable = AcpiDmTableInfoMadt0; break; case ACPI_MADT_TYPE_IO_APIC: InfoTable = AcpiDmTableInfoMadt1; break; case ACPI_MADT_TYPE_INTERRUPT_OVERRIDE: InfoTable = AcpiDmTableInfoMadt2; break; case ACPI_MADT_TYPE_NMI_SOURCE: InfoTable = AcpiDmTableInfoMadt3; break; case ACPI_MADT_TYPE_LOCAL_APIC_NMI: InfoTable = AcpiDmTableInfoMadt4; break; case ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE: InfoTable = AcpiDmTableInfoMadt5; break; case ACPI_MADT_TYPE_IO_SAPIC: InfoTable = AcpiDmTableInfoMadt6; break; case ACPI_MADT_TYPE_LOCAL_SAPIC: InfoTable = AcpiDmTableInfoMadt7; break; case ACPI_MADT_TYPE_INTERRUPT_SOURCE: InfoTable = AcpiDmTableInfoMadt8; break; case ACPI_MADT_TYPE_LOCAL_X2APIC: InfoTable = AcpiDmTableInfoMadt9; break; case ACPI_MADT_TYPE_LOCAL_X2APIC_NMI: InfoTable = AcpiDmTableInfoMadt10; break; case ACPI_MADT_TYPE_GENERIC_INTERRUPT: if (Revision > 6) InfoTable = AcpiDmTableInfoMadt11b; else if (Revision == 6) InfoTable = AcpiDmTableInfoMadt11a; else InfoTable = AcpiDmTableInfoMadt11; break; case ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR: InfoTable = AcpiDmTableInfoMadt12; break; case ACPI_MADT_TYPE_GENERIC_MSI_FRAME: InfoTable = AcpiDmTableInfoMadt13; break; case ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR: InfoTable = Revision > 6 ? AcpiDmTableInfoMadt14a : AcpiDmTableInfoMadt14; break; case ACPI_MADT_TYPE_GENERIC_TRANSLATOR: InfoTable = Revision > 6 ? AcpiDmTableInfoMadt15a : AcpiDmTableInfoMadt15; break; case ACPI_MADT_TYPE_MULTIPROC_WAKEUP: InfoTable = AcpiDmTableInfoMadt16; break; case ACPI_MADT_TYPE_CORE_PIC: InfoTable = AcpiDmTableInfoMadt17; break; case ACPI_MADT_TYPE_LIO_PIC: InfoTable = AcpiDmTableInfoMadt18; break; case ACPI_MADT_TYPE_HT_PIC: InfoTable = AcpiDmTableInfoMadt19; break; case ACPI_MADT_TYPE_EIO_PIC: InfoTable = AcpiDmTableInfoMadt20; break; case ACPI_MADT_TYPE_MSI_PIC: InfoTable = AcpiDmTableInfoMadt21; break; case ACPI_MADT_TYPE_BIO_PIC: InfoTable = AcpiDmTableInfoMadt22; break; case ACPI_MADT_TYPE_LPC_PIC: InfoTable = AcpiDmTableInfoMadt23; break; case ACPI_MADT_TYPE_RINTC: InfoTable = AcpiDmTableInfoMadt24; break; case ACPI_MADT_TYPE_IMSIC: InfoTable = AcpiDmTableInfoMadt25; break; case ACPI_MADT_TYPE_APLIC: InfoTable = AcpiDmTableInfoMadt26; break; case ACPI_MADT_TYPE_PLIC: InfoTable = AcpiDmTableInfoMadt27; break; default: if ((Subtable->Type >= ACPI_MADT_TYPE_RESERVED) && (Subtable->Type < ACPI_MADT_TYPE_OEM_RESERVED)) { AcpiOsPrintf ("\n**** Unknown MADT subtable type 0x%X\n\n", Subtable->Type); goto NextSubtable; } else if (Subtable->Type >= ACPI_MADT_TYPE_OEM_RESERVED) { DbgPrint (ASL_PARSE_OUTPUT, "//[Found an OEM structure, type = %0x]\n", Subtable->Type); Offset += sizeof (ACPI_SUBTABLE_HEADER); DbgPrint (ASL_PARSE_OUTPUT, "//[0) Subtable->Length = %X, Subtable = %p, Offset = %X]\n", Subtable->Length, Subtable, Offset); DbgPrint (ASL_PARSE_OUTPUT, "//[0A) Offset from table start: 0x%8.8X%8.8X]\n", ACPI_FORMAT_UINT64 (ACPI_CAST_PTR (char, Subtable) - ACPI_CAST_PTR (char, Table))); } /* Attempt to continue */ if (!Subtable->Length) { AcpiOsPrintf ("Invalid zero length subtable\n"); return; } /* Dump the OEM data */ Status = AcpiDmDumpTable (Length, Offset, ACPI_CAST_PTR (UINT8, Table) + Offset, Subtable->Length - sizeof (ACPI_SUBTABLE_HEADER), AcpiDmTableInfoMadt128); if (ACPI_FAILURE (Status)) { return; } DbgPrint (ASL_PARSE_OUTPUT, "//[1) Subtable->Length = %X, Offset = %X]\n", Subtable->Length, Offset); Offset -= sizeof (ACPI_SUBTABLE_HEADER); goto NextSubtable; } DbgPrint (ASL_PARSE_OUTPUT, "//[2) Subtable->Length = %X, Offset = %X]\n", Subtable->Length, Offset); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } NextSubtable: /* Point to next subtable */ DbgPrint (ASL_PARSE_OUTPUT, "//[3) Subtable->Length = %X, Offset = %X]\n", Subtable->Length, Offset); DbgPrint (ASL_PARSE_OUTPUT, "//[4) Offset from table start: 0x%8.8X%8.8X (%p) %p]\n", ACPI_FORMAT_UINT64 (ACPI_CAST_PTR (UINT8, Subtable) - ACPI_CAST_PTR (UINT8, Table)), Subtable, Table); if (Offset > Table->Length) { return; } Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Subtable, Subtable->Length); Offset = ACPI_CAST_PTR (char, Subtable) - ACPI_CAST_PTR (char, Table); if (Offset >= Table->Length) { return; } DbgPrint (ASL_PARSE_OUTPUT, "//[5) Next Subtable %p, length %X]\n", Subtable, Subtable->Length); DbgPrint (ASL_PARSE_OUTPUT, "//[5B) Offset from table start: 0x%8.8X%8.8X (%p)]\n", ACPI_FORMAT_UINT64 (ACPI_CAST_PTR (char, Subtable) - ACPI_CAST_PTR (char, Table)), Subtable); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpMcfg * * PARAMETERS: Table - A MCFG Table * * RETURN: None * * DESCRIPTION: Format the contents of a MCFG table * ******************************************************************************/ void AcpiDmDumpMcfg ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MCFG); ACPI_MCFG_ALLOCATION *Subtable; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMcfg); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MCFG_ALLOCATION, Table, Offset); while (Offset < Table->Length) { if (Offset + sizeof (ACPI_MCFG_ALLOCATION) > Table->Length) { AcpiOsPrintf ("Warning: there are %u invalid trailing bytes\n", (UINT32) sizeof (ACPI_MCFG_ALLOCATION) - (Offset - Table->Length)); return; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, sizeof (ACPI_MCFG_ALLOCATION), AcpiDmTableInfoMcfg0); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable (each subtable is of fixed length) */ Offset += sizeof (ACPI_MCFG_ALLOCATION); Subtable = ACPI_ADD_PTR (ACPI_MCFG_ALLOCATION, Subtable, sizeof (ACPI_MCFG_ALLOCATION)); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpMpam * * PARAMETERS: Table - A MPAM table * * RETURN: None * * DESCRIPTION: Format the contents of a MPAM table * ******************************************************************************/ void AcpiDmDumpMpam ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_MPAM_MSC_NODE *MpamMscNode; ACPI_MPAM_RESOURCE_NODE *MpamResourceNode; ACPI_MPAM_FUNC_DEPS *MpamFunctionalDependency; ACPI_DMTABLE_INFO *InfoTable; UINT32 Offset = sizeof(ACPI_TABLE_HEADER); UINT32 TempOffset; UINT32 MpamResourceNodeLength = 0; while (Offset < Table->Length) { MpamMscNode = ACPI_ADD_PTR (ACPI_MPAM_MSC_NODE, Table, Offset); /* Subtable: MSC */ Status = AcpiDmDumpTable (Table->Length, Offset, MpamMscNode, MpamMscNode->Length, AcpiDmTableInfoMpam0); if (ACPI_FAILURE (Status)) { return; } /* Offset the start of the array of resources */ Offset += sizeof(ACPI_MPAM_MSC_NODE); /* Subtable: MSC RIS(es) */ for (UINT32 ResourceIdx = 0; ResourceIdx < MpamMscNode->NumResourceNodes; ResourceIdx++) { AcpiOsPrintf ("\n"); MpamResourceNode = ACPI_ADD_PTR (ACPI_MPAM_RESOURCE_NODE, Table, Offset); MpamResourceNodeLength = sizeof(ACPI_MPAM_RESOURCE_NODE) + MpamResourceNode->NumFunctionalDeps * sizeof(ACPI_MPAM_FUNC_DEPS); TempOffset = Offset; Offset += MpamResourceNodeLength; /* Subtable: MSC RIS */ Status = AcpiDmDumpTable (Table->Length, TempOffset, MpamResourceNode, sizeof(ACPI_MPAM_RESOURCE_NODE), AcpiDmTableInfoMpam1); if (ACPI_FAILURE (Status)) { return; } switch (MpamResourceNode->LocatorType) { case ACPI_MPAM_LOCATION_TYPE_PROCESSOR_CACHE: InfoTable = AcpiDmTableInfoMpam1A; break; case ACPI_MPAM_LOCATION_TYPE_MEMORY: InfoTable = AcpiDmTableInfoMpam1B; break; case ACPI_MPAM_LOCATION_TYPE_SMMU: InfoTable = AcpiDmTableInfoMpam1C; break; case ACPI_MPAM_LOCATION_TYPE_MEMORY_CACHE: InfoTable = AcpiDmTableInfoMpam1D; break; case ACPI_MPAM_LOCATION_TYPE_ACPI_DEVICE: InfoTable = AcpiDmTableInfoMpam1E; break; case ACPI_MPAM_LOCATION_TYPE_INTERCONNECT: InfoTable = AcpiDmTableInfoMpam1F; break; case ACPI_MPAM_LOCATION_TYPE_UNKNOWN: InfoTable = AcpiDmTableInfoMpam1G; default: AcpiOsPrintf ("\n**** Unknown MPAM locator type 0x%X\n", MpamResourceNode->LocatorType); return; } /* Subtable: MSC Resource Locator(s) */ TempOffset += ACPI_OFFSET(ACPI_MPAM_RESOURCE_NODE, Locator); Status = AcpiDmDumpTable (Table->Length, TempOffset, &MpamResourceNode->Locator, sizeof(ACPI_MPAM_RESOURCE_LOCATOR), InfoTable); if (ACPI_FAILURE (Status)) { return; } /* Get the number of functional dependencies of an RIS */ TempOffset += sizeof(ACPI_MPAM_RESOURCE_LOCATOR); Status = AcpiDmDumpTable (Table->Length, TempOffset, &MpamResourceNode->NumFunctionalDeps, sizeof(UINT32), AcpiDmTableInfoMpam1Deps); if (ACPI_FAILURE (Status)) { return; } TempOffset += sizeof(UINT32); MpamFunctionalDependency = ACPI_ADD_PTR (ACPI_MPAM_FUNC_DEPS, MpamResourceNode, sizeof(ACPI_MPAM_RESOURCE_NODE)); /* Subtable: MSC functional dependencies */ for (UINT32 funcDep = 0; funcDep < MpamResourceNode->NumFunctionalDeps; funcDep++) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (sizeof(ACPI_MPAM_FUNC_DEPS), 0, &MpamResourceNode->NumFunctionalDeps, 0, AcpiDmTableInfoMpam2); Status = AcpiDmDumpTable (Table->Length, TempOffset, MpamFunctionalDependency, sizeof(ACPI_MPAM_FUNC_DEPS), AcpiDmTableInfoMpam2); if (ACPI_FAILURE (Status)) { return; } TempOffset += sizeof(ACPI_MPAM_FUNC_DEPS); MpamFunctionalDependency++; } AcpiOsPrintf ("\n\n"); } } return; } /******************************************************************************* * * FUNCTION: AcpiDmDumpMpst * * PARAMETERS: Table - A MPST Table * * RETURN: None * * DESCRIPTION: Format the contents of a MPST table * ******************************************************************************/ void AcpiDmDumpMpst ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MPST); ACPI_MPST_POWER_NODE *Subtable0; ACPI_MPST_POWER_STATE *Subtable0A; ACPI_MPST_COMPONENT *Subtable0B; ACPI_MPST_DATA_HDR *Subtable1; ACPI_MPST_POWER_DATA *Subtable2; UINT16 SubtableCount; UINT32 PowerStateCount; UINT32 ComponentCount; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMpst); if (ACPI_FAILURE (Status)) { return; } /* Subtable: Memory Power Node(s) */ SubtableCount = (ACPI_CAST_PTR (ACPI_TABLE_MPST, Table))->PowerNodeCount; Subtable0 = ACPI_ADD_PTR (ACPI_MPST_POWER_NODE, Table, Offset); while ((Offset < Table->Length) && SubtableCount) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable0, sizeof (ACPI_MPST_POWER_NODE), AcpiDmTableInfoMpst0); if (ACPI_FAILURE (Status)) { return; } /* Extract the sub-subtable counts */ PowerStateCount = Subtable0->NumPowerStates; ComponentCount = Subtable0->NumPhysicalComponents; Offset += sizeof (ACPI_MPST_POWER_NODE); /* Sub-subtables - Memory Power State Structure(s) */ Subtable0A = ACPI_ADD_PTR (ACPI_MPST_POWER_STATE, Subtable0, sizeof (ACPI_MPST_POWER_NODE)); while (PowerStateCount) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable0A, sizeof (ACPI_MPST_POWER_STATE), AcpiDmTableInfoMpst0A); if (ACPI_FAILURE (Status)) { return; } Subtable0A++; PowerStateCount--; Offset += sizeof (ACPI_MPST_POWER_STATE); } /* Sub-subtables - Physical Component ID Structure(s) */ Subtable0B = ACPI_CAST_PTR (ACPI_MPST_COMPONENT, Subtable0A); if (ComponentCount) { AcpiOsPrintf ("\n"); } while (ComponentCount) { Status = AcpiDmDumpTable (Table->Length, Offset, Subtable0B, sizeof (ACPI_MPST_COMPONENT), AcpiDmTableInfoMpst0B); if (ACPI_FAILURE (Status)) { return; } Subtable0B++; ComponentCount--; Offset += sizeof (ACPI_MPST_COMPONENT); } /* Point to next Memory Power Node subtable */ SubtableCount--; Subtable0 = ACPI_ADD_PTR (ACPI_MPST_POWER_NODE, Subtable0, sizeof (ACPI_MPST_POWER_NODE) + (sizeof (ACPI_MPST_POWER_STATE) * Subtable0->NumPowerStates) + (sizeof (ACPI_MPST_COMPONENT) * Subtable0->NumPhysicalComponents)); } /* Subtable: Count of Memory Power State Characteristic structures */ AcpiOsPrintf ("\n"); Subtable1 = ACPI_CAST_PTR (ACPI_MPST_DATA_HDR, Subtable0); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable1, sizeof (ACPI_MPST_DATA_HDR), AcpiDmTableInfoMpst1); if (ACPI_FAILURE (Status)) { return; } SubtableCount = Subtable1->CharacteristicsCount; Offset += sizeof (ACPI_MPST_DATA_HDR); /* Subtable: Memory Power State Characteristics structure(s) */ Subtable2 = ACPI_ADD_PTR (ACPI_MPST_POWER_DATA, Subtable1, sizeof (ACPI_MPST_DATA_HDR)); while ((Offset < Table->Length) && SubtableCount) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable2, sizeof (ACPI_MPST_POWER_DATA), AcpiDmTableInfoMpst2); if (ACPI_FAILURE (Status)) { return; } Subtable2++; SubtableCount--; Offset += sizeof (ACPI_MPST_POWER_DATA); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpMrrm * * PARAMETERS: Table - A MRRM table * * RETURN: None * * DESCRIPTION: Format the contents of a MRRM * ******************************************************************************/ void AcpiDmDumpMrrm ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_MRRM_MEM_RANGE_ENTRY *Subtable; UINT16 Offset = sizeof (ACPI_TABLE_MRRM); /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMrrm); if (ACPI_FAILURE (Status)) { return; } /* Subtables (all are same type) */ Subtable = ACPI_ADD_PTR (ACPI_MRRM_MEM_RANGE_ENTRY, Table, Offset); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Header.Length, AcpiDmTableInfoMrrm0); if (ACPI_FAILURE (Status)) { return; } Offset += Subtable->Header.Length; Subtable = ACPI_ADD_PTR (ACPI_MRRM_MEM_RANGE_ENTRY, Subtable, Subtable->Header.Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpMsct * * PARAMETERS: Table - A MSCT table * * RETURN: None * * DESCRIPTION: Format the contents of a MSCT * ******************************************************************************/ void AcpiDmDumpMsct ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_MSCT); ACPI_MSCT_PROXIMITY *Subtable; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoMsct); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_MSCT_PROXIMITY, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, sizeof (ACPI_MSCT_PROXIMITY), AcpiDmTableInfoMsct0); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable */ Offset += sizeof (ACPI_MSCT_PROXIMITY); Subtable = ACPI_ADD_PTR (ACPI_MSCT_PROXIMITY, Subtable, sizeof (ACPI_MSCT_PROXIMITY)); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpNfit * * PARAMETERS: Table - A NFIT table * * RETURN: None * * DESCRIPTION: Format the contents of an NFIT. * ******************************************************************************/ void AcpiDmDumpNfit ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_NFIT); UINT32 FieldOffset = 0; UINT32 Length; ACPI_NFIT_HEADER *Subtable; ACPI_DMTABLE_INFO *InfoTable; ACPI_NFIT_INTERLEAVE *Interleave = NULL; ACPI_NFIT_SMBIOS *SmbiosInfo = NULL; ACPI_NFIT_FLUSH_ADDRESS *Hint = NULL; UINT32 i; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoNfit); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Table, Offset); while (Offset < Table->Length) { /* NFIT subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoNfitHdr); if (ACPI_FAILURE (Status)) { return; } switch (Subtable->Type) { case ACPI_NFIT_TYPE_SYSTEM_ADDRESS: InfoTable = AcpiDmTableInfoNfit0; break; case ACPI_NFIT_TYPE_MEMORY_MAP: InfoTable = AcpiDmTableInfoNfit1; break; case ACPI_NFIT_TYPE_INTERLEAVE: /* Has a variable number of 32-bit values at the end */ InfoTable = AcpiDmTableInfoNfit2; FieldOffset = sizeof (ACPI_NFIT_INTERLEAVE); break; case ACPI_NFIT_TYPE_SMBIOS: SmbiosInfo = ACPI_CAST_PTR (ACPI_NFIT_SMBIOS, Subtable); InfoTable = AcpiDmTableInfoNfit3; break; case ACPI_NFIT_TYPE_CONTROL_REGION: InfoTable = AcpiDmTableInfoNfit4; break; case ACPI_NFIT_TYPE_DATA_REGION: InfoTable = AcpiDmTableInfoNfit5; break; case ACPI_NFIT_TYPE_FLUSH_ADDRESS: /* Has a variable number of 64-bit addresses at the end */ InfoTable = AcpiDmTableInfoNfit6; FieldOffset = sizeof (ACPI_NFIT_FLUSH_ADDRESS); break; case ACPI_NFIT_TYPE_CAPABILITIES: /* ACPI 6.0A */ InfoTable = AcpiDmTableInfoNfit7; break; default: AcpiOsPrintf ("\n**** Unknown NFIT subtable type 0x%X\n", Subtable->Type); /* Attempt to continue */ if (!Subtable->Length) { AcpiOsPrintf ("Invalid zero length subtable\n"); return; } goto NextSubtable; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* Per-subtable variable-length fields */ switch (Subtable->Type) { case ACPI_NFIT_TYPE_INTERLEAVE: Interleave = ACPI_CAST_PTR (ACPI_NFIT_INTERLEAVE, Subtable); for (i = 0; i < Interleave->LineCount; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + FieldOffset, &Interleave->LineOffset[i], sizeof (UINT32), AcpiDmTableInfoNfit2a); if (ACPI_FAILURE (Status)) { return; } FieldOffset += sizeof (UINT32); } break; case ACPI_NFIT_TYPE_SMBIOS: Length = Subtable->Length - sizeof (ACPI_NFIT_SMBIOS); if (Length) { Status = AcpiDmDumpTable (Table->Length, sizeof (ACPI_NFIT_SMBIOS), SmbiosInfo, Length, AcpiDmTableInfoNfit3a); if (ACPI_FAILURE (Status)) { return; } } break; case ACPI_NFIT_TYPE_FLUSH_ADDRESS: Hint = ACPI_CAST_PTR (ACPI_NFIT_FLUSH_ADDRESS, Subtable); for (i = 0; i < Hint->HintCount; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + FieldOffset, &Hint->HintAddress[i], sizeof (UINT64), AcpiDmTableInfoNfit6a); if (ACPI_FAILURE (Status)) { return; } FieldOffset += sizeof (UINT64); } break; default: break; } NextSubtable: /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_NFIT_HEADER, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpPcct * * PARAMETERS: Table - A PCCT table * * RETURN: None * * DESCRIPTION: Format the contents of a PCCT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpPcct ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_PCCT_SUBSPACE *Subtable; ACPI_DMTABLE_INFO *InfoTable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_PCCT); /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPcct); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_PCCT_SUBSPACE, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Header.Length, AcpiDmTableInfoPcctHdr); if (ACPI_FAILURE (Status)) { return; } switch (Subtable->Header.Type) { case ACPI_PCCT_TYPE_GENERIC_SUBSPACE: InfoTable = AcpiDmTableInfoPcct0; break; case ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE: InfoTable = AcpiDmTableInfoPcct1; break; case ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2: InfoTable = AcpiDmTableInfoPcct2; break; case ACPI_PCCT_TYPE_EXT_PCC_MASTER_SUBSPACE: InfoTable = AcpiDmTableInfoPcct3; break; case ACPI_PCCT_TYPE_EXT_PCC_SLAVE_SUBSPACE: InfoTable = AcpiDmTableInfoPcct4; break; case ACPI_PCCT_TYPE_HW_REG_COMM_SUBSPACE: InfoTable = AcpiDmTableInfoPcct5; break; default: AcpiOsPrintf ( "\n**** Unexpected or unknown PCCT subtable type 0x%X\n\n", Subtable->Header.Type); return; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Header.Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable */ Offset += Subtable->Header.Length; Subtable = ACPI_ADD_PTR (ACPI_PCCT_SUBSPACE, Subtable, Subtable->Header.Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpPdtt * * PARAMETERS: Table - A PDTT table * * RETURN: None * * DESCRIPTION: Format the contents of a Pdtt. This is a variable-length * table that contains an open-ended number of IDs * at the end of the table. * ******************************************************************************/ void AcpiDmDumpPdtt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_PDTT_CHANNEL *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_PDTT); /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPdtt); if (ACPI_FAILURE (Status)) { return; } /* Subtables. Currently there is only one type, but can be multiples */ Subtable = ACPI_ADD_PTR (ACPI_PDTT_CHANNEL, Table, Offset); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, sizeof (ACPI_PDTT_CHANNEL), AcpiDmTableInfoPdtt0); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable */ Offset += sizeof (ACPI_PDTT_CHANNEL); Subtable = ACPI_ADD_PTR (ACPI_PDTT_CHANNEL, Subtable, sizeof (ACPI_PDTT_CHANNEL)); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpPhat * * PARAMETERS: Table - A PHAT table * * RETURN: None * * DESCRIPTION: Format the contents of a PHAT. * ******************************************************************************/ void AcpiDmDumpPhat ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_DMTABLE_INFO *InfoTable; ACPI_PHAT_HEADER *Subtable; ACPI_PHAT_VERSION_DATA *VersionData; ACPI_PHAT_HEALTH_DATA *HealthData; UINT32 RecordCount; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_PHAT); UINT32 OriginalOffset; UINT32 SubtableLength; UINT32 PathLength; UINT32 VendorLength; UINT16 RecordType; Subtable = ACPI_ADD_PTR (ACPI_PHAT_HEADER, Table, sizeof (ACPI_TABLE_PHAT)); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, sizeof (ACPI_PHAT_HEADER), AcpiDmTableInfoPhatHdr); if (ACPI_FAILURE (Status)) { return; } DbgPrint (ASL_DEBUG_OUTPUT, "\n/* %u, Subtable->Type %X */\n", __LINE__, Subtable->Type); switch (Subtable->Type) { case ACPI_PHAT_TYPE_FW_VERSION_DATA: InfoTable = AcpiDmTableInfoPhat0; SubtableLength = sizeof (ACPI_PHAT_VERSION_DATA); break; case ACPI_PHAT_TYPE_FW_HEALTH_DATA: InfoTable = AcpiDmTableInfoPhat1; SubtableLength = sizeof (ACPI_PHAT_HEALTH_DATA); break; default: DbgPrint (ASL_DEBUG_OUTPUT, "\n**** Unknown PHAT subtable type 0x%X\n\n", Subtable->Type); return; } Status = AcpiDmDumpTable (Length, Offset, Subtable, SubtableLength, InfoTable); if (ACPI_FAILURE (Status)) { return; } Offset += SubtableLength; OriginalOffset = Offset; switch (Subtable->Type) { case ACPI_PHAT_TYPE_FW_VERSION_DATA: VersionData = ACPI_CAST_PTR (ACPI_PHAT_VERSION_DATA, Subtable); RecordCount = VersionData->ElementCount; RecordType = *ACPI_CAST_PTR (UINT8, Subtable); /* * Skip past a zero-valued block (not part of the ACPI PHAT specification). * First, check for a zero length record and a zero element count */ if (!VersionData->Header.Length && !VersionData->ElementCount) { while (RecordType == 0) { Subtable = ACPI_ADD_PTR (ACPI_PHAT_HEADER, Table, Offset); RecordType = *ACPI_CAST_PTR (UINT8, Subtable); RecordCount = VersionData->ElementCount; Offset += 1; } Offset -= 1; AcpiOsPrintf ("\n/* Warning: Block of zeros found above starting at Offset %X Length %X */\n" "/* (not compliant to PHAT specification -- ignoring block) */\n", OriginalOffset - 12, Offset - OriginalOffset + 12); } DbgPrint (ASL_DEBUG_OUTPUT, "/* %u, RecordCount: %X, Offset %X, SubtableLength %X */\n", __LINE__, RecordCount, Offset, SubtableLength); /* Emit each of the version elements */ while (RecordCount && VersionData->Header.Length) { AcpiOsPrintf ("\n/* Version Element #%Xh Offset %Xh */\n\n", VersionData->ElementCount - RecordCount + 1, Offset); Subtable = ACPI_ADD_PTR (ACPI_PHAT_HEADER, Table, Offset); Status = AcpiDmDumpTable (Length, Offset, Subtable, sizeof (ACPI_PHAT_VERSION_ELEMENT), AcpiDmTableInfoPhat0a); if (ACPI_FAILURE (Status)) { return; } Offset += sizeof (ACPI_PHAT_VERSION_ELEMENT); RecordCount--; } break; case ACPI_PHAT_TYPE_FW_HEALTH_DATA: HealthData = ACPI_CAST_PTR (ACPI_PHAT_HEALTH_DATA, Subtable); PathLength = Subtable->Length - sizeof (ACPI_PHAT_HEALTH_DATA); VendorLength = 0; /* An offset of 0 should be ignored */ if (HealthData->DeviceSpecificOffset != 0) { if (HealthData->DeviceSpecificOffset > Subtable->Length) { AcpiOsPrintf ("\n/* Warning: Oversized device-specific data offset %X */\n" "/* (maximum is %X -- ignoring device-specific data) */\n", HealthData->DeviceSpecificOffset, Subtable->Length); } else if (HealthData->DeviceSpecificOffset < sizeof (ACPI_PHAT_HEALTH_DATA)) { AcpiOsPrintf ("\n/* Warning: Undersized device-specific data offset %X */\n" "/* (minimum is %X -- ignoring device-specific data) */\n", HealthData->DeviceSpecificOffset, (UINT8) sizeof (ACPI_PHAT_HEALTH_DATA)); } else { PathLength = HealthData->DeviceSpecificOffset - sizeof (ACPI_PHAT_HEALTH_DATA); VendorLength = Subtable->Length - HealthData->DeviceSpecificOffset; } } DbgPrint (ASL_DEBUG_OUTPUT, "/* %u, PathLength %X, Offset %X */\n", __LINE__, PathLength, Offset); if (PathLength) { Status = AcpiDmDumpTable (Length, Offset, ACPI_ADD_PTR (ACPI_PHAT_HEADER, Subtable, sizeof (ACPI_PHAT_HEALTH_DATA)), PathLength, AcpiDmTableInfoPhat1a); if (ACPI_FAILURE (Status)) { return; } Offset += PathLength; } DbgPrint (ASL_DEBUG_OUTPUT, "/* %u, VendorLength %X, Offset %X */\n", __LINE__, VendorLength, Offset); if (VendorLength) { Status = AcpiDmDumpTable (Length, Offset, ACPI_ADD_PTR (ACPI_PHAT_HEADER, Subtable, HealthData->DeviceSpecificOffset), VendorLength, AcpiDmTableInfoPhat1b); if (ACPI_FAILURE (Status)) { return; } Offset += VendorLength; } break; default: AcpiOsPrintf ("\n**** Unknown PHAT subtable type 0x%X\n\n", Subtable->Type); return; } /* Next subtable */ DbgPrint (ASL_DEBUG_OUTPUT, "/* %u, Bottom of main loop: Offset %X, " "Subtable->Length %X, Table->Length %X */\n", __LINE__, Offset, Subtable->Length, Table->Length); Subtable = ACPI_ADD_PTR (ACPI_PHAT_HEADER, Table, Offset); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpPmtt * * PARAMETERS: Table - A PMTT table * * RETURN: None * * DESCRIPTION: Format the contents of a PMTT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpPmtt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_PMTT_HEADER *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_PMTT); /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoPmtt); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Table, Offset); while (Offset < Table->Length) { /* Each of the types below contain the common subtable header */ AcpiOsPrintf ("\n"); switch (Subtable->Type) { case ACPI_PMTT_TYPE_SOCKET: Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoPmtt0); if (ACPI_FAILURE (Status)) { return; } break; case ACPI_PMTT_TYPE_CONTROLLER: Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoPmtt1); if (ACPI_FAILURE (Status)) { return; } break; case ACPI_PMTT_TYPE_DIMM: Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoPmtt2); if (ACPI_FAILURE (Status)) { return; } break; case ACPI_PMTT_TYPE_VENDOR: Status = AcpiDmDumpTable (Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoPmttVendor); if (ACPI_FAILURE (Status)) { return; } break; default: AcpiOsPrintf ( "\n**** Unexpected or unknown PMTT subtable type 0x%X\n\n", Subtable->Type); return; } /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_PMTT_HEADER, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpPptt * * PARAMETERS: Table - A PMTT table * * RETURN: None * * DESCRIPTION: Format the contents of a PPTT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpPptt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_SUBTABLE_HEADER *Subtable; ACPI_PPTT_PROCESSOR *PpttProcessor; UINT8 Length; UINT8 SubtableOffset; UINT32 Offset = sizeof (ACPI_TABLE_FPDT); ACPI_DMTABLE_INFO *InfoTable; UINT32 i; /* There is no main table (other than the standard ACPI header) */ /* Subtables */ Offset = sizeof (ACPI_TABLE_HEADER); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); /* Common subtable header */ Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); if (Subtable->Length < sizeof (ACPI_SUBTABLE_HEADER)) { AcpiOsPrintf ("Invalid subtable length\n"); return; } Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoPpttHdr); if (ACPI_FAILURE (Status)) { return; } switch (Subtable->Type) { case ACPI_PPTT_TYPE_PROCESSOR: InfoTable = AcpiDmTableInfoPptt0; Length = sizeof (ACPI_PPTT_PROCESSOR); break; case ACPI_PPTT_TYPE_CACHE: InfoTable = AcpiDmTableInfoPptt1; Length = sizeof (ACPI_PPTT_CACHE); break; case ACPI_PPTT_TYPE_ID: InfoTable = AcpiDmTableInfoPptt2; Length = sizeof (ACPI_PPTT_ID); break; default: AcpiOsPrintf ("\n**** Unknown PPTT subtable type 0x%X\n\n", Subtable->Type); /* Attempt to continue */ goto NextSubtable; } if (Subtable->Length < Length) { AcpiOsPrintf ("Invalid subtable length\n"); return; } Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } SubtableOffset = Length; switch (Subtable->Type) { case ACPI_PPTT_TYPE_PROCESSOR: PpttProcessor = ACPI_CAST_PTR (ACPI_PPTT_PROCESSOR, Subtable); /* Dump SMBIOS handles */ if ((UINT8)(Subtable->Length - SubtableOffset) < (UINT8)(PpttProcessor->NumberOfPrivResources * 4)) { AcpiOsPrintf ("Invalid private resource number\n"); return; } for (i = 0; i < PpttProcessor->NumberOfPrivResources; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Subtable, SubtableOffset), 4, AcpiDmTableInfoPptt0a); if (ACPI_FAILURE (Status)) { return; } SubtableOffset += 4; } break; case ACPI_PPTT_TYPE_CACHE: if (Table->Revision < 3) { break; } Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Subtable, SubtableOffset), sizeof (ACPI_PPTT_CACHE_V1), AcpiDmTableInfoPptt1a); if (ACPI_FAILURE (Status)) { return; } break; default: break; } NextSubtable: /* Point to next subtable */ Offset += Subtable->Length; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpPrmt * * PARAMETERS: Table - A PRMT table * * RETURN: None * * DESCRIPTION: Format the contents of a PRMT. This table type consists * of an open-ended number of subtables. * ******************************************************************************/ void AcpiDmDumpPrmt ( ACPI_TABLE_HEADER *Table) { UINT32 CurrentOffset = sizeof (ACPI_TABLE_HEADER); ACPI_TABLE_PRMT_HEADER *PrmtHeader; ACPI_PRMT_MODULE_INFO *PrmtModuleInfo; ACPI_PRMT_HANDLER_INFO *PrmtHandlerInfo; ACPI_STATUS Status; UINT32 i, j; /* Main table header */ PrmtHeader = ACPI_ADD_PTR (ACPI_TABLE_PRMT_HEADER, Table, CurrentOffset); Status = AcpiDmDumpTable (Table->Length, CurrentOffset, PrmtHeader, sizeof (ACPI_TABLE_PRMT_HEADER), AcpiDmTableInfoPrmtHdr); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Invalid PRMT header\n"); return; } CurrentOffset += sizeof (ACPI_TABLE_PRMT_HEADER); /* PRM Module Information Structure array */ for (i = 0; i < PrmtHeader->ModuleInfoCount; ++i) { PrmtModuleInfo = ACPI_ADD_PTR (ACPI_PRMT_MODULE_INFO, Table, CurrentOffset); Status = AcpiDmDumpTable (Table->Length, CurrentOffset, PrmtModuleInfo, sizeof (ACPI_PRMT_MODULE_INFO), AcpiDmTableInfoPrmtModule); CurrentOffset += sizeof (ACPI_PRMT_MODULE_INFO); /* PRM handler information structure array */ for (j = 0; j < PrmtModuleInfo->HandlerInfoCount; ++j) { PrmtHandlerInfo = ACPI_ADD_PTR (ACPI_PRMT_HANDLER_INFO, Table, CurrentOffset); Status = AcpiDmDumpTable (Table->Length, CurrentOffset, PrmtHandlerInfo, sizeof (ACPI_PRMT_HANDLER_INFO), AcpiDmTableInfoPrmtHandler); CurrentOffset += sizeof (ACPI_PRMT_HANDLER_INFO); } } } /******************************************************************************* * * FUNCTION: AcpiDmDumpRas2 * * PARAMETERS: Table - A RAS2 table * * RETURN: None * * DESCRIPTION: Format the contents of a Ras2. This is a variable-length * table that contains an open-ended number of the RAS2 PCC * descriptors at the end of the table. * ******************************************************************************/ void AcpiDmDumpRas2 ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_RAS2_PCC_DESC *Subtable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_RAS2); /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoRas2); if (ACPI_FAILURE (Status)) { return; } /* Subtables - RAS2 PCC descriptor list */ Subtable = ACPI_ADD_PTR (ACPI_RAS2_PCC_DESC, Table, Offset); while (Offset < Table->Length) { AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Length, Offset, Subtable, sizeof (ACPI_RAS2_PCC_DESC), AcpiDmTableInfoRas2PccDesc); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable */ Offset += sizeof (ACPI_RAS2_PCC_DESC); Subtable = ACPI_ADD_PTR (ACPI_RAS2_PCC_DESC, Subtable, sizeof (ACPI_RAS2_PCC_DESC)); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpRgrt * * PARAMETERS: Table - A RGRT table * * RETURN: None * * DESCRIPTION: Format the contents of a RGRT * ******************************************************************************/ void AcpiDmDumpRgrt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_TABLE_RGRT *Subtable = ACPI_CAST_PTR (ACPI_TABLE_RGRT, Table); UINT32 Offset = sizeof (ACPI_TABLE_RGRT); /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoRgrt); if (ACPI_FAILURE (Status)) { return; } /* Dump the binary image as a subtable */ Status = AcpiDmDumpTable (Table->Length, Offset, &Subtable->Image, Table->Length - Offset, AcpiDmTableInfoRgrt0); if (ACPI_FAILURE (Status)) { return; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpRhct * * PARAMETERS: Table - A RHCT table * * RETURN: None * * DESCRIPTION: Format the contents of a RHCT. * ******************************************************************************/ void AcpiDmDumpRhct ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_RHCT_NODE_HEADER *Subtable; ACPI_RHCT_HART_INFO *RhctHartInfo; ACPI_RHCT_ISA_STRING *RhctIsaString; ACPI_RHCT_CMO_NODE *RhctCmoNode; ACPI_RHCT_MMU_NODE *RhctMmuNode; UINT32 Length = Table->Length; UINT8 SubtableOffset, IsaPadOffset; UINT32 Offset = sizeof (ACPI_TABLE_RHCT); UINT32 i; /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoRhct); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ while (Offset < Table->Length) { AcpiOsPrintf ("\n"); /* Common subtable header */ Subtable = ACPI_ADD_PTR (ACPI_RHCT_NODE_HEADER, Table, Offset); if (Subtable->Length < sizeof (ACPI_RHCT_NODE_HEADER)) { AcpiOsPrintf ("Invalid subtable length\n"); return; } Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoRhctNodeHdr); if (ACPI_FAILURE (Status)) { return; } Length = sizeof (ACPI_RHCT_NODE_HEADER); if (Subtable->Length < Length) { AcpiOsPrintf ("Invalid subtable length\n"); return; } SubtableOffset = (UINT8) Length; switch (Subtable->Type) { case ACPI_RHCT_NODE_TYPE_HART_INFO: Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_RHCT_HART_INFO, Subtable, SubtableOffset), sizeof (ACPI_RHCT_HART_INFO), AcpiDmTableInfoRhctHartInfo1); RhctHartInfo = ACPI_ADD_PTR (ACPI_RHCT_HART_INFO, Subtable, SubtableOffset); if ((UINT16)(Subtable->Length - SubtableOffset) < (UINT16)(RhctHartInfo->NumOffsets * 4)) { AcpiOsPrintf ("Invalid number of offsets\n"); return; } SubtableOffset += sizeof (ACPI_RHCT_HART_INFO); for (i = 0; i < RhctHartInfo->NumOffsets; i++) { Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (UINT32, Subtable, SubtableOffset), 4, AcpiDmTableInfoRhctHartInfo2); if (ACPI_FAILURE (Status)) { return; } SubtableOffset += 4; } break; case ACPI_RHCT_NODE_TYPE_ISA_STRING: RhctIsaString = ACPI_ADD_PTR (ACPI_RHCT_ISA_STRING, Subtable, SubtableOffset); IsaPadOffset = (UINT8) (SubtableOffset + 2 + RhctIsaString->IsaLength); Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, RhctIsaString, RhctIsaString->IsaLength, AcpiDmTableInfoRhctIsa1); if (Subtable->Length > IsaPadOffset) { Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (UINT8, Subtable, IsaPadOffset), (Subtable->Length - IsaPadOffset), AcpiDmTableInfoRhctIsaPad); } break; case ACPI_RHCT_NODE_TYPE_CMO: RhctCmoNode = ACPI_ADD_PTR (ACPI_RHCT_CMO_NODE, Subtable, SubtableOffset); Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, RhctCmoNode, 4, AcpiDmTableInfoRhctCmo1); break; case ACPI_RHCT_NODE_TYPE_MMU: RhctMmuNode = ACPI_ADD_PTR (ACPI_RHCT_MMU_NODE, Subtable, SubtableOffset); Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, RhctMmuNode, 2, AcpiDmTableInfoRhctMmu1); break; default: break; } /* Point to next subtable */ Offset += Subtable->Length; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpRimt * * PARAMETERS: Table - A RIMT table * * RETURN: None * * DESCRIPTION: Format the contents of a RIMT. * ******************************************************************************/ void AcpiDmDumpRimt ( ACPI_TABLE_HEADER *Table) { ACPI_RIMT_PLATFORM_DEVICE *PlatNode; ACPI_RIMT_PCIE_RC *PcieNode; ACPI_RIMT_NODE *Subtable; ACPI_STATUS Status; UINT32 Length = Table->Length; UINT16 SubtableOffset; UINT32 NodeOffset; UINT16 i; UINT32 Offset = sizeof (ACPI_TABLE_RIMT); /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoRimt); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ while (Offset < Table->Length) { AcpiOsPrintf ("\n"); /* Common subtable header */ Subtable = ACPI_ADD_PTR (ACPI_RIMT_NODE, Table, Offset); if (Subtable->Length < sizeof (ACPI_RIMT_NODE)) { AcpiOsPrintf ("Invalid subtable length\n"); return; } Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoRimtNodeHdr); if (ACPI_FAILURE (Status)) { return; } Length = sizeof (ACPI_RIMT_NODE); if (Subtable->Length < Length) { AcpiOsPrintf ("Invalid subtable length\n"); return; } SubtableOffset = (UINT16) Length; switch (Subtable->Type) { case ACPI_RIMT_NODE_TYPE_IOMMU: Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_RIMT_IOMMU, Subtable, SubtableOffset), sizeof (ACPI_RIMT_IOMMU), AcpiDmTableInfoRimtIommu); break; case ACPI_RIMT_NODE_TYPE_PCIE_ROOT_COMPLEX: Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_RIMT_PCIE_RC, Subtable, SubtableOffset), sizeof (ACPI_RIMT_PCIE_RC), AcpiDmTableInfoRimtPcieRc); PcieNode = ACPI_ADD_PTR (ACPI_RIMT_PCIE_RC, Subtable, SubtableOffset); /* Dump the ID mappings */ NodeOffset = PcieNode->IdMappingOffset; for (i = 0; i < PcieNode->NumIdMappings; i++) { AcpiOsPrintf ("\n"); Length = sizeof (ACPI_RIMT_ID_MAPPING); Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ACPI_ADD_PTR (ACPI_RIMT_ID_MAPPING, Subtable, NodeOffset), Length, AcpiDmTableInfoRimtIdMapping); if (ACPI_FAILURE (Status)) { return; } NodeOffset += Length; } break; case ACPI_RIMT_NODE_TYPE_PLAT_DEVICE: Status = AcpiDmDumpTable (Table->Length, Offset + SubtableOffset, ACPI_ADD_PTR (ACPI_RIMT_PLATFORM_DEVICE, Subtable, SubtableOffset), sizeof (ACPI_RIMT_PLATFORM_DEVICE), AcpiDmTableInfoRimtPlatDev); PlatNode = ACPI_ADD_PTR (ACPI_RIMT_PLATFORM_DEVICE, Subtable, SubtableOffset); /* Dump the ID mappings */ NodeOffset = PlatNode->IdMappingOffset; for (i = 0; i < PlatNode->NumIdMappings; i++) { AcpiOsPrintf ("\n"); Length = sizeof (ACPI_RIMT_ID_MAPPING); Status = AcpiDmDumpTable (Table->Length, Offset + NodeOffset, ACPI_ADD_PTR (ACPI_RIMT_ID_MAPPING, Subtable, NodeOffset), Length, AcpiDmTableInfoRimtIdMapping); if (ACPI_FAILURE (Status)) { return; } NodeOffset += Length; } break; default: break; } /* Point to next subtable */ Offset += Subtable->Length; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpS3pt * * PARAMETERS: Table - A S3PT table * * RETURN: Length of the table * * DESCRIPTION: Format the contents of a S3PT * ******************************************************************************/ UINT32 AcpiDmDumpS3pt ( ACPI_TABLE_HEADER *Tables) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_S3PT); ACPI_FPDT_HEADER *Subtable; ACPI_DMTABLE_INFO *InfoTable; ACPI_TABLE_S3PT *S3ptTable = ACPI_CAST_PTR (ACPI_TABLE_S3PT, Tables); /* Main table */ Status = AcpiDmDumpTable (Offset, 0, S3ptTable, 0, AcpiDmTableInfoS3pt); if (ACPI_FAILURE (Status)) { return 0; } Subtable = ACPI_ADD_PTR (ACPI_FPDT_HEADER, S3ptTable, Offset); while (Offset < S3ptTable->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (S3ptTable->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoS3ptHdr); if (ACPI_FAILURE (Status)) { return 0; } switch (Subtable->Type) { case ACPI_S3PT_TYPE_RESUME: InfoTable = AcpiDmTableInfoS3pt0; break; case ACPI_S3PT_TYPE_SUSPEND: InfoTable = AcpiDmTableInfoS3pt1; break; default: AcpiOsPrintf ("\n**** Unknown S3PT subtable type 0x%X\n", Subtable->Type); /* Attempt to continue */ if (!Subtable->Length) { AcpiOsPrintf ("Invalid zero length subtable\n"); return 0; } goto NextSubtable; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (S3ptTable->Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return 0; } NextSubtable: /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_FPDT_HEADER, Subtable, Subtable->Length); } return (S3ptTable->Length); } /******************************************************************************* * * FUNCTION: AcpiDmDumpSdev * * PARAMETERS: Table - A SDEV table * * RETURN: None * * DESCRIPTION: Format the contents of a SDEV. This is a variable-length * table that contains variable strings and vendor data. * ******************************************************************************/ void AcpiDmDumpSdev ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_SDEV_HEADER *Subtable; ACPI_SDEV_PCIE *Pcie; ACPI_SDEV_NAMESPACE *Namesp; ACPI_DMTABLE_INFO *InfoTable; ACPI_DMTABLE_INFO *SecureComponentInfoTable; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_SDEV); UINT16 PathOffset; UINT16 PathLength; UINT16 VendorDataOffset; UINT16 VendorDataLength; ACPI_SDEV_SECURE_COMPONENT *SecureComponent = NULL; UINT32 CurrentOffset = 0; /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoSdev); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_SDEV_HEADER, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoSdevHdr); if (ACPI_FAILURE (Status)) { return; } switch (Subtable->Type) { case ACPI_SDEV_TYPE_NAMESPACE_DEVICE: InfoTable = AcpiDmTableInfoSdev0; break; case ACPI_SDEV_TYPE_PCIE_ENDPOINT_DEVICE: InfoTable = AcpiDmTableInfoSdev1; break; default: goto NextSubtable; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, 0, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } switch (Subtable->Type) { case ACPI_SDEV_TYPE_NAMESPACE_DEVICE: CurrentOffset = sizeof (ACPI_SDEV_NAMESPACE); if (Subtable->Flags & ACPI_SDEV_SECURE_COMPONENTS_PRESENT) { SecureComponent = ACPI_CAST_PTR (ACPI_SDEV_SECURE_COMPONENT, ACPI_ADD_PTR (UINT8, Subtable, sizeof (ACPI_SDEV_NAMESPACE))); Status = AcpiDmDumpTable (Table->Length, CurrentOffset, ACPI_ADD_PTR(UINT8, Subtable, sizeof (ACPI_SDEV_NAMESPACE)), sizeof (ACPI_SDEV_SECURE_COMPONENT), AcpiDmTableInfoSdev0b); if (ACPI_FAILURE (Status)) { return; } CurrentOffset += sizeof (ACPI_SDEV_SECURE_COMPONENT); Status = AcpiDmDumpTable (Table->Length, CurrentOffset, ACPI_ADD_PTR(UINT8, Subtable, SecureComponent->SecureComponentOffset), sizeof (ACPI_SDEV_HEADER), AcpiDmTableInfoSdevSecCompHdr); if (ACPI_FAILURE (Status)) { return; } CurrentOffset += sizeof (ACPI_SDEV_HEADER); switch (Subtable->Type) { case ACPI_SDEV_TYPE_ID_COMPONENT: SecureComponentInfoTable = AcpiDmTableInfoSdevSecCompId; break; case ACPI_SDEV_TYPE_MEM_COMPONENT: SecureComponentInfoTable = AcpiDmTableInfoSdevSecCompMem; break; default: goto NextSubtable; } Status = AcpiDmDumpTable (Table->Length, CurrentOffset, ACPI_ADD_PTR(UINT8, Subtable, SecureComponent->SecureComponentOffset), SecureComponent->SecureComponentLength, SecureComponentInfoTable); CurrentOffset += SecureComponent->SecureComponentLength; } /* Dump the PCIe device ID(s) */ Namesp = ACPI_CAST_PTR (ACPI_SDEV_NAMESPACE, Subtable); PathOffset = Namesp->DeviceIdOffset; PathLength = Namesp->DeviceIdLength; if (PathLength) { Status = AcpiDmDumpTable (Table->Length, CurrentOffset, ACPI_ADD_PTR (UINT8, Namesp, PathOffset), PathLength, AcpiDmTableInfoSdev0a); if (ACPI_FAILURE (Status)) { return; } CurrentOffset += PathLength; } /* Dump the vendor-specific data */ VendorDataLength = Namesp->VendorDataLength; VendorDataOffset = Namesp->DeviceIdOffset + Namesp->DeviceIdLength; if (VendorDataLength) { Status = AcpiDmDumpTable (Table->Length, 0, ACPI_ADD_PTR (UINT8, Namesp, VendorDataOffset), VendorDataLength, AcpiDmTableInfoSdev1b); if (ACPI_FAILURE (Status)) { return; } } break; case ACPI_SDEV_TYPE_PCIE_ENDPOINT_DEVICE: /* PCI path substructures */ Pcie = ACPI_CAST_PTR (ACPI_SDEV_PCIE, Subtable); PathOffset = Pcie->PathOffset; PathLength = Pcie->PathLength; while (PathLength) { Status = AcpiDmDumpTable (Table->Length, PathOffset + Offset, ACPI_ADD_PTR (UINT8, Pcie, PathOffset), sizeof (ACPI_SDEV_PCIE_PATH), AcpiDmTableInfoSdev1a); if (ACPI_FAILURE (Status)) { return; } PathOffset += sizeof (ACPI_SDEV_PCIE_PATH); PathLength -= sizeof (ACPI_SDEV_PCIE_PATH); } /* VendorData */ VendorDataLength = Pcie->VendorDataLength; VendorDataOffset = Pcie->PathOffset + Pcie->PathLength; if (VendorDataLength) { Status = AcpiDmDumpTable (Table->Length, 0, ACPI_ADD_PTR (UINT8, Pcie, VendorDataOffset), VendorDataLength, AcpiDmTableInfoSdev1b); if (ACPI_FAILURE (Status)) { return; } } break; default: goto NextSubtable; } NextSubtable: /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_SDEV_HEADER, Subtable, Subtable->Length); } } acpica-unix-20250404/source/common/dmrestag.c0000775000175000017500000010534314773714131020310 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmrestag - Add tags to resource descriptors (Application-level) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "acdisasm.h" #include "acnamesp.h" #include "amlcode.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmrestag") /* Local prototypes */ static void AcpiDmUpdateResourceName ( ACPI_NAMESPACE_NODE *ResourceNode); static char * AcpiDmSearchTagList ( UINT32 BitIndex, const ACPI_RESOURCE_TAG *TagList); static char * AcpiDmGetResourceTag ( UINT32 BitIndex, AML_RESOURCE *Resource, UINT8 ResourceIndex); static char * AcpiGetTagPathname ( ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE *BufferNode, ACPI_NAMESPACE_NODE *ResourceNode, UINT32 BitIndex); static ACPI_NAMESPACE_NODE * AcpiDmGetResourceNode ( ACPI_NAMESPACE_NODE *BufferNode, UINT32 BitIndex); static ACPI_STATUS AcpiDmAddResourceToNamespace ( UINT8 *Aml, UINT32 Length, UINT32 Offset, UINT8 ResourceIndex, void **Context); static void AcpiDmAddResourcesToNamespace ( ACPI_NAMESPACE_NODE *BufferNode, ACPI_PARSE_OBJECT *Op); /****************************************************************************** * * Resource Tag tables * * These are the predefined tags that refer to elements of a resource * descriptor. Each name and offset is defined in the ACPI specification. * * Each table entry contains the bit offset of the field and the associated * name. * ******************************************************************************/ static const ACPI_RESOURCE_TAG AcpiDmIrqTags[] = { {( 1 * 8), ACPI_RESTAG_INTERRUPT}, {( 3 * 8) + 0, ACPI_RESTAG_INTERRUPTTYPE}, {( 3 * 8) + 3, ACPI_RESTAG_INTERRUPTLEVEL}, {( 3 * 8) + 4, ACPI_RESTAG_INTERRUPTSHARE}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmDmaTags[] = { {( 1 * 8), ACPI_RESTAG_DMA}, {( 2 * 8) + 0, ACPI_RESTAG_XFERTYPE}, {( 2 * 8) + 2, ACPI_RESTAG_BUSMASTER}, {( 2 * 8) + 5, ACPI_RESTAG_DMATYPE}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmIoTags[] = { {( 1 * 8) + 0, ACPI_RESTAG_DECODE}, {( 2 * 8), ACPI_RESTAG_MINADDR}, {( 4 * 8), ACPI_RESTAG_MAXADDR}, {( 6 * 8), ACPI_RESTAG_ALIGNMENT}, {( 7 * 8), ACPI_RESTAG_LENGTH}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmFixedIoTags[] = { {( 1 * 8), ACPI_RESTAG_BASEADDRESS}, {( 3 * 8), ACPI_RESTAG_LENGTH}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmFixedDmaTags[] = { {( 1 * 8), ACPI_RESTAG_DMA}, {( 3 * 8), ACPI_RESTAG_DMATYPE}, {( 5 * 8), ACPI_RESTAG_XFERTYPE}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmMemory24Tags[] = { {( 3 * 8) + 0, ACPI_RESTAG_READWRITETYPE}, {( 4 * 8), ACPI_RESTAG_MINADDR}, {( 6 * 8), ACPI_RESTAG_MAXADDR}, {( 8 * 8), ACPI_RESTAG_ALIGNMENT}, {(10 * 8), ACPI_RESTAG_LENGTH}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmRegisterTags[] = { {( 3 * 8), ACPI_RESTAG_ADDRESSSPACE}, {( 4 * 8), ACPI_RESTAG_REGISTERBITWIDTH}, {( 5 * 8), ACPI_RESTAG_REGISTERBITOFFSET}, {( 6 * 8), ACPI_RESTAG_ACCESSSIZE}, {( 7 * 8), ACPI_RESTAG_ADDRESS}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmMemory32Tags[] = { {( 3 * 8) + 0, ACPI_RESTAG_READWRITETYPE}, {( 4 * 8), ACPI_RESTAG_MINADDR}, {( 8 * 8), ACPI_RESTAG_MAXADDR}, {(12 * 8), ACPI_RESTAG_ALIGNMENT}, {(16 * 8), ACPI_RESTAG_LENGTH}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmFixedMemory32Tags[] = { {( 3 * 8) + 0, ACPI_RESTAG_READWRITETYPE}, {( 4 * 8), ACPI_RESTAG_BASEADDRESS}, {( 8 * 8), ACPI_RESTAG_LENGTH}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmInterruptTags[] = { {( 3 * 8) + 1, ACPI_RESTAG_INTERRUPTTYPE}, {( 3 * 8) + 2, ACPI_RESTAG_INTERRUPTLEVEL}, {( 3 * 8) + 3, ACPI_RESTAG_INTERRUPTSHARE}, {( 5 * 8), ACPI_RESTAG_INTERRUPT}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmAddress16Tags[] = { {( 4 * 8) + 1, ACPI_RESTAG_DECODE}, {( 4 * 8) + 2, ACPI_RESTAG_MINTYPE}, {( 4 * 8) + 3, ACPI_RESTAG_MAXTYPE}, {( 6 * 8), ACPI_RESTAG_GRANULARITY}, {( 8 * 8), ACPI_RESTAG_MINADDR}, {(10 * 8), ACPI_RESTAG_MAXADDR}, {(12 * 8), ACPI_RESTAG_TRANSLATION}, {(14 * 8), ACPI_RESTAG_LENGTH}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmAddress32Tags[] = { {( 4 * 8) + 1, ACPI_RESTAG_DECODE}, {( 4 * 8) + 2, ACPI_RESTAG_MINTYPE}, {( 4 * 8) + 3, ACPI_RESTAG_MAXTYPE}, {( 6 * 8), ACPI_RESTAG_GRANULARITY}, {(10 * 8), ACPI_RESTAG_MINADDR}, {(14 * 8), ACPI_RESTAG_MAXADDR}, {(18 * 8), ACPI_RESTAG_TRANSLATION}, {(22 * 8), ACPI_RESTAG_LENGTH}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmAddress64Tags[] = { {( 4 * 8) + 1, ACPI_RESTAG_DECODE}, {( 4 * 8) + 2, ACPI_RESTAG_MINTYPE}, {( 4 * 8) + 3, ACPI_RESTAG_MAXTYPE}, {( 6 * 8), ACPI_RESTAG_GRANULARITY}, {(14 * 8), ACPI_RESTAG_MINADDR}, {(22 * 8), ACPI_RESTAG_MAXADDR}, {(30 * 8), ACPI_RESTAG_TRANSLATION}, {(38 * 8), ACPI_RESTAG_LENGTH}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmExtendedAddressTags[] = { {( 4 * 8) + 1, ACPI_RESTAG_DECODE}, {( 4 * 8) + 2, ACPI_RESTAG_MINTYPE}, {( 4 * 8) + 3, ACPI_RESTAG_MAXTYPE}, {( 8 * 8), ACPI_RESTAG_GRANULARITY}, {(16 * 8), ACPI_RESTAG_MINADDR}, {(24 * 8), ACPI_RESTAG_MAXADDR}, {(32 * 8), ACPI_RESTAG_TRANSLATION}, {(40 * 8), ACPI_RESTAG_LENGTH}, {(48 * 8), ACPI_RESTAG_TYPESPECIFICATTRIBUTES}, {0, NULL} }; /* Subtype tables for GPIO descriptors */ static const ACPI_RESOURCE_TAG AcpiDmGpioIntTags[] = { {( 7 * 8) + 0, ACPI_RESTAG_MODE}, {( 7 * 8) + 1, ACPI_RESTAG_POLARITY}, {( 7 * 8) + 3, ACPI_RESTAG_INTERRUPTSHARE}, {( 9 * 8), ACPI_RESTAG_PINCONFIG}, {(10 * 8), ACPI_RESTAG_DRIVESTRENGTH}, {(12 * 8), ACPI_RESTAG_DEBOUNCETIME}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmGpioIoTags[] = { {( 7 * 8) + 0, ACPI_RESTAG_IORESTRICTION}, {( 7 * 8) + 3, ACPI_RESTAG_INTERRUPTSHARE}, {( 9 * 8), ACPI_RESTAG_PINCONFIG}, {(10 * 8), ACPI_RESTAG_DRIVESTRENGTH}, {(12 * 8), ACPI_RESTAG_DEBOUNCETIME}, {0, NULL} }; /* Subtype tables for SerialBus descriptors */ static const ACPI_RESOURCE_TAG AcpiDmCsi2SerialBusTags[] = /* ACPI 6.4 */ { {( 6 * 8) + 0, ACPI_RESTAG_SLAVEMODE}, {( 7 * 8) + 0, ACPI_RESTAG_PHYTYPE}, {( 7 * 8) + 2, ACPI_RESTAG_LOCALPORT}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmI2cSerialBusTags[] = { {( 6 * 8) + 0, ACPI_RESTAG_SLAVEMODE}, {( 6 * 8) + 2, ACPI_RESTAG_INTERRUPTSHARE}, /* V2 - ACPI 6.0 */ {( 7 * 8) + 0, ACPI_RESTAG_MODE}, {(12 * 8), ACPI_RESTAG_SPEED}, {(16 * 8), ACPI_RESTAG_ADDRESS}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmSpiSerialBusTags[] = { {( 6 * 8) + 0, ACPI_RESTAG_SLAVEMODE}, {( 6 * 8) + 2, ACPI_RESTAG_INTERRUPTSHARE}, /* V2 - ACPI 6.0 */ {( 7 * 8) + 0, ACPI_RESTAG_MODE}, {( 7 * 8) + 1, ACPI_RESTAG_DEVICEPOLARITY}, {(12 * 8), ACPI_RESTAG_SPEED}, {(16 * 8), ACPI_RESTAG_LENGTH}, {(17 * 8), ACPI_RESTAG_PHASE}, {(18 * 8), ACPI_RESTAG_POLARITY}, {(19 * 8), ACPI_RESTAG_ADDRESS}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmUartSerialBusTags[] = { {( 6 * 8) + 0, ACPI_RESTAG_SLAVEMODE}, /* Note: not part of original macro */ {( 6 * 8) + 2, ACPI_RESTAG_INTERRUPTSHARE}, /* V2 - ACPI 6.0 */ {( 7 * 8) + 0, ACPI_RESTAG_FLOWCONTROL}, {( 7 * 8) + 2, ACPI_RESTAG_STOPBITS}, {( 7 * 8) + 4, ACPI_RESTAG_LENGTH}, {( 7 * 8) + 7, ACPI_RESTAG_ENDIANNESS}, {(12 * 8), ACPI_RESTAG_SPEED}, {(16 * 8), ACPI_RESTAG_LENGTH_RX}, {(18 * 8), ACPI_RESTAG_LENGTH_TX}, {(20 * 8), ACPI_RESTAG_PARITY}, {(21 * 8), ACPI_RESTAG_LINE}, {0, NULL} }; /* Subtype tables for PinFunction descriptor */ static const ACPI_RESOURCE_TAG AcpiDmPinFunctionTags[] = { {( 4 * 8), ACPI_RESTAG_INTERRUPTSHARE}, {( 6 * 8), ACPI_RESTAG_PINCONFIG}, {( 7 * 8), ACPI_RESTAG_FUNCTION}, {0, NULL} }; /* Subtype tables for PinConfig descriptor */ static const ACPI_RESOURCE_TAG AcpiDmPinConfigTags[] = { {( 4 * 8), ACPI_RESTAG_INTERRUPTSHARE}, {( 6 * 8), ACPI_RESTAG_PINCONFIG_TYPE}, {( 7 * 8), ACPI_RESTAG_PINCONFIG_VALUE}, {0, NULL} }; /* Subtype tables for PinGroupFunction descriptor */ static const ACPI_RESOURCE_TAG AcpiDmPinGroupFunctionTags[] = { {( 6 * 8), ACPI_RESTAG_FUNCTION}, {0, NULL} }; /* Subtype tables for Address descriptor type-specific flags */ static const ACPI_RESOURCE_TAG AcpiDmMemoryFlagTags[] = { {( 5 * 8) + 0, ACPI_RESTAG_READWRITETYPE}, {( 5 * 8) + 1, ACPI_RESTAG_MEMTYPE}, {( 5 * 8) + 3, ACPI_RESTAG_MEMATTRIBUTES}, {( 5 * 8) + 5, ACPI_RESTAG_TYPE}, {0, NULL} }; static const ACPI_RESOURCE_TAG AcpiDmIoFlagTags[] = { {( 5 * 8) + 0, ACPI_RESTAG_RANGETYPE}, {( 5 * 8) + 4, ACPI_RESTAG_TYPE}, {( 5 * 8) + 5, ACPI_RESTAG_TRANSTYPE}, {0, NULL} }; /* Subtype tables for ClockInput descriptor */ static const ACPI_RESOURCE_TAG AcpiDmClockInputTags[] = { {( 6 * 8), ACPI_RESTAG_FQD}, {( 8 * 8), ACPI_RESTAG_FQN}, {0, NULL} }; /* * Dispatch table used to obtain the correct tag table for a descriptor. * * A NULL in this table means one of three things: * 1) The descriptor ID is reserved and invalid * 2) The descriptor has no tags associated with it * 3) The descriptor has subtypes and a separate table will be used. */ static const ACPI_RESOURCE_TAG *AcpiGbl_ResourceTags[] = { /* Small descriptors */ NULL, /* 0x00, Reserved */ NULL, /* 0x01, Reserved */ NULL, /* 0x02, Reserved */ NULL, /* 0x03, Reserved */ AcpiDmIrqTags, /* 0x04, ACPI_RESOURCE_NAME_IRQ_FORMAT */ AcpiDmDmaTags, /* 0x05, ACPI_RESOURCE_NAME_DMA_FORMAT */ NULL, /* 0x06, ACPI_RESOURCE_NAME_START_DEPENDENT */ NULL, /* 0x07, ACPI_RESOURCE_NAME_END_DEPENDENT */ AcpiDmIoTags, /* 0x08, ACPI_RESOURCE_NAME_IO_PORT */ AcpiDmFixedIoTags, /* 0x09, ACPI_RESOURCE_NAME_FIXED_IO_PORT */ AcpiDmFixedDmaTags, /* 0x0A, ACPI_RESOURCE_NAME_FIXED_DMA */ NULL, /* 0x0B, Reserved */ NULL, /* 0x0C, Reserved */ NULL, /* 0x0D, Reserved */ NULL, /* 0x0E, ACPI_RESOURCE_NAME_SMALL_VENDOR */ NULL, /* 0x0F, ACPI_RESOURCE_NAME_END_TAG (not used) */ /* Large descriptors */ NULL, /* 0x00, Reserved */ AcpiDmMemory24Tags, /* 0x01, ACPI_RESOURCE_NAME_MEMORY_24 */ AcpiDmRegisterTags, /* 0x02, ACPI_RESOURCE_NAME_GENERIC_REGISTER */ NULL, /* 0x03, Reserved */ NULL, /* 0x04, ACPI_RESOURCE_NAME_LARGE_VENDOR */ AcpiDmMemory32Tags, /* 0x05, ACPI_RESOURCE_NAME_MEMORY_32 */ AcpiDmFixedMemory32Tags, /* 0x06, ACPI_RESOURCE_NAME_FIXED_MEMORY_32 */ AcpiDmAddress32Tags, /* 0x07, ACPI_RESOURCE_NAME_DWORD_ADDRESS_SPACE */ AcpiDmAddress16Tags, /* 0x08, ACPI_RESOURCE_NAME_WORD_ADDRESS_SPACE */ AcpiDmInterruptTags, /* 0x09, ACPI_RESOURCE_NAME_EXTENDED_XRUPT */ AcpiDmAddress64Tags, /* 0x0A, ACPI_RESOURCE_NAME_QWORD_ADDRESS_SPACE */ AcpiDmExtendedAddressTags, /* 0x0B, ACPI_RESOURCE_NAME_EXTENDED_ADDRESS_SPACE */ NULL, /* 0x0C, ACPI_RESOURCE_NAME_GPIO - Use Subtype table below */ AcpiDmPinFunctionTags, /* 0x0D, ACPI_RESOURCE_NAME_PIN_FUNCTION */ NULL, /* 0x0E, ACPI_RESOURCE_NAME_SERIAL_BUS - Use Subtype table below */ AcpiDmPinConfigTags, /* 0x0F, ACPI_RESOURCE_NAME_PIN_CONFIG */ NULL, /* 0x10, ACPI_RESOURCE_NAME_PIN_GROUP */ AcpiDmPinGroupFunctionTags, /* 0x11, ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION */ AcpiDmPinConfigTags, /* 0x12, ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG - Same as PinConfig */ AcpiDmClockInputTags, /* 0x13, ACPI_RESOURCE_NAME_CLOCK_INPUT */ }; /* GPIO Subtypes */ static const ACPI_RESOURCE_TAG *AcpiGbl_GpioResourceTags[] = { AcpiDmGpioIntTags, /* 0x00 Interrupt Connection */ AcpiDmGpioIoTags /* 0x01 I/O Connection */ }; /* Serial Bus Subtypes */ static const ACPI_RESOURCE_TAG *AcpiGbl_SerialResourceTags[] = { NULL, /* 0x00 Reserved */ AcpiDmI2cSerialBusTags, /* 0x01 I2C SerialBus */ AcpiDmSpiSerialBusTags, /* 0x02 SPI SerialBus */ AcpiDmUartSerialBusTags, /* 0x03 UART SerialBus */ AcpiDmCsi2SerialBusTags /* 0x04 CSI2 SerialBus */ }; /* * Globals used to generate unique resource descriptor names. We use names that * start with underscore and a prefix letter that is not used by other ACPI * reserved names. To this, we append hex 0x00 through 0xFF. These 5 prefixes * allow for 5*256 = 1280 unique names, probably sufficient for any single ASL * file. If this becomes too small, we can use alpha+numerals for a total * of 5*36*36 = 6480. */ #define ACPI_NUM_RES_PREFIX 5 static UINT32 AcpiGbl_NextResourceId = 0; static UINT8 AcpiGbl_NextPrefix = 0; static char AcpiGbl_Prefix[ACPI_NUM_RES_PREFIX] = {'Y','Z','J','K','X'}; /******************************************************************************* * * FUNCTION: AcpiDmCheckResourceReference * * PARAMETERS: Op - Parse Op for the AML opcode * WalkState - Current walk state (with valid scope) * * RETURN: None * * DESCRIPTION: Convert a reference to a resource descriptor to a symbolic * reference if possible * * NOTE: Bit index is used to transparently handle both resource bit * fields and byte fields. * ******************************************************************************/ void AcpiDmCheckResourceReference ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *BufferNameOp; ACPI_PARSE_OBJECT *IndexOp; ACPI_NAMESPACE_NODE *BufferNode; ACPI_NAMESPACE_NODE *ResourceNode; const ACPI_OPCODE_INFO *OpInfo; UINT32 BitIndex; /* We are only interested in the CreateXxxxField opcodes */ OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (OpInfo->Type != AML_TYPE_CREATE_FIELD) { return; } /* Get the buffer term operand */ BufferNameOp = AcpiPsGetDepthNext (NULL, Op); /* Must be a named buffer, not an arg or local or method call */ if (BufferNameOp->Common.AmlOpcode != AML_INT_NAMEPATH_OP) { return; } /* Get the Index term, must be an integer constant to convert */ IndexOp = BufferNameOp->Common.Next; /* Major cheat: The Node field is also used for the Tag ptr. Clear it now */ IndexOp->Common.Node = NULL; OpInfo = AcpiPsGetOpcodeInfo (IndexOp->Common.AmlOpcode); if (OpInfo->ObjectType != ACPI_TYPE_INTEGER) { return; } /* Get the bit offset of the descriptor within the buffer */ if ((Op->Common.AmlOpcode == AML_CREATE_BIT_FIELD_OP) || (Op->Common.AmlOpcode == AML_CREATE_FIELD_OP)) { /* Index operand is a bit offset */ BitIndex = (UINT32) IndexOp->Common.Value.Integer; } else { /* Index operand is a byte offset, convert to bits */ BitIndex = (UINT32) ACPI_MUL_8 (IndexOp->Common.Value.Integer); } /* Lookup the buffer in the namespace */ Status = AcpiNsLookup (WalkState->ScopeInfo, BufferNameOp->Common.Value.String, ACPI_TYPE_BUFFER, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &BufferNode); if (ACPI_FAILURE (Status)) { return; } /* Validate object type, we must have a buffer */ if (BufferNode->Type != ACPI_TYPE_BUFFER) { return; } /* Find the resource descriptor node corresponding to the index */ ResourceNode = AcpiDmGetResourceNode (BufferNode, BitIndex); if (!ResourceNode) { return; } /* Translate the Index to a resource tag pathname */ AcpiGetTagPathname (IndexOp, BufferNode, ResourceNode, BitIndex); } /******************************************************************************* * * FUNCTION: AcpiDmGetResourceNode * * PARAMETERS: BufferNode - Node for the parent buffer * BitIndex - Index into the resource descriptor * * RETURN: Namespace node for the resource descriptor. NULL if not found * * DESCRIPTION: Find a resource descriptor that corresponds to the bit index * ******************************************************************************/ static ACPI_NAMESPACE_NODE * AcpiDmGetResourceNode ( ACPI_NAMESPACE_NODE *BufferNode, UINT32 BitIndex) { ACPI_NAMESPACE_NODE *Node; UINT32 ByteIndex = ACPI_DIV_8 (BitIndex); /* * Child list contains an entry for each resource descriptor. Find * the descriptor that corresponds to the Index. * * If there are no children, this is not a resource template */ Node = BufferNode->Child; while (Node) { /* * Check if the Index falls within this resource. * * Value contains the resource offset, Object contains the resource * length (both in bytes) */ if ((ByteIndex >= Node->Value) && (ByteIndex < (Node->Value + Node->Length))) { return (Node); } Node = Node->Peer; } return (NULL); } /******************************************************************************* * * FUNCTION: AcpiGetTagPathname * * PARAMETERS: BufferNode - Node for the parent buffer * ResourceNode - Node for a resource descriptor * BitIndex - Index into the resource descriptor * * RETURN: Full pathname for a resource tag. NULL if no match. * Path is returned in AML (packed) format. * * DESCRIPTION: Convert a BitIndex into a symbolic resource tag (full pathname) * ******************************************************************************/ static char * AcpiGetTagPathname ( ACPI_PARSE_OBJECT *IndexOp, ACPI_NAMESPACE_NODE *BufferNode, ACPI_NAMESPACE_NODE *ResourceNode, UINT32 BitIndex) { ACPI_STATUS Status; UINT32 ResourceBitIndex; UINT8 ResourceTableIndex; ACPI_SIZE RequiredSize; char *Pathname; char *PathnameEnd; AML_RESOURCE *Aml; ACPI_PARSE_OBJECT *Op; char *InternalPath; char *Tag; /* Get the Op that contains the actual buffer data */ Op = BufferNode->Op->Common.Value.Arg; Op = Op->Common.Next; if (!Op) { return (NULL); } /* Get the individual resource descriptor and validate it */ Aml = ACPI_CAST_PTR ( AML_RESOURCE, &Op->Named.Data[ResourceNode->Value]); Status = AcpiUtValidateResource (NULL, Aml, &ResourceTableIndex); if (ACPI_FAILURE (Status)) { return (NULL); } /* Get offset into this descriptor (from offset into entire buffer) */ ResourceBitIndex = BitIndex - ACPI_MUL_8 (ResourceNode->Value); /* Get the tag associated with this resource descriptor and offset */ Tag = AcpiDmGetResourceTag (ResourceBitIndex, Aml, ResourceTableIndex); if (!Tag) { return (NULL); } /* * Now that we know that we have a reference that can be converted to a * symbol, change the name of the resource to a unique name. */ AcpiDmUpdateResourceName (ResourceNode); /* Get the full pathname to the parent buffer */ RequiredSize = AcpiNsBuildNormalizedPath (BufferNode, NULL, 0, FALSE); if (!RequiredSize) { return (NULL); } Pathname = ACPI_ALLOCATE_ZEROED (RequiredSize + ACPI_PATH_SEGMENT_LENGTH); if (!Pathname) { return (NULL); } (void) AcpiNsBuildNormalizedPath (BufferNode, Pathname, RequiredSize, FALSE); /* * Create the full path to the resource and tag by: * 1) Remove the buffer nameseg from the end of the pathname * 2) Append the resource descriptor nameseg * 3) Append a dot * 4) Append the field tag nameseg * * Always using the full path is a bit brute force, the path can be * often be optimized with carats (if the original buffer namepath is a * single nameseg). This doesn't really matter, because these paths do not * end up in the final compiled AML, it's just an appearance issue for the * disassembled code. */ PathnameEnd = Pathname + (RequiredSize - ACPI_NAMESEG_SIZE - 1); ACPI_COPY_NAMESEG (PathnameEnd, ResourceNode->Name.Ascii); PathnameEnd += ACPI_NAMESEG_SIZE; *PathnameEnd = '.'; PathnameEnd++; ACPI_COPY_NAMESEG (PathnameEnd, Tag); /* Internalize the namepath to AML format */ Status = AcpiNsInternalizeName (Pathname, &InternalPath); ACPI_FREE (Pathname); if (ACPI_FAILURE (Status)) { return (NULL); } /* Update the Op with the symbol */ AcpiPsInitOp (IndexOp, AML_INT_NAMEPATH_OP); IndexOp->Common.Value.String = InternalPath; /* * We will need the tag later. Cheat by putting it in the Node field. * Note, Tag is a const that is part of a lookup table. */ IndexOp->Common.Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Tag); return (InternalPath); } /******************************************************************************* * * FUNCTION: AcpiDmUpdateResourceName * * PARAMETERS: ResourceNode - Node for a resource descriptor * * RETURN: Stores new name in the ResourceNode * * DESCRIPTION: Create a new, unique name for a resource descriptor. Used by * both the disassembly of the descriptor itself and any symbolic * references to the descriptor. Ignored if a unique name has * already been assigned to the resource. * * NOTE: Single threaded, suitable for applications only! * ******************************************************************************/ static void AcpiDmUpdateResourceName ( ACPI_NAMESPACE_NODE *ResourceNode) { char Name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; /* Ignore if a unique name has already been assigned */ if (ResourceNode->Name.Integer != ACPI_DEFAULT_RESNAME) { return; } /* Generate a new ACPI name for the descriptor */ Name[0] = '_'; Name[1] = AcpiGbl_Prefix[AcpiGbl_NextPrefix]; Name[2] = AcpiUtHexToAsciiChar ((UINT64) AcpiGbl_NextResourceId, 4); Name[3] = AcpiUtHexToAsciiChar ((UINT64) AcpiGbl_NextResourceId, 0); /* Update globals for next name */ AcpiGbl_NextResourceId++; if (AcpiGbl_NextResourceId >= 256) { AcpiGbl_NextResourceId = 0; AcpiGbl_NextPrefix++; if (AcpiGbl_NextPrefix > ACPI_NUM_RES_PREFIX) { AcpiGbl_NextPrefix = 0; } } /* Change the resource descriptor name */ ResourceNode->Name.Integer = *ACPI_CAST_PTR (UINT32, &Name[0]); } /******************************************************************************* * * FUNCTION: AcpiDmGetResourceTag * * PARAMETERS: BitIndex - Index into the resource descriptor * Resource - Pointer to the raw resource data * ResourceIndex - Index corresponding to the resource type * * RETURN: Pointer to the resource tag (ACPI_NAME). NULL if no match. * * DESCRIPTION: Convert a BitIndex into a symbolic resource tag. * * Note: ResourceIndex should be previously validated and guaranteed to ve * valid. * ******************************************************************************/ static char * AcpiDmGetResourceTag ( UINT32 BitIndex, AML_RESOURCE *Resource, UINT8 ResourceIndex) { const ACPI_RESOURCE_TAG *TagList; char *Tag = NULL; /* Get the tag list for this resource descriptor type */ TagList = AcpiGbl_ResourceTags[ResourceIndex]; /* * Handle descriptors that have multiple subtypes */ switch (Resource->DescriptorType) { case ACPI_RESOURCE_NAME_ADDRESS16: case ACPI_RESOURCE_NAME_ADDRESS32: case ACPI_RESOURCE_NAME_ADDRESS64: case ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64: /* * Subtype differentiation is the flags. * Kindof brute force, but just blindly search for an index match */ if (Resource->Address.ResourceType == ACPI_ADDRESS_TYPE_MEMORY_RANGE) { Tag = AcpiDmSearchTagList (BitIndex, AcpiDmMemoryFlagTags); } else if (Resource->Address.ResourceType == ACPI_ADDRESS_TYPE_IO_RANGE) { Tag = AcpiDmSearchTagList (BitIndex, AcpiDmIoFlagTags); } /* If we found a match, all done. Else, drop to normal search below */ if (Tag) { return (Tag); } break; case ACPI_RESOURCE_NAME_GPIO: /* GPIO connection has 2 subtypes: Interrupt and I/O */ if (Resource->Gpio.ConnectionType > AML_RESOURCE_MAX_GPIOTYPE) { return (NULL); } TagList = AcpiGbl_GpioResourceTags[Resource->Gpio.ConnectionType]; break; case ACPI_RESOURCE_NAME_SERIAL_BUS: /* SerialBus has 4 subtypes: I2C, SPI, UART, and CSI2 */ if ((Resource->CommonSerialBus.Type == 0) || (Resource->CommonSerialBus.Type > AML_RESOURCE_MAX_SERIALBUSTYPE)) { return (NULL); } TagList = AcpiGbl_SerialResourceTags[Resource->CommonSerialBus.Type]; break; default: break; } /* Search for a match against the BitIndex */ if (TagList) { Tag = AcpiDmSearchTagList (BitIndex, TagList); } return (Tag); } /******************************************************************************* * * FUNCTION: AcpiDmSearchTagList * * PARAMETERS: BitIndex - Index into the resource descriptor * TagList - List to search * * RETURN: Pointer to a tag (ACPI_NAME). NULL if no match found. * * DESCRIPTION: Search a tag list for a match to the input BitIndex. Matches * a fixed offset to a symbolic resource tag name. * ******************************************************************************/ static char * AcpiDmSearchTagList ( UINT32 BitIndex, const ACPI_RESOURCE_TAG *TagList) { /* * Walk the null-terminated tag list to find a matching bit offset. * We are looking for an exact match. */ for ( ; TagList->Tag; TagList++) { if (BitIndex == TagList->BitIndex) { return (TagList->Tag); } } /* A matching offset was not found */ return (NULL); } /******************************************************************************* * * FUNCTION: AcpiDmFindResources * * PARAMETERS: Root - Root of the parse tree * * RETURN: None * * DESCRIPTION: Add all ResourceTemplate declarations to the namespace. Each * resource descriptor in each template is given a node -- used * for later conversion of resource references to symbolic refs. * ******************************************************************************/ void AcpiDmFindResources ( ACPI_PARSE_OBJECT *Root) { ACPI_PARSE_OBJECT *Op = Root; ACPI_PARSE_OBJECT *Parent; /* Walk the entire parse tree */ while (Op) { /* We are interested in Buffer() declarations */ if (Op->Common.AmlOpcode == AML_BUFFER_OP) { /* And only declarations of the form Name (XXXX, Buffer()... ) */ Parent = Op->Common.Parent; if (Parent->Common.AmlOpcode == AML_NAME_OP) { /* * If the buffer is a resource template, add the individual * resource descriptors to the namespace, as children of the * buffer node. */ if (ACPI_SUCCESS (AcpiDmIsResourceTemplate (NULL, Op))) { Op->Common.DisasmOpcode = ACPI_DASM_RESOURCE; AcpiDmAddResourcesToNamespace (Parent->Common.Node, Op); } } } Op = AcpiPsGetDepthNext (Root, Op); } } /******************************************************************************* * * FUNCTION: AcpiDmAddResourcesToNamespace * * PARAMETERS: BufferNode - Node for the parent buffer * Op - Parse op for the buffer * * RETURN: None * * DESCRIPTION: Add an entire resource template to the namespace. Each * resource descriptor is added as a namespace node. * ******************************************************************************/ static void AcpiDmAddResourcesToNamespace ( ACPI_NAMESPACE_NODE *BufferNode, ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *NextOp; /* Get to the ByteData list */ NextOp = Op->Common.Value.Arg; NextOp = NextOp->Common.Next; if (!NextOp) { return; } /* Set Node and Op to point to each other */ BufferNode->Op = Op; Op->Common.Node = BufferNode; /* * Insert each resource into the namespace * NextOp contains the Aml pointer and the Aml length */ AcpiUtWalkAmlResources (NULL, (UINT8 *) NextOp->Named.Data, (ACPI_SIZE) NextOp->Common.Value.Integer, AcpiDmAddResourceToNamespace, (void **) BufferNode); } /******************************************************************************* * * FUNCTION: AcpiDmAddResourceToNamespace * * PARAMETERS: ACPI_WALK_AML_CALLBACK * BufferNode - Node for the parent buffer * * RETURN: Status * * DESCRIPTION: Add one resource descriptor to the namespace as a child of the * parent buffer. The same name is used for each descriptor. This * is changed later to a unique name if the resource is actually * referenced by an AML operator. * ******************************************************************************/ static ACPI_STATUS AcpiDmAddResourceToNamespace ( UINT8 *Aml, UINT32 Length, UINT32 Offset, UINT8 ResourceIndex, void **Context) { ACPI_STATUS Status; ACPI_GENERIC_STATE ScopeInfo; ACPI_NAMESPACE_NODE *Node; /* TBD: Don't need to add descriptors that have no tags defined? */ /* Add the resource to the namespace, as child of the buffer */ ScopeInfo.Scope.Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Context); Status = AcpiNsLookup (&ScopeInfo, "_TMP", ACPI_TYPE_LOCAL_RESOURCE, ACPI_IMODE_LOAD_PASS2, ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE | ACPI_NS_PREFIX_IS_SCOPE, NULL, &Node); if (ACPI_FAILURE (Status)) { return (AE_OK); } /* Set the name to the default, changed later if resource is referenced */ Node->Name.Integer = ACPI_DEFAULT_RESNAME; /* Save the offset of the descriptor (within the original buffer) */ Node->Value = Offset; Node->Length = Length; return (AE_OK); } acpica-unix-20250404/source/common/ahtable.c0000775000175000017500000001700614773714131020100 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahtable - Table of known ACPI tables with descriptions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" /* Local prototypes */ const AH_TABLE * AcpiAhGetTableInfo ( char *Signature); extern const AH_TABLE AcpiGbl_SupportedTables[]; /******************************************************************************* * * FUNCTION: AcpiAhGetTableInfo * * PARAMETERS: Signature - ACPI signature (4 chars) to match * * RETURN: Pointer to a valid AH_TABLE. Null if no match found. * * DESCRIPTION: Find a match in the "help" table of supported ACPI tables * ******************************************************************************/ const AH_TABLE * AcpiAhGetTableInfo ( char *Signature) { const AH_TABLE *Info; for (Info = AcpiGbl_SupportedTables; Info->Signature; Info++) { if (ACPI_COMPARE_NAMESEG (Signature, Info->Signature)) { return (Info); } } return (NULL); } /* * Note: Any tables added here should be duplicated within AcpiDmTableData * in the file common/dmtable.c */ const AH_TABLE AcpiGbl_SupportedTables[] = { {ACPI_SIG_AEST, "Arm Error Source Table"}, {ACPI_SIG_AGDI, "Arm Generic Diagnostic Dump and Reset Device Interface Table"}, {ACPI_SIG_ASF, "Alert Standard Format Table"}, {ACPI_SIG_ASPT, "AMD Secure Processor Table"}, {ACPI_SIG_BDAT, "BIOS Data ACPI Table"}, {ACPI_SIG_BERT, "Boot Error Record Table"}, {ACPI_SIG_BGRT, "Boot Graphics Resource Table"}, {ACPI_SIG_BOOT, "Simple Boot Flag Table"}, {ACPI_SIG_CCEL, "CC-Event Log Table"}, {ACPI_SIG_CDAT, "Coherent Device Attribute Table"}, {ACPI_SIG_CEDT, "CXL Early Discovery Table"}, {ACPI_SIG_CPEP, "Corrected Platform Error Polling Table"}, {ACPI_SIG_CSRT, "Core System Resource Table"}, {ACPI_SIG_DBG2, "Debug Port Table type 2"}, {ACPI_SIG_DBGP, "Debug Port Table"}, {ACPI_SIG_DMAR, "DMA Remapping Table"}, {ACPI_SIG_DRTM, "Dynamic Root of Trust for Measurement Table"}, {ACPI_SIG_DSDT, "Differentiated System Description Table (AML table)"}, {ACPI_SIG_ECDT, "Embedded Controller Boot Resources Table"}, {ACPI_SIG_EINJ, "Error Injection Table"}, {ACPI_SIG_ERDT, "Enhanced Resource Director Technology Table"}, {ACPI_SIG_ERST, "Error Record Serialization Table"}, {ACPI_SIG_FACS, "Firmware ACPI Control Structure"}, {ACPI_SIG_FADT, "Fixed ACPI Description Table (FADT)"}, {ACPI_SIG_FPDT, "Firmware Performance Data Table"}, {ACPI_SIG_GTDT, "Generic Timer Description Table"}, {ACPI_SIG_HEST, "Hardware Error Source Table"}, {ACPI_SIG_HMAT, "Heterogeneous Memory Attributes Table"}, {ACPI_SIG_HPET, "High Precision Event Timer Table"}, {ACPI_SIG_IORT, "IO Remapping Table"}, {ACPI_SIG_IVRS, "I/O Virtualization Reporting Structure"}, {ACPI_SIG_LPIT, "Low Power Idle Table"}, {ACPI_SIG_MADT, "Multiple APIC Description Table (MADT)"}, {ACPI_SIG_MCFG, "Memory Mapped Configuration Table"}, {ACPI_SIG_MCHI, "Management Controller Host Interface Table"}, {ACPI_SIG_MPAM, "Memory System Resource Partitioning and Monitoring Table"}, {ACPI_SIG_MPST, "Memory Power State Table"}, {ACPI_SIG_MRRM, "Memory Range and Region Mapping Table"}, {ACPI_SIG_MSCT, "Maximum System Characteristics Table"}, {ACPI_SIG_MSDM, "Microsoft Data Management Table"}, {ACPI_SIG_NFIT, "NVDIMM Firmware Interface Table"}, {ACPI_SIG_NHLT, "Non HD Audio Link Table"}, {ACPI_SIG_PCCT, "Platform Communications Channel Table"}, {ACPI_SIG_PDTT, "Platform Debug Trigger Table"}, {ACPI_SIG_PHAT, "Platform Health Assessment Table"}, {ACPI_SIG_PMTT, "Platform Memory Topology Table"}, {ACPI_SIG_PPTT, "Processor Properties Topology Table"}, {ACPI_SIG_PRMT, "Platform Runtime Mechanism Table"}, {ACPI_SIG_RASF, "RAS Features Table"}, {ACPI_SIG_RAS2, "RAS2 Features Table"}, {ACPI_SIG_RHCT, "RISC-V Hart Capabilities Table"}, {ACPI_SIG_RGRT, "Regulatory Graphics Resource Table"}, {ACPI_RSDP_NAME,"Root System Description Pointer"}, {ACPI_SIG_RSDT, "Root System Description Table"}, {ACPI_SIG_S3PT, "S3 Performance Table"}, {ACPI_SIG_SBST, "Smart Battery Specification Table"}, {ACPI_SIG_SDEI, "Software Delegated Exception Interface Table"}, {ACPI_SIG_SDEV, "Secure Devices Table"}, {ACPI_SIG_SLIC, "Software Licensing Description Table"}, {ACPI_SIG_SLIT, "System Locality Information Table"}, {ACPI_SIG_SPCR, "Serial Port Console Redirection Table"}, {ACPI_SIG_SPMI, "Server Platform Management Interface Table"}, {ACPI_SIG_SRAT, "System Resource Affinity Table"}, {ACPI_SIG_SSDT, "Secondary System Description Table (AML table)"}, {ACPI_SIG_STAO, "Status Override Table"}, {ACPI_SIG_SVKL, "Storage Volume Key Location Table"}, {ACPI_SIG_TCPA, "Trusted Computing Platform Alliance Table"}, {ACPI_SIG_TDEL, "TD-Event Log Table"}, {ACPI_SIG_TPM2, "Trusted Platform Module hardware interface Table"}, {ACPI_SIG_UEFI, "UEFI Boot Optimization Table"}, {ACPI_SIG_VIOT, "Virtual I/O Translation Table"}, {ACPI_SIG_WAET, "Windows ACPI Emulated Devices Table"}, {ACPI_SIG_WDAT, "Watchdog Action Table"}, {ACPI_SIG_WDDT, "Watchdog Description Table"}, {ACPI_SIG_WDRT, "Watchdog Resource Table"}, {ACPI_SIG_WPBT, "Windows Platform Binary Table"}, {ACPI_SIG_WSMT, "Windows SMM Security Mitigations Table"}, {ACPI_SIG_XENV, "Xen Environment Table"}, {ACPI_SIG_XSDT, "Extended System Description Table"}, {NULL, NULL} }; acpica-unix-20250404/source/common/dmtbinfo3.c0000775000175000017500000010626114773714131020367 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtbinfo3 - Table info for non-AML tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "actbinfo.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmtbinfo3") /* * How to add a new table: * * - Add the C table definition to the actbl1.h or actbl2.h header. * - Add ACPI_xxxx_OFFSET macro(s) for the table (and subtables) to list below. * - Define the table in this file (for the disassembler). If any * new data types are required (ACPI_DMT_*), see below. * - Add an external declaration for the new table definition (AcpiDmTableInfo*) * in acdisam.h * - Add new table definition to the dispatch table in dmtable.c (AcpiDmTableData) * If a simple table (with no subtables), no disassembly code is needed. * Otherwise, create the AcpiDmDump* function for to disassemble the table * and add it to the dmtbdump.c file. * - Add an external declaration for the new AcpiDmDump* function in acdisasm.h * - Add the new AcpiDmDump* function to the dispatch table in dmtable.c * - Create a template for the new table * - Add data table compiler support * * How to add a new data type (ACPI_DMT_*): * * - Add new type at the end of the ACPI_DMT list in acdisasm.h * - Add length and implementation cases in dmtable.c (disassembler) * - Add type and length cases in dtutils.c (DT compiler) */ /* * ACPI Table Information, used to dump formatted ACPI tables * * Each entry is of the form: */ /******************************************************************************* * * CCEL - CC-Event Log Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoCcel[] = { {ACPI_DMT_UINT8, ACPI_CCEL_OFFSET (CCType), "CC Type", 0}, {ACPI_DMT_UINT8, ACPI_CCEL_OFFSET (CCSubType), "CC Sub Type", 0}, {ACPI_DMT_UINT32, ACPI_CCEL_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_CCEL_OFFSET (LogAreaMinimumLength), "Log Area Minimum Length", 0}, {ACPI_DMT_UINT64, ACPI_CCEL_OFFSET (LogAreaStartAddress), "Log Area Start Address", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * SLIC - Software Licensing Description Table. This table contains the standard * ACPI header followed by proprietary data structures * ******************************************************************************/ /* Single subtable, a proprietary format, so treat it as a buffer */ ACPI_DMTABLE_INFO AcpiDmTableInfoSlic[] = { {ACPI_DMT_RAW_BUFFER, 0, "Software Licensing Structure", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * SLIT - System Locality Information Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoSlit[] = { {ACPI_DMT_UINT64, ACPI_SLIT_OFFSET (LocalityCount), "Localities", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * SPCR - Serial Port Console Redirection table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoSpcr[] = { {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (InterfaceType), "Interface Type", 0}, {ACPI_DMT_UINT24, ACPI_SPCR_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_GAS, ACPI_SPCR_OFFSET (SerialPort), "Serial Port Register", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (InterruptType), "Interrupt Type", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PcInterrupt), "PCAT-compatible IRQ", 0}, {ACPI_DMT_UINT32, ACPI_SPCR_OFFSET (Interrupt), "Interrupt", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (BaudRate), "Baud Rate", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (Parity), "Parity", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (StopBits), "Stop Bits", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (FlowControl), "Flow Control", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (TerminalType), "Terminal Type", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (Language), "Language", 0}, {ACPI_DMT_UINT16, ACPI_SPCR_OFFSET (PciDeviceId), "PCI Device ID", 0}, {ACPI_DMT_UINT16, ACPI_SPCR_OFFSET (PciVendorId), "PCI Vendor ID", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PciBus), "PCI Bus", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PciDevice), "PCI Device", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PciFunction), "PCI Function", 0}, {ACPI_DMT_UINT32, ACPI_SPCR_OFFSET (PciFlags), "PCI Flags", 0}, {ACPI_DMT_UINT8, ACPI_SPCR_OFFSET (PciSegment), "PCI Segment", 0}, {ACPI_DMT_UINT32, ACPI_SPCR_OFFSET (UartClkFreq), "Uart Clock Freq", 0}, {ACPI_DMT_UINT32, ACPI_SPCR_OFFSET (PreciseBaudrate), "Precise Baud rate", 0}, {ACPI_DMT_UINT16, ACPI_SPCR_OFFSET (NameSpaceStringLength), "NameSpaceStringLength", 0}, {ACPI_DMT_UINT16, ACPI_SPCR_OFFSET (NameSpaceStringOffset), "NameSpaceStringOffset", 0}, {ACPI_DMT_STRING, ACPI_SPCR_OFFSET (NameSpaceString), "NamespaceString", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * SPMI - Server Platform Management Interface table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoSpmi[] = { {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (InterfaceType), "Interface Type", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (Reserved), "Reserved", DT_NON_ZERO}, /* Value must be 1 */ {ACPI_DMT_UINT16, ACPI_SPMI_OFFSET (SpecRevision), "IPMI Spec Version", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (InterruptType), "Interrupt Type", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (GpeNumber), "GPE Number", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (Reserved1), "Reserved", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciDeviceFlag), "PCI Device Flag", 0}, {ACPI_DMT_UINT32, ACPI_SPMI_OFFSET (Interrupt), "Interrupt", 0}, {ACPI_DMT_GAS, ACPI_SPMI_OFFSET (IpmiRegister), "IPMI Register", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciSegment), "PCI Segment", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciBus), "PCI Bus", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciDevice), "PCI Device", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (PciFunction), "PCI Function", 0}, {ACPI_DMT_UINT8, ACPI_SPMI_OFFSET (Reserved2), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * SRAT - System Resource Affinity Table and Subtables * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat[] = { {ACPI_DMT_UINT32, ACPI_SRAT_OFFSET (TableRevision), "Table Revision", 0}, {ACPI_DMT_UINT64, ACPI_SRAT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* Common Subtable header (one per Subtable) */ ACPI_DMTABLE_INFO AcpiDmTableInfoSratHdr[] = { {ACPI_DMT_SRAT, ACPI_SRATH_OFFSET (Type), "Subtable Type", 0}, {ACPI_DMT_UINT8, ACPI_SRATH_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* SRAT Subtables */ /* 0: Processor Local APIC/SAPIC Affinity */ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat0[] = { {ACPI_DMT_UINT8, ACPI_SRAT0_OFFSET (ProximityDomainLo), "Proximity Domain Low(8)", 0}, {ACPI_DMT_UINT8, ACPI_SRAT0_OFFSET (ApicId), "Apic ID", 0}, {ACPI_DMT_UINT32, ACPI_SRAT0_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_SRAT0_FLAG_OFFSET (Flags,0), "Enabled", 0}, {ACPI_DMT_UINT8, ACPI_SRAT0_OFFSET (LocalSapicEid), "Local Sapic EID", 0}, {ACPI_DMT_UINT24, ACPI_SRAT0_OFFSET (ProximityDomainHi[0]), "Proximity Domain High(24)", 0}, {ACPI_DMT_UINT32, ACPI_SRAT0_OFFSET (ClockDomain), "Clock Domain", 0}, ACPI_DMT_TERMINATOR }; /* 1: Memory Affinity */ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat1[] = { {ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (ProximityDomain), "Proximity Domain", 0}, {ACPI_DMT_UINT16, ACPI_SRAT1_OFFSET (Reserved), "Reserved1", 0}, {ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (BaseAddress), "Base Address", 0}, {ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (Length), "Address Length", 0}, {ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (Reserved1), "Reserved2", 0}, {ACPI_DMT_UINT32, ACPI_SRAT1_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_SRAT1_FLAG_OFFSET (Flags,0), "Enabled", 0}, {ACPI_DMT_FLAG1, ACPI_SRAT1_FLAG_OFFSET (Flags,0), "Hot Pluggable", 0}, {ACPI_DMT_FLAG2, ACPI_SRAT1_FLAG_OFFSET (Flags,0), "Non-Volatile", 0}, {ACPI_DMT_UINT64, ACPI_SRAT1_OFFSET (Reserved2), "Reserved3", 0}, ACPI_DMT_TERMINATOR }; /* 2: Processor Local X2_APIC Affinity (ACPI 4.0) */ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat2[] = { {ACPI_DMT_UINT16, ACPI_SRAT2_OFFSET (Reserved), "Reserved1", 0}, {ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (ProximityDomain), "Proximity Domain", 0}, {ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (ApicId), "Apic ID", 0}, {ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_SRAT2_FLAG_OFFSET (Flags,0), "Enabled", 0}, {ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (ClockDomain), "Clock Domain", 0}, {ACPI_DMT_UINT32, ACPI_SRAT2_OFFSET (Reserved2), "Reserved2", 0}, ACPI_DMT_TERMINATOR }; /* 3: GICC Affinity (ACPI 5.1) */ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat3[] = { {ACPI_DMT_UINT32, ACPI_SRAT3_OFFSET (ProximityDomain), "Proximity Domain", 0}, {ACPI_DMT_UINT32, ACPI_SRAT3_OFFSET (AcpiProcessorUid), "Acpi Processor UID", 0}, {ACPI_DMT_UINT32, ACPI_SRAT3_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_SRAT3_FLAG_OFFSET (Flags,0), "Enabled", 0}, {ACPI_DMT_UINT32, ACPI_SRAT3_OFFSET (ClockDomain), "Clock Domain", 0}, ACPI_DMT_TERMINATOR }; /* 4: GIC ITS Affinity (ACPI 6.2) */ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat4[] = { {ACPI_DMT_UINT32, ACPI_SRAT4_OFFSET (ProximityDomain), "Proximity Domain", 0}, {ACPI_DMT_UINT16, ACPI_SRAT4_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_SRAT4_OFFSET (ItsId), "ITS ID", 0}, ACPI_DMT_TERMINATOR }; /* Common SRAT structure for Generic Affinity Subtables */ #define ACPI_DM_SRAT_GENERIC_AFFINITY \ {ACPI_DMT_UINT8, ACPI_SRAT5_OFFSET (Reserved), "Reserved1", 0}, \ {ACPI_DMT_UINT8, ACPI_SRAT5_OFFSET (DeviceHandleType), "Device Handle Type", 0}, \ {ACPI_DMT_UINT32, ACPI_SRAT5_OFFSET (ProximityDomain), "Proximity Domain", 0}, \ {ACPI_DMT_BUF16, ACPI_SRAT5_OFFSET (DeviceHandle), "Device Handle", 0}, \ {ACPI_DMT_UINT32, ACPI_SRAT5_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, \ {ACPI_DMT_FLAG0, ACPI_SRAT5_FLAG_OFFSET (Flags,0), "Enabled", 0}, \ {ACPI_DMT_FLAG1, ACPI_SRAT5_FLAG_OFFSET (Flags,0), "Architectural Transactions", 0}, \ {ACPI_DMT_UINT32, ACPI_SRAT5_OFFSET (Reserved1), "Reserved2", 0} /* 5: Generic Initiator Affinity Structure (ACPI 6.3) */ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat5[] = { ACPI_DM_SRAT_GENERIC_AFFINITY, ACPI_DMT_TERMINATOR }; /* 6: Generic Port Affinity Structure (ACPI 6.4) */ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat6[] = { ACPI_DM_SRAT_GENERIC_AFFINITY, ACPI_DMT_TERMINATOR }; /* 7: RINTC Affinity Structure (ACPI 6.6) */ ACPI_DMTABLE_INFO AcpiDmTableInfoSrat7[] = { {ACPI_DMT_UINT16, ACPI_SRAT7_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_SRAT7_OFFSET (ProximityDomain), "Proximity Domain", 0}, {ACPI_DMT_UINT32, ACPI_SRAT7_OFFSET (AcpiProcessorUid), "Acpi Processor UID", 0}, {ACPI_DMT_UINT32, ACPI_SRAT7_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_SRAT7_FLAG_OFFSET (Flags,0), "Enabled", 0}, {ACPI_DMT_UINT32, ACPI_SRAT7_OFFSET (ClockDomain), "Clock Domain", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * STAO - Status Override Table (_STA override) - ACPI 6.0 * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoStao[] = { {ACPI_DMT_UINT8, ACPI_STAO_OFFSET (IgnoreUart), "Ignore UART", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoStaoStr[] = { {ACPI_DMT_STRING, 0, "Namepath", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * SVKL - Storage Volume Key Location table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl[] = { {ACPI_DMT_UINT32, ACPI_SVKL_OFFSET (Count), "Key Count", 0}, ACPI_DMT_TERMINATOR }; /* SVKL subtables */ ACPI_DMTABLE_INFO AcpiDmTableInfoSvkl0[] = { {ACPI_DMT_UINT16, ACPI_SVKL0_OFFSET (Type), "Key Type", 0}, {ACPI_DMT_UINT16, ACPI_SVKL0_OFFSET (Format), "Key Format", 0}, {ACPI_DMT_UINT32, ACPI_SVKL0_OFFSET (Size), "Key Size", 0}, {ACPI_DMT_UINT64, ACPI_SVKL0_OFFSET (Address), "Key Address", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * TCPA - Trusted Computing Platform Alliance table (Client) * * NOTE: There are two versions of the table with the same signature -- * the client version and the server version. The common PlatformClass * field is used to differentiate the two types of tables. * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaHdr[] = { {ACPI_DMT_UINT16, ACPI_TCPA_OFFSET (PlatformClass), "Platform Class", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaClient[] = { {ACPI_DMT_UINT32, ACPI_TCPA_CLIENT_OFFSET (MinimumLogLength), "Min Event Log Length", 0}, {ACPI_DMT_UINT64, ACPI_TCPA_CLIENT_OFFSET (LogAddress), "Event Log Address", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaServer[] = { {ACPI_DMT_UINT16, ACPI_TCPA_SERVER_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_TCPA_SERVER_OFFSET (MinimumLogLength), "Min Event Log Length", 0}, {ACPI_DMT_UINT64, ACPI_TCPA_SERVER_OFFSET (LogAddress), "Event Log Address", 0}, {ACPI_DMT_UINT16, ACPI_TCPA_SERVER_OFFSET (SpecRevision), "Specification Revision", 0}, {ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (DeviceFlags), "Device Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_TCPA_SERVER_OFFSET (DeviceFlags), "Pci Device", 0}, {ACPI_DMT_FLAG1, ACPI_TCPA_SERVER_OFFSET (DeviceFlags), "Bus is Pnp", 0}, {ACPI_DMT_FLAG2, ACPI_TCPA_SERVER_OFFSET (DeviceFlags), "Address Valid", 0}, {ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "Interrupt Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "Mode", 0}, {ACPI_DMT_FLAG1, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "Polarity", 0}, {ACPI_DMT_FLAG2, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "GPE SCI Triggered", 0}, {ACPI_DMT_FLAG3, ACPI_TCPA_SERVER_OFFSET (InterruptFlags), "Global System Interrupt", 0}, {ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (GpeNumber), "Gpe Number", 0}, {ACPI_DMT_UINT24, ACPI_TCPA_SERVER_OFFSET (Reserved2[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_TCPA_SERVER_OFFSET (GlobalInterrupt), "Global Interrupt", 0}, {ACPI_DMT_GAS, ACPI_TCPA_SERVER_OFFSET (Address), "Address", 0}, {ACPI_DMT_UINT32, ACPI_TCPA_SERVER_OFFSET (Reserved3), "Reserved", 0}, {ACPI_DMT_GAS, ACPI_TCPA_SERVER_OFFSET (ConfigAddress), "Configuration Address", 0}, {ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (Group), "Pci Group", 0}, {ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (Bus), "Pci Bus", 0}, {ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (Device), "Pci Device", 0}, {ACPI_DMT_UINT8, ACPI_TCPA_SERVER_OFFSET (Function), "Pci Function", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * TDEL - TD-Event Log Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoTdel[] = { {ACPI_DMT_UINT32, ACPI_TDEL_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_TDEL_OFFSET (LogAreaMinimumLength), "Log Area Minimum Length", 0}, {ACPI_DMT_UINT64, ACPI_TDEL_OFFSET (LogAreaStartAddress), "Log Area Start Address", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * TPM2 - Trusted Platform Module (TPM) 2.0 Hardware Interface Table * ******************************************************************************/ /* TPM2 revision 3 */ ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23[] = { {ACPI_DMT_UINT32, ACPI_TPM23_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_TPM23_OFFSET (ControlAddress), "Control Address", 0}, {ACPI_DMT_UINT32, ACPI_TPM23_OFFSET (StartMethod), "Start Method", 0}, ACPI_DMT_TERMINATOR }; /* Trailer in the case that StartMethod == 2 */ ACPI_DMTABLE_INFO AcpiDmTableInfoTpm23a[] = { {ACPI_DMT_UINT32, ACPI_TPM23A_OFFSET (Reserved), "Reserved", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* TPM2 revision 4 */ ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2[] = { {ACPI_DMT_UINT16, ACPI_TPM2_OFFSET (PlatformClass), "Platform Class", 0}, {ACPI_DMT_UINT16, ACPI_TPM2_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_TPM2_OFFSET (ControlAddress), "Control Address", 0}, {ACPI_DMT_TPM2, ACPI_TPM2_OFFSET (StartMethod), "Start Method", 0}, ACPI_DMT_TERMINATOR }; /* Optional trailer. LogLength and LogAddress are additionally optional */ ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2a[] = { {ACPI_DMT_BUF12, ACPI_TPM2A_OFFSET (MethodParameters), "Method Parameters", DT_OPTIONAL}, {ACPI_DMT_UINT32, ACPI_TPM2A_OFFSET (MinimumLogLength), "Minimum Log Length", DT_OPTIONAL}, {ACPI_DMT_UINT64, ACPI_TPM2A_OFFSET (LogAddress), "Log Address", DT_OPTIONAL}, ACPI_DMT_TERMINATOR }; /* 11: Start Method for ARM SMC */ ACPI_DMTABLE_INFO AcpiDmTableInfoTpm211[] = { {ACPI_DMT_UINT32, ACPI_TPM211_OFFSET (GlobalInterrupt), "Global Interrupt", 0}, {ACPI_DMT_UINT8, ACPI_TPM211_OFFSET (InterruptFlags), "Interrupt Flags", 0}, {ACPI_DMT_UINT8, ACPI_TPM211_OFFSET (OperationFlags), "Operation Flags", 0}, {ACPI_DMT_UINT16, ACPI_TPM211_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_TPM211_OFFSET (FunctionId), "Function ID", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * UEFI - UEFI Boot optimization Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoUefi[] = { {ACPI_DMT_UUID, ACPI_UEFI_OFFSET (Identifier[0]), "UUID Identifier", 0}, {ACPI_DMT_UINT16, ACPI_UEFI_OFFSET (DataOffset), "Data Offset", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * VIOT - Virtual I/O Translation Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoViot[] = { {ACPI_DMT_UINT16, ACPI_VIOT_OFFSET (NodeCount), "Node count", 0}, {ACPI_DMT_UINT16, ACPI_VIOT_OFFSET (NodeOffset), "Node offset", 0}, {ACPI_DMT_UINT64, ACPI_VIOT_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* Common VIOT subtable header */ ACPI_DMTABLE_INFO AcpiDmTableInfoViotHeader[] = { {ACPI_DMT_VIOT, ACPI_VIOTH_OFFSET (Type), "Type", 0}, {ACPI_DMT_UINT8, ACPI_VIOTH_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT16, ACPI_VIOTH_OFFSET (Length), "Length", DT_LENGTH}, ACPI_DMT_TERMINATOR }; /* VIOT Subtables */ /* 0x01: PCI Range Node */ ACPI_DMTABLE_INFO AcpiDmTableInfoViot1[] = { {ACPI_DMT_UINT32, ACPI_VIOT1_OFFSET (EndpointStart), "Endpoint start", 0}, {ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (SegmentStart), "PCI Segment start", 0}, {ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (SegmentEnd), "PCI Segment end", 0}, {ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (BdfStart), "PCI BDF start", 0}, {ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (BdfEnd), "PCI BDF end", 0}, {ACPI_DMT_UINT16, ACPI_VIOT1_OFFSET (OutputNode), "Output node", 0}, {ACPI_DMT_UINT48, ACPI_VIOT1_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 0x02: MMIO Endpoint Node */ ACPI_DMTABLE_INFO AcpiDmTableInfoViot2[] = { {ACPI_DMT_UINT32, ACPI_VIOT2_OFFSET (Endpoint), "Endpoint", 0}, {ACPI_DMT_UINT64, ACPI_VIOT2_OFFSET (BaseAddress), "Base address", 0}, {ACPI_DMT_UINT16, ACPI_VIOT2_OFFSET (OutputNode), "Output node", 0}, {ACPI_DMT_UINT48, ACPI_VIOT2_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 0x03: PCI Virtio-IOMMU Node */ ACPI_DMTABLE_INFO AcpiDmTableInfoViot3[] = { {ACPI_DMT_UINT16, ACPI_VIOT3_OFFSET (Segment), "PCI Segment", 0}, {ACPI_DMT_UINT16, ACPI_VIOT3_OFFSET (Bdf), "PCI BDF number", 0}, {ACPI_DMT_UINT64, ACPI_VIOT3_OFFSET (Reserved), "Reserved", 0}, ACPI_DMT_TERMINATOR }; /* 0x04: MMIO Virtio-IOMMU Node */ ACPI_DMTABLE_INFO AcpiDmTableInfoViot4[] = { {ACPI_DMT_UINT32, ACPI_VIOT4_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_UINT64, ACPI_VIOT4_OFFSET (BaseAddress), "Base address", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * WAET - Windows ACPI Emulated devices Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoWaet[] = { {ACPI_DMT_UINT32, ACPI_WAET_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_WAET_OFFSET (Flags), "RTC needs no INT ack", 0}, {ACPI_DMT_FLAG1, ACPI_WAET_OFFSET (Flags), "PM timer, one read only", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * WDAT - Watchdog Action Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoWdat[] = { {ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (HeaderLength), "Header Length", DT_LENGTH}, {ACPI_DMT_UINT16, ACPI_WDAT_OFFSET (PciSegment), "PCI Segment", 0}, {ACPI_DMT_UINT8, ACPI_WDAT_OFFSET (PciBus), "PCI Bus", 0}, {ACPI_DMT_UINT8, ACPI_WDAT_OFFSET (PciDevice), "PCI Device", 0}, {ACPI_DMT_UINT8, ACPI_WDAT_OFFSET (PciFunction), "PCI Function", 0}, {ACPI_DMT_UINT24, ACPI_WDAT_OFFSET (Reserved[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (TimerPeriod), "Timer Period", 0}, {ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (MaxCount), "Max Count", 0}, {ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (MinCount), "Min Count", 0}, {ACPI_DMT_UINT8, ACPI_WDAT_OFFSET (Flags), "Flags (decoded below)", DT_FLAG}, {ACPI_DMT_FLAG0, ACPI_WDAT_OFFSET (Flags), "Enabled", 0}, {ACPI_DMT_FLAG7, ACPI_WDAT_OFFSET (Flags), "Stopped When Asleep", 0}, {ACPI_DMT_UINT24, ACPI_WDAT_OFFSET (Reserved2[0]), "Reserved", 0}, {ACPI_DMT_UINT32, ACPI_WDAT_OFFSET (Entries), "Watchdog Entry Count", 0}, ACPI_DMT_TERMINATOR }; /* WDAT Subtables - Watchdog Instruction Entries */ ACPI_DMTABLE_INFO AcpiDmTableInfoWdat0[] = { {ACPI_DMT_UINT8, ACPI_WDAT0_OFFSET (Action), "Watchdog Action", 0}, {ACPI_DMT_UINT8, ACPI_WDAT0_OFFSET (Instruction), "Instruction", 0}, {ACPI_DMT_UINT16, ACPI_WDAT0_OFFSET (Reserved), "Reserved", 0}, {ACPI_DMT_GAS, ACPI_WDAT0_OFFSET (RegisterRegion), "Register Region", 0}, {ACPI_DMT_UINT32, ACPI_WDAT0_OFFSET (Value), "Value", 0}, {ACPI_DMT_UINT32, ACPI_WDAT0_OFFSET (Mask), "Register Mask", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * WDDT - Watchdog Description Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoWddt[] = { {ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (SpecVersion), "Specification Version", 0}, {ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (TableVersion), "Table Version", 0}, {ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (PciVendorId), "PCI Vendor ID", 0}, {ACPI_DMT_GAS, ACPI_WDDT_OFFSET (Address), "Timer Register", 0}, {ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (MaxCount), "Max Count", 0}, {ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (MinCount), "Min Count", 0}, {ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (Period), "Period", 0}, {ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (Status), "Status (decoded below)", 0}, /* Status Flags byte 0 */ {ACPI_DMT_FLAG0, ACPI_WDDT_FLAG_OFFSET (Status,0), "Available", 0}, {ACPI_DMT_FLAG1, ACPI_WDDT_FLAG_OFFSET (Status,0), "Active", 0}, {ACPI_DMT_FLAG2, ACPI_WDDT_FLAG_OFFSET (Status,0), "OS Owns", 0}, /* Status Flags byte 1 */ {ACPI_DMT_FLAG3, ACPI_WDDT_FLAG_OFFSET (Status,1), "User Reset", 0}, {ACPI_DMT_FLAG4, ACPI_WDDT_FLAG_OFFSET (Status,1), "Timeout Reset", 0}, {ACPI_DMT_FLAG5, ACPI_WDDT_FLAG_OFFSET (Status,1), "Power Fail Reset", 0}, {ACPI_DMT_FLAG6, ACPI_WDDT_FLAG_OFFSET (Status,1), "Unknown Reset", 0}, {ACPI_DMT_UINT16, ACPI_WDDT_OFFSET (Capability), "Capability (decoded below)", 0}, /* Capability Flags byte 0 */ {ACPI_DMT_FLAG0, ACPI_WDDT_FLAG_OFFSET (Capability,0), "Auto Reset", 0}, {ACPI_DMT_FLAG1, ACPI_WDDT_FLAG_OFFSET (Capability,0), "Timeout Alert", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * WDRT - Watchdog Resource Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[] = { {ACPI_DMT_GAS, ACPI_WDRT_OFFSET (ControlRegister), "Control Register", 0}, {ACPI_DMT_GAS, ACPI_WDRT_OFFSET (CountRegister), "Count Register", 0}, {ACPI_DMT_UINT16, ACPI_WDRT_OFFSET (PciDeviceId), "PCI Device ID", 0}, {ACPI_DMT_UINT16, ACPI_WDRT_OFFSET (PciVendorId), "PCI Vendor ID", 0}, {ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (PciBus), "PCI Bus", 0}, {ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (PciDevice), "PCI Device", 0}, {ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (PciFunction), "PCI Function", 0}, {ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (PciSegment), "PCI Segment", 0}, {ACPI_DMT_UINT16, ACPI_WDRT_OFFSET (MaxCount), "Max Count", 0}, {ACPI_DMT_UINT8, ACPI_WDRT_OFFSET (Units), "Counter Units", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * WPBT - Windows Platform Environment Table (ACPI 6.0) * Version 1 * * Conforms to "Windows Platform Binary Table (WPBT)" 29 November 2011 * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt[] = { {ACPI_DMT_UINT32, ACPI_WPBT_OFFSET (HandoffSize), "Handoff Size", 0}, {ACPI_DMT_UINT64, ACPI_WPBT_OFFSET (HandoffAddress), "Handoff Address", 0}, {ACPI_DMT_UINT8, ACPI_WPBT_OFFSET (Layout), "Layout", 0}, {ACPI_DMT_UINT8, ACPI_WPBT_OFFSET (Type), "Type", 0}, {ACPI_DMT_UINT16, ACPI_WPBT_OFFSET (ArgumentsLength), "Arguments Length", 0}, ACPI_DMT_TERMINATOR }; ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt0[] = { {ACPI_DMT_WPBT_UNICODE, ACPI_WPBT2_OFFSET (UnicodeString), "Command-line Arguments", DT_DESCRIBES_OPTIONAL}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * WSMT - Windows SMM Security Mitigations Table * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoWsmt[] = { {ACPI_DMT_UINT32, ACPI_WSMT_OFFSET (ProtectionFlags), "Protection Flags", 0}, {ACPI_DMT_FLAG0, ACPI_WSMT_FLAG_OFFSET (ProtectionFlags,0), "FIXED_COMM_BUFFERS", 0}, {ACPI_DMT_FLAG1, ACPI_WSMT_FLAG_OFFSET (ProtectionFlags,0), "COMM_BUFFER_NESTED_PTR_PROTECTION", 0}, {ACPI_DMT_FLAG2, ACPI_WSMT_FLAG_OFFSET (ProtectionFlags,0), "SYSTEM_RESOURCE_PROTECTION", 0}, ACPI_DMT_TERMINATOR }; /******************************************************************************* * * XENV - Xen Environment table (ACPI 6.0) * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoXenv[] = { {ACPI_DMT_UINT64, ACPI_XENV_OFFSET (GrantTableAddress), "Grant Table Address", 0}, {ACPI_DMT_UINT64, ACPI_XENV_OFFSET (GrantTableSize), "Grant Table Size", 0}, {ACPI_DMT_UINT32, ACPI_XENV_OFFSET (EventInterrupt), "Event Interrupt", 0}, {ACPI_DMT_UINT8, ACPI_XENV_OFFSET (EventFlags), "Event Flags", 0}, ACPI_DMT_TERMINATOR }; /*! [Begin] no source code translation */ /* * Generic types (used in UEFI and custom tables) * * Examples: * * Buffer : cc 04 ff bb * UINT8 : 11 * UINT16 : 1122 * UINT24 : 112233 * UINT32 : 11223344 * UINT56 : 11223344556677 * UINT64 : 1122334455667788 * * String : "This is string" * Unicode : "This string encoded to Unicode" * * GUID : 11223344-5566-7788-99aa-bbccddeeff00 * DevicePath : "\PciRoot(0)\Pci(0x1f,1)\Usb(0,0)" */ #define ACPI_DM_GENERIC_ENTRY(FieldType, FieldName) \ {{FieldType, 0, FieldName, 0}, ACPI_DMT_TERMINATOR} ACPI_DMTABLE_INFO AcpiDmTableInfoGeneric[][2] = { ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT8, "UINT8"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT16, "UINT16"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT24, "UINT24"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT32, "UINT32"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT40, "UINT40"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT48, "UINT48"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT56, "UINT56"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UINT64, "UINT64"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_STRING, "String"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UNICODE, "Unicode"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_BUFFER, "Buffer"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_BUF16, "BUF16"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_UUID, "GUID"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_STRING, "DevicePath"), ACPI_DM_GENERIC_ENTRY (ACPI_DMT_LABEL, "Label"), {ACPI_DMT_TERMINATOR} }; /*! [End] no source code translation !*/ acpica-unix-20250404/source/common/ahpredef.c0000775000175000017500000010143514773714131020256 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahpredef - Table of all known ACPI predefined names * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("ahpredef") /* * iASL only needs a partial table (short descriptions only). * AcpiHelp needs the full table. */ #ifdef ACPI_ASL_COMPILER #define AH_PREDEF(Name, ShortDesc, LongDesc) {Name, ShortDesc} #else #define AH_PREDEF(Name, ShortDesc, LongDesc) {Name, ShortDesc, LongDesc} #endif /* * Predefined ACPI names, with short description and return value. * This table was extracted directly from the ACPI specification. */ const AH_PREDEFINED_NAME AslPredefinedInfo[] = { AH_PREDEF ("_ACx", "Active Cooling, x=0-9", "Returns the active cooling policy threshold values"), AH_PREDEF ("_ADR", "Address", "Returns address of a device on parent bus, and resource field"), AH_PREDEF ("_AEI", "ACPI Event Interrupts", "Returns a list of GPIO events to be used as ACPI events"), AH_PREDEF ("_ALC", "Ambient Light Chromaticity", "Returns the ambient light color chromaticity"), AH_PREDEF ("_ALI", "Ambient Light Illuminance", "Returns the ambient light brightness"), AH_PREDEF ("_ALN", "Alignment", "Base alignment, Resource Descriptor field"), AH_PREDEF ("_ALP", "Ambient Light Polling", "Returns the ambient light sensor polling frequency"), AH_PREDEF ("_ALR", "Ambient Light Response", "Returns the ambient light brightness to display brightness mappings"), AH_PREDEF ("_ALT", "Ambient Light Temperature", "Returns the ambient light color temperature"), AH_PREDEF ("_ALx", "Active List, x=0-9", "Returns a list of active cooling device objects"), AH_PREDEF ("_ART", "Active Cooling Relationship Table", "Returns thermal relationship information between platform devices and fan devices"), AH_PREDEF ("_ASI", "Address Space Id", "Resource Descriptor field"), AH_PREDEF ("_ASZ", "Access Size", "Resource Descriptor field"), AH_PREDEF ("_ATT", "Type-Specific Attribute", "Resource Descriptor field"), AH_PREDEF ("_BAS", "Base Address", "Range base address, Resource Descriptor field"), AH_PREDEF ("_BBN", "BIOS Bus Number", "Returns the PCI bus number returned by the BIOS"), AH_PREDEF ("_BCL", "Brightness Control Levels", "Returns a list of supported brightness control levels"), AH_PREDEF ("_BCM", "Brightness Control Method", "Sets the brightness level of the display device"), AH_PREDEF ("_BCT", "Battery Charge Time", "Returns time remaining to complete charging battery"), AH_PREDEF ("_BDN", "BIOS Dock Name", "Returns the Dock ID returned by the BIOS"), AH_PREDEF ("_BFS", "Back From Sleep", "Inform AML of a wake event"), AH_PREDEF ("_BIF", "Battery Information", "Returns a Control Method Battery information block"), AH_PREDEF ("_BIX", "Battery Information Extended", "Returns a Control Method Battery extended information block"), AH_PREDEF ("_BLT", "Battery Level Threshold", "Set battery level threshold preferences"), AH_PREDEF ("_BM_", "Bus Master", "Resource Descriptor field"), AH_PREDEF ("_BMA", "Battery Measurement Averaging Interval", "Sets battery measurement averaging interval"), AH_PREDEF ("_BMC", "Battery Maintenance Control", "Sets battery maintenance and control features"), AH_PREDEF ("_BMD", "Battery Maintenance Data", "Returns battery maintenance, control, and state data"), AH_PREDEF ("_BMS", "Battery Measurement Sampling Time", "Sets the battery measurement sampling time"), AH_PREDEF ("_BPC", "Battery Power Characteristics", "Returns static values used to configure power threshold support in the platform firmware"), AH_PREDEF ("_BPS", "Battery Power State", "Returns the power delivery capabilities of the battery at the present time"), AH_PREDEF ("_BPT", "Battery Power Threshold", "Set a relative battery peak power capability change threshold"), AH_PREDEF ("_BQC", "Brightness Query Current", "Returns the current display brightness level"), AH_PREDEF ("_BST", "Battery Status", "Returns a Control Method Battery status block"), AH_PREDEF ("_BTH", "Battery Throttle Limit", "Thermal limit for charging and discharging"), AH_PREDEF ("_BTM", "Battery Time", "Returns the battery runtime"), AH_PREDEF ("_BTP", "Battery Trip Point", "Sets a Control Method Battery trip point"), AH_PREDEF ("_CBA", "Configuration Base Address", "Sets the base address for a PCI Express host bridge"), AH_PREDEF ("_CBR", "CXL Host Bridge Register Info", "Get the memory location of CXL Host Bridge Registers"), AH_PREDEF ("_CCA", "Cache Coherency Attribute", "Returns a device's support level for cache coherency"), AH_PREDEF ("_CDM", "Clock Domain", "Returns a logical processor's clock domain identifier"), AH_PREDEF ("_CID", "Compatible ID", "Returns a device's Plug and Play Compatible ID list"), AH_PREDEF ("_CLS", "Class Code", "Returns PCI class code and subclass"), AH_PREDEF ("_CPC", "Continuous Performance Control", "Returns a list of performance control interfaces"), AH_PREDEF ("_CR3", "Warm/Standby Temperature", "Temperature for a fast low power state"), AH_PREDEF ("_CRS", "Current Resource Settings", "Returns the current resource settings for a device"), AH_PREDEF ("_CRT", "Critical Temperature", "Returns the shutdown critical temperature"), AH_PREDEF ("_CSD", "C-State Dependencies", "Returns a list of C-state dependencies"), AH_PREDEF ("_CST", "C-States", "Returns a list of supported C-states"), AH_PREDEF ("_CWS", "Clear Wake Alarm Status", "Clear the status of wake alarms"), AH_PREDEF ("_DBT", "Debounce Timeout", "Timeout value, Resource Descriptor field"), AH_PREDEF ("_DCK", "Dock Present", "Sets docking isolation. Presence indicates device is a docking station"), AH_PREDEF ("_DCS", "Display Current Status", "Returns status of the display output device"), AH_PREDEF ("_DDC", "Display Data Current", "Returns the EDID for the display output device"), AH_PREDEF ("_DDN", "DOS Device Name", "Returns a device logical name"), AH_PREDEF ("_DEC", "Decode", "Device decoding type, Resource Descriptor field"), AH_PREDEF ("_DEP", "Dependencies", "Returns a list of operation region dependencies"), AH_PREDEF ("_DGS", "Display Graphics State", "Return the current state of the output device"), AH_PREDEF ("_DIS", "Disable Device", "Disables a device"), AH_PREDEF ("_DLM", "Device Lock Mutex", "Defines mutex for OS/AML sharing"), AH_PREDEF ("_DMA", "Direct Memory Access", "Returns device current resources for DMA transactions, and resource field"), AH_PREDEF ("_DOD", "Display Output Devices", "Enumerate all devices attached to the display adapter"), AH_PREDEF ("_DOS", "Disable Output Switching", "Sets the display output switching mode"), AH_PREDEF ("_DSC", "Deepest State for Configuration", "Returns the deepest D-state of the device to the OSPM"), AH_PREDEF ("_DPL", "Device Selection Polarity", "Polarity of Device Selection signal, Resource Descriptor field"), AH_PREDEF ("_DRS", "Drive Strength", "Drive Strength setting for GPIO connection, Resource Descriptor field"), AH_PREDEF ("_DSD", "Device-Specific Data", "Returns a list of device property information"), AH_PREDEF ("_DSM", "Device-Specific Method", "Executes device-specific functions"), AH_PREDEF ("_DSS", "Device Set State", "Sets the display device state"), AH_PREDEF ("_DSW", "Device Sleep Wake", "Sets the sleep and wake transition states for a device"), AH_PREDEF ("_DTI", "Device Temperature Indication", "Conveys native device temperature to the platform"), AH_PREDEF ("_Exx", "Edge-Triggered GPE, xx=0x00-0xFF", "Method executed as a result of a general-purpose event"), AH_PREDEF ("_EC_", "Embedded Controller", "returns EC offset and query information"), AH_PREDEF ("_EDL", "Eject Device List", "Returns a list of devices that are dependent on a device (docking)"), AH_PREDEF ("_EJD", "Ejection Dependent Device", "Returns the name of dependent (parent) device (docking)"), AH_PREDEF ("_EJx", "Eject Device, x=0-9", "Begin or cancel a device ejection request (docking)"), AH_PREDEF ("_END", "Endianness", "Endian orientation, Resource Descriptor field"), AH_PREDEF ("_EVT", "Event", "Event method for GPIO events"), AH_PREDEF ("_FDE", "Floppy Disk Enumerate", "Returns floppy disk configuration information"), AH_PREDEF ("_FDI", "Floppy Drive Information", "Returns a floppy drive information block"), AH_PREDEF ("_FDM", "Floppy Drive Mode", "Sets a floppy drive speed"), AH_PREDEF ("_FIF", "Fan Information", "Returns fan device information"), AH_PREDEF ("_FIT", "Firmware Interface Table", "Returns a list of NFIT structures"), AH_PREDEF ("_FIX", "Fixed Register Resource Provider", "Returns a list of devices that implement FADT register blocks"), AH_PREDEF ("_FLC", "Flow Control", "Flow control, Resource Descriptor field"), AH_PREDEF ("_FPS", "Fan Performance States", "Returns a list of supported fan performance states"), AH_PREDEF ("_FSL", "Fan Set Level", "Control method that sets the fan device's speed level (performance state)"), AH_PREDEF ("_FST", "Fan Status", "Returns current status information for a fan device"), AH_PREDEF ("_FUN", "Function Number", "Resource descriptor field"), AH_PREDEF ("_GAI", "Get Averaging Interval", "Returns the power meter averaging interval"), AH_PREDEF ("_GCP", "Get Capabilities", "Get device time capabilities"), AH_PREDEF ("_GHL", "Get Hardware Limit", "Returns the hardware limit enforced by the power meter"), AH_PREDEF ("_GL_", "Global Lock", "OS-defined Global Lock mutex object"), AH_PREDEF ("_GLK", "Get Global Lock Requirement", "Returns a device's Global Lock requirement for device access"), AH_PREDEF ("_GPD", "Get Post Data", "Returns the value of the VGA device that will be posted at boot"), AH_PREDEF ("_GPE", "General Purpose Events", "Predefined scope (\\_GPE) or SCI number for EC"), AH_PREDEF ("_GRA", "Granularity", "Address space granularity, Resource Descriptor field"), AH_PREDEF ("_GRT", "Get Real Time", "Returns current time-of-day from a time/alarm device"), AH_PREDEF ("_GSB", "Global System Interrupt Base", "Returns the GSB for a I/O APIC device"), AH_PREDEF ("_GTF", "Get Task File", "Returns a list of ATA commands to restore a drive to default state"), AH_PREDEF ("_GTM", "Get Timing Mode", "Returns a list of IDE controller timing information"), AH_PREDEF ("_GTS", "Going To Sleep", "Inform AML of pending sleep"), AH_PREDEF ("_GWS", "Get Wake Status", "Return status of wake alarms"), AH_PREDEF ("_HE_", "High-Edge", "Interrupt triggering, Resource Descriptor field"), AH_PREDEF ("_HID", "Hardware ID", "Returns a device's Plug and Play Hardware ID"), AH_PREDEF ("_HMA", "Heterogeneous Memory Attributes", "Returns a list of HMAT structures."), AH_PREDEF ("_HOT", "Hot Temperature", "Returns the critical temperature for sleep (entry to S4)"), AH_PREDEF ("_HPP", "Hot Plug Parameters", "Returns a list of hot-plug information for a PCI device"), AH_PREDEF ("_HPX", "Hot Plug Parameter Extensions", "Returns a list of hot-plug information for a PCI device. Supersedes _HPP"), AH_PREDEF ("_HRV", "Hardware Revision", "Returns a hardware revision value"), AH_PREDEF ("_IFT", "IPMI Interface Type", "See the Intelligent Platform Management Interface Specification"), AH_PREDEF ("_INI", "Initialize", "Performs device specific initialization"), AH_PREDEF ("_INT", "Interrupts", "Interrupt mask bits, Resource Descriptor field"), AH_PREDEF ("_IOR", "I/O Restriction", "Restriction type, Resource Descriptor field"), AH_PREDEF ("_IRC", "Inrush Current", "Presence indicates that a device has a significant inrush current draw"), AH_PREDEF ("_Lxx", "Level-Triggered GPE, xx=0x00-0xFF", "Control method executed as a result of a general-purpose event"), AH_PREDEF ("_LCK", "Lock Device", "Locks or unlocks a device (docking)"), AH_PREDEF ("_LEN", "Length", "Range length, Resource Descriptor field"), AH_PREDEF ("_LID", "Lid Status", "Returns the open/closed status of the lid on a mobile system"), AH_PREDEF ("_LIN", "Lines In Use", "Handshake lines, Resource Descriptor field"), AH_PREDEF ("_LL_", "Low Level", "Interrupt polarity, Resource Descriptor field"), AH_PREDEF ("_LPD", "Low Power Dependencies", "Returns a list of dependencies for low power idle entry"), AH_PREDEF ("_LPI", "Low Power Idle States", "Returns a list of supported low power idle states"), AH_PREDEF ("_LSI", "Label Storage Information", "Returns information about the Label Storage Area associated with the NVDIMM object."), AH_PREDEF ("_LSR", "Label Storage Read", "Returns label data from the Label Storage Area of the NVDIMM object."), AH_PREDEF ("_LSW", "Label Storage Write", "Writes label data in to the Label Storage Area of the NVDIMM object."), AH_PREDEF ("_MAF", "Maximum Address Fixed", "Resource Descriptor field"), AH_PREDEF ("_MAT", "Multiple APIC Table Entry", "Returns a list of MADT APIC structure entries"), AH_PREDEF ("_MAX", "Maximum Base Address", "Resource Descriptor field"), AH_PREDEF ("_MBM", "Memory Bandwidth Monitoring Data", "Returns bandwidth monitoring data for a memory device"), AH_PREDEF ("_MEM", "Memory Attributes", "Resource Descriptor field"), AH_PREDEF ("_MIF", "Minimum Address Fixed", "Resource Descriptor field"), AH_PREDEF ("_MIN", "Minimum Base Address", "Resource Descriptor field"), AH_PREDEF ("_MLS", "Multiple Language String", "Returns a device description in multiple languages"), AH_PREDEF ("_MOD", "Mode", "Interrupt mode, Resource Descriptor field"), AH_PREDEF ("_MSG", "Message", "Sets the system message waiting status indicator"), AH_PREDEF ("_MSM", "Memory Set Monitoring", "Sets bandwidth monitoring parameters for a memory device"), AH_PREDEF ("_MTL", "Minimum Throttle Limit", "Returns the minimum throttle limit for a thermal zone"), AH_PREDEF ("_MTP", "Memory Type", "Resource Descriptor field"), AH_PREDEF ("_NBS", "NVDIMM Boot Status", "Returns information about NVDIMM device’s status at boot time"), AH_PREDEF ("_NCH", "NVDIMM Current Health Information", "Returns current health information of the NVDIMM device"), AH_PREDEF ("_NIC", "NVDIMM Health Error Injection Capabilities", "Returns health error injection capabilities that are supported by the platform"), AH_PREDEF ("_NIG", "NVDIMM Inject Health Error Status","Returns currently active health errors and their error attributes that are injected by _NIH"), AH_PREDEF ("_NIH", "NVDIMM Inject/Clear Health Errors", "Returns the status of injecting or clearing Health Errors"), AH_PREDEF ("_NTT", "Notification Temperature Threshold", "Returns a threshold for device temperature change that requires platform notification"), AH_PREDEF ("_OFF", "Power Off", "Sets a power resource to the off state"), AH_PREDEF ("_ON_", "Power On", "Sets a power resource to the on state"), AH_PREDEF ("_OS_", "Operating System", "Returns a string that identifies the operating system"), AH_PREDEF ("_OSC", "Operating System Capabilities", "Inform AML of host features and capabilities"), AH_PREDEF ("_OSI", "Operating System Interfaces", "Returns supported interfaces, behaviors, and features"), AH_PREDEF ("_OST", "OSPM Status Indication", "Inform AML of event processing status"), AH_PREDEF ("_PAI", "Power Averaging Interval", "Sets the averaging interval for a power meter"), AH_PREDEF ("_PAR", "Parity", "Parity bits, Resource Descriptor field"), AH_PREDEF ("_PCL", "Power Consumer List", "Returns a list of devices powered by a power source"), AH_PREDEF ("_PCT", "Performance Control", "Returns processor performance control and status registers"), AH_PREDEF ("_PDC", "Processor Driver Capabilities", "Inform AML of processor driver capabilities"), AH_PREDEF ("_PDL", "P-state Depth Limit", "Returns the lowest available performance P-state"), AH_PREDEF ("_PHA", "Clock Phase", "Clock phase, Resource Descriptor field"), AH_PREDEF ("_PIC", "Interrupt Model", "Inform AML of the interrupt model in use"), AH_PREDEF ("_PIF", "Power Source Information", "Returns a Power Source information block"), AH_PREDEF ("_PIN", "Pin List", "Pin list, Resource Descriptor field"), AH_PREDEF ("_PLD", "Physical Location of Device", "Returns a device's physical location information"), AH_PREDEF ("_PMC", "Power Meter Capabilities", "Returns a list of Power Meter capabilities info"), AH_PREDEF ("_PMD", "Power Metered Devices", "Returns a list of devices that are measured by the power meter device"), AH_PREDEF ("_PMM", "Power Meter Measurement", "Returns the current value of the Power Meter"), AH_PREDEF ("_POL", "Polarity", "Interrupt polarity, Resource Descriptor field"), AH_PREDEF ("_PPC", "Performance Present Capabilities", "Returns a list of the performance states currently supported by the platform"), AH_PREDEF ("_PPE", "Polling for Platform Error", "Returns the polling interval to retrieve Corrected Platform Error information"), AH_PREDEF ("_PPI", "Pin Configuration", "Resource Descriptor field"), AH_PREDEF ("_PR", "Processor", "Predefined scope for processor objects"), AH_PREDEF ("_PR0", "Power Resources for D0", "Returns a list of dependent power resources to enter state D0 (fully on)"), AH_PREDEF ("_PR1", "Power Resources for D1", "Returns a list of dependent power resources to enter state D1"), AH_PREDEF ("_PR2", "Power Resources for D2", "Returns a list of dependent power resources to enter state D2"), AH_PREDEF ("_PR3", "Power Resources for D3hot", "Returns a list of dependent power resources to enter state D3hot"), AH_PREDEF ("_PRE", "Power Resources for Enumeration", "Returns a list of dependent power resources to enumerate devices on a bus"), AH_PREDEF ("_PRL", "Power Source Redundancy List", "Returns a list of power source devices in the same redundancy grouping"), AH_PREDEF ("_PRR", "Power Resource for Reset", "Execute a reset on a device"), AH_PREDEF ("_PRS", "Possible Resource Settings", "Returns a list of a device's possible resource settings"), AH_PREDEF ("_PRT", "PCI Routing Table", "Returns a list of PCI interrupt mappings"), AH_PREDEF ("_PRW", "Power Resources for Wake", "Returns a list of dependent power resources for waking"), AH_PREDEF ("_PS0", "Power State 0", "Sets a device's power state to D0 (device fully on)"), AH_PREDEF ("_PS1", "Power State 1", "Sets a device's power state to D1"), AH_PREDEF ("_PS2", "Power State 2", "Sets a device's power state to D2"), AH_PREDEF ("_PS3", "Power State 3", "Sets a device's power state to D3 (device off)"), AH_PREDEF ("_PSC", "Power State Current", "Returns a device's current power state"), AH_PREDEF ("_PSD", "Power State Dependencies", "Returns processor P-State dependencies"), AH_PREDEF ("_PSE", "Power State for Enumeration", "Put a bus into enumeration power mode"), AH_PREDEF ("_PSL", "Passive List", "Returns a list of passive cooling device objects"), AH_PREDEF ("_PSR", "Power Source", "Returns the power source device currently in use"), AH_PREDEF ("_PSS", "Performance Supported States", "Returns a list of supported processor performance states"), AH_PREDEF ("_PSV", "Passive Temperature", "Returns the passive trip point temperature"), AH_PREDEF ("_PSW", "Power State Wake", "Sets a device's wake function"), AH_PREDEF ("_PTC", "Processor Throttling Control", "Returns throttling control and status registers"), AH_PREDEF ("_PTP", "Power Trip Points", "Sets trip points for the Power Meter device"), AH_PREDEF ("_PTS", "Prepare To Sleep", "Inform the platform of an impending sleep transition"), AH_PREDEF ("_PUR", "Processor Utilization Request", "Returns the number of processors that the platform would like to idle"), AH_PREDEF ("_PXM", "Device Proximity", "Returns a device's proximity domain identifier"), AH_PREDEF ("_Qxx", "EC Query, xx=0x00-0xFF", "Embedded Controller query and SMBus Alarm control method"), AH_PREDEF ("_RBO", "Register Bit Offset", "Resource Descriptor field"), AH_PREDEF ("_RBW", "Register Bit Width", "Resource Descriptor field"), AH_PREDEF ("_RDI", "Resource Dependencies for Idle", "Returns a list of dependencies for idle states"), AH_PREDEF ("_REG", "Region Availability", "Inform AML code of an operation region availability change"), AH_PREDEF ("_REV", "Supported Integer Width", "Returns the supported integer width (<= 1: 32 bits only, >=2: both 32 and 64 bits"), AH_PREDEF ("_RMV", "Removal Status", "Returns a device's removal ability status (docking)"), AH_PREDEF ("_RNG", "Range", "Memory range type, Resource Descriptor field"), AH_PREDEF ("_RST", "Device Reset", "Executes a reset on a device"), AH_PREDEF ("_ROM", "Read-Only Memory", "Returns a copy of the ROM data for a display device"), AH_PREDEF ("_RT_", "Resource Type", "Resource Descriptor field"), AH_PREDEF ("_RTV", "Relative Temperature Values", "Returns temperature value information"), AH_PREDEF ("_RW_", "Read-Write Status", "Resource Descriptor field"), AH_PREDEF ("_RXL", "Receive Buffer Size", "Serial channel buffer, Resource Descriptor field"), AH_PREDEF ("_S0_", "S0 System State", "Returns values to enter the system into the S0 state"), AH_PREDEF ("_S1_", "S1 System State", "Returns values to enter the system into the S1 state"), AH_PREDEF ("_S2_", "S2 System State", "Returns values to enter the system into the S2 state"), AH_PREDEF ("_S3_", "S3 System State", "Returns values to enter the system into the S3 state"), AH_PREDEF ("_S4_", "S4 System State", "Returns values to enter the system into the S4 state"), AH_PREDEF ("_S5_", "S5 System State", "Returns values to enter the system into the S5 state"), AH_PREDEF ("_S1D", "S1 Device State", "Returns the highest D-state supported by a device when in the S1 state"), AH_PREDEF ("_S2D", "S2 Device State", "Returns the highest D-state supported by a device when in the S2 state"), AH_PREDEF ("_S3D", "S3 Device State", "Returns the highest D-state supported by a device when in the S3 state"), AH_PREDEF ("_S4D", "S4 Device State", "Returns the highest D-state supported by a device when in the S4 state"), AH_PREDEF ("_S0W", "S0 Device Wake State", "Returns the lowest D-state that the device can wake itself from S0"), AH_PREDEF ("_S1W", "S1 Device Wake State", "Returns the lowest D-state for this device that can wake the system from S1"), AH_PREDEF ("_S2W", "S2 Device Wake State", "Returns the lowest D-state for this device that can wake the system from S2"), AH_PREDEF ("_S3W", "S3 Device Wake State", "Returns the lowest D-state for this device that can wake the system from S3"), AH_PREDEF ("_S4W", "S4 Device Wake State", "Returns the lowest D-state for this device that can wake the system from S4"), AH_PREDEF ("_SB_", "System Bus", "Predefined scope for device and bus objects"), AH_PREDEF ("_SBA", "SM Bus Alert information", "Returns info on an SMBus alert"), AH_PREDEF ("_SBI", "SM Bus General information", "Returns info on an SMBus segment"), AH_PREDEF ("_SBR", "SM Bus Data read", "Reads Byte, Word, or Block data from an SMBus segment"), AH_PREDEF ("_SBT", "SM Bus Data transfer", "Performs data transfer to/from an SMBus segment. Implements ProcessCall protocol"), AH_PREDEF ("_SBW", "SM Bus Data write", "Writes Byte, Word, or Block data to an SMBus segment"), AH_PREDEF ("_SBS", "Smart Battery Subsystem", "Returns the subsystem configuration"), AH_PREDEF ("_SCP", "Set Cooling Policy", "Sets the cooling policy (active or passive)"), AH_PREDEF ("_SDD", "Set Device Data", "Sets data for a SATA device"), AH_PREDEF ("_SEG", "PCI Segment", "Returns a device's PCI Segment Group number"), AH_PREDEF ("_SHL", "Set Hardware Limit", "Sets the hardware limit enforced by the Power Meter"), AH_PREDEF ("_SHR", "Shareable", "Interrupt share status, Resource Descriptor field"), AH_PREDEF ("_SI_", "System Indicators", "Predefined scope"), AH_PREDEF ("_SIZ", "Size", "DMA transfer size, Resource Descriptor field"), AH_PREDEF ("_SLI", "System Locality Information", "Returns a list of NUMA system localities"), AH_PREDEF ("_SLV", "Slave Mode", "Mode setting, Resource Descriptor field"), AH_PREDEF ("_SPD", "Set Post Device", "Sets which video device will be posted at boot"), AH_PREDEF ("_SPE", "Speed", "Connection speed, Resource Descriptor field"), AH_PREDEF ("_SRS", "Set Resource Settings", "Sets a device's resource allocation"), AH_PREDEF ("_SRT", "Set Real Time", "Sets the current time for a time/alarm device"), AH_PREDEF ("_SRV", "IPMI Spec Revision", "See the Intelligent Platform Management Interface Specification"), AH_PREDEF ("_SST", "System Status", "Sets the system status indicator"), AH_PREDEF ("_STA", "Status", "Returns the current status of a Device or Power Resource"), AH_PREDEF ("_STB", "Stop Bits", "Serial channel stop bits, Resource Descriptor field"), AH_PREDEF ("_STM", "Set Timing Mode", "Sets an IDE controller transfer timings"), AH_PREDEF ("_STP", "Set Expired Timer Wake Policy", "Sets expired timer policies of the wake alarm device"), AH_PREDEF ("_STR", "Description String", "Returns a device's description string"), AH_PREDEF ("_STV", "Set Timer Value", "Set timer values of the wake alarm device"), AH_PREDEF ("_SUB", "Subsystem ID", "Returns the subsystem ID for a device"), AH_PREDEF ("_SUN", "Slot User Number", "Returns the slot unique ID number"), AH_PREDEF ("_SWS", "System Wake Source", "Returns the source event that caused the system to wake"), AH_PREDEF ("_T_x", "Emitted by ASL Compiler, x=0-9, A-Z", "Reserved for use by ASL compilers"), AH_PREDEF ("_TC1", "Thermal Constant 1", "Returns TC1 for the passive cooling formula"), AH_PREDEF ("_TC2", "Thermal Constant 2", "Returns TC2 for the passive cooling formula"), AH_PREDEF ("_TDL", "T-State Depth Limit", "Returns the _TSS entry number of the lowest power throttling state"), AH_PREDEF ("_TFP", "Thermal Fast Sampling Period", "Returns the sampling period for passive cooling"), AH_PREDEF ("_TIP", "Expired Timer Wake Policy", "Returns timer policies of the wake alarm device"), AH_PREDEF ("_TIV", "Timer Values", "Returns remaining time of the wake alarm device"), AH_PREDEF ("_TMP", "Temperature", "Returns a thermal zone's current temperature"), AH_PREDEF ("_TPC", "Throttling Present Capabilities", "Returns the current number of supported throttling states"), AH_PREDEF ("_TPT", "Trip Point Temperature", "Inform AML that a device's embedded temperature sensor has crossed a temperature trip point"), AH_PREDEF ("_TRA", "Translation", "Address translation offset, Resource Descriptor field"), AH_PREDEF ("_TRS", "Translation Sparse", "Sparse/dense flag, Resource Descriptor field"), AH_PREDEF ("_TRT", "Thermal Relationship Table", "Returns thermal relationships between platform devices"), AH_PREDEF ("_TSD", "Throttling State Dependencies", "Returns a list of T-state dependencies"), AH_PREDEF ("_TSF", "Type-Specific Flags", "Resource Descriptor field"), AH_PREDEF ("_TSN", "Thermal Sensor Device", "Returns a reference to a thermal sensor"), AH_PREDEF ("_TSP", "Thermal Sampling Period", "Returns the thermal sampling period for passive cooling"), AH_PREDEF ("_TSS", "Throttling Supported States", "Returns supported throttling state information"), AH_PREDEF ("_TST", "Temperature Sensor Threshold", "Returns the minimum separation for a device's temperature trip points"), AH_PREDEF ("_TTP", "Translation Type", "Translation/static flag, Resource Descriptor field"), AH_PREDEF ("_TTS", "Transition To State", "Inform AML of an S-state transition"), AH_PREDEF ("_TXL", "Transmit Buffer Size", "Serial Channel buffer, Resource Descriptor field"), AH_PREDEF ("_TYP", "Type", "DMA channel type (speed), Resource Descriptor field"), AH_PREDEF ("_TZ_", "Thermal Zone", "Predefined scope: ACPI 1.0"), AH_PREDEF ("_TZD", "Thermal Zone Devices", "Returns a list of device names associated with a Thermal Zone"), AH_PREDEF ("_TZM", "Thermal Zone Member", "Returns a reference to the thermal zone of which a device is a member"), AH_PREDEF ("_TZP", "Thermal Zone Polling", "Returns a Thermal zone's polling frequency"), AH_PREDEF ("_UID", "Unique ID", "Return a device's unique persistent ID"), AH_PREDEF ("_UPC", "USB Port Capabilities", "Returns a list of USB port capabilities"), AH_PREDEF ("_UPD", "User Presence Detect", "Returns user detection information"), AH_PREDEF ("_UPP", "User Presence Polling", "Returns the recommended user presence polling interval"), AH_PREDEF ("_VAL", "Pin Configuration Value", "Resource Descriptor field"), AH_PREDEF ("_VEN", "Vendor Data", "Resource Descriptor field"), AH_PREDEF ("_VPO", "Video Post Options", "Returns the implemented video post options"), AH_PREDEF ("_Wxx", "Wake Event, xx=0x00-0xFF", "Method executed as a result of a wake event"), AH_PREDEF ("_WAK", "Wake", "Inform AML that the system has just awakened"), AH_PREDEF ("_WPC", "Wireless Power Calibration", "Calibrate power and notify wireless device"), AH_PREDEF ("_WPP", "Wireless Power Polling", "Get recommended polling interval"), AH_PREDEF (NULL, NULL, NULL) }; /******************************************************************************* * * FUNCTION: AcpiAhMatchPredefinedName * * PARAMETERS: Nameseg - Predefined name string * * RETURN: ID info struct. NULL if Nameseg not found * * DESCRIPTION: Lookup a predefined name. * ******************************************************************************/ const AH_PREDEFINED_NAME * AcpiAhMatchPredefinedName ( char *Nameseg) { const AH_PREDEFINED_NAME *Info; /* Nameseg must start with an underscore */ if (*Nameseg != '_') { return (NULL); } /* Search for a match in the predefined name table */ for (Info = AslPredefinedInfo; Info->Name; Info++) { if (ACPI_COMPARE_NAMESEG (Nameseg, Info->Name)) { return (Info); } } return (NULL); } acpica-unix-20250404/source/common/dmswitch.c0000775000175000017500000003744514773714131020333 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: adwalk - Disassembler routines for switch statements * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdisasm.h" #include "acdispat.h" #include "acnamesp.h" #include "acapps.h" #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmswitch") static BOOLEAN AcpiDmIsSwitchBlock ( ACPI_PARSE_OBJECT *Op, char **Temp); static BOOLEAN AcpiDmIsCaseBlock ( ACPI_PARSE_OBJECT *Op); /******************************************************************************* * * FUNCTION: AcpiDmProcessSwitch * * PARAMETERS: Op - Object to be examined * * RETURN: ACPI_STATUS * * DESCRIPTION: Walk function to create a list of all temporary (_T_) objects. * If a While loop is found that can be converted to a Switch, do * the conversion, remove the temporary name from the list, and * mark the parse op with an IGNORE flag. * ******************************************************************************/ ACPI_STATUS AcpiDmProcessSwitch ( ACPI_PARSE_OBJECT *Op) { char *Temp = NULL; ACPI_PARSE_OBJECT_LIST *NewTemp; ACPI_PARSE_OBJECT_LIST *Current; ACPI_PARSE_OBJECT_LIST *Previous; BOOLEAN FoundTemp = FALSE; switch (Op->Common.AmlOpcode) { case AML_NAME_OP: Temp = (char *) (&Op->Named.Name); if (!strncmp(Temp, "_T_", 3)) { /* Allocate and init a new Temp List node */ NewTemp = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_PARSE_OBJECT_LIST)); if (!NewTemp) { return (AE_NO_MEMORY); } if (AcpiGbl_TempListHead) { Current = AcpiGbl_TempListHead; AcpiGbl_TempListHead = NewTemp; AcpiGbl_TempListHead->Op = Op; AcpiGbl_TempListHead->Next = Current; } else { AcpiGbl_TempListHead = NewTemp; AcpiGbl_TempListHead->Op = Op; AcpiGbl_TempListHead->Next = NULL; } } break; case AML_WHILE_OP: if (!AcpiDmIsSwitchBlock (Op, &Temp)) { break; } /* Found a Switch */ Op->Common.DisasmOpcode = ACPI_DASM_SWITCH; Previous = Current = AcpiGbl_TempListHead; while (Current) { /* Note, if we get here Temp is not NULL */ if (!strncmp(Temp, (char *) (&Current->Op->Named.Name), 4)) { /* Match found. Ignore disassembly */ Current->Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; /* Remove from list */ if (Current == AcpiGbl_TempListHead) { AcpiGbl_TempListHead = Current->Next; } else { Previous->Next = Current->Next; } Current->Op = NULL; Current->Next = NULL; ACPI_FREE (Current); FoundTemp = TRUE; break; } Previous = Current; Current = Current->Next; } if (!FoundTemp) { fprintf (stderr, "Warning: Declaration for temp name %.4s not found\n", Temp); } break; default: break; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmClearTempList * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Removes any remaining temporary objects from global list and * frees * ******************************************************************************/ void AcpiDmClearTempList ( void) { ACPI_PARSE_OBJECT_LIST *Current; while (AcpiGbl_TempListHead) { Current = AcpiGbl_TempListHead; AcpiGbl_TempListHead = AcpiGbl_TempListHead->Next; Current->Op = NULL; Current->Next = NULL; ACPI_FREE (Current); } } /******************************************************************************* * * FUNCTION: AcpiDmIsSwitchBlock * * PARAMETERS: Op - While Object * Temp - Where the compiler temp name is returned * (_T_x) * * RETURN: TRUE if While block can be converted to a Switch/Case block * * DESCRIPTION: Determines if While block is a Switch/Case statement. Modifies * parse tree to allow for Switch/Case disassembly during walk. * * EXAMPLE: Example of parse tree to be converted * * While * One * Store * ByteConst * -NamePath- * If * LEqual * -NamePath- * Zero * Return * One * Else * Return * WordConst * Break * ******************************************************************************/ BOOLEAN AcpiDmIsSwitchBlock ( ACPI_PARSE_OBJECT *Op, char **Temp) { ACPI_PARSE_OBJECT *OneOp; ACPI_PARSE_OBJECT *StoreOp; ACPI_PARSE_OBJECT *NamePathOp; ACPI_PARSE_OBJECT *PredicateOp; ACPI_PARSE_OBJECT *CurrentOp; ACPI_PARSE_OBJECT *TempOp; /* Check for One Op Predicate */ OneOp = AcpiPsGetArg (Op, 0); if (!OneOp || (OneOp->Common.AmlOpcode != AML_ONE_OP)) { return (FALSE); } /* Check for Store Op */ StoreOp = OneOp->Common.Next; if (!StoreOp || (StoreOp->Common.AmlOpcode != AML_STORE_OP)) { return (FALSE); } /* Check for Name Op with _T_ string */ NamePathOp = AcpiPsGetArg (StoreOp, 1); if (!NamePathOp || (NamePathOp->Common.AmlOpcode != AML_INT_NAMEPATH_OP)) { return (FALSE); } if (strncmp ((char *) (NamePathOp->Common.Value.Name), "_T_", 3)) { return (FALSE); } *Temp = (char *) (NamePathOp->Common.Value.Name); /* This is a Switch/Case control block */ /* Ignore the One Op Predicate */ OneOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; /* Ignore the Store Op, but not the children */ StoreOp->Common.DisasmOpcode = ACPI_DASM_IGNORE_SINGLE; /* * First arg of Store Op is the Switch condition. * Mark it as a Switch predicate and as a parameter list for paren * closing and correct indentation. */ PredicateOp = AcpiPsGetArg (StoreOp, 0); PredicateOp->Common.DisasmOpcode = ACPI_DASM_SWITCH_PREDICATE; PredicateOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; /* Ignore the Name Op */ NamePathOp->Common.DisasmFlags = ACPI_PARSEOP_IGNORE; /* Remaining opcodes are the Case statements (If/ElseIf's) */ CurrentOp = StoreOp->Common.Next; while (AcpiDmIsCaseBlock (CurrentOp)) { /* Block is a Case structure */ if (CurrentOp->Common.AmlOpcode == AML_ELSE_OP) { /* ElseIf */ CurrentOp->Common.DisasmOpcode = ACPI_DASM_CASE; CurrentOp = AcpiPsGetArg (CurrentOp, 0); } /* If */ CurrentOp->Common.DisasmOpcode = ACPI_DASM_CASE; /* * Mark the parse tree for Case disassembly. There are two * types of Case statements. The first type of statement begins with * an LEqual. The second starts with an LNot and uses a Match statement * on a Package of constants. */ TempOp = AcpiPsGetArg (CurrentOp, 0); switch (TempOp->Common.AmlOpcode) { case (AML_LOGICAL_EQUAL_OP): /* Ignore just the LEqual Op */ TempOp->Common.DisasmOpcode = ACPI_DASM_IGNORE_SINGLE; /* Ignore the NamePath Op */ TempOp = AcpiPsGetArg (TempOp, 0); TempOp->Common.DisasmFlags = ACPI_PARSEOP_IGNORE; /* * Second arg of LEqual will be the Case predicate. * Mark it as a predicate and also as a parameter list for paren * closing and correct indentation. */ PredicateOp = TempOp->Common.Next; PredicateOp->Common.DisasmOpcode = ACPI_DASM_SWITCH_PREDICATE; PredicateOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; break; case (AML_LOGICAL_NOT_OP): /* * The Package will be the predicate of the Case statement. * It's under: * LNOT * LEQUAL * MATCH * PACKAGE */ /* Get the LEqual Op from LNot */ TempOp = AcpiPsGetArg (TempOp, 0); /* Get the Match Op from LEqual */ TempOp = AcpiPsGetArg (TempOp, 0); /* Get the Package Op from Match */ PredicateOp = AcpiPsGetArg (TempOp, 0); /* Mark as parameter list for paren closing */ PredicateOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; /* * The Package list would be too deeply indented if we * chose to simply ignore the all the parent opcodes, so * we rearrange the parse tree instead. */ /* * Save the second arg of the If/Else Op which is the * block code of code for this Case statement. */ TempOp = AcpiPsGetArg (CurrentOp, 1); /* * Move the Package Op to the child (predicate) of the * Case statement. */ CurrentOp->Common.Value.Arg = PredicateOp; PredicateOp->Common.Parent = CurrentOp; /* Add the block code */ PredicateOp->Common.Next = TempOp; break; default: /* Should never get here */ break; } /* Advance to next Case block */ CurrentOp = CurrentOp->Common.Next; } /* If CurrentOp is now an Else, then this is a Default block */ if (CurrentOp && CurrentOp->Common.AmlOpcode == AML_ELSE_OP) { CurrentOp->Common.DisasmOpcode = ACPI_DASM_DEFAULT; } /* * From the first If advance to the Break op. It's possible to * have an Else (Default) op here when there is only one Case * statement, so check for it. */ CurrentOp = StoreOp->Common.Next->Common.Next; if (!CurrentOp) { return (FALSE); } if (CurrentOp->Common.AmlOpcode == AML_ELSE_OP) { CurrentOp = CurrentOp->Common.Next; if (!CurrentOp) { return (FALSE); } } /* Ignore the Break Op */ CurrentOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiDmIsCaseBlock * * PARAMETERS: Op - Object to test * * RETURN: TRUE if Object is beginning of a Case block. * * DESCRIPTION: Determines if an Object is the beginning of a Case block for a * Switch/Case statement. Parse tree must be one of the following * forms: * * Else (Optional) * If * LEqual * -NamePath- _T_x * * Else (Optional) * If * LNot * LEqual * Match * Package * ByteConst * -NamePath- _T_x * ******************************************************************************/ static BOOLEAN AcpiDmIsCaseBlock ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *CurrentOp; if (!Op) { return (FALSE); } /* Look for an If or ElseIf */ CurrentOp = Op; if (CurrentOp->Common.AmlOpcode == AML_ELSE_OP) { CurrentOp = AcpiPsGetArg (CurrentOp, 0); if (!CurrentOp) { return (FALSE); } } if (!CurrentOp || CurrentOp->Common.AmlOpcode != AML_IF_OP) { return (FALSE); } /* Child must be LEqual or LNot */ CurrentOp = AcpiPsGetArg (CurrentOp, 0); if (!CurrentOp) { return (FALSE); } switch (CurrentOp->Common.AmlOpcode) { case (AML_LOGICAL_EQUAL_OP): /* Next child must be NamePath with string _T_ */ CurrentOp = AcpiPsGetArg (CurrentOp, 0); if (!CurrentOp || !CurrentOp->Common.Value.Name || strncmp(CurrentOp->Common.Value.Name, "_T_", 3)) { return (FALSE); } break; case (AML_LOGICAL_NOT_OP): /* Child of LNot must be LEqual op */ CurrentOp = AcpiPsGetArg (CurrentOp, 0); if (!CurrentOp || (CurrentOp->Common.AmlOpcode != AML_LOGICAL_EQUAL_OP)) { return (FALSE); } /* Child of LNot must be Match op */ CurrentOp = AcpiPsGetArg (CurrentOp, 0); if (!CurrentOp || (CurrentOp->Common.AmlOpcode != AML_MATCH_OP)) { return (FALSE); } /* First child of Match must be Package op */ CurrentOp = AcpiPsGetArg (CurrentOp, 0); if (!CurrentOp || (CurrentOp->Common.AmlOpcode != AML_PACKAGE_OP)) { return (FALSE); } /* Third child of Match must be NamePath with string _T_ */ CurrentOp = AcpiPsGetArg (CurrentOp->Common.Parent, 2); if (!CurrentOp || !CurrentOp->Common.Value.Name || strncmp(CurrentOp->Common.Value.Name, "_T_", 3)) { return (FALSE); } break; default: return (FALSE); } return (TRUE); } acpica-unix-20250404/source/common/adwalk.c0000775000175000017500000007651614773714131017756 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: adwalk - Application-level disassembler parse tree walk routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdisasm.h" #include "acdispat.h" #include "acnamesp.h" #include "acapps.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("adwalk") /* * aslmap - opcode mappings and reserved method names */ ACPI_OBJECT_TYPE AslMapNamedOpcodeToDataType ( UINT16 Opcode); /* Local prototypes */ static ACPI_STATUS AcpiDmFindOrphanDescending ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS AcpiDmDumpDescending ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS AcpiDmXrefDescendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS AcpiDmCommonAscendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS AcpiDmLoadDescendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static UINT32 AcpiDmInspectPossibleArgs ( UINT32 CurrentOpArgCount, UINT32 TargetCount, ACPI_PARSE_OBJECT *Op); static ACPI_STATUS AcpiDmCommonDescendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS AcpiDmProcessResourceDescriptors ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); /******************************************************************************* * * FUNCTION: AcpiDmDumpTree * * PARAMETERS: Origin - Starting object * * RETURN: None * * DESCRIPTION: Parse tree walk to format and output the nodes * ******************************************************************************/ void AcpiDmDumpTree ( ACPI_PARSE_OBJECT *Origin) { ACPI_OP_WALK_INFO Info; if (!Origin) { return; } AcpiOsPrintf ("/*\nAML Parse Tree\n\n"); Info.Flags = 0; Info.Count = 0; Info.Level = 0; Info.WalkState = NULL; AcpiDmWalkParseTree (Origin, AcpiDmDumpDescending, NULL, &Info); AcpiOsPrintf ("*/\n\n"); } /******************************************************************************* * * FUNCTION: AcpiDmFindOrphanMethods * * PARAMETERS: Origin - Starting object * * RETURN: None * * DESCRIPTION: Parse tree walk to find "orphaned" method invocations -- methods * that are not resolved in the namespace * ******************************************************************************/ void AcpiDmFindOrphanMethods ( ACPI_PARSE_OBJECT *Origin) { ACPI_OP_WALK_INFO Info; if (!Origin) { return; } Info.Flags = 0; Info.Level = 0; Info.WalkState = NULL; AcpiDmWalkParseTree (Origin, AcpiDmFindOrphanDescending, NULL, &Info); } /******************************************************************************* * * FUNCTION: AcpiDmFinishNamespaceLoad * * PARAMETERS: ParseTreeRoot - Root of the parse tree * NamespaceRoot - Root of the internal namespace * OwnerId - OwnerId of the table to be disassembled * * RETURN: None * * DESCRIPTION: Load all namespace items that are created within control * methods. Used before namespace cross reference * ******************************************************************************/ void AcpiDmFinishNamespaceLoad ( ACPI_PARSE_OBJECT *ParseTreeRoot, ACPI_NAMESPACE_NODE *NamespaceRoot, ACPI_OWNER_ID OwnerId) { ACPI_STATUS Status; ACPI_OP_WALK_INFO Info; ACPI_WALK_STATE *WalkState; if (!ParseTreeRoot) { return; } /* Create and initialize a new walk state */ WalkState = AcpiDsCreateWalkState (OwnerId, ParseTreeRoot, NULL, NULL); if (!WalkState) { return; } Status = AcpiDsScopeStackPush (NamespaceRoot, NamespaceRoot->Type, WalkState); if (ACPI_FAILURE (Status)) { return; } Info.Flags = 0; Info.Level = 0; Info.WalkState = WalkState; AcpiDmWalkParseTree (ParseTreeRoot, AcpiDmLoadDescendingOp, AcpiDmCommonAscendingOp, &Info); ACPI_FREE (WalkState); } /******************************************************************************* * * FUNCTION: AcpiDmCrossReferenceNamespace * * PARAMETERS: ParseTreeRoot - Root of the parse tree * NamespaceRoot - Root of the internal namespace * OwnerId - OwnerId of the table to be disassembled * * RETURN: None * * DESCRIPTION: Cross reference the namespace to create externals * ******************************************************************************/ void AcpiDmCrossReferenceNamespace ( ACPI_PARSE_OBJECT *ParseTreeRoot, ACPI_NAMESPACE_NODE *NamespaceRoot, ACPI_OWNER_ID OwnerId) { ACPI_STATUS Status; ACPI_OP_WALK_INFO Info; ACPI_WALK_STATE *WalkState; if (!ParseTreeRoot) { return; } /* Create and initialize a new walk state */ WalkState = AcpiDsCreateWalkState (OwnerId, ParseTreeRoot, NULL, NULL); if (!WalkState) { return; } Status = AcpiDsScopeStackPush (NamespaceRoot, NamespaceRoot->Type, WalkState); if (ACPI_FAILURE (Status)) { return; } Info.Flags = 0; Info.Level = 0; Info.WalkState = WalkState; AcpiDmWalkParseTree (ParseTreeRoot, AcpiDmXrefDescendingOp, AcpiDmCommonAscendingOp, &Info); ACPI_FREE (WalkState); } /******************************************************************************* * * FUNCTION: AcpiDmConvertParseObjects * * PARAMETERS: ParseTreeRoot - Root of the parse tree * NamespaceRoot - Root of the internal namespace * * RETURN: None * * DESCRIPTION: Begin parse tree walk to perform conversions needed for * disassembly. These include resource descriptors and switch/case * operations. * ******************************************************************************/ void AcpiDmConvertParseObjects ( ACPI_PARSE_OBJECT *ParseTreeRoot, ACPI_NAMESPACE_NODE *NamespaceRoot) { ACPI_STATUS Status; ACPI_OP_WALK_INFO Info; ACPI_WALK_STATE *WalkState; if (!ParseTreeRoot) { return; } /* Create and initialize a new walk state */ WalkState = AcpiDsCreateWalkState (0, ParseTreeRoot, NULL, NULL); if (!WalkState) { return; } Status = AcpiDsScopeStackPush (NamespaceRoot, NamespaceRoot->Type, WalkState); if (ACPI_FAILURE (Status)) { ACPI_FREE (WalkState); return; } Info.Flags = 0; Info.Level = 0; Info.WalkState = WalkState; AcpiDmWalkParseTree (ParseTreeRoot, AcpiDmCommonDescendingOp, AcpiDmCommonAscendingOp, &Info); ACPI_FREE (WalkState); if (AcpiGbl_TempListHead) { AcpiDmClearTempList(); } return; } /******************************************************************************* * * FUNCTION: AcpiDmDumpDescending * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Format and print contents of one parse Op. * ******************************************************************************/ static ACPI_STATUS AcpiDmDumpDescending ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_OP_WALK_INFO *Info = Context; char *Path; ACPI_STATUS Status; if (!Op) { return (AE_OK); } /* Most of the information (count, level, name) here */ Info->Count++; AcpiOsPrintf ("% 5d [%2.2d] ", Info->Count, Level); AcpiDmIndent (Level); AcpiOsPrintf ("%-28s", AcpiPsGetOpcodeName (Op->Common.AmlOpcode)); /* Extra info is helpful */ switch (Op->Common.AmlOpcode) { case AML_BYTE_OP: AcpiOsPrintf ("%2.2X", (UINT32) Op->Common.Value.Integer); break; case AML_WORD_OP: AcpiOsPrintf ("%4.4X", (UINT32) Op->Common.Value.Integer); break; case AML_DWORD_OP: AcpiOsPrintf ("%8.8X", (UINT32) Op->Common.Value.Integer); break; case AML_QWORD_OP: AcpiOsPrintf ("%8.8X%8.8X", ACPI_FORMAT_UINT64 (Op->Common.Value.Integer)); break; case AML_INT_NAMEPATH_OP: if (Op->Common.Value.String) { Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, Op->Common.Value.String, NULL, &Path); if (ACPI_SUCCESS (Status)) { AcpiOsPrintf ("%s %p", Path, Op->Common.Node); ACPI_FREE (Path); } else { AcpiOsPrintf ("Could not externalize pathname for node [%4.4s]", Op->Common.Node->Name.Ascii); } } else { AcpiOsPrintf ("[NULL]"); } break; case AML_NAME_OP: case AML_METHOD_OP: case AML_DEVICE_OP: AcpiOsPrintf ("%4.4s", ACPI_CAST_PTR (char, &Op->Named.Name)); break; case AML_INT_NAMEDFIELD_OP: AcpiOsPrintf ("%4.4s Length: (bits) %8.8X%8.8X (bytes) %8.8X%8.8X", ACPI_CAST_PTR (char, &Op->Named.Name), ACPI_FORMAT_UINT64 (Op->Common.Value.Integer), ACPI_FORMAT_UINT64 (Op->Common.Value.Integer / 8)); break; default: break; } AcpiOsPrintf ("\n"); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmFindOrphanDescending * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Check namepath Ops for orphaned method invocations * * Note: Parts of this are experimental, under possible further development. * ******************************************************************************/ static ACPI_STATUS AcpiDmFindOrphanDescending ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { const ACPI_OPCODE_INFO *OpInfo; ACPI_PARSE_OBJECT *ChildOp; ACPI_PARSE_OBJECT *NextOp; ACPI_PARSE_OBJECT *ParentOp; UINT32 ArgCount; if (!Op) { return (AE_OK); } #ifdef ACPI_UNDER_DEVELOPMENT OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); #endif switch (Op->Common.AmlOpcode) { #ifdef ACPI_UNDER_DEVELOPMENT case AML_ADD_OP: ChildOp = Op->Common.Value.Arg; if ((ChildOp->Common.AmlOpcode == AML_INT_NAMEPATH_OP) && !ChildOp->Common.Node) { AcpiNsExternalizeName (ACPI_UINT32_MAX, ChildOp->Common.Value.String, NULL, &Path); AcpiOsPrintf ("/* %-16s A-NAMEPATH: %s */\n", Op->Common.AmlOpName, Path); ACPI_FREE (Path); NextOp = Op->Common.Next; if (!NextOp) { /* This NamePath has no args, assume it is an integer */ AcpiDmAddOpToExternalList (ChildOp, ChildOp->Common.Value.String, ACPI_TYPE_INTEGER, 0, 0); return (AE_OK); } ArgCount = AcpiDmInspectPossibleArgs (3, 1, NextOp); AcpiOsPrintf ("/* A-CHILDREN: %u Actual %u */\n", ArgCount, AcpiDmCountChildren (Op)); if (ArgCount < 1) { /* One Arg means this is just a Store(Name,Target) */ AcpiDmAddOpToExternalList (ChildOp, ChildOp->Common.Value.String, ACPI_TYPE_INTEGER, 0, 0); return (AE_OK); } AcpiDmAddOpToExternalList (ChildOp, ChildOp->Common.Value.String, ACPI_TYPE_METHOD, ArgCount, 0); } break; #endif case AML_STORE_OP: ChildOp = Op->Common.Value.Arg; if ((ChildOp->Common.AmlOpcode == AML_INT_NAMEPATH_OP) && !ChildOp->Common.Node) { NextOp = Op->Common.Next; if (!NextOp) { /* This NamePath has no args, assume it is an integer */ AcpiDmAddOpToExternalList (ChildOp, ChildOp->Common.Value.String, ACPI_TYPE_INTEGER, 0, 0); return (AE_OK); } ArgCount = AcpiDmInspectPossibleArgs (2, 1, NextOp); if (ArgCount <= 1) { /* One Arg means this is just a Store(Name,Target) */ AcpiDmAddOpToExternalList (ChildOp, ChildOp->Common.Value.String, ACPI_TYPE_INTEGER, ArgCount, 0); return (AE_OK); } AcpiDmAddOpToExternalList (ChildOp, ChildOp->Common.Value.String, ACPI_TYPE_METHOD, ArgCount, 0); } break; case AML_INT_NAMEPATH_OP: /* Must examine parent to see if this namepath is an argument */ ParentOp = Op->Common.Parent; OpInfo = AcpiPsGetOpcodeInfo (ParentOp->Common.AmlOpcode); if ((OpInfo->Class != AML_CLASS_EXECUTE) && (OpInfo->Class != AML_CLASS_CREATE) && (OpInfo->ObjectType != ACPI_TYPE_LOCAL_ALIAS) && (ParentOp->Common.AmlOpcode != AML_INT_METHODCALL_OP) && !Op->Common.Node) { ArgCount = AcpiDmInspectPossibleArgs (0, 0, Op); /* * Check if namepath is a predicate for if/while or lone parameter to * a return. */ if (ArgCount == 0) { if (((ParentOp->Common.AmlOpcode == AML_IF_OP) || (ParentOp->Common.AmlOpcode == AML_WHILE_OP) || (ParentOp->Common.AmlOpcode == AML_RETURN_OP)) && /* And namepath is the first argument */ (ParentOp->Common.Value.Arg == Op)) { AcpiDmAddOpToExternalList (Op, Op->Common.Value.String, ACPI_TYPE_INTEGER, 0, 0); break; } } /* * This is a standalone namestring (not a parameter to another * operator) - it *must* be a method invocation, nothing else is * grammatically possible. */ AcpiDmAddOpToExternalList (Op, Op->Common.Value.String, ACPI_TYPE_METHOD, ArgCount, 0); } break; default: break; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmLoadDescendingOp * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Descending handler for namespace control method object load * ******************************************************************************/ static ACPI_STATUS AcpiDmLoadDescendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_OP_WALK_INFO *Info = Context; const ACPI_OPCODE_INFO *OpInfo; ACPI_WALK_STATE *WalkState; ACPI_OBJECT_TYPE ObjectType; ACPI_STATUS Status; char *Path = NULL; ACPI_PARSE_OBJECT *NextOp; ACPI_NAMESPACE_NODE *Node; char FieldPath[5]; BOOLEAN PreDefined = FALSE; UINT8 PreDefineIndex = 0; WalkState = Info->WalkState; OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); /* Only interested in operators that create new names */ if (!(OpInfo->Flags & AML_NAMED) && !(OpInfo->Flags & AML_CREATE)) { goto Exit; } /* Get the NamePath from the appropriate place */ if (OpInfo->Flags & AML_NAMED) { /* For all named operators, get the new name */ Path = Op->Named.Path; if (!Path && Op->Common.AmlOpcode == AML_INT_NAMEDFIELD_OP) { *ACPI_CAST_PTR (UINT32, &FieldPath[0]) = Op->Named.Name; FieldPath[4] = 0; Path = FieldPath; } } else if (OpInfo->Flags & AML_CREATE) { /* New name is the last child */ NextOp = Op->Common.Value.Arg; while (NextOp->Common.Next) { NextOp = NextOp->Common.Next; } Path = NextOp->Common.Value.String; } if (!Path) { goto Exit; } /* Insert the name into the namespace */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, ACPI_IMODE_LOAD_PASS2, ACPI_NS_DONT_OPEN_SCOPE, WalkState, &Node); Op->Common.Node = Node; if (ACPI_SUCCESS (Status)) { /* Check if it's a predefined node */ while (AcpiGbl_PreDefinedNames[PreDefineIndex].Name) { if (ACPI_COMPARE_NAMESEG (Node->Name.Ascii, AcpiGbl_PreDefinedNames[PreDefineIndex].Name)) { PreDefined = TRUE; break; } PreDefineIndex++; } /* * Set node owner id if it satisfies all the following conditions: * 1) Not a predefined node, _SB_ etc * 2) Not the root node * 3) Not a node created by Scope */ if (!PreDefined && (Node != AcpiGbl_RootNode) && (Op->Common.AmlOpcode != AML_SCOPE_OP)) { Node->OwnerId = WalkState->OwnerId; } } Exit: if (AcpiNsOpensScope (ObjectType)) { if (Op->Common.Node) { Status = AcpiDsScopeStackPush (Op->Common.Node, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { return (Status); } } } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmXrefDescendingOp * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Descending handler for namespace cross reference * ******************************************************************************/ static ACPI_STATUS AcpiDmXrefDescendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_OP_WALK_INFO *Info = Context; const ACPI_OPCODE_INFO *OpInfo; ACPI_WALK_STATE *WalkState; ACPI_OBJECT_TYPE ObjectType; ACPI_OBJECT_TYPE ObjectType2; ACPI_STATUS Status; char *Path = NULL; ACPI_PARSE_OBJECT *NextOp; ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *Object; UINT32 ParamCount = 0; char *Pathname; UINT16 Flags = 0; WalkState = Info->WalkState; OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); if ((!(OpInfo->Flags & AML_NAMED)) && (!(OpInfo->Flags & AML_CREATE)) && (Op->Common.AmlOpcode != AML_INT_NAMEPATH_OP) && (Op->Common.AmlOpcode != AML_NOTIFY_OP)) { goto Exit; } /* Get the NamePath from the appropriate place */ if (OpInfo->Flags & AML_NAMED) { /* * Only these two operators (Alias, Scope) refer to an existing * name, it is the first argument */ if (Op->Common.AmlOpcode == AML_ALIAS_OP) { ObjectType = ACPI_TYPE_ANY; NextOp = Op->Common.Value.Arg; NextOp = NextOp->Common.Value.Arg; if (NextOp->Common.AmlOpcode == AML_INT_NAMEPATH_OP) { Path = NextOp->Common.Value.String; } } else if (Op->Common.AmlOpcode == AML_SCOPE_OP || Op->Common.AmlOpcode == AML_EXTERNAL_OP) { Path = Op->Named.Path; } } else if (OpInfo->Flags & AML_CREATE) { /* Referenced Buffer Name is the first child */ ObjectType = ACPI_TYPE_BUFFER; /* Change from TYPE_BUFFER_FIELD */ NextOp = Op->Common.Value.Arg; if (NextOp->Common.AmlOpcode == AML_INT_NAMEPATH_OP) { Path = NextOp->Common.Value.String; } } else if (Op->Common.AmlOpcode == AML_NOTIFY_OP) { Path = Op->Common.Value.Arg->Asl.Value.String; } else { Path = Op->Common.Value.String; } if (!Path) { goto Exit; } /* * Lookup the name in the namespace. Name must exist at this point, or it * is an invalid reference. * * The namespace is also used as a lookup table for references to resource * descriptors and the fields within them. */ Node = NULL; Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, WalkState, &Node); if (ACPI_SUCCESS (Status) && (Node->Flags & ANOBJ_IS_EXTERNAL)) { /* Node was created by an External() statement */ Status = AE_NOT_FOUND; } if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_FOUND) { /* * Add this symbol as an external declaration, except if the * parent is a CondRefOf operator. For this operator, we do not * need an external, nor do we want one, since this can cause * disassembly problems if the symbol is actually a control * method. */ if (!(Op->Asl.Parent && (Op->Asl.Parent->Asl.AmlOpcode == AML_CONDITIONAL_REF_OF_OP))) { if (Node) { AcpiDmAddNodeToExternalList (Node, (UINT8) ObjectType, 7, Flags); } else { AcpiDmAddOpToExternalList (Op, Path, (UINT8) ObjectType, 7, Flags); } } } } /* * Found the node, but check if it came from an external table. * Add it to external list. Note: Node->OwnerId == 0 indicates * one of the built-in ACPI Names (_OS_ etc.) which can safely * be ignored. */ else if (Node->OwnerId && (WalkState->OwnerId != Node->OwnerId)) { ObjectType2 = ObjectType; Object = AcpiNsGetAttachedObject (Node); if (Object) { ObjectType2 = Object->Common.Type; if (ObjectType2 == ACPI_TYPE_METHOD) { ParamCount = Object->Method.ParamCount; } } Pathname = AcpiNsGetExternalPathname (Node); if (!Pathname) { return (AE_NO_MEMORY); } AcpiDmAddNodeToExternalList (Node, (UINT8) ObjectType2, ParamCount, ACPI_EXT_RESOLVED_REFERENCE); ACPI_FREE (Pathname); Op->Common.Node = Node; } else { Op->Common.Node = Node; } Exit: /* Open new scope if necessary */ if (AcpiNsOpensScope (ObjectType)) { if (Op->Common.Node) { Status = AcpiDsScopeStackPush (Op->Common.Node, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { return (Status); } } } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmCommonDescendingOp * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: ACPI_STATUS * * DESCRIPTION: Perform parse tree preprocessing before main disassembly walk. * ******************************************************************************/ static ACPI_STATUS AcpiDmCommonDescendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_STATUS Status; /* Resource descriptor conversion */ Status = AcpiDmProcessResourceDescriptors (Op, Level, Context); if (ACPI_FAILURE (Status)) { return (Status); } /* Switch/Case conversion */ Status = AcpiDmProcessSwitch (Op); return (Status); } /******************************************************************************* * * FUNCTION: AcpiDmProcessResourceDescriptors * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: ACPI_STATUS * * DESCRIPTION: Convert fixed-offset references to resource descriptors to * symbolic references. Should only be called after namespace has * been cross referenced. * ******************************************************************************/ static ACPI_STATUS AcpiDmProcessResourceDescriptors ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_OP_WALK_INFO *Info = Context; const ACPI_OPCODE_INFO *OpInfo; ACPI_WALK_STATE *WalkState; ACPI_OBJECT_TYPE ObjectType; ACPI_STATUS Status; WalkState = Info->WalkState; OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); /* Open new scope if necessary */ ObjectType = OpInfo->ObjectType; if (AcpiNsOpensScope (ObjectType)) { if (Op->Common.Node) { Status = AcpiDsScopeStackPush (Op->Common.Node, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { return (Status); } } } /* * Check if this operator contains a reference to a resource descriptor. * If so, convert the reference into a symbolic reference. */ AcpiDmCheckResourceReference (Op, WalkState); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmCommonAscendingOp * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: None * * DESCRIPTION: Ascending handler for combined parse/namespace walks. Closes * scope if necessary. * ******************************************************************************/ static ACPI_STATUS AcpiDmCommonAscendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_OP_WALK_INFO *Info = Context; ACPI_OBJECT_TYPE ObjectType; /* Close scope if necessary */ ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); if (AcpiNsOpensScope (ObjectType)) { (void) AcpiDsScopeStackPop (Info->WalkState); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmInspectPossibleArgs * * PARAMETERS: CurrentOpArgCount - Which arg of the current op was the * possible method invocation found * TargetCount - Number of targets (0,1,2) for this op * Op - Parse op * * RETURN: Status * * DESCRIPTION: Examine following args and next ops for possible arguments * for an unrecognized method invocation. * ******************************************************************************/ static UINT32 AcpiDmInspectPossibleArgs ( UINT32 CurrentOpArgCount, UINT32 TargetCount, ACPI_PARSE_OBJECT *Op) { const ACPI_OPCODE_INFO *OpInfo; UINT32 i; UINT32 ArgumentCount = 0; ACPI_PARSE_OBJECT *NextOp; ACPI_PARSE_OBJECT *ExecuteOp; if (!Op) { return (0); } /* Lookahead for the maximum number of possible arguments */ NextOp = Op->Common.Next; for (i = 0; (i < ACPI_METHOD_NUM_ARGS) && NextOp; i++) { OpInfo = AcpiPsGetOpcodeInfo (NextOp->Common.AmlOpcode); /* Any one of these operators is "very probably" not a method arg */ if ((NextOp->Common.AmlOpcode == AML_STORE_OP) || (NextOp->Common.AmlOpcode == AML_NOTIFY_OP) || (OpInfo->Class == AML_CLASS_CONTROL) || (OpInfo->Class == AML_CLASS_CREATE) || (OpInfo->Class == AML_CLASS_NAMED_OBJECT)) { break; } if (OpInfo->Class == AML_CLASS_EXECUTE) { /* Probable that this is method arg if there is no target */ ExecuteOp = NextOp->Common.Value.Arg; while (ExecuteOp) { if ((ExecuteOp->Common.AmlOpcode == AML_INT_NAMEPATH_OP) && (ExecuteOp->Common.Value.Arg == NULL)) { /* No target, could be a method arg */ break; } if (NextOp->Common.AmlOpcode == AML_REF_OF_OP) { break; } ExecuteOp = ExecuteOp->Common.Next; } if (!ExecuteOp) { /* Has a target, not method arg */ return (ArgumentCount); } } ArgumentCount++; NextOp = NextOp->Common.Next; } return (ArgumentCount); } acpica-unix-20250404/source/common/dmtable.c0000775000175000017500000017761514773714131020125 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtable - Support for ACPI tables that contain no AML code * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "actables.h" #include "aslcompiler.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmtable") const AH_TABLE * AcpiAhGetTableInfo ( char *Signature); /* Common format strings for commented values */ #define UINT8_FORMAT "%2.2X [%s]\n" #define UINT8_FORMAT_NO_NEWLINE "%2.2X [%s]" #define UINT16_FORMAT "%4.4X [%s]\n" #define UINT32_FORMAT "%8.8X [%s]\n" #define STRING_FORMAT "[%s]\n" /* These tables map a subtable type to a description string */ static const char *AcpiDmAestResourceNames[] = { "Cache Resource", "TLB Resource", "Generic Resource", "Unknown Resource Type" /* Reserved */ }; static const char *AcpiDmAestSubnames[] = { "Processor Error Node", "Memory Error Node", "SMMU Error Node", "Vendor-defined Error Node", "GIC Error Node", "PCIE Error Node", "PROXY Error Node", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmAestCacheNames[] = { "Data Cache", "Instruction Cache", "Unified Cache", "Unknown Cache Type" /* Reserved */ }; static const char *AcpiDmAestGicNames[] = { "GIC CPU", "GIC Distributor", "GIC Redistributor", "GIC ITS", "Unknown GIC Interface Type" /* Reserved */ }; static const char *AcpiDmAestXfaceNames[] = { "System Register Interface", "Memory Mapped Interface", "Single Record Memory Mapped Interface", "Unknown Interface Type" /* Reserved */ }; static const char *AcpiDmAestXruptNames[] = { "Fault Handling Interrupt", "Error Recovery Interrupt", "Unknown Interrupt Type" /* Reserved */ }; static const char *AcpiDmAsfSubnames[] = { "ASF Information", "ASF Alerts", "ASF Remote Control", "ASF RMCP Boot Options", "ASF Address", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmAsptSubnames[] = { "ASPT Global Registers", "ASPT SEV Mailbox Registers", "ASPT ACPI Mailbox Registers", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmCdatSubnames[] = { "Device Scoped Memory Affinity Structure (DSMAS)", "Device scoped Latency and Bandwidth Information Structure (DSLBIS)", "Device Scoped Memory Side Cache Information Structure (DSMSCIS)", "Device Scoped Initiator Structure (DSIS)", "Device Scoped EFI Memory Type Structure (DSEMTS)", "Switch Scoped Latency and Bandwidth Information Structure (SSLBIS)", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmCedtSubnames[] = { "CXL Host Bridge Structure", "CXL Fixed Memory Window Structure", "CXL XOR Interleave Math Structure", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmDmarSubnames[] = { "Hardware Unit Definition", "Reserved Memory Region", "Root Port ATS Capability", "Remapping Hardware Static Affinity", "ACPI Namespace Device Declaration", "SoC Integrated Address Translation Cache", "SoC Integrated Device Property", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmDmarScope[] = { "Reserved value", "PCI Endpoint Device", "PCI Bridge Device", "IOAPIC Device", "Message-capable HPET Device", "Namespace Device", "Unknown Scope Type" /* Reserved */ }; static const char *AcpiDmEinjActions[] = { "Begin Operation", "Get Trigger Table", "Set Error Type", "Get Error Type", "End Operation", "Execute Operation", "Check Busy Status", "Get Command Status", "Set Error Type With Address", "Get Execute Timings", "Unknown Action" }; static const char *AcpiDmEinjInstructions[] = { "Read Register", "Read Register Value", "Write Register", "Write Register Value", "Noop", "Flush Cacheline", "Unknown Instruction" }; static const char *AcpiDmErdtSubnames[] = { "RMDD", "CACD", "DACD", "CMRC", "MMRC", "MARC", "CARC", "CMRD", "IBRD", "IBAD", "CARD", "RESERVED" }; static const char *AcpiDmErstActions[] = { "Begin Write Operation", "Begin Read Operation", "Begin Clear Operation", "End Operation", "Set Record Offset", "Execute Operation", "Check Busy Status", "Get Command Status", "Get Record Identifier", "Set Record Identifier", "Get Record Count", "Begin Dummy Write", "Unused/Unknown Action", "Get Error Address Range", "Get Error Address Length", "Get Error Attributes", "Execute Timings", "Unknown Action" }; static const char *AcpiDmErstInstructions[] = { "Read Register", "Read Register Value", "Write Register", "Write Register Value", "Noop", "Load Var1", "Load Var2", "Store Var1", "Add", "Subtract", "Add Value", "Subtract Value", "Stall", "Stall While True", "Skip Next If True", "GoTo", "Set Source Address", "Set Destination Address", "Move Data", "Unknown Instruction" }; static const char *AcpiDmGtdtSubnames[] = { "Generic Timer Block", "Generic Watchdog Timer", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmHestSubnames[] = { "IA-32 Machine Check Exception", "IA-32 Corrected Machine Check", "IA-32 Non-Maskable Interrupt", "Unknown Subtable Type", /* 3 - Reserved */ "Unknown Subtable Type", /* 4 - Reserved */ "Unknown Subtable Type", /* 5 - Reserved */ "PCI Express Root Port AER", "PCI Express AER (AER Endpoint)", "PCI Express/PCI-X Bridge AER", "Generic Hardware Error Source", "Generic Hardware Error Source V2", "IA-32 Deferred Machine Check", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmHestNotifySubnames[] = { "Polled", "External Interrupt", "Local Interrupt", "SCI", "NMI", "CMCI", /* ACPI 5.0 */ "MCE", /* ACPI 5.0 */ "GPIO", /* ACPI 6.0 */ "SEA", /* ACPI 6.1 */ "SEI", /* ACPI 6.1 */ "GSIV", /* ACPI 6.1 */ "Software Delegated Exception", /* ACPI 6.2 */ "Unknown Notify Type" /* Reserved */ }; static const char *AcpiDmHmatSubnames[] = { "Memory Proximity Domain Attributes", "System Locality Latency and Bandwidth Information", "Memory Side Cache Information", "Unknown Structure Type" /* Reserved */ }; static const char *AcpiDmMadtSubnames[] = { "Processor Local APIC", /* ACPI_MADT_TYPE_LOCAL_APIC */ "I/O APIC", /* ACPI_MADT_TYPE_IO_APIC */ "Interrupt Source Override", /* ACPI_MADT_TYPE_INTERRUPT_OVERRIDE */ "NMI Source", /* ACPI_MADT_TYPE_NMI_SOURCE */ "Local APIC NMI", /* ACPI_MADT_TYPE_LOCAL_APIC_NMI */ "Local APIC Address Override", /* ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE */ "I/O SAPIC", /* ACPI_MADT_TYPE_IO_SAPIC */ "Local SAPIC", /* ACPI_MADT_TYPE_LOCAL_SAPIC */ "Platform Interrupt Sources", /* ACPI_MADT_TYPE_INTERRUPT_SOURCE */ "Processor Local x2APIC", /* ACPI_MADT_TYPE_LOCAL_X2APIC */ "Local x2APIC NMI", /* ACPI_MADT_TYPE_LOCAL_X2APIC_NMI */ "Generic Interrupt Controller", /* ACPI_MADT_GENERIC_INTERRUPT */ "Generic Interrupt Distributor", /* ACPI_MADT_GENERIC_DISTRIBUTOR */ "Generic MSI Frame", /* ACPI_MADT_GENERIC_MSI_FRAME */ "Generic Interrupt Redistributor", /* ACPI_MADT_GENERIC_REDISTRIBUTOR */ "Generic Interrupt Translator", /* ACPI_MADT_GENERIC_TRANSLATOR */ "Mutiprocessor Wakeup", /* ACPI_MADT_TYPE_MULTIPROC_WAKEUP */ "CPU Core Interrupt Controller", /* ACPI_MADT_TYPE_CORE_PIC */ "Legacy I/O Interrupt Controller", /* ACPI_MADT_TYPE_LIO_PIC */ "HT Interrupt Controller", /* ACPI_MADT_TYPE_HT_PIC */ "Extend I/O Interrupt Controller", /* ACPI_MADT_TYPE_EIO_PIC */ "MSI Interrupt Controller", /* ACPI_MADT_TYPE_MSI_PIC */ "Bridge I/O Interrupt Controller", /* ACPI_MADT_TYPE_BIO_PIC */ "LPC Interrupt Controller", /* ACPI_MADT_TYPE_LPC_PIC */ "RISC-V Interrupt Controller", /* ACPI_MADT_TYPE_RINTC */ "RISC-V Incoming MSI Controller", /* ACPI_MADT_TYPE_IMSIC */ "RISC-V APLIC Controller", /* ACPI_MADT_TYPE_APLIC */ "RISC-V PLIC Controller", /* ACPI_MADT_TYPE_PLIC */ "Unknown Subtable Type", /* Reserved */ "Types 80-FF are used for OEM data" /* Reserved for OEM data */ }; static const char *AcpiDmMpamSubnames[] = { "Processor cache", /* ACPI_MPAM_LOCATION_TYPE_PROCESSOR_CACHE */ "Memory", /* ACPI_MPAM_LOCATION_TYPE_MEMORY */ "SMMU", /* ACPI_MPAM_LOCATION_TYPE_SMMU */ "Memory-side cache", /* ACPI_MPAM_LOCATION_TYPE_MEMORY_CACHE */ "ACPI device", /* ACPI_MPAM_LOCATION_TYPE_ACPI_DEVICE */ "Interconnect", /* ACPI_MPAM_LOCATION_TYPE_INTERCONNECT */ "Unknown" /* ACPI_MPAM_LOCATION_TYPE_UNKNOWN */ }; static const char *AcpiDmNfitSubnames[] = { "System Physical Address Range", /* ACPI_NFIT_TYPE_SYSTEM_ADDRESS */ "Memory Range Map", /* ACPI_NFIT_TYPE_MEMORY_MAP */ "Interleave Info", /* ACPI_NFIT_TYPE_INTERLEAVE */ "SMBIOS Information", /* ACPI_NFIT_TYPE_SMBIOS */ "NVDIMM Control Region", /* ACPI_NFIT_TYPE_CONTROL_REGION */ "NVDIMM Block Data Window Region", /* ACPI_NFIT_TYPE_DATA_REGION */ "Flush Hint Address", /* ACPI_NFIT_TYPE_FLUSH_ADDRESS */ "Platform Capabilities", /* ACPI_NFIT_TYPE_CAPABILITIES */ "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmPcctSubnames[] = { "Generic Communications Subspace", /* ACPI_PCCT_TYPE_GENERIC_SUBSPACE */ "HW-Reduced Comm Subspace", /* ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE */ "HW-Reduced Comm Subspace Type2", /* ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2 */ "Extended PCC Master Subspace", /* ACPI_PCCT_TYPE_EXT_PCC_MASTER_SUBSPACE */ "Extended PCC Slave Subspace", /* ACPI_PCCT_TYPE_EXT_PCC_SLAVE_SUBSPACE */ "HW Registers based Comm Subspace", /* ACPI_PCCT_TYPE_HW_REG_COMM_SUBSPACE */ "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmPhatSubnames[] = { "Firmware Version Data", /* ACPI_PHAT_TYPE_FW_VERSION_DATA */ "Firmware Health Data", /* ACPI_PHAT_TYPE_FW_HEALTH_DATA */ "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmPmttSubnames[] = { "Socket", /* ACPI_PMTT_TYPE_SOCKET */ "Memory Controller", /* ACPI_PMTT_TYPE_CONTROLLER */ "Physical Component (DIMM)", /* ACPI_PMTT_TYPE_DIMM */ "Unknown Subtable Type", /* Reserved */ "Vendor Specific" /* ACPI_PMTT_TYPE_VENDOR */ }; static const char *AcpiDmPpttSubnames[] = { "Processor Hierarchy Node", /* ACPI_PPTT_TYPE_PROCESSOR */ "Cache Type", /* ACPI_PPTT_TYPE_CACHE */ "ID", /* ACPI_PPTT_TYPE_ID */ "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmRgrtSubnames[] = { "Unknown/Reserved Image Type", /* ACPI_RGRT_TYPE_RESERVED0 */ "Type PNG" /* ACPI_RGRT_IMAGE_TYPE_PNG */ }; static const char *AcpiDmSdevSubnames[] = { "Namespace Device", /* ACPI_SDEV_TYPE_NAMESPACE_DEVICE */ "PCIe Endpoint Device", /* ACPI_SDEV_TYPE_PCIE_ENDPOINT_DEVICE */ "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmSratSubnames[] = { "Processor Local APIC/SAPIC Affinity", "Memory Affinity", "Processor Local x2APIC Affinity", "GICC Affinity", "GIC ITS Affinity", /* Acpi 6.2 */ "Generic Initiator Affinity", /* Acpi 6.3 */ "Generic Port Affinity", /* Acpi 6.4 */ "RINTC Affinity", /* Acpi 6.6 */ "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmTpm2Subnames[] = { "Illegal Start Method value", "Reserved", "ACPI Start Method", "Reserved", "Reserved", "Reserved", "Memory Mapped I/O", "Command Response Buffer", "Command Response Buffer with ACPI Start Method", "Reserved", "Reserved", "Command Response Buffer with ARM SMC", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmIvrsSubnames[] = { "Hardware Definition Block (IVHD)", "Hardware Definition Block - Mixed Format (IVHD)", "Memory Definition Block (IVMD)", "Unknown/Reserved Subtable Type" /* Reserved */ }; static const char *AcpiDmIvrsDevEntryNames[] = { "Unknown/Reserved Device Entry Type", /* 0- Reserved */ "Device Entry: Select All Devices", /* 1 */ "Device Entry: Select One Device", /* 2 */ "Device Entry: Start of Range", /* 3 */ "Device Entry: End of Range", /* 4 */ "Device Entry: Alias Select", /* 66 */ "Device Entry: Alias Start of Range", /* 67 */ "Unknown/Reserved Device Entry Type", /* 68- Reserved */ "Unknown/Reserved Device Entry Type", /* 69- Reserved */ "Device Entry: Extended Select", /* 70 */ "Device Entry: Extended Start of Range", /* 71 */ "Device Entry: Special Device", /* 72 */ "Device Entry: ACPI HID Named Device", /* 240 */ "Unknown/Reserved Device Entry Type" /* Reserved */ }; static const char *AcpiDmLpitSubnames[] = { "Native C-state Idle Structure", "Unknown Subtable Type" /* Reserved */ }; static const char *AcpiDmViotSubnames[] = { "Unknown Subtable Type", /* 0 -Reserved */ "PCI Range", "MMIO Endpoint", "VirtIO-PCI IOMMU", "VirtIO-MMIO IOMMU", "Unknown Subtable Type" /* Reserved */ }; #define ACPI_FADT_PM_RESERVED 9 static const char *AcpiDmFadtProfiles[] = { "Unspecified", "Desktop", "Mobile", "Workstation", "Enterprise Server", "SOHO Server", "Appliance PC", "Performance Server", "Tablet", "Unknown Profile Type" }; #define ACPI_GAS_WIDTH_RESERVED 5 static const char *AcpiDmGasAccessWidth[] = { "Undefined/Legacy", "Byte Access:8", "Word Access:16", "DWord Access:32", "QWord Access:64", "Unknown Width Encoding" }; static const char *AcpiDmRhctSubnames[] = { "RISC-V ISA string structure", /* ACPI_RHCT_ISA_STRING */ "RISC-V CMO node structure", /* ACPI_RHCT_CMO_NODE */ "RISC-V MMU node structure", /* ACPI_RHCT_MMU_NODE */ "RISC-V Hart Info structure", /* ACPI_RHCT_HART_INFO */ }; /******************************************************************************* * * ACPI Table Data, indexed by signature. * * Each entry contains: Signature, Table Info, Handler, DtHandler, * Template, Description * * Simple tables have only a TableInfo structure, complex tables have a * handler. This table must be NULL terminated. RSDP and FACS are * special-cased elsewhere. * * Note: Any tables added here should be duplicated within * AcpiGbl_SupportedTables in the file common/ahtable.c * ******************************************************************************/ const ACPI_DMTABLE_DATA AcpiDmTableData[] = { {ACPI_SIG_AEST, NULL, AcpiDmDumpAest, DtCompileAest, TemplateAest}, {ACPI_SIG_AGDI, AcpiDmTableInfoAgdi, NULL, NULL, TemplateAgdi}, {ACPI_SIG_APMT, NULL, AcpiDmDumpApmt, DtCompileApmt, TemplateApmt}, {ACPI_SIG_ASF, NULL, AcpiDmDumpAsf, DtCompileAsf, TemplateAsf}, {ACPI_SIG_ASPT, NULL, AcpiDmDumpAspt, DtCompileAspt, TemplateAspt}, {ACPI_SIG_BDAT, AcpiDmTableInfoBdat, NULL, NULL, TemplateBdat}, {ACPI_SIG_BERT, AcpiDmTableInfoBert, NULL, NULL, TemplateBert}, {ACPI_SIG_BGRT, AcpiDmTableInfoBgrt, NULL, NULL, TemplateBgrt}, {ACPI_SIG_BOOT, AcpiDmTableInfoBoot, NULL, NULL, TemplateBoot}, {ACPI_SIG_CCEL, AcpiDmTableInfoCcel, NULL, NULL, TemplateCcel}, {ACPI_SIG_CDAT, NULL, AcpiDmDumpCdat, NULL, TemplateCdat}, {ACPI_SIG_CEDT, NULL, AcpiDmDumpCedt, DtCompileCedt, TemplateCedt}, {ACPI_SIG_CPEP, NULL, AcpiDmDumpCpep, DtCompileCpep, TemplateCpep}, {ACPI_SIG_CSRT, NULL, AcpiDmDumpCsrt, DtCompileCsrt, TemplateCsrt}, {ACPI_SIG_DBG2, AcpiDmTableInfoDbg2, AcpiDmDumpDbg2, DtCompileDbg2, TemplateDbg2}, {ACPI_SIG_DBGP, AcpiDmTableInfoDbgp, NULL, NULL, TemplateDbgp}, {ACPI_SIG_DMAR, NULL, AcpiDmDumpDmar, DtCompileDmar, TemplateDmar}, {ACPI_SIG_DRTM, NULL, AcpiDmDumpDrtm, DtCompileDrtm, TemplateDrtm}, {ACPI_SIG_ECDT, AcpiDmTableInfoEcdt, NULL, NULL, TemplateEcdt}, {ACPI_SIG_EINJ, NULL, AcpiDmDumpEinj, DtCompileEinj, TemplateEinj}, {ACPI_SIG_ERDT, NULL, AcpiDmDumpErdt, DtCompileErdt, TemplateErdt}, {ACPI_SIG_ERST, NULL, AcpiDmDumpErst, DtCompileErst, TemplateErst}, {ACPI_SIG_FADT, NULL, AcpiDmDumpFadt, DtCompileFadt, TemplateFadt}, {ACPI_SIG_FPDT, NULL, AcpiDmDumpFpdt, DtCompileFpdt, TemplateFpdt}, {ACPI_SIG_GTDT, NULL, AcpiDmDumpGtdt, DtCompileGtdt, TemplateGtdt}, {ACPI_SIG_HEST, NULL, AcpiDmDumpHest, DtCompileHest, TemplateHest}, {ACPI_SIG_HMAT, NULL, AcpiDmDumpHmat, DtCompileHmat, TemplateHmat}, {ACPI_SIG_HPET, AcpiDmTableInfoHpet, NULL, NULL, TemplateHpet}, {ACPI_SIG_IORT, NULL, AcpiDmDumpIort, DtCompileIort, TemplateIort}, {ACPI_SIG_IVRS, NULL, AcpiDmDumpIvrs, DtCompileIvrs, TemplateIvrs}, {ACPI_SIG_LPIT, NULL, AcpiDmDumpLpit, DtCompileLpit, TemplateLpit}, {ACPI_SIG_MADT, NULL, AcpiDmDumpMadt, DtCompileMadt, TemplateMadt}, {ACPI_SIG_MCFG, NULL, AcpiDmDumpMcfg, DtCompileMcfg, TemplateMcfg}, {ACPI_SIG_MCHI, AcpiDmTableInfoMchi, NULL, NULL, TemplateMchi}, {ACPI_SIG_MPAM, NULL, AcpiDmDumpMpam, DtCompileMpam, TemplateMpam}, {ACPI_SIG_MPST, AcpiDmTableInfoMpst, AcpiDmDumpMpst, DtCompileMpst, TemplateMpst}, {ACPI_SIG_MRRM, NULL, AcpiDmDumpMrrm, DtCompileMrrm, TemplateMrrm}, {ACPI_SIG_MSCT, NULL, AcpiDmDumpMsct, DtCompileMsct, TemplateMsct}, {ACPI_SIG_MSDM, NULL, AcpiDmDumpSlic, DtCompileSlic, TemplateMsdm}, {ACPI_SIG_NFIT, AcpiDmTableInfoNfit, AcpiDmDumpNfit, DtCompileNfit, TemplateNfit}, {ACPI_SIG_NHLT, NULL, NULL, NULL, NULL}, {ACPI_SIG_PCCT, AcpiDmTableInfoPcct, AcpiDmDumpPcct, DtCompilePcct, TemplatePcct}, {ACPI_SIG_PDTT, AcpiDmTableInfoPdtt, AcpiDmDumpPdtt, DtCompilePdtt, TemplatePdtt}, {ACPI_SIG_PHAT, NULL, AcpiDmDumpPhat, DtCompilePhat, TemplatePhat}, {ACPI_SIG_PMTT, NULL, AcpiDmDumpPmtt, DtCompilePmtt, TemplatePmtt}, {ACPI_SIG_PPTT, NULL, AcpiDmDumpPptt, DtCompilePptt, TemplatePptt}, {ACPI_SIG_PRMT, NULL, AcpiDmDumpPrmt, DtCompilePrmt, TemplatePrmt}, {ACPI_SIG_RASF, AcpiDmTableInfoRasf, NULL, NULL, TemplateRasf}, {ACPI_SIG_RAS2, AcpiDmTableInfoRas2, AcpiDmDumpRas2, DtCompileRas2, TemplateRas2}, {ACPI_SIG_RGRT, NULL, AcpiDmDumpRgrt, DtCompileRgrt, TemplateRgrt}, {ACPI_SIG_RHCT, NULL, AcpiDmDumpRhct, DtCompileRhct, TemplateRhct}, {ACPI_SIG_RIMT, NULL, AcpiDmDumpRimt, DtCompileRimt, TemplateRimt}, {ACPI_SIG_RSDT, NULL, AcpiDmDumpRsdt, DtCompileRsdt, TemplateRsdt}, {ACPI_SIG_S3PT, NULL, NULL, NULL, TemplateS3pt}, {ACPI_SIG_SBST, AcpiDmTableInfoSbst, NULL, NULL, TemplateSbst}, {ACPI_SIG_SDEI, AcpiDmTableInfoSdei, NULL, NULL, TemplateSdei}, {ACPI_SIG_SDEV, AcpiDmTableInfoSdev, AcpiDmDumpSdev, DtCompileSdev, TemplateSdev}, {ACPI_SIG_SLIC, NULL, AcpiDmDumpSlic, DtCompileSlic, TemplateSlic}, {ACPI_SIG_SLIT, NULL, AcpiDmDumpSlit, DtCompileSlit, TemplateSlit}, {ACPI_SIG_SPCR, AcpiDmTableInfoSpcr, NULL, NULL, TemplateSpcr}, {ACPI_SIG_SPMI, AcpiDmTableInfoSpmi, NULL, NULL, TemplateSpmi}, {ACPI_SIG_SRAT, NULL, AcpiDmDumpSrat, DtCompileSrat, TemplateSrat}, {ACPI_SIG_STAO, NULL, AcpiDmDumpStao, DtCompileStao, TemplateStao}, {ACPI_SIG_SVKL, AcpiDmTableInfoSvkl, AcpiDmDumpSvkl, DtCompileSvkl, TemplateSvkl}, {ACPI_SIG_TCPA, NULL, AcpiDmDumpTcpa, DtCompileTcpa, TemplateTcpa}, {ACPI_SIG_TDEL, AcpiDmTableInfoTdel, NULL, NULL, TemplateTdel}, {ACPI_SIG_TPM2, AcpiDmTableInfoTpm2, AcpiDmDumpTpm2, DtCompileTpm2, TemplateTpm2}, {ACPI_SIG_UEFI, AcpiDmTableInfoUefi, NULL, DtCompileUefi, TemplateUefi}, {ACPI_SIG_VIOT, AcpiDmTableInfoViot, AcpiDmDumpViot, DtCompileViot, TemplateViot}, {ACPI_SIG_WAET, AcpiDmTableInfoWaet, NULL, NULL, TemplateWaet}, {ACPI_SIG_WDAT, NULL, AcpiDmDumpWdat, DtCompileWdat, TemplateWdat}, {ACPI_SIG_WDDT, AcpiDmTableInfoWddt, NULL, NULL, TemplateWddt}, {ACPI_SIG_WDRT, AcpiDmTableInfoWdrt, NULL, NULL, TemplateWdrt}, {ACPI_SIG_WPBT, NULL, AcpiDmDumpWpbt, DtCompileWpbt, TemplateWpbt}, {ACPI_SIG_WSMT, AcpiDmTableInfoWsmt, NULL, NULL, TemplateWsmt}, {ACPI_SIG_XENV, AcpiDmTableInfoXenv, NULL, NULL, TemplateXenv}, {ACPI_SIG_XSDT, NULL, AcpiDmDumpXsdt, DtCompileXsdt, TemplateXsdt}, {NULL, NULL, NULL, NULL, NULL} }; /******************************************************************************* * * FUNCTION: AcpiDmGetTableData * * PARAMETERS: Signature - ACPI signature (4 chars) to match * * RETURN: Pointer to a valid ACPI_DMTABLE_DATA. Null if no match found. * * DESCRIPTION: Find a match in the global table of supported ACPI tables * ******************************************************************************/ const ACPI_DMTABLE_DATA * AcpiDmGetTableData ( char *Signature) { const ACPI_DMTABLE_DATA *Info; for (Info = AcpiDmTableData; Info->Signature; Info++) { if (ACPI_COMPARE_NAMESEG (Signature, Info->Signature)) { return (Info); } } return (NULL); } /******************************************************************************* * * FUNCTION: AcpiDmDumpDataTable * * PARAMETERS: Table - An ACPI table * * RETURN: None. * * DESCRIPTION: Format the contents of an ACPI data table (any table other * than an SSDT or DSDT that does not contain executable AML code) * ******************************************************************************/ void AcpiDmDumpDataTable ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; const ACPI_DMTABLE_DATA *TableData; UINT32 Length; /* Ignore tables that contain AML */ if (AcpiUtIsAmlTable (Table)) { if (AslGbl_VerboseTemplates) { /* Dump the raw table data */ Length = Table->Length; AcpiOsPrintf ("\n/*\n%s: Length %d (0x%X)\n\n", ACPI_RAW_TABLE_DATA_HEADER, Length, Length); AcpiUtDumpBuffer (ACPI_CAST_PTR (UINT8, Table), Length, DB_BYTE_DISPLAY, 0); AcpiOsPrintf (" */\n"); } return; } /* * Handle tables that don't use the common ACPI table header structure. * Currently, these are the FACS, RSDP, S3PT and CDAT. */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_FACS)) { Length = Table->Length; Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoFacs); if (ACPI_FAILURE (Status)) { return; } } else if (ACPI_VALIDATE_RSDP_SIG (ACPI_CAST_PTR (ACPI_TABLE_RSDP, Table)->Signature)) { Length = AcpiDmDumpRsdp (Table); } else if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_S3PT)) { Length = AcpiDmDumpS3pt (Table); } else if (!AcpiUtValidNameseg (Table->Signature)) { /* * For CDAT we are assuming that there should be at least one non-ASCII * byte in the (normally) 4-character Signature field (at least the * high-order byte should be zero). */ if (AcpiGbl_CDAT) { /* * Invalid signature and <-ds CDAT> was specified on the command line. * Therefore, we have a CDAT table. */ AcpiDmDumpCdat (Table); } else { fprintf (stderr, "Table has an invalid signature\n"); } return; } else { /* * All other tables must use the common ACPI table header, dump it now */ Length = Table->Length; Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoHeader); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); /* Match signature and dispatch appropriately */ TableData = AcpiDmGetTableData (Table->Signature); if (!TableData) { if (!strncmp (Table->Signature, "OEM", 3)) { AcpiOsPrintf ("\n**** OEM-defined ACPI table [%4.4s], unknown contents\n\n", Table->Signature); } else { AcpiOsPrintf ("\n**** Unknown ACPI table signature [%4.4s]\n\n", Table->Signature); fprintf (stderr, "Unknown ACPI table signature [%4.4s], ", Table->Signature); if (!AcpiGbl_ForceAmlDisassembly) { fprintf (stderr, "decoding ACPI table header only\n"); } else { fprintf (stderr, "assuming table contains valid AML code\n"); } } } else if (TableData->TableHandler) { /* Complex table, has a handler */ TableData->TableHandler (Table); } else if (TableData->TableInfo) { /* Simple table, just walk the info table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, TableData->TableInfo); if (ACPI_FAILURE (Status)) { return; } } } if (!AslGbl_DoTemplates || AslGbl_VerboseTemplates) { /* Dump the raw table data */ AcpiOsPrintf ("\n%s: Length %d (0x%X)\n\n", ACPI_RAW_TABLE_DATA_HEADER, Length, Length); AcpiUtDumpBuffer (ACPI_CAST_PTR (UINT8, Table), Length, DB_BYTE_DISPLAY, 0); } } /******************************************************************************* * * FUNCTION: AcpiDmLineHeader * * PARAMETERS: Offset - Current byte offset, from table start * ByteLength - Length of the field in bytes, 0 for flags * Name - Name of this field * * RETURN: None * * DESCRIPTION: Utility routines for formatting output lines. Displays the * current table offset in hex and decimal, the field length, * and the field name. * ******************************************************************************/ void AcpiDmLineHeader ( UINT32 Offset, UINT32 ByteLength, char *Name) { /* Allow a null name for fields that span multiple lines (large buffers) */ if (!Name) { Name = ""; } if (AslGbl_DoTemplates && !AslGbl_VerboseTemplates) /* Terse template */ { if (ByteLength) { AcpiOsPrintf ("[%.4d] %34s : ", ByteLength, Name); } else { if (*Name) { AcpiOsPrintf ("%41s : ", Name); } else { AcpiOsPrintf ("%41s ", Name); } } } else /* Normal disassembler or verbose template */ { if (ByteLength) { AcpiOsPrintf ("[%3.3Xh %4.4u %3.3Xh] %27s : ", Offset, Offset, ByteLength, Name); } else { if (*Name) { AcpiOsPrintf ("%44s : ", Name); } else { AcpiOsPrintf ("%44s ", Name); } } } } void AcpiDmLineHeader2 ( UINT32 Offset, UINT32 ByteLength, char *Name, UINT32 Value) { if (AslGbl_DoTemplates && !AslGbl_VerboseTemplates) /* Terse template */ { if (ByteLength) { AcpiOsPrintf ("[%.4d] %30s %3d : ", ByteLength, Name, Value); } else { AcpiOsPrintf ("%36s % 3d : ", Name, Value); } } else /* Normal disassembler or verbose template */ { if (ByteLength) { AcpiOsPrintf ("[%3.3Xh %4.4u %3.3Xh] %24s %3d : ", Offset, Offset, ByteLength, Name, Value); } else { AcpiOsPrintf ("[%3.3Xh %4.4u ] %24s %3d : ", Offset, Offset, Name, Value); } } } /******************************************************************************* * * FUNCTION: AcpiDmDumpTable * * PARAMETERS: TableLength - Length of the entire ACPI table * TableOffset - Starting offset within the table for this * sub-descriptor (0 if main table) * Table - The ACPI table * SubtableLength - Length of this sub-descriptor * Info - Info table for this ACPI table * * RETURN: Status * * DESCRIPTION: Display ACPI table contents by walking the Info table. * * Note: This function must remain in sync with DtGetFieldLength. * ******************************************************************************/ ACPI_STATUS AcpiDmDumpTable ( UINT32 TableLength, UINT32 TableOffset, void *Table, UINT32 SubtableLength, ACPI_DMTABLE_INFO *Info) { UINT8 *Target; UINT32 CurrentOffset; UINT32 ByteLength; UINT8 Temp8; UINT16 Temp16; UINT32 Temp32; UINT64 Value; const AH_TABLE *TableData; const char *Name; BOOLEAN LastOutputBlankLine = FALSE; ACPI_STATUS Status; char RepairedName[8]; if (!Info) { AcpiOsPrintf ("Display not implemented\n"); return (AE_NOT_IMPLEMENTED); } /* Walk entire Info table; Null name terminates */ for (; Info->Name; Info++) { /* * Target points to the field within the ACPI Table. CurrentOffset is * the offset of the field from the start of the main table. */ Target = ACPI_ADD_PTR (UINT8, Table, Info->Offset); CurrentOffset = TableOffset + Info->Offset; /* Check for beyond subtable end or (worse) beyond EOT */ if (SubtableLength && (Info->Offset > SubtableLength)) { AcpiOsPrintf ( "/**** ACPI subtable terminates early (Len %u) - " "may be older version (dump table) */\n", SubtableLength); /* Move on to next subtable */ return (AE_OK); } if (CurrentOffset >= TableLength) { AcpiOsPrintf ( "/**** ACPI table terminates " "in the middle of a data structure! (dump table)\n" "CurrentOffset: %X, TableLength: %X ***/", CurrentOffset, TableLength); return (AE_BAD_DATA); } /* Generate the byte length for this field */ switch (Info->Opcode) { case ACPI_DMT_UINT8: case ACPI_DMT_CHKSUM: case ACPI_DMT_SPACEID: case ACPI_DMT_ACCWIDTH: case ACPI_DMT_CEDT: case ACPI_DMT_IVRS: case ACPI_DMT_IVRS_DE: case ACPI_DMT_GTDT: case ACPI_DMT_MADT: case ACPI_DMT_MPAM_LOCATOR: case ACPI_DMT_PCCT: case ACPI_DMT_PMTT: case ACPI_DMT_PPTT: case ACPI_DMT_RGRT: case ACPI_DMT_SDEV: case ACPI_DMT_SRAT: case ACPI_DMT_AEST: case ACPI_DMT_AEST_RES: case ACPI_DMT_AEST_XFACE: case ACPI_DMT_AEST_XRUPT: case ACPI_DMT_ASF: case ACPI_DMT_CDAT: case ACPI_DMT_HESTNTYP: case ACPI_DMT_FADTPM: case ACPI_DMT_EINJACT: case ACPI_DMT_EINJINST: case ACPI_DMT_ERSTACT: case ACPI_DMT_ERSTINST: case ACPI_DMT_DMAR_SCOPE: case ACPI_DMT_VIOT: ByteLength = 1; break; case ACPI_DMT_ASPT: case ACPI_DMT_UINT16: case ACPI_DMT_DMAR: case ACPI_DMT_ERDT: case ACPI_DMT_HEST: case ACPI_DMT_HMAT: case ACPI_DMT_NFIT: case ACPI_DMT_PHAT: case ACPI_DMT_RHCT: ByteLength = 2; break; case ACPI_DMT_UINT24: ByteLength = 3; break; case ACPI_DMT_UINT32: case ACPI_DMT_AEST_CACHE: case ACPI_DMT_AEST_GIC: case ACPI_DMT_NAME4: case ACPI_DMT_SIG: case ACPI_DMT_LPIT: case ACPI_DMT_TPM2: ByteLength = 4; break; case ACPI_DMT_UINT40: ByteLength = 5; break; case ACPI_DMT_UINT48: case ACPI_DMT_NAME6: ByteLength = 6; break; case ACPI_DMT_UINT56: case ACPI_DMT_BUF7: ByteLength = 7; break; case ACPI_DMT_UINT64: case ACPI_DMT_NAME8: ByteLength = 8; break; case ACPI_DMT_BUF10: ByteLength = 10; break; case ACPI_DMT_BUF11: ByteLength = 11; break; case ACPI_DMT_BUF12: ByteLength = 12; break; case ACPI_DMT_BUF16: case ACPI_DMT_UUID: ByteLength = 16; break; case ACPI_DMT_BUF18: ByteLength = 18; break; case ACPI_DMT_BUF24: ByteLength = 24; break; case ACPI_DMT_BUF26: ByteLength = 26; break; case ACPI_DMT_BUF32: ByteLength = 32; break; case ACPI_DMT_BUF112: ByteLength = 112; break; case ACPI_DMT_BUF128: ByteLength = 128; break; case ACPI_DMT_WPBT_UNICODE: ByteLength = SubtableLength; CurrentOffset = sizeof (ACPI_TABLE_WPBT); break; case ACPI_DMT_UNICODE: case ACPI_DMT_BUFFER: case ACPI_DMT_RAW_BUFFER: ByteLength = SubtableLength; break; case ACPI_DMT_PMTT_VENDOR: /* * Calculate the length of the vendor data for the PMTT table: * Length = (Current Subtable ptr + Subtable length) - * Start of the vendor data (Target) */ ByteLength = ((ACPI_CAST_PTR (char, Table) + (ACPI_CAST_PTR (ACPI_PMTT_HEADER, Table)->Length)) - ACPI_CAST_PTR (char, Target)); break; case ACPI_DMT_STRING: ByteLength = strlen (ACPI_CAST_PTR (char, Target)) + 1; break; case ACPI_DMT_IVRS_UNTERMINATED_STRING: ByteLength = ((ACPI_CAST_PTR (ACPI_IVRS_DEVICE_HID, Target) -1)->UidLength); break; case ACPI_DMT_GAS: if (!LastOutputBlankLine) { AcpiOsPrintf ("\n"); LastOutputBlankLine = TRUE; } ByteLength = sizeof (ACPI_GENERIC_ADDRESS); break; case ACPI_DMT_HESTNTFY: if (!LastOutputBlankLine) { AcpiOsPrintf ("\n"); LastOutputBlankLine = TRUE; } ByteLength = sizeof (ACPI_HEST_NOTIFY); break; case ACPI_DMT_IORTMEM: if (!LastOutputBlankLine) { LastOutputBlankLine = FALSE; } ByteLength = sizeof (ACPI_IORT_MEMORY_ACCESS); break; default: ByteLength = 0; break; } /* Check if we are beyond a subtable, or (worse) beyond EOT */ if (CurrentOffset + ByteLength > TableLength) { if (SubtableLength) { AcpiOsPrintf ( "/**** ACPI subtable terminates early - " "may be older version (dump table) */\n"); /* Move on to next subtable */ return (AE_OK); } AcpiOsPrintf ( "/**** ACPI table terminates " "in the middle of a data structure! */\n"); return (AE_BAD_DATA); } if (Info->Opcode == ACPI_DMT_EXTRA_TEXT) { AcpiOsPrintf ("%s", Info->Name); continue; } /* Start a new line and decode the opcode */ AcpiDmLineHeader (CurrentOffset, ByteLength, Info->Name); switch (Info->Opcode) { /* Single-bit Flag fields. Note: Opcode is the bit position */ case ACPI_DMT_FLAG0: case ACPI_DMT_FLAG1: case ACPI_DMT_FLAG2: case ACPI_DMT_FLAG3: case ACPI_DMT_FLAG4: case ACPI_DMT_FLAG5: case ACPI_DMT_FLAG6: case ACPI_DMT_FLAG7: AcpiOsPrintf ("%1.1X\n", (*Target >> Info->Opcode) & 0x01); break; /* 2-bit Flag fields */ case ACPI_DMT_FLAGS0: AcpiOsPrintf ("%1.1X\n", *Target & 0x03); break; case ACPI_DMT_FLAGS1: AcpiOsPrintf ("%1.1X\n", (*Target >> 1) & 0x03); break; case ACPI_DMT_FLAGS2: AcpiOsPrintf ("%1.1X\n", (*Target >> 2) & 0x03); break; case ACPI_DMT_FLAGS8_2: AcpiOsPrintf ("%2.2X\n", (*Target >> 2) & 0xFF); break; case ACPI_DMT_FLAGS4: AcpiOsPrintf ("%1.1X\n", (*Target >> 4) & 0x03); break; case ACPI_DMT_FLAGS4_0: AcpiOsPrintf ("%1.1X\n", (*(UINT32 *)Target) & 0x0F); break; case ACPI_DMT_FLAGS4_4: AcpiOsPrintf ("%1.1X\n", (*(UINT32 *)Target >> 4) & 0x0F); break; case ACPI_DMT_FLAGS4_8: AcpiOsPrintf ("%1.1X\n", (*(UINT32 *)Target >> 8) & 0x0F); break; case ACPI_DMT_FLAGS4_12: AcpiOsPrintf ("%1.1X\n", (*(UINT32 *)Target >> 12) & 0x0F); break; case ACPI_DMT_FLAGS16_16: AcpiOsPrintf ("%4.4X\n", (*(UINT32 *)Target >> 16) & 0xFFFF); break; /* Integer Data Types */ case ACPI_DMT_UINT8: case ACPI_DMT_UINT16: case ACPI_DMT_UINT24: case ACPI_DMT_UINT32: case ACPI_DMT_UINT40: case ACPI_DMT_UINT48: case ACPI_DMT_UINT56: case ACPI_DMT_UINT64: /* * Dump bytes - high byte first, low byte last. * Note: All ACPI tables are little-endian. */ Value = 0; for (Temp8 = (UINT8) ByteLength; Temp8 > 0; Temp8--) { AcpiOsPrintf ("%2.2X", Target[Temp8 - 1]); Value |= Target[Temp8 - 1]; Value <<= 8; } if (!Value && (Info->Flags & DT_DESCRIBES_OPTIONAL)) { AcpiOsPrintf (" [Optional field not present]"); } AcpiOsPrintf ("\n"); break; case ACPI_DMT_BUF7: case ACPI_DMT_BUF10: case ACPI_DMT_BUF11: case ACPI_DMT_BUF12: case ACPI_DMT_BUF16: case ACPI_DMT_BUF18: case ACPI_DMT_BUF24: case ACPI_DMT_BUF26: case ACPI_DMT_BUF32: case ACPI_DMT_BUF112: case ACPI_DMT_BUF128: /* * Buffer: Size depends on the opcode and was set above. * Each hex byte is separated with a space. * Multiple lines are separated by line continuation char. */ for (Temp16 = 0; Temp16 < ByteLength; Temp16++) { AcpiOsPrintf ("%2.2X", Target[Temp16]); if ((UINT32) (Temp16 + 1) < ByteLength) { if ((Temp16 > 0) && (!((Temp16+1) % 16))) { AcpiOsPrintf (" \\\n"); /* Line continuation */ AcpiDmLineHeader (0, 0, NULL); } else { AcpiOsPrintf (" "); } } } AcpiOsPrintf ("\n"); break; case ACPI_DMT_UUID: /* Convert 16-byte UUID buffer to 36-byte formatted UUID string */ (void) AcpiUtConvertUuidToString ((char *) Target, AslGbl_MsgBuffer); AcpiOsPrintf ("%s\n", AslGbl_MsgBuffer); break; case ACPI_DMT_STRING: AcpiOsPrintf ("\"%s\"\n", ACPI_CAST_PTR (char, Target)); break; case ACPI_DMT_IVRS_UNTERMINATED_STRING: AcpiOsPrintf ("\"%.*s\"\n", ByteLength, ACPI_CAST_PTR (char, Target)); break; /* Fixed length ASCII name fields */ case ACPI_DMT_SIG: AcpiUtCheckAndRepairAscii (Target, RepairedName, 4); AcpiOsPrintf ("\"%.4s\" ", RepairedName); TableData = AcpiAhGetTableInfo (ACPI_CAST_PTR (char, Target)); if (TableData) { AcpiOsPrintf (STRING_FORMAT, TableData->Description); } else { AcpiOsPrintf ("\n"); } break; case ACPI_DMT_NAME4: AcpiUtCheckAndRepairAscii (Target, RepairedName, 4); AcpiOsPrintf ("\"%.4s\"\n", RepairedName); break; case ACPI_DMT_NAME6: AcpiUtCheckAndRepairAscii (Target, RepairedName, 6); AcpiOsPrintf ("\"%.6s\"\n", RepairedName); break; case ACPI_DMT_NAME8: AcpiUtCheckAndRepairAscii (Target, RepairedName, 8); AcpiOsPrintf ("\"%.8s\"\n", RepairedName); break; /* Special Data Types */ case ACPI_DMT_CHKSUM: /* Checksum, display and validate */ AcpiOsPrintf ("%2.2X", *Target); Temp8 = AcpiUtGenerateChecksum (Table, ACPI_CAST_PTR (ACPI_TABLE_HEADER, Table)->Length, ACPI_CAST_PTR (ACPI_TABLE_HEADER, Table)->Checksum); if (Temp8 != ACPI_CAST_PTR (ACPI_TABLE_HEADER, Table)->Checksum) { AcpiOsPrintf ( " /* Incorrect checksum, should be %2.2X */", Temp8); } AcpiOsPrintf ("\n"); break; case ACPI_DMT_SPACEID: /* Address Space ID */ AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiUtGetRegionName (*Target)); break; case ACPI_DMT_ACCWIDTH: /* Encoded Access Width */ Temp8 = *Target; if (Temp8 > ACPI_GAS_WIDTH_RESERVED) { Temp8 = ACPI_GAS_WIDTH_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmGasAccessWidth[Temp8]); break; case ACPI_DMT_GAS: /* Generic Address Structure */ AcpiOsPrintf (STRING_FORMAT, "Generic Address Structure"); Status = AcpiDmDumpTable (TableLength, CurrentOffset, Target, sizeof (ACPI_GENERIC_ADDRESS), AcpiDmTableInfoGas); if (ACPI_FAILURE (Status)) { return (Status); } AcpiOsPrintf ("\n"); LastOutputBlankLine = TRUE; break; case ACPI_DMT_AEST: /* AEST subtable types */ Temp8 = *Target; if (Temp8 > ACPI_AEST_NODE_TYPE_RESERVED) { Temp8 = ACPI_AEST_NODE_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmAestSubnames[Temp8]); break; case ACPI_DMT_AEST_CACHE: /* AEST cache resource subtable */ Temp32 = *Target; if (Temp32 > ACPI_AEST_CACHE_RESERVED) { Temp32 = ACPI_AEST_CACHE_RESERVED; } AcpiOsPrintf (UINT32_FORMAT, *Target, AcpiDmAestCacheNames[Temp32]); break; case ACPI_DMT_AEST_GIC: /* AEST GIC error subtable */ Temp32 = *Target; if (Temp32 > ACPI_AEST_GIC_RESERVED) { Temp32 = ACPI_AEST_GIC_RESERVED; } AcpiOsPrintf (UINT32_FORMAT, *Target, AcpiDmAestGicNames[Temp32]); break; case ACPI_DMT_AEST_RES: /* AEST resource type subtable */ Temp8 = *Target; if (Temp8 > ACPI_AEST_RESOURCE_RESERVED) { Temp8 = ACPI_AEST_RESOURCE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmAestResourceNames[Temp8]); break; case ACPI_DMT_AEST_XFACE: /* AEST interface structure types */ Temp8 = *Target; if (Temp8 > ACPI_AEST_XFACE_RESERVED) { Temp8 = ACPI_AEST_XFACE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmAestXfaceNames[Temp8]); break; case ACPI_DMT_AEST_XRUPT: /* AEST interrupt structure types */ Temp8 = *Target; if (Temp8 > ACPI_AEST_XRUPT_RESERVED) { Temp8 = ACPI_AEST_XRUPT_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmAestXruptNames[Temp8]); break; case ACPI_DMT_ASPT: /* ASPT subtable types */ Temp16 = ACPI_GET16(Target); if (Temp16 > ACPI_ASPT_TYPE_UNKNOWN) { Temp16 = ACPI_ASPT_TYPE_UNKNOWN; } AcpiOsPrintf(UINT16_FORMAT, Temp16, AcpiDmAsptSubnames[Temp16]); break; case ACPI_DMT_ASF: /* ASF subtable types */ Temp16 = (UINT16) ((*Target) & 0x7F); /* Top bit can be zero or one */ if (Temp16 > ACPI_ASF_TYPE_RESERVED) { Temp16 = ACPI_ASF_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmAsfSubnames[Temp16]); break; case ACPI_DMT_CDAT: /* CDAT subtable types */ Temp8 = *Target; if (Temp8 > ACPI_CDAT_TYPE_RESERVED) { Temp8 = ACPI_CDAT_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmCdatSubnames[Temp8]); break; case ACPI_DMT_CEDT: /* CEDT subtable types */ Temp8 = *Target; if (Temp8 > ACPI_CEDT_TYPE_RESERVED) { Temp8 = ACPI_CEDT_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmCedtSubnames[Temp8]); break; case ACPI_DMT_DMAR: /* DMAR subtable types */ Temp16 = ACPI_GET16 (Target); if (Temp16 > ACPI_DMAR_TYPE_RESERVED) { Temp16 = ACPI_DMAR_TYPE_RESERVED; } AcpiOsPrintf (UINT16_FORMAT, ACPI_GET16 (Target), AcpiDmDmarSubnames[Temp16]); break; case ACPI_DMT_DMAR_SCOPE: /* DMAR device scope types */ Temp8 = *Target; if (Temp8 > ACPI_DMAR_SCOPE_TYPE_RESERVED) { Temp8 = ACPI_DMAR_SCOPE_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmDmarScope[Temp8]); break; case ACPI_DMT_EINJACT: /* EINJ Action types */ Temp8 = *Target; if (Temp8 > ACPI_EINJ_ACTION_RESERVED) { Temp8 = ACPI_EINJ_ACTION_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmEinjActions[Temp8]); break; case ACPI_DMT_EINJINST: /* EINJ Instruction types */ Temp8 = *Target; if (Temp8 > ACPI_EINJ_INSTRUCTION_RESERVED) { Temp8 = ACPI_EINJ_INSTRUCTION_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmEinjInstructions[Temp8]); break; case ACPI_DMT_ERSTACT: /* ERST Action types */ Temp8 = *Target; if (Temp8 > ACPI_ERST_ACTION_RESERVED) { Temp8 = ACPI_ERST_ACTION_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmErstActions[Temp8]); break; case ACPI_DMT_ERDT: /* ERDT subtable types */ Temp16 = *Target; if (Temp16 > ACPI_ERDT_TYPE_RESERVED) { Temp16 = ACPI_ERDT_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmErdtSubnames[Temp16]); break; case ACPI_DMT_ERSTINST: /* ERST Instruction types */ Temp8 = *Target; if (Temp8 > ACPI_ERST_INSTRUCTION_RESERVED) { Temp8 = ACPI_ERST_INSTRUCTION_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmErstInstructions[Temp8]); break; case ACPI_DMT_GTDT: /* GTDT subtable types */ Temp8 = *Target; if (Temp8 > ACPI_GTDT_TYPE_RESERVED) { Temp8 = ACPI_GTDT_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmGtdtSubnames[Temp8]); break; case ACPI_DMT_HEST: /* HEST subtable types */ Temp16 = ACPI_GET16 (Target); if (Temp16 > ACPI_HEST_TYPE_RESERVED) { Temp16 = ACPI_HEST_TYPE_RESERVED; } AcpiOsPrintf (UINT16_FORMAT, ACPI_GET16 (Target), AcpiDmHestSubnames[Temp16]); break; case ACPI_DMT_HESTNTFY: AcpiOsPrintf (STRING_FORMAT, "Hardware Error Notification Structure"); Status = AcpiDmDumpTable (TableLength, CurrentOffset, Target, sizeof (ACPI_HEST_NOTIFY), AcpiDmTableInfoHestNotify); if (ACPI_FAILURE (Status)) { return (Status); } AcpiOsPrintf ("\n"); LastOutputBlankLine = TRUE; break; case ACPI_DMT_HESTNTYP: /* HEST Notify types */ Temp8 = *Target; if (Temp8 > ACPI_HEST_NOTIFY_RESERVED) { Temp8 = ACPI_HEST_NOTIFY_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmHestNotifySubnames[Temp8]); break; case ACPI_DMT_HMAT: /* HMAT subtable types */ Temp16 = *Target; if (Temp16 > ACPI_HMAT_TYPE_RESERVED) { Temp16 = ACPI_HMAT_TYPE_RESERVED; } AcpiOsPrintf (UINT16_FORMAT, *Target, AcpiDmHmatSubnames[Temp16]); break; case ACPI_DMT_IORTMEM: AcpiOsPrintf (STRING_FORMAT, "IORT Memory Access Properties"); Status = AcpiDmDumpTable (TableLength, CurrentOffset, Target, sizeof (ACPI_IORT_MEMORY_ACCESS), AcpiDmTableInfoIortAcc); if (ACPI_FAILURE (Status)) { return (Status); } LastOutputBlankLine = TRUE; break; case ACPI_DMT_MADT: /* MADT subtable types */ Temp8 = *Target; if ((Temp8 >= ACPI_MADT_TYPE_RESERVED) && (Temp8 < ACPI_MADT_TYPE_OEM_RESERVED)) { Temp8 = ACPI_MADT_TYPE_RESERVED; } else if (Temp8 >= ACPI_MADT_TYPE_OEM_RESERVED) { Temp8 = ACPI_MADT_TYPE_RESERVED + 1; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmMadtSubnames[Temp8]); break; case ACPI_DMT_MPAM_LOCATOR: /* MPAM subtable locator types */ Temp8 = *Target; if (Temp8 > ACPI_MPAM_LOCATION_TYPE_INTERCONNECT) { Temp8 = ACPI_MPAM_LOCATION_TYPE_INTERCONNECT + 1; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmMpamSubnames[Temp8]); break; case ACPI_DMT_NFIT: /* NFIT subtable types */ Temp16 = ACPI_GET16 (Target); if (Temp16 > ACPI_NFIT_TYPE_RESERVED) { Temp16 = ACPI_NFIT_TYPE_RESERVED; } AcpiOsPrintf (UINT16_FORMAT, ACPI_GET16 (Target), AcpiDmNfitSubnames[Temp16]); break; case ACPI_DMT_PCCT: /* PCCT subtable types */ Temp8 = *Target; if (Temp8 > ACPI_PCCT_TYPE_RESERVED) { Temp8 = ACPI_PCCT_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmPcctSubnames[Temp8]); break; case ACPI_DMT_PHAT: /* PHAT subtable types */ Temp16 = ACPI_GET16 (Target); if (Temp16 > ACPI_PHAT_TYPE_RESERVED) { Temp16 = ACPI_PHAT_TYPE_RESERVED; } AcpiOsPrintf (UINT16_FORMAT, ACPI_GET16 (Target), AcpiDmPhatSubnames[Temp16]); break; case ACPI_DMT_PMTT: /* PMTT subtable types */ Temp8 = *Target; if (Temp8 == ACPI_PMTT_TYPE_VENDOR) { Temp8 = ACPI_PMTT_TYPE_RESERVED + 1; } else if (Temp8 > ACPI_PMTT_TYPE_RESERVED) { Temp8 = ACPI_PMTT_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmPmttSubnames[Temp8]); break; case ACPI_DMT_PPTT: /* PPTT subtable types */ Temp8 = *Target; if (Temp8 > ACPI_PPTT_TYPE_RESERVED) { Temp8 = ACPI_PPTT_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmPpttSubnames[Temp8]); break; case ACPI_DMT_UNICODE: case ACPI_DMT_WPBT_UNICODE: if (ByteLength == 0) { AcpiOsPrintf ("/* Zero-length Data */\n"); break; } AcpiDmDumpUnicode (Table, 0, ByteLength); break; case ACPI_DMT_RAW_BUFFER: case ACPI_DMT_BUFFER: case ACPI_DMT_PMTT_VENDOR: if (ByteLength == 0) { AcpiOsPrintf ("/* Zero-length Data */\n"); break; } AcpiDmDumpBuffer (Target, 0, ByteLength, CurrentOffset, NULL); break; case ACPI_DMT_RGRT: /* RGRT subtable types */ Temp8 = *Target; if (Temp8 >= ACPI_RGRT_TYPE_RESERVED) { Temp8 = ACPI_RGRT_TYPE_RESERVED0; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmRgrtSubnames[Temp8]); break; case ACPI_DMT_RHCT: /* RHCT subtable types */ Temp16 = ACPI_GET16 (Target); if (Temp16 == ACPI_RHCT_NODE_TYPE_HART_INFO) { Temp16 = ACPI_RHCT_NODE_TYPE_RESERVED; } AcpiOsPrintf (UINT16_FORMAT, ACPI_GET16 (Target), AcpiDmRhctSubnames[Temp16]); break; case ACPI_DMT_SDEV: /* SDEV subtable types */ Temp8 = *Target; if (Temp8 > ACPI_SDEV_TYPE_RESERVED) { Temp8 = ACPI_SDEV_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmSdevSubnames[Temp8]); break; case ACPI_DMT_SRAT: /* SRAT subtable types */ Temp8 = *Target; if (Temp8 > ACPI_SRAT_TYPE_RESERVED) { Temp8 = ACPI_SRAT_TYPE_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmSratSubnames[Temp8]); break; case ACPI_DMT_TPM2: /* TPM2 Start Method types */ Temp8 = *Target; if (Temp8 > ACPI_TPM2_RESERVED) { Temp8 = ACPI_TPM2_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmTpm2Subnames[Temp8]); break; case ACPI_DMT_FADTPM: /* FADT Preferred PM Profile names */ Temp8 = *Target; if (Temp8 > ACPI_FADT_PM_RESERVED) { Temp8 = ACPI_FADT_PM_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmFadtProfiles[Temp8]); break; case ACPI_DMT_IVRS: /* IVRS subtable types */ Temp8 = *Target; switch (Temp8) { case ACPI_IVRS_TYPE_HARDWARE1: case ACPI_IVRS_TYPE_HARDWARE2: Name = AcpiDmIvrsSubnames[0]; break; case ACPI_IVRS_TYPE_HARDWARE3: Name = AcpiDmIvrsSubnames[1]; break; case ACPI_IVRS_TYPE_MEMORY1: case ACPI_IVRS_TYPE_MEMORY2: case ACPI_IVRS_TYPE_MEMORY3: Name = AcpiDmIvrsSubnames[2]; break; default: Name = AcpiDmIvrsSubnames[3]; break; } AcpiOsPrintf (UINT8_FORMAT, *Target, Name); break; case ACPI_DMT_IVRS_DE: /* IVRS device entry types */ Temp8 = *Target; switch (Temp8) { case ACPI_IVRS_TYPE_ALL: case ACPI_IVRS_TYPE_SELECT: case ACPI_IVRS_TYPE_START: case ACPI_IVRS_TYPE_END: Name = AcpiDmIvrsDevEntryNames[Temp8]; break; case ACPI_IVRS_TYPE_ALIAS_SELECT: case ACPI_IVRS_TYPE_ALIAS_START: case ACPI_IVRS_TYPE_EXT_SELECT: case ACPI_IVRS_TYPE_EXT_START: case ACPI_IVRS_TYPE_SPECIAL: Name = AcpiDmIvrsDevEntryNames[Temp8 - 61]; break; case ACPI_IVRS_TYPE_HID: Name = AcpiDmIvrsDevEntryNames[Temp8 - 228]; break; default: Name = AcpiDmIvrsDevEntryNames[0]; /* Unknown/Reserved */ break; } AcpiOsPrintf (UINT8_FORMAT, *Target, Name); break; case ACPI_DMT_LPIT: /* LPIT subtable types */ Temp32 = ACPI_GET32 (Target); if (Temp32 > ACPI_LPIT_TYPE_RESERVED) { Temp32 = ACPI_LPIT_TYPE_RESERVED; } AcpiOsPrintf (UINT32_FORMAT, ACPI_GET32 (Target), AcpiDmLpitSubnames[Temp32]); break; case ACPI_DMT_VIOT: /* VIOT subtable types */ Temp8 = *Target; if (Temp8 > ACPI_VIOT_RESERVED) { Temp8 = ACPI_VIOT_RESERVED; } AcpiOsPrintf (UINT8_FORMAT, *Target, AcpiDmViotSubnames[Temp8]); break; case ACPI_DMT_EXIT: return (AE_OK); default: ACPI_ERROR ((AE_INFO, "**** Invalid table opcode [0x%X] ****\n", Info->Opcode)); return (AE_SUPPORT); } } if (TableOffset && !SubtableLength) { /* * If this table is not the main table, the subtable must have a * valid length */ AcpiOsPrintf ("Invalid zero length subtable\n"); return (AE_BAD_DATA); } return (AE_OK); } acpica-unix-20250404/source/common/adfile.c0000775000175000017500000002540014773714131017721 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: adfile - Application-level disassembler file support routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acpi.h" #include "accommon.h" #include "acapps.h" #include #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("adfile") /* Local prototypes */ static INT32 AdWriteBuffer ( char *Filename, char *Buffer, UINT32 Length); static char FilenameBuf[20]; /****************************************************************************** * * FUNCTION: AfGenerateFilename * * PARAMETERS: Prefix - prefix string * TableId - The table ID * * RETURN: Pointer to the completed string * * DESCRIPTION: Build an output filename from an ACPI table ID string * ******************************************************************************/ char * AdGenerateFilename ( char *Prefix, char *TableId) { UINT32 i; UINT32 j; for (i = 0; Prefix[i]; i++) { FilenameBuf[i] = Prefix[i]; } FilenameBuf[i] = '_'; i++; for (j = 0; j < 8 && (TableId[j] != ' ') && (TableId[j] != 0); i++, j++) { FilenameBuf[i] = TableId[j]; } FilenameBuf[i] = 0; strcat (FilenameBuf, FILE_SUFFIX_BINARY_TABLE); return (FilenameBuf); } /****************************************************************************** * * FUNCTION: AfWriteBuffer * * PARAMETERS: Filename - name of file * Buffer - data to write * Length - length of data * * RETURN: Actual number of bytes written * * DESCRIPTION: Open a file and write out a single buffer * ******************************************************************************/ static INT32 AdWriteBuffer ( char *Filename, char *Buffer, UINT32 Length) { FILE *File; ACPI_SIZE Actual; File = fopen (Filename, "wb"); if (!File) { printf ("Could not open file %s\n", Filename); return (-1); } Actual = fwrite (Buffer, 1, (size_t) Length, File); if (Actual != Length) { printf ("Could not write to file %s\n", Filename); } fclose (File); return ((INT32) Actual); } /****************************************************************************** * * FUNCTION: AfWriteTable * * PARAMETERS: Table - pointer to the ACPI table * Length - length of the table * TableName - the table signature * OemTableID - from the table header * * RETURN: None * * DESCRIPTION: Dump the loaded tables to a file (or files) * ******************************************************************************/ void AdWriteTable ( ACPI_TABLE_HEADER *Table, UINT32 Length, char *TableName, char *OemTableId) { char *Filename; Filename = AdGenerateFilename (TableName, OemTableId); AdWriteBuffer (Filename, (char *) Table, Length); AcpiOsPrintf ("Table [%s] written to \"%s\"\n", TableName, Filename); } /******************************************************************************* * * FUNCTION: FlGenerateFilename * * PARAMETERS: InputFilename - Original ASL source filename * Suffix - New extension. * * RETURN: New filename containing the original base + the new suffix * * DESCRIPTION: Generate a new filename from the ASL source filename and a new * extension. Used to create the *.LST, *.TXT, etc. files. * ******************************************************************************/ char * FlGenerateFilename ( char *InputFilename, char *Suffix) { char *Position; char *NewFilename; char *DirectoryPosition; /* * Copy the original filename to a new buffer. Leave room for the worst * case where we append the suffix, an added dot and the null terminator. */ NewFilename = UtLocalCacheCalloc ((ACPI_SIZE) strlen (InputFilename) + strlen (Suffix) + 2); strcpy (NewFilename, InputFilename); /* Try to find the last dot in the filename */ DirectoryPosition = strrchr (NewFilename, '/'); Position = strrchr (NewFilename, '.'); if (Position && (Position > DirectoryPosition)) { /* Tack on the new suffix */ Position++; *Position = 0; strcat (Position, Suffix); } else { /* No dot, add one and then the suffix */ strcat (NewFilename, "."); strcat (NewFilename, Suffix); } return (NewFilename); } /******************************************************************************* * * FUNCTION: FlStrdup * * DESCRIPTION: Local strdup function * ******************************************************************************/ static char * FlStrdup ( char *String) { char *NewString; NewString = UtLocalCacheCalloc ((ACPI_SIZE) strlen (String) + 1); strcpy (NewString, String); return (NewString); } /******************************************************************************* * * FUNCTION: FlSplitInputPathname * * PARAMETERS: InputFilename - The user-specified ASL source file to be * compiled * OutDirectoryPath - Where the directory path prefix is * returned * OutFilename - Where the filename part is returned * * RETURN: Status * * DESCRIPTION: Split the input path into a directory and filename part * 1) Directory part used to open include files * 2) Filename part used to generate output filenames * ******************************************************************************/ ACPI_STATUS FlSplitInputPathname ( char *InputPath, char **OutDirectoryPath, char **OutFilename) { char *Substring; char *DirectoryPath; char *Filename; if (OutDirectoryPath) { *OutDirectoryPath = NULL; } if (!InputPath) { return (AE_OK); } /* Get the path to the input filename's directory */ DirectoryPath = FlStrdup (InputPath); if (!DirectoryPath) { return (AE_NO_MEMORY); } /* Convert backslashes to slashes in the entire path */ UtConvertBackslashes (DirectoryPath); /* Backup to last slash or colon */ Substring = strrchr (DirectoryPath, '/'); if (!Substring) { Substring = strrchr (DirectoryPath, ':'); } /* Extract the simple filename */ if (!Substring) { Filename = FlStrdup (DirectoryPath); DirectoryPath[0] = 0; } else { Filename = FlStrdup (Substring + 1); *(Substring+1) = 0; } if (!Filename) { return (AE_NO_MEMORY); } if (OutDirectoryPath) { *OutDirectoryPath = DirectoryPath; } if (OutFilename) { *OutFilename = Filename; return (AE_OK); } return (AE_OK); } /******************************************************************************* * * FUNCTION: FlGetFileBasename * * PARAMETERS: FilePathname - File path to be split * * RETURN: The extracted base name of the file, in upper case * * DESCRIPTION: Extract the file base name (the file name with no extension) * from the input pathname. * * Note: Any backslashes in the pathname should be previously * converted to forward slashes before calling this function. * ******************************************************************************/ char * FlGetFileBasename ( char *FilePathname) { char *FileBasename; char *Substring; /* Backup to last slash or colon */ Substring = strrchr (FilePathname, '/'); if (!Substring) { Substring = strrchr (FilePathname, ':'); } /* Extract the full filename (base + extension) */ if (Substring) { FileBasename = FlStrdup (Substring + 1); } else { FileBasename = FlStrdup (FilePathname); } /* Remove the filename extension if present */ Substring = strchr (FileBasename, '.'); if (Substring) { *Substring = 0; } AcpiUtStrupr (FileBasename); return (FileBasename); } acpica-unix-20250404/source/common/dmtbdump3.c0000775000175000017500000004750114773714131020402 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtbdump3 - Dump ACPI data tables that contain no AML code * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "actables.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmtbdump3") /******************************************************************************* * * FUNCTION: AcpiDmDumpSlic * * PARAMETERS: Table - A SLIC table * * RETURN: None * * DESCRIPTION: Format the contents of a SLIC * ******************************************************************************/ void AcpiDmDumpSlic ( ACPI_TABLE_HEADER *Table) { (void) AcpiDmDumpTable (Table->Length, sizeof (ACPI_TABLE_HEADER), (void *) ((UINT8 *)Table + sizeof (*Table)), Table->Length - sizeof (*Table), AcpiDmTableInfoSlic); } /******************************************************************************* * * FUNCTION: AcpiDmDumpSlit * * PARAMETERS: Table - An SLIT * * RETURN: None * * DESCRIPTION: Format the contents of a SLIT * ******************************************************************************/ void AcpiDmDumpSlit ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset; UINT8 *Row; UINT32 Localities; UINT32 i; UINT32 j; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSlit); if (ACPI_FAILURE (Status)) { return; } /* Display the Locality NxN Matrix */ Localities = (UINT32) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->LocalityCount; Offset = ACPI_OFFSET (ACPI_TABLE_SLIT, Entry[0]); Row = (UINT8 *) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->Entry; for (i = 0; i < Localities; i++) { /* Display one row of the matrix */ AcpiDmLineHeader2 (Offset, Localities, "Locality", i); for (j = 0; j < Localities; j++) { /* Check for beyond EOT */ if (Offset >= Table->Length) { AcpiOsPrintf ( "\n**** Not enough room in table for all localities\n"); return; } AcpiOsPrintf ("%2.2X", Row[j]); Offset++; /* Display up to 16 bytes per output row */ if ((j+1) < Localities) { AcpiOsPrintf (" "); if (j && (((j+1) % 16) == 0)) { AcpiOsPrintf ("\\\n"); /* With line continuation char */ AcpiDmLineHeader (Offset, 0, NULL); } } } /* Point to next row */ AcpiOsPrintf ("\n"); Row += Localities; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpSrat * * PARAMETERS: Table - A SRAT table * * RETURN: None * * DESCRIPTION: Format the contents of a SRAT * ******************************************************************************/ void AcpiDmDumpSrat ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_SRAT); ACPI_SUBTABLE_HEADER *Subtable; ACPI_DMTABLE_INFO *InfoTable; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoSrat); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, AcpiDmTableInfoSratHdr); if (ACPI_FAILURE (Status)) { return; } switch (Subtable->Type) { case ACPI_SRAT_TYPE_CPU_AFFINITY: InfoTable = AcpiDmTableInfoSrat0; break; case ACPI_SRAT_TYPE_MEMORY_AFFINITY: InfoTable = AcpiDmTableInfoSrat1; break; case ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY: InfoTable = AcpiDmTableInfoSrat2; break; case ACPI_SRAT_TYPE_GICC_AFFINITY: InfoTable = AcpiDmTableInfoSrat3; break; case ACPI_SRAT_TYPE_GIC_ITS_AFFINITY: InfoTable = AcpiDmTableInfoSrat4; break; case ACPI_SRAT_TYPE_GENERIC_AFFINITY: InfoTable = AcpiDmTableInfoSrat5; break; case ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY: InfoTable = AcpiDmTableInfoSrat6; break; case ACPI_SRAT_TYPE_RINTC_AFFINITY: InfoTable = AcpiDmTableInfoSrat7; break; default: AcpiOsPrintf ("\n**** Unknown SRAT subtable type 0x%X\n", Subtable->Type); /* Attempt to continue */ if (!Subtable->Length) { AcpiOsPrintf ("Invalid zero length subtable\n"); return; } goto NextSubtable; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Subtable->Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } NextSubtable: /* Point to next subtable */ Offset += Subtable->Length; Subtable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Subtable, Subtable->Length); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpStao * * PARAMETERS: Table - A STAO table * * RETURN: None * * DESCRIPTION: Format the contents of a STAO. This is a variable-length * table that contains an open-ended number of ASCII strings * at the end of the table. * ******************************************************************************/ void AcpiDmDumpStao ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; char *Namepath; UINT32 Length = Table->Length; UINT32 StringLength; UINT32 Offset = sizeof (ACPI_TABLE_STAO); /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoStao); if (ACPI_FAILURE (Status)) { return; } /* The rest of the table consists of Namepath strings */ while (Offset < Table->Length) { Namepath = ACPI_ADD_PTR (char, Table, Offset); StringLength = strlen (Namepath) + 1; AcpiDmLineHeader (Offset, StringLength, "Namepath"); AcpiOsPrintf ("\"%s\"\n", Namepath); /* Point to next namepath */ Offset += StringLength; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpSvkl * * PARAMETERS: Table - A SVKL table * * RETURN: None * * DESCRIPTION: Format the contents of a SVKL. This is a variable-length * table that contains an open-ended number of key subtables at * the end of the header. * * NOTES: SVKL is essentially a flat table, with a small main table and * a variable number of a single type of subtable. * ******************************************************************************/ void AcpiDmDumpSvkl ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Length = Table->Length; UINT32 Offset = sizeof (ACPI_TABLE_SVKL); ACPI_SVKL_KEY *Subtable; /* Main table */ Status = AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoSvkl); if (ACPI_FAILURE (Status)) { return; } /* The rest of the table consists of subtables (single type) */ Subtable = ACPI_ADD_PTR (ACPI_SVKL_KEY, Table, Offset); while (Offset < Table->Length) { /* Dump the subtable */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, sizeof (ACPI_SVKL_KEY), AcpiDmTableInfoSvkl0); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable */ Offset += sizeof (ACPI_SVKL_KEY); Subtable = ACPI_ADD_PTR (ACPI_SVKL_KEY, Subtable, sizeof (ACPI_SVKL_KEY)); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpTcpa * * PARAMETERS: Table - A TCPA table * * RETURN: None * * DESCRIPTION: Format the contents of a TCPA. * * NOTE: There are two versions of the table with the same signature: * the client version and the server version. The common * PlatformClass field is used to differentiate the two types of * tables. * ******************************************************************************/ void AcpiDmDumpTcpa ( ACPI_TABLE_HEADER *Table) { UINT32 Offset = sizeof (ACPI_TABLE_TCPA_HDR); ACPI_TABLE_TCPA_HDR *CommonHeader = ACPI_CAST_PTR ( ACPI_TABLE_TCPA_HDR, Table); ACPI_TABLE_TCPA_HDR *Subtable = ACPI_ADD_PTR ( ACPI_TABLE_TCPA_HDR, Table, Offset); ACPI_STATUS Status; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoTcpaHdr); if (ACPI_FAILURE (Status)) { return; } /* * Examine the PlatformClass field to determine the table type. * Either a client or server table. Only one. */ switch (CommonHeader->PlatformClass) { case ACPI_TCPA_CLIENT_TABLE: Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Table->Length - Offset, AcpiDmTableInfoTcpaClient); break; case ACPI_TCPA_SERVER_TABLE: Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Table->Length - Offset, AcpiDmTableInfoTcpaServer); break; default: AcpiOsPrintf ("\n**** Unknown TCPA Platform Class 0x%X\n", CommonHeader->PlatformClass); Status = AE_ERROR; break; } if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("\n**** Cannot disassemble TCPA table\n"); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpTpm2 * * PARAMETERS: Table - A TPM2 table * * RETURN: None * * DESCRIPTION: Format the contents of a TPM2. * ******************************************************************************/ static void AcpiDmDumpTpm2Rev3 ( ACPI_TABLE_HEADER *Table) { UINT32 Offset = sizeof (ACPI_TABLE_TPM23); ACPI_TABLE_TPM23 *CommonHeader = ACPI_CAST_PTR (ACPI_TABLE_TPM23, Table); ACPI_TPM23_TRAILER *Subtable = ACPI_ADD_PTR (ACPI_TPM23_TRAILER, Table, Offset); ACPI_STATUS Status; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoTpm23); if (ACPI_FAILURE (Status)) { return; } /* Optional subtable if start method is ACPI start method */ switch (CommonHeader->StartMethod) { case ACPI_TPM23_ACPI_START_METHOD: (void) AcpiDmDumpTable (Table->Length, Offset, Subtable, Table->Length - Offset, AcpiDmTableInfoTpm23a); break; default: break; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpTpm2 * * PARAMETERS: Table - A TPM2 table * * RETURN: None * * DESCRIPTION: Format the contents of a TPM2. * ******************************************************************************/ void AcpiDmDumpTpm2 ( ACPI_TABLE_HEADER *Table) { UINT32 Offset = sizeof (ACPI_TABLE_TPM2); ACPI_TABLE_TPM2 *CommonHeader = ACPI_CAST_PTR (ACPI_TABLE_TPM2, Table); ACPI_TPM2_TRAILER *Subtable = ACPI_ADD_PTR (ACPI_TPM2_TRAILER, Table, Offset); ACPI_TPM2_ARM_SMC *ArmSubtable; ACPI_STATUS Status; if (Table->Revision == 3) { AcpiDmDumpTpm2Rev3(Table); return; } /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoTpm2); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, Table->Length - Offset, AcpiDmTableInfoTpm2a); if (ACPI_FAILURE (Status)) { return; } switch (CommonHeader->StartMethod) { case ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC: ArmSubtable = ACPI_ADD_PTR (ACPI_TPM2_ARM_SMC, Subtable, sizeof (ACPI_TPM2_TRAILER)); Offset += sizeof (ACPI_TPM2_TRAILER); AcpiOsPrintf ("\n"); (void) AcpiDmDumpTable (Table->Length, Offset, ArmSubtable, Table->Length - Offset, AcpiDmTableInfoTpm211); break; default: break; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpViot * * PARAMETERS: Table - A VIOT table * * RETURN: None * * DESCRIPTION: Format the contents of a VIOT * ******************************************************************************/ void AcpiDmDumpViot ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_TABLE_VIOT *Viot; ACPI_VIOT_HEADER *ViotHeader; UINT16 Length; UINT32 Offset; ACPI_DMTABLE_INFO *InfoTable; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoViot); if (ACPI_FAILURE (Status)) { return; } Viot = ACPI_CAST_PTR (ACPI_TABLE_VIOT, Table); Offset = Viot->NodeOffset; while (Offset < Table->Length) { /* Common subtable header */ ViotHeader = ACPI_ADD_PTR (ACPI_VIOT_HEADER, Table, Offset); AcpiOsPrintf ("\n"); Length = sizeof (ACPI_VIOT_HEADER); Status = AcpiDmDumpTable (Table->Length, Offset, ViotHeader, Length, AcpiDmTableInfoViotHeader); if (ACPI_FAILURE (Status)) { return; } Length = ViotHeader->Length; switch (ViotHeader->Type) { case ACPI_VIOT_NODE_PCI_RANGE: InfoTable = AcpiDmTableInfoViot1; break; case ACPI_VIOT_NODE_MMIO: InfoTable = AcpiDmTableInfoViot2; break; case ACPI_VIOT_NODE_VIRTIO_IOMMU_PCI: InfoTable = AcpiDmTableInfoViot3; break; case ACPI_VIOT_NODE_VIRTIO_IOMMU_MMIO: InfoTable = AcpiDmTableInfoViot4; break; default: AcpiOsPrintf ("\n*** Unknown VIOT node type 0x%X\n", ViotHeader->Type); /* Attempt to continue */ if (!Length) { AcpiOsPrintf ("Invalid zero length VIOT node\n"); return; } goto NextSubtable; } AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, ViotHeader, Length, InfoTable); if (ACPI_FAILURE (Status)) { return; } NextSubtable: Offset += Length; } } /******************************************************************************* * * FUNCTION: AcpiDmDumpWdat * * PARAMETERS: Table - A WDAT table * * RETURN: None * * DESCRIPTION: Format the contents of a WDAT * ******************************************************************************/ void AcpiDmDumpWdat ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 Offset = sizeof (ACPI_TABLE_WDAT); ACPI_WDAT_ENTRY *Subtable; /* Main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoWdat); if (ACPI_FAILURE (Status)) { return; } /* Subtables */ Subtable = ACPI_ADD_PTR (ACPI_WDAT_ENTRY, Table, Offset); while (Offset < Table->Length) { /* Common subtable header */ AcpiOsPrintf ("\n"); Status = AcpiDmDumpTable (Table->Length, Offset, Subtable, sizeof (ACPI_WDAT_ENTRY), AcpiDmTableInfoWdat0); if (ACPI_FAILURE (Status)) { return; } /* Point to next subtable */ Offset += sizeof (ACPI_WDAT_ENTRY); Subtable = ACPI_ADD_PTR (ACPI_WDAT_ENTRY, Subtable, sizeof (ACPI_WDAT_ENTRY)); } } /******************************************************************************* * * FUNCTION: AcpiDmDumpWpbt * * PARAMETERS: Table - A WPBT table * * RETURN: None * * DESCRIPTION: Format the contents of a WPBT. This table type consists * of an open-ended arguments buffer at the end of the table. * ******************************************************************************/ void AcpiDmDumpWpbt ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_TABLE_WPBT *Subtable; UINT16 ArgumentsLength; /* Dump the main table */ Status = AcpiDmDumpTable (Table->Length, 0, Table, 0, AcpiDmTableInfoWpbt); if (ACPI_FAILURE (Status)) { return; } /* Extract the arguments buffer length from the main table */ Subtable = ACPI_CAST_PTR (ACPI_TABLE_WPBT, Table); ArgumentsLength = Subtable->ArgumentsLength; /* Dump the arguments buffer if present */ if (ArgumentsLength) { (void) AcpiDmDumpTable (Table->Length, 0, Table, ArgumentsLength, AcpiDmTableInfoWpbt0); } } acpica-unix-20250404/source/common/dmtables.c0000775000175000017500000003412614773714131020275 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmtables - disassembler ACPI table support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acdispat.h" #include "acnamesp.h" #include "actables.h" #include "acparser.h" #include "acapps.h" #include "acmacros.h" #include "acconvert.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("dmtables") /* Local prototypes */ static void AdCreateTableHeader ( char *Filename, ACPI_TABLE_HEADER *Table); static ACPI_STATUS AdStoreTable ( ACPI_TABLE_HEADER *Table, UINT32 *TableIndex); extern ACPI_TABLE_DESC LocalTables[1]; extern ACPI_PARSE_OBJECT *AcpiGbl_ParseOpRoot; /****************************************************************************** * * FUNCTION: AdDisassemblerHeader * * PARAMETERS: Filename - Input file for the table * TableType - Either AML or DataTable * * RETURN: None * * DESCRIPTION: Create the disassembler header, including ACPICA signon with * optional current time and date. * *****************************************************************************/ void AdDisassemblerHeader ( char *Filename, UINT8 TableType) { time_t Timer; /* Header and input table info */ AcpiOsPrintf ("/*\n"); AcpiOsPrintf (ACPI_COMMON_HEADER (AML_DISASSEMBLER_NAME, " * ")); if (TableType == ACPI_IS_AML_TABLE) { if (AcpiGbl_CstyleDisassembly) { AcpiOsPrintf ( " * Disassembling to symbolic ASL+ operators\n" " *\n"); } else { AcpiOsPrintf ( " * Disassembling to non-symbolic legacy ASL operators\n" " *\n"); } } if (AslGbl_Deterministic) { AcpiOsPrintf (" * Disassembly of %s\n", Filename); } else { time (&Timer); AcpiOsPrintf (" * Disassembly of %s, %s", Filename, ctime (&Timer)); } AcpiOsPrintf (" *\n"); } /****************************************************************************** * * FUNCTION: AdCreateTableHeader * * PARAMETERS: Filename - Input file for the table * Table - Pointer to the raw table * * RETURN: None * * DESCRIPTION: Create the ASL table header, including ACPICA signon with * current time and date. * *****************************************************************************/ static void AdCreateTableHeader ( char *Filename, ACPI_TABLE_HEADER *Table) { UINT8 Checksum; /* Reset globals for External statements */ AcpiGbl_NumExternalMethods = 0; AcpiGbl_ResolvedExternalMethods = 0; /* * Print file header and dump original table header */ AdDisassemblerHeader (Filename, ACPI_IS_AML_TABLE); AcpiOsPrintf (" * Original Table Header:\n"); AcpiOsPrintf (" * Signature \"%4.4s\"\n", Table->Signature); AcpiOsPrintf (" * Length 0x%8.8X (%u)\n", Table->Length, Table->Length); /* Print and validate the revision */ AcpiOsPrintf (" * Revision 0x%2.2X", Table->Revision); switch (Table->Revision) { case 0: AcpiOsPrintf (" **** Invalid Revision"); break; case 1: /* Revision of DSDT controls the ACPI integer width */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_DSDT)) { AcpiOsPrintf (" **** 32-bit table (V1), no 64-bit math support"); } break; default: break; } /* Print and validate the table checksum */ AcpiOsPrintf ("\n * Checksum 0x%2.2X", Table->Checksum); Checksum = AcpiUtChecksum (ACPI_CAST_PTR (UINT8, Table), Table->Length); if (Checksum) { AcpiOsPrintf (" **** Incorrect checksum, should be 0x%2.2X", (UINT8) (Table->Checksum - Checksum)); } AcpiOsPrintf ("\n"); AcpiOsPrintf (" * OEM ID \"%.6s\"\n", Table->OemId); AcpiOsPrintf (" * OEM Table ID \"%.8s\"\n", Table->OemTableId); AcpiOsPrintf (" * OEM Revision 0x%8.8X (%u)\n", Table->OemRevision, Table->OemRevision); AcpiOsPrintf (" * Compiler ID \"%.4s\"\n", Table->AslCompilerId); AcpiOsPrintf (" * Compiler Version 0x%8.8X (%u)\n", Table->AslCompilerRevision, Table->AslCompilerRevision); AcpiOsPrintf (" */\n"); /* * Print comments that come before this definition block. */ if (AcpiGbl_CaptureComments) { ASL_CV_PRINT_ONE_COMMENT(AcpiGbl_ParseOpRoot,AML_COMMENT_STANDARD, NULL, 0); } /* * Open the ASL definition block. * * Note: the AMLFilename string is left zero-length in order to just let * the compiler create it when the disassembled file is compiled. This * makes it easier to rename the disassembled ASL file if needed. */ AcpiOsPrintf ( "DefinitionBlock (\"\", \"%4.4s\", %u, \"%.6s\", \"%.8s\", 0x%8.8X)\n", Table->Signature, Table->Revision, Table->OemId, Table->OemTableId, Table->OemRevision); } /****************************************************************************** * * FUNCTION: AdDisplayTables * * PARAMETERS: Filename - Input file for the table * Table - Pointer to the raw table * * RETURN: Status * * DESCRIPTION: Display (disassemble) loaded tables and dump raw tables * *****************************************************************************/ ACPI_STATUS AdDisplayTables ( char *Filename, ACPI_TABLE_HEADER *Table) { if (!AcpiGbl_ParseOpRoot) { return (AE_NOT_EXIST); } if (!AcpiGbl_DmOpt_Listing) { AdCreateTableHeader (Filename, Table); } AcpiDmDisassemble (NULL, AcpiGbl_ParseOpRoot, ACPI_UINT32_MAX); MpEmitMappingInfo (); if (AcpiGbl_DmOpt_Listing) { AcpiOsPrintf ("\n\nTable Header:\n"); AcpiUtDebugDumpBuffer ((UINT8 *) Table, sizeof (ACPI_TABLE_HEADER), DB_BYTE_DISPLAY, ACPI_UINT32_MAX); AcpiOsPrintf ("Table Body (Length 0x%X)\n", Table->Length); AcpiUtDebugDumpBuffer (((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)), Table->Length, DB_BYTE_DISPLAY, ACPI_UINT32_MAX); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AdStoreTable * * PARAMETERS: Table - Table header * TableIndex - Where the table index is returned * * RETURN: Status and table index. * * DESCRIPTION: Add an ACPI table to the global table list * ******************************************************************************/ static ACPI_STATUS AdStoreTable ( ACPI_TABLE_HEADER *Table, UINT32 *TableIndex) { ACPI_STATUS Status; ACPI_TABLE_DESC *TableDesc; Status = AcpiTbGetNextTableDescriptor (TableIndex, &TableDesc); if (ACPI_FAILURE (Status)) { return (Status); } /* Initialize added table */ AcpiTbInitTableDescriptor (TableDesc, ACPI_PTR_TO_PHYSADDR (Table), ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL, Table); Status = AcpiTbValidateTable (TableDesc); return (Status); } /****************************************************************************** * * FUNCTION: AdGetLocalTables * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Get the ACPI tables from either memory or a file * *****************************************************************************/ ACPI_STATUS AdGetLocalTables ( void) { ACPI_STATUS Status; ACPI_TABLE_HEADER TableHeader; ACPI_TABLE_HEADER *NewTable; UINT32 TableIndex; /* Get the DSDT via table override */ ACPI_MOVE_32_TO_32 (TableHeader.Signature, ACPI_SIG_DSDT); Status = AcpiOsTableOverride (&TableHeader, &NewTable); if (ACPI_FAILURE (Status) || !NewTable) { fprintf (stderr, "Could not obtain DSDT\n"); return (AE_NO_ACPI_TABLES); } AdWriteTable (NewTable, NewTable->Length, ACPI_SIG_DSDT, NewTable->OemTableId); /* Store DSDT in the Table Manager */ Status = AdStoreTable (NewTable, &TableIndex); if (ACPI_FAILURE (Status)) { fprintf (stderr, "Could not store DSDT\n"); return (AE_NO_ACPI_TABLES); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AdParseTable * * PARAMETERS: Table - Pointer to the raw table * OwnerId - Returned OwnerId of the table * LoadTable - If add table to the global table list * External - If this is an external table * * RETURN: Status * * DESCRIPTION: Parse an ACPI AML table * *****************************************************************************/ ACPI_STATUS AdParseTable ( ACPI_TABLE_HEADER *Table, ACPI_OWNER_ID *OwnerId, BOOLEAN LoadTable, BOOLEAN External) { ACPI_STATUS Status = AE_OK; ACPI_WALK_STATE *WalkState; UINT8 *AmlStart; UINT32 AmlLength; UINT32 TableIndex; if (!Table) { return (AE_NOT_EXIST); } /* Pass 1: Parse everything except control method bodies */ fprintf (stderr, "Pass 1 parse of [%4.4s]\n", (char *) Table->Signature); AmlLength = Table->Length - sizeof (ACPI_TABLE_HEADER); AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)); AcpiUtSetIntegerWidth (Table->Revision); /* Create the root object */ AcpiGbl_ParseOpRoot = AcpiPsCreateScopeOp (AmlStart); if (!AcpiGbl_ParseOpRoot) { return (AE_NO_MEMORY); } #ifdef ACPI_ASL_COMPILER if (AcpiGbl_CaptureComments) { AcpiGbl_ParseOpRoot->Common.CvFilename = AcpiGbl_FileTreeRoot->Filename; } else { AcpiGbl_ParseOpRoot->Common.CvFilename = NULL; } #endif /* Create and initialize a new walk state */ WalkState = AcpiDsCreateWalkState (0, AcpiGbl_ParseOpRoot, NULL, NULL); if (!WalkState) { return (AE_NO_MEMORY); } Status = AcpiDsInitAmlWalk (WalkState, AcpiGbl_ParseOpRoot, NULL, AmlStart, AmlLength, NULL, ACPI_IMODE_LOAD_PASS1); if (ACPI_FAILURE (Status)) { return (Status); } WalkState->ParseFlags &= ~ACPI_PARSE_DELETE_TREE; Status = AcpiPsParseAml (WalkState); if (ACPI_FAILURE (Status)) { return (Status); } /* If LoadTable is FALSE, we are parsing the last loaded table */ TableIndex = AcpiGbl_RootTableList.CurrentTableCount - 1; /* Pass 2 */ if (LoadTable) { Status = AdStoreTable (Table, &TableIndex); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiTbAllocateOwnerId (TableIndex); if (ACPI_FAILURE (Status)) { return (Status); } if (OwnerId) { Status = AcpiTbGetOwnerId (TableIndex, OwnerId); if (ACPI_FAILURE (Status)) { return (Status); } } } fprintf (stderr, "Pass 2 parse of [%4.4s]\n", (char *) Table->Signature); Status = AcpiNsOneCompleteParse (ACPI_IMODE_LOAD_PASS2, TableIndex, NULL); if (ACPI_FAILURE (Status)) { return (Status); } /* No need to parse control methods of external table */ if (External) { return (AE_OK); } /* * Pass 3: Parse control methods and link their parse trees * into the main parse tree */ fprintf (stderr, "Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)\n"); (void) AcpiDmParseDeferredOps (AcpiGbl_ParseOpRoot); fprintf (stderr, "\n"); /* Process Resource Templates */ AcpiDmFindResources (AcpiGbl_ParseOpRoot); fprintf (stderr, "Parsing completed\n"); return (AE_OK); } acpica-unix-20250404/source/common/acfileio.c0000775000175000017500000004432514773714131020257 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acfileio - Get ACPI tables from file * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "actables.h" #include "acutils.h" #include "acapps.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("acfileio") /* Local prototypes */ static ACPI_STATUS AcGetOneTableFromFile ( char *Filename, FILE *File, UINT8 GetOnlyAmlTables, ACPI_TABLE_HEADER **Table); static ACPI_STATUS AcCheckTextModeCorruption ( ACPI_TABLE_HEADER *Table); /******************************************************************************* * * FUNCTION: AcDeleteTableList * * PARAMETERS: ListHead - List to delete * * RETURN: Status * * DESCRIPTION: Delete a list of tables. This is useful for removing memory * allocated by AcGetAllTablesFromFile * ******************************************************************************/ void AcDeleteTableList ( ACPI_NEW_TABLE_DESC *ListHead) { ACPI_NEW_TABLE_DESC *Current = ListHead; ACPI_NEW_TABLE_DESC *Previous = Current; while (Current) { Current = Current->Next; AcpiOsFree (Previous); Previous = Current; } } /******************************************************************************* * * FUNCTION: AcGetAllTablesFromFile * * PARAMETERS: Filename - Table filename * GetOnlyAmlTables - TRUE if the tables must be AML tables * ReturnListHead - Where table list is returned * * RETURN: Status * * DESCRIPTION: Get all ACPI tables from within a single file. * ******************************************************************************/ ACPI_STATUS AcGetAllTablesFromFile ( char *Filename, UINT8 GetOnlyAmlTables, ACPI_NEW_TABLE_DESC **ReturnListHead) { ACPI_NEW_TABLE_DESC *ListHead = NULL; ACPI_NEW_TABLE_DESC *ListTail = NULL; ACPI_NEW_TABLE_DESC *TableDesc; FILE *File; ACPI_TABLE_HEADER *Table = NULL; UINT32 FileSize; ACPI_STATUS Status = AE_OK; File = fopen (Filename, "rb"); if (!File) { fprintf (stderr, "Could not open input file: %s\n", Filename); if (errno == ENOENT) { return (AE_NOT_EXIST); } return (AE_ERROR); } /* Get the file size */ FileSize = CmGetFileSize (File); if (FileSize == ACPI_UINT32_MAX) { Status = AE_ERROR; goto Exit; } fprintf (stderr, "Input file %s, Length 0x%X (%u) bytes\n", Filename, FileSize, FileSize); /* We must have at least one ACPI table header */ if (FileSize < sizeof (ACPI_TABLE_HEADER)) { Status = AE_BAD_HEADER; goto Exit; } /* Check for an non-binary file */ if (!AcIsFileBinary (File)) { fprintf (stderr, " %s: File does not appear to contain a valid AML table\n", Filename); Status = AE_TYPE; goto Exit; } /* Read all tables within the file */ while (ACPI_SUCCESS (Status)) { /* Get one entire ACPI table */ Status = AcGetOneTableFromFile ( Filename, File, GetOnlyAmlTables, &Table); if (Status == AE_CTRL_TERMINATE) { Status = AE_OK; break; } else if (Status == AE_TYPE) { Status = AE_OK; goto Exit; } else if (ACPI_FAILURE (Status)) { goto Exit; } /* Print table header for iASL/disassembler only */ #ifdef ACPI_ASL_COMPILER AcpiTbPrintTableHeader (0, Table); #endif /* Allocate and link a table descriptor */ TableDesc = AcpiOsAllocate (sizeof (ACPI_NEW_TABLE_DESC)); if (!TableDesc) { AcpiOsFree (Table); Status = AE_NO_MEMORY; goto Exit; } TableDesc->Table = Table; TableDesc->Next = NULL; /* Link at the end of the local table list */ if (!ListHead) { ListHead = TableDesc; ListTail = TableDesc; } else { ListTail->Next = TableDesc; ListTail = TableDesc; } } /* Add the local table list to the end of the global list */ if (*ReturnListHead) { ListTail = *ReturnListHead; while (ListTail->Next) { ListTail = ListTail->Next; } ListTail->Next = ListHead; } else { *ReturnListHead = ListHead; } Exit: fclose(File); return (Status); } /******************************************************************************* * * FUNCTION: AcGetOneTableFromFile * * PARAMETERS: Filename - File where table is located * File - Open FILE pointer to Filename * GetOnlyAmlTables - TRUE if the tables must be AML tables. * ReturnTable - Where a pointer to the table is returned * * RETURN: Status * * DESCRIPTION: Read the next ACPI table from a file. Implements support * for multiple tables within a single file. File must already * be open. * * Note: Loading an RSDP is not supported. * ******************************************************************************/ static ACPI_STATUS AcGetOneTableFromFile ( char *Filename, FILE *File, UINT8 GetOnlyAmlTables, ACPI_TABLE_HEADER **ReturnTable) { ACPI_STATUS Status = AE_OK; ACPI_TABLE_HEADER TableHeader; ACPI_TABLE_HEADER *Table; INT32 Count; UINT32 TableLength; UINT32 HeaderLength; long TableOffset = 0; *ReturnTable = NULL; /* Get the table header to examine signature and length */ /* * Special handling for the CDAT table (both the Length field * and the Checksum field are not in the standard positions). * (The table header is non-standard). */ if (AcpiGbl_CDAT) { HeaderLength = sizeof (ACPI_TABLE_CDAT); } else { HeaderLength = sizeof (ACPI_TABLE_HEADER); } Status = AcValidateTableHeader (File, TableOffset); if (ACPI_FAILURE (Status)) { return (Status); } TableOffset = ftell (File); Count = fread (&TableHeader, 1, HeaderLength, File); if (Count != (INT32) HeaderLength) { return (AE_CTRL_TERMINATE); } if (GetOnlyAmlTables) { /* Validate the table signature/header (limited ASCII chars) */ /* * Table must be an AML table (DSDT/SSDT). * Used for iASL -e option only. */ if (!AcpiUtIsAmlTable (&TableHeader)) { fprintf (stderr, " %s: Table [%4.4s] is not an AML table - ignoring\n", Filename, TableHeader.Signature); return (AE_TYPE); } } /* * Special handling for the CDAT table (both the Length field * and the Checksum field are not in the standard positions). */ if (AcpiGbl_CDAT) { TableLength = ACPI_CAST_PTR (ACPI_TABLE_CDAT, &TableHeader)->Length; } else { TableLength = TableHeader.Length; } /* Allocate a buffer for the entire table */ Table = AcpiOsAllocate ((ACPI_SIZE) TableLength); if (!Table) { return (AE_NO_MEMORY); } /* Read the entire ACPI table, including header */ fseek (File, TableOffset, SEEK_SET); Count = fread (Table, 1, TableLength, File); /* * Checks for data table headers happen later in the execution. Only verify * for Aml tables at this point in the code. */ if (GetOnlyAmlTables && Count != (INT32) TableLength) { Status = AE_ERROR; goto ErrorExit; } /* * Validate the checksum (just issue a warning if incorrect). * Note: CDAT is special cased here because the table does * not have the checksum field in the standard position. */ if (AcpiGbl_CDAT) { Status = AcpiUtVerifyCdatChecksum ((ACPI_TABLE_CDAT *) Table, TableLength); } else { Status = AcpiUtVerifyChecksum (Table, TableLength); } if (ACPI_FAILURE (Status)) { Status = AcCheckTextModeCorruption (Table); if (ACPI_FAILURE (Status)) { goto ErrorExit; } } *ReturnTable = Table; return (AE_OK); ErrorExit: AcpiOsFree (Table); return (Status); } /******************************************************************************* * * FUNCTION: AcIsFileBinary * * PARAMETERS: File - Open input file * * RETURN: TRUE if file appears to be binary * * DESCRIPTION: Scan a file for any non-ASCII bytes. * * Note: Maintains current file position. * ******************************************************************************/ BOOLEAN AcIsFileBinary ( FILE *File) { UINT8 Byte; BOOLEAN IsBinary = FALSE; long FileOffset; /* Scan entire file for any non-ASCII bytes */ FileOffset = ftell (File); while (fread (&Byte, 1, 1, File) == 1) { if (!isprint (Byte) && !isspace (Byte)) { IsBinary = TRUE; goto Exit; } } Exit: fseek (File, FileOffset, SEEK_SET); return (IsBinary); } /******************************************************************************* * * FUNCTION: AcValidateTableHeader * * PARAMETERS: File - Open input file * * RETURN: Status * * DESCRIPTION: Determine if a file seems to contain one or more binary ACPI * tables, via the * following checks on what would be the table header: * 1) File must be at least as long as an ACPI_TABLE_HEADER * 2) There must be enough room in the file to hold entire table * 3) Signature, OemId, OemTableId, AslCompilerId must be ASCII * * Note: There can be multiple definition blocks per file, so we cannot * expect/compare the file size to be equal to the table length. 12/2015. * * Note: Maintains current file position. * ******************************************************************************/ ACPI_STATUS AcValidateTableHeader ( FILE *File, long TableOffset) { ACPI_TABLE_HEADER TableHeader; ACPI_TABLE_CDAT *CdatTableHeader = ACPI_CAST_PTR (ACPI_TABLE_CDAT, &TableHeader); UINT32 HeaderLength; ACPI_SIZE Actual; long OriginalOffset; UINT32 FileSize; UINT32 i; ACPI_FUNCTION_TRACE (AcValidateTableHeader); /* Determine the type of table header */ if (AcpiGbl_CDAT) { HeaderLength = sizeof (ACPI_TABLE_CDAT); } else { HeaderLength = sizeof (ACPI_TABLE_HEADER); } /* Read a potential table header */ OriginalOffset = ftell (File); if (fseek (File, TableOffset, SEEK_SET)) { fprintf (stderr, "SEEK error\n"); } Actual = fread (&TableHeader, 1, HeaderLength, File); if (fseek (File, OriginalOffset, SEEK_SET)) { fprintf (stderr, "SEEK error\n"); } if (Actual < HeaderLength) { fprintf (stderr, "Could not read entire table header: Actual %u, Requested %u\n", (UINT32) Actual, HeaderLength); return (AE_ERROR); } /* Validate the signature (limited ASCII chars) */ if (!AcpiGbl_CDAT && !AcpiUtValidNameseg (TableHeader.Signature)) { /* * The "-ds cdat" option was not used, and the signature is not valid. * * For CDAT we are assuming that there should be at least one non-ASCII * byte in the (normally) 4-character Signature field (at least the * high-order byte should be zero). Otherwise, this is OK. */ fprintf (stderr, "\nTable appears to be a CDAT table, which has no signature.\n" "If this is in fact a CDAT table, use the -ds option on the\n" "command line to specify the table type (signature):\n" "\"iasl -d -ds CDAT \" or \"iasl -ds CDAT -T CDAT\"\n\n"); return (AE_BAD_SIGNATURE); } /* Validate table length against bytes remaining in the file */ FileSize = CmGetFileSize (File); if (!AcpiGbl_CDAT) { /* Standard ACPI table header */ if (TableHeader.Length > (UINT32) (FileSize - TableOffset)) { fprintf (stderr, "Table [%4.4s] is too long for file - " "needs: 0x%.2X, remaining in file: 0x%.2X\n", TableHeader.Signature, TableHeader.Length, (UINT32) (FileSize - TableOffset)); return (AE_BAD_HEADER); } } else if (CdatTableHeader->Length > (UINT32) (FileSize - TableOffset)) { /* Special header for CDAT table */ fprintf (stderr, "Table [CDAT] is too long for file - " "needs: 0x%.2X, remaining in file: 0x%.2X\n", CdatTableHeader->Length, (UINT32) (FileSize - TableOffset)); return (AE_BAD_HEADER); } /* For CDAT table, there are no ASCII fields in the header, we are done */ if (AcpiGbl_CDAT) { return (AE_OK); } /* * These standard fields must be ASCII: OemId, OemTableId, AslCompilerId. * We allow a NULL terminator in OemId and OemTableId. */ for (i = 0; i < ACPI_NAMESEG_SIZE; i++) { if (!ACPI_IS_ASCII ((UINT8) TableHeader.AslCompilerId[i])) { goto BadCharacters; } } for (i = 0; (i < ACPI_OEM_ID_SIZE) && (TableHeader.OemId[i]); i++) { if (!ACPI_IS_ASCII ((UINT8) TableHeader.OemId[i])) { goto BadCharacters; } } for (i = 0; (i < ACPI_OEM_TABLE_ID_SIZE) && (TableHeader.OemTableId[i]); i++) { if (!ACPI_IS_ASCII ((UINT8) TableHeader.OemTableId[i])) { goto BadCharacters; } } return (AE_OK); BadCharacters: ACPI_WARNING ((AE_INFO, "Table header for [%4.4s] has invalid ASCII character(s)", TableHeader.Signature)); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcCheckTextModeCorruption * * PARAMETERS: Table - Table buffer starting with table header * * RETURN: Status * * DESCRIPTION: Check table for text mode file corruption where all linefeed * characters (LF) have been replaced by carriage return linefeed * pairs (CR/LF). * ******************************************************************************/ static ACPI_STATUS AcCheckTextModeCorruption ( ACPI_TABLE_HEADER *Table) { UINT32 i; UINT32 Pairs = 0; UINT8 *Buffer = ACPI_CAST_PTR (UINT8, Table); /* Scan entire table to determine if each LF has been prefixed with a CR */ for (i = 1; i < Table->Length; i++) { if (Buffer[i] == 0x0A) { if (Buffer[i - 1] != 0x0D) { /* The LF does not have a preceding CR, table not corrupted */ return (AE_OK); } else { /* Found a CR/LF pair */ Pairs++; } i++; } } if (!Pairs) { return (AE_OK); } /* * Entire table scanned, each CR is part of a CR/LF pair -- * meaning that the table was treated as a text file somewhere. * * NOTE: We can't "fix" the table, because any existing CR/LF pairs in the * original table are left untouched by the text conversion process -- * meaning that we cannot simply replace CR/LF pairs with LFs. */ AcpiOsPrintf ("Table has been corrupted by text mode conversion\n"); AcpiOsPrintf ("All LFs (%u) were changed to CR/LF pairs\n", Pairs); AcpiOsPrintf ("Table cannot be repaired!\n"); return (AE_BAD_VALUE); } acpica-unix-20250404/source/common/ahuuids.c0000775000175000017500000001364514773714131020147 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahuuids - Table of known ACPI-related UUIDs * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acuuid.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("ahuuids") /* * Table of "known" (ACPI-related) UUIDs */ const AH_UUID Gbl_AcpiUuids[] = { {"[Controllers]", NULL}, {"GPIO Controller", UUID_GPIO_CONTROLLER}, {"USB Controller", UUID_USB_CONTROLLER}, {"SATA Controller", UUID_SATA_CONTROLLER}, {"[Devices]", NULL}, {"PCI Host Bridge Device", UUID_PCI_HOST_BRIDGE}, {"HID I2C Device", UUID_I2C_DEVICE}, {"Power Button Device", UUID_POWER_BUTTON}, {"Memory Device", UUID_MEMORY_DEVICE}, {"Generic Buttons Device", UUID_GENERIC_BUTTONS_DEVICE}, {"NVDIMM Root Device", UUID_NVDIMM_ROOT_DEVICE}, {"Control Method Battery", UUID_CONTROL_METHOD_BATTERY}, {"[Interfaces]", NULL}, {"Device Labeling Interface", UUID_DEVICE_LABELING}, {"Physical Presence Interface", UUID_PHYSICAL_PRESENCE}, {"[Non-volatile DIMM and NFIT table]", NULL}, {"NVDIMM Device", UUID_NFIT_DIMM}, {"Volatile Memory Region", UUID_VOLATILE_MEMORY}, {"Persistent Memory Region", UUID_PERSISTENT_MEMORY}, {"NVDIMM Control Region", UUID_CONTROL_REGION}, {"NVDIMM Data Region", UUID_DATA_REGION}, {"Volatile Virtual Disk", UUID_VOLATILE_VIRTUAL_DISK}, {"Volatile Virtual CD", UUID_VOLATILE_VIRTUAL_CD}, {"Persistent Virtual Disk", UUID_PERSISTENT_VIRTUAL_DISK}, {"Persistent Virtual CD", UUID_PERSISTENT_VIRTUAL_CD}, {"Microsoft NVDIMM Command set",UUID_NFIT_DIMM_N_MSFT}, {"HP NDIMM HPE1", UUID_NFIT_DIMM_N_HPE1}, {"HP NDIMM HPE2", UUID_NFIT_DIMM_N_HPE2}, {"Virtual NVDIMM", UUID_NFIT_DIMM_N_HYPERV}, {"[Processor Properties]", NULL}, {"Cache Properties", UUID_CACHE_PROPERTIES}, {"Physical Package Property", UUID_PHYSICAL_PROPERTY}, {"[Miscellaneous]", NULL}, {"Platform-wide Capabilities", UUID_PLATFORM_CAPABILITIES}, {"Dynamic Enumeration", UUID_DYNAMIC_ENUMERATION}, {"Battery Thermal Limit", UUID_BATTERY_THERMAL_LIMIT}, {"Thermal Extensions", UUID_THERMAL_EXTENSIONS}, {"Device Properties for _DSD", UUID_DEVICE_PROPERTIES}, {"Device Graphs for _DSD", UUID_DEVICE_GRAPHS}, {"Hierarchical Data Extension", UUID_HIERARCHICAL_DATA_EXTENSION}, {"ARM Coresight Graph", UUID_CORESIGHT_GRAPH}, {"USB4 Capabilities", UUID_USB4_CAPABILITIES}, {"First Function ID for _DSM", UUID_1ST_FUNCTION_ID}, {"Second Function ID for _DSM", UUID_2ND_FUNCTION_ID}, {NULL, NULL} }; /******************************************************************************* * * FUNCTION: AcpiAhMatchUuid * * PARAMETERS: Data - Data buffer containing a UUID * * RETURN: ASCII description string for the UUID if it is found. * * DESCRIPTION: Returns a description string for "known" UUIDs, which are * are UUIDs that are related to ACPI in some way. * ******************************************************************************/ const char * AcpiAhMatchUuid ( UINT8 *Data) { const AH_UUID *Info; UINT8 UuidBuffer[UUID_BUFFER_LENGTH]; /* Walk the table of known ACPI-related UUIDs */ for (Info = Gbl_AcpiUuids; Info->Description; Info++) { /* Null string means description is a UUID class */ if (!Info->String) { continue; } AcpiUtConvertStringToUuid (Info->String, UuidBuffer); if (!memcmp (Data, UuidBuffer, UUID_BUFFER_LENGTH)) { return (Info->Description); } } return (NULL); } acpica-unix-20250404/source/components/0000775000175000017500000000000014773713560017227 5ustar ivanhuivanhuacpica-unix-20250404/source/components/events/0000775000175000017500000000000014773714132020527 5ustar ivanhuivanhuacpica-unix-20250404/source/components/events/evgpeblk.c0000775000175000017500000004075114773714132022504 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evgpeblk - GPE block creation and initialization. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acnamesp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evgpeblk") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /* Local prototypes */ static ACPI_STATUS AcpiEvInstallGpeBlock ( ACPI_GPE_BLOCK_INFO *GpeBlock, UINT32 InterruptNumber); static ACPI_STATUS AcpiEvCreateGpeInfoBlocks ( ACPI_GPE_BLOCK_INFO *GpeBlock); /******************************************************************************* * * FUNCTION: AcpiEvInstallGpeBlock * * PARAMETERS: GpeBlock - New GPE block * InterruptNumber - Xrupt to be associated with this * GPE block * * RETURN: Status * * DESCRIPTION: Install new GPE block with mutex support * ******************************************************************************/ static ACPI_STATUS AcpiEvInstallGpeBlock ( ACPI_GPE_BLOCK_INFO *GpeBlock, UINT32 InterruptNumber) { ACPI_GPE_BLOCK_INFO *NextGpeBlock; ACPI_GPE_XRUPT_INFO *GpeXruptBlock; ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (EvInstallGpeBlock); Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiEvGetGpeXruptBlock (InterruptNumber, &GpeXruptBlock); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } /* Install the new block at the end of the list with lock */ Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); if (GpeXruptBlock->GpeBlockListHead) { NextGpeBlock = GpeXruptBlock->GpeBlockListHead; while (NextGpeBlock->Next) { NextGpeBlock = NextGpeBlock->Next; } NextGpeBlock->Next = GpeBlock; GpeBlock->Previous = NextGpeBlock; } else { GpeXruptBlock->GpeBlockListHead = GpeBlock; } GpeBlock->XruptBlock = GpeXruptBlock; AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvDeleteGpeBlock * * PARAMETERS: GpeBlock - Existing GPE block * * RETURN: Status * * DESCRIPTION: Remove a GPE block * ******************************************************************************/ ACPI_STATUS AcpiEvDeleteGpeBlock ( ACPI_GPE_BLOCK_INFO *GpeBlock) { ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (EvInstallGpeBlock); Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Disable all GPEs in this block */ Status = AcpiHwDisableGpeBlock (GpeBlock->XruptBlock, GpeBlock, NULL); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (!GpeBlock->Previous && !GpeBlock->Next) { /* This is the last GpeBlock on this interrupt */ Status = AcpiEvDeleteGpeXrupt (GpeBlock->XruptBlock); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } } else { /* Remove the block on this interrupt with lock */ Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); if (GpeBlock->Previous) { GpeBlock->Previous->Next = GpeBlock->Next; } else { GpeBlock->XruptBlock->GpeBlockListHead = GpeBlock->Next; } if (GpeBlock->Next) { GpeBlock->Next->Previous = GpeBlock->Previous; } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); } AcpiCurrentGpeCount -= GpeBlock->GpeCount; /* Free the GpeBlock */ ACPI_FREE (GpeBlock->RegisterInfo); ACPI_FREE (GpeBlock->EventInfo); ACPI_FREE (GpeBlock); UnlockAndExit: Status = AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvCreateGpeInfoBlocks * * PARAMETERS: GpeBlock - New GPE block * * RETURN: Status * * DESCRIPTION: Create the RegisterInfo and EventInfo blocks for this GPE block * ******************************************************************************/ static ACPI_STATUS AcpiEvCreateGpeInfoBlocks ( ACPI_GPE_BLOCK_INFO *GpeBlock) { ACPI_GPE_REGISTER_INFO *GpeRegisterInfo = NULL; ACPI_GPE_EVENT_INFO *GpeEventInfo = NULL; ACPI_GPE_EVENT_INFO *ThisEvent; ACPI_GPE_REGISTER_INFO *ThisRegister; UINT32 i; UINT32 j; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvCreateGpeInfoBlocks); /* Allocate the GPE register information block */ GpeRegisterInfo = ACPI_ALLOCATE_ZEROED ( (ACPI_SIZE) GpeBlock->RegisterCount * sizeof (ACPI_GPE_REGISTER_INFO)); if (!GpeRegisterInfo) { ACPI_ERROR ((AE_INFO, "Could not allocate the GpeRegisterInfo table")); return_ACPI_STATUS (AE_NO_MEMORY); } /* * Allocate the GPE EventInfo block. There are eight distinct GPEs * per register. Initialization to zeros is sufficient. */ GpeEventInfo = ACPI_ALLOCATE_ZEROED ((ACPI_SIZE) GpeBlock->GpeCount * sizeof (ACPI_GPE_EVENT_INFO)); if (!GpeEventInfo) { ACPI_ERROR ((AE_INFO, "Could not allocate the GpeEventInfo table")); Status = AE_NO_MEMORY; goto ErrorExit; } /* Save the new Info arrays in the GPE block */ GpeBlock->RegisterInfo = GpeRegisterInfo; GpeBlock->EventInfo = GpeEventInfo; /* * Initialize the GPE Register and Event structures. A goal of these * tables is to hide the fact that there are two separate GPE register * sets in a given GPE hardware block, the status registers occupy the * first half, and the enable registers occupy the second half. */ ThisRegister = GpeRegisterInfo; ThisEvent = GpeEventInfo; for (i = 0; i < GpeBlock->RegisterCount; i++) { /* Init the RegisterInfo for this GPE register (8 GPEs) */ ThisRegister->BaseGpeNumber = (UINT16) (GpeBlock->BlockBaseNumber + (i * ACPI_GPE_REGISTER_WIDTH)); ThisRegister->StatusAddress.Address = GpeBlock->Address + i; ThisRegister->EnableAddress.Address = GpeBlock->Address + i + GpeBlock->RegisterCount; ThisRegister->StatusAddress.SpaceId = GpeBlock->SpaceId; ThisRegister->EnableAddress.SpaceId = GpeBlock->SpaceId; ThisRegister->StatusAddress.BitWidth = ACPI_GPE_REGISTER_WIDTH; ThisRegister->EnableAddress.BitWidth = ACPI_GPE_REGISTER_WIDTH; ThisRegister->StatusAddress.BitOffset = 0; ThisRegister->EnableAddress.BitOffset = 0; /* Init the EventInfo for each GPE within this register */ for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { ThisEvent->GpeNumber = (UINT8) (ThisRegister->BaseGpeNumber + j); ThisEvent->RegisterInfo = ThisRegister; ThisEvent++; } /* Disable all GPEs within this register */ Status = AcpiHwWrite (0x00, &ThisRegister->EnableAddress); if (ACPI_FAILURE (Status)) { goto ErrorExit; } /* Clear any pending GPE events within this register */ Status = AcpiHwWrite (0xFF, &ThisRegister->StatusAddress); if (ACPI_FAILURE (Status)) { goto ErrorExit; } ThisRegister++; } return_ACPI_STATUS (AE_OK); ErrorExit: if (GpeRegisterInfo) { ACPI_FREE (GpeRegisterInfo); } if (GpeEventInfo) { ACPI_FREE (GpeEventInfo); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvCreateGpeBlock * * PARAMETERS: GpeDevice - Handle to the parent GPE block * GpeBlockAddress - Address and SpaceID * RegisterCount - Number of GPE register pairs in the block * GpeBlockBaseNumber - Starting GPE number for the block * InterruptNumber - H/W interrupt for the block * ReturnGpeBlock - Where the new block descriptor is returned * * RETURN: Status * * DESCRIPTION: Create and Install a block of GPE registers. All GPEs within * the block are disabled at exit. * Note: Assumes namespace is locked. * ******************************************************************************/ ACPI_STATUS AcpiEvCreateGpeBlock ( ACPI_NAMESPACE_NODE *GpeDevice, UINT64 Address, UINT8 SpaceId, UINT32 RegisterCount, UINT16 GpeBlockBaseNumber, UINT32 InterruptNumber, ACPI_GPE_BLOCK_INFO **ReturnGpeBlock) { ACPI_STATUS Status; ACPI_GPE_BLOCK_INFO *GpeBlock; ACPI_GPE_WALK_INFO WalkInfo; ACPI_FUNCTION_TRACE (EvCreateGpeBlock); if (!RegisterCount) { return_ACPI_STATUS (AE_OK); } /* Allocate a new GPE block */ GpeBlock = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_GPE_BLOCK_INFO)); if (!GpeBlock) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Initialize the new GPE block */ GpeBlock->Address = Address; GpeBlock->SpaceId = SpaceId; GpeBlock->Node = GpeDevice; GpeBlock->GpeCount = (UINT16) (RegisterCount * ACPI_GPE_REGISTER_WIDTH); GpeBlock->Initialized = FALSE; GpeBlock->RegisterCount = RegisterCount; GpeBlock->BlockBaseNumber = GpeBlockBaseNumber; /* * Create the RegisterInfo and EventInfo sub-structures * Note: disables and clears all GPEs in the block */ Status = AcpiEvCreateGpeInfoBlocks (GpeBlock); if (ACPI_FAILURE (Status)) { ACPI_FREE (GpeBlock); return_ACPI_STATUS (Status); } /* Install the new block in the global lists */ Status = AcpiEvInstallGpeBlock (GpeBlock, InterruptNumber); if (ACPI_FAILURE (Status)) { ACPI_FREE (GpeBlock->RegisterInfo); ACPI_FREE (GpeBlock->EventInfo); ACPI_FREE (GpeBlock); return_ACPI_STATUS (Status); } AcpiGbl_AllGpesInitialized = FALSE; /* Find all GPE methods (_Lxx or_Exx) for this block */ WalkInfo.GpeBlock = GpeBlock; WalkInfo.GpeDevice = GpeDevice; WalkInfo.ExecuteByOwnerId = FALSE; (void) AcpiNsWalkNamespace (ACPI_TYPE_METHOD, GpeDevice, ACPI_UINT32_MAX, ACPI_NS_WALK_NO_UNLOCK, AcpiEvMatchGpeMethod, NULL, &WalkInfo, NULL); /* Return the new block */ if (ReturnGpeBlock) { (*ReturnGpeBlock) = GpeBlock; } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, " Initialized GPE %02X to %02X [%4.4s] %u regs on interrupt 0x%X%s\n", (UINT32) GpeBlock->BlockBaseNumber, (UINT32) (GpeBlock->BlockBaseNumber + (GpeBlock->GpeCount - 1)), GpeDevice->Name.Ascii, GpeBlock->RegisterCount, InterruptNumber, InterruptNumber == AcpiGbl_FADT.SciInterrupt ? " (SCI)" : "")); /* Update global count of currently available GPEs */ AcpiCurrentGpeCount += GpeBlock->GpeCount; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvInitializeGpeBlock * * PARAMETERS: ACPI_GPE_CALLBACK * * RETURN: Status * * DESCRIPTION: Initialize and enable a GPE block. Enable GPEs that have * associated methods. * Note: Assumes namespace is locked. * ******************************************************************************/ ACPI_STATUS AcpiEvInitializeGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context) { ACPI_STATUS Status; ACPI_GPE_EVENT_INFO *GpeEventInfo; UINT32 GpeEnabledCount; UINT32 GpeIndex; UINT32 i; UINT32 j; BOOLEAN *IsPollingNeeded = Context; ACPI_ERROR_ONLY (UINT32 GpeNumber); ACPI_FUNCTION_TRACE (EvInitializeGpeBlock); /* * Ignore a null GPE block (e.g., if no GPE block 1 exists), and * any GPE blocks that have been initialized already. */ if (!GpeBlock || GpeBlock->Initialized) { return_ACPI_STATUS (AE_OK); } /* * Enable all GPEs that have a corresponding method and have the * ACPI_GPE_CAN_WAKE flag unset. Any other GPEs within this block * must be enabled via the acpi_enable_gpe() interface. */ GpeEnabledCount = 0; for (i = 0; i < GpeBlock->RegisterCount; i++) { for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { /* Get the info block for this particular GPE */ GpeIndex = (i * ACPI_GPE_REGISTER_WIDTH) + j; GpeEventInfo = &GpeBlock->EventInfo[GpeIndex]; ACPI_ERROR_ONLY(GpeNumber = GpeBlock->BlockBaseNumber + GpeIndex); GpeEventInfo->Flags |= ACPI_GPE_INITIALIZED; /* * Ignore GPEs that have no corresponding _Lxx/_Exx method * and GPEs that are used to wake the system */ if ((ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) != ACPI_GPE_DISPATCH_METHOD) || (GpeEventInfo->Flags & ACPI_GPE_CAN_WAKE)) { continue; } Status = AcpiEvAddGpeReference (GpeEventInfo, FALSE); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not enable GPE 0x%02X", GpeNumber)); continue; } GpeEventInfo->Flags |= ACPI_GPE_AUTO_ENABLED; if (IsPollingNeeded && ACPI_GPE_IS_POLLING_NEEDED (GpeEventInfo)) { *IsPollingNeeded = TRUE; } GpeEnabledCount++; } } if (GpeEnabledCount) { ACPI_INFO (( "Enabled %u GPEs in block %02X to %02X", GpeEnabledCount, (UINT32) GpeBlock->BlockBaseNumber, (UINT32) (GpeBlock->BlockBaseNumber + (GpeBlock->GpeCount - 1)))); } GpeBlock->Initialized = TRUE; return_ACPI_STATUS (AE_OK); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evhandler.c0000775000175000017500000004271014773714132022652 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evhandler - Support for Address Space handlers * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acnamesp.h" #include "acinterp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evhandler") /* Local prototypes */ static ACPI_STATUS AcpiEvInstallHandler ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); /* These are the address spaces that will get default handlers */ UINT8 AcpiGbl_DefaultAddressSpaces[ACPI_NUM_DEFAULT_SPACES] = { ACPI_ADR_SPACE_SYSTEM_MEMORY, ACPI_ADR_SPACE_SYSTEM_IO, ACPI_ADR_SPACE_PCI_CONFIG, ACPI_ADR_SPACE_DATA_TABLE }; /******************************************************************************* * * FUNCTION: AcpiEvInstallRegionHandlers * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Installs the core subsystem default address space handlers. * ******************************************************************************/ ACPI_STATUS AcpiEvInstallRegionHandlers ( void) { ACPI_STATUS Status; UINT32 i; ACPI_FUNCTION_TRACE (EvInstallRegionHandlers); Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * All address spaces (PCI Config, EC, SMBus) are scope dependent and * registration must occur for a specific device. * * In the case of the system memory and IO address spaces there is * currently no device associated with the address space. For these we * use the root. * * We install the default PCI config space handler at the root so that * this space is immediately available even though the we have not * enumerated all the PCI Root Buses yet. This is to conform to the ACPI * specification which states that the PCI config space must be always * available -- even though we are nowhere near ready to find the PCI root * buses at this point. * * NOTE: We ignore AE_ALREADY_EXISTS because this means that a handler * has already been installed (via AcpiInstallAddressSpaceHandler). * Similar for AE_SAME_HANDLER. */ for (i = 0; i < ACPI_NUM_DEFAULT_SPACES; i++) { Status = AcpiEvInstallSpaceHandler (AcpiGbl_RootNode, AcpiGbl_DefaultAddressSpaces[i], ACPI_DEFAULT_HANDLER, NULL, NULL); switch (Status) { case AE_OK: case AE_SAME_HANDLER: case AE_ALREADY_EXISTS: /* These exceptions are all OK */ Status = AE_OK; break; default: goto UnlockAndExit; } } UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvHasDefaultHandler * * PARAMETERS: Node - Namespace node for the device * SpaceId - The address space ID * * RETURN: TRUE if default handler is installed, FALSE otherwise * * DESCRIPTION: Check if the default handler is installed for the requested * space ID. * ******************************************************************************/ BOOLEAN AcpiEvHasDefaultHandler ( ACPI_NAMESPACE_NODE *Node, ACPI_ADR_SPACE_TYPE SpaceId) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *HandlerObj; /* Must have an existing internal object */ ObjDesc = AcpiNsGetAttachedObject (Node); if (ObjDesc) { HandlerObj = ObjDesc->CommonNotify.Handler; /* Walk the linked list of handlers for this object */ while (HandlerObj) { if (HandlerObj->AddressSpace.SpaceId == SpaceId) { if (HandlerObj->AddressSpace.HandlerFlags & ACPI_ADDR_HANDLER_DEFAULT_INSTALLED) { return (TRUE); } } HandlerObj = HandlerObj->AddressSpace.Next; } } return (FALSE); } /******************************************************************************* * * FUNCTION: AcpiEvInstallHandler * * PARAMETERS: WalkNamespace callback * * DESCRIPTION: This routine installs an address handler into objects that are * of type Region or Device. * * If the Object is a Device, and the device has a handler of * the same type then the search is terminated in that branch. * * This is because the existing handler is closer in proximity * to any more regions than the one we are trying to install. * ******************************************************************************/ static ACPI_STATUS AcpiEvInstallHandler ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_OPERAND_OBJECT *HandlerObj; ACPI_OPERAND_OBJECT *NextHandlerObj; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_FUNCTION_NAME (EvInstallHandler); HandlerObj = (ACPI_OPERAND_OBJECT *) Context; /* Parameter validation */ if (!HandlerObj) { return (AE_OK); } /* Convert and validate the device handle */ Node = AcpiNsValidateHandle (ObjHandle); if (!Node) { return (AE_BAD_PARAMETER); } /* * We only care about regions and objects that are allowed to have * address space handlers */ if ((Node->Type != ACPI_TYPE_DEVICE) && (Node->Type != ACPI_TYPE_REGION) && (Node != AcpiGbl_RootNode)) { return (AE_OK); } /* Check for an existing internal object */ ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { /* No object, just exit */ return (AE_OK); } /* Devices are handled different than regions */ if (ObjDesc->Common.Type == ACPI_TYPE_DEVICE) { /* Check if this Device already has a handler for this address space */ NextHandlerObj = AcpiEvFindRegionHandler ( HandlerObj->AddressSpace.SpaceId, ObjDesc->CommonNotify.Handler); if (NextHandlerObj) { /* Found a handler, is it for the same address space? */ ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Found handler for region [%s] in device %p(%p) handler %p\n", AcpiUtGetRegionName (HandlerObj->AddressSpace.SpaceId), ObjDesc, NextHandlerObj, HandlerObj)); /* * Since the object we found it on was a device, then it means * that someone has already installed a handler for the branch * of the namespace from this device on. Just bail out telling * the walk routine to not traverse this branch. This preserves * the scoping rule for handlers. */ return (AE_CTRL_DEPTH); } /* * As long as the device didn't have a handler for this space we * don't care about it. We just ignore it and proceed. */ return (AE_OK); } /* Object is a Region */ if (ObjDesc->Region.SpaceId != HandlerObj->AddressSpace.SpaceId) { /* This region is for a different address space, just ignore it */ return (AE_OK); } /* * Now we have a region and it is for the handler's address space type. * * First disconnect region for any previous handler (if any) */ AcpiEvDetachRegion (ObjDesc, FALSE); /* Connect the region to the new handler */ Status = AcpiEvAttachRegion (HandlerObj, ObjDesc, FALSE); return (Status); } /******************************************************************************* * * FUNCTION: AcpiEvFindRegionHandler * * PARAMETERS: SpaceId - The address space ID * HandlerObj - Head of the handler object list * * RETURN: Matching handler object. NULL if space ID not matched * * DESCRIPTION: Search a handler object list for a match on the address * space ID. * ******************************************************************************/ ACPI_OPERAND_OBJECT * AcpiEvFindRegionHandler ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_OPERAND_OBJECT *HandlerObj) { /* Walk the handler list for this device */ while (HandlerObj) { /* Same SpaceId indicates a handler is installed */ if (HandlerObj->AddressSpace.SpaceId == SpaceId) { return (HandlerObj); } /* Next handler object */ HandlerObj = HandlerObj->AddressSpace.Next; } return (NULL); } /******************************************************************************* * * FUNCTION: AcpiEvInstallSpaceHandler * * PARAMETERS: Node - Namespace node for the device * SpaceId - The address space ID * Handler - Address of the handler * Setup - Address of the setup function * Context - Value passed to the handler on each access * * RETURN: Status * * DESCRIPTION: Install a handler for all OpRegions of a given SpaceId. * Assumes namespace is locked * ******************************************************************************/ ACPI_STATUS AcpiEvInstallSpaceHandler ( ACPI_NAMESPACE_NODE *Node, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler, ACPI_ADR_SPACE_SETUP Setup, void *Context) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *HandlerObj; ACPI_STATUS Status = AE_OK; ACPI_OBJECT_TYPE Type; UINT8 Flags = 0; ACPI_FUNCTION_TRACE (EvInstallSpaceHandler); /* * This registration is valid for only the types below and the root. * The root node is where the default handlers get installed. */ if ((Node->Type != ACPI_TYPE_DEVICE) && (Node->Type != ACPI_TYPE_PROCESSOR) && (Node->Type != ACPI_TYPE_THERMAL) && (Node != AcpiGbl_RootNode)) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } if (Handler == ACPI_DEFAULT_HANDLER) { Flags = ACPI_ADDR_HANDLER_DEFAULT_INSTALLED; switch (SpaceId) { case ACPI_ADR_SPACE_SYSTEM_MEMORY: Handler = AcpiExSystemMemorySpaceHandler; Setup = AcpiEvSystemMemoryRegionSetup; break; case ACPI_ADR_SPACE_SYSTEM_IO: Handler = AcpiExSystemIoSpaceHandler; Setup = AcpiEvIoSpaceRegionSetup; break; case ACPI_ADR_SPACE_PCI_CONFIG: Handler = AcpiExPciConfigSpaceHandler; Setup = AcpiEvPciConfigRegionSetup; break; case ACPI_ADR_SPACE_CMOS: Handler = AcpiExCmosSpaceHandler; Setup = AcpiEvCmosRegionSetup; break; case ACPI_ADR_SPACE_PCI_BAR_TARGET: Handler = AcpiExPciBarSpaceHandler; Setup = AcpiEvPciBarRegionSetup; break; case ACPI_ADR_SPACE_DATA_TABLE: Handler = AcpiExDataTableSpaceHandler; Setup = AcpiEvDataTableRegionSetup; break; default: Status = AE_BAD_PARAMETER; goto UnlockAndExit; } } /* If the caller hasn't specified a setup routine, use the default */ if (!Setup) { Setup = AcpiEvDefaultRegionSetup; } /* Check for an existing internal object */ ObjDesc = AcpiNsGetAttachedObject (Node); if (ObjDesc) { /* * The attached device object already exists. Now make sure * the handler is not already installed. */ HandlerObj = AcpiEvFindRegionHandler (SpaceId, ObjDesc->CommonNotify.Handler); if (HandlerObj) { if (HandlerObj->AddressSpace.Handler == Handler) { /* * It is (relatively) OK to attempt to install the SAME * handler twice. This can easily happen with the * PCI_Config space. */ Status = AE_SAME_HANDLER; goto UnlockAndExit; } else { /* A handler is already installed */ Status = AE_ALREADY_EXISTS; } goto UnlockAndExit; } } else { ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Creating object on Device %p while installing handler\n", Node)); /* ObjDesc does not exist, create one */ if (Node->Type == ACPI_TYPE_ANY) { Type = ACPI_TYPE_DEVICE; } else { Type = Node->Type; } ObjDesc = AcpiUtCreateInternalObject (Type); if (!ObjDesc) { Status = AE_NO_MEMORY; goto UnlockAndExit; } /* Init new descriptor */ ObjDesc->Common.Type = (UINT8) Type; /* Attach the new object to the Node */ Status = AcpiNsAttachObject (Node, ObjDesc, Type); /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } } ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Installing address handler for region %s(%X) " "on Device %4.4s %p(%p)\n", AcpiUtGetRegionName (SpaceId), SpaceId, AcpiUtGetNodeName (Node), Node, ObjDesc)); /* * Install the handler * * At this point there is no existing handler. Just allocate the object * for the handler and link it into the list. */ HandlerObj = AcpiUtCreateInternalObject (ACPI_TYPE_LOCAL_ADDRESS_HANDLER); if (!HandlerObj) { Status = AE_NO_MEMORY; goto UnlockAndExit; } /* Init handler obj */ Status = AcpiOsCreateMutex (&HandlerObj->AddressSpace.ContextMutex); if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (HandlerObj); goto UnlockAndExit; } HandlerObj->AddressSpace.SpaceId = (UINT8) SpaceId; HandlerObj->AddressSpace.HandlerFlags = Flags; HandlerObj->AddressSpace.RegionList = NULL; HandlerObj->AddressSpace.Node = Node; HandlerObj->AddressSpace.Handler = Handler; HandlerObj->AddressSpace.Context = Context; HandlerObj->AddressSpace.Setup = Setup; /* Install at head of Device.AddressSpace list */ HandlerObj->AddressSpace.Next = ObjDesc->CommonNotify.Handler; /* * The Device object is the first reference on the HandlerObj. * Each region that uses the handler adds a reference. */ ObjDesc->CommonNotify.Handler = HandlerObj; /* * Walk the namespace finding all of the regions this handler will * manage. * * Start at the device and search the branch toward the leaf nodes * until either the leaf is encountered or a device is detected that * has an address handler of the same type. * * In either case, back up and search down the remainder of the branch */ Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, Node, ACPI_UINT32_MAX, ACPI_NS_WALK_UNLOCK, AcpiEvInstallHandler, NULL, HandlerObj, NULL); UnlockAndExit: return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/events/evrgnini.c0000775000175000017500000005254214773714132022527 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evrgnini- ACPI AddressSpace (OpRegion) init * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acnamesp.h" #include "acinterp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evrgnini") /******************************************************************************* * * FUNCTION: AcpiEvSystemMemoryRegionSetup * * PARAMETERS: Handle - Region we are interested in * Function - Start or stop * HandlerContext - Address space handler context * RegionContext - Region specific context * * RETURN: Status * * DESCRIPTION: Setup a SystemMemory operation region * ******************************************************************************/ ACPI_STATUS AcpiEvSystemMemoryRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext) { ACPI_OPERAND_OBJECT *RegionDesc = (ACPI_OPERAND_OBJECT *) Handle; ACPI_MEM_SPACE_CONTEXT *LocalRegionContext; ACPI_MEM_MAPPING *Mm; ACPI_FUNCTION_TRACE (EvSystemMemoryRegionSetup); if (Function == ACPI_REGION_DEACTIVATE) { if (*RegionContext) { LocalRegionContext = (ACPI_MEM_SPACE_CONTEXT *) *RegionContext; /* Delete memory mappings if present */ while (LocalRegionContext->FirstMm) { Mm = LocalRegionContext->FirstMm; LocalRegionContext->FirstMm = Mm->NextMm; AcpiOsUnmapMemory(Mm->LogicalAddress, Mm->Length); ACPI_FREE(Mm); } ACPI_FREE (LocalRegionContext); *RegionContext = NULL; } return_ACPI_STATUS (AE_OK); } /* Create a new context */ LocalRegionContext = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_MEM_SPACE_CONTEXT)); if (!(LocalRegionContext)) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Save the region length and address for use in the handler */ LocalRegionContext->Length = RegionDesc->Region.Length; LocalRegionContext->Address = RegionDesc->Region.Address; *RegionContext = LocalRegionContext; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvIoSpaceRegionSetup * * PARAMETERS: Handle - Region we are interested in * Function - Start or stop * HandlerContext - Address space handler context * RegionContext - Region specific context * * RETURN: Status * * DESCRIPTION: Setup a IO operation region * ******************************************************************************/ ACPI_STATUS AcpiEvIoSpaceRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext) { ACPI_FUNCTION_TRACE (EvIoSpaceRegionSetup); if (Function == ACPI_REGION_DEACTIVATE) { *RegionContext = NULL; } else { *RegionContext = HandlerContext; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvPciConfigRegionSetup * * PARAMETERS: Handle - Region we are interested in * Function - Start or stop * HandlerContext - Address space handler context * RegionContext - Region specific context * * RETURN: Status * * DESCRIPTION: Setup a PCI_Config operation region * * MUTEX: Assumes namespace is not locked * ******************************************************************************/ ACPI_STATUS AcpiEvPciConfigRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext) { ACPI_STATUS Status = AE_OK; UINT64 PciValue; ACPI_PCI_ID *PciId = *RegionContext; ACPI_OPERAND_OBJECT *HandlerObj; ACPI_NAMESPACE_NODE *ParentNode; ACPI_NAMESPACE_NODE *PciRootNode; ACPI_NAMESPACE_NODE *PciDeviceNode; ACPI_OPERAND_OBJECT *RegionObj = (ACPI_OPERAND_OBJECT *) Handle; ACPI_FUNCTION_TRACE (EvPciConfigRegionSetup); HandlerObj = RegionObj->Region.Handler; if (!HandlerObj) { /* * No installed handler. This shouldn't happen because the dispatch * routine checks before we get here, but we check again just in case. */ ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Attempting to init a region %p, with no handler\n", RegionObj)); return_ACPI_STATUS (AE_NOT_EXIST); } *RegionContext = NULL; if (Function == ACPI_REGION_DEACTIVATE) { if (PciId) { ACPI_FREE (PciId); } return_ACPI_STATUS (Status); } ParentNode = RegionObj->Region.Node->Parent; /* * Get the _SEG and _BBN values from the device upon which the handler * is installed. * * We need to get the _SEG and _BBN objects relative to the PCI BUS device. * This is the device the handler has been registered to handle. */ /* * If the AddressSpace.Node is still pointing to the root, we need * to scan upward for a PCI Root bridge and re-associate the OpRegion * handlers with that device. */ if (HandlerObj->AddressSpace.Node == AcpiGbl_RootNode) { /* Start search from the parent object */ PciRootNode = ParentNode; while (PciRootNode != AcpiGbl_RootNode) { /* Get the _HID/_CID in order to detect a RootBridge */ if (AcpiEvIsPciRootBridge (PciRootNode)) { /* Install a handler for this PCI root bridge */ Status = AcpiInstallAddressSpaceHandler ( (ACPI_HANDLE) PciRootNode, ACPI_ADR_SPACE_PCI_CONFIG, ACPI_DEFAULT_HANDLER, NULL, NULL); if (ACPI_FAILURE (Status)) { if (Status == AE_SAME_HANDLER) { /* * It is OK if the handler is already installed on the * root bridge. Still need to return a context object * for the new PCI_Config operation region, however. */ } else { ACPI_EXCEPTION ((AE_INFO, Status, "Could not install PciConfig handler " "for Root Bridge %4.4s", AcpiUtGetNodeName (PciRootNode))); } } break; } PciRootNode = PciRootNode->Parent; } /* PCI root bridge not found, use namespace root node */ } else { PciRootNode = HandlerObj->AddressSpace.Node; } /* * If this region is now initialized, we are done. * (InstallAddressSpaceHandler could have initialized it) */ if (RegionObj->Region.Flags & AOPOBJ_SETUP_COMPLETE) { return_ACPI_STATUS (AE_OK); } /* Region is still not initialized. Create a new context */ PciId = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_PCI_ID)); if (!PciId) { return_ACPI_STATUS (AE_NO_MEMORY); } /* * For PCI_Config space access, we need the segment, bus, device and * function numbers. Acquire them here. * * Find the parent device object. (This allows the operation region to be * within a subscope under the device, such as a control method.) */ PciDeviceNode = RegionObj->Region.Node; while (PciDeviceNode && (PciDeviceNode->Type != ACPI_TYPE_DEVICE)) { PciDeviceNode = PciDeviceNode->Parent; } if (!PciDeviceNode) { ACPI_FREE (PciId); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* * Get the PCI device and function numbers from the _ADR object * contained in the parent's scope. */ Status = AcpiUtEvaluateNumericObject (METHOD_NAME__ADR, PciDeviceNode, &PciValue); /* * The default is zero, and since the allocation above zeroed the data, * just do nothing on failure. */ if (ACPI_SUCCESS (Status)) { PciId->Device = ACPI_HIWORD (ACPI_LODWORD (PciValue)); PciId->Function = ACPI_LOWORD (ACPI_LODWORD (PciValue)); } /* The PCI segment number comes from the _SEG method */ Status = AcpiUtEvaluateNumericObject (METHOD_NAME__SEG, PciRootNode, &PciValue); if (ACPI_SUCCESS (Status)) { PciId->Segment = ACPI_LOWORD (PciValue); } /* The PCI bus number comes from the _BBN method */ Status = AcpiUtEvaluateNumericObject (METHOD_NAME__BBN, PciRootNode, &PciValue); if (ACPI_SUCCESS (Status)) { PciId->Bus = ACPI_LOWORD (PciValue); } /* Complete/update the PCI ID for this device */ Status = AcpiHwDerivePciId (PciId, PciRootNode, RegionObj->Region.Node); if (ACPI_FAILURE (Status)) { ACPI_FREE (PciId); return_ACPI_STATUS (Status); } *RegionContext = PciId; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvIsPciRootBridge * * PARAMETERS: Node - Device node being examined * * RETURN: TRUE if device is a PCI/PCI-Express Root Bridge * * DESCRIPTION: Determine if the input device represents a PCI Root Bridge by * examining the _HID and _CID for the device. * ******************************************************************************/ BOOLEAN AcpiEvIsPciRootBridge ( ACPI_NAMESPACE_NODE *Node) { ACPI_STATUS Status; ACPI_PNP_DEVICE_ID *Hid; ACPI_PNP_DEVICE_ID_LIST *Cid; UINT32 i; BOOLEAN Match; /* Get the _HID and check for a PCI Root Bridge */ Status = AcpiUtExecute_HID (Node, &Hid); if (ACPI_FAILURE (Status)) { return (FALSE); } Match = AcpiUtIsPciRootBridge (Hid->String); ACPI_FREE (Hid); if (Match) { return (TRUE); } /* The _HID did not match. Get the _CID and check for a PCI Root Bridge */ Status = AcpiUtExecute_CID (Node, &Cid); if (ACPI_FAILURE (Status)) { return (FALSE); } /* Check all _CIDs in the returned list */ for (i = 0; i < Cid->Count; i++) { if (AcpiUtIsPciRootBridge (Cid->Ids[i].String)) { ACPI_FREE (Cid); return (TRUE); } } ACPI_FREE (Cid); return (FALSE); } /******************************************************************************* * * FUNCTION: AcpiEvPciBarRegionSetup * * PARAMETERS: Handle - Region we are interested in * Function - Start or stop * HandlerContext - Address space handler context * RegionContext - Region specific context * * RETURN: Status * * DESCRIPTION: Setup a PciBAR operation region * * MUTEX: Assumes namespace is not locked * ******************************************************************************/ ACPI_STATUS AcpiEvPciBarRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext) { ACPI_FUNCTION_TRACE (EvPciBarRegionSetup); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvCmosRegionSetup * * PARAMETERS: Handle - Region we are interested in * Function - Start or stop * HandlerContext - Address space handler context * RegionContext - Region specific context * * RETURN: Status * * DESCRIPTION: Setup a CMOS operation region * * MUTEX: Assumes namespace is not locked * ******************************************************************************/ ACPI_STATUS AcpiEvCmosRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext) { ACPI_FUNCTION_TRACE (EvCmosRegionSetup); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvDataTableRegionSetup * * PARAMETERS: Handle - Region we are interested in * Function - Start or stop * HandlerContext - Address space handler context * RegionContext - Region specific context * * RETURN: Status * * DESCRIPTION: Setup a DataTableRegion * * MUTEX: Assumes namespace is not locked * ******************************************************************************/ ACPI_STATUS AcpiEvDataTableRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext) { ACPI_OPERAND_OBJECT *RegionDesc = (ACPI_OPERAND_OBJECT *) Handle; ACPI_DATA_TABLE_MAPPING *LocalRegionContext; ACPI_FUNCTION_TRACE (EvDataTableRegionSetup); if (Function == ACPI_REGION_DEACTIVATE) { if (*RegionContext) { ACPI_FREE (*RegionContext); *RegionContext = NULL; } return_ACPI_STATUS (AE_OK); } /* Create a new context */ LocalRegionContext = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_DATA_TABLE_MAPPING)); if (!(LocalRegionContext)) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Save the data table pointer for use in the handler */ LocalRegionContext->Pointer = RegionDesc->Region.Pointer; *RegionContext = LocalRegionContext; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvDefaultRegionSetup * * PARAMETERS: Handle - Region we are interested in * Function - Start or stop * HandlerContext - Address space handler context * RegionContext - Region specific context * * RETURN: Status * * DESCRIPTION: Default region initialization * ******************************************************************************/ ACPI_STATUS AcpiEvDefaultRegionSetup ( ACPI_HANDLE Handle, UINT32 Function, void *HandlerContext, void **RegionContext) { ACPI_FUNCTION_TRACE (EvDefaultRegionSetup); if (Function == ACPI_REGION_DEACTIVATE) { *RegionContext = NULL; } else { *RegionContext = HandlerContext; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvInitializeRegion * * PARAMETERS: RegionObj - Region we are initializing * * RETURN: Status * * DESCRIPTION: Initializes the region, finds any _REG methods and saves them * for execution at a later time * * Get the appropriate address space handler for a newly * created region. * * This also performs address space specific initialization. For * example, PCI regions must have an _ADR object that contains * a PCI address in the scope of the definition. This address is * required to perform an access to PCI config space. * * MUTEX: Interpreter should be unlocked, because we may run the _REG * method for this region. * * NOTE: Possible incompliance: * There is a behavior conflict in automatic _REG execution: * 1. When the interpreter is evaluating a method, we can only * automatically run _REG for the following case: * Method(_REG, 2) {} * OperationRegion (OPR1, 0x80, 0x1000010, 0x4) * 2. When the interpreter is loading a table, we can also * automatically run _REG for the following case: * OperationRegion (OPR1, 0x80, 0x1000010, 0x4) * Method(_REG, 2) {} * Though this may not be compliant to the de-facto standard, the * logic is kept in order not to trigger regressions. And keeping * this logic should be taken care by the caller of this function. * ******************************************************************************/ ACPI_STATUS AcpiEvInitializeRegion ( ACPI_OPERAND_OBJECT *RegionObj) { ACPI_OPERAND_OBJECT *HandlerObj; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_ADR_SPACE_TYPE SpaceId; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (EvInitializeRegion); if (!RegionObj) { return_ACPI_STATUS (AE_BAD_PARAMETER); } if (RegionObj->Common.Flags & AOPOBJ_OBJECT_INITIALIZED) { return_ACPI_STATUS (AE_OK); } RegionObj->Common.Flags |= AOPOBJ_OBJECT_INITIALIZED; Node = RegionObj->Region.Node->Parent; SpaceId = RegionObj->Region.SpaceId; /* * The following loop depends upon the root Node having no parent * ie: AcpiGbl_RootNode->Parent being set to NULL */ while (Node) { /* Check to see if a handler exists */ HandlerObj = NULL; ObjDesc = AcpiNsGetAttachedObject (Node); if (ObjDesc) { /* Can only be a handler if the object exists */ switch (Node->Type) { case ACPI_TYPE_DEVICE: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: HandlerObj = ObjDesc->CommonNotify.Handler; break; default: /* Ignore other objects */ break; } HandlerObj = AcpiEvFindRegionHandler (SpaceId, HandlerObj); if (HandlerObj) { /* Found correct handler */ ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Found handler %p for region %p in obj %p\n", HandlerObj, RegionObj, ObjDesc)); (void) AcpiEvAttachRegion (HandlerObj, RegionObj, FALSE); /* * Tell all users that this region is usable by * running the _REG method */ AcpiExExitInterpreter (); (void) AcpiEvExecuteRegMethod (RegionObj, ACPI_REG_CONNECT); AcpiExEnterInterpreter (); return_ACPI_STATUS (AE_OK); } } /* This node does not have the handler we need; Pop up one level */ Node = Node->Parent; } /* * If we get here, there is no handler for this region. This is not * fatal because many regions get created before a handler is installed * for said region. */ ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "No handler for RegionType %s(%X) (RegionObj %p)\n", AcpiUtGetRegionName (SpaceId), SpaceId, RegionObj)); return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/events/evglock.c0000775000175000017500000002620314773714132022333 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evglock - Global Lock support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acinterp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evglock") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /* Local prototypes */ static UINT32 AcpiEvGlobalLockHandler ( void *Context); /******************************************************************************* * * FUNCTION: AcpiEvInitGlobalLockHandler * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Install a handler for the global lock release event * ******************************************************************************/ ACPI_STATUS AcpiEvInitGlobalLockHandler ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvInitGlobalLockHandler); /* If Hardware Reduced flag is set, there is no global lock */ if (AcpiGbl_ReducedHardware) { return_ACPI_STATUS (AE_OK); } /* Attempt installation of the global lock handler */ Status = AcpiInstallFixedEventHandler (ACPI_EVENT_GLOBAL, AcpiEvGlobalLockHandler, NULL); /* * If the global lock does not exist on this platform, the attempt to * enable GBL_STATUS will fail (the GBL_ENABLE bit will not stick). * Map to AE_OK, but mark global lock as not present. Any attempt to * actually use the global lock will be flagged with an error. */ AcpiGbl_GlobalLockPresent = FALSE; if (Status == AE_NO_HARDWARE_RESPONSE) { ACPI_ERROR ((AE_INFO, "No response from Global Lock hardware, disabling lock")); return_ACPI_STATUS (AE_OK); } Status = AcpiOsCreateLock (&AcpiGbl_GlobalLockPendingLock); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } AcpiGbl_GlobalLockPending = FALSE; AcpiGbl_GlobalLockPresent = TRUE; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvRemoveGlobalLockHandler * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Remove the handler for the Global Lock * ******************************************************************************/ ACPI_STATUS AcpiEvRemoveGlobalLockHandler ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvRemoveGlobalLockHandler); AcpiGbl_GlobalLockPresent = FALSE; Status = AcpiRemoveFixedEventHandler (ACPI_EVENT_GLOBAL, AcpiEvGlobalLockHandler); AcpiOsDeleteLock (AcpiGbl_GlobalLockPendingLock); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvGlobalLockHandler * * PARAMETERS: Context - From thread interface, not used * * RETURN: ACPI_INTERRUPT_HANDLED * * DESCRIPTION: Invoked directly from the SCI handler when a global lock * release interrupt occurs. If there is actually a pending * request for the lock, signal the waiting thread. * ******************************************************************************/ static UINT32 AcpiEvGlobalLockHandler ( void *Context) { ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; Flags = AcpiOsAcquireLock (AcpiGbl_GlobalLockPendingLock); /* * If a request for the global lock is not actually pending, * we are done. This handles "spurious" global lock interrupts * which are possible (and have been seen) with bad BIOSs. */ if (!AcpiGbl_GlobalLockPending) { goto CleanupAndExit; } /* * Send a unit to the global lock semaphore. The actual acquisition * of the global lock will be performed by the waiting thread. */ Status = AcpiOsSignalSemaphore (AcpiGbl_GlobalLockSemaphore, 1); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not signal Global Lock semaphore")); } AcpiGbl_GlobalLockPending = FALSE; CleanupAndExit: AcpiOsReleaseLock (AcpiGbl_GlobalLockPendingLock, Flags); return (ACPI_INTERRUPT_HANDLED); } /****************************************************************************** * * FUNCTION: AcpiEvAcquireGlobalLock * * PARAMETERS: Timeout - Max time to wait for the lock, in millisec. * * RETURN: Status * * DESCRIPTION: Attempt to gain ownership of the Global Lock. * * MUTEX: Interpreter must be locked * * Note: The original implementation allowed multiple threads to "acquire" the * Global Lock, and the OS would hold the lock until the last thread had * released it. However, this could potentially starve the BIOS out of the * lock, especially in the case where there is a tight handshake between the * Embedded Controller driver and the BIOS. Therefore, this implementation * allows only one thread to acquire the HW Global Lock at a time, and makes * the global lock appear as a standard mutex on the OS side. * *****************************************************************************/ ACPI_STATUS AcpiEvAcquireGlobalLock ( UINT16 Timeout) { ACPI_CPU_FLAGS Flags; ACPI_STATUS Status; BOOLEAN Acquired = FALSE; ACPI_FUNCTION_TRACE (EvAcquireGlobalLock); /* * Only one thread can acquire the GL at a time, the GlobalLockMutex * enforces this. This interface releases the interpreter if we must wait. */ Status = AcpiExSystemWaitMutex (AcpiGbl_GlobalLockMutex->Mutex.OsMutex, Timeout); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Update the global lock handle and check for wraparound. The handle is * only used for the external global lock interfaces, but it is updated * here to properly handle the case where a single thread may acquire the * lock via both the AML and the AcpiAcquireGlobalLock interfaces. The * handle is therefore updated on the first acquire from a given thread * regardless of where the acquisition request originated. */ AcpiGbl_GlobalLockHandle++; if (AcpiGbl_GlobalLockHandle == 0) { AcpiGbl_GlobalLockHandle = 1; } /* * Make sure that a global lock actually exists. If not, just * treat the lock as a standard mutex. */ if (!AcpiGbl_GlobalLockPresent) { AcpiGbl_GlobalLockAcquired = TRUE; return_ACPI_STATUS (AE_OK); } Flags = AcpiOsAcquireLock (AcpiGbl_GlobalLockPendingLock); do { /* Attempt to acquire the actual hardware lock */ ACPI_ACQUIRE_GLOBAL_LOCK (AcpiGbl_FACS, Acquired); if (Acquired) { AcpiGbl_GlobalLockAcquired = TRUE; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Acquired hardware Global Lock\n")); break; } /* * Did not get the lock. The pending bit was set above, and * we must now wait until we receive the global lock * released interrupt. */ AcpiGbl_GlobalLockPending = TRUE; AcpiOsReleaseLock (AcpiGbl_GlobalLockPendingLock, Flags); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Waiting for hardware Global Lock\n")); /* * Wait for handshake with the global lock interrupt handler. * This interface releases the interpreter if we must wait. */ Status = AcpiExSystemWaitSemaphore ( AcpiGbl_GlobalLockSemaphore, ACPI_WAIT_FOREVER); Flags = AcpiOsAcquireLock (AcpiGbl_GlobalLockPendingLock); } while (ACPI_SUCCESS (Status)); AcpiGbl_GlobalLockPending = FALSE; AcpiOsReleaseLock (AcpiGbl_GlobalLockPendingLock, Flags); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvReleaseGlobalLock * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Releases ownership of the Global Lock. * ******************************************************************************/ ACPI_STATUS AcpiEvReleaseGlobalLock ( void) { BOOLEAN Pending = FALSE; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (EvReleaseGlobalLock); /* Lock must be already acquired */ if (!AcpiGbl_GlobalLockAcquired) { ACPI_WARNING ((AE_INFO, "Cannot release the ACPI Global Lock, it has not been acquired")); return_ACPI_STATUS (AE_NOT_ACQUIRED); } if (AcpiGbl_GlobalLockPresent) { /* Allow any thread to release the lock */ ACPI_RELEASE_GLOBAL_LOCK (AcpiGbl_FACS, Pending); /* * If the pending bit was set, we must write GBL_RLS to the control * register */ if (Pending) { Status = AcpiWriteBitRegister ( ACPI_BITREG_GLOBAL_LOCK_RELEASE, ACPI_ENABLE_EVENT); } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Released hardware Global Lock\n")); } AcpiGbl_GlobalLockAcquired = FALSE; /* Release the local GL mutex */ AcpiOsReleaseMutex (AcpiGbl_GlobalLockMutex->Mutex.OsMutex); return_ACPI_STATUS (Status); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evxfregn.c0000775000175000017500000002562114773714132022530 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evxfregn - External Interfaces, ACPI Operation Regions and * Address Spaces. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acevents.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evxfregn") /******************************************************************************* * * FUNCTION: AcpiInstallAddressSpaceHandlerInternal * * PARAMETERS: Device - Handle for the device * SpaceId - The address space ID * Handler - Address of the handler * Setup - Address of the setup function * Context - Value passed to the handler on each access * Run_Reg - Run _REG methods for this address space? * * RETURN: Status * * DESCRIPTION: Install a handler for all OpRegions of a given SpaceId. * * NOTE: This function should only be called after AcpiEnableSubsystem has * been called. This is because any _REG methods associated with the Space ID * are executed here, and these methods can only be safely executed after * the default handlers have been installed and the hardware has been * initialized (via AcpiEnableSubsystem.) * To avoid this problem pass FALSE for Run_Reg and later on call * AcpiExecuteRegMethods() to execute _REG. * ******************************************************************************/ static ACPI_STATUS AcpiInstallAddressSpaceHandlerInternal ( ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler, ACPI_ADR_SPACE_SETUP Setup, void *Context, BOOLEAN Run_Reg) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInstallAddressSpaceHandler); /* Parameter validation */ if (!Device) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Convert and validate the device handle */ Node = AcpiNsValidateHandle (Device); if (!Node) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Install the handler for all Regions for this Space ID */ Status = AcpiEvInstallSpaceHandler ( Node, SpaceId, Handler, Setup, Context); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } /* Run all _REG methods for this address space */ if (Run_Reg) { AcpiEvExecuteRegMethods (Node, SpaceId, ACPI_REG_CONNECT); } UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } ACPI_STATUS AcpiInstallAddressSpaceHandler ( ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler, ACPI_ADR_SPACE_SETUP Setup, void *Context) { return AcpiInstallAddressSpaceHandlerInternal (Device, SpaceId, Handler, Setup, Context, TRUE); } ACPI_EXPORT_SYMBOL (AcpiInstallAddressSpaceHandler) ACPI_STATUS AcpiInstallAddressSpaceHandlerNo_Reg ( ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler, ACPI_ADR_SPACE_SETUP Setup, void *Context) { return AcpiInstallAddressSpaceHandlerInternal (Device, SpaceId, Handler, Setup, Context, FALSE); } ACPI_EXPORT_SYMBOL (AcpiInstallAddressSpaceHandlerNo_Reg) /******************************************************************************* * * FUNCTION: AcpiRemoveAddressSpaceHandler * * PARAMETERS: Device - Handle for the device * SpaceId - The address space ID * Handler - Address of the handler * * RETURN: Status * * DESCRIPTION: Remove a previously installed handler. * ******************************************************************************/ ACPI_STATUS AcpiRemoveAddressSpaceHandler ( ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *HandlerObj; ACPI_OPERAND_OBJECT *RegionObj; ACPI_OPERAND_OBJECT **LastObjPtr; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiRemoveAddressSpaceHandler); /* Parameter validation */ if (!Device) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Convert and validate the device handle */ Node = AcpiNsValidateHandle (Device); if (!Node || ((Node->Type != ACPI_TYPE_DEVICE) && (Node->Type != ACPI_TYPE_PROCESSOR) && (Node->Type != ACPI_TYPE_THERMAL) && (Node != AcpiGbl_RootNode))) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Make sure the internal object exists */ ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { Status = AE_NOT_EXIST; goto UnlockAndExit; } /* Find the address handler the user requested */ HandlerObj = ObjDesc->CommonNotify.Handler; LastObjPtr = &ObjDesc->CommonNotify.Handler; while (HandlerObj) { /* We have a handler, see if user requested this one */ if (HandlerObj->AddressSpace.SpaceId == SpaceId) { /* Handler must be the same as the installed handler */ if (HandlerObj->AddressSpace.Handler != Handler) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Matched SpaceId, first dereference this in the Regions */ ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Removing address handler %p(%p) for region %s " "on Device %p(%p)\n", HandlerObj, Handler, AcpiUtGetRegionName (SpaceId), Node, ObjDesc)); RegionObj = HandlerObj->AddressSpace.RegionList; /* Walk the handler's region list */ while (RegionObj) { /* * First disassociate the handler from the region. * * NOTE: this doesn't mean that the region goes away * The region is just inaccessible as indicated to * the _REG method */ AcpiEvDetachRegion (RegionObj, TRUE); /* * Walk the list: Just grab the head because the * DetachRegion removed the previous head. */ RegionObj = HandlerObj->AddressSpace.RegionList; } /* Remove this Handler object from the list */ *LastObjPtr = HandlerObj->AddressSpace.Next; /* Now we can delete the handler object */ AcpiUtRemoveReference (HandlerObj); goto UnlockAndExit; } /* Walk the linked list of handlers */ LastObjPtr = &HandlerObj->AddressSpace.Next; HandlerObj = HandlerObj->AddressSpace.Next; } /* The handler does not exist */ ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Unable to remove address handler %p for %s(%X), DevNode %p, obj %p\n", Handler, AcpiUtGetRegionName (SpaceId), SpaceId, Node, ObjDesc)); Status = AE_NOT_EXIST; UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiRemoveAddressSpaceHandler) /******************************************************************************* * * FUNCTION: AcpiExecuteRegMethods * * PARAMETERS: Device - Handle for the device * SpaceId - The address space ID * * RETURN: Status * * DESCRIPTION: Execute _REG for all OpRegions of a given SpaceId. * ******************************************************************************/ ACPI_STATUS AcpiExecuteRegMethods ( ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiExecuteRegMethods); /* Parameter validation */ if (!Device) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Convert and validate the device handle */ Node = AcpiNsValidateHandle (Device); if (Node) { /* Run all _REG methods for this address space */ AcpiEvExecuteRegMethods (Node, SpaceId, ACPI_REG_CONNECT); } else { Status = AE_BAD_PARAMETER; } (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiExecuteRegMethods) acpica-unix-20250404/source/components/events/evregion.c0000775000175000017500000007265714773714132022535 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evregion - Operation Region support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acnamesp.h" #include "acinterp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evregion") extern UINT8 AcpiGbl_DefaultAddressSpaces[]; /* Local prototypes */ static void AcpiEvExecuteOrphanRegMethod ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_ADR_SPACE_TYPE SpaceId); static ACPI_STATUS AcpiEvRegRun ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); /******************************************************************************* * * FUNCTION: AcpiEvInitializeOpRegions * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Execute _REG methods for all Operation Regions that have * an installed default region handler. * ******************************************************************************/ ACPI_STATUS AcpiEvInitializeOpRegions ( void) { ACPI_STATUS Status; UINT32 i; ACPI_FUNCTION_TRACE (EvInitializeOpRegions); Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Run the _REG methods for OpRegions in each default address space */ for (i = 0; i < ACPI_NUM_DEFAULT_SPACES; i++) { /* * Make sure the installed handler is the DEFAULT handler. If not the * default, the _REG methods will have already been run (when the * handler was installed) */ if (AcpiEvHasDefaultHandler (AcpiGbl_RootNode, AcpiGbl_DefaultAddressSpaces[i])) { AcpiEvExecuteRegMethods (AcpiGbl_RootNode, AcpiGbl_DefaultAddressSpaces[i], ACPI_REG_CONNECT); } } (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvAddressSpaceDispatch * * PARAMETERS: RegionObj - Internal region object * FieldObj - Corresponding field. Can be NULL. * Function - Read or Write operation * RegionOffset - Where in the region to read or write * BitWidth - Field width in bits (8, 16, 32, or 64) * Value - Pointer to in or out value, must be * a full 64-bit integer * * RETURN: Status * * DESCRIPTION: Dispatch an address space or operation region access to * a previously installed handler. * * NOTE: During early initialization, we always install the default region * handlers for Memory, I/O and PCI_Config. This ensures that these operation * region address spaces are always available as per the ACPI specification. * This is especially needed in order to support the execution of * module-level AML code during loading of the ACPI tables. * ******************************************************************************/ ACPI_STATUS AcpiEvAddressSpaceDispatch ( ACPI_OPERAND_OBJECT *RegionObj, ACPI_OPERAND_OBJECT *FieldObj, UINT32 Function, UINT32 RegionOffset, UINT32 BitWidth, UINT64 *Value) { ACPI_STATUS Status; ACPI_ADR_SPACE_HANDLER Handler; ACPI_ADR_SPACE_SETUP RegionSetup; ACPI_OPERAND_OBJECT *HandlerDesc; ACPI_OPERAND_OBJECT *RegionObj2; void *RegionContext = NULL; ACPI_CONNECTION_INFO *Context; ACPI_MUTEX ContextMutex; BOOLEAN ContextLocked; ACPI_PHYSICAL_ADDRESS Address; ACPI_FUNCTION_TRACE (EvAddressSpaceDispatch); RegionObj2 = AcpiNsGetSecondaryObject (RegionObj); if (!RegionObj2) { return_ACPI_STATUS (AE_NOT_EXIST); } /* Ensure that there is a handler associated with this region */ HandlerDesc = RegionObj->Region.Handler; if (!HandlerDesc) { ACPI_ERROR ((AE_INFO, "No handler for Region [%4.4s] (%p) [%s]", AcpiUtGetNodeName (RegionObj->Region.Node), RegionObj, AcpiUtGetRegionName (RegionObj->Region.SpaceId))); return_ACPI_STATUS (AE_NOT_EXIST); } Context = HandlerDesc->AddressSpace.Context; ContextMutex = HandlerDesc->AddressSpace.ContextMutex; ContextLocked = FALSE; /* * It may be the case that the region has never been initialized. * Some types of regions require special init code */ if (!(RegionObj->Region.Flags & AOPOBJ_SETUP_COMPLETE)) { /* This region has not been initialized yet, do it */ RegionSetup = HandlerDesc->AddressSpace.Setup; if (!RegionSetup) { /* No initialization routine, exit with error */ ACPI_ERROR ((AE_INFO, "No init routine for region(%p) [%s]", RegionObj, AcpiUtGetRegionName (RegionObj->Region.SpaceId))); return_ACPI_STATUS (AE_NOT_EXIST); } if (RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM) { ACPI_PCC_INFO *Ctx = HandlerDesc->AddressSpace.Context; Ctx->InternalBuffer = FieldObj->Field.InternalPccBuffer; Ctx->Length = (UINT16) RegionObj->Region.Length; Ctx->SubspaceId = (UINT8) RegionObj->Region.Address; } if (RegionObj->Region.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE) { ACPI_FFH_INFO *Ctx = HandlerDesc->AddressSpace.Context; Ctx->Length = RegionObj->Region.Length; Ctx->Offset = RegionObj->Region.Address; } /* * We must exit the interpreter because the region setup will * potentially execute control methods (for example, the _REG method * for this region) */ AcpiExExitInterpreter (); Status = RegionSetup (RegionObj, ACPI_REGION_ACTIVATE, Context, &RegionContext); /* Re-enter the interpreter */ AcpiExEnterInterpreter (); /* Check for failure of the Region Setup */ if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During region initialization: [%s]", AcpiUtGetRegionName (RegionObj->Region.SpaceId))); return_ACPI_STATUS (Status); } /* Region initialization may have been completed by RegionSetup */ if (!(RegionObj->Region.Flags & AOPOBJ_SETUP_COMPLETE)) { RegionObj->Region.Flags |= AOPOBJ_SETUP_COMPLETE; /* * Save the returned context for use in all accesses to * the handler for this particular region */ if (!(RegionObj2->Extra.RegionContext)) { RegionObj2->Extra.RegionContext = RegionContext; } } } /* We have everything we need, we can invoke the address space handler */ Handler = HandlerDesc->AddressSpace.Handler; Address = (RegionObj->Region.Address + RegionOffset); ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Handler %p (@%p) Address %8.8X%8.8X [%s]\n", &RegionObj->Region.Handler->AddressSpace, Handler, ACPI_FORMAT_UINT64 (Address), AcpiUtGetRegionName (RegionObj->Region.SpaceId))); if (!(HandlerDesc->AddressSpace.HandlerFlags & ACPI_ADDR_HANDLER_DEFAULT_INSTALLED)) { /* * For handlers other than the default (supplied) handlers, we must * exit the interpreter because the handler *might* block -- we don't * know what it will do, so we can't hold the lock on the interpreter. */ AcpiExExitInterpreter(); } /* * Special handling for GenericSerialBus and GeneralPurposeIo: * There are three extra parameters that must be passed to the * handler via the context: * 1) Connection buffer, a resource template from Connection() op * 2) Length of the above buffer * 3) Actual access length from the AccessAs() op * * Since we pass these extra parameters via the context, which is * shared between threads, we must lock the context to avoid these * parameters being changed from another thread before the handler * has completed running. * * In addition, for GeneralPurposeIo, the Address and BitWidth fields * are defined as follows: * 1) Address is the pin number index of the field (bit offset from * the previous Connection) * 2) BitWidth is the actual bit length of the field (number of pins) */ if ((RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GSBUS || RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO) && Context && FieldObj) { Status = AcpiOsAcquireMutex (ContextMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { goto ReEnterInterpreter; } ContextLocked = TRUE; /* Get the Connection (ResourceTemplate) buffer */ Context->Connection = FieldObj->Field.ResourceBuffer; Context->Length = FieldObj->Field.ResourceLength; Context->AccessLength = FieldObj->Field.AccessLength; if (RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO) { Address = FieldObj->Field.PinNumberIndex; BitWidth = FieldObj->Field.BitLength; } } /* Call the handler */ Status = Handler (Function, Address, BitWidth, Value, Context, RegionObj2->Extra.RegionContext); if (ContextLocked) { AcpiOsReleaseMutex (ContextMutex); } if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Returned by Handler for [%s]", AcpiUtGetRegionName (RegionObj->Region.SpaceId))); /* * Special case for an EC timeout. These are seen so frequently * that an additional error message is helpful */ if ((RegionObj->Region.SpaceId == ACPI_ADR_SPACE_EC) && (Status == AE_TIME)) { ACPI_ERROR ((AE_INFO, "Timeout from EC hardware or EC device driver")); } } ReEnterInterpreter: if (!(HandlerDesc->AddressSpace.HandlerFlags & ACPI_ADDR_HANDLER_DEFAULT_INSTALLED)) { /* * We just returned from a non-default handler, we must re-enter the * interpreter */ AcpiExEnterInterpreter (); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvDetachRegion * * PARAMETERS: RegionObj - Region Object * AcpiNsIsLocked - Namespace Region Already Locked? * * RETURN: None * * DESCRIPTION: Break the association between the handler and the region * this is a two way association. * ******************************************************************************/ void AcpiEvDetachRegion ( ACPI_OPERAND_OBJECT *RegionObj, BOOLEAN AcpiNsIsLocked) { ACPI_OPERAND_OBJECT *HandlerObj; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *StartDesc; ACPI_OPERAND_OBJECT **LastObjPtr; ACPI_ADR_SPACE_SETUP RegionSetup; void **RegionContext; ACPI_OPERAND_OBJECT *RegionObj2; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvDetachRegion); RegionObj2 = AcpiNsGetSecondaryObject (RegionObj); if (!RegionObj2) { return_VOID; } RegionContext = &RegionObj2->Extra.RegionContext; /* Get the address handler from the region object */ HandlerObj = RegionObj->Region.Handler; if (!HandlerObj) { /* This region has no handler, all done */ return_VOID; } /* Find this region in the handler's list */ ObjDesc = HandlerObj->AddressSpace.RegionList; StartDesc = ObjDesc; LastObjPtr = &HandlerObj->AddressSpace.RegionList; while (ObjDesc) { /* Is this the correct Region? */ if (ObjDesc == RegionObj) { ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Removing Region %p from address handler %p\n", RegionObj, HandlerObj)); /* This is it, remove it from the handler's list */ *LastObjPtr = ObjDesc->Region.Next; ObjDesc->Region.Next = NULL; /* Must clear field */ if (AcpiNsIsLocked) { Status = AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_VOID; } } /* Now stop region accesses by executing the _REG method */ Status = AcpiEvExecuteRegMethod (RegionObj, ACPI_REG_DISCONNECT); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "from region _REG, [%s]", AcpiUtGetRegionName (RegionObj->Region.SpaceId))); } if (AcpiNsIsLocked) { Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_VOID; } } /* * If the region has been activated, call the setup handler with * the deactivate notification */ if (RegionObj->Region.Flags & AOPOBJ_SETUP_COMPLETE) { RegionSetup = HandlerObj->AddressSpace.Setup; Status = RegionSetup (RegionObj, ACPI_REGION_DEACTIVATE, HandlerObj->AddressSpace.Context, RegionContext); /* * RegionContext should have been released by the deactivate * operation. We don't need access to it anymore here. */ if (RegionContext) { *RegionContext = NULL; } /* Init routine may fail, Just ignore errors */ if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "from region handler - deactivate, [%s]", AcpiUtGetRegionName (RegionObj->Region.SpaceId))); } RegionObj->Region.Flags &= ~(AOPOBJ_SETUP_COMPLETE); } /* * Remove handler reference in the region * * NOTE: this doesn't mean that the region goes away, the region * is just inaccessible as indicated to the _REG method * * If the region is on the handler's list, this must be the * region's handler */ RegionObj->Region.Handler = NULL; AcpiUtRemoveReference (HandlerObj); return_VOID; } /* Walk the linked list of handlers */ LastObjPtr = &ObjDesc->Region.Next; ObjDesc = ObjDesc->Region.Next; /* Prevent infinite loop if list is corrupted */ if (ObjDesc == StartDesc) { ACPI_ERROR ((AE_INFO, "Circular handler list in region object %p", RegionObj)); return_VOID; } } /* If we get here, the region was not in the handler's region list */ ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Cannot remove region %p from address handler %p\n", RegionObj, HandlerObj)); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiEvAttachRegion * * PARAMETERS: HandlerObj - Handler Object * RegionObj - Region Object * AcpiNsIsLocked - Namespace Region Already Locked? * * RETURN: None * * DESCRIPTION: Create the association between the handler and the region * this is a two way association. * ******************************************************************************/ ACPI_STATUS AcpiEvAttachRegion ( ACPI_OPERAND_OBJECT *HandlerObj, ACPI_OPERAND_OBJECT *RegionObj, BOOLEAN AcpiNsIsLocked) { ACPI_FUNCTION_TRACE (EvAttachRegion); /* Install the region's handler */ if (RegionObj->Region.Handler) { return_ACPI_STATUS (AE_ALREADY_EXISTS); } ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Adding Region [%4.4s] %p to address handler %p [%s]\n", AcpiUtGetNodeName (RegionObj->Region.Node), RegionObj, HandlerObj, AcpiUtGetRegionName (RegionObj->Region.SpaceId))); /* Link this region to the front of the handler's list */ RegionObj->Region.Next = HandlerObj->AddressSpace.RegionList; HandlerObj->AddressSpace.RegionList = RegionObj; RegionObj->Region.Handler = HandlerObj; AcpiUtAddReference (HandlerObj); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvExecuteRegMethod * * PARAMETERS: RegionObj - Region object * Function - Passed to _REG: On (1) or Off (0) * * RETURN: Status * * DESCRIPTION: Execute _REG method for a region * ******************************************************************************/ ACPI_STATUS AcpiEvExecuteRegMethod ( ACPI_OPERAND_OBJECT *RegionObj, UINT32 Function) { ACPI_EVALUATE_INFO *Info; ACPI_OPERAND_OBJECT *Args[3]; ACPI_OPERAND_OBJECT *RegionObj2; const ACPI_NAME *RegNamePtr = ACPI_CAST_PTR (ACPI_NAME, METHOD_NAME__REG); ACPI_NAMESPACE_NODE *MethodNode; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvExecuteRegMethod); if (!AcpiGbl_NamespaceInitialized || RegionObj->Region.Handler == NULL) { return_ACPI_STATUS (AE_OK); } RegionObj2 = AcpiNsGetSecondaryObject (RegionObj); if (!RegionObj2) { return_ACPI_STATUS (AE_NOT_EXIST); } /* * Find any "_REG" method associated with this region definition. * The method should always be updated as this function may be * invoked after a namespace change. */ Node = RegionObj->Region.Node->Parent; Status = AcpiNsSearchOneScope ( *RegNamePtr, Node, ACPI_TYPE_METHOD, &MethodNode); if (ACPI_SUCCESS (Status)) { /* * The _REG method is optional and there can be only one per * region definition. This will be executed when the handler is * attached or removed. */ RegionObj2->Extra.Method_REG = MethodNode; } if (RegionObj2->Extra.Method_REG == NULL) { return_ACPI_STATUS (AE_OK); } /* _REG(DISCONNECT) should be paired with _REG(CONNECT) */ if ((Function == ACPI_REG_CONNECT && RegionObj->Common.Flags & AOPOBJ_REG_CONNECTED) || (Function == ACPI_REG_DISCONNECT && !(RegionObj->Common.Flags & AOPOBJ_REG_CONNECTED))) { return_ACPI_STATUS (AE_OK); } /* Allocate and initialize the evaluation information block */ Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO)); if (!Info) { return_ACPI_STATUS (AE_NO_MEMORY); } Info->PrefixNode = RegionObj2->Extra.Method_REG; Info->RelativePathname = NULL; Info->Parameters = Args; Info->Flags = ACPI_IGNORE_RETURN_VALUE; /* * The _REG method has two arguments: * * Arg0 - Integer: * Operation region space ID Same value as RegionObj->Region.SpaceId * * Arg1 - Integer: * connection status 1 for connecting the handler, 0 for disconnecting * the handler (Passed as a parameter) */ Args[0] = AcpiUtCreateIntegerObject ((UINT64) RegionObj->Region.SpaceId); if (!Args[0]) { Status = AE_NO_MEMORY; goto Cleanup1; } Args[1] = AcpiUtCreateIntegerObject ((UINT64) Function); if (!Args[1]) { Status = AE_NO_MEMORY; goto Cleanup2; } Args[2] = NULL; /* Terminate list */ /* Execute the method, no return value */ ACPI_DEBUG_EXEC ( AcpiUtDisplayInitPathname (ACPI_TYPE_METHOD, Info->PrefixNode, NULL)); Status = AcpiNsEvaluate (Info); AcpiUtRemoveReference (Args[1]); if (ACPI_FAILURE (Status)) { goto Cleanup2; } if (Function == ACPI_REG_CONNECT) { RegionObj->Common.Flags |= AOPOBJ_REG_CONNECTED; } else { RegionObj->Common.Flags &= ~AOPOBJ_REG_CONNECTED; } Cleanup2: AcpiUtRemoveReference (Args[0]); Cleanup1: ACPI_FREE (Info); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvExecuteRegMethods * * PARAMETERS: Node - Namespace node for the device * SpaceId - The address space ID * Function - Passed to _REG: On (1) or Off (0) * * RETURN: None * * DESCRIPTION: Run all _REG methods for the input Space ID; * Note: assumes namespace is locked, or system init time. * ******************************************************************************/ void AcpiEvExecuteRegMethods ( ACPI_NAMESPACE_NODE *Node, ACPI_ADR_SPACE_TYPE SpaceId, UINT32 Function) { ACPI_REG_WALK_INFO Info; ACPI_FUNCTION_TRACE (EvExecuteRegMethods); /* * These address spaces do not need a call to _REG, since the ACPI * specification defines them as: "must always be accessible". Since * they never change state (never become unavailable), no need to ever * call _REG on them. Also, a DataTable is not a "real" address space, * so do not call _REG. September 2018. */ if ((SpaceId == ACPI_ADR_SPACE_SYSTEM_MEMORY) || (SpaceId == ACPI_ADR_SPACE_SYSTEM_IO) || (SpaceId == ACPI_ADR_SPACE_DATA_TABLE)) { return_VOID; } Info.SpaceId = SpaceId; Info.Function = Function; Info.RegRunCount = 0; ACPI_DEBUG_PRINT_RAW ((ACPI_DB_NAMES, " Running _REG methods for SpaceId %s\n", AcpiUtGetRegionName (Info.SpaceId))); /* * Run all _REG methods for all Operation Regions for this space ID. This * is a separate walk in order to handle any interdependencies between * regions and _REG methods. (i.e. handlers must be installed for all * regions of this Space ID before we can run any _REG methods) */ (void) AcpiNsWalkNamespace (ACPI_TYPE_ANY, Node, ACPI_UINT32_MAX, ACPI_NS_WALK_UNLOCK, AcpiEvRegRun, NULL, &Info, NULL); /* * Special case for EC and GPIO: handle "orphan" _REG methods with * no region. */ if (SpaceId == ACPI_ADR_SPACE_EC || SpaceId == ACPI_ADR_SPACE_GPIO) { AcpiEvExecuteOrphanRegMethod (Node, SpaceId); } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_NAMES, " Executed %u _REG methods for SpaceId %s\n", Info.RegRunCount, AcpiUtGetRegionName (Info.SpaceId))); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiEvRegRun * * PARAMETERS: WalkNamespace callback * * DESCRIPTION: Run _REG method for region objects of the requested spaceID * ******************************************************************************/ static ACPI_STATUS AcpiEvRegRun ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_REG_WALK_INFO *Info; Info = ACPI_CAST_PTR (ACPI_REG_WALK_INFO, Context); /* Convert and validate the device handle */ Node = AcpiNsValidateHandle (ObjHandle); if (!Node) { return (AE_BAD_PARAMETER); } /* * We only care about regions and objects that are allowed to have * address space handlers */ if ((Node->Type != ACPI_TYPE_REGION) && (Node != AcpiGbl_RootNode)) { return (AE_OK); } /* Check for an existing internal object */ ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { /* No object, just exit */ return (AE_OK); } /* Object is a Region */ if (ObjDesc->Region.SpaceId != Info->SpaceId) { /* This region is for a different address space, just ignore it */ return (AE_OK); } Info->RegRunCount++; Status = AcpiEvExecuteRegMethod (ObjDesc, Info->Function); return (Status); } /******************************************************************************* * * FUNCTION: AcpiEvExecuteOrphanRegMethod * * PARAMETERS: DeviceNode - Namespace node for an ACPI device * SpaceId - The address space ID * * RETURN: None * * DESCRIPTION: Execute an "orphan" _REG method that appears under an ACPI * device. This is a _REG method that has no corresponding region * within the device's scope. ACPI tables depending on these * "orphan" _REG methods have been seen for both EC and GPIO * Operation Regions. Presumably the Windows ACPI implementation * always calls the _REG method independent of the presence of * an actual Operation Region with the correct address space ID. * * MUTEX: Assumes the namespace is locked * ******************************************************************************/ static void AcpiEvExecuteOrphanRegMethod ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_ADR_SPACE_TYPE SpaceId) { ACPI_HANDLE RegMethod; ACPI_NAMESPACE_NODE *NextNode; ACPI_STATUS Status; ACPI_OBJECT_LIST Args; ACPI_OBJECT Objects[2]; ACPI_FUNCTION_TRACE (EvExecuteOrphanRegMethod); if (!DeviceNode) { return_VOID; } /* Namespace is currently locked, must release */ (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); /* Get a handle to a _REG method immediately under the EC device */ Status = AcpiGetHandle (DeviceNode, METHOD_NAME__REG, &RegMethod); if (ACPI_FAILURE (Status)) { goto Exit; /* There is no _REG method present */ } /* * Execute the _REG method only if there is no Operation Region in * this scope with the Embedded Controller space ID. Otherwise, it * will already have been executed. Note, this allows for Regions * with other space IDs to be present; but the code below will then * execute the _REG method with the EmbeddedControl SpaceID argument. */ NextNode = AcpiNsGetNextNode (DeviceNode, NULL); while (NextNode) { if ((NextNode->Type == ACPI_TYPE_REGION) && (NextNode->Object) && (NextNode->Object->Region.SpaceId == SpaceId)) { goto Exit; /* Do not execute the _REG */ } NextNode = AcpiNsGetNextNode (DeviceNode, NextNode); } /* Evaluate the _REG(SpaceId,Connect) method */ Args.Count = 2; Args.Pointer = Objects; Objects[0].Type = ACPI_TYPE_INTEGER; Objects[0].Integer.Value = SpaceId; Objects[1].Type = ACPI_TYPE_INTEGER; Objects[1].Integer.Value = ACPI_REG_CONNECT; (void) AcpiEvaluateObject (RegMethod, NULL, &Args, NULL); Exit: /* We ignore all errors from above, don't care */ (void) AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); return_VOID; } acpica-unix-20250404/source/components/events/evxface.c0000775000175000017500000010545114773714132022325 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evxface - External interfaces for ACPI events * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acevents.h" #include "acinterp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evxface") #if (!ACPI_REDUCED_HARDWARE) /* Local prototypes */ static ACPI_STATUS AcpiEvInstallGpeHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, BOOLEAN IsRawHandler, ACPI_GPE_HANDLER Address, void *Context); #endif /******************************************************************************* * * FUNCTION: AcpiInstallNotifyHandler * * PARAMETERS: Device - The device for which notifies will be handled * HandlerType - The type of handler: * ACPI_SYSTEM_NOTIFY: System Handler (00-7F) * ACPI_DEVICE_NOTIFY: Device Handler (80-FF) * ACPI_ALL_NOTIFY: Both System and Device * Handler - Address of the handler * Context - Value passed to the handler on each GPE * * RETURN: Status * * DESCRIPTION: Install a handler for notifications on an ACPI Device, * ThermalZone, or Processor object. * * NOTES: The Root namespace object may have only one handler for each * type of notify (System/Device). Device/Thermal/Processor objects * may have one device notify handler, and multiple system notify * handlers. * ******************************************************************************/ ACPI_STATUS AcpiInstallNotifyHandler ( ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler, void *Context) { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Device); ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *HandlerObj; ACPI_STATUS Status; UINT32 i; ACPI_FUNCTION_TRACE (AcpiInstallNotifyHandler); /* Parameter validation */ if ((!Device) || (!Handler) || (!HandlerType) || (HandlerType > ACPI_MAX_NOTIFY_HANDLER_TYPE)) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Root Object: * Registering a notify handler on the root object indicates that the * caller wishes to receive notifications for all objects. Note that * only one global handler can be registered per notify type. * Ensure that a handler is not already installed. */ if (Device == ACPI_ROOT_OBJECT) { for (i = 0; i < ACPI_NUM_NOTIFY_TYPES; i++) { if (HandlerType & (i+1)) { if (AcpiGbl_GlobalNotify[i].Handler) { Status = AE_ALREADY_EXISTS; goto UnlockAndExit; } AcpiGbl_GlobalNotify[i].Handler = Handler; AcpiGbl_GlobalNotify[i].Context = Context; } } goto UnlockAndExit; /* Global notify handler installed, all done */ } /* * All Other Objects: * Caller will only receive notifications specific to the target * object. Note that only certain object types are allowed to * receive notifications. */ /* Are Notifies allowed on this object? */ if (!AcpiEvIsNotifyObject (Node)) { Status = AE_TYPE; goto UnlockAndExit; } /* Check for an existing internal object, might not exist */ ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { /* Create a new object */ ObjDesc = AcpiUtCreateInternalObject (Node->Type); if (!ObjDesc) { Status = AE_NO_MEMORY; goto UnlockAndExit; } /* Attach new object to the Node, remove local reference */ Status = AcpiNsAttachObject (Device, ObjDesc, Node->Type); AcpiUtRemoveReference (ObjDesc); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } } /* Ensure that the handler is not already installed in the lists */ for (i = 0; i < ACPI_NUM_NOTIFY_TYPES; i++) { if (HandlerType & (i+1)) { HandlerObj = ObjDesc->CommonNotify.NotifyList[i]; while (HandlerObj) { if (HandlerObj->Notify.Handler == Handler) { Status = AE_ALREADY_EXISTS; goto UnlockAndExit; } HandlerObj = HandlerObj->Notify.Next[i]; } } } /* Create and populate a new notify handler object */ HandlerObj = AcpiUtCreateInternalObject (ACPI_TYPE_LOCAL_NOTIFY); if (!HandlerObj) { Status = AE_NO_MEMORY; goto UnlockAndExit; } HandlerObj->Notify.Node = Node; HandlerObj->Notify.HandlerType = HandlerType; HandlerObj->Notify.Handler = Handler; HandlerObj->Notify.Context = Context; /* Install the handler at the list head(s) */ for (i = 0; i < ACPI_NUM_NOTIFY_TYPES; i++) { if (HandlerType & (i+1)) { HandlerObj->Notify.Next[i] = ObjDesc->CommonNotify.NotifyList[i]; ObjDesc->CommonNotify.NotifyList[i] = HandlerObj; } } /* Add an extra reference if handler was installed in both lists */ if (HandlerType == ACPI_ALL_NOTIFY) { AcpiUtAddReference (HandlerObj); } UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallNotifyHandler) /******************************************************************************* * * FUNCTION: AcpiRemoveNotifyHandler * * PARAMETERS: Device - The device for which the handler is installed * HandlerType - The type of handler: * ACPI_SYSTEM_NOTIFY: System Handler (00-7F) * ACPI_DEVICE_NOTIFY: Device Handler (80-FF) * ACPI_ALL_NOTIFY: Both System and Device * Handler - Address of the handler * * RETURN: Status * * DESCRIPTION: Remove a handler for notifies on an ACPI device * ******************************************************************************/ ACPI_STATUS AcpiRemoveNotifyHandler ( ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler) { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Device); ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *HandlerObj; ACPI_OPERAND_OBJECT *PreviousHandlerObj; ACPI_STATUS Status = AE_OK; UINT32 i; ACPI_FUNCTION_TRACE (AcpiRemoveNotifyHandler); /* Parameter validation */ if ((!Device) || (!Handler) || (!HandlerType) || (HandlerType > ACPI_MAX_NOTIFY_HANDLER_TYPE)) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Root Object. Global handlers are removed here */ if (Device == ACPI_ROOT_OBJECT) { for (i = 0; i < ACPI_NUM_NOTIFY_TYPES; i++) { if (HandlerType & (i+1)) { Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (!AcpiGbl_GlobalNotify[i].Handler || (AcpiGbl_GlobalNotify[i].Handler != Handler)) { Status = AE_NOT_EXIST; goto UnlockAndExit; } ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Removing global notify handler\n")); AcpiGbl_GlobalNotify[i].Handler = NULL; AcpiGbl_GlobalNotify[i].Context = NULL; (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); /* Make sure all deferred notify tasks are completed */ AcpiOsWaitEventsComplete (); } } return_ACPI_STATUS (AE_OK); } /* All other objects: Are Notifies allowed on this object? */ if (!AcpiEvIsNotifyObject (Node)) { return_ACPI_STATUS (AE_TYPE); } /* Must have an existing internal object */ ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { return_ACPI_STATUS (AE_NOT_EXIST); } /* Internal object exists. Find the handler and remove it */ for (i = 0; i < ACPI_NUM_NOTIFY_TYPES; i++) { if (HandlerType & (i+1)) { Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } HandlerObj = ObjDesc->CommonNotify.NotifyList[i]; PreviousHandlerObj = NULL; /* Attempt to find the handler in the handler list */ while (HandlerObj && (HandlerObj->Notify.Handler != Handler)) { PreviousHandlerObj = HandlerObj; HandlerObj = HandlerObj->Notify.Next[i]; } if (!HandlerObj) { Status = AE_NOT_EXIST; goto UnlockAndExit; } /* Remove the handler object from the list */ if (PreviousHandlerObj) /* Handler is not at the list head */ { PreviousHandlerObj->Notify.Next[i] = HandlerObj->Notify.Next[i]; } else /* Handler is at the list head */ { ObjDesc->CommonNotify.NotifyList[i] = HandlerObj->Notify.Next[i]; } (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); /* Make sure all deferred notify tasks are completed */ AcpiOsWaitEventsComplete (); AcpiUtRemoveReference (HandlerObj); } } return_ACPI_STATUS (Status); UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiRemoveNotifyHandler) /******************************************************************************* * * FUNCTION: AcpiInstallExceptionHandler * * PARAMETERS: Handler - Pointer to the handler function for the * event * * RETURN: Status * * DESCRIPTION: Saves the pointer to the handler function * ******************************************************************************/ ACPI_STATUS AcpiInstallExceptionHandler ( ACPI_EXCEPTION_HANDLER Handler) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInstallExceptionHandler); Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Don't allow two handlers. */ if (AcpiGbl_ExceptionHandler) { Status = AE_ALREADY_EXISTS; goto Cleanup; } /* Install the handler */ AcpiGbl_ExceptionHandler = Handler; Cleanup: (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallExceptionHandler) #if (!ACPI_REDUCED_HARDWARE) /******************************************************************************* * * FUNCTION: AcpiInstallSciHandler * * PARAMETERS: Address - Address of the handler * Context - Value passed to the handler on each SCI * * RETURN: Status * * DESCRIPTION: Install a handler for a System Control Interrupt. * ******************************************************************************/ ACPI_STATUS AcpiInstallSciHandler ( ACPI_SCI_HANDLER Address, void *Context) { ACPI_SCI_HANDLER_INFO *NewSciHandler; ACPI_SCI_HANDLER_INFO *SciHandler; ACPI_CPU_FLAGS Flags; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInstallSciHandler); if (!Address) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Allocate and init a handler object */ NewSciHandler = ACPI_ALLOCATE (sizeof (ACPI_SCI_HANDLER_INFO)); if (!NewSciHandler) { return_ACPI_STATUS (AE_NO_MEMORY); } NewSciHandler->Address = Address; NewSciHandler->Context = Context; Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { goto Exit; } /* Lock list during installation */ Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); SciHandler = AcpiGbl_SciHandlerList; /* Ensure handler does not already exist */ while (SciHandler) { if (Address == SciHandler->Address) { Status = AE_ALREADY_EXISTS; goto UnlockAndExit; } SciHandler = SciHandler->Next; } /* Install the new handler into the global list (at head) */ NewSciHandler->Next = AcpiGbl_SciHandlerList; AcpiGbl_SciHandlerList = NewSciHandler; UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); Exit: if (ACPI_FAILURE (Status)) { ACPI_FREE (NewSciHandler); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallSciHandler) /******************************************************************************* * * FUNCTION: AcpiRemoveSciHandler * * PARAMETERS: Address - Address of the handler * * RETURN: Status * * DESCRIPTION: Remove a handler for a System Control Interrupt. * ******************************************************************************/ ACPI_STATUS AcpiRemoveSciHandler ( ACPI_SCI_HANDLER Address) { ACPI_SCI_HANDLER_INFO *PrevSciHandler; ACPI_SCI_HANDLER_INFO *NextSciHandler; ACPI_CPU_FLAGS Flags; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiRemoveSciHandler); if (!Address) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Remove the SCI handler with lock */ Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); PrevSciHandler = NULL; NextSciHandler = AcpiGbl_SciHandlerList; while (NextSciHandler) { if (NextSciHandler->Address == Address) { /* Unlink and free the SCI handler info block */ if (PrevSciHandler) { PrevSciHandler->Next = NextSciHandler->Next; } else { AcpiGbl_SciHandlerList = NextSciHandler->Next; } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); ACPI_FREE (NextSciHandler); goto UnlockAndExit; } PrevSciHandler = NextSciHandler; NextSciHandler = NextSciHandler->Next; } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); Status = AE_NOT_EXIST; UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiRemoveSciHandler) /******************************************************************************* * * FUNCTION: AcpiInstallGlobalEventHandler * * PARAMETERS: Handler - Pointer to the global event handler function * Context - Value passed to the handler on each event * * RETURN: Status * * DESCRIPTION: Saves the pointer to the handler function. The global handler * is invoked upon each incoming GPE and Fixed Event. It is * invoked at interrupt level at the time of the event dispatch. * Can be used to update event counters, etc. * ******************************************************************************/ ACPI_STATUS AcpiInstallGlobalEventHandler ( ACPI_GBL_EVENT_HANDLER Handler, void *Context) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInstallGlobalEventHandler); /* Parameter validation */ if (!Handler) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Don't allow two handlers. */ if (AcpiGbl_GlobalEventHandler) { Status = AE_ALREADY_EXISTS; goto Cleanup; } AcpiGbl_GlobalEventHandler = Handler; AcpiGbl_GlobalEventHandlerContext = Context; Cleanup: (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallGlobalEventHandler) /******************************************************************************* * * FUNCTION: AcpiInstallFixedEventHandler * * PARAMETERS: Event - Event type to enable. * Handler - Pointer to the handler function for the * event * Context - Value passed to the handler on each GPE * * RETURN: Status * * DESCRIPTION: Saves the pointer to the handler function and then enables the * event. * ******************************************************************************/ ACPI_STATUS AcpiInstallFixedEventHandler ( UINT32 Event, ACPI_EVENT_HANDLER Handler, void *Context) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInstallFixedEventHandler); /* Parameter validation */ if (Event > ACPI_EVENT_MAX) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Do not allow multiple handlers */ if (AcpiGbl_FixedEventHandlers[Event].Handler) { Status = AE_ALREADY_EXISTS; goto Cleanup; } /* Install the handler before enabling the event */ AcpiGbl_FixedEventHandlers[Event].Handler = Handler; AcpiGbl_FixedEventHandlers[Event].Context = Context; Status = AcpiEnableEvent (Event, 0); if (ACPI_FAILURE (Status)) { ACPI_WARNING ((AE_INFO, "Could not enable fixed event - %s (%u)", AcpiUtGetEventName (Event), Event)); /* Remove the handler */ AcpiGbl_FixedEventHandlers[Event].Handler = NULL; AcpiGbl_FixedEventHandlers[Event].Context = NULL; } else { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Enabled fixed event %s (%X), Handler=%p\n", AcpiUtGetEventName (Event), Event, Handler)); } Cleanup: (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallFixedEventHandler) /******************************************************************************* * * FUNCTION: AcpiRemoveFixedEventHandler * * PARAMETERS: Event - Event type to disable. * Handler - Address of the handler * * RETURN: Status * * DESCRIPTION: Disables the event and unregisters the event handler. * ******************************************************************************/ ACPI_STATUS AcpiRemoveFixedEventHandler ( UINT32 Event, ACPI_EVENT_HANDLER Handler) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (AcpiRemoveFixedEventHandler); /* Parameter validation */ if (Event > ACPI_EVENT_MAX) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Disable the event before removing the handler */ Status = AcpiDisableEvent (Event, 0); /* Always Remove the handler */ AcpiGbl_FixedEventHandlers[Event].Handler = NULL; AcpiGbl_FixedEventHandlers[Event].Context = NULL; if (ACPI_FAILURE (Status)) { ACPI_WARNING ((AE_INFO, "Could not disable fixed event - %s (%u)", AcpiUtGetEventName (Event), Event)); } else { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Disabled fixed event - %s (%X)\n", AcpiUtGetEventName (Event), Event)); } (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiRemoveFixedEventHandler) /******************************************************************************* * * FUNCTION: AcpiEvInstallGpeHandler * * PARAMETERS: GpeDevice - Namespace node for the GPE (NULL for FADT * defined GPEs) * GpeNumber - The GPE number within the GPE block * Type - Whether this GPE should be treated as an * edge- or level-triggered interrupt. * IsRawHandler - Whether this GPE should be handled using * the special GPE handler mode. * Address - Address of the handler * Context - Value passed to the handler on each GPE * * RETURN: Status * * DESCRIPTION: Internal function to install a handler for a General Purpose * Event. * ******************************************************************************/ static ACPI_STATUS AcpiEvInstallGpeHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, BOOLEAN IsRawHandler, ACPI_GPE_HANDLER Address, void *Context) { ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_GPE_HANDLER_INFO *Handler; ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (EvInstallGpeHandler); /* Parameter validation */ if ((!Address) || (Type & ~ACPI_GPE_XRUPT_TYPE_MASK)) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Allocate and init handler object (before lock) */ Handler = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_GPE_HANDLER_INFO)); if (!Handler) { Status = AE_NO_MEMORY; goto UnlockAndExit; } Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { Status = AE_BAD_PARAMETER; goto FreeAndExit; } /* Make sure that there isn't a handler there already */ if ((ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_HANDLER) || (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_RAW_HANDLER)) { Status = AE_ALREADY_EXISTS; goto FreeAndExit; } Handler->Address = Address; Handler->Context = Context; Handler->MethodNode = GpeEventInfo->Dispatch.MethodNode; Handler->OriginalFlags = (UINT8) (GpeEventInfo->Flags & (ACPI_GPE_XRUPT_TYPE_MASK | ACPI_GPE_DISPATCH_MASK)); /* * If the GPE is associated with a method, it may have been enabled * automatically during initialization, in which case it has to be * disabled now to avoid spurious execution of the handler. */ if (((ACPI_GPE_DISPATCH_TYPE (Handler->OriginalFlags) == ACPI_GPE_DISPATCH_METHOD) || (ACPI_GPE_DISPATCH_TYPE (Handler->OriginalFlags) == ACPI_GPE_DISPATCH_NOTIFY)) && GpeEventInfo->RuntimeCount) { Handler->OriginallyEnabled = TRUE; (void) AcpiEvRemoveGpeReference (GpeEventInfo); /* Sanity check of original type against new type */ if (Type != (UINT32) (GpeEventInfo->Flags & ACPI_GPE_XRUPT_TYPE_MASK)) { ACPI_WARNING ((AE_INFO, "GPE type mismatch (level/edge)")); } } /* Install the handler */ GpeEventInfo->Dispatch.Handler = Handler; /* Setup up dispatch flags to indicate handler (vs. method/notify) */ GpeEventInfo->Flags &= ~(ACPI_GPE_XRUPT_TYPE_MASK | ACPI_GPE_DISPATCH_MASK); GpeEventInfo->Flags |= (UINT8) (Type | (IsRawHandler ? ACPI_GPE_DISPATCH_RAW_HANDLER : ACPI_GPE_DISPATCH_HANDLER)); AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); FreeAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); ACPI_FREE (Handler); goto UnlockAndExit; } /******************************************************************************* * * FUNCTION: AcpiInstallGpeHandler * * PARAMETERS: GpeDevice - Namespace node for the GPE (NULL for FADT * defined GPEs) * GpeNumber - The GPE number within the GPE block * Type - Whether this GPE should be treated as an * edge- or level-triggered interrupt. * Address - Address of the handler * Context - Value passed to the handler on each GPE * * RETURN: Status * * DESCRIPTION: Install a handler for a General Purpose Event. * ******************************************************************************/ ACPI_STATUS AcpiInstallGpeHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInstallGpeHandler); Status = AcpiEvInstallGpeHandler (GpeDevice, GpeNumber, Type, FALSE, Address, Context); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallGpeHandler) /******************************************************************************* * * FUNCTION: AcpiInstallGpeRawHandler * * PARAMETERS: GpeDevice - Namespace node for the GPE (NULL for FADT * defined GPEs) * GpeNumber - The GPE number within the GPE block * Type - Whether this GPE should be treated as an * edge- or level-triggered interrupt. * Address - Address of the handler * Context - Value passed to the handler on each GPE * * RETURN: Status * * DESCRIPTION: Install a handler for a General Purpose Event. * ******************************************************************************/ ACPI_STATUS AcpiInstallGpeRawHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInstallGpeRawHandler); Status = AcpiEvInstallGpeHandler (GpeDevice, GpeNumber, Type, TRUE, Address, Context); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallGpeRawHandler) /******************************************************************************* * * FUNCTION: AcpiRemoveGpeHandler * * PARAMETERS: GpeDevice - Namespace node for the GPE (NULL for FADT * defined GPEs) * GpeNumber - The event to remove a handler * Address - Address of the handler * * RETURN: Status * * DESCRIPTION: Remove a handler for a General Purpose AcpiEvent. * ******************************************************************************/ ACPI_STATUS AcpiRemoveGpeHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_GPE_HANDLER Address) { ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_GPE_HANDLER_INFO *Handler; ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiRemoveGpeHandler); /* Parameter validation */ if (!Address) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Make sure that a handler is indeed installed */ if ((ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) != ACPI_GPE_DISPATCH_HANDLER) && (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) != ACPI_GPE_DISPATCH_RAW_HANDLER)) { Status = AE_NOT_EXIST; goto UnlockAndExit; } /* Make sure that the installed handler is the same */ if (GpeEventInfo->Dispatch.Handler->Address != Address) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Remove the handler */ Handler = GpeEventInfo->Dispatch.Handler; GpeEventInfo->Dispatch.Handler = NULL; /* Restore Method node (if any), set dispatch flags */ GpeEventInfo->Dispatch.MethodNode = Handler->MethodNode; GpeEventInfo->Flags &= ~(ACPI_GPE_XRUPT_TYPE_MASK | ACPI_GPE_DISPATCH_MASK); GpeEventInfo->Flags |= Handler->OriginalFlags; /* * If the GPE was previously associated with a method and it was * enabled, it should be enabled at this point to restore the * post-initialization configuration. */ if (((ACPI_GPE_DISPATCH_TYPE (Handler->OriginalFlags) == ACPI_GPE_DISPATCH_METHOD) || (ACPI_GPE_DISPATCH_TYPE (Handler->OriginalFlags) == ACPI_GPE_DISPATCH_NOTIFY)) && Handler->OriginallyEnabled) { (void) AcpiEvAddGpeReference (GpeEventInfo, FALSE); if (ACPI_GPE_IS_POLLING_NEEDED (GpeEventInfo)) { /* Poll edge triggered GPEs to handle existing events */ AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); (void) AcpiEvDetectGpe ( GpeDevice, GpeEventInfo, GpeNumber); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); } } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); /* Make sure all deferred GPE tasks are completed */ AcpiOsWaitEventsComplete (); /* Now we can free the handler object */ ACPI_FREE (Handler); return_ACPI_STATUS (Status); UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiRemoveGpeHandler) /******************************************************************************* * * FUNCTION: AcpiAcquireGlobalLock * * PARAMETERS: Timeout - How long the caller is willing to wait * Handle - Where the handle to the lock is returned * (if acquired) * * RETURN: Status * * DESCRIPTION: Acquire the ACPI Global Lock * * Note: Allows callers with the same thread ID to acquire the global lock * multiple times. In other words, externally, the behavior of the global lock * is identical to an AML mutex. On the first acquire, a new handle is * returned. On any subsequent calls to acquire by the same thread, the same * handle is returned. * ******************************************************************************/ ACPI_STATUS AcpiAcquireGlobalLock ( UINT16 Timeout, UINT32 *Handle) { ACPI_STATUS Status; if (!Handle) { return (AE_BAD_PARAMETER); } /* Must lock interpreter to prevent race conditions */ AcpiExEnterInterpreter (); Status = AcpiExAcquireMutexObject (Timeout, AcpiGbl_GlobalLockMutex, AcpiOsGetThreadId ()); if (ACPI_SUCCESS (Status)) { /* Return the global lock handle (updated in AcpiEvAcquireGlobalLock) */ *Handle = AcpiGbl_GlobalLockHandle; } AcpiExExitInterpreter (); return (Status); } ACPI_EXPORT_SYMBOL (AcpiAcquireGlobalLock) /******************************************************************************* * * FUNCTION: AcpiReleaseGlobalLock * * PARAMETERS: Handle - Returned from AcpiAcquireGlobalLock * * RETURN: Status * * DESCRIPTION: Release the ACPI Global Lock. The handle must be valid. * ******************************************************************************/ ACPI_STATUS AcpiReleaseGlobalLock ( UINT32 Handle) { ACPI_STATUS Status; if (!Handle || (Handle != AcpiGbl_GlobalLockHandle)) { return (AE_NOT_ACQUIRED); } Status = AcpiExReleaseMutexObject (AcpiGbl_GlobalLockMutex); return (Status); } ACPI_EXPORT_SYMBOL (AcpiReleaseGlobalLock) #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evxfevnt.c0000775000175000017500000002606714773714132022556 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evxfevnt - External Interfaces, ACPI event disable/enable * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "actables.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evxfevnt") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /******************************************************************************* * * FUNCTION: AcpiEnable * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Transfers the system into ACPI mode. * ******************************************************************************/ ACPI_STATUS AcpiEnable ( void) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (AcpiEnable); /* ACPI tables must be present */ if (AcpiGbl_FadtIndex == ACPI_INVALID_TABLE_INDEX) { return_ACPI_STATUS (AE_NO_ACPI_TABLES); } /* If the Hardware Reduced flag is set, machine is always in acpi mode */ if (AcpiGbl_ReducedHardware) { return_ACPI_STATUS (AE_OK); } /* Check current mode */ if (AcpiHwGetMode() == ACPI_SYS_MODE_ACPI) { ACPI_DEBUG_PRINT ((ACPI_DB_INIT, "System is already in ACPI mode\n")); } else { /* Transition to ACPI mode */ Status = AcpiHwSetMode (ACPI_SYS_MODE_ACPI); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not transition to ACPI mode")); return_ACPI_STATUS (Status); } ACPI_DEBUG_PRINT ((ACPI_DB_INIT, "Transition to ACPI mode successful\n")); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiEnable) /******************************************************************************* * * FUNCTION: AcpiDisable * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Transfers the system into LEGACY (non-ACPI) mode. * ******************************************************************************/ ACPI_STATUS AcpiDisable ( void) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (AcpiDisable); /* If the Hardware Reduced flag is set, machine is always in acpi mode */ if (AcpiGbl_ReducedHardware) { return_ACPI_STATUS (AE_OK); } if (AcpiHwGetMode() == ACPI_SYS_MODE_LEGACY) { ACPI_DEBUG_PRINT ((ACPI_DB_INIT, "System is already in legacy (non-ACPI) mode\n")); } else { /* Transition to LEGACY mode */ Status = AcpiHwSetMode (ACPI_SYS_MODE_LEGACY); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not exit ACPI mode to legacy mode")); return_ACPI_STATUS (Status); } ACPI_DEBUG_PRINT ((ACPI_DB_INIT, "ACPI mode disabled\n")); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiDisable) /******************************************************************************* * * FUNCTION: AcpiEnableEvent * * PARAMETERS: Event - The fixed eventto be enabled * Flags - Reserved * * RETURN: Status * * DESCRIPTION: Enable an ACPI event (fixed) * ******************************************************************************/ ACPI_STATUS AcpiEnableEvent ( UINT32 Event, UINT32 Flags) { ACPI_STATUS Status = AE_OK; UINT32 Value; ACPI_FUNCTION_TRACE (AcpiEnableEvent); /* If Hardware Reduced flag is set, there are no fixed events */ if (AcpiGbl_ReducedHardware) { return_ACPI_STATUS (AE_OK); } /* Decode the Fixed Event */ if (Event > ACPI_EVENT_MAX) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * Enable the requested fixed event (by writing a one to the enable * register bit) */ Status = AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo[Event].EnableRegisterId, ACPI_ENABLE_EVENT); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Make sure that the hardware responded */ Status = AcpiReadBitRegister ( AcpiGbl_FixedEventInfo[Event].EnableRegisterId, &Value); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (Value != 1) { ACPI_ERROR ((AE_INFO, "Could not enable %s event", AcpiUtGetEventName (Event))); return_ACPI_STATUS (AE_NO_HARDWARE_RESPONSE); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiEnableEvent) /******************************************************************************* * * FUNCTION: AcpiDisableEvent * * PARAMETERS: Event - The fixed event to be disabled * Flags - Reserved * * RETURN: Status * * DESCRIPTION: Disable an ACPI event (fixed) * ******************************************************************************/ ACPI_STATUS AcpiDisableEvent ( UINT32 Event, UINT32 Flags) { ACPI_STATUS Status = AE_OK; UINT32 Value; ACPI_FUNCTION_TRACE (AcpiDisableEvent); /* If Hardware Reduced flag is set, there are no fixed events */ if (AcpiGbl_ReducedHardware) { return_ACPI_STATUS (AE_OK); } /* Decode the Fixed Event */ if (Event > ACPI_EVENT_MAX) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * Disable the requested fixed event (by writing a zero to the enable * register bit) */ Status = AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo[Event].EnableRegisterId, ACPI_DISABLE_EVENT); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiReadBitRegister ( AcpiGbl_FixedEventInfo[Event].EnableRegisterId, &Value); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (Value != 0) { ACPI_ERROR ((AE_INFO, "Could not disable %s events", AcpiUtGetEventName (Event))); return_ACPI_STATUS (AE_NO_HARDWARE_RESPONSE); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiDisableEvent) /******************************************************************************* * * FUNCTION: AcpiClearEvent * * PARAMETERS: Event - The fixed event to be cleared * * RETURN: Status * * DESCRIPTION: Clear an ACPI event (fixed) * ******************************************************************************/ ACPI_STATUS AcpiClearEvent ( UINT32 Event) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (AcpiClearEvent); /* If Hardware Reduced flag is set, there are no fixed events */ if (AcpiGbl_ReducedHardware) { return_ACPI_STATUS (AE_OK); } /* Decode the Fixed Event */ if (Event > ACPI_EVENT_MAX) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * Clear the requested fixed event (By writing a one to the status * register bit) */ Status = AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo[Event].StatusRegisterId, ACPI_CLEAR_STATUS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiClearEvent) /******************************************************************************* * * FUNCTION: AcpiGetEventStatus * * PARAMETERS: Event - The fixed event * EventStatus - Where the current status of the event will * be returned * * RETURN: Status * * DESCRIPTION: Obtains and returns the current status of the event * ******************************************************************************/ ACPI_STATUS AcpiGetEventStatus ( UINT32 Event, ACPI_EVENT_STATUS *EventStatus) { ACPI_STATUS Status; ACPI_EVENT_STATUS LocalEventStatus = 0; UINT32 InByte; ACPI_FUNCTION_TRACE (AcpiGetEventStatus); if (!EventStatus) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Decode the Fixed Event */ if (Event > ACPI_EVENT_MAX) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Fixed event currently can be dispatched? */ if (AcpiGbl_FixedEventHandlers[Event].Handler) { LocalEventStatus |= ACPI_EVENT_FLAG_HAS_HANDLER; } /* Fixed event currently enabled? */ Status = AcpiReadBitRegister ( AcpiGbl_FixedEventInfo[Event].EnableRegisterId, &InByte); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (InByte) { LocalEventStatus |= (ACPI_EVENT_FLAG_ENABLED | ACPI_EVENT_FLAG_ENABLE_SET); } /* Fixed event currently active? */ Status = AcpiReadBitRegister ( AcpiGbl_FixedEventInfo[Event].StatusRegisterId, &InByte); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (InByte) { LocalEventStatus |= ACPI_EVENT_FLAG_STATUS_SET; } (*EventStatus) = LocalEventStatus; return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiGetEventStatus) #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evevent.c0000775000175000017500000002305614773714132022360 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evevent - Fixed Event handling and dispatch * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evevent") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /* Local prototypes */ static ACPI_STATUS AcpiEvFixedEventInitialize ( void); static UINT32 AcpiEvFixedEventDispatch ( UINT32 Event); /******************************************************************************* * * FUNCTION: AcpiEvInitializeEvents * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize global data structures for ACPI events (Fixed, GPE) * ******************************************************************************/ ACPI_STATUS AcpiEvInitializeEvents ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvInitializeEvents); /* If Hardware Reduced flag is set, there are no fixed events */ if (AcpiGbl_ReducedHardware) { return_ACPI_STATUS (AE_OK); } /* * Initialize the Fixed and General Purpose Events. This is done prior to * enabling SCIs to prevent interrupts from occurring before the handlers * are installed. */ Status = AcpiEvFixedEventInitialize (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Unable to initialize fixed events")); return_ACPI_STATUS (Status); } Status = AcpiEvGpeInitialize (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Unable to initialize general purpose events")); return_ACPI_STATUS (Status); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvInstallXruptHandlers * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Install interrupt handlers for the SCI and Global Lock * ******************************************************************************/ ACPI_STATUS AcpiEvInstallXruptHandlers ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvInstallXruptHandlers); /* If Hardware Reduced flag is set, there is no ACPI h/w */ if (AcpiGbl_ReducedHardware) { return_ACPI_STATUS (AE_OK); } /* Install the SCI handler */ Status = AcpiEvInstallSciHandler (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Unable to install System Control Interrupt handler")); return_ACPI_STATUS (Status); } /* Install the handler for the Global Lock */ Status = AcpiEvInitGlobalLockHandler (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Unable to initialize Global Lock handler")); return_ACPI_STATUS (Status); } AcpiGbl_EventsInitialized = TRUE; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvFixedEventInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Install the fixed event handlers and disable all fixed events. * ******************************************************************************/ static ACPI_STATUS AcpiEvFixedEventInitialize ( void) { UINT32 i; ACPI_STATUS Status; /* * Initialize the structure that keeps track of fixed event handlers and * disable all of the fixed events. */ for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { AcpiGbl_FixedEventHandlers[i].Handler = NULL; AcpiGbl_FixedEventHandlers[i].Context = NULL; /* Disable the fixed event */ if (AcpiGbl_FixedEventInfo[i].EnableRegisterId != 0xFF) { Status = AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo[i].EnableRegisterId, ACPI_DISABLE_EVENT); if (ACPI_FAILURE (Status)) { return (Status); } } } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvFixedEventDetect * * PARAMETERS: None * * RETURN: INTERRUPT_HANDLED or INTERRUPT_NOT_HANDLED * * DESCRIPTION: Checks the PM status register for active fixed events * ******************************************************************************/ UINT32 AcpiEvFixedEventDetect ( void) { UINT32 IntStatus = ACPI_INTERRUPT_NOT_HANDLED; UINT32 FixedStatus; UINT32 FixedEnable; UINT32 i; ACPI_STATUS Status; ACPI_FUNCTION_NAME (EvFixedEventDetect); /* * Read the fixed feature status and enable registers, as all the cases * depend on their values. Ignore errors here. */ Status = AcpiHwRegisterRead (ACPI_REGISTER_PM1_STATUS, &FixedStatus); Status |= AcpiHwRegisterRead (ACPI_REGISTER_PM1_ENABLE, &FixedEnable); if (ACPI_FAILURE (Status)) { return (IntStatus); } ACPI_DEBUG_PRINT ((ACPI_DB_INTERRUPTS, "Fixed Event Block: Enable %08X Status %08X\n", FixedEnable, FixedStatus)); /* * Check for all possible Fixed Events and dispatch those that are active */ for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { /* Both the status and enable bits must be on for this event */ if ((FixedStatus & AcpiGbl_FixedEventInfo[i].StatusBitMask) && (FixedEnable & AcpiGbl_FixedEventInfo[i].EnableBitMask)) { /* * Found an active (signalled) event. Invoke global event * handler if present. */ AcpiFixedEventCount[i]++; if (AcpiGbl_GlobalEventHandler) { AcpiGbl_GlobalEventHandler (ACPI_EVENT_TYPE_FIXED, NULL, i, AcpiGbl_GlobalEventHandlerContext); } IntStatus |= AcpiEvFixedEventDispatch (i); } } return (IntStatus); } /******************************************************************************* * * FUNCTION: AcpiEvFixedEventDispatch * * PARAMETERS: Event - Event type * * RETURN: INTERRUPT_HANDLED or INTERRUPT_NOT_HANDLED * * DESCRIPTION: Clears the status bit for the requested event, calls the * handler that previously registered for the event. * NOTE: If there is no handler for the event, the event is * disabled to prevent further interrupts. * ******************************************************************************/ static UINT32 AcpiEvFixedEventDispatch ( UINT32 Event) { ACPI_FUNCTION_ENTRY (); /* Clear the status bit */ (void) AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo[Event].StatusRegisterId, ACPI_CLEAR_STATUS); /* * Make sure that a handler exists. If not, report an error * and disable the event to prevent further interrupts. */ if (!AcpiGbl_FixedEventHandlers[Event].Handler) { (void) AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo[Event].EnableRegisterId, ACPI_DISABLE_EVENT); ACPI_ERROR ((AE_INFO, "No installed handler for fixed event - %s (%u), disabling", AcpiUtGetEventName (Event), Event)); return (ACPI_INTERRUPT_NOT_HANDLED); } /* Invoke the Fixed Event handler */ return ((AcpiGbl_FixedEventHandlers[Event].Handler)( AcpiGbl_FixedEventHandlers[Event].Context)); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evsci.c0000775000175000017500000002003414773714132022006 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: evsci - System Control Interrupt configuration and * legacy to ACPI mode state transition functions * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evsci") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /* Local prototypes */ static UINT32 ACPI_SYSTEM_XFACE AcpiEvSciXruptHandler ( void *Context); /******************************************************************************* * * FUNCTION: AcpiEvSciDispatch * * PARAMETERS: None * * RETURN: Status code indicates whether interrupt was handled. * * DESCRIPTION: Dispatch the SCI to all host-installed SCI handlers. * ******************************************************************************/ UINT32 AcpiEvSciDispatch ( void) { ACPI_SCI_HANDLER_INFO *SciHandler; ACPI_CPU_FLAGS Flags; UINT32 IntStatus = ACPI_INTERRUPT_NOT_HANDLED; ACPI_FUNCTION_NAME (EvSciDispatch); /* Are there any host-installed SCI handlers? */ if (!AcpiGbl_SciHandlerList) { return (IntStatus); } Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Invoke all host-installed SCI handlers */ SciHandler = AcpiGbl_SciHandlerList; while (SciHandler) { /* Invoke the installed handler (at interrupt level) */ IntStatus |= SciHandler->Address ( SciHandler->Context); SciHandler = SciHandler->Next; } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return (IntStatus); } /******************************************************************************* * * FUNCTION: AcpiEvSciXruptHandler * * PARAMETERS: Context - Calling Context * * RETURN: Status code indicates whether interrupt was handled. * * DESCRIPTION: Interrupt handler that will figure out what function or * control method to call to deal with a SCI. * ******************************************************************************/ static UINT32 ACPI_SYSTEM_XFACE AcpiEvSciXruptHandler ( void *Context) { ACPI_GPE_XRUPT_INFO *GpeXruptList = Context; UINT32 InterruptHandled = ACPI_INTERRUPT_NOT_HANDLED; ACPI_FUNCTION_TRACE (EvSciXruptHandler); /* * We are guaranteed by the ACPICA initialization/shutdown code that * if this interrupt handler is installed, ACPI is enabled. */ /* * Fixed Events: * Check for and dispatch any Fixed Events that have occurred */ InterruptHandled |= AcpiEvFixedEventDetect (); /* * General Purpose Events: * Check for and dispatch any GPEs that have occurred */ InterruptHandled |= AcpiEvGpeDetect (GpeXruptList); /* Invoke all host-installed SCI handlers */ InterruptHandled |= AcpiEvSciDispatch (); AcpiSciCount++; return_UINT32 (InterruptHandled); } /******************************************************************************* * * FUNCTION: AcpiEvGpeXruptHandler * * PARAMETERS: Context - Calling Context * * RETURN: Status code indicates whether interrupt was handled. * * DESCRIPTION: Handler for GPE Block Device interrupts * ******************************************************************************/ UINT32 ACPI_SYSTEM_XFACE AcpiEvGpeXruptHandler ( void *Context) { ACPI_GPE_XRUPT_INFO *GpeXruptList = Context; UINT32 InterruptHandled = ACPI_INTERRUPT_NOT_HANDLED; ACPI_FUNCTION_TRACE (EvGpeXruptHandler); /* * We are guaranteed by the ACPICA initialization/shutdown code that * if this interrupt handler is installed, ACPI is enabled. */ /* GPEs: Check for and dispatch any GPEs that have occurred */ InterruptHandled |= AcpiEvGpeDetect (GpeXruptList); return_UINT32 (InterruptHandled); } /****************************************************************************** * * FUNCTION: AcpiEvInstallSciHandler * * PARAMETERS: none * * RETURN: Status * * DESCRIPTION: Installs SCI handler. * ******************************************************************************/ UINT32 AcpiEvInstallSciHandler ( void) { UINT32 Status = AE_OK; ACPI_FUNCTION_TRACE (EvInstallSciHandler); Status = AcpiOsInstallInterruptHandler ((UINT32) AcpiGbl_FADT.SciInterrupt, AcpiEvSciXruptHandler, AcpiGbl_GpeXruptListHead); return_ACPI_STATUS (Status); } /****************************************************************************** * * FUNCTION: AcpiEvRemoveAllSciHandlers * * PARAMETERS: none * * RETURN: AE_OK if handler uninstalled, AE_ERROR if handler was not * installed to begin with * * DESCRIPTION: Remove the SCI interrupt handler. No further SCIs will be * taken. Remove all host-installed SCI handlers. * * Note: It doesn't seem important to disable all events or set the event * enable registers to their original values. The OS should disable * the SCI interrupt level when the handler is removed, so no more * events will come in. * ******************************************************************************/ ACPI_STATUS AcpiEvRemoveAllSciHandlers ( void) { ACPI_SCI_HANDLER_INFO *SciHandler; ACPI_CPU_FLAGS Flags; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvRemoveAllSciHandlers); /* Just let the OS remove the handler and disable the level */ Status = AcpiOsRemoveInterruptHandler ((UINT32) AcpiGbl_FADT.SciInterrupt, AcpiEvSciXruptHandler); if (!AcpiGbl_SciHandlerList) { return (Status); } Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Free all host-installed SCI handlers */ while (AcpiGbl_SciHandlerList) { SciHandler = AcpiGbl_SciHandlerList; AcpiGbl_SciHandlerList = SciHandler->Next; ACPI_FREE (SciHandler); } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evgpeutil.c0000775000175000017500000002663614773714132022717 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evgpeutil - GPE utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evgpeutil") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /******************************************************************************* * * FUNCTION: AcpiEvWalkGpeList * * PARAMETERS: GpeWalkCallback - Routine called for each GPE block * Context - Value passed to callback * * RETURN: Status * * DESCRIPTION: Walk the GPE lists. * ******************************************************************************/ ACPI_STATUS AcpiEvWalkGpeList ( ACPI_GPE_CALLBACK GpeWalkCallback, void *Context) { ACPI_GPE_BLOCK_INFO *GpeBlock; ACPI_GPE_XRUPT_INFO *GpeXruptInfo; ACPI_STATUS Status = AE_OK; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (EvWalkGpeList); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Walk the interrupt level descriptor list */ GpeXruptInfo = AcpiGbl_GpeXruptListHead; while (GpeXruptInfo) { /* Walk all Gpe Blocks attached to this interrupt level */ GpeBlock = GpeXruptInfo->GpeBlockListHead; while (GpeBlock) { /* One callback per GPE block */ Status = GpeWalkCallback (GpeXruptInfo, GpeBlock, Context); if (ACPI_FAILURE (Status)) { if (Status == AE_CTRL_END) /* Callback abort */ { Status = AE_OK; } goto UnlockAndExit; } GpeBlock = GpeBlock->Next; } GpeXruptInfo = GpeXruptInfo->Next; } UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvGetGpeDevice * * PARAMETERS: GPE_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Matches the input GPE index (0-CurrentGpeCount) with a GPE * block device. NULL if the GPE is one of the FADT-defined GPEs. * ******************************************************************************/ ACPI_STATUS AcpiEvGetGpeDevice ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context) { ACPI_GPE_DEVICE_INFO *Info = Context; /* Increment Index by the number of GPEs in this block */ Info->NextBlockBaseIndex += GpeBlock->GpeCount; if (Info->Index < Info->NextBlockBaseIndex) { /* * The GPE index is within this block, get the node. Leave the node * NULL for the FADT-defined GPEs */ if ((GpeBlock->Node)->Type == ACPI_TYPE_DEVICE) { Info->GpeDevice = GpeBlock->Node; } Info->Status = AE_OK; return (AE_CTRL_END); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvGetGpeXruptBlock * * PARAMETERS: InterruptNumber - Interrupt for a GPE block * GpeXruptBlock - Where the block is returned * * RETURN: Status * * DESCRIPTION: Get or Create a GPE interrupt block. There is one interrupt * block per unique interrupt level used for GPEs. Should be * called only when the GPE lists are semaphore locked and not * subject to change. * ******************************************************************************/ ACPI_STATUS AcpiEvGetGpeXruptBlock ( UINT32 InterruptNumber, ACPI_GPE_XRUPT_INFO **GpeXruptBlock) { ACPI_GPE_XRUPT_INFO *NextGpeXrupt; ACPI_GPE_XRUPT_INFO *GpeXrupt; ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (EvGetGpeXruptBlock); /* No need for lock since we are not changing any list elements here */ NextGpeXrupt = AcpiGbl_GpeXruptListHead; while (NextGpeXrupt) { if (NextGpeXrupt->InterruptNumber == InterruptNumber) { *GpeXruptBlock = NextGpeXrupt; return_ACPI_STATUS (AE_OK); } NextGpeXrupt = NextGpeXrupt->Next; } /* Not found, must allocate a new xrupt descriptor */ GpeXrupt = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_GPE_XRUPT_INFO)); if (!GpeXrupt) { return_ACPI_STATUS (AE_NO_MEMORY); } GpeXrupt->InterruptNumber = InterruptNumber; /* Install new interrupt descriptor with spin lock */ Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); if (AcpiGbl_GpeXruptListHead) { NextGpeXrupt = AcpiGbl_GpeXruptListHead; while (NextGpeXrupt->Next) { NextGpeXrupt = NextGpeXrupt->Next; } NextGpeXrupt->Next = GpeXrupt; GpeXrupt->Previous = NextGpeXrupt; } else { AcpiGbl_GpeXruptListHead = GpeXrupt; } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); /* Install new interrupt handler if not SCI_INT */ if (InterruptNumber != AcpiGbl_FADT.SciInterrupt) { Status = AcpiOsInstallInterruptHandler (InterruptNumber, AcpiEvGpeXruptHandler, GpeXrupt); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not install GPE interrupt handler at level 0x%X", InterruptNumber)); return_ACPI_STATUS (Status); } } *GpeXruptBlock = GpeXrupt; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvDeleteGpeXrupt * * PARAMETERS: GpeXrupt - A GPE interrupt info block * * RETURN: Status * * DESCRIPTION: Remove and free a GpeXrupt block. Remove an associated * interrupt handler if not the SCI interrupt. * ******************************************************************************/ ACPI_STATUS AcpiEvDeleteGpeXrupt ( ACPI_GPE_XRUPT_INFO *GpeXrupt) { ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (EvDeleteGpeXrupt); /* We never want to remove the SCI interrupt handler */ if (GpeXrupt->InterruptNumber == AcpiGbl_FADT.SciInterrupt) { GpeXrupt->GpeBlockListHead = NULL; return_ACPI_STATUS (AE_OK); } /* Disable this interrupt */ Status = AcpiOsRemoveInterruptHandler ( GpeXrupt->InterruptNumber, AcpiEvGpeXruptHandler); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Unlink the interrupt block with lock */ Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); if (GpeXrupt->Previous) { GpeXrupt->Previous->Next = GpeXrupt->Next; } else { /* No previous, update list head */ AcpiGbl_GpeXruptListHead = GpeXrupt->Next; } if (GpeXrupt->Next) { GpeXrupt->Next->Previous = GpeXrupt->Previous; } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); /* Free the block */ ACPI_FREE (GpeXrupt); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvDeleteGpeHandlers * * PARAMETERS: GpeXruptInfo - GPE Interrupt info * GpeBlock - Gpe Block info * * RETURN: Status * * DESCRIPTION: Delete all Handler objects found in the GPE data structs. * Used only prior to termination. * ******************************************************************************/ ACPI_STATUS AcpiEvDeleteGpeHandlers ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context) { ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_GPE_NOTIFY_INFO *Notify; ACPI_GPE_NOTIFY_INFO *Next; UINT32 i; UINT32 j; ACPI_FUNCTION_TRACE (EvDeleteGpeHandlers); /* Examine each GPE Register within the block */ for (i = 0; i < GpeBlock->RegisterCount; i++) { /* Now look at the individual GPEs in this byte register */ for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { GpeEventInfo = &GpeBlock->EventInfo[((ACPI_SIZE) i * ACPI_GPE_REGISTER_WIDTH) + j]; if ((ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_HANDLER) || (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_RAW_HANDLER)) { /* Delete an installed handler block */ ACPI_FREE (GpeEventInfo->Dispatch.Handler); GpeEventInfo->Dispatch.Handler = NULL; GpeEventInfo->Flags &= ~ACPI_GPE_DISPATCH_MASK; } else if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_NOTIFY) { /* Delete the implicit notification device list */ Notify = GpeEventInfo->Dispatch.NotifyList; while (Notify) { Next = Notify->Next; ACPI_FREE (Notify); Notify = Next; } GpeEventInfo->Dispatch.NotifyList = NULL; GpeEventInfo->Flags &= ~ACPI_GPE_DISPATCH_MASK; } } } return_ACPI_STATUS (AE_OK); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evxfgpe.c0000775000175000017500000010262314773714132022346 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evxfgpe - External Interfaces for General Purpose Events (GPEs) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acnamesp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evxfgpe") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /******************************************************************************* * * FUNCTION: AcpiUpdateAllGpes * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Complete GPE initialization and enable all GPEs that have * associated _Lxx or _Exx methods and are not pointed to by any * device _PRW methods (this indicates that these GPEs are * generally intended for system or device wakeup. Such GPEs * have to be enabled directly when the devices whose _PRW * methods point to them are set up for wakeup signaling.) * * NOTE: Should be called after any GPEs are added to the system. Primarily, * after the system _PRW methods have been run, but also after a GPE Block * Device has been added or if any new GPE methods have been added via a * dynamic table load. * ******************************************************************************/ ACPI_STATUS AcpiUpdateAllGpes ( void) { ACPI_STATUS Status; BOOLEAN IsPollingNeeded = FALSE; ACPI_FUNCTION_TRACE (AcpiUpdateAllGpes); Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (AcpiGbl_AllGpesInitialized) { goto UnlockAndExit; } Status = AcpiEvWalkGpeList (AcpiEvInitializeGpeBlock, &IsPollingNeeded); if (ACPI_SUCCESS (Status)) { AcpiGbl_AllGpesInitialized = TRUE; } UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); if (IsPollingNeeded && AcpiGbl_AllGpesInitialized) { /* Poll GPEs to handle already triggered events */ AcpiEvGpeDetect (AcpiGbl_GpeXruptListHead); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiUpdateAllGpes) /******************************************************************************* * * FUNCTION: AcpiEnableGpe * * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * * RETURN: Status * * DESCRIPTION: Add a reference to a GPE. On the first reference, the GPE is * hardware-enabled. * ******************************************************************************/ ACPI_STATUS AcpiEnableGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber) { ACPI_STATUS Status = AE_BAD_PARAMETER; ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiEnableGpe); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* * Ensure that we have a valid GPE number and that there is some way * of handling the GPE (handler or a GPE method). In other words, we * won't allow a valid GPE to be enabled if there is no way to handle it. */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (GpeEventInfo) { if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) != ACPI_GPE_DISPATCH_NONE) { Status = AcpiEvAddGpeReference (GpeEventInfo, TRUE); if (ACPI_SUCCESS (Status) && ACPI_GPE_IS_POLLING_NEEDED (GpeEventInfo)) { /* Poll edge-triggered GPEs to handle existing events */ AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); (void) AcpiEvDetectGpe ( GpeDevice, GpeEventInfo, GpeNumber); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); } } else { Status = AE_NO_HANDLER; } } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiEnableGpe) /******************************************************************************* * * FUNCTION: AcpiDisableGpe * * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * * RETURN: Status * * DESCRIPTION: Remove a reference to a GPE. When the last reference is * removed, only then is the GPE disabled (for runtime GPEs), or * the GPE mask bit disabled (for wake GPEs) * ******************************************************************************/ ACPI_STATUS AcpiDisableGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber) { ACPI_STATUS Status = AE_BAD_PARAMETER; ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiDisableGpe); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (GpeEventInfo) { Status = AcpiEvRemoveGpeReference (GpeEventInfo); } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiDisableGpe) /******************************************************************************* * * FUNCTION: AcpiSetGpe * * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * Action - ACPI_GPE_ENABLE or ACPI_GPE_DISABLE * * RETURN: Status * * DESCRIPTION: Enable or disable an individual GPE. This function bypasses * the reference count mechanism used in the AcpiEnableGpe(), * AcpiDisableGpe() interfaces. * This API is typically used by the GPE raw handler mode driver * to switch between the polling mode and the interrupt mode after * the driver has enabled the GPE. * The APIs should be invoked in this order: * AcpiEnableGpe() <- Ensure the reference count > 0 * AcpiSetGpe(ACPI_GPE_DISABLE) <- Enter polling mode * AcpiSetGpe(ACPI_GPE_ENABLE) <- Leave polling mode * AcpiDisableGpe() <- Decrease the reference count * * Note: If a GPE is shared by 2 silicon components, then both the drivers * should support GPE polling mode or disabling the GPE for long period * for one driver may break the other. So use it with care since all * firmware _Lxx/_Exx handlers currently rely on the GPE interrupt mode. * ******************************************************************************/ ACPI_STATUS AcpiSetGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action) { ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiSetGpe); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Perform the action */ switch (Action) { case ACPI_GPE_ENABLE: Status = AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_ENABLE); GpeEventInfo->DisableForDispatch = FALSE; break; case ACPI_GPE_DISABLE: Status = AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_DISABLE); GpeEventInfo->DisableForDispatch = TRUE; break; default: Status = AE_BAD_PARAMETER; break; } UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiSetGpe) /******************************************************************************* * * FUNCTION: AcpiMaskGpe * * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * IsMasked - Whether the GPE is masked or not * * RETURN: Status * * DESCRIPTION: Unconditionally mask/unmask the an individual GPE, ex., to * prevent a GPE flooding. * ******************************************************************************/ ACPI_STATUS AcpiMaskGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, BOOLEAN IsMasked) { ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiMaskGpe); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } Status = AcpiEvMaskGpe (GpeEventInfo, IsMasked); UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiMaskGpe) /******************************************************************************* * * FUNCTION: AcpiMarkGpeForWake * * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * * RETURN: Status * * DESCRIPTION: Mark a GPE as having the ability to wake the system. Simply * sets the ACPI_GPE_CAN_WAKE flag. * * Some potential callers of AcpiSetupGpeForWake may know in advance that * there won't be any notify handlers installed for device wake notifications * from the given GPE (one example is a button GPE in Linux). For these cases, * AcpiMarkGpeForWake should be used instead of AcpiSetupGpeForWake. * This will set the ACPI_GPE_CAN_WAKE flag for the GPE without trying to * setup implicit wake notification for it (since there's no handler method). * ******************************************************************************/ ACPI_STATUS AcpiMarkGpeForWake ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber) { ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_STATUS Status = AE_BAD_PARAMETER; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiMarkGpeForWake); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (GpeEventInfo) { /* Mark the GPE as a possible wake event */ GpeEventInfo->Flags |= ACPI_GPE_CAN_WAKE; Status = AE_OK; } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiMarkGpeForWake) /******************************************************************************* * * FUNCTION: AcpiSetupGpeForWake * * PARAMETERS: WakeDevice - Device associated with the GPE (via _PRW) * GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * * RETURN: Status * * DESCRIPTION: Mark a GPE as having the ability to wake the system. This * interface is intended to be used as the host executes the * _PRW methods (Power Resources for Wake) in the system tables. * Each _PRW appears under a Device Object (The WakeDevice), and * contains the info for the wake GPE associated with the * WakeDevice. * ******************************************************************************/ ACPI_STATUS AcpiSetupGpeForWake ( ACPI_HANDLE WakeDevice, ACPI_HANDLE GpeDevice, UINT32 GpeNumber) { ACPI_STATUS Status; ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_NAMESPACE_NODE *DeviceNode; ACPI_GPE_NOTIFY_INFO *Notify; ACPI_GPE_NOTIFY_INFO *NewNotify; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiSetupGpeForWake); /* Parameter Validation */ if (!WakeDevice) { /* * By forcing WakeDevice to be valid, we automatically enable the * implicit notify feature on all hosts. */ return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Handle root object case */ if (WakeDevice == ACPI_ROOT_OBJECT) { DeviceNode = AcpiGbl_RootNode; } else { DeviceNode = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, WakeDevice); } /* Validate WakeDevice is of type Device */ if (DeviceNode->Type != ACPI_TYPE_DEVICE) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * Allocate a new notify object up front, in case it is needed. * Memory allocation while holding a spinlock is a big no-no * on some hosts. */ NewNotify = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_GPE_NOTIFY_INFO)); if (!NewNotify) { return_ACPI_STATUS (AE_NO_MEMORY); } Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* * If there is no method or handler for this GPE, then the * WakeDevice will be notified whenever this GPE fires. This is * known as an "implicit notify". Note: The GPE is assumed to be * level-triggered (for windows compatibility). */ if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_NONE) { /* * This is the first device for implicit notify on this GPE. * Just set the flags here, and enter the NOTIFY block below. */ GpeEventInfo->Flags = (ACPI_GPE_DISPATCH_NOTIFY | ACPI_GPE_LEVEL_TRIGGERED); } else if (GpeEventInfo->Flags & ACPI_GPE_AUTO_ENABLED) { /* * A reference to this GPE has been added during the GPE block * initialization, so drop it now to prevent the GPE from being * permanently enabled and clear its ACPI_GPE_AUTO_ENABLED flag. */ (void) AcpiEvRemoveGpeReference (GpeEventInfo); GpeEventInfo->Flags &= ~ACPI_GPE_AUTO_ENABLED; } /* * If we already have an implicit notify on this GPE, add * this device to the notify list. */ if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_NOTIFY) { /* Ensure that the device is not already in the list */ Notify = GpeEventInfo->Dispatch.NotifyList; while (Notify) { if (Notify->DeviceNode == DeviceNode) { Status = AE_ALREADY_EXISTS; goto UnlockAndExit; } Notify = Notify->Next; } /* Add this device to the notify list for this GPE */ NewNotify->DeviceNode = DeviceNode; NewNotify->Next = GpeEventInfo->Dispatch.NotifyList; GpeEventInfo->Dispatch.NotifyList = NewNotify; NewNotify = NULL; } /* Mark the GPE as a possible wake event */ GpeEventInfo->Flags |= ACPI_GPE_CAN_WAKE; Status = AE_OK; UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); /* Delete the notify object if it was not used above */ if (NewNotify) { ACPI_FREE (NewNotify); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiSetupGpeForWake) /******************************************************************************* * * FUNCTION: AcpiSetGpeWakeMask * * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * Action - Enable or Disable * * RETURN: Status * * DESCRIPTION: Set or clear the GPE's wakeup enable mask bit. The GPE must * already be marked as a WAKE GPE. * ******************************************************************************/ ACPI_STATUS AcpiSetGpeWakeMask ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action) { ACPI_STATUS Status = AE_OK; ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; ACPI_CPU_FLAGS Flags; UINT32 RegisterBit; ACPI_FUNCTION_TRACE (AcpiSetGpeWakeMask); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* * Ensure that we have a valid GPE number and that this GPE is in * fact a wake GPE */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } if (!(GpeEventInfo->Flags & ACPI_GPE_CAN_WAKE)) { Status = AE_TYPE; goto UnlockAndExit; } GpeRegisterInfo = GpeEventInfo->RegisterInfo; if (!GpeRegisterInfo) { Status = AE_NOT_EXIST; goto UnlockAndExit; } RegisterBit = AcpiHwGetGpeRegisterBit (GpeEventInfo); /* Perform the action */ switch (Action) { case ACPI_GPE_ENABLE: ACPI_SET_BIT (GpeRegisterInfo->EnableForWake, (UINT8) RegisterBit); break; case ACPI_GPE_DISABLE: ACPI_CLEAR_BIT (GpeRegisterInfo->EnableForWake, (UINT8) RegisterBit); break; default: ACPI_ERROR ((AE_INFO, "%u, Invalid action", Action)); Status = AE_BAD_PARAMETER; break; } UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiSetGpeWakeMask) /******************************************************************************* * * FUNCTION: AcpiClearGpe * * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * * RETURN: Status * * DESCRIPTION: Clear an ACPI event (general purpose) * ******************************************************************************/ ACPI_STATUS AcpiClearGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber) { ACPI_STATUS Status = AE_OK; ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiClearGpe); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } Status = AcpiHwClearGpe (GpeEventInfo); UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiClearGpe) /******************************************************************************* * * FUNCTION: AcpiGetGpeStatus * * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * EventStatus - Where the current status of the event * will be returned * * RETURN: Status * * DESCRIPTION: Get the current status of a GPE (signalled/not_signalled) * ******************************************************************************/ ACPI_STATUS AcpiGetGpeStatus ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_EVENT_STATUS *EventStatus) { ACPI_STATUS Status = AE_OK; ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiGetGpeStatus); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Obtain status on the requested GPE number */ Status = AcpiHwGetGpeStatus (GpeEventInfo, EventStatus); UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetGpeStatus) /******************************************************************************* * * FUNCTION: AcpiDispatchGpe * * PARAMETERS: GpeDevice - Parent GPE Device. NULL for GPE0/GPE1 * GpeNumber - GPE level within the GPE block * * RETURN: INTERRUPT_HANDLED or INTERRUPT_NOT_HANDLED * * DESCRIPTION: Detect and dispatch a General Purpose Event to either a function * (e.g. EC) or method (e.g. _Lxx/_Exx) handler. * ******************************************************************************/ UINT32 AcpiDispatchGpe( ACPI_HANDLE GpeDevice, UINT32 GpeNumber) { ACPI_FUNCTION_TRACE(acpi_dispatch_gpe); return (AcpiEvDetectGpe (GpeDevice, NULL, GpeNumber)); } ACPI_EXPORT_SYMBOL (AcpiDispatchGpe) /******************************************************************************* * * FUNCTION: AcpiFinishGpe * * PARAMETERS: GpeDevice - Namespace node for the GPE Block * (NULL for FADT defined GPEs) * GpeNumber - GPE level within the GPE block * * RETURN: Status * * DESCRIPTION: Clear and conditionally re-enable a GPE. This completes the GPE * processing. Intended for use by asynchronous host-installed * GPE handlers. The GPE is only re-enabled if the EnableForRun bit * is set in the GPE info. * ******************************************************************************/ ACPI_STATUS AcpiFinishGpe ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber) { ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_STATUS Status; ACPI_CPU_FLAGS Flags; ACPI_FUNCTION_TRACE (AcpiFinishGpe); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Ensure that we have a valid GPE number */ GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } Status = AcpiEvFinishGpe (GpeEventInfo); UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiFinishGpe) /****************************************************************************** * * FUNCTION: AcpiDisableAllGpes * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Disable and clear all GPEs in all GPE blocks * ******************************************************************************/ ACPI_STATUS AcpiDisableAllGpes ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiDisableAllGpes); Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiHwDisableAllGpes (); (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiDisableAllGpes) /****************************************************************************** * * FUNCTION: AcpiEnableAllRuntimeGpes * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Enable all "runtime" GPEs, in all GPE blocks * ******************************************************************************/ ACPI_STATUS AcpiEnableAllRuntimeGpes ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiEnableAllRuntimeGpes); Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiHwEnableAllRuntimeGpes (); (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiEnableAllRuntimeGpes) /****************************************************************************** * * FUNCTION: AcpiEnableAllWakeupGpes * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Enable all "wakeup" GPEs and disable all of the other GPEs, in * all GPE blocks. * ******************************************************************************/ ACPI_STATUS AcpiEnableAllWakeupGpes ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiEnableAllWakeupGpes); Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiHwEnableAllWakeupGpes (); (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiEnableAllWakeupGpes) /****************************************************************************** * * FUNCTION: AcpiAnyGpeStatusSet * * PARAMETERS: None * * RETURN: Whether or not the status bit is set for any GPE * * DESCRIPTION: Check the status bits of all enabled GPEs and return TRUE if any * of them is set or FALSE otherwise. * ******************************************************************************/ UINT32 AcpiAnyGpeStatusSet ( void) { ACPI_STATUS Status; UINT8 Ret; ACPI_FUNCTION_TRACE (AcpiAnyGpeStatusSet); Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return (FALSE); } Ret = AcpiHwCheckAllGpes (); (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return (Ret); } ACPI_EXPORT_SYMBOL(AcpiAnyGpeStatusSet) /******************************************************************************* * * FUNCTION: AcpiInstallGpeBlock * * PARAMETERS: GpeDevice - Handle to the parent GPE Block Device * GpeBlockAddress - Address and SpaceID * RegisterCount - Number of GPE register pairs in the block * InterruptNumber - H/W interrupt for the block * * RETURN: Status * * DESCRIPTION: Create and Install a block of GPE registers. The GPEs are not * enabled here. * ******************************************************************************/ ACPI_STATUS AcpiInstallGpeBlock ( ACPI_HANDLE GpeDevice, ACPI_GENERIC_ADDRESS *GpeBlockAddress, UINT32 RegisterCount, UINT32 InterruptNumber) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node; ACPI_GPE_BLOCK_INFO *GpeBlock; ACPI_FUNCTION_TRACE (AcpiInstallGpeBlock); if ((!GpeDevice) || (!GpeBlockAddress) || (!RegisterCount)) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Node = AcpiNsValidateHandle (GpeDevice); if (!Node) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Validate the parent device */ if (Node->Type != ACPI_TYPE_DEVICE) { Status = AE_TYPE; goto UnlockAndExit; } if (Node->Object) { Status = AE_ALREADY_EXISTS; goto UnlockAndExit; } /* * For user-installed GPE Block Devices, the GpeBlockBaseNumber * is always zero */ Status = AcpiEvCreateGpeBlock (Node, GpeBlockAddress->Address, GpeBlockAddress->SpaceId, RegisterCount, 0, InterruptNumber, &GpeBlock); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } /* Install block in the DeviceObject attached to the node */ ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { /* * No object, create a new one (Device nodes do not always have * an attached object) */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_DEVICE); if (!ObjDesc) { Status = AE_NO_MEMORY; goto UnlockAndExit; } Status = AcpiNsAttachObject (Node, ObjDesc, ACPI_TYPE_DEVICE); /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } } /* Now install the GPE block in the DeviceObject */ ObjDesc->Device.GpeBlock = GpeBlock; UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallGpeBlock) /******************************************************************************* * * FUNCTION: AcpiRemoveGpeBlock * * PARAMETERS: GpeDevice - Handle to the parent GPE Block Device * * RETURN: Status * * DESCRIPTION: Remove a previously installed block of GPE registers * ******************************************************************************/ ACPI_STATUS AcpiRemoveGpeBlock ( ACPI_HANDLE GpeDevice) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (AcpiRemoveGpeBlock); if (!GpeDevice) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Node = AcpiNsValidateHandle (GpeDevice); if (!Node) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Validate the parent device */ if (Node->Type != ACPI_TYPE_DEVICE) { Status = AE_TYPE; goto UnlockAndExit; } /* Get the DeviceObject attached to the node */ ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc || !ObjDesc->Device.GpeBlock) { return_ACPI_STATUS (AE_NULL_OBJECT); } /* Delete the GPE block (but not the DeviceObject) */ Status = AcpiEvDeleteGpeBlock (ObjDesc->Device.GpeBlock); if (ACPI_SUCCESS (Status)) { ObjDesc->Device.GpeBlock = NULL; } UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiRemoveGpeBlock) /******************************************************************************* * * FUNCTION: AcpiGetGpeDevice * * PARAMETERS: Index - System GPE index (0-CurrentGpeCount) * GpeDevice - Where the parent GPE Device is returned * * RETURN: Status * * DESCRIPTION: Obtain the GPE device associated with the input index. A NULL * gpe device indicates that the gpe number is contained in one of * the FADT-defined gpe blocks. Otherwise, the GPE block device. * ******************************************************************************/ ACPI_STATUS AcpiGetGpeDevice ( UINT32 Index, ACPI_HANDLE *GpeDevice) { ACPI_GPE_DEVICE_INFO Info; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiGetGpeDevice); if (!GpeDevice) { return_ACPI_STATUS (AE_BAD_PARAMETER); } if (Index >= AcpiCurrentGpeCount) { return_ACPI_STATUS (AE_NOT_EXIST); } /* Setup and walk the GPE list */ Info.Index = Index; Info.Status = AE_NOT_EXIST; Info.GpeDevice = NULL; Info.NextBlockBaseIndex = 0; Status = AcpiEvWalkGpeList (AcpiEvGetGpeDevice, &Info); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } *GpeDevice = ACPI_CAST_PTR (ACPI_HANDLE, Info.GpeDevice); return_ACPI_STATUS (Info.Status); } ACPI_EXPORT_SYMBOL (AcpiGetGpeDevice) #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evmisc.c0000775000175000017500000002301414773714132022164 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evmisc - Miscellaneous event manager support functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acnamesp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evmisc") /* Local prototypes */ static void ACPI_SYSTEM_XFACE AcpiEvNotifyDispatch ( void *Context); /******************************************************************************* * * FUNCTION: AcpiEvIsNotifyObject * * PARAMETERS: Node - Node to check * * RETURN: TRUE if notifies allowed on this object * * DESCRIPTION: Check type of node for a object that supports notifies. * * TBD: This could be replaced by a flag bit in the node. * ******************************************************************************/ BOOLEAN AcpiEvIsNotifyObject ( ACPI_NAMESPACE_NODE *Node) { switch (Node->Type) { case ACPI_TYPE_DEVICE: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: /* * These are the ONLY objects that can receive ACPI notifications */ return (TRUE); default: return (FALSE); } } /******************************************************************************* * * FUNCTION: AcpiEvQueueNotifyRequest * * PARAMETERS: Node - NS node for the notified object * NotifyValue - Value from the Notify() request * * RETURN: Status * * DESCRIPTION: Dispatch a device notification event to a previously * installed handler. * ******************************************************************************/ ACPI_STATUS AcpiEvQueueNotifyRequest ( ACPI_NAMESPACE_NODE *Node, UINT32 NotifyValue) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *HandlerListHead = NULL; ACPI_GENERIC_STATE *Info; UINT8 HandlerListId = 0; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_NAME (EvQueueNotifyRequest); /* Are Notifies allowed on this object? */ if (!AcpiEvIsNotifyObject (Node)) { return (AE_TYPE); } /* Get the correct notify list type (System or Device) */ if (NotifyValue <= ACPI_MAX_SYS_NOTIFY) { HandlerListId = ACPI_SYSTEM_HANDLER_LIST; } else { HandlerListId = ACPI_DEVICE_HANDLER_LIST; } /* Get the notify object attached to the namespace Node */ ObjDesc = AcpiNsGetAttachedObject (Node); if (ObjDesc) { /* We have an attached object, Get the correct handler list */ HandlerListHead = ObjDesc->CommonNotify.NotifyList[HandlerListId]; } /* * If there is no notify handler (Global or Local) * for this object, just ignore the notify */ if (!AcpiGbl_GlobalNotify[HandlerListId].Handler && !HandlerListHead) { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "No notify handler for Notify, ignoring (%4.4s, %X) node %p\n", AcpiUtGetNodeName (Node), NotifyValue, Node)); return (AE_OK); } /* Setup notify info and schedule the notify dispatcher */ Info = AcpiUtCreateGenericState (); if (!Info) { return (AE_NO_MEMORY); } Info->Common.DescriptorType = ACPI_DESC_TYPE_STATE_NOTIFY; Info->Notify.Node = Node; Info->Notify.Value = (UINT16) NotifyValue; Info->Notify.HandlerListId = HandlerListId; Info->Notify.HandlerListHead = HandlerListHead; Info->Notify.Global = &AcpiGbl_GlobalNotify[HandlerListId]; ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Dispatching Notify on [%4.4s] (%s) Value 0x%2.2X (%s) Node %p\n", AcpiUtGetNodeName (Node), AcpiUtGetTypeName (Node->Type), NotifyValue, AcpiUtGetNotifyName (NotifyValue, ACPI_TYPE_ANY), Node)); Status = AcpiOsExecute (OSL_NOTIFY_HANDLER, AcpiEvNotifyDispatch, Info); if (ACPI_FAILURE (Status)) { AcpiUtDeleteGenericState (Info); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiEvNotifyDispatch * * PARAMETERS: Context - To be passed to the notify handler * * RETURN: None. * * DESCRIPTION: Dispatch a device notification event to a previously * installed handler. * ******************************************************************************/ static void ACPI_SYSTEM_XFACE AcpiEvNotifyDispatch ( void *Context) { ACPI_GENERIC_STATE *Info = (ACPI_GENERIC_STATE *) Context; ACPI_OPERAND_OBJECT *HandlerObj; ACPI_FUNCTION_ENTRY (); /* Invoke a global notify handler if installed */ if (Info->Notify.Global->Handler) { Info->Notify.Global->Handler (Info->Notify.Node, Info->Notify.Value, Info->Notify.Global->Context); } /* Now invoke the local notify handler(s) if any are installed */ HandlerObj = Info->Notify.HandlerListHead; while (HandlerObj) { HandlerObj->Notify.Handler (Info->Notify.Node, Info->Notify.Value, HandlerObj->Notify.Context); HandlerObj = HandlerObj->Notify.Next[Info->Notify.HandlerListId]; } /* All done with the info object */ AcpiUtDeleteGenericState (Info); } #if (!ACPI_REDUCED_HARDWARE) /****************************************************************************** * * FUNCTION: AcpiEvTerminate * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Disable events and free memory allocated for table storage. * ******************************************************************************/ void AcpiEvTerminate ( void) { UINT32 i; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvTerminate); if (AcpiGbl_EventsInitialized) { /* * Disable all event-related functionality. In all cases, on error, * print a message but obviously we don't abort. */ /* Disable all fixed events */ for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { Status = AcpiDisableEvent (i, 0); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not disable fixed event %u", (UINT32) i)); } } /* Disable all GPEs in all GPE blocks */ Status = AcpiEvWalkGpeList (AcpiHwDisableGpeBlock, NULL); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not disable GPEs in GPE block")); } Status = AcpiEvRemoveGlobalLockHandler (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not remove Global Lock handler")); } AcpiGbl_EventsInitialized = FALSE; } /* Remove SCI handlers */ Status = AcpiEvRemoveAllSciHandlers (); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not remove SCI handler")); } /* Deallocate all handler objects installed within GPE info structs */ Status = AcpiEvWalkGpeList (AcpiEvDeleteGpeHandlers, NULL); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not delete GPE handlers")); } /* Return to original mode if necessary */ if (AcpiGbl_OriginalMode == ACPI_SYS_MODE_LEGACY) { Status = AcpiDisable (); if (ACPI_FAILURE (Status)) { ACPI_WARNING ((AE_INFO, "AcpiDisable failed")); } } return_VOID; } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evgpeinit.c0000775000175000017500000003564514773714132022705 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evgpeinit - System GPE initialization and update * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acnamesp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evgpeinit") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /* * Note: History of _PRW support in ACPICA * * Originally (2000 - 2010), the GPE initialization code performed a walk of * the entire namespace to execute the _PRW methods and detect all GPEs * capable of waking the system. * * As of 10/2010, the _PRW method execution has been removed since it is * actually unnecessary. The host OS must in fact execute all _PRW methods * in order to identify the device/power-resource dependencies. We now put * the onus on the host OS to identify the wake GPEs as part of this process * and to inform ACPICA of these GPEs via the AcpiSetupGpeForWake interface. This * not only reduces the complexity of the ACPICA initialization code, but in * some cases (on systems with very large namespaces) it should reduce the * kernel boot time as well. */ /******************************************************************************* * * FUNCTION: AcpiEvGpeInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize the GPE data structures and the FADT GPE 0/1 blocks * ******************************************************************************/ ACPI_STATUS AcpiEvGpeInitialize ( void) { UINT32 RegisterCount0 = 0; UINT32 RegisterCount1 = 0; UINT32 GpeNumberMax = 0; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvGpeInitialize); ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "Initializing General Purpose Events (GPEs):\n")); Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Initialize the GPE Block(s) defined in the FADT * * Why the GPE register block lengths are divided by 2: From the ACPI * Spec, section "General-Purpose Event Registers", we have: * * "Each register block contains two registers of equal length * GPEx_STS and GPEx_EN (where x is 0 or 1). The length of the * GPE0_STS and GPE0_EN registers is equal to half the GPE0_LEN * The length of the GPE1_STS and GPE1_EN registers is equal to * half the GPE1_LEN. If a generic register block is not supported * then its respective block pointer and block length values in the * FADT table contain zeros. The GPE0_LEN and GPE1_LEN do not need * to be the same size." */ /* * Determine the maximum GPE number for this machine. * * Note: both GPE0 and GPE1 are optional, and either can exist without * the other. * * If EITHER the register length OR the block address are zero, then that * particular block is not supported. */ if (AcpiGbl_FADT.Gpe0BlockLength && AcpiGbl_FADT.XGpe0Block.Address) { /* GPE block 0 exists (has both length and address > 0) */ RegisterCount0 = (UINT16) (AcpiGbl_FADT.Gpe0BlockLength / 2); GpeNumberMax = (RegisterCount0 * ACPI_GPE_REGISTER_WIDTH) - 1; /* Install GPE Block 0 */ Status = AcpiEvCreateGpeBlock (AcpiGbl_FadtGpeDevice, AcpiGbl_FADT.XGpe0Block.Address, AcpiGbl_FADT.XGpe0Block.SpaceId, RegisterCount0, 0, AcpiGbl_FADT.SciInterrupt, &AcpiGbl_GpeFadtBlocks[0]); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not create GPE Block 0")); } } if (AcpiGbl_FADT.Gpe1BlockLength && AcpiGbl_FADT.XGpe1Block.Address) { /* GPE block 1 exists (has both length and address > 0) */ RegisterCount1 = (UINT16) (AcpiGbl_FADT.Gpe1BlockLength / 2); /* Check for GPE0/GPE1 overlap (if both banks exist) */ if ((RegisterCount0) && (GpeNumberMax >= AcpiGbl_FADT.Gpe1Base)) { ACPI_ERROR ((AE_INFO, "GPE0 block (GPE 0 to %u) overlaps the GPE1 block " "(GPE %u to %u) - Ignoring GPE1", GpeNumberMax, AcpiGbl_FADT.Gpe1Base, AcpiGbl_FADT.Gpe1Base + ((RegisterCount1 * ACPI_GPE_REGISTER_WIDTH) - 1))); /* Ignore GPE1 block by setting the register count to zero */ RegisterCount1 = 0; } else { /* Install GPE Block 1 */ Status = AcpiEvCreateGpeBlock (AcpiGbl_FadtGpeDevice, AcpiGbl_FADT.XGpe1Block.Address, AcpiGbl_FADT.XGpe1Block.SpaceId, RegisterCount1, AcpiGbl_FADT.Gpe1Base, AcpiGbl_FADT.SciInterrupt, &AcpiGbl_GpeFadtBlocks[1]); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not create GPE Block 1")); } /* * GPE0 and GPE1 do not have to be contiguous in the GPE number * space. However, GPE0 always starts at GPE number zero. */ } } /* Exit if there are no GPE registers */ if ((RegisterCount0 + RegisterCount1) == 0) { /* GPEs are not required by ACPI, this is OK */ ACPI_DEBUG_PRINT ((ACPI_DB_INIT, "There are no GPE blocks defined in the FADT\n")); goto Cleanup; } Cleanup: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvUpdateGpes * * PARAMETERS: TableOwnerId - ID of the newly-loaded ACPI table * * RETURN: None * * DESCRIPTION: Check for new GPE methods (_Lxx/_Exx) made available as a * result of a Load() or LoadTable() operation. If new GPE * methods have been installed, register the new methods. * ******************************************************************************/ void AcpiEvUpdateGpes ( ACPI_OWNER_ID TableOwnerId) { ACPI_GPE_XRUPT_INFO *GpeXruptInfo; ACPI_GPE_BLOCK_INFO *GpeBlock; ACPI_GPE_WALK_INFO WalkInfo; ACPI_STATUS Status = AE_OK; /* * Find any _Lxx/_Exx GPE methods that have just been loaded. * * Any GPEs that correspond to new _Lxx/_Exx methods are immediately * enabled. * * Examine the namespace underneath each GpeDevice within the * GpeBlock lists. */ Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return; } WalkInfo.Count = 0; WalkInfo.OwnerId = TableOwnerId; WalkInfo.ExecuteByOwnerId = TRUE; /* Walk the interrupt level descriptor list */ GpeXruptInfo = AcpiGbl_GpeXruptListHead; while (GpeXruptInfo) { /* Walk all Gpe Blocks attached to this interrupt level */ GpeBlock = GpeXruptInfo->GpeBlockListHead; while (GpeBlock) { WalkInfo.GpeBlock = GpeBlock; WalkInfo.GpeDevice = GpeBlock->Node; Status = AcpiNsWalkNamespace (ACPI_TYPE_METHOD, WalkInfo.GpeDevice, ACPI_UINT32_MAX, ACPI_NS_WALK_NO_UNLOCK, AcpiEvMatchGpeMethod, NULL, &WalkInfo, NULL); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While decoding _Lxx/_Exx methods")); } GpeBlock = GpeBlock->Next; } GpeXruptInfo = GpeXruptInfo->Next; } if (WalkInfo.Count) { ACPI_INFO (("Enabled %u new GPEs", WalkInfo.Count)); } (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return; } /******************************************************************************* * * FUNCTION: AcpiEvMatchGpeMethod * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Called from AcpiWalkNamespace. Expects each object to be a * control method under the _GPE portion of the namespace. * Extract the name and GPE type from the object, saving this * information for quick lookup during GPE dispatch. Allows a * per-OwnerId evaluation if ExecuteByOwnerId is TRUE in the * WalkInfo parameter block. * * The name of each GPE control method is of the form: * "_Lxx" or "_Exx", where: * L - means that the GPE is level triggered * E - means that the GPE is edge triggered * xx - is the GPE number [in HEX] * * If WalkInfo->ExecuteByOwnerId is TRUE, we only execute examine GPE methods * with that owner. * ******************************************************************************/ ACPI_STATUS AcpiEvMatchGpeMethod ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *MethodNode = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); ACPI_GPE_WALK_INFO *WalkInfo = ACPI_CAST_PTR (ACPI_GPE_WALK_INFO, Context); ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_STATUS Status; UINT32 GpeNumber; UINT8 TempGpeNumber; char Name[ACPI_NAMESEG_SIZE + 1]; UINT8 Type; ACPI_FUNCTION_TRACE (EvMatchGpeMethod); /* Check if requested OwnerId matches this OwnerId */ if ((WalkInfo->ExecuteByOwnerId) && (MethodNode->OwnerId != WalkInfo->OwnerId)) { return_ACPI_STATUS (AE_OK); } /* * Match and decode the _Lxx and _Exx GPE method names * * 1) Extract the method name and null terminate it */ ACPI_MOVE_32_TO_32 (Name, &MethodNode->Name.Integer); Name[ACPI_NAMESEG_SIZE] = 0; /* 2) Name must begin with an underscore */ if (Name[0] != '_') { return_ACPI_STATUS (AE_OK); /* Ignore this method */ } /* * 3) Edge/Level determination is based on the 2nd character * of the method name */ switch (Name[1]) { case 'L': Type = ACPI_GPE_LEVEL_TRIGGERED; break; case 'E': Type = ACPI_GPE_EDGE_TRIGGERED; break; default: /* Unknown method type, just ignore it */ ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "Ignoring unknown GPE method type: %s " "(name not of form _Lxx or _Exx)", Name)); return_ACPI_STATUS (AE_OK); } /* 4) The last two characters of the name are the hex GPE Number */ Status = AcpiUtAsciiToHexByte (&Name[2], &TempGpeNumber); if (ACPI_FAILURE (Status)) { /* Conversion failed; invalid method, just ignore it */ ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "Could not extract GPE number from name: %s " "(name is not of form _Lxx or _Exx)", Name)); return_ACPI_STATUS (AE_OK); } /* Ensure that we have a valid GPE number for this GPE block */ GpeNumber = (UINT32) TempGpeNumber; GpeEventInfo = AcpiEvLowGetGpeInfo (GpeNumber, WalkInfo->GpeBlock); if (!GpeEventInfo) { /* * This GpeNumber is not valid for this GPE block, just ignore it. * However, it may be valid for a different GPE block, since GPE0 * and GPE1 methods both appear under \_GPE. */ return_ACPI_STATUS (AE_OK); } if ((ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_HANDLER) || (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_RAW_HANDLER)) { /* If there is already a handler, ignore this GPE method */ return_ACPI_STATUS (AE_OK); } if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_METHOD) { /* * If there is already a method, ignore this method. But check * for a type mismatch (if both the _Lxx AND _Exx exist) */ if (Type != (GpeEventInfo->Flags & ACPI_GPE_XRUPT_TYPE_MASK)) { ACPI_ERROR ((AE_INFO, "For GPE 0x%.2X, found both _L%2.2X and _E%2.2X methods", GpeNumber, GpeNumber, GpeNumber)); } return_ACPI_STATUS (AE_OK); } /* Disable the GPE in case it's been enabled already. */ (void) AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_DISABLE); /* * Add the GPE information from above to the GpeEventInfo block for * use during dispatch of this GPE. */ GpeEventInfo->Flags &= ~(ACPI_GPE_DISPATCH_MASK); GpeEventInfo->Flags |= (UINT8) (Type | ACPI_GPE_DISPATCH_METHOD); GpeEventInfo->Dispatch.MethodNode = MethodNode; WalkInfo->Count++; ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "Registered GPE method %s as GPE number 0x%.2X\n", Name, GpeNumber)); return_ACPI_STATUS (AE_OK); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/events/evgpe.c0000775000175000017500000006731314773714132022016 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: evgpe - General Purpose Event handling and dispatch * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acnamesp.h" #define _COMPONENT ACPI_EVENTS ACPI_MODULE_NAME ("evgpe") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /* Local prototypes */ static void ACPI_SYSTEM_XFACE AcpiEvAsynchExecuteGpeMethod ( void *Context); static void ACPI_SYSTEM_XFACE AcpiEvAsynchEnableGpe ( void *Context); /******************************************************************************* * * FUNCTION: AcpiEvUpdateGpeEnableMask * * PARAMETERS: GpeEventInfo - GPE to update * * RETURN: Status * * DESCRIPTION: Updates GPE register enable mask based upon whether there are * runtime references to this GPE * ******************************************************************************/ ACPI_STATUS AcpiEvUpdateGpeEnableMask ( ACPI_GPE_EVENT_INFO *GpeEventInfo) { ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; UINT32 RegisterBit; ACPI_FUNCTION_TRACE (EvUpdateGpeEnableMask); GpeRegisterInfo = GpeEventInfo->RegisterInfo; if (!GpeRegisterInfo) { return_ACPI_STATUS (AE_NOT_EXIST); } RegisterBit = AcpiHwGetGpeRegisterBit (GpeEventInfo); /* Clear the run bit up front */ ACPI_CLEAR_BIT (GpeRegisterInfo->EnableForRun, RegisterBit); /* Set the mask bit only if there are references to this GPE */ if (GpeEventInfo->RuntimeCount) { ACPI_SET_BIT (GpeRegisterInfo->EnableForRun, (UINT8) RegisterBit); } GpeRegisterInfo->EnableMask = GpeRegisterInfo->EnableForRun; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvEnableGpe * * PARAMETERS: GpeEventInfo - GPE to enable * * RETURN: Status * * DESCRIPTION: Enable a GPE. * ******************************************************************************/ ACPI_STATUS AcpiEvEnableGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvEnableGpe); /* Enable the requested GPE */ Status = AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_ENABLE); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvMaskGpe * * PARAMETERS: GpeEventInfo - GPE to be blocked/unblocked * IsMasked - Whether the GPE is masked or not * * RETURN: Status * * DESCRIPTION: Unconditionally mask/unmask a GPE during runtime. * ******************************************************************************/ ACPI_STATUS AcpiEvMaskGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo, BOOLEAN IsMasked) { ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; UINT32 RegisterBit; ACPI_FUNCTION_TRACE (EvMaskGpe); GpeRegisterInfo = GpeEventInfo->RegisterInfo; if (!GpeRegisterInfo) { return_ACPI_STATUS (AE_NOT_EXIST); } RegisterBit = AcpiHwGetGpeRegisterBit (GpeEventInfo); /* Perform the action */ if (IsMasked) { if (RegisterBit & GpeRegisterInfo->MaskForRun) { return_ACPI_STATUS (AE_BAD_PARAMETER); } (void) AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_DISABLE); ACPI_SET_BIT (GpeRegisterInfo->MaskForRun, (UINT8) RegisterBit); } else { if (!(RegisterBit & GpeRegisterInfo->MaskForRun)) { return_ACPI_STATUS (AE_BAD_PARAMETER); } ACPI_CLEAR_BIT (GpeRegisterInfo->MaskForRun, (UINT8) RegisterBit); if (GpeEventInfo->RuntimeCount && !GpeEventInfo->DisableForDispatch) { (void) AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_ENABLE); } } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvAddGpeReference * * PARAMETERS: GpeEventInfo - Add a reference to this GPE * ClearOnEnable - Clear GPE status before enabling it * * RETURN: Status * * DESCRIPTION: Add a reference to a GPE. On the first reference, the GPE is * hardware-enabled. * ******************************************************************************/ ACPI_STATUS AcpiEvAddGpeReference ( ACPI_GPE_EVENT_INFO *GpeEventInfo, BOOLEAN ClearOnEnable) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (EvAddGpeReference); if (GpeEventInfo->RuntimeCount == ACPI_UINT8_MAX) { return_ACPI_STATUS (AE_LIMIT); } GpeEventInfo->RuntimeCount++; if (GpeEventInfo->RuntimeCount == 1) { /* Enable on first reference */ if (ClearOnEnable) { (void) AcpiHwClearGpe (GpeEventInfo); } Status = AcpiEvUpdateGpeEnableMask (GpeEventInfo); if (ACPI_SUCCESS (Status)) { Status = AcpiEvEnableGpe (GpeEventInfo); } if (ACPI_FAILURE (Status)) { GpeEventInfo->RuntimeCount--; } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvRemoveGpeReference * * PARAMETERS: GpeEventInfo - Remove a reference to this GPE * * RETURN: Status * * DESCRIPTION: Remove a reference to a GPE. When the last reference is * removed, the GPE is hardware-disabled. * ******************************************************************************/ ACPI_STATUS AcpiEvRemoveGpeReference ( ACPI_GPE_EVENT_INFO *GpeEventInfo) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (EvRemoveGpeReference); if (!GpeEventInfo->RuntimeCount) { return_ACPI_STATUS (AE_LIMIT); } GpeEventInfo->RuntimeCount--; if (!GpeEventInfo->RuntimeCount) { /* Disable on last reference */ Status = AcpiEvUpdateGpeEnableMask (GpeEventInfo); if (ACPI_SUCCESS (Status)) { Status = AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_DISABLE); } if (ACPI_FAILURE (Status)) { GpeEventInfo->RuntimeCount++; } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiEvLowGetGpeInfo * * PARAMETERS: GpeNumber - Raw GPE number * GpeBlock - A GPE info block * * RETURN: A GPE EventInfo struct. NULL if not a valid GPE (The GpeNumber * is not within the specified GPE block) * * DESCRIPTION: Returns the EventInfo struct associated with this GPE. This is * the low-level implementation of EvGetGpeEventInfo. * ******************************************************************************/ ACPI_GPE_EVENT_INFO * AcpiEvLowGetGpeInfo ( UINT32 GpeNumber, ACPI_GPE_BLOCK_INFO *GpeBlock) { UINT32 GpeIndex; /* * Validate that the GpeNumber is within the specified GpeBlock. * (Two steps) */ if (!GpeBlock || (GpeNumber < GpeBlock->BlockBaseNumber)) { return (NULL); } GpeIndex = GpeNumber - GpeBlock->BlockBaseNumber; if (GpeIndex >= GpeBlock->GpeCount) { return (NULL); } return (&GpeBlock->EventInfo[GpeIndex]); } /******************************************************************************* * * FUNCTION: AcpiEvGetGpeEventInfo * * PARAMETERS: GpeDevice - Device node. NULL for GPE0/GPE1 * GpeNumber - Raw GPE number * * RETURN: A GPE EventInfo struct. NULL if not a valid GPE * * DESCRIPTION: Returns the EventInfo struct associated with this GPE. * Validates the GpeBlock and the GpeNumber * * Should be called only when the GPE lists are semaphore locked * and not subject to change. * ******************************************************************************/ ACPI_GPE_EVENT_INFO * AcpiEvGetGpeEventInfo ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_GPE_EVENT_INFO *GpeInfo; UINT32 i; ACPI_FUNCTION_ENTRY (); /* A NULL GpeDevice means use the FADT-defined GPE block(s) */ if (!GpeDevice) { /* Examine GPE Block 0 and 1 (These blocks are permanent) */ for (i = 0; i < ACPI_MAX_GPE_BLOCKS; i++) { GpeInfo = AcpiEvLowGetGpeInfo (GpeNumber, AcpiGbl_GpeFadtBlocks[i]); if (GpeInfo) { return (GpeInfo); } } /* The GpeNumber was not in the range of either FADT GPE block */ return (NULL); } /* A Non-NULL GpeDevice means this is a GPE Block Device */ ObjDesc = AcpiNsGetAttachedObject ((ACPI_NAMESPACE_NODE *) GpeDevice); if (!ObjDesc || !ObjDesc->Device.GpeBlock) { return (NULL); } return (AcpiEvLowGetGpeInfo (GpeNumber, ObjDesc->Device.GpeBlock)); } /******************************************************************************* * * FUNCTION: AcpiEvGpeDetect * * PARAMETERS: GpeXruptList - Interrupt block for this interrupt. * Can have multiple GPE blocks attached. * * RETURN: INTERRUPT_HANDLED or INTERRUPT_NOT_HANDLED * * DESCRIPTION: Detect if any GP events have occurred. This function is * executed at interrupt level. * ******************************************************************************/ UINT32 AcpiEvGpeDetect ( ACPI_GPE_XRUPT_INFO *GpeXruptList) { ACPI_GPE_BLOCK_INFO *GpeBlock; ACPI_NAMESPACE_NODE *GpeDevice; ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; ACPI_GPE_EVENT_INFO *GpeEventInfo; UINT32 GpeNumber; UINT32 IntStatus = ACPI_INTERRUPT_NOT_HANDLED; ACPI_CPU_FLAGS Flags; UINT32 i; UINT32 j; ACPI_FUNCTION_NAME (EvGpeDetect); /* Check for the case where there are no GPEs */ if (!GpeXruptList) { return (IntStatus); } /* * We need to obtain the GPE lock for both the data structs and registers * Note: Not necessary to obtain the hardware lock, since the GPE * registers are owned by the GpeLock. */ Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); /* Examine all GPE blocks attached to this interrupt level */ GpeBlock = GpeXruptList->GpeBlockListHead; while (GpeBlock) { GpeDevice = GpeBlock->Node; /* * Read all of the 8-bit GPE status and enable registers in this GPE * block, saving all of them. Find all currently active GP events. */ for (i = 0; i < GpeBlock->RegisterCount; i++) { /* Get the next status/enable pair */ GpeRegisterInfo = &GpeBlock->RegisterInfo[i]; /* * Optimization: If there are no GPEs enabled within this * register, we can safely ignore the entire register. */ if (!(GpeRegisterInfo->EnableForRun | GpeRegisterInfo->EnableForWake)) { ACPI_DEBUG_PRINT ((ACPI_DB_INTERRUPTS, "Ignore disabled registers for GPE %02X-%02X: " "RunEnable=%02X, WakeEnable=%02X\n", GpeRegisterInfo->BaseGpeNumber, GpeRegisterInfo->BaseGpeNumber + (ACPI_GPE_REGISTER_WIDTH - 1), GpeRegisterInfo->EnableForRun, GpeRegisterInfo->EnableForWake)); continue; } /* Now look at the individual GPEs in this byte register */ for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { /* Detect and dispatch one GPE bit */ GpeEventInfo = &GpeBlock->EventInfo[((ACPI_SIZE) i * ACPI_GPE_REGISTER_WIDTH) + j]; GpeNumber = j + GpeRegisterInfo->BaseGpeNumber; AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); IntStatus |= AcpiEvDetectGpe ( GpeDevice, GpeEventInfo, GpeNumber); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); } } GpeBlock = GpeBlock->Next; } AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return (IntStatus); } /******************************************************************************* * * FUNCTION: AcpiEvAsynchExecuteGpeMethod * * PARAMETERS: Context (GpeEventInfo) - Info for this GPE * * RETURN: None * * DESCRIPTION: Perform the actual execution of a GPE control method. This * function is called from an invocation of AcpiOsExecute and * therefore does NOT execute at interrupt level - so that * the control method itself is not executed in the context of * an interrupt handler. * ******************************************************************************/ static void ACPI_SYSTEM_XFACE AcpiEvAsynchExecuteGpeMethod ( void *Context) { ACPI_GPE_EVENT_INFO *GpeEventInfo = Context; ACPI_STATUS Status = AE_OK; ACPI_EVALUATE_INFO *Info; ACPI_GPE_NOTIFY_INFO *Notify; ACPI_FUNCTION_TRACE (EvAsynchExecuteGpeMethod); /* Do the correct dispatch - normal method or implicit notify */ switch (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags)) { case ACPI_GPE_DISPATCH_NOTIFY: /* * Implicit notify. * Dispatch a DEVICE_WAKE notify to the appropriate handler. * NOTE: the request is queued for execution after this method * completes. The notify handlers are NOT invoked synchronously * from this thread -- because handlers may in turn run other * control methods. * * June 2012: Expand implicit notify mechanism to support * notifies on multiple device objects. */ Notify = GpeEventInfo->Dispatch.NotifyList; while (ACPI_SUCCESS (Status) && Notify) { Status = AcpiEvQueueNotifyRequest ( Notify->DeviceNode, ACPI_NOTIFY_DEVICE_WAKE); Notify = Notify->Next; } break; case ACPI_GPE_DISPATCH_METHOD: /* Allocate the evaluation information block */ Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO)); if (!Info) { Status = AE_NO_MEMORY; } else { /* * Invoke the GPE Method (_Lxx, _Exx) i.e., evaluate the * _Lxx/_Exx control method that corresponds to this GPE */ Info->PrefixNode = GpeEventInfo->Dispatch.MethodNode; Info->Flags = ACPI_IGNORE_RETURN_VALUE; Status = AcpiNsEvaluate (Info); ACPI_FREE (Info); } if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "while evaluating GPE method [%4.4s]", AcpiUtGetNodeName (GpeEventInfo->Dispatch.MethodNode))); } break; default: goto ErrorExit; /* Should never happen */ } /* Defer enabling of GPE until all notify handlers are done */ Status = AcpiOsExecute (OSL_NOTIFY_HANDLER, AcpiEvAsynchEnableGpe, GpeEventInfo); if (ACPI_SUCCESS (Status)) { return_VOID; } ErrorExit: AcpiEvAsynchEnableGpe (GpeEventInfo); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiEvAsynchEnableGpe * * PARAMETERS: Context (GpeEventInfo) - Info for this GPE * Callback from AcpiOsExecute * * RETURN: None * * DESCRIPTION: Asynchronous clear/enable for GPE. This allows the GPE to * complete (i.e., finish execution of Notify) * ******************************************************************************/ static void ACPI_SYSTEM_XFACE AcpiEvAsynchEnableGpe ( void *Context) { ACPI_GPE_EVENT_INFO *GpeEventInfo = Context; ACPI_CPU_FLAGS Flags; Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); (void) AcpiEvFinishGpe (GpeEventInfo); AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return; } /******************************************************************************* * * FUNCTION: AcpiEvFinishGpe * * PARAMETERS: GpeEventInfo - Info for this GPE * * RETURN: Status * * DESCRIPTION: Clear/Enable a GPE. Common code that is used after execution * of a GPE method or a synchronous or asynchronous GPE handler. * ******************************************************************************/ ACPI_STATUS AcpiEvFinishGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo) { ACPI_STATUS Status; if ((GpeEventInfo->Flags & ACPI_GPE_XRUPT_TYPE_MASK) == ACPI_GPE_LEVEL_TRIGGERED) { /* * GPE is level-triggered, we clear the GPE status bit after * handling the event. */ Status = AcpiHwClearGpe (GpeEventInfo); if (ACPI_FAILURE (Status)) { return (Status); } } /* * Enable this GPE, conditionally. This means that the GPE will * only be physically enabled if the EnableMask bit is set * in the EventInfo. */ (void) AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_CONDITIONAL_ENABLE); GpeEventInfo->DisableForDispatch = FALSE; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiEvDetectGpe * * PARAMETERS: GpeDevice - Device node. NULL for GPE0/GPE1 * GpeEventInfo - Info for this GPE * GpeNumber - Number relative to the parent GPE block * * RETURN: INTERRUPT_HANDLED or INTERRUPT_NOT_HANDLED * * DESCRIPTION: Detect and dispatch a General Purpose Event to either a function * (e.g. EC) or method (e.g. _Lxx/_Exx) handler. * NOTE: GPE is W1C, so it is possible to handle a single GPE from both * task and irq context in parallel as long as the process to * detect and mask the GPE is atomic. * However the atomicity of ACPI_GPE_DISPATCH_RAW_HANDLER is * dependent on the raw handler itself. * ******************************************************************************/ UINT32 AcpiEvDetectGpe ( ACPI_NAMESPACE_NODE *GpeDevice, ACPI_GPE_EVENT_INFO *GpeEventInfo, UINT32 GpeNumber) { UINT32 IntStatus = ACPI_INTERRUPT_NOT_HANDLED; UINT8 EnabledStatusByte; UINT64 StatusReg; UINT64 EnableReg; UINT32 RegisterBit; ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; ACPI_GPE_HANDLER_INFO *GpeHandlerInfo; ACPI_CPU_FLAGS Flags; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (EvGpeDetect); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); if (!GpeEventInfo) { GpeEventInfo = AcpiEvGetGpeEventInfo (GpeDevice, GpeNumber); if (!GpeEventInfo) { goto ErrorExit; } } /* Get the info block for the entire GPE register */ GpeRegisterInfo = GpeEventInfo->RegisterInfo; /* Get the register bitmask for this GPE */ RegisterBit = AcpiHwGetGpeRegisterBit (GpeEventInfo); /* GPE currently enabled (enable bit == 1)? */ Status = AcpiHwRead (&EnableReg, &GpeRegisterInfo->EnableAddress); if (ACPI_FAILURE (Status)) { goto ErrorExit; } /* GPE currently active (status bit == 1)? */ Status = AcpiHwRead (&StatusReg, &GpeRegisterInfo->StatusAddress); if (ACPI_FAILURE (Status)) { goto ErrorExit; } /* Check if there is anything active at all in this GPE */ ACPI_DEBUG_PRINT ((ACPI_DB_INTERRUPTS, "Read registers for GPE %02X: Status=%02X, Enable=%02X, " "RunEnable=%02X, WakeEnable=%02X\n", GpeNumber, (UINT32) (StatusReg & RegisterBit), (UINT32) (EnableReg & RegisterBit), GpeRegisterInfo->EnableForRun, GpeRegisterInfo->EnableForWake)); EnabledStatusByte = (UINT8) (StatusReg & EnableReg); if (!(EnabledStatusByte & RegisterBit)) { goto ErrorExit; } /* Invoke global event handler if present */ AcpiGpeCount++; if (AcpiGbl_GlobalEventHandler) { AcpiGbl_GlobalEventHandler (ACPI_EVENT_TYPE_GPE, GpeDevice, GpeNumber, AcpiGbl_GlobalEventHandlerContext); } /* Found an active GPE */ if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_RAW_HANDLER) { /* Dispatch the event to a raw handler */ GpeHandlerInfo = GpeEventInfo->Dispatch.Handler; /* * There is no protection around the namespace node * and the GPE handler to ensure a safe destruction * because: * 1. The namespace node is expected to always * exist after loading a table. * 2. The GPE handler is expected to be flushed by * AcpiOsWaitEventsComplete() before the * destruction. */ AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); IntStatus |= GpeHandlerInfo->Address ( GpeDevice, GpeNumber, GpeHandlerInfo->Context); Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); } else { /* Dispatch the event to a standard handler or method. */ IntStatus |= AcpiEvGpeDispatch (GpeDevice, GpeEventInfo, GpeNumber); } ErrorExit: AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return (IntStatus); } /******************************************************************************* * * FUNCTION: AcpiEvGpeDispatch * * PARAMETERS: GpeDevice - Device node. NULL for GPE0/GPE1 * GpeEventInfo - Info for this GPE * GpeNumber - Number relative to the parent GPE block * * RETURN: INTERRUPT_HANDLED or INTERRUPT_NOT_HANDLED * * DESCRIPTION: Dispatch a General Purpose Event to either a function (e.g. EC) * or method (e.g. _Lxx/_Exx) handler. * ******************************************************************************/ UINT32 AcpiEvGpeDispatch ( ACPI_NAMESPACE_NODE *GpeDevice, ACPI_GPE_EVENT_INFO *GpeEventInfo, UINT32 GpeNumber) { ACPI_STATUS Status; UINT32 ReturnValue; ACPI_FUNCTION_TRACE (EvGpeDispatch); /* * Always disable the GPE so that it does not keep firing before * any asynchronous activity completes (either from the execution * of a GPE method or an asynchronous GPE handler.) * * If there is no handler or method to run, just disable the * GPE and leave it disabled permanently to prevent further such * pointless events from firing. */ Status = AcpiHwLowSetGpe (GpeEventInfo, ACPI_GPE_DISABLE); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Unable to disable GPE %02X", GpeNumber)); return_UINT32 (ACPI_INTERRUPT_NOT_HANDLED); } /* * If edge-triggered, clear the GPE status bit now. Note that * level-triggered events are cleared after the GPE is serviced. */ if ((GpeEventInfo->Flags & ACPI_GPE_XRUPT_TYPE_MASK) == ACPI_GPE_EDGE_TRIGGERED) { Status = AcpiHwClearGpe (GpeEventInfo); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Unable to clear GPE %02X", GpeNumber)); (void) AcpiHwLowSetGpe ( GpeEventInfo, ACPI_GPE_CONDITIONAL_ENABLE); return_UINT32 (ACPI_INTERRUPT_NOT_HANDLED); } } GpeEventInfo->DisableForDispatch = TRUE; /* * Dispatch the GPE to either an installed handler or the control * method associated with this GPE (_Lxx or _Exx). If a handler * exists, we invoke it and do not attempt to run the method. * If there is neither a handler nor a method, leave the GPE * disabled. */ switch (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags)) { case ACPI_GPE_DISPATCH_HANDLER: /* Invoke the installed handler (at interrupt level) */ ReturnValue = GpeEventInfo->Dispatch.Handler->Address ( GpeDevice, GpeNumber, GpeEventInfo->Dispatch.Handler->Context); /* If requested, clear (if level-triggered) and re-enable the GPE */ if (ReturnValue & ACPI_REENABLE_GPE) { (void) AcpiEvFinishGpe (GpeEventInfo); } break; case ACPI_GPE_DISPATCH_METHOD: case ACPI_GPE_DISPATCH_NOTIFY: /* * Execute the method associated with the GPE * NOTE: Level-triggered GPEs are cleared after the method completes. */ Status = AcpiOsExecute (OSL_GPE_HANDLER, AcpiEvAsynchExecuteGpeMethod, GpeEventInfo); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Unable to queue handler for GPE %02X - event disabled", GpeNumber)); } break; default: /* * No handler or method to run! * 03/2010: This case should no longer be possible. We will not allow * a GPE to be enabled if it has no handler or method. */ ACPI_ERROR ((AE_INFO, "No handler or method for GPE %02X, disabling event", GpeNumber)); break; } return_UINT32 (ACPI_INTERRUPT_HANDLED); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/tables/0000775000175000017500000000000014773714133020476 5ustar ivanhuivanhuacpica-unix-20250404/source/components/tables/tbxface.c0000775000175000017500000004427114773714133022271 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: tbxface - ACPI table-oriented external interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "actables.h" #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME ("tbxface") /******************************************************************************* * * FUNCTION: AcpiAllocateRootTable * * PARAMETERS: InitialTableCount - Size of InitialTableArray, in number of * ACPI_TABLE_DESC structures * * RETURN: Status * * DESCRIPTION: Allocate a root table array. Used by iASL compiler and * AcpiInitializeTables. * ******************************************************************************/ ACPI_STATUS AcpiAllocateRootTable ( UINT32 InitialTableCount) { AcpiGbl_RootTableList.MaxTableCount = InitialTableCount; AcpiGbl_RootTableList.Flags = ACPI_ROOT_ALLOW_RESIZE; return (AcpiTbResizeRootTableList ()); } /******************************************************************************* * * FUNCTION: AcpiInitializeTables * * PARAMETERS: InitialTableArray - Pointer to an array of pre-allocated * ACPI_TABLE_DESC structures. If NULL, the * array is dynamically allocated. * InitialTableCount - Size of InitialTableArray, in number of * ACPI_TABLE_DESC structures * AllowResize - Flag to tell Table Manager if resize of * pre-allocated array is allowed. Ignored * if InitialTableArray is NULL. * * RETURN: Status * * DESCRIPTION: Initialize the table manager, get the RSDP and RSDT/XSDT. * * NOTE: Allows static allocation of the initial table array in order * to avoid the use of dynamic memory in confined environments * such as the kernel boot sequence where it may not be available. * * If the host OS memory managers are initialized, use NULL for * InitialTableArray, and the table will be dynamically allocated. * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeTables ( ACPI_TABLE_DESC *InitialTableArray, UINT32 InitialTableCount, BOOLEAN AllowResize) { ACPI_PHYSICAL_ADDRESS RsdpAddress; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInitializeTables); /* * Setup the Root Table Array and allocate the table array * if requested */ if (!InitialTableArray) { Status = AcpiAllocateRootTable (InitialTableCount); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } else { /* Root Table Array has been statically allocated by the host */ memset (InitialTableArray, 0, (ACPI_SIZE) InitialTableCount * sizeof (ACPI_TABLE_DESC)); AcpiGbl_RootTableList.Tables = InitialTableArray; AcpiGbl_RootTableList.MaxTableCount = InitialTableCount; AcpiGbl_RootTableList.Flags = ACPI_ROOT_ORIGIN_UNKNOWN; if (AllowResize) { AcpiGbl_RootTableList.Flags |= ACPI_ROOT_ALLOW_RESIZE; } } /* Get the address of the RSDP */ RsdpAddress = AcpiOsGetRootPointer (); if (!RsdpAddress) { return_ACPI_STATUS (AE_NOT_FOUND); } /* * Get the root table (RSDT or XSDT) and extract all entries to the local * Root Table Array. This array contains the information of the RSDT/XSDT * in a common, more usable format. */ Status = AcpiTbParseRootTable (RsdpAddress); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL_INIT (AcpiInitializeTables) /******************************************************************************* * * FUNCTION: AcpiReallocateRootTable * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Reallocate Root Table List into dynamic memory. Copies the * root list from the previously provided scratch area. Should * be called once dynamic memory allocation is available in the * kernel. * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiReallocateRootTable ( void) { ACPI_STATUS Status; ACPI_TABLE_DESC *TableDesc; UINT32 i, j; ACPI_FUNCTION_TRACE (AcpiReallocateRootTable); /* * If there are tables unverified, it is required to reallocate the * root table list to clean up invalid table entries. Otherwise only * reallocate the root table list if the host provided a static buffer * for the table array in the call to AcpiInitializeTables(). */ if ((AcpiGbl_RootTableList.Flags & ACPI_ROOT_ORIGIN_ALLOCATED) && AcpiGbl_EnableTableValidation) { return_ACPI_STATUS (AE_SUPPORT); } (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); /* * Ensure OS early boot logic, which is required by some hosts. If the * table state is reported to be wrong, developers should fix the * issue by invoking AcpiPutTable() for the reported table during the * early stage. */ for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) { TableDesc = &AcpiGbl_RootTableList.Tables[i]; if (TableDesc->Pointer) { ACPI_ERROR ((AE_INFO, "Table [%4.4s] is not invalidated during early boot stage", TableDesc->Signature.Ascii)); } } if (!AcpiGbl_EnableTableValidation) { /* * Now it's safe to do full table validation. We can do deferred * table initialization here once the flag is set. */ AcpiGbl_EnableTableValidation = TRUE; for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) { TableDesc = &AcpiGbl_RootTableList.Tables[i]; if (!(TableDesc->Flags & ACPI_TABLE_IS_VERIFIED)) { Status = AcpiTbVerifyTempTable (TableDesc, NULL, &j); if (ACPI_FAILURE (Status)) { AcpiTbUninstallTable (TableDesc); } } } } AcpiGbl_RootTableList.Flags |= ACPI_ROOT_ALLOW_RESIZE; Status = AcpiTbResizeRootTableList (); AcpiGbl_RootTableList.Flags |= ACPI_ROOT_ORIGIN_ALLOCATED; (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL_INIT (AcpiReallocateRootTable) /******************************************************************************* * * FUNCTION: AcpiGetTableHeader * * PARAMETERS: Signature - ACPI signature of needed table * Instance - Which instance (for SSDTs) * OutTableHeader - The pointer to the where the table header * is returned * * RETURN: Status and a copy of the table header * * DESCRIPTION: Finds and returns an ACPI table header. Caller provides the * memory where a copy of the header is to be returned * (fixed length). * ******************************************************************************/ ACPI_STATUS AcpiGetTableHeader ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER *OutTableHeader) { UINT32 i; UINT32 j; ACPI_TABLE_HEADER *Header; /* Parameter validation */ if (!Signature || !OutTableHeader) { return (AE_BAD_PARAMETER); } /* Walk the root table list */ for (i = 0, j = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) { if (!ACPI_COMPARE_NAMESEG ( &(AcpiGbl_RootTableList.Tables[i].Signature), Signature)) { continue; } if (++j < Instance) { continue; } if (!AcpiGbl_RootTableList.Tables[i].Pointer) { if ((AcpiGbl_RootTableList.Tables[i].Flags & ACPI_TABLE_ORIGIN_MASK) == ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL) { Header = AcpiOsMapMemory ( AcpiGbl_RootTableList.Tables[i].Address, sizeof (ACPI_TABLE_HEADER)); if (!Header) { return (AE_NO_MEMORY); } memcpy (OutTableHeader, Header, sizeof (ACPI_TABLE_HEADER)); AcpiOsUnmapMemory (Header, sizeof (ACPI_TABLE_HEADER)); } else { return (AE_NOT_FOUND); } } else { memcpy (OutTableHeader, AcpiGbl_RootTableList.Tables[i].Pointer, sizeof (ACPI_TABLE_HEADER)); } return (AE_OK); } return (AE_NOT_FOUND); } ACPI_EXPORT_SYMBOL (AcpiGetTableHeader) /******************************************************************************* * * FUNCTION: AcpiGetTable * * PARAMETERS: Signature - ACPI signature of needed table * Instance - Which instance (for SSDTs) * OutTable - Where the pointer to the table is returned * * RETURN: Status and pointer to the requested table * * DESCRIPTION: Finds and verifies an ACPI table. Table must be in the * RSDT/XSDT. * Note that an early stage AcpiGetTable() call must be paired * with an early stage AcpiPutTable() call. otherwise the table * pointer mapped by the early stage mapping implementation may be * erroneously unmapped by the late stage unmapping implementation * in an AcpiPutTable() invoked during the late stage. * ******************************************************************************/ ACPI_STATUS AcpiGetTable ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **OutTable) { UINT32 i; UINT32 j; ACPI_STATUS Status = AE_NOT_FOUND; ACPI_TABLE_DESC *TableDesc; /* Parameter validation */ if (!Signature || !OutTable) { return (AE_BAD_PARAMETER); } /* * Note that the following line is required by some OSPMs, they only * check if the returned table is NULL instead of the returned status * to determined if this function is succeeded. */ *OutTable = NULL; (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); /* Walk the root table list */ for (i = 0, j = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) { TableDesc = &AcpiGbl_RootTableList.Tables[i]; if (!ACPI_COMPARE_NAMESEG (&TableDesc->Signature, Signature)) { continue; } if (++j < Instance) { continue; } Status = AcpiTbGetTable (TableDesc, OutTable); break; } (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return (Status); } ACPI_EXPORT_SYMBOL (AcpiGetTable) /******************************************************************************* * * FUNCTION: AcpiPutTable * * PARAMETERS: Table - The pointer to the table * * RETURN: None * * DESCRIPTION: Release a table returned by AcpiGetTable() and its clones. * Note that it is not safe if this function was invoked after an * uninstallation happened to the original table descriptor. * Currently there is no OSPMs' requirement to handle such * situations. * ******************************************************************************/ void AcpiPutTable ( ACPI_TABLE_HEADER *Table) { UINT32 i; ACPI_TABLE_DESC *TableDesc; ACPI_FUNCTION_TRACE (AcpiPutTable); if (!Table) { return_VOID; } (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); /* Walk the root table list */ for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) { TableDesc = &AcpiGbl_RootTableList.Tables[i]; if (TableDesc->Pointer != Table) { continue; } AcpiTbPutTable (TableDesc); break; } (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_VOID; } ACPI_EXPORT_SYMBOL (AcpiPutTable) /******************************************************************************* * * FUNCTION: AcpiGetTableByIndex * * PARAMETERS: TableIndex - Table index * OutTable - Where the pointer to the table is returned * * RETURN: Status and pointer to the requested table * * DESCRIPTION: Obtain a table by an index into the global table list. Used * internally also. * ******************************************************************************/ ACPI_STATUS AcpiGetTableByIndex ( UINT32 TableIndex, ACPI_TABLE_HEADER **OutTable) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiGetTableByIndex); /* Parameter validation */ if (!OutTable) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * Note that the following line is required by some OSPMs, they only * check if the returned table is NULL instead of the returned status * to determined if this function is succeeded. */ *OutTable = NULL; (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); /* Validate index */ if (TableIndex >= AcpiGbl_RootTableList.CurrentTableCount) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } Status = AcpiTbGetTable ( &AcpiGbl_RootTableList.Tables[TableIndex], OutTable); UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetTableByIndex) /******************************************************************************* * * FUNCTION: AcpiInstallTableHandler * * PARAMETERS: Handler - Table event handler * Context - Value passed to the handler on each event * * RETURN: Status * * DESCRIPTION: Install a global table event handler. * ******************************************************************************/ ACPI_STATUS AcpiInstallTableHandler ( ACPI_TABLE_HANDLER Handler, void *Context) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInstallTableHandler); if (!Handler) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Don't allow more than one handler */ if (AcpiGbl_TableHandler) { Status = AE_ALREADY_EXISTS; goto Cleanup; } /* Install the handler */ AcpiGbl_TableHandler = Handler; AcpiGbl_TableHandlerContext = Context; Cleanup: (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallTableHandler) /******************************************************************************* * * FUNCTION: AcpiRemoveTableHandler * * PARAMETERS: Handler - Table event handler that was installed * previously. * * RETURN: Status * * DESCRIPTION: Remove a table event handler * ******************************************************************************/ ACPI_STATUS AcpiRemoveTableHandler ( ACPI_TABLE_HANDLER Handler) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiRemoveTableHandler); Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Make sure that the installed handler is the same */ if (!Handler || Handler != AcpiGbl_TableHandler) { Status = AE_BAD_PARAMETER; goto Cleanup; } /* Remove the handler */ AcpiGbl_TableHandler = NULL; Cleanup: (void) AcpiUtReleaseMutex (ACPI_MTX_EVENTS); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiRemoveTableHandler) acpica-unix-20250404/source/components/tables/tbfind.c0000775000175000017500000001274314773714133022122 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: tbfind - find table * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "actables.h" #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME ("tbfind") /******************************************************************************* * * FUNCTION: AcpiTbFindTable * * PARAMETERS: Signature - String with ACPI table signature * OemId - String with the table OEM ID * OemTableId - String with the OEM Table ID * TableIndex - Where the table index is returned * * RETURN: Status and table index * * DESCRIPTION: Find an ACPI table (in the RSDT/XSDT) that matches the * Signature, OEM ID and OEM Table ID. Returns an index that can * be used to get the table header or entire table. * ******************************************************************************/ ACPI_STATUS AcpiTbFindTable ( char *Signature, char *OemId, char *OemTableId, UINT32 *TableIndex) { ACPI_STATUS Status = AE_OK; ACPI_TABLE_HEADER Header; UINT32 i; ACPI_FUNCTION_TRACE (TbFindTable); /* Validate the input table signature */ if (!AcpiUtValidNameseg (Signature)) { return_ACPI_STATUS (AE_BAD_SIGNATURE); } /* Don't allow the OEM strings to be too long */ if ((strlen (OemId) > ACPI_OEM_ID_SIZE) || (strlen (OemTableId) > ACPI_OEM_TABLE_ID_SIZE)) { return_ACPI_STATUS (AE_AML_STRING_LIMIT); } /* Normalize the input strings */ memset (&Header, 0, sizeof (ACPI_TABLE_HEADER)); ACPI_COPY_NAMESEG (Header.Signature, Signature); memcpy (Header.OemId, OemId, ACPI_OEM_ID_SIZE); memcpy (Header.OemTableId, OemTableId, ACPI_OEM_TABLE_ID_SIZE); /* Search for the table */ (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) { if (memcmp (&(AcpiGbl_RootTableList.Tables[i].Signature), Header.Signature, ACPI_NAMESEG_SIZE)) { /* Not the requested table */ continue; } /* Table with matching signature has been found */ if (!AcpiGbl_RootTableList.Tables[i].Pointer) { /* Table is not currently mapped, map it */ Status = AcpiTbValidateTable (&AcpiGbl_RootTableList.Tables[i]); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } if (!AcpiGbl_RootTableList.Tables[i].Pointer) { continue; } } /* Check for table match on all IDs */ if (!memcmp (AcpiGbl_RootTableList.Tables[i].Pointer->Signature, Header.Signature, ACPI_NAMESEG_SIZE) && (!OemId[0] || !memcmp (AcpiGbl_RootTableList.Tables[i].Pointer->OemId, Header.OemId, ACPI_OEM_ID_SIZE)) && (!OemTableId[0] || !memcmp (AcpiGbl_RootTableList.Tables[i].Pointer->OemTableId, Header.OemTableId, ACPI_OEM_TABLE_ID_SIZE))) { *TableIndex = i; ACPI_DEBUG_PRINT ((ACPI_DB_TABLES, "Found table [%4.4s]\n", Header.Signature)); goto UnlockAndExit; } } Status = AE_NOT_FOUND; UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/tables/tbprint.c0000775000175000017500000001424714773714133022337 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: tbprint - Table output utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "actables.h" #include "acdisasm.h" #include "acutils.h" #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME ("tbprint") /* Local prototypes */ static void AcpiTbFixString ( char *String, ACPI_SIZE Length); static void AcpiTbCleanupTableHeader ( ACPI_TABLE_HEADER *OutHeader, ACPI_TABLE_HEADER *Header); /******************************************************************************* * * FUNCTION: AcpiTbFixString * * PARAMETERS: String - String to be repaired * Length - Maximum length * * RETURN: None * * DESCRIPTION: Replace every non-printable or non-ascii byte in the string * with a question mark '?'. * ******************************************************************************/ static void AcpiTbFixString ( char *String, ACPI_SIZE Length) { while (Length && *String) { if (!isprint ((int) (UINT8) *String)) { *String = '?'; } String++; Length--; } } /******************************************************************************* * * FUNCTION: AcpiTbCleanupTableHeader * * PARAMETERS: OutHeader - Where the cleaned header is returned * Header - Input ACPI table header * * RETURN: Returns the cleaned header in OutHeader * * DESCRIPTION: Copy the table header and ensure that all "string" fields in * the header consist of printable characters. * ******************************************************************************/ static void AcpiTbCleanupTableHeader ( ACPI_TABLE_HEADER *OutHeader, ACPI_TABLE_HEADER *Header) { memcpy (OutHeader, Header, sizeof (ACPI_TABLE_HEADER)); AcpiTbFixString (OutHeader->Signature, ACPI_NAMESEG_SIZE); AcpiTbFixString (OutHeader->OemId, ACPI_OEM_ID_SIZE); AcpiTbFixString (OutHeader->OemTableId, ACPI_OEM_TABLE_ID_SIZE); AcpiTbFixString (OutHeader->AslCompilerId, ACPI_NAMESEG_SIZE); } /******************************************************************************* * * FUNCTION: AcpiTbPrintTableHeader * * PARAMETERS: Address - Table physical address * Header - Table header * * RETURN: None * * DESCRIPTION: Print an ACPI table header. Special cases for FACS and RSDP. * ******************************************************************************/ void AcpiTbPrintTableHeader ( ACPI_PHYSICAL_ADDRESS Address, ACPI_TABLE_HEADER *Header) { ACPI_TABLE_HEADER LocalHeader; if (ACPI_COMPARE_NAMESEG (Header->Signature, ACPI_SIG_FACS)) { /* FACS only has signature and length fields */ ACPI_INFO (("%-4.4s 0x%8.8X%8.8X %06X", Header->Signature, ACPI_FORMAT_UINT64 (Address), Header->Length)); } else if (ACPI_VALIDATE_RSDP_SIG (ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->Signature)) { /* RSDP has no common fields */ memcpy (LocalHeader.OemId, ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->OemId, ACPI_OEM_ID_SIZE); AcpiTbFixString (LocalHeader.OemId, ACPI_OEM_ID_SIZE); ACPI_INFO (("RSDP 0x%8.8X%8.8X %06X (v%.2d %-6.6s)", ACPI_FORMAT_UINT64 (Address), (ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->Revision > 0) ? ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->Length : 20, ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->Revision, LocalHeader.OemId)); } else { /* Standard ACPI table with full common header */ AcpiTbCleanupTableHeader (&LocalHeader, Header); ACPI_INFO (( "%-4.4s 0x%8.8X%8.8X" " %06X (v%.2d %-6.6s %-8.8s %08X %-4.4s %08X)", LocalHeader.Signature, ACPI_FORMAT_UINT64 (Address), LocalHeader.Length, LocalHeader.Revision, LocalHeader.OemId, LocalHeader.OemTableId, LocalHeader.OemRevision, LocalHeader.AslCompilerId, LocalHeader.AslCompilerRevision)); } } acpica-unix-20250404/source/components/tables/tbdata.c0000775000175000017500000010373314773714133022113 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: tbdata - Table manager data structure functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "actables.h" #include "acevents.h" #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME ("tbdata") /* Local prototypes */ static ACPI_STATUS AcpiTbCheckDuplication ( ACPI_TABLE_DESC *TableDesc, UINT32 *TableIndex); static BOOLEAN AcpiTbCompareTables ( ACPI_TABLE_DESC *TableDesc, UINT32 TableIndex); /******************************************************************************* * * FUNCTION: AcpiTbCompareTables * * PARAMETERS: TableDesc - Table 1 descriptor to be compared * TableIndex - Index of table 2 to be compared * * RETURN: TRUE if both tables are identical. * * DESCRIPTION: This function compares a table with another table that has * already been installed in the root table list. * ******************************************************************************/ static BOOLEAN AcpiTbCompareTables ( ACPI_TABLE_DESC *TableDesc, UINT32 TableIndex) { ACPI_STATUS Status = AE_OK; BOOLEAN IsIdentical; ACPI_TABLE_HEADER *Table; UINT32 TableLength; UINT8 TableFlags; Status = AcpiTbAcquireTable (&AcpiGbl_RootTableList.Tables[TableIndex], &Table, &TableLength, &TableFlags); if (ACPI_FAILURE (Status)) { return (FALSE); } /* * Check for a table match on the entire table length, * not just the header. */ IsIdentical = (BOOLEAN)((TableDesc->Length != TableLength || memcmp (TableDesc->Pointer, Table, TableLength)) ? FALSE : TRUE); /* Release the acquired table */ AcpiTbReleaseTable (Table, TableLength, TableFlags); return (IsIdentical); } /******************************************************************************* * * FUNCTION: AcpiTbInitTableDescriptor * * PARAMETERS: TableDesc - Table descriptor * Address - Physical address of the table * Flags - Allocation flags of the table * Table - Pointer to the table * * RETURN: None * * DESCRIPTION: Initialize a new table descriptor * ******************************************************************************/ void AcpiTbInitTableDescriptor ( ACPI_TABLE_DESC *TableDesc, ACPI_PHYSICAL_ADDRESS Address, UINT8 Flags, ACPI_TABLE_HEADER *Table) { /* * Initialize the table descriptor. Set the pointer to NULL for external * tables, since the table is not fully mapped at this time. */ memset (TableDesc, 0, sizeof (ACPI_TABLE_DESC)); TableDesc->Address = Address; TableDesc->Length = Table->Length; TableDesc->Flags = Flags; ACPI_MOVE_32_TO_32 (TableDesc->Signature.Ascii, Table->Signature); switch (TableDesc->Flags & ACPI_TABLE_ORIGIN_MASK) { case ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL: case ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL: TableDesc->Pointer = Table; break; case ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL: default: break; } } /******************************************************************************* * * FUNCTION: AcpiTbAcquireTable * * PARAMETERS: TableDesc - Table descriptor * TablePtr - Where table is returned * TableLength - Where table length is returned * TableFlags - Where table allocation flags are returned * * RETURN: Status * * DESCRIPTION: Acquire an ACPI table. It can be used for tables not * maintained in the AcpiGbl_RootTableList. * ******************************************************************************/ ACPI_STATUS AcpiTbAcquireTable ( ACPI_TABLE_DESC *TableDesc, ACPI_TABLE_HEADER **TablePtr, UINT32 *TableLength, UINT8 *TableFlags) { ACPI_TABLE_HEADER *Table = NULL; switch (TableDesc->Flags & ACPI_TABLE_ORIGIN_MASK) { case ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL: Table = AcpiOsMapMemory (TableDesc->Address, TableDesc->Length); break; case ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL: case ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL: Table = TableDesc->Pointer; break; default: break; } /* Table is not valid yet */ if (!Table) { return (AE_NO_MEMORY); } /* Fill the return values */ *TablePtr = Table; *TableLength = TableDesc->Length; *TableFlags = TableDesc->Flags; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiTbReleaseTable * * PARAMETERS: Table - Pointer for the table * TableLength - Length for the table * TableFlags - Allocation flags for the table * * RETURN: None * * DESCRIPTION: Release a table. The inverse of AcpiTbAcquireTable(). * ******************************************************************************/ void AcpiTbReleaseTable ( ACPI_TABLE_HEADER *Table, UINT32 TableLength, UINT8 TableFlags) { switch (TableFlags & ACPI_TABLE_ORIGIN_MASK) { case ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL: AcpiOsUnmapMemory (Table, TableLength); break; case ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL: case ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL: default: break; } } /******************************************************************************* * * FUNCTION: AcpiTbAcquireTempTable * * PARAMETERS: TableDesc - Table descriptor to be acquired * Address - Address of the table * Flags - Allocation flags of the table * Table - Pointer to the table (required for virtual * origins, optional for physical) * * RETURN: Status * * DESCRIPTION: This function validates the table header to obtain the length * of a table and fills the table descriptor to make its state as * "INSTALLED". Such a table descriptor is only used for verified * installation. * ******************************************************************************/ ACPI_STATUS AcpiTbAcquireTempTable ( ACPI_TABLE_DESC *TableDesc, ACPI_PHYSICAL_ADDRESS Address, UINT8 Flags, ACPI_TABLE_HEADER *Table) { BOOLEAN MappedTable = FALSE; switch (Flags & ACPI_TABLE_ORIGIN_MASK) { case ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL: /* Get the length of the full table from the header */ if (!Table) { Table = AcpiOsMapMemory (Address, sizeof (ACPI_TABLE_HEADER)); if (!Table) { return (AE_NO_MEMORY); } MappedTable = TRUE; } break; case ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL: case ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL: if (!Table) { return (AE_BAD_PARAMETER); } break; default: /* Table is not valid yet */ return (AE_NO_MEMORY); } AcpiTbInitTableDescriptor (TableDesc, Address, Flags, Table); if (MappedTable) { AcpiOsUnmapMemory (Table, sizeof (ACPI_TABLE_HEADER)); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiTbReleaseTempTable * * PARAMETERS: TableDesc - Table descriptor to be released * * RETURN: Status * * DESCRIPTION: The inverse of AcpiTbAcquireTempTable(). * *****************************************************************************/ void AcpiTbReleaseTempTable ( ACPI_TABLE_DESC *TableDesc) { /* * Note that the .Address is maintained by the callers of * AcpiTbAcquireTempTable(), thus do not invoke AcpiTbUninstallTable() * where .Address will be freed. */ AcpiTbInvalidateTable (TableDesc); } /****************************************************************************** * * FUNCTION: AcpiTbValidateTable * * PARAMETERS: TableDesc - Table descriptor * * RETURN: Status * * DESCRIPTION: This function is called to validate the table, the returned * table descriptor is in "VALIDATED" state. * *****************************************************************************/ ACPI_STATUS AcpiTbValidateTable ( ACPI_TABLE_DESC *TableDesc) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (TbValidateTable); /* Validate the table if necessary */ if (!TableDesc->Pointer) { Status = AcpiTbAcquireTable (TableDesc, &TableDesc->Pointer, &TableDesc->Length, &TableDesc->Flags); if (!TableDesc->Pointer) { Status = AE_NO_MEMORY; } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbInvalidateTable * * PARAMETERS: TableDesc - Table descriptor * * RETURN: None * * DESCRIPTION: Invalidate one internal ACPI table, this is the inverse of * AcpiTbValidateTable(). * ******************************************************************************/ void AcpiTbInvalidateTable ( ACPI_TABLE_DESC *TableDesc) { ACPI_FUNCTION_TRACE (TbInvalidateTable); /* Table must be validated */ if (!TableDesc->Pointer) { return_VOID; } AcpiTbReleaseTable (TableDesc->Pointer, TableDesc->Length, TableDesc->Flags); switch (TableDesc->Flags & ACPI_TABLE_ORIGIN_MASK) { case ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL: TableDesc->Pointer = NULL; break; case ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL: case ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL: default: break; } return_VOID; } /****************************************************************************** * * FUNCTION: AcpiTbValidateTempTable * * PARAMETERS: TableDesc - Table descriptor * * RETURN: Status * * DESCRIPTION: This function is called to validate the table, the returned * table descriptor is in "VALIDATED" state. * *****************************************************************************/ ACPI_STATUS AcpiTbValidateTempTable ( ACPI_TABLE_DESC *TableDesc) { if (!TableDesc->Pointer && !AcpiGbl_EnableTableValidation) { /* * Only validates the header of the table. * Note that Length contains the size of the mapping after invoking * this work around, this value is required by * AcpiTbReleaseTempTable(). * We can do this because in AcpiInitTableDescriptor(), the Length * field of the installed descriptor is filled with the actual * table length obtaining from the table header. */ TableDesc->Length = sizeof (ACPI_TABLE_HEADER); } return (AcpiTbValidateTable (TableDesc)); } /******************************************************************************* * * FUNCTION: AcpiTbCheckDuplication * * PARAMETERS: TableDesc - Table descriptor * TableIndex - Where the table index is returned * * RETURN: Status * * DESCRIPTION: Avoid installing duplicated tables. However table override and * user aided dynamic table load is allowed, thus comparing the * address of the table is not sufficient, and checking the entire * table content is required. * ******************************************************************************/ static ACPI_STATUS AcpiTbCheckDuplication ( ACPI_TABLE_DESC *TableDesc, UINT32 *TableIndex) { UINT32 i; ACPI_FUNCTION_TRACE (TbCheckDuplication); /* Check if table is already registered */ for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) { /* Do not compare with unverified tables */ if (!(AcpiGbl_RootTableList.Tables[i].Flags & ACPI_TABLE_IS_VERIFIED)) { continue; } /* * Check for a table match on the entire table length, * not just the header. */ if (!AcpiTbCompareTables (TableDesc, i)) { continue; } /* * Note: the current mechanism does not unregister a table if it is * dynamically unloaded. The related namespace entries are deleted, * but the table remains in the root table list. * * The assumption here is that the number of different tables that * will be loaded is actually small, and there is minimal overhead * in just keeping the table in case it is needed again. * * If this assumption changes in the future (perhaps on large * machines with many table load/unload operations), tables will * need to be unregistered when they are unloaded, and slots in the * root table list should be reused when empty. */ if (AcpiGbl_RootTableList.Tables[i].Flags & ACPI_TABLE_IS_LOADED) { /* Table is still loaded, this is an error */ return_ACPI_STATUS (AE_ALREADY_EXISTS); } else { *TableIndex = i; return_ACPI_STATUS (AE_CTRL_TERMINATE); } } /* Indicate no duplication to the caller */ return_ACPI_STATUS (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiTbVerifyTempTable * * PARAMETERS: TableDesc - Table descriptor * Signature - Table signature to verify * TableIndex - Where the table index is returned * * RETURN: Status * * DESCRIPTION: This function is called to validate and verify the table, the * returned table descriptor is in "VALIDATED" state. * Note that 'TableIndex' is required to be set to !NULL to * enable duplication check. * *****************************************************************************/ ACPI_STATUS AcpiTbVerifyTempTable ( ACPI_TABLE_DESC *TableDesc, char *Signature, UINT32 *TableIndex) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (TbVerifyTempTable); /* Validate the table */ Status = AcpiTbValidateTempTable (TableDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (AE_NO_MEMORY); } /* If a particular signature is expected (DSDT/FACS), it must match */ if (Signature && !ACPI_COMPARE_NAMESEG (&TableDesc->Signature, Signature)) { ACPI_BIOS_ERROR ((AE_INFO, "Invalid signature 0x%X for ACPI table, expected [%s]", TableDesc->Signature.Integer, Signature)); Status = AE_BAD_SIGNATURE; goto InvalidateAndExit; } if (AcpiGbl_EnableTableValidation) { /* Verify the checksum */ Status = AcpiUtVerifyChecksum (TableDesc->Pointer, TableDesc->Length); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, AE_NO_MEMORY, "%4.4s 0x%8.8X%8.8X" " Attempted table install failed", AcpiUtValidNameseg (TableDesc->Signature.Ascii) ? TableDesc->Signature.Ascii : "????", ACPI_FORMAT_UINT64 (TableDesc->Address))); goto InvalidateAndExit; } /* Avoid duplications */ if (TableIndex) { Status = AcpiTbCheckDuplication (TableDesc, TableIndex); if (ACPI_FAILURE (Status)) { if (Status != AE_CTRL_TERMINATE) { ACPI_EXCEPTION ((AE_INFO, Status, "%4.4s 0x%8.8X%8.8X" " Table is already loaded", AcpiUtValidNameseg (TableDesc->Signature.Ascii) ? TableDesc->Signature.Ascii : "????", ACPI_FORMAT_UINT64 (TableDesc->Address))); } goto InvalidateAndExit; } } TableDesc->Flags |= ACPI_TABLE_IS_VERIFIED; } return_ACPI_STATUS (Status); InvalidateAndExit: AcpiTbInvalidateTable (TableDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbResizeRootTableList * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Expand the size of global table array * ******************************************************************************/ ACPI_STATUS AcpiTbResizeRootTableList ( void) { ACPI_TABLE_DESC *Tables; UINT32 TableCount; UINT32 CurrentTableCount, MaxTableCount; UINT32 i; ACPI_FUNCTION_TRACE (TbResizeRootTableList); /* AllowResize flag is a parameter to AcpiInitializeTables */ if (!(AcpiGbl_RootTableList.Flags & ACPI_ROOT_ALLOW_RESIZE)) { ACPI_ERROR ((AE_INFO, "Resize of Root Table Array is not allowed")); return_ACPI_STATUS (AE_SUPPORT); } /* Increase the Table Array size */ if (AcpiGbl_RootTableList.Flags & ACPI_ROOT_ORIGIN_ALLOCATED) { TableCount = AcpiGbl_RootTableList.MaxTableCount; } else { TableCount = AcpiGbl_RootTableList.CurrentTableCount; } MaxTableCount = TableCount + ACPI_ROOT_TABLE_SIZE_INCREMENT; Tables = ACPI_ALLOCATE_ZEROED ( ((ACPI_SIZE) MaxTableCount) * sizeof (ACPI_TABLE_DESC)); if (!Tables) { ACPI_ERROR ((AE_INFO, "Could not allocate new root table array")); return_ACPI_STATUS (AE_NO_MEMORY); } /* Copy and free the previous table array */ CurrentTableCount = 0; if (AcpiGbl_RootTableList.Tables) { for (i = 0; i < TableCount; i++) { if (AcpiGbl_RootTableList.Tables[i].Address) { memcpy (Tables + CurrentTableCount, AcpiGbl_RootTableList.Tables + i, sizeof (ACPI_TABLE_DESC)); CurrentTableCount++; } } if (AcpiGbl_RootTableList.Flags & ACPI_ROOT_ORIGIN_ALLOCATED) { ACPI_FREE (AcpiGbl_RootTableList.Tables); } } AcpiGbl_RootTableList.Tables = Tables; AcpiGbl_RootTableList.MaxTableCount = MaxTableCount; AcpiGbl_RootTableList.CurrentTableCount = CurrentTableCount; AcpiGbl_RootTableList.Flags |= ACPI_ROOT_ORIGIN_ALLOCATED; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiTbGetNextTableDescriptor * * PARAMETERS: TableIndex - Where table index is returned * TableDesc - Where table descriptor is returned * * RETURN: Status and table index/descriptor. * * DESCRIPTION: Allocate a new ACPI table entry to the global table list * ******************************************************************************/ ACPI_STATUS AcpiTbGetNextTableDescriptor ( UINT32 *TableIndex, ACPI_TABLE_DESC **TableDesc) { ACPI_STATUS Status; UINT32 i; /* Ensure that there is room for the table in the Root Table List */ if (AcpiGbl_RootTableList.CurrentTableCount >= AcpiGbl_RootTableList.MaxTableCount) { Status = AcpiTbResizeRootTableList(); if (ACPI_FAILURE (Status)) { return (Status); } } i = AcpiGbl_RootTableList.CurrentTableCount; AcpiGbl_RootTableList.CurrentTableCount++; if (TableIndex) { *TableIndex = i; } if (TableDesc) { *TableDesc = &AcpiGbl_RootTableList.Tables[i]; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiTbTerminate * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Delete all internal ACPI tables * ******************************************************************************/ void AcpiTbTerminate ( void) { UINT32 i; ACPI_FUNCTION_TRACE (TbTerminate); (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); /* Delete the individual tables */ for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) { AcpiTbUninstallTable (&AcpiGbl_RootTableList.Tables[i]); } /* * Delete the root table array if allocated locally. Array cannot be * mapped, so we don't need to check for that flag. */ if (AcpiGbl_RootTableList.Flags & ACPI_ROOT_ORIGIN_ALLOCATED) { ACPI_FREE (AcpiGbl_RootTableList.Tables); } AcpiGbl_RootTableList.Tables = NULL; AcpiGbl_RootTableList.Flags = 0; AcpiGbl_RootTableList.CurrentTableCount = 0; ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "ACPI Tables freed\n")); (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiTbDeleteNamespaceByOwner * * PARAMETERS: TableIndex - Table index * * RETURN: Status * * DESCRIPTION: Delete all namespace objects created when this table was loaded. * ******************************************************************************/ ACPI_STATUS AcpiTbDeleteNamespaceByOwner ( UINT32 TableIndex) { ACPI_OWNER_ID OwnerId; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (TbDeleteNamespaceByOwner); Status = AcpiUtAcquireMutex (ACPI_MTX_TABLES); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (TableIndex >= AcpiGbl_RootTableList.CurrentTableCount) { /* The table index does not exist */ (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_ACPI_STATUS (AE_NOT_EXIST); } /* Get the owner ID for this table, used to delete namespace nodes */ OwnerId = AcpiGbl_RootTableList.Tables[TableIndex].OwnerId; (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); /* * Need to acquire the namespace writer lock to prevent interference * with any concurrent namespace walks. The interpreter must be * released during the deletion since the acquisition of the deletion * lock may block, and also since the execution of a namespace walk * must be allowed to use the interpreter. */ Status = AcpiUtAcquireWriteLock (&AcpiGbl_NamespaceRwLock); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } AcpiNsDeleteNamespaceByOwner (OwnerId); AcpiUtReleaseWriteLock (&AcpiGbl_NamespaceRwLock); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbAllocateOwnerId * * PARAMETERS: TableIndex - Table index * * RETURN: Status * * DESCRIPTION: Allocates OwnerId in TableDesc * ******************************************************************************/ ACPI_STATUS AcpiTbAllocateOwnerId ( UINT32 TableIndex) { ACPI_STATUS Status = AE_BAD_PARAMETER; ACPI_FUNCTION_TRACE (TbAllocateOwnerId); (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); if (TableIndex < AcpiGbl_RootTableList.CurrentTableCount) { Status = AcpiUtAllocateOwnerId ( &(AcpiGbl_RootTableList.Tables[TableIndex].OwnerId)); } (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbReleaseOwnerId * * PARAMETERS: TableIndex - Table index * * RETURN: Status * * DESCRIPTION: Releases OwnerId in TableDesc * ******************************************************************************/ ACPI_STATUS AcpiTbReleaseOwnerId ( UINT32 TableIndex) { ACPI_STATUS Status = AE_BAD_PARAMETER; ACPI_FUNCTION_TRACE (TbReleaseOwnerId); (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); if (TableIndex < AcpiGbl_RootTableList.CurrentTableCount) { AcpiUtReleaseOwnerId ( &(AcpiGbl_RootTableList.Tables[TableIndex].OwnerId)); Status = AE_OK; } (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbGetOwnerId * * PARAMETERS: TableIndex - Table index * OwnerId - Where the table OwnerId is returned * * RETURN: Status * * DESCRIPTION: returns OwnerId for the ACPI table * ******************************************************************************/ ACPI_STATUS AcpiTbGetOwnerId ( UINT32 TableIndex, ACPI_OWNER_ID *OwnerId) { ACPI_STATUS Status = AE_BAD_PARAMETER; ACPI_FUNCTION_TRACE (TbGetOwnerId); (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); if (TableIndex < AcpiGbl_RootTableList.CurrentTableCount) { *OwnerId = AcpiGbl_RootTableList.Tables[TableIndex].OwnerId; Status = AE_OK; } (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbIsTableLoaded * * PARAMETERS: TableIndex - Index into the root table * * RETURN: Table Loaded Flag * ******************************************************************************/ BOOLEAN AcpiTbIsTableLoaded ( UINT32 TableIndex) { BOOLEAN IsLoaded = FALSE; (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); if (TableIndex < AcpiGbl_RootTableList.CurrentTableCount) { IsLoaded = (BOOLEAN) (AcpiGbl_RootTableList.Tables[TableIndex].Flags & ACPI_TABLE_IS_LOADED); } (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return (IsLoaded); } /******************************************************************************* * * FUNCTION: AcpiTbSetTableLoadedFlag * * PARAMETERS: TableIndex - Table index * IsLoaded - TRUE if table is loaded, FALSE otherwise * * RETURN: None * * DESCRIPTION: Sets the table loaded flag to either TRUE or FALSE. * ******************************************************************************/ void AcpiTbSetTableLoadedFlag ( UINT32 TableIndex, BOOLEAN IsLoaded) { (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); if (TableIndex < AcpiGbl_RootTableList.CurrentTableCount) { if (IsLoaded) { AcpiGbl_RootTableList.Tables[TableIndex].Flags |= ACPI_TABLE_IS_LOADED; } else { AcpiGbl_RootTableList.Tables[TableIndex].Flags &= ~ACPI_TABLE_IS_LOADED; } } (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); } /******************************************************************************* * * FUNCTION: AcpiTbLoadTable * * PARAMETERS: TableIndex - Table index * ParentNode - Where table index is returned * * RETURN: Status * * DESCRIPTION: Load an ACPI table * ******************************************************************************/ ACPI_STATUS AcpiTbLoadTable ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *ParentNode) { ACPI_TABLE_HEADER *Table; ACPI_STATUS Status; ACPI_OWNER_ID OwnerId; ACPI_FUNCTION_TRACE (TbLoadTable); /* * Note: Now table is "INSTALLED", it must be validated before * using. */ Status = AcpiGetTableByIndex (TableIndex, &Table); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiNsLoadTable (TableIndex, ParentNode); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Update GPEs for any new _Lxx/_Exx methods. Ignore errors. The host is * responsible for discovering any new wake GPEs by running _PRW methods * that may have been loaded by this table. */ Status = AcpiTbGetOwnerId (TableIndex, &OwnerId); if (ACPI_SUCCESS (Status)) { AcpiEvUpdateGpes (OwnerId); } /* Invoke table handler */ AcpiTbNotifyTable (ACPI_TABLE_EVENT_LOAD, Table); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbInstallAndLoadTable * * PARAMETERS: Address - Physical address of the table * Flags - Allocation flags of the table * Table - Pointer to the table (required for * virtual origins, optional for * physical) * Override - Whether override should be performed * TableIndex - Where table index is returned * * RETURN: Status * * DESCRIPTION: Install and load an ACPI table * ******************************************************************************/ ACPI_STATUS AcpiTbInstallAndLoadTable ( ACPI_PHYSICAL_ADDRESS Address, UINT8 Flags, ACPI_TABLE_HEADER *Table, BOOLEAN Override, UINT32 *TableIndex) { ACPI_STATUS Status; UINT32 i; ACPI_FUNCTION_TRACE (TbInstallAndLoadTable); /* Install the table and load it into the namespace */ Status = AcpiTbInstallStandardTable (Address, Flags, Table, TRUE, Override, &i); if (ACPI_FAILURE (Status)) { goto Exit; } Status = AcpiTbLoadTable (i, AcpiGbl_RootNode); Exit: *TableIndex = i; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbUnloadTable * * PARAMETERS: TableIndex - Table index * * RETURN: Status * * DESCRIPTION: Unload an ACPI table * ******************************************************************************/ ACPI_STATUS AcpiTbUnloadTable ( UINT32 TableIndex) { ACPI_STATUS Status = AE_OK; ACPI_TABLE_HEADER *Table; ACPI_FUNCTION_TRACE (TbUnloadTable); /* Ensure the table is still loaded */ if (!AcpiTbIsTableLoaded (TableIndex)) { return_ACPI_STATUS (AE_NOT_EXIST); } /* Invoke table handler */ Status = AcpiGetTableByIndex (TableIndex, &Table); if (ACPI_SUCCESS (Status)) { AcpiTbNotifyTable (ACPI_TABLE_EVENT_UNLOAD, Table); } /* Delete the portion of the namespace owned by this table */ Status = AcpiTbDeleteNamespaceByOwner (TableIndex); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } (void) AcpiTbReleaseOwnerId (TableIndex); AcpiTbSetTableLoadedFlag (TableIndex, FALSE); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbNotifyTable * * PARAMETERS: Event - Table event * Table - Validated table pointer * * RETURN: None * * DESCRIPTION: Notify a table event to the users. * ******************************************************************************/ void AcpiTbNotifyTable ( UINT32 Event, void *Table) { /* Invoke table handler if present */ if (AcpiGbl_TableHandler) { (void) AcpiGbl_TableHandler (Event, Table, AcpiGbl_TableHandlerContext); } } acpica-unix-20250404/source/components/tables/tbutils.c0000775000175000017500000003633614773714133022346 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: tbutils - ACPI Table utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "actables.h" #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME ("tbutils") /* Local prototypes */ static ACPI_PHYSICAL_ADDRESS AcpiTbGetRootTableEntry ( UINT8 *TableEntry, UINT32 TableEntrySize); /******************************************************************************* * * FUNCTION: AcpiTbInitializeFacs * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Create a permanent mapping for the FADT and save it in a global * for accessing the Global Lock and Firmware Waking Vector * ******************************************************************************/ ACPI_STATUS AcpiTbInitializeFacs ( void) { ACPI_TABLE_FACS *Facs; if (AcpiGbl_FADT.XFacs && (!AcpiGbl_FADT.Facs || !AcpiGbl_Use32BitFacsAddresses)) { (void) AcpiGetTableByIndex (AcpiGbl_XFacsIndex, ACPI_CAST_INDIRECT_PTR (ACPI_TABLE_HEADER, &Facs)); AcpiGbl_FACS = Facs; } else if (AcpiGbl_FADT.Facs) { (void) AcpiGetTableByIndex (AcpiGbl_FacsIndex, ACPI_CAST_INDIRECT_PTR (ACPI_TABLE_HEADER, &Facs)); AcpiGbl_FACS = Facs; } /* If there is no FACS, just continue. There was already an error msg */ return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiTbCheckDsdtHeader * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Quick compare to check validity of the DSDT. This will detect * if the DSDT has been replaced from outside the OS and/or if * the DSDT header has been corrupted. * ******************************************************************************/ void AcpiTbCheckDsdtHeader ( void) { /* Compare original length and checksum to current values */ if (AcpiGbl_OriginalDsdtHeader.Length != AcpiGbl_DSDT->Length || AcpiGbl_OriginalDsdtHeader.Checksum != AcpiGbl_DSDT->Checksum) { ACPI_BIOS_ERROR ((AE_INFO, "The DSDT has been corrupted or replaced - " "old, new headers below")); AcpiTbPrintTableHeader (0, &AcpiGbl_OriginalDsdtHeader); AcpiTbPrintTableHeader (0, AcpiGbl_DSDT); /* Disable further error messages */ AcpiGbl_OriginalDsdtHeader.Length = AcpiGbl_DSDT->Length; AcpiGbl_OriginalDsdtHeader.Checksum = AcpiGbl_DSDT->Checksum; } } /******************************************************************************* * * FUNCTION: AcpiTbCopyDsdt * * PARAMETERS: TableIndex - Index of installed table to copy * * RETURN: The copied DSDT * * DESCRIPTION: Implements a subsystem option to copy the DSDT to local memory. * Some very bad BIOSs are known to either corrupt the DSDT or * install a new, bad DSDT. This copy works around the problem. * ******************************************************************************/ ACPI_TABLE_HEADER * AcpiTbCopyDsdt ( UINT32 TableIndex) { ACPI_TABLE_HEADER *NewTable; ACPI_TABLE_DESC *TableDesc; TableDesc = &AcpiGbl_RootTableList.Tables[TableIndex]; NewTable = ACPI_ALLOCATE (TableDesc->Length); if (!NewTable) { ACPI_ERROR ((AE_INFO, "Could not copy DSDT of length 0x%X", TableDesc->Length)); return (NULL); } memcpy (NewTable, TableDesc->Pointer, TableDesc->Length); AcpiTbUninstallTable (TableDesc); AcpiTbInitTableDescriptor ( &AcpiGbl_RootTableList.Tables[AcpiGbl_DsdtIndex], ACPI_PTR_TO_PHYSADDR (NewTable), ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL, NewTable); ACPI_INFO (( "Forced DSDT copy: length 0x%05X copied locally, original unmapped", NewTable->Length)); return (NewTable); } /******************************************************************************* * * FUNCTION: AcpiTbGetRootTableEntry * * PARAMETERS: TableEntry - Pointer to the RSDT/XSDT table entry * TableEntrySize - sizeof 32 or 64 (RSDT or XSDT) * * RETURN: Physical address extracted from the root table * * DESCRIPTION: Get one root table entry. Handles 32-bit and 64-bit cases on * both 32-bit and 64-bit platforms * * NOTE: ACPI_PHYSICAL_ADDRESS is 32-bit on 32-bit platforms, 64-bit on * 64-bit platforms. * ******************************************************************************/ static ACPI_PHYSICAL_ADDRESS AcpiTbGetRootTableEntry ( UINT8 *TableEntry, UINT32 TableEntrySize) { UINT32 Address32; UINT64 Address64; /* * Get the table physical address (32-bit for RSDT, 64-bit for XSDT): * Note: Addresses are 32-bit aligned (not 64) in both RSDT and XSDT */ if (TableEntrySize == ACPI_RSDT_ENTRY_SIZE) { /* * 32-bit platform, RSDT: Return 32-bit table entry * 64-bit platform, RSDT: Expand 32-bit to 64-bit and return */ ACPI_MOVE_32_TO_32(&Address32, TableEntry); return Address32; } else { /* * 32-bit platform, XSDT: Truncate 64-bit to 32-bit and return * 64-bit platform, XSDT: Move (unaligned) 64-bit to local, * return 64-bit */ ACPI_MOVE_64_TO_64 (&Address64, TableEntry); #if ACPI_MACHINE_WIDTH == 32 if (Address64 > ACPI_UINT32_MAX) { /* Will truncate 64-bit address to 32 bits, issue warning */ ACPI_BIOS_WARNING ((AE_INFO, "64-bit Physical Address in XSDT is too large (0x%8.8X%8.8X)," " truncating", ACPI_FORMAT_UINT64 (Address64))); } #endif return ((ACPI_PHYSICAL_ADDRESS) (Address64)); } } /******************************************************************************* * * FUNCTION: AcpiTbParseRootTable * * PARAMETERS: RsdpAddress - Pointer to the RSDP * * RETURN: Status * * DESCRIPTION: This function is called to parse the Root System Description * Table (RSDT or XSDT) * * NOTE: Tables are mapped (not copied) for efficiency. The FACS must * be mapped and cannot be copied because it contains the actual * memory location of the ACPI Global Lock. * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiTbParseRootTable ( ACPI_PHYSICAL_ADDRESS RsdpAddress) { ACPI_TABLE_RSDP *Rsdp; UINT32 TableEntrySize; UINT32 i; UINT32 TableCount; ACPI_TABLE_HEADER *Table; ACPI_PHYSICAL_ADDRESS Address; UINT32 Length; UINT8 *TableEntry; ACPI_STATUS Status; UINT32 TableIndex; ACPI_FUNCTION_TRACE (TbParseRootTable); /* Map the entire RSDP and extract the address of the RSDT or XSDT */ Rsdp = AcpiOsMapMemory (RsdpAddress, sizeof (ACPI_TABLE_RSDP)); if (!Rsdp) { return_ACPI_STATUS (AE_NO_MEMORY); } AcpiTbPrintTableHeader (RsdpAddress, ACPI_CAST_PTR (ACPI_TABLE_HEADER, Rsdp)); /* Use XSDT if present and not overridden. Otherwise, use RSDT */ if ((Rsdp->Revision > 1) && Rsdp->XsdtPhysicalAddress && !AcpiGbl_DoNotUseXsdt) { /* * RSDP contains an XSDT (64-bit physical addresses). We must use * the XSDT if the revision is > 1 and the XSDT pointer is present, * as per the ACPI specification. */ Address = (ACPI_PHYSICAL_ADDRESS) Rsdp->XsdtPhysicalAddress; TableEntrySize = ACPI_XSDT_ENTRY_SIZE; } else { /* Root table is an RSDT (32-bit physical addresses) */ Address = (ACPI_PHYSICAL_ADDRESS) Rsdp->RsdtPhysicalAddress; TableEntrySize = ACPI_RSDT_ENTRY_SIZE; } /* * It is not possible to map more than one entry in some environments, * so unmap the RSDP here before mapping other tables */ AcpiOsUnmapMemory (Rsdp, sizeof (ACPI_TABLE_RSDP)); /* Map the RSDT/XSDT table header to get the full table length */ Table = AcpiOsMapMemory (Address, sizeof (ACPI_TABLE_HEADER)); if (!Table) { return_ACPI_STATUS (AE_NO_MEMORY); } AcpiTbPrintTableHeader (Address, Table); /* * Validate length of the table, and map entire table. * Minimum length table must contain at least one entry. */ Length = Table->Length; AcpiOsUnmapMemory (Table, sizeof (ACPI_TABLE_HEADER)); if (Length < (sizeof (ACPI_TABLE_HEADER) + TableEntrySize)) { ACPI_BIOS_ERROR ((AE_INFO, "Invalid table length 0x%X in RSDT/XSDT", Length)); return_ACPI_STATUS (AE_INVALID_TABLE_LENGTH); } Table = AcpiOsMapMemory (Address, Length); if (!Table) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Validate the root table checksum */ Status = AcpiUtVerifyChecksum (Table, Length); if (ACPI_FAILURE (Status)) { AcpiOsUnmapMemory (Table, Length); return_ACPI_STATUS (Status); } /* Get the number of entries and pointer to first entry */ TableCount = (UINT32) ((Table->Length - sizeof (ACPI_TABLE_HEADER)) / TableEntrySize); TableEntry = ACPI_ADD_PTR (UINT8, Table, sizeof (ACPI_TABLE_HEADER)); /* Initialize the root table array from the RSDT/XSDT */ for (i = 0; i < TableCount; i++) { /* Get the table physical address (32-bit for RSDT, 64-bit for XSDT) */ Address = AcpiTbGetRootTableEntry (TableEntry, TableEntrySize); /* Skip NULL entries in RSDT/XSDT */ if (!Address) { goto NextTable; } Status = AcpiTbInstallStandardTable (Address, ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL, NULL, FALSE, TRUE, &TableIndex); if (ACPI_SUCCESS (Status) && ACPI_COMPARE_NAMESEG ( &AcpiGbl_RootTableList.Tables[TableIndex].Signature, ACPI_SIG_FADT)) { AcpiGbl_FadtIndex = TableIndex; AcpiTbParseFadt (); } NextTable: TableEntry += TableEntrySize; } AcpiOsUnmapMemory (Table, Length); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiTbGetTable * * PARAMETERS: TableDesc - Table descriptor * OutTable - Where the pointer to the table is returned * * RETURN: Status and pointer to the requested table * * DESCRIPTION: Increase a reference to a table descriptor and return the * validated table pointer. * If the table descriptor is an entry of the root table list, * this API must be invoked with ACPI_MTX_TABLES acquired. * ******************************************************************************/ ACPI_STATUS AcpiTbGetTable ( ACPI_TABLE_DESC *TableDesc, ACPI_TABLE_HEADER **OutTable) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiTbGetTable); if (TableDesc->ValidationCount == 0) { /* Table need to be "VALIDATED" */ Status = AcpiTbValidateTable (TableDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } if (TableDesc->ValidationCount < ACPI_MAX_TABLE_VALIDATIONS) { TableDesc->ValidationCount++; /* * Detect ValidationCount overflows to ensure that the warning * message will only be printed once. */ if (TableDesc->ValidationCount >= ACPI_MAX_TABLE_VALIDATIONS) { ACPI_WARNING((AE_INFO, "Table %p, Validation count overflows\n", TableDesc)); } } *OutTable = TableDesc->Pointer; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiTbPutTable * * PARAMETERS: TableDesc - Table descriptor * * RETURN: None * * DESCRIPTION: Decrease a reference to a table descriptor and release the * validated table pointer if no references. * If the table descriptor is an entry of the root table list, * this API must be invoked with ACPI_MTX_TABLES acquired. * ******************************************************************************/ void AcpiTbPutTable ( ACPI_TABLE_DESC *TableDesc) { ACPI_FUNCTION_TRACE (AcpiTbPutTable); if (TableDesc->ValidationCount < ACPI_MAX_TABLE_VALIDATIONS) { TableDesc->ValidationCount--; /* * Detect ValidationCount underflows to ensure that the warning * message will only be printed once. */ if (TableDesc->ValidationCount >= ACPI_MAX_TABLE_VALIDATIONS) { ACPI_WARNING ((AE_INFO, "Table %p, Validation count underflows\n", TableDesc)); return_VOID; } } if (TableDesc->ValidationCount == 0) { /* Table need to be "INVALIDATED" */ AcpiTbInvalidateTable (TableDesc); } return_VOID; } acpica-unix-20250404/source/components/tables/tbfadt.c0000775000175000017500000006371114773714133022121 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: tbfadt - FADT table utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "actables.h" #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME ("tbfadt") /* Local prototypes */ static void AcpiTbInitGenericAddress ( ACPI_GENERIC_ADDRESS *GenericAddress, UINT8 SpaceId, UINT8 ByteWidth, UINT64 Address, const char *RegisterName, UINT8 Flags); static void AcpiTbConvertFadt ( void); static void AcpiTbSetupFadtRegisters ( void); static UINT64 AcpiTbSelectAddress ( char *RegisterName, UINT32 Address32, UINT64 Address64); /* Table for conversion of FADT to common internal format and FADT validation */ typedef struct acpi_fadt_info { const char *Name; UINT16 Address64; UINT16 Address32; UINT16 Length; UINT8 DefaultLength; UINT8 Flags; } ACPI_FADT_INFO; #define ACPI_FADT_OPTIONAL 0 #define ACPI_FADT_REQUIRED 1 #define ACPI_FADT_SEPARATE_LENGTH 2 #define ACPI_FADT_GPE_REGISTER 4 static ACPI_FADT_INFO FadtInfoTable[] = { {"Pm1aEventBlock", ACPI_FADT_OFFSET (XPm1aEventBlock), ACPI_FADT_OFFSET (Pm1aEventBlock), ACPI_FADT_OFFSET (Pm1EventLength), ACPI_PM1_REGISTER_WIDTH * 2, /* Enable + Status register */ ACPI_FADT_REQUIRED}, {"Pm1bEventBlock", ACPI_FADT_OFFSET (XPm1bEventBlock), ACPI_FADT_OFFSET (Pm1bEventBlock), ACPI_FADT_OFFSET (Pm1EventLength), ACPI_PM1_REGISTER_WIDTH * 2, /* Enable + Status register */ ACPI_FADT_OPTIONAL}, {"Pm1aControlBlock", ACPI_FADT_OFFSET (XPm1aControlBlock), ACPI_FADT_OFFSET (Pm1aControlBlock), ACPI_FADT_OFFSET (Pm1ControlLength), ACPI_PM1_REGISTER_WIDTH, ACPI_FADT_REQUIRED}, {"Pm1bControlBlock", ACPI_FADT_OFFSET (XPm1bControlBlock), ACPI_FADT_OFFSET (Pm1bControlBlock), ACPI_FADT_OFFSET (Pm1ControlLength), ACPI_PM1_REGISTER_WIDTH, ACPI_FADT_OPTIONAL}, {"Pm2ControlBlock", ACPI_FADT_OFFSET (XPm2ControlBlock), ACPI_FADT_OFFSET (Pm2ControlBlock), ACPI_FADT_OFFSET (Pm2ControlLength), ACPI_PM2_REGISTER_WIDTH, ACPI_FADT_SEPARATE_LENGTH}, {"PmTimerBlock", ACPI_FADT_OFFSET (XPmTimerBlock), ACPI_FADT_OFFSET (PmTimerBlock), ACPI_FADT_OFFSET (PmTimerLength), ACPI_PM_TIMER_WIDTH, ACPI_FADT_SEPARATE_LENGTH}, /* ACPI 5.0A: Timer is optional */ {"Gpe0Block", ACPI_FADT_OFFSET (XGpe0Block), ACPI_FADT_OFFSET (Gpe0Block), ACPI_FADT_OFFSET (Gpe0BlockLength), 0, ACPI_FADT_SEPARATE_LENGTH | ACPI_FADT_GPE_REGISTER}, {"Gpe1Block", ACPI_FADT_OFFSET (XGpe1Block), ACPI_FADT_OFFSET (Gpe1Block), ACPI_FADT_OFFSET (Gpe1BlockLength), 0, ACPI_FADT_SEPARATE_LENGTH | ACPI_FADT_GPE_REGISTER} }; #define ACPI_FADT_INFO_ENTRIES \ (sizeof (FadtInfoTable) / sizeof (ACPI_FADT_INFO)) /* Table used to split Event Blocks into separate status/enable registers */ typedef struct acpi_fadt_pm_info { ACPI_GENERIC_ADDRESS *Target; UINT16 Source; UINT8 RegisterNum; } ACPI_FADT_PM_INFO; static ACPI_FADT_PM_INFO FadtPmInfoTable[] = { {&AcpiGbl_XPm1aStatus, ACPI_FADT_OFFSET (XPm1aEventBlock), 0}, {&AcpiGbl_XPm1aEnable, ACPI_FADT_OFFSET (XPm1aEventBlock), 1}, {&AcpiGbl_XPm1bStatus, ACPI_FADT_OFFSET (XPm1bEventBlock), 0}, {&AcpiGbl_XPm1bEnable, ACPI_FADT_OFFSET (XPm1bEventBlock), 1} }; #define ACPI_FADT_PM_INFO_ENTRIES \ (sizeof (FadtPmInfoTable) / sizeof (ACPI_FADT_PM_INFO)) /******************************************************************************* * * FUNCTION: AcpiTbInitGenericAddress * * PARAMETERS: GenericAddress - GAS struct to be initialized * SpaceId - ACPI Space ID for this register * ByteWidth - Width of this register * Address - Address of the register * RegisterName - ASCII name of the ACPI register * * RETURN: None * * DESCRIPTION: Initialize a Generic Address Structure (GAS) * See the ACPI specification for a full description and * definition of this structure. * ******************************************************************************/ static void AcpiTbInitGenericAddress ( ACPI_GENERIC_ADDRESS *GenericAddress, UINT8 SpaceId, UINT8 ByteWidth, UINT64 Address, const char *RegisterName, UINT8 Flags) { UINT8 BitWidth; /* * Bit width field in the GAS is only one byte long, 255 max. * Check for BitWidth overflow in GAS. */ BitWidth = (UINT8) (ByteWidth * 8); if (ByteWidth > 31) /* (31*8)=248, (32*8)=256 */ { /* * No error for GPE blocks, because we do not use the BitWidth * for GPEs, the legacy length (ByteWidth) is used instead to * allow for a large number of GPEs. */ if (!(Flags & ACPI_FADT_GPE_REGISTER)) { ACPI_ERROR ((AE_INFO, "%s - 32-bit FADT register is too long (%u bytes, %u bits) " "to convert to GAS struct - 255 bits max, truncating", RegisterName, ByteWidth, (ByteWidth * 8))); } BitWidth = 255; } /* * The 64-bit Address field is non-aligned in the byte packed * GAS struct. */ ACPI_MOVE_64_TO_64 (&GenericAddress->Address, &Address); /* All other fields are byte-wide */ GenericAddress->SpaceId = SpaceId; GenericAddress->BitWidth = BitWidth; GenericAddress->BitOffset = 0; GenericAddress->AccessWidth = 0; /* Access width ANY */ } /******************************************************************************* * * FUNCTION: AcpiTbSelectAddress * * PARAMETERS: RegisterName - ASCII name of the ACPI register * Address32 - 32-bit address of the register * Address64 - 64-bit address of the register * * RETURN: The resolved 64-bit address * * DESCRIPTION: Select between 32-bit and 64-bit versions of addresses within * the FADT. Used for the FACS and DSDT addresses. * * NOTES: * * Check for FACS and DSDT address mismatches. An address mismatch between * the 32-bit and 64-bit address fields (FIRMWARE_CTRL/X_FIRMWARE_CTRL and * DSDT/X_DSDT) could be a corrupted address field or it might indicate * the presence of two FACS or two DSDT tables. * * November 2013: * By default, as per the ACPICA specification, a valid 64-bit address is * used regardless of the value of the 32-bit address. However, this * behavior can be overridden via the AcpiGbl_Use32BitFadtAddresses flag. * ******************************************************************************/ static UINT64 AcpiTbSelectAddress ( char *RegisterName, UINT32 Address32, UINT64 Address64) { if (!Address64) { /* 64-bit address is zero, use 32-bit address */ return ((UINT64) Address32); } if (Address32 && (Address64 != (UINT64) Address32)) { /* Address mismatch between 32-bit and 64-bit versions */ ACPI_BIOS_WARNING ((AE_INFO, "32/64X %s address mismatch in FADT: " "0x%8.8X/0x%8.8X%8.8X, using %u-bit address", RegisterName, Address32, ACPI_FORMAT_UINT64 (Address64), AcpiGbl_Use32BitFadtAddresses ? 32 : 64)); /* 32-bit address override */ if (AcpiGbl_Use32BitFadtAddresses) { return ((UINT64) Address32); } } /* Default is to use the 64-bit address */ return (Address64); } /******************************************************************************* * * FUNCTION: AcpiTbParseFadt * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Initialize the FADT, DSDT and FACS tables * (FADT contains the addresses of the DSDT and FACS) * ******************************************************************************/ void AcpiTbParseFadt ( void) { UINT32 Length; ACPI_TABLE_HEADER *Table; ACPI_TABLE_DESC *FadtDesc; ACPI_STATUS Status; /* * The FADT has multiple versions with different lengths, * and it contains pointers to both the DSDT and FACS tables. * * Get a local copy of the FADT and convert it to a common format * Map entire FADT, assumed to be smaller than one page. */ FadtDesc = &AcpiGbl_RootTableList.Tables[AcpiGbl_FadtIndex]; Status = AcpiTbGetTable (FadtDesc, &Table); if (ACPI_FAILURE (Status)) { return; } Length = FadtDesc->Length; /* * Validate the FADT checksum before we copy the table. Ignore * checksum error as we want to try to get the DSDT and FACS. */ (void) AcpiUtVerifyChecksum (Table, Length); /* Create a local copy of the FADT in common ACPI 2.0+ format */ AcpiTbCreateLocalFadt (Table, Length); /* All done with the real FADT, unmap it */ AcpiTbPutTable (FadtDesc); /* Obtain the DSDT and FACS tables via their addresses within the FADT */ AcpiTbInstallStandardTable ( (ACPI_PHYSICAL_ADDRESS) AcpiGbl_FADT.XDsdt, ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL, NULL, FALSE, TRUE, &AcpiGbl_DsdtIndex); if (AcpiGbl_FADT.Facs) { AcpiTbInstallStandardTable ( (ACPI_PHYSICAL_ADDRESS) AcpiGbl_FADT.Facs, ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL, NULL, FALSE, TRUE, &AcpiGbl_FacsIndex); } if (AcpiGbl_FADT.XFacs) { AcpiTbInstallStandardTable ( (ACPI_PHYSICAL_ADDRESS) AcpiGbl_FADT.XFacs, ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL, NULL, FALSE, TRUE, &AcpiGbl_XFacsIndex); } } /******************************************************************************* * * FUNCTION: AcpiTbCreateLocalFadt * * PARAMETERS: Table - Pointer to BIOS FADT * Length - Length of the table * * RETURN: None * * DESCRIPTION: Get a local copy of the FADT and convert it to a common format. * Performs validation on some important FADT fields. * * NOTE: We create a local copy of the FADT regardless of the version. * ******************************************************************************/ void AcpiTbCreateLocalFadt ( ACPI_TABLE_HEADER *Table, UINT32 Length) { /* * Check if the FADT is larger than the largest table that we expect * (typically the current ACPI specification version). If so, truncate * the table, and issue a warning. */ if (Length > sizeof (ACPI_TABLE_FADT)) { ACPI_BIOS_WARNING ((AE_INFO, "FADT (revision %u) is longer than %s length, " "truncating length %u to %u", Table->Revision, ACPI_FADT_CONFORMANCE, Length, (UINT32) sizeof (ACPI_TABLE_FADT))); } /* Clear the entire local FADT */ memset (&AcpiGbl_FADT, 0, sizeof (ACPI_TABLE_FADT)); /* Copy the original FADT, up to sizeof (ACPI_TABLE_FADT) */ memcpy (&AcpiGbl_FADT, Table, ACPI_MIN (Length, sizeof (ACPI_TABLE_FADT))); /* Take a copy of the Hardware Reduced flag */ AcpiGbl_ReducedHardware = FALSE; if (AcpiGbl_FADT.Flags & ACPI_FADT_HW_REDUCED) { AcpiGbl_ReducedHardware = TRUE; } /* Convert the local copy of the FADT to the common internal format */ AcpiTbConvertFadt (); /* Initialize the global ACPI register structures */ AcpiTbSetupFadtRegisters (); } /******************************************************************************* * * FUNCTION: AcpiTbConvertFadt * * PARAMETERS: None - AcpiGbl_FADT is used. * * RETURN: None * * DESCRIPTION: Converts all versions of the FADT to a common internal format. * Expand 32-bit addresses to 64-bit as necessary. Also validate * important fields within the FADT. * * NOTE: AcpiGbl_FADT must be of size (ACPI_TABLE_FADT), and must * contain a copy of the actual BIOS-provided FADT. * * Notes on 64-bit register addresses: * * After this FADT conversion, later ACPICA code will only use the 64-bit "X" * fields of the FADT for all ACPI register addresses. * * The 64-bit X fields are optional extensions to the original 32-bit FADT * V1.0 fields. Even if they are present in the FADT, they are optional and * are unused if the BIOS sets them to zero. Therefore, we must copy/expand * 32-bit V1.0 fields to the 64-bit X fields if the 64-bit X field is originally * zero. * * For ACPI 1.0 FADTs (that contain no 64-bit addresses), all 32-bit address * fields are expanded to the corresponding 64-bit X fields in the internal * common FADT. * * For ACPI 2.0+ FADTs, all valid (non-zero) 32-bit address fields are expanded * to the corresponding 64-bit X fields, if the 64-bit field is originally * zero. Adhering to the ACPI specification, we completely ignore the 32-bit * field if the 64-bit field is valid, regardless of whether the host OS is * 32-bit or 64-bit. * * Possible additional checks: * (AcpiGbl_FADT.Pm1EventLength >= 4) * (AcpiGbl_FADT.Pm1ControlLength >= 2) * (AcpiGbl_FADT.PmTimerLength >= 4) * Gpe block lengths must be multiple of 2 * ******************************************************************************/ static void AcpiTbConvertFadt ( void) { const char *Name; ACPI_GENERIC_ADDRESS *Address64; UINT32 Address32; UINT8 Length; UINT8 Flags; UINT32 i; /* * For ACPI 1.0 FADTs (revision 1 or 2), ensure that reserved fields which * should be zero are indeed zero. This will workaround BIOSs that * inadvertently place values in these fields. * * The ACPI 1.0 reserved fields that will be zeroed are the bytes located * at offset 45, 55, 95, and the word located at offset 109, 110. * * Note: The FADT revision value is unreliable. Only the length can be * trusted. */ if (AcpiGbl_FADT.Header.Length <= ACPI_FADT_V2_SIZE) { AcpiGbl_FADT.PreferredProfile = 0; AcpiGbl_FADT.PstateControl = 0; AcpiGbl_FADT.CstControl = 0; AcpiGbl_FADT.BootFlags = 0; } /* * Now we can update the local FADT length to the length of the * current FADT version as defined by the ACPI specification. * Thus, we will have a common FADT internally. */ AcpiGbl_FADT.Header.Length = sizeof (ACPI_TABLE_FADT); /* * Expand the 32-bit DSDT addresses to 64-bit as necessary. * Later ACPICA code will always use the X 64-bit field. */ AcpiGbl_FADT.XDsdt = AcpiTbSelectAddress ("DSDT", AcpiGbl_FADT.Dsdt, AcpiGbl_FADT.XDsdt); /* If Hardware Reduced flag is set, we are all done */ if (AcpiGbl_ReducedHardware) { return; } /* Examine all of the 64-bit extended address fields (X fields) */ for (i = 0; i < ACPI_FADT_INFO_ENTRIES; i++) { /* * Get the 32-bit and 64-bit addresses, as well as the register * length and register name. */ Address32 = *ACPI_ADD_PTR (UINT32, &AcpiGbl_FADT, FadtInfoTable[i].Address32); Address64 = ACPI_ADD_PTR (ACPI_GENERIC_ADDRESS, &AcpiGbl_FADT, FadtInfoTable[i].Address64); Length = *ACPI_ADD_PTR (UINT8, &AcpiGbl_FADT, FadtInfoTable[i].Length); Name = FadtInfoTable[i].Name; Flags = FadtInfoTable[i].Flags; /* * Expand the ACPI 1.0 32-bit addresses to the ACPI 2.0 64-bit "X" * generic address structures as necessary. Later code will always use * the 64-bit address structures. * * November 2013: * Now always use the 64-bit address if it is valid (non-zero), in * accordance with the ACPI specification which states that a 64-bit * address supersedes the 32-bit version. This behavior can be * overridden by the AcpiGbl_Use32BitFadtAddresses flag. * * During 64-bit address construction and verification, * these cases are handled: * * Address32 zero, Address64 [don't care] - Use Address64 * * No override: if AcpiGbl_Use32BitFadtAddresses is FALSE, and: * Address32 non-zero, Address64 zero - Copy/use Address32 * Address32 non-zero == Address64 non-zero - Use Address64 * Address32 non-zero != Address64 non-zero - Warning, use Address64 * * Override: if AcpiGbl_Use32BitFadtAddresses is TRUE, and: * Address32 non-zero, Address64 zero - Copy/use Address32 * Address32 non-zero == Address64 non-zero - Copy/use Address32 * Address32 non-zero != Address64 non-zero - Warning, copy/use Address32 * * Note: SpaceId is always I/O for 32-bit legacy address fields */ if (Address32) { if (Address64->Address) { if (Address64->Address != (UINT64) Address32) { /* Address mismatch */ ACPI_BIOS_WARNING ((AE_INFO, "32/64X address mismatch in FADT/%s: " "0x%8.8X/0x%8.8X%8.8X, using %u-bit address", Name, Address32, ACPI_FORMAT_UINT64 (Address64->Address), AcpiGbl_Use32BitFadtAddresses ? 32 : 64)); } /* * For each extended field, check for length mismatch * between the legacy length field and the corresponding * 64-bit X length field. * Note: If the legacy length field is > 0xFF bits, ignore * this check. (GPE registers can be larger than the * 64-bit GAS structure can accommodate, 0xFF bits). */ if ((ACPI_MUL_8 (Length) <= ACPI_UINT8_MAX) && (Address64->BitWidth != ACPI_MUL_8 (Length))) { ACPI_BIOS_WARNING ((AE_INFO, "32/64X length mismatch in FADT/%s: %u/%u", Name, ACPI_MUL_8 (Length), Address64->BitWidth)); } } /* * Hardware register access code always uses the 64-bit fields. * So if the 64-bit field is zero or is to be overridden, * initialize it with the 32-bit fields. * Note that when the 32-bit address favor is specified, the * 64-bit fields are always re-initialized so that * AccessSize/BitWidth/BitOffset fields can be correctly * configured to the values to trigger a 32-bit compatible * access mode in the hardware register access code. */ if (!Address64->Address || AcpiGbl_Use32BitFadtAddresses) { AcpiTbInitGenericAddress (Address64, ACPI_ADR_SPACE_SYSTEM_IO, Length, (UINT64) Address32, Name, Flags); } } if (FadtInfoTable[i].Flags & ACPI_FADT_REQUIRED) { /* * Field is required (PM1aEvent, PM1aControl). * Both the address and length must be non-zero. */ if (!Address64->Address || !Length) { ACPI_BIOS_ERROR ((AE_INFO, "Required FADT field %s has zero address and/or length: " "0x%8.8X%8.8X/0x%X", Name, ACPI_FORMAT_UINT64 (Address64->Address), Length)); } } else if (FadtInfoTable[i].Flags & ACPI_FADT_SEPARATE_LENGTH) { /* * Field is optional (PM2Control, GPE0, GPE1) AND has its own * length field. If present, both the address and length must * be valid. */ if ((Address64->Address && !Length) || (!Address64->Address && Length)) { ACPI_BIOS_WARNING ((AE_INFO, "Optional FADT field %s has valid %s but zero %s: " "0x%8.8X%8.8X/0x%X", Name, (Length ? "Length" : "Address"), (Length ? "Address": "Length"), ACPI_FORMAT_UINT64 (Address64->Address), Length)); } } } } /******************************************************************************* * * FUNCTION: AcpiTbSetupFadtRegisters * * PARAMETERS: None, uses AcpiGbl_FADT. * * RETURN: None * * DESCRIPTION: Initialize global ACPI PM1 register definitions. Optionally, * force FADT register definitions to their default lengths. * ******************************************************************************/ static void AcpiTbSetupFadtRegisters ( void) { ACPI_GENERIC_ADDRESS *Target64; ACPI_GENERIC_ADDRESS *Source64; UINT8 Pm1RegisterByteWidth; UINT32 i; /* * Optionally check all register lengths against the default values and * update them if they are incorrect. */ if (AcpiGbl_UseDefaultRegisterWidths) { for (i = 0; i < ACPI_FADT_INFO_ENTRIES; i++) { Target64 = ACPI_ADD_PTR (ACPI_GENERIC_ADDRESS, &AcpiGbl_FADT, FadtInfoTable[i].Address64); /* * If a valid register (Address != 0) and the (DefaultLength > 0) * (Not a GPE register), then check the width against the default. */ if ((Target64->Address) && (FadtInfoTable[i].DefaultLength > 0) && (FadtInfoTable[i].DefaultLength != Target64->BitWidth)) { ACPI_BIOS_WARNING ((AE_INFO, "Invalid length for FADT/%s: %u, using default %u", FadtInfoTable[i].Name, Target64->BitWidth, FadtInfoTable[i].DefaultLength)); /* Incorrect size, set width to the default */ Target64->BitWidth = FadtInfoTable[i].DefaultLength; } } } /* * Get the length of the individual PM1 registers (enable and status). * Each register is defined to be (event block length / 2). Extra divide * by 8 converts bits to bytes. */ Pm1RegisterByteWidth = (UINT8) ACPI_DIV_16 (AcpiGbl_FADT.XPm1aEventBlock.BitWidth); /* * Calculate separate GAS structs for the PM1x (A/B) Status and Enable * registers. These addresses do not appear (directly) in the FADT, so it * is useful to pre-calculate them from the PM1 Event Block definitions. * * The PM event blocks are split into two register blocks, first is the * PM Status Register block, followed immediately by the PM Enable * Register block. Each is of length (Pm1EventLength/2) * * Note: The PM1A event block is required by the ACPI specification. * However, the PM1B event block is optional and is rarely, if ever, * used. */ for (i = 0; i < ACPI_FADT_PM_INFO_ENTRIES; i++) { Source64 = ACPI_ADD_PTR (ACPI_GENERIC_ADDRESS, &AcpiGbl_FADT, FadtPmInfoTable[i].Source); if (Source64->Address) { AcpiTbInitGenericAddress (FadtPmInfoTable[i].Target, Source64->SpaceId, Pm1RegisterByteWidth, Source64->Address + (FadtPmInfoTable[i].RegisterNum * Pm1RegisterByteWidth), "PmRegisters", 0); } } } acpica-unix-20250404/source/components/tables/tbxfload.c0000775000175000017500000003760114773714133022457 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: tbxfload - Table load/unload external interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "actables.h" #include "acevents.h" #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME ("tbxfload") /******************************************************************************* * * FUNCTION: AcpiLoadTables * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Load the ACPI tables from the RSDT/XSDT * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiLoadTables ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiLoadTables); /* * Install the default operation region handlers. These are the * handlers that are defined by the ACPI specification to be * "always accessible" -- namely, SystemMemory, SystemIO, and * PCI_Config. This also means that no _REG methods need to be * run for these address spaces. We need to have these handlers * installed before any AML code can be executed, especially any * module-level code (11/2015). * Note that we allow OSPMs to install their own region handlers * between AcpiInitializeSubsystem() and AcpiLoadTables() to use * their customized default region handlers. */ Status = AcpiEvInstallRegionHandlers (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During Region initialization")); return_ACPI_STATUS (Status); } /* Load the namespace from the tables */ Status = AcpiTbLoadNamespace (); /* Don't let single failures abort the load */ if (Status == AE_CTRL_TERMINATE) { Status = AE_OK; } if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While loading namespace from ACPI tables")); } /* * Initialize the objects in the namespace that remain uninitialized. * This runs the executable AML that may be part of the declaration of * these name objects: * OperationRegions, BufferFields, Buffers, and Packages. * */ Status = AcpiNsInitializeObjects (); if (ACPI_SUCCESS (Status)) { AcpiGbl_NamespaceInitialized = TRUE; } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL_INIT (AcpiLoadTables) /******************************************************************************* * * FUNCTION: AcpiTbLoadNamespace * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Load the namespace from the DSDT and all SSDTs/PSDTs found in * the RSDT/XSDT. * ******************************************************************************/ ACPI_STATUS AcpiTbLoadNamespace ( void) { ACPI_STATUS Status; UINT32 i; ACPI_TABLE_HEADER *NewDsdt; ACPI_TABLE_DESC *Table; UINT32 TablesLoaded = 0; UINT32 TablesFailed = 0; ACPI_FUNCTION_TRACE (TbLoadNamespace); (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); /* * Load the namespace. The DSDT is required, but any SSDT and * PSDT tables are optional. Verify the DSDT. */ Table = &AcpiGbl_RootTableList.Tables[AcpiGbl_DsdtIndex]; if (!AcpiGbl_RootTableList.CurrentTableCount || !ACPI_COMPARE_NAMESEG (Table->Signature.Ascii, ACPI_SIG_DSDT) || ACPI_FAILURE (AcpiTbValidateTable (Table))) { Status = AE_NO_ACPI_TABLES; goto UnlockAndExit; } /* * Save the DSDT pointer for simple access. This is the mapped memory * address. We must take care here because the address of the .Tables * array can change dynamically as tables are loaded at run-time. Note: * .Pointer field is not validated until after call to AcpiTbValidateTable. */ AcpiGbl_DSDT = Table->Pointer; /* * Optionally copy the entire DSDT to local memory (instead of simply * mapping it.) There are some BIOSs that corrupt or replace the original * DSDT, creating the need for this option. Default is FALSE, do not copy * the DSDT. */ if (AcpiGbl_CopyDsdtLocally) { NewDsdt = AcpiTbCopyDsdt (AcpiGbl_DsdtIndex); if (NewDsdt) { AcpiGbl_DSDT = NewDsdt; } } /* * Save the original DSDT header for detection of table corruption * and/or replacement of the DSDT from outside the OS. */ memcpy (&AcpiGbl_OriginalDsdtHeader, AcpiGbl_DSDT, sizeof (ACPI_TABLE_HEADER)); /* Load and parse tables */ (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); Status = AcpiNsLoadTable (AcpiGbl_DsdtIndex, AcpiGbl_RootNode); (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "[DSDT] table load failed")); TablesFailed++; } else { TablesLoaded++; } /* Load any SSDT or PSDT tables. Note: Loop leaves tables locked */ for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) { Table = &AcpiGbl_RootTableList.Tables[i]; if (!Table->Address || (!ACPI_COMPARE_NAMESEG (Table->Signature.Ascii, ACPI_SIG_SSDT) && !ACPI_COMPARE_NAMESEG (Table->Signature.Ascii, ACPI_SIG_PSDT) && !ACPI_COMPARE_NAMESEG (Table->Signature.Ascii, ACPI_SIG_OSDT)) || ACPI_FAILURE (AcpiTbValidateTable (Table))) { continue; } /* Ignore errors while loading tables, get as many as possible */ (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); Status = AcpiNsLoadTable (i, AcpiGbl_RootNode); (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "(%4.4s:%8.8s) while loading table", Table->Signature.Ascii, Table->Pointer->OemTableId)); TablesFailed++; ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "Table [%4.4s:%8.8s] (id FF) - Table namespace load failed\n\n", Table->Signature.Ascii, Table->Pointer->OemTableId)); } else { TablesLoaded++; } } if (!TablesFailed) { ACPI_INFO (( "%u ACPI AML tables successfully acquired and loaded", TablesLoaded)); } else { ACPI_ERROR ((AE_INFO, "%u table load failures, %u successful", TablesFailed, TablesLoaded)); /* Indicate at least one failure */ Status = AE_CTRL_TERMINATE; } #ifdef ACPI_APPLICATION ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "\n")); #endif UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiInstallTable * * PARAMETERS: Table - Pointer to the ACPI table to be installed. * * RETURN: Status * * DESCRIPTION: Dynamically install an ACPI table. * Note: This function should only be invoked after * AcpiInitializeTables() and before AcpiLoadTables(). * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiInstallTable ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; UINT32 TableIndex; ACPI_FUNCTION_TRACE (AcpiInstallTable); Status = AcpiTbInstallStandardTable (ACPI_PTR_TO_PHYSADDR (Table), ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL, Table, FALSE, FALSE, &TableIndex); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL_INIT (AcpiInstallTable) /******************************************************************************* * * FUNCTION: AcpiInstallPhysicalTable * * PARAMETERS: Address - Address of the ACPI table to be installed. * * RETURN: Status * * DESCRIPTION: Dynamically install an ACPI table. * Note: This function should only be invoked after * AcpiInitializeTables() and before AcpiLoadTables(). * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiInstallPhysicalTable ( ACPI_PHYSICAL_ADDRESS Address) { ACPI_STATUS Status; UINT32 TableIndex; ACPI_FUNCTION_TRACE (AcpiInstallPhysicalTable); Status = AcpiTbInstallStandardTable (Address, ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL, NULL, FALSE, FALSE, &TableIndex); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL_INIT (AcpiInstallPhysicalTable) /******************************************************************************* * * FUNCTION: AcpiLoadTable * * PARAMETERS: Table - Pointer to a buffer containing the ACPI * table to be loaded. * TableIdx - Pointer to a UINT32 for storing the table * index, might be NULL * * RETURN: Status * * DESCRIPTION: Dynamically load an ACPI table from the caller's buffer. Must * be a valid ACPI table with a valid ACPI table header. * Note1: Mainly intended to support hotplug addition of SSDTs. * Note2: Does not copy the incoming table. User is responsible * to ensure that the table is not deleted or unmapped. * ******************************************************************************/ ACPI_STATUS AcpiLoadTable ( ACPI_TABLE_HEADER *Table, UINT32 *TableIdx) { ACPI_STATUS Status; UINT32 TableIndex; ACPI_FUNCTION_TRACE (AcpiLoadTable); /* Parameter validation */ if (!Table) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Install the table and load it into the namespace */ ACPI_INFO (("Host-directed Dynamic ACPI Table Load:")); Status = AcpiTbInstallAndLoadTable (ACPI_PTR_TO_PHYSADDR (Table), ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL, Table, FALSE, &TableIndex); if (TableIdx) { *TableIdx = TableIndex; } if (ACPI_SUCCESS (Status)) { /* Complete the initialization/resolution of new objects */ AcpiNsInitializeObjects (); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiLoadTable) /******************************************************************************* * * FUNCTION: AcpiUnloadParentTable * * PARAMETERS: Object - Handle to any namespace object owned by * the table to be unloaded * * RETURN: Status * * DESCRIPTION: Via any namespace object within an SSDT or OEMx table, unloads * the table and deletes all namespace objects associated with * that table. Unloading of the DSDT is not allowed. * Note: Mainly intended to support hotplug removal of SSDTs. * ******************************************************************************/ ACPI_STATUS AcpiUnloadParentTable ( ACPI_HANDLE Object) { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Object); ACPI_STATUS Status = AE_NOT_EXIST; ACPI_OWNER_ID OwnerId; UINT32 i; ACPI_FUNCTION_TRACE (AcpiUnloadParentTable); /* Parameter validation */ if (!Object) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * The node OwnerId is currently the same as the parent table ID. * However, this could change in the future. */ OwnerId = Node->OwnerId; if (!OwnerId) { /* OwnerId==0 means DSDT is the owner. DSDT cannot be unloaded */ return_ACPI_STATUS (AE_TYPE); } /* Must acquire the table lock during this operation */ Status = AcpiUtAcquireMutex (ACPI_MTX_TABLES); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Find the table in the global table list */ for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) { if (OwnerId != AcpiGbl_RootTableList.Tables[i].OwnerId) { continue; } /* * Allow unload of SSDT and OEMx tables only. Do not allow unload * of the DSDT. No other types of tables should get here, since * only these types can contain AML and thus are the only types * that can create namespace objects. */ if (ACPI_COMPARE_NAMESEG ( AcpiGbl_RootTableList.Tables[i].Signature.Ascii, ACPI_SIG_DSDT)) { Status = AE_TYPE; break; } (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); Status = AcpiTbUnloadTable (i); (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); break; } (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiUnloadParentTable) /******************************************************************************* * * FUNCTION: AcpiUnloadTable * * PARAMETERS: TableIndex - Index as returned by AcpiLoadTable * * RETURN: Status * * DESCRIPTION: Via the TableIndex representing an SSDT or OEMx table, unloads * the table and deletes all namespace objects associated with * that table. Unloading of the DSDT is not allowed. * Note: Mainly intended to support hotplug removal of SSDTs. * ******************************************************************************/ ACPI_STATUS AcpiUnloadTable ( UINT32 TableIndex) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiUnloadTable); if (TableIndex == 1) { /* TableIndex==1 means DSDT is the owner. DSDT cannot be unloaded */ return_ACPI_STATUS (AE_TYPE); } Status = AcpiTbUnloadTable (TableIndex); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiUnloadTable) acpica-unix-20250404/source/components/tables/tbxfroot.c0000775000175000017500000002354314773714133022523 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: tbxfroot - Find the root ACPI table (RSDT) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "actables.h" #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME ("tbxfroot") /******************************************************************************* * * FUNCTION: AcpiTbGetRsdpLength * * PARAMETERS: Rsdp - Pointer to RSDP * * RETURN: Table length * * DESCRIPTION: Get the length of the RSDP * ******************************************************************************/ UINT32 AcpiTbGetRsdpLength ( ACPI_TABLE_RSDP *Rsdp) { if (!ACPI_VALIDATE_RSDP_SIG (Rsdp->Signature)) { /* BAD Signature */ return (0); } /* "Length" field is available if table version >= 2 */ if (Rsdp->Revision >= 2) { return (Rsdp->Length); } else { return (ACPI_RSDP_CHECKSUM_LENGTH); } } /******************************************************************************* * * FUNCTION: AcpiTbValidateRsdp * * PARAMETERS: Rsdp - Pointer to unvalidated RSDP * * RETURN: Status * * DESCRIPTION: Validate the RSDP (ptr) * ******************************************************************************/ ACPI_STATUS AcpiTbValidateRsdp ( ACPI_TABLE_RSDP *Rsdp) { /* * The signature and checksum must both be correct * * Note: Sometimes there exists more than one RSDP in memory; the valid * RSDP has a valid checksum, all others have an invalid checksum. */ if (!ACPI_VALIDATE_RSDP_SIG (Rsdp->Signature)) { /* Nope, BAD Signature */ return (AE_BAD_SIGNATURE); } /* Check the standard checksum */ if (AcpiUtChecksum ((UINT8 *) Rsdp, ACPI_RSDP_CHECKSUM_LENGTH) != 0) { return (AE_BAD_CHECKSUM); } /* Check extended checksum if table version >= 2 */ if ((Rsdp->Revision >= 2) && (AcpiUtChecksum ((UINT8 *) Rsdp, ACPI_RSDP_XCHECKSUM_LENGTH) != 0)) { return (AE_BAD_CHECKSUM); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiFindRootPointer * * PARAMETERS: TableAddress - Where the table pointer is returned * * RETURN: Status, RSDP physical address * * DESCRIPTION: Search lower 1Mbyte of memory for the root system descriptor * pointer structure. If it is found, set *RSDP to point to it. * * NOTE1: The RSDP must be either in the first 1K of the Extended * BIOS Data Area or between E0000 and FFFFF (From ACPI Spec.) * Only a 32-bit physical address is necessary. * * NOTE2: This function is always available, regardless of the * initialization state of the rest of ACPI. * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiFindRootPointer ( ACPI_PHYSICAL_ADDRESS *TableAddress) { UINT8 *TablePtr; UINT8 *MemRover; UINT32 PhysicalAddress; UINT32 EbdaWindowSize; ACPI_FUNCTION_TRACE (AcpiFindRootPointer); /* 1a) Get the location of the Extended BIOS Data Area (EBDA) */ TablePtr = AcpiOsMapMemory ( (ACPI_PHYSICAL_ADDRESS) ACPI_EBDA_PTR_LOCATION, ACPI_EBDA_PTR_LENGTH); if (!TablePtr) { ACPI_ERROR ((AE_INFO, "Could not map memory at 0x%8.8X for length %u", ACPI_EBDA_PTR_LOCATION, ACPI_EBDA_PTR_LENGTH)); return_ACPI_STATUS (AE_NO_MEMORY); } ACPI_MOVE_16_TO_32 (&PhysicalAddress, TablePtr); /* Convert segment part to physical address */ PhysicalAddress <<= 4; AcpiOsUnmapMemory (TablePtr, ACPI_EBDA_PTR_LENGTH); /* EBDA present? */ /* * Check that the EBDA pointer from memory is sane and does not point * above valid low memory */ if (PhysicalAddress > 0x400 && PhysicalAddress < 0xA0000) { /* * Calculate the scan window size * The EBDA is not guaranteed to be larger than a KiB and in case * that it is smaller, the scanning function would leave the low * memory and continue to the VGA range. */ EbdaWindowSize = ACPI_MIN(ACPI_EBDA_WINDOW_SIZE, 0xA0000 - PhysicalAddress); /* * 1b) Search EBDA paragraphs */ TablePtr = AcpiOsMapMemory ( (ACPI_PHYSICAL_ADDRESS) PhysicalAddress, EbdaWindowSize); if (!TablePtr) { ACPI_ERROR ((AE_INFO, "Could not map memory at 0x%8.8X for length %u", PhysicalAddress, EbdaWindowSize)); return_ACPI_STATUS (AE_NO_MEMORY); } MemRover = AcpiTbScanMemoryForRsdp ( TablePtr, EbdaWindowSize); AcpiOsUnmapMemory (TablePtr, EbdaWindowSize); if (MemRover) { /* Return the physical address */ PhysicalAddress += (UINT32) ACPI_PTR_DIFF (MemRover, TablePtr); *TableAddress = (ACPI_PHYSICAL_ADDRESS) PhysicalAddress; return_ACPI_STATUS (AE_OK); } } /* * 2) Search upper memory: 16-byte boundaries in E0000h-FFFFFh */ TablePtr = AcpiOsMapMemory ( (ACPI_PHYSICAL_ADDRESS) ACPI_HI_RSDP_WINDOW_BASE, ACPI_HI_RSDP_WINDOW_SIZE); if (!TablePtr) { ACPI_ERROR ((AE_INFO, "Could not map memory at 0x%8.8X for length %u", ACPI_HI_RSDP_WINDOW_BASE, ACPI_HI_RSDP_WINDOW_SIZE)); return_ACPI_STATUS (AE_NO_MEMORY); } MemRover = AcpiTbScanMemoryForRsdp ( TablePtr, ACPI_HI_RSDP_WINDOW_SIZE); AcpiOsUnmapMemory (TablePtr, ACPI_HI_RSDP_WINDOW_SIZE); if (MemRover) { /* Return the physical address */ PhysicalAddress = (UINT32) (ACPI_HI_RSDP_WINDOW_BASE + ACPI_PTR_DIFF (MemRover, TablePtr)); *TableAddress = (ACPI_PHYSICAL_ADDRESS) PhysicalAddress; return_ACPI_STATUS (AE_OK); } /* A valid RSDP was not found */ ACPI_BIOS_ERROR ((AE_INFO, "A valid RSDP was not found")); return_ACPI_STATUS (AE_NOT_FOUND); } ACPI_EXPORT_SYMBOL_INIT (AcpiFindRootPointer) /******************************************************************************* * * FUNCTION: AcpiTbScanMemoryForRsdp * * PARAMETERS: StartAddress - Starting pointer for search * Length - Maximum length to search * * RETURN: Pointer to the RSDP if found, otherwise NULL. * * DESCRIPTION: Search a block of memory for the RSDP signature * ******************************************************************************/ UINT8 * AcpiTbScanMemoryForRsdp ( UINT8 *StartAddress, UINT32 Length) { ACPI_STATUS Status; UINT8 *MemRover; UINT8 *EndAddress; ACPI_FUNCTION_TRACE (TbScanMemoryForRsdp); EndAddress = StartAddress + Length; /* Search from given start address for the requested length */ for (MemRover = StartAddress; MemRover < EndAddress; MemRover += ACPI_RSDP_SCAN_STEP) { /* The RSDP signature and checksum must both be correct */ Status = AcpiTbValidateRsdp ( ACPI_CAST_PTR (ACPI_TABLE_RSDP, MemRover)); if (ACPI_SUCCESS (Status)) { /* Sig and checksum valid, we have found a real RSDP */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "RSDP located at physical address %p\n", MemRover)); return_PTR (MemRover); } /* No sig match or bad checksum, keep searching */ } /* Searched entire block, no RSDP was found */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Searched entire block from %p, valid RSDP was not found\n", StartAddress)); return_PTR (NULL); } acpica-unix-20250404/source/components/tables/tbinstal.c0000775000175000017500000002700114773714133022465 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: tbinstal - ACPI table installation and removal * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "actables.h" #define _COMPONENT ACPI_TABLES ACPI_MODULE_NAME ("tbinstal") /******************************************************************************* * * FUNCTION: AcpiTbInstallTableWithOverride * * PARAMETERS: NewTableDesc - New table descriptor to install * Override - Whether override should be performed * TableIndex - Where the table index is returned * * RETURN: None * * DESCRIPTION: Install an ACPI table into the global data structure. The * table override mechanism is called to allow the host * OS to replace any table before it is installed in the root * table array. * ******************************************************************************/ void AcpiTbInstallTableWithOverride ( ACPI_TABLE_DESC *NewTableDesc, BOOLEAN Override, UINT32 *TableIndex) { UINT32 i; ACPI_STATUS Status; Status = AcpiTbGetNextTableDescriptor (&i, NULL); if (ACPI_FAILURE (Status)) { return; } /* * ACPI Table Override: * * Before we install the table, let the host OS override it with a new * one if desired. Any table within the RSDT/XSDT can be replaced, * including the DSDT which is pointed to by the FADT. */ if (Override) { AcpiTbOverrideTable (NewTableDesc); } AcpiTbInitTableDescriptor (&AcpiGbl_RootTableList.Tables[i], NewTableDesc->Address, NewTableDesc->Flags, NewTableDesc->Pointer); AcpiTbPrintTableHeader (NewTableDesc->Address, NewTableDesc->Pointer); /* This synchronizes AcpiGbl_DsdtIndex */ *TableIndex = i; /* Set the global integer width (based upon revision of the DSDT) */ if (i == AcpiGbl_DsdtIndex) { AcpiUtSetIntegerWidth (NewTableDesc->Pointer->Revision); } } /******************************************************************************* * * FUNCTION: AcpiTbInstallStandardTable * * PARAMETERS: Address - Address of the table (might be a virtual * address depending on the TableFlags) * Flags - Flags for the table * Table - Pointer to the table (required for virtual * origins, optional for physical) * Reload - Whether reload should be performed * Override - Whether override should be performed * TableIndex - Where the table index is returned * * RETURN: Status * * DESCRIPTION: This function is called to verify and install an ACPI table. * When this function is called by "Load" or "LoadTable" opcodes, * or by AcpiLoadTable() API, the "Reload" parameter is set. * After successfully returning from this function, table is * "INSTALLED" but not "VALIDATED". * ******************************************************************************/ ACPI_STATUS AcpiTbInstallStandardTable ( ACPI_PHYSICAL_ADDRESS Address, UINT8 Flags, ACPI_TABLE_HEADER *Table, BOOLEAN Reload, BOOLEAN Override, UINT32 *TableIndex) { UINT32 i; ACPI_STATUS Status = AE_OK; ACPI_TABLE_DESC NewTableDesc; ACPI_FUNCTION_TRACE (TbInstallStandardTable); /* Acquire a temporary table descriptor for validation */ Status = AcpiTbAcquireTempTable (&NewTableDesc, Address, Flags, Table); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not acquire table length at %8.8X%8.8X", ACPI_FORMAT_UINT64 (Address))); return_ACPI_STATUS (Status); } /* * Optionally do not load any SSDTs from the RSDT/XSDT. This can * be useful for debugging ACPI problems on some machines. */ if (!Reload && AcpiGbl_DisableSsdtTableInstall && ACPI_COMPARE_NAMESEG (&NewTableDesc.Signature, ACPI_SIG_SSDT)) { ACPI_INFO (( "Ignoring installation of %4.4s at %8.8X%8.8X", NewTableDesc.Signature.Ascii, ACPI_FORMAT_UINT64 (Address))); goto ReleaseAndExit; } /* Acquire the table lock */ (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); /* Validate and verify a table before installation */ Status = AcpiTbVerifyTempTable (&NewTableDesc, NULL, &i); if (ACPI_FAILURE (Status)) { if (Status == AE_CTRL_TERMINATE) { /* * Table was unloaded, allow it to be reloaded. * As we are going to return AE_OK to the caller, we should * take the responsibility of freeing the input descriptor. * Refill the input descriptor to ensure * AcpiTbInstallTableWithOverride() can be called again to * indicate the re-installation. */ AcpiTbUninstallTable (&NewTableDesc); (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); *TableIndex = i; return_ACPI_STATUS (AE_OK); } goto UnlockAndExit; } /* Add the table to the global root table list */ AcpiTbInstallTableWithOverride (&NewTableDesc, Override, TableIndex); /* Invoke table handler */ (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); AcpiTbNotifyTable (ACPI_TABLE_EVENT_INSTALL, NewTableDesc.Pointer); (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES); UnlockAndExit: /* Release the table lock */ (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES); ReleaseAndExit: /* Release the temporary table descriptor */ AcpiTbReleaseTempTable (&NewTableDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiTbOverrideTable * * PARAMETERS: OldTableDesc - Validated table descriptor to be * overridden * * RETURN: None * * DESCRIPTION: Attempt table override by calling the OSL override functions. * Note: If the table is overridden, then the entire new table * is acquired and returned by this function. * Before/after invocation, the table descriptor is in a state * that is "VALIDATED". * ******************************************************************************/ void AcpiTbOverrideTable ( ACPI_TABLE_DESC *OldTableDesc) { ACPI_STATUS Status; ACPI_TABLE_DESC NewTableDesc; ACPI_TABLE_HEADER *Table; ACPI_PHYSICAL_ADDRESS Address; UINT32 Length; ACPI_ERROR_ONLY (char *OverrideType); /* (1) Attempt logical override (returns a logical address) */ Status = AcpiOsTableOverride (OldTableDesc->Pointer, &Table); if (ACPI_SUCCESS (Status) && Table) { AcpiTbAcquireTempTable (&NewTableDesc, ACPI_PTR_TO_PHYSADDR (Table), ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL, Table); ACPI_ERROR_ONLY (OverrideType = "Logical"); goto FinishOverride; } /* (2) Attempt physical override (returns a physical address) */ Status = AcpiOsPhysicalTableOverride (OldTableDesc->Pointer, &Address, &Length); if (ACPI_SUCCESS (Status) && Address && Length) { AcpiTbAcquireTempTable (&NewTableDesc, Address, ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL, NULL); ACPI_ERROR_ONLY (OverrideType = "Physical"); goto FinishOverride; } return; /* There was no override */ FinishOverride: /* * Validate and verify a table before overriding, no nested table * duplication check as it's too complicated and unnecessary. */ Status = AcpiTbVerifyTempTable (&NewTableDesc, NULL, NULL); if (ACPI_FAILURE (Status)) { return; } ACPI_INFO (("%4.4s 0x%8.8X%8.8X" " %s table override, new table: 0x%8.8X%8.8X", OldTableDesc->Signature.Ascii, ACPI_FORMAT_UINT64 (OldTableDesc->Address), OverrideType, ACPI_FORMAT_UINT64 (NewTableDesc.Address))); /* We can now uninstall the original table */ AcpiTbUninstallTable (OldTableDesc); /* * Replace the original table descriptor and keep its state as * "VALIDATED". */ AcpiTbInitTableDescriptor (OldTableDesc, NewTableDesc.Address, NewTableDesc.Flags, NewTableDesc.Pointer); AcpiTbValidateTempTable (OldTableDesc); /* Release the temporary table descriptor */ AcpiTbReleaseTempTable (&NewTableDesc); } /******************************************************************************* * * FUNCTION: AcpiTbUninstallTable * * PARAMETERS: TableDesc - Table descriptor * * RETURN: None * * DESCRIPTION: Delete one internal ACPI table * ******************************************************************************/ void AcpiTbUninstallTable ( ACPI_TABLE_DESC *TableDesc) { ACPI_FUNCTION_TRACE (TbUninstallTable); /* Table must be installed */ if (!TableDesc->Address) { return_VOID; } AcpiTbInvalidateTable (TableDesc); if ((TableDesc->Flags & ACPI_TABLE_ORIGIN_MASK) == ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL) { ACPI_FREE (TableDesc->Pointer); TableDesc->Pointer = NULL; } TableDesc->Address = ACPI_PTR_TO_PHYSADDR (NULL); return_VOID; } acpica-unix-20250404/source/components/resources/0000775000175000017500000000000014773714133021236 5ustar ivanhuivanhuacpica-unix-20250404/source/components/resources/rsaddr.c0000775000175000017500000003336014773714133022671 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsaddr - Address resource descriptors (16/32/64) * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsaddr") /******************************************************************************* * * AcpiRsConvertAddress16 - All WORD (16-bit) address resources * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertAddress16[5] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_ADDRESS16, ACPI_RS_SIZE (ACPI_RESOURCE_ADDRESS16), ACPI_RSC_TABLE_SIZE (AcpiRsConvertAddress16)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_ADDRESS16, sizeof (AML_RESOURCE_ADDRESS16), 0}, /* Resource Type, General Flags, and Type-Specific Flags */ {ACPI_RSC_ADDRESS, 0, 0, 0}, /* * These fields are contiguous in both the source and destination: * Address Granularity * Address Range Minimum * Address Range Maximum * Address Translation Offset * Address Length */ {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.Address16.Address.Granularity), AML_OFFSET (Address16.Granularity), 5}, /* Optional ResourceSource (Index and String) */ {ACPI_RSC_SOURCE, ACPI_RS_OFFSET (Data.Address16.ResourceSource), 0, sizeof (AML_RESOURCE_ADDRESS16)} }; /******************************************************************************* * * AcpiRsConvertAddress32 - All DWORD (32-bit) address resources * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertAddress32[5] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_ADDRESS32, ACPI_RS_SIZE (ACPI_RESOURCE_ADDRESS32), ACPI_RSC_TABLE_SIZE (AcpiRsConvertAddress32)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_ADDRESS32, sizeof (AML_RESOURCE_ADDRESS32), 0}, /* Resource Type, General Flags, and Type-Specific Flags */ {ACPI_RSC_ADDRESS, 0, 0, 0}, /* * These fields are contiguous in both the source and destination: * Address Granularity * Address Range Minimum * Address Range Maximum * Address Translation Offset * Address Length */ {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.Address32.Address.Granularity), AML_OFFSET (Address32.Granularity), 5}, /* Optional ResourceSource (Index and String) */ {ACPI_RSC_SOURCE, ACPI_RS_OFFSET (Data.Address32.ResourceSource), 0, sizeof (AML_RESOURCE_ADDRESS32)} }; /******************************************************************************* * * AcpiRsConvertAddress64 - All QWORD (64-bit) address resources * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertAddress64[5] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_ADDRESS64, ACPI_RS_SIZE (ACPI_RESOURCE_ADDRESS64), ACPI_RSC_TABLE_SIZE (AcpiRsConvertAddress64)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_ADDRESS64, sizeof (AML_RESOURCE_ADDRESS64), 0}, /* Resource Type, General Flags, and Type-Specific Flags */ {ACPI_RSC_ADDRESS, 0, 0, 0}, /* * These fields are contiguous in both the source and destination: * Address Granularity * Address Range Minimum * Address Range Maximum * Address Translation Offset * Address Length */ {ACPI_RSC_MOVE64, ACPI_RS_OFFSET (Data.Address64.Address.Granularity), AML_OFFSET (Address64.Granularity), 5}, /* Optional ResourceSource (Index and String) */ {ACPI_RSC_SOURCE, ACPI_RS_OFFSET (Data.Address64.ResourceSource), 0, sizeof (AML_RESOURCE_ADDRESS64)} }; /******************************************************************************* * * AcpiRsConvertExtAddress64 - All Extended (64-bit) address resources * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertExtAddress64[5] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64, ACPI_RS_SIZE (ACPI_RESOURCE_EXTENDED_ADDRESS64), ACPI_RSC_TABLE_SIZE (AcpiRsConvertExtAddress64)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64, sizeof (AML_RESOURCE_EXTENDED_ADDRESS64), 0}, /* Resource Type, General Flags, and Type-Specific Flags */ {ACPI_RSC_ADDRESS, 0, 0, 0}, /* Revision ID */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.ExtAddress64.RevisionID), AML_OFFSET (ExtAddress64.RevisionID), 1}, /* * These fields are contiguous in both the source and destination: * Address Granularity * Address Range Minimum * Address Range Maximum * Address Translation Offset * Address Length * Type-Specific Attribute */ {ACPI_RSC_MOVE64, ACPI_RS_OFFSET (Data.ExtAddress64.Address.Granularity), AML_OFFSET (ExtAddress64.Granularity), 6} }; /******************************************************************************* * * AcpiRsConvertGeneralFlags - Flags common to all address descriptors * ******************************************************************************/ static ACPI_RSCONVERT_INFO AcpiRsConvertGeneralFlags[6] = { {ACPI_RSC_FLAGINIT, 0, AML_OFFSET (Address.Flags), ACPI_RSC_TABLE_SIZE (AcpiRsConvertGeneralFlags)}, /* Resource Type (Memory, Io, BusNumber, etc.) */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Address.ResourceType), AML_OFFSET (Address.ResourceType), 1}, /* General Flags - Consume, Decode, MinFixed, MaxFixed */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Address.ProducerConsumer), AML_OFFSET (Address.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Address.Decode), AML_OFFSET (Address.Flags), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Address.MinAddressFixed), AML_OFFSET (Address.Flags), 2}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Address.MaxAddressFixed), AML_OFFSET (Address.Flags), 3} }; /******************************************************************************* * * AcpiRsConvertMemFlags - Flags common to Memory address descriptors * ******************************************************************************/ static ACPI_RSCONVERT_INFO AcpiRsConvertMemFlags[5] = { {ACPI_RSC_FLAGINIT, 0, AML_OFFSET (Address.SpecificFlags), ACPI_RSC_TABLE_SIZE (AcpiRsConvertMemFlags)}, /* Memory-specific flags */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Address.Info.Mem.WriteProtect), AML_OFFSET (Address.SpecificFlags), 0}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Address.Info.Mem.Caching), AML_OFFSET (Address.SpecificFlags), 1}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Address.Info.Mem.RangeType), AML_OFFSET (Address.SpecificFlags), 3}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Address.Info.Mem.Translation), AML_OFFSET (Address.SpecificFlags), 5} }; /******************************************************************************* * * AcpiRsConvertIoFlags - Flags common to I/O address descriptors * ******************************************************************************/ static ACPI_RSCONVERT_INFO AcpiRsConvertIoFlags[4] = { {ACPI_RSC_FLAGINIT, 0, AML_OFFSET (Address.SpecificFlags), ACPI_RSC_TABLE_SIZE (AcpiRsConvertIoFlags)}, /* I/O-specific flags */ {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Address.Info.Io.RangeType), AML_OFFSET (Address.SpecificFlags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Address.Info.Io.Translation), AML_OFFSET (Address.SpecificFlags), 4}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Address.Info.Io.TranslationType), AML_OFFSET (Address.SpecificFlags), 5} }; /******************************************************************************* * * FUNCTION: AcpiRsGetAddressCommon * * PARAMETERS: Resource - Pointer to the internal resource struct * Aml - Pointer to the AML resource descriptor * * RETURN: TRUE if the ResourceType field is OK, FALSE otherwise * * DESCRIPTION: Convert common flag fields from a raw AML resource descriptor * to an internal resource descriptor * ******************************************************************************/ BOOLEAN AcpiRsGetAddressCommon ( ACPI_RESOURCE *Resource, AML_RESOURCE *Aml) { ACPI_FUNCTION_ENTRY(); /* Validate the Resource Type */ if ((Aml->Address.ResourceType > 2) && (Aml->Address.ResourceType < 0xC0) && (Aml->Address.ResourceType != 0x0A)) { return (FALSE); } /* Get the Resource Type and General Flags */ (void) AcpiRsConvertAmlToResource ( Resource, Aml, AcpiRsConvertGeneralFlags); /* Get the Type-Specific Flags (Memory and I/O descriptors only) */ if (Resource->Data.Address.ResourceType == ACPI_MEMORY_RANGE) { (void) AcpiRsConvertAmlToResource ( Resource, Aml, AcpiRsConvertMemFlags); } else if (Resource->Data.Address.ResourceType == ACPI_IO_RANGE) { (void) AcpiRsConvertAmlToResource ( Resource, Aml, AcpiRsConvertIoFlags); } else { /* Generic resource type, just grab the TypeSpecific byte */ Resource->Data.Address.Info.TypeSpecific = Aml->Address.SpecificFlags; } return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiRsSetAddressCommon * * PARAMETERS: Aml - Pointer to the AML resource descriptor * Resource - Pointer to the internal resource struct * * RETURN: None * * DESCRIPTION: Convert common flag fields from a resource descriptor to an * AML descriptor * ******************************************************************************/ void AcpiRsSetAddressCommon ( AML_RESOURCE *Aml, ACPI_RESOURCE *Resource) { ACPI_FUNCTION_ENTRY (); /* Set the Resource Type and General Flags */ (void) AcpiRsConvertResourceToAml ( Resource, Aml, AcpiRsConvertGeneralFlags); /* Set the Type-Specific Flags (Memory and I/O descriptors only) */ if (Resource->Data.Address.ResourceType == ACPI_MEMORY_RANGE) { (void) AcpiRsConvertResourceToAml ( Resource, Aml, AcpiRsConvertMemFlags); } else if (Resource->Data.Address.ResourceType == ACPI_IO_RANGE) { (void) AcpiRsConvertResourceToAml ( Resource, Aml, AcpiRsConvertIoFlags); } else { /* Generic resource type, just copy the TypeSpecific byte */ Aml->Address.SpecificFlags = Resource->Data.Address.Info.TypeSpecific; } } acpica-unix-20250404/source/components/resources/rscalc.c0000775000175000017500000006630114773714133022662 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rscalc - Calculate stream and list lengths * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #include "acnamesp.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rscalc") /* Local prototypes */ static UINT8 AcpiRsCountSetBits ( UINT16 BitField); static ACPI_RS_LENGTH AcpiRsStructOptionLength ( ACPI_RESOURCE_SOURCE *ResourceSource); static UINT32 AcpiRsStreamOptionLength ( UINT32 ResourceLength, UINT32 MinimumTotalLength); /******************************************************************************* * * FUNCTION: AcpiRsCountSetBits * * PARAMETERS: BitField - Field in which to count bits * * RETURN: Number of bits set within the field * * DESCRIPTION: Count the number of bits set in a resource field. Used for * (Short descriptor) interrupt and DMA lists. * ******************************************************************************/ static UINT8 AcpiRsCountSetBits ( UINT16 BitField) { UINT8 BitsSet; ACPI_FUNCTION_ENTRY (); for (BitsSet = 0; BitField; BitsSet++) { /* Zero the least significant bit that is set */ BitField &= (UINT16) (BitField - 1); } return (BitsSet); } /******************************************************************************* * * FUNCTION: AcpiRsStructOptionLength * * PARAMETERS: ResourceSource - Pointer to optional descriptor field * * RETURN: Status * * DESCRIPTION: Common code to handle optional ResourceSourceIndex and * ResourceSource fields in some Large descriptors. Used during * list-to-stream conversion * ******************************************************************************/ static ACPI_RS_LENGTH AcpiRsStructOptionLength ( ACPI_RESOURCE_SOURCE *ResourceSource) { ACPI_FUNCTION_ENTRY (); /* * If the ResourceSource string is valid, return the size of the string * (StringLength includes the NULL terminator) plus the size of the * ResourceSourceIndex (1). */ if (ResourceSource->StringPtr) { return ((ACPI_RS_LENGTH) (ResourceSource->StringLength + 1)); } return (0); } /******************************************************************************* * * FUNCTION: AcpiRsStreamOptionLength * * PARAMETERS: ResourceLength - Length from the resource header * MinimumTotalLength - Minimum length of this resource, before * any optional fields. Includes header size * * RETURN: Length of optional string (0 if no string present) * * DESCRIPTION: Common code to handle optional ResourceSourceIndex and * ResourceSource fields in some Large descriptors. Used during * stream-to-list conversion * ******************************************************************************/ static UINT32 AcpiRsStreamOptionLength ( UINT32 ResourceLength, UINT32 MinimumAmlResourceLength) { UINT32 StringLength = 0; ACPI_FUNCTION_ENTRY (); /* * The ResourceSourceIndex and ResourceSource are optional elements of * some Large-type resource descriptors. */ /* * If the length of the actual resource descriptor is greater than the * ACPI spec-defined minimum length, it means that a ResourceSourceIndex * exists and is followed by a (required) null terminated string. The * string length (including the null terminator) is the resource length * minus the minimum length, minus one byte for the ResourceSourceIndex * itself. */ if (ResourceLength > MinimumAmlResourceLength) { /* Compute the length of the optional string */ StringLength = ResourceLength - MinimumAmlResourceLength - 1; } /* * Round the length up to a multiple of the native word in order to * guarantee that the entire resource descriptor is native word aligned */ return ((UINT32) ACPI_ROUND_UP_TO_NATIVE_WORD (StringLength)); } /******************************************************************************* * * FUNCTION: AcpiRsGetAmlLength * * PARAMETERS: Resource - Pointer to the resource linked list * ResourceListSize - Size of the resource linked list * SizeNeeded - Where the required size is returned * * RETURN: Status * * DESCRIPTION: Takes a linked list of internal resource descriptors and * calculates the size buffer needed to hold the corresponding * external resource byte stream. * ******************************************************************************/ ACPI_STATUS AcpiRsGetAmlLength ( ACPI_RESOURCE *Resource, ACPI_SIZE ResourceListSize, ACPI_SIZE *SizeNeeded) { ACPI_SIZE AmlSizeNeeded = 0; ACPI_RESOURCE *ResourceEnd; ACPI_RS_LENGTH TotalSize; ACPI_FUNCTION_TRACE (RsGetAmlLength); /* Traverse entire list of internal resource descriptors */ ResourceEnd = ACPI_ADD_PTR (ACPI_RESOURCE, Resource, ResourceListSize); while (Resource < ResourceEnd) { /* Validate the descriptor type */ if (Resource->Type > ACPI_RESOURCE_TYPE_MAX) { return_ACPI_STATUS (AE_AML_INVALID_RESOURCE_TYPE); } /* Sanity check the length. It must not be zero, or we loop forever */ if (!Resource->Length) { return_ACPI_STATUS (AE_AML_BAD_RESOURCE_LENGTH); } /* Get the base size of the (external stream) resource descriptor */ TotalSize = AcpiGbl_AmlResourceSizes [Resource->Type]; /* * Augment the base size for descriptors with optional and/or * variable-length fields */ switch (Resource->Type) { case ACPI_RESOURCE_TYPE_IRQ: /* Length can be 3 or 2 */ if (Resource->Data.Irq.DescriptorLength == 2) { TotalSize--; } break; case ACPI_RESOURCE_TYPE_START_DEPENDENT: /* Length can be 1 or 0 */ if (Resource->Data.Irq.DescriptorLength == 0) { TotalSize--; } break; case ACPI_RESOURCE_TYPE_VENDOR: /* * Vendor Defined Resource: * For a Vendor Specific resource, if the Length is between 1 and 7 * it will be created as a Small Resource data type, otherwise it * is a Large Resource data type. */ if (Resource->Data.Vendor.ByteLength > 7) { /* Base size of a Large resource descriptor */ TotalSize = sizeof (AML_RESOURCE_LARGE_HEADER); } /* Add the size of the vendor-specific data */ TotalSize = (ACPI_RS_LENGTH) (TotalSize + Resource->Data.Vendor.ByteLength); break; case ACPI_RESOURCE_TYPE_END_TAG: /* * End Tag: * We are done -- return the accumulated total size. */ *SizeNeeded = AmlSizeNeeded + TotalSize; /* Normal exit */ return_ACPI_STATUS (AE_OK); case ACPI_RESOURCE_TYPE_ADDRESS16: /* * 16-Bit Address Resource: * Add the size of the optional ResourceSource info */ TotalSize = (ACPI_RS_LENGTH) (TotalSize + AcpiRsStructOptionLength ( &Resource->Data.Address16.ResourceSource)); break; case ACPI_RESOURCE_TYPE_ADDRESS32: /* * 32-Bit Address Resource: * Add the size of the optional ResourceSource info */ TotalSize = (ACPI_RS_LENGTH) (TotalSize + AcpiRsStructOptionLength ( &Resource->Data.Address32.ResourceSource)); break; case ACPI_RESOURCE_TYPE_ADDRESS64: /* * 64-Bit Address Resource: * Add the size of the optional ResourceSource info */ TotalSize = (ACPI_RS_LENGTH) (TotalSize + AcpiRsStructOptionLength ( &Resource->Data.Address64.ResourceSource)); break; case ACPI_RESOURCE_TYPE_EXTENDED_IRQ: /* * Extended IRQ Resource: * Add the size of each additional optional interrupt beyond the * required 1 (4 bytes for each UINT32 interrupt number) */ TotalSize = (ACPI_RS_LENGTH) (TotalSize + ((Resource->Data.ExtendedIrq.InterruptCount - 1) * 4) + /* Add the size of the optional ResourceSource info */ AcpiRsStructOptionLength ( &Resource->Data.ExtendedIrq.ResourceSource)); break; case ACPI_RESOURCE_TYPE_GPIO: TotalSize = (ACPI_RS_LENGTH) (TotalSize + (Resource->Data.Gpio.PinTableLength * 2) + Resource->Data.Gpio.ResourceSource.StringLength + Resource->Data.Gpio.VendorLength); break; case ACPI_RESOURCE_TYPE_PIN_FUNCTION: TotalSize = (ACPI_RS_LENGTH) (TotalSize + (Resource->Data.PinFunction.PinTableLength * 2) + Resource->Data.PinFunction.ResourceSource.StringLength + Resource->Data.PinFunction.VendorLength); break; case ACPI_RESOURCE_TYPE_CLOCK_INPUT: TotalSize = (ACPI_RS_LENGTH) (TotalSize + Resource->Data.ClockInput.ResourceSource.StringLength); break; case ACPI_RESOURCE_TYPE_SERIAL_BUS: TotalSize = AcpiGbl_AmlResourceSerialBusSizes [ Resource->Data.CommonSerialBus.Type]; TotalSize = (ACPI_RS_LENGTH) (TotalSize + Resource->Data.I2cSerialBus.ResourceSource.StringLength + Resource->Data.I2cSerialBus.VendorLength); break; case ACPI_RESOURCE_TYPE_PIN_CONFIG: TotalSize = (ACPI_RS_LENGTH) (TotalSize + (Resource->Data.PinConfig.PinTableLength * 2) + Resource->Data.PinConfig.ResourceSource.StringLength + Resource->Data.PinConfig.VendorLength); break; case ACPI_RESOURCE_TYPE_PIN_GROUP: TotalSize = (ACPI_RS_LENGTH) (TotalSize + (Resource->Data.PinGroup.PinTableLength * 2) + Resource->Data.PinGroup.ResourceLabel.StringLength + Resource->Data.PinGroup.VendorLength); break; case ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION: TotalSize = (ACPI_RS_LENGTH) (TotalSize + Resource->Data.PinGroupFunction.ResourceSource.StringLength + Resource->Data.PinGroupFunction.ResourceSourceLabel.StringLength + Resource->Data.PinGroupFunction.VendorLength); break; case ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG: TotalSize = (ACPI_RS_LENGTH) (TotalSize + Resource->Data.PinGroupConfig.ResourceSource.StringLength + Resource->Data.PinGroupConfig.ResourceSourceLabel.StringLength + Resource->Data.PinGroupConfig.VendorLength); break; default: break; } /* Update the total */ AmlSizeNeeded += TotalSize; /* Point to the next object */ Resource = ACPI_ADD_PTR (ACPI_RESOURCE, Resource, Resource->Length); } /* Did not find an EndTag resource descriptor */ return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG); } /******************************************************************************* * * FUNCTION: AcpiRsGetListLength * * PARAMETERS: AmlBuffer - Pointer to the resource byte stream * AmlBufferLength - Size of AmlBuffer * SizeNeeded - Where the size needed is returned * * RETURN: Status * * DESCRIPTION: Takes an external resource byte stream and calculates the size * buffer needed to hold the corresponding internal resource * descriptor linked list. * ******************************************************************************/ ACPI_STATUS AcpiRsGetListLength ( UINT8 *AmlBuffer, UINT32 AmlBufferLength, ACPI_SIZE *SizeNeeded) { ACPI_STATUS Status; UINT8 *EndAml; UINT8 *Buffer; UINT32 BufferSize; UINT16 Temp16; UINT16 ResourceLength; UINT32 ExtraStructBytes; UINT8 ResourceIndex; UINT8 MinimumAmlResourceLength; AML_RESOURCE *AmlResource; ACPI_FUNCTION_TRACE (RsGetListLength); *SizeNeeded = ACPI_RS_SIZE_MIN; /* Minimum size is one EndTag */ EndAml = AmlBuffer + AmlBufferLength; /* Walk the list of AML resource descriptors */ while (AmlBuffer < EndAml) { /* Validate the Resource Type and Resource Length */ Status = AcpiUtValidateResource (NULL, AmlBuffer, &ResourceIndex); if (ACPI_FAILURE (Status)) { /* * Exit on failure. Cannot continue because the descriptor length * may be bogus also. */ return_ACPI_STATUS (Status); } AmlResource = (void *) AmlBuffer; /* Get the resource length and base (minimum) AML size */ ResourceLength = AcpiUtGetResourceLength (AmlBuffer); MinimumAmlResourceLength = AcpiGbl_ResourceAmlSizes[ResourceIndex]; /* * Augment the size for descriptors with optional * and/or variable length fields */ ExtraStructBytes = 0; Buffer = AmlBuffer + AcpiUtGetResourceHeaderLength (AmlBuffer); switch (AcpiUtGetResourceType (AmlBuffer)) { case ACPI_RESOURCE_NAME_IRQ: /* * IRQ Resource: * Get the number of bits set in the 16-bit IRQ mask */ ACPI_MOVE_16_TO_16 (&Temp16, Buffer); ExtraStructBytes = AcpiRsCountSetBits (Temp16); break; case ACPI_RESOURCE_NAME_DMA: /* * DMA Resource: * Get the number of bits set in the 8-bit DMA mask */ ExtraStructBytes = AcpiRsCountSetBits (*Buffer); break; case ACPI_RESOURCE_NAME_VENDOR_SMALL: case ACPI_RESOURCE_NAME_VENDOR_LARGE: /* * Vendor Resource: * Get the number of vendor data bytes */ ExtraStructBytes = ResourceLength; /* * There is already one byte included in the minimum * descriptor size. If there are extra struct bytes, * subtract one from the count. */ if (ExtraStructBytes) { ExtraStructBytes--; } break; case ACPI_RESOURCE_NAME_END_TAG: /* * End Tag: This is the normal exit */ return_ACPI_STATUS (AE_OK); case ACPI_RESOURCE_NAME_ADDRESS32: case ACPI_RESOURCE_NAME_ADDRESS16: case ACPI_RESOURCE_NAME_ADDRESS64: /* * Address Resource: * Add the size of the optional ResourceSource */ ExtraStructBytes = AcpiRsStreamOptionLength ( ResourceLength, MinimumAmlResourceLength); break; case ACPI_RESOURCE_NAME_EXTENDED_IRQ: /* * Extended IRQ Resource: * Using the InterruptTableLength, add 4 bytes for each additional * interrupt. Note: at least one interrupt is required and is * included in the minimum descriptor size (reason for the -1) */ ExtraStructBytes = (Buffer[1] - 1) * sizeof (UINT32); /* Add the size of the optional ResourceSource */ ExtraStructBytes += AcpiRsStreamOptionLength ( ResourceLength - ExtraStructBytes, MinimumAmlResourceLength); break; case ACPI_RESOURCE_NAME_GPIO: /* Vendor data is optional */ if (AmlResource->Gpio.VendorLength) { ExtraStructBytes += AmlResource->Gpio.VendorOffset - AmlResource->Gpio.PinTableOffset + AmlResource->Gpio.VendorLength; } else { ExtraStructBytes += AmlResource->LargeHeader.ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER) - AmlResource->Gpio.PinTableOffset; } break; case ACPI_RESOURCE_NAME_PIN_FUNCTION: /* Vendor data is optional */ if (AmlResource->PinFunction.VendorLength) { ExtraStructBytes += AmlResource->PinFunction.VendorOffset - AmlResource->PinFunction.PinTableOffset + AmlResource->PinFunction.VendorLength; } else { ExtraStructBytes += AmlResource->LargeHeader.ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER) - AmlResource->PinFunction.PinTableOffset; } break; case ACPI_RESOURCE_NAME_SERIAL_BUS: { MinimumAmlResourceLength = AcpiGbl_ResourceAmlSerialBusSizes[ AmlResource->CommonSerialBus.Type]; ExtraStructBytes += AmlResource->CommonSerialBus.ResourceLength - MinimumAmlResourceLength; break; } case ACPI_RESOURCE_NAME_PIN_CONFIG: /* Vendor data is optional */ if (AmlResource->PinConfig.VendorLength) { ExtraStructBytes += AmlResource->PinConfig.VendorOffset - AmlResource->PinConfig.PinTableOffset + AmlResource->PinConfig.VendorLength; } else { ExtraStructBytes += AmlResource->LargeHeader.ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER) - AmlResource->PinConfig.PinTableOffset; } break; case ACPI_RESOURCE_NAME_PIN_GROUP: ExtraStructBytes += AmlResource->PinGroup.VendorOffset - AmlResource->PinGroup.PinTableOffset + AmlResource->PinGroup.VendorLength; break; case ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION: ExtraStructBytes += AmlResource->PinGroupFunction.VendorOffset - AmlResource->PinGroupFunction.ResSourceOffset + AmlResource->PinGroupFunction.VendorLength; break; case ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG: ExtraStructBytes += AmlResource->PinGroupConfig.VendorOffset - AmlResource->PinGroupConfig.ResSourceOffset + AmlResource->PinGroupConfig.VendorLength; break; case ACPI_RESOURCE_NAME_CLOCK_INPUT: ExtraStructBytes = AcpiRsStreamOptionLength ( ResourceLength, MinimumAmlResourceLength); break; default: break; } /* * Update the required buffer size for the internal descriptor structs * * Important: Round the size up for the appropriate alignment. This * is a requirement on IA64. */ if (AcpiUtGetResourceType (AmlBuffer) == ACPI_RESOURCE_NAME_SERIAL_BUS) { BufferSize = AcpiGbl_ResourceStructSerialBusSizes[ AmlResource->CommonSerialBus.Type] + ExtraStructBytes; } else { BufferSize = AcpiGbl_ResourceStructSizes[ResourceIndex] + ExtraStructBytes; } BufferSize = (UINT32) ACPI_ROUND_UP_TO_NATIVE_WORD (BufferSize); *SizeNeeded += BufferSize; ACPI_DEBUG_PRINT ((ACPI_DB_RESOURCES, "Type %.2X, AmlLength %.2X InternalLength %.2X%8X\n", AcpiUtGetResourceType (AmlBuffer), AcpiUtGetDescriptorLength (AmlBuffer), ACPI_FORMAT_UINT64(*SizeNeeded))); /* * Point to the next resource within the AML stream using the length * contained in the resource descriptor header */ AmlBuffer += AcpiUtGetDescriptorLength (AmlBuffer); } /* Did not find an EndTag resource descriptor */ return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG); } /******************************************************************************* * * FUNCTION: AcpiRsGetPciRoutingTableLength * * PARAMETERS: PackageObject - Pointer to the package object * BufferSizeNeeded - UINT32 pointer of the size buffer * needed to properly return the * parsed data * * RETURN: Status * * DESCRIPTION: Given a package representing a PCI routing table, this * calculates the size of the corresponding linked list of * descriptions. * ******************************************************************************/ ACPI_STATUS AcpiRsGetPciRoutingTableLength ( ACPI_OPERAND_OBJECT *PackageObject, ACPI_SIZE *BufferSizeNeeded) { UINT32 NumberOfElements; ACPI_SIZE TempSizeNeeded = 0; ACPI_OPERAND_OBJECT **TopObjectList; UINT32 Index; ACPI_OPERAND_OBJECT *PackageElement; ACPI_OPERAND_OBJECT **SubObjectList; BOOLEAN NameFound; UINT32 TableIndex; ACPI_FUNCTION_TRACE (RsGetPciRoutingTableLength); NumberOfElements = PackageObject->Package.Count; /* * Calculate the size of the return buffer. * The base size is the number of elements * the sizes of the * structures. Additional space for the strings is added below. * The minus one is to subtract the size of the UINT8 Source[1] * member because it is added below. * * But each PRT_ENTRY structure has a pointer to a string and * the size of that string must be found. */ TopObjectList = PackageObject->Package.Elements; for (Index = 0; Index < NumberOfElements; Index++) { /* Dereference the subpackage */ PackageElement = *TopObjectList; /* We must have a valid Package object */ if (!PackageElement || (PackageElement->Common.Type != ACPI_TYPE_PACKAGE)) { return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* * The SubObjectList will now point to an array of the * four IRQ elements: Address, Pin, Source and SourceIndex */ SubObjectList = PackageElement->Package.Elements; /* Scan the IrqTableElements for the Source Name String */ NameFound = FALSE; for (TableIndex = 0; TableIndex < PackageElement->Package.Count && !NameFound; TableIndex++) { if (*SubObjectList && /* Null object allowed */ ((ACPI_TYPE_STRING == (*SubObjectList)->Common.Type) || ((ACPI_TYPE_LOCAL_REFERENCE == (*SubObjectList)->Common.Type) && ((*SubObjectList)->Reference.Class == ACPI_REFCLASS_NAME)))) { NameFound = TRUE; } else { /* Look at the next element */ SubObjectList++; } } TempSizeNeeded += (sizeof (ACPI_PCI_ROUTING_TABLE) - 4); /* Was a String type found? */ if (NameFound) { if ((*SubObjectList)->Common.Type == ACPI_TYPE_STRING) { /* * The length String.Length field does not include the * terminating NULL, add 1 */ TempSizeNeeded += ((ACPI_SIZE) (*SubObjectList)->String.Length + 1); } else { TempSizeNeeded += AcpiNsGetPathnameLength ( (*SubObjectList)->Reference.Node); } } else { /* * If no name was found, then this is a NULL, which is * translated as a UINT32 zero. */ TempSizeNeeded += sizeof (UINT32); } /* Round up the size since each element must be aligned */ TempSizeNeeded = ACPI_ROUND_UP_TO_64BIT (TempSizeNeeded); /* Point to the next ACPI_OPERAND_OBJECT */ TopObjectList++; } /* * Add an extra element to the end of the list, essentially a * NULL terminator */ *BufferSizeNeeded = TempSizeNeeded + sizeof (ACPI_PCI_ROUTING_TABLE); return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/resources/rsmemory.c0000775000175000017500000002051214773714133023262 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsmem24 - Memory resource descriptors * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsmemory") /******************************************************************************* * * AcpiRsConvertMemory24 * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertMemory24[4] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_MEMORY24, ACPI_RS_SIZE (ACPI_RESOURCE_MEMORY24), ACPI_RSC_TABLE_SIZE (AcpiRsConvertMemory24)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_MEMORY24, sizeof (AML_RESOURCE_MEMORY24), 0}, /* Read/Write bit */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Memory24.WriteProtect), AML_OFFSET (Memory24.Flags), 0}, /* * These fields are contiguous in both the source and destination: * Minimum Base Address * Maximum Base Address * Address Base Alignment * Range Length */ {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.Memory24.Minimum), AML_OFFSET (Memory24.Minimum), 4} }; /******************************************************************************* * * AcpiRsConvertMemory32 * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertMemory32[4] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_MEMORY32, ACPI_RS_SIZE (ACPI_RESOURCE_MEMORY32), ACPI_RSC_TABLE_SIZE (AcpiRsConvertMemory32)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_MEMORY32, sizeof (AML_RESOURCE_MEMORY32), 0}, /* Read/Write bit */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Memory32.WriteProtect), AML_OFFSET (Memory32.Flags), 0}, /* * These fields are contiguous in both the source and destination: * Minimum Base Address * Maximum Base Address * Address Base Alignment * Range Length */ {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.Memory32.Minimum), AML_OFFSET (Memory32.Minimum), 4} }; /******************************************************************************* * * AcpiRsConvertFixedMemory32 * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertFixedMemory32[4] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_FIXED_MEMORY32, ACPI_RS_SIZE (ACPI_RESOURCE_FIXED_MEMORY32), ACPI_RSC_TABLE_SIZE (AcpiRsConvertFixedMemory32)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_FIXED_MEMORY32, sizeof (AML_RESOURCE_FIXED_MEMORY32), 0}, /* Read/Write bit */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.FixedMemory32.WriteProtect), AML_OFFSET (FixedMemory32.Flags), 0}, /* * These fields are contiguous in both the source and destination: * Base Address * Range Length */ {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.FixedMemory32.Address), AML_OFFSET (FixedMemory32.Address), 2} }; /******************************************************************************* * * AcpiRsGetVendorSmall * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsGetVendorSmall[3] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_VENDOR, ACPI_RS_SIZE (ACPI_RESOURCE_VENDOR), ACPI_RSC_TABLE_SIZE (AcpiRsGetVendorSmall)}, /* Length of the vendor data (byte count) */ {ACPI_RSC_COUNT16, ACPI_RS_OFFSET (Data.Vendor.ByteLength), 0, sizeof (UINT8)}, /* Vendor data */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Vendor.ByteData[0]), sizeof (AML_RESOURCE_SMALL_HEADER), 0} }; /******************************************************************************* * * AcpiRsGetVendorLarge * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsGetVendorLarge[3] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_VENDOR, ACPI_RS_SIZE (ACPI_RESOURCE_VENDOR), ACPI_RSC_TABLE_SIZE (AcpiRsGetVendorLarge)}, /* Length of the vendor data (byte count) */ {ACPI_RSC_COUNT16, ACPI_RS_OFFSET (Data.Vendor.ByteLength), 0, sizeof (UINT8)}, /* Vendor data */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Vendor.ByteData[0]), sizeof (AML_RESOURCE_LARGE_HEADER), 0} }; /******************************************************************************* * * AcpiRsSetVendor * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsSetVendor[7] = { /* Default is a small vendor descriptor */ {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_VENDOR_SMALL, sizeof (AML_RESOURCE_SMALL_HEADER), ACPI_RSC_TABLE_SIZE (AcpiRsSetVendor)}, /* Get the length and copy the data */ {ACPI_RSC_COUNT16, ACPI_RS_OFFSET (Data.Vendor.ByteLength), 0, 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Vendor.ByteData[0]), sizeof (AML_RESOURCE_SMALL_HEADER), 0}, /* * All done if the Vendor byte length is 7 or less, meaning that it will * fit within a small descriptor */ {ACPI_RSC_EXIT_LE, 0, 0, 7}, /* Must create a large vendor descriptor */ {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_VENDOR_LARGE, sizeof (AML_RESOURCE_LARGE_HEADER), 0}, {ACPI_RSC_COUNT16, ACPI_RS_OFFSET (Data.Vendor.ByteLength), 0, 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Vendor.ByteData[0]), sizeof (AML_RESOURCE_LARGE_HEADER), 0} }; acpica-unix-20250404/source/components/resources/rsirq.c0000775000175000017500000002613214773714133022551 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsirq - IRQ resource descriptors * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsirq") /******************************************************************************* * * AcpiRsGetIrq * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsGetIrq[9] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_IRQ, ACPI_RS_SIZE (ACPI_RESOURCE_IRQ), ACPI_RSC_TABLE_SIZE (AcpiRsGetIrq)}, /* Get the IRQ mask (bytes 1:2) */ {ACPI_RSC_BITMASK16,ACPI_RS_OFFSET (Data.Irq.Interrupts[0]), AML_OFFSET (Irq.IrqMask), ACPI_RS_OFFSET (Data.Irq.InterruptCount)}, /* Set default flags (others are zero) */ {ACPI_RSC_SET8, ACPI_RS_OFFSET (Data.Irq.Triggering), ACPI_EDGE_SENSITIVE, 1}, /* Get the descriptor length (2 or 3 for IRQ descriptor) */ {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Irq.DescriptorLength), AML_OFFSET (Irq.DescriptorType), 0}, /* All done if no flag byte present in descriptor */ {ACPI_RSC_EXIT_NE, ACPI_RSC_COMPARE_AML_LENGTH, 0, 3}, /* Get flags: Triggering[0], Polarity[3], Sharing[4], Wake[5] */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Irq.Triggering), AML_OFFSET (Irq.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Irq.Polarity), AML_OFFSET (Irq.Flags), 3}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Irq.Shareable), AML_OFFSET (Irq.Flags), 4}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Irq.WakeCapable), AML_OFFSET (Irq.Flags), 5} }; /******************************************************************************* * * AcpiRsSetIrq * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsSetIrq[14] = { /* Start with a default descriptor of length 3 */ {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_IRQ, sizeof (AML_RESOURCE_IRQ), ACPI_RSC_TABLE_SIZE (AcpiRsSetIrq)}, /* Convert interrupt list to 16-bit IRQ bitmask */ {ACPI_RSC_BITMASK16,ACPI_RS_OFFSET (Data.Irq.Interrupts[0]), AML_OFFSET (Irq.IrqMask), ACPI_RS_OFFSET (Data.Irq.InterruptCount)}, /* Set flags: Triggering[0], Polarity[3], Sharing[4], Wake[5] */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Irq.Triggering), AML_OFFSET (Irq.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Irq.Polarity), AML_OFFSET (Irq.Flags), 3}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Irq.Shareable), AML_OFFSET (Irq.Flags), 4}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Irq.WakeCapable), AML_OFFSET (Irq.Flags), 5}, /* * All done if the output descriptor length is required to be 3 * (i.e., optimization to 2 bytes cannot be attempted) */ {ACPI_RSC_EXIT_EQ, ACPI_RSC_COMPARE_VALUE, ACPI_RS_OFFSET(Data.Irq.DescriptorLength), 3}, /* Set length to 2 bytes (no flags byte) */ {ACPI_RSC_LENGTH, 0, 0, sizeof (AML_RESOURCE_IRQ_NOFLAGS)}, /* * All done if the output descriptor length is required to be 2. * * TBD: Perhaps we should check for error if input flags are not * compatible with a 2-byte descriptor. */ {ACPI_RSC_EXIT_EQ, ACPI_RSC_COMPARE_VALUE, ACPI_RS_OFFSET(Data.Irq.DescriptorLength), 2}, /* Reset length to 3 bytes (descriptor with flags byte) */ {ACPI_RSC_LENGTH, 0, 0, sizeof (AML_RESOURCE_IRQ)}, /* * Check if the flags byte is necessary. Not needed if the flags are: * ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_HIGH, ACPI_EXCLUSIVE */ {ACPI_RSC_EXIT_NE, ACPI_RSC_COMPARE_VALUE, ACPI_RS_OFFSET (Data.Irq.Triggering), ACPI_EDGE_SENSITIVE}, {ACPI_RSC_EXIT_NE, ACPI_RSC_COMPARE_VALUE, ACPI_RS_OFFSET (Data.Irq.Polarity), ACPI_ACTIVE_HIGH}, {ACPI_RSC_EXIT_NE, ACPI_RSC_COMPARE_VALUE, ACPI_RS_OFFSET (Data.Irq.Shareable), ACPI_EXCLUSIVE}, /* We can optimize to a 2-byte IrqNoFlags() descriptor */ {ACPI_RSC_LENGTH, 0, 0, sizeof (AML_RESOURCE_IRQ_NOFLAGS)} }; /******************************************************************************* * * AcpiRsConvertExtIrq * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertExtIrq[10] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_EXTENDED_IRQ, ACPI_RS_SIZE (ACPI_RESOURCE_EXTENDED_IRQ), ACPI_RSC_TABLE_SIZE (AcpiRsConvertExtIrq)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_EXTENDED_IRQ, sizeof (AML_RESOURCE_EXTENDED_IRQ), 0}, /* * Flags: Producer/Consumer[0], Triggering[1], Polarity[2], * Sharing[3], Wake[4] */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.ExtendedIrq.ProducerConsumer), AML_OFFSET (ExtendedIrq.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.ExtendedIrq.Triggering), AML_OFFSET (ExtendedIrq.Flags), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.ExtendedIrq.Polarity), AML_OFFSET (ExtendedIrq.Flags), 2}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.ExtendedIrq.Shareable), AML_OFFSET (ExtendedIrq.Flags), 3}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.ExtendedIrq.WakeCapable), AML_OFFSET (ExtendedIrq.Flags), 4}, /* IRQ Table length (Byte4) */ {ACPI_RSC_COUNT, ACPI_RS_OFFSET (Data.ExtendedIrq.InterruptCount), AML_OFFSET (ExtendedIrq.InterruptCount), sizeof (UINT32)}, /* Copy every IRQ in the table, each is 32 bits */ {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.ExtendedIrq.Interrupts[0]), AML_OFFSET (ExtendedIrq.Interrupts[0]), 0}, /* Optional ResourceSource (Index and String) */ {ACPI_RSC_SOURCEX, ACPI_RS_OFFSET (Data.ExtendedIrq.ResourceSource), ACPI_RS_OFFSET (Data.ExtendedIrq.Interrupts[0]), sizeof (AML_RESOURCE_EXTENDED_IRQ)} }; /******************************************************************************* * * AcpiRsConvertDma * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertDma[6] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_DMA, ACPI_RS_SIZE (ACPI_RESOURCE_DMA), ACPI_RSC_TABLE_SIZE (AcpiRsConvertDma)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_DMA, sizeof (AML_RESOURCE_DMA), 0}, /* Flags: transfer preference, bus mastering, channel speed */ {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Dma.Transfer), AML_OFFSET (Dma.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Dma.BusMaster), AML_OFFSET (Dma.Flags), 2}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Dma.Type), AML_OFFSET (Dma.Flags), 5}, /* DMA channel mask bits */ {ACPI_RSC_BITMASK, ACPI_RS_OFFSET (Data.Dma.Channels[0]), AML_OFFSET (Dma.DmaChannelMask), ACPI_RS_OFFSET (Data.Dma.ChannelCount)} }; /******************************************************************************* * * AcpiRsConvertFixedDma * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertFixedDma[4] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_FIXED_DMA, ACPI_RS_SIZE (ACPI_RESOURCE_FIXED_DMA), ACPI_RSC_TABLE_SIZE (AcpiRsConvertFixedDma)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_FIXED_DMA, sizeof (AML_RESOURCE_FIXED_DMA), 0}, /* * These fields are contiguous in both the source and destination: * RequestLines * Channels */ {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.FixedDma.RequestLines), AML_OFFSET (FixedDma.RequestLines), 2}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.FixedDma.Width), AML_OFFSET (FixedDma.Width), 1}, }; acpica-unix-20250404/source/components/resources/rsdump.c0000775000175000017500000004424714773714133022732 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsdump - AML debugger support for resource structures. * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsdump") /* * All functions in this module are used by the AML Debugger only */ /* Local prototypes */ static void AcpiRsOutString ( const char *Title, const char *Value); static void AcpiRsOutInteger8 ( const char *Title, UINT8 Value); static void AcpiRsOutInteger16 ( const char *Title, UINT16 Value); static void AcpiRsOutInteger32 ( const char *Title, UINT32 Value); static void AcpiRsOutInteger64 ( const char *Title, UINT64 Value); static void AcpiRsOutTitle ( const char *Title); static void AcpiRsDumpByteList ( UINT16 Length, UINT8 *Data); static void AcpiRsDumpWordList ( UINT16 Length, UINT16 *Data); static void AcpiRsDumpDwordList ( UINT8 Length, UINT32 *Data); static void AcpiRsDumpShortByteList ( UINT8 Length, UINT8 *Data); static void AcpiRsDumpResourceSource ( ACPI_RESOURCE_SOURCE *ResourceSource); static void AcpiRsDumpResourceLabel ( char *Title, ACPI_RESOURCE_LABEL *ResourceLabel); static void AcpiRsDumpAddressCommon ( ACPI_RESOURCE_DATA *Resource); static void AcpiRsDumpDescriptor ( void *Resource, ACPI_RSDUMP_INFO *Table); #ifdef ACPI_DEBUGGER /******************************************************************************* * * FUNCTION: AcpiRsDumpResourceList * * PARAMETERS: ResourceList - Pointer to a resource descriptor list * * RETURN: None * * DESCRIPTION: Dispatches the structure to the correct dump routine. * ******************************************************************************/ void AcpiRsDumpResourceList ( ACPI_RESOURCE *ResourceList) { UINT32 Count = 0; UINT32 Type; ACPI_FUNCTION_ENTRY (); /* Check if debug output enabled */ if (!ACPI_IS_DEBUG_ENABLED (ACPI_LV_RESOURCES, _COMPONENT)) { return; } /* Walk list and dump all resource descriptors (END_TAG terminates) */ do { AcpiOsPrintf ("\n[%02X] ", Count); Count++; /* Validate Type before dispatch */ Type = ResourceList->Type; if (Type > ACPI_RESOURCE_TYPE_MAX) { AcpiOsPrintf ( "Invalid descriptor type (%X) in resource list\n", ResourceList->Type); return; } else if (!ResourceList->Type) { ACPI_ERROR ((AE_INFO, "Invalid Zero Resource Type")); return; } /* Sanity check the length. It must not be zero, or we loop forever */ if (!ResourceList->Length) { AcpiOsPrintf ( "Invalid zero length descriptor in resource list\n"); return; } /* Dump the resource descriptor */ if (Type == ACPI_RESOURCE_TYPE_SERIAL_BUS) { AcpiRsDumpDescriptor (&ResourceList->Data, AcpiGbl_DumpSerialBusDispatch[ ResourceList->Data.CommonSerialBus.Type]); } else { AcpiRsDumpDescriptor (&ResourceList->Data, AcpiGbl_DumpResourceDispatch[Type]); } /* Point to the next resource structure */ ResourceList = ACPI_NEXT_RESOURCE (ResourceList); /* Exit when END_TAG descriptor is reached */ } while (Type != ACPI_RESOURCE_TYPE_END_TAG); } /******************************************************************************* * * FUNCTION: AcpiRsDumpIrqList * * PARAMETERS: RouteTable - Pointer to the routing table to dump. * * RETURN: None * * DESCRIPTION: Print IRQ routing table * ******************************************************************************/ void AcpiRsDumpIrqList ( UINT8 *RouteTable) { ACPI_PCI_ROUTING_TABLE *PrtElement; UINT8 Count; ACPI_FUNCTION_ENTRY (); /* Check if debug output enabled */ if (!ACPI_IS_DEBUG_ENABLED (ACPI_LV_RESOURCES, _COMPONENT)) { return; } PrtElement = ACPI_CAST_PTR (ACPI_PCI_ROUTING_TABLE, RouteTable); /* Dump all table elements, Exit on zero length element */ for (Count = 0; PrtElement->Length; Count++) { AcpiOsPrintf ("\n[%02X] PCI IRQ Routing Table Package\n", Count); AcpiRsDumpDescriptor (PrtElement, AcpiRsDumpPrt); PrtElement = ACPI_ADD_PTR (ACPI_PCI_ROUTING_TABLE, PrtElement, PrtElement->Length); } } #endif /******************************************************************************* * * FUNCTION: AcpiRsDumpDescriptor * * PARAMETERS: Resource - Buffer containing the resource * Table - Table entry to decode the resource * * RETURN: None * * DESCRIPTION: Dump a resource descriptor based on a dump table entry. * ******************************************************************************/ static void AcpiRsDumpDescriptor ( void *Resource, ACPI_RSDUMP_INFO *Table) { UINT8 *Target = NULL; UINT8 *PreviousTarget; const char *Name; UINT8 Count; /* First table entry must contain the table length (# of table entries) */ Count = Table->Offset; while (Count) { PreviousTarget = Target; Target = ACPI_ADD_PTR (UINT8, Resource, Table->Offset); Name = Table->Name; switch (Table->Opcode) { case ACPI_RSD_TITLE: /* * Optional resource title */ if (Table->Name) { AcpiOsPrintf ("%s Resource\n", Name); } break; /* Strings */ case ACPI_RSD_LITERAL: AcpiRsOutString (Name, ACPI_CAST_PTR (char, Table->Pointer)); break; case ACPI_RSD_STRING: AcpiRsOutString (Name, ACPI_CAST_PTR (char, Target)); break; /* Data items, 8/16/32/64 bit */ case ACPI_RSD_UINT8: if (Table->Pointer) { AcpiRsOutString (Name, Table->Pointer [*Target]); } else { AcpiRsOutInteger8 (Name, ACPI_GET8 (Target)); } break; case ACPI_RSD_UINT16: AcpiRsOutInteger16 (Name, ACPI_GET16 (Target)); break; case ACPI_RSD_UINT32: AcpiRsOutInteger32 (Name, ACPI_GET32 (Target)); break; case ACPI_RSD_UINT64: AcpiRsOutInteger64 (Name, ACPI_GET64 (Target)); break; /* Flags: 1-bit and 2-bit flags supported */ case ACPI_RSD_1BITFLAG: AcpiRsOutString (Name, Table->Pointer [*Target & 0x01]); break; case ACPI_RSD_2BITFLAG: AcpiRsOutString (Name, Table->Pointer [*Target & 0x03]); break; case ACPI_RSD_3BITFLAG: AcpiRsOutString (Name, Table->Pointer [*Target & 0x07]); break; case ACPI_RSD_6BITFLAG: AcpiRsOutInteger8 (Name, (ACPI_GET8 (Target) & 0x3F)); break; case ACPI_RSD_SHORTLIST: /* * Short byte list (single line output) for DMA and IRQ resources * Note: The list length is obtained from the previous table entry */ if (PreviousTarget) { AcpiRsOutTitle (Name); AcpiRsDumpShortByteList (*PreviousTarget, Target); } break; case ACPI_RSD_SHORTLISTX: /* * Short byte list (single line output) for GPIO vendor data * Note: The list length is obtained from the previous table entry */ if (PreviousTarget) { AcpiRsOutTitle (Name); AcpiRsDumpShortByteList (*PreviousTarget, *(ACPI_CAST_INDIRECT_PTR (UINT8, Target))); } break; case ACPI_RSD_LONGLIST: /* * Long byte list for Vendor resource data * Note: The list length is obtained from the previous table entry */ if (PreviousTarget) { AcpiRsDumpByteList (ACPI_GET16 (PreviousTarget), Target); } break; case ACPI_RSD_DWORDLIST: /* * Dword list for Extended Interrupt resources * Note: The list length is obtained from the previous table entry */ if (PreviousTarget) { AcpiRsDumpDwordList (*PreviousTarget, ACPI_CAST_PTR (UINT32, Target)); } break; case ACPI_RSD_WORDLIST: /* * Word list for GPIO Pin Table * Note: The list length is obtained from the previous table entry */ if (PreviousTarget) { AcpiRsDumpWordList (*PreviousTarget, *(ACPI_CAST_INDIRECT_PTR (UINT16, Target))); } break; case ACPI_RSD_ADDRESS: /* * Common flags for all Address resources */ AcpiRsDumpAddressCommon (ACPI_CAST_PTR ( ACPI_RESOURCE_DATA, Target)); break; case ACPI_RSD_SOURCE: /* * Optional ResourceSource for Address resources */ AcpiRsDumpResourceSource (ACPI_CAST_PTR ( ACPI_RESOURCE_SOURCE, Target)); break; case ACPI_RSD_LABEL: /* * ResourceLabel */ AcpiRsDumpResourceLabel ("Resource Label", ACPI_CAST_PTR ( ACPI_RESOURCE_LABEL, Target)); break; case ACPI_RSD_SOURCE_LABEL: /* * ResourceSourceLabel */ AcpiRsDumpResourceLabel ("Resource Source Label", ACPI_CAST_PTR ( ACPI_RESOURCE_LABEL, Target)); break; default: AcpiOsPrintf ("**** Invalid table opcode [%X] ****\n", Table->Opcode); return; } Table++; Count--; } } /******************************************************************************* * * FUNCTION: AcpiRsDumpResourceSource * * PARAMETERS: ResourceSource - Pointer to a Resource Source struct * * RETURN: None * * DESCRIPTION: Common routine for dumping the optional ResourceSource and the * corresponding ResourceSourceIndex. * ******************************************************************************/ static void AcpiRsDumpResourceSource ( ACPI_RESOURCE_SOURCE *ResourceSource) { ACPI_FUNCTION_ENTRY (); if (ResourceSource->Index == 0xFF) { return; } AcpiRsOutInteger8 ("Resource Source Index", ResourceSource->Index); AcpiRsOutString ("Resource Source", ResourceSource->StringPtr ? ResourceSource->StringPtr : "[Not Specified]"); } /******************************************************************************* * * FUNCTION: AcpiRsDumpResourceLabel * * PARAMETERS: Title - Title of the dumped resource field * ResourceLabel - Pointer to a Resource Label struct * * RETURN: None * * DESCRIPTION: Common routine for dumping the ResourceLabel * ******************************************************************************/ static void AcpiRsDumpResourceLabel ( char *Title, ACPI_RESOURCE_LABEL *ResourceLabel) { ACPI_FUNCTION_ENTRY (); AcpiRsOutString (Title, ResourceLabel->StringPtr ? ResourceLabel->StringPtr : "[Not Specified]"); } /******************************************************************************* * * FUNCTION: AcpiRsDumpAddressCommon * * PARAMETERS: Resource - Pointer to an internal resource descriptor * * RETURN: None * * DESCRIPTION: Dump the fields that are common to all Address resource * descriptors * ******************************************************************************/ static void AcpiRsDumpAddressCommon ( ACPI_RESOURCE_DATA *Resource) { ACPI_FUNCTION_ENTRY (); /* Decode the type-specific flags */ switch (Resource->Address.ResourceType) { case ACPI_MEMORY_RANGE: AcpiRsDumpDescriptor (Resource, AcpiRsDumpMemoryFlags); break; case ACPI_IO_RANGE: AcpiRsDumpDescriptor (Resource, AcpiRsDumpIoFlags); break; case ACPI_BUS_NUMBER_RANGE: AcpiRsOutString ("Resource Type", "Bus Number Range"); break; default: AcpiRsOutInteger8 ("Resource Type", (UINT8) Resource->Address.ResourceType); break; } /* Decode the general flags */ AcpiRsDumpDescriptor (Resource, AcpiRsDumpGeneralFlags); } /******************************************************************************* * * FUNCTION: AcpiRsOut* * * PARAMETERS: Title - Name of the resource field * Value - Value of the resource field * * RETURN: None * * DESCRIPTION: Miscellaneous helper functions to consistently format the * output of the resource dump routines * ******************************************************************************/ static void AcpiRsOutString ( const char *Title, const char *Value) { AcpiOsPrintf ("%27s : %s", Title, Value); if (!*Value) { AcpiOsPrintf ("[NULL NAMESTRING]"); } AcpiOsPrintf ("\n"); } static void AcpiRsOutInteger8 ( const char *Title, UINT8 Value) { AcpiOsPrintf ("%27s : %2.2X\n", Title, Value); } static void AcpiRsOutInteger16 ( const char *Title, UINT16 Value) { AcpiOsPrintf ("%27s : %4.4X\n", Title, Value); } static void AcpiRsOutInteger32 ( const char *Title, UINT32 Value) { AcpiOsPrintf ("%27s : %8.8X\n", Title, Value); } static void AcpiRsOutInteger64 ( const char *Title, UINT64 Value) { AcpiOsPrintf ("%27s : %8.8X%8.8X\n", Title, ACPI_FORMAT_UINT64 (Value)); } static void AcpiRsOutTitle ( const char *Title) { AcpiOsPrintf ("%27s : ", Title); } /******************************************************************************* * * FUNCTION: AcpiRsDump*List * * PARAMETERS: Length - Number of elements in the list * Data - Start of the list * * RETURN: None * * DESCRIPTION: Miscellaneous functions to dump lists of raw data * ******************************************************************************/ static void AcpiRsDumpByteList ( UINT16 Length, UINT8 *Data) { UINT16 i; for (i = 0; i < Length; i++) { AcpiOsPrintf ("%25s%2.2X : %2.2X\n", "Byte", i, Data[i]); } } static void AcpiRsDumpShortByteList ( UINT8 Length, UINT8 *Data) { UINT8 i; for (i = 0; i < Length; i++) { AcpiOsPrintf ("%X ", Data[i]); } AcpiOsPrintf ("\n"); } static void AcpiRsDumpDwordList ( UINT8 Length, UINT32 *Data) { UINT8 i; for (i = 0; i < Length; i++) { AcpiOsPrintf ("%25s%2.2X : %8.8X\n", "Dword", i, Data[i]); } } static void AcpiRsDumpWordList ( UINT16 Length, UINT16 *Data) { UINT16 i; for (i = 0; i < Length; i++) { AcpiOsPrintf ("%25s%2.2X : %4.4X\n", "Word", i, Data[i]); } } acpica-unix-20250404/source/components/resources/rsmisc.c0000775000175000017500000006211514773714133022712 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsmisc - Miscellaneous resource descriptors * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsmisc") #define INIT_RESOURCE_TYPE(i) i->ResourceOffset #define INIT_RESOURCE_LENGTH(i) i->AmlOffset #define INIT_TABLE_LENGTH(i) i->Value #define COMPARE_OPCODE(i) i->ResourceOffset #define COMPARE_TARGET(i) i->AmlOffset #define COMPARE_VALUE(i) i->Value /******************************************************************************* * * FUNCTION: AcpiRsConvertAmlToResource * * PARAMETERS: Resource - Pointer to the resource descriptor * Aml - Where the AML descriptor is returned * Info - Pointer to appropriate conversion table * * RETURN: Status * * DESCRIPTION: Convert an external AML resource descriptor to the corresponding * internal resource descriptor * ******************************************************************************/ ACPI_STATUS AcpiRsConvertAmlToResource ( ACPI_RESOURCE *Resource, AML_RESOURCE *Aml, ACPI_RSCONVERT_INFO *Info) { ACPI_RS_LENGTH AmlResourceLength; void *Source; void *Destination; char *Target; UINT8 Count; UINT8 FlagsMode = FALSE; UINT16 ItemCount = 0; UINT16 Temp16 = 0; ACPI_FUNCTION_TRACE (RsConvertAmlToResource); if (!Info) { return_ACPI_STATUS (AE_BAD_PARAMETER); } if (((ACPI_SIZE) Resource) & 0x3) { /* Each internal resource struct is expected to be 32-bit aligned */ ACPI_WARNING ((AE_INFO, "Misaligned resource pointer (get): %p Type 0x%2.2X Length %u", Resource, Resource->Type, Resource->Length)); } /* Extract the resource Length field (does not include header length) */ AmlResourceLength = AcpiUtGetResourceLength (Aml); /* * First table entry must be ACPI_RSC_INITxxx and must contain the * table length (# of table entries) */ Count = INIT_TABLE_LENGTH (Info); while (Count) { Target = NULL; /* * Source is the external AML byte stream buffer, * destination is the internal resource descriptor */ Source = ACPI_ADD_PTR (void, Aml, Info->AmlOffset); Destination = ACPI_ADD_PTR (void, Resource, Info->ResourceOffset); switch (Info->Opcode) { case ACPI_RSC_INITGET: /* * Get the resource type and the initial (minimum) length */ memset (Resource, 0, INIT_RESOURCE_LENGTH (Info)); Resource->Type = INIT_RESOURCE_TYPE (Info); Resource->Length = INIT_RESOURCE_LENGTH (Info); break; case ACPI_RSC_INITSET: break; case ACPI_RSC_FLAGINIT: FlagsMode = TRUE; break; case ACPI_RSC_1BITFLAG: /* * Mask and shift the flag bit */ ACPI_SET8 (Destination, ((ACPI_GET8 (Source) >> Info->Value) & 0x01)); break; case ACPI_RSC_2BITFLAG: /* * Mask and shift the flag bits */ ACPI_SET8 (Destination, ((ACPI_GET8 (Source) >> Info->Value) & 0x03)); break; case ACPI_RSC_3BITFLAG: /* * Mask and shift the flag bits */ ACPI_SET8 (Destination, ((ACPI_GET8 (Source) >> Info->Value) & 0x07)); break; case ACPI_RSC_6BITFLAG: /* * Mask and shift the flag bits */ ACPI_SET8 (Destination, ((ACPI_GET8 (Source) >> Info->Value) & 0x3F)); break; case ACPI_RSC_COUNT: ItemCount = ACPI_GET8 (Source); ACPI_SET8 (Destination, ItemCount); Resource->Length = Resource->Length + (Info->Value * (ItemCount - 1)); break; case ACPI_RSC_COUNT16: ItemCount = AmlResourceLength; ACPI_SET16 (Destination, ItemCount); Resource->Length = Resource->Length + (Info->Value * (ItemCount - 1)); break; case ACPI_RSC_COUNT_GPIO_PIN: Target = ACPI_ADD_PTR (void, Aml, Info->Value); ItemCount = ACPI_GET16 (Target) - ACPI_GET16 (Source); Resource->Length = Resource->Length + ItemCount; ItemCount = ItemCount / 2; ACPI_SET16 (Destination, ItemCount); break; case ACPI_RSC_COUNT_GPIO_VEN: ItemCount = ACPI_GET8 (Source); ACPI_SET8 (Destination, ItemCount); Resource->Length = Resource->Length + (Info->Value * ItemCount); break; case ACPI_RSC_COUNT_GPIO_RES: /* * Vendor data is optional (length/offset may both be zero) * Examine vendor data length field first */ Target = ACPI_ADD_PTR (void, Aml, (Info->Value + 2)); if (ACPI_GET16 (Target)) { /* Use vendor offset to get resource source length */ Target = ACPI_ADD_PTR (void, Aml, Info->Value); ItemCount = ACPI_GET16 (Target) - ACPI_GET16 (Source); } else { /* No vendor data to worry about */ ItemCount = Aml->LargeHeader.ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER) - ACPI_GET16 (Source); } Resource->Length = Resource->Length + ItemCount; ACPI_SET16 (Destination, ItemCount); break; case ACPI_RSC_COUNT_SERIAL_VEN: ACPI_MOVE_16_TO_16(&Temp16, Source); ItemCount = Temp16 - Info->Value; Resource->Length = Resource->Length + ItemCount; ACPI_SET16 (Destination, ItemCount); break; case ACPI_RSC_COUNT_SERIAL_RES: ACPI_MOVE_16_TO_16(&Temp16, Source); ItemCount = (AmlResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER)) - Temp16 - Info->Value; Resource->Length = Resource->Length + ItemCount; ACPI_SET16 (Destination, ItemCount); break; case ACPI_RSC_LENGTH: Resource->Length = Resource->Length + Info->Value; break; case ACPI_RSC_MOVE8: case ACPI_RSC_MOVE16: case ACPI_RSC_MOVE32: case ACPI_RSC_MOVE64: /* * Raw data move. Use the Info value field unless ItemCount has * been previously initialized via a COUNT opcode */ if (Info->Value) { ItemCount = Info->Value; } AcpiRsMoveData (Destination, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_MOVE_GPIO_PIN: /* Generate and set the PIN data pointer */ Target = (char *) ACPI_ADD_PTR (void, Resource, (Resource->Length - ItemCount * 2)); *(UINT16 **) Destination = ACPI_CAST_PTR (UINT16, Target); /* Copy the PIN data */ Source = ACPI_ADD_PTR (void, Aml, ACPI_GET16 (Source)); AcpiRsMoveData (Target, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_MOVE_GPIO_RES: /* Generate and set the ResourceSource string pointer */ Target = (char *) ACPI_ADD_PTR (void, Resource, (Resource->Length - ItemCount)); *(UINT8 **) Destination = ACPI_CAST_PTR (UINT8, Target); /* Copy the ResourceSource string */ Source = ACPI_ADD_PTR (void, Aml, ACPI_GET16 (Source)); AcpiRsMoveData (Target, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_MOVE_SERIAL_VEN: /* Generate and set the Vendor Data pointer */ Target = (char *) ACPI_ADD_PTR (void, Resource, (Resource->Length - ItemCount)); *(UINT8 **) Destination = ACPI_CAST_PTR (UINT8, Target); /* Copy the Vendor Data */ Source = ACPI_ADD_PTR (void, Aml, Info->Value); AcpiRsMoveData (Target, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_MOVE_SERIAL_RES: /* Generate and set the ResourceSource string pointer */ Target = (char *) ACPI_ADD_PTR (void, Resource, (Resource->Length - ItemCount)); *(UINT8 **) Destination = ACPI_CAST_PTR (UINT8, Target); /* Copy the ResourceSource string */ ACPI_MOVE_16_TO_16 (&Temp16, Source); Source = ACPI_ADD_PTR ( void, Aml, (Temp16 + Info->Value)); AcpiRsMoveData (Target, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_SET8: memset (Destination, Info->AmlOffset, Info->Value); break; case ACPI_RSC_DATA8: Target = ACPI_ADD_PTR (char, Resource, Info->Value); memcpy (Destination, Source, ACPI_GET16 (Target)); break; case ACPI_RSC_ADDRESS: /* * Common handler for address descriptor flags */ if (!AcpiRsGetAddressCommon (Resource, Aml)) { return_ACPI_STATUS (AE_AML_INVALID_RESOURCE_TYPE); } break; case ACPI_RSC_SOURCE: /* * Optional ResourceSource (Index and String) */ Resource->Length += AcpiRsGetResourceSource (AmlResourceLength, Info->Value, Destination, Aml, NULL); break; case ACPI_RSC_SOURCEX: /* * Optional ResourceSource (Index and String). This is the more * complicated case used by the Interrupt() macro */ Target = ACPI_ADD_PTR (char, Resource, Info->AmlOffset + (ItemCount * 4)); Resource->Length += AcpiRsGetResourceSource (AmlResourceLength, (ACPI_RS_LENGTH) (((ItemCount - 1) * sizeof (UINT32)) + Info->Value), Destination, Aml, Target); break; case ACPI_RSC_BITMASK: /* * 8-bit encoded bitmask (DMA macro) */ ItemCount = AcpiRsDecodeBitmask (ACPI_GET8 (Source), Destination); if (ItemCount) { Resource->Length += (ItemCount - 1); } Target = ACPI_ADD_PTR (char, Resource, Info->Value); ACPI_SET8 (Target, ItemCount); break; case ACPI_RSC_BITMASK16: /* * 16-bit encoded bitmask (IRQ macro) */ ACPI_MOVE_16_TO_16 (&Temp16, Source); ItemCount = AcpiRsDecodeBitmask (Temp16, Destination); if (ItemCount) { Resource->Length += (ItemCount - 1); } Target = ACPI_ADD_PTR (char, Resource, Info->Value); ACPI_SET8 (Target, ItemCount); break; case ACPI_RSC_EXIT_NE: /* * Control - Exit conversion if not equal */ switch (Info->ResourceOffset) { case ACPI_RSC_COMPARE_AML_LENGTH: if (AmlResourceLength != Info->Value) { goto Exit; } break; case ACPI_RSC_COMPARE_VALUE: if (ACPI_GET8 (Source) != Info->Value) { goto Exit; } break; default: ACPI_ERROR ((AE_INFO, "Invalid conversion sub-opcode")); return_ACPI_STATUS (AE_BAD_PARAMETER); } break; default: ACPI_ERROR ((AE_INFO, "Invalid conversion opcode")); return_ACPI_STATUS (AE_BAD_PARAMETER); } Count--; Info++; } Exit: if (!FlagsMode) { /* Round the resource struct length up to the next boundary (32 or 64) */ Resource->Length = (UINT32) ACPI_ROUND_UP_TO_NATIVE_WORD (Resource->Length); } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiRsConvertResourceToAml * * PARAMETERS: Resource - Pointer to the resource descriptor * Aml - Where the AML descriptor is returned * Info - Pointer to appropriate conversion table * * RETURN: Status * * DESCRIPTION: Convert an internal resource descriptor to the corresponding * external AML resource descriptor. * ******************************************************************************/ ACPI_STATUS AcpiRsConvertResourceToAml ( ACPI_RESOURCE *Resource, AML_RESOURCE *Aml, ACPI_RSCONVERT_INFO *Info) { void *Source = NULL; void *Destination; char *Target; ACPI_RSDESC_SIZE AmlLength = 0; UINT8 Count; UINT16 Temp16 = 0; UINT16 ItemCount = 0; ACPI_FUNCTION_TRACE (RsConvertResourceToAml); if (!Info) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * First table entry must be ACPI_RSC_INITxxx and must contain the * table length (# of table entries) */ Count = INIT_TABLE_LENGTH (Info); while (Count) { /* * Source is the internal resource descriptor, * destination is the external AML byte stream buffer */ Source = ACPI_ADD_PTR (void, Resource, Info->ResourceOffset); Destination = ACPI_ADD_PTR (void, Aml, Info->AmlOffset); switch (Info->Opcode) { case ACPI_RSC_INITSET: memset (Aml, 0, INIT_RESOURCE_LENGTH (Info)); AmlLength = INIT_RESOURCE_LENGTH (Info); AcpiRsSetResourceHeader ( INIT_RESOURCE_TYPE (Info), AmlLength, Aml); break; case ACPI_RSC_INITGET: break; case ACPI_RSC_FLAGINIT: /* * Clear the flag byte */ ACPI_SET8 (Destination, 0); break; case ACPI_RSC_1BITFLAG: /* * Mask and shift the flag bit */ ACPI_SET_BIT (*ACPI_CAST8 (Destination), (UINT8) ((ACPI_GET8 (Source) & 0x01) << Info->Value)); break; case ACPI_RSC_2BITFLAG: /* * Mask and shift the flag bits */ ACPI_SET_BIT (*ACPI_CAST8 (Destination), (UINT8) ((ACPI_GET8 (Source) & 0x03) << Info->Value)); break; case ACPI_RSC_3BITFLAG: /* * Mask and shift the flag bits */ ACPI_SET_BIT (*ACPI_CAST8 (Destination), (UINT8) ((ACPI_GET8 (Source) & 0x07) << Info->Value)); break; case ACPI_RSC_6BITFLAG: /* * Mask and shift the flag bits */ ACPI_SET_BIT (*ACPI_CAST8 (Destination), (UINT8) ((ACPI_GET8 (Source) & 0x3F) << Info->Value)); break; case ACPI_RSC_COUNT: ItemCount = ACPI_GET8 (Source); ACPI_SET8 (Destination, ItemCount); AmlLength = (UINT16) (AmlLength + (Info->Value * (ItemCount - 1))); break; case ACPI_RSC_COUNT16: ItemCount = ACPI_GET16 (Source); AmlLength = (UINT16) (AmlLength + ItemCount); AcpiRsSetResourceLength (AmlLength, Aml); break; case ACPI_RSC_COUNT_GPIO_PIN: ItemCount = ACPI_GET16 (Source); ACPI_SET16 (Destination, AmlLength); AmlLength = (UINT16) (AmlLength + ItemCount * 2); Target = ACPI_ADD_PTR (void, Aml, Info->Value); ACPI_SET16 (Target, AmlLength); AcpiRsSetResourceLength (AmlLength, Aml); break; case ACPI_RSC_COUNT_GPIO_VEN: ItemCount = ACPI_GET16 (Source); ACPI_SET16 (Destination, ItemCount); AmlLength = (UINT16) ( AmlLength + (Info->Value * ItemCount)); AcpiRsSetResourceLength (AmlLength, Aml); break; case ACPI_RSC_COUNT_GPIO_RES: /* Set resource source string length */ ItemCount = ACPI_GET16 (Source); ACPI_SET16 (Destination, AmlLength); /* Compute offset for the Vendor Data */ AmlLength = (UINT16) (AmlLength + ItemCount); Target = ACPI_ADD_PTR (void, Aml, Info->Value); /* Set vendor offset only if there is vendor data */ ACPI_SET16 (Target, AmlLength); AcpiRsSetResourceLength (AmlLength, Aml); break; case ACPI_RSC_COUNT_SERIAL_VEN: ItemCount = ACPI_GET16 (Source); ACPI_SET16 (Destination, ItemCount + Info->Value); AmlLength = (UINT16) (AmlLength + ItemCount); AcpiRsSetResourceLength (AmlLength, Aml); break; case ACPI_RSC_COUNT_SERIAL_RES: ItemCount = ACPI_GET16 (Source); AmlLength = (UINT16) (AmlLength + ItemCount); AcpiRsSetResourceLength (AmlLength, Aml); break; case ACPI_RSC_LENGTH: AcpiRsSetResourceLength (Info->Value, Aml); break; case ACPI_RSC_MOVE8: case ACPI_RSC_MOVE16: case ACPI_RSC_MOVE32: case ACPI_RSC_MOVE64: if (Info->Value) { ItemCount = Info->Value; } AcpiRsMoveData (Destination, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_MOVE_GPIO_PIN: Destination = (char *) ACPI_ADD_PTR (void, Aml, ACPI_GET16 (Destination)); Source = * (UINT16 **) Source; AcpiRsMoveData (Destination, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_MOVE_GPIO_RES: /* Used for both ResourceSource string and VendorData */ Destination = (char *) ACPI_ADD_PTR (void, Aml, ACPI_GET16 (Destination)); Source = * (UINT8 **) Source; AcpiRsMoveData (Destination, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_MOVE_SERIAL_VEN: Destination = (char *) ACPI_ADD_PTR (void, Aml, (AmlLength - ItemCount)); Source = * (UINT8 **) Source; AcpiRsMoveData (Destination, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_MOVE_SERIAL_RES: Destination = (char *) ACPI_ADD_PTR (void, Aml, (AmlLength - ItemCount)); Source = * (UINT8 **) Source; AcpiRsMoveData (Destination, Source, ItemCount, Info->Opcode); break; case ACPI_RSC_ADDRESS: /* Set the Resource Type, General Flags, and Type-Specific Flags */ AcpiRsSetAddressCommon (Aml, Resource); break; case ACPI_RSC_SOURCEX: /* * Optional ResourceSource (Index and String) */ AmlLength = AcpiRsSetResourceSource ( Aml, (ACPI_RS_LENGTH) AmlLength, Source); AcpiRsSetResourceLength (AmlLength, Aml); break; case ACPI_RSC_SOURCE: /* * Optional ResourceSource (Index and String). This is the more * complicated case used by the Interrupt() macro */ AmlLength = AcpiRsSetResourceSource (Aml, Info->Value, Source); AcpiRsSetResourceLength (AmlLength, Aml); break; case ACPI_RSC_BITMASK: /* * 8-bit encoded bitmask (DMA macro) */ ACPI_SET8 (Destination, AcpiRsEncodeBitmask (Source, *ACPI_ADD_PTR (UINT8, Resource, Info->Value))); break; case ACPI_RSC_BITMASK16: /* * 16-bit encoded bitmask (IRQ macro) */ Temp16 = AcpiRsEncodeBitmask ( Source, *ACPI_ADD_PTR (UINT8, Resource, Info->Value)); ACPI_MOVE_16_TO_16 (Destination, &Temp16); break; case ACPI_RSC_EXIT_LE: /* * Control - Exit conversion if less than or equal */ if (ItemCount <= Info->Value) { goto Exit; } break; case ACPI_RSC_EXIT_NE: /* * Control - Exit conversion if not equal */ switch (COMPARE_OPCODE (Info)) { case ACPI_RSC_COMPARE_VALUE: if (*ACPI_ADD_PTR (UINT8, Resource, COMPARE_TARGET (Info)) != COMPARE_VALUE (Info)) { goto Exit; } break; default: ACPI_ERROR ((AE_INFO, "Invalid conversion sub-opcode")); return_ACPI_STATUS (AE_BAD_PARAMETER); } break; case ACPI_RSC_EXIT_EQ: /* * Control - Exit conversion if equal */ if (*ACPI_ADD_PTR (UINT8, Resource, COMPARE_TARGET (Info)) == COMPARE_VALUE (Info)) { goto Exit; } break; default: ACPI_ERROR ((AE_INFO, "Invalid conversion opcode")); return_ACPI_STATUS (AE_BAD_PARAMETER); } Count--; Info++; } Exit: return_ACPI_STATUS (AE_OK); } #if 0 /* Previous resource validations */ if (Aml->ExtAddress64.RevisionID != AML_RESOURCE_EXTENDED_ADDRESS_REVISION) { return_ACPI_STATUS (AE_SUPPORT); } if (Resource->Data.StartDpf.PerformanceRobustness >= 3) { return_ACPI_STATUS (AE_AML_BAD_RESOURCE_VALUE); } if (((Aml->Irq.Flags & 0x09) == 0x00) || ((Aml->Irq.Flags & 0x09) == 0x09)) { /* * Only [ActiveHigh, EdgeSensitive] or [ActiveLow, LevelSensitive] * polarity/trigger interrupts are allowed (ACPI spec, section * "IRQ Format"), so 0x00 and 0x09 are illegal. */ ACPI_ERROR ((AE_INFO, "Invalid interrupt polarity/trigger in resource list, 0x%X", Aml->Irq.Flags)); return_ACPI_STATUS (AE_BAD_DATA); } Resource->Data.ExtendedIrq.InterruptCount = Temp8; if (Temp8 < 1) { /* Must have at least one IRQ */ return_ACPI_STATUS (AE_AML_BAD_RESOURCE_LENGTH); } if (Resource->Data.Dma.Transfer == 0x03) { ACPI_ERROR ((AE_INFO, "Invalid DMA.Transfer preference (3)")); return_ACPI_STATUS (AE_BAD_DATA); } #endif acpica-unix-20250404/source/components/resources/rsdumpinfo.c0000775000175000017500000007643614773714133023613 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsdumpinfo - Tables used to display resource descriptors. * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsdumpinfo") #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUGGER) #define ACPI_RSD_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_RESOURCE_DATA,f) #define ACPI_PRT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_PCI_ROUTING_TABLE,f) #define ACPI_RSD_TABLE_SIZE(name) (sizeof(name) / sizeof (ACPI_RSDUMP_INFO)) /******************************************************************************* * * Resource Descriptor info tables * * Note: The first table entry must be a Title or Literal and must contain * the table length (number of table entries) * ******************************************************************************/ ACPI_RSDUMP_INFO AcpiRsDumpIrq[7] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIrq), "IRQ", NULL}, {ACPI_RSD_UINT8 , ACPI_RSD_OFFSET (Irq.DescriptorLength), "Descriptor Length", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Irq.Triggering), "Triggering", AcpiGbl_HeDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Irq.Polarity), "Polarity", AcpiGbl_LlDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Irq.Shareable), "Sharing", AcpiGbl_ShrDecode}, {ACPI_RSD_UINT8 , ACPI_RSD_OFFSET (Irq.InterruptCount), "Interrupt Count", NULL}, {ACPI_RSD_SHORTLIST,ACPI_RSD_OFFSET (Irq.Interrupts[0]), "Interrupt List", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpDma[6] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpDma), "DMA", NULL}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Dma.Type), "Speed", AcpiGbl_TypDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Dma.BusMaster), "Mastering", AcpiGbl_BmDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Dma.Transfer), "Transfer Type", AcpiGbl_SizDecode}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Dma.ChannelCount), "Channel Count", NULL}, {ACPI_RSD_SHORTLIST,ACPI_RSD_OFFSET (Dma.Channels[0]), "Channel List", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpStartDpf[4] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpStartDpf), "Start-Dependent-Functions",NULL}, {ACPI_RSD_UINT8 , ACPI_RSD_OFFSET (StartDpf.DescriptorLength), "Descriptor Length", NULL}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (StartDpf.CompatibilityPriority), "Compatibility Priority", AcpiGbl_ConfigDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (StartDpf.PerformanceRobustness), "Performance/Robustness", AcpiGbl_ConfigDecode} }; ACPI_RSDUMP_INFO AcpiRsDumpEndDpf[1] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpEndDpf), "End-Dependent-Functions", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpIo[6] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIo), "I/O", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Io.IoDecode), "Address Decoding", AcpiGbl_IoDecode}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Io.Minimum), "Address Minimum", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Io.Maximum), "Address Maximum", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Io.Alignment), "Alignment", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Io.AddressLength), "Address Length", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpFixedIo[3] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedIo), "Fixed I/O", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (FixedIo.Address), "Address", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (FixedIo.AddressLength), "Address Length", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpVendor[3] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpVendor), "Vendor Specific", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Vendor.ByteLength), "Length", NULL}, {ACPI_RSD_LONGLIST, ACPI_RSD_OFFSET (Vendor.ByteData[0]), "Vendor Data", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpEndTag[1] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpEndTag), "EndTag", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpMemory24[6] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemory24), "24-Bit Memory Range", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Memory24.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.Minimum), "Address Minimum", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.Maximum), "Address Maximum", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.Alignment), "Alignment", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Memory24.AddressLength), "Address Length", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpMemory32[6] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemory32), "32-Bit Memory Range", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Memory32.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.Minimum), "Address Minimum", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.Maximum), "Address Maximum", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.Alignment), "Alignment", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Memory32.AddressLength), "Address Length", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpFixedMemory32[4] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedMemory32), "32-Bit Fixed Memory Range",NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (FixedMemory32.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (FixedMemory32.Address), "Address", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (FixedMemory32.AddressLength), "Address Length", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpAddress16[8] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress16), "16-Bit WORD Address Space",NULL}, {ACPI_RSD_ADDRESS, 0, NULL, NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.Granularity), "Granularity", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.Minimum), "Address Minimum", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.Maximum), "Address Maximum", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.TranslationOffset), "Translation Offset", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Address16.Address.AddressLength), "Address Length", NULL}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Address16.ResourceSource), NULL, NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpAddress32[8] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress32), "32-Bit DWORD Address Space", NULL}, {ACPI_RSD_ADDRESS, 0, NULL, NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.Granularity), "Granularity", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.Minimum), "Address Minimum", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.Maximum), "Address Maximum", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.TranslationOffset), "Translation Offset", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (Address32.Address.AddressLength), "Address Length", NULL}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Address32.ResourceSource), NULL, NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpAddress64[8] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpAddress64), "64-Bit QWORD Address Space", NULL}, {ACPI_RSD_ADDRESS, 0, NULL, NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.Granularity), "Granularity", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.Minimum), "Address Minimum", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.Maximum), "Address Maximum", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.TranslationOffset), "Translation Offset", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (Address64.Address.AddressLength), "Address Length", NULL}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Address64.ResourceSource), NULL, NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpExtAddress64[8] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpExtAddress64), "64-Bit Extended Address Space", NULL}, {ACPI_RSD_ADDRESS, 0, NULL, NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.Granularity), "Granularity", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.Minimum), "Address Minimum", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.Maximum), "Address Maximum", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.TranslationOffset), "Translation Offset", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.Address.AddressLength), "Address Length", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (ExtAddress64.TypeSpecific), "Type-Specific Attribute", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpExtIrq[8] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpExtIrq), "Extended IRQ", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.ProducerConsumer), "Type", AcpiGbl_ConsumeDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.Triggering), "Triggering", AcpiGbl_HeDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.Polarity), "Polarity", AcpiGbl_LlDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (ExtendedIrq.Shareable), "Sharing", AcpiGbl_ShrDecode}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (ExtendedIrq.ResourceSource), NULL, NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (ExtendedIrq.InterruptCount), "Interrupt Count", NULL}, {ACPI_RSD_DWORDLIST,ACPI_RSD_OFFSET (ExtendedIrq.Interrupts[0]), "Interrupt List", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpGenericReg[6] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGenericReg), "Generic Register", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.SpaceId), "Space ID", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.BitWidth), "Bit Width", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.BitOffset), "Bit Offset", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (GenericReg.AccessSize), "Access Size", NULL}, {ACPI_RSD_UINT64, ACPI_RSD_OFFSET (GenericReg.Address), "Address", NULL} }; ACPI_RSDUMP_INFO AcpiRsDumpGpio[16] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGpio), "GPIO", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Gpio.RevisionId), "RevisionId", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Gpio.ConnectionType), "ConnectionType", AcpiGbl_CtDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Gpio.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Gpio.PinConfig), "PinConfig", AcpiGbl_PpcDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Gpio.Shareable), "Sharing", AcpiGbl_ShrDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Gpio.IoRestriction), "IoRestriction", AcpiGbl_IorDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Gpio.Triggering), "Triggering", AcpiGbl_HeDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Gpio.Polarity), "Polarity", AcpiGbl_LlDecode}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.DriveStrength), "DriveStrength", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.DebounceTimeout), "DebounceTimeout", NULL}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Gpio.ResourceSource), "ResourceSource", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.PinTableLength), "PinTableLength", NULL}, {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET (Gpio.PinTable), "PinTable", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Gpio.VendorLength), "VendorLength", NULL}, {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (Gpio.VendorData), "VendorData", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpPinFunction[10] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinFunction), "PinFunction", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinFunction.RevisionId), "RevisionId", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinFunction.PinConfig), "PinConfig", AcpiGbl_PpcDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinFunction.Shareable), "Sharing", AcpiGbl_ShrDecode}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinFunction.FunctionNumber), "FunctionNumber", NULL}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (PinFunction.ResourceSource), "ResourceSource", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinFunction.PinTableLength), "PinTableLength", NULL}, {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET (PinFunction.PinTable), "PinTable", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinFunction.VendorLength), "VendorLength", NULL}, {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinFunction.VendorData), "VendorData", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpClockInput[7] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpClockInput), "ClockInput", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (ClockInput.RevisionId), "RevisionId", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (ClockInput.FrequencyNumerator), "FrequencyNumerator", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (ClockInput.FrequencyDivisor), "FrequencyDivisor", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ClockInput.Scale), "Scale", AcpiGbl_ClockInputScale}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (ClockInput.Mode), "Mode", AcpiGbl_ClockInputMode}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (ClockInput.ResourceSource), "ResourceSource", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpPinConfig[11] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinConfig), "PinConfig", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinConfig.RevisionId), "RevisionId", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinConfig.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinConfig.Shareable), "Sharing", AcpiGbl_ShrDecode}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinConfig.PinConfigType), "PinConfigType", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (PinConfig.PinConfigValue), "PinConfigValue", NULL}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (PinConfig.ResourceSource), "ResourceSource", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinConfig.PinTableLength), "PinTableLength", NULL}, {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET (PinConfig.PinTable), "PinTable", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinConfig.VendorLength), "VendorLength", NULL}, {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinConfig.VendorData), "VendorData", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpPinGroup[8] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinGroup), "PinGroup", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinGroup.RevisionId), "RevisionId", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroup.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroup.PinTableLength), "PinTableLength", NULL}, {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET (PinGroup.PinTable), "PinTable", NULL}, {ACPI_RSD_LABEL, ACPI_RSD_OFFSET (PinGroup.ResourceLabel), "ResourceLabel", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroup.VendorLength), "VendorLength", NULL}, {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinGroup.VendorData), "VendorData", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpPinGroupFunction[9] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinGroupFunction), "PinGroupFunction", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinGroupFunction.RevisionId), "RevisionId", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroupFunction.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroupFunction.Shareable), "Sharing", AcpiGbl_ShrDecode}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroupFunction.FunctionNumber), "FunctionNumber", NULL}, {ACPI_RSD_SOURCE_LABEL, ACPI_RSD_OFFSET (PinGroupFunction.ResourceSourceLabel), "ResourceSourceLabel", NULL}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (PinGroupFunction.ResourceSource), "ResourceSource", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroupFunction.VendorLength), "VendorLength", NULL}, {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinGroupFunction.VendorData), "VendorData", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpPinGroupConfig[10] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPinGroupConfig), "PinGroupConfig", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinGroupConfig.RevisionId), "RevisionId", NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroupConfig.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (PinGroupConfig.Shareable), "Sharing", AcpiGbl_ShrDecode}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (PinGroupConfig.PinConfigType), "PinConfigType", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (PinGroupConfig.PinConfigValue), "PinConfigValue", NULL}, {ACPI_RSD_SOURCE_LABEL, ACPI_RSD_OFFSET (PinGroupConfig.ResourceSourceLabel), "ResourceSourceLabel", NULL}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (PinGroupConfig.ResourceSource), "ResourceSource", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (PinGroupConfig.VendorLength), "VendorLength", NULL}, {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (PinGroupConfig.VendorData), "VendorData", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpFixedDma[4] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpFixedDma), "FixedDma", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (FixedDma.RequestLines), "RequestLines", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (FixedDma.Channels), "Channels", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (FixedDma.Width), "TransferWidth", AcpiGbl_DtsDecode}, }; #define ACPI_RS_DUMP_COMMON_SERIAL_BUS \ {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.RevisionId), "RevisionId", NULL}, \ {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.Type), "Type", AcpiGbl_SbtDecode}, \ {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, \ {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.SlaveMode), "SlaveMode", AcpiGbl_SmDecode}, \ {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (CommonSerialBus.ConnectionSharing),"ConnectionSharing", AcpiGbl_ShrDecode}, \ {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (CommonSerialBus.TypeRevisionId), "TypeRevisionId", NULL}, \ {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (CommonSerialBus.TypeDataLength), "TypeDataLength", NULL}, \ {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (CommonSerialBus.ResourceSource), "ResourceSource", NULL}, \ {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (CommonSerialBus.VendorLength), "VendorLength", NULL}, \ {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (CommonSerialBus.VendorData), "VendorData", NULL}, ACPI_RSDUMP_INFO AcpiRsDumpCommonSerialBus[11] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpCommonSerialBus), "Common Serial Bus", NULL}, ACPI_RS_DUMP_COMMON_SERIAL_BUS }; ACPI_RSDUMP_INFO AcpiRsDumpCsi2SerialBus[11] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpCsi2SerialBus), "Camera Serial Bus", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Csi2SerialBus.RevisionId), "RevisionId", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Csi2SerialBus.Type), "Type", AcpiGbl_SbtDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Csi2SerialBus.ProducerConsumer), "ProducerConsumer", AcpiGbl_ConsumeDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Csi2SerialBus.SlaveMode), "SlaveMode", AcpiGbl_SmDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Csi2SerialBus.PhyType), "PhyType", AcpiGbl_PhyDecode}, {ACPI_RSD_6BITFLAG, ACPI_RSD_OFFSET (Csi2SerialBus.LocalPortInstance), "LocalPortInstance", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (Csi2SerialBus.TypeRevisionId), "TypeRevisionId", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (Csi2SerialBus.VendorLength), "VendorLength", NULL}, {ACPI_RSD_SHORTLISTX,ACPI_RSD_OFFSET (Csi2SerialBus.VendorData), "VendorData", NULL}, {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET (Csi2SerialBus.ResourceSource), "ResourceSource", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpI2cSerialBus[14] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpI2cSerialBus), "I2C Serial Bus", NULL}, ACPI_RS_DUMP_COMMON_SERIAL_BUS {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (I2cSerialBus.AccessMode), "AccessMode", AcpiGbl_AmDecode}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (I2cSerialBus.ConnectionSpeed), "ConnectionSpeed", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (I2cSerialBus.SlaveAddress), "SlaveAddress", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpSpiSerialBus[18] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpSpiSerialBus), "Spi Serial Bus", NULL}, ACPI_RS_DUMP_COMMON_SERIAL_BUS {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (SpiSerialBus.WireMode), "WireMode", AcpiGbl_WmDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (SpiSerialBus.DevicePolarity), "DevicePolarity", AcpiGbl_DpDecode}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (SpiSerialBus.DataBitLength), "DataBitLength", NULL}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (SpiSerialBus.ClockPhase), "ClockPhase", AcpiGbl_CphDecode}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (SpiSerialBus.ClockPolarity), "ClockPolarity", AcpiGbl_CpoDecode}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (SpiSerialBus.DeviceSelection), "DeviceSelection", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (SpiSerialBus.ConnectionSpeed), "ConnectionSpeed", NULL}, }; ACPI_RSDUMP_INFO AcpiRsDumpUartSerialBus[20] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpUartSerialBus), "Uart Serial Bus", NULL}, ACPI_RS_DUMP_COMMON_SERIAL_BUS {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.FlowControl), "FlowControl", AcpiGbl_FcDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.StopBits), "StopBits", AcpiGbl_SbDecode}, {ACPI_RSD_3BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.DataBits), "DataBits", AcpiGbl_BpbDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (UartSerialBus.Endian), "Endian", AcpiGbl_EdDecode}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (UartSerialBus.Parity), "Parity", AcpiGbl_PtDecode}, {ACPI_RSD_UINT8, ACPI_RSD_OFFSET (UartSerialBus.LinesEnabled), "LinesEnabled", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (UartSerialBus.RxFifoSize), "RxFifoSize", NULL}, {ACPI_RSD_UINT16, ACPI_RSD_OFFSET (UartSerialBus.TxFifoSize), "TxFifoSize", NULL}, {ACPI_RSD_UINT32, ACPI_RSD_OFFSET (UartSerialBus.DefaultBaudRate), "ConnectionSpeed", NULL}, }; /* * Tables used for common address descriptor flag fields */ ACPI_RSDUMP_INFO AcpiRsDumpGeneralFlags[5] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpGeneralFlags), NULL, NULL}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.ProducerConsumer), "Consumer/Producer", AcpiGbl_ConsumeDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Decode), "Address Decode", AcpiGbl_DecDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.MinAddressFixed), "Min Relocatability", AcpiGbl_MinDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.MaxAddressFixed), "Max Relocatability", AcpiGbl_MaxDecode} }; ACPI_RSDUMP_INFO AcpiRsDumpMemoryFlags[5] = { {ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpMemoryFlags), "Resource Type", (void *) "Memory Range"}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.WriteProtect), "Write Protect", AcpiGbl_RwDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.Caching), "Caching", AcpiGbl_MemDecode}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.RangeType), "Range Type", AcpiGbl_MtpDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Mem.Translation), "Translation", AcpiGbl_TtpDecode} }; ACPI_RSDUMP_INFO AcpiRsDumpIoFlags[4] = { {ACPI_RSD_LITERAL, ACPI_RSD_TABLE_SIZE (AcpiRsDumpIoFlags), "Resource Type", (void *) "I/O Range"}, {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.RangeType), "Range Type", AcpiGbl_RngDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.Translation), "Translation", AcpiGbl_TtpDecode}, {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET (Address.Info.Io.TranslationType), "Translation Type", AcpiGbl_TrsDecode} }; /* * Table used to dump _PRT contents */ ACPI_RSDUMP_INFO AcpiRsDumpPrt[5] = { {ACPI_RSD_TITLE, ACPI_RSD_TABLE_SIZE (AcpiRsDumpPrt), NULL, NULL}, {ACPI_RSD_UINT64, ACPI_PRT_OFFSET (Address), "Address", NULL}, {ACPI_RSD_UINT32, ACPI_PRT_OFFSET (Pin), "Pin", NULL}, {ACPI_RSD_STRING, ACPI_PRT_OFFSET (Source[0]), "Source", NULL}, {ACPI_RSD_UINT32, ACPI_PRT_OFFSET (SourceIndex), "Source Index", NULL} }; #endif acpica-unix-20250404/source/components/resources/rsserial.c0000775000175000017500000010536414773714133023242 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsserial - GPIO/SerialBus resource descriptors * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsserial") /******************************************************************************* * * AcpiRsConvertGpio * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertGpio[18] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_GPIO, ACPI_RS_SIZE (ACPI_RESOURCE_GPIO), ACPI_RSC_TABLE_SIZE (AcpiRsConvertGpio)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_GPIO, sizeof (AML_RESOURCE_GPIO), 0}, /* * These fields are contiguous in both the source and destination: * RevisionId * ConnectionType */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Gpio.RevisionId), AML_OFFSET (Gpio.RevisionId), 2}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Gpio.ProducerConsumer), AML_OFFSET (Gpio.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Gpio.Shareable), AML_OFFSET (Gpio.IntFlags), 3}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Gpio.WakeCapable), AML_OFFSET (Gpio.IntFlags), 4}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Gpio.IoRestriction), AML_OFFSET (Gpio.IntFlags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Gpio.Triggering), AML_OFFSET (Gpio.IntFlags), 0}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Gpio.Polarity), AML_OFFSET (Gpio.IntFlags), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Gpio.PinConfig), AML_OFFSET (Gpio.PinConfig), 1}, /* * These fields are contiguous in both the source and destination: * DriveStrength * DebounceTimeout */ {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.Gpio.DriveStrength), AML_OFFSET (Gpio.DriveStrength), 2}, /* Pin Table */ {ACPI_RSC_COUNT_GPIO_PIN, ACPI_RS_OFFSET (Data.Gpio.PinTableLength), AML_OFFSET (Gpio.PinTableOffset), AML_OFFSET (Gpio.ResSourceOffset)}, {ACPI_RSC_MOVE_GPIO_PIN, ACPI_RS_OFFSET (Data.Gpio.PinTable), AML_OFFSET (Gpio.PinTableOffset), 0}, /* Resource Source */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Gpio.ResourceSource.Index), AML_OFFSET (Gpio.ResSourceIndex), 1}, {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.Gpio.ResourceSource.StringLength), AML_OFFSET (Gpio.ResSourceOffset), AML_OFFSET (Gpio.VendorOffset)}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.Gpio.ResourceSource.StringPtr), AML_OFFSET (Gpio.ResSourceOffset), 0}, /* Vendor Data */ {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.Gpio.VendorLength), AML_OFFSET (Gpio.VendorLength), 1}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.Gpio.VendorData), AML_OFFSET (Gpio.VendorOffset), 0}, }; /******************************************************************************* * * AcpiRsConvertClockInput * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertClockInput[8] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_CLOCK_INPUT, ACPI_RS_SIZE (ACPI_RESOURCE_CLOCK_INPUT), ACPI_RSC_TABLE_SIZE (AcpiRsConvertClockInput)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_CLOCK_INPUT, sizeof (AML_RESOURCE_CLOCK_INPUT), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.ClockInput.RevisionId), AML_OFFSET (ClockInput.RevisionId), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.ClockInput.Mode), AML_OFFSET (ClockInput.Flags), 0}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.ClockInput.Scale), AML_OFFSET (ClockInput.Flags), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.ClockInput.FrequencyDivisor), AML_OFFSET (ClockInput.FrequencyDivisor), 2}, {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.ClockInput.FrequencyNumerator), AML_OFFSET (ClockInput.FrequencyNumerator), 4}, /* Resource Source */ {ACPI_RSC_SOURCE, ACPI_RS_OFFSET (Data.ClockInput.ResourceSource), 0, sizeof(AML_RESOURCE_CLOCK_INPUT)}, }; /******************************************************************************* * * AcpiRsConvertPinfunction * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertPinFunction[13] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_FUNCTION, ACPI_RS_SIZE (ACPI_RESOURCE_PIN_FUNCTION), ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinFunction)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_FUNCTION, sizeof (AML_RESOURCE_PIN_FUNCTION), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinFunction.RevisionId), AML_OFFSET (PinFunction.RevisionId), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinFunction.Shareable), AML_OFFSET (PinFunction.Flags), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinFunction.PinConfig), AML_OFFSET (PinFunction.PinConfig), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.PinFunction.FunctionNumber), AML_OFFSET (PinFunction.FunctionNumber), 2}, /* Pin Table */ /* * It is OK to use GPIO operations here because none of them refer GPIO * structures directly but instead use offsets given here. */ {ACPI_RSC_COUNT_GPIO_PIN, ACPI_RS_OFFSET (Data.PinFunction.PinTableLength), AML_OFFSET (PinFunction.PinTableOffset), AML_OFFSET (PinFunction.ResSourceOffset)}, {ACPI_RSC_MOVE_GPIO_PIN, ACPI_RS_OFFSET (Data.PinFunction.PinTable), AML_OFFSET (PinFunction.PinTableOffset), 0}, /* Resource Source */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinFunction.ResourceSource.Index), AML_OFFSET (PinFunction.ResSourceIndex), 1}, {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinFunction.ResourceSource.StringLength), AML_OFFSET (PinFunction.ResSourceOffset), AML_OFFSET (PinFunction.VendorOffset)}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinFunction.ResourceSource.StringPtr), AML_OFFSET (PinFunction.ResSourceOffset), 0}, /* Vendor Data */ {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinFunction.VendorLength), AML_OFFSET (PinFunction.VendorLength), 1}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinFunction.VendorData), AML_OFFSET (PinFunction.VendorOffset), 0}, }; /******************************************************************************* * * AcpiRsConvertCsi2SerialBus * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertCsi2SerialBus[14] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_SERIAL_BUS, ACPI_RS_SIZE (ACPI_RESOURCE_CSI2_SERIALBUS), ACPI_RSC_TABLE_SIZE (AcpiRsConvertCsi2SerialBus)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_SERIAL_BUS, sizeof (AML_RESOURCE_CSI2_SERIALBUS), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.RevisionId), AML_OFFSET (CommonSerialBus.RevisionId), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Csi2SerialBus.Type), AML_OFFSET (Csi2SerialBus.Type), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Csi2SerialBus.ProducerConsumer), AML_OFFSET (Csi2SerialBus.Flags), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Csi2SerialBus.SlaveMode), AML_OFFSET (Csi2SerialBus.Flags), 0}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.Csi2SerialBus.PhyType), AML_OFFSET (Csi2SerialBus.TypeSpecificFlags), 0}, {ACPI_RSC_6BITFLAG, ACPI_RS_OFFSET (Data.Csi2SerialBus.LocalPortInstance), AML_OFFSET (Csi2SerialBus.TypeSpecificFlags), 2}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Csi2SerialBus.TypeRevisionId), AML_OFFSET (Csi2SerialBus.TypeRevisionId), 1}, /* Vendor data */ {ACPI_RSC_COUNT_SERIAL_VEN, ACPI_RS_OFFSET (Data.Csi2SerialBus.VendorLength), AML_OFFSET (Csi2SerialBus.TypeDataLength), AML_RESOURCE_CSI2_MIN_DATA_LEN}, {ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RS_OFFSET (Data.Csi2SerialBus.VendorData), 0, sizeof (AML_RESOURCE_CSI2_SERIALBUS)}, /* Resource Source */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Csi2SerialBus.ResourceSource.Index), AML_OFFSET (Csi2SerialBus.ResSourceIndex), 1}, {ACPI_RSC_COUNT_SERIAL_RES, ACPI_RS_OFFSET (Data.Csi2SerialBus.ResourceSource.StringLength), AML_OFFSET (Csi2SerialBus.TypeDataLength), sizeof (AML_RESOURCE_CSI2_SERIALBUS)}, {ACPI_RSC_MOVE_SERIAL_RES, ACPI_RS_OFFSET (Data.Csi2SerialBus.ResourceSource.StringPtr), AML_OFFSET (Csi2SerialBus.TypeDataLength), sizeof (AML_RESOURCE_CSI2_SERIALBUS)}, }; /******************************************************************************* * * AcpiRsConvertI2cSerialBus * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertI2cSerialBus[17] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_SERIAL_BUS, ACPI_RS_SIZE (ACPI_RESOURCE_I2C_SERIALBUS), ACPI_RSC_TABLE_SIZE (AcpiRsConvertI2cSerialBus)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_SERIAL_BUS, sizeof (AML_RESOURCE_I2C_SERIALBUS), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.RevisionId), AML_OFFSET (CommonSerialBus.RevisionId), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.Type), AML_OFFSET (CommonSerialBus.Type), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.SlaveMode), AML_OFFSET (CommonSerialBus.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ProducerConsumer), AML_OFFSET (CommonSerialBus.Flags), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ConnectionSharing), AML_OFFSET (CommonSerialBus.Flags), 2}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeRevisionId), AML_OFFSET (CommonSerialBus.TypeRevisionId), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeDataLength), AML_OFFSET (CommonSerialBus.TypeDataLength), 1}, /* Vendor data */ {ACPI_RSC_COUNT_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorLength), AML_OFFSET (CommonSerialBus.TypeDataLength), AML_RESOURCE_I2C_MIN_DATA_LEN}, {ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorData), 0, sizeof (AML_RESOURCE_I2C_SERIALBUS)}, /* Resource Source */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.Index), AML_OFFSET (CommonSerialBus.ResSourceIndex), 1}, {ACPI_RSC_COUNT_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringLength), AML_OFFSET (CommonSerialBus.TypeDataLength), sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, {ACPI_RSC_MOVE_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringPtr), AML_OFFSET (CommonSerialBus.TypeDataLength), sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, /* I2C bus type specific */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.I2cSerialBus.AccessMode), AML_OFFSET (I2cSerialBus.TypeSpecificFlags), 0}, {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.I2cSerialBus.ConnectionSpeed), AML_OFFSET (I2cSerialBus.ConnectionSpeed), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.I2cSerialBus.SlaveAddress), AML_OFFSET (I2cSerialBus.SlaveAddress), 1}, }; /******************************************************************************* * * AcpiRsConvertSpiSerialBus * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertSpiSerialBus[21] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_SERIAL_BUS, ACPI_RS_SIZE (ACPI_RESOURCE_SPI_SERIALBUS), ACPI_RSC_TABLE_SIZE (AcpiRsConvertSpiSerialBus)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_SERIAL_BUS, sizeof (AML_RESOURCE_SPI_SERIALBUS), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.RevisionId), AML_OFFSET (CommonSerialBus.RevisionId), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.Type), AML_OFFSET (CommonSerialBus.Type), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.SlaveMode), AML_OFFSET (CommonSerialBus.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ProducerConsumer), AML_OFFSET (CommonSerialBus.Flags), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ConnectionSharing), AML_OFFSET (CommonSerialBus.Flags), 2}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeRevisionId), AML_OFFSET (CommonSerialBus.TypeRevisionId), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeDataLength), AML_OFFSET (CommonSerialBus.TypeDataLength), 1}, /* Vendor data */ {ACPI_RSC_COUNT_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorLength), AML_OFFSET (CommonSerialBus.TypeDataLength), AML_RESOURCE_SPI_MIN_DATA_LEN}, {ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorData), 0, sizeof (AML_RESOURCE_SPI_SERIALBUS)}, /* Resource Source */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.Index), AML_OFFSET (CommonSerialBus.ResSourceIndex), 1}, {ACPI_RSC_COUNT_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringLength), AML_OFFSET (CommonSerialBus.TypeDataLength), sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, {ACPI_RSC_MOVE_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringPtr), AML_OFFSET (CommonSerialBus.TypeDataLength), sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, /* Spi bus type specific */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.SpiSerialBus.WireMode), AML_OFFSET (SpiSerialBus.TypeSpecificFlags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.SpiSerialBus.DevicePolarity), AML_OFFSET (SpiSerialBus.TypeSpecificFlags), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.SpiSerialBus.DataBitLength), AML_OFFSET (SpiSerialBus.DataBitLength), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.SpiSerialBus.ClockPhase), AML_OFFSET (SpiSerialBus.ClockPhase), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.SpiSerialBus.ClockPolarity), AML_OFFSET (SpiSerialBus.ClockPolarity), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.SpiSerialBus.DeviceSelection), AML_OFFSET (SpiSerialBus.DeviceSelection), 1}, {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.SpiSerialBus.ConnectionSpeed), AML_OFFSET (SpiSerialBus.ConnectionSpeed), 1}, }; /******************************************************************************* * * AcpiRsConvertUartSerialBus * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertUartSerialBus[23] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_SERIAL_BUS, ACPI_RS_SIZE (ACPI_RESOURCE_UART_SERIALBUS), ACPI_RSC_TABLE_SIZE (AcpiRsConvertUartSerialBus)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_SERIAL_BUS, sizeof (AML_RESOURCE_UART_SERIALBUS), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.RevisionId), AML_OFFSET (CommonSerialBus.RevisionId), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.Type), AML_OFFSET (CommonSerialBus.Type), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.SlaveMode), AML_OFFSET (CommonSerialBus.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ProducerConsumer), AML_OFFSET (CommonSerialBus.Flags), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.CommonSerialBus.ConnectionSharing), AML_OFFSET (CommonSerialBus.Flags), 2}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeRevisionId), AML_OFFSET (CommonSerialBus.TypeRevisionId), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.CommonSerialBus.TypeDataLength), AML_OFFSET (CommonSerialBus.TypeDataLength), 1}, /* Vendor data */ {ACPI_RSC_COUNT_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorLength), AML_OFFSET (CommonSerialBus.TypeDataLength), AML_RESOURCE_UART_MIN_DATA_LEN}, {ACPI_RSC_MOVE_SERIAL_VEN, ACPI_RS_OFFSET (Data.CommonSerialBus.VendorData), 0, sizeof (AML_RESOURCE_UART_SERIALBUS)}, /* Resource Source */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.Index), AML_OFFSET (CommonSerialBus.ResSourceIndex), 1}, {ACPI_RSC_COUNT_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringLength), AML_OFFSET (CommonSerialBus.TypeDataLength), sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, {ACPI_RSC_MOVE_SERIAL_RES, ACPI_RS_OFFSET (Data.CommonSerialBus.ResourceSource.StringPtr), AML_OFFSET (CommonSerialBus.TypeDataLength), sizeof (AML_RESOURCE_COMMON_SERIALBUS)}, /* Uart bus type specific */ {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.UartSerialBus.FlowControl), AML_OFFSET (UartSerialBus.TypeSpecificFlags), 0}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.UartSerialBus.StopBits), AML_OFFSET (UartSerialBus.TypeSpecificFlags), 2}, {ACPI_RSC_3BITFLAG, ACPI_RS_OFFSET (Data.UartSerialBus.DataBits), AML_OFFSET (UartSerialBus.TypeSpecificFlags), 4}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.UartSerialBus.Endian), AML_OFFSET (UartSerialBus.TypeSpecificFlags), 7}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.UartSerialBus.Parity), AML_OFFSET (UartSerialBus.Parity), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.UartSerialBus.LinesEnabled), AML_OFFSET (UartSerialBus.LinesEnabled), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.UartSerialBus.RxFifoSize), AML_OFFSET (UartSerialBus.RxFifoSize), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.UartSerialBus.TxFifoSize), AML_OFFSET (UartSerialBus.TxFifoSize), 1}, {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.UartSerialBus.DefaultBaudRate), AML_OFFSET (UartSerialBus.DefaultBaudRate), 1}, }; /******************************************************************************* * * AcpiRsConvertPinConfig * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertPinConfig[14] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_CONFIG, ACPI_RS_SIZE (ACPI_RESOURCE_PIN_CONFIG), ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinConfig)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_CONFIG, sizeof (AML_RESOURCE_PIN_CONFIG), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinConfig.RevisionId), AML_OFFSET (PinConfig.RevisionId), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinConfig.Shareable), AML_OFFSET (PinConfig.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinConfig.ProducerConsumer), AML_OFFSET (PinConfig.Flags), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinConfig.PinConfigType), AML_OFFSET (PinConfig.PinConfigType), 1}, {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.PinConfig.PinConfigValue), AML_OFFSET (PinConfig.PinConfigValue), 1}, /* Pin Table */ /* * It is OK to use GPIO operations here because none of them refer GPIO * structures directly but instead use offsets given here. */ {ACPI_RSC_COUNT_GPIO_PIN, ACPI_RS_OFFSET (Data.PinConfig.PinTableLength), AML_OFFSET (PinConfig.PinTableOffset), AML_OFFSET (PinConfig.ResSourceOffset)}, {ACPI_RSC_MOVE_GPIO_PIN, ACPI_RS_OFFSET (Data.PinConfig.PinTable), AML_OFFSET (PinConfig.PinTableOffset), 0}, /* Resource Source */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinConfig.ResourceSource.Index), AML_OFFSET (PinConfig.ResSourceIndex), 1}, {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinConfig.ResourceSource.StringLength), AML_OFFSET (PinConfig.ResSourceOffset), AML_OFFSET (PinConfig.VendorOffset)}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinConfig.ResourceSource.StringPtr), AML_OFFSET (PinConfig.ResSourceOffset), 0}, /* Vendor Data */ {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinConfig.VendorLength), AML_OFFSET (PinConfig.VendorLength), 1}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinConfig.VendorData), AML_OFFSET (PinConfig.VendorOffset), 0}, }; /******************************************************************************* * * AcpiRsConvertPinGroup * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertPinGroup[10] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_GROUP, ACPI_RS_SIZE (ACPI_RESOURCE_PIN_GROUP), ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinGroup)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_GROUP, sizeof (AML_RESOURCE_PIN_GROUP), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroup.RevisionId), AML_OFFSET (PinGroup.RevisionId), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroup.ProducerConsumer), AML_OFFSET (PinGroup.Flags), 0}, /* Pin Table */ /* * It is OK to use GPIO operations here because none of them refer GPIO * structures directly but instead use offsets given here. */ {ACPI_RSC_COUNT_GPIO_PIN, ACPI_RS_OFFSET (Data.PinGroup.PinTableLength), AML_OFFSET (PinGroup.PinTableOffset), AML_OFFSET (PinGroup.LabelOffset)}, {ACPI_RSC_MOVE_GPIO_PIN, ACPI_RS_OFFSET (Data.PinGroup.PinTable), AML_OFFSET (PinGroup.PinTableOffset), 0}, /* Resource Label */ {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroup.ResourceLabel.StringLength), AML_OFFSET (PinGroup.LabelOffset), AML_OFFSET (PinGroup.VendorOffset)}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroup.ResourceLabel.StringPtr), AML_OFFSET (PinGroup.LabelOffset), 0}, /* Vendor Data */ {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinGroup.VendorLength), AML_OFFSET (PinGroup.VendorLength), 1}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroup.VendorData), AML_OFFSET (PinGroup.VendorOffset), 0}, }; /******************************************************************************* * * AcpiRsConvertPinGroupFunction * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertPinGroupFunction[13] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION, ACPI_RS_SIZE (ACPI_RESOURCE_PIN_GROUP_FUNCTION), ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinGroupFunction)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION, sizeof (AML_RESOURCE_PIN_GROUP_FUNCTION), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupFunction.RevisionId), AML_OFFSET (PinGroupFunction.RevisionId), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroupFunction.Shareable), AML_OFFSET (PinGroupFunction.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroupFunction.ProducerConsumer), AML_OFFSET (PinGroupFunction.Flags), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.PinGroupFunction.FunctionNumber), AML_OFFSET (PinGroupFunction.FunctionNumber), 1}, /* Resource Source */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSource.Index), AML_OFFSET (PinGroupFunction.ResSourceIndex), 1}, {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSource.StringLength), AML_OFFSET (PinGroupFunction.ResSourceOffset), AML_OFFSET (PinGroupFunction.ResSourceLabelOffset)}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSource.StringPtr), AML_OFFSET (PinGroupFunction.ResSourceOffset), 0}, /* Resource Source Label */ {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSourceLabel.StringLength), AML_OFFSET (PinGroupFunction.ResSourceLabelOffset), AML_OFFSET (PinGroupFunction.VendorOffset)}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.ResourceSourceLabel.StringPtr), AML_OFFSET (PinGroupFunction.ResSourceLabelOffset), 0}, /* Vendor Data */ {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinGroupFunction.VendorLength), AML_OFFSET (PinGroupFunction.VendorLength), 1}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupFunction.VendorData), AML_OFFSET (PinGroupFunction.VendorOffset), 0}, }; /******************************************************************************* * * AcpiRsConvertPinGroupConfig * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertPinGroupConfig[14] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG, ACPI_RS_SIZE (ACPI_RESOURCE_PIN_GROUP_CONFIG), ACPI_RSC_TABLE_SIZE (AcpiRsConvertPinGroupConfig)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG, sizeof (AML_RESOURCE_PIN_GROUP_CONFIG), 0}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupConfig.RevisionId), AML_OFFSET (PinGroupConfig.RevisionId), 1}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroupConfig.Shareable), AML_OFFSET (PinGroupConfig.Flags), 0}, {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.PinGroupConfig.ProducerConsumer), AML_OFFSET (PinGroupConfig.Flags), 1}, {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupConfig.PinConfigType), AML_OFFSET (PinGroupConfig.PinConfigType), 1}, {ACPI_RSC_MOVE32, ACPI_RS_OFFSET (Data.PinGroupConfig.PinConfigValue), AML_OFFSET (PinGroupConfig.PinConfigValue), 1}, /* Resource Source */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSource.Index), AML_OFFSET (PinGroupConfig.ResSourceIndex), 1}, {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSource.StringLength), AML_OFFSET (PinGroupConfig.ResSourceOffset), AML_OFFSET (PinGroupConfig.ResSourceLabelOffset)}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSource.StringPtr), AML_OFFSET (PinGroupConfig.ResSourceOffset), 0}, /* Resource Source Label */ {ACPI_RSC_COUNT_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSourceLabel.StringLength), AML_OFFSET (PinGroupConfig.ResSourceLabelOffset), AML_OFFSET (PinGroupConfig.VendorOffset)}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.ResourceSourceLabel.StringPtr), AML_OFFSET (PinGroupConfig.ResSourceLabelOffset), 0}, /* Vendor Data */ {ACPI_RSC_COUNT_GPIO_VEN, ACPI_RS_OFFSET (Data.PinGroupConfig.VendorLength), AML_OFFSET (PinGroupConfig.VendorLength), 1}, {ACPI_RSC_MOVE_GPIO_RES, ACPI_RS_OFFSET (Data.PinGroupConfig.VendorData), AML_OFFSET (PinGroupConfig.VendorOffset), 0}, }; acpica-unix-20250404/source/components/resources/rscreate.c0000775000175000017500000004100414773714133023214 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rscreate - Create resource lists/tables * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #include "acnamesp.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rscreate") /******************************************************************************* * * FUNCTION: AcpiBufferToResource * * PARAMETERS: AmlBuffer - Pointer to the resource byte stream * AmlBufferLength - Length of the AmlBuffer * ResourcePtr - Where the converted resource is returned * * RETURN: Status * * DESCRIPTION: Convert a raw AML buffer to a resource list * ******************************************************************************/ ACPI_STATUS AcpiBufferToResource ( UINT8 *AmlBuffer, UINT16 AmlBufferLength, ACPI_RESOURCE **ResourcePtr) { ACPI_STATUS Status; ACPI_SIZE ListSizeNeeded; void *Resource; void *CurrentResourcePtr; ACPI_FUNCTION_TRACE (AcpiBufferToResource); /* * Note: we allow AE_AML_NO_RESOURCE_END_TAG, since an end tag * is not required here. */ /* Get the required length for the converted resource */ Status = AcpiRsGetListLength ( AmlBuffer, AmlBufferLength, &ListSizeNeeded); if (Status == AE_AML_NO_RESOURCE_END_TAG) { Status = AE_OK; } if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Allocate a buffer for the converted resource */ Resource = ACPI_ALLOCATE_ZEROED (ListSizeNeeded); CurrentResourcePtr = Resource; if (!Resource) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Perform the AML-to-Resource conversion */ Status = AcpiUtWalkAmlResources (NULL, AmlBuffer, AmlBufferLength, AcpiRsConvertAmlToResources, &CurrentResourcePtr); if (Status == AE_AML_NO_RESOURCE_END_TAG) { Status = AE_OK; } if (ACPI_FAILURE (Status)) { ACPI_FREE (Resource); } else { *ResourcePtr = Resource; } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiBufferToResource) /******************************************************************************* * * FUNCTION: AcpiRsCreateResourceList * * PARAMETERS: AmlBuffer - Pointer to the resource byte stream * OutputBuffer - Pointer to the user's buffer * * RETURN: Status: AE_OK if okay, else a valid ACPI_STATUS code * If OutputBuffer is not large enough, OutputBufferLength * indicates how large OutputBuffer should be, else it * indicates how may UINT8 elements of OutputBuffer are valid. * * DESCRIPTION: Takes the byte stream returned from a _CRS, _PRS control method * execution and parses the stream to create a linked list * of device resources. * ******************************************************************************/ ACPI_STATUS AcpiRsCreateResourceList ( ACPI_OPERAND_OBJECT *AmlBuffer, ACPI_BUFFER *OutputBuffer) { ACPI_STATUS Status; UINT8 *AmlStart; ACPI_SIZE ListSizeNeeded = 0; UINT32 AmlBufferLength; void *Resource; ACPI_FUNCTION_TRACE (RsCreateResourceList); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "AmlBuffer = %p\n", AmlBuffer)); /* Params already validated, so we don't re-validate here */ AmlBufferLength = AmlBuffer->Buffer.Length; AmlStart = AmlBuffer->Buffer.Pointer; /* * Pass the AmlBuffer into a module that can calculate * the buffer size needed for the linked list */ Status = AcpiRsGetListLength (AmlStart, AmlBufferLength, &ListSizeNeeded); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Status=%X ListSizeNeeded=%X\n", Status, (UINT32) ListSizeNeeded)); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Validate/Allocate/Clear caller buffer */ Status = AcpiUtInitializeBuffer (OutputBuffer, ListSizeNeeded); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Do the conversion */ Resource = OutputBuffer->Pointer; Status = AcpiUtWalkAmlResources (NULL, AmlStart, AmlBufferLength, AcpiRsConvertAmlToResources, &Resource); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "OutputBuffer %p Length %X\n", OutputBuffer->Pointer, (UINT32) OutputBuffer->Length)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiRsCreatePciRoutingTable * * PARAMETERS: PackageObject - Pointer to a package containing one * of more ACPI_OPERAND_OBJECTs * OutputBuffer - Pointer to the user's buffer * * RETURN: Status AE_OK if okay, else a valid ACPI_STATUS code. * If the OutputBuffer is too small, the error will be * AE_BUFFER_OVERFLOW and OutputBuffer->Length will point * to the size buffer needed. * * DESCRIPTION: Takes the ACPI_OPERAND_OBJECT package and creates a * linked list of PCI interrupt descriptions * * NOTE: It is the caller's responsibility to ensure that the start of the * output buffer is aligned properly (if necessary). * ******************************************************************************/ ACPI_STATUS AcpiRsCreatePciRoutingTable ( ACPI_OPERAND_OBJECT *PackageObject, ACPI_BUFFER *OutputBuffer) { UINT8 *Buffer; ACPI_OPERAND_OBJECT **TopObjectList; ACPI_OPERAND_OBJECT **SubObjectList; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_SIZE BufferSizeNeeded = 0; UINT32 NumberOfElements; UINT32 Index; ACPI_PCI_ROUTING_TABLE *UserPrt; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_BUFFER PathBuffer; ACPI_FUNCTION_TRACE (RsCreatePciRoutingTable); /* Params already validated, so we don't re-validate here */ /* Get the required buffer length */ Status = AcpiRsGetPciRoutingTableLength ( PackageObject,&BufferSizeNeeded); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "BufferSizeNeeded = %X\n", (UINT32) BufferSizeNeeded)); /* Validate/Allocate/Clear caller buffer */ Status = AcpiUtInitializeBuffer (OutputBuffer, BufferSizeNeeded); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Loop through the ACPI_INTERNAL_OBJECTS - Each object should be a * package that in turn contains an UINT64 Address, a UINT8 Pin, * a Name, and a UINT8 SourceIndex. */ TopObjectList = PackageObject->Package.Elements; NumberOfElements = PackageObject->Package.Count; Buffer = OutputBuffer->Pointer; UserPrt = ACPI_CAST_PTR (ACPI_PCI_ROUTING_TABLE, Buffer); for (Index = 0; Index < NumberOfElements; Index++) { /* * Point UserPrt past this current structure * * NOTE: On the first iteration, UserPrt->Length will * be zero because we cleared the return buffer earlier */ Buffer += UserPrt->Length; UserPrt = ACPI_CAST_PTR (ACPI_PCI_ROUTING_TABLE, Buffer); /* * Fill in the Length field with the information we have at this * point. The minus four is to subtract the size of the UINT8 * Source[4] member because it is added below. */ UserPrt->Length = (sizeof (ACPI_PCI_ROUTING_TABLE) - 4); /* Each subpackage must be of length 4 */ if ((*TopObjectList)->Package.Count != 4) { ACPI_ERROR ((AE_INFO, "(PRT[%u]) Need package of length 4, found length %u", Index, (*TopObjectList)->Package.Count)); return_ACPI_STATUS (AE_AML_PACKAGE_LIMIT); } /* * Dereference the subpackage. * The SubObjectList will now point to an array of the four IRQ * elements: [Address, Pin, Source, SourceIndex] */ SubObjectList = (*TopObjectList)->Package.Elements; /* 1) First subobject: Dereference the PRT.Address */ ObjDesc = SubObjectList[0]; if (!ObjDesc || ObjDesc->Common.Type != ACPI_TYPE_INTEGER) { ACPI_ERROR ((AE_INFO, "(PRT[%u].Address) Need Integer, found %s", Index, AcpiUtGetObjectTypeName (ObjDesc))); return_ACPI_STATUS (AE_BAD_DATA); } UserPrt->Address = ObjDesc->Integer.Value; /* 2) Second subobject: Dereference the PRT.Pin */ ObjDesc = SubObjectList[1]; if (!ObjDesc || ObjDesc->Common.Type != ACPI_TYPE_INTEGER) { ACPI_ERROR ((AE_INFO, "(PRT[%u].Pin) Need Integer, found %s", Index, AcpiUtGetObjectTypeName (ObjDesc))); return_ACPI_STATUS (AE_BAD_DATA); } UserPrt->Pin = (UINT32) ObjDesc->Integer.Value; /* * 3) Third subobject: Dereference the PRT.SourceName * The name may be unresolved (slack mode), so allow a null object */ ObjDesc = SubObjectList[2]; if (ObjDesc) { switch (ObjDesc->Common.Type) { case ACPI_TYPE_LOCAL_REFERENCE: if (ObjDesc->Reference.Class != ACPI_REFCLASS_NAME) { ACPI_ERROR ((AE_INFO, "(PRT[%u].Source) Need name, found Reference Class 0x%X", Index, ObjDesc->Reference.Class)); return_ACPI_STATUS (AE_BAD_DATA); } Node = ObjDesc->Reference.Node; /* Use *remaining* length of the buffer as max for pathname */ PathBuffer.Length = OutputBuffer->Length - (UINT32) ((UINT8 *) UserPrt->Source - (UINT8 *) OutputBuffer->Pointer); PathBuffer.Pointer = UserPrt->Source; Status = AcpiNsHandleToPathname ( (ACPI_HANDLE) Node, &PathBuffer, FALSE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* +1 to include null terminator */ UserPrt->Length += (UINT32) strlen (UserPrt->Source) + 1; break; case ACPI_TYPE_STRING: strcpy (UserPrt->Source, ObjDesc->String.Pointer); /* * Add to the Length field the length of the string * (add 1 for terminator) */ UserPrt->Length += ObjDesc->String.Length + 1; break; case ACPI_TYPE_INTEGER: /* * If this is a number, then the Source Name is NULL, since * the entire buffer was zeroed out, we can leave this alone. * * Add to the Length field the length of the UINT32 NULL */ UserPrt->Length += sizeof (UINT32); break; default: ACPI_ERROR ((AE_INFO, "(PRT[%u].Source) Need Ref/String/Integer, found %s", Index, AcpiUtGetObjectTypeName (ObjDesc))); return_ACPI_STATUS (AE_BAD_DATA); } } /* Now align the current length */ UserPrt->Length = (UINT32) ACPI_ROUND_UP_TO_64BIT (UserPrt->Length); /* 4) Fourth subobject: Dereference the PRT.SourceIndex */ ObjDesc = SubObjectList[3]; if (!ObjDesc || ObjDesc->Common.Type != ACPI_TYPE_INTEGER) { ACPI_ERROR ((AE_INFO, "(PRT[%u].SourceIndex) Need Integer, found %s", Index, AcpiUtGetObjectTypeName (ObjDesc))); return_ACPI_STATUS (AE_BAD_DATA); } UserPrt->SourceIndex = (UINT32) ObjDesc->Integer.Value; /* Point to the next ACPI_OPERAND_OBJECT in the top level package */ TopObjectList++; } ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "OutputBuffer %p Length %X\n", OutputBuffer->Pointer, (UINT32) OutputBuffer->Length)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiRsCreateAmlResources * * PARAMETERS: ResourceList - Pointer to the resource list buffer * OutputBuffer - Where the AML buffer is returned * * RETURN: Status AE_OK if okay, else a valid ACPI_STATUS code. * If the OutputBuffer is too small, the error will be * AE_BUFFER_OVERFLOW and OutputBuffer->Length will point * to the size buffer needed. * * DESCRIPTION: Converts a list of device resources to an AML bytestream * to be used as input for the _SRS control method. * ******************************************************************************/ ACPI_STATUS AcpiRsCreateAmlResources ( ACPI_BUFFER *ResourceList, ACPI_BUFFER *OutputBuffer) { ACPI_STATUS Status; ACPI_SIZE AmlSizeNeeded = 0; ACPI_FUNCTION_TRACE (RsCreateAmlResources); /* Params already validated, no need to re-validate here */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "ResourceList Buffer = %p\n", ResourceList->Pointer)); /* Get the buffer size needed for the AML byte stream */ Status = AcpiRsGetAmlLength ( ResourceList->Pointer, ResourceList->Length, &AmlSizeNeeded); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "AmlSizeNeeded=%X, %s\n", (UINT32) AmlSizeNeeded, AcpiFormatException (Status))); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Validate/Allocate/Clear caller buffer */ Status = AcpiUtInitializeBuffer (OutputBuffer, AmlSizeNeeded); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Do the conversion */ Status = AcpiRsConvertResourcesToAml (ResourceList->Pointer, AmlSizeNeeded, OutputBuffer->Pointer); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "OutputBuffer %p Length %X\n", OutputBuffer->Pointer, (UINT32) OutputBuffer->Length)); return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/resources/rslist.c0000775000175000017500000002276114773714133022735 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rslist - Linked list utilities * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rslist") /******************************************************************************* * * FUNCTION: AcpiRsConvertAmlToResources * * PARAMETERS: ACPI_WALK_AML_CALLBACK * ResourcePtr - Pointer to the buffer that will * contain the output structures * * RETURN: Status * * DESCRIPTION: Convert an AML resource to an internal representation of the * resource that is aligned and easier to access. * ******************************************************************************/ ACPI_STATUS AcpiRsConvertAmlToResources ( UINT8 *Aml, UINT32 Length, UINT32 Offset, UINT8 ResourceIndex, void **Context) { ACPI_RESOURCE **ResourcePtr = ACPI_CAST_INDIRECT_PTR ( ACPI_RESOURCE, Context); ACPI_RESOURCE *Resource; AML_RESOURCE *AmlResource; ACPI_RSCONVERT_INFO *ConversionTable; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (RsConvertAmlToResources); /* * Check that the input buffer and all subsequent pointers into it * are aligned on a native word boundary. Most important on IA64 */ Resource = *ResourcePtr; if (ACPI_IS_MISALIGNED (Resource)) { ACPI_WARNING ((AE_INFO, "Misaligned resource pointer %p", Resource)); } /* Get the appropriate conversion info table */ AmlResource = ACPI_CAST_PTR (AML_RESOURCE, Aml); if (AcpiUtGetResourceType (Aml) == ACPI_RESOURCE_NAME_SERIAL_BUS) { if (AmlResource->CommonSerialBus.Type > AML_RESOURCE_MAX_SERIALBUSTYPE) { ConversionTable = NULL; } else { /* This is an I2C, SPI, UART, or CSI2 SerialBus descriptor */ ConversionTable = AcpiGbl_ConvertResourceSerialBusDispatch [ AmlResource->CommonSerialBus.Type]; } } else { ConversionTable = AcpiGbl_GetResourceDispatch[ResourceIndex]; } if (!ConversionTable) { ACPI_ERROR ((AE_INFO, "Invalid/unsupported resource descriptor: Type 0x%2.2X", ResourceIndex)); return_ACPI_STATUS (AE_AML_INVALID_RESOURCE_TYPE); } /* Convert the AML byte stream resource to a local resource struct */ Status = AcpiRsConvertAmlToResource ( Resource, AmlResource, ConversionTable); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not convert AML resource (Type 0x%X)", *Aml)); return_ACPI_STATUS (Status); } if (!Resource->Length) { ACPI_EXCEPTION ((AE_INFO, Status, "Zero-length resource returned from RsConvertAmlToResource")); } ACPI_DEBUG_PRINT ((ACPI_DB_RESOURCES, "Type %.2X, AmlLength %.2X InternalLength %.2X\n", AcpiUtGetResourceType (Aml), Length, Resource->Length)); /* Point to the next structure in the output buffer */ *ResourcePtr = ACPI_NEXT_RESOURCE (Resource); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiRsConvertResourcesToAml * * PARAMETERS: Resource - Pointer to the resource linked list * AmlSizeNeeded - Calculated size of the byte stream * needed from calling AcpiRsGetAmlLength() * The size of the OutputBuffer is * guaranteed to be >= AmlSizeNeeded * OutputBuffer - Pointer to the buffer that will * contain the byte stream * * RETURN: Status * * DESCRIPTION: Takes the resource linked list and parses it, creating a * byte stream of resources in the caller's output buffer * ******************************************************************************/ ACPI_STATUS AcpiRsConvertResourcesToAml ( ACPI_RESOURCE *Resource, ACPI_SIZE AmlSizeNeeded, UINT8 *OutputBuffer) { UINT8 *Aml = OutputBuffer; UINT8 *EndAml = OutputBuffer + AmlSizeNeeded; ACPI_RSCONVERT_INFO *ConversionTable; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (RsConvertResourcesToAml); /* Walk the resource descriptor list, convert each descriptor */ while (Aml < EndAml) { /* Validate the (internal) Resource Type */ if (Resource->Type > ACPI_RESOURCE_TYPE_MAX) { ACPI_ERROR ((AE_INFO, "Invalid descriptor type (0x%X) in resource list", Resource->Type)); return_ACPI_STATUS (AE_BAD_DATA); } /* Sanity check the length. It must not be zero, or we loop forever */ if (!Resource->Length) { ACPI_ERROR ((AE_INFO, "Invalid zero length descriptor in resource list\n")); return_ACPI_STATUS (AE_AML_BAD_RESOURCE_LENGTH); } /* Perform the conversion */ if (Resource->Type == ACPI_RESOURCE_TYPE_SERIAL_BUS) { if (Resource->Data.CommonSerialBus.Type > AML_RESOURCE_MAX_SERIALBUSTYPE) { ConversionTable = NULL; } else { /* This is an I2C, SPI, UART or CSI2 SerialBus descriptor */ ConversionTable = AcpiGbl_ConvertResourceSerialBusDispatch[ Resource->Data.CommonSerialBus.Type]; } } else { ConversionTable = AcpiGbl_SetResourceDispatch[Resource->Type]; } if (!ConversionTable) { ACPI_ERROR ((AE_INFO, "Invalid/unsupported resource descriptor: Type 0x%2.2X", Resource->Type)); return_ACPI_STATUS (AE_AML_INVALID_RESOURCE_TYPE); } Status = AcpiRsConvertResourceToAml (Resource, ACPI_CAST_PTR (AML_RESOURCE, Aml), ConversionTable); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not convert resource (type 0x%X) to AML", Resource->Type)); return_ACPI_STATUS (Status); } /* Perform final sanity check on the new AML resource descriptor */ Status = AcpiUtValidateResource ( NULL, ACPI_CAST_PTR (AML_RESOURCE, Aml), NULL); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Check for end-of-list, normal exit */ if (Resource->Type == ACPI_RESOURCE_TYPE_END_TAG) { /* An End Tag indicates the end of the input Resource Template */ return_ACPI_STATUS (AE_OK); } /* * Extract the total length of the new descriptor and set the * Aml to point to the next (output) resource descriptor */ Aml += AcpiUtGetDescriptorLength (Aml); /* Point to the next input resource descriptor */ Resource = ACPI_NEXT_RESOURCE (Resource); } /* Completed buffer, but did not find an EndTag resource descriptor */ return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG); } acpica-unix-20250404/source/components/resources/rsutils.c0000775000175000017500000006205014773714133023115 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsutils - Utilities for the resource manager * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsutils") /******************************************************************************* * * FUNCTION: AcpiRsDecodeBitmask * * PARAMETERS: Mask - Bitmask to decode * List - Where the converted list is returned * * RETURN: Count of bits set (length of list) * * DESCRIPTION: Convert a bit mask into a list of values * ******************************************************************************/ UINT8 AcpiRsDecodeBitmask ( UINT16 Mask, UINT8 *List) { UINT8 i; UINT8 BitCount; ACPI_FUNCTION_ENTRY (); /* Decode the mask bits */ for (i = 0, BitCount = 0; Mask; i++) { if (Mask & 0x0001) { List[BitCount] = i; BitCount++; } Mask >>= 1; } return (BitCount); } /******************************************************************************* * * FUNCTION: AcpiRsEncodeBitmask * * PARAMETERS: List - List of values to encode * Count - Length of list * * RETURN: Encoded bitmask * * DESCRIPTION: Convert a list of values to an encoded bitmask * ******************************************************************************/ UINT16 AcpiRsEncodeBitmask ( UINT8 *List, UINT8 Count) { UINT32 i; UINT16 Mask; ACPI_FUNCTION_ENTRY (); /* Encode the list into a single bitmask */ for (i = 0, Mask = 0; i < Count; i++) { Mask |= (0x1 << List[i]); } return (Mask); } /******************************************************************************* * * FUNCTION: AcpiRsMoveData * * PARAMETERS: Destination - Pointer to the destination descriptor * Source - Pointer to the source descriptor * ItemCount - How many items to move * MoveType - Byte width * * RETURN: None * * DESCRIPTION: Move multiple data items from one descriptor to another. Handles * alignment issues and endian issues if necessary, as configured * via the ACPI_MOVE_* macros. (This is why a memcpy is not used) * ******************************************************************************/ void AcpiRsMoveData ( void *Destination, void *Source, UINT16 ItemCount, UINT8 MoveType) { UINT32 i; ACPI_FUNCTION_ENTRY (); /* One move per item */ for (i = 0; i < ItemCount; i++) { switch (MoveType) { /* * For the 8-bit case, we can perform the move all at once * since there are no alignment or endian issues */ case ACPI_RSC_MOVE8: case ACPI_RSC_MOVE_GPIO_RES: case ACPI_RSC_MOVE_SERIAL_VEN: case ACPI_RSC_MOVE_SERIAL_RES: memcpy (Destination, Source, ItemCount); return; /* * 16-, 32-, and 64-bit cases must use the move macros that perform * endian conversion and/or accommodate hardware that cannot perform * misaligned memory transfers */ case ACPI_RSC_MOVE16: case ACPI_RSC_MOVE_GPIO_PIN: ACPI_MOVE_16_TO_16 ( &ACPI_CAST_PTR (UINT16, Destination)[i], &ACPI_CAST_PTR (UINT16, Source)[i]); break; case ACPI_RSC_MOVE32: ACPI_MOVE_32_TO_32 ( &ACPI_CAST_PTR (UINT32, Destination)[i], &ACPI_CAST_PTR (UINT32, Source)[i]); break; case ACPI_RSC_MOVE64: ACPI_MOVE_64_TO_64 ( &ACPI_CAST_PTR (UINT64, Destination)[i], &ACPI_CAST_PTR (UINT64, Source)[i]); break; default: return; } } } /******************************************************************************* * * FUNCTION: AcpiRsSetResourceLength * * PARAMETERS: TotalLength - Length of the AML descriptor, including * the header and length fields. * Aml - Pointer to the raw AML descriptor * * RETURN: None * * DESCRIPTION: Set the ResourceLength field of an AML * resource descriptor, both Large and Small descriptors are * supported automatically. Note: Descriptor Type field must * be valid. * ******************************************************************************/ void AcpiRsSetResourceLength ( ACPI_RSDESC_SIZE TotalLength, AML_RESOURCE *Aml) { ACPI_RS_LENGTH ResourceLength; ACPI_FUNCTION_ENTRY (); /* Length is the total descriptor length minus the header length */ ResourceLength = (ACPI_RS_LENGTH) (TotalLength - AcpiUtGetResourceHeaderLength (Aml)); /* Length is stored differently for large and small descriptors */ if (Aml->SmallHeader.DescriptorType & ACPI_RESOURCE_NAME_LARGE) { /* Large descriptor -- bytes 1-2 contain the 16-bit length */ ACPI_MOVE_16_TO_16 ( &Aml->LargeHeader.ResourceLength, &ResourceLength); } else { /* * Small descriptor -- bits 2:0 of byte 0 contain the length * Clear any existing length, preserving descriptor type bits */ Aml->SmallHeader.DescriptorType = (UINT8) ((Aml->SmallHeader.DescriptorType & ~ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK) | ResourceLength); } } /******************************************************************************* * * FUNCTION: AcpiRsSetResourceHeader * * PARAMETERS: DescriptorType - Byte to be inserted as the type * TotalLength - Length of the AML descriptor, including * the header and length fields. * Aml - Pointer to the raw AML descriptor * * RETURN: None * * DESCRIPTION: Set the DescriptorType and ResourceLength fields of an AML * resource descriptor, both Large and Small descriptors are * supported automatically * ******************************************************************************/ void AcpiRsSetResourceHeader ( UINT8 DescriptorType, ACPI_RSDESC_SIZE TotalLength, AML_RESOURCE *Aml) { ACPI_FUNCTION_ENTRY (); /* Set the Resource Type */ Aml->SmallHeader.DescriptorType = DescriptorType; /* Set the Resource Length */ AcpiRsSetResourceLength (TotalLength, Aml); } /******************************************************************************* * * FUNCTION: AcpiRsStrcpy * * PARAMETERS: Destination - Pointer to the destination string * Source - Pointer to the source string * * RETURN: String length, including NULL terminator * * DESCRIPTION: Local string copy that returns the string length, saving a * strcpy followed by a strlen. * ******************************************************************************/ static UINT16 AcpiRsStrcpy ( char *Destination, char *Source) { UINT16 i; ACPI_FUNCTION_ENTRY (); for (i = 0; Source[i]; i++) { Destination[i] = Source[i]; } Destination[i] = 0; /* Return string length including the NULL terminator */ return ((UINT16) (i + 1)); } /******************************************************************************* * * FUNCTION: AcpiRsGetResourceSource * * PARAMETERS: ResourceLength - Length field of the descriptor * MinimumLength - Minimum length of the descriptor (minus * any optional fields) * ResourceSource - Where the ResourceSource is returned * Aml - Pointer to the raw AML descriptor * StringPtr - (optional) where to store the actual * ResourceSource string * * RETURN: Length of the string plus NULL terminator, rounded up to native * word boundary * * DESCRIPTION: Copy the optional ResourceSource data from a raw AML descriptor * to an internal resource descriptor * ******************************************************************************/ ACPI_RS_LENGTH AcpiRsGetResourceSource ( ACPI_RS_LENGTH ResourceLength, ACPI_RS_LENGTH MinimumLength, ACPI_RESOURCE_SOURCE *ResourceSource, AML_RESOURCE *Aml, char *StringPtr) { ACPI_RSDESC_SIZE TotalLength; UINT8 *AmlResourceSource; ACPI_FUNCTION_ENTRY (); TotalLength = ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER); AmlResourceSource = ACPI_ADD_PTR (UINT8, Aml, MinimumLength); /* * ResourceSource is present if the length of the descriptor is longer * than the minimum length. * * Note: Some resource descriptors will have an additional null, so * we add 1 to the minimum length. */ if (TotalLength > (ACPI_RSDESC_SIZE) (MinimumLength + 1)) { /* Get the ResourceSourceIndex */ ResourceSource->Index = AmlResourceSource[0]; ResourceSource->StringPtr = StringPtr; if (!StringPtr) { /* * String destination pointer is not specified; Set the String * pointer to the end of the current ResourceSource structure. */ ResourceSource->StringPtr = ACPI_ADD_PTR ( char, ResourceSource, sizeof (ACPI_RESOURCE_SOURCE)); } /* * In order for the Resource length to be a multiple of the native * word, calculate the length of the string (+1 for NULL terminator) * and expand to the next word multiple. * * Zero the entire area of the buffer. */ TotalLength = (UINT32) strlen ( ACPI_CAST_PTR (char, &AmlResourceSource[1])) + 1; TotalLength = (UINT32) ACPI_ROUND_UP_TO_NATIVE_WORD (TotalLength); memset (ResourceSource->StringPtr, 0, TotalLength); /* Copy the ResourceSource string to the destination */ ResourceSource->StringLength = AcpiRsStrcpy ( ResourceSource->StringPtr, ACPI_CAST_PTR (char, &AmlResourceSource[1])); return ((ACPI_RS_LENGTH) TotalLength); } /* ResourceSource is not present */ ResourceSource->Index = 0; ResourceSource->StringLength = 0; ResourceSource->StringPtr = NULL; return (0); } /******************************************************************************* * * FUNCTION: AcpiRsSetResourceSource * * PARAMETERS: Aml - Pointer to the raw AML descriptor * MinimumLength - Minimum length of the descriptor (minus * any optional fields) * ResourceSource - Internal ResourceSource * * RETURN: Total length of the AML descriptor * * DESCRIPTION: Convert an optional ResourceSource from internal format to a * raw AML resource descriptor * ******************************************************************************/ ACPI_RSDESC_SIZE AcpiRsSetResourceSource ( AML_RESOURCE *Aml, ACPI_RS_LENGTH MinimumLength, ACPI_RESOURCE_SOURCE *ResourceSource) { UINT8 *AmlResourceSource; ACPI_RSDESC_SIZE DescriptorLength; ACPI_FUNCTION_ENTRY (); DescriptorLength = MinimumLength; /* Non-zero string length indicates presence of a ResourceSource */ if (ResourceSource->StringLength) { /* Point to the end of the AML descriptor */ AmlResourceSource = ACPI_ADD_PTR (UINT8, Aml, MinimumLength); /* Copy the ResourceSourceIndex */ AmlResourceSource[0] = (UINT8) ResourceSource->Index; /* Copy the ResourceSource string */ strcpy (ACPI_CAST_PTR (char, &AmlResourceSource[1]), ResourceSource->StringPtr); /* * Add the length of the string (+ 1 for null terminator) to the * final descriptor length */ DescriptorLength += ((ACPI_RSDESC_SIZE) ResourceSource->StringLength + 1); } /* Return the new total length of the AML descriptor */ return (DescriptorLength); } /******************************************************************************* * * FUNCTION: AcpiRsGetPrtMethodData * * PARAMETERS: Node - Device node * RetBuffer - Pointer to a buffer structure for the * results * * RETURN: Status * * DESCRIPTION: This function is called to get the _PRT value of an object * contained in an object specified by the handle passed in * * If the function fails an appropriate status will be returned * and the contents of the callers buffer is undefined. * ******************************************************************************/ ACPI_STATUS AcpiRsGetPrtMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (RsGetPrtMethodData); /* Parameters guaranteed valid by caller */ /* Execute the method, no parameters */ Status = AcpiUtEvaluateObject ( Node, METHOD_NAME__PRT, ACPI_BTYPE_PACKAGE, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Create a resource linked list from the byte stream buffer that comes * back from the _CRS method execution. */ Status = AcpiRsCreatePciRoutingTable (ObjDesc, RetBuffer); /* On exit, we must delete the object returned by EvaluateObject */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiRsGetCrsMethodData * * PARAMETERS: Node - Device node * RetBuffer - Pointer to a buffer structure for the * results * * RETURN: Status * * DESCRIPTION: This function is called to get the _CRS value of an object * contained in an object specified by the handle passed in * * If the function fails an appropriate status will be returned * and the contents of the callers buffer is undefined. * ******************************************************************************/ ACPI_STATUS AcpiRsGetCrsMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (RsGetCrsMethodData); /* Parameters guaranteed valid by caller */ /* Execute the method, no parameters */ Status = AcpiUtEvaluateObject ( Node, METHOD_NAME__CRS, ACPI_BTYPE_BUFFER, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Make the call to create a resource linked list from the * byte stream buffer that comes back from the _CRS method * execution. */ Status = AcpiRsCreateResourceList (ObjDesc, RetBuffer); /* On exit, we must delete the object returned by evaluateObject */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiRsGetPrsMethodData * * PARAMETERS: Node - Device node * RetBuffer - Pointer to a buffer structure for the * results * * RETURN: Status * * DESCRIPTION: This function is called to get the _PRS value of an object * contained in an object specified by the handle passed in * * If the function fails an appropriate status will be returned * and the contents of the callers buffer is undefined. * ******************************************************************************/ ACPI_STATUS AcpiRsGetPrsMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (RsGetPrsMethodData); /* Parameters guaranteed valid by caller */ /* Execute the method, no parameters */ Status = AcpiUtEvaluateObject ( Node, METHOD_NAME__PRS, ACPI_BTYPE_BUFFER, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Make the call to create a resource linked list from the * byte stream buffer that comes back from the _CRS method * execution. */ Status = AcpiRsCreateResourceList (ObjDesc, RetBuffer); /* On exit, we must delete the object returned by evaluateObject */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiRsGetAeiMethodData * * PARAMETERS: Node - Device node * RetBuffer - Pointer to a buffer structure for the * results * * RETURN: Status * * DESCRIPTION: This function is called to get the _AEI value of an object * contained in an object specified by the handle passed in * * If the function fails an appropriate status will be returned * and the contents of the callers buffer is undefined. * ******************************************************************************/ ACPI_STATUS AcpiRsGetAeiMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *RetBuffer) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (RsGetAeiMethodData); /* Parameters guaranteed valid by caller */ /* Execute the method, no parameters */ Status = AcpiUtEvaluateObject ( Node, METHOD_NAME__AEI, ACPI_BTYPE_BUFFER, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Make the call to create a resource linked list from the * byte stream buffer that comes back from the _CRS method * execution. */ Status = AcpiRsCreateResourceList (ObjDesc, RetBuffer); /* On exit, we must delete the object returned by evaluateObject */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiRsGetMethodData * * PARAMETERS: Handle - Handle to the containing object * Path - Path to method, relative to Handle * RetBuffer - Pointer to a buffer structure for the * results * * RETURN: Status * * DESCRIPTION: This function is called to get the _CRS or _PRS value of an * object contained in an object specified by the handle passed in * * If the function fails an appropriate status will be returned * and the contents of the callers buffer is undefined. * ******************************************************************************/ ACPI_STATUS AcpiRsGetMethodData ( ACPI_HANDLE Handle, const char *Path, ACPI_BUFFER *RetBuffer) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (RsGetMethodData); /* Parameters guaranteed valid by caller */ /* Execute the method, no parameters */ Status = AcpiUtEvaluateObject ( ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Handle), Path, ACPI_BTYPE_BUFFER, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Make the call to create a resource linked list from the * byte stream buffer that comes back from the method * execution. */ Status = AcpiRsCreateResourceList (ObjDesc, RetBuffer); /* On exit, we must delete the object returned by EvaluateObject */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiRsSetSrsMethodData * * PARAMETERS: Node - Device node * InBuffer - Pointer to a buffer structure of the * parameter * * RETURN: Status * * DESCRIPTION: This function is called to set the _SRS of an object contained * in an object specified by the handle passed in * * If the function fails an appropriate status will be returned * and the contents of the callers buffer is undefined. * * Note: Parameters guaranteed valid by caller * ******************************************************************************/ ACPI_STATUS AcpiRsSetSrsMethodData ( ACPI_NAMESPACE_NODE *Node, ACPI_BUFFER *InBuffer) { ACPI_EVALUATE_INFO *Info; ACPI_OPERAND_OBJECT *Args[2]; ACPI_STATUS Status; ACPI_BUFFER Buffer; ACPI_FUNCTION_TRACE (RsSetSrsMethodData); /* Allocate and initialize the evaluation information block */ Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO)); if (!Info) { return_ACPI_STATUS (AE_NO_MEMORY); } Info->PrefixNode = Node; Info->RelativePathname = METHOD_NAME__SRS; Info->Parameters = Args; Info->Flags = ACPI_IGNORE_RETURN_VALUE; /* * The InBuffer parameter will point to a linked list of * resource parameters. It needs to be formatted into a * byte stream to be sent in as an input parameter to _SRS * * Convert the linked list into a byte stream */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiRsCreateAmlResources (InBuffer, &Buffer); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* Create and initialize the method parameter object */ Args[0] = AcpiUtCreateInternalObject (ACPI_TYPE_BUFFER); if (!Args[0]) { /* * Must free the buffer allocated above (otherwise it is freed * later) */ ACPI_FREE (Buffer.Pointer); Status = AE_NO_MEMORY; goto Cleanup; } Args[0]->Buffer.Length = (UINT32) Buffer.Length; Args[0]->Buffer.Pointer = Buffer.Pointer; Args[0]->Common.Flags = AOPOBJ_DATA_VALID; Args[1] = NULL; /* Execute the method, no return value is expected */ Status = AcpiNsEvaluate (Info); /* Clean up and return the status from AcpiNsEvaluate */ AcpiUtRemoveReference (Args[0]); Cleanup: ACPI_FREE (Info); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/resources/rsinfo.c0000775000175000017500000003464314773714133022717 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsinfo - Dispatch and Info tables * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsinfo") /* * Resource dispatch and information tables. Any new resource types (either * Large or Small) must be reflected in each of these tables, so they are here * in one place. * * The tables for Large descriptors are indexed by bits 6:0 of the AML * descriptor type byte. The tables for Small descriptors are indexed by * bits 6:3 of the descriptor byte. The tables for internal resource * descriptors are indexed by the ACPI_RESOURCE_TYPE field. */ /* Dispatch table for resource-to-AML (Set Resource) conversion functions */ ACPI_RSCONVERT_INFO *AcpiGbl_SetResourceDispatch[] = { AcpiRsSetIrq, /* 0x00, ACPI_RESOURCE_TYPE_IRQ */ AcpiRsConvertDma, /* 0x01, ACPI_RESOURCE_TYPE_DMA */ AcpiRsSetStartDpf, /* 0x02, ACPI_RESOURCE_TYPE_START_DEPENDENT */ AcpiRsConvertEndDpf, /* 0x03, ACPI_RESOURCE_TYPE_END_DEPENDENT */ AcpiRsConvertIo, /* 0x04, ACPI_RESOURCE_TYPE_IO */ AcpiRsConvertFixedIo, /* 0x05, ACPI_RESOURCE_TYPE_FIXED_IO */ AcpiRsSetVendor, /* 0x06, ACPI_RESOURCE_TYPE_VENDOR */ AcpiRsConvertEndTag, /* 0x07, ACPI_RESOURCE_TYPE_END_TAG */ AcpiRsConvertMemory24, /* 0x08, ACPI_RESOURCE_TYPE_MEMORY24 */ AcpiRsConvertMemory32, /* 0x09, ACPI_RESOURCE_TYPE_MEMORY32 */ AcpiRsConvertFixedMemory32, /* 0x0A, ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */ AcpiRsConvertAddress16, /* 0x0B, ACPI_RESOURCE_TYPE_ADDRESS16 */ AcpiRsConvertAddress32, /* 0x0C, ACPI_RESOURCE_TYPE_ADDRESS32 */ AcpiRsConvertAddress64, /* 0x0D, ACPI_RESOURCE_TYPE_ADDRESS64 */ AcpiRsConvertExtAddress64, /* 0x0E, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */ AcpiRsConvertExtIrq, /* 0x0F, ACPI_RESOURCE_TYPE_EXTENDED_IRQ */ AcpiRsConvertGenericReg, /* 0x10, ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ AcpiRsConvertGpio, /* 0x11, ACPI_RESOURCE_TYPE_GPIO */ AcpiRsConvertFixedDma, /* 0x12, ACPI_RESOURCE_TYPE_FIXED_DMA */ NULL, /* 0x13, ACPI_RESOURCE_TYPE_SERIAL_BUS - Use subtype table below */ AcpiRsConvertPinFunction, /* 0x14, ACPI_RESOURCE_TYPE_PIN_FUNCTION */ AcpiRsConvertPinConfig, /* 0x15, ACPI_RESOURCE_TYPE_PIN_CONFIG */ AcpiRsConvertPinGroup, /* 0x16, ACPI_RESOURCE_TYPE_PIN_GROUP */ AcpiRsConvertPinGroupFunction, /* 0x17, ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION */ AcpiRsConvertPinGroupConfig, /* 0x18, ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG */ AcpiRsConvertClockInput, /* 0x19, ACPI_RESOURCE_TYPE_CLOCK_INPUT */ }; /* Dispatch tables for AML-to-resource (Get Resource) conversion functions */ ACPI_RSCONVERT_INFO *AcpiGbl_GetResourceDispatch[] = { /* Small descriptors */ NULL, /* 0x00, Reserved */ NULL, /* 0x01, Reserved */ NULL, /* 0x02, Reserved */ NULL, /* 0x03, Reserved */ AcpiRsGetIrq, /* 0x04, ACPI_RESOURCE_NAME_IRQ */ AcpiRsConvertDma, /* 0x05, ACPI_RESOURCE_NAME_DMA */ AcpiRsGetStartDpf, /* 0x06, ACPI_RESOURCE_NAME_START_DEPENDENT */ AcpiRsConvertEndDpf, /* 0x07, ACPI_RESOURCE_NAME_END_DEPENDENT */ AcpiRsConvertIo, /* 0x08, ACPI_RESOURCE_NAME_IO */ AcpiRsConvertFixedIo, /* 0x09, ACPI_RESOURCE_NAME_FIXED_IO */ AcpiRsConvertFixedDma, /* 0x0A, ACPI_RESOURCE_NAME_FIXED_DMA */ NULL, /* 0x0B, Reserved */ NULL, /* 0x0C, Reserved */ NULL, /* 0x0D, Reserved */ AcpiRsGetVendorSmall, /* 0x0E, ACPI_RESOURCE_NAME_VENDOR_SMALL */ AcpiRsConvertEndTag, /* 0x0F, ACPI_RESOURCE_NAME_END_TAG */ /* Large descriptors */ NULL, /* 0x00, Reserved */ AcpiRsConvertMemory24, /* 0x01, ACPI_RESOURCE_NAME_MEMORY24 */ AcpiRsConvertGenericReg, /* 0x02, ACPI_RESOURCE_NAME_GENERIC_REGISTER */ NULL, /* 0x03, Reserved */ AcpiRsGetVendorLarge, /* 0x04, ACPI_RESOURCE_NAME_VENDOR_LARGE */ AcpiRsConvertMemory32, /* 0x05, ACPI_RESOURCE_NAME_MEMORY32 */ AcpiRsConvertFixedMemory32, /* 0x06, ACPI_RESOURCE_NAME_FIXED_MEMORY32 */ AcpiRsConvertAddress32, /* 0x07, ACPI_RESOURCE_NAME_ADDRESS32 */ AcpiRsConvertAddress16, /* 0x08, ACPI_RESOURCE_NAME_ADDRESS16 */ AcpiRsConvertExtIrq, /* 0x09, ACPI_RESOURCE_NAME_EXTENDED_IRQ */ AcpiRsConvertAddress64, /* 0x0A, ACPI_RESOURCE_NAME_ADDRESS64 */ AcpiRsConvertExtAddress64, /* 0x0B, ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64 */ AcpiRsConvertGpio, /* 0x0C, ACPI_RESOURCE_NAME_GPIO */ AcpiRsConvertPinFunction, /* 0x0D, ACPI_RESOURCE_NAME_PIN_FUNCTION */ NULL, /* 0x0E, ACPI_RESOURCE_NAME_SERIAL_BUS - Use subtype table below */ AcpiRsConvertPinConfig, /* 0x0F, ACPI_RESOURCE_NAME_PIN_CONFIG */ AcpiRsConvertPinGroup, /* 0x10, ACPI_RESOURCE_NAME_PIN_GROUP */ AcpiRsConvertPinGroupFunction, /* 0x11, ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION */ AcpiRsConvertPinGroupConfig, /* 0x12, ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG */ AcpiRsConvertClockInput, /* 0x13, ACPI_RESOURCE_NAME_CLOCK_INPUT */ }; /* Subtype table for SerialBus -- I2C, SPI, UART, and CSI2 */ ACPI_RSCONVERT_INFO *AcpiGbl_ConvertResourceSerialBusDispatch[] = { NULL, AcpiRsConvertI2cSerialBus, AcpiRsConvertSpiSerialBus, AcpiRsConvertUartSerialBus, AcpiRsConvertCsi2SerialBus }; #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DISASSEMBLER) || defined(ACPI_DEBUGGER) /* Dispatch table for resource dump functions */ ACPI_RSDUMP_INFO *AcpiGbl_DumpResourceDispatch[] = { AcpiRsDumpIrq, /* ACPI_RESOURCE_TYPE_IRQ */ AcpiRsDumpDma, /* ACPI_RESOURCE_TYPE_DMA */ AcpiRsDumpStartDpf, /* ACPI_RESOURCE_TYPE_START_DEPENDENT */ AcpiRsDumpEndDpf, /* ACPI_RESOURCE_TYPE_END_DEPENDENT */ AcpiRsDumpIo, /* ACPI_RESOURCE_TYPE_IO */ AcpiRsDumpFixedIo, /* ACPI_RESOURCE_TYPE_FIXED_IO */ AcpiRsDumpVendor, /* ACPI_RESOURCE_TYPE_VENDOR */ AcpiRsDumpEndTag, /* ACPI_RESOURCE_TYPE_END_TAG */ AcpiRsDumpMemory24, /* ACPI_RESOURCE_TYPE_MEMORY24 */ AcpiRsDumpMemory32, /* ACPI_RESOURCE_TYPE_MEMORY32 */ AcpiRsDumpFixedMemory32, /* ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */ AcpiRsDumpAddress16, /* ACPI_RESOURCE_TYPE_ADDRESS16 */ AcpiRsDumpAddress32, /* ACPI_RESOURCE_TYPE_ADDRESS32 */ AcpiRsDumpAddress64, /* ACPI_RESOURCE_TYPE_ADDRESS64 */ AcpiRsDumpExtAddress64, /* ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */ AcpiRsDumpExtIrq, /* ACPI_RESOURCE_TYPE_EXTENDED_IRQ */ AcpiRsDumpGenericReg, /* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ AcpiRsDumpGpio, /* ACPI_RESOURCE_TYPE_GPIO */ AcpiRsDumpFixedDma, /* ACPI_RESOURCE_TYPE_FIXED_DMA */ NULL, /* ACPI_RESOURCE_TYPE_SERIAL_BUS */ AcpiRsDumpPinFunction, /* ACPI_RESOURCE_TYPE_PIN_FUNCTION */ AcpiRsDumpPinConfig, /* ACPI_RESOURCE_TYPE_PIN_CONFIG */ AcpiRsDumpPinGroup, /* ACPI_RESOURCE_TYPE_PIN_GROUP */ AcpiRsDumpPinGroupFunction, /* ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION */ AcpiRsDumpPinGroupConfig, /* ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG */ AcpiRsDumpClockInput, /* ACPI_RESOURCE_TYPE_CLOCK_INPUT */ }; ACPI_RSDUMP_INFO *AcpiGbl_DumpSerialBusDispatch[] = { NULL, AcpiRsDumpI2cSerialBus, /* AML_RESOURCE_I2C_BUS_TYPE */ AcpiRsDumpSpiSerialBus, /* AML_RESOURCE_SPI_BUS_TYPE */ AcpiRsDumpUartSerialBus, /* AML_RESOURCE_UART_BUS_TYPE */ AcpiRsDumpCsi2SerialBus, /* AML_RESOURCE_CSI2_BUS_TYPE */ }; #endif /* * Base sizes for external AML resource descriptors, indexed by internal type. * Includes size of the descriptor header (1 byte for small descriptors, * 3 bytes for large descriptors) */ const UINT8 AcpiGbl_AmlResourceSizes[] = { sizeof (AML_RESOURCE_IRQ), /* ACPI_RESOURCE_TYPE_IRQ (optional Byte 3 always created) */ sizeof (AML_RESOURCE_DMA), /* ACPI_RESOURCE_TYPE_DMA */ sizeof (AML_RESOURCE_START_DEPENDENT), /* ACPI_RESOURCE_TYPE_START_DEPENDENT (optional Byte 1 always created) */ sizeof (AML_RESOURCE_END_DEPENDENT), /* ACPI_RESOURCE_TYPE_END_DEPENDENT */ sizeof (AML_RESOURCE_IO), /* ACPI_RESOURCE_TYPE_IO */ sizeof (AML_RESOURCE_FIXED_IO), /* ACPI_RESOURCE_TYPE_FIXED_IO */ sizeof (AML_RESOURCE_VENDOR_SMALL), /* ACPI_RESOURCE_TYPE_VENDOR */ sizeof (AML_RESOURCE_END_TAG), /* ACPI_RESOURCE_TYPE_END_TAG */ sizeof (AML_RESOURCE_MEMORY24), /* ACPI_RESOURCE_TYPE_MEMORY24 */ sizeof (AML_RESOURCE_MEMORY32), /* ACPI_RESOURCE_TYPE_MEMORY32 */ sizeof (AML_RESOURCE_FIXED_MEMORY32), /* ACPI_RESOURCE_TYPE_FIXED_MEMORY32 */ sizeof (AML_RESOURCE_ADDRESS16), /* ACPI_RESOURCE_TYPE_ADDRESS16 */ sizeof (AML_RESOURCE_ADDRESS32), /* ACPI_RESOURCE_TYPE_ADDRESS32 */ sizeof (AML_RESOURCE_ADDRESS64), /* ACPI_RESOURCE_TYPE_ADDRESS64 */ sizeof (AML_RESOURCE_EXTENDED_ADDRESS64),/*ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 */ sizeof (AML_RESOURCE_EXTENDED_IRQ), /* ACPI_RESOURCE_TYPE_EXTENDED_IRQ */ sizeof (AML_RESOURCE_GENERIC_REGISTER), /* ACPI_RESOURCE_TYPE_GENERIC_REGISTER */ sizeof (AML_RESOURCE_GPIO), /* ACPI_RESOURCE_TYPE_GPIO */ sizeof (AML_RESOURCE_FIXED_DMA), /* ACPI_RESOURCE_TYPE_FIXED_DMA */ sizeof (AML_RESOURCE_COMMON_SERIALBUS), /* ACPI_RESOURCE_TYPE_SERIAL_BUS */ sizeof (AML_RESOURCE_PIN_FUNCTION), /* ACPI_RESOURCE_TYPE_PIN_FUNCTION */ sizeof (AML_RESOURCE_PIN_CONFIG), /* ACPI_RESOURCE_TYPE_PIN_CONFIG */ sizeof (AML_RESOURCE_PIN_GROUP), /* ACPI_RESOURCE_TYPE_PIN_GROUP */ sizeof (AML_RESOURCE_PIN_GROUP_FUNCTION), /* ACPI_RESOURCE_TYPE_PIN_GROUP_FUNCTION */ sizeof (AML_RESOURCE_PIN_GROUP_CONFIG), /* ACPI_RESOURCE_TYPE_PIN_GROUP_CONFIG */ sizeof (AML_RESOURCE_CLOCK_INPUT), /* ACPI_RESOURCE_TYPE_CLOCK_INPUT */ }; const UINT8 AcpiGbl_ResourceStructSizes[] = { /* Small descriptors */ 0, 0, 0, 0, ACPI_RS_SIZE (ACPI_RESOURCE_IRQ), ACPI_RS_SIZE (ACPI_RESOURCE_DMA), ACPI_RS_SIZE (ACPI_RESOURCE_START_DEPENDENT), ACPI_RS_SIZE_MIN, ACPI_RS_SIZE (ACPI_RESOURCE_IO), ACPI_RS_SIZE (ACPI_RESOURCE_FIXED_IO), ACPI_RS_SIZE (ACPI_RESOURCE_FIXED_DMA), 0, 0, 0, ACPI_RS_SIZE (ACPI_RESOURCE_VENDOR), ACPI_RS_SIZE_MIN, /* Large descriptors */ 0, ACPI_RS_SIZE (ACPI_RESOURCE_MEMORY24), ACPI_RS_SIZE (ACPI_RESOURCE_GENERIC_REGISTER), 0, ACPI_RS_SIZE (ACPI_RESOURCE_VENDOR), ACPI_RS_SIZE (ACPI_RESOURCE_MEMORY32), ACPI_RS_SIZE (ACPI_RESOURCE_FIXED_MEMORY32), ACPI_RS_SIZE (ACPI_RESOURCE_ADDRESS32), ACPI_RS_SIZE (ACPI_RESOURCE_ADDRESS16), ACPI_RS_SIZE (ACPI_RESOURCE_EXTENDED_IRQ), ACPI_RS_SIZE (ACPI_RESOURCE_ADDRESS64), ACPI_RS_SIZE (ACPI_RESOURCE_EXTENDED_ADDRESS64), ACPI_RS_SIZE (ACPI_RESOURCE_GPIO), ACPI_RS_SIZE (ACPI_RESOURCE_PIN_FUNCTION), ACPI_RS_SIZE (ACPI_RESOURCE_COMMON_SERIALBUS), ACPI_RS_SIZE (ACPI_RESOURCE_PIN_CONFIG), ACPI_RS_SIZE (ACPI_RESOURCE_PIN_GROUP), ACPI_RS_SIZE (ACPI_RESOURCE_PIN_GROUP_FUNCTION), ACPI_RS_SIZE (ACPI_RESOURCE_PIN_GROUP_CONFIG), ACPI_RS_SIZE (ACPI_RESOURCE_CLOCK_INPUT), }; const UINT8 AcpiGbl_AmlResourceSerialBusSizes[] = { 0, sizeof (AML_RESOURCE_I2C_SERIALBUS), sizeof (AML_RESOURCE_SPI_SERIALBUS), sizeof (AML_RESOURCE_UART_SERIALBUS), sizeof (AML_RESOURCE_CSI2_SERIALBUS), }; const UINT8 AcpiGbl_ResourceStructSerialBusSizes[] = { 0, ACPI_RS_SIZE (ACPI_RESOURCE_I2C_SERIALBUS), ACPI_RS_SIZE (ACPI_RESOURCE_SPI_SERIALBUS), ACPI_RS_SIZE (ACPI_RESOURCE_UART_SERIALBUS), ACPI_RS_SIZE (ACPI_RESOURCE_CSI2_SERIALBUS), }; acpica-unix-20250404/source/components/resources/rsio.c0000775000175000017500000002453114773714133022366 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsio - IO and DMA resource descriptors * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsio") /******************************************************************************* * * AcpiRsConvertIo * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertIo[5] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_IO, ACPI_RS_SIZE (ACPI_RESOURCE_IO), ACPI_RSC_TABLE_SIZE (AcpiRsConvertIo)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_IO, sizeof (AML_RESOURCE_IO), 0}, /* Decode flag */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.Io.IoDecode), AML_OFFSET (Io.Flags), 0}, /* * These fields are contiguous in both the source and destination: * Address Alignment * Length * Minimum Base Address * Maximum Base Address */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.Io.Alignment), AML_OFFSET (Io.Alignment), 2}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.Io.Minimum), AML_OFFSET (Io.Minimum), 2} }; /******************************************************************************* * * AcpiRsConvertFixedIo * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertFixedIo[4] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_FIXED_IO, ACPI_RS_SIZE (ACPI_RESOURCE_FIXED_IO), ACPI_RSC_TABLE_SIZE (AcpiRsConvertFixedIo)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_FIXED_IO, sizeof (AML_RESOURCE_FIXED_IO), 0}, /* * These fields are contiguous in both the source and destination: * Base Address * Length */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.FixedIo.AddressLength), AML_OFFSET (FixedIo.AddressLength), 1}, {ACPI_RSC_MOVE16, ACPI_RS_OFFSET (Data.FixedIo.Address), AML_OFFSET (FixedIo.Address), 1} }; /******************************************************************************* * * AcpiRsConvertGenericReg * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertGenericReg[4] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_GENERIC_REGISTER, ACPI_RS_SIZE (ACPI_RESOURCE_GENERIC_REGISTER), ACPI_RSC_TABLE_SIZE (AcpiRsConvertGenericReg)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_GENERIC_REGISTER, sizeof (AML_RESOURCE_GENERIC_REGISTER), 0}, /* * These fields are contiguous in both the source and destination: * Address Space ID * Register Bit Width * Register Bit Offset * Access Size */ {ACPI_RSC_MOVE8, ACPI_RS_OFFSET (Data.GenericReg.SpaceId), AML_OFFSET (GenericReg.AddressSpaceId), 4}, /* Get the Register Address */ {ACPI_RSC_MOVE64, ACPI_RS_OFFSET (Data.GenericReg.Address), AML_OFFSET (GenericReg.Address), 1} }; /******************************************************************************* * * AcpiRsConvertEndDpf * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertEndDpf[2] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_END_DEPENDENT, ACPI_RS_SIZE_MIN, ACPI_RSC_TABLE_SIZE (AcpiRsConvertEndDpf)}, {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_END_DEPENDENT, sizeof (AML_RESOURCE_END_DEPENDENT), 0} }; /******************************************************************************* * * AcpiRsConvertEndTag * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsConvertEndTag[2] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_END_TAG, ACPI_RS_SIZE_MIN, ACPI_RSC_TABLE_SIZE (AcpiRsConvertEndTag)}, /* * Note: The checksum field is set to zero, meaning that the resource * data is treated as if the checksum operation succeeded. * (ACPI Spec 1.0b Section 6.4.2.8) */ {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_END_TAG, sizeof (AML_RESOURCE_END_TAG), 0} }; /******************************************************************************* * * AcpiRsGetStartDpf * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsGetStartDpf[6] = { {ACPI_RSC_INITGET, ACPI_RESOURCE_TYPE_START_DEPENDENT, ACPI_RS_SIZE (ACPI_RESOURCE_START_DEPENDENT), ACPI_RSC_TABLE_SIZE (AcpiRsGetStartDpf)}, /* Defaults for Compatibility and Performance priorities */ {ACPI_RSC_SET8, ACPI_RS_OFFSET (Data.StartDpf.CompatibilityPriority), ACPI_ACCEPTABLE_CONFIGURATION, 2}, /* Get the descriptor length (0 or 1 for Start Dpf descriptor) */ {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET (Data.StartDpf.DescriptorLength), AML_OFFSET (StartDpf.DescriptorType), 0}, /* All done if there is no flag byte present in the descriptor */ {ACPI_RSC_EXIT_NE, ACPI_RSC_COMPARE_AML_LENGTH, 0, 1}, /* Flag byte is present, get the flags */ {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.StartDpf.CompatibilityPriority), AML_OFFSET (StartDpf.Flags), 0}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.StartDpf.PerformanceRobustness), AML_OFFSET (StartDpf.Flags), 2} }; /******************************************************************************* * * AcpiRsSetStartDpf * ******************************************************************************/ ACPI_RSCONVERT_INFO AcpiRsSetStartDpf[10] = { /* Start with a default descriptor of length 1 */ {ACPI_RSC_INITSET, ACPI_RESOURCE_NAME_START_DEPENDENT, sizeof (AML_RESOURCE_START_DEPENDENT), ACPI_RSC_TABLE_SIZE (AcpiRsSetStartDpf)}, /* Set the default flag values */ {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.StartDpf.CompatibilityPriority), AML_OFFSET (StartDpf.Flags), 0}, {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET (Data.StartDpf.PerformanceRobustness), AML_OFFSET (StartDpf.Flags), 2}, /* * All done if the output descriptor length is required to be 1 * (i.e., optimization to 0 bytes cannot be attempted) */ {ACPI_RSC_EXIT_EQ, ACPI_RSC_COMPARE_VALUE, ACPI_RS_OFFSET(Data.StartDpf.DescriptorLength), 1}, /* Set length to 0 bytes (no flags byte) */ {ACPI_RSC_LENGTH, 0, 0, sizeof (AML_RESOURCE_START_DEPENDENT_NOPRIO)}, /* * All done if the output descriptor length is required to be 0. * * TBD: Perhaps we should check for error if input flags are not * compatible with a 0-byte descriptor. */ {ACPI_RSC_EXIT_EQ, ACPI_RSC_COMPARE_VALUE, ACPI_RS_OFFSET(Data.StartDpf.DescriptorLength), 0}, /* Reset length to 1 byte (descriptor with flags byte) */ {ACPI_RSC_LENGTH, 0, 0, sizeof (AML_RESOURCE_START_DEPENDENT)}, /* * All done if flags byte is necessary -- if either priority value * is not ACPI_ACCEPTABLE_CONFIGURATION */ {ACPI_RSC_EXIT_NE, ACPI_RSC_COMPARE_VALUE, ACPI_RS_OFFSET (Data.StartDpf.CompatibilityPriority), ACPI_ACCEPTABLE_CONFIGURATION}, {ACPI_RSC_EXIT_NE, ACPI_RSC_COMPARE_VALUE, ACPI_RS_OFFSET (Data.StartDpf.PerformanceRobustness), ACPI_ACCEPTABLE_CONFIGURATION}, /* Flag byte is not necessary */ {ACPI_RSC_LENGTH, 0, 0, sizeof (AML_RESOURCE_START_DEPENDENT_NOPRIO)} }; acpica-unix-20250404/source/components/resources/rsxface.c0000775000175000017500000005441314773714133023047 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: rsxface - Public interfaces to the resource manager * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acresrc.h" #include "acnamesp.h" #define _COMPONENT ACPI_RESOURCES ACPI_MODULE_NAME ("rsxface") /* Local macros for 16,32-bit to 64-bit conversion */ #define ACPI_COPY_FIELD(Out, In, Field) ((Out)->Field = (In)->Field) #define ACPI_COPY_ADDRESS(Out, In) \ ACPI_COPY_FIELD(Out, In, ResourceType); \ ACPI_COPY_FIELD(Out, In, ProducerConsumer); \ ACPI_COPY_FIELD(Out, In, Decode); \ ACPI_COPY_FIELD(Out, In, MinAddressFixed); \ ACPI_COPY_FIELD(Out, In, MaxAddressFixed); \ ACPI_COPY_FIELD(Out, In, Info); \ ACPI_COPY_FIELD(Out, In, Address.Granularity); \ ACPI_COPY_FIELD(Out, In, Address.Minimum); \ ACPI_COPY_FIELD(Out, In, Address.Maximum); \ ACPI_COPY_FIELD(Out, In, Address.TranslationOffset); \ ACPI_COPY_FIELD(Out, In, Address.AddressLength); \ ACPI_COPY_FIELD(Out, In, ResourceSource); /* Local prototypes */ static ACPI_STATUS AcpiRsMatchVendorResource ( ACPI_RESOURCE *Resource, void *Context); static ACPI_STATUS AcpiRsValidateParameters ( ACPI_HANDLE DeviceHandle, ACPI_BUFFER *Buffer, ACPI_NAMESPACE_NODE **ReturnNode); /******************************************************************************* * * FUNCTION: AcpiRsValidateParameters * * PARAMETERS: DeviceHandle - Handle to a device * Buffer - Pointer to a data buffer * ReturnNode - Pointer to where the device node is returned * * RETURN: Status * * DESCRIPTION: Common parameter validation for resource interfaces * ******************************************************************************/ static ACPI_STATUS AcpiRsValidateParameters ( ACPI_HANDLE DeviceHandle, ACPI_BUFFER *Buffer, ACPI_NAMESPACE_NODE **ReturnNode) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (RsValidateParameters); /* * Must have a valid handle to an ACPI device */ if (!DeviceHandle) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Node = AcpiNsValidateHandle (DeviceHandle); if (!Node) { return_ACPI_STATUS (AE_BAD_PARAMETER); } if (Node->Type != ACPI_TYPE_DEVICE) { return_ACPI_STATUS (AE_TYPE); } /* * Validate the user buffer object * * if there is a non-zero buffer length we also need a valid pointer in * the buffer. If it's a zero buffer length, we'll be returning the * needed buffer size (later), so keep going. */ Status = AcpiUtValidateBuffer (Buffer); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } *ReturnNode = Node; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiGetIrqRoutingTable * * PARAMETERS: DeviceHandle - Handle to the Bus device we are querying * RetBuffer - Pointer to a buffer to receive the * current resources for the device * * RETURN: Status * * DESCRIPTION: This function is called to get the IRQ routing table for a * specific bus. The caller must first acquire a handle for the * desired bus. The routine table is placed in the buffer pointed * to by the RetBuffer variable parameter. * * If the function fails an appropriate status will be returned * and the value of RetBuffer is undefined. * * This function attempts to execute the _PRT method contained in * the object indicated by the passed DeviceHandle. * ******************************************************************************/ ACPI_STATUS AcpiGetIrqRoutingTable ( ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (AcpiGetIrqRoutingTable); /* Validate parameters then dispatch to internal routine */ Status = AcpiRsValidateParameters (DeviceHandle, RetBuffer, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiRsGetPrtMethodData (Node, RetBuffer); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetIrqRoutingTable) /******************************************************************************* * * FUNCTION: AcpiGetCurrentResources * * PARAMETERS: DeviceHandle - Handle to the device object for the * device we are querying * RetBuffer - Pointer to a buffer to receive the * current resources for the device * * RETURN: Status * * DESCRIPTION: This function is called to get the current resources for a * specific device. The caller must first acquire a handle for * the desired device. The resource data is placed in the buffer * pointed to by the RetBuffer variable parameter. * * If the function fails an appropriate status will be returned * and the value of RetBuffer is undefined. * * This function attempts to execute the _CRS method contained in * the object indicated by the passed DeviceHandle. * ******************************************************************************/ ACPI_STATUS AcpiGetCurrentResources ( ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (AcpiGetCurrentResources); /* Validate parameters then dispatch to internal routine */ Status = AcpiRsValidateParameters (DeviceHandle, RetBuffer, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiRsGetCrsMethodData (Node, RetBuffer); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetCurrentResources) /******************************************************************************* * * FUNCTION: AcpiGetPossibleResources * * PARAMETERS: DeviceHandle - Handle to the device object for the * device we are querying * RetBuffer - Pointer to a buffer to receive the * resources for the device * * RETURN: Status * * DESCRIPTION: This function is called to get a list of the possible resources * for a specific device. The caller must first acquire a handle * for the desired device. The resource data is placed in the * buffer pointed to by the RetBuffer variable. * * If the function fails an appropriate status will be returned * and the value of RetBuffer is undefined. * ******************************************************************************/ ACPI_STATUS AcpiGetPossibleResources ( ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (AcpiGetPossibleResources); /* Validate parameters then dispatch to internal routine */ Status = AcpiRsValidateParameters (DeviceHandle, RetBuffer, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiRsGetPrsMethodData (Node, RetBuffer); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetPossibleResources) /******************************************************************************* * * FUNCTION: AcpiSetCurrentResources * * PARAMETERS: DeviceHandle - Handle to the device object for the * device we are setting resources * InBuffer - Pointer to a buffer containing the * resources to be set for the device * * RETURN: Status * * DESCRIPTION: This function is called to set the current resources for a * specific device. The caller must first acquire a handle for * the desired device. The resource data is passed to the routine * the buffer pointed to by the InBuffer variable. * ******************************************************************************/ ACPI_STATUS AcpiSetCurrentResources ( ACPI_HANDLE DeviceHandle, ACPI_BUFFER *InBuffer) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (AcpiSetCurrentResources); /* Validate the buffer, don't allow zero length */ if ((!InBuffer) || (!InBuffer->Pointer) || (!InBuffer->Length)) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Validate parameters then dispatch to internal routine */ Status = AcpiRsValidateParameters (DeviceHandle, InBuffer, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiRsSetSrsMethodData (Node, InBuffer); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiSetCurrentResources) /******************************************************************************* * * FUNCTION: AcpiGetEventResources * * PARAMETERS: DeviceHandle - Handle to the device object for the * device we are getting resources * InBuffer - Pointer to a buffer containing the * resources to be set for the device * * RETURN: Status * * DESCRIPTION: This function is called to get the event resources for a * specific device. The caller must first acquire a handle for * the desired device. The resource data is passed to the routine * the buffer pointed to by the InBuffer variable. Uses the * _AEI method. * ******************************************************************************/ ACPI_STATUS AcpiGetEventResources ( ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (AcpiGetEventResources); /* Validate parameters then dispatch to internal routine */ Status = AcpiRsValidateParameters (DeviceHandle, RetBuffer, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiRsGetAeiMethodData (Node, RetBuffer); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetEventResources) /****************************************************************************** * * FUNCTION: AcpiResourceToAddress64 * * PARAMETERS: Resource - Pointer to a resource * Out - Pointer to the users's return buffer * (a struct acpi_resource_address64) * * RETURN: Status * * DESCRIPTION: If the resource is an address16, address32, or address64, * copy it to the address64 return buffer. This saves the * caller from having to duplicate code for different-sized * addresses. * ******************************************************************************/ ACPI_STATUS AcpiResourceToAddress64 ( ACPI_RESOURCE *Resource, ACPI_RESOURCE_ADDRESS64 *Out) { ACPI_RESOURCE_ADDRESS16 *Address16; ACPI_RESOURCE_ADDRESS32 *Address32; if (!Resource || !Out) { return (AE_BAD_PARAMETER); } /* Convert 16 or 32 address descriptor to 64 */ switch (Resource->Type) { case ACPI_RESOURCE_TYPE_ADDRESS16: Address16 = ACPI_CAST_PTR ( ACPI_RESOURCE_ADDRESS16, &Resource->Data); ACPI_COPY_ADDRESS (Out, Address16); break; case ACPI_RESOURCE_TYPE_ADDRESS32: Address32 = ACPI_CAST_PTR ( ACPI_RESOURCE_ADDRESS32, &Resource->Data); ACPI_COPY_ADDRESS (Out, Address32); break; case ACPI_RESOURCE_TYPE_ADDRESS64: /* Simple copy for 64 bit source */ memcpy (Out, &Resource->Data, sizeof (ACPI_RESOURCE_ADDRESS64)); break; default: return (AE_BAD_PARAMETER); } return (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiResourceToAddress64) /******************************************************************************* * * FUNCTION: AcpiGetVendorResource * * PARAMETERS: DeviceHandle - Handle for the parent device object * Name - Method name for the parent resource * (METHOD_NAME__CRS or METHOD_NAME__PRS) * Uuid - Pointer to the UUID to be matched. * includes both subtype and 16-byte UUID * RetBuffer - Where the vendor resource is returned * * RETURN: Status * * DESCRIPTION: Walk a resource template for the specified device to find a * vendor-defined resource that matches the supplied UUID and * UUID subtype. Returns a ACPI_RESOURCE of type Vendor. * ******************************************************************************/ ACPI_STATUS AcpiGetVendorResource ( ACPI_HANDLE DeviceHandle, char *Name, ACPI_VENDOR_UUID *Uuid, ACPI_BUFFER *RetBuffer) { ACPI_VENDOR_WALK_INFO Info; ACPI_STATUS Status; /* Other parameters are validated by AcpiWalkResources */ if (!Uuid || !RetBuffer) { return (AE_BAD_PARAMETER); } Info.Uuid = Uuid; Info.Buffer = RetBuffer; Info.Status = AE_NOT_EXIST; /* Walk the _CRS or _PRS resource list for this device */ Status = AcpiWalkResources ( DeviceHandle, Name, AcpiRsMatchVendorResource, &Info); if (ACPI_FAILURE (Status)) { return (Status); } return (Info.Status); } ACPI_EXPORT_SYMBOL (AcpiGetVendorResource) /******************************************************************************* * * FUNCTION: AcpiRsMatchVendorResource * * PARAMETERS: ACPI_WALK_RESOURCE_CALLBACK * * RETURN: Status * * DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID * ******************************************************************************/ static ACPI_STATUS AcpiRsMatchVendorResource ( ACPI_RESOURCE *Resource, void *Context) { ACPI_VENDOR_WALK_INFO *Info = Context; ACPI_RESOURCE_VENDOR_TYPED *Vendor; ACPI_BUFFER *Buffer; ACPI_STATUS Status; /* Ignore all descriptors except Vendor */ if (Resource->Type != ACPI_RESOURCE_TYPE_VENDOR) { return (AE_OK); } Vendor = &Resource->Data.VendorTyped; /* * For a valid match, these conditions must hold: * * 1) Length of descriptor data must be at least as long as a UUID struct * 2) The UUID subtypes must match * 3) The UUID data must match */ if ((Vendor->ByteLength < (ACPI_UUID_LENGTH + 1)) || (Vendor->UuidSubtype != Info->Uuid->Subtype) || (memcmp (Vendor->Uuid, Info->Uuid->Data, ACPI_UUID_LENGTH))) { return (AE_OK); } /* Validate/Allocate/Clear caller buffer */ Buffer = Info->Buffer; Status = AcpiUtInitializeBuffer (Buffer, Resource->Length); if (ACPI_FAILURE (Status)) { return (Status); } /* Found the correct resource, copy and return it */ memcpy (Buffer->Pointer, Resource, Resource->Length); Buffer->Length = Resource->Length; /* Found the desired descriptor, terminate resource walk */ Info->Status = AE_OK; return (AE_CTRL_TERMINATE); } /******************************************************************************* * * FUNCTION: AcpiWalkResourceBuffer * * PARAMETERS: Buffer - Formatted buffer returned by one of the * various Get*Resource functions * UserFunction - Called for each resource * Context - Passed to UserFunction * * RETURN: Status * * DESCRIPTION: Walks the input resource template. The UserFunction is called * once for each resource in the list. * ******************************************************************************/ ACPI_STATUS AcpiWalkResourceBuffer ( ACPI_BUFFER *Buffer, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context) { ACPI_STATUS Status = AE_OK; ACPI_RESOURCE *Resource; ACPI_RESOURCE *ResourceEnd; ACPI_FUNCTION_TRACE (AcpiWalkResourceBuffer); /* Parameter validation */ if (!Buffer || !Buffer->Pointer || !UserFunction) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Buffer contains the resource list and length */ Resource = ACPI_CAST_PTR (ACPI_RESOURCE, Buffer->Pointer); ResourceEnd = ACPI_ADD_PTR ( ACPI_RESOURCE, Buffer->Pointer, Buffer->Length); /* Walk the resource list until the EndTag is found (or buffer end) */ while (Resource < ResourceEnd) { /* Sanity check the resource type */ if (Resource->Type > ACPI_RESOURCE_TYPE_MAX) { Status = AE_AML_INVALID_RESOURCE_TYPE; break; } /* Sanity check the length. It must not be zero, or we loop forever */ if (!Resource->Length) { return_ACPI_STATUS (AE_AML_BAD_RESOURCE_LENGTH); } /* Invoke the user function, abort on any error returned */ Status = UserFunction (Resource, Context); if (ACPI_FAILURE (Status)) { if (Status == AE_CTRL_TERMINATE) { /* This is an OK termination by the user function */ Status = AE_OK; } break; } /* EndTag indicates end-of-list */ if (Resource->Type == ACPI_RESOURCE_TYPE_END_TAG) { break; } /* Get the next resource descriptor */ Resource = ACPI_NEXT_RESOURCE (Resource); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiWalkResourceBuffer) /******************************************************************************* * * FUNCTION: AcpiWalkResources * * PARAMETERS: DeviceHandle - Handle to the device object for the * device we are querying * Name - Method name of the resources we want. * (METHOD_NAME__CRS, METHOD_NAME__PRS, or * METHOD_NAME__AEI or METHOD_NAME__DMA) * UserFunction - Called for each resource * Context - Passed to UserFunction * * RETURN: Status * * DESCRIPTION: Retrieves the current or possible resource list for the * specified device. The UserFunction is called once for * each resource in the list. * ******************************************************************************/ ACPI_STATUS AcpiWalkResources ( ACPI_HANDLE DeviceHandle, char *Name, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context) { ACPI_STATUS Status; ACPI_BUFFER Buffer; ACPI_FUNCTION_TRACE (AcpiWalkResources); /* Parameter validation */ if (!DeviceHandle || !UserFunction || !Name || (!ACPI_COMPARE_NAMESEG (Name, METHOD_NAME__CRS) && !ACPI_COMPARE_NAMESEG (Name, METHOD_NAME__PRS) && !ACPI_COMPARE_NAMESEG (Name, METHOD_NAME__AEI) && !ACPI_COMPARE_NAMESEG (Name, METHOD_NAME__DMA))) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Get the _CRS/_PRS/_AEI/_DMA resource list */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiRsGetMethodData (DeviceHandle, Name, &Buffer); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Walk the resource list and cleanup */ Status = AcpiWalkResourceBuffer (&Buffer, UserFunction, Context); ACPI_FREE (Buffer.Pointer); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiWalkResources) acpica-unix-20250404/source/components/debugger/0000775000175000017500000000000014773714132021007 5ustar ivanhuivanhuacpica-unix-20250404/source/components/debugger/dbcmds.c0000775000175000017500000011215014773714132022412 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbcmds - Miscellaneous debug commands and output routines * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acdebug.h" #include "acnamesp.h" #include "acresrc.h" #include "actables.h" #include "limits.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbcmds") /* Local prototypes */ static void AcpiDmCompareAmlResources ( UINT8 *Aml1Buffer, ACPI_RSDESC_SIZE Aml1BufferLength, UINT8 *Aml2Buffer, ACPI_RSDESC_SIZE Aml2BufferLength); static ACPI_STATUS AcpiDmTestResourceConversion ( ACPI_NAMESPACE_NODE *Node, char *Name); static ACPI_STATUS AcpiDbResourceCallback ( ACPI_RESOURCE *Resource, void *Context); static ACPI_STATUS AcpiDbDeviceResources ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static void AcpiDbDoOneSleepState ( UINT8 SleepState); static char *AcpiDbTraceMethodName = NULL; /******************************************************************************* * * FUNCTION: AcpiDbConvertToNode * * PARAMETERS: InString - String to convert * * RETURN: Pointer to a NS node * * DESCRIPTION: Convert a string to a valid NS pointer. Handles numeric or * alphanumeric strings. * ******************************************************************************/ ACPI_NAMESPACE_NODE * AcpiDbConvertToNode ( char *InString) { ACPI_NAMESPACE_NODE *Node; ACPI_SIZE Address; if ((*InString >= 0x30) && (*InString <= 0x39)) { /* Numeric argument, convert */ Address = strtoul (InString, NULL, 16); Node = ACPI_TO_POINTER (Address); if (!AcpiOsReadable (Node, sizeof (ACPI_NAMESPACE_NODE))) { AcpiOsPrintf ("Address %p is invalid", Node); return (NULL); } /* Make sure pointer is valid NS node */ if (ACPI_GET_DESCRIPTOR_TYPE (Node) != ACPI_DESC_TYPE_NAMED) { AcpiOsPrintf ("Address %p is not a valid namespace node [%s]\n", Node, AcpiUtGetDescriptorName (Node)); return (NULL); } } else { /* * Alpha argument: The parameter is a name string that must be * resolved to a Namespace object. */ Node = AcpiDbLocalNsLookup (InString); if (!Node) { AcpiOsPrintf ( "Could not find [%s] in namespace, defaulting to root node\n", InString); Node = AcpiGbl_RootNode; } } return (Node); } /******************************************************************************* * * FUNCTION: AcpiDbSleep * * PARAMETERS: ObjectArg - Desired sleep state (0-5). NULL means * invoke all possible sleep states. * * RETURN: Status * * DESCRIPTION: Simulate sleep/wake sequences * ******************************************************************************/ ACPI_STATUS AcpiDbSleep ( char *ObjectArg) { UINT8 SleepState; UINT32 i; ACPI_FUNCTION_TRACE (AcpiDbSleep); /* Null input (no arguments) means to invoke all sleep states */ if (!ObjectArg) { AcpiOsPrintf ("Invoking all possible sleep states, 0-%d\n", ACPI_S_STATES_MAX); for (i = 0; i <= ACPI_S_STATES_MAX; i++) { AcpiDbDoOneSleepState ((UINT8) i); } return_ACPI_STATUS (AE_OK); } /* Convert argument to binary and invoke the sleep state */ SleepState = (UINT8) strtoul (ObjectArg, NULL, 0); AcpiDbDoOneSleepState (SleepState); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbDoOneSleepState * * PARAMETERS: SleepState - Desired sleep state (0-5) * * RETURN: None * * DESCRIPTION: Simulate a sleep/wake sequence * ******************************************************************************/ static void AcpiDbDoOneSleepState ( UINT8 SleepState) { ACPI_STATUS Status; UINT8 SleepTypeA; UINT8 SleepTypeB; /* Validate parameter */ if (SleepState > ACPI_S_STATES_MAX) { AcpiOsPrintf ("Sleep state %d out of range (%d max)\n", SleepState, ACPI_S_STATES_MAX); return; } AcpiOsPrintf ("\n---- Invoking sleep state S%d (%s):\n", SleepState, AcpiGbl_SleepStateNames[SleepState]); /* Get the values for the sleep type registers (for display only) */ Status = AcpiGetSleepTypeData (SleepState, &SleepTypeA, &SleepTypeB); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not evaluate [%s] method, %s\n", AcpiGbl_SleepStateNames[SleepState], AcpiFormatException (Status)); return; } AcpiOsPrintf ( "Register values for sleep state S%d: Sleep-A: %.2X, Sleep-B: %.2X\n", SleepState, SleepTypeA, SleepTypeB); /* Invoke the various sleep/wake interfaces */ AcpiOsPrintf ("**** Sleep: Prepare to sleep (S%d) ****\n", SleepState); Status = AcpiEnterSleepStatePrep (SleepState); if (ACPI_FAILURE (Status)) { goto ErrorExit; } AcpiOsPrintf ("**** Sleep: Going to sleep (S%d) ****\n", SleepState); Status = AcpiEnterSleepState (SleepState); if (ACPI_FAILURE (Status)) { goto ErrorExit; } AcpiOsPrintf ("**** Wake: Prepare to return from sleep (S%d) ****\n", SleepState); Status = AcpiLeaveSleepStatePrep (SleepState); if (ACPI_FAILURE (Status)) { goto ErrorExit; } AcpiOsPrintf ("**** Wake: Return from sleep (S%d) ****\n", SleepState); Status = AcpiLeaveSleepState (SleepState); if (ACPI_FAILURE (Status)) { goto ErrorExit; } return; ErrorExit: ACPI_EXCEPTION ((AE_INFO, Status, "During invocation of sleep state S%d", SleepState)); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayLocks * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display information about internal mutexes. * ******************************************************************************/ void AcpiDbDisplayLocks ( void) { UINT32 i; for (i = 0; i < ACPI_MAX_MUTEX; i++) { AcpiOsPrintf ("%26s : %s\n", AcpiUtGetMutexName (i), AcpiGbl_MutexInfo[i].ThreadId == ACPI_MUTEX_NOT_ACQUIRED ? "Locked" : "Unlocked"); } } /******************************************************************************* * * FUNCTION: AcpiDbDisplayTableInfo * * PARAMETERS: TableArg - Name of table to be displayed * * RETURN: None * * DESCRIPTION: Display information about loaded tables. Current * implementation displays all loaded tables. * ******************************************************************************/ void AcpiDbDisplayTableInfo ( char *TableArg) { UINT32 i; ACPI_TABLE_DESC *TableDesc; ACPI_STATUS Status; /* Header */ AcpiOsPrintf ("Idx ID Status Type " "TableHeader (Sig, Address, Length, Misc)\n"); /* Walk the entire root table list */ for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) { TableDesc = &AcpiGbl_RootTableList.Tables[i]; /* Index and Table ID */ AcpiOsPrintf ("%3u %.2u ", i, TableDesc->OwnerId); /* Decode the table flags */ if (!(TableDesc->Flags & ACPI_TABLE_IS_LOADED)) { AcpiOsPrintf ("NotLoaded "); } else { AcpiOsPrintf (" Loaded "); } switch (TableDesc->Flags & ACPI_TABLE_ORIGIN_MASK) { case ACPI_TABLE_ORIGIN_EXTERNAL_VIRTUAL: AcpiOsPrintf ("External/virtual "); break; case ACPI_TABLE_ORIGIN_INTERNAL_PHYSICAL: AcpiOsPrintf ("Internal/physical "); break; case ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL: AcpiOsPrintf ("Internal/virtual "); break; default: AcpiOsPrintf ("INVALID TYPE "); break; } /* Make sure that the table is mapped */ Status = AcpiTbValidateTable (TableDesc); if (ACPI_FAILURE (Status)) { return; } /* Dump the table header */ if (TableDesc->Pointer) { AcpiTbPrintTableHeader (TableDesc->Address, TableDesc->Pointer); } else { /* If the pointer is null, the table has been unloaded */ ACPI_INFO (("%4.4s - Table has been unloaded", TableDesc->Signature.Ascii)); } } } /******************************************************************************* * * FUNCTION: AcpiDbUnloadAcpiTable * * PARAMETERS: ObjectName - Namespace pathname for an object that * is owned by the table to be unloaded * * RETURN: None * * DESCRIPTION: Unload an ACPI table, via any namespace node that is owned * by the table. * ******************************************************************************/ void AcpiDbUnloadAcpiTable ( char *ObjectName) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; /* Translate name to an Named object */ Node = AcpiDbConvertToNode (ObjectName); if (!Node) { return; } Status = AcpiUnloadParentTable (ACPI_CAST_PTR (ACPI_HANDLE, Node)); if (ACPI_SUCCESS (Status)) { AcpiOsPrintf ("Parent of [%s] (%p) unloaded and uninstalled\n", ObjectName, Node); } else { AcpiOsPrintf ("%s, while unloading parent table of [%s]\n", AcpiFormatException (Status), ObjectName); } } /******************************************************************************* * * FUNCTION: AcpiDbSendNotify * * PARAMETERS: Name - Name of ACPI object where to send notify * Value - Value of the notify to send. * * RETURN: None * * DESCRIPTION: Send an ACPI notification. The value specified is sent to the * named object as an ACPI notify. * ******************************************************************************/ void AcpiDbSendNotify ( char *Name, UINT32 Value) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; /* Translate name to an Named object */ Node = AcpiDbConvertToNode (Name); if (!Node) { return; } /* Dispatch the notify if legal */ if (AcpiEvIsNotifyObject (Node)) { Status = AcpiEvQueueNotifyRequest (Node, Value); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not queue notify\n"); } } else { AcpiOsPrintf ( "Named object [%4.4s] Type %s, " "must be Device/Thermal/Processor type\n", AcpiUtGetNodeName (Node), AcpiUtGetTypeName (Node->Type)); } } /******************************************************************************* * * FUNCTION: AcpiDbDisplayInterfaces * * PARAMETERS: ActionArg - Null, "install", or "remove" * InterfaceNameArg - Name for install/remove options * * RETURN: None * * DESCRIPTION: Display or modify the global _OSI interface list * ******************************************************************************/ void AcpiDbDisplayInterfaces ( char *ActionArg, char *InterfaceNameArg) { ACPI_INTERFACE_INFO *NextInterface; char *SubString; ACPI_STATUS Status; /* If no arguments, just display current interface list */ if (!ActionArg) { (void) AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER); NextInterface = AcpiGbl_SupportedInterfaces; while (NextInterface) { if (!(NextInterface->Flags & ACPI_OSI_INVALID)) { AcpiOsPrintf ("%s\n", NextInterface->Name); } NextInterface = NextInterface->Next; } AcpiOsReleaseMutex (AcpiGbl_OsiMutex); return; } /* If ActionArg exists, so must InterfaceNameArg */ if (!InterfaceNameArg) { AcpiOsPrintf ("Missing Interface Name argument\n"); return; } /* Uppercase the action for match below */ AcpiUtStrupr (ActionArg); /* Install - install an interface */ SubString = strstr ("INSTALL", ActionArg); if (SubString) { Status = AcpiInstallInterface (InterfaceNameArg); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("%s, while installing \"%s\"\n", AcpiFormatException (Status), InterfaceNameArg); } return; } /* Remove - remove an interface */ SubString = strstr ("REMOVE", ActionArg); if (SubString) { Status = AcpiRemoveInterface (InterfaceNameArg); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("%s, while removing \"%s\"\n", AcpiFormatException (Status), InterfaceNameArg); } return; } /* Invalid ActionArg */ AcpiOsPrintf ("Invalid action argument: %s\n", ActionArg); return; } /******************************************************************************* * * FUNCTION: AcpiDbDisplayTemplate * * PARAMETERS: BufferArg - Buffer name or address * * RETURN: None * * DESCRIPTION: Dump a buffer that contains a resource template * ******************************************************************************/ void AcpiDbDisplayTemplate ( char *BufferArg) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_BUFFER ReturnBuffer; /* Translate BufferArg to an Named object */ Node = AcpiDbConvertToNode (BufferArg); if (!Node || (Node == AcpiGbl_RootNode)) { AcpiOsPrintf ("Invalid argument: %s\n", BufferArg); return; } /* We must have a buffer object */ if (Node->Type != ACPI_TYPE_BUFFER) { AcpiOsPrintf ("Not a Buffer object, cannot be a template: %s\n", BufferArg); return; } ReturnBuffer.Length = ACPI_DEBUG_BUFFER_SIZE; ReturnBuffer.Pointer = AcpiGbl_DbBuffer; /* Attempt to convert the raw buffer to a resource list */ Status = AcpiRsCreateResourceList (Node->Object, &ReturnBuffer); AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT); AcpiDbgLevel |= ACPI_LV_RESOURCES; if (ACPI_FAILURE (Status)) { AcpiOsPrintf ( "Could not convert Buffer to a resource list: %s, %s\n", BufferArg, AcpiFormatException (Status)); goto DumpBuffer; } /* Now we can dump the resource list */ AcpiRsDumpResourceList (ACPI_CAST_PTR (ACPI_RESOURCE, ReturnBuffer.Pointer)); DumpBuffer: AcpiOsPrintf ("\nRaw data buffer:\n"); AcpiUtDebugDumpBuffer ((UINT8 *) Node->Object->Buffer.Pointer, Node->Object->Buffer.Length, DB_BYTE_DISPLAY, ACPI_UINT32_MAX); AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); return; } /******************************************************************************* * * FUNCTION: AcpiDmCompareAmlResources * * PARAMETERS: Aml1Buffer - Contains first resource list * Aml1BufferLength - Length of first resource list * Aml2Buffer - Contains second resource list * Aml2BufferLength - Length of second resource list * * RETURN: None * * DESCRIPTION: Compare two AML resource lists, descriptor by descriptor (in * order to isolate a miscompare to an individual resource) * ******************************************************************************/ static void AcpiDmCompareAmlResources ( UINT8 *Aml1Buffer, ACPI_RSDESC_SIZE Aml1BufferLength, UINT8 *Aml2Buffer, ACPI_RSDESC_SIZE Aml2BufferLength) { UINT8 *Aml1; UINT8 *Aml2; UINT8 *Aml1End; UINT8 *Aml2End; ACPI_RSDESC_SIZE Aml1Length; ACPI_RSDESC_SIZE Aml2Length; ACPI_RSDESC_SIZE Offset = 0; UINT8 ResourceType; UINT32 Count = 0; UINT32 i; /* Compare overall buffer sizes (may be different due to size rounding) */ if (Aml1BufferLength != Aml2BufferLength) { AcpiOsPrintf ( "**** Buffer length mismatch in converted " "AML: Original %X, New %X ****\n", Aml1BufferLength, Aml2BufferLength); } Aml1 = Aml1Buffer; Aml2 = Aml2Buffer; Aml1End = Aml1Buffer + Aml1BufferLength; Aml2End = Aml2Buffer + Aml2BufferLength; /* Walk the descriptor lists, comparing each descriptor */ while ((Aml1 < Aml1End) && (Aml2 < Aml2End)) { /* Get the lengths of each descriptor */ Aml1Length = AcpiUtGetDescriptorLength (Aml1); Aml2Length = AcpiUtGetDescriptorLength (Aml2); ResourceType = AcpiUtGetResourceType (Aml1); /* Check for descriptor length match */ if (Aml1Length != Aml2Length) { AcpiOsPrintf ( "**** Length mismatch in descriptor [%.2X] type %2.2X, " "Offset %8.8X Len1 %X, Len2 %X ****\n", Count, ResourceType, Offset, Aml1Length, Aml2Length); } /* Check for descriptor byte match */ else if (memcmp (Aml1, Aml2, Aml1Length)) { AcpiOsPrintf ( "**** Data mismatch in descriptor [%.2X] type %2.2X, " "Offset %8.8X ****\n", Count, ResourceType, Offset); for (i = 0; i < Aml1Length; i++) { if (Aml1[i] != Aml2[i]) { AcpiOsPrintf ( "Mismatch at byte offset %.2X: is %2.2X, " "should be %2.2X\n", i, Aml2[i], Aml1[i]); } } } /* Exit on EndTag descriptor */ if (ResourceType == ACPI_RESOURCE_NAME_END_TAG) { return; } /* Point to next descriptor in each buffer */ Count++; Offset += Aml1Length; Aml1 += Aml1Length; Aml2 += Aml2Length; } } /******************************************************************************* * * FUNCTION: AcpiDmTestResourceConversion * * PARAMETERS: Node - Parent device node * Name - resource method name (_CRS) * * RETURN: Status * * DESCRIPTION: Compare the original AML with a conversion of the AML to * internal resource list, then back to AML. * ******************************************************************************/ static ACPI_STATUS AcpiDmTestResourceConversion ( ACPI_NAMESPACE_NODE *Node, char *Name) { ACPI_STATUS Status; ACPI_BUFFER ReturnBuffer; ACPI_BUFFER ResourceBuffer; ACPI_BUFFER NewAml; ACPI_OBJECT *OriginalAml; AcpiOsPrintf ("Resource Conversion Comparison:\n"); NewAml.Length = ACPI_ALLOCATE_LOCAL_BUFFER; ReturnBuffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; ResourceBuffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; /* Get the original _CRS AML resource template */ Status = AcpiEvaluateObject (Node, Name, NULL, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not obtain %s: %s\n", Name, AcpiFormatException (Status)); return (Status); } /* Get the AML resource template, converted to internal resource structs */ Status = AcpiGetCurrentResources (Node, &ResourceBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiGetCurrentResources failed: %s\n", AcpiFormatException (Status)); goto Exit1; } /* Convert internal resource list to external AML resource template */ Status = AcpiRsCreateAmlResources (&ResourceBuffer, &NewAml); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiRsCreateAmlResources failed: %s\n", AcpiFormatException (Status)); goto Exit2; } /* Compare original AML to the newly created AML resource list */ OriginalAml = ReturnBuffer.Pointer; AcpiDmCompareAmlResources (OriginalAml->Buffer.Pointer, (ACPI_RSDESC_SIZE) OriginalAml->Buffer.Length, NewAml.Pointer, (ACPI_RSDESC_SIZE) NewAml.Length); /* Cleanup and exit */ ACPI_FREE (NewAml.Pointer); Exit2: ACPI_FREE (ResourceBuffer.Pointer); Exit1: ACPI_FREE (ReturnBuffer.Pointer); return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbResourceCallback * * PARAMETERS: ACPI_WALK_RESOURCE_CALLBACK * * RETURN: Status * * DESCRIPTION: Simple callback to exercise AcpiWalkResources and * AcpiWalkResourceBuffer. * ******************************************************************************/ static ACPI_STATUS AcpiDbResourceCallback ( ACPI_RESOURCE *Resource, void *Context) { return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbDeviceResources * * PARAMETERS: ACPI_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Display the _PRT/_CRS/_PRS resources for a device object. * ******************************************************************************/ static ACPI_STATUS AcpiDbDeviceResources ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node; ACPI_NAMESPACE_NODE *PrtNode = NULL; ACPI_NAMESPACE_NODE *CrsNode = NULL; ACPI_NAMESPACE_NODE *PrsNode = NULL; ACPI_NAMESPACE_NODE *AeiNode = NULL; char *ParentPath; ACPI_BUFFER ReturnBuffer; ACPI_STATUS Status; Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); ParentPath = AcpiNsGetNormalizedPathname (Node, TRUE); if (!ParentPath) { return (AE_NO_MEMORY); } /* Get handles to the resource methods for this device */ (void) AcpiGetHandle (Node, METHOD_NAME__PRT, ACPI_CAST_PTR (ACPI_HANDLE, &PrtNode)); (void) AcpiGetHandle (Node, METHOD_NAME__CRS, ACPI_CAST_PTR (ACPI_HANDLE, &CrsNode)); (void) AcpiGetHandle (Node, METHOD_NAME__PRS, ACPI_CAST_PTR (ACPI_HANDLE, &PrsNode)); (void) AcpiGetHandle (Node, METHOD_NAME__AEI, ACPI_CAST_PTR (ACPI_HANDLE, &AeiNode)); if (!PrtNode && !CrsNode && !PrsNode && !AeiNode) { goto Cleanup; /* Nothing to do */ } AcpiOsPrintf ("\nDevice: %s\n", ParentPath); /* Prepare for a return object of arbitrary size */ ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ReturnBuffer.Length = ACPI_DEBUG_BUFFER_SIZE; /* _PRT */ if (PrtNode) { AcpiOsPrintf ("Evaluating _PRT\n"); Status = AcpiEvaluateObject (PrtNode, NULL, NULL, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not evaluate _PRT: %s\n", AcpiFormatException (Status)); goto GetCrs; } ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ReturnBuffer.Length = ACPI_DEBUG_BUFFER_SIZE; Status = AcpiGetIrqRoutingTable (Node, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("GetIrqRoutingTable failed: %s\n", AcpiFormatException (Status)); goto GetCrs; } AcpiRsDumpIrqList (ACPI_CAST_PTR (UINT8, AcpiGbl_DbBuffer)); } /* _CRS */ GetCrs: if (CrsNode) { AcpiOsPrintf ("Evaluating _CRS\n"); ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ReturnBuffer.Length = ACPI_DEBUG_BUFFER_SIZE; Status = AcpiEvaluateObject (CrsNode, NULL, NULL, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not evaluate _CRS: %s\n", AcpiFormatException (Status)); goto GetPrs; } /* This code exercises the AcpiWalkResources interface */ Status = AcpiWalkResources (Node, METHOD_NAME__CRS, AcpiDbResourceCallback, NULL); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiWalkResources failed: %s\n", AcpiFormatException (Status)); goto GetPrs; } /* Get the _CRS resource list (test ALLOCATE buffer) */ ReturnBuffer.Pointer = NULL; ReturnBuffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiGetCurrentResources (Node, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiGetCurrentResources failed: %s\n", AcpiFormatException (Status)); goto GetPrs; } /* This code exercises the AcpiWalkResourceBuffer interface */ Status = AcpiWalkResourceBuffer (&ReturnBuffer, AcpiDbResourceCallback, NULL); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiWalkResourceBuffer failed: %s\n", AcpiFormatException (Status)); goto EndCrs; } /* Dump the _CRS resource list */ AcpiRsDumpResourceList (ACPI_CAST_PTR (ACPI_RESOURCE, ReturnBuffer.Pointer)); /* * Perform comparison of original AML to newly created AML. This * tests both the AML->Resource conversion and the Resource->AML * conversion. */ (void) AcpiDmTestResourceConversion (Node, METHOD_NAME__CRS); /* Execute _SRS with the resource list */ AcpiOsPrintf ("Evaluating _SRS\n"); Status = AcpiSetCurrentResources (Node, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiSetCurrentResources failed: %s\n", AcpiFormatException (Status)); goto EndCrs; } EndCrs: ACPI_FREE (ReturnBuffer.Pointer); } /* _PRS */ GetPrs: if (PrsNode) { AcpiOsPrintf ("Evaluating _PRS\n"); ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ReturnBuffer.Length = ACPI_DEBUG_BUFFER_SIZE; Status = AcpiEvaluateObject (PrsNode, NULL, NULL, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not evaluate _PRS: %s\n", AcpiFormatException (Status)); goto GetAei; } ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ReturnBuffer.Length = ACPI_DEBUG_BUFFER_SIZE; Status = AcpiGetPossibleResources (Node, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiGetPossibleResources failed: %s\n", AcpiFormatException (Status)); goto GetAei; } AcpiRsDumpResourceList (ACPI_CAST_PTR ( ACPI_RESOURCE, AcpiGbl_DbBuffer)); } /* _AEI */ GetAei: if (AeiNode) { AcpiOsPrintf ("Evaluating _AEI\n"); ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ReturnBuffer.Length = ACPI_DEBUG_BUFFER_SIZE; Status = AcpiEvaluateObject (AeiNode, NULL, NULL, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not evaluate _AEI: %s\n", AcpiFormatException (Status)); goto Cleanup; } ReturnBuffer.Pointer = AcpiGbl_DbBuffer; ReturnBuffer.Length = ACPI_DEBUG_BUFFER_SIZE; Status = AcpiGetEventResources (Node, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiGetEventResources failed: %s\n", AcpiFormatException (Status)); goto Cleanup; } AcpiRsDumpResourceList (ACPI_CAST_PTR ( ACPI_RESOURCE, AcpiGbl_DbBuffer)); } Cleanup: ACPI_FREE (ParentPath); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayResources * * PARAMETERS: ObjectArg - String object name or object pointer. * NULL or "*" means "display resources for * all devices" * * RETURN: None * * DESCRIPTION: Display the resource objects associated with a device. * ******************************************************************************/ void AcpiDbDisplayResources ( char *ObjectArg) { ACPI_NAMESPACE_NODE *Node; AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT); AcpiDbgLevel |= ACPI_LV_RESOURCES; /* Asterisk means "display resources for all devices" */ if (!ObjectArg || (!strcmp (ObjectArg, "*"))) { (void) AcpiWalkNamespace (ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbDeviceResources, NULL, NULL, NULL); } else { /* Convert string to object pointer */ Node = AcpiDbConvertToNode (ObjectArg); if (Node) { if (Node->Type != ACPI_TYPE_DEVICE) { AcpiOsPrintf ( "%4.4s: Name is not a device object (%s)\n", Node->Name.Ascii, AcpiUtGetTypeName (Node->Type)); } else { (void) AcpiDbDeviceResources (Node, 0, NULL, NULL); } } } AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); } /******************************************************************************* * * FUNCTION: AcpiDbGenerateGed * * PARAMETERS: GedArg - Raw GED number, ascii string * * RETURN: None * * DESCRIPTION: Simulate firing of a GED * ******************************************************************************/ void AcpiDbGenerateInterrupt ( char *GsivArg) { UINT32 GsivNumber; ACPI_GED_HANDLER_INFO *GedInfo = AcpiGbl_GedHandlerList; if (!GedInfo) { AcpiOsPrintf ("No GED handling present\n"); } GsivNumber = strtoul (GsivArg, NULL, 0); while (GedInfo) { if (GedInfo->IntId == GsivNumber) { ACPI_OBJECT_LIST ArgList; ACPI_OBJECT Arg0; ACPI_HANDLE EvtHandle = GedInfo->EvtMethod; ACPI_STATUS Status; AcpiOsPrintf ("Evaluate GED _EVT (GSIV=%d)\n", GsivNumber); if (!EvtHandle) { AcpiOsPrintf ("Undefined _EVT method\n"); return; } Arg0.Integer.Type = ACPI_TYPE_INTEGER; Arg0.Integer.Value = GsivNumber; ArgList.Count = 1; ArgList.Pointer = &Arg0; Status = AcpiEvaluateObject (EvtHandle, NULL, &ArgList, NULL); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not evaluate _EVT\n"); return; } } GedInfo = GedInfo->Next; } } #if (!ACPI_REDUCED_HARDWARE) /******************************************************************************* * * FUNCTION: AcpiDbGenerateGpe * * PARAMETERS: GpeArg - Raw GPE number, ascii string * BlockArg - GPE block number, ascii string * 0 or 1 for FADT GPE blocks * * RETURN: None * * DESCRIPTION: Simulate firing of a GPE * ******************************************************************************/ void AcpiDbGenerateGpe ( char *GpeArg, char *BlockArg) { UINT32 BlockNumber = 0; UINT32 GpeNumber; ACPI_GPE_EVENT_INFO *GpeEventInfo; GpeNumber = strtoul (GpeArg, NULL, 0); /* * If no block arg, or block arg == 0 or 1, use the FADT-defined * GPE blocks. */ if (BlockArg) { BlockNumber = strtoul (BlockArg, NULL, 0); if (BlockNumber == 1) { BlockNumber = 0; } } GpeEventInfo = AcpiEvGetGpeEventInfo ( ACPI_TO_POINTER (BlockNumber), GpeNumber); if (!GpeEventInfo) { AcpiOsPrintf ("Invalid GPE\n"); return; } (void) AcpiEvGpeDispatch (NULL, GpeEventInfo, GpeNumber); } /******************************************************************************* * * FUNCTION: AcpiDbGenerateSci * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Simulate an SCI -- just call the SCI dispatch. * ******************************************************************************/ void AcpiDbGenerateSci ( void) { AcpiEvSciDispatch (); } #endif /* !ACPI_REDUCED_HARDWARE */ /******************************************************************************* * * FUNCTION: AcpiDbTrace * * PARAMETERS: EnableArg - ENABLE/AML to enable tracer * DISABLE to disable tracer * MethodArg - Method to trace * OnceArg - Whether trace once * * RETURN: None * * DESCRIPTION: Control method tracing facility * ******************************************************************************/ void AcpiDbTrace ( char *EnableArg, char *MethodArg, char *OnceArg) { UINT32 DebugLevel = 0; UINT32 DebugLayer = 0; UINT32 Flags = 0; AcpiUtStrupr (EnableArg); AcpiUtStrupr (OnceArg); if (MethodArg) { if (AcpiDbTraceMethodName) { ACPI_FREE (AcpiDbTraceMethodName); AcpiDbTraceMethodName = NULL; } AcpiDbTraceMethodName = ACPI_ALLOCATE (strlen (MethodArg) + 1); if (!AcpiDbTraceMethodName) { AcpiOsPrintf ("Failed to allocate method name (%s)\n", MethodArg); return; } strcpy (AcpiDbTraceMethodName, MethodArg); } if (!strcmp (EnableArg, "ENABLE") || !strcmp (EnableArg, "METHOD") || !strcmp (EnableArg, "OPCODE")) { if (!strcmp (EnableArg, "ENABLE")) { /* Inherit current console settings */ DebugLevel = AcpiGbl_DbConsoleDebugLevel; DebugLayer = AcpiDbgLayer; } else { /* Restrict console output to trace points only */ DebugLevel = ACPI_LV_TRACE_POINT; DebugLayer = ACPI_EXECUTER; } Flags = ACPI_TRACE_ENABLED; if (!strcmp (EnableArg, "OPCODE")) { Flags |= ACPI_TRACE_OPCODE; } if (OnceArg && !strcmp (OnceArg, "ONCE")) { Flags |= ACPI_TRACE_ONESHOT; } } (void) AcpiDebugTrace (AcpiDbTraceMethodName, DebugLevel, DebugLayer, Flags); } acpica-unix-20250404/source/components/debugger/dbstats.c0000775000175000017500000004173414773714132022633 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbstats - Generation and display of ACPI table statistics * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdebug.h" #include "acnamesp.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbstats") /* Local prototypes */ static void AcpiDbCountNamespaceObjects ( void); static void AcpiDbEnumerateObject ( ACPI_OPERAND_OBJECT *ObjDesc); static ACPI_STATUS AcpiDbClassifyOneObject ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); #if defined ACPI_DBG_TRACK_ALLOCATIONS || defined ACPI_USE_LOCAL_CACHE static void AcpiDbListInfo ( ACPI_MEMORY_LIST *List); #endif /* * Statistics subcommands */ static ACPI_DB_ARGUMENT_INFO AcpiDbStatTypes [] = { {"ALLOCATIONS"}, {"OBJECTS"}, {"MEMORY"}, {"MISC"}, {"TABLES"}, {"SIZES"}, {"STACK"}, {NULL} /* Must be null terminated */ }; #define CMD_STAT_ALLOCATIONS 0 #define CMD_STAT_OBJECTS 1 #define CMD_STAT_MEMORY 2 #define CMD_STAT_MISC 3 #define CMD_STAT_TABLES 4 #define CMD_STAT_SIZES 5 #define CMD_STAT_STACK 6 #if defined ACPI_DBG_TRACK_ALLOCATIONS || defined ACPI_USE_LOCAL_CACHE /******************************************************************************* * * FUNCTION: AcpiDbListInfo * * PARAMETERS: List - Memory list/cache to be displayed * * RETURN: None * * DESCRIPTION: Display information about the input memory list or cache. * ******************************************************************************/ static void AcpiDbListInfo ( ACPI_MEMORY_LIST *List) { #ifdef ACPI_DBG_TRACK_ALLOCATIONS UINT32 Outstanding; #endif AcpiOsPrintf ("\n%s\n", List->ListName); /* MaxDepth > 0 indicates a cache object */ if (List->MaxDepth > 0) { AcpiOsPrintf ( " Cache: [Depth MaxD Avail Size] " "%8.2X %8.2X %8.2X %8.2X\n", List->CurrentDepth, List->MaxDepth, List->MaxDepth - List->CurrentDepth, (List->CurrentDepth * List->ObjectSize)); } #ifdef ACPI_DBG_TRACK_ALLOCATIONS if (List->MaxDepth > 0) { AcpiOsPrintf ( " Cache: [Requests Hits Misses ObjSize] " "%8.2X %8.2X %8.2X %8.2X\n", List->Requests, List->Hits, List->Requests - List->Hits, List->ObjectSize); } Outstanding = AcpiDbGetCacheInfo (List); if (List->ObjectSize) { AcpiOsPrintf ( " Mem: [Alloc Free Max CurSize Outstanding] " "%8.2X %8.2X %8.2X %8.2X %8.2X\n", List->TotalAllocated, List->TotalFreed, List->MaxOccupied, Outstanding * List->ObjectSize, Outstanding); } else { AcpiOsPrintf ( " Mem: [Alloc Free Max CurSize Outstanding Total] " "%8.2X %8.2X %8.2X %8.2X %8.2X %8.2X\n", List->TotalAllocated, List->TotalFreed, List->MaxOccupied, List->CurrentTotalSize, Outstanding, List->TotalSize); } #endif } #endif /******************************************************************************* * * FUNCTION: AcpiDbEnumerateObject * * PARAMETERS: ObjDesc - Object to be counted * * RETURN: None * * DESCRIPTION: Add this object to the global counts, by object type. * Limited recursion handles subobjects and packages, and this * is probably acceptable within the AML debugger only. * ******************************************************************************/ static void AcpiDbEnumerateObject ( ACPI_OPERAND_OBJECT *ObjDesc) { UINT32 i; if (!ObjDesc) { return; } /* Enumerate this object first */ AcpiGbl_NumObjects++; if (ObjDesc->Common.Type > ACPI_TYPE_NS_NODE_MAX) { AcpiGbl_ObjTypeCountMisc++; } else { AcpiGbl_ObjTypeCount [ObjDesc->Common.Type]++; } /* Count the sub-objects */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_PACKAGE: for (i = 0; i < ObjDesc->Package.Count; i++) { AcpiDbEnumerateObject (ObjDesc->Package.Elements[i]); } break; case ACPI_TYPE_DEVICE: AcpiDbEnumerateObject (ObjDesc->Device.NotifyList[0]); AcpiDbEnumerateObject (ObjDesc->Device.NotifyList[1]); AcpiDbEnumerateObject (ObjDesc->Device.Handler); break; case ACPI_TYPE_BUFFER_FIELD: if (AcpiNsGetSecondaryObject (ObjDesc)) { AcpiGbl_ObjTypeCount [ACPI_TYPE_BUFFER_FIELD]++; } break; case ACPI_TYPE_REGION: AcpiGbl_ObjTypeCount [ACPI_TYPE_LOCAL_REGION_FIELD ]++; AcpiDbEnumerateObject (ObjDesc->Region.Handler); break; case ACPI_TYPE_POWER: AcpiDbEnumerateObject (ObjDesc->PowerResource.NotifyList[0]); AcpiDbEnumerateObject (ObjDesc->PowerResource.NotifyList[1]); break; case ACPI_TYPE_PROCESSOR: AcpiDbEnumerateObject (ObjDesc->Processor.NotifyList[0]); AcpiDbEnumerateObject (ObjDesc->Processor.NotifyList[1]); AcpiDbEnumerateObject (ObjDesc->Processor.Handler); break; case ACPI_TYPE_THERMAL: AcpiDbEnumerateObject (ObjDesc->ThermalZone.NotifyList[0]); AcpiDbEnumerateObject (ObjDesc->ThermalZone.NotifyList[1]); AcpiDbEnumerateObject (ObjDesc->ThermalZone.Handler); break; default: break; } } /******************************************************************************* * * FUNCTION: AcpiDbClassifyOneObject * * PARAMETERS: Callback for WalkNamespace * * RETURN: Status * * DESCRIPTION: Enumerate both the object descriptor (including subobjects) and * the parent namespace node. * ******************************************************************************/ static ACPI_STATUS AcpiDbClassifyOneObject ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *ObjDesc; UINT32 Type; AcpiGbl_NumNodes++; Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ObjDesc = AcpiNsGetAttachedObject (Node); AcpiDbEnumerateObject (ObjDesc); Type = Node->Type; if (Type > ACPI_TYPE_NS_NODE_MAX) { AcpiGbl_NodeTypeCountMisc++; } else { AcpiGbl_NodeTypeCount [Type]++; } return (AE_OK); #ifdef ACPI_FUTURE_IMPLEMENTATION /* TBD: These need to be counted during the initial parsing phase */ if (AcpiPsIsNamedOp (Op->Opcode)) { NumNodes++; } if (IsMethod) { NumMethodElements++; } NumGrammarElements++; Op = AcpiPsGetDepthNext (Root, Op); SizeOfParseTree = (NumGrammarElements - NumMethodElements) * (UINT32) sizeof (ACPI_PARSE_OBJECT); SizeOfMethodTrees = NumMethodElements * (UINT32) sizeof (ACPI_PARSE_OBJECT); SizeOfNodeEntries = NumNodes * (UINT32) sizeof (ACPI_NAMESPACE_NODE); SizeOfAcpiObjects = NumNodes * (UINT32) sizeof (ACPI_OPERAND_OBJECT); #endif } /******************************************************************************* * * FUNCTION: AcpiDbCountNamespaceObjects * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Count and classify the entire namespace, including all * namespace nodes and attached objects. * ******************************************************************************/ static void AcpiDbCountNamespaceObjects ( void) { UINT32 i; AcpiGbl_NumNodes = 0; AcpiGbl_NumObjects = 0; AcpiGbl_ObjTypeCountMisc = 0; for (i = 0; i < (ACPI_TYPE_NS_NODE_MAX -1); i++) { AcpiGbl_ObjTypeCount [i] = 0; AcpiGbl_NodeTypeCount [i] = 0; } (void) AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, FALSE, AcpiDbClassifyOneObject, NULL, NULL, NULL); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayStatistics * * PARAMETERS: TypeArg - Subcommand * * RETURN: Status * * DESCRIPTION: Display various statistics * ******************************************************************************/ ACPI_STATUS AcpiDbDisplayStatistics ( char *TypeArg) { UINT32 i; UINT32 Temp; AcpiUtStrupr (TypeArg); Temp = AcpiDbMatchArgument (TypeArg, AcpiDbStatTypes); if (Temp == ACPI_TYPE_NOT_FOUND) { AcpiOsPrintf ("Invalid or unsupported argument\n"); return (AE_OK); } switch (Temp) { case CMD_STAT_ALLOCATIONS: #ifdef ACPI_DBG_TRACK_ALLOCATIONS AcpiUtDumpAllocationInfo (); #endif break; case CMD_STAT_TABLES: AcpiOsPrintf ("ACPI Table Information (not implemented):\n\n"); break; case CMD_STAT_OBJECTS: AcpiDbCountNamespaceObjects (); AcpiOsPrintf ("\nObjects defined in the current namespace:\n\n"); AcpiOsPrintf ("%16.16s %10.10s %10.10s\n", "ACPI_TYPE", "NODES", "OBJECTS"); for (i = 0; i < ACPI_TYPE_NS_NODE_MAX; i++) { AcpiOsPrintf ("%16.16s %10u %10u\n", AcpiUtGetTypeName (i), AcpiGbl_NodeTypeCount [i], AcpiGbl_ObjTypeCount [i]); } AcpiOsPrintf ("%16.16s %10u %10u\n", "Misc/Unknown", AcpiGbl_NodeTypeCountMisc, AcpiGbl_ObjTypeCountMisc); AcpiOsPrintf ("%16.16s %10u %10u\n", "TOTALS:", AcpiGbl_NumNodes, AcpiGbl_NumObjects); break; case CMD_STAT_MEMORY: #ifdef ACPI_DBG_TRACK_ALLOCATIONS AcpiOsPrintf ("\n----Object Statistics (all in hex)---------\n"); AcpiDbListInfo (AcpiGbl_GlobalList); AcpiDbListInfo (AcpiGbl_NsNodeList); #endif #ifdef ACPI_USE_LOCAL_CACHE AcpiOsPrintf ("\n----Cache Statistics (all in hex)---------\n"); AcpiDbListInfo (AcpiGbl_OperandCache); AcpiDbListInfo (AcpiGbl_PsNodeCache); AcpiDbListInfo (AcpiGbl_PsNodeExtCache); AcpiDbListInfo (AcpiGbl_StateCache); #endif break; case CMD_STAT_MISC: AcpiOsPrintf ("\nMiscellaneous Statistics:\n\n"); AcpiOsPrintf ("%-28s: %7u\n", "Calls to AcpiPsFind", AcpiGbl_PsFindCount); AcpiOsPrintf ("%-28s: %7u\n", "Calls to AcpiNsLookup", AcpiGbl_NsLookupCount); AcpiOsPrintf ("\nMutex usage:\n\n"); for (i = 0; i < ACPI_NUM_MUTEX; i++) { AcpiOsPrintf ("%-28s: %7u\n", AcpiUtGetMutexName (i), AcpiGbl_MutexInfo[i].UseCount); } break; case CMD_STAT_SIZES: AcpiOsPrintf ("\nInternal object sizes:\n\n"); AcpiOsPrintf ("Common %3d\n", (UINT32) sizeof (ACPI_OBJECT_COMMON)); AcpiOsPrintf ("Number %3d\n", (UINT32) sizeof (ACPI_OBJECT_INTEGER)); AcpiOsPrintf ("String %3d\n", (UINT32) sizeof (ACPI_OBJECT_STRING)); AcpiOsPrintf ("Buffer %3d\n", (UINT32) sizeof (ACPI_OBJECT_BUFFER)); AcpiOsPrintf ("Package %3d\n", (UINT32) sizeof (ACPI_OBJECT_PACKAGE)); AcpiOsPrintf ("BufferField %3d\n", (UINT32) sizeof (ACPI_OBJECT_BUFFER_FIELD)); AcpiOsPrintf ("Device %3d\n", (UINT32) sizeof (ACPI_OBJECT_DEVICE)); AcpiOsPrintf ("Event %3d\n", (UINT32) sizeof (ACPI_OBJECT_EVENT)); AcpiOsPrintf ("Method %3d\n", (UINT32) sizeof (ACPI_OBJECT_METHOD)); AcpiOsPrintf ("Mutex %3d\n", (UINT32) sizeof (ACPI_OBJECT_MUTEX)); AcpiOsPrintf ("Region %3d\n", (UINT32) sizeof (ACPI_OBJECT_REGION)); AcpiOsPrintf ("PowerResource %3d\n", (UINT32) sizeof (ACPI_OBJECT_POWER_RESOURCE)); AcpiOsPrintf ("Processor %3d\n", (UINT32) sizeof (ACPI_OBJECT_PROCESSOR)); AcpiOsPrintf ("ThermalZone %3d\n", (UINT32) sizeof (ACPI_OBJECT_THERMAL_ZONE)); AcpiOsPrintf ("RegionField %3d\n", (UINT32) sizeof (ACPI_OBJECT_REGION_FIELD)); AcpiOsPrintf ("BankField %3d\n", (UINT32) sizeof (ACPI_OBJECT_BANK_FIELD)); AcpiOsPrintf ("IndexField %3d\n", (UINT32) sizeof (ACPI_OBJECT_INDEX_FIELD)); AcpiOsPrintf ("Reference %3d\n", (UINT32) sizeof (ACPI_OBJECT_REFERENCE)); AcpiOsPrintf ("Notify %3d\n", (UINT32) sizeof (ACPI_OBJECT_NOTIFY_HANDLER)); AcpiOsPrintf ("AddressSpace %3d\n", (UINT32) sizeof (ACPI_OBJECT_ADDR_HANDLER)); AcpiOsPrintf ("Extra %3d\n", (UINT32) sizeof (ACPI_OBJECT_EXTRA)); AcpiOsPrintf ("Data %3d\n", (UINT32) sizeof (ACPI_OBJECT_DATA)); AcpiOsPrintf ("\n"); AcpiOsPrintf ("ParseObject %3d\n", (UINT32) sizeof (ACPI_PARSE_OBJ_COMMON)); AcpiOsPrintf ("ParseObjectNamed %3d\n", (UINT32) sizeof (ACPI_PARSE_OBJ_NAMED)); AcpiOsPrintf ("ParseObjectAsl %3d\n", (UINT32) sizeof (ACPI_PARSE_OBJ_ASL)); AcpiOsPrintf ("OperandObject %3d\n", (UINT32) sizeof (ACPI_OPERAND_OBJECT)); AcpiOsPrintf ("NamespaceNode %3d\n", (UINT32) sizeof (ACPI_NAMESPACE_NODE)); AcpiOsPrintf ("AcpiObject %3d\n", (UINT32) sizeof (ACPI_OBJECT)); AcpiOsPrintf ("\n"); AcpiOsPrintf ("Generic State %3d\n", (UINT32) sizeof (ACPI_GENERIC_STATE)); AcpiOsPrintf ("Common State %3d\n", (UINT32) sizeof (ACPI_COMMON_STATE)); AcpiOsPrintf ("Control State %3d\n", (UINT32) sizeof (ACPI_CONTROL_STATE)); AcpiOsPrintf ("Update State %3d\n", (UINT32) sizeof (ACPI_UPDATE_STATE)); AcpiOsPrintf ("Scope State %3d\n", (UINT32) sizeof (ACPI_SCOPE_STATE)); AcpiOsPrintf ("Parse Scope %3d\n", (UINT32) sizeof (ACPI_PSCOPE_STATE)); AcpiOsPrintf ("Package State %3d\n", (UINT32) sizeof (ACPI_PKG_STATE)); AcpiOsPrintf ("Thread State %3d\n", (UINT32) sizeof (ACPI_THREAD_STATE)); AcpiOsPrintf ("Result Values %3d\n", (UINT32) sizeof (ACPI_RESULT_VALUES)); AcpiOsPrintf ("Notify Info %3d\n", (UINT32) sizeof (ACPI_NOTIFY_INFO)); break; case CMD_STAT_STACK: #if defined(ACPI_DEBUG_OUTPUT) Temp = (UINT32) ACPI_PTR_DIFF ( AcpiGbl_EntryStackPointer, AcpiGbl_LowestStackPointer); AcpiOsPrintf ("\nSubsystem Stack Usage:\n\n"); AcpiOsPrintf ("Entry Stack Pointer %p\n", AcpiGbl_EntryStackPointer); AcpiOsPrintf ("Lowest Stack Pointer %p\n", AcpiGbl_LowestStackPointer); AcpiOsPrintf ("Stack Use %X (%u)\n", Temp, Temp); AcpiOsPrintf ("Deepest Procedure Nesting %u\n", AcpiGbl_DeepestNesting); #endif break; default: break; } AcpiOsPrintf ("\n"); return (AE_OK); } acpica-unix-20250404/source/components/debugger/dbinput.c0000775000175000017500000010771314773714132022634 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbinput - user front-end to the AML debugger * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdebug.h" #ifdef ACPI_APPLICATION #include "acapps.h" #endif #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbinput") /* Local prototypes */ static UINT32 AcpiDbGetLine ( char *InputBuffer); static UINT32 AcpiDbMatchCommand ( char *UserCommand); static void AcpiDbDisplayCommandInfo ( const char *Command, BOOLEAN DisplayAll); static void AcpiDbDisplayHelp ( char *Command); static BOOLEAN AcpiDbMatchCommandHelp ( const char *Command, const ACPI_DB_COMMAND_HELP *Help); /* * Top-level debugger commands. * * This list of commands must match the string table below it */ enum AcpiExDebuggerCommands { CMD_NOT_FOUND = 0, CMD_NULL, CMD_ALL, CMD_ALLOCATIONS, CMD_ARGS, CMD_ARGUMENTS, CMD_BREAKPOINT, CMD_BUSINFO, CMD_CALL, CMD_DEBUG, CMD_DISASSEMBLE, CMD_DISASM, CMD_DUMP, CMD_EVALUATE, CMD_EXECUTE, CMD_EXIT, CMD_FIELDS, CMD_FIND, CMD_GO, CMD_HANDLERS, CMD_HELP, CMD_HELP2, CMD_HISTORY, CMD_HISTORY_EXE, CMD_HISTORY_LAST, CMD_INFORMATION, CMD_INTEGRITY, CMD_INTO, CMD_LEVEL, CMD_LIST, CMD_LOCALS, CMD_LOCKS, CMD_METHODS, CMD_NAMESPACE, CMD_NOTIFY, CMD_OBJECTS, CMD_OSI, CMD_OWNER, CMD_PATHS, CMD_PREDEFINED, CMD_PREFIX, CMD_QUIT, CMD_REFERENCES, CMD_RESOURCES, CMD_RESULTS, CMD_SET, CMD_STATS, CMD_STOP, CMD_TABLES, CMD_TEMPLATE, CMD_TRACE, CMD_TREE, CMD_TYPE, #ifdef ACPI_APPLICATION CMD_ENABLEACPI, CMD_EVENT, CMD_GPE, CMD_GPES, CMD_SCI, CMD_SLEEP, CMD_CLOSE, CMD_LOAD, CMD_OPEN, CMD_UNLOAD, CMD_TERMINATE, CMD_BACKGROUND, CMD_THREADS, CMD_TEST, CMD_INTERRUPT, #endif }; #define CMD_FIRST_VALID 2 /* Second parameter is the required argument count */ static const ACPI_DB_COMMAND_INFO AcpiGbl_DbCommands[] = { {"", 0}, {"", 0}, {"ALL", 1}, {"ALLOCATIONS", 0}, {"ARGS", 0}, {"ARGUMENTS", 0}, {"BREAKPOINT", 1}, {"BUSINFO", 0}, {"CALL", 0}, {"DEBUG", 1}, {"DISASSEMBLE", 1}, {"DISASM", 1}, {"DUMP", 1}, {"EVALUATE", 1}, {"EXECUTE", 1}, {"EXIT", 0}, {"FIELDS", 1}, {"FIND", 1}, {"GO", 0}, {"HANDLERS", 0}, {"HELP", 0}, {"?", 0}, {"HISTORY", 0}, {"!", 1}, {"!!", 0}, {"INFORMATION", 0}, {"INTEGRITY", 0}, {"INTO", 0}, {"LEVEL", 0}, {"LIST", 0}, {"LOCALS", 0}, {"LOCKS", 0}, {"METHODS", 0}, {"NAMESPACE", 0}, {"NOTIFY", 2}, {"OBJECTS", 0}, {"OSI", 0}, {"OWNER", 1}, {"PATHS", 0}, {"PREDEFINED", 0}, {"PREFIX", 0}, {"QUIT", 0}, {"REFERENCES", 1}, {"RESOURCES", 0}, {"RESULTS", 0}, {"SET", 3}, {"STATS", 1}, {"STOP", 0}, {"TABLES", 0}, {"TEMPLATE", 1}, {"TRACE", 1}, {"TREE", 0}, {"TYPE", 1}, #ifdef ACPI_APPLICATION {"ENABLEACPI", 0}, {"EVENT", 1}, {"GPE", 1}, {"GPES", 0}, {"SCI", 0}, {"SLEEP", 0}, {"CLOSE", 0}, {"LOAD", 1}, {"OPEN", 1}, {"UNLOAD", 1}, {"TERMINATE", 0}, {"BACKGROUND", 1}, {"THREADS", 3}, {"TEST", 1}, {"INTERRUPT", 1}, #endif {NULL, 0} }; /* * Help for all debugger commands. First argument is the number of lines * of help to output for the command. * * Note: Some commands are not supported by the kernel-level version of * the debugger. */ static const ACPI_DB_COMMAND_HELP AcpiGbl_DbCommandHelp[] = { {0, "\nNamespace Access:", "\n"}, {1, " Businfo", "Display system bus info\n"}, {1, " Disassemble ", "Disassemble a control method\n"}, {1, " Find (? is wildcard)", "Find ACPI name(s) with wildcards\n"}, {1, " Integrity", "Validate namespace integrity\n"}, {1, " Methods", "Display list of loaded control methods\n"}, {1, " Fields ", "Display list of loaded field units by space ID\n"}, {1, " Namespace [Object] [Depth]", "Display loaded namespace tree/subtree\n"}, {1, " Notify ", "Send a notification on Object\n"}, {1, " Objects [ObjectType]", "Display summary of all objects or just given type\n"}, {1, " Owner [Depth]", "Display loaded namespace by object owner\n"}, {1, " Paths", "Display full pathnames of namespace objects\n"}, {1, " Predefined", "Check all predefined names\n"}, {1, " Prefix []", "Set or Get current execution prefix\n"}, {1, " References ", "Find all references to object at addr\n"}, {1, " Resources [DeviceName]", "Display Device resources (no arg = all devices)\n"}, {1, " Set N ", "Set value for named integer\n"}, {1, " Template ", "Format/dump a Buffer/ResourceTemplate\n"}, {1, " Type ", "Display object type\n"}, {0, "\nControl Method Execution:", "\n"}, {1, " All ", "Evaluate all objects named NameSeg\n"}, {1, " Evaluate [Arguments]", "Evaluate object or control method\n"}, {1, " Execute [Arguments]", "Synonym for Evaluate\n"}, #ifdef ACPI_APPLICATION {1, " Background [Arguments]", "Evaluate object/method in a separate thread\n"}, {1, " Thread ", "Spawn threads to execute method(s)\n"}, #endif {1, " Debug [Arguments]", "Single-Step a control method\n"}, {7, " [Arguments] formats:", "Control method argument formats\n"}, {1, " Hex Integer", "Integer\n"}, {1, " \"Ascii String\"", "String\n"}, {1, " (Hex Byte List)", "Buffer\n"}, {1, " (01 42 7A BF)", "Buffer example (4 bytes)\n"}, {1, " [Package Element List]", "Package\n"}, {1, " [0x01 0x1234 \"string\"]", "Package example (3 elements)\n"}, {0, "\nMiscellaneous:", "\n"}, {1, " Allocations", "Display list of current memory allocations\n"}, {2, " Dump
|", "\n"}, {0, " [Byte|Word|Dword|Qword]", "Display ACPI objects or memory\n"}, {1, " Handlers", "Info about global handlers\n"}, {1, " Help [Command]", "This help screen or individual command\n"}, {1, " History", "Display command history buffer\n"}, {1, " Level ] [console]", "Get/Set debug level for file or console\n"}, {1, " Locks", "Current status of internal mutexes\n"}, {1, " Osi [Install|Remove ]", "Display or modify global _OSI list\n"}, {1, " Quit or Exit", "Exit this command\n"}, {8, " Stats ", "Display namespace and memory statistics\n"}, {1, " Allocations", "Display list of current memory allocations\n"}, {1, " Memory", "Dump internal memory lists\n"}, {1, " Misc", "Namespace search and mutex stats\n"}, {1, " Objects", "Summary of namespace objects\n"}, {1, " Sizes", "Sizes for each of the internal objects\n"}, {1, " Stack", "Display CPU stack usage\n"}, {1, " Tables", "Info about current ACPI table(s)\n"}, {1, " Tables", "Display info about loaded ACPI tables\n"}, #ifdef ACPI_APPLICATION {1, " Terminate", "Delete namespace and all internal objects\n"}, #endif {1, " ! ", "Execute command from history buffer\n"}, {1, " !!", "Execute last command again\n"}, {0, "\nMethod and Namespace Debugging:", "\n"}, {5, " Trace [] [Once]", "Trace control method execution\n"}, {1, " Enable", "Enable all messages\n"}, {1, " Disable", "Disable tracing\n"}, {1, " Method", "Enable method execution messages\n"}, {1, " Opcode", "Enable opcode execution messages\n"}, {3, " Test ", "Invoke a debug test\n"}, {1, " Objects", "Read/write/compare all namespace data objects\n"}, {1, " Predefined", "Validate all ACPI predefined names (_STA, etc.)\n"}, {1, " Execute predefined", "Execute all predefined (public) methods\n"}, {0, "\nControl Method Single-Step Execution:","\n"}, {1, " Arguments (or Args)", "Display method arguments\n"}, {1, " Breakpoint ", "Set an AML execution breakpoint\n"}, {1, " Call", "Run to next control method invocation\n"}, {1, " Go", "Allow method to run to completion\n"}, {1, " Information", "Display info about the current method\n"}, {1, " Into", "Step into (not over) a method call\n"}, {1, " List [# of Aml Opcodes]", "Display method ASL statements\n"}, {1, " Locals", "Display method local variables\n"}, {1, " Results", "Display method result stack\n"}, {1, " Set <#> ", "Set method data (Arguments/Locals)\n"}, {1, " Stop", "Terminate control method\n"}, {1, " Tree", "Display control method calling tree\n"}, {1, " ", "Single step next AML opcode (over calls)\n"}, #ifdef ACPI_APPLICATION {0, "\nFile Operations:", "\n"}, {1, " Close", "Close debug output file\n"}, {1, " Load ", "Load ACPI table from a file\n"}, {1, " Open ", "Open a file for debug output\n"}, {1, " Unload ", "Unload an ACPI table via namespace object\n"}, {0, "\nHardware Simulation:", "\n"}, {1, " EnableAcpi", "Enable ACPI (hardware) mode\n"}, {1, " Event ", "Generate AcpiEvent (Fixed/GPE)\n"}, {1, " Gpe [GpeBlockDevice]", "Simulate a GPE\n"}, {1, " Gpes", "Display info on all GPE devices\n"}, {1, " Sci", "Generate an SCI\n"}, {1, " Sleep [SleepState]", "Simulate sleep/wake sequence(s) (0-5)\n"}, {1, " Interrupt ", "Simulate an interrupt\n"}, #endif {0, NULL, NULL} }; /******************************************************************************* * * FUNCTION: AcpiDbMatchCommandHelp * * PARAMETERS: Command - Command string to match * Help - Help table entry to attempt match * * RETURN: TRUE if command matched, FALSE otherwise * * DESCRIPTION: Attempt to match a command in the help table in order to * print help information for a single command. * ******************************************************************************/ static BOOLEAN AcpiDbMatchCommandHelp ( const char *Command, const ACPI_DB_COMMAND_HELP *Help) { char *Invocation = Help->Invocation; UINT32 LineCount; /* Valid commands in the help table begin with a couple of spaces */ if (*Invocation != ' ') { return (FALSE); } while (*Invocation == ' ') { Invocation++; } /* Match command name (full command or substring) */ while ((*Command) && (*Invocation) && (*Invocation != ' ')) { if (tolower ((int) *Command) != tolower ((int) *Invocation)) { return (FALSE); } Invocation++; Command++; } /* Print the appropriate number of help lines */ LineCount = Help->LineCount; while (LineCount) { AcpiOsPrintf ("%-38s : %s", Help->Invocation, Help->Description); Help++; LineCount--; } return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayCommandInfo * * PARAMETERS: Command - Command string to match * DisplayAll - Display all matching commands, or just * the first one (substring match) * * RETURN: None * * DESCRIPTION: Display help information for a Debugger command. * ******************************************************************************/ static void AcpiDbDisplayCommandInfo ( const char *Command, BOOLEAN DisplayAll) { const ACPI_DB_COMMAND_HELP *Next; BOOLEAN Matched; Next = AcpiGbl_DbCommandHelp; while (Next->Invocation) { Matched = AcpiDbMatchCommandHelp (Command, Next); if (!DisplayAll && Matched) { return; } Next++; } } /******************************************************************************* * * FUNCTION: AcpiDbDisplayHelp * * PARAMETERS: Command - Optional command string to display help. * if not specified, all debugger command * help strings are displayed * * RETURN: None * * DESCRIPTION: Display help for a single debugger command, or all of them. * ******************************************************************************/ static void AcpiDbDisplayHelp ( char *Command) { const ACPI_DB_COMMAND_HELP *Next = AcpiGbl_DbCommandHelp; if (!Command) { /* No argument to help, display help for all commands */ AcpiOsPrintf ("\nSummary of AML Debugger Commands\n\n"); while (Next->Invocation) { AcpiOsPrintf ("%-38s%s", Next->Invocation, Next->Description); Next++; } AcpiOsPrintf ("\n"); } else { /* Display help for all commands that match the substring */ AcpiDbDisplayCommandInfo (Command, TRUE); } } /******************************************************************************* * * FUNCTION: AcpiDbGetNextToken * * PARAMETERS: String - Command buffer * Next - Return value, end of next token * * RETURN: Pointer to the start of the next token. * * DESCRIPTION: Command line parsing. Get the next token on the command line * ******************************************************************************/ char * AcpiDbGetNextToken ( char *String, char **Next, ACPI_OBJECT_TYPE *ReturnType) { char *Start; UINT32 Depth; ACPI_OBJECT_TYPE Type = ACPI_TYPE_INTEGER; /* At end of buffer? */ if (!String || !(*String)) { return (NULL); } /* Remove any spaces at the beginning, ignore blank lines */ while (*String && isspace ((int) *String)) { String++; } if (!(*String)) { return (NULL); } switch (*String) { case '"': /* This is a quoted string, scan until closing quote */ String++; Start = String; Type = ACPI_TYPE_STRING; /* Find end of string */ while (*String && (*String != '"')) { String++; } break; case '(': /* This is the start of a buffer, scan until closing paren */ String++; Start = String; Type = ACPI_TYPE_BUFFER; /* Find end of buffer */ while (*String && (*String != ')')) { String++; } break; case '{': /* This is the start of a field unit, scan until closing brace */ String++; Start = String; Type = ACPI_TYPE_FIELD_UNIT; /* Find end of buffer */ while (*String && (*String != '}')) { String++; } break; case '[': /* This is the start of a package, scan until closing bracket */ String++; Depth = 1; Start = String; Type = ACPI_TYPE_PACKAGE; /* Find end of package (closing bracket) */ while (*String) { /* Handle String package elements */ if (*String == '"') { /* Find end of string */ String++; while (*String && (*String != '"')) { String++; } if (!(*String)) { break; } } else if (*String == '[') { Depth++; /* A nested package declaration */ } else if (*String == ']') { Depth--; if (Depth == 0) /* Found final package closing bracket */ { break; } } String++; } break; default: Start = String; /* Find end of token */ while (*String && !isspace ((int) *String)) { String++; } break; } if (!(*String)) { *Next = NULL; } else { *String = 0; *Next = String + 1; } *ReturnType = Type; return (Start); } /******************************************************************************* * * FUNCTION: AcpiDbGetLine * * PARAMETERS: InputBuffer - Command line buffer * * RETURN: Count of arguments to the command * * DESCRIPTION: Get the next command line from the user. Gets entire line * up to the next newline * ******************************************************************************/ static UINT32 AcpiDbGetLine ( char *InputBuffer) { UINT32 i; UINT32 Count; char *Next; char *This; if (AcpiUtSafeStrcpy (AcpiGbl_DbParsedBuf, sizeof (AcpiGbl_DbParsedBuf), InputBuffer)) { AcpiOsPrintf ( "Buffer overflow while parsing input line (max %u characters)\n", (UINT32) sizeof (AcpiGbl_DbParsedBuf)); return (0); } This = AcpiGbl_DbParsedBuf; for (i = 0; i < ACPI_DEBUGGER_MAX_ARGS; i++) { AcpiGbl_DbArgs[i] = AcpiDbGetNextToken (This, &Next, &AcpiGbl_DbArgTypes[i]); if (!AcpiGbl_DbArgs[i]) { break; } This = Next; } /* Uppercase the actual command */ AcpiUtStrupr (AcpiGbl_DbArgs[0]); Count = i; if (Count) { Count--; /* Number of args only */ } return (Count); } /******************************************************************************* * * FUNCTION: AcpiDbMatchCommand * * PARAMETERS: UserCommand - User command line * * RETURN: Index into command array, -1 if not found * * DESCRIPTION: Search command array for a command match * ******************************************************************************/ static UINT32 AcpiDbMatchCommand ( char *UserCommand) { UINT32 i; if (!UserCommand || UserCommand[0] == 0) { return (CMD_NULL); } for (i = CMD_FIRST_VALID; AcpiGbl_DbCommands[i].Name; i++) { if (strstr ( ACPI_CAST_PTR (char, AcpiGbl_DbCommands[i].Name), UserCommand) == AcpiGbl_DbCommands[i].Name) { return (i); } } /* Command not recognized */ return (CMD_NOT_FOUND); } /******************************************************************************* * * FUNCTION: AcpiDbCommandDispatch * * PARAMETERS: InputBuffer - Command line buffer * WalkState - Current walk * Op - Current (executing) parse op * * RETURN: Status * * DESCRIPTION: Command dispatcher. * ******************************************************************************/ ACPI_STATUS AcpiDbCommandDispatch ( char *InputBuffer, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { UINT32 Temp; UINT64 Temp64; UINT32 CommandIndex; UINT32 ParamCount; char *CommandLine; ACPI_STATUS Status = AE_CTRL_TRUE; /* If AcpiTerminate has been called, terminate this thread */ if (AcpiGbl_DbTerminateLoop) { return (AE_CTRL_TERMINATE); } /* Find command and add to the history buffer */ ParamCount = AcpiDbGetLine (InputBuffer); CommandIndex = AcpiDbMatchCommand (AcpiGbl_DbArgs[0]); /* * We don't want to add the !! command to the history buffer. It * would cause an infinite loop because it would always be the * previous command. */ if (CommandIndex != CMD_HISTORY_LAST) { AcpiDbAddToHistory (InputBuffer); } /* Verify that we have the minimum number of params */ if (ParamCount < AcpiGbl_DbCommands[CommandIndex].MinArgs) { AcpiOsPrintf ("%u parameters entered, [%s] requires %u parameters\n", ParamCount, AcpiGbl_DbCommands[CommandIndex].Name, AcpiGbl_DbCommands[CommandIndex].MinArgs); AcpiDbDisplayCommandInfo ( AcpiGbl_DbCommands[CommandIndex].Name, FALSE); return (AE_CTRL_TRUE); } /* Decode and dispatch the command */ switch (CommandIndex) { case CMD_NULL: if (Op) { return (AE_OK); } break; case CMD_ALL: AcpiOsPrintf ("Executing all objects with NameSeg: %s\n", AcpiGbl_DbArgs[1]); AcpiDbExecute (AcpiGbl_DbArgs[1], &AcpiGbl_DbArgs[2], &AcpiGbl_DbArgTypes[2], EX_NO_SINGLE_STEP | EX_ALL); break; case CMD_ALLOCATIONS: #ifdef ACPI_DBG_TRACK_ALLOCATIONS AcpiUtDumpAllocations ((UINT32) -1, NULL); #endif break; case CMD_ARGS: case CMD_ARGUMENTS: AcpiDbDisplayArguments (); break; case CMD_BREAKPOINT: AcpiDbSetMethodBreakpoint (AcpiGbl_DbArgs[1], WalkState, Op); break; case CMD_BUSINFO: AcpiDbGetBusInfo (); break; case CMD_CALL: AcpiDbSetMethodCallBreakpoint (Op); Status = AE_OK; break; case CMD_DEBUG: AcpiDbExecute (AcpiGbl_DbArgs[1], &AcpiGbl_DbArgs[2], &AcpiGbl_DbArgTypes[2], EX_SINGLE_STEP); break; case CMD_DISASSEMBLE: case CMD_DISASM: #ifdef ACPI_DISASSEMBLER (void) AcpiDbDisassembleMethod (AcpiGbl_DbArgs[1]); #else AcpiOsPrintf ("The AML Disassembler is not configured/present\n"); #endif break; case CMD_DUMP: AcpiDbDecodeAndDisplayObject (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]); break; case CMD_EVALUATE: case CMD_EXECUTE: AcpiDbExecute (AcpiGbl_DbArgs[1], &AcpiGbl_DbArgs[2], &AcpiGbl_DbArgTypes[2], EX_NO_SINGLE_STEP); break; case CMD_FIND: Status = AcpiDbFindNameInNamespace (AcpiGbl_DbArgs[1]); break; case CMD_FIELDS: Status = AcpiUtStrtoul64 (AcpiGbl_DbArgs[1], &Temp64); if (ACPI_FAILURE (Status) || Temp64 >= ACPI_NUM_PREDEFINED_REGIONS) { AcpiOsPrintf ( "Invalid address space ID: must be between 0 and %u inclusive\n", ACPI_NUM_PREDEFINED_REGIONS - 1); return (AE_OK); } Status = AcpiDbDisplayFields ((UINT32) Temp64); break; case CMD_GO: AcpiGbl_CmSingleStep = FALSE; return (AE_OK); case CMD_HANDLERS: AcpiDbDisplayHandlers (); break; case CMD_HELP: case CMD_HELP2: AcpiDbDisplayHelp (AcpiGbl_DbArgs[1]); break; case CMD_HISTORY: AcpiDbDisplayHistory (); break; case CMD_HISTORY_EXE: /* ! command */ CommandLine = AcpiDbGetFromHistory (AcpiGbl_DbArgs[1]); if (!CommandLine) { return (AE_CTRL_TRUE); } Status = AcpiDbCommandDispatch (CommandLine, WalkState, Op); return (Status); case CMD_HISTORY_LAST: /* !! command */ CommandLine = AcpiDbGetFromHistory (NULL); if (!CommandLine) { return (AE_CTRL_TRUE); } Status = AcpiDbCommandDispatch (CommandLine, WalkState, Op); return (Status); case CMD_INFORMATION: AcpiDbDisplayMethodInfo (Op); break; case CMD_INTEGRITY: AcpiDbCheckIntegrity (); break; case CMD_INTO: if (Op) { AcpiGbl_CmSingleStep = TRUE; return (AE_OK); } break; case CMD_LEVEL: if (ParamCount == 0) { AcpiOsPrintf ( "Current debug level for file output is: %8.8X\n", AcpiGbl_DbDebugLevel); AcpiOsPrintf ( "Current debug level for console output is: %8.8X\n", AcpiGbl_DbConsoleDebugLevel); } else if (ParamCount == 2) { Temp = AcpiGbl_DbConsoleDebugLevel; AcpiGbl_DbConsoleDebugLevel = strtoul (AcpiGbl_DbArgs[1], NULL, 16); AcpiOsPrintf ( "Debug Level for console output was %8.8X, now %8.8X\n", Temp, AcpiGbl_DbConsoleDebugLevel); } else { Temp = AcpiGbl_DbDebugLevel; AcpiGbl_DbDebugLevel = strtoul (AcpiGbl_DbArgs[1], NULL, 16); AcpiOsPrintf ( "Debug Level for file output was %8.8X, now %8.8X\n", Temp, AcpiGbl_DbDebugLevel); } break; case CMD_LIST: #ifdef ACPI_DISASSEMBLER AcpiDbDisassembleAml (AcpiGbl_DbArgs[1], Op); #else AcpiOsPrintf ("The AML Disassembler is not configured/present\n"); #endif break; case CMD_LOCKS: AcpiDbDisplayLocks (); break; case CMD_LOCALS: AcpiDbDisplayLocals (); break; case CMD_METHODS: Status = AcpiDbDisplayObjects ("METHOD", AcpiGbl_DbArgs[1]); break; case CMD_NAMESPACE: AcpiDbDumpNamespace (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]); break; case CMD_NOTIFY: Temp = strtoul (AcpiGbl_DbArgs[2], NULL, 0); AcpiDbSendNotify (AcpiGbl_DbArgs[1], Temp); break; case CMD_OBJECTS: AcpiUtStrupr (AcpiGbl_DbArgs[1]); Status = AcpiDbDisplayObjects (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]); break; case CMD_OSI: AcpiDbDisplayInterfaces (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]); break; case CMD_OWNER: AcpiDbDumpNamespaceByOwner (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]); break; case CMD_PATHS: AcpiDbDumpNamespacePaths (); break; case CMD_PREFIX: AcpiDbSetScope (AcpiGbl_DbArgs[1]); break; case CMD_REFERENCES: AcpiDbFindReferences (AcpiGbl_DbArgs[1]); break; case CMD_RESOURCES: AcpiDbDisplayResources (AcpiGbl_DbArgs[1]); break; case CMD_RESULTS: AcpiDbDisplayResults (); break; case CMD_SET: AcpiDbSetMethodData (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2], AcpiGbl_DbArgs[3]); break; case CMD_STATS: Status = AcpiDbDisplayStatistics (AcpiGbl_DbArgs[1]); break; case CMD_STOP: return (AE_NOT_IMPLEMENTED); case CMD_TABLES: AcpiDbDisplayTableInfo (AcpiGbl_DbArgs[1]); break; case CMD_TEMPLATE: AcpiDbDisplayTemplate (AcpiGbl_DbArgs[1]); break; case CMD_TRACE: AcpiDbTrace (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2], AcpiGbl_DbArgs[3]); break; case CMD_TREE: AcpiDbDisplayCallingTree (); break; case CMD_TYPE: AcpiDbDisplayObjectType (AcpiGbl_DbArgs[1]); break; #ifdef ACPI_APPLICATION /* Hardware simulation commands. */ case CMD_ENABLEACPI: #if (!ACPI_REDUCED_HARDWARE) Status = AcpiEnable(); if (ACPI_FAILURE(Status)) { AcpiOsPrintf("AcpiEnable failed (Status=%X)\n", Status); return (Status); } #endif /* !ACPI_REDUCED_HARDWARE */ break; case CMD_EVENT: AcpiOsPrintf ("Event command not implemented\n"); break; case CMD_INTERRUPT: AcpiDbGenerateInterrupt (AcpiGbl_DbArgs[1]); break; case CMD_GPE: AcpiDbGenerateGpe (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]); break; case CMD_GPES: AcpiDbDisplayGpes (); break; case CMD_SCI: AcpiDbGenerateSci (); break; case CMD_SLEEP: Status = AcpiDbSleep (AcpiGbl_DbArgs[1]); break; /* File I/O commands. */ case CMD_CLOSE: AcpiDbCloseDebugFile (); break; case CMD_LOAD: { ACPI_NEW_TABLE_DESC *ListHead = NULL; Status = AcGetAllTablesFromFile (AcpiGbl_DbArgs[1], ACPI_GET_ALL_TABLES, &ListHead); if (ACPI_SUCCESS (Status)) { AcpiDbLoadTables (ListHead); } } break; case CMD_OPEN: AcpiDbOpenDebugFile (AcpiGbl_DbArgs[1]); break; /* User space commands. */ case CMD_TERMINATE: AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT); AcpiUtSubsystemShutdown (); /* * TBD: [Restructure] Need some way to re-initialize without * re-creating the semaphores! */ AcpiGbl_DbTerminateLoop = TRUE; /* AcpiInitialize (NULL); */ break; case CMD_BACKGROUND: AcpiDbCreateExecutionThread (AcpiGbl_DbArgs[1], &AcpiGbl_DbArgs[2], &AcpiGbl_DbArgTypes[2]); break; case CMD_THREADS: AcpiDbCreateExecutionThreads (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2], AcpiGbl_DbArgs[3]); break; /* Debug test commands. */ case CMD_PREDEFINED: AcpiDbCheckPredefinedNames (); break; case CMD_TEST: AcpiDbExecuteTest (AcpiGbl_DbArgs[1]); break; case CMD_UNLOAD: AcpiDbUnloadAcpiTable (AcpiGbl_DbArgs[1]); break; #endif case CMD_EXIT: case CMD_QUIT: if (Op) { AcpiOsPrintf ("Method execution terminated\n"); return (AE_CTRL_TERMINATE); } if (!AcpiGbl_DbOutputToFile) { AcpiDbgLevel = ACPI_DEBUG_DEFAULT; } #ifdef ACPI_APPLICATION AcpiDbCloseDebugFile (); #endif AcpiGbl_DbTerminateLoop = TRUE; return (AE_CTRL_TERMINATE); case CMD_NOT_FOUND: default: AcpiOsPrintf ("%s: unknown command\n", AcpiGbl_DbArgs[0]); return (AE_CTRL_TRUE); } if (ACPI_SUCCESS (Status)) { Status = AE_CTRL_TRUE; } return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbExecuteThread * * PARAMETERS: Context - Not used * * RETURN: None * * DESCRIPTION: Debugger execute thread. Waits for a command line, then * simply dispatches it. * ******************************************************************************/ void ACPI_SYSTEM_XFACE AcpiDbExecuteThread ( void *Context) { (void) AcpiDbUserCommands (); AcpiGbl_DbThreadsTerminated = TRUE; } /******************************************************************************* * * FUNCTION: AcpiDbUserCommands * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Command line execution for the AML debugger. Commands are * matched and dispatched here. * ******************************************************************************/ ACPI_STATUS AcpiDbUserCommands ( void) { ACPI_STATUS Status = AE_OK; AcpiOsPrintf ("\n"); /* TBD: [Restructure] Need a separate command line buffer for step mode */ while (!AcpiGbl_DbTerminateLoop) { /* Wait the readiness of the command */ Status = AcpiOsWaitCommandReady (); if (ACPI_FAILURE (Status)) { break; } /* Just call to the command line interpreter */ AcpiGbl_MethodExecuting = FALSE; AcpiGbl_StepToNextCall = FALSE; (void) AcpiDbCommandDispatch (AcpiGbl_DbLineBuf, NULL, NULL); /* Notify the completion of the command */ Status = AcpiOsNotifyCommandComplete (); if (ACPI_FAILURE (Status)) { break; } } if (ACPI_FAILURE (Status) && Status != AE_CTRL_TERMINATE) { ACPI_EXCEPTION ((AE_INFO, Status, "While parsing command line")); } return (Status); } acpica-unix-20250404/source/components/debugger/dbnames.c0000775000175000017500000007774514773714132022613 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbnames - Debugger commands for the acpi namespace * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acdebug.h" #include "acpredef.h" #include "acinterp.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbnames") /* Local prototypes */ static ACPI_STATUS AcpiDbWalkAndMatchName ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static ACPI_STATUS AcpiDbWalkForPredefinedNames ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static ACPI_STATUS AcpiDbWalkForSpecificObjects ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static ACPI_STATUS AcpiDbWalkForObjectCounts ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static ACPI_STATUS AcpiDbIntegrityWalk ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static ACPI_STATUS AcpiDbWalkForReferences ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static ACPI_STATUS AcpiDbBusWalk ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); /* * Arguments for the Objects command * These object types map directly to the ACPI_TYPES */ static ACPI_DB_ARGUMENT_INFO AcpiDbObjectTypes [] = { {"ANY"}, {"INTEGERS"}, {"STRINGS"}, {"BUFFERS"}, {"PACKAGES"}, {"FIELDS"}, {"DEVICES"}, {"EVENTS"}, {"METHODS"}, {"MUTEXES"}, {"REGIONS"}, {"POWERRESOURCES"}, {"PROCESSORS"}, {"THERMALZONES"}, {"BUFFERFIELDS"}, {"DDBHANDLES"}, {"DEBUG"}, {"REGIONFIELDS"}, {"BANKFIELDS"}, {"INDEXFIELDS"}, {"REFERENCES"}, {"ALIASES"}, {"METHODALIASES"}, {"NOTIFY"}, {"ADDRESSHANDLER"}, {"RESOURCE"}, {"RESOURCEFIELD"}, {"SCOPES"}, {NULL} /* Must be null terminated */ }; /******************************************************************************* * * FUNCTION: AcpiDbSetScope * * PARAMETERS: Name - New scope path * * RETURN: Status * * DESCRIPTION: Set the "current scope" as maintained by this utility. * The scope is used as a prefix to ACPI paths. * ******************************************************************************/ void AcpiDbSetScope ( char *Name) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; if (!Name || Name[0] == 0) { AcpiOsPrintf ("Current scope: %s\n", AcpiGbl_DbScopeBuf); return; } AcpiDbPrepNamestring (Name); if (ACPI_IS_ROOT_PREFIX (Name[0])) { /* Validate new scope from the root */ Status = AcpiNsGetNode (AcpiGbl_RootNode, Name, ACPI_NS_NO_UPSEARCH, &Node); if (ACPI_FAILURE (Status)) { goto ErrorExit; } AcpiGbl_DbScopeBuf[0] = 0; } else { /* Validate new scope relative to old scope */ Status = AcpiNsGetNode (AcpiGbl_DbScopeNode, Name, ACPI_NS_NO_UPSEARCH, &Node); if (ACPI_FAILURE (Status)) { goto ErrorExit; } } /* Build the final pathname */ if (AcpiUtSafeStrcat (AcpiGbl_DbScopeBuf, sizeof (AcpiGbl_DbScopeBuf), Name)) { Status = AE_BUFFER_OVERFLOW; goto ErrorExit; } if (AcpiUtSafeStrcat (AcpiGbl_DbScopeBuf, sizeof (AcpiGbl_DbScopeBuf), "\\")) { Status = AE_BUFFER_OVERFLOW; goto ErrorExit; } AcpiGbl_DbScopeNode = Node; AcpiOsPrintf ("New scope: %s\n", AcpiGbl_DbScopeBuf); return; ErrorExit: AcpiOsPrintf ("Could not attach scope: %s, %s\n", Name, AcpiFormatException (Status)); } /******************************************************************************* * * FUNCTION: AcpiDbDumpNamespace * * PARAMETERS: StartArg - Node to begin namespace dump * DepthArg - Maximum tree depth to be dumped * * RETURN: None * * DESCRIPTION: Dump entire namespace or a subtree. Each node is displayed * with type and other information. * ******************************************************************************/ void AcpiDbDumpNamespace ( char *StartArg, char *DepthArg) { ACPI_HANDLE SubtreeEntry = AcpiGbl_RootNode; UINT32 MaxDepth = ACPI_UINT32_MAX; /* No argument given, just start at the root and dump entire namespace */ if (StartArg) { SubtreeEntry = AcpiDbConvertToNode (StartArg); if (!SubtreeEntry) { return; } /* Now we can check for the depth argument */ if (DepthArg) { MaxDepth = strtoul (DepthArg, NULL, 0); } } AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT); if (((ACPI_NAMESPACE_NODE *) SubtreeEntry)->Parent) { AcpiOsPrintf ("ACPI Namespace (from %4.4s (%p) subtree):\n", ((ACPI_NAMESPACE_NODE *) SubtreeEntry)->Name.Ascii, SubtreeEntry); } else { AcpiOsPrintf ("ACPI Namespace (from %s):\n", ACPI_NAMESPACE_ROOT); } /* Display the subtree */ AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT); AcpiNsDumpObjects (ACPI_TYPE_ANY, ACPI_DISPLAY_SUMMARY, MaxDepth, ACPI_OWNER_ID_MAX, SubtreeEntry); AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); } /******************************************************************************* * * FUNCTION: AcpiDbDumpNamespacePaths * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Dump entire namespace with full object pathnames and object * type information. Alternative to "namespace" command. * ******************************************************************************/ void AcpiDbDumpNamespacePaths ( void) { AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT); AcpiOsPrintf ("ACPI Namespace (from root):\n"); /* Display the entire namespace */ AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT); AcpiNsDumpObjectPaths (ACPI_TYPE_ANY, ACPI_DISPLAY_SUMMARY, ACPI_UINT32_MAX, ACPI_OWNER_ID_MAX, AcpiGbl_RootNode); AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); } /******************************************************************************* * * FUNCTION: AcpiDbDumpNamespaceByOwner * * PARAMETERS: OwnerArg - Owner ID whose nodes will be displayed * DepthArg - Maximum tree depth to be dumped * * RETURN: None * * DESCRIPTION: Dump elements of the namespace that are owned by the OwnerId. * ******************************************************************************/ void AcpiDbDumpNamespaceByOwner ( char *OwnerArg, char *DepthArg) { ACPI_HANDLE SubtreeEntry = AcpiGbl_RootNode; UINT32 MaxDepth = ACPI_UINT32_MAX; ACPI_OWNER_ID OwnerId; OwnerId = (ACPI_OWNER_ID) strtoul (OwnerArg, NULL, 0); /* Now we can check for the depth argument */ if (DepthArg) { MaxDepth = strtoul (DepthArg, NULL, 0); } AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT); AcpiOsPrintf ("ACPI Namespace by owner %X:\n", OwnerId); /* Display the subtree */ AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT); AcpiNsDumpObjects (ACPI_TYPE_ANY, ACPI_DISPLAY_SUMMARY, MaxDepth, OwnerId, SubtreeEntry); AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); } /******************************************************************************* * * FUNCTION: AcpiDbWalkAndMatchName * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Find a particular name/names within the namespace. Wildcards * are supported -- '?' matches any character. * ******************************************************************************/ static ACPI_STATUS AcpiDbWalkAndMatchName ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_STATUS Status; char *RequestedName = (char *) Context; UINT32 i; ACPI_BUFFER Buffer; ACPI_WALK_INFO Info; /* Check for a name match */ for (i = 0; i < 4; i++) { /* Wildcard support */ if ((RequestedName[i] != '?') && (RequestedName[i] != ((ACPI_NAMESPACE_NODE *) ObjHandle)->Name.Ascii[i])) { /* No match, just exit */ return (AE_OK); } } /* Get the full pathname to this object */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (ObjHandle, &Buffer, TRUE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could Not get pathname for object %p\n", ObjHandle); } else { Info.Count = 0; Info.OwnerId = ACPI_OWNER_ID_MAX; Info.DebugLevel = ACPI_UINT32_MAX; Info.DisplayType = ACPI_DISPLAY_SUMMARY | ACPI_DISPLAY_SHORT; AcpiOsPrintf ("%32s", (char *) Buffer.Pointer); (void) AcpiNsDumpOneObject (ObjHandle, NestingLevel, &Info, NULL); ACPI_FREE (Buffer.Pointer); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbFindNameInNamespace * * PARAMETERS: NameArg - The 4-character ACPI name to find. * wildcards are supported. * * RETURN: None * * DESCRIPTION: Search the namespace for a given name (with wildcards) * ******************************************************************************/ ACPI_STATUS AcpiDbFindNameInNamespace ( char *NameArg) { char AcpiName[5] = "____"; char *AcpiNamePtr = AcpiName; if (strlen (NameArg) > ACPI_NAMESEG_SIZE) { AcpiOsPrintf ("Name must be no longer than 4 characters\n"); return (AE_OK); } /* Pad out name with underscores as necessary to create a 4-char name */ AcpiUtStrupr (NameArg); while (*NameArg) { *AcpiNamePtr = *NameArg; AcpiNamePtr++; NameArg++; } /* Walk the namespace from the root */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbWalkAndMatchName, NULL, AcpiName, NULL); AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbWalkForPredefinedNames * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Detect and display predefined ACPI names (names that start with * an underscore) * ******************************************************************************/ static ACPI_STATUS AcpiDbWalkForPredefinedNames ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; UINT32 *Count = (UINT32 *) Context; const ACPI_PREDEFINED_INFO *Predefined; const ACPI_PREDEFINED_INFO *Package = NULL; char *Pathname; char StringBuffer[48]; Predefined = AcpiUtMatchPredefinedMethod (Node->Name.Ascii); if (!Predefined) { return (AE_OK); } Pathname = AcpiNsGetNormalizedPathname (Node, TRUE); if (!Pathname) { return (AE_OK); } /* If method returns a package, the info is in the next table entry */ if (Predefined->Info.ExpectedBtypes & ACPI_RTYPE_PACKAGE) { Package = Predefined + 1; } AcpiUtGetExpectedReturnTypes (StringBuffer, Predefined->Info.ExpectedBtypes); AcpiOsPrintf ("%-32s Arguments %X, Return Types: %s", Pathname, METHOD_GET_ARG_COUNT (Predefined->Info.ArgumentList), StringBuffer); if (Package) { AcpiOsPrintf (" (PkgType %2.2X, ObjType %2.2X, Count %2.2X)", Package->RetInfo.Type, Package->RetInfo.ObjectType1, Package->RetInfo.Count1); } AcpiOsPrintf("\n"); /* Check that the declared argument count matches the ACPI spec */ AcpiNsCheckAcpiCompliance (Pathname, Node, Predefined); ACPI_FREE (Pathname); (*Count)++; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbCheckPredefinedNames * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Validate all predefined names in the namespace * ******************************************************************************/ void AcpiDbCheckPredefinedNames ( void) { UINT32 Count = 0; /* Search all nodes in namespace */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbWalkForPredefinedNames, NULL, (void *) &Count, NULL); AcpiOsPrintf ("Found %u predefined names in the namespace\n", Count); } /******************************************************************************* * * FUNCTION: AcpiDbWalkForObjectCounts * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Display short info about objects in the namespace * ******************************************************************************/ static ACPI_STATUS AcpiDbWalkForObjectCounts ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_OBJECT_INFO *Info = (ACPI_OBJECT_INFO *) Context; ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; if (Node->Type > ACPI_TYPE_NS_NODE_MAX) { AcpiOsPrintf ("[%4.4s]: Unknown object type %X\n", Node->Name.Ascii, Node->Type); } else { Info->Types[Node->Type]++; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbWalkForFields * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Display short info about objects in the namespace * ******************************************************************************/ static ACPI_STATUS AcpiDbWalkForFields ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_OBJECT *RetValue; ACPI_REGION_WALK_INFO *Info = (ACPI_REGION_WALK_INFO *) Context; ACPI_BUFFER Buffer; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node = AcpiNsValidateHandle (ObjHandle); if (!Node) { return (AE_OK); } if (Node->Object->Field.RegionObj->Region.SpaceId != Info->AddressSpaceId) { return (AE_OK); } Info->Count++; /* Get and display the full pathname to this object */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (ObjHandle, &Buffer, TRUE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could Not get pathname for object %p\n", ObjHandle); return (AE_OK); } AcpiOsPrintf ("%s ", (char *) Buffer.Pointer); ACPI_FREE (Buffer.Pointer); Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiEvaluateObject (ObjHandle, NULL, NULL, &Buffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could Not evaluate object %p\n", ObjHandle); return (AE_OK); } /* * Since this is a field unit, surround the output in braces */ AcpiOsPrintf ("{"); RetValue = (ACPI_OBJECT *) Buffer.Pointer; switch (RetValue->Type) { case ACPI_TYPE_INTEGER: AcpiOsPrintf ("%8.8X%8.8X", ACPI_FORMAT_UINT64 (RetValue->Integer.Value)); break; case ACPI_TYPE_BUFFER: AcpiUtDumpBuffer (RetValue->Buffer.Pointer, RetValue->Buffer.Length, DB_DISPLAY_DATA_ONLY | DB_BYTE_DISPLAY, 0); break; default: break; } AcpiOsPrintf ("}\n"); ACPI_FREE (Buffer.Pointer); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbWalkForSpecificObjects * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Display short info about objects in the namespace * ******************************************************************************/ static ACPI_STATUS AcpiDbWalkForSpecificObjects ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_WALK_INFO *Info = (ACPI_WALK_INFO *) Context; ACPI_BUFFER Buffer; ACPI_STATUS Status; Info->Count++; /* Get and display the full pathname to this object */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (ObjHandle, &Buffer, TRUE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could Not get pathname for object %p\n", ObjHandle); return (AE_OK); } AcpiOsPrintf ("%32s", (char *) Buffer.Pointer); ACPI_FREE (Buffer.Pointer); /* Dump short info about the object */ (void) AcpiNsDumpOneObject (ObjHandle, NestingLevel, Info, NULL); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayObjects * * PARAMETERS: ObjTypeArg - Type of object to display * DisplayCountArg - Max depth to display * * RETURN: None * * DESCRIPTION: Display objects in the namespace of the requested type * ******************************************************************************/ ACPI_STATUS AcpiDbDisplayObjects ( char *ObjTypeArg, char *DisplayCountArg) { ACPI_WALK_INFO Info; ACPI_OBJECT_TYPE Type; ACPI_OBJECT_INFO *ObjectInfo; UINT32 i; UINT32 TotalObjects = 0; /* No argument means display summary/count of all object types */ if (!ObjTypeArg) { ObjectInfo = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_OBJECT_INFO)); if (!ObjectInfo) return (AE_NO_MEMORY); /* Walk the namespace from the root */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbWalkForObjectCounts, NULL, (void *) ObjectInfo, NULL); AcpiOsPrintf ("\nSummary of namespace objects:\n\n"); for (i = 0; i < ACPI_TOTAL_TYPES; i++) { AcpiOsPrintf ("%8u %s\n", ObjectInfo->Types[i], AcpiUtGetTypeName (i)); TotalObjects += ObjectInfo->Types[i]; } AcpiOsPrintf ("\n%8u Total namespace objects\n\n", TotalObjects); ACPI_FREE (ObjectInfo); return (AE_OK); } /* Get the object type */ Type = AcpiDbMatchArgument (ObjTypeArg, AcpiDbObjectTypes); if (Type == ACPI_TYPE_NOT_FOUND) { AcpiOsPrintf ("Invalid or unsupported argument\n"); return (AE_OK); } AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT); AcpiOsPrintf ( "Objects of type [%s] defined in the current ACPI Namespace:\n", AcpiUtGetTypeName (Type)); AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT); Info.Count = 0; Info.OwnerId = ACPI_OWNER_ID_MAX; Info.DebugLevel = ACPI_UINT32_MAX; Info.DisplayType = ACPI_DISPLAY_SUMMARY | ACPI_DISPLAY_SHORT; /* Walk the namespace from the root */ (void) AcpiWalkNamespace (Type, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbWalkForSpecificObjects, NULL, (void *) &Info, NULL); AcpiOsPrintf ( "\nFound %u objects of type [%s] in the current ACPI Namespace\n", Info.Count, AcpiUtGetTypeName (Type)); AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayFields * * PARAMETERS: ObjTypeArg - Type of object to display * DisplayCountArg - Max depth to display * * RETURN: None * * DESCRIPTION: Display objects in the namespace of the requested type * ******************************************************************************/ ACPI_STATUS AcpiDbDisplayFields ( UINT32 AddressSpaceId) { ACPI_REGION_WALK_INFO Info; Info.Count = 0; Info.OwnerId = ACPI_OWNER_ID_MAX; Info.DebugLevel = ACPI_UINT32_MAX; Info.DisplayType = ACPI_DISPLAY_SUMMARY | ACPI_DISPLAY_SHORT; Info.AddressSpaceId = AddressSpaceId; /* Walk the namespace from the root */ (void) AcpiWalkNamespace (ACPI_TYPE_LOCAL_REGION_FIELD, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbWalkForFields, NULL, (void *) &Info, NULL); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbIntegrityWalk * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Examine one NS node for valid values. * ******************************************************************************/ static ACPI_STATUS AcpiDbIntegrityWalk ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_INTEGRITY_INFO *Info = (ACPI_INTEGRITY_INFO *) Context; ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_OPERAND_OBJECT *Object; BOOLEAN Alias = TRUE; Info->Nodes++; /* Verify the NS node, and dereference aliases */ while (Alias) { if (ACPI_GET_DESCRIPTOR_TYPE (Node) != ACPI_DESC_TYPE_NAMED) { AcpiOsPrintf ( "Invalid Descriptor Type for Node %p [%s] - " "is %2.2X should be %2.2X\n", Node, AcpiUtGetDescriptorName (Node), ACPI_GET_DESCRIPTOR_TYPE (Node), ACPI_DESC_TYPE_NAMED); return (AE_OK); } if ((Node->Type == ACPI_TYPE_LOCAL_ALIAS) || (Node->Type == ACPI_TYPE_LOCAL_METHOD_ALIAS)) { Node = (ACPI_NAMESPACE_NODE *) Node->Object; } else { Alias = FALSE; } } if (Node->Type > ACPI_TYPE_LOCAL_MAX) { AcpiOsPrintf ("Invalid Object Type for Node %p, Type = %X\n", Node, Node->Type); return (AE_OK); } if (!AcpiUtValidNameseg (Node->Name.Ascii)) { AcpiOsPrintf ("Invalid AcpiName for Node %p\n", Node); return (AE_OK); } Object = AcpiNsGetAttachedObject (Node); if (Object) { Info->Objects++; if (ACPI_GET_DESCRIPTOR_TYPE (Object) != ACPI_DESC_TYPE_OPERAND) { AcpiOsPrintf ("Invalid Descriptor Type for Object %p [%s]\n", Object, AcpiUtGetDescriptorName (Object)); } } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbCheckIntegrity * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Check entire namespace for data structure integrity * ******************************************************************************/ void AcpiDbCheckIntegrity ( void) { ACPI_INTEGRITY_INFO Info = {0,0}; /* Search all nodes in namespace */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbIntegrityWalk, NULL, (void *) &Info, NULL); AcpiOsPrintf ("Verified %u namespace nodes with %u Objects\n", Info.Nodes, Info.Objects); } /******************************************************************************* * * FUNCTION: AcpiDbWalkForReferences * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Check if this namespace object refers to the target object * that is passed in as the context value. * * Note: Currently doesn't check subobjects within the Node's object * ******************************************************************************/ static ACPI_STATUS AcpiDbWalkForReferences ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_OPERAND_OBJECT *ObjDesc = (ACPI_OPERAND_OBJECT *) Context; ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; /* Check for match against the namespace node itself */ if (Node == (void *) ObjDesc) { AcpiOsPrintf ("Object is a Node [%4.4s]\n", AcpiUtGetNodeName (Node)); } /* Check for match against the object attached to the node */ if (AcpiNsGetAttachedObject (Node) == ObjDesc) { AcpiOsPrintf ("Reference at Node->Object %p [%4.4s]\n", Node, AcpiUtGetNodeName (Node)); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbFindReferences * * PARAMETERS: ObjectArg - String with hex value of the object * * RETURN: None * * DESCRIPTION: Search namespace for all references to the input object * ******************************************************************************/ void AcpiDbFindReferences ( char *ObjectArg) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_SIZE Address; /* Convert string to object pointer */ Address = strtoul (ObjectArg, NULL, 16); ObjDesc = ACPI_TO_POINTER (Address); /* Search all nodes in namespace */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbWalkForReferences, NULL, (void *) ObjDesc, NULL); } /******************************************************************************* * * FUNCTION: AcpiDbBusWalk * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Display info about device objects that have a corresponding * _PRT method. * ******************************************************************************/ static ACPI_STATUS AcpiDbBusWalk ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_STATUS Status; ACPI_BUFFER Buffer; ACPI_NAMESPACE_NODE *TempNode; ACPI_DEVICE_INFO *Info; UINT32 i; if ((Node->Type != ACPI_TYPE_DEVICE) && (Node->Type != ACPI_TYPE_PROCESSOR)) { return (AE_OK); } /* Exit if there is no _PRT under this device */ Status = AcpiGetHandle (Node, METHOD_NAME__PRT, ACPI_CAST_PTR (ACPI_HANDLE, &TempNode)); if (ACPI_FAILURE (Status)) { return (AE_OK); } /* Get the full path to this device object */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (ObjHandle, &Buffer, TRUE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could Not get pathname for object %p\n", ObjHandle); return (AE_OK); } Status = AcpiGetObjectInfo (ObjHandle, &Info); if (ACPI_FAILURE (Status)) { return (AE_OK); } /* Display the full path */ AcpiOsPrintf ("%-32s Type %X", (char *) Buffer.Pointer, Node->Type); ACPI_FREE (Buffer.Pointer); if (Info->Flags & ACPI_PCI_ROOT_BRIDGE) { AcpiOsPrintf (" - Is PCI Root Bridge"); } AcpiOsPrintf ("\n"); /* _PRT info */ AcpiOsPrintf ("_PRT: %p\n", TempNode); /* Dump _ADR, _HID, _UID, _CID */ if (Info->Valid & ACPI_VALID_ADR) { AcpiOsPrintf ("_ADR: %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Info->Address)); } else { AcpiOsPrintf ("_ADR: \n"); } if (Info->Valid & ACPI_VALID_HID) { AcpiOsPrintf ("_HID: %s\n", Info->HardwareId.String); } else { AcpiOsPrintf ("_HID: \n"); } if (Info->Valid & ACPI_VALID_UID) { AcpiOsPrintf ("_UID: %s\n", Info->UniqueId.String); } else { AcpiOsPrintf ("_UID: \n"); } if (Info->Valid & ACPI_VALID_CID) { for (i = 0; i < Info->CompatibleIdList.Count; i++) { AcpiOsPrintf ("_CID: %s\n", Info->CompatibleIdList.Ids[i].String); } } else { AcpiOsPrintf ("_CID: \n"); } ACPI_FREE (Info); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbGetBusInfo * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display info about system buses. * ******************************************************************************/ void AcpiDbGetBusInfo ( void) { /* Search all nodes in namespace */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbBusWalk, NULL, NULL, NULL); } acpica-unix-20250404/source/components/debugger/dbhistry.c0000775000175000017500000001657614773714132023025 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dbhistry - debugger HISTORY command * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdebug.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbhistry") #define HI_NO_HISTORY 0 #define HI_RECORD_HISTORY 1 #define HISTORY_SIZE 40 typedef struct HistoryInfo { char *Command; UINT32 CmdNum; } HISTORY_INFO; static HISTORY_INFO AcpiGbl_HistoryBuffer[HISTORY_SIZE]; static UINT16 AcpiGbl_LoHistory = 0; static UINT16 AcpiGbl_NumHistory = 0; static UINT16 AcpiGbl_NextHistoryIndex = 0; /******************************************************************************* * * FUNCTION: AcpiDbAddToHistory * * PARAMETERS: CommandLine - Command to add * * RETURN: None * * DESCRIPTION: Add a command line to the history buffer. * ******************************************************************************/ void AcpiDbAddToHistory ( char *CommandLine) { UINT16 CmdLen; UINT16 BufferLen; /* Put command into the next available slot */ CmdLen = (UINT16) strlen (CommandLine); if (!CmdLen) { return; } if (AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command != NULL) { BufferLen = (UINT16) strlen ( AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command); if (CmdLen > BufferLen) { AcpiOsFree (AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex]. Command); AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command = AcpiOsAllocate (CmdLen + 1); } } else { AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command = AcpiOsAllocate (CmdLen + 1); } strcpy (AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command, CommandLine); AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].CmdNum = AcpiGbl_NextCmdNum; /* Adjust indexes */ if ((AcpiGbl_NumHistory == HISTORY_SIZE) && (AcpiGbl_NextHistoryIndex == AcpiGbl_LoHistory)) { AcpiGbl_LoHistory++; if (AcpiGbl_LoHistory >= HISTORY_SIZE) { AcpiGbl_LoHistory = 0; } } AcpiGbl_NextHistoryIndex++; if (AcpiGbl_NextHistoryIndex >= HISTORY_SIZE) { AcpiGbl_NextHistoryIndex = 0; } AcpiGbl_NextCmdNum++; if (AcpiGbl_NumHistory < HISTORY_SIZE) { AcpiGbl_NumHistory++; } } /******************************************************************************* * * FUNCTION: AcpiDbDisplayHistory * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display the contents of the history buffer * ******************************************************************************/ void AcpiDbDisplayHistory ( void) { UINT32 i; UINT16 HistoryIndex; HistoryIndex = AcpiGbl_LoHistory; /* Dump entire history buffer */ for (i = 0; i < AcpiGbl_NumHistory; i++) { if (AcpiGbl_HistoryBuffer[HistoryIndex].Command) { AcpiOsPrintf ("%3u %s\n", AcpiGbl_HistoryBuffer[HistoryIndex].CmdNum, AcpiGbl_HistoryBuffer[HistoryIndex].Command); } HistoryIndex++; if (HistoryIndex >= HISTORY_SIZE) { HistoryIndex = 0; } } } /******************************************************************************* * * FUNCTION: AcpiDbGetFromHistory * * PARAMETERS: CommandNumArg - String containing the number of the * command to be retrieved * * RETURN: Pointer to the retrieved command. Null on error. * * DESCRIPTION: Get a command from the history buffer * ******************************************************************************/ char * AcpiDbGetFromHistory ( char *CommandNumArg) { UINT32 CmdNum; if (CommandNumArg == NULL) { CmdNum = AcpiGbl_NextCmdNum - 1; } else { CmdNum = strtoul (CommandNumArg, NULL, 0); } return (AcpiDbGetHistoryByIndex (CmdNum)); } /******************************************************************************* * * FUNCTION: AcpiDbGetHistoryByIndex * * PARAMETERS: CmdNum - Index of the desired history entry. * Values are 0...(AcpiGbl_NextCmdNum - 1) * * RETURN: Pointer to the retrieved command. Null on error. * * DESCRIPTION: Get a command from the history buffer * ******************************************************************************/ char * AcpiDbGetHistoryByIndex ( UINT32 CmdNum) { UINT32 i; UINT16 HistoryIndex; /* Search history buffer */ HistoryIndex = AcpiGbl_LoHistory; for (i = 0; i < AcpiGbl_NumHistory; i++) { if (AcpiGbl_HistoryBuffer[HistoryIndex].CmdNum == CmdNum) { /* Found the command, return it */ return (AcpiGbl_HistoryBuffer[HistoryIndex].Command); } /* History buffer is circular */ HistoryIndex++; if (HistoryIndex >= HISTORY_SIZE) { HistoryIndex = 0; } } AcpiOsPrintf ("Invalid history number: %u\n", HistoryIndex); return (NULL); } acpica-unix-20250404/source/components/debugger/dbtest.c0000775000175000017500000010305114773714132022443 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbtest - Various debug-related tests * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdebug.h" #include "acnamesp.h" #include "acpredef.h" #include "acinterp.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbtest") /* Local prototypes */ static void AcpiDbTestAllObjects ( void); static ACPI_STATUS AcpiDbTestOneObject ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static ACPI_STATUS AcpiDbTestIntegerType ( ACPI_NAMESPACE_NODE *Node, UINT32 BitLength); static ACPI_STATUS AcpiDbTestBufferType ( ACPI_NAMESPACE_NODE *Node, UINT32 BitLength); static ACPI_STATUS AcpiDbTestStringType ( ACPI_NAMESPACE_NODE *Node, UINT32 ByteLength); static ACPI_STATUS AcpiDbTestPackageType ( ACPI_NAMESPACE_NODE *Node); static ACPI_STATUS AcpiDbTestFieldUnitType ( ACPI_OPERAND_OBJECT *ObjDesc); static ACPI_STATUS AcpiDbReadFromObject ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_TYPE ExpectedType, ACPI_OBJECT **Value); static ACPI_STATUS AcpiDbWriteToObject ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT *Value); static void AcpiDbEvaluateAllPredefinedNames ( char *CountArg); static ACPI_STATUS AcpiDbEvaluateOnePredefinedName ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); /* * Test subcommands */ static ACPI_DB_ARGUMENT_INFO AcpiDbTestTypes [] = { {"OBJECTS"}, {"PREDEFINED"}, {NULL} /* Must be null terminated */ }; #define CMD_TEST_OBJECTS 0 #define CMD_TEST_PREDEFINED 1 #define BUFFER_FILL_VALUE 0xFF /* * Support for the special debugger read/write control methods. * These methods are installed into the current namespace and are * used to read and write the various namespace objects. The point * is to force the AML interpreter do all of the work. */ #define ACPI_DB_READ_METHOD "\\_T98" #define ACPI_DB_WRITE_METHOD "\\_T99" static ACPI_HANDLE ReadHandle = NULL; static ACPI_HANDLE WriteHandle = NULL; /* ASL Definitions of the debugger read/write control methods. AML below. */ #if 0 DefinitionBlock ("ssdt.aml", "SSDT", 2, "Intel", "DEBUG", 0x00000001) { Method (_T98, 1, NotSerialized) /* Read */ { Return (DeRefOf (Arg0)) } } DefinitionBlock ("ssdt2.aml", "SSDT", 2, "Intel", "DEBUG", 0x00000001) { Method (_T99, 2, NotSerialized) /* Write */ { Store (Arg1, Arg0) } } #endif static unsigned char ReadMethodCode[] = { 0x53,0x53,0x44,0x54,0x2E,0x00,0x00,0x00, /* 00000000 "SSDT...." */ 0x02,0xC9,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 "..Intel." */ 0x44,0x45,0x42,0x55,0x47,0x00,0x00,0x00, /* 00000010 "DEBUG..." */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x18,0x12,0x13,0x20,0x14,0x09,0x5F,0x54, /* 00000020 "... .._T" */ 0x39,0x38,0x01,0xA4,0x83,0x68 /* 00000028 "98...h" */ }; static unsigned char WriteMethodCode[] = { 0x53,0x53,0x44,0x54,0x2E,0x00,0x00,0x00, /* 00000000 "SSDT...." */ 0x02,0x15,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 "..Intel." */ 0x44,0x45,0x42,0x55,0x47,0x00,0x00,0x00, /* 00000010 "DEBUG..." */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x18,0x12,0x13,0x20,0x14,0x09,0x5F,0x54, /* 00000020 "... .._T" */ 0x39,0x39,0x02,0x70,0x69,0x68 /* 00000028 "99.pih" */ }; /******************************************************************************* * * FUNCTION: AcpiDbExecuteTest * * PARAMETERS: TypeArg - Subcommand * * RETURN: None * * DESCRIPTION: Execute various debug tests. * * Note: Code is prepared for future expansion of the TEST command. * ******************************************************************************/ void AcpiDbExecuteTest ( char *TypeArg) { UINT32 Temp; AcpiUtStrupr (TypeArg); Temp = AcpiDbMatchArgument (TypeArg, AcpiDbTestTypes); if (Temp == ACPI_TYPE_NOT_FOUND) { AcpiOsPrintf ("Invalid or unsupported argument\n"); return; } switch (Temp) { case CMD_TEST_OBJECTS: AcpiDbTestAllObjects (); break; case CMD_TEST_PREDEFINED: AcpiDbEvaluateAllPredefinedNames (NULL); break; default: break; } } /******************************************************************************* * * FUNCTION: AcpiDbTestAllObjects * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: This test implements the OBJECTS subcommand. It exercises the * namespace by reading/writing/comparing all data objects such * as integers, strings, buffers, fields, buffer fields, etc. * ******************************************************************************/ static void AcpiDbTestAllObjects ( void) { ACPI_STATUS Status; /* Install the debugger read-object control method if necessary */ if (!ReadHandle) { Status = AcpiInstallMethod (ReadMethodCode); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("%s, Could not install debugger read method\n", AcpiFormatException (Status)); return; } Status = AcpiGetHandle (NULL, ACPI_DB_READ_METHOD, &ReadHandle); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not obtain handle for debug method %s\n", ACPI_DB_READ_METHOD); return; } } /* Install the debugger write-object control method if necessary */ if (!WriteHandle) { Status = AcpiInstallMethod (WriteMethodCode); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("%s, Could not install debugger write method\n", AcpiFormatException (Status)); return; } Status = AcpiGetHandle (NULL, ACPI_DB_WRITE_METHOD, &WriteHandle); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not obtain handle for debug method %s\n", ACPI_DB_WRITE_METHOD); return; } } /* Walk the entire namespace, testing each supported named data object */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbTestOneObject, NULL, NULL, NULL); } /******************************************************************************* * * FUNCTION: AcpiDbTestOneObject * * PARAMETERS: ACPI_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Test one namespace object. Supported types are Integer, * String, Buffer, Package, BufferField, and FieldUnit. * All other object types are simply ignored. * ******************************************************************************/ static ACPI_STATUS AcpiDbTestOneObject ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OBJECT_TYPE LocalType; UINT32 BitLength = 0; UINT32 ByteLength = 0; ACPI_STATUS Status = AE_OK; Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); ObjDesc = Node->Object; /* * For the supported types, get the actual bit length or * byte length. Map the type to one of Integer/String/Buffer. */ switch (Node->Type) { case ACPI_TYPE_INTEGER: /* Integer width is either 32 or 64 */ LocalType = ACPI_TYPE_INTEGER; BitLength = AcpiGbl_IntegerBitWidth; break; case ACPI_TYPE_STRING: LocalType = ACPI_TYPE_STRING; ByteLength = ObjDesc->String.Length; break; case ACPI_TYPE_BUFFER: LocalType = ACPI_TYPE_BUFFER; ByteLength = ObjDesc->Buffer.Length; BitLength = ByteLength * 8; break; case ACPI_TYPE_PACKAGE: LocalType = ACPI_TYPE_PACKAGE; break; case ACPI_TYPE_FIELD_UNIT: case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: LocalType = ACPI_TYPE_FIELD_UNIT; break; case ACPI_TYPE_BUFFER_FIELD: /* * The returned object will be a Buffer if the field length * is larger than the size of an Integer (32 or 64 bits * depending on the DSDT version). */ LocalType = ACPI_TYPE_INTEGER; if (ObjDesc) { BitLength = ObjDesc->CommonField.BitLength; ByteLength = ACPI_ROUND_BITS_UP_TO_BYTES (BitLength); if (BitLength > AcpiGbl_IntegerBitWidth) { LocalType = ACPI_TYPE_BUFFER; } } break; default: /* Ignore all non-data types - Methods, Devices, Scopes, etc. */ return (AE_OK); } /* Emit the common prefix: Type:Name */ AcpiOsPrintf ("%14s: %4.4s", AcpiUtGetTypeName (Node->Type), Node->Name.Ascii); if (!ObjDesc) { AcpiOsPrintf (" No attached sub-object, ignoring\n"); return (AE_OK); } /* At this point, we have resolved the object to one of the major types */ switch (LocalType) { case ACPI_TYPE_INTEGER: Status = AcpiDbTestIntegerType (Node, BitLength); break; case ACPI_TYPE_STRING: Status = AcpiDbTestStringType (Node, ByteLength); break; case ACPI_TYPE_BUFFER: Status = AcpiDbTestBufferType (Node, BitLength); break; case ACPI_TYPE_PACKAGE: Status = AcpiDbTestPackageType (Node); break; case ACPI_TYPE_FIELD_UNIT: Status = AcpiDbTestFieldUnitType (ObjDesc); break; default: AcpiOsPrintf (" Ignoring, type not implemented (%2.2X)", LocalType); break; } /* Exit on error, but don't abort the namespace walk */ if (ACPI_FAILURE (Status)) { Status = AE_OK; } AcpiOsPrintf ("\n"); return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbTestIntegerType * * PARAMETERS: Node - Parent NS node for the object * BitLength - Actual length of the object. Used for * support of arbitrary length FieldUnit * and BufferField objects. * * RETURN: Status * * DESCRIPTION: Test read/write for an Integer-valued object. Performs a * write/read/compare of an arbitrary new value, then performs * a write/read/compare of the original value. * ******************************************************************************/ static ACPI_STATUS AcpiDbTestIntegerType ( ACPI_NAMESPACE_NODE *Node, UINT32 BitLength) { ACPI_OBJECT *Temp1 = NULL; ACPI_OBJECT *Temp2 = NULL; ACPI_OBJECT *Temp3 = NULL; ACPI_OBJECT WriteValue; UINT64 ValueToWrite; ACPI_STATUS Status; if (BitLength > 64) { AcpiOsPrintf (" Invalid length for an Integer: %u", BitLength); return (AE_OK); } /* Read the original value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_INTEGER, &Temp1); if (ACPI_FAILURE (Status)) { return (Status); } AcpiOsPrintf (ACPI_DEBUG_LENGTH_FORMAT " %8.8X%8.8X", BitLength, ACPI_ROUND_BITS_UP_TO_BYTES (BitLength), ACPI_FORMAT_UINT64 (Temp1->Integer.Value)); ValueToWrite = ACPI_UINT64_MAX >> (64 - BitLength); if (Temp1->Integer.Value == ValueToWrite) { ValueToWrite = 0; } /* Write a new value */ WriteValue.Type = ACPI_TYPE_INTEGER; WriteValue.Integer.Value = ValueToWrite; Status = AcpiDbWriteToObject (Node, &WriteValue); if (ACPI_FAILURE (Status)) { goto Exit; } /* Ensure that we can read back the new value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_INTEGER, &Temp2); if (ACPI_FAILURE (Status)) { goto Exit; } if (Temp2->Integer.Value != ValueToWrite) { AcpiOsPrintf (" MISMATCH 2: %8.8X%8.8X, expecting %8.8X%8.8X", ACPI_FORMAT_UINT64 (Temp2->Integer.Value), ACPI_FORMAT_UINT64 (ValueToWrite)); } /* Write back the original value */ WriteValue.Integer.Value = Temp1->Integer.Value; Status = AcpiDbWriteToObject (Node, &WriteValue); if (ACPI_FAILURE (Status)) { goto Exit; } /* Ensure that we can read back the original value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_INTEGER, &Temp3); if (ACPI_FAILURE (Status)) { goto Exit; } if (Temp3->Integer.Value != Temp1->Integer.Value) { AcpiOsPrintf (" MISMATCH 3: %8.8X%8.8X, expecting %8.8X%8.8X", ACPI_FORMAT_UINT64 (Temp3->Integer.Value), ACPI_FORMAT_UINT64 (Temp1->Integer.Value)); } Exit: if (Temp1) {AcpiOsFree (Temp1);} if (Temp2) {AcpiOsFree (Temp2);} if (Temp3) {AcpiOsFree (Temp3);} return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbTestBufferType * * PARAMETERS: Node - Parent NS node for the object * BitLength - Actual length of the object. * * RETURN: Status * * DESCRIPTION: Test read/write for an Buffer-valued object. Performs a * write/read/compare of an arbitrary new value, then performs * a write/read/compare of the original value. * ******************************************************************************/ static ACPI_STATUS AcpiDbTestBufferType ( ACPI_NAMESPACE_NODE *Node, UINT32 BitLength) { ACPI_OBJECT *Temp1 = NULL; ACPI_OBJECT *Temp2 = NULL; ACPI_OBJECT *Temp3 = NULL; UINT8 *Buffer; ACPI_OBJECT WriteValue; ACPI_STATUS Status; UINT32 ByteLength; UINT32 i; UINT8 ExtraBits; ByteLength = ACPI_ROUND_BITS_UP_TO_BYTES (BitLength); if (ByteLength == 0) { AcpiOsPrintf (" Ignoring zero length buffer"); return (AE_OK); } /* Allocate a local buffer */ Buffer = ACPI_ALLOCATE_ZEROED (ByteLength); if (!Buffer) { return (AE_NO_MEMORY); } /* Read the original value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_BUFFER, &Temp1); if (ACPI_FAILURE (Status)) { goto Exit; } /* Emit a few bytes of the buffer */ AcpiOsPrintf (ACPI_DEBUG_LENGTH_FORMAT, BitLength, Temp1->Buffer.Length); for (i = 0; ((i < 8) && (i < ByteLength)); i++) { AcpiOsPrintf (" %2.2X", Temp1->Buffer.Pointer[i]); } AcpiOsPrintf ("... "); /* * Write a new value. * * Handle possible extra bits at the end of the buffer. Can * happen for FieldUnits larger than an integer, but the bit * count is not an integral number of bytes. Zero out the * unused bits. */ memset (Buffer, BUFFER_FILL_VALUE, ByteLength); ExtraBits = BitLength % 8; if (ExtraBits) { Buffer [ByteLength - 1] = ACPI_MASK_BITS_ABOVE (ExtraBits); } WriteValue.Type = ACPI_TYPE_BUFFER; WriteValue.Buffer.Length = ByteLength; WriteValue.Buffer.Pointer = Buffer; Status = AcpiDbWriteToObject (Node, &WriteValue); if (ACPI_FAILURE (Status)) { goto Exit; } /* Ensure that we can read back the new value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_BUFFER, &Temp2); if (ACPI_FAILURE (Status)) { goto Exit; } if (memcmp (Temp2->Buffer.Pointer, Buffer, ByteLength)) { AcpiOsPrintf (" MISMATCH 2: New buffer value"); } /* Write back the original value */ WriteValue.Buffer.Length = ByteLength; WriteValue.Buffer.Pointer = Temp1->Buffer.Pointer; Status = AcpiDbWriteToObject (Node, &WriteValue); if (ACPI_FAILURE (Status)) { goto Exit; } /* Ensure that we can read back the original value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_BUFFER, &Temp3); if (ACPI_FAILURE (Status)) { goto Exit; } if (memcmp (Temp1->Buffer.Pointer, Temp3->Buffer.Pointer, ByteLength)) { AcpiOsPrintf (" MISMATCH 3: While restoring original buffer"); } Exit: ACPI_FREE (Buffer); if (Temp1) {AcpiOsFree (Temp1);} if (Temp2) {AcpiOsFree (Temp2);} if (Temp3) {AcpiOsFree (Temp3);} return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbTestStringType * * PARAMETERS: Node - Parent NS node for the object * ByteLength - Actual length of the object. * * RETURN: Status * * DESCRIPTION: Test read/write for an String-valued object. Performs a * write/read/compare of an arbitrary new value, then performs * a write/read/compare of the original value. * ******************************************************************************/ static ACPI_STATUS AcpiDbTestStringType ( ACPI_NAMESPACE_NODE *Node, UINT32 ByteLength) { ACPI_OBJECT *Temp1 = NULL; ACPI_OBJECT *Temp2 = NULL; ACPI_OBJECT *Temp3 = NULL; char *ValueToWrite = "Test String from AML Debugger"; ACPI_OBJECT WriteValue; ACPI_STATUS Status; /* Read the original value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_STRING, &Temp1); if (ACPI_FAILURE (Status)) { return (Status); } AcpiOsPrintf (ACPI_DEBUG_LENGTH_FORMAT " \"%s\"", (Temp1->String.Length * 8), Temp1->String.Length, Temp1->String.Pointer); /* Write a new value */ WriteValue.Type = ACPI_TYPE_STRING; WriteValue.String.Length = strlen (ValueToWrite); WriteValue.String.Pointer = ValueToWrite; Status = AcpiDbWriteToObject (Node, &WriteValue); if (ACPI_FAILURE (Status)) { goto Exit; } /* Ensure that we can read back the new value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_STRING, &Temp2); if (ACPI_FAILURE (Status)) { goto Exit; } if (strcmp (Temp2->String.Pointer, ValueToWrite)) { AcpiOsPrintf (" MISMATCH 2: %s, expecting %s", Temp2->String.Pointer, ValueToWrite); } /* Write back the original value */ WriteValue.String.Length = strlen (Temp1->String.Pointer); WriteValue.String.Pointer = Temp1->String.Pointer; Status = AcpiDbWriteToObject (Node, &WriteValue); if (ACPI_FAILURE (Status)) { goto Exit; } /* Ensure that we can read back the original value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_STRING, &Temp3); if (ACPI_FAILURE (Status)) { goto Exit; } if (strcmp (Temp1->String.Pointer, Temp3->String.Pointer)) { AcpiOsPrintf (" MISMATCH 3: %s, expecting %s", Temp3->String.Pointer, Temp1->String.Pointer); } Exit: if (Temp1) {AcpiOsFree (Temp1);} if (Temp2) {AcpiOsFree (Temp2);} if (Temp3) {AcpiOsFree (Temp3);} return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbTestPackageType * * PARAMETERS: Node - Parent NS node for the object * * RETURN: Status * * DESCRIPTION: Test read for a Package object. * ******************************************************************************/ static ACPI_STATUS AcpiDbTestPackageType ( ACPI_NAMESPACE_NODE *Node) { ACPI_OBJECT *Temp1 = NULL; ACPI_STATUS Status; /* Read the original value */ Status = AcpiDbReadFromObject (Node, ACPI_TYPE_PACKAGE, &Temp1); if (ACPI_FAILURE (Status)) { return (Status); } AcpiOsPrintf (" %.2X Elements", Temp1->Package.Count); AcpiOsFree (Temp1); return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbTestFieldUnitType * * PARAMETERS: ObjDesc - A field unit object * * RETURN: Status * * DESCRIPTION: Test read/write on a named field unit. * ******************************************************************************/ static ACPI_STATUS AcpiDbTestFieldUnitType ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_OPERAND_OBJECT *RegionObj; UINT32 BitLength = 0; UINT32 ByteLength = 0; ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *RetBufferDesc; /* Supported spaces are memory/io/pci_config */ RegionObj = ObjDesc->Field.RegionObj; switch (RegionObj->Region.SpaceId) { case ACPI_ADR_SPACE_SYSTEM_MEMORY: case ACPI_ADR_SPACE_SYSTEM_IO: case ACPI_ADR_SPACE_PCI_CONFIG: /* Need the interpreter to execute */ AcpiUtAcquireMutex (ACPI_MTX_INTERPRETER); AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); /* Exercise read-then-write */ Status = AcpiExReadDataFromField (NULL, ObjDesc, &RetBufferDesc); if (Status == AE_OK) { AcpiExWriteDataToField (RetBufferDesc, ObjDesc, NULL); AcpiUtRemoveReference (RetBufferDesc); } AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); AcpiUtReleaseMutex (ACPI_MTX_INTERPRETER); BitLength = ObjDesc->CommonField.BitLength; ByteLength = ACPI_ROUND_BITS_UP_TO_BYTES (BitLength); AcpiOsPrintf (ACPI_DEBUG_LENGTH_FORMAT " [%s]", BitLength, ByteLength, AcpiUtGetRegionName (RegionObj->Region.SpaceId)); return (Status); default: AcpiOsPrintf ( " %s address space is not supported in this command [%4.4s]", AcpiUtGetRegionName (RegionObj->Region.SpaceId), RegionObj->Region.Node->Name.Ascii); return (AE_OK); } } /******************************************************************************* * * FUNCTION: AcpiDbReadFromObject * * PARAMETERS: Node - Parent NS node for the object * ExpectedType - Object type expected from the read * Value - Where the value read is returned * * RETURN: Status * * DESCRIPTION: Performs a read from the specified object by invoking the * special debugger control method that reads the object. Thus, * the AML interpreter is doing all of the work, increasing the * validity of the test. * ******************************************************************************/ static ACPI_STATUS AcpiDbReadFromObject ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_TYPE ExpectedType, ACPI_OBJECT **Value) { ACPI_OBJECT *RetValue; ACPI_OBJECT_LIST ParamObjects; ACPI_OBJECT Params[2]; ACPI_BUFFER ReturnObj; ACPI_STATUS Status; Params[0].Type = ACPI_TYPE_LOCAL_REFERENCE; Params[0].Reference.ActualType = Node->Type; Params[0].Reference.Handle = ACPI_CAST_PTR (ACPI_HANDLE, Node); ParamObjects.Count = 1; ParamObjects.Pointer = Params; ReturnObj.Length = ACPI_ALLOCATE_BUFFER; AcpiGbl_MethodExecuting = TRUE; Status = AcpiEvaluateObject (ReadHandle, NULL, &ParamObjects, &ReturnObj); AcpiGbl_MethodExecuting = FALSE; if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not read from object, %s", AcpiFormatException (Status)); return (Status); } RetValue = (ACPI_OBJECT *) ReturnObj.Pointer; switch (RetValue->Type) { case ACPI_TYPE_INTEGER: case ACPI_TYPE_BUFFER: case ACPI_TYPE_STRING: case ACPI_TYPE_PACKAGE: /* * Did we receive the type we wanted? Most important for the * Integer/Buffer case (when a field is larger than an Integer, * it should return a Buffer). */ if (RetValue->Type != ExpectedType) { AcpiOsPrintf (" Type mismatch: Expected %s, Received %s", AcpiUtGetTypeName (ExpectedType), AcpiUtGetTypeName (RetValue->Type)); AcpiOsFree (ReturnObj.Pointer); return (AE_TYPE); } *Value = RetValue; break; default: AcpiOsPrintf (" Unsupported return object type, %s", AcpiUtGetTypeName (RetValue->Type)); AcpiOsFree (ReturnObj.Pointer); return (AE_TYPE); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbWriteToObject * * PARAMETERS: Node - Parent NS node for the object * Value - Value to be written * * RETURN: Status * * DESCRIPTION: Performs a write to the specified object by invoking the * special debugger control method that writes the object. Thus, * the AML interpreter is doing all of the work, increasing the * validity of the test. * ******************************************************************************/ static ACPI_STATUS AcpiDbWriteToObject ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT *Value) { ACPI_OBJECT_LIST ParamObjects; ACPI_OBJECT Params[2]; ACPI_STATUS Status; Params[0].Type = ACPI_TYPE_LOCAL_REFERENCE; Params[0].Reference.ActualType = Node->Type; Params[0].Reference.Handle = ACPI_CAST_PTR (ACPI_HANDLE, Node); /* Copy the incoming user parameter */ memcpy (&Params[1], Value, sizeof (ACPI_OBJECT)); ParamObjects.Count = 2; ParamObjects.Pointer = Params; AcpiGbl_MethodExecuting = TRUE; Status = AcpiEvaluateObject (WriteHandle, NULL, &ParamObjects, NULL); AcpiGbl_MethodExecuting = FALSE; if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not write to object, %s", AcpiFormatException (Status)); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbEvaluateAllPredefinedNames * * PARAMETERS: CountArg - Max number of methods to execute * * RETURN: None * * DESCRIPTION: Namespace batch execution. Execute predefined names in the * namespace, up to the max count, if specified. * ******************************************************************************/ static void AcpiDbEvaluateAllPredefinedNames ( char *CountArg) { ACPI_DB_EXECUTE_WALK Info; Info.Count = 0; Info.MaxCount = ACPI_UINT32_MAX; if (CountArg) { Info.MaxCount = strtoul (CountArg, NULL, 0); } /* Search all nodes in namespace */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbEvaluateOnePredefinedName, NULL, (void *) &Info, NULL); AcpiOsPrintf ( "Evaluated %u predefined names in the namespace\n", Info.Count); } /******************************************************************************* * * FUNCTION: AcpiDbEvaluateOnePredefinedName * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Batch execution module. Currently only executes predefined * ACPI names. * ******************************************************************************/ static ACPI_STATUS AcpiDbEvaluateOnePredefinedName ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_DB_EXECUTE_WALK *Info = (ACPI_DB_EXECUTE_WALK *) Context; char *Pathname; const ACPI_PREDEFINED_INFO *Predefined; ACPI_DEVICE_INFO *ObjInfo; ACPI_OBJECT_LIST ParamObjects; ACPI_OBJECT Params[ACPI_METHOD_NUM_ARGS]; ACPI_OBJECT *ThisParam; ACPI_BUFFER ReturnObj; ACPI_STATUS Status; UINT16 ArgTypeList; UINT8 ArgCount; UINT8 ArgType; UINT32 i; /* The name must be a predefined ACPI name */ Predefined = AcpiUtMatchPredefinedMethod (Node->Name.Ascii); if (!Predefined) { return (AE_OK); } if (Node->Type == ACPI_TYPE_LOCAL_SCOPE) { return (AE_OK); } Pathname = AcpiNsGetNormalizedPathname (Node, TRUE); if (!Pathname) { return (AE_OK); } /* Get the object info for number of method parameters */ Status = AcpiGetObjectInfo (ObjHandle, &ObjInfo); if (ACPI_FAILURE (Status)) { ACPI_FREE (Pathname); return (Status); } ParamObjects.Count = 0; ParamObjects.Pointer = NULL; if (ObjInfo->Type == ACPI_TYPE_METHOD) { /* Setup default parameters (with proper types) */ ArgTypeList = Predefined->Info.ArgumentList; ArgCount = METHOD_GET_ARG_COUNT (ArgTypeList); /* * Setup the ACPI-required number of arguments, regardless of what * the actual method defines. If there is a difference, then the * method is wrong and a warning will be issued during execution. */ ThisParam = Params; for (i = 0; i < ArgCount; i++) { ArgType = METHOD_GET_NEXT_TYPE (ArgTypeList); ThisParam->Type = ArgType; switch (ArgType) { case ACPI_TYPE_INTEGER: ThisParam->Integer.Value = 1; break; case ACPI_TYPE_STRING: ThisParam->String.Pointer = "This is the default argument string"; ThisParam->String.Length = strlen (ThisParam->String.Pointer); break; case ACPI_TYPE_BUFFER: ThisParam->Buffer.Pointer = (UINT8 *) Params; /* just a garbage buffer */ ThisParam->Buffer.Length = 48; break; case ACPI_TYPE_PACKAGE: ThisParam->Package.Elements = NULL; ThisParam->Package.Count = 0; break; default: AcpiOsPrintf ("%s: Unsupported argument type: %u\n", Pathname, ArgType); break; } ThisParam++; } ParamObjects.Count = ArgCount; ParamObjects.Pointer = Params; } ACPI_FREE (ObjInfo); ReturnObj.Pointer = NULL; ReturnObj.Length = ACPI_ALLOCATE_BUFFER; /* Do the actual method execution */ AcpiGbl_MethodExecuting = TRUE; Status = AcpiEvaluateObject (Node, NULL, &ParamObjects, &ReturnObj); AcpiOsPrintf ("%-32s returned %s\n", Pathname, AcpiFormatException (Status)); AcpiGbl_MethodExecuting = FALSE; ACPI_FREE (Pathname); /* Ignore status from method execution */ Status = AE_OK; /* Update count, check if we have executed enough methods */ Info->Count++; if (Info->Count >= Info->MaxCount) { Status = AE_CTRL_TERMINATE; } return (Status); } acpica-unix-20250404/source/components/debugger/dbdisply.c0000775000175000017500000010241014773714132022766 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbdisply - debug display commands * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acdispat.h" #include "acnamesp.h" #include "acparser.h" #include "acinterp.h" #include "acevents.h" #include "acdebug.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbdisply") /* Local prototypes */ static void AcpiDbDumpParserDescriptor ( ACPI_PARSE_OBJECT *Op); static void * AcpiDbGetPointer ( void *Target); static ACPI_STATUS AcpiDbDisplayNonRootHandlers ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); /* * System handler information. * Used for Handlers command, in AcpiDbDisplayHandlers. */ #define ACPI_PREDEFINED_PREFIX "%25s (%.2X) : " #define ACPI_HANDLER_NAME_STRING "%30s : " #define ACPI_HANDLER_PRESENT_STRING "%-9s (%p)\n" #define ACPI_HANDLER_PRESENT_STRING2 "%-9s (%p)" #define ACPI_HANDLER_NOT_PRESENT_STRING "%-9s\n" /* All predefined Address Space IDs */ static ACPI_ADR_SPACE_TYPE AcpiGbl_SpaceIdList[] = { ACPI_ADR_SPACE_SYSTEM_MEMORY, ACPI_ADR_SPACE_SYSTEM_IO, ACPI_ADR_SPACE_PCI_CONFIG, ACPI_ADR_SPACE_EC, ACPI_ADR_SPACE_SMBUS, ACPI_ADR_SPACE_CMOS, ACPI_ADR_SPACE_PCI_BAR_TARGET, ACPI_ADR_SPACE_IPMI, ACPI_ADR_SPACE_GPIO, ACPI_ADR_SPACE_GSBUS, ACPI_ADR_SPACE_PLATFORM_COMM, ACPI_ADR_SPACE_PLATFORM_RT, ACPI_ADR_SPACE_DATA_TABLE, ACPI_ADR_SPACE_FIXED_HARDWARE }; /* Global handler information */ typedef struct acpi_handler_info { void *Handler; char *Name; } ACPI_HANDLER_INFO; static ACPI_HANDLER_INFO AcpiGbl_HandlerList[] = { {&AcpiGbl_GlobalNotify[0].Handler, "System Notifications"}, {&AcpiGbl_GlobalNotify[1].Handler, "Device Notifications"}, {&AcpiGbl_TableHandler, "ACPI Table Events"}, {&AcpiGbl_ExceptionHandler, "Control Method Exceptions"}, {&AcpiGbl_InterfaceHandler, "OSI Invocations"} }; /******************************************************************************* * * FUNCTION: AcpiDbGetPointer * * PARAMETERS: Target - Pointer to string to be converted * * RETURN: Converted pointer * * DESCRIPTION: Convert an ascii pointer value to a real value * ******************************************************************************/ static void * AcpiDbGetPointer ( void *Target) { void *ObjPtr; ACPI_SIZE Address; Address = strtoul (Target, NULL, 16); ObjPtr = ACPI_TO_POINTER (Address); return (ObjPtr); } /******************************************************************************* * * FUNCTION: AcpiDbDumpParserDescriptor * * PARAMETERS: Op - A parser Op descriptor * * RETURN: None * * DESCRIPTION: Display a formatted parser object * ******************************************************************************/ static void AcpiDbDumpParserDescriptor ( ACPI_PARSE_OBJECT *Op) { const ACPI_OPCODE_INFO *Info; Info = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); AcpiOsPrintf ("Parser Op Descriptor:\n"); AcpiOsPrintf ("%20.20s : %4.4X\n", "Opcode", Op->Common.AmlOpcode); ACPI_DEBUG_ONLY_MEMBERS (AcpiOsPrintf ("%20.20s : %s\n", "Opcode Name", Info->Name)); AcpiOsPrintf ("%20.20s : %p\n", "Value/ArgList", Op->Common.Value.Arg); AcpiOsPrintf ("%20.20s : %p\n", "Parent", Op->Common.Parent); AcpiOsPrintf ("%20.20s : %p\n", "NextOp", Op->Common.Next); } /******************************************************************************* * * FUNCTION: AcpiDbDecodeAndDisplayObject * * PARAMETERS: Target - String with object to be displayed. Names * and hex pointers are supported. * OutputType - Byte, Word, Dword, or Qword (B|W|D|Q) * * RETURN: None * * DESCRIPTION: Display a formatted ACPI object * ******************************************************************************/ void AcpiDbDecodeAndDisplayObject ( char *Target, char *OutputType) { void *ObjPtr; ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *ObjDesc; UINT32 Display = DB_BYTE_DISPLAY; char Buffer[80]; ACPI_BUFFER RetBuf; ACPI_STATUS Status; UINT32 Size; if (!Target) { return; } /* Decode the output type */ if (OutputType) { AcpiUtStrupr (OutputType); if (OutputType[0] == 'W') { Display = DB_WORD_DISPLAY; } else if (OutputType[0] == 'D') { Display = DB_DWORD_DISPLAY; } else if (OutputType[0] == 'Q') { Display = DB_QWORD_DISPLAY; } } RetBuf.Length = sizeof (Buffer); RetBuf.Pointer = Buffer; /* Differentiate between a number and a name */ if ((Target[0] >= 0x30) && (Target[0] <= 0x39)) { ObjPtr = AcpiDbGetPointer (Target); if (!AcpiOsReadable (ObjPtr, 16)) { AcpiOsPrintf ( "Address %p is invalid in this address space\n", ObjPtr); return; } /* Decode the object type */ switch (ACPI_GET_DESCRIPTOR_TYPE (ObjPtr)) { case ACPI_DESC_TYPE_NAMED: /* This is a namespace Node */ if (!AcpiOsReadable (ObjPtr, sizeof (ACPI_NAMESPACE_NODE))) { AcpiOsPrintf ( "Cannot read entire Named object at address %p\n", ObjPtr); return; } Node = ObjPtr; goto DumpNode; case ACPI_DESC_TYPE_OPERAND: /* This is a ACPI OPERAND OBJECT */ if (!AcpiOsReadable (ObjPtr, sizeof (ACPI_OPERAND_OBJECT))) { AcpiOsPrintf ( "Cannot read entire ACPI object at address %p\n", ObjPtr); return; } AcpiUtDebugDumpBuffer (ObjPtr, sizeof (ACPI_OPERAND_OBJECT), Display, ACPI_UINT32_MAX); AcpiExDumpObjectDescriptor (ObjPtr, 1); break; case ACPI_DESC_TYPE_PARSER: /* This is a Parser Op object */ if (!AcpiOsReadable (ObjPtr, sizeof (ACPI_PARSE_OBJECT))) { AcpiOsPrintf ( "Cannot read entire Parser object at address %p\n", ObjPtr); return; } AcpiUtDebugDumpBuffer (ObjPtr, sizeof (ACPI_PARSE_OBJECT), Display, ACPI_UINT32_MAX); AcpiDbDumpParserDescriptor ((ACPI_PARSE_OBJECT *) ObjPtr); break; default: /* Is not a recognizable object */ AcpiOsPrintf ( "Not a known ACPI internal object, descriptor type %2.2X\n", ACPI_GET_DESCRIPTOR_TYPE (ObjPtr)); Size = 16; if (AcpiOsReadable (ObjPtr, 64)) { Size = 64; } /* Just dump some memory */ AcpiUtDebugDumpBuffer (ObjPtr, Size, Display, ACPI_UINT32_MAX); break; } return; } /* The parameter is a name string that must be resolved to a Named obj */ Node = AcpiDbLocalNsLookup (Target); if (!Node) { return; } DumpNode: /* Now dump the NS node */ Status = AcpiGetName (Node, ACPI_FULL_PATHNAME_NO_TRAILING, &RetBuf); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not convert name to pathname\n"); } else { AcpiOsPrintf ("Object %p: Namespace Node - Pathname: %s\n", Node, (char *) RetBuf.Pointer); } if (!AcpiOsReadable (Node, sizeof (ACPI_NAMESPACE_NODE))) { AcpiOsPrintf ("Invalid Named object at address %p\n", Node); return; } AcpiUtDebugDumpBuffer ((void *) Node, sizeof (ACPI_NAMESPACE_NODE), Display, ACPI_UINT32_MAX); AcpiExDumpNamespaceNode (Node, 1); ObjDesc = AcpiNsGetAttachedObject (Node); if (ObjDesc) { AcpiOsPrintf ("\nAttached Object %p:", ObjDesc); if (!AcpiOsReadable (ObjDesc, sizeof (ACPI_OPERAND_OBJECT))) { AcpiOsPrintf ("Invalid internal ACPI Object at address %p\n", ObjDesc); return; } if (ACPI_GET_DESCRIPTOR_TYPE ( ((ACPI_NAMESPACE_NODE *) ObjDesc)) == ACPI_DESC_TYPE_NAMED) { AcpiOsPrintf (" Namespace Node - "); Status = AcpiGetName ((ACPI_NAMESPACE_NODE *) ObjDesc, ACPI_FULL_PATHNAME_NO_TRAILING, &RetBuf); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not convert name to pathname\n"); } else { AcpiOsPrintf ("Pathname: %s", (char *) RetBuf.Pointer); } AcpiOsPrintf ("\n"); AcpiUtDebugDumpBuffer ((void *) ObjDesc, sizeof (ACPI_NAMESPACE_NODE), Display, ACPI_UINT32_MAX); } else { AcpiOsPrintf ("\n"); AcpiUtDebugDumpBuffer ((void *) ObjDesc, sizeof (ACPI_OPERAND_OBJECT), Display, ACPI_UINT32_MAX); } AcpiExDumpObjectDescriptor (ObjDesc, 1); } } /******************************************************************************* * * FUNCTION: AcpiDbDisplayMethodInfo * * PARAMETERS: StartOp - Root of the control method parse tree * * RETURN: None * * DESCRIPTION: Display information about the current method * ******************************************************************************/ void AcpiDbDisplayMethodInfo ( ACPI_PARSE_OBJECT *StartOp) { ACPI_WALK_STATE *WalkState; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *RootOp; ACPI_PARSE_OBJECT *Op; const ACPI_OPCODE_INFO *OpInfo; UINT32 NumOps = 0; UINT32 NumOperands = 0; UINT32 NumOperators = 0; UINT32 NumRemainingOps = 0; UINT32 NumRemainingOperands = 0; UINT32 NumRemainingOperators = 0; BOOLEAN CountRemaining = FALSE; WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList); if (!WalkState) { AcpiOsPrintf ("There is no method currently executing\n"); return; } ObjDesc = WalkState->MethodDesc; Node = WalkState->MethodNode; AcpiOsPrintf ("Currently executing control method is [%4.4s]\n", AcpiUtGetNodeName (Node)); AcpiOsPrintf ("%X Arguments, SyncLevel = %X\n", (UINT32) ObjDesc->Method.ParamCount, (UINT32) ObjDesc->Method.SyncLevel); RootOp = StartOp; while (RootOp->Common.Parent) { RootOp = RootOp->Common.Parent; } Op = RootOp; while (Op) { if (Op == StartOp) { CountRemaining = TRUE; } NumOps++; if (CountRemaining) { NumRemainingOps++; } /* Decode the opcode */ OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); switch (OpInfo->Class) { case AML_CLASS_ARGUMENT: if (CountRemaining) { NumRemainingOperands++; } NumOperands++; break; case AML_CLASS_UNKNOWN: /* Bad opcode or ASCII character */ continue; default: if (CountRemaining) { NumRemainingOperators++; } NumOperators++; break; } Op = AcpiPsGetDepthNext (StartOp, Op); } AcpiOsPrintf ( "Method contains: %X AML Opcodes - %X Operators, %X Operands\n", NumOps, NumOperators, NumOperands); AcpiOsPrintf ( "Remaining to execute: %X AML Opcodes - %X Operators, %X Operands\n", NumRemainingOps, NumRemainingOperators, NumRemainingOperands); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayLocals * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display all locals for the currently running control method * ******************************************************************************/ void AcpiDbDisplayLocals ( void) { ACPI_WALK_STATE *WalkState; WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList); if (!WalkState) { AcpiOsPrintf ("There is no method currently executing\n"); return; } AcpiDbDecodeLocals (WalkState); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayArguments * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display all arguments for the currently running control method * ******************************************************************************/ void AcpiDbDisplayArguments ( void) { ACPI_WALK_STATE *WalkState; WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList); if (!WalkState) { AcpiOsPrintf ("There is no method currently executing\n"); return; } AcpiDbDecodeArguments (WalkState); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayResults * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display current contents of a method result stack * ******************************************************************************/ void AcpiDbDisplayResults ( void) { UINT32 i; ACPI_WALK_STATE *WalkState; ACPI_OPERAND_OBJECT *ObjDesc; UINT32 ResultCount = 0; ACPI_NAMESPACE_NODE *Node; ACPI_GENERIC_STATE *Frame; UINT32 Index; /* Index onto current frame */ WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList); if (!WalkState) { AcpiOsPrintf ("There is no method currently executing\n"); return; } Node = WalkState->MethodNode; if (WalkState->Results) { ResultCount = WalkState->ResultCount; } AcpiOsPrintf ("Method [%4.4s] has %X stacked result objects\n", AcpiUtGetNodeName (Node), ResultCount); /* From the top element of result stack */ Frame = WalkState->Results; Index = (ResultCount - 1) % ACPI_RESULTS_FRAME_OBJ_NUM; for (i = 0; i < ResultCount; i++) { ObjDesc = Frame->Results.ObjDesc[Index]; AcpiOsPrintf ("Result%u: ", i); AcpiDbDisplayInternalObject (ObjDesc, WalkState); if (Index == 0) { Frame = Frame->Results.Next; Index = ACPI_RESULTS_FRAME_OBJ_NUM; } Index--; } } /******************************************************************************* * * FUNCTION: AcpiDbDisplayCallingTree * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display current calling tree of nested control methods * ******************************************************************************/ void AcpiDbDisplayCallingTree ( void) { ACPI_WALK_STATE *WalkState; ACPI_NAMESPACE_NODE *Node; WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList); if (!WalkState) { AcpiOsPrintf ("There is no method currently executing\n"); return; } AcpiOsPrintf ("Current Control Method Call Tree\n"); while (WalkState) { Node = WalkState->MethodNode; AcpiOsPrintf (" [%4.4s]\n", AcpiUtGetNodeName (Node)); WalkState = WalkState->Next; } } /******************************************************************************* * * FUNCTION: AcpiDbDisplayObjectType * * PARAMETERS: ObjectArg - User entered NS node handle * * RETURN: None * * DESCRIPTION: Display type of an arbitrary NS node * ******************************************************************************/ void AcpiDbDisplayObjectType ( char *ObjectArg) { ACPI_SIZE Arg; ACPI_HANDLE Handle; ACPI_DEVICE_INFO *Info; ACPI_STATUS Status; UINT32 i; Arg = strtoul (ObjectArg, NULL, 16); Handle = ACPI_TO_POINTER (Arg); Status = AcpiGetObjectInfo (Handle, &Info); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not get object info, %s\n", AcpiFormatException (Status)); return; } AcpiOsPrintf ("ADR: %8.8X%8.8X, Flags: %X\n", ACPI_FORMAT_UINT64 (Info->Address), Info->Flags); AcpiOsPrintf ("S1D-%2.2X S2D-%2.2X S3D-%2.2X S4D-%2.2X\n", Info->HighestDstates[0], Info->HighestDstates[1], Info->HighestDstates[2], Info->HighestDstates[3]); AcpiOsPrintf ("S0W-%2.2X S1W-%2.2X S2W-%2.2X S3W-%2.2X S4W-%2.2X\n", Info->LowestDstates[0], Info->LowestDstates[1], Info->LowestDstates[2], Info->LowestDstates[3], Info->LowestDstates[4]); if (Info->Valid & ACPI_VALID_HID) { AcpiOsPrintf ("HID: %s\n", Info->HardwareId.String); } if (Info->Valid & ACPI_VALID_UID) { AcpiOsPrintf ("UID: %s\n", Info->UniqueId.String); } if (Info->Valid & ACPI_VALID_CID) { for (i = 0; i < Info->CompatibleIdList.Count; i++) { AcpiOsPrintf ("CID %u: %s\n", i, Info->CompatibleIdList.Ids[i].String); } } ACPI_FREE (Info); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayResultObject * * PARAMETERS: ObjDesc - Object to be displayed * WalkState - Current walk state * * RETURN: None * * DESCRIPTION: Display the result of an AML opcode * * Note: Currently only displays the result object if we are single stepping. * However, this output may be useful in other contexts and could be enabled * to do so if needed. * ******************************************************************************/ void AcpiDbDisplayResultObject ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { #ifndef ACPI_APPLICATION if (AcpiGbl_DbThreadId != AcpiOsGetThreadId()) { return; } #endif /* Only display if single stepping */ if (!AcpiGbl_CmSingleStep) { return; } AcpiOsPrintf ("ResultObj: "); AcpiDbDisplayInternalObject (ObjDesc, WalkState); AcpiOsPrintf ("\n"); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayArgumentObject * * PARAMETERS: ObjDesc - Object to be displayed * WalkState - Current walk state * * RETURN: None * * DESCRIPTION: Display the result of an AML opcode * ******************************************************************************/ void AcpiDbDisplayArgumentObject ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { #ifndef ACPI_APPLICATION if (AcpiGbl_DbThreadId != AcpiOsGetThreadId()) { return; } #endif if (!AcpiGbl_CmSingleStep) { return; } AcpiOsPrintf ("ArgObj: "); AcpiDbDisplayInternalObject (ObjDesc, WalkState); } #if (!ACPI_REDUCED_HARDWARE) /******************************************************************************* * * FUNCTION: AcpiDbDisplayGpes * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display the current GPE structures * ******************************************************************************/ void AcpiDbDisplayGpes ( void) { ACPI_GPE_BLOCK_INFO *GpeBlock; ACPI_GPE_XRUPT_INFO *GpeXruptInfo; ACPI_GPE_EVENT_INFO *GpeEventInfo; ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; char *GpeType; ACPI_GPE_NOTIFY_INFO *Notify; UINT32 GpeIndex; UINT32 Block = 0; UINT32 i; UINT32 j; UINT32 Count; char Buffer[80]; ACPI_BUFFER RetBuf; ACPI_STATUS Status; RetBuf.Length = sizeof (Buffer); RetBuf.Pointer = Buffer; Block = 0; /* Walk the GPE lists */ GpeXruptInfo = AcpiGbl_GpeXruptListHead; while (GpeXruptInfo) { GpeBlock = GpeXruptInfo->GpeBlockListHead; while (GpeBlock) { Status = AcpiGetName (GpeBlock->Node, ACPI_FULL_PATHNAME_NO_TRAILING, &RetBuf); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not convert name to pathname\n"); } if (GpeBlock->Node == AcpiGbl_FadtGpeDevice) { GpeType = "FADT-defined GPE block"; } else { GpeType = "GPE Block Device"; } AcpiOsPrintf ( "\nBlock %u - Info %p DeviceNode %p [%s] - %s\n", Block, GpeBlock, GpeBlock->Node, Buffer, GpeType); AcpiOsPrintf ( " Registers: %u (%u GPEs)\n", GpeBlock->RegisterCount, GpeBlock->GpeCount); AcpiOsPrintf ( " GPE range: 0x%X to 0x%X on interrupt %u\n", GpeBlock->BlockBaseNumber, GpeBlock->BlockBaseNumber + (GpeBlock->GpeCount - 1), GpeXruptInfo->InterruptNumber); AcpiOsPrintf ( " RegisterInfo: %p Status %8.8X%8.8X Enable %8.8X%8.8X\n", GpeBlock->RegisterInfo, ACPI_FORMAT_UINT64 ( GpeBlock->RegisterInfo->StatusAddress.Address), ACPI_FORMAT_UINT64 ( GpeBlock->RegisterInfo->EnableAddress.Address)); AcpiOsPrintf (" EventInfo: %p\n", GpeBlock->EventInfo); /* Examine each GPE Register within the block */ for (i = 0; i < GpeBlock->RegisterCount; i++) { GpeRegisterInfo = &GpeBlock->RegisterInfo[i]; AcpiOsPrintf ( " Reg %u: (GPE %.2X-%.2X) " "RunEnable %2.2X WakeEnable %2.2X" " Status %8.8X%8.8X Enable %8.8X%8.8X\n", i, GpeRegisterInfo->BaseGpeNumber, GpeRegisterInfo->BaseGpeNumber + (ACPI_GPE_REGISTER_WIDTH - 1), GpeRegisterInfo->EnableForRun, GpeRegisterInfo->EnableForWake, ACPI_FORMAT_UINT64 ( GpeRegisterInfo->StatusAddress.Address), ACPI_FORMAT_UINT64 ( GpeRegisterInfo->EnableAddress.Address)); /* Now look at the individual GPEs in this byte register */ for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++) { GpeIndex = (i * ACPI_GPE_REGISTER_WIDTH) + j; GpeEventInfo = &GpeBlock->EventInfo[GpeIndex]; if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) == ACPI_GPE_DISPATCH_NONE) { /* This GPE is not used (no method or handler), ignore it */ continue; } AcpiOsPrintf ( " GPE %.2X: %p RunRefs %2.2X Flags %2.2X (", GpeBlock->BlockBaseNumber + GpeIndex, GpeEventInfo, GpeEventInfo->RuntimeCount, GpeEventInfo->Flags); /* Decode the flags byte */ if (GpeEventInfo->Flags & ACPI_GPE_LEVEL_TRIGGERED) { AcpiOsPrintf ("Level, "); } else { AcpiOsPrintf ("Edge, "); } if (GpeEventInfo->Flags & ACPI_GPE_CAN_WAKE) { AcpiOsPrintf ("CanWake, "); } else { AcpiOsPrintf ("RunOnly, "); } switch (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags)) { case ACPI_GPE_DISPATCH_NONE: AcpiOsPrintf ("NotUsed"); break; case ACPI_GPE_DISPATCH_METHOD: AcpiOsPrintf ("Method"); break; case ACPI_GPE_DISPATCH_HANDLER: AcpiOsPrintf ("Handler"); break; case ACPI_GPE_DISPATCH_NOTIFY: Count = 0; Notify = GpeEventInfo->Dispatch.NotifyList; while (Notify) { Count++; Notify = Notify->Next; } AcpiOsPrintf ("Implicit Notify on %u devices", Count); break; case ACPI_GPE_DISPATCH_RAW_HANDLER: AcpiOsPrintf ("RawHandler"); break; default: AcpiOsPrintf ("UNKNOWN: %X", ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags)); break; } AcpiOsPrintf (")\n"); } } Block++; GpeBlock = GpeBlock->Next; } GpeXruptInfo = GpeXruptInfo->Next; } } #endif /* !ACPI_REDUCED_HARDWARE */ /******************************************************************************* * * FUNCTION: AcpiDbDisplayHandlers * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display the currently installed global handlers * ******************************************************************************/ void AcpiDbDisplayHandlers ( void) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *HandlerObj; ACPI_ADR_SPACE_TYPE SpaceId; UINT32 i; /* Operation region handlers */ AcpiOsPrintf ("\nOperation Region Handlers at the namespace root:\n"); ObjDesc = AcpiNsGetAttachedObject (AcpiGbl_RootNode); if (ObjDesc) { for (i = 0; i < ACPI_ARRAY_LENGTH (AcpiGbl_SpaceIdList); i++) { SpaceId = AcpiGbl_SpaceIdList[i]; AcpiOsPrintf (ACPI_PREDEFINED_PREFIX, AcpiUtGetRegionName ((UINT8) SpaceId), SpaceId); HandlerObj = AcpiEvFindRegionHandler ( SpaceId, ObjDesc->CommonNotify.Handler); if (HandlerObj) { AcpiOsPrintf (ACPI_HANDLER_PRESENT_STRING, (HandlerObj->AddressSpace.HandlerFlags & ACPI_ADDR_HANDLER_DEFAULT_INSTALLED) ? "Default" : "User", HandlerObj->AddressSpace.Handler); goto FoundHandler; } /* There is no handler for this SpaceId */ AcpiOsPrintf ("None\n"); FoundHandler:; } /* Find all handlers for user-defined SpaceIDs */ HandlerObj = ObjDesc->CommonNotify.Handler; while (HandlerObj) { if (HandlerObj->AddressSpace.SpaceId >= ACPI_USER_REGION_BEGIN) { AcpiOsPrintf (ACPI_PREDEFINED_PREFIX, "User-defined ID", HandlerObj->AddressSpace.SpaceId); AcpiOsPrintf (ACPI_HANDLER_PRESENT_STRING, (HandlerObj->AddressSpace.HandlerFlags & ACPI_ADDR_HANDLER_DEFAULT_INSTALLED) ? "Default" : "User", HandlerObj->AddressSpace.Handler); } HandlerObj = HandlerObj->AddressSpace.Next; } } #if (!ACPI_REDUCED_HARDWARE) /* Fixed event handlers */ AcpiOsPrintf ("\nFixed Event Handlers:\n"); for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { AcpiOsPrintf (ACPI_PREDEFINED_PREFIX, AcpiUtGetEventName (i), i); if (AcpiGbl_FixedEventHandlers[i].Handler) { AcpiOsPrintf (ACPI_HANDLER_PRESENT_STRING, "User", AcpiGbl_FixedEventHandlers[i].Handler); } else { AcpiOsPrintf (ACPI_HANDLER_NOT_PRESENT_STRING, "None"); } } #endif /* !ACPI_REDUCED_HARDWARE */ /* Miscellaneous global handlers */ AcpiOsPrintf ("\nMiscellaneous Global Handlers:\n"); for (i = 0; i < ACPI_ARRAY_LENGTH (AcpiGbl_HandlerList); i++) { AcpiOsPrintf (ACPI_HANDLER_NAME_STRING, AcpiGbl_HandlerList[i].Name); if (AcpiGbl_HandlerList[i].Handler) { AcpiOsPrintf (ACPI_HANDLER_PRESENT_STRING, "User", AcpiGbl_HandlerList[i].Handler); } else { AcpiOsPrintf (ACPI_HANDLER_NOT_PRESENT_STRING, "None"); } } /* Other handlers that are installed throughout the namespace */ AcpiOsPrintf ("\nOperation Region Handlers for specific devices:\n"); (void) AcpiWalkNamespace (ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbDisplayNonRootHandlers, NULL, NULL, NULL); } /******************************************************************************* * * FUNCTION: AcpiDbDisplayNonRootHandlers * * PARAMETERS: ACPI_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Display information about all handlers installed for a * device object. * ******************************************************************************/ static ACPI_STATUS AcpiDbDisplayNonRootHandlers ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *HandlerObj; char *Pathname; ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { return (AE_OK); } Pathname = AcpiNsGetNormalizedPathname (Node, TRUE); if (!Pathname) { return (AE_OK); } /* Display all handlers associated with this device */ HandlerObj = ObjDesc->CommonNotify.Handler; while (HandlerObj) { AcpiOsPrintf (ACPI_PREDEFINED_PREFIX, AcpiUtGetRegionName ((UINT8) HandlerObj->AddressSpace.SpaceId), HandlerObj->AddressSpace.SpaceId); AcpiOsPrintf (ACPI_HANDLER_PRESENT_STRING2, (HandlerObj->AddressSpace.HandlerFlags & ACPI_ADDR_HANDLER_DEFAULT_INSTALLED) ? "Default" : "User", HandlerObj->AddressSpace.Handler); AcpiOsPrintf (" Device Name: %s (%p)\n", Pathname, Node); HandlerObj = HandlerObj->AddressSpace.Next; } ACPI_FREE (Pathname); return (AE_OK); } acpica-unix-20250404/source/components/debugger/dbexec.c0000775000175000017500000007015414773714132022417 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbexec - debugger control method execution * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdebug.h" #include "acnamesp.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbexec") static ACPI_DB_METHOD_INFO AcpiGbl_DbMethodInfo; /* Local prototypes */ static ACPI_STATUS AcpiDbExecuteMethod ( ACPI_DB_METHOD_INFO *Info, ACPI_BUFFER *ReturnObj); static ACPI_STATUS AcpiDbExecuteSetup ( ACPI_DB_METHOD_INFO *Info); static UINT32 AcpiDbGetOutstandingAllocations ( void); static void ACPI_SYSTEM_XFACE AcpiDbMethodThread ( void *Context); static ACPI_STATUS AcpiDbExecutionWalk ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static void ACPI_SYSTEM_XFACE AcpiDbSingleExecutionThread ( void *Context); /******************************************************************************* * * FUNCTION: AcpiDbDeleteObjects * * PARAMETERS: Count - Count of objects in the list * Objects - Array of ACPI_OBJECTs to be deleted * * RETURN: None * * DESCRIPTION: Delete a list of ACPI_OBJECTS. Handles packages and nested * packages via recursion. * ******************************************************************************/ void AcpiDbDeleteObjects ( UINT32 Count, ACPI_OBJECT *Objects) { UINT32 i; for (i = 0; i < Count; i++) { switch (Objects[i].Type) { case ACPI_TYPE_BUFFER: ACPI_FREE (Objects[i].Buffer.Pointer); break; case ACPI_TYPE_PACKAGE: /* Recursive call to delete package elements */ AcpiDbDeleteObjects (Objects[i].Package.Count, Objects[i].Package.Elements); /* Free the elements array */ ACPI_FREE (Objects[i].Package.Elements); break; default: break; } } } /******************************************************************************* * * FUNCTION: AcpiDbExecuteMethod * * PARAMETERS: Info - Valid info segment * ReturnObj - Where to put return object * * RETURN: Status * * DESCRIPTION: Execute a control method. Used to evaluate objects via the * "EXECUTE" or "EVALUATE" commands. * ******************************************************************************/ static ACPI_STATUS AcpiDbExecuteMethod ( ACPI_DB_METHOD_INFO *Info, ACPI_BUFFER *ReturnObj) { ACPI_STATUS Status; ACPI_OBJECT_LIST ParamObjects; ACPI_OBJECT Params[ACPI_DEBUGGER_MAX_ARGS + 1]; UINT32 i; ACPI_FUNCTION_TRACE (DbExecuteMethod); if (AcpiGbl_DbOutputToFile && !AcpiDbgLevel) { AcpiOsPrintf ("Warning: debug output is not enabled!\n"); } ParamObjects.Count = 0; ParamObjects.Pointer = NULL; /* Pass through any command-line arguments */ if (Info->Args && Info->Args[0]) { /* Get arguments passed on the command line */ for (i = 0; (Info->Args[i] && *(Info->Args[i])); i++) { /* Convert input string (token) to an actual ACPI_OBJECT */ Status = AcpiDbConvertToObject (Info->Types[i], Info->Args[i], &Params[i]); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While parsing method arguments")); goto Cleanup; } } ParamObjects.Count = i; ParamObjects.Pointer = Params; } /* Prepare for a return object of arbitrary size */ ReturnObj->Pointer = AcpiGbl_DbBuffer; ReturnObj->Length = ACPI_DEBUG_BUFFER_SIZE; /* Do the actual method execution */ AcpiGbl_MethodExecuting = TRUE; Status = AcpiEvaluateObject (NULL, Info->Pathname, &ParamObjects, ReturnObj); AcpiGbl_CmSingleStep = FALSE; AcpiGbl_MethodExecuting = FALSE; if (ACPI_FAILURE (Status)) { if ((Status == AE_ABORT_METHOD) || AcpiGbl_AbortMethod) { /* Clear the abort and fall back to the debugger prompt */ ACPI_EXCEPTION ((AE_INFO, Status, "Aborting top-level method")); AcpiGbl_AbortMethod = FALSE; Status = AE_OK; goto Cleanup; } ACPI_EXCEPTION ((AE_INFO, Status, "while executing %s from AML Debugger", Info->Pathname)); if (Status == AE_BUFFER_OVERFLOW) { ACPI_ERROR ((AE_INFO, "Possible buffer overflow within AML Debugger " "buffer (size 0x%X needed 0x%X)", ACPI_DEBUG_BUFFER_SIZE, (UINT32) ReturnObj->Length)); } } Cleanup: AcpiDbDeleteObjects (ParamObjects.Count, Params); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDbExecuteSetup * * PARAMETERS: Info - Valid method info * * RETURN: None * * DESCRIPTION: Setup info segment prior to method execution * ******************************************************************************/ static ACPI_STATUS AcpiDbExecuteSetup ( ACPI_DB_METHOD_INFO *Info) { ACPI_STATUS Status; ACPI_FUNCTION_NAME (DbExecuteSetup); /* Concatenate the current scope to the supplied name */ Info->Pathname[0] = 0; if ((Info->Name[0] != '\\') && (Info->Name[0] != '/')) { if (AcpiUtSafeStrcat (Info->Pathname, sizeof (Info->Pathname), AcpiGbl_DbScopeBuf)) { Status = AE_BUFFER_OVERFLOW; goto ErrorExit; } } if (AcpiUtSafeStrcat (Info->Pathname, sizeof (Info->Pathname), Info->Name)) { Status = AE_BUFFER_OVERFLOW; goto ErrorExit; } AcpiDbPrepNamestring (Info->Pathname); AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT); AcpiOsPrintf ("Evaluating %s\n", Info->Pathname); if (Info->Flags & EX_SINGLE_STEP) { AcpiGbl_CmSingleStep = TRUE; AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); } else { /* No single step, allow redirection to a file */ AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT); } return (AE_OK); ErrorExit: ACPI_EXCEPTION ((AE_INFO, Status, "During setup for method execution")); return (Status); } #ifdef ACPI_DBG_TRACK_ALLOCATIONS UINT32 AcpiDbGetCacheInfo ( ACPI_MEMORY_LIST *Cache) { return (Cache->TotalAllocated - Cache->TotalFreed - Cache->CurrentDepth); } #endif /******************************************************************************* * * FUNCTION: AcpiDbGetOutstandingAllocations * * PARAMETERS: None * * RETURN: Current global allocation count minus cache entries * * DESCRIPTION: Determine the current number of "outstanding" allocations -- * those allocations that have not been freed and also are not * in one of the various object caches. * ******************************************************************************/ static UINT32 AcpiDbGetOutstandingAllocations ( void) { UINT32 Outstanding = 0; #ifdef ACPI_DBG_TRACK_ALLOCATIONS Outstanding += AcpiDbGetCacheInfo (AcpiGbl_StateCache); Outstanding += AcpiDbGetCacheInfo (AcpiGbl_PsNodeCache); Outstanding += AcpiDbGetCacheInfo (AcpiGbl_PsNodeExtCache); Outstanding += AcpiDbGetCacheInfo (AcpiGbl_OperandCache); #endif return (Outstanding); } /******************************************************************************* * * FUNCTION: AcpiDbExecutionWalk * * PARAMETERS: WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Execute a control method. Name is relative to the current * scope. * ******************************************************************************/ static ACPI_STATUS AcpiDbExecutionWalk ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_BUFFER ReturnObj; ACPI_STATUS Status; ObjDesc = AcpiNsGetAttachedObject (Node); if (ObjDesc->Method.ParamCount) { return (AE_OK); } ReturnObj.Pointer = NULL; ReturnObj.Length = ACPI_ALLOCATE_BUFFER; AcpiNsPrintNodePathname (Node, "Evaluating"); /* Do the actual method execution */ AcpiOsPrintf ("\n"); AcpiGbl_MethodExecuting = TRUE; Status = AcpiEvaluateObject (Node, NULL, NULL, &ReturnObj); AcpiGbl_MethodExecuting = FALSE; AcpiOsPrintf ("Evaluation of [%4.4s] returned %s\n", AcpiUtGetNodeName (Node), AcpiFormatException (Status)); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbExecute * * PARAMETERS: Name - Name of method to execute * Args - Parameters to the method * Types - * Flags - single step/no single step * * RETURN: None * * DESCRIPTION: Execute a control method. Name is relative to the current * scope. Function used for the "EXECUTE", "EVALUATE", and * "ALL" commands * ******************************************************************************/ void AcpiDbExecute ( char *Name, char **Args, ACPI_OBJECT_TYPE *Types, UINT32 Flags) { ACPI_STATUS Status; ACPI_BUFFER ReturnObj; char *NameString; #ifdef ACPI_DEBUG_OUTPUT UINT32 PreviousAllocations; UINT32 Allocations; #endif /* * Allow one execution to be performed by debugger or single step * execution will be dead locked by the interpreter mutexes. */ if (AcpiGbl_MethodExecuting) { AcpiOsPrintf ("Only one debugger execution is allowed.\n"); return; } #ifdef ACPI_DEBUG_OUTPUT /* Memory allocation tracking */ PreviousAllocations = AcpiDbGetOutstandingAllocations (); #endif if (*Name == '*') { (void) AcpiWalkNamespace (ACPI_TYPE_METHOD, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbExecutionWalk, NULL, NULL, NULL); return; } if ((Flags & EX_ALL) && (strlen (Name) > 4)) { AcpiOsPrintf ("Input name (%s) must be a 4-char NameSeg\n", Name); return; } NameString = ACPI_ALLOCATE (strlen (Name) + 1); if (!NameString) { return; } memset (&AcpiGbl_DbMethodInfo, 0, sizeof (ACPI_DB_METHOD_INFO)); strcpy (NameString, Name); AcpiUtStrupr (NameString); /* Subcommand to Execute all predefined names in the namespace */ if (!strncmp (NameString, "PREDEF", 6)) { AcpiDbEvaluatePredefinedNames (); ACPI_FREE (NameString); return; } /* Command (ALL ) to execute all methods of a particular name */ else if (Flags & EX_ALL) { AcpiGbl_DbMethodInfo.Name = NameString; ReturnObj.Pointer = NULL; ReturnObj.Length = ACPI_ALLOCATE_BUFFER; AcpiDbEvaluateAll (NameString); ACPI_FREE (NameString); return; } else { AcpiGbl_DbMethodInfo.Name = NameString; AcpiGbl_DbMethodInfo.Args = Args; AcpiGbl_DbMethodInfo.Types = Types; AcpiGbl_DbMethodInfo.Flags = Flags; ReturnObj.Pointer = NULL; ReturnObj.Length = ACPI_ALLOCATE_BUFFER; } Status = AcpiDbExecuteSetup (&AcpiGbl_DbMethodInfo); if (ACPI_FAILURE (Status)) { ACPI_FREE (NameString); return; } /* Get the NS node, determines existence also */ Status = AcpiGetHandle (NULL, AcpiGbl_DbMethodInfo.Pathname, &AcpiGbl_DbMethodInfo.Method); if (ACPI_SUCCESS (Status)) { Status = AcpiDbExecuteMethod (&AcpiGbl_DbMethodInfo, &ReturnObj); } ACPI_FREE (NameString); /* * Allow any handlers in separate threads to complete. * (Such as Notify handlers invoked from AML executed above). */ AcpiOsSleep ((UINT64) 10); #ifdef ACPI_DEBUG_OUTPUT /* Memory allocation tracking */ Allocations = AcpiDbGetOutstandingAllocations () - PreviousAllocations; AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT); if (Allocations > 0) { AcpiOsPrintf ( "0x%X Outstanding allocations after evaluation of %s\n", Allocations, AcpiGbl_DbMethodInfo.Pathname); } #endif if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Evaluation of %s failed with status %s\n", AcpiGbl_DbMethodInfo.Pathname, AcpiFormatException (Status)); } else { /* Display a return object, if any */ if (ReturnObj.Length) { AcpiOsPrintf ( "Evaluation of %s returned object %p, " "external buffer length %X\n", AcpiGbl_DbMethodInfo.Pathname, ReturnObj.Pointer, (UINT32) ReturnObj.Length); AcpiDbDumpExternalObject (ReturnObj.Pointer, 1); AcpiOsPrintf ("\n"); /* Dump a _PLD buffer if present */ if (ACPI_COMPARE_NAMESEG ((ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, AcpiGbl_DbMethodInfo.Method)->Name.Ascii), METHOD_NAME__PLD)) { AcpiDbDumpPldBuffer (ReturnObj.Pointer); } } else { AcpiOsPrintf ("No object was returned from evaluation of %s\n", AcpiGbl_DbMethodInfo.Pathname); } } AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); } /******************************************************************************* * * FUNCTION: AcpiDbMethodThread * * PARAMETERS: Context - Execution info segment * * RETURN: None * * DESCRIPTION: Debugger execute thread. Waits for a command line, then * simply dispatches it. * ******************************************************************************/ static void ACPI_SYSTEM_XFACE AcpiDbMethodThread ( void *Context) { ACPI_STATUS Status; ACPI_DB_METHOD_INFO *Info = Context; ACPI_DB_METHOD_INFO LocalInfo; UINT32 i; UINT8 Allow; ACPI_BUFFER ReturnObj; /* * AcpiGbl_DbMethodInfo.Arguments will be passed as method arguments. * Prevent AcpiGbl_DbMethodInfo from being modified by multiple threads * concurrently. * * Note: The arguments we are passing are used by the ASL test suite * (aslts). Do not change them without updating the tests. */ (void) AcpiOsWaitSemaphore (Info->InfoGate, 1, ACPI_WAIT_FOREVER); if (Info->InitArgs) { AcpiDbUint32ToHexString (Info->NumCreated, Info->IndexOfThreadStr); AcpiDbUint32ToHexString ((UINT32) AcpiOsGetThreadId (), Info->IdOfThreadStr); } if (Info->Threads && (Info->NumCreated < Info->NumThreads)) { Info->Threads[Info->NumCreated++] = AcpiOsGetThreadId(); } LocalInfo = *Info; LocalInfo.Args = LocalInfo.Arguments; LocalInfo.Arguments[0] = LocalInfo.NumThreadsStr; LocalInfo.Arguments[1] = LocalInfo.IdOfThreadStr; LocalInfo.Arguments[2] = LocalInfo.IndexOfThreadStr; LocalInfo.Arguments[3] = NULL; LocalInfo.Types = LocalInfo.ArgTypes; (void) AcpiOsSignalSemaphore (Info->InfoGate, 1); for (i = 0; i < Info->NumLoops; i++) { Status = AcpiDbExecuteMethod (&LocalInfo, &ReturnObj); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("%s During evaluation of %s at iteration %X\n", AcpiFormatException (Status), Info->Pathname, i); if (Status == AE_ABORT_METHOD) { break; } } #if 0 if ((i % 100) == 0) { AcpiOsPrintf ("%u loops, Thread 0x%x\n", i, AcpiOsGetThreadId ()); } if (ReturnObj.Length) { AcpiOsPrintf ("Evaluation of %s returned object %p Buflen %X\n", Info->Pathname, ReturnObj.Pointer, (UINT32) ReturnObj.Length); AcpiDbDumpExternalObject (ReturnObj.Pointer, 1); } #endif } /* Signal our completion */ Allow = 0; (void) AcpiOsWaitSemaphore (Info->ThreadCompleteGate, 1, ACPI_WAIT_FOREVER); Info->NumCompleted++; if (Info->NumCompleted == Info->NumThreads) { /* Do signal for main thread once only */ Allow = 1; } (void) AcpiOsSignalSemaphore (Info->ThreadCompleteGate, 1); if (Allow) { Status = AcpiOsSignalSemaphore (Info->MainThreadGate, 1); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ( "Could not signal debugger thread sync semaphore, %s\n", AcpiFormatException (Status)); } } } /******************************************************************************* * * FUNCTION: AcpiDbSingleExecutionThread * * PARAMETERS: Context - Method info struct * * RETURN: None * * DESCRIPTION: Create one thread and execute a method * ******************************************************************************/ static void ACPI_SYSTEM_XFACE AcpiDbSingleExecutionThread ( void *Context) { ACPI_DB_METHOD_INFO *Info = Context; ACPI_STATUS Status; ACPI_BUFFER ReturnObj; AcpiOsPrintf ("\n"); Status = AcpiDbExecuteMethod (Info, &ReturnObj); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("%s During evaluation of %s\n", AcpiFormatException (Status), Info->Pathname); return; } /* Display a return object, if any */ if (ReturnObj.Length) { AcpiOsPrintf ("Evaluation of %s returned object %p, " "external buffer length %X\n", AcpiGbl_DbMethodInfo.Pathname, ReturnObj.Pointer, (UINT32) ReturnObj.Length); AcpiDbDumpExternalObject (ReturnObj.Pointer, 1); } AcpiOsPrintf ("\nBackground thread completed\n%c ", ACPI_DEBUGGER_COMMAND_PROMPT); } /******************************************************************************* * * FUNCTION: AcpiDbCreateExecutionThread * * PARAMETERS: MethodNameArg - Control method to execute * Arguments - Array of arguments to the method * Types - Corresponding array of object types * * RETURN: None * * DESCRIPTION: Create a single thread to evaluate a namespace object. Handles * arguments passed on command line for control methods. * ******************************************************************************/ void AcpiDbCreateExecutionThread ( char *MethodNameArg, char **Arguments, ACPI_OBJECT_TYPE *Types) { ACPI_STATUS Status; UINT32 i; memset (&AcpiGbl_DbMethodInfo, 0, sizeof (ACPI_DB_METHOD_INFO)); AcpiGbl_DbMethodInfo.Name = MethodNameArg; AcpiGbl_DbMethodInfo.InitArgs = 1; AcpiGbl_DbMethodInfo.Args = AcpiGbl_DbMethodInfo.Arguments; AcpiGbl_DbMethodInfo.Types = AcpiGbl_DbMethodInfo.ArgTypes; /* Setup method arguments, up to 7 (0-6) */ for (i = 0; (i < ACPI_METHOD_NUM_ARGS) && *Arguments; i++) { AcpiGbl_DbMethodInfo.Arguments[i] = *Arguments; Arguments++; AcpiGbl_DbMethodInfo.ArgTypes[i] = *Types; Types++; } Status = AcpiDbExecuteSetup (&AcpiGbl_DbMethodInfo); if (ACPI_FAILURE (Status)) { return; } /* Get the NS node, determines existence also */ Status = AcpiGetHandle (NULL, AcpiGbl_DbMethodInfo.Pathname, &AcpiGbl_DbMethodInfo.Method); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("%s Could not get handle for %s\n", AcpiFormatException (Status), AcpiGbl_DbMethodInfo.Pathname); return; } Status = AcpiOsExecute (OSL_DEBUGGER_EXEC_THREAD, AcpiDbSingleExecutionThread, &AcpiGbl_DbMethodInfo); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\nBackground thread started\n"); } /******************************************************************************* * * FUNCTION: AcpiDbCreateExecutionThreads * * PARAMETERS: NumThreadsArg - Number of threads to create * NumLoopsArg - Loop count for the thread(s) * MethodNameArg - Control method to execute * * RETURN: None * * DESCRIPTION: Create threads to execute method(s) * ******************************************************************************/ void AcpiDbCreateExecutionThreads ( char *NumThreadsArg, char *NumLoopsArg, char *MethodNameArg) { ACPI_STATUS Status; UINT32 NumThreads; UINT32 NumLoops; UINT32 i; UINT32 Size; ACPI_MUTEX MainThreadGate; ACPI_MUTEX ThreadCompleteGate; ACPI_MUTEX InfoGate; /* Get the arguments */ NumThreads = strtoul (NumThreadsArg, NULL, 0); NumLoops = strtoul (NumLoopsArg, NULL, 0); if (!NumThreads || !NumLoops) { AcpiOsPrintf ("Bad argument: Threads %X, Loops %X\n", NumThreads, NumLoops); return; } /* * Create the semaphore for synchronization of * the created threads with the main thread. */ Status = AcpiOsCreateSemaphore (1, 0, &MainThreadGate); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not create semaphore for " "synchronization with the main thread, %s\n", AcpiFormatException (Status)); return; } /* * Create the semaphore for synchronization * between the created threads. */ Status = AcpiOsCreateSemaphore (1, 1, &ThreadCompleteGate); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not create semaphore for " "synchronization between the created threads, %s\n", AcpiFormatException (Status)); (void) AcpiOsDeleteSemaphore (MainThreadGate); return; } Status = AcpiOsCreateSemaphore (1, 1, &InfoGate); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not create semaphore for " "synchronization of AcpiGbl_DbMethodInfo, %s\n", AcpiFormatException (Status)); (void) AcpiOsDeleteSemaphore (ThreadCompleteGate); (void) AcpiOsDeleteSemaphore (MainThreadGate); return; } memset (&AcpiGbl_DbMethodInfo, 0, sizeof (ACPI_DB_METHOD_INFO)); /* Array to store IDs of threads */ AcpiGbl_DbMethodInfo.NumThreads = NumThreads; Size = sizeof (ACPI_THREAD_ID) * AcpiGbl_DbMethodInfo.NumThreads; AcpiGbl_DbMethodInfo.Threads = AcpiOsAllocate (Size); if (AcpiGbl_DbMethodInfo.Threads == NULL) { AcpiOsPrintf ("No memory for thread IDs array\n"); (void) AcpiOsDeleteSemaphore (MainThreadGate); (void) AcpiOsDeleteSemaphore (ThreadCompleteGate); (void) AcpiOsDeleteSemaphore (InfoGate); return; } memset (AcpiGbl_DbMethodInfo.Threads, 0, Size); /* Setup the context to be passed to each thread */ AcpiGbl_DbMethodInfo.Name = MethodNameArg; AcpiGbl_DbMethodInfo.Flags = 0; AcpiGbl_DbMethodInfo.NumLoops = NumLoops; AcpiGbl_DbMethodInfo.MainThreadGate = MainThreadGate; AcpiGbl_DbMethodInfo.ThreadCompleteGate = ThreadCompleteGate; AcpiGbl_DbMethodInfo.InfoGate = InfoGate; /* Init arguments to be passed to method */ AcpiGbl_DbMethodInfo.InitArgs = 1; AcpiGbl_DbMethodInfo.Args = AcpiGbl_DbMethodInfo.Arguments; AcpiGbl_DbMethodInfo.Arguments[0] = AcpiGbl_DbMethodInfo.NumThreadsStr; AcpiGbl_DbMethodInfo.Arguments[1] = AcpiGbl_DbMethodInfo.IdOfThreadStr; AcpiGbl_DbMethodInfo.Arguments[2] = AcpiGbl_DbMethodInfo.IndexOfThreadStr; AcpiGbl_DbMethodInfo.Arguments[3] = NULL; AcpiGbl_DbMethodInfo.Types = AcpiGbl_DbMethodInfo.ArgTypes; AcpiGbl_DbMethodInfo.ArgTypes[0] = ACPI_TYPE_INTEGER; AcpiGbl_DbMethodInfo.ArgTypes[1] = ACPI_TYPE_INTEGER; AcpiGbl_DbMethodInfo.ArgTypes[2] = ACPI_TYPE_INTEGER; AcpiDbUint32ToHexString (NumThreads, AcpiGbl_DbMethodInfo.NumThreadsStr); Status = AcpiDbExecuteSetup (&AcpiGbl_DbMethodInfo); if (ACPI_FAILURE (Status)) { goto CleanupAndExit; } /* Get the NS node, determines existence also */ Status = AcpiGetHandle (NULL, AcpiGbl_DbMethodInfo.Pathname, &AcpiGbl_DbMethodInfo.Method); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("%s Could not get handle for %s\n", AcpiFormatException (Status), AcpiGbl_DbMethodInfo.Pathname); goto CleanupAndExit; } /* Create the threads */ AcpiOsPrintf ("Creating %X threads to execute %X times each\n", NumThreads, NumLoops); for (i = 0; i < (NumThreads); i++) { Status = AcpiOsExecute (OSL_DEBUGGER_EXEC_THREAD, AcpiDbMethodThread, &AcpiGbl_DbMethodInfo); if (ACPI_FAILURE (Status)) { break; } } /* Wait for all threads to complete */ (void) AcpiOsWaitSemaphore (MainThreadGate, 1, ACPI_WAIT_FOREVER); AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT); AcpiOsPrintf ("All threads (%X) have completed\n", NumThreads); AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); CleanupAndExit: /* Cleanup and exit */ (void) AcpiOsDeleteSemaphore (MainThreadGate); (void) AcpiOsDeleteSemaphore (ThreadCompleteGate); (void) AcpiOsDeleteSemaphore (InfoGate); AcpiOsFree (AcpiGbl_DbMethodInfo.Threads); AcpiGbl_DbMethodInfo.Threads = NULL; } acpica-unix-20250404/source/components/debugger/dbxface.c0000775000175000017500000004106414773714132022557 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbxface - AML Debugger external interfaces * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acdebug.h" #include "acinterp.h" #include "acparser.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbxface") /* Local prototypes */ static ACPI_STATUS AcpiDbStartCommand ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); #ifdef ACPI_OBSOLETE_FUNCTIONS void AcpiDbMethodEnd ( ACPI_WALK_STATE *WalkState); #endif #ifdef ACPI_DISASSEMBLER static ACPI_PARSE_OBJECT * AcpiDbGetDisplayOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op); #endif /******************************************************************************* * * FUNCTION: AcpiDbStartCommand * * PARAMETERS: WalkState - Current walk * Op - Current executing Op, from AML interpreter * * RETURN: Status * * DESCRIPTION: Enter debugger command loop * ******************************************************************************/ static ACPI_STATUS AcpiDbStartCommand ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; /* TBD: [Investigate] are there namespace locking issues here? */ /* AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); */ /* Go into the command loop and await next user command */ AcpiGbl_MethodExecuting = TRUE; Status = AE_CTRL_TRUE; while (Status == AE_CTRL_TRUE) { /* Notify the completion of the command */ Status = AcpiOsNotifyCommandComplete (); if (ACPI_FAILURE (Status)) { goto ErrorExit; } /* Wait the readiness of the command */ Status = AcpiOsWaitCommandReady (); if (ACPI_FAILURE (Status)) { goto ErrorExit; } Status = AcpiDbCommandDispatch (AcpiGbl_DbLineBuf, WalkState, Op); } /* AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); */ ErrorExit: if (ACPI_FAILURE (Status) && Status != AE_CTRL_TERMINATE) { ACPI_EXCEPTION ((AE_INFO, Status, "While parsing/handling command line")); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbSignalBreakPoint * * PARAMETERS: WalkState - Current walk * * RETURN: Status * * DESCRIPTION: Called for AML_BREAKPOINT_OP * ******************************************************************************/ void AcpiDbSignalBreakPoint ( ACPI_WALK_STATE *WalkState) { #ifndef ACPI_APPLICATION if (AcpiGbl_DbThreadId != AcpiOsGetThreadId ()) { return; } #endif /* * Set the single-step flag. This will cause the debugger (if present) * to break to the console within the AML debugger at the start of the * next AML instruction. */ AcpiGbl_CmSingleStep = TRUE; AcpiOsPrintf ("**break** Executed AML BreakPoint opcode\n"); } #ifdef ACPI_DISASSEMBLER /******************************************************************************* * * FUNCTION: AcpiDbGetDisplayOp * * PARAMETERS: WalkState - Current walk * Op - Current executing op (from aml interpreter) * * RETURN: Opcode to display * * DESCRIPTION: Find the opcode to display during single stepping * ******************************************************************************/ static ACPI_PARSE_OBJECT * AcpiDbGetDisplayOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *DisplayOp; ACPI_PARSE_OBJECT *ParentOp; DisplayOp = Op; ParentOp = Op->Common.Parent; if (ParentOp) { if ((WalkState->ControlState) && (WalkState->ControlState->Common.State == ACPI_CONTROL_PREDICATE_EXECUTING)) { /* * We are executing the predicate of an IF or WHILE statement * Search upwards for the containing IF or WHILE so that the * entire predicate can be displayed. */ while (ParentOp) { if ((ParentOp->Common.AmlOpcode == AML_IF_OP) || (ParentOp->Common.AmlOpcode == AML_WHILE_OP)) { DisplayOp = ParentOp; break; } ParentOp = ParentOp->Common.Parent; } } else { while (ParentOp) { if ((ParentOp->Common.AmlOpcode == AML_IF_OP) || (ParentOp->Common.AmlOpcode == AML_ELSE_OP) || (ParentOp->Common.AmlOpcode == AML_SCOPE_OP) || (ParentOp->Common.AmlOpcode == AML_METHOD_OP) || (ParentOp->Common.AmlOpcode == AML_WHILE_OP)) { break; } DisplayOp = ParentOp; ParentOp = ParentOp->Common.Parent; } } } return DisplayOp; } #endif /******************************************************************************* * * FUNCTION: AcpiDbSingleStep * * PARAMETERS: WalkState - Current walk * Op - Current executing op (from aml interpreter) * OpcodeClass - Class of the current AML Opcode * * RETURN: Status * * DESCRIPTION: Called just before execution of an AML opcode. * ******************************************************************************/ ACPI_STATUS AcpiDbSingleStep ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, UINT32 OpcodeClass) { ACPI_PARSE_OBJECT *Next; ACPI_STATUS Status = AE_OK; UINT32 OriginalDebugLevel; UINT32 AmlOffset; ACPI_FUNCTION_ENTRY (); #ifndef ACPI_APPLICATION if (AcpiGbl_DbThreadId != AcpiOsGetThreadId ()) { return (AE_OK); } #endif /* Check the abort flag */ if (AcpiGbl_AbortMethod) { AcpiGbl_AbortMethod = FALSE; return (AE_ABORT_METHOD); } AmlOffset = (UINT32) ACPI_PTR_DIFF (Op->Common.Aml, WalkState->ParserState.AmlStart); /* Check for single-step breakpoint */ if (WalkState->MethodBreakpoint && (WalkState->MethodBreakpoint <= AmlOffset)) { /* Check if the breakpoint has been reached or passed */ /* Hit the breakpoint, resume single step, reset breakpoint */ AcpiOsPrintf ("***Break*** at AML offset %X\n", AmlOffset); AcpiGbl_CmSingleStep = TRUE; AcpiGbl_StepToNextCall = FALSE; WalkState->MethodBreakpoint = 0; } /* Check for user breakpoint (Must be on exact Aml offset) */ else if (WalkState->UserBreakpoint && (WalkState->UserBreakpoint == AmlOffset)) { AcpiOsPrintf ("***UserBreakpoint*** at AML offset %X\n", AmlOffset); AcpiGbl_CmSingleStep = TRUE; AcpiGbl_StepToNextCall = FALSE; WalkState->MethodBreakpoint = 0; } /* * Check if this is an opcode that we are interested in -- * namely, opcodes that have arguments */ if (Op->Common.AmlOpcode == AML_INT_NAMEDFIELD_OP) { return (AE_OK); } switch (OpcodeClass) { case AML_CLASS_UNKNOWN: case AML_CLASS_ARGUMENT: /* constants, literals, etc. do nothing */ return (AE_OK); default: /* All other opcodes -- continue */ break; } /* * Under certain debug conditions, display this opcode and its operands */ if ((AcpiGbl_DbOutputToFile) || (AcpiGbl_CmSingleStep) || (AcpiDbgLevel & ACPI_LV_PARSE)) { if ((AcpiGbl_DbOutputToFile) || (AcpiDbgLevel & ACPI_LV_PARSE)) { AcpiOsPrintf ("\nAML Debug: Next AML Opcode to execute:\n"); } /* * Display this op (and only this op - zero out the NEXT field * temporarily, and disable parser trace output for the duration of * the display because we don't want the extraneous debug output) */ OriginalDebugLevel = AcpiDbgLevel; AcpiDbgLevel &= ~(ACPI_LV_PARSE | ACPI_LV_FUNCTIONS); Next = Op->Common.Next; Op->Common.Next = NULL; /* Now we can disassemble and display it */ #ifdef ACPI_DISASSEMBLER AcpiDmDisassemble (WalkState, AcpiDbGetDisplayOp (WalkState, Op), ACPI_UINT32_MAX); #else /* * The AML Disassembler is not configured - at least we can * display the opcode value and name */ AcpiOsPrintf ("AML Opcode: %4.4X %s\n", Op->Common.AmlOpcode, AcpiPsGetOpcodeName (Op->Common.AmlOpcode)); #endif if ((Op->Common.AmlOpcode == AML_IF_OP) || (Op->Common.AmlOpcode == AML_WHILE_OP)) { if (WalkState->ControlState->Common.Value) { AcpiOsPrintf ("Predicate = [True], IF block was executed\n"); } else { AcpiOsPrintf ("Predicate = [False], Skipping IF block\n"); } } else if (Op->Common.AmlOpcode == AML_ELSE_OP) { AcpiOsPrintf ("Predicate = [False], ELSE block was executed\n"); } /* Restore everything */ Op->Common.Next = Next; AcpiOsPrintf ("\n"); if ((AcpiGbl_DbOutputToFile) || (AcpiDbgLevel & ACPI_LV_PARSE)) { AcpiOsPrintf ("\n"); } AcpiDbgLevel = OriginalDebugLevel; } /* If we are not single stepping, just continue executing the method */ if (!AcpiGbl_CmSingleStep) { return (AE_OK); } /* * If we are executing a step-to-call command, * Check if this is a method call. */ if (AcpiGbl_StepToNextCall) { if (Op->Common.AmlOpcode != AML_INT_METHODCALL_OP) { /* Not a method call, just keep executing */ return (AE_OK); } /* Found a method call, stop executing */ AcpiGbl_StepToNextCall = FALSE; } /* * If the next opcode is a method call, we will "step over" it * by default. */ if (Op->Common.AmlOpcode == AML_INT_METHODCALL_OP) { /* Force no more single stepping while executing called method */ AcpiGbl_CmSingleStep = FALSE; /* * Set the breakpoint on/before the call, it will stop execution * as soon as we return */ WalkState->MethodBreakpoint = 1; /* Must be non-zero! */ } AcpiExExitInterpreter (); Status = AcpiDbStartCommand (WalkState, Op); AcpiExEnterInterpreter (); /* User commands complete, continue execution of the interrupted method */ return (Status); } /******************************************************************************* * * FUNCTION: AcpiInitializeDebugger * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Init and start debugger * ******************************************************************************/ ACPI_STATUS AcpiInitializeDebugger ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInitializeDebugger); /* Init globals */ AcpiGbl_DbBuffer = NULL; AcpiGbl_DbFilename = NULL; AcpiGbl_DbOutputToFile = FALSE; AcpiGbl_DbDebugLevel = ACPI_LV_VERBOSITY2; AcpiGbl_DbConsoleDebugLevel = ACPI_NORMAL_DEFAULT | ACPI_LV_TABLES; AcpiGbl_DbOutputFlags = ACPI_DB_CONSOLE_OUTPUT; AcpiGbl_DbOpt_NoIniMethods = FALSE; AcpiGbl_DbOpt_NoRegionSupport = FALSE; AcpiGbl_DbBuffer = AcpiOsAllocate (ACPI_DEBUG_BUFFER_SIZE); if (!AcpiGbl_DbBuffer) { return_ACPI_STATUS (AE_NO_MEMORY); } memset (AcpiGbl_DbBuffer, 0, ACPI_DEBUG_BUFFER_SIZE); /* Initial scope is the root */ AcpiGbl_DbScopeBuf [0] = AML_ROOT_PREFIX; AcpiGbl_DbScopeBuf [1] = 0; AcpiGbl_DbScopeNode = AcpiGbl_RootNode; /* Initialize user commands loop */ AcpiGbl_DbTerminateLoop = FALSE; /* * If configured for multi-thread support, the debug executor runs in * a separate thread so that the front end can be in another address * space, environment, or even another machine. */ if (AcpiGbl_DebuggerConfiguration & DEBUGGER_MULTI_THREADED) { /* These were created with one unit, grab it */ Status = AcpiOsInitializeDebugger (); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not get debugger mutex\n"); return_ACPI_STATUS (Status); } /* Create the debug execution thread to execute commands */ AcpiGbl_DbThreadsTerminated = FALSE; Status = AcpiOsExecute (OSL_DEBUGGER_MAIN_THREAD, AcpiDbExecuteThread, NULL); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not start debugger thread")); AcpiGbl_DbThreadsTerminated = TRUE; return_ACPI_STATUS (Status); } } else { AcpiGbl_DbThreadId = AcpiOsGetThreadId (); } return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiInitializeDebugger) /******************************************************************************* * * FUNCTION: AcpiTerminateDebugger * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Stop debugger * ******************************************************************************/ void AcpiTerminateDebugger ( void) { /* Terminate the AML Debugger */ AcpiGbl_DbTerminateLoop = TRUE; if (AcpiGbl_DebuggerConfiguration & DEBUGGER_MULTI_THREADED) { /* Wait the AML Debugger threads */ while (!AcpiGbl_DbThreadsTerminated) { AcpiOsSleep (100); } AcpiOsTerminateDebugger (); } if (AcpiGbl_DbBuffer) { AcpiOsFree (AcpiGbl_DbBuffer); AcpiGbl_DbBuffer = NULL; } /* Ensure that debug output is now disabled */ AcpiGbl_DbOutputFlags = ACPI_DB_DISABLE_OUTPUT; } ACPI_EXPORT_SYMBOL (AcpiTerminateDebugger) /******************************************************************************* * * FUNCTION: AcpiSetDebuggerThreadId * * PARAMETERS: ThreadId - Debugger thread ID * * RETURN: None * * DESCRIPTION: Set debugger thread ID * ******************************************************************************/ void AcpiSetDebuggerThreadId ( ACPI_THREAD_ID ThreadId) { AcpiGbl_DbThreadId = ThreadId; } ACPI_EXPORT_SYMBOL (AcpiSetDebuggerThreadId) acpica-unix-20250404/source/components/debugger/dbobject.c0000775000175000017500000003641414773714132022742 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbobject - ACPI object decode and display * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acdebug.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbobject") /* Local prototypes */ static void AcpiDbDecodeNode ( ACPI_NAMESPACE_NODE *Node); /******************************************************************************* * * FUNCTION: AcpiDbDumpMethodInfo * * PARAMETERS: Status - Method execution status * WalkState - Current state of the parse tree walk * * RETURN: None * * DESCRIPTION: Called when a method has been aborted because of an error. * Dumps the method execution stack, and the method locals/args, * and disassembles the AML opcode that failed. * ******************************************************************************/ void AcpiDbDumpMethodInfo ( ACPI_STATUS Status, ACPI_WALK_STATE *WalkState) { ACPI_THREAD_STATE *Thread; ACPI_NAMESPACE_NODE *Node; Node = WalkState->MethodNode; /* There are no locals or arguments for the module-level code case */ if (Node == AcpiGbl_RootNode) { return; } /* Ignore control codes, they are not errors */ if (ACPI_CNTL_EXCEPTION (Status)) { return; } /* We may be executing a deferred opcode */ if (WalkState->DeferredNode) { AcpiOsPrintf ("Executing subtree for Buffer/Package/Region\n"); return; } /* * If there is no Thread, we are not actually executing a method. * This can happen when the iASL compiler calls the interpreter * to perform constant folding. */ Thread = WalkState->Thread; if (!Thread) { return; } /* Display the method locals and arguments */ AcpiOsPrintf ("\n"); AcpiDbDecodeLocals (WalkState); AcpiOsPrintf ("\n"); AcpiDbDecodeArguments (WalkState); AcpiOsPrintf ("\n"); } /******************************************************************************* * * FUNCTION: AcpiDbDecodeInternalObject * * PARAMETERS: ObjDesc - Object to be displayed * * RETURN: None * * DESCRIPTION: Short display of an internal object. Numbers/Strings/Buffers. * ******************************************************************************/ void AcpiDbDecodeInternalObject ( ACPI_OPERAND_OBJECT *ObjDesc) { UINT32 i; if (!ObjDesc) { AcpiOsPrintf (" Uninitialized"); return; } if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND) { AcpiOsPrintf (" %p [%s]", ObjDesc, AcpiUtGetDescriptorName (ObjDesc)); return; } AcpiOsPrintf (" %s", AcpiUtGetObjectTypeName (ObjDesc)); switch (ObjDesc->Common.Type) { case ACPI_TYPE_INTEGER: AcpiOsPrintf (" %8.8X%8.8X", ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value)); break; case ACPI_TYPE_STRING: AcpiOsPrintf ("(%u) \"%.60s", ObjDesc->String.Length, ObjDesc->String.Pointer); if (ObjDesc->String.Length > 60) { AcpiOsPrintf ("..."); } else { AcpiOsPrintf ("\""); } break; case ACPI_TYPE_BUFFER: AcpiOsPrintf ("(%u)", ObjDesc->Buffer.Length); for (i = 0; (i < 8) && (i < ObjDesc->Buffer.Length); i++) { AcpiOsPrintf (" %2.2X", ObjDesc->Buffer.Pointer[i]); } break; default: AcpiOsPrintf (" %p", ObjDesc); break; } } /******************************************************************************* * * FUNCTION: AcpiDbDecodeNode * * PARAMETERS: Node - Object to be displayed * * RETURN: None * * DESCRIPTION: Short display of a namespace node * ******************************************************************************/ static void AcpiDbDecodeNode ( ACPI_NAMESPACE_NODE *Node) { AcpiOsPrintf (" Name %4.4s", AcpiUtGetNodeName (Node)); if (Node->Flags & ANOBJ_METHOD_ARG) { AcpiOsPrintf (" [Method Arg]"); } if (Node->Flags & ANOBJ_METHOD_LOCAL) { AcpiOsPrintf (" [Method Local]"); } switch (Node->Type) { /* These types have no attached object */ case ACPI_TYPE_DEVICE: AcpiOsPrintf (" Device"); break; case ACPI_TYPE_THERMAL: AcpiOsPrintf (" Thermal Zone"); break; default: AcpiDbDecodeInternalObject (AcpiNsGetAttachedObject (Node)); break; } } /******************************************************************************* * * FUNCTION: AcpiDbDisplayInternalObject * * PARAMETERS: ObjDesc - Object to be displayed * WalkState - Current walk state * * RETURN: None * * DESCRIPTION: Short display of an internal object * ******************************************************************************/ void AcpiDbDisplayInternalObject ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { UINT8 Type; AcpiOsPrintf ("%p ", ObjDesc); if (!ObjDesc) { AcpiOsPrintf ("\n"); return; } /* Decode the object type */ switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc)) { case ACPI_DESC_TYPE_PARSER: AcpiOsPrintf (" "); break; case ACPI_DESC_TYPE_NAMED: AcpiDbDecodeNode ((ACPI_NAMESPACE_NODE *) ObjDesc); break; case ACPI_DESC_TYPE_OPERAND: Type = ObjDesc->Common.Type; if (Type > ACPI_TYPE_LOCAL_MAX) { AcpiOsPrintf (" Type %X [Invalid Type]", (UINT32) Type); return; } /* Decode the ACPI object type */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_LOCAL_REFERENCE: AcpiOsPrintf ("[%s] ", AcpiUtGetReferenceName (ObjDesc)); /* Decode the reference */ switch (ObjDesc->Reference.Class) { case ACPI_REFCLASS_LOCAL: AcpiOsPrintf ("%X ", ObjDesc->Reference.Value); if (WalkState) { ObjDesc = WalkState->LocalVariables [ObjDesc->Reference.Value].Object; AcpiOsPrintf ("%p", ObjDesc); AcpiDbDecodeInternalObject (ObjDesc); } break; case ACPI_REFCLASS_ARG: AcpiOsPrintf ("%X ", ObjDesc->Reference.Value); if (WalkState) { ObjDesc = WalkState->Arguments [ObjDesc->Reference.Value].Object; AcpiOsPrintf ("%p", ObjDesc); AcpiDbDecodeInternalObject (ObjDesc); } break; case ACPI_REFCLASS_INDEX: switch (ObjDesc->Reference.TargetType) { case ACPI_TYPE_BUFFER_FIELD: AcpiOsPrintf ("%p", ObjDesc->Reference.Object); AcpiDbDecodeInternalObject (ObjDesc->Reference.Object); break; case ACPI_TYPE_PACKAGE: AcpiOsPrintf ("%p", ObjDesc->Reference.Where); if (!ObjDesc->Reference.Where) { AcpiOsPrintf (" Uninitialized WHERE pointer"); } else { AcpiDbDecodeInternalObject ( *(ObjDesc->Reference.Where)); } break; default: AcpiOsPrintf ("Unknown index target type"); break; } break; case ACPI_REFCLASS_REFOF: if (!ObjDesc->Reference.Object) { AcpiOsPrintf ( "Uninitialized reference subobject pointer"); break; } /* Reference can be to a Node or an Operand object */ switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc->Reference.Object)) { case ACPI_DESC_TYPE_NAMED: AcpiDbDecodeNode (ObjDesc->Reference.Object); break; case ACPI_DESC_TYPE_OPERAND: AcpiDbDecodeInternalObject (ObjDesc->Reference.Object); break; default: break; } break; case ACPI_REFCLASS_NAME: AcpiDbDecodeNode (ObjDesc->Reference.Node); break; case ACPI_REFCLASS_DEBUG: case ACPI_REFCLASS_TABLE: AcpiOsPrintf ("\n"); break; default: /* Unknown reference class */ AcpiOsPrintf ("%2.2X\n", ObjDesc->Reference.Class); break; } break; default: AcpiOsPrintf (" "); AcpiDbDecodeInternalObject (ObjDesc); break; } break; default: AcpiOsPrintf (" [%s]", AcpiUtGetDescriptorName (ObjDesc)); break; } AcpiOsPrintf ("\n"); } /******************************************************************************* * * FUNCTION: AcpiDbDecodeLocals * * PARAMETERS: WalkState - State for current method * * RETURN: None * * DESCRIPTION: Display all locals for the currently running control method * ******************************************************************************/ void AcpiDbDecodeLocals ( ACPI_WALK_STATE *WalkState) { UINT32 i; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node; BOOLEAN DisplayLocals = FALSE; Node = WalkState->MethodNode; /* There are no locals for the module-level code case */ if (Node == AcpiGbl_RootNode) { return; } if (!Node) { AcpiOsPrintf ( "No method node (Executing subtree for buffer or opregion)\n"); return; } if (Node->Type != ACPI_TYPE_METHOD) { AcpiOsPrintf ("Executing subtree for Buffer/Package/Region\n"); return; } /* Are any locals actually set? */ for (i = 0; i < ACPI_METHOD_NUM_LOCALS; i++) { ObjDesc = WalkState->LocalVariables[i].Object; if (ObjDesc) { DisplayLocals = TRUE; break; } } /* If any are set, only display the ones that are set */ if (DisplayLocals) { AcpiOsPrintf ("\nInitialized Local Variables for Method [%4.4s]:\n", AcpiUtGetNodeName (Node)); for (i = 0; i < ACPI_METHOD_NUM_LOCALS; i++) { ObjDesc = WalkState->LocalVariables[i].Object; if (ObjDesc) { AcpiOsPrintf (" Local%X: ", i); AcpiDbDisplayInternalObject (ObjDesc, WalkState); } } } else { AcpiOsPrintf ( "No Local Variables are initialized for Method [%4.4s]\n", AcpiUtGetNodeName (Node)); } } /******************************************************************************* * * FUNCTION: AcpiDbDecodeArguments * * PARAMETERS: WalkState - State for current method * * RETURN: None * * DESCRIPTION: Display all arguments for the currently running control method * ******************************************************************************/ void AcpiDbDecodeArguments ( ACPI_WALK_STATE *WalkState) { UINT32 i; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node; BOOLEAN DisplayArgs = FALSE; Node = WalkState->MethodNode; /* There are no arguments for the module-level code case */ if (Node == AcpiGbl_RootNode) { return; } if (!Node) { AcpiOsPrintf ( "No method node (Executing subtree for buffer or opregion)\n"); return; } if (Node->Type != ACPI_TYPE_METHOD) { AcpiOsPrintf ("Executing subtree for Buffer/Package/Region\n"); return; } /* Are any arguments actually set? */ for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++) { ObjDesc = WalkState->Arguments[i].Object; if (ObjDesc) { DisplayArgs = TRUE; break; } } /* If any are set, only display the ones that are set */ if (DisplayArgs) { AcpiOsPrintf ( "Initialized Arguments for Method [%4.4s]: " "(%X arguments defined for method invocation)\n", AcpiUtGetNodeName (Node), Node->Object->Method.ParamCount); for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++) { ObjDesc = WalkState->Arguments[i].Object; if (ObjDesc) { AcpiOsPrintf (" Arg%u: ", i); AcpiDbDisplayInternalObject (ObjDesc, WalkState); } } } else { AcpiOsPrintf ( "No Arguments are initialized for method [%4.4s]\n", AcpiUtGetNodeName (Node)); } } acpica-unix-20250404/source/components/debugger/dbconvert.c0000775000175000017500000003753214773714132023156 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbconvert - debugger miscellaneous conversion routines * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdebug.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbconvert") #define DB_DEFAULT_PKG_ELEMENTS 33 /******************************************************************************* * * FUNCTION: AcpiDbHexCharToValue * * PARAMETERS: HexChar - Ascii Hex digit, 0-9|a-f|A-F * ReturnValue - Where the converted value is returned * * RETURN: Status * * DESCRIPTION: Convert a single hex character to a 4-bit number (0-16). * ******************************************************************************/ ACPI_STATUS AcpiDbHexCharToValue ( int HexChar, UINT8 *ReturnValue) { UINT8 Value; /* Digit must be ascii [0-9a-fA-F] */ if (!isxdigit (HexChar)) { return (AE_BAD_HEX_CONSTANT); } if (HexChar <= 0x39) { Value = (UINT8) (HexChar - 0x30); } else { Value = (UINT8) (toupper (HexChar) - 0x37); } *ReturnValue = Value; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbHexByteToBinary * * PARAMETERS: HexByte - Double hex digit (0x00 - 0xFF) in format: * HiByte then LoByte. * ReturnValue - Where the converted value is returned * * RETURN: Status * * DESCRIPTION: Convert two hex characters to an 8 bit number (0 - 255). * ******************************************************************************/ static ACPI_STATUS AcpiDbHexByteToBinary ( char *HexByte, UINT8 *ReturnValue) { UINT8 Local0; UINT8 Local1; ACPI_STATUS Status; /* High byte */ Status = AcpiDbHexCharToValue (HexByte[0], &Local0); if (ACPI_FAILURE (Status)) { return (Status); } /* Low byte */ Status = AcpiDbHexCharToValue (HexByte[1], &Local1); if (ACPI_FAILURE (Status)) { return (Status); } *ReturnValue = (UINT8) ((Local0 << 4) | Local1); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbConvertToBuffer * * PARAMETERS: String - Input string to be converted * Object - Where the buffer object is returned * * RETURN: Status * * DESCRIPTION: Convert a string to a buffer object. String is treated a list * of buffer elements, each separated by a space or comma. * ******************************************************************************/ static ACPI_STATUS AcpiDbConvertToBuffer ( char *String, ACPI_OBJECT *Object) { UINT32 i; UINT32 j; UINT32 Length; UINT8 *Buffer; ACPI_STATUS Status; /* Skip all preceding white space*/ AcpiUtRemoveWhitespace (&String); /* Generate the final buffer length */ for (i = 0, Length = 0; String[i];) { i+=2; Length++; while (String[i] && ((String[i] == ',') || (String[i] == ' '))) { i++; } } Buffer = ACPI_ALLOCATE (Length); if (!Buffer) { return (AE_NO_MEMORY); } /* Convert the command line bytes to the buffer */ for (i = 0, j = 0; String[i];) { Status = AcpiDbHexByteToBinary (&String[i], &Buffer[j]); if (ACPI_FAILURE (Status)) { ACPI_FREE (Buffer); return (Status); } j++; i += 2; while (String[i] && ((String[i] == ',') || (String[i] == ' '))) { i++; } } Object->Type = ACPI_TYPE_BUFFER; Object->Buffer.Pointer = Buffer; Object->Buffer.Length = Length; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbConvertToPackage * * PARAMETERS: String - Input string to be converted * Object - Where the package object is returned * * RETURN: Status * * DESCRIPTION: Convert a string to a package object. Handles nested packages * via recursion with AcpiDbConvertToObject. * ******************************************************************************/ ACPI_STATUS AcpiDbConvertToPackage ( char *String, ACPI_OBJECT *Object) { char *This; char *Next; UINT32 i; ACPI_OBJECT_TYPE Type; ACPI_OBJECT *Elements; ACPI_STATUS Status; Elements = ACPI_ALLOCATE_ZEROED ( DB_DEFAULT_PKG_ELEMENTS * sizeof (ACPI_OBJECT)); if (!Elements) return (AE_NO_MEMORY); This = String; for (i = 0; i < (DB_DEFAULT_PKG_ELEMENTS - 1); i++) { This = AcpiDbGetNextToken (This, &Next, &Type); if (!This) { break; } /* Recursive call to convert each package element */ Status = AcpiDbConvertToObject (Type, This, &Elements[i]); if (ACPI_FAILURE (Status)) { AcpiDbDeleteObjects (i + 1, Elements); ACPI_FREE (Elements); return (Status); } This = Next; } Object->Type = ACPI_TYPE_PACKAGE; Object->Package.Count = i; Object->Package.Elements = Elements; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDbConvertToObject * * PARAMETERS: Type - Object type as determined by parser * String - Input string to be converted * Object - Where the new object is returned * * RETURN: Status * * DESCRIPTION: Convert a typed and tokenized string to an ACPI_OBJECT. Typing: * 1) String objects were surrounded by quotes. * 2) Buffer objects were surrounded by parentheses. * 3) Package objects were surrounded by brackets "[]". * 4) All standalone tokens are treated as integers. * ******************************************************************************/ ACPI_STATUS AcpiDbConvertToObject ( ACPI_OBJECT_TYPE Type, char *String, ACPI_OBJECT *Object) { ACPI_STATUS Status = AE_OK; switch (Type) { case ACPI_TYPE_STRING: Object->Type = ACPI_TYPE_STRING; Object->String.Pointer = String; Object->String.Length = (UINT32) strlen (String); break; case ACPI_TYPE_BUFFER: Status = AcpiDbConvertToBuffer (String, Object); break; case ACPI_TYPE_PACKAGE: Status = AcpiDbConvertToPackage (String, Object); break; default: Object->Type = ACPI_TYPE_INTEGER; Status = AcpiUtStrtoul64 (String, &Object->Integer.Value); break; } return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbEncodePldBuffer * * PARAMETERS: PldInfo - _PLD buffer struct (Using local struct) * * RETURN: Encode _PLD buffer suitable for return value from _PLD * * DESCRIPTION: Bit-packs a _PLD buffer struct. Used to test the _PLD macros * ******************************************************************************/ UINT8 * AcpiDbEncodePldBuffer ( ACPI_PLD_INFO *PldInfo) { UINT32 *Buffer; UINT32 Dword; Buffer = ACPI_ALLOCATE_ZEROED (ACPI_PLD_BUFFER_SIZE); if (!Buffer) { return (NULL); } /* First 32 bits */ Dword = 0; ACPI_PLD_SET_REVISION (&Dword, PldInfo->Revision); ACPI_PLD_SET_IGNORE_COLOR (&Dword, PldInfo->IgnoreColor); ACPI_PLD_SET_RED (&Dword, PldInfo->Red); ACPI_PLD_SET_GREEN (&Dword, PldInfo->Green); ACPI_PLD_SET_BLUE (&Dword, PldInfo->Blue); ACPI_MOVE_32_TO_32 (&Buffer[0], &Dword); /* Second 32 bits */ Dword = 0; ACPI_PLD_SET_WIDTH (&Dword, PldInfo->Width); ACPI_PLD_SET_HEIGHT (&Dword, PldInfo->Height); ACPI_MOVE_32_TO_32 (&Buffer[1], &Dword); /* Third 32 bits */ Dword = 0; ACPI_PLD_SET_USER_VISIBLE (&Dword, PldInfo->UserVisible); ACPI_PLD_SET_DOCK (&Dword, PldInfo->Dock); ACPI_PLD_SET_LID (&Dword, PldInfo->Lid); ACPI_PLD_SET_PANEL (&Dword, PldInfo->Panel); ACPI_PLD_SET_VERTICAL (&Dword, PldInfo->VerticalPosition); ACPI_PLD_SET_HORIZONTAL (&Dword, PldInfo->HorizontalPosition); ACPI_PLD_SET_SHAPE (&Dword, PldInfo->Shape); ACPI_PLD_SET_ORIENTATION (&Dword, PldInfo->GroupOrientation); ACPI_PLD_SET_TOKEN (&Dword, PldInfo->GroupToken); ACPI_PLD_SET_POSITION (&Dword, PldInfo->GroupPosition); ACPI_PLD_SET_BAY (&Dword, PldInfo->Bay); ACPI_MOVE_32_TO_32 (&Buffer[2], &Dword); /* Fourth 32 bits */ Dword = 0; ACPI_PLD_SET_EJECTABLE (&Dword, PldInfo->Ejectable); ACPI_PLD_SET_OSPM_EJECT (&Dword, PldInfo->OspmEjectRequired); ACPI_PLD_SET_CABINET (&Dword, PldInfo->CabinetNumber); ACPI_PLD_SET_CARD_CAGE (&Dword, PldInfo->CardCageNumber); ACPI_PLD_SET_REFERENCE (&Dword, PldInfo->Reference); ACPI_PLD_SET_ROTATION (&Dword, PldInfo->Rotation); ACPI_PLD_SET_ORDER (&Dword, PldInfo->Order); ACPI_MOVE_32_TO_32 (&Buffer[3], &Dword); if (PldInfo->Revision >= 2) { /* Fifth 32 bits */ Dword = 0; ACPI_PLD_SET_VERT_OFFSET (&Dword, PldInfo->VerticalOffset); ACPI_PLD_SET_HORIZ_OFFSET (&Dword, PldInfo->HorizontalOffset); ACPI_MOVE_32_TO_32 (&Buffer[4], &Dword); } return (ACPI_CAST_PTR (UINT8, Buffer)); } /******************************************************************************* * * FUNCTION: AcpiDbDumpPldBuffer * * PARAMETERS: ObjDesc - Object returned from _PLD method * * RETURN: None. * * DESCRIPTION: Dumps formatted contents of a _PLD return buffer. * ******************************************************************************/ #define ACPI_PLD_OUTPUT "%20s : %-6X\n" void AcpiDbDumpPldBuffer ( ACPI_OBJECT *ObjDesc) { ACPI_OBJECT *BufferDesc; ACPI_PLD_INFO *PldInfo; UINT8 *NewBuffer; ACPI_STATUS Status; /* Object must be of type Package with at least one Buffer element */ if (ObjDesc->Type != ACPI_TYPE_PACKAGE) { return; } BufferDesc = &ObjDesc->Package.Elements[0]; if (BufferDesc->Type != ACPI_TYPE_BUFFER) { return; } /* Convert _PLD buffer to local _PLD struct */ Status = AcpiDecodePldBuffer (BufferDesc->Buffer.Pointer, BufferDesc->Buffer.Length, &PldInfo); if (ACPI_FAILURE (Status)) { return; } /* Encode local _PLD struct back to a _PLD buffer */ NewBuffer = AcpiDbEncodePldBuffer (PldInfo); if (!NewBuffer) { goto Exit; } /* The two bit-packed buffers should match */ if (memcmp (NewBuffer, BufferDesc->Buffer.Pointer, BufferDesc->Buffer.Length)) { AcpiOsPrintf ("Converted _PLD buffer does not compare. New:\n"); AcpiUtDumpBuffer (NewBuffer, BufferDesc->Buffer.Length, DB_BYTE_DISPLAY, 0); } /* First 32-bit dword */ AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Revision", PldInfo->Revision); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_IgnoreColor", PldInfo->IgnoreColor); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Red", PldInfo->Red); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Green", PldInfo->Green); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Blue", PldInfo->Blue); /* Second 32-bit dword */ AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Width", PldInfo->Width); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Height", PldInfo->Height); /* Third 32-bit dword */ AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_UserVisible", PldInfo->UserVisible); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Dock", PldInfo->Dock); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Lid", PldInfo->Lid); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Panel", PldInfo->Panel); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_VerticalPosition", PldInfo->VerticalPosition); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_HorizontalPosition", PldInfo->HorizontalPosition); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Shape", PldInfo->Shape); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_GroupOrientation", PldInfo->GroupOrientation); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_GroupToken", PldInfo->GroupToken); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_GroupPosition", PldInfo->GroupPosition); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Bay", PldInfo->Bay); /* Fourth 32-bit dword */ AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Ejectable", PldInfo->Ejectable); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_EjectRequired", PldInfo->OspmEjectRequired); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_CabinetNumber", PldInfo->CabinetNumber); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_CardCageNumber", PldInfo->CardCageNumber); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Reference", PldInfo->Reference); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Rotation", PldInfo->Rotation); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_Order", PldInfo->Order); /* Fifth 32-bit dword */ if (BufferDesc->Buffer.Length > 16) { AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_VerticalOffset", PldInfo->VerticalOffset); AcpiOsPrintf (ACPI_PLD_OUTPUT, "PLD_HorizontalOffset", PldInfo->HorizontalOffset); } ACPI_FREE (NewBuffer); Exit: ACPI_FREE (PldInfo); } acpica-unix-20250404/source/components/debugger/dbutils.c0000775000175000017500000003213214773714132022625 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbutils - AML debugger utilities * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acdebug.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbutils") /* Local prototypes */ #ifdef ACPI_OBSOLETE_FUNCTIONS ACPI_STATUS AcpiDbSecondPassParse ( ACPI_PARSE_OBJECT *Root); void AcpiDbDumpBuffer ( UINT32 Address); #endif /******************************************************************************* * * FUNCTION: AcpiDbMatchArgument * * PARAMETERS: UserArgument - User command line * Arguments - Array of commands to match against * * RETURN: Index into command array or ACPI_TYPE_NOT_FOUND if not found * * DESCRIPTION: Search command array for a command match * ******************************************************************************/ ACPI_OBJECT_TYPE AcpiDbMatchArgument ( char *UserArgument, ACPI_DB_ARGUMENT_INFO *Arguments) { UINT32 i; if (!UserArgument || UserArgument[0] == 0) { return (ACPI_TYPE_NOT_FOUND); } for (i = 0; Arguments[i].Name; i++) { if (strstr ( ACPI_CAST_PTR (char, Arguments[i].Name), ACPI_CAST_PTR (char, UserArgument)) == Arguments[i].Name) { return (i); } } /* Argument not recognized */ return (ACPI_TYPE_NOT_FOUND); } /******************************************************************************* * * FUNCTION: AcpiDbSetOutputDestination * * PARAMETERS: OutputFlags - Current flags word * * RETURN: None * * DESCRIPTION: Set the current destination for debugger output. Also sets * the debug output level accordingly. * ******************************************************************************/ void AcpiDbSetOutputDestination ( UINT32 OutputFlags) { AcpiGbl_DbOutputFlags = (UINT8) OutputFlags; if ((OutputFlags & ACPI_DB_REDIRECTABLE_OUTPUT) && AcpiGbl_DbOutputToFile) { AcpiDbgLevel = AcpiGbl_DbDebugLevel; } else { AcpiDbgLevel = AcpiGbl_DbConsoleDebugLevel; } } /******************************************************************************* * * FUNCTION: AcpiDbDumpExternalObject * * PARAMETERS: ObjDesc - External ACPI object to dump * Level - Nesting level. * * RETURN: None * * DESCRIPTION: Dump the contents of an ACPI external object * ******************************************************************************/ void AcpiDbDumpExternalObject ( ACPI_OBJECT *ObjDesc, UINT32 Level) { UINT32 i; if (!ObjDesc) { AcpiOsPrintf ("[Null Object]\n"); return; } for (i = 0; i < Level; i++) { AcpiOsPrintf (" "); } switch (ObjDesc->Type) { case ACPI_TYPE_ANY: AcpiOsPrintf ("[Null Object] (Type=0)\n"); break; case ACPI_TYPE_INTEGER: AcpiOsPrintf ("[Integer] = %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value)); break; case ACPI_TYPE_STRING: AcpiOsPrintf ("[String] Length %.2X = ", ObjDesc->String.Length); AcpiUtPrintString (ObjDesc->String.Pointer, ACPI_UINT8_MAX); AcpiOsPrintf ("\n"); break; case ACPI_TYPE_BUFFER: AcpiOsPrintf ("[Buffer] Length %.2X = ", ObjDesc->Buffer.Length); if (ObjDesc->Buffer.Length) { if (ObjDesc->Buffer.Length > 16) { AcpiOsPrintf ("\n"); } AcpiUtDebugDumpBuffer ( ACPI_CAST_PTR (UINT8, ObjDesc->Buffer.Pointer), ObjDesc->Buffer.Length, DB_BYTE_DISPLAY, _COMPONENT); } else { AcpiOsPrintf ("\n"); } break; case ACPI_TYPE_PACKAGE: AcpiOsPrintf ("[Package] Contains %u Elements:\n", ObjDesc->Package.Count); for (i = 0; i < ObjDesc->Package.Count; i++) { AcpiDbDumpExternalObject ( &ObjDesc->Package.Elements[i], Level+1); } break; case ACPI_TYPE_LOCAL_REFERENCE: AcpiOsPrintf ("[Object Reference] = "); AcpiDbDisplayInternalObject (ObjDesc->Reference.Handle, NULL); break; case ACPI_TYPE_PROCESSOR: AcpiOsPrintf ("[Processor]\n"); break; case ACPI_TYPE_POWER: AcpiOsPrintf ("[Power Resource]\n"); break; default: AcpiOsPrintf ("[Unknown Type] %X\n", ObjDesc->Type); break; } } /******************************************************************************* * * FUNCTION: AcpiDbPrepNamestring * * PARAMETERS: Name - String to prepare * * RETURN: None * * DESCRIPTION: Translate all forward slashes and dots to backslashes. * ******************************************************************************/ void AcpiDbPrepNamestring ( char *Name) { if (!Name) { return; } AcpiUtStrupr (Name); /* Convert a leading forward slash to a backslash */ if (*Name == '/') { *Name = '\\'; } /* Ignore a leading backslash, this is the root prefix */ if (ACPI_IS_ROOT_PREFIX (*Name)) { Name++; } /* Convert all slash path separators to dots */ while (*Name) { if ((*Name == '/') || (*Name == '\\')) { *Name = '.'; } Name++; } } /******************************************************************************* * * FUNCTION: AcpiDbLocalNsLookup * * PARAMETERS: Name - Name to lookup * * RETURN: Pointer to a namespace node, null on failure * * DESCRIPTION: Lookup a name in the ACPI namespace * * Note: Currently begins search from the root. Could be enhanced to use * the current prefix (scope) node as the search beginning point. * ******************************************************************************/ ACPI_NAMESPACE_NODE * AcpiDbLocalNsLookup ( char *Name) { char *InternalPath; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node = NULL; AcpiDbPrepNamestring (Name); /* Build an internal namestring */ Status = AcpiNsInternalizeName (Name, &InternalPath); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Invalid namestring: %s\n", Name); return (NULL); } /* * Lookup the name. * (Uses root node as the search starting point) */ Status = AcpiNsLookup (NULL, InternalPath, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE, NULL, &Node); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not locate name: %s, %s\n", Name, AcpiFormatException (Status)); } ACPI_FREE (InternalPath); return (Node); } /******************************************************************************* * * FUNCTION: AcpiDbUint32ToHexString * * PARAMETERS: Value - The value to be converted to string * Buffer - Buffer for result (not less than 11 bytes) * * RETURN: None * * DESCRIPTION: Convert the unsigned 32-bit value to the hexadecimal image * * NOTE: It is the caller's responsibility to ensure that the length of buffer * is sufficient. * ******************************************************************************/ void AcpiDbUint32ToHexString ( UINT32 Value, char *Buffer) { int i; if (Value == 0) { strcpy (Buffer, "0"); return; } Buffer[8] = '\0'; for (i = 7; i >= 0; i--) { Buffer[i] = AcpiGbl_UpperHexDigits [Value & 0x0F]; Value = Value >> 4; } } #ifdef ACPI_OBSOLETE_FUNCTIONS /******************************************************************************* * * FUNCTION: AcpiDbSecondPassParse * * PARAMETERS: Root - Root of the parse tree * * RETURN: Status * * DESCRIPTION: Second pass parse of the ACPI tables. We need to wait until * second pass to parse the control methods * ******************************************************************************/ ACPI_STATUS AcpiDbSecondPassParse ( ACPI_PARSE_OBJECT *Root) { ACPI_PARSE_OBJECT *Op = Root; ACPI_PARSE_OBJECT *Method; ACPI_PARSE_OBJECT *SearchOp; ACPI_PARSE_OBJECT *StartOp; ACPI_STATUS Status = AE_OK; UINT32 BaseAmlOffset; ACPI_WALK_STATE *WalkState; ACPI_FUNCTION_ENTRY (); AcpiOsPrintf ("Pass two parse ....\n"); while (Op) { if (Op->Common.AmlOpcode == AML_METHOD_OP) { Method = Op; /* Create a new walk state for the parse */ WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL); if (!WalkState) { return (AE_NO_MEMORY); } /* Init the Walk State */ WalkState->ParserState.Aml = WalkState->ParserState.AmlStart = Method->Named.Data; WalkState->ParserState.AmlEnd = WalkState->ParserState.PkgEnd = Method->Named.Data + Method->Named.Length; WalkState->ParserState.StartScope = Op; WalkState->DescendingCallback = AcpiDsLoad1BeginOp; WalkState->AscendingCallback = AcpiDsLoad1EndOp; /* Perform the AML parse */ Status = AcpiPsParseAml (WalkState); BaseAmlOffset = (Method->Common.Value.Arg)->Common.AmlOffset + 1; StartOp = (Method->Common.Value.Arg)->Common.Next; SearchOp = StartOp; while (SearchOp) { SearchOp->Common.AmlOffset += BaseAmlOffset; SearchOp = AcpiPsGetDepthNext (StartOp, SearchOp); } } if (Op->Common.AmlOpcode == AML_REGION_OP) { /* TBD: [Investigate] this isn't quite the right thing to do! */ /* * * Method = (ACPI_DEFERRED_OP *) Op; * Status = AcpiPsParseAml (Op, Method->Body, Method->BodyLength); */ } if (ACPI_FAILURE (Status)) { break; } Op = AcpiPsGetDepthNext (Root, Op); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbDumpBuffer * * PARAMETERS: Address - Pointer to the buffer * * RETURN: None * * DESCRIPTION: Print a portion of a buffer * ******************************************************************************/ void AcpiDbDumpBuffer ( UINT32 Address) { AcpiOsPrintf ("\nLocation %X:\n", Address); AcpiDbgLevel |= ACPI_LV_TABLES; AcpiUtDebugDumpBuffer (ACPI_TO_POINTER (Address), 64, DB_BYTE_DISPLAY, ACPI_UINT32_MAX); } #endif acpica-unix-20250404/source/components/debugger/dbfileio.c0000775000175000017500000001214614773714132022737 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbfileio - Debugger file I/O commands. These can't usually * be used when running the debugger in Ring 0 (Kernel mode) * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdebug.h" #include "actables.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbfileio") #ifdef ACPI_APPLICATION #include "acapps.h" #ifdef ACPI_DEBUGGER /******************************************************************************* * * FUNCTION: AcpiDbCloseDebugFile * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: If open, close the current debug output file * ******************************************************************************/ void AcpiDbCloseDebugFile ( void) { if (AcpiGbl_DebugFile) { fclose (AcpiGbl_DebugFile); AcpiGbl_DebugFile = NULL; AcpiGbl_DbOutputToFile = FALSE; AcpiOsPrintf ("Debug output file %s closed\n", AcpiGbl_DbDebugFilename); } } /******************************************************************************* * * FUNCTION: AcpiDbOpenDebugFile * * PARAMETERS: Name - Filename to open * * RETURN: None * * DESCRIPTION: Open a file where debug output will be directed. * ******************************************************************************/ void AcpiDbOpenDebugFile ( char *Name) { AcpiDbCloseDebugFile (); AcpiGbl_DebugFile = fopen (Name, "w+"); if (!AcpiGbl_DebugFile) { AcpiOsPrintf ("Could not open debug file %s\n", Name); return; } AcpiOsPrintf ("Debug output file %s opened\n", Name); AcpiUtSafeStrncpy (AcpiGbl_DbDebugFilename, Name, sizeof (AcpiGbl_DbDebugFilename)); AcpiGbl_DbOutputToFile = TRUE; } #endif /******************************************************************************* * * FUNCTION: AcpiDbLoadTables * * PARAMETERS: ListHead - List of ACPI tables to load * * RETURN: Status * * DESCRIPTION: Load ACPI tables from a previously constructed table list. * ******************************************************************************/ ACPI_STATUS AcpiDbLoadTables ( ACPI_NEW_TABLE_DESC *ListHead) { ACPI_STATUS Status; ACPI_NEW_TABLE_DESC *TableListHead; ACPI_TABLE_HEADER *Table; /* Load all ACPI tables in the list */ TableListHead = ListHead; while (TableListHead) { Table = TableListHead->Table; Status = AcpiLoadTable (Table, NULL); if (ACPI_FAILURE (Status)) { if (Status == AE_ALREADY_EXISTS) { AcpiOsPrintf ("Table %4.4s is already installed\n", Table->Signature); } else { AcpiOsPrintf ("Could not install table, %s\n", AcpiFormatException (Status)); } return (Status); } AcpiOsPrintf ("Acpi table [%4.4s] successfully installed and loaded\n", Table->Signature); TableListHead = TableListHead->Next; } return (AE_OK); } #endif acpica-unix-20250404/source/components/debugger/dbmethod.c0000775000175000017500000004366514773714132022762 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dbmethod - Debug commands for control methods * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "acnamesp.h" #include "acdebug.h" #include "acparser.h" #include "acpredef.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbmethod") /* Local prototypes */ static ACPI_STATUS AcpiDbWalkForExecute ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static ACPI_STATUS AcpiDbEvaluateObject ( ACPI_NAMESPACE_NODE *Node); /******************************************************************************* * * FUNCTION: AcpiDbSetMethodBreakpoint * * PARAMETERS: Location - AML offset of breakpoint * WalkState - Current walk info * Op - Current Op (from parse walk) * * RETURN: None * * DESCRIPTION: Set a breakpoint in a control method at the specified * AML offset * ******************************************************************************/ void AcpiDbSetMethodBreakpoint ( char *Location, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { UINT32 Address; UINT32 AmlOffset; if (!Op) { AcpiOsPrintf ("There is no method currently executing\n"); return; } /* Get and verify the breakpoint address */ Address = strtoul (Location, NULL, 16); AmlOffset = (UINT32) ACPI_PTR_DIFF (Op->Common.Aml, WalkState->ParserState.AmlStart); if (Address <= AmlOffset) { AcpiOsPrintf ("Breakpoint %X is beyond current address %X\n", Address, AmlOffset); } /* Save breakpoint in current walk */ WalkState->UserBreakpoint = Address; AcpiOsPrintf ("Breakpoint set at AML offset %X\n", Address); } /******************************************************************************* * * FUNCTION: AcpiDbSetMethodCallBreakpoint * * PARAMETERS: Op - Current Op (from parse walk) * * RETURN: None * * DESCRIPTION: Set a breakpoint in a control method at the specified * AML offset * ******************************************************************************/ void AcpiDbSetMethodCallBreakpoint ( ACPI_PARSE_OBJECT *Op) { if (!Op) { AcpiOsPrintf ("There is no method currently executing\n"); return; } AcpiGbl_StepToNextCall = TRUE; } /******************************************************************************* * * FUNCTION: AcpiDbSetMethodData * * PARAMETERS: TypeArg - L for local, A for argument * IndexArg - which one * ValueArg - Value to set. * * RETURN: None * * DESCRIPTION: Set a local or argument for the running control method. * NOTE: only object supported is Number. * ******************************************************************************/ void AcpiDbSetMethodData ( char *TypeArg, char *IndexArg, char *ValueArg) { char Type; UINT32 Index; UINT32 Value; ACPI_WALK_STATE *WalkState; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; /* Validate TypeArg */ AcpiUtStrupr (TypeArg); Type = TypeArg[0]; if ((Type != 'L') && (Type != 'A') && (Type != 'N')) { AcpiOsPrintf ("Invalid SET operand: %s\n", TypeArg); return; } Value = strtoul (ValueArg, NULL, 16); if (Type == 'N') { Node = AcpiDbConvertToNode (IndexArg); if (!Node) { return; } if (Node->Type != ACPI_TYPE_INTEGER) { AcpiOsPrintf ("Can only set Integer nodes\n"); return; } ObjDesc = Node->Object; ObjDesc->Integer.Value = Value; return; } /* Get the index and value */ Index = strtoul (IndexArg, NULL, 16); WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList); if (!WalkState) { AcpiOsPrintf ("There is no method currently executing\n"); return; } /* Create and initialize the new object */ ObjDesc = AcpiUtCreateIntegerObject ((UINT64) Value); if (!ObjDesc) { AcpiOsPrintf ("Could not create an internal object\n"); return; } /* Store the new object into the target */ switch (Type) { case 'A': /* Set a method argument */ if (Index > ACPI_METHOD_MAX_ARG) { AcpiOsPrintf ("Arg%u - Invalid argument name\n", Index); goto Cleanup; } Status = AcpiDsStoreObjectToLocal (ACPI_REFCLASS_ARG, Index, ObjDesc, WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } ObjDesc = WalkState->Arguments[Index].Object; AcpiOsPrintf ("Arg%u: ", Index); AcpiDbDisplayInternalObject (ObjDesc, WalkState); break; case 'L': /* Set a method local */ if (Index > ACPI_METHOD_MAX_LOCAL) { AcpiOsPrintf ("Local%u - Invalid local variable name\n", Index); goto Cleanup; } Status = AcpiDsStoreObjectToLocal (ACPI_REFCLASS_LOCAL, Index, ObjDesc, WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } ObjDesc = WalkState->LocalVariables[Index].Object; AcpiOsPrintf ("Local%u: ", Index); AcpiDbDisplayInternalObject (ObjDesc, WalkState); break; default: break; } Cleanup: AcpiUtRemoveReference (ObjDesc); } #ifdef ACPI_DISASSEMBLER /******************************************************************************* * * FUNCTION: AcpiDbDisassembleAml * * PARAMETERS: Statements - Number of statements to disassemble * Op - Current Op (from parse walk) * * RETURN: None * * DESCRIPTION: Display disassembled AML (ASL) starting from Op for the number * of statements specified. * ******************************************************************************/ void AcpiDbDisassembleAml ( char *Statements, ACPI_PARSE_OBJECT *Op) { UINT32 NumStatements = 8; if (!Op) { AcpiOsPrintf ("There is no method currently executing\n"); return; } if (Statements) { NumStatements = strtoul (Statements, NULL, 0); } AcpiDmDisassemble (NULL, Op, NumStatements); } /******************************************************************************* * * FUNCTION: AcpiDbDisassembleMethod * * PARAMETERS: Name - Name of control method * * RETURN: None * * DESCRIPTION: Display disassembled AML (ASL) starting from Op for the number * of statements specified. * ******************************************************************************/ ACPI_STATUS AcpiDbDisassembleMethod ( char *Name) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *Op; ACPI_WALK_STATE *WalkState; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Method; Method = AcpiDbConvertToNode (Name); if (!Method) { return (AE_BAD_PARAMETER); } if (Method->Type != ACPI_TYPE_METHOD) { ACPI_ERROR ((AE_INFO, "%s (%s): Object must be a control method", Name, AcpiUtGetTypeName (Method->Type))); return (AE_BAD_PARAMETER); } ObjDesc = Method->Object; Op = AcpiPsCreateScopeOp (ObjDesc->Method.AmlStart); if (!Op) { return (AE_NO_MEMORY); } /* Create and initialize a new walk state */ WalkState = AcpiDsCreateWalkState (0, Op, NULL, NULL); if (!WalkState) { return (AE_NO_MEMORY); } Status = AcpiDsInitAmlWalk (WalkState, Op, NULL, ObjDesc->Method.AmlStart, ObjDesc->Method.AmlLength, NULL, ACPI_IMODE_LOAD_PASS1); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiUtAllocateOwnerId (&ObjDesc->Method.OwnerId); if (ACPI_FAILURE(Status)) { return (Status); } WalkState->OwnerId = ObjDesc->Method.OwnerId; /* Push start scope on scope stack and make it current */ Status = AcpiDsScopeStackPush (Method, Method->Type, WalkState); if (ACPI_FAILURE (Status)) { return (Status); } /* Parse the entire method AML including deferred operators */ WalkState->ParseFlags &= ~ACPI_PARSE_DELETE_TREE; WalkState->ParseFlags |= ACPI_PARSE_DISASSEMBLE; Status = AcpiPsParseAml (WalkState); if (ACPI_FAILURE(Status)) { return (Status); } (void) AcpiDmParseDeferredOps (Op); /* Now we can disassemble the method */ AcpiGbl_DmOpt_Verbose = FALSE; AcpiDmDisassemble (NULL, Op, 0); AcpiGbl_DmOpt_Verbose = TRUE; AcpiPsDeleteParseTree (Op); /* Method cleanup */ AcpiNsDeleteNamespaceSubtree (Method); AcpiNsDeleteNamespaceByOwner (ObjDesc->Method.OwnerId); AcpiUtReleaseOwnerId (&ObjDesc->Method.OwnerId); return (AE_OK); } #endif /******************************************************************************* * * FUNCTION: AcpiDbEvaluateObject * * PARAMETERS: Node - Namespace node for the object * * RETURN: Status * * DESCRIPTION: Main execution function for the Evaluate/Execute/All debugger * commands. * ******************************************************************************/ static ACPI_STATUS AcpiDbEvaluateObject ( ACPI_NAMESPACE_NODE *Node) { char *Pathname; UINT32 i; ACPI_DEVICE_INFO *ObjInfo; ACPI_OBJECT_LIST ParamObjects; ACPI_OBJECT Params[ACPI_METHOD_NUM_ARGS]; ACPI_BUFFER ReturnObj; ACPI_STATUS Status; Pathname = AcpiNsGetExternalPathname (Node); if (!Pathname) { return (AE_OK); } /* Get the object info for number of method parameters */ Status = AcpiGetObjectInfo (Node, &ObjInfo); if (ACPI_FAILURE (Status)) { ACPI_FREE (Pathname); return (Status); } ParamObjects.Pointer = NULL; ParamObjects.Count = 0; if (ObjInfo->Type == ACPI_TYPE_METHOD) { /* Setup default parameters */ for (i = 0; i < ObjInfo->ParamCount; i++) { Params[i].Type = ACPI_TYPE_INTEGER; Params[i].Integer.Value = 1; } ParamObjects.Pointer = Params; ParamObjects.Count = ObjInfo->ParamCount; } ACPI_FREE (ObjInfo); ReturnObj.Pointer = NULL; ReturnObj.Length = ACPI_ALLOCATE_BUFFER; /* Do the actual method execution */ AcpiGbl_MethodExecuting = TRUE; Status = AcpiEvaluateObject (Node, NULL, &ParamObjects, &ReturnObj); AcpiGbl_MethodExecuting = FALSE; AcpiOsPrintf ("%-32s returned %s\n", Pathname, AcpiFormatException (Status)); if (ReturnObj.Length) { AcpiOsPrintf ("Evaluation of %s returned object %p, " "external buffer length %X\n", Pathname, ReturnObj.Pointer, (UINT32) ReturnObj.Length); AcpiDbDumpExternalObject (ReturnObj.Pointer, 1); AcpiOsPrintf ("\n"); } ACPI_FREE (Pathname); /* Ignore status from method execution */ return (AE_OK); /* Update count, check if we have executed enough methods */ } /******************************************************************************* * * FUNCTION: AcpiDbWalkForExecute * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Batch execution function. Evaluates all "predefined" objects -- * the nameseg begins with an underscore. * ******************************************************************************/ static ACPI_STATUS AcpiDbWalkForExecute ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_DB_EXECUTE_WALK *Info = (ACPI_DB_EXECUTE_WALK *) Context; ACPI_STATUS Status; const ACPI_PREDEFINED_INFO *Predefined; Predefined = AcpiUtMatchPredefinedMethod (Node->Name.Ascii); if (!Predefined) { return (AE_OK); } if (Node->Type == ACPI_TYPE_LOCAL_SCOPE) { return (AE_OK); } AcpiDbEvaluateObject (Node); /* Ignore status from object evaluation */ Status = AE_OK; /* Update count, check if we have executed enough methods */ Info->Count++; if (Info->Count >= Info->MaxCount) { Status = AE_CTRL_TERMINATE; } return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbWalkForExecuteAll * * PARAMETERS: Callback from WalkNamespace * * RETURN: Status * * DESCRIPTION: Batch execution function. Evaluates all objects whose path ends * with the nameseg "Info->NameSeg". Used for the "ALL" command. * ******************************************************************************/ static ACPI_STATUS AcpiDbWalkForExecuteAll ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_DB_EXECUTE_WALK *Info = (ACPI_DB_EXECUTE_WALK *) Context; ACPI_STATUS Status; if (!ACPI_COMPARE_NAMESEG (Node->Name.Ascii, Info->NameSeg)) { return (AE_OK); } if (Node->Type == ACPI_TYPE_LOCAL_SCOPE) { return (AE_OK); } /* Now evaluate the input object (node) */ AcpiDbEvaluateObject (Node); /* Ignore status from method execution */ Status = AE_OK; /* Update count of executed methods/objects */ Info->Count++; return (Status); } /******************************************************************************* * * FUNCTION: AcpiDbEvaluatePredefinedNames * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Namespace batch execution. Execute predefined names in the * namespace, up to the max count, if specified. * ******************************************************************************/ void AcpiDbEvaluatePredefinedNames ( void) { ACPI_DB_EXECUTE_WALK Info; Info.Count = 0; Info.MaxCount = ACPI_UINT32_MAX; /* Search all nodes in namespace */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbWalkForExecute, NULL, (void *) &Info, NULL); AcpiOsPrintf ("Evaluated %u predefined names in the namespace\n", Info.Count); } /******************************************************************************* * * FUNCTION: AcpiDbEvaluateAll * * PARAMETERS: NoneAcpiGbl_DbMethodInfo * * RETURN: None * * DESCRIPTION: Namespace batch execution. Implements the "ALL" command. * Execute all namepaths whose final nameseg matches the * input nameseg. * ******************************************************************************/ void AcpiDbEvaluateAll ( char *NameSeg) { ACPI_DB_EXECUTE_WALK Info; Info.Count = 0; Info.MaxCount = ACPI_UINT32_MAX; ACPI_COPY_NAMESEG (Info.NameSeg, NameSeg); Info.NameSeg[ACPI_NAMESEG_SIZE] = 0; /* Search all nodes in namespace */ (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiDbWalkForExecuteAll, NULL, (void *) &Info, NULL); AcpiOsPrintf ("Evaluated %u names in the namespace\n", Info.Count); } acpica-unix-20250404/source/components/executer/0000775000175000017500000000000014773714132021047 5ustar ivanhuivanhuacpica-unix-20250404/source/components/executer/exresolv.c0000775000175000017500000004227014773714132023072 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exresolv - AML Interpreter object resolution * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exresolv") /* Local prototypes */ static ACPI_STATUS AcpiExResolveObjectToValue ( ACPI_OPERAND_OBJECT **StackPtr, ACPI_WALK_STATE *WalkState); /******************************************************************************* * * FUNCTION: AcpiExResolveToValue * * PARAMETERS: **StackPtr - Points to entry on ObjStack, which can * be either an (ACPI_OPERAND_OBJECT *) * or an ACPI_HANDLE. * WalkState - Current method state * * RETURN: Status * * DESCRIPTION: Convert Reference objects to values * ******************************************************************************/ ACPI_STATUS AcpiExResolveToValue ( ACPI_OPERAND_OBJECT **StackPtr, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (ExResolveToValue, StackPtr); if (!StackPtr || !*StackPtr) { ACPI_ERROR ((AE_INFO, "Internal - null pointer")); return_ACPI_STATUS (AE_AML_NO_OPERAND); } /* * The entity pointed to by the StackPtr can be either * 1) A valid ACPI_OPERAND_OBJECT, or * 2) A ACPI_NAMESPACE_NODE (NamedObj) */ if (ACPI_GET_DESCRIPTOR_TYPE (*StackPtr) == ACPI_DESC_TYPE_OPERAND) { Status = AcpiExResolveObjectToValue (StackPtr, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (!*StackPtr) { ACPI_ERROR ((AE_INFO, "Internal - null pointer")); return_ACPI_STATUS (AE_AML_NO_OPERAND); } } /* * Object on the stack may have changed if AcpiExResolveObjectToValue() * was called (i.e., we can't use an _else_ here.) */ if (ACPI_GET_DESCRIPTOR_TYPE (*StackPtr) == ACPI_DESC_TYPE_NAMED) { Status = AcpiExResolveNodeToValue ( ACPI_CAST_INDIRECT_PTR (ACPI_NAMESPACE_NODE, StackPtr), WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Resolved object %p\n", *StackPtr)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExResolveObjectToValue * * PARAMETERS: StackPtr - Pointer to an internal object * WalkState - Current method state * * RETURN: Status * * DESCRIPTION: Retrieve the value from an internal object. The Reference type * uses the associated AML opcode to determine the value. * ******************************************************************************/ static ACPI_STATUS AcpiExResolveObjectToValue ( ACPI_OPERAND_OBJECT **StackPtr, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *StackDesc; ACPI_OPERAND_OBJECT *ObjDesc = NULL; UINT8 RefType; ACPI_FUNCTION_TRACE (ExResolveObjectToValue); StackDesc = *StackPtr; /* This is an object of type ACPI_OPERAND_OBJECT */ switch (StackDesc->Common.Type) { case ACPI_TYPE_LOCAL_REFERENCE: RefType = StackDesc->Reference.Class; switch (RefType) { case ACPI_REFCLASS_LOCAL: case ACPI_REFCLASS_ARG: /* * Get the local from the method's state info * Note: this increments the local's object reference count */ Status = AcpiDsMethodDataGetValue (RefType, StackDesc->Reference.Value, WalkState, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Arg/Local %X] ValueObj is %p\n", StackDesc->Reference.Value, ObjDesc)); /* * Now we can delete the original Reference Object and * replace it with the resolved value */ AcpiUtRemoveReference (StackDesc); *StackPtr = ObjDesc; break; case ACPI_REFCLASS_INDEX: switch (StackDesc->Reference.TargetType) { case ACPI_TYPE_BUFFER_FIELD: /* Just return - do not dereference */ break; case ACPI_TYPE_PACKAGE: /* If method call or CopyObject - do not dereference */ if ((WalkState->Opcode == AML_INT_METHODCALL_OP) || (WalkState->Opcode == AML_COPY_OBJECT_OP)) { break; } /* Otherwise, dereference the PackageIndex to a package element */ ObjDesc = *StackDesc->Reference.Where; if (ObjDesc) { /* * Valid object descriptor, copy pointer to return value * (i.e., dereference the package index) * Delete the ref object, increment the returned object */ AcpiUtAddReference (ObjDesc); *StackPtr = ObjDesc; } else { /* * A NULL object descriptor means an uninitialized element of * the package, can't dereference it */ ACPI_ERROR ((AE_INFO, "Attempt to dereference an Index to " "NULL package element Idx=%p", StackDesc)); Status = AE_AML_UNINITIALIZED_ELEMENT; } break; default: /* Invalid reference object */ ACPI_ERROR ((AE_INFO, "Unknown TargetType 0x%X in Index/Reference object %p", StackDesc->Reference.TargetType, StackDesc)); Status = AE_AML_INTERNAL; break; } break; case ACPI_REFCLASS_REFOF: case ACPI_REFCLASS_DEBUG: case ACPI_REFCLASS_TABLE: /* Just leave the object as-is, do not dereference */ break; case ACPI_REFCLASS_NAME: /* Reference to a named object */ /* Dereference the name */ if ((StackDesc->Reference.Node->Type == ACPI_TYPE_DEVICE) || (StackDesc->Reference.Node->Type == ACPI_TYPE_THERMAL)) { /* These node types do not have 'real' subobjects */ *StackPtr = (void *) StackDesc->Reference.Node; } else { /* Get the object pointed to by the namespace node */ *StackPtr = (StackDesc->Reference.Node)->Object; AcpiUtAddReference (*StackPtr); } AcpiUtRemoveReference (StackDesc); break; default: ACPI_ERROR ((AE_INFO, "Unknown Reference type 0x%X in %p", RefType, StackDesc)); Status = AE_AML_INTERNAL; break; } break; case ACPI_TYPE_BUFFER: Status = AcpiDsGetBufferArguments (StackDesc); break; case ACPI_TYPE_PACKAGE: Status = AcpiDsGetPackageArguments (StackDesc); break; case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "FieldRead SourceDesc=%p Type=%X\n", StackDesc, StackDesc->Common.Type)); Status = AcpiExReadDataFromField (WalkState, StackDesc, &ObjDesc); /* Remove a reference to the original operand, then override */ AcpiUtRemoveReference (*StackPtr); *StackPtr = (void *) ObjDesc; break; default: break; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExResolveMultiple * * PARAMETERS: WalkState - Current state (contains AML opcode) * Operand - Starting point for resolution * ReturnType - Where the object type is returned * ReturnDesc - Where the resolved object is returned * * RETURN: Status * * DESCRIPTION: Return the base object and type. Traverse a reference list if * necessary to get to the base object. * ******************************************************************************/ ACPI_STATUS AcpiExResolveMultiple ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *Operand, ACPI_OBJECT_TYPE *ReturnType, ACPI_OPERAND_OBJECT **ReturnDesc) { ACPI_OPERAND_OBJECT *ObjDesc = ACPI_CAST_PTR (void, Operand); ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Operand); ACPI_OBJECT_TYPE Type; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiExResolveMultiple); /* Operand can be either a namespace node or an operand descriptor */ switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc)) { case ACPI_DESC_TYPE_OPERAND: Type = ObjDesc->Common.Type; break; case ACPI_DESC_TYPE_NAMED: Type = ((ACPI_NAMESPACE_NODE *) ObjDesc)->Type; ObjDesc = AcpiNsGetAttachedObject (Node); /* If we had an Alias node, use the attached object for type info */ if (Type == ACPI_TYPE_LOCAL_ALIAS) { Type = ((ACPI_NAMESPACE_NODE *) ObjDesc)->Type; ObjDesc = AcpiNsGetAttachedObject ( (ACPI_NAMESPACE_NODE *) ObjDesc); } switch (Type) { case ACPI_TYPE_DEVICE: case ACPI_TYPE_THERMAL: /* These types have no attached subobject */ break; default: /* All other types require a subobject */ if (!ObjDesc) { ACPI_ERROR ((AE_INFO, "[%4.4s] Node is unresolved or uninitialized", AcpiUtGetNodeName (Node))); return_ACPI_STATUS (AE_AML_UNINITIALIZED_NODE); } break; } break; default: return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* If type is anything other than a reference, we are done */ if (Type != ACPI_TYPE_LOCAL_REFERENCE) { goto Exit; } /* * For reference objects created via the RefOf, Index, or Load/LoadTable * operators, we need to get to the base object (as per the ACPI * specification of the ObjectType and SizeOf operators). This means * traversing the list of possibly many nested references. */ while (ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) { switch (ObjDesc->Reference.Class) { case ACPI_REFCLASS_REFOF: case ACPI_REFCLASS_NAME: /* Dereference the reference pointer */ if (ObjDesc->Reference.Class == ACPI_REFCLASS_REFOF) { Node = ObjDesc->Reference.Object; } else /* AML_INT_NAMEPATH_OP */ { Node = ObjDesc->Reference.Node; } /* All "References" point to a NS node */ if (ACPI_GET_DESCRIPTOR_TYPE (Node) != ACPI_DESC_TYPE_NAMED) { ACPI_ERROR ((AE_INFO, "Not a namespace node %p [%s]", Node, AcpiUtGetDescriptorName (Node))); return_ACPI_STATUS (AE_AML_INTERNAL); } /* Get the attached object */ ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { /* No object, use the NS node type */ Type = AcpiNsGetType (Node); goto Exit; } /* Check for circular references */ if (ObjDesc == Operand) { return_ACPI_STATUS (AE_AML_CIRCULAR_REFERENCE); } break; case ACPI_REFCLASS_INDEX: /* Get the type of this reference (index into another object) */ Type = ObjDesc->Reference.TargetType; if (Type != ACPI_TYPE_PACKAGE) { goto Exit; } /* * The main object is a package, we want to get the type * of the individual package element that is referenced by * the index. * * This could of course in turn be another reference object. */ ObjDesc = *(ObjDesc->Reference.Where); if (!ObjDesc) { /* NULL package elements are allowed */ Type = 0; /* Uninitialized */ goto Exit; } break; case ACPI_REFCLASS_TABLE: Type = ACPI_TYPE_DDB_HANDLE; goto Exit; case ACPI_REFCLASS_LOCAL: case ACPI_REFCLASS_ARG: if (ReturnDesc) { Status = AcpiDsMethodDataGetValue (ObjDesc->Reference.Class, ObjDesc->Reference.Value, WalkState, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } AcpiUtRemoveReference (ObjDesc); } else { Status = AcpiDsMethodDataGetNode (ObjDesc->Reference.Class, ObjDesc->Reference.Value, WalkState, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { Type = ACPI_TYPE_ANY; goto Exit; } } break; case ACPI_REFCLASS_DEBUG: /* The Debug Object is of type "DebugObject" */ Type = ACPI_TYPE_DEBUG_OBJECT; goto Exit; default: ACPI_ERROR ((AE_INFO, "Unknown Reference Class 0x%2.2X", ObjDesc->Reference.Class)); return_ACPI_STATUS (AE_AML_INTERNAL); } } /* * Now we are guaranteed to have an object that has not been created * via the RefOf or Index operators. */ Type = ObjDesc->Common.Type; Exit: /* Convert internal types to external types */ switch (Type) { case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: Type = ACPI_TYPE_FIELD_UNIT; break; case ACPI_TYPE_LOCAL_SCOPE: /* Per ACPI Specification, Scope is untyped */ Type = ACPI_TYPE_ANY; break; default: /* No change to Type required */ break; } *ReturnType = Type; if (ReturnDesc) { *ReturnDesc = ObjDesc; } return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/executer/exsystem.c0000775000175000017500000002346514773714132023111 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exsystem - Interface to OS services * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exsystem") /******************************************************************************* * * FUNCTION: AcpiExSystemWaitSemaphore * * PARAMETERS: Semaphore - Semaphore to wait on * Timeout - Max time to wait * * RETURN: Status * * DESCRIPTION: Implements a semaphore wait with a check to see if the * semaphore is available immediately. If it is not, the * interpreter is released before waiting. * ******************************************************************************/ ACPI_STATUS AcpiExSystemWaitSemaphore ( ACPI_SEMAPHORE Semaphore, UINT16 Timeout) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (ExSystemWaitSemaphore); Status = AcpiOsWaitSemaphore (Semaphore, 1, ACPI_DO_NOT_WAIT); if (ACPI_SUCCESS (Status)) { return_ACPI_STATUS (Status); } if (Status == AE_TIME) { /* We must wait, so unlock the interpreter */ AcpiExExitInterpreter (); Status = AcpiOsWaitSemaphore (Semaphore, 1, Timeout); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "*** Thread awake after blocking, %s\n", AcpiFormatException (Status))); /* Reacquire the interpreter */ AcpiExEnterInterpreter (); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExSystemWaitMutex * * PARAMETERS: Mutex - Mutex to wait on * Timeout - Max time to wait * * RETURN: Status * * DESCRIPTION: Implements a mutex wait with a check to see if the * mutex is available immediately. If it is not, the * interpreter is released before waiting. * ******************************************************************************/ ACPI_STATUS AcpiExSystemWaitMutex ( ACPI_MUTEX Mutex, UINT16 Timeout) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (ExSystemWaitMutex); Status = AcpiOsAcquireMutex (Mutex, ACPI_DO_NOT_WAIT); if (ACPI_SUCCESS (Status)) { return_ACPI_STATUS (Status); } if (Status == AE_TIME) { /* We must wait, so unlock the interpreter */ AcpiExExitInterpreter (); Status = AcpiOsAcquireMutex (Mutex, Timeout); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "*** Thread awake after blocking, %s\n", AcpiFormatException (Status))); /* Reacquire the interpreter */ AcpiExEnterInterpreter (); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExSystemDoStall * * PARAMETERS: HowLongUs - The amount of time to stall, * in microseconds * * RETURN: Status * * DESCRIPTION: Suspend running thread for specified amount of time. * Note: ACPI specification requires that Stall() does not * relinquish the processor, and delays longer than 100 usec * should use Sleep() instead. We allow stalls up to 255 usec * for compatibility with other interpreters and existing BIOSs. * ******************************************************************************/ ACPI_STATUS AcpiExSystemDoStall ( UINT32 HowLongUs) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_ENTRY (); if (HowLongUs > 255) { /* * Longer than 255 microseconds, this is an error * * (ACPI specifies 100 usec as max, but this gives some slack in * order to support existing BIOSs) */ ACPI_ERROR_ONCE ((AE_INFO, "Time parameter is too large (%u)", HowLongUs)); Status = AE_AML_OPERAND_VALUE; } else { if (HowLongUs > 100) { ACPI_WARNING_ONCE ((AE_INFO, "Time parameter %u us > 100 us violating ACPI spec, please fix the firmware.", HowLongUs)); } AcpiOsStall (HowLongUs); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiExSystemDoSleep * * PARAMETERS: HowLongMs - The amount of time to sleep, * in milliseconds * * RETURN: None * * DESCRIPTION: Sleep the running thread for specified amount of time. * ******************************************************************************/ ACPI_STATUS AcpiExSystemDoSleep ( UINT64 HowLongMs) { ACPI_FUNCTION_ENTRY (); /* Since this thread will sleep, we must release the interpreter */ AcpiExExitInterpreter (); /* * For compatibility with other ACPI implementations and to prevent * accidental deep sleeps, limit the sleep time to something reasonable. */ if (HowLongMs > ACPI_MAX_SLEEP) { HowLongMs = ACPI_MAX_SLEEP; } AcpiOsSleep (HowLongMs); /* And now we must get the interpreter again */ AcpiExEnterInterpreter (); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExSystemSignalEvent * * PARAMETERS: ObjDesc - The object descriptor for this op * * RETURN: Status * * DESCRIPTION: Provides an access point to perform synchronization operations * within the AML. * ******************************************************************************/ ACPI_STATUS AcpiExSystemSignalEvent ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (ExSystemSignalEvent); if (ObjDesc) { Status = AcpiOsSignalSemaphore (ObjDesc->Event.OsSemaphore, 1); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExSystemWaitEvent * * PARAMETERS: TimeDesc - The 'time to delay' object descriptor * ObjDesc - The object descriptor for this op * * RETURN: Status * * DESCRIPTION: Provides an access point to perform synchronization operations * within the AML. This operation is a request to wait for an * event. * ******************************************************************************/ ACPI_STATUS AcpiExSystemWaitEvent ( ACPI_OPERAND_OBJECT *TimeDesc, ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (ExSystemWaitEvent); if (ObjDesc) { Status = AcpiExSystemWaitSemaphore (ObjDesc->Event.OsSemaphore, (UINT16) TimeDesc->Integer.Value); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExSystemResetEvent * * PARAMETERS: ObjDesc - The object descriptor for this op * * RETURN: Status * * DESCRIPTION: Reset an event to a known state. * ******************************************************************************/ ACPI_STATUS AcpiExSystemResetEvent ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_STATUS Status = AE_OK; ACPI_SEMAPHORE TempSemaphore; ACPI_FUNCTION_ENTRY (); /* * We are going to simply delete the existing semaphore and * create a new one! */ Status = AcpiOsCreateSemaphore (ACPI_NO_UNIT_LIMIT, 0, &TempSemaphore); if (ACPI_SUCCESS (Status)) { (void) AcpiOsDeleteSemaphore (ObjDesc->Event.OsSemaphore); ObjDesc->Event.OsSemaphore = TempSemaphore; } return (Status); } acpica-unix-20250404/source/components/executer/exdebug.c0000775000175000017500000002526114773714132022647 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exdebug - Support for stores to the AML Debug Object * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exdebug") #ifndef ACPI_NO_ERROR_MESSAGES /******************************************************************************* * * FUNCTION: AcpiExDoDebugObject * * PARAMETERS: SourceDesc - Object to be output to "Debug Object" * Level - Indentation level (used for packages) * Index - Current package element, zero if not pkg * * RETURN: None * * DESCRIPTION: Handles stores to the AML Debug Object. For example: * Store(INT1, Debug) * * This function is not compiled if ACPI_NO_ERROR_MESSAGES is set. * * This function is only enabled if AcpiGbl_EnableAmlDebugObject is set, or * if ACPI_LV_DEBUG_OBJECT is set in the AcpiDbgLevel. Thus, in the normal * operational case, stores to the debug object are ignored but can be easily * enabled if necessary. * ******************************************************************************/ void AcpiExDoDebugObject ( ACPI_OPERAND_OBJECT *SourceDesc, UINT32 Level, UINT32 Index) { UINT32 i; UINT32 Timer; ACPI_OPERAND_OBJECT *ObjectDesc; UINT32 Value; ACPI_FUNCTION_TRACE_PTR (ExDoDebugObject, SourceDesc); /* Output must be enabled via the DebugObject global or the DbgLevel */ if (!AcpiGbl_EnableAmlDebugObject && !(AcpiDbgLevel & ACPI_LV_DEBUG_OBJECT)) { return_VOID; } /* Newline -- don't emit the line header */ if (SourceDesc && (ACPI_GET_DESCRIPTOR_TYPE (SourceDesc) == ACPI_DESC_TYPE_OPERAND) && (SourceDesc->Common.Type == ACPI_TYPE_STRING)) { if ((SourceDesc->String.Length == 1) && (*SourceDesc->String.Pointer == '\n')) { AcpiOsPrintf ("\n"); return_VOID; } } /* * Print line header as long as we are not in the middle of an * object display */ if (!((Level > 0) && Index == 0)) { if (AcpiGbl_DisplayDebugTimer) { /* * We will emit the current timer value (in microseconds) with each * debug output. Only need the lower 26 bits. This allows for 67 * million microseconds or 67 seconds before rollover. * * Convert 100 nanosecond units to microseconds */ Timer = ((UINT32) AcpiOsGetTimer () / 10); Timer &= 0x03FFFFFF; AcpiOsPrintf ("ACPI Debug: T=0x%8.8X %*s", Timer, Level, " "); } else { AcpiOsPrintf ("ACPI Debug: %*s", Level, " "); } } /* Display the index for package output only */ if (Index > 0) { AcpiOsPrintf ("(%.2u) ", Index - 1); } if (!SourceDesc) { AcpiOsPrintf ("[Null Object]\n"); return_VOID; } if (ACPI_GET_DESCRIPTOR_TYPE (SourceDesc) == ACPI_DESC_TYPE_OPERAND) { /* No object type prefix needed for integers and strings */ if ((SourceDesc->Common.Type != ACPI_TYPE_INTEGER) && (SourceDesc->Common.Type != ACPI_TYPE_STRING)) { AcpiOsPrintf ("%s ", AcpiUtGetObjectTypeName (SourceDesc)); } if (!AcpiUtValidInternalObject (SourceDesc)) { AcpiOsPrintf ("%p, Invalid Internal Object!\n", SourceDesc); return_VOID; } } else if (ACPI_GET_DESCRIPTOR_TYPE (SourceDesc) == ACPI_DESC_TYPE_NAMED) { AcpiOsPrintf ("%s (Node %p)\n", AcpiUtGetTypeName (((ACPI_NAMESPACE_NODE *) SourceDesc)->Type), SourceDesc); return_VOID; } else { return_VOID; } /* SourceDesc is of type ACPI_DESC_TYPE_OPERAND */ switch (SourceDesc->Common.Type) { case ACPI_TYPE_INTEGER: /* Output correct integer width */ if (AcpiGbl_IntegerByteWidth == 4) { AcpiOsPrintf ("0x%8.8X\n", (UINT32) SourceDesc->Integer.Value); } else { AcpiOsPrintf ("0x%8.8X%8.8X\n", ACPI_FORMAT_UINT64 (SourceDesc->Integer.Value)); } break; case ACPI_TYPE_BUFFER: AcpiOsPrintf ("[0x%.2X]\n", (UINT32) SourceDesc->Buffer.Length); AcpiUtDumpBuffer (SourceDesc->Buffer.Pointer, (SourceDesc->Buffer.Length < 256) ? SourceDesc->Buffer.Length : 256, DB_BYTE_DISPLAY, 0); break; case ACPI_TYPE_STRING: AcpiOsPrintf ("\"%s\"\n", SourceDesc->String.Pointer); break; case ACPI_TYPE_PACKAGE: AcpiOsPrintf ("(Contains 0x%.2X Elements):\n", SourceDesc->Package.Count); /* Output the entire contents of the package */ for (i = 0; i < SourceDesc->Package.Count; i++) { AcpiExDoDebugObject (SourceDesc->Package.Elements[i], Level + 4, i + 1); } break; case ACPI_TYPE_LOCAL_REFERENCE: AcpiOsPrintf ("[%s] ", AcpiUtGetReferenceName (SourceDesc)); /* Decode the reference */ switch (SourceDesc->Reference.Class) { case ACPI_REFCLASS_INDEX: AcpiOsPrintf ("0x%X\n", SourceDesc->Reference.Value); break; case ACPI_REFCLASS_TABLE: /* Case for DdbHandle */ AcpiOsPrintf ("Table Index 0x%X\n", SourceDesc->Reference.Value); return_VOID; default: break; } AcpiOsPrintf (" "); /* Check for valid node first, then valid object */ if (SourceDesc->Reference.Node) { if (ACPI_GET_DESCRIPTOR_TYPE (SourceDesc->Reference.Node) != ACPI_DESC_TYPE_NAMED) { AcpiOsPrintf (" %p - Not a valid namespace node\n", SourceDesc->Reference.Node); } else { AcpiOsPrintf ("Node %p [%4.4s] ", SourceDesc->Reference.Node, (SourceDesc->Reference.Node)->Name.Ascii); switch ((SourceDesc->Reference.Node)->Type) { /* These types have no attached object */ case ACPI_TYPE_DEVICE: AcpiOsPrintf ("Device\n"); break; case ACPI_TYPE_THERMAL: AcpiOsPrintf ("Thermal Zone\n"); break; default: AcpiExDoDebugObject ((SourceDesc->Reference.Node)->Object, Level + 4, 0); break; } } } else if (SourceDesc->Reference.Object) { if (ACPI_GET_DESCRIPTOR_TYPE (SourceDesc->Reference.Object) == ACPI_DESC_TYPE_NAMED) { /* Reference object is a namespace node */ AcpiExDoDebugObject (ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, SourceDesc->Reference.Object), Level + 4, 0); } else { ObjectDesc = SourceDesc->Reference.Object; Value = SourceDesc->Reference.Value; switch (ObjectDesc->Common.Type) { case ACPI_TYPE_BUFFER: AcpiOsPrintf ("Buffer[%u] = 0x%2.2X\n", Value, *SourceDesc->Reference.IndexPointer); break; case ACPI_TYPE_STRING: AcpiOsPrintf ("String[%u] = \"%c\" (0x%2.2X)\n", Value, *SourceDesc->Reference.IndexPointer, *SourceDesc->Reference.IndexPointer); break; case ACPI_TYPE_PACKAGE: AcpiOsPrintf ("Package[%u] = ", Value); if (!(*SourceDesc->Reference.Where)) { AcpiOsPrintf ("[Uninitialized Package Element]\n"); } else { AcpiExDoDebugObject (*SourceDesc->Reference.Where, Level+4, 0); } break; default: AcpiOsPrintf ("Unknown Reference object type %X\n", ObjectDesc->Common.Type); break; } } } break; default: AcpiOsPrintf ("(Descriptor %p)\n", SourceDesc); break; } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC, "\n")); return_VOID; } #endif acpica-unix-20250404/source/components/executer/exoparg2.c0000775000175000017500000004332614773714132022755 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exoparg2 - AML execution - opcodes with 2 arguments * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "acinterp.h" #include "acevents.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exoparg2") /*! * Naming convention for AML interpreter execution routines. * * The routines that begin execution of AML opcodes are named with a common * convention based upon the number of arguments, the number of target operands, * and whether or not a value is returned: * * AcpiExOpcode_xA_yT_zR * * Where: * * xA - ARGUMENTS: The number of arguments (input operands) that are * required for this opcode type (1 through 6 args). * yT - TARGETS: The number of targets (output operands) that are required * for this opcode type (0, 1, or 2 targets). * zR - RETURN VALUE: Indicates whether this opcode type returns a value * as the function return (0 or 1). * * The AcpiExOpcode* functions are called via the Dispatcher component with * fully resolved operands. !*/ /******************************************************************************* * * FUNCTION: AcpiExOpcode_2A_0T_0R * * PARAMETERS: WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Execute opcode with two arguments, no target, and no return * value. * * ALLOCATION: Deletes both operands * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_2A_0T_0R ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_NAMESPACE_NODE *Node; UINT32 Value; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_STR (ExOpcode_2A_0T_0R, AcpiPsGetOpcodeName (WalkState->Opcode)); /* Examine the opcode */ switch (WalkState->Opcode) { case AML_NOTIFY_OP: /* Notify (NotifyObject, NotifyValue) */ /* The first operand is a namespace node */ Node = (ACPI_NAMESPACE_NODE *) Operand[0]; /* Second value is the notify value */ Value = (UINT32) Operand[1]->Integer.Value; /* Are notifies allowed on this object? */ if (!AcpiEvIsNotifyObject (Node)) { ACPI_ERROR ((AE_INFO, "Unexpected notify object type [%s]", AcpiUtGetTypeName (Node->Type))); Status = AE_AML_OPERAND_TYPE; break; } /* * Dispatch the notify to the appropriate handler * NOTE: the request is queued for execution after this method * completes. The notify handlers are NOT invoked synchronously * from this thread -- because handlers may in turn run other * control methods. */ Status = AcpiEvQueueNotifyRequest (Node, Value); break; default: ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExOpcode_2A_2T_1R * * PARAMETERS: WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Execute a dyadic operator (2 operands) with 2 output targets * and one implicit return value. * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_2A_2T_1R ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc1 = NULL; ACPI_OPERAND_OBJECT *ReturnDesc2 = NULL; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_STR (ExOpcode_2A_2T_1R, AcpiPsGetOpcodeName (WalkState->Opcode)); /* Execute the opcode */ switch (WalkState->Opcode) { case AML_DIVIDE_OP: /* Divide (Dividend, Divisor, RemainderResult QuotientResult) */ ReturnDesc1 = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); if (!ReturnDesc1) { Status = AE_NO_MEMORY; goto Cleanup; } ReturnDesc2 = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); if (!ReturnDesc2) { Status = AE_NO_MEMORY; goto Cleanup; } /* Quotient to ReturnDesc1, remainder to ReturnDesc2 */ Status = AcpiUtDivide ( Operand[0]->Integer.Value, Operand[1]->Integer.Value, &ReturnDesc1->Integer.Value, &ReturnDesc2->Integer.Value); if (ACPI_FAILURE (Status)) { goto Cleanup; } break; default: ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; goto Cleanup; } /* Store the results to the target reference operands */ Status = AcpiExStore (ReturnDesc2, Operand[2], WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } Status = AcpiExStore (ReturnDesc1, Operand[3], WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } Cleanup: /* * Since the remainder is not returned indirectly, remove a reference to * it. Only the quotient is returned indirectly. */ AcpiUtRemoveReference (ReturnDesc2); if (ACPI_FAILURE (Status)) { /* Delete the return object */ AcpiUtRemoveReference (ReturnDesc1); } /* Save return object (the remainder) on success */ else { WalkState->ResultObj = ReturnDesc1; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExOpcode_2A_1T_1R * * PARAMETERS: WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Execute opcode with two arguments, one target, and a return * value. * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_2A_1T_1R ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc = NULL; UINT64 Index; ACPI_STATUS Status = AE_OK; ACPI_SIZE Length = 0; ACPI_FUNCTION_TRACE_STR (ExOpcode_2A_1T_1R, AcpiPsGetOpcodeName (WalkState->Opcode)); /* Execute the opcode */ if (WalkState->OpInfo->Flags & AML_MATH) { /* All simple math opcodes (add, etc.) */ ReturnDesc = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } ReturnDesc->Integer.Value = AcpiExDoMathOp ( WalkState->Opcode, Operand[0]->Integer.Value, Operand[1]->Integer.Value); goto StoreResultToTarget; } switch (WalkState->Opcode) { case AML_MOD_OP: /* Mod (Dividend, Divisor, RemainderResult (ACPI 2.0) */ ReturnDesc = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* ReturnDesc will contain the remainder */ Status = AcpiUtDivide ( Operand[0]->Integer.Value, Operand[1]->Integer.Value, NULL, &ReturnDesc->Integer.Value); break; case AML_CONCATENATE_OP: /* Concatenate (Data1, Data2, Result) */ Status = AcpiExDoConcatenate ( Operand[0], Operand[1], &ReturnDesc, WalkState); break; case AML_TO_STRING_OP: /* ToString (Buffer, Length, Result) (ACPI 2.0) */ /* * Input object is guaranteed to be a buffer at this point (it may have * been converted.) Copy the raw buffer data to a new object of * type String. */ /* * Get the length of the new string. It is the smallest of: * 1) Length of the input buffer * 2) Max length as specified in the ToString operator * 3) Length of input buffer up to a zero byte (null terminator) * * NOTE: A length of zero is ok, and will create a zero-length, null * terminated string. */ while ((Length < Operand[0]->Buffer.Length) && /* Length of input buffer */ (Length < Operand[1]->Integer.Value) && /* Length operand */ (Operand[0]->Buffer.Pointer[Length])) /* Null terminator */ { Length++; } /* Allocate a new string object */ ReturnDesc = AcpiUtCreateStringObject (Length); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* * Copy the raw buffer data with no transform. * (NULL terminated already) */ memcpy (ReturnDesc->String.Pointer, Operand[0]->Buffer.Pointer, Length); break; case AML_CONCATENATE_TEMPLATE_OP: /* ConcatenateResTemplate (Buffer, Buffer, Result) (ACPI 2.0) */ Status = AcpiExConcatTemplate ( Operand[0], Operand[1], &ReturnDesc, WalkState); break; case AML_INDEX_OP: /* Index (Source Index Result) */ /* Create the internal return object */ ReturnDesc = AcpiUtCreateInternalObject (ACPI_TYPE_LOCAL_REFERENCE); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* Initialize the Index reference object */ Index = Operand[1]->Integer.Value; ReturnDesc->Reference.Value = (UINT32) Index; ReturnDesc->Reference.Class = ACPI_REFCLASS_INDEX; /* * At this point, the Source operand is a String, Buffer, or Package. * Verify that the index is within range. */ switch ((Operand[0])->Common.Type) { case ACPI_TYPE_STRING: if (Index >= Operand[0]->String.Length) { Length = Operand[0]->String.Length; Status = AE_AML_STRING_LIMIT; } ReturnDesc->Reference.TargetType = ACPI_TYPE_BUFFER_FIELD; ReturnDesc->Reference.IndexPointer = &(Operand[0]->Buffer.Pointer [Index]); break; case ACPI_TYPE_BUFFER: if (Index >= Operand[0]->Buffer.Length) { Length = Operand[0]->Buffer.Length; Status = AE_AML_BUFFER_LIMIT; } ReturnDesc->Reference.TargetType = ACPI_TYPE_BUFFER_FIELD; ReturnDesc->Reference.IndexPointer = &(Operand[0]->Buffer.Pointer [Index]); break; case ACPI_TYPE_PACKAGE: if (Index >= Operand[0]->Package.Count) { Length = Operand[0]->Package.Count; Status = AE_AML_PACKAGE_LIMIT; } ReturnDesc->Reference.TargetType = ACPI_TYPE_PACKAGE; ReturnDesc->Reference.Where = &Operand[0]->Package.Elements [Index]; break; default: ACPI_ERROR ((AE_INFO, "Invalid object type: %X", (Operand[0])->Common.Type)); Status = AE_AML_INTERNAL; goto Cleanup; } /* Failure means that the Index was beyond the end of the object */ if (ACPI_FAILURE (Status)) { ACPI_BIOS_EXCEPTION ((AE_INFO, Status, "Index (0x%X%8.8X) is beyond end of object (length 0x%X)", ACPI_FORMAT_UINT64 (Index), (UINT32) Length)); goto Cleanup; } /* * Save the target object and add a reference to it for the life * of the index */ ReturnDesc->Reference.Object = Operand[0]; AcpiUtAddReference (Operand[0]); /* Store the reference to the Target */ Status = AcpiExStore (ReturnDesc, Operand[2], WalkState); /* Return the reference */ WalkState->ResultObj = ReturnDesc; goto Cleanup; default: ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; break; } StoreResultToTarget: if (ACPI_SUCCESS (Status)) { /* * Store the result of the operation (which is now in ReturnDesc) into * the Target descriptor. */ Status = AcpiExStore (ReturnDesc, Operand[2], WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } if (!WalkState->ResultObj) { WalkState->ResultObj = ReturnDesc; } } Cleanup: /* Delete return object on error */ if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ReturnDesc); WalkState->ResultObj = NULL; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExOpcode_2A_0T_1R * * PARAMETERS: WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Execute opcode with 2 arguments, no target, and a return value * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_2A_0T_1R ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc = NULL; ACPI_STATUS Status = AE_OK; BOOLEAN LogicalResult = FALSE; ACPI_FUNCTION_TRACE_STR (ExOpcode_2A_0T_1R, AcpiPsGetOpcodeName (WalkState->Opcode)); /* Create the internal return object */ ReturnDesc = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* Execute the Opcode */ if (WalkState->OpInfo->Flags & AML_LOGICAL_NUMERIC) { /* LogicalOp (Operand0, Operand1) */ Status = AcpiExDoLogicalNumericOp (WalkState->Opcode, Operand[0]->Integer.Value, Operand[1]->Integer.Value, &LogicalResult); goto StoreLogicalResult; } else if (WalkState->OpInfo->Flags & AML_LOGICAL) { /* LogicalOp (Operand0, Operand1) */ Status = AcpiExDoLogicalOp (WalkState->Opcode, Operand[0], Operand[1], &LogicalResult); goto StoreLogicalResult; } switch (WalkState->Opcode) { case AML_ACQUIRE_OP: /* Acquire (MutexObject, Timeout) */ Status = AcpiExAcquireMutex (Operand[1], Operand[0], WalkState); if (Status == AE_TIME) { LogicalResult = TRUE; /* TRUE = Acquire timed out */ Status = AE_OK; } break; case AML_WAIT_OP: /* Wait (EventObject, Timeout) */ Status = AcpiExSystemWaitEvent (Operand[1], Operand[0]); if (Status == AE_TIME) { LogicalResult = TRUE; /* TRUE, Wait timed out */ Status = AE_OK; } break; default: ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; goto Cleanup; } StoreLogicalResult: /* * Set return value to according to LogicalResult. logical TRUE (all ones) * Default is FALSE (zero) */ if (LogicalResult) { ReturnDesc->Integer.Value = ACPI_UINT64_MAX; } Cleanup: /* Delete return object on error */ if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ReturnDesc); } /* Save return object on success */ else { WalkState->ResultObj = ReturnDesc; } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exresnte.c0000775000175000017500000002216414773714132023060 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exresnte - AML Interpreter object resolution * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exresnte") /******************************************************************************* * * FUNCTION: AcpiExResolveNodeToValue * * PARAMETERS: ObjectPtr - Pointer to a location that contains * a pointer to a NS node, and will receive a * pointer to the resolved object. * WalkState - Current state. Valid only if executing AML * code. NULL if simply resolving an object * * RETURN: Status * * DESCRIPTION: Resolve a Namespace node to a valued object * * Note: for some of the data types, the pointer attached to the Node * can be either a pointer to an actual internal object or a pointer into the * AML stream itself. These types are currently: * * ACPI_TYPE_INTEGER * ACPI_TYPE_STRING * ACPI_TYPE_BUFFER * ACPI_TYPE_MUTEX * ACPI_TYPE_PACKAGE * ******************************************************************************/ ACPI_STATUS AcpiExResolveNodeToValue ( ACPI_NAMESPACE_NODE **ObjectPtr, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *SourceDesc; ACPI_OPERAND_OBJECT *ObjDesc = NULL; ACPI_NAMESPACE_NODE *Node; ACPI_OBJECT_TYPE EntryType; ACPI_FUNCTION_TRACE (ExResolveNodeToValue); /* * The stack pointer points to a ACPI_NAMESPACE_NODE (Node). Get the * object that is attached to the Node. */ Node = *ObjectPtr; SourceDesc = AcpiNsGetAttachedObject (Node); EntryType = AcpiNsGetType ((ACPI_HANDLE) Node); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Entry=%p SourceDesc=%p [%s]\n", Node, SourceDesc, AcpiUtGetTypeName (EntryType))); if ((EntryType == ACPI_TYPE_LOCAL_ALIAS) || (EntryType == ACPI_TYPE_LOCAL_METHOD_ALIAS)) { /* There is always exactly one level of indirection */ Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Node->Object); SourceDesc = AcpiNsGetAttachedObject (Node); EntryType = AcpiNsGetType ((ACPI_HANDLE) Node); *ObjectPtr = Node; } /* * Several object types require no further processing: * 1) Device/Thermal objects don't have a "real" subobject, return Node * 2) Method locals and arguments have a pseudo-Node * 3) 10/2007: Added method type to assist with Package construction. */ if ((EntryType == ACPI_TYPE_DEVICE) || (EntryType == ACPI_TYPE_THERMAL) || (EntryType == ACPI_TYPE_METHOD) || (Node->Flags & (ANOBJ_METHOD_ARG | ANOBJ_METHOD_LOCAL))) { return_ACPI_STATUS (AE_OK); } if (!SourceDesc) { ACPI_ERROR ((AE_INFO, "No object attached to node [%4.4s] %p", Node->Name.Ascii, Node)); return_ACPI_STATUS (AE_AML_UNINITIALIZED_NODE); } /* * Action is based on the type of the Node, which indicates the type * of the attached object or pointer */ switch (EntryType) { case ACPI_TYPE_PACKAGE: if (SourceDesc->Common.Type != ACPI_TYPE_PACKAGE) { ACPI_ERROR ((AE_INFO, "Object not a Package, type %s", AcpiUtGetObjectTypeName (SourceDesc))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } Status = AcpiDsGetPackageArguments (SourceDesc); if (ACPI_SUCCESS (Status)) { /* Return an additional reference to the object */ ObjDesc = SourceDesc; AcpiUtAddReference (ObjDesc); } break; case ACPI_TYPE_BUFFER: if (SourceDesc->Common.Type != ACPI_TYPE_BUFFER) { ACPI_ERROR ((AE_INFO, "Object not a Buffer, type %s", AcpiUtGetObjectTypeName (SourceDesc))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } Status = AcpiDsGetBufferArguments (SourceDesc); if (ACPI_SUCCESS (Status)) { /* Return an additional reference to the object */ ObjDesc = SourceDesc; AcpiUtAddReference (ObjDesc); } break; case ACPI_TYPE_STRING: if (SourceDesc->Common.Type != ACPI_TYPE_STRING) { ACPI_ERROR ((AE_INFO, "Object not a String, type %s", AcpiUtGetObjectTypeName (SourceDesc))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* Return an additional reference to the object */ ObjDesc = SourceDesc; AcpiUtAddReference (ObjDesc); break; case ACPI_TYPE_INTEGER: if (SourceDesc->Common.Type != ACPI_TYPE_INTEGER) { ACPI_ERROR ((AE_INFO, "Object not a Integer, type %s", AcpiUtGetObjectTypeName (SourceDesc))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* Return an additional reference to the object */ ObjDesc = SourceDesc; AcpiUtAddReference (ObjDesc); break; case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "FieldRead Node=%p SourceDesc=%p Type=%X\n", Node, SourceDesc, EntryType)); Status = AcpiExReadDataFromField (WalkState, SourceDesc, &ObjDesc); break; /* For these objects, just return the object attached to the Node */ case ACPI_TYPE_MUTEX: case ACPI_TYPE_POWER: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_EVENT: case ACPI_TYPE_REGION: /* Return an additional reference to the object */ ObjDesc = SourceDesc; AcpiUtAddReference (ObjDesc); break; /* TYPE_ANY is untyped, and thus there is no object associated with it */ case ACPI_TYPE_ANY: ACPI_ERROR ((AE_INFO, "Untyped entry %p, no attached object!", Node)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); /* Cannot be AE_TYPE */ case ACPI_TYPE_LOCAL_REFERENCE: switch (SourceDesc->Reference.Class) { case ACPI_REFCLASS_TABLE: /* This is a DdbHandle */ case ACPI_REFCLASS_REFOF: case ACPI_REFCLASS_INDEX: /* Return an additional reference to the object */ ObjDesc = SourceDesc; AcpiUtAddReference (ObjDesc); break; default: /* No named references are allowed here */ ACPI_ERROR ((AE_INFO, "Unsupported Reference type 0x%X", SourceDesc->Reference.Class)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } break; default: /* Default case is for unknown types */ ACPI_ERROR ((AE_INFO, "Node %p - Unknown object type 0x%X", Node, EntryType)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* switch (EntryType) */ /* Return the object descriptor */ *ObjectPtr = (void *) ObjDesc; return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exnames.c0000775000175000017500000003230014773714132022654 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exnames - interpreter/scanner name load/execute * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exnames") /* Local prototypes */ static char * AcpiExAllocateNameString ( UINT32 PrefixCount, UINT32 NumNameSegs); static ACPI_STATUS AcpiExNameSegment ( UINT8 **InAmlAddress, char *NameString); /******************************************************************************* * * FUNCTION: AcpiExAllocateNameString * * PARAMETERS: PrefixCount - Count of parent levels. Special cases: * (-1)==root, 0==none * NumNameSegs - count of 4-character name segments * * RETURN: A pointer to the allocated string segment. This segment must * be deleted by the caller. * * DESCRIPTION: Allocate a buffer for a name string. Ensure allocated name * string is long enough, and set up prefix if any. * ******************************************************************************/ static char * AcpiExAllocateNameString ( UINT32 PrefixCount, UINT32 NumNameSegs) { char *TempPtr; char *NameString; UINT32 SizeNeeded; ACPI_FUNCTION_TRACE (ExAllocateNameString); /* * Allow room for all \ and ^ prefixes, all segments and a MultiNamePrefix. * Also, one byte for the null terminator. * This may actually be somewhat longer than needed. */ if (PrefixCount == ACPI_UINT32_MAX) { /* Special case for root */ SizeNeeded = 1 + (ACPI_NAMESEG_SIZE * NumNameSegs) + 2 + 1; } else { SizeNeeded = PrefixCount + (ACPI_NAMESEG_SIZE * NumNameSegs) + 2 + 1; } /* * Allocate a buffer for the name. * This buffer must be deleted by the caller! */ NameString = ACPI_ALLOCATE (SizeNeeded); if (!NameString) { ACPI_ERROR ((AE_INFO, "Could not allocate size %u", SizeNeeded)); return_PTR (NULL); } TempPtr = NameString; /* Set up Root or Parent prefixes if needed */ if (PrefixCount == ACPI_UINT32_MAX) { *TempPtr++ = AML_ROOT_PREFIX; } else { while (PrefixCount--) { *TempPtr++ = AML_PARENT_PREFIX; } } /* Set up Dual or Multi prefixes if needed */ if (NumNameSegs > 2) { /* Set up multi prefixes */ *TempPtr++ = AML_MULTI_NAME_PREFIX; *TempPtr++ = (char) NumNameSegs; } else if (2 == NumNameSegs) { /* Set up dual prefixes */ *TempPtr++ = AML_DUAL_NAME_PREFIX; } /* * Terminate string following prefixes. AcpiExNameSegment() will * append the segment(s) */ *TempPtr = 0; return_PTR (NameString); } /******************************************************************************* * * FUNCTION: AcpiExNameSegment * * PARAMETERS: InAmlAddress - Pointer to the name in the AML code * NameString - Where to return the name. The name is appended * to any existing string to form a namepath * * RETURN: Status * * DESCRIPTION: Extract an ACPI name (4 bytes) from the AML byte stream * ******************************************************************************/ static ACPI_STATUS AcpiExNameSegment ( UINT8 **InAmlAddress, char *NameString) { char *AmlAddress = (void *) *InAmlAddress; ACPI_STATUS Status = AE_OK; UINT32 Index; char CharBuf[5]; ACPI_FUNCTION_TRACE (ExNameSegment); /* * If first character is a digit, then we know that we aren't looking * at a valid name segment */ CharBuf[0] = *AmlAddress; if ('0' <= CharBuf[0] && CharBuf[0] <= '9') { ACPI_ERROR ((AE_INFO, "Invalid leading digit: %c", CharBuf[0])); return_ACPI_STATUS (AE_CTRL_PENDING); } for (Index = 0; (Index < ACPI_NAMESEG_SIZE) && (AcpiUtValidNameChar (*AmlAddress, 0)); Index++) { CharBuf[Index] = *AmlAddress++; } /* Valid name segment */ if (Index == 4) { /* Found 4 valid characters */ CharBuf[4] = '\0'; if (NameString) { ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Appending NameSeg %s\n", CharBuf)); strcat (NameString, CharBuf); } else { ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "No Name string - %s\n", CharBuf)); } } else if (Index == 0) { /* * First character was not a valid name character, * so we are looking at something other than a name. */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Leading character is not alpha: %02Xh (not a name)\n", CharBuf[0])); Status = AE_CTRL_PENDING; } else { /* * Segment started with one or more valid characters, but fewer than * the required 4 */ Status = AE_AML_BAD_NAME; ACPI_ERROR ((AE_INFO, "Bad character 0x%02x in name, at %p", *AmlAddress, AmlAddress)); } *InAmlAddress = ACPI_CAST_PTR (UINT8, AmlAddress); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExGetNameString * * PARAMETERS: DataType - Object type to be associated with this * name * InAmlAddress - Pointer to the namestring in the AML code * OutNameString - Where the namestring is returned * OutNameLength - Length of the returned string * * RETURN: Status, namestring and length * * DESCRIPTION: Extract a full namepath from the AML byte stream, * including any prefixes. * ******************************************************************************/ ACPI_STATUS AcpiExGetNameString ( ACPI_OBJECT_TYPE DataType, UINT8 *InAmlAddress, char **OutNameString, UINT32 *OutNameLength) { ACPI_STATUS Status = AE_OK; UINT8 *AmlAddress = InAmlAddress; char *NameString = NULL; UINT32 NumSegments; UINT32 PrefixCount = 0; BOOLEAN HasPrefix = FALSE; ACPI_FUNCTION_TRACE_PTR (ExGetNameString, AmlAddress); if (ACPI_TYPE_LOCAL_REGION_FIELD == DataType || ACPI_TYPE_LOCAL_BANK_FIELD == DataType || ACPI_TYPE_LOCAL_INDEX_FIELD == DataType) { /* Disallow prefixes for types associated with FieldUnit names */ NameString = AcpiExAllocateNameString (0, 1); if (!NameString) { Status = AE_NO_MEMORY; } else { Status = AcpiExNameSegment (&AmlAddress, NameString); } } else { /* * DataType is not a field name. * Examine first character of name for root or parent prefix operators */ switch (*AmlAddress) { case AML_ROOT_PREFIX: ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "RootPrefix(\\) at %p\n", AmlAddress)); /* * Remember that we have a RootPrefix -- * see comment in AcpiExAllocateNameString() */ AmlAddress++; PrefixCount = ACPI_UINT32_MAX; HasPrefix = TRUE; break; case AML_PARENT_PREFIX: /* Increment past possibly multiple parent prefixes */ do { ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "ParentPrefix (^) at %p\n", AmlAddress)); AmlAddress++; PrefixCount++; } while (*AmlAddress == AML_PARENT_PREFIX); HasPrefix = TRUE; break; default: /* Not a prefix character */ break; } /* Examine first character of name for name segment prefix operator */ switch (*AmlAddress) { case AML_DUAL_NAME_PREFIX: ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "DualNamePrefix at %p\n", AmlAddress)); AmlAddress++; NameString = AcpiExAllocateNameString (PrefixCount, 2); if (!NameString) { Status = AE_NO_MEMORY; break; } /* Indicate that we processed a prefix */ HasPrefix = TRUE; Status = AcpiExNameSegment (&AmlAddress, NameString); if (ACPI_SUCCESS (Status)) { Status = AcpiExNameSegment (&AmlAddress, NameString); } break; case AML_MULTI_NAME_PREFIX: ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "MultiNamePrefix at %p\n", AmlAddress)); /* Fetch count of segments remaining in name path */ AmlAddress++; NumSegments = *AmlAddress; NameString = AcpiExAllocateNameString ( PrefixCount, NumSegments); if (!NameString) { Status = AE_NO_MEMORY; break; } /* Indicate that we processed a prefix */ AmlAddress++; HasPrefix = TRUE; while (NumSegments && (Status = AcpiExNameSegment (&AmlAddress, NameString)) == AE_OK) { NumSegments--; } break; case 0: /* NullName valid as of 8-12-98 ASL/AML Grammar Update */ if (PrefixCount == ACPI_UINT32_MAX) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "NameSeg is \"\\\" followed by NULL\n")); } /* Consume the NULL byte */ AmlAddress++; NameString = AcpiExAllocateNameString (PrefixCount, 0); if (!NameString) { Status = AE_NO_MEMORY; break; } break; default: /* Name segment string */ NameString = AcpiExAllocateNameString (PrefixCount, 1); if (!NameString) { Status = AE_NO_MEMORY; break; } Status = AcpiExNameSegment (&AmlAddress, NameString); break; } } if (AE_CTRL_PENDING == Status && HasPrefix) { /* Ran out of segments after processing a prefix */ ACPI_ERROR ((AE_INFO, "Malformed Name at %p", NameString)); Status = AE_AML_BAD_NAME; } if (ACPI_FAILURE (Status)) { if (NameString) { ACPI_FREE (NameString); } return_ACPI_STATUS (Status); } *OutNameString = NameString; *OutNameLength = (UINT32) (AmlAddress - InAmlAddress); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exstore.c0000775000175000017500000005007114773714132022712 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exstore - AML Interpreter object store support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "acinterp.h" #include "amlcode.h" #include "acnamesp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exstore") /* Local prototypes */ static ACPI_STATUS AcpiExStoreObjectToIndex ( ACPI_OPERAND_OBJECT *ValDesc, ACPI_OPERAND_OBJECT *DestDesc, ACPI_WALK_STATE *WalkState); static ACPI_STATUS AcpiExStoreDirectToNode ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_NAMESPACE_NODE *Node, ACPI_WALK_STATE *WalkState); /******************************************************************************* * * FUNCTION: AcpiExStore * * PARAMETERS: *SourceDesc - Value to be stored * *DestDesc - Where to store it. Must be an NS node * or ACPI_OPERAND_OBJECT of type * Reference; * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Store the value described by SourceDesc into the location * described by DestDesc. Called by various interpreter * functions to store the result of an operation into * the destination operand -- not just simply the actual "Store" * ASL operator. * ******************************************************************************/ ACPI_STATUS AcpiExStore ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *DestDesc, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *RefDesc = DestDesc; ACPI_FUNCTION_TRACE_PTR (ExStore, DestDesc); /* Validate parameters */ if (!SourceDesc || !DestDesc) { ACPI_ERROR ((AE_INFO, "Null parameter")); return_ACPI_STATUS (AE_AML_NO_OPERAND); } /* DestDesc can be either a namespace node or an ACPI object */ if (ACPI_GET_DESCRIPTOR_TYPE (DestDesc) == ACPI_DESC_TYPE_NAMED) { /* * Dest is a namespace node, * Storing an object into a Named node. */ Status = AcpiExStoreObjectToNode (SourceDesc, (ACPI_NAMESPACE_NODE *) DestDesc, WalkState, ACPI_IMPLICIT_CONVERSION); return_ACPI_STATUS (Status); } /* Destination object must be a Reference or a Constant object */ switch (DestDesc->Common.Type) { case ACPI_TYPE_LOCAL_REFERENCE: break; case ACPI_TYPE_INTEGER: /* Allow stores to Constants -- a Noop as per ACPI spec */ if (DestDesc->Common.Flags & AOPOBJ_AML_CONSTANT) { return_ACPI_STATUS (AE_OK); } ACPI_FALLTHROUGH; default: /* Destination is not a Reference object */ ACPI_ERROR ((AE_INFO, "Target is not a Reference or Constant object - [%s] %p", AcpiUtGetObjectTypeName (DestDesc), DestDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* * Examine the Reference class. These cases are handled: * * 1) Store to Name (Change the object associated with a name) * 2) Store to an indexed area of a Buffer or Package * 3) Store to a Method Local or Arg * 4) Store to the debug object */ switch (RefDesc->Reference.Class) { case ACPI_REFCLASS_REFOF: /* Storing an object into a Name "container" */ Status = AcpiExStoreObjectToNode (SourceDesc, RefDesc->Reference.Object, WalkState, ACPI_IMPLICIT_CONVERSION); break; case ACPI_REFCLASS_INDEX: /* Storing to an Index (pointer into a packager or buffer) */ Status = AcpiExStoreObjectToIndex (SourceDesc, RefDesc, WalkState); break; case ACPI_REFCLASS_LOCAL: case ACPI_REFCLASS_ARG: /* Store to a method local/arg */ Status = AcpiDsStoreObjectToLocal (RefDesc->Reference.Class, RefDesc->Reference.Value, SourceDesc, WalkState); break; case ACPI_REFCLASS_DEBUG: /* * Storing to the Debug object causes the value stored to be * displayed and otherwise has no effect -- see ACPI Specification */ ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "**** Write to Debug Object: Object %p [%s] ****:\n\n", SourceDesc, AcpiUtGetObjectTypeName (SourceDesc))); ACPI_DEBUG_OBJECT (SourceDesc, 0, 0); break; default: ACPI_ERROR ((AE_INFO, "Unknown Reference Class 0x%2.2X", RefDesc->Reference.Class)); ACPI_DUMP_ENTRY (RefDesc, ACPI_LV_INFO); Status = AE_AML_INTERNAL; break; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExStoreObjectToIndex * * PARAMETERS: *SourceDesc - Value to be stored * *DestDesc - Named object to receive the value * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Store the object to indexed Buffer or Package element * ******************************************************************************/ static ACPI_STATUS AcpiExStoreObjectToIndex ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *IndexDesc, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *NewDesc; UINT8 Value = 0; UINT32 i; ACPI_FUNCTION_TRACE (ExStoreObjectToIndex); /* * Destination must be a reference pointer, and * must point to either a buffer or a package */ switch (IndexDesc->Reference.TargetType) { case ACPI_TYPE_PACKAGE: /* * Storing to a package element. Copy the object and replace * any existing object with the new object. No implicit * conversion is performed. * * The object at *(IndexDesc->Reference.Where) is the * element within the package that is to be modified. * The parent package object is at IndexDesc->Reference.Object */ ObjDesc = *(IndexDesc->Reference.Where); if (SourceDesc->Common.Type == ACPI_TYPE_LOCAL_REFERENCE && SourceDesc->Reference.Class == ACPI_REFCLASS_TABLE) { /* This is a DDBHandle, just add a reference to it */ AcpiUtAddReference (SourceDesc); NewDesc = SourceDesc; } else { /* Normal object, copy it */ Status = AcpiUtCopyIobjectToIobject ( SourceDesc, &NewDesc, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } if (ObjDesc) { /* Decrement reference count by the ref count of the parent package */ for (i = 0; i < ((ACPI_OPERAND_OBJECT *) IndexDesc->Reference.Object)->Common.ReferenceCount; i++) { AcpiUtRemoveReference (ObjDesc); } } *(IndexDesc->Reference.Where) = NewDesc; /* Increment ref count by the ref count of the parent package-1 */ for (i = 1; i < ((ACPI_OPERAND_OBJECT *) IndexDesc->Reference.Object)->Common.ReferenceCount; i++) { AcpiUtAddReference (NewDesc); } break; case ACPI_TYPE_BUFFER_FIELD: /* * Store into a Buffer or String (not actually a real BufferField) * at a location defined by an Index. * * The first 8-bit element of the source object is written to the * 8-bit Buffer location defined by the Index destination object, * according to the ACPI 2.0 specification. */ /* * Make sure the target is a Buffer or String. An error should * not happen here, since the ReferenceObject was constructed * by the INDEX_OP code. */ ObjDesc = IndexDesc->Reference.Object; if ((ObjDesc->Common.Type != ACPI_TYPE_BUFFER) && (ObjDesc->Common.Type != ACPI_TYPE_STRING)) { return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* * The assignment of the individual elements will be slightly * different for each source type. */ switch (SourceDesc->Common.Type) { case ACPI_TYPE_INTEGER: /* Use the least-significant byte of the integer */ Value = (UINT8) (SourceDesc->Integer.Value); break; case ACPI_TYPE_BUFFER: case ACPI_TYPE_STRING: /* Note: Takes advantage of common string/buffer fields */ Value = SourceDesc->Buffer.Pointer[0]; break; default: /* All other types are invalid */ ACPI_ERROR ((AE_INFO, "Source must be type [Integer/Buffer/String], found [%s]", AcpiUtGetObjectTypeName (SourceDesc))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* Store the source value into the target buffer byte */ ObjDesc->Buffer.Pointer[IndexDesc->Reference.Value] = Value; break; default: ACPI_ERROR ((AE_INFO, "Target is not of type [Package/BufferField]")); Status = AE_AML_TARGET_TYPE; break; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExStoreObjectToNode * * PARAMETERS: SourceDesc - Value to be stored * Node - Named object to receive the value * WalkState - Current walk state * ImplicitConversion - Perform implicit conversion (yes/no) * * RETURN: Status * * DESCRIPTION: Store the object to the named object. * * The assignment of an object to a named object is handled here. * The value passed in will replace the current value (if any) * with the input value. * * When storing into an object the data is converted to the * target object type then stored in the object. This means * that the target object type (for an initialized target) will * not be changed by a store operation. A CopyObject can change * the target type, however. * * The ImplicitConversion flag is set to NO/FALSE only when * storing to an ArgX -- as per the rules of the ACPI spec. * * Assumes parameters are already validated. * ******************************************************************************/ ACPI_STATUS AcpiExStoreObjectToNode ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_NAMESPACE_NODE *Node, ACPI_WALK_STATE *WalkState, UINT8 ImplicitConversion) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *TargetDesc; ACPI_OPERAND_OBJECT *NewDesc; ACPI_OBJECT_TYPE TargetType; ACPI_FUNCTION_TRACE_PTR (ExStoreObjectToNode, SourceDesc); /* Get current type of the node, and object attached to Node */ TargetType = AcpiNsGetType (Node); TargetDesc = AcpiNsGetAttachedObject (Node); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Storing %p [%s] to node %p [%s]\n", SourceDesc, AcpiUtGetObjectTypeName (SourceDesc), Node, AcpiUtGetTypeName (TargetType))); /* Only limited target types possible for everything except CopyObject */ if (WalkState->Opcode != AML_COPY_OBJECT_OP) { /* * Only CopyObject allows all object types to be overwritten. For * TargetRef(s), there are restrictions on the object types that * are allowed. * * Allowable operations/typing for Store: * * 1) Simple Store * Integer --> Integer (Named/Local/Arg) * String --> String (Named/Local/Arg) * Buffer --> Buffer (Named/Local/Arg) * Package --> Package (Named/Local/Arg) * * 2) Store with implicit conversion * Integer --> String or Buffer (Named) * String --> Integer or Buffer (Named) * Buffer --> Integer or String (Named) */ switch (TargetType) { case ACPI_TYPE_PACKAGE: /* * Here, can only store a package to an existing package. * Storing a package to a Local/Arg is OK, and handled * elsewhere. */ if (WalkState->Opcode == AML_STORE_OP) { if (SourceDesc->Common.Type != ACPI_TYPE_PACKAGE) { ACPI_ERROR ((AE_INFO, "Cannot assign type [%s] to [Package] " "(source must be type Pkg)", AcpiUtGetObjectTypeName (SourceDesc))); return_ACPI_STATUS (AE_AML_TARGET_TYPE); } break; } ACPI_FALLTHROUGH; case ACPI_TYPE_DEVICE: case ACPI_TYPE_EVENT: case ACPI_TYPE_MUTEX: case ACPI_TYPE_REGION: case ACPI_TYPE_POWER: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: ACPI_ERROR ((AE_INFO, "Target must be [Buffer/Integer/String/Reference]" ", found [%s] (%4.4s)", AcpiUtGetTypeName (Node->Type), Node->Name.Ascii)); return_ACPI_STATUS (AE_AML_TARGET_TYPE); default: break; } } /* * Resolve the source object to an actual value * (If it is a reference object) */ Status = AcpiExResolveObject (&SourceDesc, TargetType, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Do the actual store operation */ switch (TargetType) { /* * The simple data types all support implicit source operand * conversion before the store. */ case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: if ((WalkState->Opcode == AML_COPY_OBJECT_OP) || !ImplicitConversion) { /* * However, CopyObject and Stores to ArgX do not perform * an implicit conversion, as per the ACPI specification. * A direct store is performed instead. */ Status = AcpiExStoreDirectToNode (SourceDesc, Node, WalkState); break; } /* Store with implicit source operand conversion support */ Status = AcpiExStoreObjectToObject (SourceDesc, TargetDesc, &NewDesc, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (NewDesc != TargetDesc) { /* * Store the new NewDesc as the new value of the Name, and set * the Name's type to that of the value being stored in it. * SourceDesc reference count is incremented by AttachObject. * * Note: This may change the type of the node if an explicit * store has been performed such that the node/object type * has been changed. */ Status = AcpiNsAttachObject ( Node, NewDesc, NewDesc->Common.Type); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Store type [%s] into [%s] via Convert/Attach\n", AcpiUtGetObjectTypeName (SourceDesc), AcpiUtGetObjectTypeName (NewDesc))); } break; case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: /* * For all fields, always write the source data to the target * field. Any required implicit source operand conversion is * performed in the function below as necessary. Note, field * objects must retain their original type permanently. */ Status = AcpiExWriteDataToField (SourceDesc, TargetDesc, &WalkState->ResultObj); break; default: /* * CopyObject operator: No conversions for all other types. * Instead, directly store a copy of the source object. * * This is the ACPI spec-defined behavior for the CopyObject * operator. (Note, for this default case, all normal * Store/Target operations exited above with an error). */ Status = AcpiExStoreDirectToNode (SourceDesc, Node, WalkState); break; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExStoreDirectToNode * * PARAMETERS: SourceDesc - Value to be stored * Node - Named object to receive the value * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: "Store" an object directly to a node. This involves a copy * and an attach. * ******************************************************************************/ static ACPI_STATUS AcpiExStoreDirectToNode ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_NAMESPACE_NODE *Node, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *NewDesc; ACPI_FUNCTION_TRACE (ExStoreDirectToNode); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Storing [%s] (%p) directly into node [%s] (%p)" " with no implicit conversion\n", AcpiUtGetObjectTypeName (SourceDesc), SourceDesc, AcpiUtGetTypeName (Node->Type), Node)); /* Copy the source object to a new object */ Status = AcpiUtCopyIobjectToIobject (SourceDesc, &NewDesc, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Attach the new object to the node */ Status = AcpiNsAttachObject (Node, NewDesc, NewDesc->Common.Type); AcpiUtRemoveReference (NewDesc); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exstoren.c0000775000175000017500000002401714773714132023071 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exstoren - AML Interpreter object store support, * Store to Node (namespace object) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exstoren") /******************************************************************************* * * FUNCTION: AcpiExResolveObject * * PARAMETERS: SourceDescPtr - Pointer to the source object * TargetType - Current type of the target * WalkState - Current walk state * * RETURN: Status, resolved object in SourceDescPtr. * * DESCRIPTION: Resolve an object. If the object is a reference, dereference * it and return the actual object in the SourceDescPtr. * ******************************************************************************/ ACPI_STATUS AcpiExResolveObject ( ACPI_OPERAND_OBJECT **SourceDescPtr, ACPI_OBJECT_TYPE TargetType, ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT *SourceDesc = *SourceDescPtr; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (ExResolveObject); /* Ensure we have a Target that can be stored to */ switch (TargetType) { case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: /* * These cases all require only Integers or values that * can be converted to Integers (Strings or Buffers) */ case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* * Stores into a Field/Region or into a Integer/Buffer/String * are all essentially the same. This case handles the * "interchangeable" types Integer, String, and Buffer. */ if (SourceDesc->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) { /* Resolve a reference object first */ Status = AcpiExResolveToValue (SourceDescPtr, WalkState); if (ACPI_FAILURE (Status)) { break; } } /* For CopyObject, no further validation necessary */ if (WalkState->Opcode == AML_COPY_OBJECT_OP) { break; } /* Must have a Integer, Buffer, or String */ if ((SourceDesc->Common.Type != ACPI_TYPE_INTEGER) && (SourceDesc->Common.Type != ACPI_TYPE_BUFFER) && (SourceDesc->Common.Type != ACPI_TYPE_STRING) && !((SourceDesc->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) && (SourceDesc->Reference.Class== ACPI_REFCLASS_TABLE))) { /* Conversion successful but still not a valid type */ ACPI_ERROR ((AE_INFO, "Cannot assign type [%s] to [%s] (must be type Int/Str/Buf)", AcpiUtGetObjectTypeName (SourceDesc), AcpiUtGetTypeName (TargetType))); Status = AE_AML_OPERAND_TYPE; } break; case ACPI_TYPE_LOCAL_ALIAS: case ACPI_TYPE_LOCAL_METHOD_ALIAS: /* * All aliases should have been resolved earlier, during the * operand resolution phase. */ ACPI_ERROR ((AE_INFO, "Store into an unresolved Alias object")); Status = AE_AML_INTERNAL; break; case ACPI_TYPE_PACKAGE: default: /* * All other types than Alias and the various Fields come here, * including the untyped case - ACPI_TYPE_ANY. */ break; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExStoreObjectToObject * * PARAMETERS: SourceDesc - Object to store * DestDesc - Object to receive a copy of the source * NewDesc - New object if DestDesc is obsoleted * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: "Store" an object to another object. This may include * converting the source type to the target type (implicit * conversion), and a copy of the value of the source to * the target. * * The Assignment of an object to another (not named) object * is handled here. * The Source passed in will replace the current value (if any) * with the input value. * * When storing into an object the data is converted to the * target object type then stored in the object. This means * that the target object type (for an initialized target) will * not be changed by a store operation. * * This module allows destination types of Number, String, * Buffer, and Package. * * Assumes parameters are already validated. NOTE: SourceDesc * resolution (from a reference object) must be performed by * the caller if necessary. * ******************************************************************************/ ACPI_STATUS AcpiExStoreObjectToObject ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *DestDesc, ACPI_OPERAND_OBJECT **NewDesc, ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT *ActualSrcDesc; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_PTR (ExStoreObjectToObject, SourceDesc); ActualSrcDesc = SourceDesc; if (!DestDesc) { /* * There is no destination object (An uninitialized node or * package element), so we can simply copy the source object * creating a new destination object */ Status = AcpiUtCopyIobjectToIobject (ActualSrcDesc, NewDesc, WalkState); return_ACPI_STATUS (Status); } if (SourceDesc->Common.Type != DestDesc->Common.Type) { /* * The source type does not match the type of the destination. * Perform the "implicit conversion" of the source to the current type * of the target as per the ACPI specification. * * If no conversion performed, ActualSrcDesc = SourceDesc. * Otherwise, ActualSrcDesc is a temporary object to hold the * converted object. */ Status = AcpiExConvertToTargetType (DestDesc->Common.Type, SourceDesc, &ActualSrcDesc, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (SourceDesc == ActualSrcDesc) { /* * No conversion was performed. Return the SourceDesc as the * new object. */ *NewDesc = SourceDesc; return_ACPI_STATUS (AE_OK); } } /* * We now have two objects of identical types, and we can perform a * copy of the *value* of the source object. */ switch (DestDesc->Common.Type) { case ACPI_TYPE_INTEGER: DestDesc->Integer.Value = ActualSrcDesc->Integer.Value; /* Truncate value if we are executing from a 32-bit ACPI table */ (void) AcpiExTruncateFor32bitTable (DestDesc); break; case ACPI_TYPE_STRING: Status = AcpiExStoreStringToString (ActualSrcDesc, DestDesc); break; case ACPI_TYPE_BUFFER: Status = AcpiExStoreBufferToBuffer (ActualSrcDesc, DestDesc); break; case ACPI_TYPE_PACKAGE: Status = AcpiUtCopyIobjectToIobject (ActualSrcDesc, &DestDesc, WalkState); break; default: /* * All other types come here. */ ACPI_WARNING ((AE_INFO, "Store into type [%s] not implemented", AcpiUtGetObjectTypeName (DestDesc))); Status = AE_NOT_IMPLEMENTED; break; } if (ActualSrcDesc != SourceDesc) { /* Delete the intermediate (temporary) source object */ AcpiUtRemoveReference (ActualSrcDesc); } *NewDesc = DestDesc; return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exconvrt.c0000775000175000017500000005537114773714132023101 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exconvrt - Object conversion routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exconvrt") /* Local prototypes */ static UINT32 AcpiExConvertToAscii ( UINT64 Integer, UINT16 Base, UINT8 *String, UINT8 MaxLength, BOOLEAN LeadingZeros); /******************************************************************************* * * FUNCTION: AcpiExConvertToInteger * * PARAMETERS: ObjDesc - Object to be converted. Must be an * Integer, Buffer, or String * ResultDesc - Where the new Integer object is returned * ImplicitConversion - Used for string conversion * * RETURN: Status * * DESCRIPTION: Convert an ACPI Object to an integer. * ******************************************************************************/ ACPI_STATUS AcpiExConvertToInteger ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc, UINT32 ImplicitConversion) { ACPI_OPERAND_OBJECT *ReturnDesc; UINT8 *Pointer; UINT64 Result; UINT32 i; UINT32 Count; ACPI_FUNCTION_TRACE_PTR (ExConvertToInteger, ObjDesc); switch (ObjDesc->Common.Type) { case ACPI_TYPE_INTEGER: /* No conversion necessary */ *ResultDesc = ObjDesc; return_ACPI_STATUS (AE_OK); case ACPI_TYPE_BUFFER: case ACPI_TYPE_STRING: /* Note: Takes advantage of common buffer/string fields */ Pointer = ObjDesc->Buffer.Pointer; Count = ObjDesc->Buffer.Length; break; default: return_ACPI_STATUS (AE_TYPE); } /* * Convert the buffer/string to an integer. Note that both buffers and * strings are treated as raw data - we don't convert ascii to hex for * strings. * * There are two terminating conditions for the loop: * 1) The size of an integer has been reached, or * 2) The end of the buffer or string has been reached */ Result = 0; /* String conversion is different than Buffer conversion */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_STRING: /* * Convert string to an integer - for most cases, the string must be * hexadecimal as per the ACPI specification. The only exception (as * of ACPI 3.0) is that the ToInteger() operator allows both decimal * and hexadecimal strings (hex prefixed with "0x"). * * Explicit conversion is used only by ToInteger. * All other string-to-integer conversions are implicit conversions. */ if (ImplicitConversion) { Result = AcpiUtImplicitStrtoul64 (ACPI_CAST_PTR (char, Pointer)); } else { Result = AcpiUtExplicitStrtoul64 (ACPI_CAST_PTR (char, Pointer)); } break; case ACPI_TYPE_BUFFER: /* Check for zero-length buffer */ if (!Count) { return_ACPI_STATUS (AE_AML_BUFFER_LIMIT); } /* Transfer no more than an integer's worth of data */ if (Count > AcpiGbl_IntegerByteWidth) { Count = AcpiGbl_IntegerByteWidth; } /* * Convert buffer to an integer - we simply grab enough raw data * from the buffer to fill an integer */ for (i = 0; i < Count; i++) { /* * Get next byte and shift it into the Result. * Little endian is used, meaning that the first byte of the buffer * is the LSB of the integer */ Result |= (((UINT64) Pointer[i]) << (i * 8)); } break; default: /* No other types can get here */ break; } /* Create a new integer */ ReturnDesc = AcpiUtCreateIntegerObject (Result); if (!ReturnDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Converted value: %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Result))); /* Save the Result */ (void) AcpiExTruncateFor32bitTable (ReturnDesc); *ResultDesc = ReturnDesc; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExConvertToBuffer * * PARAMETERS: ObjDesc - Object to be converted. Must be an * Integer, Buffer, or String * ResultDesc - Where the new buffer object is returned * * RETURN: Status * * DESCRIPTION: Convert an ACPI Object to a Buffer * ******************************************************************************/ ACPI_STATUS AcpiExConvertToBuffer ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc) { ACPI_OPERAND_OBJECT *ReturnDesc; UINT8 *NewBuf; ACPI_FUNCTION_TRACE_PTR (ExConvertToBuffer, ObjDesc); switch (ObjDesc->Common.Type) { case ACPI_TYPE_BUFFER: /* No conversion necessary */ *ResultDesc = ObjDesc; return_ACPI_STATUS (AE_OK); case ACPI_TYPE_INTEGER: /* * Create a new Buffer object. * Need enough space for one integer */ ReturnDesc = AcpiUtCreateBufferObject (AcpiGbl_IntegerByteWidth); if (!ReturnDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Copy the integer to the buffer, LSB first */ NewBuf = ReturnDesc->Buffer.Pointer; memcpy (NewBuf, &ObjDesc->Integer.Value, AcpiGbl_IntegerByteWidth); break; case ACPI_TYPE_STRING: /* * Create a new Buffer object * Size will be the string length * * NOTE: Add one to the string length to include the null terminator. * The ACPI spec is unclear on this subject, but there is existing * ASL/AML code that depends on the null being transferred to the new * buffer. */ ReturnDesc = AcpiUtCreateBufferObject ((ACPI_SIZE) ObjDesc->String.Length + 1); if (!ReturnDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Copy the string to the buffer */ NewBuf = ReturnDesc->Buffer.Pointer; memcpy ((char *) NewBuf, (char *) ObjDesc->String.Pointer, ObjDesc->String.Length); break; default: return_ACPI_STATUS (AE_TYPE); } /* Mark buffer initialized */ ReturnDesc->Common.Flags |= AOPOBJ_DATA_VALID; *ResultDesc = ReturnDesc; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExConvertToAscii * * PARAMETERS: Integer - Value to be converted * Base - ACPI_STRING_DECIMAL or ACPI_STRING_HEX * String - Where the string is returned * DataWidth - Size of data item to be converted, in bytes * LeadingZeros - Allow leading zeros * * RETURN: Actual string length * * DESCRIPTION: Convert an ACPI Integer to a hex or decimal string * ******************************************************************************/ static UINT32 AcpiExConvertToAscii ( UINT64 Integer, UINT16 Base, UINT8 *String, UINT8 DataWidth, BOOLEAN LeadingZeros) { UINT64 Digit; UINT32 i; UINT32 j; UINT32 k = 0; UINT32 HexLength; UINT32 DecimalLength; UINT32 Remainder; BOOLEAN SupressZeros = !LeadingZeros; UINT8 HexChar; ACPI_FUNCTION_ENTRY (); switch (Base) { case 10: /* Setup max length for the decimal number */ switch (DataWidth) { case 1: DecimalLength = ACPI_MAX8_DECIMAL_DIGITS; break; case 4: DecimalLength = ACPI_MAX32_DECIMAL_DIGITS; break; case 8: default: DecimalLength = ACPI_MAX64_DECIMAL_DIGITS; break; } Remainder = 0; for (i = DecimalLength; i > 0; i--) { /* Divide by nth factor of 10 */ Digit = Integer; for (j = 0; j < i; j++) { (void) AcpiUtShortDivide (Digit, 10, &Digit, &Remainder); } /* Handle leading zeros */ if (Remainder != 0) { SupressZeros = FALSE; } if (!SupressZeros) { String[k] = (UINT8) (ACPI_ASCII_ZERO + Remainder); k++; } } break; case 16: /* HexLength: 2 ascii hex chars per data byte */ HexLength = (DataWidth * 2); for (i = 0, j = (HexLength-1); i < HexLength; i++, j--) { /* Get one hex digit, most significant digits first */ HexChar = (UINT8) AcpiUtHexToAsciiChar (Integer, ACPI_MUL_4 (j)); /* Supress leading zeros until the first non-zero character */ if (HexChar == ACPI_ASCII_ZERO && SupressZeros) { continue; } SupressZeros = FALSE; String[k] = HexChar; k++; } break; default: return (0); } /* * Since leading zeros are suppressed, we must check for the case where * the integer equals 0 * * Finally, null terminate the string and return the length */ if (!k) { String [0] = ACPI_ASCII_ZERO; k = 1; } String [k] = 0; return ((UINT32) k); } /******************************************************************************* * * FUNCTION: AcpiExConvertToString * * PARAMETERS: ObjDesc - Object to be converted. Must be an * Integer, Buffer, or String * ResultDesc - Where the string object is returned * Type - String flags (base and conversion type) * * RETURN: Status * * DESCRIPTION: Convert an ACPI Object to a string. Supports both implicit * and explicit conversions and related rules. * ******************************************************************************/ ACPI_STATUS AcpiExConvertToString ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc, UINT32 Type) { ACPI_OPERAND_OBJECT *ReturnDesc; UINT8 *NewBuf; UINT32 i; UINT32 StringLength = 0; UINT16 Base = 16; UINT8 Separator = ','; BOOLEAN LeadingZeros; ACPI_FUNCTION_TRACE_PTR (ExConvertToString, ObjDesc); switch (ObjDesc->Common.Type) { case ACPI_TYPE_STRING: /* No conversion necessary */ *ResultDesc = ObjDesc; return_ACPI_STATUS (AE_OK); case ACPI_TYPE_INTEGER: switch (Type) { case ACPI_EXPLICIT_CONVERT_DECIMAL: /* * From ToDecimalString, integer source. * * Make room for the maximum decimal number size */ StringLength = ACPI_MAX_DECIMAL_DIGITS; LeadingZeros = FALSE; Base = 10; break; case ACPI_EXPLICIT_CONVERT_HEX: /* * From ToHexString. * * Supress leading zeros and append "0x" */ StringLength = ACPI_MUL_2 (AcpiGbl_IntegerByteWidth) + 2; LeadingZeros = FALSE; break; default: /* Two hex string characters for each integer byte */ StringLength = ACPI_MUL_2 (AcpiGbl_IntegerByteWidth); LeadingZeros = TRUE; break; } /* * Create a new String * Need enough space for one ASCII integer (plus null terminator) */ ReturnDesc = AcpiUtCreateStringObject ((ACPI_SIZE) StringLength); if (!ReturnDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } NewBuf = ReturnDesc->Buffer.Pointer; if (Type == ACPI_EXPLICIT_CONVERT_HEX) { /* Append "0x" prefix for explicit hex conversion */ *NewBuf++ = '0'; *NewBuf++ = 'x'; } /* Convert integer to string */ StringLength = AcpiExConvertToAscii ( ObjDesc->Integer.Value, Base, NewBuf, AcpiGbl_IntegerByteWidth, LeadingZeros); /* Null terminate at the correct place */ ReturnDesc->String.Length = StringLength; if (Type == ACPI_EXPLICIT_CONVERT_HEX) { /* Take "0x" prefix into account */ ReturnDesc->String.Length += 2; } NewBuf [StringLength] = 0; break; case ACPI_TYPE_BUFFER: /* Setup string length, base, and separator */ switch (Type) { case ACPI_EXPLICIT_CONVERT_DECIMAL: /* Used by ToDecimalString */ /* * Explicit conversion from the ToDecimalString ASL operator. * * From ACPI: "If the input is a buffer, it is converted to a * a string of decimal values separated by commas." */ LeadingZeros = FALSE; Base = 10; /* * Calculate the final string length. Individual string values * are variable length (include separator for each) */ for (i = 0; i < ObjDesc->Buffer.Length; i++) { if (ObjDesc->Buffer.Pointer[i] >= 100) { StringLength += 4; } else if (ObjDesc->Buffer.Pointer[i] >= 10) { StringLength += 3; } else { StringLength += 2; } } break; case ACPI_IMPLICIT_CONVERT_HEX: /* * Implicit buffer-to-string conversion * * From the ACPI spec: * "The entire contents of the buffer are converted to a string of * two-character hexadecimal numbers, each separated by a space." * * Each hex number is prefixed with 0x (11/2018) */ LeadingZeros = TRUE; Separator = ' '; StringLength = (ObjDesc->Buffer.Length * 5); break; case ACPI_EXPLICIT_CONVERT_HEX: /* * Explicit conversion from the ToHexString ASL operator. * * From ACPI: "If Data is a buffer, it is converted to a string of * hexadecimal values separated by commas." * * Each hex number is prefixed with 0x (11/2018) */ LeadingZeros = TRUE; Separator = ','; StringLength = (ObjDesc->Buffer.Length * 5); break; default: return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * Create a new string object and string buffer * (-1 because of extra separator included in StringLength from above) * Allow creation of zero-length strings from zero-length buffers. */ if (StringLength) { StringLength--; } ReturnDesc = AcpiUtCreateStringObject ((ACPI_SIZE) StringLength); if (!ReturnDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } NewBuf = ReturnDesc->Buffer.Pointer; /* * Convert buffer bytes to hex or decimal values * (separated by commas or spaces) */ for (i = 0; i < ObjDesc->Buffer.Length; i++) { if (Base == 16) { /* Emit 0x prefix for explicit/implicit hex conversion */ *NewBuf++ = '0'; *NewBuf++ = 'x'; } NewBuf += AcpiExConvertToAscii ( (UINT64) ObjDesc->Buffer.Pointer[i], Base, NewBuf, 1, LeadingZeros); /* Each digit is separated by either a comma or space */ *NewBuf++ = Separator; } /* * Null terminate the string * (overwrites final comma/space from above) */ if (ObjDesc->Buffer.Length) { NewBuf--; } *NewBuf = 0; break; default: return_ACPI_STATUS (AE_TYPE); } *ResultDesc = ReturnDesc; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExConvertToTargetType * * PARAMETERS: DestinationType - Current type of the destination * SourceDesc - Source object to be converted. * ResultDesc - Where the converted object is returned * WalkState - Current method state * * RETURN: Status * * DESCRIPTION: Implements "implicit conversion" rules for storing an object. * ******************************************************************************/ ACPI_STATUS AcpiExConvertToTargetType ( ACPI_OBJECT_TYPE DestinationType, ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT **ResultDesc, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (ExConvertToTargetType); /* Default behavior */ *ResultDesc = SourceDesc; /* * If required by the target, * perform implicit conversion on the source before we store it. */ switch (GET_CURRENT_ARG_TYPE (WalkState->OpInfo->RuntimeArgs)) { case ARGI_SIMPLE_TARGET: case ARGI_FIXED_TARGET: case ARGI_INTEGER_REF: /* Handles Increment, Decrement cases */ switch (DestinationType) { case ACPI_TYPE_LOCAL_REGION_FIELD: /* * Named field can always handle conversions */ break; default: /* No conversion allowed for these types */ if (DestinationType != SourceDesc->Common.Type) { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Explicit operator, will store (%s) over existing type (%s)\n", AcpiUtGetObjectTypeName (SourceDesc), AcpiUtGetTypeName (DestinationType))); Status = AE_TYPE; } } break; case ARGI_TARGETREF: case ARGI_STORE_TARGET: switch (DestinationType) { case ACPI_TYPE_INTEGER: case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: /* * These types require an Integer operand. We can convert * a Buffer or a String to an Integer if necessary. */ Status = AcpiExConvertToInteger (SourceDesc, ResultDesc, ACPI_IMPLICIT_CONVERSION); break; case ACPI_TYPE_STRING: /* * The operand must be a String. We can convert an * Integer or Buffer if necessary */ Status = AcpiExConvertToString (SourceDesc, ResultDesc, ACPI_IMPLICIT_CONVERT_HEX); break; case ACPI_TYPE_BUFFER: /* * The operand must be a Buffer. We can convert an * Integer or String if necessary */ Status = AcpiExConvertToBuffer (SourceDesc, ResultDesc); break; default: ACPI_ERROR ((AE_INFO, "Bad destination type during conversion: 0x%X", DestinationType)); Status = AE_AML_INTERNAL; break; } break; case ARGI_REFERENCE: /* * CreateXxxxField cases - we are storing the field object into the name */ break; default: ACPI_ERROR ((AE_INFO, "Unknown Target type ID 0x%X AmlOpcode 0x%X DestType %s", GET_CURRENT_ARG_TYPE (WalkState->OpInfo->RuntimeArgs), WalkState->Opcode, AcpiUtGetTypeName (DestinationType))); Status = AE_AML_INTERNAL; } /* * Source-to-Target conversion semantics: * * If conversion to the target type cannot be performed, then simply * overwrite the target with the new object and type. */ if (Status == AE_TYPE) { Status = AE_OK; } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exserial.c0000775000175000017500000003212114773714132023031 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exserial - FieldUnit support for serial address spaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "acinterp.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exserial") /******************************************************************************* * * FUNCTION: AcpiExReadGpio * * PARAMETERS: ObjDesc - The named field to read * Buffer - Where the return data is returned * * RETURN: Status * * DESCRIPTION: Read from a named field that references a Generic Serial Bus * field * ******************************************************************************/ ACPI_STATUS AcpiExReadGpio ( ACPI_OPERAND_OBJECT *ObjDesc, void *Buffer) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (ExReadGpio, ObjDesc); /* * For GPIO (GeneralPurposeIo), the Address will be the bit offset * from the previous Connection() operator, making it effectively a * pin number index. The BitLength is the length of the field, which * is thus the number of pins. */ ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "GPIO FieldRead [FROM]: Pin %u Bits %u\n", ObjDesc->Field.PinNumberIndex, ObjDesc->Field.BitLength)); /* Lock entire transaction if requested */ AcpiExAcquireGlobalLock (ObjDesc->CommonField.FieldFlags); /* Perform the read */ Status = AcpiExAccessRegion ( ObjDesc, 0, (UINT64 *) Buffer, ACPI_READ); AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExWriteGpio * * PARAMETERS: SourceDesc - Contains data to write. Expect to be * an Integer object. * ObjDesc - The named field * ResultDesc - Where the return value is returned, if any * * RETURN: Status * * DESCRIPTION: Write to a named field that references a General Purpose I/O * field. * ******************************************************************************/ ACPI_STATUS AcpiExWriteGpio ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnBuffer) { ACPI_STATUS Status; void *Buffer; ACPI_FUNCTION_TRACE_PTR (ExWriteGpio, ObjDesc); /* * For GPIO (GeneralPurposeIo), we will bypass the entire field * mechanism and handoff the bit address and bit width directly to * the handler. The Address will be the bit offset * from the previous Connection() operator, making it effectively a * pin number index. The BitLength is the length of the field, which * is thus the number of pins. */ if (SourceDesc->Common.Type != ACPI_TYPE_INTEGER) { return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "GPIO FieldWrite [FROM]: (%s:%X), Value %.8X [TO]: Pin %u Bits %u\n", AcpiUtGetTypeName (SourceDesc->Common.Type), SourceDesc->Common.Type, (UINT32) SourceDesc->Integer.Value, ObjDesc->Field.PinNumberIndex, ObjDesc->Field.BitLength)); Buffer = &SourceDesc->Integer.Value; /* Lock entire transaction if requested */ AcpiExAcquireGlobalLock (ObjDesc->CommonField.FieldFlags); /* Perform the write */ Status = AcpiExAccessRegion ( ObjDesc, 0, (UINT64 *) Buffer, ACPI_WRITE); AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExReadSerialBus * * PARAMETERS: ObjDesc - The named field to read * ReturnBuffer - Where the return value is returned, if any * * RETURN: Status * * DESCRIPTION: Read from a named field that references a serial bus * (SMBus, IPMI, or GSBus). * ******************************************************************************/ ACPI_STATUS AcpiExReadSerialBus ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnBuffer) { ACPI_STATUS Status; UINT32 BufferLength; ACPI_OPERAND_OBJECT *BufferDesc; UINT32 Function; UINT16 AccessorType; ACPI_FUNCTION_TRACE_PTR (ExReadSerialBus, ObjDesc); /* * This is an SMBus, GSBus or IPMI read. We must create a buffer to * hold the data and then directly access the region handler. * * Note: SMBus and GSBus protocol value is passed in upper 16-bits * of Function * * Common buffer format: * Status; (Byte 0 of the data buffer) * Length; (Byte 1 of the data buffer) * Data[x-1]: (Bytes 2-x of the arbitrary length data buffer) */ switch (ObjDesc->Field.RegionObj->Region.SpaceId) { case ACPI_ADR_SPACE_SMBUS: BufferLength = ACPI_SMBUS_BUFFER_SIZE; Function = ACPI_READ | (ObjDesc->Field.Attribute << 16); break; case ACPI_ADR_SPACE_IPMI: BufferLength = ACPI_IPMI_BUFFER_SIZE; Function = ACPI_READ; break; case ACPI_ADR_SPACE_GSBUS: AccessorType = ObjDesc->Field.Attribute; if (AccessorType == AML_FIELD_ATTRIB_RAW_PROCESS_BYTES) { ACPI_ERROR ((AE_INFO, "Invalid direct read using bidirectional write-then-read protocol")); return_ACPI_STATUS (AE_AML_PROTOCOL); } Status = AcpiExGetProtocolBufferLength (AccessorType, &BufferLength); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Invalid protocol ID for GSBus: 0x%4.4X", AccessorType)); return_ACPI_STATUS (Status); } /* Add header length to get the full size of the buffer */ BufferLength += ACPI_SERIAL_HEADER_SIZE; Function = ACPI_READ | (AccessorType << 16); break; case ACPI_ADR_SPACE_PLATFORM_RT: BufferLength = ACPI_PRM_INPUT_BUFFER_SIZE; Function = ACPI_READ; break; case ACPI_ADR_SPACE_FIXED_HARDWARE: BufferLength = ACPI_FFH_INPUT_BUFFER_SIZE; Function = ACPI_READ; break; default: return_ACPI_STATUS (AE_AML_INVALID_SPACE_ID); } /* Create the local transfer buffer that is returned to the caller */ BufferDesc = AcpiUtCreateBufferObject (BufferLength); if (!BufferDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Lock entire transaction if requested */ AcpiExAcquireGlobalLock (ObjDesc->CommonField.FieldFlags); /* Call the region handler for the write-then-read */ Status = AcpiExAccessRegion (ObjDesc, 0, ACPI_CAST_PTR (UINT64, BufferDesc->Buffer.Pointer), Function); AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags); *ReturnBuffer = BufferDesc; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExWriteSerialBus * * PARAMETERS: SourceDesc - Contains data to write * ObjDesc - The named field * ReturnBuffer - Where the return value is returned, if any * * RETURN: Status * * DESCRIPTION: Write to a named field that references a serial bus * (SMBus, IPMI, GSBus). * ******************************************************************************/ ACPI_STATUS AcpiExWriteSerialBus ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnBuffer) { ACPI_STATUS Status; UINT32 BufferLength; UINT32 DataLength; void *Buffer; ACPI_OPERAND_OBJECT *BufferDesc; UINT32 Function; UINT16 AccessorType; ACPI_FUNCTION_TRACE_PTR (ExWriteSerialBus, ObjDesc); /* * This is an SMBus, GSBus or IPMI write. We will bypass the entire * field mechanism and handoff the buffer directly to the handler. * For these address spaces, the buffer is bidirectional; on a * write, return data is returned in the same buffer. * * Source must be a buffer of sufficient size, these are fixed size: * ACPI_SMBUS_BUFFER_SIZE, or ACPI_IPMI_BUFFER_SIZE. * * Note: SMBus and GSBus protocol type is passed in upper 16-bits * of Function * * Common buffer format: * Status; (Byte 0 of the data buffer) * Length; (Byte 1 of the data buffer) * Data[x-1]: (Bytes 2-x of the arbitrary length data buffer) */ if (SourceDesc->Common.Type != ACPI_TYPE_BUFFER) { ACPI_ERROR ((AE_INFO, "SMBus/IPMI/GenericSerialBus write requires " "Buffer, found type %s", AcpiUtGetObjectTypeName (SourceDesc))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } switch (ObjDesc->Field.RegionObj->Region.SpaceId) { case ACPI_ADR_SPACE_SMBUS: BufferLength = ACPI_SMBUS_BUFFER_SIZE; Function = ACPI_WRITE | (ObjDesc->Field.Attribute << 16); break; case ACPI_ADR_SPACE_IPMI: BufferLength = ACPI_IPMI_BUFFER_SIZE; Function = ACPI_WRITE; break; case ACPI_ADR_SPACE_GSBUS: AccessorType = ObjDesc->Field.Attribute; Status = AcpiExGetProtocolBufferLength (AccessorType, &BufferLength); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Invalid protocol ID for GSBus: 0x%4.4X", AccessorType)); return_ACPI_STATUS (Status); } /* Add header length to get the full size of the buffer */ BufferLength += ACPI_SERIAL_HEADER_SIZE; Function = ACPI_WRITE | (AccessorType << 16); break; case ACPI_ADR_SPACE_PLATFORM_RT: BufferLength = ACPI_PRM_INPUT_BUFFER_SIZE; Function = ACPI_WRITE; break; case ACPI_ADR_SPACE_FIXED_HARDWARE: BufferLength = ACPI_FFH_INPUT_BUFFER_SIZE; Function = ACPI_WRITE; break; default: return_ACPI_STATUS (AE_AML_INVALID_SPACE_ID); } /* Create the transfer/bidirectional/return buffer */ BufferDesc = AcpiUtCreateBufferObject (BufferLength); if (!BufferDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Copy the input buffer data to the transfer buffer */ Buffer = BufferDesc->Buffer.Pointer; DataLength = ACPI_MIN (BufferLength, SourceDesc->Buffer.Length); memcpy (Buffer, SourceDesc->Buffer.Pointer, DataLength); /* Lock entire transaction if requested */ AcpiExAcquireGlobalLock (ObjDesc->CommonField.FieldFlags); /* * Perform the write (returns status and perhaps data in the * same buffer) */ Status = AcpiExAccessRegion ( ObjDesc, 0, (UINT64 *) Buffer, Function); AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags); *ReturnBuffer = BufferDesc; return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exutils.c0000775000175000017500000003542314773714132022722 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exutils - interpreter/scanner utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * DEFINE_AML_GLOBALS is tested in amlcode.h * to determine whether certain global names should be "defined" or only * "declared" in the current compilation. This enhances maintainability * by enabling a single header file to embody all knowledge of the names * in question. * * Exactly one module of any executable should #define DEFINE_GLOBALS * before #including the header files which use this convention. The * names in question will be defined and initialized in that module, * and declared as extern in all other modules which #include those * header files. */ #define DEFINE_AML_GLOBALS #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exutils") /* Local prototypes */ static UINT32 AcpiExDigitsNeeded ( UINT64 Value, UINT32 Base); /******************************************************************************* * * FUNCTION: AcpiExEnterInterpreter * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Enter the interpreter execution region. Failure to enter * the interpreter region is a fatal system error. Used in * conjunction with ExitInterpreter. * ******************************************************************************/ void AcpiExEnterInterpreter ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (ExEnterInterpreter); Status = AcpiUtAcquireMutex (ACPI_MTX_INTERPRETER); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not acquire AML Interpreter mutex")); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not acquire AML Namespace mutex")); } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiExExitInterpreter * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Exit the interpreter execution region. This is the top level * routine used to exit the interpreter when all processing has * been completed, or when the method blocks. * * Cases where the interpreter is unlocked internally: * 1) Method will be blocked on a Sleep() AML opcode * 2) Method will be blocked on an Acquire() AML opcode * 3) Method will be blocked on a Wait() AML opcode * 4) Method will be blocked to acquire the global lock * 5) Method will be blocked waiting to execute a serialized control * method that is currently executing * 6) About to invoke a user-installed opregion handler * ******************************************************************************/ void AcpiExExitInterpreter ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (ExExitInterpreter); Status = AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not release AML Namespace mutex")); } Status = AcpiUtReleaseMutex (ACPI_MTX_INTERPRETER); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not release AML Interpreter mutex")); } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiExTruncateFor32bitTable * * PARAMETERS: ObjDesc - Object to be truncated * * RETURN: TRUE if a truncation was performed, FALSE otherwise. * * DESCRIPTION: Truncate an ACPI Integer to 32 bits if the execution mode is * 32-bit, as determined by the revision of the DSDT. * ******************************************************************************/ BOOLEAN AcpiExTruncateFor32bitTable ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_FUNCTION_ENTRY (); /* * Object must be a valid number and we must be executing * a control method. Object could be NS node for AML_INT_NAMEPATH_OP. */ if ((!ObjDesc) || (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND) || (ObjDesc->Common.Type != ACPI_TYPE_INTEGER)) { return (FALSE); } if ((AcpiGbl_IntegerByteWidth == 4) && (ObjDesc->Integer.Value > (UINT64) ACPI_UINT32_MAX)) { /* * We are executing in a 32-bit ACPI table. Truncate * the value to 32 bits by zeroing out the upper 32-bit field */ ObjDesc->Integer.Value &= (UINT64) ACPI_UINT32_MAX; return (TRUE); } return (FALSE); } /******************************************************************************* * * FUNCTION: AcpiExAcquireGlobalLock * * PARAMETERS: FieldFlags - Flags with Lock rule: * AlwaysLock or NeverLock * * RETURN: None * * DESCRIPTION: Obtain the ACPI hardware Global Lock, only if the field * flags specify that it is to be obtained before field access. * ******************************************************************************/ void AcpiExAcquireGlobalLock ( UINT32 FieldFlags) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (ExAcquireGlobalLock); /* Only use the lock if the AlwaysLock bit is set */ if (!(FieldFlags & AML_FIELD_LOCK_RULE_MASK)) { return_VOID; } /* Attempt to get the global lock, wait forever */ Status = AcpiExAcquireMutexObject (ACPI_WAIT_FOREVER, AcpiGbl_GlobalLockMutex, AcpiOsGetThreadId ()); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not acquire Global Lock")); } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiExReleaseGlobalLock * * PARAMETERS: FieldFlags - Flags with Lock rule: * AlwaysLock or NeverLock * * RETURN: None * * DESCRIPTION: Release the ACPI hardware Global Lock * ******************************************************************************/ void AcpiExReleaseGlobalLock ( UINT32 FieldFlags) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (ExReleaseGlobalLock); /* Only use the lock if the AlwaysLock bit is set */ if (!(FieldFlags & AML_FIELD_LOCK_RULE_MASK)) { return_VOID; } /* Release the global lock */ Status = AcpiExReleaseMutexObject (AcpiGbl_GlobalLockMutex); if (ACPI_FAILURE (Status)) { /* Report the error, but there isn't much else we can do */ ACPI_EXCEPTION ((AE_INFO, Status, "Could not release Global Lock")); } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiExDigitsNeeded * * PARAMETERS: Value - Value to be represented * Base - Base of representation * * RETURN: The number of digits. * * DESCRIPTION: Calculate the number of digits needed to represent the Value * in the given Base (Radix) * ******************************************************************************/ static UINT32 AcpiExDigitsNeeded ( UINT64 Value, UINT32 Base) { UINT32 NumDigits; UINT64 CurrentValue; ACPI_FUNCTION_TRACE (ExDigitsNeeded); /* UINT64 is unsigned, so we don't worry about a '-' prefix */ if (Value == 0) { return_UINT32 (1); } CurrentValue = Value; NumDigits = 0; /* Count the digits in the requested base */ while (CurrentValue) { (void) AcpiUtShortDivide (CurrentValue, Base, &CurrentValue, NULL); NumDigits++; } return_UINT32 (NumDigits); } /******************************************************************************* * * FUNCTION: AcpiExEisaIdToString * * PARAMETERS: OutString - Where to put the converted string (8 bytes) * CompressedId - EISAID to be converted * * RETURN: None * * DESCRIPTION: Convert a numeric EISAID to string representation. Return * buffer must be large enough to hold the string. The string * returned is always exactly of length ACPI_EISAID_STRING_SIZE * (includes null terminator). The EISAID is always 32 bits. * ******************************************************************************/ void AcpiExEisaIdToString ( char *OutString, UINT64 CompressedId) { UINT32 SwappedId; ACPI_FUNCTION_ENTRY (); /* The EISAID should be a 32-bit integer */ if (CompressedId > ACPI_UINT32_MAX) { ACPI_WARNING ((AE_INFO, "Expected EISAID is larger than 32 bits: " "0x%8.8X%8.8X, truncating", ACPI_FORMAT_UINT64 (CompressedId))); } /* Swap ID to big-endian to get contiguous bits */ SwappedId = AcpiUtDwordByteSwap ((UINT32) CompressedId); /* First 3 bytes are uppercase letters. Next 4 bytes are hexadecimal */ OutString[0] = (char) (0x40 + (((unsigned long) SwappedId >> 26) & 0x1F)); OutString[1] = (char) (0x40 + ((SwappedId >> 21) & 0x1F)); OutString[2] = (char) (0x40 + ((SwappedId >> 16) & 0x1F)); OutString[3] = AcpiUtHexToAsciiChar ((UINT64) SwappedId, 12); OutString[4] = AcpiUtHexToAsciiChar ((UINT64) SwappedId, 8); OutString[5] = AcpiUtHexToAsciiChar ((UINT64) SwappedId, 4); OutString[6] = AcpiUtHexToAsciiChar ((UINT64) SwappedId, 0); OutString[7] = 0; } /******************************************************************************* * * FUNCTION: AcpiExIntegerToString * * PARAMETERS: OutString - Where to put the converted string. At least * 21 bytes are needed to hold the largest * possible 64-bit integer. * Value - Value to be converted * * RETURN: Converted string in OutString * * DESCRIPTION: Convert a 64-bit integer to decimal string representation. * Assumes string buffer is large enough to hold the string. The * largest string is (ACPI_MAX64_DECIMAL_DIGITS + 1). * ******************************************************************************/ void AcpiExIntegerToString ( char *OutString, UINT64 Value) { UINT32 Count; UINT32 DigitsNeeded; UINT32 Remainder; ACPI_FUNCTION_ENTRY (); DigitsNeeded = AcpiExDigitsNeeded (Value, 10); OutString[DigitsNeeded] = 0; for (Count = DigitsNeeded; Count > 0; Count--) { (void) AcpiUtShortDivide (Value, 10, &Value, &Remainder); OutString[Count-1] = (char) ('0' + Remainder);\ } } /******************************************************************************* * * FUNCTION: AcpiExPciClsToString * * PARAMETERS: OutString - Where to put the converted string (7 bytes) * ClassCode - PCI class code to be converted (3 bytes) * * RETURN: Converted string in OutString * * DESCRIPTION: Convert 3-bytes PCI class code to string representation. * Return buffer must be large enough to hold the string. The * string returned is always exactly of length * ACPI_PCICLS_STRING_SIZE (includes null terminator). * ******************************************************************************/ void AcpiExPciClsToString ( char *OutString, UINT8 ClassCode[3]) { ACPI_FUNCTION_ENTRY (); /* All 3 bytes are hexadecimal */ OutString[0] = AcpiUtHexToAsciiChar ((UINT64) ClassCode[0], 4); OutString[1] = AcpiUtHexToAsciiChar ((UINT64) ClassCode[0], 0); OutString[2] = AcpiUtHexToAsciiChar ((UINT64) ClassCode[1], 4); OutString[3] = AcpiUtHexToAsciiChar ((UINT64) ClassCode[1], 0); OutString[4] = AcpiUtHexToAsciiChar ((UINT64) ClassCode[2], 4); OutString[5] = AcpiUtHexToAsciiChar ((UINT64) ClassCode[2], 0); OutString[6] = 0; } /******************************************************************************* * * FUNCTION: AcpiIsValidSpaceId * * PARAMETERS: SpaceId - ID to be validated * * RETURN: TRUE if SpaceId is a valid/supported ID. * * DESCRIPTION: Validate an operation region SpaceID. * ******************************************************************************/ BOOLEAN AcpiIsValidSpaceId ( UINT8 SpaceId) { if ((SpaceId >= ACPI_NUM_PREDEFINED_REGIONS) && (SpaceId < ACPI_USER_REGION_BEGIN) && (SpaceId != ACPI_ADR_SPACE_DATA_TABLE) && (SpaceId != ACPI_ADR_SPACE_FIXED_HARDWARE)) { return (FALSE); } return (TRUE); } acpica-unix-20250404/source/components/executer/exresop.c0000775000175000017500000005353014773714132022711 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exresop - AML Interpreter operand/object resolution * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acparser.h" #include "acinterp.h" #include "acnamesp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exresop") /* Local prototypes */ static ACPI_STATUS AcpiExCheckObjectType ( ACPI_OBJECT_TYPE TypeNeeded, ACPI_OBJECT_TYPE ThisType, void *Object); /******************************************************************************* * * FUNCTION: AcpiExCheckObjectType * * PARAMETERS: TypeNeeded Object type needed * ThisType Actual object type * Object Object pointer * * RETURN: Status * * DESCRIPTION: Check required type against actual type * ******************************************************************************/ static ACPI_STATUS AcpiExCheckObjectType ( ACPI_OBJECT_TYPE TypeNeeded, ACPI_OBJECT_TYPE ThisType, void *Object) { ACPI_FUNCTION_ENTRY (); if (TypeNeeded == ACPI_TYPE_ANY) { /* All types OK, so we don't perform any typechecks */ return (AE_OK); } if (TypeNeeded == ACPI_TYPE_LOCAL_REFERENCE) { /* * Allow the AML "Constant" opcodes (Zero, One, etc.) to be reference * objects and thus allow them to be targets. (As per the ACPI * specification, a store to a constant is a noop.) */ if ((ThisType == ACPI_TYPE_INTEGER) && (((ACPI_OPERAND_OBJECT *) Object)->Common.Flags & AOPOBJ_AML_CONSTANT)) { return (AE_OK); } } if (TypeNeeded != ThisType) { ACPI_ERROR ((AE_INFO, "Needed type [%s], found [%s] %p", AcpiUtGetTypeName (TypeNeeded), AcpiUtGetTypeName (ThisType), Object)); return (AE_AML_OPERAND_TYPE); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExResolveOperands * * PARAMETERS: Opcode - Opcode being interpreted * StackPtr - Pointer to the operand stack to be * resolved * WalkState - Current state * * RETURN: Status * * DESCRIPTION: Convert multiple input operands to the types required by the * target operator. * * Each 5-bit group in ArgTypes represents one required * operand and indicates the required Type. The corresponding operand * will be converted to the required type if possible, otherwise we * abort with an exception. * ******************************************************************************/ ACPI_STATUS AcpiExResolveOperands ( UINT16 Opcode, ACPI_OPERAND_OBJECT **StackPtr, ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status = AE_OK; UINT8 ObjectType; UINT32 ArgTypes; const ACPI_OPCODE_INFO *OpInfo; UINT32 ThisArgType; ACPI_OBJECT_TYPE TypeNeeded; UINT16 TargetOp = 0; ACPI_FUNCTION_TRACE_U32 (ExResolveOperands, Opcode); OpInfo = AcpiPsGetOpcodeInfo (Opcode); if (OpInfo->Class == AML_CLASS_UNKNOWN) { return_ACPI_STATUS (AE_AML_BAD_OPCODE); } ArgTypes = OpInfo->RuntimeArgs; if (ArgTypes == ARGI_INVALID_OPCODE) { ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", Opcode)); return_ACPI_STATUS (AE_AML_INTERNAL); } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Opcode %X [%s] RequiredOperandTypes=%8.8X\n", Opcode, OpInfo->Name, ArgTypes)); /* * Normal exit is with (ArgTypes == 0) at end of argument list. * Function will return an exception from within the loop upon * finding an entry which is not (or cannot be converted * to) the required type; if stack underflows; or upon * finding a NULL stack entry (which should not happen). */ while (GET_CURRENT_ARG_TYPE (ArgTypes)) { if (!StackPtr || !*StackPtr) { ACPI_ERROR ((AE_INFO, "Null stack entry at %p", StackPtr)); return_ACPI_STATUS (AE_AML_INTERNAL); } /* Extract useful items */ ObjDesc = *StackPtr; /* Decode the descriptor type */ switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc)) { case ACPI_DESC_TYPE_NAMED: /* Namespace Node */ ObjectType = ((ACPI_NAMESPACE_NODE *) ObjDesc)->Type; /* * Resolve an alias object. The construction of these objects * guarantees that there is only one level of alias indirection; * thus, the attached object is always the aliased namespace node */ if (ObjectType == ACPI_TYPE_LOCAL_ALIAS) { ObjDesc = AcpiNsGetAttachedObject ( (ACPI_NAMESPACE_NODE *) ObjDesc); *StackPtr = ObjDesc; ObjectType = ((ACPI_NAMESPACE_NODE *) ObjDesc)->Type; } break; case ACPI_DESC_TYPE_OPERAND: /* ACPI internal object */ ObjectType = ObjDesc->Common.Type; /* Check for bad ACPI_OBJECT_TYPE */ if (!AcpiUtValidObjectType (ObjectType)) { ACPI_ERROR ((AE_INFO, "Bad operand object type [0x%X]", ObjectType)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } if (ObjectType == (UINT8) ACPI_TYPE_LOCAL_REFERENCE) { /* Validate the Reference */ switch (ObjDesc->Reference.Class) { case ACPI_REFCLASS_DEBUG: TargetOp = AML_DEBUG_OP; ACPI_FALLTHROUGH; case ACPI_REFCLASS_ARG: case ACPI_REFCLASS_LOCAL: case ACPI_REFCLASS_INDEX: case ACPI_REFCLASS_REFOF: case ACPI_REFCLASS_TABLE: /* DdbHandle from LOAD_OP or LOAD_TABLE_OP */ case ACPI_REFCLASS_NAME: /* Reference to a named object */ ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Operand is a Reference, Class [%s] %2.2X\n", AcpiUtGetReferenceName (ObjDesc), ObjDesc->Reference.Class)); break; default: ACPI_ERROR ((AE_INFO, "Unknown Reference Class 0x%2.2X in %p", ObjDesc->Reference.Class, ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } } break; default: /* Invalid descriptor */ ACPI_ERROR ((AE_INFO, "Invalid descriptor %p [%s]", ObjDesc, AcpiUtGetDescriptorName (ObjDesc))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* Get one argument type, point to the next */ ThisArgType = GET_CURRENT_ARG_TYPE (ArgTypes); INCREMENT_ARG_LIST (ArgTypes); /* * Handle cases where the object does not need to be * resolved to a value */ switch (ThisArgType) { case ARGI_REF_OR_STRING: /* Can be a String or Reference */ if ((ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_OPERAND) && (ObjDesc->Common.Type == ACPI_TYPE_STRING)) { /* * String found - the string references a named object and * must be resolved to a node */ goto NextOperand; } /* * Else not a string - fall through to the normal Reference * case below */ ACPI_FALLTHROUGH; case ARGI_REFERENCE: /* References: */ case ARGI_INTEGER_REF: case ARGI_OBJECT_REF: case ARGI_DEVICE_REF: case ARGI_TARGETREF: /* Allows implicit conversion rules before store */ case ARGI_FIXED_TARGET: /* No implicit conversion before store to target */ case ARGI_SIMPLE_TARGET: /* Name, Local, or Arg - no implicit conversion */ case ARGI_STORE_TARGET: /* * Need an operand of type ACPI_TYPE_LOCAL_REFERENCE * A Namespace Node is OK as-is */ if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_NAMED) { goto NextOperand; } Status = AcpiExCheckObjectType ( ACPI_TYPE_LOCAL_REFERENCE, ObjectType, ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } goto NextOperand; case ARGI_DATAREFOBJ: /* Store operator only */ /* * We don't want to resolve IndexOp reference objects during * a store because this would be an implicit DeRefOf operation. * Instead, we just want to store the reference object. * -- All others must be resolved below. */ if ((Opcode == AML_STORE_OP) && ((*StackPtr)->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) && ((*StackPtr)->Reference.Class == ACPI_REFCLASS_INDEX)) { goto NextOperand; } break; default: /* All cases covered above */ break; } /* * Resolve this object to a value */ Status = AcpiExResolveToValue (StackPtr, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Get the resolved object */ ObjDesc = *StackPtr; /* * Check the resulting object (value) type */ switch (ThisArgType) { /* * For the simple cases, only one type of resolved object * is allowed */ case ARGI_MUTEX: /* Need an operand of type ACPI_TYPE_MUTEX */ TypeNeeded = ACPI_TYPE_MUTEX; break; case ARGI_EVENT: /* Need an operand of type ACPI_TYPE_EVENT */ TypeNeeded = ACPI_TYPE_EVENT; break; case ARGI_PACKAGE: /* Package */ /* Need an operand of type ACPI_TYPE_PACKAGE */ TypeNeeded = ACPI_TYPE_PACKAGE; break; case ARGI_ANYTYPE: /* Any operand type will do */ TypeNeeded = ACPI_TYPE_ANY; break; case ARGI_DDBHANDLE: /* Need an operand of type ACPI_TYPE_DDB_HANDLE */ TypeNeeded = ACPI_TYPE_LOCAL_REFERENCE; break; /* * The more complex cases allow multiple resolved object types */ case ARGI_INTEGER: /* * Need an operand of type ACPI_TYPE_INTEGER, but we can * implicitly convert from a STRING or BUFFER. * * Known as "Implicit Source Operand Conversion" */ Status = AcpiExConvertToInteger (ObjDesc, StackPtr, ACPI_IMPLICIT_CONVERSION); if (ACPI_FAILURE (Status)) { if (Status == AE_TYPE) { ACPI_ERROR ((AE_INFO, "Needed [Integer/String/Buffer], found [%s] %p", AcpiUtGetObjectTypeName (ObjDesc), ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } return_ACPI_STATUS (Status); } if (ObjDesc != *StackPtr) { AcpiUtRemoveReference (ObjDesc); } goto NextOperand; case ARGI_BUFFER: /* * Need an operand of type ACPI_TYPE_BUFFER, * But we can implicitly convert from a STRING or INTEGER * Aka - "Implicit Source Operand Conversion" */ Status = AcpiExConvertToBuffer (ObjDesc, StackPtr); if (ACPI_FAILURE (Status)) { if (Status == AE_TYPE) { ACPI_ERROR ((AE_INFO, "Needed [Integer/String/Buffer], found [%s] %p", AcpiUtGetObjectTypeName (ObjDesc), ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } return_ACPI_STATUS (Status); } if (ObjDesc != *StackPtr) { AcpiUtRemoveReference (ObjDesc); } goto NextOperand; case ARGI_STRING: /* * Need an operand of type ACPI_TYPE_STRING, * But we can implicitly convert from a BUFFER or INTEGER * Aka - "Implicit Source Operand Conversion" */ Status = AcpiExConvertToString ( ObjDesc, StackPtr, ACPI_IMPLICIT_CONVERT_HEX); if (ACPI_FAILURE (Status)) { if (Status == AE_TYPE) { ACPI_ERROR ((AE_INFO, "Needed [Integer/String/Buffer], found [%s] %p", AcpiUtGetObjectTypeName (ObjDesc), ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } return_ACPI_STATUS (Status); } if (ObjDesc != *StackPtr) { AcpiUtRemoveReference (ObjDesc); } goto NextOperand; case ARGI_COMPUTEDATA: /* Need an operand of type INTEGER, STRING or BUFFER */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* Valid operand */ break; default: ACPI_ERROR ((AE_INFO, "Needed [Integer/String/Buffer], found [%s] %p", AcpiUtGetObjectTypeName (ObjDesc), ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } goto NextOperand; case ARGI_BUFFER_OR_STRING: /* Need an operand of type STRING or BUFFER */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* Valid operand */ break; case ACPI_TYPE_INTEGER: /* Highest priority conversion is to type Buffer */ Status = AcpiExConvertToBuffer (ObjDesc, StackPtr); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (ObjDesc != *StackPtr) { AcpiUtRemoveReference (ObjDesc); } break; default: ACPI_ERROR ((AE_INFO, "Needed [Integer/String/Buffer], found [%s] %p", AcpiUtGetObjectTypeName (ObjDesc), ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } goto NextOperand; case ARGI_DATAOBJECT: /* * ARGI_DATAOBJECT is only used by the SizeOf operator. * Need a buffer, string, package, or RefOf reference. * * The only reference allowed here is a direct reference to * a namespace node. */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_PACKAGE: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: case ACPI_TYPE_LOCAL_REFERENCE: /* Valid operand */ break; default: ACPI_ERROR ((AE_INFO, "Needed [Buffer/String/Package/Reference], found [%s] %p", AcpiUtGetObjectTypeName (ObjDesc), ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } goto NextOperand; case ARGI_COMPLEXOBJ: /* Need a buffer or package or (ACPI 2.0) String */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_PACKAGE: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* Valid operand */ break; default: ACPI_ERROR ((AE_INFO, "Needed [Buffer/String/Package], found [%s] %p", AcpiUtGetObjectTypeName (ObjDesc), ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } goto NextOperand; case ARGI_REGION_OR_BUFFER: /* Used by Load() only */ /* * Need an operand of type REGION or a BUFFER * (which could be a resolved region field) */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_BUFFER: case ACPI_TYPE_REGION: /* Valid operand */ break; default: ACPI_ERROR ((AE_INFO, "Needed [Region/Buffer], found [%s] %p", AcpiUtGetObjectTypeName (ObjDesc), ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } goto NextOperand; case ARGI_DATAREFOBJ: /* Used by the Store() operator only */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_INTEGER: case ACPI_TYPE_PACKAGE: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_LOCAL_REFERENCE: case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: case ACPI_TYPE_DDB_HANDLE: /* Valid operand */ break; default: if (AcpiGbl_EnableInterpreterSlack) { /* * Enable original behavior of Store(), allowing any * and all objects as the source operand. The ACPI * spec does not allow this, however. */ break; } if (TargetOp == AML_DEBUG_OP) { /* Allow store of any object to the Debug object */ break; } ACPI_ERROR ((AE_INFO, "Needed Integer/Buffer/String/Package/Ref/Ddb]" ", found [%s] %p", AcpiUtGetObjectTypeName (ObjDesc), ObjDesc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } goto NextOperand; default: /* Unknown type */ ACPI_ERROR ((AE_INFO, "Internal - Unknown ARGI (required operand) type 0x%X", ThisArgType)); return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * Make sure that the original object was resolved to the * required object type (Simple cases only). */ Status = AcpiExCheckObjectType ( TypeNeeded, (*StackPtr)->Common.Type, *StackPtr); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } NextOperand: /* * If more operands needed, decrement StackPtr to point * to next operand on stack */ if (GET_CURRENT_ARG_TYPE (ArgTypes)) { StackPtr--; } } ACPI_DUMP_OPERANDS (WalkState->Operands, AcpiPsGetOpcodeName (Opcode), WalkState->NumOperands); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/excreate.c0000775000175000017500000003644414773714132023031 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: excreate - Named object creation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #include "acnamesp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("excreate") /******************************************************************************* * * FUNCTION: AcpiExCreateAlias * * PARAMETERS: WalkState - Current state, contains operands * * RETURN: Status * * DESCRIPTION: Create a new named alias * ******************************************************************************/ ACPI_STATUS AcpiExCreateAlias ( ACPI_WALK_STATE *WalkState) { ACPI_NAMESPACE_NODE *TargetNode; ACPI_NAMESPACE_NODE *AliasNode; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (ExCreateAlias); /* Get the source/alias operands (both namespace nodes) */ AliasNode = (ACPI_NAMESPACE_NODE *) WalkState->Operands[0]; TargetNode = (ACPI_NAMESPACE_NODE *) WalkState->Operands[1]; if ((TargetNode->Type == ACPI_TYPE_LOCAL_ALIAS) || (TargetNode->Type == ACPI_TYPE_LOCAL_METHOD_ALIAS)) { /* * Dereference an existing alias so that we don't create a chain * of aliases. With this code, we guarantee that an alias is * always exactly one level of indirection away from the * actual aliased name. */ TargetNode = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, TargetNode->Object); } /* Ensure that the target node is valid */ if (!TargetNode) { return_ACPI_STATUS (AE_NULL_OBJECT); } /* Construct the alias object (a namespace node) */ switch (TargetNode->Type) { case ACPI_TYPE_METHOD: /* * Control method aliases need to be differentiated with * a special type */ AliasNode->Type = ACPI_TYPE_LOCAL_METHOD_ALIAS; break; default: /* * All other object types. * * The new alias has the type ALIAS and points to the original * NS node, not the object itself. */ AliasNode->Type = ACPI_TYPE_LOCAL_ALIAS; AliasNode->Object = ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, TargetNode); break; } /* Since both operands are Nodes, we don't need to delete them */ AliasNode->Object = ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, TargetNode); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExCreateEvent * * PARAMETERS: WalkState - Current state * * RETURN: Status * * DESCRIPTION: Create a new event object * ******************************************************************************/ ACPI_STATUS AcpiExCreateEvent ( ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_TRACE (ExCreateEvent); ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_EVENT); if (!ObjDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* * Create the actual OS semaphore, with zero initial units -- meaning * that the event is created in an unsignalled state */ Status = AcpiOsCreateSemaphore (ACPI_NO_UNIT_LIMIT, 0, &ObjDesc->Event.OsSemaphore); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* Attach object to the Node */ Status = AcpiNsAttachObject ( (ACPI_NAMESPACE_NODE *) WalkState->Operands[0], ObjDesc, ACPI_TYPE_EVENT); Cleanup: /* * Remove local reference to the object (on error, will cause deletion * of both object and semaphore if present.) */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExCreateMutex * * PARAMETERS: WalkState - Current state * * RETURN: Status * * DESCRIPTION: Create a new mutex object * * Mutex (Name[0], SyncLevel[1]) * ******************************************************************************/ ACPI_STATUS AcpiExCreateMutex ( ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_TRACE_PTR (ExCreateMutex, ACPI_WALK_OPERANDS); /* Create the new mutex object */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_MUTEX); if (!ObjDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* Create the actual OS Mutex */ Status = AcpiOsCreateMutex (&ObjDesc->Mutex.OsMutex); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* Init object and attach to NS node */ ObjDesc->Mutex.SyncLevel = (UINT8) WalkState->Operands[1]->Integer.Value; ObjDesc->Mutex.Node = (ACPI_NAMESPACE_NODE *) WalkState->Operands[0]; Status = AcpiNsAttachObject ( ObjDesc->Mutex.Node, ObjDesc, ACPI_TYPE_MUTEX); Cleanup: /* * Remove local reference to the object (on error, will cause deletion * of both object and semaphore if present.) */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExCreateRegion * * PARAMETERS: AmlStart - Pointer to the region declaration AML * AmlLength - Max length of the declaration AML * SpaceId - Address space ID for the region * WalkState - Current state * * RETURN: Status * * DESCRIPTION: Create a new operation region object * ******************************************************************************/ ACPI_STATUS AcpiExCreateRegion ( UINT8 *AmlStart, UINT32 AmlLength, UINT8 SpaceId, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *RegionObj2; ACPI_FUNCTION_TRACE (ExCreateRegion); /* Get the Namespace Node */ Node = WalkState->Op->Common.Node; /* * If the region object is already attached to this node, * just return */ if (AcpiNsGetAttachedObject (Node)) { return_ACPI_STATUS (AE_OK); } /* * Space ID must be one of the predefined IDs, or in the user-defined * range */ if (!AcpiIsValidSpaceId (SpaceId)) { /* * Print an error message, but continue. We don't want to abort * a table load for this exception. Instead, if the region is * actually used at runtime, abort the executing method. */ ACPI_ERROR ((AE_INFO, "Invalid/unknown Address Space ID: 0x%2.2X", SpaceId)); } ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "Region Type - %s (0x%X)\n", AcpiUtGetRegionName (SpaceId), SpaceId)); /* Create the region descriptor */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_REGION); if (!ObjDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* * Remember location in AML stream of address & length * operands since they need to be evaluated at run time. */ RegionObj2 = AcpiNsGetSecondaryObject (ObjDesc); RegionObj2->Extra.AmlStart = AmlStart; RegionObj2->Extra.AmlLength = AmlLength; RegionObj2->Extra.Method_REG = NULL; if (WalkState->ScopeInfo) { RegionObj2->Extra.ScopeNode = WalkState->ScopeInfo->Scope.Node; } else { RegionObj2->Extra.ScopeNode = Node; } /* Init the region from the operands */ ObjDesc->Region.SpaceId = SpaceId; ObjDesc->Region.Address = 0; ObjDesc->Region.Length = 0; ObjDesc->Region.Pointer = NULL; ObjDesc->Region.Node = Node; ObjDesc->Region.Handler = NULL; ObjDesc->Common.Flags &= ~(AOPOBJ_SETUP_COMPLETE | AOPOBJ_REG_CONNECTED | AOPOBJ_OBJECT_INITIALIZED); /* Install the new region object in the parent Node */ Status = AcpiNsAttachObject (Node, ObjDesc, ACPI_TYPE_REGION); Cleanup: /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExCreateProcessor * * PARAMETERS: WalkState - Current state * * RETURN: Status * * DESCRIPTION: Create a new processor object and populate the fields * * Processor (Name[0], CpuID[1], PblockAddr[2], PblockLength[3]) * ******************************************************************************/ ACPI_STATUS AcpiExCreateProcessor ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (ExCreateProcessor, WalkState); /* Create the processor object */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_PROCESSOR); if (!ObjDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Initialize the processor object from the operands */ ObjDesc->Processor.ProcId = (UINT8) Operand[1]->Integer.Value; ObjDesc->Processor.Length = (UINT8) Operand[3]->Integer.Value; ObjDesc->Processor.Address = (ACPI_IO_ADDRESS) Operand[2]->Integer.Value; /* Install the processor object in the parent Node */ Status = AcpiNsAttachObject ((ACPI_NAMESPACE_NODE *) Operand[0], ObjDesc, ACPI_TYPE_PROCESSOR); /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExCreatePowerResource * * PARAMETERS: WalkState - Current state * * RETURN: Status * * DESCRIPTION: Create a new PowerResource object and populate the fields * * PowerResource (Name[0], SystemLevel[1], ResourceOrder[2]) * ******************************************************************************/ ACPI_STATUS AcpiExCreatePowerResource ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_TRACE_PTR (ExCreatePowerResource, WalkState); /* Create the power resource object */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_POWER); if (!ObjDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Initialize the power object from the operands */ ObjDesc->PowerResource.SystemLevel = (UINT8) Operand[1]->Integer.Value; ObjDesc->PowerResource.ResourceOrder = (UINT16) Operand[2]->Integer.Value; /* Install the power resource object in the parent Node */ Status = AcpiNsAttachObject ((ACPI_NAMESPACE_NODE *) Operand[0], ObjDesc, ACPI_TYPE_POWER); /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExCreateMethod * * PARAMETERS: AmlStart - First byte of the method's AML * AmlLength - AML byte count for this method * WalkState - Current state * * RETURN: Status * * DESCRIPTION: Create a new method object * ******************************************************************************/ ACPI_STATUS AcpiExCreateMethod ( UINT8 *AmlStart, UINT32 AmlLength, ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; UINT8 MethodFlags; ACPI_FUNCTION_TRACE_PTR (ExCreateMethod, WalkState); /* Create a new method object */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_METHOD); if (!ObjDesc) { Status = AE_NO_MEMORY; goto Exit; } /* Save the method's AML pointer and length */ ObjDesc->Method.AmlStart = AmlStart; ObjDesc->Method.AmlLength = AmlLength; ObjDesc->Method.Node = Operand[0]; /* * Disassemble the method flags. Split off the ArgCount, Serialized * flag, and SyncLevel for efficiency. */ MethodFlags = (UINT8) Operand[1]->Integer.Value; ObjDesc->Method.ParamCount = (UINT8) (MethodFlags & AML_METHOD_ARG_COUNT); /* * Get the SyncLevel. If method is serialized, a mutex will be * created for this method when it is parsed. */ if (MethodFlags & AML_METHOD_SERIALIZED) { ObjDesc->Method.InfoFlags = ACPI_METHOD_SERIALIZED; /* * ACPI 1.0: SyncLevel = 0 * ACPI 2.0: SyncLevel = SyncLevel in method declaration */ ObjDesc->Method.SyncLevel = (UINT8) ((MethodFlags & AML_METHOD_SYNC_LEVEL) >> 4); } /* Attach the new object to the method Node */ Status = AcpiNsAttachObject ((ACPI_NAMESPACE_NODE *) Operand[0], ObjDesc, ACPI_TYPE_METHOD); /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); Exit: /* Remove a reference to the operand */ AcpiUtRemoveReference (Operand[1]); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exconfig.c0000775000175000017500000004533014773714132023025 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exconfig - Namespace reconfiguration (Load/Unload opcodes) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "acnamesp.h" #include "actables.h" #include "acdispat.h" #include "acevents.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exconfig") /* Local prototypes */ static ACPI_STATUS AcpiExAddTable ( UINT32 TableIndex, ACPI_OPERAND_OBJECT **DdbHandle); static ACPI_STATUS AcpiExRegionRead ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 Length, UINT8 *Buffer); /******************************************************************************* * * FUNCTION: AcpiExAddTable * * PARAMETERS: Table - Pointer to raw table * ParentNode - Where to load the table (scope) * DdbHandle - Where to return the table handle. * * RETURN: Status * * DESCRIPTION: Common function to Install and Load an ACPI table with a * returned table handle. * ******************************************************************************/ static ACPI_STATUS AcpiExAddTable ( UINT32 TableIndex, ACPI_OPERAND_OBJECT **DdbHandle) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_TRACE (ExAddTable); /* Create an object to be the table handle */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_LOCAL_REFERENCE); if (!ObjDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Init the table handle */ ObjDesc->Common.Flags |= AOPOBJ_DATA_VALID; ObjDesc->Reference.Class = ACPI_REFCLASS_TABLE; ObjDesc->Reference.Value = TableIndex; *DdbHandle = ObjDesc; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExLoadTableOp * * PARAMETERS: WalkState - Current state with operands * ReturnDesc - Where to store the return object * * RETURN: Status * * DESCRIPTION: Load an ACPI table from the RSDT/XSDT * ******************************************************************************/ ACPI_STATUS AcpiExLoadTableOp ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT **ReturnDesc) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_NAMESPACE_NODE *ParentNode; ACPI_NAMESPACE_NODE *StartNode; ACPI_NAMESPACE_NODE *ParameterNode = NULL; ACPI_OPERAND_OBJECT *ReturnObj; ACPI_OPERAND_OBJECT *DdbHandle; UINT32 TableIndex; ACPI_FUNCTION_TRACE (ExLoadTableOp); /* Create the return object */ ReturnObj = AcpiUtCreateIntegerObject ((UINT64) 0); if (!ReturnObj) { return_ACPI_STATUS (AE_NO_MEMORY); } *ReturnDesc = ReturnObj; /* Find the ACPI table in the RSDT/XSDT */ AcpiExExitInterpreter (); Status = AcpiTbFindTable ( Operand[0]->String.Pointer, Operand[1]->String.Pointer, Operand[2]->String.Pointer, &TableIndex); AcpiExEnterInterpreter (); if (ACPI_FAILURE (Status)) { if (Status != AE_NOT_FOUND) { return_ACPI_STATUS (Status); } /* Table not found, return an Integer=0 and AE_OK */ return_ACPI_STATUS (AE_OK); } /* Default nodes */ StartNode = WalkState->ScopeInfo->Scope.Node; ParentNode = AcpiGbl_RootNode; /* RootPath (optional parameter) */ if (Operand[3]->String.Length > 0) { /* * Find the node referenced by the RootPathString. This is the * location within the namespace where the table will be loaded. */ Status = AcpiNsGetNodeUnlocked (StartNode, Operand[3]->String.Pointer, ACPI_NS_SEARCH_PARENT, &ParentNode); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* ParameterPath (optional parameter) */ if (Operand[4]->String.Length > 0) { if ((Operand[4]->String.Pointer[0] != AML_ROOT_PREFIX) && (Operand[4]->String.Pointer[0] != AML_PARENT_PREFIX)) { /* * Path is not absolute, so it will be relative to the node * referenced by the RootPathString (or the NS root if omitted) */ StartNode = ParentNode; } /* Find the node referenced by the ParameterPathString */ Status = AcpiNsGetNodeUnlocked (StartNode, Operand[4]->String.Pointer, ACPI_NS_SEARCH_PARENT, &ParameterNode); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* Load the table into the namespace */ ACPI_INFO (("Dynamic OEM Table Load:")); AcpiExExitInterpreter (); Status = AcpiTbLoadTable (TableIndex, ParentNode); AcpiExEnterInterpreter (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiExAddTable (TableIndex, &DdbHandle); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Complete the initialization/resolution of new objects */ AcpiExExitInterpreter(); AcpiNsInitializeObjects(); AcpiExEnterInterpreter(); /* Parameter Data (optional) */ if (ParameterNode) { /* Store the parameter data into the optional parameter object */ Status = AcpiExStore (Operand[5], ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, ParameterNode), WalkState); if (ACPI_FAILURE (Status)) { (void) AcpiExUnloadTable (DdbHandle); AcpiUtRemoveReference (DdbHandle); return_ACPI_STATUS (Status); } } /* Remove the reference to DdbHandle created by AcpiExAddTable above */ AcpiUtRemoveReference (DdbHandle); /* Return -1 (non-zero) indicates success */ ReturnObj->Integer.Value = 0xFFFFFFFFFFFFFFFF; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExRegionRead * * PARAMETERS: ObjDesc - Region descriptor * Length - Number of bytes to read * Buffer - Pointer to where to put the data * * RETURN: Status * * DESCRIPTION: Read data from an operation region. The read starts from the * beginning of the region. * ******************************************************************************/ static ACPI_STATUS AcpiExRegionRead ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 Length, UINT8 *Buffer) { ACPI_STATUS Status; UINT64 Value; UINT32 RegionOffset = 0; UINT32 i; /* Bytewise reads */ for (i = 0; i < Length; i++) { Status = AcpiEvAddressSpaceDispatch (ObjDesc, NULL, ACPI_READ, RegionOffset, 8, &Value); if (ACPI_FAILURE (Status)) { return (Status); } *Buffer = (UINT8) Value; Buffer++; RegionOffset++; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExLoadOp * * PARAMETERS: ObjDesc - Region or Buffer/Field where the table will be * obtained * Target - Where the status of the load will be stored * WalkState - Current state * * RETURN: Status * * DESCRIPTION: Load an ACPI table from a field or operation region * * NOTE: Region Fields (Field, BankField, IndexFields) are resolved to buffer * objects before this code is reached. * * If source is an operation region, it must refer to SystemMemory, as * per the ACPI specification. * ******************************************************************************/ ACPI_STATUS AcpiExLoadOp ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT *Target, ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT *DdbHandle; ACPI_TABLE_HEADER *TableHeader; ACPI_TABLE_HEADER *Table; UINT32 TableIndex; ACPI_STATUS Status; UINT32 Length; ACPI_FUNCTION_TRACE (ExLoadOp); if (Target->Common.DescriptorType == ACPI_DESC_TYPE_NAMED) { Target = AcpiNsGetAttachedObject (ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Target)); } if (Target->Common.Type != ACPI_TYPE_INTEGER) { ACPI_ERROR ((AE_INFO, "Type not integer: %X", Target->Common.Type)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } Target->Integer.Value = 0; /* Source Object can be either an OpRegion or a Buffer/Field */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_REGION: ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Load table from Region %p\n", ObjDesc)); /* Region must be SystemMemory (from ACPI spec) */ if (ObjDesc->Region.SpaceId != ACPI_ADR_SPACE_SYSTEM_MEMORY) { return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* * If the Region Address and Length have not been previously * evaluated, evaluate them now and save the results. */ if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID)) { Status = AcpiDsGetRegionArguments (ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* Get the table header first so we can get the table length */ TableHeader = ACPI_ALLOCATE (sizeof (ACPI_TABLE_HEADER)); if (!TableHeader) { return_ACPI_STATUS (AE_NO_MEMORY); } Status = AcpiExRegionRead (ObjDesc, sizeof (ACPI_TABLE_HEADER), ACPI_CAST_PTR (UINT8, TableHeader)); Length = TableHeader->Length; ACPI_FREE (TableHeader); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Must have at least an ACPI table header */ if (Length < sizeof (ACPI_TABLE_HEADER)) { return_ACPI_STATUS (AE_INVALID_TABLE_LENGTH); } /* * The original implementation simply mapped the table, with no copy. * However, the memory region is not guaranteed to remain stable and * we must copy the table to a local buffer. For example, the memory * region is corrupted after suspend on some machines. Dynamically * loaded tables are usually small, so this overhead is minimal. * * The latest implementation (5/2009) does not use a mapping at all. * We use the low-level operation region interface to read the table * instead of the obvious optimization of using a direct mapping. * This maintains a consistent use of operation regions across the * entire subsystem. This is important if additional processing must * be performed in the (possibly user-installed) operation region * handler. For example, AcpiExec and ASLTS depend on this. */ /* Allocate a buffer for the table */ Table = ACPI_ALLOCATE (Length); if (!Table) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Read the entire table */ Status = AcpiExRegionRead (ObjDesc, Length, ACPI_CAST_PTR (UINT8, Table)); if (ACPI_FAILURE (Status)) { ACPI_FREE (Table); return_ACPI_STATUS (Status); } break; case ACPI_TYPE_BUFFER: /* Buffer or resolved RegionField */ ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Load table from Buffer or Field %p\n", ObjDesc)); /* Must have at least an ACPI table header */ if (ObjDesc->Buffer.Length < sizeof (ACPI_TABLE_HEADER)) { return_ACPI_STATUS (AE_INVALID_TABLE_LENGTH); } /* Get the actual table length from the table header */ TableHeader = ACPI_CAST_PTR ( ACPI_TABLE_HEADER, ObjDesc->Buffer.Pointer); Length = TableHeader->Length; /* Table cannot extend beyond the buffer */ if (Length > ObjDesc->Buffer.Length) { return_ACPI_STATUS (AE_AML_BUFFER_LIMIT); } if (Length < sizeof (ACPI_TABLE_HEADER)) { return_ACPI_STATUS (AE_INVALID_TABLE_LENGTH); } /* * Copy the table from the buffer because the buffer could be * modified or even deleted in the future */ Table = ACPI_ALLOCATE (Length); if (!Table) { return_ACPI_STATUS (AE_NO_MEMORY); } memcpy (Table, TableHeader, Length); break; default: return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* Install the new table into the local data structures */ ACPI_INFO (("Dynamic OEM Table Load:")); AcpiExExitInterpreter (); Status = AcpiTbInstallAndLoadTable (ACPI_PTR_TO_PHYSADDR (Table), ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL, Table, TRUE, &TableIndex); AcpiExEnterInterpreter (); if (ACPI_FAILURE (Status)) { /* Delete allocated table buffer */ ACPI_FREE (Table); return_ACPI_STATUS (Status); } /* * Add the table to the namespace. * * Note: Load the table objects relative to the root of the namespace. * This appears to go against the ACPI specification, but we do it for * compatibility with other ACPI implementations. */ Status = AcpiExAddTable (TableIndex, &DdbHandle); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Complete the initialization/resolution of new objects */ AcpiExExitInterpreter (); AcpiNsInitializeObjects (); AcpiExEnterInterpreter (); /* Remove the reference to DdbHandle created by AcpiExAddTable above */ AcpiUtRemoveReference (DdbHandle); /* Return -1 (non-zero) indicates success */ Target->Integer.Value = 0xFFFFFFFFFFFFFFFF; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExUnloadTable * * PARAMETERS: DdbHandle - Handle to a previously loaded table * * RETURN: Status * * DESCRIPTION: Unload an ACPI table * ******************************************************************************/ ACPI_STATUS AcpiExUnloadTable ( ACPI_OPERAND_OBJECT *DdbHandle) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *TableDesc = DdbHandle; UINT32 TableIndex; ACPI_FUNCTION_TRACE (ExUnloadTable); /* * Temporarily emit a warning so that the ASL for the machine can be * hopefully obtained. This is to say that the Unload() operator is * extremely rare if not completely unused. */ ACPI_WARNING ((AE_INFO, "Received request to unload an ACPI table")); /* * May 2018: Unload is no longer supported for the following reasons: * 1) A correct implementation on some hosts may not be possible. * 2) Other ACPI implementations do not correctly/fully support it. * 3) It requires host device driver support which does not exist. * (To properly support namespace unload out from underneath.) * 4) This AML operator has never been seen in the field. */ ACPI_EXCEPTION ((AE_INFO, AE_NOT_IMPLEMENTED, "AML Unload operator is not supported")); /* * Validate the handle * Although the handle is partially validated in AcpiExReconfiguration() * when it calls AcpiExResolveOperands(), the handle is more completely * validated here. * * Handle must be a valid operand object of type reference. Also, the * DdbHandle must still be marked valid (table has not been previously * unloaded) */ if ((!DdbHandle) || (ACPI_GET_DESCRIPTOR_TYPE (DdbHandle) != ACPI_DESC_TYPE_OPERAND) || (DdbHandle->Common.Type != ACPI_TYPE_LOCAL_REFERENCE) || (!(DdbHandle->Common.Flags & AOPOBJ_DATA_VALID))) { return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* Get the table index from the DdbHandle */ TableIndex = TableDesc->Reference.Value; /* * Release the interpreter lock so that the table lock won't have * strict order requirement against it. */ AcpiExExitInterpreter (); Status = AcpiTbUnloadTable (TableIndex); AcpiExEnterInterpreter (); /* * Invalidate the handle. We do this because the handle may be stored * in a named object and may not be actually deleted until much later. */ if (ACPI_SUCCESS (Status)) { DdbHandle->Common.Flags &= ~AOPOBJ_DATA_VALID; } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exoparg6.c0000775000175000017500000002552014773714132022755 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exoparg6 - AML execution - opcodes with 6 arguments * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "acparser.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exoparg6") /*! * Naming convention for AML interpreter execution routines. * * The routines that begin execution of AML opcodes are named with a common * convention based upon the number of arguments, the number of target operands, * and whether or not a value is returned: * * AcpiExOpcode_xA_yT_zR * * Where: * * xA - ARGUMENTS: The number of arguments (input operands) that are * required for this opcode type (1 through 6 args). * yT - TARGETS: The number of targets (output operands) that are required * for this opcode type (0, 1, or 2 targets). * zR - RETURN VALUE: Indicates whether this opcode type returns a value * as the function return (0 or 1). * * The AcpiExOpcode* functions are called via the Dispatcher component with * fully resolved operands. !*/ /* Local prototypes */ static BOOLEAN AcpiExDoMatch ( UINT32 MatchOp, ACPI_OPERAND_OBJECT *PackageObj, ACPI_OPERAND_OBJECT *MatchObj); /******************************************************************************* * * FUNCTION: AcpiExDoMatch * * PARAMETERS: MatchOp - The AML match operand * PackageObj - Object from the target package * MatchObj - Object to be matched * * RETURN: TRUE if the match is successful, FALSE otherwise * * DESCRIPTION: Implements the low-level match for the ASL Match operator. * Package elements will be implicitly converted to the type of * the match object (Integer/Buffer/String). * ******************************************************************************/ static BOOLEAN AcpiExDoMatch ( UINT32 MatchOp, ACPI_OPERAND_OBJECT *PackageObj, ACPI_OPERAND_OBJECT *MatchObj) { BOOLEAN LogicalResult = TRUE; ACPI_STATUS Status; /* * Note: Since the PackageObj/MatchObj ordering is opposite to that of * the standard logical operators, we have to reverse them when we call * DoLogicalOp in order to make the implicit conversion rules work * correctly. However, this means we have to flip the entire equation * also. A bit ugly perhaps, but overall, better than fussing the * parameters around at runtime, over and over again. * * Below, P[i] refers to the package element, M refers to the Match object. */ switch (MatchOp) { case MATCH_MTR: /* Always true */ break; case MATCH_MEQ: /* * True if equal: (P[i] == M) * Change to: (M == P[i]) */ Status = AcpiExDoLogicalOp ( AML_LOGICAL_EQUAL_OP, MatchObj, PackageObj, &LogicalResult); if (ACPI_FAILURE (Status)) { return (FALSE); } break; case MATCH_MLE: /* * True if less than or equal: (P[i] <= M) (P[i] NotGreater than M) * Change to: (M >= P[i]) (M NotLess than P[i]) */ Status = AcpiExDoLogicalOp ( AML_LOGICAL_LESS_OP, MatchObj, PackageObj, &LogicalResult); if (ACPI_FAILURE (Status)) { return (FALSE); } LogicalResult = (BOOLEAN) !LogicalResult; break; case MATCH_MLT: /* * True if less than: (P[i] < M) * Change to: (M > P[i]) */ Status = AcpiExDoLogicalOp ( AML_LOGICAL_GREATER_OP, MatchObj, PackageObj, &LogicalResult); if (ACPI_FAILURE (Status)) { return (FALSE); } break; case MATCH_MGE: /* * True if greater than or equal: (P[i] >= M) (P[i] NotLess than M) * Change to: (M <= P[i]) (M NotGreater than P[i]) */ Status = AcpiExDoLogicalOp ( AML_LOGICAL_GREATER_OP, MatchObj, PackageObj, &LogicalResult); if (ACPI_FAILURE (Status)) { return (FALSE); } LogicalResult = (BOOLEAN)!LogicalResult; break; case MATCH_MGT: /* * True if greater than: (P[i] > M) * Change to: (M < P[i]) */ Status = AcpiExDoLogicalOp ( AML_LOGICAL_LESS_OP, MatchObj, PackageObj, &LogicalResult); if (ACPI_FAILURE (Status)) { return (FALSE); } break; default: /* Undefined */ return (FALSE); } return (LogicalResult); } /******************************************************************************* * * FUNCTION: AcpiExOpcode_6A_0T_1R * * PARAMETERS: WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Execute opcode with 6 arguments, no target, and a return value * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_6A_0T_1R ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc = NULL; ACPI_STATUS Status = AE_OK; UINT64 Index; ACPI_OPERAND_OBJECT *ThisElement; ACPI_FUNCTION_TRACE_STR (ExOpcode_6A_0T_1R, AcpiPsGetOpcodeName (WalkState->Opcode)); switch (WalkState->Opcode) { case AML_MATCH_OP: /* * Match (SearchPkg[0], MatchOp1[1], MatchObj1[2], * MatchOp2[3], MatchObj2[4], StartIndex[5]) */ /* Validate both Match Term Operators (MTR, MEQ, etc.) */ if ((Operand[1]->Integer.Value > MAX_MATCH_OPERATOR) || (Operand[3]->Integer.Value > MAX_MATCH_OPERATOR)) { ACPI_ERROR ((AE_INFO, "Match operator out of range")); Status = AE_AML_OPERAND_VALUE; goto Cleanup; } /* Get the package StartIndex, validate against the package length */ Index = Operand[5]->Integer.Value; if (Index >= Operand[0]->Package.Count) { ACPI_ERROR ((AE_INFO, "Index (0x%8.8X%8.8X) beyond package end (0x%X)", ACPI_FORMAT_UINT64 (Index), Operand[0]->Package.Count)); Status = AE_AML_PACKAGE_LIMIT; goto Cleanup; } /* Create an integer for the return value */ /* Default return value is ACPI_UINT64_MAX if no match found */ ReturnDesc = AcpiUtCreateIntegerObject (ACPI_UINT64_MAX); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* * Examine each element until a match is found. Both match conditions * must be satisfied for a match to occur. Within the loop, * "continue" signifies that the current element does not match * and the next should be examined. * * Upon finding a match, the loop will terminate via "break" at * the bottom. If it terminates "normally", MatchValue will be * ACPI_UINT64_MAX (Ones) (its initial value) indicating that no * match was found. */ for ( ; Index < Operand[0]->Package.Count; Index++) { /* Get the current package element */ ThisElement = Operand[0]->Package.Elements[Index]; /* Treat any uninitialized (NULL) elements as non-matching */ if (!ThisElement) { continue; } /* * Both match conditions must be satisfied. Execution of a continue * (proceed to next iteration of enclosing for loop) signifies a * non-match. */ if (!AcpiExDoMatch ((UINT32) Operand[1]->Integer.Value, ThisElement, Operand[2])) { continue; } if (!AcpiExDoMatch ((UINT32) Operand[3]->Integer.Value, ThisElement, Operand[4])) { continue; } /* Match found: Index is the return value */ ReturnDesc->Integer.Value = Index; break; } break; case AML_LOAD_TABLE_OP: Status = AcpiExLoadTableOp (WalkState, &ReturnDesc); break; default: ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; goto Cleanup; } Cleanup: /* Delete return object on error */ if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ReturnDesc); } /* Save return object on success */ else { WalkState->ResultObj = ReturnDesc; } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exprep.c0000775000175000017500000005344314773714132022532 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exprep - ACPI AML field prep utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #include "acnamesp.h" #include "acdispat.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exprep") /* Local prototypes */ static UINT32 AcpiExDecodeFieldAccess ( ACPI_OPERAND_OBJECT *ObjDesc, UINT8 FieldFlags, UINT32 *ReturnByteAlignment); #ifdef ACPI_UNDER_DEVELOPMENT static UINT32 AcpiExGenerateAccess ( UINT32 FieldBitOffset, UINT32 FieldBitLength, UINT32 RegionLength); /******************************************************************************* * * FUNCTION: AcpiExGenerateAccess * * PARAMETERS: FieldBitOffset - Start of field within parent region/buffer * FieldBitLength - Length of field in bits * RegionLength - Length of parent in bytes * * RETURN: Field granularity (8, 16, 32 or 64) and * ByteAlignment (1, 2, 3, or 4) * * DESCRIPTION: Generate an optimal access width for fields defined with the * AnyAcc keyword. * * NOTE: Need to have the RegionLength in order to check for boundary * conditions (end-of-region). However, the RegionLength is a deferred * operation. Therefore, to complete this implementation, the generation * of this access width must be deferred until the region length has * been evaluated. * ******************************************************************************/ static UINT32 AcpiExGenerateAccess ( UINT32 FieldBitOffset, UINT32 FieldBitLength, UINT32 RegionLength) { UINT32 FieldByteLength; UINT32 FieldByteOffset; UINT32 FieldByteEndOffset; UINT32 AccessByteWidth; UINT32 FieldStartOffset; UINT32 FieldEndOffset; UINT32 MinimumAccessWidth = 0xFFFFFFFF; UINT32 MinimumAccesses = 0xFFFFFFFF; UINT32 Accesses; ACPI_FUNCTION_TRACE (ExGenerateAccess); /* Round Field start offset and length to "minimal" byte boundaries */ FieldByteOffset = ACPI_DIV_8 ( ACPI_ROUND_DOWN (FieldBitOffset, 8)); FieldByteEndOffset = ACPI_DIV_8 ( ACPI_ROUND_UP (FieldBitLength + FieldBitOffset, 8)); FieldByteLength = FieldByteEndOffset - FieldByteOffset; ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Bit length %u, Bit offset %u\n", FieldBitLength, FieldBitOffset)); ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Byte Length %u, Byte Offset %u, End Offset %u\n", FieldByteLength, FieldByteOffset, FieldByteEndOffset)); /* * Iterative search for the maximum access width that is both aligned * and does not go beyond the end of the region * * Start at ByteAcc and work upwards to QwordAcc max. (1,2,4,8 bytes) */ for (AccessByteWidth = 1; AccessByteWidth <= 8; AccessByteWidth <<= 1) { /* * 1) Round end offset up to next access boundary and make sure that * this does not go beyond the end of the parent region. * 2) When the Access width is greater than the FieldByteLength, we * are done. (This does not optimize for the perfectly aligned * case yet). */ if (ACPI_ROUND_UP (FieldByteEndOffset, AccessByteWidth) <= RegionLength) { FieldStartOffset = ACPI_ROUND_DOWN (FieldByteOffset, AccessByteWidth) / AccessByteWidth; FieldEndOffset = ACPI_ROUND_UP ((FieldByteLength + FieldByteOffset), AccessByteWidth) / AccessByteWidth; Accesses = FieldEndOffset - FieldStartOffset; ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "AccessWidth %u end is within region\n", AccessByteWidth)); ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Field Start %u, Field End %u -- requires %u accesses\n", FieldStartOffset, FieldEndOffset, Accesses)); /* Single access is optimal */ if (Accesses <= 1) { ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Entire field can be accessed " "with one operation of size %u\n", AccessByteWidth)); return_VALUE (AccessByteWidth); } /* * Fits in the region, but requires more than one read/write. * try the next wider access on next iteration */ if (Accesses < MinimumAccesses) { MinimumAccesses = Accesses; MinimumAccessWidth = AccessByteWidth; } } else { ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "AccessWidth %u end is NOT within region\n", AccessByteWidth)); if (AccessByteWidth == 1) { ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Field goes beyond end-of-region!\n")); /* Field does not fit in the region at all */ return_VALUE (0); } /* * This width goes beyond the end-of-region, back off to * previous access */ ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Backing off to previous optimal access width of %u\n", MinimumAccessWidth)); return_VALUE (MinimumAccessWidth); } } /* * Could not read/write field with one operation, * just use max access width */ ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Cannot access field in one operation, using width 8\n")); return_VALUE (8); } #endif /* ACPI_UNDER_DEVELOPMENT */ /******************************************************************************* * * FUNCTION: AcpiExDecodeFieldAccess * * PARAMETERS: ObjDesc - Field object * FieldFlags - Encoded fieldflags (contains access bits) * ReturnByteAlignment - Where the byte alignment is returned * * RETURN: Field granularity (8, 16, 32 or 64) and * ByteAlignment (1, 2, 3, or 4) * * DESCRIPTION: Decode the AccessType bits of a field definition. * ******************************************************************************/ static UINT32 AcpiExDecodeFieldAccess ( ACPI_OPERAND_OBJECT *ObjDesc, UINT8 FieldFlags, UINT32 *ReturnByteAlignment) { UINT32 Access; UINT32 ByteAlignment; UINT32 BitLength; ACPI_FUNCTION_TRACE (ExDecodeFieldAccess); Access = (FieldFlags & AML_FIELD_ACCESS_TYPE_MASK); switch (Access) { case AML_FIELD_ACCESS_ANY: #ifdef ACPI_UNDER_DEVELOPMENT ByteAlignment = AcpiExGenerateAccess (ObjDesc->CommonField.StartFieldBitOffset, ObjDesc->CommonField.BitLength, 0xFFFFFFFF /* Temp until we pass RegionLength as parameter */); BitLength = ByteAlignment * 8; #endif ByteAlignment = 1; BitLength = 8; break; case AML_FIELD_ACCESS_BYTE: case AML_FIELD_ACCESS_BUFFER: /* ACPI 2.0 (SMBus Buffer) */ ByteAlignment = 1; BitLength = 8; break; case AML_FIELD_ACCESS_WORD: ByteAlignment = 2; BitLength = 16; break; case AML_FIELD_ACCESS_DWORD: ByteAlignment = 4; BitLength = 32; break; case AML_FIELD_ACCESS_QWORD: /* ACPI 2.0 */ ByteAlignment = 8; BitLength = 64; break; default: /* Invalid field access type */ ACPI_ERROR ((AE_INFO, "Unknown field access type 0x%X", Access)); return_UINT32 (0); } if (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD) { /* * BufferField access can be on any byte boundary, so the * ByteAlignment is always 1 byte -- regardless of any ByteAlignment * implied by the field access type. */ ByteAlignment = 1; } *ReturnByteAlignment = ByteAlignment; return_UINT32 (BitLength); } /******************************************************************************* * * FUNCTION: AcpiExPrepCommonFieldObject * * PARAMETERS: ObjDesc - The field object * FieldFlags - Access, LockRule, and UpdateRule. * The format of a FieldFlag is described * in the ACPI specification * FieldAttribute - Special attributes (not used) * FieldBitPosition - Field start position * FieldBitLength - Field length in number of bits * * RETURN: Status * * DESCRIPTION: Initialize the areas of the field object that are common * to the various types of fields. Note: This is very "sensitive" * code because we are solving the general case for field * alignment. * ******************************************************************************/ ACPI_STATUS AcpiExPrepCommonFieldObject ( ACPI_OPERAND_OBJECT *ObjDesc, UINT8 FieldFlags, UINT8 FieldAttribute, UINT32 FieldBitPosition, UINT32 FieldBitLength) { UINT32 AccessBitWidth; UINT32 ByteAlignment; UINT32 NearestByteAddress; ACPI_FUNCTION_TRACE (ExPrepCommonFieldObject); /* * Note: the structure being initialized is the * ACPI_COMMON_FIELD_INFO; No structure fields outside of the common * area are initialized by this procedure. */ ObjDesc->CommonField.FieldFlags = FieldFlags; ObjDesc->CommonField.Attribute = FieldAttribute; ObjDesc->CommonField.BitLength = FieldBitLength; /* * Decode the access type so we can compute offsets. The access type gives * two pieces of information - the width of each field access and the * necessary ByteAlignment (address granularity) of the access. * * For AnyAcc, the AccessBitWidth is the largest width that is both * necessary and possible in an attempt to access the whole field in one * I/O operation. However, for AnyAcc, the ByteAlignment is always one * byte. * * For all Buffer Fields, the ByteAlignment is always one byte. * * For all other access types (Byte, Word, Dword, Qword), the Bitwidth is * the same (equivalent) as the ByteAlignment. */ AccessBitWidth = AcpiExDecodeFieldAccess ( ObjDesc, FieldFlags, &ByteAlignment); if (!AccessBitWidth) { return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } /* Setup width (access granularity) fields (values are: 1, 2, 4, 8) */ ObjDesc->CommonField.AccessByteWidth = (UINT8) ACPI_DIV_8 (AccessBitWidth); /* * BaseByteOffset is the address of the start of the field within the * region. It is the byte address of the first *datum* (field-width data * unit) of the field. (i.e., the first datum that contains at least the * first *bit* of the field.) * * Note: ByteAlignment is always either equal to the AccessBitWidth or 8 * (Byte access), and it defines the addressing granularity of the parent * region or buffer. */ NearestByteAddress = ACPI_ROUND_BITS_DOWN_TO_BYTES (FieldBitPosition); ObjDesc->CommonField.BaseByteOffset = (UINT32) ACPI_ROUND_DOWN (NearestByteAddress, ByteAlignment); /* * StartFieldBitOffset is the offset of the first bit of the field within * a field datum. */ ObjDesc->CommonField.StartFieldBitOffset = (UINT8) (FieldBitPosition - ACPI_MUL_8 (ObjDesc->CommonField.BaseByteOffset)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExPrepFieldValue * * PARAMETERS: Info - Contains all field creation info * * RETURN: Status * * DESCRIPTION: Construct an object of type ACPI_OPERAND_OBJECT with a * subtype of DefField and connect it to the parent Node. * ******************************************************************************/ ACPI_STATUS AcpiExPrepFieldValue ( ACPI_CREATE_FIELD_INFO *Info) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *SecondDesc = NULL; ACPI_STATUS Status; UINT32 AccessByteWidth; UINT32 Type; ACPI_FUNCTION_TRACE (ExPrepFieldValue); /* Parameter validation */ if (Info->FieldType != ACPI_TYPE_LOCAL_INDEX_FIELD) { if (!Info->RegionNode) { ACPI_ERROR ((AE_INFO, "Null RegionNode")); return_ACPI_STATUS (AE_AML_NO_OPERAND); } Type = AcpiNsGetType (Info->RegionNode); if (Type != ACPI_TYPE_REGION) { ACPI_ERROR ((AE_INFO, "Needed Region, found type 0x%X (%s)", Type, AcpiUtGetTypeName (Type))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } } /* Allocate a new field object */ ObjDesc = AcpiUtCreateInternalObject (Info->FieldType); if (!ObjDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Initialize areas of the object that are common to all fields */ ObjDesc->CommonField.Node = Info->FieldNode; Status = AcpiExPrepCommonFieldObject (ObjDesc, Info->FieldFlags, Info->Attribute, Info->FieldBitPosition, Info->FieldBitLength); if (ACPI_FAILURE (Status)) { AcpiUtDeleteObjectDesc (ObjDesc); return_ACPI_STATUS (Status); } /* Initialize areas of the object that are specific to the field type */ switch (Info->FieldType) { case ACPI_TYPE_LOCAL_REGION_FIELD: ObjDesc->Field.RegionObj = AcpiNsGetAttachedObject (Info->RegionNode); /* Fields specific to GenericSerialBus fields */ ObjDesc->Field.AccessLength = Info->AccessLength; if (Info->ConnectionNode) { SecondDesc = Info->ConnectionNode->Object; if (SecondDesc == NULL) { break; } if (!(SecondDesc->Common.Flags & AOPOBJ_DATA_VALID)) { Status = AcpiDsGetBufferArguments (SecondDesc); if (ACPI_FAILURE (Status)) { AcpiUtDeleteObjectDesc (ObjDesc); return_ACPI_STATUS (Status); } } ObjDesc->Field.ResourceBuffer = SecondDesc->Buffer.Pointer; ObjDesc->Field.ResourceLength = (UINT16) SecondDesc->Buffer.Length; } else if (Info->ResourceBuffer) { ObjDesc->Field.ResourceBuffer = Info->ResourceBuffer; ObjDesc->Field.ResourceLength = Info->ResourceLength; } ObjDesc->Field.PinNumberIndex = Info->PinNumberIndex; /* Allow full data read from EC address space */ if ((ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_EC) && (ObjDesc->CommonField.BitLength > 8)) { AccessByteWidth = ACPI_ROUND_BITS_UP_TO_BYTES ( ObjDesc->CommonField.BitLength); /* Maximum byte width supported is 255 */ if (AccessByteWidth < 256) { ObjDesc->CommonField.AccessByteWidth = (UINT8) AccessByteWidth; } } ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "RegionField: BitOff %X, Off %X, Gran %X, Region %p\n", ObjDesc->Field.StartFieldBitOffset, ObjDesc->Field.BaseByteOffset, ObjDesc->Field.AccessByteWidth, ObjDesc->Field.RegionObj)); break; case ACPI_TYPE_LOCAL_BANK_FIELD: ObjDesc->BankField.Value = Info->BankValue; ObjDesc->BankField.RegionObj = AcpiNsGetAttachedObject (Info->RegionNode); ObjDesc->BankField.BankObj = AcpiNsGetAttachedObject (Info->RegisterNode); /* An additional reference for the attached objects */ AcpiUtAddReference (ObjDesc->BankField.RegionObj); AcpiUtAddReference (ObjDesc->BankField.BankObj); ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Bank Field: BitOff %X, Off %X, Gran %X, Region %p, BankReg %p\n", ObjDesc->BankField.StartFieldBitOffset, ObjDesc->BankField.BaseByteOffset, ObjDesc->Field.AccessByteWidth, ObjDesc->BankField.RegionObj, ObjDesc->BankField.BankObj)); /* * Remember location in AML stream of the field unit * opcode and operands -- since the BankValue * operands must be evaluated. */ SecondDesc = ObjDesc->Common.NextObject; SecondDesc->Extra.AmlStart = ACPI_CAST_PTR (ACPI_PARSE_OBJECT, Info->DataRegisterNode)->Named.Data; SecondDesc->Extra.AmlLength = ACPI_CAST_PTR (ACPI_PARSE_OBJECT, Info->DataRegisterNode)->Named.Length; break; case ACPI_TYPE_LOCAL_INDEX_FIELD: /* Get the Index and Data registers */ ObjDesc->IndexField.IndexObj = AcpiNsGetAttachedObject (Info->RegisterNode); ObjDesc->IndexField.DataObj = AcpiNsGetAttachedObject (Info->DataRegisterNode); if (!ObjDesc->IndexField.DataObj || !ObjDesc->IndexField.IndexObj) { ACPI_ERROR ((AE_INFO, "Null Index Object during field prep")); AcpiUtDeleteObjectDesc (ObjDesc); return_ACPI_STATUS (AE_AML_INTERNAL); } /* An additional reference for the attached objects */ AcpiUtAddReference (ObjDesc->IndexField.DataObj); AcpiUtAddReference (ObjDesc->IndexField.IndexObj); /* * April 2006: Changed to match MS behavior * * The value written to the Index register is the byte offset of the * target field in units of the granularity of the IndexField * * Previously, the value was calculated as an index in terms of the * width of the Data register, as below: * * ObjDesc->IndexField.Value = (UINT32) * (Info->FieldBitPosition / ACPI_MUL_8 ( * ObjDesc->Field.AccessByteWidth)); * * February 2006: Tried value as a byte offset: * ObjDesc->IndexField.Value = (UINT32) * ACPI_DIV_8 (Info->FieldBitPosition); */ ObjDesc->IndexField.Value = (UINT32) ACPI_ROUND_DOWN ( ACPI_DIV_8 (Info->FieldBitPosition), ObjDesc->IndexField.AccessByteWidth); ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "IndexField: BitOff %X, Off %X, Value %X, " "Gran %X, Index %p, Data %p\n", ObjDesc->IndexField.StartFieldBitOffset, ObjDesc->IndexField.BaseByteOffset, ObjDesc->IndexField.Value, ObjDesc->Field.AccessByteWidth, ObjDesc->IndexField.IndexObj, ObjDesc->IndexField.DataObj)); break; default: /* No other types should get here */ break; } /* * Store the constructed descriptor (ObjDesc) into the parent Node, * preserving the current type of that NamedObj. */ Status = AcpiNsAttachObject ( Info->FieldNode, ObjDesc, AcpiNsGetType (Info->FieldNode)); ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Set NamedObj %p [%4.4s], ObjDesc %p\n", Info->FieldNode, AcpiUtGetNodeName (Info->FieldNode), ObjDesc)); /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exstorob.c0000775000175000017500000001710714773714132023071 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exstorob - AML object store support, store to object * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exstorob") /******************************************************************************* * * FUNCTION: AcpiExStoreBufferToBuffer * * PARAMETERS: SourceDesc - Source object to copy * TargetDesc - Destination object of the copy * * RETURN: Status * * DESCRIPTION: Copy a buffer object to another buffer object. * ******************************************************************************/ ACPI_STATUS AcpiExStoreBufferToBuffer ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *TargetDesc) { UINT32 Length; UINT8 *Buffer; ACPI_FUNCTION_TRACE_PTR (ExStoreBufferToBuffer, SourceDesc); /* If Source and Target are the same, just return */ if (SourceDesc == TargetDesc) { return_ACPI_STATUS (AE_OK); } /* We know that SourceDesc is a buffer by now */ Buffer = ACPI_CAST_PTR (UINT8, SourceDesc->Buffer.Pointer); Length = SourceDesc->Buffer.Length; /* * If target is a buffer of length zero or is a static buffer, * allocate a new buffer of the proper length */ if ((TargetDesc->Buffer.Length == 0) || (TargetDesc->Common.Flags & AOPOBJ_STATIC_POINTER)) { TargetDesc->Buffer.Pointer = ACPI_ALLOCATE (Length); if (!TargetDesc->Buffer.Pointer) { return_ACPI_STATUS (AE_NO_MEMORY); } TargetDesc->Buffer.Length = Length; } /* Copy source buffer to target buffer */ if (Length <= TargetDesc->Buffer.Length) { /* Clear existing buffer and copy in the new one */ memset (TargetDesc->Buffer.Pointer, 0, TargetDesc->Buffer.Length); memcpy (TargetDesc->Buffer.Pointer, Buffer, Length); #ifdef ACPI_OBSOLETE_BEHAVIOR /* * NOTE: ACPI versions up to 3.0 specified that the buffer must be * truncated if the string is smaller than the buffer. However, "other" * implementations of ACPI never did this and thus became the defacto * standard. ACPI 3.0A changes this behavior such that the buffer * is no longer truncated. */ /* * OBSOLETE BEHAVIOR: * If the original source was a string, we must truncate the buffer, * according to the ACPI spec. Integer-to-Buffer and Buffer-to-Buffer * copy must not truncate the original buffer. */ if (OriginalSrcType == ACPI_TYPE_STRING) { /* Set the new length of the target */ TargetDesc->Buffer.Length = Length; } #endif } else { /* Truncate the source, copy only what will fit */ memcpy (TargetDesc->Buffer.Pointer, Buffer, TargetDesc->Buffer.Length); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Truncating source buffer from %X to %X\n", Length, TargetDesc->Buffer.Length)); } /* Copy flags */ TargetDesc->Buffer.Flags = SourceDesc->Buffer.Flags; TargetDesc->Common.Flags &= ~AOPOBJ_STATIC_POINTER; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExStoreStringToString * * PARAMETERS: SourceDesc - Source object to copy * TargetDesc - Destination object of the copy * * RETURN: Status * * DESCRIPTION: Copy a String object to another String object * ******************************************************************************/ ACPI_STATUS AcpiExStoreStringToString ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *TargetDesc) { UINT32 Length; UINT8 *Buffer; ACPI_FUNCTION_TRACE_PTR (ExStoreStringToString, SourceDesc); /* If Source and Target are the same, just return */ if (SourceDesc == TargetDesc) { return_ACPI_STATUS (AE_OK); } /* We know that SourceDesc is a string by now */ Buffer = ACPI_CAST_PTR (UINT8, SourceDesc->String.Pointer); Length = SourceDesc->String.Length; /* * Replace existing string value if it will fit and the string * pointer is not a static pointer (part of an ACPI table) */ if ((Length < TargetDesc->String.Length) && (!(TargetDesc->Common.Flags & AOPOBJ_STATIC_POINTER))) { /* * String will fit in existing non-static buffer. * Clear old string and copy in the new one */ memset (TargetDesc->String.Pointer, 0, (ACPI_SIZE) TargetDesc->String.Length + 1); memcpy (TargetDesc->String.Pointer, Buffer, Length); } else { /* * Free the current buffer, then allocate a new buffer * large enough to hold the value */ if (TargetDesc->String.Pointer && (!(TargetDesc->Common.Flags & AOPOBJ_STATIC_POINTER))) { /* Only free if not a pointer into the DSDT */ ACPI_FREE (TargetDesc->String.Pointer); } TargetDesc->String.Pointer = ACPI_ALLOCATE_ZEROED ((ACPI_SIZE) Length + 1); if (!TargetDesc->String.Pointer) { return_ACPI_STATUS (AE_NO_MEMORY); } TargetDesc->Common.Flags &= ~AOPOBJ_STATIC_POINTER; memcpy (TargetDesc->String.Pointer, Buffer, Length); } /* Set the new target length */ TargetDesc->String.Length = Length; return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/executer/extrace.c0000775000175000017500000002521014773714132022651 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: extrace - Support for interpreter execution tracing * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acinterp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("extrace") static ACPI_OPERAND_OBJECT *AcpiGbl_TraceMethodObject = NULL; /* Local prototypes */ #ifdef ACPI_DEBUG_OUTPUT static const char * AcpiExGetTraceEventName ( ACPI_TRACE_EVENT_TYPE Type); #endif /******************************************************************************* * * FUNCTION: AcpiExInterpreterTraceEnabled * * PARAMETERS: Name - Whether method name should be matched, * this should be checked before starting * the tracer * * RETURN: TRUE if interpreter trace is enabled. * * DESCRIPTION: Check whether interpreter trace is enabled * ******************************************************************************/ static BOOLEAN AcpiExInterpreterTraceEnabled ( char *Name) { /* Check if tracing is enabled */ if (!(AcpiGbl_TraceFlags & ACPI_TRACE_ENABLED)) { return (FALSE); } /* * Check if tracing is filtered: * * 1. If the tracer is started, AcpiGbl_TraceMethodObject should have * been filled by the trace starter * 2. If the tracer is not started, AcpiGbl_TraceMethodName should be * matched if it is specified * 3. If the tracer is oneshot style, AcpiGbl_TraceMethodName should * not be cleared by the trace stopper during the first match */ if (AcpiGbl_TraceMethodObject) { return (TRUE); } if (Name && (AcpiGbl_TraceMethodName && strcmp (AcpiGbl_TraceMethodName, Name))) { return (FALSE); } if ((AcpiGbl_TraceFlags & ACPI_TRACE_ONESHOT) && !AcpiGbl_TraceMethodName) { return (FALSE); } return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiExGetTraceEventName * * PARAMETERS: Type - Trace event type * * RETURN: Trace event name. * * DESCRIPTION: Used to obtain the full trace event name. * ******************************************************************************/ #ifdef ACPI_DEBUG_OUTPUT static const char * AcpiExGetTraceEventName ( ACPI_TRACE_EVENT_TYPE Type) { switch (Type) { case ACPI_TRACE_AML_METHOD: return "Method"; case ACPI_TRACE_AML_OPCODE: return "Opcode"; case ACPI_TRACE_AML_REGION: return "Region"; default: return ""; } } #endif /******************************************************************************* * * FUNCTION: AcpiExTracePoint * * PARAMETERS: Type - Trace event type * Begin - TRUE if before execution * Aml - Executed AML address * Pathname - Object path * * RETURN: None * * DESCRIPTION: Internal interpreter execution trace. * ******************************************************************************/ void AcpiExTracePoint ( ACPI_TRACE_EVENT_TYPE Type, BOOLEAN Begin, UINT8 *Aml, char *Pathname) { ACPI_FUNCTION_NAME (ExTracePoint); if (Pathname) { ACPI_DEBUG_PRINT ((ACPI_DB_TRACE_POINT, "%s %s [0x%p:%s] execution.\n", AcpiExGetTraceEventName (Type), Begin ? "Begin" : "End", Aml, Pathname)); } else { ACPI_DEBUG_PRINT ((ACPI_DB_TRACE_POINT, "%s %s [0x%p] execution.\n", AcpiExGetTraceEventName (Type), Begin ? "Begin" : "End", Aml)); } } /******************************************************************************* * * FUNCTION: AcpiExStartTraceMethod * * PARAMETERS: MethodNode - Node of the method * ObjDesc - The method object * WalkState - current state, NULL if not yet executing * a method. * * RETURN: None * * DESCRIPTION: Start control method execution trace * ******************************************************************************/ void AcpiExStartTraceMethod ( ACPI_NAMESPACE_NODE *MethodNode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { char *Pathname = NULL; BOOLEAN Enabled = FALSE; ACPI_FUNCTION_NAME (ExStartTraceMethod); if (MethodNode) { Pathname = AcpiNsGetNormalizedPathname (MethodNode, TRUE); } Enabled = AcpiExInterpreterTraceEnabled (Pathname); if (Enabled && !AcpiGbl_TraceMethodObject) { AcpiGbl_TraceMethodObject = ObjDesc; AcpiGbl_OriginalDbgLevel = AcpiDbgLevel; AcpiGbl_OriginalDbgLayer = AcpiDbgLayer; AcpiDbgLevel = ACPI_TRACE_LEVEL_ALL; AcpiDbgLayer = ACPI_TRACE_LAYER_ALL; if (AcpiGbl_TraceDbgLevel) { AcpiDbgLevel = AcpiGbl_TraceDbgLevel; } if (AcpiGbl_TraceDbgLayer) { AcpiDbgLayer = AcpiGbl_TraceDbgLayer; } } if (Enabled) { ACPI_TRACE_POINT (ACPI_TRACE_AML_METHOD, TRUE, ObjDesc ? ObjDesc->Method.AmlStart : NULL, Pathname); } if (Pathname) { ACPI_FREE (Pathname); } } /******************************************************************************* * * FUNCTION: AcpiExStopTraceMethod * * PARAMETERS: MethodNode - Node of the method * ObjDesc - The method object * WalkState - current state, NULL if not yet executing * a method. * * RETURN: None * * DESCRIPTION: Stop control method execution trace * ******************************************************************************/ void AcpiExStopTraceMethod ( ACPI_NAMESPACE_NODE *MethodNode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { char *Pathname = NULL; BOOLEAN Enabled; ACPI_FUNCTION_NAME (ExStopTraceMethod); if (MethodNode) { Pathname = AcpiNsGetNormalizedPathname (MethodNode, TRUE); } Enabled = AcpiExInterpreterTraceEnabled (NULL); if (Enabled) { ACPI_TRACE_POINT (ACPI_TRACE_AML_METHOD, FALSE, ObjDesc ? ObjDesc->Method.AmlStart : NULL, Pathname); } /* Check whether the tracer should be stopped */ if (AcpiGbl_TraceMethodObject == ObjDesc) { /* Disable further tracing if type is one-shot */ if (AcpiGbl_TraceFlags & ACPI_TRACE_ONESHOT) { AcpiGbl_TraceMethodName = NULL; } AcpiDbgLevel = AcpiGbl_OriginalDbgLevel; AcpiDbgLayer = AcpiGbl_OriginalDbgLayer; AcpiGbl_TraceMethodObject = NULL; } if (Pathname) { ACPI_FREE (Pathname); } } /******************************************************************************* * * FUNCTION: AcpiExStartTraceOpcode * * PARAMETERS: Op - The parser opcode object * WalkState - current state, NULL if not yet executing * a method. * * RETURN: None * * DESCRIPTION: Start opcode execution trace * ******************************************************************************/ void AcpiExStartTraceOpcode ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { ACPI_FUNCTION_NAME (ExStartTraceOpcode); if (AcpiExInterpreterTraceEnabled (NULL) && (AcpiGbl_TraceFlags & ACPI_TRACE_OPCODE)) { ACPI_TRACE_POINT (ACPI_TRACE_AML_OPCODE, TRUE, Op->Common.Aml, Op->Common.AmlOpName); } } /******************************************************************************* * * FUNCTION: AcpiExStopTraceOpcode * * PARAMETERS: Op - The parser opcode object * WalkState - current state, NULL if not yet executing * a method. * * RETURN: None * * DESCRIPTION: Stop opcode execution trace * ******************************************************************************/ void AcpiExStopTraceOpcode ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { ACPI_FUNCTION_NAME (ExStopTraceOpcode); if (AcpiExInterpreterTraceEnabled (NULL) && (AcpiGbl_TraceFlags & ACPI_TRACE_OPCODE)) { ACPI_TRACE_POINT (ACPI_TRACE_AML_OPCODE, FALSE, Op->Common.Aml, Op->Common.AmlOpName); } } acpica-unix-20250404/source/components/executer/exoparg3.c0000775000175000017500000002254214773714132022753 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exoparg3 - AML execution - opcodes with 3 arguments * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "acparser.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exoparg3") /*! * Naming convention for AML interpreter execution routines. * * The routines that begin execution of AML opcodes are named with a common * convention based upon the number of arguments, the number of target operands, * and whether or not a value is returned: * * AcpiExOpcode_xA_yT_zR * * Where: * * xA - ARGUMENTS: The number of arguments (input operands) that are * required for this opcode type (1 through 6 args). * yT - TARGETS: The number of targets (output operands) that are required * for this opcode type (0, 1, or 2 targets). * zR - RETURN VALUE: Indicates whether this opcode type returns a value * as the function return (0 or 1). * * The AcpiExOpcode* functions are called via the Dispatcher component with * fully resolved operands. !*/ /******************************************************************************* * * FUNCTION: AcpiExOpcode_3A_0T_0R * * PARAMETERS: WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Execute Triadic operator (3 operands) * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_3A_0T_0R ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_SIGNAL_FATAL_INFO *Fatal; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_STR (ExOpcode_3A_0T_0R, AcpiPsGetOpcodeName (WalkState->Opcode)); switch (WalkState->Opcode) { case AML_FATAL_OP: /* Fatal (FatalType FatalCode FatalArg) */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "FatalOp: Type %X Code %X Arg %X " "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n", (UINT32) Operand[0]->Integer.Value, (UINT32) Operand[1]->Integer.Value, (UINT32) Operand[2]->Integer.Value)); Fatal = ACPI_ALLOCATE (sizeof (ACPI_SIGNAL_FATAL_INFO)); if (Fatal) { Fatal->Type = (UINT32) Operand[0]->Integer.Value; Fatal->Code = (UINT32) Operand[1]->Integer.Value; Fatal->Argument = (UINT32) Operand[2]->Integer.Value; } /* Always signal the OS! */ Status = AcpiOsSignal (ACPI_SIGNAL_FATAL, Fatal); /* Might return while OS is shutting down, just continue */ ACPI_FREE (Fatal); goto Cleanup; case AML_EXTERNAL_OP: /* * If the interpreter sees this opcode, just ignore it. The External * op is intended for use by disassemblers in order to properly * disassemble control method invocations. The opcode or group of * opcodes should be surrounded by an "if (0)" clause to ensure that * AML interpreters never see the opcode. Thus, something is * wrong if an external opcode ever gets here. */ ACPI_ERROR ((AE_INFO, "Executed External Op")); Status = AE_OK; goto Cleanup; default: ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; goto Cleanup; } Cleanup: return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExOpcode_3A_1T_1R * * PARAMETERS: WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Execute Triadic operator (3 operands) * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_3A_1T_1R ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc = NULL; char *Buffer = NULL; ACPI_STATUS Status = AE_OK; UINT64 Index; ACPI_SIZE Length; ACPI_FUNCTION_TRACE_STR (ExOpcode_3A_1T_1R, AcpiPsGetOpcodeName (WalkState->Opcode)); switch (WalkState->Opcode) { case AML_MID_OP: /* Mid (Source[0], Index[1], Length[2], Result[3]) */ /* * Create the return object. The Source operand is guaranteed to be * either a String or a Buffer, so just use its type. */ ReturnDesc = AcpiUtCreateInternalObject ( (Operand[0])->Common.Type); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* Get the Integer values from the objects */ Index = Operand[1]->Integer.Value; Length = (ACPI_SIZE) Operand[2]->Integer.Value; /* * If the index is beyond the length of the String/Buffer, or if the * requested length is zero, return a zero-length String/Buffer */ if (Index >= Operand[0]->String.Length) { Length = 0; } /* Truncate request if larger than the actual String/Buffer */ else if ((Index + Length) > Operand[0]->String.Length) { Length = (ACPI_SIZE) Operand[0]->String.Length - (ACPI_SIZE) Index; } /* Strings always have a sub-pointer, not so for buffers */ switch ((Operand[0])->Common.Type) { case ACPI_TYPE_STRING: /* Always allocate a new buffer for the String */ Buffer = ACPI_ALLOCATE_ZEROED ((ACPI_SIZE) Length + 1); if (!Buffer) { Status = AE_NO_MEMORY; goto Cleanup; } break; case ACPI_TYPE_BUFFER: /* If the requested length is zero, don't allocate a buffer */ if (Length > 0) { /* Allocate a new buffer for the Buffer */ Buffer = ACPI_ALLOCATE_ZEROED (Length); if (!Buffer) { Status = AE_NO_MEMORY; goto Cleanup; } } break; default: /* Should not happen */ Status = AE_AML_OPERAND_TYPE; goto Cleanup; } if (Buffer) { /* We have a buffer, copy the portion requested */ memcpy (Buffer, Operand[0]->String.Pointer + Index, Length); } /* Set the length of the new String/Buffer */ ReturnDesc->String.Pointer = Buffer; ReturnDesc->String.Length = (UINT32) Length; /* Mark buffer initialized */ ReturnDesc->Buffer.Flags |= AOPOBJ_DATA_VALID; break; default: ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; goto Cleanup; } /* Store the result in the target */ Status = AcpiExStore (ReturnDesc, Operand[3], WalkState); Cleanup: /* Delete return object on error */ if (ACPI_FAILURE (Status) || WalkState->ResultObj) { AcpiUtRemoveReference (ReturnDesc); WalkState->ResultObj = NULL; } else { /* Set the return object and exit */ WalkState->ResultObj = ReturnDesc; } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exconcat.c0000775000175000017500000003221614773714132023026 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exconcat - Concatenate-type AML operators * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlresrc.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exconcat") /* Local Prototypes */ static ACPI_STATUS AcpiExConvertToObjectTypeString ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc); /******************************************************************************* * * FUNCTION: AcpiExDoConcatenate * * PARAMETERS: Operand0 - First source object * Operand1 - Second source object * ActualReturnDesc - Where to place the return object * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Concatenate two objects with the ACPI-defined conversion * rules as necessary. * NOTE: * Per the ACPI spec (up to 6.1), Concatenate only supports Integer, * String, and Buffer objects. However, we support all objects here * as an extension. This improves the usefulness of both Concatenate * and the Printf/Fprintf macros. The extension returns a string * describing the object type for the other objects. * 02/2016. * ******************************************************************************/ ACPI_STATUS AcpiExDoConcatenate ( ACPI_OPERAND_OBJECT *Operand0, ACPI_OPERAND_OBJECT *Operand1, ACPI_OPERAND_OBJECT **ActualReturnDesc, ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT *LocalOperand0 = Operand0; ACPI_OPERAND_OBJECT *LocalOperand1 = Operand1; ACPI_OPERAND_OBJECT *TempOperand1 = NULL; ACPI_OPERAND_OBJECT *ReturnDesc; char *Buffer; ACPI_OBJECT_TYPE Operand0Type; ACPI_OBJECT_TYPE Operand1Type; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (ExDoConcatenate); /* Operand 0 preprocessing */ switch (Operand0->Common.Type) { case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: Operand0Type = Operand0->Common.Type; break; default: /* For all other types, get the "object type" string */ Status = AcpiExConvertToObjectTypeString ( Operand0, &LocalOperand0); if (ACPI_FAILURE (Status)) { goto Cleanup; } Operand0Type = ACPI_TYPE_STRING; break; } /* Operand 1 preprocessing */ switch (Operand1->Common.Type) { case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: Operand1Type = Operand1->Common.Type; break; default: /* For all other types, get the "object type" string */ Status = AcpiExConvertToObjectTypeString ( Operand1, &LocalOperand1); if (ACPI_FAILURE (Status)) { goto Cleanup; } Operand1Type = ACPI_TYPE_STRING; break; } /* * Convert the second operand if necessary. The first operand (0) * determines the type of the second operand (1) (See the Data Types * section of the ACPI specification). Both object types are * guaranteed to be either Integer/String/Buffer by the operand * resolution mechanism. */ switch (Operand0Type) { case ACPI_TYPE_INTEGER: Status = AcpiExConvertToInteger (LocalOperand1, &TempOperand1, ACPI_IMPLICIT_CONVERSION); break; case ACPI_TYPE_BUFFER: Status = AcpiExConvertToBuffer (LocalOperand1, &TempOperand1); break; case ACPI_TYPE_STRING: switch (Operand1Type) { case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* Other types have already been converted to string */ Status = AcpiExConvertToString ( LocalOperand1, &TempOperand1, ACPI_IMPLICIT_CONVERT_HEX); break; default: Status = AE_OK; break; } break; default: ACPI_ERROR ((AE_INFO, "Invalid object type: 0x%X", Operand0->Common.Type)); Status = AE_AML_INTERNAL; } if (ACPI_FAILURE (Status)) { goto Cleanup; } /* Take care with any newly created operand objects */ if ((LocalOperand1 != Operand1) && (LocalOperand1 != TempOperand1)) { AcpiUtRemoveReference (LocalOperand1); } LocalOperand1 = TempOperand1; /* * Both operands are now known to be the same object type * (Both are Integer, String, or Buffer), and we can now perform * the concatenation. * * There are three cases to handle, as per the ACPI spec: * * 1) Two Integers concatenated to produce a new Buffer * 2) Two Strings concatenated to produce a new String * 3) Two Buffers concatenated to produce a new Buffer */ switch (Operand0Type) { case ACPI_TYPE_INTEGER: /* Result of two Integers is a Buffer */ /* Need enough buffer space for two integers */ ReturnDesc = AcpiUtCreateBufferObject ( (ACPI_SIZE) ACPI_MUL_2 (AcpiGbl_IntegerByteWidth)); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } Buffer = (char *) ReturnDesc->Buffer.Pointer; /* Copy the first integer, LSB first */ memcpy (Buffer, &Operand0->Integer.Value, AcpiGbl_IntegerByteWidth); /* Copy the second integer (LSB first) after the first */ memcpy (Buffer + AcpiGbl_IntegerByteWidth, &LocalOperand1->Integer.Value, AcpiGbl_IntegerByteWidth); break; case ACPI_TYPE_STRING: /* Result of two Strings is a String */ ReturnDesc = AcpiUtCreateStringObject ( ((ACPI_SIZE) LocalOperand0->String.Length + LocalOperand1->String.Length)); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } Buffer = ReturnDesc->String.Pointer; /* Concatenate the strings */ strcpy (Buffer, LocalOperand0->String.Pointer); strcat (Buffer, LocalOperand1->String.Pointer); break; case ACPI_TYPE_BUFFER: /* Result of two Buffers is a Buffer */ ReturnDesc = AcpiUtCreateBufferObject ( ((ACPI_SIZE) Operand0->Buffer.Length + LocalOperand1->Buffer.Length)); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } Buffer = (char *) ReturnDesc->Buffer.Pointer; /* Concatenate the buffers */ memcpy (Buffer, Operand0->Buffer.Pointer, Operand0->Buffer.Length); memcpy (Buffer + Operand0->Buffer.Length, LocalOperand1->Buffer.Pointer, LocalOperand1->Buffer.Length); break; default: /* Invalid object type, should not happen here */ ACPI_ERROR ((AE_INFO, "Invalid object type: 0x%X", Operand0->Common.Type)); Status = AE_AML_INTERNAL; goto Cleanup; } *ActualReturnDesc = ReturnDesc; Cleanup: if (LocalOperand0 != Operand0) { AcpiUtRemoveReference (LocalOperand0); } if (LocalOperand1 != Operand1) { AcpiUtRemoveReference (LocalOperand1); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExConvertToObjectTypeString * * PARAMETERS: ObjDesc - Object to be converted * ReturnDesc - Where to place the return object * * RETURN: Status * * DESCRIPTION: Convert an object of arbitrary type to a string object that * contains the namestring for the object. Used for the * concatenate operator. * ******************************************************************************/ static ACPI_STATUS AcpiExConvertToObjectTypeString ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc) { ACPI_OPERAND_OBJECT *ReturnDesc; const char *TypeString; TypeString = AcpiUtGetTypeName (ObjDesc->Common.Type); ReturnDesc = AcpiUtCreateStringObject ( ((ACPI_SIZE) strlen (TypeString) + 9)); /* 9 For "[ Object]" */ if (!ReturnDesc) { return (AE_NO_MEMORY); } strcpy (ReturnDesc->String.Pointer, "["); strcat (ReturnDesc->String.Pointer, TypeString); strcat (ReturnDesc->String.Pointer, " Object]"); *ResultDesc = ReturnDesc; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExConcatTemplate * * PARAMETERS: Operand0 - First source object * Operand1 - Second source object * ActualReturnDesc - Where to place the return object * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Concatenate two resource templates * ******************************************************************************/ ACPI_STATUS AcpiExConcatTemplate ( ACPI_OPERAND_OBJECT *Operand0, ACPI_OPERAND_OBJECT *Operand1, ACPI_OPERAND_OBJECT **ActualReturnDesc, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ReturnDesc; UINT8 *NewBuf; UINT8 *EndTag; ACPI_SIZE Length0; ACPI_SIZE Length1; ACPI_SIZE NewLength; ACPI_FUNCTION_TRACE (ExConcatTemplate); /* * Find the EndTag descriptor in each resource template. * Note1: returned pointers point TO the EndTag, not past it. * Note2: zero-length buffers are allowed; treated like one EndTag */ /* Get the length of the first resource template */ Status = AcpiUtGetResourceEndTag (Operand0, &EndTag); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Length0 = ACPI_PTR_DIFF (EndTag, Operand0->Buffer.Pointer); /* Get the length of the second resource template */ Status = AcpiUtGetResourceEndTag (Operand1, &EndTag); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Length1 = ACPI_PTR_DIFF (EndTag, Operand1->Buffer.Pointer); /* Combine both lengths, minimum size will be 2 for EndTag */ NewLength = Length0 + Length1 + sizeof (AML_RESOURCE_END_TAG); /* Create a new buffer object for the result (with one EndTag) */ ReturnDesc = AcpiUtCreateBufferObject (NewLength); if (!ReturnDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* * Copy the templates to the new buffer, 0 first, then 1 follows. One * EndTag descriptor is copied from Operand1. */ NewBuf = ReturnDesc->Buffer.Pointer; memcpy (NewBuf, Operand0->Buffer.Pointer, Length0); memcpy (NewBuf + Length0, Operand1->Buffer.Pointer, Length1); /* Insert EndTag and set the checksum to zero, means "ignore checksum" */ NewBuf[NewLength - 1] = 0; NewBuf[NewLength - 2] = ACPI_RESOURCE_NAME_END_TAG | 1; /* Return the completed resource template */ *ActualReturnDesc = ReturnDesc; return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/executer/exfield.c0000775000175000017500000003655014773714132022647 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exfield - AML execution - FieldUnit read/write * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "acinterp.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exfield") /* * This table maps the various Attrib protocols to the byte transfer * length. Used for the generic serial bus. */ #define ACPI_INVALID_PROTOCOL_ID 0x80 #define ACPI_MAX_PROTOCOL_ID 0x0F static const UINT8 AcpiProtocolLengths[] = { ACPI_INVALID_PROTOCOL_ID, /* 0 - reserved */ ACPI_INVALID_PROTOCOL_ID, /* 1 - reserved */ 0x00, /* 2 - ATTRIB_QUICK */ ACPI_INVALID_PROTOCOL_ID, /* 3 - reserved */ 0x01, /* 4 - ATTRIB_SEND_RECEIVE */ ACPI_INVALID_PROTOCOL_ID, /* 5 - reserved */ 0x01, /* 6 - ATTRIB_BYTE */ ACPI_INVALID_PROTOCOL_ID, /* 7 - reserved */ 0x02, /* 8 - ATTRIB_WORD */ ACPI_INVALID_PROTOCOL_ID, /* 9 - reserved */ 0xFF, /* A - ATTRIB_BLOCK */ 0xFF, /* B - ATTRIB_BYTES */ 0x02, /* C - ATTRIB_PROCESS_CALL */ 0xFF, /* D - ATTRIB_BLOCK_PROCESS_CALL */ 0xFF, /* E - ATTRIB_RAW_BYTES */ 0xFF /* F - ATTRIB_RAW_PROCESS_BYTES */ }; #define PCC_MASTER_SUBSPACE 3 /* * The following macros determine a given offset is a COMD field. * According to the specification, generic subspaces (types 0-2) contains a * 2-byte COMD field at offset 4 and master subspaces (type 3) contains a 4-byte * COMD field starting at offset 12. */ #define GENERIC_SUBSPACE_COMMAND(a) (4 == a || a == 5) #define MASTER_SUBSPACE_COMMAND(a) (12 <= a && a <= 15) /******************************************************************************* * * FUNCTION: AcpiExGetProtocolBufferLength * * PARAMETERS: ProtocolId - The type of the protocol indicated by region * field access attributes * ReturnLength - Where the protocol byte transfer length is * returned * * RETURN: Status and decoded byte transfer length * * DESCRIPTION: This routine returns the length of the GenericSerialBus * protocol bytes * ******************************************************************************/ ACPI_STATUS AcpiExGetProtocolBufferLength ( UINT32 ProtocolId, UINT32 *ReturnLength) { if ((ProtocolId > ACPI_MAX_PROTOCOL_ID) || (AcpiProtocolLengths[ProtocolId] == ACPI_INVALID_PROTOCOL_ID)) { ACPI_ERROR ((AE_INFO, "Invalid Field/AccessAs protocol ID: 0x%4.4X", ProtocolId)); return (AE_AML_PROTOCOL); } *ReturnLength = AcpiProtocolLengths[ProtocolId]; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExReadDataFromField * * PARAMETERS: WalkState - Current execution state * ObjDesc - The named field * RetBufferDesc - Where the return data object is stored * * RETURN: Status * * DESCRIPTION: Read from a named field. Returns either an Integer or a * Buffer, depending on the size of the field and whether if a * field is created by the CreateField() operator. * ******************************************************************************/ ACPI_STATUS AcpiExReadDataFromField ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **RetBufferDesc) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *BufferDesc; void *Buffer; UINT32 BufferLength; ACPI_FUNCTION_TRACE_PTR (ExReadDataFromField, ObjDesc); /* Parameter validation */ if (!ObjDesc) { return_ACPI_STATUS (AE_AML_NO_OPERAND); } if (!RetBufferDesc) { return_ACPI_STATUS (AE_BAD_PARAMETER); } if (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD) { /* * If the BufferField arguments have not been previously evaluated, * evaluate them now and save the results. */ if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID)) { Status = AcpiDsGetBufferFieldArguments (ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } } else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) && (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_SMBUS || ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GSBUS || ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_IPMI || ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_RT || ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE)) { /* SMBus, GSBus, IPMI serial */ Status = AcpiExReadSerialBus (ObjDesc, RetBufferDesc); return_ACPI_STATUS (Status); } /* * Allocate a buffer for the contents of the field. * * If the field is larger than the current integer width, create * a BUFFER to hold it. Otherwise, use an INTEGER. This allows * the use of arithmetic operators on the returned value if the * field size is equal or smaller than an Integer. * * However, all buffer fields created by CreateField operator needs to * remain as a buffer to match other AML interpreter implementations. * * Note: Field.length is in bits. */ BufferLength = (ACPI_SIZE) ACPI_ROUND_BITS_UP_TO_BYTES ( ObjDesc->Field.BitLength); if (BufferLength > AcpiGbl_IntegerByteWidth || (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD && ObjDesc->BufferField.IsCreateField)) { /* Field is too large for an Integer, create a Buffer instead */ BufferDesc = AcpiUtCreateBufferObject (BufferLength); if (!BufferDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } Buffer = BufferDesc->Buffer.Pointer; } else { /* Field will fit within an Integer (normal case) */ BufferDesc = AcpiUtCreateIntegerObject ((UINT64) 0); if (!BufferDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } BufferLength = AcpiGbl_IntegerByteWidth; Buffer = &BufferDesc->Integer.Value; } if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) && (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO)) { /* General Purpose I/O */ Status = AcpiExReadGpio (ObjDesc, Buffer); goto Exit; } else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) && (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM)) { /* * Reading from a PCC field unit does not require the handler because * it only requires reading from the InternalPccBuffer. */ ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "PCC FieldRead bits %u\n", ObjDesc->Field.BitLength)); memcpy (Buffer, ObjDesc->Field.RegionObj->Field.InternalPccBuffer + ObjDesc->Field.BaseByteOffset, (ACPI_SIZE) ACPI_ROUND_BITS_UP_TO_BYTES ( ObjDesc->Field.BitLength)); *RetBufferDesc = BufferDesc; return AE_OK; } ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "FieldRead [TO]: Obj %p, Type %X, Buf %p, ByteLen %X\n", ObjDesc, ObjDesc->Common.Type, Buffer, BufferLength)); ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "FieldRead [FROM]: BitLen %X, BitOff %X, ByteOff %X\n", ObjDesc->CommonField.BitLength, ObjDesc->CommonField.StartFieldBitOffset, ObjDesc->CommonField.BaseByteOffset)); /* Lock entire transaction if requested */ AcpiExAcquireGlobalLock (ObjDesc->CommonField.FieldFlags); /* Read from the field */ Status = AcpiExExtractFromField (ObjDesc, Buffer, BufferLength); AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags); Exit: if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (BufferDesc); } else { *RetBufferDesc = BufferDesc; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExWriteDataToField * * PARAMETERS: SourceDesc - Contains data to write * ObjDesc - The named field * ResultDesc - Where the return value is returned, if any * * RETURN: Status * * DESCRIPTION: Write to a named field * ******************************************************************************/ ACPI_STATUS AcpiExWriteDataToField ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc) { ACPI_STATUS Status; UINT32 BufferLength; UINT32 DataLength; void *Buffer; ACPI_FUNCTION_TRACE_PTR (ExWriteDataToField, ObjDesc); /* Parameter validation */ if (!SourceDesc || !ObjDesc) { return_ACPI_STATUS (AE_AML_NO_OPERAND); } if (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD) { /* * If the BufferField arguments have not been previously evaluated, * evaluate them now and save the results. */ if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID)) { Status = AcpiDsGetBufferFieldArguments (ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } } else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) && (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO)) { /* General Purpose I/O */ Status = AcpiExWriteGpio (SourceDesc, ObjDesc, ResultDesc); return_ACPI_STATUS (Status); } else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) && (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_SMBUS || ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GSBUS || ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_IPMI || ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_RT || ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE)) { /* SMBus, GSBus, IPMI serial */ Status = AcpiExWriteSerialBus (SourceDesc, ObjDesc, ResultDesc); return_ACPI_STATUS (Status); } else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) && (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM)) { /* * According to the spec a write to the COMD field will invoke the * region handler. Otherwise, write to the PccInternal buffer. This * implementation will use the offsets specified rather than the name * of the field. This is considered safer because some firmware tools * are known to obfiscate named objects. */ DataLength = (ACPI_SIZE) ACPI_ROUND_BITS_UP_TO_BYTES ( ObjDesc->Field.BitLength); memcpy (ObjDesc->Field.RegionObj->Field.InternalPccBuffer + ObjDesc->Field.BaseByteOffset, SourceDesc->Buffer.Pointer, DataLength); if (MASTER_SUBSPACE_COMMAND (ObjDesc->Field.BaseByteOffset)) { /* Perform the write */ ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "PCC COMD field has been written. Invoking PCC handler now.\n")); Status = AcpiExAccessRegion ( ObjDesc, 0, (UINT64 *) ObjDesc->Field.RegionObj->Field.InternalPccBuffer, ACPI_WRITE); return_ACPI_STATUS (Status); } return (AE_OK); } /* Get a pointer to the data to be written */ switch (SourceDesc->Common.Type) { case ACPI_TYPE_INTEGER: Buffer = &SourceDesc->Integer.Value; BufferLength = sizeof (SourceDesc->Integer.Value); break; case ACPI_TYPE_BUFFER: Buffer = SourceDesc->Buffer.Pointer; BufferLength = SourceDesc->Buffer.Length; break; case ACPI_TYPE_STRING: Buffer = SourceDesc->String.Pointer; BufferLength = SourceDesc->String.Length; break; default: return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "FieldWrite [FROM]: Obj %p (%s:%X), Buf %p, ByteLen %X\n", SourceDesc, AcpiUtGetTypeName (SourceDesc->Common.Type), SourceDesc->Common.Type, Buffer, BufferLength)); ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "FieldWrite [TO]: Obj %p (%s:%X), BitLen %X, BitOff %X, ByteOff %X\n", ObjDesc, AcpiUtGetTypeName (ObjDesc->Common.Type), ObjDesc->Common.Type, ObjDesc->CommonField.BitLength, ObjDesc->CommonField.StartFieldBitOffset, ObjDesc->CommonField.BaseByteOffset)); /* Lock entire transaction if requested */ AcpiExAcquireGlobalLock (ObjDesc->CommonField.FieldFlags); /* Write to the field */ Status = AcpiExInsertIntoField (ObjDesc, Buffer, BufferLength); AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exregion.c0000775000175000017500000004233514773714132023045 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exregion - ACPI default OpRegion (address space) handlers * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exregion") /******************************************************************************* * * FUNCTION: AcpiExSystemMemorySpaceHandler * * PARAMETERS: Function - Read or Write operation * Address - Where in the space to read or write * BitWidth - Field width in bits (8, 16, or 32) * Value - Pointer to in or out value * HandlerContext - Pointer to Handler's context * RegionContext - Pointer to context specific to the * accessed region * * RETURN: Status * * DESCRIPTION: Handler for the System Memory address space (Op Region) * ******************************************************************************/ ACPI_STATUS AcpiExSystemMemorySpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) { ACPI_STATUS Status = AE_OK; void *LogicalAddrPtr = NULL; ACPI_MEM_SPACE_CONTEXT *MemInfo = RegionContext; ACPI_MEM_MAPPING *Mm = MemInfo->CurMm; UINT32 Length; ACPI_SIZE MapLength; #ifdef ACPI_MISALIGNMENT_NOT_SUPPORTED UINT32 Remainder; #endif ACPI_FUNCTION_TRACE (ExSystemMemorySpaceHandler); /* Validate and translate the bit width */ switch (BitWidth) { case 8: Length = 1; break; case 16: Length = 2; break; case 32: Length = 4; break; case 64: Length = 8; break; default: ACPI_ERROR ((AE_INFO, "Invalid SystemMemory width %u", BitWidth)); return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } #ifdef ACPI_MISALIGNMENT_NOT_SUPPORTED /* * Hardware does not support non-aligned data transfers, we must verify * the request. */ (void) AcpiUtShortDivide ((UINT64) Address, Length, NULL, &Remainder); if (Remainder != 0) { return_ACPI_STATUS (AE_AML_ALIGNMENT); } #endif /* * Does the request fit into the cached memory mapping? * Is 1) Address below the current mapping? OR * 2) Address beyond the current mapping? */ if (!Mm || (Address < Mm->PhysicalAddress) || ((UINT64) Address + Length > (UINT64) Mm->PhysicalAddress + Mm->Length)) { /* * The request cannot be resolved by the current memory mapping. * * Look for an existing saved mapping covering the address range * at hand. If found, save it as the current one and carry out * the access. */ for (Mm = MemInfo->FirstMm; Mm; Mm = Mm->NextMm) { if (Mm == MemInfo->CurMm) { continue; } if (Address < Mm->PhysicalAddress) { continue; } if ((UINT64) Address + Length > (UINT64) Mm->PhysicalAddress + Mm->Length) { continue; } MemInfo->CurMm = Mm; goto access; } /* Create a new mappings list entry */ Mm = ACPI_ALLOCATE_ZEROED(sizeof(*Mm)); if (!Mm) { ACPI_ERROR((AE_INFO, "Unable to save memory mapping at 0x%8.8X%8.8X, size %u", ACPI_FORMAT_UINT64(Address), Length)); return_ACPI_STATUS(AE_NO_MEMORY); } /* * October 2009: Attempt to map from the requested address to the * end of the region. However, we will never map more than one * page, nor will we cross a page boundary. */ MapLength = (ACPI_SIZE) ((MemInfo->Address + MemInfo->Length) - Address); if (MapLength > ACPI_DEFAULT_PAGE_SIZE) { MapLength = ACPI_DEFAULT_PAGE_SIZE; } /* Create a new mapping starting at the address given */ LogicalAddrPtr = AcpiOsMapMemory(Address, MapLength); if (!LogicalAddrPtr) { ACPI_ERROR ((AE_INFO, "Could not map memory at 0x%8.8X%8.8X, size %u", ACPI_FORMAT_UINT64 (Address), (UINT32) MapLength)); ACPI_FREE(Mm); return_ACPI_STATUS (AE_NO_MEMORY); } /* Save the physical address and mapping size */ Mm->LogicalAddress = LogicalAddrPtr; Mm->PhysicalAddress = Address; Mm->Length = MapLength; /* * Add the new entry to the mappigs list and save it as the * current mapping. */ Mm->NextMm = MemInfo->FirstMm; MemInfo->FirstMm = Mm; MemInfo->CurMm = Mm; } access: /* * Generate a logical pointer corresponding to the address we want to * access */ LogicalAddrPtr = Mm->LogicalAddress + ((UINT64) Address - (UINT64) Mm->PhysicalAddress); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "System-Memory (width %u) R/W %u Address=%8.8X%8.8X\n", BitWidth, Function, ACPI_FORMAT_UINT64 (Address))); /* * Perform the memory read or write * * Note: For machines that do not support non-aligned transfers, the target * address was checked for alignment above. We do not attempt to break the * transfer up into smaller (byte-size) chunks because the AML specifically * asked for a transfer width that the hardware may require. */ switch (Function) { case ACPI_READ: *Value = 0; switch (BitWidth) { case 8: *Value = (UINT64) ACPI_GET8 (LogicalAddrPtr); break; case 16: *Value = (UINT64) ACPI_GET16 (LogicalAddrPtr); break; case 32: *Value = (UINT64) ACPI_GET32 (LogicalAddrPtr); break; case 64: *Value = (UINT64) ACPI_GET64 (LogicalAddrPtr); break; default: /* BitWidth was already validated */ break; } break; case ACPI_WRITE: switch (BitWidth) { case 8: ACPI_SET8 (LogicalAddrPtr, *Value); break; case 16: ACPI_SET16 (LogicalAddrPtr, *Value); break; case 32: ACPI_SET32 (LogicalAddrPtr, *Value); break; case 64: ACPI_SET64 (LogicalAddrPtr, *Value); break; default: /* BitWidth was already validated */ break; } break; default: Status = AE_BAD_PARAMETER; break; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExSystemIoSpaceHandler * * PARAMETERS: Function - Read or Write operation * Address - Where in the space to read or write * BitWidth - Field width in bits (8, 16, or 32) * Value - Pointer to in or out value * HandlerContext - Pointer to Handler's context * RegionContext - Pointer to context specific to the * accessed region * * RETURN: Status * * DESCRIPTION: Handler for the System IO address space (Op Region) * ******************************************************************************/ ACPI_STATUS AcpiExSystemIoSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) { ACPI_STATUS Status = AE_OK; UINT32 Value32; ACPI_FUNCTION_TRACE (ExSystemIoSpaceHandler); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "System-IO (width %u) R/W %u Address=%8.8X%8.8X\n", BitWidth, Function, ACPI_FORMAT_UINT64 (Address))); /* Decode the function parameter */ switch (Function) { case ACPI_READ: Status = AcpiHwReadPort ((ACPI_IO_ADDRESS) Address, &Value32, BitWidth); *Value = Value32; break; case ACPI_WRITE: Status = AcpiHwWritePort ((ACPI_IO_ADDRESS) Address, (UINT32) *Value, BitWidth); break; default: Status = AE_BAD_PARAMETER; break; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExPciConfigSpaceHandler * * PARAMETERS: Function - Read or Write operation * Address - Where in the space to read or write * BitWidth - Field width in bits (8, 16, or 32) * Value - Pointer to in or out value * HandlerContext - Pointer to Handler's context * RegionContext - Pointer to context specific to the * accessed region * * RETURN: Status * * DESCRIPTION: Handler for the PCI Config address space (Op Region) * ******************************************************************************/ ACPI_STATUS AcpiExPciConfigSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) { ACPI_STATUS Status = AE_OK; ACPI_PCI_ID *PciId; UINT16 PciRegister; ACPI_FUNCTION_TRACE (ExPciConfigSpaceHandler); /* * The arguments to AcpiOs(Read|Write)PciConfiguration are: * * PciSegment is the PCI bus segment range 0-31 * PciBus is the PCI bus number range 0-255 * PciDevice is the PCI device number range 0-31 * PciFunction is the PCI device function number * PciRegister is the Config space register range 0-255 bytes * * Value - input value for write, output address for read * */ PciId = (ACPI_PCI_ID *) RegionContext; PciRegister = (UINT16) (UINT32) Address; ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Pci-Config %u (%u) Seg(%04x) Bus(%04x) " "Dev(%04x) Func(%04x) Reg(%04x)\n", Function, BitWidth, PciId->Segment, PciId->Bus, PciId->Device, PciId->Function, PciRegister)); switch (Function) { case ACPI_READ: *Value = 0; Status = AcpiOsReadPciConfiguration ( PciId, PciRegister, Value, BitWidth); break; case ACPI_WRITE: Status = AcpiOsWritePciConfiguration ( PciId, PciRegister, *Value, BitWidth); break; default: Status = AE_BAD_PARAMETER; break; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExCmosSpaceHandler * * PARAMETERS: Function - Read or Write operation * Address - Where in the space to read or write * BitWidth - Field width in bits (8, 16, or 32) * Value - Pointer to in or out value * HandlerContext - Pointer to Handler's context * RegionContext - Pointer to context specific to the * accessed region * * RETURN: Status * * DESCRIPTION: Handler for the CMOS address space (Op Region) * ******************************************************************************/ ACPI_STATUS AcpiExCmosSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (ExCmosSpaceHandler); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExPciBarSpaceHandler * * PARAMETERS: Function - Read or Write operation * Address - Where in the space to read or write * BitWidth - Field width in bits (8, 16, or 32) * Value - Pointer to in or out value * HandlerContext - Pointer to Handler's context * RegionContext - Pointer to context specific to the * accessed region * * RETURN: Status * * DESCRIPTION: Handler for the PCI BarTarget address space (Op Region) * ******************************************************************************/ ACPI_STATUS AcpiExPciBarSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (ExPciBarSpaceHandler); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExDataTableSpaceHandler * * PARAMETERS: Function - Read or Write operation * Address - Where in the space to read or write * BitWidth - Field width in bits (8, 16, or 32) * Value - Pointer to in or out value * HandlerContext - Pointer to Handler's context * RegionContext - Pointer to context specific to the * accessed region * * RETURN: Status * * DESCRIPTION: Handler for the Data Table address space (Op Region) * ******************************************************************************/ ACPI_STATUS AcpiExDataTableSpaceHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) { ACPI_DATA_TABLE_MAPPING *Mapping; char *Pointer; ACPI_FUNCTION_TRACE (ExDataTableSpaceHandler); Mapping = (ACPI_DATA_TABLE_MAPPING *) RegionContext; Pointer = ACPI_CAST_PTR (char, Mapping->Pointer) + (Address - ACPI_PTR_TO_PHYSADDR (Mapping->Pointer)); /* * Perform the memory read or write. The BitWidth was already * validated. */ switch (Function) { case ACPI_READ: memcpy (ACPI_CAST_PTR (char, Value), Pointer, ACPI_DIV_8 (BitWidth)); break; case ACPI_WRITE: memcpy (Pointer, ACPI_CAST_PTR (char, Value), ACPI_DIV_8 (BitWidth)); break; default: return_ACPI_STATUS (AE_BAD_PARAMETER); } return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/executer/exmutex.c0000775000175000017500000004223314773714132022721 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exmutex - ASL Mutex Acquire/Release functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "acevents.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exmutex") /* Local prototypes */ static void AcpiExLinkMutex ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_THREAD_STATE *Thread); /******************************************************************************* * * FUNCTION: AcpiExUnlinkMutex * * PARAMETERS: ObjDesc - The mutex to be unlinked * * RETURN: None * * DESCRIPTION: Remove a mutex from the "AcquiredMutex" list * ******************************************************************************/ void AcpiExUnlinkMutex ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread; if (!Thread) { return; } /* Doubly linked list */ if (ObjDesc->Mutex.Next) { (ObjDesc->Mutex.Next)->Mutex.Prev = ObjDesc->Mutex.Prev; } if (ObjDesc->Mutex.Prev) { (ObjDesc->Mutex.Prev)->Mutex.Next = ObjDesc->Mutex.Next; /* * Migrate the previous sync level associated with this mutex to * the previous mutex on the list so that it may be preserved. * This handles the case where several mutexes have been acquired * at the same level, but are not released in opposite order. */ (ObjDesc->Mutex.Prev)->Mutex.OriginalSyncLevel = ObjDesc->Mutex.OriginalSyncLevel; } else { Thread->AcquiredMutexList = ObjDesc->Mutex.Next; } } /******************************************************************************* * * FUNCTION: AcpiExLinkMutex * * PARAMETERS: ObjDesc - The mutex to be linked * Thread - Current executing thread object * * RETURN: None * * DESCRIPTION: Add a mutex to the "AcquiredMutex" list for this walk * ******************************************************************************/ static void AcpiExLinkMutex ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_THREAD_STATE *Thread) { ACPI_OPERAND_OBJECT *ListHead; ListHead = Thread->AcquiredMutexList; /* This object will be the first object in the list */ ObjDesc->Mutex.Prev = NULL; ObjDesc->Mutex.Next = ListHead; /* Update old first object to point back to this object */ if (ListHead) { ListHead->Mutex.Prev = ObjDesc; } /* Update list head */ Thread->AcquiredMutexList = ObjDesc; } /******************************************************************************* * * FUNCTION: AcpiExAcquireMutexObject * * PARAMETERS: Timeout - Timeout in milliseconds * ObjDesc - Mutex object * ThreadId - Current thread state * * RETURN: Status * * DESCRIPTION: Acquire an AML mutex, low-level interface. Provides a common * path that supports multiple acquires by the same thread. * * MUTEX: Interpreter must be locked * * NOTE: This interface is called from three places: * 1) From AcpiExAcquireMutex, via an AML Acquire() operator * 2) From AcpiExAcquireGlobalLock when an AML Field access requires the * global lock * 3) From the external interface, AcpiAcquireGlobalLock * ******************************************************************************/ ACPI_STATUS AcpiExAcquireMutexObject ( UINT16 Timeout, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_THREAD_ID ThreadId) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (ExAcquireMutexObject, ObjDesc); if (!ObjDesc) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Support for multiple acquires by the owning thread */ if (ObjDesc->Mutex.ThreadId == ThreadId) { /* * The mutex is already owned by this thread, just increment the * acquisition depth */ ObjDesc->Mutex.AcquisitionDepth++; return_ACPI_STATUS (AE_OK); } /* Acquire the mutex, wait if necessary. Special case for Global Lock */ if (ObjDesc == AcpiGbl_GlobalLockMutex) { Status = AcpiEvAcquireGlobalLock (Timeout); } else { Status = AcpiExSystemWaitMutex (ObjDesc->Mutex.OsMutex, Timeout); } if (ACPI_FAILURE (Status)) { /* Includes failure from a timeout on TimeDesc */ return_ACPI_STATUS (Status); } /* Acquired the mutex: update mutex object */ ObjDesc->Mutex.ThreadId = ThreadId; ObjDesc->Mutex.AcquisitionDepth = 1; ObjDesc->Mutex.OriginalSyncLevel = 0; ObjDesc->Mutex.OwnerThread = NULL; /* Used only for AML Acquire() */ return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExAcquireMutex * * PARAMETERS: TimeDesc - Timeout integer * ObjDesc - Mutex object * WalkState - Current method execution state * * RETURN: Status * * DESCRIPTION: Acquire an AML mutex * ******************************************************************************/ ACPI_STATUS AcpiExAcquireMutex ( ACPI_OPERAND_OBJECT *TimeDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (ExAcquireMutex, ObjDesc); if (!ObjDesc) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Must have a valid thread state struct */ if (!WalkState->Thread) { ACPI_ERROR ((AE_INFO, "Cannot acquire Mutex [%4.4s], null thread info", AcpiUtGetNodeName (ObjDesc->Mutex.Node))); return_ACPI_STATUS (AE_AML_INTERNAL); } /* * Current sync level must be less than or equal to the sync level * of the mutex. This mechanism provides some deadlock prevention. */ if (WalkState->Thread->CurrentSyncLevel > ObjDesc->Mutex.SyncLevel) { ACPI_ERROR ((AE_INFO, "Cannot acquire Mutex [%4.4s], " "current SyncLevel is too large (%u)", AcpiUtGetNodeName (ObjDesc->Mutex.Node), WalkState->Thread->CurrentSyncLevel)); return_ACPI_STATUS (AE_AML_MUTEX_ORDER); } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Acquiring: Mutex SyncLevel %u, Thread SyncLevel %u, " "Depth %u TID %p\n", ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel, ObjDesc->Mutex.AcquisitionDepth, WalkState->Thread)); Status = AcpiExAcquireMutexObject ((UINT16) TimeDesc->Integer.Value, ObjDesc, WalkState->Thread->ThreadId); if (ACPI_SUCCESS (Status) && ObjDesc->Mutex.AcquisitionDepth == 1) { /* Save Thread object, original/current sync levels */ ObjDesc->Mutex.OwnerThread = WalkState->Thread; ObjDesc->Mutex.OriginalSyncLevel = WalkState->Thread->CurrentSyncLevel; WalkState->Thread->CurrentSyncLevel = ObjDesc->Mutex.SyncLevel; /* Link the mutex to the current thread for force-unlock at method exit */ AcpiExLinkMutex (ObjDesc, WalkState->Thread); } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Acquired: Mutex SyncLevel %u, Thread SyncLevel %u, Depth %u\n", ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel, ObjDesc->Mutex.AcquisitionDepth)); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExReleaseMutexObject * * PARAMETERS: ObjDesc - The object descriptor for this op * * RETURN: Status * * DESCRIPTION: Release a previously acquired Mutex, low level interface. * Provides a common path that supports multiple releases (after * previous multiple acquires) by the same thread. * * MUTEX: Interpreter must be locked * * NOTE: This interface is called from three places: * 1) From AcpiExReleaseMutex, via an AML Acquire() operator * 2) From AcpiExReleaseGlobalLock when an AML Field access requires the * global lock * 3) From the external interface, AcpiReleaseGlobalLock * ******************************************************************************/ ACPI_STATUS AcpiExReleaseMutexObject ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (ExReleaseMutexObject); if (ObjDesc->Mutex.AcquisitionDepth == 0) { return_ACPI_STATUS (AE_NOT_ACQUIRED); } /* Match multiple Acquires with multiple Releases */ ObjDesc->Mutex.AcquisitionDepth--; if (ObjDesc->Mutex.AcquisitionDepth != 0) { /* Just decrement the depth and return */ return_ACPI_STATUS (AE_OK); } if (ObjDesc->Mutex.OwnerThread) { /* Unlink the mutex from the owner's list */ AcpiExUnlinkMutex (ObjDesc); ObjDesc->Mutex.OwnerThread = NULL; } /* Release the mutex, special case for Global Lock */ if (ObjDesc == AcpiGbl_GlobalLockMutex) { Status = AcpiEvReleaseGlobalLock (); } else { AcpiOsReleaseMutex (ObjDesc->Mutex.OsMutex); } /* Clear mutex info */ ObjDesc->Mutex.ThreadId = 0; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExReleaseMutex * * PARAMETERS: ObjDesc - The object descriptor for this op * WalkState - Current method execution state * * RETURN: Status * * DESCRIPTION: Release a previously acquired Mutex. * ******************************************************************************/ ACPI_STATUS AcpiExReleaseMutex ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { UINT8 PreviousSyncLevel; ACPI_THREAD_STATE *OwnerThread; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (ExReleaseMutex); if (!ObjDesc) { return_ACPI_STATUS (AE_BAD_PARAMETER); } OwnerThread = ObjDesc->Mutex.OwnerThread; /* The mutex must have been previously acquired in order to release it */ if (!OwnerThread) { ACPI_ERROR ((AE_INFO, "Cannot release Mutex [%4.4s], not acquired", AcpiUtGetNodeName (ObjDesc->Mutex.Node))); return_ACPI_STATUS (AE_AML_MUTEX_NOT_ACQUIRED); } /* Must have a valid thread ID */ if (!WalkState->Thread) { ACPI_ERROR ((AE_INFO, "Cannot release Mutex [%4.4s], null thread info", AcpiUtGetNodeName (ObjDesc->Mutex.Node))); return_ACPI_STATUS (AE_AML_INTERNAL); } /* * The Mutex is owned, but this thread must be the owner. * Special case for Global Lock, any thread can release */ if ((OwnerThread->ThreadId != WalkState->Thread->ThreadId) && (ObjDesc != AcpiGbl_GlobalLockMutex)) { ACPI_ERROR ((AE_INFO, "Thread %u cannot release Mutex [%4.4s] acquired by thread %u", (UINT32) WalkState->Thread->ThreadId, AcpiUtGetNodeName (ObjDesc->Mutex.Node), (UINT32) OwnerThread->ThreadId)); return_ACPI_STATUS (AE_AML_NOT_OWNER); } /* * The sync level of the mutex must be equal to the current sync level. In * other words, the current level means that at least one mutex at that * level is currently being held. Attempting to release a mutex of a * different level can only mean that the mutex ordering rule is being * violated. This behavior is clarified in ACPI 4.0 specification. */ if (ObjDesc->Mutex.SyncLevel != OwnerThread->CurrentSyncLevel) { ACPI_ERROR ((AE_INFO, "Cannot release Mutex [%4.4s], SyncLevel mismatch: " "mutex %u current %u", AcpiUtGetNodeName (ObjDesc->Mutex.Node), ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel)); return_ACPI_STATUS (AE_AML_MUTEX_ORDER); } /* * Get the previous SyncLevel from the head of the acquired mutex list. * This handles the case where several mutexes at the same level have been * acquired, but are not released in reverse order. */ PreviousSyncLevel = OwnerThread->AcquiredMutexList->Mutex.OriginalSyncLevel; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Releasing: Object SyncLevel %u, Thread SyncLevel %u, " "Prev SyncLevel %u, Depth %u TID %p\n", ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel, PreviousSyncLevel, ObjDesc->Mutex.AcquisitionDepth, WalkState->Thread)); Status = AcpiExReleaseMutexObject (ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (ObjDesc->Mutex.AcquisitionDepth == 0) { /* Restore the previous SyncLevel */ OwnerThread->CurrentSyncLevel = PreviousSyncLevel; } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Released: Object SyncLevel %u, Thread SyncLevel, %u, " "Prev SyncLevel %u, Depth %u\n", ObjDesc->Mutex.SyncLevel, WalkState->Thread->CurrentSyncLevel, PreviousSyncLevel, ObjDesc->Mutex.AcquisitionDepth)); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExReleaseAllMutexes * * PARAMETERS: Thread - Current executing thread object * * RETURN: Status * * DESCRIPTION: Release all mutexes held by this thread * * NOTE: This function is called as the thread is exiting the interpreter. * Mutexes are not released when an individual control method is exited, but * only when the parent thread actually exits the interpreter. This allows one * method to acquire a mutex, and a different method to release it, as long as * this is performed underneath a single parent control method. * ******************************************************************************/ void AcpiExReleaseAllMutexes ( ACPI_THREAD_STATE *Thread) { ACPI_OPERAND_OBJECT *Next = Thread->AcquiredMutexList; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_TRACE (ExReleaseAllMutexes); /* Traverse the list of owned mutexes, releasing each one */ while (Next) { ObjDesc = Next; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Mutex [%4.4s] force-release, SyncLevel %u Depth %u\n", ObjDesc->Mutex.Node->Name.Ascii, ObjDesc->Mutex.SyncLevel, ObjDesc->Mutex.AcquisitionDepth)); /* Release the mutex, special case for Global Lock */ if (ObjDesc == AcpiGbl_GlobalLockMutex) { /* Ignore errors */ (void) AcpiEvReleaseGlobalLock (); } else { AcpiOsReleaseMutex (ObjDesc->Mutex.OsMutex); } /* Update Thread SyncLevel (Last mutex is the important one) */ Thread->CurrentSyncLevel = ObjDesc->Mutex.OriginalSyncLevel; /* Mark mutex unowned */ Next = ObjDesc->Mutex.Next; ObjDesc->Mutex.Prev = NULL; ObjDesc->Mutex.Next = NULL; ObjDesc->Mutex.AcquisitionDepth = 0; ObjDesc->Mutex.OwnerThread = NULL; ObjDesc->Mutex.ThreadId = 0; } return_VOID; } acpica-unix-20250404/source/components/executer/exdump.c0000775000175000017500000012020014773714132022513 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exdump - Interpreter debug output routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #include "acnamesp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exdump") /* * The following routines are used for debug output only */ #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) /* Local prototypes */ static void AcpiExOutString ( const char *Title, const char *Value); static void AcpiExOutPointer ( const char *Title, const void *Value); static void AcpiExDumpObject ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_EXDUMP_INFO *Info); static void AcpiExDumpReferenceObj ( ACPI_OPERAND_OBJECT *ObjDesc); static void AcpiExDumpPackageObj ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 Level, UINT32 Index); /******************************************************************************* * * Object Descriptor info tables * * Note: The first table entry must be an INIT opcode and must contain * the table length (number of table entries) * ******************************************************************************/ static ACPI_EXDUMP_INFO AcpiExDumpInteger[2] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpInteger), NULL}, {ACPI_EXD_UINT64, ACPI_EXD_OFFSET (Integer.Value), "Value"} }; static ACPI_EXDUMP_INFO AcpiExDumpString[4] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpString), NULL}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (String.Length), "Length"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (String.Pointer), "Pointer"}, {ACPI_EXD_STRING, 0, NULL} }; static ACPI_EXDUMP_INFO AcpiExDumpBuffer[5] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpBuffer), NULL}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Buffer.Length), "Length"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Buffer.Pointer), "Pointer"}, {ACPI_EXD_NODE, ACPI_EXD_OFFSET (Buffer.Node), "Parent Node"}, {ACPI_EXD_BUFFER, 0, NULL} }; static ACPI_EXDUMP_INFO AcpiExDumpPackage[6] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpPackage), NULL}, {ACPI_EXD_NODE, ACPI_EXD_OFFSET (Package.Node), "Parent Node"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Package.Flags), "Flags"}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Package.Count), "Element Count"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Package.Elements), "Element List"}, {ACPI_EXD_PACKAGE, 0, NULL} }; static ACPI_EXDUMP_INFO AcpiExDumpDevice[4] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpDevice), NULL}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Device.NotifyList[0]), "System Notify"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Device.NotifyList[1]), "Device Notify"}, {ACPI_EXD_HDLR_LIST,ACPI_EXD_OFFSET (Device.Handler), "Handler"} }; static ACPI_EXDUMP_INFO AcpiExDumpEvent[2] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpEvent), NULL}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Event.OsSemaphore), "OsSemaphore"} }; static ACPI_EXDUMP_INFO AcpiExDumpMethod[9] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpMethod), NULL}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Method.InfoFlags), "Info Flags"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Method.ParamCount), "Parameter Count"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Method.SyncLevel), "Sync Level"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Method.Mutex), "Mutex"}, {ACPI_EXD_UINT16, ACPI_EXD_OFFSET (Method.OwnerId), "Owner Id"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Method.ThreadCount), "Thread Count"}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Method.AmlLength), "Aml Length"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Method.AmlStart), "Aml Start"} }; static ACPI_EXDUMP_INFO AcpiExDumpMutex[6] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpMutex), NULL}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Mutex.SyncLevel), "Sync Level"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Mutex.OriginalSyncLevel), "Original Sync Level"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Mutex.OwnerThread), "Owner Thread"}, {ACPI_EXD_UINT16, ACPI_EXD_OFFSET (Mutex.AcquisitionDepth), "Acquire Depth"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Mutex.OsMutex), "OsMutex"} }; static ACPI_EXDUMP_INFO AcpiExDumpRegion[8] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpRegion), NULL}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Region.SpaceId), "Space Id"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Region.Flags), "Flags"}, {ACPI_EXD_NODE, ACPI_EXD_OFFSET (Region.Node), "Parent Node"}, {ACPI_EXD_ADDRESS, ACPI_EXD_OFFSET (Region.Address), "Address"}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Region.Length), "Length"}, {ACPI_EXD_HDLR_LIST,ACPI_EXD_OFFSET (Region.Handler), "Handler"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Region.Next), "Next"} }; static ACPI_EXDUMP_INFO AcpiExDumpPower[6] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpPower), NULL}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (PowerResource.SystemLevel), "System Level"}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (PowerResource.ResourceOrder), "Resource Order"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (PowerResource.NotifyList[0]), "System Notify"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (PowerResource.NotifyList[1]), "Device Notify"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (PowerResource.Handler), "Handler"} }; static ACPI_EXDUMP_INFO AcpiExDumpProcessor[7] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpProcessor), NULL}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Processor.ProcId), "Processor ID"}, {ACPI_EXD_UINT8 , ACPI_EXD_OFFSET (Processor.Length), "Length"}, {ACPI_EXD_ADDRESS, ACPI_EXD_OFFSET (Processor.Address), "Address"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Processor.NotifyList[0]), "System Notify"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Processor.NotifyList[1]), "Device Notify"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Processor.Handler), "Handler"} }; static ACPI_EXDUMP_INFO AcpiExDumpThermal[4] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpThermal), NULL}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (ThermalZone.NotifyList[0]), "System Notify"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (ThermalZone.NotifyList[1]), "Device Notify"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (ThermalZone.Handler), "Handler"} }; static ACPI_EXDUMP_INFO AcpiExDumpBufferField[3] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpBufferField), NULL}, {ACPI_EXD_FIELD, 0, NULL}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (BufferField.BufferObj), "Buffer Object"} }; static ACPI_EXDUMP_INFO AcpiExDumpRegionField[5] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpRegionField), NULL}, {ACPI_EXD_FIELD, 0, NULL}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Field.AccessLength), "AccessLength"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Field.RegionObj), "Region Object"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Field.ResourceBuffer), "ResourceBuffer"} }; static ACPI_EXDUMP_INFO AcpiExDumpBankField[5] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpBankField), NULL}, {ACPI_EXD_FIELD, 0, NULL}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (BankField.Value), "Value"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (BankField.RegionObj), "Region Object"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (BankField.BankObj), "Bank Object"} }; static ACPI_EXDUMP_INFO AcpiExDumpIndexField[5] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpBankField), NULL}, {ACPI_EXD_FIELD, 0, NULL}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (IndexField.Value), "Value"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (IndexField.IndexObj), "Index Object"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (IndexField.DataObj), "Data Object"} }; static ACPI_EXDUMP_INFO AcpiExDumpReference[9] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpReference), NULL}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Reference.Class), "Class"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Reference.TargetType), "Target Type"}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Reference.Value), "Value"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Reference.Object), "Object Desc"}, {ACPI_EXD_NODE, ACPI_EXD_OFFSET (Reference.Node), "Node"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Reference.Where), "Where"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Reference.IndexPointer), "Index Pointer"}, {ACPI_EXD_REFERENCE,0, NULL} }; static ACPI_EXDUMP_INFO AcpiExDumpAddressHandler[6] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpAddressHandler), NULL}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (AddressSpace.SpaceId), "Space Id"}, {ACPI_EXD_HDLR_LIST,ACPI_EXD_OFFSET (AddressSpace.Next), "Next"}, {ACPI_EXD_RGN_LIST, ACPI_EXD_OFFSET (AddressSpace.RegionList), "Region List"}, {ACPI_EXD_NODE, ACPI_EXD_OFFSET (AddressSpace.Node), "Node"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (AddressSpace.Context), "Context"} }; static ACPI_EXDUMP_INFO AcpiExDumpNotify[7] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpNotify), NULL}, {ACPI_EXD_NODE, ACPI_EXD_OFFSET (Notify.Node), "Node"}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Notify.HandlerType), "Handler Type"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Notify.Handler), "Handler"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Notify.Context), "Context"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Notify.Next[0]), "Next System Notify"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Notify.Next[1]), "Next Device Notify"} }; static ACPI_EXDUMP_INFO AcpiExDumpExtra[6] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpExtra), NULL}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Extra.Method_REG), "_REG Method"}, {ACPI_EXD_NODE, ACPI_EXD_OFFSET (Extra.ScopeNode), "Scope Node"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Extra.RegionContext), "Region Context"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Extra.AmlStart), "Aml Start"}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Extra.AmlLength), "Aml Length"} }; static ACPI_EXDUMP_INFO AcpiExDumpData[3] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpData), NULL}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Data.Handler), "Handler"}, {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Data.Pointer), "Raw Data"} }; /* Miscellaneous tables */ static ACPI_EXDUMP_INFO AcpiExDumpCommon[5] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpCommon), NULL}, {ACPI_EXD_TYPE , 0, NULL}, {ACPI_EXD_UINT16, ACPI_EXD_OFFSET (Common.ReferenceCount), "Reference Count"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Common.Flags), "Flags"}, {ACPI_EXD_LIST, ACPI_EXD_OFFSET (Common.NextObject), "Object List"} }; static ACPI_EXDUMP_INFO AcpiExDumpFieldCommon[7] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpFieldCommon), NULL}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (CommonField.FieldFlags), "Field Flags"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (CommonField.AccessByteWidth), "Access Byte Width"}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (CommonField.BitLength), "Bit Length"}, {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (CommonField.StartFieldBitOffset),"Field Bit Offset"}, {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (CommonField.BaseByteOffset), "Base Byte Offset"}, {ACPI_EXD_NODE, ACPI_EXD_OFFSET (CommonField.Node), "Parent Node"} }; static ACPI_EXDUMP_INFO AcpiExDumpNode[7] = { {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE (AcpiExDumpNode), NULL}, {ACPI_EXD_UINT16, ACPI_EXD_NSOFFSET (Flags), "Flags"}, {ACPI_EXD_UINT16, ACPI_EXD_NSOFFSET (OwnerId), "Owner Id"}, {ACPI_EXD_LIST, ACPI_EXD_NSOFFSET (Object), "Object List"}, {ACPI_EXD_NODE, ACPI_EXD_NSOFFSET (Parent), "Parent"}, {ACPI_EXD_NODE, ACPI_EXD_NSOFFSET (Child), "Child"}, {ACPI_EXD_NODE, ACPI_EXD_NSOFFSET (Peer), "Peer"} }; /* Dispatch table, indexed by object type */ static ACPI_EXDUMP_INFO *AcpiExDumpInfo[] = { NULL, AcpiExDumpInteger, AcpiExDumpString, AcpiExDumpBuffer, AcpiExDumpPackage, NULL, AcpiExDumpDevice, AcpiExDumpEvent, AcpiExDumpMethod, AcpiExDumpMutex, AcpiExDumpRegion, AcpiExDumpPower, AcpiExDumpProcessor, AcpiExDumpThermal, AcpiExDumpBufferField, NULL, NULL, AcpiExDumpRegionField, AcpiExDumpBankField, AcpiExDumpIndexField, AcpiExDumpReference, NULL, NULL, AcpiExDumpNotify, AcpiExDumpAddressHandler, NULL, NULL, NULL, AcpiExDumpExtra, AcpiExDumpData }; /******************************************************************************* * * FUNCTION: AcpiExDumpObject * * PARAMETERS: ObjDesc - Descriptor to dump * Info - Info table corresponding to this object * type * * RETURN: None * * DESCRIPTION: Walk the info table for this object * ******************************************************************************/ static void AcpiExDumpObject ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_EXDUMP_INFO *Info) { UINT8 *Target; const char *Name; UINT8 Count; ACPI_OPERAND_OBJECT *Start; ACPI_OPERAND_OBJECT *Data = NULL; ACPI_OPERAND_OBJECT *Next; ACPI_NAMESPACE_NODE *Node; if (!Info) { AcpiOsPrintf ( "ExDumpObject: Display not implemented for object type %s\n", AcpiUtGetObjectTypeName (ObjDesc)); return; } /* First table entry must contain the table length (# of table entries) */ Count = Info->Offset; while (Count) { if (!ObjDesc) { return; } Target = ACPI_ADD_PTR (UINT8, ObjDesc, Info->Offset); Name = Info->Name; switch (Info->Opcode) { case ACPI_EXD_INIT: break; case ACPI_EXD_TYPE: AcpiOsPrintf ("%20s : %2.2X [%s]\n", "Type", ObjDesc->Common.Type, AcpiUtGetObjectTypeName (ObjDesc)); break; case ACPI_EXD_UINT8: AcpiOsPrintf ("%20s : %2.2X\n", Name, *Target); break; case ACPI_EXD_UINT16: AcpiOsPrintf ("%20s : %4.4X\n", Name, ACPI_GET16 (Target)); break; case ACPI_EXD_UINT32: AcpiOsPrintf ("%20s : %8.8X\n", Name, ACPI_GET32 (Target)); break; case ACPI_EXD_UINT64: AcpiOsPrintf ("%20s : %8.8X%8.8X\n", "Value", ACPI_FORMAT_UINT64 (ACPI_GET64 (Target))); break; case ACPI_EXD_POINTER: case ACPI_EXD_ADDRESS: AcpiExOutPointer (Name, *ACPI_CAST_PTR (void *, Target)); break; case ACPI_EXD_STRING: AcpiUtPrintString (ObjDesc->String.Pointer, ACPI_UINT8_MAX); AcpiOsPrintf ("\n"); break; case ACPI_EXD_BUFFER: ACPI_DUMP_BUFFER ( ObjDesc->Buffer.Pointer, ObjDesc->Buffer.Length); break; case ACPI_EXD_PACKAGE: /* Dump the package contents */ AcpiOsPrintf ("\nPackage Contents:\n"); AcpiExDumpPackageObj (ObjDesc, 0, 0); break; case ACPI_EXD_FIELD: AcpiExDumpObject (ObjDesc, AcpiExDumpFieldCommon); break; case ACPI_EXD_REFERENCE: AcpiExOutString ("Class Name", AcpiUtGetReferenceName (ObjDesc)); AcpiExDumpReferenceObj (ObjDesc); break; case ACPI_EXD_LIST: Start = *ACPI_CAST_PTR (void *, Target); Next = Start; AcpiOsPrintf ("%20s : %p ", Name, Next); if (Next) { AcpiOsPrintf ("%s (Type %2.2X)", AcpiUtGetObjectTypeName (Next), Next->Common.Type); while (Next->Common.NextObject) { if ((Next->Common.Type == ACPI_TYPE_LOCAL_DATA) && !Data) { Data = Next; } Next = Next->Common.NextObject; AcpiOsPrintf ("->%p(%s %2.2X)", Next, AcpiUtGetObjectTypeName (Next), Next->Common.Type); if ((Next == Start) || (Next == Data)) { AcpiOsPrintf ( "\n**** Error: Object list appears to be circular linked"); break; } } } else { AcpiOsPrintf ("- No attached objects"); } AcpiOsPrintf ("\n"); break; case ACPI_EXD_HDLR_LIST: Start = *ACPI_CAST_PTR (void *, Target); Next = Start; AcpiOsPrintf ("%20s : %p", Name, Next); if (Next) { AcpiOsPrintf ("(%s %2.2X)", AcpiUtGetObjectTypeName (Next), Next->AddressSpace.SpaceId); while (Next->AddressSpace.Next) { if ((Next->Common.Type == ACPI_TYPE_LOCAL_DATA) && !Data) { Data = Next; } Next = Next->AddressSpace.Next; AcpiOsPrintf ("->%p(%s %2.2X)", Next, AcpiUtGetObjectTypeName (Next), Next->AddressSpace.SpaceId); if ((Next == Start) || (Next == Data)) { AcpiOsPrintf ( "\n**** Error: Handler list appears to be circular linked"); break; } } } AcpiOsPrintf ("\n"); break; case ACPI_EXD_RGN_LIST: Start = *ACPI_CAST_PTR (void *, Target); Next = Start; AcpiOsPrintf ("%20s : %p", Name, Next); if (Next) { AcpiOsPrintf ("(%s %2.2X)", AcpiUtGetObjectTypeName (Next), Next->Common.Type); while (Next->Region.Next) { if ((Next->Common.Type == ACPI_TYPE_LOCAL_DATA) && !Data) { Data = Next; } Next = Next->Region.Next; AcpiOsPrintf ("->%p(%s %2.2X)", Next, AcpiUtGetObjectTypeName (Next), Next->Common.Type); if ((Next == Start) || (Next == Data)) { AcpiOsPrintf ( "\n**** Error: Region list appears to be circular linked"); break; } } } AcpiOsPrintf ("\n"); break; case ACPI_EXD_NODE: Node = *ACPI_CAST_PTR (ACPI_NAMESPACE_NODE *, Target); AcpiOsPrintf ("%20s : %p", Name, Node); if (Node) { AcpiOsPrintf (" [%4.4s]", Node->Name.Ascii); } AcpiOsPrintf ("\n"); break; default: AcpiOsPrintf ("**** Invalid table opcode [%X] ****\n", Info->Opcode); return; } Info++; Count--; } } /******************************************************************************* * * FUNCTION: AcpiExDumpOperand * * PARAMETERS: *ObjDesc - Pointer to entry to be dumped * Depth - Current nesting depth * * RETURN: None * * DESCRIPTION: Dump an operand object * ******************************************************************************/ void AcpiExDumpOperand ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 Depth) { UINT32 Length; UINT32 Index; ACPI_FUNCTION_NAME (ExDumpOperand); /* Check if debug output enabled */ if (!ACPI_IS_DEBUG_ENABLED (ACPI_LV_EXEC, _COMPONENT)) { return; } if (!ObjDesc) { /* This could be a null element of a package */ ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Null Object Descriptor\n")); return; } if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_NAMED) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%p Namespace Node: ", ObjDesc)); ACPI_DUMP_ENTRY (ObjDesc, ACPI_LV_EXEC); return; } if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%p is not a node or operand object: [%s]\n", ObjDesc, AcpiUtGetDescriptorName (ObjDesc))); ACPI_DUMP_BUFFER (ObjDesc, sizeof (ACPI_OPERAND_OBJECT)); return; } /* ObjDesc is a valid object */ if (Depth > 0) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%*s[%u] %p Refs=%u ", Depth, " ", Depth, ObjDesc, ObjDesc->Common.ReferenceCount)); } else { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%p Refs=%u ", ObjDesc, ObjDesc->Common.ReferenceCount)); } /* Decode object type */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_LOCAL_REFERENCE: AcpiOsPrintf ("Reference: [%s] ", AcpiUtGetReferenceName (ObjDesc)); switch (ObjDesc->Reference.Class) { case ACPI_REFCLASS_DEBUG: AcpiOsPrintf ("\n"); break; case ACPI_REFCLASS_INDEX: AcpiOsPrintf ("%p\n", ObjDesc->Reference.Object); break; case ACPI_REFCLASS_TABLE: AcpiOsPrintf ("Table Index %X\n", ObjDesc->Reference.Value); break; case ACPI_REFCLASS_REFOF: AcpiOsPrintf ("%p [%s]\n", ObjDesc->Reference.Object, AcpiUtGetTypeName (((ACPI_OPERAND_OBJECT *) ObjDesc->Reference.Object)->Common.Type)); break; case ACPI_REFCLASS_NAME: AcpiUtRepairName (ObjDesc->Reference.Node->Name.Ascii); AcpiOsPrintf ("- [%4.4s] (Node %p)\n", ObjDesc->Reference.Node->Name.Ascii, ObjDesc->Reference.Node); break; case ACPI_REFCLASS_ARG: case ACPI_REFCLASS_LOCAL: AcpiOsPrintf ("%X\n", ObjDesc->Reference.Value); break; default: /* Unknown reference class */ AcpiOsPrintf ("%2.2X\n", ObjDesc->Reference.Class); break; } break; case ACPI_TYPE_BUFFER: AcpiOsPrintf ("Buffer length %.2X @ %p\n", ObjDesc->Buffer.Length, ObjDesc->Buffer.Pointer); /* Debug only -- dump the buffer contents */ if (ObjDesc->Buffer.Pointer) { Length = ObjDesc->Buffer.Length; if (Length > 128) { Length = 128; } AcpiOsPrintf ( "Buffer Contents: (displaying length 0x%.2X)\n", Length); ACPI_DUMP_BUFFER (ObjDesc->Buffer.Pointer, Length); } break; case ACPI_TYPE_INTEGER: AcpiOsPrintf ("Integer %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value)); break; case ACPI_TYPE_PACKAGE: AcpiOsPrintf ("Package [Len %X] ElementArray %p\n", ObjDesc->Package.Count, ObjDesc->Package.Elements); /* * If elements exist, package element pointer is valid, * and debug_level exceeds 1, dump package's elements. */ if (ObjDesc->Package.Count && ObjDesc->Package.Elements && AcpiDbgLevel > 1) { for (Index = 0; Index < ObjDesc->Package.Count; Index++) { AcpiExDumpOperand ( ObjDesc->Package.Elements[Index], Depth + 1); } } break; case ACPI_TYPE_REGION: AcpiOsPrintf ("Region %s (%X)", AcpiUtGetRegionName (ObjDesc->Region.SpaceId), ObjDesc->Region.SpaceId); /* * If the address and length have not been evaluated, * don't print them. */ if (!(ObjDesc->Region.Flags & AOPOBJ_DATA_VALID)) { AcpiOsPrintf ("\n"); } else { AcpiOsPrintf (" base %8.8X%8.8X Length %X\n", ACPI_FORMAT_UINT64 (ObjDesc->Region.Address), ObjDesc->Region.Length); } break; case ACPI_TYPE_STRING: AcpiOsPrintf ("String length %X @ %p ", ObjDesc->String.Length, ObjDesc->String.Pointer); AcpiUtPrintString (ObjDesc->String.Pointer, ACPI_UINT8_MAX); AcpiOsPrintf ("\n"); break; case ACPI_TYPE_LOCAL_BANK_FIELD: AcpiOsPrintf ("BankField\n"); break; case ACPI_TYPE_LOCAL_REGION_FIELD: AcpiOsPrintf ("RegionField: Bits=%X AccWidth=%X Lock=%X Update=%X at " "byte=%X bit=%X of below:\n", ObjDesc->Field.BitLength, ObjDesc->Field.AccessByteWidth, ObjDesc->Field.FieldFlags & AML_FIELD_LOCK_RULE_MASK, ObjDesc->Field.FieldFlags & AML_FIELD_UPDATE_RULE_MASK, ObjDesc->Field.BaseByteOffset, ObjDesc->Field.StartFieldBitOffset); AcpiExDumpOperand (ObjDesc->Field.RegionObj, Depth + 1); break; case ACPI_TYPE_LOCAL_INDEX_FIELD: AcpiOsPrintf ("IndexField\n"); break; case ACPI_TYPE_BUFFER_FIELD: AcpiOsPrintf ("BufferField: %X bits at byte %X bit %X of\n", ObjDesc->BufferField.BitLength, ObjDesc->BufferField.BaseByteOffset, ObjDesc->BufferField.StartFieldBitOffset); if (!ObjDesc->BufferField.BufferObj) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "*NULL*\n")); } else if ((ObjDesc->BufferField.BufferObj)->Common.Type != ACPI_TYPE_BUFFER) { AcpiOsPrintf ("*not a Buffer*\n"); } else { AcpiExDumpOperand (ObjDesc->BufferField.BufferObj, Depth + 1); } break; case ACPI_TYPE_EVENT: AcpiOsPrintf ("Event\n"); break; case ACPI_TYPE_METHOD: AcpiOsPrintf ("Method(%X) @ %p:%X\n", ObjDesc->Method.ParamCount, ObjDesc->Method.AmlStart, ObjDesc->Method.AmlLength); break; case ACPI_TYPE_MUTEX: AcpiOsPrintf ("Mutex\n"); break; case ACPI_TYPE_DEVICE: AcpiOsPrintf ("Device\n"); break; case ACPI_TYPE_POWER: AcpiOsPrintf ("Power\n"); break; case ACPI_TYPE_PROCESSOR: AcpiOsPrintf ("Processor\n"); break; case ACPI_TYPE_THERMAL: AcpiOsPrintf ("Thermal\n"); break; default: /* Unknown Type */ AcpiOsPrintf ("Unknown Type %X\n", ObjDesc->Common.Type); break; } return; } /******************************************************************************* * * FUNCTION: AcpiExDumpOperands * * PARAMETERS: Operands - A list of Operand objects * OpcodeName - AML opcode name * NumOperands - Operand count for this opcode * * DESCRIPTION: Dump the operands associated with the opcode * ******************************************************************************/ void AcpiExDumpOperands ( ACPI_OPERAND_OBJECT **Operands, const char *OpcodeName, UINT32 NumOperands) { ACPI_FUNCTION_TRACE (ExDumpOperands); if (!OpcodeName) { OpcodeName = "UNKNOWN"; } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "**** Start operand dump for opcode [%s], %u operands\n", OpcodeName, NumOperands)); if (NumOperands == 0) { NumOperands = 1; } /* Dump the individual operands */ while (NumOperands) { AcpiExDumpOperand (*Operands, 0); Operands++; NumOperands--; } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "**** End operand dump for [%s]\n", OpcodeName)); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiExOut* functions * * PARAMETERS: Title - Descriptive text * Value - Value to be displayed * * DESCRIPTION: Object dump output formatting functions. These functions * reduce the number of format strings required and keeps them * all in one place for easy modification. * ******************************************************************************/ static void AcpiExOutString ( const char *Title, const char *Value) { AcpiOsPrintf ("%20s : %s\n", Title, Value); } static void AcpiExOutPointer ( const char *Title, const void *Value) { AcpiOsPrintf ("%20s : %p\n", Title, Value); } /******************************************************************************* * * FUNCTION: AcpiExDumpNamespaceNode * * PARAMETERS: Node - Descriptor to dump * Flags - Force display if TRUE * * DESCRIPTION: Dumps the members of the given.Node * ******************************************************************************/ void AcpiExDumpNamespaceNode ( ACPI_NAMESPACE_NODE *Node, UINT32 Flags) { ACPI_FUNCTION_ENTRY (); if (!Flags) { /* Check if debug output enabled */ if (!ACPI_IS_DEBUG_ENABLED (ACPI_LV_OBJECTS, _COMPONENT)) { return; } } AcpiOsPrintf ("%20s : %4.4s\n", "Name", AcpiUtGetNodeName (Node)); AcpiOsPrintf ("%20s : %2.2X [%s]\n", "Type", Node->Type, AcpiUtGetTypeName (Node->Type)); AcpiExDumpObject (ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, Node), AcpiExDumpNode); } /******************************************************************************* * * FUNCTION: AcpiExDumpReferenceObj * * PARAMETERS: Object - Descriptor to dump * * DESCRIPTION: Dumps a reference object * ******************************************************************************/ static void AcpiExDumpReferenceObj ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_BUFFER RetBuf; ACPI_STATUS Status; RetBuf.Length = ACPI_ALLOCATE_LOCAL_BUFFER; if (ObjDesc->Reference.Class == ACPI_REFCLASS_NAME) { AcpiOsPrintf (" %p ", ObjDesc->Reference.Node); Status = AcpiNsHandleToPathname (ObjDesc->Reference.Node, &RetBuf, TRUE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf (" Could not convert name to pathname: %s\n", AcpiFormatException (Status)); } else { AcpiOsPrintf ("%s: %s\n", AcpiUtGetTypeName (ObjDesc->Reference.Node->Type), (char *) RetBuf.Pointer); ACPI_FREE (RetBuf.Pointer); } } else if (ObjDesc->Reference.Object) { if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_OPERAND) { AcpiOsPrintf ("%22s %p", "Target :", ObjDesc->Reference.Object); if (ObjDesc->Reference.Class == ACPI_REFCLASS_TABLE) { AcpiOsPrintf (" Table Index: %X\n", ObjDesc->Reference.Value); } else { AcpiOsPrintf (" [%s]\n", AcpiUtGetTypeName (((ACPI_OPERAND_OBJECT *) ObjDesc->Reference.Object)->Common.Type)); } } else { AcpiOsPrintf (" Target: %p\n", ObjDesc->Reference.Object); } } } /******************************************************************************* * * FUNCTION: AcpiExDumpPackageObj * * PARAMETERS: ObjDesc - Descriptor to dump * Level - Indentation Level * Index - Package index for this object * * DESCRIPTION: Dumps the elements of the package * ******************************************************************************/ static void AcpiExDumpPackageObj ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 Level, UINT32 Index) { UINT32 i; /* Indentation and index output */ if (Level > 0) { for (i = 0; i < Level; i++) { AcpiOsPrintf (" "); } AcpiOsPrintf ("[%.2d] ", Index); } AcpiOsPrintf ("%p ", ObjDesc); /* Null package elements are allowed */ if (!ObjDesc) { AcpiOsPrintf ("[Null Object]\n"); return; } /* Packages may only contain a few object types */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_INTEGER: AcpiOsPrintf ("[Integer] = %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value)); break; case ACPI_TYPE_STRING: AcpiOsPrintf ("[String] Value: "); AcpiUtPrintString (ObjDesc->String.Pointer, ACPI_UINT8_MAX); AcpiOsPrintf ("\n"); break; case ACPI_TYPE_BUFFER: AcpiOsPrintf ("[Buffer] Length %.2X = ", ObjDesc->Buffer.Length); if (ObjDesc->Buffer.Length) { AcpiUtDebugDumpBuffer ( ACPI_CAST_PTR (UINT8, ObjDesc->Buffer.Pointer), ObjDesc->Buffer.Length, DB_DWORD_DISPLAY, _COMPONENT); } else { AcpiOsPrintf ("\n"); } break; case ACPI_TYPE_PACKAGE: AcpiOsPrintf ("[Package] Contains %u Elements:\n", ObjDesc->Package.Count); for (i = 0; i < ObjDesc->Package.Count; i++) { AcpiExDumpPackageObj ( ObjDesc->Package.Elements[i], Level + 1, i); } break; case ACPI_TYPE_LOCAL_REFERENCE: AcpiOsPrintf ("[Object Reference] Class [%s]", AcpiUtGetReferenceName (ObjDesc)); AcpiExDumpReferenceObj (ObjDesc); break; default: AcpiOsPrintf ("[%s] Type: %2.2X\n", AcpiUtGetTypeName (ObjDesc->Common.Type), ObjDesc->Common.Type); break; } } /******************************************************************************* * * FUNCTION: AcpiExDumpObjectDescriptor * * PARAMETERS: ObjDesc - Descriptor to dump * Flags - Force display if TRUE * * DESCRIPTION: Dumps the members of the object descriptor given. * ******************************************************************************/ void AcpiExDumpObjectDescriptor ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 Flags) { ACPI_FUNCTION_TRACE (ExDumpObjectDescriptor); if (!ObjDesc) { return_VOID; } if (!Flags) { /* Check if debug output enabled */ if (!ACPI_IS_DEBUG_ENABLED (ACPI_LV_OBJECTS, _COMPONENT)) { return_VOID; } } if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_NAMED) { AcpiExDumpNamespaceNode ((ACPI_NAMESPACE_NODE *) ObjDesc, Flags); ObjDesc = ((ACPI_NAMESPACE_NODE *) ObjDesc)->Object; if (!ObjDesc) { return_VOID; } AcpiOsPrintf ("\nAttached Object %p", ObjDesc); if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_NAMED) { AcpiOsPrintf (" - Namespace Node"); } AcpiOsPrintf (":\n"); goto DumpObject; } if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND) { AcpiOsPrintf ( "%p is not an ACPI operand object: [%s]\n", ObjDesc, AcpiUtGetDescriptorName (ObjDesc)); return_VOID; } /* Validate the object type */ if (ObjDesc->Common.Type > ACPI_TYPE_LOCAL_MAX) { AcpiOsPrintf ("Not a known object type: %2.2X\n", ObjDesc->Common.Type); return_VOID; } DumpObject: if (!ObjDesc) { return_VOID; } /* Common Fields */ AcpiExDumpObject (ObjDesc, AcpiExDumpCommon); /* Object-specific fields */ AcpiExDumpObject (ObjDesc, AcpiExDumpInfo[ObjDesc->Common.Type]); if (ObjDesc->Common.Type == ACPI_TYPE_REGION) { ObjDesc = ObjDesc->Common.NextObject; if (ObjDesc->Common.Type > ACPI_TYPE_LOCAL_MAX) { AcpiOsPrintf ( "Secondary object is not a known object type: %2.2X\n", ObjDesc->Common.Type); return_VOID; } AcpiOsPrintf ("\nExtra attached Object (%p):\n", ObjDesc); AcpiExDumpObject (ObjDesc, AcpiExDumpInfo[ObjDesc->Common.Type]); } return_VOID; } #endif acpica-unix-20250404/source/components/executer/exfldio.c0000775000175000017500000010040514773714132022650 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exfldio - Aml Field I/O * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #include "acevents.h" #include "acdispat.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exfldio") /* Local prototypes */ static ACPI_STATUS AcpiExFieldDatumIo ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 FieldDatumByteOffset, UINT64 *Value, UINT32 ReadWrite); static BOOLEAN AcpiExRegisterOverflow ( ACPI_OPERAND_OBJECT *ObjDesc, UINT64 Value); static ACPI_STATUS AcpiExSetupRegion ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 FieldDatumByteOffset); /******************************************************************************* * * FUNCTION: AcpiExSetupRegion * * PARAMETERS: ObjDesc - Field to be read or written * FieldDatumByteOffset - Byte offset of this datum within the * parent field * * RETURN: Status * * DESCRIPTION: Common processing for AcpiExExtractFromField and * AcpiExInsertIntoField. Initialize the Region if necessary and * validate the request. * ******************************************************************************/ static ACPI_STATUS AcpiExSetupRegion ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 FieldDatumByteOffset) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *RgnDesc; UINT8 SpaceId; ACPI_FUNCTION_TRACE_U32 (ExSetupRegion, FieldDatumByteOffset); RgnDesc = ObjDesc->CommonField.RegionObj; /* We must have a valid region */ if (RgnDesc->Common.Type != ACPI_TYPE_REGION) { ACPI_ERROR ((AE_INFO, "Needed Region, found type 0x%X (%s)", RgnDesc->Common.Type, AcpiUtGetObjectTypeName (RgnDesc))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } SpaceId = RgnDesc->Region.SpaceId; /* Validate the Space ID */ if (!AcpiIsValidSpaceId (SpaceId)) { ACPI_ERROR ((AE_INFO, "Invalid/unknown Address Space ID: 0x%2.2X", SpaceId)); return_ACPI_STATUS (AE_AML_INVALID_SPACE_ID); } /* * If the Region Address and Length have not been previously evaluated, * evaluate them now and save the results. */ if (!(RgnDesc->Common.Flags & AOPOBJ_DATA_VALID)) { Status = AcpiDsGetRegionArguments (RgnDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* * Exit now for SMBus, GSBus or IPMI address space, it has a non-linear * address space and the request cannot be directly validated */ if (SpaceId == ACPI_ADR_SPACE_SMBUS || SpaceId == ACPI_ADR_SPACE_GSBUS || SpaceId == ACPI_ADR_SPACE_IPMI) { /* SMBus or IPMI has a non-linear address space */ return_ACPI_STATUS (AE_OK); } #ifdef ACPI_UNDER_DEVELOPMENT /* * If the Field access is AnyAcc, we can now compute the optimal * access (because we know the length of the parent region) */ if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID)) { if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } #endif /* * Validate the request. The entire request from the byte offset for a * length of one field datum (access width) must fit within the region. * (Region length is specified in bytes) */ if (RgnDesc->Region.Length < (ObjDesc->CommonField.BaseByteOffset + FieldDatumByteOffset + ObjDesc->CommonField.AccessByteWidth)) { if (AcpiGbl_EnableInterpreterSlack) { /* * Slack mode only: We will go ahead and allow access to this * field if it is within the region length rounded up to the next * access width boundary. ACPI_SIZE cast for 64-bit compile. */ if (ACPI_ROUND_UP (RgnDesc->Region.Length, ObjDesc->CommonField.AccessByteWidth) >= ((ACPI_SIZE) ObjDesc->CommonField.BaseByteOffset + ObjDesc->CommonField.AccessByteWidth + FieldDatumByteOffset)) { return_ACPI_STATUS (AE_OK); } } if (RgnDesc->Region.Length < ObjDesc->CommonField.AccessByteWidth) { /* * This is the case where the AccessType (AccWord, etc.) is wider * than the region itself. For example, a region of length one * byte, and a field with Dword access specified. */ ACPI_ERROR ((AE_INFO, "Field [%4.4s] access width (%u bytes) " "too large for region [%4.4s] (length %u)", AcpiUtGetNodeName (ObjDesc->CommonField.Node), ObjDesc->CommonField.AccessByteWidth, AcpiUtGetNodeName (RgnDesc->Region.Node), RgnDesc->Region.Length)); } /* * Offset rounded up to next multiple of field width * exceeds region length, indicate an error */ ACPI_ERROR ((AE_INFO, "Field [%4.4s] Base+Offset+Width %u+%u+%u " "is beyond end of region [%4.4s] (length %u)", AcpiUtGetNodeName (ObjDesc->CommonField.Node), ObjDesc->CommonField.BaseByteOffset, FieldDatumByteOffset, ObjDesc->CommonField.AccessByteWidth, AcpiUtGetNodeName (RgnDesc->Region.Node), RgnDesc->Region.Length)); return_ACPI_STATUS (AE_AML_REGION_LIMIT); } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExAccessRegion * * PARAMETERS: ObjDesc - Field to be read * FieldDatumByteOffset - Byte offset of this datum within the * parent field * Value - Where to store value (must at least * 64 bits) * Function - Read or Write flag plus other region- * dependent flags * * RETURN: Status * * DESCRIPTION: Read or Write a single field datum to an Operation Region. * ******************************************************************************/ ACPI_STATUS AcpiExAccessRegion ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 FieldDatumByteOffset, UINT64 *Value, UINT32 Function) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *RgnDesc; UINT32 RegionOffset; ACPI_FUNCTION_TRACE (ExAccessRegion); /* * Ensure that the region operands are fully evaluated and verify * the validity of the request */ Status = AcpiExSetupRegion (ObjDesc, FieldDatumByteOffset); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * The physical address of this field datum is: * * 1) The base of the region, plus * 2) The base offset of the field, plus * 3) The current offset into the field */ RgnDesc = ObjDesc->CommonField.RegionObj; RegionOffset = ObjDesc->CommonField.BaseByteOffset + FieldDatumByteOffset; if ((Function & ACPI_IO_MASK) == ACPI_READ) { ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "[READ]")); } else { ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "[WRITE]")); } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_BFIELD, " Region [%s:%X], Width %X, ByteBase %X, Offset %X at %8.8X%8.8X\n", AcpiUtGetRegionName (RgnDesc->Region.SpaceId), RgnDesc->Region.SpaceId, ObjDesc->CommonField.AccessByteWidth, ObjDesc->CommonField.BaseByteOffset, FieldDatumByteOffset, ACPI_FORMAT_UINT64 (RgnDesc->Region.Address + RegionOffset))); /* Invoke the appropriate AddressSpace/OpRegion handler */ Status = AcpiEvAddressSpaceDispatch (RgnDesc, ObjDesc, Function, RegionOffset, ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth), Value); if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_IMPLEMENTED) { ACPI_ERROR ((AE_INFO, "Region %s (ID=%u) not implemented", AcpiUtGetRegionName (RgnDesc->Region.SpaceId), RgnDesc->Region.SpaceId)); } else if (Status == AE_NOT_EXIST) { ACPI_ERROR ((AE_INFO, "Region %s (ID=%u) has no handler", AcpiUtGetRegionName (RgnDesc->Region.SpaceId), RgnDesc->Region.SpaceId)); } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExRegisterOverflow * * PARAMETERS: ObjDesc - Register(Field) to be written * Value - Value to be stored * * RETURN: TRUE if value overflows the field, FALSE otherwise * * DESCRIPTION: Check if a value is out of range of the field being written. * Used to check if the values written to Index and Bank registers * are out of range. Normally, the value is simply truncated * to fit the field, but this case is most likely a serious * coding error in the ASL. * ******************************************************************************/ static BOOLEAN AcpiExRegisterOverflow ( ACPI_OPERAND_OBJECT *ObjDesc, UINT64 Value) { if (ObjDesc->CommonField.BitLength >= ACPI_INTEGER_BIT_SIZE) { /* * The field is large enough to hold the maximum integer, so we can * never overflow it. */ return (FALSE); } if (Value >= ((UINT64) 1 << ObjDesc->CommonField.BitLength)) { /* * The Value is larger than the maximum value that can fit into * the register. */ ACPI_ERROR ((AE_INFO, "Index value 0x%8.8X%8.8X overflows field width 0x%X", ACPI_FORMAT_UINT64 (Value), ObjDesc->CommonField.BitLength)); return (TRUE); } /* The Value will fit into the field with no truncation */ return (FALSE); } /******************************************************************************* * * FUNCTION: AcpiExFieldDatumIo * * PARAMETERS: ObjDesc - Field to be read * FieldDatumByteOffset - Byte offset of this datum within the * parent field * Value - Where to store value (must be 64 bits) * ReadWrite - Read or Write flag * * RETURN: Status * * DESCRIPTION: Read or Write a single datum of a field. The FieldType is * demultiplexed here to handle the different types of fields * (BufferField, RegionField, IndexField, BankField) * ******************************************************************************/ static ACPI_STATUS AcpiExFieldDatumIo ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 FieldDatumByteOffset, UINT64 *Value, UINT32 ReadWrite) { ACPI_STATUS Status; UINT64 LocalValue; ACPI_FUNCTION_TRACE_U32 (ExFieldDatumIo, FieldDatumByteOffset); if (ReadWrite == ACPI_READ) { if (!Value) { LocalValue = 0; /* To support reads without saving return value */ Value = &LocalValue; } /* Clear the entire return buffer first, [Very Important!] */ *Value = 0; } /* * The four types of fields are: * * BufferField - Read/write from/to a Buffer * RegionField - Read/write from/to a Operation Region. * BankField - Write to a Bank Register, then read/write from/to an * OperationRegion * IndexField - Write to an Index Register, then read/write from/to a * Data Register */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_BUFFER_FIELD: /* * If the BufferField arguments have not been previously evaluated, * evaluate them now and save the results. */ if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID)) { Status = AcpiDsGetBufferFieldArguments (ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } if (ReadWrite == ACPI_READ) { /* * Copy the data from the source buffer. * Length is the field width in bytes. */ memcpy (Value, (ObjDesc->BufferField.BufferObj)->Buffer.Pointer + ObjDesc->BufferField.BaseByteOffset + FieldDatumByteOffset, ObjDesc->CommonField.AccessByteWidth); } else { /* * Copy the data to the target buffer. * Length is the field width in bytes. */ memcpy ((ObjDesc->BufferField.BufferObj)->Buffer.Pointer + ObjDesc->BufferField.BaseByteOffset + FieldDatumByteOffset, Value, ObjDesc->CommonField.AccessByteWidth); } Status = AE_OK; break; case ACPI_TYPE_LOCAL_BANK_FIELD: /* * Ensure that the BankValue is not beyond the capacity of * the register */ if (AcpiExRegisterOverflow (ObjDesc->BankField.BankObj, (UINT64) ObjDesc->BankField.Value)) { return_ACPI_STATUS (AE_AML_REGISTER_LIMIT); } /* * For BankFields, we must write the BankValue to the BankRegister * (itself a RegionField) before we can access the data. */ Status = AcpiExInsertIntoField (ObjDesc->BankField.BankObj, &ObjDesc->BankField.Value, sizeof (ObjDesc->BankField.Value)); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Now that the Bank has been selected, fall through to the * RegionField case and write the datum to the Operation Region */ ACPI_FALLTHROUGH; case ACPI_TYPE_LOCAL_REGION_FIELD: /* * For simple RegionFields, we just directly access the owning * Operation Region. */ Status = AcpiExAccessRegion ( ObjDesc, FieldDatumByteOffset, Value, ReadWrite); break; case ACPI_TYPE_LOCAL_INDEX_FIELD: /* * Ensure that the IndexValue is not beyond the capacity of * the register */ if (AcpiExRegisterOverflow (ObjDesc->IndexField.IndexObj, (UINT64) ObjDesc->IndexField.Value)) { return_ACPI_STATUS (AE_AML_REGISTER_LIMIT); } /* Write the index value to the IndexRegister (itself a RegionField) */ FieldDatumByteOffset += ObjDesc->IndexField.Value; ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Write to Index Register: Value %8.8X\n", FieldDatumByteOffset)); Status = AcpiExInsertIntoField (ObjDesc->IndexField.IndexObj, &FieldDatumByteOffset, sizeof (FieldDatumByteOffset)); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (ReadWrite == ACPI_READ) { /* Read the datum from the DataRegister */ ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Read from Data Register\n")); Status = AcpiExExtractFromField ( ObjDesc->IndexField.DataObj, Value, sizeof (UINT64)); } else { /* Write the datum to the DataRegister */ ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Write to Data Register: Value %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (*Value))); Status = AcpiExInsertIntoField ( ObjDesc->IndexField.DataObj, Value, sizeof (UINT64)); } break; default: ACPI_ERROR ((AE_INFO, "Wrong object type in field I/O %u", ObjDesc->Common.Type)); Status = AE_AML_INTERNAL; break; } if (ACPI_SUCCESS (Status)) { if (ReadWrite == ACPI_READ) { ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Value Read %8.8X%8.8X, Width %u\n", ACPI_FORMAT_UINT64 (*Value), ObjDesc->CommonField.AccessByteWidth)); } else { ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Value Written %8.8X%8.8X, Width %u\n", ACPI_FORMAT_UINT64 (*Value), ObjDesc->CommonField.AccessByteWidth)); } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExWriteWithUpdateRule * * PARAMETERS: ObjDesc - Field to be written * Mask - bitmask within field datum * FieldValue - Value to write * FieldDatumByteOffset - Offset of datum within field * * RETURN: Status * * DESCRIPTION: Apply the field update rule to a field write * ******************************************************************************/ ACPI_STATUS AcpiExWriteWithUpdateRule ( ACPI_OPERAND_OBJECT *ObjDesc, UINT64 Mask, UINT64 FieldValue, UINT32 FieldDatumByteOffset) { ACPI_STATUS Status = AE_OK; UINT64 MergedValue; UINT64 CurrentValue; ACPI_FUNCTION_TRACE_U32 (ExWriteWithUpdateRule, Mask); /* Start with the new bits */ MergedValue = FieldValue; /* If the mask is all ones, we don't need to worry about the update rule */ if (Mask != ACPI_UINT64_MAX) { /* Decode the update rule */ switch (ObjDesc->CommonField.FieldFlags & AML_FIELD_UPDATE_RULE_MASK) { case AML_FIELD_UPDATE_PRESERVE: /* * Check if update rule needs to be applied (not if mask is all * ones) The left shift drops the bits we want to ignore. */ if ((~Mask << (ACPI_MUL_8 (sizeof (Mask)) - ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth))) != 0) { /* * Read the current contents of the byte/word/dword containing * the field, and merge with the new field value. */ Status = AcpiExFieldDatumIo ( ObjDesc, FieldDatumByteOffset, &CurrentValue, ACPI_READ); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } MergedValue |= (CurrentValue & ~Mask); } break; case AML_FIELD_UPDATE_WRITE_AS_ONES: /* Set positions outside the field to all ones */ MergedValue |= ~Mask; break; case AML_FIELD_UPDATE_WRITE_AS_ZEROS: /* Set positions outside the field to all zeros */ MergedValue &= Mask; break; default: ACPI_ERROR ((AE_INFO, "Unknown UpdateRule value: 0x%X", (ObjDesc->CommonField.FieldFlags & AML_FIELD_UPDATE_RULE_MASK))); return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } } ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, "Mask %8.8X%8.8X, DatumOffset %X, Width %X, " "Value %8.8X%8.8X, MergedValue %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Mask), FieldDatumByteOffset, ObjDesc->CommonField.AccessByteWidth, ACPI_FORMAT_UINT64 (FieldValue), ACPI_FORMAT_UINT64 (MergedValue))); /* Write the merged value */ Status = AcpiExFieldDatumIo ( ObjDesc, FieldDatumByteOffset, &MergedValue, ACPI_WRITE); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExExtractFromField * * PARAMETERS: ObjDesc - Field to be read * Buffer - Where to store the field data * BufferLength - Length of Buffer * * RETURN: Status * * DESCRIPTION: Retrieve the current value of the given field * ******************************************************************************/ ACPI_STATUS AcpiExExtractFromField ( ACPI_OPERAND_OBJECT *ObjDesc, void *Buffer, UINT32 BufferLength) { ACPI_STATUS Status; UINT64 RawDatum; UINT64 MergedDatum; UINT32 FieldOffset = 0; UINT32 BufferOffset = 0; UINT32 BufferTailBits; UINT32 DatumCount; UINT32 FieldDatumCount; UINT32 AccessBitWidth; UINT32 i; ACPI_FUNCTION_TRACE (ExExtractFromField); /* Validate target buffer and clear it */ if (BufferLength < ACPI_ROUND_BITS_UP_TO_BYTES (ObjDesc->CommonField.BitLength)) { ACPI_ERROR ((AE_INFO, "Field size %u (bits) is too large for buffer (%u)", ObjDesc->CommonField.BitLength, BufferLength)); return_ACPI_STATUS (AE_BUFFER_OVERFLOW); } memset (Buffer, 0, BufferLength); AccessBitWidth = ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth); /* Handle the simple case here */ if ((ObjDesc->CommonField.StartFieldBitOffset == 0) && (ObjDesc->CommonField.BitLength == AccessBitWidth)) { if (BufferLength >= sizeof (UINT64)) { Status = AcpiExFieldDatumIo (ObjDesc, 0, Buffer, ACPI_READ); } else { /* Use RawDatum (UINT64) to handle buffers < 64 bits */ Status = AcpiExFieldDatumIo (ObjDesc, 0, &RawDatum, ACPI_READ); memcpy (Buffer, &RawDatum, BufferLength); } return_ACPI_STATUS (Status); } /* TBD: Move to common setup code */ /* Field algorithm is limited to sizeof(UINT64), truncate if needed */ if (ObjDesc->CommonField.AccessByteWidth > sizeof (UINT64)) { ObjDesc->CommonField.AccessByteWidth = sizeof (UINT64); AccessBitWidth = sizeof (UINT64) * 8; } /* Compute the number of datums (access width data items) */ DatumCount = ACPI_ROUND_UP_TO ( ObjDesc->CommonField.BitLength, AccessBitWidth); FieldDatumCount = ACPI_ROUND_UP_TO ( ObjDesc->CommonField.BitLength + ObjDesc->CommonField.StartFieldBitOffset, AccessBitWidth); /* Priming read from the field */ Status = AcpiExFieldDatumIo (ObjDesc, FieldOffset, &RawDatum, ACPI_READ); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } MergedDatum = RawDatum >> ObjDesc->CommonField.StartFieldBitOffset; /* Read the rest of the field */ for (i = 1; i < FieldDatumCount; i++) { /* Get next input datum from the field */ FieldOffset += ObjDesc->CommonField.AccessByteWidth; Status = AcpiExFieldDatumIo ( ObjDesc, FieldOffset, &RawDatum, ACPI_READ); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Merge with previous datum if necessary. * * Note: Before the shift, check if the shift value will be larger than * the integer size. If so, there is no need to perform the operation. * This avoids the differences in behavior between different compilers * concerning shift values larger than the target data width. */ if (AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset < ACPI_INTEGER_BIT_SIZE) { MergedDatum |= RawDatum << (AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset); } if (i == DatumCount) { break; } /* Write merged datum to target buffer */ memcpy (((char *) Buffer) + BufferOffset, &MergedDatum, ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, BufferLength - BufferOffset)); BufferOffset += ObjDesc->CommonField.AccessByteWidth; MergedDatum = RawDatum >> ObjDesc->CommonField.StartFieldBitOffset; } /* Mask off any extra bits in the last datum */ BufferTailBits = ObjDesc->CommonField.BitLength % AccessBitWidth; if (BufferTailBits) { MergedDatum &= ACPI_MASK_BITS_ABOVE (BufferTailBits); } /* Write the last datum to the buffer */ memcpy (((char *) Buffer) + BufferOffset, &MergedDatum, ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, BufferLength - BufferOffset)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExInsertIntoField * * PARAMETERS: ObjDesc - Field to be written * Buffer - Data to be written * BufferLength - Length of Buffer * * RETURN: Status * * DESCRIPTION: Store the Buffer contents into the given field * ******************************************************************************/ ACPI_STATUS AcpiExInsertIntoField ( ACPI_OPERAND_OBJECT *ObjDesc, void *Buffer, UINT32 BufferLength) { void *NewBuffer; ACPI_STATUS Status; UINT64 Mask; UINT64 WidthMask; UINT64 MergedDatum; UINT64 RawDatum = 0; UINT32 FieldOffset = 0; UINT32 BufferOffset = 0; UINT32 BufferTailBits; UINT32 DatumCount; UINT32 FieldDatumCount; UINT32 AccessBitWidth; UINT32 RequiredLength; UINT32 i; ACPI_FUNCTION_TRACE (ExInsertIntoField); /* Validate input buffer */ NewBuffer = NULL; RequiredLength = ACPI_ROUND_BITS_UP_TO_BYTES ( ObjDesc->CommonField.BitLength); /* * We must have a buffer that is at least as long as the field * we are writing to. This is because individual fields are * indivisible and partial writes are not supported -- as per * the ACPI specification. */ if (BufferLength < RequiredLength) { /* We need to create a new buffer */ NewBuffer = ACPI_ALLOCATE_ZEROED (RequiredLength); if (!NewBuffer) { return_ACPI_STATUS (AE_NO_MEMORY); } /* * Copy the original data to the new buffer, starting * at Byte zero. All unused (upper) bytes of the * buffer will be 0. */ memcpy ((char *) NewBuffer, (char *) Buffer, BufferLength); Buffer = NewBuffer; BufferLength = RequiredLength; } /* TBD: Move to common setup code */ /* Algo is limited to sizeof(UINT64), so cut the AccessByteWidth */ if (ObjDesc->CommonField.AccessByteWidth > sizeof (UINT64)) { ObjDesc->CommonField.AccessByteWidth = sizeof (UINT64); } AccessBitWidth = ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth); /* Create the bitmasks used for bit insertion */ WidthMask = ACPI_MASK_BITS_ABOVE_64 (AccessBitWidth); Mask = WidthMask & ACPI_MASK_BITS_BELOW (ObjDesc->CommonField.StartFieldBitOffset); /* Compute the number of datums (access width data items) */ DatumCount = ACPI_ROUND_UP_TO (ObjDesc->CommonField.BitLength, AccessBitWidth); FieldDatumCount = ACPI_ROUND_UP_TO (ObjDesc->CommonField.BitLength + ObjDesc->CommonField.StartFieldBitOffset, AccessBitWidth); /* Get initial Datum from the input buffer */ memcpy (&RawDatum, Buffer, ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, BufferLength - BufferOffset)); MergedDatum = RawDatum << ObjDesc->CommonField.StartFieldBitOffset; /* Write the entire field */ for (i = 1; i < FieldDatumCount; i++) { /* Write merged datum to the target field */ MergedDatum &= Mask; Status = AcpiExWriteWithUpdateRule ( ObjDesc, Mask, MergedDatum, FieldOffset); if (ACPI_FAILURE (Status)) { goto Exit; } FieldOffset += ObjDesc->CommonField.AccessByteWidth; /* * Start new output datum by merging with previous input datum * if necessary. * * Note: Before the shift, check if the shift value will be larger than * the integer size. If so, there is no need to perform the operation. * This avoids the differences in behavior between different compilers * concerning shift values larger than the target data width. */ if ((AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset) < ACPI_INTEGER_BIT_SIZE) { MergedDatum = RawDatum >> (AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset); } else { MergedDatum = 0; } Mask = WidthMask; if (i == DatumCount) { break; } /* Get the next input datum from the buffer */ BufferOffset += ObjDesc->CommonField.AccessByteWidth; memcpy (&RawDatum, ((char *) Buffer) + BufferOffset, ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, BufferLength - BufferOffset)); MergedDatum |= RawDatum << ObjDesc->CommonField.StartFieldBitOffset; } /* Mask off any extra bits in the last datum */ BufferTailBits = (ObjDesc->CommonField.BitLength + ObjDesc->CommonField.StartFieldBitOffset) % AccessBitWidth; if (BufferTailBits) { Mask &= ACPI_MASK_BITS_ABOVE (BufferTailBits); } /* Write the last datum to the field */ MergedDatum &= Mask; Status = AcpiExWriteWithUpdateRule ( ObjDesc, Mask, MergedDatum, FieldOffset); Exit: /* Free temporary buffer if we used one */ if (NewBuffer) { ACPI_FREE (NewBuffer); } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exoparg1.c0000775000175000017500000010512414773714132022747 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exoparg1 - AML execution - opcodes with 1 argument * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "acdispat.h" #include "acinterp.h" #include "amlcode.h" #include "acnamesp.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exoparg1") /*! * Naming convention for AML interpreter execution routines. * * The routines that begin execution of AML opcodes are named with a common * convention based upon the number of arguments, the number of target operands, * and whether or not a value is returned: * * AcpiExOpcode_xA_yT_zR * * Where: * * xA - ARGUMENTS: The number of arguments (input operands) that are * required for this opcode type (0 through 6 args). * yT - TARGETS: The number of targets (output operands) that are required * for this opcode type (0, 1, or 2 targets). * zR - RETURN VALUE: Indicates whether this opcode type returns a value * as the function return (0 or 1). * * The AcpiExOpcode* functions are called via the Dispatcher component with * fully resolved operands. !*/ /******************************************************************************* * * FUNCTION: AcpiExOpcode_0A_0T_1R * * PARAMETERS: WalkState - Current state (contains AML opcode) * * RETURN: Status * * DESCRIPTION: Execute operator with no operands, one return value * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_0A_0T_1R ( ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *ReturnDesc = NULL; ACPI_FUNCTION_TRACE_STR (ExOpcode_0A_0T_1R, AcpiPsGetOpcodeName (WalkState->Opcode)); /* Examine the AML opcode */ switch (WalkState->Opcode) { case AML_TIMER_OP: /* Timer () */ /* Create a return object of type Integer */ ReturnDesc = AcpiUtCreateIntegerObject (AcpiOsGetTimer ()); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } break; default: /* Unknown opcode */ ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; break; } Cleanup: /* Delete return object on error */ if ((ACPI_FAILURE (Status)) || WalkState->ResultObj) { AcpiUtRemoveReference (ReturnDesc); WalkState->ResultObj = NULL; } else { /* Save the return value */ WalkState->ResultObj = ReturnDesc; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExOpcode_1A_0T_0R * * PARAMETERS: WalkState - Current state (contains AML opcode) * * RETURN: Status * * DESCRIPTION: Execute Type 1 monadic operator with numeric operand on * object stack * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_1A_0T_0R ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_STR (ExOpcode_1A_0T_0R, AcpiPsGetOpcodeName (WalkState->Opcode)); /* Examine the AML opcode */ switch (WalkState->Opcode) { case AML_RELEASE_OP: /* Release (MutexObject) */ Status = AcpiExReleaseMutex (Operand[0], WalkState); break; case AML_RESET_OP: /* Reset (EventObject) */ Status = AcpiExSystemResetEvent (Operand[0]); break; case AML_SIGNAL_OP: /* Signal (EventObject) */ Status = AcpiExSystemSignalEvent (Operand[0]); break; case AML_SLEEP_OP: /* Sleep (MsecTime) */ Status = AcpiExSystemDoSleep (Operand[0]->Integer.Value); break; case AML_STALL_OP: /* Stall (UsecTime) */ Status = AcpiExSystemDoStall ((UINT32) Operand[0]->Integer.Value); break; case AML_UNLOAD_OP: /* Unload (Handle) */ Status = AcpiExUnloadTable (Operand[0]); break; default: /* Unknown opcode */ ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; break; } return_ACPI_STATUS (Status); } #ifdef _OBSOLETE_CODE /* Was originally used for Load() operator */ /******************************************************************************* * * FUNCTION: AcpiExOpcode_1A_1T_0R * * PARAMETERS: WalkState - Current state (contains AML opcode) * * RETURN: Status * * DESCRIPTION: Execute opcode with one argument, one target, and no * return value. * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_1A_1T_0R ( ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_FUNCTION_TRACE_STR (ExOpcode_1A_1T_0R, AcpiPsGetOpcodeName (WalkState->Opcode)); /* Examine the AML opcode */ switch (WalkState->Opcode) { #ifdef _OBSOLETE_CODE case AML_LOAD_OP: Status = AcpiExLoadOp (Operand[0], Operand[1], WalkState); break; #endif default: /* Unknown opcode */ ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; goto Cleanup; } Cleanup: return_ACPI_STATUS (Status); } #endif /******************************************************************************* * * FUNCTION: AcpiExOpcode_1A_1T_1R * * PARAMETERS: WalkState - Current state (contains AML opcode) * * RETURN: Status * * DESCRIPTION: Execute opcode with one argument, one target, and a * return value. * January 2022: Added Load operator, with new ACPI 6.4 * semantics. * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_1A_1T_1R ( ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc = NULL; ACPI_OPERAND_OBJECT *ReturnDesc2 = NULL; UINT32 Temp32; UINT32 i; UINT64 PowerOfTen; UINT64 Digit; ACPI_FUNCTION_TRACE_STR (ExOpcode_1A_1T_1R, AcpiPsGetOpcodeName (WalkState->Opcode)); /* Examine the AML opcode */ switch (WalkState->Opcode) { case AML_BIT_NOT_OP: case AML_FIND_SET_LEFT_BIT_OP: case AML_FIND_SET_RIGHT_BIT_OP: case AML_FROM_BCD_OP: case AML_LOAD_OP: case AML_TO_BCD_OP: case AML_CONDITIONAL_REF_OF_OP: /* Create a return object of type Integer for these opcodes */ ReturnDesc = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } switch (WalkState->Opcode) { case AML_BIT_NOT_OP: /* Not (Operand, Result) */ ReturnDesc->Integer.Value = ~Operand[0]->Integer.Value; break; case AML_FIND_SET_LEFT_BIT_OP: /* FindSetLeftBit (Operand, Result) */ ReturnDesc->Integer.Value = Operand[0]->Integer.Value; /* * Acpi specification describes Integer type as a little * endian unsigned value, so this boundary condition is valid. */ for (Temp32 = 0; ReturnDesc->Integer.Value && Temp32 < ACPI_INTEGER_BIT_SIZE; ++Temp32) { ReturnDesc->Integer.Value >>= 1; } ReturnDesc->Integer.Value = Temp32; break; case AML_FIND_SET_RIGHT_BIT_OP: /* FindSetRightBit (Operand, Result) */ ReturnDesc->Integer.Value = Operand[0]->Integer.Value; /* * The Acpi specification describes Integer type as a little * endian unsigned value, so this boundary condition is valid. */ for (Temp32 = 0; ReturnDesc->Integer.Value && Temp32 < ACPI_INTEGER_BIT_SIZE; ++Temp32) { ReturnDesc->Integer.Value <<= 1; } /* Since the bit position is one-based, subtract from 33 (65) */ ReturnDesc->Integer.Value = Temp32 == 0 ? 0 : (ACPI_INTEGER_BIT_SIZE + 1) - Temp32; break; case AML_FROM_BCD_OP: /* FromBcd (BCDValue, Result) */ /* * The 64-bit ACPI integer can hold 16 4-bit BCD characters * (if table is 32-bit, integer can hold 8 BCD characters) * Convert each 4-bit BCD value */ PowerOfTen = 1; ReturnDesc->Integer.Value = 0; Digit = Operand[0]->Integer.Value; /* Convert each BCD digit (each is one nybble wide) */ for (i = 0; (i < AcpiGbl_IntegerNybbleWidth) && (Digit > 0); i++) { /* Get the least significant 4-bit BCD digit */ Temp32 = ((UINT32) Digit) & 0xF; /* Check the range of the digit */ if (Temp32 > 9) { ACPI_ERROR ((AE_INFO, "BCD digit too large (not decimal): 0x%X", Temp32)); Status = AE_AML_NUMERIC_OVERFLOW; goto Cleanup; } /* Sum the digit into the result with the current power of 10 */ ReturnDesc->Integer.Value += (((UINT64) Temp32) * PowerOfTen); /* Shift to next BCD digit */ Digit >>= 4; /* Next power of 10 */ PowerOfTen *= 10; } break; case AML_LOAD_OP: /* Result1 = Load (Operand[0], Result1) */ ReturnDesc->Integer.Value = 0; Status = AcpiExLoadOp (Operand[0], ReturnDesc, WalkState); if (ACPI_SUCCESS (Status)) { /* Return -1 (non-zero) indicates success */ ReturnDesc->Integer.Value = 0xFFFFFFFFFFFFFFFF; } break; case AML_TO_BCD_OP: /* ToBcd (Operand, Result) */ ReturnDesc->Integer.Value = 0; Digit = Operand[0]->Integer.Value; /* Each BCD digit is one nybble wide */ for (i = 0; (i < AcpiGbl_IntegerNybbleWidth) && (Digit > 0); i++) { (void) AcpiUtShortDivide (Digit, 10, &Digit, &Temp32); /* * Insert the BCD digit that resides in the * remainder from above */ ReturnDesc->Integer.Value |= (((UINT64) Temp32) << ACPI_MUL_4 (i)); } /* Overflow if there is any data left in Digit */ if (Digit > 0) { ACPI_ERROR ((AE_INFO, "Integer too large to convert to BCD: 0x%8.8X%8.8X", ACPI_FORMAT_UINT64 (Operand[0]->Integer.Value))); Status = AE_AML_NUMERIC_OVERFLOW; goto Cleanup; } break; case AML_CONDITIONAL_REF_OF_OP: /* CondRefOf (SourceObject, Result) */ /* * This op is a little strange because the internal return value is * different than the return value stored in the result descriptor * (There are really two return values) */ if ((ACPI_NAMESPACE_NODE *) Operand[0] == AcpiGbl_RootNode) { /* * This means that the object does not exist in the namespace, * return FALSE */ ReturnDesc->Integer.Value = 0; goto Cleanup; } /* Get the object reference, store it, and remove our reference */ Status = AcpiExGetObjectReference (Operand[0], &ReturnDesc2, WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } Status = AcpiExStore (ReturnDesc2, Operand[1], WalkState); AcpiUtRemoveReference (ReturnDesc2); /* The object exists in the namespace, return TRUE */ ReturnDesc->Integer.Value = ACPI_UINT64_MAX; goto Cleanup; default: /* No other opcodes get here */ break; } break; case AML_STORE_OP: /* Store (Source, Target) */ /* * A store operand is typically a number, string, buffer or lvalue * Be careful about deleting the source object, * since the object itself may have been stored. */ Status = AcpiExStore (Operand[0], Operand[1], WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* It is possible that the Store already produced a return object */ if (!WalkState->ResultObj) { /* * Normally, we would remove a reference on the Operand[0] * parameter; But since it is being used as the internal return * object (meaning we would normally increment it), the two * cancel out, and we simply don't do anything. */ WalkState->ResultObj = Operand[0]; WalkState->Operands[0] = NULL; /* Prevent deletion */ } return_ACPI_STATUS (Status); /* * ACPI 2.0 Opcodes */ case AML_COPY_OBJECT_OP: /* CopyObject (Source, Target) */ Status = AcpiUtCopyIobjectToIobject ( Operand[0], &ReturnDesc, WalkState); break; case AML_TO_DECIMAL_STRING_OP: /* ToDecimalString (Data, Result) */ Status = AcpiExConvertToString ( Operand[0], &ReturnDesc, ACPI_EXPLICIT_CONVERT_DECIMAL); if (ReturnDesc == Operand[0]) { /* No conversion performed, add ref to handle return value */ AcpiUtAddReference (ReturnDesc); } break; case AML_TO_HEX_STRING_OP: /* ToHexString (Data, Result) */ Status = AcpiExConvertToString ( Operand[0], &ReturnDesc, ACPI_EXPLICIT_CONVERT_HEX); if (ReturnDesc == Operand[0]) { /* No conversion performed, add ref to handle return value */ AcpiUtAddReference (ReturnDesc); } break; case AML_TO_BUFFER_OP: /* ToBuffer (Data, Result) */ Status = AcpiExConvertToBuffer (Operand[0], &ReturnDesc); if (ReturnDesc == Operand[0]) { /* No conversion performed, add ref to handle return value */ AcpiUtAddReference (ReturnDesc); } break; case AML_TO_INTEGER_OP: /* ToInteger (Data, Result) */ /* Perform "explicit" conversion */ Status = AcpiExConvertToInteger (Operand[0], &ReturnDesc, 0); if (ReturnDesc == Operand[0]) { /* No conversion performed, add ref to handle return value */ AcpiUtAddReference (ReturnDesc); } break; case AML_SHIFT_LEFT_BIT_OP: /* ShiftLeftBit (Source, BitNum) */ case AML_SHIFT_RIGHT_BIT_OP: /* ShiftRightBit (Source, BitNum) */ /* These are two obsolete opcodes */ ACPI_ERROR ((AE_INFO, "%s is obsolete and not implemented", AcpiPsGetOpcodeName (WalkState->Opcode))); Status = AE_SUPPORT; goto Cleanup; default: /* Unknown opcode */ ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; goto Cleanup; } if (ACPI_SUCCESS (Status)) { /* Store the return value computed above into the target object */ Status = AcpiExStore (ReturnDesc, Operand[1], WalkState); } Cleanup: /* Delete return object on error */ if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ReturnDesc); } /* Save return object on success */ else if (!WalkState->ResultObj) { WalkState->ResultObj = ReturnDesc; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExOpcode_1A_0T_1R * * PARAMETERS: WalkState - Current state (contains AML opcode) * * RETURN: Status * * DESCRIPTION: Execute opcode with one argument, no target, and a return value * ******************************************************************************/ ACPI_STATUS AcpiExOpcode_1A_0T_1R ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *TempDesc; ACPI_OPERAND_OBJECT *ReturnDesc = NULL; ACPI_STATUS Status = AE_OK; UINT32 Type; UINT64 Value; ACPI_FUNCTION_TRACE_STR (ExOpcode_1A_0T_1R, AcpiPsGetOpcodeName (WalkState->Opcode)); /* Examine the AML opcode */ switch (WalkState->Opcode) { case AML_LOGICAL_NOT_OP: /* LNot (Operand) */ ReturnDesc = AcpiUtCreateIntegerObject ((UINT64) 0); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* * Set result to ONES (TRUE) if Value == 0. Note: * ReturnDesc->Integer.Value is initially == 0 (FALSE) from above. */ if (!Operand[0]->Integer.Value) { ReturnDesc->Integer.Value = ACPI_UINT64_MAX; } break; case AML_DECREMENT_OP: /* Decrement (Operand) */ case AML_INCREMENT_OP: /* Increment (Operand) */ /* * Create a new integer. Can't just get the base integer and * increment it because it may be an Arg or Field. */ ReturnDesc = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* * Since we are expecting a Reference operand, it can be either a * NS Node or an internal object. */ TempDesc = Operand[0]; if (ACPI_GET_DESCRIPTOR_TYPE (TempDesc) == ACPI_DESC_TYPE_OPERAND) { /* Internal reference object - prevent deletion */ AcpiUtAddReference (TempDesc); } /* * Convert the Reference operand to an Integer (This removes a * reference on the Operand[0] object) * * NOTE: We use LNOT_OP here in order to force resolution of the * reference operand to an actual integer. */ Status = AcpiExResolveOperands (AML_LOGICAL_NOT_OP, &TempDesc, WalkState); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While resolving operands for [%s]", AcpiPsGetOpcodeName (WalkState->Opcode))); goto Cleanup; } /* * TempDesc is now guaranteed to be an Integer object -- * Perform the actual increment or decrement */ if (WalkState->Opcode == AML_INCREMENT_OP) { ReturnDesc->Integer.Value = TempDesc->Integer.Value + 1; } else { ReturnDesc->Integer.Value = TempDesc->Integer.Value - 1; } /* Finished with this Integer object */ AcpiUtRemoveReference (TempDesc); /* * Store the result back (indirectly) through the original * Reference object */ Status = AcpiExStore (ReturnDesc, Operand[0], WalkState); break; case AML_OBJECT_TYPE_OP: /* ObjectType (SourceObject) */ /* * Note: The operand is not resolved at this point because we want to * get the associated object, not its value. For example, we don't * want to resolve a FieldUnit to its value, we want the actual * FieldUnit object. */ /* Get the type of the base object */ Status = AcpiExResolveMultiple (WalkState, Operand[0], &Type, NULL); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* Allocate a descriptor to hold the type. */ ReturnDesc = AcpiUtCreateIntegerObject ((UINT64) Type); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } break; case AML_SIZE_OF_OP: /* SizeOf (SourceObject) */ /* * Note: The operand is not resolved at this point because we want to * get the associated object, not its value. */ /* Get the base object */ Status = AcpiExResolveMultiple ( WalkState, Operand[0], &Type, &TempDesc); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* * The type of the base object must be integer, buffer, string, or * package. All others are not supported. * * NOTE: Integer is not specifically supported by the ACPI spec, * but is supported implicitly via implicit operand conversion. * rather than bother with conversion, we just use the byte width * global (4 or 8 bytes). */ switch (Type) { case ACPI_TYPE_INTEGER: Value = AcpiGbl_IntegerByteWidth; break; case ACPI_TYPE_STRING: Value = TempDesc->String.Length; break; case ACPI_TYPE_BUFFER: /* Buffer arguments may not be evaluated at this point */ Status = AcpiDsGetBufferArguments (TempDesc); Value = TempDesc->Buffer.Length; break; case ACPI_TYPE_PACKAGE: /* Package arguments may not be evaluated at this point */ Status = AcpiDsGetPackageArguments (TempDesc); Value = TempDesc->Package.Count; break; default: ACPI_ERROR ((AE_INFO, "Operand must be Buffer/Integer/String/Package" " - found type %s", AcpiUtGetTypeName (Type))); Status = AE_AML_OPERAND_TYPE; goto Cleanup; } if (ACPI_FAILURE (Status)) { goto Cleanup; } /* * Now that we have the size of the object, create a result * object to hold the value */ ReturnDesc = AcpiUtCreateIntegerObject (Value); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } break; case AML_REF_OF_OP: /* RefOf (SourceObject) */ Status = AcpiExGetObjectReference ( Operand[0], &ReturnDesc, WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } break; case AML_DEREF_OF_OP: /* DerefOf (ObjReference | String) */ /* Check for a method local or argument, or standalone String */ if (ACPI_GET_DESCRIPTOR_TYPE (Operand[0]) == ACPI_DESC_TYPE_NAMED) { TempDesc = AcpiNsGetAttachedObject ( (ACPI_NAMESPACE_NODE *) Operand[0]); if (TempDesc && ((TempDesc->Common.Type == ACPI_TYPE_STRING) || (TempDesc->Common.Type == ACPI_TYPE_LOCAL_REFERENCE))) { Operand[0] = TempDesc; AcpiUtAddReference (TempDesc); } else { Status = AE_AML_OPERAND_TYPE; goto Cleanup; } } else { switch ((Operand[0])->Common.Type) { case ACPI_TYPE_LOCAL_REFERENCE: /* * This is a DerefOf (LocalX | ArgX) * * Must resolve/dereference the local/arg reference first */ switch (Operand[0]->Reference.Class) { case ACPI_REFCLASS_LOCAL: case ACPI_REFCLASS_ARG: /* Set Operand[0] to the value of the local/arg */ Status = AcpiDsMethodDataGetValue ( Operand[0]->Reference.Class, Operand[0]->Reference.Value, WalkState, &TempDesc); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* * Delete our reference to the input object and * point to the object just retrieved */ AcpiUtRemoveReference (Operand[0]); Operand[0] = TempDesc; break; case ACPI_REFCLASS_REFOF: /* Get the object to which the reference refers */ TempDesc = Operand[0]->Reference.Object; AcpiUtRemoveReference (Operand[0]); Operand[0] = TempDesc; break; default: /* Must be an Index op - handled below */ break; } break; case ACPI_TYPE_STRING: break; default: Status = AE_AML_OPERAND_TYPE; goto Cleanup; } } if (ACPI_GET_DESCRIPTOR_TYPE (Operand[0]) != ACPI_DESC_TYPE_NAMED) { if ((Operand[0])->Common.Type == ACPI_TYPE_STRING) { /* * This is a DerefOf (String). The string is a reference * to a named ACPI object. * * 1) Find the owning Node * 2) Dereference the node to an actual object. Could be a * Field, so we need to resolve the node to a value. */ Status = AcpiNsGetNodeUnlocked (WalkState->ScopeInfo->Scope.Node, Operand[0]->String.Pointer, ACPI_NS_SEARCH_PARENT, ACPI_CAST_INDIRECT_PTR ( ACPI_NAMESPACE_NODE, &ReturnDesc)); if (ACPI_FAILURE (Status)) { goto Cleanup; } Status = AcpiExResolveNodeToValue ( ACPI_CAST_INDIRECT_PTR ( ACPI_NAMESPACE_NODE, &ReturnDesc), WalkState); goto Cleanup; } } /* Operand[0] may have changed from the code above */ if (ACPI_GET_DESCRIPTOR_TYPE (Operand[0]) == ACPI_DESC_TYPE_NAMED) { /* * This is a DerefOf (ObjectReference) * Get the actual object from the Node (This is the dereference). * This case may only happen when a LocalX or ArgX is * dereferenced above, or for references to device and * thermal objects. */ switch (((ACPI_NAMESPACE_NODE *) Operand[0])->Type) { case ACPI_TYPE_DEVICE: case ACPI_TYPE_THERMAL: /* These types have no node subobject, return the NS node */ ReturnDesc = Operand[0]; break; default: /* For most types, get the object attached to the node */ ReturnDesc = AcpiNsGetAttachedObject ( (ACPI_NAMESPACE_NODE *) Operand[0]); AcpiUtAddReference (ReturnDesc); break; } } else { /* * This must be a reference object produced by either the * Index() or RefOf() operator */ switch (Operand[0]->Reference.Class) { case ACPI_REFCLASS_INDEX: /* * The target type for the Index operator must be * either a Buffer or a Package */ switch (Operand[0]->Reference.TargetType) { case ACPI_TYPE_BUFFER_FIELD: TempDesc = Operand[0]->Reference.Object; /* * Create a new object that contains one element of the * buffer -- the element pointed to by the index. * * NOTE: index into a buffer is NOT a pointer to a * sub-buffer of the main buffer, it is only a pointer to a * single element (byte) of the buffer! * * Since we are returning the value of the buffer at the * indexed location, we don't need to add an additional * reference to the buffer itself. */ ReturnDesc = AcpiUtCreateIntegerObject ((UINT64) TempDesc->Buffer.Pointer[Operand[0]->Reference.Value]); if (!ReturnDesc) { Status = AE_NO_MEMORY; goto Cleanup; } break; case ACPI_TYPE_PACKAGE: /* * Return the referenced element of the package. We must * add another reference to the referenced object, however. */ ReturnDesc = *(Operand[0]->Reference.Where); if (!ReturnDesc) { /* * Element is NULL, do not allow the dereference. * This provides compatibility with other ACPI * implementations. */ return_ACPI_STATUS (AE_AML_UNINITIALIZED_ELEMENT); } AcpiUtAddReference (ReturnDesc); break; default: ACPI_ERROR ((AE_INFO, "Unknown Index TargetType 0x%X in reference object %p", Operand[0]->Reference.TargetType, Operand[0])); Status = AE_AML_OPERAND_TYPE; goto Cleanup; } break; case ACPI_REFCLASS_REFOF: ReturnDesc = Operand[0]->Reference.Object; if (ACPI_GET_DESCRIPTOR_TYPE (ReturnDesc) == ACPI_DESC_TYPE_NAMED) { ReturnDesc = AcpiNsGetAttachedObject ( (ACPI_NAMESPACE_NODE *) ReturnDesc); if (!ReturnDesc) { break; } /* * June 2013: * BufferFields/FieldUnits require additional resolution */ switch (ReturnDesc->Common.Type) { case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: Status = AcpiExReadDataFromField ( WalkState, ReturnDesc, &TempDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ReturnDesc = TempDesc; break; default: /* Add another reference to the object */ AcpiUtAddReference (ReturnDesc); break; } } break; default: ACPI_ERROR ((AE_INFO, "Unknown class in reference(%p) - 0x%2.2X", Operand[0], Operand[0]->Reference.Class)); Status = AE_TYPE; goto Cleanup; } } break; default: ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X", WalkState->Opcode)); Status = AE_AML_BAD_OPCODE; goto Cleanup; } Cleanup: /* Delete return object on error */ if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ReturnDesc); } /* Save return object on success */ else { WalkState->ResultObj = ReturnDesc; } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/executer/exmisc.c0000775000175000017500000003663514773714132022523 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exmisc - ACPI AML (p-code) execution - specific opcodes * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "amlcode.h" #define _COMPONENT ACPI_EXECUTER ACPI_MODULE_NAME ("exmisc") /******************************************************************************* * * FUNCTION: AcpiExGetObjectReference * * PARAMETERS: ObjDesc - Create a reference to this object * ReturnDesc - Where to store the reference * WalkState - Current state * * RETURN: Status * * DESCRIPTION: Obtain and return a "reference" to the target object * Common code for the RefOfOp and the CondRefOfOp. * ******************************************************************************/ ACPI_STATUS AcpiExGetObjectReference ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ReturnDesc, ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT *ReferenceObj; ACPI_OPERAND_OBJECT *ReferencedObj; ACPI_FUNCTION_TRACE_PTR (ExGetObjectReference, ObjDesc); *ReturnDesc = NULL; switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc)) { case ACPI_DESC_TYPE_OPERAND: if (ObjDesc->Common.Type != ACPI_TYPE_LOCAL_REFERENCE) { return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } /* * Must be a reference to a Local or Arg */ switch (ObjDesc->Reference.Class) { case ACPI_REFCLASS_LOCAL: case ACPI_REFCLASS_ARG: case ACPI_REFCLASS_DEBUG: /* The referenced object is the pseudo-node for the local/arg */ ReferencedObj = ObjDesc->Reference.Object; break; default: ACPI_ERROR ((AE_INFO, "Invalid Reference Class 0x%2.2X", ObjDesc->Reference.Class)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } break; case ACPI_DESC_TYPE_NAMED: /* * A named reference that has already been resolved to a Node */ ReferencedObj = ObjDesc; break; default: ACPI_ERROR ((AE_INFO, "Invalid descriptor type 0x%X", ACPI_GET_DESCRIPTOR_TYPE (ObjDesc))); return_ACPI_STATUS (AE_TYPE); } /* Create a new reference object */ ReferenceObj = AcpiUtCreateInternalObject (ACPI_TYPE_LOCAL_REFERENCE); if (!ReferenceObj) { return_ACPI_STATUS (AE_NO_MEMORY); } ReferenceObj->Reference.Class = ACPI_REFCLASS_REFOF; ReferenceObj->Reference.Object = ReferencedObj; *ReturnDesc = ReferenceObj; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Object %p Type [%s], returning Reference %p\n", ObjDesc, AcpiUtGetObjectTypeName (ObjDesc), *ReturnDesc)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiExDoMathOp * * PARAMETERS: Opcode - AML opcode * Integer0 - Integer operand #0 * Integer1 - Integer operand #1 * * RETURN: Integer result of the operation * * DESCRIPTION: Execute a math AML opcode. The purpose of having all of the * math functions here is to prevent a lot of pointer dereferencing * to obtain the operands. * ******************************************************************************/ UINT64 AcpiExDoMathOp ( UINT16 Opcode, UINT64 Integer0, UINT64 Integer1) { ACPI_FUNCTION_ENTRY (); switch (Opcode) { case AML_ADD_OP: /* Add (Integer0, Integer1, Result) */ return (Integer0 + Integer1); case AML_BIT_AND_OP: /* And (Integer0, Integer1, Result) */ return (Integer0 & Integer1); case AML_BIT_NAND_OP: /* NAnd (Integer0, Integer1, Result) */ return (~(Integer0 & Integer1)); case AML_BIT_OR_OP: /* Or (Integer0, Integer1, Result) */ return (Integer0 | Integer1); case AML_BIT_NOR_OP: /* NOr (Integer0, Integer1, Result) */ return (~(Integer0 | Integer1)); case AML_BIT_XOR_OP: /* XOr (Integer0, Integer1, Result) */ return (Integer0 ^ Integer1); case AML_MULTIPLY_OP: /* Multiply (Integer0, Integer1, Result) */ return (Integer0 * Integer1); case AML_SHIFT_LEFT_OP: /* ShiftLeft (Operand, ShiftCount, Result)*/ /* * We need to check if the shiftcount is larger than the integer bit * width since the behavior of this is not well-defined in the C language. */ if (Integer1 >= AcpiGbl_IntegerBitWidth) { return (0); } return (Integer0 << Integer1); case AML_SHIFT_RIGHT_OP: /* ShiftRight (Operand, ShiftCount, Result) */ /* * We need to check if the shiftcount is larger than the integer bit * width since the behavior of this is not well-defined in the C language. */ if (Integer1 >= AcpiGbl_IntegerBitWidth) { return (0); } return (Integer0 >> Integer1); case AML_SUBTRACT_OP: /* Subtract (Integer0, Integer1, Result) */ return (Integer0 - Integer1); default: return (0); } } /******************************************************************************* * * FUNCTION: AcpiExDoLogicalNumericOp * * PARAMETERS: Opcode - AML opcode * Integer0 - Integer operand #0 * Integer1 - Integer operand #1 * LogicalResult - TRUE/FALSE result of the operation * * RETURN: Status * * DESCRIPTION: Execute a logical "Numeric" AML opcode. For these Numeric * operators (LAnd and LOr), both operands must be integers. * * Note: cleanest machine code seems to be produced by the code * below, rather than using statements of the form: * Result = (Integer0 && Integer1); * ******************************************************************************/ ACPI_STATUS AcpiExDoLogicalNumericOp ( UINT16 Opcode, UINT64 Integer0, UINT64 Integer1, BOOLEAN *LogicalResult) { ACPI_STATUS Status = AE_OK; BOOLEAN LocalResult = FALSE; ACPI_FUNCTION_TRACE (ExDoLogicalNumericOp); switch (Opcode) { case AML_LOGICAL_AND_OP: /* LAnd (Integer0, Integer1) */ if (Integer0 && Integer1) { LocalResult = TRUE; } break; case AML_LOGICAL_OR_OP: /* LOr (Integer0, Integer1) */ if (Integer0 || Integer1) { LocalResult = TRUE; } break; default: ACPI_ERROR ((AE_INFO, "Invalid numeric logical opcode: %X", Opcode)); Status = AE_AML_INTERNAL; break; } /* Return the logical result and status */ *LogicalResult = LocalResult; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiExDoLogicalOp * * PARAMETERS: Opcode - AML opcode * Operand0 - operand #0 * Operand1 - operand #1 * LogicalResult - TRUE/FALSE result of the operation * * RETURN: Status * * DESCRIPTION: Execute a logical AML opcode. The purpose of having all of the * functions here is to prevent a lot of pointer dereferencing * to obtain the operands and to simplify the generation of the * logical value. For the Numeric operators (LAnd and LOr), both * operands must be integers. For the other logical operators, * operands can be any combination of Integer/String/Buffer. The * first operand determines the type to which the second operand * will be converted. * * Note: cleanest machine code seems to be produced by the code * below, rather than using statements of the form: * Result = (Operand0 == Operand1); * ******************************************************************************/ ACPI_STATUS AcpiExDoLogicalOp ( UINT16 Opcode, ACPI_OPERAND_OBJECT *Operand0, ACPI_OPERAND_OBJECT *Operand1, BOOLEAN *LogicalResult) { ACPI_OPERAND_OBJECT *LocalOperand1 = Operand1; UINT64 Integer0; UINT64 Integer1; UINT32 Length0; UINT32 Length1; ACPI_STATUS Status = AE_OK; BOOLEAN LocalResult = FALSE; int Compare; ACPI_FUNCTION_TRACE (ExDoLogicalOp); /* * Convert the second operand if necessary. The first operand * determines the type of the second operand, (See the Data Types * section of the ACPI 3.0+ specification.) Both object types are * guaranteed to be either Integer/String/Buffer by the operand * resolution mechanism. */ switch (Operand0->Common.Type) { case ACPI_TYPE_INTEGER: Status = AcpiExConvertToInteger (Operand1, &LocalOperand1, ACPI_IMPLICIT_CONVERSION); break; case ACPI_TYPE_STRING: Status = AcpiExConvertToString ( Operand1, &LocalOperand1, ACPI_IMPLICIT_CONVERT_HEX); break; case ACPI_TYPE_BUFFER: Status = AcpiExConvertToBuffer (Operand1, &LocalOperand1); break; default: ACPI_ERROR ((AE_INFO, "Invalid object type for logical operator: %X", Operand0->Common.Type)); Status = AE_AML_INTERNAL; break; } if (ACPI_FAILURE (Status)) { goto Cleanup; } /* * Two cases: 1) Both Integers, 2) Both Strings or Buffers */ if (Operand0->Common.Type == ACPI_TYPE_INTEGER) { /* * 1) Both operands are of type integer * Note: LocalOperand1 may have changed above */ Integer0 = Operand0->Integer.Value; Integer1 = LocalOperand1->Integer.Value; switch (Opcode) { case AML_LOGICAL_EQUAL_OP: /* LEqual (Operand0, Operand1) */ if (Integer0 == Integer1) { LocalResult = TRUE; } break; case AML_LOGICAL_GREATER_OP: /* LGreater (Operand0, Operand1) */ if (Integer0 > Integer1) { LocalResult = TRUE; } break; case AML_LOGICAL_LESS_OP: /* LLess (Operand0, Operand1) */ if (Integer0 < Integer1) { LocalResult = TRUE; } break; default: ACPI_ERROR ((AE_INFO, "Invalid comparison opcode: %X", Opcode)); Status = AE_AML_INTERNAL; break; } } else { /* * 2) Both operands are Strings or both are Buffers * Note: Code below takes advantage of common Buffer/String * object fields. LocalOperand1 may have changed above. Use * memcmp to handle nulls in buffers. */ Length0 = Operand0->Buffer.Length; Length1 = LocalOperand1->Buffer.Length; /* Lexicographic compare: compare the data bytes */ Compare = memcmp (Operand0->Buffer.Pointer, LocalOperand1->Buffer.Pointer, (Length0 > Length1) ? Length1 : Length0); switch (Opcode) { case AML_LOGICAL_EQUAL_OP: /* LEqual (Operand0, Operand1) */ /* Length and all bytes must be equal */ if ((Length0 == Length1) && (Compare == 0)) { /* Length and all bytes match ==> TRUE */ LocalResult = TRUE; } break; case AML_LOGICAL_GREATER_OP: /* LGreater (Operand0, Operand1) */ if (Compare > 0) { LocalResult = TRUE; goto Cleanup; /* TRUE */ } if (Compare < 0) { goto Cleanup; /* FALSE */ } /* Bytes match (to shortest length), compare lengths */ if (Length0 > Length1) { LocalResult = TRUE; } break; case AML_LOGICAL_LESS_OP: /* LLess (Operand0, Operand1) */ if (Compare > 0) { goto Cleanup; /* FALSE */ } if (Compare < 0) { LocalResult = TRUE; goto Cleanup; /* TRUE */ } /* Bytes match (to shortest length), compare lengths */ if (Length0 < Length1) { LocalResult = TRUE; } break; default: ACPI_ERROR ((AE_INFO, "Invalid comparison opcode: %X", Opcode)); Status = AE_AML_INTERNAL; break; } } Cleanup: /* New object was created if implicit conversion performed - delete */ if (LocalOperand1 != Operand1) { AcpiUtRemoveReference (LocalOperand1); } /* Return the logical result and status */ *LogicalResult = LocalResult; return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/utilities/0000775000175000017500000000000014773714133021237 5ustar ivanhuivanhuacpica-unix-20250404/source/components/utilities/utlock.c0000775000175000017500000001351714773714133022716 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utlock - Reader/Writer lock interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utlock") /******************************************************************************* * * FUNCTION: AcpiUtCreateRwLock * AcpiUtDeleteRwLock * * PARAMETERS: Lock - Pointer to a valid RW lock * * RETURN: Status * * DESCRIPTION: Reader/writer lock creation and deletion interfaces. * ******************************************************************************/ ACPI_STATUS AcpiUtCreateRwLock ( ACPI_RW_LOCK *Lock) { ACPI_STATUS Status; Lock->NumReaders = 0; Status = AcpiOsCreateMutex (&Lock->ReaderMutex); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiOsCreateMutex (&Lock->WriterMutex); return (Status); } void AcpiUtDeleteRwLock ( ACPI_RW_LOCK *Lock) { AcpiOsDeleteMutex (Lock->ReaderMutex); AcpiOsDeleteMutex (Lock->WriterMutex); Lock->NumReaders = 0; Lock->ReaderMutex = NULL; Lock->WriterMutex = NULL; } /******************************************************************************* * * FUNCTION: AcpiUtAcquireReadLock * AcpiUtReleaseReadLock * * PARAMETERS: Lock - Pointer to a valid RW lock * * RETURN: Status * * DESCRIPTION: Reader interfaces for reader/writer locks. On acquisition, * only the first reader acquires the write mutex. On release, * only the last reader releases the write mutex. Although this * algorithm can in theory starve writers, this should not be a * problem with ACPICA since the subsystem is infrequently used * in comparison to (for example) an I/O system. * ******************************************************************************/ ACPI_STATUS AcpiUtAcquireReadLock ( ACPI_RW_LOCK *Lock) { ACPI_STATUS Status; Status = AcpiOsAcquireMutex (Lock->ReaderMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return (Status); } /* Acquire the write lock only for the first reader */ Lock->NumReaders++; if (Lock->NumReaders == 1) { Status = AcpiOsAcquireMutex (Lock->WriterMutex, ACPI_WAIT_FOREVER); } AcpiOsReleaseMutex (Lock->ReaderMutex); return (Status); } ACPI_STATUS AcpiUtReleaseReadLock ( ACPI_RW_LOCK *Lock) { ACPI_STATUS Status; Status = AcpiOsAcquireMutex (Lock->ReaderMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return (Status); } /* Release the write lock only for the very last reader */ Lock->NumReaders--; if (Lock->NumReaders == 0) { AcpiOsReleaseMutex (Lock->WriterMutex); } AcpiOsReleaseMutex (Lock->ReaderMutex); return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtAcquireWriteLock * AcpiUtReleaseWriteLock * * PARAMETERS: Lock - Pointer to a valid RW lock * * RETURN: Status * * DESCRIPTION: Writer interfaces for reader/writer locks. Simply acquire or * release the writer mutex associated with the lock. Acquisition * of the lock is fully exclusive and will block all readers and * writers until it is released. * ******************************************************************************/ ACPI_STATUS AcpiUtAcquireWriteLock ( ACPI_RW_LOCK *Lock) { ACPI_STATUS Status; Status = AcpiOsAcquireMutex (Lock->WriterMutex, ACPI_WAIT_FOREVER); return (Status); } void AcpiUtReleaseWriteLock ( ACPI_RW_LOCK *Lock) { AcpiOsReleaseMutex (Lock->WriterMutex); } acpica-unix-20250404/source/components/utilities/utstring.c0000775000175000017500000001732214773714133023272 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utstring - Common functions for strings and characters * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utstring") /******************************************************************************* * * FUNCTION: AcpiUtPrintString * * PARAMETERS: String - Null terminated ASCII string * MaxLength - Maximum output length. Used to constrain the * length of strings during debug output only. * * RETURN: None * * DESCRIPTION: Dump an ASCII string with support for ACPI-defined escape * sequences. * ******************************************************************************/ void AcpiUtPrintString ( char *String, UINT16 MaxLength) { UINT32 i; if (!String) { AcpiOsPrintf ("<\"NULL STRING PTR\">"); return; } AcpiOsPrintf ("\""); for (i = 0; (i < MaxLength) && String[i]; i++) { /* Escape sequences */ switch (String[i]) { case 0x07: AcpiOsPrintf ("\\a"); /* BELL */ break; case 0x08: AcpiOsPrintf ("\\b"); /* BACKSPACE */ break; case 0x0C: AcpiOsPrintf ("\\f"); /* FORMFEED */ break; case 0x0A: AcpiOsPrintf ("\\n"); /* LINEFEED */ break; case 0x0D: AcpiOsPrintf ("\\r"); /* CARRIAGE RETURN*/ break; case 0x09: AcpiOsPrintf ("\\t"); /* HORIZONTAL TAB */ break; case 0x0B: AcpiOsPrintf ("\\v"); /* VERTICAL TAB */ break; case '\'': /* Single Quote */ case '\"': /* Double Quote */ case '\\': /* Backslash */ AcpiOsPrintf ("\\%c", (int) String[i]); break; default: /* Check for printable character or hex escape */ if (isprint ((int) String[i])) { /* This is a normal character */ AcpiOsPrintf ("%c", (int) String[i]); } else { /* All others will be Hex escapes */ AcpiOsPrintf ("\\x%2.2X", (INT32) String[i]); } break; } } AcpiOsPrintf ("\""); if (i == MaxLength && String[i]) { AcpiOsPrintf ("..."); } } /******************************************************************************* * * FUNCTION: AcpiUtRepairName * * PARAMETERS: Name - The ACPI name to be repaired * * RETURN: Repaired version of the name * * DESCRIPTION: Repair an ACPI name: Change invalid characters to '*' and * return the new name. NOTE: the Name parameter must reside in * read/write memory, cannot be a const. * * An ACPI Name must consist of valid ACPI characters. We will repair the name * if necessary because we don't want to abort because of this, but we want * all namespace names to be printable. A warning message is appropriate. * * This issue came up because there are in fact machines that exhibit * this problem, and we want to be able to enable ACPI support for them, * even though there are a few bad names. * ******************************************************************************/ void AcpiUtRepairName ( char *Name) { UINT32 i; BOOLEAN FoundBadChar = FALSE; UINT32 OriginalName; ACPI_FUNCTION_NAME (UtRepairName); /* * Special case for the root node. This can happen if we get an * error during the execution of module-level code. */ if (ACPI_COMPARE_NAMESEG (Name, ACPI_ROOT_PATHNAME)) { return; } ACPI_COPY_NAMESEG (&OriginalName, &Name[0]); /* Check each character in the name */ for (i = 0; i < ACPI_NAMESEG_SIZE; i++) { if (AcpiUtValidNameChar (Name[i], i)) { continue; } /* * Replace a bad character with something printable, yet technically * "odd". This prevents any collisions with existing "good" * names in the namespace. */ Name[i] = '_'; FoundBadChar = TRUE; } if (FoundBadChar) { /* Report warning only if in strict mode or debug mode */ if (!AcpiGbl_EnableInterpreterSlack) { ACPI_WARNING ((AE_INFO, "Invalid character(s) in name (0x%.8X) %p, repaired: [%4.4s]", OriginalName, Name, &Name[0])); } else { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Invalid character(s) in name (0x%.8X), repaired: [%4.4s]", OriginalName, Name)); } } } #if defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP /******************************************************************************* * * FUNCTION: UtConvertBackslashes * * PARAMETERS: Pathname - File pathname string to be converted * * RETURN: Modifies the input Pathname * * DESCRIPTION: Convert all backslashes (0x5C) to forward slashes (0x2F) within * the entire input file pathname string. * ******************************************************************************/ void UtConvertBackslashes ( char *Pathname) { if (!Pathname) { return; } while (*Pathname) { if (*Pathname == '\\') { *Pathname = '/'; } Pathname++; } } #endif acpica-unix-20250404/source/components/utilities/utxface.c0000775000175000017500000004256214773714133023056 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utxface - External interfaces, miscellaneous utility functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acdebug.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utxface") /******************************************************************************* * * FUNCTION: AcpiTerminate * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Shutdown the ACPICA subsystem and release all resources. * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiTerminate ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiTerminate); /* Shutdown and free all resources */ AcpiUtSubsystemShutdown (); /* Free the mutex objects */ AcpiUtMutexTerminate (); /* Now we can shutdown the OS-dependent layer */ Status = AcpiOsTerminate (); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL_INIT (AcpiTerminate) #ifndef ACPI_ASL_COMPILER /******************************************************************************* * * FUNCTION: AcpiSubsystemStatus * * PARAMETERS: None * * RETURN: Status of the ACPI subsystem * * DESCRIPTION: Other drivers that use the ACPI subsystem should call this * before making any other calls, to ensure the subsystem * initialized successfully. * ******************************************************************************/ ACPI_STATUS AcpiSubsystemStatus ( void) { if (AcpiGbl_StartupFlags & ACPI_INITIALIZED_OK) { return (AE_OK); } else { return (AE_ERROR); } } ACPI_EXPORT_SYMBOL (AcpiSubsystemStatus) /******************************************************************************* * * FUNCTION: AcpiGetSystemInfo * * PARAMETERS: OutBuffer - A buffer to receive the resources for the * device * * RETURN: Status - the status of the call * * DESCRIPTION: This function is called to get information about the current * state of the ACPI subsystem. It will return system information * in the OutBuffer. * * If the function fails an appropriate status will be returned * and the value of OutBuffer is undefined. * ******************************************************************************/ ACPI_STATUS AcpiGetSystemInfo ( ACPI_BUFFER *OutBuffer) { ACPI_SYSTEM_INFO *InfoPtr; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiGetSystemInfo); /* Parameter validation */ Status = AcpiUtValidateBuffer (OutBuffer); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Validate/Allocate/Clear caller buffer */ Status = AcpiUtInitializeBuffer (OutBuffer, sizeof (ACPI_SYSTEM_INFO)); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Populate the return buffer */ InfoPtr = (ACPI_SYSTEM_INFO *) OutBuffer->Pointer; InfoPtr->AcpiCaVersion = ACPI_CA_VERSION; /* System flags (ACPI capabilities) */ InfoPtr->Flags = ACPI_SYS_MODE_ACPI; /* Timer resolution - 24 or 32 bits */ if (AcpiGbl_FADT.Flags & ACPI_FADT_32BIT_TIMER) { InfoPtr->TimerResolution = 24; } else { InfoPtr->TimerResolution = 32; } /* Clear the reserved fields */ InfoPtr->Reserved1 = 0; InfoPtr->Reserved2 = 0; /* Current debug levels */ InfoPtr->DebugLayer = AcpiDbgLayer; InfoPtr->DebugLevel = AcpiDbgLevel; return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiGetSystemInfo) /******************************************************************************* * * FUNCTION: AcpiGetStatistics * * PARAMETERS: Stats - Where the statistics are returned * * RETURN: Status - the status of the call * * DESCRIPTION: Get the contents of the various system counters * ******************************************************************************/ ACPI_STATUS AcpiGetStatistics ( ACPI_STATISTICS *Stats) { ACPI_FUNCTION_TRACE (AcpiGetStatistics); /* Parameter validation */ if (!Stats) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Various interrupt-based event counters */ Stats->SciCount = AcpiSciCount; Stats->GpeCount = AcpiGpeCount; memcpy (Stats->FixedEventCount, AcpiFixedEventCount, sizeof (AcpiFixedEventCount)); /* Other counters */ Stats->MethodCount = AcpiMethodCount; return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiGetStatistics) /***************************************************************************** * * FUNCTION: AcpiInstallInitializationHandler * * PARAMETERS: Handler - Callback procedure * Function - Not (currently) used, see below * * RETURN: Status * * DESCRIPTION: Install an initialization handler * * TBD: When a second function is added, must save the Function also. * ****************************************************************************/ ACPI_STATUS AcpiInstallInitializationHandler ( ACPI_INIT_HANDLER Handler, UINT32 Function) { if (!Handler) { return (AE_BAD_PARAMETER); } if (AcpiGbl_InitHandler) { return (AE_ALREADY_EXISTS); } AcpiGbl_InitHandler = Handler; return (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiInstallInitializationHandler) /***************************************************************************** * * FUNCTION: AcpiPurgeCachedObjects * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Empty all caches (delete the cached objects) * ****************************************************************************/ ACPI_STATUS AcpiPurgeCachedObjects ( void) { ACPI_FUNCTION_TRACE (AcpiPurgeCachedObjects); (void) AcpiOsPurgeCache (AcpiGbl_StateCache); (void) AcpiOsPurgeCache (AcpiGbl_OperandCache); (void) AcpiOsPurgeCache (AcpiGbl_PsNodeCache); (void) AcpiOsPurgeCache (AcpiGbl_PsNodeExtCache); return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiPurgeCachedObjects) /***************************************************************************** * * FUNCTION: AcpiInstallInterface * * PARAMETERS: InterfaceName - The interface to install * * RETURN: Status * * DESCRIPTION: Install an _OSI interface to the global list * ****************************************************************************/ ACPI_STATUS AcpiInstallInterface ( ACPI_STRING InterfaceName) { ACPI_STATUS Status; ACPI_INTERFACE_INFO *InterfaceInfo; /* Parameter validation */ if (!InterfaceName || (strlen (InterfaceName) == 0)) { return (AE_BAD_PARAMETER); } Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return (Status); } /* Check if the interface name is already in the global list */ InterfaceInfo = AcpiUtGetInterface (InterfaceName); if (InterfaceInfo) { /* * The interface already exists in the list. This is OK if the * interface has been marked invalid -- just clear the bit. */ if (InterfaceInfo->Flags & ACPI_OSI_INVALID) { InterfaceInfo->Flags &= ~ACPI_OSI_INVALID; Status = AE_OK; } else { Status = AE_ALREADY_EXISTS; } } else { /* New interface name, install into the global list */ Status = AcpiUtInstallInterface (InterfaceName); } AcpiOsReleaseMutex (AcpiGbl_OsiMutex); return (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallInterface) /***************************************************************************** * * FUNCTION: AcpiRemoveInterface * * PARAMETERS: InterfaceName - The interface to remove * * RETURN: Status * * DESCRIPTION: Remove an _OSI interface from the global list * ****************************************************************************/ ACPI_STATUS AcpiRemoveInterface ( ACPI_STRING InterfaceName) { ACPI_STATUS Status; /* Parameter validation */ if (!InterfaceName || (strlen (InterfaceName) == 0)) { return (AE_BAD_PARAMETER); } Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiUtRemoveInterface (InterfaceName); AcpiOsReleaseMutex (AcpiGbl_OsiMutex); return (Status); } ACPI_EXPORT_SYMBOL (AcpiRemoveInterface) /***************************************************************************** * * FUNCTION: AcpiInstallInterfaceHandler * * PARAMETERS: Handler - The _OSI interface handler to install * NULL means "remove existing handler" * * RETURN: Status * * DESCRIPTION: Install a handler for the predefined _OSI ACPI method. * invoked during execution of the internal implementation of * _OSI. A NULL handler simply removes any existing handler. * ****************************************************************************/ ACPI_STATUS AcpiInstallInterfaceHandler ( ACPI_INTERFACE_HANDLER Handler) { ACPI_STATUS Status; Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return (Status); } if (Handler && AcpiGbl_InterfaceHandler) { Status = AE_ALREADY_EXISTS; } else { AcpiGbl_InterfaceHandler = Handler; } AcpiOsReleaseMutex (AcpiGbl_OsiMutex); return (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallInterfaceHandler) /***************************************************************************** * * FUNCTION: AcpiUpdateInterfaces * * PARAMETERS: Action - Actions to be performed during the * update * * RETURN: Status * * DESCRIPTION: Update _OSI interface strings, disabling or enabling OS vendor * string or/and feature group strings. * ****************************************************************************/ ACPI_STATUS AcpiUpdateInterfaces ( UINT8 Action) { ACPI_STATUS Status; Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiUtUpdateInterfaces (Action); AcpiOsReleaseMutex (AcpiGbl_OsiMutex); return (Status); } /***************************************************************************** * * FUNCTION: AcpiCheckAddressRange * * PARAMETERS: SpaceId - Address space ID * Address - Start address * Length - Length * Warn - TRUE if warning on overlap desired * * RETURN: Count of the number of conflicts detected. * * DESCRIPTION: Check if the input address range overlaps any of the * ASL operation region address ranges. * ****************************************************************************/ UINT32 AcpiCheckAddressRange ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_PHYSICAL_ADDRESS Address, ACPI_SIZE Length, BOOLEAN Warn) { UINT32 Overlaps; ACPI_STATUS Status; Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (0); } Overlaps = AcpiUtCheckAddressRange (SpaceId, Address, (UINT32) Length, Warn); (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (Overlaps); } ACPI_EXPORT_SYMBOL (AcpiCheckAddressRange) #endif /* !ACPI_ASL_COMPILER */ /******************************************************************************* * * FUNCTION: AcpiDecodePldBuffer * * PARAMETERS: InBuffer - Buffer returned by _PLD method * Length - Length of the InBuffer * ReturnBuffer - Where the decode buffer is returned * * RETURN: Status and the decoded _PLD buffer. User must deallocate * the buffer via ACPI_FREE. * * DESCRIPTION: Decode the bit-packed buffer returned by the _PLD method into * a local struct that is much more useful to an ACPI driver. * ******************************************************************************/ ACPI_STATUS AcpiDecodePldBuffer ( UINT8 *InBuffer, ACPI_SIZE Length, ACPI_PLD_INFO **ReturnBuffer) { ACPI_PLD_INFO *PldInfo; UINT32 *Buffer = ACPI_CAST_PTR (UINT32, InBuffer); UINT32 Dword; /* Parameter validation */ if (!InBuffer || !ReturnBuffer || (Length < ACPI_PLD_REV1_BUFFER_SIZE)) { return (AE_BAD_PARAMETER); } PldInfo = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_PLD_INFO)); if (!PldInfo) { return (AE_NO_MEMORY); } /* First 32-bit DWord */ ACPI_MOVE_32_TO_32 (&Dword, &Buffer[0]); PldInfo->Revision = ACPI_PLD_GET_REVISION (&Dword); PldInfo->IgnoreColor = ACPI_PLD_GET_IGNORE_COLOR (&Dword); PldInfo->Red = ACPI_PLD_GET_RED (&Dword); PldInfo->Green = ACPI_PLD_GET_GREEN (&Dword); PldInfo->Blue = ACPI_PLD_GET_BLUE (&Dword); /* Second 32-bit DWord */ ACPI_MOVE_32_TO_32 (&Dword, &Buffer[1]); PldInfo->Width = ACPI_PLD_GET_WIDTH (&Dword); PldInfo->Height = ACPI_PLD_GET_HEIGHT(&Dword); /* Third 32-bit DWord */ ACPI_MOVE_32_TO_32 (&Dword, &Buffer[2]); PldInfo->UserVisible = ACPI_PLD_GET_USER_VISIBLE (&Dword); PldInfo->Dock = ACPI_PLD_GET_DOCK (&Dword); PldInfo->Lid = ACPI_PLD_GET_LID (&Dword); PldInfo->Panel = ACPI_PLD_GET_PANEL (&Dword); PldInfo->VerticalPosition = ACPI_PLD_GET_VERTICAL (&Dword); PldInfo->HorizontalPosition = ACPI_PLD_GET_HORIZONTAL (&Dword); PldInfo->Shape = ACPI_PLD_GET_SHAPE (&Dword); PldInfo->GroupOrientation = ACPI_PLD_GET_ORIENTATION (&Dword); PldInfo->GroupToken = ACPI_PLD_GET_TOKEN (&Dword); PldInfo->GroupPosition = ACPI_PLD_GET_POSITION (&Dword); PldInfo->Bay = ACPI_PLD_GET_BAY (&Dword); /* Fourth 32-bit DWord */ ACPI_MOVE_32_TO_32 (&Dword, &Buffer[3]); PldInfo->Ejectable = ACPI_PLD_GET_EJECTABLE (&Dword); PldInfo->OspmEjectRequired = ACPI_PLD_GET_OSPM_EJECT (&Dword); PldInfo->CabinetNumber = ACPI_PLD_GET_CABINET (&Dword); PldInfo->CardCageNumber = ACPI_PLD_GET_CARD_CAGE (&Dword); PldInfo->Reference = ACPI_PLD_GET_REFERENCE (&Dword); PldInfo->Rotation = ACPI_PLD_GET_ROTATION (&Dword); PldInfo->Order = ACPI_PLD_GET_ORDER (&Dword); if (Length >= ACPI_PLD_REV2_BUFFER_SIZE) { /* Fifth 32-bit DWord (Revision 2 of _PLD) */ ACPI_MOVE_32_TO_32 (&Dword, &Buffer[4]); PldInfo->VerticalOffset = ACPI_PLD_GET_VERT_OFFSET (&Dword); PldInfo->HorizontalOffset = ACPI_PLD_GET_HORIZ_OFFSET (&Dword); } *ReturnBuffer = PldInfo; return (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiDecodePldBuffer) acpica-unix-20250404/source/components/utilities/utmutex.c0000775000175000017500000002606414773714133023131 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utmutex - local mutex support * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utmutex") /* Local prototypes */ static ACPI_STATUS AcpiUtCreateMutex ( ACPI_MUTEX_HANDLE MutexId); static void AcpiUtDeleteMutex ( ACPI_MUTEX_HANDLE MutexId); /******************************************************************************* * * FUNCTION: AcpiUtMutexInitialize * * PARAMETERS: None. * * RETURN: Status * * DESCRIPTION: Create the system mutex objects. This includes mutexes, * spin locks, and reader/writer locks. * ******************************************************************************/ ACPI_STATUS AcpiUtMutexInitialize ( void) { UINT32 i; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (UtMutexInitialize); /* Create each of the predefined mutex objects */ for (i = 0; i < ACPI_NUM_MUTEX; i++) { Status = AcpiUtCreateMutex (i); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* Create the spinlocks for use at interrupt level or for speed */ Status = AcpiOsCreateLock (&AcpiGbl_GpeLock); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiOsCreateLock (&AcpiGbl_HardwareLock); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiOsCreateLock (&AcpiGbl_ReferenceCountLock); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Mutex for _OSI support */ Status = AcpiOsCreateMutex (&AcpiGbl_OsiMutex); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Create the reader/writer lock for namespace access */ Status = AcpiUtCreateRwLock (&AcpiGbl_NamespaceRwLock); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtMutexTerminate * * PARAMETERS: None. * * RETURN: None. * * DESCRIPTION: Delete all of the system mutex objects. This includes mutexes, * spin locks, and reader/writer locks. * ******************************************************************************/ void AcpiUtMutexTerminate ( void) { UINT32 i; ACPI_FUNCTION_TRACE (UtMutexTerminate); /* Delete each predefined mutex object */ for (i = 0; i < ACPI_NUM_MUTEX; i++) { AcpiUtDeleteMutex (i); } AcpiOsDeleteMutex (AcpiGbl_OsiMutex); /* Delete the spinlocks */ AcpiOsDeleteLock (AcpiGbl_GpeLock); AcpiOsDeleteLock (AcpiGbl_HardwareLock); AcpiOsDeleteLock (AcpiGbl_ReferenceCountLock); /* Delete the reader/writer lock */ AcpiUtDeleteRwLock (&AcpiGbl_NamespaceRwLock); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiUtCreateMutex * * PARAMETERS: MutexID - ID of the mutex to be created * * RETURN: Status * * DESCRIPTION: Create a mutex object. * ******************************************************************************/ static ACPI_STATUS AcpiUtCreateMutex ( ACPI_MUTEX_HANDLE MutexId) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_U32 (UtCreateMutex, MutexId); if (!AcpiGbl_MutexInfo[MutexId].Mutex) { Status = AcpiOsCreateMutex (&AcpiGbl_MutexInfo[MutexId].Mutex); AcpiGbl_MutexInfo[MutexId].ThreadId = ACPI_MUTEX_NOT_ACQUIRED; AcpiGbl_MutexInfo[MutexId].UseCount = 0; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtDeleteMutex * * PARAMETERS: MutexID - ID of the mutex to be deleted * * RETURN: Status * * DESCRIPTION: Delete a mutex object. * ******************************************************************************/ static void AcpiUtDeleteMutex ( ACPI_MUTEX_HANDLE MutexId) { ACPI_FUNCTION_TRACE_U32 (UtDeleteMutex, MutexId); AcpiOsDeleteMutex (AcpiGbl_MutexInfo[MutexId].Mutex); AcpiGbl_MutexInfo[MutexId].Mutex = NULL; AcpiGbl_MutexInfo[MutexId].ThreadId = ACPI_MUTEX_NOT_ACQUIRED; return_VOID; } /******************************************************************************* * * FUNCTION: AcpiUtAcquireMutex * * PARAMETERS: MutexID - ID of the mutex to be acquired * * RETURN: Status * * DESCRIPTION: Acquire a mutex object. * ******************************************************************************/ ACPI_STATUS AcpiUtAcquireMutex ( ACPI_MUTEX_HANDLE MutexId) { ACPI_STATUS Status; ACPI_THREAD_ID ThisThreadId; ACPI_FUNCTION_NAME (UtAcquireMutex); if (MutexId > ACPI_MAX_MUTEX) { return (AE_BAD_PARAMETER); } ThisThreadId = AcpiOsGetThreadId (); #ifdef ACPI_MUTEX_DEBUG { UINT32 i; /* * Mutex debug code, for internal debugging only. * * Deadlock prevention. Check if this thread owns any mutexes of value * greater than or equal to this one. If so, the thread has violated * the mutex ordering rule. This indicates a coding error somewhere in * the ACPI subsystem code. */ for (i = MutexId; i < ACPI_NUM_MUTEX; i++) { if (AcpiGbl_MutexInfo[i].ThreadId == ThisThreadId) { if (i == MutexId) { ACPI_ERROR ((AE_INFO, "Mutex [%s] already acquired by this thread [%u]", AcpiUtGetMutexName (MutexId), (UINT32) ThisThreadId)); return (AE_ALREADY_ACQUIRED); } ACPI_ERROR ((AE_INFO, "Invalid acquire order: Thread %u owns [%s], wants [%s]", (UINT32) ThisThreadId, AcpiUtGetMutexName (i), AcpiUtGetMutexName (MutexId))); return (AE_ACQUIRE_DEADLOCK); } } } #endif ACPI_DEBUG_PRINT ((ACPI_DB_MUTEX, "Thread %u attempting to acquire Mutex [%s]\n", (UINT32) ThisThreadId, AcpiUtGetMutexName (MutexId))); Status = AcpiOsAcquireMutex ( AcpiGbl_MutexInfo[MutexId].Mutex, ACPI_WAIT_FOREVER); if (ACPI_SUCCESS (Status)) { ACPI_DEBUG_PRINT ((ACPI_DB_MUTEX, "Thread %u acquired Mutex [%s]\n", (UINT32) ThisThreadId, AcpiUtGetMutexName (MutexId))); AcpiGbl_MutexInfo[MutexId].UseCount++; AcpiGbl_MutexInfo[MutexId].ThreadId = ThisThreadId; } else { ACPI_EXCEPTION ((AE_INFO, Status, "Thread %u could not acquire Mutex [%s] (0x%X)", (UINT32) ThisThreadId, AcpiUtGetMutexName (MutexId), MutexId)); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtReleaseMutex * * PARAMETERS: MutexID - ID of the mutex to be released * * RETURN: Status * * DESCRIPTION: Release a mutex object. * ******************************************************************************/ ACPI_STATUS AcpiUtReleaseMutex ( ACPI_MUTEX_HANDLE MutexId) { ACPI_FUNCTION_NAME (UtReleaseMutex); ACPI_DEBUG_PRINT ((ACPI_DB_MUTEX, "Thread %u releasing Mutex [%s]\n", (UINT32) AcpiOsGetThreadId (), AcpiUtGetMutexName (MutexId))); if (MutexId > ACPI_MAX_MUTEX) { return (AE_BAD_PARAMETER); } /* * Mutex must be acquired in order to release it! */ if (AcpiGbl_MutexInfo[MutexId].ThreadId == ACPI_MUTEX_NOT_ACQUIRED) { ACPI_ERROR ((AE_INFO, "Mutex [%s] (0x%X) is not acquired, cannot release", AcpiUtGetMutexName (MutexId), MutexId)); return (AE_NOT_ACQUIRED); } #ifdef ACPI_MUTEX_DEBUG { UINT32 i; /* * Mutex debug code, for internal debugging only. * * Deadlock prevention. Check if this thread owns any mutexes of value * greater than this one. If so, the thread has violated the mutex * ordering rule. This indicates a coding error somewhere in * the ACPI subsystem code. */ for (i = MutexId; i < ACPI_NUM_MUTEX; i++) { if (AcpiGbl_MutexInfo[i].ThreadId == AcpiOsGetThreadId ()) { if (i == MutexId) { continue; } ACPI_ERROR ((AE_INFO, "Invalid release order: owns [%s], releasing [%s]", AcpiUtGetMutexName (i), AcpiUtGetMutexName (MutexId))); return (AE_RELEASE_DEADLOCK); } } } #endif /* Mark unlocked FIRST */ AcpiGbl_MutexInfo[MutexId].ThreadId = ACPI_MUTEX_NOT_ACQUIRED; AcpiOsReleaseMutex (AcpiGbl_MutexInfo[MutexId].Mutex); return (AE_OK); } acpica-unix-20250404/source/components/utilities/utcopy.c0000775000175000017500000007451214773714133022742 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utcopy - Internal to external object translation utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utcopy") /* Local prototypes */ static ACPI_STATUS AcpiUtCopyIsimpleToEsimple ( ACPI_OPERAND_OBJECT *InternalObject, ACPI_OBJECT *ExternalObject, UINT8 *DataSpace, ACPI_SIZE *BufferSpaceUsed); static ACPI_STATUS AcpiUtCopyIelementToIelement ( UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context); static ACPI_STATUS AcpiUtCopyIpackageToEpackage ( ACPI_OPERAND_OBJECT *InternalObject, UINT8 *Buffer, ACPI_SIZE *SpaceUsed); static ACPI_STATUS AcpiUtCopyEsimpleToIsimple( ACPI_OBJECT *UserObj, ACPI_OPERAND_OBJECT **ReturnObj); static ACPI_STATUS AcpiUtCopyEpackageToIpackage ( ACPI_OBJECT *ExternalObject, ACPI_OPERAND_OBJECT **InternalObject); static ACPI_STATUS AcpiUtCopySimpleObject ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *DestDesc); static ACPI_STATUS AcpiUtCopyIelementToEelement ( UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context); static ACPI_STATUS AcpiUtCopyIpackageToIpackage ( ACPI_OPERAND_OBJECT *SourceObj, ACPI_OPERAND_OBJECT *DestObj, ACPI_WALK_STATE *WalkState); /******************************************************************************* * * FUNCTION: AcpiUtCopyIsimpleToEsimple * * PARAMETERS: InternalObject - Source object to be copied * ExternalObject - Where to return the copied object * DataSpace - Where object data is returned (such as * buffer and string data) * BufferSpaceUsed - Length of DataSpace that was used * * RETURN: Status * * DESCRIPTION: This function is called to copy a simple internal object to * an external object. * * The DataSpace buffer is assumed to have sufficient space for * the object. * ******************************************************************************/ static ACPI_STATUS AcpiUtCopyIsimpleToEsimple ( ACPI_OPERAND_OBJECT *InternalObject, ACPI_OBJECT *ExternalObject, UINT8 *DataSpace, ACPI_SIZE *BufferSpaceUsed) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (UtCopyIsimpleToEsimple); *BufferSpaceUsed = 0; /* * Check for NULL object case (could be an uninitialized * package element) */ if (!InternalObject) { return_ACPI_STATUS (AE_OK); } /* Always clear the external object */ memset (ExternalObject, 0, sizeof (ACPI_OBJECT)); /* * In general, the external object will be the same type as * the internal object */ ExternalObject->Type = InternalObject->Common.Type; /* However, only a limited number of external types are supported */ switch (InternalObject->Common.Type) { case ACPI_TYPE_STRING: ExternalObject->String.Pointer = (char *) DataSpace; ExternalObject->String.Length = InternalObject->String.Length; *BufferSpaceUsed = ACPI_ROUND_UP_TO_NATIVE_WORD ( (ACPI_SIZE) InternalObject->String.Length + 1); memcpy ((void *) DataSpace, (void *) InternalObject->String.Pointer, (ACPI_SIZE) InternalObject->String.Length + 1); break; case ACPI_TYPE_BUFFER: ExternalObject->Buffer.Pointer = DataSpace; ExternalObject->Buffer.Length = InternalObject->Buffer.Length; *BufferSpaceUsed = ACPI_ROUND_UP_TO_NATIVE_WORD ( InternalObject->String.Length); memcpy ((void *) DataSpace, (void *) InternalObject->Buffer.Pointer, InternalObject->Buffer.Length); break; case ACPI_TYPE_INTEGER: ExternalObject->Integer.Value = InternalObject->Integer.Value; break; case ACPI_TYPE_LOCAL_REFERENCE: /* This is an object reference. */ switch (InternalObject->Reference.Class) { case ACPI_REFCLASS_NAME: /* * For namepath, return the object handle ("reference") * We are referring to the namespace node */ ExternalObject->Reference.Handle = InternalObject->Reference.Node; ExternalObject->Reference.ActualType = AcpiNsGetType (InternalObject->Reference.Node); break; default: /* All other reference types are unsupported */ return_ACPI_STATUS (AE_TYPE); } break; case ACPI_TYPE_PROCESSOR: ExternalObject->Processor.ProcId = InternalObject->Processor.ProcId; ExternalObject->Processor.PblkAddress = InternalObject->Processor.Address; ExternalObject->Processor.PblkLength = InternalObject->Processor.Length; break; case ACPI_TYPE_POWER: ExternalObject->PowerResource.SystemLevel = InternalObject->PowerResource.SystemLevel; ExternalObject->PowerResource.ResourceOrder = InternalObject->PowerResource.ResourceOrder; break; default: /* * There is no corresponding external object type */ ACPI_ERROR ((AE_INFO, "Unsupported object type, cannot convert to external object: %s", AcpiUtGetTypeName (InternalObject->Common.Type))); return_ACPI_STATUS (AE_SUPPORT); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtCopyIelementToEelement * * PARAMETERS: ACPI_PKG_CALLBACK * * RETURN: Status * * DESCRIPTION: Copy one package element to another package element * ******************************************************************************/ static ACPI_STATUS AcpiUtCopyIelementToEelement ( UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context) { ACPI_STATUS Status = AE_OK; ACPI_PKG_INFO *Info = (ACPI_PKG_INFO *) Context; ACPI_SIZE ObjectSpace; UINT32 ThisIndex; ACPI_OBJECT *TargetObject; ACPI_FUNCTION_ENTRY (); ThisIndex = State->Pkg.Index; TargetObject = (ACPI_OBJECT *) &((ACPI_OBJECT *) (State->Pkg.DestObject))->Package.Elements[ThisIndex]; switch (ObjectType) { case ACPI_COPY_TYPE_SIMPLE: /* * This is a simple or null object */ Status = AcpiUtCopyIsimpleToEsimple (SourceObject, TargetObject, Info->FreeSpace, &ObjectSpace); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_COPY_TYPE_PACKAGE: /* * Build the package object */ TargetObject->Type = ACPI_TYPE_PACKAGE; TargetObject->Package.Count = SourceObject->Package.Count; TargetObject->Package.Elements = ACPI_CAST_PTR (ACPI_OBJECT, Info->FreeSpace); /* * Pass the new package object back to the package walk routine */ State->Pkg.ThisTargetObj = TargetObject; /* * Save space for the array of objects (Package elements) * update the buffer length counter */ ObjectSpace = ACPI_ROUND_UP_TO_NATIVE_WORD ( (ACPI_SIZE) TargetObject->Package.Count * sizeof (ACPI_OBJECT)); break; default: return (AE_BAD_PARAMETER); } Info->FreeSpace += ObjectSpace; Info->Length += ObjectSpace; return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtCopyIpackageToEpackage * * PARAMETERS: InternalObject - Pointer to the object we are returning * Buffer - Where the object is returned * SpaceUsed - Where the object length is returned * * RETURN: Status * * DESCRIPTION: This function is called to place a package object in a user * buffer. A package object by definition contains other objects. * * The buffer is assumed to have sufficient space for the object. * The caller must have verified the buffer length needed using * the AcpiUtGetObjectSize function before calling this function. * ******************************************************************************/ static ACPI_STATUS AcpiUtCopyIpackageToEpackage ( ACPI_OPERAND_OBJECT *InternalObject, UINT8 *Buffer, ACPI_SIZE *SpaceUsed) { ACPI_OBJECT *ExternalObject; ACPI_STATUS Status; ACPI_PKG_INFO Info; ACPI_FUNCTION_TRACE (UtCopyIpackageToEpackage); /* * First package at head of the buffer */ ExternalObject = ACPI_CAST_PTR (ACPI_OBJECT, Buffer); /* * Free space begins right after the first package */ Info.Length = ACPI_ROUND_UP_TO_NATIVE_WORD (sizeof (ACPI_OBJECT)); Info.FreeSpace = Buffer + ACPI_ROUND_UP_TO_NATIVE_WORD (sizeof (ACPI_OBJECT)); Info.ObjectSpace = 0; Info.NumPackages = 1; ExternalObject->Type = InternalObject->Common.Type; ExternalObject->Package.Count = InternalObject->Package.Count; ExternalObject->Package.Elements = ACPI_CAST_PTR (ACPI_OBJECT, Info.FreeSpace); /* * Leave room for an array of ACPI_OBJECTS in the buffer * and move the free space past it */ Info.Length += (ACPI_SIZE) ExternalObject->Package.Count * ACPI_ROUND_UP_TO_NATIVE_WORD (sizeof (ACPI_OBJECT)); Info.FreeSpace += ExternalObject->Package.Count * ACPI_ROUND_UP_TO_NATIVE_WORD (sizeof (ACPI_OBJECT)); Status = AcpiUtWalkPackageTree (InternalObject, ExternalObject, AcpiUtCopyIelementToEelement, &Info); *SpaceUsed = Info.Length; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtCopyIobjectToEobject * * PARAMETERS: InternalObject - The internal object to be converted * RetBuffer - Where the object is returned * * RETURN: Status * * DESCRIPTION: This function is called to build an API object to be returned * to the caller. * ******************************************************************************/ ACPI_STATUS AcpiUtCopyIobjectToEobject ( ACPI_OPERAND_OBJECT *InternalObject, ACPI_BUFFER *RetBuffer) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (UtCopyIobjectToEobject); if (InternalObject->Common.Type == ACPI_TYPE_PACKAGE) { /* * Package object: Copy all subobjects (including * nested packages) */ Status = AcpiUtCopyIpackageToEpackage (InternalObject, RetBuffer->Pointer, &RetBuffer->Length); } else { /* * Build a simple object (no nested objects) */ Status = AcpiUtCopyIsimpleToEsimple (InternalObject, ACPI_CAST_PTR (ACPI_OBJECT, RetBuffer->Pointer), ACPI_ADD_PTR (UINT8, RetBuffer->Pointer, ACPI_ROUND_UP_TO_NATIVE_WORD (sizeof (ACPI_OBJECT))), &RetBuffer->Length); /* * build simple does not include the object size in the length * so we add it in here */ RetBuffer->Length += sizeof (ACPI_OBJECT); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtCopyEsimpleToIsimple * * PARAMETERS: ExternalObject - The external object to be converted * RetInternalObject - Where the internal object is returned * * RETURN: Status * * DESCRIPTION: This function copies an external object to an internal one. * NOTE: Pointers can be copied, we don't need to copy data. * (The pointers have to be valid in our address space no matter * what we do with them!) * ******************************************************************************/ static ACPI_STATUS AcpiUtCopyEsimpleToIsimple ( ACPI_OBJECT *ExternalObject, ACPI_OPERAND_OBJECT **RetInternalObject) { ACPI_OPERAND_OBJECT *InternalObject; ACPI_FUNCTION_TRACE (UtCopyEsimpleToIsimple); /* * Simple types supported are: String, Buffer, Integer */ switch (ExternalObject->Type) { case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: case ACPI_TYPE_INTEGER: case ACPI_TYPE_LOCAL_REFERENCE: InternalObject = AcpiUtCreateInternalObject ( (UINT8) ExternalObject->Type); if (!InternalObject) { return_ACPI_STATUS (AE_NO_MEMORY); } break; case ACPI_TYPE_ANY: /* This is the case for a NULL object */ *RetInternalObject = NULL; return_ACPI_STATUS (AE_OK); default: /* All other types are not supported */ ACPI_ERROR ((AE_INFO, "Unsupported object type, cannot convert to internal object: %s", AcpiUtGetTypeName (ExternalObject->Type))); return_ACPI_STATUS (AE_SUPPORT); } /* Must COPY string and buffer contents */ switch (ExternalObject->Type) { case ACPI_TYPE_STRING: InternalObject->String.Pointer = ACPI_ALLOCATE_ZEROED ((ACPI_SIZE) ExternalObject->String.Length + 1); if (!InternalObject->String.Pointer) { goto ErrorExit; } memcpy (InternalObject->String.Pointer, ExternalObject->String.Pointer, ExternalObject->String.Length); InternalObject->String.Length = ExternalObject->String.Length; break; case ACPI_TYPE_BUFFER: InternalObject->Buffer.Pointer = ACPI_ALLOCATE_ZEROED (ExternalObject->Buffer.Length); if (!InternalObject->Buffer.Pointer) { goto ErrorExit; } memcpy (InternalObject->Buffer.Pointer, ExternalObject->Buffer.Pointer, ExternalObject->Buffer.Length); InternalObject->Buffer.Length = ExternalObject->Buffer.Length; /* Mark buffer data valid */ InternalObject->Buffer.Flags |= AOPOBJ_DATA_VALID; break; case ACPI_TYPE_INTEGER: InternalObject->Integer.Value = ExternalObject->Integer.Value; break; case ACPI_TYPE_LOCAL_REFERENCE: /* An incoming reference is defined to be a namespace node */ InternalObject->Reference.Class = ACPI_REFCLASS_REFOF; InternalObject->Reference.Object = ExternalObject->Reference.Handle; break; default: /* Other types can't get here */ break; } *RetInternalObject = InternalObject; return_ACPI_STATUS (AE_OK); ErrorExit: AcpiUtRemoveReference (InternalObject); return_ACPI_STATUS (AE_NO_MEMORY); } /******************************************************************************* * * FUNCTION: AcpiUtCopyEpackageToIpackage * * PARAMETERS: ExternalObject - The external object to be converted * InternalObject - Where the internal object is returned * * RETURN: Status * * DESCRIPTION: Copy an external package object to an internal package. * Handles nested packages. * ******************************************************************************/ static ACPI_STATUS AcpiUtCopyEpackageToIpackage ( ACPI_OBJECT *ExternalObject, ACPI_OPERAND_OBJECT **InternalObject) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *PackageObject; ACPI_OPERAND_OBJECT **PackageElements; UINT32 i; ACPI_FUNCTION_TRACE (UtCopyEpackageToIpackage); /* Create the package object */ PackageObject = AcpiUtCreatePackageObject ( ExternalObject->Package.Count); if (!PackageObject) { return_ACPI_STATUS (AE_NO_MEMORY); } PackageElements = PackageObject->Package.Elements; /* * Recursive implementation. Probably ok, since nested external * packages as parameters should be very rare. */ for (i = 0; i < ExternalObject->Package.Count; i++) { Status = AcpiUtCopyEobjectToIobject ( &ExternalObject->Package.Elements[i], &PackageElements[i]); if (ACPI_FAILURE (Status)) { /* Truncate package and delete it */ PackageObject->Package.Count = i; PackageElements[i] = NULL; AcpiUtRemoveReference (PackageObject); return_ACPI_STATUS (Status); } } /* Mark package data valid */ PackageObject->Package.Flags |= AOPOBJ_DATA_VALID; *InternalObject = PackageObject; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtCopyEobjectToIobject * * PARAMETERS: ExternalObject - The external object to be converted * InternalObject - Where the internal object is returned * * RETURN: Status * * DESCRIPTION: Converts an external object to an internal object. * ******************************************************************************/ ACPI_STATUS AcpiUtCopyEobjectToIobject ( ACPI_OBJECT *ExternalObject, ACPI_OPERAND_OBJECT **InternalObject) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (UtCopyEobjectToIobject); if (ExternalObject->Type == ACPI_TYPE_PACKAGE) { Status = AcpiUtCopyEpackageToIpackage ( ExternalObject, InternalObject); } else { /* * Build a simple object (no nested objects) */ Status = AcpiUtCopyEsimpleToIsimple (ExternalObject, InternalObject); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtCopySimpleObject * * PARAMETERS: SourceDesc - The internal object to be copied * DestDesc - New target object * * RETURN: Status * * DESCRIPTION: Simple copy of one internal object to another. Reference count * of the destination object is preserved. * ******************************************************************************/ static ACPI_STATUS AcpiUtCopySimpleObject ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *DestDesc) { UINT16 ReferenceCount; ACPI_OPERAND_OBJECT *NextObject; ACPI_STATUS Status; ACPI_SIZE CopySize; /* Save fields from destination that we don't want to overwrite */ ReferenceCount = DestDesc->Common.ReferenceCount; NextObject = DestDesc->Common.NextObject; /* * Copy the entire source object over the destination object. * Note: Source can be either an operand object or namespace node. */ CopySize = sizeof (ACPI_OPERAND_OBJECT); if (ACPI_GET_DESCRIPTOR_TYPE (SourceDesc) == ACPI_DESC_TYPE_NAMED) { CopySize = sizeof (ACPI_NAMESPACE_NODE); } memcpy (ACPI_CAST_PTR (char, DestDesc), ACPI_CAST_PTR (char, SourceDesc), CopySize); /* Restore the saved fields */ DestDesc->Common.ReferenceCount = ReferenceCount; DestDesc->Common.NextObject = NextObject; /* New object is not static, regardless of source */ DestDesc->Common.Flags &= ~AOPOBJ_STATIC_POINTER; /* Handle the objects with extra data */ switch (DestDesc->Common.Type) { case ACPI_TYPE_BUFFER: /* * Allocate and copy the actual buffer if and only if: * 1) There is a valid buffer pointer * 2) The buffer has a length > 0 */ if ((SourceDesc->Buffer.Pointer) && (SourceDesc->Buffer.Length)) { DestDesc->Buffer.Pointer = ACPI_ALLOCATE (SourceDesc->Buffer.Length); if (!DestDesc->Buffer.Pointer) { return (AE_NO_MEMORY); } /* Copy the actual buffer data */ memcpy (DestDesc->Buffer.Pointer, SourceDesc->Buffer.Pointer, SourceDesc->Buffer.Length); } break; case ACPI_TYPE_STRING: /* * Allocate and copy the actual string if and only if: * 1) There is a valid string pointer * (Pointer to a NULL string is allowed) */ if (SourceDesc->String.Pointer) { DestDesc->String.Pointer = ACPI_ALLOCATE ((ACPI_SIZE) SourceDesc->String.Length + 1); if (!DestDesc->String.Pointer) { return (AE_NO_MEMORY); } /* Copy the actual string data */ memcpy (DestDesc->String.Pointer, SourceDesc->String.Pointer, (ACPI_SIZE) SourceDesc->String.Length + 1); } break; case ACPI_TYPE_LOCAL_REFERENCE: /* * We copied the reference object, so we now must add a reference * to the object pointed to by the reference * * DDBHandle reference (from Load/LoadTable) is a special reference, * it does not have a Reference.Object, so does not need to * increase the reference count */ if (SourceDesc->Reference.Class == ACPI_REFCLASS_TABLE) { break; } AcpiUtAddReference (SourceDesc->Reference.Object); break; case ACPI_TYPE_REGION: /* * We copied the Region Handler, so we now must add a reference */ if (DestDesc->Region.Handler) { AcpiUtAddReference (DestDesc->Region.Handler); } break; /* * For Mutex and Event objects, we cannot simply copy the underlying * OS object. We must create a new one. */ case ACPI_TYPE_MUTEX: Status = AcpiOsCreateMutex (&DestDesc->Mutex.OsMutex); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_TYPE_EVENT: Status = AcpiOsCreateSemaphore (ACPI_NO_UNIT_LIMIT, 0, &DestDesc->Event.OsSemaphore); if (ACPI_FAILURE (Status)) { return (Status); } break; default: /* Nothing to do for other simple objects */ break; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtCopyIelementToIelement * * PARAMETERS: ACPI_PKG_CALLBACK * * RETURN: Status * * DESCRIPTION: Copy one package element to another package element * ******************************************************************************/ static ACPI_STATUS AcpiUtCopyIelementToIelement ( UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context) { ACPI_STATUS Status = AE_OK; UINT32 ThisIndex; ACPI_OPERAND_OBJECT **ThisTargetPtr; ACPI_OPERAND_OBJECT *TargetObject; ACPI_FUNCTION_ENTRY (); ThisIndex = State->Pkg.Index; ThisTargetPtr = (ACPI_OPERAND_OBJECT **) &State->Pkg.DestObject->Package.Elements[ThisIndex]; switch (ObjectType) { case ACPI_COPY_TYPE_SIMPLE: /* A null source object indicates a (legal) null package element */ if (SourceObject) { /* * This is a simple object, just copy it */ TargetObject = AcpiUtCreateInternalObject ( SourceObject->Common.Type); if (!TargetObject) { return (AE_NO_MEMORY); } Status = AcpiUtCopySimpleObject (SourceObject, TargetObject); if (ACPI_FAILURE (Status)) { goto ErrorExit; } *ThisTargetPtr = TargetObject; } else { /* Pass through a null element */ *ThisTargetPtr = NULL; } break; case ACPI_COPY_TYPE_PACKAGE: /* * This object is a package - go down another nesting level * Create and build the package object */ TargetObject = AcpiUtCreatePackageObject ( SourceObject->Package.Count); if (!TargetObject) { return (AE_NO_MEMORY); } TargetObject->Common.Flags = SourceObject->Common.Flags; /* Pass the new package object back to the package walk routine */ State->Pkg.ThisTargetObj = TargetObject; /* Store the object pointer in the parent package object */ *ThisTargetPtr = TargetObject; break; default: return (AE_BAD_PARAMETER); } return (Status); ErrorExit: AcpiUtRemoveReference (TargetObject); return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtCopyIpackageToIpackage * * PARAMETERS: SourceObj - Pointer to the source package object * DestObj - Where the internal object is returned * WalkState - Current Walk state descriptor * * RETURN: Status * * DESCRIPTION: This function is called to copy an internal package object * into another internal package object. * ******************************************************************************/ static ACPI_STATUS AcpiUtCopyIpackageToIpackage ( ACPI_OPERAND_OBJECT *SourceObj, ACPI_OPERAND_OBJECT *DestObj, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (UtCopyIpackageToIpackage); DestObj->Common.Type = SourceObj->Common.Type; DestObj->Common.Flags = SourceObj->Common.Flags; DestObj->Package.Count = SourceObj->Package.Count; /* * Create the object array and walk the source package tree */ DestObj->Package.Elements = ACPI_ALLOCATE_ZEROED ( ((ACPI_SIZE) SourceObj->Package.Count + 1) * sizeof (void *)); if (!DestObj->Package.Elements) { ACPI_ERROR ((AE_INFO, "Package allocation failure")); return_ACPI_STATUS (AE_NO_MEMORY); } /* * Copy the package element-by-element by walking the package "tree". * This handles nested packages of arbitrary depth. */ Status = AcpiUtWalkPackageTree (SourceObj, DestObj, AcpiUtCopyIelementToIelement, WalkState); if (ACPI_FAILURE (Status)) { /* On failure, delete the destination package object */ AcpiUtRemoveReference (DestObj); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtCopyIobjectToIobject * * PARAMETERS: SourceDesc - The internal object to be copied * DestDesc - Where the copied object is returned * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Copy an internal object to a new internal object * ******************************************************************************/ ACPI_STATUS AcpiUtCopyIobjectToIobject ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT **DestDesc, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (UtCopyIobjectToIobject); /* Create the top level object */ *DestDesc = AcpiUtCreateInternalObject (SourceDesc->Common.Type); if (!*DestDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Copy the object and possible subobjects */ if (SourceDesc->Common.Type == ACPI_TYPE_PACKAGE) { Status = AcpiUtCopyIpackageToIpackage ( SourceDesc, *DestDesc, WalkState); } else { Status = AcpiUtCopySimpleObject (SourceDesc, *DestDesc); } /* Delete the allocated object if copy failed */ if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (*DestDesc); } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/utilities/utinit.c0000775000175000017500000002266514773714133022735 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utinit - Common ACPI subsystem initialization * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acevents.h" #include "actables.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utinit") /* Local prototypes */ static void AcpiUtTerminate ( void); #if (!ACPI_REDUCED_HARDWARE) static void AcpiUtFreeGpeLists ( void); #else #define AcpiUtFreeGpeLists() #endif /* !ACPI_REDUCED_HARDWARE */ #if (!ACPI_REDUCED_HARDWARE) /****************************************************************************** * * FUNCTION: AcpiUtFreeGpeLists * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Free global GPE lists * ******************************************************************************/ static void AcpiUtFreeGpeLists ( void) { ACPI_GPE_BLOCK_INFO *GpeBlock; ACPI_GPE_BLOCK_INFO *NextGpeBlock; ACPI_GPE_XRUPT_INFO *GpeXruptInfo; ACPI_GPE_XRUPT_INFO *NextGpeXruptInfo; /* Free global GPE blocks and related info structures */ GpeXruptInfo = AcpiGbl_GpeXruptListHead; while (GpeXruptInfo) { GpeBlock = GpeXruptInfo->GpeBlockListHead; while (GpeBlock) { NextGpeBlock = GpeBlock->Next; ACPI_FREE (GpeBlock->EventInfo); ACPI_FREE (GpeBlock->RegisterInfo); ACPI_FREE (GpeBlock); GpeBlock = NextGpeBlock; } NextGpeXruptInfo = GpeXruptInfo->Next; ACPI_FREE (GpeXruptInfo); GpeXruptInfo = NextGpeXruptInfo; } } #endif /* !ACPI_REDUCED_HARDWARE */ /******************************************************************************* * * FUNCTION: AcpiUtInitGlobals * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize ACPICA globals. All globals that require specific * initialization should be initialized here. This allows for * a warm restart. * ******************************************************************************/ ACPI_STATUS AcpiUtInitGlobals ( void) { ACPI_STATUS Status; UINT32 i; ACPI_FUNCTION_TRACE (UtInitGlobals); /* Create all memory caches */ Status = AcpiUtCreateCaches (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Address Range lists */ for (i = 0; i < ACPI_ADDRESS_RANGE_MAX; i++) { AcpiGbl_AddressRangeList[i] = NULL; } /* Mutex locked flags */ for (i = 0; i < ACPI_NUM_MUTEX; i++) { AcpiGbl_MutexInfo[i].Mutex = NULL; AcpiGbl_MutexInfo[i].ThreadId = ACPI_MUTEX_NOT_ACQUIRED; AcpiGbl_MutexInfo[i].UseCount = 0; } for (i = 0; i < ACPI_NUM_OWNERID_MASKS; i++) { AcpiGbl_OwnerIdMask[i] = 0; } /* Last OwnerID is never valid */ AcpiGbl_OwnerIdMask[ACPI_NUM_OWNERID_MASKS - 1] = 0x80000000; /* Event counters */ AcpiMethodCount = 0; AcpiSciCount = 0; AcpiGpeCount = 0; for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { AcpiFixedEventCount[i] = 0; } #if (!ACPI_REDUCED_HARDWARE) /* GPE/SCI support */ AcpiGbl_AllGpesInitialized = FALSE; AcpiGbl_GpeXruptListHead = NULL; AcpiGbl_GpeFadtBlocks[0] = NULL; AcpiGbl_GpeFadtBlocks[1] = NULL; AcpiCurrentGpeCount = 0; AcpiGbl_GlobalEventHandler = NULL; AcpiGbl_SciHandlerList = NULL; #endif /* !ACPI_REDUCED_HARDWARE */ /* Global handlers */ AcpiGbl_GlobalNotify[0].Handler = NULL; AcpiGbl_GlobalNotify[1].Handler = NULL; AcpiGbl_ExceptionHandler = NULL; AcpiGbl_InitHandler = NULL; AcpiGbl_TableHandler = NULL; AcpiGbl_InterfaceHandler = NULL; /* Global Lock support */ AcpiGbl_GlobalLockSemaphore = ACPI_SEMAPHORE_NULL; AcpiGbl_GlobalLockMutex = NULL; AcpiGbl_GlobalLockAcquired = FALSE; AcpiGbl_GlobalLockHandle = 0; AcpiGbl_GlobalLockPresent = FALSE; /* Miscellaneous variables */ AcpiGbl_DSDT = NULL; AcpiGbl_CmSingleStep = FALSE; AcpiGbl_Shutdown = FALSE; AcpiGbl_NsLookupCount = 0; AcpiGbl_PsFindCount = 0; AcpiGbl_AcpiHardwarePresent = TRUE; AcpiGbl_LastOwnerIdIndex = 0; AcpiGbl_NextOwnerIdOffset = 0; AcpiGbl_DebuggerConfiguration = DEBUGGER_THREADING; AcpiGbl_OsiMutex = NULL; /* Hardware oriented */ AcpiGbl_EventsInitialized = FALSE; AcpiGbl_SystemAwakeAndRunning = TRUE; /* Namespace */ AcpiGbl_RootNode = NULL; AcpiGbl_RootNodeStruct.Name.Integer = ACPI_ROOT_NAME; AcpiGbl_RootNodeStruct.DescriptorType = ACPI_DESC_TYPE_NAMED; AcpiGbl_RootNodeStruct.Type = ACPI_TYPE_DEVICE; AcpiGbl_RootNodeStruct.Parent = NULL; AcpiGbl_RootNodeStruct.Child = NULL; AcpiGbl_RootNodeStruct.Peer = NULL; AcpiGbl_RootNodeStruct.Object = NULL; #ifdef ACPI_DISASSEMBLER AcpiGbl_ExternalList = NULL; AcpiGbl_NumExternalMethods = 0; AcpiGbl_ResolvedExternalMethods = 0; #endif #ifdef ACPI_DEBUG_OUTPUT AcpiGbl_LowestStackPointer = ACPI_CAST_PTR (ACPI_SIZE, ACPI_SIZE_MAX); #endif #ifdef ACPI_DBG_TRACK_ALLOCATIONS AcpiGbl_DisplayFinalMemStats = FALSE; AcpiGbl_DisableMemTracking = FALSE; #endif return_ACPI_STATUS (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiUtTerminate * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Free global memory * ******************************************************************************/ static void AcpiUtTerminate ( void) { ACPI_FUNCTION_TRACE (UtTerminate); AcpiUtFreeGpeLists (); AcpiUtDeleteAddressLists (); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiUtSubsystemShutdown * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Shutdown the various components. Do not delete the mutex * objects here, because the AML debugger may be still running. * ******************************************************************************/ void AcpiUtSubsystemShutdown ( void) { ACPI_FUNCTION_TRACE (UtSubsystemShutdown); /* Just exit if subsystem is already shutdown */ if (AcpiGbl_Shutdown) { ACPI_ERROR ((AE_INFO, "ACPI Subsystem is already terminated")); return_VOID; } /* Subsystem appears active, go ahead and shut it down */ AcpiGbl_Shutdown = TRUE; AcpiGbl_StartupFlags = 0; ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Shutting down ACPI Subsystem\n")); #ifndef ACPI_ASL_COMPILER /* Close the AcpiEvent Handling */ AcpiEvTerminate (); /* Delete any dynamic _OSI interfaces */ AcpiUtInterfaceTerminate (); #endif /* Close the Namespace */ AcpiNsTerminate (); /* Delete the ACPI tables */ AcpiTbTerminate (); /* Close the globals */ AcpiUtTerminate (); /* Purge the local caches */ (void) AcpiUtDeleteCaches (); return_VOID; } acpica-unix-20250404/source/components/utilities/utstate.c0000775000175000017500000002232114773714133023077 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utstate - state object support procedures * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utstate") /******************************************************************************* * * FUNCTION: AcpiUtPushGenericState * * PARAMETERS: ListHead - Head of the state stack * State - State object to push * * RETURN: None * * DESCRIPTION: Push a state object onto a state stack * ******************************************************************************/ void AcpiUtPushGenericState ( ACPI_GENERIC_STATE **ListHead, ACPI_GENERIC_STATE *State) { ACPI_FUNCTION_ENTRY (); /* Push the state object onto the front of the list (stack) */ State->Common.Next = *ListHead; *ListHead = State; return; } /******************************************************************************* * * FUNCTION: AcpiUtPopGenericState * * PARAMETERS: ListHead - Head of the state stack * * RETURN: The popped state object * * DESCRIPTION: Pop a state object from a state stack * ******************************************************************************/ ACPI_GENERIC_STATE * AcpiUtPopGenericState ( ACPI_GENERIC_STATE **ListHead) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_ENTRY (); /* Remove the state object at the head of the list (stack) */ State = *ListHead; if (State) { /* Update the list head */ *ListHead = State->Common.Next; } return (State); } /******************************************************************************* * * FUNCTION: AcpiUtCreateGenericState * * PARAMETERS: None * * RETURN: The new state object. NULL on failure. * * DESCRIPTION: Create a generic state object. Attempt to obtain one from * the global state cache; If none available, create a new one. * ******************************************************************************/ ACPI_GENERIC_STATE * AcpiUtCreateGenericState ( void) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_ENTRY (); State = AcpiOsAcquireObject (AcpiGbl_StateCache); if (State) { /* Initialize */ State->Common.DescriptorType = ACPI_DESC_TYPE_STATE; } return (State); } /******************************************************************************* * * FUNCTION: AcpiUtCreateThreadState * * PARAMETERS: None * * RETURN: New Thread State. NULL on failure * * DESCRIPTION: Create a "Thread State" - a flavor of the generic state used * to track per-thread info during method execution * ******************************************************************************/ ACPI_THREAD_STATE * AcpiUtCreateThreadState ( void) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_ENTRY (); /* Create the generic state object */ State = AcpiUtCreateGenericState (); if (!State) { return (NULL); } /* Init fields specific to the update struct */ State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_THREAD; State->Thread.ThreadId = AcpiOsGetThreadId (); /* Check for invalid thread ID - zero is very bad, it will break things */ if (!State->Thread.ThreadId) { ACPI_ERROR ((AE_INFO, "Invalid zero ID from AcpiOsGetThreadId")); State->Thread.ThreadId = (ACPI_THREAD_ID) 1; } return ((ACPI_THREAD_STATE *) State); } /******************************************************************************* * * FUNCTION: AcpiUtCreateUpdateState * * PARAMETERS: Object - Initial Object to be installed in the state * Action - Update action to be performed * * RETURN: New state object, null on failure * * DESCRIPTION: Create an "Update State" - a flavor of the generic state used * to update reference counts and delete complex objects such * as packages. * ******************************************************************************/ ACPI_GENERIC_STATE * AcpiUtCreateUpdateState ( ACPI_OPERAND_OBJECT *Object, UINT16 Action) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_ENTRY (); /* Create the generic state object */ State = AcpiUtCreateGenericState (); if (!State) { return (NULL); } /* Init fields specific to the update struct */ State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_UPDATE; State->Update.Object = Object; State->Update.Value = Action; return (State); } /******************************************************************************* * * FUNCTION: AcpiUtCreatePkgState * * PARAMETERS: Object - Initial Object to be installed in the state * Action - Update action to be performed * * RETURN: New state object, null on failure * * DESCRIPTION: Create a "Package State" * ******************************************************************************/ ACPI_GENERIC_STATE * AcpiUtCreatePkgState ( void *InternalObject, void *ExternalObject, UINT32 Index) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_ENTRY (); /* Create the generic state object */ State = AcpiUtCreateGenericState (); if (!State) { return (NULL); } /* Init fields specific to the update struct */ State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_PACKAGE; State->Pkg.SourceObject = (ACPI_OPERAND_OBJECT *) InternalObject; State->Pkg.DestObject = ExternalObject; State->Pkg.Index= Index; State->Pkg.NumPackages = 1; return (State); } /******************************************************************************* * * FUNCTION: AcpiUtCreateControlState * * PARAMETERS: None * * RETURN: New state object, null on failure * * DESCRIPTION: Create a "Control State" - a flavor of the generic state used * to support nested IF/WHILE constructs in the AML. * ******************************************************************************/ ACPI_GENERIC_STATE * AcpiUtCreateControlState ( void) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_ENTRY (); /* Create the generic state object */ State = AcpiUtCreateGenericState (); if (!State) { return (NULL); } /* Init fields specific to the control struct */ State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_CONTROL; State->Common.State = ACPI_CONTROL_CONDITIONAL_EXECUTING; return (State); } /******************************************************************************* * * FUNCTION: AcpiUtDeleteGenericState * * PARAMETERS: State - The state object to be deleted * * RETURN: None * * DESCRIPTION: Release a state object to the state cache. NULL state objects * are ignored. * ******************************************************************************/ void AcpiUtDeleteGenericState ( ACPI_GENERIC_STATE *State) { ACPI_FUNCTION_ENTRY (); /* Ignore null state */ if (State) { (void) AcpiOsReleaseObject (AcpiGbl_StateCache, State); } return; } acpica-unix-20250404/source/components/utilities/utdelete.c0000775000175000017500000005717314773714133023236 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utdelete - object deletion and reference count utilities * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "acnamesp.h" #include "acevents.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utdelete") /* Local prototypes */ static void AcpiUtDeleteInternalObj ( ACPI_OPERAND_OBJECT *Object); static void AcpiUtUpdateRefCount ( ACPI_OPERAND_OBJECT *Object, UINT32 Action); /******************************************************************************* * * FUNCTION: AcpiUtDeleteInternalObj * * PARAMETERS: Object - Object to be deleted * * RETURN: None * * DESCRIPTION: Low level object deletion, after reference counts have been * updated (All reference counts, including sub-objects!) * ******************************************************************************/ static void AcpiUtDeleteInternalObj ( ACPI_OPERAND_OBJECT *Object) { void *ObjPointer = NULL; ACPI_OPERAND_OBJECT *HandlerDesc; ACPI_OPERAND_OBJECT *SecondDesc; ACPI_OPERAND_OBJECT *NextDesc; ACPI_OPERAND_OBJECT *StartDesc; ACPI_OPERAND_OBJECT **LastObjPtr; ACPI_FUNCTION_TRACE_PTR (UtDeleteInternalObj, Object); if (!Object) { return_VOID; } /* * Must delete or free any pointers within the object that are not * actual ACPI objects (for example, a raw buffer pointer). */ switch (Object->Common.Type) { case ACPI_TYPE_STRING: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "**** String %p, ptr %p\n", Object, Object->String.Pointer)); /* Free the actual string buffer */ if (!(Object->Common.Flags & AOPOBJ_STATIC_POINTER)) { /* But only if it is NOT a pointer into an ACPI table */ ObjPointer = Object->String.Pointer; } break; case ACPI_TYPE_BUFFER: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "**** Buffer %p, ptr %p\n", Object, Object->Buffer.Pointer)); /* Free the actual buffer */ if (!(Object->Common.Flags & AOPOBJ_STATIC_POINTER)) { /* But only if it is NOT a pointer into an ACPI table */ ObjPointer = Object->Buffer.Pointer; } break; case ACPI_TYPE_PACKAGE: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, " **** Package of count %X\n", Object->Package.Count)); /* * Elements of the package are not handled here, they are deleted * separately */ /* Free the (variable length) element pointer array */ ObjPointer = Object->Package.Elements; break; /* * These objects have a possible list of notify handlers. * Device object also may have a GPE block. */ case ACPI_TYPE_DEVICE: if (Object->Device.GpeBlock) { (void) AcpiEvDeleteGpeBlock (Object->Device.GpeBlock); } ACPI_FALLTHROUGH; case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: /* Walk the address handler list for this object */ HandlerDesc = Object->CommonNotify.Handler; while (HandlerDesc) { NextDesc = HandlerDesc->AddressSpace.Next; AcpiUtRemoveReference (HandlerDesc); HandlerDesc = NextDesc; } break; case ACPI_TYPE_MUTEX: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "***** Mutex %p, OS Mutex %p\n", Object, Object->Mutex.OsMutex)); if (Object == AcpiGbl_GlobalLockMutex) { /* Global Lock has extra semaphore */ (void) AcpiOsDeleteSemaphore (AcpiGbl_GlobalLockSemaphore); AcpiGbl_GlobalLockSemaphore = ACPI_SEMAPHORE_NULL; AcpiOsDeleteMutex (Object->Mutex.OsMutex); AcpiGbl_GlobalLockMutex = NULL; } else { AcpiExUnlinkMutex (Object); AcpiOsDeleteMutex (Object->Mutex.OsMutex); } break; case ACPI_TYPE_EVENT: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "***** Event %p, OS Semaphore %p\n", Object, Object->Event.OsSemaphore)); (void) AcpiOsDeleteSemaphore (Object->Event.OsSemaphore); Object->Event.OsSemaphore = ACPI_SEMAPHORE_NULL; break; case ACPI_TYPE_METHOD: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "***** Method %p\n", Object)); /* Delete the method mutex if it exists */ if (Object->Method.Mutex) { AcpiOsDeleteMutex (Object->Method.Mutex->Mutex.OsMutex); AcpiUtDeleteObjectDesc (Object->Method.Mutex); Object->Method.Mutex = NULL; } if (Object->Method.Node) { Object->Method.Node = NULL; } break; case ACPI_TYPE_REGION: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "***** Region %p\n", Object)); /* * Update AddressRange list. However, only permanent regions * are installed in this list. (Not created within a method) */ if (!(Object->Region.Node->Flags & ANOBJ_TEMPORARY)) { AcpiUtRemoveAddressRange (Object->Region.SpaceId, Object->Region.Node); } SecondDesc = AcpiNsGetSecondaryObject (Object); if (SecondDesc) { /* * Free the RegionContext if and only if the handler is one of the * default handlers -- and therefore, we created the context object * locally, it was not created by an external caller. */ HandlerDesc = Object->Region.Handler; if (HandlerDesc) { NextDesc = HandlerDesc->AddressSpace.RegionList; StartDesc = NextDesc; LastObjPtr = &HandlerDesc->AddressSpace.RegionList; /* Remove the region object from the handler list */ while (NextDesc) { if (NextDesc == Object) { *LastObjPtr = NextDesc->Region.Next; break; } /* Walk the linked list of handlers */ LastObjPtr = &NextDesc->Region.Next; NextDesc = NextDesc->Region.Next; /* Prevent infinite loop if list is corrupted */ if (NextDesc == StartDesc) { ACPI_ERROR ((AE_INFO, "Circular region list in address handler object %p", HandlerDesc)); return_VOID; } } if (HandlerDesc->AddressSpace.HandlerFlags & ACPI_ADDR_HANDLER_DEFAULT_INSTALLED) { /* Deactivate region and free region context */ if (HandlerDesc->AddressSpace.Setup) { (void) HandlerDesc->AddressSpace.Setup (Object, ACPI_REGION_DEACTIVATE, HandlerDesc->AddressSpace.Context, &SecondDesc->Extra.RegionContext); } } AcpiUtRemoveReference (HandlerDesc); } /* Now we can free the Extra object */ AcpiUtDeleteObjectDesc (SecondDesc); } if (Object->Field.InternalPccBuffer) { ACPI_FREE(Object->Field.InternalPccBuffer); } break; case ACPI_TYPE_BUFFER_FIELD: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "***** Buffer Field %p\n", Object)); SecondDesc = AcpiNsGetSecondaryObject (Object); if (SecondDesc) { AcpiUtDeleteObjectDesc (SecondDesc); } break; case ACPI_TYPE_LOCAL_BANK_FIELD: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "***** Bank Field %p\n", Object)); SecondDesc = AcpiNsGetSecondaryObject (Object); if (SecondDesc) { AcpiUtDeleteObjectDesc (SecondDesc); } break; case ACPI_TYPE_LOCAL_ADDRESS_HANDLER: ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "***** Address handler %p\n", Object)); AcpiOsDeleteMutex (Object->AddressSpace.ContextMutex); break; default: break; } /* Free any allocated memory (pointer within the object) found above */ if (ObjPointer) { ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "Deleting Object Subptr %p\n", ObjPointer)); ACPI_FREE (ObjPointer); } /* Now the object can be safely deleted */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_ALLOCATIONS, "%s: Deleting Object %p [%s]\n", ACPI_GET_FUNCTION_NAME, Object, AcpiUtGetObjectTypeName (Object))); AcpiUtDeleteObjectDesc (Object); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiUtDeleteInternalObjectList * * PARAMETERS: ObjList - Pointer to the list to be deleted * * RETURN: None * * DESCRIPTION: This function deletes an internal object list, including both * simple objects and package objects * ******************************************************************************/ void AcpiUtDeleteInternalObjectList ( ACPI_OPERAND_OBJECT **ObjList) { ACPI_OPERAND_OBJECT **InternalObj; ACPI_FUNCTION_ENTRY (); /* Walk the null-terminated internal list */ for (InternalObj = ObjList; *InternalObj; InternalObj++) { AcpiUtRemoveReference (*InternalObj); } /* Free the combined parameter pointer list and object array */ ACPI_FREE (ObjList); return; } /******************************************************************************* * * FUNCTION: AcpiUtUpdateRefCount * * PARAMETERS: Object - Object whose ref count is to be updated * Action - What to do (REF_INCREMENT or REF_DECREMENT) * * RETURN: None. Sets new reference count within the object * * DESCRIPTION: Modify the reference count for an internal acpi object * ******************************************************************************/ static void AcpiUtUpdateRefCount ( ACPI_OPERAND_OBJECT *Object, UINT32 Action) { UINT16 OriginalCount; UINT16 NewCount = 0; ACPI_CPU_FLAGS LockFlags; char *Message; ACPI_FUNCTION_NAME (UtUpdateRefCount); if (!Object) { return; } /* * Always get the reference count lock. Note: Interpreter and/or * Namespace is not always locked when this function is called. */ LockFlags = AcpiOsAcquireLock (AcpiGbl_ReferenceCountLock); OriginalCount = Object->Common.ReferenceCount; /* Perform the reference count action (increment, decrement) */ switch (Action) { case REF_INCREMENT: NewCount = OriginalCount + 1; Object->Common.ReferenceCount = NewCount; AcpiOsReleaseLock (AcpiGbl_ReferenceCountLock, LockFlags); /* The current reference count should never be zero here */ if (!OriginalCount) { ACPI_WARNING ((AE_INFO, "Obj %p, Reference Count was zero before increment\n", Object)); } ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "Obj %p Type %.2X [%s] Refs %.2X [Incremented]\n", Object, Object->Common.Type, AcpiUtGetObjectTypeName (Object), NewCount)); Message = "Increment"; break; case REF_DECREMENT: /* The current reference count must be non-zero */ if (OriginalCount) { NewCount = OriginalCount - 1; Object->Common.ReferenceCount = NewCount; } AcpiOsReleaseLock (AcpiGbl_ReferenceCountLock, LockFlags); if (!OriginalCount) { ACPI_WARNING ((AE_INFO, "Obj %p, Reference Count is already zero, cannot decrement\n", Object)); return; } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_ALLOCATIONS, "%s: Obj %p Type %.2X Refs %.2X [Decremented]\n", ACPI_GET_FUNCTION_NAME, Object, Object->Common.Type, NewCount)); /* Actually delete the object on a reference count of zero */ if (NewCount == 0) { AcpiUtDeleteInternalObj (Object); } Message = "Decrement"; break; default: AcpiOsReleaseLock (AcpiGbl_ReferenceCountLock, LockFlags); ACPI_ERROR ((AE_INFO, "Unknown Reference Count action (0x%X)", Action)); return; } /* * Sanity check the reference count, for debug purposes only. * (A deleted object will have a huge reference count) */ if (NewCount > ACPI_MAX_REFERENCE_COUNT) { ACPI_WARNING ((AE_INFO, "Large Reference Count (0x%X) in object %p, Type=0x%.2X Operation=%s", NewCount, Object, Object->Common.Type, Message)); } } /******************************************************************************* * * FUNCTION: AcpiUtUpdateObjectReference * * PARAMETERS: Object - Increment or decrement the ref count for * this object and all sub-objects * Action - Either REF_INCREMENT or REF_DECREMENT * * RETURN: Status * * DESCRIPTION: Increment or decrement the object reference count * * Object references are incremented when: * 1) An object is attached to a Node (namespace object) * 2) An object is copied (all subobjects must be incremented) * * Object references are decremented when: * 1) An object is detached from an Node * ******************************************************************************/ ACPI_STATUS AcpiUtUpdateObjectReference ( ACPI_OPERAND_OBJECT *Object, UINT16 Action) { ACPI_STATUS Status = AE_OK; ACPI_GENERIC_STATE *StateList = NULL; ACPI_OPERAND_OBJECT *NextObject = NULL; ACPI_OPERAND_OBJECT *PrevObject; ACPI_GENERIC_STATE *State; UINT32 i; ACPI_FUNCTION_NAME (UtUpdateObjectReference); while (Object) { /* Make sure that this isn't a namespace handle */ if (ACPI_GET_DESCRIPTOR_TYPE (Object) == ACPI_DESC_TYPE_NAMED) { ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "Object %p is NS handle\n", Object)); return (AE_OK); } /* * All sub-objects must have their reference count updated * also. Different object types have different subobjects. */ switch (Object->Common.Type) { case ACPI_TYPE_DEVICE: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_POWER: case ACPI_TYPE_THERMAL: /* * Update the notify objects for these types (if present) * Two lists, system and device notify handlers. */ for (i = 0; i < ACPI_NUM_NOTIFY_TYPES; i++) { PrevObject = Object->CommonNotify.NotifyList[i]; while (PrevObject) { NextObject = PrevObject->Notify.Next[i]; AcpiUtUpdateRefCount (PrevObject, Action); PrevObject = NextObject; } } break; case ACPI_TYPE_PACKAGE: /* * We must update all the sub-objects of the package, * each of whom may have their own sub-objects. */ for (i = 0; i < Object->Package.Count; i++) { /* * Null package elements are legal and can be simply * ignored. */ NextObject = Object->Package.Elements[i]; if (!NextObject) { continue; } switch (NextObject->Common.Type) { case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* * For these very simple sub-objects, we can just * update the reference count here and continue. * Greatly increases performance of this operation. */ AcpiUtUpdateRefCount (NextObject, Action); break; default: /* * For complex sub-objects, push them onto the stack * for later processing (this eliminates recursion.) */ Status = AcpiUtCreateUpdateStateAndPush ( NextObject, Action, &StateList); if (ACPI_FAILURE (Status)) { goto ErrorExit; } break; } } NextObject = NULL; break; case ACPI_TYPE_BUFFER_FIELD: NextObject = Object->BufferField.BufferObj; break; case ACPI_TYPE_LOCAL_BANK_FIELD: NextObject = Object->BankField.BankObj; Status = AcpiUtCreateUpdateStateAndPush ( Object->BankField.RegionObj, Action, &StateList); if (ACPI_FAILURE (Status)) { goto ErrorExit; } break; case ACPI_TYPE_LOCAL_INDEX_FIELD: NextObject = Object->IndexField.IndexObj; Status = AcpiUtCreateUpdateStateAndPush ( Object->IndexField.DataObj, Action, &StateList); if (ACPI_FAILURE (Status)) { goto ErrorExit; } break; case ACPI_TYPE_LOCAL_REFERENCE: /* * The target of an Index (a package, string, or buffer) or a named * reference must track changes to the ref count of the index or * target object. */ if ((Object->Reference.Class == ACPI_REFCLASS_INDEX) || (Object->Reference.Class== ACPI_REFCLASS_NAME)) { NextObject = Object->Reference.Object; } break; case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_REGION: default: break; /* No subobjects for all other types */ } /* * Now we can update the count in the main object. This can only * happen after we update the sub-objects in case this causes the * main object to be deleted. */ AcpiUtUpdateRefCount (Object, Action); Object = NULL; /* Move on to the next object to be updated */ if (NextObject) { Object = NextObject; NextObject = NULL; } else if (StateList) { State = AcpiUtPopGenericState (&StateList); Object = State->Update.Object; AcpiUtDeleteGenericState (State); } } return (AE_OK); ErrorExit: ACPI_EXCEPTION ((AE_INFO, Status, "Could not update object reference count")); /* Free any stacked Update State objects */ while (StateList) { State = AcpiUtPopGenericState (&StateList); AcpiUtDeleteGenericState (State); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtAddReference * * PARAMETERS: Object - Object whose reference count is to be * incremented * * RETURN: None * * DESCRIPTION: Add one reference to an ACPI object * ******************************************************************************/ void AcpiUtAddReference ( ACPI_OPERAND_OBJECT *Object) { ACPI_FUNCTION_NAME (UtAddReference); /* Ensure that we have a valid object */ if (!AcpiUtValidInternalObject (Object)) { return; } ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "Obj %p Current Refs=%X [To Be Incremented]\n", Object, Object->Common.ReferenceCount)); /* Increment the reference count */ (void) AcpiUtUpdateObjectReference (Object, REF_INCREMENT); return; } /******************************************************************************* * * FUNCTION: AcpiUtRemoveReference * * PARAMETERS: Object - Object whose ref count will be decremented * * RETURN: None * * DESCRIPTION: Decrement the reference count of an ACPI internal object * ******************************************************************************/ void AcpiUtRemoveReference ( ACPI_OPERAND_OBJECT *Object) { ACPI_FUNCTION_NAME (UtRemoveReference); /* * Allow a NULL pointer to be passed in, just ignore it. This saves * each caller from having to check. Also, ignore NS nodes. */ if (!Object || (ACPI_GET_DESCRIPTOR_TYPE (Object) == ACPI_DESC_TYPE_NAMED)) { return; } /* Ensure that we have a valid object */ if (!AcpiUtValidInternalObject (Object)) { return; } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_ALLOCATIONS, "%s: Obj %p Current Refs=%X [To Be Decremented]\n", ACPI_GET_FUNCTION_NAME, Object, Object->Common.ReferenceCount)); /* * Decrement the reference count, and only actually delete the object * if the reference count becomes 0. (Must also decrement the ref count * of all subobjects!) */ (void) AcpiUtUpdateObjectReference (Object, REF_DECREMENT); return; } acpica-unix-20250404/source/components/utilities/utcache.c0000775000175000017500000002202514773714133023023 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utcache - local cache allocation routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utcache") #ifdef ACPI_USE_LOCAL_CACHE /******************************************************************************* * * FUNCTION: AcpiOsCreateCache * * PARAMETERS: CacheName - Ascii name for the cache * ObjectSize - Size of each cached object * MaxDepth - Maximum depth of the cache (in objects) * ReturnCache - Where the new cache object is returned * * RETURN: Status * * DESCRIPTION: Create a cache object * ******************************************************************************/ ACPI_STATUS AcpiOsCreateCache ( char *CacheName, UINT16 ObjectSize, UINT16 MaxDepth, ACPI_MEMORY_LIST **ReturnCache) { ACPI_MEMORY_LIST *Cache; ACPI_FUNCTION_ENTRY (); if (!CacheName || !ReturnCache || !ObjectSize) { return (AE_BAD_PARAMETER); } /* Create the cache object */ Cache = AcpiOsAllocate (sizeof (ACPI_MEMORY_LIST)); if (!Cache) { return (AE_NO_MEMORY); } /* Populate the cache object and return it */ memset (Cache, 0, sizeof (ACPI_MEMORY_LIST)); Cache->ListName = CacheName; Cache->ObjectSize = ObjectSize; Cache->MaxDepth = MaxDepth; *ReturnCache = Cache; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiOsPurgeCache * * PARAMETERS: Cache - Handle to cache object * * RETURN: Status * * DESCRIPTION: Free all objects within the requested cache. * ******************************************************************************/ ACPI_STATUS AcpiOsPurgeCache ( ACPI_MEMORY_LIST *Cache) { void *Next; ACPI_STATUS Status; ACPI_FUNCTION_ENTRY (); if (!Cache) { return (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES); if (ACPI_FAILURE (Status)) { return (Status); } /* Walk the list of objects in this cache */ while (Cache->ListHead) { /* Delete and unlink one cached state object */ Next = ACPI_GET_DESCRIPTOR_PTR (Cache->ListHead); ACPI_FREE (Cache->ListHead); Cache->ListHead = Next; Cache->CurrentDepth--; } (void) AcpiUtReleaseMutex (ACPI_MTX_CACHES); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiOsDeleteCache * * PARAMETERS: Cache - Handle to cache object * * RETURN: Status * * DESCRIPTION: Free all objects within the requested cache and delete the * cache object. * ******************************************************************************/ ACPI_STATUS AcpiOsDeleteCache ( ACPI_MEMORY_LIST *Cache) { ACPI_STATUS Status; ACPI_FUNCTION_ENTRY (); /* Purge all objects in the cache */ Status = AcpiOsPurgeCache (Cache); if (ACPI_FAILURE (Status)) { return (Status); } /* Now we can delete the cache object */ AcpiOsFree (Cache); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiOsReleaseObject * * PARAMETERS: Cache - Handle to cache object * Object - The object to be released * * RETURN: None * * DESCRIPTION: Release an object to the specified cache. If cache is full, * the object is deleted. * ******************************************************************************/ ACPI_STATUS AcpiOsReleaseObject ( ACPI_MEMORY_LIST *Cache, void *Object) { ACPI_STATUS Status; ACPI_FUNCTION_ENTRY (); if (!Cache || !Object) { return (AE_BAD_PARAMETER); } /* If cache is full, just free this object */ if (Cache->CurrentDepth >= Cache->MaxDepth) { ACPI_FREE (Object); ACPI_MEM_TRACKING (Cache->TotalFreed++); } /* Otherwise put this object back into the cache */ else { Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES); if (ACPI_FAILURE (Status)) { return (Status); } /* Mark the object as cached */ memset (Object, 0xCA, Cache->ObjectSize); ACPI_SET_DESCRIPTOR_TYPE (Object, ACPI_DESC_TYPE_CACHED); /* Put the object at the head of the cache list */ ACPI_SET_DESCRIPTOR_PTR (Object, Cache->ListHead); Cache->ListHead = Object; Cache->CurrentDepth++; (void) AcpiUtReleaseMutex (ACPI_MTX_CACHES); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiOsAcquireObject * * PARAMETERS: Cache - Handle to cache object * * RETURN: the acquired object. NULL on error * * DESCRIPTION: Get an object from the specified cache. If cache is empty, * the object is allocated. * ******************************************************************************/ void * AcpiOsAcquireObject ( ACPI_MEMORY_LIST *Cache) { ACPI_STATUS Status; void *Object; ACPI_FUNCTION_TRACE (OsAcquireObject); if (!Cache) { return_PTR (NULL); } Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES); if (ACPI_FAILURE (Status)) { return_PTR (NULL); } ACPI_MEM_TRACKING (Cache->Requests++); /* Check the cache first */ if (Cache->ListHead) { /* There is an object available, use it */ Object = Cache->ListHead; Cache->ListHead = ACPI_GET_DESCRIPTOR_PTR (Object); Cache->CurrentDepth--; ACPI_MEM_TRACKING (Cache->Hits++); ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC, "%s: Object %p from %s cache\n", ACPI_GET_FUNCTION_NAME, Object, Cache->ListName)); Status = AcpiUtReleaseMutex (ACPI_MTX_CACHES); if (ACPI_FAILURE (Status)) { return_PTR (NULL); } /* Clear (zero) the previously used Object */ memset (Object, 0, Cache->ObjectSize); } else { /* The cache is empty, create a new object */ #ifdef ACPI_DBG_TRACK_ALLOCATIONS ACPI_MEM_TRACKING (Cache->TotalAllocated++); if ((Cache->TotalAllocated - Cache->TotalFreed) > Cache->MaxOccupied) { Cache->MaxOccupied = Cache->TotalAllocated - Cache->TotalFreed; } #endif /* Avoid deadlock with ACPI_ALLOCATE_ZEROED */ Status = AcpiUtReleaseMutex (ACPI_MTX_CACHES); if (ACPI_FAILURE (Status)) { return_PTR (NULL); } Object = ACPI_ALLOCATE_ZEROED (Cache->ObjectSize); if (!Object) { return_PTR (NULL); } } return_PTR (Object); } #endif /* ACPI_USE_LOCAL_CACHE */ acpica-unix-20250404/source/components/utilities/utmisc.c0000775000175000017500000003215314773714133022716 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utmisc - common utility procedures * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utmisc") /******************************************************************************* * * FUNCTION: AcpiUtIsPciRootBridge * * PARAMETERS: Id - The HID/CID in string format * * RETURN: TRUE if the Id is a match for a PCI/PCI-Express Root Bridge * * DESCRIPTION: Determine if the input ID is a PCI Root Bridge ID. * ******************************************************************************/ BOOLEAN AcpiUtIsPciRootBridge ( char *Id) { /* * Check if this is a PCI root bridge. * ACPI 3.0+: check for a PCI Express root also. */ if (!(strcmp (Id, PCI_ROOT_HID_STRING)) || !(strcmp (Id, PCI_EXPRESS_ROOT_HID_STRING))) { return (TRUE); } return (FALSE); } #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_NAMES_APP) /******************************************************************************* * * FUNCTION: AcpiUtIsAmlTable * * PARAMETERS: Table - An ACPI table * * RETURN: TRUE if table contains executable AML; FALSE otherwise * * DESCRIPTION: Check ACPI Signature for a table that contains AML code. * Currently, these are DSDT,SSDT,PSDT. All other table types are * data tables that do not contain AML code. * ******************************************************************************/ BOOLEAN AcpiUtIsAmlTable ( ACPI_TABLE_HEADER *Table) { /* These are the only tables that contain executable AML */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_DSDT) || ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_PSDT) || ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_SSDT) || ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_OSDT) || ACPI_IS_OEM_SIG (Table->Signature)) { return (TRUE); } return (FALSE); } #endif /******************************************************************************* * * FUNCTION: AcpiUtDwordByteSwap * * PARAMETERS: Value - Value to be converted * * RETURN: UINT32 integer with bytes swapped * * DESCRIPTION: Convert a 32-bit value to big-endian (swap the bytes) * ******************************************************************************/ UINT32 AcpiUtDwordByteSwap ( UINT32 Value) { union { UINT32 Value; UINT8 Bytes[4]; } Out; union { UINT32 Value; UINT8 Bytes[4]; } In; ACPI_FUNCTION_ENTRY (); In.Value = Value; Out.Bytes[0] = In.Bytes[3]; Out.Bytes[1] = In.Bytes[2]; Out.Bytes[2] = In.Bytes[1]; Out.Bytes[3] = In.Bytes[0]; return (Out.Value); } /******************************************************************************* * * FUNCTION: AcpiUtSetIntegerWidth * * PARAMETERS: Revision From DSDT header * * RETURN: None * * DESCRIPTION: Set the global integer bit width based upon the revision * of the DSDT. For Revision 1 and 0, Integers are 32 bits. * For Revision 2 and above, Integers are 64 bits. Yes, this * makes a difference. * ******************************************************************************/ void AcpiUtSetIntegerWidth ( UINT8 Revision) { if (Revision < 2) { /* 32-bit case */ AcpiGbl_IntegerBitWidth = 32; AcpiGbl_IntegerNybbleWidth = 8; AcpiGbl_IntegerByteWidth = 4; } else { /* 64-bit case (ACPI 2.0+) */ AcpiGbl_IntegerBitWidth = 64; AcpiGbl_IntegerNybbleWidth = 16; AcpiGbl_IntegerByteWidth = 8; } } /******************************************************************************* * * FUNCTION: AcpiUtCreateUpdateStateAndPush * * PARAMETERS: Object - Object to be added to the new state * Action - Increment/Decrement * StateList - List the state will be added to * * RETURN: Status * * DESCRIPTION: Create a new state and push it * ******************************************************************************/ ACPI_STATUS AcpiUtCreateUpdateStateAndPush ( ACPI_OPERAND_OBJECT *Object, UINT16 Action, ACPI_GENERIC_STATE **StateList) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_ENTRY (); /* Ignore null objects; these are expected */ if (!Object) { return (AE_OK); } State = AcpiUtCreateUpdateState (Object, Action); if (!State) { return (AE_NO_MEMORY); } AcpiUtPushGenericState (StateList, State); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtWalkPackageTree * * PARAMETERS: SourceObject - The package to walk * TargetObject - Target object (if package is being copied) * WalkCallback - Called once for each package element * Context - Passed to the callback function * * RETURN: Status * * DESCRIPTION: Walk through a package, including subpackages * ******************************************************************************/ ACPI_STATUS AcpiUtWalkPackageTree ( ACPI_OPERAND_OBJECT *SourceObject, void *TargetObject, ACPI_PKG_CALLBACK WalkCallback, void *Context) { ACPI_STATUS Status = AE_OK; ACPI_GENERIC_STATE *StateList = NULL; ACPI_GENERIC_STATE *State; ACPI_OPERAND_OBJECT *ThisSourceObj; UINT32 ThisIndex; ACPI_FUNCTION_TRACE (UtWalkPackageTree); State = AcpiUtCreatePkgState (SourceObject, TargetObject, 0); if (!State) { return_ACPI_STATUS (AE_NO_MEMORY); } while (State) { /* Get one element of the package */ ThisIndex = State->Pkg.Index; ThisSourceObj = State->Pkg.SourceObject->Package.Elements[ThisIndex]; State->Pkg.ThisTargetObj = &State->Pkg.SourceObject->Package.Elements[ThisIndex]; /* * Check for: * 1) An uninitialized package element. It is completely * legal to declare a package and leave it uninitialized * 2) Not an internal object - can be a namespace node instead * 3) Any type other than a package. Packages are handled in else * case below. */ if ((!ThisSourceObj) || (ACPI_GET_DESCRIPTOR_TYPE (ThisSourceObj) != ACPI_DESC_TYPE_OPERAND) || (ThisSourceObj->Common.Type != ACPI_TYPE_PACKAGE)) { Status = WalkCallback (ACPI_COPY_TYPE_SIMPLE, ThisSourceObj, State, Context); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } State->Pkg.Index++; while (State->Pkg.Index >= State->Pkg.SourceObject->Package.Count) { /* * We've handled all of the objects at this level, This means * that we have just completed a package. That package may * have contained one or more packages itself. * * Delete this state and pop the previous state (package). */ AcpiUtDeleteGenericState (State); State = AcpiUtPopGenericState (&StateList); /* Finished when there are no more states */ if (!State) { /* * We have handled all of the objects in the top level * package just add the length of the package objects * and exit */ return_ACPI_STATUS (AE_OK); } /* * Go back up a level and move the index past the just * completed package object. */ State->Pkg.Index++; } } else { /* This is a subobject of type package */ Status = WalkCallback ( ACPI_COPY_TYPE_PACKAGE, ThisSourceObj, State, Context); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Push the current state and create a new one * The callback above returned a new target package object. */ AcpiUtPushGenericState (&StateList, State); State = AcpiUtCreatePkgState ( ThisSourceObj, State->Pkg.ThisTargetObj, 0); if (!State) { /* Free any stacked Update State objects */ while (StateList) { State = AcpiUtPopGenericState (&StateList); AcpiUtDeleteGenericState (State); } return_ACPI_STATUS (AE_NO_MEMORY); } } } /* We should never get here */ ACPI_ERROR ((AE_INFO, "State list did not terminate correctly")); return_ACPI_STATUS (AE_AML_INTERNAL); } #ifdef ACPI_DEBUG_OUTPUT /******************************************************************************* * * FUNCTION: AcpiUtDisplayInitPathname * * PARAMETERS: Type - Object type of the node * ObjHandle - Handle whose pathname will be displayed * Path - Additional path string to be appended. * (NULL if no extra path) * * RETURN: ACPI_STATUS * * DESCRIPTION: Display full pathname of an object, DEBUG ONLY * ******************************************************************************/ void AcpiUtDisplayInitPathname ( UINT8 Type, ACPI_NAMESPACE_NODE *ObjHandle, const char *Path) { ACPI_STATUS Status; ACPI_BUFFER Buffer; ACPI_FUNCTION_ENTRY (); /* Only print the path if the appropriate debug level is enabled */ if (!(AcpiDbgLevel & ACPI_LV_INIT_NAMES)) { return; } /* Get the full pathname to the node */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (ObjHandle, &Buffer, TRUE); if (ACPI_FAILURE (Status)) { return; } /* Print what we're doing */ switch (Type) { case ACPI_TYPE_METHOD: AcpiOsPrintf ("Executing "); break; default: AcpiOsPrintf ("Initializing "); break; } /* Print the object type and pathname */ AcpiOsPrintf ("%-12s %s", AcpiUtGetTypeName (Type), (char *) Buffer.Pointer); /* Extra path is used to append names like _STA, _INI, etc. */ if (Path) { AcpiOsPrintf (".%s", Path); } AcpiOsPrintf ("\n"); ACPI_FREE (Buffer.Pointer); } #endif acpica-unix-20250404/source/components/utilities/uthex.c0000775000175000017500000001155114773714133022546 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: uthex -- Hex/ASCII support functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("uthex") /* Hex to ASCII conversion table */ static const char AcpiGbl_HexToAscii[] = { '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' }; /******************************************************************************* * * FUNCTION: AcpiUtHexToAsciiChar * * PARAMETERS: Integer - Contains the hex digit * Position - bit position of the digit within the * integer (multiple of 4) * * RETURN: The converted Ascii character * * DESCRIPTION: Convert a hex digit to an Ascii character * ******************************************************************************/ char AcpiUtHexToAsciiChar ( UINT64 Integer, UINT32 Position) { UINT64 Index; AcpiUtShortShiftRight (Integer, Position, &Index); return (AcpiGbl_HexToAscii[Index & 0xF]); } /******************************************************************************* * * FUNCTION: AcpiUtAsciiToHexByte * * PARAMETERS: TwoAsciiChars - Pointer to two ASCII characters * ReturnByte - Where converted byte is returned * * RETURN: Status and converted hex byte * * DESCRIPTION: Perform ascii-to-hex translation, exactly two ASCII characters * to a single converted byte value. * ******************************************************************************/ ACPI_STATUS AcpiUtAsciiToHexByte ( char *TwoAsciiChars, UINT8 *ReturnByte) { /* Both ASCII characters must be valid hex digits */ if (!isxdigit ((int) TwoAsciiChars[0]) || !isxdigit ((int) TwoAsciiChars[1])) { return (AE_BAD_HEX_CONSTANT); } *ReturnByte = AcpiUtAsciiCharToHex (TwoAsciiChars[1]) | (AcpiUtAsciiCharToHex (TwoAsciiChars[0]) << 4); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtAsciiCharToHex * * PARAMETERS: HexChar - Hex character in Ascii. Must be: * 0-9 or A-F or a-f * * RETURN: The binary value of the ascii/hex character * * DESCRIPTION: Perform ascii-to-hex translation * ******************************************************************************/ UINT8 AcpiUtAsciiCharToHex ( int HexChar) { /* Values 0-9 */ if (HexChar <= '9') { return ((UINT8) (HexChar - '0')); } /* Upper case A-F */ if (HexChar <= 'F') { return ((UINT8) (HexChar - 0x37)); } /* Lower case a-f */ return ((UINT8) (HexChar - 0x57)); } acpica-unix-20250404/source/components/utilities/utresrc.c0000775000175000017500000004757614773714133023120 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utresrc - Resource management utilities * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utresrc") /* * Base sizes of the raw AML resource descriptors, indexed by resource type. * Zero indicates a reserved (and therefore invalid) resource type. */ const UINT8 AcpiGbl_ResourceAmlSizes[] = { /* Small descriptors */ 0, 0, 0, 0, ACPI_AML_SIZE_SMALL (AML_RESOURCE_IRQ), ACPI_AML_SIZE_SMALL (AML_RESOURCE_DMA), ACPI_AML_SIZE_SMALL (AML_RESOURCE_START_DEPENDENT), ACPI_AML_SIZE_SMALL (AML_RESOURCE_END_DEPENDENT), ACPI_AML_SIZE_SMALL (AML_RESOURCE_IO), ACPI_AML_SIZE_SMALL (AML_RESOURCE_FIXED_IO), ACPI_AML_SIZE_SMALL (AML_RESOURCE_FIXED_DMA), 0, 0, 0, ACPI_AML_SIZE_SMALL (AML_RESOURCE_VENDOR_SMALL), ACPI_AML_SIZE_SMALL (AML_RESOURCE_END_TAG), /* Large descriptors */ 0, ACPI_AML_SIZE_LARGE (AML_RESOURCE_MEMORY24), ACPI_AML_SIZE_LARGE (AML_RESOURCE_GENERIC_REGISTER), 0, ACPI_AML_SIZE_LARGE (AML_RESOURCE_VENDOR_LARGE), ACPI_AML_SIZE_LARGE (AML_RESOURCE_MEMORY32), ACPI_AML_SIZE_LARGE (AML_RESOURCE_FIXED_MEMORY32), ACPI_AML_SIZE_LARGE (AML_RESOURCE_ADDRESS32), ACPI_AML_SIZE_LARGE (AML_RESOURCE_ADDRESS16), ACPI_AML_SIZE_LARGE (AML_RESOURCE_EXTENDED_IRQ), ACPI_AML_SIZE_LARGE (AML_RESOURCE_ADDRESS64), ACPI_AML_SIZE_LARGE (AML_RESOURCE_EXTENDED_ADDRESS64), ACPI_AML_SIZE_LARGE (AML_RESOURCE_GPIO), ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_FUNCTION), ACPI_AML_SIZE_LARGE (AML_RESOURCE_COMMON_SERIALBUS), ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_CONFIG), ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_GROUP), ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_GROUP_FUNCTION), ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_GROUP_CONFIG), ACPI_AML_SIZE_LARGE (AML_RESOURCE_CLOCK_INPUT), }; const UINT8 AcpiGbl_ResourceAmlSerialBusSizes[] = { 0, ACPI_AML_SIZE_LARGE (AML_RESOURCE_I2C_SERIALBUS), ACPI_AML_SIZE_LARGE (AML_RESOURCE_SPI_SERIALBUS), ACPI_AML_SIZE_LARGE (AML_RESOURCE_UART_SERIALBUS), ACPI_AML_SIZE_LARGE (AML_RESOURCE_CSI2_SERIALBUS), }; /* * Resource types, used to validate the resource length field. * The length of fixed-length types must match exactly, variable * lengths must meet the minimum required length, etc. * Zero indicates a reserved (and therefore invalid) resource type. */ static const UINT8 AcpiGbl_ResourceTypes[] = { /* Small descriptors */ 0, 0, 0, 0, ACPI_SMALL_VARIABLE_LENGTH, /* 04 IRQ */ ACPI_FIXED_LENGTH, /* 05 DMA */ ACPI_SMALL_VARIABLE_LENGTH, /* 06 StartDependentFunctions */ ACPI_FIXED_LENGTH, /* 07 EndDependentFunctions */ ACPI_FIXED_LENGTH, /* 08 IO */ ACPI_FIXED_LENGTH, /* 09 FixedIO */ ACPI_FIXED_LENGTH, /* 0A FixedDMA */ 0, 0, 0, ACPI_VARIABLE_LENGTH, /* 0E VendorShort */ ACPI_FIXED_LENGTH, /* 0F EndTag */ /* Large descriptors */ 0, ACPI_FIXED_LENGTH, /* 01 Memory24 */ ACPI_FIXED_LENGTH, /* 02 GenericRegister */ 0, ACPI_VARIABLE_LENGTH, /* 04 VendorLong */ ACPI_FIXED_LENGTH, /* 05 Memory32 */ ACPI_FIXED_LENGTH, /* 06 Memory32Fixed */ ACPI_VARIABLE_LENGTH, /* 07 Dword* address */ ACPI_VARIABLE_LENGTH, /* 08 Word* address */ ACPI_VARIABLE_LENGTH, /* 09 ExtendedIRQ */ ACPI_VARIABLE_LENGTH, /* 0A Qword* address */ ACPI_FIXED_LENGTH, /* 0B Extended* address */ ACPI_VARIABLE_LENGTH, /* 0C Gpio* */ ACPI_VARIABLE_LENGTH, /* 0D PinFunction */ ACPI_VARIABLE_LENGTH, /* 0E *SerialBus */ ACPI_VARIABLE_LENGTH, /* 0F PinConfig */ ACPI_VARIABLE_LENGTH, /* 10 PinGroup */ ACPI_VARIABLE_LENGTH, /* 11 PinGroupFunction */ ACPI_VARIABLE_LENGTH, /* 12 PinGroupConfig */ ACPI_VARIABLE_LENGTH, /* 13 ClockInput */ }; /******************************************************************************* * * FUNCTION: AcpiUtWalkAmlResources * * PARAMETERS: WalkState - Current walk info * PARAMETERS: Aml - Pointer to the raw AML resource template * AmlLength - Length of the entire template * UserFunction - Called once for each descriptor found. If * NULL, a pointer to the EndTag is returned * Context - Passed to UserFunction * * RETURN: Status * * DESCRIPTION: Walk a raw AML resource list(buffer). User function called * once for each resource found. * ******************************************************************************/ ACPI_STATUS AcpiUtWalkAmlResources ( ACPI_WALK_STATE *WalkState, UINT8 *Aml, ACPI_SIZE AmlLength, ACPI_WALK_AML_CALLBACK UserFunction, void **Context) { ACPI_STATUS Status; UINT8 *EndAml; UINT8 ResourceIndex; UINT32 Length; UINT32 Offset = 0; UINT8 EndTag[2] = {0x79, 0x00}; ACPI_FUNCTION_TRACE (UtWalkAmlResources); /* The absolute minimum resource template is one EndTag descriptor */ if (AmlLength < sizeof (AML_RESOURCE_END_TAG)) { return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG); } /* Point to the end of the resource template buffer */ EndAml = Aml + AmlLength; /* Walk the byte list, abort on any invalid descriptor type or length */ while (Aml < EndAml) { /* Validate the Resource Type and Resource Length */ Status = AcpiUtValidateResource (WalkState, Aml, &ResourceIndex); if (ACPI_FAILURE (Status)) { /* * Exit on failure. Cannot continue because the descriptor * length may be bogus also. */ return_ACPI_STATUS (Status); } /* Get the length of this descriptor */ Length = AcpiUtGetDescriptorLength (Aml); /* Invoke the user function */ if (UserFunction) { Status = UserFunction ( Aml, Length, Offset, ResourceIndex, Context); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* An EndTag descriptor terminates this resource template */ if (AcpiUtGetResourceType (Aml) == ACPI_RESOURCE_NAME_END_TAG) { /* * There must be at least one more byte in the buffer for * the 2nd byte of the EndTag */ if ((Aml + 1) >= EndAml) { return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG); } /* * Don't attempt to perform any validation on the 2nd byte. * Although all known ASL compilers insert a zero for the 2nd * byte, it can also be a checksum (as per the ACPI spec), * and this is occasionally seen in the field. July 2017. */ /* Return the pointer to the EndTag if requested */ if (!UserFunction) { *Context = Aml; } /* Normal exit */ return_ACPI_STATUS (AE_OK); } Aml += Length; Offset += Length; } /* Did not find an EndTag descriptor */ if (UserFunction) { /* Insert an EndTag anyway. AcpiRsGetListLength always leaves room */ (void) AcpiUtValidateResource (WalkState, EndTag, &ResourceIndex); Status = UserFunction (EndTag, 2, Offset, ResourceIndex, Context); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG); } /******************************************************************************* * * FUNCTION: AcpiUtValidateResource * * PARAMETERS: WalkState - Current walk info * Aml - Pointer to the raw AML resource descriptor * ReturnIndex - Where the resource index is returned. NULL * if the index is not required. * * RETURN: Status, and optionally the Index into the global resource tables * * DESCRIPTION: Validate an AML resource descriptor by checking the Resource * Type and Resource Length. Returns an index into the global * resource information/dispatch tables for later use. * ******************************************************************************/ ACPI_STATUS AcpiUtValidateResource ( ACPI_WALK_STATE *WalkState, void *Aml, UINT8 *ReturnIndex) { AML_RESOURCE *AmlResource; UINT8 ResourceType; UINT8 ResourceIndex; ACPI_RS_LENGTH ResourceLength; ACPI_RS_LENGTH MinimumResourceLength; ACPI_FUNCTION_ENTRY (); /* * 1) Validate the ResourceType field (Byte 0) */ ResourceType = ACPI_GET8 (Aml); /* * Byte 0 contains the descriptor name (Resource Type) * Examine the large/small bit in the resource header */ if (ResourceType & ACPI_RESOURCE_NAME_LARGE) { /* Verify the large resource type (name) against the max */ if (ResourceType > ACPI_RESOURCE_NAME_LARGE_MAX) { goto InvalidResource; } /* * Large Resource Type -- bits 6:0 contain the name * Translate range 0x80-0x8B to index range 0x10-0x1B */ ResourceIndex = (UINT8) (ResourceType - 0x70); } else { /* * Small Resource Type -- bits 6:3 contain the name * Shift range to index range 0x00-0x0F */ ResourceIndex = (UINT8) ((ResourceType & ACPI_RESOURCE_NAME_SMALL_MASK) >> 3); } /* * Check validity of the resource type, via AcpiGbl_ResourceTypes. * Zero indicates an invalid resource. */ if (!AcpiGbl_ResourceTypes[ResourceIndex]) { goto InvalidResource; } /* * Validate the ResourceLength field. This ensures that the length * is at least reasonable, and guarantees that it is non-zero. */ ResourceLength = AcpiUtGetResourceLength (Aml); MinimumResourceLength = AcpiGbl_ResourceAmlSizes[ResourceIndex]; /* Validate based upon the type of resource - fixed length or variable */ switch (AcpiGbl_ResourceTypes[ResourceIndex]) { case ACPI_FIXED_LENGTH: /* Fixed length resource, length must match exactly */ if (ResourceLength != MinimumResourceLength) { goto BadResourceLength; } break; case ACPI_VARIABLE_LENGTH: /* Variable length resource, length must be at least the minimum */ if (ResourceLength < MinimumResourceLength) { goto BadResourceLength; } break; case ACPI_SMALL_VARIABLE_LENGTH: /* Small variable length resource, length can be (Min) or (Min-1) */ if ((ResourceLength > MinimumResourceLength) || (ResourceLength < (MinimumResourceLength - 1))) { goto BadResourceLength; } break; default: /* Shouldn't happen (because of validation earlier), but be sure */ goto InvalidResource; } AmlResource = ACPI_CAST_PTR (AML_RESOURCE, Aml); if (ResourceType == ACPI_RESOURCE_NAME_SERIAL_BUS) { /* Validate the BusType field */ if ((AmlResource->CommonSerialBus.Type == 0) || (AmlResource->CommonSerialBus.Type > AML_RESOURCE_MAX_SERIALBUSTYPE)) { if (WalkState) { ACPI_ERROR ((AE_INFO, "Invalid/unsupported SerialBus resource descriptor: BusType 0x%2.2X", AmlResource->CommonSerialBus.Type)); } return (AE_AML_INVALID_RESOURCE_TYPE); } } /* Optionally return the resource table index */ if (ReturnIndex) { *ReturnIndex = ResourceIndex; } return (AE_OK); InvalidResource: if (WalkState) { ACPI_ERROR ((AE_INFO, "Invalid/unsupported resource descriptor: Type 0x%2.2X", ResourceType)); } return (AE_AML_INVALID_RESOURCE_TYPE); BadResourceLength: if (WalkState) { ACPI_ERROR ((AE_INFO, "Invalid resource descriptor length: Type " "0x%2.2X, Length 0x%4.4X, MinLength 0x%4.4X", ResourceType, ResourceLength, MinimumResourceLength)); } return (AE_AML_BAD_RESOURCE_LENGTH); } /******************************************************************************* * * FUNCTION: AcpiUtGetResourceType * * PARAMETERS: Aml - Pointer to the raw AML resource descriptor * * RETURN: The Resource Type with no extraneous bits (except the * Large/Small descriptor bit -- this is left alone) * * DESCRIPTION: Extract the Resource Type/Name from the first byte of * a resource descriptor. * ******************************************************************************/ UINT8 AcpiUtGetResourceType ( void *Aml) { ACPI_FUNCTION_ENTRY (); /* * Byte 0 contains the descriptor name (Resource Type) * Examine the large/small bit in the resource header */ if (ACPI_GET8 (Aml) & ACPI_RESOURCE_NAME_LARGE) { /* Large Resource Type -- bits 6:0 contain the name */ return (ACPI_GET8 (Aml)); } else { /* Small Resource Type -- bits 6:3 contain the name */ return ((UINT8) (ACPI_GET8 (Aml) & ACPI_RESOURCE_NAME_SMALL_MASK)); } } /******************************************************************************* * * FUNCTION: AcpiUtGetResourceLength * * PARAMETERS: Aml - Pointer to the raw AML resource descriptor * * RETURN: Byte Length * * DESCRIPTION: Get the "Resource Length" of a raw AML descriptor. By * definition, this does not include the size of the descriptor * header or the length field itself. * ******************************************************************************/ UINT16 AcpiUtGetResourceLength ( void *Aml) { ACPI_RS_LENGTH ResourceLength; ACPI_FUNCTION_ENTRY (); /* * Byte 0 contains the descriptor name (Resource Type) * Examine the large/small bit in the resource header */ if (ACPI_GET8 (Aml) & ACPI_RESOURCE_NAME_LARGE) { /* Large Resource type -- bytes 1-2 contain the 16-bit length */ ACPI_MOVE_16_TO_16 (&ResourceLength, ACPI_ADD_PTR (UINT8, Aml, 1)); } else { /* Small Resource type -- bits 2:0 of byte 0 contain the length */ ResourceLength = (UINT16) (ACPI_GET8 (Aml) & ACPI_RESOURCE_NAME_SMALL_LENGTH_MASK); } return (ResourceLength); } /******************************************************************************* * * FUNCTION: AcpiUtGetResourceHeaderLength * * PARAMETERS: Aml - Pointer to the raw AML resource descriptor * * RETURN: Length of the AML header (depends on large/small descriptor) * * DESCRIPTION: Get the length of the header for this resource. * ******************************************************************************/ UINT8 AcpiUtGetResourceHeaderLength ( void *Aml) { ACPI_FUNCTION_ENTRY (); /* Examine the large/small bit in the resource header */ if (ACPI_GET8 (Aml) & ACPI_RESOURCE_NAME_LARGE) { return (sizeof (AML_RESOURCE_LARGE_HEADER)); } else { return (sizeof (AML_RESOURCE_SMALL_HEADER)); } } /******************************************************************************* * * FUNCTION: AcpiUtGetDescriptorLength * * PARAMETERS: Aml - Pointer to the raw AML resource descriptor * * RETURN: Byte length * * DESCRIPTION: Get the total byte length of a raw AML descriptor, including the * length of the descriptor header and the length field itself. * Used to walk descriptor lists. * ******************************************************************************/ UINT32 AcpiUtGetDescriptorLength ( void *Aml) { ACPI_FUNCTION_ENTRY (); /* * Get the Resource Length (does not include header length) and add * the header length (depends on if this is a small or large resource) */ return (AcpiUtGetResourceLength (Aml) + AcpiUtGetResourceHeaderLength (Aml)); } /******************************************************************************* * * FUNCTION: AcpiUtGetResourceEndTag * * PARAMETERS: ObjDesc - The resource template buffer object * EndTag - Where the pointer to the EndTag is returned * * RETURN: Status, pointer to the end tag * * DESCRIPTION: Find the EndTag resource descriptor in an AML resource template * Note: allows a buffer length of zero. * ******************************************************************************/ ACPI_STATUS AcpiUtGetResourceEndTag ( ACPI_OPERAND_OBJECT *ObjDesc, UINT8 **EndTag) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (UtGetResourceEndTag); /* Allow a buffer length of zero */ if (!ObjDesc->Buffer.Length) { *EndTag = ObjDesc->Buffer.Pointer; return_ACPI_STATUS (AE_OK); } /* Validate the template and get a pointer to the EndTag */ Status = AcpiUtWalkAmlResources (NULL, ObjDesc->Buffer.Pointer, ObjDesc->Buffer.Length, NULL, (void **) EndTag); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/utilities/utcksum.c0000775000175000017500000001555014773714133023107 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utcksum - Support generating table checksums * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #include "acutils.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("utcksum") /******************************************************************************* * * FUNCTION: AcpiUtVerifyChecksum * * PARAMETERS: Table - ACPI table to verify * Length - Length of entire table * * RETURN: Status * * DESCRIPTION: Verifies that the table checksums to zero. Optionally returns * exception on bad checksum. * Note: We don't have to check for a CDAT here, since CDAT is * not in the RSDT/XSDT, and the CDAT table is never installed * via ACPICA. * ******************************************************************************/ ACPI_STATUS AcpiUtVerifyChecksum ( ACPI_TABLE_HEADER *Table, UINT32 Length) { UINT8 Checksum; /* * FACS/S3PT: * They are the odd tables, have no standard ACPI header and no checksum */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_S3PT) || ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_FACS)) { return (AE_OK); } /* Compute the checksum on the table */ Length = Table->Length; Checksum = AcpiUtGenerateChecksum (ACPI_CAST_PTR (UINT8, Table), Length, Table->Checksum); /* Computed checksum matches table? */ if (Checksum != Table->Checksum) { ACPI_BIOS_WARNING ((AE_INFO, "Incorrect checksum in table [%4.4s] - 0x%2.2X, " "should be 0x%2.2X", Table->Signature, Table->Checksum, Table->Checksum - Checksum)); #if (ACPI_CHECKSUM_ABORT) return (AE_BAD_CHECKSUM); #endif } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtVerifyCdatChecksum * * PARAMETERS: Table - CDAT ACPI table to verify * Length - Length of entire table * * RETURN: Status * * DESCRIPTION: Verifies that the CDAT table checksums to zero. Optionally * returns an exception on bad checksum. * ******************************************************************************/ ACPI_STATUS AcpiUtVerifyCdatChecksum ( ACPI_TABLE_CDAT *CdatTable, UINT32 Length) { UINT8 Checksum; /* Compute the checksum on the table */ Checksum = AcpiUtGenerateChecksum (ACPI_CAST_PTR (UINT8, CdatTable), CdatTable->Length, CdatTable->Checksum); /* Computed checksum matches table? */ if (Checksum != CdatTable->Checksum) { ACPI_BIOS_WARNING ((AE_INFO, "Incorrect checksum in table [%4.4s] - 0x%2.2X, " "should be 0x%2.2X", AcpiGbl_CDAT, CdatTable->Checksum, Checksum)); #if (ACPI_CHECKSUM_ABORT) return (AE_BAD_CHECKSUM); #endif } CdatTable->Checksum = Checksum; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtGenerateChecksum * * PARAMETERS: Table - Pointer to table to be checksummed * Length - Length of the table * OriginalChecksum - Value of the checksum field * * RETURN: 8 bit checksum of buffer * * DESCRIPTION: Computes an 8 bit checksum of the table. * ******************************************************************************/ UINT8 AcpiUtGenerateChecksum ( void *Table, UINT32 Length, UINT8 OriginalChecksum) { UINT8 Checksum; /* Sum the entire table as-is */ Checksum = AcpiUtChecksum ((UINT8 *) Table, Length); /* Subtract off the existing checksum value in the table */ Checksum = (UINT8) (Checksum - OriginalChecksum); /* Compute and return the final checksum */ Checksum = (UINT8) (0 - Checksum); return (Checksum); } /******************************************************************************* * * FUNCTION: AcpiUtChecksum * * PARAMETERS: Buffer - Pointer to memory region to be checked * Length - Length of this memory region * * RETURN: Checksum (UINT8) * * DESCRIPTION: Calculates circular checksum of memory region. * ******************************************************************************/ UINT8 AcpiUtChecksum ( UINT8 *Buffer, UINT32 Length) { UINT8 Sum = 0; UINT8 *End = Buffer + Length; while (Buffer < End) { Sum = (UINT8) (Sum + *(Buffer++)); } return (Sum); } acpica-unix-20250404/source/components/utilities/utuuid.c0000775000175000017500000001216014773714133022725 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utuuid -- UUID support functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("utuuid") #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_HELP_APP) /* * UUID support functions. * * This table is used to convert an input UUID ascii string to a 16 byte * buffer and the reverse. The table maps a UUID buffer index 0-15 to * the index within the 36-byte UUID string where the associated 2-byte * hex value can be found. * * 36-byte UUID strings are of the form: * aabbccdd-eeff-gghh-iijj-kkllmmnnoopp * Where aa-pp are one byte hex numbers, made up of two hex digits * * Note: This table is basically the inverse of the string-to-offset table * found in the ACPI spec in the description of the ToUUID macro. */ const UINT8 AcpiGbl_MapToUuidOffset[UUID_BUFFER_LENGTH] = { 6,4,2,0,11,9,16,14,19,21,24,26,28,30,32,34 }; /******************************************************************************* * * FUNCTION: AcpiUtConvertStringToUuid * * PARAMETERS: InString - 36-byte formatted UUID string * UuidBuffer - Where the 16-byte UUID buffer is returned * * RETURN: None. Output data is returned in the UuidBuffer * * DESCRIPTION: Convert a 36-byte formatted UUID string to 16-byte UUID buffer * ******************************************************************************/ void AcpiUtConvertStringToUuid ( char *InString, UINT8 *UuidBuffer) { UINT32 i; for (i = 0; i < UUID_BUFFER_LENGTH; i++) { UuidBuffer[i] = (AcpiUtAsciiCharToHex ( InString[AcpiGbl_MapToUuidOffset[i]]) << 4); UuidBuffer[i] |= AcpiUtAsciiCharToHex ( InString[AcpiGbl_MapToUuidOffset[i] + 1]); } } /******************************************************************************* * * FUNCTION: AcpiUtConvertUuidToString * * PARAMETERS: UuidBuffer - 16-byte UUID buffer * OutString - 36-byte formatted UUID string * * RETURN: Status * * DESCRIPTION: Convert 16-byte UUID buffer to 36-byte formatted UUID string * OutString must be 37 bytes to include null terminator. * ******************************************************************************/ ACPI_STATUS AcpiUtConvertUuidToString ( char *UuidBuffer, char *OutString) { UINT32 i; if (!UuidBuffer || !OutString) { return (AE_BAD_PARAMETER); } for (i = 0; i < UUID_BUFFER_LENGTH; i++) { OutString[AcpiGbl_MapToUuidOffset[i]] = AcpiUtHexToAsciiChar (UuidBuffer[i], 4); OutString[AcpiGbl_MapToUuidOffset[i] + 1] = AcpiUtHexToAsciiChar (UuidBuffer[i], 0); } /* Insert required hyphens (dashes) */ OutString[UUID_HYPHEN1_OFFSET] = OutString[UUID_HYPHEN2_OFFSET] = OutString[UUID_HYPHEN3_OFFSET] = OutString[UUID_HYPHEN4_OFFSET] = '-'; OutString[UUID_STRING_LENGTH] = 0; /* Null terminate */ return (AE_OK); } #endif acpica-unix-20250404/source/components/utilities/utbuffer.c0000775000175000017500000002525214773714133023236 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utbuffer - Buffer dump routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utbuffer") /******************************************************************************* * * FUNCTION: AcpiUtDumpBuffer * * PARAMETERS: Buffer - Buffer to dump * Count - Amount to dump, in bytes * Display - BYTE, WORD, DWORD, or QWORD display: * DB_BYTE_DISPLAY * DB_WORD_DISPLAY * DB_DWORD_DISPLAY * DB_QWORD_DISPLAY * BaseOffset - Beginning buffer offset (display only) * * RETURN: None * * DESCRIPTION: Generic dump buffer in both hex and ascii. * ******************************************************************************/ void AcpiUtDumpBuffer ( UINT8 *Buffer, UINT32 Count, UINT32 Display, UINT32 BaseOffset) { UINT32 i = 0; UINT32 j; UINT32 Temp32; UINT8 BufChar; UINT32 DisplayDataOnly = Display & DB_DISPLAY_DATA_ONLY; Display &= ~DB_DISPLAY_DATA_ONLY; if (!Buffer) { AcpiOsPrintf ("Null Buffer Pointer in DumpBuffer!\n"); return; } if ((Count < 4) || (Count & 0x01)) { Display = DB_BYTE_DISPLAY; } /* Nasty little dump buffer routine! */ while (i < Count) { /* Print current offset */ if (!DisplayDataOnly) { AcpiOsPrintf ("%8.4X: ", (BaseOffset + i)); } /* Print 16 hex chars */ for (j = 0; j < 16;) { if (i + j >= Count) { /* Dump fill spaces */ AcpiOsPrintf ("%*s", ((Display * 2) + 1), " "); j += Display; continue; } switch (Display) { case DB_BYTE_DISPLAY: default: /* Default is BYTE display */ AcpiOsPrintf ("%02X ", Buffer[(ACPI_SIZE) i + j]); break; case DB_WORD_DISPLAY: ACPI_MOVE_16_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); AcpiOsPrintf ("%04X ", Temp32); break; case DB_DWORD_DISPLAY: ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); AcpiOsPrintf ("%08X ", Temp32); break; case DB_QWORD_DISPLAY: ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); AcpiOsPrintf ("%08X", Temp32); ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j + 4]); AcpiOsPrintf ("%08X ", Temp32); break; } j += Display; } /* * Print the ASCII equivalent characters but watch out for the bad * unprintable ones (printable chars are 0x20 through 0x7E) */ if (!DisplayDataOnly) { AcpiOsPrintf (" "); for (j = 0; j < 16; j++) { if (i + j >= Count) { AcpiOsPrintf ("\n"); return; } /* * Add comment characters so rest of line is ignored when * compiled */ if (j == 0) { AcpiOsPrintf ("// "); } BufChar = Buffer[(ACPI_SIZE) i + j]; if (isprint (BufChar)) { AcpiOsPrintf ("%c", BufChar); } else { AcpiOsPrintf ("."); } } /* Done with that line. */ AcpiOsPrintf ("\n"); } i += 16; } return; } /******************************************************************************* * * FUNCTION: AcpiUtDebugDumpBuffer * * PARAMETERS: Buffer - Buffer to dump * Count - Amount to dump, in bytes * Display - BYTE, WORD, DWORD, or QWORD display: * DB_BYTE_DISPLAY * DB_WORD_DISPLAY * DB_DWORD_DISPLAY * DB_QWORD_DISPLAY * ComponentID - Caller's component ID * * RETURN: None * * DESCRIPTION: Generic dump buffer in both hex and ascii. * ******************************************************************************/ void AcpiUtDebugDumpBuffer ( UINT8 *Buffer, UINT32 Count, UINT32 Display, UINT32 ComponentId) { /* Only dump the buffer if tracing is enabled */ if (!((ACPI_LV_TABLES & AcpiDbgLevel) && (ComponentId & AcpiDbgLayer))) { return; } AcpiUtDumpBuffer (Buffer, Count, Display, 0); } #ifdef ACPI_APPLICATION /******************************************************************************* * * FUNCTION: AcpiUtDumpBufferToFile * * PARAMETERS: File - File descriptor * Buffer - Buffer to dump * Count - Amount to dump, in bytes * Display - BYTE, WORD, DWORD, or QWORD display: * DB_BYTE_DISPLAY * DB_WORD_DISPLAY * DB_DWORD_DISPLAY * DB_QWORD_DISPLAY * BaseOffset - Beginning buffer offset (display only) * * RETURN: None * * DESCRIPTION: Generic dump buffer in both hex and ascii to a file. * ******************************************************************************/ void AcpiUtDumpBufferToFile ( ACPI_FILE File, UINT8 *Buffer, UINT32 Count, UINT32 Display, UINT32 BaseOffset) { UINT32 i = 0; UINT32 j; UINT32 Temp32; UINT8 BufChar; if (!Buffer) { fprintf (File, "Null Buffer Pointer in DumpBuffer!\n"); return; } if ((Count < 4) || (Count & 0x01)) { Display = DB_BYTE_DISPLAY; } /* Nasty little dump buffer routine! */ while (i < Count) { /* Print current offset */ fprintf (File, "%8.4X: ", (BaseOffset + i)); /* Print 16 hex chars */ for (j = 0; j < 16;) { if (i + j >= Count) { /* Dump fill spaces */ fprintf (File, "%*s", ((Display * 2) + 1), " "); j += Display; continue; } switch (Display) { case DB_BYTE_DISPLAY: default: /* Default is BYTE display */ fprintf (File, "%02X ", Buffer[(ACPI_SIZE) i + j]); break; case DB_WORD_DISPLAY: ACPI_MOVE_16_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); fprintf (File, "%04X ", Temp32); break; case DB_DWORD_DISPLAY: ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); fprintf (File, "%08X ", Temp32); break; case DB_QWORD_DISPLAY: ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); fprintf (File, "%08X", Temp32); ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j + 4]); fprintf (File, "%08X ", Temp32); break; } j += Display; } /* * Print the ASCII equivalent characters but watch out for the bad * unprintable ones (printable chars are 0x20 through 0x7E) */ fprintf (File, " "); for (j = 0; j < 16; j++) { if (i + j >= Count) { fprintf (File, "\n"); return; } BufChar = Buffer[(ACPI_SIZE) i + j]; if (isprint (BufChar)) { fprintf (File, "%c", BufChar); } else { fprintf (File, "."); } } /* Done with that line. */ fprintf (File, "\n"); i += 16; } return; } #endif acpica-unix-20250404/source/components/utilities/utalloc.c0000775000175000017500000002573314773714133023063 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utalloc - local memory allocation routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdebug.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utalloc") #if !defined (USE_NATIVE_ALLOCATE_ZEROED) /******************************************************************************* * * FUNCTION: AcpiOsAllocateZeroed * * PARAMETERS: Size - Size of the allocation * * RETURN: Address of the allocated memory on success, NULL on failure. * * DESCRIPTION: Subsystem equivalent of calloc. Allocate and zero memory. * This is the default implementation. Can be overridden via the * USE_NATIVE_ALLOCATE_ZEROED flag. * ******************************************************************************/ void * AcpiOsAllocateZeroed ( ACPI_SIZE Size) { void *Allocation; ACPI_FUNCTION_ENTRY (); Allocation = AcpiOsAllocate (Size); if (Allocation) { /* Clear the memory block */ memset (Allocation, 0, Size); } return (Allocation); } #endif /* !USE_NATIVE_ALLOCATE_ZEROED */ /******************************************************************************* * * FUNCTION: AcpiUtCreateCaches * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Create all local caches * ******************************************************************************/ ACPI_STATUS AcpiUtCreateCaches ( void) { ACPI_STATUS Status; /* Object Caches, for frequently used objects */ Status = AcpiOsCreateCache ("Acpi-Namespace", sizeof (ACPI_NAMESPACE_NODE), ACPI_MAX_NAMESPACE_CACHE_DEPTH, &AcpiGbl_NamespaceCache); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiOsCreateCache ("Acpi-State", sizeof (ACPI_GENERIC_STATE), ACPI_MAX_STATE_CACHE_DEPTH, &AcpiGbl_StateCache); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiOsCreateCache ("Acpi-Parse", sizeof (ACPI_PARSE_OBJ_COMMON), ACPI_MAX_PARSE_CACHE_DEPTH, &AcpiGbl_PsNodeCache); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiOsCreateCache ("Acpi-ParseExt", sizeof (ACPI_PARSE_OBJ_NAMED), ACPI_MAX_EXTPARSE_CACHE_DEPTH, &AcpiGbl_PsNodeExtCache); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiOsCreateCache ("Acpi-Operand", sizeof (ACPI_OPERAND_OBJECT), ACPI_MAX_OBJECT_CACHE_DEPTH, &AcpiGbl_OperandCache); if (ACPI_FAILURE (Status)) { return (Status); } #ifdef ACPI_ASL_COMPILER /* * For use with the ASL-/ASL+ option. This cache keeps track of regular * 0xA9 0x01 comments. */ Status = AcpiOsCreateCache ("Acpi-Comment", sizeof (ACPI_COMMENT_NODE), ACPI_MAX_COMMENT_CACHE_DEPTH, &AcpiGbl_RegCommentCache); if (ACPI_FAILURE (Status)) { return (Status); } /* * This cache keeps track of the starting addresses of where the comments * lie. This helps prevent duplication of comments. */ Status = AcpiOsCreateCache ("Acpi-Comment-Addr", sizeof (ACPI_COMMENT_ADDR_NODE), ACPI_MAX_COMMENT_CACHE_DEPTH, &AcpiGbl_CommentAddrCache); if (ACPI_FAILURE (Status)) { return (Status); } /* * This cache will be used for nodes that represent files. */ Status = AcpiOsCreateCache ("Acpi-File", sizeof (ACPI_FILE_NODE), ACPI_MAX_COMMENT_CACHE_DEPTH, &AcpiGbl_FileCache); if (ACPI_FAILURE (Status)) { return (Status); } #endif #ifdef ACPI_DBG_TRACK_ALLOCATIONS /* Memory allocation lists */ Status = AcpiUtCreateList ("Acpi-Global", 0, &AcpiGbl_GlobalList); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiUtCreateList ("Acpi-Namespace", sizeof (ACPI_NAMESPACE_NODE), &AcpiGbl_NsNodeList); if (ACPI_FAILURE (Status)) { return (Status); } #endif return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtDeleteCaches * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Purge and delete all local caches * ******************************************************************************/ ACPI_STATUS AcpiUtDeleteCaches ( void) { #ifdef ACPI_DBG_TRACK_ALLOCATIONS char Buffer[7]; if (AcpiGbl_DisplayFinalMemStats) { strcpy (Buffer, "MEMORY"); (void) AcpiDbDisplayStatistics (Buffer); } #endif (void) AcpiOsDeleteCache (AcpiGbl_NamespaceCache); AcpiGbl_NamespaceCache = NULL; (void) AcpiOsDeleteCache (AcpiGbl_StateCache); AcpiGbl_StateCache = NULL; (void) AcpiOsDeleteCache (AcpiGbl_OperandCache); AcpiGbl_OperandCache = NULL; (void) AcpiOsDeleteCache (AcpiGbl_PsNodeCache); AcpiGbl_PsNodeCache = NULL; (void) AcpiOsDeleteCache (AcpiGbl_PsNodeExtCache); AcpiGbl_PsNodeExtCache = NULL; #ifdef ACPI_ASL_COMPILER (void) AcpiOsDeleteCache (AcpiGbl_RegCommentCache); AcpiGbl_RegCommentCache = NULL; (void) AcpiOsDeleteCache (AcpiGbl_CommentAddrCache); AcpiGbl_CommentAddrCache = NULL; (void) AcpiOsDeleteCache (AcpiGbl_FileCache); AcpiGbl_FileCache = NULL; #endif #ifdef ACPI_DBG_TRACK_ALLOCATIONS /* Debug only - display leftover memory allocation, if any */ AcpiUtDumpAllocations (ACPI_UINT32_MAX, NULL); /* Free memory lists */ AcpiOsFree (AcpiGbl_GlobalList); AcpiGbl_GlobalList = NULL; AcpiOsFree (AcpiGbl_NsNodeList); AcpiGbl_NsNodeList = NULL; #endif return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtValidateBuffer * * PARAMETERS: Buffer - Buffer descriptor to be validated * * RETURN: Status * * DESCRIPTION: Perform parameter validation checks on an ACPI_BUFFER * ******************************************************************************/ ACPI_STATUS AcpiUtValidateBuffer ( ACPI_BUFFER *Buffer) { /* Obviously, the structure pointer must be valid */ if (!Buffer) { return (AE_BAD_PARAMETER); } /* Special semantics for the length */ if ((Buffer->Length == ACPI_NO_BUFFER) || (Buffer->Length == ACPI_ALLOCATE_BUFFER) || (Buffer->Length == ACPI_ALLOCATE_LOCAL_BUFFER)) { return (AE_OK); } /* Length is valid, the buffer pointer must be also */ if (!Buffer->Pointer) { return (AE_BAD_PARAMETER); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtInitializeBuffer * * PARAMETERS: Buffer - Buffer to be validated * RequiredLength - Length needed * * RETURN: Status * * DESCRIPTION: Validate that the buffer is of the required length or * allocate a new buffer. Returned buffer is always zeroed. * ******************************************************************************/ ACPI_STATUS AcpiUtInitializeBuffer ( ACPI_BUFFER *Buffer, ACPI_SIZE RequiredLength) { ACPI_SIZE InputBufferLength; /* Parameter validation */ if (!Buffer || !RequiredLength) { return (AE_BAD_PARAMETER); } /* * Buffer->Length is used as both an input and output parameter. Get the * input actual length and set the output required buffer length. */ InputBufferLength = Buffer->Length; Buffer->Length = RequiredLength; /* * The input buffer length contains the actual buffer length, or the type * of buffer to be allocated by this routine. */ switch (InputBufferLength) { case ACPI_NO_BUFFER: /* Return the exception (and the required buffer length) */ return (AE_BUFFER_OVERFLOW); case ACPI_ALLOCATE_BUFFER: /* * Allocate a new buffer. We directectly call AcpiOsAllocate here to * purposefully bypass the (optionally enabled) internal allocation * tracking mechanism since we only want to track internal * allocations. Note: The caller should use AcpiOsFree to free this * buffer created via ACPI_ALLOCATE_BUFFER. */ Buffer->Pointer = AcpiOsAllocate (RequiredLength); break; case ACPI_ALLOCATE_LOCAL_BUFFER: /* Allocate a new buffer with local interface to allow tracking */ Buffer->Pointer = ACPI_ALLOCATE (RequiredLength); break; default: /* Existing buffer: Validate the size of the buffer */ if (InputBufferLength < RequiredLength) { return (AE_BUFFER_OVERFLOW); } break; } /* Validate allocation from above or input buffer pointer */ if (!Buffer->Pointer) { return (AE_NO_MEMORY); } /* Have a valid buffer, clear it */ memset (Buffer->Pointer, 0, RequiredLength); return (AE_OK); } acpica-unix-20250404/source/components/utilities/utglobal.c0000775000175000017500000002345414773714133023227 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utglobal - Global variables for the ACPI subsystem * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #define DEFINE_ACPI_GLOBALS #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utglobal") /******************************************************************************* * * Static global variable initialization. * ******************************************************************************/ /* Various state name strings */ const char *AcpiGbl_SleepStateNames[ACPI_S_STATE_COUNT] = { "\\_S0_", "\\_S1_", "\\_S2_", "\\_S3_", "\\_S4_", "\\_S5_" }; const char *AcpiGbl_LowestDstateNames[ACPI_NUM_SxW_METHODS] = { "_S0W", "_S1W", "_S2W", "_S3W", "_S4W" }; const char *AcpiGbl_HighestDstateNames[ACPI_NUM_SxD_METHODS] = { "_S1D", "_S2D", "_S3D", "_S4D" }; /* Hex-to-ascii */ const char AcpiGbl_LowerHexDigits[] = "0123456789abcdef"; const char AcpiGbl_UpperHexDigits[] = "0123456789ABCDEF"; /******************************************************************************* * * Namespace globals * ******************************************************************************/ /* * Predefined ACPI Names (Built-in to the Interpreter) * * NOTES: * 1) _SB_ is defined to be a device to allow \_SB_._INI to be run * during the initialization sequence. * 2) _TZ_ is defined to be a thermal zone in order to allow ASL code to * perform a Notify() operation on it. 09/2010: Changed to type Device. * This still allows notifies, but does not confuse host code that * searches for valid ThermalZone objects. */ const ACPI_PREDEFINED_NAMES AcpiGbl_PreDefinedNames[] = { {"_GPE", ACPI_TYPE_LOCAL_SCOPE, NULL}, {"_PR_", ACPI_TYPE_LOCAL_SCOPE, NULL}, {"_SB_", ACPI_TYPE_DEVICE, NULL}, {"_SI_", ACPI_TYPE_LOCAL_SCOPE, NULL}, {"_TZ_", ACPI_TYPE_DEVICE, NULL}, /* * March, 2015: * The _REV object is in the process of being deprecated, because * other ACPI implementations permanently return 2. Thus, it * has little or no value. Return 2 for compatibility with * other ACPI implementations. */ {"_REV", ACPI_TYPE_INTEGER, ACPI_CAST_PTR (char, 2)}, {"_OS_", ACPI_TYPE_STRING, ACPI_OS_NAME}, {"_GL_", ACPI_TYPE_MUTEX, ACPI_CAST_PTR (char, 1)}, {"_OSI", ACPI_TYPE_METHOD, ACPI_CAST_PTR (char, 1)}, /* Table terminator */ {NULL, ACPI_TYPE_ANY, NULL} }; #if (!ACPI_REDUCED_HARDWARE) /****************************************************************************** * * Event and Hardware globals * ******************************************************************************/ ACPI_BIT_REGISTER_INFO AcpiGbl_BitRegisterInfo[ACPI_NUM_BITREG] = { /* Name Parent Register Register Bit Position Register Bit Mask */ /* ACPI_BITREG_TIMER_STATUS */ {ACPI_REGISTER_PM1_STATUS, ACPI_BITPOSITION_TIMER_STATUS, ACPI_BITMASK_TIMER_STATUS}, /* ACPI_BITREG_BUS_MASTER_STATUS */ {ACPI_REGISTER_PM1_STATUS, ACPI_BITPOSITION_BUS_MASTER_STATUS, ACPI_BITMASK_BUS_MASTER_STATUS}, /* ACPI_BITREG_GLOBAL_LOCK_STATUS */ {ACPI_REGISTER_PM1_STATUS, ACPI_BITPOSITION_GLOBAL_LOCK_STATUS, ACPI_BITMASK_GLOBAL_LOCK_STATUS}, /* ACPI_BITREG_POWER_BUTTON_STATUS */ {ACPI_REGISTER_PM1_STATUS, ACPI_BITPOSITION_POWER_BUTTON_STATUS, ACPI_BITMASK_POWER_BUTTON_STATUS}, /* ACPI_BITREG_SLEEP_BUTTON_STATUS */ {ACPI_REGISTER_PM1_STATUS, ACPI_BITPOSITION_SLEEP_BUTTON_STATUS, ACPI_BITMASK_SLEEP_BUTTON_STATUS}, /* ACPI_BITREG_RT_CLOCK_STATUS */ {ACPI_REGISTER_PM1_STATUS, ACPI_BITPOSITION_RT_CLOCK_STATUS, ACPI_BITMASK_RT_CLOCK_STATUS}, /* ACPI_BITREG_WAKE_STATUS */ {ACPI_REGISTER_PM1_STATUS, ACPI_BITPOSITION_WAKE_STATUS, ACPI_BITMASK_WAKE_STATUS}, /* ACPI_BITREG_PCIEXP_WAKE_STATUS */ {ACPI_REGISTER_PM1_STATUS, ACPI_BITPOSITION_PCIEXP_WAKE_STATUS, ACPI_BITMASK_PCIEXP_WAKE_STATUS}, /* ACPI_BITREG_TIMER_ENABLE */ {ACPI_REGISTER_PM1_ENABLE, ACPI_BITPOSITION_TIMER_ENABLE, ACPI_BITMASK_TIMER_ENABLE}, /* ACPI_BITREG_GLOBAL_LOCK_ENABLE */ {ACPI_REGISTER_PM1_ENABLE, ACPI_BITPOSITION_GLOBAL_LOCK_ENABLE, ACPI_BITMASK_GLOBAL_LOCK_ENABLE}, /* ACPI_BITREG_POWER_BUTTON_ENABLE */ {ACPI_REGISTER_PM1_ENABLE, ACPI_BITPOSITION_POWER_BUTTON_ENABLE, ACPI_BITMASK_POWER_BUTTON_ENABLE}, /* ACPI_BITREG_SLEEP_BUTTON_ENABLE */ {ACPI_REGISTER_PM1_ENABLE, ACPI_BITPOSITION_SLEEP_BUTTON_ENABLE, ACPI_BITMASK_SLEEP_BUTTON_ENABLE}, /* ACPI_BITREG_RT_CLOCK_ENABLE */ {ACPI_REGISTER_PM1_ENABLE, ACPI_BITPOSITION_RT_CLOCK_ENABLE, ACPI_BITMASK_RT_CLOCK_ENABLE}, /* ACPI_BITREG_PCIEXP_WAKE_DISABLE */ {ACPI_REGISTER_PM1_ENABLE, ACPI_BITPOSITION_PCIEXP_WAKE_DISABLE, ACPI_BITMASK_PCIEXP_WAKE_DISABLE}, /* ACPI_BITREG_SCI_ENABLE */ {ACPI_REGISTER_PM1_CONTROL, ACPI_BITPOSITION_SCI_ENABLE, ACPI_BITMASK_SCI_ENABLE}, /* ACPI_BITREG_BUS_MASTER_RLD */ {ACPI_REGISTER_PM1_CONTROL, ACPI_BITPOSITION_BUS_MASTER_RLD, ACPI_BITMASK_BUS_MASTER_RLD}, /* ACPI_BITREG_GLOBAL_LOCK_RELEASE */ {ACPI_REGISTER_PM1_CONTROL, ACPI_BITPOSITION_GLOBAL_LOCK_RELEASE, ACPI_BITMASK_GLOBAL_LOCK_RELEASE}, /* ACPI_BITREG_SLEEP_TYPE */ {ACPI_REGISTER_PM1_CONTROL, ACPI_BITPOSITION_SLEEP_TYPE, ACPI_BITMASK_SLEEP_TYPE}, /* ACPI_BITREG_SLEEP_ENABLE */ {ACPI_REGISTER_PM1_CONTROL, ACPI_BITPOSITION_SLEEP_ENABLE, ACPI_BITMASK_SLEEP_ENABLE}, /* ACPI_BITREG_ARB_DIS */ {ACPI_REGISTER_PM2_CONTROL, ACPI_BITPOSITION_ARB_DISABLE, ACPI_BITMASK_ARB_DISABLE} }; ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS] = { /* ACPI_EVENT_PMTIMER */ {ACPI_BITREG_TIMER_STATUS, ACPI_BITREG_TIMER_ENABLE, ACPI_BITMASK_TIMER_STATUS, ACPI_BITMASK_TIMER_ENABLE}, /* ACPI_EVENT_GLOBAL */ {ACPI_BITREG_GLOBAL_LOCK_STATUS, ACPI_BITREG_GLOBAL_LOCK_ENABLE, ACPI_BITMASK_GLOBAL_LOCK_STATUS, ACPI_BITMASK_GLOBAL_LOCK_ENABLE}, /* ACPI_EVENT_POWER_BUTTON */ {ACPI_BITREG_POWER_BUTTON_STATUS, ACPI_BITREG_POWER_BUTTON_ENABLE, ACPI_BITMASK_POWER_BUTTON_STATUS, ACPI_BITMASK_POWER_BUTTON_ENABLE}, /* ACPI_EVENT_SLEEP_BUTTON */ {ACPI_BITREG_SLEEP_BUTTON_STATUS, ACPI_BITREG_SLEEP_BUTTON_ENABLE, ACPI_BITMASK_SLEEP_BUTTON_STATUS, ACPI_BITMASK_SLEEP_BUTTON_ENABLE}, /* ACPI_EVENT_RTC */ {ACPI_BITREG_RT_CLOCK_STATUS, ACPI_BITREG_RT_CLOCK_ENABLE, ACPI_BITMASK_RT_CLOCK_STATUS, ACPI_BITMASK_RT_CLOCK_ENABLE}, }; #endif /* !ACPI_REDUCED_HARDWARE */ #if defined (ACPI_DISASSEMBLER) || defined (ACPI_ASL_COMPILER) /* ToPld macro: compile/disassemble strings */ const char *AcpiGbl_PldPanelList[] = { "TOP", "BOTTOM", "LEFT", "RIGHT", "FRONT", "BACK", "UNKNOWN", NULL }; const char *AcpiGbl_PldVerticalPositionList[] = { "UPPER", "CENTER", "LOWER", NULL }; const char *AcpiGbl_PldHorizontalPositionList[] = { "LEFT", "CENTER", "RIGHT", NULL }; const char *AcpiGbl_PldShapeList[] = { "ROUND", "OVAL", "SQUARE", "VERTICALRECTANGLE", "HORIZONTALRECTANGLE", "VERTICALTRAPEZOID", "HORIZONTALTRAPEZOID", "UNKNOWN", "CHAMFERED", NULL }; #endif /* Public globals */ ACPI_EXPORT_SYMBOL (AcpiGbl_FADT) ACPI_EXPORT_SYMBOL (AcpiDbgLevel) ACPI_EXPORT_SYMBOL (AcpiDbgLayer) ACPI_EXPORT_SYMBOL (AcpiGpeCount) ACPI_EXPORT_SYMBOL (AcpiCurrentGpeCount) acpica-unix-20250404/source/components/utilities/utobject.c0000775000175000017500000005314114773714133023231 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utobject - ACPI object create/delete/size/cache routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utobject") /* Local prototypes */ static ACPI_STATUS AcpiUtGetSimpleObjectSize ( ACPI_OPERAND_OBJECT *Obj, ACPI_SIZE *ObjLength); static ACPI_STATUS AcpiUtGetPackageObjectSize ( ACPI_OPERAND_OBJECT *Obj, ACPI_SIZE *ObjLength); static ACPI_STATUS AcpiUtGetElementLength ( UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context); /******************************************************************************* * * FUNCTION: AcpiUtCreateInternalObjectDbg * * PARAMETERS: ModuleName - Source file name of caller * LineNumber - Line number of caller * ComponentId - Component type of caller * Type - ACPI Type of the new object * * RETURN: A new internal object, null on failure * * DESCRIPTION: Create and initialize a new internal object. * * NOTE: We always allocate the worst-case object descriptor because * these objects are cached, and we want them to be * one-size-satisfies-any-request. This in itself may not be * the most memory efficient, but the efficiency of the object * cache should more than make up for this! * ******************************************************************************/ ACPI_OPERAND_OBJECT * AcpiUtCreateInternalObjectDbg ( const char *ModuleName, UINT32 LineNumber, UINT32 ComponentId, ACPI_OBJECT_TYPE Type) { ACPI_OPERAND_OBJECT *Object; ACPI_OPERAND_OBJECT *SecondObject; ACPI_FUNCTION_TRACE_STR (UtCreateInternalObjectDbg, AcpiUtGetTypeName (Type)); /* Allocate the raw object descriptor */ Object = AcpiUtAllocateObjectDescDbg ( ModuleName, LineNumber, ComponentId); if (!Object) { return_PTR (NULL); } switch (Type) { case ACPI_TYPE_REGION: case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: /* These types require a secondary object */ SecondObject = AcpiUtAllocateObjectDescDbg ( ModuleName, LineNumber, ComponentId); if (!SecondObject) { AcpiUtDeleteObjectDesc (Object); return_PTR (NULL); } SecondObject->Common.Type = ACPI_TYPE_LOCAL_EXTRA; SecondObject->Common.ReferenceCount = 1; /* Link the second object to the first */ Object->Common.NextObject = SecondObject; break; default: /* All others have no secondary object */ break; } /* Save the object type in the object descriptor */ Object->Common.Type = (UINT8) Type; /* Init the reference count */ Object->Common.ReferenceCount = 1; /* Any per-type initialization should go here */ return_PTR (Object); } /******************************************************************************* * * FUNCTION: AcpiUtCreatePackageObject * * PARAMETERS: Count - Number of package elements * * RETURN: Pointer to a new Package object, null on failure * * DESCRIPTION: Create a fully initialized package object * ******************************************************************************/ ACPI_OPERAND_OBJECT * AcpiUtCreatePackageObject ( UINT32 Count) { ACPI_OPERAND_OBJECT *PackageDesc; ACPI_OPERAND_OBJECT **PackageElements; ACPI_FUNCTION_TRACE_U32 (UtCreatePackageObject, Count); /* Create a new Package object */ PackageDesc = AcpiUtCreateInternalObject (ACPI_TYPE_PACKAGE); if (!PackageDesc) { return_PTR (NULL); } /* * Create the element array. Count+1 allows the array to be null * terminated. */ PackageElements = ACPI_ALLOCATE_ZEROED ( ((ACPI_SIZE) Count + 1) * sizeof (void *)); if (!PackageElements) { ACPI_FREE (PackageDesc); return_PTR (NULL); } PackageDesc->Package.Count = Count; PackageDesc->Package.Elements = PackageElements; return_PTR (PackageDesc); } /******************************************************************************* * * FUNCTION: AcpiUtCreateIntegerObject * * PARAMETERS: InitialValue - Initial value for the integer * * RETURN: Pointer to a new Integer object, null on failure * * DESCRIPTION: Create an initialized integer object * ******************************************************************************/ ACPI_OPERAND_OBJECT * AcpiUtCreateIntegerObject ( UINT64 InitialValue) { ACPI_OPERAND_OBJECT *IntegerDesc; ACPI_FUNCTION_TRACE (UtCreateIntegerObject); /* Create and initialize a new integer object */ IntegerDesc = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); if (!IntegerDesc) { return_PTR (NULL); } IntegerDesc->Integer.Value = InitialValue; return_PTR (IntegerDesc); } /******************************************************************************* * * FUNCTION: AcpiUtCreateBufferObject * * PARAMETERS: BufferSize - Size of buffer to be created * * RETURN: Pointer to a new Buffer object, null on failure * * DESCRIPTION: Create a fully initialized buffer object * ******************************************************************************/ ACPI_OPERAND_OBJECT * AcpiUtCreateBufferObject ( ACPI_SIZE BufferSize) { ACPI_OPERAND_OBJECT *BufferDesc; UINT8 *Buffer = NULL; ACPI_FUNCTION_TRACE_U32 (UtCreateBufferObject, BufferSize); /* Create a new Buffer object */ BufferDesc = AcpiUtCreateInternalObject (ACPI_TYPE_BUFFER); if (!BufferDesc) { return_PTR (NULL); } /* Create an actual buffer only if size > 0 */ if (BufferSize > 0) { /* Allocate the actual buffer */ Buffer = ACPI_ALLOCATE_ZEROED (BufferSize); if (!Buffer) { ACPI_ERROR ((AE_INFO, "Could not allocate size %u", (UINT32) BufferSize)); AcpiUtRemoveReference (BufferDesc); return_PTR (NULL); } } /* Complete buffer object initialization */ BufferDesc->Buffer.Flags |= AOPOBJ_DATA_VALID; BufferDesc->Buffer.Pointer = Buffer; BufferDesc->Buffer.Length = (UINT32) BufferSize; /* Return the new buffer descriptor */ return_PTR (BufferDesc); } /******************************************************************************* * * FUNCTION: AcpiUtCreateStringObject * * PARAMETERS: StringSize - Size of string to be created. Does not * include NULL terminator, this is added * automatically. * * RETURN: Pointer to a new String object * * DESCRIPTION: Create a fully initialized string object * ******************************************************************************/ ACPI_OPERAND_OBJECT * AcpiUtCreateStringObject ( ACPI_SIZE StringSize) { ACPI_OPERAND_OBJECT *StringDesc; char *String; ACPI_FUNCTION_TRACE_U32 (UtCreateStringObject, StringSize); /* Create a new String object */ StringDesc = AcpiUtCreateInternalObject (ACPI_TYPE_STRING); if (!StringDesc) { return_PTR (NULL); } /* * Allocate the actual string buffer -- (Size + 1) for NULL terminator. * NOTE: Zero-length strings are NULL terminated */ String = ACPI_ALLOCATE_ZEROED (StringSize + 1); if (!String) { ACPI_ERROR ((AE_INFO, "Could not allocate size %u", (UINT32) StringSize)); AcpiUtRemoveReference (StringDesc); return_PTR (NULL); } /* Complete string object initialization */ StringDesc->String.Pointer = String; StringDesc->String.Length = (UINT32) StringSize; /* Return the new string descriptor */ return_PTR (StringDesc); } /******************************************************************************* * * FUNCTION: AcpiUtValidInternalObject * * PARAMETERS: Object - Object to be validated * * RETURN: TRUE if object is valid, FALSE otherwise * * DESCRIPTION: Validate a pointer to be of type ACPI_OPERAND_OBJECT * ******************************************************************************/ BOOLEAN AcpiUtValidInternalObject ( void *Object) { ACPI_FUNCTION_NAME (UtValidInternalObject); /* Check for a null pointer */ if (!Object) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "**** Null Object Ptr\n")); return (FALSE); } /* Check the descriptor type field */ switch (ACPI_GET_DESCRIPTOR_TYPE (Object)) { case ACPI_DESC_TYPE_OPERAND: /* The object appears to be a valid ACPI_OPERAND_OBJECT */ return (TRUE); default: ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%p is not an ACPI operand obj [%s]\n", Object, AcpiUtGetDescriptorName (Object))); break; } return (FALSE); } /******************************************************************************* * * FUNCTION: AcpiUtAllocateObjectDescDbg * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * ComponentId - Caller's component ID (for error output) * * RETURN: Pointer to newly allocated object descriptor. Null on error * * DESCRIPTION: Allocate a new object descriptor. Gracefully handle * error conditions. * ******************************************************************************/ void * AcpiUtAllocateObjectDescDbg ( const char *ModuleName, UINT32 LineNumber, UINT32 ComponentId) { ACPI_OPERAND_OBJECT *Object; ACPI_FUNCTION_TRACE (UtAllocateObjectDescDbg); Object = AcpiOsAcquireObject (AcpiGbl_OperandCache); if (!Object) { ACPI_ERROR ((ModuleName, LineNumber, "Could not allocate an object descriptor")); return_PTR (NULL); } /* Mark the descriptor type */ ACPI_SET_DESCRIPTOR_TYPE (Object, ACPI_DESC_TYPE_OPERAND); ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "%p Size %X\n", Object, (UINT32) sizeof (ACPI_OPERAND_OBJECT))); return_PTR (Object); } /******************************************************************************* * * FUNCTION: AcpiUtDeleteObjectDesc * * PARAMETERS: Object - An Acpi internal object to be deleted * * RETURN: None. * * DESCRIPTION: Free an ACPI object descriptor or add it to the object cache * ******************************************************************************/ void AcpiUtDeleteObjectDesc ( ACPI_OPERAND_OBJECT *Object) { ACPI_FUNCTION_TRACE_PTR (UtDeleteObjectDesc, Object); /* Object must be of type ACPI_OPERAND_OBJECT */ if (ACPI_GET_DESCRIPTOR_TYPE (Object) != ACPI_DESC_TYPE_OPERAND) { ACPI_ERROR ((AE_INFO, "%p is not an ACPI Operand object [%s]", Object, AcpiUtGetDescriptorName (Object))); return_VOID; } (void) AcpiOsReleaseObject (AcpiGbl_OperandCache, Object); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiUtGetSimpleObjectSize * * PARAMETERS: InternalObject - An ACPI operand object * ObjLength - Where the length is returned * * RETURN: Status * * DESCRIPTION: This function is called to determine the space required to * contain a simple object for return to an external user. * * The length includes the object structure plus any additional * needed space. * ******************************************************************************/ static ACPI_STATUS AcpiUtGetSimpleObjectSize ( ACPI_OPERAND_OBJECT *InternalObject, ACPI_SIZE *ObjLength) { ACPI_SIZE Length; ACPI_SIZE Size; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_PTR (UtGetSimpleObjectSize, InternalObject); /* Start with the length of the (external) Acpi object */ Length = sizeof (ACPI_OBJECT); /* A NULL object is allowed, can be a legal uninitialized package element */ if (!InternalObject) { /* * Object is NULL, just return the length of ACPI_OBJECT * (A NULL ACPI_OBJECT is an object of all zeroes.) */ *ObjLength = ACPI_ROUND_UP_TO_NATIVE_WORD (Length); return_ACPI_STATUS (AE_OK); } /* A Namespace Node should never appear here */ if (ACPI_GET_DESCRIPTOR_TYPE (InternalObject) == ACPI_DESC_TYPE_NAMED) { /* A namespace node should never get here */ ACPI_ERROR ((AE_INFO, "Received a namespace node [%4.4s] " "where an operand object is required", ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, InternalObject)->Name.Ascii)); return_ACPI_STATUS (AE_AML_INTERNAL); } /* * The final length depends on the object type * Strings and Buffers are packed right up against the parent object and * must be accessed bytewise or there may be alignment problems on * certain processors */ switch (InternalObject->Common.Type) { case ACPI_TYPE_STRING: Length += (ACPI_SIZE) InternalObject->String.Length + 1; break; case ACPI_TYPE_BUFFER: Length += (ACPI_SIZE) InternalObject->Buffer.Length; break; case ACPI_TYPE_INTEGER: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_POWER: /* No extra data for these types */ break; case ACPI_TYPE_LOCAL_REFERENCE: switch (InternalObject->Reference.Class) { case ACPI_REFCLASS_NAME: /* * Get the actual length of the full pathname to this object. * The reference will be converted to the pathname to the object */ Size = AcpiNsGetPathnameLength (InternalObject->Reference.Node); if (!Size) { return_ACPI_STATUS (AE_BAD_PARAMETER); } Length += ACPI_ROUND_UP_TO_NATIVE_WORD (Size); break; default: /* * No other reference opcodes are supported. * Notably, Locals and Args are not supported, but this may be * required eventually. */ ACPI_ERROR ((AE_INFO, "Cannot convert to external object - " "unsupported Reference Class [%s] 0x%X in object %p", AcpiUtGetReferenceName (InternalObject), InternalObject->Reference.Class, InternalObject)); Status = AE_TYPE; break; } break; default: ACPI_ERROR ((AE_INFO, "Cannot convert to external object - " "unsupported type [%s] 0x%X in object %p", AcpiUtGetObjectTypeName (InternalObject), InternalObject->Common.Type, InternalObject)); Status = AE_TYPE; break; } /* * Account for the space required by the object rounded up to the next * multiple of the machine word size. This keeps each object aligned * on a machine word boundary. (preventing alignment faults on some * machines.) */ *ObjLength = ACPI_ROUND_UP_TO_NATIVE_WORD (Length); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtGetElementLength * * PARAMETERS: ACPI_PKG_CALLBACK * * RETURN: Status * * DESCRIPTION: Get the length of one package element. * ******************************************************************************/ static ACPI_STATUS AcpiUtGetElementLength ( UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context) { ACPI_STATUS Status = AE_OK; ACPI_PKG_INFO *Info = (ACPI_PKG_INFO *) Context; ACPI_SIZE ObjectSpace; switch (ObjectType) { case ACPI_COPY_TYPE_SIMPLE: /* * Simple object - just get the size (Null object/entry is handled * here also) and sum it into the running package length */ Status = AcpiUtGetSimpleObjectSize (SourceObject, &ObjectSpace); if (ACPI_FAILURE (Status)) { return (Status); } Info->Length += ObjectSpace; break; case ACPI_COPY_TYPE_PACKAGE: /* Package object - nothing much to do here, let the walk handle it */ Info->NumPackages++; State->Pkg.ThisTargetObj = NULL; break; default: /* No other types allowed */ return (AE_BAD_PARAMETER); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtGetPackageObjectSize * * PARAMETERS: InternalObject - An ACPI internal object * ObjLength - Where the length is returned * * RETURN: Status * * DESCRIPTION: This function is called to determine the space required to * contain a package object for return to an external user. * * This is moderately complex since a package contains other * objects including packages. * ******************************************************************************/ static ACPI_STATUS AcpiUtGetPackageObjectSize ( ACPI_OPERAND_OBJECT *InternalObject, ACPI_SIZE *ObjLength) { ACPI_STATUS Status; ACPI_PKG_INFO Info; ACPI_FUNCTION_TRACE_PTR (UtGetPackageObjectSize, InternalObject); Info.Length = 0; Info.ObjectSpace = 0; Info.NumPackages = 1; Status = AcpiUtWalkPackageTree ( InternalObject, NULL, AcpiUtGetElementLength, &Info); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * We have handled all of the objects in all levels of the package. * just add the length of the package objects themselves. * Round up to the next machine word. */ Info.Length += ACPI_ROUND_UP_TO_NATIVE_WORD ( sizeof (ACPI_OBJECT)) * (ACPI_SIZE) Info.NumPackages; /* Return the total package length */ *ObjLength = Info.Length; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtGetObjectSize * * PARAMETERS: InternalObject - An ACPI internal object * ObjLength - Where the length will be returned * * RETURN: Status * * DESCRIPTION: This function is called to determine the space required to * contain an object for return to an API user. * ******************************************************************************/ ACPI_STATUS AcpiUtGetObjectSize ( ACPI_OPERAND_OBJECT *InternalObject, ACPI_SIZE *ObjLength) { ACPI_STATUS Status; ACPI_FUNCTION_ENTRY (); if ((ACPI_GET_DESCRIPTOR_TYPE (InternalObject) == ACPI_DESC_TYPE_OPERAND) && (InternalObject->Common.Type == ACPI_TYPE_PACKAGE)) { Status = AcpiUtGetPackageObjectSize (InternalObject, ObjLength); } else { Status = AcpiUtGetSimpleObjectSize (InternalObject, ObjLength); } return (Status); } acpica-unix-20250404/source/components/utilities/utmath.c0000775000175000017500000004104514773714133022714 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utmath - Integer math support routines * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utmath") /* Structures used only for 64-bit divide */ typedef struct uint64_struct { UINT32 Lo; UINT32 Hi; } UINT64_STRUCT; typedef union uint64_overlay { UINT64 Full; UINT64_STRUCT Part; } UINT64_OVERLAY; /* * Optional support for 64-bit double-precision integer multiply and shift. * This code is configurable and is implemented in order to support 32-bit * kernel environments where a 64-bit double-precision math library is not * available. */ #ifndef ACPI_USE_NATIVE_MATH64 /******************************************************************************* * * FUNCTION: AcpiUtShortMultiply * * PARAMETERS: Multiplicand - 64-bit multiplicand * Multiplier - 32-bit multiplier * OutProduct - Pointer to where the product is returned * * DESCRIPTION: Perform a short multiply. * ******************************************************************************/ ACPI_STATUS AcpiUtShortMultiply ( UINT64 Multiplicand, UINT32 Multiplier, UINT64 *OutProduct) { UINT64_OVERLAY MultiplicandOvl; UINT64_OVERLAY Product; UINT32 Carry32; ACPI_FUNCTION_TRACE (UtShortMultiply); MultiplicandOvl.Full = Multiplicand; /* * The Product is 64 bits, the carry is always 32 bits, * and is generated by the second multiply. */ ACPI_MUL_64_BY_32 (0, MultiplicandOvl.Part.Hi, Multiplier, Product.Part.Hi, Carry32); ACPI_MUL_64_BY_32 (0, MultiplicandOvl.Part.Lo, Multiplier, Product.Part.Lo, Carry32); Product.Part.Hi += Carry32; /* Return only what was requested */ if (OutProduct) { *OutProduct = Product.Full; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtShortShiftLeft * * PARAMETERS: Operand - 64-bit shift operand * Count - 32-bit shift count * OutResult - Pointer to where the result is returned * * DESCRIPTION: Perform a short left shift. * ******************************************************************************/ ACPI_STATUS AcpiUtShortShiftLeft ( UINT64 Operand, UINT32 Count, UINT64 *OutResult) { UINT64_OVERLAY OperandOvl; ACPI_FUNCTION_TRACE (UtShortShiftLeft); OperandOvl.Full = Operand; if ((Count & 63) >= 32) { OperandOvl.Part.Hi = OperandOvl.Part.Lo; OperandOvl.Part.Lo = 0; Count = (Count & 63) - 32; } ACPI_SHIFT_LEFT_64_BY_32 (OperandOvl.Part.Hi, OperandOvl.Part.Lo, Count); /* Return only what was requested */ if (OutResult) { *OutResult = OperandOvl.Full; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtShortShiftRight * * PARAMETERS: Operand - 64-bit shift operand * Count - 32-bit shift count * OutResult - Pointer to where the result is returned * * DESCRIPTION: Perform a short right shift. * ******************************************************************************/ ACPI_STATUS AcpiUtShortShiftRight ( UINT64 Operand, UINT32 Count, UINT64 *OutResult) { UINT64_OVERLAY OperandOvl; ACPI_FUNCTION_TRACE (UtShortShiftRight); OperandOvl.Full = Operand; if ((Count & 63) >= 32) { OperandOvl.Part.Lo = OperandOvl.Part.Hi; OperandOvl.Part.Hi = 0; Count = (Count & 63) - 32; } ACPI_SHIFT_RIGHT_64_BY_32 (OperandOvl.Part.Hi, OperandOvl.Part.Lo, Count); /* Return only what was requested */ if (OutResult) { *OutResult = OperandOvl.Full; } return_ACPI_STATUS (AE_OK); } #else /******************************************************************************* * * FUNCTION: AcpiUtShortMultiply * * PARAMETERS: See function headers above * * DESCRIPTION: Native version of the UtShortMultiply function. * ******************************************************************************/ ACPI_STATUS AcpiUtShortMultiply ( UINT64 Multiplicand, UINT32 Multiplier, UINT64 *OutProduct) { ACPI_FUNCTION_TRACE (UtShortMultiply); /* Return only what was requested */ if (OutProduct) { *OutProduct = Multiplicand * Multiplier; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtShortShiftLeft * * PARAMETERS: See function headers above * * DESCRIPTION: Native version of the UtShortShiftLeft function. * ******************************************************************************/ ACPI_STATUS AcpiUtShortShiftLeft ( UINT64 Operand, UINT32 Count, UINT64 *OutResult) { ACPI_FUNCTION_TRACE (UtShortShiftLeft); /* Return only what was requested */ if (OutResult) { *OutResult = Operand << Count; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtShortShiftRight * * PARAMETERS: See function headers above * * DESCRIPTION: Native version of the UtShortShiftRight function. * ******************************************************************************/ ACPI_STATUS AcpiUtShortShiftRight ( UINT64 Operand, UINT32 Count, UINT64 *OutResult) { ACPI_FUNCTION_TRACE (UtShortShiftRight); /* Return only what was requested */ if (OutResult) { *OutResult = Operand >> Count; } return_ACPI_STATUS (AE_OK); } #endif /* * Optional support for 64-bit double-precision integer divide. This code * is configurable and is implemented in order to support 32-bit kernel * environments where a 64-bit double-precision math library is not available. * * Support for a more normal 64-bit divide/modulo (with check for a divide- * by-zero) appears after this optional section of code. */ #ifndef ACPI_USE_NATIVE_DIVIDE /******************************************************************************* * * FUNCTION: AcpiUtShortDivide * * PARAMETERS: Dividend - 64-bit dividend * Divisor - 32-bit divisor * OutQuotient - Pointer to where the quotient is returned * OutRemainder - Pointer to where the remainder is returned * * RETURN: Status (Checks for divide-by-zero) * * DESCRIPTION: Perform a short (maximum 64 bits divided by 32 bits) * divide and modulo. The result is a 64-bit quotient and a * 32-bit remainder. * ******************************************************************************/ ACPI_STATUS AcpiUtShortDivide ( UINT64 Dividend, UINT32 Divisor, UINT64 *OutQuotient, UINT32 *OutRemainder) { UINT64_OVERLAY DividendOvl; UINT64_OVERLAY Quotient; UINT32 Remainder32; ACPI_FUNCTION_TRACE (UtShortDivide); /* Always check for a zero divisor */ if (Divisor == 0) { ACPI_ERROR ((AE_INFO, "Divide by zero")); return_ACPI_STATUS (AE_AML_DIVIDE_BY_ZERO); } DividendOvl.Full = Dividend; /* * The quotient is 64 bits, the remainder is always 32 bits, * and is generated by the second divide. */ ACPI_DIV_64_BY_32 (0, DividendOvl.Part.Hi, Divisor, Quotient.Part.Hi, Remainder32); ACPI_DIV_64_BY_32 (Remainder32, DividendOvl.Part.Lo, Divisor, Quotient.Part.Lo, Remainder32); /* Return only what was requested */ if (OutQuotient) { *OutQuotient = Quotient.Full; } if (OutRemainder) { *OutRemainder = Remainder32; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtDivide * * PARAMETERS: InDividend - Dividend * InDivisor - Divisor * OutQuotient - Pointer to where the quotient is returned * OutRemainder - Pointer to where the remainder is returned * * RETURN: Status (Checks for divide-by-zero) * * DESCRIPTION: Perform a divide and modulo. * ******************************************************************************/ ACPI_STATUS AcpiUtDivide ( UINT64 InDividend, UINT64 InDivisor, UINT64 *OutQuotient, UINT64 *OutRemainder) { UINT64_OVERLAY Dividend; UINT64_OVERLAY Divisor; UINT64_OVERLAY Quotient; UINT64_OVERLAY Remainder; UINT64_OVERLAY NormalizedDividend; UINT64_OVERLAY NormalizedDivisor; UINT32 Partial1; UINT64_OVERLAY Partial2; UINT64_OVERLAY Partial3; ACPI_FUNCTION_TRACE (UtDivide); /* Always check for a zero divisor */ if (InDivisor == 0) { ACPI_ERROR ((AE_INFO, "Divide by zero")); return_ACPI_STATUS (AE_AML_DIVIDE_BY_ZERO); } Divisor.Full = InDivisor; Dividend.Full = InDividend; if (Divisor.Part.Hi == 0) { /* * 1) Simplest case is where the divisor is 32 bits, we can * just do two divides */ Remainder.Part.Hi = 0; /* * The quotient is 64 bits, the remainder is always 32 bits, * and is generated by the second divide. */ ACPI_DIV_64_BY_32 (0, Dividend.Part.Hi, Divisor.Part.Lo, Quotient.Part.Hi, Partial1); ACPI_DIV_64_BY_32 (Partial1, Dividend.Part.Lo, Divisor.Part.Lo, Quotient.Part.Lo, Remainder.Part.Lo); } else { /* * 2) The general case where the divisor is a full 64 bits * is more difficult */ Quotient.Part.Hi = 0; NormalizedDividend = Dividend; NormalizedDivisor = Divisor; /* Normalize the operands (shift until the divisor is < 32 bits) */ do { ACPI_SHIFT_RIGHT_64 ( NormalizedDivisor.Part.Hi, NormalizedDivisor.Part.Lo); ACPI_SHIFT_RIGHT_64 ( NormalizedDividend.Part.Hi, NormalizedDividend.Part.Lo); } while (NormalizedDivisor.Part.Hi != 0); /* Partial divide */ ACPI_DIV_64_BY_32 ( NormalizedDividend.Part.Hi, NormalizedDividend.Part.Lo, NormalizedDivisor.Part.Lo, Quotient.Part.Lo, Partial1); /* * The quotient is always 32 bits, and simply requires * adjustment. The 64-bit remainder must be generated. */ Partial1 = Quotient.Part.Lo * Divisor.Part.Hi; Partial2.Full = (UINT64) Quotient.Part.Lo * Divisor.Part.Lo; Partial3.Full = (UINT64) Partial2.Part.Hi + Partial1; Remainder.Part.Hi = Partial3.Part.Lo; Remainder.Part.Lo = Partial2.Part.Lo; if (Partial3.Part.Hi == 0) { if (Partial3.Part.Lo >= Dividend.Part.Hi) { if (Partial3.Part.Lo == Dividend.Part.Hi) { if (Partial2.Part.Lo > Dividend.Part.Lo) { Quotient.Part.Lo--; Remainder.Full -= Divisor.Full; } } else { Quotient.Part.Lo--; Remainder.Full -= Divisor.Full; } } Remainder.Full = Remainder.Full - Dividend.Full; Remainder.Part.Hi = (UINT32) -((INT32) Remainder.Part.Hi); Remainder.Part.Lo = (UINT32) -((INT32) Remainder.Part.Lo); if (Remainder.Part.Lo) { Remainder.Part.Hi--; } } } /* Return only what was requested */ if (OutQuotient) { *OutQuotient = Quotient.Full; } if (OutRemainder) { *OutRemainder = Remainder.Full; } return_ACPI_STATUS (AE_OK); } #else /******************************************************************************* * * FUNCTION: AcpiUtShortDivide, AcpiUtDivide * * PARAMETERS: See function headers above * * DESCRIPTION: Native versions of the UtDivide functions. Use these if either * 1) The target is a 64-bit platform and therefore 64-bit * integer math is supported directly by the machine. * 2) The target is a 32-bit or 16-bit platform, and the * double-precision integer math library is available to * perform the divide. * ******************************************************************************/ ACPI_STATUS AcpiUtShortDivide ( UINT64 InDividend, UINT32 Divisor, UINT64 *OutQuotient, UINT32 *OutRemainder) { ACPI_FUNCTION_TRACE (UtShortDivide); /* Always check for a zero divisor */ if (Divisor == 0) { ACPI_ERROR ((AE_INFO, "Divide by zero")); return_ACPI_STATUS (AE_AML_DIVIDE_BY_ZERO); } /* Return only what was requested */ if (OutQuotient) { *OutQuotient = InDividend / Divisor; } if (OutRemainder) { *OutRemainder = (UINT32) (InDividend % Divisor); } return_ACPI_STATUS (AE_OK); } ACPI_STATUS AcpiUtDivide ( UINT64 InDividend, UINT64 InDivisor, UINT64 *OutQuotient, UINT64 *OutRemainder) { ACPI_FUNCTION_TRACE (UtDivide); /* Always check for a zero divisor */ if (InDivisor == 0) { ACPI_ERROR ((AE_INFO, "Divide by zero")); return_ACPI_STATUS (AE_AML_DIVIDE_BY_ZERO); } /* Return only what was requested */ if (OutQuotient) { *OutQuotient = InDividend / InDivisor; } if (OutRemainder) { *OutRemainder = InDividend % InDivisor; } return_ACPI_STATUS (AE_OK); } #endif acpica-unix-20250404/source/components/utilities/utdecode.c0000775000175000017500000004544214773714133023213 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utdecode - Utility decoding routines (value-to-string) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "amlcode.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utdecode") /* * Properties of the ACPI Object Types, both internal and external. * The table is indexed by values of ACPI_OBJECT_TYPE */ const UINT8 AcpiGbl_NsProperties[ACPI_NUM_NS_TYPES] = { ACPI_NS_NORMAL, /* 00 Any */ ACPI_NS_NORMAL, /* 01 Number */ ACPI_NS_NORMAL, /* 02 String */ ACPI_NS_NORMAL, /* 03 Buffer */ ACPI_NS_NORMAL, /* 04 Package */ ACPI_NS_NORMAL, /* 05 FieldUnit */ ACPI_NS_NEWSCOPE, /* 06 Device */ ACPI_NS_NORMAL, /* 07 Event */ ACPI_NS_NEWSCOPE, /* 08 Method */ ACPI_NS_NORMAL, /* 09 Mutex */ ACPI_NS_NORMAL, /* 10 Region */ ACPI_NS_NEWSCOPE, /* 11 Power */ ACPI_NS_NEWSCOPE, /* 12 Processor */ ACPI_NS_NEWSCOPE, /* 13 Thermal */ ACPI_NS_NORMAL, /* 14 BufferField */ ACPI_NS_NORMAL, /* 15 DdbHandle */ ACPI_NS_NORMAL, /* 16 Debug Object */ ACPI_NS_NORMAL, /* 17 DefField */ ACPI_NS_NORMAL, /* 18 BankField */ ACPI_NS_NORMAL, /* 19 IndexField */ ACPI_NS_NORMAL, /* 20 Reference */ ACPI_NS_NORMAL, /* 21 Alias */ ACPI_NS_NORMAL, /* 22 MethodAlias */ ACPI_NS_NORMAL, /* 23 Notify */ ACPI_NS_NORMAL, /* 24 Address Handler */ ACPI_NS_NEWSCOPE | ACPI_NS_LOCAL, /* 25 Resource Desc */ ACPI_NS_NEWSCOPE | ACPI_NS_LOCAL, /* 26 Resource Field */ ACPI_NS_NEWSCOPE, /* 27 Scope */ ACPI_NS_NORMAL, /* 28 Extra */ ACPI_NS_NORMAL, /* 29 Data */ ACPI_NS_NORMAL /* 30 Invalid */ }; /******************************************************************************* * * FUNCTION: AcpiUtGetRegionName * * PARAMETERS: Space ID - ID for the region * * RETURN: Decoded region SpaceId name * * DESCRIPTION: Translate a Space ID into a name string (Debug only) * ******************************************************************************/ /* Region type decoding */ const char *AcpiGbl_RegionTypes[ACPI_NUM_PREDEFINED_REGIONS] = { "SystemMemory", /* 0x00 */ "SystemIO", /* 0x01 */ "PCI_Config", /* 0x02 */ "EmbeddedControl", /* 0x03 */ "SMBus", /* 0x04 */ "SystemCMOS", /* 0x05 */ "PCIBARTarget", /* 0x06 */ "IPMI", /* 0x07 */ "GeneralPurposeIo", /* 0x08 */ "GenericSerialBus", /* 0x09 */ "PCC", /* 0x0A */ "PlatformRtMechanism" /* 0x0B */ }; const char * AcpiUtGetRegionName ( UINT8 SpaceId) { if (SpaceId >= ACPI_USER_REGION_BEGIN) { return ("UserDefinedRegion"); } else if (SpaceId == ACPI_ADR_SPACE_DATA_TABLE) { return ("DataTable"); } else if (SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE) { return ("FunctionalFixedHW"); } else if (SpaceId >= ACPI_NUM_PREDEFINED_REGIONS) { return ("InvalidSpaceId"); } return (AcpiGbl_RegionTypes[SpaceId]); } /******************************************************************************* * * FUNCTION: AcpiUtGetEventName * * PARAMETERS: EventId - Fixed event ID * * RETURN: Decoded event ID name * * DESCRIPTION: Translate a Event ID into a name string (Debug only) * ******************************************************************************/ /* Event type decoding */ static const char *AcpiGbl_EventTypes[ACPI_NUM_FIXED_EVENTS] = { "PM_Timer", "GlobalLock", "PowerButton", "SleepButton", "RealTimeClock", }; const char * AcpiUtGetEventName ( UINT32 EventId) { if (EventId > ACPI_EVENT_MAX) { return ("InvalidEventID"); } return (AcpiGbl_EventTypes[EventId]); } /******************************************************************************* * * FUNCTION: AcpiUtGetTypeName * * PARAMETERS: Type - An ACPI object type * * RETURN: Decoded ACPI object type name * * DESCRIPTION: Translate a Type ID into a name string (Debug only) * ******************************************************************************/ /* * Elements of AcpiGbl_NsTypeNames below must match * one-to-one with values of ACPI_OBJECT_TYPE * * The type ACPI_TYPE_ANY (Untyped) is used as a "don't care" when searching; * when stored in a table it really means that we have thus far seen no * evidence to indicate what type is actually going to be stored for this & entry. */ static const char AcpiGbl_BadType[] = "UNDEFINED"; /* Printable names of the ACPI object types */ static const char *AcpiGbl_NsTypeNames[] = { /* 00 */ "Untyped", /* 01 */ "Integer", /* 02 */ "String", /* 03 */ "Buffer", /* 04 */ "Package", /* 05 */ "FieldUnit", /* 06 */ "Device", /* 07 */ "Event", /* 08 */ "Method", /* 09 */ "Mutex", /* 10 */ "Region", /* 11 */ "Power", /* 12 */ "Processor", /* 13 */ "Thermal", /* 14 */ "BufferField", /* 15 */ "DdbHandle", /* 16 */ "DebugObject", /* 17 */ "RegionField", /* 18 */ "BankField", /* 19 */ "IndexField", /* 20 */ "Reference", /* 21 */ "Alias", /* 22 */ "MethodAlias", /* 23 */ "Notify", /* 24 */ "AddrHandler", /* 25 */ "ResourceDesc", /* 26 */ "ResourceFld", /* 27 */ "Scope", /* 28 */ "Extra", /* 29 */ "Data", /* 30 */ "Invalid" }; const char * AcpiUtGetTypeName ( ACPI_OBJECT_TYPE Type) { if (Type > ACPI_TYPE_INVALID) { return (AcpiGbl_BadType); } return (AcpiGbl_NsTypeNames[Type]); } const char * AcpiUtGetObjectTypeName ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_FUNCTION_TRACE (UtGetObjectTypeName); if (!ObjDesc) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Null Object Descriptor\n")); return_STR ("[NULL Object Descriptor]"); } /* These descriptor types share a common area */ if ((ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND) && (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_NAMED)) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Invalid object descriptor type: 0x%2.2X [%s] (%p)\n", ACPI_GET_DESCRIPTOR_TYPE (ObjDesc), AcpiUtGetDescriptorName (ObjDesc), ObjDesc)); return_STR ("Invalid object"); } return_STR (AcpiUtGetTypeName (ObjDesc->Common.Type)); } /******************************************************************************* * * FUNCTION: AcpiUtGetNodeName * * PARAMETERS: Object - A namespace node * * RETURN: ASCII name of the node * * DESCRIPTION: Validate the node and return the node's ACPI name. * ******************************************************************************/ const char * AcpiUtGetNodeName ( void *Object) { ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) Object; /* Must return a string of exactly 4 characters == ACPI_NAMESEG_SIZE */ if (!Object) { return ("NULL"); } /* Check for Root node */ if ((Object == ACPI_ROOT_OBJECT) || (Object == AcpiGbl_RootNode)) { return ("\"\\\" "); } /* Descriptor must be a namespace node */ if (ACPI_GET_DESCRIPTOR_TYPE (Node) != ACPI_DESC_TYPE_NAMED) { return ("####"); } /* * Ensure name is valid. The name was validated/repaired when the node * was created, but make sure it has not been corrupted. */ AcpiUtRepairName (Node->Name.Ascii); /* Return the name */ return (Node->Name.Ascii); } /******************************************************************************* * * FUNCTION: AcpiUtGetDescriptorName * * PARAMETERS: Object - An ACPI object * * RETURN: Decoded name of the descriptor type * * DESCRIPTION: Validate object and return the descriptor type * ******************************************************************************/ /* Printable names of object descriptor types */ static const char *AcpiGbl_DescTypeNames[] = { /* 00 */ "Not a Descriptor", /* 01 */ "Cached Object", /* 02 */ "State-Generic", /* 03 */ "State-Update", /* 04 */ "State-Package", /* 05 */ "State-Control", /* 06 */ "State-RootParseScope", /* 07 */ "State-ParseScope", /* 08 */ "State-WalkScope", /* 09 */ "State-Result", /* 10 */ "State-Notify", /* 11 */ "State-Thread", /* 12 */ "Tree Walk State", /* 13 */ "Parse Tree Op", /* 14 */ "Operand Object", /* 15 */ "Namespace Node" }; const char * AcpiUtGetDescriptorName ( void *Object) { if (!Object) { return ("NULL OBJECT"); } if (ACPI_GET_DESCRIPTOR_TYPE (Object) > ACPI_DESC_TYPE_MAX) { return ("Not a Descriptor"); } return (AcpiGbl_DescTypeNames[ACPI_GET_DESCRIPTOR_TYPE (Object)]); } /******************************************************************************* * * FUNCTION: AcpiUtGetReferenceName * * PARAMETERS: Object - An ACPI reference object * * RETURN: Decoded name of the type of reference * * DESCRIPTION: Decode a reference object sub-type to a string. * ******************************************************************************/ /* Printable names of reference object sub-types */ static const char *AcpiGbl_RefClassNames[] = { /* 00 */ "Local", /* 01 */ "Argument", /* 02 */ "RefOf", /* 03 */ "Index", /* 04 */ "DdbHandle", /* 05 */ "Named Object", /* 06 */ "Debug" }; const char * AcpiUtGetReferenceName ( ACPI_OPERAND_OBJECT *Object) { if (!Object) { return ("NULL Object"); } if (ACPI_GET_DESCRIPTOR_TYPE (Object) != ACPI_DESC_TYPE_OPERAND) { return ("Not an Operand object"); } if (Object->Common.Type != ACPI_TYPE_LOCAL_REFERENCE) { return ("Not a Reference object"); } if (Object->Reference.Class > ACPI_REFCLASS_MAX) { return ("Unknown Reference class"); } return (AcpiGbl_RefClassNames[Object->Reference.Class]); } /******************************************************************************* * * FUNCTION: AcpiUtGetMutexName * * PARAMETERS: MutexId - The predefined ID for this mutex. * * RETURN: Decoded name of the internal mutex * * DESCRIPTION: Translate a mutex ID into a name string (Debug only) * ******************************************************************************/ /* Names for internal mutex objects, used for debug output */ static const char *AcpiGbl_MutexNames[ACPI_NUM_MUTEX] = { "ACPI_MTX_Interpreter", "ACPI_MTX_Namespace", "ACPI_MTX_Tables", "ACPI_MTX_Events", "ACPI_MTX_Caches", "ACPI_MTX_Memory", }; const char * AcpiUtGetMutexName ( UINT32 MutexId) { if (MutexId > ACPI_MAX_MUTEX) { return ("Invalid Mutex ID"); } return (AcpiGbl_MutexNames[MutexId]); } #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) /* * Strings and procedures used for debug only */ /******************************************************************************* * * FUNCTION: AcpiUtGetNotifyName * * PARAMETERS: NotifyValue - Value from the Notify() request * * RETURN: Decoded name for the notify value * * DESCRIPTION: Translate a Notify Value to a notify namestring. * ******************************************************************************/ /* Names for Notify() values, used for debug output */ static const char *AcpiGbl_GenericNotify[ACPI_GENERIC_NOTIFY_MAX + 1] = { /* 00 */ "Bus Check", /* 01 */ "Device Check", /* 02 */ "Device Wake", /* 03 */ "Eject Request", /* 04 */ "Device Check Light", /* 05 */ "Frequency Mismatch", /* 06 */ "Bus Mode Mismatch", /* 07 */ "Power Fault", /* 08 */ "Capabilities Check", /* 09 */ "Device PLD Check", /* 0A */ "Reserved", /* 0B */ "System Locality Update", /* 0C */ "Reserved (was previously Shutdown Request)", /* Reserved in ACPI 6.0 */ /* 0D */ "System Resource Affinity Update", /* 0E */ "Heterogeneous Memory Attributes Update", /* ACPI 6.2 */ /* 0F */ "Error Disconnect Recover" /* ACPI 6.3 */ }; static const char *AcpiGbl_DeviceNotify[5] = { /* 80 */ "Status Change", /* 81 */ "Information Change", /* 82 */ "Device-Specific Change", /* 83 */ "Device-Specific Change", /* 84 */ "Reserved" }; static const char *AcpiGbl_ProcessorNotify[5] = { /* 80 */ "Performance Capability Change", /* 81 */ "C-State Change", /* 82 */ "Throttling Capability Change", /* 83 */ "Guaranteed Change", /* 84 */ "Minimum Excursion" }; static const char *AcpiGbl_ThermalNotify[5] = { /* 80 */ "Thermal Status Change", /* 81 */ "Thermal Trip Point Change", /* 82 */ "Thermal Device List Change", /* 83 */ "Thermal Relationship Change", /* 84 */ "Reserved" }; const char * AcpiUtGetNotifyName ( UINT32 NotifyValue, ACPI_OBJECT_TYPE Type) { /* 00 - 0F are "common to all object types" (from ACPI Spec) */ if (NotifyValue <= ACPI_GENERIC_NOTIFY_MAX) { return (AcpiGbl_GenericNotify[NotifyValue]); } /* 10 - 7F are reserved */ if (NotifyValue <= ACPI_MAX_SYS_NOTIFY) { return ("Reserved"); } /* 80 - 84 are per-object-type */ if (NotifyValue <= ACPI_SPECIFIC_NOTIFY_MAX) { switch (Type) { case ACPI_TYPE_ANY: case ACPI_TYPE_DEVICE: return (AcpiGbl_DeviceNotify [NotifyValue - 0x80]); case ACPI_TYPE_PROCESSOR: return (AcpiGbl_ProcessorNotify [NotifyValue - 0x80]); case ACPI_TYPE_THERMAL: return (AcpiGbl_ThermalNotify [NotifyValue - 0x80]); default: return ("Target object type does not support notifies"); } } /* 84 - BF are device-specific */ if (NotifyValue <= ACPI_MAX_DEVICE_SPECIFIC_NOTIFY) { return ("Device-Specific"); } /* C0 and above are hardware-specific */ return ("Hardware-Specific"); } /******************************************************************************* * * FUNCTION: AcpiUtGetArgumentTypeName * * PARAMETERS: ArgType - an ARGP_* parser argument type * * RETURN: Decoded ARGP_* type * * DESCRIPTION: Decode an ARGP_* parser type, as defined in the amlcode.h file, * and used in the acopcode.h file. For example, ARGP_TERMARG. * Used for debug only. * ******************************************************************************/ static const char *AcpiGbl_ArgumentType[20] = { /* 00 */ "Unknown ARGP", /* 01 */ "ByteData", /* 02 */ "ByteList", /* 03 */ "CharList", /* 04 */ "DataObject", /* 05 */ "DataObjectList", /* 06 */ "DWordData", /* 07 */ "FieldList", /* 08 */ "Name", /* 09 */ "NameString", /* 0A */ "ObjectList", /* 0B */ "PackageLength", /* 0C */ "SuperName", /* 0D */ "Target", /* 0E */ "TermArg", /* 0F */ "TermList", /* 10 */ "WordData", /* 11 */ "QWordData", /* 12 */ "SimpleName", /* 13 */ "NameOrRef" }; const char * AcpiUtGetArgumentTypeName ( UINT32 ArgType) { if (ArgType > ARGP_MAX) { return ("Unknown ARGP"); } return (AcpiGbl_ArgumentType[ArgType]); } #endif /******************************************************************************* * * FUNCTION: AcpiUtValidObjectType * * PARAMETERS: Type - Object type to be validated * * RETURN: TRUE if valid object type, FALSE otherwise * * DESCRIPTION: Validate an object type * ******************************************************************************/ BOOLEAN AcpiUtValidObjectType ( ACPI_OBJECT_TYPE Type) { if (Type > ACPI_TYPE_LOCAL_MAX) { /* Note: Assumes all TYPEs are contiguous (external/local) */ return (FALSE); } return (TRUE); } acpica-unix-20250404/source/components/utilities/utosi.c0000775000175000017500000004473514773714133022566 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utosi - Support for the _OSI predefined control method * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utosi") /****************************************************************************** * * ACPICA policy for new _OSI strings: * * It is the stated policy of ACPICA that new _OSI strings will be integrated * into this module as soon as possible after they are defined. It is strongly * recommended that all ACPICA hosts mirror this policy and integrate any * changes to this module as soon as possible. There are several historical * reasons behind this policy: * * 1) New BIOSs tend to test only the case where the host responds TRUE to * the latest version of Windows, which would respond to the latest/newest * _OSI string. Not responding TRUE to the latest version of Windows will * risk executing untested code paths throughout the DSDT and SSDTs. * * 2) If a new _OSI string is recognized only after a significant delay, this * has the potential to cause problems on existing working machines because * of the possibility that a new and different path through the ASL code * will be executed. * * 3) New _OSI strings are tending to come out about once per year. A delay * in recognizing a new string for a significant amount of time risks the * release of another string which only compounds the initial problem. * *****************************************************************************/ /* * Strings supported by the _OSI predefined control method (which is * implemented internally within this module.) * * March 2009: Removed "Linux" as this host no longer wants to respond true * for this string. Basically, the only safe OS strings are windows-related * and in many or most cases represent the only test path within the * BIOS-provided ASL code. * * The last element of each entry is used to track the newest version of * Windows that the BIOS has requested. */ static ACPI_INTERFACE_INFO AcpiDefaultSupportedInterfaces[] = { /* Operating System Vendor Strings */ {"Windows 2000", NULL, 0, ACPI_OSI_WIN_2000}, /* Windows 2000 */ {"Windows 2001", NULL, 0, ACPI_OSI_WIN_XP}, /* Windows XP */ {"Windows 2001 SP1", NULL, 0, ACPI_OSI_WIN_XP_SP1}, /* Windows XP SP1 */ {"Windows 2001.1", NULL, 0, ACPI_OSI_WINSRV_2003}, /* Windows Server 2003 */ {"Windows 2001 SP2", NULL, 0, ACPI_OSI_WIN_XP_SP2}, /* Windows XP SP2 */ {"Windows 2001.1 SP1", NULL, 0, ACPI_OSI_WINSRV_2003_SP1}, /* Windows Server 2003 SP1 - Added 03/2006 */ {"Windows 2006", NULL, 0, ACPI_OSI_WIN_VISTA}, /* Windows Vista - Added 03/2006 */ {"Windows 2006.1", NULL, 0, ACPI_OSI_WINSRV_2008}, /* Windows Server 2008 - Added 09/2009 */ {"Windows 2006 SP1", NULL, 0, ACPI_OSI_WIN_VISTA_SP1}, /* Windows Vista SP1 - Added 09/2009 */ {"Windows 2006 SP2", NULL, 0, ACPI_OSI_WIN_VISTA_SP2}, /* Windows Vista SP2 - Added 09/2010 */ {"Windows 2009", NULL, 0, ACPI_OSI_WIN_7}, /* Windows 7 and Server 2008 R2 - Added 09/2009 */ {"Windows 2012", NULL, 0, ACPI_OSI_WIN_8}, /* Windows 8 and Server 2012 - Added 08/2012 */ {"Windows 2013", NULL, 0, ACPI_OSI_WIN_8_1}, /* Windows 8.1 and Server 2012 R2 - Added 01/2014 */ {"Windows 2015", NULL, 0, ACPI_OSI_WIN_10}, /* Windows 10 - Added 03/2015 */ {"Windows 2016", NULL, 0, ACPI_OSI_WIN_10_RS1}, /* Windows 10 version 1607 - Added 12/2017 */ {"Windows 2017", NULL, 0, ACPI_OSI_WIN_10_RS2}, /* Windows 10 version 1703 - Added 12/2017 */ {"Windows 2017.2", NULL, 0, ACPI_OSI_WIN_10_RS3}, /* Windows 10 version 1709 - Added 02/2018 */ {"Windows 2018", NULL, 0, ACPI_OSI_WIN_10_RS4}, /* Windows 10 version 1803 - Added 11/2018 */ {"Windows 2018.2", NULL, 0, ACPI_OSI_WIN_10_RS5}, /* Windows 10 version 1809 - Added 11/2018 */ {"Windows 2019", NULL, 0, ACPI_OSI_WIN_10_19H1}, /* Windows 10 version 1903 - Added 08/2019 */ {"Windows 2020", NULL, 0, ACPI_OSI_WIN_10_20H1}, /* Windows 10 version 2004 - Added 08/2021 */ {"Windows 2021", NULL, 0, ACPI_OSI_WIN_11}, /* Windows 11 - Added 01/2022 */ {"Windows 2022", NULL, 0, ACPI_OSI_WIN_11_22H2}, /* Windows 11 version 22H2 - Added 04/2024 */ /* Feature Group Strings */ {"Extended Address Space Descriptor", NULL, ACPI_OSI_FEATURE, 0}, /* * All "optional" feature group strings (features that are implemented * by the host) should be dynamically modified to VALID by the host via * AcpiInstallInterface or AcpiUpdateInterfaces. Such optional feature * group strings are set as INVALID by default here. */ {"Module Device", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0}, {"Processor Device", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0}, {"3.0 Thermal Model", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0}, {"3.0 _SCP Extensions", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0}, {"Processor Aggregator Device", NULL, ACPI_OSI_OPTIONAL_FEATURE, 0} }; /******************************************************************************* * * FUNCTION: AcpiUtInitializeInterfaces * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize the global _OSI supported interfaces list * ******************************************************************************/ ACPI_STATUS AcpiUtInitializeInterfaces ( void) { ACPI_STATUS Status; UINT32 i; Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return (Status); } AcpiGbl_SupportedInterfaces = AcpiDefaultSupportedInterfaces; /* Link the static list of supported interfaces */ for (i = 0; i < (ACPI_ARRAY_LENGTH (AcpiDefaultSupportedInterfaces) - 1); i++) { AcpiDefaultSupportedInterfaces[i].Next = &AcpiDefaultSupportedInterfaces[(ACPI_SIZE) i + 1]; } AcpiOsReleaseMutex (AcpiGbl_OsiMutex); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtInterfaceTerminate * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Delete all interfaces in the global list. Sets * AcpiGbl_SupportedInterfaces to NULL. * ******************************************************************************/ ACPI_STATUS AcpiUtInterfaceTerminate ( void) { ACPI_STATUS Status; ACPI_INTERFACE_INFO *NextInterface; Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return (Status); } NextInterface = AcpiGbl_SupportedInterfaces; while (NextInterface) { AcpiGbl_SupportedInterfaces = NextInterface->Next; if (NextInterface->Flags & ACPI_OSI_DYNAMIC) { /* Only interfaces added at runtime can be freed */ ACPI_FREE (NextInterface->Name); ACPI_FREE (NextInterface); } else { /* Interface is in static list. Reset it to invalid or valid. */ if (NextInterface->Flags & ACPI_OSI_DEFAULT_INVALID) { NextInterface->Flags |= ACPI_OSI_INVALID; } else { NextInterface->Flags &= ~ACPI_OSI_INVALID; } } NextInterface = AcpiGbl_SupportedInterfaces; } AcpiOsReleaseMutex (AcpiGbl_OsiMutex); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtInstallInterface * * PARAMETERS: InterfaceName - The interface to install * * RETURN: Status * * DESCRIPTION: Install the interface into the global interface list. * Caller MUST hold AcpiGbl_OsiMutex * ******************************************************************************/ ACPI_STATUS AcpiUtInstallInterface ( ACPI_STRING InterfaceName) { ACPI_INTERFACE_INFO *InterfaceInfo; /* Allocate info block and space for the name string */ InterfaceInfo = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_INTERFACE_INFO)); if (!InterfaceInfo) { return (AE_NO_MEMORY); } InterfaceInfo->Name = ACPI_ALLOCATE_ZEROED (strlen (InterfaceName) + 1); if (!InterfaceInfo->Name) { ACPI_FREE (InterfaceInfo); return (AE_NO_MEMORY); } /* Initialize new info and insert at the head of the global list */ strcpy (InterfaceInfo->Name, InterfaceName); InterfaceInfo->Flags = ACPI_OSI_DYNAMIC; InterfaceInfo->Next = AcpiGbl_SupportedInterfaces; AcpiGbl_SupportedInterfaces = InterfaceInfo; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtRemoveInterface * * PARAMETERS: InterfaceName - The interface to remove * * RETURN: Status * * DESCRIPTION: Remove the interface from the global interface list. * Caller MUST hold AcpiGbl_OsiMutex * ******************************************************************************/ ACPI_STATUS AcpiUtRemoveInterface ( ACPI_STRING InterfaceName) { ACPI_INTERFACE_INFO *PreviousInterface; ACPI_INTERFACE_INFO *NextInterface; PreviousInterface = NextInterface = AcpiGbl_SupportedInterfaces; while (NextInterface) { if (!strcmp (InterfaceName, NextInterface->Name)) { /* * Found: name is in either the static list * or was added at runtime */ if (NextInterface->Flags & ACPI_OSI_DYNAMIC) { /* Interface was added dynamically, remove and free it */ if (PreviousInterface == NextInterface) { AcpiGbl_SupportedInterfaces = NextInterface->Next; } else { PreviousInterface->Next = NextInterface->Next; } ACPI_FREE (NextInterface->Name); ACPI_FREE (NextInterface); } else { /* * Interface is in static list. If marked invalid, then * it does not actually exist. Else, mark it invalid. */ if (NextInterface->Flags & ACPI_OSI_INVALID) { return (AE_NOT_EXIST); } NextInterface->Flags |= ACPI_OSI_INVALID; } return (AE_OK); } PreviousInterface = NextInterface; NextInterface = NextInterface->Next; } /* Interface was not found */ return (AE_NOT_EXIST); } /******************************************************************************* * * FUNCTION: AcpiUtUpdateInterfaces * * PARAMETERS: Action - Actions to be performed during the * update * * RETURN: Status * * DESCRIPTION: Update _OSI interface strings, disabling or enabling OS vendor * strings or/and feature group strings. * Caller MUST hold AcpiGbl_OsiMutex * ******************************************************************************/ ACPI_STATUS AcpiUtUpdateInterfaces ( UINT8 Action) { ACPI_INTERFACE_INFO *NextInterface; NextInterface = AcpiGbl_SupportedInterfaces; while (NextInterface) { if (((NextInterface->Flags & ACPI_OSI_FEATURE) && (Action & ACPI_FEATURE_STRINGS)) || (!(NextInterface->Flags & ACPI_OSI_FEATURE) && (Action & ACPI_VENDOR_STRINGS))) { if (Action & ACPI_DISABLE_INTERFACES) { /* Mark the interfaces as invalid */ NextInterface->Flags |= ACPI_OSI_INVALID; } else { /* Mark the interfaces as valid */ NextInterface->Flags &= ~ACPI_OSI_INVALID; } } NextInterface = NextInterface->Next; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtGetInterface * * PARAMETERS: InterfaceName - The interface to find * * RETURN: ACPI_INTERFACE_INFO if found. NULL if not found. * * DESCRIPTION: Search for the specified interface name in the global list. * Caller MUST hold AcpiGbl_OsiMutex * ******************************************************************************/ ACPI_INTERFACE_INFO * AcpiUtGetInterface ( ACPI_STRING InterfaceName) { ACPI_INTERFACE_INFO *NextInterface; NextInterface = AcpiGbl_SupportedInterfaces; while (NextInterface) { if (!strcmp (InterfaceName, NextInterface->Name)) { return (NextInterface); } NextInterface = NextInterface->Next; } return (NULL); } /******************************************************************************* * * FUNCTION: AcpiUtOsiImplementation * * PARAMETERS: WalkState - Current walk state * * RETURN: Status * Integer: TRUE (0) if input string is matched * FALSE (-1) if string is not matched * * DESCRIPTION: Implementation of the _OSI predefined control method. When * an invocation of _OSI is encountered in the system AML, * control is transferred to this function. * * (August 2016) * Note: _OSI is now defined to return "Ones" to indicate a match, for * compatibility with other ACPI implementations. On a 32-bit DSDT, Ones * is 0xFFFFFFFF. On a 64-bit DSDT, Ones is 0xFFFFFFFFFFFFFFFF * (ACPI_UINT64_MAX). * * This function always returns ACPI_UINT64_MAX for TRUE, and later code * will truncate this to 32 bits if necessary. * ******************************************************************************/ ACPI_STATUS AcpiUtOsiImplementation ( ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT *StringDesc; ACPI_OPERAND_OBJECT *ReturnDesc; ACPI_INTERFACE_INFO *InterfaceInfo; ACPI_INTERFACE_HANDLER InterfaceHandler; ACPI_STATUS Status; UINT64 ReturnValue; ACPI_FUNCTION_TRACE (UtOsiImplementation); /* Validate the string input argument (from the AML caller) */ StringDesc = WalkState->Arguments[0].Object; if (!StringDesc || (StringDesc->Common.Type != ACPI_TYPE_STRING)) { return_ACPI_STATUS (AE_TYPE); } /* Create a return object */ ReturnDesc = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER); if (!ReturnDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Default return value is 0, NOT SUPPORTED */ ReturnValue = 0; Status = AcpiOsAcquireMutex (AcpiGbl_OsiMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ReturnDesc); return_ACPI_STATUS (Status); } /* Lookup the interface in the global _OSI list */ InterfaceInfo = AcpiUtGetInterface (StringDesc->String.Pointer); if (InterfaceInfo && !(InterfaceInfo->Flags & ACPI_OSI_INVALID)) { /* * The interface is supported. * Update the OsiData if necessary. We keep track of the latest * version of Windows that has been requested by the BIOS. */ if (InterfaceInfo->Value > AcpiGbl_OsiData) { AcpiGbl_OsiData = InterfaceInfo->Value; } ReturnValue = ACPI_UINT64_MAX; } AcpiOsReleaseMutex (AcpiGbl_OsiMutex); /* * Invoke an optional _OSI interface handler. The host OS may wish * to do some interface-specific handling. For example, warn about * certain interfaces or override the true/false support value. */ InterfaceHandler = AcpiGbl_InterfaceHandler; if (InterfaceHandler) { if (InterfaceHandler ( StringDesc->String.Pointer, (UINT32) ReturnValue)) { ReturnValue = ACPI_UINT64_MAX; } } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INFO, "ACPI: BIOS _OSI(\"%s\") is %ssupported\n", StringDesc->String.Pointer, ReturnValue == 0 ? "not " : "")); /* Complete the return object */ ReturnDesc->Integer.Value = ReturnValue; WalkState->ReturnDesc = ReturnDesc; return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/utilities/utstrsuppt.c0000775000175000017500000004034314773714133023667 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utstrsuppt - Support functions for string-to-integer conversion * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utstrsuppt") /* Local prototypes */ static ACPI_STATUS AcpiUtInsertDigit ( UINT64 *AccumulatedValue, UINT32 Base, int AsciiDigit); static ACPI_STATUS AcpiUtStrtoulMultiply64 ( UINT64 Multiplicand, UINT32 Base, UINT64 *OutProduct); static ACPI_STATUS AcpiUtStrtoulAdd64 ( UINT64 Addend1, UINT32 Digit, UINT64 *OutSum); /******************************************************************************* * * FUNCTION: AcpiUtConvertOctalString * * PARAMETERS: String - Null terminated input string * ReturnValuePtr - Where the converted value is returned * * RETURN: Status and 64-bit converted integer * * DESCRIPTION: Performs a base 8 conversion of the input string to an * integer value, either 32 or 64 bits. * * NOTE: Maximum 64-bit unsigned octal value is 01777777777777777777777 * Maximum 32-bit unsigned octal value is 037777777777 * ******************************************************************************/ ACPI_STATUS AcpiUtConvertOctalString ( char *String, UINT64 *ReturnValuePtr) { UINT64 AccumulatedValue = 0; ACPI_STATUS Status = AE_OK; /* Convert each ASCII byte in the input string */ while (*String) { /* * Character must be ASCII 0-7, otherwise: * 1) Runtime: terminate with no error, per the ACPI spec * 2) Compiler: return an error */ if (!(ACPI_IS_OCTAL_DIGIT (*String))) { #ifdef ACPI_ASL_COMPILER Status = AE_BAD_OCTAL_CONSTANT; #endif break; } /* Convert and insert this octal digit into the accumulator */ Status = AcpiUtInsertDigit (&AccumulatedValue, 8, *String); if (ACPI_FAILURE (Status)) { Status = AE_OCTAL_OVERFLOW; break; } String++; } /* Always return the value that has been accumulated */ *ReturnValuePtr = AccumulatedValue; return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtConvertDecimalString * * PARAMETERS: String - Null terminated input string * ReturnValuePtr - Where the converted value is returned * * RETURN: Status and 64-bit converted integer * * DESCRIPTION: Performs a base 10 conversion of the input string to an * integer value, either 32 or 64 bits. * * NOTE: Maximum 64-bit unsigned decimal value is 18446744073709551615 * Maximum 32-bit unsigned decimal value is 4294967295 * ******************************************************************************/ ACPI_STATUS AcpiUtConvertDecimalString ( char *String, UINT64 *ReturnValuePtr) { UINT64 AccumulatedValue = 0; ACPI_STATUS Status = AE_OK; /* Convert each ASCII byte in the input string */ while (*String) { /* * Character must be ASCII 0-9, otherwise: * 1) Runtime: terminate with no error, per the ACPI spec * 2) Compiler: return an error */ if (!isdigit ((int) *String)) { #ifdef ACPI_ASL_COMPILER Status = AE_BAD_DECIMAL_CONSTANT; #endif break; } /* Convert and insert this decimal digit into the accumulator */ Status = AcpiUtInsertDigit (&AccumulatedValue, 10, *String); if (ACPI_FAILURE (Status)) { Status = AE_DECIMAL_OVERFLOW; break; } String++; } /* Always return the value that has been accumulated */ *ReturnValuePtr = AccumulatedValue; return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtConvertHexString * * PARAMETERS: String - Null terminated input string * ReturnValuePtr - Where the converted value is returned * * RETURN: Status and 64-bit converted integer * * DESCRIPTION: Performs a base 16 conversion of the input string to an * integer value, either 32 or 64 bits. * * NOTE: Maximum 64-bit unsigned hex value is 0xFFFFFFFFFFFFFFFF * Maximum 32-bit unsigned hex value is 0xFFFFFFFF * ******************************************************************************/ ACPI_STATUS AcpiUtConvertHexString ( char *String, UINT64 *ReturnValuePtr) { UINT64 AccumulatedValue = 0; ACPI_STATUS Status = AE_OK; /* Convert each ASCII byte in the input string */ while (*String) { /* * Character must be ASCII A-F, a-f, or 0-9, otherwise: * 1) Runtime: terminate with no error, per the ACPI spec * 2) Compiler: return an error */ if (!isxdigit ((int) *String)) { #ifdef ACPI_ASL_COMPILER Status = AE_BAD_HEX_CONSTANT; #endif break; } /* Convert and insert this hex digit into the accumulator */ Status = AcpiUtInsertDigit (&AccumulatedValue, 16, *String); if (ACPI_FAILURE (Status)) { Status = AE_HEX_OVERFLOW; break; } String++; } /* Always return the value that has been accumulated */ *ReturnValuePtr = AccumulatedValue; return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtRemoveLeadingZeros * * PARAMETERS: String - Pointer to input ASCII string * * RETURN: Next character after any leading zeros. This character may be * used by the caller to detect end-of-string. * * DESCRIPTION: Remove any leading zeros in the input string. Return the * next character after the final ASCII zero to enable the caller * to check for the end of the string (NULL terminator). * ******************************************************************************/ char AcpiUtRemoveLeadingZeros ( char **String) { while (**String == ACPI_ASCII_ZERO) { *String += 1; } return (**String); } /******************************************************************************* * * FUNCTION: AcpiUtRemoveWhitespace * * PARAMETERS: String - Pointer to input ASCII string * * RETURN: Next character after any whitespace. This character may be * used by the caller to detect end-of-string. * * DESCRIPTION: Remove any leading whitespace in the input string. Return the * next character after the final ASCII zero to enable the caller * to check for the end of the string (NULL terminator). * ******************************************************************************/ char AcpiUtRemoveWhitespace ( char **String) { while (isspace ((UINT8) **String)) { *String += 1; } return (**String); } /******************************************************************************* * * FUNCTION: AcpiUtDetectHexPrefix * * PARAMETERS: String - Pointer to input ASCII string * * RETURN: TRUE if a "0x" prefix was found at the start of the string * * DESCRIPTION: Detect and remove a hex "0x" prefix * ******************************************************************************/ BOOLEAN AcpiUtDetectHexPrefix ( char **String) { char *InitialPosition = *String; AcpiUtRemoveHexPrefix (String); if (*String != InitialPosition) { return (TRUE); /* String is past leading 0x */ } return (FALSE); /* Not a hex string */ } /******************************************************************************* * * FUNCTION: AcpiUtRemoveHexPrefix * * PARAMETERS: String - Pointer to input ASCII string * * RETURN: none * * DESCRIPTION: Remove a hex "0x" prefix * ******************************************************************************/ void AcpiUtRemoveHexPrefix ( char **String) { if ((**String == ACPI_ASCII_ZERO) && (tolower ((int) *(*String + 1)) == 'x')) { *String += 2; /* Go past the leading 0x */ } } /******************************************************************************* * * FUNCTION: AcpiUtDetectOctalPrefix * * PARAMETERS: String - Pointer to input ASCII string * * RETURN: True if an octal "0" prefix was found at the start of the * string * * DESCRIPTION: Detect and remove an octal prefix (zero) * ******************************************************************************/ BOOLEAN AcpiUtDetectOctalPrefix ( char **String) { if (**String == ACPI_ASCII_ZERO) { *String += 1; /* Go past the leading 0 */ return (TRUE); } return (FALSE); /* Not an octal string */ } /******************************************************************************* * * FUNCTION: AcpiUtInsertDigit * * PARAMETERS: AccumulatedValue - Current value of the integer value * accumulator. The new value is * returned here. * Base - Radix, either 8/10/16 * AsciiDigit - ASCII single digit to be inserted * * RETURN: Status and result of the convert/insert operation. The only * possible returned exception code is numeric overflow of * either the multiply or add conversion operations. * * DESCRIPTION: Generic conversion and insertion function for all bases: * * 1) Multiply the current accumulated/converted value by the * base in order to make room for the new character. * * 2) Convert the new character to binary and add it to the * current accumulated value. * * Note: The only possible exception indicates an integer * overflow (AE_NUMERIC_OVERFLOW) * ******************************************************************************/ static ACPI_STATUS AcpiUtInsertDigit ( UINT64 *AccumulatedValue, UINT32 Base, int AsciiDigit) { ACPI_STATUS Status; UINT64 Product; /* Make room in the accumulated value for the incoming digit */ Status = AcpiUtStrtoulMultiply64 (*AccumulatedValue, Base, &Product); if (ACPI_FAILURE (Status)) { return (Status); } /* Add in the new digit, and store the sum to the accumulated value */ Status = AcpiUtStrtoulAdd64 (Product, AcpiUtAsciiCharToHex (AsciiDigit), AccumulatedValue); return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtStrtoulMultiply64 * * PARAMETERS: Multiplicand - Current accumulated converted integer * Base - Base/Radix * OutProduct - Where the product is returned * * RETURN: Status and 64-bit product * * DESCRIPTION: Multiply two 64-bit values, with checking for 64-bit overflow as * well as 32-bit overflow if necessary (if the current global * integer width is 32). * ******************************************************************************/ static ACPI_STATUS AcpiUtStrtoulMultiply64 ( UINT64 Multiplicand, UINT32 Base, UINT64 *OutProduct) { UINT64 Product; UINT64 Quotient; /* Exit if either operand is zero */ *OutProduct = 0; if (!Multiplicand || !Base) { return (AE_OK); } /* * Check for 64-bit overflow before the actual multiplication. * * Notes: 64-bit division is often not supported on 32-bit platforms * (it requires a library function), Therefore ACPICA has a local * 64-bit divide function. Also, Multiplier is currently only used * as the radix (8/10/16), to the 64/32 divide will always work. */ AcpiUtShortDivide (ACPI_UINT64_MAX, Base, &Quotient, NULL); if (Multiplicand > Quotient) { return (AE_NUMERIC_OVERFLOW); } Product = Multiplicand * Base; /* Check for 32-bit overflow if necessary */ if ((AcpiGbl_IntegerBitWidth == 32) && (Product > ACPI_UINT32_MAX)) { return (AE_NUMERIC_OVERFLOW); } *OutProduct = Product; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtStrtoulAdd64 * * PARAMETERS: Addend1 - Current accumulated converted integer * Digit - New hex value/char * OutSum - Where sum is returned (Accumulator) * * RETURN: Status and 64-bit sum * * DESCRIPTION: Add two 64-bit values, with checking for 64-bit overflow as * well as 32-bit overflow if necessary (if the current global * integer width is 32). * ******************************************************************************/ static ACPI_STATUS AcpiUtStrtoulAdd64 ( UINT64 Addend1, UINT32 Digit, UINT64 *OutSum) { UINT64 Sum; /* Check for 64-bit overflow before the actual addition */ if ((Addend1 > 0) && (Digit > (ACPI_UINT64_MAX - Addend1))) { return (AE_NUMERIC_OVERFLOW); } Sum = Addend1 + Digit; /* Check for 32-bit overflow if necessary */ if ((AcpiGbl_IntegerBitWidth == 32) && (Sum > ACPI_UINT32_MAX)) { return (AE_NUMERIC_OVERFLOW); } *OutSum = Sum; return (AE_OK); } acpica-unix-20250404/source/components/utilities/utexcep.c0000775000175000017500000001213714773714133023067 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utexcep - Exception code support * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #define ACPI_DEFINE_EXCEPTION_TABLE #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utexcep") /******************************************************************************* * * FUNCTION: AcpiFormatException * * PARAMETERS: Status - The ACPI_STATUS code to be formatted * * RETURN: A string containing the exception text. A valid pointer is * always returned. * * DESCRIPTION: This function translates an ACPI exception into an ASCII * string. Returns "unknown status" string for invalid codes. * ******************************************************************************/ const char * AcpiFormatException ( ACPI_STATUS Status) { const ACPI_EXCEPTION_INFO *Exception; ACPI_FUNCTION_ENTRY (); Exception = AcpiUtValidateException (Status); if (!Exception) { /* Exception code was not recognized */ ACPI_ERROR ((AE_INFO, "Unknown exception code: 0x%8.8X", Status)); return ("UNKNOWN_STATUS_CODE"); } return (Exception->Name); } ACPI_EXPORT_SYMBOL (AcpiFormatException) /******************************************************************************* * * FUNCTION: AcpiUtValidateException * * PARAMETERS: Status - The ACPI_STATUS code to be formatted * * RETURN: A string containing the exception text. NULL if exception is * not valid. * * DESCRIPTION: This function validates and translates an ACPI exception into * an ASCII string. * ******************************************************************************/ const ACPI_EXCEPTION_INFO * AcpiUtValidateException ( ACPI_STATUS Status) { UINT32 SubStatus; const ACPI_EXCEPTION_INFO *Exception = NULL; ACPI_FUNCTION_ENTRY (); /* * Status is composed of two parts, a "type" and an actual code */ SubStatus = (Status & ~AE_CODE_MASK); switch (Status & AE_CODE_MASK) { case AE_CODE_ENVIRONMENTAL: if (SubStatus <= AE_CODE_ENV_MAX) { Exception = &AcpiGbl_ExceptionNames_Env [SubStatus]; } break; case AE_CODE_PROGRAMMER: if (SubStatus <= AE_CODE_PGM_MAX) { Exception = &AcpiGbl_ExceptionNames_Pgm [SubStatus]; } break; case AE_CODE_ACPI_TABLES: if (SubStatus <= AE_CODE_TBL_MAX) { Exception = &AcpiGbl_ExceptionNames_Tbl [SubStatus]; } break; case AE_CODE_AML: if (SubStatus <= AE_CODE_AML_MAX) { Exception = &AcpiGbl_ExceptionNames_Aml [SubStatus]; } break; case AE_CODE_CONTROL: if (SubStatus <= AE_CODE_CTRL_MAX) { Exception = &AcpiGbl_ExceptionNames_Ctrl [SubStatus]; } break; default: break; } if (!Exception || !Exception->Name) { return (NULL); } return (Exception); } acpica-unix-20250404/source/components/utilities/utxfinit.c0000775000175000017500000002263514773714133023270 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utxfinit - External interfaces for ACPICA initialization * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acevents.h" #include "acnamesp.h" #include "acdebug.h" #include "actables.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utxfinit") /* For AcpiExec only */ void AeDoObjectOverrides ( void); /******************************************************************************* * * FUNCTION: AcpiInitializeSubsystem * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initializes all global variables. This is the first function * called, so any early initialization belongs here. * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeSubsystem ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiInitializeSubsystem); AcpiGbl_StartupFlags = ACPI_SUBSYSTEM_INITIALIZE; ACPI_DEBUG_EXEC (AcpiUtInitStackPtrTrace ()); /* Initialize the OS-Dependent layer */ Status = AcpiOsInitialize (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During OSL initialization")); return_ACPI_STATUS (Status); } /* Initialize all globals used by the subsystem */ Status = AcpiUtInitGlobals (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During initialization of globals")); return_ACPI_STATUS (Status); } /* Create the default mutex objects */ Status = AcpiUtMutexInitialize (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During Global Mutex creation")); return_ACPI_STATUS (Status); } /* * Initialize the namespace manager and * the root of the namespace tree */ Status = AcpiNsRootInitialize (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During Namespace initialization")); return_ACPI_STATUS (Status); } /* Initialize the global OSI interfaces list with the static names */ Status = AcpiUtInitializeInterfaces (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During OSI interfaces initialization")); return_ACPI_STATUS (Status); } return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL_INIT (AcpiInitializeSubsystem) /******************************************************************************* * * FUNCTION: AcpiEnableSubsystem * * PARAMETERS: Flags - Init/enable Options * * RETURN: Status * * DESCRIPTION: Completes the subsystem initialization including hardware. * Puts system into ACPI mode if it isn't already. * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiEnableSubsystem ( UINT32 Flags) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (AcpiEnableSubsystem); /* * The early initialization phase is complete. The namespace is loaded, * and we can now support address spaces other than Memory, I/O, and * PCI_Config. */ AcpiGbl_EarlyInitialization = FALSE; /* * Obtain a permanent mapping for the FACS. This is required for the * Global Lock and the Firmware Waking Vector */ if (!(Flags & ACPI_NO_FACS_INIT)) { Status = AcpiTbInitializeFacs (); if (ACPI_FAILURE (Status)) { ACPI_WARNING ((AE_INFO, "Could not map the FACS table")); return_ACPI_STATUS (Status); } } #if (!ACPI_REDUCED_HARDWARE) /* Enable ACPI mode */ if (!(Flags & ACPI_NO_ACPI_ENABLE)) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Going into ACPI mode\n")); AcpiGbl_OriginalMode = AcpiHwGetMode(); Status = AcpiEnable (); if (ACPI_FAILURE (Status)) { ACPI_WARNING ((AE_INFO, "AcpiEnable failed")); return_ACPI_STATUS (Status); } } /* * Initialize ACPI Event handling (Fixed and General Purpose) * * Note1: We must have the hardware and events initialized before we can * execute any control methods safely. Any control method can require * ACPI hardware support, so the hardware must be fully initialized before * any method execution! * * Note2: Fixed events are initialized and enabled here. GPEs are * initialized, but cannot be enabled until after the hardware is * completely initialized (SCI and GlobalLock activated) and the various * initialization control methods are run (_REG, _STA, _INI) on the * entire namespace. */ if (!(Flags & ACPI_NO_EVENT_INIT)) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Initializing ACPI events\n")); Status = AcpiEvInitializeEvents (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* * Install the SCI handler and Global Lock handler. This completes the * hardware initialization. */ if (!(Flags & ACPI_NO_HANDLER_INIT)) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Installing SCI/GL handlers\n")); Status = AcpiEvInstallXruptHandlers (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } #endif /* !ACPI_REDUCED_HARDWARE */ return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL_INIT (AcpiEnableSubsystem) /******************************************************************************* * * FUNCTION: AcpiInitializeObjects * * PARAMETERS: Flags - Init/enable Options * * RETURN: Status * * DESCRIPTION: Completes namespace initialization by initializing device * objects and executing AML code for Regions, buffers, etc. * ******************************************************************************/ ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeObjects ( UINT32 Flags) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (AcpiInitializeObjects); #ifdef ACPI_OBSOLETE_BEHAVIOR /* * 05/2019: Removed, initialization now happens at both object * creation and table load time */ /* * Initialize the objects that remain uninitialized. This * runs the executable AML that may be part of the * declaration of these objects: OperationRegions, BufferFields, * BankFields, Buffers, and Packages. */ if (!(Flags & ACPI_NO_OBJECT_INIT)) { Status = AcpiNsInitializeObjects (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } #endif /* * Initialize all device/region objects in the namespace. This runs * the device _STA and _INI methods and region _REG methods. */ if (!(Flags & (ACPI_NO_DEVICE_INIT | ACPI_NO_ADDRESS_SPACE_INIT))) { Status = AcpiNsInitializeDevices (Flags); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* * Empty the caches (delete the cached objects) on the assumption that * the table load filled them up more than they will be at runtime -- * thus wasting non-paged memory. */ Status = AcpiPurgeCachedObjects (); AcpiGbl_StartupFlags |= ACPI_INITIALIZED_OK; return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL_INIT (AcpiInitializeObjects) acpica-unix-20250404/source/components/utilities/uteval.c0000775000175000017500000002605114773714133022712 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: uteval - Object evaluation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("uteval") /******************************************************************************* * * FUNCTION: AcpiUtEvaluateObject * * PARAMETERS: PrefixNode - Starting node * Path - Path to object from starting node * ExpectedReturnTypes - Bitmap of allowed return types * ReturnDesc - Where a return value is stored * * RETURN: Status * * DESCRIPTION: Evaluates a namespace object and verifies the type of the * return object. Common code that simplifies accessing objects * that have required return objects of fixed types. * * NOTE: Internal function, no parameter validation * ******************************************************************************/ ACPI_STATUS AcpiUtEvaluateObject ( ACPI_NAMESPACE_NODE *PrefixNode, const char *Path, UINT32 ExpectedReturnBtypes, ACPI_OPERAND_OBJECT **ReturnDesc) { ACPI_EVALUATE_INFO *Info; ACPI_STATUS Status; UINT32 ReturnBtype; ACPI_FUNCTION_TRACE (UtEvaluateObject); /* Allocate the evaluation information block */ Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO)); if (!Info) { return_ACPI_STATUS (AE_NO_MEMORY); } Info->PrefixNode = PrefixNode; Info->RelativePathname = Path; /* Evaluate the object/method */ Status = AcpiNsEvaluate (Info); if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_FOUND) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[%4.4s.%s] was not found\n", AcpiUtGetNodeName (PrefixNode), Path)); } else { ACPI_ERROR_METHOD ("Method execution failed", PrefixNode, Path, Status); } goto Cleanup; } /* Did we get a return object? */ if (!Info->ReturnObject) { if (ExpectedReturnBtypes) { ACPI_ERROR_METHOD ("No object was returned from", PrefixNode, Path, AE_NOT_EXIST); Status = AE_NOT_EXIST; } goto Cleanup; } /* Map the return object type to the bitmapped type */ switch ((Info->ReturnObject)->Common.Type) { case ACPI_TYPE_INTEGER: ReturnBtype = ACPI_BTYPE_INTEGER; break; case ACPI_TYPE_BUFFER: ReturnBtype = ACPI_BTYPE_BUFFER; break; case ACPI_TYPE_STRING: ReturnBtype = ACPI_BTYPE_STRING; break; case ACPI_TYPE_PACKAGE: ReturnBtype = ACPI_BTYPE_PACKAGE; break; default: ReturnBtype = 0; break; } if ((AcpiGbl_EnableInterpreterSlack) && (!ExpectedReturnBtypes)) { /* * We received a return object, but one was not expected. This can * happen frequently if the "implicit return" feature is enabled. * Just delete the return object and return AE_OK. */ AcpiUtRemoveReference (Info->ReturnObject); goto Cleanup; } /* Is the return object one of the expected types? */ if (!(ExpectedReturnBtypes & ReturnBtype)) { ACPI_ERROR_METHOD ("Return object type is incorrect", PrefixNode, Path, AE_TYPE); ACPI_ERROR ((AE_INFO, "Type returned from %s was incorrect: %s, expected Btypes: 0x%X", Path, AcpiUtGetObjectTypeName (Info->ReturnObject), ExpectedReturnBtypes)); /* On error exit, we must delete the return object */ AcpiUtRemoveReference (Info->ReturnObject); Status = AE_TYPE; goto Cleanup; } /* Object type is OK, return it */ *ReturnDesc = Info->ReturnObject; Cleanup: ACPI_FREE (Info); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtEvaluateNumericObject * * PARAMETERS: ObjectName - Object name to be evaluated * DeviceNode - Node for the device * Value - Where the value is returned * * RETURN: Status * * DESCRIPTION: Evaluates a numeric namespace object for a selected device * and stores result in *Value. * * NOTE: Internal function, no parameter validation * ******************************************************************************/ ACPI_STATUS AcpiUtEvaluateNumericObject ( const char *ObjectName, ACPI_NAMESPACE_NODE *DeviceNode, UINT64 *Value) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (UtEvaluateNumericObject); Status = AcpiUtEvaluateObject (DeviceNode, ObjectName, ACPI_BTYPE_INTEGER, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Get the returned Integer */ *Value = ObjDesc->Integer.Value; /* On exit, we must delete the return object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtExecute_STA * * PARAMETERS: DeviceNode - Node for the device * Flags - Where the status flags are returned * * RETURN: Status * * DESCRIPTION: Executes _STA for selected device and stores results in * *Flags. If _STA does not exist, then the device is assumed * to be present/functional/enabled (as per the ACPI spec). * * NOTE: Internal function, no parameter validation * ******************************************************************************/ ACPI_STATUS AcpiUtExecute_STA ( ACPI_NAMESPACE_NODE *DeviceNode, UINT32 *Flags) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (UtExecute_STA); Status = AcpiUtEvaluateObject (DeviceNode, METHOD_NAME__STA, ACPI_BTYPE_INTEGER, &ObjDesc); if (ACPI_FAILURE (Status)) { if (AE_NOT_FOUND == Status) { /* * if _STA does not exist, then (as per the ACPI specification), * the returned flags will indicate that the device is present, * functional, and enabled. */ ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "_STA on %4.4s was not found, assuming device is present\n", AcpiUtGetNodeName (DeviceNode))); *Flags = ACPI_UINT32_MAX; Status = AE_OK; } return_ACPI_STATUS (Status); } /* Extract the status flags */ *Flags = (UINT32) ObjDesc->Integer.Value; /* On exit, we must delete the return object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtExecutePowerMethods * * PARAMETERS: DeviceNode - Node for the device * MethodNames - Array of power method names * MethodCount - Number of methods to execute * OutValues - Where the power method values are returned * * RETURN: Status, OutValues * * DESCRIPTION: Executes the specified power methods for the device and returns * the result(s). * * NOTE: Internal function, no parameter validation * ******************************************************************************/ ACPI_STATUS AcpiUtExecutePowerMethods ( ACPI_NAMESPACE_NODE *DeviceNode, const char **MethodNames, UINT8 MethodCount, UINT8 *OutValues) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_STATUS FinalStatus = AE_NOT_FOUND; UINT32 i; ACPI_FUNCTION_TRACE (UtExecutePowerMethods); for (i = 0; i < MethodCount; i++) { /* * Execute the power method (_SxD or _SxW). The only allowable * return type is an Integer. */ Status = AcpiUtEvaluateObject (DeviceNode, ACPI_CAST_PTR (char, MethodNames[i]), ACPI_BTYPE_INTEGER, &ObjDesc); if (ACPI_SUCCESS (Status)) { OutValues[i] = (UINT8) ObjDesc->Integer.Value; /* Delete the return object */ AcpiUtRemoveReference (ObjDesc); FinalStatus = AE_OK; /* At least one value is valid */ continue; } OutValues[i] = ACPI_UINT8_MAX; if (Status == AE_NOT_FOUND) { continue; /* Ignore if not found */ } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Failed %s on Device %4.4s, %s\n", ACPI_CAST_PTR (char, MethodNames[i]), AcpiUtGetNodeName (DeviceNode), AcpiFormatException (Status))); } return_ACPI_STATUS (FinalStatus); } acpica-unix-20250404/source/components/utilities/uterror.c0000775000175000017500000003066114773714133023116 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: uterror - Various internal error/warning output functions * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("uterror") /* * This module contains internal error functions that may * be configured out. */ #if !defined (ACPI_NO_ERROR_MESSAGES) /******************************************************************************* * * FUNCTION: AcpiUtPredefinedWarning * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * Pathname - Full pathname to the node * NodeFlags - From Namespace node for the method/object * Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: Warnings for the predefined validation module. Messages are * only emitted the first time a problem with a particular * method/object is detected. This prevents a flood of error * messages for methods that are repeatedly evaluated. * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedWarning ( const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT16 NodeFlags, const char *Format, ...) { va_list ArgList; /* * Warning messages for this method/object will be disabled after the * first time a validation fails or an object is successfully repaired. */ if (NodeFlags & ANOBJ_EVALUATED) { return; } AcpiOsPrintf (ACPI_MSG_WARNING "%s: ", Pathname); va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); ACPI_MSG_SUFFIX; va_end (ArgList); } /******************************************************************************* * * FUNCTION: AcpiUtPredefinedInfo * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * Pathname - Full pathname to the node * NodeFlags - From Namespace node for the method/object * Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: Info messages for the predefined validation module. Messages * are only emitted the first time a problem with a particular * method/object is detected. This prevents a flood of * messages for methods that are repeatedly evaluated. * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedInfo ( const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT16 NodeFlags, const char *Format, ...) { va_list ArgList; /* * Warning messages for this method/object will be disabled after the * first time a validation fails or an object is successfully repaired. */ if (NodeFlags & ANOBJ_EVALUATED) { return; } AcpiOsPrintf (ACPI_MSG_INFO "%s: ", Pathname); va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); ACPI_MSG_SUFFIX; va_end (ArgList); } /******************************************************************************* * * FUNCTION: AcpiUtPredefinedBiosError * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * Pathname - Full pathname to the node * NodeFlags - From Namespace node for the method/object * Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: BIOS error message for predefined names. Messages * are only emitted the first time a problem with a particular * method/object is detected. This prevents a flood of * messages for methods that are repeatedly evaluated. * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiUtPredefinedBiosError ( const char *ModuleName, UINT32 LineNumber, char *Pathname, UINT16 NodeFlags, const char *Format, ...) { va_list ArgList; /* * Warning messages for this method/object will be disabled after the * first time a validation fails or an object is successfully repaired. */ if (NodeFlags & ANOBJ_EVALUATED) { return; } AcpiOsPrintf (ACPI_MSG_BIOS_ERROR "%s: ", Pathname); va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); ACPI_MSG_SUFFIX; va_end (ArgList); } /******************************************************************************* * * FUNCTION: AcpiUtPrefixedNamespaceError * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * PrefixScope - Scope/Path that prefixes the internal path * InternalPath - Name or path of the namespace node * LookupStatus - Exception code from NS lookup * * RETURN: None * * DESCRIPTION: Print error message with the full pathname constructed this way: * * PrefixScopeNodeFullPath.ExternalizedInternalPath * * NOTE: 10/2017: Treat the major NsLookup errors as firmware errors * ******************************************************************************/ void AcpiUtPrefixedNamespaceError ( const char *ModuleName, UINT32 LineNumber, ACPI_GENERIC_STATE *PrefixScope, const char *InternalPath, ACPI_STATUS LookupStatus) { char *FullPath; const char *Message; /* * Main cases: * 1) Object creation, object must not already exist * 2) Object lookup, object must exist */ switch (LookupStatus) { case AE_ALREADY_EXISTS: AcpiOsPrintf (ACPI_MSG_BIOS_ERROR); Message = "Failure creating named object"; break; case AE_NOT_FOUND: AcpiOsPrintf (ACPI_MSG_BIOS_ERROR); Message = "Could not resolve symbol"; break; default: AcpiOsPrintf (ACPI_MSG_ERROR); Message = "Failure resolving symbol"; break; } /* Concatenate the prefix path and the internal path */ FullPath = AcpiNsBuildPrefixedPathname (PrefixScope, InternalPath); AcpiOsPrintf ("%s [%s], %s", Message, FullPath ? FullPath : "Could not get pathname", AcpiFormatException (LookupStatus)); if (FullPath) { ACPI_FREE (FullPath); } ACPI_MSG_SUFFIX; } #ifdef __OBSOLETE_FUNCTION /******************************************************************************* * * FUNCTION: AcpiUtNamespaceError * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * InternalName - Name or path of the namespace node * LookupStatus - Exception code from NS lookup * * RETURN: None * * DESCRIPTION: Print error message with the full pathname for the NS node. * ******************************************************************************/ void AcpiUtNamespaceError ( const char *ModuleName, UINT32 LineNumber, const char *InternalName, ACPI_STATUS LookupStatus) { ACPI_STATUS Status; UINT32 BadName; char *Name = NULL; ACPI_MSG_REDIRECT_BEGIN; AcpiOsPrintf (ACPI_MSG_ERROR); if (LookupStatus == AE_BAD_CHARACTER) { /* There is a non-ascii character in the name */ ACPI_MOVE_32_TO_32 (&BadName, ACPI_CAST_PTR (UINT32, InternalName)); AcpiOsPrintf ("[0x%.8X] (NON-ASCII)", BadName); } else { /* Convert path to external format */ Status = AcpiNsExternalizeName ( ACPI_UINT32_MAX, InternalName, NULL, &Name); /* Print target name */ if (ACPI_SUCCESS (Status)) { AcpiOsPrintf ("[%s]", Name); } else { AcpiOsPrintf ("[COULD NOT EXTERNALIZE NAME]"); } if (Name) { ACPI_FREE (Name); } } AcpiOsPrintf (" Namespace lookup failure, %s", AcpiFormatException (LookupStatus)); ACPI_MSG_SUFFIX; ACPI_MSG_REDIRECT_END; } #endif /******************************************************************************* * * FUNCTION: AcpiUtMethodError * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * Message - Error message to use on failure * PrefixNode - Prefix relative to the path * Path - Path to the node (optional) * MethodStatus - Execution status * * RETURN: None * * DESCRIPTION: Print error message with the full pathname for the method. * ******************************************************************************/ void AcpiUtMethodError ( const char *ModuleName, UINT32 LineNumber, const char *Message, ACPI_NAMESPACE_NODE *PrefixNode, const char *Path, ACPI_STATUS MethodStatus) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node = PrefixNode; ACPI_MSG_REDIRECT_BEGIN; AcpiOsPrintf (ACPI_MSG_ERROR); if (Path) { Status = AcpiNsGetNode (PrefixNode, Path, ACPI_NS_NO_UPSEARCH, &Node); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("[Could not get node by pathname]"); } } AcpiNsPrintNodePathname (Node, Message); AcpiOsPrintf (" due to previous error (%s)", AcpiFormatException (MethodStatus)); ACPI_MSG_SUFFIX; ACPI_MSG_REDIRECT_END; } #endif /* ACPI_NO_ERROR_MESSAGES */ acpica-unix-20250404/source/components/utilities/utprint.c0000775000175000017500000005513314773714133023122 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utprint - Formatted printing routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utprint") #define ACPI_FORMAT_SIGN 0x01 #define ACPI_FORMAT_SIGN_PLUS 0x02 #define ACPI_FORMAT_SIGN_PLUS_SPACE 0x04 #define ACPI_FORMAT_ZERO 0x08 #define ACPI_FORMAT_LEFT 0x10 #define ACPI_FORMAT_UPPER 0x20 #define ACPI_FORMAT_PREFIX 0x40 /* Local prototypes */ static ACPI_SIZE AcpiUtBoundStringLength ( const char *String, ACPI_SIZE Count); static char * AcpiUtBoundStringOutput ( char *String, const char *End, char c); static char * AcpiUtFormatNumber ( char *String, char *End, UINT64 Number, UINT8 Base, INT32 Width, INT32 Precision, UINT8 Type); static char * AcpiUtPutNumber ( char *String, UINT64 Number, UINT8 Base, BOOLEAN Upper); /******************************************************************************* * * FUNCTION: AcpiUtBoundStringLength * * PARAMETERS: String - String with boundary * Count - Boundary of the string * * RETURN: Length of the string. Less than or equal to Count. * * DESCRIPTION: Calculate the length of a string with boundary. * ******************************************************************************/ static ACPI_SIZE AcpiUtBoundStringLength ( const char *String, ACPI_SIZE Count) { UINT32 Length = 0; while (*String && Count) { Length++; String++; Count--; } return (Length); } /******************************************************************************* * * FUNCTION: AcpiUtBoundStringOutput * * PARAMETERS: String - String with boundary * End - Boundary of the string * c - Character to be output to the string * * RETURN: Updated position for next valid character * * DESCRIPTION: Output a character into a string with boundary check. * ******************************************************************************/ static char * AcpiUtBoundStringOutput ( char *String, const char *End, char c) { if (String < End) { *String = c; } ++String; return (String); } /******************************************************************************* * * FUNCTION: AcpiUtPutNumber * * PARAMETERS: String - Buffer to hold reverse-ordered string * Number - Integer to be converted * Base - Base of the integer * Upper - Whether or not using upper cased digits * * RETURN: Updated position for next valid character * * DESCRIPTION: Convert an integer into a string, note that, the string holds a * reversed ordered number without the trailing zero. * ******************************************************************************/ static char * AcpiUtPutNumber ( char *String, UINT64 Number, UINT8 Base, BOOLEAN Upper) { const char *Digits; UINT64 DigitIndex; char *Pos; Pos = String; Digits = Upper ? AcpiGbl_UpperHexDigits : AcpiGbl_LowerHexDigits; if (Number == 0) { *(Pos++) = '0'; } else { while (Number) { (void) AcpiUtDivide (Number, Base, &Number, &DigitIndex); *(Pos++) = Digits[DigitIndex]; } } /* *(Pos++) = '0'; */ return (Pos); } /******************************************************************************* * * FUNCTION: AcpiUtScanNumber * * PARAMETERS: String - String buffer * NumberPtr - Where the number is returned * * RETURN: Updated position for next valid character * * DESCRIPTION: Scan a string for a decimal integer. * ******************************************************************************/ const char * AcpiUtScanNumber ( const char *String, UINT64 *NumberPtr) { UINT64 Number = 0; while (isdigit ((int) *String)) { AcpiUtShortMultiply (Number, 10, &Number); Number += *(String++) - '0'; } *NumberPtr = Number; return (String); } /******************************************************************************* * * FUNCTION: AcpiUtPrintNumber * * PARAMETERS: String - String buffer * Number - The number to be converted * * RETURN: Updated position for next valid character * * DESCRIPTION: Print a decimal integer into a string. * ******************************************************************************/ const char * AcpiUtPrintNumber ( char *String, UINT64 Number) { char AsciiString[20]; const char *Pos1; char *Pos2; Pos1 = AcpiUtPutNumber (AsciiString, Number, 10, FALSE); Pos2 = String; while (Pos1 != AsciiString) { *(Pos2++) = *(--Pos1); } *Pos2 = 0; return (String); } /******************************************************************************* * * FUNCTION: AcpiUtFormatNumber * * PARAMETERS: String - String buffer with boundary * End - Boundary of the string * Number - The number to be converted * Base - Base of the integer * Width - Field width * Precision - Precision of the integer * Type - Special printing flags * * RETURN: Updated position for next valid character * * DESCRIPTION: Print an integer into a string with any base and any precision. * ******************************************************************************/ static char * AcpiUtFormatNumber ( char *String, char *End, UINT64 Number, UINT8 Base, INT32 Width, INT32 Precision, UINT8 Type) { char *Pos; char Sign; char Zero; BOOLEAN NeedPrefix; BOOLEAN Upper; INT32 i; char ReversedString[66]; /* Parameter validation */ if (Base < 2 || Base > 16) { return (NULL); } if (Type & ACPI_FORMAT_LEFT) { Type &= ~ACPI_FORMAT_ZERO; } NeedPrefix = ((Type & ACPI_FORMAT_PREFIX) && Base != 10) ? TRUE : FALSE; Upper = (Type & ACPI_FORMAT_UPPER) ? TRUE : FALSE; Zero = (Type & ACPI_FORMAT_ZERO) ? '0' : ' '; /* Calculate size according to sign and prefix */ Sign = '\0'; if (Type & ACPI_FORMAT_SIGN) { if ((INT64) Number < 0) { Sign = '-'; Number = - (INT64) Number; Width--; } else if (Type & ACPI_FORMAT_SIGN_PLUS) { Sign = '+'; Width--; } else if (Type & ACPI_FORMAT_SIGN_PLUS_SPACE) { Sign = ' '; Width--; } } if (NeedPrefix) { Width--; if (Base == 16) { Width--; } } /* Generate full string in reverse order */ Pos = AcpiUtPutNumber (ReversedString, Number, Base, Upper); i = (INT32) ACPI_PTR_DIFF (Pos, ReversedString); /* Printing 100 using %2d gives "100", not "00" */ if (i > Precision) { Precision = i; } Width -= Precision; /* Output the string */ if (!(Type & (ACPI_FORMAT_ZERO | ACPI_FORMAT_LEFT))) { while (--Width >= 0) { String = AcpiUtBoundStringOutput (String, End, ' '); } } if (Sign) { String = AcpiUtBoundStringOutput (String, End, Sign); } if (NeedPrefix) { String = AcpiUtBoundStringOutput (String, End, '0'); if (Base == 16) { String = AcpiUtBoundStringOutput ( String, End, Upper ? 'X' : 'x'); } } if (!(Type & ACPI_FORMAT_LEFT)) { while (--Width >= 0) { String = AcpiUtBoundStringOutput (String, End, Zero); } } while (i <= --Precision) { String = AcpiUtBoundStringOutput (String, End, '0'); } while (--i >= 0) { String = AcpiUtBoundStringOutput (String, End, ReversedString[i]); } while (--Width >= 0) { String = AcpiUtBoundStringOutput (String, End, ' '); } return (String); } /******************************************************************************* * * FUNCTION: vsnprintf * * PARAMETERS: String - String with boundary * Size - Boundary of the string * Format - Standard printf format * Args - Argument list * * RETURN: Number of bytes actually written. * * DESCRIPTION: Formatted output to a string using argument list pointer. * ******************************************************************************/ int vsnprintf ( char *String, ACPI_SIZE Size, const char *Format, va_list Args) { UINT8 Base; UINT8 Type; INT32 Width; INT32 Precision; char Qualifier; UINT64 Number; char *Pos; char *End; char c; const char *s; const void *p; INT32 Length; int i; Pos = String; Size = ACPI_MIN(Size, ACPI_PTR_DIFF(ACPI_MAX_PTR, String)); End = String + Size; for (; *Format; ++Format) { if (*Format != '%') { Pos = AcpiUtBoundStringOutput (Pos, End, *Format); continue; } Type = 0; Base = 10; /* Process sign */ do { ++Format; if (*Format == '#') { Type |= ACPI_FORMAT_PREFIX; } else if (*Format == '0') { Type |= ACPI_FORMAT_ZERO; } else if (*Format == '+') { Type |= ACPI_FORMAT_SIGN_PLUS; } else if (*Format == ' ') { Type |= ACPI_FORMAT_SIGN_PLUS_SPACE; } else if (*Format == '-') { Type |= ACPI_FORMAT_LEFT; } else { break; } } while (1); /* Process width */ Width = -1; if (isdigit ((int) *Format)) { Format = AcpiUtScanNumber (Format, &Number); Width = (INT32) Number; } else if (*Format == '*') { ++Format; Width = va_arg (Args, int); if (Width < 0) { Width = -Width; Type |= ACPI_FORMAT_LEFT; } } /* Process precision */ Precision = -1; if (*Format == '.') { ++Format; if (isdigit ((int) *Format)) { Format = AcpiUtScanNumber (Format, &Number); Precision = (INT32) Number; } else if (*Format == '*') { ++Format; Precision = va_arg (Args, int); } if (Precision < 0) { Precision = 0; } } /* Process qualifier */ Qualifier = -1; if (*Format == 'h' || *Format == 'l' || *Format == 'L') { Qualifier = *Format; ++Format; if (Qualifier == 'l' && *Format == 'l') { Qualifier = 'L'; ++Format; } } switch (*Format) { case '%': Pos = AcpiUtBoundStringOutput (Pos, End, '%'); continue; case 'c': if (!(Type & ACPI_FORMAT_LEFT)) { while (--Width > 0) { Pos = AcpiUtBoundStringOutput (Pos, End, ' '); } } c = (char) va_arg (Args, int); Pos = AcpiUtBoundStringOutput (Pos, End, c); while (--Width > 0) { Pos = AcpiUtBoundStringOutput (Pos, End, ' '); } continue; case 's': s = va_arg (Args, char *); if (!s) { s = ""; } Length = (INT32) AcpiUtBoundStringLength (s, Precision); if (!(Type & ACPI_FORMAT_LEFT)) { while (Length < Width--) { Pos = AcpiUtBoundStringOutput (Pos, End, ' '); } } for (i = 0; i < Length; ++i) { Pos = AcpiUtBoundStringOutput (Pos, End, *s); ++s; } while (Length < Width--) { Pos = AcpiUtBoundStringOutput (Pos, End, ' '); } continue; case 'o': Base = 8; break; case 'X': Type |= ACPI_FORMAT_UPPER; ACPI_FALLTHROUGH; case 'x': Base = 16; break; case 'd': case 'i': Type |= ACPI_FORMAT_SIGN; case 'u': break; case 'p': if (Width == -1) { Width = 2 * sizeof (void *); Type |= ACPI_FORMAT_ZERO; } p = va_arg (Args, void *); Pos = AcpiUtFormatNumber ( Pos, End, ACPI_TO_INTEGER (p), 16, Width, Precision, Type); continue; default: Pos = AcpiUtBoundStringOutput (Pos, End, '%'); if (*Format) { Pos = AcpiUtBoundStringOutput (Pos, End, *Format); } else { --Format; } continue; } if (Qualifier == 'L') { Number = va_arg (Args, UINT64); if (Type & ACPI_FORMAT_SIGN) { Number = (INT64) Number; } } else if (Qualifier == 'l') { Number = va_arg (Args, unsigned long); if (Type & ACPI_FORMAT_SIGN) { Number = (INT32) Number; } } else if (Qualifier == 'h') { Number = (UINT16) va_arg (Args, int); if (Type & ACPI_FORMAT_SIGN) { Number = (INT16) Number; } } else { Number = va_arg (Args, unsigned int); if (Type & ACPI_FORMAT_SIGN) { Number = (signed int) Number; } } Pos = AcpiUtFormatNumber (Pos, End, Number, Base, Width, Precision, Type); } if (Size > 0) { if (Pos < End) { *Pos = '\0'; } else { End[-1] = '\0'; } } return ((int) ACPI_PTR_DIFF (Pos, String)); } /******************************************************************************* * * FUNCTION: snprintf * * PARAMETERS: String - String with boundary * Size - Boundary of the string * Format, ... - Standard printf format * * RETURN: Number of bytes actually written. * * DESCRIPTION: Formatted output to a string. * ******************************************************************************/ int snprintf ( char *String, ACPI_SIZE Size, const char *Format, ...) { va_list Args; int Length; va_start (Args, Format); Length = vsnprintf (String, Size, Format, Args); va_end (Args); return (Length); } /******************************************************************************* * * FUNCTION: sprintf * * PARAMETERS: String - String with boundary * Format, ... - Standard printf format * * RETURN: Number of bytes actually written. * * DESCRIPTION: Formatted output to a string. * ******************************************************************************/ int sprintf ( char *String, const char *Format, ...) { va_list Args; int Length; va_start (Args, Format); Length = vsnprintf (String, ACPI_UINT32_MAX, Format, Args); va_end (Args); return (Length); } #ifdef ACPI_APPLICATION /******************************************************************************* * * FUNCTION: vprintf * * PARAMETERS: Format - Standard printf format * Args - Argument list * * RETURN: Number of bytes actually written. * * DESCRIPTION: Formatted output to stdout using argument list pointer. * ******************************************************************************/ int vprintf ( const char *Format, va_list Args) { ACPI_CPU_FLAGS Flags; int Length; Flags = AcpiOsAcquireLock (AcpiGbl_PrintLock); Length = vsnprintf (AcpiGbl_PrintBuffer, sizeof (AcpiGbl_PrintBuffer), Format, Args); (void) fwrite (AcpiGbl_PrintBuffer, Length, 1, ACPI_FILE_OUT); AcpiOsReleaseLock (AcpiGbl_PrintLock, Flags); return (Length); } /******************************************************************************* * * FUNCTION: printf * * PARAMETERS: Format, ... - Standard printf format * * RETURN: Number of bytes actually written. * * DESCRIPTION: Formatted output to stdout. * ******************************************************************************/ int printf ( const char *Format, ...) { va_list Args; int Length; va_start (Args, Format); Length = vprintf (Format, Args); va_end (Args); return (Length); } /******************************************************************************* * * FUNCTION: vfprintf * * PARAMETERS: File - File descriptor * Format - Standard printf format * Args - Argument list * * RETURN: Number of bytes actually written. * * DESCRIPTION: Formatted output to a file using argument list pointer. * ******************************************************************************/ int vfprintf ( FILE *File, const char *Format, va_list Args) { ACPI_CPU_FLAGS Flags; int Length; Flags = AcpiOsAcquireLock (AcpiGbl_PrintLock); Length = vsnprintf (AcpiGbl_PrintBuffer, sizeof (AcpiGbl_PrintBuffer), Format, Args); (void) fwrite (AcpiGbl_PrintBuffer, Length, 1, File); AcpiOsReleaseLock (AcpiGbl_PrintLock, Flags); return (Length); } /******************************************************************************* * * FUNCTION: fprintf * * PARAMETERS: File - File descriptor * Format, ... - Standard printf format * * RETURN: Number of bytes actually written. * * DESCRIPTION: Formatted output to a file. * ******************************************************************************/ int fprintf ( FILE *File, const char *Format, ...) { va_list Args; int Length; va_start (Args, Format); Length = vfprintf (File, Format, Args); va_end (Args); return (Length); } #endif acpica-unix-20250404/source/components/utilities/utids.c0000775000175000017500000003334114773714133022542 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utids - support for device IDs - HID, UID, CID, SUB, CLS * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utids") /******************************************************************************* * * FUNCTION: AcpiUtExecute_HID * * PARAMETERS: DeviceNode - Node for the device * ReturnId - Where the string HID is returned * * RETURN: Status * * DESCRIPTION: Executes the _HID control method that returns the hardware * ID of the device. The HID is either an 32-bit encoded EISAID * Integer or a String. A string is always returned. An EISAID * is converted to a string. * * NOTE: Internal function, no parameter validation * ******************************************************************************/ ACPI_STATUS AcpiUtExecute_HID ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID **ReturnId) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_PNP_DEVICE_ID *Hid; UINT32 Length; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (UtExecute_HID); Status = AcpiUtEvaluateObject (DeviceNode, METHOD_NAME__HID, ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Get the size of the String to be returned, includes null terminator */ if (ObjDesc->Common.Type == ACPI_TYPE_INTEGER) { Length = ACPI_EISAID_STRING_SIZE; } else { Length = ObjDesc->String.Length + 1; } /* Allocate a buffer for the HID */ Hid = ACPI_ALLOCATE_ZEROED ( sizeof (ACPI_PNP_DEVICE_ID) + (ACPI_SIZE) Length); if (!Hid) { Status = AE_NO_MEMORY; goto Cleanup; } /* Area for the string starts after PNP_DEVICE_ID struct */ Hid->String = ACPI_ADD_PTR (char, Hid, sizeof (ACPI_PNP_DEVICE_ID)); /* Convert EISAID to a string or simply copy existing string */ if (ObjDesc->Common.Type == ACPI_TYPE_INTEGER) { AcpiExEisaIdToString (Hid->String, ObjDesc->Integer.Value); } else { strcpy (Hid->String, ObjDesc->String.Pointer); } Hid->Length = Length; *ReturnId = Hid; Cleanup: /* On exit, we must delete the return object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtExecute_UID * * PARAMETERS: DeviceNode - Node for the device * ReturnId - Where the string UID is returned * * RETURN: Status * * DESCRIPTION: Executes the _UID control method that returns the unique * ID of the device. The UID is either a 64-bit Integer (NOT an * EISAID) or a string. Always returns a string. A 64-bit integer * is converted to a decimal string. * * NOTE: Internal function, no parameter validation * ******************************************************************************/ ACPI_STATUS AcpiUtExecute_UID ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID **ReturnId) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_PNP_DEVICE_ID *Uid; UINT32 Length; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (UtExecute_UID); Status = AcpiUtEvaluateObject (DeviceNode, METHOD_NAME__UID, ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Get the size of the String to be returned, includes null terminator */ if (ObjDesc->Common.Type == ACPI_TYPE_INTEGER) { Length = ACPI_MAX64_DECIMAL_DIGITS + 1; } else { Length = ObjDesc->String.Length + 1; } /* Allocate a buffer for the UID */ Uid = ACPI_ALLOCATE_ZEROED ( sizeof (ACPI_PNP_DEVICE_ID) + (ACPI_SIZE) Length); if (!Uid) { Status = AE_NO_MEMORY; goto Cleanup; } /* Area for the string starts after PNP_DEVICE_ID struct */ Uid->String = ACPI_ADD_PTR (char, Uid, sizeof (ACPI_PNP_DEVICE_ID)); /* Convert an Integer to string, or just copy an existing string */ if (ObjDesc->Common.Type == ACPI_TYPE_INTEGER) { AcpiExIntegerToString (Uid->String, ObjDesc->Integer.Value); } else { strcpy (Uid->String, ObjDesc->String.Pointer); } Uid->Length = Length; *ReturnId = Uid; Cleanup: /* On exit, we must delete the return object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtExecute_CID * * PARAMETERS: DeviceNode - Node for the device * ReturnCidList - Where the CID list is returned * * RETURN: Status, list of CID strings * * DESCRIPTION: Executes the _CID control method that returns one or more * compatible hardware IDs for the device. * * NOTE: Internal function, no parameter validation * * A _CID method can return either a single compatible ID or a package of * compatible IDs. Each compatible ID can be one of the following: * 1) Integer (32 bit compressed EISA ID) or * 2) String (PCI ID format, e.g. "PCI\VEN_vvvv&DEV_dddd&SUBSYS_ssssssss") * * The Integer CIDs are converted to string format by this function. * ******************************************************************************/ ACPI_STATUS AcpiUtExecute_CID ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID_LIST **ReturnCidList) { ACPI_OPERAND_OBJECT **CidObjects; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_PNP_DEVICE_ID_LIST *CidList; char *NextIdString; UINT32 StringAreaSize; UINT32 Length; UINT32 CidListSize; ACPI_STATUS Status; UINT32 Count; UINT32 i; ACPI_FUNCTION_TRACE (UtExecute_CID); /* Evaluate the _CID method for this device */ Status = AcpiUtEvaluateObject (DeviceNode, METHOD_NAME__CID, ACPI_BTYPE_INTEGER | ACPI_BTYPE_STRING | ACPI_BTYPE_PACKAGE, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Get the count and size of the returned _CIDs. _CID can return either * a Package of Integers/Strings or a single Integer or String. * Note: This section also validates that all CID elements are of the * correct type (Integer or String). */ if (ObjDesc->Common.Type == ACPI_TYPE_PACKAGE) { Count = ObjDesc->Package.Count; CidObjects = ObjDesc->Package.Elements; } else /* Single Integer or String CID */ { Count = 1; CidObjects = &ObjDesc; } StringAreaSize = 0; for (i = 0; i < Count; i++) { /* String lengths include null terminator */ switch (CidObjects[i]->Common.Type) { case ACPI_TYPE_INTEGER: StringAreaSize += ACPI_EISAID_STRING_SIZE; break; case ACPI_TYPE_STRING: StringAreaSize += CidObjects[i]->String.Length + 1; break; default: Status = AE_TYPE; goto Cleanup; } } /* * Now that we know the length of the CIDs, allocate return buffer: * 1) Size of the base structure + * 2) Size of the CID PNP_DEVICE_ID array + * 3) Size of the actual CID strings */ CidListSize = sizeof (ACPI_PNP_DEVICE_ID_LIST) + (Count * sizeof (ACPI_PNP_DEVICE_ID)) + StringAreaSize; CidList = ACPI_ALLOCATE_ZEROED (CidListSize); if (!CidList) { Status = AE_NO_MEMORY; goto Cleanup; } /* Area for CID strings starts after the CID PNP_DEVICE_ID array */ NextIdString = ACPI_CAST_PTR (char, CidList->Ids) + ((ACPI_SIZE) Count * sizeof (ACPI_PNP_DEVICE_ID)); /* Copy/convert the CIDs to the return buffer */ for (i = 0; i < Count; i++) { if (CidObjects[i]->Common.Type == ACPI_TYPE_INTEGER) { /* Convert the Integer (EISAID) CID to a string */ AcpiExEisaIdToString ( NextIdString, CidObjects[i]->Integer.Value); Length = ACPI_EISAID_STRING_SIZE; } else /* ACPI_TYPE_STRING */ { /* Copy the String CID from the returned object */ strcpy (NextIdString, CidObjects[i]->String.Pointer); Length = CidObjects[i]->String.Length + 1; } CidList->Ids[i].String = NextIdString; CidList->Ids[i].Length = Length; NextIdString += Length; } /* Finish the CID list */ CidList->Count = Count; CidList->ListSize = CidListSize; *ReturnCidList = CidList; Cleanup: /* On exit, we must delete the _CID return object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtExecute_CLS * * PARAMETERS: DeviceNode - Node for the device * ReturnId - Where the _CLS is returned * * RETURN: Status * * DESCRIPTION: Executes the _CLS control method that returns PCI-defined * class code of the device. The _CLS value is always a package * containing PCI class information as a list of integers. * The returned string has format "BBSSPP", where: * BB = Base-class code * SS = Sub-class code * PP = Programming Interface code * ******************************************************************************/ ACPI_STATUS AcpiUtExecute_CLS ( ACPI_NAMESPACE_NODE *DeviceNode, ACPI_PNP_DEVICE_ID **ReturnId) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT **ClsObjects; UINT32 Count; ACPI_PNP_DEVICE_ID *Cls; UINT32 Length; ACPI_STATUS Status; UINT8 ClassCode[3] = {0, 0, 0}; ACPI_FUNCTION_TRACE (UtExecute_CLS); Status = AcpiUtEvaluateObject (DeviceNode, METHOD_NAME__CLS, ACPI_BTYPE_PACKAGE, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Get the size of the String to be returned, includes null terminator */ Length = ACPI_PCICLS_STRING_SIZE; ClsObjects = ObjDesc->Package.Elements; Count = ObjDesc->Package.Count; if (ObjDesc->Common.Type == ACPI_TYPE_PACKAGE) { if (Count > 0 && ClsObjects[0]->Common.Type == ACPI_TYPE_INTEGER) { ClassCode[0] = (UINT8) ClsObjects[0]->Integer.Value; } if (Count > 1 && ClsObjects[1]->Common.Type == ACPI_TYPE_INTEGER) { ClassCode[1] = (UINT8) ClsObjects[1]->Integer.Value; } if (Count > 2 && ClsObjects[2]->Common.Type == ACPI_TYPE_INTEGER) { ClassCode[2] = (UINT8) ClsObjects[2]->Integer.Value; } } /* Allocate a buffer for the CLS */ Cls = ACPI_ALLOCATE_ZEROED ( sizeof (ACPI_PNP_DEVICE_ID) + (ACPI_SIZE) Length); if (!Cls) { Status = AE_NO_MEMORY; goto Cleanup; } /* Area for the string starts after PNP_DEVICE_ID struct */ Cls->String = ACPI_ADD_PTR (char, Cls, sizeof (ACPI_PNP_DEVICE_ID)); /* Simply copy existing string */ AcpiExPciClsToString (Cls->String, ClassCode); Cls->Length = Length; *ReturnId = Cls; Cleanup: /* On exit, we must delete the return object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/utilities/uttrack.c0000775000175000017500000005521114773714133023067 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: uttrack - Memory allocation tracking routines (debug only) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * These procedures are used for tracking memory leaks in the subsystem, and * they get compiled out when the ACPI_DBG_TRACK_ALLOCATIONS is not set. * * Each memory allocation is tracked via a doubly linked list. Each * element contains the caller's component, module name, function name, and * line number. AcpiUtAllocate and AcpiUtAllocateZeroed call * AcpiUtTrackAllocation to add an element to the list; deletion * occurs in the body of AcpiUtFree. */ #include "acpi.h" #include "accommon.h" #ifdef ACPI_DBG_TRACK_ALLOCATIONS #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("uttrack") /* Local prototypes */ static ACPI_DEBUG_MEM_BLOCK * AcpiUtFindAllocation ( ACPI_DEBUG_MEM_BLOCK *Allocation); static ACPI_STATUS AcpiUtTrackAllocation ( ACPI_DEBUG_MEM_BLOCK *Address, ACPI_SIZE Size, UINT8 AllocType, UINT32 Component, const char *Module, UINT32 Line); static ACPI_STATUS AcpiUtRemoveAllocation ( ACPI_DEBUG_MEM_BLOCK *Address, UINT32 Component, const char *Module, UINT32 Line); /******************************************************************************* * * FUNCTION: AcpiUtCreateList * * PARAMETERS: CacheName - Ascii name for the cache * ObjectSize - Size of each cached object * ReturnCache - Where the new cache object is returned * * RETURN: Status * * DESCRIPTION: Create a local memory list for tracking purposed * ******************************************************************************/ ACPI_STATUS AcpiUtCreateList ( const char *ListName, UINT16 ObjectSize, ACPI_MEMORY_LIST **ReturnCache) { ACPI_MEMORY_LIST *Cache; Cache = AcpiOsAllocateZeroed (sizeof (ACPI_MEMORY_LIST)); if (!Cache) { return (AE_NO_MEMORY); } Cache->ListName = ListName; Cache->ObjectSize = ObjectSize; *ReturnCache = Cache; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtAllocateAndTrack * * PARAMETERS: Size - Size of the allocation * Component - Component type of caller * Module - Source file name of caller * Line - Line number of caller * * RETURN: Address of the allocated memory on success, NULL on failure. * * DESCRIPTION: The subsystem's equivalent of malloc. * ******************************************************************************/ void * AcpiUtAllocateAndTrack ( ACPI_SIZE Size, UINT32 Component, const char *Module, UINT32 Line) { ACPI_DEBUG_MEM_BLOCK *Allocation; ACPI_STATUS Status; /* Check for an inadvertent size of zero bytes */ if (!Size) { ACPI_WARNING ((Module, Line, "Attempt to allocate zero bytes, allocating 1 byte")); Size = 1; } Allocation = AcpiOsAllocate (Size + sizeof (ACPI_DEBUG_MEM_HEADER)); if (!Allocation) { /* Report allocation error */ ACPI_WARNING ((Module, Line, "Could not allocate size %u", (UINT32) Size)); return (NULL); } Status = AcpiUtTrackAllocation ( Allocation, Size, ACPI_MEM_MALLOC, Component, Module, Line); if (ACPI_FAILURE (Status)) { AcpiOsFree (Allocation); return (NULL); } AcpiGbl_GlobalList->TotalAllocated++; AcpiGbl_GlobalList->TotalSize += (UINT32) Size; AcpiGbl_GlobalList->CurrentTotalSize += (UINT32) Size; if (AcpiGbl_GlobalList->CurrentTotalSize > AcpiGbl_GlobalList->MaxOccupied) { AcpiGbl_GlobalList->MaxOccupied = AcpiGbl_GlobalList->CurrentTotalSize; } return ((void *) &Allocation->UserSpace); } /******************************************************************************* * * FUNCTION: AcpiUtAllocateZeroedAndTrack * * PARAMETERS: Size - Size of the allocation * Component - Component type of caller * Module - Source file name of caller * Line - Line number of caller * * RETURN: Address of the allocated memory on success, NULL on failure. * * DESCRIPTION: Subsystem equivalent of calloc. * ******************************************************************************/ void * AcpiUtAllocateZeroedAndTrack ( ACPI_SIZE Size, UINT32 Component, const char *Module, UINT32 Line) { ACPI_DEBUG_MEM_BLOCK *Allocation; ACPI_STATUS Status; /* Check for an inadvertent size of zero bytes */ if (!Size) { ACPI_WARNING ((Module, Line, "Attempt to allocate zero bytes, allocating 1 byte")); Size = 1; } Allocation = AcpiOsAllocateZeroed ( Size + sizeof (ACPI_DEBUG_MEM_HEADER)); if (!Allocation) { /* Report allocation error */ ACPI_ERROR ((Module, Line, "Could not allocate size %u", (UINT32) Size)); return (NULL); } Status = AcpiUtTrackAllocation (Allocation, Size, ACPI_MEM_CALLOC, Component, Module, Line); if (ACPI_FAILURE (Status)) { AcpiOsFree (Allocation); return (NULL); } AcpiGbl_GlobalList->TotalAllocated++; AcpiGbl_GlobalList->TotalSize += (UINT32) Size; AcpiGbl_GlobalList->CurrentTotalSize += (UINT32) Size; if (AcpiGbl_GlobalList->CurrentTotalSize > AcpiGbl_GlobalList->MaxOccupied) { AcpiGbl_GlobalList->MaxOccupied = AcpiGbl_GlobalList->CurrentTotalSize; } return ((void *) &Allocation->UserSpace); } /******************************************************************************* * * FUNCTION: AcpiUtFreeAndTrack * * PARAMETERS: Allocation - Address of the memory to deallocate * Component - Component type of caller * Module - Source file name of caller * Line - Line number of caller * * RETURN: None * * DESCRIPTION: Frees the memory at Allocation * ******************************************************************************/ void AcpiUtFreeAndTrack ( void *Allocation, UINT32 Component, const char *Module, UINT32 Line) { ACPI_DEBUG_MEM_BLOCK *DebugBlock; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (UtFree, Allocation); if (NULL == Allocation) { ACPI_ERROR ((Module, Line, "Attempt to delete a NULL address")); return_VOID; } DebugBlock = ACPI_CAST_PTR (ACPI_DEBUG_MEM_BLOCK, (((char *) Allocation) - sizeof (ACPI_DEBUG_MEM_HEADER))); AcpiGbl_GlobalList->TotalFreed++; AcpiGbl_GlobalList->CurrentTotalSize -= DebugBlock->Size; Status = AcpiUtRemoveAllocation (DebugBlock, Component, Module, Line); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not free memory")); } AcpiOsFree (DebugBlock); ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "%p freed (block %p)\n", Allocation, DebugBlock)); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiUtFindAllocation * * PARAMETERS: Allocation - Address of allocated memory * * RETURN: Three cases: * 1) List is empty, NULL is returned. * 2) Element was found. Returns Allocation parameter. * 3) Element was not found. Returns position where it should be * inserted into the list. * * DESCRIPTION: Searches for an element in the global allocation tracking list. * If the element is not found, returns the location within the * list where the element should be inserted. * * Note: The list is ordered by larger-to-smaller addresses. * * This global list is used to detect memory leaks in ACPICA as * well as other issues such as an attempt to release the same * internal object more than once. Although expensive as far * as cpu time, this list is much more helpful for finding these * types of issues than using memory leak detectors outside of * the ACPICA code. * ******************************************************************************/ static ACPI_DEBUG_MEM_BLOCK * AcpiUtFindAllocation ( ACPI_DEBUG_MEM_BLOCK *Allocation) { ACPI_DEBUG_MEM_BLOCK *Element; Element = AcpiGbl_GlobalList->ListHead; if (!Element) { return (NULL); } /* * Search for the address. * * Note: List is ordered by larger-to-smaller addresses, on the * assumption that a new allocation usually has a larger address * than previous allocations. */ while (Element > Allocation) { /* Check for end-of-list */ if (!Element->Next) { return (Element); } Element = Element->Next; } if (Element == Allocation) { return (Element); } return (Element->Previous); } /******************************************************************************* * * FUNCTION: AcpiUtTrackAllocation * * PARAMETERS: Allocation - Address of allocated memory * Size - Size of the allocation * AllocType - MEM_MALLOC or MEM_CALLOC * Component - Component type of caller * Module - Source file name of caller * Line - Line number of caller * * RETURN: Status * * DESCRIPTION: Inserts an element into the global allocation tracking list. * ******************************************************************************/ static ACPI_STATUS AcpiUtTrackAllocation ( ACPI_DEBUG_MEM_BLOCK *Allocation, ACPI_SIZE Size, UINT8 AllocType, UINT32 Component, const char *Module, UINT32 Line) { ACPI_MEMORY_LIST *MemList; ACPI_DEBUG_MEM_BLOCK *Element; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_PTR (UtTrackAllocation, Allocation); if (AcpiGbl_DisableMemTracking) { return_ACPI_STATUS (AE_OK); } MemList = AcpiGbl_GlobalList; Status = AcpiUtAcquireMutex (ACPI_MTX_MEMORY); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Search the global list for this address to make sure it is not * already present. This will catch several kinds of problems. */ Element = AcpiUtFindAllocation (Allocation); if (Element == Allocation) { ACPI_ERROR ((AE_INFO, "UtTrackAllocation: Allocation (%p) already present in global list!", Allocation)); goto UnlockAndExit; } /* Fill in the instance data */ Allocation->Size = (UINT32) Size; Allocation->AllocType = AllocType; Allocation->Component = Component; Allocation->Line = Line; AcpiUtSafeStrncpy (Allocation->Module, (char *) Module, ACPI_MAX_MODULE_NAME); if (!Element) { /* Insert at list head */ if (MemList->ListHead) { ((ACPI_DEBUG_MEM_BLOCK *)(MemList->ListHead))->Previous = Allocation; } Allocation->Next = MemList->ListHead; Allocation->Previous = NULL; MemList->ListHead = Allocation; } else { /* Insert after element */ Allocation->Next = Element->Next; Allocation->Previous = Element; if (Element->Next) { (Element->Next)->Previous = Allocation; } Element->Next = Allocation; } UnlockAndExit: Status = AcpiUtReleaseMutex (ACPI_MTX_MEMORY); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtRemoveAllocation * * PARAMETERS: Allocation - Address of allocated memory * Component - Component type of caller * Module - Source file name of caller * Line - Line number of caller * * RETURN: Status * * DESCRIPTION: Deletes an element from the global allocation tracking list. * ******************************************************************************/ static ACPI_STATUS AcpiUtRemoveAllocation ( ACPI_DEBUG_MEM_BLOCK *Allocation, UINT32 Component, const char *Module, UINT32 Line) { ACPI_MEMORY_LIST *MemList; ACPI_STATUS Status; ACPI_FUNCTION_NAME (UtRemoveAllocation); if (AcpiGbl_DisableMemTracking) { return (AE_OK); } MemList = AcpiGbl_GlobalList; if (NULL == MemList->ListHead) { /* No allocations! */ ACPI_ERROR ((Module, Line, "Empty allocation list, nothing to free!")); return (AE_OK); } Status = AcpiUtAcquireMutex (ACPI_MTX_MEMORY); if (ACPI_FAILURE (Status)) { return (Status); } /* Unlink */ if (Allocation->Previous) { (Allocation->Previous)->Next = Allocation->Next; } else { MemList->ListHead = Allocation->Next; } if (Allocation->Next) { (Allocation->Next)->Previous = Allocation->Previous; } ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "Freeing %p, size 0%X\n", &Allocation->UserSpace, Allocation->Size)); /* Mark the segment as deleted */ memset (&Allocation->UserSpace, 0xEA, Allocation->Size); Status = AcpiUtReleaseMutex (ACPI_MTX_MEMORY); return (Status); } /******************************************************************************* * * FUNCTION: AcpiUtDumpAllocationInfo * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Print some info about the outstanding allocations. * ******************************************************************************/ void AcpiUtDumpAllocationInfo ( void) { /* ACPI_MEMORY_LIST *MemList; */ ACPI_FUNCTION_TRACE (UtDumpAllocationInfo); /* ACPI_DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES, ("%30s: %4d (%3d Kb)\n", "Current allocations", MemList->CurrentCount, ROUND_UP_TO_1K (MemList->CurrentSize))); ACPI_DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES, ("%30s: %4d (%3d Kb)\n", "Max concurrent allocations", MemList->MaxConcurrentCount, ROUND_UP_TO_1K (MemList->MaxConcurrentSize))); ACPI_DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES, ("%30s: %4d (%3d Kb)\n", "Total (all) internal objects", RunningObjectCount, ROUND_UP_TO_1K (RunningObjectSize))); ACPI_DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES, ("%30s: %4d (%3d Kb)\n", "Total (all) allocations", RunningAllocCount, ROUND_UP_TO_1K (RunningAllocSize))); ACPI_DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES, ("%30s: %4d (%3d Kb)\n", "Current Nodes", AcpiGbl_CurrentNodeCount, ROUND_UP_TO_1K (AcpiGbl_CurrentNodeSize))); ACPI_DEBUG_PRINT (TRACE_ALLOCATIONS | TRACE_TABLES, ("%30s: %4d (%3d Kb)\n", "Max Nodes", AcpiGbl_MaxConcurrentNodeCount, ROUND_UP_TO_1K ((AcpiGbl_MaxConcurrentNodeCount * sizeof (ACPI_NAMESPACE_NODE))))); */ return_VOID; } /******************************************************************************* * * FUNCTION: AcpiUtDumpAllocations * * PARAMETERS: Component - Component(s) to dump info for. * Module - Module to dump info for. NULL means all. * * RETURN: None * * DESCRIPTION: Print a list of all outstanding allocations. * ******************************************************************************/ void AcpiUtDumpAllocations ( UINT32 Component, const char *Module) { ACPI_DEBUG_MEM_BLOCK *Element; ACPI_DESCRIPTOR *Descriptor; UINT32 NumOutstanding = 0; UINT8 DescriptorType; ACPI_FUNCTION_TRACE (UtDumpAllocations); if (AcpiGbl_DisableMemTracking) { return_VOID; } /* * Walk the allocation list. */ if (ACPI_FAILURE (AcpiUtAcquireMutex (ACPI_MTX_MEMORY))) { return_VOID; } if (!AcpiGbl_GlobalList) { goto Exit; } Element = AcpiGbl_GlobalList->ListHead; while (Element) { if ((Element->Component & Component) && ((Module == NULL) || (0 == strcmp (Module, Element->Module)))) { Descriptor = ACPI_CAST_PTR ( ACPI_DESCRIPTOR, &Element->UserSpace); if (Element->Size < sizeof (ACPI_COMMON_DESCRIPTOR)) { AcpiOsPrintf ("%p Length 0x%04X %9.9s-%4.4u " "[Not a Descriptor - too small]\n", Descriptor, Element->Size, Element->Module, Element->Line); } else { /* Ignore allocated objects that are in a cache */ if (ACPI_GET_DESCRIPTOR_TYPE (Descriptor) != ACPI_DESC_TYPE_CACHED) { AcpiOsPrintf ("%p Length 0x%04X %9.9s-%4.4u [%s] ", Descriptor, Element->Size, Element->Module, Element->Line, AcpiUtGetDescriptorName (Descriptor)); /* Optional object hex dump */ if (AcpiGbl_VerboseLeakDump) { AcpiOsPrintf ("\n"); AcpiUtDumpBuffer ((UINT8 *) Descriptor, Element->Size, DB_BYTE_DISPLAY, 0); } /* Validate the descriptor type using Type field and length */ DescriptorType = 0; /* Not a valid descriptor type */ switch (ACPI_GET_DESCRIPTOR_TYPE (Descriptor)) { case ACPI_DESC_TYPE_OPERAND: if (Element->Size == sizeof (ACPI_OPERAND_OBJECT)) { DescriptorType = ACPI_DESC_TYPE_OPERAND; } break; case ACPI_DESC_TYPE_PARSER: if (Element->Size == sizeof (ACPI_PARSE_OBJECT)) { DescriptorType = ACPI_DESC_TYPE_PARSER; } break; case ACPI_DESC_TYPE_NAMED: if (Element->Size == sizeof (ACPI_NAMESPACE_NODE)) { DescriptorType = ACPI_DESC_TYPE_NAMED; } break; default: break; } /* Display additional info for the major descriptor types */ switch (DescriptorType) { case ACPI_DESC_TYPE_OPERAND: AcpiOsPrintf ("%12.12s RefCount 0x%04X\n", AcpiUtGetTypeName (Descriptor->Object.Common.Type), Descriptor->Object.Common.ReferenceCount); break; case ACPI_DESC_TYPE_PARSER: AcpiOsPrintf ("AmlOpcode 0x%04X\n", Descriptor->Op.Asl.AmlOpcode); break; case ACPI_DESC_TYPE_NAMED: AcpiOsPrintf ("%4.4s\n", AcpiUtGetNodeName (&Descriptor->Node)); break; default: AcpiOsPrintf ( "\n"); break; } } } NumOutstanding++; } Element = Element->Next; } Exit: (void) AcpiUtReleaseMutex (ACPI_MTX_MEMORY); /* Print summary */ if (!NumOutstanding) { ACPI_INFO (("No outstanding allocations")); } else { ACPI_ERROR ((AE_INFO, "%u (0x%X) Outstanding cache allocations", NumOutstanding, NumOutstanding)); } return_VOID; } #endif /* ACPI_DBG_TRACK_ALLOCATIONS */ acpica-unix-20250404/source/components/utilities/utresdecode.c0000775000175000017500000001770114773714133023722 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utresdecode - Resource descriptor keyword strings * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acresrc.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utresdecode") #if defined (ACPI_DEBUG_OUTPUT) || \ defined (ACPI_DISASSEMBLER) || \ defined (ACPI_DEBUGGER) /* * Strings used to decode resource descriptors. * Used by both the disassembler and the debugger resource dump routines */ const char *AcpiGbl_BmDecode[] = { "NotBusMaster", "BusMaster" }; const char *AcpiGbl_ConfigDecode[] = { "0 - Good Configuration", "1 - Acceptable Configuration", "2 - Suboptimal Configuration", "3 - ***Invalid Configuration***", }; const char *AcpiGbl_ConsumeDecode[] = { "ResourceProducer", "ResourceConsumer" }; const char *AcpiGbl_DecDecode[] = { "PosDecode", "SubDecode" }; const char *AcpiGbl_HeDecode[] = { "Level", "Edge" }; const char *AcpiGbl_IoDecode[] = { "Decode10", "Decode16" }; const char *AcpiGbl_LlDecode[] = { "ActiveHigh", "ActiveLow", "ActiveBoth", "Reserved" }; const char *AcpiGbl_MaxDecode[] = { "MaxNotFixed", "MaxFixed" }; const char *AcpiGbl_MemDecode[] = { "NonCacheable", "Cacheable", "WriteCombining", "Prefetchable" }; const char *AcpiGbl_MinDecode[] = { "MinNotFixed", "MinFixed" }; const char *AcpiGbl_MtpDecode[] = { "AddressRangeMemory", "AddressRangeReserved", "AddressRangeACPI", "AddressRangeNVS" }; const char *AcpiGbl_PhyDecode[] = { "Type C", "Type D", "Unknown Type", "Unknown Type" }; const char *AcpiGbl_RngDecode[] = { "InvalidRanges", "NonISAOnlyRanges", "ISAOnlyRanges", "EntireRange" }; const char *AcpiGbl_RwDecode[] = { "ReadOnly", "ReadWrite" }; const char *AcpiGbl_ShrDecode[] = { "Exclusive", "Shared", "ExclusiveAndWake", /* ACPI 5.0 */ "SharedAndWake" /* ACPI 5.0 */ }; const char *AcpiGbl_SizDecode[] = { "Transfer8", "Transfer8_16", "Transfer16", "InvalidSize" }; const char *AcpiGbl_TrsDecode[] = { "DenseTranslation", "SparseTranslation" }; const char *AcpiGbl_TtpDecode[] = { "TypeStatic", "TypeTranslation" }; const char *AcpiGbl_TypDecode[] = { "Compatibility", "TypeA", "TypeB", "TypeF" }; const char *AcpiGbl_PpcDecode[] = { "PullDefault", "PullUp", "PullDown", "PullNone" }; const char *AcpiGbl_IorDecode[] = { "IoRestrictionNone", "IoRestrictionInputOnly", "IoRestrictionOutputOnly", "IoRestrictionNoneAndPreserve" }; const char *AcpiGbl_DtsDecode[] = { "Width8bit", "Width16bit", "Width32bit", "Width64bit", "Width128bit", "Width256bit", }; /* GPIO connection type */ const char *AcpiGbl_CtDecode[] = { "Interrupt", "I/O" }; /* Serial bus type */ const char *AcpiGbl_SbtDecode[] = { "/* UNKNOWN serial bus type */", "I2C", "SPI", "UART", "CSI2" }; /* I2C serial bus access mode */ const char *AcpiGbl_AmDecode[] = { "AddressingMode7Bit", "AddressingMode10Bit" }; /* I2C serial bus slave mode */ const char *AcpiGbl_SmDecode[] = { "ControllerInitiated", "DeviceInitiated" }; /* SPI serial bus wire mode */ const char *AcpiGbl_WmDecode[] = { "FourWireMode", "ThreeWireMode" }; /* SPI serial clock phase */ const char *AcpiGbl_CphDecode[] = { "ClockPhaseFirst", "ClockPhaseSecond" }; /* SPI serial bus clock polarity */ const char *AcpiGbl_CpoDecode[] = { "ClockPolarityLow", "ClockPolarityHigh" }; /* SPI serial bus device polarity */ const char *AcpiGbl_DpDecode[] = { "PolarityLow", "PolarityHigh" }; /* UART serial bus endian */ const char *AcpiGbl_EdDecode[] = { "LittleEndian", "BigEndian" }; /* UART serial bus bits per byte */ const char *AcpiGbl_BpbDecode[] = { "DataBitsFive", "DataBitsSix", "DataBitsSeven", "DataBitsEight", "DataBitsNine", "/* UNKNOWN Bits per byte */", "/* UNKNOWN Bits per byte */", "/* UNKNOWN Bits per byte */" }; /* UART serial bus stop bits */ const char *AcpiGbl_SbDecode[] = { "StopBitsZero", "StopBitsOne", "StopBitsOnePlusHalf", "StopBitsTwo" }; /* UART serial bus flow control */ const char *AcpiGbl_FcDecode[] = { "FlowControlNone", "FlowControlHardware", "FlowControlXON", "/* UNKNOWN flow control keyword */" }; /* UART serial bus parity type */ const char *AcpiGbl_PtDecode[] = { "ParityTypeNone", "ParityTypeEven", "ParityTypeOdd", "ParityTypeMark", "ParityTypeSpace", "/* UNKNOWN parity keyword */", "/* UNKNOWN parity keyword */", "/* UNKNOWN parity keyword */" }; /* PinConfig type */ const char *AcpiGbl_PtypDecode[] = { "Default", "Bias Pull-up", "Bias Pull-down", "Bias Default", "Bias Disable", "Bias High Impedance", "Bias Bus Hold", "Drive Open Drain", "Drive Open Source", "Drive Push Pull", "Drive Strength", "Slew Rate", "Input Debounce", "Input Schmitt Trigger", }; const char *AcpiGbl_ClockInputMode[] = { "Fixed", "Variable", }; const char *AcpiGbl_ClockInputScale[] = { "Hz", "KHz", "MHz", }; #endif acpica-unix-20250404/source/components/utilities/utxfmutex.c0000775000175000017500000001507514773714133023467 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utxfmutex - external AML mutex access functions * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utxfmutex") /* Local prototypes */ static ACPI_STATUS AcpiUtGetMutexObject ( ACPI_HANDLE Handle, ACPI_STRING Pathname, ACPI_OPERAND_OBJECT **RetObj); /******************************************************************************* * * FUNCTION: AcpiUtGetMutexObject * * PARAMETERS: Handle - Mutex or prefix handle (optional) * Pathname - Mutex pathname (optional) * RetObj - Where the mutex object is returned * * RETURN: Status * * DESCRIPTION: Get an AML mutex object. The mutex node is pointed to by * Handle:Pathname. Either Handle or Pathname can be NULL, but * not both. * ******************************************************************************/ static ACPI_STATUS AcpiUtGetMutexObject ( ACPI_HANDLE Handle, ACPI_STRING Pathname, ACPI_OPERAND_OBJECT **RetObj) { ACPI_NAMESPACE_NODE *MutexNode; ACPI_OPERAND_OBJECT *MutexObj; ACPI_STATUS Status; /* Parameter validation */ if (!RetObj || (!Handle && !Pathname)) { return (AE_BAD_PARAMETER); } /* Get a the namespace node for the mutex */ MutexNode = Handle; if (Pathname != NULL) { Status = AcpiGetHandle ( Handle, Pathname, ACPI_CAST_PTR (ACPI_HANDLE, &MutexNode)); if (ACPI_FAILURE (Status)) { return (Status); } } /* Ensure that we actually have a Mutex object */ if (!MutexNode || (MutexNode->Type != ACPI_TYPE_MUTEX)) { return (AE_TYPE); } /* Get the low-level mutex object */ MutexObj = AcpiNsGetAttachedObject (MutexNode); if (!MutexObj) { return (AE_NULL_OBJECT); } *RetObj = MutexObj; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiAcquireMutex * * PARAMETERS: Handle - Mutex or prefix handle (optional) * Pathname - Mutex pathname (optional) * Timeout - Max time to wait for the lock (millisec) * * RETURN: Status * * DESCRIPTION: Acquire an AML mutex. This is a device driver interface to * AML mutex objects, and allows for transaction locking between * drivers and AML code. The mutex node is pointed to by * Handle:Pathname. Either Handle or Pathname can be NULL, but * not both. * ******************************************************************************/ ACPI_STATUS AcpiAcquireMutex ( ACPI_HANDLE Handle, ACPI_STRING Pathname, UINT16 Timeout) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *MutexObj; /* Get the low-level mutex associated with Handle:Pathname */ Status = AcpiUtGetMutexObject (Handle, Pathname, &MutexObj); if (ACPI_FAILURE (Status)) { return (Status); } /* Acquire the OS mutex */ Status = AcpiOsAcquireMutex (MutexObj->Mutex.OsMutex, Timeout); return (Status); } ACPI_EXPORT_SYMBOL (AcpiAcquireMutex) /******************************************************************************* * * FUNCTION: AcpiReleaseMutex * * PARAMETERS: Handle - Mutex or prefix handle (optional) * Pathname - Mutex pathname (optional) * * RETURN: Status * * DESCRIPTION: Release an AML mutex. This is a device driver interface to * AML mutex objects, and allows for transaction locking between * drivers and AML code. The mutex node is pointed to by * Handle:Pathname. Either Handle or Pathname can be NULL, but * not both. * ******************************************************************************/ ACPI_STATUS AcpiReleaseMutex ( ACPI_HANDLE Handle, ACPI_STRING Pathname) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *MutexObj; /* Get the low-level mutex associated with Handle:Pathname */ Status = AcpiUtGetMutexObject (Handle, Pathname, &MutexObj); if (ACPI_FAILURE (Status)) { return (Status); } /* Release the OS mutex */ AcpiOsReleaseMutex (MutexObj->Mutex.OsMutex); return (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiReleaseMutex) acpica-unix-20250404/source/components/utilities/utaddress.c0000775000175000017500000002363114773714133023411 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utaddress - OpRegion address range check * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utaddress") /******************************************************************************* * * FUNCTION: AcpiUtAddAddressRange * * PARAMETERS: SpaceId - Address space ID * Address - OpRegion start address * Length - OpRegion length * RegionNode - OpRegion namespace node * * RETURN: Status * * DESCRIPTION: Add the Operation Region address range to the global list. * The only supported Space IDs are Memory and I/O. Called when * the OpRegion address/length operands are fully evaluated. * * MUTEX: Locks the namespace * * NOTE: Because this interface is only called when an OpRegion argument * list is evaluated, there cannot be any duplicate RegionNodes. * Duplicate Address/Length values are allowed, however, so that multiple * address conflicts can be detected. * ******************************************************************************/ ACPI_STATUS AcpiUtAddAddressRange ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_PHYSICAL_ADDRESS Address, UINT32 Length, ACPI_NAMESPACE_NODE *RegionNode) { ACPI_ADDRESS_RANGE *RangeInfo; ACPI_FUNCTION_TRACE (UtAddAddressRange); if ((SpaceId != ACPI_ADR_SPACE_SYSTEM_MEMORY) && (SpaceId != ACPI_ADR_SPACE_SYSTEM_IO)) { return_ACPI_STATUS (AE_OK); } /* Allocate/init a new info block, add it to the appropriate list */ RangeInfo = ACPI_ALLOCATE (sizeof (ACPI_ADDRESS_RANGE)); if (!RangeInfo) { return_ACPI_STATUS (AE_NO_MEMORY); } RangeInfo->StartAddress = Address; RangeInfo->EndAddress = (Address + Length - 1); RangeInfo->RegionNode = RegionNode; RangeInfo->Next = AcpiGbl_AddressRangeList[SpaceId]; AcpiGbl_AddressRangeList[SpaceId] = RangeInfo; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "\nAdded [%4.4s] address range: 0x%8.8X%8.8X-0x%8.8X%8.8X\n", AcpiUtGetNodeName (RangeInfo->RegionNode), ACPI_FORMAT_UINT64 (Address), ACPI_FORMAT_UINT64 (RangeInfo->EndAddress))); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiUtRemoveAddressRange * * PARAMETERS: SpaceId - Address space ID * RegionNode - OpRegion namespace node * * RETURN: None * * DESCRIPTION: Remove the Operation Region from the global list. The only * supported Space IDs are Memory and I/O. Called when an * OpRegion is deleted. * * MUTEX: Assumes the namespace is locked * ******************************************************************************/ void AcpiUtRemoveAddressRange ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_NAMESPACE_NODE *RegionNode) { ACPI_ADDRESS_RANGE *RangeInfo; ACPI_ADDRESS_RANGE *Prev; ACPI_FUNCTION_TRACE (UtRemoveAddressRange); if ((SpaceId != ACPI_ADR_SPACE_SYSTEM_MEMORY) && (SpaceId != ACPI_ADR_SPACE_SYSTEM_IO)) { return_VOID; } /* Get the appropriate list head and check the list */ RangeInfo = Prev = AcpiGbl_AddressRangeList[SpaceId]; while (RangeInfo) { if (RangeInfo->RegionNode == RegionNode) { if (RangeInfo == Prev) /* Found at list head */ { AcpiGbl_AddressRangeList[SpaceId] = RangeInfo->Next; } else { Prev->Next = RangeInfo->Next; } ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "\nRemoved [%4.4s] address range: 0x%8.8X%8.8X-0x%8.8X%8.8X\n", AcpiUtGetNodeName (RangeInfo->RegionNode), ACPI_FORMAT_UINT64 (RangeInfo->StartAddress), ACPI_FORMAT_UINT64 (RangeInfo->EndAddress))); ACPI_FREE (RangeInfo); return_VOID; } Prev = RangeInfo; RangeInfo = RangeInfo->Next; } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiUtCheckAddressRange * * PARAMETERS: SpaceId - Address space ID * Address - Start address * Length - Length of address range * Warn - TRUE if warning on overlap desired * * RETURN: Count of the number of conflicts detected. Zero is always * returned for Space IDs other than Memory or I/O. * * DESCRIPTION: Check if the input address range overlaps any of the * ASL operation region address ranges. The only supported * Space IDs are Memory and I/O. * * MUTEX: Assumes the namespace is locked. * ******************************************************************************/ UINT32 AcpiUtCheckAddressRange ( ACPI_ADR_SPACE_TYPE SpaceId, ACPI_PHYSICAL_ADDRESS Address, UINT32 Length, BOOLEAN Warn) { ACPI_ADDRESS_RANGE *RangeInfo; ACPI_PHYSICAL_ADDRESS EndAddress; char *Pathname; UINT32 OverlapCount = 0; ACPI_FUNCTION_TRACE (UtCheckAddressRange); if ((SpaceId != ACPI_ADR_SPACE_SYSTEM_MEMORY) && (SpaceId != ACPI_ADR_SPACE_SYSTEM_IO)) { return_UINT32 (0); } RangeInfo = AcpiGbl_AddressRangeList[SpaceId]; EndAddress = Address + Length - 1; /* Check entire list for all possible conflicts */ while (RangeInfo) { /* * Check if the requested address/length overlaps this * address range. There are four cases to consider: * * 1) Input address/length is contained completely in the * address range * 2) Input address/length overlaps range at the range start * 3) Input address/length overlaps range at the range end * 4) Input address/length completely encompasses the range */ if ((Address <= RangeInfo->EndAddress) && (EndAddress >= RangeInfo->StartAddress)) { /* Found an address range overlap */ OverlapCount++; if (Warn) /* Optional warning message */ { Pathname = AcpiNsGetNormalizedPathname (RangeInfo->RegionNode, TRUE); ACPI_WARNING ((AE_INFO, "%s range 0x%8.8X%8.8X-0x%8.8X%8.8X conflicts with OpRegion 0x%8.8X%8.8X-0x%8.8X%8.8X (%s)", AcpiUtGetRegionName (SpaceId), ACPI_FORMAT_UINT64 (Address), ACPI_FORMAT_UINT64 (EndAddress), ACPI_FORMAT_UINT64 (RangeInfo->StartAddress), ACPI_FORMAT_UINT64 (RangeInfo->EndAddress), Pathname)); ACPI_FREE (Pathname); } } RangeInfo = RangeInfo->Next; } return_UINT32 (OverlapCount); } /******************************************************************************* * * FUNCTION: AcpiUtDeleteAddressLists * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Delete all global address range lists (called during * subsystem shutdown). * ******************************************************************************/ void AcpiUtDeleteAddressLists ( void) { ACPI_ADDRESS_RANGE *Next; ACPI_ADDRESS_RANGE *RangeInfo; int i; /* Delete all elements in all address range lists */ for (i = 0; i < ACPI_ADDRESS_RANGE_MAX; i++) { Next = AcpiGbl_AddressRangeList[i]; while (Next) { RangeInfo = Next; Next = RangeInfo->Next; ACPI_FREE (RangeInfo); } AcpiGbl_AddressRangeList[i] = NULL; } } acpica-unix-20250404/source/components/utilities/utownerid.c0000775000175000017500000001743714773714133023442 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utownerid - Support for Table/Method Owner IDs * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utownerid") /******************************************************************************* * * FUNCTION: AcpiUtAllocateOwnerId * * PARAMETERS: OwnerId - Where the new owner ID is returned * * RETURN: Status * * DESCRIPTION: Allocate a table or method owner ID. The owner ID is used to * track objects created by the table or method, to be deleted * when the method exits or the table is unloaded. * ******************************************************************************/ ACPI_STATUS AcpiUtAllocateOwnerId ( ACPI_OWNER_ID *OwnerId) { UINT32 i; UINT32 j; UINT32 k; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (UtAllocateOwnerId); /* Guard against multiple allocations of ID to the same location */ if (*OwnerId) { ACPI_ERROR ((AE_INFO, "Owner ID [0x%3.3X] already exists", *OwnerId)); return_ACPI_STATUS (AE_ALREADY_EXISTS); } /* Mutex for the global ID mask */ Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Find a free owner ID, cycle through all possible IDs on repeated * allocations. (ACPI_NUM_OWNERID_MASKS + 1) because first index * may have to be scanned twice. */ for (i = 0, j = AcpiGbl_LastOwnerIdIndex; i < (ACPI_NUM_OWNERID_MASKS + 1); i++, j++) { if (j >= ACPI_NUM_OWNERID_MASKS) { j = 0; /* Wraparound to start of mask array */ } for (k = AcpiGbl_NextOwnerIdOffset; k < 32; k++) { if (AcpiGbl_OwnerIdMask[j] == ACPI_UINT32_MAX) { /* There are no free IDs in this mask */ break; } /* * Note: the UINT32 cast ensures that 1 is stored as a unsigned * integer. Omitting the cast may result in 1 being stored as an * int. Some compilers or runtime error detection may flag this as * an error. */ if (!(AcpiGbl_OwnerIdMask[j] & ((UINT32) 1 << k))) { /* * Found a free ID. The actual ID is the bit index plus one, * making zero an invalid Owner ID. Save this as the last ID * allocated and update the global ID mask. */ AcpiGbl_OwnerIdMask[j] |= ((UINT32) 1 << k); AcpiGbl_LastOwnerIdIndex = (UINT8) j; AcpiGbl_NextOwnerIdOffset = (UINT8) (k + 1); /* * Construct encoded ID from the index and bit position * * Note: Last [j].k (bit 4095) is never used and is marked * permanently allocated (prevents +1 overflow) */ *OwnerId = (ACPI_OWNER_ID) ((k + 1) + ACPI_MUL_32 (j)); ACPI_DEBUG_PRINT ((ACPI_DB_VALUES, "Allocated OwnerId: 0x%3.3X\n", (unsigned int) *OwnerId)); goto Exit; } } AcpiGbl_NextOwnerIdOffset = 0; } /* * All OwnerIds have been allocated. This typically should * not happen since the IDs are reused after deallocation. The IDs are * allocated upon table load (one per table) and method execution, and * they are released when a table is unloaded or a method completes * execution. * * If this error happens, there may be very deep nesting of invoked * control methods, or there may be a bug where the IDs are not released. */ Status = AE_OWNER_ID_LIMIT; ACPI_ERROR ((AE_INFO, "Could not allocate new OwnerId (4095 max), AE_OWNER_ID_LIMIT")); Exit: (void) AcpiUtReleaseMutex (ACPI_MTX_CACHES); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtReleaseOwnerId * * PARAMETERS: OwnerIdPtr - Pointer to a previously allocated OwnerID * * RETURN: None. No error is returned because we are either exiting a * control method or unloading a table. Either way, we would * ignore any error anyway. * * DESCRIPTION: Release a table or method owner ID. Valid IDs are 1 - 255 * ******************************************************************************/ void AcpiUtReleaseOwnerId ( ACPI_OWNER_ID *OwnerIdPtr) { ACPI_OWNER_ID OwnerId = *OwnerIdPtr; ACPI_STATUS Status; UINT32 Index; UINT32 Bit; ACPI_FUNCTION_TRACE_U32 (UtReleaseOwnerId, OwnerId); /* Always clear the input OwnerId (zero is an invalid ID) */ *OwnerIdPtr = 0; /* Zero is not a valid OwnerID */ if (OwnerId == 0) { ACPI_ERROR ((AE_INFO, "Invalid OwnerId: 0x%3.3X", OwnerId)); return_VOID; } /* Mutex for the global ID mask */ Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES); if (ACPI_FAILURE (Status)) { return_VOID; } /* Normalize the ID to zero */ OwnerId--; /* Decode ID to index/offset pair */ Index = ACPI_DIV_32 (OwnerId); Bit = (UINT32) 1 << ACPI_MOD_32 (OwnerId); /* Free the owner ID only if it is valid */ if (AcpiGbl_OwnerIdMask[Index] & Bit) { AcpiGbl_OwnerIdMask[Index] ^= Bit; } else { ACPI_ERROR ((AE_INFO, "Attempted release of non-allocated OwnerId: 0x%3.3X", OwnerId + 1)); } (void) AcpiUtReleaseMutex (ACPI_MTX_CACHES); return_VOID; } acpica-unix-20250404/source/components/utilities/utascii.c0000775000175000017500000001163614773714133023056 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utascii - Utility ascii functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" /******************************************************************************* * * FUNCTION: AcpiUtValidNameseg * * PARAMETERS: Name - The name or table signature to be examined. * Four characters, does not have to be a * NULL terminated string. * * RETURN: TRUE if signature is has 4 valid ACPI characters * * DESCRIPTION: Validate an ACPI table signature. * ******************************************************************************/ BOOLEAN AcpiUtValidNameseg ( char *Name) { UINT32 i; /* Validate each character in the signature */ for (i = 0; i < ACPI_NAMESEG_SIZE; i++) { if (!AcpiUtValidNameChar (Name[i], i)) { return (FALSE); } } return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiUtValidNameChar * * PARAMETERS: Char - The character to be examined * Position - Byte position (0-3) * * RETURN: TRUE if the character is valid, FALSE otherwise * * DESCRIPTION: Check for a valid ACPI character. Must be one of: * 1) Upper case alpha * 2) numeric * 3) underscore * * We allow a '!' as the last character because of the ASF! table * ******************************************************************************/ BOOLEAN AcpiUtValidNameChar ( char Character, UINT32 Position) { if (!((Character >= 'A' && Character <= 'Z') || (Character >= '0' && Character <= '9') || (Character == '_'))) { /* Allow a '!' in the last position */ if (Character == '!' && Position == 3) { return (TRUE); } return (FALSE); } return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiUtCheckAndRepairAscii * * PARAMETERS: Name - Ascii string * Count - Number of characters to check * * RETURN: None * * DESCRIPTION: Ensure that the requested number of characters are printable * Ascii characters. Sets non-printable and null chars to . * ******************************************************************************/ void AcpiUtCheckAndRepairAscii ( UINT8 *Name, char *RepairedName, UINT32 Count) { UINT32 i; for (i = 0; i < Count; i++) { RepairedName[i] = (char) Name[i]; if (!Name[i]) { return; } if (!isprint (Name[i])) { RepairedName[i] = ' '; } } } acpica-unix-20250404/source/components/utilities/utstrtoul64.c0000775000175000017500000003372514773714133023657 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utstrtoul64 - String-to-integer conversion support for both * 64-bit and 32-bit integers * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utstrtoul64") /******************************************************************************* * * This module contains the top-level string to 64/32-bit unsigned integer * conversion functions: * * 1) A standard strtoul() function that supports 64-bit integers, base * 8/10/16, with integer overflow support. This is used mainly by the * iASL compiler, which implements tighter constraints on integer * constants than the runtime (interpreter) integer-to-string conversions. * 2) Runtime "Explicit conversion" as defined in the ACPI specification. * 3) Runtime "Implicit conversion" as defined in the ACPI specification. * * Current users of this module: * * iASL - Preprocessor (constants and math expressions) * iASL - Main parser, conversion of constants to integers * iASL - Data Table Compiler parser (constants and math expressions) * Interpreter - Implicit and explicit conversions, GPE method names * Interpreter - Repair code for return values from predefined names * Debugger - Command line input string conversion * AcpiDump - ACPI table physical addresses * AcpiExec - Support for namespace overrides * * Notes concerning users of these interfaces: * * AcpiGbl_IntegerByteWidth is used to set the 32/64 bit limit for explicit * and implicit conversions. This global must be set to the proper width. * For the core ACPICA code, the width depends on the DSDT version. For the * AcpiUtStrtoul64 interface, all conversions are 64 bits. This interface is * used primarily for iASL, where the default width is 64 bits for all parsers, * but error checking is performed later to flag cases where a 64-bit constant * is wrongly defined in a 32-bit DSDT/SSDT. * * In ACPI, the only place where octal numbers are supported is within * the ASL language itself. This is implemented via the main AcpiUtStrtoul64 * interface. According the ACPI specification, there is no ACPI runtime * support (explicit/implicit) for octal string conversions. * ******************************************************************************/ /******************************************************************************* * * FUNCTION: AcpiUtStrtoul64 * * PARAMETERS: String - Null terminated input string, * must be a valid pointer * ReturnValue - Where the converted integer is * returned. Must be a valid pointer * * RETURN: Status and converted integer. Returns an exception on a * 64-bit numeric overflow * * DESCRIPTION: Convert a string into an unsigned integer. Always performs a * full 64-bit conversion, regardless of the current global * integer width. Supports Decimal, Hex, and Octal strings. * * Current users of this function: * * iASL - Preprocessor (constants and math expressions) * iASL - Main ASL parser, conversion of ASL constants to integers * iASL - Data Table Compiler parser (constants and math expressions) * Interpreter - Repair code for return values from predefined names * AcpiDump - ACPI table physical addresses * AcpiExec - Support for namespace overrides * ******************************************************************************/ ACPI_STATUS AcpiUtStrtoul64 ( char *String, UINT64 *ReturnValue) { ACPI_STATUS Status = AE_OK; UINT8 OriginalBitWidth; UINT32 Base = 10; /* Default is decimal */ ACPI_FUNCTION_TRACE_STR (UtStrtoul64, String); *ReturnValue = 0; /* A NULL return string returns a value of zero */ if (*String == 0) { return_ACPI_STATUS (AE_OK); } if (!AcpiUtRemoveWhitespace (&String)) { return_ACPI_STATUS (AE_OK); } /* * 1) Check for a hex constant. A "0x" prefix indicates base 16. */ if (AcpiUtDetectHexPrefix (&String)) { Base = 16; } /* * 2) Check for an octal constant, defined to be a leading zero * followed by sequence of octal digits (0-7) */ else if (AcpiUtDetectOctalPrefix (&String)) { Base = 8; } if (!AcpiUtRemoveLeadingZeros (&String)) { return_ACPI_STATUS (AE_OK); /* Return value 0 */ } /* * Force a full 64-bit conversion. The caller (usually iASL) must * check for a 32-bit overflow later as necessary (If current mode * is 32-bit, meaning a 32-bit DSDT). */ OriginalBitWidth = AcpiGbl_IntegerBitWidth; AcpiGbl_IntegerBitWidth = 64; /* * Perform the base 8, 10, or 16 conversion. A 64-bit numeric overflow * will return an exception (to allow iASL to flag the statement). */ switch (Base) { case 8: Status = AcpiUtConvertOctalString (String, ReturnValue); break; case 10: Status = AcpiUtConvertDecimalString (String, ReturnValue); break; case 16: default: Status = AcpiUtConvertHexString (String, ReturnValue); break; } /* Only possible exception from above is a 64-bit overflow */ AcpiGbl_IntegerBitWidth = OriginalBitWidth; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiUtImplicitStrtoul64 * * PARAMETERS: String - Null terminated input string, * must be a valid pointer * * RETURN: Converted integer * * DESCRIPTION: Perform a 64-bit conversion with restrictions placed upon * an "implicit conversion" by the ACPI specification. Used by * many ASL operators that require an integer operand, and support * an automatic (implicit) conversion from a string operand * to the final integer operand. The major restriction is that * only hex strings are supported. * * ----------------------------------------------------------------------------- * * Base is always 16, either with or without the 0x prefix. Decimal and * Octal strings are not supported, as per the ACPI specification. * * Examples (both are hex values): * Add ("BA98", Arg0, Local0) * Subtract ("0x12345678", Arg1, Local1) * * Conversion rules as extracted from the ACPI specification: * * The converted integer is initialized to the value zero. * The ASCII string is always interpreted as a hexadecimal constant. * * 1) According to the ACPI specification, a "0x" prefix is not allowed. * However, ACPICA allows this as an ACPI extension on general * principle. (NO ERROR) * * 2) The conversion terminates when the size of an integer is reached * (32 or 64 bits). There are no numeric overflow conditions. (NO ERROR) * * 3) The first non-hex character terminates the conversion and returns * the current accumulated value of the converted integer (NO ERROR). * * 4) Conversion of a null (zero-length) string to an integer is * technically not allowed. However, ACPICA allows this as an ACPI * extension. The conversion returns the value 0. (NO ERROR) * * NOTE: There are no error conditions returned by this function. At * the minimum, a value of zero is returned. * * Current users of this function: * * Interpreter - All runtime implicit conversions, as per ACPI specification * iASL - Data Table Compiler parser (constants and math expressions) * ******************************************************************************/ UINT64 AcpiUtImplicitStrtoul64 ( char *String) { UINT64 ConvertedInteger = 0; ACPI_FUNCTION_TRACE_STR (UtImplicitStrtoul64, String); if (!AcpiUtRemoveWhitespace (&String)) { return_VALUE (0); } /* * Per the ACPI specification, only hexadecimal is supported for * implicit conversions, and the "0x" prefix is "not allowed". * However, allow a "0x" prefix as an ACPI extension. */ AcpiUtRemoveHexPrefix (&String); if (!AcpiUtRemoveLeadingZeros (&String)) { return_VALUE (0); } /* * Ignore overflow as per the ACPI specification. This is implemented by * ignoring the return status from the conversion function called below. * On overflow, the input string is simply truncated. */ AcpiUtConvertHexString (String, &ConvertedInteger); return_VALUE (ConvertedInteger); } /******************************************************************************* * * FUNCTION: AcpiUtExplicitStrtoul64 * * PARAMETERS: String - Null terminated input string, * must be a valid pointer * * RETURN: Converted integer * * DESCRIPTION: Perform a 64-bit conversion with the restrictions placed upon * an "explicit conversion" by the ACPI specification. The * main restriction is that only hex and decimal are supported. * * ----------------------------------------------------------------------------- * * Base is either 10 (default) or 16 (with 0x prefix). Octal (base 8) strings * are not supported, as per the ACPI specification. * * Examples: * ToInteger ("1000") Decimal * ToInteger ("0xABCD") Hex * * Conversion rules as extracted from the ACPI specification: * * 1) The input string is either a decimal or hexadecimal numeric string. * A hex value must be prefixed by "0x" or it is interpreted as decimal. * * 2) The value must not exceed the maximum of an integer value * (32 or 64 bits). The ACPI specification states the behavior is * "unpredictable", so ACPICA matches the behavior of the implicit * conversion case. There are no numeric overflow conditions. (NO ERROR) * * 3) Behavior on the first non-hex character is not defined by the ACPI * specification (for the ToInteger operator), so ACPICA matches the * behavior of the implicit conversion case. It terminates the * conversion and returns the current accumulated value of the converted * integer. (NO ERROR) * * 4) Conversion of a null (zero-length) string to an integer is * technically not allowed. However, ACPICA allows this as an ACPI * extension. The conversion returns the value 0. (NO ERROR) * * NOTE: There are no error conditions returned by this function. At the * minimum, a value of zero is returned. * * Current users of this function: * * Interpreter - Runtime ASL ToInteger operator, as per the ACPI specification * ******************************************************************************/ UINT64 AcpiUtExplicitStrtoul64 ( char *String) { UINT64 ConvertedInteger = 0; UINT32 Base = 10; /* Default is decimal */ ACPI_FUNCTION_TRACE_STR (UtExplicitStrtoul64, String); if (!AcpiUtRemoveWhitespace (&String)) { return_VALUE (0); } /* * Only Hex and Decimal are supported, as per the ACPI specification. * A "0x" prefix indicates hex; otherwise decimal is assumed. */ if (AcpiUtDetectHexPrefix (&String)) { Base = 16; } if (!AcpiUtRemoveLeadingZeros (&String)) { return_VALUE (0); } /* * Ignore overflow as per the ACPI specification. This is implemented by * ignoring the return status from the conversion functions called below. * On overflow, the input string is simply truncated. */ switch (Base) { case 10: default: AcpiUtConvertDecimalString (String, &ConvertedInteger); break; case 16: AcpiUtConvertHexString (String, &ConvertedInteger); break; } return_VALUE (ConvertedInteger); } acpica-unix-20250404/source/components/utilities/utnonansi.c0000775000175000017500000001546414773714133023436 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utnonansi - Non-ansi C library functions * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utnonansi") /* * Non-ANSI C library functions - strlwr, strupr, stricmp, and "safe" * string functions. */ /******************************************************************************* * * FUNCTION: AcpiUtStrlwr (strlwr) * * PARAMETERS: SrcString - The source string to convert * * RETURN: None * * DESCRIPTION: Convert a string to lowercase * ******************************************************************************/ void AcpiUtStrlwr ( char *SrcString) { char *String; ACPI_FUNCTION_ENTRY (); if (!SrcString) { return; } /* Walk entire string, lowercasing the letters */ for (String = SrcString; *String; String++) { *String = (char) tolower ((int) *String); } } /******************************************************************************* * * FUNCTION: AcpiUtStrupr (strupr) * * PARAMETERS: SrcString - The source string to convert * * RETURN: None * * DESCRIPTION: Convert a string to uppercase * ******************************************************************************/ void AcpiUtStrupr ( char *SrcString) { char *String; ACPI_FUNCTION_ENTRY (); if (!SrcString) { return; } /* Walk entire string, uppercasing the letters */ for (String = SrcString; *String; String++) { *String = (char) toupper ((int) *String); } } /****************************************************************************** * * FUNCTION: AcpiUtStricmp (stricmp) * * PARAMETERS: String1 - first string to compare * String2 - second string to compare * * RETURN: int that signifies string relationship. Zero means strings * are equal. * * DESCRIPTION: Case-insensitive string compare. Implementation of the * non-ANSI stricmp function. * ******************************************************************************/ int AcpiUtStricmp ( char *String1, char *String2) { int c1; int c2; do { c1 = tolower ((int) *String1); c2 = tolower ((int) *String2); String1++; String2++; } while ((c1 == c2) && (c1)); return (c1 - c2); } #if defined (ACPI_DEBUGGER) || defined (ACPI_APPLICATION) || defined (ACPI_DEBUG_OUTPUT) /******************************************************************************* * * FUNCTION: AcpiUtSafeStrcpy, AcpiUtSafeStrcat, AcpiUtSafeStrncat * * PARAMETERS: Adds a "DestSize" parameter to each of the standard string * functions. This is the size of the Destination buffer. * * RETURN: TRUE if the operation would overflow the destination buffer. * * DESCRIPTION: Safe versions of standard Clib string functions. Ensure that * the result of the operation will not overflow the output string * buffer. * * NOTE: These functions are typically only helpful for processing * user input and command lines. For most ACPICA code, the * required buffer length is precisely calculated before buffer * allocation, so the use of these functions is unnecessary. * ******************************************************************************/ BOOLEAN AcpiUtSafeStrcpy ( char *Dest, ACPI_SIZE DestSize, char *Source) { if (strlen (Source) >= DestSize) { return (TRUE); } strcpy (Dest, Source); return (FALSE); } BOOLEAN AcpiUtSafeStrcat ( char *Dest, ACPI_SIZE DestSize, char *Source) { if ((strlen (Dest) + strlen (Source)) >= DestSize) { return (TRUE); } strcat (Dest, Source); return (FALSE); } BOOLEAN AcpiUtSafeStrncat ( char *Dest, ACPI_SIZE DestSize, char *Source, ACPI_SIZE MaxTransferLength) { ACPI_SIZE ActualTransferLength; ActualTransferLength = ACPI_MIN (MaxTransferLength, strlen (Source)); if ((strlen (Dest) + ActualTransferLength) >= DestSize) { return (TRUE); } strncat (Dest, Source, MaxTransferLength); return (FALSE); } void AcpiUtSafeStrncpy ( char *Dest, char *Source, ACPI_SIZE DestSize) { /* Always terminate destination string */ memcpy (Dest, Source, DestSize); Dest[DestSize - 1] = 0; } #endif acpica-unix-20250404/source/components/utilities/utpredef.c0000775000175000017500000003020214773714133023221 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utpredef - support functions for predefined names * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acpredef.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utpredef") /* * Names for the types that can be returned by the predefined objects. * Used for warning messages. Must be in the same order as the ACPI_RTYPEs */ static const char *UtRtypeNames[] = { "/Integer", "/String", "/Buffer", "/Package", "/Reference", }; /******************************************************************************* * * FUNCTION: AcpiUtGetNextPredefinedMethod * * PARAMETERS: ThisName - Entry in the predefined method/name table * * RETURN: Pointer to next entry in predefined table. * * DESCRIPTION: Get the next entry in the predefine method table. Handles the * cases where a package info entry follows a method name that * returns a package. * ******************************************************************************/ const ACPI_PREDEFINED_INFO * AcpiUtGetNextPredefinedMethod ( const ACPI_PREDEFINED_INFO *ThisName) { /* * Skip next entry in the table if this name returns a Package * (next entry contains the package info) */ if ((ThisName->Info.ExpectedBtypes & ACPI_RTYPE_PACKAGE) && (ThisName->Info.ExpectedBtypes != ACPI_RTYPE_ALL)) { ThisName++; } ThisName++; return (ThisName); } /******************************************************************************* * * FUNCTION: AcpiUtMatchPredefinedMethod * * PARAMETERS: Name - Name to find * * RETURN: Pointer to entry in predefined table. NULL indicates not found. * * DESCRIPTION: Check an object name against the predefined object list. * ******************************************************************************/ const ACPI_PREDEFINED_INFO * AcpiUtMatchPredefinedMethod ( char *Name) { const ACPI_PREDEFINED_INFO *ThisName; /* Quick check for a predefined name, first character must be underscore */ if (Name[0] != '_') { return (NULL); } /* Search info table for a predefined method/object name */ ThisName = AcpiGbl_PredefinedMethods; while (ThisName->Info.Name[0]) { if (ACPI_COMPARE_NAMESEG (Name, ThisName->Info.Name)) { return (ThisName); } ThisName = AcpiUtGetNextPredefinedMethod (ThisName); } return (NULL); /* Not found */ } /******************************************************************************* * * FUNCTION: AcpiUtGetExpectedReturnTypes * * PARAMETERS: Buffer - Where the formatted string is returned * ExpectedBTypes - Bitfield of expected data types * * RETURN: Formatted string in Buffer. * * DESCRIPTION: Format the expected object types into a printable string. * ******************************************************************************/ void AcpiUtGetExpectedReturnTypes ( char *Buffer, UINT32 ExpectedBtypes) { UINT32 ThisRtype; UINT32 i; UINT32 j; if (!ExpectedBtypes) { strcpy (Buffer, "NONE"); return; } j = 1; Buffer[0] = 0; ThisRtype = ACPI_RTYPE_INTEGER; for (i = 0; i < ACPI_NUM_RTYPES; i++) { /* If one of the expected types, concatenate the name of this type */ if (ExpectedBtypes & ThisRtype) { strcat (Buffer, &UtRtypeNames[i][j]); j = 0; /* Use name separator from now on */ } ThisRtype <<= 1; /* Next Rtype */ } } /******************************************************************************* * * The remaining functions are used by iASL and AcpiHelp only * ******************************************************************************/ #if (defined ACPI_ASL_COMPILER || defined ACPI_HELP_APP) /* Local prototypes */ static UINT32 AcpiUtGetArgumentTypes ( char *Buffer, UINT16 ArgumentTypes); /* Types that can be returned externally by a predefined name */ static const char *UtExternalTypeNames[] = /* Indexed by ACPI_TYPE_* */ { ", Type_ANY", ", Integer", ", String", ", Buffer", ", Package" }; /* Bit widths for resource descriptor predefined names */ static const char *UtResourceTypeNames[] = { "/1", "/2", "/3", "/8", "/16", "/32", "/64", "/variable", }; /******************************************************************************* * * FUNCTION: AcpiUtMatchResourceName * * PARAMETERS: Name - Name to find * * RETURN: Pointer to entry in the resource table. NULL indicates not * found. * * DESCRIPTION: Check an object name against the predefined resource * descriptor object list. * ******************************************************************************/ const ACPI_PREDEFINED_INFO * AcpiUtMatchResourceName ( char *Name) { const ACPI_PREDEFINED_INFO *ThisName; /* * Quick check for a predefined name, first character must * be underscore */ if (Name[0] != '_') { return (NULL); } /* Search info table for a predefined method/object name */ ThisName = AcpiGbl_ResourceNames; while (ThisName->Info.Name[0]) { if (ACPI_COMPARE_NAMESEG (Name, ThisName->Info.Name)) { return (ThisName); } ThisName++; } return (NULL); /* Not found */ } /******************************************************************************* * * FUNCTION: AcpiUtDisplayPredefinedMethod * * PARAMETERS: Buffer - Scratch buffer for this function * ThisName - Entry in the predefined method/name table * MultiLine - TRUE if output should be on >1 line * * RETURN: None * * DESCRIPTION: Display information about a predefined method. Number and * type of the input arguments, and expected type(s) for the * return value, if any. * ******************************************************************************/ void AcpiUtDisplayPredefinedMethod ( char *Buffer, const ACPI_PREDEFINED_INFO *ThisName, BOOLEAN MultiLine) { UINT32 ArgCount; /* * Get the argument count and the string buffer * containing all argument types */ ArgCount = AcpiUtGetArgumentTypes (Buffer, ThisName->Info.ArgumentList); if (MultiLine) { printf (" "); } printf ("%4.4s Requires %s%u argument%s", ThisName->Info.Name, (ThisName->Info.ArgumentList & ARG_COUNT_IS_MINIMUM) ? "(at least) " : "", ArgCount, ArgCount != 1 ? "s" : ""); /* Display the types for any arguments */ if (ArgCount > 0) { printf (" (%s)", Buffer); } if (MultiLine) { printf ("\n "); } /* Get the return value type(s) allowed */ if (ThisName->Info.ExpectedBtypes) { AcpiUtGetExpectedReturnTypes (Buffer, ThisName->Info.ExpectedBtypes); printf (" Return value types: %s\n", Buffer); } else { printf (" No return value\n"); } } /******************************************************************************* * * FUNCTION: AcpiUtGetArgumentTypes * * PARAMETERS: Buffer - Where to return the formatted types * ArgumentTypes - Types field for this method * * RETURN: Count - the number of arguments required for this method * * DESCRIPTION: Format the required data types for this method (Integer, * String, Buffer, or Package) and return the required argument * count. * ******************************************************************************/ static UINT32 AcpiUtGetArgumentTypes ( char *Buffer, UINT16 ArgumentTypes) { UINT16 ThisArgumentType; UINT16 SubIndex; UINT16 ArgCount; UINT32 i; *Buffer = 0; SubIndex = 2; /* First field in the types list is the count of args to follow */ ArgCount = METHOD_GET_ARG_COUNT (ArgumentTypes); if (ArgCount > METHOD_PREDEF_ARGS_MAX) { printf ("**** Invalid argument count (%u) " "in predefined info structure\n", ArgCount); return (ArgCount); } /* Get each argument from the list, convert to ascii, store to buffer */ for (i = 0; i < ArgCount; i++) { ThisArgumentType = METHOD_GET_NEXT_TYPE (ArgumentTypes); if (ThisArgumentType > METHOD_MAX_ARG_TYPE) { printf ("**** Invalid argument type (%u) " "in predefined info structure\n", ThisArgumentType); return (ArgCount); } strcat (Buffer, UtExternalTypeNames[ThisArgumentType] + SubIndex); SubIndex = 0; } return (ArgCount); } /******************************************************************************* * * FUNCTION: AcpiUtGetResourceBitWidth * * PARAMETERS: Buffer - Where the formatted string is returned * Types - Bitfield of expected data types * * RETURN: Count of return types. Formatted string in Buffer. * * DESCRIPTION: Format the resource bit widths into a printable string. * ******************************************************************************/ UINT32 AcpiUtGetResourceBitWidth ( char *Buffer, UINT16 Types) { UINT32 i; UINT16 SubIndex; UINT32 Found; *Buffer = 0; SubIndex = 1; Found = 0; for (i = 0; i < NUM_RESOURCE_WIDTHS; i++) { if (Types & 1) { strcat (Buffer, &(UtResourceTypeNames[i][SubIndex])); SubIndex = 0; Found++; } Types >>= 1; } return (Found); } #endif acpica-unix-20250404/source/components/utilities/utdebug.c0000775000175000017500000005271514773714133023057 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utdebug - Debug print/trace routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acinterp.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utdebug") #ifdef ACPI_DEBUG_OUTPUT static ACPI_THREAD_ID AcpiGbl_PreviousThreadId = (ACPI_THREAD_ID) 0xFFFFFFFF; static const char *AcpiGbl_FunctionEntryPrefix = "----Entry"; static const char *AcpiGbl_FunctionExitPrefix = "----Exit-"; /******************************************************************************* * * FUNCTION: AcpiUtInitStackPtrTrace * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Save the current CPU stack pointer at subsystem startup * ******************************************************************************/ void AcpiUtInitStackPtrTrace ( void) { ACPI_SIZE CurrentSp; #pragma GCC diagnostic push #if defined(__GNUC__) && __GNUC__ >= 12 #pragma GCC diagnostic ignored "-Wdangling-pointer=" #endif AcpiGbl_EntryStackPointer = &CurrentSp; #pragma GCC diagnostic pop } /******************************************************************************* * * FUNCTION: AcpiUtTrackStackPtr * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Save the current CPU stack pointer * ******************************************************************************/ void AcpiUtTrackStackPtr ( void) { ACPI_SIZE CurrentSp; if (&CurrentSp < AcpiGbl_LowestStackPointer) { #pragma GCC diagnostic push #if defined(__GNUC__) && __GNUC__ >= 12 #pragma GCC diagnostic ignored "-Wdangling-pointer=" #endif AcpiGbl_LowestStackPointer = &CurrentSp; #pragma GCC diagnostic pop } if (AcpiGbl_NestingLevel > AcpiGbl_DeepestNesting) { AcpiGbl_DeepestNesting = AcpiGbl_NestingLevel; } } /******************************************************************************* * * FUNCTION: AcpiUtTrimFunctionName * * PARAMETERS: FunctionName - Ascii string containing a procedure name * * RETURN: Updated pointer to the function name * * DESCRIPTION: Remove the "Acpi" prefix from the function name, if present. * This allows compiler macros such as __FUNCTION__ to be used * with no change to the debug output. * ******************************************************************************/ static const char * AcpiUtTrimFunctionName ( const char *FunctionName) { /* All Function names are longer than 4 chars, check is safe */ if (*(ACPI_CAST_PTR (UINT32, FunctionName)) == ACPI_PREFIX_MIXED) { /* This is the case where the original source has not been modified */ return (FunctionName + 4); } if (*(ACPI_CAST_PTR (UINT32, FunctionName)) == ACPI_PREFIX_LOWER) { /* This is the case where the source has been 'linuxized' */ return (FunctionName + 5); } return (FunctionName); } /******************************************************************************* * * FUNCTION: AcpiDebugPrint * * PARAMETERS: RequestedDebugLevel - Requested debug print level * LineNumber - Caller's line number (for error output) * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * Format - Printf format field * ... - Optional printf arguments * * RETURN: None * * DESCRIPTION: Print error message with prefix consisting of the module name, * line number, and component ID. * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiDebugPrint ( UINT32 RequestedDebugLevel, UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *Format, ...) { ACPI_THREAD_ID ThreadId; va_list args; #ifdef ACPI_APPLICATION int FillCount; #endif /* Check if debug output enabled */ if (!ACPI_IS_DEBUG_ENABLED (RequestedDebugLevel, ComponentId)) { return; } /* * Thread tracking and context switch notification */ ThreadId = AcpiOsGetThreadId (); if (ThreadId != AcpiGbl_PreviousThreadId) { if (ACPI_LV_THREADS & AcpiDbgLevel) { AcpiOsPrintf ( "\n**** Context Switch from TID %u to TID %u ****\n\n", (UINT32) AcpiGbl_PreviousThreadId, (UINT32) ThreadId); } AcpiGbl_PreviousThreadId = ThreadId; AcpiGbl_NestingLevel = 0; } /* * Display the module name, current line number, thread ID (if requested), * current procedure nesting level, and the current procedure name */ AcpiOsPrintf ("%9s-%04d ", ModuleName, LineNumber); #ifdef ACPI_APPLICATION /* * For AcpiExec/iASL only, emit the thread ID and nesting level. * Note: nesting level is really only useful during a single-thread * execution. Otherwise, multiple threads will keep resetting the * level. */ if (ACPI_LV_THREADS & AcpiDbgLevel) { AcpiOsPrintf ("[%u] ", (UINT32) ThreadId); } FillCount = 48 - AcpiGbl_NestingLevel - strlen (AcpiUtTrimFunctionName (FunctionName)); if (FillCount < 0) { FillCount = 0; } AcpiOsPrintf ("[%02d] %*s", AcpiGbl_NestingLevel, AcpiGbl_NestingLevel + 1, " "); AcpiOsPrintf ("%s%*s: ", AcpiUtTrimFunctionName (FunctionName), FillCount, " "); #else AcpiOsPrintf ("%-22.22s: ", AcpiUtTrimFunctionName (FunctionName)); #endif va_start (args, Format); AcpiOsVprintf (Format, args); va_end (args); } ACPI_EXPORT_SYMBOL (AcpiDebugPrint) /******************************************************************************* * * FUNCTION: AcpiDebugPrintRaw * * PARAMETERS: RequestedDebugLevel - Requested debug print level * LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * Format - Printf format field * ... - Optional printf arguments * * RETURN: None * * DESCRIPTION: Print message with no headers. Has same interface as * DebugPrint so that the same macros can be used. * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiDebugPrintRaw ( UINT32 RequestedDebugLevel, UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *Format, ...) { va_list args; /* Check if debug output enabled */ if (!ACPI_IS_DEBUG_ENABLED (RequestedDebugLevel, ComponentId)) { return; } va_start (args, Format); AcpiOsVprintf (Format, args); va_end (args); } ACPI_EXPORT_SYMBOL (AcpiDebugPrintRaw) /******************************************************************************* * * FUNCTION: AcpiUtTrace * * PARAMETERS: LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * * RETURN: None * * DESCRIPTION: Function entry trace. Prints only if TRACE_FUNCTIONS bit is * set in DebugLevel * ******************************************************************************/ void AcpiUtTrace ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId) { AcpiGbl_NestingLevel++; AcpiUtTrackStackPtr (); /* Check if enabled up-front for performance */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_FUNCTIONS, ComponentId)) { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s\n", AcpiGbl_FunctionEntryPrefix); } } ACPI_EXPORT_SYMBOL (AcpiUtTrace) /******************************************************************************* * * FUNCTION: AcpiUtTracePtr * * PARAMETERS: LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * Pointer - Pointer to display * * RETURN: None * * DESCRIPTION: Function entry trace. Prints only if TRACE_FUNCTIONS bit is * set in DebugLevel * ******************************************************************************/ void AcpiUtTracePtr ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const void *Pointer) { AcpiGbl_NestingLevel++; AcpiUtTrackStackPtr (); /* Check if enabled up-front for performance */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_FUNCTIONS, ComponentId)) { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s %p\n", AcpiGbl_FunctionEntryPrefix, Pointer); } } /******************************************************************************* * * FUNCTION: AcpiUtTraceStr * * PARAMETERS: LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * String - Additional string to display * * RETURN: None * * DESCRIPTION: Function entry trace. Prints only if TRACE_FUNCTIONS bit is * set in DebugLevel * ******************************************************************************/ void AcpiUtTraceStr ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *String) { AcpiGbl_NestingLevel++; AcpiUtTrackStackPtr (); /* Check if enabled up-front for performance */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_FUNCTIONS, ComponentId)) { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s %s\n", AcpiGbl_FunctionEntryPrefix, String); } } /******************************************************************************* * * FUNCTION: AcpiUtTraceU32 * * PARAMETERS: LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * Integer - Integer to display * * RETURN: None * * DESCRIPTION: Function entry trace. Prints only if TRACE_FUNCTIONS bit is * set in DebugLevel * ******************************************************************************/ void AcpiUtTraceU32 ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT32 Integer) { AcpiGbl_NestingLevel++; AcpiUtTrackStackPtr (); /* Check if enabled up-front for performance */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_FUNCTIONS, ComponentId)) { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s %08X\n", AcpiGbl_FunctionEntryPrefix, Integer); } } /******************************************************************************* * * FUNCTION: AcpiUtExit * * PARAMETERS: LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * * RETURN: None * * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is * set in DebugLevel * ******************************************************************************/ void AcpiUtExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId) { /* Check if enabled up-front for performance */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_FUNCTIONS, ComponentId)) { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s\n", AcpiGbl_FunctionExitPrefix); } if (AcpiGbl_NestingLevel) { AcpiGbl_NestingLevel--; } } ACPI_EXPORT_SYMBOL (AcpiUtExit) /******************************************************************************* * * FUNCTION: AcpiUtStatusExit * * PARAMETERS: LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * Status - Exit status code * * RETURN: None * * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is * set in DebugLevel. Prints exit status also. * ******************************************************************************/ void AcpiUtStatusExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, ACPI_STATUS Status) { /* Check if enabled up-front for performance */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_FUNCTIONS, ComponentId)) { if (ACPI_SUCCESS (Status)) { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s %s\n", AcpiGbl_FunctionExitPrefix, AcpiFormatException (Status)); } else { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s ****Exception****: %s\n", AcpiGbl_FunctionExitPrefix, AcpiFormatException (Status)); } } if (AcpiGbl_NestingLevel) { AcpiGbl_NestingLevel--; } } ACPI_EXPORT_SYMBOL (AcpiUtStatusExit) /******************************************************************************* * * FUNCTION: AcpiUtValueExit * * PARAMETERS: LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * Value - Value to be printed with exit msg * * RETURN: None * * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is * set in DebugLevel. Prints exit value also. * ******************************************************************************/ void AcpiUtValueExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT64 Value) { /* Check if enabled up-front for performance */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_FUNCTIONS, ComponentId)) { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s %8.8X%8.8X\n", AcpiGbl_FunctionExitPrefix, ACPI_FORMAT_UINT64 (Value)); } if (AcpiGbl_NestingLevel) { AcpiGbl_NestingLevel--; } } ACPI_EXPORT_SYMBOL (AcpiUtValueExit) /******************************************************************************* * * FUNCTION: AcpiUtPtrExit * * PARAMETERS: LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * Ptr - Pointer to display * * RETURN: None * * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is * set in DebugLevel. Prints exit value also. * ******************************************************************************/ void AcpiUtPtrExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT8 *Ptr) { /* Check if enabled up-front for performance */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_FUNCTIONS, ComponentId)) { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s %p\n", AcpiGbl_FunctionExitPrefix, Ptr); } if (AcpiGbl_NestingLevel) { AcpiGbl_NestingLevel--; } } /******************************************************************************* * * FUNCTION: AcpiUtStrExit * * PARAMETERS: LineNumber - Caller's line number * FunctionName - Caller's procedure name * ModuleName - Caller's module name * ComponentId - Caller's component ID * String - String to display * * RETURN: None * * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is * set in DebugLevel. Prints exit value also. * ******************************************************************************/ void AcpiUtStrExit ( UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *String) { /* Check if enabled up-front for performance */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_FUNCTIONS, ComponentId)) { AcpiDebugPrint (ACPI_LV_FUNCTIONS, LineNumber, FunctionName, ModuleName, ComponentId, "%s %s\n", AcpiGbl_FunctionExitPrefix, String); } if (AcpiGbl_NestingLevel) { AcpiGbl_NestingLevel--; } } /******************************************************************************* * * FUNCTION: AcpiTracePoint * * PARAMETERS: Type - Trace event type * Begin - TRUE if before execution * Aml - Executed AML address * Pathname - Object path * Pointer - Pointer to the related object * * RETURN: None * * DESCRIPTION: Interpreter execution trace. * ******************************************************************************/ void AcpiTracePoint ( ACPI_TRACE_EVENT_TYPE Type, BOOLEAN Begin, UINT8 *Aml, char *Pathname) { ACPI_FUNCTION_ENTRY (); AcpiExTracePoint (Type, Begin, Aml, Pathname); #ifdef ACPI_USE_SYSTEM_TRACER AcpiOsTracePoint (Type, Begin, Aml, Pathname); #endif } ACPI_EXPORT_SYMBOL (AcpiTracePoint) #endif acpica-unix-20250404/source/components/utilities/utxferror.c0000775000175000017500000002352314773714133023453 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: utxferror - Various error/warning output functions * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utxferror") /* * This module is used for the in-kernel ACPICA as well as the ACPICA * tools/applications. */ #ifndef ACPI_NO_ERROR_MESSAGES /* Entire module */ /******************************************************************************* * * FUNCTION: AcpiError * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: Print "ACPI Error" message with module/line/version info * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiError ( const char *ModuleName, UINT32 LineNumber, const char *Format, ...) { va_list ArgList; ACPI_MSG_REDIRECT_BEGIN; AcpiOsPrintf (ACPI_MSG_ERROR); va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); ACPI_MSG_SUFFIX; va_end (ArgList); ACPI_MSG_REDIRECT_END; } ACPI_EXPORT_SYMBOL (AcpiError) /******************************************************************************* * * FUNCTION: AcpiException * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * Status - Status value to be decoded/formatted * Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: Print an "ACPI Error" message with module/line/version * info as well as decoded ACPI_STATUS. * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiException ( const char *ModuleName, UINT32 LineNumber, ACPI_STATUS Status, const char *Format, ...) { va_list ArgList; ACPI_MSG_REDIRECT_BEGIN; /* For AE_OK, just print the message */ if (ACPI_SUCCESS (Status)) { AcpiOsPrintf (ACPI_MSG_ERROR); } else { AcpiOsPrintf (ACPI_MSG_ERROR "%s, ", AcpiFormatException (Status)); } va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); ACPI_MSG_SUFFIX; va_end (ArgList); ACPI_MSG_REDIRECT_END; } ACPI_EXPORT_SYMBOL (AcpiException) /******************************************************************************* * * FUNCTION: AcpiWarning * * PARAMETERS: ModuleName - Caller's module name (for warning output) * LineNumber - Caller's line number (for warning output) * Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: Print "ACPI Warning" message with module/line/version info * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiWarning ( const char *ModuleName, UINT32 LineNumber, const char *Format, ...) { va_list ArgList; ACPI_MSG_REDIRECT_BEGIN; AcpiOsPrintf (ACPI_MSG_WARNING); va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); ACPI_MSG_SUFFIX; va_end (ArgList); ACPI_MSG_REDIRECT_END; } ACPI_EXPORT_SYMBOL (AcpiWarning) /******************************************************************************* * * FUNCTION: AcpiInfo * * PARAMETERS: Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: Print generic "ACPI:" information message. There is no * module/line/version info in order to keep the message simple. * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiInfo ( const char *Format, ...) { va_list ArgList; ACPI_MSG_REDIRECT_BEGIN; AcpiOsPrintf (ACPI_MSG_INFO); va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); AcpiOsPrintf ("\n"); va_end (ArgList); ACPI_MSG_REDIRECT_END; } ACPI_EXPORT_SYMBOL (AcpiInfo) /******************************************************************************* * * FUNCTION: AcpiBiosError * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: Print "ACPI Firmware Error" message with module/line/version * info * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiBiosError ( const char *ModuleName, UINT32 LineNumber, const char *Format, ...) { va_list ArgList; ACPI_MSG_REDIRECT_BEGIN; AcpiOsPrintf (ACPI_MSG_BIOS_ERROR); va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); ACPI_MSG_SUFFIX; va_end (ArgList); ACPI_MSG_REDIRECT_END; } ACPI_EXPORT_SYMBOL (AcpiBiosError) /******************************************************************************* * * FUNCTION: AcpiBiosException * * PARAMETERS: ModuleName - Caller's module name (for error output) * LineNumber - Caller's line number (for error output) * Status - Status value to be decoded/formatted * Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: Print an "ACPI Firmware Error" message with module/line/version * info as well as decoded ACPI_STATUS. * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiBiosException ( const char *ModuleName, UINT32 LineNumber, ACPI_STATUS Status, const char *Format, ...) { va_list ArgList; ACPI_MSG_REDIRECT_BEGIN; /* For AE_OK, just print the message */ if (ACPI_SUCCESS (Status)) { AcpiOsPrintf (ACPI_MSG_BIOS_ERROR); } else { AcpiOsPrintf (ACPI_MSG_BIOS_ERROR "%s, ", AcpiFormatException (Status)); } va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); ACPI_MSG_SUFFIX; va_end (ArgList); ACPI_MSG_REDIRECT_END; } ACPI_EXPORT_SYMBOL (AcpiBiosException) /******************************************************************************* * * FUNCTION: AcpiBiosWarning * * PARAMETERS: ModuleName - Caller's module name (for warning output) * LineNumber - Caller's line number (for warning output) * Format - Printf format string + additional args * * RETURN: None * * DESCRIPTION: Print "ACPI Firmware Warning" message with module/line/version * info * ******************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiBiosWarning ( const char *ModuleName, UINT32 LineNumber, const char *Format, ...) { va_list ArgList; ACPI_MSG_REDIRECT_BEGIN; AcpiOsPrintf (ACPI_MSG_BIOS_WARNING); va_start (ArgList, Format); AcpiOsVprintf (Format, ArgList); ACPI_MSG_SUFFIX; va_end (ArgList); ACPI_MSG_REDIRECT_END; } ACPI_EXPORT_SYMBOL (AcpiBiosWarning) #endif /* ACPI_NO_ERROR_MESSAGES */ acpica-unix-20250404/source/components/utilities/utclib.c0000775000175000017500000006744214773714133022705 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: utclib - ACPICA implementations of C library functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define ACPI_CLIBRARY #include "acpi.h" #include "accommon.h" /* * This module contains implementations of the standard C library functions * that are required by the ACPICA code at both application level and kernel * level. * * The module is an optional feature that can be used if a local/system * C library is not available. Some operating system kernels may not have * an internal C library. * * In general, these functions are less efficient than an inline or assembly * code implementation. * * These C functions and the associated prototypes are enabled by default * unless the ACPI_USE_SYSTEM_CLIBRARY symbol is defined. This is usually * automatically defined for the ACPICA applications such as iASL and * AcpiExec, so that these user-level applications use the local C library * instead of the functions in this module. */ /******************************************************************************* * * Functions implemented in this module: * * FUNCTION: memcmp * FUNCTION: memcpy * FUNCTION: memset * FUNCTION: strlen * FUNCTION: strcpy * FUNCTION: strncpy * FUNCTION: strcmp * FUNCTION: strchr * FUNCTION: strncmp * FUNCTION: strcat * FUNCTION: strncat * FUNCTION: strstr * FUNCTION: strtoul * FUNCTION: toupper * FUNCTION: tolower * FUNCTION: is* functions * ******************************************************************************/ #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("utclib") #ifndef ACPI_USE_SYSTEM_CLIBRARY /* Entire module */ /******************************************************************************* * * FUNCTION: memcmp * * PARAMETERS: Buffer1 - First Buffer * Buffer2 - Second Buffer * Count - Maximum # of bytes to compare * * RETURN: Index where Buffers mismatched, or 0 if Buffers matched * * DESCRIPTION: Compare two Buffers, with a maximum length * ******************************************************************************/ int memcmp ( void *VBuffer1, void *VBuffer2, ACPI_SIZE Count) { char *Buffer1 = (char *) VBuffer1; char *Buffer2 = (char *) VBuffer2; for ( ; Count-- && (*Buffer1 == *Buffer2); Buffer1++, Buffer2++) { } return ((Count == ACPI_SIZE_MAX) ? 0 : ((unsigned char) *Buffer1 - (unsigned char) *Buffer2)); } /******************************************************************************* * * FUNCTION: memmove * * PARAMETERS: Dest - Target of the copy * Src - Source buffer to copy * Count - Number of bytes to copy * * RETURN: Dest * * DESCRIPTION: Copy arbitrary bytes of memory with respect to the overlapping * ******************************************************************************/ void * memmove ( void *Dest, const void *Src, ACPI_SIZE Count) { char *New = (char *) Dest; char *Old = (char *) Src; if (Old > New) { /* Copy from the beginning */ while (Count) { *New = *Old; New++; Old++; Count--; } } else if (Old < New) { /* Copy from the end */ New = New + Count - 1; Old = Old + Count - 1; while (Count) { *New = *Old; New--; Old--; Count--; } } return (Dest); } /******************************************************************************* * * FUNCTION: memcpy * * PARAMETERS: Dest - Target of the copy * Src - Source buffer to copy * Count - Number of bytes to copy * * RETURN: Dest * * DESCRIPTION: Copy arbitrary bytes of memory * ******************************************************************************/ void * memcpy ( void *Dest, const void *Src, ACPI_SIZE Count) { char *New = (char *) Dest; char *Old = (char *) Src; while (Count) { *New = *Old; New++; Old++; Count--; } return (Dest); } /******************************************************************************* * * FUNCTION: memset * * PARAMETERS: Dest - Buffer to set * Value - Value to set each byte of memory * Count - Number of bytes to set * * RETURN: Dest * * DESCRIPTION: Initialize a buffer to a known value. * ******************************************************************************/ void * memset ( void *Dest, int Value, ACPI_SIZE Count) { char *New = (char *) Dest; while (Count) { *New = (char) Value; New++; Count--; } return (Dest); } /******************************************************************************* * * FUNCTION: strlen * * PARAMETERS: String - Null terminated string * * RETURN: Length * * DESCRIPTION: Returns the length of the input string * ******************************************************************************/ ACPI_SIZE strlen ( const char *String) { UINT32 Length = 0; /* Count the string until a null is encountered */ while (*String) { Length++; String++; } return (Length); } /******************************************************************************* * * FUNCTION: strpbrk * * PARAMETERS: String - Null terminated string * Delimiters - Delimiters to match * * RETURN: The first occurrence in the string of any of the bytes in the * delimiters * * DESCRIPTION: Search a string for any of a set of the delimiters * ******************************************************************************/ char * strpbrk ( const char *String, const char *Delimiters) { const char *Delimiter; for ( ; *String != '\0'; ++String) { for (Delimiter = Delimiters; *Delimiter != '\0'; Delimiter++) { if (*String == *Delimiter) { return (ACPI_CAST_PTR (char, String)); } } } return (NULL); } /******************************************************************************* * * FUNCTION: strtok * * PARAMETERS: String - Null terminated string * Delimiters - Delimiters to match * * RETURN: Pointer to the next token * * DESCRIPTION: Split string into tokens * ******************************************************************************/ char* strtok ( char *String, const char *Delimiters) { char *Begin = String; static char *SavedPtr; if (Begin == NULL) { if (SavedPtr == NULL) { return (NULL); } Begin = SavedPtr; } SavedPtr = strpbrk (Begin, Delimiters); while (SavedPtr == Begin) { *Begin++ = '\0'; SavedPtr = strpbrk (Begin, Delimiters); } if (SavedPtr) { *SavedPtr++ = '\0'; return (Begin); } else { return (NULL); } } /******************************************************************************* * * FUNCTION: strcpy * * PARAMETERS: DstString - Target of the copy * SrcString - The source string to copy * * RETURN: DstString * * DESCRIPTION: Copy a null terminated string * ******************************************************************************/ char * strcpy ( char *DstString, const char *SrcString) { char *String = DstString; /* Move bytes brute force */ while (*SrcString) { *String = *SrcString; String++; SrcString++; } /* Null terminate */ *String = 0; return (DstString); } /******************************************************************************* * * FUNCTION: strncpy * * PARAMETERS: DstString - Target of the copy * SrcString - The source string to copy * Count - Maximum # of bytes to copy * * RETURN: DstString * * DESCRIPTION: Copy a null terminated string, with a maximum length * ******************************************************************************/ char * strncpy ( char *DstString, const char *SrcString, ACPI_SIZE Count) { char *String = DstString; /* Copy the string */ for (String = DstString; Count && (Count--, (*String++ = *SrcString++)); ) {;} /* Pad with nulls if necessary */ while (Count--) { *String = 0; String++; } /* Return original pointer */ return (DstString); } /******************************************************************************* * * FUNCTION: strcmp * * PARAMETERS: String1 - First string * String2 - Second string * * RETURN: Index where strings mismatched, or 0 if strings matched * * DESCRIPTION: Compare two null terminated strings * ******************************************************************************/ int strcmp ( const char *String1, const char *String2) { for ( ; (*String1 == *String2); String2++) { if (!*String1++) { return (0); } } return ((unsigned char) *String1 - (unsigned char) *String2); } /******************************************************************************* * * FUNCTION: strchr * * PARAMETERS: String - Search string * ch - character to search for * * RETURN: Ptr to char or NULL if not found * * DESCRIPTION: Search a string for a character * ******************************************************************************/ char * strchr ( const char *String, int ch) { for ( ; (*String); String++) { if ((*String) == (char) ch) { return ((char *) String); } } return (NULL); } /******************************************************************************* * * FUNCTION: strncmp * * PARAMETERS: String1 - First string * String2 - Second string * Count - Maximum # of bytes to compare * * RETURN: Index where strings mismatched, or 0 if strings matched * * DESCRIPTION: Compare two null terminated strings, with a maximum length * ******************************************************************************/ int strncmp ( const char *String1, const char *String2, ACPI_SIZE Count) { for ( ; Count-- && (*String1 == *String2); String2++) { if (!*String1++) { return (0); } } return ((Count == ACPI_SIZE_MAX) ? 0 : ((unsigned char) *String1 - (unsigned char) *String2)); } /******************************************************************************* * * FUNCTION: strcat * * PARAMETERS: DstString - Target of the copy * SrcString - The source string to copy * * RETURN: DstString * * DESCRIPTION: Append a null terminated string to a null terminated string * ******************************************************************************/ char * strcat ( char *DstString, const char *SrcString) { char *String; /* Find end of the destination string */ for (String = DstString; *String++; ) { ; } /* Concatenate the string */ for (--String; (*String++ = *SrcString++); ) { ; } return (DstString); } /******************************************************************************* * * FUNCTION: strncat * * PARAMETERS: DstString - Target of the copy * SrcString - The source string to copy * Count - Maximum # of bytes to copy * * RETURN: DstString * * DESCRIPTION: Append a null terminated string to a null terminated string, * with a maximum count. * ******************************************************************************/ char * strncat ( char *DstString, const char *SrcString, ACPI_SIZE Count) { char *String; if (Count) { /* Find end of the destination string */ for (String = DstString; *String++; ) { ; } /* Concatenate the string */ for (--String; (*String++ = *SrcString++) && --Count; ) { ; } /* Null terminate if necessary */ if (!Count) { *String = 0; } } return (DstString); } /******************************************************************************* * * FUNCTION: strstr * * PARAMETERS: String1 - Target string * String2 - Substring to search for * * RETURN: Where substring match starts, Null if no match found * * DESCRIPTION: Checks if String2 occurs in String1. This is not really a * full implementation of strstr, only sufficient for command * matching * ******************************************************************************/ char * strstr ( char *String1, char *String2) { ACPI_SIZE Length; Length = strlen (String2); if (!Length) { return (String1); } while (strlen (String1) >= Length) { if (memcmp (String1, String2, Length) == 0) { return (String1); } String1++; } return (NULL); } /******************************************************************************* * * FUNCTION: strtoul * * PARAMETERS: String - Null terminated string * Terminator - Where a pointer to the terminating byte is * returned * Base - Radix of the string * * RETURN: Converted value * * DESCRIPTION: Convert a string into a 32-bit unsigned value. * Note: use strtoul64 for 64-bit integers. * ******************************************************************************/ UINT32 strtoul ( const char *String, char **Terminator, UINT32 Base) { UINT32 converted = 0; UINT32 index; UINT32 sign; const char *StringStart; UINT32 ReturnValue = 0; ACPI_STATUS Status = AE_OK; /* * Save the value of the pointer to the buffer's first * character, save the current errno value, and then * skip over any white space in the buffer: */ StringStart = String; while (isspace (*String) || *String == '\t') { ++String; } /* * The buffer may contain an optional plus or minus sign. * If it does, then skip over it but remember what is was: */ if (*String == '-') { sign = ACPI_SIGN_NEGATIVE; ++String; } else if (*String == '+') { ++String; sign = ACPI_SIGN_POSITIVE; } else { sign = ACPI_SIGN_POSITIVE; } /* * If the input parameter Base is zero, then we need to * determine if it is octal, decimal, or hexadecimal: */ if (Base == 0) { if (*String == '0') { if (tolower (*(++String)) == 'x') { Base = 16; ++String; } else { Base = 8; } } else { Base = 10; } } else if (Base < 2 || Base > 36) { /* * The specified Base parameter is not in the domain of * this function: */ goto done; } /* * For octal and hexadecimal bases, skip over the leading * 0 or 0x, if they are present. */ if (Base == 8 && *String == '0') { String++; } if (Base == 16 && *String == '0' && tolower (*(++String)) == 'x') { String++; } /* * Main loop: convert the string to an unsigned long: */ while (*String) { if (isdigit (*String)) { index = (UINT32) ((UINT8) *String - '0'); } else { index = (UINT32) toupper (*String); if (isupper (index)) { index = index - 'A' + 10; } else { goto done; } } if (index >= Base) { goto done; } /* * Check to see if value is out of range: */ if (ReturnValue > ((ACPI_UINT32_MAX - (UINT32) index) / (UINT32) Base)) { Status = AE_ERROR; ReturnValue = 0; /* reset */ } else { ReturnValue *= Base; ReturnValue += index; converted = 1; } ++String; } done: /* * If appropriate, update the caller's pointer to the next * unconverted character in the buffer. */ if (Terminator) { if (converted == 0 && ReturnValue == 0 && String != NULL) { *Terminator = (char *) StringStart; } else { *Terminator = (char *) String; } } if (Status == AE_ERROR) { ReturnValue = ACPI_UINT32_MAX; } /* * If a minus sign was present, then "the conversion is negated": */ if (sign == ACPI_SIGN_NEGATIVE) { ReturnValue = (ACPI_UINT32_MAX - ReturnValue) + 1; } return (ReturnValue); } /******************************************************************************* * * FUNCTION: toupper * * PARAMETERS: c - Character to convert * * RETURN: Converted character as an int * * DESCRIPTION: Convert character to uppercase * ******************************************************************************/ int toupper ( int c) { return (islower(c) ? ((c)-0x20) : (c)); } /******************************************************************************* * * FUNCTION: tolower * * PARAMETERS: c - Character to convert * * RETURN: Converted character as an int * * DESCRIPTION: Convert character to lowercase * ******************************************************************************/ int tolower ( int c) { return (isupper(c) ? ((c)+0x20) : (c)); } /******************************************************************************* * * FUNCTION: is* function array * * DESCRIPTION: is* functions use the ctype table below * ******************************************************************************/ const UINT8 AcpiGbl_Ctypes[257] = { _ACPI_CN, /* 0x00 0 NUL */ _ACPI_CN, /* 0x01 1 SOH */ _ACPI_CN, /* 0x02 2 STX */ _ACPI_CN, /* 0x03 3 ETX */ _ACPI_CN, /* 0x04 4 EOT */ _ACPI_CN, /* 0x05 5 ENQ */ _ACPI_CN, /* 0x06 6 ACK */ _ACPI_CN, /* 0x07 7 BEL */ _ACPI_CN, /* 0x08 8 BS */ _ACPI_CN|_ACPI_SP, /* 0x09 9 TAB */ _ACPI_CN|_ACPI_SP, /* 0x0A 10 LF */ _ACPI_CN|_ACPI_SP, /* 0x0B 11 VT */ _ACPI_CN|_ACPI_SP, /* 0x0C 12 FF */ _ACPI_CN|_ACPI_SP, /* 0x0D 13 CR */ _ACPI_CN, /* 0x0E 14 SO */ _ACPI_CN, /* 0x0F 15 SI */ _ACPI_CN, /* 0x10 16 DLE */ _ACPI_CN, /* 0x11 17 DC1 */ _ACPI_CN, /* 0x12 18 DC2 */ _ACPI_CN, /* 0x13 19 DC3 */ _ACPI_CN, /* 0x14 20 DC4 */ _ACPI_CN, /* 0x15 21 NAK */ _ACPI_CN, /* 0x16 22 SYN */ _ACPI_CN, /* 0x17 23 ETB */ _ACPI_CN, /* 0x18 24 CAN */ _ACPI_CN, /* 0x19 25 EM */ _ACPI_CN, /* 0x1A 26 SUB */ _ACPI_CN, /* 0x1B 27 ESC */ _ACPI_CN, /* 0x1C 28 FS */ _ACPI_CN, /* 0x1D 29 GS */ _ACPI_CN, /* 0x1E 30 RS */ _ACPI_CN, /* 0x1F 31 US */ _ACPI_XS|_ACPI_SP, /* 0x20 32 ' ' */ _ACPI_PU, /* 0x21 33 '!' */ _ACPI_PU, /* 0x22 34 '"' */ _ACPI_PU, /* 0x23 35 '#' */ _ACPI_PU, /* 0x24 36 '$' */ _ACPI_PU, /* 0x25 37 '%' */ _ACPI_PU, /* 0x26 38 '&' */ _ACPI_PU, /* 0x27 39 ''' */ _ACPI_PU, /* 0x28 40 '(' */ _ACPI_PU, /* 0x29 41 ')' */ _ACPI_PU, /* 0x2A 42 '*' */ _ACPI_PU, /* 0x2B 43 '+' */ _ACPI_PU, /* 0x2C 44 ',' */ _ACPI_PU, /* 0x2D 45 '-' */ _ACPI_PU, /* 0x2E 46 '.' */ _ACPI_PU, /* 0x2F 47 '/' */ _ACPI_XD|_ACPI_DI, /* 0x30 48 '0' */ _ACPI_XD|_ACPI_DI, /* 0x31 49 '1' */ _ACPI_XD|_ACPI_DI, /* 0x32 50 '2' */ _ACPI_XD|_ACPI_DI, /* 0x33 51 '3' */ _ACPI_XD|_ACPI_DI, /* 0x34 52 '4' */ _ACPI_XD|_ACPI_DI, /* 0x35 53 '5' */ _ACPI_XD|_ACPI_DI, /* 0x36 54 '6' */ _ACPI_XD|_ACPI_DI, /* 0x37 55 '7' */ _ACPI_XD|_ACPI_DI, /* 0x38 56 '8' */ _ACPI_XD|_ACPI_DI, /* 0x39 57 '9' */ _ACPI_PU, /* 0x3A 58 ':' */ _ACPI_PU, /* 0x3B 59 ';' */ _ACPI_PU, /* 0x3C 60 '<' */ _ACPI_PU, /* 0x3D 61 '=' */ _ACPI_PU, /* 0x3E 62 '>' */ _ACPI_PU, /* 0x3F 63 '?' */ _ACPI_PU, /* 0x40 64 '@' */ _ACPI_XD|_ACPI_UP, /* 0x41 65 'A' */ _ACPI_XD|_ACPI_UP, /* 0x42 66 'B' */ _ACPI_XD|_ACPI_UP, /* 0x43 67 'C' */ _ACPI_XD|_ACPI_UP, /* 0x44 68 'D' */ _ACPI_XD|_ACPI_UP, /* 0x45 69 'E' */ _ACPI_XD|_ACPI_UP, /* 0x46 70 'F' */ _ACPI_UP, /* 0x47 71 'G' */ _ACPI_UP, /* 0x48 72 'H' */ _ACPI_UP, /* 0x49 73 'I' */ _ACPI_UP, /* 0x4A 74 'J' */ _ACPI_UP, /* 0x4B 75 'K' */ _ACPI_UP, /* 0x4C 76 'L' */ _ACPI_UP, /* 0x4D 77 'M' */ _ACPI_UP, /* 0x4E 78 'N' */ _ACPI_UP, /* 0x4F 79 'O' */ _ACPI_UP, /* 0x50 80 'P' */ _ACPI_UP, /* 0x51 81 'Q' */ _ACPI_UP, /* 0x52 82 'R' */ _ACPI_UP, /* 0x53 83 'S' */ _ACPI_UP, /* 0x54 84 'T' */ _ACPI_UP, /* 0x55 85 'U' */ _ACPI_UP, /* 0x56 86 'V' */ _ACPI_UP, /* 0x57 87 'W' */ _ACPI_UP, /* 0x58 88 'X' */ _ACPI_UP, /* 0x59 89 'Y' */ _ACPI_UP, /* 0x5A 90 'Z' */ _ACPI_PU, /* 0x5B 91 '[' */ _ACPI_PU, /* 0x5C 92 '\' */ _ACPI_PU, /* 0x5D 93 ']' */ _ACPI_PU, /* 0x5E 94 '^' */ _ACPI_PU, /* 0x5F 95 '_' */ _ACPI_PU, /* 0x60 96 '`' */ _ACPI_XD|_ACPI_LO, /* 0x61 97 'a' */ _ACPI_XD|_ACPI_LO, /* 0x62 98 'b' */ _ACPI_XD|_ACPI_LO, /* 0x63 99 'c' */ _ACPI_XD|_ACPI_LO, /* 0x64 100 'd' */ _ACPI_XD|_ACPI_LO, /* 0x65 101 'e' */ _ACPI_XD|_ACPI_LO, /* 0x66 102 'f' */ _ACPI_LO, /* 0x67 103 'g' */ _ACPI_LO, /* 0x68 104 'h' */ _ACPI_LO, /* 0x69 105 'i' */ _ACPI_LO, /* 0x6A 106 'j' */ _ACPI_LO, /* 0x6B 107 'k' */ _ACPI_LO, /* 0x6C 108 'l' */ _ACPI_LO, /* 0x6D 109 'm' */ _ACPI_LO, /* 0x6E 110 'n' */ _ACPI_LO, /* 0x6F 111 'o' */ _ACPI_LO, /* 0x70 112 'p' */ _ACPI_LO, /* 0x71 113 'q' */ _ACPI_LO, /* 0x72 114 'r' */ _ACPI_LO, /* 0x73 115 's' */ _ACPI_LO, /* 0x74 116 't' */ _ACPI_LO, /* 0x75 117 'u' */ _ACPI_LO, /* 0x76 118 'v' */ _ACPI_LO, /* 0x77 119 'w' */ _ACPI_LO, /* 0x78 120 'x' */ _ACPI_LO, /* 0x79 121 'y' */ _ACPI_LO, /* 0x7A 122 'z' */ _ACPI_PU, /* 0x7B 123 '{' */ _ACPI_PU, /* 0x7C 124 '|' */ _ACPI_PU, /* 0x7D 125 '}' */ _ACPI_PU, /* 0x7E 126 '~' */ _ACPI_CN, /* 0x7F 127 DEL */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0x80 to 0x8F */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0x90 to 0x9F */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xA0 to 0xAF */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xB0 to 0xBF */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xC0 to 0xCF */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xD0 to 0xDF */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xE0 to 0xEF */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xF0 to 0xFF */ 0 /* 0x100 */ }; #endif /* ACPI_USE_SYSTEM_CLIBRARY */ acpica-unix-20250404/source/components/parser/0000775000175000017500000000000014773714133020520 5ustar ivanhuivanhuacpica-unix-20250404/source/components/parser/pswalk.c0000775000175000017500000001110114773714133022162 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: pswalk - Parser routines to walk parsed op tree(s) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("pswalk") /******************************************************************************* * * FUNCTION: AcpiPsDeleteParseTree * * PARAMETERS: SubtreeRoot - Root of tree (or subtree) to delete * * RETURN: None * * DESCRIPTION: Delete a portion of or an entire parse tree. * ******************************************************************************/ #include "amlcode.h" void AcpiPsDeleteParseTree ( ACPI_PARSE_OBJECT *SubtreeRoot) { ACPI_PARSE_OBJECT *Op = SubtreeRoot; ACPI_PARSE_OBJECT *Next = NULL; ACPI_PARSE_OBJECT *Parent = NULL; UINT32 Level = 0; ACPI_FUNCTION_TRACE_PTR (PsDeleteParseTree, SubtreeRoot); ACPI_DEBUG_PRINT ((ACPI_DB_PARSE_TREES, " root %p\n", SubtreeRoot)); /* Visit all nodes in the subtree */ while (Op) { if (Op != Parent) { /* This is the descending case */ if (ACPI_IS_DEBUG_ENABLED (ACPI_LV_PARSE_TREES, _COMPONENT)) { /* This debug option will print the entire parse tree */ AcpiOsPrintf (" %*.s%s %p", (Level * 4), " ", AcpiPsGetOpcodeName (Op->Common.AmlOpcode), Op); if (Op->Named.AmlOpcode == AML_INT_NAMEPATH_OP) { AcpiOsPrintf (" %4.4s", Op->Common.Value.String); } if (Op->Named.AmlOpcode == AML_STRING_OP) { AcpiOsPrintf (" %s", Op->Common.Value.String); } AcpiOsPrintf ("\n"); } /* Look for an argument or child of the current op */ Next = AcpiPsGetArg (Op, 0); if (Next) { /* Still going downward in tree (Op is not completed yet) */ Op = Next; Level++; continue; } } /* No more children, this Op is complete. */ Next = Op->Common.Next; Parent = Op->Common.Parent; AcpiPsFreeOp (Op); /* If we are back to the starting point, the walk is complete. */ if (Op == SubtreeRoot) { return_VOID; } if (Next) { Op = Next; } else { Level--; Op = Parent; } } return_VOID; } acpica-unix-20250404/source/components/parser/psxface.c0000775000175000017500000002725714773714133022335 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: psxface - Parser external interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "acdispat.h" #include "acinterp.h" #include "actables.h" #include "acnamesp.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("psxface") /* Local Prototypes */ static void AcpiPsUpdateParameterList ( ACPI_EVALUATE_INFO *Info, UINT16 Action); /******************************************************************************* * * FUNCTION: AcpiDebugTrace * * PARAMETERS: MethodName - Valid ACPI name string * DebugLevel - Optional level mask. 0 to use default * DebugLayer - Optional layer mask. 0 to use default * Flags - bit 1: one shot(1) or persistent(0) * * RETURN: Status * * DESCRIPTION: External interface to enable debug tracing during control * method execution * ******************************************************************************/ ACPI_STATUS AcpiDebugTrace ( const char *Name, UINT32 DebugLevel, UINT32 DebugLayer, UINT32 Flags) { ACPI_STATUS Status; Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } AcpiGbl_TraceMethodName = Name; AcpiGbl_TraceFlags = Flags; AcpiGbl_TraceDbgLevel = DebugLevel; AcpiGbl_TraceDbgLayer = DebugLayer; Status = AE_OK; (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (Status); } /******************************************************************************* * * FUNCTION: AcpiPsExecuteMethod * * PARAMETERS: Info - Method info block, contains: * Node - Method Node to execute * ObjDesc - Method object * Parameters - List of parameters to pass to the method, * terminated by NULL. Params itself may be * NULL if no parameters are being passed. * ReturnObject - Where to put method's return value (if * any). If NULL, no value is returned. * ParameterType - Type of Parameter list * ReturnObject - Where to put method's return value (if * any). If NULL, no value is returned. * PassNumber - Parse or execute pass * * RETURN: Status * * DESCRIPTION: Execute a control method * ******************************************************************************/ ACPI_STATUS AcpiPsExecuteMethod ( ACPI_EVALUATE_INFO *Info) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *Op; ACPI_WALK_STATE *WalkState; ACPI_FUNCTION_TRACE (PsExecuteMethod); /* Quick validation of DSDT header */ AcpiTbCheckDsdtHeader (); /* Validate the Info and method Node */ if (!Info || !Info->Node) { return_ACPI_STATUS (AE_NULL_ENTRY); } /* Init for new method, wait on concurrency semaphore */ Status = AcpiDsBeginMethodExecution (Info->Node, Info->ObjDesc, NULL); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * The caller "owns" the parameters, so give each one an extra reference */ AcpiPsUpdateParameterList (Info, REF_INCREMENT); /* * Execute the method. Performs parse simultaneously */ ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "**** Begin Method Parse/Execute [%4.4s] **** Node=%p Obj=%p\n", Info->Node->Name.Ascii, Info->Node, Info->ObjDesc)); /* Create and init a Root Node */ Op = AcpiPsCreateScopeOp (Info->ObjDesc->Method.AmlStart); if (!Op) { Status = AE_NO_MEMORY; goto Cleanup; } /* Create and initialize a new walk state */ Info->PassNumber = ACPI_IMODE_EXECUTE; WalkState = AcpiDsCreateWalkState ( Info->ObjDesc->Method.OwnerId, NULL, NULL, NULL); if (!WalkState) { Status = AE_NO_MEMORY; goto Cleanup; } Status = AcpiDsInitAmlWalk (WalkState, Op, Info->Node, Info->ObjDesc->Method.AmlStart, Info->ObjDesc->Method.AmlLength, Info, Info->PassNumber); if (ACPI_FAILURE (Status)) { AcpiDsDeleteWalkState (WalkState); goto Cleanup; } WalkState->MethodPathname = Info->FullPathname; WalkState->MethodIsNested = FALSE; if (Info->ObjDesc->Method.InfoFlags & ACPI_METHOD_MODULE_LEVEL) { WalkState->ParseFlags |= ACPI_PARSE_MODULE_LEVEL; } /* Invoke an internal method if necessary */ if (Info->ObjDesc->Method.InfoFlags & ACPI_METHOD_INTERNAL_ONLY) { Status = Info->ObjDesc->Method.Dispatch.Implementation (WalkState); Info->ReturnObject = WalkState->ReturnDesc; /* Cleanup states */ AcpiDsScopeStackClear (WalkState); AcpiPsCleanupScope (&WalkState->ParserState); AcpiDsTerminateControlMethod (WalkState->MethodDesc, WalkState); AcpiDsDeleteWalkState (WalkState); goto Cleanup; } /* * Start method evaluation with an implicit return of zero. * This is done for Windows compatibility. */ if (AcpiGbl_EnableInterpreterSlack) { WalkState->ImplicitReturnObj = AcpiUtCreateIntegerObject ((UINT64) 0); if (!WalkState->ImplicitReturnObj) { Status = AE_NO_MEMORY; AcpiDsDeleteWalkState (WalkState); goto Cleanup; } } /* Parse the AML */ Status = AcpiPsParseAml (WalkState); /* WalkState was deleted by ParseAml */ Cleanup: AcpiPsDeleteParseTree (Op); /* Take away the extra reference that we gave the parameters above */ AcpiPsUpdateParameterList (Info, REF_DECREMENT); /* Exit now if error above */ if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * If the method has returned an object, signal this to the caller with * a control exception code */ if (Info->ReturnObject) { ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Method returned ObjDesc=%p\n", Info->ReturnObject)); ACPI_DUMP_STACK_ENTRY (Info->ReturnObject); Status = AE_CTRL_RETURN_VALUE; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiPsExecuteTable * * PARAMETERS: Info - Method info block, contains: * Node - Node to where the is entered into the * namespace * ObjDesc - Pseudo method object describing the AML * code of the entire table * PassNumber - Parse or execute pass * * RETURN: Status * * DESCRIPTION: Execute a table * ******************************************************************************/ ACPI_STATUS AcpiPsExecuteTable ( ACPI_EVALUATE_INFO *Info) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *Op = NULL; ACPI_WALK_STATE *WalkState = NULL; ACPI_FUNCTION_TRACE (PsExecuteTable); /* Create and init a Root Node */ Op = AcpiPsCreateScopeOp (Info->ObjDesc->Method.AmlStart); if (!Op) { Status = AE_NO_MEMORY; goto Cleanup; } /* Create and initialize a new walk state */ WalkState = AcpiDsCreateWalkState ( Info->ObjDesc->Method.OwnerId, NULL, NULL, NULL); if (!WalkState) { Status = AE_NO_MEMORY; goto Cleanup; } Status = AcpiDsInitAmlWalk (WalkState, Op, Info->Node, Info->ObjDesc->Method.AmlStart, Info->ObjDesc->Method.AmlLength, Info, Info->PassNumber); if (ACPI_FAILURE (Status)) { goto Cleanup; } WalkState->MethodPathname = Info->FullPathname; WalkState->MethodIsNested = FALSE; if (Info->ObjDesc->Method.InfoFlags & ACPI_METHOD_MODULE_LEVEL) { WalkState->ParseFlags |= ACPI_PARSE_MODULE_LEVEL; } /* Info->Node is the default location to load the table */ if (Info->Node && Info->Node != AcpiGbl_RootNode) { Status = AcpiDsScopeStackPush ( Info->Node, ACPI_TYPE_METHOD, WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } } /* * Parse the AML, WalkState will be deleted by ParseAml */ AcpiExEnterInterpreter (); Status = AcpiPsParseAml (WalkState); AcpiExExitInterpreter (); WalkState = NULL; Cleanup: if (WalkState) { AcpiDsDeleteWalkState (WalkState); } if (Op) { AcpiPsDeleteParseTree (Op); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiPsUpdateParameterList * * PARAMETERS: Info - See ACPI_EVALUATE_INFO * (Used: ParameterType and Parameters) * Action - Add or Remove reference * * RETURN: Status * * DESCRIPTION: Update reference count on all method parameter objects * ******************************************************************************/ static void AcpiPsUpdateParameterList ( ACPI_EVALUATE_INFO *Info, UINT16 Action) { UINT32 i; if (Info->Parameters) { /* Update reference count for each parameter */ for (i = 0; Info->Parameters[i]; i++) { /* Ignore errors, just do them all */ (void) AcpiUtUpdateObjectReference ( Info->Parameters[i], Action); } } } acpica-unix-20250404/source/components/parser/psloop.c0000775000175000017500000004661214773714133022214 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: psloop - Main AML parse loop * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * Parse the AML and build an operation tree as most interpreters, (such as * Perl) do. Parsing is done by hand rather than with a YACC generated parser * to tightly constrain stack and dynamic memory usage. Parsing is kept * flexible and the code fairly compact by parsing based on a list of AML * opcode templates in AmlOpInfo[]. */ #include "acpi.h" #include "accommon.h" #include "acinterp.h" #include "acparser.h" #include "acdispat.h" #include "amlcode.h" #include "acconvert.h" #include "acnamesp.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("psloop") /* Local prototypes */ static ACPI_STATUS AcpiPsGetArguments ( ACPI_WALK_STATE *WalkState, UINT8 *AmlOpStart, ACPI_PARSE_OBJECT *Op); /******************************************************************************* * * FUNCTION: AcpiPsGetArguments * * PARAMETERS: WalkState - Current state * AmlOpStart - Op start in AML * Op - Current Op * * RETURN: Status * * DESCRIPTION: Get arguments for passed Op. * ******************************************************************************/ static ACPI_STATUS AcpiPsGetArguments ( ACPI_WALK_STATE *WalkState, UINT8 *AmlOpStart, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status = AE_OK; ACPI_PARSE_OBJECT *Arg = NULL; ACPI_FUNCTION_TRACE_PTR (PsGetArguments, WalkState); ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Get arguments for opcode [%s]\n", Op->Common.AmlOpName)); switch (Op->Common.AmlOpcode) { case AML_BYTE_OP: /* AML_BYTEDATA_ARG */ case AML_WORD_OP: /* AML_WORDDATA_ARG */ case AML_DWORD_OP: /* AML_DWORDATA_ARG */ case AML_QWORD_OP: /* AML_QWORDATA_ARG */ case AML_STRING_OP: /* AML_ASCIICHARLIST_ARG */ /* Fill in constant or string argument directly */ AcpiPsGetNextSimpleArg (&(WalkState->ParserState), GET_CURRENT_ARG_TYPE (WalkState->ArgTypes), Op); break; case AML_INT_NAMEPATH_OP: /* AML_NAMESTRING_ARG */ Status = AcpiPsGetNextNamepath (WalkState, &(WalkState->ParserState), Op, ACPI_POSSIBLE_METHOD_CALL); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } WalkState->ArgTypes = 0; break; default: /* * Op is not a constant or string, append each argument to the Op */ while (GET_CURRENT_ARG_TYPE (WalkState->ArgTypes) && !WalkState->ArgCount) { WalkState->Aml = WalkState->ParserState.Aml; switch (Op->Common.AmlOpcode) { case AML_METHOD_OP: case AML_BUFFER_OP: case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: case AML_WHILE_OP: break; default: ASL_CV_CAPTURE_COMMENTS (WalkState); break; } Status = AcpiPsGetNextArg (WalkState, &(WalkState->ParserState), GET_CURRENT_ARG_TYPE (WalkState->ArgTypes), &Arg); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (Arg) { AcpiPsAppendArg (Op, Arg); } INCREMENT_ARG_LIST (WalkState->ArgTypes); } ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Final argument count: %8.8X pass %u\n", WalkState->ArgCount, WalkState->PassNumber)); /* Special processing for certain opcodes */ switch (Op->Common.AmlOpcode) { case AML_METHOD_OP: /* * Skip parsing of control method because we don't have enough * info in the first pass to parse it correctly. * * Save the length and address of the body */ Op->Named.Data = WalkState->ParserState.Aml; Op->Named.Length = (UINT32) (WalkState->ParserState.PkgEnd - WalkState->ParserState.Aml); /* Skip body of method */ WalkState->ParserState.Aml = WalkState->ParserState.PkgEnd; WalkState->ArgCount = 0; break; case AML_BUFFER_OP: case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: if ((Op->Common.Parent) && (Op->Common.Parent->Common.AmlOpcode == AML_NAME_OP) && (WalkState->PassNumber <= ACPI_IMODE_LOAD_PASS2)) { ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Setup Package/Buffer: Pass %u, AML Ptr: %p\n", WalkState->PassNumber, AmlOpStart)); /* * Skip parsing of Buffers and Packages because we don't have * enough info in the first pass to parse them correctly. */ Op->Named.Data = AmlOpStart; Op->Named.Length = (UINT32) (WalkState->ParserState.PkgEnd - AmlOpStart); /* Skip body */ WalkState->ParserState.Aml = WalkState->ParserState.PkgEnd; WalkState->ArgCount = 0; } break; case AML_WHILE_OP: if (WalkState->ControlState) { WalkState->ControlState->Control.PackageEnd = WalkState->ParserState.PkgEnd; } break; default: /* No action for all other opcodes */ break; } break; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiPsParseLoop * * PARAMETERS: WalkState - Current state * * RETURN: Status * * DESCRIPTION: Parse AML (pointed to by the current parser state) and return * a tree of ops. * ******************************************************************************/ ACPI_STATUS AcpiPsParseLoop ( ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_PARSE_OBJECT *Op = NULL; /* current op */ ACPI_PARSE_STATE *ParserState; UINT8 *AmlOpStart = NULL; UINT8 OpcodeLength; ACPI_FUNCTION_TRACE_PTR (PsParseLoop, WalkState); if (WalkState->DescendingCallback == NULL) { return_ACPI_STATUS (AE_BAD_PARAMETER); } ParserState = &WalkState->ParserState; WalkState->ArgTypes = 0; #ifndef ACPI_CONSTANT_EVAL_ONLY if (WalkState->WalkType & ACPI_WALK_METHOD_RESTART) { /* We are restarting a preempted control method */ if (AcpiPsHasCompletedScope (ParserState)) { /* * We must check if a predicate to an IF or WHILE statement * was just completed */ if ((ParserState->Scope->ParseScope.Op) && ((ParserState->Scope->ParseScope.Op->Common.AmlOpcode == AML_IF_OP) || (ParserState->Scope->ParseScope.Op->Common.AmlOpcode == AML_WHILE_OP)) && (WalkState->ControlState) && (WalkState->ControlState->Common.State == ACPI_CONTROL_PREDICATE_EXECUTING)) { /* * A predicate was just completed, get the value of the * predicate and branch based on that value */ WalkState->Op = NULL; Status = AcpiDsGetPredicateValue (WalkState, ACPI_TO_POINTER (TRUE)); if (ACPI_FAILURE (Status) && !ACPI_CNTL_EXCEPTION (Status)) { if (Status == AE_AML_NO_RETURN_VALUE) { ACPI_EXCEPTION ((AE_INFO, Status, "Invoked method did not return a value")); } ACPI_EXCEPTION ((AE_INFO, Status, "GetPredicate Failed")); return_ACPI_STATUS (Status); } Status = AcpiPsNextParseState (WalkState, Op, Status); } AcpiPsPopScope (ParserState, &Op, &WalkState->ArgTypes, &WalkState->ArgCount); ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Popped scope, Op=%p\n", Op)); } else if (WalkState->PrevOp) { /* We were in the middle of an op */ Op = WalkState->PrevOp; WalkState->ArgTypes = WalkState->PrevArgTypes; } } #endif /* Iterative parsing loop, while there is more AML to process: */ while ((ParserState->Aml < ParserState->AmlEnd) || (Op)) { ASL_CV_CAPTURE_COMMENTS (WalkState); AmlOpStart = ParserState->Aml; if (!Op) { Status = AcpiPsCreateOp (WalkState, AmlOpStart, &Op); if (ACPI_FAILURE (Status)) { /* * ACPI_PARSE_MODULE_LEVEL means that we are loading a table by * executing it as a control method. However, if we encounter * an error while loading the table, we need to keep trying to * load the table rather than aborting the table load. Set the * status to AE_OK to proceed with the table load. */ if ((WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL) && ((Status == AE_ALREADY_EXISTS) || (Status == AE_NOT_FOUND))) { Status = AE_OK; } if (Status == AE_CTRL_PARSE_CONTINUE) { continue; } if (Status == AE_CTRL_PARSE_PENDING) { Status = AE_OK; } if (Status == AE_CTRL_TERMINATE) { return_ACPI_STATUS (Status); } Status = AcpiPsCompleteOp (WalkState, &Op, Status); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (AcpiNsOpensScope ( AcpiPsGetOpcodeInfo (WalkState->Opcode)->ObjectType)) { /* * If the scope/device op fails to parse, skip the body of * the scope op because the parse failure indicates that * the device may not exist. */ ACPI_INFO (("Skipping parse of AML opcode: %s (0x%4.4X)", AcpiPsGetOpcodeName (WalkState->Opcode), WalkState->Opcode)); /* * Determine the opcode length before skipping the opcode. * An opcode can be 1 byte or 2 bytes in length. */ OpcodeLength = 1; if ((WalkState->Opcode & 0xFF00) == AML_EXTENDED_OPCODE) { OpcodeLength = 2; } WalkState->ParserState.Aml = WalkState->Aml + OpcodeLength; WalkState->ParserState.Aml = AcpiPsGetNextPackageEnd(&WalkState->ParserState); WalkState->Aml = WalkState->ParserState.Aml; } continue; } AcpiExStartTraceOpcode (Op, WalkState); } /* * Start ArgCount at zero because we don't know if there are * any args yet */ WalkState->ArgCount = 0; switch (Op->Common.AmlOpcode) { case AML_BYTE_OP: case AML_WORD_OP: case AML_DWORD_OP: case AML_QWORD_OP: break; default: ASL_CV_CAPTURE_COMMENTS (WalkState); break; } /* Are there any arguments that must be processed? */ if (WalkState->ArgTypes) { /* Get arguments */ Status = AcpiPsGetArguments (WalkState, AmlOpStart, Op); if (ACPI_FAILURE (Status)) { Status = AcpiPsCompleteOp (WalkState, &Op, Status); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if ((WalkState->ControlState) && ((WalkState->ControlState->Control.Opcode == AML_IF_OP) || (WalkState->ControlState->Control.Opcode == AML_WHILE_OP))) { /* * If the if/while op fails to parse, we will skip parsing * the body of the op. */ ParserState->Aml = WalkState->ControlState->Control.AmlPredicateStart + 1; ParserState->Aml = AcpiPsGetNextPackageEnd (ParserState); WalkState->Aml = ParserState->Aml; ACPI_ERROR ((AE_INFO, "Skipping While/If block")); if (*WalkState->Aml == AML_ELSE_OP) { ACPI_ERROR ((AE_INFO, "Skipping Else block")); WalkState->ParserState.Aml = WalkState->Aml + 1; WalkState->ParserState.Aml = AcpiPsGetNextPackageEnd (ParserState); WalkState->Aml = ParserState->Aml; } ACPI_FREE(AcpiUtPopGenericState (&WalkState->ControlState)); } Op = NULL; continue; } } /* Check for arguments that need to be processed */ ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Parseloop: argument count: %8.8X\n", WalkState->ArgCount)); if (WalkState->ArgCount) { /* * There are arguments (complex ones), push Op and * prepare for argument */ Status = AcpiPsPushScope (ParserState, Op, WalkState->ArgTypes, WalkState->ArgCount); if (ACPI_FAILURE (Status)) { Status = AcpiPsCompleteOp (WalkState, &Op, Status); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } continue; } Op = NULL; continue; } /* * All arguments have been processed -- Op is complete, * prepare for next */ WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (WalkState->OpInfo->Flags & AML_NAMED) { if (Op->Common.AmlOpcode == AML_REGION_OP || Op->Common.AmlOpcode == AML_DATA_REGION_OP) { /* * Skip parsing of control method or opregion body, * because we don't have enough info in the first pass * to parse them correctly. * * Completed parsing an OpRegion declaration, we now * know the length. */ Op->Named.Length = (UINT32) (ParserState->Aml - Op->Named.Data); } } if (WalkState->OpInfo->Flags & AML_CREATE) { /* * Backup to beginning of CreateXXXfield declaration (1 for * Opcode) * * BodyLength is unknown until we parse the body */ Op->Named.Length = (UINT32) (ParserState->Aml - Op->Named.Data); } if (Op->Common.AmlOpcode == AML_BANK_FIELD_OP) { /* * Backup to beginning of BankField declaration * * BodyLength is unknown until we parse the body */ Op->Named.Length = (UINT32) (ParserState->Aml - Op->Named.Data); } /* This op complete, notify the dispatcher */ if (WalkState->AscendingCallback != NULL) { WalkState->Op = Op; WalkState->Opcode = Op->Common.AmlOpcode; Status = WalkState->AscendingCallback (WalkState); Status = AcpiPsNextParseState (WalkState, Op, Status); if (Status == AE_CTRL_PENDING) { Status = AE_OK; } else if ((WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL) && (ACPI_AML_EXCEPTION(Status) || Status == AE_ALREADY_EXISTS || Status == AE_NOT_FOUND)) { /* * ACPI_PARSE_MODULE_LEVEL flag means that we are currently * loading a table by executing it as a control method. * However, if we encounter an error while loading the table, * we need to keep trying to load the table rather than * aborting the table load (setting the status to AE_OK * continues the table load). If we get a failure at this * point, it means that the dispatcher got an error while * trying to execute the Op. */ Status = AE_OK; } } Status = AcpiPsCompleteOp (WalkState, &Op, Status); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* while ParserState->Aml */ Status = AcpiPsCompleteFinalOp (WalkState, Op, Status); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/parser/pstree.c0000775000175000017500000002131214773714133022170 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: pstree - Parser op tree manipulation/traversal/search * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acconvert.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("pstree") /* Local prototypes */ #ifdef ACPI_OBSOLETE_FUNCTIONS ACPI_PARSE_OBJECT * AcpiPsGetChild ( ACPI_PARSE_OBJECT *op); #endif /******************************************************************************* * * FUNCTION: AcpiPsGetArg * * PARAMETERS: Op - Get an argument for this op * Argn - Nth argument to get * * RETURN: The argument (as an Op object). NULL if argument does not exist * * DESCRIPTION: Get the specified op's argument. * ******************************************************************************/ ACPI_PARSE_OBJECT * AcpiPsGetArg ( ACPI_PARSE_OBJECT *Op, UINT32 Argn) { ACPI_PARSE_OBJECT *Arg = NULL; const ACPI_OPCODE_INFO *OpInfo; ACPI_FUNCTION_ENTRY (); /* if (Op->Common.AmlOpcode == AML_INT_CONNECTION_OP) { return (Op->Common.Value.Arg); } */ /* Get the info structure for this opcode */ OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (OpInfo->Class == AML_CLASS_UNKNOWN) { /* Invalid opcode or ASCII character */ return (NULL); } /* Check if this opcode requires argument sub-objects */ if (!(OpInfo->Flags & AML_HAS_ARGS)) { /* Has no linked argument objects */ return (NULL); } /* Get the requested argument object */ Arg = Op->Common.Value.Arg; while (Arg && Argn) { Argn--; Arg = Arg->Common.Next; } return (Arg); } /******************************************************************************* * * FUNCTION: AcpiPsAppendArg * * PARAMETERS: Op - Append an argument to this Op. * Arg - Argument Op to append * * RETURN: None. * * DESCRIPTION: Append an argument to an op's argument list (a NULL arg is OK) * ******************************************************************************/ void AcpiPsAppendArg ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *Arg) { ACPI_PARSE_OBJECT *PrevArg; const ACPI_OPCODE_INFO *OpInfo; ACPI_FUNCTION_TRACE (PsAppendArg); if (!Op) { return_VOID; } /* Get the info structure for this opcode */ OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (OpInfo->Class == AML_CLASS_UNKNOWN) { /* Invalid opcode */ ACPI_ERROR ((AE_INFO, "Invalid AML Opcode: 0x%2.2X", Op->Common.AmlOpcode)); return_VOID; } /* Check if this opcode requires argument sub-objects */ if (!(OpInfo->Flags & AML_HAS_ARGS)) { /* Has no linked argument objects */ return_VOID; } /* Append the argument to the linked argument list */ if (Op->Common.Value.Arg) { /* Append to existing argument list */ PrevArg = Op->Common.Value.Arg; while (PrevArg->Common.Next) { PrevArg = PrevArg->Common.Next; } PrevArg->Common.Next = Arg; } else { /* No argument list, this will be the first argument */ Op->Common.Value.Arg = Arg; } /* Set the parent in this arg and any args linked after it */ while (Arg) { Arg->Common.Parent = Op; Arg = Arg->Common.Next; Op->Common.ArgListLength++; } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiPsGetDepthNext * * PARAMETERS: Origin - Root of subtree to search * Op - Last (previous) Op that was found * * RETURN: Next Op found in the search. * * DESCRIPTION: Get next op in tree (walking the tree in depth-first order) * Return NULL when reaching "origin" or when walking up from root * ******************************************************************************/ ACPI_PARSE_OBJECT * AcpiPsGetDepthNext ( ACPI_PARSE_OBJECT *Origin, ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next = NULL; ACPI_PARSE_OBJECT *Parent; ACPI_PARSE_OBJECT *Arg; ACPI_FUNCTION_ENTRY (); if (!Op) { return (NULL); } /* Look for an argument or child */ Next = AcpiPsGetArg (Op, 0); if (Next) { ASL_CV_LABEL_FILENODE (Next); return (Next); } /* Look for a sibling */ Next = Op->Common.Next; if (Next) { ASL_CV_LABEL_FILENODE (Next); return (Next); } /* Look for a sibling of parent */ Parent = Op->Common.Parent; while (Parent) { Arg = AcpiPsGetArg (Parent, 0); while (Arg && (Arg != Origin) && (Arg != Op)) { ASL_CV_LABEL_FILENODE (Arg); Arg = Arg->Common.Next; } if (Arg == Origin) { /* Reached parent of origin, end search */ return (NULL); } if (Parent->Common.Next) { /* Found sibling of parent */ ASL_CV_LABEL_FILENODE (Parent->Common.Next); return (Parent->Common.Next); } Op = Parent; Parent = Parent->Common.Parent; } ASL_CV_LABEL_FILENODE (Next); return (Next); } #ifdef ACPI_OBSOLETE_FUNCTIONS /******************************************************************************* * * FUNCTION: AcpiPsGetChild * * PARAMETERS: Op - Get the child of this Op * * RETURN: Child Op, Null if none is found. * * DESCRIPTION: Get op's children or NULL if none * ******************************************************************************/ ACPI_PARSE_OBJECT * AcpiPsGetChild ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Child = NULL; ACPI_FUNCTION_ENTRY (); switch (Op->Common.AmlOpcode) { case AML_SCOPE_OP: case AML_ELSE_OP: case AML_DEVICE_OP: case AML_THERMAL_ZONE_OP: case AML_INT_METHODCALL_OP: Child = AcpiPsGetArg (Op, 0); break; case AML_BUFFER_OP: case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: case AML_METHOD_OP: case AML_IF_OP: case AML_WHILE_OP: case AML_FIELD_OP: Child = AcpiPsGetArg (Op, 1); break; case AML_POWER_RESOURCE_OP: case AML_INDEX_FIELD_OP: Child = AcpiPsGetArg (Op, 2); break; case AML_PROCESSOR_OP: case AML_BANK_FIELD_OP: Child = AcpiPsGetArg (Op, 3); break; default: /* All others have no children */ break; } return (Child); } #endif acpica-unix-20250404/source/components/parser/psutils.c0000775000175000017500000001703314773714133022376 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: psutils - Parser miscellaneous utilities (Parser only) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acconvert.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("psutils") /******************************************************************************* * * FUNCTION: AcpiPsCreateScopeOp * * PARAMETERS: None * * RETURN: A new Scope object, null on failure * * DESCRIPTION: Create a Scope and associated namepath op with the root name * ******************************************************************************/ ACPI_PARSE_OBJECT * AcpiPsCreateScopeOp ( UINT8 *Aml) { ACPI_PARSE_OBJECT *ScopeOp; ScopeOp = AcpiPsAllocOp (AML_SCOPE_OP, Aml); if (!ScopeOp) { return (NULL); } ScopeOp->Named.Name = ACPI_ROOT_NAME; return (ScopeOp); } /******************************************************************************* * * FUNCTION: AcpiPsInitOp * * PARAMETERS: Op - A newly allocated Op object * Opcode - Opcode to store in the Op * * RETURN: None * * DESCRIPTION: Initialize a parse (Op) object * ******************************************************************************/ void AcpiPsInitOp ( ACPI_PARSE_OBJECT *Op, UINT16 Opcode) { ACPI_FUNCTION_ENTRY (); Op->Common.DescriptorType = ACPI_DESC_TYPE_PARSER; Op->Common.AmlOpcode = Opcode; ACPI_DISASM_ONLY_MEMBERS (AcpiUtSafeStrncpy (Op->Common.AmlOpName, (AcpiPsGetOpcodeInfo (Opcode))->Name, sizeof (Op->Common.AmlOpName))); } /******************************************************************************* * * FUNCTION: AcpiPsAllocOp * * PARAMETERS: Opcode - Opcode that will be stored in the new Op * Aml - Address of the opcode * * RETURN: Pointer to the new Op, null on failure * * DESCRIPTION: Allocate an acpi_op, choose op type (and thus size) based on * opcode. A cache of opcodes is available for the pure * GENERIC_OP, since this is by far the most commonly used. * ******************************************************************************/ ACPI_PARSE_OBJECT* AcpiPsAllocOp ( UINT16 Opcode, UINT8 *Aml) { ACPI_PARSE_OBJECT *Op; const ACPI_OPCODE_INFO *OpInfo; UINT8 Flags = ACPI_PARSEOP_GENERIC; ACPI_FUNCTION_ENTRY (); OpInfo = AcpiPsGetOpcodeInfo (Opcode); /* Determine type of ParseOp required */ if (OpInfo->Flags & AML_DEFER) { Flags = ACPI_PARSEOP_DEFERRED; } else if (OpInfo->Flags & AML_NAMED) { Flags = ACPI_PARSEOP_NAMED_OBJECT; } else if (Opcode == AML_INT_BYTELIST_OP) { Flags = ACPI_PARSEOP_BYTELIST; } /* Allocate the minimum required size object */ if (Flags == ACPI_PARSEOP_GENERIC) { /* The generic op (default) is by far the most common (16 to 1) */ Op = AcpiOsAcquireObject (AcpiGbl_PsNodeCache); } else { /* Extended parseop */ Op = AcpiOsAcquireObject (AcpiGbl_PsNodeExtCache); } /* Initialize the Op */ if (Op) { AcpiPsInitOp (Op, Opcode); Op->Common.Aml = Aml; Op->Common.Flags = Flags; ASL_CV_CLEAR_OP_COMMENTS(Op); if (Opcode == AML_SCOPE_OP) { AcpiGbl_CurrentScope = Op; } if (AcpiGbl_CaptureComments) { ASL_CV_TRANSFER_COMMENTS (Op); } } return (Op); } /******************************************************************************* * * FUNCTION: AcpiPsFreeOp * * PARAMETERS: Op - Op to be freed * * RETURN: None. * * DESCRIPTION: Free an Op object. Either put it on the GENERIC_OP cache list * or actually free it. * ******************************************************************************/ void AcpiPsFreeOp ( ACPI_PARSE_OBJECT *Op) { ACPI_FUNCTION_NAME (PsFreeOp); ASL_CV_CLEAR_OP_COMMENTS(Op); if (Op->Common.AmlOpcode == AML_INT_RETURN_VALUE_OP) { ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "Free retval op: %p\n", Op)); } if (Op->Common.Flags & ACPI_PARSEOP_GENERIC) { (void) AcpiOsReleaseObject (AcpiGbl_PsNodeCache, Op); } else { (void) AcpiOsReleaseObject (AcpiGbl_PsNodeExtCache, Op); } } /******************************************************************************* * * FUNCTION: Utility functions * * DESCRIPTION: Low level character and object functions * ******************************************************************************/ /* * Is "c" a namestring lead character? */ BOOLEAN AcpiPsIsLeadingChar ( UINT32 c) { return ((BOOLEAN) (c == '_' || (c >= 'A' && c <= 'Z'))); } /* * Get op's name (4-byte name segment) or 0 if unnamed */ UINT32 AcpiPsGetName ( ACPI_PARSE_OBJECT *Op) { /* The "generic" object has no name associated with it */ if (Op->Common.Flags & ACPI_PARSEOP_GENERIC) { return (0); } /* Only the "Extended" parse objects have a name */ return (Op->Named.Name); } /* * Set op's name */ void AcpiPsSetName ( ACPI_PARSE_OBJECT *Op, UINT32 name) { /* The "generic" object has no name associated with it */ if (Op->Common.Flags & ACPI_PARSEOP_GENERIC) { return; } Op->Named.Name = name; } acpica-unix-20250404/source/components/parser/psopcode.c0000775000175000017500000010163214773714133022506 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: psopcode - Parser/Interpreter opcode information table * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acopcode.h" #include "amlcode.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("psopcode") /******************************************************************************* * * NAME: AcpiGbl_AmlOpInfo * * DESCRIPTION: Opcode table. Each entry contains * The name is a simple ascii string, the operand specifier is an * ascii string with one letter per operand. The letter specifies * the operand type. * ******************************************************************************/ /* * Summary of opcode types/flags * Opcodes that have associated namespace objects (AML_NSOBJECT flag) AML_SCOPE_OP AML_DEVICE_OP AML_THERMAL_ZONE_OP AML_METHOD_OP AML_POWER_RESOURCE_OP AML_PROCESSOR_OP AML_FIELD_OP AML_INDEX_FIELD_OP AML_BANK_FIELD_OP AML_NAME_OP AML_ALIAS_OP AML_MUTEX_OP AML_EVENT_OP AML_REGION_OP AML_CREATE_FIELD_OP AML_CREATE_BIT_FIELD_OP AML_CREATE_BYTE_FIELD_OP AML_CREATE_WORD_FIELD_OP AML_CREATE_DWORD_FIELD_OP AML_CREATE_QWORD_FIELD_OP AML_INT_NAMEDFIELD_OP AML_INT_METHODCALL_OP AML_INT_NAMEPATH_OP Opcodes that are "namespace" opcodes (AML_NSOPCODE flag) AML_SCOPE_OP AML_DEVICE_OP AML_THERMAL_ZONE_OP AML_METHOD_OP AML_POWER_RESOURCE_OP AML_PROCESSOR_OP AML_FIELD_OP AML_INDEX_FIELD_OP AML_BANK_FIELD_OP AML_NAME_OP AML_ALIAS_OP AML_MUTEX_OP AML_EVENT_OP AML_REGION_OP AML_INT_NAMEDFIELD_OP Opcodes that have an associated namespace node (AML_NSNODE flag) AML_SCOPE_OP AML_DEVICE_OP AML_THERMAL_ZONE_OP AML_METHOD_OP AML_POWER_RESOURCE_OP AML_PROCESSOR_OP AML_NAME_OP AML_ALIAS_OP AML_MUTEX_OP AML_EVENT_OP AML_REGION_OP AML_CREATE_FIELD_OP AML_CREATE_BIT_FIELD_OP AML_CREATE_BYTE_FIELD_OP AML_CREATE_WORD_FIELD_OP AML_CREATE_DWORD_FIELD_OP AML_CREATE_QWORD_FIELD_OP AML_INT_NAMEDFIELD_OP AML_INT_METHODCALL_OP AML_INT_NAMEPATH_OP Opcodes that define named ACPI objects (AML_NAMED flag) AML_SCOPE_OP AML_DEVICE_OP AML_THERMAL_ZONE_OP AML_METHOD_OP AML_POWER_RESOURCE_OP AML_PROCESSOR_OP AML_NAME_OP AML_ALIAS_OP AML_MUTEX_OP AML_EVENT_OP AML_REGION_OP AML_INT_NAMEDFIELD_OP Opcodes that contain executable AML as part of the definition that must be deferred until needed AML_METHOD_OP AML_VARIABLE_PACKAGE_OP AML_CREATE_FIELD_OP AML_CREATE_BIT_FIELD_OP AML_CREATE_BYTE_FIELD_OP AML_CREATE_WORD_FIELD_OP AML_CREATE_DWORD_FIELD_OP AML_CREATE_QWORD_FIELD_OP AML_REGION_OP AML_BUFFER_OP Field opcodes AML_CREATE_FIELD_OP AML_FIELD_OP AML_INDEX_FIELD_OP AML_BANK_FIELD_OP Field "Create" opcodes AML_CREATE_FIELD_OP AML_CREATE_BIT_FIELD_OP AML_CREATE_BYTE_FIELD_OP AML_CREATE_WORD_FIELD_OP AML_CREATE_DWORD_FIELD_OP AML_CREATE_QWORD_FIELD_OP ******************************************************************************/ /* * Master Opcode information table. A summary of everything we know about each * opcode, all in one place. */ const ACPI_OPCODE_INFO AcpiGbl_AmlOpInfo[AML_NUM_OPCODES] = { /*! [Begin] no source code translation */ /* Index Name Parser Args Interpreter Args ObjectType Class Type Flags */ /* 00 */ ACPI_OP ("Zero", ARGP_ZERO_OP, ARGI_ZERO_OP, ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT), /* 01 */ ACPI_OP ("One", ARGP_ONE_OP, ARGI_ONE_OP, ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT), /* 02 */ ACPI_OP ("Alias", ARGP_ALIAS_OP, ARGI_ALIAS_OP, ACPI_TYPE_LOCAL_ALIAS, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), /* 03 */ ACPI_OP ("Name", ARGP_NAME_OP, ARGI_NAME_OP, ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), /* 04 */ ACPI_OP ("ByteConst", ARGP_BYTE_OP, ARGI_BYTE_OP, ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, AML_TYPE_LITERAL, AML_CONSTANT), /* 05 */ ACPI_OP ("WordConst", ARGP_WORD_OP, ARGI_WORD_OP, ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, AML_TYPE_LITERAL, AML_CONSTANT), /* 06 */ ACPI_OP ("DwordConst", ARGP_DWORD_OP, ARGI_DWORD_OP, ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, AML_TYPE_LITERAL, AML_CONSTANT), /* 07 */ ACPI_OP ("String", ARGP_STRING_OP, ARGI_STRING_OP, ACPI_TYPE_STRING, AML_CLASS_ARGUMENT, AML_TYPE_LITERAL, AML_CONSTANT), /* 08 */ ACPI_OP ("Scope", ARGP_SCOPE_OP, ARGI_SCOPE_OP, ACPI_TYPE_LOCAL_SCOPE, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_NO_OBJ, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), /* 09 */ ACPI_OP ("Buffer", ARGP_BUFFER_OP, ARGI_BUFFER_OP, ACPI_TYPE_BUFFER, AML_CLASS_CREATE, AML_TYPE_CREATE_OBJECT, AML_HAS_ARGS | AML_DEFER | AML_CONSTANT), /* 0A */ ACPI_OP ("Package", ARGP_PACKAGE_OP, ARGI_PACKAGE_OP, ACPI_TYPE_PACKAGE, AML_CLASS_CREATE, AML_TYPE_CREATE_OBJECT, AML_HAS_ARGS | AML_DEFER | AML_CONSTANT), /* 0B */ ACPI_OP ("Method", ARGP_METHOD_OP, ARGI_METHOD_OP, ACPI_TYPE_METHOD, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED | AML_DEFER), /* 0C */ ACPI_OP ("Local0", ARGP_LOCAL0, ARGI_LOCAL0, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_LOCAL_VARIABLE, 0), /* 0D */ ACPI_OP ("Local1", ARGP_LOCAL1, ARGI_LOCAL1, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_LOCAL_VARIABLE, 0), /* 0E */ ACPI_OP ("Local2", ARGP_LOCAL2, ARGI_LOCAL2, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_LOCAL_VARIABLE, 0), /* 0F */ ACPI_OP ("Local3", ARGP_LOCAL3, ARGI_LOCAL3, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_LOCAL_VARIABLE, 0), /* 10 */ ACPI_OP ("Local4", ARGP_LOCAL4, ARGI_LOCAL4, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_LOCAL_VARIABLE, 0), /* 11 */ ACPI_OP ("Local5", ARGP_LOCAL5, ARGI_LOCAL5, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_LOCAL_VARIABLE, 0), /* 12 */ ACPI_OP ("Local6", ARGP_LOCAL6, ARGI_LOCAL6, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_LOCAL_VARIABLE, 0), /* 13 */ ACPI_OP ("Local7", ARGP_LOCAL7, ARGI_LOCAL7, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_LOCAL_VARIABLE, 0), /* 14 */ ACPI_OP ("Arg0", ARGP_ARG0, ARGI_ARG0, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_METHOD_ARGUMENT, 0), /* 15 */ ACPI_OP ("Arg1", ARGP_ARG1, ARGI_ARG1, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_METHOD_ARGUMENT, 0), /* 16 */ ACPI_OP ("Arg2", ARGP_ARG2, ARGI_ARG2, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_METHOD_ARGUMENT, 0), /* 17 */ ACPI_OP ("Arg3", ARGP_ARG3, ARGI_ARG3, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_METHOD_ARGUMENT, 0), /* 18 */ ACPI_OP ("Arg4", ARGP_ARG4, ARGI_ARG4, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_METHOD_ARGUMENT, 0), /* 19 */ ACPI_OP ("Arg5", ARGP_ARG5, ARGI_ARG5, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_METHOD_ARGUMENT, 0), /* 1A */ ACPI_OP ("Arg6", ARGP_ARG6, ARGI_ARG6, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_METHOD_ARGUMENT, 0), /* 1B */ ACPI_OP ("Store", ARGP_STORE_OP, ARGI_STORE_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R), /* 1C */ ACPI_OP ("RefOf", ARGP_REF_OF_OP, ARGI_REF_OF_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R), /* 1D */ ACPI_OP ("Add", ARGP_ADD_OP, ARGI_ADD_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 1E */ ACPI_OP ("Concatenate", ARGP_CONCAT_OP, ARGI_CONCAT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), /* 1F */ ACPI_OP ("Subtract", ARGP_SUBTRACT_OP, ARGI_SUBTRACT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 20 */ ACPI_OP ("Increment", ARGP_INCREMENT_OP, ARGI_INCREMENT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT), /* 21 */ ACPI_OP ("Decrement", ARGP_DECREMENT_OP, ARGI_DECREMENT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT), /* 22 */ ACPI_OP ("Multiply", ARGP_MULTIPLY_OP, ARGI_MULTIPLY_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 23 */ ACPI_OP ("Divide", ARGP_DIVIDE_OP, ARGI_DIVIDE_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_2T_1R, AML_FLAGS_EXEC_2A_2T_1R | AML_CONSTANT), /* 24 */ ACPI_OP ("ShiftLeft", ARGP_SHIFT_LEFT_OP, ARGI_SHIFT_LEFT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 25 */ ACPI_OP ("ShiftRight", ARGP_SHIFT_RIGHT_OP, ARGI_SHIFT_RIGHT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 26 */ ACPI_OP ("And", ARGP_BIT_AND_OP, ARGI_BIT_AND_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 27 */ ACPI_OP ("NAnd", ARGP_BIT_NAND_OP, ARGI_BIT_NAND_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 28 */ ACPI_OP ("Or", ARGP_BIT_OR_OP, ARGI_BIT_OR_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 29 */ ACPI_OP ("NOr", ARGP_BIT_NOR_OP, ARGI_BIT_NOR_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 2A */ ACPI_OP ("XOr", ARGP_BIT_XOR_OP, ARGI_BIT_XOR_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), /* 2B */ ACPI_OP ("Not", ARGP_BIT_NOT_OP, ARGI_BIT_NOT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), /* 2C */ ACPI_OP ("FindSetLeftBit", ARGP_FIND_SET_LEFT_BIT_OP, ARGI_FIND_SET_LEFT_BIT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), /* 2D */ ACPI_OP ("FindSetRightBit", ARGP_FIND_SET_RIGHT_BIT_OP,ARGI_FIND_SET_RIGHT_BIT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), /* 2E */ ACPI_OP ("DerefOf", ARGP_DEREF_OF_OP, ARGI_DEREF_OF_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R), /* 2F */ ACPI_OP ("Notify", ARGP_NOTIFY_OP, ARGI_NOTIFY_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_0R, AML_FLAGS_EXEC_2A_0T_0R), /* 30 */ ACPI_OP ("SizeOf", ARGP_SIZE_OF_OP, ARGI_SIZE_OF_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R | AML_NO_OPERAND_RESOLVE), /* 31 */ ACPI_OP ("Index", ARGP_INDEX_OP, ARGI_INDEX_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R), /* 32 */ ACPI_OP ("Match", ARGP_MATCH_OP, ARGI_MATCH_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_6A_0T_1R, AML_FLAGS_EXEC_6A_0T_1R | AML_CONSTANT), /* 33 */ ACPI_OP ("CreateDWordField", ARGP_CREATE_DWORD_FIELD_OP,ARGI_CREATE_DWORD_FIELD_OP, ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | AML_DEFER | AML_CREATE), /* 34 */ ACPI_OP ("CreateWordField", ARGP_CREATE_WORD_FIELD_OP, ARGI_CREATE_WORD_FIELD_OP, ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | AML_DEFER | AML_CREATE), /* 35 */ ACPI_OP ("CreateByteField", ARGP_CREATE_BYTE_FIELD_OP, ARGI_CREATE_BYTE_FIELD_OP, ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | AML_DEFER | AML_CREATE), /* 36 */ ACPI_OP ("CreateBitField", ARGP_CREATE_BIT_FIELD_OP, ARGI_CREATE_BIT_FIELD_OP, ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | AML_DEFER | AML_CREATE), /* 37 */ ACPI_OP ("ObjectType", ARGP_OBJECT_TYPE_OP, ARGI_OBJECT_TYPE_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R | AML_NO_OPERAND_RESOLVE), /* 38 */ ACPI_OP ("LAnd", ARGP_LAND_OP, ARGI_LAND_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL_NUMERIC | AML_CONSTANT), /* 39 */ ACPI_OP ("LOr", ARGP_LOR_OP, ARGI_LOR_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL_NUMERIC | AML_CONSTANT), /* 3A */ ACPI_OP ("LNot", ARGP_LNOT_OP, ARGI_LNOT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT), /* 3B */ ACPI_OP ("LEqual", ARGP_LEQUAL_OP, ARGI_LEQUAL_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT), /* 3C */ ACPI_OP ("LGreater", ARGP_LGREATER_OP, ARGI_LGREATER_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT), /* 3D */ ACPI_OP ("LLess", ARGP_LLESS_OP, ARGI_LLESS_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT), /* 3E */ ACPI_OP ("If", ARGP_IF_OP, ARGI_IF_OP, ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS), /* 3F */ ACPI_OP ("Else", ARGP_ELSE_OP, ARGI_ELSE_OP, ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS), /* 40 */ ACPI_OP ("While", ARGP_WHILE_OP, ARGI_WHILE_OP, ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS), /* 41 */ ACPI_OP ("Noop", ARGP_NOOP_OP, ARGI_NOOP_OP, ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0), /* 42 */ ACPI_OP ("Return", ARGP_RETURN_OP, ARGI_RETURN_OP, ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS), /* 43 */ ACPI_OP ("Break", ARGP_BREAK_OP, ARGI_BREAK_OP, ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0), /* 44 */ ACPI_OP ("BreakPoint", ARGP_BREAK_POINT_OP, ARGI_BREAK_POINT_OP, ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0), /* 45 */ ACPI_OP ("Ones", ARGP_ONES_OP, ARGI_ONES_OP, ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT), /* Prefixed opcodes (Two-byte opcodes with a prefix op) */ /* 46 */ ACPI_OP ("Mutex", ARGP_MUTEX_OP, ARGI_MUTEX_OP, ACPI_TYPE_MUTEX, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), /* 47 */ ACPI_OP ("Event", ARGP_EVENT_OP, ARGI_EVENT_OP, ACPI_TYPE_EVENT, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE, AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED ), /* 48 */ ACPI_OP ("CondRefOf", ARGP_COND_REF_OF_OP, ARGI_COND_REF_OF_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R), /* 49 */ ACPI_OP ("CreateField", ARGP_CREATE_FIELD_OP, ARGI_CREATE_FIELD_OP, ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | AML_DEFER | AML_FIELD | AML_CREATE), /* 4A */ ACPI_OP ("Load", ARGP_LOAD_OP, ARGI_LOAD_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R), /* 4B */ ACPI_OP ("Stall", ARGP_STALL_OP, ARGI_STALL_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R), /* 4C */ ACPI_OP ("Sleep", ARGP_SLEEP_OP, ARGI_SLEEP_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R), /* 4D */ ACPI_OP ("Acquire", ARGP_ACQUIRE_OP, ARGI_ACQUIRE_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R), /* 4E */ ACPI_OP ("Signal", ARGP_SIGNAL_OP, ARGI_SIGNAL_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R), /* 4F */ ACPI_OP ("Wait", ARGP_WAIT_OP, ARGI_WAIT_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R), /* 50 */ ACPI_OP ("Reset", ARGP_RESET_OP, ARGI_RESET_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R), /* 51 */ ACPI_OP ("Release", ARGP_RELEASE_OP, ARGI_RELEASE_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R), /* 52 */ ACPI_OP ("FromBCD", ARGP_FROM_BCD_OP, ARGI_FROM_BCD_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), /* 53 */ ACPI_OP ("ToBCD", ARGP_TO_BCD_OP, ARGI_TO_BCD_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), /* 54 */ ACPI_OP ("Unload", ARGP_UNLOAD_OP, ARGI_UNLOAD_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R), /* 55 */ ACPI_OP ("Revision", ARGP_REVISION_OP, ARGI_REVISION_OP, ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, 0), /* 56 */ ACPI_OP ("Debug", ARGP_DEBUG_OP, ARGI_DEBUG_OP, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, 0), /* 57 */ ACPI_OP ("Fatal", ARGP_FATAL_OP, ARGI_FATAL_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_3A_0T_0R, AML_FLAGS_EXEC_3A_0T_0R), /* 58 */ ACPI_OP ("OperationRegion", ARGP_REGION_OP, ARGI_REGION_OP, ACPI_TYPE_REGION, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED | AML_DEFER), /* 59 */ ACPI_OP ("Field", ARGP_FIELD_OP, ARGI_FIELD_OP, ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_FIELD), /* 5A */ ACPI_OP ("Device", ARGP_DEVICE_OP, ARGI_DEVICE_OP, ACPI_TYPE_DEVICE, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_NO_OBJ, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), /* 5B */ ACPI_OP ("Processor", ARGP_PROCESSOR_OP, ARGI_PROCESSOR_OP, ACPI_TYPE_PROCESSOR, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), /* 5C */ ACPI_OP ("PowerResource", ARGP_POWER_RES_OP, ARGI_POWER_RES_OP, ACPI_TYPE_POWER, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), /* 5D */ ACPI_OP ("ThermalZone", ARGP_THERMAL_ZONE_OP, ARGI_THERMAL_ZONE_OP, ACPI_TYPE_THERMAL, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_NO_OBJ, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), /* 5E */ ACPI_OP ("IndexField", ARGP_INDEX_FIELD_OP, ARGI_INDEX_FIELD_OP, ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_FIELD), /* 5F */ ACPI_OP ("BankField", ARGP_BANK_FIELD_OP, ARGI_BANK_FIELD_OP, ACPI_TYPE_LOCAL_BANK_FIELD, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_FIELD | AML_DEFER), /* Internal opcodes that map to invalid AML opcodes */ /* 60 */ ACPI_OP ("LNotEqual", ARGP_LNOTEQUAL_OP, ARGI_LNOTEQUAL_OP, ACPI_TYPE_ANY, AML_CLASS_INTERNAL, AML_TYPE_BOGUS, AML_HAS_ARGS | AML_CONSTANT), /* 61 */ ACPI_OP ("LLessEqual", ARGP_LLESSEQUAL_OP, ARGI_LLESSEQUAL_OP, ACPI_TYPE_ANY, AML_CLASS_INTERNAL, AML_TYPE_BOGUS, AML_HAS_ARGS | AML_CONSTANT), /* 62 */ ACPI_OP ("LGreaterEqual", ARGP_LGREATEREQUAL_OP, ARGI_LGREATEREQUAL_OP, ACPI_TYPE_ANY, AML_CLASS_INTERNAL, AML_TYPE_BOGUS, AML_HAS_ARGS | AML_CONSTANT), /* 63 */ ACPI_OP ("-NamePath-", ARGP_NAMEPATH_OP, ARGI_NAMEPATH_OP, ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, AML_TYPE_LITERAL, AML_NSOBJECT | AML_NSNODE ), /* 64 */ ACPI_OP ("-MethodCall-", ARGP_METHODCALL_OP, ARGI_METHODCALL_OP, ACPI_TYPE_METHOD, AML_CLASS_METHOD_CALL, AML_TYPE_METHOD_CALL, AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE), /* 65 */ ACPI_OP ("-ByteList-", ARGP_BYTELIST_OP, ARGI_BYTELIST_OP, ACPI_TYPE_ANY, AML_CLASS_ARGUMENT, AML_TYPE_LITERAL, 0), /* 66 */ ACPI_OP ("-ReservedField-", ARGP_RESERVEDFIELD_OP, ARGI_RESERVEDFIELD_OP, ACPI_TYPE_ANY, AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0), /* 67 */ ACPI_OP ("-NamedField-", ARGP_NAMEDFIELD_OP, ARGI_NAMEDFIELD_OP, ACPI_TYPE_ANY, AML_CLASS_INTERNAL, AML_TYPE_BOGUS, AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED ), /* 68 */ ACPI_OP ("-AccessField-", ARGP_ACCESSFIELD_OP, ARGI_ACCESSFIELD_OP, ACPI_TYPE_ANY, AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0), /* 69 */ ACPI_OP ("-StaticString", ARGP_STATICSTRING_OP, ARGI_STATICSTRING_OP, ACPI_TYPE_ANY, AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0), /* 6A */ ACPI_OP ("-Return Value-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY, AML_CLASS_RETURN_VALUE, AML_TYPE_RETURN, AML_HAS_ARGS | AML_HAS_RETVAL), /* 6B */ ACPI_OP ("-UNKNOWN_OP-", ARG_NONE, ARG_NONE, ACPI_TYPE_INVALID, AML_CLASS_UNKNOWN, AML_TYPE_BOGUS, AML_HAS_ARGS), /* 6C */ ACPI_OP ("-ASCII_ONLY-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY, AML_CLASS_ASCII, AML_TYPE_BOGUS, AML_HAS_ARGS), /* 6D */ ACPI_OP ("-PREFIX_ONLY-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY, AML_CLASS_PREFIX, AML_TYPE_BOGUS, AML_HAS_ARGS), /* ACPI 2.0 opcodes */ /* 6E */ ACPI_OP ("QwordConst", ARGP_QWORD_OP, ARGI_QWORD_OP, ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, AML_TYPE_LITERAL, AML_CONSTANT), /* 6F */ ACPI_OP ("Package", /* Var */ ARGP_VAR_PACKAGE_OP, ARGI_VAR_PACKAGE_OP, ACPI_TYPE_PACKAGE, AML_CLASS_CREATE, AML_TYPE_CREATE_OBJECT, AML_HAS_ARGS | AML_DEFER), /* 70 */ ACPI_OP ("ConcatenateResTemplate", ARGP_CONCAT_RES_OP, ARGI_CONCAT_RES_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), /* 71 */ ACPI_OP ("Mod", ARGP_MOD_OP, ARGI_MOD_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), /* 72 */ ACPI_OP ("CreateQWordField", ARGP_CREATE_QWORD_FIELD_OP,ARGI_CREATE_QWORD_FIELD_OP, ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | AML_DEFER | AML_CREATE), /* 73 */ ACPI_OP ("ToBuffer", ARGP_TO_BUFFER_OP, ARGI_TO_BUFFER_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), /* 74 */ ACPI_OP ("ToDecimalString", ARGP_TO_DEC_STR_OP, ARGI_TO_DEC_STR_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), /* 75 */ ACPI_OP ("ToHexString", ARGP_TO_HEX_STR_OP, ARGI_TO_HEX_STR_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), /* 76 */ ACPI_OP ("ToInteger", ARGP_TO_INTEGER_OP, ARGI_TO_INTEGER_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), /* 77 */ ACPI_OP ("ToString", ARGP_TO_STRING_OP, ARGI_TO_STRING_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), /* 78 */ ACPI_OP ("CopyObject", ARGP_COPY_OP, ARGI_COPY_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R), /* 79 */ ACPI_OP ("Mid", ARGP_MID_OP, ARGI_MID_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_3A_1T_1R, AML_FLAGS_EXEC_3A_1T_1R | AML_CONSTANT), /* 7A */ ACPI_OP ("Continue", ARGP_CONTINUE_OP, ARGI_CONTINUE_OP, ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0), /* 7B */ ACPI_OP ("LoadTable", ARGP_LOAD_TABLE_OP, ARGI_LOAD_TABLE_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_6A_0T_1R, AML_FLAGS_EXEC_6A_0T_1R), /* 7C */ ACPI_OP ("DataTableRegion", ARGP_DATA_REGION_OP, ARGI_DATA_REGION_OP, ACPI_TYPE_REGION, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED | AML_DEFER), /* 7D */ ACPI_OP ("[EvalSubTree]", ARGP_SCOPE_OP, ARGI_SCOPE_OP, ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_NO_OBJ, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE), /* ACPI 3.0 opcodes */ /* 7E */ ACPI_OP ("Timer", ARGP_TIMER_OP, ARGI_TIMER_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_0A_0T_1R, AML_FLAGS_EXEC_0A_0T_1R | AML_NO_OPERAND_RESOLVE), /* ACPI 5.0 opcodes */ /* 7F */ ACPI_OP ("-ConnectField-", ARGP_CONNECTFIELD_OP, ARGI_CONNECTFIELD_OP, ACPI_TYPE_ANY, AML_CLASS_INTERNAL, AML_TYPE_BOGUS, AML_HAS_ARGS), /* 80 */ ACPI_OP ("-ExtAccessField-", ARGP_CONNECTFIELD_OP, ARGI_CONNECTFIELD_OP, ACPI_TYPE_ANY, AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0), /* ACPI 6.0 opcodes */ /* 81 */ ACPI_OP ("External", ARGP_EXTERNAL_OP, ARGI_EXTERNAL_OP, ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE, AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), /* 82 */ ACPI_OP ("Comment", ARGP_COMMENT_OP, ARGI_COMMENT_OP, ACPI_TYPE_STRING, AML_CLASS_ARGUMENT, AML_TYPE_LITERAL, AML_CONSTANT) /*! [End] no source code translation !*/ }; acpica-unix-20250404/source/components/parser/psargs.c0000775000175000017500000007140614773714133022176 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: psargs - Parse AML opcode arguments * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acnamesp.h" #include "acdispat.h" #include "acconvert.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("psargs") /* Local prototypes */ static UINT32 AcpiPsGetNextPackageLength ( ACPI_PARSE_STATE *ParserState); static ACPI_PARSE_OBJECT * AcpiPsGetNextField ( ACPI_PARSE_STATE *ParserState); static void AcpiPsFreeFieldList ( ACPI_PARSE_OBJECT *Start); /******************************************************************************* * * FUNCTION: AcpiPsGetNextPackageLength * * PARAMETERS: ParserState - Current parser state object * * RETURN: Decoded package length. On completion, the AML pointer points * past the length byte or bytes. * * DESCRIPTION: Decode and return a package length field. * Note: Largest package length is 28 bits, from ACPI specification * ******************************************************************************/ static UINT32 AcpiPsGetNextPackageLength ( ACPI_PARSE_STATE *ParserState) { UINT8 *Aml = ParserState->Aml; UINT32 PackageLength = 0; UINT32 ByteCount; UINT8 ByteZeroMask = 0x3F; /* Default [0:5] */ ACPI_FUNCTION_TRACE (PsGetNextPackageLength); /* * Byte 0 bits [6:7] contain the number of additional bytes * used to encode the package length, either 0,1,2, or 3 */ ByteCount = (Aml[0] >> 6); ParserState->Aml += ((ACPI_SIZE) ByteCount + 1); /* Get bytes 3, 2, 1 as needed */ while (ByteCount) { /* * Final bit positions for the package length bytes: * Byte3->[20:27] * Byte2->[12:19] * Byte1->[04:11] * Byte0->[00:03] */ PackageLength |= (Aml[ByteCount] << ((ByteCount << 3) - 4)); ByteZeroMask = 0x0F; /* Use bits [0:3] of byte 0 */ ByteCount--; } /* Byte 0 is a special case, either bits [0:3] or [0:5] are used */ PackageLength |= (Aml[0] & ByteZeroMask); return_UINT32 (PackageLength); } /******************************************************************************* * * FUNCTION: AcpiPsGetNextPackageEnd * * PARAMETERS: ParserState - Current parser state object * * RETURN: Pointer to end-of-package +1 * * DESCRIPTION: Get next package length and return a pointer past the end of * the package. Consumes the package length field * ******************************************************************************/ UINT8 * AcpiPsGetNextPackageEnd ( ACPI_PARSE_STATE *ParserState) { UINT8 *Start = ParserState->Aml; UINT32 PackageLength; ACPI_FUNCTION_TRACE (PsGetNextPackageEnd); /* Function below updates ParserState->Aml */ PackageLength = AcpiPsGetNextPackageLength (ParserState); return_PTR (Start + PackageLength); /* end of package */ } /******************************************************************************* * * FUNCTION: AcpiPsGetNextNamestring * * PARAMETERS: ParserState - Current parser state object * * RETURN: Pointer to the start of the name string (pointer points into * the AML. * * DESCRIPTION: Get next raw namestring within the AML stream. Handles all name * prefix characters. Set parser state to point past the string. * (Name is consumed from the AML.) * ******************************************************************************/ char * AcpiPsGetNextNamestring ( ACPI_PARSE_STATE *ParserState) { UINT8 *Start = ParserState->Aml; UINT8 *End = ParserState->Aml; ACPI_FUNCTION_TRACE (PsGetNextNamestring); /* Point past any namestring prefix characters (backslash or carat) */ while (ACPI_IS_ROOT_PREFIX (*End) || ACPI_IS_PARENT_PREFIX (*End)) { End++; } /* Decode the path prefix character */ switch (*End) { case 0: /* NullName */ if (End == Start) { Start = NULL; } End++; break; case AML_DUAL_NAME_PREFIX: /* Two name segments */ End += 1 + (2 * ACPI_NAMESEG_SIZE); break; case AML_MULTI_NAME_PREFIX: /* Multiple name segments, 4 chars each, count in next byte */ End += 2 + (*(End + 1) * ACPI_NAMESEG_SIZE); break; default: /* Single name segment */ End += ACPI_NAMESEG_SIZE; break; } ParserState->Aml = End; return_PTR ((char *) Start); } /******************************************************************************* * * FUNCTION: AcpiPsGetNextNamepath * * PARAMETERS: ParserState - Current parser state object * Arg - Where the namepath will be stored * ArgCount - If the namepath points to a control method * the method's argument is returned here. * PossibleMethodCall - Whether the namepath can possibly be the * start of a method call * * RETURN: Status * * DESCRIPTION: Get next name (if method call, return # of required args). * Names are looked up in the internal namespace to determine * if the name represents a control method. If a method * is found, the number of arguments to the method is returned. * This information is critical for parsing to continue correctly. * ******************************************************************************/ ACPI_STATUS AcpiPsGetNextNamepath ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT *Arg, BOOLEAN PossibleMethodCall) { ACPI_STATUS Status; char *Path; ACPI_PARSE_OBJECT *NameOp; ACPI_OPERAND_OBJECT *MethodDesc; ACPI_NAMESPACE_NODE *Node; UINT8 *Start = ParserState->Aml; ACPI_FUNCTION_TRACE (PsGetNextNamepath); Path = AcpiPsGetNextNamestring (ParserState); AcpiPsInitOp (Arg, AML_INT_NAMEPATH_OP); /* Null path case is allowed, just exit */ if (!Path) { Arg->Common.Value.Name = Path; return_ACPI_STATUS (AE_OK); } /* * Lookup the name in the internal namespace, starting with the current * scope. We don't want to add anything new to the namespace here, * however, so we use MODE_EXECUTE. * Allow searching of the parent tree, but don't open a new scope - * we just want to lookup the object (must be mode EXECUTE to perform * the upsearch) */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, NULL, &Node); /* * If this name is a control method invocation, we must * setup the method call */ if (ACPI_SUCCESS (Status) && PossibleMethodCall && (Node->Type == ACPI_TYPE_METHOD)) { if ((GET_CURRENT_ARG_TYPE (WalkState->ArgTypes) == ARGP_SUPERNAME) || (GET_CURRENT_ARG_TYPE (WalkState->ArgTypes) == ARGP_TARGET)) { /* * AcpiPsGetNextNamestring has increased the AML pointer past * the method invocation namestring, so we need to restore the * saved AML pointer back to the original method invocation * namestring. */ WalkState->ParserState.Aml = Start; WalkState->ArgCount = 1; AcpiPsInitOp (Arg, AML_INT_METHODCALL_OP); } /* This name is actually a control method invocation */ MethodDesc = AcpiNsGetAttachedObject (Node); ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Control Method invocation %4.4s - %p Desc %p Path=%p\n", Node->Name.Ascii, Node, MethodDesc, Path)); NameOp = AcpiPsAllocOp (AML_INT_NAMEPATH_OP, Start); if (!NameOp) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Change Arg into a METHOD CALL and attach name to it */ AcpiPsInitOp (Arg, AML_INT_METHODCALL_OP); NameOp->Common.Value.Name = Path; /* Point METHODCALL/NAME to the METHOD Node */ NameOp->Common.Node = Node; AcpiPsAppendArg (Arg, NameOp); if (!MethodDesc) { ACPI_ERROR ((AE_INFO, "Control Method %p has no attached object", Node)); return_ACPI_STATUS (AE_AML_INTERNAL); } ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Control Method - %p Args %X\n", Node, MethodDesc->Method.ParamCount)); /* Get the number of arguments to expect */ WalkState->ArgCount = MethodDesc->Method.ParamCount; return_ACPI_STATUS (AE_OK); } /* * Special handling if the name was not found during the lookup - * some NotFound cases are allowed */ if (Status == AE_NOT_FOUND) { /* 1) NotFound is ok during load pass 1/2 (allow forward references) */ if ((WalkState->ParseFlags & ACPI_PARSE_MODE_MASK) != ACPI_PARSE_EXECUTE) { Status = AE_OK; } /* 2) NotFound during a CondRefOf(x) is ok by definition */ else if (WalkState->Op->Common.AmlOpcode == AML_CONDITIONAL_REF_OF_OP) { Status = AE_OK; } /* * 3) NotFound while building a Package is ok at this point, we * may flag as an error later if slack mode is not enabled. * (Some ASL code depends on allowing this behavior) */ else if ((Arg->Common.Parent) && ((Arg->Common.Parent->Common.AmlOpcode == AML_PACKAGE_OP) || (Arg->Common.Parent->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP))) { Status = AE_OK; } } /* Final exception check (may have been changed from code above) */ if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Path, Status); if ((WalkState->ParseFlags & ACPI_PARSE_MODE_MASK) == ACPI_PARSE_EXECUTE) { /* Report a control method execution error */ Status = AcpiDsMethodError (Status, WalkState); } } /* Save the namepath */ Arg->Common.Value.Name = Path; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiPsGetNextSimpleArg * * PARAMETERS: ParserState - Current parser state object * ArgType - The argument type (AML_*_ARG) * Arg - Where the argument is returned * * RETURN: None * * DESCRIPTION: Get the next simple argument (constant, string, or namestring) * ******************************************************************************/ void AcpiPsGetNextSimpleArg ( ACPI_PARSE_STATE *ParserState, UINT32 ArgType, ACPI_PARSE_OBJECT *Arg) { UINT32 Length; UINT16 Opcode; UINT8 *Aml = ParserState->Aml; ACPI_FUNCTION_TRACE_U32 (PsGetNextSimpleArg, ArgType); switch (ArgType) { case ARGP_BYTEDATA: /* Get 1 byte from the AML stream */ Opcode = AML_BYTE_OP; Arg->Common.Value.Integer = (UINT64) *Aml; Length = 1; break; case ARGP_WORDDATA: /* Get 2 bytes from the AML stream */ Opcode = AML_WORD_OP; ACPI_MOVE_16_TO_64 (&Arg->Common.Value.Integer, Aml); Length = 2; break; case ARGP_DWORDDATA: /* Get 4 bytes from the AML stream */ Opcode = AML_DWORD_OP; ACPI_MOVE_32_TO_64 (&Arg->Common.Value.Integer, Aml); Length = 4; break; case ARGP_QWORDDATA: /* Get 8 bytes from the AML stream */ Opcode = AML_QWORD_OP; ACPI_MOVE_64_TO_64 (&Arg->Common.Value.Integer, Aml); Length = 8; break; case ARGP_CHARLIST: /* Get a pointer to the string, point past the string */ Opcode = AML_STRING_OP; Arg->Common.Value.String = ACPI_CAST_PTR (char, Aml); /* Find the null terminator */ Length = 0; while (Aml[Length]) { Length++; } Length++; break; case ARGP_NAME: case ARGP_NAMESTRING: AcpiPsInitOp (Arg, AML_INT_NAMEPATH_OP); Arg->Common.Value.Name = AcpiPsGetNextNamestring (ParserState); return_VOID; default: ACPI_ERROR ((AE_INFO, "Invalid ArgType 0x%X", ArgType)); return_VOID; } AcpiPsInitOp (Arg, Opcode); ParserState->Aml += Length; return_VOID; } /******************************************************************************* * * FUNCTION: AcpiPsGetNextField * * PARAMETERS: ParserState - Current parser state object * * RETURN: A newly allocated FIELD op * * DESCRIPTION: Get next field (NamedField, ReservedField, or AccessField) * ******************************************************************************/ static ACPI_PARSE_OBJECT * AcpiPsGetNextField ( ACPI_PARSE_STATE *ParserState) { UINT8 *Aml; ACPI_PARSE_OBJECT *Field; ACPI_PARSE_OBJECT *Arg = NULL; UINT16 Opcode; UINT32 Name; UINT8 AccessType; UINT8 AccessAttribute; UINT8 AccessLength; UINT32 PkgLength; UINT8 *PkgEnd; UINT32 BufferLength; ACPI_FUNCTION_TRACE (PsGetNextField); ASL_CV_CAPTURE_COMMENTS_ONLY (ParserState); Aml = ParserState->Aml; /* Determine field type */ switch (ACPI_GET8 (ParserState->Aml)) { case AML_FIELD_OFFSET_OP: Opcode = AML_INT_RESERVEDFIELD_OP; ParserState->Aml++; break; case AML_FIELD_ACCESS_OP: Opcode = AML_INT_ACCESSFIELD_OP; ParserState->Aml++; break; case AML_FIELD_CONNECTION_OP: Opcode = AML_INT_CONNECTION_OP; ParserState->Aml++; break; case AML_FIELD_EXT_ACCESS_OP: Opcode = AML_INT_EXTACCESSFIELD_OP; ParserState->Aml++; break; default: Opcode = AML_INT_NAMEDFIELD_OP; break; } /* Allocate a new field op */ Field = AcpiPsAllocOp (Opcode, Aml); if (!Field) { return_PTR (NULL); } /* Decode the field type */ ASL_CV_CAPTURE_COMMENTS_ONLY (ParserState); switch (Opcode) { case AML_INT_NAMEDFIELD_OP: /* Get the 4-character name */ ACPI_MOVE_32_TO_32 (&Name, ParserState->Aml); AcpiPsSetName (Field, Name); ParserState->Aml += ACPI_NAMESEG_SIZE; ASL_CV_CAPTURE_COMMENTS_ONLY (ParserState); #ifdef ACPI_ASL_COMPILER /* * Because the package length isn't represented as a parse tree object, * take comments surrounding this and add to the previously created * parse node. */ if (Field->Common.InlineComment) { Field->Common.NameComment = Field->Common.InlineComment; } Field->Common.InlineComment = AcpiGbl_CurrentInlineComment; AcpiGbl_CurrentInlineComment = NULL; #endif /* Get the length which is encoded as a package length */ Field->Common.Value.Size = AcpiPsGetNextPackageLength (ParserState); break; case AML_INT_RESERVEDFIELD_OP: /* Get the length which is encoded as a package length */ Field->Common.Value.Size = AcpiPsGetNextPackageLength (ParserState); break; case AML_INT_ACCESSFIELD_OP: case AML_INT_EXTACCESSFIELD_OP: /* * Get AccessType and AccessAttrib and merge into the field Op * AccessType is first operand, AccessAttribute is second. stuff * these bytes into the node integer value for convenience. */ /* Get the two bytes (Type/Attribute) */ AccessType = ACPI_GET8 (ParserState->Aml); ParserState->Aml++; AccessAttribute = ACPI_GET8 (ParserState->Aml); ParserState->Aml++; Field->Common.Value.Integer = (UINT8) AccessType; Field->Common.Value.Integer |= (UINT16) (AccessAttribute << 8); /* This opcode has a third byte, AccessLength */ if (Opcode == AML_INT_EXTACCESSFIELD_OP) { AccessLength = ACPI_GET8 (ParserState->Aml); ParserState->Aml++; Field->Common.Value.Integer |= (UINT32) (AccessLength << 16); } break; case AML_INT_CONNECTION_OP: /* * Argument for Connection operator can be either a Buffer * (resource descriptor), or a NameString. */ Aml = ParserState->Aml; if (ACPI_GET8 (ParserState->Aml) == AML_BUFFER_OP) { ParserState->Aml++; ASL_CV_CAPTURE_COMMENTS_ONLY (ParserState); PkgEnd = ParserState->Aml; PkgLength = AcpiPsGetNextPackageLength (ParserState); PkgEnd += PkgLength; ASL_CV_CAPTURE_COMMENTS_ONLY (ParserState); if (ParserState->Aml < PkgEnd) { /* Non-empty list */ Arg = AcpiPsAllocOp (AML_INT_BYTELIST_OP, Aml); if (!Arg) { AcpiPsFreeOp (Field); return_PTR (NULL); } /* Get the actual buffer length argument */ Opcode = ACPI_GET8 (ParserState->Aml); ParserState->Aml++; ASL_CV_CAPTURE_COMMENTS_ONLY (ParserState); switch (Opcode) { case AML_BYTE_OP: /* AML_BYTEDATA_ARG */ BufferLength = ACPI_GET8 (ParserState->Aml); ParserState->Aml += 1; break; case AML_WORD_OP: /* AML_WORDDATA_ARG */ BufferLength = ACPI_GET16 (ParserState->Aml); ParserState->Aml += 2; break; case AML_DWORD_OP: /* AML_DWORDATA_ARG */ BufferLength = ACPI_GET32 (ParserState->Aml); ParserState->Aml += 4; break; default: BufferLength = 0; break; } /* Fill in bytelist data */ ASL_CV_CAPTURE_COMMENTS_ONLY (ParserState); Arg->Named.Value.Size = BufferLength; Arg->Named.Data = ParserState->Aml; } /* Skip to End of byte data */ ParserState->Aml = PkgEnd; } else { Arg = AcpiPsAllocOp (AML_INT_NAMEPATH_OP, Aml); if (!Arg) { AcpiPsFreeOp (Field); return_PTR (NULL); } /* Get the Namestring argument */ Arg->Common.Value.Name = AcpiPsGetNextNamestring (ParserState); } /* Link the buffer/namestring to parent (CONNECTION_OP) */ AcpiPsAppendArg (Field, Arg); break; default: /* Opcode was set in previous switch */ break; } return_PTR (Field); } /******************************************************************************* * * FUNCTION: AcpiPsFreeFieldList * * PARAMETERS: Start - First Op in field list * * RETURN: None. * * DESCRIPTION: Free all Op objects inside a field list. * ******************************************************************************/ static void AcpiPsFreeFieldList ( ACPI_PARSE_OBJECT *Start) { ACPI_PARSE_OBJECT *Current = Start; ACPI_PARSE_OBJECT *Next; ACPI_PARSE_OBJECT *Arg; while (Current) { Next = Current->Common.Next; /* AML_INT_CONNECTION_OP can have a single argument */ Arg = AcpiPsGetArg (Current, 0); if (Arg) { AcpiPsFreeOp (Arg); } AcpiPsFreeOp(Current); Current = Next; } } /******************************************************************************* * * FUNCTION: AcpiPsGetNextArg * * PARAMETERS: WalkState - Current state * ParserState - Current parser state object * ArgType - The argument type (AML_*_ARG) * ReturnArg - Where the next arg is returned * * RETURN: Status, and an op object containing the next argument. * * DESCRIPTION: Get next argument (including complex list arguments that require * pushing the parser stack) * ******************************************************************************/ ACPI_STATUS AcpiPsGetNextArg ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_STATE *ParserState, UINT32 ArgType, ACPI_PARSE_OBJECT **ReturnArg) { ACPI_PARSE_OBJECT *Arg = NULL; ACPI_PARSE_OBJECT *Prev = NULL; ACPI_PARSE_OBJECT *Field; UINT32 Subop; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_PTR (PsGetNextArg, ParserState); ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Expected argument type ARGP: %s (%2.2X)\n", AcpiUtGetArgumentTypeName (ArgType), ArgType)); switch (ArgType) { case ARGP_BYTEDATA: case ARGP_WORDDATA: case ARGP_DWORDDATA: case ARGP_CHARLIST: case ARGP_NAME: case ARGP_NAMESTRING: /* Constants, strings, and namestrings are all the same size */ Arg = AcpiPsAllocOp (AML_BYTE_OP, ParserState->Aml); if (!Arg) { return_ACPI_STATUS (AE_NO_MEMORY); } AcpiPsGetNextSimpleArg (ParserState, ArgType, Arg); break; case ARGP_PKGLENGTH: /* Package length, nothing returned */ ParserState->PkgEnd = AcpiPsGetNextPackageEnd (ParserState); break; case ARGP_FIELDLIST: if (ParserState->Aml < ParserState->PkgEnd) { /* Non-empty list */ while (ParserState->Aml < ParserState->PkgEnd) { Field = AcpiPsGetNextField (ParserState); if (!Field) { if (Arg) { AcpiPsFreeFieldList(Arg); } return_ACPI_STATUS (AE_NO_MEMORY); } if (Prev) { Prev->Common.Next = Field; } else { Arg = Field; } Prev = Field; } /* Skip to End of byte data */ ParserState->Aml = ParserState->PkgEnd; } break; case ARGP_BYTELIST: if (ParserState->Aml < ParserState->PkgEnd) { /* Non-empty list */ Arg = AcpiPsAllocOp (AML_INT_BYTELIST_OP, ParserState->Aml); if (!Arg) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Fill in bytelist data */ Arg->Common.Value.Size = (UINT32) ACPI_PTR_DIFF (ParserState->PkgEnd, ParserState->Aml); Arg->Named.Data = ParserState->Aml; /* Skip to End of byte data */ ParserState->Aml = ParserState->PkgEnd; } break; case ARGP_SIMPLENAME: case ARGP_NAME_OR_REF: ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "**** SimpleName/NameOrRef: %s (%2.2X)\n", AcpiUtGetArgumentTypeName (ArgType), ArgType)); Subop = AcpiPsPeekOpcode (ParserState); if (Subop == 0 || AcpiPsIsLeadingChar (Subop) || ACPI_IS_ROOT_PREFIX (Subop) || ACPI_IS_PARENT_PREFIX (Subop)) { /* NullName or NameString */ Arg = AcpiPsAllocOp (AML_INT_NAMEPATH_OP, ParserState->Aml); if (!Arg) { return_ACPI_STATUS (AE_NO_MEMORY); } Status = AcpiPsGetNextNamepath (WalkState, ParserState, Arg, ACPI_NOT_METHOD_CALL); if (ACPI_FAILURE(Status)) { AcpiPsFreeOp (Arg); return_ACPI_STATUS (Status); } } else { /* Single complex argument, nothing returned */ WalkState->ArgCount = 1; } break; case ARGP_TARGET: case ARGP_SUPERNAME: ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "**** Target/Supername: %s (%2.2X)\n", AcpiUtGetArgumentTypeName (ArgType), ArgType)); Subop = AcpiPsPeekOpcode (ParserState); if (Subop == 0 || AcpiPsIsLeadingChar (Subop) || ACPI_IS_ROOT_PREFIX (Subop) || ACPI_IS_PARENT_PREFIX (Subop)) { /* NULL target (zero). Convert to a NULL namepath */ Arg = AcpiPsAllocOp (AML_INT_NAMEPATH_OP, ParserState->Aml); if (!Arg) { return_ACPI_STATUS (AE_NO_MEMORY); } Status = AcpiPsGetNextNamepath (WalkState, ParserState, Arg, ACPI_POSSIBLE_METHOD_CALL); if (ACPI_FAILURE(Status)) { AcpiPsFreeOp (Arg); return_ACPI_STATUS (Status); } if (Arg->Common.AmlOpcode == AML_INT_METHODCALL_OP) { /* Free method call op and corresponding namestring sub-ob */ AcpiPsFreeOp (Arg->Common.Value.Arg); AcpiPsFreeOp (Arg); Arg = NULL; WalkState->ArgCount = 1; } } else { /* Single complex argument, nothing returned */ WalkState->ArgCount = 1; } break; case ARGP_DATAOBJ: case ARGP_TERMARG: ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "**** TermArg/DataObj: %s (%2.2X)\n", AcpiUtGetArgumentTypeName (ArgType), ArgType)); /* Single complex argument, nothing returned */ WalkState->ArgCount = 1; break; case ARGP_DATAOBJLIST: case ARGP_TERMLIST: case ARGP_OBJLIST: if (ParserState->Aml < ParserState->PkgEnd) { /* Non-empty list of variable arguments, nothing returned */ WalkState->ArgCount = ACPI_VAR_ARGS; } break; default: ACPI_ERROR ((AE_INFO, "Invalid ArgType: 0x%X", ArgType)); Status = AE_AML_OPERAND_TYPE; break; } *ReturnArg = Arg; return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/parser/psparse.c0000775000175000017500000005442114773714133022352 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: psparse - Parser top level AML parse routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * Parse the AML and build an operation tree as most interpreters, * like Perl, do. Parsing is done by hand rather than with a YACC * generated parser to tightly constrain stack and dynamic memory * usage. At the same time, parsing is kept flexible and the code * fairly compact by parsing based on a list of AML opcode * templates in AmlOpInfo[] */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "acdispat.h" #include "amlcode.h" #include "acinterp.h" #include "acnamesp.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("psparse") /******************************************************************************* * * FUNCTION: AcpiPsGetOpcodeSize * * PARAMETERS: Opcode - An AML opcode * * RETURN: Size of the opcode, in bytes (1 or 2) * * DESCRIPTION: Get the size of the current opcode. * ******************************************************************************/ UINT32 AcpiPsGetOpcodeSize ( UINT32 Opcode) { /* Extended (2-byte) opcode if > 255 */ if (Opcode > 0x00FF) { return (2); } /* Otherwise, just a single byte opcode */ return (1); } /******************************************************************************* * * FUNCTION: AcpiPsPeekOpcode * * PARAMETERS: ParserState - A parser state object * * RETURN: Next AML opcode * * DESCRIPTION: Get next AML opcode (without incrementing AML pointer) * ******************************************************************************/ UINT16 AcpiPsPeekOpcode ( ACPI_PARSE_STATE *ParserState) { UINT8 *Aml; UINT16 Opcode; Aml = ParserState->Aml; Opcode = (UINT16) ACPI_GET8 (Aml); if (Opcode == AML_EXTENDED_PREFIX) { /* Extended opcode, get the second opcode byte */ Aml++; Opcode = (UINT16) ((Opcode << 8) | ACPI_GET8 (Aml)); } return (Opcode); } /******************************************************************************* * * FUNCTION: AcpiPsCompleteThisOp * * PARAMETERS: WalkState - Current State * Op - Op to complete * * RETURN: Status * * DESCRIPTION: Perform any cleanup at the completion of an Op. * ******************************************************************************/ ACPI_STATUS AcpiPsCompleteThisOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Prev; ACPI_PARSE_OBJECT *Next; const ACPI_OPCODE_INFO *ParentInfo; ACPI_PARSE_OBJECT *ReplacementOp = NULL; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_PTR (PsCompleteThisOp, Op); /* Check for null Op, can happen if AML code is corrupt */ if (!Op) { return_ACPI_STATUS (AE_OK); /* OK for now */ } AcpiExStopTraceOpcode (Op, WalkState); /* Delete this op and the subtree below it if asked to */ if (((WalkState->ParseFlags & ACPI_PARSE_TREE_MASK) != ACPI_PARSE_DELETE_TREE) || (WalkState->OpInfo->Class == AML_CLASS_ARGUMENT)) { return_ACPI_STATUS (AE_OK); } /* Make sure that we only delete this subtree */ if (Op->Common.Parent) { Prev = Op->Common.Parent->Common.Value.Arg; if (!Prev) { /* Nothing more to do */ goto Cleanup; } /* * Check if we need to replace the operator and its subtree * with a return value op (placeholder op) */ ParentInfo = AcpiPsGetOpcodeInfo (Op->Common.Parent->Common.AmlOpcode); switch (ParentInfo->Class) { case AML_CLASS_CONTROL: break; case AML_CLASS_CREATE: /* * These opcodes contain TermArg operands. The current * op must be replaced by a placeholder return op */ ReplacementOp = AcpiPsAllocOp ( AML_INT_RETURN_VALUE_OP, Op->Common.Aml); if (!ReplacementOp) { Status = AE_NO_MEMORY; } break; case AML_CLASS_NAMED_OBJECT: /* * These opcodes contain TermArg operands. The current * op must be replaced by a placeholder return op */ if ((Op->Common.Parent->Common.AmlOpcode == AML_REGION_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_DATA_REGION_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_BUFFER_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_PACKAGE_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_BANK_FIELD_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP)) { ReplacementOp = AcpiPsAllocOp ( AML_INT_RETURN_VALUE_OP, Op->Common.Aml); if (!ReplacementOp) { Status = AE_NO_MEMORY; } } else if ((Op->Common.Parent->Common.AmlOpcode == AML_NAME_OP) && (WalkState->PassNumber <= ACPI_IMODE_LOAD_PASS2)) { if ((Op->Common.AmlOpcode == AML_BUFFER_OP) || (Op->Common.AmlOpcode == AML_PACKAGE_OP) || (Op->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP)) { ReplacementOp = AcpiPsAllocOp (Op->Common.AmlOpcode, Op->Common.Aml); if (!ReplacementOp) { Status = AE_NO_MEMORY; } else { ReplacementOp->Named.Data = Op->Named.Data; ReplacementOp->Named.Length = Op->Named.Length; } } } break; default: ReplacementOp = AcpiPsAllocOp ( AML_INT_RETURN_VALUE_OP, Op->Common.Aml); if (!ReplacementOp) { Status = AE_NO_MEMORY; } } /* We must unlink this op from the parent tree */ if (Prev == Op) { /* This op is the first in the list */ if (ReplacementOp) { ReplacementOp->Common.Parent = Op->Common.Parent; ReplacementOp->Common.Value.Arg = NULL; ReplacementOp->Common.Node = Op->Common.Node; Op->Common.Parent->Common.Value.Arg = ReplacementOp; ReplacementOp->Common.Next = Op->Common.Next; } else { Op->Common.Parent->Common.Value.Arg = Op->Common.Next; } } /* Search the parent list */ else while (Prev) { /* Traverse all siblings in the parent's argument list */ Next = Prev->Common.Next; if (Next == Op) { if (ReplacementOp) { ReplacementOp->Common.Parent = Op->Common.Parent; ReplacementOp->Common.Value.Arg = NULL; ReplacementOp->Common.Node = Op->Common.Node; Prev->Common.Next = ReplacementOp; ReplacementOp->Common.Next = Op->Common.Next; Next = NULL; } else { Prev->Common.Next = Op->Common.Next; Next = NULL; } } Prev = Next; } } Cleanup: /* Now we can actually delete the subtree rooted at Op */ AcpiPsDeleteParseTree (Op); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiPsNextParseState * * PARAMETERS: WalkState - Current state * Op - Current parse op * CallbackStatus - Status from previous operation * * RETURN: Status * * DESCRIPTION: Update the parser state based upon the return exception from * the parser callback. * ******************************************************************************/ ACPI_STATUS AcpiPsNextParseState ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_STATUS CallbackStatus) { ACPI_PARSE_STATE *ParserState = &WalkState->ParserState; ACPI_STATUS Status = AE_CTRL_PENDING; ACPI_FUNCTION_TRACE_PTR (PsNextParseState, Op); switch (CallbackStatus) { case AE_CTRL_TERMINATE: /* * A control method was terminated via a RETURN statement. * The walk of this method is complete. */ ParserState->Aml = ParserState->AmlEnd; Status = AE_CTRL_TERMINATE; break; case AE_CTRL_BREAK: ParserState->Aml = WalkState->AmlLastWhile; WalkState->ControlState->Common.Value = FALSE; Status = AE_CTRL_BREAK; break; case AE_CTRL_CONTINUE: ParserState->Aml = WalkState->AmlLastWhile; Status = AE_CTRL_CONTINUE; break; case AE_CTRL_PENDING: ParserState->Aml = WalkState->AmlLastWhile; break; #if 0 case AE_CTRL_SKIP: ParserState->Aml = ParserState->Scope->ParseScope.PkgEnd; Status = AE_OK; break; #endif case AE_CTRL_TRUE: /* * Predicate of an IF was true, and we are at the matching ELSE. * Just close out this package */ ParserState->Aml = AcpiPsGetNextPackageEnd (ParserState); Status = AE_CTRL_PENDING; break; case AE_CTRL_FALSE: /* * Either an IF/WHILE Predicate was false or we encountered a BREAK * opcode. In both cases, we do not execute the rest of the * package; We simply close out the parent (finishing the walk of * this branch of the tree) and continue execution at the parent * level. */ ParserState->Aml = ParserState->Scope->ParseScope.PkgEnd; /* In the case of a BREAK, just force a predicate (if any) to FALSE */ WalkState->ControlState->Common.Value = FALSE; Status = AE_CTRL_END; break; case AE_CTRL_TRANSFER: /* A method call (invocation) -- transfer control */ Status = AE_CTRL_TRANSFER; WalkState->PrevOp = Op; WalkState->MethodCallOp = Op; WalkState->MethodCallNode = (Op->Common.Value.Arg)->Common.Node; /* Will return value (if any) be used by the caller? */ WalkState->ReturnUsed = AcpiDsIsResultUsed (Op, WalkState); break; default: Status = CallbackStatus; if (ACPI_CNTL_EXCEPTION (CallbackStatus)) { Status = AE_OK; } break; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiPsParseAml * * PARAMETERS: WalkState - Current state * * * RETURN: Status * * DESCRIPTION: Parse raw AML and return a tree of ops * ******************************************************************************/ ACPI_STATUS AcpiPsParseAml ( ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_THREAD_STATE *Thread; ACPI_THREAD_STATE *PrevWalkList = AcpiGbl_CurrentWalkList; ACPI_WALK_STATE *PreviousWalkState; ACPI_FUNCTION_TRACE (PsParseAml); ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Entered with WalkState=%p Aml=%p size=%X\n", WalkState, WalkState->ParserState.Aml, WalkState->ParserState.AmlSize)); if (!WalkState->ParserState.Aml) { return_ACPI_STATUS (AE_BAD_ADDRESS); } /* Create and initialize a new thread state */ Thread = AcpiUtCreateThreadState (); if (!Thread) { if (WalkState->MethodDesc) { /* Executing a control method - additional cleanup */ AcpiDsTerminateControlMethod (WalkState->MethodDesc, WalkState); } AcpiDsDeleteWalkState (WalkState); return_ACPI_STATUS (AE_NO_MEMORY); } WalkState->Thread = Thread; /* * If executing a method, the starting SyncLevel is this method's * SyncLevel */ if (WalkState->MethodDesc) { WalkState->Thread->CurrentSyncLevel = WalkState->MethodDesc->Method.SyncLevel; } AcpiDsPushWalkState (WalkState, Thread); /* * This global allows the AML debugger to get a handle to the currently * executing control method. */ AcpiGbl_CurrentWalkList = Thread; /* * Execute the walk loop as long as there is a valid Walk State. This * handles nested control method invocations without recursion. */ ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "State=%p\n", WalkState)); Status = AE_OK; while (WalkState) { if (ACPI_SUCCESS (Status)) { /* * The ParseLoop executes AML until the method terminates * or calls another method. */ Status = AcpiPsParseLoop (WalkState); } ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Completed one call to walk loop, %s State=%p\n", AcpiFormatException (Status), WalkState)); if (WalkState->MethodPathname && WalkState->MethodIsNested) { /* Optional object evaluation log */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EVALUATION, "%-26s: %*s%s\n", " Exit nested method", (WalkState->MethodNestingDepth + 1) * 3, " ", &WalkState->MethodPathname[1])); ACPI_FREE (WalkState->MethodPathname); WalkState->MethodIsNested = FALSE; } if (Status == AE_CTRL_TRANSFER) { /* * A method call was detected. * Transfer control to the called control method */ Status = AcpiDsCallControlMethod (Thread, WalkState, NULL); if (ACPI_FAILURE (Status)) { Status = AcpiDsMethodError (Status, WalkState); } /* * If the transfer to the new method method call worked, * a new walk state was created -- get it */ WalkState = AcpiDsGetCurrentWalkState (Thread); continue; } else if (Status == AE_CTRL_TERMINATE) { Status = AE_OK; } else if ((Status != AE_OK) && (WalkState->MethodDesc)) { /* Either the method parse or actual execution failed */ AcpiExExitInterpreter (); if (Status == AE_ABORT_METHOD) { AcpiNsPrintNodePathname ( WalkState->MethodNode, "Aborting method"); AcpiOsPrintf ("\n"); } else { ACPI_ERROR_METHOD ("Aborting method", WalkState->MethodNode, NULL, Status); } AcpiExEnterInterpreter (); /* Check for possible multi-thread reentrancy problem */ if ((Status == AE_ALREADY_EXISTS) && (!(WalkState->MethodDesc->Method.InfoFlags & ACPI_METHOD_SERIALIZED))) { /* * Method is not serialized and tried to create an object * twice. The probable cause is that the method cannot * handle reentrancy. Mark as "pending serialized" now, and * then mark "serialized" when the last thread exits. */ WalkState->MethodDesc->Method.InfoFlags |= ACPI_METHOD_SERIALIZED_PENDING; } } /* We are done with this walk, move on to the parent if any */ WalkState = AcpiDsPopWalkState (Thread); /* Reset the current scope to the beginning of scope stack */ AcpiDsScopeStackClear (WalkState); /* * If we just returned from the execution of a control method or if we * encountered an error during the method parse phase, there's lots of * cleanup to do */ if (((WalkState->ParseFlags & ACPI_PARSE_MODE_MASK) == ACPI_PARSE_EXECUTE && !(WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL)) || (ACPI_FAILURE (Status))) { AcpiDsTerminateControlMethod (WalkState->MethodDesc, WalkState); } /* Delete this walk state and all linked control states */ AcpiPsCleanupScope (&WalkState->ParserState); PreviousWalkState = WalkState; ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "ReturnValue=%p, ImplicitValue=%p State=%p\n", WalkState->ReturnDesc, WalkState->ImplicitReturnObj, WalkState)); /* Check if we have restarted a preempted walk */ WalkState = AcpiDsGetCurrentWalkState (Thread); if (WalkState) { if (ACPI_SUCCESS (Status)) { /* * There is another walk state, restart it. * If the method return value is not used by the parent, * The object is deleted */ if (!PreviousWalkState->ReturnDesc) { /* * In slack mode execution, if there is no return value * we should implicitly return zero (0) as a default value. */ if (AcpiGbl_EnableInterpreterSlack && !PreviousWalkState->ImplicitReturnObj) { PreviousWalkState->ImplicitReturnObj = AcpiUtCreateIntegerObject ((UINT64) 0); if (!PreviousWalkState->ImplicitReturnObj) { return_ACPI_STATUS (AE_NO_MEMORY); } } /* Restart the calling control method */ Status = AcpiDsRestartControlMethod (WalkState, PreviousWalkState->ImplicitReturnObj); } else { /* * We have a valid return value, delete any implicit * return value. */ AcpiDsClearImplicitReturn (PreviousWalkState); Status = AcpiDsRestartControlMethod (WalkState, PreviousWalkState->ReturnDesc); } if (ACPI_SUCCESS (Status)) { WalkState->WalkType |= ACPI_WALK_METHOD_RESTART; } } else { /* On error, delete any return object or implicit return */ AcpiUtRemoveReference (PreviousWalkState->ReturnDesc); AcpiDsClearImplicitReturn (PreviousWalkState); } } /* * Just completed a 1st-level method, save the final internal return * value (if any) */ else if (PreviousWalkState->CallerReturnDesc) { if (PreviousWalkState->ImplicitReturnObj) { *(PreviousWalkState->CallerReturnDesc) = PreviousWalkState->ImplicitReturnObj; } else { /* NULL if no return value */ *(PreviousWalkState->CallerReturnDesc) = PreviousWalkState->ReturnDesc; } } else { if (PreviousWalkState->ReturnDesc) { /* Caller doesn't want it, must delete it */ AcpiUtRemoveReference (PreviousWalkState->ReturnDesc); } if (PreviousWalkState->ImplicitReturnObj) { /* Caller doesn't want it, must delete it */ AcpiUtRemoveReference (PreviousWalkState->ImplicitReturnObj); } } AcpiDsDeleteWalkState (PreviousWalkState); } /* Normal exit */ AcpiExReleaseAllMutexes (Thread); AcpiUtDeleteGenericState (ACPI_CAST_PTR (ACPI_GENERIC_STATE, Thread)); AcpiGbl_CurrentWalkList = PrevWalkList; return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/parser/psopinfo.c0000775000175000017500000002301714773714133022527 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: psopinfo - AML opcode information functions and dispatch tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "acopcode.h" #include "amlcode.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("psopinfo") static const UINT8 AcpiGbl_ArgumentCount[] = {0,1,1,1,1,2,2,2,2,3,3,6}; /******************************************************************************* * * FUNCTION: AcpiPsGetOpcodeInfo * * PARAMETERS: Opcode - The AML opcode * * RETURN: A pointer to the info about the opcode. * * DESCRIPTION: Find AML opcode description based on the opcode. * NOTE: This procedure must ALWAYS return a valid pointer! * ******************************************************************************/ const ACPI_OPCODE_INFO * AcpiPsGetOpcodeInfo ( UINT16 Opcode) { #ifdef ACPI_DEBUG_OUTPUT const char *OpcodeName = "Unknown AML opcode"; #endif ACPI_FUNCTION_NAME (PsGetOpcodeInfo); /* * Detect normal 8-bit opcode or extended 16-bit opcode */ if (!(Opcode & 0xFF00)) { /* Simple (8-bit) opcode: 0-255, can't index beyond table */ return (&AcpiGbl_AmlOpInfo [AcpiGbl_ShortOpIndex [(UINT8) Opcode]]); } if (((Opcode & 0xFF00) == AML_EXTENDED_OPCODE) && (((UINT8) Opcode) <= MAX_EXTENDED_OPCODE)) { /* Valid extended (16-bit) opcode */ return (&AcpiGbl_AmlOpInfo [AcpiGbl_LongOpIndex [(UINT8) Opcode]]); } #if defined ACPI_ASL_COMPILER && defined ACPI_DEBUG_OUTPUT #include "asldefine.h" switch (Opcode) { case AML_RAW_DATA_BYTE: OpcodeName = "-Raw Data Byte-"; break; case AML_RAW_DATA_WORD: OpcodeName = "-Raw Data Word-"; break; case AML_RAW_DATA_DWORD: OpcodeName = "-Raw Data Dword-"; break; case AML_RAW_DATA_QWORD: OpcodeName = "-Raw Data Qword-"; break; case AML_RAW_DATA_BUFFER: OpcodeName = "-Raw Data Buffer-"; break; case AML_RAW_DATA_CHAIN: OpcodeName = "-Raw Data Buffer Chain-"; break; case AML_PACKAGE_LENGTH: OpcodeName = "-Package Length-"; break; case AML_UNASSIGNED_OPCODE: OpcodeName = "-Unassigned Opcode-"; break; case AML_DEFAULT_ARG_OP: OpcodeName = "-Default Arg-"; break; default: break; } #endif /* Unknown AML opcode */ ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%s [%4.4X]\n", OpcodeName, Opcode)); return (&AcpiGbl_AmlOpInfo [_UNK]); } /******************************************************************************* * * FUNCTION: AcpiPsGetOpcodeName * * PARAMETERS: Opcode - The AML opcode * * RETURN: A pointer to the name of the opcode (ASCII String) * Note: Never returns NULL. * * DESCRIPTION: Translate an opcode into a human-readable string * ******************************************************************************/ const char * AcpiPsGetOpcodeName ( UINT16 Opcode) { #if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT) const ACPI_OPCODE_INFO *Op; Op = AcpiPsGetOpcodeInfo (Opcode); /* Always guaranteed to return a valid pointer */ return (Op->Name); #else return ("OpcodeName unavailable"); #endif } /******************************************************************************* * * FUNCTION: AcpiPsGetArgumentCount * * PARAMETERS: OpType - Type associated with the AML opcode * * RETURN: Argument count * * DESCRIPTION: Obtain the number of expected arguments for an AML opcode * ******************************************************************************/ UINT8 AcpiPsGetArgumentCount ( UINT32 OpType) { if (OpType <= AML_TYPE_EXEC_6A_0T_1R) { return (AcpiGbl_ArgumentCount[OpType]); } return (0); } /* * This table is directly indexed by the opcodes It returns * an index into the opcode table (AcpiGbl_AmlOpInfo) */ const UINT8 AcpiGbl_ShortOpIndex[256] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x00 */ 0x00, 0x01, _UNK, _UNK, _UNK, _UNK, 0x02, _UNK, /* 0x08 */ 0x03, _UNK, 0x04, 0x05, 0x06, 0x07, 0x6E, _UNK, /* 0x10 */ 0x08, 0x09, 0x0a, 0x6F, 0x0b, 0x81, _UNK, _UNK, /* 0x18 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x20 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x28 */ _UNK, _UNK, _UNK, _UNK, _UNK, 0x63, _PFX, _PFX, /* 0x30 */ 0x67, 0x66, 0x68, 0x65, 0x69, 0x64, 0x6A, 0x7D, /* 0x38 */ 0x7F, 0x80, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x40 */ _UNK, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, /* 0x48 */ _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, /* 0x50 */ _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, /* 0x58 */ _ASC, _ASC, _ASC, _UNK, _PFX, _UNK, _PFX, _ASC, /* 0x60 */ 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, /* 0x68 */ 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, _UNK, /* 0x70 */ 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22, /* 0x78 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, /* 0x80 */ 0x2b, 0x2c, 0x2d, 0x2e, 0x70, 0x71, 0x2f, 0x30, /* 0x88 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x72, /* 0x90 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x73, 0x74, /* 0x98 */ 0x75, 0x76, _UNK, _UNK, 0x77, 0x78, 0x79, 0x7A, /* 0xA0 */ 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x60, 0x61, /* 0xA8 */ 0x62, 0x82, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0xB0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0xB8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0xC0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0xC8 */ _UNK, _UNK, _UNK, _UNK, 0x44, _UNK, _UNK, _UNK, /* 0xD0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0xD8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0xE0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0xE8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0xF0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0xF8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 0x45, }; /* * This table is indexed by the second opcode of the extended opcode * pair. It returns an index into the opcode table (AcpiGbl_AmlOpInfo) */ const UINT8 AcpiGbl_LongOpIndex[NUM_EXTENDED_OPCODE] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x00 */ _UNK, 0x46, 0x47, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x08 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x10 */ _UNK, _UNK, 0x48, 0x49, _UNK, _UNK, _UNK, _UNK, /* 0x18 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 0x7B, /* 0x20 */ 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, /* 0x28 */ 0x52, 0x53, 0x54, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x30 */ 0x55, 0x56, 0x57, 0x7e, _UNK, _UNK, _UNK, _UNK, /* 0x38 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x40 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x48 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x50 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x58 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x60 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x68 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x70 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x78 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, /* 0x80 */ 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, /* 0x88 */ 0x7C, }; acpica-unix-20250404/source/components/parser/psobject.c0000775000175000017500000005667114773714133022517 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: psobject - Support for parse objects * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acconvert.h" #include "acnamesp.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("psobject") /* Local prototypes */ static ACPI_STATUS AcpiPsGetAmlOpcode ( ACPI_WALK_STATE *WalkState); /******************************************************************************* * * FUNCTION: AcpiPsGetAmlOpcode * * PARAMETERS: WalkState - Current state * * RETURN: Status * * DESCRIPTION: Extract the next AML opcode from the input stream. * ******************************************************************************/ static ACPI_STATUS AcpiPsGetAmlOpcode ( ACPI_WALK_STATE *WalkState) { ACPI_ERROR_ONLY (UINT32 AmlOffset); ACPI_FUNCTION_TRACE_PTR (PsGetAmlOpcode, WalkState); WalkState->Aml = WalkState->ParserState.Aml; WalkState->Opcode = AcpiPsPeekOpcode (&(WalkState->ParserState)); /* * First cut to determine what we have found: * 1) A valid AML opcode * 2) A name string * 3) An unknown/invalid opcode */ WalkState->OpInfo = AcpiPsGetOpcodeInfo (WalkState->Opcode); switch (WalkState->OpInfo->Class) { case AML_CLASS_ASCII: case AML_CLASS_PREFIX: /* * Starts with a valid prefix or ASCII char, this is a name * string. Convert the bare name string to a namepath. */ WalkState->Opcode = AML_INT_NAMEPATH_OP; WalkState->ArgTypes = ARGP_NAMESTRING; break; case AML_CLASS_UNKNOWN: /* The opcode is unrecognized. Complain and skip unknown opcodes */ if (WalkState->PassNumber == 2) { ACPI_ERROR_ONLY(AmlOffset = (UINT32) ACPI_PTR_DIFF (WalkState->Aml, WalkState->ParserState.AmlStart)); ACPI_ERROR ((AE_INFO, "Unknown opcode 0x%.2X at table offset 0x%.4X, ignoring", WalkState->Opcode, (UINT32) (AmlOffset + sizeof (ACPI_TABLE_HEADER)))); ACPI_DUMP_BUFFER ((WalkState->ParserState.Aml - 16), 48); #ifdef ACPI_ASL_COMPILER /* * This is executed for the disassembler only. Output goes * to the disassembled ASL output file. */ AcpiOsPrintf ( "/*\nError: Unknown opcode 0x%.2X at table offset 0x%.4X, context:\n", WalkState->Opcode, (UINT32) (AmlOffset + sizeof (ACPI_TABLE_HEADER))); ACPI_ERROR ((AE_INFO, "Aborting disassembly, AML byte code is corrupt")); /* Dump the context surrounding the invalid opcode */ AcpiUtDumpBuffer (((UINT8 *) WalkState->ParserState.Aml - 16), 48, DB_BYTE_DISPLAY, (AmlOffset + sizeof (ACPI_TABLE_HEADER) - 16)); AcpiOsPrintf (" */\n"); /* * Just abort the disassembly, cannot continue because the * parser is essentially lost. The disassembler can then * randomly fail because an ill-constructed parse tree * can result. */ return_ACPI_STATUS (AE_AML_BAD_OPCODE); #endif } /* Increment past one-byte or two-byte opcode */ WalkState->ParserState.Aml++; if (WalkState->Opcode > 0xFF) /* Can only happen if first byte is 0x5B */ { WalkState->ParserState.Aml++; } return_ACPI_STATUS (AE_CTRL_PARSE_CONTINUE); default: /* Found opcode info, this is a normal opcode */ WalkState->ParserState.Aml += AcpiPsGetOpcodeSize (WalkState->Opcode); WalkState->ArgTypes = WalkState->OpInfo->ParseArgs; break; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiPsBuildNamedOp * * PARAMETERS: WalkState - Current state * AmlOpStart - Begin of named Op in AML * UnnamedOp - Early Op (not a named Op) * Op - Returned Op * * RETURN: Status * * DESCRIPTION: Parse a named Op * ******************************************************************************/ ACPI_STATUS AcpiPsBuildNamedOp ( ACPI_WALK_STATE *WalkState, UINT8 *AmlOpStart, ACPI_PARSE_OBJECT *UnnamedOp, ACPI_PARSE_OBJECT **Op) { ACPI_STATUS Status = AE_OK; ACPI_PARSE_OBJECT *Arg = NULL; ACPI_FUNCTION_TRACE_PTR (PsBuildNamedOp, WalkState); UnnamedOp->Common.Value.Arg = NULL; UnnamedOp->Common.ArgListLength = 0; UnnamedOp->Common.AmlOpcode = WalkState->Opcode; /* * Get and append arguments until we find the node that contains * the name (the type ARGP_NAME). */ while (GET_CURRENT_ARG_TYPE (WalkState->ArgTypes) && (GET_CURRENT_ARG_TYPE (WalkState->ArgTypes) != ARGP_NAME)) { ASL_CV_CAPTURE_COMMENTS (WalkState); Status = AcpiPsGetNextArg (WalkState, &(WalkState->ParserState), GET_CURRENT_ARG_TYPE (WalkState->ArgTypes), &Arg); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } AcpiPsAppendArg (UnnamedOp, Arg); INCREMENT_ARG_LIST (WalkState->ArgTypes); } /* are there any inline comments associated with the NameSeg?? If so, save this. */ ASL_CV_CAPTURE_COMMENTS (WalkState); #ifdef ACPI_ASL_COMPILER if (AcpiGbl_CurrentInlineComment != NULL) { UnnamedOp->Common.NameComment = AcpiGbl_CurrentInlineComment; AcpiGbl_CurrentInlineComment = NULL; } #endif /* * Make sure that we found a NAME and didn't run out of arguments */ if (!GET_CURRENT_ARG_TYPE (WalkState->ArgTypes)) { return_ACPI_STATUS (AE_AML_NO_OPERAND); } /* We know that this arg is a name, move to next arg */ INCREMENT_ARG_LIST (WalkState->ArgTypes); /* * Find the object. This will either insert the object into * the namespace or simply look it up */ WalkState->Op = NULL; Status = WalkState->DescendingCallback (WalkState, Op); if (ACPI_FAILURE (Status)) { if (Status != AE_CTRL_TERMINATE) { ACPI_EXCEPTION ((AE_INFO, Status, "During name lookup/catalog")); } return_ACPI_STATUS (Status); } if (!*Op) { return_ACPI_STATUS (AE_CTRL_PARSE_CONTINUE); } Status = AcpiPsNextParseState (WalkState, *Op, Status); if (ACPI_FAILURE (Status)) { if (Status == AE_CTRL_PENDING) { Status = AE_CTRL_PARSE_PENDING; } return_ACPI_STATUS (Status); } AcpiPsAppendArg (*Op, UnnamedOp->Common.Value.Arg); #ifdef ACPI_ASL_COMPILER /* save any comments that might be associated with UnnamedOp. */ (*Op)->Common.InlineComment = UnnamedOp->Common.InlineComment; (*Op)->Common.EndNodeComment = UnnamedOp->Common.EndNodeComment; (*Op)->Common.CloseBraceComment = UnnamedOp->Common.CloseBraceComment; (*Op)->Common.NameComment = UnnamedOp->Common.NameComment; (*Op)->Common.CommentList = UnnamedOp->Common.CommentList; (*Op)->Common.EndBlkComment = UnnamedOp->Common.EndBlkComment; (*Op)->Common.CvFilename = UnnamedOp->Common.CvFilename; (*Op)->Common.CvParentFilename = UnnamedOp->Common.CvParentFilename; (*Op)->Named.Aml = UnnamedOp->Common.Aml; UnnamedOp->Common.InlineComment = NULL; UnnamedOp->Common.EndNodeComment = NULL; UnnamedOp->Common.CloseBraceComment = NULL; UnnamedOp->Common.NameComment = NULL; UnnamedOp->Common.CommentList = NULL; UnnamedOp->Common.EndBlkComment = NULL; #endif if ((*Op)->Common.AmlOpcode == AML_REGION_OP || (*Op)->Common.AmlOpcode == AML_DATA_REGION_OP) { /* * Defer final parsing of an OperationRegion body, because we don't * have enough info in the first pass to parse it correctly (i.e., * there may be method calls within the TermArg elements of the body.) * * However, we must continue parsing because the opregion is not a * standalone package -- we don't know where the end is at this point. * * (Length is unknown until parse of the body complete) */ (*Op)->Named.Data = AmlOpStart; (*Op)->Named.Length = 0; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiPsCreateOp * * PARAMETERS: WalkState - Current state * AmlOpStart - Op start in AML * NewOp - Returned Op * * RETURN: Status * * DESCRIPTION: Get Op from AML * ******************************************************************************/ ACPI_STATUS AcpiPsCreateOp ( ACPI_WALK_STATE *WalkState, UINT8 *AmlOpStart, ACPI_PARSE_OBJECT **NewOp) { ACPI_STATUS Status = AE_OK; ACPI_PARSE_OBJECT *Op; ACPI_PARSE_OBJECT *NamedOp = NULL; ACPI_PARSE_OBJECT *ParentScope; UINT8 ArgumentCount; const ACPI_OPCODE_INFO *OpInfo; ACPI_FUNCTION_TRACE_PTR (PsCreateOp, WalkState); Status = AcpiPsGetAmlOpcode (WalkState); if (Status == AE_CTRL_PARSE_CONTINUE) { return_ACPI_STATUS (AE_CTRL_PARSE_CONTINUE); } if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Create Op structure and append to parent's argument list */ WalkState->OpInfo = AcpiPsGetOpcodeInfo (WalkState->Opcode); Op = AcpiPsAllocOp (WalkState->Opcode, AmlOpStart); if (!Op) { return_ACPI_STATUS (AE_NO_MEMORY); } if (WalkState->OpInfo->Flags & AML_NAMED) { Status = AcpiPsBuildNamedOp (WalkState, AmlOpStart, Op, &NamedOp); AcpiPsFreeOp (Op); #ifdef ACPI_ASL_COMPILER if (AcpiGbl_DisasmFlag && WalkState->Opcode == AML_EXTERNAL_OP && Status == AE_NOT_FOUND) { /* * If parsing of AML_EXTERNAL_OP's name path fails, then skip * past this opcode and keep parsing. This is a much better * alternative than to abort the entire disassembler. At this * point, the ParserState is at the end of the namepath of the * external declaration opcode. Setting WalkState->Aml to * WalkState->ParserState.Aml + 2 moves increments the * WalkState->Aml past the object type and the paramcount of the * external opcode. */ WalkState->Aml = WalkState->ParserState.Aml + 2; WalkState->ParserState.Aml = WalkState->Aml; return_ACPI_STATUS (AE_CTRL_PARSE_CONTINUE); } #endif if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } *NewOp = NamedOp; return_ACPI_STATUS (AE_OK); } /* Not a named opcode, just allocate Op and append to parent */ if (WalkState->OpInfo->Flags & AML_CREATE) { /* * Backup to beginning of CreateXXXfield declaration * BodyLength is unknown until we parse the body */ Op->Named.Data = AmlOpStart; Op->Named.Length = 0; } if (WalkState->Opcode == AML_BANK_FIELD_OP) { /* * Backup to beginning of BankField declaration * BodyLength is unknown until we parse the body */ Op->Named.Data = AmlOpStart; Op->Named.Length = 0; } ParentScope = AcpiPsGetParentScope (&(WalkState->ParserState)); AcpiPsAppendArg (ParentScope, Op); if (ParentScope) { OpInfo = AcpiPsGetOpcodeInfo (ParentScope->Common.AmlOpcode); if (OpInfo->Flags & AML_HAS_TARGET) { ArgumentCount = AcpiPsGetArgumentCount (OpInfo->Type); if (ParentScope->Common.ArgListLength > ArgumentCount) { Op->Common.Flags |= ACPI_PARSEOP_TARGET; } } /* * Special case for both Increment() and Decrement(), where * the lone argument is both a source and a target. */ else if ((ParentScope->Common.AmlOpcode == AML_INCREMENT_OP) || (ParentScope->Common.AmlOpcode == AML_DECREMENT_OP)) { Op->Common.Flags |= ACPI_PARSEOP_TARGET; } } if (WalkState->DescendingCallback != NULL) { /* * Find the object. This will either insert the object into * the namespace or simply look it up */ WalkState->Op = *NewOp = Op; Status = WalkState->DescendingCallback (WalkState, &Op); Status = AcpiPsNextParseState (WalkState, Op, Status); if (Status == AE_CTRL_PENDING) { Status = AE_CTRL_PARSE_PENDING; } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiPsCompleteOp * * PARAMETERS: WalkState - Current state * Op - Returned Op * Status - Parse status before complete Op * * RETURN: Status * * DESCRIPTION: Complete Op * ******************************************************************************/ ACPI_STATUS AcpiPsCompleteOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **Op, ACPI_STATUS Status) { ACPI_STATUS Status2; ACPI_FUNCTION_TRACE_PTR (PsCompleteOp, WalkState); /* * Finished one argument of the containing scope */ WalkState->ParserState.Scope->ParseScope.ArgCount--; /* Close this Op (will result in parse subtree deletion) */ Status2 = AcpiPsCompleteThisOp (WalkState, *Op); if (ACPI_FAILURE (Status2)) { return_ACPI_STATUS (Status2); } *Op = NULL; switch (Status) { case AE_OK: break; case AE_CTRL_TRANSFER: /* We are about to transfer to a called method */ WalkState->PrevOp = NULL; WalkState->PrevArgTypes = WalkState->ArgTypes; return_ACPI_STATUS (Status); case AE_CTRL_END: AcpiPsPopScope (&(WalkState->ParserState), Op, &WalkState->ArgTypes, &WalkState->ArgCount); if (*Op) { WalkState->Op = *Op; WalkState->OpInfo = AcpiPsGetOpcodeInfo ((*Op)->Common.AmlOpcode); WalkState->Opcode = (*Op)->Common.AmlOpcode; Status = WalkState->AscendingCallback (WalkState); (void) AcpiPsNextParseState (WalkState, *Op, Status); Status2 = AcpiPsCompleteThisOp (WalkState, *Op); if (ACPI_FAILURE (Status2)) { return_ACPI_STATUS (Status2); } } break; case AE_CTRL_BREAK: case AE_CTRL_CONTINUE: /* Pop off scopes until we find the While */ while (!(*Op) || ((*Op)->Common.AmlOpcode != AML_WHILE_OP)) { AcpiPsPopScope (&(WalkState->ParserState), Op, &WalkState->ArgTypes, &WalkState->ArgCount); } /* Close this iteration of the While loop */ WalkState->Op = *Op; WalkState->OpInfo = AcpiPsGetOpcodeInfo ((*Op)->Common.AmlOpcode); WalkState->Opcode = (*Op)->Common.AmlOpcode; Status = WalkState->AscendingCallback (WalkState); (void) AcpiPsNextParseState (WalkState, *Op, Status); Status2 = AcpiPsCompleteThisOp (WalkState, *Op); if (ACPI_FAILURE (Status2)) { return_ACPI_STATUS (Status2); } break; case AE_CTRL_TERMINATE: /* Clean up */ do { if (*Op) { Status2 = AcpiPsCompleteThisOp (WalkState, *Op); if (ACPI_FAILURE (Status2)) { return_ACPI_STATUS (Status2); } AcpiUtDeleteGenericState ( AcpiUtPopGenericState (&WalkState->ControlState)); } AcpiPsPopScope (&(WalkState->ParserState), Op, &WalkState->ArgTypes, &WalkState->ArgCount); } while (*Op); return_ACPI_STATUS (AE_OK); default: /* All other non-AE_OK status */ do { if (*Op) { /* * These Opcodes need to be removed from the namespace because they * get created even if these opcodes cannot be created due to * errors. */ if (((*Op)->Common.AmlOpcode == AML_REGION_OP) || ((*Op)->Common.AmlOpcode == AML_DATA_REGION_OP)) { AcpiNsDeleteChildren ((*Op)->Common.Node); AcpiNsRemoveNode ((*Op)->Common.Node); (*Op)->Common.Node = NULL; AcpiPsDeleteParseTree (*Op); } Status2 = AcpiPsCompleteThisOp (WalkState, *Op); if (ACPI_FAILURE (Status2)) { return_ACPI_STATUS (Status2); } } AcpiPsPopScope (&(WalkState->ParserState), Op, &WalkState->ArgTypes, &WalkState->ArgCount); } while (*Op); #if 0 /* * TBD: Cleanup parse ops on error */ if (*Op == NULL) { AcpiPsPopScope (ParserState, Op, &WalkState->ArgTypes, &WalkState->ArgCount); } #endif WalkState->PrevOp = NULL; WalkState->PrevArgTypes = WalkState->ArgTypes; if (WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL) { /* * There was something that went wrong while executing code at the * module-level. We need to skip parsing whatever caused the * error and keep going. One runtime error during the table load * should not cause the entire table to not be loaded. This is * because there could be correct AML beyond the parts that caused * the runtime error. */ ACPI_INFO (("Ignoring error and continuing table load")); return_ACPI_STATUS (AE_OK); } return_ACPI_STATUS (Status); } /* This scope complete? */ if (AcpiPsHasCompletedScope (&(WalkState->ParserState))) { AcpiPsPopScope (&(WalkState->ParserState), Op, &WalkState->ArgTypes, &WalkState->ArgCount); ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Popped scope, Op=%p\n", *Op)); } else { *Op = NULL; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiPsCompleteFinalOp * * PARAMETERS: WalkState - Current state * Op - Current Op * Status - Current parse status before complete last * Op * * RETURN: Status * * DESCRIPTION: Complete last Op. * ******************************************************************************/ ACPI_STATUS AcpiPsCompleteFinalOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status) { ACPI_STATUS ReturnStatus = Status; BOOLEAN Ascending = TRUE; ACPI_FUNCTION_TRACE_PTR (PsCompleteFinalOp, WalkState); /* * Complete the last Op (if not completed), and clear the scope stack. * It is easily possible to end an AML "package" with an unbounded number * of open scopes (such as when several ASL blocks are closed with * sequential closing braces). We want to terminate each one cleanly. */ ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "AML package complete at Op %p\n", Op)); do { if (Op) { if (Ascending && WalkState->AscendingCallback != NULL) { WalkState->Op = Op; WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); WalkState->Opcode = Op->Common.AmlOpcode; Status = WalkState->AscendingCallback (WalkState); Status = AcpiPsNextParseState (WalkState, Op, Status); if (Status == AE_CTRL_PENDING) { Status = AcpiPsCompleteOp (WalkState, &Op, AE_OK); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } if (Status == AE_CTRL_TERMINATE) { Ascending = FALSE; ReturnStatus = AE_CTRL_TERMINATE; } else if (ACPI_FAILURE (Status)) { /* First error is most important */ Ascending = FALSE; ReturnStatus = Status; } } Status = AcpiPsCompleteThisOp (WalkState, Op); if (ACPI_FAILURE (Status)) { Ascending = FALSE; if (ACPI_SUCCESS (ReturnStatus) || ReturnStatus == AE_CTRL_TERMINATE) { ReturnStatus = Status; } } } AcpiPsPopScope (&(WalkState->ParserState), &Op, &WalkState->ArgTypes, &WalkState->ArgCount); } while (Op); return_ACPI_STATUS (ReturnStatus); } acpica-unix-20250404/source/components/parser/psscope.c0000775000175000017500000002074614773714133022354 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: psscope - Parser scope stack management routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #define _COMPONENT ACPI_PARSER ACPI_MODULE_NAME ("psscope") /******************************************************************************* * * FUNCTION: AcpiPsGetParentScope * * PARAMETERS: ParserState - Current parser state object * * RETURN: Pointer to an Op object * * DESCRIPTION: Get parent of current op being parsed * ******************************************************************************/ ACPI_PARSE_OBJECT * AcpiPsGetParentScope ( ACPI_PARSE_STATE *ParserState) { return (ParserState->Scope->ParseScope.Op); } /******************************************************************************* * * FUNCTION: AcpiPsHasCompletedScope * * PARAMETERS: ParserState - Current parser state object * * RETURN: Boolean, TRUE = scope completed. * * DESCRIPTION: Is parsing of current argument complete? Determined by * 1) AML pointer is at or beyond the end of the scope * 2) The scope argument count has reached zero. * ******************************************************************************/ BOOLEAN AcpiPsHasCompletedScope ( ACPI_PARSE_STATE *ParserState) { return ((BOOLEAN) ((ParserState->Aml >= ParserState->Scope->ParseScope.ArgEnd || !ParserState->Scope->ParseScope.ArgCount))); } /******************************************************************************* * * FUNCTION: AcpiPsInitScope * * PARAMETERS: ParserState - Current parser state object * Root - the Root Node of this new scope * * RETURN: Status * * DESCRIPTION: Allocate and init a new scope object * ******************************************************************************/ ACPI_STATUS AcpiPsInitScope ( ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT *RootOp) { ACPI_GENERIC_STATE *Scope; ACPI_FUNCTION_TRACE_PTR (PsInitScope, RootOp); Scope = AcpiUtCreateGenericState (); if (!Scope) { return_ACPI_STATUS (AE_NO_MEMORY); } Scope->Common.DescriptorType = ACPI_DESC_TYPE_STATE_RPSCOPE; Scope->ParseScope.Op = RootOp; Scope->ParseScope.ArgCount = ACPI_VAR_ARGS; Scope->ParseScope.ArgEnd = ParserState->AmlEnd; Scope->ParseScope.PkgEnd = ParserState->AmlEnd; ParserState->Scope = Scope; ParserState->StartOp = RootOp; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiPsPushScope * * PARAMETERS: ParserState - Current parser state object * Op - Current op to be pushed * RemainingArgs - List of args remaining * ArgCount - Fixed or variable number of args * * RETURN: Status * * DESCRIPTION: Push current op to begin parsing its argument * ******************************************************************************/ ACPI_STATUS AcpiPsPushScope ( ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT *Op, UINT32 RemainingArgs, UINT32 ArgCount) { ACPI_GENERIC_STATE *Scope; ACPI_FUNCTION_TRACE_PTR (PsPushScope, Op); Scope = AcpiUtCreateGenericState (); if (!Scope) { return_ACPI_STATUS (AE_NO_MEMORY); } Scope->Common.DescriptorType = ACPI_DESC_TYPE_STATE_PSCOPE; Scope->ParseScope.Op = Op; Scope->ParseScope.ArgList = RemainingArgs; Scope->ParseScope.ArgCount = ArgCount; Scope->ParseScope.PkgEnd = ParserState->PkgEnd; /* Push onto scope stack */ AcpiUtPushGenericState (&ParserState->Scope, Scope); if (ArgCount == ACPI_VAR_ARGS) { /* Multiple arguments */ Scope->ParseScope.ArgEnd = ParserState->PkgEnd; } else { /* Single argument */ Scope->ParseScope.ArgEnd = ACPI_TO_POINTER (ACPI_MAX_PTR); } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiPsPopScope * * PARAMETERS: ParserState - Current parser state object * Op - Where the popped op is returned * ArgList - Where the popped "next argument" is * returned * ArgCount - Count of objects in ArgList * * RETURN: Status * * DESCRIPTION: Return to parsing a previous op * ******************************************************************************/ void AcpiPsPopScope ( ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT **Op, UINT32 *ArgList, UINT32 *ArgCount) { ACPI_GENERIC_STATE *Scope = ParserState->Scope; ACPI_FUNCTION_TRACE (PsPopScope); /* Only pop the scope if there is in fact a next scope */ if (Scope->Common.Next) { Scope = AcpiUtPopGenericState (&ParserState->Scope); /* Return to parsing previous op */ *Op = Scope->ParseScope.Op; *ArgList = Scope->ParseScope.ArgList; *ArgCount = Scope->ParseScope.ArgCount; ParserState->PkgEnd = Scope->ParseScope.PkgEnd; /* All done with this scope state structure */ AcpiUtDeleteGenericState (Scope); } else { /* Empty parse stack, prepare to fetch next opcode */ *Op = NULL; *ArgList = 0; *ArgCount = 0; } ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Popped Op %p Args %X\n", *Op, *ArgCount)); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiPsCleanupScope * * PARAMETERS: ParserState - Current parser state object * * RETURN: None * * DESCRIPTION: Destroy available list, remaining stack levels, and return * root scope * ******************************************************************************/ void AcpiPsCleanupScope ( ACPI_PARSE_STATE *ParserState) { ACPI_GENERIC_STATE *Scope; ACPI_FUNCTION_TRACE_PTR (PsCleanupScope, ParserState); if (!ParserState) { return_VOID; } /* Delete anything on the scope stack */ while (ParserState->Scope) { Scope = AcpiUtPopGenericState (&ParserState->Scope); AcpiUtDeleteGenericState (Scope); } return_VOID; } acpica-unix-20250404/source/components/hardware/0000775000175000017500000000000014773714132021020 5ustar ivanhuivanhuacpica-unix-20250404/source/components/hardware/hwesleep.c0000775000175000017500000001776314773714132023021 0ustar ivanhuivanhu/****************************************************************************** * * Name: hwesleep.c - ACPI Hardware Sleep/Wake Support functions for the * extended FADT-V5 sleep registers. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME ("hwesleep") /******************************************************************************* * * FUNCTION: AcpiHwExecuteSleepMethod * * PARAMETERS: MethodPathname - Pathname of method to execute * IntegerArgument - Argument to pass to the method * * RETURN: None * * DESCRIPTION: Execute a sleep/wake related method with one integer argument * and no return value. * ******************************************************************************/ void AcpiHwExecuteSleepMethod ( char *MethodPathname, UINT32 IntegerArgument) { ACPI_OBJECT_LIST ArgList; ACPI_OBJECT Arg; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (HwExecuteSleepMethod); /* One argument, IntegerArgument; No return value expected */ ArgList.Count = 1; ArgList.Pointer = &Arg; Arg.Type = ACPI_TYPE_INTEGER; Arg.Integer.Value = (UINT64) IntegerArgument; Status = AcpiEvaluateObject (NULL, MethodPathname, &ArgList, NULL); if (ACPI_FAILURE (Status) && Status != AE_NOT_FOUND) { ACPI_EXCEPTION ((AE_INFO, Status, "While executing method %s", MethodPathname)); } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiHwExtendedSleep * * PARAMETERS: SleepState - Which sleep state to enter * * RETURN: Status * * DESCRIPTION: Enter a system sleep state via the extended FADT sleep * registers (V5 FADT). * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED * ******************************************************************************/ ACPI_STATUS AcpiHwExtendedSleep ( UINT8 SleepState) { ACPI_STATUS Status; UINT8 SleepControl; UINT64 SleepStatus; ACPI_FUNCTION_TRACE (HwExtendedSleep); /* Extended sleep registers must be valid */ if (!AcpiGbl_FADT.SleepControl.Address || !AcpiGbl_FADT.SleepStatus.Address) { return_ACPI_STATUS (AE_NOT_EXIST); } /* Clear wake status (WAK_STS) */ Status = AcpiWrite ((UINT64) ACPI_X_WAKE_STATUS, &AcpiGbl_FADT.SleepStatus); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } AcpiGbl_SystemAwakeAndRunning = FALSE; /* * Set the SLP_TYP and SLP_EN bits. * * Note: We only use the first value returned by the \_Sx method * (AcpiGbl_SleepTypeA) - As per ACPI specification. */ ACPI_DEBUG_PRINT ((ACPI_DB_INIT, "Entering sleep state [S%u]\n", SleepState)); SleepControl = ((AcpiGbl_SleepTypeA << ACPI_X_SLEEP_TYPE_POSITION) & ACPI_X_SLEEP_TYPE_MASK) | ACPI_X_SLEEP_ENABLE; /* Flush caches, as per ACPI specification */ if (SleepState < ACPI_STATE_S4) { ACPI_FLUSH_CPU_CACHE (); } Status = AcpiOsEnterSleep (SleepState, SleepControl, 0); if (Status == AE_CTRL_TERMINATE) { return_ACPI_STATUS (AE_OK); } if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiWrite ((UINT64) SleepControl, &AcpiGbl_FADT.SleepControl); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Wait for transition back to Working State */ do { Status = AcpiRead (&SleepStatus, &AcpiGbl_FADT.SleepStatus); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } while (!(((UINT8) SleepStatus) & ACPI_X_WAKE_STATUS)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiHwExtendedWakePrep * * PARAMETERS: SleepState - Which sleep state we just exited * * RETURN: Status * * DESCRIPTION: Perform first part of OS-independent ACPI cleanup after * a sleep. Called with interrupts ENABLED. * ******************************************************************************/ ACPI_STATUS AcpiHwExtendedWakePrep ( UINT8 SleepState) { UINT8 SleepTypeValue; ACPI_FUNCTION_TRACE (HwExtendedWakePrep); if (AcpiGbl_SleepTypeAS0 != ACPI_SLEEP_TYPE_INVALID) { SleepTypeValue = ((AcpiGbl_SleepTypeAS0 << ACPI_X_SLEEP_TYPE_POSITION) & ACPI_X_SLEEP_TYPE_MASK); (void) AcpiWrite ((UINT64) (SleepTypeValue | ACPI_X_SLEEP_ENABLE), &AcpiGbl_FADT.SleepControl); } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiHwExtendedWake * * PARAMETERS: SleepState - Which sleep state we just exited * * RETURN: Status * * DESCRIPTION: Perform OS-independent ACPI cleanup after a sleep * Called with interrupts ENABLED. * ******************************************************************************/ ACPI_STATUS AcpiHwExtendedWake ( UINT8 SleepState) { ACPI_FUNCTION_TRACE (HwExtendedWake); /* Ensure EnterSleepStatePrep -> EnterSleepState ordering */ AcpiGbl_SleepTypeA = ACPI_SLEEP_TYPE_INVALID; /* Execute the wake methods */ AcpiHwExecuteSleepMethod (METHOD_PATHNAME__SST, ACPI_SST_WAKING); AcpiHwExecuteSleepMethod (METHOD_PATHNAME__WAK, SleepState); /* * Some BIOS code assumes that WAK_STS will be cleared on resume * and use it to determine whether the system is rebooting or * resuming. Clear WAK_STS for compatibility. */ (void) AcpiWrite ((UINT64) ACPI_X_WAKE_STATUS, &AcpiGbl_FADT.SleepStatus); AcpiGbl_SystemAwakeAndRunning = TRUE; AcpiHwExecuteSleepMethod (METHOD_PATHNAME__SST, ACPI_SST_WORKING); return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/hardware/hwacpi.c0000775000175000017500000001477214773714132022455 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: hwacpi - ACPI Hardware Initialization/Mode Interface * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME ("hwacpi") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /****************************************************************************** * * FUNCTION: AcpiHwSetMode * * PARAMETERS: Mode - SYS_MODE_ACPI or SYS_MODE_LEGACY * * RETURN: Status * * DESCRIPTION: Transitions the system into the requested mode. * ******************************************************************************/ ACPI_STATUS AcpiHwSetMode ( UINT32 Mode) { ACPI_STATUS Status; UINT32 Retry; ACPI_FUNCTION_TRACE (HwSetMode); /* If the Hardware Reduced flag is set, machine is always in acpi mode */ if (AcpiGbl_ReducedHardware) { return_ACPI_STATUS (AE_OK); } /* * ACPI 2.0 clarified that if SMI_CMD in FADT is zero, * system does not support mode transition. */ if (!AcpiGbl_FADT.SmiCommand) { ACPI_ERROR ((AE_INFO, "No SMI_CMD in FADT, mode transition failed")); return_ACPI_STATUS (AE_NO_HARDWARE_RESPONSE); } /* * ACPI 2.0 clarified the meaning of ACPI_ENABLE and ACPI_DISABLE * in FADT: If it is zero, enabling or disabling is not supported. * As old systems may have used zero for mode transition, * we make sure both the numbers are zero to determine these * transitions are not supported. */ if (!AcpiGbl_FADT.AcpiEnable && !AcpiGbl_FADT.AcpiDisable) { ACPI_ERROR ((AE_INFO, "No ACPI mode transition supported in this system " "(enable/disable both zero)")); return_ACPI_STATUS (AE_OK); } switch (Mode) { case ACPI_SYS_MODE_ACPI: /* BIOS should have disabled ALL fixed and GP events */ Status = AcpiHwWritePort (AcpiGbl_FADT.SmiCommand, (UINT32) AcpiGbl_FADT.AcpiEnable, 8); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Attempting to enable ACPI mode\n")); break; case ACPI_SYS_MODE_LEGACY: /* * BIOS should clear all fixed status bits and restore fixed event * enable bits to default */ Status = AcpiHwWritePort (AcpiGbl_FADT.SmiCommand, (UINT32) AcpiGbl_FADT.AcpiDisable, 8); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Attempting to enable Legacy (non-ACPI) mode\n")); break; default: return_ACPI_STATUS (AE_BAD_PARAMETER); } if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not write ACPI mode change")); return_ACPI_STATUS (Status); } /* * Some hardware takes a LONG time to switch modes. Give them 3 sec to * do so, but allow faster systems to proceed more quickly. */ Retry = 3000; while (Retry) { if (AcpiHwGetMode () == Mode) { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Mode %X successfully enabled\n", Mode)); return_ACPI_STATUS (AE_OK); } AcpiOsStall (ACPI_USEC_PER_MSEC); Retry--; } ACPI_ERROR ((AE_INFO, "Hardware did not change modes")); return_ACPI_STATUS (AE_NO_HARDWARE_RESPONSE); } /******************************************************************************* * * FUNCTION: AcpiHwGetMode * * PARAMETERS: none * * RETURN: SYS_MODE_ACPI or SYS_MODE_LEGACY * * DESCRIPTION: Return current operating state of system. Determined by * querying the SCI_EN bit. * ******************************************************************************/ UINT32 AcpiHwGetMode ( void) { ACPI_STATUS Status; UINT32 Value; ACPI_FUNCTION_TRACE (HwGetMode); /* If the Hardware Reduced flag is set, machine is always in acpi mode */ if (AcpiGbl_ReducedHardware) { return_UINT32 (ACPI_SYS_MODE_ACPI); } /* * ACPI 2.0 clarified that if SMI_CMD in FADT is zero, * system does not support mode transition. */ if (!AcpiGbl_FADT.SmiCommand) { return_UINT32 (ACPI_SYS_MODE_ACPI); } Status = AcpiReadBitRegister (ACPI_BITREG_SCI_ENABLE, &Value); if (ACPI_FAILURE (Status)) { return_UINT32 (ACPI_SYS_MODE_LEGACY); } if (Value) { return_UINT32 (ACPI_SYS_MODE_ACPI); } else { return_UINT32 (ACPI_SYS_MODE_LEGACY); } } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/hardware/hwregs.c0000775000175000017500000006435614773714132022504 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: hwregs - Read/write access functions for the various ACPI * control and status registers. * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME ("hwregs") #if (!ACPI_REDUCED_HARDWARE) /* Local Prototypes */ static UINT8 AcpiHwGetAccessBitWidth ( UINT64 Address, ACPI_GENERIC_ADDRESS *Reg, UINT8 MaxBitWidth); static ACPI_STATUS AcpiHwReadMultiple ( UINT32 *Value, ACPI_GENERIC_ADDRESS *RegisterA, ACPI_GENERIC_ADDRESS *RegisterB); static ACPI_STATUS AcpiHwWriteMultiple ( UINT32 Value, ACPI_GENERIC_ADDRESS *RegisterA, ACPI_GENERIC_ADDRESS *RegisterB); #endif /* !ACPI_REDUCED_HARDWARE */ /****************************************************************************** * * FUNCTION: AcpiHwGetAccessBitWidth * * PARAMETERS: Address - GAS register address * Reg - GAS register structure * MaxBitWidth - Max BitWidth supported (32 or 64) * * RETURN: Status * * DESCRIPTION: Obtain optimal access bit width * ******************************************************************************/ static UINT8 AcpiHwGetAccessBitWidth ( UINT64 Address, ACPI_GENERIC_ADDRESS *Reg, UINT8 MaxBitWidth) { UINT8 AccessBitWidth; /* * GAS format "register", used by FADT: * 1. Detected if BitOffset is 0 and BitWidth is 8/16/32/64; * 2. AccessSize field is ignored and BitWidth field is used for * determining the boundary of the IO accesses. * GAS format "region", used by APEI registers: * 1. Detected if BitOffset is not 0 or BitWidth is not 8/16/32/64; * 2. AccessSize field is used for determining the boundary of the * IO accesses; * 3. BitOffset/BitWidth fields are used to describe the "region". * * Note: This algorithm assumes that the "Address" fields should always * contain aligned values. */ if (!Reg->BitOffset && Reg->BitWidth && ACPI_IS_POWER_OF_TWO (Reg->BitWidth) && ACPI_IS_ALIGNED (Reg->BitWidth, 8)) { AccessBitWidth = Reg->BitWidth; } else if (Reg->AccessWidth) { AccessBitWidth = ACPI_ACCESS_BIT_WIDTH (Reg->AccessWidth); } else { AccessBitWidth = ACPI_ROUND_UP_POWER_OF_TWO_8 ( Reg->BitOffset + Reg->BitWidth); if (AccessBitWidth <= 8) { AccessBitWidth = 8; } else { while (!ACPI_IS_ALIGNED (Address, AccessBitWidth >> 3)) { AccessBitWidth >>= 1; } } } /* Maximum IO port access bit width is 32 */ if (Reg->SpaceId == ACPI_ADR_SPACE_SYSTEM_IO) { MaxBitWidth = 32; } /* * Return access width according to the requested maximum access bit width, * as the caller should know the format of the register and may enforce * a 32-bit accesses. */ if (AccessBitWidth < MaxBitWidth) { return (AccessBitWidth); } return (MaxBitWidth); } /****************************************************************************** * * FUNCTION: AcpiHwValidateRegister * * PARAMETERS: Reg - GAS register structure * MaxBitWidth - Max BitWidth supported (32 or 64) * Address - Pointer to where the gas->address * is returned * * RETURN: Status * * DESCRIPTION: Validate the contents of a GAS register. Checks the GAS * pointer, Address, SpaceId, BitWidth, and BitOffset. * ******************************************************************************/ ACPI_STATUS AcpiHwValidateRegister ( ACPI_GENERIC_ADDRESS *Reg, UINT8 MaxBitWidth, UINT64 *Address) { UINT8 BitWidth; UINT8 AccessWidth; /* Must have a valid pointer to a GAS structure */ if (!Reg) { return (AE_BAD_PARAMETER); } /* * Copy the target address. This handles possible alignment issues. * Address must not be null. A null address also indicates an optional * ACPI register that is not supported, so no error message. */ ACPI_MOVE_64_TO_64 (Address, &Reg->Address); if (!(*Address)) { return (AE_BAD_ADDRESS); } /* Validate the SpaceID */ if ((Reg->SpaceId != ACPI_ADR_SPACE_SYSTEM_MEMORY) && (Reg->SpaceId != ACPI_ADR_SPACE_SYSTEM_IO)) { ACPI_ERROR ((AE_INFO, "Unsupported address space: 0x%X", Reg->SpaceId)); return (AE_SUPPORT); } /* Validate the AccessWidth */ if (Reg->AccessWidth > 4) { ACPI_ERROR ((AE_INFO, "Unsupported register access width: 0x%X", Reg->AccessWidth)); return (AE_SUPPORT); } /* Validate the BitWidth, convert AccessWidth into number of bits */ AccessWidth = AcpiHwGetAccessBitWidth (*Address, Reg, MaxBitWidth); BitWidth = ACPI_ROUND_UP (Reg->BitOffset + Reg->BitWidth, AccessWidth); if (MaxBitWidth < BitWidth) { ACPI_WARNING ((AE_INFO, "Requested bit width 0x%X is smaller than register bit width 0x%X", MaxBitWidth, BitWidth)); return (AE_SUPPORT); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwRead * * PARAMETERS: Value - Where the value is returned * Reg - GAS register structure * * RETURN: Status * * DESCRIPTION: Read from either memory or IO space. This is a 64-bit max * version of AcpiRead. * * LIMITATIONS: * SpaceID must be SystemMemory or SystemIO. * ******************************************************************************/ ACPI_STATUS AcpiHwRead ( UINT64 *Value, ACPI_GENERIC_ADDRESS *Reg) { UINT64 Address; UINT8 AccessWidth; UINT32 BitWidth; UINT8 BitOffset; UINT64 Value64; UINT32 Value32; UINT8 Index; ACPI_STATUS Status; ACPI_FUNCTION_NAME (HwRead); /* Validate contents of the GAS register */ Status = AcpiHwValidateRegister (Reg, 64, &Address); if (ACPI_FAILURE (Status)) { return (Status); } /* * Initialize entire 64-bit return value to zero, convert AccessWidth * into number of bits based */ *Value = 0; AccessWidth = AcpiHwGetAccessBitWidth (Address, Reg, 64); BitWidth = Reg->BitOffset + Reg->BitWidth; BitOffset = Reg->BitOffset; /* * Two address spaces supported: Memory or IO. PCI_Config is * not supported here because the GAS structure is insufficient */ Index = 0; while (BitWidth) { if (BitOffset >= AccessWidth) { Value64 = 0; BitOffset -= AccessWidth; } else { if (Reg->SpaceId == ACPI_ADR_SPACE_SYSTEM_MEMORY) { Status = AcpiOsReadMemory ((ACPI_PHYSICAL_ADDRESS) Address + Index * ACPI_DIV_8 (AccessWidth), &Value64, AccessWidth); } else /* ACPI_ADR_SPACE_SYSTEM_IO, validated earlier */ { Status = AcpiHwReadPort ((ACPI_IO_ADDRESS) Address + Index * ACPI_DIV_8 (AccessWidth), &Value32, AccessWidth); Value64 = (UINT64) Value32; } } /* * Use offset style bit writes because "Index * AccessWidth" is * ensured to be less than 64-bits by AcpiHwValidateRegister(). */ ACPI_SET_BITS (Value, Index * AccessWidth, ACPI_MASK_BITS_ABOVE_64 (AccessWidth), Value64); BitWidth -= BitWidth > AccessWidth ? AccessWidth : BitWidth; Index++; } ACPI_DEBUG_PRINT ((ACPI_DB_IO, "Read: %8.8X%8.8X width %2d from %8.8X%8.8X (%s)\n", ACPI_FORMAT_UINT64 (*Value), AccessWidth, ACPI_FORMAT_UINT64 (Address), AcpiUtGetRegionName (Reg->SpaceId))); return (Status); } /****************************************************************************** * * FUNCTION: AcpiHwWrite * * PARAMETERS: Value - Value to be written * Reg - GAS register structure * * RETURN: Status * * DESCRIPTION: Write to either memory or IO space. This is a 64-bit max * version of AcpiWrite. * ******************************************************************************/ ACPI_STATUS AcpiHwWrite ( UINT64 Value, ACPI_GENERIC_ADDRESS *Reg) { UINT64 Address; UINT8 AccessWidth; UINT32 BitWidth; UINT8 BitOffset; UINT64 Value64; UINT8 Index; ACPI_STATUS Status; ACPI_FUNCTION_NAME (HwWrite); /* Validate contents of the GAS register */ Status = AcpiHwValidateRegister (Reg, 64, &Address); if (ACPI_FAILURE (Status)) { return (Status); } /* Convert AccessWidth into number of bits based */ AccessWidth = AcpiHwGetAccessBitWidth (Address, Reg, 64); BitWidth = Reg->BitOffset + Reg->BitWidth; BitOffset = Reg->BitOffset; /* * Two address spaces supported: Memory or IO. PCI_Config is * not supported here because the GAS structure is insufficient */ Index = 0; while (BitWidth) { /* * Use offset style bit reads because "Index * AccessWidth" is * ensured to be less than 64-bits by AcpiHwValidateRegister(). */ Value64 = ACPI_GET_BITS (&Value, Index * AccessWidth, ACPI_MASK_BITS_ABOVE_64 (AccessWidth)); if (BitOffset >= AccessWidth) { BitOffset -= AccessWidth; } else { if (Reg->SpaceId == ACPI_ADR_SPACE_SYSTEM_MEMORY) { Status = AcpiOsWriteMemory ((ACPI_PHYSICAL_ADDRESS) Address + Index * ACPI_DIV_8 (AccessWidth), Value64, AccessWidth); } else /* ACPI_ADR_SPACE_SYSTEM_IO, validated earlier */ { Status = AcpiHwWritePort ((ACPI_IO_ADDRESS) Address + Index * ACPI_DIV_8 (AccessWidth), (UINT32) Value64, AccessWidth); } } /* * Index * AccessWidth is ensured to be less than 32-bits by * AcpiHwValidateRegister(). */ BitWidth -= BitWidth > AccessWidth ? AccessWidth : BitWidth; Index++; } ACPI_DEBUG_PRINT ((ACPI_DB_IO, "Wrote: %8.8X%8.8X width %2d to %8.8X%8.8X (%s)\n", ACPI_FORMAT_UINT64 (Value), AccessWidth, ACPI_FORMAT_UINT64 (Address), AcpiUtGetRegionName (Reg->SpaceId))); return (Status); } #if (!ACPI_REDUCED_HARDWARE) /******************************************************************************* * * FUNCTION: AcpiHwClearAcpiStatus * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Clears all fixed and general purpose status bits * ******************************************************************************/ ACPI_STATUS AcpiHwClearAcpiStatus ( void) { ACPI_STATUS Status; ACPI_CPU_FLAGS LockFlags = 0; ACPI_FUNCTION_TRACE (HwClearAcpiStatus); ACPI_DEBUG_PRINT ((ACPI_DB_IO, "About to write %04X to %8.8X%8.8X\n", ACPI_BITMASK_ALL_FIXED_STATUS, ACPI_FORMAT_UINT64 (AcpiGbl_XPm1aStatus.Address))); LockFlags = AcpiOsAcquireLock (AcpiGbl_HardwareLock); /* Clear the fixed events in PM1 A/B */ Status = AcpiHwRegisterWrite (ACPI_REGISTER_PM1_STATUS, ACPI_BITMASK_ALL_FIXED_STATUS); AcpiOsReleaseLock (AcpiGbl_HardwareLock, LockFlags); if (ACPI_FAILURE (Status)) { goto Exit; } /* Clear the GPE Bits in all GPE registers in all GPE blocks */ Status = AcpiEvWalkGpeList (AcpiHwClearGpeBlock, NULL); Exit: return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiHwGetBitRegisterInfo * * PARAMETERS: RegisterId - Index of ACPI Register to access * * RETURN: The bitmask to be used when accessing the register * * DESCRIPTION: Map RegisterId into a register bitmask. * ******************************************************************************/ ACPI_BIT_REGISTER_INFO * AcpiHwGetBitRegisterInfo ( UINT32 RegisterId) { ACPI_FUNCTION_ENTRY (); if (RegisterId > ACPI_BITREG_MAX) { ACPI_ERROR ((AE_INFO, "Invalid BitRegister ID: 0x%X", RegisterId)); return (NULL); } return (&AcpiGbl_BitRegisterInfo[RegisterId]); } /****************************************************************************** * * FUNCTION: AcpiHwWritePm1Control * * PARAMETERS: Pm1aControl - Value to be written to PM1A control * Pm1bControl - Value to be written to PM1B control * * RETURN: Status * * DESCRIPTION: Write the PM1 A/B control registers. These registers are * different than the PM1 A/B status and enable registers * in that different values can be written to the A/B registers. * Most notably, the SLP_TYP bits can be different, as per the * values returned from the _Sx predefined methods. * ******************************************************************************/ ACPI_STATUS AcpiHwWritePm1Control ( UINT32 Pm1aControl, UINT32 Pm1bControl) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (HwWritePm1Control); Status = AcpiHwWrite (Pm1aControl, &AcpiGbl_FADT.XPm1aControlBlock); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (AcpiGbl_FADT.XPm1bControlBlock.Address) { Status = AcpiHwWrite (Pm1bControl, &AcpiGbl_FADT.XPm1bControlBlock); } return_ACPI_STATUS (Status); } /****************************************************************************** * * FUNCTION: AcpiHwRegisterRead * * PARAMETERS: RegisterId - ACPI Register ID * ReturnValue - Where the register value is returned * * RETURN: Status and the value read. * * DESCRIPTION: Read from the specified ACPI register * ******************************************************************************/ ACPI_STATUS AcpiHwRegisterRead ( UINT32 RegisterId, UINT32 *ReturnValue) { UINT32 Value = 0; UINT64 Value64; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (HwRegisterRead); switch (RegisterId) { case ACPI_REGISTER_PM1_STATUS: /* PM1 A/B: 16-bit access each */ Status = AcpiHwReadMultiple (&Value, &AcpiGbl_XPm1aStatus, &AcpiGbl_XPm1bStatus); break; case ACPI_REGISTER_PM1_ENABLE: /* PM1 A/B: 16-bit access each */ Status = AcpiHwReadMultiple (&Value, &AcpiGbl_XPm1aEnable, &AcpiGbl_XPm1bEnable); break; case ACPI_REGISTER_PM1_CONTROL: /* PM1 A/B: 16-bit access each */ Status = AcpiHwReadMultiple (&Value, &AcpiGbl_FADT.XPm1aControlBlock, &AcpiGbl_FADT.XPm1bControlBlock); /* * Zero the write-only bits. From the ACPI specification, "Hardware * Write-Only Bits": "Upon reads to registers with write-only bits, * software masks out all write-only bits." */ Value &= ~ACPI_PM1_CONTROL_WRITEONLY_BITS; break; case ACPI_REGISTER_PM2_CONTROL: /* 8-bit access */ Status = AcpiHwRead (&Value64, &AcpiGbl_FADT.XPm2ControlBlock); if (ACPI_SUCCESS (Status)) { Value = (UINT32) Value64; } break; case ACPI_REGISTER_PM_TIMER: /* 32-bit access */ Status = AcpiHwRead (&Value64, &AcpiGbl_FADT.XPmTimerBlock); if (ACPI_SUCCESS (Status)) { Value = (UINT32) Value64; } break; case ACPI_REGISTER_SMI_COMMAND_BLOCK: /* 8-bit access */ Status = AcpiHwReadPort (AcpiGbl_FADT.SmiCommand, &Value, 8); break; default: ACPI_ERROR ((AE_INFO, "Unknown Register ID: 0x%X", RegisterId)); Status = AE_BAD_PARAMETER; break; } if (ACPI_SUCCESS (Status)) { *ReturnValue = (UINT32) Value; } return_ACPI_STATUS (Status); } /****************************************************************************** * * FUNCTION: AcpiHwRegisterWrite * * PARAMETERS: RegisterId - ACPI Register ID * Value - The value to write * * RETURN: Status * * DESCRIPTION: Write to the specified ACPI register * * NOTE: In accordance with the ACPI specification, this function automatically * preserves the value of the following bits, meaning that these bits cannot be * changed via this interface: * * PM1_CONTROL[0] = SCI_EN * PM1_CONTROL[9] * PM1_STATUS[11] * * ACPI References: * 1) Hardware Ignored Bits: When software writes to a register with ignored * bit fields, it preserves the ignored bit fields * 2) SCI_EN: OSPM always preserves this bit position * ******************************************************************************/ ACPI_STATUS AcpiHwRegisterWrite ( UINT32 RegisterId, UINT32 Value) { ACPI_STATUS Status; UINT32 ReadValue; UINT64 ReadValue64; ACPI_FUNCTION_TRACE (HwRegisterWrite); switch (RegisterId) { case ACPI_REGISTER_PM1_STATUS: /* PM1 A/B: 16-bit access each */ /* * Handle the "ignored" bit in PM1 Status. According to the ACPI * specification, ignored bits are to be preserved when writing. * Normally, this would mean a read/modify/write sequence. However, * preserving a bit in the status register is different. Writing a * one clears the status, and writing a zero preserves the status. * Therefore, we must always write zero to the ignored bit. * * This behavior is clarified in the ACPI 4.0 specification. */ Value &= ~ACPI_PM1_STATUS_PRESERVED_BITS; Status = AcpiHwWriteMultiple (Value, &AcpiGbl_XPm1aStatus, &AcpiGbl_XPm1bStatus); break; case ACPI_REGISTER_PM1_ENABLE: /* PM1 A/B: 16-bit access each */ Status = AcpiHwWriteMultiple (Value, &AcpiGbl_XPm1aEnable, &AcpiGbl_XPm1bEnable); break; case ACPI_REGISTER_PM1_CONTROL: /* PM1 A/B: 16-bit access each */ /* * Perform a read first to preserve certain bits (per ACPI spec) * Note: This includes SCI_EN, we never want to change this bit */ Status = AcpiHwReadMultiple (&ReadValue, &AcpiGbl_FADT.XPm1aControlBlock, &AcpiGbl_FADT.XPm1bControlBlock); if (ACPI_FAILURE (Status)) { goto Exit; } /* Insert the bits to be preserved */ ACPI_INSERT_BITS (Value, ACPI_PM1_CONTROL_PRESERVED_BITS, ReadValue); /* Now we can write the data */ Status = AcpiHwWriteMultiple (Value, &AcpiGbl_FADT.XPm1aControlBlock, &AcpiGbl_FADT.XPm1bControlBlock); break; case ACPI_REGISTER_PM2_CONTROL: /* 8-bit access */ /* * For control registers, all reserved bits must be preserved, * as per the ACPI spec. */ Status = AcpiHwRead (&ReadValue64, &AcpiGbl_FADT.XPm2ControlBlock); if (ACPI_FAILURE (Status)) { goto Exit; } ReadValue = (UINT32) ReadValue64; /* Insert the bits to be preserved */ ACPI_INSERT_BITS (Value, ACPI_PM2_CONTROL_PRESERVED_BITS, ReadValue); Status = AcpiHwWrite (Value, &AcpiGbl_FADT.XPm2ControlBlock); break; case ACPI_REGISTER_PM_TIMER: /* 32-bit access */ Status = AcpiHwWrite (Value, &AcpiGbl_FADT.XPmTimerBlock); break; case ACPI_REGISTER_SMI_COMMAND_BLOCK: /* 8-bit access */ /* SMI_CMD is currently always in IO space */ Status = AcpiHwWritePort (AcpiGbl_FADT.SmiCommand, Value, 8); break; default: ACPI_ERROR ((AE_INFO, "Unknown Register ID: 0x%X", RegisterId)); Status = AE_BAD_PARAMETER; break; } Exit: return_ACPI_STATUS (Status); } /****************************************************************************** * * FUNCTION: AcpiHwReadMultiple * * PARAMETERS: Value - Where the register value is returned * RegisterA - First ACPI register (required) * RegisterB - Second ACPI register (optional) * * RETURN: Status * * DESCRIPTION: Read from the specified two-part ACPI register (such as PM1 A/B) * ******************************************************************************/ static ACPI_STATUS AcpiHwReadMultiple ( UINT32 *Value, ACPI_GENERIC_ADDRESS *RegisterA, ACPI_GENERIC_ADDRESS *RegisterB) { UINT32 ValueA = 0; UINT32 ValueB = 0; UINT64 Value64; ACPI_STATUS Status; /* The first register is always required */ Status = AcpiHwRead (&Value64, RegisterA); if (ACPI_FAILURE (Status)) { return (Status); } ValueA = (UINT32) Value64; /* Second register is optional */ if (RegisterB->Address) { Status = AcpiHwRead (&Value64, RegisterB); if (ACPI_FAILURE (Status)) { return (Status); } ValueB = (UINT32) Value64; } /* * OR the two return values together. No shifting or masking is necessary, * because of how the PM1 registers are defined in the ACPI specification: * * "Although the bits can be split between the two register blocks (each * register block has a unique pointer within the FADT), the bit positions * are maintained. The register block with unimplemented bits (that is, * those implemented in the other register block) always returns zeros, * and writes have no side effects" */ *Value = (ValueA | ValueB); return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwWriteMultiple * * PARAMETERS: Value - The value to write * RegisterA - First ACPI register (required) * RegisterB - Second ACPI register (optional) * * RETURN: Status * * DESCRIPTION: Write to the specified two-part ACPI register (such as PM1 A/B) * ******************************************************************************/ static ACPI_STATUS AcpiHwWriteMultiple ( UINT32 Value, ACPI_GENERIC_ADDRESS *RegisterA, ACPI_GENERIC_ADDRESS *RegisterB) { ACPI_STATUS Status; /* The first register is always required */ Status = AcpiHwWrite (Value, RegisterA); if (ACPI_FAILURE (Status)) { return (Status); } /* * Second register is optional * * No bit shifting or clearing is necessary, because of how the PM1 * registers are defined in the ACPI specification: * * "Although the bits can be split between the two register blocks (each * register block has a unique pointer within the FADT), the bit positions * are maintained. The register block with unimplemented bits (that is, * those implemented in the other register block) always returns zeros, * and writes have no side effects" */ if (RegisterB->Address) { Status = AcpiHwWrite (Value, RegisterB); } return (Status); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/hardware/hwtimer.c0000775000175000017500000001605514773714132022655 0ustar ivanhuivanhu/****************************************************************************** * * Name: hwtimer.c - ACPI Power Management Timer Interface * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME ("hwtimer") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /****************************************************************************** * * FUNCTION: AcpiGetTimerResolution * * PARAMETERS: Resolution - Where the resolution is returned * * RETURN: Status and timer resolution * * DESCRIPTION: Obtains resolution of the ACPI PM Timer (24 or 32 bits). * ******************************************************************************/ ACPI_STATUS AcpiGetTimerResolution ( UINT32 *Resolution) { ACPI_FUNCTION_TRACE (AcpiGetTimerResolution); if (!Resolution) { return_ACPI_STATUS (AE_BAD_PARAMETER); } if ((AcpiGbl_FADT.Flags & ACPI_FADT_32BIT_TIMER) == 0) { *Resolution = 24; } else { *Resolution = 32; } return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiGetTimerResolution) /****************************************************************************** * * FUNCTION: AcpiGetTimer * * PARAMETERS: Ticks - Where the timer value is returned * * RETURN: Status and current timer value (ticks) * * DESCRIPTION: Obtains current value of ACPI PM Timer (in ticks). * ******************************************************************************/ ACPI_STATUS AcpiGetTimer ( UINT32 *Ticks) { ACPI_STATUS Status; UINT64 TimerValue; ACPI_FUNCTION_TRACE (AcpiGetTimer); if (!Ticks) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* ACPI 5.0A: PM Timer is optional */ if (!AcpiGbl_FADT.XPmTimerBlock.Address) { return_ACPI_STATUS (AE_SUPPORT); } Status = AcpiHwRead (&TimerValue, &AcpiGbl_FADT.XPmTimerBlock); if (ACPI_SUCCESS (Status)) { /* ACPI PM Timer is defined to be 32 bits (PM_TMR_LEN) */ *Ticks = (UINT32) TimerValue; } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetTimer) /****************************************************************************** * * FUNCTION: AcpiGetTimerDuration * * PARAMETERS: StartTicks - Starting timestamp * EndTicks - End timestamp * TimeElapsed - Where the elapsed time is returned * * RETURN: Status and TimeElapsed * * DESCRIPTION: Computes the time elapsed (in microseconds) between two * PM Timer time stamps, taking into account the possibility of * rollovers, the timer resolution, and timer frequency. * * The PM Timer's clock ticks at roughly 3.6 times per * _microsecond_, and its clock continues through Cx state * transitions (unlike many CPU timestamp counters) -- making it * a versatile and accurate timer. * * Note that this function accommodates only a single timer * rollover. Thus for 24-bit timers, this function should only * be used for calculating durations less than ~4.6 seconds * (~20 minutes for 32-bit timers) -- calculations below: * * 2**24 Ticks / 3,600,000 Ticks/Sec = 4.66 sec * 2**32 Ticks / 3,600,000 Ticks/Sec = 1193 sec or 19.88 minutes * ******************************************************************************/ ACPI_STATUS AcpiGetTimerDuration ( UINT32 StartTicks, UINT32 EndTicks, UINT32 *TimeElapsed) { ACPI_STATUS Status; UINT64 DeltaTicks; UINT64 Quotient; ACPI_FUNCTION_TRACE (AcpiGetTimerDuration); if (!TimeElapsed) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* ACPI 5.0A: PM Timer is optional */ if (!AcpiGbl_FADT.XPmTimerBlock.Address) { return_ACPI_STATUS (AE_SUPPORT); } if (StartTicks == EndTicks) { *TimeElapsed = 0; return_ACPI_STATUS (AE_OK); } /* * Compute Tick Delta: * Handle (max one) timer rollovers on 24-bit versus 32-bit timers. */ DeltaTicks = EndTicks; if (StartTicks > EndTicks) { if ((AcpiGbl_FADT.Flags & ACPI_FADT_32BIT_TIMER) == 0) { /* 24-bit Timer */ DeltaTicks |= (UINT64) 1 << 24; } else { /* 32-bit Timer */ DeltaTicks |= (UINT64) 1 << 32; } } DeltaTicks -= StartTicks; /* * Compute Duration (Requires a 64-bit multiply and divide): * * TimeElapsed (microseconds) = * (DeltaTicks * ACPI_USEC_PER_SEC) / ACPI_PM_TIMER_FREQUENCY; */ Status = AcpiUtShortDivide (DeltaTicks * ACPI_USEC_PER_SEC, ACPI_PM_TIMER_FREQUENCY, &Quotient, NULL); *TimeElapsed = (UINT32) Quotient; return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetTimerDuration) #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/hardware/hwxface.c0000775000175000017500000003770314773714132022626 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: hwxface - Public ACPICA hardware interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME ("hwxface") /****************************************************************************** * * FUNCTION: AcpiReset * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Set reset register in memory or IO space. Note: Does not * support reset register in PCI config space, this must be * handled separately. * ******************************************************************************/ ACPI_STATUS AcpiReset ( void) { ACPI_GENERIC_ADDRESS *ResetReg; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiReset); ResetReg = &AcpiGbl_FADT.ResetRegister; /* Check if the reset register is supported */ if (!(AcpiGbl_FADT.Flags & ACPI_FADT_RESET_REGISTER) || !ResetReg->Address) { return_ACPI_STATUS (AE_NOT_EXIST); } if (ResetReg->SpaceId == ACPI_ADR_SPACE_SYSTEM_IO) { /* * For I/O space, write directly to the OSL. This bypasses the port * validation mechanism, which may block a valid write to the reset * register. * * NOTE: * The ACPI spec requires the reset register width to be 8, so we * hardcode it here and ignore the FADT value. This maintains * compatibility with other ACPI implementations that have allowed * BIOS code with bad register width values to go unnoticed. */ Status = AcpiOsWritePort ((ACPI_IO_ADDRESS) ResetReg->Address, AcpiGbl_FADT.ResetValue, ACPI_RESET_REGISTER_WIDTH); } else { /* Write the reset value to the reset register */ Status = AcpiHwWrite (AcpiGbl_FADT.ResetValue, ResetReg); } return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiReset) /****************************************************************************** * * FUNCTION: AcpiRead * * PARAMETERS: Value - Where the value is returned * Reg - GAS register structure * * RETURN: Status * * DESCRIPTION: Read from either memory or IO space. * * LIMITATIONS: * BitWidth must be exactly 8, 16, 32, or 64. * SpaceID must be SystemMemory or SystemIO. * BitOffset and AccessWidth are currently ignored, as there has * not been a need to implement these. * ******************************************************************************/ ACPI_STATUS AcpiRead ( UINT64 *ReturnValue, ACPI_GENERIC_ADDRESS *Reg) { ACPI_STATUS Status; ACPI_FUNCTION_NAME (AcpiRead); Status = AcpiHwRead (ReturnValue, Reg); return (Status); } ACPI_EXPORT_SYMBOL (AcpiRead) /****************************************************************************** * * FUNCTION: AcpiWrite * * PARAMETERS: Value - Value to be written * Reg - GAS register structure * * RETURN: Status * * DESCRIPTION: Write to either memory or IO space. * ******************************************************************************/ ACPI_STATUS AcpiWrite ( UINT64 Value, ACPI_GENERIC_ADDRESS *Reg) { ACPI_STATUS Status; ACPI_FUNCTION_NAME (AcpiWrite); Status = AcpiHwWrite (Value, Reg); return (Status); } ACPI_EXPORT_SYMBOL (AcpiWrite) #if (!ACPI_REDUCED_HARDWARE) /******************************************************************************* * * FUNCTION: AcpiReadBitRegister * * PARAMETERS: RegisterId - ID of ACPI Bit Register to access * ReturnValue - Value that was read from the register, * normalized to bit position zero. * * RETURN: Status and the value read from the specified Register. Value * returned is normalized to bit0 (is shifted all the way right) * * DESCRIPTION: ACPI BitRegister read function. Does not acquire the HW lock. * * SUPPORTS: Bit fields in PM1 Status, PM1 Enable, PM1 Control, and * PM2 Control. * * Note: The hardware lock is not required when reading the ACPI bit registers * since almost all of them are single bit and it does not matter that * the parent hardware register can be split across two physical * registers. The only multi-bit field is SLP_TYP in the PM1 control * register, but this field does not cross an 8-bit boundary (nor does * it make much sense to actually read this field.) * ******************************************************************************/ ACPI_STATUS AcpiReadBitRegister ( UINT32 RegisterId, UINT32 *ReturnValue) { ACPI_BIT_REGISTER_INFO *BitRegInfo; UINT32 RegisterValue; UINT32 Value; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_U32 (AcpiReadBitRegister, RegisterId); /* Get the info structure corresponding to the requested ACPI Register */ BitRegInfo = AcpiHwGetBitRegisterInfo (RegisterId); if (!BitRegInfo) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Read the entire parent register */ Status = AcpiHwRegisterRead (BitRegInfo->ParentRegister, &RegisterValue); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Normalize the value that was read, mask off other bits */ Value = ((RegisterValue & BitRegInfo->AccessBitMask) >> BitRegInfo->BitPosition); ACPI_DEBUG_PRINT ((ACPI_DB_IO, "BitReg %X, ParentReg %X, Actual %8.8X, ReturnValue %8.8X\n", RegisterId, BitRegInfo->ParentRegister, RegisterValue, Value)); *ReturnValue = Value; return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiReadBitRegister) /******************************************************************************* * * FUNCTION: AcpiWriteBitRegister * * PARAMETERS: RegisterId - ID of ACPI Bit Register to access * Value - Value to write to the register, in bit * position zero. The bit is automatically * shifted to the correct position. * * RETURN: Status * * DESCRIPTION: ACPI Bit Register write function. Acquires the hardware lock * since most operations require a read/modify/write sequence. * * SUPPORTS: Bit fields in PM1 Status, PM1 Enable, PM1 Control, and * PM2 Control. * * Note that at this level, the fact that there may be actually two * hardware registers (A and B - and B may not exist) is abstracted. * ******************************************************************************/ ACPI_STATUS AcpiWriteBitRegister ( UINT32 RegisterId, UINT32 Value) { ACPI_BIT_REGISTER_INFO *BitRegInfo; ACPI_CPU_FLAGS LockFlags; UINT32 RegisterValue; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_U32 (AcpiWriteBitRegister, RegisterId); /* Get the info structure corresponding to the requested ACPI Register */ BitRegInfo = AcpiHwGetBitRegisterInfo (RegisterId); if (!BitRegInfo) { return_ACPI_STATUS (AE_BAD_PARAMETER); } LockFlags = AcpiOsAcquireLock (AcpiGbl_HardwareLock); /* * At this point, we know that the parent register is one of the * following: PM1 Status, PM1 Enable, PM1 Control, or PM2 Control */ if (BitRegInfo->ParentRegister != ACPI_REGISTER_PM1_STATUS) { /* * 1) Case for PM1 Enable, PM1 Control, and PM2 Control * * Perform a register read to preserve the bits that we are not * interested in */ Status = AcpiHwRegisterRead (BitRegInfo->ParentRegister, &RegisterValue); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } /* * Insert the input bit into the value that was just read * and write the register */ ACPI_REGISTER_INSERT_VALUE (RegisterValue, BitRegInfo->BitPosition, BitRegInfo->AccessBitMask, Value); Status = AcpiHwRegisterWrite (BitRegInfo->ParentRegister, RegisterValue); } else { /* * 2) Case for PM1 Status * * The Status register is different from the rest. Clear an event * by writing 1, writing 0 has no effect. So, the only relevant * information is the single bit we're interested in, all others * should be written as 0 so they will be left unchanged. */ RegisterValue = ACPI_REGISTER_PREPARE_BITS (Value, BitRegInfo->BitPosition, BitRegInfo->AccessBitMask); /* No need to write the register if value is all zeros */ if (RegisterValue) { Status = AcpiHwRegisterWrite (ACPI_REGISTER_PM1_STATUS, RegisterValue); } } ACPI_DEBUG_PRINT ((ACPI_DB_IO, "BitReg %X, ParentReg %X, Value %8.8X, Actual %8.8X\n", RegisterId, BitRegInfo->ParentRegister, Value, RegisterValue)); UnlockAndExit: AcpiOsReleaseLock (AcpiGbl_HardwareLock, LockFlags); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiWriteBitRegister) #endif /* !ACPI_REDUCED_HARDWARE */ /******************************************************************************* * * FUNCTION: AcpiGetSleepTypeData * * PARAMETERS: SleepState - Numeric sleep state * *SleepTypeA - Where SLP_TYPa is returned * *SleepTypeB - Where SLP_TYPb is returned * * RETURN: Status * * DESCRIPTION: Obtain the SLP_TYPa and SLP_TYPb values for the requested * sleep state via the appropriate \_Sx object. * * The sleep state package returned from the corresponding \_Sx_ object * must contain at least one integer. * * March 2005: * Added support for a package that contains two integers. This * goes against the ACPI specification which defines this object as a * package with one encoded DWORD integer. However, existing practice * by many BIOS vendors is to return a package with 2 or more integer * elements, at least one per sleep type (A/B). * * January 2013: * Therefore, we must be prepared to accept a package with either a * single integer or multiple integers. * * The single integer DWORD format is as follows: * BYTE 0 - Value for the PM1A SLP_TYP register * BYTE 1 - Value for the PM1B SLP_TYP register * BYTE 2-3 - Reserved * * The dual integer format is as follows: * Integer 0 - Value for the PM1A SLP_TYP register * Integer 1 - Value for the PM1A SLP_TYP register * ******************************************************************************/ ACPI_STATUS AcpiGetSleepTypeData ( UINT8 SleepState, UINT8 *SleepTypeA, UINT8 *SleepTypeB) { ACPI_STATUS Status; ACPI_EVALUATE_INFO *Info; ACPI_OPERAND_OBJECT **Elements; ACPI_FUNCTION_TRACE (AcpiGetSleepTypeData); /* Validate parameters */ if ((SleepState > ACPI_S_STATES_MAX) || !SleepTypeA || !SleepTypeB) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Allocate the evaluation information block */ Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO)); if (!Info) { return_ACPI_STATUS (AE_NO_MEMORY); } /* * Evaluate the \_Sx namespace object containing the register values * for this state */ Info->RelativePathname = AcpiGbl_SleepStateNames[SleepState]; Status = AcpiNsEvaluate (Info); if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_FOUND) { /* The _Sx states are optional, ignore NOT_FOUND */ goto FinalCleanup; } goto WarningCleanup; } /* Must have a return object */ if (!Info->ReturnObject) { ACPI_ERROR ((AE_INFO, "No Sleep State object returned from [%s]", Info->RelativePathname)); Status = AE_AML_NO_RETURN_VALUE; goto WarningCleanup; } /* Return object must be of type Package */ if (Info->ReturnObject->Common.Type != ACPI_TYPE_PACKAGE) { ACPI_ERROR ((AE_INFO, "Sleep State return object is not a Package")); Status = AE_AML_OPERAND_TYPE; goto ReturnValueCleanup; } /* * Any warnings about the package length or the object types have * already been issued by the predefined name module -- there is no * need to repeat them here. */ Elements = Info->ReturnObject->Package.Elements; switch (Info->ReturnObject->Package.Count) { case 0: Status = AE_AML_PACKAGE_LIMIT; break; case 1: if (Elements[0]->Common.Type != ACPI_TYPE_INTEGER) { Status = AE_AML_OPERAND_TYPE; break; } /* A valid _Sx_ package with one integer */ *SleepTypeA = (UINT8) Elements[0]->Integer.Value; *SleepTypeB = (UINT8) (Elements[0]->Integer.Value >> 8); break; case 2: default: if ((Elements[0]->Common.Type != ACPI_TYPE_INTEGER) || (Elements[1]->Common.Type != ACPI_TYPE_INTEGER)) { Status = AE_AML_OPERAND_TYPE; break; } /* A valid _Sx_ package with two integers */ *SleepTypeA = (UINT8) Elements[0]->Integer.Value; *SleepTypeB = (UINT8) Elements[1]->Integer.Value; break; } ReturnValueCleanup: AcpiUtRemoveReference (Info->ReturnObject); WarningCleanup: if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While evaluating Sleep State [%s]", Info->RelativePathname)); } FinalCleanup: ACPI_FREE (Info); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetSleepTypeData) acpica-unix-20250404/source/components/hardware/hwvalid.c0000775000175000017500000002673214773714132022637 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: hwvalid - I/O request validation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME ("hwvalid") /* Local prototypes */ static ACPI_STATUS AcpiHwValidateIoRequest ( ACPI_IO_ADDRESS Address, UINT32 BitWidth); /* * Protected I/O ports. Some ports are always illegal, and some are * conditionally illegal. This table must remain ordered by port address. * * The table is used to implement the Microsoft port access rules that * first appeared in Windows XP. Some ports are always illegal, and some * ports are only illegal if the BIOS calls _OSI with nothing newer than * the specific _OSI strings. * * This provides ACPICA with the desired port protections and * Microsoft compatibility. * * Description of port entries: * DMA: DMA controller * PIC0: Programmable Interrupt Controller (8259A) * PIT1: System Timer 1 * PIT2: System Timer 2 failsafe * RTC: Real-time clock * CMOS: Extended CMOS * DMA1: DMA 1 page registers * DMA1L: DMA 1 Ch 0 low page * DMA2: DMA 2 page registers * DMA2L: DMA 2 low page refresh * ARBC: Arbitration control * SETUP: Reserved system board setup * POS: POS channel select * PIC1: Cascaded PIC * IDMA: ISA DMA * ELCR: PIC edge/level registers * PCI: PCI configuration space */ static const ACPI_PORT_INFO AcpiProtectedPorts[] = { {"DMA", 0x0000, 0x000F, ACPI_OSI_WIN_XP}, {"PIC0", 0x0020, 0x0021, ACPI_ALWAYS_ILLEGAL}, {"PIT1", 0x0040, 0x0043, ACPI_OSI_WIN_XP}, {"PIT2", 0x0048, 0x004B, ACPI_OSI_WIN_XP}, {"RTC", 0x0070, 0x0071, ACPI_OSI_WIN_XP}, {"CMOS", 0x0074, 0x0076, ACPI_OSI_WIN_XP}, {"DMA1", 0x0081, 0x0083, ACPI_OSI_WIN_XP}, {"DMA1L", 0x0087, 0x0087, ACPI_OSI_WIN_XP}, {"DMA2", 0x0089, 0x008B, ACPI_OSI_WIN_XP}, {"DMA2L", 0x008F, 0x008F, ACPI_OSI_WIN_XP}, {"ARBC", 0x0090, 0x0091, ACPI_OSI_WIN_XP}, {"SETUP", 0x0093, 0x0094, ACPI_OSI_WIN_XP}, {"POS", 0x0096, 0x0097, ACPI_OSI_WIN_XP}, {"PIC1", 0x00A0, 0x00A1, ACPI_ALWAYS_ILLEGAL}, {"IDMA", 0x00C0, 0x00DF, ACPI_OSI_WIN_XP}, {"ELCR", 0x04D0, 0x04D1, ACPI_ALWAYS_ILLEGAL}, {"PCI", 0x0CF8, 0x0CFF, ACPI_OSI_WIN_XP} }; #define ACPI_PORT_INFO_ENTRIES ACPI_ARRAY_LENGTH (AcpiProtectedPorts) /****************************************************************************** * * FUNCTION: AcpiHwValidateIoRequest * * PARAMETERS: Address Address of I/O port/register * BitWidth Number of bits (8,16,32) * * RETURN: Status * * DESCRIPTION: Validates an I/O request (address/length). Certain ports are * always illegal and some ports are only illegal depending on * the requests the BIOS AML code makes to the predefined * _OSI method. * ******************************************************************************/ static ACPI_STATUS AcpiHwValidateIoRequest ( ACPI_IO_ADDRESS Address, UINT32 BitWidth) { UINT32 i; UINT32 ByteWidth; ACPI_IO_ADDRESS LastAddress; const ACPI_PORT_INFO *PortInfo; ACPI_FUNCTION_TRACE (HwValidateIoRequest); /* Supported widths are 8/16/32 */ if ((BitWidth != 8) && (BitWidth != 16) && (BitWidth != 32)) { ACPI_ERROR ((AE_INFO, "Bad BitWidth parameter: %8.8X", BitWidth)); return_ACPI_STATUS (AE_BAD_PARAMETER); } PortInfo = AcpiProtectedPorts; ByteWidth = ACPI_DIV_8 (BitWidth); LastAddress = Address + ByteWidth - 1; ACPI_DEBUG_PRINT ((ACPI_DB_IO, "Address %8.8X%8.8X LastAddress %8.8X%8.8X Length %X", ACPI_FORMAT_UINT64 (Address), ACPI_FORMAT_UINT64 (LastAddress), ByteWidth)); /* Maximum 16-bit address in I/O space */ if (LastAddress > ACPI_UINT16_MAX) { ACPI_ERROR ((AE_INFO, "Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X", ACPI_FORMAT_UINT64 (Address), ByteWidth)); return_ACPI_STATUS (AE_LIMIT); } /* Exit if requested address is not within the protected port table */ if (Address > AcpiProtectedPorts[ACPI_PORT_INFO_ENTRIES - 1].End) { return_ACPI_STATUS (AE_OK); } /* Check request against the list of protected I/O ports */ for (i = 0; i < ACPI_PORT_INFO_ENTRIES; i++, PortInfo++) { /* * Check if the requested address range will write to a reserved * port. There are four cases to consider: * * 1) Address range is contained completely in the port address range * 2) Address range overlaps port range at the port range start * 3) Address range overlaps port range at the port range end * 4) Address range completely encompasses the port range */ if ((Address <= PortInfo->End) && (LastAddress >= PortInfo->Start)) { /* Port illegality may depend on the _OSI calls made by the BIOS */ if (PortInfo->OsiDependency == ACPI_ALWAYS_ILLEGAL || AcpiGbl_OsiData == PortInfo->OsiDependency) { ACPI_DEBUG_PRINT ((ACPI_DB_VALUES, "Denied AML access to port 0x%8.8X%8.8X/%X (%s 0x%.4X-0x%.4X)\n", ACPI_FORMAT_UINT64 (Address), ByteWidth, PortInfo->Name, PortInfo->Start, PortInfo->End)); return_ACPI_STATUS (AE_AML_ILLEGAL_ADDRESS); } } /* Finished if address range ends before the end of this port */ if (LastAddress <= PortInfo->End) { break; } } return_ACPI_STATUS (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwReadPort * * PARAMETERS: Address Address of I/O port/register to read * Value Where value (data) is returned * Width Number of bits * * RETURN: Status and value read from port * * DESCRIPTION: Read data from an I/O port or register. This is a front-end * to AcpiOsReadPort that performs validation on both the port * address and the length. * *****************************************************************************/ ACPI_STATUS AcpiHwReadPort ( ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width) { ACPI_STATUS Status; UINT32 OneByte; UINT32 i; /* Truncate address to 16 bits if requested */ if (AcpiGbl_TruncateIoAddresses) { Address &= ACPI_UINT16_MAX; } /* Validate the entire request and perform the I/O */ Status = AcpiHwValidateIoRequest (Address, Width); if (ACPI_SUCCESS (Status)) { Status = AcpiOsReadPort (Address, Value, Width); return (Status); } if (Status != AE_AML_ILLEGAL_ADDRESS) { return (Status); } /* * There has been a protection violation within the request. Fall * back to byte granularity port I/O and ignore the failing bytes. * This provides compatibility with other ACPI implementations. */ for (i = 0, *Value = 0; i < Width; i += 8) { /* Validate and read one byte */ if (AcpiHwValidateIoRequest (Address, 8) == AE_OK) { Status = AcpiOsReadPort (Address, &OneByte, 8); if (ACPI_FAILURE (Status)) { return (Status); } *Value |= (OneByte << i); } Address++; } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwWritePort * * PARAMETERS: Address Address of I/O port/register to write * Value Value to write * Width Number of bits * * RETURN: Status * * DESCRIPTION: Write data to an I/O port or register. This is a front-end * to AcpiOsWritePort that performs validation on both the port * address and the length. * *****************************************************************************/ ACPI_STATUS AcpiHwWritePort ( ACPI_IO_ADDRESS Address, UINT32 Value, UINT32 Width) { ACPI_STATUS Status; UINT32 i; /* Truncate address to 16 bits if requested */ if (AcpiGbl_TruncateIoAddresses) { Address &= ACPI_UINT16_MAX; } /* Validate the entire request and perform the I/O */ Status = AcpiHwValidateIoRequest (Address, Width); if (ACPI_SUCCESS (Status)) { Status = AcpiOsWritePort (Address, Value, Width); return (Status); } if (Status != AE_AML_ILLEGAL_ADDRESS) { return (Status); } /* * There has been a protection violation within the request. Fall * back to byte granularity port I/O and ignore the failing bytes. * This provides compatibility with other ACPI implementations. */ for (i = 0; i < Width; i += 8) { /* Validate and write one byte */ if (AcpiHwValidateIoRequest (Address, 8) == AE_OK) { Status = AcpiOsWritePort (Address, (Value >> i) & 0xFF, 8); if (ACPI_FAILURE (Status)) { return (Status); } } Address++; } return (AE_OK); } acpica-unix-20250404/source/components/hardware/hwsleep.c0000775000175000017500000002603214773714132022641 0ustar ivanhuivanhu/****************************************************************************** * * Name: hwsleep.c - ACPI Hardware Sleep/Wake Support functions for the * original/legacy sleep/PM registers. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME ("hwsleep") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /******************************************************************************* * * FUNCTION: AcpiHwLegacySleep * * PARAMETERS: SleepState - Which sleep state to enter * * RETURN: Status * * DESCRIPTION: Enter a system sleep state via the legacy FADT PM registers * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED * ******************************************************************************/ ACPI_STATUS AcpiHwLegacySleep ( UINT8 SleepState) { ACPI_BIT_REGISTER_INFO *SleepTypeRegInfo; ACPI_BIT_REGISTER_INFO *SleepEnableRegInfo; UINT32 Pm1aControl; UINT32 Pm1bControl; UINT32 InValue; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (HwLegacySleep); SleepTypeRegInfo = AcpiHwGetBitRegisterInfo (ACPI_BITREG_SLEEP_TYPE); SleepEnableRegInfo = AcpiHwGetBitRegisterInfo (ACPI_BITREG_SLEEP_ENABLE); /* Clear wake status */ Status = AcpiWriteBitRegister (ACPI_BITREG_WAKE_STATUS, ACPI_CLEAR_STATUS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Disable all GPEs */ Status = AcpiHwDisableAllGpes (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiHwClearAcpiStatus(); if (ACPI_FAILURE(Status)) { return_ACPI_STATUS(Status); } AcpiGbl_SystemAwakeAndRunning = FALSE; /* Enable all wakeup GPEs */ Status = AcpiHwEnableAllWakeupGpes (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Get current value of PM1A control */ Status = AcpiHwRegisterRead (ACPI_REGISTER_PM1_CONTROL, &Pm1aControl); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ACPI_DEBUG_PRINT ((ACPI_DB_INIT, "Entering sleep state [S%u]\n", SleepState)); /* Clear the SLP_EN and SLP_TYP fields */ Pm1aControl &= ~(SleepTypeRegInfo->AccessBitMask | SleepEnableRegInfo->AccessBitMask); Pm1bControl = Pm1aControl; /* Insert the SLP_TYP bits */ Pm1aControl |= (AcpiGbl_SleepTypeA << SleepTypeRegInfo->BitPosition); Pm1bControl |= (AcpiGbl_SleepTypeB << SleepTypeRegInfo->BitPosition); /* * We split the writes of SLP_TYP and SLP_EN to workaround * poorly implemented hardware. */ /* Write #1: write the SLP_TYP data to the PM1 Control registers */ Status = AcpiHwWritePm1Control (Pm1aControl, Pm1bControl); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Insert the sleep enable (SLP_EN) bit */ Pm1aControl |= SleepEnableRegInfo->AccessBitMask; Pm1bControl |= SleepEnableRegInfo->AccessBitMask; /* Flush caches, as per ACPI specification */ if (SleepState < ACPI_STATE_S4) { ACPI_FLUSH_CPU_CACHE (); } Status = AcpiOsEnterSleep (SleepState, Pm1aControl, Pm1bControl); if (Status == AE_CTRL_TERMINATE) { return_ACPI_STATUS (AE_OK); } if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Write #2: Write both SLP_TYP + SLP_EN */ Status = AcpiHwWritePm1Control (Pm1aControl, Pm1bControl); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (SleepState > ACPI_STATE_S3) { /* * We wanted to sleep > S3, but it didn't happen (by virtue of the * fact that we are still executing!) * * Wait ten seconds, then try again. This is to get S4/S5 to work on * all machines. * * We wait so long to allow chipsets that poll this reg very slowly * to still read the right value. Ideally, this block would go * away entirely. */ AcpiOsStall (10 * ACPI_USEC_PER_SEC); Status = AcpiHwRegisterWrite (ACPI_REGISTER_PM1_CONTROL, SleepEnableRegInfo->AccessBitMask); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* Wait for transition back to Working State */ do { Status = AcpiReadBitRegister (ACPI_BITREG_WAKE_STATUS, &InValue); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } while (!InValue); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiHwLegacyWakePrep * * PARAMETERS: SleepState - Which sleep state we just exited * * RETURN: Status * * DESCRIPTION: Perform the first state of OS-independent ACPI cleanup after a * sleep. * Called with interrupts ENABLED. * ******************************************************************************/ ACPI_STATUS AcpiHwLegacyWakePrep ( UINT8 SleepState) { ACPI_STATUS Status = AE_OK; ACPI_BIT_REGISTER_INFO *SleepTypeRegInfo; ACPI_BIT_REGISTER_INFO *SleepEnableRegInfo; UINT32 Pm1aControl; UINT32 Pm1bControl; ACPI_FUNCTION_TRACE (HwLegacyWakePrep); /* * Set SLP_TYPE and SLP_EN to state S0. * This is unclear from the ACPI Spec, but it is required * by some machines. */ if (AcpiGbl_SleepTypeAS0 != ACPI_SLEEP_TYPE_INVALID) { SleepTypeRegInfo = AcpiHwGetBitRegisterInfo (ACPI_BITREG_SLEEP_TYPE); SleepEnableRegInfo = AcpiHwGetBitRegisterInfo (ACPI_BITREG_SLEEP_ENABLE); /* Get current value of PM1A control */ Status = AcpiHwRegisterRead (ACPI_REGISTER_PM1_CONTROL, &Pm1aControl); if (ACPI_SUCCESS (Status)) { /* Clear the SLP_EN and SLP_TYP fields */ Pm1aControl &= ~(SleepTypeRegInfo->AccessBitMask | SleepEnableRegInfo->AccessBitMask); Pm1bControl = Pm1aControl; /* Insert the SLP_TYP bits */ Pm1aControl |= (AcpiGbl_SleepTypeAS0 << SleepTypeRegInfo->BitPosition); Pm1bControl |= (AcpiGbl_SleepTypeBS0 << SleepTypeRegInfo->BitPosition); /* Write the control registers and ignore any errors */ (void) AcpiHwWritePm1Control (Pm1aControl, Pm1bControl); } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiHwLegacyWake * * PARAMETERS: SleepState - Which sleep state we just exited * * RETURN: Status * * DESCRIPTION: Perform OS-independent ACPI cleanup after a sleep * Called with interrupts ENABLED. * ******************************************************************************/ ACPI_STATUS AcpiHwLegacyWake ( UINT8 SleepState) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (HwLegacyWake); /* Ensure EnterSleepStatePrep -> EnterSleepState ordering */ AcpiGbl_SleepTypeA = ACPI_SLEEP_TYPE_INVALID; AcpiHwExecuteSleepMethod (METHOD_PATHNAME__SST, ACPI_SST_WAKING); /* * GPEs must be enabled before _WAK is called as GPEs * might get fired there * * Restore the GPEs: * 1) Disable all GPEs * 2) Enable all runtime GPEs */ Status = AcpiHwDisableAllGpes (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiHwEnableAllRuntimeGpes (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Now we can execute _WAK, etc. Some machines require that the GPEs * are enabled before the wake methods are executed. */ AcpiHwExecuteSleepMethod (METHOD_PATHNAME__WAK, SleepState); /* * Some BIOS code assumes that WAK_STS will be cleared on resume * and use it to determine whether the system is rebooting or * resuming. Clear WAK_STS for compatibility. */ (void) AcpiWriteBitRegister (ACPI_BITREG_WAKE_STATUS, ACPI_CLEAR_STATUS); AcpiGbl_SystemAwakeAndRunning = TRUE; /* Enable power button */ (void) AcpiWriteBitRegister( AcpiGbl_FixedEventInfo[ACPI_EVENT_POWER_BUTTON].EnableRegisterId, ACPI_ENABLE_EVENT); (void) AcpiWriteBitRegister( AcpiGbl_FixedEventInfo[ACPI_EVENT_POWER_BUTTON].StatusRegisterId, ACPI_CLEAR_STATUS); /* Enable sleep button */ (void) AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo[ACPI_EVENT_SLEEP_BUTTON].EnableRegisterId, ACPI_ENABLE_EVENT); (void) AcpiWriteBitRegister ( AcpiGbl_FixedEventInfo[ACPI_EVENT_SLEEP_BUTTON].StatusRegisterId, ACPI_CLEAR_STATUS); AcpiHwExecuteSleepMethod (METHOD_PATHNAME__SST, ACPI_SST_WORKING); return_ACPI_STATUS (Status); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/hardware/hwxfsleep.c0000775000175000017500000003502114773714132023175 0ustar ivanhuivanhu/****************************************************************************** * * Name: hwxfsleep.c - ACPI Hardware Sleep/Wake External Interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME ("hwxfsleep") /* Local prototypes */ static ACPI_STATUS AcpiHwSetFirmwareWakingVector ( ACPI_TABLE_FACS *Facs, ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_PHYSICAL_ADDRESS PhysicalAddress64); static ACPI_STATUS AcpiHwSleepDispatch ( UINT8 SleepState, UINT32 FunctionId); /* * Dispatch table used to efficiently branch to the various sleep * functions. */ #define ACPI_SLEEP_FUNCTION_ID 0 #define ACPI_WAKE_PREP_FUNCTION_ID 1 #define ACPI_WAKE_FUNCTION_ID 2 /* Legacy functions are optional, based upon ACPI_REDUCED_HARDWARE */ static ACPI_SLEEP_FUNCTIONS AcpiSleepDispatch[] = { {ACPI_STRUCT_INIT (LegacyFunction, ACPI_HW_OPTIONAL_FUNCTION (AcpiHwLegacySleep)), ACPI_STRUCT_INIT (ExtendedFunction, AcpiHwExtendedSleep) }, {ACPI_STRUCT_INIT (LegacyFunction, ACPI_HW_OPTIONAL_FUNCTION (AcpiHwLegacyWakePrep)), ACPI_STRUCT_INIT (ExtendedFunction, AcpiHwExtendedWakePrep) }, {ACPI_STRUCT_INIT (LegacyFunction, ACPI_HW_OPTIONAL_FUNCTION (AcpiHwLegacyWake)), ACPI_STRUCT_INIT (ExtendedFunction, AcpiHwExtendedWake) } }; /******************************************************************************* * * FUNCTION: AcpiHwSetFirmwareWakingVector * * PARAMETERS: Facs - Pointer to FACS table * PhysicalAddress - 32-bit physical address of ACPI real mode * entry point * PhysicalAddress64 - 64-bit physical address of ACPI protected * mode entry point * * RETURN: Status * * DESCRIPTION: Sets the FirmwareWakingVector fields of the FACS * ******************************************************************************/ static ACPI_STATUS AcpiHwSetFirmwareWakingVector ( ACPI_TABLE_FACS *Facs, ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_PHYSICAL_ADDRESS PhysicalAddress64) { ACPI_FUNCTION_TRACE (AcpiHwSetFirmwareWakingVector); /* * According to the ACPI specification 2.0c and later, the 64-bit * waking vector should be cleared and the 32-bit waking vector should * be used, unless we want the wake-up code to be called by the BIOS in * Protected Mode. Some systems (for example HP dv5-1004nr) are known * to fail to resume if the 64-bit vector is used. */ /* Set the 32-bit vector */ Facs->FirmwareWakingVector = (UINT32) PhysicalAddress; if (Facs->Length > 32) { if (Facs->Version >= 1) { /* Set the 64-bit vector */ Facs->XFirmwareWakingVector = PhysicalAddress64; } else { /* Clear the 64-bit vector if it exists */ Facs->XFirmwareWakingVector = 0; } } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiSetFirmwareWakingVector * * PARAMETERS: PhysicalAddress - 32-bit physical address of ACPI real mode * entry point * PhysicalAddress64 - 64-bit physical address of ACPI protected * mode entry point * * RETURN: Status * * DESCRIPTION: Sets the FirmwareWakingVector fields of the FACS * ******************************************************************************/ ACPI_STATUS AcpiSetFirmwareWakingVector ( ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_PHYSICAL_ADDRESS PhysicalAddress64) { ACPI_FUNCTION_TRACE (AcpiSetFirmwareWakingVector); if (AcpiGbl_FACS) { (void) AcpiHwSetFirmwareWakingVector (AcpiGbl_FACS, PhysicalAddress, PhysicalAddress64); } return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiSetFirmwareWakingVector) /* * These functions are removed for the ACPI_REDUCED_HARDWARE case: * AcpiEnterSleepStateS4bios */ #if (!ACPI_REDUCED_HARDWARE) /******************************************************************************* * * FUNCTION: AcpiEnterSleepStateS4bios * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Perform a S4 bios request. * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED * ******************************************************************************/ ACPI_STATUS AcpiEnterSleepStateS4bios ( void) { UINT32 InValue; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiEnterSleepStateS4bios); /* Clear the wake status bit (PM1) */ Status = AcpiWriteBitRegister (ACPI_BITREG_WAKE_STATUS, ACPI_CLEAR_STATUS); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiHwClearAcpiStatus (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * 1) Disable all GPEs * 2) Enable all wakeup GPEs */ Status = AcpiHwDisableAllGpes (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } AcpiGbl_SystemAwakeAndRunning = FALSE; Status = AcpiHwEnableAllWakeupGpes (); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiHwWritePort (AcpiGbl_FADT.SmiCommand, (UINT32) AcpiGbl_FADT.S4BiosRequest, 8); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } do { AcpiOsStall (ACPI_USEC_PER_MSEC); Status = AcpiReadBitRegister (ACPI_BITREG_WAKE_STATUS, &InValue); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } while (!InValue); return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiEnterSleepStateS4bios) #endif /* !ACPI_REDUCED_HARDWARE */ /******************************************************************************* * * FUNCTION: AcpiHwSleepDispatch * * PARAMETERS: SleepState - Which sleep state to enter/exit * FunctionId - Sleep, WakePrep, or Wake * * RETURN: Status from the invoked sleep handling function. * * DESCRIPTION: Dispatch a sleep/wake request to the appropriate handling * function. * ******************************************************************************/ static ACPI_STATUS AcpiHwSleepDispatch ( UINT8 SleepState, UINT32 FunctionId) { ACPI_STATUS Status; ACPI_SLEEP_FUNCTIONS *SleepFunctions = &AcpiSleepDispatch[FunctionId]; #if (!ACPI_REDUCED_HARDWARE) /* * If the Hardware Reduced flag is set (from the FADT), we must * use the extended sleep registers (FADT). Note: As per the ACPI * specification, these extended registers are to be used for HW-reduced * platforms only. They are not general-purpose replacements for the * legacy PM register sleep support. */ if (AcpiGbl_ReducedHardware) { Status = SleepFunctions->ExtendedFunction (SleepState); } else { /* Legacy sleep */ Status = SleepFunctions->LegacyFunction (SleepState); } return (Status); #else /* * For the case where reduced-hardware-only code is being generated, * we know that only the extended sleep registers are available */ Status = SleepFunctions->ExtendedFunction (SleepState); return (Status); #endif /* !ACPI_REDUCED_HARDWARE */ } /******************************************************************************* * * FUNCTION: AcpiEnterSleepStatePrep * * PARAMETERS: SleepState - Which sleep state to enter * * RETURN: Status * * DESCRIPTION: Prepare to enter a system sleep state. * This function must execute with interrupts enabled. * We break sleeping into 2 stages so that OSPM can handle * various OS-specific tasks between the two steps. * ******************************************************************************/ ACPI_STATUS AcpiEnterSleepStatePrep ( UINT8 SleepState) { ACPI_STATUS Status; ACPI_OBJECT_LIST ArgList; ACPI_OBJECT Arg; UINT32 SstValue; ACPI_FUNCTION_TRACE (AcpiEnterSleepStatePrep); Status = AcpiGetSleepTypeData (SleepState, &AcpiGbl_SleepTypeA, &AcpiGbl_SleepTypeB); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiGetSleepTypeData (ACPI_STATE_S0, &AcpiGbl_SleepTypeAS0, &AcpiGbl_SleepTypeBS0); if (ACPI_FAILURE (Status)) { AcpiGbl_SleepTypeAS0 = ACPI_SLEEP_TYPE_INVALID; } /* Execute the _PTS method (Prepare To Sleep) */ ArgList.Count = 1; ArgList.Pointer = &Arg; Arg.Type = ACPI_TYPE_INTEGER; Arg.Integer.Value = SleepState; Status = AcpiEvaluateObject (NULL, METHOD_PATHNAME__PTS, &ArgList, NULL); if (ACPI_FAILURE (Status) && Status != AE_NOT_FOUND) { return_ACPI_STATUS (Status); } /* Setup the argument to the _SST method (System STatus) */ switch (SleepState) { case ACPI_STATE_S0: SstValue = ACPI_SST_WORKING; break; case ACPI_STATE_S1: case ACPI_STATE_S2: case ACPI_STATE_S3: SstValue = ACPI_SST_SLEEPING; break; case ACPI_STATE_S4: SstValue = ACPI_SST_SLEEP_CONTEXT; break; default: SstValue = ACPI_SST_INDICATOR_OFF; /* Default is off */ break; } /* * Set the system indicators to show the desired sleep state. * _SST is an optional method (return no error if not found) */ AcpiHwExecuteSleepMethod (METHOD_PATHNAME__SST, SstValue); return_ACPI_STATUS (AE_OK); } ACPI_EXPORT_SYMBOL (AcpiEnterSleepStatePrep) /******************************************************************************* * * FUNCTION: AcpiEnterSleepState * * PARAMETERS: SleepState - Which sleep state to enter * * RETURN: Status * * DESCRIPTION: Enter a system sleep state * THIS FUNCTION MUST BE CALLED WITH INTERRUPTS DISABLED * ******************************************************************************/ ACPI_STATUS AcpiEnterSleepState ( UINT8 SleepState) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiEnterSleepState); if ((AcpiGbl_SleepTypeA > ACPI_SLEEP_TYPE_MAX) || (AcpiGbl_SleepTypeB > ACPI_SLEEP_TYPE_MAX)) { ACPI_ERROR ((AE_INFO, "Sleep values out of range: A=0x%X B=0x%X", AcpiGbl_SleepTypeA, AcpiGbl_SleepTypeB)); return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } Status = AcpiHwSleepDispatch (SleepState, ACPI_SLEEP_FUNCTION_ID); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiEnterSleepState) /******************************************************************************* * * FUNCTION: AcpiLeaveSleepStatePrep * * PARAMETERS: SleepState - Which sleep state we are exiting * * RETURN: Status * * DESCRIPTION: Perform the first state of OS-independent ACPI cleanup after a * sleep. Called with interrupts DISABLED. * We break wake/resume into 2 stages so that OSPM can handle * various OS-specific tasks between the two steps. * ******************************************************************************/ ACPI_STATUS AcpiLeaveSleepStatePrep ( UINT8 SleepState) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiLeaveSleepStatePrep); Status = AcpiHwSleepDispatch (SleepState, ACPI_WAKE_PREP_FUNCTION_ID); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiLeaveSleepStatePrep) /******************************************************************************* * * FUNCTION: AcpiLeaveSleepState * * PARAMETERS: SleepState - Which sleep state we are exiting * * RETURN: Status * * DESCRIPTION: Perform OS-independent ACPI cleanup after a sleep * Called with interrupts ENABLED. * ******************************************************************************/ ACPI_STATUS AcpiLeaveSleepState ( UINT8 SleepState) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiLeaveSleepState); Status = AcpiHwSleepDispatch (SleepState, ACPI_WAKE_FUNCTION_ID); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiLeaveSleepState) acpica-unix-20250404/source/components/hardware/hwpci.c0000775000175000017500000003443314773714132022310 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: hwpci - Obtain PCI bus, device, and function numbers * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("hwpci") /* PCI configuration space values */ #define PCI_CFG_HEADER_TYPE_REG 0x0E #define PCI_CFG_PRIMARY_BUS_NUMBER_REG 0x18 #define PCI_CFG_SECONDARY_BUS_NUMBER_REG 0x19 /* PCI header values */ #define PCI_HEADER_TYPE_MASK 0x7F #define PCI_TYPE_BRIDGE 0x01 #define PCI_TYPE_CARDBUS_BRIDGE 0x02 typedef struct acpi_pci_device { ACPI_HANDLE Device; struct acpi_pci_device *Next; } ACPI_PCI_DEVICE; /* Local prototypes */ static ACPI_STATUS AcpiHwBuildPciList ( ACPI_HANDLE RootPciDevice, ACPI_HANDLE PciRegion, ACPI_PCI_DEVICE **ReturnListHead); static ACPI_STATUS AcpiHwProcessPciList ( ACPI_PCI_ID *PciId, ACPI_PCI_DEVICE *ListHead); static void AcpiHwDeletePciList ( ACPI_PCI_DEVICE *ListHead); static ACPI_STATUS AcpiHwGetPciDeviceInfo ( ACPI_PCI_ID *PciId, ACPI_HANDLE PciDevice, UINT16 *BusNumber, BOOLEAN *IsBridge); /******************************************************************************* * * FUNCTION: AcpiHwDerivePciId * * PARAMETERS: PciId - Initial values for the PCI ID. May be * modified by this function. * RootPciDevice - A handle to a PCI device object. This * object must be a PCI Root Bridge having a * _HID value of either PNP0A03 or PNP0A08 * PciRegion - A handle to a PCI configuration space * Operation Region being initialized * * RETURN: Status * * DESCRIPTION: This function derives a full PCI ID for a PCI device, * consisting of a Segment number, Bus number, Device number, * and function code. * * The PCI hardware dynamically configures PCI bus numbers * depending on the bus topology discovered during system * initialization. This function is invoked during configuration * of a PCI_Config Operation Region in order to (possibly) update * the Bus/Device/Function numbers in the PciId with the actual * values as determined by the hardware and operating system * configuration. * * The PciId parameter is initially populated during the Operation * Region initialization. This function is then called, and is * will make any necessary modifications to the Bus, Device, or * Function number PCI ID subfields as appropriate for the * current hardware and OS configuration. * * NOTE: Created 08/2010. Replaces the previous OSL AcpiOsDerivePciId * interface since this feature is OS-independent. This module * specifically avoids any use of recursion by building a local * temporary device list. * ******************************************************************************/ ACPI_STATUS AcpiHwDerivePciId ( ACPI_PCI_ID *PciId, ACPI_HANDLE RootPciDevice, ACPI_HANDLE PciRegion) { ACPI_STATUS Status; ACPI_PCI_DEVICE *ListHead; ACPI_FUNCTION_TRACE (HwDerivePciId); if (!PciId) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Build a list of PCI devices, from PciRegion up to RootPciDevice */ Status = AcpiHwBuildPciList (RootPciDevice, PciRegion, &ListHead); if (ACPI_SUCCESS (Status)) { /* Walk the list, updating the PCI device/function/bus numbers */ Status = AcpiHwProcessPciList (PciId, ListHead); /* Delete the list */ AcpiHwDeletePciList (ListHead); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiHwBuildPciList * * PARAMETERS: RootPciDevice - A handle to a PCI device object. This * object is guaranteed to be a PCI Root * Bridge having a _HID value of either * PNP0A03 or PNP0A08 * PciRegion - A handle to the PCI configuration space * Operation Region * ReturnListHead - Where the PCI device list is returned * * RETURN: Status * * DESCRIPTION: Builds a list of devices from the input PCI region up to the * Root PCI device for this namespace subtree. * ******************************************************************************/ static ACPI_STATUS AcpiHwBuildPciList ( ACPI_HANDLE RootPciDevice, ACPI_HANDLE PciRegion, ACPI_PCI_DEVICE **ReturnListHead) { ACPI_HANDLE CurrentDevice; ACPI_HANDLE ParentDevice; ACPI_STATUS Status; ACPI_PCI_DEVICE *ListElement; /* * Ascend namespace branch until the RootPciDevice is reached, building * a list of device nodes. Loop will exit when either the PCI device is * found, or the root of the namespace is reached. */ *ReturnListHead = NULL; CurrentDevice = PciRegion; while (1) { Status = AcpiGetParent (CurrentDevice, &ParentDevice); if (ACPI_FAILURE (Status)) { /* Must delete the list before exit */ AcpiHwDeletePciList (*ReturnListHead); return (Status); } /* Finished when we reach the PCI root device (PNP0A03 or PNP0A08) */ if (ParentDevice == RootPciDevice) { return (AE_OK); } ListElement = ACPI_ALLOCATE (sizeof (ACPI_PCI_DEVICE)); if (!ListElement) { /* Must delete the list before exit */ AcpiHwDeletePciList (*ReturnListHead); return (AE_NO_MEMORY); } /* Put new element at the head of the list */ ListElement->Next = *ReturnListHead; ListElement->Device = ParentDevice; *ReturnListHead = ListElement; CurrentDevice = ParentDevice; } } /******************************************************************************* * * FUNCTION: AcpiHwProcessPciList * * PARAMETERS: PciId - Initial values for the PCI ID. May be * modified by this function. * ListHead - Device list created by * AcpiHwBuildPciList * * RETURN: Status * * DESCRIPTION: Walk downward through the PCI device list, getting the device * info for each, via the PCI configuration space and updating * the PCI ID as necessary. Deletes the list during traversal. * ******************************************************************************/ static ACPI_STATUS AcpiHwProcessPciList ( ACPI_PCI_ID *PciId, ACPI_PCI_DEVICE *ListHead) { ACPI_STATUS Status = AE_OK; ACPI_PCI_DEVICE *Info; UINT16 BusNumber; BOOLEAN IsBridge = TRUE; ACPI_FUNCTION_NAME (HwProcessPciList); ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Input PciId: Seg %4.4X Bus %4.4X Dev %4.4X Func %4.4X\n", PciId->Segment, PciId->Bus, PciId->Device, PciId->Function)); BusNumber = PciId->Bus; /* * Descend down the namespace tree, collecting PCI device, function, * and bus numbers. BusNumber is only important for PCI bridges. * Algorithm: As we descend the tree, use the last valid PCI device, * function, and bus numbers that are discovered, and assign them * to the PCI ID for the target device. */ Info = ListHead; while (Info) { Status = AcpiHwGetPciDeviceInfo (PciId, Info->Device, &BusNumber, &IsBridge); if (ACPI_FAILURE (Status)) { return (Status); } Info = Info->Next; } ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Output PciId: Seg %4.4X Bus %4.4X Dev %4.4X Func %4.4X " "Status %X BusNumber %X IsBridge %X\n", PciId->Segment, PciId->Bus, PciId->Device, PciId->Function, Status, BusNumber, IsBridge)); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiHwDeletePciList * * PARAMETERS: ListHead - Device list created by * AcpiHwBuildPciList * * RETURN: None * * DESCRIPTION: Free the entire PCI list. * ******************************************************************************/ static void AcpiHwDeletePciList ( ACPI_PCI_DEVICE *ListHead) { ACPI_PCI_DEVICE *Next; ACPI_PCI_DEVICE *Previous; Next = ListHead; while (Next) { Previous = Next; Next = Previous->Next; ACPI_FREE (Previous); } } /******************************************************************************* * * FUNCTION: AcpiHwGetPciDeviceInfo * * PARAMETERS: PciId - Initial values for the PCI ID. May be * modified by this function. * PciDevice - Handle for the PCI device object * BusNumber - Where a PCI bridge bus number is returned * IsBridge - Return value, indicates if this PCI * device is a PCI bridge * * RETURN: Status * * DESCRIPTION: Get the device info for a single PCI device object. Get the * _ADR (contains PCI device and function numbers), and for PCI * bridge devices, get the bus number from PCI configuration * space. * ******************************************************************************/ static ACPI_STATUS AcpiHwGetPciDeviceInfo ( ACPI_PCI_ID *PciId, ACPI_HANDLE PciDevice, UINT16 *BusNumber, BOOLEAN *IsBridge) { ACPI_STATUS Status; ACPI_OBJECT_TYPE ObjectType; UINT64 ReturnValue; UINT64 PciValue; /* We only care about objects of type Device */ Status = AcpiGetType (PciDevice, &ObjectType); if (ACPI_FAILURE (Status)) { return (Status); } if (ObjectType != ACPI_TYPE_DEVICE) { return (AE_OK); } /* We need an _ADR. Ignore device if not present */ Status = AcpiUtEvaluateNumericObject (METHOD_NAME__ADR, PciDevice, &ReturnValue); if (ACPI_FAILURE (Status)) { return (AE_OK); } /* * From _ADR, get the PCI Device and Function and * update the PCI ID. */ PciId->Device = ACPI_HIWORD (ACPI_LODWORD (ReturnValue)); PciId->Function = ACPI_LOWORD (ACPI_LODWORD (ReturnValue)); /* * If the previous device was a bridge, use the previous * device bus number */ if (*IsBridge) { PciId->Bus = *BusNumber; } /* * Get the bus numbers from PCI Config space: * * First, get the PCI HeaderType */ *IsBridge = FALSE; Status = AcpiOsReadPciConfiguration (PciId, PCI_CFG_HEADER_TYPE_REG, &PciValue, 8); if (ACPI_FAILURE (Status)) { return (Status); } /* We only care about bridges (1=PciBridge, 2=CardBusBridge) */ PciValue &= PCI_HEADER_TYPE_MASK; if ((PciValue != PCI_TYPE_BRIDGE) && (PciValue != PCI_TYPE_CARDBUS_BRIDGE)) { return (AE_OK); } /* Bridge: Get the Primary BusNumber */ Status = AcpiOsReadPciConfiguration (PciId, PCI_CFG_PRIMARY_BUS_NUMBER_REG, &PciValue, 8); if (ACPI_FAILURE (Status)) { return (Status); } *IsBridge = TRUE; PciId->Bus = (UINT16) PciValue; /* Bridge: Get the Secondary BusNumber */ Status = AcpiOsReadPciConfiguration (PciId, PCI_CFG_SECONDARY_BUS_NUMBER_REG, &PciValue, 8); if (ACPI_FAILURE (Status)) { return (Status); } *BusNumber = (UINT16) PciValue; return (AE_OK); } acpica-unix-20250404/source/components/hardware/hwgpe.c0000775000175000017500000004330514773714132022306 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: hwgpe - Low level GPE enable/disable/clear functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acevents.h" #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME ("hwgpe") #if (!ACPI_REDUCED_HARDWARE) /* Entire module */ /* Local prototypes */ static ACPI_STATUS AcpiHwEnableWakeupGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context); static ACPI_STATUS AcpiHwGpeEnableWrite ( UINT8 EnableMask, ACPI_GPE_REGISTER_INFO *GpeRegisterInfo); /****************************************************************************** * * FUNCTION: AcpiHwGetGpeRegisterBit * * PARAMETERS: GpeEventInfo - Info block for the GPE * * RETURN: Register mask with a one in the GPE bit position * * DESCRIPTION: Compute the register mask for this GPE. One bit is set in the * correct position for the input GPE. * ******************************************************************************/ UINT32 AcpiHwGetGpeRegisterBit ( ACPI_GPE_EVENT_INFO *GpeEventInfo) { return ((UINT32) 1 << (GpeEventInfo->GpeNumber - GpeEventInfo->RegisterInfo->BaseGpeNumber)); } /****************************************************************************** * * FUNCTION: AcpiHwLowSetGpe * * PARAMETERS: GpeEventInfo - Info block for the GPE to be disabled * Action - Enable or disable * * RETURN: Status * * DESCRIPTION: Enable or disable a single GPE in the parent enable register. * The EnableMask field of the involved GPE register must be * updated by the caller if necessary. * ******************************************************************************/ ACPI_STATUS AcpiHwLowSetGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo, UINT32 Action) { ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; ACPI_STATUS Status = AE_OK; UINT64 EnableMask; UINT32 RegisterBit; ACPI_FUNCTION_ENTRY (); /* Get the info block for the entire GPE register */ GpeRegisterInfo = GpeEventInfo->RegisterInfo; if (!GpeRegisterInfo) { return (AE_NOT_EXIST); } /* Get current value of the enable register that contains this GPE */ Status = AcpiHwRead (&EnableMask, &GpeRegisterInfo->EnableAddress); if (ACPI_FAILURE (Status)) { return (Status); } /* Set or clear just the bit that corresponds to this GPE */ RegisterBit = AcpiHwGetGpeRegisterBit (GpeEventInfo); switch (Action) { case ACPI_GPE_CONDITIONAL_ENABLE: /* Only enable if the corresponding EnableMask bit is set */ if (!(RegisterBit & GpeRegisterInfo->EnableMask)) { return (AE_BAD_PARAMETER); } ACPI_FALLTHROUGH; case ACPI_GPE_ENABLE: ACPI_SET_BIT (EnableMask, RegisterBit); break; case ACPI_GPE_DISABLE: ACPI_CLEAR_BIT (EnableMask, RegisterBit); break; default: ACPI_ERROR ((AE_INFO, "Invalid GPE Action, %u", Action)); return (AE_BAD_PARAMETER); } if (!(RegisterBit & GpeRegisterInfo->MaskForRun)) { /* Write the updated enable mask */ Status = AcpiHwWrite (EnableMask, &GpeRegisterInfo->EnableAddress); } return (Status); } /****************************************************************************** * * FUNCTION: AcpiHwClearGpe * * PARAMETERS: GpeEventInfo - Info block for the GPE to be cleared * * RETURN: Status * * DESCRIPTION: Clear the status bit for a single GPE. * ******************************************************************************/ ACPI_STATUS AcpiHwClearGpe ( ACPI_GPE_EVENT_INFO *GpeEventInfo) { ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; ACPI_STATUS Status; UINT32 RegisterBit; ACPI_FUNCTION_ENTRY (); /* Get the info block for the entire GPE register */ GpeRegisterInfo = GpeEventInfo->RegisterInfo; if (!GpeRegisterInfo) { return (AE_NOT_EXIST); } /* * Write a one to the appropriate bit in the status register to * clear this GPE. */ RegisterBit = AcpiHwGetGpeRegisterBit (GpeEventInfo); Status = AcpiHwWrite (RegisterBit, &GpeRegisterInfo->StatusAddress); return (Status); } /****************************************************************************** * * FUNCTION: AcpiHwGetGpeStatus * * PARAMETERS: GpeEventInfo - Info block for the GPE to queried * EventStatus - Where the GPE status is returned * * RETURN: Status * * DESCRIPTION: Return the status of a single GPE. * ******************************************************************************/ ACPI_STATUS AcpiHwGetGpeStatus ( ACPI_GPE_EVENT_INFO *GpeEventInfo, ACPI_EVENT_STATUS *EventStatus) { UINT64 InByte; UINT32 RegisterBit; ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; ACPI_EVENT_STATUS LocalEventStatus = 0; ACPI_STATUS Status; ACPI_FUNCTION_ENTRY (); if (!EventStatus) { return (AE_BAD_PARAMETER); } /* GPE currently handled? */ if (ACPI_GPE_DISPATCH_TYPE (GpeEventInfo->Flags) != ACPI_GPE_DISPATCH_NONE) { LocalEventStatus |= ACPI_EVENT_FLAG_HAS_HANDLER; } /* Get the info block for the entire GPE register */ GpeRegisterInfo = GpeEventInfo->RegisterInfo; /* Get the register bitmask for this GPE */ RegisterBit = AcpiHwGetGpeRegisterBit (GpeEventInfo); /* GPE currently enabled? (enabled for runtime?) */ if (RegisterBit & GpeRegisterInfo->EnableForRun) { LocalEventStatus |= ACPI_EVENT_FLAG_ENABLED; } /* GPE currently masked? (masked for runtime?) */ if (RegisterBit & GpeRegisterInfo->MaskForRun) { LocalEventStatus |= ACPI_EVENT_FLAG_MASKED; } /* GPE enabled for wake? */ if (RegisterBit & GpeRegisterInfo->EnableForWake) { LocalEventStatus |= ACPI_EVENT_FLAG_WAKE_ENABLED; } /* GPE currently enabled (enable bit == 1)? */ Status = AcpiHwRead (&InByte, &GpeRegisterInfo->EnableAddress); if (ACPI_FAILURE (Status)) { return (Status); } if (RegisterBit & InByte) { LocalEventStatus |= ACPI_EVENT_FLAG_ENABLE_SET; } /* GPE currently active (status bit == 1)? */ Status = AcpiHwRead (&InByte, &GpeRegisterInfo->StatusAddress); if (ACPI_FAILURE (Status)) { return (Status); } if (RegisterBit & InByte) { LocalEventStatus |= ACPI_EVENT_FLAG_STATUS_SET; } /* Set return value */ (*EventStatus) = LocalEventStatus; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwGpeEnableWrite * * PARAMETERS: EnableMask - Bit mask to write to the GPE register * GpeRegisterInfo - Gpe Register info * * RETURN: Status * * DESCRIPTION: Write the enable mask byte to the given GPE register. * ******************************************************************************/ static ACPI_STATUS AcpiHwGpeEnableWrite ( UINT8 EnableMask, ACPI_GPE_REGISTER_INFO *GpeRegisterInfo) { ACPI_STATUS Status; GpeRegisterInfo->EnableMask = EnableMask; Status = AcpiHwWrite (EnableMask, &GpeRegisterInfo->EnableAddress); return (Status); } /****************************************************************************** * * FUNCTION: AcpiHwDisableGpeBlock * * PARAMETERS: GpeXruptInfo - GPE Interrupt info * GpeBlock - Gpe Block info * * RETURN: Status * * DESCRIPTION: Disable all GPEs within a single GPE block * ******************************************************************************/ ACPI_STATUS AcpiHwDisableGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context) { UINT32 i; ACPI_STATUS Status; /* Examine each GPE Register within the block */ for (i = 0; i < GpeBlock->RegisterCount; i++) { /* Disable all GPEs in this register */ Status = AcpiHwGpeEnableWrite (0x00, &GpeBlock->RegisterInfo[i]); if (ACPI_FAILURE (Status)) { return (Status); } } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwClearGpeBlock * * PARAMETERS: GpeXruptInfo - GPE Interrupt info * GpeBlock - Gpe Block info * * RETURN: Status * * DESCRIPTION: Clear status bits for all GPEs within a single GPE block * ******************************************************************************/ ACPI_STATUS AcpiHwClearGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context) { UINT32 i; ACPI_STATUS Status; /* Examine each GPE Register within the block */ for (i = 0; i < GpeBlock->RegisterCount; i++) { /* Clear status on all GPEs in this register */ Status = AcpiHwWrite (0xFF, &GpeBlock->RegisterInfo[i].StatusAddress); if (ACPI_FAILURE (Status)) { return (Status); } } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwEnableRuntimeGpeBlock * * PARAMETERS: GpeXruptInfo - GPE Interrupt info * GpeBlock - Gpe Block info * * RETURN: Status * * DESCRIPTION: Enable all "runtime" GPEs within a single GPE block. Includes * combination wake/run GPEs. * ******************************************************************************/ ACPI_STATUS AcpiHwEnableRuntimeGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context) { UINT32 i; ACPI_STATUS Status; ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; UINT8 EnableMask; /* NOTE: assumes that all GPEs are currently disabled */ /* Examine each GPE Register within the block */ for (i = 0; i < GpeBlock->RegisterCount; i++) { GpeRegisterInfo = &GpeBlock->RegisterInfo[i]; if (!GpeRegisterInfo->EnableForRun) { continue; } /* Enable all "runtime" GPEs in this register */ EnableMask = GpeRegisterInfo->EnableForRun & ~GpeRegisterInfo->MaskForRun; Status = AcpiHwGpeEnableWrite (EnableMask, GpeRegisterInfo); if (ACPI_FAILURE (Status)) { return (Status); } } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwEnableWakeupGpeBlock * * PARAMETERS: GpeXruptInfo - GPE Interrupt info * GpeBlock - Gpe Block info * * RETURN: Status * * DESCRIPTION: Enable all "wake" GPEs within a single GPE block. Includes * combination wake/run GPEs. * ******************************************************************************/ static ACPI_STATUS AcpiHwEnableWakeupGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *Context) { UINT32 i; ACPI_STATUS Status; ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; /* Examine each GPE Register within the block */ for (i = 0; i < GpeBlock->RegisterCount; i++) { GpeRegisterInfo = &GpeBlock->RegisterInfo[i]; /* * Enable all "wake" GPEs in this register and disable the * remaining ones. */ Status = AcpiHwGpeEnableWrite (GpeRegisterInfo->EnableForWake, GpeRegisterInfo); if (ACPI_FAILURE (Status)) { return (Status); } } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwGetGpeBlockStatus * * PARAMETERS: GpeXruptInfo - GPE Interrupt info * GpeBlock - Gpe Block info * * RETURN: Success * * DESCRIPTION: Produce a combined GPE status bits mask for the given block. * ******************************************************************************/ static ACPI_STATUS AcpiHwGetGpeBlockStatus( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, ACPI_GPE_BLOCK_INFO *GpeBlock, void *RetPtr) { ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; UINT64 InEnable; UINT64 InStatus; ACPI_STATUS Status; UINT8 *Ret = RetPtr; UINT32 i; /* Examine each GPE Register within the block */ for (i = 0; i < GpeBlock->RegisterCount; i++) { GpeRegisterInfo = &GpeBlock->RegisterInfo[i]; Status = AcpiHwRead (&InEnable, &GpeRegisterInfo->EnableAddress); if (ACPI_FAILURE (Status)) { continue; } Status = AcpiHwRead (&InStatus, &GpeRegisterInfo->StatusAddress); if (ACPI_FAILURE (Status)) { continue; } *Ret |= InEnable & InStatus; } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiHwDisableAllGpes * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Disable and clear all GPEs in all GPE blocks * ******************************************************************************/ ACPI_STATUS AcpiHwDisableAllGpes ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (HwDisableAllGpes); Status = AcpiEvWalkGpeList (AcpiHwDisableGpeBlock, NULL); return_ACPI_STATUS (Status); } /****************************************************************************** * * FUNCTION: AcpiHwEnableAllRuntimeGpes * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Enable all "runtime" GPEs, in all GPE blocks * ******************************************************************************/ ACPI_STATUS AcpiHwEnableAllRuntimeGpes ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (HwEnableAllRuntimeGpes); Status = AcpiEvWalkGpeList (AcpiHwEnableRuntimeGpeBlock, NULL); return_ACPI_STATUS (Status); } /****************************************************************************** * * FUNCTION: AcpiHwEnableAllWakeupGpes * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Enable all "wakeup" GPEs, in all GPE blocks * ******************************************************************************/ ACPI_STATUS AcpiHwEnableAllWakeupGpes ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (HwEnableAllWakeupGpes); Status = AcpiEvWalkGpeList (AcpiHwEnableWakeupGpeBlock, NULL); return_ACPI_STATUS (Status); } /****************************************************************************** * * FUNCTION: AcpiHwCheckAllGpes * * PARAMETERS: None * * RETURN: Combined status of all GPEs * * DESCRIPTION: Check all enabled GPEs in all GPE blocks and return TRUE if the * status bit is set for at least one of them of FALSE otherwise. * ******************************************************************************/ UINT8 AcpiHwCheckAllGpes ( void) { UINT8 Ret = 0; ACPI_FUNCTION_TRACE (AcpiHwCheckAllGpes); (void) AcpiEvWalkGpeList (AcpiHwGetGpeBlockStatus, &Ret); return (Ret != 0); } #endif /* !ACPI_REDUCED_HARDWARE */ acpica-unix-20250404/source/components/disassembler/0000775000175000017500000000000014773714132021700 5ustar ivanhuivanhuacpica-unix-20250404/source/components/disassembler/dmresrcs.c0000775000175000017500000002641414773714132023700 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmresrcs.c - "Small" Resource Descriptor disassembly * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbresrcs") /******************************************************************************* * * FUNCTION: AcpiDmIrqDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a IRQ descriptor, either Irq() or IrqNoFlags() * ******************************************************************************/ void AcpiDmIrqDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmIndent (Level); AcpiOsPrintf ("%s (", AcpiGbl_IrqDecode [ACPI_GET_1BIT_FLAG (Length)]); /* Decode flags byte if present */ if (Length & 1) { AcpiOsPrintf ("%s, %s, %s, ", AcpiGbl_HeDecode [ACPI_GET_1BIT_FLAG (Resource->Irq.Flags)], AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->Irq.Flags, 3)], AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Irq.Flags, 4)]); } /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); AcpiDmIndent (Level + 1); AcpiDmBitList (Resource->Irq.IrqMask); } /******************************************************************************* * * FUNCTION: AcpiDmDmaDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a DMA descriptor * ******************************************************************************/ void AcpiDmDmaDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmIndent (Level); AcpiOsPrintf ("DMA (%s, %s, %s, ", AcpiGbl_TypDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Dma.Flags, 5)], AcpiGbl_BmDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->Dma.Flags, 2)], AcpiGbl_SizDecode [ACPI_GET_2BIT_FLAG (Resource->Dma.Flags)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); AcpiDmIndent (Level + 1); AcpiDmBitList (Resource->Dma.DmaChannelMask); } /******************************************************************************* * * FUNCTION: AcpiDmFixedDmaDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a FixedDMA descriptor * ******************************************************************************/ void AcpiDmFixedDmaDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmIndent (Level); AcpiOsPrintf ("FixedDMA (0x%4.4X, 0x%4.4X, ", Resource->FixedDma.RequestLines, Resource->FixedDma.Channels); if (Resource->FixedDma.Width <= 5) { AcpiOsPrintf ("%s, ", AcpiGbl_DtsDecode [Resource->FixedDma.Width]); } else { AcpiOsPrintf ("%X /* INVALID DMA WIDTH */, ", Resource->FixedDma.Width); } /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmIoDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode an IO descriptor * ******************************************************************************/ void AcpiDmIoDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmIndent (Level); AcpiOsPrintf ("IO (%s,\n", AcpiGbl_IoDecode [ACPI_GET_1BIT_FLAG (Resource->Io.Flags)]); AcpiDmIndent (Level + 1); AcpiDmDumpInteger16 (Resource->Io.Minimum, "Range Minimum"); AcpiDmIndent (Level + 1); AcpiDmDumpInteger16 (Resource->Io.Maximum, "Range Maximum"); AcpiDmIndent (Level + 1); AcpiDmDumpInteger8 (Resource->Io.Alignment, "Alignment"); AcpiDmIndent (Level + 1); AcpiDmDumpInteger8 (Resource->Io.AddressLength, "Length"); /* Insert a descriptor name */ AcpiDmIndent (Level + 1); AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmFixedIoDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Fixed IO descriptor * ******************************************************************************/ void AcpiDmFixedIoDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmIndent (Level); AcpiOsPrintf ("FixedIO (\n"); AcpiDmIndent (Level + 1); AcpiDmDumpInteger16 (Resource->FixedIo.Address, "Address"); AcpiDmIndent (Level + 1); AcpiDmDumpInteger8 (Resource->FixedIo.AddressLength, "Length"); /* Insert a descriptor name */ AcpiDmIndent (Level + 1); AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmStartDependentDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Start Dependent functions descriptor * ******************************************************************************/ void AcpiDmStartDependentDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmIndent (Level); if (Length & 1) { AcpiOsPrintf ("StartDependentFn (0x%2.2X, 0x%2.2X)\n", (UINT32) ACPI_GET_2BIT_FLAG (Resource->StartDpf.Flags), (UINT32) ACPI_EXTRACT_2BIT_FLAG (Resource->StartDpf.Flags, 2)); } else { AcpiOsPrintf ("StartDependentFnNoPri ()\n"); } AcpiDmIndent (Level); AcpiOsPrintf ("{\n"); } /******************************************************************************* * * FUNCTION: AcpiDmEndDependentDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode an End Dependent functions descriptor * ******************************************************************************/ void AcpiDmEndDependentDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmIndent (Level); AcpiOsPrintf ("}\n"); AcpiDmIndent (Level); AcpiOsPrintf ("EndDependentFn ()\n"); } /******************************************************************************* * * FUNCTION: AcpiDmVendorSmallDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Vendor Small Descriptor * ******************************************************************************/ void AcpiDmVendorSmallDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmVendorCommon ("Short", ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_SMALL_HEADER)), Length, Level); } acpica-unix-20250404/source/components/disassembler/dmdeferred.c0000775000175000017500000001666614773714132024167 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dmdeferred - Disassembly of deferred AML opcodes * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "amlcode.h" #include "acdisasm.h" #include "acparser.h" #define _COMPONENT ACPI_CA_DISASSEMBLER ACPI_MODULE_NAME ("dmdeferred") /* Local prototypes */ static ACPI_STATUS AcpiDmDeferredParse ( ACPI_PARSE_OBJECT *Op, UINT8 *Aml, UINT32 AmlLength); /****************************************************************************** * * FUNCTION: AcpiDmParseDeferredOps * * PARAMETERS: Root - Root of the parse tree * * RETURN: Status * * DESCRIPTION: Parse the deferred opcodes (Methods, regions, etc.) * *****************************************************************************/ ACPI_STATUS AcpiDmParseDeferredOps ( ACPI_PARSE_OBJECT *Root) { const ACPI_OPCODE_INFO *OpInfo; ACPI_PARSE_OBJECT *Op = Root; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (DmParseDeferredOps); /* Traverse the entire parse tree */ while (Op) { OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (!(OpInfo->Flags & AML_DEFER)) { Op = AcpiPsGetDepthNext (Root, Op); continue; } /* Now we know we have a deferred opcode */ switch (Op->Common.AmlOpcode) { case AML_METHOD_OP: case AML_BUFFER_OP: case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: Status = AcpiDmDeferredParse ( Op, Op->Named.Data, Op->Named.Length); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } break; /* We don't need to do anything for these deferred opcodes */ case AML_REGION_OP: case AML_DATA_REGION_OP: case AML_CREATE_QWORD_FIELD_OP: case AML_CREATE_DWORD_FIELD_OP: case AML_CREATE_WORD_FIELD_OP: case AML_CREATE_BYTE_FIELD_OP: case AML_CREATE_BIT_FIELD_OP: case AML_CREATE_FIELD_OP: case AML_BANK_FIELD_OP: break; default: ACPI_ERROR ((AE_INFO, "Unhandled deferred AML opcode [0x%.4X]", Op->Common.AmlOpcode)); break; } Op = AcpiPsGetDepthNext (Root, Op); } return_ACPI_STATUS (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiDmDeferredParse * * PARAMETERS: Op - Root Op of the deferred opcode * Aml - Pointer to the raw AML * AmlLength - Length of the AML * * RETURN: Status * * DESCRIPTION: Parse one deferred opcode * (Methods, operation regions, etc.) * *****************************************************************************/ static ACPI_STATUS AcpiDmDeferredParse ( ACPI_PARSE_OBJECT *Op, UINT8 *Aml, UINT32 AmlLength) { ACPI_WALK_STATE *WalkState; ACPI_STATUS Status; ACPI_PARSE_OBJECT *SearchOp; ACPI_PARSE_OBJECT *StartOp; ACPI_PARSE_OBJECT *NewRootOp; ACPI_PARSE_OBJECT *ExtraOp; ACPI_FUNCTION_TRACE (DmDeferredParse); if (!Aml || !AmlLength) { return_ACPI_STATUS (AE_OK); } ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Parsing deferred opcode %s [%4.4s]\n", Op->Common.AmlOpName, (char *) &Op->Named.Name)); /* Need a new walk state to parse the AML */ WalkState = AcpiDsCreateWalkState (0, Op, NULL, NULL); if (!WalkState) { return_ACPI_STATUS (AE_NO_MEMORY); } Status = AcpiDsInitAmlWalk (WalkState, Op, NULL, Aml, AmlLength, NULL, ACPI_IMODE_LOAD_PASS1); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Parse the AML for this deferred opcode */ WalkState->ParseFlags &= ~ACPI_PARSE_DELETE_TREE; WalkState->ParseFlags |= ACPI_PARSE_DISASSEMBLE; Status = AcpiPsParseAml (WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS(Status); } StartOp = (Op->Common.Value.Arg)->Common.Next; SearchOp = StartOp; while (SearchOp) { SearchOp = AcpiPsGetDepthNext (StartOp, SearchOp); } /* * For Buffer and Package opcodes, link the newly parsed subtree * into the main parse tree */ switch (Op->Common.AmlOpcode) { case AML_BUFFER_OP: case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: switch (Op->Common.AmlOpcode) { case AML_PACKAGE_OP: ExtraOp = Op->Common.Value.Arg; NewRootOp = ExtraOp->Common.Next; ACPI_FREE (ExtraOp); break; case AML_VARIABLE_PACKAGE_OP: case AML_BUFFER_OP: default: NewRootOp = Op->Common.Value.Arg; break; } Op->Common.Value.Arg = NewRootOp->Common.Value.Arg; /* Must point all parents to the main tree */ StartOp = Op; SearchOp = StartOp; while (SearchOp) { if (SearchOp->Common.Parent == NewRootOp) { SearchOp->Common.Parent = Op; } SearchOp = AcpiPsGetDepthNext (StartOp, SearchOp); } ACPI_FREE (NewRootOp); break; default: break; } return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/disassembler/dmopcode.c0000775000175000017500000007520514773714132023652 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmopcode - AML disassembler, specific AML opcodes * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acinterp.h" #include "acnamesp.h" #include "acdebug.h" #include "acconvert.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dmopcode") /* Local prototypes */ static void AcpiDmMatchKeyword ( ACPI_PARSE_OBJECT *Op); static void AcpiDmConvertToElseIf ( ACPI_PARSE_OBJECT *Op); static void AcpiDmPromoteSubtree ( ACPI_PARSE_OBJECT *StartOp); /******************************************************************************* * * FUNCTION: AcpiDmDisplayTargetPathname * * PARAMETERS: Op - Parse object * * RETURN: None * * DESCRIPTION: For AML opcodes that have a target operand, display the full * pathname for the target, in a comment field. Handles Return() * statements also. * ******************************************************************************/ void AcpiDmDisplayTargetPathname ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *NextOp; ACPI_PARSE_OBJECT *PrevOp = NULL; char *Pathname; const ACPI_OPCODE_INFO *OpInfo; if (Op->Common.AmlOpcode == AML_RETURN_OP) { PrevOp = Op->Asl.Value.Arg; } else { OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (!(OpInfo->Flags & AML_HAS_TARGET)) { return; } /* Target is the last Op in the arg list */ NextOp = Op->Asl.Value.Arg; while (NextOp) { PrevOp = NextOp; NextOp = PrevOp->Asl.Next; } } if (!PrevOp) { return; } /* We must have a namepath AML opcode */ if (PrevOp->Asl.AmlOpcode != AML_INT_NAMEPATH_OP) { return; } /* A null string is the "no target specified" case */ if (!PrevOp->Asl.Value.String) { return; } /* No node means "unresolved external reference" */ if (!PrevOp->Asl.Node) { AcpiOsPrintf (" /* External reference */"); return; } /* Ignore if path is already from the root */ if (*PrevOp->Asl.Value.String == '\\') { return; } /* Now: we can get the full pathname */ Pathname = AcpiNsGetExternalPathname (PrevOp->Asl.Node); if (!Pathname) { return; } AcpiOsPrintf (" /* %s */", Pathname); ACPI_FREE (Pathname); } /******************************************************************************* * * FUNCTION: AcpiDmNotifyDescription * * PARAMETERS: Op - Name() parse object * * RETURN: None * * DESCRIPTION: Emit a description comment for the value associated with a * Notify() operator. * ******************************************************************************/ void AcpiDmNotifyDescription ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *NextOp; ACPI_NAMESPACE_NODE *Node; UINT8 NotifyValue; UINT8 Type = ACPI_TYPE_ANY; /* The notify value is the second argument */ NextOp = Op->Asl.Value.Arg; NextOp = NextOp->Asl.Next; switch (NextOp->Common.AmlOpcode) { case AML_ZERO_OP: case AML_ONE_OP: NotifyValue = (UINT8) NextOp->Common.AmlOpcode; break; case AML_BYTE_OP: NotifyValue = (UINT8) NextOp->Asl.Value.Integer; break; default: return; } /* * Attempt to get the namespace node so we can determine the object type. * Some notify values are dependent on the object type (Device, Thermal, * or Processor). */ Node = Op->Asl.Node; if (Node) { Type = Node->Type; } AcpiOsPrintf (" // %s", AcpiUtGetNotifyName (NotifyValue, Type)); } /******************************************************************************* * * FUNCTION: AcpiDmPredefinedDescription * * PARAMETERS: Op - Name() parse object * * RETURN: None * * DESCRIPTION: Emit a description comment for a predefined ACPI name. * Used for iASL compiler only. * ******************************************************************************/ void AcpiDmPredefinedDescription ( ACPI_PARSE_OBJECT *Op) { #ifdef ACPI_ASL_COMPILER const AH_PREDEFINED_NAME *Info; char *NameString; int LastCharIsDigit; int LastCharsAreHex; if (!Op) { return; } /* Ensure that the comment field is emitted only once */ if (Op->Common.DisasmFlags & ACPI_PARSEOP_PREDEFINED_CHECKED) { return; } Op->Common.DisasmFlags |= ACPI_PARSEOP_PREDEFINED_CHECKED; /* Predefined name must start with an underscore */ NameString = ACPI_CAST_PTR (char, &Op->Named.Name); if (NameString[0] != '_') { return; } /* * Check for the special ACPI names: * _ACd, _ALd, _EJd, _Exx, _Lxx, _Qxx, _Wxx, _T_a * (where d=decimal_digit, x=hex_digit, a=anything) * * Convert these to the generic name for table lookup. * Note: NameString is guaranteed to be upper case here. */ LastCharIsDigit = (isdigit ((int) NameString[3])); /* d */ LastCharsAreHex = (isxdigit ((int) NameString[2]) && /* xx */ isxdigit ((int) NameString[3])); switch (NameString[1]) { case 'A': if ((NameString[2] == 'C') && (LastCharIsDigit)) { NameString = "_ACx"; } else if ((NameString[2] == 'L') && (LastCharIsDigit)) { NameString = "_ALx"; } break; case 'E': if ((NameString[2] == 'J') && (LastCharIsDigit)) { NameString = "_EJx"; } else if (LastCharsAreHex) { NameString = "_Exx"; } break; case 'L': if (LastCharsAreHex) { NameString = "_Lxx"; } break; case 'Q': if (LastCharsAreHex) { NameString = "_Qxx"; } break; case 'T': if (NameString[2] == '_') { NameString = "_T_x"; } break; case 'W': if (LastCharsAreHex) { NameString = "_Wxx"; } break; default: break; } /* Match the name in the info table */ Info = AcpiAhMatchPredefinedName (NameString); if (Info) { AcpiOsPrintf (" // %4.4s: %s", NameString, ACPI_CAST_PTR (char, Info->Description)); } #endif return; } /******************************************************************************* * * FUNCTION: AcpiDmFieldPredefinedDescription * * PARAMETERS: Op - Parse object * * RETURN: None * * DESCRIPTION: Emit a description comment for a resource descriptor tag * (which is a predefined ACPI name.) Used for iASL compiler only. * ******************************************************************************/ void AcpiDmFieldPredefinedDescription ( ACPI_PARSE_OBJECT *Op) { #ifdef ACPI_ASL_COMPILER ACPI_PARSE_OBJECT *IndexOp; char *Tag; const ACPI_OPCODE_INFO *OpInfo; const AH_PREDEFINED_NAME *Info; if (!Op) { return; } /* Ensure that the comment field is emitted only once */ if (Op->Common.DisasmFlags & ACPI_PARSEOP_PREDEFINED_CHECKED) { return; } Op->Common.DisasmFlags |= ACPI_PARSEOP_PREDEFINED_CHECKED; /* * Op must be one of the Create* operators: CreateField, CreateBitField, * CreateByteField, CreateWordField, CreateDwordField, CreateQwordField */ OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (!(OpInfo->Flags & AML_CREATE)) { return; } /* Second argument is the Index argument */ IndexOp = Op->Common.Value.Arg; IndexOp = IndexOp->Common.Next; /* Index argument must be a namepath */ if (IndexOp->Common.AmlOpcode != AML_INT_NAMEPATH_OP) { return; } /* Major cheat: We previously put the Tag ptr in the Node field */ Tag = ACPI_CAST_PTR (char, IndexOp->Common.Node); if (!Tag || (*Tag == 0)) { return; } /* Is the tag a predefined name? */ Info = AcpiAhMatchPredefinedName (Tag); if (!Info) { /* Not a predefined name (does not start with underscore) */ return; } AcpiOsPrintf (" // %4.4s: %s", Tag, ACPI_CAST_PTR (char, Info->Description)); /* String contains the prefix path, free it */ ACPI_FREE (IndexOp->Common.Value.String); IndexOp->Common.Value.String = NULL; #endif return; } /******************************************************************************* * * FUNCTION: AcpiDmMethodFlags * * PARAMETERS: Op - Method Object to be examined * * RETURN: None * * DESCRIPTION: Decode control method flags * ******************************************************************************/ void AcpiDmMethodFlags ( ACPI_PARSE_OBJECT *Op) { UINT32 Flags; UINT32 Args; /* The next Op contains the flags */ Op = AcpiPsGetDepthNext (NULL, Op); Flags = (UINT8) Op->Common.Value.Integer; Args = Flags & 0x07; /* Mark the Op as completed */ Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; /* 1) Method argument count */ AcpiOsPrintf (", %u, ", Args); /* 2) Serialize rule */ if (!(Flags & 0x08)) { AcpiOsPrintf ("Not"); } AcpiOsPrintf ("Serialized"); /* 3) SyncLevel */ if (Flags & 0xF0) { AcpiOsPrintf (", %u", Flags >> 4); } } /******************************************************************************* * * FUNCTION: AcpiDmFieldFlags * * PARAMETERS: Op - Field Object to be examined * * RETURN: None * * DESCRIPTION: Decode Field definition flags * ******************************************************************************/ void AcpiDmFieldFlags ( ACPI_PARSE_OBJECT *Op) { UINT32 Flags; Op = Op->Common.Next; Flags = (UINT8) Op->Common.Value.Integer; /* Mark the Op as completed */ Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; AcpiOsPrintf ("%s, ", AcpiGbl_AccessTypes [Flags & 0x07]); AcpiOsPrintf ("%s, ", AcpiGbl_LockRule [(Flags & 0x10) >> 4]); AcpiOsPrintf ("%s)", AcpiGbl_UpdateRules [(Flags & 0x60) >> 5]); } /******************************************************************************* * * FUNCTION: AcpiDmAddressSpace * * PARAMETERS: SpaceId - ID to be translated * * RETURN: None * * DESCRIPTION: Decode a SpaceId to an AddressSpaceKeyword * ******************************************************************************/ void AcpiDmAddressSpace ( UINT8 SpaceId) { if (SpaceId >= ACPI_NUM_PREDEFINED_REGIONS) { if (SpaceId == 0x7F) { AcpiOsPrintf ("FFixedHW, "); } else { AcpiOsPrintf ("0x%.2X, ", SpaceId); } } else { AcpiOsPrintf ("%s, ", AcpiGbl_RegionTypes [SpaceId]); } } /******************************************************************************* * * FUNCTION: AcpiDmRegionFlags * * PARAMETERS: Op - Object to be examined * * RETURN: None * * DESCRIPTION: Decode OperationRegion flags * ******************************************************************************/ void AcpiDmRegionFlags ( ACPI_PARSE_OBJECT *Op) { /* The next Op contains the SpaceId */ Op = AcpiPsGetDepthNext (NULL, Op); /* Mark the Op as completed */ Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; AcpiOsPrintf (", "); AcpiDmAddressSpace ((UINT8) Op->Common.Value.Integer); } /******************************************************************************* * * FUNCTION: AcpiDmMatchOp * * PARAMETERS: Op - Match Object to be examined * * RETURN: None * * DESCRIPTION: Decode Match opcode operands * ******************************************************************************/ void AcpiDmMatchOp ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *NextOp; NextOp = AcpiPsGetDepthNext (NULL, Op); NextOp = NextOp->Common.Next; if (!NextOp) { /* Handle partial tree during single-step */ return; } /* Mark the two nodes that contain the encoding for the match keywords */ NextOp->Common.DisasmOpcode = ACPI_DASM_MATCHOP; NextOp = NextOp->Common.Next; NextOp = NextOp->Common.Next; NextOp->Common.DisasmOpcode = ACPI_DASM_MATCHOP; } /******************************************************************************* * * FUNCTION: AcpiDmMatchKeyword * * PARAMETERS: Op - Match Object to be examined * * RETURN: None * * DESCRIPTION: Decode Match opcode operands * ******************************************************************************/ static void AcpiDmMatchKeyword ( ACPI_PARSE_OBJECT *Op) { if (((UINT32) Op->Common.Value.Integer) > ACPI_MAX_MATCH_OPCODE) { AcpiOsPrintf ("/* Unknown Match Keyword encoding */"); } else { AcpiOsPrintf ("%s", AcpiGbl_MatchOps[(ACPI_SIZE) Op->Common.Value.Integer]); } } /******************************************************************************* * * FUNCTION: AcpiDmDisassembleOneOp * * PARAMETERS: WalkState - Current walk info * Info - Parse tree walk info * Op - Op that is to be printed * * RETURN: None * * DESCRIPTION: Disassemble a single AML opcode * ******************************************************************************/ void AcpiDmDisassembleOneOp ( ACPI_WALK_STATE *WalkState, ACPI_OP_WALK_INFO *Info, ACPI_PARSE_OBJECT *Op) { const ACPI_OPCODE_INFO *OpInfo = NULL; UINT32 Offset; UINT32 Length; ACPI_PARSE_OBJECT *Child; ACPI_STATUS Status; UINT8 *Aml; const AH_DEVICE_ID *IdInfo; if (!Op) { AcpiOsPrintf (""); return; } if (Op->Common.DisasmFlags & ACPI_PARSEOP_ELSEIF) { return; /* ElseIf macro was already emitted */ } switch (Op->Common.DisasmOpcode) { case ACPI_DASM_MATCHOP: AcpiDmMatchKeyword (Op); return; case ACPI_DASM_LNOT_SUFFIX: if (!AcpiGbl_CstyleDisassembly) { switch (Op->Common.AmlOpcode) { case AML_LOGICAL_EQUAL_OP: AcpiOsPrintf ("LNotEqual"); break; case AML_LOGICAL_GREATER_OP: AcpiOsPrintf ("LLessEqual"); break; case AML_LOGICAL_LESS_OP: AcpiOsPrintf ("LGreaterEqual"); break; default: break; } } Op->Common.DisasmOpcode = 0; Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; return; default: break; } OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); /* The op and arguments */ switch (Op->Common.AmlOpcode) { case AML_LOGICAL_NOT_OP: Child = Op->Common.Value.Arg; if ((Child->Common.AmlOpcode == AML_LOGICAL_EQUAL_OP) || (Child->Common.AmlOpcode == AML_LOGICAL_GREATER_OP) || (Child->Common.AmlOpcode == AML_LOGICAL_LESS_OP)) { Child->Common.DisasmOpcode = ACPI_DASM_LNOT_SUFFIX; Op->Common.DisasmOpcode = ACPI_DASM_LNOT_PREFIX; } else { AcpiOsPrintf ("%s", OpInfo->Name); } break; case AML_BYTE_OP: AcpiOsPrintf ("0x%2.2X", (UINT32) Op->Common.Value.Integer); break; case AML_WORD_OP: if (Op->Common.DisasmOpcode == ACPI_DASM_EISAID) { AcpiDmDecompressEisaId ((UINT32) Op->Common.Value.Integer); } else { AcpiOsPrintf ("0x%4.4X", (UINT32) Op->Common.Value.Integer); } break; case AML_DWORD_OP: if (Op->Common.DisasmOpcode == ACPI_DASM_EISAID) { AcpiDmDecompressEisaId ((UINT32) Op->Common.Value.Integer); } else { AcpiOsPrintf ("0x%8.8X", (UINT32) Op->Common.Value.Integer); } break; case AML_QWORD_OP: AcpiOsPrintf ("0x%8.8X%8.8X", ACPI_FORMAT_UINT64 (Op->Common.Value.Integer)); break; case AML_STRING_OP: AcpiUtPrintString (Op->Common.Value.String, ACPI_UINT16_MAX); /* For _HID/_CID strings, attempt to output a descriptive comment */ if (Op->Common.DisasmOpcode == ACPI_DASM_HID_STRING) { /* If we know about the ID, emit the description */ IdInfo = AcpiAhMatchHardwareId (Op->Common.Value.String); if (IdInfo) { AcpiOsPrintf (" /* %s */", IdInfo->Description); } } break; case AML_BUFFER_OP: /* * Determine the type of buffer. We can have one of the following: * * 1) ResourceTemplate containing Resource Descriptors. * 2) Unicode String buffer * 3) ASCII String buffer * 4) Raw data buffer (if none of the above) * * Since there are no special AML opcodes to differentiate these * types of buffers, we have to closely look at the data in the * buffer to determine the type. */ if (!AcpiGbl_NoResourceDisassembly) { Status = AcpiDmIsResourceTemplate (WalkState, Op); if (ACPI_SUCCESS (Status)) { Op->Common.DisasmOpcode = ACPI_DASM_RESOURCE; AcpiOsPrintf ("ResourceTemplate"); break; } else if (Status == AE_AML_NO_RESOURCE_END_TAG) { AcpiOsPrintf ( "/**** Is ResourceTemplate, " "but EndTag not at buffer end ****/ "); } } if (AcpiDmIsUuidBuffer (Op)) { Op->Common.DisasmOpcode = ACPI_DASM_UUID; AcpiOsPrintf ("ToUUID ("); } else if (AcpiDmIsUnicodeBuffer (Op)) { Op->Common.DisasmOpcode = ACPI_DASM_UNICODE; AcpiOsPrintf ("Unicode ("); } else if (AcpiDmIsStringBuffer (Op)) { Op->Common.DisasmOpcode = ACPI_DASM_STRING; AcpiOsPrintf ("Buffer"); } else if (AcpiDmIsPldBuffer (Op)) { Op->Common.DisasmOpcode = ACPI_DASM_PLD_METHOD; AcpiOsPrintf ("ToPLD ("); } else { Op->Common.DisasmOpcode = ACPI_DASM_BUFFER; AcpiOsPrintf ("Buffer"); } break; case AML_INT_NAMEPATH_OP: AcpiDmNamestring (Op->Common.Value.Name); break; case AML_INT_NAMEDFIELD_OP: Length = AcpiDmDumpName (Op->Named.Name); AcpiOsPrintf (","); ASL_CV_PRINT_ONE_COMMENT (Op, AML_NAMECOMMENT, NULL, 0); AcpiOsPrintf ("%*.s %u", (unsigned) (5 - Length), " ", (UINT32) Op->Common.Value.Integer); AcpiDmCommaIfFieldMember (Op); Info->BitOffset += (UINT32) Op->Common.Value.Integer; break; case AML_INT_RESERVEDFIELD_OP: /* Offset() -- Must account for previous offsets */ Offset = (UINT32) Op->Common.Value.Integer; Info->BitOffset += Offset; if (Info->BitOffset % 8 == 0) { AcpiOsPrintf ("Offset (0x%.2X)", ACPI_DIV_8 (Info->BitOffset)); } else { AcpiOsPrintf (" , %u", Offset); } AcpiDmCommaIfFieldMember (Op); break; case AML_INT_ACCESSFIELD_OP: case AML_INT_EXTACCESSFIELD_OP: AcpiOsPrintf ("AccessAs (%s, ", AcpiGbl_AccessTypes [(UINT32) (Op->Common.Value.Integer & 0x7)]); AcpiDmDecodeAttribute ((UINT8) (Op->Common.Value.Integer >> 8)); if (Op->Common.AmlOpcode == AML_INT_EXTACCESSFIELD_OP) { AcpiOsPrintf (" (0x%2.2X)", (unsigned) ((Op->Common.Value.Integer >> 16) & 0xFF)); } AcpiOsPrintf (")"); AcpiDmCommaIfFieldMember (Op); ASL_CV_PRINT_ONE_COMMENT (Op, AML_COMMENT_END_NODE, NULL, 0); break; case AML_INT_CONNECTION_OP: /* * Two types of Connection() - one with a buffer object, the * other with a namestring that points to a buffer object. */ AcpiOsPrintf ("Connection ("); Child = Op->Common.Value.Arg; if (Child->Common.AmlOpcode == AML_INT_BYTELIST_OP) { AcpiOsPrintf ("\n"); Aml = Child->Named.Data; Length = (UINT32) Child->Common.Value.Integer; Info->Level += 1; Info->MappingOp = Op; Op->Common.DisasmOpcode = ACPI_DASM_RESOURCE; AcpiDmResourceTemplate (Info, Op->Common.Parent, Aml, Length); Info->Level -= 1; AcpiDmIndent (Info->Level); } else { AcpiDmNamestring (Child->Common.Value.Name); } AcpiOsPrintf (")"); AcpiDmCommaIfFieldMember (Op); ASL_CV_PRINT_ONE_COMMENT (Op, AML_COMMENT_END_NODE, NULL, 0); ASL_CV_PRINT_ONE_COMMENT (Op, AMLCOMMENT_INLINE, NULL, 0); AcpiOsPrintf ("\n"); Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; /* for now, ignore in AcpiDmAscendingOp */ Child->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; break; case AML_INT_BYTELIST_OP: AcpiDmByteList (Info, Op); break; case AML_INT_METHODCALL_OP: Op = AcpiPsGetDepthNext (NULL, Op); Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; AcpiDmNamestring (Op->Common.Value.Name); break; case AML_WHILE_OP: if (Op->Common.DisasmOpcode == ACPI_DASM_SWITCH) { AcpiOsPrintf ("%s", "Switch"); break; } AcpiOsPrintf ("%s", OpInfo->Name); break; case AML_IF_OP: if (Op->Common.DisasmOpcode == ACPI_DASM_CASE) { AcpiOsPrintf ("%s", "Case"); break; } AcpiOsPrintf ("%s", OpInfo->Name); break; case AML_ELSE_OP: AcpiDmConvertToElseIf (Op); break; case AML_EXTERNAL_OP: if (AcpiGbl_DmEmitExternalOpcodes) { AcpiDmEmitExternal (Op, AcpiPsGetArg(Op, 0)); } break; default: /* Just get the opcode name and print it */ AcpiOsPrintf ("%s", OpInfo->Name); #ifdef ACPI_DEBUGGER if ((Op->Common.AmlOpcode == AML_INT_RETURN_VALUE_OP) && (WalkState) && (WalkState->Results) && (WalkState->ResultCount)) { AcpiDbDecodeInternalObject ( WalkState->Results->Results.ObjDesc [ (WalkState->ResultCount - 1) % ACPI_RESULTS_FRAME_OBJ_NUM]); } #endif break; } } /******************************************************************************* * * FUNCTION: AcpiDmConvertToElseIf * * PARAMETERS: OriginalElseOp - ELSE Object to be examined * * RETURN: None. Emits either an "Else" or an "ElseIf" ASL operator. * * DESCRIPTION: Detect and convert an If..Else..If sequence to If..ElseIf * * EXAMPLE: * * This If..Else..If nested sequence: * * If (Arg0 == 1) * { * Local0 = 4 * } * Else * { * If (Arg0 == 2) * { * Local0 = 5 * } * } * * Is converted to this simpler If..ElseIf sequence: * * If (Arg0 == 1) * { * Local0 = 4 * } * ElseIf (Arg0 == 2) * { * Local0 = 5 * } * * NOTE: There is no actual ElseIf AML opcode. ElseIf is essentially an ASL * macro that emits an Else opcode followed by an If opcode. This function * reverses these AML sequences back to an ElseIf macro where possible. This * can make the disassembled ASL code simpler and more like the original code. * ******************************************************************************/ static void AcpiDmConvertToElseIf ( ACPI_PARSE_OBJECT *OriginalElseOp) { ACPI_PARSE_OBJECT *IfOp; ACPI_PARSE_OBJECT *ElseOp; /* * To be able to perform the conversion, two conditions must be satisfied: * 1) The first child of the Else must be an If statement. * 2) The If block can only be followed by an Else block and these must * be the only blocks under the original Else. */ IfOp = OriginalElseOp->Common.Value.Arg; if (!IfOp || (IfOp->Common.AmlOpcode != AML_IF_OP) || (IfOp->Asl.Next && (IfOp->Asl.Next->Common.AmlOpcode != AML_ELSE_OP))) { /* Not a proper Else..If sequence, cannot convert to ElseIf */ if (OriginalElseOp->Common.DisasmOpcode == ACPI_DASM_DEFAULT) { AcpiOsPrintf ("%s", "Default"); return; } AcpiOsPrintf ("%s", "Else"); return; } /* Cannot have anything following the If...Else block */ ElseOp = IfOp->Common.Next; if (ElseOp && ElseOp->Common.Next) { if (OriginalElseOp->Common.DisasmOpcode == ACPI_DASM_DEFAULT) { AcpiOsPrintf ("%s", "Default"); return; } AcpiOsPrintf ("%s", "Else"); return; } if (OriginalElseOp->Common.DisasmOpcode == ACPI_DASM_DEFAULT) { /* * There is an ElseIf but in this case the Else is actually * a Default block for a Switch/Case statement. No conversion. */ AcpiOsPrintf ("%s", "Default"); return; } if (OriginalElseOp->Common.DisasmOpcode == ACPI_DASM_CASE) { /* * This ElseIf is actually a Case block for a Switch/Case * statement. Print Case but do not return so that we can * promote the subtree and keep the indentation level. */ AcpiOsPrintf ("%s", "Case"); } else { /* Emit ElseIf, mark the IF as now an ELSEIF */ AcpiOsPrintf ("%s", "ElseIf"); } IfOp->Common.DisasmFlags |= ACPI_PARSEOP_ELSEIF; /* The IF parent will now be the same as the original ELSE parent */ IfOp->Common.Parent = OriginalElseOp->Common.Parent; /* * Update the NEXT pointers to restructure the parse tree, essentially * promoting an If..Else block up to the same level as the original * Else. * * Check if the IF has a corresponding ELSE peer */ ElseOp = IfOp->Common.Next; if (ElseOp && (ElseOp->Common.AmlOpcode == AML_ELSE_OP)) { /* If an ELSE matches the IF, promote it also */ ElseOp->Common.Parent = OriginalElseOp->Common.Parent; /* Promote the entire block under the ElseIf (All Next OPs) */ AcpiDmPromoteSubtree (OriginalElseOp); } else { /* Otherwise, set the IF NEXT to the original ELSE NEXT */ IfOp->Common.Next = OriginalElseOp->Common.Next; } /* Detach the child IF block from the original ELSE */ OriginalElseOp->Common.Value.Arg = NULL; /* Ignore the original ELSE from now on */ OriginalElseOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; OriginalElseOp->Common.DisasmOpcode = ACPI_DASM_LNOT_PREFIX; /* Insert IF (now ELSEIF) as next peer of the original ELSE */ OriginalElseOp->Common.Next = IfOp; } /******************************************************************************* * * FUNCTION: AcpiDmPromoteSubtree * * PARAMETERS: StartOpOp - Original parent of the entire subtree * * RETURN: None * * DESCRIPTION: Promote an entire parse subtree up one level. * ******************************************************************************/ static void AcpiDmPromoteSubtree ( ACPI_PARSE_OBJECT *StartOp) { ACPI_PARSE_OBJECT *Op; ACPI_PARSE_OBJECT *ParentOp; /* New parent for subtree elements */ ParentOp = StartOp->Common.Parent; /* First child starts the subtree */ Op = StartOp->Common.Value.Arg; /* Walk the top-level elements of the subtree */ while (Op) { Op->Common.Parent = ParentOp; if (!Op->Common.Next) { /* Last Op in list, update its next field */ Op->Common.Next = StartOp->Common.Next; break; } Op = Op->Common.Next; } } acpica-unix-20250404/source/components/disassembler/dmcstyle.c0000775000175000017500000006732314773714132023706 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmcstyle - Support for C-style operator disassembly * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdebug.h" #include "acconvert.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dmcstyle") /* Local prototypes */ static char * AcpiDmGetCompoundSymbol ( UINT16 AslOpcode); static void AcpiDmPromoteTarget ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *Target); static BOOLEAN AcpiDmIsValidTarget ( ACPI_PARSE_OBJECT *Op); static BOOLEAN AcpiDmIsTargetAnOperand ( ACPI_PARSE_OBJECT *Target, ACPI_PARSE_OBJECT *Operand, BOOLEAN TopLevel); static BOOLEAN AcpiDmIsOptimizationIgnored ( ACPI_PARSE_OBJECT *StoreOp, ACPI_PARSE_OBJECT *StoreArgument); /******************************************************************************* * * FUNCTION: AcpiDmCheckForSymbolicOpcode * * PARAMETERS: Op - Current parse object * Walk - Current parse tree walk info * * RETURN: TRUE if opcode can be converted to symbolic, FALSE otherwise * * DESCRIPTION: This is the main code that implements disassembly of AML code * to C-style operators. Called during descending phase of the * parse tree walk. * ******************************************************************************/ BOOLEAN AcpiDmCheckForSymbolicOpcode ( ACPI_PARSE_OBJECT *Op, ACPI_OP_WALK_INFO *Info) { char *OperatorSymbol = NULL; ACPI_PARSE_OBJECT *Argument1; ACPI_PARSE_OBJECT *Argument2; ACPI_PARSE_OBJECT *Target; ACPI_PARSE_OBJECT *Target2; /* Exit immediately if ASL+ not enabled */ if (!AcpiGbl_CstyleDisassembly) { return (FALSE); } /* Get the first operand */ Argument1 = AcpiPsGetArg (Op, 0); if (!Argument1) { return (FALSE); } /* Get the second operand */ Argument2 = Argument1->Common.Next; /* Setup the operator string for this opcode */ switch (Op->Common.AmlOpcode) { case AML_ADD_OP: OperatorSymbol = " + "; break; case AML_SUBTRACT_OP: OperatorSymbol = " - "; break; case AML_MULTIPLY_OP: OperatorSymbol = " * "; break; case AML_DIVIDE_OP: OperatorSymbol = " / "; break; case AML_MOD_OP: OperatorSymbol = " % "; break; case AML_SHIFT_LEFT_OP: OperatorSymbol = " << "; break; case AML_SHIFT_RIGHT_OP: OperatorSymbol = " >> "; break; case AML_BIT_AND_OP: OperatorSymbol = " & "; break; case AML_BIT_OR_OP: OperatorSymbol = " | "; break; case AML_BIT_XOR_OP: OperatorSymbol = " ^ "; break; /* Logical operators, no target */ case AML_LOGICAL_AND_OP: OperatorSymbol = " && "; break; case AML_LOGICAL_EQUAL_OP: OperatorSymbol = " == "; break; case AML_LOGICAL_GREATER_OP: OperatorSymbol = " > "; break; case AML_LOGICAL_LESS_OP: OperatorSymbol = " < "; break; case AML_LOGICAL_OR_OP: OperatorSymbol = " || "; break; case AML_LOGICAL_NOT_OP: /* * Check for the LNOT sub-opcodes. These correspond to * LNotEqual, LLessEqual, and LGreaterEqual. There are * no actual AML opcodes for these operators. */ switch (Argument1->Common.AmlOpcode) { case AML_LOGICAL_EQUAL_OP: OperatorSymbol = " != "; break; case AML_LOGICAL_GREATER_OP: OperatorSymbol = " <= "; break; case AML_LOGICAL_LESS_OP: OperatorSymbol = " >= "; break; default: /* Unary LNOT case, emit "!" immediately */ AcpiOsPrintf ("!"); return (TRUE); } Argument1->Common.DisasmOpcode = ACPI_DASM_LNOT_SUFFIX; Op->Common.DisasmOpcode = ACPI_DASM_LNOT_PREFIX; /* Save symbol string in the next child (not peer) */ Argument2 = AcpiPsGetArg (Argument1, 0); if (!Argument2) { return (FALSE); } Argument2->Common.OperatorSymbol = OperatorSymbol; return (TRUE); case AML_INDEX_OP: /* * Check for constant source operand. Note: although technically * legal syntax, the iASL compiler does not support this with * the symbolic operators for Index(). It doesn't make sense to * use Index() with a constant anyway. */ if ((Argument1->Common.AmlOpcode == AML_STRING_OP) || (Argument1->Common.AmlOpcode == AML_BUFFER_OP) || (Argument1->Common.AmlOpcode == AML_PACKAGE_OP) || (Argument1->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP)) { Op->Common.DisasmFlags |= ACPI_PARSEOP_CLOSING_PAREN; return (FALSE); } /* Index operator is [] */ Argument1->Common.OperatorSymbol = " ["; Argument2->Common.OperatorSymbol = "]"; break; /* Unary operators */ case AML_DECREMENT_OP: OperatorSymbol = "--"; break; case AML_INCREMENT_OP: OperatorSymbol = "++"; break; case AML_BIT_NOT_OP: case AML_STORE_OP: OperatorSymbol = NULL; break; default: return (FALSE); } if (Argument1->Common.DisasmOpcode == ACPI_DASM_LNOT_SUFFIX) { return (TRUE); } /* * This is the key to how the disassembly of the C-style operators * works. We save the operator symbol in the first child, thus * deferring symbol output until after the first operand has been * emitted. */ if (!Argument1->Common.OperatorSymbol) { Argument1->Common.OperatorSymbol = OperatorSymbol; } /* * Check for a valid target as the 3rd (or sometimes 2nd) operand * * Compound assignment operator support: * Attempt to optimize constructs of the form: * Add (Local1, 0xFF, Local1) * to: * Local1 += 0xFF * * Only the math operators and Store() have a target. * Logicals have no target. */ switch (Op->Common.AmlOpcode) { case AML_ADD_OP: case AML_SUBTRACT_OP: case AML_MULTIPLY_OP: case AML_DIVIDE_OP: case AML_MOD_OP: case AML_SHIFT_LEFT_OP: case AML_SHIFT_RIGHT_OP: case AML_BIT_AND_OP: case AML_BIT_OR_OP: case AML_BIT_XOR_OP: /* Target is 3rd operand */ Target = Argument2->Common.Next; if (Op->Common.AmlOpcode == AML_DIVIDE_OP) { Target2 = Target->Common.Next; /* * Divide has an extra target operand (Remainder). * Default behavior is to simply ignore ASL+ conversion * if the remainder target (modulo) is specified. */ if (!AcpiGbl_DoDisassemblerOptimizations) { if (AcpiDmIsValidTarget (Target)) { Argument1->Common.OperatorSymbol = NULL; Op->Common.DisasmFlags |= ACPI_PARSEOP_LEGACY_ASL_ONLY; return (FALSE); } Target->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; Target = Target2; } else { /* * Divide has an extra target operand (Remainder). * If both targets are specified, it cannot be converted * to a C-style operator. */ if (AcpiDmIsValidTarget (Target) && AcpiDmIsValidTarget (Target2)) { Argument1->Common.OperatorSymbol = NULL; Op->Common.DisasmFlags |= ACPI_PARSEOP_LEGACY_ASL_ONLY; return (FALSE); } if (AcpiDmIsValidTarget (Target)) /* Only first Target is valid (remainder) */ { /* Convert the Divide to Modulo */ Op->Common.AmlOpcode = AML_MOD_OP; Argument1->Common.OperatorSymbol = " % "; Target2->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; } else /* Only second Target (quotient) is valid */ { Target->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; Target = Target2; } } } /* Parser should ensure there is at least a placeholder target */ if (!Target) { return (FALSE); } if (!AcpiDmIsValidTarget (Target)) { /* Not a valid target (placeholder only, from parser) */ break; } /* * Promote the target up to the first child in the parse * tree. This is done because the target will be output * first, in the form: * = Operands... */ AcpiDmPromoteTarget (Op, Target); /* Check operands for conversion to a "Compound Assignment" */ switch (Op->Common.AmlOpcode) { /* Commutative operators */ case AML_ADD_OP: case AML_MULTIPLY_OP: case AML_BIT_AND_OP: case AML_BIT_OR_OP: case AML_BIT_XOR_OP: /* * For the commutative operators, we can convert to a * compound statement only if at least one (either) operand * is the same as the target. * * Add (A, B, A) --> A += B * Add (B, A, A) --> A += B * Add (B, C, A) --> A = (B + C) */ if ((AcpiDmIsTargetAnOperand (Target, Argument1, TRUE)) || (AcpiDmIsTargetAnOperand (Target, Argument2, TRUE))) { Target->Common.OperatorSymbol = AcpiDmGetCompoundSymbol (Op->Common.AmlOpcode); /* Convert operator to compound assignment */ Op->Common.DisasmFlags |= ACPI_PARSEOP_COMPOUND_ASSIGNMENT; Argument1->Common.OperatorSymbol = NULL; return (TRUE); } break; /* Non-commutative operators */ case AML_SUBTRACT_OP: case AML_DIVIDE_OP: case AML_MOD_OP: case AML_SHIFT_LEFT_OP: case AML_SHIFT_RIGHT_OP: /* * For the non-commutative operators, we can convert to a * compound statement only if the target is the same as the * first operand. * * Subtract (A, B, A) --> A -= B * Subtract (B, A, A) --> A = (B - A) */ if ((AcpiDmIsTargetAnOperand (Target, Argument1, TRUE))) { Target->Common.OperatorSymbol = AcpiDmGetCompoundSymbol (Op->Common.AmlOpcode); /* Convert operator to compound assignment */ Op->Common.DisasmFlags |= ACPI_PARSEOP_COMPOUND_ASSIGNMENT; Argument1->Common.OperatorSymbol = NULL; return (TRUE); } break; default: break; } /* * If we are within a C-style expression, emit an extra open * paren. Implemented by examining the parent op. */ switch (Op->Common.Parent->Common.AmlOpcode) { case AML_ADD_OP: case AML_SUBTRACT_OP: case AML_MULTIPLY_OP: case AML_DIVIDE_OP: case AML_MOD_OP: case AML_SHIFT_LEFT_OP: case AML_SHIFT_RIGHT_OP: case AML_BIT_AND_OP: case AML_BIT_OR_OP: case AML_BIT_XOR_OP: case AML_LOGICAL_AND_OP: case AML_LOGICAL_EQUAL_OP: case AML_LOGICAL_GREATER_OP: case AML_LOGICAL_LESS_OP: case AML_LOGICAL_OR_OP: Op->Common.DisasmFlags |= ACPI_PARSEOP_ASSIGNMENT; AcpiOsPrintf ("("); break; default: break; } /* Normal output for ASL/AML operators with a target operand */ Target->Common.OperatorSymbol = " = ("; return (TRUE); /* Binary operators, no parens */ case AML_DECREMENT_OP: case AML_INCREMENT_OP: return (TRUE); case AML_INDEX_OP: /* Target is optional, 3rd operand */ Target = Argument2->Common.Next; if (AcpiDmIsValidTarget (Target)) { AcpiDmPromoteTarget (Op, Target); if (!Target->Common.OperatorSymbol) { Target->Common.OperatorSymbol = " = "; } } return (TRUE); case AML_STORE_OP: /* * For Store, the Target is the 2nd operand. We know the target * is valid, because it is not optional. * * Ignore any optimizations/folding if flag is set. * Used for iASL/disassembler test suite only. */ if (AcpiDmIsOptimizationIgnored (Op, Argument1)) { return (FALSE); } /* * Perform conversion. * In the parse tree, simply swap the target with the * source so that the target is processed first. */ Target = Argument1->Common.Next; if (!Target) { return (FALSE); } AcpiDmPromoteTarget (Op, Target); if (!Target->Common.OperatorSymbol) { Target->Common.OperatorSymbol = " = "; } return (TRUE); case AML_BIT_NOT_OP: /* Target is optional, 2nd operand */ Target = Argument1->Common.Next; if (!Target) { return (FALSE); } if (AcpiDmIsValidTarget (Target)) { /* Valid target, not a placeholder */ AcpiDmPromoteTarget (Op, Target); Target->Common.OperatorSymbol = " = ~"; } else { /* No target. Emit this prefix operator immediately */ AcpiOsPrintf ("~"); } return (TRUE); default: break; } /* All other operators, emit an open paren */ AcpiOsPrintf ("("); return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiDmIsOptimizationIgnored * * PARAMETERS: StoreOp - Store operator parse object * StoreArgument - Target associate with the Op * * RETURN: TRUE if this Store operator should not be converted/removed. * * DESCRIPTION: The following function implements "Do not optimize if a * store is immediately followed by a math/bit operator that * has no target". * * Function is ignored if DoDisassemblerOptimizations is TRUE. * This is the default, ignore this function. * * Disables these types of optimizations, and simply emits * legacy ASL code: * Store (Add (INT1, 4), INT2) --> Add (INT1, 4, INT2) * --> INT2 = INT1 + 4 * * Store (Not (INT1), INT2) --> Not (INT1, INT2) * --> INT2 = ~INT1 * * Used only for the ASL test suite. For the test suite, we * don't want to perform some optimizations to ensure binary * compatibility with the generation of the legacy ASL->AML. * In other words, for all test modules we want exactly: * (ASL+ -> AML) == (ASL- -> AML) * ******************************************************************************/ static BOOLEAN AcpiDmIsOptimizationIgnored ( ACPI_PARSE_OBJECT *StoreOp, ACPI_PARSE_OBJECT *StoreArgument) { ACPI_PARSE_OBJECT *Argument1; ACPI_PARSE_OBJECT *Argument2; ACPI_PARSE_OBJECT *Target; /* No optimizations/folding for the typical case */ if (AcpiGbl_DoDisassemblerOptimizations) { return (FALSE); } /* * Only a small subset of ASL/AML operators can be optimized. * Can only optimize/fold if there is no target (or targets) * specified for the operator. And of course, the operator * is surrounded by a Store() operator. */ switch (StoreArgument->Common.AmlOpcode) { case AML_ADD_OP: case AML_SUBTRACT_OP: case AML_MULTIPLY_OP: case AML_MOD_OP: case AML_SHIFT_LEFT_OP: case AML_SHIFT_RIGHT_OP: case AML_BIT_AND_OP: case AML_BIT_OR_OP: case AML_BIT_XOR_OP: case AML_INDEX_OP: /* These operators have two arguments and one target */ Argument1 = StoreArgument->Common.Value.Arg; Argument2 = Argument1->Common.Next; Target = Argument2->Common.Next; if (!AcpiDmIsValidTarget (Target)) { StoreOp->Common.DisasmFlags |= ACPI_PARSEOP_LEGACY_ASL_ONLY; return (TRUE); } break; case AML_DIVIDE_OP: /* This operator has two arguments and two targets */ Argument1 = StoreArgument->Common.Value.Arg; Argument2 = Argument1->Common.Next; Target = Argument2->Common.Next; if (!AcpiDmIsValidTarget (Target) || !AcpiDmIsValidTarget (Target->Common.Next)) { StoreOp->Common.DisasmFlags |= ACPI_PARSEOP_LEGACY_ASL_ONLY; return (TRUE); } break; case AML_BIT_NOT_OP: /* This operator has one operand and one target */ Argument1 = StoreArgument->Common.Value.Arg; Target = Argument1->Common.Next; if (!AcpiDmIsValidTarget (Target)) { StoreOp->Common.DisasmFlags |= ACPI_PARSEOP_LEGACY_ASL_ONLY; return (TRUE); } break; default: break; } return (FALSE); } /******************************************************************************* * * FUNCTION: AcpiDmCloseOperator * * PARAMETERS: Op - Current parse object * * RETURN: None * * DESCRIPTION: Closes an operator by adding a closing parentheses if and * when necessary. Called during ascending phase of the * parse tree walk. * ******************************************************************************/ void AcpiDmCloseOperator ( ACPI_PARSE_OBJECT *Op) { /* Always emit paren if ASL+ disassembly disabled */ if (!AcpiGbl_CstyleDisassembly) { AcpiOsPrintf (")"); ASL_CV_PRINT_ONE_COMMENT (Op, AML_COMMENT_END_NODE, NULL, 0); return; } if (Op->Common.DisasmFlags & ACPI_PARSEOP_LEGACY_ASL_ONLY) { AcpiOsPrintf (")"); ASL_CV_PRINT_ONE_COMMENT (Op, AML_COMMENT_END_NODE, NULL, 0); return; } /* Check if we need to add an additional closing paren */ switch (Op->Common.AmlOpcode) { case AML_ADD_OP: case AML_SUBTRACT_OP: case AML_MULTIPLY_OP: case AML_DIVIDE_OP: case AML_MOD_OP: case AML_SHIFT_LEFT_OP: case AML_SHIFT_RIGHT_OP: case AML_BIT_AND_OP: case AML_BIT_OR_OP: case AML_BIT_XOR_OP: case AML_LOGICAL_AND_OP: case AML_LOGICAL_EQUAL_OP: case AML_LOGICAL_GREATER_OP: case AML_LOGICAL_LESS_OP: case AML_LOGICAL_OR_OP: /* Emit paren only if this is not a compound assignment */ if (Op->Common.DisasmFlags & ACPI_PARSEOP_COMPOUND_ASSIGNMENT) { ASL_CV_PRINT_ONE_COMMENT (Op, AML_COMMENT_END_NODE, NULL, 0); return; } /* Emit extra close paren for assignment within an expression */ if (Op->Common.DisasmFlags & ACPI_PARSEOP_ASSIGNMENT) { AcpiOsPrintf (")"); } break; case AML_INDEX_OP: /* This is case for unsupported Index() source constants */ if (Op->Common.DisasmFlags & ACPI_PARSEOP_CLOSING_PAREN) { AcpiOsPrintf (")"); } ASL_CV_PRINT_ONE_COMMENT (Op, AML_COMMENT_END_NODE, NULL, 0); return; /* No need for parens for these */ case AML_DECREMENT_OP: case AML_INCREMENT_OP: case AML_LOGICAL_NOT_OP: case AML_BIT_NOT_OP: case AML_STORE_OP: ASL_CV_PRINT_ONE_COMMENT (Op, AML_COMMENT_END_NODE, NULL, 0); return; default: /* Always emit paren for non-ASL+ operators */ break; } AcpiOsPrintf (")"); ASL_CV_PRINT_ONE_COMMENT (Op, AML_COMMENT_END_NODE, NULL, 0); return; } /******************************************************************************* * * FUNCTION: AcpiDmGetCompoundSymbol * * PARAMETERS: AslOpcode * * RETURN: String containing the compound assignment symbol * * DESCRIPTION: Detect opcodes that can be converted to compound assignment, * return the appropriate operator string. * ******************************************************************************/ static char * AcpiDmGetCompoundSymbol ( UINT16 AmlOpcode) { char *Symbol; switch (AmlOpcode) { case AML_ADD_OP: Symbol = " += "; break; case AML_SUBTRACT_OP: Symbol = " -= "; break; case AML_MULTIPLY_OP: Symbol = " *= "; break; case AML_DIVIDE_OP: Symbol = " /= "; break; case AML_MOD_OP: Symbol = " %= "; break; case AML_SHIFT_LEFT_OP: Symbol = " <<= "; break; case AML_SHIFT_RIGHT_OP: Symbol = " >>= "; break; case AML_BIT_AND_OP: Symbol = " &= "; break; case AML_BIT_OR_OP: Symbol = " |= "; break; case AML_BIT_XOR_OP: Symbol = " ^= "; break; default: /* No operator string for all other opcodes */ return (NULL); } return (Symbol); } /******************************************************************************* * * FUNCTION: AcpiDmPromoteTarget * * PARAMETERS: Op - Operator parse object * Target - Target associate with the Op * * RETURN: None * * DESCRIPTION: Transform the parse tree by moving the target up to the first * child of the Op. * ******************************************************************************/ static void AcpiDmPromoteTarget ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *Target) { ACPI_PARSE_OBJECT *Child; /* Link target directly to the Op as first child */ Child = Op->Common.Value.Arg; Op->Common.Value.Arg = Target; Target->Common.Next = Child; /* Find the last peer, it is linked to the target. Unlink it. */ while (Child->Common.Next != Target) { Child = Child->Common.Next; } Child->Common.Next = NULL; } /******************************************************************************* * * FUNCTION: AcpiDmIsValidTarget * * PARAMETERS: Target - Target Op from the parse tree * * RETURN: TRUE if the Target is real. FALSE if it is just a placeholder * Op that was inserted by the parser. * * DESCRIPTION: Determine if a Target Op is a placeholder Op or a real Target. * In other words, determine if the optional target is used or * not. Note: If Target is NULL, something is seriously wrong, * probably with the parse tree. * ******************************************************************************/ static BOOLEAN AcpiDmIsValidTarget ( ACPI_PARSE_OBJECT *Target) { if (!Target) { return (FALSE); } if ((Target->Common.AmlOpcode == AML_INT_NAMEPATH_OP) && (Target->Common.Value.Arg == NULL)) { return (FALSE); } return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiDmIsTargetAnOperand * * PARAMETERS: Target - Target associated with the expression * Operand - An operand associated with expression * * RETURN: TRUE if expression can be converted to a compound assignment. * FALSE otherwise. * * DESCRIPTION: Determine if the Target duplicates the operand, in order to * detect if the expression can be converted to a compound * assignment. (+=, *=, etc.) * ******************************************************************************/ static BOOLEAN AcpiDmIsTargetAnOperand ( ACPI_PARSE_OBJECT *Target, ACPI_PARSE_OBJECT *Operand, BOOLEAN TopLevel) { const ACPI_OPCODE_INFO *OpInfo; BOOLEAN Same; /* * Opcodes must match. Note: ignoring the difference between nameseg * and namepath for now. May be needed later. */ if (Target->Common.AmlOpcode != Operand->Common.AmlOpcode) { return (FALSE); } /* Nodes should match, even if they are NULL */ if (Target->Common.Node != Operand->Common.Node) { return (FALSE); } /* Determine if a child exists */ OpInfo = AcpiPsGetOpcodeInfo (Operand->Common.AmlOpcode); if (OpInfo->Flags & AML_HAS_ARGS) { Same = AcpiDmIsTargetAnOperand (Target->Common.Value.Arg, Operand->Common.Value.Arg, FALSE); if (!Same) { return (FALSE); } } /* Check the next peer, as long as we are not at the top level */ if ((!TopLevel) && Target->Common.Next) { Same = AcpiDmIsTargetAnOperand (Target->Common.Next, Operand->Common.Next, FALSE); if (!Same) { return (FALSE); } } /* Suppress the duplicate operand at the top-level */ if (TopLevel) { Operand->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; } return (TRUE); } acpica-unix-20250404/source/components/disassembler/dmwalk.c0000775000175000017500000010013514773714132023326 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmwalk - AML disassembly tree walk * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdebug.h" #include "acconvert.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dmwalk") /* Stub for non-compiler code */ #ifndef ACPI_ASL_COMPILER void AcpiDmEmitExternals ( void) { return; } void AcpiDmEmitExternal ( ACPI_PARSE_OBJECT *NameOp, ACPI_PARSE_OBJECT *TypeOp) { return; } #endif /* Local prototypes */ static ACPI_STATUS AcpiDmDescendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS AcpiDmAscendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); /******************************************************************************* * * FUNCTION: AcpiDmDisassemble * * PARAMETERS: WalkState - Current state * Origin - Starting object * NumOpcodes - Max number of opcodes to be displayed * * RETURN: None * * DESCRIPTION: Disassemble parser object and its children. This is the * main entry point of the disassembler. * ******************************************************************************/ void AcpiDmDisassemble ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Origin, UINT32 NumOpcodes) { ACPI_PARSE_OBJECT *Op = Origin; ACPI_OP_WALK_INFO Info; if (!Op) { return; } memset (&Info, 0, sizeof (ACPI_OP_WALK_INFO)); Info.WalkState = WalkState; Info.StartAml = Op->Common.Aml - sizeof (ACPI_TABLE_HEADER); Info.AmlOffset = Op->Common.Aml - Info.StartAml; AcpiDmWalkParseTree (Op, AcpiDmDescendingOp, AcpiDmAscendingOp, &Info); return; } /******************************************************************************* * * FUNCTION: AcpiDmWalkParseTree * * PARAMETERS: Op - Root Op object * DescendingCallback - Called during tree descent * AscendingCallback - Called during tree ascent * Context - To be passed to the callbacks * * RETURN: Status from callback(s) * * DESCRIPTION: Walk the entire parse tree. * ******************************************************************************/ void AcpiDmWalkParseTree ( ACPI_PARSE_OBJECT *Op, ASL_WALK_CALLBACK DescendingCallback, ASL_WALK_CALLBACK AscendingCallback, void *Context) { BOOLEAN NodePreviouslyVisited; ACPI_PARSE_OBJECT *StartOp = Op; ACPI_STATUS Status; ACPI_PARSE_OBJECT *Next; ACPI_OP_WALK_INFO *Info = Context; Info->Level = 0; NodePreviouslyVisited = FALSE; while (Op) { if (NodePreviouslyVisited) { if (AscendingCallback) { Status = AscendingCallback (Op, Info->Level, Context); if (ACPI_FAILURE (Status)) { return; } } } else { /* Let the callback process the node */ Status = DescendingCallback (Op, Info->Level, Context); if (ACPI_SUCCESS (Status)) { /* Visit children first, once */ Next = AcpiPsGetArg (Op, 0); if (Next) { Info->Level++; Op = Next; continue; } } else if (Status != AE_CTRL_DEPTH) { /* Exit immediately on any error */ return; } } /* Terminate walk at start op */ if (Op == StartOp) { break; } /* No more children, re-visit this node */ if (!NodePreviouslyVisited) { NodePreviouslyVisited = TRUE; continue; } /* No more children, visit peers */ if (Op->Common.Next) { Op = Op->Common.Next; NodePreviouslyVisited = FALSE; } else { /* No peers, re-visit parent */ if (Info->Level != 0 ) { Info->Level--; } Op = Op->Common.Parent; NodePreviouslyVisited = TRUE; } } /* If we get here, the walk completed with no errors */ return; } /******************************************************************************* * * FUNCTION: AcpiDmBlockType * * PARAMETERS: Op - Object to be examined * * RETURN: BlockType - not a block, parens, braces, or even both. * * DESCRIPTION: Type of block for this op (parens or braces) * ******************************************************************************/ UINT32 AcpiDmBlockType ( ACPI_PARSE_OBJECT *Op) { const ACPI_OPCODE_INFO *OpInfo; if (!Op) { return (BLOCK_NONE); } switch (Op->Common.AmlOpcode) { case AML_ELSE_OP: return (BLOCK_BRACE); case AML_METHOD_OP: case AML_DEVICE_OP: case AML_SCOPE_OP: case AML_PROCESSOR_OP: case AML_POWER_RESOURCE_OP: case AML_THERMAL_ZONE_OP: case AML_IF_OP: case AML_WHILE_OP: case AML_FIELD_OP: case AML_INDEX_FIELD_OP: case AML_BANK_FIELD_OP: return (BLOCK_PAREN | BLOCK_BRACE); case AML_BUFFER_OP: if ((Op->Common.DisasmOpcode == ACPI_DASM_UNICODE) || (Op->Common.DisasmOpcode == ACPI_DASM_UUID) || (Op->Common.DisasmOpcode == ACPI_DASM_PLD_METHOD)) { return (BLOCK_NONE); } ACPI_FALLTHROUGH; case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: return (BLOCK_PAREN | BLOCK_BRACE); case AML_EVENT_OP: return (BLOCK_PAREN); case AML_INT_METHODCALL_OP: if (Op->Common.Parent && ((Op->Common.Parent->Common.AmlOpcode == AML_PACKAGE_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP))) { /* This is a reference to a method, not an invocation */ return (BLOCK_NONE); } ACPI_FALLTHROUGH; default: OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (OpInfo->Flags & AML_HAS_ARGS) { return (BLOCK_PAREN); } return (BLOCK_NONE); } } /******************************************************************************* * * FUNCTION: AcpiDmListType * * PARAMETERS: Op - Object to be examined * * RETURN: ListType - has commas or not. * * DESCRIPTION: Type of block for this op (parens or braces) * ******************************************************************************/ UINT32 AcpiDmListType ( ACPI_PARSE_OBJECT *Op) { const ACPI_OPCODE_INFO *OpInfo; if (!Op) { return (BLOCK_NONE); } switch (Op->Common.AmlOpcode) { case AML_ELSE_OP: case AML_METHOD_OP: case AML_DEVICE_OP: case AML_SCOPE_OP: case AML_POWER_RESOURCE_OP: case AML_PROCESSOR_OP: case AML_THERMAL_ZONE_OP: case AML_IF_OP: case AML_WHILE_OP: case AML_FIELD_OP: case AML_INDEX_FIELD_OP: case AML_BANK_FIELD_OP: return (BLOCK_NONE); case AML_BUFFER_OP: case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: return (BLOCK_COMMA_LIST); default: OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (OpInfo->Flags & AML_HAS_ARGS) { return (BLOCK_COMMA_LIST); } return (BLOCK_NONE); } } /******************************************************************************* * * FUNCTION: AcpiDmDescendingOp * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: First visitation of a parse object during tree descent. * Decode opcode name and begin parameter list(s), if any. * ******************************************************************************/ static ACPI_STATUS AcpiDmDescendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_OP_WALK_INFO *Info = Context; const ACPI_OPCODE_INFO *OpInfo; UINT32 Name; ACPI_PARSE_OBJECT *NextOp; ACPI_PARSE_OBJECT *NextOp2; UINT32 AmlOffset; /* Determine which file this parse node is contained in. */ if (AcpiGbl_CaptureComments) { ASL_CV_LABEL_FILENODE (Op); if (Level != 0 && ASL_CV_FILE_HAS_SWITCHED (Op)) { ASL_CV_SWITCH_FILES (Level, Op); } /* If this parse node has regular comments, print them here. */ ASL_CV_PRINT_ONE_COMMENT (Op, AML_COMMENT_STANDARD, NULL, Level); } OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); /* Listing support to dump the AML code after the ASL statement */ if (AcpiGbl_DmOpt_Listing) { /* We only care about these classes of objects */ if ((OpInfo->Class == AML_CLASS_NAMED_OBJECT) || (OpInfo->Class == AML_CLASS_CONTROL) || (OpInfo->Class == AML_CLASS_CREATE) || ((OpInfo->Class == AML_CLASS_EXECUTE) && (!Op->Common.Next))) { if (AcpiGbl_DmOpt_Listing && Info->PreviousAml) { /* Dump the AML byte code for the previous Op */ if (Op->Common.Aml > Info->PreviousAml) { AcpiOsPrintf ("\n"); AcpiUtDumpBuffer ( (Info->StartAml + Info->AmlOffset), (Op->Common.Aml - Info->PreviousAml), DB_BYTE_DISPLAY, Info->AmlOffset); AcpiOsPrintf ("\n"); } Info->AmlOffset = (Op->Common.Aml - Info->StartAml); } Info->PreviousAml = Op->Common.Aml; } } if (Op->Common.DisasmFlags & ACPI_PARSEOP_IGNORE) { /* Ignore this op -- it was handled elsewhere */ return (AE_CTRL_DEPTH); } if (Op->Common.DisasmOpcode == ACPI_DASM_IGNORE_SINGLE) { /* Ignore this op, but not it's children */ return (AE_OK); } if (Op->Common.AmlOpcode == AML_IF_OP) { NextOp = AcpiPsGetDepthNext (NULL, Op); if (NextOp) { NextOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; /* Don't emit the actual embedded externals unless asked */ if (!AcpiGbl_DmEmitExternalOpcodes) { /* * A Zero predicate indicates the possibility of one or more * External() opcodes within the If() block. */ if (NextOp->Common.AmlOpcode == AML_ZERO_OP) { NextOp2 = NextOp->Common.Next; if (NextOp2 && (NextOp2->Common.AmlOpcode == AML_EXTERNAL_OP)) { /* Ignore the If 0 block and all children */ Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; return (AE_CTRL_DEPTH); } } } } } /* Level 0 is at the Definition Block level */ if (Level == 0) { /* In verbose mode, print the AML offset, opcode and depth count */ if (Info->WalkState) { AmlOffset = (UINT32) ACPI_PTR_DIFF (Op->Common.Aml, Info->WalkState->ParserState.AmlStart); if (AcpiGbl_DmOpt_Verbose) { if (AcpiGbl_CmSingleStep) { AcpiOsPrintf ("%5.5X/%4.4X: ", AmlOffset, (UINT32) Op->Common.AmlOpcode); } else { AcpiOsPrintf ("AML Offset %5.5X, Opcode %4.4X: ", AmlOffset, (UINT32) Op->Common.AmlOpcode); } } } if (Op->Common.AmlOpcode == AML_SCOPE_OP) { /* This is the beginning of the Definition Block */ AcpiOsPrintf ("{\n"); /* Emit all External() declarations here */ if (!AcpiGbl_DmEmitExternalOpcodes) { AcpiDmEmitExternals (); } return (AE_OK); } } else if ((AcpiDmBlockType (Op->Common.Parent) & BLOCK_BRACE) && (!(Op->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST)) && (!(Op->Common.DisasmFlags & ACPI_PARSEOP_ELSEIF)) && (Op->Common.AmlOpcode != AML_INT_BYTELIST_OP)) { /* * This is a first-level element of a term list, * indent a new line */ switch (Op->Common.AmlOpcode) { case AML_NOOP_OP: /* * Optionally just ignore this opcode. Some tables use * NoOp opcodes for "padding" out packages that the BIOS * changes dynamically. This can leave hundreds or * thousands of NoOp opcodes that if disassembled, * cannot be compiled because they are syntactically * incorrect. */ if (AcpiGbl_IgnoreNoopOperator) { Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; return (AE_OK); } ACPI_FALLTHROUGH; default: AcpiDmIndent (Level); break; } Info->LastLevel = Level; Info->Count = 0; } /* * This is an inexpensive mechanism to try and keep lines from getting * too long. When the limit is hit, start a new line at the previous * indent plus one. A better but more expensive mechanism would be to * keep track of the current column. */ Info->Count++; if (Info->Count /* +Info->LastLevel */ > 12) { Info->Count = 0; AcpiOsPrintf ("\n"); AcpiDmIndent (Info->LastLevel + 1); } /* If ASL+ is enabled, check for a C-style operator */ if (AcpiDmCheckForSymbolicOpcode (Op, Info)) { return (AE_OK); } /* Print the opcode name */ AcpiDmDisassembleOneOp (NULL, Info, Op); if ((Op->Common.DisasmOpcode == ACPI_DASM_LNOT_PREFIX) || (Op->Common.AmlOpcode == AML_INT_CONNECTION_OP)) { return (AE_OK); } if ((Op->Common.AmlOpcode == AML_NAME_OP) || (Op->Common.AmlOpcode == AML_RETURN_OP)) { Info->Level--; } if (Op->Common.AmlOpcode == AML_EXTERNAL_OP) { Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; return (AE_CTRL_DEPTH); } /* Start the opcode argument list if necessary */ if ((OpInfo->Flags & AML_HAS_ARGS) || (Op->Common.AmlOpcode == AML_EVENT_OP)) { /* This opcode has an argument list */ if (AcpiDmBlockType (Op) & BLOCK_PAREN) { AcpiOsPrintf (" ("); if (!(AcpiDmBlockType (Op) & BLOCK_BRACE)) { ASL_CV_PRINT_ONE_COMMENT (Op, AMLCOMMENT_INLINE, " ", 0); } } /* If this is a named opcode, print the associated name value */ if (OpInfo->Flags & AML_NAMED) { switch (Op->Common.AmlOpcode) { case AML_ALIAS_OP: NextOp = AcpiPsGetDepthNext (NULL, Op); NextOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; AcpiDmNamestring (NextOp->Common.Value.Name); AcpiOsPrintf (", "); ACPI_FALLTHROUGH; default: Name = AcpiPsGetName (Op); if (Op->Named.Path) { AcpiDmNamestring (Op->Named.Path); } else { AcpiDmDumpName (Name); } if (Op->Common.AmlOpcode != AML_INT_NAMEDFIELD_OP) { if (AcpiGbl_DmOpt_Verbose) { (void) AcpiPsDisplayObjectPathname (NULL, Op); } } break; } switch (Op->Common.AmlOpcode) { case AML_METHOD_OP: AcpiDmMethodFlags (Op); ASL_CV_CLOSE_PAREN (Op, Level); /* Emit description comment for Method() with a predefined ACPI name */ AcpiDmPredefinedDescription (Op); break; case AML_NAME_OP: /* Check for _HID and related EISAID() */ AcpiDmCheckForHardwareId (Op); AcpiOsPrintf (", "); ASL_CV_PRINT_ONE_COMMENT (Op, AML_NAMECOMMENT, NULL, 0); break; case AML_REGION_OP: AcpiDmRegionFlags (Op); break; case AML_POWER_RESOURCE_OP: /* Mark the next two Ops as part of the parameter list */ AcpiOsPrintf (", "); NextOp = AcpiPsGetDepthNext (NULL, Op); NextOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; NextOp = NextOp->Common.Next; NextOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; return (AE_OK); case AML_PROCESSOR_OP: /* Mark the next three Ops as part of the parameter list */ AcpiOsPrintf (", "); NextOp = AcpiPsGetDepthNext (NULL, Op); NextOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; NextOp = NextOp->Common.Next; NextOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; NextOp = NextOp->Common.Next; NextOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; return (AE_OK); case AML_MUTEX_OP: case AML_DATA_REGION_OP: AcpiOsPrintf (", "); return (AE_OK); case AML_EVENT_OP: case AML_ALIAS_OP: return (AE_OK); case AML_SCOPE_OP: case AML_DEVICE_OP: case AML_THERMAL_ZONE_OP: ASL_CV_CLOSE_PAREN (Op, Level); break; default: AcpiOsPrintf ("*** Unhandled named opcode %X\n", Op->Common.AmlOpcode); break; } } else switch (Op->Common.AmlOpcode) { case AML_FIELD_OP: case AML_BANK_FIELD_OP: case AML_INDEX_FIELD_OP: Info->BitOffset = 0; /* Name of the parent OperationRegion */ NextOp = AcpiPsGetDepthNext (NULL, Op); AcpiDmNamestring (NextOp->Common.Value.Name); AcpiOsPrintf (", "); NextOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; switch (Op->Common.AmlOpcode) { case AML_BANK_FIELD_OP: /* Namestring - Bank Name */ NextOp = AcpiPsGetDepthNext (NULL, NextOp); AcpiDmNamestring (NextOp->Common.Value.Name); NextOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; AcpiOsPrintf (", "); /* * Bank Value. This is a TermArg in the middle of the parameter * list, must handle it here. * * Disassemble the TermArg parse tree. ACPI_PARSEOP_PARAMETER_LIST * eliminates newline in the output. */ NextOp = NextOp->Common.Next; Info->Flags = ACPI_PARSEOP_PARAMETER_LIST; AcpiDmWalkParseTree (NextOp, AcpiDmDescendingOp, AcpiDmAscendingOp, Info); Info->Flags = 0; Info->Level = Level; NextOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; AcpiOsPrintf (", "); break; case AML_INDEX_FIELD_OP: /* Namestring - Data Name */ NextOp = AcpiPsGetDepthNext (NULL, NextOp); AcpiDmNamestring (NextOp->Common.Value.Name); AcpiOsPrintf (", "); NextOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; break; default: break; } AcpiDmFieldFlags (NextOp); break; case AML_BUFFER_OP: /* The next op is the size parameter */ NextOp = AcpiPsGetDepthNext (NULL, Op); if (!NextOp) { /* Single-step support */ return (AE_OK); } if (Op->Common.DisasmOpcode == ACPI_DASM_RESOURCE) { /* * We have a resource list. Don't need to output * the buffer size Op. Open up a new block */ NextOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; ASL_CV_CLOSE_PAREN (Op, Level); if (Op->Asl.Parent->Common.AmlOpcode == AML_NAME_OP) { /* * Emit description comment showing the full ACPI name * of the ResourceTemplate only if it was defined using a * Name statement. */ AcpiDmPredefinedDescription (Op->Asl.Parent); } AcpiOsPrintf ("\n"); AcpiDmIndent (Info->Level); AcpiOsPrintf ("{\n"); return (AE_OK); } /* Normal Buffer, mark size as in the parameter list */ NextOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; return (AE_OK); case AML_IF_OP: case AML_VARIABLE_PACKAGE_OP: case AML_WHILE_OP: /* The next op is the size or predicate parameter */ NextOp = AcpiPsGetDepthNext (NULL, Op); if (NextOp) { NextOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; } return (AE_OK); case AML_PACKAGE_OP: /* The next op is the size parameter */ NextOp = AcpiPsGetDepthNext (NULL, Op); if (NextOp) { NextOp->Common.DisasmFlags |= ACPI_PARSEOP_PARAMETER_LIST; } return (AE_OK); case AML_MATCH_OP: AcpiDmMatchOp (Op); break; default: break; } if (AcpiDmBlockType (Op) & BLOCK_BRACE) { AcpiOsPrintf ("\n"); AcpiDmIndent (Level); AcpiOsPrintf ("{\n"); } } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDmAscendingOp * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Second visitation of a parse object, during ascent of parse * tree. Close out any parameter lists and complete the opcode. * ******************************************************************************/ static ACPI_STATUS AcpiDmAscendingOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_OP_WALK_INFO *Info = Context; ACPI_PARSE_OBJECT *ParentOp; /* Point the Op's filename pointer to the proper file */ if (AcpiGbl_CaptureComments) { ASL_CV_LABEL_FILENODE (Op); /* Switch the output of these files if necessary */ if (ASL_CV_FILE_HAS_SWITCHED (Op)) { ASL_CV_SWITCH_FILES (Level, Op); } } if (Op->Common.DisasmFlags & ACPI_PARSEOP_IGNORE || Op->Common.DisasmOpcode == ACPI_DASM_IGNORE_SINGLE) { /* Ignore this op -- it was handled elsewhere */ return (AE_OK); } if ((Level == 0) && (Op->Common.AmlOpcode == AML_SCOPE_OP)) { /* Indicates the end of the current descriptor block (table) */ ASL_CV_CLOSE_BRACE (Op, Level); /* Print any comments that are at the end of the file here */ if (AcpiGbl_CaptureComments && AcpiGbl_LastListHead) { AcpiOsPrintf ("\n"); ASL_CV_PRINT_ONE_COMMENT_LIST (AcpiGbl_LastListHead, 0); } AcpiOsPrintf ("\n\n"); return (AE_OK); } switch (AcpiDmBlockType (Op)) { case BLOCK_PAREN: /* Completed an op that has arguments, add closing paren if needed */ AcpiDmCloseOperator (Op); if (Op->Common.AmlOpcode == AML_NAME_OP) { /* Emit description comment for Name() with a predefined ACPI name */ AcpiDmPredefinedDescription (Op); } else { /* For Create* operators, attempt to emit resource tag description */ AcpiDmFieldPredefinedDescription (Op); } /* Decode Notify() values */ if (Op->Common.AmlOpcode == AML_NOTIFY_OP) { AcpiDmNotifyDescription (Op); } AcpiDmDisplayTargetPathname (Op); /* Could be a nested operator, check if comma required */ if (!AcpiDmCommaIfListMember (Op)) { if ((AcpiDmBlockType (Op->Common.Parent) & BLOCK_BRACE) && (!(Op->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST)) && (Op->Common.AmlOpcode != AML_INT_BYTELIST_OP)) { /* * This is a first-level element of a term list * start a new line */ if (!(Info->Flags & ACPI_PARSEOP_PARAMETER_LIST)) { AcpiOsPrintf ("\n"); } } } break; case BLOCK_BRACE: case (BLOCK_BRACE | BLOCK_PAREN): /* Completed an op that has a term list, add closing brace */ if (Op->Common.DisasmFlags & ACPI_PARSEOP_EMPTY_TERMLIST) { ASL_CV_CLOSE_BRACE (Op, Level); } else { AcpiDmIndent (Level); ASL_CV_CLOSE_BRACE (Op, Level); } AcpiDmCommaIfListMember (Op); if (AcpiDmBlockType (Op->Common.Parent) != BLOCK_PAREN) { AcpiOsPrintf ("\n"); if (!(Op->Common.DisasmFlags & ACPI_PARSEOP_EMPTY_TERMLIST)) { if ((Op->Common.AmlOpcode == AML_IF_OP) && (Op->Common.Next) && (Op->Common.Next->Common.AmlOpcode == AML_ELSE_OP)) { break; } if ((AcpiDmBlockType (Op->Common.Parent) & BLOCK_BRACE) && (!Op->Common.Next)) { break; } AcpiOsPrintf ("\n"); } } break; case BLOCK_NONE: default: /* Could be a nested operator, check if comma required */ if (!AcpiDmCommaIfListMember (Op)) { if ((AcpiDmBlockType (Op->Common.Parent) & BLOCK_BRACE) && (!(Op->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST)) && (Op->Common.AmlOpcode != AML_INT_BYTELIST_OP)) { /* * This is a first-level element of a term list * start a new line */ AcpiOsPrintf ("\n"); } } else if (Op->Common.Parent) { switch (Op->Common.Parent->Common.AmlOpcode) { case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: if (!(Op->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST)) { AcpiOsPrintf ("\n"); } break; default: break; } } break; } if (Op->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST) { if ((Op->Common.Next) && (Op->Common.Next->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST)) { return (AE_OK); } /* * The parent Op is guaranteed to be valid because of the flag * ACPI_PARSEOP_PARAMETER_LIST -- which means that this op is part of * a parameter list and thus has a valid parent. */ ParentOp = Op->Common.Parent; /* * Just completed a parameter node for something like "Buffer (param)". * Close the paren and open up the term list block with a brace. * * Switch predicates don't have a Next node but require a closing paren * and opening brace. */ if (Op->Common.Next || Op->Common.DisasmOpcode == ACPI_DASM_SWITCH_PREDICATE) { ASL_CV_CLOSE_PAREN (Op, Level); /* * Emit a description comment for a Name() operator that is a * predefined ACPI name. Must check the grandparent. */ ParentOp = ParentOp->Common.Parent; if (ParentOp && (ParentOp->Asl.AmlOpcode == AML_NAME_OP)) { AcpiDmPredefinedDescription (ParentOp); } /* Correct the indentation level for Switch and Case predicates */ if (Op->Common.DisasmOpcode == ACPI_DASM_SWITCH_PREDICATE) { --Level; } AcpiOsPrintf ("\n"); AcpiDmIndent (Level - 1); AcpiOsPrintf ("{\n"); } else { ParentOp->Common.DisasmFlags |= ACPI_PARSEOP_EMPTY_TERMLIST; ASL_CV_CLOSE_PAREN (Op, Level); AcpiOsPrintf ("{"); } } if ((Op->Common.AmlOpcode == AML_NAME_OP) || (Op->Common.AmlOpcode == AML_RETURN_OP)) { Info->Level++; } /* * For ASL+, check for and emit a C-style symbol. If valid, the * symbol string has been deferred until after the first operand */ if (AcpiGbl_CstyleDisassembly) { if (Op->Asl.OperatorSymbol) { AcpiOsPrintf ("%s", Op->Asl.OperatorSymbol); Op->Asl.OperatorSymbol = NULL; } } return (AE_OK); } acpica-unix-20250404/source/components/disassembler/dmresrcl.c0000775000175000017500000007306614773714132023676 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmresrcl.c - "Large" Resource Descriptor disassembly * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbresrcl") /* Common names for address and memory descriptors */ static const char *AcpiDmAddressNames[] = { "Granularity", "Range Minimum", "Range Maximum", "Translation Offset", "Length" }; static const char *AcpiDmMemoryNames[] = { "Range Minimum", "Range Maximum", "Alignment", "Length" }; /* Local prototypes */ static void AcpiDmSpaceFlags ( UINT8 Flags); static void AcpiDmIoFlags ( UINT8 Flags); static void AcpiDmIoFlags2 ( UINT8 SpecificFlags); static void AcpiDmMemoryFlags ( UINT8 Flags, UINT8 SpecificFlags); static void AcpiDmMemoryFlags2 ( UINT8 SpecificFlags); static void AcpiDmResourceSource ( AML_RESOURCE *Resource, ACPI_SIZE MinimumLength, UINT32 Length); static void AcpiDmAddressFields ( void *Source, UINT8 Type, UINT32 Level); static void AcpiDmAddressPrefix ( UINT8 Type); static void AcpiDmAddressCommon ( AML_RESOURCE *Resource, UINT8 Type, UINT32 Level); static void AcpiDmAddressFlags ( AML_RESOURCE *Resource); /******************************************************************************* * * FUNCTION: AcpiDmMemoryFields * * PARAMETERS: Source - Pointer to the contiguous data fields * Type - 16 or 32 (bit) * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode fields common to Memory24 and Memory32 descriptors * ******************************************************************************/ static void AcpiDmMemoryFields ( void *Source, UINT8 Type, UINT32 Level) { UINT32 i; for (i = 0; i < 4; i++) { AcpiDmIndent (Level + 1); switch (Type) { case 16: AcpiDmDumpInteger16 (ACPI_CAST_PTR (UINT16, Source)[i], AcpiDmMemoryNames[i]); break; case 32: AcpiDmDumpInteger32 (ACPI_CAST_PTR (UINT32, Source)[i], AcpiDmMemoryNames[i]); break; default: return; } } } /******************************************************************************* * * FUNCTION: AcpiDmAddressFields * * PARAMETERS: Source - Pointer to the contiguous data fields * Type - 16, 32, or 64 (bit) * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode fields common to address descriptors * ******************************************************************************/ static void AcpiDmAddressFields ( void *Source, UINT8 Type, UINT32 Level) { UINT32 i; AcpiOsPrintf ("\n"); for (i = 0; i < 5; i++) { AcpiDmIndent (Level + 1); switch (Type) { case 16: AcpiDmDumpInteger16 (ACPI_CAST_PTR (UINT16, Source)[i], AcpiDmAddressNames[i]); break; case 32: AcpiDmDumpInteger32 (ACPI_CAST_PTR (UINT32, Source)[i], AcpiDmAddressNames[i]); break; case 64: AcpiDmDumpInteger64 (ACPI_CAST_PTR (UINT64, Source)[i], AcpiDmAddressNames[i]); break; default: return; } } } /******************************************************************************* * * FUNCTION: AcpiDmAddressPrefix * * PARAMETERS: Type - Descriptor type * * RETURN: None * * DESCRIPTION: Emit name prefix representing the address descriptor type * ******************************************************************************/ static void AcpiDmAddressPrefix ( UINT8 Type) { switch (Type) { case ACPI_RESOURCE_TYPE_ADDRESS16: AcpiOsPrintf ("Word"); break; case ACPI_RESOURCE_TYPE_ADDRESS32: AcpiOsPrintf ("DWord"); break; case ACPI_RESOURCE_TYPE_ADDRESS64: AcpiOsPrintf ("QWord"); break; case ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64: AcpiOsPrintf ("Extended"); break; default: return; } } /******************************************************************************* * * FUNCTION: AcpiDmAddressCommon * * PARAMETERS: Resource - Raw AML descriptor * Type - Descriptor type * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Emit common name and flag fields common to address descriptors * ******************************************************************************/ static void AcpiDmAddressCommon ( AML_RESOURCE *Resource, UINT8 Type, UINT32 Level) { UINT8 ResourceType; UINT8 SpecificFlags; UINT8 Flags; ResourceType = Resource->Address.ResourceType; SpecificFlags = Resource->Address.SpecificFlags; Flags = Resource->Address.Flags; AcpiDmIndent (Level); /* Validate ResourceType */ if ((ResourceType > 2) && (ResourceType < 0xC0)) { AcpiOsPrintf ( "/**** Invalid Resource Type: 0x%X ****/", ResourceType); return; } /* Prefix is either Word, DWord, QWord, or Extended */ AcpiDmAddressPrefix (Type); /* Resource Types above 0xC0 are vendor-defined */ if (ResourceType > 2) { AcpiOsPrintf ("Space (0x%2.2X, ", ResourceType); AcpiDmSpaceFlags (Flags); AcpiOsPrintf (" 0x%2.2X,", SpecificFlags); return; } /* This is either a Memory, IO, or BusNumber descriptor (0,1,2) */ AcpiOsPrintf ("%s (", AcpiGbl_WordDecode [ACPI_GET_2BIT_FLAG (ResourceType)]); /* Decode the general and type-specific flags */ if (ResourceType == ACPI_MEMORY_RANGE) { AcpiDmMemoryFlags (Flags, SpecificFlags); } else /* IO range or BusNumberRange */ { AcpiDmIoFlags (Flags); if (ResourceType == ACPI_IO_RANGE) { AcpiOsPrintf (" %s,", AcpiGbl_RngDecode [ACPI_GET_2BIT_FLAG (SpecificFlags)]); } } } /******************************************************************************* * * FUNCTION: AcpiDmAddressFlags * * PARAMETERS: Resource - Raw AML descriptor * * RETURN: None * * DESCRIPTION: Emit flags common to address descriptors * ******************************************************************************/ static void AcpiDmAddressFlags ( AML_RESOURCE *Resource) { if (Resource->Address.ResourceType == ACPI_IO_RANGE) { AcpiDmIoFlags2 (Resource->Address.SpecificFlags); } else if (Resource->Address.ResourceType == ACPI_MEMORY_RANGE) { AcpiDmMemoryFlags2 (Resource->Address.SpecificFlags); } } /******************************************************************************* * * FUNCTION: AcpiDmSpaceFlags * * PARAMETERS: Flags - Flag byte to be decoded * * RETURN: None * * DESCRIPTION: Decode the flags specific to Space Address space descriptors * ******************************************************************************/ static void AcpiDmSpaceFlags ( UINT8 Flags) { AcpiOsPrintf ("%s, %s, %s, %s,", AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)], AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)], AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)], AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)]); } /******************************************************************************* * * FUNCTION: AcpiDmIoFlags * * PARAMETERS: Flags - Flag byte to be decoded * * RETURN: None * * DESCRIPTION: Decode the flags specific to IO Address space descriptors * ******************************************************************************/ static void AcpiDmIoFlags ( UINT8 Flags) { AcpiOsPrintf ("%s, %s, %s, %s,", AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)], AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)], AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)], AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)]); } /******************************************************************************* * * FUNCTION: AcpiDmIoFlags2 * * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded * * RETURN: None * * DESCRIPTION: Decode the flags specific to IO Address space descriptors * ******************************************************************************/ static void AcpiDmIoFlags2 ( UINT8 SpecificFlags) { /* _TTP */ AcpiOsPrintf (", %s", AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 4)]); /* * TRS is only used if TTP is TypeTranslation. However, the disassembler * always emits exactly what is in the AML. */ AcpiOsPrintf (", %s", AcpiGbl_TrsDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]); } /******************************************************************************* * * FUNCTION: AcpiDmMemoryFlags * * PARAMETERS: Flags - Flag byte to be decoded * SpecificFlags - "Specific" flag byte to be decoded * * RETURN: None * * DESCRIPTION: Decode flags specific to Memory Address Space descriptors * ******************************************************************************/ static void AcpiDmMemoryFlags ( UINT8 Flags, UINT8 SpecificFlags) { AcpiOsPrintf ("%s, %s, %s, %s, %s, %s,", AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Flags)], AcpiGbl_DecDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 1)], AcpiGbl_MinDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 2)], AcpiGbl_MaxDecode [ACPI_EXTRACT_1BIT_FLAG (Flags, 3)], AcpiGbl_MemDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 1)], AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (SpecificFlags)]); } /******************************************************************************* * * FUNCTION: AcpiDmMemoryFlags2 * * PARAMETERS: SpecificFlags - "Specific" flag byte to be decoded * * RETURN: None * * DESCRIPTION: Decode flags specific to Memory Address Space descriptors * ******************************************************************************/ static void AcpiDmMemoryFlags2 ( UINT8 SpecificFlags) { AcpiOsPrintf (", %s, %s", AcpiGbl_MtpDecode [ACPI_EXTRACT_2BIT_FLAG (SpecificFlags, 3)], AcpiGbl_TtpDecode [ACPI_EXTRACT_1BIT_FLAG (SpecificFlags, 5)]); } /******************************************************************************* * * FUNCTION: AcpiDmResourceSource * * PARAMETERS: Resource - Raw AML descriptor * MinimumLength - descriptor length without optional fields * ResourceLength * * RETURN: None * * DESCRIPTION: Dump optional ResourceSource fields of an address descriptor * ******************************************************************************/ static void AcpiDmResourceSource ( AML_RESOURCE *Resource, ACPI_SIZE MinimumTotalLength, UINT32 ResourceLength) { UINT8 *AmlResourceSource; UINT32 TotalLength; TotalLength = ResourceLength + sizeof (AML_RESOURCE_LARGE_HEADER); /* Check if the optional ResourceSource fields are present */ if (TotalLength <= MinimumTotalLength) { /* The two optional fields are not used */ AcpiOsPrintf (",, "); return; } /* Get a pointer to the ResourceSource */ AmlResourceSource = ACPI_ADD_PTR (UINT8, Resource, MinimumTotalLength); /* * Always emit the ResourceSourceIndex (Byte) * * NOTE: Some ASL compilers always create a 0 byte (in the AML) for the * Index even if the String does not exist. Although this is in violation * of the ACPI specification, it is very important to emit ASL code that * can be compiled back to the identical AML. There may be fields and/or * indexes into the resource template buffer that are compiled to absolute * offsets, and these will be broken if the AML length is changed. */ AcpiOsPrintf ("0x%2.2X,", (UINT32) AmlResourceSource[0]); /* Make sure that the ResourceSource string exists before dumping it */ if (TotalLength > (MinimumTotalLength + 1)) { AcpiOsPrintf (" "); AcpiUtPrintString ((char *) &AmlResourceSource[1], ACPI_UINT16_MAX); } AcpiOsPrintf (", "); } /******************************************************************************* * * FUNCTION: AcpiDmWordDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Word Address Space descriptor * ******************************************************************************/ void AcpiDmWordDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { /* Dump resource name and flags */ AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS16, Level); /* Dump the 5 contiguous WORD values */ AcpiDmAddressFields (&Resource->Address16.Granularity, 16, Level); /* The ResourceSource fields are optional */ AcpiDmIndent (Level + 1); AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS16), Length); /* Insert a descriptor name */ AcpiDmDescriptorName (); /* Type-specific flags */ AcpiDmAddressFlags (Resource); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmDwordDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a DWord Address Space descriptor * ******************************************************************************/ void AcpiDmDwordDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { /* Dump resource name and flags */ AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS32, Level); /* Dump the 5 contiguous DWORD values */ AcpiDmAddressFields (&Resource->Address32.Granularity, 32, Level); /* The ResourceSource fields are optional */ AcpiDmIndent (Level + 1); AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS32), Length); /* Insert a descriptor name */ AcpiDmDescriptorName (); /* Type-specific flags */ AcpiDmAddressFlags (Resource); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmQwordDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a QWord Address Space descriptor * ******************************************************************************/ void AcpiDmQwordDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { /* Dump resource name and flags */ AcpiDmAddressCommon (Resource, ACPI_RESOURCE_TYPE_ADDRESS64, Level); /* Dump the 5 contiguous QWORD values */ AcpiDmAddressFields (&Resource->Address64.Granularity, 64, Level); /* The ResourceSource fields are optional */ AcpiDmIndent (Level + 1); AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_ADDRESS64), Length); /* Insert a descriptor name */ AcpiDmDescriptorName (); /* Type-specific flags */ AcpiDmAddressFlags (Resource); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmExtendedDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Extended Address Space descriptor * ******************************************************************************/ void AcpiDmExtendedDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { /* Dump resource name and flags */ AcpiDmAddressCommon ( Resource, ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64, Level); /* Dump the 5 contiguous QWORD values */ AcpiDmAddressFields (&Resource->ExtAddress64.Granularity, 64, Level); /* Extra field for this descriptor only */ AcpiDmIndent (Level + 1); AcpiDmDumpInteger64 (Resource->ExtAddress64.TypeSpecific, "Type-Specific Attributes"); /* Insert a descriptor name */ AcpiDmIndent (Level + 1); AcpiDmDescriptorName (); /* Type-specific flags */ AcpiDmAddressFlags (Resource); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmMemory24Descriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Memory24 descriptor * ******************************************************************************/ void AcpiDmMemory24Descriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { /* Dump name and read/write flag */ AcpiDmIndent (Level); AcpiOsPrintf ("Memory24 (%s,\n", AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory24.Flags)]); /* Dump the 4 contiguous WORD values */ AcpiDmMemoryFields (&Resource->Memory24.Minimum, 16, Level); /* Insert a descriptor name */ AcpiDmIndent (Level + 1); AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmMemory32Descriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Memory32 descriptor * ******************************************************************************/ void AcpiDmMemory32Descriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { /* Dump name and read/write flag */ AcpiDmIndent (Level); AcpiOsPrintf ("Memory32 (%s,\n", AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->Memory32.Flags)]); /* Dump the 4 contiguous DWORD values */ AcpiDmMemoryFields (&Resource->Memory32.Minimum, 32, Level); /* Insert a descriptor name */ AcpiDmIndent (Level + 1); AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmFixedMemory32Descriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Fixed Memory32 descriptor * ******************************************************************************/ void AcpiDmFixedMemory32Descriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { /* Dump name and read/write flag */ AcpiDmIndent (Level); AcpiOsPrintf ("Memory32Fixed (%s,\n", AcpiGbl_RwDecode [ACPI_GET_1BIT_FLAG (Resource->FixedMemory32.Flags)]); AcpiDmIndent (Level + 1); AcpiDmDumpInteger32 (Resource->FixedMemory32.Address, "Address Base"); AcpiDmIndent (Level + 1); AcpiDmDumpInteger32 (Resource->FixedMemory32.AddressLength, "Address Length"); /* Insert a descriptor name */ AcpiDmIndent (Level + 1); AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmGenericRegisterDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Generic Register descriptor * ******************************************************************************/ void AcpiDmGenericRegisterDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmIndent (Level); AcpiOsPrintf ("Register ("); AcpiDmAddressSpace (Resource->GenericReg.AddressSpaceId); AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 1); AcpiDmDumpInteger8 (Resource->GenericReg.BitWidth, "Bit Width"); AcpiDmIndent (Level + 1); AcpiDmDumpInteger8 (Resource->GenericReg.BitOffset, "Bit Offset"); AcpiDmIndent (Level + 1); AcpiDmDumpInteger64 (Resource->GenericReg.Address, "Address"); /* Optional field for ACPI 3.0 */ AcpiDmIndent (Level + 1); if (Resource->GenericReg.AccessSize) { AcpiOsPrintf ("0x%2.2X, // %s\n", Resource->GenericReg.AccessSize, "Access Size"); AcpiDmIndent (Level + 1); } else { AcpiOsPrintf (","); } /* DescriptorName was added for ACPI 3.0+ */ AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmInterruptDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a extended Interrupt descriptor * ******************************************************************************/ void AcpiDmInterruptDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT32 i; AcpiDmIndent (Level); AcpiOsPrintf ("Interrupt (%s, %s, %s, %s, ", AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->ExtendedIrq.Flags)], AcpiGbl_HeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 1)], AcpiGbl_LlDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->ExtendedIrq.Flags, 2)], AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->ExtendedIrq.Flags, 3)]); /* * The ResourceSource fields are optional and appear after the interrupt * list. Must compute length based on length of the list. First xrupt * is included in the struct (reason for -1 below) */ AcpiDmResourceSource (Resource, sizeof (AML_RESOURCE_EXTENDED_IRQ) + ((UINT32) Resource->ExtendedIrq.InterruptCount - 1) * sizeof (UINT32), Resource->ExtendedIrq.ResourceLength); /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (")\n"); /* Dump the interrupt list */ AcpiDmIndent (Level); AcpiOsPrintf ("{\n"); for (i = 0; i < Resource->ExtendedIrq.InterruptCount; i++) { AcpiDmIndent (Level + 1); AcpiOsPrintf ("0x%8.8X,\n", (UINT32) Resource->ExtendedIrq.Interrupts[i]); } AcpiDmIndent (Level); AcpiOsPrintf ("}\n"); } /******************************************************************************* * * FUNCTION: AcpiDmVendorCommon * * PARAMETERS: Name - Descriptor name suffix * ByteData - Pointer to the vendor byte data * Length - Length of the byte data * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Vendor descriptor, both Large and Small * ******************************************************************************/ void AcpiDmVendorCommon ( const char *Name, UINT8 *ByteData, UINT32 Length, UINT32 Level) { /* Dump macro name */ AcpiDmIndent (Level); AcpiOsPrintf ("Vendor%s (", Name); /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (") // Length = 0x%.2X\n", Length); /* Dump the vendor bytes */ AcpiDmIndent (Level); AcpiOsPrintf ("{\n"); AcpiDmDisasmByteList (Level + 1, ByteData, Length); AcpiDmIndent (Level); AcpiOsPrintf ("}\n"); } /******************************************************************************* * * FUNCTION: AcpiDmVendorLargeDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a Vendor Large descriptor * ******************************************************************************/ void AcpiDmVendorLargeDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { AcpiDmVendorCommon ("Long ", ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_LARGE_HEADER)), Length, Level); } acpica-unix-20250404/source/components/disassembler/dmutils.c0000775000175000017500000002054014773714132023531 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmutils - AML disassembler utilities * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acdisasm.h" #include "acconvert.h" #ifdef ACPI_ASL_COMPILER #include #endif #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dmutils") /* Data used in keeping track of fields */ #if 0 const char *AcpiGbl_FENames[] = { "skip", "?access?" }; /* FE = Field Element */ #endif /* Operators for Match() */ const char *AcpiGbl_MatchOps[] = { "MTR", "MEQ", "MLE", "MLT", "MGE", "MGT" }; /* Access type decoding */ const char *AcpiGbl_AccessTypes[] = { "AnyAcc", "ByteAcc", "WordAcc", "DWordAcc", "QWordAcc", "BufferAcc", "InvalidAccType", "InvalidAccType" }; /* Lock rule decoding */ const char *AcpiGbl_LockRule[] = { "NoLock", "Lock" }; /* Update rule decoding */ const char *AcpiGbl_UpdateRules[] = { "Preserve", "WriteAsOnes", "WriteAsZeros", "InvalidUpdateRule" }; /* Strings used to decode resource descriptors */ const char *AcpiGbl_WordDecode[] = { "Memory", "IO", "BusNumber", "UnknownResourceType" }; const char *AcpiGbl_IrqDecode[] = { "IRQNoFlags", "IRQ" }; /******************************************************************************* * * FUNCTION: AcpiDmDecodeAttribute * * PARAMETERS: Attribute - Attribute field of AccessAs keyword * * RETURN: None * * DESCRIPTION: Decode the AccessAs attribute byte. (Mostly SMBus and * GenericSerialBus stuff.) * ******************************************************************************/ void AcpiDmDecodeAttribute ( UINT8 Attribute) { switch (Attribute) { case AML_FIELD_ATTRIB_QUICK: AcpiOsPrintf ("AttribQuick"); break; case AML_FIELD_ATTRIB_SEND_RECEIVE: AcpiOsPrintf ("AttribSendReceive"); break; case AML_FIELD_ATTRIB_BYTE: AcpiOsPrintf ("AttribByte"); break; case AML_FIELD_ATTRIB_WORD: AcpiOsPrintf ("AttribWord"); break; case AML_FIELD_ATTRIB_BLOCK: AcpiOsPrintf ("AttribBlock"); break; case AML_FIELD_ATTRIB_BYTES: AcpiOsPrintf ("AttribBytes"); break; case AML_FIELD_ATTRIB_PROCESS_CALL: AcpiOsPrintf ("AttribProcessCall"); break; case AML_FIELD_ATTRIB_BLOCK_PROCESS_CALL: AcpiOsPrintf ("AttribBlockProcessCall"); break; case AML_FIELD_ATTRIB_RAW_BYTES: AcpiOsPrintf ("AttribRawBytes"); break; case AML_FIELD_ATTRIB_RAW_PROCESS_BYTES: AcpiOsPrintf ("AttribRawProcessBytes"); break; default: /* A ByteConst is allowed by the grammar */ AcpiOsPrintf ("0x%2.2X", Attribute); break; } } /******************************************************************************* * * FUNCTION: AcpiDmIndent * * PARAMETERS: Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Indent 4 spaces per indentation level. * ******************************************************************************/ void AcpiDmIndent ( UINT32 Level) { if (!Level) { return; } AcpiOsPrintf ("%*.s", (Level * 4), " "); } /******************************************************************************* * * FUNCTION: AcpiDmCommaIfListMember * * PARAMETERS: Op - Current operator/operand * * RETURN: TRUE if a comma was inserted * * DESCRIPTION: Insert a comma if this Op is a member of an argument list. * ******************************************************************************/ BOOLEAN AcpiDmCommaIfListMember ( ACPI_PARSE_OBJECT *Op) { if (!Op->Common.Next) { ASL_CV_PRINT_ONE_COMMENT (Op, AMLCOMMENT_INLINE, NULL, 0); return (FALSE); } if (AcpiDmListType (Op->Common.Parent) & BLOCK_COMMA_LIST) { /* Exit if Target has been marked IGNORE */ if (Op->Common.Next->Common.DisasmFlags & ACPI_PARSEOP_IGNORE) { ASL_CV_PRINT_ONE_COMMENT (Op, AMLCOMMENT_INLINE, NULL, 0); return (FALSE); } /* Check for a NULL target operand */ if ((Op->Common.Next->Common.AmlOpcode == AML_INT_NAMEPATH_OP) && (!Op->Common.Next->Common.Value.String)) { /* * To handle the Divide() case where there are two optional * targets, look ahead one more op. If null, this null target * is the one and only target -- no comma needed. Otherwise, * we need a comma to prepare for the next target. */ if (!Op->Common.Next->Common.Next) { ASL_CV_PRINT_ONE_COMMENT (Op, AMLCOMMENT_INLINE, NULL, 0); return (FALSE); } } if ((Op->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST) && (!(Op->Common.Next->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST))) { ASL_CV_PRINT_ONE_COMMENT (Op, AMLCOMMENT_INLINE, NULL, 0); return (FALSE); } /* Emit comma only if this is not a C-style operator */ if (!Op->Common.OperatorSymbol) { AcpiOsPrintf (", "); ASL_CV_PRINT_ONE_COMMENT (Op, AMLCOMMENT_INLINE, NULL, 0); } return (TRUE); } else if ((Op->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST) && (Op->Common.Next->Common.DisasmFlags & ACPI_PARSEOP_PARAMETER_LIST)) { AcpiOsPrintf (", "); ASL_CV_PRINT_ONE_COMMENT (Op, AMLCOMMENT_INLINE, NULL, 0); return (TRUE); } return (FALSE); } /******************************************************************************* * * FUNCTION: AcpiDmCommaIfFieldMember * * PARAMETERS: Op - Current operator/operand * * RETURN: None * * DESCRIPTION: Insert a comma if this Op is a member of a Field argument list. * ******************************************************************************/ void AcpiDmCommaIfFieldMember ( ACPI_PARSE_OBJECT *Op) { if (Op->Common.Next) { AcpiOsPrintf (", "); } } acpica-unix-20250404/source/components/disassembler/dmresrcl2.c0000775000175000017500000011473214773714132023754 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmresrcl2.c - "Large" Resource Descriptor disassembly (#2) * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdisasm.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbresrcl2") /* Local prototypes */ static void AcpiDmCsi2SerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); static void AcpiDmI2cSerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); static void AcpiDmSpiSerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); static void AcpiDmUartSerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level); static void AcpiDmGpioCommon ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Level); static void AcpiDmDumpRawDataBuffer ( UINT8 *Buffer, UINT32 Length, UINT32 Level); /* Dispatch table for the serial bus descriptors */ static ACPI_RESOURCE_HANDLER SerialBusResourceDispatch [] = { NULL, AcpiDmI2cSerialBusDescriptor, AcpiDmSpiSerialBusDescriptor, AcpiDmUartSerialBusDescriptor, AcpiDmCsi2SerialBusDescriptor }; /******************************************************************************* * * FUNCTION: AcpiDmDumpRawDataBuffer * * PARAMETERS: Buffer - Pointer to the data bytes * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Dump a data buffer as a RawDataBuffer() object. Used for * vendor data bytes. * ******************************************************************************/ static void AcpiDmDumpRawDataBuffer ( UINT8 *Buffer, UINT32 Length, UINT32 Level) { UINT32 Index; UINT32 i; UINT32 j; if (!Length) { return; } AcpiOsPrintf ("RawDataBuffer (0x%.2X) // Vendor Data", Length); AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 1); AcpiOsPrintf ("{\n"); AcpiDmIndent (Level + 2); for (i = 0; i < Length;) { for (j = 0; j < 8; j++) { Index = i + j; if (Index >= Length) { goto Finish; } AcpiOsPrintf ("0x%2.2X", Buffer[Index]); if ((Index + 1) >= Length) { goto Finish; } AcpiOsPrintf (", "); } AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 2); i += 8; } Finish: AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 1); AcpiOsPrintf ("}"); } /******************************************************************************* * * FUNCTION: AcpiDmGpioCommon * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode common parts of a GPIO Interrupt descriptor * ******************************************************************************/ static void AcpiDmGpioCommon ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Level) { UINT16 *PinList; UINT8 *VendorData; char *DeviceName = NULL; UINT32 PinCount; UINT32 i; /* ResourceSource, ResourceSourceIndex, ResourceType */ AcpiDmIndent (Level + 1); if (Resource->Gpio.ResSourceOffset) { DeviceName = ACPI_ADD_PTR (char, Resource, Resource->Gpio.ResSourceOffset), AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); } AcpiOsPrintf (", "); AcpiOsPrintf ("0x%2.2X, ", Resource->Gpio.ResSourceIndex); AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->Gpio.Flags)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (","); /* Dump the vendor data */ if (Resource->Gpio.VendorOffset) { AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 1); VendorData = ACPI_ADD_PTR (UINT8, Resource, Resource->Gpio.VendorOffset); AcpiDmDumpRawDataBuffer (VendorData, Resource->Gpio.VendorLength, Level); } AcpiOsPrintf (")\n"); /* Dump the interrupt list */ AcpiDmIndent (Level + 1); AcpiOsPrintf ("{ // Pin list\n"); PinCount = ((UINT32) (Resource->Gpio.ResSourceOffset - Resource->Gpio.PinTableOffset)) / sizeof (UINT16); PinList = (UINT16 *) ACPI_ADD_PTR (char, Resource, Resource->Gpio.PinTableOffset); for (i = 0; i < PinCount; i++) { AcpiDmIndent (Level + 2); AcpiOsPrintf ("0x%4.4X%s\n", PinList[i], ((i + 1) < PinCount) ? "," : ""); } AcpiDmIndent (Level + 1); AcpiOsPrintf ("}\n"); MpSaveGpioInfo (Info->MappingOp, Resource, PinCount, PinList, DeviceName); } /******************************************************************************* * * FUNCTION: AcpiDmGpioIntDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a GPIO Interrupt descriptor * ******************************************************************************/ static void AcpiDmGpioIntDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { /* Dump the GpioInt-specific portion of the descriptor */ /* EdgeLevel, ActiveLevel, Shared */ AcpiDmIndent (Level); AcpiOsPrintf ("GpioInt (%s, %s, %s, ", AcpiGbl_HeDecode [ACPI_GET_1BIT_FLAG (Resource->Gpio.IntFlags)], AcpiGbl_LlDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Gpio.IntFlags, 1)], AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Gpio.IntFlags, 3)]); /* PinConfig, DebounceTimeout */ if (Resource->Gpio.PinConfig <= 3) { AcpiOsPrintf ("%s, ", AcpiGbl_PpcDecode[Resource->Gpio.PinConfig]); } else { AcpiOsPrintf ("0x%2.2X, ", Resource->Gpio.PinConfig); } AcpiOsPrintf ("0x%4.4X,\n", Resource->Gpio.DebounceTimeout); /* Dump the GpioInt/GpioIo common portion of the descriptor */ AcpiDmGpioCommon (Info, Resource, Level); } /******************************************************************************* * * FUNCTION: AcpiDmGpioIoDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a GPIO I/O descriptor * ******************************************************************************/ static void AcpiDmGpioIoDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { /* Dump the GpioIo-specific portion of the descriptor */ /* Shared, PinConfig */ AcpiDmIndent (Level); AcpiOsPrintf ("GpioIo (%s, ", AcpiGbl_ShrDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->Gpio.IntFlags, 3)]); if (Resource->Gpio.PinConfig <= 3) { AcpiOsPrintf ("%s, ", AcpiGbl_PpcDecode[Resource->Gpio.PinConfig]); } else { AcpiOsPrintf ("0x%2.2X, ", Resource->Gpio.PinConfig); } /* DebounceTimeout, DriveStrength, IoRestriction */ AcpiOsPrintf ("0x%4.4X, ", Resource->Gpio.DebounceTimeout); AcpiOsPrintf ("0x%4.4X, ", Resource->Gpio.DriveStrength); AcpiOsPrintf ("%s,\n", AcpiGbl_IorDecode [ACPI_GET_2BIT_FLAG (Resource->Gpio.IntFlags)]); /* Dump the GpioInt/GpioIo common portion of the descriptor */ AcpiDmGpioCommon (Info, Resource, Level); } /******************************************************************************* * * FUNCTION: AcpiDmGpioDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a GpioInt/GpioIo GPIO Interrupt/IO descriptor * ******************************************************************************/ void AcpiDmGpioDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT8 ConnectionType; ConnectionType = Resource->Gpio.ConnectionType; switch (ConnectionType) { case AML_RESOURCE_GPIO_TYPE_INT: AcpiDmGpioIntDescriptor (Info, Resource, Length, Level); break; case AML_RESOURCE_GPIO_TYPE_IO: AcpiDmGpioIoDescriptor (Info, Resource, Length, Level); break; default: AcpiOsPrintf ("Unknown GPIO type\n"); break; } } void AcpiDmClockInputDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { char *DeviceName = NULL; UINT8 *ResourceIndex = NULL; AcpiDmIndent (Level); AcpiOsPrintf ("ClockInput ("); AcpiOsPrintf ("0x%8.8X, ", Resource->ClockInput.FrequencyNumerator); AcpiOsPrintf ("0x%4.4X, ", Resource->ClockInput.FrequencyDivisor); AcpiOsPrintf ("%s, ", AcpiGbl_ClockInputScale [ACPI_EXTRACT_2BIT_FLAG (Resource->ClockInput.Flags, 1)]); AcpiOsPrintf ("%s, ", AcpiGbl_ClockInputMode [ACPI_GET_1BIT_FLAG (Resource->ClockInput.Flags)]); if (Length > sizeof(Resource->ClockInput)) { DeviceName = ACPI_ADD_PTR (char, Resource, sizeof(Resource->ClockInput)+1), AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); AcpiOsPrintf (", "); ResourceIndex = ACPI_ADD_PTR (UINT8, Resource, sizeof(Resource->ClockInput)), AcpiOsPrintf ("0x%2.2X", *ResourceIndex); } AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmPinFunctionDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a PinFunction descriptor * ******************************************************************************/ void AcpiDmPinFunctionDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT16 *PinList; UINT8 *VendorData; char *DeviceName = NULL; UINT32 PinCount; UINT32 i; AcpiDmIndent (Level); AcpiOsPrintf ("PinFunction (%s, ", AcpiGbl_ShrDecode [ACPI_GET_1BIT_FLAG (Resource->PinFunction.Flags)]); if (Resource->PinFunction.PinConfig <= 3) { AcpiOsPrintf ("%s, ", AcpiGbl_PpcDecode[Resource->PinFunction.PinConfig]); } else { AcpiOsPrintf ("0x%2.2X, ", Resource->PinFunction.PinConfig); } /* FunctionNumber */ AcpiOsPrintf ("0x%4.4X, ", Resource->PinFunction.FunctionNumber); if (Resource->PinFunction.ResSourceOffset) { DeviceName = ACPI_ADD_PTR (char, Resource, Resource->PinFunction.ResSourceOffset), AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); } AcpiOsPrintf (", "); AcpiOsPrintf ("0x%2.2X,\n", Resource->PinFunction.ResSourceIndex); AcpiDmIndent (Level + 1); /* Always ResourceConsumer */ AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_CONSUMER]); /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (","); /* Dump the vendor data */ if (Resource->PinFunction.VendorLength) { AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 1); VendorData = ACPI_ADD_PTR (UINT8, Resource, Resource->PinFunction.VendorOffset); AcpiDmDumpRawDataBuffer (VendorData, Resource->PinFunction.VendorLength, Level); } AcpiOsPrintf (")\n"); AcpiDmIndent (Level + 1); /* Dump the interrupt list */ AcpiOsPrintf ("{ // Pin list\n"); PinCount = ((UINT32) (Resource->PinFunction.ResSourceOffset - Resource->PinFunction.PinTableOffset)) / sizeof (UINT16); PinList = (UINT16 *) ACPI_ADD_PTR (char, Resource, Resource->PinFunction.PinTableOffset); for (i = 0; i < PinCount; i++) { AcpiDmIndent (Level + 2); AcpiOsPrintf ("0x%4.4X%s\n", PinList[i], ((i + 1) < PinCount) ? "," : ""); } AcpiDmIndent (Level + 1); AcpiOsPrintf ("}\n"); } /******************************************************************************* * * FUNCTION: AcpiDmDumpSerialBusVendorData * * PARAMETERS: Resource - Pointer to the resource descriptor * * RETURN: None * * DESCRIPTION: Dump optional serial bus vendor data * ******************************************************************************/ static void AcpiDmDumpSerialBusVendorData ( AML_RESOURCE *Resource, UINT32 Level) { UINT8 *VendorData; UINT32 VendorLength; /* Get the (optional) vendor data and length */ switch (Resource->CommonSerialBus.Type) { case AML_RESOURCE_I2C_SERIALBUSTYPE: VendorLength = Resource->CommonSerialBus.TypeDataLength - AML_RESOURCE_I2C_MIN_DATA_LEN; VendorData = ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_I2C_SERIALBUS)); break; case AML_RESOURCE_SPI_SERIALBUSTYPE: VendorLength = Resource->CommonSerialBus.TypeDataLength - AML_RESOURCE_SPI_MIN_DATA_LEN; VendorData = ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_SPI_SERIALBUS)); break; case AML_RESOURCE_UART_SERIALBUSTYPE: VendorLength = Resource->CommonSerialBus.TypeDataLength - AML_RESOURCE_UART_MIN_DATA_LEN; VendorData = ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_UART_SERIALBUS)); break; case AML_RESOURCE_CSI2_SERIALBUSTYPE: VendorLength = Resource->CommonSerialBus.TypeDataLength - AML_RESOURCE_CSI2_MIN_DATA_LEN; VendorData = ACPI_ADD_PTR (UINT8, Resource, sizeof (AML_RESOURCE_CSI2_SERIALBUS)); break; default: return; } /* Dump the vendor bytes as a RawDataBuffer object */ AcpiDmDumpRawDataBuffer (VendorData, VendorLength, Level); } /******************************************************************************* * * FUNCTION: AcpiDmCsi2SerialBusDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a CSI2 serial bus descriptor * ******************************************************************************/ static void AcpiDmCsi2SerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT32 ResourceSourceOffset; char *DeviceName; /* SlaveMode, PhyType, LocalPortInstance */ AcpiDmIndent (Level); AcpiOsPrintf ("Csi2Bus (%s,", AcpiGbl_SmDecode [ACPI_GET_1BIT_FLAG (Resource->Csi2SerialBus.Flags)]); AcpiOsPrintf (" 0x%2.2X, 0x%2.2X,\n", Resource->Csi2SerialBus.TypeSpecificFlags & 0x03, Resource->Csi2SerialBus.TypeSpecificFlags & 0xFC); /* ResourceSource is a required field */ ResourceSourceOffset = sizeof (AML_RESOURCE_COMMON_SERIALBUS) + Resource->CommonSerialBus.TypeDataLength; AcpiDmIndent (Level + 1); DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset); AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); /* ResourceSourceIndex, ResourceUsage */ AcpiOsPrintf (",\n"); AcpiDmIndent (Level + 1); AcpiOsPrintf ("0x%2.2X, ", Resource->Csi2SerialBus.ResSourceIndex); AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->Csi2SerialBus.Flags, 1)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); /* Dump the vendor data */ AcpiOsPrintf (",\n"); AcpiDmIndent (Level + 1); AcpiDmDumpSerialBusVendorData (Resource, Level); AcpiOsPrintf (")\n"); MpSaveSerialInfo (Info->MappingOp, Resource, DeviceName); } /******************************************************************************* * * FUNCTION: AcpiDmI2cSerialBusDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a I2C serial bus descriptor * ******************************************************************************/ static void AcpiDmI2cSerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT32 ResourceSourceOffset; char *DeviceName; /* SlaveAddress, SlaveMode, ConnectionSpeed, AddressingMode */ AcpiDmIndent (Level); AcpiOsPrintf ("I2cSerialBusV2 (0x%4.4X, %s, 0x%8.8X,\n", Resource->I2cSerialBus.SlaveAddress, AcpiGbl_SmDecode [ACPI_GET_1BIT_FLAG (Resource->I2cSerialBus.Flags)], Resource->I2cSerialBus.ConnectionSpeed); AcpiDmIndent (Level + 1); AcpiOsPrintf ("%s, ", AcpiGbl_AmDecode [ACPI_GET_1BIT_FLAG (Resource->I2cSerialBus.TypeSpecificFlags)]); /* ResourceSource is a required field */ ResourceSourceOffset = sizeof (AML_RESOURCE_COMMON_SERIALBUS) + Resource->CommonSerialBus.TypeDataLength; DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset); AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); /* ResourceSourceIndex, ResourceUsage */ AcpiOsPrintf (",\n"); AcpiDmIndent (Level + 1); AcpiOsPrintf ("0x%2.2X, ", Resource->I2cSerialBus.ResSourceIndex); AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->I2cSerialBus.Flags, 1)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); /* Share */ AcpiOsPrintf (", %s,\n", AcpiGbl_ShrDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->I2cSerialBus.Flags, 2)]); /* Dump the vendor data */ AcpiDmIndent (Level + 1); AcpiDmDumpSerialBusVendorData (Resource, Level); AcpiOsPrintf (")\n"); MpSaveSerialInfo (Info->MappingOp, Resource, DeviceName); } /******************************************************************************* * * FUNCTION: AcpiDmSpiSerialBusDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a SPI serial bus descriptor * ******************************************************************************/ static void AcpiDmSpiSerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT32 ResourceSourceOffset; char *DeviceName; /* DeviceSelection, DeviceSelectionPolarity, WireMode, DataBitLength */ AcpiDmIndent (Level); AcpiOsPrintf ("SpiSerialBusV2 (0x%4.4X, %s, %s, 0x%2.2X,\n", Resource->SpiSerialBus.DeviceSelection, AcpiGbl_DpDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->SpiSerialBus.TypeSpecificFlags, 1)], AcpiGbl_WmDecode [ACPI_GET_1BIT_FLAG (Resource->SpiSerialBus.TypeSpecificFlags)], Resource->SpiSerialBus.DataBitLength); /* SlaveMode, ConnectionSpeed, ClockPolarity, ClockPhase */ AcpiDmIndent (Level + 1); AcpiOsPrintf ("%s, 0x%8.8X, %s,\n", AcpiGbl_SmDecode [ACPI_GET_1BIT_FLAG (Resource->SpiSerialBus.Flags)], Resource->SpiSerialBus.ConnectionSpeed, AcpiGbl_CpoDecode [ACPI_GET_1BIT_FLAG (Resource->SpiSerialBus.ClockPolarity)]); AcpiDmIndent (Level + 1); AcpiOsPrintf ("%s, ", AcpiGbl_CphDecode [ACPI_GET_1BIT_FLAG (Resource->SpiSerialBus.ClockPhase)]); /* ResourceSource is a required field */ ResourceSourceOffset = sizeof (AML_RESOURCE_COMMON_SERIALBUS) + Resource->CommonSerialBus.TypeDataLength; DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset); AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); /* ResourceSourceIndex, ResourceUsage */ AcpiOsPrintf (",\n"); AcpiDmIndent (Level + 1); AcpiOsPrintf ("0x%2.2X, ", Resource->SpiSerialBus.ResSourceIndex); AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->SpiSerialBus.Flags, 1)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); /* Share */ AcpiOsPrintf (", %s,\n", AcpiGbl_ShrDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->SpiSerialBus.Flags, 2)]); /* Dump the vendor data */ AcpiDmIndent (Level + 1); AcpiDmDumpSerialBusVendorData (Resource, Level); AcpiOsPrintf (")\n"); MpSaveSerialInfo (Info->MappingOp, Resource, DeviceName); } /******************************************************************************* * * FUNCTION: AcpiDmUartSerialBusDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a UART serial bus descriptor * ******************************************************************************/ static void AcpiDmUartSerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT32 ResourceSourceOffset; char *DeviceName; /* ConnectionSpeed, BitsPerByte, StopBits */ AcpiDmIndent (Level); AcpiOsPrintf ("UartSerialBusV2 (0x%8.8X, %s, %s,\n", Resource->UartSerialBus.DefaultBaudRate, AcpiGbl_BpbDecode [ACPI_EXTRACT_3BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags, 4)], AcpiGbl_SbDecode [ACPI_EXTRACT_2BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags, 2)]); /* LinesInUse, IsBigEndian, Parity, FlowControl */ AcpiDmIndent (Level + 1); AcpiOsPrintf ("0x%2.2X, %s, %s, %s,\n", Resource->UartSerialBus.LinesEnabled, AcpiGbl_EdDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags, 7)], AcpiGbl_PtDecode [ACPI_GET_3BIT_FLAG (Resource->UartSerialBus.Parity)], AcpiGbl_FcDecode [ACPI_GET_2BIT_FLAG (Resource->UartSerialBus.TypeSpecificFlags)]); /* ReceiveBufferSize, TransmitBufferSize */ AcpiDmIndent (Level + 1); AcpiOsPrintf ("0x%4.4X, 0x%4.4X, ", Resource->UartSerialBus.RxFifoSize, Resource->UartSerialBus.TxFifoSize); /* ResourceSource is a required field */ ResourceSourceOffset = sizeof (AML_RESOURCE_COMMON_SERIALBUS) + Resource->CommonSerialBus.TypeDataLength; DeviceName = ACPI_ADD_PTR (char, Resource, ResourceSourceOffset); AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); /* ResourceSourceIndex, ResourceUsage */ AcpiOsPrintf (",\n"); AcpiDmIndent (Level + 1); AcpiOsPrintf ("0x%2.2X, ", Resource->UartSerialBus.ResSourceIndex); AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->UartSerialBus.Flags, 1)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); /* Share */ AcpiOsPrintf (", %s,\n", AcpiGbl_ShrDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->UartSerialBus.Flags, 2)]); /* Dump the vendor data */ AcpiDmIndent (Level + 1); AcpiDmDumpSerialBusVendorData (Resource, Level); AcpiOsPrintf (")\n"); MpSaveSerialInfo (Info->MappingOp, Resource, DeviceName); } /******************************************************************************* * * FUNCTION: AcpiDmSerialBusDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a I2C/SPI/UART/CSI2 serial bus descriptor * ******************************************************************************/ void AcpiDmSerialBusDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { SerialBusResourceDispatch [Resource->CommonSerialBus.Type] ( Info, Resource, Length, Level); } /******************************************************************************* * * FUNCTION: AcpiDmPinConfig * * PARAMETERS: PinConfigType - Pin configuration type * PinConfigValue - Pin configuration value * * RETURN: None * * DESCRIPTION: Pretty prints PinConfig type and value. * ******************************************************************************/ static void AcpiDmPinConfig( UINT8 PinConfigType, UINT32 PinConfigValue) { if (PinConfigType <= 13) { AcpiOsPrintf ("0x%2.2X /* %s */, ", PinConfigType, AcpiGbl_PtypDecode[PinConfigType]); } else { AcpiOsPrintf ("0x%2.2X, /* Vendor Defined */ ", PinConfigType); } /* PinConfigValue */ AcpiOsPrintf ("0x%4.4X,\n", PinConfigValue); } /******************************************************************************* * * FUNCTION: AcpiDmPinConfigDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a PinConfig descriptor * ******************************************************************************/ void AcpiDmPinConfigDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT16 *PinList; UINT8 *VendorData; char *DeviceName = NULL; UINT32 PinCount; UINT32 i; AcpiDmIndent (Level); AcpiOsPrintf ("PinConfig (%s, ", AcpiGbl_ShrDecode [ACPI_GET_1BIT_FLAG (Resource->PinConfig.Flags)]); AcpiDmPinConfig (Resource->PinConfig.PinConfigType, Resource->PinConfig.PinConfigValue); AcpiDmIndent (Level + 1); if (Resource->PinConfig.ResSourceOffset) { DeviceName = ACPI_ADD_PTR (char, Resource, Resource->PinConfig.ResSourceOffset), AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); } AcpiOsPrintf (", "); AcpiOsPrintf ("0x%2.2X, ", Resource->PinConfig.ResSourceIndex); AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->PinConfig.Flags, 1)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (","); /* Dump the vendor data */ if (Resource->PinConfig.VendorLength) { AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 1); VendorData = ACPI_ADD_PTR (UINT8, Resource, Resource->PinConfig.VendorOffset); AcpiDmDumpRawDataBuffer (VendorData, Resource->PinConfig.VendorLength, Level); } AcpiOsPrintf (")\n"); AcpiDmIndent (Level + 1); /* Dump the interrupt list */ AcpiOsPrintf ("{ // Pin list\n"); PinCount = ((UINT32) (Resource->PinConfig.ResSourceOffset - Resource->PinConfig.PinTableOffset)) / sizeof (UINT16); PinList = (UINT16 *) ACPI_ADD_PTR (char, Resource, Resource->PinConfig.PinTableOffset); for (i = 0; i < PinCount; i++) { AcpiDmIndent (Level + 2); AcpiOsPrintf ("0x%4.4X%s\n", PinList[i], ((i + 1) < PinCount) ? "," : ""); } AcpiDmIndent (Level + 1); AcpiOsPrintf ("}\n"); } /******************************************************************************* * * FUNCTION: AcpiDmPinGroupDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a PinGroup descriptor * ******************************************************************************/ void AcpiDmPinGroupDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { char *Label; UINT16 *PinList; UINT8 *VendorData; UINT32 PinCount; UINT32 i; AcpiDmIndent (Level); /* Always producer */ AcpiOsPrintf ("PinGroup ("); Label = ACPI_ADD_PTR (char, Resource, Resource->PinGroup.LabelOffset), AcpiUtPrintString (Label, ACPI_UINT16_MAX); AcpiOsPrintf (", "); AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_GET_1BIT_FLAG (Resource->PinGroup.Flags)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (","); /* Dump the vendor data */ if (Resource->PinGroup.VendorLength) { AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 1); VendorData = ACPI_ADD_PTR (UINT8, Resource, Resource->PinGroup.VendorOffset); AcpiDmDumpRawDataBuffer (VendorData, Resource->PinGroup.VendorLength, Level); } AcpiOsPrintf (")\n"); AcpiDmIndent (Level + 1); /* Dump the interrupt list */ AcpiOsPrintf ("{ // Pin list\n"); PinCount = (Resource->PinGroup.LabelOffset - Resource->PinGroup.PinTableOffset) / sizeof (UINT16); PinList = (UINT16 *) ACPI_ADD_PTR (char, Resource, Resource->PinGroup.PinTableOffset); for (i = 0; i < PinCount; i++) { AcpiDmIndent (Level + 2); AcpiOsPrintf ("0x%4.4X%s\n", PinList[i], ((i + 1) < PinCount) ? "," : ""); } AcpiDmIndent (Level + 1); AcpiOsPrintf ("}\n"); } /******************************************************************************* * * FUNCTION: AcpiDmPinGroupFunctionDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a PinGroupFunction descriptor * ******************************************************************************/ void AcpiDmPinGroupFunctionDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT8 *VendorData; char *DeviceName = NULL; char *Label = NULL; AcpiDmIndent (Level); AcpiOsPrintf ("PinGroupFunction (%s, ", AcpiGbl_ShrDecode [ACPI_GET_1BIT_FLAG (Resource->PinGroupFunction.Flags)]); /* FunctionNumber */ AcpiOsPrintf ("0x%4.4X, ", Resource->PinGroupFunction.FunctionNumber); DeviceName = ACPI_ADD_PTR (char, Resource, Resource->PinGroupFunction.ResSourceOffset), AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); AcpiOsPrintf (", "); AcpiOsPrintf ("0x%2.2X,\n", Resource->PinGroupFunction.ResSourceIndex); AcpiDmIndent (Level + 1); Label = ACPI_ADD_PTR (char, Resource, Resource->PinGroupFunction.ResSourceLabelOffset); AcpiUtPrintString (Label, ACPI_UINT16_MAX); AcpiOsPrintf (", "); AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->PinGroupFunction.Flags, 1)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (","); /* Dump the vendor data */ if (Resource->PinGroupFunction.VendorLength) { AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 1); VendorData = ACPI_ADD_PTR (UINT8, Resource, Resource->PinGroupFunction.VendorOffset); AcpiDmDumpRawDataBuffer (VendorData, Resource->PinGroupFunction.VendorLength, Level); } AcpiOsPrintf (")\n"); } /******************************************************************************* * * FUNCTION: AcpiDmPinGroupConfigDescriptor * * PARAMETERS: Info - Extra resource info * Resource - Pointer to the resource descriptor * Length - Length of the descriptor in bytes * Level - Current source code indentation level * * RETURN: None * * DESCRIPTION: Decode a PinGroupConfig descriptor * ******************************************************************************/ void AcpiDmPinGroupConfigDescriptor ( ACPI_OP_WALK_INFO *Info, AML_RESOURCE *Resource, UINT32 Length, UINT32 Level) { UINT8 *VendorData; char *DeviceName = NULL; char *Label = NULL; AcpiDmIndent (Level); AcpiOsPrintf ("PinGroupConfig (%s, ", AcpiGbl_ShrDecode [ACPI_GET_1BIT_FLAG (Resource->PinGroupConfig.Flags)]); AcpiDmPinConfig(Resource->PinGroupConfig.PinConfigType, Resource->PinGroupConfig.PinConfigValue); AcpiDmIndent (Level + 1); DeviceName = ACPI_ADD_PTR (char, Resource, Resource->PinGroupConfig.ResSourceOffset), AcpiUtPrintString (DeviceName, ACPI_UINT16_MAX); AcpiOsPrintf (", "); AcpiOsPrintf ("0x%2.2X, ", Resource->PinGroupConfig.ResSourceIndex); Label = ACPI_ADD_PTR (char, Resource, Resource->PinGroupConfig.ResSourceLabelOffset); AcpiUtPrintString (Label, ACPI_UINT16_MAX); AcpiOsPrintf (", "); AcpiOsPrintf ("%s, ", AcpiGbl_ConsumeDecode [ACPI_EXTRACT_1BIT_FLAG (Resource->PinGroupConfig.Flags, 1)]); /* Insert a descriptor name */ AcpiDmDescriptorName (); AcpiOsPrintf (","); /* Dump the vendor data */ if (Resource->PinGroupConfig.VendorLength) { AcpiOsPrintf ("\n"); AcpiDmIndent (Level + 1); VendorData = ACPI_ADD_PTR (UINT8, Resource, Resource->PinGroupConfig.VendorOffset); AcpiDmDumpRawDataBuffer (VendorData, Resource->PinGroupConfig.VendorLength, Level); } AcpiOsPrintf (")\n"); } acpica-unix-20250404/source/components/disassembler/dmresrc.c0000775000175000017500000003646214773714132023521 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmresrc.c - Resource Descriptor disassembly * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acdisasm.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dbresrc") /* Dispatch tables for Resource disassembly functions */ static ACPI_RESOURCE_HANDLER AcpiGbl_DmResourceDispatch [] = { /* Small descriptors */ NULL, /* 0x00, Reserved */ NULL, /* 0x01, Reserved */ NULL, /* 0x02, Reserved */ NULL, /* 0x03, Reserved */ AcpiDmIrqDescriptor, /* 0x04, ACPI_RESOURCE_NAME_IRQ_FORMAT */ AcpiDmDmaDescriptor, /* 0x05, ACPI_RESOURCE_NAME_DMA_FORMAT */ AcpiDmStartDependentDescriptor, /* 0x06, ACPI_RESOURCE_NAME_START_DEPENDENT */ AcpiDmEndDependentDescriptor, /* 0x07, ACPI_RESOURCE_NAME_END_DEPENDENT */ AcpiDmIoDescriptor, /* 0x08, ACPI_RESOURCE_NAME_IO_PORT */ AcpiDmFixedIoDescriptor, /* 0x09, ACPI_RESOURCE_NAME_FIXED_IO_PORT */ AcpiDmFixedDmaDescriptor, /* 0x0A, ACPI_RESOURCE_NAME_FIXED_DMA */ NULL, /* 0x0B, Reserved */ NULL, /* 0x0C, Reserved */ NULL, /* 0x0D, Reserved */ AcpiDmVendorSmallDescriptor, /* 0x0E, ACPI_RESOURCE_NAME_SMALL_VENDOR */ NULL, /* 0x0F, ACPI_RESOURCE_NAME_END_TAG (not used) */ /* Large descriptors */ NULL, /* 0x00, Reserved */ AcpiDmMemory24Descriptor, /* 0x01, ACPI_RESOURCE_NAME_MEMORY_24 */ AcpiDmGenericRegisterDescriptor,/* 0x02, ACPI_RESOURCE_NAME_GENERIC_REGISTER */ NULL, /* 0x03, Reserved */ AcpiDmVendorLargeDescriptor, /* 0x04, ACPI_RESOURCE_NAME_LARGE_VENDOR */ AcpiDmMemory32Descriptor, /* 0x05, ACPI_RESOURCE_NAME_MEMORY_32 */ AcpiDmFixedMemory32Descriptor, /* 0x06, ACPI_RESOURCE_NAME_FIXED_MEMORY_32 */ AcpiDmDwordDescriptor, /* 0x07, ACPI_RESOURCE_NAME_DWORD_ADDRESS_SPACE */ AcpiDmWordDescriptor, /* 0x08, ACPI_RESOURCE_NAME_WORD_ADDRESS_SPACE */ AcpiDmInterruptDescriptor, /* 0x09, ACPI_RESOURCE_NAME_EXTENDED_XRUPT */ AcpiDmQwordDescriptor, /* 0x0A, ACPI_RESOURCE_NAME_QWORD_ADDRESS_SPACE */ AcpiDmExtendedDescriptor, /* 0x0B, ACPI_RESOURCE_NAME_EXTENDED_ADDRESS_SPACE */ AcpiDmGpioDescriptor, /* 0x0C, ACPI_RESOURCE_NAME_GPIO */ AcpiDmPinFunctionDescriptor, /* 0x0D, ACPI_RESOURCE_NAME_PIN_FUNCTION */ AcpiDmSerialBusDescriptor, /* 0x0E, ACPI_RESOURCE_NAME_SERIAL_BUS */ AcpiDmPinConfigDescriptor, /* 0x0F, ACPI_RESOURCE_NAME_PIN_CONFIG */ AcpiDmPinGroupDescriptor, /* 0x10, ACPI_RESOURCE_NAME_PIN_GROUP */ AcpiDmPinGroupFunctionDescriptor, /* 0x11, ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION */ AcpiDmPinGroupConfigDescriptor, /* 0x12, ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG */ AcpiDmClockInputDescriptor, /* 0x13, ACPI_RESOURCE_NAME_CLOCK_INPUT */ }; /* Only used for single-threaded applications */ /* TBD: remove when name is passed as parameter to the dump functions */ static UINT32 ResourceName; /******************************************************************************* * * FUNCTION: AcpiDmDescriptorName * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Emit a name for the descriptor if one is present (indicated * by the name being changed from the default name.) A name is only * emitted if a reference to the descriptor has been made somewhere * in the original ASL code. * ******************************************************************************/ void AcpiDmDescriptorName ( void) { if (ResourceName == ACPI_DEFAULT_RESNAME) { return; } AcpiOsPrintf ("%4.4s", (char *) &ResourceName); } /******************************************************************************* * * FUNCTION: AcpiDmDumpInteger* * * PARAMETERS: Value - Value to emit * Name - Associated name (emitted as a comment) * * RETURN: None * * DESCRIPTION: Integer output helper functions * ******************************************************************************/ void AcpiDmDumpInteger8 ( UINT8 Value, const char *Name) { AcpiOsPrintf ("0x%2.2X, // %s\n", Value, Name); } void AcpiDmDumpInteger16 ( UINT16 Value, const char *Name) { AcpiOsPrintf ("0x%4.4X, // %s\n", Value, Name); } void AcpiDmDumpInteger32 ( UINT32 Value, const char *Name) { AcpiOsPrintf ("0x%8.8X, // %s\n", Value, Name); } void AcpiDmDumpInteger64 ( UINT64 Value, const char *Name) { AcpiOsPrintf ("0x%8.8X%8.8X, // %s\n", ACPI_FORMAT_UINT64 (Value), Name); } /******************************************************************************* * * FUNCTION: AcpiDmBitList * * PARAMETERS: Mask - 16-bit value corresponding to 16 interrupt * or DMA values * * RETURN: None * * DESCRIPTION: Dump a bit mask as a list of individual interrupt/DMA levels. * ******************************************************************************/ void AcpiDmBitList ( UINT16 Mask) { UINT32 i; BOOLEAN Previous = FALSE; /* Open the initializer list */ AcpiOsPrintf ("{"); /* Examine each bit */ for (i = 0; i < 16; i++) { /* Only interested in bits that are set to 1 */ if (Mask & 1) { if (Previous) { AcpiOsPrintf (","); } Previous = TRUE; AcpiOsPrintf ("%u", i); } Mask >>= 1; } /* Close list */ AcpiOsPrintf ("}\n"); } /******************************************************************************* * * FUNCTION: AcpiDmResourceTemplate * * PARAMETERS: Info - Current parse tree walk info * ByteData - Pointer to the byte list data * ByteCount - Length of the byte list * * RETURN: None * * DESCRIPTION: Dump the contents of a Resource Template containing a set of * Resource Descriptors. * ******************************************************************************/ void AcpiDmResourceTemplate ( ACPI_OP_WALK_INFO *Info, ACPI_PARSE_OBJECT *Op, UINT8 *ByteData, UINT32 ByteCount) { ACPI_STATUS Status; UINT32 CurrentByteOffset; UINT8 ResourceType; UINT32 ResourceLength; void *Aml; UINT32 Level; BOOLEAN DependentFns = FALSE; UINT8 ResourceIndex; ACPI_NAMESPACE_NODE *Node; if (Op->Asl.AmlOpcode != AML_FIELD_OP) { Info->MappingOp = Op; } Level = Info->Level; ResourceName = ACPI_DEFAULT_RESNAME; Node = Op->Common.Node; if (Node) { Node = Node->Child; } for (CurrentByteOffset = 0; CurrentByteOffset < ByteCount;) { Aml = &ByteData[CurrentByteOffset]; /* Get the descriptor type and length */ ResourceType = AcpiUtGetResourceType (Aml); ResourceLength = AcpiUtGetResourceLength (Aml); /* Validate the Resource Type and Resource Length */ Status = AcpiUtValidateResource (NULL, Aml, &ResourceIndex); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ( "/*** Could not validate Resource, type (%X) %s***/\n", ResourceType, AcpiFormatException (Status)); return; } /* Point to next descriptor */ CurrentByteOffset += AcpiUtGetDescriptorLength (Aml); /* Descriptor pre-processing */ switch (ResourceType) { case ACPI_RESOURCE_NAME_START_DEPENDENT: /* Finish a previous StartDependentFns */ if (DependentFns) { Level--; AcpiDmIndent (Level); AcpiOsPrintf ("}\n"); } break; case ACPI_RESOURCE_NAME_END_DEPENDENT: Level--; DependentFns = FALSE; break; case ACPI_RESOURCE_NAME_END_TAG: /* Normal exit, the resource list is finished */ if (DependentFns) { /* * Close an open StartDependentDescriptor. This indicates a * missing EndDependentDescriptor. */ Level--; /* Go ahead and insert EndDependentFn() */ AcpiDmEndDependentDescriptor (Info, Aml, ResourceLength, Level); AcpiDmIndent (Level); AcpiOsPrintf ( "/*** Disassembler: inserted " "missing EndDependentFn () ***/\n"); } return; default: break; } /* Disassemble the resource structure */ if (Node) { ResourceName = Node->Name.Integer; Node = Node->Peer; } AcpiGbl_DmResourceDispatch [ResourceIndex] ( Info, Aml, ResourceLength, Level); /* Descriptor post-processing */ if (ResourceType == ACPI_RESOURCE_NAME_START_DEPENDENT) { DependentFns = TRUE; Level++; } } } /******************************************************************************* * * FUNCTION: AcpiDmIsResourceTemplate * * PARAMETERS: WalkState - Current walk info * Op - Buffer Op to be examined * * RETURN: Status. AE_OK if valid template * * DESCRIPTION: Walk a byte list to determine if it consists of a valid set * of resource descriptors. Nothing is output. * ******************************************************************************/ ACPI_STATUS AcpiDmIsResourceTemplate ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *NextOp; UINT8 *Aml; UINT8 *EndAml; UINT32 BufferLength; UINT32 DeclaredBufferLength; /* This op must be a buffer */ if (Op->Common.AmlOpcode != AML_BUFFER_OP) { return (AE_TYPE); } /* * Get the declared length of the buffer. * This is the nn in "Buffer (nn)" */ NextOp = Op->Common.Value.Arg; if (!NextOp) { AcpiOsPrintf ("NULL byte list in buffer\n"); return (AE_TYPE); } DeclaredBufferLength = NextOp->Common.Value.Size; /* Get the length of the raw initialization byte list */ NextOp = NextOp->Common.Next; if (!NextOp) { return (AE_TYPE); } Aml = NextOp->Named.Data; BufferLength = NextOp->Common.Value.Size; /* * Any buffer smaller than one byte cannot possibly be a resource * template. Two bytes could possibly be a "NULL" resource template * with a lone end tag descriptor (as generated via * "ResourceTemplate(){}"), but this would be an extremely unusual * case, as the template would be essentially useless. The disassembler * therefore does not recognize any two-byte buffer as a resource * template. */ if (BufferLength <= 2) { return (AE_TYPE); } /* * Not a template if declared buffer length != actual length of the * initialization byte list. Because the resource macros will create * a buffer of the exact required length (buffer length will be equal * to the actual length). * * NOTE (April 2017): Resource templates with this issue have been * seen in the field. We still don't want to attempt to disassemble * a buffer like this to a resource template because this output * would not match the original input buffer (it would be shorter * than the original when the disassembled code is recompiled). * Basically, a buffer like this appears to be hand crafted in the * first place, so just emitting a buffer object instead of a * resource template more closely resembles the original ASL code. */ if (DeclaredBufferLength != BufferLength) { return (AE_TYPE); } /* Walk the byte list, abort on any invalid descriptor type or length */ Status = AcpiUtWalkAmlResources (WalkState, Aml, BufferLength, NULL, ACPI_CAST_INDIRECT_PTR (void, &EndAml)); if (ACPI_FAILURE (Status)) { return (AE_TYPE); } /* * For the resource template to be valid, one EndTag must appear * at the very end of the ByteList, not before. (For proper disassembly * of a ResourceTemplate, the buffer must not have any extra data after * the EndTag.) */ if ((Aml + BufferLength - sizeof (AML_RESOURCE_END_TAG)) != EndAml) { return (AE_AML_NO_RESOURCE_END_TAG); } /* * All resource descriptors are valid, therefore this list appears * to be a valid resource template */ return (AE_OK); } acpica-unix-20250404/source/components/disassembler/dmbuffer.c0000775000175000017500000007132714773714132023653 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmbuffer - AML disassembler, buffer and string support * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acutils.h" #include "acdisasm.h" #include "acparser.h" #include "amlcode.h" #include "acinterp.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dmbuffer") /* Local prototypes */ static void AcpiDmUuid ( ACPI_PARSE_OBJECT *Op); static void AcpiDmUnicode ( ACPI_PARSE_OBJECT *Op); static void AcpiDmGetHardwareIdType ( ACPI_PARSE_OBJECT *Op); static void AcpiDmPldBuffer ( UINT32 Level, UINT8 *ByteData, UINT32 ByteCount); static const char * AcpiDmFindNameByIndex ( UINT64 Index, const char **List); #define ACPI_BUFFER_BYTES_PER_LINE 8 /******************************************************************************* * * FUNCTION: AcpiDmDisasmByteList * * PARAMETERS: Level - Current source code indentation level * ByteData - Pointer to the byte list * ByteCount - Length of the byte list * * RETURN: None * * DESCRIPTION: Dump an AML "ByteList" in Hex format. 8 bytes per line, prefixed * with the hex buffer offset. * ******************************************************************************/ void AcpiDmDisasmByteList ( UINT32 Level, UINT8 *ByteData, UINT32 ByteCount) { UINT32 i; UINT32 j; UINT32 CurrentIndex; UINT8 BufChar; if (!ByteCount) { return; } for (i = 0; i < ByteCount; i += ACPI_BUFFER_BYTES_PER_LINE) { /* Line indent and offset prefix for each new line */ AcpiDmIndent (Level); if (ByteCount > ACPI_BUFFER_BYTES_PER_LINE) { AcpiOsPrintf ("/* %04X */ ", i); } /* Dump the actual hex values */ for (j = 0; j < ACPI_BUFFER_BYTES_PER_LINE; j++) { CurrentIndex = i + j; if (CurrentIndex >= ByteCount) { /* Dump fill spaces */ AcpiOsPrintf (" "); continue; } AcpiOsPrintf (" 0x%2.2X", ByteData[CurrentIndex]); /* Add comma if there are more bytes to display */ if (CurrentIndex < (ByteCount - 1)) { AcpiOsPrintf (","); } else { AcpiOsPrintf (" "); } } /* Dump the ASCII equivalents within a comment */ AcpiOsPrintf (" // "); for (j = 0; j < ACPI_BUFFER_BYTES_PER_LINE; j++) { CurrentIndex = i + j; if (CurrentIndex >= ByteCount) { break; } BufChar = ByteData[CurrentIndex]; if (isprint (BufChar)) { AcpiOsPrintf ("%c", BufChar); } else { AcpiOsPrintf ("."); } } /* Finished with this line */ AcpiOsPrintf ("\n"); } } /******************************************************************************* * * FUNCTION: AcpiDmByteList * * PARAMETERS: Info - Parse tree walk info * Op - Byte list op * * RETURN: None * * DESCRIPTION: Dump a buffer byte list, handling the various types of buffers. * Buffer type must be already set in the Op DisasmOpcode. * ******************************************************************************/ void AcpiDmByteList ( ACPI_OP_WALK_INFO *Info, ACPI_PARSE_OBJECT *Op) { UINT8 *ByteData; UINT32 ByteCount; ByteData = Op->Named.Data; ByteCount = (UINT32) Op->Common.Value.Integer; /* * The byte list belongs to a buffer, and can be produced by either * a ResourceTemplate, Unicode, quoted string, or a plain byte list. */ switch (Op->Common.Parent->Common.DisasmOpcode) { case ACPI_DASM_RESOURCE: AcpiDmResourceTemplate ( Info, Op->Common.Parent, ByteData, ByteCount); break; case ACPI_DASM_STRING: AcpiDmIndent (Info->Level); AcpiUtPrintString ((char *) ByteData, ACPI_UINT16_MAX); AcpiOsPrintf ("\n"); break; case ACPI_DASM_UUID: AcpiDmUuid (Op); break; case ACPI_DASM_UNICODE: AcpiDmUnicode (Op); break; case ACPI_DASM_PLD_METHOD: #if 0 AcpiDmDisasmByteList (Info->Level, ByteData, ByteCount); #endif AcpiDmPldBuffer (Info->Level, ByteData, ByteCount); break; case ACPI_DASM_BUFFER: default: /* * Not a resource, string, or unicode string. * Just dump the buffer */ AcpiDmDisasmByteList (Info->Level, ByteData, ByteCount); break; } } /******************************************************************************* * * FUNCTION: AcpiDmIsUuidBuffer * * PARAMETERS: Op - Buffer Object to be examined * * RETURN: TRUE if buffer contains a UUID * * DESCRIPTION: Determine if a buffer Op contains a UUID * * To help determine whether the buffer is a UUID versus a raw data buffer, * there a are a couple bytes we can look at: * * xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx * * The variant covered by the UUID specification is indicated by the two most * significant bits of N being 1 0 (i.e., the hexadecimal N will always be * 8, 9, A, or B). * * The variant covered by the UUID specification has five versions. For this * variant, the four bits of M indicates the UUID version (i.e., the * hexadecimal M will be either 1, 2, 3, 4, or 5). * ******************************************************************************/ BOOLEAN AcpiDmIsUuidBuffer ( ACPI_PARSE_OBJECT *Op) { UINT8 *ByteData; UINT32 ByteCount; ACPI_PARSE_OBJECT *SizeOp; ACPI_PARSE_OBJECT *NextOp; /* Buffer size is the buffer argument */ SizeOp = Op->Common.Value.Arg; if (!SizeOp) { return (FALSE); } /* Next, the initializer byte list to examine */ NextOp = SizeOp->Common.Next; if (!NextOp) { return (FALSE); } /* Extract the byte list info */ ByteData = NextOp->Named.Data; ByteCount = (UINT32) NextOp->Common.Value.Integer; /* Byte count must be exactly 16 */ if (ByteCount != UUID_BUFFER_LENGTH) { return (FALSE); } /* Check for valid "M" and "N" values (see function header above) */ if (((ByteData[7] & 0xF0) == 0x00) || /* M={1,2,3,4,5} */ ((ByteData[7] & 0xF0) > 0x50) || ((ByteData[8] & 0xF0) < 0x80) || /* N={8,9,A,B} */ ((ByteData[8] & 0xF0) > 0xB0)) { return (FALSE); } /* Ignore the Size argument in the disassembly of this buffer op */ SizeOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiDmUuid * * PARAMETERS: Op - Byte List op containing a UUID * * RETURN: None * * DESCRIPTION: Dump a buffer containing a UUID as a standard ASCII string. * * Output Format: * In its canonical form, the UUID is represented by a string containing 32 * lowercase hexadecimal digits, displayed in 5 groups separated by hyphens. * The complete form is 8-4-4-4-12 for a total of 36 characters (32 * alphanumeric characters representing hex digits and 4 hyphens). In bytes, * 4-2-2-2-6. Example: * * ToUUID ("107ededd-d381-4fd7-8da9-08e9a6c79644") * ******************************************************************************/ static void AcpiDmUuid ( ACPI_PARSE_OBJECT *Op) { UINT8 *Data; const char *Description; Data = ACPI_CAST_PTR (UINT8, Op->Named.Data); /* Emit the 36-byte UUID string in the proper format/order */ AcpiOsPrintf ( "\"%2.2x%2.2x%2.2x%2.2x-" "%2.2x%2.2x-" "%2.2x%2.2x-" "%2.2x%2.2x-" "%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x\")", Data[3], Data[2], Data[1], Data[0], Data[5], Data[4], Data[7], Data[6], Data[8], Data[9], Data[10], Data[11], Data[12], Data[13], Data[14], Data[15]); /* Dump the UUID description string if available */ Description = AcpiAhMatchUuid (Data); if (Description) { AcpiOsPrintf (" /* %s */", Description); } else { AcpiOsPrintf (" /* Unknown UUID */"); } } /******************************************************************************* * * FUNCTION: AcpiDmIsUnicodeBuffer * * PARAMETERS: Op - Buffer Object to be examined * * RETURN: TRUE if buffer contains a UNICODE string * * DESCRIPTION: Determine if a buffer Op contains a Unicode string * ******************************************************************************/ BOOLEAN AcpiDmIsUnicodeBuffer ( ACPI_PARSE_OBJECT *Op) { UINT8 *ByteData; UINT32 ByteCount; UINT32 WordCount; ACPI_PARSE_OBJECT *SizeOp; ACPI_PARSE_OBJECT *NextOp; UINT32 i; /* Buffer size is the buffer argument */ SizeOp = Op->Common.Value.Arg; if (!SizeOp) { return (FALSE); } /* Next, the initializer byte list to examine */ NextOp = SizeOp->Common.Next; if (!NextOp) { return (FALSE); } /* Extract the byte list info */ ByteData = NextOp->Named.Data; ByteCount = (UINT32) NextOp->Common.Value.Integer; WordCount = ACPI_DIV_2 (ByteCount); /* * Unicode string must have an even number of bytes and last * word must be zero */ if ((!ByteCount) || (ByteCount < 4) || (ByteCount & 1) || ((UINT16 *) (void *) ByteData)[WordCount - 1] != 0) { return (FALSE); } /* * For each word, 1st byte must be printable ascii, and the * 2nd byte must be zero. This does not allow for escape * sequences, but it is the most secure way to detect a * unicode string. */ for (i = 0; i < (ByteCount - 2); i += 2) { if ((ByteData[i] == 0) || !(isprint (ByteData[i])) || (ByteData[(ACPI_SIZE) i + 1] != 0)) { return (FALSE); } } /* Ignore the Size argument in the disassembly of this buffer op */ SizeOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiDmIsStringBuffer * * PARAMETERS: Op - Buffer Object to be examined * * RETURN: TRUE if buffer contains a ASCII string, FALSE otherwise * * DESCRIPTION: Determine if a buffer Op contains a ASCII string * ******************************************************************************/ BOOLEAN AcpiDmIsStringBuffer ( ACPI_PARSE_OBJECT *Op) { UINT8 *ByteData; UINT32 ByteCount; ACPI_PARSE_OBJECT *SizeOp; ACPI_PARSE_OBJECT *NextOp; UINT32 i; /* Buffer size is the buffer argument */ SizeOp = Op->Common.Value.Arg; if (!SizeOp) { return (FALSE); } /* Next, the initializer byte list to examine */ NextOp = SizeOp->Common.Next; if (!NextOp) { return (FALSE); } /* Extract the byte list info */ ByteData = NextOp->Named.Data; ByteCount = (UINT32) NextOp->Common.Value.Integer; /* Last byte must be the null terminator */ if ((!ByteCount) || (ByteCount < 2) || (ByteData[ByteCount-1] != 0)) { return (FALSE); } /* * Check for a possible standalone resource EndTag, ignore it * here. However, this sequence is also the string "Y", but * this seems rare enough to be acceptable. */ if ((ByteCount == 2) && (ByteData[0] == 0x79)) { return (FALSE); } /* Check all bytes for ASCII */ for (i = 0; i < (ByteCount - 1); i++) { /* * TBD: allow some escapes (non-ascii chars). * they will be handled in the string output routine */ /* Not a string if not printable ascii */ if (!isprint (ByteData[i])) { return (FALSE); } } return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiDmIsPldBuffer * * PARAMETERS: Op - Buffer Object to be examined * * RETURN: TRUE if buffer appears to contain data produced via the * ToPLD macro, FALSE otherwise * * DESCRIPTION: Determine if a buffer Op contains a _PLD structure * ******************************************************************************/ BOOLEAN AcpiDmIsPldBuffer ( ACPI_PARSE_OBJECT *Op) { ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *SizeOp; ACPI_PARSE_OBJECT *ByteListOp; ACPI_PARSE_OBJECT *ParentOp; UINT64 BufferSize; UINT64 InitializerSize; if (!Op) { return (FALSE); } /* * Get the BufferSize argument - Buffer(BufferSize) * If the buffer was generated by the ToPld macro, it must * be a BYTE constant. */ SizeOp = Op->Common.Value.Arg; if (!SizeOp || SizeOp->Common.AmlOpcode != AML_BYTE_OP) { return (FALSE); } /* Check the declared BufferSize, two possibilities */ BufferSize = SizeOp->Common.Value.Integer; if ((BufferSize != ACPI_PLD_REV1_BUFFER_SIZE) && (BufferSize != ACPI_PLD_REV2_BUFFER_SIZE)) { return (FALSE); } /* * Check the initializer list length. This is the actual * number of bytes in the buffer as counted by the AML parser. * The declared BufferSize can be larger than the actual length. * However, for the ToPLD macro, the BufferSize will be the same * as the initializer list length. */ ByteListOp = SizeOp->Common.Next; if (!ByteListOp) { return (FALSE); /* Zero-length buffer case */ } InitializerSize = ByteListOp->Common.Value.Integer; if ((InitializerSize != ACPI_PLD_REV1_BUFFER_SIZE) && (InitializerSize != ACPI_PLD_REV2_BUFFER_SIZE)) { return (FALSE); } /* Final size check */ if (BufferSize != InitializerSize) { return (FALSE); } /* Now examine the buffer parent */ ParentOp = Op->Common.Parent; if (!ParentOp) { return (FALSE); } /* Check for form: Name(_PLD, Buffer() {}). Not legal, however */ if (ParentOp->Common.AmlOpcode == AML_NAME_OP) { Node = ParentOp->Common.Node; if (ACPI_COMPARE_NAMESEG (Node->Name.Ascii, METHOD_NAME__PLD)) { /* Ignore the Size argument in the disassembly of this buffer op */ SizeOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; return (TRUE); } return (FALSE); } /* * Check for proper form: Name(_PLD, Package() {ToPLD()}) * * Note: All other forms such as * Return (Package() {ToPLD()}) * Local0 = ToPLD() * etc. are not converted back to the ToPLD macro, because * there is really no deterministic way to disassemble the buffer * back to the ToPLD macro, other than trying to find the "_PLD" * name */ if (ParentOp->Common.AmlOpcode == AML_PACKAGE_OP) { ParentOp = ParentOp->Common.Parent; if (!ParentOp) { return (FALSE); } if (ParentOp->Common.AmlOpcode == AML_NAME_OP) { Node = ParentOp->Common.Node; if (ACPI_COMPARE_NAMESEG (Node->Name.Ascii, METHOD_NAME__PLD)) { /* Ignore the Size argument in the disassembly of this buffer op */ SizeOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; return (TRUE); } } } return (FALSE); } /******************************************************************************* * * FUNCTION: AcpiDmFindNameByIndex * * PARAMETERS: Index - Index of array to check * List - Array to reference * * RETURN: String from List or empty string * * DESCRIPTION: Finds and returns the char string located at the given index * position in List. * ******************************************************************************/ static const char * AcpiDmFindNameByIndex ( UINT64 Index, const char **List) { const char *NameString; UINT32 i; /* Bounds check */ NameString = List[0]; i = 0; while (NameString) { i++; NameString = List[i]; } if (Index >= i) { /* TBD: Add error msg */ return (""); } return (List[Index]); } /******************************************************************************* * * FUNCTION: AcpiDmPldBuffer * * PARAMETERS: Level - Current source code indentation level * ByteData - Pointer to the byte list * ByteCount - Length of the byte list * * RETURN: None * * DESCRIPTION: Dump and format the contents of a _PLD buffer object * ******************************************************************************/ #define ACPI_PLD_OUTPUT08 "%*.s%-22s = 0x%X,\n", ACPI_MUL_4 (Level), " " #define ACPI_PLD_OUTPUT08P "%*.s%-22s = 0x%X)\n", ACPI_MUL_4 (Level), " " #define ACPI_PLD_OUTPUT16 "%*.s%-22s = 0x%X,\n", ACPI_MUL_4 (Level), " " #define ACPI_PLD_OUTPUT16P "%*.s%-22s = 0x%X)\n", ACPI_MUL_4 (Level), " " #define ACPI_PLD_OUTPUT24 "%*.s%-22s = 0x%X,\n", ACPI_MUL_4 (Level), " " #define ACPI_PLD_OUTPUTSTR "%*.s%-22s = \"%s\",\n", ACPI_MUL_4 (Level), " " static void AcpiDmPldBuffer ( UINT32 Level, UINT8 *ByteData, UINT32 ByteCount) { ACPI_PLD_INFO *PldInfo; ACPI_STATUS Status; /* Check for valid byte count */ if (ByteCount < ACPI_PLD_REV1_BUFFER_SIZE) { return; } /* Convert _PLD buffer to local _PLD struct */ Status = AcpiDecodePldBuffer (ByteData, ByteCount, &PldInfo); if (ACPI_FAILURE (Status)) { return; } AcpiOsPrintf ("\n"); /* First 32-bit dword */ AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Revision", PldInfo->Revision); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_IgnoreColor", PldInfo->IgnoreColor); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Red", PldInfo->Red); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Green", PldInfo->Green); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Blue", PldInfo->Blue); /* Second 32-bit dword */ AcpiOsPrintf (ACPI_PLD_OUTPUT16, "PLD_Width", PldInfo->Width); AcpiOsPrintf (ACPI_PLD_OUTPUT16, "PLD_Height", PldInfo->Height); /* Third 32-bit dword */ AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_UserVisible", PldInfo->UserVisible); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Dock", PldInfo->Dock); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Lid", PldInfo->Lid); AcpiOsPrintf (ACPI_PLD_OUTPUTSTR, "PLD_Panel", AcpiDmFindNameByIndex(PldInfo->Panel, AcpiGbl_PldPanelList)); AcpiOsPrintf (ACPI_PLD_OUTPUTSTR, "PLD_VerticalPosition", AcpiDmFindNameByIndex(PldInfo->VerticalPosition, AcpiGbl_PldVerticalPositionList)); AcpiOsPrintf (ACPI_PLD_OUTPUTSTR, "PLD_HorizontalPosition", AcpiDmFindNameByIndex(PldInfo->HorizontalPosition, AcpiGbl_PldHorizontalPositionList)); AcpiOsPrintf (ACPI_PLD_OUTPUTSTR, "PLD_Shape", AcpiDmFindNameByIndex(PldInfo->Shape, AcpiGbl_PldShapeList)); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_GroupOrientation", PldInfo->GroupOrientation); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_GroupToken", PldInfo->GroupToken); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_GroupPosition", PldInfo->GroupPosition); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Bay", PldInfo->Bay); /* Fourth 32-bit dword */ AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Ejectable", PldInfo->Ejectable); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_EjectRequired", PldInfo->OspmEjectRequired); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_CabinetNumber", PldInfo->CabinetNumber); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_CardCageNumber", PldInfo->CardCageNumber); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Reference", PldInfo->Reference); AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Rotation", PldInfo->Rotation); if (ByteCount >= ACPI_PLD_REV2_BUFFER_SIZE) { AcpiOsPrintf (ACPI_PLD_OUTPUT08, "PLD_Order", PldInfo->Order); /* Fifth 32-bit dword */ AcpiOsPrintf (ACPI_PLD_OUTPUT16, "PLD_VerticalOffset", PldInfo->VerticalOffset); AcpiOsPrintf (ACPI_PLD_OUTPUT16P, "PLD_HorizontalOffset", PldInfo->HorizontalOffset); } else /* Rev 1 buffer */ { AcpiOsPrintf (ACPI_PLD_OUTPUT08P, "PLD_Order", PldInfo->Order); } ACPI_FREE (PldInfo); } /******************************************************************************* * * FUNCTION: AcpiDmUnicode * * PARAMETERS: Op - Byte List op containing Unicode string * * RETURN: None * * DESCRIPTION: Dump Unicode string as a standard ASCII string. (Remove * the extra zero bytes). * ******************************************************************************/ static void AcpiDmUnicode ( ACPI_PARSE_OBJECT *Op) { UINT16 *WordData; UINT32 WordCount; UINT32 i; int OutputValue; /* Extract the buffer info as a WORD buffer */ WordData = ACPI_CAST_PTR (UINT16, Op->Named.Data); WordCount = ACPI_DIV_2 (((UINT32) Op->Common.Value.Integer)); /* Write every other byte as an ASCII character */ AcpiOsPrintf ("\""); for (i = 0; i < (WordCount - 1); i++) { OutputValue = (int) WordData[i]; /* Handle values that must be escaped */ if ((OutputValue == '\"') || (OutputValue == '\\')) { AcpiOsPrintf ("\\%c", OutputValue); } else if (!isprint (OutputValue)) { AcpiOsPrintf ("\\x%2.2X", OutputValue); } else { AcpiOsPrintf ("%c", OutputValue); } } AcpiOsPrintf ("\")"); } /******************************************************************************* * * FUNCTION: AcpiDmGetHardwareIdType * * PARAMETERS: Op - Op to be examined * * RETURN: None * * DESCRIPTION: Determine the type of the argument to a _HID or _CID * 1) Strings are allowed * 2) If Integer, determine if it is a valid EISAID * ******************************************************************************/ static void AcpiDmGetHardwareIdType ( ACPI_PARSE_OBJECT *Op) { UINT32 BigEndianId; UINT32 Prefix[3]; UINT32 i; switch (Op->Common.AmlOpcode) { case AML_STRING_OP: /* Mark this string as an _HID/_CID string */ Op->Common.DisasmOpcode = ACPI_DASM_HID_STRING; break; case AML_WORD_OP: case AML_DWORD_OP: /* Determine if a Word/Dword is a valid encoded EISAID */ /* Swap from little-endian to big-endian to simplify conversion */ BigEndianId = AcpiUtDwordByteSwap ((UINT32) Op->Common.Value.Integer); /* Create the 3 leading ASCII letters */ Prefix[0] = ((BigEndianId >> 26) & 0x1F) + 0x40; Prefix[1] = ((BigEndianId >> 21) & 0x1F) + 0x40; Prefix[2] = ((BigEndianId >> 16) & 0x1F) + 0x40; /* Verify that all 3 are ascii and alpha */ for (i = 0; i < 3; i++) { if (!ACPI_IS_ASCII (Prefix[i]) || !isalpha (Prefix[i])) { return; } } /* Mark this node as convertible to an EISA ID string */ Op->Common.DisasmOpcode = ACPI_DASM_EISAID; break; default: break; } } /******************************************************************************* * * FUNCTION: AcpiDmCheckForHardwareId * * PARAMETERS: Op - Op to be examined * * RETURN: None * * DESCRIPTION: Determine if a Name() Op is a _HID/_CID. * ******************************************************************************/ void AcpiDmCheckForHardwareId ( ACPI_PARSE_OBJECT *Op) { UINT32 Name; ACPI_PARSE_OBJECT *NextOp; /* Get the NameSegment */ Name = AcpiPsGetName (Op); if (!Name) { return; } NextOp = AcpiPsGetDepthNext (NULL, Op); if (!NextOp) { return; } /* Check for _HID - has one argument */ if (ACPI_COMPARE_NAMESEG (&Name, METHOD_NAME__HID)) { AcpiDmGetHardwareIdType (NextOp); return; } /* Exit if not _CID */ if (!ACPI_COMPARE_NAMESEG (&Name, METHOD_NAME__CID)) { return; } /* _CID can contain a single argument or a package */ if (NextOp->Common.AmlOpcode != AML_PACKAGE_OP) { AcpiDmGetHardwareIdType (NextOp); return; } /* _CID with Package: get the package length, check all elements */ NextOp = AcpiPsGetDepthNext (NULL, NextOp); if (!NextOp) { return; } /* Don't need to use the length, just walk the peer list */ NextOp = NextOp->Common.Next; while (NextOp) { AcpiDmGetHardwareIdType (NextOp); NextOp = NextOp->Common.Next; } } /******************************************************************************* * * FUNCTION: AcpiDmDecompressEisaId * * PARAMETERS: EncodedId - Raw encoded EISA ID. * * RETURN: None * * DESCRIPTION: Convert an encoded EISAID back to the original ASCII String * and emit the correct ASL statement. If the ID is known, emit * a description of the ID as a comment. * ******************************************************************************/ void AcpiDmDecompressEisaId ( UINT32 EncodedId) { char IdBuffer[ACPI_EISAID_STRING_SIZE]; const AH_DEVICE_ID *Info; /* Convert EISAID to a string an emit the statement */ AcpiExEisaIdToString (IdBuffer, EncodedId); AcpiOsPrintf ("EisaId (\"%s\")", IdBuffer); /* If we know about the ID, emit the description */ Info = AcpiAhMatchHardwareId (IdBuffer); if (Info) { AcpiOsPrintf (" /* %s */", Info->Description); } } acpica-unix-20250404/source/components/disassembler/dmnames.c0000775000175000017500000002705114773714132023500 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dmnames - AML disassembler, names, namestrings, pathnames * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acnamesp.h" #include "acdisasm.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("dmnames") /* Local prototypes */ #ifdef ACPI_OBSOLETE_FUNCTIONS void AcpiDmDisplayPath ( ACPI_PARSE_OBJECT *Op); #endif /******************************************************************************* * * FUNCTION: AcpiDmDumpName * * PARAMETERS: Name - 4 character ACPI name * * RETURN: Final length of name * * DESCRIPTION: Dump an ACPI name, minus any trailing underscores. * ******************************************************************************/ UINT32 AcpiDmDumpName ( UINT32 Name) { UINT32 i; UINT32 Length; char NewName[4]; /* Copy name locally in case the original name is not writeable */ *ACPI_CAST_PTR (UINT32, &NewName[0]) = Name; /* Ensure that the name is printable, even if we have to fix it */ AcpiUtRepairName (NewName); /* Remove all trailing underscores from the name */ Length = ACPI_NAMESEG_SIZE; for (i = (ACPI_NAMESEG_SIZE - 1); i != 0; i--) { if (NewName[i] == '_') { Length--; } else { break; } } /* Dump the name, up to the start of the trailing underscores */ for (i = 0; i < Length; i++) { AcpiOsPrintf ("%c", NewName[i]); } return (Length); } /******************************************************************************* * * FUNCTION: AcpiPsDisplayObjectPathname * * PARAMETERS: WalkState - Current walk state * Op - Object whose pathname is to be obtained * * RETURN: Status * * DESCRIPTION: Display the pathname associated with a named object. Two * versions. One searches the parse tree (for parser-only * applications suchas AcpiDump), and the other searches the * ACPI namespace (the parse tree is probably deleted) * ******************************************************************************/ ACPI_STATUS AcpiPsDisplayObjectPathname ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_BUFFER Buffer; UINT32 DebugLevel; /* Save current debug level so we don't get extraneous debug output */ DebugLevel = AcpiDbgLevel; AcpiDbgLevel = 0; /* Just get the Node out of the Op object */ Node = Op->Common.Node; if (!Node) { /* Node not defined in this scope, look it up */ Status = AcpiNsLookup (WalkState->ScopeInfo, Op->Common.Value.String, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &(Node)); if (ACPI_FAILURE (Status)) { /* * We can't get the pathname since the object is not in the * namespace. This can happen during single stepping * where a dynamic named object is *about* to be created. */ AcpiOsPrintf (" [Path not found]"); goto Exit; } /* Save it for next time. */ Op->Common.Node = Node; } /* Convert NamedDesc/handle to a full pathname */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (Node, &Buffer, FALSE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("****Could not get pathname****)"); goto Exit; } AcpiOsPrintf (" (Path %s)", (char *) Buffer.Pointer); ACPI_FREE (Buffer.Pointer); Exit: /* Restore the debug level */ AcpiDbgLevel = DebugLevel; return (Status); } /******************************************************************************* * * FUNCTION: AcpiDmNamestring * * PARAMETERS: Name - ACPI Name string to store * * RETURN: None * * DESCRIPTION: Decode and dump an ACPI namestring. Handles prefix characters * ******************************************************************************/ void AcpiDmNamestring ( char *Name) { UINT32 SegCount; if (!Name) { return; } /* Handle all Scope Prefix operators */ while (ACPI_IS_ROOT_PREFIX (ACPI_GET8 (Name)) || ACPI_IS_PARENT_PREFIX (ACPI_GET8 (Name))) { /* Append prefix character */ AcpiOsPrintf ("%1c", ACPI_GET8 (Name)); Name++; } switch (ACPI_GET8 (Name)) { case 0: SegCount = 0; break; case AML_DUAL_NAME_PREFIX: SegCount = 2; Name++; break; case AML_MULTI_NAME_PREFIX: SegCount = (UINT32) ACPI_GET8 (Name + 1); Name += 2; break; default: SegCount = 1; break; } while (SegCount) { /* Append Name segment */ AcpiDmDumpName (*ACPI_CAST_PTR (UINT32, Name)); SegCount--; if (SegCount) { /* Not last name, append dot separator */ AcpiOsPrintf ("."); } Name += ACPI_NAMESEG_SIZE; } } #ifdef ACPI_OBSOLETE_FUNCTIONS /******************************************************************************* * * FUNCTION: AcpiDmDisplayPath * * PARAMETERS: Op - Named Op whose path is to be constructed * * RETURN: None * * DESCRIPTION: Walk backwards from current scope and display the name * of each previous level of scope up to the root scope * (like "pwd" does with file systems) * ******************************************************************************/ void AcpiDmDisplayPath ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Prev; ACPI_PARSE_OBJECT *Search; UINT32 Name; BOOLEAN DoDot = FALSE; ACPI_PARSE_OBJECT *NamePath; const ACPI_OPCODE_INFO *OpInfo; /* We are only interested in named objects */ OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (!(OpInfo->Flags & AML_NSNODE)) { return; } if (OpInfo->Flags & AML_CREATE) { /* Field creation - check for a fully qualified namepath */ if (Op->Common.AmlOpcode == AML_CREATE_FIELD_OP) { NamePath = AcpiPsGetArg (Op, 3); } else { NamePath = AcpiPsGetArg (Op, 2); } if ((NamePath) && (NamePath->Common.Value.String) && (ACPI_IS_ROOT_PREFIX (NamePath->Common.Value.String[0]))) { AcpiDmNamestring (NamePath->Common.Value.String); return; } } Prev = NULL; /* Start with Root Node */ while (Prev != Op) { /* Search upwards in the tree to find scope with "prev" as its parent */ Search = Op; for (; ;) { if (Search->Common.Parent == Prev) { break; } /* Go up one level */ Search = Search->Common.Parent; } if (Prev) { OpInfo = AcpiPsGetOpcodeInfo (Search->Common.AmlOpcode); if (!(OpInfo->Flags & AML_FIELD)) { /* Below root scope, append scope name */ if (DoDot) { /* Append dot */ AcpiOsPrintf ("."); } if (OpInfo->Flags & AML_CREATE) { if (Op->Common.AmlOpcode == AML_CREATE_FIELD_OP) { NamePath = AcpiPsGetArg (Op, 3); } else { NamePath = AcpiPsGetArg (Op, 2); } if ((NamePath) && (NamePath->Common.Value.String)) { AcpiDmDumpName (NamePath->Common.Value.String); } } else { Name = AcpiPsGetName (Search); AcpiDmDumpName ((char *) &Name); } DoDot = TRUE; } } Prev = Search; } } /******************************************************************************* * * FUNCTION: AcpiDmValidateName * * PARAMETERS: Name - 4 character ACPI name * * RETURN: None * * DESCRIPTION: Lookup the name * ******************************************************************************/ void AcpiDmValidateName ( char *Name, ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *TargetOp; if ((!Name) || (!Op->Common.Parent)) { return; } if (!Op->Common.Node) { AcpiOsPrintf ( " /**** Name not found or not accessible from this scope ****/ "); } if ((!Name) || (!Op->Common.Parent)) { return; } TargetOp = AcpiPsFind (Op, Name, 0, 0); if (!TargetOp) { /* * Didn't find the name in the parse tree. This may be * a problem, or it may simply be one of the predefined names * (such as _OS_). Rather than worry about looking up all * the predefined names, just display the name as given */ AcpiOsPrintf ( " /**** Name not found or not accessible from this scope ****/ "); } } #endif acpica-unix-20250404/source/components/dispatcher/0000775000175000017500000000000014773714132021351 5ustar ivanhuivanhuacpica-unix-20250404/source/components/dispatcher/dsmethod.c0000775000175000017500000007236214773714132023341 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dsmethod - Parser/Interpreter interface - control method parsing * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #include "acparser.h" #include "amlcode.h" #include "acdebug.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dsmethod") /* Local prototypes */ static ACPI_STATUS AcpiDsDetectNamedOpcodes ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **OutOp); static ACPI_STATUS AcpiDsCreateMethodMutex ( ACPI_OPERAND_OBJECT *MethodDesc); /******************************************************************************* * * FUNCTION: AcpiDsAutoSerializeMethod * * PARAMETERS: Node - Namespace Node of the method * ObjDesc - Method object attached to node * * RETURN: Status * * DESCRIPTION: Parse a control method AML to scan for control methods that * need serialization due to the creation of named objects. * * NOTE: It is a bit of overkill to mark all such methods serialized, since * there is only a problem if the method actually blocks during execution. * A blocking operation is, for example, a Sleep() operation, or any access * to an operation region. However, it is probably not possible to easily * detect whether a method will block or not, so we simply mark all suspicious * methods as serialized. * * NOTE2: This code is essentially a generic routine for parsing a single * control method. * ******************************************************************************/ ACPI_STATUS AcpiDsAutoSerializeMethod ( ACPI_NAMESPACE_NODE *Node, ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *Op = NULL; ACPI_WALK_STATE *WalkState; ACPI_FUNCTION_TRACE_PTR (DsAutoSerializeMethod, Node); ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Method auto-serialization parse [%4.4s] %p\n", AcpiUtGetNodeName (Node), Node)); /* Create/Init a root op for the method parse tree */ Op = AcpiPsAllocOp (AML_METHOD_OP, ObjDesc->Method.AmlStart); if (!Op) { return_ACPI_STATUS (AE_NO_MEMORY); } AcpiPsSetName (Op, Node->Name.Integer); Op->Common.Node = Node; /* Create and initialize a new walk state */ WalkState = AcpiDsCreateWalkState (Node->OwnerId, NULL, NULL, NULL); if (!WalkState) { AcpiPsFreeOp (Op); return_ACPI_STATUS (AE_NO_MEMORY); } Status = AcpiDsInitAmlWalk (WalkState, Op, Node, ObjDesc->Method.AmlStart, ObjDesc->Method.AmlLength, NULL, 0); if (ACPI_FAILURE (Status)) { AcpiDsDeleteWalkState (WalkState); AcpiPsFreeOp (Op); return_ACPI_STATUS (Status); } WalkState->DescendingCallback = AcpiDsDetectNamedOpcodes; /* Parse the method, scan for creation of named objects */ Status = AcpiPsParseAml (WalkState); AcpiPsDeleteParseTree (Op); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsDetectNamedOpcodes * * PARAMETERS: WalkState - Current state of the parse tree walk * OutOp - Unused, required for parser interface * * RETURN: Status * * DESCRIPTION: Descending callback used during the loading of ACPI tables. * Currently used to detect methods that must be marked serialized * in order to avoid problems with the creation of named objects. * ******************************************************************************/ static ACPI_STATUS AcpiDsDetectNamedOpcodes ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **OutOp) { ACPI_FUNCTION_NAME (AcpiDsDetectNamedOpcodes); /* We are only interested in opcodes that create a new name */ if (!(WalkState->OpInfo->Flags & (AML_NAMED | AML_CREATE | AML_FIELD))) { return (AE_OK); } /* * At this point, we know we have a Named object opcode. * Mark the method as serialized. Later code will create a mutex for * this method to enforce serialization. * * Note, ACPI_METHOD_IGNORE_SYNC_LEVEL flag means that we will ignore the * Sync Level mechanism for this method, even though it is now serialized. * Otherwise, there can be conflicts with existing ASL code that actually * uses sync levels. */ WalkState->MethodDesc->Method.SyncLevel = 0; WalkState->MethodDesc->Method.InfoFlags |= (ACPI_METHOD_SERIALIZED | ACPI_METHOD_IGNORE_SYNC_LEVEL); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Method serialized [%4.4s] %p - [%s] (%4.4X)\n", WalkState->MethodNode->Name.Ascii, WalkState->MethodNode, WalkState->OpInfo->Name, WalkState->Opcode)); /* Abort the parse, no need to examine this method any further */ return (AE_CTRL_TERMINATE); } /******************************************************************************* * * FUNCTION: AcpiDsMethodError * * PARAMETERS: Status - Execution status * WalkState - Current state * * RETURN: Status * * DESCRIPTION: Called on method error. Invoke the global exception handler if * present, dump the method data if the debugger is configured * * Note: Allows the exception handler to change the status code * ******************************************************************************/ ACPI_STATUS AcpiDsMethodError ( ACPI_STATUS Status, ACPI_WALK_STATE *WalkState) { UINT32 AmlOffset; ACPI_NAME Name = 0; ACPI_FUNCTION_ENTRY (); /* Ignore AE_OK and control exception codes */ if (ACPI_SUCCESS (Status) || (Status & AE_CODE_CONTROL)) { return (Status); } /* Invoke the global exception handler */ if (AcpiGbl_ExceptionHandler) { /* Exit the interpreter, allow handler to execute methods */ AcpiExExitInterpreter (); /* * Handler can map the exception code to anything it wants, including * AE_OK, in which case the executing method will not be aborted. */ AmlOffset = (UINT32) ACPI_PTR_DIFF (WalkState->Aml, WalkState->ParserState.AmlStart); if (WalkState->MethodNode) { Name = WalkState->MethodNode->Name.Integer; } else if (WalkState->DeferredNode) { Name = WalkState->DeferredNode->Name.Integer; } Status = AcpiGbl_ExceptionHandler (Status, Name, WalkState->Opcode, AmlOffset, NULL); AcpiExEnterInterpreter (); } AcpiDsClearImplicitReturn (WalkState); if (ACPI_FAILURE (Status)) { AcpiDsDumpMethodStack (Status, WalkState, WalkState->Op); /* Display method locals/args if debugger is present */ #ifdef ACPI_DEBUGGER AcpiDbDumpMethodInfo (Status, WalkState); #endif } return (Status); } /******************************************************************************* * * FUNCTION: AcpiDsCreateMethodMutex * * PARAMETERS: ObjDesc - The method object * * RETURN: Status * * DESCRIPTION: Create a mutex object for a serialized control method * ******************************************************************************/ static ACPI_STATUS AcpiDsCreateMethodMutex ( ACPI_OPERAND_OBJECT *MethodDesc) { ACPI_OPERAND_OBJECT *MutexDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (DsCreateMethodMutex); /* Create the new mutex object */ MutexDesc = AcpiUtCreateInternalObject (ACPI_TYPE_MUTEX); if (!MutexDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Create the actual OS Mutex */ Status = AcpiOsCreateMutex (&MutexDesc->Mutex.OsMutex); if (ACPI_FAILURE (Status)) { AcpiUtDeleteObjectDesc (MutexDesc); return_ACPI_STATUS (Status); } MutexDesc->Mutex.SyncLevel = MethodDesc->Method.SyncLevel; MethodDesc->Method.Mutex = MutexDesc; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsBeginMethodExecution * * PARAMETERS: MethodNode - Node of the method * ObjDesc - The method object * WalkState - current state, NULL if not yet executing * a method. * * RETURN: Status * * DESCRIPTION: Prepare a method for execution. Parses the method if necessary, * increments the thread count, and waits at the method semaphore * for clearance to execute. * ******************************************************************************/ ACPI_STATUS AcpiDsBeginMethodExecution ( ACPI_NAMESPACE_NODE *MethodNode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_PTR (DsBeginMethodExecution, MethodNode); if (!MethodNode) { return_ACPI_STATUS (AE_NULL_ENTRY); } AcpiExStartTraceMethod (MethodNode, ObjDesc, WalkState); /* Prevent wraparound of thread count */ if (ObjDesc->Method.ThreadCount == ACPI_UINT8_MAX) { ACPI_ERROR ((AE_INFO, "Method reached maximum reentrancy limit (255)")); return_ACPI_STATUS (AE_AML_METHOD_LIMIT); } /* * If this method is serialized, we need to acquire the method mutex. */ if (ObjDesc->Method.InfoFlags & ACPI_METHOD_SERIALIZED) { /* * Create a mutex for the method if it is defined to be Serialized * and a mutex has not already been created. We defer the mutex creation * until a method is actually executed, to minimize the object count */ if (!ObjDesc->Method.Mutex) { Status = AcpiDsCreateMethodMutex (ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* * The CurrentSyncLevel (per-thread) must be less than or equal to * the sync level of the method. This mechanism provides some * deadlock prevention. * * If the method was auto-serialized, we just ignore the sync level * mechanism, because auto-serialization of methods can interfere * with ASL code that actually uses sync levels. * * Top-level method invocation has no walk state at this point */ if (WalkState && (!(ObjDesc->Method.InfoFlags & ACPI_METHOD_IGNORE_SYNC_LEVEL)) && (WalkState->Thread->CurrentSyncLevel > ObjDesc->Method.Mutex->Mutex.SyncLevel)) { ACPI_ERROR ((AE_INFO, "Cannot acquire Mutex for method [%4.4s]" ", current SyncLevel is too large (%u)", AcpiUtGetNodeName (MethodNode), WalkState->Thread->CurrentSyncLevel)); return_ACPI_STATUS (AE_AML_MUTEX_ORDER); } /* * Obtain the method mutex if necessary. Do not acquire mutex for a * recursive call. */ if (!WalkState || !ObjDesc->Method.Mutex->Mutex.ThreadId || (WalkState->Thread->ThreadId != ObjDesc->Method.Mutex->Mutex.ThreadId)) { /* * Acquire the method mutex. This releases the interpreter if we * block (and reacquires it before it returns) */ Status = AcpiExSystemWaitMutex ( ObjDesc->Method.Mutex->Mutex.OsMutex, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Update the mutex and walk info and save the original SyncLevel */ if (WalkState) { ObjDesc->Method.Mutex->Mutex.OriginalSyncLevel = WalkState->Thread->CurrentSyncLevel; ObjDesc->Method.Mutex->Mutex.ThreadId = WalkState->Thread->ThreadId; /* * Update the current SyncLevel only if this is not an auto- * serialized method. In the auto case, we have to ignore * the sync level for the method mutex (created for the * auto-serialization) because we have no idea of what the * sync level should be. Therefore, just ignore it. */ if (!(ObjDesc->Method.InfoFlags & ACPI_METHOD_IGNORE_SYNC_LEVEL)) { WalkState->Thread->CurrentSyncLevel = ObjDesc->Method.SyncLevel; } } else { ObjDesc->Method.Mutex->Mutex.OriginalSyncLevel = ObjDesc->Method.Mutex->Mutex.SyncLevel; ObjDesc->Method.Mutex->Mutex.ThreadId = AcpiOsGetThreadId (); } } /* Always increase acquisition depth */ ObjDesc->Method.Mutex->Mutex.AcquisitionDepth++; } /* * Allocate an Owner ID for this method, only if this is the first thread * to begin concurrent execution. We only need one OwnerId, even if the * method is invoked recursively. */ if (!ObjDesc->Method.OwnerId) { Status = AcpiUtAllocateOwnerId (&ObjDesc->Method.OwnerId); if (ACPI_FAILURE (Status)) { goto Cleanup; } } /* * Increment the method parse tree thread count since it has been * reentered one more time (even if it is the same thread) */ ObjDesc->Method.ThreadCount++; AcpiMethodCount++; return_ACPI_STATUS (Status); Cleanup: /* On error, must release the method mutex (if present) */ if (ObjDesc->Method.Mutex) { AcpiOsReleaseMutex (ObjDesc->Method.Mutex->Mutex.OsMutex); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsCallControlMethod * * PARAMETERS: Thread - Info for this thread * ThisWalkState - Current walk state * Op - Current Op to be walked * * RETURN: Status * * DESCRIPTION: Transfer execution to a called control method * ******************************************************************************/ ACPI_STATUS AcpiDsCallControlMethod ( ACPI_THREAD_STATE *Thread, ACPI_WALK_STATE *ThisWalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *MethodNode; ACPI_WALK_STATE *NextWalkState = NULL; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_EVALUATE_INFO *Info; UINT32 i; ACPI_FUNCTION_TRACE_PTR (DsCallControlMethod, ThisWalkState); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Calling method %p, currentstate=%p\n", ThisWalkState->PrevOp, ThisWalkState)); /* * Get the namespace entry for the control method we are about to call */ MethodNode = ThisWalkState->MethodCallNode; if (!MethodNode) { return_ACPI_STATUS (AE_NULL_ENTRY); } ObjDesc = AcpiNsGetAttachedObject (MethodNode); if (!ObjDesc) { return_ACPI_STATUS (AE_NULL_OBJECT); } /* Init for new method, possibly wait on method mutex */ Status = AcpiDsBeginMethodExecution ( MethodNode, ObjDesc, ThisWalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Begin method parse/execution. Create a new walk state */ NextWalkState = AcpiDsCreateWalkState ( ObjDesc->Method.OwnerId, NULL, ObjDesc, Thread); if (!NextWalkState) { Status = AE_NO_MEMORY; goto Cleanup; } /* * The resolved arguments were put on the previous walk state's operand * stack. Operands on the previous walk state stack always * start at index 0. Also, null terminate the list of arguments */ ThisWalkState->Operands [ThisWalkState->NumOperands] = NULL; /* * Allocate and initialize the evaluation information block * TBD: this is somewhat inefficient, should change interface to * DsInitAmlWalk. For now, keeps this struct off the CPU stack */ Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO)); if (!Info) { Status = AE_NO_MEMORY; goto PopWalkState; } Info->Parameters = &ThisWalkState->Operands[0]; Status = AcpiDsInitAmlWalk (NextWalkState, NULL, MethodNode, ObjDesc->Method.AmlStart, ObjDesc->Method.AmlLength, Info, ACPI_IMODE_EXECUTE); ACPI_FREE (Info); if (ACPI_FAILURE (Status)) { goto PopWalkState; } NextWalkState->MethodNestingDepth = ThisWalkState->MethodNestingDepth + 1; /* * Delete the operands on the previous walkstate operand stack * (they were copied to new objects) */ for (i = 0; i < ObjDesc->Method.ParamCount; i++) { AcpiUtRemoveReference (ThisWalkState->Operands [i]); ThisWalkState->Operands [i] = NULL; } /* Clear the operand stack */ ThisWalkState->NumOperands = 0; ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "**** Begin nested execution of [%4.4s] **** WalkState=%p\n", MethodNode->Name.Ascii, NextWalkState)); ThisWalkState->MethodPathname = AcpiNsGetNormalizedPathname (MethodNode, TRUE); ThisWalkState->MethodIsNested = TRUE; /* Optional object evaluation log */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EVALUATION, "%-26s: %*s%s\n", " Nested method call", NextWalkState->MethodNestingDepth * 3, " ", &ThisWalkState->MethodPathname[1])); /* Invoke an internal method if necessary */ if (ObjDesc->Method.InfoFlags & ACPI_METHOD_INTERNAL_ONLY) { Status = ObjDesc->Method.Dispatch.Implementation (NextWalkState); if (Status == AE_OK) { Status = AE_CTRL_TERMINATE; } } return_ACPI_STATUS (Status); PopWalkState: /* On error, pop the walk state to be deleted from thread */ AcpiDsPopWalkState(Thread); Cleanup: /* On error, we must terminate the method properly */ AcpiDsTerminateControlMethod (ObjDesc, NextWalkState); AcpiDsDeleteWalkState (NextWalkState); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsRestartControlMethod * * PARAMETERS: WalkState - State for preempted method (caller) * ReturnDesc - Return value from the called method * * RETURN: Status * * DESCRIPTION: Restart a method that was preempted by another (nested) method * invocation. Handle the return value (if any) from the callee. * ******************************************************************************/ ACPI_STATUS AcpiDsRestartControlMethod ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ReturnDesc) { ACPI_STATUS Status; int SameAsImplicitReturn; ACPI_FUNCTION_TRACE_PTR (DsRestartControlMethod, WalkState); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "****Restart [%4.4s] Op %p ReturnValueFromCallee %p\n", AcpiUtGetNodeName (WalkState->MethodNode), WalkState->MethodCallOp, ReturnDesc)); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, " ReturnFromThisMethodUsed?=%X ResStack %p Walk %p\n", WalkState->ReturnUsed, WalkState->Results, WalkState)); /* Did the called method return a value? */ if (ReturnDesc) { /* Is the implicit return object the same as the return desc? */ SameAsImplicitReturn = (WalkState->ImplicitReturnObj == ReturnDesc); /* Are we actually going to use the return value? */ if (WalkState->ReturnUsed) { /* Save the return value from the previous method */ Status = AcpiDsResultPush (ReturnDesc, WalkState); if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ReturnDesc); return_ACPI_STATUS (Status); } /* * Save as THIS method's return value in case it is returned * immediately to yet another method */ WalkState->ReturnDesc = ReturnDesc; } /* * The following code is the optional support for the so-called * "implicit return". Some AML code assumes that the last value of the * method is "implicitly" returned to the caller, in the absence of an * explicit return value. * * Just save the last result of the method as the return value. * * NOTE: this is optional because the ASL language does not actually * support this behavior. */ else if (!AcpiDsDoImplicitReturn (ReturnDesc, WalkState, FALSE) || SameAsImplicitReturn) { /* * Delete the return value if it will not be used by the * calling method or remove one reference if the explicit return * is the same as the implicit return value. */ AcpiUtRemoveReference (ReturnDesc); } } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsTerminateControlMethod * * PARAMETERS: MethodDesc - Method object * WalkState - State associated with the method * * RETURN: None * * DESCRIPTION: Terminate a control method. Delete everything that the method * created, delete all locals and arguments, and delete the parse * tree if requested. * * MUTEX: Interpreter is locked * ******************************************************************************/ void AcpiDsTerminateControlMethod ( ACPI_OPERAND_OBJECT *MethodDesc, ACPI_WALK_STATE *WalkState) { ACPI_FUNCTION_TRACE_PTR (DsTerminateControlMethod, WalkState); /* MethodDesc is required, WalkState is optional */ if (!MethodDesc) { return_VOID; } if (WalkState) { /* Delete all arguments and locals */ AcpiDsMethodDataDeleteAll (WalkState); /* * Delete any namespace objects created anywhere within the * namespace by the execution of this method. Unless: * 1) This method is a module-level executable code method, in which * case we want make the objects permanent. * 2) There are other threads executing the method, in which case we * will wait until the last thread has completed. */ if (!(MethodDesc->Method.InfoFlags & ACPI_METHOD_MODULE_LEVEL) && (MethodDesc->Method.ThreadCount == 1)) { /* Delete any direct children of (created by) this method */ (void) AcpiExExitInterpreter (); AcpiNsDeleteNamespaceSubtree (WalkState->MethodNode); (void) AcpiExEnterInterpreter (); /* * Delete any objects that were created by this method * elsewhere in the namespace (if any were created). * Use of the ACPI_METHOD_MODIFIED_NAMESPACE optimizes the * deletion such that we don't have to perform an entire * namespace walk for every control method execution. */ if (MethodDesc->Method.InfoFlags & ACPI_METHOD_MODIFIED_NAMESPACE) { (void) AcpiExExitInterpreter (); AcpiNsDeleteNamespaceByOwner (MethodDesc->Method.OwnerId); (void) AcpiExEnterInterpreter (); MethodDesc->Method.InfoFlags &= ~ACPI_METHOD_MODIFIED_NAMESPACE; } } /* * If method is serialized, release the mutex and restore the * current sync level for this thread */ if (MethodDesc->Method.Mutex) { /* Acquisition Depth handles recursive calls */ MethodDesc->Method.Mutex->Mutex.AcquisitionDepth--; if (!MethodDesc->Method.Mutex->Mutex.AcquisitionDepth) { WalkState->Thread->CurrentSyncLevel = MethodDesc->Method.Mutex->Mutex.OriginalSyncLevel; AcpiOsReleaseMutex ( MethodDesc->Method.Mutex->Mutex.OsMutex); MethodDesc->Method.Mutex->Mutex.ThreadId = 0; } } } /* Decrement the thread count on the method */ if (MethodDesc->Method.ThreadCount) { MethodDesc->Method.ThreadCount--; } else { ACPI_ERROR ((AE_INFO, "Invalid zero thread count in method")); } /* Are there any other threads currently executing this method? */ if (MethodDesc->Method.ThreadCount) { /* * Additional threads. Do not release the OwnerId in this case, * we immediately reuse it for the next thread executing this method */ ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "*** Completed execution of one thread, %u threads remaining\n", MethodDesc->Method.ThreadCount)); } else { /* This is the only executing thread for this method */ /* * Support to dynamically change a method from NotSerialized to * Serialized if it appears that the method is incorrectly written and * does not support multiple thread execution. The best example of this * is if such a method creates namespace objects and blocks. A second * thread will fail with an AE_ALREADY_EXISTS exception. * * This code is here because we must wait until the last thread exits * before marking the method as serialized. */ if (MethodDesc->Method.InfoFlags & ACPI_METHOD_SERIALIZED_PENDING) { if (WalkState) { ACPI_INFO (( "Marking method %4.4s as Serialized " "because of AE_ALREADY_EXISTS error", WalkState->MethodNode->Name.Ascii)); } /* * Method tried to create an object twice and was marked as * "pending serialized". The probable cause is that the method * cannot handle reentrancy. * * The method was created as NotSerialized, but it tried to create * a named object and then blocked, causing the second thread * entrance to begin and then fail. Workaround this problem by * marking the method permanently as Serialized when the last * thread exits here. */ MethodDesc->Method.InfoFlags &= ~ACPI_METHOD_SERIALIZED_PENDING; MethodDesc->Method.InfoFlags |= (ACPI_METHOD_SERIALIZED | ACPI_METHOD_IGNORE_SYNC_LEVEL); MethodDesc->Method.SyncLevel = 0; } /* No more threads, we can free the OwnerId */ if (!(MethodDesc->Method.InfoFlags & ACPI_METHOD_MODULE_LEVEL)) { AcpiUtReleaseOwnerId (&MethodDesc->Method.OwnerId); } } AcpiExStopTraceMethod ((ACPI_NAMESPACE_NODE *) MethodDesc->Method.Node, MethodDesc, WalkState); return_VOID; } acpica-unix-20250404/source/components/dispatcher/dsutils.c0000775000175000017500000007037714773714132023225 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dsutils - Dispatcher utilities * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #include "acdebug.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dsutils") /******************************************************************************* * * FUNCTION: AcpiDsClearImplicitReturn * * PARAMETERS: WalkState - Current State * * RETURN: None. * * DESCRIPTION: Clear and remove a reference on an implicit return value. Used * to delete "stale" return values (if enabled, the return value * from every operator is saved at least momentarily, in case the * parent method exits.) * ******************************************************************************/ void AcpiDsClearImplicitReturn ( ACPI_WALK_STATE *WalkState) { ACPI_FUNCTION_NAME (DsClearImplicitReturn); /* * Slack must be enabled for this feature */ if (!AcpiGbl_EnableInterpreterSlack) { return; } if (WalkState->ImplicitReturnObj) { /* * Delete any "stale" implicit return. However, in * complex statements, the implicit return value can be * bubbled up several levels. */ ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Removing reference on stale implicit return obj %p\n", WalkState->ImplicitReturnObj)); AcpiUtRemoveReference (WalkState->ImplicitReturnObj); WalkState->ImplicitReturnObj = NULL; } } /******************************************************************************* * * FUNCTION: AcpiDsDoImplicitReturn * * PARAMETERS: ReturnDesc - The return value * WalkState - Current State * AddReference - True if a reference should be added to the * return object * * RETURN: TRUE if implicit return enabled, FALSE otherwise * * DESCRIPTION: Implements the optional "implicit return". We save the result * of every ASL operator and control method invocation in case the * parent method exit. Before storing a new return value, we * delete the previous return value. * ******************************************************************************/ BOOLEAN AcpiDsDoImplicitReturn ( ACPI_OPERAND_OBJECT *ReturnDesc, ACPI_WALK_STATE *WalkState, BOOLEAN AddReference) { ACPI_FUNCTION_NAME (DsDoImplicitReturn); /* * Slack must be enabled for this feature, and we must * have a valid return object */ if ((!AcpiGbl_EnableInterpreterSlack) || (!ReturnDesc)) { return (FALSE); } ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Result %p will be implicitly returned; Prev=%p\n", ReturnDesc, WalkState->ImplicitReturnObj)); /* * Delete any "stale" implicit return value first. However, in * complex statements, the implicit return value can be * bubbled up several levels, so we don't clear the value if it * is the same as the ReturnDesc. */ if (WalkState->ImplicitReturnObj) { if (WalkState->ImplicitReturnObj == ReturnDesc) { return (TRUE); } AcpiDsClearImplicitReturn (WalkState); } /* Save the implicit return value, add a reference if requested */ WalkState->ImplicitReturnObj = ReturnDesc; if (AddReference) { AcpiUtAddReference (ReturnDesc); } return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiDsIsResultUsed * * PARAMETERS: Op - Current Op * WalkState - Current State * * RETURN: TRUE if result is used, FALSE otherwise * * DESCRIPTION: Check if a result object will be used by the parent * ******************************************************************************/ BOOLEAN AcpiDsIsResultUsed ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { const ACPI_OPCODE_INFO *ParentInfo; ACPI_FUNCTION_TRACE_PTR (DsIsResultUsed, Op); /* Must have both an Op and a Result Object */ if (!Op) { ACPI_ERROR ((AE_INFO, "Null Op")); return_UINT8 (TRUE); } /* * We know that this operator is not a * Return() operator (would not come here.) The following code is the * optional support for a so-called "implicit return". Some AML code * assumes that the last value of the method is "implicitly" returned * to the caller. Just save the last result as the return value. * NOTE: this is optional because the ASL language does not actually * support this behavior. */ (void) AcpiDsDoImplicitReturn (WalkState->ResultObj, WalkState, TRUE); /* * Now determine if the parent will use the result * * If there is no parent, or the parent is a ScopeOp, we are executing * at the method level. An executing method typically has no parent, * since each method is parsed separately. A method invoked externally * via ExecuteControlMethod has a ScopeOp as the parent. */ if ((!Op->Common.Parent) || (Op->Common.Parent->Common.AmlOpcode == AML_SCOPE_OP)) { /* No parent, the return value cannot possibly be used */ ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "At Method level, result of [%s] not used\n", AcpiPsGetOpcodeName (Op->Common.AmlOpcode))); return_UINT8 (FALSE); } /* Get info on the parent. The RootOp is AML_SCOPE */ ParentInfo = AcpiPsGetOpcodeInfo (Op->Common.Parent->Common.AmlOpcode); if (ParentInfo->Class == AML_CLASS_UNKNOWN) { ACPI_ERROR ((AE_INFO, "Unknown parent opcode Op=%p", Op)); return_UINT8 (FALSE); } /* * Decide what to do with the result based on the parent. If * the parent opcode will not use the result, delete the object. * Otherwise leave it as is, it will be deleted when it is used * as an operand later. */ switch (ParentInfo->Class) { case AML_CLASS_CONTROL: switch (Op->Common.Parent->Common.AmlOpcode) { case AML_RETURN_OP: /* Never delete the return value associated with a return opcode */ goto ResultUsed; case AML_IF_OP: case AML_WHILE_OP: /* * If we are executing the predicate AND this is the predicate op, * we will use the return value */ if ((WalkState->ControlState->Common.State == ACPI_CONTROL_PREDICATE_EXECUTING) && (WalkState->ControlState->Control.PredicateOp == Op)) { goto ResultUsed; } break; default: /* Ignore other control opcodes */ break; } /* The general control opcode returns no result */ goto ResultNotUsed; case AML_CLASS_CREATE: /* * These opcodes allow TermArg(s) as operands and therefore * the operands can be method calls. The result is used. */ goto ResultUsed; case AML_CLASS_NAMED_OBJECT: if ((Op->Common.Parent->Common.AmlOpcode == AML_REGION_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_DATA_REGION_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_PACKAGE_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_BUFFER_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_INT_EVAL_SUBTREE_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_BANK_FIELD_OP)) { /* * These opcodes allow TermArg(s) as operands and therefore * the operands can be method calls. The result is used. */ goto ResultUsed; } goto ResultNotUsed; default: /* * In all other cases. the parent will actually use the return * object, so keep it. */ goto ResultUsed; } ResultUsed: ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Result of [%s] used by Parent [%s] Op=%p\n", AcpiPsGetOpcodeName (Op->Common.AmlOpcode), AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode), Op)); return_UINT8 (TRUE); ResultNotUsed: ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Result of [%s] not used by Parent [%s] Op=%p\n", AcpiPsGetOpcodeName (Op->Common.AmlOpcode), AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode), Op)); return_UINT8 (FALSE); } /******************************************************************************* * * FUNCTION: AcpiDsDeleteResultIfNotUsed * * PARAMETERS: Op - Current parse Op * ResultObj - Result of the operation * WalkState - Current state * * RETURN: Status * * DESCRIPTION: Used after interpretation of an opcode. If there is an internal * result descriptor, check if the parent opcode will actually use * this result. If not, delete the result now so that it will * not become orphaned. * ******************************************************************************/ void AcpiDsDeleteResultIfNotUsed ( ACPI_PARSE_OBJECT *Op, ACPI_OPERAND_OBJECT *ResultObj, ACPI_WALK_STATE *WalkState) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (DsDeleteResultIfNotUsed, ResultObj); if (!Op) { ACPI_ERROR ((AE_INFO, "Null Op")); return_VOID; } if (!ResultObj) { return_VOID; } if (!AcpiDsIsResultUsed (Op, WalkState)) { /* Must pop the result stack (ObjDesc should be equal to ResultObj) */ Status = AcpiDsResultPop (&ObjDesc, WalkState); if (ACPI_SUCCESS (Status)) { AcpiUtRemoveReference (ResultObj); } } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDsResolveOperands * * PARAMETERS: WalkState - Current walk state with operands on stack * * RETURN: Status * * DESCRIPTION: Resolve all operands to their values. Used to prepare * arguments to a control method invocation (a call from one * method to another.) * ******************************************************************************/ ACPI_STATUS AcpiDsResolveOperands ( ACPI_WALK_STATE *WalkState) { UINT32 i; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE_PTR (DsResolveOperands, WalkState); /* * Attempt to resolve each of the valid operands * Method arguments are passed by reference, not by value. This means * that the actual objects are passed, not copies of the objects. */ for (i = 0; i < WalkState->NumOperands; i++) { Status = AcpiExResolveToValue (&WalkState->Operands[i], WalkState); if (ACPI_FAILURE (Status)) { break; } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsClearOperands * * PARAMETERS: WalkState - Current walk state with operands on stack * * RETURN: None * * DESCRIPTION: Clear all operands on the current walk state operand stack. * ******************************************************************************/ void AcpiDsClearOperands ( ACPI_WALK_STATE *WalkState) { UINT32 i; ACPI_FUNCTION_TRACE_PTR (DsClearOperands, WalkState); /* Remove a reference on each operand on the stack */ for (i = 0; i < WalkState->NumOperands; i++) { /* * Remove a reference to all operands, including both * "Arguments" and "Targets". */ AcpiUtRemoveReference (WalkState->Operands[i]); WalkState->Operands[i] = NULL; } WalkState->NumOperands = 0; return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDsCreateOperand * * PARAMETERS: WalkState - Current walk state * Arg - Parse object for the argument * ArgIndex - Which argument (zero based) * * RETURN: Status * * DESCRIPTION: Translate a parse tree object that is an argument to an AML * opcode to the equivalent interpreter object. This may include * looking up a name or entering a new name into the internal * namespace. * ******************************************************************************/ ACPI_STATUS AcpiDsCreateOperand ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Arg, UINT32 ArgIndex) { ACPI_STATUS Status = AE_OK; char *NameString; UINT32 NameLength; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_PARSE_OBJECT *ParentOp; UINT16 Opcode; ACPI_INTERPRETER_MODE InterpreterMode; const ACPI_OPCODE_INFO *OpInfo; ACPI_FUNCTION_TRACE_PTR (DsCreateOperand, Arg); /* A valid name must be looked up in the namespace */ if ((Arg->Common.AmlOpcode == AML_INT_NAMEPATH_OP) && (Arg->Common.Value.String) && !(Arg->Common.Flags & ACPI_PARSEOP_IN_STACK)) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Getting a name: Arg=%p\n", Arg)); /* Get the entire name string from the AML stream */ Status = AcpiExGetNameString (ACPI_TYPE_ANY, Arg->Common.Value.Buffer, &NameString, &NameLength); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* All prefixes have been handled, and the name is in NameString */ /* * Special handling for BufferField declarations. This is a deferred * opcode that unfortunately defines the field name as the last * parameter instead of the first. We get here when we are performing * the deferred execution, so the actual name of the field is already * in the namespace. We don't want to attempt to look it up again * because we may be executing in a different scope than where the * actual opcode exists. */ if ((WalkState->DeferredNode) && (WalkState->DeferredNode->Type == ACPI_TYPE_BUFFER_FIELD) && (ArgIndex == (UINT32) ((WalkState->Opcode == AML_CREATE_FIELD_OP) ? 3 : 2))) { ObjDesc = ACPI_CAST_PTR ( ACPI_OPERAND_OBJECT, WalkState->DeferredNode); Status = AE_OK; } else /* All other opcodes */ { /* * Differentiate between a namespace "create" operation * versus a "lookup" operation (IMODE_LOAD_PASS2 vs. * IMODE_EXECUTE) in order to support the creation of * namespace objects during the execution of control methods. */ ParentOp = Arg->Common.Parent; OpInfo = AcpiPsGetOpcodeInfo (ParentOp->Common.AmlOpcode); if ((OpInfo->Flags & AML_NSNODE) && (ParentOp->Common.AmlOpcode != AML_INT_METHODCALL_OP) && (ParentOp->Common.AmlOpcode != AML_REGION_OP) && (ParentOp->Common.AmlOpcode != AML_INT_NAMEPATH_OP)) { /* Enter name into namespace if not found */ InterpreterMode = ACPI_IMODE_LOAD_PASS2; } else { /* Return a failure if name not found */ InterpreterMode = ACPI_IMODE_EXECUTE; } Status = AcpiNsLookup (WalkState->ScopeInfo, NameString, ACPI_TYPE_ANY, InterpreterMode, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, WalkState, ACPI_CAST_INDIRECT_PTR (ACPI_NAMESPACE_NODE, &ObjDesc)); /* * The only case where we pass through (ignore) a NOT_FOUND * error is for the CondRefOf opcode. */ if (Status == AE_NOT_FOUND) { if (ParentOp->Common.AmlOpcode == AML_CONDITIONAL_REF_OF_OP) { /* * For the Conditional Reference op, it's OK if * the name is not found; We just need a way to * indicate this to the interpreter, set the * object to the root */ ObjDesc = ACPI_CAST_PTR ( ACPI_OPERAND_OBJECT, AcpiGbl_RootNode); Status = AE_OK; } else if (ParentOp->Common.AmlOpcode == AML_EXTERNAL_OP) { /* * This opcode should never appear here. It is used only * by AML disassemblers and is surrounded by an If(0) * by the ASL compiler. * * Therefore, if we see it here, it is a serious error. */ Status = AE_AML_BAD_OPCODE; } else { /* * We just plain didn't find it -- which is a * very serious error at this point */ Status = AE_AML_NAME_NOT_FOUND; } } if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, NameString, Status); } } /* Free the namestring created above */ ACPI_FREE (NameString); /* Check status from the lookup */ if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Put the resulting object onto the current object stack */ Status = AcpiDsObjStackPush (ObjDesc, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } AcpiDbDisplayArgumentObject (ObjDesc, WalkState); } else { /* Check for null name case */ if ((Arg->Common.AmlOpcode == AML_INT_NAMEPATH_OP) && !(Arg->Common.Flags & ACPI_PARSEOP_IN_STACK)) { /* * If the name is null, this means that this is an * optional result parameter that was not specified * in the original ASL. Create a Zero Constant for a * placeholder. (Store to a constant is a Noop.) */ Opcode = AML_ZERO_OP; /* Has no arguments! */ ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Null namepath: Arg=%p\n", Arg)); } else { Opcode = Arg->Common.AmlOpcode; } /* Get the object type of the argument */ OpInfo = AcpiPsGetOpcodeInfo (Opcode); if (OpInfo->ObjectType == ACPI_TYPE_INVALID) { return_ACPI_STATUS (AE_NOT_IMPLEMENTED); } if ((OpInfo->Flags & AML_HAS_RETVAL) || (Arg->Common.Flags & ACPI_PARSEOP_IN_STACK)) { /* * Use value that was already previously returned * by the evaluation of this argument */ Status = AcpiDsResultPop (&ObjDesc, WalkState); if (ACPI_FAILURE (Status)) { /* * Only error is underflow, and this indicates * a missing or null operand! */ ACPI_EXCEPTION ((AE_INFO, Status, "Missing or null operand")); return_ACPI_STATUS (Status); } } else { /* Create an ACPI_INTERNAL_OBJECT for the argument */ ObjDesc = AcpiUtCreateInternalObject (OpInfo->ObjectType); if (!ObjDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Initialize the new object */ Status = AcpiDsInitObjectFromOp ( WalkState, Arg, Opcode, &ObjDesc); if (ACPI_FAILURE (Status)) { AcpiUtDeleteObjectDesc (ObjDesc); return_ACPI_STATUS (Status); } } /* Put the operand object on the object stack */ Status = AcpiDsObjStackPush (ObjDesc, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } AcpiDbDisplayArgumentObject (ObjDesc, WalkState); } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsCreateOperands * * PARAMETERS: WalkState - Current state * FirstArg - First argument of a parser argument tree * * RETURN: Status * * DESCRIPTION: Convert an operator's arguments from a parse tree format to * namespace objects and place those argument object on the object * stack in preparation for evaluation by the interpreter. * ******************************************************************************/ ACPI_STATUS AcpiDsCreateOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *FirstArg) { ACPI_STATUS Status = AE_OK; ACPI_PARSE_OBJECT *Arg; ACPI_PARSE_OBJECT *Arguments[ACPI_OBJ_NUM_OPERANDS]; UINT32 ArgCount = 0; UINT32 Index = WalkState->NumOperands; UINT32 PrevNumOperands = WalkState->NumOperands; UINT32 NewNumOperands; UINT32 i; ACPI_FUNCTION_TRACE_PTR (DsCreateOperands, FirstArg); /* Get all arguments in the list */ Arg = FirstArg; while (Arg) { if (Index >= ACPI_OBJ_NUM_OPERANDS) { return_ACPI_STATUS (AE_BAD_DATA); } Arguments[Index] = Arg; WalkState->Operands [Index] = NULL; /* Move on to next argument, if any */ Arg = Arg->Common.Next; ArgCount++; Index++; } ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "NumOperands %d, ArgCount %d, Index %d\n", WalkState->NumOperands, ArgCount, Index)); /* Create the interpreter arguments, in reverse order */ NewNumOperands = Index; Index--; for (i = 0; i < ArgCount; i++) { Arg = Arguments[Index]; WalkState->OperandIndex = (UINT8) Index; Status = AcpiDsCreateOperand (WalkState, Arg, Index); if (ACPI_FAILURE (Status)) { goto Cleanup; } ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Created Arg #%u (%p) %u args total\n", Index, Arg, ArgCount)); Index--; } return_ACPI_STATUS (Status); Cleanup: /* * We must undo everything done above; meaning that we must * pop everything off of the operand stack and delete those * objects */ WalkState->NumOperands = (UINT8) (i); AcpiDsObjStackPopAndDelete (NewNumOperands, WalkState); /* Restore operand count */ WalkState->NumOperands = (UINT8) (PrevNumOperands); ACPI_EXCEPTION ((AE_INFO, Status, "While creating Arg %u", Index)); return_ACPI_STATUS (Status); } /***************************************************************************** * * FUNCTION: AcpiDsEvaluateNamePath * * PARAMETERS: WalkState - Current state of the parse tree walk, * the opcode of current operation should be * AML_INT_NAMEPATH_OP * * RETURN: Status * * DESCRIPTION: Translate the -NamePath- parse tree object to the equivalent * interpreter object, convert it to value, if needed, duplicate * it, if needed, and push it onto the current result stack. * ****************************************************************************/ ACPI_STATUS AcpiDsEvaluateNamePath ( ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_PARSE_OBJECT *Op = WalkState->Op; ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *NewObjDesc; UINT8 Type; ACPI_FUNCTION_TRACE_PTR (DsEvaluateNamePath, WalkState); if (!Op->Common.Parent) { /* This happens after certain exception processing */ goto Exit; } if ((Op->Common.Parent->Common.AmlOpcode == AML_PACKAGE_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_REF_OF_OP)) { /* TBD: Should we specify this feature as a bit of OpInfo->Flags of these opcodes? */ goto Exit; } Status = AcpiDsCreateOperand (WalkState, Op, 0); if (ACPI_FAILURE (Status)) { goto Exit; } if (Op->Common.Flags & ACPI_PARSEOP_TARGET) { NewObjDesc = *Operand; goto PushResult; } Type = (*Operand)->Common.Type; Status = AcpiExResolveToValue (Operand, WalkState); if (ACPI_FAILURE (Status)) { goto Exit; } if (Type == ACPI_TYPE_INTEGER) { /* It was incremented by AcpiExResolveToValue */ AcpiUtRemoveReference (*Operand); Status = AcpiUtCopyIobjectToIobject ( *Operand, &NewObjDesc, WalkState); if (ACPI_FAILURE (Status)) { goto Exit; } } else { /* * The object either was anew created or is * a Namespace node - don't decrement it. */ NewObjDesc = *Operand; } /* Cleanup for name-path operand */ Status = AcpiDsObjStackPop (1, WalkState); if (ACPI_FAILURE (Status)) { WalkState->ResultObj = NewObjDesc; goto Exit; } PushResult: WalkState->ResultObj = NewObjDesc; Status = AcpiDsResultPush (WalkState->ResultObj, WalkState); if (ACPI_SUCCESS (Status)) { /* Force to take it from stack */ Op->Common.Flags |= ACPI_PARSEOP_IN_STACK; } Exit: return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/dispatcher/dswload.c0000775000175000017500000005065614773714132023171 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dswload - Dispatcher first pass namespace load callbacks * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #ifdef ACPI_ASL_COMPILER #include "acdisasm.h" #endif #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dswload") /******************************************************************************* * * FUNCTION: AcpiDsInitCallbacks * * PARAMETERS: WalkState - Current state of the parse tree walk * PassNumber - 1, 2, or 3 * * RETURN: Status * * DESCRIPTION: Init walk state callbacks * ******************************************************************************/ ACPI_STATUS AcpiDsInitCallbacks ( ACPI_WALK_STATE *WalkState, UINT32 PassNumber) { switch (PassNumber) { case 0: /* Parse only - caller will setup callbacks */ WalkState->ParseFlags = ACPI_PARSE_LOAD_PASS1 | ACPI_PARSE_DELETE_TREE | ACPI_PARSE_DISASSEMBLE; WalkState->DescendingCallback = NULL; WalkState->AscendingCallback = NULL; break; case 1: /* Load pass 1 */ WalkState->ParseFlags = ACPI_PARSE_LOAD_PASS1 | ACPI_PARSE_DELETE_TREE; WalkState->DescendingCallback = AcpiDsLoad1BeginOp; WalkState->AscendingCallback = AcpiDsLoad1EndOp; break; case 2: /* Load pass 2 */ WalkState->ParseFlags = ACPI_PARSE_LOAD_PASS1 | ACPI_PARSE_DELETE_TREE; WalkState->DescendingCallback = AcpiDsLoad2BeginOp; WalkState->AscendingCallback = AcpiDsLoad2EndOp; break; case 3: /* Execution pass */ WalkState->ParseFlags |= ACPI_PARSE_EXECUTE | ACPI_PARSE_DELETE_TREE; WalkState->DescendingCallback = AcpiDsExecBeginOp; WalkState->AscendingCallback = AcpiDsExecEndOp; break; default: return (AE_BAD_PARAMETER); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsLoad1BeginOp * * PARAMETERS: WalkState - Current state of the parse tree walk * OutOp - Where to return op if a new one is created * * RETURN: Status * * DESCRIPTION: Descending callback used during the loading of ACPI tables. * ******************************************************************************/ ACPI_STATUS AcpiDsLoad1BeginOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **OutOp) { ACPI_PARSE_OBJECT *Op; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_OBJECT_TYPE ObjectType; char *Path; UINT32 Flags; ACPI_FUNCTION_TRACE_PTR (DsLoad1BeginOp, WalkState->Op); Op = WalkState->Op; ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op=%p State=%p\n", Op, WalkState)); /* We are only interested in opcodes that have an associated name */ if (Op) { if (!(WalkState->OpInfo->Flags & AML_NAMED)) { *OutOp = Op; return_ACPI_STATUS (AE_OK); } /* Check if this object has already been installed in the namespace */ if (Op->Common.Node) { *OutOp = Op; return_ACPI_STATUS (AE_OK); } } Path = AcpiPsGetNextNamestring (&WalkState->ParserState); /* Map the raw opcode into an internal object type */ ObjectType = WalkState->OpInfo->ObjectType; ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "State=%p Op=%p [%s]\n", WalkState, Op, AcpiUtGetTypeName (ObjectType))); switch (WalkState->Opcode) { case AML_SCOPE_OP: /* * The target name of the Scope() operator must exist at this point so * that we can actually open the scope to enter new names underneath it. * Allow search-to-root for single namesegs. */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &(Node)); #ifdef ACPI_ASL_COMPILER if (Status == AE_NOT_FOUND) { /* * Table disassembly: * Target of Scope() not found. Generate an External for it, and * insert the name into the namespace. */ AcpiDmAddOpToExternalList (Op, Path, ACPI_TYPE_DEVICE, 0, 0); Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, ACPI_IMODE_LOAD_PASS1, ACPI_NS_SEARCH_PARENT, WalkState, &Node); } #endif if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Path, Status); return_ACPI_STATUS (Status); } /* * Check to make sure that the target is * one of the opcodes that actually opens a scope */ switch (Node->Type) { case ACPI_TYPE_ANY: case ACPI_TYPE_LOCAL_SCOPE: /* Scope */ case ACPI_TYPE_DEVICE: case ACPI_TYPE_POWER: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: /* These are acceptable types */ break; case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* * These types we will allow, but we will change the type. * This enables some existing code of the form: * * Name (DEB, 0) * Scope (DEB) { ... } * * Note: silently change the type here. On the second pass, * we will report a warning */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Type override - [%4.4s] had invalid type (%s) " "for Scope operator, changed to type ANY\n", AcpiUtGetNodeName (Node), AcpiUtGetTypeName (Node->Type))); Node->Type = ACPI_TYPE_ANY; WalkState->ScopeInfo->Common.Value = ACPI_TYPE_ANY; break; case ACPI_TYPE_METHOD: /* * Allow scope change to root during execution of module-level * code. Root is typed METHOD during this time. */ if ((Node == AcpiGbl_RootNode) && (WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL)) { break; } ACPI_FALLTHROUGH; default: /* All other types are an error */ ACPI_ERROR ((AE_INFO, "Invalid type (%s) for target of " "Scope operator [%4.4s] (Cannot override)", AcpiUtGetTypeName (Node->Type), AcpiUtGetNodeName (Node))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } break; default: /* * For all other named opcodes, we will enter the name into * the namespace. * * Setup the search flags. * Since we are entering a name into the namespace, we do not want to * enable the search-to-root upsearch. * * There are only two conditions where it is acceptable that the name * already exists: * 1) the Scope() operator can reopen a scoping object that was * previously defined (Scope, Method, Device, etc.) * 2) Whenever we are parsing a deferred opcode (OpRegion, Buffer, * BufferField, or Package), the name of the object is already * in the namespace. */ if (WalkState->DeferredNode) { /* This name is already in the namespace, get the node */ Node = WalkState->DeferredNode; Status = AE_OK; break; } /* * If we are executing a method, do not create any namespace objects * during the load phase, only during execution. */ if (WalkState->MethodNode) { Node = NULL; Status = AE_OK; break; } Flags = ACPI_NS_NO_UPSEARCH; if ((WalkState->Opcode != AML_SCOPE_OP) && (!(WalkState->ParseFlags & ACPI_PARSE_DEFERRED_OP))) { if (WalkState->NamespaceOverride) { Flags |= ACPI_NS_OVERRIDE_IF_FOUND; ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "[%s] Override allowed\n", AcpiUtGetTypeName (ObjectType))); } else { Flags |= ACPI_NS_ERROR_IF_FOUND; ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "[%s] Cannot already exist\n", AcpiUtGetTypeName (ObjectType))); } } else { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "[%s] Both Find or Create allowed\n", AcpiUtGetTypeName (ObjectType))); } /* * Enter the named type into the internal namespace. We enter the name * as we go downward in the parse tree. Any necessary subobjects that * involve arguments to the opcode must be created as we go back up the * parse tree later. */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, ACPI_IMODE_LOAD_PASS1, Flags, WalkState, &Node); if (ACPI_FAILURE (Status)) { if (Status == AE_ALREADY_EXISTS) { /* The name already exists in this scope */ if (Node->Flags & ANOBJ_IS_EXTERNAL) { /* * Allow one create on an object or segment that was * previously declared External */ Node->Flags &= ~ANOBJ_IS_EXTERNAL; Node->Type = (UINT8) ObjectType; /* Just retyped a node, probably will need to open a scope */ if (AcpiNsOpensScope (ObjectType)) { Status = AcpiDsScopeStackPush ( Node, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } Status = AE_OK; } } if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Path, Status); return_ACPI_STATUS (Status); } } break; } /* Common exit */ if (!Op) { /* Create a new op */ Op = AcpiPsAllocOp (WalkState->Opcode, WalkState->Aml); if (!Op) { return_ACPI_STATUS (AE_NO_MEMORY); } } /* Initialize the op */ #ifdef ACPI_CONSTANT_EVAL_ONLY Op->Named.Path = Path; #endif if (Node) { /* * Put the Node in the "op" object that the parser uses, so we * can get it again quickly when this scope is closed */ Op->Common.Node = Node; Op->Named.Name = Node->Name.Integer; } AcpiPsAppendArg (AcpiPsGetParentScope (&WalkState->ParserState), Op); *OutOp = Op; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsLoad1EndOp * * PARAMETERS: WalkState - Current state of the parse tree walk * * RETURN: Status * * DESCRIPTION: Ascending callback used during the loading of the namespace, * both control methods and everything else. * ******************************************************************************/ ACPI_STATUS AcpiDsLoad1EndOp ( ACPI_WALK_STATE *WalkState) { ACPI_PARSE_OBJECT *Op; ACPI_OBJECT_TYPE ObjectType; ACPI_STATUS Status = AE_OK; #ifdef ACPI_ASL_COMPILER UINT8 ParamCount; #endif ACPI_FUNCTION_TRACE (DsLoad1EndOp); Op = WalkState->Op; ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op=%p State=%p\n", Op, WalkState)); /* * Disassembler: handle create field operators here. * * CreateBufferField is a deferred op that is typically processed in load * pass 2. However, disassembly of control method contents walk the parse * tree with ACPI_PARSE_LOAD_PASS1 and AML_CREATE operators are processed * in a later walk. This is a problem when there is a control method that * has the same name as the AML_CREATE object. In this case, any use of the * name segment will be detected as a method call rather than a reference * to a buffer field. * * This earlier creation during disassembly solves this issue by inserting * the named object in the ACPI namespace so that references to this name * would be a name string rather than a method call. */ if ((WalkState->ParseFlags & ACPI_PARSE_DISASSEMBLE) && (WalkState->OpInfo->Flags & AML_CREATE)) { Status = AcpiDsCreateBufferField (Op, WalkState); return_ACPI_STATUS (Status); } /* We are only interested in opcodes that have an associated name */ if (!(WalkState->OpInfo->Flags & (AML_NAMED | AML_FIELD))) { return_ACPI_STATUS (AE_OK); } /* Get the object type to determine if we should pop the scope */ ObjectType = WalkState->OpInfo->ObjectType; if (WalkState->OpInfo->Flags & AML_FIELD) { /* * If we are executing a method, do not create any namespace objects * during the load phase, only during execution. */ if (!WalkState->MethodNode) { if (WalkState->Opcode == AML_FIELD_OP || WalkState->Opcode == AML_BANK_FIELD_OP || WalkState->Opcode == AML_INDEX_FIELD_OP) { Status = AcpiDsInitFieldObjects (Op, WalkState); } } return_ACPI_STATUS (Status); } /* * If we are executing a method, do not create any namespace objects * during the load phase, only during execution. */ if (!WalkState->MethodNode) { if (Op->Common.AmlOpcode == AML_REGION_OP) { Status = AcpiExCreateRegion (Op->Named.Data, Op->Named.Length, (ACPI_ADR_SPACE_TYPE) ((Op->Common.Value.Arg)->Common.Value.Integer), WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } else if (Op->Common.AmlOpcode == AML_DATA_REGION_OP) { Status = AcpiExCreateRegion (Op->Named.Data, Op->Named.Length, ACPI_ADR_SPACE_DATA_TABLE, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } } if (Op->Common.AmlOpcode == AML_NAME_OP) { /* For Name opcode, get the object type from the argument */ if (Op->Common.Value.Arg) { ObjectType = (AcpiPsGetOpcodeInfo ( (Op->Common.Value.Arg)->Common.AmlOpcode))->ObjectType; /* Set node type if we have a namespace node */ if (Op->Common.Node) { Op->Common.Node->Type = (UINT8) ObjectType; } } } #ifdef ACPI_ASL_COMPILER /* * For external opcode, get the object type from the argument and * get the parameter count from the argument's next. */ if (AcpiGbl_DisasmFlag && Op->Common.Node && Op->Common.AmlOpcode == AML_EXTERNAL_OP) { /* * Note, if this external is not a method * Op->Common.Value.Arg->Common.Next->Common.Value.Integer == 0 * Therefore, ParamCount will be 0. */ ParamCount = (UINT8) Op->Common.Value.Arg->Common.Next->Common.Value.Integer; ObjectType = (UINT8) Op->Common.Value.Arg->Common.Value.Integer; Op->Common.Node->Flags |= ANOBJ_IS_EXTERNAL; Op->Common.Node->Type = (UINT8) ObjectType; AcpiDmCreateSubobjectForExternal ((UINT8)ObjectType, &Op->Common.Node, ParamCount); /* * Add the external to the external list because we may be * emitting code based off of the items within the external list. */ AcpiDmAddOpToExternalList (Op, Op->Named.Path, (UINT8)ObjectType, ParamCount, ACPI_EXT_ORIGIN_FROM_OPCODE | ACPI_EXT_RESOLVED_REFERENCE); } #endif /* * If we are executing a method, do not create any namespace objects * during the load phase, only during execution. */ if (!WalkState->MethodNode) { if (Op->Common.AmlOpcode == AML_METHOD_OP) { /* * MethodOp PkgLength NameString MethodFlags TermList * * Note: We must create the method node/object pair as soon as we * see the method declaration. This allows later pass1 parsing * of invocations of the method (need to know the number of * arguments.) */ ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "LOADING-Method: State=%p Op=%p NamedObj=%p\n", WalkState, Op, Op->Named.Node)); if (!AcpiNsGetAttachedObject (Op->Named.Node)) { WalkState->Operands[0] = ACPI_CAST_PTR (void, Op->Named.Node); WalkState->NumOperands = 1; Status = AcpiDsCreateOperands ( WalkState, Op->Common.Value.Arg); if (ACPI_SUCCESS (Status)) { Status = AcpiExCreateMethod (Op->Named.Data, Op->Named.Length, WalkState); } WalkState->Operands[0] = NULL; WalkState->NumOperands = 0; if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } } } /* Pop the scope stack (only if loading a table) */ if (!WalkState->MethodNode && Op->Common.AmlOpcode != AML_EXTERNAL_OP && AcpiNsOpensScope (ObjectType)) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "(%s): Popping scope for Op %p\n", AcpiUtGetTypeName (ObjectType), Op)); Status = AcpiDsScopeStackPop (WalkState); } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/dispatcher/dswexec.c0000775000175000017500000005742314773714132023175 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dswexec - Dispatcher method execution callbacks; * dispatch to interpreter. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #include "acdebug.h" #ifdef ACPI_EXEC_APP #include "aecommon.h" #endif #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dswexec") /* * Dispatch table for opcode classes */ static ACPI_EXECUTE_OP AcpiGbl_OpTypeDispatch [] = { AcpiExOpcode_0A_0T_1R, AcpiExOpcode_1A_0T_0R, AcpiExOpcode_1A_0T_1R, NULL, /* Was: AcpiExOpcode_1A_0T_0R (Was for Load operator) */ AcpiExOpcode_1A_1T_1R, AcpiExOpcode_2A_0T_0R, AcpiExOpcode_2A_0T_1R, AcpiExOpcode_2A_1T_1R, AcpiExOpcode_2A_2T_1R, AcpiExOpcode_3A_0T_0R, AcpiExOpcode_3A_1T_1R, AcpiExOpcode_6A_0T_1R }; /***************************************************************************** * * FUNCTION: AcpiDsGetPredicateValue * * PARAMETERS: WalkState - Current state of the parse tree walk * ResultObj - if non-zero, pop result from result stack * * RETURN: Status * * DESCRIPTION: Get the result of a predicate evaluation * ****************************************************************************/ ACPI_STATUS AcpiDsGetPredicateValue ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ResultObj) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *LocalObjDesc = NULL; ACPI_FUNCTION_TRACE_PTR (DsGetPredicateValue, WalkState); WalkState->ControlState->Common.State = 0; if (ResultObj) { Status = AcpiDsResultPop (&ObjDesc, WalkState); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not get result from predicate evaluation")); return_ACPI_STATUS (Status); } } else { Status = AcpiDsCreateOperand (WalkState, WalkState->Op, 0); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiExResolveToValue (&WalkState->Operands [0], WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ObjDesc = WalkState->Operands [0]; } if (!ObjDesc) { ACPI_ERROR ((AE_INFO, "No predicate ObjDesc=%p State=%p", ObjDesc, WalkState)); return_ACPI_STATUS (AE_AML_NO_OPERAND); } /* * Result of predicate evaluation must be an Integer * object. Implicitly convert the argument if necessary. */ Status = AcpiExConvertToInteger (ObjDesc, &LocalObjDesc, ACPI_IMPLICIT_CONVERSION); if (ACPI_FAILURE (Status)) { goto Cleanup; } if (LocalObjDesc->Common.Type != ACPI_TYPE_INTEGER) { ACPI_ERROR ((AE_INFO, "Bad predicate (not an integer) ObjDesc=%p State=%p Type=0x%X", ObjDesc, WalkState, ObjDesc->Common.Type)); Status = AE_AML_OPERAND_TYPE; goto Cleanup; } /* Truncate the predicate to 32-bits if necessary */ (void) AcpiExTruncateFor32bitTable (LocalObjDesc); /* * Save the result of the predicate evaluation on * the control stack */ if (LocalObjDesc->Integer.Value) { WalkState->ControlState->Common.Value = TRUE; } else { /* * Predicate is FALSE, we will just toss the * rest of the package */ WalkState->ControlState->Common.Value = FALSE; Status = AE_CTRL_FALSE; } /* Predicate can be used for an implicit return value */ (void) AcpiDsDoImplicitReturn (LocalObjDesc, WalkState, TRUE); Cleanup: ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Completed a predicate eval=%X Op=%p\n", WalkState->ControlState->Common.Value, WalkState->Op)); /* Break to debugger to display result */ AcpiDbDisplayResultObject (LocalObjDesc, WalkState); /* * Delete the predicate result object (we know that * we don't need it anymore) */ if (LocalObjDesc != ObjDesc) { AcpiUtRemoveReference (LocalObjDesc); } AcpiUtRemoveReference (ObjDesc); WalkState->ControlState->Common.State = ACPI_CONTROL_NORMAL; return_ACPI_STATUS (Status); } /***************************************************************************** * * FUNCTION: AcpiDsExecBeginOp * * PARAMETERS: WalkState - Current state of the parse tree walk * OutOp - Where to return op if a new one is created * * RETURN: Status * * DESCRIPTION: Descending callback used during the execution of control * methods. This is where most operators and operands are * dispatched to the interpreter. * ****************************************************************************/ ACPI_STATUS AcpiDsExecBeginOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **OutOp) { ACPI_PARSE_OBJECT *Op; ACPI_STATUS Status = AE_OK; UINT32 OpcodeClass; ACPI_FUNCTION_TRACE_PTR (DsExecBeginOp, WalkState); Op = WalkState->Op; if (!Op) { Status = AcpiDsLoad2BeginOp (WalkState, OutOp); if (ACPI_FAILURE (Status)) { goto ErrorExit; } Op = *OutOp; WalkState->Op = Op; WalkState->Opcode = Op->Common.AmlOpcode; WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); if (AcpiNsOpensScope (WalkState->OpInfo->ObjectType)) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "(%s) Popping scope for Op %p\n", AcpiUtGetTypeName (WalkState->OpInfo->ObjectType), Op)); Status = AcpiDsScopeStackPop (WalkState); if (ACPI_FAILURE (Status)) { goto ErrorExit; } } } if (Op == WalkState->Origin) { if (OutOp) { *OutOp = Op; } return_ACPI_STATUS (AE_OK); } /* * If the previous opcode was a conditional, this opcode * must be the beginning of the associated predicate. * Save this knowledge in the current scope descriptor */ if ((WalkState->ControlState) && (WalkState->ControlState->Common.State == ACPI_CONTROL_CONDITIONAL_EXECUTING)) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Exec predicate Op=%p State=%p\n", Op, WalkState)); WalkState->ControlState->Common.State = ACPI_CONTROL_PREDICATE_EXECUTING; /* Save start of predicate */ WalkState->ControlState->Control.PredicateOp = Op; } OpcodeClass = WalkState->OpInfo->Class; /* We want to send namepaths to the load code */ if (Op->Common.AmlOpcode == AML_INT_NAMEPATH_OP) { OpcodeClass = AML_CLASS_NAMED_OBJECT; } /* * Handle the opcode based upon the opcode type */ switch (OpcodeClass) { case AML_CLASS_CONTROL: Status = AcpiDsExecBeginControlOp (WalkState, Op); break; case AML_CLASS_NAMED_OBJECT: if (WalkState->WalkType & ACPI_WALK_METHOD) { /* * Found a named object declaration during method execution; * we must enter this object into the namespace. The created * object is temporary and will be deleted upon completion of * the execution of this method. * * Note 10/2010: Except for the Scope() op. This opcode does * not actually create a new object, it refers to an existing * object. However, for Scope(), we want to indeed open a * new scope. */ if (Op->Common.AmlOpcode != AML_SCOPE_OP) { Status = AcpiDsLoad2BeginOp (WalkState, NULL); } else { Status = AcpiDsScopeStackPush ( Op->Named.Node, Op->Named.Node->Type, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } } break; case AML_CLASS_EXECUTE: case AML_CLASS_CREATE: break; default: break; } /* Nothing to do here during method execution */ return_ACPI_STATUS (Status); ErrorExit: Status = AcpiDsMethodError (Status, WalkState); return_ACPI_STATUS (Status); } /***************************************************************************** * * FUNCTION: AcpiDsExecEndOp * * PARAMETERS: WalkState - Current state of the parse tree walk * * RETURN: Status * * DESCRIPTION: Ascending callback used during the execution of control * methods. The only thing we really need to do here is to * notice the beginning of IF, ELSE, and WHILE blocks. * ****************************************************************************/ ACPI_STATUS AcpiDsExecEndOp ( ACPI_WALK_STATE *WalkState) { ACPI_PARSE_OBJECT *Op; ACPI_STATUS Status = AE_OK; UINT32 OpType; UINT32 OpClass; ACPI_PARSE_OBJECT *NextOp; ACPI_PARSE_OBJECT *FirstArg; #ifdef ACPI_EXEC_APP char *Namepath; ACPI_OPERAND_OBJECT *ObjDesc; #endif ACPI_FUNCTION_TRACE_PTR (DsExecEndOp, WalkState); Op = WalkState->Op; OpType = WalkState->OpInfo->Type; OpClass = WalkState->OpInfo->Class; if (OpClass == AML_CLASS_UNKNOWN) { ACPI_ERROR ((AE_INFO, "Unknown opcode 0x%X", Op->Common.AmlOpcode)); return_ACPI_STATUS (AE_NOT_IMPLEMENTED); } FirstArg = Op->Common.Value.Arg; /* Init the walk state */ WalkState->NumOperands = 0; WalkState->OperandIndex = 0; WalkState->ReturnDesc = NULL; WalkState->ResultObj = NULL; /* Call debugger for single step support (DEBUG build only) */ Status = AcpiDbSingleStep (WalkState, Op, OpClass); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Decode the Opcode Class */ switch (OpClass) { case AML_CLASS_ARGUMENT: /* Constants, literals, etc. */ if (WalkState->Opcode == AML_INT_NAMEPATH_OP) { Status = AcpiDsEvaluateNamePath (WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } } break; case AML_CLASS_EXECUTE: /* Most operators with arguments */ /* Build resolved operand stack */ Status = AcpiDsCreateOperands (WalkState, FirstArg); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* * All opcodes require operand resolution, with the only exceptions * being the ObjectType and SizeOf operators as well as opcodes that * take no arguments. */ if (!(WalkState->OpInfo->Flags & AML_NO_OPERAND_RESOLVE) && (WalkState->OpInfo->Flags & AML_HAS_ARGS)) { /* Resolve all operands */ Status = AcpiExResolveOperands (WalkState->Opcode, &(WalkState->Operands [WalkState->NumOperands -1]), WalkState); } if (ACPI_SUCCESS (Status)) { /* * Dispatch the request to the appropriate interpreter handler * routine. There is one routine per opcode "type" based upon the * number of opcode arguments and return type. */ Status = AcpiGbl_OpTypeDispatch[OpType] (WalkState); } else { /* * Treat constructs of the form "Store(LocalX,LocalX)" as noops when the * Local is uninitialized. */ if ((Status == AE_AML_UNINITIALIZED_LOCAL) && (WalkState->Opcode == AML_STORE_OP) && (WalkState->Operands[0]->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) && (WalkState->Operands[1]->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) && (WalkState->Operands[0]->Reference.Class == WalkState->Operands[1]->Reference.Class) && (WalkState->Operands[0]->Reference.Value == WalkState->Operands[1]->Reference.Value)) { Status = AE_OK; } else { ACPI_EXCEPTION ((AE_INFO, Status, "While resolving operands for [%s]", AcpiPsGetOpcodeName (WalkState->Opcode))); } } /* Always delete the argument objects and clear the operand stack */ AcpiDsClearOperands (WalkState); /* * If a result object was returned from above, push it on the * current result stack */ if (ACPI_SUCCESS (Status) && WalkState->ResultObj) { Status = AcpiDsResultPush (WalkState->ResultObj, WalkState); } break; default: switch (OpType) { case AML_TYPE_CONTROL: /* Type 1 opcode, IF/ELSE/WHILE/NOOP */ /* 1 Operand, 0 ExternalResult, 0 InternalResult */ Status = AcpiDsExecEndControlOp (WalkState, Op); break; case AML_TYPE_METHOD_CALL: /* * If the method is referenced from within a package * declaration, it is not a invocation of the method, just * a reference to it. */ if ((Op->Asl.Parent) && ((Op->Asl.Parent->Asl.AmlOpcode == AML_PACKAGE_OP) || (Op->Asl.Parent->Asl.AmlOpcode == AML_VARIABLE_PACKAGE_OP))) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Method Reference in a Package, Op=%p\n", Op)); Op->Common.Node = (ACPI_NAMESPACE_NODE *) Op->Asl.Value.Arg->Asl.Node; AcpiUtAddReference (Op->Asl.Value.Arg->Asl.Node->Object); return_ACPI_STATUS (AE_OK); } ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Method invocation, Op=%p\n", Op)); /* * (AML_METHODCALL) Op->Asl.Value.Arg->Asl.Node contains * the method Node pointer */ /* NextOp points to the op that holds the method name */ NextOp = FirstArg; /* NextOp points to first argument op */ NextOp = NextOp->Common.Next; /* * Get the method's arguments and put them on the operand stack */ Status = AcpiDsCreateOperands (WalkState, NextOp); if (ACPI_FAILURE (Status)) { break; } /* * Since the operands will be passed to another control method, * we must resolve all local references here (Local variables, * arguments to *this* method, etc.) */ Status = AcpiDsResolveOperands (WalkState); if (ACPI_FAILURE (Status)) { /* On error, clear all resolved operands */ AcpiDsClearOperands (WalkState); break; } /* * Tell the walk loop to preempt this running method and * execute the new method */ Status = AE_CTRL_TRANSFER; /* * Return now; we don't want to disturb anything, * especially the operand count! */ return_ACPI_STATUS (Status); case AML_TYPE_CREATE_FIELD: ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Executing CreateField Buffer/Index Op=%p\n", Op)); Status = AcpiDsLoad2EndOp (WalkState); if (ACPI_FAILURE (Status)) { break; } Status = AcpiDsEvalBufferFieldOperands (WalkState, Op); if (ACPI_FAILURE (Status)) { break; } #ifdef ACPI_EXEC_APP /* * AcpiExec support for namespace initialization file (initialize * BufferFields in this code.) */ Namepath = AcpiNsGetExternalPathname (Op->Common.Node); Status = AeLookupInitFileEntry (Namepath, &ObjDesc); if (ACPI_SUCCESS (Status)) { Status = AcpiExWriteDataToField (ObjDesc, Op->Common.Node->Object, NULL); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While writing to buffer field")); } } ACPI_FREE (Namepath); Status = AE_OK; #endif break; case AML_TYPE_CREATE_OBJECT: ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Executing CreateObject (Buffer/Package) Op=%p Child=%p ParentOpcode=%4.4X\n", Op, Op->Named.Value.Arg, Op->Common.Parent->Common.AmlOpcode)); switch (Op->Common.Parent->Common.AmlOpcode) { case AML_NAME_OP: /* * Put the Node on the object stack (Contains the ACPI Name * of this object) */ WalkState->Operands[0] = (void *) Op->Common.Parent->Common.Node; WalkState->NumOperands = 1; Status = AcpiDsCreateNode (WalkState, Op->Common.Parent->Common.Node, Op->Common.Parent); if (ACPI_FAILURE (Status)) { break; } ACPI_FALLTHROUGH; case AML_INT_EVAL_SUBTREE_OP: Status = AcpiDsEvalDataObjectOperands (WalkState, Op, AcpiNsGetAttachedObject (Op->Common.Parent->Common.Node)); break; default: Status = AcpiDsEvalDataObjectOperands (WalkState, Op, NULL); break; } /* * If a result object was returned from above, push it on the * current result stack */ if (WalkState->ResultObj) { Status = AcpiDsResultPush (WalkState->ResultObj, WalkState); } break; case AML_TYPE_NAMED_FIELD: case AML_TYPE_NAMED_COMPLEX: case AML_TYPE_NAMED_SIMPLE: case AML_TYPE_NAMED_NO_OBJ: Status = AcpiDsLoad2EndOp (WalkState); if (ACPI_FAILURE (Status)) { break; } if (Op->Common.AmlOpcode == AML_REGION_OP) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Executing OpRegion Address/Length Op=%p\n", Op)); Status = AcpiDsEvalRegionOperands (WalkState, Op); if (ACPI_FAILURE (Status)) { break; } } else if (Op->Common.AmlOpcode == AML_DATA_REGION_OP) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Executing DataTableRegion Strings Op=%p\n", Op)); Status = AcpiDsEvalTableRegionOperands (WalkState, Op); if (ACPI_FAILURE (Status)) { break; } } else if (Op->Common.AmlOpcode == AML_BANK_FIELD_OP) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Executing BankField Op=%p\n", Op)); Status = AcpiDsEvalBankFieldOperands (WalkState, Op); if (ACPI_FAILURE (Status)) { break; } } break; case AML_TYPE_UNDEFINED: ACPI_ERROR ((AE_INFO, "Undefined opcode type Op=%p", Op)); return_ACPI_STATUS (AE_NOT_IMPLEMENTED); case AML_TYPE_BOGUS: ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Internal opcode=%X type Op=%p\n", WalkState->Opcode, Op)); break; default: ACPI_ERROR ((AE_INFO, "Unimplemented opcode, class=0x%X " "type=0x%X Opcode=0x%X Op=%p", OpClass, OpType, Op->Common.AmlOpcode, Op)); Status = AE_NOT_IMPLEMENTED; break; } } /* * ACPI 2.0 support for 64-bit integers: Truncate numeric * result value if we are executing from a 32-bit ACPI table */ (void) AcpiExTruncateFor32bitTable (WalkState->ResultObj); /* * Check if we just completed the evaluation of a * conditional predicate */ if ((ACPI_SUCCESS (Status)) && (WalkState->ControlState) && (WalkState->ControlState->Common.State == ACPI_CONTROL_PREDICATE_EXECUTING) && (WalkState->ControlState->Control.PredicateOp == Op)) { Status = AcpiDsGetPredicateValue (WalkState, WalkState->ResultObj); WalkState->ResultObj = NULL; } Cleanup: if (WalkState->ResultObj) { /* Break to debugger to display result */ AcpiDbDisplayResultObject (WalkState->ResultObj,WalkState); /* * Delete the result op if and only if: * Parent will not use the result -- such as any * non-nested type2 op in a method (parent will be method) */ AcpiDsDeleteResultIfNotUsed (Op, WalkState->ResultObj, WalkState); } #ifdef _UNDER_DEVELOPMENT if (WalkState->ParserState.Aml == WalkState->ParserState.AmlEnd) { AcpiDbMethodEnd (WalkState); } #endif /* Invoke exception handler on error */ if (ACPI_FAILURE (Status)) { Status = AcpiDsMethodError (Status, WalkState); } /* Always clear the object stack */ WalkState->NumOperands = 0; return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/dispatcher/dscontrol.c0000775000175000017500000003110414773714132023526 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dscontrol - Support for execution control opcodes - * if/else/while/return * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acdebug.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dscontrol") /******************************************************************************* * * FUNCTION: AcpiDsExecBeginControlOp * * PARAMETERS: WalkList - The list that owns the walk stack * Op - The control Op * * RETURN: Status * * DESCRIPTION: Handles all control ops encountered during control method * execution. * ******************************************************************************/ ACPI_STATUS AcpiDsExecBeginControlOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status = AE_OK; ACPI_GENERIC_STATE *ControlState; ACPI_FUNCTION_NAME (DsExecBeginControlOp); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op=%p Opcode=%2.2X State=%p\n", Op, Op->Common.AmlOpcode, WalkState)); switch (Op->Common.AmlOpcode) { case AML_WHILE_OP: /* * If this is an additional iteration of a while loop, continue. * There is no need to allocate a new control state. */ if (WalkState->ControlState) { if (WalkState->ControlState->Control.AmlPredicateStart == (WalkState->ParserState.Aml - 1)) { /* Reset the state to start-of-loop */ WalkState->ControlState->Common.State = ACPI_CONTROL_CONDITIONAL_EXECUTING; break; } } ACPI_FALLTHROUGH; case AML_IF_OP: /* * IF/WHILE: Create a new control state to manage these * constructs. We need to manage these as a stack, in order * to handle nesting. */ ControlState = AcpiUtCreateControlState (); if (!ControlState) { Status = AE_NO_MEMORY; break; } /* * Save a pointer to the predicate for multiple executions * of a loop */ ControlState->Control.AmlPredicateStart = WalkState->ParserState.Aml - 1; ControlState->Control.PackageEnd = WalkState->ParserState.PkgEnd; ControlState->Control.Opcode = Op->Common.AmlOpcode; ControlState->Control.LoopTimeout = AcpiOsGetTimer () + ((UINT64) AcpiGbl_MaxLoopIterations * ACPI_100NSEC_PER_SEC); /* Push the control state on this walk's control stack */ AcpiUtPushGenericState (&WalkState->ControlState, ControlState); break; case AML_ELSE_OP: /* Predicate is in the state object */ /* If predicate is true, the IF was executed, ignore ELSE part */ if (WalkState->LastPredicate) { Status = AE_CTRL_TRUE; } break; case AML_RETURN_OP: break; default: break; } return (Status); } /******************************************************************************* * * FUNCTION: AcpiDsExecEndControlOp * * PARAMETERS: WalkList - The list that owns the walk stack * Op - The control Op * * RETURN: Status * * DESCRIPTION: Handles all control ops encountered during control method * execution. * ******************************************************************************/ ACPI_STATUS AcpiDsExecEndControlOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status = AE_OK; ACPI_GENERIC_STATE *ControlState; ACPI_FUNCTION_NAME (DsExecEndControlOp); switch (Op->Common.AmlOpcode) { case AML_IF_OP: ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "[IF_OP] Op=%p\n", Op)); /* * Save the result of the predicate in case there is an * ELSE to come */ WalkState->LastPredicate = (BOOLEAN) WalkState->ControlState->Common.Value; /* * Pop the control state that was created at the start * of the IF and free it */ ControlState = AcpiUtPopGenericState (&WalkState->ControlState); AcpiUtDeleteGenericState (ControlState); break; case AML_ELSE_OP: break; case AML_WHILE_OP: ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "[WHILE_OP] Op=%p\n", Op)); ControlState = WalkState->ControlState; if (ControlState->Common.Value) { /* Predicate was true, the body of the loop was just executed */ /* * This infinite loop detection mechanism allows the interpreter * to escape possibly infinite loops. This can occur in poorly * written AML when the hardware does not respond within a while * loop and the loop does not implement a timeout. */ if (ACPI_TIME_AFTER (AcpiOsGetTimer (), ControlState->Control.LoopTimeout)) { Status = AE_AML_LOOP_TIMEOUT; break; } /* * Go back and evaluate the predicate and maybe execute the loop * another time */ Status = AE_CTRL_PENDING; WalkState->AmlLastWhile = ControlState->Control.AmlPredicateStart; break; } /* Predicate was false, terminate this while loop */ ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "[WHILE_OP] termination! Op=%p\n",Op)); /* Pop this control state and free it */ ControlState = AcpiUtPopGenericState (&WalkState->ControlState); AcpiUtDeleteGenericState (ControlState); break; case AML_RETURN_OP: ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "[RETURN_OP] Op=%p Arg=%p\n",Op, Op->Common.Value.Arg)); /* * One optional operand -- the return value * It can be either an immediate operand or a result that * has been bubbled up the tree */ if (Op->Common.Value.Arg) { /* Since we have a real Return(), delete any implicit return */ AcpiDsClearImplicitReturn (WalkState); /* Return statement has an immediate operand */ Status = AcpiDsCreateOperands (WalkState, Op->Common.Value.Arg); if (ACPI_FAILURE (Status)) { return (Status); } /* * If value being returned is a Reference (such as * an arg or local), resolve it now because it may * cease to exist at the end of the method. */ Status = AcpiExResolveToValue ( &WalkState->Operands [0], WalkState); if (ACPI_FAILURE (Status)) { return (Status); } /* * Get the return value and save as the last result * value. This is the only place where WalkState->ReturnDesc * is set to anything other than zero! */ WalkState->ReturnDesc = WalkState->Operands[0]; } else if (WalkState->ResultCount) { /* Since we have a real Return(), delete any implicit return */ AcpiDsClearImplicitReturn (WalkState); /* * The return value has come from a previous calculation. * * If value being returned is a Reference (such as * an arg or local), resolve it now because it may * cease to exist at the end of the method. * * Allow references created by the Index operator to return * unchanged. */ if ((ACPI_GET_DESCRIPTOR_TYPE (WalkState->Results->Results.ObjDesc[0]) == ACPI_DESC_TYPE_OPERAND) && ((WalkState->Results->Results.ObjDesc [0])->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) && ((WalkState->Results->Results.ObjDesc [0])->Reference.Class != ACPI_REFCLASS_INDEX)) { Status = AcpiExResolveToValue ( &WalkState->Results->Results.ObjDesc [0], WalkState); if (ACPI_FAILURE (Status)) { return (Status); } } WalkState->ReturnDesc = WalkState->Results->Results.ObjDesc [0]; } else { /* No return operand */ if (WalkState->NumOperands) { AcpiUtRemoveReference (WalkState->Operands [0]); } WalkState->Operands[0] = NULL; WalkState->NumOperands = 0; WalkState->ReturnDesc = NULL; } ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Completed RETURN_OP State=%p, RetVal=%p\n", WalkState, WalkState->ReturnDesc)); /* End the control method execution right now */ Status = AE_CTRL_TERMINATE; break; case AML_NOOP_OP: /* Just do nothing! */ break; case AML_BREAKPOINT_OP: AcpiDbSignalBreakPoint (WalkState); /* Call to the OSL in case OS wants a piece of the action */ Status = AcpiOsSignal (ACPI_SIGNAL_BREAKPOINT, "Executed AML Breakpoint opcode"); break; case AML_BREAK_OP: case AML_CONTINUE_OP: /* ACPI 2.0 */ /* Pop and delete control states until we find a while */ while (WalkState->ControlState && (WalkState->ControlState->Control.Opcode != AML_WHILE_OP)) { ControlState = AcpiUtPopGenericState (&WalkState->ControlState); AcpiUtDeleteGenericState (ControlState); } /* No while found? */ if (!WalkState->ControlState) { return (AE_AML_NO_WHILE); } /* Was: WalkState->AmlLastWhile = WalkState->ControlState->Control.AmlPredicateStart; */ WalkState->AmlLastWhile = WalkState->ControlState->Control.PackageEnd; /* Return status depending on opcode */ if (Op->Common.AmlOpcode == AML_BREAK_OP) { Status = AE_CTRL_BREAK; } else { Status = AE_CTRL_CONTINUE; } break; default: ACPI_ERROR ((AE_INFO, "Unknown control opcode=0x%X Op=%p", Op->Common.AmlOpcode, Op)); Status = AE_AML_BAD_OPCODE; break; } return (Status); } acpica-unix-20250404/source/components/dispatcher/dsargs.c0000775000175000017500000003030714773714132023006 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dsargs - Support for execution of dynamic arguments for static * objects (regions, fields, buffer fields, etc.) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdispat.h" #include "acnamesp.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dsargs") /* Local prototypes */ static ACPI_STATUS AcpiDsExecuteArguments ( ACPI_NAMESPACE_NODE *Node, ACPI_NAMESPACE_NODE *ScopeNode, UINT32 AmlLength, UINT8 *AmlStart); /******************************************************************************* * * FUNCTION: AcpiDsExecuteArguments * * PARAMETERS: Node - Object NS node * ScopeNode - Parent NS node * AmlLength - Length of executable AML * AmlStart - Pointer to the AML * * RETURN: Status. * * DESCRIPTION: Late (deferred) execution of region or field arguments * ******************************************************************************/ static ACPI_STATUS AcpiDsExecuteArguments ( ACPI_NAMESPACE_NODE *Node, ACPI_NAMESPACE_NODE *ScopeNode, UINT32 AmlLength, UINT8 *AmlStart) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *Op; ACPI_WALK_STATE *WalkState; ACPI_FUNCTION_TRACE_PTR (DsExecuteArguments, AmlStart); /* Allocate a new parser op to be the root of the parsed tree */ Op = AcpiPsAllocOp (AML_INT_EVAL_SUBTREE_OP, AmlStart); if (!Op) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Save the Node for use in AcpiPsParseAml */ Op->Common.Node = ScopeNode; /* Create and initialize a new parser state */ WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL); if (!WalkState) { Status = AE_NO_MEMORY; goto Cleanup; } Status = AcpiDsInitAmlWalk (WalkState, Op, NULL, AmlStart, AmlLength, NULL, ACPI_IMODE_LOAD_PASS1); if (ACPI_FAILURE (Status)) { AcpiDsDeleteWalkState (WalkState); goto Cleanup; } /* Mark this parse as a deferred opcode */ WalkState->ParseFlags = ACPI_PARSE_DEFERRED_OP; WalkState->DeferredNode = Node; /* Pass1: Parse the entire declaration */ Status = AcpiPsParseAml (WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* Get and init the Op created above */ Op->Common.Node = Node; AcpiPsDeleteParseTree (Op); /* Evaluate the deferred arguments */ Op = AcpiPsAllocOp (AML_INT_EVAL_SUBTREE_OP, AmlStart); if (!Op) { return_ACPI_STATUS (AE_NO_MEMORY); } Op->Common.Node = ScopeNode; /* Create and initialize a new parser state */ WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL); if (!WalkState) { Status = AE_NO_MEMORY; goto Cleanup; } /* Execute the opcode and arguments */ Status = AcpiDsInitAmlWalk (WalkState, Op, NULL, AmlStart, AmlLength, NULL, ACPI_IMODE_EXECUTE); if (ACPI_FAILURE (Status)) { AcpiDsDeleteWalkState (WalkState); goto Cleanup; } /* Mark this execution as a deferred opcode */ WalkState->DeferredNode = Node; Status = AcpiPsParseAml (WalkState); Cleanup: AcpiPsDeleteParseTree (Op); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsGetBufferFieldArguments * * PARAMETERS: ObjDesc - A valid BufferField object * * RETURN: Status. * * DESCRIPTION: Get BufferField Buffer and Index. This implements the late * evaluation of these field attributes. * ******************************************************************************/ ACPI_STATUS AcpiDsGetBufferFieldArguments ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_OPERAND_OBJECT *ExtraDesc; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (DsGetBufferFieldArguments, ObjDesc); if (ObjDesc->Common.Flags & AOPOBJ_DATA_VALID) { return_ACPI_STATUS (AE_OK); } /* Get the AML pointer (method object) and BufferField node */ ExtraDesc = AcpiNsGetSecondaryObject (ObjDesc); Node = ObjDesc->BufferField.Node; ACPI_DEBUG_EXEC (AcpiUtDisplayInitPathname ( ACPI_TYPE_BUFFER_FIELD, Node, NULL)); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[%4.4s] BufferField Arg Init\n", AcpiUtGetNodeName (Node))); /* Execute the AML code for the TermArg arguments */ Status = AcpiDsExecuteArguments (Node, Node->Parent, ExtraDesc->Extra.AmlLength, ExtraDesc->Extra.AmlStart); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsGetBankFieldArguments * * PARAMETERS: ObjDesc - A valid BankField object * * RETURN: Status. * * DESCRIPTION: Get BankField BankValue. This implements the late * evaluation of these field attributes. * ******************************************************************************/ ACPI_STATUS AcpiDsGetBankFieldArguments ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_OPERAND_OBJECT *ExtraDesc; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (DsGetBankFieldArguments, ObjDesc); if (ObjDesc->Common.Flags & AOPOBJ_DATA_VALID) { return_ACPI_STATUS (AE_OK); } /* Get the AML pointer (method object) and BankField node */ ExtraDesc = AcpiNsGetSecondaryObject (ObjDesc); Node = ObjDesc->BankField.Node; ACPI_DEBUG_EXEC (AcpiUtDisplayInitPathname ( ACPI_TYPE_LOCAL_BANK_FIELD, Node, NULL)); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[%4.4s] BankField Arg Init\n", AcpiUtGetNodeName (Node))); /* Execute the AML code for the TermArg arguments */ Status = AcpiDsExecuteArguments (Node, Node->Parent, ExtraDesc->Extra.AmlLength, ExtraDesc->Extra.AmlStart); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsGetBufferArguments * * PARAMETERS: ObjDesc - A valid Buffer object * * RETURN: Status. * * DESCRIPTION: Get Buffer length and initializer byte list. This implements * the late evaluation of these attributes. * ******************************************************************************/ ACPI_STATUS AcpiDsGetBufferArguments ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (DsGetBufferArguments, ObjDesc); if (ObjDesc->Common.Flags & AOPOBJ_DATA_VALID) { return_ACPI_STATUS (AE_OK); } /* Get the Buffer node */ Node = ObjDesc->Buffer.Node; if (!Node) { ACPI_ERROR ((AE_INFO, "No pointer back to namespace node in buffer object %p", ObjDesc)); return_ACPI_STATUS (AE_AML_INTERNAL); } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Buffer Arg Init\n")); /* Execute the AML code for the TermArg arguments */ Status = AcpiDsExecuteArguments (Node, Node, ObjDesc->Buffer.AmlLength, ObjDesc->Buffer.AmlStart); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsGetPackageArguments * * PARAMETERS: ObjDesc - A valid Package object * * RETURN: Status. * * DESCRIPTION: Get Package length and initializer byte list. This implements * the late evaluation of these attributes. * ******************************************************************************/ ACPI_STATUS AcpiDsGetPackageArguments ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (DsGetPackageArguments, ObjDesc); if (ObjDesc->Common.Flags & AOPOBJ_DATA_VALID) { return_ACPI_STATUS (AE_OK); } /* Get the Package node */ Node = ObjDesc->Package.Node; if (!Node) { ACPI_ERROR ((AE_INFO, "No pointer back to namespace node in package %p", ObjDesc)); return_ACPI_STATUS (AE_AML_INTERNAL); } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Package Argument Init, AML Ptr: %p\n", ObjDesc->Package.AmlStart)); /* Execute the AML code for the TermArg arguments */ Status = AcpiDsExecuteArguments (Node, Node, ObjDesc->Package.AmlLength, ObjDesc->Package.AmlStart); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsGetRegionArguments * * PARAMETERS: ObjDesc - A valid region object * * RETURN: Status. * * DESCRIPTION: Get region address and length. This implements the late * evaluation of these region attributes. * ******************************************************************************/ ACPI_STATUS AcpiDsGetRegionArguments ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ExtraDesc; ACPI_FUNCTION_TRACE_PTR (DsGetRegionArguments, ObjDesc); if (ObjDesc->Region.Flags & AOPOBJ_DATA_VALID) { return_ACPI_STATUS (AE_OK); } ExtraDesc = AcpiNsGetSecondaryObject (ObjDesc); if (!ExtraDesc) { return_ACPI_STATUS (AE_NOT_EXIST); } /* Get the Region node */ Node = ObjDesc->Region.Node; ACPI_DEBUG_EXEC (AcpiUtDisplayInitPathname ( ACPI_TYPE_REGION, Node, NULL)); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[%4.4s] OpRegion Arg Init at AML %p\n", AcpiUtGetNodeName (Node), ExtraDesc->Extra.AmlStart)); /* Execute the argument AML */ Status = AcpiDsExecuteArguments (Node, ExtraDesc->Extra.ScopeNode, ExtraDesc->Extra.AmlLength, ExtraDesc->Extra.AmlStart); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiUtAddAddressRange (ObjDesc->Region.SpaceId, ObjDesc->Region.Address, ObjDesc->Region.Length, Node); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/dispatcher/dsdebug.c0000775000175000017500000001701514773714132023141 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dsdebug - Parser/Interpreter interface - debugging * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "acnamesp.h" #include "acdisasm.h" #include "acinterp.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dsdebug") #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) /* Local prototypes */ static void AcpiDsPrintNodePathname ( ACPI_NAMESPACE_NODE *Node, const char *Message); /******************************************************************************* * * FUNCTION: AcpiDsPrintNodePathname * * PARAMETERS: Node - Object * Message - Prefix message * * DESCRIPTION: Print an object's full namespace pathname * Manages allocation/freeing of a pathname buffer * ******************************************************************************/ static void AcpiDsPrintNodePathname ( ACPI_NAMESPACE_NODE *Node, const char *Message) { ACPI_BUFFER Buffer; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (DsPrintNodePathname); if (!Node) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DISPATCH, "[NULL NAME]")); return_VOID; } /* Convert handle to full pathname and print it (with supplied message) */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (Node, &Buffer, TRUE); if (ACPI_SUCCESS (Status)) { if (Message) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DISPATCH, "%s ", Message)); } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DISPATCH, "[%s] (Node %p)", (char *) Buffer.Pointer, Node)); ACPI_FREE (Buffer.Pointer); } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDsDumpMethodStack * * PARAMETERS: Status - Method execution status * WalkState - Current state of the parse tree walk * Op - Executing parse op * * RETURN: None * * DESCRIPTION: Called when a method has been aborted because of an error. * Dumps the method execution stack. * ******************************************************************************/ void AcpiDsDumpMethodStack ( ACPI_STATUS Status, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; ACPI_THREAD_STATE *Thread; ACPI_WALK_STATE *NextWalkState; ACPI_NAMESPACE_NODE *PreviousMethod = NULL; ACPI_OPERAND_OBJECT *MethodDesc; ACPI_FUNCTION_TRACE (DsDumpMethodStack); /* Ignore control codes, they are not errors */ if (ACPI_CNTL_EXCEPTION (Status)) { return_VOID; } /* We may be executing a deferred opcode */ if (WalkState->DeferredNode) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Executing subtree for Buffer/Package/Region\n")); return_VOID; } /* * If there is no Thread, we are not actually executing a method. * This can happen when the iASL compiler calls the interpreter * to perform constant folding. */ Thread = WalkState->Thread; if (!Thread) { return_VOID; } /* Display exception and method name */ ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "\n**** Exception %s during execution of method ", AcpiFormatException (Status))); AcpiDsPrintNodePathname (WalkState->MethodNode, NULL); /* Display stack of executing methods */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DISPATCH, "\n\nMethod Execution Stack:\n")); NextWalkState = Thread->WalkStateList; /* Walk list of linked walk states */ while (NextWalkState) { MethodDesc = NextWalkState->MethodDesc; if (MethodDesc) { AcpiExStopTraceMethod ( (ACPI_NAMESPACE_NODE *) MethodDesc->Method.Node, MethodDesc, WalkState); } ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, " Method [%4.4s] executing: ", AcpiUtGetNodeName (NextWalkState->MethodNode))); /* First method is the currently executing method */ if (NextWalkState == WalkState) { if (Op) { /* Display currently executing ASL statement */ Next = Op->Common.Next; Op->Common.Next = NULL; #ifdef ACPI_DISASSEMBLER if (WalkState->MethodNode != AcpiGbl_RootNode) { /* More verbose if not module-level code */ AcpiOsPrintf ("Failed at "); AcpiDmDisassemble (NextWalkState, Op, ACPI_UINT32_MAX); } #endif Op->Common.Next = Next; } } else { /* * This method has called another method * NOTE: the method call parse subtree is already deleted at * this point, so we cannot disassemble the method invocation. */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DISPATCH, "Call to method ")); AcpiDsPrintNodePathname (PreviousMethod, NULL); } PreviousMethod = NextWalkState->MethodNode; NextWalkState = NextWalkState->Next; ACPI_DEBUG_PRINT_RAW ((ACPI_DB_DISPATCH, "\n")); } return_VOID; } #else void AcpiDsDumpMethodStack ( ACPI_STATUS Status, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { return; } #endif acpica-unix-20250404/source/components/dispatcher/dswstate.c0000775000175000017500000005462314773714132023370 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dswstate - Dispatcher parse tree walk management routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "acdispat.h" #include "acnamesp.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dswstate") /* Local prototypes */ static ACPI_STATUS AcpiDsResultStackPush ( ACPI_WALK_STATE *WalkState); static ACPI_STATUS AcpiDsResultStackPop ( ACPI_WALK_STATE *WalkState); /******************************************************************************* * * FUNCTION: AcpiDsResultPop * * PARAMETERS: Object - Where to return the popped object * WalkState - Current Walk state * * RETURN: Status * * DESCRIPTION: Pop an object off the top of this walk's result stack * ******************************************************************************/ ACPI_STATUS AcpiDsResultPop ( ACPI_OPERAND_OBJECT **Object, ACPI_WALK_STATE *WalkState) { UINT32 Index; ACPI_GENERIC_STATE *State; ACPI_STATUS Status; ACPI_FUNCTION_NAME (DsResultPop); State = WalkState->Results; /* Incorrect state of result stack */ if (State && !WalkState->ResultCount) { ACPI_ERROR ((AE_INFO, "No results on result stack")); return (AE_AML_INTERNAL); } if (!State && WalkState->ResultCount) { ACPI_ERROR ((AE_INFO, "No result state for result stack")); return (AE_AML_INTERNAL); } /* Empty result stack */ if (!State) { ACPI_ERROR ((AE_INFO, "Result stack is empty! State=%p", WalkState)); return (AE_AML_NO_RETURN_VALUE); } /* Return object of the top element and clean that top element result stack */ WalkState->ResultCount--; Index = (UINT32) WalkState->ResultCount % ACPI_RESULTS_FRAME_OBJ_NUM; *Object = State->Results.ObjDesc [Index]; if (!*Object) { ACPI_ERROR ((AE_INFO, "No result objects on result stack, State=%p", WalkState)); return (AE_AML_NO_RETURN_VALUE); } State->Results.ObjDesc [Index] = NULL; if (Index == 0) { Status = AcpiDsResultStackPop (WalkState); if (ACPI_FAILURE (Status)) { return (Status); } } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Obj=%p [%s] Index=%X State=%p Num=%X\n", *Object, AcpiUtGetObjectTypeName (*Object), Index, WalkState, WalkState->ResultCount)); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsResultPush * * PARAMETERS: Object - Where to return the popped object * WalkState - Current Walk state * * RETURN: Status * * DESCRIPTION: Push an object onto the current result stack * ******************************************************************************/ ACPI_STATUS AcpiDsResultPush ( ACPI_OPERAND_OBJECT *Object, ACPI_WALK_STATE *WalkState) { ACPI_GENERIC_STATE *State; ACPI_STATUS Status; UINT32 Index; ACPI_FUNCTION_NAME (DsResultPush); if (WalkState->ResultCount > WalkState->ResultSize) { ACPI_ERROR ((AE_INFO, "Result stack is full")); return (AE_AML_INTERNAL); } else if (WalkState->ResultCount == WalkState->ResultSize) { /* Extend the result stack */ Status = AcpiDsResultStackPush (WalkState); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Failed to extend the result stack")); return (Status); } } if (!(WalkState->ResultCount < WalkState->ResultSize)) { ACPI_ERROR ((AE_INFO, "No free elements in result stack")); return (AE_AML_INTERNAL); } State = WalkState->Results; if (!State) { ACPI_ERROR ((AE_INFO, "No result stack frame during push")); return (AE_AML_INTERNAL); } if (!Object) { ACPI_ERROR ((AE_INFO, "Null Object! State=%p Num=%u", WalkState, WalkState->ResultCount)); return (AE_BAD_PARAMETER); } /* Assign the address of object to the top free element of result stack */ Index = (UINT32) WalkState->ResultCount % ACPI_RESULTS_FRAME_OBJ_NUM; State->Results.ObjDesc [Index] = Object; WalkState->ResultCount++; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Obj=%p [%s] State=%p Num=%X Cur=%X\n", Object, AcpiUtGetObjectTypeName ((ACPI_OPERAND_OBJECT *) Object), WalkState, WalkState->ResultCount, WalkState->CurrentResult)); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsResultStackPush * * PARAMETERS: WalkState - Current Walk state * * RETURN: Status * * DESCRIPTION: Push an object onto the WalkState result stack * ******************************************************************************/ static ACPI_STATUS AcpiDsResultStackPush ( ACPI_WALK_STATE *WalkState) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_NAME (DsResultStackPush); /* Check for stack overflow */ if (((UINT32) WalkState->ResultSize + ACPI_RESULTS_FRAME_OBJ_NUM) > ACPI_RESULTS_OBJ_NUM_MAX) { ACPI_ERROR ((AE_INFO, "Result stack overflow: State=%p Num=%u", WalkState, WalkState->ResultSize)); return (AE_STACK_OVERFLOW); } State = AcpiUtCreateGenericState (); if (!State) { return (AE_NO_MEMORY); } State->Common.DescriptorType = ACPI_DESC_TYPE_STATE_RESULT; AcpiUtPushGenericState (&WalkState->Results, State); /* Increase the length of the result stack by the length of frame */ WalkState->ResultSize += ACPI_RESULTS_FRAME_OBJ_NUM; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Results=%p State=%p\n", State, WalkState)); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsResultStackPop * * PARAMETERS: WalkState - Current Walk state * * RETURN: Status * * DESCRIPTION: Pop an object off of the WalkState result stack * ******************************************************************************/ static ACPI_STATUS AcpiDsResultStackPop ( ACPI_WALK_STATE *WalkState) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_NAME (DsResultStackPop); /* Check for stack underflow */ if (WalkState->Results == NULL) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Result stack underflow - State=%p\n", WalkState)); return (AE_AML_NO_OPERAND); } if (WalkState->ResultSize < ACPI_RESULTS_FRAME_OBJ_NUM) { ACPI_ERROR ((AE_INFO, "Insufficient result stack size")); return (AE_AML_INTERNAL); } State = AcpiUtPopGenericState (&WalkState->Results); AcpiUtDeleteGenericState (State); /* Decrease the length of result stack by the length of frame */ WalkState->ResultSize -= ACPI_RESULTS_FRAME_OBJ_NUM; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Result=%p RemainingResults=%X State=%p\n", State, WalkState->ResultCount, WalkState)); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsObjStackPush * * PARAMETERS: Object - Object to push * WalkState - Current Walk state * * RETURN: Status * * DESCRIPTION: Push an object onto this walk's object/operand stack * ******************************************************************************/ ACPI_STATUS AcpiDsObjStackPush ( void *Object, ACPI_WALK_STATE *WalkState) { ACPI_FUNCTION_NAME (DsObjStackPush); /* Check for stack overflow */ if (WalkState->NumOperands >= ACPI_OBJ_NUM_OPERANDS) { ACPI_ERROR ((AE_INFO, "Object stack overflow! Obj=%p State=%p #Ops=%u", Object, WalkState, WalkState->NumOperands)); return (AE_STACK_OVERFLOW); } /* Put the object onto the stack */ WalkState->Operands [WalkState->OperandIndex] = Object; WalkState->NumOperands++; /* For the usual order of filling the operand stack */ WalkState->OperandIndex++; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Obj=%p [%s] State=%p #Ops=%X\n", Object, AcpiUtGetObjectTypeName ((ACPI_OPERAND_OBJECT *) Object), WalkState, WalkState->NumOperands)); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsObjStackPop * * PARAMETERS: PopCount - Number of objects/entries to pop * WalkState - Current Walk state * * RETURN: Status * * DESCRIPTION: Pop this walk's object stack. Objects on the stack are NOT * deleted by this routine. * ******************************************************************************/ ACPI_STATUS AcpiDsObjStackPop ( UINT32 PopCount, ACPI_WALK_STATE *WalkState) { UINT32 i; ACPI_FUNCTION_NAME (DsObjStackPop); for (i = 0; i < PopCount; i++) { /* Check for stack underflow */ if (WalkState->NumOperands == 0) { ACPI_ERROR ((AE_INFO, "Object stack underflow! Count=%X State=%p #Ops=%u", PopCount, WalkState, WalkState->NumOperands)); return (AE_STACK_UNDERFLOW); } /* Just set the stack entry to null */ WalkState->NumOperands--; WalkState->Operands [WalkState->NumOperands] = NULL; } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Count=%X State=%p #Ops=%u\n", PopCount, WalkState, WalkState->NumOperands)); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsObjStackPopAndDelete * * PARAMETERS: PopCount - Number of objects/entries to pop * WalkState - Current Walk state * * RETURN: Status * * DESCRIPTION: Pop this walk's object stack and delete each object that is * popped off. * ******************************************************************************/ void AcpiDsObjStackPopAndDelete ( UINT32 PopCount, ACPI_WALK_STATE *WalkState) { INT32 i; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_NAME (DsObjStackPopAndDelete); if (PopCount == 0) { return; } for (i = (INT32) PopCount - 1; i >= 0; i--) { if (WalkState->NumOperands == 0) { return; } /* Pop the stack and delete an object if present in this stack entry */ WalkState->NumOperands--; ObjDesc = WalkState->Operands [i]; if (ObjDesc) { AcpiUtRemoveReference (WalkState->Operands [i]); WalkState->Operands [i] = NULL; } } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Count=%X State=%p #Ops=%X\n", PopCount, WalkState, WalkState->NumOperands)); } /******************************************************************************* * * FUNCTION: AcpiDsGetCurrentWalkState * * PARAMETERS: Thread - Get current active state for this Thread * * RETURN: Pointer to the current walk state * * DESCRIPTION: Get the walk state that is at the head of the list (the "current" * walk state.) * ******************************************************************************/ ACPI_WALK_STATE * AcpiDsGetCurrentWalkState ( ACPI_THREAD_STATE *Thread) { ACPI_FUNCTION_NAME (DsGetCurrentWalkState); if (!Thread) { return (NULL); } ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Current WalkState %p\n", Thread->WalkStateList)); return (Thread->WalkStateList); } /******************************************************************************* * * FUNCTION: AcpiDsPushWalkState * * PARAMETERS: WalkState - State to push * Thread - Thread state object * * RETURN: None * * DESCRIPTION: Place the Thread state at the head of the state list * ******************************************************************************/ void AcpiDsPushWalkState ( ACPI_WALK_STATE *WalkState, ACPI_THREAD_STATE *Thread) { ACPI_FUNCTION_TRACE (DsPushWalkState); WalkState->Next = Thread->WalkStateList; Thread->WalkStateList = WalkState; return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDsPopWalkState * * PARAMETERS: Thread - Current thread state * * RETURN: A WalkState object popped from the thread's stack * * DESCRIPTION: Remove and return the walkstate object that is at the head of * the walk stack for the given walk list. NULL indicates that * the list is empty. * ******************************************************************************/ ACPI_WALK_STATE * AcpiDsPopWalkState ( ACPI_THREAD_STATE *Thread) { ACPI_WALK_STATE *WalkState; ACPI_FUNCTION_TRACE (DsPopWalkState); WalkState = Thread->WalkStateList; if (WalkState) { /* Next walk state becomes the current walk state */ Thread->WalkStateList = WalkState->Next; /* * Don't clear the NEXT field, this serves as an indicator * that there is a parent WALK STATE * Do Not: WalkState->Next = NULL; */ } return_PTR (WalkState); } /******************************************************************************* * * FUNCTION: AcpiDsCreateWalkState * * PARAMETERS: OwnerId - ID for object creation * Origin - Starting point for this walk * MethodDesc - Method object * Thread - Current thread state * * RETURN: Pointer to the new walk state. * * DESCRIPTION: Allocate and initialize a new walk state. The current walk * state is set to this new state. * ******************************************************************************/ ACPI_WALK_STATE * AcpiDsCreateWalkState ( ACPI_OWNER_ID OwnerId, ACPI_PARSE_OBJECT *Origin, ACPI_OPERAND_OBJECT *MethodDesc, ACPI_THREAD_STATE *Thread) { ACPI_WALK_STATE *WalkState; ACPI_FUNCTION_TRACE (DsCreateWalkState); WalkState = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_WALK_STATE)); if (!WalkState) { return_PTR (NULL); } WalkState->DescriptorType = ACPI_DESC_TYPE_WALK; WalkState->MethodDesc = MethodDesc; WalkState->OwnerId = OwnerId; WalkState->Origin = Origin; WalkState->Thread = Thread; WalkState->ParserState.StartOp = Origin; /* Init the method args/local */ #ifndef ACPI_CONSTANT_EVAL_ONLY AcpiDsMethodDataInit (WalkState); #endif /* Put the new state at the head of the walk list */ if (Thread) { AcpiDsPushWalkState (WalkState, Thread); } return_PTR (WalkState); } /******************************************************************************* * * FUNCTION: AcpiDsInitAmlWalk * * PARAMETERS: WalkState - New state to be initialized * Op - Current parse op * MethodNode - Control method NS node, if any * AmlStart - Start of AML * AmlLength - Length of AML * Info - Method info block (params, etc.) * PassNumber - 1, 2, or 3 * * RETURN: Status * * DESCRIPTION: Initialize a walk state for a pass 1 or 2 parse tree walk * ******************************************************************************/ ACPI_STATUS AcpiDsInitAmlWalk ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE *MethodNode, UINT8 *AmlStart, UINT32 AmlLength, ACPI_EVALUATE_INFO *Info, UINT8 PassNumber) { ACPI_STATUS Status; ACPI_PARSE_STATE *ParserState = &WalkState->ParserState; ACPI_PARSE_OBJECT *ExtraOp; ACPI_FUNCTION_TRACE (DsInitAmlWalk); WalkState->ParserState.Aml = WalkState->ParserState.AmlStart = WalkState->ParserState.AmlEnd = WalkState->ParserState.PkgEnd = AmlStart; /* Avoid undefined behavior: applying zero offset to null pointer */ if (AmlLength != 0) { WalkState->ParserState.AmlEnd += AmlLength; WalkState->ParserState.PkgEnd += AmlLength; } /* The NextOp of the NextWalk will be the beginning of the method */ WalkState->NextOp = NULL; WalkState->PassNumber = PassNumber; if (Info) { WalkState->Params = Info->Parameters; WalkState->CallerReturnDesc = &Info->ReturnObject; } Status = AcpiPsInitScope (&WalkState->ParserState, Op); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (MethodNode) { WalkState->ParserState.StartNode = MethodNode; WalkState->WalkType = ACPI_WALK_METHOD; WalkState->MethodNode = MethodNode; WalkState->MethodDesc = AcpiNsGetAttachedObject (MethodNode); /* Push start scope on scope stack and make it current */ Status = AcpiDsScopeStackPush ( MethodNode, ACPI_TYPE_METHOD, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Init the method arguments */ Status = AcpiDsMethodDataInitArgs (WalkState->Params, ACPI_METHOD_NUM_ARGS, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } else { /* * Setup the current scope. * Find a Named Op that has a namespace node associated with it. * search upwards from this Op. Current scope is the first * Op with a namespace node. */ ExtraOp = ParserState->StartOp; while (ExtraOp && !ExtraOp->Common.Node) { ExtraOp = ExtraOp->Common.Parent; } if (!ExtraOp) { ParserState->StartNode = NULL; } else { ParserState->StartNode = ExtraOp->Common.Node; } if (ParserState->StartNode) { /* Push start scope on scope stack and make it current */ Status = AcpiDsScopeStackPush (ParserState->StartNode, ParserState->StartNode->Type, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } } Status = AcpiDsInitCallbacks (WalkState, PassNumber); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsDeleteWalkState * * PARAMETERS: WalkState - State to delete * * RETURN: Status * * DESCRIPTION: Delete a walk state including all internal data structures * ******************************************************************************/ void AcpiDsDeleteWalkState ( ACPI_WALK_STATE *WalkState) { ACPI_GENERIC_STATE *State; ACPI_FUNCTION_TRACE_PTR (DsDeleteWalkState, WalkState); if (!WalkState) { return_VOID; } if (WalkState->DescriptorType != ACPI_DESC_TYPE_WALK) { ACPI_ERROR ((AE_INFO, "%p is not a valid walk state", WalkState)); return_VOID; } /* There should not be any open scopes */ if (WalkState->ParserState.Scope) { ACPI_ERROR ((AE_INFO, "%p walk still has a scope list", WalkState)); AcpiPsCleanupScope (&WalkState->ParserState); } /* Always must free any linked control states */ while (WalkState->ControlState) { State = WalkState->ControlState; WalkState->ControlState = State->Common.Next; AcpiUtDeleteGenericState (State); } /* Always must free any linked parse states */ while (WalkState->ScopeInfo) { State = WalkState->ScopeInfo; WalkState->ScopeInfo = State->Common.Next; AcpiUtDeleteGenericState (State); } /* Always must free any stacked result states */ while (WalkState->Results) { State = WalkState->Results; WalkState->Results = State->Common.Next; AcpiUtDeleteGenericState (State); } ACPI_FREE (WalkState); return_VOID; } acpica-unix-20250404/source/components/dispatcher/dsopcode.c0000775000175000017500000005561514773714132023334 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dsopcode - Dispatcher support for regions and fields * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #include "acevents.h" #include "actables.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dsopcode") /* Local prototypes */ static ACPI_STATUS AcpiDsInitBufferField ( UINT16 AmlOpcode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT *BufferDesc, ACPI_OPERAND_OBJECT *OffsetDesc, ACPI_OPERAND_OBJECT *LengthDesc, ACPI_OPERAND_OBJECT *ResultDesc); /******************************************************************************* * * FUNCTION: AcpiDsInitializeRegion * * PARAMETERS: ObjHandle - Region namespace node * * RETURN: Status * * DESCRIPTION: Front end to EvInitializeRegion * ******************************************************************************/ ACPI_STATUS AcpiDsInitializeRegion ( ACPI_HANDLE ObjHandle) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ObjDesc = AcpiNsGetAttachedObject (ObjHandle); /* Namespace is NOT locked */ Status = AcpiEvInitializeRegion (ObjDesc); return (Status); } /******************************************************************************* * * FUNCTION: AcpiDsInitBufferField * * PARAMETERS: AmlOpcode - CreateXxxField * ObjDesc - BufferField object * BufferDesc - Host Buffer * OffsetDesc - Offset into buffer * LengthDesc - Length of field (CREATE_FIELD_OP only) * ResultDesc - Where to store the result * * RETURN: Status * * DESCRIPTION: Perform actual initialization of a buffer field * ******************************************************************************/ static ACPI_STATUS AcpiDsInitBufferField ( UINT16 AmlOpcode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT *BufferDesc, ACPI_OPERAND_OBJECT *OffsetDesc, ACPI_OPERAND_OBJECT *LengthDesc, ACPI_OPERAND_OBJECT *ResultDesc) { UINT32 Offset; UINT32 BitOffset; UINT32 BitCount; UINT8 FieldFlags; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (DsInitBufferField, ObjDesc); /* Host object must be a Buffer */ if (BufferDesc->Common.Type != ACPI_TYPE_BUFFER) { ACPI_ERROR ((AE_INFO, "Target of Create Field is not a Buffer object - %s", AcpiUtGetObjectTypeName (BufferDesc))); Status = AE_AML_OPERAND_TYPE; goto Cleanup; } /* * The last parameter to all of these opcodes (ResultDesc) started * out as a NameString, and should therefore now be a NS node * after resolution in AcpiExResolveOperands(). */ if (ACPI_GET_DESCRIPTOR_TYPE (ResultDesc) != ACPI_DESC_TYPE_NAMED) { ACPI_ERROR ((AE_INFO, "(%s) destination not a NS Node [%s]", AcpiPsGetOpcodeName (AmlOpcode), AcpiUtGetDescriptorName (ResultDesc))); Status = AE_AML_OPERAND_TYPE; goto Cleanup; } Offset = (UINT32) OffsetDesc->Integer.Value; /* * Setup the Bit offsets and counts, according to the opcode */ switch (AmlOpcode) { case AML_CREATE_FIELD_OP: /* Offset is in bits, count is in bits */ FieldFlags = AML_FIELD_ACCESS_BYTE; BitOffset = Offset; BitCount = (UINT32) LengthDesc->Integer.Value; /* Must have a valid (>0) bit count */ if (BitCount == 0) { ACPI_BIOS_ERROR ((AE_INFO, "Attempt to CreateField of length zero")); Status = AE_AML_OPERAND_VALUE; goto Cleanup; } break; case AML_CREATE_BIT_FIELD_OP: /* Offset is in bits, Field is one bit */ BitOffset = Offset; BitCount = 1; FieldFlags = AML_FIELD_ACCESS_BYTE; break; case AML_CREATE_BYTE_FIELD_OP: /* Offset is in bytes, field is one byte */ BitOffset = 8 * Offset; BitCount = 8; FieldFlags = AML_FIELD_ACCESS_BYTE; break; case AML_CREATE_WORD_FIELD_OP: /* Offset is in bytes, field is one word */ BitOffset = 8 * Offset; BitCount = 16; FieldFlags = AML_FIELD_ACCESS_WORD; break; case AML_CREATE_DWORD_FIELD_OP: /* Offset is in bytes, field is one dword */ BitOffset = 8 * Offset; BitCount = 32; FieldFlags = AML_FIELD_ACCESS_DWORD; break; case AML_CREATE_QWORD_FIELD_OP: /* Offset is in bytes, field is one qword */ BitOffset = 8 * Offset; BitCount = 64; FieldFlags = AML_FIELD_ACCESS_QWORD; break; default: ACPI_ERROR ((AE_INFO, "Unknown field creation opcode 0x%02X", AmlOpcode)); Status = AE_AML_BAD_OPCODE; goto Cleanup; } /* Entire field must fit within the current length of the buffer */ if ((BitOffset + BitCount) > (8 * (UINT32) BufferDesc->Buffer.Length)) { Status = AE_AML_BUFFER_LIMIT; ACPI_BIOS_EXCEPTION ((AE_INFO, Status, "Field [%4.4s] at bit offset/length %u/%u " "exceeds size of target Buffer (%u bits)", AcpiUtGetNodeName (ResultDesc), BitOffset, BitCount, 8 * (UINT32) BufferDesc->Buffer.Length)); goto Cleanup; } /* * Initialize areas of the field object that are common to all fields * For FieldFlags, use LOCK_RULE = 0 (NO_LOCK), * UPDATE_RULE = 0 (UPDATE_PRESERVE) */ Status = AcpiExPrepCommonFieldObject ( ObjDesc, FieldFlags, 0, BitOffset, BitCount); if (ACPI_FAILURE (Status)) { goto Cleanup; } ObjDesc->BufferField.BufferObj = BufferDesc; ObjDesc->BufferField.IsCreateField = AmlOpcode == AML_CREATE_FIELD_OP; /* Reference count for BufferDesc inherits ObjDesc count */ BufferDesc->Common.ReferenceCount = (UINT16) (BufferDesc->Common.ReferenceCount + ObjDesc->Common.ReferenceCount); Cleanup: /* Always delete the operands */ AcpiUtRemoveReference (OffsetDesc); AcpiUtRemoveReference (BufferDesc); if (AmlOpcode == AML_CREATE_FIELD_OP) { AcpiUtRemoveReference (LengthDesc); } /* On failure, delete the result descriptor */ if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ResultDesc); /* Result descriptor */ } else { /* Now the address and length are valid for this BufferField */ ObjDesc->BufferField.Flags |= AOPOBJ_DATA_VALID; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsEvalBufferFieldOperands * * PARAMETERS: WalkState - Current walk * Op - A valid BufferField Op object * * RETURN: Status * * DESCRIPTION: Get BufferField Buffer and Index * Called from AcpiDsExecEndOp during BufferField parse tree walk * ******************************************************************************/ ACPI_STATUS AcpiDsEvalBufferFieldOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *NextOp; ACPI_FUNCTION_TRACE_PTR (DsEvalBufferFieldOperands, Op); /* * This is where we evaluate the address and length fields of the * CreateXxxField declaration */ Node = Op->Common.Node; /* NextOp points to the op that holds the Buffer */ NextOp = Op->Common.Value.Arg; /* Evaluate/create the address and length operands */ Status = AcpiDsCreateOperands (WalkState, NextOp); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { return_ACPI_STATUS (AE_NOT_EXIST); } /* Resolve the operands */ Status = AcpiExResolveOperands ( Op->Common.AmlOpcode, ACPI_WALK_OPERANDS, WalkState); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "(%s) bad operand(s), status 0x%X", AcpiPsGetOpcodeName (Op->Common.AmlOpcode), Status)); return_ACPI_STATUS (Status); } /* Initialize the Buffer Field */ if (Op->Common.AmlOpcode == AML_CREATE_FIELD_OP) { /* NOTE: Slightly different operands for this opcode */ Status = AcpiDsInitBufferField (Op->Common.AmlOpcode, ObjDesc, WalkState->Operands[0], WalkState->Operands[1], WalkState->Operands[2], WalkState->Operands[3]); } else { /* All other, CreateXxxField opcodes */ Status = AcpiDsInitBufferField (Op->Common.AmlOpcode, ObjDesc, WalkState->Operands[0], WalkState->Operands[1], NULL, WalkState->Operands[2]); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsEvalRegionOperands * * PARAMETERS: WalkState - Current walk * Op - A valid region Op object * * RETURN: Status * * DESCRIPTION: Get region address and length * Called from AcpiDsExecEndOp during OpRegion parse tree walk * ******************************************************************************/ ACPI_STATUS AcpiDsEvalRegionOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *OperandDesc; ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *NextOp; ACPI_ADR_SPACE_TYPE SpaceId; ACPI_FUNCTION_TRACE_PTR (DsEvalRegionOperands, Op); /* * This is where we evaluate the address and length fields of the * OpRegion declaration */ Node = Op->Common.Node; /* NextOp points to the op that holds the SpaceID */ NextOp = Op->Common.Value.Arg; SpaceId = (ACPI_ADR_SPACE_TYPE) NextOp->Common.Value.Integer; /* NextOp points to address op */ NextOp = NextOp->Common.Next; /* Evaluate/create the address and length operands */ Status = AcpiDsCreateOperands (WalkState, NextOp); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Resolve the length and address operands to numbers */ Status = AcpiExResolveOperands ( Op->Common.AmlOpcode, ACPI_WALK_OPERANDS, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { return_ACPI_STATUS (AE_NOT_EXIST); } /* * Get the length operand and save it * (at Top of stack) */ OperandDesc = WalkState->Operands[WalkState->NumOperands - 1]; ObjDesc->Region.Length = (UINT32) OperandDesc->Integer.Value; AcpiUtRemoveReference (OperandDesc); /* A zero-length operation region is unusable. Just warn */ if (!ObjDesc->Region.Length && (SpaceId < ACPI_NUM_PREDEFINED_REGIONS)) { ACPI_WARNING ((AE_INFO, "Operation Region [%4.4s] has zero length (SpaceId %X)", Node->Name.Ascii, SpaceId)); } /* * Get the address and save it * (at top of stack - 1) */ OperandDesc = WalkState->Operands[WalkState->NumOperands - 2]; ObjDesc->Region.Address = (ACPI_PHYSICAL_ADDRESS) OperandDesc->Integer.Value; AcpiUtRemoveReference (OperandDesc); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "RgnObj %p Addr %8.8X%8.8X Len %X\n", ObjDesc, ACPI_FORMAT_UINT64 (ObjDesc->Region.Address), ObjDesc->Region.Length)); Status = AcpiUtAddAddressRange (ObjDesc->Region.SpaceId, ObjDesc->Region.Address, ObjDesc->Region.Length, Node); /* Now the address and length are valid for this opregion */ ObjDesc->Region.Flags |= AOPOBJ_DATA_VALID; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsEvalTableRegionOperands * * PARAMETERS: WalkState - Current walk * Op - A valid region Op object * * RETURN: Status * * DESCRIPTION: Get region address and length. * Called from AcpiDsExecEndOp during DataTableRegion parse * tree walk. * ******************************************************************************/ ACPI_STATUS AcpiDsEvalTableRegionOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT **Operand; ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *NextOp; ACPI_TABLE_HEADER *Table; UINT32 TableIndex; ACPI_FUNCTION_TRACE_PTR (DsEvalTableRegionOperands, Op); /* * This is where we evaluate the Signature string, OemId string, * and OemTableId string of the Data Table Region declaration */ Node = Op->Common.Node; /* NextOp points to Signature string op */ NextOp = Op->Common.Value.Arg; /* * Evaluate/create the Signature string, OemId string, * and OemTableId string operands */ Status = AcpiDsCreateOperands (WalkState, NextOp); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Operand = &WalkState->Operands[0]; /* * Resolve the Signature string, OemId string, * and OemTableId string operands */ Status = AcpiExResolveOperands ( Op->Common.AmlOpcode, ACPI_WALK_OPERANDS, WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* Find the ACPI table */ Status = AcpiTbFindTable ( Operand[0]->String.Pointer, Operand[1]->String.Pointer, Operand[2]->String.Pointer, &TableIndex); if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_FOUND) { ACPI_ERROR ((AE_INFO, "ACPI Table [%4.4s] OEM:(%s, %s) not found in RSDT/XSDT", Operand[0]->String.Pointer, Operand[1]->String.Pointer, Operand[2]->String.Pointer)); } goto Cleanup; } Status = AcpiGetTableByIndex (TableIndex, &Table); if (ACPI_FAILURE (Status)) { goto Cleanup; } ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { Status = AE_NOT_EXIST; goto Cleanup; } ObjDesc->Region.Address = ACPI_PTR_TO_PHYSADDR (Table); ObjDesc->Region.Length = Table->Length; ObjDesc->Region.Pointer = Table; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "RgnObj %p Addr %8.8X%8.8X Len %X\n", ObjDesc, ACPI_FORMAT_UINT64 (ObjDesc->Region.Address), ObjDesc->Region.Length)); /* Now the address and length are valid for this opregion */ ObjDesc->Region.Flags |= AOPOBJ_DATA_VALID; Cleanup: AcpiUtRemoveReference (Operand[0]); AcpiUtRemoveReference (Operand[1]); AcpiUtRemoveReference (Operand[2]); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsEvalDataObjectOperands * * PARAMETERS: WalkState - Current walk * Op - A valid DataObject Op object * ObjDesc - DataObject * * RETURN: Status * * DESCRIPTION: Get the operands and complete the following data object types: * Buffer, Package. * ******************************************************************************/ ACPI_STATUS AcpiDsEvalDataObjectOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ArgDesc; UINT32 Length; ACPI_FUNCTION_TRACE (DsEvalDataObjectOperands); /* The first operand (for all of these data objects) is the length */ /* * Set proper index into operand stack for AcpiDsObjStackPush * invoked inside AcpiDsCreateOperand. */ WalkState->OperandIndex = WalkState->NumOperands; /* Ignore if child is not valid */ if (!Op->Common.Value.Arg) { ACPI_ERROR ((AE_INFO, "Missing child while evaluating opcode %4.4X, Op %p", Op->Common.AmlOpcode, Op)); return_ACPI_STATUS (AE_OK); } Status = AcpiDsCreateOperand (WalkState, Op->Common.Value.Arg, 1); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiExResolveOperands (WalkState->Opcode, &(WalkState->Operands [WalkState->NumOperands -1]), WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Extract length operand */ ArgDesc = WalkState->Operands [WalkState->NumOperands - 1]; Length = (UINT32) ArgDesc->Integer.Value; /* Cleanup for length operand */ Status = AcpiDsObjStackPop (1, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } AcpiUtRemoveReference (ArgDesc); /* * Create the actual data object */ switch (Op->Common.AmlOpcode) { case AML_BUFFER_OP: Status = AcpiDsBuildInternalBufferObj ( WalkState, Op, Length, &ObjDesc); break; case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: Status = AcpiDsBuildInternalPackageObj ( WalkState, Op, Length, &ObjDesc); break; default: return_ACPI_STATUS (AE_AML_BAD_OPCODE); } if (ACPI_SUCCESS (Status)) { /* * Return the object in the WalkState, unless the parent is a package - * in this case, the return object will be stored in the parse tree * for the package. */ if ((!Op->Common.Parent) || ((Op->Common.Parent->Common.AmlOpcode != AML_PACKAGE_OP) && (Op->Common.Parent->Common.AmlOpcode != AML_VARIABLE_PACKAGE_OP) && (Op->Common.Parent->Common.AmlOpcode != AML_NAME_OP))) { WalkState->ResultObj = ObjDesc; } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsEvalBankFieldOperands * * PARAMETERS: WalkState - Current walk * Op - A valid BankField Op object * * RETURN: Status * * DESCRIPTION: Get BankField BankValue * Called from AcpiDsExecEndOp during BankField parse tree walk * ******************************************************************************/ ACPI_STATUS AcpiDsEvalBankFieldOperands ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *OperandDesc; ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *NextOp; ACPI_PARSE_OBJECT *Arg; ACPI_FUNCTION_TRACE_PTR (DsEvalBankFieldOperands, Op); /* * This is where we evaluate the BankValue field of the * BankField declaration */ /* NextOp points to the op that holds the Region */ NextOp = Op->Common.Value.Arg; /* NextOp points to the op that holds the Bank Register */ NextOp = NextOp->Common.Next; /* NextOp points to the op that holds the Bank Value */ NextOp = NextOp->Common.Next; /* * Set proper index into operand stack for AcpiDsObjStackPush * invoked inside AcpiDsCreateOperand. * * We use WalkState->Operands[0] to store the evaluated BankValue */ WalkState->OperandIndex = 0; Status = AcpiDsCreateOperand (WalkState, NextOp, 0); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiExResolveToValue (&WalkState->Operands[0], WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ACPI_DUMP_OPERANDS (ACPI_WALK_OPERANDS, AcpiPsGetOpcodeName (Op->Common.AmlOpcode), 1); /* * Get the BankValue operand and save it * (at Top of stack) */ OperandDesc = WalkState->Operands[0]; /* Arg points to the start Bank Field */ Arg = AcpiPsGetArg (Op, 4); while (Arg) { /* Ignore OFFSET and ACCESSAS terms here */ if (Arg->Common.AmlOpcode == AML_INT_NAMEDFIELD_OP) { Node = Arg->Common.Node; ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { return_ACPI_STATUS (AE_NOT_EXIST); } ObjDesc->BankField.Value = (UINT32) OperandDesc->Integer.Value; } /* Move to next field in the list */ Arg = Arg->Common.Next; } AcpiUtRemoveReference (OperandDesc); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/dispatcher/dswscope.c0000775000175000017500000001541514773714132023355 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dswscope - Scope stack manipulation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dswscope") /**************************************************************************** * * FUNCTION: AcpiDsScopeStackClear * * PARAMETERS: WalkState - Current state * * RETURN: None * * DESCRIPTION: Pop (and free) everything on the scope stack except the * root scope object (which remains at the stack top.) * ***************************************************************************/ void AcpiDsScopeStackClear ( ACPI_WALK_STATE *WalkState) { ACPI_GENERIC_STATE *ScopeInfo; ACPI_FUNCTION_NAME (DsScopeStackClear); while (WalkState->ScopeInfo) { /* Pop a scope off the stack */ ScopeInfo = WalkState->ScopeInfo; WalkState->ScopeInfo = ScopeInfo->Scope.Next; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Popped object type (%s)\n", AcpiUtGetTypeName (ScopeInfo->Common.Value))); AcpiUtDeleteGenericState (ScopeInfo); } } /**************************************************************************** * * FUNCTION: AcpiDsScopeStackPush * * PARAMETERS: Node - Name to be made current * Type - Type of frame being pushed * WalkState - Current state * * RETURN: Status * * DESCRIPTION: Push the current scope on the scope stack, and make the * passed Node current. * ***************************************************************************/ ACPI_STATUS AcpiDsScopeStackPush ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_TYPE Type, ACPI_WALK_STATE *WalkState) { ACPI_GENERIC_STATE *ScopeInfo; ACPI_GENERIC_STATE *OldScopeInfo; ACPI_FUNCTION_TRACE (DsScopeStackPush); if (!Node) { /* Invalid scope */ ACPI_ERROR ((AE_INFO, "Null scope parameter")); return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Make sure object type is valid */ if (!AcpiUtValidObjectType (Type)) { ACPI_WARNING ((AE_INFO, "Invalid object type: 0x%X", Type)); } /* Allocate a new scope object */ ScopeInfo = AcpiUtCreateGenericState (); if (!ScopeInfo) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Init new scope object */ ScopeInfo->Common.DescriptorType = ACPI_DESC_TYPE_STATE_WSCOPE; ScopeInfo->Scope.Node = Node; ScopeInfo->Common.Value = (UINT16) Type; WalkState->ScopeDepth++; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[%.2d] Pushed scope ", (UINT32) WalkState->ScopeDepth)); OldScopeInfo = WalkState->ScopeInfo; if (OldScopeInfo) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC, "[%4.4s] (%s)", AcpiUtGetNodeName (OldScopeInfo->Scope.Node), AcpiUtGetTypeName (OldScopeInfo->Common.Value))); } else { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC, ACPI_NAMESPACE_ROOT)); } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC, ", New scope -> [%4.4s] (%s)\n", AcpiUtGetNodeName (ScopeInfo->Scope.Node), AcpiUtGetTypeName (ScopeInfo->Common.Value))); /* Push new scope object onto stack */ AcpiUtPushGenericState (&WalkState->ScopeInfo, ScopeInfo); return_ACPI_STATUS (AE_OK); } /**************************************************************************** * * FUNCTION: AcpiDsScopeStackPop * * PARAMETERS: WalkState - Current state * * RETURN: Status * * DESCRIPTION: Pop the scope stack once. * ***************************************************************************/ ACPI_STATUS AcpiDsScopeStackPop ( ACPI_WALK_STATE *WalkState) { ACPI_GENERIC_STATE *ScopeInfo; ACPI_GENERIC_STATE *NewScopeInfo; ACPI_FUNCTION_TRACE (DsScopeStackPop); /* * Pop scope info object off the stack. */ ScopeInfo = AcpiUtPopGenericState (&WalkState->ScopeInfo); if (!ScopeInfo) { return_ACPI_STATUS (AE_STACK_UNDERFLOW); } WalkState->ScopeDepth--; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[%.2d] Popped scope [%4.4s] (%s), New scope -> ", (UINT32) WalkState->ScopeDepth, AcpiUtGetNodeName (ScopeInfo->Scope.Node), AcpiUtGetTypeName (ScopeInfo->Common.Value))); NewScopeInfo = WalkState->ScopeInfo; if (NewScopeInfo) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC, "[%4.4s] (%s)\n", AcpiUtGetNodeName (NewScopeInfo->Scope.Node), AcpiUtGetTypeName (NewScopeInfo->Common.Value))); } else { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EXEC, "%s\n", ACPI_NAMESPACE_ROOT)); } AcpiUtDeleteGenericState (ScopeInfo); return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/dispatcher/dspkginit.c0000775000175000017500000004702514773714132023524 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dspkginit - Completion of deferred package initialization * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acparser.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("dspkginit") /* Local prototypes */ static void AcpiDsResolvePackageElement ( ACPI_OPERAND_OBJECT **Element); /******************************************************************************* * * FUNCTION: AcpiDsBuildInternalPackageObj * * PARAMETERS: WalkState - Current walk state * Op - Parser object to be translated * ElementCount - Number of elements in the package - this is * the NumElements argument to Package() * ObjDescPtr - Where the ACPI internal object is returned * * RETURN: Status * * DESCRIPTION: Translate a parser Op package object to the equivalent * namespace object * * NOTE: The number of elements in the package will be always be the NumElements * count, regardless of the number of elements in the package list. If * NumElements is smaller, only that many package list elements are used. * if NumElements is larger, the Package object is padded out with * objects of type Uninitialized (as per ACPI spec.) * * Even though the ASL compilers do not allow NumElements to be smaller * than the Package list length (for the fixed length package opcode), some * BIOS code modifies the AML on the fly to adjust the NumElements, and * this code compensates for that. This also provides compatibility with * other AML interpreters. * ******************************************************************************/ ACPI_STATUS AcpiDsBuildInternalPackageObj ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, UINT32 ElementCount, ACPI_OPERAND_OBJECT **ObjDescPtr) { ACPI_PARSE_OBJECT *Arg; ACPI_PARSE_OBJECT *Parent; ACPI_OPERAND_OBJECT *ObjDesc = NULL; ACPI_STATUS Status = AE_OK; BOOLEAN ModuleLevelCode = FALSE; UINT16 ReferenceCount; UINT32 Index; UINT32 i; ACPI_FUNCTION_TRACE (DsBuildInternalPackageObj); /* Check if we are executing module level code */ if (WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL) { ModuleLevelCode = TRUE; } /* Find the parent of a possibly nested package */ Parent = Op->Common.Parent; while ((Parent->Common.AmlOpcode == AML_PACKAGE_OP) || (Parent->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP)) { Parent = Parent->Common.Parent; } /* * If we are evaluating a Named package object of the form: * Name (xxxx, Package) * the package object already exists, otherwise it must be created. */ ObjDesc = *ObjDescPtr; if (!ObjDesc) { ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_PACKAGE); *ObjDescPtr = ObjDesc; if (!ObjDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } ObjDesc->Package.Node = Parent->Common.Node; } if (ObjDesc->Package.Flags & AOPOBJ_DATA_VALID) /* Just in case */ { return_ACPI_STATUS (AE_OK); } /* * Allocate the element array (array of pointers to the individual * objects) if necessary. the count is based on the NumElements * parameter. Add an extra pointer slot so that the list is always * null terminated. */ if (!ObjDesc->Package.Elements) { ObjDesc->Package.Elements = ACPI_ALLOCATE_ZEROED ( ((ACPI_SIZE) ElementCount + 1) * sizeof (void *)); if (!ObjDesc->Package.Elements) { AcpiUtDeleteObjectDesc (ObjDesc); return_ACPI_STATUS (AE_NO_MEMORY); } ObjDesc->Package.Count = ElementCount; } /* First arg is element count. Second arg begins the initializer list */ Arg = Op->Common.Value.Arg; Arg = Arg->Common.Next; /* * If we are executing module-level code, we will defer the * full resolution of the package elements in order to support * forward references from the elements. This provides * compatibility with other ACPI implementations. */ if (ModuleLevelCode) { ObjDesc->Package.AmlStart = WalkState->Aml; ObjDesc->Package.AmlLength = 0; ACPI_DEBUG_PRINT_RAW ((ACPI_DB_PARSE, "%s: Deferring resolution of Package elements\n", ACPI_GET_FUNCTION_NAME)); } /* * Initialize the elements of the package, up to the NumElements count. * Package is automatically padded with uninitialized (NULL) elements * if NumElements is greater than the package list length. Likewise, * Package is truncated if NumElements is less than the list length. */ for (i = 0; Arg && (i < ElementCount); i++) { if (Arg->Common.AmlOpcode == AML_INT_RETURN_VALUE_OP) { if (!Arg->Common.Node) { /* * This is the case where an expression has returned a value. * The use of expressions (TermArgs) within individual * package elements is not supported by the AML interpreter, * even though the ASL grammar supports it. Example: * * Name (INT1, 0x1234) * * Name (PKG3, Package () { * Add (INT1, 0xAAAA0000) * }) * * 1) No known AML interpreter supports this type of construct * 2) This fixes a fault if the construct is encountered */ ACPI_EXCEPTION ((AE_INFO, AE_SUPPORT, "Expressions within package elements are not supported")); /* Cleanup the return object, it is not needed */ AcpiUtRemoveReference (WalkState->Results->Results.ObjDesc[0]); return_ACPI_STATUS (AE_SUPPORT); } if (Arg->Common.Node->Type == ACPI_TYPE_METHOD) { /* * A method reference "looks" to the parser to be a method * invocation, so we special case it here */ Arg->Common.AmlOpcode = AML_INT_NAMEPATH_OP; Status = AcpiDsBuildInternalObject ( WalkState, Arg, &ObjDesc->Package.Elements[i]); } else { /* This package element is already built, just get it */ ObjDesc->Package.Elements[i] = ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, Arg->Common.Node); } } else { Status = AcpiDsBuildInternalObject ( WalkState, Arg, &ObjDesc->Package.Elements[i]); if (Status == AE_NOT_FOUND) { ACPI_ERROR ((AE_INFO, "%-48s", "****DS namepath not found")); } if (!ModuleLevelCode) { /* * Initialize this package element. This function handles the * resolution of named references within the package. * Forward references from module-level code are deferred * until all ACPI tables are loaded. */ AcpiDsInitPackageElement (0, ObjDesc->Package.Elements[i], NULL, &ObjDesc->Package.Elements[i]); } } if (*ObjDescPtr) { /* Existing package, get existing reference count */ ReferenceCount = (*ObjDescPtr)->Common.ReferenceCount; if (ReferenceCount > 1) { /* Make new element ref count match original ref count */ /* TBD: Probably need an AcpiUtAddReferences function */ for (Index = 0; Index < ((UINT32) ReferenceCount - 1); Index++) { AcpiUtAddReference ((ObjDesc->Package.Elements[i])); } } } Arg = Arg->Common.Next; } /* Check for match between NumElements and actual length of PackageList */ if (Arg) { /* * NumElements was exhausted, but there are remaining elements in * the PackageList. Truncate the package to NumElements. * * Note: technically, this is an error, from ACPI spec: "It is an * error for NumElements to be less than the number of elements in * the PackageList". However, we just print a message and no * exception is returned. This provides compatibility with other * ACPI implementations. Some firmware implementations will alter * the NumElements on the fly, possibly creating this type of * ill-formed package object. */ while (Arg) { /* * We must delete any package elements that were created earlier * and are not going to be used because of the package truncation. */ if (Arg->Common.Node) { AcpiUtRemoveReference ( ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, Arg->Common.Node)); Arg->Common.Node = NULL; } /* Find out how many elements there really are */ i++; Arg = Arg->Common.Next; } ACPI_INFO (( "Actual Package length (%u) is larger than " "NumElements field (%u), truncated", i, ElementCount)); } else if (i < ElementCount) { /* * Arg list (elements) was exhausted, but we did not reach * NumElements count. * * Note: this is not an error, the package is padded out * with NULLs as per the ACPI specification. */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INFO, "%s: Package List length (%u) smaller than NumElements " "count (%u), padded with null elements\n", ACPI_GET_FUNCTION_NAME, i, ElementCount)); } /* Module-level packages will be resolved later */ if (!ModuleLevelCode) { ObjDesc->Package.Flags |= AOPOBJ_DATA_VALID; } Op->Common.Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsInitPackageElement * * PARAMETERS: ACPI_PKG_CALLBACK * * RETURN: Status * * DESCRIPTION: Resolve a named reference element within a package object * ******************************************************************************/ ACPI_STATUS AcpiDsInitPackageElement ( UINT8 ObjectType, ACPI_OPERAND_OBJECT *SourceObject, ACPI_GENERIC_STATE *State, void *Context) { ACPI_OPERAND_OBJECT **ElementPtr; ACPI_FUNCTION_TRACE (DsInitPackageElement); if (!SourceObject) { return_ACPI_STATUS (AE_OK); } /* * The following code is a bit of a hack to workaround a (current) * limitation of the ACPI_PKG_CALLBACK interface. We need a pointer * to the location within the element array because a new object * may be created and stored there. */ if (Context) { /* A direct call was made to this function */ ElementPtr = (ACPI_OPERAND_OBJECT **) Context; } else { /* Call came from AcpiUtWalkPackageTree */ ElementPtr = State->Pkg.ThisTargetObj; } /* We are only interested in reference objects/elements */ if (SourceObject->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) { /* Attempt to resolve the (named) reference to a namespace node */ AcpiDsResolvePackageElement (ElementPtr); } else if (SourceObject->Common.Type == ACPI_TYPE_PACKAGE) { SourceObject->Package.Flags |= AOPOBJ_DATA_VALID; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsResolvePackageElement * * PARAMETERS: ElementPtr - Pointer to a reference object * * RETURN: Possible new element is stored to the indirect ElementPtr * * DESCRIPTION: Resolve a package element that is a reference to a named * object. * ******************************************************************************/ static void AcpiDsResolvePackageElement ( ACPI_OPERAND_OBJECT **ElementPtr) { ACPI_STATUS Status; ACPI_STATUS Status2; ACPI_GENERIC_STATE ScopeInfo; ACPI_OPERAND_OBJECT *Element = *ElementPtr; ACPI_NAMESPACE_NODE *ResolvedNode; ACPI_NAMESPACE_NODE *OriginalNode; char *ExternalPath = ""; ACPI_OBJECT_TYPE Type; ACPI_FUNCTION_TRACE (DsResolvePackageElement); /* Check if reference element is already resolved */ if (Element->Reference.Resolved) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_PARSE, "%s: Package element is already resolved\n", ACPI_GET_FUNCTION_NAME)); return_VOID; } /* Element must be a reference object of correct type */ ScopeInfo.Scope.Node = Element->Reference.Node; /* Prefix node */ Status = AcpiNsLookup (&ScopeInfo, (char *) Element->Reference.Aml, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, NULL, &ResolvedNode); if (ACPI_FAILURE (Status)) { if ((Status == AE_NOT_FOUND) && AcpiGbl_IgnorePackageResolutionErrors) { /* * Optionally be silent about the NOT_FOUND case for the referenced * name. Although this is potentially a serious problem, * it can generate a lot of noise/errors on platforms whose * firmware carries around a bunch of unused Package objects. * To disable these errors, set this global to TRUE: * AcpiGbl_IgnorePackageResolutionErrors * * If the AML actually tries to use such a package, the unresolved * element(s) will be replaced with NULL elements. */ /* Referenced name not found, set the element to NULL */ AcpiUtRemoveReference (*ElementPtr); *ElementPtr = NULL; return_VOID; } Status2 = AcpiNsExternalizeName (ACPI_UINT32_MAX, (char *) Element->Reference.Aml, NULL, &ExternalPath); ACPI_EXCEPTION ((AE_INFO, Status, "While resolving a named reference package element - %s", ExternalPath)); if (ACPI_SUCCESS (Status2)) { ACPI_FREE (ExternalPath); } /* Could not resolve name, set the element to NULL */ AcpiUtRemoveReference (*ElementPtr); *ElementPtr = NULL; return_VOID; } else if (ResolvedNode->Type == ACPI_TYPE_ANY) { /* Named reference not resolved, return a NULL package element */ ACPI_ERROR ((AE_INFO, "Could not resolve named package element [%4.4s] in [%4.4s]", ResolvedNode->Name.Ascii, ScopeInfo.Scope.Node->Name.Ascii)); *ElementPtr = NULL; return_VOID; } /* * Special handling for Alias objects. We need ResolvedNode to point * to the Alias target. This effectively "resolves" the alias. */ if (ResolvedNode->Type == ACPI_TYPE_LOCAL_ALIAS) { ResolvedNode = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ResolvedNode->Object); } /* Update the reference object */ Element->Reference.Resolved = TRUE; Element->Reference.Node = ResolvedNode; Type = Element->Reference.Node->Type; /* * Attempt to resolve the node to a value before we insert it into * the package. If this is a reference to a common data type, * resolve it immediately. According to the ACPI spec, package * elements can only be "data objects" or method references. * Attempt to resolve to an Integer, Buffer, String or Package. * If cannot, return the named reference (for things like Devices, * Methods, etc.) Buffer Fields and Fields will resolve to simple * objects (int/buf/str/pkg). * * NOTE: References to things like Devices, Methods, Mutexes, etc. * will remain as named references. This behavior is not described * in the ACPI spec, but it appears to be an oversight. */ OriginalNode = ResolvedNode; Status = AcpiExResolveNodeToValue (&ResolvedNode, NULL); if (ACPI_FAILURE (Status)) { return_VOID; } switch (Type) { /* * These object types are a result of named references, so we will * leave them as reference objects. In other words, these types * have no intrinsic "value". */ case ACPI_TYPE_DEVICE: case ACPI_TYPE_THERMAL: case ACPI_TYPE_METHOD: break; case ACPI_TYPE_MUTEX: case ACPI_TYPE_POWER: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_EVENT: case ACPI_TYPE_REGION: /* AcpiExResolveNodeToValue gave these an extra reference */ AcpiUtRemoveReference (OriginalNode->Object); break; default: /* * For all other types - the node was resolved to an actual * operand object with a value, return the object. Remove * a reference on the existing object. */ AcpiUtRemoveReference (Element); *ElementPtr = (ACPI_OPERAND_OBJECT *) ResolvedNode; break; } return_VOID; } acpica-unix-20250404/source/components/dispatcher/dsinit.c0000775000175000017500000002062014773714132023012 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dsinit - Object initialization namespace walk * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "acnamesp.h" #include "actables.h" #include "acinterp.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dsinit") /* Local prototypes */ static ACPI_STATUS AcpiDsInitOneObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); /******************************************************************************* * * FUNCTION: AcpiDsInitOneObject * * PARAMETERS: ObjHandle - Node for the object * Level - Current nesting level * Context - Points to a init info struct * ReturnValue - Not used * * RETURN: Status * * DESCRIPTION: Callback from AcpiWalkNamespace. Invoked for every object * within the namespace. * * Currently, the only objects that require initialization are: * 1) Methods * 2) Operation Regions * ******************************************************************************/ static ACPI_STATUS AcpiDsInitOneObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_INIT_WALK_INFO *Info = (ACPI_INIT_WALK_INFO *) Context; ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_ENTRY (); /* * We are only interested in NS nodes owned by the table that * was just loaded */ if (Node->OwnerId != Info->OwnerId) { return (AE_OK); } Info->ObjectCount++; /* And even then, we are only interested in a few object types */ switch (AcpiNsGetType (ObjHandle)) { case ACPI_TYPE_REGION: Status = AcpiDsInitializeRegion (ObjHandle); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During Region initialization %p [%4.4s]", ObjHandle, AcpiUtGetNodeName (ObjHandle))); } Info->OpRegionCount++; break; case ACPI_TYPE_METHOD: /* * Auto-serialization support. We will examine each method that is * NotSerialized to determine if it creates any Named objects. If * it does, it will be marked serialized to prevent problems if * the method is entered by two or more threads and an attempt is * made to create the same named object twice -- which results in * an AE_ALREADY_EXISTS exception and method abort. */ Info->MethodCount++; ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { break; } /* Ignore if already serialized */ if (ObjDesc->Method.InfoFlags & ACPI_METHOD_SERIALIZED) { Info->SerialMethodCount++; break; } if (AcpiGbl_AutoSerializeMethods) { /* Parse/scan method and serialize it if necessary */ AcpiDsAutoSerializeMethod (Node, ObjDesc); if (ObjDesc->Method.InfoFlags & ACPI_METHOD_SERIALIZED) { /* Method was just converted to Serialized */ Info->SerialMethodCount++; Info->SerializedMethodCount++; break; } } Info->NonSerialMethodCount++; break; case ACPI_TYPE_DEVICE: Info->DeviceCount++; break; default: break; } /* * We ignore errors from above, and always return OK, since * we don't want to abort the walk on a single error. */ return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsInitializeObjects * * PARAMETERS: TableDesc - Descriptor for parent ACPI table * StartNode - Root of subtree to be initialized. * * RETURN: Status * * DESCRIPTION: Walk the namespace starting at "StartNode" and perform any * necessary initialization on the objects found therein * ******************************************************************************/ ACPI_STATUS AcpiDsInitializeObjects ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *StartNode) { ACPI_STATUS Status; ACPI_INIT_WALK_INFO Info; ACPI_TABLE_HEADER *Table; ACPI_OWNER_ID OwnerId; ACPI_FUNCTION_TRACE (DsInitializeObjects); Status = AcpiTbGetOwnerId (TableIndex, &OwnerId); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "**** Starting initialization of namespace objects ****\n")); /* Set all init info to zero */ memset (&Info, 0, sizeof (ACPI_INIT_WALK_INFO)); Info.OwnerId = OwnerId; Info.TableIndex = TableIndex; /* Walk entire namespace from the supplied root */ /* * We don't use AcpiWalkNamespace since we do not want to acquire * the namespace reader lock. */ Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, StartNode, ACPI_UINT32_MAX, ACPI_NS_WALK_NO_UNLOCK, AcpiDsInitOneObject, NULL, &Info, NULL); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During WalkNamespace")); } Status = AcpiGetTableByIndex (TableIndex, &Table); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* DSDT is always the first AML table */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_DSDT)) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "\nACPI table initialization:\n")); } /* Summary of objects initialized */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "Table [%4.4s: %-8.8s] (id %.2X) - %4u Objects with %3u Devices, " "%3u Regions, %4u Methods (%u/%u/%u Serial/Non/Cvt)\n", Table->Signature, Table->OemTableId, OwnerId, Info.ObjectCount, Info.DeviceCount,Info.OpRegionCount, Info.MethodCount, Info.SerialMethodCount, Info.NonSerialMethodCount, Info.SerializedMethodCount)); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "%u Methods, %u Regions\n", Info.MethodCount, Info.OpRegionCount)); return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/dispatcher/dsmthdat.c0000775000175000017500000005602014773714132023333 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: dsmthdat - control method arguments and local variables * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdispat.h" #include "acnamesp.h" #include "acinterp.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dsmthdat") /* Local prototypes */ static void AcpiDsMethodDataDeleteValue ( UINT8 Type, UINT32 Index, ACPI_WALK_STATE *WalkState); static ACPI_STATUS AcpiDsMethodDataSetValue ( UINT8 Type, UINT32 Index, ACPI_OPERAND_OBJECT *Object, ACPI_WALK_STATE *WalkState); #ifdef ACPI_OBSOLETE_FUNCTIONS ACPI_OBJECT_TYPE AcpiDsMethodDataGetType ( UINT16 Opcode, UINT32 Index, ACPI_WALK_STATE *WalkState); #endif /******************************************************************************* * * FUNCTION: AcpiDsMethodDataInit * * PARAMETERS: WalkState - Current walk state object * * RETURN: Status * * DESCRIPTION: Initialize the data structures that hold the method's arguments * and locals. The data struct is an array of namespace nodes for * each - this allows RefOf and DeRefOf to work properly for these * special data types. * * NOTES: WalkState fields are initialized to zero by the * ACPI_ALLOCATE_ZEROED(). * * A pseudo-Namespace Node is assigned to each argument and local * so that RefOf() can return a pointer to the Node. * ******************************************************************************/ void AcpiDsMethodDataInit ( ACPI_WALK_STATE *WalkState) { UINT32 i; ACPI_FUNCTION_TRACE (DsMethodDataInit); /* Init the method arguments */ for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++) { ACPI_MOVE_32_TO_32 (&WalkState->Arguments[i].Name, NAMEOF_ARG_NTE); WalkState->Arguments[i].Name.Integer |= (i << 24); WalkState->Arguments[i].DescriptorType = ACPI_DESC_TYPE_NAMED; WalkState->Arguments[i].Type = ACPI_TYPE_ANY; WalkState->Arguments[i].Flags = ANOBJ_METHOD_ARG; } /* Init the method locals */ for (i = 0; i < ACPI_METHOD_NUM_LOCALS; i++) { ACPI_MOVE_32_TO_32 (&WalkState->LocalVariables[i].Name, NAMEOF_LOCAL_NTE); WalkState->LocalVariables[i].Name.Integer |= (i << 24); WalkState->LocalVariables[i].DescriptorType = ACPI_DESC_TYPE_NAMED; WalkState->LocalVariables[i].Type = ACPI_TYPE_ANY; WalkState->LocalVariables[i].Flags = ANOBJ_METHOD_LOCAL; } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDsMethodDataDeleteAll * * PARAMETERS: WalkState - Current walk state object * * RETURN: None * * DESCRIPTION: Delete method locals and arguments. Arguments are only * deleted if this method was called from another method. * ******************************************************************************/ void AcpiDsMethodDataDeleteAll ( ACPI_WALK_STATE *WalkState) { UINT32 Index; ACPI_FUNCTION_TRACE (DsMethodDataDeleteAll); /* Detach the locals */ for (Index = 0; Index < ACPI_METHOD_NUM_LOCALS; Index++) { if (WalkState->LocalVariables[Index].Object) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Deleting Local%u=%p\n", Index, WalkState->LocalVariables[Index].Object)); /* Detach object (if present) and remove a reference */ AcpiNsDetachObject (&WalkState->LocalVariables[Index]); } } /* Detach the arguments */ for (Index = 0; Index < ACPI_METHOD_NUM_ARGS; Index++) { if (WalkState->Arguments[Index].Object) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Deleting Arg%u=%p\n", Index, WalkState->Arguments[Index].Object)); /* Detach object (if present) and remove a reference */ AcpiNsDetachObject (&WalkState->Arguments[Index]); } } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDsMethodDataInitArgs * * PARAMETERS: *Params - Pointer to a parameter list for the method * MaxParamCount - The arg count for this method * WalkState - Current walk state object * * RETURN: Status * * DESCRIPTION: Initialize arguments for a method. The parameter list is a list * of ACPI operand objects, either null terminated or whose length * is defined by MaxParamCount. * ******************************************************************************/ ACPI_STATUS AcpiDsMethodDataInitArgs ( ACPI_OPERAND_OBJECT **Params, UINT32 MaxParamCount, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; UINT32 Index = 0; ACPI_FUNCTION_TRACE_PTR (DsMethodDataInitArgs, Params); if (!Params) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "No parameter list passed to method\n")); return_ACPI_STATUS (AE_OK); } /* Copy passed parameters into the new method stack frame */ while ((Index < ACPI_METHOD_NUM_ARGS) && (Index < MaxParamCount) && Params[Index]) { /* * A valid parameter. * Store the argument in the method/walk descriptor. * Do not copy the arg in order to implement call by reference */ Status = AcpiDsMethodDataSetValue ( ACPI_REFCLASS_ARG, Index, Params[Index], WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Index++; } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%u args passed to method\n", Index)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsMethodDataGetNode * * PARAMETERS: Type - Either ACPI_REFCLASS_LOCAL or * ACPI_REFCLASS_ARG * Index - Which Local or Arg whose type to get * WalkState - Current walk state object * Node - Where the node is returned. * * RETURN: Status and node * * DESCRIPTION: Get the Node associated with a local or arg. * ******************************************************************************/ ACPI_STATUS AcpiDsMethodDataGetNode ( UINT8 Type, UINT32 Index, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE **Node) { ACPI_FUNCTION_TRACE (DsMethodDataGetNode); /* * Method Locals and Arguments are supported */ switch (Type) { case ACPI_REFCLASS_LOCAL: if (Index > ACPI_METHOD_MAX_LOCAL) { ACPI_ERROR ((AE_INFO, "Local index %u is invalid (max %u)", Index, ACPI_METHOD_MAX_LOCAL)); return_ACPI_STATUS (AE_AML_INVALID_INDEX); } /* Return a pointer to the pseudo-node */ *Node = &WalkState->LocalVariables[Index]; break; case ACPI_REFCLASS_ARG: if (Index > ACPI_METHOD_MAX_ARG) { ACPI_ERROR ((AE_INFO, "Arg index %u is invalid (max %u)", Index, ACPI_METHOD_MAX_ARG)); return_ACPI_STATUS (AE_AML_INVALID_INDEX); } /* Return a pointer to the pseudo-node */ *Node = &WalkState->Arguments[Index]; break; default: ACPI_ERROR ((AE_INFO, "Type %u is invalid", Type)); return_ACPI_STATUS (AE_TYPE); } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsMethodDataSetValue * * PARAMETERS: Type - Either ACPI_REFCLASS_LOCAL or * ACPI_REFCLASS_ARG * Index - Which Local or Arg to get * Object - Object to be inserted into the stack entry * WalkState - Current walk state object * * RETURN: Status * * DESCRIPTION: Insert an object onto the method stack at entry Opcode:Index. * Note: There is no "implicit conversion" for locals. * ******************************************************************************/ static ACPI_STATUS AcpiDsMethodDataSetValue ( UINT8 Type, UINT32 Index, ACPI_OPERAND_OBJECT *Object, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (DsMethodDataSetValue); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "NewObj %p Type %2.2X, Refs=%u [%s]\n", Object, Type, Object->Common.ReferenceCount, AcpiUtGetTypeName (Object->Common.Type))); /* Get the namespace node for the arg/local */ Status = AcpiDsMethodDataGetNode (Type, Index, WalkState, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Increment ref count so object can't be deleted while installed. * NOTE: We do not copy the object in order to preserve the call by * reference semantics of ACPI Control Method invocation. * (See ACPI Specification 2.0C) */ AcpiUtAddReference (Object); /* Install the object */ Node->Object = Object; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsMethodDataGetValue * * PARAMETERS: Type - Either ACPI_REFCLASS_LOCAL or * ACPI_REFCLASS_ARG * Index - Which localVar or argument to get * WalkState - Current walk state object * DestDesc - Where Arg or Local value is returned * * RETURN: Status * * DESCRIPTION: Retrieve value of selected Arg or Local for this method * Used only in AcpiExResolveToValue(). * ******************************************************************************/ ACPI_STATUS AcpiDsMethodDataGetValue ( UINT8 Type, UINT32 Index, ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT **DestDesc) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *Object; ACPI_FUNCTION_TRACE (DsMethodDataGetValue); /* Validate the object descriptor */ if (!DestDesc) { ACPI_ERROR ((AE_INFO, "Null object descriptor pointer")); return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Get the namespace node for the arg/local */ Status = AcpiDsMethodDataGetNode (Type, Index, WalkState, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Get the object from the node */ Object = Node->Object; /* Examine the returned object, it must be valid. */ if (!Object) { /* * Index points to uninitialized object. * This means that either 1) The expected argument was * not passed to the method, or 2) A local variable * was referenced by the method (via the ASL) * before it was initialized. Either case is an error. */ /* If slack enabled, init the LocalX/ArgX to an Integer of value zero */ if (AcpiGbl_EnableInterpreterSlack) { Object = AcpiUtCreateIntegerObject ((UINT64) 0); if (!Object) { return_ACPI_STATUS (AE_NO_MEMORY); } Node->Object = Object; } /* Otherwise, return the error */ else switch (Type) { case ACPI_REFCLASS_ARG: ACPI_ERROR ((AE_INFO, "Uninitialized Arg[%u] at node %p", Index, Node)); return_ACPI_STATUS (AE_AML_UNINITIALIZED_ARG); case ACPI_REFCLASS_LOCAL: /* * No error message for this case, will be trapped again later to * detect and ignore cases of Store(LocalX,LocalX) */ return_ACPI_STATUS (AE_AML_UNINITIALIZED_LOCAL); default: ACPI_ERROR ((AE_INFO, "Not a Arg/Local opcode: 0x%X", Type)); return_ACPI_STATUS (AE_AML_INTERNAL); } } /* * The Index points to an initialized and valid object. * Return an additional reference to the object */ *DestDesc = Object; AcpiUtAddReference (Object); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsMethodDataDeleteValue * * PARAMETERS: Type - Either ACPI_REFCLASS_LOCAL or * ACPI_REFCLASS_ARG * Index - Which localVar or argument to delete * WalkState - Current walk state object * * RETURN: None * * DESCRIPTION: Delete the entry at Opcode:Index. Inserts * a null into the stack slot after the object is deleted. * ******************************************************************************/ static void AcpiDsMethodDataDeleteValue ( UINT8 Type, UINT32 Index, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *Object; ACPI_FUNCTION_TRACE (DsMethodDataDeleteValue); /* Get the namespace node for the arg/local */ Status = AcpiDsMethodDataGetNode (Type, Index, WalkState, &Node); if (ACPI_FAILURE (Status)) { return_VOID; } /* Get the associated object */ Object = AcpiNsGetAttachedObject (Node); /* * Undefine the Arg or Local by setting its descriptor * pointer to NULL. Locals/Args can contain both * ACPI_OPERAND_OBJECTS and ACPI_NAMESPACE_NODEs */ Node->Object = NULL; if ((Object) && (ACPI_GET_DESCRIPTOR_TYPE (Object) == ACPI_DESC_TYPE_OPERAND)) { /* * There is a valid object. * Decrement the reference count by one to balance the * increment when the object was stored. */ AcpiUtRemoveReference (Object); } return_VOID; } /******************************************************************************* * * FUNCTION: AcpiDsStoreObjectToLocal * * PARAMETERS: Type - Either ACPI_REFCLASS_LOCAL or * ACPI_REFCLASS_ARG * Index - Which Local or Arg to set * ObjDesc - Value to be stored * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Store a value in an Arg or Local. The ObjDesc is installed * as the new value for the Arg or Local and the reference count * for ObjDesc is incremented. * ******************************************************************************/ ACPI_STATUS AcpiDsStoreObjectToLocal ( UINT8 Type, UINT32 Index, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *CurrentObjDesc; ACPI_OPERAND_OBJECT *NewObjDesc; ACPI_FUNCTION_TRACE (DsStoreObjectToLocal); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Type=%2.2X Index=%u Obj=%p\n", Type, Index, ObjDesc)); /* Parameter validation */ if (!ObjDesc) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Get the namespace node for the arg/local */ Status = AcpiDsMethodDataGetNode (Type, Index, WalkState, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } CurrentObjDesc = AcpiNsGetAttachedObject (Node); if (CurrentObjDesc == ObjDesc) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Obj=%p already installed!\n", ObjDesc)); return_ACPI_STATUS (Status); } /* * If the reference count on the object is more than one, we must * take a copy of the object before we store. A reference count * of exactly 1 means that the object was just created during the * evaluation of an expression, and we can safely use it since it * is not used anywhere else. */ NewObjDesc = ObjDesc; if (ObjDesc->Common.ReferenceCount > 1) { Status = AcpiUtCopyIobjectToIobject ( ObjDesc, &NewObjDesc, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* * If there is an object already in this slot, we either * have to delete it, or if this is an argument and there * is an object reference stored there, we have to do * an indirect store! */ if (CurrentObjDesc) { /* * Check for an indirect store if an argument * contains an object reference (stored as an Node). * We don't allow this automatic dereferencing for * locals, since a store to a local should overwrite * anything there, including an object reference. * * If both Arg0 and Local0 contain RefOf (Local4): * * Store (1, Arg0) - Causes indirect store to local4 * Store (1, Local0) - Stores 1 in local0, overwriting * the reference to local4 * Store (1, DeRefof (Local0)) - Causes indirect store to local4 * * Weird, but true. */ if (Type == ACPI_REFCLASS_ARG) { /* * If we have a valid reference object that came from RefOf(), * do the indirect store */ if ((ACPI_GET_DESCRIPTOR_TYPE (CurrentObjDesc) == ACPI_DESC_TYPE_OPERAND) && (CurrentObjDesc->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) && (CurrentObjDesc->Reference.Class == ACPI_REFCLASS_REFOF)) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Arg (%p) is an ObjRef(Node), storing in node %p\n", NewObjDesc, CurrentObjDesc)); /* * Store this object to the Node (perform the indirect store) * NOTE: No implicit conversion is performed, as per the ACPI * specification rules on storing to Locals/Args. */ Status = AcpiExStoreObjectToNode (NewObjDesc, CurrentObjDesc->Reference.Object, WalkState, ACPI_NO_IMPLICIT_CONVERSION); /* Remove local reference if we copied the object above */ if (NewObjDesc != ObjDesc) { AcpiUtRemoveReference (NewObjDesc); } return_ACPI_STATUS (Status); } } /* Delete the existing object before storing the new one */ AcpiDsMethodDataDeleteValue (Type, Index, WalkState); } /* * Install the Obj descriptor (*NewObjDesc) into * the descriptor for the Arg or Local. * (increments the object reference count by one) */ Status = AcpiDsMethodDataSetValue (Type, Index, NewObjDesc, WalkState); /* Remove local reference if we copied the object above */ if (NewObjDesc != ObjDesc) { AcpiUtRemoveReference (NewObjDesc); } return_ACPI_STATUS (Status); } #ifdef ACPI_OBSOLETE_FUNCTIONS /******************************************************************************* * * FUNCTION: AcpiDsMethodDataGetType * * PARAMETERS: Opcode - Either AML_FIRST LOCAL_OP or * AML_FIRST_ARG_OP * Index - Which Local or Arg whose type to get * WalkState - Current walk state object * * RETURN: Data type of current value of the selected Arg or Local * * DESCRIPTION: Get the type of the object stored in the Local or Arg * ******************************************************************************/ ACPI_OBJECT_TYPE AcpiDsMethodDataGetType ( UINT16 Opcode, UINT32 Index, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *Object; ACPI_FUNCTION_TRACE (DsMethodDataGetType); /* Get the namespace node for the arg/local */ Status = AcpiDsMethodDataGetNode (Opcode, Index, WalkState, &Node); if (ACPI_FAILURE (Status)) { return_VALUE ((ACPI_TYPE_NOT_FOUND)); } /* Get the object */ Object = AcpiNsGetAttachedObject (Node); if (!Object) { /* Uninitialized local/arg, return TYPE_ANY */ return_VALUE (ACPI_TYPE_ANY); } /* Get the object type */ return_VALUE (Object->Type); } #endif acpica-unix-20250404/source/components/dispatcher/dsfield.c0000775000175000017500000006615514773714132023147 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dsfield - Dispatcher field routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #include "acparser.h" #ifdef ACPI_EXEC_APP #include "aecommon.h" #endif #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dsfield") /* Local prototypes */ #ifdef ACPI_ASL_COMPILER #include "acdisasm.h" static ACPI_STATUS AcpiDsCreateExternalRegion ( ACPI_STATUS LookupStatus, ACPI_PARSE_OBJECT *Op, char *Path, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE **Node); #endif static ACPI_STATUS AcpiDsGetFieldNames ( ACPI_CREATE_FIELD_INFO *Info, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Arg); #ifdef ACPI_ASL_COMPILER /******************************************************************************* * * FUNCTION: AcpiDsCreateExternalRegion (iASL Disassembler only) * * PARAMETERS: LookupStatus - Status from NsLookup operation * Op - Op containing the Field definition and args * Path - Pathname of the region * ` WalkState - Current method state * Node - Where the new region node is returned * * RETURN: Status * * DESCRIPTION: Add region to the external list if NOT_FOUND. Create a new * region node/object. * ******************************************************************************/ static ACPI_STATUS AcpiDsCreateExternalRegion ( ACPI_STATUS LookupStatus, ACPI_PARSE_OBJECT *Op, char *Path, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE **Node) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; if (LookupStatus != AE_NOT_FOUND) { return (LookupStatus); } /* * Table disassembly: * OperationRegion not found. Generate an External for it, and * insert the name into the namespace. */ AcpiDmAddOpToExternalList (Op, Path, ACPI_TYPE_REGION, 0, 0); Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_REGION, ACPI_IMODE_LOAD_PASS1, ACPI_NS_SEARCH_PARENT, WalkState, Node); if (ACPI_FAILURE (Status)) { return (Status); } /* Must create and install a region object for the new node */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_REGION); if (!ObjDesc) { return (AE_NO_MEMORY); } ObjDesc->Region.Node = *Node; Status = AcpiNsAttachObject (*Node, ObjDesc, ACPI_TYPE_REGION); return (Status); } #endif /******************************************************************************* * * FUNCTION: AcpiDsCreateBufferField * * PARAMETERS: Op - Current parse op (CreateXXField) * WalkState - Current state * * RETURN: Status * * DESCRIPTION: Execute the CreateField operators: * CreateBitFieldOp, * CreateByteFieldOp, * CreateWordFieldOp, * CreateDwordFieldOp, * CreateQwordFieldOp, * CreateFieldOp (all of which define a field in a buffer) * ******************************************************************************/ ACPI_STATUS AcpiDsCreateBufferField ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { ACPI_PARSE_OBJECT *Arg; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *SecondDesc = NULL; UINT32 Flags; ACPI_FUNCTION_TRACE (DsCreateBufferField); /* * Get the NameString argument (name of the new BufferField) */ if (Op->Common.AmlOpcode == AML_CREATE_FIELD_OP) { /* For CreateField, name is the 4th argument */ Arg = AcpiPsGetArg (Op, 3); } else { /* For all other CreateXXXField operators, name is the 3rd argument */ Arg = AcpiPsGetArg (Op, 2); } if (!Arg) { return_ACPI_STATUS (AE_AML_NO_OPERAND); } if (WalkState->DeferredNode) { Node = WalkState->DeferredNode; } else { /* Execute flag should always be set when this function is entered */ if (!(WalkState->ParseFlags & ACPI_PARSE_EXECUTE)) { ACPI_ERROR ((AE_INFO, "Parse execute mode is not set")); return_ACPI_STATUS (AE_AML_INTERNAL); } /* Creating new namespace node, should not already exist */ Flags = ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE | ACPI_NS_ERROR_IF_FOUND; /* * Mark node temporary if we are executing a normal control * method. (Don't mark if this is a module-level code method) */ if (WalkState->MethodNode && !(WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL)) { Flags |= ACPI_NS_TEMPORARY; } /* Enter the NameString into the namespace */ Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Common.Value.String, ACPI_TYPE_ANY, ACPI_IMODE_LOAD_PASS1, Flags, WalkState, &Node); if ((WalkState->ParseFlags & ACPI_PARSE_DISASSEMBLE) && Status == AE_ALREADY_EXISTS) { Status = AE_OK; } else if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Arg->Common.Value.String, Status); return_ACPI_STATUS (Status); } } /* * We could put the returned object (Node) on the object stack for later, * but for now, we will put it in the "op" object that the parser uses, * so we can get it again at the end of this scope. */ Op->Common.Node = Node; /* * If there is no object attached to the node, this node was just created * and we need to create the field object. Otherwise, this was a lookup * of an existing node and we don't want to create the field object again. */ ObjDesc = AcpiNsGetAttachedObject (Node); if (ObjDesc) { return_ACPI_STATUS (AE_OK); } /* * The Field definition is not fully parsed at this time. * (We must save the address of the AML for the buffer and index operands) */ /* Create the buffer field object */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_BUFFER_FIELD); if (!ObjDesc) { Status = AE_NO_MEMORY; goto Cleanup; } /* * Remember location in AML stream of the field unit opcode and operands * -- since the buffer and index operands must be evaluated. */ SecondDesc = ObjDesc->Common.NextObject; SecondDesc->Extra.AmlStart = Op->Named.Data; SecondDesc->Extra.AmlLength = Op->Named.Length; ObjDesc->BufferField.Node = Node; /* Attach constructed field descriptors to parent node */ Status = AcpiNsAttachObject (Node, ObjDesc, ACPI_TYPE_BUFFER_FIELD); if (ACPI_FAILURE (Status)) { goto Cleanup; } Cleanup: /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsGetFieldNames * * PARAMETERS: Info - CreateField info structure * WalkState - Current method state * Arg - First parser arg for the field name list * * RETURN: Status * * DESCRIPTION: Process all named fields in a field declaration. Names are * entered into the namespace. * ******************************************************************************/ static ACPI_STATUS AcpiDsGetFieldNames ( ACPI_CREATE_FIELD_INFO *Info, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Arg) { ACPI_STATUS Status; UINT64 Position; ACPI_PARSE_OBJECT *Child; #ifdef ACPI_EXEC_APP ACPI_OPERAND_OBJECT *ResultDesc; ACPI_OPERAND_OBJECT *ObjDesc; char *NamePath; #endif ACPI_FUNCTION_TRACE_PTR (DsGetFieldNames, Info); /* First field starts at bit zero */ Info->FieldBitPosition = 0; /* Process all elements in the field list (of parse nodes) */ while (Arg) { /* * Four types of field elements are handled: * 1) Name - Enters a new named field into the namespace * 2) Offset - specifies a bit offset * 3) AccessAs - changes the access mode/attributes * 4) Connection - Associate a resource template with the field */ switch (Arg->Common.AmlOpcode) { case AML_INT_RESERVEDFIELD_OP: Position = (UINT64) Info->FieldBitPosition + (UINT64) Arg->Common.Value.Size; if (Position > ACPI_UINT32_MAX) { ACPI_ERROR ((AE_INFO, "Bit offset within field too large (> 0xFFFFFFFF)")); return_ACPI_STATUS (AE_SUPPORT); } Info->FieldBitPosition = (UINT32) Position; break; case AML_INT_ACCESSFIELD_OP: case AML_INT_EXTACCESSFIELD_OP: /* * Get new AccessType, AccessAttribute, and AccessLength fields * -- to be used for all field units that follow, until the * end-of-field or another AccessAs keyword is encountered. * NOTE. These three bytes are encoded in the integer value * of the parseop for convenience. * * In FieldFlags, preserve the flag bits other than the * ACCESS_TYPE bits. */ /* AccessType (ByteAcc, WordAcc, etc.) */ Info->FieldFlags = (UINT8) ((Info->FieldFlags & ~(AML_FIELD_ACCESS_TYPE_MASK)) | ((UINT8) ((UINT32) (Arg->Common.Value.Integer & 0x07)))); /* AccessAttribute (AttribQuick, AttribByte, etc.) */ Info->Attribute = (UINT8) ((Arg->Common.Value.Integer >> 8) & 0xFF); /* AccessLength (for serial/buffer protocols) */ Info->AccessLength = (UINT8) ((Arg->Common.Value.Integer >> 16) & 0xFF); break; case AML_INT_CONNECTION_OP: /* * Clear any previous connection. New connection is used for all * fields that follow, similar to AccessAs */ Info->ResourceBuffer = NULL; Info->ConnectionNode = NULL; Info->PinNumberIndex = 0; /* * A Connection() is either an actual resource descriptor (buffer) * or a named reference to a resource template */ Child = Arg->Common.Value.Arg; if (Child->Common.AmlOpcode == AML_INT_BYTELIST_OP) { Info->ResourceBuffer = Child->Named.Data; Info->ResourceLength = (UINT16) Child->Named.Value.Integer; } else { /* Lookup the Connection() namepath, it should already exist */ Status = AcpiNsLookup (WalkState->ScopeInfo, Child->Common.Value.Name, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_DONT_OPEN_SCOPE, WalkState, &Info->ConnectionNode); if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Child->Common.Value.Name, Status); return_ACPI_STATUS (Status); } } break; case AML_INT_NAMEDFIELD_OP: /* Lookup the name, it should already exist */ Status = AcpiNsLookup (WalkState->ScopeInfo, (char *) &Arg->Named.Name, Info->FieldType, ACPI_IMODE_EXECUTE, ACPI_NS_DONT_OPEN_SCOPE, WalkState, &Info->FieldNode); if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, (char *) &Arg->Named.Name, Status); return_ACPI_STATUS (Status); } else { Arg->Common.Node = Info->FieldNode; Info->FieldBitLength = Arg->Common.Value.Size; /* * If there is no object attached to the node, this node was * just created and we need to create the field object. * Otherwise, this was a lookup of an existing node and we * don't want to create the field object again. */ if (!AcpiNsGetAttachedObject (Info->FieldNode)) { Status = AcpiExPrepFieldValue (Info); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } #ifdef ACPI_EXEC_APP NamePath = AcpiNsGetExternalPathname (Info->FieldNode); if (ACPI_SUCCESS (AeLookupInitFileEntry (NamePath, &ObjDesc))) { AcpiExWriteDataToField (ObjDesc, AcpiNsGetAttachedObject (Info->FieldNode), &ResultDesc); AcpiUtRemoveReference (ObjDesc); } ACPI_FREE (NamePath); #endif } } /* Keep track of bit position for the next field */ Position = (UINT64) Info->FieldBitPosition + (UINT64) Arg->Common.Value.Size; if (Position > ACPI_UINT32_MAX) { ACPI_ERROR ((AE_INFO, "Field [%4.4s] bit offset too large (> 0xFFFFFFFF)", ACPI_CAST_PTR (char, &Info->FieldNode->Name))); return_ACPI_STATUS (AE_SUPPORT); } Info->FieldBitPosition += Info->FieldBitLength; Info->PinNumberIndex++; /* Index relative to previous Connection() */ break; default: ACPI_ERROR ((AE_INFO, "Invalid opcode in field list: 0x%X", Arg->Common.AmlOpcode)); return_ACPI_STATUS (AE_AML_BAD_OPCODE); } Arg = Arg->Common.Next; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsCreateField * * PARAMETERS: Op - Op containing the Field definition and args * RegionNode - Object for the containing Operation Region * ` WalkState - Current method state * * RETURN: Status * * DESCRIPTION: Create a new field in the specified operation region * ******************************************************************************/ ACPI_STATUS AcpiDsCreateField ( ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE *RegionNode, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *Arg; ACPI_CREATE_FIELD_INFO Info; ACPI_FUNCTION_TRACE_PTR (DsCreateField, Op); /* First arg is the name of the parent OpRegion (must already exist) */ Arg = Op->Common.Value.Arg; if (!RegionNode) { Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Common.Value.Name, ACPI_TYPE_REGION, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &RegionNode); #ifdef ACPI_ASL_COMPILER Status = AcpiDsCreateExternalRegion (Status, Arg, Arg->Common.Value.Name, WalkState, &RegionNode); #endif if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Arg->Common.Value.Name, Status); return_ACPI_STATUS (Status); } } memset (&Info, 0, sizeof (ACPI_CREATE_FIELD_INFO)); /* Second arg is the field flags */ Arg = Arg->Common.Next; Info.FieldFlags = (UINT8) Arg->Common.Value.Integer; Info.Attribute = 0; /* Each remaining arg is a Named Field */ Info.FieldType = ACPI_TYPE_LOCAL_REGION_FIELD; Info.RegionNode = RegionNode; Status = AcpiDsGetFieldNames (&Info, WalkState, Arg->Common.Next); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (Info.RegionNode->Object->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM) { RegionNode->Object->Field.InternalPccBuffer = ACPI_ALLOCATE_ZEROED(Info.RegionNode->Object->Region.Length); if (!RegionNode->Object->Field.InternalPccBuffer) { return_ACPI_STATUS (AE_NO_MEMORY); } } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsInitFieldObjects * * PARAMETERS: Op - Op containing the Field definition and args * ` WalkState - Current method state * * RETURN: Status * * DESCRIPTION: For each "Field Unit" name in the argument list that is * part of the field declaration, enter the name into the * namespace. * ******************************************************************************/ ACPI_STATUS AcpiDsInitFieldObjects ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *Arg = NULL; ACPI_NAMESPACE_NODE *Node; UINT8 Type = 0; UINT32 Flags; ACPI_FUNCTION_TRACE_PTR (DsInitFieldObjects, Op); /* Execute flag should always be set when this function is entered */ if (!(WalkState->ParseFlags & ACPI_PARSE_EXECUTE)) { if (WalkState->ParseFlags & ACPI_PARSE_DEFERRED_OP) { /* BankField Op is deferred, just return OK */ return_ACPI_STATUS (AE_OK); } ACPI_ERROR ((AE_INFO, "Parse deferred mode is not set")); return_ACPI_STATUS (AE_AML_INTERNAL); } /* * Get the FieldList argument for this opcode. This is the start of the * list of field elements. */ switch (WalkState->Opcode) { case AML_FIELD_OP: Arg = AcpiPsGetArg (Op, 2); Type = ACPI_TYPE_LOCAL_REGION_FIELD; break; case AML_BANK_FIELD_OP: Arg = AcpiPsGetArg (Op, 4); Type = ACPI_TYPE_LOCAL_BANK_FIELD; break; case AML_INDEX_FIELD_OP: Arg = AcpiPsGetArg (Op, 3); Type = ACPI_TYPE_LOCAL_INDEX_FIELD; break; default: return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Creating new namespace node(s), should not already exist */ Flags = ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE | ACPI_NS_ERROR_IF_FOUND; /* * Mark node(s) temporary if we are executing a normal control * method. (Don't mark if this is a module-level code method) */ if (WalkState->MethodNode && !(WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL)) { Flags |= ACPI_NS_TEMPORARY; } #ifdef ACPI_EXEC_APP Flags |= ACPI_NS_OVERRIDE_IF_FOUND; #endif /* * Walk the list of entries in the FieldList * Note: FieldList can be of zero length. In this case, Arg will be NULL. */ while (Arg) { /* * Ignore OFFSET/ACCESSAS/CONNECTION terms here; we are only interested * in the field names in order to enter them into the namespace. */ if (Arg->Common.AmlOpcode == AML_INT_NAMEDFIELD_OP) { Status = AcpiNsLookup (WalkState->ScopeInfo, (char *) &Arg->Named.Name, Type, ACPI_IMODE_LOAD_PASS1, Flags, WalkState, &Node); if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, (char *) &Arg->Named.Name, Status); if (Status != AE_ALREADY_EXISTS) { return_ACPI_STATUS (Status); } /* Name already exists, just ignore this error */ } Arg->Common.Node = Node; } /* Get the next field element in the list */ Arg = Arg->Common.Next; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsCreateBankField * * PARAMETERS: Op - Op containing the Field definition and args * RegionNode - Object for the containing Operation Region * WalkState - Current method state * * RETURN: Status * * DESCRIPTION: Create a new bank field in the specified operation region * ******************************************************************************/ ACPI_STATUS AcpiDsCreateBankField ( ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE *RegionNode, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *Arg; ACPI_CREATE_FIELD_INFO Info; ACPI_FUNCTION_TRACE_PTR (DsCreateBankField, Op); /* First arg is the name of the parent OpRegion (must already exist) */ Arg = Op->Common.Value.Arg; if (!RegionNode) { Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Common.Value.Name, ACPI_TYPE_REGION, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &RegionNode); #ifdef ACPI_ASL_COMPILER Status = AcpiDsCreateExternalRegion (Status, Arg, Arg->Common.Value.Name, WalkState, &RegionNode); #endif if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Arg->Common.Value.Name, Status); return_ACPI_STATUS (Status); } } /* Second arg is the Bank Register (Field) (must already exist) */ Arg = Arg->Common.Next; Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Common.Value.String, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &Info.RegisterNode); if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Arg->Common.Value.String, Status); return_ACPI_STATUS (Status); } /* * Third arg is the BankValue * This arg is a TermArg, not a constant * It will be evaluated later, by AcpiDsEvalBankFieldOperands */ Arg = Arg->Common.Next; /* Fourth arg is the field flags */ Arg = Arg->Common.Next; Info.FieldFlags = (UINT8) Arg->Common.Value.Integer; /* Each remaining arg is a Named Field */ Info.FieldType = ACPI_TYPE_LOCAL_BANK_FIELD; Info.RegionNode = RegionNode; /* * Use Info.DataRegisterNode to store BankField Op * It's safe because DataRegisterNode will never be used when create * bank field \we store AmlStart and AmlLength in the BankField Op for * late evaluation. Used in AcpiExPrepFieldValue(Info) * * TBD: Or, should we add a field in ACPI_CREATE_FIELD_INFO, like * "void *ParentOp"? */ Info.DataRegisterNode = (ACPI_NAMESPACE_NODE*) Op; Status = AcpiDsGetFieldNames (&Info, WalkState, Arg->Common.Next); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsCreateIndexField * * PARAMETERS: Op - Op containing the Field definition and args * RegionNode - Object for the containing Operation Region * ` WalkState - Current method state * * RETURN: Status * * DESCRIPTION: Create a new index field in the specified operation region * ******************************************************************************/ ACPI_STATUS AcpiDsCreateIndexField ( ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE *RegionNode, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status; ACPI_PARSE_OBJECT *Arg; ACPI_CREATE_FIELD_INFO Info; ACPI_FUNCTION_TRACE_PTR (DsCreateIndexField, Op); /* First arg is the name of the Index register (must already exist) */ Arg = Op->Common.Value.Arg; Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Common.Value.String, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &Info.RegisterNode); if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Arg->Common.Value.String, Status); return_ACPI_STATUS (Status); } /* Second arg is the data register (must already exist) */ Arg = Arg->Common.Next; Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Common.Value.String, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &Info.DataRegisterNode); if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Arg->Common.Value.String, Status); return_ACPI_STATUS (Status); } /* Next arg is the field flags */ Arg = Arg->Common.Next; Info.FieldFlags = (UINT8) Arg->Common.Value.Integer; /* Each remaining arg is a Named Field */ Info.FieldType = ACPI_TYPE_LOCAL_INDEX_FIELD; Info.RegionNode = RegionNode; Status = AcpiDsGetFieldNames (&Info, WalkState, Arg->Common.Next); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/dispatcher/dswload2.c0000775000175000017500000005536214773714132023252 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dswload2 - Dispatcher second pass namespace load callbacks * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdispat.h" #include "acinterp.h" #include "acnamesp.h" #include "acevents.h" #ifdef ACPI_EXEC_APP #include "aecommon.h" #endif #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dswload2") /******************************************************************************* * * FUNCTION: AcpiDsLoad2BeginOp * * PARAMETERS: WalkState - Current state of the parse tree walk * OutOp - Where to return op if a new one is created * * RETURN: Status * * DESCRIPTION: Descending callback used during the loading of ACPI tables. * ******************************************************************************/ ACPI_STATUS AcpiDsLoad2BeginOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **OutOp) { ACPI_PARSE_OBJECT *Op; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_OBJECT_TYPE ObjectType; char *BufferPtr; UINT32 Flags; ACPI_FUNCTION_TRACE (DsLoad2BeginOp); Op = WalkState->Op; ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op=%p State=%p\n", Op, WalkState)); if (Op) { if ((WalkState->ControlState) && (WalkState->ControlState->Common.State == ACPI_CONTROL_CONDITIONAL_EXECUTING)) { /* We are executing a while loop outside of a method */ Status = AcpiDsExecBeginOp (WalkState, OutOp); return_ACPI_STATUS (Status); } /* We only care about Namespace opcodes here */ if ((!(WalkState->OpInfo->Flags & AML_NSOPCODE) && (WalkState->Opcode != AML_INT_NAMEPATH_OP)) || (!(WalkState->OpInfo->Flags & AML_NAMED))) { return_ACPI_STATUS (AE_OK); } /* Get the name we are going to enter or lookup in the namespace */ if (WalkState->Opcode == AML_INT_NAMEPATH_OP) { /* For Namepath op, get the path string */ BufferPtr = Op->Common.Value.String; if (!BufferPtr) { /* No name, just exit */ return_ACPI_STATUS (AE_OK); } } else { /* Get name from the op */ BufferPtr = ACPI_CAST_PTR (char, &Op->Named.Name); } } else { /* Get the namestring from the raw AML */ BufferPtr = AcpiPsGetNextNamestring (&WalkState->ParserState); } /* Map the opcode into an internal object type */ ObjectType = WalkState->OpInfo->ObjectType; ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "State=%p Op=%p Type=%X\n", WalkState, Op, ObjectType)); switch (WalkState->Opcode) { case AML_FIELD_OP: case AML_BANK_FIELD_OP: case AML_INDEX_FIELD_OP: Node = NULL; Status = AE_OK; break; case AML_INT_NAMEPATH_OP: /* * The NamePath is an object reference to an existing object. * Don't enter the name into the namespace, but look it up * for use later. */ Status = AcpiNsLookup (WalkState->ScopeInfo, BufferPtr, ObjectType, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &(Node)); break; case AML_SCOPE_OP: /* Special case for Scope(\) -> refers to the Root node */ if (Op && (Op->Named.Node == AcpiGbl_RootNode)) { Node = Op->Named.Node; Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } else { /* * The Path is an object reference to an existing object. * Don't enter the name into the namespace, but look it up * for use later. */ Status = AcpiNsLookup (WalkState->ScopeInfo, BufferPtr, ObjectType, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &(Node)); if (ACPI_FAILURE (Status)) { #ifdef ACPI_ASL_COMPILER if (Status == AE_NOT_FOUND) { Status = AE_OK; } else { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, BufferPtr, Status); } #else ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, BufferPtr, Status); #endif return_ACPI_STATUS (Status); } } /* * We must check to make sure that the target is * one of the opcodes that actually opens a scope */ switch (Node->Type) { case ACPI_TYPE_ANY: case ACPI_TYPE_LOCAL_SCOPE: /* Scope */ case ACPI_TYPE_DEVICE: case ACPI_TYPE_POWER: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: /* These are acceptable types */ break; case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* * These types we will allow, but we will change the type. * This enables some existing code of the form: * * Name (DEB, 0) * Scope (DEB) { ... } */ ACPI_WARNING ((AE_INFO, "Type override - [%4.4s] had invalid type (%s) " "for Scope operator, changed to type ANY", AcpiUtGetNodeName (Node), AcpiUtGetTypeName (Node->Type))); Node->Type = ACPI_TYPE_ANY; WalkState->ScopeInfo->Common.Value = ACPI_TYPE_ANY; break; case ACPI_TYPE_METHOD: /* * Allow scope change to root during execution of module-level * code. Root is typed METHOD during this time. */ if ((Node == AcpiGbl_RootNode) && (WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL)) { break; } ACPI_FALLTHROUGH; default: /* All other types are an error */ ACPI_ERROR ((AE_INFO, "Invalid type (%s) for target of " "Scope operator [%4.4s] (Cannot override)", AcpiUtGetTypeName (Node->Type), AcpiUtGetNodeName (Node))); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } break; default: /* All other opcodes */ if (Op && Op->Common.Node) { /* This op/node was previously entered into the namespace */ Node = Op->Common.Node; if (AcpiNsOpensScope (ObjectType)) { Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } return_ACPI_STATUS (AE_OK); } /* * Enter the named type into the internal namespace. We enter the name * as we go downward in the parse tree. Any necessary subobjects that * involve arguments to the opcode must be created as we go back up the * parse tree later. * * Note: Name may already exist if we are executing a deferred opcode. */ if (WalkState->DeferredNode) { /* This name is already in the namespace, get the node */ Node = WalkState->DeferredNode; Status = AE_OK; break; } Flags = ACPI_NS_NO_UPSEARCH; if (WalkState->PassNumber == ACPI_IMODE_EXECUTE) { /* Execution mode, node cannot already exist, node is temporary */ Flags |= ACPI_NS_ERROR_IF_FOUND; if (!(WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL)) { Flags |= ACPI_NS_TEMPORARY; } } #ifdef ACPI_ASL_COMPILER /* * Do not open a scope for AML_EXTERNAL_OP * AcpiNsLookup can open a new scope based on the object type * of this op. AML_EXTERNAL_OP is a declaration rather than a * definition. In the case that this external is a method object, * AcpiNsLookup will open a new scope. However, an AML_EXTERNAL_OP * associated with the ACPI_TYPE_METHOD is a declaration, rather than * a definition. Flags is set to avoid opening a scope for any * AML_EXTERNAL_OP. */ if (WalkState->Opcode == AML_EXTERNAL_OP) { Flags |= ACPI_NS_DONT_OPEN_SCOPE; } #endif /* * For name creation opcodes, the full namepath prefix must * exist, except for the final (new) nameseg. */ if (WalkState->OpInfo->Flags & AML_NAMED) { Flags |= ACPI_NS_PREFIX_MUST_EXIST; } /* Add new entry or lookup existing entry */ Status = AcpiNsLookup (WalkState->ScopeInfo, BufferPtr, ObjectType, ACPI_IMODE_LOAD_PASS2, Flags, WalkState, &Node); if (ACPI_SUCCESS (Status) && (Flags & ACPI_NS_TEMPORARY)) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "***New Node [%4.4s] %p is temporary\n", AcpiUtGetNodeName (Node), Node)); } break; } if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, BufferPtr, Status); return_ACPI_STATUS (Status); } if (!Op) { /* Create a new op */ Op = AcpiPsAllocOp (WalkState->Opcode, WalkState->Aml); if (!Op) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Initialize the new op */ if (Node) { Op->Named.Name = Node->Name.Integer; } *OutOp = Op; } /* * Put the Node in the "op" object that the parser uses, so we * can get it again quickly when this scope is closed */ Op->Common.Node = Node; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsLoad2EndOp * * PARAMETERS: WalkState - Current state of the parse tree walk * * RETURN: Status * * DESCRIPTION: Ascending callback used during the loading of the namespace, * both control methods and everything else. * ******************************************************************************/ ACPI_STATUS AcpiDsLoad2EndOp ( ACPI_WALK_STATE *WalkState) { ACPI_PARSE_OBJECT *Op; ACPI_STATUS Status = AE_OK; ACPI_OBJECT_TYPE ObjectType; ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *Arg; ACPI_NAMESPACE_NODE *NewNode; UINT32 i; UINT8 RegionSpace; #ifdef ACPI_EXEC_APP ACPI_OPERAND_OBJECT *ObjDesc; char *Namepath; #endif ACPI_FUNCTION_TRACE (DsLoad2EndOp); Op = WalkState->Op; ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Opcode [%s] Op %p State %p\n", WalkState->OpInfo->Name, Op, WalkState)); /* Check if opcode had an associated namespace object */ if (!(WalkState->OpInfo->Flags & AML_NSOBJECT)) { return_ACPI_STATUS (AE_OK); } if (Op->Common.AmlOpcode == AML_SCOPE_OP) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Ending scope Op=%p State=%p\n", Op, WalkState)); } ObjectType = WalkState->OpInfo->ObjectType; /* * Get the Node/name from the earlier lookup * (It was saved in the *op structure) */ Node = Op->Common.Node; /* * Put the Node on the object stack (Contains the ACPI Name of * this object) */ WalkState->Operands[0] = (void *) Node; WalkState->NumOperands = 1; /* Pop the scope stack */ if (AcpiNsOpensScope (ObjectType) && (Op->Common.AmlOpcode != AML_INT_METHODCALL_OP)) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "(%s) Popping scope for Op %p\n", AcpiUtGetTypeName (ObjectType), Op)); Status = AcpiDsScopeStackPop (WalkState); if (ACPI_FAILURE (Status)) { goto Cleanup; } } /* * Named operations are as follows: * * AML_ALIAS * AML_BANKFIELD * AML_CREATEBITFIELD * AML_CREATEBYTEFIELD * AML_CREATEDWORDFIELD * AML_CREATEFIELD * AML_CREATEQWORDFIELD * AML_CREATEWORDFIELD * AML_DATA_REGION * AML_DEVICE * AML_EVENT * AML_FIELD * AML_INDEXFIELD * AML_METHOD * AML_METHODCALL * AML_MUTEX * AML_NAME * AML_NAMEDFIELD * AML_OPREGION * AML_POWERRES * AML_PROCESSOR * AML_SCOPE * AML_THERMALZONE */ ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Create-Load [%s] State=%p Op=%p NamedObj=%p\n", AcpiPsGetOpcodeName (Op->Common.AmlOpcode), WalkState, Op, Node)); /* Decode the opcode */ Arg = Op->Common.Value.Arg; switch (WalkState->OpInfo->Type) { case AML_TYPE_CREATE_FIELD: /* * Create the field object, but the field buffer and index must * be evaluated later during the execution phase */ Status = AcpiDsCreateBufferField (Op, WalkState); if ACPI_FAILURE (Status) { ACPI_EXCEPTION ((AE_INFO, Status, "CreateBufferField failure")); goto Cleanup; } break; case AML_TYPE_NAMED_FIELD: /* * If we are executing a method, initialize the field */ if (WalkState->MethodNode) { Status = AcpiDsInitFieldObjects (Op, WalkState); } switch (Op->Common.AmlOpcode) { case AML_INDEX_FIELD_OP: Status = AcpiDsCreateIndexField ( Op, (ACPI_HANDLE) Arg->Common.Node, WalkState); break; case AML_BANK_FIELD_OP: Status = AcpiDsCreateBankField (Op, Arg->Common.Node, WalkState); break; case AML_FIELD_OP: Status = AcpiDsCreateField (Op, Arg->Common.Node, WalkState); break; default: /* All NAMED_FIELD opcodes must be handled above */ break; } break; case AML_TYPE_NAMED_SIMPLE: Status = AcpiDsCreateOperands (WalkState, Arg); if (ACPI_FAILURE (Status)) { goto Cleanup; } switch (Op->Common.AmlOpcode) { case AML_PROCESSOR_OP: Status = AcpiExCreateProcessor (WalkState); break; case AML_POWER_RESOURCE_OP: Status = AcpiExCreatePowerResource (WalkState); break; case AML_MUTEX_OP: Status = AcpiExCreateMutex (WalkState); break; case AML_EVENT_OP: Status = AcpiExCreateEvent (WalkState); break; case AML_ALIAS_OP: Status = AcpiExCreateAlias (WalkState); break; default: /* Unknown opcode */ Status = AE_OK; goto Cleanup; } /* Delete operands */ for (i = 1; i < WalkState->NumOperands; i++) { AcpiUtRemoveReference (WalkState->Operands[i]); WalkState->Operands[i] = NULL; } break; case AML_TYPE_NAMED_COMPLEX: switch (Op->Common.AmlOpcode) { case AML_REGION_OP: case AML_DATA_REGION_OP: if (Op->Common.AmlOpcode == AML_REGION_OP) { RegionSpace = (ACPI_ADR_SPACE_TYPE) ((Op->Common.Value.Arg)->Common.Value.Integer); } else { RegionSpace = ACPI_ADR_SPACE_DATA_TABLE; } /* * The OpRegion is not fully parsed at this time. The only valid * argument is the SpaceId. (We must save the address of the * AML of the address and length operands) * * If we have a valid region, initialize it. The namespace is * unlocked at this point. * * Need to unlock interpreter if it is locked (if we are running * a control method), in order to allow _REG methods to be run * during AcpiEvInitializeRegion. */ if (WalkState->MethodNode) { /* * Executing a method: initialize the region and unlock * the interpreter */ Status = AcpiExCreateRegion (Op->Named.Data, Op->Named.Length, RegionSpace, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } Status = AcpiEvInitializeRegion ( AcpiNsGetAttachedObject (Node)); break; case AML_NAME_OP: Status = AcpiDsCreateNode (WalkState, Node, Op); if (ACPI_FAILURE (Status)) { goto Cleanup; } #ifdef ACPI_EXEC_APP /* * AcpiExec support for namespace initialization file (initialize * Name opcodes in this code.) */ Namepath = AcpiNsGetExternalPathname (Node); Status = AeLookupInitFileEntry (Namepath, &ObjDesc); if (ACPI_SUCCESS (Status)) { /* Detach any existing object, attach new object */ if (Node->Object) { AcpiNsDetachObject (Node); } AcpiNsAttachObject (Node, ObjDesc, ObjDesc->Common.Type); } ACPI_FREE (Namepath); Status = AE_OK; #endif break; case AML_METHOD_OP: /* * MethodOp PkgLength NameString MethodFlags TermList * * Note: We must create the method node/object pair as soon as we * see the method declaration. This allows later pass1 parsing * of invocations of the method (need to know the number of * arguments.) */ ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "LOADING-Method: State=%p Op=%p NamedObj=%p\n", WalkState, Op, Op->Named.Node)); if (!AcpiNsGetAttachedObject (Op->Named.Node)) { WalkState->Operands[0] = ACPI_CAST_PTR (void, Op->Named.Node); WalkState->NumOperands = 1; Status = AcpiDsCreateOperands ( WalkState, Op->Common.Value.Arg); if (ACPI_SUCCESS (Status)) { Status = AcpiExCreateMethod ( Op->Named.Data, Op->Named.Length, WalkState); } WalkState->Operands[0] = NULL; WalkState->NumOperands = 0; if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } break; default: /* All NAMED_COMPLEX opcodes must be handled above */ break; } break; case AML_CLASS_INTERNAL: /* case AML_INT_NAMEPATH_OP: */ break; case AML_CLASS_METHOD_CALL: ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "RESOLVING-MethodCall: State=%p Op=%p NamedObj=%p\n", WalkState, Op, Node)); /* * Lookup the method name and save the Node */ Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Common.Value.String, ACPI_TYPE_ANY, ACPI_IMODE_LOAD_PASS2, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, WalkState, &(NewNode)); if (ACPI_SUCCESS (Status)) { /* * Make sure that what we found is indeed a method * We didn't search for a method on purpose, to see if the name * would resolve */ if (NewNode->Type != ACPI_TYPE_METHOD) { Status = AE_AML_OPERAND_TYPE; } /* We could put the returned object (Node) on the object stack for * later, but for now, we will put it in the "op" object that the * parser uses, so we can get it again at the end of this scope */ Op->Common.Node = NewNode; } else { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Arg->Common.Value.String, Status); } break; default: break; } Cleanup: /* Remove the Node pushed at the very beginning */ WalkState->Operands[0] = NULL; WalkState->NumOperands = 0; return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/dispatcher/dsobject.c0000775000175000017500000004345714773714132023332 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dsobject - Dispatcher object management routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acdispat.h" #include "acnamesp.h" #include "acinterp.h" #define _COMPONENT ACPI_DISPATCHER ACPI_MODULE_NAME ("dsobject") /******************************************************************************* * * FUNCTION: AcpiDsBuildInternalObject * * PARAMETERS: WalkState - Current walk state * Op - Parser object to be translated * ObjDescPtr - Where the ACPI internal object is returned * * RETURN: Status * * DESCRIPTION: Translate a parser Op object to the equivalent namespace object * Simple objects are any objects other than a package object! * ******************************************************************************/ ACPI_STATUS AcpiDsBuildInternalObject ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_OPERAND_OBJECT **ObjDescPtr) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (DsBuildInternalObject); *ObjDescPtr = NULL; if (Op->Common.AmlOpcode == AML_INT_NAMEPATH_OP) { /* * This is a named object reference. If this name was * previously looked up in the namespace, it was stored in * this op. Otherwise, go ahead and look it up now */ if (!Op->Common.Node) { /* Check if we are resolving a named reference within a package */ if ((Op->Common.Parent->Common.AmlOpcode == AML_PACKAGE_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP)) { /* * We won't resolve package elements here, we will do this * after all ACPI tables are loaded into the namespace. This * behavior supports both forward references to named objects * and external references to objects in other tables. */ goto CreateNewObject; } else { Status = AcpiNsLookup (WalkState->ScopeInfo, Op->Common.Value.String, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, NULL, ACPI_CAST_INDIRECT_PTR ( ACPI_NAMESPACE_NODE, &(Op->Common.Node))); if (ACPI_FAILURE (Status)) { ACPI_ERROR_NAMESPACE (WalkState->ScopeInfo, Op->Common.Value.String, Status); return_ACPI_STATUS (Status); } } } } CreateNewObject: /* Create and init a new internal ACPI object */ ObjDesc = AcpiUtCreateInternalObject ( (AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode))->ObjectType); if (!ObjDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } Status = AcpiDsInitObjectFromOp ( WalkState, Op, Op->Common.AmlOpcode, &ObjDesc); if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /* * Handling for unresolved package reference elements. * These are elements that are namepaths. */ if ((Op->Common.Parent->Common.AmlOpcode == AML_PACKAGE_OP) || (Op->Common.Parent->Common.AmlOpcode == AML_VARIABLE_PACKAGE_OP)) { ObjDesc->Reference.Resolved = TRUE; if ((Op->Common.AmlOpcode == AML_INT_NAMEPATH_OP) && !ObjDesc->Reference.Node) { /* * Name was unresolved above. * Get the prefix node for later lookup */ ObjDesc->Reference.Node = WalkState->ScopeInfo->Scope.Node; ObjDesc->Reference.Aml = Op->Common.Aml; ObjDesc->Reference.Resolved = FALSE; } } *ObjDescPtr = ObjDesc; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsBuildInternalBufferObj * * PARAMETERS: WalkState - Current walk state * Op - Parser object to be translated * BufferLength - Length of the buffer * ObjDescPtr - Where the ACPI internal object is returned * * RETURN: Status * * DESCRIPTION: Translate a parser Op package object to the equivalent * namespace object * ******************************************************************************/ ACPI_STATUS AcpiDsBuildInternalBufferObj ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, UINT32 BufferLength, ACPI_OPERAND_OBJECT **ObjDescPtr) { ACPI_PARSE_OBJECT *Arg; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_PARSE_OBJECT *ByteList; UINT32 ByteListLength = 0; ACPI_FUNCTION_TRACE (DsBuildInternalBufferObj); /* * If we are evaluating a Named buffer object "Name (xxxx, Buffer)". * The buffer object already exists (from the NS node), otherwise it must * be created. */ ObjDesc = *ObjDescPtr; if (!ObjDesc) { /* Create a new buffer object */ ObjDesc = AcpiUtCreateInternalObject (ACPI_TYPE_BUFFER); *ObjDescPtr = ObjDesc; if (!ObjDesc) { return_ACPI_STATUS (AE_NO_MEMORY); } } /* * Second arg is the buffer data (optional) ByteList can be either * individual bytes or a string initializer. In either case, a * ByteList appears in the AML. */ Arg = Op->Common.Value.Arg; /* skip first arg */ ByteList = Arg->Named.Next; if (ByteList) { if (ByteList->Common.AmlOpcode != AML_INT_BYTELIST_OP) { ACPI_ERROR ((AE_INFO, "Expecting bytelist, found AML opcode 0x%X in op %p", ByteList->Common.AmlOpcode, ByteList)); AcpiUtRemoveReference (ObjDesc); return (AE_TYPE); } ByteListLength = (UINT32) ByteList->Common.Value.Integer; } /* * The buffer length (number of bytes) will be the larger of: * 1) The specified buffer length and * 2) The length of the initializer byte list */ ObjDesc->Buffer.Length = BufferLength; if (ByteListLength > BufferLength) { ObjDesc->Buffer.Length = ByteListLength; } /* Allocate the buffer */ if (ObjDesc->Buffer.Length == 0) { ObjDesc->Buffer.Pointer = NULL; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Buffer defined with zero length in AML, creating\n")); } else { ObjDesc->Buffer.Pointer = ACPI_ALLOCATE_ZEROED (ObjDesc->Buffer.Length); if (!ObjDesc->Buffer.Pointer) { AcpiUtDeleteObjectDesc (ObjDesc); return_ACPI_STATUS (AE_NO_MEMORY); } /* Initialize buffer from the ByteList (if present) */ if (ByteList) { memcpy (ObjDesc->Buffer.Pointer, ByteList->Named.Data, ByteListLength); } } ObjDesc->Buffer.Flags |= AOPOBJ_DATA_VALID; Op->Common.Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjDesc); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiDsCreateNode * * PARAMETERS: WalkState - Current walk state * Node - NS Node to be initialized * Op - Parser object to be translated * * RETURN: Status * * DESCRIPTION: Create the object to be associated with a namespace node * ******************************************************************************/ ACPI_STATUS AcpiDsCreateNode ( ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_TRACE_PTR (DsCreateNode, Op); /* * Because of the execution pass through the non-control-method * parts of the table, we can arrive here twice. Only init * the named object node the first time through */ if (AcpiNsGetAttachedObject (Node)) { return_ACPI_STATUS (AE_OK); } if (!Op->Common.Value.Arg) { /* No arguments, there is nothing to do */ return_ACPI_STATUS (AE_OK); } /* Build an internal object for the argument(s) */ Status = AcpiDsBuildInternalObject ( WalkState, Op->Common.Value.Arg, &ObjDesc); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Re-type the object according to its argument */ Node->Type = ObjDesc->Common.Type; /* Attach obj to node */ Status = AcpiNsAttachObject (Node, ObjDesc, Node->Type); /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiDsInitObjectFromOp * * PARAMETERS: WalkState - Current walk state * Op - Parser op used to init the internal object * Opcode - AML opcode associated with the object * RetObjDesc - Namespace object to be initialized * * RETURN: Status * * DESCRIPTION: Initialize a namespace object from a parser Op and its * associated arguments. The namespace object is a more compact * representation of the Op and its arguments. * ******************************************************************************/ ACPI_STATUS AcpiDsInitObjectFromOp ( ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, UINT16 Opcode, ACPI_OPERAND_OBJECT **RetObjDesc) { const ACPI_OPCODE_INFO *OpInfo; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_TRACE (DsInitObjectFromOp); ObjDesc = *RetObjDesc; OpInfo = AcpiPsGetOpcodeInfo (Opcode); if (OpInfo->Class == AML_CLASS_UNKNOWN) { /* Unknown opcode */ return_ACPI_STATUS (AE_TYPE); } /* Perform per-object initialization */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_BUFFER: /* * Defer evaluation of Buffer TermArg operand */ ObjDesc->Buffer.Node = ACPI_CAST_PTR ( ACPI_NAMESPACE_NODE, WalkState->Operands[0]); ObjDesc->Buffer.AmlStart = Op->Named.Data; ObjDesc->Buffer.AmlLength = Op->Named.Length; break; case ACPI_TYPE_PACKAGE: /* * Defer evaluation of Package TermArg operand and all * package elements. (01/2017): We defer the element * resolution to allow forward references from the package * in order to provide compatibility with other ACPI * implementations. */ ObjDesc->Package.Node = ACPI_CAST_PTR ( ACPI_NAMESPACE_NODE, WalkState->Operands[0]); if (!Op->Named.Data) { return_ACPI_STATUS (AE_OK); } ObjDesc->Package.AmlStart = Op->Named.Data; ObjDesc->Package.AmlLength = Op->Named.Length; break; case ACPI_TYPE_INTEGER: switch (OpInfo->Type) { case AML_TYPE_CONSTANT: /* * Resolve AML Constants here - AND ONLY HERE! * All constants are integers. * We mark the integer with a flag that indicates that it started * life as a constant -- so that stores to constants will perform * as expected (noop). ZeroOp is used as a placeholder for optional * target operands. */ ObjDesc->Common.Flags = AOPOBJ_AML_CONSTANT; switch (Opcode) { case AML_ZERO_OP: ObjDesc->Integer.Value = 0; break; case AML_ONE_OP: ObjDesc->Integer.Value = 1; break; case AML_ONES_OP: ObjDesc->Integer.Value = ACPI_UINT64_MAX; /* Truncate value if we are executing from a 32-bit ACPI table */ (void) AcpiExTruncateFor32bitTable (ObjDesc); break; case AML_REVISION_OP: ObjDesc->Integer.Value = ACPI_CA_VERSION; break; default: ACPI_ERROR ((AE_INFO, "Unknown constant opcode 0x%X", Opcode)); Status = AE_AML_OPERAND_TYPE; break; } break; case AML_TYPE_LITERAL: ObjDesc->Integer.Value = Op->Common.Value.Integer; if (AcpiExTruncateFor32bitTable (ObjDesc)) { /* Warn if we found a 64-bit constant in a 32-bit table */ ACPI_WARNING ((AE_INFO, "Truncated 64-bit constant found in 32-bit table: %8.8X%8.8X => %8.8X", ACPI_FORMAT_UINT64 (Op->Common.Value.Integer), (UINT32) ObjDesc->Integer.Value)); } break; default: ACPI_ERROR ((AE_INFO, "Unknown Integer type 0x%X", OpInfo->Type)); Status = AE_AML_OPERAND_TYPE; break; } break; case ACPI_TYPE_STRING: ObjDesc->String.Pointer = Op->Common.Value.String; ObjDesc->String.Length = (UINT32) strlen (Op->Common.Value.String); /* * The string is contained in the ACPI table, don't ever try * to delete it */ ObjDesc->Common.Flags |= AOPOBJ_STATIC_POINTER; break; case ACPI_TYPE_METHOD: break; case ACPI_TYPE_LOCAL_REFERENCE: switch (OpInfo->Type) { case AML_TYPE_LOCAL_VARIABLE: /* Local ID (0-7) is (AML opcode - base AML_FIRST_LOCAL_OP) */ ObjDesc->Reference.Value = ((UINT32) Opcode) - AML_FIRST_LOCAL_OP; ObjDesc->Reference.Class = ACPI_REFCLASS_LOCAL; Status = AcpiDsMethodDataGetNode (ACPI_REFCLASS_LOCAL, ObjDesc->Reference.Value, WalkState, ACPI_CAST_INDIRECT_PTR (ACPI_NAMESPACE_NODE, &ObjDesc->Reference.Object)); break; case AML_TYPE_METHOD_ARGUMENT: /* Arg ID (0-6) is (AML opcode - base AML_FIRST_ARG_OP) */ ObjDesc->Reference.Value = ((UINT32) Opcode) - AML_FIRST_ARG_OP; ObjDesc->Reference.Class = ACPI_REFCLASS_ARG; Status = AcpiDsMethodDataGetNode (ACPI_REFCLASS_ARG, ObjDesc->Reference.Value, WalkState, ACPI_CAST_INDIRECT_PTR (ACPI_NAMESPACE_NODE, &ObjDesc->Reference.Object)); break; default: /* Object name or Debug object */ switch (Op->Common.AmlOpcode) { case AML_INT_NAMEPATH_OP: /* Node was saved in Op */ ObjDesc->Reference.Node = Op->Common.Node; ObjDesc->Reference.Class = ACPI_REFCLASS_NAME; if (Op->Common.Node) { ObjDesc->Reference.Object = Op->Common.Node->Object; } break; case AML_DEBUG_OP: ObjDesc->Reference.Class = ACPI_REFCLASS_DEBUG; break; default: ACPI_ERROR ((AE_INFO, "Unimplemented reference type for AML opcode: 0x%4.4X", Opcode)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } break; } break; default: ACPI_ERROR ((AE_INFO, "Unimplemented data type: 0x%X", ObjDesc->Common.Type)); Status = AE_AML_OPERAND_TYPE; break; } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/namespace/0000775000175000017500000000000014773714133021160 5ustar ivanhuivanhuacpica-unix-20250404/source/components/namespace/nsrepair.c0000775000175000017500000005030114773714132023150 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsrepair - Repair for objects returned by predefined methods * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acinterp.h" #include "acpredef.h" #include "amlresrc.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsrepair") /******************************************************************************* * * This module attempts to repair or convert objects returned by the * predefined methods to an object type that is expected, as per the ACPI * specification. The need for this code is dictated by the many machines that * return incorrect types for the standard predefined methods. Performing these * conversions here, in one place, eliminates the need for individual ACPI * device drivers to do the same. Note: Most of these conversions are different * than the internal object conversion routines used for implicit object * conversion. * * The following conversions can be performed as necessary: * * Integer -> String * Integer -> Buffer * String -> Integer * String -> Buffer * Buffer -> Integer * Buffer -> String * Buffer -> Package of Integers * Package -> Package of one Package * * Additional conversions that are available: * Convert a null return or zero return value to an EndTag descriptor * Convert an ASCII string to a Unicode buffer * * An incorrect standalone object is wrapped with required outer package * * Additional possible repairs: * Required package elements that are NULL replaced by Integer/String/Buffer * ******************************************************************************/ /* Local prototypes */ static const ACPI_SIMPLE_REPAIR_INFO * AcpiNsMatchSimpleRepair ( ACPI_NAMESPACE_NODE *Node, UINT32 ReturnBtype, UINT32 PackageIndex); /* * Special but simple repairs for some names. * * 2nd argument: Unexpected types that can be repaired */ static const ACPI_SIMPLE_REPAIR_INFO AcpiObjectRepairInfo[] = { /* Resource descriptor conversions */ { "_CRS", ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER | ACPI_RTYPE_NONE, ACPI_NOT_PACKAGE_ELEMENT, AcpiNsConvertToResource }, { "_DMA", ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER | ACPI_RTYPE_NONE, ACPI_NOT_PACKAGE_ELEMENT, AcpiNsConvertToResource }, { "_PRS", ACPI_RTYPE_INTEGER | ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER | ACPI_RTYPE_NONE, ACPI_NOT_PACKAGE_ELEMENT, AcpiNsConvertToResource }, /* Object reference conversions */ { "_DEP", ACPI_RTYPE_STRING, ACPI_ALL_PACKAGE_ELEMENTS, AcpiNsConvertToReference }, /* Unicode conversions */ { "_MLS", ACPI_RTYPE_STRING, 1, AcpiNsConvertToUnicode }, { "_STR", ACPI_RTYPE_STRING | ACPI_RTYPE_BUFFER, ACPI_NOT_PACKAGE_ELEMENT, AcpiNsConvertToUnicode }, { {0,0,0,0}, 0, 0, NULL } /* Table terminator */ }; /******************************************************************************* * * FUNCTION: AcpiNsSimpleRepair * * PARAMETERS: Info - Method execution information block * ExpectedBtypes - Object types expected * PackageIndex - Index of object within parent package (if * applicable - ACPI_NOT_PACKAGE_ELEMENT * otherwise) * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if repair was successful. * * DESCRIPTION: Attempt to repair/convert a return object of a type that was * not expected. * ******************************************************************************/ ACPI_STATUS AcpiNsSimpleRepair ( ACPI_EVALUATE_INFO *Info, UINT32 ExpectedBtypes, UINT32 PackageIndex, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_OPERAND_OBJECT *NewObject = NULL; ACPI_STATUS Status; const ACPI_SIMPLE_REPAIR_INFO *Predefined; ACPI_FUNCTION_NAME (NsSimpleRepair); /* * Special repairs for certain names that are in the repair table. * Check if this name is in the list of repairable names. */ Predefined = AcpiNsMatchSimpleRepair (Info->Node, Info->ReturnBtype, PackageIndex); if (Predefined) { if (!ReturnObject) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, ACPI_WARN_ALWAYS, "Missing expected return value")); } Status = Predefined->ObjectConverter (Info->Node, ReturnObject, &NewObject); if (ACPI_FAILURE (Status)) { /* A fatal error occurred during a conversion */ ACPI_EXCEPTION ((AE_INFO, Status, "During return object analysis")); return (Status); } if (NewObject) { goto ObjectRepaired; } } /* * Do not perform simple object repair unless the return type is not * expected. */ if (Info->ReturnBtype & ExpectedBtypes) { return (AE_OK); } /* * At this point, we know that the type of the returned object was not * one of the expected types for this predefined name. Attempt to * repair the object by converting it to one of the expected object * types for this predefined name. */ /* * If there is no return value, check if we require a return value for * this predefined name. Either one return value is expected, or none, * for both methods and other objects. * * Try to fix if there was no return object. Warning if failed to fix. */ if (!ReturnObject) { if (ExpectedBtypes) { if (!(ExpectedBtypes & ACPI_RTYPE_NONE) && PackageIndex != ACPI_NOT_PACKAGE_ELEMENT) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, ACPI_WARN_ALWAYS, "Found unexpected NULL package element")); Status = AcpiNsRepairNullElement (Info, ExpectedBtypes, PackageIndex, ReturnObjectPtr); if (ACPI_SUCCESS (Status)) { return (AE_OK); /* Repair was successful */ } } if (ExpectedBtypes != ACPI_RTYPE_NONE) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, ACPI_WARN_ALWAYS, "Missing expected return value")); return (AE_AML_NO_RETURN_VALUE); } } } if (ExpectedBtypes & ACPI_RTYPE_INTEGER) { Status = AcpiNsConvertToInteger (ReturnObject, &NewObject); if (ACPI_SUCCESS (Status)) { goto ObjectRepaired; } } if (ExpectedBtypes & ACPI_RTYPE_STRING) { Status = AcpiNsConvertToString (ReturnObject, &NewObject); if (ACPI_SUCCESS (Status)) { goto ObjectRepaired; } } if (ExpectedBtypes & ACPI_RTYPE_BUFFER) { Status = AcpiNsConvertToBuffer (ReturnObject, &NewObject); if (ACPI_SUCCESS (Status)) { goto ObjectRepaired; } } if (ExpectedBtypes & ACPI_RTYPE_PACKAGE) { /* * A package is expected. We will wrap the existing object with a * new package object. It is often the case that if a variable-length * package is required, but there is only a single object needed, the * BIOS will return that object instead of wrapping it with a Package * object. Note: after the wrapping, the package will be validated * for correct contents (expected object type or types). */ Status = AcpiNsWrapWithPackage (Info, ReturnObject, &NewObject); if (ACPI_SUCCESS (Status)) { /* * The original object just had its reference count * incremented for being inserted into the new package. */ *ReturnObjectPtr = NewObject; /* New Package object */ Info->ReturnFlags |= ACPI_OBJECT_REPAIRED; return (AE_OK); } } /* We cannot repair this object */ return (AE_AML_OPERAND_TYPE); ObjectRepaired: /* Object was successfully repaired */ if (PackageIndex != ACPI_NOT_PACKAGE_ELEMENT) { /* Update reference count of new object */ if (!(Info->ReturnFlags & ACPI_OBJECT_WRAPPED)) { NewObject->Common.ReferenceCount = ReturnObject->Common.ReferenceCount; } ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s: Converted %s to expected %s at Package index %u\n", Info->FullPathname, AcpiUtGetObjectTypeName (ReturnObject), AcpiUtGetObjectTypeName (NewObject), PackageIndex)); } else { ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s: Converted %s to expected %s\n", Info->FullPathname, AcpiUtGetObjectTypeName (ReturnObject), AcpiUtGetObjectTypeName (NewObject))); } /* Delete old object, install the new return object */ AcpiUtRemoveReference (ReturnObject); *ReturnObjectPtr = NewObject; Info->ReturnFlags |= ACPI_OBJECT_REPAIRED; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiNsMatchSimpleRepair * * PARAMETERS: Node - Namespace node for the method/object * ReturnBtype - Object type that was returned * PackageIndex - Index of object within parent package (if * applicable - ACPI_NOT_PACKAGE_ELEMENT * otherwise) * * RETURN: Pointer to entry in repair table. NULL indicates not found. * * DESCRIPTION: Check an object name against the repairable object list. * *****************************************************************************/ static const ACPI_SIMPLE_REPAIR_INFO * AcpiNsMatchSimpleRepair ( ACPI_NAMESPACE_NODE *Node, UINT32 ReturnBtype, UINT32 PackageIndex) { const ACPI_SIMPLE_REPAIR_INFO *ThisName; /* Search info table for a repairable predefined method/object name */ ThisName = AcpiObjectRepairInfo; while (ThisName->ObjectConverter) { if (ACPI_COMPARE_NAMESEG (Node->Name.Ascii, ThisName->Name)) { /* Check if we can actually repair this name/type combination */ if ((ReturnBtype & ThisName->UnexpectedBtypes) && (ThisName->PackageIndex == ACPI_ALL_PACKAGE_ELEMENTS || PackageIndex == ThisName->PackageIndex)) { return (ThisName); } return (NULL); } ThisName++; } return (NULL); /* Name was not found in the repair table */ } /******************************************************************************* * * FUNCTION: AcpiNsRepairNullElement * * PARAMETERS: Info - Method execution information block * ExpectedBtypes - Object types expected * PackageIndex - Index of object within parent package (if * applicable - ACPI_NOT_PACKAGE_ELEMENT * otherwise) * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if repair was successful. * * DESCRIPTION: Attempt to repair a NULL element of a returned Package object. * ******************************************************************************/ ACPI_STATUS AcpiNsRepairNullElement ( ACPI_EVALUATE_INFO *Info, UINT32 ExpectedBtypes, UINT32 PackageIndex, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_OPERAND_OBJECT *NewObject; ACPI_FUNCTION_NAME (NsRepairNullElement); /* No repair needed if return object is non-NULL */ if (ReturnObject) { return (AE_OK); } /* * Attempt to repair a NULL element of a Package object. This applies to * predefined names that return a fixed-length package and each element * is required. It does not apply to variable-length packages where NULL * elements are allowed, especially at the end of the package. */ if (ExpectedBtypes & ACPI_RTYPE_INTEGER) { /* Need an Integer - create a zero-value integer */ NewObject = AcpiUtCreateIntegerObject ((UINT64) 0); } else if (ExpectedBtypes & ACPI_RTYPE_STRING) { /* Need a String - create a NULL string */ NewObject = AcpiUtCreateStringObject (0); } else if (ExpectedBtypes & ACPI_RTYPE_BUFFER) { /* Need a Buffer - create a zero-length buffer */ NewObject = AcpiUtCreateBufferObject (0); } else { /* Error for all other expected types */ return (AE_AML_OPERAND_TYPE); } if (!NewObject) { return (AE_NO_MEMORY); } /* Set the reference count according to the parent Package object */ NewObject->Common.ReferenceCount = Info->ParentPackage->Common.ReferenceCount; ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s: Converted NULL package element to expected %s at index %u\n", Info->FullPathname, AcpiUtGetObjectTypeName (NewObject), PackageIndex)); *ReturnObjectPtr = NewObject; Info->ReturnFlags |= ACPI_OBJECT_REPAIRED; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiNsRemoveNullElements * * PARAMETERS: Info - Method execution information block * PackageType - An AcpiReturnPackageTypes value * ObjDesc - A Package object * * RETURN: None. * * DESCRIPTION: Remove all NULL package elements from packages that contain * a variable number of subpackages. For these types of * packages, NULL elements can be safely removed. * *****************************************************************************/ void AcpiNsRemoveNullElements ( ACPI_EVALUATE_INFO *Info, UINT8 PackageType, ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_OPERAND_OBJECT **Source; ACPI_OPERAND_OBJECT **Dest; UINT32 Count; UINT32 NewCount; UINT32 i; ACPI_FUNCTION_NAME (NsRemoveNullElements); /* * We can safely remove all NULL elements from these package types: * PTYPE1_VAR packages contain a variable number of simple data types. * PTYPE2 packages contain a variable number of subpackages. */ switch (PackageType) { case ACPI_PTYPE1_VAR: case ACPI_PTYPE2: case ACPI_PTYPE2_COUNT: case ACPI_PTYPE2_PKG_COUNT: case ACPI_PTYPE2_FIXED: case ACPI_PTYPE2_MIN: case ACPI_PTYPE2_REV_FIXED: case ACPI_PTYPE2_FIX_VAR: break; default: case ACPI_PTYPE2_VAR_VAR: case ACPI_PTYPE1_FIXED: case ACPI_PTYPE1_OPTION: return; } Count = ObjDesc->Package.Count; NewCount = Count; Source = ObjDesc->Package.Elements; Dest = Source; /* Examine all elements of the package object, remove nulls */ for (i = 0; i < Count; i++) { if (!*Source) { NewCount--; } else { *Dest = *Source; Dest++; } Source++; } /* Update parent package if any null elements were removed */ if (NewCount < Count) { ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s: Found and removed %u NULL elements\n", Info->FullPathname, (Count - NewCount))); /* NULL terminate list and update the package count */ *Dest = NULL; ObjDesc->Package.Count = NewCount; } } /******************************************************************************* * * FUNCTION: AcpiNsWrapWithPackage * * PARAMETERS: Info - Method execution information block * OriginalObject - Pointer to the object to repair. * ObjDescPtr - The new package object is returned here * * RETURN: Status, new object in *ObjDescPtr * * DESCRIPTION: Repair a common problem with objects that are defined to * return a variable-length Package of sub-objects. If there is * only one sub-object, some BIOS code mistakenly simply declares * the single object instead of a Package with one sub-object. * This function attempts to repair this error by wrapping a * Package object around the original object, creating the * correct and expected Package with one sub-object. * * Names that can be repaired in this manner include: * _ALR, _CSD, _HPX, _MLS, _PLD, _PRT, _PSS, _TRT, _TSS, * _BCL, _DOD, _FIX, _Sx * ******************************************************************************/ ACPI_STATUS AcpiNsWrapWithPackage ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ObjDescPtr) { ACPI_OPERAND_OBJECT *PkgObjDesc; ACPI_FUNCTION_NAME (NsWrapWithPackage); /* * Create the new outer package and populate it. The new * package will have a single element, the lone sub-object. */ PkgObjDesc = AcpiUtCreatePackageObject (1); if (!PkgObjDesc) { return (AE_NO_MEMORY); } PkgObjDesc->Package.Elements[0] = OriginalObject; ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s: Wrapped %s with expected Package object\n", Info->FullPathname, AcpiUtGetObjectTypeName (OriginalObject))); /* Return the new object in the object pointer */ *ObjDescPtr = PkgObjDesc; Info->ReturnFlags |= ACPI_OBJECT_REPAIRED | ACPI_OBJECT_WRAPPED; return (AE_OK); } acpica-unix-20250404/source/components/namespace/nsobject.c0000775000175000017500000003420214773714132023136 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: nsobject - Utilities for objects attached to namespace * table entries * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsobject") /******************************************************************************* * * FUNCTION: AcpiNsAttachObject * * PARAMETERS: Node - Parent Node * Object - Object to be attached * Type - Type of object, or ACPI_TYPE_ANY if not * known * * RETURN: Status * * DESCRIPTION: Record the given object as the value associated with the * name whose ACPI_HANDLE is passed. If Object is NULL * and Type is ACPI_TYPE_ANY, set the name as having no value. * Note: Future may require that the Node->Flags field be passed * as a parameter. * * MUTEX: Assumes namespace is locked * ******************************************************************************/ ACPI_STATUS AcpiNsAttachObject ( ACPI_NAMESPACE_NODE *Node, ACPI_OPERAND_OBJECT *Object, ACPI_OBJECT_TYPE Type) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *LastObjDesc; ACPI_OBJECT_TYPE ObjectType = ACPI_TYPE_ANY; ACPI_FUNCTION_TRACE (NsAttachObject); /* * Parameter validation */ if (!Node) { /* Invalid handle */ ACPI_ERROR ((AE_INFO, "Null NamedObj handle")); return_ACPI_STATUS (AE_BAD_PARAMETER); } if (!Object && (ACPI_TYPE_ANY != Type)) { /* Null object */ ACPI_ERROR ((AE_INFO, "Null object, but type not ACPI_TYPE_ANY")); return_ACPI_STATUS (AE_BAD_PARAMETER); } if (ACPI_GET_DESCRIPTOR_TYPE (Node) != ACPI_DESC_TYPE_NAMED) { /* Not a name handle */ ACPI_ERROR ((AE_INFO, "Invalid handle %p [%s]", Node, AcpiUtGetDescriptorName (Node))); return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Check if this object is already attached */ if (Node->Object == Object) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Obj %p already installed in NameObj %p\n", Object, Node)); return_ACPI_STATUS (AE_OK); } /* If null object, we will just install it */ if (!Object) { ObjDesc = NULL; ObjectType = ACPI_TYPE_ANY; } /* * If the source object is a namespace Node with an attached object, * we will use that (attached) object */ else if ((ACPI_GET_DESCRIPTOR_TYPE (Object) == ACPI_DESC_TYPE_NAMED) && ((ACPI_NAMESPACE_NODE *) Object)->Object) { /* * Value passed is a name handle and that name has a * non-null value. Use that name's value and type. */ ObjDesc = ((ACPI_NAMESPACE_NODE *) Object)->Object; ObjectType = ((ACPI_NAMESPACE_NODE *) Object)->Type; } /* * Otherwise, we will use the parameter object, but we must type * it first */ else { ObjDesc = (ACPI_OPERAND_OBJECT *) Object; /* Use the given type */ ObjectType = Type; } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Installing %p into Node %p [%4.4s]\n", ObjDesc, Node, AcpiUtGetNodeName (Node))); /* Detach an existing attached object if present */ if (Node->Object) { AcpiNsDetachObject (Node); } if (ObjDesc) { /* * Must increment the new value's reference count * (if it is an internal object) */ AcpiUtAddReference (ObjDesc); /* * Handle objects with multiple descriptors - walk * to the end of the descriptor list */ LastObjDesc = ObjDesc; while (LastObjDesc->Common.NextObject) { LastObjDesc = LastObjDesc->Common.NextObject; } /* Install the object at the front of the object list */ LastObjDesc->Common.NextObject = Node->Object; } Node->Type = (UINT8) ObjectType; Node->Object = ObjDesc; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsDetachObject * * PARAMETERS: Node - A Namespace node whose object will be detached * * RETURN: None. * * DESCRIPTION: Detach/delete an object associated with a namespace node. * if the object is an allocated object, it is freed. * Otherwise, the field is simply cleared. * ******************************************************************************/ void AcpiNsDetachObject ( ACPI_NAMESPACE_NODE *Node) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_TRACE (NsDetachObject); ObjDesc = Node->Object; if (!ObjDesc || (ObjDesc->Common.Type == ACPI_TYPE_LOCAL_DATA)) { return_VOID; } if (Node->Flags & ANOBJ_ALLOCATED_BUFFER) { /* Free the dynamic aml buffer */ if (ObjDesc->Common.Type == ACPI_TYPE_METHOD) { ACPI_FREE (ObjDesc->Method.AmlStart); } } if (ObjDesc->Common.Type == ACPI_TYPE_REGION) { AcpiUtRemoveAddressRange(ObjDesc->Region.SpaceId, Node); } /* Clear the Node entry in all cases */ Node->Object = NULL; if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_OPERAND) { /* Unlink object from front of possible object list */ Node->Object = ObjDesc->Common.NextObject; /* Handle possible 2-descriptor object */ if (Node->Object && (Node->Object->Common.Type != ACPI_TYPE_LOCAL_DATA)) { Node->Object = Node->Object->Common.NextObject; } /* * Detach the object from any data objects (which are still held by * the namespace node) */ if (ObjDesc->Common.NextObject && ((ObjDesc->Common.NextObject)->Common.Type == ACPI_TYPE_LOCAL_DATA)) { ObjDesc->Common.NextObject = NULL; } } /* Reset the node type to untyped */ Node->Type = ACPI_TYPE_ANY; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Node %p [%4.4s] Object %p\n", Node, AcpiUtGetNodeName (Node), ObjDesc)); /* Remove one reference on the object (and all subobjects) */ AcpiUtRemoveReference (ObjDesc); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiNsGetAttachedObject * * PARAMETERS: Node - Namespace node * * RETURN: Current value of the object field from the Node whose * handle is passed * * DESCRIPTION: Obtain the object attached to a namespace node. * ******************************************************************************/ ACPI_OPERAND_OBJECT * AcpiNsGetAttachedObject ( ACPI_NAMESPACE_NODE *Node) { ACPI_FUNCTION_TRACE_PTR (NsGetAttachedObject, Node); if (!Node) { ACPI_WARNING ((AE_INFO, "Null Node ptr")); return_PTR (NULL); } if (!Node->Object || ((ACPI_GET_DESCRIPTOR_TYPE (Node->Object) != ACPI_DESC_TYPE_OPERAND) && (ACPI_GET_DESCRIPTOR_TYPE (Node->Object) != ACPI_DESC_TYPE_NAMED)) || ((Node->Object)->Common.Type == ACPI_TYPE_LOCAL_DATA)) { return_PTR (NULL); } return_PTR (Node->Object); } /******************************************************************************* * * FUNCTION: AcpiNsGetSecondaryObject * * PARAMETERS: Node - Namespace node * * RETURN: Current value of the object field from the Node whose * handle is passed. * * DESCRIPTION: Obtain a secondary object associated with a namespace node. * ******************************************************************************/ ACPI_OPERAND_OBJECT * AcpiNsGetSecondaryObject ( ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_FUNCTION_TRACE_PTR (NsGetSecondaryObject, ObjDesc); if ((!ObjDesc) || (ObjDesc->Common.Type== ACPI_TYPE_LOCAL_DATA) || (!ObjDesc->Common.NextObject) || ((ObjDesc->Common.NextObject)->Common.Type == ACPI_TYPE_LOCAL_DATA)) { return_PTR (NULL); } return_PTR (ObjDesc->Common.NextObject); } /******************************************************************************* * * FUNCTION: AcpiNsAttachData * * PARAMETERS: Node - Namespace node * Handler - Handler to be associated with the data * Data - Data to be attached * * RETURN: Status * * DESCRIPTION: Low-level attach data. Create and attach a Data object. * ******************************************************************************/ ACPI_STATUS AcpiNsAttachData ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_HANDLER Handler, void *Data) { ACPI_OPERAND_OBJECT *PrevObjDesc; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *DataDesc; /* We only allow one attachment per handler */ PrevObjDesc = NULL; ObjDesc = Node->Object; while (ObjDesc) { if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_DATA) && (ObjDesc->Data.Handler == Handler)) { return (AE_ALREADY_EXISTS); } PrevObjDesc = ObjDesc; ObjDesc = ObjDesc->Common.NextObject; } /* Create an internal object for the data */ DataDesc = AcpiUtCreateInternalObject (ACPI_TYPE_LOCAL_DATA); if (!DataDesc) { return (AE_NO_MEMORY); } DataDesc->Data.Handler = Handler; DataDesc->Data.Pointer = Data; /* Install the data object */ if (PrevObjDesc) { PrevObjDesc->Common.NextObject = DataDesc; } else { Node->Object = DataDesc; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsDetachData * * PARAMETERS: Node - Namespace node * Handler - Handler associated with the data * * RETURN: Status * * DESCRIPTION: Low-level detach data. Delete the data node, but the caller * is responsible for the actual data. * ******************************************************************************/ ACPI_STATUS AcpiNsDetachData ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_HANDLER Handler) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *PrevObjDesc; PrevObjDesc = NULL; ObjDesc = Node->Object; while (ObjDesc) { if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_DATA) && (ObjDesc->Data.Handler == Handler)) { if (PrevObjDesc) { PrevObjDesc->Common.NextObject = ObjDesc->Common.NextObject; } else { Node->Object = ObjDesc->Common.NextObject; } AcpiUtRemoveReference (ObjDesc); return (AE_OK); } PrevObjDesc = ObjDesc; ObjDesc = ObjDesc->Common.NextObject; } return (AE_NOT_FOUND); } /******************************************************************************* * * FUNCTION: AcpiNsGetAttachedData * * PARAMETERS: Node - Namespace node * Handler - Handler associated with the data * Data - Where the data is returned * * RETURN: Status * * DESCRIPTION: Low level interface to obtain data previously associated with * a namespace node. * ******************************************************************************/ ACPI_STATUS AcpiNsGetAttachedData ( ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_HANDLER Handler, void **Data) { ACPI_OPERAND_OBJECT *ObjDesc; ObjDesc = Node->Object; while (ObjDesc) { if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_DATA) && (ObjDesc->Data.Handler == Handler)) { *Data = ObjDesc->Data.Pointer; return (AE_OK); } ObjDesc = ObjDesc->Common.NextObject; } return (AE_NOT_FOUND); } acpica-unix-20250404/source/components/namespace/nsparse.c0000775000175000017500000002351114773714132023003 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsparse - namespace interface to AML parser * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acparser.h" #include "acdispat.h" #include "actables.h" #include "acinterp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsparse") /******************************************************************************* * * FUNCTION: NsExecuteTable * * PARAMETERS: TableDesc - An ACPI table descriptor for table to parse * StartNode - Where to enter the table into the namespace * * RETURN: Status * * DESCRIPTION: Load ACPI/AML table by executing the entire table as a single * large control method. * * NOTE: The point of this is to execute any module-level code in-place * as the table is parsed. Some AML code depends on this behavior. * * It is a run-time option at this time, but will eventually become * the default. * * Note: This causes the table to only have a single-pass parse. * However, this is compatible with other ACPI implementations. * ******************************************************************************/ ACPI_STATUS AcpiNsExecuteTable ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *StartNode) { ACPI_STATUS Status; ACPI_TABLE_HEADER *Table; ACPI_OWNER_ID OwnerId; ACPI_EVALUATE_INFO *Info = NULL; UINT32 AmlLength; UINT8 *AmlStart; ACPI_OPERAND_OBJECT *MethodObj = NULL; ACPI_FUNCTION_TRACE (NsExecuteTable); Status = AcpiGetTableByIndex (TableIndex, &Table); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Table must consist of at least a complete header */ if (Table->Length < sizeof (ACPI_TABLE_HEADER)) { return_ACPI_STATUS (AE_BAD_HEADER); } AmlStart = (UINT8 *) Table + sizeof (ACPI_TABLE_HEADER); AmlLength = Table->Length - sizeof (ACPI_TABLE_HEADER); Status = AcpiTbGetOwnerId (TableIndex, &OwnerId); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Create, initialize, and link a new temporary method object */ MethodObj = AcpiUtCreateInternalObject (ACPI_TYPE_METHOD); if (!MethodObj) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Allocate the evaluation information block */ Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO)); if (!Info) { Status = AE_NO_MEMORY; goto Cleanup; } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_PARSE, "%s: Create table pseudo-method for [%4.4s] @%p, method %p\n", ACPI_GET_FUNCTION_NAME, Table->Signature, Table, MethodObj)); MethodObj->Method.AmlStart = AmlStart; MethodObj->Method.AmlLength = AmlLength; MethodObj->Method.OwnerId = OwnerId; MethodObj->Method.InfoFlags |= ACPI_METHOD_MODULE_LEVEL; Info->PassNumber = ACPI_IMODE_EXECUTE; Info->Node = StartNode; Info->ObjDesc = MethodObj; Info->NodeFlags = Info->Node->Flags; Info->FullPathname = AcpiNsGetNormalizedPathname (Info->Node, TRUE); if (!Info->FullPathname) { Status = AE_NO_MEMORY; goto Cleanup; } /* Optional object evaluation log */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EVALUATION, "%-26s: (Definition Block level)\n", "Module-level evaluation")); Status = AcpiPsExecuteTable (Info); /* Optional object evaluation log */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EVALUATION, "%-26s: (Definition Block level)\n", "Module-level complete")); Cleanup: if (Info) { ACPI_FREE (Info->FullPathname); Info->FullPathname = NULL; } ACPI_FREE (Info); AcpiUtRemoveReference (MethodObj); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: NsOneCompleteParse * * PARAMETERS: PassNumber - 1 or 2 * TableDesc - The table to be parsed. * * RETURN: Status * * DESCRIPTION: Perform one complete parse of an ACPI/AML table. * ******************************************************************************/ ACPI_STATUS AcpiNsOneCompleteParse ( UINT32 PassNumber, UINT32 TableIndex, ACPI_NAMESPACE_NODE *StartNode) { ACPI_PARSE_OBJECT *ParseRoot; ACPI_STATUS Status; UINT32 AmlLength; UINT8 *AmlStart; ACPI_WALK_STATE *WalkState; ACPI_TABLE_HEADER *Table; ACPI_OWNER_ID OwnerId; ACPI_FUNCTION_TRACE (NsOneCompleteParse); Status = AcpiGetTableByIndex (TableIndex, &Table); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Table must consist of at least a complete header */ if (Table->Length < sizeof (ACPI_TABLE_HEADER)) { return_ACPI_STATUS (AE_BAD_HEADER); } AmlStart = (UINT8 *) Table + sizeof (ACPI_TABLE_HEADER); AmlLength = Table->Length - sizeof (ACPI_TABLE_HEADER); Status = AcpiTbGetOwnerId (TableIndex, &OwnerId); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Create and init a Root Node */ ParseRoot = AcpiPsCreateScopeOp (AmlStart); if (!ParseRoot) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Create and initialize a new walk state */ WalkState = AcpiDsCreateWalkState (OwnerId, NULL, NULL, NULL); if (!WalkState) { AcpiPsFreeOp (ParseRoot); return_ACPI_STATUS (AE_NO_MEMORY); } Status = AcpiDsInitAmlWalk (WalkState, ParseRoot, NULL, AmlStart, AmlLength, NULL, (UINT8) PassNumber); if (ACPI_FAILURE (Status)) { AcpiDsDeleteWalkState (WalkState); goto Cleanup; } /* Found OSDT table, enable the namespace override feature */ if (ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_OSDT) && PassNumber == ACPI_IMODE_LOAD_PASS1) { WalkState->NamespaceOverride = TRUE; } /* StartNode is the default location to load the table */ if (StartNode && StartNode != AcpiGbl_RootNode) { Status = AcpiDsScopeStackPush ( StartNode, ACPI_TYPE_METHOD, WalkState); if (ACPI_FAILURE (Status)) { AcpiDsDeleteWalkState (WalkState); goto Cleanup; } } /* Parse the AML */ ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "*PARSE* pass %u parse\n", PassNumber)); AcpiExEnterInterpreter (); Status = AcpiPsParseAml (WalkState); AcpiExExitInterpreter (); Cleanup: AcpiPsDeleteParseTree (ParseRoot); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiNsParseTable * * PARAMETERS: TableDesc - An ACPI table descriptor for table to parse * StartNode - Where to enter the table into the namespace * * RETURN: Status * * DESCRIPTION: Parse AML within an ACPI table and return a tree of ops * ******************************************************************************/ ACPI_STATUS AcpiNsParseTable ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *StartNode) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (NsParseTable); /* * Executes the AML table as one large control method. * The point of this is to execute any module-level code in-place * as the table is parsed. Some AML code depends on this behavior. * * Note: This causes the table to only have a single-pass parse. * However, this is compatible with other ACPI implementations. */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_PARSE, "%s: **** Start table execution pass\n", ACPI_GET_FUNCTION_NAME)); Status = AcpiNsExecuteTable (TableIndex, StartNode); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/namespace/nswalk.c0000775000175000017500000003051214773714133022627 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nswalk - Functions for walking the ACPI namespace * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nswalk") /******************************************************************************* * * FUNCTION: AcpiNsGetNextNode * * PARAMETERS: ParentNode - Parent node whose children we are * getting * ChildNode - Previous child that was found. * The NEXT child will be returned * * RETURN: ACPI_NAMESPACE_NODE - Pointer to the NEXT child or NULL if * none is found. * * DESCRIPTION: Return the next peer node within the namespace. If Handle * is valid, Scope is ignored. Otherwise, the first node * within Scope is returned. * ******************************************************************************/ ACPI_NAMESPACE_NODE * AcpiNsGetNextNode ( ACPI_NAMESPACE_NODE *ParentNode, ACPI_NAMESPACE_NODE *ChildNode) { ACPI_FUNCTION_ENTRY (); if (!ChildNode) { /* It's really the parent's _scope_ that we want */ return (ParentNode->Child); } /* Otherwise just return the next peer */ return (ChildNode->Peer); } /******************************************************************************* * * FUNCTION: AcpiNsGetNextNodeTyped * * PARAMETERS: Type - Type of node to be searched for * ParentNode - Parent node whose children we are * getting * ChildNode - Previous child that was found. * The NEXT child will be returned * * RETURN: ACPI_NAMESPACE_NODE - Pointer to the NEXT child or NULL if * none is found. * * DESCRIPTION: Return the next peer node within the namespace. If Handle * is valid, Scope is ignored. Otherwise, the first node * within Scope is returned. * ******************************************************************************/ ACPI_NAMESPACE_NODE * AcpiNsGetNextNodeTyped ( ACPI_OBJECT_TYPE Type, ACPI_NAMESPACE_NODE *ParentNode, ACPI_NAMESPACE_NODE *ChildNode) { ACPI_NAMESPACE_NODE *NextNode = NULL; ACPI_FUNCTION_ENTRY (); NextNode = AcpiNsGetNextNode (ParentNode, ChildNode); /* If any type is OK, we are done */ if (Type == ACPI_TYPE_ANY) { /* NextNode is NULL if we are at the end-of-list */ return (NextNode); } /* Must search for the node -- but within this scope only */ while (NextNode) { /* If type matches, we are done */ if (NextNode->Type == Type) { return (NextNode); } /* Otherwise, move on to the next peer node */ NextNode = NextNode->Peer; } /* Not found */ return (NULL); } /******************************************************************************* * * FUNCTION: AcpiNsWalkNamespace * * PARAMETERS: Type - ACPI_OBJECT_TYPE to search for * StartNode - Handle in namespace where search begins * MaxDepth - Depth to which search is to reach * Flags - Whether to unlock the NS before invoking * the callback routine * DescendingCallback - Called during tree descent * when an object of "Type" is found * AscendingCallback - Called during tree ascent * when an object of "Type" is found * Context - Passed to user function(s) above * ReturnValue - from the UserFunction if terminated * early. Otherwise, returns NULL. * RETURNS: Status * * DESCRIPTION: Performs a modified depth-first walk of the namespace tree, * starting (and ending) at the node specified by StartHandle. * The callback function is called whenever a node that matches * the type parameter is found. If the callback function returns * a non-zero value, the search is terminated immediately and * this value is returned to the caller. * * The point of this procedure is to provide a generic namespace * walk routine that can be called from multiple places to * provide multiple services; the callback function(s) can be * tailored to each task, whether it is a print function, * a compare function, etc. * ******************************************************************************/ ACPI_STATUS AcpiNsWalkNamespace ( ACPI_OBJECT_TYPE Type, ACPI_HANDLE StartNode, UINT32 MaxDepth, UINT32 Flags, ACPI_WALK_CALLBACK DescendingCallback, ACPI_WALK_CALLBACK AscendingCallback, void *Context, void **ReturnValue) { ACPI_STATUS Status; ACPI_STATUS MutexStatus; ACPI_NAMESPACE_NODE *ChildNode; ACPI_NAMESPACE_NODE *ParentNode; ACPI_OBJECT_TYPE ChildType; UINT32 Level; BOOLEAN NodePreviouslyVisited = FALSE; ACPI_FUNCTION_TRACE (NsWalkNamespace); /* Special case for the namespace Root Node */ if (StartNode == ACPI_ROOT_OBJECT) { StartNode = AcpiGbl_RootNode; if (!StartNode) { return_ACPI_STATUS (AE_NO_NAMESPACE); } } /* Null child means "get first node" */ ParentNode = StartNode; ChildNode = AcpiNsGetNextNode (ParentNode, NULL); ChildType = ACPI_TYPE_ANY; Level = 1; /* * Traverse the tree of nodes until we bubble back up to where we * started. When Level is zero, the loop is done because we have * bubbled up to (and passed) the original parent handle (StartEntry) */ while (Level > 0 && ChildNode) { Status = AE_OK; /* Found next child, get the type if we are not searching for ANY */ if (Type != ACPI_TYPE_ANY) { ChildType = ChildNode->Type; } /* * Ignore all temporary namespace nodes (created during control * method execution) unless told otherwise. These temporary nodes * can cause a race condition because they can be deleted during * the execution of the user function (if the namespace is * unlocked before invocation of the user function.) Only the * debugger namespace dump will examine the temporary nodes. */ if ((ChildNode->Flags & ANOBJ_TEMPORARY) && !(Flags & ACPI_NS_WALK_TEMP_NODES)) { Status = AE_CTRL_DEPTH; } /* Type must match requested type */ else if (ChildType == Type) { /* * Found a matching node, invoke the user callback function. * Unlock the namespace if flag is set. */ if (Flags & ACPI_NS_WALK_UNLOCK) { MutexStatus = AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (MutexStatus)) { return_ACPI_STATUS (MutexStatus); } } /* * Invoke the user function, either descending, ascending, * or both. */ if (!NodePreviouslyVisited) { if (DescendingCallback) { Status = DescendingCallback (ChildNode, Level, Context, ReturnValue); } } else { if (AscendingCallback) { Status = AscendingCallback (ChildNode, Level, Context, ReturnValue); } } if (Flags & ACPI_NS_WALK_UNLOCK) { MutexStatus = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (MutexStatus)) { return_ACPI_STATUS (MutexStatus); } } switch (Status) { case AE_OK: case AE_CTRL_DEPTH: /* Just keep going */ break; case AE_CTRL_TERMINATE: /* Exit now, with OK status */ return_ACPI_STATUS (AE_OK); default: /* All others are valid exceptions */ return_ACPI_STATUS (Status); } } /* * Depth first search: Attempt to go down another level in the * namespace if we are allowed to. Don't go any further if we have * reached the caller specified maximum depth or if the user * function has specified that the maximum depth has been reached. */ if (!NodePreviouslyVisited && (Level < MaxDepth) && (Status != AE_CTRL_DEPTH)) { if (ChildNode->Child) { /* There is at least one child of this node, visit it */ Level++; ParentNode = ChildNode; ChildNode = AcpiNsGetNextNode (ParentNode, NULL); continue; } } /* No more children, re-visit this node */ if (!NodePreviouslyVisited) { NodePreviouslyVisited = TRUE; continue; } /* No more children, visit peers */ ChildNode = AcpiNsGetNextNode (ParentNode, ChildNode); if (ChildNode) { NodePreviouslyVisited = FALSE; } /* No peers, re-visit parent */ else { /* * No more children of this node (AcpiNsGetNextNode failed), go * back upwards in the namespace tree to the node's parent. */ Level--; ChildNode = ParentNode; ParentNode = ParentNode->Parent; NodePreviouslyVisited = TRUE; } } /* Complete walk, not terminated by user function */ return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/namespace/nsinit.c0000775000175000017500000005544514773714132022647 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsinit - namespace initialization * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acdispat.h" #include "acinterp.h" #include "acevents.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsinit") /* Local prototypes */ static ACPI_STATUS AcpiNsInitOneObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); static ACPI_STATUS AcpiNsInitOneDevice ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static ACPI_STATUS AcpiNsFindIniMethods ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); /******************************************************************************* * * FUNCTION: AcpiNsInitializeObjects * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Walk the entire namespace and perform any necessary * initialization on the objects found therein * ******************************************************************************/ ACPI_STATUS AcpiNsInitializeObjects ( void) { ACPI_STATUS Status; ACPI_INIT_WALK_INFO Info; ACPI_FUNCTION_TRACE (NsInitializeObjects); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Completing Initialization of ACPI Objects\n")); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "**** Starting initialization of namespace objects ****\n")); ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "Final data object initialization: ")); /* Clear the info block */ memset (&Info, 0, sizeof (ACPI_INIT_WALK_INFO)); /* Walk entire namespace from the supplied root */ /* * TBD: will become ACPI_TYPE_PACKAGE as this type object * is now the only one that supports deferred initialization * (forward references). */ Status = AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, AcpiNsInitOneObject, NULL, &Info, NULL); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "During WalkNamespace")); } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "Namespace contains %u (0x%X) objects\n", Info.ObjectCount, Info.ObjectCount)); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "%u Control Methods found\n%u Op Regions found\n", Info.MethodCount, Info.OpRegionCount)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsInitializeDevices * * PARAMETERS: None * * RETURN: ACPI_STATUS * * DESCRIPTION: Walk the entire namespace and initialize all ACPI devices. * This means running _INI on all present devices. * * Note: We install PCI config space handler on region access, * not here. * ******************************************************************************/ ACPI_STATUS AcpiNsInitializeDevices ( UINT32 Flags) { ACPI_STATUS Status = AE_OK; ACPI_DEVICE_WALK_INFO Info; ACPI_HANDLE Handle; ACPI_FUNCTION_TRACE (NsInitializeDevices); if (!(Flags & ACPI_NO_DEVICE_INIT)) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Initializing ACPI Devices\n")); /* Init counters */ Info.DeviceCount = 0; Info.Num_STA = 0; Info.Num_INI = 0; ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "Initializing Device/Processor/Thermal objects " "and executing _INI/_STA methods:\n")); /* Tree analysis: find all subtrees that contain _INI methods */ Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, FALSE, AcpiNsFindIniMethods, NULL, &Info, NULL); if (ACPI_FAILURE (Status)) { goto ErrorExit; } /* Allocate the evaluation information block */ Info.EvaluateInfo = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO)); if (!Info.EvaluateInfo) { Status = AE_NO_MEMORY; goto ErrorExit; } /* * Execute the "global" _INI method that may appear at the root. * This support is provided for Windows compatibility (Vista+) and * is not part of the ACPI specification. */ Info.EvaluateInfo->PrefixNode = AcpiGbl_RootNode; Info.EvaluateInfo->RelativePathname = METHOD_NAME__INI; Info.EvaluateInfo->Parameters = NULL; Info.EvaluateInfo->Flags = ACPI_IGNORE_RETURN_VALUE; Status = AcpiNsEvaluate (Info.EvaluateInfo); if (ACPI_SUCCESS (Status)) { Info.Num_INI++; } /* * Execute \_SB._INI. * There appears to be a strict order requirement for \_SB._INI, * which should be evaluated before any _REG evaluations. */ Status = AcpiGetHandle (NULL, "\\_SB", &Handle); if (ACPI_SUCCESS (Status)) { memset (Info.EvaluateInfo, 0, sizeof (ACPI_EVALUATE_INFO)); Info.EvaluateInfo->PrefixNode = Handle; Info.EvaluateInfo->RelativePathname = METHOD_NAME__INI; Info.EvaluateInfo->Parameters = NULL; Info.EvaluateInfo->Flags = ACPI_IGNORE_RETURN_VALUE; Status = AcpiNsEvaluate (Info.EvaluateInfo); if (ACPI_SUCCESS (Status)) { Info.Num_INI++; } } } /* * Run all _REG methods * * Note: Any objects accessed by the _REG methods will be automatically * initialized, even if they contain executable AML (see the call to * AcpiNsInitializeObjects below). * * Note: According to the ACPI specification, we actually needn't execute * _REG for SystemMemory/SystemIo operation regions, but for PCI_Config * operation regions, it is required to evaluate _REG for those on a PCI * root bus that doesn't contain _BBN object. So this code is kept here * in order not to break things. */ if (!(Flags & ACPI_NO_ADDRESS_SPACE_INIT)) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "[Init] Executing _REG OpRegion methods\n")); Status = AcpiEvInitializeOpRegions (); if (ACPI_FAILURE (Status)) { goto ErrorExit; } } if (!(Flags & ACPI_NO_DEVICE_INIT)) { /* Walk namespace to execute all _INIs on present devices */ Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, FALSE, AcpiNsInitOneDevice, NULL, &Info, NULL); /* * Any _OSI requests should be completed by now. If the BIOS has * requested any Windows OSI strings, we will always truncate * I/O addresses to 16 bits -- for Windows compatibility. */ if (AcpiGbl_OsiData >= ACPI_OSI_WIN_2000) { AcpiGbl_TruncateIoAddresses = TRUE; } ACPI_FREE (Info.EvaluateInfo); if (ACPI_FAILURE (Status)) { goto ErrorExit; } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, " Executed %u _INI methods requiring %u _STA executions " "(examined %u objects)\n", Info.Num_INI, Info.Num_STA, Info.DeviceCount)); } return_ACPI_STATUS (Status); ErrorExit: ACPI_EXCEPTION ((AE_INFO, Status, "During device initialization")); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiNsInitOnePackage * * PARAMETERS: ObjHandle - Node * Level - Current nesting level * Context - Not used * ReturnValue - Not used * * RETURN: Status * * DESCRIPTION: Callback from AcpiWalkNamespace. Invoked for every package * within the namespace. Used during dynamic load of an SSDT. * ******************************************************************************/ ACPI_STATUS AcpiNsInitOnePackage ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { return (AE_OK); } /* Exit if package is already initialized */ if (ObjDesc->Package.Flags & AOPOBJ_DATA_VALID) { return (AE_OK); } Status = AcpiDsGetPackageArguments (ObjDesc); if (ACPI_FAILURE (Status)) { return (AE_OK); } Status = AcpiUtWalkPackageTree (ObjDesc, NULL, AcpiDsInitPackageElement, NULL); if (ACPI_FAILURE (Status)) { return (AE_OK); } ObjDesc->Package.Flags |= AOPOBJ_DATA_VALID; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsInitOneObject * * PARAMETERS: ObjHandle - Node * Level - Current nesting level * Context - Points to a init info struct * ReturnValue - Not used * * RETURN: Status * * DESCRIPTION: Callback from AcpiWalkNamespace. Invoked for every object * within the namespace. * * Currently, the only objects that require initialization are: * 1) Methods * 2) Op Regions * ******************************************************************************/ static ACPI_STATUS AcpiNsInitOneObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_OBJECT_TYPE Type; ACPI_STATUS Status = AE_OK; ACPI_INIT_WALK_INFO *Info = (ACPI_INIT_WALK_INFO *) Context; ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_FUNCTION_NAME (NsInitOneObject); Info->ObjectCount++; /* And even then, we are only interested in a few object types */ Type = AcpiNsGetType (ObjHandle); ObjDesc = AcpiNsGetAttachedObject (Node); if (!ObjDesc) { return (AE_OK); } /* Increment counters for object types we are looking for */ switch (Type) { case ACPI_TYPE_REGION: Info->OpRegionCount++; break; case ACPI_TYPE_BUFFER_FIELD: Info->FieldCount++; break; case ACPI_TYPE_LOCAL_BANK_FIELD: Info->FieldCount++; break; case ACPI_TYPE_BUFFER: Info->BufferCount++; break; case ACPI_TYPE_PACKAGE: Info->PackageCount++; break; default: /* No init required, just exit now */ return (AE_OK); } /* If the object is already initialized, nothing else to do */ if (ObjDesc->Common.Flags & AOPOBJ_DATA_VALID) { return (AE_OK); } /* Must lock the interpreter before executing AML code */ AcpiExEnterInterpreter (); /* * Only initialization of Package objects can be deferred, in order * to support forward references. */ switch (Type) { case ACPI_TYPE_LOCAL_BANK_FIELD: /* TBD: BankFields do not require deferred init, remove this code */ Info->FieldInit++; Status = AcpiDsGetBankFieldArguments (ObjDesc); break; case ACPI_TYPE_PACKAGE: /* Complete the initialization/resolution of the package object */ Info->PackageInit++; Status = AcpiNsInitOnePackage (ObjHandle, Level, NULL, NULL); break; default: /* No other types should get here */ Status = AE_TYPE; ACPI_EXCEPTION ((AE_INFO, Status, "Opcode is not deferred [%4.4s] (%s)", AcpiUtGetNodeName (Node), AcpiUtGetTypeName (Type))); break; } if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not execute arguments for [%4.4s] (%s)", AcpiUtGetNodeName (Node), AcpiUtGetTypeName (Type))); } /* * We ignore errors from above, and always return OK, since we don't want * to abort the walk on any single error. */ AcpiExExitInterpreter (); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsFindIniMethods * * PARAMETERS: ACPI_WALK_CALLBACK * * RETURN: ACPI_STATUS * * DESCRIPTION: Called during namespace walk. Finds objects named _INI under * device/processor/thermal objects, and marks the entire subtree * with a SUBTREE_HAS_INI flag. This flag is used during the * subsequent device initialization walk to avoid entire subtrees * that do not contain an _INI. * ******************************************************************************/ static ACPI_STATUS AcpiNsFindIniMethods ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_DEVICE_WALK_INFO *Info = ACPI_CAST_PTR (ACPI_DEVICE_WALK_INFO, Context); ACPI_NAMESPACE_NODE *Node; ACPI_NAMESPACE_NODE *ParentNode; /* Keep count of device/processor/thermal objects */ Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); if ((Node->Type == ACPI_TYPE_DEVICE) || (Node->Type == ACPI_TYPE_PROCESSOR) || (Node->Type == ACPI_TYPE_THERMAL)) { Info->DeviceCount++; return (AE_OK); } /* We are only looking for methods named _INI */ if (!ACPI_COMPARE_NAMESEG (Node->Name.Ascii, METHOD_NAME__INI)) { return (AE_OK); } /* * The only _INI methods that we care about are those that are * present under Device, Processor, and Thermal objects. */ ParentNode = Node->Parent; switch (ParentNode->Type) { case ACPI_TYPE_DEVICE: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: /* Mark parent and bubble up the INI present flag to the root */ while (ParentNode) { ParentNode->Flags |= ANOBJ_SUBTREE_HAS_INI; ParentNode = ParentNode->Parent; } break; default: break; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsInitOneDevice * * PARAMETERS: ACPI_WALK_CALLBACK * * RETURN: ACPI_STATUS * * DESCRIPTION: This is called once per device soon after ACPI is enabled * to initialize each device. It determines if the device is * present, and if so, calls _INI. * ******************************************************************************/ static ACPI_STATUS AcpiNsInitOneDevice ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_DEVICE_WALK_INFO *WalkInfo = ACPI_CAST_PTR (ACPI_DEVICE_WALK_INFO, Context); ACPI_EVALUATE_INFO *Info = WalkInfo->EvaluateInfo; UINT32 Flags; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *DeviceNode; ACPI_FUNCTION_TRACE (NsInitOneDevice); /* We are interested in Devices, Processors and ThermalZones only */ DeviceNode = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); if ((DeviceNode->Type != ACPI_TYPE_DEVICE) && (DeviceNode->Type != ACPI_TYPE_PROCESSOR) && (DeviceNode->Type != ACPI_TYPE_THERMAL)) { return_ACPI_STATUS (AE_OK); } /* * Because of an earlier namespace analysis, all subtrees that contain an * _INI method are tagged. * * If this device subtree does not contain any _INI methods, we * can exit now and stop traversing this entire subtree. */ if (!(DeviceNode->Flags & ANOBJ_SUBTREE_HAS_INI)) { return_ACPI_STATUS (AE_CTRL_DEPTH); } /* * Run _STA to determine if this device is present and functioning. We * must know this information for two important reasons (from ACPI spec): * * 1) We can only run _INI if the device is present. * 2) We must abort the device tree walk on this subtree if the device is * not present and is not functional (we will not examine the children) * * The _STA method is not required to be present under the device, we * assume the device is present if _STA does not exist. */ ACPI_DEBUG_EXEC (AcpiUtDisplayInitPathname ( ACPI_TYPE_METHOD, DeviceNode, METHOD_NAME__STA)); Status = AcpiUtExecute_STA (DeviceNode, &Flags); if (ACPI_FAILURE (Status)) { /* Ignore error and move on to next device */ return_ACPI_STATUS (AE_OK); } /* * Flags == -1 means that _STA was not found. In this case, we assume that * the device is both present and functional. * * From the ACPI spec, description of _STA: * * "If a device object (including the processor object) does not have an * _STA object, then OSPM assumes that all of the above bits are set (in * other words, the device is present, ..., and functioning)" */ if (Flags != ACPI_UINT32_MAX) { WalkInfo->Num_STA++; } /* * Examine the PRESENT and FUNCTIONING status bits * * Note: ACPI spec does not seem to specify behavior for the present but * not functioning case, so we assume functioning if present. */ if (!(Flags & ACPI_STA_DEVICE_PRESENT)) { /* Device is not present, we must examine the Functioning bit */ if (Flags & ACPI_STA_DEVICE_FUNCTIONING) { /* * Device is not present but is "functioning". In this case, * we will not run _INI, but we continue to examine the children * of this device. * * From the ACPI spec, description of _STA: (Note - no mention * of whether to run _INI or not on the device in question) * * "_STA may return bit 0 clear (not present) with bit 3 set * (device is functional). This case is used to indicate a valid * device for which no device driver should be loaded (for example, * a bridge device.) Children of this device may be present and * valid. OSPM should continue enumeration below a device whose * _STA returns this bit combination" */ return_ACPI_STATUS (AE_OK); } else { /* * Device is not present and is not functioning. We must abort the * walk of this subtree immediately -- don't look at the children * of such a device. * * From the ACPI spec, description of _INI: * * "If the _STA method indicates that the device is not present, * OSPM will not run the _INI and will not examine the children * of the device for _INI methods" */ return_ACPI_STATUS (AE_CTRL_DEPTH); } } /* * The device is present or is assumed present if no _STA exists. * Run the _INI if it exists (not required to exist) * * Note: We know there is an _INI within this subtree, but it may not be * under this particular device, it may be lower in the branch. */ if (!ACPI_COMPARE_NAMESEG (DeviceNode->Name.Ascii, "_SB_") || DeviceNode->Parent != AcpiGbl_RootNode) { ACPI_DEBUG_EXEC (AcpiUtDisplayInitPathname ( ACPI_TYPE_METHOD, DeviceNode, METHOD_NAME__INI)); memset (Info, 0, sizeof (ACPI_EVALUATE_INFO)); Info->PrefixNode = DeviceNode; Info->RelativePathname = METHOD_NAME__INI; Info->Parameters = NULL; Info->Flags = ACPI_IGNORE_RETURN_VALUE; Status = AcpiNsEvaluate (Info); if (ACPI_SUCCESS (Status)) { WalkInfo->Num_INI++; } #ifdef ACPI_DEBUG_OUTPUT else if (Status != AE_NOT_FOUND) { /* Ignore error and move on to next device */ char *ScopeName = AcpiNsGetNormalizedPathname (DeviceNode, TRUE); ACPI_EXCEPTION ((AE_INFO, Status, "during %s._INI execution", ScopeName)); ACPI_FREE (ScopeName); } #endif } /* Ignore errors from above */ Status = AE_OK; /* * The _INI method has been run if present; call the Global Initialization * Handler for this device. */ if (AcpiGbl_InitHandler) { Status = AcpiGbl_InitHandler (DeviceNode, ACPI_INIT_DEVICE_INI); } return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/namespace/nsprepkg.c0000775000175000017500000006041214773714132023162 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsprepkg - Validation of package objects for predefined names * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acpredef.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsprepkg") /* Local prototypes */ static ACPI_STATUS AcpiNsCheckPackageList ( ACPI_EVALUATE_INFO *Info, const ACPI_PREDEFINED_INFO *Package, ACPI_OPERAND_OBJECT **Elements, UINT32 Count); static ACPI_STATUS AcpiNsCheckPackageElements ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **Elements, UINT8 Type1, UINT32 Count1, UINT8 Type2, UINT32 Count2, UINT32 StartIndex); static ACPI_STATUS AcpiNsCustomPackage ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **Elements, UINT32 Count); /******************************************************************************* * * FUNCTION: AcpiNsCheckPackage * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status * * DESCRIPTION: Check a returned package object for the correct count and * correct type of all sub-objects. * ******************************************************************************/ ACPI_STATUS AcpiNsCheckPackage ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; const ACPI_PREDEFINED_INFO *Package; ACPI_OPERAND_OBJECT **Elements; ACPI_STATUS Status = AE_OK; UINT32 ExpectedCount; UINT32 Count; UINT32 i; ACPI_FUNCTION_TRACE (NsCheckPackage); /* The package info for this name is in the next table entry */ Package = Info->Predefined + 1; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "%s Validating return Package of Type %X, Count %X\n", Info->FullPathname, Package->RetInfo.Type, ReturnObject->Package.Count)); /* * For variable-length Packages, we can safely remove all embedded * and trailing NULL package elements */ AcpiNsRemoveNullElements (Info, Package->RetInfo.Type, ReturnObject); /* Extract package count and elements array */ Elements = ReturnObject->Package.Elements; Count = ReturnObject->Package.Count; /* * Most packages must have at least one element. The only exception * is the variable-length package (ACPI_PTYPE1_VAR). */ if (!Count) { if (Package->RetInfo.Type == ACPI_PTYPE1_VAR) { return_ACPI_STATUS (AE_OK); } ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Return Package has no elements (empty)")); return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } /* * Decode the type of the expected package contents * * PTYPE1 packages contain no subpackages * PTYPE2 packages contain subpackages */ switch (Package->RetInfo.Type) { case ACPI_PTYPE_CUSTOM: Status = AcpiNsCustomPackage (Info, Elements, Count); break; case ACPI_PTYPE1_FIXED: /* * The package count is fixed and there are no subpackages * * If package is too small, exit. * If package is larger than expected, issue warning but continue */ ExpectedCount = Package->RetInfo.Count1 + Package->RetInfo.Count2; if (Count < ExpectedCount) { goto PackageTooSmall; } else if (Count > ExpectedCount) { ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s: Return Package is larger than needed - " "found %u, expected %u\n", Info->FullPathname, Count, ExpectedCount)); } /* Validate all elements of the returned package */ Status = AcpiNsCheckPackageElements (Info, Elements, Package->RetInfo.ObjectType1, Package->RetInfo.Count1, Package->RetInfo.ObjectType2, Package->RetInfo.Count2, 0); break; case ACPI_PTYPE1_VAR: /* * The package count is variable, there are no subpackages, and all * elements must be of the same type */ for (i = 0; i < Count; i++) { Status = AcpiNsCheckObjectType (Info, Elements, Package->RetInfo.ObjectType1, i); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Elements++; } break; case ACPI_PTYPE1_OPTION: /* * The package count is variable, there are no subpackages. There are * a fixed number of required elements, and a variable number of * optional elements. * * Check if package is at least as large as the minimum required */ ExpectedCount = Package->RetInfo3.Count; if (Count < ExpectedCount) { goto PackageTooSmall; } /* Variable number of sub-objects */ for (i = 0; i < Count; i++) { if (i < Package->RetInfo3.Count) { /* These are the required package elements (0, 1, or 2) */ Status = AcpiNsCheckObjectType (Info, Elements, Package->RetInfo3.ObjectType[i], i); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } else { /* These are the optional package elements */ Status = AcpiNsCheckObjectType (Info, Elements, Package->RetInfo3.TailObjectType, i); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } Elements++; } break; case ACPI_PTYPE2_REV_FIXED: /* First element is the (Integer) revision */ Status = AcpiNsCheckObjectType ( Info, Elements, ACPI_RTYPE_INTEGER, 0); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Elements++; Count--; /* Examine the subpackages */ Status = AcpiNsCheckPackageList (Info, Package, Elements, Count); break; case ACPI_PTYPE2_PKG_COUNT: /* First element is the (Integer) count of subpackages to follow */ Status = AcpiNsCheckObjectType ( Info, Elements, ACPI_RTYPE_INTEGER, 0); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Count cannot be larger than the parent package length, but allow it * to be smaller. The >= accounts for the Integer above. */ ExpectedCount = (UINT32) (*Elements)->Integer.Value; if (ExpectedCount >= Count) { goto PackageTooSmall; } Count = ExpectedCount; Elements++; /* Examine the subpackages */ Status = AcpiNsCheckPackageList (Info, Package, Elements, Count); break; case ACPI_PTYPE2: case ACPI_PTYPE2_FIXED: case ACPI_PTYPE2_MIN: case ACPI_PTYPE2_COUNT: case ACPI_PTYPE2_FIX_VAR: /* * These types all return a single Package that consists of a * variable number of subpackages. * * First, ensure that the first element is a subpackage. If not, * the BIOS may have incorrectly returned the object as a single * package instead of a Package of Packages (a common error if * there is only one entry). We may be able to repair this by * wrapping the returned Package with a new outer Package. */ if (*Elements && ((*Elements)->Common.Type != ACPI_TYPE_PACKAGE)) { /* Create the new outer package and populate it */ Status = AcpiNsWrapWithPackage ( Info, ReturnObject, ReturnObjectPtr); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Update locals to point to the new package (of 1 element) */ ReturnObject = *ReturnObjectPtr; Elements = ReturnObject->Package.Elements; Count = 1; } /* Examine the subpackages */ Status = AcpiNsCheckPackageList (Info, Package, Elements, Count); break; case ACPI_PTYPE2_VAR_VAR: /* * Returns a variable list of packages, each with a variable list * of objects. */ break; case ACPI_PTYPE2_UUID_PAIR: /* The package must contain pairs of (UUID + type) */ if (Count & 1) { ExpectedCount = Count + 1; goto PackageTooSmall; } while (Count > 0) { Status = AcpiNsCheckObjectType(Info, Elements, Package->RetInfo.ObjectType1, 0); if (ACPI_FAILURE(Status)) { return_ACPI_STATUS (Status); } /* Validate length of the UUID buffer */ if ((*Elements)->Buffer.Length != 16) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Invalid length for UUID Buffer")); return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } Status = AcpiNsCheckObjectType(Info, Elements + 1, Package->RetInfo.ObjectType2, 0); if (ACPI_FAILURE(Status)) { return_ACPI_STATUS (Status); } Elements += 2; Count -= 2; } break; default: /* Should not get here if predefined info table is correct */ ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Invalid internal return type in table entry: %X", Package->RetInfo.Type)); return_ACPI_STATUS (AE_AML_INTERNAL); } return_ACPI_STATUS (Status); PackageTooSmall: /* Error exit for the case with an incorrect package count */ ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Return Package is too small - found %u elements, expected %u", Count, ExpectedCount)); return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } /******************************************************************************* * * FUNCTION: AcpiNsCheckPackageList * * PARAMETERS: Info - Method execution information block * Package - Pointer to package-specific info for method * Elements - Element list of parent package. All elements * of this list should be of type Package. * Count - Count of subpackages * * RETURN: Status * * DESCRIPTION: Examine a list of subpackages * ******************************************************************************/ static ACPI_STATUS AcpiNsCheckPackageList ( ACPI_EVALUATE_INFO *Info, const ACPI_PREDEFINED_INFO *Package, ACPI_OPERAND_OBJECT **Elements, UINT32 Count) { ACPI_OPERAND_OBJECT *SubPackage; ACPI_OPERAND_OBJECT **SubElements; ACPI_STATUS Status; UINT32 ExpectedCount; UINT32 i; UINT32 j; /* * Validate each subpackage in the parent Package * * NOTE: assumes list of subpackages contains no NULL elements. * Any NULL elements should have been removed by earlier call * to AcpiNsRemoveNullElements. */ for (i = 0; i < Count; i++) { SubPackage = *Elements; SubElements = SubPackage->Package.Elements; Info->ParentPackage = SubPackage; /* Each sub-object must be of type Package */ Status = AcpiNsCheckObjectType (Info, &SubPackage, ACPI_RTYPE_PACKAGE, i); if (ACPI_FAILURE (Status)) { return (Status); } /* Examine the different types of expected subpackages */ Info->ParentPackage = SubPackage; switch (Package->RetInfo.Type) { case ACPI_PTYPE2: case ACPI_PTYPE2_PKG_COUNT: case ACPI_PTYPE2_REV_FIXED: /* Each subpackage has a fixed number of elements */ ExpectedCount = Package->RetInfo.Count1 + Package->RetInfo.Count2; if (SubPackage->Package.Count < ExpectedCount) { goto PackageTooSmall; } Status = AcpiNsCheckPackageElements (Info, SubElements, Package->RetInfo.ObjectType1, Package->RetInfo.Count1, Package->RetInfo.ObjectType2, Package->RetInfo.Count2, 0); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_PTYPE2_FIX_VAR: /* * Each subpackage has a fixed number of elements and an * optional element */ ExpectedCount = Package->RetInfo.Count1 + Package->RetInfo.Count2; if (SubPackage->Package.Count < ExpectedCount) { goto PackageTooSmall; } Status = AcpiNsCheckPackageElements (Info, SubElements, Package->RetInfo.ObjectType1, Package->RetInfo.Count1, Package->RetInfo.ObjectType2, SubPackage->Package.Count - Package->RetInfo.Count1, 0); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_PTYPE2_VAR_VAR: /* * Each subpackage has a fixed or variable number of elements */ break; case ACPI_PTYPE2_FIXED: /* Each subpackage has a fixed length */ ExpectedCount = Package->RetInfo2.Count; if (SubPackage->Package.Count < ExpectedCount) { goto PackageTooSmall; } /* Check the type of each subpackage element */ for (j = 0; j < ExpectedCount; j++) { Status = AcpiNsCheckObjectType (Info, &SubElements[j], Package->RetInfo2.ObjectType[j], j); if (ACPI_FAILURE (Status)) { return (Status); } } break; case ACPI_PTYPE2_MIN: /* Each subpackage has a variable but minimum length */ ExpectedCount = Package->RetInfo.Count1; if (SubPackage->Package.Count < ExpectedCount) { goto PackageTooSmall; } /* Check the type of each subpackage element */ Status = AcpiNsCheckPackageElements (Info, SubElements, Package->RetInfo.ObjectType1, SubPackage->Package.Count, 0, 0, 0); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_PTYPE2_COUNT: /* * First element is the (Integer) count of elements, including * the count field (the ACPI name is NumElements) */ Status = AcpiNsCheckObjectType (Info, SubElements, ACPI_RTYPE_INTEGER, 0); if (ACPI_FAILURE (Status)) { return (Status); } /* * Make sure package is large enough for the Count and is * is as large as the minimum size */ ExpectedCount = (UINT32) (*SubElements)->Integer.Value; if (SubPackage->Package.Count < ExpectedCount) { goto PackageTooSmall; } if (SubPackage->Package.Count < Package->RetInfo.Count1) { ExpectedCount = Package->RetInfo.Count1; goto PackageTooSmall; } if (ExpectedCount == 0) { /* * Either the NumEntries element was originally zero or it was * a NULL element and repaired to an Integer of value zero. * In either case, repair it by setting NumEntries to be the * actual size of the subpackage. */ ExpectedCount = SubPackage->Package.Count; (*SubElements)->Integer.Value = ExpectedCount; } /* Check the type of each subpackage element */ Status = AcpiNsCheckPackageElements (Info, (SubElements + 1), Package->RetInfo.ObjectType1, (ExpectedCount - 1), 0, 0, 1); if (ACPI_FAILURE (Status)) { return (Status); } break; default: /* Should not get here, type was validated by caller */ ACPI_ERROR ((AE_INFO, "Invalid Package type: %X", Package->RetInfo.Type)); return (AE_AML_INTERNAL); } Elements++; } return (AE_OK); PackageTooSmall: /* The subpackage count was smaller than required */ ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Return SubPackage[%u] is too small - found %u elements, expected %u", i, SubPackage->Package.Count, ExpectedCount)); return (AE_AML_OPERAND_VALUE); } /******************************************************************************* * * FUNCTION: AcpiNsCustomPackage * * PARAMETERS: Info - Method execution information block * Elements - Pointer to the package elements array * Count - Element count for the package * * RETURN: Status * * DESCRIPTION: Check a returned package object for the correct count and * correct type of all sub-objects. * * NOTE: Currently used for the _BIX method only. When needed for two or more * methods, probably a detect/dispatch mechanism will be required. * ******************************************************************************/ static ACPI_STATUS AcpiNsCustomPackage ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **Elements, UINT32 Count) { UINT32 ExpectedCount; UINT32 Version; ACPI_STATUS Status = AE_OK; ACPI_FUNCTION_NAME (NsCustomPackage); /* Get version number, must be Integer */ if ((*Elements)->Common.Type != ACPI_TYPE_INTEGER) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Return Package has invalid object type for version number")); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); } Version = (UINT32) (*Elements)->Integer.Value; ExpectedCount = 21; /* Version 1 */ if (Version == 0) { ExpectedCount = 20; /* Version 0 */ } if (Count < ExpectedCount) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Return Package is too small - found %u elements, expected %u", Count, ExpectedCount)); return_ACPI_STATUS (AE_AML_OPERAND_VALUE); } else if (Count > ExpectedCount) { ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s: Return Package is larger than needed - " "found %u, expected %u\n", Info->FullPathname, Count, ExpectedCount)); } /* Validate all elements of the returned package */ Status = AcpiNsCheckPackageElements (Info, Elements, ACPI_RTYPE_INTEGER, 16, ACPI_RTYPE_STRING, 4, 0); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Version 1 has a single trailing integer */ if (Version > 0) { Status = AcpiNsCheckPackageElements (Info, Elements + 20, ACPI_RTYPE_INTEGER, 1, 0, 0, 20); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiNsCheckPackageElements * * PARAMETERS: Info - Method execution information block * Elements - Pointer to the package elements array * Type1 - Object type for first group * Count1 - Count for first group * Type2 - Object type for second group * Count2 - Count for second group * StartIndex - Start of the first group of elements * * RETURN: Status * * DESCRIPTION: Check that all elements of a package are of the correct object * type. Supports up to two groups of different object types. * ******************************************************************************/ static ACPI_STATUS AcpiNsCheckPackageElements ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **Elements, UINT8 Type1, UINT32 Count1, UINT8 Type2, UINT32 Count2, UINT32 StartIndex) { ACPI_OPERAND_OBJECT **ThisElement = Elements; ACPI_STATUS Status; UINT32 i; ACPI_FUNCTION_TRACE (NsCheckPackageElements); /* * Up to two groups of package elements are supported by the data * structure. All elements in each group must be of the same type. * The second group can have a count of zero. */ for (i = 0; i < Count1; i++) { Status = AcpiNsCheckObjectType (Info, ThisElement, Type1, i + StartIndex); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ThisElement++; } for (i = 0; i < Count2; i++) { Status = AcpiNsCheckObjectType (Info, ThisElement, Type2, (i + Count1 + StartIndex)); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } ThisElement++; } return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/namespace/nsaccess.c0000775000175000017500000006365414773714132023146 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: nsaccess - Top-level functions for accessing ACPI namespace * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acnamesp.h" #include "acdispat.h" #ifdef ACPI_ASL_COMPILER #include "acdisasm.h" #endif #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsaccess") /******************************************************************************* * * FUNCTION: AcpiNsRootInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Allocate and initialize the default root named objects * * MUTEX: Locks namespace for entire execution * ******************************************************************************/ ACPI_STATUS AcpiNsRootInitialize ( void) { ACPI_STATUS Status; const ACPI_PREDEFINED_NAMES *InitVal = NULL; ACPI_NAMESPACE_NODE *NewNode; ACPI_NAMESPACE_NODE *PrevNode = NULL; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STRING Val = NULL; ACPI_FUNCTION_TRACE (NsRootInitialize); Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * The global root ptr is initially NULL, so a non-NULL value indicates * that AcpiNsRootInitialize() has already been called; just return. */ if (AcpiGbl_RootNode) { Status = AE_OK; goto UnlockAndExit; } /* * Tell the rest of the subsystem that the root is initialized * (This is OK because the namespace is locked) */ AcpiGbl_RootNode = &AcpiGbl_RootNodeStruct; /* Enter the predefined names in the name table */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Entering predefined entries into namespace\n")); /* * Create the initial (default) namespace. * This namespace looks like something similar to this: * * ACPI Namespace (from Namespace Root): * 0 _GPE Scope 00203160 00 * 0 _PR_ Scope 002031D0 00 * 0 _SB_ Device 00203240 00 Notify Object: 0020ADD8 * 0 _SI_ Scope 002032B0 00 * 0 _TZ_ Device 00203320 00 * 0 _REV Integer 00203390 00 = 0000000000000002 * 0 _OS_ String 00203488 00 Len 14 "Microsoft Windows NT" * 0 _GL_ Mutex 00203580 00 Object 002035F0 * 0 _OSI Method 00203678 00 Args 1 Len 0000 Aml 00000000 */ for (InitVal = AcpiGbl_PreDefinedNames; InitVal->Name; InitVal++) { Status = AE_OK; /* _OSI is optional for now, will be permanent later */ if (!strcmp (InitVal->Name, "_OSI") && !AcpiGbl_CreateOsiMethod) { continue; } /* * Create, init, and link the new predefined name * Note: No need to use AcpiNsLookup here because all the * predefined names are at the root level. It is much easier to * just create and link the new node(s) here. */ NewNode = AcpiNsCreateNode (*ACPI_CAST_PTR (UINT32, InitVal->Name)); if (!NewNode) { Status = AE_NO_MEMORY; goto UnlockAndExit; } NewNode->DescriptorType = ACPI_DESC_TYPE_NAMED; NewNode->Type = InitVal->Type; if (!PrevNode) { AcpiGbl_RootNodeStruct.Child = NewNode; } else { PrevNode->Peer = NewNode; } NewNode->Parent = &AcpiGbl_RootNodeStruct; PrevNode = NewNode; /* * Name entered successfully. If entry in PreDefinedNames[] specifies * an initial value, create the initial value. */ if (InitVal->Val) { Status = AcpiOsPredefinedOverride (InitVal, &Val); if (ACPI_FAILURE (Status)) { ACPI_ERROR ((AE_INFO, "Could not override predefined %s", InitVal->Name)); } if (!Val) { Val = InitVal->Val; } /* * Entry requests an initial value, allocate a * descriptor for it. */ ObjDesc = AcpiUtCreateInternalObject (InitVal->Type); if (!ObjDesc) { Status = AE_NO_MEMORY; goto UnlockAndExit; } /* * Convert value string from table entry to * internal representation. Only types actually * used for initial values are implemented here. */ switch (InitVal->Type) { case ACPI_TYPE_METHOD: ObjDesc->Method.ParamCount = (UINT8) ACPI_TO_INTEGER (Val); ObjDesc->Common.Flags |= AOPOBJ_DATA_VALID; #if defined (ACPI_ASL_COMPILER) /* Save the parameter count for the iASL compiler */ NewNode->Value = ObjDesc->Method.ParamCount; #else /* Mark this as a very SPECIAL method (_OSI) */ ObjDesc->Method.InfoFlags = ACPI_METHOD_INTERNAL_ONLY; ObjDesc->Method.Dispatch.Implementation = AcpiUtOsiImplementation; #endif break; case ACPI_TYPE_INTEGER: ObjDesc->Integer.Value = ACPI_TO_INTEGER (Val); break; case ACPI_TYPE_STRING: /* Build an object around the static string */ ObjDesc->String.Length = (UINT32) strlen (Val); ObjDesc->String.Pointer = Val; ObjDesc->Common.Flags |= AOPOBJ_STATIC_POINTER; break; case ACPI_TYPE_MUTEX: ObjDesc->Mutex.Node = NewNode; ObjDesc->Mutex.SyncLevel = (UINT8) (ACPI_TO_INTEGER (Val) - 1); /* Create a mutex */ Status = AcpiOsCreateMutex (&ObjDesc->Mutex.OsMutex); if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ObjDesc); goto UnlockAndExit; } /* Special case for ACPI Global Lock */ if (strcmp (InitVal->Name, "_GL_") == 0) { AcpiGbl_GlobalLockMutex = ObjDesc; /* Create additional counting semaphore for global lock */ Status = AcpiOsCreateSemaphore ( 1, 0, &AcpiGbl_GlobalLockSemaphore); if (ACPI_FAILURE (Status)) { AcpiUtRemoveReference (ObjDesc); goto UnlockAndExit; } } break; default: ACPI_ERROR ((AE_INFO, "Unsupported initial type value 0x%X", InitVal->Type)); AcpiUtRemoveReference (ObjDesc); ObjDesc = NULL; continue; } /* Store pointer to value descriptor in the Node */ Status = AcpiNsAttachObject (NewNode, ObjDesc, ObjDesc->Common.Type); /* Remove local reference to the object */ AcpiUtRemoveReference (ObjDesc); } } UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); /* Save a handle to "_GPE", it is always present */ if (ACPI_SUCCESS (Status)) { Status = AcpiNsGetNode (NULL, "\\_GPE", ACPI_NS_NO_UPSEARCH, &AcpiGbl_FadtGpeDevice); } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiNsLookup * * PARAMETERS: ScopeInfo - Current scope info block * Pathname - Search pathname, in internal format * (as represented in the AML stream) * Type - Type associated with name * InterpreterMode - IMODE_LOAD_PASS2 => add name if not found * Flags - Flags describing the search restrictions * WalkState - Current state of the walk * ReturnNode - Where the Node is placed (if found * or created successfully) * * RETURN: Status * * DESCRIPTION: Find or enter the passed name in the name space. * Log an error if name not found in Exec mode. * * MUTEX: Assumes namespace is locked. * ******************************************************************************/ ACPI_STATUS AcpiNsLookup ( ACPI_GENERIC_STATE *ScopeInfo, char *Pathname, ACPI_OBJECT_TYPE Type, ACPI_INTERPRETER_MODE InterpreterMode, UINT32 Flags, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE **ReturnNode) { ACPI_STATUS Status; char *Path = Pathname; char *ExternalPath; ACPI_NAMESPACE_NODE *PrefixNode; ACPI_NAMESPACE_NODE *CurrentNode = NULL; ACPI_NAMESPACE_NODE *ThisNode = NULL; UINT32 NumSegments; UINT32 NumCarats; ACPI_NAME SimpleName; ACPI_OBJECT_TYPE TypeToCheckFor; ACPI_OBJECT_TYPE ThisSearchType; UINT32 SearchParentFlag = ACPI_NS_SEARCH_PARENT; UINT32 LocalFlags; ACPI_INTERPRETER_MODE LocalInterpreterMode; ACPI_FUNCTION_TRACE (NsLookup); if (!ReturnNode) { return_ACPI_STATUS (AE_BAD_PARAMETER); } LocalFlags = Flags & ~(ACPI_NS_ERROR_IF_FOUND | ACPI_NS_OVERRIDE_IF_FOUND | ACPI_NS_SEARCH_PARENT); *ReturnNode = ACPI_ENTRY_NOT_FOUND; AcpiGbl_NsLookupCount++; if (!AcpiGbl_RootNode) { return_ACPI_STATUS (AE_NO_NAMESPACE); } /* Get the prefix scope. A null scope means use the root scope */ if ((!ScopeInfo) || (!ScopeInfo->Scope.Node)) { ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Null scope prefix, using root node (%p)\n", AcpiGbl_RootNode)); PrefixNode = AcpiGbl_RootNode; } else { PrefixNode = ScopeInfo->Scope.Node; if (ACPI_GET_DESCRIPTOR_TYPE (PrefixNode) != ACPI_DESC_TYPE_NAMED) { ACPI_ERROR ((AE_INFO, "%p is not a namespace node [%s]", PrefixNode, AcpiUtGetDescriptorName (PrefixNode))); return_ACPI_STATUS (AE_AML_INTERNAL); } if (!(Flags & ACPI_NS_PREFIX_IS_SCOPE)) { /* * This node might not be a actual "scope" node (such as a * Device/Method, etc.) It could be a Package or other object * node. Backup up the tree to find the containing scope node. */ while (!AcpiNsOpensScope (PrefixNode->Type) && PrefixNode->Type != ACPI_TYPE_ANY) { PrefixNode = PrefixNode->Parent; } } } /* Save type. TBD: may be no longer necessary */ TypeToCheckFor = Type; /* * Begin examination of the actual pathname */ if (!Pathname) { /* A Null NamePath is allowed and refers to the root */ NumSegments = 0; ThisNode = AcpiGbl_RootNode; Path = ""; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Null Pathname (Zero segments), Flags=%X\n", Flags)); } else { /* * Name pointer is valid (and must be in internal name format) * * Check for scope prefixes: * * As represented in the AML stream, a namepath consists of an * optional scope prefix followed by a name segment part. * * If present, the scope prefix is either a Root Prefix (in * which case the name is fully qualified), or one or more * Parent Prefixes (in which case the name's scope is relative * to the current scope). */ if (*Path == (UINT8) AML_ROOT_PREFIX) { /* Pathname is fully qualified, start from the root */ ThisNode = AcpiGbl_RootNode; SearchParentFlag = ACPI_NS_NO_UPSEARCH; /* Point to name segment part */ Path++; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Path is absolute from root [%p]\n", ThisNode)); } else { /* Pathname is relative to current scope, start there */ ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Searching relative to prefix scope [%4.4s] (%p)\n", AcpiUtGetNodeName (PrefixNode), PrefixNode)); /* * Handle multiple Parent Prefixes (carat) by just getting * the parent node for each prefix instance. */ ThisNode = PrefixNode; NumCarats = 0; while (*Path == (UINT8) AML_PARENT_PREFIX) { /* Name is fully qualified, no search rules apply */ SearchParentFlag = ACPI_NS_NO_UPSEARCH; /* * Point past this prefix to the name segment * part or the next Parent Prefix */ Path++; /* Backup to the parent node */ NumCarats++; ThisNode = ThisNode->Parent; if (!ThisNode) { /* * Current scope has no parent scope. Externalize * the internal path for error message. */ Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, Pathname, NULL, &ExternalPath); if (ACPI_SUCCESS (Status)) { ACPI_ERROR ((AE_INFO, "%s: Path has too many parent prefixes (^)", ExternalPath)); ACPI_FREE (ExternalPath); } return_ACPI_STATUS (AE_NOT_FOUND); } } if (SearchParentFlag == ACPI_NS_NO_UPSEARCH) { ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Search scope is [%4.4s], path has %u carat(s)\n", AcpiUtGetNodeName (ThisNode), NumCarats)); } } /* * Determine the number of ACPI name segments in this pathname. * * The segment part consists of either: * - A Null name segment (0) * - A DualNamePrefix followed by two 4-byte name segments * - A MultiNamePrefix followed by a byte indicating the * number of segments and the segments themselves. * - A single 4-byte name segment * * Examine the name prefix opcode, if any, to determine the number of * segments. */ switch (*Path) { case 0: /* * Null name after a root or parent prefixes. We already * have the correct target node and there are no name segments. */ NumSegments = 0; Type = ThisNode->Type; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Prefix-only Pathname (Zero name segments), Flags=%X\n", Flags)); break; case AML_DUAL_NAME_PREFIX: /* More than one NameSeg, search rules do not apply */ SearchParentFlag = ACPI_NS_NO_UPSEARCH; /* Two segments, point to first name segment */ NumSegments = 2; Path++; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Dual Pathname (2 segments, Flags=%X)\n", Flags)); break; case AML_MULTI_NAME_PREFIX: /* More than one NameSeg, search rules do not apply */ SearchParentFlag = ACPI_NS_NO_UPSEARCH; /* Extract segment count, point to first name segment */ Path++; NumSegments = (UINT32) (UINT8) *Path; Path++; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Multi Pathname (%u Segments, Flags=%X)\n", NumSegments, Flags)); break; default: /* * Not a Null name, no Dual or Multi prefix, hence there is * only one name segment and Pathname is already pointing to it. */ NumSegments = 1; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Simple Pathname (1 segment, Flags=%X)\n", Flags)); break; } ACPI_DEBUG_EXEC (AcpiNsPrintPathname (NumSegments, Path)); } /* * Search namespace for each segment of the name. Loop through and * verify (or add to the namespace) each name segment. * * The object type is significant only at the last name * segment. (We don't care about the types along the path, only * the type of the final target object.) */ ThisSearchType = ACPI_TYPE_ANY; CurrentNode = ThisNode; while (NumSegments && CurrentNode) { NumSegments--; if (!NumSegments) { /* This is the last segment, enable typechecking */ ThisSearchType = Type; /* * Only allow automatic parent search (search rules) if the caller * requested it AND we have a single, non-fully-qualified NameSeg */ if ((SearchParentFlag != ACPI_NS_NO_UPSEARCH) && (Flags & ACPI_NS_SEARCH_PARENT)) { LocalFlags |= ACPI_NS_SEARCH_PARENT; } /* Set error flag according to caller */ if (Flags & ACPI_NS_ERROR_IF_FOUND) { LocalFlags |= ACPI_NS_ERROR_IF_FOUND; } /* Set override flag according to caller */ if (Flags & ACPI_NS_OVERRIDE_IF_FOUND) { LocalFlags |= ACPI_NS_OVERRIDE_IF_FOUND; } } /* Handle opcodes that create a new NameSeg via a full NamePath */ LocalInterpreterMode = InterpreterMode; if ((Flags & ACPI_NS_PREFIX_MUST_EXIST) && (NumSegments > 0)) { /* Every element of the path must exist (except for the final NameSeg) */ LocalInterpreterMode = ACPI_IMODE_EXECUTE; } /* Extract one ACPI name from the front of the pathname */ ACPI_MOVE_32_TO_32 (&SimpleName, Path); /* Try to find the single (4 character) ACPI name */ Status = AcpiNsSearchAndEnter (SimpleName, WalkState, CurrentNode, LocalInterpreterMode, ThisSearchType, LocalFlags, &ThisNode); if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_FOUND) { #if !defined ACPI_ASL_COMPILER /* Note: iASL reports this error by itself, not needed here */ if (Flags & ACPI_NS_PREFIX_MUST_EXIST) { AcpiOsPrintf (ACPI_MSG_BIOS_ERROR "Object does not exist: %4.4s\n", (char *) &SimpleName); } #endif /* Name not found in ACPI namespace */ ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Name [%4.4s] not found in scope [%4.4s] %p\n", (char *) &SimpleName, (char *) &CurrentNode->Name, CurrentNode)); } #ifdef ACPI_EXEC_APP if ((Status == AE_ALREADY_EXISTS) && (ThisNode->Flags & ANOBJ_NODE_EARLY_INIT)) { ThisNode->Flags &= ~ANOBJ_NODE_EARLY_INIT; Status = AE_OK; } #endif #ifdef ACPI_ASL_COMPILER /* * If this ACPI name already exists within the namespace as an * external declaration, then mark the external as a conflicting * declaration and proceed to process the current node as if it did * not exist in the namespace. If this node is not processed as * normal, then it could cause improper namespace resolution * by failing to open a new scope. */ if (AcpiGbl_DisasmFlag && (Status == AE_ALREADY_EXISTS) && ((ThisNode->Flags & ANOBJ_IS_EXTERNAL) || (WalkState && WalkState->Opcode == AML_EXTERNAL_OP))) { ThisNode->Flags &= ~ANOBJ_IS_EXTERNAL; ThisNode->Type = (UINT8)ThisSearchType; if (WalkState->Opcode != AML_EXTERNAL_OP) { AcpiDmMarkExternalConflict (ThisNode); } break; } #endif *ReturnNode = ThisNode; return_ACPI_STATUS (Status); } /* More segments to follow? */ if (NumSegments > 0) { /* * If we have an alias to an object that opens a scope (such as a * device or processor), we need to dereference the alias here so * that we can access any children of the original node (via the * remaining segments). */ if (ThisNode->Type == ACPI_TYPE_LOCAL_ALIAS) { if (!ThisNode->Object) { return_ACPI_STATUS (AE_NOT_EXIST); } if (AcpiNsOpensScope (((ACPI_NAMESPACE_NODE *) ThisNode->Object)->Type)) { ThisNode = (ACPI_NAMESPACE_NODE *) ThisNode->Object; } } } /* Special handling for the last segment (NumSegments == 0) */ else { /* * Sanity typecheck of the target object: * * If 1) This is the last segment (NumSegments == 0) * 2) And we are looking for a specific type * (Not checking for TYPE_ANY) * 3) Which is not an alias * 4) Which is not a local type (TYPE_SCOPE) * 5) And the type of target object is known (not TYPE_ANY) * 6) And target object does not match what we are looking for * * Then we have a type mismatch. Just warn and ignore it. */ if ((TypeToCheckFor != ACPI_TYPE_ANY) && (TypeToCheckFor != ACPI_TYPE_LOCAL_ALIAS) && (TypeToCheckFor != ACPI_TYPE_LOCAL_METHOD_ALIAS) && (TypeToCheckFor != ACPI_TYPE_LOCAL_SCOPE) && (ThisNode->Type != ACPI_TYPE_ANY) && (ThisNode->Type != TypeToCheckFor)) { /* Complain about a type mismatch */ ACPI_WARNING ((AE_INFO, "NsLookup: Type mismatch on %4.4s (%s), searching for (%s)", ACPI_CAST_PTR (char, &SimpleName), AcpiUtGetTypeName (ThisNode->Type), AcpiUtGetTypeName (TypeToCheckFor))); } /* * If this is the last name segment and we are not looking for a * specific type, but the type of found object is known, use that * type to (later) see if it opens a scope. */ if (Type == ACPI_TYPE_ANY) { Type = ThisNode->Type; } } /* Point to next name segment and make this node current */ Path += ACPI_NAMESEG_SIZE; CurrentNode = ThisNode; } /* Always check if we need to open a new scope */ if (!(Flags & ACPI_NS_DONT_OPEN_SCOPE) && (WalkState)) { /* * If entry is a type which opens a scope, push the new scope on the * scope stack. */ if (AcpiNsOpensScope (Type)) { Status = AcpiDsScopeStackPush (ThisNode, Type, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } } #ifdef ACPI_EXEC_APP if (Flags & ACPI_NS_EARLY_INIT) { ThisNode->Flags |= ANOBJ_NODE_EARLY_INIT; } #endif *ReturnNode = ThisNode; return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/namespace/nsconvert.c0000775000175000017500000004027314773714132023355 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsconvert - Object conversions for objects returned by * predefined methods * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acinterp.h" #include "acpredef.h" #include "amlresrc.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsconvert") /******************************************************************************* * * FUNCTION: AcpiNsConvertToInteger * * PARAMETERS: OriginalObject - Object to be converted * ReturnObject - Where the new converted object is returned * * RETURN: Status. AE_OK if conversion was successful. * * DESCRIPTION: Attempt to convert a String/Buffer object to an Integer. * ******************************************************************************/ ACPI_STATUS AcpiNsConvertToInteger ( ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject) { ACPI_OPERAND_OBJECT *NewObject; ACPI_STATUS Status; UINT64 Value = 0; UINT32 i; switch (OriginalObject->Common.Type) { case ACPI_TYPE_STRING: /* String-to-Integer conversion */ Status = AcpiUtStrtoul64 (OriginalObject->String.Pointer, &Value); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_TYPE_BUFFER: /* Buffer-to-Integer conversion. Max buffer size is 64 bits. */ if (OriginalObject->Buffer.Length > 8) { return (AE_AML_OPERAND_TYPE); } /* Extract each buffer byte to create the integer */ for (i = 0; i < OriginalObject->Buffer.Length; i++) { Value |= ((UINT64) OriginalObject->Buffer.Pointer[i] << (i * 8)); } break; default: return (AE_AML_OPERAND_TYPE); } NewObject = AcpiUtCreateIntegerObject (Value); if (!NewObject) { return (AE_NO_MEMORY); } *ReturnObject = NewObject; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsConvertToString * * PARAMETERS: OriginalObject - Object to be converted * ReturnObject - Where the new converted object is returned * * RETURN: Status. AE_OK if conversion was successful. * * DESCRIPTION: Attempt to convert a Integer/Buffer object to a String. * ******************************************************************************/ ACPI_STATUS AcpiNsConvertToString ( ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject) { ACPI_OPERAND_OBJECT *NewObject; ACPI_SIZE Length; ACPI_STATUS Status; switch (OriginalObject->Common.Type) { case ACPI_TYPE_INTEGER: /* * Integer-to-String conversion. Commonly, convert * an integer of value 0 to a NULL string. The last element of * _BIF and _BIX packages occasionally need this fix. */ if (OriginalObject->Integer.Value == 0) { /* Allocate a new NULL string object */ NewObject = AcpiUtCreateStringObject (0); if (!NewObject) { return (AE_NO_MEMORY); } } else { Status = AcpiExConvertToString (OriginalObject, &NewObject, ACPI_IMPLICIT_CONVERT_HEX); if (ACPI_FAILURE (Status)) { return (Status); } } break; case ACPI_TYPE_BUFFER: /* * Buffer-to-String conversion. Use a ToString * conversion, no transform performed on the buffer data. The best * example of this is the _BIF method, where the string data from * the battery is often (incorrectly) returned as buffer object(s). */ Length = 0; while ((Length < OriginalObject->Buffer.Length) && (OriginalObject->Buffer.Pointer[Length])) { Length++; } /* Allocate a new string object */ NewObject = AcpiUtCreateStringObject (Length); if (!NewObject) { return (AE_NO_MEMORY); } /* * Copy the raw buffer data with no transform. String is already NULL * terminated at Length+1. */ memcpy (NewObject->String.Pointer, OriginalObject->Buffer.Pointer, Length); break; default: return (AE_AML_OPERAND_TYPE); } *ReturnObject = NewObject; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsConvertToBuffer * * PARAMETERS: OriginalObject - Object to be converted * ReturnObject - Where the new converted object is returned * * RETURN: Status. AE_OK if conversion was successful. * * DESCRIPTION: Attempt to convert a Integer/String/Package object to a Buffer. * ******************************************************************************/ ACPI_STATUS AcpiNsConvertToBuffer ( ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject) { ACPI_OPERAND_OBJECT *NewObject; ACPI_STATUS Status; ACPI_OPERAND_OBJECT **Elements; UINT32 *DwordBuffer; UINT32 Count; UINT32 i; switch (OriginalObject->Common.Type) { case ACPI_TYPE_INTEGER: /* * Integer-to-Buffer conversion. * Convert the Integer to a packed-byte buffer. _MAT and other * objects need this sometimes, if a read has been performed on a * Field object that is less than or equal to the global integer * size (32 or 64 bits). */ Status = AcpiExConvertToBuffer (OriginalObject, &NewObject); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_TYPE_STRING: /* String-to-Buffer conversion. Simple data copy */ NewObject = AcpiUtCreateBufferObject (OriginalObject->String.Length); if (!NewObject) { return (AE_NO_MEMORY); } memcpy (NewObject->Buffer.Pointer, OriginalObject->String.Pointer, OriginalObject->String.Length); break; case ACPI_TYPE_PACKAGE: /* * This case is often seen for predefined names that must return a * Buffer object with multiple DWORD integers within. For example, * _FDE and _GTM. The Package can be converted to a Buffer. */ /* All elements of the Package must be integers */ Elements = OriginalObject->Package.Elements; Count = OriginalObject->Package.Count; for (i = 0; i < Count; i++) { if ((!*Elements) || ((*Elements)->Common.Type != ACPI_TYPE_INTEGER)) { return (AE_AML_OPERAND_TYPE); } Elements++; } /* Create the new buffer object to replace the Package */ NewObject = AcpiUtCreateBufferObject (ACPI_MUL_4 (Count)); if (!NewObject) { return (AE_NO_MEMORY); } /* Copy the package elements (integers) to the buffer as DWORDs */ Elements = OriginalObject->Package.Elements; DwordBuffer = ACPI_CAST_PTR (UINT32, NewObject->Buffer.Pointer); for (i = 0; i < Count; i++) { *DwordBuffer = (UINT32) (*Elements)->Integer.Value; DwordBuffer++; Elements++; } break; default: return (AE_AML_OPERAND_TYPE); } *ReturnObject = NewObject; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsConvertToUnicode * * PARAMETERS: Scope - Namespace node for the method/object * OriginalObject - ASCII String Object to be converted * ReturnObject - Where the new converted object is returned * * RETURN: Status. AE_OK if conversion was successful. * * DESCRIPTION: Attempt to convert a String object to a Unicode string Buffer. * ******************************************************************************/ ACPI_STATUS AcpiNsConvertToUnicode ( ACPI_NAMESPACE_NODE *Scope, ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject) { ACPI_OPERAND_OBJECT *NewObject; char *AsciiString; UINT16 *UnicodeBuffer; UINT32 UnicodeLength; UINT32 i; if (!OriginalObject) { return (AE_OK); } /* If a Buffer was returned, it must be at least two bytes long */ if (OriginalObject->Common.Type == ACPI_TYPE_BUFFER) { if (OriginalObject->Buffer.Length < 2) { return (AE_AML_OPERAND_VALUE); } *ReturnObject = NULL; return (AE_OK); } /* * The original object is an ASCII string. Convert this string to * a unicode buffer. */ AsciiString = OriginalObject->String.Pointer; UnicodeLength = (OriginalObject->String.Length * 2) + 2; /* Create a new buffer object for the Unicode data */ NewObject = AcpiUtCreateBufferObject (UnicodeLength); if (!NewObject) { return (AE_NO_MEMORY); } UnicodeBuffer = ACPI_CAST_PTR (UINT16, NewObject->Buffer.Pointer); /* Convert ASCII to Unicode */ for (i = 0; i < OriginalObject->String.Length; i++) { UnicodeBuffer[i] = (UINT16) AsciiString[i]; } *ReturnObject = NewObject; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsConvertToResource * * PARAMETERS: Scope - Namespace node for the method/object * OriginalObject - Object to be converted * ReturnObject - Where the new converted object is returned * * RETURN: Status. AE_OK if conversion was successful * * DESCRIPTION: Attempt to convert a Integer object to a ResourceTemplate * Buffer. * ******************************************************************************/ ACPI_STATUS AcpiNsConvertToResource ( ACPI_NAMESPACE_NODE *Scope, ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject) { ACPI_OPERAND_OBJECT *NewObject; UINT8 *Buffer; /* * We can fix the following cases for an expected resource template: * 1. No return value (interpreter slack mode is disabled) * 2. A "Return (Zero)" statement * 3. A "Return empty buffer" statement * * We will return a buffer containing a single EndTag * resource descriptor. */ if (OriginalObject) { switch (OriginalObject->Common.Type) { case ACPI_TYPE_INTEGER: /* We can only repair an Integer==0 */ if (OriginalObject->Integer.Value) { return (AE_AML_OPERAND_TYPE); } break; case ACPI_TYPE_BUFFER: if (OriginalObject->Buffer.Length) { /* Additional checks can be added in the future */ *ReturnObject = NULL; return (AE_OK); } break; case ACPI_TYPE_STRING: default: return (AE_AML_OPERAND_TYPE); } } /* Create the new buffer object for the resource descriptor */ NewObject = AcpiUtCreateBufferObject (2); if (!NewObject) { return (AE_NO_MEMORY); } Buffer = ACPI_CAST_PTR (UINT8, NewObject->Buffer.Pointer); /* Initialize the Buffer with a single EndTag descriptor */ Buffer[0] = (ACPI_RESOURCE_NAME_END_TAG | ASL_RDESC_END_TAG_SIZE); Buffer[1] = 0x00; *ReturnObject = NewObject; return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsConvertToReference * * PARAMETERS: Scope - Namespace node for the method/object * OriginalObject - Object to be converted * ReturnObject - Where the new converted object is returned * * RETURN: Status. AE_OK if conversion was successful * * DESCRIPTION: Attempt to convert a Integer object to a ObjectReference. * Buffer. * ******************************************************************************/ ACPI_STATUS AcpiNsConvertToReference ( ACPI_NAMESPACE_NODE *Scope, ACPI_OPERAND_OBJECT *OriginalObject, ACPI_OPERAND_OBJECT **ReturnObject) { ACPI_OPERAND_OBJECT *NewObject = NULL; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_GENERIC_STATE ScopeInfo; char *Name; ACPI_FUNCTION_NAME (NsConvertToReference); /* Convert path into internal presentation */ Status = AcpiNsInternalizeName (OriginalObject->String.Pointer, &Name); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Find the namespace node */ ScopeInfo.Scope.Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Scope); Status = AcpiNsLookup (&ScopeInfo, Name, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, NULL, &Node); if (ACPI_FAILURE (Status)) { /* Check if we are resolving a named reference within a package */ ACPI_ERROR_NAMESPACE (&ScopeInfo, OriginalObject->String.Pointer, Status); goto ErrorExit; } /* Create and init a new internal ACPI object */ NewObject = AcpiUtCreateInternalObject (ACPI_TYPE_LOCAL_REFERENCE); if (!NewObject) { Status = AE_NO_MEMORY; goto ErrorExit; } NewObject->Reference.Node = Node; NewObject->Reference.Object = Node->Object; NewObject->Reference.Class = ACPI_REFCLASS_NAME; /* * Increase reference of the object if needed (the object is likely a * null for device nodes). */ AcpiUtAddReference (Node->Object); ErrorExit: ACPI_FREE (Name); *ReturnObject = NewObject; return (Status); } acpica-unix-20250404/source/components/namespace/nsalloc.c0000775000175000017500000003745714773714132023001 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: nsalloc - Namespace allocation and deletion utilities * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsalloc") /******************************************************************************* * * FUNCTION: AcpiNsCreateNode * * PARAMETERS: Name - Name of the new node (4 char ACPI name) * * RETURN: New namespace node (Null on failure) * * DESCRIPTION: Create a namespace node * ******************************************************************************/ ACPI_NAMESPACE_NODE * AcpiNsCreateNode ( UINT32 Name) { ACPI_NAMESPACE_NODE *Node; #ifdef ACPI_DBG_TRACK_ALLOCATIONS UINT32 Temp; #endif ACPI_FUNCTION_TRACE (NsCreateNode); Node = AcpiOsAcquireObject (AcpiGbl_NamespaceCache); if (!Node) { return_PTR (NULL); } ACPI_MEM_TRACKING (AcpiGbl_NsNodeList->TotalAllocated++); #ifdef ACPI_DBG_TRACK_ALLOCATIONS Temp = AcpiGbl_NsNodeList->TotalAllocated - AcpiGbl_NsNodeList->TotalFreed; if (Temp > AcpiGbl_NsNodeList->MaxOccupied) { AcpiGbl_NsNodeList->MaxOccupied = Temp; } #endif Node->Name.Integer = Name; ACPI_SET_DESCRIPTOR_TYPE (Node, ACPI_DESC_TYPE_NAMED); return_PTR (Node); } /******************************************************************************* * * FUNCTION: AcpiNsDeleteNode * * PARAMETERS: Node - Node to be deleted * * RETURN: None * * DESCRIPTION: Delete a namespace node. All node deletions must come through * here. Detaches any attached objects, including any attached * data. If a handler is associated with attached data, it is * invoked before the node is deleted. * ******************************************************************************/ void AcpiNsDeleteNode ( ACPI_NAMESPACE_NODE *Node) { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *NextDesc; ACPI_FUNCTION_NAME (NsDeleteNode); if (!Node) { return_VOID; } /* Detach an object if there is one */ AcpiNsDetachObject (Node); /* * Delete an attached data object list if present (objects that were * attached via AcpiAttachData). Note: After any normal object is * detached above, the only possible remaining object(s) are data * objects, in a linked list. */ ObjDesc = Node->Object; while (ObjDesc && (ObjDesc->Common.Type == ACPI_TYPE_LOCAL_DATA)) { /* Invoke the attached data deletion handler if present */ if (ObjDesc->Data.Handler) { ObjDesc->Data.Handler (Node, ObjDesc->Data.Pointer); } NextDesc = ObjDesc->Common.NextObject; AcpiUtRemoveReference (ObjDesc); ObjDesc = NextDesc; } /* Special case for the statically allocated root node */ if (Node == AcpiGbl_RootNode) { return; } /* Now we can delete the node */ (void) AcpiOsReleaseObject (AcpiGbl_NamespaceCache, Node); ACPI_MEM_TRACKING (AcpiGbl_NsNodeList->TotalFreed++); ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "Node %p, Remaining %X\n", Node, AcpiGbl_CurrentNodeCount)); } /******************************************************************************* * * FUNCTION: AcpiNsRemoveNode * * PARAMETERS: Node - Node to be removed/deleted * * RETURN: None * * DESCRIPTION: Remove (unlink) and delete a namespace node * ******************************************************************************/ void AcpiNsRemoveNode ( ACPI_NAMESPACE_NODE *Node) { ACPI_NAMESPACE_NODE *ParentNode; ACPI_NAMESPACE_NODE *PrevNode; ACPI_NAMESPACE_NODE *NextNode; ACPI_FUNCTION_TRACE_PTR (NsRemoveNode, Node); ParentNode = Node->Parent; PrevNode = NULL; NextNode = ParentNode->Child; /* Find the node that is the previous peer in the parent's child list */ while (NextNode != Node) { PrevNode = NextNode; NextNode = NextNode->Peer; } if (PrevNode) { /* Node is not first child, unlink it */ PrevNode->Peer = Node->Peer; } else { /* * Node is first child (has no previous peer). * Link peer list to parent */ ParentNode->Child = Node->Peer; } /* Delete the node and any attached objects */ AcpiNsDeleteNode (Node); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiNsInstallNode * * PARAMETERS: WalkState - Current state of the walk * ParentNode - The parent of the new Node * Node - The new Node to install * Type - ACPI object type of the new Node * * RETURN: None * * DESCRIPTION: Initialize a new namespace node and install it amongst * its peers. * * Note: Current namespace lookup is linear search. This appears * to be sufficient as namespace searches consume only a small * fraction of the execution time of the ACPI subsystem. * ******************************************************************************/ void AcpiNsInstallNode ( ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *ParentNode, /* Parent */ ACPI_NAMESPACE_NODE *Node, /* New Child*/ ACPI_OBJECT_TYPE Type) { ACPI_OWNER_ID OwnerId = 0; ACPI_NAMESPACE_NODE *ChildNode; ACPI_FUNCTION_TRACE (NsInstallNode); if (WalkState) { /* * Get the owner ID from the Walk state. The owner ID is used to * track table deletion and deletion of objects created by methods. */ OwnerId = WalkState->OwnerId; if ((WalkState->MethodDesc) && (ParentNode != WalkState->MethodNode)) { /* * A method is creating a new node that is not a child of the * method (it is non-local). Mark the executing method as having * modified the namespace. This is used for cleanup when the * method exits. */ WalkState->MethodDesc->Method.InfoFlags |= ACPI_METHOD_MODIFIED_NAMESPACE; } } /* Link the new entry into the parent and existing children */ Node->Peer = NULL; Node->Parent = ParentNode; ChildNode = ParentNode->Child; if (!ChildNode) { ParentNode->Child = Node; } else { /* Add node to the end of the peer list */ while (ChildNode->Peer) { ChildNode = ChildNode->Peer; } ChildNode->Peer = Node; } /* Init the new entry */ Node->OwnerId = OwnerId; Node->Type = (UINT8) Type; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "%4.4s (%s) [Node %p Owner %3.3X] added to %4.4s (%s) [Node %p]\n", AcpiUtGetNodeName (Node), AcpiUtGetTypeName (Node->Type), Node, OwnerId, AcpiUtGetNodeName (ParentNode), AcpiUtGetTypeName (ParentNode->Type), ParentNode)); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiNsDeleteChildren * * PARAMETERS: ParentNode - Delete this objects children * * RETURN: None. * * DESCRIPTION: Delete all children of the parent object. In other words, * deletes a "scope". * ******************************************************************************/ void AcpiNsDeleteChildren ( ACPI_NAMESPACE_NODE *ParentNode) { ACPI_NAMESPACE_NODE *NextNode; ACPI_NAMESPACE_NODE *NodeToDelete; ACPI_FUNCTION_TRACE_PTR (NsDeleteChildren, ParentNode); if (!ParentNode) { return_VOID; } /* Deallocate all children at this level */ NextNode = ParentNode->Child; while (NextNode) { /* Grandchildren should have all been deleted already */ if (NextNode->Child) { ACPI_ERROR ((AE_INFO, "Found a grandchild! P=%p C=%p", ParentNode, NextNode)); } /* * Delete this child node and move on to the next child in the list. * No need to unlink the node since we are deleting the entire branch. */ NodeToDelete = NextNode; NextNode = NextNode->Peer; AcpiNsDeleteNode (NodeToDelete); } /* Clear the parent's child pointer */ ParentNode->Child = NULL; return_VOID; } /******************************************************************************* * * FUNCTION: AcpiNsDeleteNamespaceSubtree * * PARAMETERS: ParentNode - Root of the subtree to be deleted * * RETURN: None. * * DESCRIPTION: Delete a subtree of the namespace. This includes all objects * stored within the subtree. * ******************************************************************************/ void AcpiNsDeleteNamespaceSubtree ( ACPI_NAMESPACE_NODE *ParentNode) { ACPI_NAMESPACE_NODE *ChildNode = NULL; UINT32 Level = 1; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (NsDeleteNamespaceSubtree); if (!ParentNode) { return_VOID; } /* Lock namespace for possible update */ Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_VOID; } /* * Traverse the tree of objects until we bubble back up * to where we started. */ while (Level > 0) { /* Get the next node in this scope (NULL if none) */ ChildNode = AcpiNsGetNextNode (ParentNode, ChildNode); if (ChildNode) { /* Found a child node - detach any attached object */ AcpiNsDetachObject (ChildNode); /* Check if this node has any children */ if (ChildNode->Child) { /* * There is at least one child of this node, * visit the node */ Level++; ParentNode = ChildNode; ChildNode = NULL; } } else { /* * No more children of this parent node. * Move up to the grandparent. */ Level--; /* * Now delete all of the children of this parent * all at the same time. */ AcpiNsDeleteChildren (ParentNode); /* New "last child" is this parent node */ ChildNode = ParentNode; /* Move up the tree to the grandparent */ ParentNode = ParentNode->Parent; } } (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiNsDeleteNamespaceByOwner * * PARAMETERS: OwnerId - All nodes with this owner will be deleted * * RETURN: Status * * DESCRIPTION: Delete entries within the namespace that are owned by a * specific ID. Used to delete entire ACPI tables. All * reference counts are updated. * * MUTEX: Locks namespace during deletion walk. * ******************************************************************************/ void AcpiNsDeleteNamespaceByOwner ( ACPI_OWNER_ID OwnerId) { ACPI_NAMESPACE_NODE *ChildNode; ACPI_NAMESPACE_NODE *DeletionNode; ACPI_NAMESPACE_NODE *ParentNode; UINT32 Level; ACPI_STATUS Status; ACPI_FUNCTION_TRACE_U32 (NsDeleteNamespaceByOwner, OwnerId); if (OwnerId == 0) { return_VOID; } /* Lock namespace for possible update */ Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_VOID; } DeletionNode = NULL; ParentNode = AcpiGbl_RootNode; ChildNode = NULL; Level = 1; /* * Traverse the tree of nodes until we bubble back up * to where we started. */ while (Level > 0) { /* * Get the next child of this parent node. When ChildNode is NULL, * the first child of the parent is returned */ ChildNode = AcpiNsGetNextNode (ParentNode, ChildNode); if (DeletionNode) { AcpiNsDeleteChildren (DeletionNode); AcpiNsRemoveNode (DeletionNode); DeletionNode = NULL; } if (ChildNode) { if (ChildNode->OwnerId == OwnerId) { /* Found a matching child node - detach any attached object */ AcpiNsDetachObject (ChildNode); } /* Check if this node has any children */ if (ChildNode->Child) { /* * There is at least one child of this node, * visit the node */ Level++; ParentNode = ChildNode; ChildNode = NULL; } else if (ChildNode->OwnerId == OwnerId) { DeletionNode = ChildNode; } } else { /* * No more children of this parent node. * Move up to the grandparent. */ Level--; if (Level != 0) { if (ParentNode->OwnerId == OwnerId) { DeletionNode = ParentNode; } } /* New "last child" is this parent node */ ChildNode = ParentNode; /* Move up the tree to the grandparent */ ParentNode = ParentNode->Parent; } } (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_VOID; } acpica-unix-20250404/source/components/namespace/nsarguments.c0000775000175000017500000002640714773714132023705 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsarguments - Validation of args for ACPI predefined methods * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acpredef.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsarguments") /******************************************************************************* * * FUNCTION: AcpiNsCheckArgumentTypes * * PARAMETERS: Info - Method execution information block * * RETURN: None * * DESCRIPTION: Check the incoming argument count and all argument types * against the argument type list for a predefined name. * ******************************************************************************/ void AcpiNsCheckArgumentTypes ( ACPI_EVALUATE_INFO *Info) { UINT16 ArgTypeList; UINT8 ArgCount; UINT8 ArgType; UINT8 UserArgType; UINT32 i; /* * If not a predefined name, cannot typecheck args, because * we have no idea what argument types are expected. * Also, ignore typecheck if warnings/errors if this method * has already been evaluated at least once -- in order * to suppress repetitive messages. */ if (!Info->Predefined || (Info->Node->Flags & ANOBJ_EVALUATED)) { return; } ArgTypeList = Info->Predefined->Info.ArgumentList; ArgCount = METHOD_GET_ARG_COUNT (ArgTypeList); /* Typecheck all arguments */ for (i = 0; ((i < ArgCount) && (i < Info->ParamCount)); i++) { ArgType = METHOD_GET_NEXT_TYPE (ArgTypeList); UserArgType = Info->Parameters[i]->Common.Type; /* No typechecking for ACPI_TYPE_ANY */ if ((UserArgType != ArgType) && (ArgType != ACPI_TYPE_ANY)) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, ACPI_WARN_ALWAYS, "Argument #%u type mismatch - " "Found [%s], ACPI requires [%s]", (i + 1), AcpiUtGetTypeName (UserArgType), AcpiUtGetTypeName (ArgType))); /* Prevent any additional typechecking for this method */ Info->Node->Flags |= ANOBJ_EVALUATED; } } } /******************************************************************************* * * FUNCTION: AcpiNsCheckAcpiCompliance * * PARAMETERS: Pathname - Full pathname to the node (for error msgs) * Node - Namespace node for the method/object * Predefined - Pointer to entry in predefined name table * * RETURN: None * * DESCRIPTION: Check that the declared parameter count (in ASL/AML) for a * predefined name is what is expected (matches what is defined in * the ACPI specification for this predefined name.) * ******************************************************************************/ void AcpiNsCheckAcpiCompliance ( char *Pathname, ACPI_NAMESPACE_NODE *Node, const ACPI_PREDEFINED_INFO *Predefined) { UINT32 AmlParamCount; UINT32 RequiredParamCount; if (!Predefined || (Node->Flags & ANOBJ_EVALUATED)) { return; } /* Get the ACPI-required arg count from the predefined info table */ RequiredParamCount = METHOD_GET_ARG_COUNT (Predefined->Info.ArgumentList); /* * If this object is not a control method, we can check if the ACPI * spec requires that it be a method. */ if (Node->Type != ACPI_TYPE_METHOD) { if (RequiredParamCount > 0) { /* Object requires args, must be implemented as a method */ ACPI_BIOS_ERROR_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "Object (%s) must be a control method with %u arguments", AcpiUtGetTypeName (Node->Type), RequiredParamCount)); } else if (!RequiredParamCount && !Predefined->Info.ExpectedBtypes) { /* Object requires no args and no return value, must be a method */ ACPI_BIOS_ERROR_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "Object (%s) must be a control method " "with no arguments and no return value", AcpiUtGetTypeName (Node->Type))); } return; } /* * This is a control method. * Check that the ASL/AML-defined parameter count for this method * matches the ACPI-required parameter count * * Some methods are allowed to have a "minimum" number of args (_SCP) * because their definition in ACPI has changed over time. * * Note: These are BIOS errors in the declaration of the object */ AmlParamCount = Node->Object->Method.ParamCount; if (AmlParamCount < RequiredParamCount) { ACPI_BIOS_ERROR_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "Insufficient arguments - " "ASL declared %u, ACPI requires %u", AmlParamCount, RequiredParamCount)); } else if ((AmlParamCount > RequiredParamCount) && !(Predefined->Info.ArgumentList & ARG_COUNT_IS_MINIMUM)) { ACPI_BIOS_ERROR_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "Excess arguments - " "ASL declared %u, ACPI requires %u", AmlParamCount, RequiredParamCount)); } } /******************************************************************************* * * FUNCTION: AcpiNsCheckArgumentCount * * PARAMETERS: Pathname - Full pathname to the node (for error msgs) * Node - Namespace node for the method/object * UserParamCount - Number of args passed in by the caller * Predefined - Pointer to entry in predefined name table * * RETURN: None * * DESCRIPTION: Check that incoming argument count matches the declared * parameter count (in the ASL/AML) for an object. * ******************************************************************************/ void AcpiNsCheckArgumentCount ( char *Pathname, ACPI_NAMESPACE_NODE *Node, UINT32 UserParamCount, const ACPI_PREDEFINED_INFO *Predefined) { UINT32 AmlParamCount; UINT32 RequiredParamCount; if (Node->Flags & ANOBJ_EVALUATED) { return; } if (!Predefined) { /* * Not a predefined name. Check the incoming user argument count * against the count that is specified in the method/object. */ if (Node->Type != ACPI_TYPE_METHOD) { if (UserParamCount) { ACPI_INFO_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "%u arguments were passed to a non-method ACPI object (%s)", UserParamCount, AcpiUtGetTypeName (Node->Type))); } return; } /* * This is a control method. Check the parameter count. * We can only check the incoming argument count against the * argument count declared for the method in the ASL/AML. * * Emit a message if too few or too many arguments have been passed * by the caller. * * Note: Too many arguments will not cause the method to * fail. However, the method will fail if there are too few * arguments and the method attempts to use one of the missing ones. */ AmlParamCount = Node->Object->Method.ParamCount; if (UserParamCount < AmlParamCount) { ACPI_WARN_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "Insufficient arguments - " "Caller passed %u, method requires %u", UserParamCount, AmlParamCount)); } else if (UserParamCount > AmlParamCount) { ACPI_INFO_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "Excess arguments - " "Caller passed %u, method requires %u", UserParamCount, AmlParamCount)); } return; } /* * This is a predefined name. Validate the user-supplied parameter * count against the ACPI specification. We don't validate against * the method itself because what is important here is that the * caller is in conformance with the spec. (The arg count for the * method was checked against the ACPI spec earlier.) * * Some methods are allowed to have a "minimum" number of args (_SCP) * because their definition in ACPI has changed over time. */ RequiredParamCount = METHOD_GET_ARG_COUNT (Predefined->Info.ArgumentList); if (UserParamCount < RequiredParamCount) { ACPI_WARN_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "Insufficient arguments - " "Caller passed %u, ACPI requires %u", UserParamCount, RequiredParamCount)); } else if ((UserParamCount > RequiredParamCount) && !(Predefined->Info.ArgumentList & ARG_COUNT_IS_MINIMUM)) { ACPI_INFO_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "Excess arguments - " "Caller passed %u, ACPI requires %u", UserParamCount, RequiredParamCount)); } } acpica-unix-20250404/source/components/namespace/nspredef.c0000775000175000017500000003410514773714132023137 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nspredef - Validation of ACPI predefined methods and objects * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define ACPI_CREATE_PREDEFINED_TABLE #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acpredef.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nspredef") /******************************************************************************* * * This module validates predefined ACPI objects that appear in the namespace, * at the time they are evaluated (via AcpiEvaluateObject). The purpose of this * validation is to detect problems with BIOS-exposed predefined ACPI objects * before the results are returned to the ACPI-related drivers. * * There are several areas that are validated: * * 1) The number of input arguments as defined by the method/object in the * ASL is validated against the ACPI specification. * 2) The type of the return object (if any) is validated against the ACPI * specification. * 3) For returned package objects, the count of package elements is * validated, as well as the type of each package element. Nested * packages are supported. * * For any problems found, a warning message is issued. * ******************************************************************************/ /* Local prototypes */ static ACPI_STATUS AcpiNsCheckReference ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT *ReturnObject); static UINT32 AcpiNsGetBitmappedType ( ACPI_OPERAND_OBJECT *ReturnObject); /******************************************************************************* * * FUNCTION: AcpiNsCheckReturnValue * * PARAMETERS: Node - Namespace node for the method/object * Info - Method execution information block * UserParamCount - Number of parameters actually passed * ReturnStatus - Status from the object evaluation * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status * * DESCRIPTION: Check the value returned from a predefined name. * ******************************************************************************/ ACPI_STATUS AcpiNsCheckReturnValue ( ACPI_NAMESPACE_NODE *Node, ACPI_EVALUATE_INFO *Info, UINT32 UserParamCount, ACPI_STATUS ReturnStatus, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_STATUS Status; const ACPI_PREDEFINED_INFO *Predefined; ACPI_FUNCTION_TRACE (NsCheckReturnValue); /* If not a predefined name, we cannot validate the return object */ Predefined = Info->Predefined; if (!Predefined) { return_ACPI_STATUS (AE_OK); } /* * If the method failed or did not actually return an object, we cannot * validate the return object */ if ((ReturnStatus != AE_OK) && (ReturnStatus != AE_CTRL_RETURN_VALUE)) { return_ACPI_STATUS (AE_OK); } /* * Return value validation and possible repair. * * 1) Don't perform return value validation/repair if this feature * has been disabled via a global option. * * 2) We have a return value, but if one wasn't expected, just exit, * this is not a problem. For example, if the "Implicit Return" * feature is enabled, methods will always return a value. * * 3) If the return value can be of any type, then we cannot perform * any validation, just exit. */ if (AcpiGbl_DisableAutoRepair || (!Predefined->Info.ExpectedBtypes) || (Predefined->Info.ExpectedBtypes == ACPI_RTYPE_ALL)) { return_ACPI_STATUS (AE_OK); } /* * Check that the type of the main return object is what is expected * for this predefined name */ Status = AcpiNsCheckObjectType (Info, ReturnObjectPtr, Predefined->Info.ExpectedBtypes, ACPI_NOT_PACKAGE_ELEMENT); if (ACPI_FAILURE (Status)) { goto Exit; } /* * * 4) If there is no return value and it is optional, just return * AE_OK (_WAK). */ if (!(*ReturnObjectPtr)) { goto Exit; } /* * For returned Package objects, check the type of all sub-objects. * Note: Package may have been newly created by call above. */ if ((*ReturnObjectPtr)->Common.Type == ACPI_TYPE_PACKAGE) { Info->ParentPackage = *ReturnObjectPtr; Status = AcpiNsCheckPackage (Info, ReturnObjectPtr); if (ACPI_FAILURE (Status)) { /* We might be able to fix some errors */ if ((Status != AE_AML_OPERAND_TYPE) && (Status != AE_AML_OPERAND_VALUE)) { goto Exit; } } } /* * The return object was OK, or it was successfully repaired above. * Now make some additional checks such as verifying that package * objects are sorted correctly (if required) or buffer objects have * the correct data width (bytes vs. dwords). These repairs are * performed on a per-name basis, i.e., the code is specific to * particular predefined names. */ Status = AcpiNsComplexRepairs (Info, Node, Status, ReturnObjectPtr); Exit: /* * If the object validation failed or if we successfully repaired one * or more objects, mark the parent node to suppress further warning * messages during the next evaluation of the same method/object. */ if (ACPI_FAILURE (Status) || (Info->ReturnFlags & ACPI_OBJECT_REPAIRED)) { Node->Flags |= ANOBJ_EVALUATED; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiNsCheckObjectType * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * ExpectedBtypes - Bitmap of expected return type(s) * PackageIndex - Index of object within parent package (if * applicable - ACPI_NOT_PACKAGE_ELEMENT * otherwise) * * RETURN: Status * * DESCRIPTION: Check the type of the return object against the expected object * type(s). Use of Btype allows multiple expected object types. * ******************************************************************************/ ACPI_STATUS AcpiNsCheckObjectType ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr, UINT32 ExpectedBtypes, UINT32 PackageIndex) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_STATUS Status = AE_OK; char TypeBuffer[96]; /* Room for 10 types */ /* A Namespace node should not get here, but make sure */ if (ReturnObject && ACPI_GET_DESCRIPTOR_TYPE (ReturnObject) == ACPI_DESC_TYPE_NAMED) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Invalid return type - Found a Namespace node [%4.4s] type %s", ReturnObject->Node.Name.Ascii, AcpiUtGetTypeName (ReturnObject->Node.Type))); return (AE_AML_OPERAND_TYPE); } /* * Convert the object type (ACPI_TYPE_xxx) to a bitmapped object type. * The bitmapped type allows multiple possible return types. * * Note, the cases below must handle all of the possible types returned * from all of the predefined names (including elements of returned * packages) */ Info->ReturnBtype = AcpiNsGetBitmappedType (ReturnObject); if (Info->ReturnBtype == ACPI_RTYPE_ANY) { /* Not one of the supported objects, must be incorrect */ goto TypeErrorExit; } /* For reference objects, check that the reference type is correct */ if ((Info->ReturnBtype & ExpectedBtypes) == ACPI_RTYPE_REFERENCE) { Status = AcpiNsCheckReference (Info, ReturnObject); return (Status); } /* Attempt simple repair of the returned object if necessary */ Status = AcpiNsSimpleRepair (Info, ExpectedBtypes, PackageIndex, ReturnObjectPtr); if (ACPI_SUCCESS (Status)) { return (AE_OK); /* Successful repair */ } TypeErrorExit: /* Create a string with all expected types for this predefined object */ AcpiUtGetExpectedReturnTypes (TypeBuffer, ExpectedBtypes); if (!ReturnObject) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Expected return object of type %s", TypeBuffer)); } else if (PackageIndex == ACPI_NOT_PACKAGE_ELEMENT) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Return type mismatch - found %s, expected %s", AcpiUtGetObjectTypeName (ReturnObject), TypeBuffer)); } else { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Return Package type mismatch at index %u - " "found %s, expected %s", PackageIndex, AcpiUtGetObjectTypeName (ReturnObject), TypeBuffer)); } return (AE_AML_OPERAND_TYPE); } /******************************************************************************* * * FUNCTION: AcpiNsCheckReference * * PARAMETERS: Info - Method execution information block * ReturnObject - Object returned from the evaluation of a * method or object * * RETURN: Status * * DESCRIPTION: Check a returned reference object for the correct reference * type. The only reference type that can be returned from a * predefined method is a named reference. All others are invalid. * ******************************************************************************/ static ACPI_STATUS AcpiNsCheckReference ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT *ReturnObject) { /* * Check the reference object for the correct reference type (opcode). * The only type of reference that can be converted to an ACPI_OBJECT is * a reference to a named object (reference class: NAME) */ if (ReturnObject->Reference.Class == ACPI_REFCLASS_NAME) { return (AE_OK); } ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Return type mismatch - unexpected reference object type [%s] %2.2X", AcpiUtGetReferenceName (ReturnObject), ReturnObject->Reference.Class)); return (AE_AML_OPERAND_TYPE); } /******************************************************************************* * * FUNCTION: AcpiNsGetBitmappedType * * PARAMETERS: ReturnObject - Object returned from method/obj evaluation * * RETURN: Object return type. ACPI_RTYPE_ANY indicates that the object * type is not supported. ACPI_RTYPE_NONE indicates that no * object was returned (ReturnObject is NULL). * * DESCRIPTION: Convert object type into a bitmapped object return type. * ******************************************************************************/ static UINT32 AcpiNsGetBitmappedType ( ACPI_OPERAND_OBJECT *ReturnObject) { UINT32 ReturnBtype; if (!ReturnObject) { return (ACPI_RTYPE_NONE); } /* Map ACPI_OBJECT_TYPE to internal bitmapped type */ switch (ReturnObject->Common.Type) { case ACPI_TYPE_INTEGER: ReturnBtype = ACPI_RTYPE_INTEGER; break; case ACPI_TYPE_BUFFER: ReturnBtype = ACPI_RTYPE_BUFFER; break; case ACPI_TYPE_STRING: ReturnBtype = ACPI_RTYPE_STRING; break; case ACPI_TYPE_PACKAGE: ReturnBtype = ACPI_RTYPE_PACKAGE; break; case ACPI_TYPE_LOCAL_REFERENCE: ReturnBtype = ACPI_RTYPE_REFERENCE; break; default: /* Not one of the supported objects, must be incorrect */ ReturnBtype = ACPI_RTYPE_ANY; break; } return (ReturnBtype); } acpica-unix-20250404/source/components/namespace/nsdump.c0000775000175000017500000006342514773714132022646 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsdump - table dumping routines for debug * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acoutput.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsdump") /* Local prototypes */ #ifdef ACPI_OBSOLETE_FUNCTIONS void AcpiNsDumpRootDevices ( void); static ACPI_STATUS AcpiNsDumpOneDevice ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); #endif #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) static ACPI_STATUS AcpiNsDumpOneObjectPath ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); static ACPI_STATUS AcpiNsGetMaxDepth ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); /******************************************************************************* * * FUNCTION: AcpiNsPrintPathname * * PARAMETERS: NumSegments - Number of ACPI name segments * Pathname - The compressed (internal) path * * RETURN: None * * DESCRIPTION: Print an object's full namespace pathname * ******************************************************************************/ void AcpiNsPrintPathname ( UINT32 NumSegments, const char *Pathname) { UINT32 i; ACPI_FUNCTION_NAME (NsPrintPathname); /* Check if debug output enabled */ if (!ACPI_IS_DEBUG_ENABLED (ACPI_LV_NAMES, ACPI_NAMESPACE)) { return; } /* Print the entire name */ ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "[")); while (NumSegments) { for (i = 0; i < 4; i++) { isprint ((int) Pathname[i]) ? AcpiOsPrintf ("%c", Pathname[i]) : AcpiOsPrintf ("?"); } Pathname += ACPI_NAMESEG_SIZE; NumSegments--; if (NumSegments) { AcpiOsPrintf ("."); } } AcpiOsPrintf ("]\n"); } #ifdef ACPI_OBSOLETE_FUNCTIONS /* Not used at this time, perhaps later */ /******************************************************************************* * * FUNCTION: AcpiNsDumpPathname * * PARAMETERS: Handle - Object * Msg - Prefix message * Level - Desired debug level * Component - Caller's component ID * * RETURN: None * * DESCRIPTION: Print an object's full namespace pathname * Manages allocation/freeing of a pathname buffer * ******************************************************************************/ void AcpiNsDumpPathname ( ACPI_HANDLE Handle, const char *Msg, UINT32 Level, UINT32 Component) { ACPI_FUNCTION_TRACE (NsDumpPathname); /* Do this only if the requested debug level and component are enabled */ if (!ACPI_IS_DEBUG_ENABLED (Level, Component)) { return_VOID; } /* Convert handle to a full pathname and print it (with supplied message) */ AcpiNsPrintNodePathname (Handle, Msg); AcpiOsPrintf ("\n"); return_VOID; } #endif /******************************************************************************* * * FUNCTION: AcpiNsDumpOneObject * * PARAMETERS: ObjHandle - Node to be dumped * Level - Nesting level of the handle * Context - Passed into WalkNamespace * ReturnValue - Not used * * RETURN: Status * * DESCRIPTION: Dump a single Node * This procedure is a UserFunction called by AcpiNsWalkNamespace. * ******************************************************************************/ ACPI_STATUS AcpiNsDumpOneObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_WALK_INFO *Info = (ACPI_WALK_INFO *) Context; ACPI_NAMESPACE_NODE *ThisNode; ACPI_OPERAND_OBJECT *ObjDesc = NULL; ACPI_OBJECT_TYPE ObjType; ACPI_OBJECT_TYPE Type; UINT32 BytesToDump; UINT32 DbgLevel; UINT32 i; ACPI_FUNCTION_NAME (NsDumpOneObject); /* Is output enabled? */ if (!(AcpiDbgLevel & Info->DebugLevel)) { return (AE_OK); } if (!ObjHandle) { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Null object handle\n")); return (AE_OK); } ThisNode = AcpiNsValidateHandle (ObjHandle); if (!ThisNode) { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Invalid object handle %p\n", ObjHandle)); return (AE_OK); } Type = ThisNode->Type; Info->Count++; /* Check if the owner matches */ if ((Info->OwnerId != ACPI_OWNER_ID_MAX) && (Info->OwnerId != ThisNode->OwnerId)) { return (AE_OK); } if (!(Info->DisplayType & ACPI_DISPLAY_SHORT)) { /* Indent the object according to the level */ AcpiOsPrintf ("%2d%*s", (UINT32) Level - 1, (int) Level * 2, " "); /* Check the node type and name */ if (Type > ACPI_TYPE_LOCAL_MAX) { ACPI_WARNING ((AE_INFO, "Invalid ACPI Object Type 0x%08X", Type)); } AcpiOsPrintf ("%4.4s", AcpiUtGetNodeName (ThisNode)); } /* Now we can print out the pertinent information */ AcpiOsPrintf (" %-12s %p %3.3X ", AcpiUtGetTypeName (Type), ThisNode, ThisNode->OwnerId); DbgLevel = AcpiDbgLevel; AcpiDbgLevel = 0; ObjDesc = AcpiNsGetAttachedObject (ThisNode); AcpiDbgLevel = DbgLevel; /* Temp nodes are those nodes created by a control method */ if (ThisNode->Flags & ANOBJ_TEMPORARY) { AcpiOsPrintf ("(T) "); } switch (Info->DisplayType & ACPI_DISPLAY_MASK) { case ACPI_DISPLAY_SUMMARY: if (!ObjDesc) { /* No attached object. Some types should always have an object */ switch (Type) { case ACPI_TYPE_INTEGER: case ACPI_TYPE_PACKAGE: case ACPI_TYPE_BUFFER: case ACPI_TYPE_STRING: case ACPI_TYPE_METHOD: AcpiOsPrintf (""); break; default: break; } AcpiOsPrintf ("\n"); return (AE_OK); } switch (Type) { case ACPI_TYPE_PROCESSOR: AcpiOsPrintf ("ID %02X Len %02X Addr %8.8X%8.8X\n", ObjDesc->Processor.ProcId, ObjDesc->Processor.Length, ACPI_FORMAT_UINT64 (ObjDesc->Processor.Address)); break; case ACPI_TYPE_DEVICE: AcpiOsPrintf ("Notify Object: %p\n", ObjDesc); break; case ACPI_TYPE_METHOD: AcpiOsPrintf ("Args %X Len %.4X Aml %p\n", (UINT32) ObjDesc->Method.ParamCount, ObjDesc->Method.AmlLength, ObjDesc->Method.AmlStart); break; case ACPI_TYPE_INTEGER: AcpiOsPrintf ("= %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value)); break; case ACPI_TYPE_PACKAGE: if (ObjDesc->Common.Flags & AOPOBJ_DATA_VALID) { AcpiOsPrintf ("Elements %.2X\n", ObjDesc->Package.Count); } else { AcpiOsPrintf ("[Length not yet evaluated]\n"); } break; case ACPI_TYPE_BUFFER: if (ObjDesc->Common.Flags & AOPOBJ_DATA_VALID) { AcpiOsPrintf ("Len %.2X", ObjDesc->Buffer.Length); /* Dump some of the buffer */ if (ObjDesc->Buffer.Length > 0) { AcpiOsPrintf (" ="); for (i = 0; (i < ObjDesc->Buffer.Length && i < 12); i++) { AcpiOsPrintf (" %2.2X", ObjDesc->Buffer.Pointer[i]); } } AcpiOsPrintf ("\n"); } else { AcpiOsPrintf ("[Length not yet evaluated]\n"); } break; case ACPI_TYPE_STRING: AcpiOsPrintf ("Len %.2X ", ObjDesc->String.Length); AcpiUtPrintString (ObjDesc->String.Pointer, 80); AcpiOsPrintf ("\n"); break; case ACPI_TYPE_REGION: AcpiOsPrintf ("[%s]", AcpiUtGetRegionName (ObjDesc->Region.SpaceId)); if (ObjDesc->Region.Flags & AOPOBJ_DATA_VALID) { AcpiOsPrintf (" Addr %8.8X%8.8X Len %.4X\n", ACPI_FORMAT_UINT64 (ObjDesc->Region.Address), ObjDesc->Region.Length); } else { AcpiOsPrintf (" [Address/Length not yet evaluated]\n"); } break; case ACPI_TYPE_LOCAL_REFERENCE: AcpiOsPrintf ("[%s]\n", AcpiUtGetReferenceName (ObjDesc)); break; case ACPI_TYPE_BUFFER_FIELD: if (ObjDesc->BufferField.BufferObj && ObjDesc->BufferField.BufferObj->Buffer.Node) { AcpiOsPrintf ("Buf [%4.4s]", AcpiUtGetNodeName ( ObjDesc->BufferField.BufferObj->Buffer.Node)); } break; case ACPI_TYPE_LOCAL_REGION_FIELD: AcpiOsPrintf ("Rgn [%4.4s]", AcpiUtGetNodeName ( ObjDesc->CommonField.RegionObj->Region.Node)); break; case ACPI_TYPE_LOCAL_BANK_FIELD: AcpiOsPrintf ("Rgn [%4.4s] Bnk [%4.4s]", AcpiUtGetNodeName ( ObjDesc->CommonField.RegionObj->Region.Node), AcpiUtGetNodeName ( ObjDesc->BankField.BankObj->CommonField.Node)); break; case ACPI_TYPE_LOCAL_INDEX_FIELD: AcpiOsPrintf ("Idx [%4.4s] Dat [%4.4s]", AcpiUtGetNodeName ( ObjDesc->IndexField.IndexObj->CommonField.Node), AcpiUtGetNodeName ( ObjDesc->IndexField.DataObj->CommonField.Node)); break; case ACPI_TYPE_LOCAL_ALIAS: case ACPI_TYPE_LOCAL_METHOD_ALIAS: AcpiOsPrintf ("Target %4.4s (%p)\n", AcpiUtGetNodeName (ObjDesc), ObjDesc); break; default: AcpiOsPrintf ("Object %p\n", ObjDesc); break; } /* Common field handling */ switch (Type) { case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: AcpiOsPrintf (" Off %.3X Len %.2X Acc %.2X\n", (ObjDesc->CommonField.BaseByteOffset * 8) + ObjDesc->CommonField.StartFieldBitOffset, ObjDesc->CommonField.BitLength, ObjDesc->CommonField.AccessByteWidth); break; default: break; } break; case ACPI_DISPLAY_OBJECTS: AcpiOsPrintf ("O:%p", ObjDesc); if (!ObjDesc) { /* No attached object, we are done */ AcpiOsPrintf ("\n"); return (AE_OK); } AcpiOsPrintf ("(R%u)", ObjDesc->Common.ReferenceCount); switch (Type) { case ACPI_TYPE_METHOD: /* Name is a Method and its AML offset/length are set */ AcpiOsPrintf (" M:%p-%X\n", ObjDesc->Method.AmlStart, ObjDesc->Method.AmlLength); break; case ACPI_TYPE_INTEGER: AcpiOsPrintf (" I:%8.8X8.8%X\n", ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value)); break; case ACPI_TYPE_STRING: AcpiOsPrintf (" S:%p-%X\n", ObjDesc->String.Pointer, ObjDesc->String.Length); break; case ACPI_TYPE_BUFFER: AcpiOsPrintf (" B:%p-%X\n", ObjDesc->Buffer.Pointer, ObjDesc->Buffer.Length); break; default: AcpiOsPrintf ("\n"); break; } break; default: AcpiOsPrintf ("\n"); break; } /* If debug turned off, done */ if (!(AcpiDbgLevel & ACPI_LV_VALUES)) { return (AE_OK); } /* If there is an attached object, display it */ DbgLevel = AcpiDbgLevel; AcpiDbgLevel = 0; ObjDesc = AcpiNsGetAttachedObject (ThisNode); AcpiDbgLevel = DbgLevel; /* Dump attached objects */ while (ObjDesc) { ObjType = ACPI_TYPE_INVALID; AcpiOsPrintf ("Attached Object %p: ", ObjDesc); /* Decode the type of attached object and dump the contents */ switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc)) { case ACPI_DESC_TYPE_NAMED: AcpiOsPrintf ("(Ptr to Node)\n"); BytesToDump = sizeof (ACPI_NAMESPACE_NODE); ACPI_DUMP_BUFFER (ObjDesc, BytesToDump); break; case ACPI_DESC_TYPE_OPERAND: ObjType = ObjDesc->Common.Type; if (ObjType > ACPI_TYPE_LOCAL_MAX) { AcpiOsPrintf ( "(Pointer to ACPI Object type %.2X [UNKNOWN])\n", ObjType); BytesToDump = 32; } else { AcpiOsPrintf ( "(Pointer to ACPI Object type %.2X [%s])\n", ObjType, AcpiUtGetTypeName (ObjType)); BytesToDump = sizeof (ACPI_OPERAND_OBJECT); } ACPI_DUMP_BUFFER (ObjDesc, BytesToDump); break; default: break; } /* If value is NOT an internal object, we are done */ if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND) { goto Cleanup; } /* Valid object, get the pointer to next level, if any */ switch (ObjType) { case ACPI_TYPE_BUFFER: case ACPI_TYPE_STRING: /* * NOTE: takes advantage of common fields between string/buffer */ BytesToDump = ObjDesc->String.Length; ObjDesc = (void *) ObjDesc->String.Pointer; AcpiOsPrintf ("(Buffer/String pointer %p length %X)\n", ObjDesc, BytesToDump); ACPI_DUMP_BUFFER (ObjDesc, BytesToDump); goto Cleanup; case ACPI_TYPE_BUFFER_FIELD: ObjDesc = (ACPI_OPERAND_OBJECT *) ObjDesc->BufferField.BufferObj; break; case ACPI_TYPE_PACKAGE: ObjDesc = (void *) ObjDesc->Package.Elements; break; case ACPI_TYPE_METHOD: ObjDesc = (void *) ObjDesc->Method.AmlStart; break; case ACPI_TYPE_LOCAL_REGION_FIELD: ObjDesc = (void *) ObjDesc->Field.RegionObj; break; case ACPI_TYPE_LOCAL_BANK_FIELD: ObjDesc = (void *) ObjDesc->BankField.RegionObj; break; case ACPI_TYPE_LOCAL_INDEX_FIELD: ObjDesc = (void *) ObjDesc->IndexField.IndexObj; break; default: goto Cleanup; } } Cleanup: AcpiOsPrintf ("\n"); return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsDumpObjects * * PARAMETERS: Type - Object type to be dumped * DisplayType - 0 or ACPI_DISPLAY_SUMMARY * MaxDepth - Maximum depth of dump. Use ACPI_UINT32_MAX * for an effectively unlimited depth. * OwnerId - Dump only objects owned by this ID. Use * ACPI_UINT32_MAX to match all owners. * StartHandle - Where in namespace to start/end search * * RETURN: None * * DESCRIPTION: Dump typed objects within the loaded namespace. Uses * AcpiNsWalkNamespace in conjunction with AcpiNsDumpOneObject. * ******************************************************************************/ void AcpiNsDumpObjects ( ACPI_OBJECT_TYPE Type, UINT8 DisplayType, UINT32 MaxDepth, ACPI_OWNER_ID OwnerId, ACPI_HANDLE StartHandle) { ACPI_WALK_INFO Info; ACPI_STATUS Status; ACPI_FUNCTION_ENTRY (); /* * Just lock the entire namespace for the duration of the dump. * We don't want any changes to the namespace during this time, * especially the temporary nodes since we are going to display * them also. */ Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not acquire namespace mutex\n"); return; } Info.Count = 0; Info.DebugLevel = ACPI_LV_TABLES; Info.OwnerId = OwnerId; Info.DisplayType = DisplayType; (void) AcpiNsWalkNamespace (Type, StartHandle, MaxDepth, ACPI_NS_WALK_NO_UNLOCK | ACPI_NS_WALK_TEMP_NODES, AcpiNsDumpOneObject, NULL, (void *) &Info, NULL); AcpiOsPrintf ("\nNamespace node count: %u\n\n", Info.Count); (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); } /******************************************************************************* * * FUNCTION: AcpiNsDumpOneObjectPath, AcpiNsGetMaxDepth * * PARAMETERS: ObjHandle - Node to be dumped * Level - Nesting level of the handle * Context - Passed into WalkNamespace * ReturnValue - Not used * * RETURN: Status * * DESCRIPTION: Dump the full pathname to a namespace object. AcpNsGetMaxDepth * computes the maximum nesting depth in the namespace tree, in * order to simplify formatting in AcpiNsDumpOneObjectPath. * These procedures are UserFunctions called by AcpiNsWalkNamespace. * ******************************************************************************/ static ACPI_STATUS AcpiNsDumpOneObjectPath ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { UINT32 MaxLevel = *((UINT32 *) Context); char *Pathname; ACPI_NAMESPACE_NODE *Node; int PathIndent; if (!ObjHandle) { return (AE_OK); } Node = AcpiNsValidateHandle (ObjHandle); if (!Node) { /* Ignore bad node during namespace walk */ return (AE_OK); } Pathname = AcpiNsGetNormalizedPathname (Node, TRUE); PathIndent = 1; if (Level <= MaxLevel) { PathIndent = MaxLevel - Level + 1; } AcpiOsPrintf ("%2d%*s%-12s%*s", Level, Level, " ", AcpiUtGetTypeName (Node->Type), PathIndent, " "); AcpiOsPrintf ("%s\n", &Pathname[1]); ACPI_FREE (Pathname); return (AE_OK); } static ACPI_STATUS AcpiNsGetMaxDepth ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { UINT32 *MaxLevel = (UINT32 *) Context; if (Level > *MaxLevel) { *MaxLevel = Level; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsDumpObjectPaths * * PARAMETERS: Type - Object type to be dumped * DisplayType - 0 or ACPI_DISPLAY_SUMMARY * MaxDepth - Maximum depth of dump. Use ACPI_UINT32_MAX * for an effectively unlimited depth. * OwnerId - Dump only objects owned by this ID. Use * ACPI_UINT32_MAX to match all owners. * StartHandle - Where in namespace to start/end search * * RETURN: None * * DESCRIPTION: Dump full object pathnames within the loaded namespace. Uses * AcpiNsWalkNamespace in conjunction with AcpiNsDumpOneObjectPath. * ******************************************************************************/ void AcpiNsDumpObjectPaths ( ACPI_OBJECT_TYPE Type, UINT8 DisplayType, UINT32 MaxDepth, ACPI_OWNER_ID OwnerId, ACPI_HANDLE StartHandle) { ACPI_STATUS Status; UINT32 MaxLevel = 0; ACPI_FUNCTION_ENTRY (); /* * Just lock the entire namespace for the duration of the dump. * We don't want any changes to the namespace during this time, * especially the temporary nodes since we are going to display * them also. */ Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not acquire namespace mutex\n"); return; } /* Get the max depth of the namespace tree, for formatting later */ (void) AcpiNsWalkNamespace (Type, StartHandle, MaxDepth, ACPI_NS_WALK_NO_UNLOCK | ACPI_NS_WALK_TEMP_NODES, AcpiNsGetMaxDepth, NULL, (void *) &MaxLevel, NULL); /* Now dump the entire namespace */ (void) AcpiNsWalkNamespace (Type, StartHandle, MaxDepth, ACPI_NS_WALK_NO_UNLOCK | ACPI_NS_WALK_TEMP_NODES, AcpiNsDumpOneObjectPath, NULL, (void *) &MaxLevel, NULL); (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); } /******************************************************************************* * * FUNCTION: AcpiNsDumpEntry * * PARAMETERS: Handle - Node to be dumped * DebugLevel - Output level * * RETURN: None * * DESCRIPTION: Dump a single Node * ******************************************************************************/ void AcpiNsDumpEntry ( ACPI_HANDLE Handle, UINT32 DebugLevel) { ACPI_WALK_INFO Info; ACPI_FUNCTION_ENTRY (); Info.DebugLevel = DebugLevel; Info.OwnerId = ACPI_OWNER_ID_MAX; Info.DisplayType = ACPI_DISPLAY_SUMMARY; (void) AcpiNsDumpOneObject (Handle, 1, &Info, NULL); } #ifdef ACPI_ASL_COMPILER /******************************************************************************* * * FUNCTION: AcpiNsDumpTables * * PARAMETERS: SearchBase - Root of subtree to be dumped, or * NS_ALL to dump the entire namespace * MaxDepth - Maximum depth of dump. Use INT_MAX * for an effectively unlimited depth. * * RETURN: None * * DESCRIPTION: Dump the name space, or a portion of it. * ******************************************************************************/ void AcpiNsDumpTables ( ACPI_HANDLE SearchBase, UINT32 MaxDepth) { ACPI_HANDLE SearchHandle = SearchBase; ACPI_FUNCTION_TRACE (NsDumpTables); if (!AcpiGbl_RootNode) { /* * If the name space has not been initialized, * there is nothing to dump. */ ACPI_DEBUG_PRINT ((ACPI_DB_TABLES, "namespace not initialized!\n")); return_VOID; } if (ACPI_NS_ALL == SearchBase) { /* Entire namespace */ SearchHandle = AcpiGbl_RootNode; ACPI_DEBUG_PRINT ((ACPI_DB_TABLES, "\\\n")); } AcpiNsDumpObjects (ACPI_TYPE_ANY, ACPI_DISPLAY_OBJECTS, MaxDepth, ACPI_OWNER_ID_MAX, SearchHandle); return_VOID; } #endif #endif acpica-unix-20250404/source/components/namespace/nsxfname.c0000775000175000017500000004702714773714133023160 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsxfname - Public interfaces to the ACPI subsystem * ACPI Namespace oriented interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acparser.h" #include "amlcode.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsxfname") /* Local prototypes */ static char * AcpiNsCopyDeviceId ( ACPI_PNP_DEVICE_ID *Dest, ACPI_PNP_DEVICE_ID *Source, char *StringArea); /****************************************************************************** * * FUNCTION: AcpiGetHandle * * PARAMETERS: Parent - Object to search under (search scope). * Pathname - Pointer to an asciiz string containing the * name * RetHandle - Where the return handle is returned * * RETURN: Status * * DESCRIPTION: This routine will search for a caller specified name in the * name space. The caller can restrict the search region by * specifying a non NULL parent. The parent value is itself a * namespace handle. * ******************************************************************************/ ACPI_STATUS AcpiGetHandle ( ACPI_HANDLE Parent, const char *Pathname, ACPI_HANDLE *RetHandle) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node = NULL; ACPI_NAMESPACE_NODE *PrefixNode = NULL; ACPI_FUNCTION_ENTRY (); /* Parameter Validation */ if (!RetHandle || !Pathname) { return (AE_BAD_PARAMETER); } /* Convert a parent handle to a prefix node */ if (Parent) { PrefixNode = AcpiNsValidateHandle (Parent); if (!PrefixNode) { return (AE_BAD_PARAMETER); } } /* * Valid cases are: * 1) Fully qualified pathname * 2) Parent + Relative pathname * * Error for */ if (ACPI_IS_ROOT_PREFIX (Pathname[0])) { /* Pathname is fully qualified (starts with '\') */ /* Special case for root-only, since we can't search for it */ if (!strcmp (Pathname, ACPI_NS_ROOT_PATH)) { *RetHandle = ACPI_CAST_PTR (ACPI_HANDLE, AcpiGbl_RootNode); return (AE_OK); } } else if (!PrefixNode) { /* Relative path with null prefix is disallowed */ return (AE_BAD_PARAMETER); } /* Find the Node and convert to a handle */ Status = AcpiNsGetNode (PrefixNode, Pathname, ACPI_NS_NO_UPSEARCH, &Node); if (ACPI_SUCCESS (Status)) { *RetHandle = ACPI_CAST_PTR (ACPI_HANDLE, Node); } return (Status); } ACPI_EXPORT_SYMBOL (AcpiGetHandle) /****************************************************************************** * * FUNCTION: AcpiGetName * * PARAMETERS: Handle - Handle to be converted to a pathname * NameType - Full pathname or single segment * Buffer - Buffer for returned path * * RETURN: Pointer to a string containing the fully qualified Name. * * DESCRIPTION: This routine returns the fully qualified name associated with * the Handle parameter. This and the AcpiPathnameToHandle are * complementary functions. * ******************************************************************************/ ACPI_STATUS AcpiGetName ( ACPI_HANDLE Handle, UINT32 NameType, ACPI_BUFFER *Buffer) { ACPI_STATUS Status; /* Parameter validation */ if (NameType > ACPI_NAME_TYPE_MAX) { return (AE_BAD_PARAMETER); } Status = AcpiUtValidateBuffer (Buffer); if (ACPI_FAILURE (Status)) { return (Status); } /* * Wants the single segment ACPI name. * Validate handle and convert to a namespace Node */ Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } if (NameType == ACPI_FULL_PATHNAME || NameType == ACPI_FULL_PATHNAME_NO_TRAILING) { /* Get the full pathname (From the namespace root) */ Status = AcpiNsHandleToPathname (Handle, Buffer, NameType == ACPI_FULL_PATHNAME ? FALSE : TRUE); } else { /* Get the single name */ Status = AcpiNsHandleToName (Handle, Buffer); } (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (Status); } ACPI_EXPORT_SYMBOL (AcpiGetName) /****************************************************************************** * * FUNCTION: AcpiNsCopyDeviceId * * PARAMETERS: Dest - Pointer to the destination PNP_DEVICE_ID * Source - Pointer to the source PNP_DEVICE_ID * StringArea - Pointer to where to copy the dest string * * RETURN: Pointer to the next string area * * DESCRIPTION: Copy a single PNP_DEVICE_ID, including the string data. * ******************************************************************************/ static char * AcpiNsCopyDeviceId ( ACPI_PNP_DEVICE_ID *Dest, ACPI_PNP_DEVICE_ID *Source, char *StringArea) { /* Create the destination PNP_DEVICE_ID */ Dest->String = StringArea; Dest->Length = Source->Length; /* Copy actual string and return a pointer to the next string area */ memcpy (StringArea, Source->String, Source->Length); return (StringArea + Source->Length); } /****************************************************************************** * * FUNCTION: AcpiGetObjectInfo * * PARAMETERS: Handle - Object Handle * ReturnBuffer - Where the info is returned * * RETURN: Status * * DESCRIPTION: Returns information about an object as gleaned from the * namespace node and possibly by running several standard * control methods (Such as in the case of a device.) * * For Device and Processor objects, run the Device _HID, _UID, _CID, * _CLS, _ADR, _SxW, and _SxD methods. * * Note: Allocates the return buffer, must be freed by the caller. * * Note: This interface is intended to be used during the initial device * discovery namespace traversal. Therefore, no complex methods can be * executed, especially those that access operation regions. Therefore, do * not add any additional methods that could cause problems in this area. * Because of this reason support for the following methods has been removed: * 1) _SUB method was removed (11/2015) * 2) _STA method was removed (02/2018) * ******************************************************************************/ ACPI_STATUS AcpiGetObjectInfo ( ACPI_HANDLE Handle, ACPI_DEVICE_INFO **ReturnBuffer) { ACPI_NAMESPACE_NODE *Node; ACPI_DEVICE_INFO *Info; ACPI_PNP_DEVICE_ID_LIST *CidList = NULL; ACPI_PNP_DEVICE_ID *Hid = NULL; ACPI_PNP_DEVICE_ID *Uid = NULL; ACPI_PNP_DEVICE_ID *Cls = NULL; char *NextIdString; ACPI_OBJECT_TYPE Type; ACPI_NAME Name; UINT8 ParamCount= 0; UINT16 Valid = 0; UINT32 InfoSize; UINT32 i; ACPI_STATUS Status; /* Parameter validation */ if (!Handle || !ReturnBuffer) { return (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } Node = AcpiNsValidateHandle (Handle); if (!Node) { (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (AE_BAD_PARAMETER); } /* Get the namespace node data while the namespace is locked */ InfoSize = sizeof (ACPI_DEVICE_INFO); Type = Node->Type; Name = Node->Name.Integer; if (Node->Type == ACPI_TYPE_METHOD) { ParamCount = Node->Object->Method.ParamCount; } Status = AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } if ((Type == ACPI_TYPE_DEVICE) || (Type == ACPI_TYPE_PROCESSOR)) { /* * Get extra info for ACPI Device/Processor objects only: * Run the Device _HID, _UID, _CLS, and _CID methods. * * Note: none of these methods are required, so they may or may * not be present for this device. The Info->Valid bitfield is used * to indicate which methods were found and run successfully. */ /* Execute the Device._HID method */ Status = AcpiUtExecute_HID (Node, &Hid); if (ACPI_SUCCESS (Status)) { InfoSize += Hid->Length; Valid |= ACPI_VALID_HID; } /* Execute the Device._UID method */ Status = AcpiUtExecute_UID (Node, &Uid); if (ACPI_SUCCESS (Status)) { InfoSize += Uid->Length; Valid |= ACPI_VALID_UID; } /* Execute the Device._CID method */ Status = AcpiUtExecute_CID (Node, &CidList); if (ACPI_SUCCESS (Status)) { /* Add size of CID strings and CID pointer array */ InfoSize += (CidList->ListSize - sizeof (ACPI_PNP_DEVICE_ID_LIST)); Valid |= ACPI_VALID_CID; } /* Execute the Device._CLS method */ Status = AcpiUtExecute_CLS (Node, &Cls); if (ACPI_SUCCESS (Status)) { InfoSize += Cls->Length; Valid |= ACPI_VALID_CLS; } } /* * Now that we have the variable-length data, we can allocate the * return buffer */ Info = ACPI_ALLOCATE_ZEROED (InfoSize); if (!Info) { Status = AE_NO_MEMORY; goto Cleanup; } /* Get the fixed-length data */ if ((Type == ACPI_TYPE_DEVICE) || (Type == ACPI_TYPE_PROCESSOR)) { /* * Get extra info for ACPI Device/Processor objects only: * Run the _ADR and, SxW, and _SxD methods. * * Notes: none of these methods are required, so they may or may * not be present for this device. The Info->Valid bitfield is used * to indicate which methods were found and run successfully. */ /* Execute the Device._ADR method */ Status = AcpiUtEvaluateNumericObject (METHOD_NAME__ADR, Node, &Info->Address); if (ACPI_SUCCESS (Status)) { Valid |= ACPI_VALID_ADR; } /* Execute the Device._SxW methods */ Status = AcpiUtExecutePowerMethods (Node, AcpiGbl_LowestDstateNames, ACPI_NUM_SxW_METHODS, Info->LowestDstates); if (ACPI_SUCCESS (Status)) { Valid |= ACPI_VALID_SXWS; } /* Execute the Device._SxD methods */ Status = AcpiUtExecutePowerMethods (Node, AcpiGbl_HighestDstateNames, ACPI_NUM_SxD_METHODS, Info->HighestDstates); if (ACPI_SUCCESS (Status)) { Valid |= ACPI_VALID_SXDS; } } /* * Create a pointer to the string area of the return buffer. * Point to the end of the base ACPI_DEVICE_INFO structure. */ NextIdString = ACPI_CAST_PTR (char, Info->CompatibleIdList.Ids); if (CidList) { /* Point past the CID PNP_DEVICE_ID array */ NextIdString += ((ACPI_SIZE) CidList->Count * sizeof (ACPI_PNP_DEVICE_ID)); } /* * Copy the HID, UID, and CIDs to the return buffer. The variable-length * strings are copied to the reserved area at the end of the buffer. * * For HID and CID, check if the ID is a PCI Root Bridge. */ if (Hid) { NextIdString = AcpiNsCopyDeviceId (&Info->HardwareId, Hid, NextIdString); if (AcpiUtIsPciRootBridge (Hid->String)) { Info->Flags |= ACPI_PCI_ROOT_BRIDGE; } } if (Uid) { NextIdString = AcpiNsCopyDeviceId (&Info->UniqueId, Uid, NextIdString); } if (CidList) { Info->CompatibleIdList.Count = CidList->Count; Info->CompatibleIdList.ListSize = CidList->ListSize; /* Copy each CID */ for (i = 0; i < CidList->Count; i++) { NextIdString = AcpiNsCopyDeviceId (&Info->CompatibleIdList.Ids[i], &CidList->Ids[i], NextIdString); if (AcpiUtIsPciRootBridge (CidList->Ids[i].String)) { Info->Flags |= ACPI_PCI_ROOT_BRIDGE; } } } if (Cls) { (void) AcpiNsCopyDeviceId (&Info->ClassCode, Cls, NextIdString); } /* Copy the fixed-length data */ Info->InfoSize = InfoSize; Info->Type = Type; Info->Name = Name; Info->ParamCount = ParamCount; Info->Valid = Valid; *ReturnBuffer = Info; Status = AE_OK; Cleanup: if (Hid) { ACPI_FREE (Hid); } if (Uid) { ACPI_FREE (Uid); } if (CidList) { ACPI_FREE (CidList); } if (Cls) { ACPI_FREE (Cls); } return (Status); } ACPI_EXPORT_SYMBOL (AcpiGetObjectInfo) /****************************************************************************** * * FUNCTION: AcpiInstallMethod * * PARAMETERS: Buffer - An ACPI table containing one control method * * RETURN: Status * * DESCRIPTION: Install a control method into the namespace. If the method * name already exists in the namespace, it is overwritten. The * input buffer must contain a valid DSDT or SSDT containing a * single control method. * ******************************************************************************/ ACPI_STATUS AcpiInstallMethod ( UINT8 *Buffer) { ACPI_TABLE_HEADER *Table = ACPI_CAST_PTR (ACPI_TABLE_HEADER, Buffer); UINT8 *AmlBuffer; UINT8 *AmlStart; char *Path; ACPI_NAMESPACE_NODE *Node; ACPI_OPERAND_OBJECT *MethodObj; ACPI_PARSE_STATE ParserState; UINT32 AmlLength; UINT16 Opcode; UINT8 MethodFlags; ACPI_STATUS Status; /* Parameter validation */ if (!Buffer) { return (AE_BAD_PARAMETER); } /* Table must be a DSDT or SSDT */ if (!ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_DSDT) && !ACPI_COMPARE_NAMESEG (Table->Signature, ACPI_SIG_SSDT)) { return (AE_BAD_HEADER); } /* First AML opcode in the table must be a control method */ ParserState.Aml = Buffer + sizeof (ACPI_TABLE_HEADER); Opcode = AcpiPsPeekOpcode (&ParserState); if (Opcode != AML_METHOD_OP) { return (AE_BAD_PARAMETER); } /* Extract method information from the raw AML */ ParserState.Aml += AcpiPsGetOpcodeSize (Opcode); ParserState.PkgEnd = AcpiPsGetNextPackageEnd (&ParserState); Path = AcpiPsGetNextNamestring (&ParserState); MethodFlags = *ParserState.Aml++; AmlStart = ParserState.Aml; AmlLength = (UINT32) ACPI_PTR_DIFF (ParserState.PkgEnd, AmlStart); /* * Allocate resources up-front. We don't want to have to delete a new * node from the namespace if we cannot allocate memory. */ AmlBuffer = ACPI_ALLOCATE (AmlLength); if (!AmlBuffer) { return (AE_NO_MEMORY); } MethodObj = AcpiUtCreateInternalObject (ACPI_TYPE_METHOD); if (!MethodObj) { ACPI_FREE (AmlBuffer); return (AE_NO_MEMORY); } /* Lock namespace for AcpiNsLookup, we may be creating a new node */ Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { goto ErrorExit; } /* The lookup either returns an existing node or creates a new one */ Status = AcpiNsLookup (NULL, Path, ACPI_TYPE_METHOD, ACPI_IMODE_LOAD_PASS1, ACPI_NS_DONT_OPEN_SCOPE | ACPI_NS_ERROR_IF_FOUND, NULL, &Node); (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) /* NsLookup */ { if (Status != AE_ALREADY_EXISTS) { goto ErrorExit; } /* Node existed previously, make sure it is a method node */ if (Node->Type != ACPI_TYPE_METHOD) { Status = AE_TYPE; goto ErrorExit; } } /* Copy the method AML to the local buffer */ memcpy (AmlBuffer, AmlStart, AmlLength); /* Initialize the method object with the new method's information */ MethodObj->Method.AmlStart = AmlBuffer; MethodObj->Method.AmlLength = AmlLength; MethodObj->Method.ParamCount = (UINT8) (MethodFlags & AML_METHOD_ARG_COUNT); if (MethodFlags & AML_METHOD_SERIALIZED) { MethodObj->Method.InfoFlags = ACPI_METHOD_SERIALIZED; MethodObj->Method.SyncLevel = (UINT8) ((MethodFlags & AML_METHOD_SYNC_LEVEL) >> 4); } /* * Now that it is complete, we can attach the new method object to * the method Node (detaches/deletes any existing object) */ Status = AcpiNsAttachObject (Node, MethodObj, ACPI_TYPE_METHOD); /* * Flag indicates AML buffer is dynamic, must be deleted later. * Must be set only after attach above. */ Node->Flags |= ANOBJ_ALLOCATED_BUFFER; /* Remove local reference to the method object */ AcpiUtRemoveReference (MethodObj); return (Status); ErrorExit: ACPI_FREE (AmlBuffer); ACPI_FREE (MethodObj); return (Status); } ACPI_EXPORT_SYMBOL (AcpiInstallMethod) acpica-unix-20250404/source/components/namespace/nsxfobj.c0000775000175000017500000001701114773714133023000 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: nsxfobj - Public interfaces to the ACPI subsystem * ACPI Object oriented interfaces * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsxfobj") /******************************************************************************* * * FUNCTION: AcpiGetType * * PARAMETERS: Handle - Handle of object whose type is desired * RetType - Where the type will be placed * * RETURN: Status * * DESCRIPTION: This routine returns the type associated with a particular * handle * ******************************************************************************/ ACPI_STATUS AcpiGetType ( ACPI_HANDLE Handle, ACPI_OBJECT_TYPE *RetType) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; /* Parameter Validation */ if (!RetType) { return (AE_BAD_PARAMETER); } /* Special case for the predefined Root Node (return type ANY) */ if (Handle == ACPI_ROOT_OBJECT) { *RetType = ACPI_TYPE_ANY; return (AE_OK); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } /* Convert and validate the handle */ Node = AcpiNsValidateHandle (Handle); if (!Node) { (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (AE_BAD_PARAMETER); } *RetType = Node->Type; Status = AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (Status); } ACPI_EXPORT_SYMBOL (AcpiGetType) /******************************************************************************* * * FUNCTION: AcpiGetParent * * PARAMETERS: Handle - Handle of object whose parent is desired * RetHandle - Where the parent handle will be placed * * RETURN: Status * * DESCRIPTION: Returns a handle to the parent of the object represented by * Handle. * ******************************************************************************/ ACPI_STATUS AcpiGetParent ( ACPI_HANDLE Handle, ACPI_HANDLE *RetHandle) { ACPI_NAMESPACE_NODE *Node; ACPI_NAMESPACE_NODE *ParentNode; ACPI_STATUS Status; if (!RetHandle) { return (AE_BAD_PARAMETER); } /* Special case for the predefined Root Node (no parent) */ if (Handle == ACPI_ROOT_OBJECT) { return (AE_NULL_ENTRY); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } /* Convert and validate the handle */ Node = AcpiNsValidateHandle (Handle); if (!Node) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } /* Get the parent entry */ ParentNode = Node->Parent; *RetHandle = ACPI_CAST_PTR (ACPI_HANDLE, ParentNode); /* Return exception if parent is null */ if (!ParentNode) { Status = AE_NULL_ENTRY; } UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (Status); } ACPI_EXPORT_SYMBOL (AcpiGetParent) /******************************************************************************* * * FUNCTION: AcpiGetNextObject * * PARAMETERS: Type - Type of object to be searched for * Parent - Parent object whose children we are getting * LastChild - Previous child that was found. * The NEXT child will be returned * RetHandle - Where handle to the next object is placed * * RETURN: Status * * DESCRIPTION: Return the next peer object within the namespace. If Handle is * valid, Scope is ignored. Otherwise, the first object within * Scope is returned. * ******************************************************************************/ ACPI_STATUS AcpiGetNextObject ( ACPI_OBJECT_TYPE Type, ACPI_HANDLE Parent, ACPI_HANDLE Child, ACPI_HANDLE *RetHandle) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_NAMESPACE_NODE *ParentNode = NULL; ACPI_NAMESPACE_NODE *ChildNode = NULL; /* Parameter validation */ if (Type > ACPI_TYPE_EXTERNAL_MAX) { return (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } /* If null handle, use the parent */ if (!Child) { /* Start search at the beginning of the specified scope */ ParentNode = AcpiNsValidateHandle (Parent); if (!ParentNode) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } } else { /* Non-null handle, ignore the parent */ /* Convert and validate the handle */ ChildNode = AcpiNsValidateHandle (Child); if (!ChildNode) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } } /* Internal function does the real work */ Node = AcpiNsGetNextNodeTyped (Type, ParentNode, ChildNode); if (!Node) { Status = AE_NOT_FOUND; goto UnlockAndExit; } if (RetHandle) { *RetHandle = ACPI_CAST_PTR (ACPI_HANDLE, Node); } UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (Status); } ACPI_EXPORT_SYMBOL (AcpiGetNextObject) acpica-unix-20250404/source/components/namespace/nsdumpdv.c0000775000175000017500000001156214773714132023173 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsdump - table dumping routines for debug * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" /* TBD: This entire module is apparently obsolete and should be removed */ #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsdumpdv") #ifdef ACPI_OBSOLETE_FUNCTIONS #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) #include "acnamesp.h" /******************************************************************************* * * FUNCTION: AcpiNsDumpOneDevice * * PARAMETERS: Handle - Node to be dumped * Level - Nesting level of the handle * Context - Passed into WalkNamespace * ReturnValue - Not used * * RETURN: Status * * DESCRIPTION: Dump a single Node that represents a device * This procedure is a UserFunction called by AcpiNsWalkNamespace. * ******************************************************************************/ static ACPI_STATUS AcpiNsDumpOneDevice ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_BUFFER Buffer; ACPI_DEVICE_INFO *Info; ACPI_STATUS Status; UINT32 i; ACPI_FUNCTION_NAME (NsDumpOneDevice); Status = AcpiNsDumpOneObject (ObjHandle, Level, Context, ReturnValue); Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiGetObjectInfo (ObjHandle, &Buffer); if (ACPI_SUCCESS (Status)) { Info = Buffer.Pointer; for (i = 0; i < Level; i++) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_TABLES, " ")); } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_TABLES, " HID: %s, ADR: %8.8X%8.8X\n", Info->HardwareId.Value, ACPI_FORMAT_UINT64 (Info->Address))); ACPI_FREE (Info); } return (Status); } /******************************************************************************* * * FUNCTION: AcpiNsDumpRootDevices * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Dump all objects of type "device" * ******************************************************************************/ void AcpiNsDumpRootDevices ( void) { ACPI_HANDLE SysBusHandle; ACPI_STATUS Status; ACPI_FUNCTION_NAME (NsDumpRootDevices); /* Only dump the table if tracing is enabled */ if (!(ACPI_LV_TABLES & AcpiDbgLevel)) { return; } Status = AcpiGetHandle (NULL, METHOD_NAME__SB_, &SysBusHandle); if (ACPI_FAILURE (Status)) { return; } ACPI_DEBUG_PRINT ((ACPI_DB_TABLES, "Display of all devices in the namespace:\n")); Status = AcpiNsWalkNamespace (ACPI_TYPE_DEVICE, SysBusHandle, ACPI_UINT32_MAX, ACPI_NS_WALK_NO_UNLOCK, AcpiNsDumpOneDevice, NULL, NULL, NULL); } #endif #endif acpica-unix-20250404/source/components/namespace/nsrepair2.c0000775000175000017500000010202314773714132023231 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsrepair2 - Repair for objects returned by specific * predefined methods * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsrepair2") /* * Information structure and handler for ACPI predefined names that can * be repaired on a per-name basis. */ typedef ACPI_STATUS (*ACPI_REPAIR_FUNCTION) ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); typedef struct acpi_repair_info { char Name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; ACPI_REPAIR_FUNCTION RepairFunction; } ACPI_REPAIR_INFO; /* Local prototypes */ static const ACPI_REPAIR_INFO * AcpiNsMatchComplexRepair ( ACPI_NAMESPACE_NODE *Node); static ACPI_STATUS AcpiNsRepair_ALR ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); static ACPI_STATUS AcpiNsRepair_CID ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); static ACPI_STATUS AcpiNsRepair_CST ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); static ACPI_STATUS AcpiNsRepair_FDE ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); static ACPI_STATUS AcpiNsRepair_HID ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); static ACPI_STATUS AcpiNsRepair_PRT ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); static ACPI_STATUS AcpiNsRepair_PSS ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); static ACPI_STATUS AcpiNsRepair_TSS ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr); static ACPI_STATUS AcpiNsCheckSortedList ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT *ReturnObject, UINT32 StartIndex, UINT32 ExpectedCount, UINT32 SortIndex, UINT8 SortDirection, char *SortKeyName); /* Values for SortDirection above */ #define ACPI_SORT_ASCENDING 0 #define ACPI_SORT_DESCENDING 1 static void AcpiNsRemoveElement ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 Index); static void AcpiNsSortList ( ACPI_OPERAND_OBJECT **Elements, UINT32 Count, UINT32 Index, UINT8 SortDirection); /* * This table contains the names of the predefined methods for which we can * perform more complex repairs. * * As necessary: * * _ALR: Sort the list ascending by AmbientIlluminance * _CID: Strings: uppercase all, remove any leading asterisk * _CST: Sort the list ascending by C state type * _FDE: Convert Buffer of BYTEs to a Buffer of DWORDs * _GTM: Convert Buffer of BYTEs to a Buffer of DWORDs * _HID: Strings: uppercase all, remove any leading asterisk * _PRT: Fix reversed SourceName and SourceIndex * _PSS: Sort the list descending by Power * _TSS: Sort the list descending by Power * * Names that must be packages, but cannot be sorted: * * _BCL: Values are tied to the Package index where they appear, and cannot * be moved or sorted. These index values are used for _BQC and _BCM. * However, we can fix the case where a buffer is returned, by converting * it to a Package of integers. */ static const ACPI_REPAIR_INFO AcpiNsRepairableNames[] = { {"_ALR", AcpiNsRepair_ALR}, {"_CID", AcpiNsRepair_CID}, {"_CST", AcpiNsRepair_CST}, {"_FDE", AcpiNsRepair_FDE}, {"_GTM", AcpiNsRepair_FDE}, /* _GTM has same repair as _FDE */ {"_HID", AcpiNsRepair_HID}, {"_PRT", AcpiNsRepair_PRT}, {"_PSS", AcpiNsRepair_PSS}, {"_TSS", AcpiNsRepair_TSS}, {{0,0,0,0}, NULL} /* Table terminator */ }; #define ACPI_FDE_FIELD_COUNT 5 #define ACPI_FDE_BYTE_BUFFER_SIZE 5 #define ACPI_FDE_DWORD_BUFFER_SIZE (ACPI_FDE_FIELD_COUNT * (UINT32) sizeof (UINT32)) /****************************************************************************** * * FUNCTION: AcpiNsComplexRepairs * * PARAMETERS: Info - Method execution information block * Node - Namespace node for the method/object * ValidateStatus - Original status of earlier validation * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if repair was successful. If name is not * matched, ValidateStatus is returned. * * DESCRIPTION: Attempt to repair/convert a return object of a type that was * not expected. * *****************************************************************************/ ACPI_STATUS AcpiNsComplexRepairs ( ACPI_EVALUATE_INFO *Info, ACPI_NAMESPACE_NODE *Node, ACPI_STATUS ValidateStatus, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { const ACPI_REPAIR_INFO *Predefined; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (NsComplexRepairs); /* Check if this name is in the list of repairable names */ Predefined = AcpiNsMatchComplexRepair (Node); if (!Predefined) { return_ACPI_STATUS (ValidateStatus); } Status = Predefined->RepairFunction (Info, ReturnObjectPtr); return_ACPI_STATUS (Status); } /****************************************************************************** * * FUNCTION: AcpiNsMatchComplexRepair * * PARAMETERS: Node - Namespace node for the method/object * * RETURN: Pointer to entry in repair table. NULL indicates not found. * * DESCRIPTION: Check an object name against the repairable object list. * *****************************************************************************/ static const ACPI_REPAIR_INFO * AcpiNsMatchComplexRepair ( ACPI_NAMESPACE_NODE *Node) { const ACPI_REPAIR_INFO *ThisName; /* Search info table for a repairable predefined method/object name */ ThisName = AcpiNsRepairableNames; while (ThisName->RepairFunction) { if (ACPI_COMPARE_NAMESEG (Node->Name.Ascii, ThisName->Name)) { return (ThisName); } ThisName++; } return (NULL); /* Not found */ } /****************************************************************************** * * FUNCTION: AcpiNsRepair_ALR * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if object is OK or was repaired successfully * * DESCRIPTION: Repair for the _ALR object. If necessary, sort the object list * ascending by the ambient illuminance values. * *****************************************************************************/ static ACPI_STATUS AcpiNsRepair_ALR ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_STATUS Status; Status = AcpiNsCheckSortedList (Info, ReturnObject, 0, 2, 1, ACPI_SORT_ASCENDING, "AmbientIlluminance"); return (Status); } /****************************************************************************** * * FUNCTION: AcpiNsRepair_FDE * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if object is OK or was repaired successfully * * DESCRIPTION: Repair for the _FDE and _GTM objects. The expected return * value is a Buffer of 5 DWORDs. This function repairs a common * problem where the return value is a Buffer of BYTEs, not * DWORDs. * *****************************************************************************/ static ACPI_STATUS AcpiNsRepair_FDE ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_OPERAND_OBJECT *BufferObject; UINT8 *ByteBuffer; UINT32 *DwordBuffer; UINT32 i; ACPI_FUNCTION_NAME (NsRepair_FDE); switch (ReturnObject->Common.Type) { case ACPI_TYPE_BUFFER: /* This is the expected type. Length should be (at least) 5 DWORDs */ if (ReturnObject->Buffer.Length >= ACPI_FDE_DWORD_BUFFER_SIZE) { return (AE_OK); } /* We can only repair if we have exactly 5 BYTEs */ if (ReturnObject->Buffer.Length != ACPI_FDE_BYTE_BUFFER_SIZE) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Incorrect return buffer length %u, expected %u", ReturnObject->Buffer.Length, ACPI_FDE_DWORD_BUFFER_SIZE)); return (AE_AML_OPERAND_TYPE); } /* Create the new (larger) buffer object */ BufferObject = AcpiUtCreateBufferObject ( ACPI_FDE_DWORD_BUFFER_SIZE); if (!BufferObject) { return (AE_NO_MEMORY); } /* Expand each byte to a DWORD */ ByteBuffer = ReturnObject->Buffer.Pointer; DwordBuffer = ACPI_CAST_PTR (UINT32, BufferObject->Buffer.Pointer); for (i = 0; i < ACPI_FDE_FIELD_COUNT; i++) { *DwordBuffer = (UINT32) *ByteBuffer; DwordBuffer++; ByteBuffer++; } ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s Expanded Byte Buffer to expected DWord Buffer\n", Info->FullPathname)); break; default: return (AE_AML_OPERAND_TYPE); } /* Delete the original return object, return the new buffer object */ AcpiUtRemoveReference (ReturnObject); *ReturnObjectPtr = BufferObject; Info->ReturnFlags |= ACPI_OBJECT_REPAIRED; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiNsRepair_CID * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if object is OK or was repaired successfully * * DESCRIPTION: Repair for the _CID object. If a string, ensure that all * letters are uppercase and that there is no leading asterisk. * If a Package, ensure same for all string elements. * *****************************************************************************/ static ACPI_STATUS AcpiNsRepair_CID ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_STATUS Status; ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_OPERAND_OBJECT **ElementPtr; ACPI_OPERAND_OBJECT *OriginalElement; UINT16 OriginalRefCount; UINT32 i; ACPI_FUNCTION_TRACE (NsRepair_CID); /* Check for _CID as a simple string */ if (ReturnObject->Common.Type == ACPI_TYPE_STRING) { Status = AcpiNsRepair_HID (Info, ReturnObjectPtr); return_ACPI_STATUS (Status); } /* Exit if not a Package */ if (ReturnObject->Common.Type != ACPI_TYPE_PACKAGE) { return_ACPI_STATUS (AE_OK); } /* Examine each element of the _CID package */ ElementPtr = ReturnObject->Package.Elements; for (i = 0; i < ReturnObject->Package.Count; i++) { OriginalElement = *ElementPtr; OriginalRefCount = OriginalElement->Common.ReferenceCount; Status = AcpiNsRepair_HID (Info, ElementPtr); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } if (OriginalElement != *ElementPtr) { /* Update reference count of new object */ (*ElementPtr)->Common.ReferenceCount = OriginalRefCount; } ElementPtr++; } return_ACPI_STATUS (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiNsRepair_CST * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if object is OK or was repaired successfully * * DESCRIPTION: Repair for the _CST object: * 1. Sort the list ascending by C state type * 2. Ensure type cannot be zero * 3. A subpackage count of zero means _CST is meaningless * 4. Count must match the number of C state subpackages * *****************************************************************************/ static ACPI_STATUS AcpiNsRepair_CST ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_OPERAND_OBJECT **OuterElements; UINT32 OuterElementCount; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; BOOLEAN Removing; UINT32 i; ACPI_FUNCTION_NAME (NsRepair_CST); /* * Check if the C-state type values are proportional. */ OuterElementCount = ReturnObject->Package.Count - 1; i = 0; while (i < OuterElementCount) { OuterElements = &ReturnObject->Package.Elements[i + 1]; Removing = FALSE; if ((*OuterElements)->Package.Count == 0) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "SubPackage[%u] - removing entry due to zero count", i)); Removing = TRUE; goto RemoveElement; } ObjDesc = (*OuterElements)->Package.Elements[1]; /* Index1 = Type */ if ((UINT32) ObjDesc->Integer.Value == 0) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "SubPackage[%u] - removing entry due to invalid Type(0)", i)); Removing = TRUE; } RemoveElement: if (Removing) { AcpiNsRemoveElement (ReturnObject, i + 1); OuterElementCount--; } else { i++; } } /* Update top-level package count, Type "Integer" checked elsewhere */ ObjDesc = ReturnObject->Package.Elements[0]; ObjDesc->Integer.Value = OuterElementCount; /* * Entries (subpackages) in the _CST Package must be sorted by the * C-state type, in ascending order. */ Status = AcpiNsCheckSortedList (Info, ReturnObject, 1, 4, 1, ACPI_SORT_ASCENDING, "C-State Type"); if (ACPI_FAILURE (Status)) { return (Status); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiNsRepair_HID * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if object is OK or was repaired successfully * * DESCRIPTION: Repair for the _HID object. If a string, ensure that all * letters are uppercase and that there is no leading asterisk. * *****************************************************************************/ static ACPI_STATUS AcpiNsRepair_HID ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_OPERAND_OBJECT *NewString; char *Source; char *Dest; ACPI_FUNCTION_TRACE (NsRepair_HID); /* We only care about string _HID objects (not integers) */ if (ReturnObject->Common.Type != ACPI_TYPE_STRING) { return_ACPI_STATUS (AE_OK); } if (ReturnObject->String.Length == 0) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "Invalid zero-length _HID or _CID string")); /* Return AE_OK anyway, let driver handle it */ Info->ReturnFlags |= ACPI_OBJECT_REPAIRED; return_ACPI_STATUS (AE_OK); } /* It is simplest to always create a new string object */ NewString = AcpiUtCreateStringObject (ReturnObject->String.Length); if (!NewString) { return_ACPI_STATUS (AE_NO_MEMORY); } /* * Remove a leading asterisk if present. For some unknown reason, there * are many machines in the field that contains IDs like this. * * Examples: "*PNP0C03", "*ACPI0003" */ Source = ReturnObject->String.Pointer; if (*Source == '*') { Source++; NewString->String.Length--; ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s: Removed invalid leading asterisk\n", Info->FullPathname)); } /* * Copy and uppercase the string. From the ACPI 5.0 specification: * * A valid PNP ID must be of the form "AAA####" where A is an uppercase * letter and # is a hex digit. A valid ACPI ID must be of the form * "NNNN####" where N is an uppercase letter or decimal digit, and * # is a hex digit. */ for (Dest = NewString->String.Pointer; *Source; Dest++, Source++) { *Dest = (char) toupper ((int) *Source); } AcpiUtRemoveReference (ReturnObject); *ReturnObjectPtr = NewString; return_ACPI_STATUS (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiNsRepair_PRT * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if object is OK or was repaired successfully * * DESCRIPTION: Repair for the _PRT object. If necessary, fix reversed * SourceName and SourceIndex field, a common BIOS bug. * *****************************************************************************/ static ACPI_STATUS AcpiNsRepair_PRT ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *PackageObject = *ReturnObjectPtr; ACPI_OPERAND_OBJECT **TopObjectList; ACPI_OPERAND_OBJECT **SubObjectList; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_OPERAND_OBJECT *SubPackage; UINT32 ElementCount; UINT32 Index; /* Each element in the _PRT package is a subpackage */ TopObjectList = PackageObject->Package.Elements; ElementCount = PackageObject->Package.Count; /* Examine each subpackage */ for (Index = 0; Index < ElementCount; Index++, TopObjectList++) { SubPackage = *TopObjectList; SubObjectList = SubPackage->Package.Elements; /* Check for minimum required element count */ if (SubPackage->Package.Count < 4) { continue; } /* * If the BIOS has erroneously reversed the _PRT SourceName (index 2) * and the SourceIndex (index 3), fix it. _PRT is important enough to * workaround this BIOS error. This also provides compatibility with * other ACPI implementations. */ ObjDesc = SubObjectList[3]; if (!ObjDesc || (ObjDesc->Common.Type != ACPI_TYPE_INTEGER)) { SubObjectList[3] = SubObjectList[2]; SubObjectList[2] = ObjDesc; Info->ReturnFlags |= ACPI_OBJECT_REPAIRED; ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "PRT[%X]: Fixed reversed SourceName and SourceIndex", Index)); } } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiNsRepair_PSS * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if object is OK or was repaired successfully * * DESCRIPTION: Repair for the _PSS object. If necessary, sort the object list * by the CPU frequencies. Check that the power dissipation values * are all proportional to CPU frequency (i.e., sorting by * frequency should be the same as sorting by power.) * *****************************************************************************/ static ACPI_STATUS AcpiNsRepair_PSS ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_OPERAND_OBJECT **OuterElements; UINT32 OuterElementCount; ACPI_OPERAND_OBJECT **Elements; ACPI_OPERAND_OBJECT *ObjDesc; UINT32 PreviousValue; ACPI_STATUS Status; UINT32 i; /* * Entries (subpackages) in the _PSS Package must be sorted by power * dissipation, in descending order. If it appears that the list is * incorrectly sorted, sort it. We sort by CpuFrequency, since this * should be proportional to the power. */ Status = AcpiNsCheckSortedList (Info, ReturnObject, 0, 6, 0, ACPI_SORT_DESCENDING, "CpuFrequency"); if (ACPI_FAILURE (Status)) { return (Status); } /* * We now know the list is correctly sorted by CPU frequency. Check if * the power dissipation values are proportional. */ PreviousValue = ACPI_UINT32_MAX; OuterElements = ReturnObject->Package.Elements; OuterElementCount = ReturnObject->Package.Count; for (i = 0; i < OuterElementCount; i++) { Elements = (*OuterElements)->Package.Elements; ObjDesc = Elements[1]; /* Index1 = PowerDissipation */ if ((UINT32) ObjDesc->Integer.Value > PreviousValue) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, Info->NodeFlags, "SubPackage[%u,%u] - suspicious power dissipation values", i-1, i)); } PreviousValue = (UINT32) ObjDesc->Integer.Value; OuterElements++; } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiNsRepair_TSS * * PARAMETERS: Info - Method execution information block * ReturnObjectPtr - Pointer to the object returned from the * evaluation of a method or object * * RETURN: Status. AE_OK if object is OK or was repaired successfully * * DESCRIPTION: Repair for the _TSS object. If necessary, sort the object list * descending by the power dissipation values. * *****************************************************************************/ static ACPI_STATUS AcpiNsRepair_TSS ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT **ReturnObjectPtr) { ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; /* * We can only sort the _TSS return package if there is no _PSS in the * same scope. This is because if _PSS is present, the ACPI specification * dictates that the _TSS Power Dissipation field is to be ignored, and * therefore some BIOSs leave garbage values in the _TSS Power field(s). * In this case, it is best to just return the _TSS package as-is. * (May, 2011) */ Status = AcpiNsGetNode (Info->Node, "^_PSS", ACPI_NS_NO_UPSEARCH, &Node); if (ACPI_SUCCESS (Status)) { return (AE_OK); } Status = AcpiNsCheckSortedList (Info, ReturnObject, 0, 5, 1, ACPI_SORT_DESCENDING, "PowerDissipation"); return (Status); } /****************************************************************************** * * FUNCTION: AcpiNsCheckSortedList * * PARAMETERS: Info - Method execution information block * ReturnObject - Pointer to the top-level returned object * StartIndex - Index of the first subpackage * ExpectedCount - Minimum length of each subpackage * SortIndex - Subpackage entry to sort on * SortDirection - Ascending or descending * SortKeyName - Name of the SortIndex field * * RETURN: Status. AE_OK if the list is valid and is sorted correctly or * has been repaired by sorting the list. * * DESCRIPTION: Check if the package list is valid and sorted correctly by the * SortIndex. If not, then sort the list. * *****************************************************************************/ static ACPI_STATUS AcpiNsCheckSortedList ( ACPI_EVALUATE_INFO *Info, ACPI_OPERAND_OBJECT *ReturnObject, UINT32 StartIndex, UINT32 ExpectedCount, UINT32 SortIndex, UINT8 SortDirection, char *SortKeyName) { UINT32 OuterElementCount; ACPI_OPERAND_OBJECT **OuterElements; ACPI_OPERAND_OBJECT **Elements; ACPI_OPERAND_OBJECT *ObjDesc; UINT32 i; UINT32 PreviousValue; ACPI_FUNCTION_NAME (NsCheckSortedList); /* The top-level object must be a package */ if (ReturnObject->Common.Type != ACPI_TYPE_PACKAGE) { return (AE_AML_OPERAND_TYPE); } /* * NOTE: assumes list of subpackages contains no NULL elements. * Any NULL elements should have been removed by earlier call * to AcpiNsRemoveNullElements. */ OuterElementCount = ReturnObject->Package.Count; if (!OuterElementCount || StartIndex >= OuterElementCount) { return (AE_AML_PACKAGE_LIMIT); } OuterElements = &ReturnObject->Package.Elements[StartIndex]; OuterElementCount -= StartIndex; PreviousValue = 0; if (SortDirection == ACPI_SORT_DESCENDING) { PreviousValue = ACPI_UINT32_MAX; } /* Examine each subpackage */ for (i = 0; i < OuterElementCount; i++) { /* Each element of the top-level package must also be a package */ if ((*OuterElements)->Common.Type != ACPI_TYPE_PACKAGE) { return (AE_AML_OPERAND_TYPE); } /* Each subpackage must have the minimum length */ if ((*OuterElements)->Package.Count < ExpectedCount) { return (AE_AML_PACKAGE_LIMIT); } Elements = (*OuterElements)->Package.Elements; ObjDesc = Elements[SortIndex]; if (ObjDesc->Common.Type != ACPI_TYPE_INTEGER) { return (AE_AML_OPERAND_TYPE); } /* * The list must be sorted in the specified order. If we detect a * discrepancy, sort the entire list. */ if (((SortDirection == ACPI_SORT_ASCENDING) && (ObjDesc->Integer.Value < PreviousValue)) || ((SortDirection == ACPI_SORT_DESCENDING) && (ObjDesc->Integer.Value > PreviousValue))) { AcpiNsSortList (&ReturnObject->Package.Elements[StartIndex], OuterElementCount, SortIndex, SortDirection); Info->ReturnFlags |= ACPI_OBJECT_REPAIRED; ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR, "%s: Repaired unsorted list - now sorted by %s\n", Info->FullPathname, SortKeyName)); return (AE_OK); } PreviousValue = (UINT32) ObjDesc->Integer.Value; OuterElements++; } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiNsSortList * * PARAMETERS: Elements - Package object element list * Count - Element count for above * Index - Sort by which package element * SortDirection - Ascending or Descending sort * * RETURN: None * * DESCRIPTION: Sort the objects that are in a package element list. * * NOTE: Assumes that all NULL elements have been removed from the package, * and that all elements have been verified to be of type Integer. * *****************************************************************************/ static void AcpiNsSortList ( ACPI_OPERAND_OBJECT **Elements, UINT32 Count, UINT32 Index, UINT8 SortDirection) { ACPI_OPERAND_OBJECT *ObjDesc1; ACPI_OPERAND_OBJECT *ObjDesc2; ACPI_OPERAND_OBJECT *TempObj; UINT32 i; UINT32 j; /* Simple bubble sort */ for (i = 1; i < Count; i++) { for (j = (Count - 1); j >= i; j--) { ObjDesc1 = Elements[j-1]->Package.Elements[Index]; ObjDesc2 = Elements[j]->Package.Elements[Index]; if (((SortDirection == ACPI_SORT_ASCENDING) && (ObjDesc1->Integer.Value > ObjDesc2->Integer.Value)) || ((SortDirection == ACPI_SORT_DESCENDING) && (ObjDesc1->Integer.Value < ObjDesc2->Integer.Value))) { TempObj = Elements[j-1]; Elements[j-1] = Elements[j]; Elements[j] = TempObj; } } } } /****************************************************************************** * * FUNCTION: AcpiNsRemoveElement * * PARAMETERS: ObjDesc - Package object element list * Index - Index of element to remove * * RETURN: None * * DESCRIPTION: Remove the requested element of a package and delete it. * *****************************************************************************/ static void AcpiNsRemoveElement ( ACPI_OPERAND_OBJECT *ObjDesc, UINT32 Index) { ACPI_OPERAND_OBJECT **Source; ACPI_OPERAND_OBJECT **Dest; UINT32 Count; UINT32 NewCount; UINT32 i; ACPI_FUNCTION_NAME (NsRemoveElement); Count = ObjDesc->Package.Count; NewCount = Count - 1; Source = ObjDesc->Package.Elements; Dest = Source; /* Examine all elements of the package object, remove matched index */ for (i = 0; i < Count; i++) { if (i == Index) { AcpiUtRemoveReference (*Source); /* Remove one ref for being in pkg */ AcpiUtRemoveReference (*Source); } else { *Dest = *Source; Dest++; } Source++; } /* NULL terminate list and update the package count */ *Dest = NULL; ObjDesc->Package.Count = NewCount; } acpica-unix-20250404/source/components/namespace/nseval.c0000775000175000017500000002725014773714132022624 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: nseval - Object evaluation, includes control method execution * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "acinterp.h" #include "acnamesp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nseval") /******************************************************************************* * * FUNCTION: AcpiNsEvaluate * * PARAMETERS: Info - Evaluation info block, contains these fields * and more: * PrefixNode - Prefix or Method/Object Node to execute * RelativePath - Name of method to execute, If NULL, the * Node is the object to execute * Parameters - List of parameters to pass to the method, * terminated by NULL. Params itself may be * NULL if no parameters are being passed. * ParameterType - Type of Parameter list * ReturnObject - Where to put method's return value (if * any). If NULL, no value is returned. * Flags - ACPI_IGNORE_RETURN_VALUE to delete return * * RETURN: Status * * DESCRIPTION: Execute a control method or return the current value of an * ACPI namespace object. * * MUTEX: Locks interpreter * ******************************************************************************/ ACPI_STATUS AcpiNsEvaluate ( ACPI_EVALUATE_INFO *Info) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (NsEvaluate); if (!Info) { return_ACPI_STATUS (AE_BAD_PARAMETER); } if (!Info->Node) { /* * Get the actual namespace node for the target object if we * need to. Handles these cases: * * 1) Null node, valid pathname from root (absolute path) * 2) Node and valid pathname (path relative to Node) * 3) Node, Null pathname */ Status = AcpiNsGetNode (Info->PrefixNode, Info->RelativePathname, ACPI_NS_NO_UPSEARCH, &Info->Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* * For a method alias, we must grab the actual method node so that * proper scoping context will be established before execution. */ if (AcpiNsGetType (Info->Node) == ACPI_TYPE_LOCAL_METHOD_ALIAS) { Info->Node = ACPI_CAST_PTR ( ACPI_NAMESPACE_NODE, Info->Node->Object); } /* Complete the info block initialization */ Info->ReturnObject = NULL; Info->NodeFlags = Info->Node->Flags; Info->ObjDesc = AcpiNsGetAttachedObject (Info->Node); ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "%s [%p] Value %p\n", Info->RelativePathname, Info->Node, AcpiNsGetAttachedObject (Info->Node))); /* Get info if we have a predefined name (_HID, etc.) */ Info->Predefined = AcpiUtMatchPredefinedMethod (Info->Node->Name.Ascii); /* Get the full pathname to the object, for use in warning messages */ Info->FullPathname = AcpiNsGetNormalizedPathname (Info->Node, TRUE); if (!Info->FullPathname) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Optional object evaluation log */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EVALUATION, "%-26s: %s (%s)\n", " Enter evaluation", &Info->FullPathname[1], AcpiUtGetTypeName (Info->Node->Type))); /* Count the number of arguments being passed in */ Info->ParamCount = 0; if (Info->Parameters) { while (Info->Parameters[Info->ParamCount]) { Info->ParamCount++; } /* Warn on impossible argument count */ if (Info->ParamCount > ACPI_METHOD_NUM_ARGS) { ACPI_WARN_PREDEFINED ((AE_INFO, Info->FullPathname, ACPI_WARN_ALWAYS, "Excess arguments (%u) - using only %u", Info->ParamCount, ACPI_METHOD_NUM_ARGS)); Info->ParamCount = ACPI_METHOD_NUM_ARGS; } } /* * For predefined names: Check that the declared argument count * matches the ACPI spec -- otherwise this is a BIOS error. */ AcpiNsCheckAcpiCompliance (Info->FullPathname, Info->Node, Info->Predefined); /* * For all names: Check that the incoming argument count for * this method/object matches the actual ASL/AML definition. */ AcpiNsCheckArgumentCount (Info->FullPathname, Info->Node, Info->ParamCount, Info->Predefined); /* For predefined names: Typecheck all incoming arguments */ AcpiNsCheckArgumentTypes (Info); /* * Three major evaluation cases: * * 1) Object types that cannot be evaluated by definition * 2) The object is a control method -- execute it * 3) The object is not a method -- just return it's current value */ switch (AcpiNsGetType (Info->Node)) { case ACPI_TYPE_ANY: case ACPI_TYPE_DEVICE: case ACPI_TYPE_EVENT: case ACPI_TYPE_MUTEX: case ACPI_TYPE_REGION: case ACPI_TYPE_THERMAL: case ACPI_TYPE_LOCAL_SCOPE: /* * 1) Disallow evaluation of these object types. For these, * object evaluation is undefined. */ ACPI_ERROR ((AE_INFO, "%s: This object type [%s] " "never contains data and cannot be evaluated", Info->FullPathname, AcpiUtGetTypeName (Info->Node->Type))); Status = AE_TYPE; goto Cleanup; case ACPI_TYPE_METHOD: /* * 2) Object is a control method - execute it */ /* Verify that there is a method object associated with this node */ if (!Info->ObjDesc) { ACPI_ERROR ((AE_INFO, "%s: Method has no attached sub-object", Info->FullPathname)); Status = AE_NULL_OBJECT; goto Cleanup; } ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "**** Execute method [%s] at AML address %p length %X\n", Info->FullPathname, Info->ObjDesc->Method.AmlStart + 1, Info->ObjDesc->Method.AmlLength - 1)); /* * Any namespace deletion must acquire both the namespace and * interpreter locks to ensure that no thread is using the portion of * the namespace that is being deleted. * * Execute the method via the interpreter. The interpreter is locked * here before calling into the AML parser */ AcpiExEnterInterpreter (); Status = AcpiPsExecuteMethod (Info); AcpiExExitInterpreter (); break; default: /* * 3) All other non-method objects -- get the current object value */ /* * Some objects require additional resolution steps (e.g., the Node * may be a field that must be read, etc.) -- we can't just grab * the object out of the node. * * Use ResolveNodeToValue() to get the associated value. * * NOTE: we can get away with passing in NULL for a walk state because * the Node is guaranteed to not be a reference to either a method * local or a method argument (because this interface is never called * from a running method.) * * Even though we do not directly invoke the interpreter for object * resolution, we must lock it because we could access an OpRegion. * The OpRegion access code assumes that the interpreter is locked. */ AcpiExEnterInterpreter (); /* TBD: ResolveNodeToValue has a strange interface, fix */ Info->ReturnObject = ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, Info->Node); Status = AcpiExResolveNodeToValue (ACPI_CAST_INDIRECT_PTR ( ACPI_NAMESPACE_NODE, &Info->ReturnObject), NULL); AcpiExExitInterpreter (); if (ACPI_FAILURE (Status)) { Info->ReturnObject = NULL; goto Cleanup; } ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Returned object %p [%s]\n", Info->ReturnObject, AcpiUtGetObjectTypeName (Info->ReturnObject))); Status = AE_CTRL_RETURN_VALUE; /* Always has a "return value" */ break; } /* * For predefined names, check the return value against the ACPI * specification. Some incorrect return value types are repaired. */ (void) AcpiNsCheckReturnValue (Info->Node, Info, Info->ParamCount, Status, &Info->ReturnObject); /* Check if there is a return value that must be dealt with */ if (Status == AE_CTRL_RETURN_VALUE) { /* If caller does not want the return value, delete it */ if (Info->Flags & ACPI_IGNORE_RETURN_VALUE) { AcpiUtRemoveReference (Info->ReturnObject); Info->ReturnObject = NULL; } /* Map AE_CTRL_RETURN_VALUE to AE_OK, we are done with it */ Status = AE_OK; } else if (ACPI_FAILURE(Status)) { /* If ReturnObject exists, delete it */ if (Info->ReturnObject) { AcpiUtRemoveReference (Info->ReturnObject); Info->ReturnObject = NULL; } } ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "*** Completed evaluation of object %s ***\n", Info->RelativePathname)); Cleanup: /* Optional object evaluation log */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_EVALUATION, "%-26s: %s\n", " Exit evaluation", &Info->FullPathname[1])); /* * Namespace was unlocked by the handling AcpiNs* function, so we * just free the pathname and return */ ACPI_FREE (Info->FullPathname); Info->FullPathname = NULL; return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/namespace/nsutils.c0000775000175000017500000005727214773714132023044 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsutils - Utilities for accessing ACPI namespace, accessing * parents and siblings and Scope manipulation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "amlcode.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsutils") /* Local prototypes */ #ifdef ACPI_OBSOLETE_FUNCTIONS ACPI_NAME AcpiNsFindParentName ( ACPI_NAMESPACE_NODE *NodeToSearch); #endif /******************************************************************************* * * FUNCTION: AcpiNsPrintNodePathname * * PARAMETERS: Node - Object * Message - Prefix message * * DESCRIPTION: Print an object's full namespace pathname * Manages allocation/freeing of a pathname buffer * ******************************************************************************/ void AcpiNsPrintNodePathname ( ACPI_NAMESPACE_NODE *Node, const char *Message) { ACPI_BUFFER Buffer; ACPI_STATUS Status; if (!Node) { AcpiOsPrintf ("[NULL NAME]"); return; } /* Convert handle to full pathname and print it (with supplied message) */ Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (Node, &Buffer, TRUE); if (ACPI_SUCCESS (Status)) { if (Message) { AcpiOsPrintf ("%s ", Message); } AcpiOsPrintf ("%s", (char *) Buffer.Pointer); ACPI_FREE (Buffer.Pointer); } } /******************************************************************************* * * FUNCTION: AcpiNsGetType * * PARAMETERS: Node - Parent Node to be examined * * RETURN: Type field from Node whose handle is passed * * DESCRIPTION: Return the type of a Namespace node * ******************************************************************************/ ACPI_OBJECT_TYPE AcpiNsGetType ( ACPI_NAMESPACE_NODE *Node) { ACPI_FUNCTION_TRACE (NsGetType); if (!Node) { ACPI_WARNING ((AE_INFO, "Null Node parameter")); return_UINT8 (ACPI_TYPE_ANY); } return_UINT8 (Node->Type); } /******************************************************************************* * * FUNCTION: AcpiNsLocal * * PARAMETERS: Type - A namespace object type * * RETURN: LOCAL if names must be found locally in objects of the * passed type, 0 if enclosing scopes should be searched * * DESCRIPTION: Returns scope rule for the given object type. * ******************************************************************************/ UINT32 AcpiNsLocal ( ACPI_OBJECT_TYPE Type) { ACPI_FUNCTION_TRACE (NsLocal); if (!AcpiUtValidObjectType (Type)) { /* Type code out of range */ ACPI_WARNING ((AE_INFO, "Invalid Object Type 0x%X", Type)); return_UINT32 (ACPI_NS_NORMAL); } return_UINT32 (AcpiGbl_NsProperties[Type] & ACPI_NS_LOCAL); } /******************************************************************************* * * FUNCTION: AcpiNsGetInternalNameLength * * PARAMETERS: Info - Info struct initialized with the * external name pointer. * * RETURN: None * * DESCRIPTION: Calculate the length of the internal (AML) namestring * corresponding to the external (ASL) namestring. * ******************************************************************************/ void AcpiNsGetInternalNameLength ( ACPI_NAMESTRING_INFO *Info) { const char *NextExternalChar; UINT32 i; ACPI_FUNCTION_ENTRY (); NextExternalChar = Info->ExternalName; Info->NumCarats = 0; Info->NumSegments = 0; Info->FullyQualified = FALSE; /* * For the internal name, the required length is 4 bytes per segment, * plus 1 each for RootPrefix, MultiNamePrefixOp, segment count, * trailing null (which is not really needed, but no there's harm in * putting it there) * * strlen() + 1 covers the first NameSeg, which has no path separator */ if (ACPI_IS_ROOT_PREFIX (*NextExternalChar)) { Info->FullyQualified = TRUE; NextExternalChar++; /* Skip redundant RootPrefix, like \\_SB.PCI0.SBRG.EC0 */ while (ACPI_IS_ROOT_PREFIX (*NextExternalChar)) { NextExternalChar++; } } else { /* Handle Carat prefixes */ while (ACPI_IS_PARENT_PREFIX (*NextExternalChar)) { Info->NumCarats++; NextExternalChar++; } } /* * Determine the number of ACPI name "segments" by counting the number of * path separators within the string. Start with one segment since the * segment count is [(# separators) + 1], and zero separators is ok. */ if (*NextExternalChar) { Info->NumSegments = 1; for (i = 0; NextExternalChar[i]; i++) { if (ACPI_IS_PATH_SEPARATOR (NextExternalChar[i])) { Info->NumSegments++; } } } Info->Length = (ACPI_NAMESEG_SIZE * Info->NumSegments) + 4 + Info->NumCarats; Info->NextExternalChar = NextExternalChar; } /******************************************************************************* * * FUNCTION: AcpiNsBuildInternalName * * PARAMETERS: Info - Info struct fully initialized * * RETURN: Status * * DESCRIPTION: Construct the internal (AML) namestring * corresponding to the external (ASL) namestring. * ******************************************************************************/ ACPI_STATUS AcpiNsBuildInternalName ( ACPI_NAMESTRING_INFO *Info) { UINT32 NumSegments = Info->NumSegments; char *InternalName = Info->InternalName; const char *ExternalName = Info->NextExternalChar; char *Result = NULL; UINT32 i; ACPI_FUNCTION_TRACE (NsBuildInternalName); /* Setup the correct prefixes, counts, and pointers */ if (Info->FullyQualified) { InternalName[0] = AML_ROOT_PREFIX; if (NumSegments <= 1) { Result = &InternalName[1]; } else if (NumSegments == 2) { InternalName[1] = AML_DUAL_NAME_PREFIX; Result = &InternalName[2]; } else { InternalName[1] = AML_MULTI_NAME_PREFIX; InternalName[2] = (char) NumSegments; Result = &InternalName[3]; } } else { /* * Not fully qualified. * Handle Carats first, then append the name segments */ i = 0; if (Info->NumCarats) { for (i = 0; i < Info->NumCarats; i++) { InternalName[i] = AML_PARENT_PREFIX; } } if (NumSegments <= 1) { Result = &InternalName[i]; } else if (NumSegments == 2) { InternalName[i] = AML_DUAL_NAME_PREFIX; Result = &InternalName[(ACPI_SIZE) i+1]; } else { InternalName[i] = AML_MULTI_NAME_PREFIX; InternalName[(ACPI_SIZE) i+1] = (char) NumSegments; Result = &InternalName[(ACPI_SIZE) i+2]; } } /* Build the name (minus path separators) */ for (; NumSegments; NumSegments--) { for (i = 0; i < ACPI_NAMESEG_SIZE; i++) { if (ACPI_IS_PATH_SEPARATOR (*ExternalName) || (*ExternalName == 0)) { /* Pad the segment with underscore(s) if segment is short */ Result[i] = '_'; } else { /* Convert the character to uppercase and save it */ Result[i] = (char) toupper ((int) *ExternalName); ExternalName++; } } /* Now we must have a path separator, or the pathname is bad */ if (!ACPI_IS_PATH_SEPARATOR (*ExternalName) && (*ExternalName != 0)) { return_ACPI_STATUS (AE_BAD_PATHNAME); } /* Move on the next segment */ ExternalName++; Result += ACPI_NAMESEG_SIZE; } /* Terminate the string */ *Result = 0; if (Info->FullyQualified) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Returning [%p] (abs) \"\\%s\"\n", InternalName, InternalName)); } else { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Returning [%p] (rel) \"%s\"\n", InternalName, InternalName)); } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsInternalizeName * * PARAMETERS: *ExternalName - External representation of name * **Converted Name - Where to return the resulting * internal representation of the name * * RETURN: Status * * DESCRIPTION: Convert an external representation (e.g. "\_PR_.CPU0") * to internal form (e.g. 5c 2f 02 5f 50 52 5f 43 50 55 30) * *******************************************************************************/ ACPI_STATUS AcpiNsInternalizeName ( const char *ExternalName, char **ConvertedName) { char *InternalName; ACPI_NAMESTRING_INFO Info; ACPI_STATUS Status; ACPI_FUNCTION_TRACE (NsInternalizeName); if ((!ExternalName) || (*ExternalName == 0) || (!ConvertedName)) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Get the length of the new internal name */ Info.ExternalName = ExternalName; AcpiNsGetInternalNameLength (&Info); /* We need a segment to store the internal name */ InternalName = ACPI_ALLOCATE_ZEROED (Info.Length); if (!InternalName) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Build the name */ Info.InternalName = InternalName; Status = AcpiNsBuildInternalName (&Info); if (ACPI_FAILURE (Status)) { ACPI_FREE (InternalName); return_ACPI_STATUS (Status); } *ConvertedName = InternalName; return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsExternalizeName * * PARAMETERS: InternalNameLength - Length of the internal name below * InternalName - Internal representation of name * ConvertedNameLength - Where the length is returned * ConvertedName - Where the resulting external name * is returned * * RETURN: Status * * DESCRIPTION: Convert internal name (e.g. 5c 2f 02 5f 50 52 5f 43 50 55 30) * to its external (printable) form (e.g. "\_PR_.CPU0") * ******************************************************************************/ ACPI_STATUS AcpiNsExternalizeName ( UINT32 InternalNameLength, const char *InternalName, UINT32 *ConvertedNameLength, char **ConvertedName) { UINT32 NamesIndex = 0; UINT32 NumSegments = 0; UINT32 RequiredLength; UINT32 PrefixLength = 0; UINT32 i = 0; UINT32 j = 0; ACPI_FUNCTION_TRACE (NsExternalizeName); if (!InternalNameLength || !InternalName || !ConvertedName) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Check for a prefix (one '\' | one or more '^') */ switch (InternalName[0]) { case AML_ROOT_PREFIX: PrefixLength = 1; break; case AML_PARENT_PREFIX: for (i = 0; i < InternalNameLength; i++) { if (ACPI_IS_PARENT_PREFIX (InternalName[i])) { PrefixLength = i + 1; } else { break; } } if (i == InternalNameLength) { PrefixLength = i; } break; default: break; } /* * Check for object names. Note that there could be 0-255 of these * 4-byte elements. */ if (PrefixLength < InternalNameLength) { switch (InternalName[PrefixLength]) { case AML_MULTI_NAME_PREFIX: /* 4-byte names */ NamesIndex = PrefixLength + 2; NumSegments = (UINT8) InternalName[(ACPI_SIZE) PrefixLength + 1]; break; case AML_DUAL_NAME_PREFIX: /* Two 4-byte names */ NamesIndex = PrefixLength + 1; NumSegments = 2; break; case 0: /* NullName */ NamesIndex = 0; NumSegments = 0; break; default: /* one 4-byte name */ NamesIndex = PrefixLength; NumSegments = 1; break; } } /* * Calculate the length of ConvertedName, which equals the length * of the prefix, length of all object names, length of any required * punctuation ('.') between object names, plus the NULL terminator. */ RequiredLength = PrefixLength + (4 * NumSegments) + ((NumSegments > 0) ? (NumSegments - 1) : 0) + 1; /* * Check to see if we're still in bounds. If not, there's a problem * with InternalName (invalid format). */ if (RequiredLength > InternalNameLength) { ACPI_ERROR ((AE_INFO, "Invalid internal name")); return_ACPI_STATUS (AE_BAD_PATHNAME); } /* Build the ConvertedName */ *ConvertedName = ACPI_ALLOCATE_ZEROED (RequiredLength); if (!(*ConvertedName)) { return_ACPI_STATUS (AE_NO_MEMORY); } j = 0; for (i = 0; i < PrefixLength; i++) { (*ConvertedName)[j++] = InternalName[i]; } if (NumSegments > 0) { for (i = 0; i < NumSegments; i++) { if (i > 0) { (*ConvertedName)[j++] = '.'; } /* Copy and validate the 4-char name segment */ ACPI_COPY_NAMESEG (&(*ConvertedName)[j], &InternalName[NamesIndex]); AcpiUtRepairName (&(*ConvertedName)[j]); j += ACPI_NAMESEG_SIZE; NamesIndex += ACPI_NAMESEG_SIZE; } } if (ConvertedNameLength) { *ConvertedNameLength = (UINT32) RequiredLength; } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsValidateHandle * * PARAMETERS: Handle - Handle to be validated and typecast to a * namespace node. * * RETURN: A pointer to a namespace node * * DESCRIPTION: Convert a namespace handle to a namespace node. Handles special * cases for the root node. * * NOTE: Real integer handles would allow for more verification * and keep all pointers within this subsystem - however this introduces * more overhead and has not been necessary to this point. Drivers * holding handles are typically notified before a node becomes invalid * due to a table unload. * ******************************************************************************/ ACPI_NAMESPACE_NODE * AcpiNsValidateHandle ( ACPI_HANDLE Handle) { ACPI_FUNCTION_ENTRY (); /* Parameter validation */ if ((!Handle) || (Handle == ACPI_ROOT_OBJECT)) { return (AcpiGbl_RootNode); } /* We can at least attempt to verify the handle */ if (ACPI_GET_DESCRIPTOR_TYPE (Handle) != ACPI_DESC_TYPE_NAMED) { return (NULL); } return (ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Handle)); } /******************************************************************************* * * FUNCTION: AcpiNsTerminate * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: free memory allocated for namespace and ACPI table storage. * ******************************************************************************/ void AcpiNsTerminate ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (NsTerminate); /* * Free the entire namespace -- all nodes and all objects * attached to the nodes */ AcpiNsDeleteNamespaceSubtree (AcpiGbl_RootNode); /* Delete any objects attached to the root node */ Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_VOID; } AcpiNsDeleteNode (AcpiGbl_RootNode); (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Namespace freed\n")); return_VOID; } /******************************************************************************* * * FUNCTION: AcpiNsOpensScope * * PARAMETERS: Type - A valid namespace type * * RETURN: NEWSCOPE if the passed type "opens a name scope" according * to the ACPI specification, else 0 * ******************************************************************************/ UINT32 AcpiNsOpensScope ( ACPI_OBJECT_TYPE Type) { ACPI_FUNCTION_ENTRY (); if (Type > ACPI_TYPE_LOCAL_MAX) { /* type code out of range */ ACPI_WARNING ((AE_INFO, "Invalid Object Type 0x%X", Type)); return (ACPI_NS_NORMAL); } return (((UINT32) AcpiGbl_NsProperties[Type]) & ACPI_NS_NEWSCOPE); } /******************************************************************************* * * FUNCTION: AcpiNsGetNodeUnlocked * * PARAMETERS: *Pathname - Name to be found, in external (ASL) format. The * \ (backslash) and ^ (carat) prefixes, and the * . (period) to separate segments are supported. * PrefixNode - Root of subtree to be searched, or NS_ALL for the * root of the name space. If Name is fully * qualified (first INT8 is '\'), the passed value * of Scope will not be accessed. * Flags - Used to indicate whether to perform upsearch or * not. * ReturnNode - Where the Node is returned * * DESCRIPTION: Look up a name relative to a given scope and return the * corresponding Node. NOTE: Scope can be null. * * MUTEX: Doesn't locks namespace * ******************************************************************************/ ACPI_STATUS AcpiNsGetNodeUnlocked ( ACPI_NAMESPACE_NODE *PrefixNode, const char *Pathname, UINT32 Flags, ACPI_NAMESPACE_NODE **ReturnNode) { ACPI_GENERIC_STATE ScopeInfo; ACPI_STATUS Status; char *InternalPath; ACPI_FUNCTION_TRACE_PTR (NsGetNodeUnlocked, ACPI_CAST_PTR (char, Pathname)); /* Simplest case is a null pathname */ if (!Pathname) { *ReturnNode = PrefixNode; if (!PrefixNode) { *ReturnNode = AcpiGbl_RootNode; } return_ACPI_STATUS (AE_OK); } /* Quick check for a reference to the root */ if (ACPI_IS_ROOT_PREFIX (Pathname[0]) && (!Pathname[1])) { *ReturnNode = AcpiGbl_RootNode; return_ACPI_STATUS (AE_OK); } /* Convert path to internal representation */ Status = AcpiNsInternalizeName (Pathname, &InternalPath); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Setup lookup scope (search starting point) */ ScopeInfo.Scope.Node = PrefixNode; /* Lookup the name in the namespace */ Status = AcpiNsLookup (&ScopeInfo, InternalPath, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, (Flags | ACPI_NS_DONT_OPEN_SCOPE), NULL, ReturnNode); if (ACPI_FAILURE (Status)) { ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%s, %s\n", Pathname, AcpiFormatException (Status))); } ACPI_FREE (InternalPath); return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: AcpiNsGetNode * * PARAMETERS: *Pathname - Name to be found, in external (ASL) format. The * \ (backslash) and ^ (carat) prefixes, and the * . (period) to separate segments are supported. * PrefixNode - Root of subtree to be searched, or NS_ALL for the * root of the name space. If Name is fully * qualified (first INT8 is '\'), the passed value * of Scope will not be accessed. * Flags - Used to indicate whether to perform upsearch or * not. * ReturnNode - Where the Node is returned * * DESCRIPTION: Look up a name relative to a given scope and return the * corresponding Node. NOTE: Scope can be null. * * MUTEX: Locks namespace * ******************************************************************************/ ACPI_STATUS AcpiNsGetNode ( ACPI_NAMESPACE_NODE *PrefixNode, const char *Pathname, UINT32 Flags, ACPI_NAMESPACE_NODE **ReturnNode) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE_PTR (NsGetNode, ACPI_CAST_PTR (char, Pathname)); Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiNsGetNodeUnlocked (PrefixNode, Pathname, Flags, ReturnNode); (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } acpica-unix-20250404/source/components/namespace/nssearch.c0000775000175000017500000003636414773714132023150 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: nssearch - Namespace search * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #ifdef ACPI_ASL_COMPILER #include "amlcode.h" #endif #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nssearch") /* Local prototypes */ static ACPI_STATUS AcpiNsSearchParentTree ( UINT32 TargetName, ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_TYPE Type, ACPI_NAMESPACE_NODE **ReturnNode); /******************************************************************************* * * FUNCTION: AcpiNsSearchOneScope * * PARAMETERS: TargetName - Ascii ACPI name to search for * ParentNode - Starting node where search will begin * Type - Object type to match * ReturnNode - Where the matched Named obj is returned * * RETURN: Status * * DESCRIPTION: Search a single level of the namespace. Performs a * simple search of the specified level, and does not add * entries or search parents. * * * Named object lists are built (and subsequently dumped) in the * order in which the names are encountered during the namespace load; * * All namespace searching is linear in this implementation, but * could be easily modified to support any improved search * algorithm. However, the linear search was chosen for simplicity * and because the trees are small and the other interpreter * execution overhead is relatively high. * * Note: CPU execution analysis has shown that the AML interpreter spends * a very small percentage of its time searching the namespace. Therefore, * the linear search seems to be sufficient, as there would seem to be * little value in improving the search. * ******************************************************************************/ ACPI_STATUS AcpiNsSearchOneScope ( UINT32 TargetName, ACPI_NAMESPACE_NODE *ParentNode, ACPI_OBJECT_TYPE Type, ACPI_NAMESPACE_NODE **ReturnNode) { ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (NsSearchOneScope); #ifdef ACPI_DEBUG_OUTPUT if (ACPI_LV_NAMES & AcpiDbgLevel) { char *ScopeName; ScopeName = AcpiNsGetNormalizedPathname (ParentNode, TRUE); if (ScopeName) { ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Searching %s (%p) For [%4.4s] (%s)\n", ScopeName, ParentNode, ACPI_CAST_PTR (char, &TargetName), AcpiUtGetTypeName (Type))); ACPI_FREE (ScopeName); } } #endif /* * Search for name at this namespace level, which is to say that we * must search for the name among the children of this object */ Node = ParentNode->Child; while (Node) { /* Check for match against the name */ if (Node->Name.Integer == TargetName) { /* Resolve a control method alias if any */ if (AcpiNsGetType (Node) == ACPI_TYPE_LOCAL_METHOD_ALIAS) { Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Node->Object); } /* Found matching entry */ ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Name [%4.4s] (%s) %p found in scope [%4.4s] %p\n", ACPI_CAST_PTR (char, &TargetName), AcpiUtGetTypeName (Node->Type), Node, AcpiUtGetNodeName (ParentNode), ParentNode)); *ReturnNode = Node; return_ACPI_STATUS (AE_OK); } /* Didn't match name, move on to the next peer object */ Node = Node->Peer; } /* Searched entire namespace level, not found */ ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Name [%4.4s] (%s) not found in search in scope [%4.4s] " "%p first child %p\n", ACPI_CAST_PTR (char, &TargetName), AcpiUtGetTypeName (Type), AcpiUtGetNodeName (ParentNode), ParentNode, ParentNode->Child)); return_ACPI_STATUS (AE_NOT_FOUND); } /******************************************************************************* * * FUNCTION: AcpiNsSearchParentTree * * PARAMETERS: TargetName - Ascii ACPI name to search for * Node - Starting node where search will begin * Type - Object type to match * ReturnNode - Where the matched Node is returned * * RETURN: Status * * DESCRIPTION: Called when a name has not been found in the current namespace * level. Before adding it or giving up, ACPI scope rules require * searching enclosing scopes in cases identified by AcpiNsLocal(). * * "A name is located by finding the matching name in the current * name space, and then in the parent name space. If the parent * name space does not contain the name, the search continues * recursively until either the name is found or the name space * does not have a parent (the root of the name space). This * indicates that the name is not found" (From ACPI Specification, * section 5.3) * ******************************************************************************/ static ACPI_STATUS AcpiNsSearchParentTree ( UINT32 TargetName, ACPI_NAMESPACE_NODE *Node, ACPI_OBJECT_TYPE Type, ACPI_NAMESPACE_NODE **ReturnNode) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *ParentNode; ACPI_FUNCTION_TRACE (NsSearchParentTree); ParentNode = Node->Parent; /* * If there is no parent (i.e., we are at the root) or type is "local", * we won't be searching the parent tree. */ if (!ParentNode) { ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "[%4.4s] has no parent\n", ACPI_CAST_PTR (char, &TargetName))); return_ACPI_STATUS (AE_NOT_FOUND); } if (AcpiNsLocal (Type)) { ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "[%4.4s] type [%s] must be local to this scope (no parent search)\n", ACPI_CAST_PTR (char, &TargetName), AcpiUtGetTypeName (Type))); return_ACPI_STATUS (AE_NOT_FOUND); } /* Search the parent tree */ ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Searching parent [%4.4s] for [%4.4s]\n", AcpiUtGetNodeName (ParentNode), ACPI_CAST_PTR (char, &TargetName))); /* Search parents until target is found or we have backed up to the root */ while (ParentNode) { /* * Search parent scope. Use TYPE_ANY because we don't care about the * object type at this point, we only care about the existence of * the actual name we are searching for. Typechecking comes later. */ Status = AcpiNsSearchOneScope ( TargetName, ParentNode, ACPI_TYPE_ANY, ReturnNode); if (ACPI_SUCCESS (Status)) { return_ACPI_STATUS (Status); } /* Not found here, go up another level (until we reach the root) */ ParentNode = ParentNode->Parent; } /* Not found in parent tree */ return_ACPI_STATUS (AE_NOT_FOUND); } /******************************************************************************* * * FUNCTION: AcpiNsSearchAndEnter * * PARAMETERS: TargetName - Ascii ACPI name to search for (4 chars) * WalkState - Current state of the walk * Node - Starting node where search will begin * InterpreterMode - Add names only in ACPI_MODE_LOAD_PASS_x. * Otherwise,search only. * Type - Object type to match * Flags - Flags describing the search restrictions * ReturnNode - Where the Node is returned * * RETURN: Status * * DESCRIPTION: Search for a name segment in a single namespace level, * optionally adding it if it is not found. If the passed * Type is not Any and the type previously stored in the * entry was Any (i.e. unknown), update the stored type. * * In ACPI_IMODE_EXECUTE, search only. * In other modes, search and add if not found. * ******************************************************************************/ ACPI_STATUS AcpiNsSearchAndEnter ( UINT32 TargetName, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *Node, ACPI_INTERPRETER_MODE InterpreterMode, ACPI_OBJECT_TYPE Type, UINT32 Flags, ACPI_NAMESPACE_NODE **ReturnNode) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *NewNode; ACPI_FUNCTION_TRACE (NsSearchAndEnter); /* Parameter validation */ if (!Node || !TargetName || !ReturnNode) { ACPI_ERROR ((AE_INFO, "Null parameter: Node %p Name 0x%X ReturnNode %p", Node, TargetName, ReturnNode)); return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * Name must consist of valid ACPI characters. We will repair the name if * necessary because we don't want to abort because of this, but we want * all namespace names to be printable. A warning message is appropriate. * * This issue came up because there are in fact machines that exhibit * this problem, and we want to be able to enable ACPI support for them, * even though there are a few bad names. */ AcpiUtRepairName (ACPI_CAST_PTR (char, &TargetName)); /* Try to find the name in the namespace level specified by the caller */ *ReturnNode = ACPI_ENTRY_NOT_FOUND; Status = AcpiNsSearchOneScope (TargetName, Node, Type, ReturnNode); if (Status != AE_NOT_FOUND) { /* * If we found it AND the request specifies that a find is an error, * return the error */ if (Status == AE_OK) { /* The node was found in the namespace */ /* * If the namespace override feature is enabled for this node, * delete any existing attached sub-object and make the node * look like a new node that is owned by the override table. */ if (Flags & ACPI_NS_OVERRIDE_IF_FOUND) { ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Namespace override: %4.4s pass %u type %X Owner %X\n", ACPI_CAST_PTR(char, &TargetName), InterpreterMode, (*ReturnNode)->Type, WalkState->OwnerId)); AcpiNsDeleteChildren (*ReturnNode); if (AcpiGbl_RuntimeNamespaceOverride) { AcpiUtRemoveReference ((*ReturnNode)->Object); (*ReturnNode)->Object = NULL; (*ReturnNode)->OwnerId = WalkState->OwnerId; } else { AcpiNsRemoveNode (*ReturnNode); *ReturnNode = ACPI_ENTRY_NOT_FOUND; } } /* Return an error if we don't expect to find the object */ else if (Flags & ACPI_NS_ERROR_IF_FOUND) { Status = AE_ALREADY_EXISTS; } } #ifdef ACPI_ASL_COMPILER if (*ReturnNode && (*ReturnNode)->Type == ACPI_TYPE_ANY) { (*ReturnNode)->Flags |= ANOBJ_IS_EXTERNAL; } #endif /* Either found it or there was an error: finished either way */ return_ACPI_STATUS (Status); } /* * The name was not found. If we are NOT performing the first pass * (name entry) of loading the namespace, search the parent tree (all the * way to the root if necessary.) We don't want to perform the parent * search when the namespace is actually being loaded. We want to perform * the search when namespace references are being resolved (load pass 2) * and during the execution phase. */ if ((InterpreterMode != ACPI_IMODE_LOAD_PASS1) && (Flags & ACPI_NS_SEARCH_PARENT)) { /* * Not found at this level - search parent tree according to the * ACPI specification */ Status = AcpiNsSearchParentTree (TargetName, Node, Type, ReturnNode); if (ACPI_SUCCESS (Status)) { return_ACPI_STATUS (Status); } } /* In execute mode, just search, never add names. Exit now */ if (InterpreterMode == ACPI_IMODE_EXECUTE) { ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "%4.4s Not found in %p [Not adding]\n", ACPI_CAST_PTR (char, &TargetName), Node)); return_ACPI_STATUS (AE_NOT_FOUND); } /* Create the new named object */ NewNode = AcpiNsCreateNode (TargetName); if (!NewNode) { return_ACPI_STATUS (AE_NO_MEMORY); } #ifdef ACPI_ASL_COMPILER /* Node is an object defined by an External() statement */ if (Flags & ACPI_NS_EXTERNAL || (WalkState && WalkState->Opcode == AML_SCOPE_OP)) { NewNode->Flags |= ANOBJ_IS_EXTERNAL; } #endif if (Flags & ACPI_NS_TEMPORARY) { NewNode->Flags |= ANOBJ_TEMPORARY; } /* Install the new object into the parent's list of children */ AcpiNsInstallNode (WalkState, Node, NewNode, Type); *ReturnNode = NewNode; return_ACPI_STATUS (AE_OK); } acpica-unix-20250404/source/components/namespace/nsload.c0000775000175000017500000002413714773714132022615 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: nsload - namespace loading/expanding/contracting procedures * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acdispat.h" #include "actables.h" #include "acinterp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsload") /* Local prototypes */ #ifdef ACPI_FUTURE_IMPLEMENTATION ACPI_STATUS AcpiNsUnloadNamespace ( ACPI_HANDLE Handle); static ACPI_STATUS AcpiNsDeleteSubtree ( ACPI_HANDLE StartHandle); #endif /******************************************************************************* * * FUNCTION: AcpiNsLoadTable * * PARAMETERS: TableIndex - Index for table to be loaded * Node - Owning NS node * * RETURN: Status * * DESCRIPTION: Load one ACPI table into the namespace * ******************************************************************************/ ACPI_STATUS AcpiNsLoadTable ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *Node) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (NsLoadTable); /* If table already loaded into namespace, just return */ if (AcpiTbIsTableLoaded (TableIndex)) { Status = AE_ALREADY_EXISTS; goto Unlock; } ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "**** Loading table into namespace ****\n")); Status = AcpiTbAllocateOwnerId (TableIndex); if (ACPI_FAILURE (Status)) { goto Unlock; } /* * Parse the table and load the namespace with all named * objects found within. Control methods are NOT parsed * at this time. In fact, the control methods cannot be * parsed until the entire namespace is loaded, because * if a control method makes a forward reference (call) * to another control method, we can't continue parsing * because we don't know how many arguments to parse next! */ Status = AcpiNsParseTable (TableIndex, Node); if (ACPI_SUCCESS (Status)) { AcpiTbSetTableLoadedFlag (TableIndex, TRUE); } else { /* * On error, delete any namespace objects created by this table. * We cannot initialize these objects, so delete them. There are * a couple of especially bad cases: * AE_ALREADY_EXISTS - namespace collision. * AE_NOT_FOUND - the target of a Scope operator does not * exist. This target of Scope must already exist in the * namespace, as per the ACPI specification. */ AcpiNsDeleteNamespaceByOwner ( AcpiGbl_RootTableList.Tables[TableIndex].OwnerId); AcpiTbReleaseOwnerId (TableIndex); return_ACPI_STATUS (Status); } Unlock: if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Now we can parse the control methods. We always parse * them here for a sanity check, and if configured for * just-in-time parsing, we delete the control method * parse trees. */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "**** Begin Table Object Initialization\n")); AcpiExEnterInterpreter (); Status = AcpiDsInitializeObjects (TableIndex, Node); AcpiExExitInterpreter (); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "**** Completed Table Object Initialization\n")); return_ACPI_STATUS (Status); } #ifdef ACPI_OBSOLETE_FUNCTIONS /******************************************************************************* * * FUNCTION: AcpiLoadNamespace * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Load the name space from what ever is pointed to by DSDT. * (DSDT points to either the BIOS or a buffer.) * ******************************************************************************/ ACPI_STATUS AcpiNsLoadNamespace ( void) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiLoadNameSpace); /* There must be at least a DSDT installed */ if (AcpiGbl_DSDT == NULL) { ACPI_ERROR ((AE_INFO, "DSDT is not in memory")); return_ACPI_STATUS (AE_NO_ACPI_TABLES); } /* * Load the namespace. The DSDT is required, * but the SSDT and PSDT tables are optional. */ Status = AcpiNsLoadTableByType (ACPI_TABLE_ID_DSDT); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Ignore exceptions from these */ (void) AcpiNsLoadTableByType (ACPI_TABLE_ID_SSDT); (void) AcpiNsLoadTableByType (ACPI_TABLE_ID_PSDT); ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "ACPI Namespace successfully loaded at root %p\n", AcpiGbl_RootNode)); return_ACPI_STATUS (Status); } #endif #ifdef ACPI_FUTURE_IMPLEMENTATION /******************************************************************************* * * FUNCTION: AcpiNsDeleteSubtree * * PARAMETERS: StartHandle - Handle in namespace where search begins * * RETURNS Status * * DESCRIPTION: Walks the namespace starting at the given handle and deletes * all objects, entries, and scopes in the entire subtree. * * Namespace/Interpreter should be locked or the subsystem should * be in shutdown before this routine is called. * ******************************************************************************/ static ACPI_STATUS AcpiNsDeleteSubtree ( ACPI_HANDLE StartHandle) { ACPI_STATUS Status; ACPI_HANDLE ChildHandle; ACPI_HANDLE ParentHandle; ACPI_HANDLE NextChildHandle; ACPI_HANDLE Dummy; UINT32 Level; ACPI_FUNCTION_TRACE (NsDeleteSubtree); ParentHandle = StartHandle; ChildHandle = NULL; Level = 1; /* * Traverse the tree of objects until we bubble back up * to where we started. */ while (Level > 0) { /* Attempt to get the next object in this scope */ Status = AcpiGetNextObject (ACPI_TYPE_ANY, ParentHandle, ChildHandle, &NextChildHandle); ChildHandle = NextChildHandle; /* Did we get a new object? */ if (ACPI_SUCCESS (Status)) { /* Check if this object has any children */ if (ACPI_SUCCESS (AcpiGetNextObject (ACPI_TYPE_ANY, ChildHandle, NULL, &Dummy))) { /* * There is at least one child of this object, * visit the object */ Level++; ParentHandle = ChildHandle; ChildHandle = NULL; } } else { /* * No more children in this object, go back up to * the object's parent */ Level--; /* Delete all children now */ AcpiNsDeleteChildren (ChildHandle); ChildHandle = ParentHandle; Status = AcpiGetParent (ParentHandle, &ParentHandle); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } } /* Now delete the starting object, and we are done */ AcpiNsRemoveNode (ChildHandle); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsUnloadNameSpace * * PARAMETERS: Handle - Root of namespace subtree to be deleted * * RETURN: Status * * DESCRIPTION: Shrinks the namespace, typically in response to an undocking * event. Deletes an entire subtree starting from (and * including) the given handle. * ******************************************************************************/ ACPI_STATUS AcpiNsUnloadNamespace ( ACPI_HANDLE Handle) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (NsUnloadNameSpace); /* Parameter validation */ if (!AcpiGbl_RootNode) { return_ACPI_STATUS (AE_NO_NAMESPACE); } if (!Handle) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* This function does the real work */ Status = AcpiNsDeleteSubtree (Handle); return_ACPI_STATUS (Status); } #endif acpica-unix-20250404/source/components/namespace/nsxfeval.c0000775000175000017500000007741514773714133023173 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: nsxfeval - Public interfaces to the ACPI subsystem * ACPI Object evaluation interfaces * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" #include "acnamesp.h" #include "acinterp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsxfeval") /* Local prototypes */ static void AcpiNsResolveReferences ( ACPI_EVALUATE_INFO *Info); /******************************************************************************* * * FUNCTION: AcpiEvaluateObjectTyped * * PARAMETERS: Handle - Object handle (optional) * Pathname - Object pathname (optional) * ExternalParams - List of parameters to pass to a method, * terminated by NULL. May be NULL * if no parameters are being passed. * ReturnBuffer - Where to put the object return value (if * any). Required. * ReturnType - Expected type of return object * * RETURN: Status * * DESCRIPTION: Find and evaluate the given object, passing the given * parameters if necessary. One of "Handle" or "Pathname" must * be valid (non-null) * ******************************************************************************/ ACPI_STATUS AcpiEvaluateObjectTyped ( ACPI_HANDLE Handle, ACPI_STRING Pathname, ACPI_OBJECT_LIST *ExternalParams, ACPI_BUFFER *ReturnBuffer, ACPI_OBJECT_TYPE ReturnType) { ACPI_STATUS Status; BOOLEAN FreeBufferOnError = FALSE; ACPI_HANDLE TargetHandle; char *FullPathname; ACPI_FUNCTION_TRACE (AcpiEvaluateObjectTyped); /* Return buffer must be valid */ if (!ReturnBuffer) { return_ACPI_STATUS (AE_BAD_PARAMETER); } if (ReturnBuffer->Length == ACPI_ALLOCATE_BUFFER) { FreeBufferOnError = TRUE; } /* Get a handle here, in order to build an error message if needed */ TargetHandle = Handle; if (Pathname) { Status = AcpiGetHandle (Handle, Pathname, &TargetHandle); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } FullPathname = AcpiNsGetExternalPathname (TargetHandle); if (!FullPathname) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Evaluate the object */ Status = AcpiEvaluateObject (TargetHandle, NULL, ExternalParams, ReturnBuffer); if (ACPI_FAILURE (Status)) { goto Exit; } /* Type ANY means "don't care about return value type" */ if (ReturnType == ACPI_TYPE_ANY) { goto Exit; } if (ReturnBuffer->Length == 0) { /* Error because caller specifically asked for a return value */ ACPI_ERROR ((AE_INFO, "%s did not return any object", FullPathname)); Status = AE_NULL_OBJECT; goto Exit; } /* Examine the object type returned from EvaluateObject */ if (((ACPI_OBJECT *) ReturnBuffer->Pointer)->Type == ReturnType) { goto Exit; } /* Return object type does not match requested type */ ACPI_ERROR ((AE_INFO, "Incorrect return type from %s - received [%s], requested [%s]", FullPathname, AcpiUtGetTypeName (((ACPI_OBJECT *) ReturnBuffer->Pointer)->Type), AcpiUtGetTypeName (ReturnType))); if (FreeBufferOnError) { /* * Free a buffer created via ACPI_ALLOCATE_BUFFER. * Note: We use AcpiOsFree here because AcpiOsAllocate was used * to allocate the buffer. This purposefully bypasses the * (optionally enabled) allocation tracking mechanism since we * only want to track internal allocations. */ AcpiOsFree (ReturnBuffer->Pointer); ReturnBuffer->Pointer = NULL; } ReturnBuffer->Length = 0; Status = AE_TYPE; Exit: ACPI_FREE (FullPathname); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiEvaluateObjectTyped) /******************************************************************************* * * FUNCTION: AcpiEvaluateObject * * PARAMETERS: Handle - Object handle (optional) * Pathname - Object pathname (optional) * ExternalParams - List of parameters to pass to method, * terminated by NULL. May be NULL * if no parameters are being passed. * ReturnBuffer - Where to put method's return value (if * any). If NULL, no value is returned. * * RETURN: Status * * DESCRIPTION: Find and evaluate the given object, passing the given * parameters if necessary. One of "Handle" or "Pathname" must * be valid (non-null) * ******************************************************************************/ ACPI_STATUS AcpiEvaluateObject ( ACPI_HANDLE Handle, ACPI_STRING Pathname, ACPI_OBJECT_LIST *ExternalParams, ACPI_BUFFER *ReturnBuffer) { ACPI_STATUS Status; ACPI_EVALUATE_INFO *Info; ACPI_SIZE BufferSpaceNeeded; UINT32 i; ACPI_FUNCTION_TRACE (AcpiEvaluateObject); /* Allocate and initialize the evaluation information block */ Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO)); if (!Info) { return_ACPI_STATUS (AE_NO_MEMORY); } /* Convert and validate the device handle */ Info->PrefixNode = AcpiNsValidateHandle (Handle); if (!Info->PrefixNode) { Status = AE_BAD_PARAMETER; goto Cleanup; } /* * Get the actual namespace node for the target object. * Handles these cases: * * 1) Null node, valid pathname from root (absolute path) * 2) Node and valid pathname (path relative to Node) * 3) Node, Null pathname */ if ((Pathname) && (ACPI_IS_ROOT_PREFIX (Pathname[0]))) { /* The path is fully qualified, just evaluate by name */ Info->PrefixNode = NULL; } else if (!Handle) { /* * A handle is optional iff a fully qualified pathname is specified. * Since we've already handled fully qualified names above, this is * an error. */ if (!Pathname) { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Both Handle and Pathname are NULL")); } else { ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Null Handle with relative pathname [%s]", Pathname)); } Status = AE_BAD_PARAMETER; goto Cleanup; } Info->RelativePathname = Pathname; /* * Convert all external objects passed as arguments to the * internal version(s). */ if (ExternalParams && ExternalParams->Count) { Info->ParamCount = (UINT16) ExternalParams->Count; /* Warn on impossible argument count */ if (Info->ParamCount > ACPI_METHOD_NUM_ARGS) { ACPI_WARN_PREDEFINED ((AE_INFO, Pathname, ACPI_WARN_ALWAYS, "Excess arguments (%u) - using only %u", Info->ParamCount, ACPI_METHOD_NUM_ARGS)); Info->ParamCount = ACPI_METHOD_NUM_ARGS; } /* * Allocate a new parameter block for the internal objects * Add 1 to count to allow for null terminated internal list */ Info->Parameters = ACPI_ALLOCATE_ZEROED ( ((ACPI_SIZE) Info->ParamCount + 1) * sizeof (void *)); if (!Info->Parameters) { Status = AE_NO_MEMORY; goto Cleanup; } /* Convert each external object in the list to an internal object */ for (i = 0; i < Info->ParamCount; i++) { Status = AcpiUtCopyEobjectToIobject ( &ExternalParams->Pointer[i], &Info->Parameters[i]); if (ACPI_FAILURE (Status)) { goto Cleanup; } } Info->Parameters[Info->ParamCount] = NULL; } #ifdef _FUTURE_FEATURE /* * Begin incoming argument count analysis. Check for too few args * and too many args. */ switch (AcpiNsGetType (Info->Node)) { case ACPI_TYPE_METHOD: /* Check incoming argument count against the method definition */ if (Info->ObjDesc->Method.ParamCount > Info->ParamCount) { ACPI_ERROR ((AE_INFO, "Insufficient arguments (%u) - %u are required", Info->ParamCount, Info->ObjDesc->Method.ParamCount)); Status = AE_MISSING_ARGUMENTS; goto Cleanup; } else if (Info->ObjDesc->Method.ParamCount < Info->ParamCount) { ACPI_WARNING ((AE_INFO, "Excess arguments (%u) - only %u are required", Info->ParamCount, Info->ObjDesc->Method.ParamCount)); /* Just pass the required number of arguments */ Info->ParamCount = Info->ObjDesc->Method.ParamCount; } /* * Any incoming external objects to be passed as arguments to the * method must be converted to internal objects */ if (Info->ParamCount) { /* * Allocate a new parameter block for the internal objects * Add 1 to count to allow for null terminated internal list */ Info->Parameters = ACPI_ALLOCATE_ZEROED ( ((ACPI_SIZE) Info->ParamCount + 1) * sizeof (void *)); if (!Info->Parameters) { Status = AE_NO_MEMORY; goto Cleanup; } /* Convert each external object in the list to an internal object */ for (i = 0; i < Info->ParamCount; i++) { Status = AcpiUtCopyEobjectToIobject ( &ExternalParams->Pointer[i], &Info->Parameters[i]); if (ACPI_FAILURE (Status)) { goto Cleanup; } } Info->Parameters[Info->ParamCount] = NULL; } break; default: /* Warn if arguments passed to an object that is not a method */ if (Info->ParamCount) { ACPI_WARNING ((AE_INFO, "%u arguments were passed to a non-method ACPI object", Info->ParamCount)); } break; } #endif /* Now we can evaluate the object */ Status = AcpiNsEvaluate (Info); /* * If we are expecting a return value, and all went well above, * copy the return value to an external object. */ if (!ReturnBuffer) { goto CleanupReturnObject; } if (!Info->ReturnObject) { ReturnBuffer->Length = 0; goto Cleanup; } if (ACPI_GET_DESCRIPTOR_TYPE (Info->ReturnObject) == ACPI_DESC_TYPE_NAMED) { /* * If we received a NS Node as a return object, this means that * the object we are evaluating has nothing interesting to * return (such as a mutex, etc.) We return an error because * these types are essentially unsupported by this interface. * We don't check up front because this makes it easier to add * support for various types at a later date if necessary. */ Status = AE_TYPE; Info->ReturnObject = NULL; /* No need to delete a NS Node */ ReturnBuffer->Length = 0; } if (ACPI_FAILURE (Status)) { goto CleanupReturnObject; } /* Dereference Index and RefOf references */ AcpiNsResolveReferences (Info); /* Get the size of the returned object */ Status = AcpiUtGetObjectSize (Info->ReturnObject, &BufferSpaceNeeded); if (ACPI_SUCCESS (Status)) { /* Validate/Allocate/Clear caller buffer */ Status = AcpiUtInitializeBuffer (ReturnBuffer, BufferSpaceNeeded); if (ACPI_FAILURE (Status)) { /* * Caller's buffer is too small or a new one can't * be allocated */ ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Needed buffer size %X, %s\n", (UINT32) BufferSpaceNeeded, AcpiFormatException (Status))); } else { /* We have enough space for the object, build it */ Status = AcpiUtCopyIobjectToEobject ( Info->ReturnObject, ReturnBuffer); } } CleanupReturnObject: if (Info->ReturnObject) { /* * Delete the internal return object. NOTE: Interpreter must be * locked to avoid race condition. */ AcpiExEnterInterpreter (); /* Remove one reference on the return object (should delete it) */ AcpiUtRemoveReference (Info->ReturnObject); AcpiExExitInterpreter (); } Cleanup: /* Free the input parameter list (if we created one) */ if (Info->Parameters) { /* Free the allocated parameter block */ AcpiUtDeleteInternalObjectList (Info->Parameters); } ACPI_FREE (Info); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiEvaluateObject) /******************************************************************************* * * FUNCTION: AcpiNsResolveReferences * * PARAMETERS: Info - Evaluation info block * * RETURN: Info->ReturnObject is replaced with the dereferenced object * * DESCRIPTION: Dereference certain reference objects. Called before an * internal return object is converted to an external ACPI_OBJECT. * * Performs an automatic dereference of Index and RefOf reference objects. * These reference objects are not supported by the ACPI_OBJECT, so this is a * last resort effort to return something useful. Also, provides compatibility * with other ACPI implementations. * * NOTE: does not handle references within returned package objects or nested * references, but this support could be added later if found to be necessary. * ******************************************************************************/ static void AcpiNsResolveReferences ( ACPI_EVALUATE_INFO *Info) { ACPI_OPERAND_OBJECT *ObjDesc = NULL; ACPI_NAMESPACE_NODE *Node; /* We are interested in reference objects only */ if ((Info->ReturnObject)->Common.Type != ACPI_TYPE_LOCAL_REFERENCE) { return; } /* * Two types of references are supported - those created by Index and * RefOf operators. A name reference (AML_NAMEPATH_OP) can be converted * to an ACPI_OBJECT, so it is not dereferenced here. A DdbHandle * (AML_LOAD_OP) cannot be dereferenced, nor can it be converted to * an ACPI_OBJECT. */ switch (Info->ReturnObject->Reference.Class) { case ACPI_REFCLASS_INDEX: ObjDesc = *(Info->ReturnObject->Reference.Where); break; case ACPI_REFCLASS_REFOF: Node = Info->ReturnObject->Reference.Object; if (Node) { ObjDesc = Node->Object; } break; default: return; } /* Replace the existing reference object */ if (ObjDesc) { AcpiUtAddReference (ObjDesc); AcpiUtRemoveReference (Info->ReturnObject); Info->ReturnObject = ObjDesc; } return; } /******************************************************************************* * * FUNCTION: AcpiWalkNamespace * * PARAMETERS: Type - ACPI_OBJECT_TYPE to search for * StartObject - Handle in namespace where search begins * MaxDepth - Depth to which search is to reach * DescendingCallback - Called during tree descent * when an object of "Type" is found * AscendingCallback - Called during tree ascent * when an object of "Type" is found * Context - Passed to user function(s) above * ReturnValue - Location where return value of * UserFunction is put if terminated early * * RETURNS Return value from the UserFunction if terminated early. * Otherwise, returns NULL. * * DESCRIPTION: Performs a modified depth-first walk of the namespace tree, * starting (and ending) at the object specified by StartHandle. * The callback function is called whenever an object that matches * the type parameter is found. If the callback function returns * a non-zero value, the search is terminated immediately and this * value is returned to the caller. * * The point of this procedure is to provide a generic namespace * walk routine that can be called from multiple places to * provide multiple services; the callback function(s) can be * tailored to each task, whether it is a print function, * a compare function, etc. * ******************************************************************************/ ACPI_STATUS AcpiWalkNamespace ( ACPI_OBJECT_TYPE Type, ACPI_HANDLE StartObject, UINT32 MaxDepth, ACPI_WALK_CALLBACK DescendingCallback, ACPI_WALK_CALLBACK AscendingCallback, void *Context, void **ReturnValue) { ACPI_STATUS Status; ACPI_FUNCTION_TRACE (AcpiWalkNamespace); /* Parameter validation */ if ((Type > ACPI_TYPE_LOCAL_MAX) || (!MaxDepth) || (!DescendingCallback && !AscendingCallback)) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * Need to acquire the namespace reader lock to prevent interference * with any concurrent table unloads (which causes the deletion of * namespace objects). We cannot allow the deletion of a namespace node * while the user function is using it. The exception to this are the * nodes created and deleted during control method execution -- these * nodes are marked as temporary nodes and are ignored by the namespace * walk. Thus, control methods can be executed while holding the * namespace deletion lock (and the user function can execute control * methods.) */ Status = AcpiUtAcquireReadLock (&AcpiGbl_NamespaceRwLock); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* * Lock the namespace around the walk. The namespace will be * unlocked/locked around each call to the user function - since the user * function must be allowed to make ACPICA calls itself (for example, it * will typically execute control methods during device enumeration.) */ Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; } /* Now we can validate the starting node */ if (!AcpiNsValidateHandle (StartObject)) { Status = AE_BAD_PARAMETER; goto UnlockAndExit2; } Status = AcpiNsWalkNamespace (Type, StartObject, MaxDepth, ACPI_NS_WALK_UNLOCK, DescendingCallback, AscendingCallback, Context, ReturnValue); UnlockAndExit2: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); UnlockAndExit: (void) AcpiUtReleaseReadLock (&AcpiGbl_NamespaceRwLock); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiWalkNamespace) /******************************************************************************* * * FUNCTION: AcpiNsGetDeviceCallback * * PARAMETERS: Callback from AcpiGetDevice * * RETURN: Status * * DESCRIPTION: Takes callbacks from WalkNamespace and filters out all non- * present devices, or if they specified a HID, it filters based * on that. * ******************************************************************************/ static ACPI_STATUS AcpiNsGetDeviceCallback ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { ACPI_GET_DEVICES_INFO *Info = Context; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; UINT32 Flags; ACPI_PNP_DEVICE_ID *Hid; ACPI_PNP_DEVICE_ID_LIST *Cid; UINT32 i; BOOLEAN Found; int NoMatch; Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } Node = AcpiNsValidateHandle (ObjHandle); Status = AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } if (!Node) { return (AE_BAD_PARAMETER); } /* * First, filter based on the device HID and CID. * * 01/2010: For this case where a specific HID is requested, we don't * want to run _STA until we have an actual HID match. Thus, we will * not unnecessarily execute _STA on devices for which the caller * doesn't care about. Previously, _STA was executed unconditionally * on all devices found here. * * A side-effect of this change is that now we will continue to search * for a matching HID even under device trees where the parent device * would have returned a _STA that indicates it is not present or * not functioning (thus aborting the search on that branch). */ if (Info->Hid != NULL) { Status = AcpiUtExecute_HID (Node, &Hid); if (Status == AE_NOT_FOUND) { return (AE_OK); } else if (ACPI_FAILURE (Status)) { return (AE_CTRL_DEPTH); } NoMatch = strcmp (Hid->String, Info->Hid); ACPI_FREE (Hid); if (NoMatch) { /* * HID does not match, attempt match within the * list of Compatible IDs (CIDs) */ Status = AcpiUtExecute_CID (Node, &Cid); if (Status == AE_NOT_FOUND) { return (AE_OK); } else if (ACPI_FAILURE (Status)) { return (AE_CTRL_DEPTH); } /* Walk the CID list */ Found = FALSE; for (i = 0; i < Cid->Count; i++) { if (strcmp (Cid->Ids[i].String, Info->Hid) == 0) { /* Found a matching CID */ Found = TRUE; break; } } ACPI_FREE (Cid); if (!Found) { return (AE_OK); } } } /* Run _STA to determine if device is present */ Status = AcpiUtExecute_STA (Node, &Flags); if (ACPI_FAILURE (Status)) { return (AE_CTRL_DEPTH); } if (!(Flags & ACPI_STA_DEVICE_PRESENT) && !(Flags & ACPI_STA_DEVICE_FUNCTIONING)) { /* * Don't examine the children of the device only when the * device is neither present nor functional. See ACPI spec, * description of _STA for more information. */ return (AE_CTRL_DEPTH); } /* We have a valid device, invoke the user function */ Status = Info->UserFunction (ObjHandle, NestingLevel, Info->Context, ReturnValue); return (Status); } /******************************************************************************* * * FUNCTION: AcpiGetDevices * * PARAMETERS: HID - HID to search for. Can be NULL. * UserFunction - Called when a matching object is found * Context - Passed to user function * ReturnValue - Location where return value of * UserFunction is put if terminated early * * RETURNS Return value from the UserFunction if terminated early. * Otherwise, returns NULL. * * DESCRIPTION: Performs a modified depth-first walk of the namespace tree, * starting (and ending) at the object specified by StartHandle. * The UserFunction is called whenever an object of type * Device is found. If the user function returns * a non-zero value, the search is terminated immediately and this * value is returned to the caller. * * This is a wrapper for WalkNamespace, but the callback performs * additional filtering. Please see AcpiNsGetDeviceCallback. * ******************************************************************************/ ACPI_STATUS AcpiGetDevices ( char *HID, ACPI_WALK_CALLBACK UserFunction, void *Context, void **ReturnValue) { ACPI_STATUS Status; ACPI_GET_DEVICES_INFO Info; ACPI_FUNCTION_TRACE (AcpiGetDevices); /* Parameter validation */ if (!UserFunction) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* * We're going to call their callback from OUR callback, so we need * to know what it is, and their context parameter. */ Info.Hid = HID; Info.Context = Context; Info.UserFunction = UserFunction; /* * Lock the namespace around the walk. * The namespace will be unlocked/locked around each call * to the user function - since this function * must be allowed to make Acpi calls itself. */ Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Status = AcpiNsWalkNamespace (ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, ACPI_NS_WALK_UNLOCK, AcpiNsGetDeviceCallback, NULL, &Info, ReturnValue); (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return_ACPI_STATUS (Status); } ACPI_EXPORT_SYMBOL (AcpiGetDevices) /******************************************************************************* * * FUNCTION: AcpiAttachData * * PARAMETERS: ObjHandle - Namespace node * Handler - Handler for this attachment * Data - Pointer to data to be attached * * RETURN: Status * * DESCRIPTION: Attach arbitrary data and handler to a namespace node. * ******************************************************************************/ ACPI_STATUS AcpiAttachData ( ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler, void *Data) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; /* Parameter validation */ if (!ObjHandle || !Handler || !Data) { return (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } /* Convert and validate the handle */ Node = AcpiNsValidateHandle (ObjHandle); if (!Node) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } Status = AcpiNsAttachData (Node, Handler, Data); UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (Status); } ACPI_EXPORT_SYMBOL (AcpiAttachData) /******************************************************************************* * * FUNCTION: AcpiDetachData * * PARAMETERS: ObjHandle - Namespace node handle * Handler - Handler used in call to AcpiAttachData * * RETURN: Status * * DESCRIPTION: Remove data that was previously attached to a node. * ******************************************************************************/ ACPI_STATUS AcpiDetachData ( ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; /* Parameter validation */ if (!ObjHandle || !Handler) { return (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } /* Convert and validate the handle */ Node = AcpiNsValidateHandle (ObjHandle); if (!Node) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } Status = AcpiNsDetachData (Node, Handler); UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (Status); } ACPI_EXPORT_SYMBOL (AcpiDetachData) /******************************************************************************* * * FUNCTION: AcpiGetData * * PARAMETERS: ObjHandle - Namespace node * Handler - Handler used in call to AttachData * Data - Where the data is returned * * RETURN: Status * * DESCRIPTION: Retrieve data that was previously attached to a namespace node. * ******************************************************************************/ ACPI_STATUS AcpiGetData ( ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler, void **Data) { ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; /* Parameter validation */ if (!ObjHandle || !Handler || !Data) { return (AE_BAD_PARAMETER); } Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); if (ACPI_FAILURE (Status)) { return (Status); } /* Convert and validate the handle */ Node = AcpiNsValidateHandle (ObjHandle); if (!Node) { Status = AE_BAD_PARAMETER; goto UnlockAndExit; } Status = AcpiNsGetAttachedData (Node, Handler, Data); UnlockAndExit: (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); return (Status); } ACPI_EXPORT_SYMBOL (AcpiGetData) acpica-unix-20250404/source/components/namespace/nsnames.c0000775000175000017500000004030614773714132022775 0ustar ivanhuivanhu/******************************************************************************* * * Module Name: nsnames - Name manipulation and search * ******************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acnamesp.h" #define _COMPONENT ACPI_NAMESPACE ACPI_MODULE_NAME ("nsnames") /******************************************************************************* * * FUNCTION: AcpiNsGetExternalPathname * * PARAMETERS: Node - Namespace node whose pathname is needed * * RETURN: Pointer to storage containing the fully qualified name of * the node, In external format (name segments separated by path * separators.) * * DESCRIPTION: Used to obtain the full pathname to a namespace node, usually * for error and debug statements. * ******************************************************************************/ char * AcpiNsGetExternalPathname ( ACPI_NAMESPACE_NODE *Node) { char *NameBuffer; ACPI_FUNCTION_TRACE_PTR (NsGetExternalPathname, Node); NameBuffer = AcpiNsGetNormalizedPathname (Node, FALSE); return_PTR (NameBuffer); } /******************************************************************************* * * FUNCTION: AcpiNsGetPathnameLength * * PARAMETERS: Node - Namespace node * * RETURN: Length of path, including prefix * * DESCRIPTION: Get the length of the pathname string for this node * ******************************************************************************/ ACPI_SIZE AcpiNsGetPathnameLength ( ACPI_NAMESPACE_NODE *Node) { ACPI_SIZE Size; /* Validate the Node */ if (ACPI_GET_DESCRIPTOR_TYPE (Node) != ACPI_DESC_TYPE_NAMED) { ACPI_ERROR ((AE_INFO, "Invalid/cached reference target node: %p, descriptor type %d", Node, ACPI_GET_DESCRIPTOR_TYPE (Node))); return (0); } Size = AcpiNsBuildNormalizedPath (Node, NULL, 0, FALSE); return (Size); } /******************************************************************************* * * FUNCTION: AcpiNsHandleToName * * PARAMETERS: TargetHandle - Handle of named object whose name is * to be found * Buffer - Where the name is returned * * RETURN: Status, Buffer is filled with name if status is AE_OK * * DESCRIPTION: Build and return a full namespace name * ******************************************************************************/ ACPI_STATUS AcpiNsHandleToName ( ACPI_HANDLE TargetHandle, ACPI_BUFFER *Buffer) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; const char *NodeName; ACPI_FUNCTION_TRACE_PTR (NsHandleToName, TargetHandle); Node = AcpiNsValidateHandle (TargetHandle); if (!Node) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Validate/Allocate/Clear caller buffer */ Status = AcpiUtInitializeBuffer (Buffer, ACPI_PATH_SEGMENT_LENGTH); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Just copy the ACPI name from the Node and zero terminate it */ NodeName = AcpiUtGetNodeName (Node); ACPI_COPY_NAMESEG (Buffer->Pointer, NodeName); ((char *) Buffer->Pointer) [ACPI_NAMESEG_SIZE] = 0; ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%4.4s\n", (char *) Buffer->Pointer)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsHandleToPathname * * PARAMETERS: TargetHandle - Handle of named object whose name is * to be found * Buffer - Where the pathname is returned * NoTrailing - Remove trailing '_' for each name * segment * * RETURN: Status, Buffer is filled with pathname if status is AE_OK * * DESCRIPTION: Build and return a full namespace pathname * ******************************************************************************/ ACPI_STATUS AcpiNsHandleToPathname ( ACPI_HANDLE TargetHandle, ACPI_BUFFER *Buffer, BOOLEAN NoTrailing) { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_SIZE RequiredSize; ACPI_FUNCTION_TRACE_PTR (NsHandleToPathname, TargetHandle); Node = AcpiNsValidateHandle (TargetHandle); if (!Node) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Determine size required for the caller buffer */ RequiredSize = AcpiNsBuildNormalizedPath (Node, NULL, 0, NoTrailing); if (!RequiredSize) { return_ACPI_STATUS (AE_BAD_PARAMETER); } /* Validate/Allocate/Clear caller buffer */ Status = AcpiUtInitializeBuffer (Buffer, RequiredSize); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* Build the path in the caller buffer */ (void) AcpiNsBuildNormalizedPath (Node, Buffer->Pointer, (UINT32) RequiredSize, NoTrailing); ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%s [%X]\n", (char *) Buffer->Pointer, (UINT32) RequiredSize)); return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: AcpiNsBuildNormalizedPath * * PARAMETERS: Node - Namespace node * FullPath - Where the path name is returned * PathSize - Size of returned path name buffer * NoTrailing - Remove trailing '_' from each name segment * * RETURN: Return 1 if the AML path is empty, otherwise returning (length * of pathname + 1) which means the 'FullPath' contains a trailing * null. * * DESCRIPTION: Build and return a full namespace pathname. * Note that if the size of 'FullPath' isn't large enough to * contain the namespace node's path name, the actual required * buffer length is returned, and it should be greater than * 'PathSize'. So callers are able to check the returning value * to determine the buffer size of 'FullPath'. * ******************************************************************************/ UINT32 AcpiNsBuildNormalizedPath ( ACPI_NAMESPACE_NODE *Node, char *FullPath, UINT32 PathSize, BOOLEAN NoTrailing) { UINT32 Length = 0, i; char Name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; BOOLEAN DoNoTrailing; char c, *Left, *Right; ACPI_NAMESPACE_NODE *NextNode; ACPI_FUNCTION_TRACE_PTR (NsBuildNormalizedPath, Node); #define ACPI_PATH_PUT8(Path, Size, Byte, Length) \ do { \ if ((Length) < (Size)) \ { \ (Path)[(Length)] = (Byte); \ } \ (Length)++; \ } while (0) /* * Make sure the PathSize is correct, so that we don't need to * validate both FullPath and PathSize. */ if (!FullPath) { PathSize = 0; } if (!Node) { goto BuildTrailingNull; } NextNode = Node; while (NextNode && NextNode != AcpiGbl_RootNode) { if (NextNode != Node) { ACPI_PATH_PUT8(FullPath, PathSize, AML_DUAL_NAME_PREFIX, Length); } ACPI_MOVE_32_TO_32 (Name, &NextNode->Name); DoNoTrailing = NoTrailing; for (i = 0; i < 4; i++) { c = Name[4-i-1]; if (DoNoTrailing && c != '_') { DoNoTrailing = FALSE; } if (!DoNoTrailing) { ACPI_PATH_PUT8(FullPath, PathSize, c, Length); } } NextNode = NextNode->Parent; } ACPI_PATH_PUT8(FullPath, PathSize, AML_ROOT_PREFIX, Length); /* Reverse the path string */ if (Length <= PathSize) { Left = FullPath; Right = FullPath+Length - 1; while (Left < Right) { c = *Left; *Left++ = *Right; *Right-- = c; } } /* Append the trailing null */ BuildTrailingNull: ACPI_PATH_PUT8 (FullPath, PathSize, '\0', Length); #undef ACPI_PATH_PUT8 return_UINT32 (Length); } /******************************************************************************* * * FUNCTION: AcpiNsGetNormalizedPathname * * PARAMETERS: Node - Namespace node whose pathname is needed * NoTrailing - Remove trailing '_' from each name segment * * RETURN: Pointer to storage containing the fully qualified name of * the node, In external format (name segments separated by path * separators.) * * DESCRIPTION: Used to obtain the full pathname to a namespace node, usually * for error and debug statements. All trailing '_' will be * removed from the full pathname if 'NoTrailing' is specified.. * ******************************************************************************/ char * AcpiNsGetNormalizedPathname ( ACPI_NAMESPACE_NODE *Node, BOOLEAN NoTrailing) { char *NameBuffer; ACPI_SIZE Size; ACPI_FUNCTION_TRACE_PTR (NsGetNormalizedPathname, Node); /* Calculate required buffer size based on depth below root */ Size = AcpiNsBuildNormalizedPath (Node, NULL, 0, NoTrailing); if (!Size) { return_PTR (NULL); } /* Allocate a buffer to be returned to caller */ NameBuffer = ACPI_ALLOCATE_ZEROED (Size); if (!NameBuffer) { ACPI_ERROR ((AE_INFO, "Could not allocate %u bytes", (UINT32) Size)); return_PTR (NULL); } /* Build the path in the allocated buffer */ (void) AcpiNsBuildNormalizedPath (Node, NameBuffer, (UINT32) Size, NoTrailing); ACPI_DEBUG_PRINT_RAW ((ACPI_DB_NAMES, "%s: Path \"%s\"\n", ACPI_GET_FUNCTION_NAME, NameBuffer)); return_PTR (NameBuffer); } /******************************************************************************* * * FUNCTION: AcpiNsBuildPrefixedPathname * * PARAMETERS: PrefixScope - Scope/Path that prefixes the internal path * InternalPath - Name or path of the namespace node * * RETURN: None * * DESCRIPTION: Construct a fully qualified pathname from a concatenation of: * 1) Path associated with the PrefixScope namespace node * 2) External path representation of the Internal path * ******************************************************************************/ char * AcpiNsBuildPrefixedPathname ( ACPI_GENERIC_STATE *PrefixScope, const char *InternalPath) { ACPI_STATUS Status; char *FullPath = NULL; char *ExternalPath = NULL; char *PrefixPath = NULL; ACPI_SIZE PrefixPathLength = 0; /* If there is a prefix, get the pathname to it */ if (PrefixScope && PrefixScope->Scope.Node) { PrefixPath = AcpiNsGetNormalizedPathname (PrefixScope->Scope.Node, TRUE); if (PrefixPath) { PrefixPathLength = strlen (PrefixPath); } } Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, InternalPath, NULL, &ExternalPath); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* Merge the prefix path and the path. 2 is for one dot and trailing null */ FullPath = ACPI_ALLOCATE_ZEROED ( PrefixPathLength + strlen (ExternalPath) + 2); if (!FullPath) { goto Cleanup; } /* Don't merge if the External path is already fully qualified */ if (PrefixPath && (*ExternalPath != '\\') && (*ExternalPath != '^')) { strcat (FullPath, PrefixPath); if (PrefixPath[1]) { strcat (FullPath, "."); } } AcpiNsNormalizePathname (ExternalPath); strcat (FullPath, ExternalPath); Cleanup: if (PrefixPath) { ACPI_FREE (PrefixPath); } if (ExternalPath) { ACPI_FREE (ExternalPath); } return (FullPath); } /******************************************************************************* * * FUNCTION: AcpiNsNormalizePathname * * PARAMETERS: OriginalPath - Path to be normalized, in External format * * RETURN: The original path is processed in-place * * DESCRIPTION: Remove trailing underscores from each element of a path. * * For example: \A___.B___.C___ becomes \A.B.C * ******************************************************************************/ void AcpiNsNormalizePathname ( char *OriginalPath) { char *InputPath = OriginalPath; char *NewPathBuffer; char *NewPath; UINT32 i; /* Allocate a temp buffer in which to construct the new path */ NewPathBuffer = ACPI_ALLOCATE_ZEROED (strlen (InputPath) + 1); NewPath = NewPathBuffer; if (!NewPathBuffer) { return; } /* Special characters may appear at the beginning of the path */ if (*InputPath == '\\') { *NewPath = *InputPath; NewPath++; InputPath++; } while (*InputPath == '^') { *NewPath = *InputPath; NewPath++; InputPath++; } /* Remainder of the path */ while (*InputPath) { /* Do one nameseg at a time */ for (i = 0; (i < ACPI_NAMESEG_SIZE) && *InputPath; i++) { if ((i == 0) || (*InputPath != '_')) /* First char is allowed to be underscore */ { *NewPath = *InputPath; NewPath++; } InputPath++; } /* Dot means that there are more namesegs to come */ if (*InputPath == '.') { *NewPath = *InputPath; NewPath++; InputPath++; } } *NewPath = 0; strcpy (OriginalPath, NewPathBuffer); ACPI_FREE (NewPathBuffer); } acpica-unix-20250404/source/tools/0000775000175000017500000000000014773713561016203 5ustar ivanhuivanhuacpica-unix-20250404/source/tools/acpixtract/0000775000175000017500000000000014773714134020342 5ustar ivanhuivanhuacpica-unix-20250404/source/tools/acpixtract/acpixtract.c0000775000175000017500000003764714773714134022674 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acpixtract - Top level functions to convert ascii/hex * ACPI tables to the original binary tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpixtract.h" /****************************************************************************** * * FUNCTION: AxExtractTables * * PARAMETERS: InputPathname - Filename for input acpidump file * Signature - Requested ACPI signature to extract. * NULL means extract ALL tables. * MinimumInstances - Min instances that are acceptable * * RETURN: Status * * DESCRIPTION: Convert text ACPI tables to binary * ******************************************************************************/ int AxExtractTables ( char *InputPathname, char *Signature, unsigned int MinimumInstances) { FILE *InputFile; FILE *OutputFile = NULL; int BytesConverted; int ThisTableBytesWritten = 0; unsigned int FoundTable = 0; unsigned int Instances = 0; unsigned int ThisInstance; char ThisSignature[5]; char UpperSignature[5]; int Status = 0; unsigned int State = AX_STATE_FIND_HEADER; memset (UpperSignature, 0, sizeof(UpperSignature)); /* Open input in text mode, output is in binary mode */ InputFile = fopen (InputPathname, "r"); if (!InputFile) { printf ("Could not open input file %s\n", InputPathname); return (-1); } if (!AxIsFileAscii (InputFile)) { fclose (InputFile); return (-1); } if (Signature) { memcpy (UpperSignature, Signature, ACPI_NAMESEG_SIZE); AcpiUtStrupr (UpperSignature); /* Are there enough instances of the table to continue? */ AxNormalizeSignature (UpperSignature); Instances = AxCountTableInstances (InputPathname, UpperSignature); if (Instances < MinimumInstances || (Instances == 0 && MinimumInstances == AX_OPTIONAL_TABLES)) { printf ("Table [%s] was not found in %s\n", UpperSignature, InputPathname); fclose (InputFile); return (0); /* Don't abort */ } if (Instances == 0) { fclose (InputFile); return (-1); } } /* Convert all instances of the table to binary */ while (fgets (Gbl_LineBuffer, AX_LINE_BUFFER_SIZE, InputFile)) { /* * Check up front if we have a header line of the form: * DSDT @ 0xdfffd0c0 (10999 bytes) */ if (AX_IS_TABLE_BLOCK_HEADER && (State == AX_STATE_EXTRACT_DATA)) { /* End of previous table, start of new table */ if (ThisTableBytesWritten) { printf (AX_TABLE_INFO_FORMAT, ThisSignature, ThisTableBytesWritten, ThisTableBytesWritten, Gbl_OutputFilename); } else { Gbl_TableCount--; } State = AX_STATE_FIND_HEADER; } switch (State) { case AX_STATE_FIND_HEADER: if (!AxIsDataBlockHeader ()) { continue; } ACPI_COPY_NAMESEG (ThisSignature, Gbl_LineBuffer); if (Signature) { /* Ignore signatures that don't match */ if (!ACPI_COMPARE_NAMESEG (ThisSignature, UpperSignature)) { continue; } } /* * Get the instance number for this signature. Only the * SSDT and PSDT tables can have multiple instances. */ ThisInstance = AxGetNextInstance (InputPathname, ThisSignature); /* Build an output filename and create/open the output file */ if (ThisInstance > 0) { /* Add instance number to the output filename */ sprintf (Gbl_OutputFilename, "%4.4s%u.dat", ThisSignature, ThisInstance); } else { sprintf (Gbl_OutputFilename, "%4.4s.dat", ThisSignature); } AcpiUtStrlwr (Gbl_OutputFilename); OutputFile = fopen (Gbl_OutputFilename, "w+b"); if (!OutputFile) { printf ("Could not open output file %s\n", Gbl_OutputFilename); fclose (InputFile); return (-1); } /* * Toss this block header of the form " @ " line * and move on to the actual data block */ Gbl_TableCount++; FoundTable = 1; ThisTableBytesWritten = 0; State = AX_STATE_EXTRACT_DATA; continue; case AX_STATE_EXTRACT_DATA: if (!AxIsHexDataLine ()) { continue; /* Toss any lines that are not raw hex data */ } /* Empty line or non-data line terminates the data block */ BytesConverted = AxConvertAndWrite (OutputFile, ThisSignature); switch (BytesConverted) { case 0: State = AX_STATE_FIND_HEADER; /* No more data block lines */ continue; case -1: Status = -1; goto CleanupAndExit; /* There was a write error */ default: /* Normal case, get next line */ ThisTableBytesWritten += BytesConverted; continue; } default: Status = -1; goto CleanupAndExit; } } if (!FoundTable) { printf ("No ACPI tables were found in %s\n", InputPathname); } CleanupAndExit: if (State == AX_STATE_EXTRACT_DATA) { /* Received an input file EOF while extracting data */ printf (AX_TABLE_INFO_FORMAT, ThisSignature, ThisTableBytesWritten, ThisTableBytesWritten, Gbl_OutputFilename); } if (OutputFile) { fclose (OutputFile); } fclose (InputFile); return (Status); } /****************************************************************************** * * FUNCTION: AxExtractToMultiAmlFile * * PARAMETERS: InputPathname - Filename for input acpidump file * * RETURN: Status * * DESCRIPTION: Convert all DSDT/SSDT tables to binary and append them all * into a single output file. Used to simplify the loading of * multiple/many SSDTs into a utility like acpiexec -- instead * of creating many separate output files. * ******************************************************************************/ int AxExtractToMultiAmlFile ( char *InputPathname) { FILE *InputFile; FILE *OutputFile; int Status = 0; int TotalBytesWritten = 0; int ThisTableBytesWritten = 0; unsigned int BytesConverted; char ThisSignature[4]; unsigned int State = AX_STATE_FIND_HEADER; strcpy (Gbl_OutputFilename, AX_MULTI_TABLE_FILENAME); /* Open the input file in text mode */ InputFile = fopen (InputPathname, "r"); if (!InputFile) { printf ("Could not open input file %s\n", InputPathname); return (-1); } if (!AxIsFileAscii (InputFile)) { fclose (InputFile); return (-1); } /* Open the output file in binary mode */ OutputFile = fopen (Gbl_OutputFilename, "w+b"); if (!OutputFile) { printf ("Could not open output file %s\n", Gbl_OutputFilename); fclose (InputFile); return (-1); } /* Convert the DSDT and all SSDTs to binary */ while (fgets (Gbl_LineBuffer, AX_LINE_BUFFER_SIZE, InputFile)) { /* * Check up front if we have a header line of the form: * DSDT @ 0xdfffd0c0 (10999 bytes) */ if (AX_IS_TABLE_BLOCK_HEADER && (State == AX_STATE_EXTRACT_DATA)) { /* End of previous table, start of new table */ if (ThisTableBytesWritten) { printf (AX_TABLE_INFO_FORMAT, ThisSignature, ThisTableBytesWritten, ThisTableBytesWritten, Gbl_OutputFilename); } else { Gbl_TableCount--; } State = AX_STATE_FIND_HEADER; } switch (State) { case AX_STATE_FIND_HEADER: if (!AxIsDataBlockHeader ()) { continue; } ACPI_COPY_NAMESEG (ThisSignature, Gbl_LineBuffer); /* Only want DSDT and SSDTs */ if (!ACPI_COMPARE_NAMESEG (ThisSignature, ACPI_SIG_DSDT) && !ACPI_COMPARE_NAMESEG (ThisSignature, ACPI_SIG_SSDT)) { continue; } /* * Toss this block header of the form " @ " line * and move on to the actual data block */ Gbl_TableCount++; ThisTableBytesWritten = 0; State = AX_STATE_EXTRACT_DATA; continue; case AX_STATE_EXTRACT_DATA: if (!AxIsHexDataLine ()) { continue; /* Toss any lines that are not raw hex data */ } /* Empty line or non-data line terminates the data block */ BytesConverted = AxConvertAndWrite (OutputFile, ThisSignature); switch (BytesConverted) { case 0: State = AX_STATE_FIND_HEADER; /* No more data block lines */ continue; case -1: Status = -1; goto CleanupAndExit; /* There was a write error */ default: /* Normal case, get next line */ ThisTableBytesWritten += BytesConverted; TotalBytesWritten += BytesConverted; continue; } default: Status = -1; goto CleanupAndExit; } } CleanupAndExit: if (State == AX_STATE_EXTRACT_DATA) { /* Received an input file EOF or error while writing data */ printf (AX_TABLE_INFO_FORMAT, ThisSignature, ThisTableBytesWritten, ThisTableBytesWritten, Gbl_OutputFilename); } printf ("\n%u binary ACPI tables extracted and written to %s (%u bytes)\n", Gbl_TableCount, Gbl_OutputFilename, TotalBytesWritten); fclose (InputFile); fclose (OutputFile); return (Status); } /****************************************************************************** * * FUNCTION: AxListAllTables * * PARAMETERS: InputPathname - Filename for acpidump file * * RETURN: Status * * DESCRIPTION: Display info for all ACPI tables found in input. Does not * perform an actual extraction of the tables. * ******************************************************************************/ int AxListAllTables ( char *InputPathname) { FILE *InputFile; unsigned char Header[48]; UINT32 ByteCount = 0; INT32 ThisLineByteCount; unsigned int State = AX_STATE_FIND_HEADER; /* Open input in text mode, output is in binary mode */ InputFile = fopen (InputPathname, "r"); if (!InputFile) { printf ("Could not open input file %s\n", InputPathname); return (-1); } if (!AxIsFileAscii (InputFile)) { fclose (InputFile); return (-1); } /* Info header */ printf ("\n Signature Length Version Oem Oem " "Oem Compiler Compiler\n"); printf ( " Id TableId " "RevisionId Name Revision\n"); printf ( " _________ __________ ____ ________ __________ " "__________ _______ __________\n\n"); /* Dump the headers for all tables found in the input file */ while (fgets (Gbl_LineBuffer, AX_LINE_BUFFER_SIZE, InputFile)) { /* Ignore empty lines */ if (AxIsEmptyLine (Gbl_LineBuffer)) { continue; } /* * Check up front if we have a header line of the form: * DSDT @ 0xdfffd0c0 (10999 bytes) */ if (AX_IS_TABLE_BLOCK_HEADER && (State == AX_STATE_EXTRACT_DATA)) { State = AX_STATE_FIND_HEADER; } switch (State) { case AX_STATE_FIND_HEADER: ByteCount = 0; if (!AxIsDataBlockHeader ()) { continue; } State = AX_STATE_EXTRACT_DATA; continue; case AX_STATE_EXTRACT_DATA: /* Ignore any lines that don't look like a data line */ if (!AxIsHexDataLine ()) { continue; /* Toss any lines that are not raw hex data */ } /* Convert header to hex and display it */ ThisLineByteCount = AxConvertToBinary (Gbl_LineBuffer, &Header[ByteCount]); if (ThisLineByteCount == EOF) { fclose (InputFile); return (-1); } ByteCount += ThisLineByteCount; if (ByteCount >= sizeof (ACPI_TABLE_HEADER)) { AxDumpTableHeader (Header); State = AX_STATE_FIND_HEADER; } continue; default: break; } } printf ("\nFound %u ACPI tables in %s\n", Gbl_TableCount, InputPathname); fclose (InputFile); return (0); } acpica-unix-20250404/source/tools/acpixtract/axmain.c0000775000175000017500000001432014773714134021766 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: axmain - main module for acpixtract utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define DEFINE_ACPIXTRACT_GLOBALS #include "acpixtract.h" /* Local prototypes */ static void DisplayUsage ( void); /****************************************************************************** * * FUNCTION: DisplayUsage * * DESCRIPTION: Usage message * ******************************************************************************/ static void DisplayUsage ( void) { ACPI_USAGE_HEADER ("acpixtract [option] "); ACPI_OPTION ("-a", "Extract all tables, not just DSDT/SSDT"); ACPI_OPTION ("-f", "Force extraction, even if there are errors"); ACPI_OPTION ("-l", "List table summaries, do not extract"); ACPI_OPTION ("-m", "Extract multiple DSDT/SSDTs to a single file"); ACPI_OPTION ("-s ", "Extract all tables with "); ACPI_OPTION ("-v", "Display version information"); ACPI_OPTION ("-vd", "Display build date and time"); ACPI_USAGE_TEXT ("\nExtract binary ACPI tables from text acpidump output\n"); ACPI_USAGE_TEXT ("Default invocation extracts the DSDT and all SSDTs\n"); } /****************************************************************************** * * FUNCTION: main * * DESCRIPTION: C main function * ******************************************************************************/ int ACPI_SYSTEM_XFACE main ( int argc, char *argv[]) { char *Filename; int AxAction; int Status; int j; Gbl_TableCount = 0; Gbl_TableListHead = NULL; Gbl_ForceExtraction = FALSE; AxAction = AX_EXTRACT_AML_TABLES; /* Default: DSDT & SSDTs */ ACPI_DEBUG_INITIALIZE (); /* For debug version only */ AcpiOsInitialize (); printf (ACPI_COMMON_SIGNON (AX_UTILITY_NAME)); if (argc < 2) { DisplayUsage (); return (0); } /* Command line options */ while ((j = AcpiGetopt (argc, argv, AX_SUPPORTED_OPTIONS)) != ACPI_OPT_END) switch (j) { case 'a': AxAction = AX_EXTRACT_ALL; /* Extract all tables found */ break; case 'f': Gbl_ForceExtraction = TRUE; /* Ignore errors */ break; case 'l': AxAction = AX_LIST_ALL; /* List tables only, do not extract */ break; case 'm': AxAction = AX_EXTRACT_MULTI_TABLE; /* Make single file for all DSDT/SSDTs */ break; case 's': AxAction = AX_EXTRACT_SIGNATURE; /* Extract only tables with this sig */ break; case 'v': switch (AcpiGbl_Optarg[0]) { case '^': /* -v: (Version): signon already emitted, just exit */ exit (0); case 'd': printf (ACPI_COMMON_BUILD_TIME); return (0); default: printf ("Unknown option: -v%s\n", AcpiGbl_Optarg); return (-1); } break; case 'h': default: DisplayUsage (); return (0); } /* Input filename is always required */ Filename = argv[AcpiGbl_Optind]; if (!Filename) { printf ("Missing required input filename\n"); return (-1); } /* Perform requested action */ switch (AxAction) { case AX_EXTRACT_ALL: Status = AxExtractTables (Filename, NULL, AX_OPTIONAL_TABLES); break; case AX_EXTRACT_MULTI_TABLE: Status = AxExtractToMultiAmlFile (Filename); break; case AX_LIST_ALL: Status = AxListAllTables (Filename); break; case AX_EXTRACT_SIGNATURE: Status = AxExtractTables (Filename, AcpiGbl_Optarg, AX_REQUIRED_TABLE); break; default: /* * Default output is the DSDT and all SSDTs. One DSDT is required, * any SSDTs are optional. */ Status = AxExtractTables (Filename, "DSDT", AX_REQUIRED_TABLE); if (Status) { return (Status); } Status = AxExtractTables (Filename, "SSDT", AX_OPTIONAL_TABLES); break; } return (Status); } acpica-unix-20250404/source/tools/acpixtract/acpixtract.h0000775000175000017500000001230314773714134022657 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acpixtract.h - Include for acpixtract utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acapps.h" #include #undef ACPI_GLOBAL #ifdef DEFINE_ACPIXTRACT_GLOBALS #define ACPI_GLOBAL(type,name) \ extern type name; \ type name #else #define ACPI_GLOBAL(type,name) \ extern type name #endif /* Options */ #define AX_EXTRACT_ALL 0 #define AX_LIST_ALL 1 #define AX_EXTRACT_SIGNATURE 2 #define AX_EXTRACT_AML_TABLES 3 #define AX_EXTRACT_MULTI_TABLE 4 #define AX_OPTIONAL_TABLES 0 #define AX_REQUIRED_TABLE 1 #define AX_UTILITY_NAME "ACPI Binary Table Extraction Utility" #define AX_SUPPORTED_OPTIONS "afhlms:v^" #define AX_MULTI_TABLE_FILENAME "amltables.dat" #define AX_TABLE_INFO_FORMAT " %4.4s - %7u bytes written (0x%8.8X) - %s\n" /* Extraction states */ #define AX_STATE_FIND_HEADER 0 #define AX_STATE_EXTRACT_DATA 1 /* Miscellaneous constants */ #define AX_LINE_BUFFER_SIZE 256 #define AX_MIN_BLOCK_HEADER_LENGTH 6 /* strlen ("DSDT @") */ #define AX_HEX_DATA_LENGTH 49 /* (3 * 16) + 1 for the colon delimiter */ #define AX_IS_TABLE_BLOCK_HEADER (strlen (Gbl_LineBuffer) < AX_HEX_DATA_LENGTH && \ strstr (Gbl_LineBuffer, " @ ")) typedef struct AxTableInfo { UINT32 Signature; unsigned int Instances; unsigned int NextInstance; struct AxTableInfo *Next; } AX_TABLE_INFO; /* Globals */ ACPI_GLOBAL (char, Gbl_LineBuffer[AX_LINE_BUFFER_SIZE]); ACPI_GLOBAL (char, Gbl_HeaderBuffer[AX_LINE_BUFFER_SIZE]); ACPI_GLOBAL (char, Gbl_InstanceBuffer[AX_LINE_BUFFER_SIZE]); ACPI_GLOBAL (AX_TABLE_INFO, *Gbl_TableListHead); ACPI_GLOBAL (char, Gbl_OutputFilename[32]); ACPI_GLOBAL (unsigned char, Gbl_BinaryData[16]); ACPI_GLOBAL (unsigned int, Gbl_TableCount); ACPI_GLOBAL (BOOLEAN, Gbl_ForceExtraction); /* * acpixtract.c */ int AxExtractTables ( char *InputPathname, char *Signature, unsigned int MinimumInstances); int AxExtractToMultiAmlFile ( char *InputPathname); int AxListAllTables ( char *InputPathname); /* * axutils.c */ unsigned int AxCountTableInstances ( char *InputPathname, char *Signature); unsigned int AxGetNextInstance ( char *InputPathname, char *Signature); void AxNormalizeSignature ( char *Signature); void AxCheckAscii ( char *Name, int Count); BOOLEAN AxIsFileAscii ( FILE *Handle); BOOLEAN AxIsHexDataLine ( void); BOOLEAN AxIsEmptyLine ( char *Buffer); BOOLEAN AxIsDataBlockHeader ( void); int AxConvertAndWrite ( FILE *OutputFile, char *ThisSignature); int AxConvertToBinary ( char *InputLine, unsigned char *OutputData); void AxDumpTableHeader ( unsigned char *Header); acpica-unix-20250404/source/tools/acpixtract/axutils.c0000775000175000017500000004276314773714134022216 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: axutils - Utility functions for acpixtract tool. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpixtract.h" /******************************************************************************* * * FUNCTION: AxCheckAscii * * PARAMETERS: Name - Ascii string, at least as long as Count * Count - Number of characters to check * * RETURN: None * * DESCRIPTION: Ensure that the requested number of characters are printable * Ascii characters. Sets non-printable and null chars to . * ******************************************************************************/ void AxCheckAscii ( char *Name, int Count) { int i; for (i = 0; i < Count; i++) { if (!Name[i] || !isprint ((int) Name[i])) { Name[i] = ' '; } } } /******************************************************************************* * * FUNCTION: AxIsFileAscii * * PARAMETERS: Handle - To open input file * * RETURN: TRUE if file is entirely ASCII and printable * * DESCRIPTION: Verify that the input file is entirely ASCII. * ******************************************************************************/ BOOLEAN AxIsFileAscii ( FILE *Handle) { UINT8 Byte; UINT32 Offset = 0; /* Read the entire file */ fseek (Handle, 0, SEEK_SET); while (fread (&Byte, 1, 1, Handle) == 1) { /* * Ignore null characters. Some acpidump-type utilities insert * a few of these, probably a bug in the utility. As long as these * characters are in lines that are tossed (non-data), they * won't cause a problem. */ if (!Byte) { continue; } /* Check for an ASCII character */ if (!ACPI_IS_ASCII (Byte)) { printf ("Found non-ascii char: %2.2X at file offset %u (0x%X)\n", Byte, Offset, Offset); if (!Gbl_ForceExtraction) { goto ErrorExit; } } /* Ensure character is either printable or a "space" char */ else if (!isprint (Byte) && !isspace (Byte)) { printf ("Found non-printable char: %2.2X at file offset %u (0x%X)\n", Byte, Offset, Offset); if (!Gbl_ForceExtraction) { goto ErrorExit; } } Offset++; } /* File is OK (100% ASCII) */ fseek (Handle, 0, SEEK_SET); return (TRUE); ErrorExit: printf ("File appears to be binary " "(contains non-text or non-ascii characters)\n"); fseek (Handle, 0, SEEK_SET); return (FALSE); } /****************************************************************************** * * FUNCTION: AxIsEmptyLine * * PARAMETERS: Buffer - Line from input file * * RETURN: TRUE if line is empty (zero or more blanks only) * * DESCRIPTION: Determine if an input line is empty. * ******************************************************************************/ BOOLEAN AxIsEmptyLine ( char *Buffer) { /* Skip all spaces */ while (*Buffer == ' ') { Buffer++; } /* Line is empty when a Unix or DOS-style line terminator is found. */ if ((*Buffer == '\r') || (*Buffer == '\n')) { return (1); } return (0); } /****************************************************************************** * * FUNCTION: AxIsHexDataLine * * PARAMETERS: None * * RETURN: Status. 1 if the table header is valid, 0 otherwise. * * DESCRIPTION: Check for a valid line of hex data of the form: * * 00a0: 0c 00 00 00 03 00 00 00 43 48 41 35 0c 00 00 00 ........CHA5.... * ******************************************************************************/ BOOLEAN AxIsHexDataLine ( void) { if (AxIsEmptyLine (Gbl_LineBuffer) || (Gbl_LineBuffer[0] != ' ')) { return (FALSE); } if (!strstr (Gbl_LineBuffer, ": ")) { /* Not valid data line */ return (FALSE); } return (TRUE); } /****************************************************************************** * * FUNCTION: AxIsDataBlockHeader * * PARAMETERS: None * * RETURN: Status. 1 if the table header is valid, 0 otherwise. * * DESCRIPTION: Check if the ACPI table identifier in the input acpidump text * file is valid (of the form: @ ). * ******************************************************************************/ BOOLEAN AxIsDataBlockHeader ( void) { /* Ignore lines that are too short to be header lines */ if (strlen (Gbl_LineBuffer) < AX_MIN_BLOCK_HEADER_LENGTH) { return (FALSE); } /* Ignore empty lines and lines that start with a space */ if (AxIsEmptyLine (Gbl_LineBuffer) || (Gbl_LineBuffer[0] == ' ')) { return (FALSE); } /* * Ignore lines that are not headers of the form @ . * Basically, just look for the '@' symbol, surrounded by spaces. * * Examples of headers that must be supported: * * DSDT @ 0x737e4000 * XSDT @ 0x737f2fff * RSD PTR @ 0xf6cd0 * SSDT @ (nil) */ if (!AX_IS_TABLE_BLOCK_HEADER) { return (FALSE); } AxNormalizeSignature (Gbl_LineBuffer); return (TRUE); } /******************************************************************************* * * FUNCTION: AxNormalizeSignature * * PARAMETERS: Name - Ascii string containing an ACPI signature * * RETURN: None * * DESCRIPTION: Change "RSD PTR" to "RSDP" * ******************************************************************************/ void AxNormalizeSignature ( char *Signature) { if (!strncmp (Signature, "RSD ", 4)) { Signature[3] = 'P'; } } /****************************************************************************** * * FUNCTION: AxConvertToBinary * * PARAMETERS: InputLine - One line from the input acpidump file * OutputData - Where the converted data is returned * * RETURN: The number of bytes actually converted * * DESCRIPTION: Convert one line of ascii text binary (up to 16 bytes) * * NOTE: Assumes the input data line has been validated to be of the form: * * 0010: 48 53 57 55 4c 54 2d 52 01 00 00 00 49 4e 54 4c HSWULT-R....INTL * ******************************************************************************/ int AxConvertToBinary ( char *InputLine, unsigned char *OutputData) { char *ColonDelimiter; int BytesConverted; int Converted[16]; int i; /* * Terminate input line immediately after the data. Otherwise, the * second line below will not scan correctly. * * This handles varying lengths for the offset: line prefix. This support * for tables larger than 1mb was added 05/2018. * * 00b0: 03 00 00 00 43 48 41 36 0c 00 00 00 03 00 00 00 ....CHA6........ * 00c0: 43 48 41 37 CHA7 * * 012340b0: 03 00 00 00 43 48 41 36 0c 00 00 00 03 00 00 00 ....CHA6........ * 012340c0: 43 48 41 37 CHA7 */ ColonDelimiter = strchr (InputLine, ':'); ColonDelimiter [AX_HEX_DATA_LENGTH] = 0; /* * Convert one line of table data, of the form: * : * * Example: * 02C0: 5F 53 42 5F 4C 4E 4B 44 00 12 13 04 0C FF FF 08 _SB_LNKD........ */ BytesConverted = sscanf (InputLine, "%*s %2X %2X %2X %2X %2X %2X %2X %2X %2X %2X %2X %2X %2X %2X %2X %2X", &Converted[0], &Converted[1], &Converted[2], &Converted[3], &Converted[4], &Converted[5], &Converted[6], &Converted[7], &Converted[8], &Converted[9], &Converted[10], &Converted[11], &Converted[12], &Converted[13], &Converted[14], &Converted[15]); if (BytesConverted == EOF) { printf ("EOF while converting ASCII line to binary\n"); return (-1); } /* * Pack converted data into a byte array. * Note: BytesConverted == 0 is acceptable. */ for (i = 0; i < BytesConverted; i++) { OutputData[i] = (unsigned char) Converted[i]; } return (BytesConverted); } /****************************************************************************** * * FUNCTION: AxCountTableInstances * * PARAMETERS: InputPathname - Filename for acpidump file * Signature - Requested signature to count * * RETURN: The number of instances of the signature * * DESCRIPTION: Count the instances of tables with the given signature within * the input acpidump file. * ******************************************************************************/ unsigned int AxCountTableInstances ( char *InputPathname, char *Signature) { FILE *InputFile; unsigned int Instances = 0; InputFile = fopen (InputPathname, "r"); if (!InputFile) { printf ("Could not open input file %s\n", InputPathname); return (0); } /* Count the number of instances of this signature */ while (fgets (Gbl_InstanceBuffer, AX_LINE_BUFFER_SIZE, InputFile)) { /* Ignore empty lines and lines that start with a space */ if (AxIsEmptyLine (Gbl_InstanceBuffer) || (Gbl_InstanceBuffer[0] == ' ')) { continue; } AxNormalizeSignature (Gbl_InstanceBuffer); if (ACPI_COMPARE_NAMESEG (Gbl_InstanceBuffer, Signature)) { Instances++; } } fclose (InputFile); return (Instances); } /****************************************************************************** * * FUNCTION: AxGetNextInstance * * PARAMETERS: InputPathname - Filename for acpidump file * Signature - Requested ACPI signature * * RETURN: The next instance number for this signature. Zero if this * is the first instance of this signature. * * DESCRIPTION: Get the next instance number of the specified table. If this * is the first instance of the table, create a new instance * block. Note: only SSDT and PSDT tables can have multiple * instances. * ******************************************************************************/ unsigned int AxGetNextInstance ( char *InputPathname, char *Signature) { AX_TABLE_INFO *Info; Info = Gbl_TableListHead; while (Info) { if (*(UINT32 *) Signature == Info->Signature) { break; } Info = Info->Next; } if (!Info) { /* Signature not found, create new table info block */ Info = malloc (sizeof (AX_TABLE_INFO)); if (!Info) { printf ("Could not allocate memory (0x%X bytes)\n", (unsigned int) sizeof (AX_TABLE_INFO)); exit (0); } Info->Signature = *(UINT32 *) Signature; Info->Instances = AxCountTableInstances (InputPathname, Signature); Info->NextInstance = 1; Info->Next = Gbl_TableListHead; Gbl_TableListHead = Info; } if (Info->Instances > 1) { return (Info->NextInstance++); } return (0); } /****************************************************************************** * * FUNCTION: AxConvertAndWrite * * PARAMETERS: OutputFile - Where to write the binary data * ThisSignature - Signature of current ACPI table * * RETURN: Length of the converted line * * DESCRIPTION: Convert one line of input hex ascii text to binary, and write * the binary data to the table output file. * * NOTE: Assumes the input data line has been validated to be of the form: * * 0010: 48 53 57 55 4c 54 2d 52 01 00 00 00 49 4e 54 4c HSWULT-R....INTL * ******************************************************************************/ int AxConvertAndWrite ( FILE *OutputFile, char *ThisSignature) { int BytesWritten; int BytesConverted; /* Convert one line of ascii hex data to binary */ BytesConverted = AxConvertToBinary (Gbl_LineBuffer, Gbl_BinaryData); if (BytesConverted == EOF) { return (EOF); } if (!BytesConverted) { return (0); } /* Write the binary data */ BytesWritten = fwrite (Gbl_BinaryData, 1, BytesConverted, OutputFile); if (BytesWritten != BytesConverted) { printf ("Error while writing file %s\n", Gbl_OutputFilename); return (-1); } return (BytesWritten); } /****************************************************************************** * * FUNCTION: AxDumpTableHeader * * PARAMETERS: Header - A binary ACPI table header * * RETURN: None * * DESCRIPTION: Display the contents of a standard ACPI table header * ******************************************************************************/ void AxDumpTableHeader ( unsigned char *Header) { ACPI_TABLE_HEADER *TableHeader = (ACPI_TABLE_HEADER *) (void *) Header; ACPI_TABLE_RSDP *Rsdp = (ACPI_TABLE_RSDP *) (void *) Header; ACPI_TABLE_FACS *Facs = (ACPI_TABLE_FACS *) (void *) Header; /* RSDP has an oddball signature and header */ if (ACPI_VALIDATE_RSDP_SIG (TableHeader->Signature)) { AxCheckAscii ((char *) &Header[9], 6); Gbl_TableCount++; printf (" %.2u) %5.4s 0x%8.8X 0x%2.2X \"%6.6s\"\n", Gbl_TableCount, "RSDP", Rsdp->Length, Rsdp->Revision, Rsdp->OemId); return; } if (!AcpiUtValidNameseg (TableHeader->Signature)) { return; } /* Signature and Table length */ Gbl_TableCount++; printf (" %.2u) %5.4s 0x%8.8X", Gbl_TableCount, TableHeader->Signature, TableHeader->Length); /* FACS has only signature and length */ if (ACPI_COMPARE_NAMESEG (TableHeader->Signature, "FACS")) { printf (" 0x%2.2X\n", Facs->Version); return; } /* OEM IDs and Compiler IDs */ AxCheckAscii (TableHeader->OemId, 6); AxCheckAscii (TableHeader->OemTableId, 8); AxCheckAscii (TableHeader->AslCompilerId, 4); printf ( " 0x%2.2X \"%6.6s\" \"%8.8s\" 0x%8.8X" " \"%4.4s\" 0x%8.8X\n", TableHeader->Revision, TableHeader->OemId, TableHeader->OemTableId, TableHeader->OemRevision, TableHeader->AslCompilerId, TableHeader->AslCompilerRevision); } #ifdef _AX_FUTURE_ENHANCEMENTS /* Possible enhancement to validate table lengths */ void AxCheckTableLengths ( UINT32 ByteCount, UINT32 AmlByteCount) { if (AmlByteCount == 0) { return; } if (ByteCount == 0) { return; } if ((ByteCount < sizeof (ACPI_TABLE_HEADER)) && (ByteCount >= ACPI_NAMESEG_SIZE)) { printf (" : (Table too short for an ACPI table)"); } else if (ByteCount != AmlByteCount) { printf (" : (Hex data length mismatch with AML length 0x%X)", AmlByteCount); } printf ("\n"); } #endif acpica-unix-20250404/source/tools/efihello/0000775000175000017500000000000014773714134017767 5ustar ivanhuivanhuacpica-unix-20250404/source/tools/efihello/efihello.c0000775000175000017500000000720314773714134021727 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: efihello - very simple ACPICA/EFI integration example * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acapps.h" #define LINE_SIZE 256 static char LineBuffer[LINE_SIZE]; /****************************************************************************** * * FUNCTION: main * * PARAMETERS: argc/argv - Standard argc/argv * * RETURN: Status * * DESCRIPTION: C main function for efihello * ******************************************************************************/ #if !defined(_GNU_EFI) && !defined(_EDK2_EFI) int ACPI_SYSTEM_XFACE main ( int argc, char *argv[]) #else int ACPI_SYSTEM_XFACE acpi_main ( int argc, char *argv[]) #endif { ACPI_FILE File; BOOLEAN DoCloseFile = FALSE; char *Result; AcpiOsInitialize (); printf ("argc=%d\n", argc); if (argc > 1) { File = fopen (argv[1], "r"); if (!File) { printf ("Failed to open %s.\n", argv[1]); return (-1); } DoCloseFile = TRUE; } else { File = stdin; } while (1) { Result = fgets (LineBuffer, LINE_SIZE, File); if (!Result) { printf ("Failed to read %s.\n", argv[1]); fclose (File); return (-2); } printf ("%s", LineBuffer); if (strncmp (Result, "exit", 4) == 0) { break; } } if (DoCloseFile) { fclose (File); } return (0); } acpica-unix-20250404/source/tools/acpidump/0000775000175000017500000000000014773714134020002 5ustar ivanhuivanhuacpica-unix-20250404/source/tools/acpidump/acpidump.h0000775000175000017500000001077614773714134021773 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acpidump.h - Include file for AcpiDump utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * Global variables. Defined in main.c only, externed in all other files */ #ifdef _DECLARE_GLOBALS #define EXTERN #define INIT_GLOBAL(a,b) a=b #else #define EXTERN extern #define INIT_GLOBAL(a,b) a #endif #include "acpi.h" #include "accommon.h" #include "actables.h" #include "acapps.h" /* Globals */ EXTERN BOOLEAN INIT_GLOBAL (Gbl_SummaryMode, FALSE); EXTERN BOOLEAN INIT_GLOBAL (Gbl_VerboseMode, FALSE); EXTERN BOOLEAN INIT_GLOBAL (Gbl_BinaryMode, FALSE); EXTERN BOOLEAN INIT_GLOBAL (Gbl_DumpCustomizedTables, TRUE); EXTERN BOOLEAN INIT_GLOBAL (Gbl_DoNotDumpXsdt, FALSE); EXTERN ACPI_FILE INIT_GLOBAL (Gbl_OutputFile, NULL); EXTERN char INIT_GLOBAL (*Gbl_OutputFilename, NULL); EXTERN UINT64 INIT_GLOBAL (Gbl_RsdpBase, 0); /* Action table used to defer requested options */ typedef struct ap_dump_action { char *Argument; UINT32 ToBeDone; } AP_DUMP_ACTION; #define AP_MAX_ACTIONS 32 #define AP_DUMP_ALL_TABLES 0 #define AP_DUMP_TABLE_BY_ADDRESS 1 #define AP_DUMP_TABLE_BY_NAME 2 #define AP_DUMP_TABLE_BY_FILE 3 #define AP_MAX_ACPI_FILES 256 /* Prevent infinite loops */ /* Minimum FADT sizes for various table addresses */ #define MIN_FADT_FOR_DSDT (ACPI_FADT_OFFSET (Dsdt) + sizeof (UINT32)) #define MIN_FADT_FOR_FACS (ACPI_FADT_OFFSET (Facs) + sizeof (UINT32)) #define MIN_FADT_FOR_XDSDT (ACPI_FADT_OFFSET (XDsdt) + sizeof (UINT64)) #define MIN_FADT_FOR_XFACS (ACPI_FADT_OFFSET (XFacs) + sizeof (UINT64)) /* * apdump - Table get/dump routines */ int ApDumpTableFromFile ( char *Pathname); int ApDumpTableByName ( char *Signature); int ApDumpTableByAddress ( char *AsciiAddress); int ApDumpAllTables ( void); BOOLEAN ApIsValidHeader ( ACPI_TABLE_HEADER *Table); BOOLEAN ApIsValidChecksum ( ACPI_TABLE_HEADER *Table); UINT32 ApGetTableLength ( ACPI_TABLE_HEADER *Table); /* * apfiles - File I/O utilities */ int ApOpenOutputFile ( char *Pathname); int ApWriteToBinaryFile ( ACPI_TABLE_HEADER *Table, UINT32 Instance); ACPI_TABLE_HEADER * ApGetTableFromFile ( char *Pathname, UINT32 *FileSize); acpica-unix-20250404/source/tools/acpidump/apfiles.c0000775000175000017500000002006214773714134021574 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: apfiles - File-related functions for acpidump utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpidump.h" /* Local prototypes */ static int ApIsExistingFile ( char *Pathname); /****************************************************************************** * * FUNCTION: ApIsExistingFile * * PARAMETERS: Pathname - Output filename * * RETURN: 0 on success * * DESCRIPTION: Query for file overwrite if it already exists. * ******************************************************************************/ static int ApIsExistingFile ( char *Pathname) { #if !defined(_GNU_EFI) && !defined(_EDK2_EFI) struct stat StatInfo; int InChar; if (!stat (Pathname, &StatInfo)) { fprintf (stderr, "Target path already exists, overwrite? [y|n] "); InChar = fgetc (stdin); if (InChar == '\n') { InChar = fgetc (stdin); } if (InChar != 'y' && InChar != 'Y') { return (-1); } } #endif return (0); } /****************************************************************************** * * FUNCTION: ApOpenOutputFile * * PARAMETERS: Pathname - Output filename * * RETURN: Open file handle * * DESCRIPTION: Open a text output file for acpidump. Checks if file already * exists. * ******************************************************************************/ int ApOpenOutputFile ( char *Pathname) { ACPI_FILE File; /* If file exists, prompt for overwrite */ if (ApIsExistingFile (Pathname) != 0) { return (-1); } /* Point stdout to the file */ File = fopen (Pathname, "w"); if (!File) { fprintf (stderr, "Could not open output file: %s\n", Pathname); return (-1); } /* Save the file and path */ Gbl_OutputFile = File; Gbl_OutputFilename = Pathname; return (0); } /****************************************************************************** * * FUNCTION: ApWriteToBinaryFile * * PARAMETERS: Table - ACPI table to be written * Instance - ACPI table instance no. to be written * * RETURN: Status * * DESCRIPTION: Write an ACPI table to a binary file. Builds the output * filename from the table signature. * ******************************************************************************/ int ApWriteToBinaryFile ( ACPI_TABLE_HEADER *Table, UINT32 Instance) { char Filename[ACPI_NAMESEG_SIZE + 16] ACPI_NONSTRING; char InstanceStr [16]; ACPI_FILE File; ACPI_SIZE Actual; UINT32 TableLength; /* Obtain table length */ TableLength = ApGetTableLength (Table); /* Construct lower-case filename from the table local signature */ if (ACPI_VALIDATE_RSDP_SIG (Table->Signature)) { ACPI_COPY_NAMESEG (Filename, ACPI_RSDP_NAME); } else { ACPI_COPY_NAMESEG (Filename, Table->Signature); } Filename[0] = (char) tolower ((int) Filename[0]); Filename[1] = (char) tolower ((int) Filename[1]); Filename[2] = (char) tolower ((int) Filename[2]); Filename[3] = (char) tolower ((int) Filename[3]); Filename[ACPI_NAMESEG_SIZE] = 0; /* Handle multiple SSDTs - create different filenames for each */ if (Instance > 0) { snprintf (InstanceStr, sizeof (InstanceStr), "%u", Instance); strcat (Filename, InstanceStr); } strcat (Filename, FILE_SUFFIX_BINARY_TABLE); if (Gbl_VerboseMode) { fprintf (stderr, "Writing [%4.4s] to binary file: %s 0x%X (%u) bytes\n", Table->Signature, Filename, Table->Length, Table->Length); } /* Open the file and dump the entire table in binary mode */ File = fopen (Filename, "wb"); if (!File) { fprintf (stderr, "Could not open output file: %s\n", Filename); return (-1); } Actual = fwrite (Table, 1, TableLength, File); if (Actual != TableLength) { fprintf (stderr, "Error writing binary output file: %s\n", Filename); fclose (File); return (-1); } fclose (File); return (0); } /****************************************************************************** * * FUNCTION: ApGetTableFromFile * * PARAMETERS: Pathname - File containing the binary ACPI table * OutFileSize - Where the file size is returned * * RETURN: Buffer containing the ACPI table. NULL on error. * * DESCRIPTION: Open a file and read it entirely into a new buffer * ******************************************************************************/ ACPI_TABLE_HEADER * ApGetTableFromFile ( char *Pathname, UINT32 *OutFileSize) { ACPI_TABLE_HEADER *Buffer = NULL; ACPI_FILE File; UINT32 FileSize; ACPI_SIZE Actual; /* Must use binary mode */ File = fopen (Pathname, "rb"); if (!File) { fprintf (stderr, "Could not open input file: %s\n", Pathname); return (NULL); } /* Need file size to allocate a buffer */ FileSize = CmGetFileSize (File); if (FileSize == ACPI_UINT32_MAX) { fprintf (stderr, "Could not get input file size: %s\n", Pathname); goto Cleanup; } /* Allocate a buffer for the entire file */ Buffer = ACPI_ALLOCATE_ZEROED (FileSize); if (!Buffer) { fprintf (stderr, "Could not allocate file buffer of size: %u\n", FileSize); goto Cleanup; } /* Read the entire file */ Actual = fread (Buffer, 1, FileSize, File); if (Actual != FileSize) { fprintf (stderr, "Could not read input file: %s\n", Pathname); ACPI_FREE (Buffer); Buffer = NULL; goto Cleanup; } *OutFileSize = FileSize; Cleanup: fclose (File); return (Buffer); } acpica-unix-20250404/source/tools/acpidump/apmain.c0000775000175000017500000002743314773714134021427 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: apmain - Main module for the acpidump utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define _DECLARE_GLOBALS #include "acpidump.h" /* * acpidump - A portable utility for obtaining system ACPI tables and dumping * them in an ASCII hex format suitable for binary extraction via acpixtract. * * Obtaining the system ACPI tables is an OS-specific operation. * * This utility can be ported to any host operating system by providing a * module containing system-specific versions of these interfaces: * * AcpiOsGetTableByAddress * AcpiOsGetTableByIndex * AcpiOsGetTableByName * * See the ACPICA Reference Guide for the exact definitions of these * interfaces. Also, see these ACPICA source code modules for example * implementations: * * source/os_specific/service_layers/oswintbl.c * source/os_specific/service_layers/oslinuxtbl.c */ /* Local prototypes */ static void ApDisplayUsage ( void); static int ApDoOptions ( int argc, char **argv); static int ApInsertAction ( char *Argument, UINT32 ToBeDone); /* Table for deferred actions from command line options */ AP_DUMP_ACTION ActionTable [AP_MAX_ACTIONS]; UINT32 CurrentAction = 0; #define AP_UTILITY_NAME "ACPI Binary Table Dump Utility" #define AP_SUPPORTED_OPTIONS "?a:bc:f:hn:o:r:sv^xz" /****************************************************************************** * * FUNCTION: ApDisplayUsage * * DESCRIPTION: Usage message for the AcpiDump utility * ******************************************************************************/ static void ApDisplayUsage ( void) { ACPI_USAGE_HEADER ("acpidump [options]"); ACPI_OPTION ("-b", "Dump tables to binary files"); ACPI_OPTION ("-h -?", "This help message"); ACPI_OPTION ("-o ", "Redirect output to file"); ACPI_OPTION ("-r
", "Dump tables from specified RSDP"); ACPI_OPTION ("-s", "Print table summaries only"); ACPI_OPTION ("-v", "Display version information"); ACPI_OPTION ("-vd", "Display build date and time"); ACPI_OPTION ("-z", "Verbose mode"); ACPI_USAGE_TEXT ("\nTable Options:\n"); ACPI_OPTION ("-a
", "Get table via a physical address"); ACPI_OPTION ("-c ", "Turning on/off customized table dumping"); ACPI_OPTION ("-f ", "Get table via a binary file"); ACPI_OPTION ("-n ", "Get table via a name/signature"); ACPI_OPTION ("-x", "Use RSDT instead of XSDT"); ACPI_USAGE_TEXT ( "\n" "Invocation without parameters dumps all available tables\n" "Multiple mixed instances of -a, -f, and -n are supported\n\n"); } /****************************************************************************** * * FUNCTION: ApInsertAction * * PARAMETERS: Argument - Pointer to the argument for this action * ToBeDone - What to do to process this action * * RETURN: Status * * DESCRIPTION: Add an action item to the action table * ******************************************************************************/ static int ApInsertAction ( char *Argument, UINT32 ToBeDone) { /* Insert action and check for table overflow */ ActionTable [CurrentAction].Argument = Argument; ActionTable [CurrentAction].ToBeDone = ToBeDone; CurrentAction++; if (CurrentAction > AP_MAX_ACTIONS) { fprintf (stderr, "Too many table options (max %d)\n", AP_MAX_ACTIONS); return (-1); } return (0); } /****************************************************************************** * * FUNCTION: ApDoOptions * * PARAMETERS: argc/argv - Standard argc/argv * * RETURN: Status * * DESCRIPTION: Command line option processing. The main actions for getting * and dumping tables are deferred via the action table. * *****************************************************************************/ static int ApDoOptions ( int argc, char **argv) { int j; ACPI_STATUS Status; /* Command line options */ while ((j = AcpiGetopt (argc, argv, AP_SUPPORTED_OPTIONS)) != ACPI_OPT_END) switch (j) { /* * Global options */ case 'b': /* Dump all input tables to binary files */ Gbl_BinaryMode = TRUE; continue; case 'c': /* Dump customized tables */ if (!strcmp (AcpiGbl_Optarg, "on")) { Gbl_DumpCustomizedTables = TRUE; } else if (!strcmp (AcpiGbl_Optarg, "off")) { Gbl_DumpCustomizedTables = FALSE; } else { fprintf (stderr, "%s: Cannot handle this switch, please use on|off\n", AcpiGbl_Optarg); return (-1); } continue; case 'h': case '?': ApDisplayUsage (); return (1); case 'o': /* Redirect output to a single file */ if (ApOpenOutputFile (AcpiGbl_Optarg)) { return (-1); } continue; case 'r': /* Dump tables from specified RSDP */ Status = AcpiUtStrtoul64 (AcpiGbl_Optarg, &Gbl_RsdpBase); if (ACPI_FAILURE (Status)) { fprintf (stderr, "%s: Could not convert to a physical address\n", AcpiGbl_Optarg); return (-1); } continue; case 's': /* Print table summaries only */ Gbl_SummaryMode = TRUE; continue; case 'x': /* Do not use XSDT */ if (!AcpiGbl_DoNotUseXsdt) { AcpiGbl_DoNotUseXsdt = TRUE; } else { Gbl_DoNotDumpXsdt = TRUE; } continue; case 'v': /* -v: (Version): signon already emitted, just exit */ switch (AcpiGbl_Optarg[0]) { case '^': /* -v: (Version) */ fprintf (stderr, ACPI_COMMON_SIGNON (AP_UTILITY_NAME)); return (1); case 'd': fprintf (stderr, ACPI_COMMON_SIGNON (AP_UTILITY_NAME)); printf (ACPI_COMMON_BUILD_TIME); return (1); default: printf ("Unknown option: -v%s\n", AcpiGbl_Optarg); return (-1); } break; case 'z': /* Verbose mode */ Gbl_VerboseMode = TRUE; fprintf (stderr, ACPI_COMMON_SIGNON (AP_UTILITY_NAME)); continue; /* * Table options */ case 'a': /* Get table by physical address */ if (ApInsertAction (AcpiGbl_Optarg, AP_DUMP_TABLE_BY_ADDRESS)) { return (-1); } break; case 'f': /* Get table from a file */ if (ApInsertAction (AcpiGbl_Optarg, AP_DUMP_TABLE_BY_FILE)) { return (-1); } break; case 'n': /* Get table by input name (signature) */ if (ApInsertAction (AcpiGbl_Optarg, AP_DUMP_TABLE_BY_NAME)) { return (-1); } break; default: ApDisplayUsage (); return (-1); } /* If there are no actions, this means "get/dump all tables" */ if (CurrentAction == 0) { if (ApInsertAction (NULL, AP_DUMP_ALL_TABLES)) { return (-1); } } return (0); } /****************************************************************************** * * FUNCTION: main * * PARAMETERS: argc/argv - Standard argc/argv * * RETURN: Status * * DESCRIPTION: C main function for acpidump utility * ******************************************************************************/ #if !defined(_GNU_EFI) && !defined(_EDK2_EFI) int ACPI_SYSTEM_XFACE main ( int argc, char *argv[]) #else int ACPI_SYSTEM_XFACE acpi_main ( int argc, char *argv[]) #endif { int Status = 0; AP_DUMP_ACTION *Action; UINT32 FileSize; UINT32 i; ACPI_DEBUG_INITIALIZE (); /* For debug version only */ AcpiOsInitialize (); Gbl_OutputFile = ACPI_FILE_OUT; AcpiGbl_IntegerByteWidth = 8; /* Process command line options */ Status = ApDoOptions (argc, argv); if (Status > 0) { return (0); } if (Status < 0) { return (Status); } /* Get/dump ACPI table(s) as requested */ for (i = 0; i < CurrentAction; i++) { Action = &ActionTable[i]; switch (Action->ToBeDone) { case AP_DUMP_ALL_TABLES: Status = ApDumpAllTables (); break; case AP_DUMP_TABLE_BY_ADDRESS: Status = ApDumpTableByAddress (Action->Argument); break; case AP_DUMP_TABLE_BY_NAME: Status = ApDumpTableByName (Action->Argument); break; case AP_DUMP_TABLE_BY_FILE: Status = ApDumpTableFromFile (Action->Argument); break; default: fprintf (stderr, "Internal error, invalid action: 0x%X\n", Action->ToBeDone); return (-1); } if (Status) { return (Status); } } if (Gbl_OutputFilename) { if (Gbl_VerboseMode) { /* Summary for the output file */ FileSize = CmGetFileSize (Gbl_OutputFile); fprintf (stderr, "Output file %s contains 0x%X (%u) bytes\n\n", Gbl_OutputFilename, FileSize, FileSize); } fclose (Gbl_OutputFile); } return (Status); } acpica-unix-20250404/source/tools/acpidump/apdump.c0000775000175000017500000003276014773714134021447 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: apdump - Dump routines for ACPI tables (acpidump) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpidump.h" /* Local prototypes */ static int ApDumpTableBuffer ( ACPI_TABLE_HEADER *Table, UINT32 Instance, ACPI_PHYSICAL_ADDRESS Address); /****************************************************************************** * * FUNCTION: ApIsValidHeader * * PARAMETERS: Table - Pointer to table to be validated * * RETURN: TRUE if the header appears to be valid. FALSE otherwise * * DESCRIPTION: Check for a valid ACPI table header * ******************************************************************************/ BOOLEAN ApIsValidHeader ( ACPI_TABLE_HEADER *Table) { if (!ACPI_VALIDATE_RSDP_SIG (Table->Signature)) { /* Make sure signature is all ASCII and a valid ACPI name */ if (!AcpiUtValidNameseg (Table->Signature)) { fprintf (stderr, "Table signature (0x%8.8X) is invalid\n", *(UINT32 *) Table->Signature); return (FALSE); } /* Check for minimum table length */ if (Table->Length < sizeof (ACPI_TABLE_HEADER)) { fprintf (stderr, "Table length (0x%8.8X) is invalid\n", Table->Length); return (FALSE); } } return (TRUE); } /****************************************************************************** * * FUNCTION: ApIsValidChecksum * * PARAMETERS: Table - Pointer to table to be validated * * RETURN: TRUE if the checksum appears to be valid. FALSE otherwise. * * DESCRIPTION: Check for a valid ACPI table checksum. * ******************************************************************************/ BOOLEAN ApIsValidChecksum ( ACPI_TABLE_HEADER *Table) { ACPI_STATUS Status; ACPI_TABLE_RSDP *Rsdp; if (ACPI_VALIDATE_RSDP_SIG (Table->Signature)) { /* * Checksum for RSDP. * Note: Other checksums are computed during the table dump. */ Rsdp = ACPI_CAST_PTR (ACPI_TABLE_RSDP, Table); Status = AcpiTbValidateRsdp (Rsdp); } else { /* We don't have to check for a CDAT here, since CDAT is not in the RSDT/XSDT */ Status = AcpiUtVerifyChecksum (Table, Table->Length); } if (ACPI_FAILURE (Status)) { fprintf (stderr, "%4.4s: Warning: wrong checksum in table\n", Table->Signature); } return (AE_OK); } /****************************************************************************** * * FUNCTION: ApGetTableLength * * PARAMETERS: Table - Pointer to the table * * RETURN: Table length * * DESCRIPTION: Obtain table length according to table signature. * ******************************************************************************/ UINT32 ApGetTableLength ( ACPI_TABLE_HEADER *Table) { ACPI_TABLE_RSDP *Rsdp; /* Check if table is valid */ if (!ApIsValidHeader (Table)) { return (0); } if (ACPI_VALIDATE_RSDP_SIG (Table->Signature)) { Rsdp = ACPI_CAST_PTR (ACPI_TABLE_RSDP, Table); return (AcpiTbGetRsdpLength (Rsdp)); } /* Normal ACPI table */ return (Table->Length); } /****************************************************************************** * * FUNCTION: ApDumpTableBuffer * * PARAMETERS: Table - ACPI table to be dumped * Instance - ACPI table instance no. to be dumped * Address - Physical address of the table * * RETURN: None * * DESCRIPTION: Dump an ACPI table in standard ASCII hex format, with a * header that is compatible with the AcpiXtract utility. * ******************************************************************************/ static int ApDumpTableBuffer ( ACPI_TABLE_HEADER *Table, UINT32 Instance, ACPI_PHYSICAL_ADDRESS Address) { UINT32 TableLength; TableLength = ApGetTableLength (Table); /* Print only the header if requested */ if (Gbl_SummaryMode) { AcpiTbPrintTableHeader (Address, Table); return (0); } /* Dump to binary file if requested */ if (Gbl_BinaryMode) { return (ApWriteToBinaryFile (Table, Instance)); } /* * Dump the table with header for use with acpixtract utility. * Note: simplest to just always emit a 64-bit address. AcpiXtract * utility can handle this. */ fprintf (Gbl_OutputFile, "%4.4s @ 0x%8.8X%8.8X\n", Table->Signature, ACPI_FORMAT_UINT64 (Address)); AcpiUtDumpBufferToFile (Gbl_OutputFile, ACPI_CAST_PTR (UINT8, Table), TableLength, DB_BYTE_DISPLAY, 0); fprintf (Gbl_OutputFile, "\n"); return (0); } /****************************************************************************** * * FUNCTION: ApDumpAllTables * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Get all tables from the RSDT/XSDT (or at least all of the * tables that we can possibly get). * ******************************************************************************/ int ApDumpAllTables ( void) { ACPI_TABLE_HEADER *Table; UINT32 Instance = 0; ACPI_PHYSICAL_ADDRESS Address; ACPI_STATUS Status; int TableStatus; UINT32 i; /* Get and dump all available ACPI tables */ for (i = 0; i < AP_MAX_ACPI_FILES; i++) { Status = AcpiOsGetTableByIndex (i, &Table, &Instance, &Address); if (ACPI_FAILURE (Status)) { /* AE_LIMIT means that no more tables are available */ if (Status == AE_LIMIT) { return (0); } else if (i == 0) { fprintf (stderr, "Could not get ACPI tables, %s\n", AcpiFormatException (Status)); return (-1); } else { fprintf (stderr, "Could not get ACPI table at index %u, %s\n", i, AcpiFormatException (Status)); continue; } } TableStatus = ApDumpTableBuffer (Table, Instance, Address); ACPI_FREE (Table); if (TableStatus) { break; } } /* Something seriously bad happened if the loop terminates here */ return (-1); } /****************************************************************************** * * FUNCTION: ApDumpTableByAddress * * PARAMETERS: AsciiAddress - Address for requested ACPI table * * RETURN: Status * * DESCRIPTION: Get an ACPI table via a physical address and dump it. * ******************************************************************************/ int ApDumpTableByAddress ( char *AsciiAddress) { ACPI_PHYSICAL_ADDRESS Address; ACPI_TABLE_HEADER *Table; ACPI_STATUS Status; int TableStatus; UINT64 LongAddress; /* Convert argument to an integer physical address */ Status = AcpiUtStrtoul64 (AsciiAddress, &LongAddress); if (ACPI_FAILURE (Status)) { fprintf (stderr, "%s: Could not convert to a physical address\n", AsciiAddress); return (-1); } Address = (ACPI_PHYSICAL_ADDRESS) LongAddress; Status = AcpiOsGetTableByAddress (Address, &Table); if (ACPI_FAILURE (Status)) { fprintf (stderr, "Could not get table at 0x%8.8X%8.8X, %s\n", ACPI_FORMAT_UINT64 (Address), AcpiFormatException (Status)); return (-1); } TableStatus = ApDumpTableBuffer (Table, 0, Address); ACPI_FREE (Table); return (TableStatus); } /****************************************************************************** * * FUNCTION: ApDumpTableByName * * PARAMETERS: Signature - Requested ACPI table signature * * RETURN: Status * * DESCRIPTION: Get an ACPI table via a signature and dump it. Handles * multiple tables with the same signature (SSDTs). * ******************************************************************************/ int ApDumpTableByName ( char *Signature) { char LocalSignature [ACPI_NAMESEG_SIZE + 1]; UINT32 Instance; ACPI_TABLE_HEADER *Table; ACPI_PHYSICAL_ADDRESS Address; ACPI_STATUS Status; int TableStatus; if (strlen (Signature) != ACPI_NAMESEG_SIZE) { fprintf (stderr, "Invalid table signature [%s]: must be exactly 4 characters\n", Signature); return (-1); } /* Table signatures are expected to be uppercase */ strcpy (LocalSignature, Signature); AcpiUtStrupr (LocalSignature); /* To be friendly, handle tables whose signatures do not match the name */ if (ACPI_COMPARE_NAMESEG (LocalSignature, "FADT")) { strcpy (LocalSignature, ACPI_SIG_FADT); } else if (ACPI_COMPARE_NAMESEG (LocalSignature, "MADT")) { strcpy (LocalSignature, ACPI_SIG_MADT); } /* Dump all instances of this signature (to handle multiple SSDTs) */ for (Instance = 0; Instance < AP_MAX_ACPI_FILES; Instance++) { Status = AcpiOsGetTableByName (LocalSignature, Instance, &Table, &Address); if (ACPI_FAILURE (Status)) { /* AE_LIMIT means that no more tables are available */ if (Status == AE_LIMIT) { return (0); } fprintf (stderr, "Could not get ACPI table with signature [%s], %s\n", LocalSignature, AcpiFormatException (Status)); return (-1); } TableStatus = ApDumpTableBuffer (Table, Instance, Address); ACPI_FREE (Table); if (TableStatus) { break; } } /* Something seriously bad happened if the loop terminates here */ return (-1); } /****************************************************************************** * * FUNCTION: ApDumpTableFromFile * * PARAMETERS: Pathname - File containing the binary ACPI table * * RETURN: Status * * DESCRIPTION: Dump an ACPI table from a binary file * ******************************************************************************/ int ApDumpTableFromFile ( char *Pathname) { ACPI_TABLE_HEADER *Table; UINT32 FileSize = 0; int TableStatus = -1; /* Get the entire ACPI table from the file */ Table = ApGetTableFromFile (Pathname, &FileSize); if (!Table) { return (-1); } if (!AcpiUtValidNameseg (Table->Signature)) { fprintf (stderr, "No valid ACPI signature was found in input file %s\n", Pathname); } /* File must be at least as long as the table length */ if (Table->Length > FileSize) { fprintf (stderr, "Table length (0x%X) is too large for input file (0x%X) %s\n", Table->Length, FileSize, Pathname); goto Exit; } if (Gbl_VerboseMode) { fprintf (stderr, "Input file: %s contains table [%4.4s], 0x%X (%u) bytes\n", Pathname, Table->Signature, FileSize, FileSize); } TableStatus = ApDumpTableBuffer (Table, 0, 0); Exit: ACPI_FREE (Table); return (TableStatus); } acpica-unix-20250404/source/tools/acpihelp/0000775000175000017500000000000014773714134017765 5ustar ivanhuivanhuacpica-unix-20250404/source/tools/acpihelp/ahgrammar.c0000775000175000017500000002633414773714134022103 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahgrammar - AML grammar items * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpihelp.h" const AH_AML_TYPE Gbl_AmlTypesInfo[] = { {"ComputationalData", "ComputationalData :=\n" "ByteConst | WordConst | DWordConst | QWordConst |\n" "String | ConstObj | RevisionOp | DefBuffer\n\n" "DataObject := ComputationalData | DefPackage | DefVarPackage\n" "DataRefObject := DataObject | ObjectReference | DDBHandle\n\n" "ByteConst := BytePrefix ByteData\n" "BytePrefix := 0x0A\n" "ByteList := Nothing | \n" "ByteData := 0x00 - 0xFF\n\n" "WordConst := WordPrefix WordData\n" "WordPrefix := 0x0B\n" "WordData := 0x0000-0xFFFF\n\n" "DWordConst := DWordPrefix DWordData\n" "DWordPrefix := 0x0C\n" "DWordData := 0x00000000-0xFFFFFFFF\n\n" "QWordConst := QWordPrefix QWordData\n" "QWordPrefix := 0x0E\n" "QWordData := 0x0000000000000000-0xFFFFFFFFFFFFFFFF\n\n" "String := StringPrefix AsciiCharList NullChar\n" "StringPrefix := 0x0D\n" "AsciiCharList := Nothing | \n" "AsciiChar := 0x01 - 0x7F\n" "NullChar := 0x00\n\n" "ConstObj := ZeroOp | OneOp | OnesOp\n\n"}, {"DefinitionBlock", "DefinitionBlockHeader :=\n" "TableSignature TableLength SpecCompliance Checksum\n" "OemID OemTableID OemRevision CreatorID CreatorRevision\n\n" "TableSignature := AsciiChar AsciiChar AsciiChar AsciiChar\n" "TableLength := DWordData\n" "// Length of the table in bytes including\n" "// the block header.\n\n" "SpecCompliance := ByteData\n" "// The revision of the structure\n\n" "CheckSum := ByteData\n" "// Byte checksum of the entire table\n\n" "OemID := ByteData(6)\n" "// OEM ID of up to 6 characters. If the OEM\n" "// ID is shorter than 6 characters, it\n" "// can be terminated with a NULL\n" "// character.\n\n" "OemTableID := ByteData(8)\n" "// OEM Table ID of up to 8 characters. If\n" "// the OEM Table ID is shorter than 8\n" "// characters, it can be terminated with\n" "// a NULL character.\n" "OemRevision := DWordData\n" "// OEM Table Revision\n\n" "CreatorID := DWordData\n" "// Vendor ID of the ASL compiler\n" "CreatorRevision := DWordData\n" "// Revision of the ASL compiler\n"}, {"FieldFlags", "FieldFlags := ByteData\n" "// bits 0-3: AccessType\n" "// 0 AnyAcc\n" "// 1 ByteAcc\n" "// 2 WordAcc\n" "// 3 DWordAcc\n" "// 4 QWordAcc\n" "// 5 BufferAcc\n" "// 6 Reserved\n" "// 7 Reserved\n" "// bit 4: LockRule\n" "// 0 NoLock\n" "// 1 Lock\n" "// bits 5-6: UpdateRule\n" "// 0 Preserve\n" "// 1 WriteAsOnes\n" "// 2 WriteAsZeros\n" "// bit 7:\n" "// 0 Reserved (must be 0)\n"}, {"FieldList", "FieldList := Nothing | \n\n" "FieldElement := NamedField | ReservedField | AccessField |\n" " ExtendedAccessField | ConnectField\n\n" "NamedField := NameSeg PkgLength\n" "ReservedField := 0x00 PkgLength\n\n" "AccessField := 0x01 AccessType\n" "AccessField := 0x01 AccessType AccessAttrib\n\n" "AccessType := ByteData\n" "// Bits 0:3 - Same as AccessType bits of FieldFlags.\n" "// Bits 4:5 - Reserved\n" "// Bits 7:6 - 0 = AccessAttribute\n" "// Normal Access Attributes\n" "// 1 = AttribBytes (x)\n" "// 2 = AttribRawBytes (x)\n" "// 3 = AttribRawProcessBytes (x)\n" "// Note: 'x' is encoded as bits 0:7 of the AccessAttrib byte.\n\n" "AccessAttrib := ByteData\n" "// bits 0:7: Byte length\n" "//\n" "// If AccessType is BufferAcc for the SMB or\n" "// GPIO OpRegions, AccessAttrib can be one of\n" "// the following values:\n" "// 0x02 AttribQuick\n" "// 0x04 AttribSendReceive\n" "// 0x06 AttribByte\n" "// 0x08 AttribWord\n" "// 0x0A AttribBlock\n" "// 0x0C AttribProcessCall\n" "// 0x0D AttribBlockProcessCall\n\n" "ExtendedAccessField := 0x03 AccessType ExtendedAccessAttrib AccessLength\n" "ExtendedAccessAttrib := ByteData\n" "// 0x0B AttribBytes\n" "// 0x0E AttribRawBytes\n" "// 0x0F AttribRawProcess\n\n" "ConnectField := 0x02 NameString> | <0x02 BufferData\n"}, {"MatchOpcode", "DefMatch := MatchOp SearchPkg MatchOpcode Operand MatchOpcode Operand StartIndex\n" "MatchOp := 0x89\n" "SearchPkg := TermArg => Package\n" "MatchOpcode := ByteData\n" "// 0 MTR\n" "// 1 MEQ\n" "// 2 MLE\n" "// 3 MLT\n" "// 4 MGE\n" "// 5 MGT\n"}, {"MethodFlags", "DefMethod := MethodOp PkgLength NameString MethodFlags TermList\n" "MethodOp := 0x14\n" "MethodFlags := ByteData\n" "// bit 0-2: ArgCount (0-7)\n" "// bit 3: SerializeFlag\n" "// 0 NotSerialized\n" "// 1 Serialized\n" "// bit 4-7: SyncLevel (0x00-0x0f)\n"}, {"Miscellaneous", "ZeroOp := 0x00\n" "OneOp := 0x01\n" "OnesOp := 0xFF\n" "RevisionOp := ExtOpPrefix 0x30\n" "ExtOpPrefix := 0x5B\n"}, {"NameSeg", "NameSeg := \n" "// Note: NameSegs shorter than 4 characters are filled with\n" "// trailing underscores.\n\n" "NameChar := DigitChar | LeadNameChar\n" "LeadNameChar := 'A'-'Z' | '_' (0x41 - 0x5A) | (0x5F)\n" "DigitChar := '0'-'9' (0x30 - 0x39)\n"}, {"NameString", "NameString := | \n" "PrefixPath := Nothing | \n" "RootChar := '\\' (0x5C)\n" "ParentPrefixChar := '^' (0x5E)\n"}, {"NamePath", "NamePath := NameSeg | DualNamePath | MultiNamePath | NullName\n" "DualNamePath := DualNamePrefix NameSeg NameSeg\n" "DualNamePrefix := 0x2E\n" "MultiNamePath := MultiNamePrefix SegCount NameSeg(SegCount)\n" "MultiNamePrefix := 0x2F\n" "SegCount := ByteData\n" "// Note: SegCount can be from 1 to 255. For example: MultiNamePrefix(35)\n" "// is encoded as 0x2f 0x23 and followed by 35 NameSegs. So, the total\n" "// encoding length will be 1 + 1 + (35 * 4) = 142. Notice that:\n" "// DualNamePrefix NameSeg NameSeg has a smaller encoding than the\n" "// encoding of: MultiNamePrefix(2) NameSeg NameSeg\n\n" "SimpleName := NameString | ArgObj | LocalObj\n" "SuperName := SimpleName | DebugObj | Type6Opcode\n" "NullName := 0x00\n" "Target := SuperName | NullName\n"}, {"PkgLength", "PkgLength := PkgLeadByte |\n" " |\n" " |\n" "\n\n" "PkgLeadByte :=\n" "bit 7-6: Count of ByteData that follows (0-3)\n" "bit 5-4: Only used if (PkgLength < 63)\n" "bit 3-0: Least significant package length nybble\n" "// Note: The high 2 bits of the first byte reveal how many follow bytes\n" "// are in the PkgLength. If the PkgLength has only one byte, bit 0 through 5\n" "// are used to encode the package length (in other words, values 0-63). If\n" "// the package length value is more than 63, more than one byte must be\n" "// used for the encoding in which case bit 4 and 5 of the PkgLeadByte are\n" "// reserved and must be zero. If the multiple bytes encoding is used, bits\n" "// 0-3 of the PkgLeadByte become the least significant 4 bits of the\n" "// resulting package length value. The next ByteData will become the next\n" "// least significant 8 bits of the resulting value and so on, up to 3\n" "// ByteData bytes. Thus, the maximum package length is 2**28.\n"}, {"RegionSpace", "RegionSpace := ByteData\n" "// 0x00 SystemMemory\n" "// 0x01 SystemIO\n" "// 0x02 PCI_Config\n" "// 0x03 EmbeddedControl\n" "// 0x04 SMBus\n" "// 0x05 SystemCMOS\n" "// 0x06 PciBarTarget\n" "// 0x07 IPMI\n" "// 0x08 GeneralPurposeIO\n" "// 0x09 GenericSerialBus\n" "// 0x0A Platform Communications Channel\n" "// 0x0B-0x7E: Reserved\n" "// 0x7F: Functional Fixed Hardware\n" "// 0x80-0xBF: Reserved\n" "// 0xC0-0xFF: OEM Defined\n"}, {"TermObj", "TermObj := NameSpaceModifierObj | NamedObj | Type1Opcode | Type2Opcode\n" "TermList := Nothing | \n\n" "MethodInvocation := NameString TermArgList\n" "TermArgList := Nothing | \n" "TermArg := Type2Opcode | DataObject | ArgObj | LocalObj\n\n" "ObjectList := Nothing | \n" "Object := NameSpaceModifierObj | NamedObj\n"}, {NULL, NULL} }; acpica-unix-20250404/source/tools/acpihelp/ahasl.c0000775000175000017500000002112114773714134021221 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahasl - ASL operator decoding for acpihelp utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #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); } } acpica-unix-20250404/source/tools/acpihelp/ahaslkey.c0000775000175000017500000002443614773714134021746 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahaslkey - Table of all known ASL non-operator keywords and * table of iASL Preprocessor directives * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpihelp.h" /* * ASL Keyword types and associated actual keywords. * This table was extracted from the ACPI specification. */ const AH_ASL_KEYWORD Gbl_AslKeywordInfo[] = { {"AccessAttribKeyword", "Serial Bus Attributes (with legacy SMBus aliases)", ":= AttribQuick (SMBusQuick) | AttribSendReceive (SMBusSendReceive) | " "AttribByte (SMBusByte) | AttribWord (SMBusWord) | " "AttribBlock (SMBusBlock) | AttribProcessCall (SMBusProcessCall) | " "AttribBlockProcessCall (SMBusProcessCall)"}, {"AccessTypeKeyword", "Field Access Types", ":= AnyAcc | ByteAcc | WordAcc | DWordAcc | QWordAcc | BufferAcc"}, {"AddressingModeKeyword", "Mode - Resource Descriptors", ":= AddressingMode7Bit | AddressingMode10Bit"}, {"AddressKeyword", "ACPI memory range types", ":= AddressRangeMemory | AddressRangeReserved | " "AddressRangeNVS | AddressRangeACPI"}, {"AddressSpaceKeyword", "Operation Region Address Space Types", ":= RegionSpaceKeyword | FFixedHW"}, {"BusMasterKeyword", "DMA Bus Mastering", ":= BusMaster | NotBusMaster"}, {"ByteLengthKeyword", "Bits per Byte - Resource Descriptors", ":= DataBitsFive | DataBitsSix | DataBitsSeven | DataBitsEight | DataBitsNine"}, {"ClockPhaseKeyword", "Resource Descriptors", ":= ClockPhaseFirst | ClockPhaseSecond"}, {"ClockPolarityKeyword", "Resource Descriptors", ":= ClockPolarityLow | ClockPolarityHigh"}, {"DecodeKeyword", "Type of Memory Decoding - Resource Descriptors", ":= SubDecode | PosDecode"}, {"DmaTypeKeyword", "DMA Types - DMA Resource Descriptor", ":= Compatibility | TypeA | TypeB | TypeF"}, {"EndianKeyword", "Endian type - Resource Descriptor", ":= BigEndian | LittleEndian"}, {"ExtendedAttribKeyword", "Extended Bus Attributes", ":= AttribBytes (AccessLength) | AttribRawBytes (AccessLength) | " "AttribRawProcessBytes (AccessLength)"}, {"FlowControlKeyword", "Resource Descriptor", ":= FlowControlNone | FlowControlXon | FlowControlHardware"}, {"InterruptLevelKeyword", "Interrupt Active Types", ":= ActiveHigh | ActiveLow | ActiveBoth"}, {"InterruptTypeKeyword", "Interrupt Types", ":= Edge | Level"}, {"IoDecodeKeyword", "I/O Decoding - IO Resource Descriptor", ":= Decode16 | Decode10"}, {"IoRestrictionKeyword", "I/O Restriction - GPIO Resource Descriptors", ":= IoRestrictionNone | IoRestrictionInputOnly | " "IoRestrictionOutputOnly | IoRestrictionNoneAndPreserve"}, {"LockRuleKeyword", "Global Lock use for Field Operator", ":= Lock | NoLock"}, {"MatchOpKeyword", "Types for Match Operator", ":= MTR | MEQ | MLE | MLT | MGE | MGT"}, {"MaxKeyword", "Max Range Type - Resource Descriptors", ":= MaxFixed | MaxNotFixed"}, {"MemTypeKeyword", "Memory Types - Resource Descriptors", ":= Cacheable | WriteCombining | Prefetchable | NonCacheable"}, {"MinKeyword", "Min Range Type - Resource Descriptors", ":= MinFixed | MinNotFixed"}, {"ObjectTypeKeyword", "ACPI Object Types", ":= UnknownObj | IntObj | StrObj | BuffObj | PkgObj | FieldUnitObj | " "DeviceObj | EventObj | MethodObj | MutexObj | OpRegionObj | PowerResObj | " "ProcessorObj | ThermalZoneObj | BuffFieldObj | DDBHandleObj"}, {"ParityKeyword", "Resource Descriptors", ":= ParityTypeNone | ParityTypeSpace | ParityTypeMark | " "ParityTypeOdd | ParityTypeEven"}, {"PinConfigKeyword", "Pin Configuration - GPIO Resource Descriptors", ":= PullDefault | PullUp | PullDown | PullNone"}, {"PolarityKeyword", "Resource Descriptors", ":= PolarityHigh | PolarityLow"}, {"RangeTypeKeyword", "I/O Range Types - Resource Descriptors", ":= ISAOnlyRanges | NonISAOnlyRanges | EntireRange"}, {"ReadWriteKeyword", "Memory Access Types - Resource Descriptors", ":= ReadWrite | ReadOnly"}, {"RegionSpaceKeyword", "Operation Region Address Space Types", ":= UserDefRegionSpace | SystemIO | SystemMemory | PCI_Config | " "EmbeddedControl | SMBus | SystemCMOS | PciBarTarget | IPMI | " "GeneralPurposeIo, GenericSerialBus"}, {"ResourceTypeKeyword", "Resource Usage - Resource Descriptors", ":= ResourceConsumer | ResourceProducer"}, {"SerializeRuleKeyword", "Control Method Serialization", ":= Serialized | NotSerialized"}, {"ShareTypeKeyword", "Interrupt Sharing - Resource Descriptors", ":= Shared | Exclusive | SharedAndWake | ExclusiveAndWake"}, {"SlaveModeKeyword", "Resource Descriptors", ":= ControllerInitiated | DeviceInitiated"}, {"StopBitsKeyword", "Resource Descriptors", ":= StopBitsZero | StopBitsOne | StopBitsOnePlusHalf | StopBitsTwo"}, {"TransferWidthKeyword", "DMA Widths - Fixed DMA Resource Descriptor", ":= Width8bit | Width16bit | Width32bit | Width64bit | " "Width128bit | Width256bit"}, {"TranslationKeyword", "Translation Density Types - Resource Descriptors", ":= SparseTranslation | DenseTranslation"}, {"TypeKeyword", "Translation Types - Resource Descriptors", ":= TypeTranslation | TypeStatic"}, {"UpdateRuleKeyword", "Field Update Rules", ":= Preserve | WriteAsOnes | WriteAsZeros"}, {"UserDefRegionSpace", "User defined address spaces", ":= IntegerData => 0x80 - 0xFF"}, {"WireModeKeyword", "SPI Wire Mode - Resource Descriptors", ":= ThreeWireMode | FourWireMode"}, {"XferTypeKeyword", "DMA Transfer Types", ":= Transfer8 | Transfer16 | Transfer8_16"}, {NULL, NULL, NULL} }; /* Preprocessor directives */ const AH_DIRECTIVE_INFO Gbl_PreprocessorDirectives[] = { {"#include \"Filename\"", "Standard include of an ASCII ASL source code file"}, {"#include ", "Alternate syntax for #include, alternate search path"}, {"#includebuffer \"Filename\" ", "Include a binary file to create AML Buffer with ASL namepath"}, {"#includebuffer ", "Alternate syntax for #includebuffer, alternate search path"}, {"", ""}, {"#define , ", "Simple macro definition (full macros not supported at this time)"}, {"#define , ","Simple macro definition (full macros not supported at this time)"}, {"#undef ", "Delete a previous #define"}, {"", ""}, {"#if ", "Evaluate and test return value"}, {"#ifdef ", "Test existence of the "}, {"#ifndef ", "Test non-existence of the "}, {"#elif ", "Else-If contraction - evaluate #if , test return value"}, {"#else", "Execute alternate case for a previous #if, #ifdef or #ifndef block"}, {"#endif", "Close a previous #if, #ifdef or #ifndef block"}, {"", ""}, {"#line [Filename]", "Set the current ASL source code line number, optional filename"}, {"", ""}, {"#error \"String\"", "Emit error message and abort compilation"}, {"#warning \"String\"", "Emit an iASL warning at this location in the ASL source"}, {"", ""}, {"#pragma disable (Error number)", "Disable an iASL error or warning number"}, {"#pragma message \"String\"", "Emit an informational message to the output file(s)"}, {"", ""}, {"__FILE__", "Return the simple filename of the current ASL file"}, {"__PATH__", "Return the full pathname of the current ASL file"}, {"__LINE__", "Return the current line number within the current ASL file"}, {"__DATE__", "Return the current date"}, {"__METHOD__", "Return the declared name of the current control method"}, {"__IASL__", "Permanently defined for the iASL compiler"}, {NULL, NULL} }; acpica-unix-20250404/source/tools/acpihelp/ahamlops.c0000775000175000017500000010415314773714134021744 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahamlops - Table of all known AML opcodes * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpihelp.h" /* * AML opcodes with related syntax and grammar information. * This table was extracted from the ACPI specification. */ const AH_AML_OPCODE Gbl_AmlOpcodeInfo[] = { {0x00, 0x00, "0x00", "ZeroOp", "DataObject", NULL, NULL, NULL}, {0x01, 0x01, "0x01", "OneOp", "DataObject", NULL, NULL, NULL}, {0x02, 0x05, "0x02-0x05", NULL, NULL, NULL, NULL, NULL}, {0x06, 0x06, "0x06", "AliasOp", "TermObject", "NameString NameString", NULL, "DefAlias := AliasOp NameString NameString"}, {0x07, 0x07, "0x07", NULL, NULL, NULL, NULL, NULL}, {0x08, 0x08, "0x08", "NameOp", "TermObject", "NameString DataRefObject", NULL, "DefName := NameOp NameString DataRefObject"}, {0x09, 0x09, "0x09", NULL, NULL, NULL, NULL, NULL}, {0x0A, 0x0A, "0x0A", "BytePrefix", "DataObject", "ByteData", NULL, "ByteConst := BytePrefix ByteData"}, {0x0B, 0x0B, "0x0B", "WordPrefix", "DataObject", "WordData", NULL, "WordConst := WordPrefix WordData"}, {0x0C, 0x0C, "0x0C", "DWordPrefix", "DataObject", "DWordData", NULL, "DWordConst := DWordPrefix DWordData"}, {0x0D, 0x0D, "0x0D", "StringPrefix", "DataObject", "AsciiCharList NullChar", NULL, "String := StringPrefix AsciiCharList NullChar"}, {0x0E, 0x0E, "0x0E", "QWordPrefix", "DataObject", "QWordData", NULL, "QWordConst := QWordPrefix QWordData"}, {0x0F, 0x0F, "0x0F", NULL, NULL, NULL, NULL, NULL}, {0x10, 0x10, "0x10", "ScopeOp", "TermObject", "NameString", "TermList", "DefScope := ScopeOp PkgLength NameString TermList"}, {0x11, 0x11, "0x11", "BufferOp", "TermObject", "TermArg", "ByteList", "DefBuffer := BufferOp PkgLength BufferSize ByteList"}, {0x12, 0x12, "0x12", "PackageOp", "TermObject", "ByteData", "Package TermList", "DefPackage := PackageOp PkgLength NumElements PackageElementList"}, {0x13, 0x13, "0x13", "VarPackageOp", "TermObject", "TermArg", "Package TermList", "DefVarPackage := VarPackageOp PkgLength VarNumElements PackageElementList"}, {0x14, 0x14, "0x14", "MethodOp", "TermObject", "NameString ByteData", "TermList", "DefMethod := MethodOp PkgLength NameString MethodFlags TermList"}, {0x15, 0x15, "0x15", "ExternalOp", "NameObject", "NameString ByteData ByteData", NULL, "DefExternal := ExternalOp NameString ObjectType ArgumentCount"}, {0x16, 0x2D, "0x16-0x2D", NULL, NULL, NULL, NULL, NULL}, {0x2E, 0x2E, "0x2E", "DualNamePrefix", "NameObject", "NameSeg NameSeg", NULL, "DualNamePath := DualNamePrefix NameSeg NameSeg"}, {0x2F, 0x2F, "0x2F", "MultiNamePrefix", "NameObject", "ByteData NameSeg", NULL, "MultiNamePath := MultiNamePrefix SegCount NameSeg(SegCount)"}, {0x30, 0x39, "0x30-0x39", "DigitChar", "NameObject", NULL, NULL, NULL}, {0x3A, 0x40, "0x3A-0x40", NULL, NULL, NULL, NULL, NULL}, {0x41, 0x5A, "0x41-0x5A", "NameChar", "NameObject", NULL, NULL, NULL}, {0x5B, 0x5B, "0x5B", "ExtOpPrefix", "DataObject", "ByteData", NULL, NULL}, {0x5B00, 0x5B00, "0x5B00", NULL, NULL, NULL, NULL, NULL}, {0x5B01, 0x5B01, "0x5B01", "MutexOp", "TermObject", "NameString ByteData", NULL, "DefMutex := MutexOp NameString SyncFlags"}, {0x5B02, 0x5B02, "0x5B02", "EventOp", "TermObject", "NameString", NULL, "DefEvent := EventOp NameString"}, {0x5B12, 0x5B12, "0x5B12", "CondRefOfOp", "TermObject", "SuperName SuperName", NULL, "DefCondRefOf := CondRefOfOp SuperName Target"}, {0x5B13, 0x5B13, "0x5B13", "CreateFieldOp", "TermObject", "TermArg TermArg TermArg NameString", NULL, "DefCreateField := CreateFieldOp SourceBuff BitIndex NumBits NameString"}, {0x5B1F, 0x5B1F, "0x5B1F", "LoadTableOp", "TermObject", "TermArg TermArg TermArg TermArg TermArg TermArg", NULL, "DefLoadTable := LoadTableOp TermArg TermArg TermArg TermArg TermArg TermArg"}, {0x5B20, 0x5B20, "0x5B20", "LoadOp", "TermObject", "NameString SuperName", NULL, "DefLoad := LoadOp NameString DdbHandleObject"}, {0x5B21, 0x5B21, "0x5B21", "StallOp", "TermObject", "TermArg", NULL, "DefStall := StallOp UsecTime"}, {0x5B22, 0x5B22, "0x5B22", "SleepOp", "TermObject", "TermArg", NULL, "DefSleep := SleepOp MsecTime"}, {0x5B23, 0x5B23, "0x5B23", "AcquireOp", "TermObject", "SuperName WordData", NULL, "DefAcquire := AcquireOp MutexObject Timeout"}, {0x5B24, 0x5B24, "0x5B24", "SignalOp", "TermObject", "SuperName", NULL, "DefSignal := SignalOp EventObject"}, {0x5B25, 0x5B25, "0x5B25", "WaitOp", "TermObject", "SuperName TermArg", NULL, "DefWait := WaitOp EventObject Operand"}, {0x5B26, 0x5B26, "0x5B26", "ResetOp", "TermObject", "SuperName", NULL, "DefReset := ResetOp EventObject"}, {0x5B27, 0x5B27, "0x5B27", "ReleaseOp", "TermObject", "SuperName", NULL, "DefRelease := ReleaseOp MutexObject"}, {0x5B28, 0x5B28, "0x5B28", "FromBcdOp", "TermObject", "TermArg Target", NULL, "DefFromBcd := FromBcdOp BcdValue Target"}, {0x5B29, 0x5B29, "0x5B29", "ToBcd", "TermObject", "TermArg Target", NULL, "DefToBcd := ToBcdOp Operand Target"}, {0x5B2A, 0x5B2A, "0x5B2A", "UnloadOp", "TermObject", "SuperName", NULL, "DefUnload := UnloadOp DdbHandleObject"}, {0x5B30, 0x5B30, "0x5B30", "RevisionOp", "DataObject", NULL, NULL, NULL}, {0x5B31, 0x5B31, "0x5B31", "DebugOp", "DebugObject", NULL, NULL, NULL}, {0x5B32, 0x5B32, "0x5B32", "FatalOp", "TermObject", "ByteData DWordData TermArg", NULL, "DefFatal := FatalOp FatalType FatalCode FatalArg"}, {0x5B33, 0x5B33, "0x5B33", "TimerOp", "TermObject", NULL, NULL, "DefTimer := TimerOp"}, {0x5B80, 0x5B80, "0x5B80", "OperationRegionOp", "TermObject", "NameString ByteData TermArg TermArg", NULL, "DefOpRegion := OpRegionOp NameString RegionSpace RegionOffset RegionLen"}, {0x5B81, 0x5B81, "0x5B81", "FieldOp", "TermObject", "NameString ByteData", "FieldList", "DefField := FieldOp PkgLength NameString FieldFlags FieldList"}, {0x5B82, 0x5B82, "0x5B82", "DeviceOp", "TermObject", "NameString", "TermList", "DefDevice := DeviceOp PkgLength NameString TermList"}, {0x5B83, 0x5B83, "0x5B83", "ProcessorOp", "TermObject", "NameString ByteData DWordData ByteData", "TermList", "DefProcessor := ProcessorOp PkgLength NameString ProcId PblkAddr PblkLen TermList"}, {0x5B84, 0x5B84, "0x5B84", "PowerResOp", "TermObject", "NameString ByteData WordData", "TermList", "DefPowerRes := PowerResOp PkgLength NameString SystemLevel ResourceOrder TermList"}, {0x5B85, 0x5B85, "0x5B85", "ThermalZoneOp", "TermObject", "NameString", "TermList", "DefThermalZone := ThermalZoneOp PkgLength NameString TermList"}, {0x5B86, 0x5B86, "0x5B86", "IndexFieldOp", "TermObject", "NameString NameString ByteData", "FieldList", "DefIndexField := IndexFieldOp PkgLength NameString NameString FieldFlags FieldList"}, {0x5B87, 0x5B87, "0x5B87", "BankFieldOp", "TermObject", "NameString NameString TermArg ByteData", "FieldList", "DefBankField := BankFieldOp PkgLength NameString NameString BankValue FieldFlags FieldList"}, {0x5B88, 0x5B88, "0x5B88", "DataRegionOp", "TermObject", "NameString TermArg TermArg TermArg", NULL, "DefDataRegion := DataRegionOp NameString TermArg TermArg TermArg"}, {0x5B89, 0x5BFF, "0x5B89-0x5BFF", NULL, NULL, NULL, NULL, NULL}, {0x5C, 0x5C, "0x5C", "RootChar", "NameObject", NULL, NULL, NULL}, {0x5D, 0x5D, "0x5D", NULL, NULL, NULL, NULL, NULL}, {0x5E, 0x5E, "0x5E", "ParentPrefixChar", "NameObject", NULL, NULL, NULL}, {0x5F, 0x5F, "0x5F", "NameChar", "NameObject", NULL, NULL, NULL}, {0x60, 0x60, "0x60", "Local0Op", "LocalObject", NULL, NULL, NULL}, {0x61, 0x61, "0x61", "Local1Op", "LocalObject", NULL, NULL, NULL}, {0x62, 0x62, "0x62", "Local2Op", "LocalObject", NULL, NULL, NULL}, {0x63, 0x63, "0x63", "Local3Op", "LocalObject", NULL, NULL, NULL}, {0x64, 0x64, "0x64", "Local4Op", "LocalObject", NULL, NULL, NULL}, {0x65, 0x65, "0x65", "Local5Op", "LocalObject", NULL, NULL, NULL}, {0x66, 0x66, "0x66", "Local6Op", "LocalObject", NULL, NULL, NULL}, {0x67, 0x67, "0x67", "Local7Op", "LocalObject", NULL, NULL, NULL}, {0x68, 0x68, "0x68", "Arg0Op", "ArgObject", NULL, NULL, NULL}, {0x69, 0x69, "0x69", "Arg1Op", "ArgObject", NULL, NULL, NULL}, {0x6A, 0x6A, "0x6A", "Arg2Op", "ArgObject", NULL, NULL, NULL}, {0x6B, 0x6B, "0x6B", "Arg3Op", "ArgObject", NULL, NULL, NULL}, {0x6C, 0x6C, "0x6C", "Arg4Op", "ArgObject", NULL, NULL, NULL}, {0x6D, 0x6D, "0x6D", "Arg5Op", "ArgObject", NULL, NULL, NULL}, {0x6E, 0x6E, "0x6E", "Arg6Op", "ArgObject", NULL, NULL, NULL}, {0x6F, 0x6F, "0x6F", NULL, NULL, NULL, NULL, NULL}, {0x70, 0x70, "0x70", "StoreOp", "TermObject", "TermArg SuperName", NULL, "DefStore := StoreOp TermArg SuperName"}, {0x71, 0x71, "0x71", "RefOfOp", "TermObject", "SuperName ", NULL, "DefRefOf := RefOfOp SuperName"}, {0x72, 0x72, "0x72", "AddOp", "TermObject", "TermArg TermArg Target", NULL, "DefAdd := AddOp Operand Operand Target"}, {0x73, 0x73, "0x73", "ConcatOp", "TermObject", "TermArg TermArg Target", NULL, "DefConcat := ConcatOp Data Data Target"}, {0x74, 0x74, "0x74", "SubtractOp", "TermObject", "TermArg TermArg Target", NULL, "DefSubtract := SubtractOp Operand Operand Target"}, {0x75, 0x75, "0x75", "IncrementOp", "TermObject", "SuperName", NULL, "DefIncrement := IncrementOp SuperName"}, {0x76, 0x76, "0x76", "DecrementOp", "TermObject", "SuperName", NULL, "DefDecrement := DecrementOp SuperName"}, {0x77, 0x77, "0x77", "MultiplyOp", "TermObject", "TermArg TermArg Target", NULL, "DefMultiply := MultiplyOp Operand Operand Target"}, {0x78, 0x78, "0x78", "DivideOp", "TermObject", "TermArg TermArg Target Target", NULL, "DefDivide := DivideOp Dividend Divisor Remainder Quotient"}, {0x79, 0x79, "0x79", "ShiftLeftOp", "TermObject", "TermArg TermArg Target", NULL, "DefShiftLeft := ShiftLeftOp Operand ShiftCount Target"}, {0x7A, 0x7A, "0x7A", "ShiftRightOp", "TermObject", "TermArg TermArg Target", NULL, "DefShiftRight := ShiftRightOp Operand ShiftCount Target"}, {0x7B, 0x7B, "0x7B", "AndOp", "TermObject", "TermArg TermArg Target", NULL, "DefAnd := AndOp Operand Operand Target"}, {0x7C, 0x7C, "0x7C", "NandOp", "TermObject", "TermArg TermArg Target", NULL, "DefNand := NandOp Operand Operand Target"}, {0x7D, 0x7D, "0x7D", "OrOp", "TermObject", "TermArg TermArg Target", NULL, "DefOr := OrOp Operand Operand Target"}, {0x7E, 0x7E, "0x7E", "NorOp", "TermObject", "TermArg TermArg Target", NULL, "DefNor := NorOp Operand Operand Target"}, {0x7F, 0x7F, "0x7F", "XorOp", "TermObject", "TermArg TermArg Target", NULL, "DefXor := XorOp Operand Operand Target"}, {0x80, 0x80, "0x80", "NotOp", "TermObject", "TermArg Target", NULL, "DefNot := NotOp Operand Target"}, {0x81, 0x81, "0x81", "FindSetLeftBitOp", "TermObject", "TermArg Target", NULL, "DefFindSetLeftBit := FindSetLeftBitOp Operand Target"}, {0x82, 0x82, "0x82", "FindSetRightBitOp", "TermObject", "TermArg Target", NULL, "DefFindSetRightBit := FindSetRightBitOp Operand Target"}, {0x83, 0x83, "0x83", "DerefOfOp", "TermObject", "TermArg", NULL, "DefDerefOf := DerefOfOp ObjReference"}, {0x84, 0x84, "0x84", "ConcatResOp", "TermObject", "TermArg TermArg Target", NULL, "DefConcatRes := ConcatResOp BufData BufData Target"}, {0x85, 0x85, "0x85", "ModOp", "TermObject", "TermArg TermArg Target", NULL, "DefMod := ModOp Dividend Divisor Target"}, {0x86, 0x86, "0x86", "NotifyOp", "TermObject", "SuperName TermArg", NULL, "DefNotify := NotifyOp NotifyObject NotifyValue"}, {0x87, 0x87, "0x87", "SizeOfOp", "TermObject", "SuperName", NULL, "DefSizeOf := SizeOfOp SuperName"}, {0x88, 0x88, "0x88", "IndexOp", "TermObject", "TermArg TermArg Target", NULL, "DefIndex := IndexOp BuffPkgStrObj IndexValue Target"}, {0x89, 0x89, "0x89", "MatchOp", "TermObject", "TermArg ByteData TermArg ByteData TermArg TermArg", NULL, "DefMatch := MatchOp SearchPkg MatchOpcode Operand MatchOpcode Operand StartIndex"}, {0x8A, 0x8A, "0x8A", "CreateDWordFieldOp", "TermObject", "TermArg TermArg NameString", NULL, "DefCreateDWordField := CreateDWordFieldOp SourceBuff ByteIndex NameString"}, {0x8B, 0x8B, "0x8B", "CreateWordFieldOp", "TermObject", "TermArg TermArg NameString", NULL, "DefCreateWordField := CreateWordFieldOp SourceBuff ByteIndex NameString"}, {0x8C, 0x8C, "0x8C", "CreateByteFieldOp", "TermObject", "TermArg TermArg NameString", NULL, "DefCreateByteField := CreateByteFieldOp SourceBuff ByteIndex NameString"}, {0x8D, 0x8D, "0x8D", "CreateBitFieldOp", "TermObject", "TermArg TermArg NameString", NULL, "DefCreateBitField := CreateBitFieldOp SourceBuff BitIndex NameString"}, {0x8E, 0x8E, "0x8E", "ObjectTypeOp", "TermObject", "SuperName", NULL, "DefObjectType := ObjectTypeOp SuperName"}, {0x8F, 0x8F, "0x8F", "CreateQWordFieldOp", "TermObject", "TermArg TermArg NameString", NULL, "DefCreateQWordField := CreateQWordFieldOp SourceBuff ByteIndex NameString"}, {0x90, 0x90, "0x90", "LAndOp", "TermObject", "TermArg TermArg", NULL, "DefLAnd := LAndOp Operand Operand"}, {0x91, 0x91, "0x91", "LOrOp", "TermObject", "TermArg TermArg", NULL, "DefLOr := LOrOp Operand Operand"}, {0x92, 0x92, "0x92", "LNotOp", "TermObject", "TermArg", NULL, "DefLNot := LNotOp Operand"}, {0x9293, 0x9293, "0x9293", "LNotEqualOp", "TermObject", "TermArg TermArg", NULL, "DefLNotEqual := LNotEqualOp Operand Operand"}, {0x9294, 0x9294, "0x9294", "LLessEqualOp", "TermObject", "TermArg TermArg", NULL, "DefLLessEqual := LLessEqualOp Operand Operand"}, {0x9295, 0x9295, "0x9295", "LGreaterEqualOp", "TermObject", "TermArg TermArg", NULL, "DefLGreaterEqual := LGreaterEqualOp Operand Operand"}, {0x93, 0x93, "0x93", "LEqualOp", "TermObject", "TermArg TermArg", NULL, "DefLEqual := LEqualOp Operand Operand"}, {0x94, 0x94, "0x94", "LGreaterOp", "TermObject", "TermArg TermArg", NULL, "DefLGreater := LGreaterOp Operand Operand"}, {0x95, 0x95, "0x95", "LLessOp", "TermObject", "TermArg TermArg", NULL, "DefLLess := LLessOp Operand Operand"}, {0x96, 0x96, "0x96", "ToBufferOp", "TermObject", "TermArg Target", NULL, "DefToBuffer := ToBufferOp Operand Target"}, {0x97, 0x97, "0x97", "ToDecimalStringOp", "TermObject", "TermArg Target", NULL, "DefToDecimalString := ToDecimalStringOp Operand Target"}, {0x98, 0x98, "0x98", "ToHexStringOp", "TermObject", "TermArg Target", NULL, "DefToHexString := ToHexStringOp Operand Target"}, {0x99, 0x99, "0x99", "ToIntegerOp", "TermObject", "TermArg Target", NULL, "DefToInteger := ToIntegerOp Operand Target"}, {0x9A, 0x9B, "0x9A-0x9B", NULL, NULL, NULL, NULL, NULL}, {0x9C, 0x9C, "0x9C", "ToStringOp", "TermObject", "TermArg TermArg Target", NULL, "DefToString := ToStringOp TermArg LengthArg Target"}, {0x9D, 0x9D, "0x9D", "CopyObjectOp", "TermObject", "TermArg SimpleName", NULL, "DefCopyObject := CopyObjectOp TermArg SimpleName"}, {0x9E, 0x9E, "0x9E", "MidOp", "TermObject", "TermArg TermArg TermArg Target", NULL, "DefMid := MidOp MidObj TermArg TermArg Target"}, {0x9F, 0x9F, "0x9F", "ContinueOp", "TermObject", NULL, NULL, "DefContinue := ContinueOp"}, {0xA0, 0xA0, "0xA0", "IfOp", "TermObject", "TermArg", "TermList", "DefIfElse := IfOp PkgLength Predicate TermList DefElse"}, {0xA1, 0xA1, "0xA1", "ElseOp", "TermObject", NULL, "TermList", "DefElse := Nothing | "}, {0xA2, 0xA2, "0xA2", "WhileOp", "TermObject", "TermArg", "TermList", "DefWhile := WhileOp PkgLength Predicate TermList"}, {0xA3, 0xA3, "0xA3", "NoOpOp", "TermObject", NULL, NULL, "DefNoOp := NoOpOp"}, {0xA4, 0xA4, "0xA4", "ReturnOp", "TermObject", "TermArg", NULL, "DefReturn := ReturnOp ArgObject"}, {0xA5, 0xA5, "0xA5", "BreakOp", "TermObject", NULL, NULL, "DefBreak := BreakOp"}, {0xA6, 0xCB, "0xA6-0xCB", NULL, NULL, NULL, NULL, NULL}, {0xCC, 0xCC, "0xCC", "BreakPointOp", "TermObject", NULL, NULL, "DefBreakPoint := BreakPointOp"}, {0xCD, 0xFE, "0xCD-0xFE", NULL, NULL, NULL, NULL, NULL}, {0xFF, 0xFF, "0xFF", "OnesOp", "DataObject", NULL, NULL, NULL}, {0, 0, NULL, NULL, NULL, NULL, NULL, NULL} }; acpica-unix-20250404/source/tools/acpihelp/ahaml.c0000775000175000017500000002174614773714134021230 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahaml - AML opcode decoding for acpihelp utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #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 && Name) { printf ("%s, no matching AML opcodes\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"); } acpica-unix-20250404/source/tools/acpihelp/ahdecode.c0000775000175000017500000004256614773714134021705 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahdecode - Miscellaneous decoding for acpihelp utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define ACPI_CREATE_PREDEFINED_TABLE #define ACPI_CREATE_RESOURCE_TABLE #include "acpihelp.h" #include "acpredef.h" BOOLEAN AslGbl_VerboseErrors = TRUE; /* Local prototypes */ static BOOLEAN AhDisplayPredefinedName ( char *Name, UINT32 Length); static void AhDisplayPredefinedInfo ( char *Name); static void AhDoSpecialNames ( char *Name); static void AhDisplayResourceName ( const ACPI_PREDEFINED_INFO *ThisName); /******************************************************************************* * * 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. * ******************************************************************************/ 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: AhDisplayDirectives * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display all iASL preprocessor directives. * ******************************************************************************/ void AhDisplayDirectives ( void) { const AH_DIRECTIVE_INFO *Info; printf ("iASL Preprocessor Directives\n\n"); for (Info = Gbl_PreprocessorDirectives; Info->Name; Info++) { printf (" %-36s : %s\n", Info->Name, Info->Description); } } /******************************************************************************* * * FUNCTION: AhFindPredefinedNames (entry point for predefined name search) * * PARAMETERS: NamePrefix - Name or prefix to find. Must start with * an underscore. NULL means "find all" * * RETURN: None * * DESCRIPTION: Find and display all ACPI predefined names that match the * input name or prefix. Includes the required number of arguments * and the expected return type, if any. * ******************************************************************************/ void AhFindPredefinedNames ( char *NamePrefix) { UINT32 Length; BOOLEAN Found; char Name[ACPI_NAMESEG_SIZE + 1]; if (!NamePrefix || (*NamePrefix == '*')) { (void) AhDisplayPredefinedName (NULL, 0); return; } Length = strlen (NamePrefix); if (Length > ACPI_NAMESEG_SIZE) { printf ("%.8s: Predefined name must be 4 characters maximum\n", NamePrefix); return; } /* Construct a local name or name prefix */ AcpiUtStrupr (NamePrefix); if (*NamePrefix == '_') { NamePrefix++; } Name[0] = '_'; AcpiUtSafeStrncpy (&Name[1], NamePrefix, 4); /* Check for special names such as _Exx, _ACx, etc. */ AhDoSpecialNames (Name); /* Lookup and display the name(s) */ Found = AhDisplayPredefinedName (Name, Length); if (!Found) { printf ("%s, no matching predefined names\n", Name); } } /******************************************************************************* * * FUNCTION: AhDoSpecialNames * * PARAMETERS: Name - Name or prefix to find * * RETURN: None * * DESCRIPTION: Detect and handle the "special" names such as _Exx, _ACx, etc. * * Current support: * _EJx * _Exx * _Lxx * _Qxx * _Wxx * _ACx * _ALx * _T_x * ******************************************************************************/ static void AhDoSpecialNames ( char *Name) { /* * Check for the special names that have one or more numeric * suffixes. For example, _Lxx can have 256 different flavors, * from _L00 to _LFF. */ switch (Name[1]) { case 'E': if (Name[2] == 'J') { if (isdigit ((int) Name[3]) || (Name[3] == 'X')) { /* _EJx */ Name[3] = 'x'; break; } } ACPI_FALLTHROUGH; case 'L': case 'Q': case 'W': if ((isxdigit ((int) Name[2]) && isxdigit ((int) Name[3])) || ((Name[2] == 'X') && (Name[3] == 'X'))) { /* _Exx, _Lxx, _Qxx, or _Wxx */ Name[2] = 'x'; Name[3] = 'x'; } break; case 'A': if ((Name[2] == 'C') || (Name[2] == 'L')) { if (isdigit ((int) Name[3]) || (Name[3] == 'X')) { /* _ACx or _ALx */ Name[3] = 'x'; } } break; case 'T': if (Name[2] == '_') { /* _T_x (Reserved for iASL compiler */ Name[3] = 'x'; } break; default: break; } } /******************************************************************************* * * FUNCTION: AhDisplayPredefinedName * * PARAMETERS: Name - Name or name prefix * * RETURN: TRUE if any names matched, FALSE otherwise * * DESCRIPTION: Display information about ACPI predefined names that match * the input name or name prefix. * ******************************************************************************/ static BOOLEAN AhDisplayPredefinedName ( char *Name, UINT32 Length) { const AH_PREDEFINED_NAME *Info; BOOLEAN Found = FALSE; BOOLEAN Matched; UINT32 i = 0; /* Find/display all names that match the input name prefix */ for (Info = AslPredefinedInfo; Info->Name; Info++) { if (!Name) { Found = TRUE; printf ("%s: <%s>\n", Info->Name, Info->Description); printf ("%*s%s\n", 6, " ", Info->Action); AhDisplayPredefinedInfo (Info->Name); i++; continue; } Matched = TRUE; for (i = 0; i < Length; i++) { if (Info->Name[i] != Name[i]) { Matched = FALSE; break; } } if (Matched) { Found = TRUE; printf ("%s: <%s>\n", Info->Name, Info->Description); printf ("%*s%s\n", 6, " ", Info->Action); AhDisplayPredefinedInfo (Info->Name); } } if (!Name) { printf ("\nFound %d Predefined ACPI Names\n", i); } return (Found); } /******************************************************************************* * * FUNCTION: AhDisplayPredefinedInfo * * PARAMETERS: Name - Exact 4-character ACPI name. * * RETURN: None * * DESCRIPTION: Find the name in the main ACPICA predefined info table and * display the # of arguments and the return value type. * * Note: Resource Descriptor field names do not appear in this * table -- thus, nothing will be displayed for them. * ******************************************************************************/ static void AhDisplayPredefinedInfo ( char *Name) { const ACPI_PREDEFINED_INFO *ThisName; /* NOTE: we check both tables always because there are some dupes */ /* Check against the predefined methods first */ ThisName = AcpiUtMatchPredefinedMethod (Name); if (ThisName) { AcpiUtDisplayPredefinedMethod (Gbl_Buffer, ThisName, TRUE); } /* Check against the predefined resource descriptor names */ ThisName = AcpiUtMatchResourceName (Name); if (ThisName) { AhDisplayResourceName (ThisName); } } /******************************************************************************* * * FUNCTION: AhDisplayResourceName * * PARAMETERS: ThisName - Entry in the predefined method/name table * * RETURN: None * * DESCRIPTION: Display information about a resource descriptor name. * ******************************************************************************/ static void AhDisplayResourceName ( const ACPI_PREDEFINED_INFO *ThisName) { UINT32 NumTypes; NumTypes = AcpiUtGetResourceBitWidth (Gbl_Buffer, ThisName->Info.ArgumentList); printf (" %4.4s resource descriptor field is %s bits wide%s\n", ThisName->Info.Name, Gbl_Buffer, (NumTypes > 1) ? " (depending on descriptor type)" : ""); } /******************************************************************************* * * FUNCTION: AhDisplayDeviceIds * * PARAMETERS: Name - Device Hardware ID string. * NULL means "find all" * * RETURN: None * * DESCRIPTION: Display PNP* and ACPI* device IDs. * ******************************************************************************/ void AhDisplayDeviceIds ( char *Name) { const AH_DEVICE_ID *Info; UINT32 Length; BOOLEAN Matched; UINT32 i; BOOLEAN Found = FALSE; /* Null input name indicates "display all" */ if (!Name || (Name[0] == '*')) { printf ("ACPI and PNP Device/Hardware IDs:\n\n"); for (Info = AslDeviceIds; Info->Name; Info++) { printf ("%8s %s\n", Info->Name, Info->Description); } return; } Length = strlen (Name); if (Length > 8) { printf ("%.8s: Hardware ID must be 8 characters maximum\n", Name); return; } /* Find/display all names that match the input name prefix */ AcpiUtStrupr (Name); for (Info = AslDeviceIds; Info->Name; Info++) { Matched = TRUE; for (i = 0; i < Length; i++) { if (Info->Name[i] != Name[i]) { Matched = FALSE; break; } } if (Matched) { Found = TRUE; printf ("%8s %s\n", Info->Name, Info->Description); } } if (!Found) { printf ("%s, Hardware ID not found\n", Name); } } /******************************************************************************* * * FUNCTION: AhDisplayUuids * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display all known UUIDs. * ******************************************************************************/ void AhDisplayUuids ( void) { const AH_UUID *Info; printf ("ACPI-related UUIDs/GUIDs:\n"); /* Display entire table of known ACPI-related UUIDs/GUIDs */ for (Info = Gbl_AcpiUuids; Info->Description; Info++) { if (!Info->String) /* Null UUID string means group description */ { printf ("\n%36s\n", Info->Description); } else { printf ("%32s : %s\n", Info->Description, Info->String); } } /* Help info on how UUIDs/GUIDs strings are encoded */ printf ("\n\nByte encoding of UUID/GUID strings" " into ACPI Buffer objects (use ToUUID from ASL):\n\n"); printf ("%32s : %s\n", "Input UUID/GUID String format", "aabbccdd-eeff-gghh-iijj-kkllmmnnoopp"); printf ("%32s : %s\n", "Expected output ACPI buffer", "dd,cc,bb,aa, ff,ee, hh,gg, ii,jj, kk,ll,mm,nn,oo,pp"); } /******************************************************************************* * * FUNCTION: AhDisplayTables * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display all known ACPI tables * ******************************************************************************/ void AhDisplayTables ( void) { const AH_TABLE *Info; UINT32 i = 0; printf ("Known/Supported ACPI tables:\n"); for (Info = AcpiGbl_SupportedTables; Info->Signature; Info++) { printf ("%8u) %s : %s\n", i + 1, Info->Signature, Info->Description); i++; } printf ("\nTotal %u ACPI tables\n\n", i); } /******************************************************************************* * * FUNCTION: AhDecodeException * * PARAMETERS: HexString - ACPI status string from command line, in * hex. If null, display all exceptions. * * RETURN: None * * DESCRIPTION: Decode and display an ACPI_STATUS exception code. * ******************************************************************************/ void AhDecodeException ( char *HexString) { const ACPI_EXCEPTION_INFO *ExceptionInfo; UINT32 Status; UINT32 i; /* * A null input string means to decode and display all known * exception codes. */ if (!HexString) { printf ("All defined ACPICA exception codes:\n\n"); AH_DISPLAY_EXCEPTION (0, "AE_OK (No error occurred)"); /* Display codes in each block of exception types */ for (i = 1; (i & AE_CODE_MASK) <= AE_CODE_MAX; i += 0x1000) { Status = i; do { ExceptionInfo = AcpiUtValidateException ((ACPI_STATUS) Status); if (ExceptionInfo) { AH_DISPLAY_EXCEPTION_TEXT (Status, ExceptionInfo); } Status++; } while (ExceptionInfo); } return; } /* Decode a single user-supplied exception code */ Status = strtoul (HexString, NULL, 16); if (!Status) { printf ("%s: Invalid hexadecimal exception code value\n", HexString); return; } if (Status > ACPI_UINT16_MAX) { AH_DISPLAY_EXCEPTION (Status, "Invalid exception code (more than 16 bits)"); return; } ExceptionInfo = AcpiUtValidateException ((ACPI_STATUS) Status); if (!ExceptionInfo) { AH_DISPLAY_EXCEPTION (Status, "Unknown exception code"); return; } AH_DISPLAY_EXCEPTION_TEXT (Status, ExceptionInfo); } acpica-unix-20250404/source/tools/acpihelp/acpihelp.h0000775000175000017500000001404614773714134021733 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acpihelp.h - Include file for AcpiHelp utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACPIHELP_H #define __ACPIHELP_H #include "acpi.h" #include "accommon.h" #include "acapps.h" #include #ifdef WIN32 #include #include #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]); extern const AH_PREDEFINED_NAME AslPredefinedInfo[]; extern const AH_DEVICE_ID AslDeviceIds[]; #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, AH_DECODE_ASL, AH_DECODE_ASL_KEYWORD, AH_DECODE_PREDEFINED_NAME, AH_DECODE_AML, AH_DECODE_AML_OPCODE, AH_DECODE_AML_TYPE, AH_DECODE_ASL_AML, AH_DECODE_EXCEPTION, AH_DISPLAY_DEVICE_IDS, AH_DISPLAY_UUIDS, AH_DISPLAY_TABLES, AH_DISPLAY_DIRECTIVES, AH_DECODE_ASL_EXCEPTION } AH_OPTION_TYPES; typedef struct ah_aml_opcode { UINT16 OpcodeRangeStart; UINT16 OpcodeRangeEnd; char *OpcodeString; char *OpcodeName; char *Type; char *FixedArguments; char *VariableArguments; char *Grammar; } AH_AML_OPCODE; typedef struct ah_aml_type { char *Name; char *Description; } AH_AML_TYPE; typedef struct ah_asl_operator { char *Name; char *Syntax; char *Description; } AH_ASL_OPERATOR; typedef struct ah_asl_keyword { char *Name; char *Description; char *KeywordList; } AH_ASL_KEYWORD; typedef struct ah_directive_info { char *Name; char *Description; } AH_DIRECTIVE_INFO; /* 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 AcpiGbl_SupportedTables[]; void AhFindAmlOpcode ( char *Name); void AhDecodeAmlOpcode ( char *Name); void AhDecodeException ( char *Name); void AhDecodeAslException ( char *Name); void AhFindPredefinedNames ( char *Name); void AhFindAslAndAmlOperators ( char *Name); UINT32 AhFindAslOperators ( char *Name); void AhFindAslKeywords ( char *Name); void AhFindAmlTypes ( char *Name); void AhDisplayDeviceIds ( char *Name); void AhDisplayTables ( void); const AH_TABLE * AcpiAhGetTableInfo ( char *Signature); void AhDisplayUuids ( void); void AhDisplayDirectives ( void); void AhPrintOneField ( UINT32 Indent, UINT32 CurrentPosition, UINT32 MaxPosition, const char *Field); #endif /* __ACPIHELP_H */ acpica-unix-20250404/source/tools/acpihelp/ahaslops.c0000775000175000017500000007053214773714134021755 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahaslops - Table of all known ASL operators * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpihelp.h" /* * ASL operators with syntax (directly from ACPI specification). * Note: All tokens require a space separator. * Long lines are automatically split during output. */ const AH_ASL_OPERATOR Gbl_AslOperatorInfo[] = { {"AccessAs", "(AccessType, AccessAttribKeyword | " "ExtendedAttribKeyword (AccessLength))", "ChangeFieldUnitAccess"}, {"Acquire", "(SyncObject, TimeoutValue) => Boolean", "Acquire a mutex"}, {"Add", "(Addend1, Addend2, Result) => Integer", "Integer Add"}, {"Alias", "(SourceObject, AliasObject)", "Define a name alias"}, {"And", "(Source1, Source2, Result) => Integer", "Integer Bitwise And"}, {"Arg", "Arg0 - Arg6", "Method argument data objects"}, {"BankField", "(RegionName, BankName, BankValue, " "AccessTypeKeyword, LockRuleKeyword, " "UpdateRuleKeyword) {FieldUnitList}", "Declare fields in a banked configuration object"}, {"Break", "No parameters", "Continue following the innermost enclosing While"}, {"BreakPoint", "No parameters", "Used for debugging, stops execution in the debugger"}, {"Buffer", "(BufferSize) {String or ByteList} => Buffer", "Declare Buffer object"}, {"Case", "(Value) {TermList}", "Expression for conditional execution"}, {"Concatenate", "(Source1, Source2, Result) => ComputationalData", "Concatenate two strings, integers or buffers"}, {"ConcatenateResTemplate", "(Source1, Source2, Result) => Buffer", "Concatenate two resource templates"}, {"CondRefOf", "(Source, Result) => Boolean", "Conditional reference to an object"}, {"Connection", "(ResourceMacro)", "Associate connection with FieldUnits within a Field object"}, {"Continue", "No parameters", "Continue innermost enclosing While loop"}, {"CopyObject", "(Source, Destination) => DataRefObject", "Copy and existing object"}, {"CreateBitField", "(SourceBuffer, BitIndex, BitFieldName)", "Declare a bit field object of a buffer object"}, {"CreateByteField", "(SourceBuffer, ByteIndex, ByteFieldName)", "Declare a byte field object of a buffer object"}, {"CreateDWordField", "(SourceBuffer, ByteIndex, DWordFieldName)", "Declare a DWord field object of a buffer object"}, {"CreateField", "(SourceBuffer, BitIndex, NumBits, FieldName)", "Declare an arbitrary length bit field of a buffer object"}, {"CreateQWordField", "(SourceBuffer, ByteIndex, QWordFieldName)", "Declare a QWord field object of a buffer object"}, {"CreateWordField", "(SourceBuffer, ByteIndex, WordFieldName)", "Declare a Word field object of a buffer object"}, {"DataTableRegion", "(RegionName, SignatureString, OemIDString, OemTableIDString)", "Declare a Data Table Region"}, {"Debug", "No parameters", "Debugger output"}, {"Decrement", "(Minuend) => Integer", "Decrement an Integer"}, {"Default", "{TermList}", "Default execution path in Switch()"}, {"DefinitionBlock", "(AmlFileName, TableSignature, ComplianceRevision, " "OemId, TableId, OemRevision) {TermList}", "Declare a Definition Block"}, {"DerefOf", "(Source) => Object", "Dereference an object reference"}, {"Device", "(DeviceName) {TermList}", "Declare a bus/device object"}, {"Divide", "(Dividend, Divisor, Remainder, Result) => Integer", "Integer Divide"}, {"Dma", "(DmaTypeKeyword, BusMasterKeyword, XferTypeKeyword, " "DescriptorName) {DmaChannelList} => Buffer", "DMA Resource Descriptor macro"}, {"DWordIo", "(ResourceTypeKeyword, MinKeyword, MaxKeyword, " "DecodeKeyword, RangeTypeKeyword, AddressGranularity, " "AddressMinimum, AddressMaximum, AddressTranslation, " "RangeLength, ResourceSourceIndex, " "ResourceSource, DescriptorName, TypeKeyword, TranslationKeyword)", "DWord I/O Resource Descriptor macro"}, {"DWordMemory", "(ResourceTypeKeyword, DecodeKeyword, MinKeyword, " "MaxKeyword, MemTypeKeyword, ReadWriteKeyword, " "AddressGranularity, AddressMinimum, AddressMaximum, AddressTranslation, " "RangeLength, ResourceSourceIndex, ResourceSource, DescriptorName, AddressKeyword, " "TypeKeyword)", "DWord Memory Resource Descriptor macro"}, {"DWordSpace", "(ResourceType, ResourceTypeKeyword, DecodeKeyword, " "MinKeyword, MaxKeyword, TypeSpecificFlags, " "AddressGranularity, AddressMinimum, AddressMaximum, " "AddressTranslation, RangeLength, " "ResourceSourceIndex, ResourceSource, DescriptorName)", "DWord Space Resource Descriptor macro"}, {"EisaId", "(EisaIdString) => DWordConst", "EISA ID String to Integer conversion macro"}, {"Else", "{TermList}", "Alternate conditional execution"}, {"ElseIf", "(Predicate)", "Conditional execution"}, {"EndDependentFn", "() => Buffer", "End Dependent Function Resource Descriptor macro"}, {"Event", "(EventName)", "Declare an event synchronization object"}, {"ExtendedIo", "(ResourceTypeKeyword, MinKeyword, MaxKeyword, " "DecodeKeyword, RangeTypeKeyword, AddressGranularity, " "AddressMinimum, AddressMaximum, AddressTranslation, RangeLength, " "TypeSpecificAttributes, DescriptorName, TypeKeyword, TranslationKeyword)", "Extended I/O Resource Descriptor macro"}, {"ExtendedMemory", "(ResourceTypeKeyword, DecodeKeyword, MinKeyword, " "MaxKeyword, MemTypeKeyword, ReadWriteKeyword, " "AddressGranularity, AddressMinimum, AddressMaximum, AddressTranslation, " "RangeLength, TypeSpecificAttributes, DescriptorName, " "AddressKeyword, TypeKeyword)", "Extended Memory Resource Descriptor macro"}, {"ExtendedSpace", "(ResourceType, ResourceTypeKeyword, DecodeKeyword, " "MinKeyword, MaxKeyword, TypeSpecificFlags, " "AddressGranularity, AddressMinimum, AddressMaximum, AddressTranslation, " "RangeLength, TypeSpecificAttributes, DescriptorName)", "Extended Space Resource Descriptor macro"}, {"External", "(ObjectName, ObjectTypeKeyword, ReturnType, ParameterTypes)", "Declare external objects"}, {"Fatal", "(Type, Code, Arg)", "Fatal error check"}, {"Field", "(RegionName, AccessTypeKeyword, LockRuleKeyword, " "UpdateRuleKeyword) {FieldUnitList}", "Declare fields of an operation region object"}, {"FindSetLeftBit", "(Source, Result) => Integer", "Index of first least significant bit set"}, {"FindSetRightBit", "(Source, Result) => Integer", "Index of first most significant bit set"}, {"FixedDma", "(DmaRequestLine, Channel, TransferWidthKeyword, DescriptorName) => Buffer", "Fixed DMA Resource Descriptor macro"}, {"FixedIo", "(AddressBase, RangeLength, DescriptorName) => Buffer", "Fixed I/O Resource Descriptor macro"}, {"FromBcd", "(BcdValue, Result) => Integer", "Convert from BCD to numeric"}, {"Function", "(FunctionName, ReturnType, ParameterTypes) {TermList}", "Declare control method"}, {"GpioInt", "(InterruptTypeKeyword, InterruptLevelKeyword, " "ShareTypeKeyword, PinConfigKeyword, " "DebounceTimeout, ResourceSource, " "ResourceSourceIndex, ResourceTypeKeyword, DescriptorName, " "RawDataBuffer() {VendorData}) {Pin}", "GPIO Interrupt Connection Resource Descriptor Macro"}, {"GpioIo", "(ShareTypeKeyword, PinConfigKeyword, DebounceTimeout, DriveStrength, " "IoRestrictionKeyword, ResourceSource, " "ResourceSourceIndex, ResourceTypeKeyword, DescriptorName, " "RawDataBuffer() {VendorData}) {PinList}", "GPIO I/O Connection Resource Descriptor Macro"}, {"I2cSerialBusV2", "(SlaveAddress, SlaveModeKeyword, ConnectionSpeed, " "AddressingModeKeyword, ResourceSource, " "ResourceSourceIndex, ResourceTypeKeyword, DescriptorName, Shared, " "RawDataBuffer() {VendorData})", "I2C Serial Bus Connection Resource Descriptor Macro"}, {"If", "(Predicate) {TermList}", "Conditional execution"}, {"Include", "(FilePathName)", "Include another ASL file"}, {"Increment", "(Addend) => Integer", "Increment a Integer"}, {"Index", "(Source, Index, Destination) => ObjectReference", "Indexed Reference to member object"}, {"IndexField", "(IndexName, DataName, AccessTypeKeyword, LockRuleKeyword, " "UpdateRuleKeyword) {FieldUnitList}", "Declare Index/Data Fields"}, {"Interrupt", "(ResourceTypeKeyword, InterruptTypeKeyword, InterruptLevelKeyword, " "ShareTypeKeyword, ResourceSourceIndex, " "ResourceSource, DescriptorName) {InterruptList} => Buffer", "Interrupt Resource Descriptor macro"}, {"Io", "(IoDecodeKeyword, AddressMin, AddressMax, AddressAlignment, " "RangeLength, DescriptorName) => Buffer", "I/O Resource Descriptor macro"}, {"Irq", "(InterruptTypeKeyword, InterruptLevelKeyword, ShareTypeKeyword, " "DescriptorName) {InterruptList} => Buffer", "Interrupt Resource Descriptor macro"}, {"IrqNoFlags", "(DescriptorName) {InterruptList} => Buffer", "Short Interrupt Resource Descriptor macro"}, {"LAnd", "(Source1, Source2) => Boolean", "Logical And"}, {"LEqual", "(Source1, Source2) => Boolean", "Logical Equal"}, {"LGreater", "(Source1, Source2) => Boolean", "Logical Greater"}, {"LGreaterEqual", "(Source1, Source2) => Boolean", "Logical Not less"}, {"LLess", "(Source1, Source2) => Boolean", "Logical Less"}, {"LLessEqual", "(Source1, Source2) => Boolean", "Logical Not greater"}, {"LNot", "(Source) => Boolean", "Logical Not"}, {"LNotEqual", "(Source1, Source2) => Boolean", "Logical Not equal"}, {"Load", "(Object, DDBHandle)", "Load differentiating definition block"}, {"LoadTable", "(SignatureString, OemIdString, OemTableIdString, RootPathString, " "ParameterPathString, ParameterData) => DDBHandle", "Load Table from RSDT/XSDT"}, {"Local", "Local0 - Local7", "Method local data objects"}, {"LOr", "(Source1, Source2) => Boolean", "Logical Or"}, {"Match", "(SearchPackage, MatchOpKeyword, MatchObject1, MatchOpKeyword, " "MatchObject2, StartIndex) => Ones | Integer", "Search for match in package array"}, {"Memory24", "(ReadWriteKeyword, AddressMinimum, AddressMaximum, AddressAlignment, " "RangeLength, DescriptorName)", "Memory Resource Descriptor macro"}, {"Memory32", "(ReadWriteKeyword, AddressMinimum, AddressMaximum, AddressAlignment, " "RangeLength, DescriptorName)", "Memory Resource Descriptor macro"}, {"Memory32Fixed", "(ReadWriteKeyword, AddressBase, RangeLength, DescriptorName)", "Memory Resource Descriptor macro"}, {"Method", "(MethodName, NumArgs, SerializeRuleKeyword, " "SyncLevel, ReturnType, ParameterTypes) " "{TermList}", "Declare a control method"}, {"Mid", "(Source, Index, Length, Result) => Buffer or String", "Return a portion of buffer or string"}, {"Mod", "(Dividend, Divisor, Result) => Integer", "Integer Modulo"}, {"Multiply", "(Multiplicand, Multiplier, Result) => Integer", "Integer Multiply"}, {"Mutex", "(MutexName, SyncLevel)", "Declare a mutex synchronization object"}, {"Name", "(ObjectName, Object)", "Declare a Named object"}, {"NAnd", "(Source1, Source2, Result) => Integer", "Integer Bitwise Nand"}, {"NoOp", "No parameters", "No operation"}, {"NOr", "(Source1, Source2, Result) => Integer", "Integer Bitwise Nor"}, {"Not", "(Source, Result) => Integer", "Integer Bitwise Not"}, {"Notify", "(Object, NotificationValue)", "Notify Object of event"}, {"ObjectType", "(Object) => Integer", "Type of object"}, {"Offset", "(ByteOffset)", "Change Current Field Unit Offset"}, {"One", "=> Integer", "Constant One Object (1)"}, {"Ones", "=> Integer", "Constant Ones Object (0xFFFFFFFF or 0xFFFFFFFFFFFFFFFF)"}, {"OperationRegion", "(RegionName, RegionSpaceKeyword, Offset, Length)", "Declare an operational region"}, {"Or", "(Source1, Source2, Result) => Integer", "Integer Bitwise Or"}, {"Package", "(NumElements) {PackageList} => Package", "Declare a package object"}, {"PowerResource", "(ResourceName, SystemLevel, ResourceOrder) {TermList}", "Declare a power resource object"}, {"Processor", "(ProcessorName, ProcessorID, PBlockAddress, PblockLength) {TermList}", "Declare a processor package"}, {"QWordIo", "(ResourceTypeKeyword, MinKeyword, MaxKeyword, DecodeKeyword, " "RangeTypeKeyword, AddressGranularity, " "AddressMinimum, AddressMaximum, AddressTranslation, RangeLength, " "ResourceSourceIndex, ResourceSource, DescriptorName, TypeKeyword, " "TranslationKeyword)", "QWord I/O Resource Descriptor macro"}, {"QWordMemory", "(ResourceTypeKeyword, DecodeKeyword, MinKeyword, MaxKeyword, " "MemTypeKeyword, ReadWriteKeyword, " "AddressGranularity, AddressMinimum, AddressMaximum, AddressTranslation, " "RangeLength, ResourceSourceIndex, ResourceSource, " "DescriptorName, AddressKeyword, " "TypeKeyword)", "QWord Memory Resource Descriptor macro"}, {"QWordSpace", "(ResourceType, ResourceTypeKeyword, DecodeKeyword, " "MinKeyword, MaxKeyword, TypeSpecificFlags, " "AddressGranularity, AddressMinimum, AddressMaximum, AddressTranslation, " "RangeLength, ResourceSourceIndex, ResourceSource, DescriptorName)", "Qword Space Resource Descriptor macro"}, {"RawDataBuffer", "(BufferSize) {ByteList} => RawDataBuffer", "Create a raw data buffer (does not use Buffer AML opcode)"}, {"RefOf", "(Object) => ObjectReference", "Create Reference to an object"}, {"Register", "(AddressSpaceKeyword, RegisterBitWidth, " "RegisterBitOffset, RegisterAddress, " "AccessSize, DescriptorName)", "Generic register Resource Descriptor macro"}, {"Release", "(SyncObject)", "Release a synchronization object"}, {"Reset", "(SyncObject)", "Reset a synchronization object"}, {"ResourceTemplate", "() {ResourceMacroList} => Buffer", "Resource to buffer conversion macro"}, {"Return", "None | () | (ReturnArg)", "Return from method execution"}, {"Revision", "=> Integer", "Constant revision object"}, {"Scope", "(Location) {TermList}", "Open named scope "}, {"ShiftLeft", "(Source, ShiftCount, Result) => Integer", "Integer shift value left"}, {"ShiftRight", "(Source, ShiftCount, Result) => Integer", "Integer shift value right"}, {"Signal", "(SyncObject)", "Signal a synchronization object"}, {"SizeOf", "(ObjectName) => Integer", "Get the size of a buffer}, string}, or package"}, {"Sleep", "(Milliseconds)", "Sleep n milliseconds (yields the processor)"}, {"SpiSerialBusV2", "(DeviceSelection, PolarityKeyword, WireModeKeyword, " "DataBitLength, SlaveModeKeyword, " "ConnectionSpeed, ClockPolarityKeyword, ClockPhaseKeyword, " "ResourceSource, ResourceSourceIndex, " "ResourceTypeKeyword, DescriptorName, Shared, RawDataBuffer() {VendorData})", "SPI Serial Bus Connection Resource Descriptor Macro"}, {"Stall", "(Microseconds)", "Delay n microseconds (does not yield the processor)"}, {"StartDependentFn", "(CompatibilityPriority, PerformancePriority) {ResourceList}", "Start Dependent Function Resource Descriptor macro"}, {"StartDependentFnNoPri", "() {ResourceList}", "Start Dependent Function Resource Descriptor macro"}, {"Store", "(Source, Destination) => DataRefObject", "Store object"}, {"Subtract", "(Minuend, Subtrahend, Result) => Integer", "Integer Subtract"}, {"Switch", "(Expression) {CaseTermList}", "Select code to execute based on expression value"}, {"ThermalZone", "(ThermalZoneName) {TermList}", "Declare a thermal zone package"}, {"Timer", "=> Integer", "Get 64-bit timer value"}, {"ToBcd", "(Value, Result) => Integer", "Convert Integer to BCD"}, {"ToBuffer", "(Data, Result) => Buffer", "Convert data type to buffer"}, {"ToDecimalString", "(Data, Result) => String", "Convert data type to decimal string"}, {"ToHexString", "(Data, Result) => String", "Convert data type to hexadecimal string"}, {"ToInteger", "(Data, Result) => Integer", "Convert data type to integer"}, {"ToString", "(Source, Length, Result) => String", "Copy ASCII string from buffer"}, {"ToUuid", "(AsciiString) => Buffer", "Convert Ascii string to UUID"}, {"UartSerialBusV2", "(ConnectionSpeed, ByteLengthKeyword, StopBitsKeyword, " "LinesInUse, EndianKeyword, ParityKeyword, " "FlowControlKeyword, ReceiveBufferSize, TransmitBufferSize, ResourceSource, " "ResourceSourceIndex, ResourceTypeKeyword, DescriptorName, Shared, " "RawDataBuffer() {VendorData})", "UART Serial Bus Connection Resource Descriptor Macro"}, {"Unicode", "(String) => Buffer", "String to Unicode conversion macro"}, {"Unload", "(Handle)", "Unload definition block"}, {"VendorLong", "(DescriptorName) {VendorByteList}", "Vendor Resource Descriptor"}, {"VendorShort", "(DescriptorName) {VendorByteList}", "Vendor Resource Descriptor"}, {"Wait", "(SyncObject, TimeoutValue) => Boolean", "Wait on an Event"}, {"While", "(Predicate) {TermList}", "Conditional loop"}, {"WordBusNumber", "(ResourceTypeKeyword, MinKeyword, MaxKeyword, DecodeKeyword, " "AddressGranularity, AddressMinimum, " "AddressMaximum, AddressTranslation, RangeLength, ResourceSourceIndex, " "ResourceSource, DescriptorName)", "Word Bus number Resource Descriptor macro"}, {"WordIo", "(ResourceTypeKeyword, MinKeyword, MaxKeyword, DecodeKeyword, " "RangeTypeKeyword, AddressGranularity, " "AddressMinimum, AddressMaximum, AddressTranslation, RangeLength, " "ResourceSourceIndex, ResourceSource, DescriptorName, TypeKeyword, " "TranslationKeyword)", "Word I/O Resource Descriptor macro"}, {"WordSpace", "(ResourceType, ResourceTypeKeyword, DecodeKeyword, MinKeyword, " "MaxKeyword, TypeSpecificFlags, " "AddressGranularity, AddressMinimum, AddressMaximum, AddressTranslation, " "RangeLength, ResourceSourceIndex, ResourceSource, DescriptorName)", "Word Space Resource Descriptor macro"}, {"Xor", "(Source1, Source2, Result) => Integer", "Integer Bitwise Xor"}, {"Zero", "=> Integer", "Constant Zero object (0)"}, {NULL, NULL, NULL} }; acpica-unix-20250404/source/tools/acpihelp/ahmain.c0000775000175000017500000002043214773714134021372 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ahmain - Main module for the acpi help utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define DEFINE_AHELP_GLOBALS #include "acpihelp.h" /* Local prototypes */ static void AhDisplayUsage ( void); #define AH_UTILITY_NAME "ACPI Help Utility" #define AH_SUPPORTED_OPTIONS "adeghikmopstuv^x" #if defined ACPI_OPTION #undef ACPI_OPTION #endif #define ACPI_OPTION(Name, Description) \ AcpiOsPrintf (" %-24s%s\n", Name, Description); /****************************************************************************** * * FUNCTION: AhDisplayUsage * * DESCRIPTION: Usage message * ******************************************************************************/ static void AhDisplayUsage ( void) { ACPI_USAGE_HEADER ("acpihelp [Name/Prefix | HexValue]"); ACPI_OPTION ("-h", "Display help"); ACPI_OPTION ("-v", "Display version information"); ACPI_OPTION ("-vd", "Display build date and time"); ACPI_USAGE_TEXT ("\nAML Names and Encodings (ACPI Machine Language):\n"); ACPI_OPTION ("-a [Name/Prefix | *]", "Display both ASL operator and AML opcode name(s)"); ACPI_OPTION ("-g [Name/Prefix | *]", "Display AML grammar elements(s)"); ACPI_OPTION ("-m [Name/Prefix | *]", "Display AML opcode name(s)"); ACPI_USAGE_TEXT ("\nACPI Values:\n"); ACPI_OPTION ("-e [HexValue]", "Decode ACPICA exception code"); ACPI_OPTION ("-o [HexValue]", "Decode hex AML opcode"); ACPI_OPTION ("-x [HexValue]", "Decode iASL exception code"); ACPI_USAGE_TEXT ("\nASL Names and Symbols (ACPI Source Language):\n"); ACPI_OPTION ("-k [Name/Prefix | *]", "Display ASL non-operator keyword(s)"); ACPI_OPTION ("-p [Name/Prefix | *]", "Display ASL predefined method name(s)"); ACPI_OPTION ("-s [Name/Prefix | *]", "Display ASL operator name(s)"); ACPI_USAGE_TEXT ("\nOther miscellaneous ACPI Names:\n"); ACPI_OPTION ("-i [Name/Prefix | *]", "Display ACPI/PNP Hardware ID(s)"); ACPI_OPTION ("-d", "Display iASL Preprocessor directives"); ACPI_OPTION ("-t", "Display supported ACPI tables"); ACPI_OPTION ("-u", "Display ACPI-related UUIDs"); ACPI_USAGE_TEXT ("\nName/Prefix or HexValue not specified means \"Display All\"\n"); ACPI_USAGE_TEXT ("\nDefault search with valid Name/Prefix and no options:\n"); ACPI_USAGE_TEXT (" Find ASL/AML operator names - if NamePrefix does not start with underscore\n"); ACPI_USAGE_TEXT (" Find ASL predefined method names - if NamePrefix starts with underscore\n"); } /****************************************************************************** * * FUNCTION: main * * DESCRIPTION: C main function for AcpiHelp utility. * ******************************************************************************/ int ACPI_SYSTEM_XFACE main ( int argc, char *argv[]) { char *Name; UINT32 DecodeType; int j; AcpiOsInitialize (); ACPI_DEBUG_INITIALIZE (); /* For debug version only */ printf (ACPI_COMMON_SIGNON (AH_UTILITY_NAME)); DecodeType = AH_DECODE_DEFAULT; if (argc < 2) { AhDisplayUsage (); return (0); } /* Command line options */ while ((j = AcpiGetopt (argc, argv, AH_SUPPORTED_OPTIONS)) != ACPI_OPT_END) switch (j) { case 'a': DecodeType = AH_DECODE_ASL_AML; break; case 'd': DecodeType = AH_DISPLAY_DIRECTIVES; break; case 'e': DecodeType = AH_DECODE_EXCEPTION; break; case 'g': DecodeType = AH_DECODE_AML_TYPE; break; case 'i': DecodeType = AH_DISPLAY_DEVICE_IDS; break; case 'k': DecodeType = AH_DECODE_ASL_KEYWORD; break; case 'm': DecodeType = AH_DECODE_AML; break; case 'o': DecodeType = AH_DECODE_AML_OPCODE; break; case 'p': DecodeType = AH_DECODE_PREDEFINED_NAME; break; case 's': DecodeType = AH_DECODE_ASL; break; case 't': DecodeType = AH_DISPLAY_TABLES; break; case 'u': DecodeType = AH_DISPLAY_UUIDS; break; case 'x': DecodeType = AH_DECODE_ASL_EXCEPTION; break; case 'v': /* -v: (Version): signon already emitted, just exit */ switch (AcpiGbl_Optarg[0]) { case '^': /* -v: (Version) */ return (1); case 'd': printf (ACPI_COMMON_BUILD_TIME); return (1); default: printf ("Unknown option: -v%s\n", AcpiGbl_Optarg); return (-1); } break; case 'h': default: AhDisplayUsage (); return (-1); } /* Missing (null) name means "display all" */ Name = argv[AcpiGbl_Optind]; switch (DecodeType) { case AH_DECODE_ASL_AML: AhFindAslAndAmlOperators (Name); break; case AH_DECODE_AML: AhFindAmlOpcode (Name); break; case AH_DECODE_AML_OPCODE: AhDecodeAmlOpcode (Name); break; case AH_DECODE_AML_TYPE: AhFindAmlTypes (Name); break; case AH_DECODE_PREDEFINED_NAME: AhFindPredefinedNames (Name); break; case AH_DECODE_ASL: AhFindAslOperators (Name); break; case AH_DECODE_ASL_KEYWORD: AhFindAslKeywords (Name); break; case AH_DISPLAY_DEVICE_IDS: AhDisplayDeviceIds (Name); break; case AH_DECODE_EXCEPTION: AhDecodeException (Name); break; case AH_DISPLAY_UUIDS: AhDisplayUuids (); break; case AH_DISPLAY_TABLES: AhDisplayTables (); break; case AH_DISPLAY_DIRECTIVES: AhDisplayDirectives (); break; case AH_DECODE_ASL_EXCEPTION: AhDecodeAslException (Name); break; default: if (!Name) { AhFindAslOperators (Name); break; } if (*Name == '_') { AhFindPredefinedNames (Name); } else { AhFindAslAndAmlOperators (Name); } break; } return (0); } acpica-unix-20250404/source/tools/acpibin/0000775000175000017500000000000014773714134017605 5ustar ivanhuivanhuacpica-unix-20250404/source/tools/acpibin/abcompare.c0000775000175000017500000004041314773714134021707 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: abcompare - compare AML files * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpibin.h" ACPI_TABLE_HEADER Header1; ACPI_TABLE_HEADER Header2; #define BUFFER_SIZE 256 char Buffer[BUFFER_SIZE]; /* Local prototypes */ static BOOLEAN AbValidateHeader ( ACPI_TABLE_HEADER *Header); static UINT8 AcpiTbSumTable ( void *Buffer, UINT32 Length); static char * AbGetFile ( char *Filename, UINT32 *FileSize); static void AbPrintHeaderInfo ( ACPI_TABLE_HEADER *Header); static void AbPrintHeadersInfo ( ACPI_TABLE_HEADER *Header, ACPI_TABLE_HEADER *Header2); /****************************************************************************** * * FUNCTION: AbValidateHeader * * DESCRIPTION: Check for valid ACPI table header * ******************************************************************************/ static BOOLEAN AbValidateHeader ( ACPI_TABLE_HEADER *Header) { if (!AcpiUtValidNameseg (Header->Signature)) { printf ("Header signature is invalid\n"); return (FALSE); } return (TRUE); } /******************************************************************************* * * FUNCTION: AcpiTbSumTable * * PARAMETERS: Buffer - Buffer to checksum * Length - Size of the buffer * * RETURNS 8 bit checksum of buffer * * DESCRIPTION: Computes an 8 bit checksum of the buffer(length) and returns it. * ******************************************************************************/ static UINT8 AcpiTbSumTable ( void *Buffer, UINT32 Length) { const UINT8 *Limit; const UINT8 *Rover; UINT8 Sum = 0; if (Buffer && Length) { /* Buffer and Length are valid */ Limit = (UINT8 *) Buffer + Length; for (Rover = Buffer; Rover < Limit; Rover++) { Sum = (UINT8) (Sum + *Rover); } } return (Sum); } /******************************************************************************* * * FUNCTION: AbPrintHeaderInfo * * PARAMETERS: Header - An ACPI table header * * RETURNS None. * * DESCRIPTION: Format and display header contents. * ******************************************************************************/ static void AbPrintHeaderInfo ( ACPI_TABLE_HEADER *Header) { /* Display header information */ printf ("Signature : %4.4s\n", Header->Signature); printf ("Length : %8.8X\n", Header->Length); printf ("Revision : %2.2X\n", Header->Revision); printf ("Checksum : %2.2X\n", Header->Checksum); printf ("OEM ID : %.6s\n", Header->OemId); printf ("OEM Table ID : %.8s\n", Header->OemTableId); printf ("OEM Revision : %8.8X\n", Header->OemRevision); printf ("ASL Compiler ID : %.4s\n", Header->AslCompilerId); printf ("Compiler Revision : %8.8X\n", Header->AslCompilerRevision); printf ("\n"); } static void AbPrintHeadersInfo ( ACPI_TABLE_HEADER *Header, ACPI_TABLE_HEADER *Header2) { /* Display header information for both headers */ printf ("Signature %8.4s : %4.4s\n", Header->Signature, Header2->Signature); printf ("Length %8.8X : %8.8X\n", Header->Length, Header2->Length); printf ("Revision %8.2X : %2.2X\n", Header->Revision, Header2->Revision); printf ("Checksum %8.2X : %2.2X\n", Header->Checksum, Header2->Checksum); printf ("OEM ID %8.6s : %.6s\n", Header->OemId, Header2->OemId); printf ("OEM Table ID %8.8s : %.8s\n", Header->OemTableId, Header2->OemTableId); printf ("OEM Revision %8.8X : %8.8X\n", Header->OemRevision, Header2->OemRevision); printf ("ASL Compiler ID %8.4s : %.4s\n", Header->AslCompilerId, Header2->AslCompilerId); printf ("Compiler Revision %8.8X : %8.8X\n", Header->AslCompilerRevision, Header2->AslCompilerRevision); printf ("\n"); } /****************************************************************************** * * FUNCTION: AbDisplayHeader * * DESCRIPTION: Display an ACPI table header * ******************************************************************************/ void AbDisplayHeader ( char *FilePath) { UINT32 Actual; FILE *File; File = fopen (FilePath, "rb"); if (!File) { printf ("Could not open file %s\n", FilePath); return; } Actual = fread (&Header1, 1, sizeof (ACPI_TABLE_HEADER), File); fclose (File); if (Actual != sizeof (ACPI_TABLE_HEADER)) { printf ("File %s does not contain a valid ACPI table header\n", FilePath); return; } if (!AbValidateHeader (&Header1)) { return; } AbPrintHeaderInfo (&Header1); } /****************************************************************************** * * FUNCTION: AbComputeChecksum * * DESCRIPTION: Compute proper checksum for an ACPI table * ******************************************************************************/ void AbComputeChecksum ( char *FilePath) { UINT32 Actual; ACPI_TABLE_HEADER *Table; UINT8 Checksum; FILE *File; File = fopen (FilePath, "rb"); if (!File) { printf ("Could not open file %s\n", FilePath); return; } Actual = fread (&Header1, 1, sizeof (ACPI_TABLE_HEADER), File); if (Actual < sizeof (ACPI_TABLE_HEADER)) { printf ("File %s does not contain a valid ACPI table header\n", FilePath); goto Exit1; } if (!AbValidateHeader (&Header1)) { goto Exit1; } if (!Gbl_TerseMode) { AbPrintHeaderInfo (&Header1); } /* Allocate a buffer to hold the entire table */ Table = AcpiOsAllocate (Header1.Length); if (!Table) { printf ("Could not allocate buffer for table\n"); goto Exit1; } /* Read the entire table, including header */ fseek (File, 0, SEEK_SET); Actual = fread (Table, 1, Header1.Length, File); if (Actual != Header1.Length) { printf ("Could not read table, length %u\n", Header1.Length); goto Exit2; } /* Compute the checksum for the table */ Table->Checksum = 0; Checksum = (UINT8) (0 - AcpiTbSumTable (Table, Table->Length)); printf ("Computed checksum: 0x%X\n\n", Checksum); if (Header1.Checksum == Checksum) { printf ("Checksum OK in AML file, not updating\n"); goto Exit2; } /* Open the target file for writing, to update checksum */ fclose (File); File = fopen (FilePath, "r+b"); if (!File) { printf ("Could not open file %s for writing\n", FilePath); goto Exit2; } /* Set the checksum, write the new header */ Header1.Checksum = Checksum; Actual = fwrite (&Header1, 1, sizeof (ACPI_TABLE_HEADER), File); if (Actual != sizeof (ACPI_TABLE_HEADER)) { printf ("Could not write updated table header\n"); goto Exit2; } printf ("Wrote new checksum\n"); Exit2: AcpiOsFree (Table); Exit1: if (File) { fclose (File); } return; } /****************************************************************************** * * FUNCTION: AbCompareAmlFiles * * DESCRIPTION: Compare two AML files * ******************************************************************************/ int AbCompareAmlFiles ( char *File1Path, char *File2Path) { UINT32 Actual1; UINT32 Actual2; UINT32 Offset; UINT8 Char1; UINT8 Char2; UINT8 Mismatches = 0; BOOLEAN HeaderMismatch = FALSE; FILE *File1; FILE *File2; int Status = -1; File1 = fopen (File1Path, "rb"); if (!File1) { printf ("Could not open file %s\n", File1Path); return (-1); } File2 = fopen (File2Path, "rb"); if (!File2) { printf ("Could not open file %s\n", File2Path); goto Exit1; } /* Read the ACPI header from each file */ Actual1 = fread (&Header1, 1, sizeof (ACPI_TABLE_HEADER), File1); if (Actual1 != sizeof (ACPI_TABLE_HEADER)) { printf ("File %s does not contain an ACPI table header\n", File1Path); goto Exit2; } Actual2 = fread (&Header2, 1, sizeof (ACPI_TABLE_HEADER), File2); if (Actual2 != sizeof (ACPI_TABLE_HEADER)) { printf ("File %s does not contain an ACPI table header\n", File2Path); goto Exit2; } if ((!AbValidateHeader (&Header1)) || (!AbValidateHeader (&Header2))) { goto Exit2; } /* Table signatures must match */ if (*((UINT32 *) Header1.Signature) != *((UINT32 *) Header2.Signature)) { printf ("Table signatures do not match\n"); goto Exit2; } if (!Gbl_TerseMode) { /* Display header information */ printf ("Comparing %s to %s\n", File1Path, File2Path); AbPrintHeadersInfo (&Header1, &Header2); } if (memcmp (&Header1, &Header2, sizeof (ACPI_TABLE_HEADER))) { printf ("Headers do not match exactly\n"); HeaderMismatch = TRUE; } /* Do the byte-by-byte compare */ printf ("Compare offset: %u\n", AbGbl_CompareOffset); if (AbGbl_CompareOffset) { if (fseek (File2, AbGbl_CompareOffset, SEEK_CUR)) { printf ("Seek error on file %s\n", File2Path); goto Exit2; } } Actual1 = fread (&Char1, 1, 1, File1); Actual2 = fread (&Char2, 1, 1, File2); Offset = sizeof (ACPI_TABLE_HEADER); while ((Actual1 == 1) && (Actual2 == 1)) { if (Char1 != Char2) { printf ("Error - Byte mismatch at offset %8.4X: 0x%2.2X 0x%2.2X\n", Offset, Char1, Char2); Mismatches++; if ((Mismatches > 100) && (!AbGbl_DisplayAllMiscompares)) { printf ("100 Mismatches: Too many mismatches\n"); goto Exit2; } } Offset++; Actual1 = fread (&Char1, 1, 1, File1); Actual2 = fread (&Char2, 1, 1, File2); } if (Actual1) { printf ("Error - file %s is longer than file %s\n", File1Path, File2Path); Mismatches++; } else if (Actual2) { printf ("Error - file %s is shorter than file %s\n", File1Path, File2Path); Mismatches++; } else if (!Mismatches) { if (HeaderMismatch) { printf ("Files compare exactly after header\n"); } else { printf ("Files compare exactly\n"); } } printf ("%u Mismatches found\n", Mismatches); if (Mismatches == 0) { Status = 0; } Exit2: fclose (File2); Exit1: fclose (File1); return (Status); } /****************************************************************************** * * FUNCTION: AbGetFile * * DESCRIPTION: Open a file and read it entirely into a new buffer * ******************************************************************************/ static char * AbGetFile ( char *Filename, UINT32 *FileSize) { FILE *File; UINT32 Size; char *DataBuffer = NULL; size_t Actual; /* Binary mode does not alter CR/LF pairs */ File = fopen (Filename, "rb"); if (!File) { printf ("Could not open file %s\n", Filename); return (NULL); } /* Need file size to allocate a buffer */ Size = CmGetFileSize (File); if (Size == ACPI_UINT32_MAX) { printf ("Could not get file size (seek) for %s\n", Filename); goto ErrorExit; } /* Allocate a buffer for the entire file */ DataBuffer = calloc (Size, 1); if (!DataBuffer) { printf ("Could not allocate buffer of size %u\n", Size); goto ErrorExit; } /* Read the entire file */ Actual = fread (DataBuffer, 1, Size, File); if (Actual != Size) { printf ("Could not read the input file %s\n", Filename); free (DataBuffer); DataBuffer = NULL; goto ErrorExit; } *FileSize = Size; ErrorExit: fclose (File); return (DataBuffer); } /****************************************************************************** * * FUNCTION: AbDumpAmlFile * * DESCRIPTION: Dump a binary AML file to a text file * ******************************************************************************/ int AbDumpAmlFile ( char *File1Path, char *File2Path) { char *FileBuffer; FILE *FileOutHandle; UINT32 FileSize = 0; int Status = -1; /* Get the entire AML file, validate header */ FileBuffer = AbGetFile (File1Path, &FileSize); if (!FileBuffer) { return (-1); } printf ("Input file: %s contains %u (0x%X) bytes\n", File1Path, FileSize, FileSize); FileOutHandle = fopen (File2Path, "wb"); if (!FileOutHandle) { printf ("Could not open file %s\n", File2Path); goto Exit1; } if (!AbValidateHeader ((ACPI_TABLE_HEADER *) FileBuffer)) { goto Exit2; } /* Convert binary AML to text, using common dump buffer routine */ AcpiGbl_DebugFile = FileOutHandle; AcpiGbl_DbOutputFlags = ACPI_DB_REDIRECTABLE_OUTPUT; AcpiOsPrintf ("%4.4s @ 0x%8.8X\n", ((ACPI_TABLE_HEADER *) FileBuffer)->Signature, 0); AcpiUtDumpBuffer ((UINT8 *) FileBuffer, FileSize, DB_BYTE_DISPLAY, 0); /* Summary for the output file */ FileSize = CmGetFileSize (FileOutHandle); printf ("Output file: %s contains %u (0x%X) bytes\n\n", File2Path, FileSize, FileSize); Status = 0; Exit2: fclose (FileOutHandle); Exit1: free (FileBuffer); return (Status); } acpica-unix-20250404/source/tools/acpibin/acpibin.h0000775000175000017500000000600614773714134021370 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acpibinh - Include file for AcpiBin utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acapps.h" #define DB_CONSOLE_OUTPUT 0x02 #define ACPI_DB_REDIRECTABLE_OUTPUT 0x01 /* * Global variables. Defined in main.c only, externed in all other files */ #ifdef _DECLARE_GLOBALS #define EXTERN #define INIT_GLOBAL(a,b) a=b #else #define EXTERN extern #define INIT_GLOBAL(a,b) a #endif /* Globals */ EXTERN BOOLEAN INIT_GLOBAL (Gbl_TerseMode, FALSE); EXTERN BOOLEAN INIT_GLOBAL (AbGbl_DisplayAllMiscompares, FALSE); EXTERN UINT32 INIT_GLOBAL (AbGbl_CompareOffset, 0); /* Prototypes */ int AbCompareAmlFiles ( char *File1Path, char *File2Path); int AbDumpAmlFile ( char *File1Path, char *File2Path); void AbComputeChecksum ( char *File1Path); void AbDisplayHeader ( char *File1Path); acpica-unix-20250404/source/tools/acpibin/abmain.c0000775000175000017500000001376614773714134021220 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: abmain - Main module for the acpi binary utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define _DECLARE_GLOBALS #include "acpibin.h" /* Local prototypes */ static void AbDisplayUsage ( UINT8 OptionCount); #define AB_UTILITY_NAME "ACPI Binary Table Dump Utility" #define AB_SUPPORTED_OPTIONS "a:c:d:h:o:s:tv^" /****************************************************************************** * * FUNCTION: AbDisplayUsage * * DESCRIPTION: Usage message * ******************************************************************************/ static void AbDisplayUsage ( UINT8 OptionCount) { if (OptionCount) { printf ("Option requires %u arguments\n\n", OptionCount); } ACPI_USAGE_HEADER ("acpibin [options]"); ACPI_OPTION ("-a ", "Compare two binary AML files, dump all mismatches"); ACPI_OPTION ("-c ", "Compare two binary AML files, dump first 100 mismatches"); ACPI_OPTION ("-d ", "Dump AML binary to text file"); ACPI_OPTION ("-o ", "Start comparison at this offset into second file"); ACPI_OPTION ("-h ", "Display table header for binary AML file"); ACPI_OPTION ("-s ", "Update checksum for binary AML file"); ACPI_OPTION ("-t", "Terse mode"); ACPI_OPTION ("-v", "Display version information"); ACPI_OPTION ("-vd", "Display build date and time"); } /****************************************************************************** * * FUNCTION: main * * DESCRIPTION: C main function * ******************************************************************************/ int ACPI_SYSTEM_XFACE main ( int argc, char *argv[]) { int j; int Status = AE_OK; ACPI_DEBUG_INITIALIZE (); /* For debug version only */ AcpiGbl_DebugFile = NULL; AcpiGbl_DbOutputFlags = DB_CONSOLE_OUTPUT; AcpiOsInitialize (); printf (ACPI_COMMON_SIGNON (AB_UTILITY_NAME)); if (argc < 2) { AbDisplayUsage (0); return (0); } /* Command line options */ while ((j = AcpiGetopt (argc, argv, AB_SUPPORTED_OPTIONS)) != ACPI_OPT_END) switch(j) { case 'a': /* Compare Files, display all differences */ AbGbl_DisplayAllMiscompares = TRUE; ACPI_FALLTHROUGH; case 'c': /* Compare Files */ if (argc < 4) { AbDisplayUsage (2); return (-1); } Status = AbCompareAmlFiles (AcpiGbl_Optarg, argv[AcpiGbl_Optind]); break; case 'd': /* Dump AML file */ if (argc < 4) { AbDisplayUsage (2); return (-1); } Status = AbDumpAmlFile (AcpiGbl_Optarg, argv[AcpiGbl_Optind]); break; case 'h': /* Display ACPI table header */ if (argc < 3) { AbDisplayUsage (1); return (-1); } AbDisplayHeader (AcpiGbl_Optarg); return (0); case 'o': AbGbl_CompareOffset = atoi (AcpiGbl_Optarg); continue; case 's': /* Compute/update checksum */ if (argc < 3) { AbDisplayUsage (1); return (-1); } AbComputeChecksum (AcpiGbl_Optarg); return (0); case 't': /* Enable terse mode */ Gbl_TerseMode = TRUE; break; case 'v': /* -v: (Version): signon already emitted, just exit */ switch (AcpiGbl_Optarg[0]) { case '^': /* -v: (Version): signon already emitted, just exit */ return (1); case 'd': printf (ACPI_COMMON_BUILD_TIME); return (1); default: printf ("Unknown option: -v%s\n", AcpiGbl_Optarg); return (-1); } break; default: AbDisplayUsage (0); return (-1); } return (Status); } acpica-unix-20250404/source/tools/acpisrc/0000775000175000017500000000000014773714134017624 5ustar ivanhuivanhuacpica-unix-20250404/source/tools/acpisrc/asconvrt.c0000775000175000017500000013306514773714134021642 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asconvrt - Source conversion code * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpisrc.h" AS_BRACE_INFO Gbl_BraceInfo[] = { {" if", 3}, {" else if", 8}, {" else while", 11}, {" else", 5}, {" do ", 4}, {NULL, 0} }; /* Local prototypes */ static char * AsMatchValidToken ( char *Buffer, char *Filename, char TargetChar, AS_SCAN_CALLBACK Callback); static char * AsCheckBracesCallback ( char *Buffer, char *Filename, UINT32 LineNumber); static UINT32 AsCountLines ( char *Buffer, char *Filename); #define MODULE_HEADER_BEGIN "/******************************************************************************\n *\n * Module Name:"; #define MODULE_HEADER_END " *****************************************************************************/\n\n" #define INTEL_COPYRIGHT " * Copyright (C) 2000 - 2025, Intel Corp.\n" /* Opening signature of the Intel legal header */ char *HeaderBegin = "/******************************************************************************\n *\n * 1. Copyright Notice"; UINT32 NonAnsiCommentCount; char CopyRightHeaderEnd[] = INTEL_COPYRIGHT " *\n" MODULE_HEADER_END; /****************************************************************************** * * FUNCTION: AsCountNonAnsiComments * * DESCRIPTION: Count the number of "//" comments. This type of comment is * non-ANSI C. * * NOTE: July 2014: Allows // within quoted strings and within normal * comments. Eliminates extraneous warnings from this utility. * ******************************************************************************/ void AsCountNonAnsiComments ( char *Buffer, char *Filename) { AsMatchValidToken (Buffer, Filename, 0, NULL); /* Error if any slash-slash comments found */ if (NonAnsiCommentCount) { AsPrint ("Non-ANSI // Comments Found", NonAnsiCommentCount, Filename); Gbl_NonAnsiComments += NonAnsiCommentCount; } } /****************************************************************************** * * FUNCTION: AsCheckForBraces * * DESCRIPTION: Check for an open brace after each if/else/do (etc.) * statement * ******************************************************************************/ void AsCheckForBraces ( char *Buffer, char *Filename) { AsMatchValidToken (Buffer, Filename, 0, AsCheckBracesCallback); } /****************************************************************************** * * FUNCTION: AsCheckBracesCallback * * DESCRIPTION: Check if/else/do statements. Ensure that braces * are always used. * * TBD: Currently, don't check while() statements. The problem is that there * are two forms: do {} while (); and while () {}. * ******************************************************************************/ static char * AsCheckBracesCallback ( char *Buffer, char *Filename, UINT32 LineNumber) { char *SubBuffer = Buffer; char *NextBrace; char *NextSemicolon; AS_BRACE_INFO *BraceInfo; for (BraceInfo = Gbl_BraceInfo; BraceInfo->Operator; BraceInfo++) { if (!(strncmp (BraceInfo->Operator, SubBuffer, BraceInfo->Length))) { SubBuffer += (BraceInfo->Length - 1); /* Find next brace and the next semicolon */ NextBrace = AsMatchValidToken (SubBuffer, Filename, '{', NULL); NextSemicolon = AsMatchValidToken (SubBuffer, Filename, ';', NULL); /* Next brace should appear before next semicolon */ if ((!NextBrace) || (NextSemicolon && (NextBrace > NextSemicolon))) { Gbl_MissingBraces++; if (!Gbl_QuietMode) { printf ("Missing braces for <%s>, line %u: %s\n", BraceInfo->Operator + 1, LineNumber, Filename); } } return (SubBuffer); } } /* No match, just return original buffer */ return (Buffer); } /****************************************************************************** * * FUNCTION: AsMatchValidToken * * DESCRIPTION: Find the next matching token in the input buffer. * ******************************************************************************/ static char * AsMatchValidToken ( char *Buffer, char *Filename, char TargetChar, AS_SCAN_CALLBACK Callback) { char *SubBuffer = Buffer; char *StringStart; UINT32 TotalLines; TotalLines = 1; NonAnsiCommentCount = 0; /* Scan from current position up to the end if necessary */ while (*SubBuffer) { /* Skip normal comments */ if ((*SubBuffer == '/') && (*(SubBuffer + 1) == '*')) { /* Must maintain line count */ SubBuffer += 2; while (strncmp ("*/", SubBuffer, 2)) { if (*SubBuffer == '\n') { TotalLines++; } SubBuffer++; } SubBuffer += 2; continue; } /* Skip single quoted chars */ if (*SubBuffer == '\'') { SubBuffer++; if (!(*SubBuffer)) { break; } if (*SubBuffer == '\\') { SubBuffer++; } SubBuffer++; continue; } /* Skip quoted strings */ if (*SubBuffer == '"') { StringStart = SubBuffer; SubBuffer++; if (!(*SubBuffer)) { break; } while (*SubBuffer != '"') { if ((*SubBuffer == '\n') || (!(*SubBuffer))) { AsPrint ("Unbalanced quoted string",1, Filename); printf (" %.32s (line %u)\n", StringStart, TotalLines); break; } /* Handle escapes within the string */ if (*SubBuffer == '\\') { SubBuffer++; } SubBuffer++; } SubBuffer++; continue; } /* Now we can check for a slash-slash comment */ if ((*SubBuffer == '/') && (*(SubBuffer + 1) == '/')) { NonAnsiCommentCount++; /* Skip to end-of-line */ while ((*SubBuffer != '\n') && (*SubBuffer)) { SubBuffer++; } if (!(*SubBuffer)) { break; } if (*SubBuffer == '\n') { TotalLines++; } SubBuffer++; continue; } /* Finally, check for a newline */ if (*SubBuffer == '\n') { TotalLines++; SubBuffer++; continue; } /* Normal character, do the user actions */ if (Callback) { SubBuffer = Callback (SubBuffer, Filename, TotalLines); } if (TargetChar && (*SubBuffer == TargetChar)) { return (SubBuffer); } SubBuffer++; } return (NULL); } /****************************************************************************** * * FUNCTION: AsRemoveExtraLines * * DESCRIPTION: Remove all extra lines at the start and end of the file. * ******************************************************************************/ void AsRemoveExtraLines ( char *FileBuffer, char *Filename) { char *FileEnd; int Length; /* Remove any extra lines at the start of the file */ while (*FileBuffer == '\n') { printf ("Removing extra line at start of file: %s\n", Filename); AsRemoveData (FileBuffer, FileBuffer + 1); } /* Remove any extra lines at the end of the file */ Length = strlen (FileBuffer); FileEnd = FileBuffer + (Length - 2); while (*FileEnd == '\n') { printf ("Removing extra line at end of file: %s\n", Filename); AsRemoveData (FileEnd, FileEnd + 1); FileEnd--; } } /****************************************************************************** * * FUNCTION: AsRemoveSpacesAfterPeriod * * DESCRIPTION: Remove an extra space after a period. * ******************************************************************************/ void AsRemoveSpacesAfterPeriod ( char *FileBuffer, char *Filename) { int ReplaceCount = 0; char *Possible; Possible = FileBuffer; while (Possible) { Possible = strstr (Possible, ". "); if (Possible) { if ((*(Possible -1) == '.') || (*(Possible -1) == '\"') || (*(Possible -1) == '\n')) { Possible += 3; continue; } Possible = AsReplaceData (Possible, 3, ". ", 2); ReplaceCount++; } } if (ReplaceCount) { printf ("Removed %d extra blanks after a period: %s\n", ReplaceCount, Filename); } } /****************************************************************************** * * FUNCTION: AsMatchExactWord * * DESCRIPTION: Check previous and next characters for whitespace * ******************************************************************************/ BOOLEAN AsMatchExactWord ( char *Word, UINT32 WordLength) { char NextChar; char PrevChar; NextChar = Word[WordLength]; PrevChar = * (Word -1); if (isalnum ((int) NextChar) || (NextChar == '_') || isalnum ((int) PrevChar) || (PrevChar == '_')) { return (FALSE); } return (TRUE); } /****************************************************************************** * * FUNCTION: AsPrint * * DESCRIPTION: Common formatted print * ******************************************************************************/ void AsPrint ( char *Message, UINT32 Count, char *Filename) { if (Gbl_QuietMode) { return; } printf ("-- %4u %28.28s : %s\n", Count, Message, Filename); } /****************************************************************************** * * FUNCTION: AsTrimLines * * DESCRIPTION: Remove extra blanks from the end of source lines. Does not * check for tabs. * ******************************************************************************/ void AsTrimLines ( char *Buffer, char *Filename) { char *SubBuffer = Buffer; char *StartWhiteSpace = NULL; UINT32 SpaceCount = 0; while (*SubBuffer) { while (*SubBuffer != '\n') { if (!*SubBuffer) { goto Exit; } if (*SubBuffer == ' ') { if (!StartWhiteSpace) { StartWhiteSpace = SubBuffer; } } else { StartWhiteSpace = NULL; } SubBuffer++; } if (StartWhiteSpace) { SpaceCount += (SubBuffer - StartWhiteSpace); /* Remove the spaces */ SubBuffer = AsRemoveData (StartWhiteSpace, SubBuffer); StartWhiteSpace = NULL; } SubBuffer++; } Exit: if (SpaceCount) { Gbl_MadeChanges = TRUE; AsPrint ("Extraneous spaces removed", SpaceCount, Filename); } } /****************************************************************************** * * FUNCTION: AsTrimWhitespace * * DESCRIPTION: Remove "excess" blank lines - any more than 2 blank lines. * this can happen during the translation when lines are removed. * ******************************************************************************/ void AsTrimWhitespace ( char *Buffer) { char *SubBuffer; int ReplaceCount = 1; while (ReplaceCount) { ReplaceCount = AsReplaceString ("\n\n\n\n", "\n\n\n", REPLACE_SUBSTRINGS, Buffer); } /* * Check for exactly one blank line after the copyright header */ /* Find the header */ SubBuffer = strstr (Buffer, HeaderBegin); if (!SubBuffer) { return; } /* Find the end of the header */ SubBuffer = strstr (SubBuffer, "*/"); SubBuffer = AsSkipPastChar (SubBuffer, '\n'); /* Replace a double blank line with a single */ if (!strncmp (SubBuffer, "\n\n", 2)) { AsReplaceData (SubBuffer, 2, "\n", 1); AcpiOsPrintf ("Found multiple blank lines after copyright\n"); } /* If no blank line after header, insert one */ else if (*SubBuffer != '\n') { AsInsertData (SubBuffer, "\n", 1); AcpiOsPrintf ("Inserted blank line after copyright\n"); } } /****************************************************************************** * * FUNCTION: AsReplaceHeader * * DESCRIPTION: Replace the default Intel legal header with a new header * ******************************************************************************/ void AsReplaceHeader ( char *Buffer, char *NewHeader) { char *SubBuffer; char *TokenEnd; /* Find the original header */ SubBuffer = strstr (Buffer, HeaderBegin); if (!SubBuffer) { return; } /* Find the end of the original header */ TokenEnd = strstr (SubBuffer, "*/"); TokenEnd = AsSkipPastChar (TokenEnd, '\n'); /* Delete old header, insert new one */ AsReplaceData (SubBuffer, TokenEnd - SubBuffer, NewHeader, strlen (NewHeader)); } /****************************************************************************** * * FUNCTION: AsDoSpdxHeader * * DESCRIPTION: Replace the default Intel legal header with a new header * ******************************************************************************/ void AsDoSpdxHeader ( char *Buffer, char *SpdxHeader) { char *SubBuffer; /* Place an SPDX header at the very top */ AsReplaceData (Buffer, 0, SpdxHeader, strlen (SpdxHeader)); /* Place an Intel copyright notice in the module header */ SubBuffer = strstr (Buffer, MODULE_HEADER_END); if (!SubBuffer) { return; } AsReplaceData (SubBuffer, strlen (MODULE_HEADER_END), CopyRightHeaderEnd, strlen (CopyRightHeaderEnd)); } /****************************************************************************** * * FUNCTION: AsReplaceString * * DESCRIPTION: Replace all instances of a target string with a replacement * string. Returns count of the strings replaced. * ******************************************************************************/ int AsReplaceString ( char *Target, char *Replacement, UINT8 Type, char *Buffer) { char *SubString1; char *SubString2; char *SubBuffer; int TargetLength; int ReplacementLength; int ReplaceCount = 0; TargetLength = strlen (Target); ReplacementLength = strlen (Replacement); SubBuffer = Buffer; SubString1 = Buffer; while (SubString1) { /* Find the target string */ SubString1 = strstr (SubBuffer, Target); if (!SubString1) { return (ReplaceCount); } /* * Check for translation escape string -- means to ignore * blocks of code while replacing */ if (Gbl_IgnoreTranslationEscapes) { SubString2 = NULL; } else { SubString2 = strstr (SubBuffer, AS_START_IGNORE); } if ((SubString2) && (SubString2 < SubString1)) { /* Find end of the escape block starting at "Substring2" */ SubString2 = strstr (SubString2, AS_STOP_IGNORE); if (!SubString2) { /* Didn't find terminator */ return (ReplaceCount); } /* Move buffer to end of escape block and continue */ SubBuffer = SubString2; } /* Do the actual replace if the target was found */ else { if ((Type & REPLACE_MASK) == REPLACE_WHOLE_WORD) { if (!AsMatchExactWord (SubString1, TargetLength)) { SubBuffer = SubString1 + 1; continue; } } SubBuffer = AsReplaceData (SubString1, TargetLength, Replacement, ReplacementLength); if ((Type & EXTRA_INDENT_C) && (!Gbl_StructDefs)) { SubBuffer = AsInsertData (SubBuffer, " ", 8); } ReplaceCount++; } } return (ReplaceCount); } /****************************************************************************** * * FUNCTION: AsConvertToLineFeeds * * DESCRIPTION: Convert all CR/LF pairs to LF only. * ******************************************************************************/ void AsConvertToLineFeeds ( char *Buffer) { char *SubString; char *SubBuffer; SubBuffer = Buffer; SubString = Buffer; while (SubString) { /* Find the target string */ SubString = strstr (SubBuffer, "\r\n"); if (!SubString) { return; } SubBuffer = AsReplaceData (SubString, 1, NULL, 0); } } /****************************************************************************** * * FUNCTION: AsInsertCarriageReturns * * DESCRIPTION: Convert lone LFs to CR/LF pairs. * ******************************************************************************/ void AsInsertCarriageReturns ( char *Buffer) { char *SubString; char *SubBuffer; SubBuffer = Buffer; SubString = Buffer; while (SubString) { /* Find the target string */ SubString = strstr (SubBuffer, "\n"); if (!SubString) { return; } SubBuffer = AsInsertData (SubString, "\r", 1); SubBuffer += 1; } } /****************************************************************************** * * FUNCTION: AsBracesOnSameLine * * DESCRIPTION: Move opening braces up to the same line as an if, for, else, * or while statement (leave function opening brace on separate * line). * ******************************************************************************/ void AsBracesOnSameLine ( char *Buffer) { char *SubBuffer = Buffer; char *Beginning; char *StartOfThisLine; char *Next; BOOLEAN BlockBegin = TRUE; while (*SubBuffer) { /* Ignore comments */ if ((SubBuffer[0] == '/') && (SubBuffer[1] == '*')) { SubBuffer = strstr (SubBuffer, "*/"); if (!SubBuffer) { return; } SubBuffer += 2; continue; } /* Ignore quoted strings */ if (*SubBuffer == '\"') { SubBuffer++; SubBuffer = AsSkipPastChar (SubBuffer, '\"'); if (!SubBuffer) { return; } } if (!strncmp ("\n}", SubBuffer, 2)) { /* * A newline followed by a closing brace closes a function * or struct or initializer block */ BlockBegin = TRUE; } /* * Move every standalone brace up to the previous line * Check for digit will ignore initializer lists surrounded by braces. * This will work until we we need more complex detection. */ if ((*SubBuffer == '{') && !isdigit ((int) SubBuffer[1])) { if (BlockBegin) { BlockBegin = FALSE; } else { /* * Backup to previous non-whitespace */ Beginning = SubBuffer - 1; while ((*Beginning == ' ') || (*Beginning == '\n')) { Beginning--; } StartOfThisLine = Beginning; while (*StartOfThisLine != '\n') { StartOfThisLine--; } /* * Move the brace up to the previous line, UNLESS: * * 1) There is a conditional compile on the line (starts with '#') * 2) Previous line ends with an '=' (Start of initializer block) * 3) Previous line ends with a comma (part of an init list) * 4) Previous line ends with a backslash (part of a macro) */ if ((StartOfThisLine[1] != '#') && (*Beginning != '\\') && (*Beginning != '/') && (*Beginning != '{') && (*Beginning != '=') && (*Beginning != ',')) { Beginning++; SubBuffer++; Gbl_MadeChanges = TRUE; #ifdef ADD_EXTRA_WHITESPACE AsReplaceData (Beginning, SubBuffer - Beginning, " {\n", 3); #else /* Find non-whitespace start of next line */ Next = SubBuffer + 1; while ((*Next == ' ') || (*Next == '\t')) { Next++; } /* Find non-whitespace start of this line */ StartOfThisLine++; while ((*StartOfThisLine == ' ') || (*StartOfThisLine == '\t')) { StartOfThisLine++; } /* * Must be a single-line comment to need more whitespace * Even then, we don't need more if the previous statement * is an "else". */ if ((Next[0] == '/') && (Next[1] == '*') && (Next[2] != '\n') && (!strncmp (StartOfThisLine, "else if", 7) || !strncmp (StartOfThisLine, "else while", 10) || strncmp (StartOfThisLine, "else", 4))) { AsReplaceData (Beginning, SubBuffer - Beginning, " {\n", 3); } else { AsReplaceData (Beginning, SubBuffer - Beginning, " {", 2); } #endif } } } SubBuffer++; } } /****************************************************************************** * * FUNCTION: AsTabify4 * * DESCRIPTION: Convert the text to tabbed text. Alignment of text is * preserved. * ******************************************************************************/ void AsTabify4 ( char *Buffer) { char *SubBuffer = Buffer; char *NewSubBuffer; UINT32 SpaceCount = 0; UINT32 Column = 0; while (*SubBuffer) { if (*SubBuffer == '\n') { Column = 0; } else { Column++; } /* Ignore comments */ if ((SubBuffer[0] == '/') && (SubBuffer[1] == '*')) { SubBuffer = strstr (SubBuffer, "*/"); if (!SubBuffer) { return; } SubBuffer += 2; continue; } /* Ignore quoted strings */ if (*SubBuffer == '\"') { SubBuffer++; SubBuffer = AsSkipPastChar (SubBuffer, '\"'); if (!SubBuffer) { return; } SpaceCount = 0; } if (*SubBuffer == ' ') { SpaceCount++; if (SpaceCount >= 4) { SpaceCount = 0; NewSubBuffer = (SubBuffer + 1) - 4; *NewSubBuffer = '\t'; NewSubBuffer++; /* Remove the spaces */ SubBuffer = AsRemoveData (NewSubBuffer, SubBuffer + 1); } if ((Column % 4) == 0) { SpaceCount = 0; } } else { SpaceCount = 0; } SubBuffer++; } } /****************************************************************************** * * FUNCTION: AsTabify8 * * DESCRIPTION: Convert the text to tabbed text. Alignment of text is * preserved. * ******************************************************************************/ void AsTabify8 ( char *Buffer) { char *SubBuffer = Buffer; char *NewSubBuffer; char *CommentEnd = NULL; UINT32 SpaceCount = 0; UINT32 TabCount = 0; UINT32 LastLineTabCount = 0; UINT32 LastLineColumnStart = 0; UINT32 ThisColumnStart = 0; UINT32 ThisTabCount = 0; char *FirstNonBlank = NULL; while (*SubBuffer) { if (*SubBuffer == '\n') { /* This is a standalone blank line */ FirstNonBlank = NULL; SpaceCount = 0; TabCount = 0; SubBuffer++; continue; } if (!FirstNonBlank) { /* Find the first non-blank character on this line */ FirstNonBlank = SubBuffer; while (*FirstNonBlank == ' ') { FirstNonBlank++; } /* * This mechanism limits the difference in tab counts from * line to line. It helps avoid the situation where a second * continuation line (which was indented correctly for tabs=4) would * get indented off the screen if we just blindly converted to tabs. */ ThisColumnStart = FirstNonBlank - SubBuffer; if (LastLineTabCount == 0) { ThisTabCount = 0; } else if (ThisColumnStart == LastLineColumnStart) { ThisTabCount = LastLineTabCount -1; } else { ThisTabCount = LastLineTabCount + 1; } } /* Check if we are in a comment */ if ((SubBuffer[0] == '*') && (SubBuffer[1] == '/')) { SpaceCount = 0; SubBuffer += 2; if (*SubBuffer == '\n') { if (TabCount > 0) { LastLineTabCount = TabCount; TabCount = 0; } FirstNonBlank = NULL; LastLineColumnStart = ThisColumnStart; SubBuffer++; } continue; } /* Check for comment open */ if ((SubBuffer[0] == '/') && (SubBuffer[1] == '*')) { /* Find the end of the comment, it must exist */ CommentEnd = strstr (SubBuffer, "*/"); if (!CommentEnd) { return; } /* Toss the rest of this line or single-line comment */ while ((SubBuffer < CommentEnd) && (*SubBuffer != '\n')) { SubBuffer++; } if (*SubBuffer == '\n') { if (TabCount > 0) { LastLineTabCount = TabCount; TabCount = 0; } FirstNonBlank = NULL; LastLineColumnStart = ThisColumnStart; } SpaceCount = 0; continue; } /* Ignore quoted strings */ if ((!CommentEnd) && (*SubBuffer == '\"')) { SubBuffer++; SubBuffer = AsSkipPastChar (SubBuffer, '\"'); if (!SubBuffer) { return; } SpaceCount = 0; } if (*SubBuffer != ' ') { /* Not a space, skip to end of line */ SubBuffer = AsSkipUntilChar (SubBuffer, '\n'); if (!SubBuffer) { return; } if (TabCount > 0) { LastLineTabCount = TabCount; TabCount = 0; } FirstNonBlank = NULL; LastLineColumnStart = ThisColumnStart; SpaceCount = 0; } else { /* Another space */ SpaceCount++; if (SpaceCount >= 4) { /* Replace this group of spaces with a tab character */ SpaceCount = 0; NewSubBuffer = SubBuffer - 3; if (TabCount <= ThisTabCount ? (ThisTabCount +1) : 0) { *NewSubBuffer = '\t'; NewSubBuffer++; SubBuffer++; TabCount++; } /* Remove the spaces */ SubBuffer = AsRemoveData (NewSubBuffer, SubBuffer); continue; } } SubBuffer++; } } /****************************************************************************** * * FUNCTION: AsCountLines * * DESCRIPTION: Count the number of lines in the input buffer. Also count * the number of long lines (lines longer than 80 chars). * ******************************************************************************/ static UINT32 AsCountLines ( char *Buffer, char *Filename) { char *SubBuffer = Buffer; char *EndOfLine; UINT32 LineCount = 0; UINT32 LongLineCount = 0; while (*SubBuffer) { EndOfLine = AsSkipUntilChar (SubBuffer, '\n'); if (!EndOfLine) { Gbl_TotalLines += LineCount; return (LineCount); } if ((EndOfLine - SubBuffer) > 80) { LongLineCount++; VERBOSE_PRINT (("long: %.80s\n", SubBuffer)); } LineCount++; SubBuffer = EndOfLine + 1; } if (LongLineCount) { VERBOSE_PRINT (("%u Lines longer than 80 found in %s\n", LongLineCount, Filename)); Gbl_LongLines += LongLineCount; } Gbl_TotalLines += LineCount; return (LineCount); } /****************************************************************************** * * FUNCTION: AsCountTabs * * DESCRIPTION: Simply count the number of tabs in the input file buffer * ******************************************************************************/ void AsCountTabs ( char *Buffer, char *Filename) { UINT32 i; UINT32 TabCount = 0; for (i = 0; Buffer[i]; i++) { if (Buffer[i] == '\t') { TabCount++; } } if (TabCount) { AsPrint ("Tabs found", TabCount, Filename); Gbl_Tabs += TabCount; } AsCountLines (Buffer, Filename); } /****************************************************************************** * * FUNCTION: AsCountSourceLines * * DESCRIPTION: Count the number of C source lines. Defined by 1) not a * comment, and 2) not a blank line. * ******************************************************************************/ void AsCountSourceLines ( char *Buffer, char *Filename) { char *SubBuffer = Buffer; UINT32 LineCount = 0; UINT32 WhiteCount = 0; UINT32 CommentCount = 0; while (*SubBuffer) { /* Detect comments (// comments are not used, non-ansii) */ if ((SubBuffer[0] == '/') && (SubBuffer[1] == '*')) { SubBuffer += 2; /* First line of multi-line comment is often just whitespace */ if (SubBuffer[0] == '\n') { WhiteCount++; SubBuffer++; } else { CommentCount++; } /* Find end of comment */ while (SubBuffer[0] && SubBuffer[1] && !(((SubBuffer[0] == '*') && (SubBuffer[1] == '/')))) { if (SubBuffer[0] == '\n') { CommentCount++; } SubBuffer++; } } /* A linefeed followed by a non-linefeed is a valid source line */ else if ((SubBuffer[0] == '\n') && (SubBuffer[1] != '\n')) { LineCount++; } /* Two back-to-back linefeeds indicate a whitespace line */ else if ((SubBuffer[0] == '\n') && (SubBuffer[1] == '\n')) { WhiteCount++; } SubBuffer++; } /* Adjust comment count for legal header */ if (Gbl_HeaderSize < CommentCount) { CommentCount -= Gbl_HeaderSize; Gbl_HeaderLines += Gbl_HeaderSize; } Gbl_SourceLines += LineCount; Gbl_WhiteLines += WhiteCount; Gbl_CommentLines += CommentCount; VERBOSE_PRINT (("%u Comment %u White %u Code %u Lines in %s\n", CommentCount, WhiteCount, LineCount, LineCount + WhiteCount + CommentCount, Filename)); } /****************************************************************************** * * FUNCTION: AsInsertPrefix * * DESCRIPTION: Insert struct or union prefixes * ******************************************************************************/ void AsInsertPrefix ( char *Buffer, char *Keyword, UINT8 Type) { char *SubString; char *SubBuffer; char *EndKeyword; int InsertLength; char *InsertString; int TrailingSpaces; char LowerKeyword[128]; int KeywordLength; char *LineStart; BOOLEAN FoundPrefix; switch (Type) { case SRC_TYPE_STRUCT: InsertString = "struct "; break; case SRC_TYPE_UNION: InsertString = "union "; break; default: return; } strcpy (LowerKeyword, Keyword); AcpiUtStrlwr (LowerKeyword); SubBuffer = Buffer; SubString = Buffer; InsertLength = strlen (InsertString); KeywordLength = strlen (Keyword); while (SubString) { /* Find an instance of the keyword */ SubString = strstr (SubBuffer, LowerKeyword); if (!SubString) { return; } SubBuffer = SubString; /* Must be standalone word, not a substring */ if (AsMatchExactWord (SubString, KeywordLength)) { /* Make sure the keyword isn't already prefixed with the insert */ /* We find the beginning of the line and try to find the InsertString * from LineStart up to SubBuffer (our keyword). If it's not there, * we assume it doesn't have a prefix; this is a limitation, as having * a keyword on another line is absolutely valid C. */ LineStart = SubString; FoundPrefix = FALSE; /* Find the start of the line */ while (LineStart > Buffer) { if (*LineStart == '\n') { LineStart++; break; } LineStart--; } /* Try to find InsertString from the start of the line up to SubBuffer */ /* Note that this algorithm is a bit naive. */ while (SubBuffer > LineStart) { if (*LineStart != *InsertString) { LineStart++; continue; } if (strncmp (LineStart++, InsertString, InsertLength)) { continue; } FoundPrefix = TRUE; LineStart += InsertLength - 1; /* Now check if there's non-whitespace between InsertString and SubBuffer, as that * means it's not a valid prefix in this case. */ while (LineStart != SubBuffer) { if (!strchr (" \t\r\n", *LineStart)) { /* We found non-whitespace while traversing up to SubBuffer, * so this isn't a prefix. */ FoundPrefix = FALSE; break; } LineStart++; } } if (FoundPrefix) { /* Add spaces if not already at the end-of-line */ if (*(SubBuffer + KeywordLength) != '\n') { /* Already present, add spaces after to align structure members */ #if 0 /* ONLY FOR C FILES */ AsInsertData (SubBuffer + KeywordLength, " ", 8); #endif } goto Next; } /* Make sure the keyword isn't at the end of a struct/union */ /* Note: This code depends on a single space after the brace */ if (*(SubString - 2) == '}') { goto Next; } /* Prefix the keyword with the insert string */ Gbl_MadeChanges = TRUE; /* Is there room for insertion */ EndKeyword = SubString + strlen (LowerKeyword); TrailingSpaces = 0; while (EndKeyword[TrailingSpaces] == ' ') { TrailingSpaces++; } /* * Use "if (TrailingSpaces > 1)" if we want to ignore casts */ SubBuffer = SubString + InsertLength; if (TrailingSpaces > InsertLength) { /* Insert the keyword */ memmove (SubBuffer, SubString, KeywordLength); /* Insert the keyword */ memmove (SubString, InsertString, InsertLength); } else { AsInsertData (SubString, InsertString, InsertLength); } } Next: SubBuffer += KeywordLength; } } #ifdef ACPI_FUTURE_IMPLEMENTATION /****************************************************************************** * * FUNCTION: AsTrimComments * * DESCRIPTION: Finds 3-line comments with only a single line of text * ******************************************************************************/ void AsTrimComments ( char *Buffer, char *Filename) { char *SubBuffer = Buffer; char *Ptr1; char *Ptr2; UINT32 LineCount; UINT32 ShortCommentCount = 0; while (1) { /* Find comment open, within procedure level */ SubBuffer = strstr (SubBuffer, " /*"); if (!SubBuffer) { goto Exit; } /* Find comment terminator */ Ptr1 = strstr (SubBuffer, "*/"); if (!Ptr1) { goto Exit; } /* Find next EOL (from original buffer) */ Ptr2 = strstr (SubBuffer, "\n"); if (!Ptr2) { goto Exit; } /* Ignore one-line comments */ if (Ptr1 < Ptr2) { /* Normal comment, ignore and continue; */ SubBuffer = Ptr2; continue; } /* Examine multi-line comment */ LineCount = 1; while (Ptr1 > Ptr2) { /* Find next EOL */ Ptr2++; Ptr2 = strstr (Ptr2, "\n"); if (!Ptr2) { goto Exit; } LineCount++; } SubBuffer = Ptr1; if (LineCount <= 3) { ShortCommentCount++; } } Exit: if (ShortCommentCount) { AsPrint ("Short Comments found", ShortCommentCount, Filename); } } #endif #ifdef ACPI_UNUSED_FUNCTIONS /****************************************************************************** * * FUNCTION: AsCheckAndSkipLiterals * * DESCRIPTION: Generic routine to skip comments and quoted string literals. * Keeps a line count. * ******************************************************************************/ static char * AsCheckAndSkipLiterals ( char *Buffer, UINT32 *TotalLines); static char * AsCheckAndSkipLiterals ( char *Buffer, UINT32 *TotalLines) { UINT32 NewLines = 0; char *SubBuffer = Buffer; char *LiteralEnd; /* Ignore comments */ if ((SubBuffer[0] == '/') && (SubBuffer[1] == '*')) { LiteralEnd = strstr (SubBuffer, "*/"); SubBuffer += 2; /* Get past comment opening */ if (!LiteralEnd) { return (SubBuffer); } while (SubBuffer < LiteralEnd) { if (*SubBuffer == '\n') { NewLines++; } SubBuffer++; } SubBuffer += 2; /* Get past comment close */ } /* Ignore quoted strings */ else if (*SubBuffer == '\"') { SubBuffer++; LiteralEnd = AsSkipPastChar (SubBuffer, '\"'); if (!LiteralEnd) { return (SubBuffer); } } if (TotalLines) { (*TotalLines) += NewLines; } return (SubBuffer); } #endif acpica-unix-20250404/source/tools/acpisrc/asmain.c0000775000175000017500000003322614773714134021251 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asmain - Main module for the acpi source processor utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpisrc.h" /* Local prototypes */ int AsExaminePaths ( ACPI_CONVERSION_TABLE *ConversionTable, char *Source, char *Target, UINT32 *SourceFileType); void AsDisplayStats ( void); void AsDisplayUsage ( void); /* Globals */ UINT32 Gbl_Tabs = 0; UINT32 Gbl_MissingBraces = 0; UINT32 Gbl_NonAnsiComments = 0; UINT32 Gbl_Files = 0; UINT32 Gbl_WhiteLines = 0; UINT32 Gbl_CommentLines = 0; UINT32 Gbl_SourceLines = 0; UINT32 Gbl_LongLines = 0; UINT32 Gbl_TotalLines = 0; UINT32 Gbl_TotalSize = 0; UINT32 Gbl_HeaderLines = 0; UINT32 Gbl_HeaderSize = 0; void *Gbl_StructDefs = NULL; struct stat Gbl_StatBuf; char *Gbl_FileBuffer; UINT32 Gbl_FileSize; UINT32 Gbl_FileType; BOOLEAN Gbl_CheckAscii = FALSE; BOOLEAN Gbl_VerboseMode = FALSE; BOOLEAN Gbl_QuietMode = FALSE; BOOLEAN Gbl_BatchMode = FALSE; BOOLEAN Gbl_DebugStatementsMode = FALSE; BOOLEAN Gbl_MadeChanges = FALSE; BOOLEAN Gbl_Overwrite = FALSE; BOOLEAN Gbl_WidenDeclarations = FALSE; BOOLEAN Gbl_IgnoreLoneLineFeeds = FALSE; BOOLEAN Gbl_HasLoneLineFeeds = FALSE; BOOLEAN Gbl_Cleanup = FALSE; BOOLEAN Gbl_IgnoreTranslationEscapes = FALSE; #define AS_UTILITY_NAME "ACPI Source Code Conversion Utility" #define AS_SUPPORTED_OPTIONS "acdhilqsuv^y" /****************************************************************************** * * FUNCTION: AsExaminePaths * * DESCRIPTION: Source and Target pathname verification and handling * ******************************************************************************/ int AsExaminePaths ( ACPI_CONVERSION_TABLE *ConversionTable, char *Source, char *Target, UINT32 *SourceFileType) { int Status; int Response; Status = stat (Source, &Gbl_StatBuf); if (Status) { printf ("Source path \"%s\" does not exist\n", Source); return (-1); } /* Return the filetype -- file or a directory */ *SourceFileType = 0; if (Gbl_StatBuf.st_mode & S_IFDIR) { *SourceFileType = S_IFDIR; } /* * If we are in no-output mode or in batch mode, we are done */ if ((ConversionTable->Flags & FLG_NO_FILE_OUTPUT) || (Gbl_BatchMode)) { return (0); } if (!AcpiUtStricmp (Source, Target)) { printf ("Target path is the same as the source path, overwrite?\n"); Response = getchar (); /* Check response */ if (Response != 'y') { return (-1); } Gbl_Overwrite = TRUE; } else { Status = stat (Target, &Gbl_StatBuf); if (!Status) { printf ("Target path already exists, overwrite?\n"); Response = getchar (); /* Check response */ if (Response != 'y') { return (-1); } } } return (0); } /****************************************************************************** * * FUNCTION: AsDisplayStats * * DESCRIPTION: Display global statistics gathered during translation * ******************************************************************************/ void AsDisplayStats ( void) { if (Gbl_QuietMode) { return; } printf ("\nAcpiSrc statistics:\n\n"); printf ("%8u Files processed\n", Gbl_Files); if (!Gbl_Files) { return; } printf ("%8u Total bytes (%.1fK/file)\n", Gbl_TotalSize, ((double) Gbl_TotalSize/Gbl_Files)/1024); printf ("%8u Tabs found\n", Gbl_Tabs); printf ("%8u Missing if/else/while braces\n", Gbl_MissingBraces); printf ("%8u Non-ANSI // comments found\n", Gbl_NonAnsiComments); printf ("%8u Total Lines\n", Gbl_TotalLines); printf ("%8u Lines of code\n", Gbl_SourceLines); printf ("%8u Lines of non-comment whitespace\n", Gbl_WhiteLines); printf ("%8u Lines of comments\n", Gbl_CommentLines); printf ("%8u Long lines found\n", Gbl_LongLines); if (Gbl_WhiteLines > 0) { printf ("%8.1f Ratio of code to whitespace\n", ((float) Gbl_SourceLines / (float) Gbl_WhiteLines)); } if ((Gbl_CommentLines + Gbl_NonAnsiComments) > 0) { printf ("%8.1f Ratio of code to comments\n", ((float) Gbl_SourceLines / (float) (Gbl_CommentLines + Gbl_NonAnsiComments))); } if (!Gbl_TotalLines) { return; } printf (" %u%% code, %u%% comments, %u%% whitespace, %u%% headers\n", (Gbl_SourceLines * 100) / Gbl_TotalLines, (Gbl_CommentLines * 100) / Gbl_TotalLines, (Gbl_WhiteLines * 100) / Gbl_TotalLines, (Gbl_HeaderLines * 100) / Gbl_TotalLines); return; } /****************************************************************************** * * FUNCTION: AsDisplayUsage * * DESCRIPTION: Usage message * ******************************************************************************/ void AsDisplayUsage ( void) { ACPI_USAGE_HEADER ("acpisrc [-c|l|u] [-dsvy] "); ACPI_OPTION ("-a ", "Check entire file for non-printable characters"); ACPI_OPTION ("-c", "Generate cleaned version of the source"); ACPI_OPTION ("-h", "Insert dual-license header into all modules"); ACPI_OPTION ("-i", "Cleanup macro indentation"); ACPI_OPTION ("-l", "Generate Linux version of the source"); ACPI_OPTION ("-u", "Generate Custom source translation"); ACPI_USAGE_TEXT ("\n"); ACPI_OPTION ("-d", "Leave debug statements in code"); ACPI_OPTION ("-s", "Generate source statistics only"); ACPI_OPTION ("-v", "Display version information"); ACPI_OPTION ("-vb", "Verbose mode"); ACPI_OPTION ("-vd", "Display build date and time"); ACPI_OPTION ("-y", "Suppress file overwrite prompts"); } /****************************************************************************** * * FUNCTION: main * * DESCRIPTION: C main function * ******************************************************************************/ int ACPI_SYSTEM_XFACE main ( int argc, char *argv[]) { int j; ACPI_CONVERSION_TABLE *ConversionTable = NULL; char *SourcePath; char *TargetPath; UINT32 FileType; ACPI_DEBUG_INITIALIZE (); /* For debug version only */ AcpiOsInitialize (); printf (ACPI_COMMON_SIGNON (AS_UTILITY_NAME)); if (argc < 2) { AsDisplayUsage (); return (0); } /* Command line options */ while ((j = AcpiGetopt (argc, argv, AS_SUPPORTED_OPTIONS)) != ACPI_OPT_END) switch(j) { case 'l': /* Linux code generation */ printf ("Creating Linux source code\n"); ConversionTable = &LinuxConversionTable; Gbl_WidenDeclarations = TRUE; Gbl_IgnoreLoneLineFeeds = TRUE; break; case 'c': /* Cleanup code */ printf ("Code cleanup\n"); ConversionTable = &CleanupConversionTable; Gbl_Cleanup = TRUE; break; case 'h': /* Inject Dual-license header */ printf ("Inserting Dual-license header to all modules\n"); ConversionTable = &LicenseConversionTable; break; case 'i': /* Cleanup wrong indent result */ printf ("Cleaning up macro indentation\n"); ConversionTable = &IndentConversionTable; Gbl_IgnoreLoneLineFeeds = TRUE; Gbl_IgnoreTranslationEscapes = TRUE; break; case 's': /* Statistics only */ break; case 'u': /* custom conversion */ printf ("Custom source translation\n"); ConversionTable = &CustomConversionTable; break; case 'v': switch (AcpiGbl_Optarg[0]) { case '^': /* -v: (Version): signon already emitted, just exit */ exit (0); case 'b': /* Verbose mode */ Gbl_VerboseMode = TRUE; break; case 'd': printf (ACPI_COMMON_BUILD_TIME); return (0); default: printf ("Unknown option: -v%s\n", AcpiGbl_Optarg); return (-1); } break; case 'y': /* Batch mode */ Gbl_BatchMode = TRUE; break; case 'd': /* Leave debug statements in */ Gbl_DebugStatementsMode = TRUE; break; case 'q': /* Quiet mode */ Gbl_QuietMode = TRUE; break; case 'a': Gbl_CheckAscii = TRUE; break; default: AsDisplayUsage (); return (-1); } SourcePath = argv[AcpiGbl_Optind]; if (!SourcePath) { printf ("Missing source path\n"); AsDisplayUsage (); return (-1); } /* This option checks the entire file for printable ascii chars */ if (Gbl_CheckAscii) { AsProcessOneFile (NULL, NULL, NULL, 0, SourcePath, FILE_TYPE_SOURCE); return (0); } TargetPath = argv[AcpiGbl_Optind+1]; if (!ConversionTable) { /* Just generate statistics. Ignore target path */ TargetPath = SourcePath; printf ("Source code statistics only\n"); ConversionTable = &StatsConversionTable; } else if (!TargetPath) { TargetPath = SourcePath; } if (Gbl_DebugStatementsMode) { ConversionTable->SourceFunctions &= ~CVT_REMOVE_DEBUG_MACROS; } /* * Set LF only support. Note ACPI_SRC_OS_LF_ONLY indicates that newlines * are represented as LF only rather than CR/LF */ ConversionTable->Flags |= ACPI_SRC_OS_LF_ONLY; Gbl_IgnoreLoneLineFeeds = ACPI_SRC_OS_LF_ONLY; /* Check source and target paths and files */ if (AsExaminePaths (ConversionTable, SourcePath, TargetPath, &FileType)) { return (-1); } /* Source/target can be either directories or a files */ if (FileType == S_IFDIR) { /* Process the directory tree */ AsProcessTree (ConversionTable, SourcePath, TargetPath); } else { if (Gbl_CheckAscii) { AsProcessOneFile (NULL, NULL, NULL, 0, SourcePath, FILE_TYPE_SOURCE); return (0); } /* Process a single file */ /* Differentiate between source and header files */ if (strstr (SourcePath, ".h")) { AsProcessOneFile (ConversionTable, NULL, TargetPath, 0, SourcePath, FILE_TYPE_HEADER); } else if (strstr (SourcePath, ".c")) { AsProcessOneFile (ConversionTable, NULL, TargetPath, 0, SourcePath, FILE_TYPE_SOURCE); } else if (strstr (SourcePath, ".patch")) { AsProcessOneFile (ConversionTable, NULL, TargetPath, 0, SourcePath, FILE_TYPE_PATCH); } else { printf ("Unknown file type - %s\n", SourcePath); } } /* Always display final summary and stats */ AsDisplayStats (); return (0); } acpica-unix-20250404/source/tools/acpisrc/astable.c0000775000175000017500000017047614773714134021425 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: astable - Tables used for source conversion * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpisrc.h" /****************************************************************************** * * Standard/Common translation tables * ******************************************************************************/ ACPI_STRING_TABLE StandardDataTypes[] = { /* Declarations first */ {"UINT32 ", "unsigned int", REPLACE_SUBSTRINGS}, {"UINT16 ", "unsigned short", REPLACE_SUBSTRINGS}, {"UINT8 ", "unsigned char", REPLACE_SUBSTRINGS}, {"BOOLEAN ", "unsigned char", REPLACE_SUBSTRINGS}, /* Now do embedded typecasts */ {"UINT32", "unsigned int", REPLACE_SUBSTRINGS}, {"UINT16", "unsigned short", REPLACE_SUBSTRINGS}, {"UINT8", "unsigned char", REPLACE_SUBSTRINGS}, {"BOOLEAN", "unsigned char", REPLACE_SUBSTRINGS}, {"INT32 ", "int ", REPLACE_SUBSTRINGS}, {"INT32", "int", REPLACE_SUBSTRINGS}, {"INT16", "short", REPLACE_SUBSTRINGS}, {"INT8", "char", REPLACE_SUBSTRINGS}, /* Put back anything we broke (such as anything with _INT32_ in it) */ {"_int_", "_INT32_", REPLACE_SUBSTRINGS}, {"_unsigned int_", "_UINT32_", REPLACE_SUBSTRINGS}, {NULL, NULL, 0} }; /****************************************************************************** * * Linux-specific translation tables * ******************************************************************************/ char EmptyHeader[] = ""; char DualLicenseHeader[] = "/*\n" " * Copyright (C) 2000 - 2025, Intel Corp.\n" " * All rights reserved.\n" " *\n" " * Redistribution and use in source and binary forms, with or without\n" " * modification, are permitted provided that the following conditions\n" " * are met:\n" " * 1. Redistributions of source code must retain the above copyright\n" " * notice, this list of conditions, and the following disclaimer,\n" " * without modification.\n" " * 2. Redistributions in binary form must reproduce at minimum a disclaimer\n" " * substantially similar to the \"NO WARRANTY\" disclaimer below\n" " * (\"Disclaimer\") and any redistribution must be conditioned upon\n" " * including a substantially similar Disclaimer requirement for further\n" " * binary redistribution.\n" " * 3. Neither the names of the above-listed copyright holders nor the names\n" " * of any contributors may be used to endorse or promote products derived\n" " * from this software without specific prior written permission.\n" " *\n" " * Alternatively, this software may be distributed under the terms of the\n" " * GNU General Public License (\"GPL\") version 2 as published by the Free\n" " * Software Foundation.\n" " *\n" " * NO WARRANTY\n" " * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n" " * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n" " * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n" " * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n" " * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n" " * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n" " * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n" " * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n" " * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\n" " * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n" " * POSSIBILITY OF SUCH DAMAGES.\n" " */\n"; ACPI_STRING_TABLE LinuxDataTypes[] = { /* * Extra space is added after the type so there is room to add "struct", "union", * etc. when the existing struct typedefs are eliminated. */ /* Declarations first - ACPI types and standard C types */ {"INT64 ", "s64 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"UINT64 ", "u64 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"UINT32 ", "u32 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"INT32 ", "s32 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"UINT16 ", "u16 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"INT16 ", "s16 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"UINT8 ", "u8 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"BOOLEAN ", "u8 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"char ", "char ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"void ", "void ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"char * ", "char * ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"void * ", "void * ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"int ", "int ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"FILE ", "FILE ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, {"size_t ", "size_t ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C}, /* Now do embedded typecasts */ {"UINT64", "u64", REPLACE_WHOLE_WORD}, {"UINT32", "u32", REPLACE_WHOLE_WORD}, {"UINT16", "u16", REPLACE_WHOLE_WORD}, {"UINT8", "u8", REPLACE_WHOLE_WORD}, {"BOOLEAN", "u8", REPLACE_WHOLE_WORD}, {"INT64 ", "s64 ", REPLACE_WHOLE_WORD}, {"INT64", "s64", REPLACE_WHOLE_WORD}, {"INT32 ", "s32 ", REPLACE_WHOLE_WORD}, {"INT32", "s32", REPLACE_WHOLE_WORD}, {"INT16 ", "s16 ", REPLACE_WHOLE_WORD}, {"INT8 ", "s8 ", REPLACE_WHOLE_WORD}, {"INT16", "s16", REPLACE_WHOLE_WORD}, {"INT8", "s8", REPLACE_WHOLE_WORD}, {"__FUNCTION__", "__func__", REPLACE_WHOLE_WORD}, {NULL, NULL, 0} }; ACPI_TYPED_IDENTIFIER_TABLE AcpiIdentifiers[] = { {"ACPI_ADDRESS16_ATTRIBUTE", SRC_TYPE_STRUCT}, {"ACPI_ADDRESS32_ATTRIBUTE", SRC_TYPE_STRUCT}, {"ACPI_ADDRESS64_ATTRIBUTE", SRC_TYPE_STRUCT}, {"ACPI_ADDRESS_RANGE", SRC_TYPE_STRUCT}, {"ACPI_ADR_SPACE_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_ADR_SPACE_SETUP", SRC_TYPE_SIMPLE}, {"ACPI_ADR_SPACE_TYPE", SRC_TYPE_SIMPLE}, {"ACPI_AML_OPERANDS", SRC_TYPE_UNION}, {"ACPI_BIT_REGISTER_INFO", SRC_TYPE_STRUCT}, {"ACPI_BUFFER", SRC_TYPE_STRUCT}, {"ACPI_BUS_ATTRIBUTE", SRC_TYPE_STRUCT}, {"ACPI_CACHE_T", SRC_TYPE_SIMPLE}, {"ACPI_CMTABLE_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_COMMENT_ADDR_NODE", SRC_TYPE_STRUCT}, {"ACPI_COMMENT_NODE", SRC_TYPE_STRUCT}, {"ACPI_COMMON_FACS", SRC_TYPE_STRUCT}, {"ACPI_COMMON_STATE", SRC_TYPE_STRUCT}, {"ACPI_COMMON_DESCRIPTOR", SRC_TYPE_STRUCT}, {"ACPI_COMPATIBLE_ID", SRC_TYPE_STRUCT}, {"ACPI_CONNECTION_INFO", SRC_TYPE_STRUCT}, {"ACPI_CONTROL_STATE", SRC_TYPE_STRUCT}, {"ACPI_CONVERSION_TABLE", SRC_TYPE_STRUCT}, {"ACPI_CPU_FLAGS", SRC_TYPE_SIMPLE}, {"ACPI_CREATE_FIELD_INFO", SRC_TYPE_STRUCT}, {"ACPI_DATA_TABLE_MAPPING", SRC_TYPE_STRUCT}, {"ACPI_DB_ARGUMENT_INFO", SRC_TYPE_STRUCT}, {"ACPI_DB_COMMAND_HELP", SRC_TYPE_STRUCT}, {"ACPI_DB_COMMAND_INFO", SRC_TYPE_STRUCT}, {"ACPI_DB_EXECUTE_WALK", SRC_TYPE_STRUCT}, {"ACPI_DB_METHOD_INFO", SRC_TYPE_STRUCT}, {"ACPI_DEBUG_MEM_BLOCK", SRC_TYPE_STRUCT}, {"ACPI_DEBUG_MEM_HEADER", SRC_TYPE_STRUCT}, {"ACPI_DEBUG_PRINT_INFO", SRC_TYPE_STRUCT}, {"ACPI_DESCRIPTOR", SRC_TYPE_UNION}, {"ACPI_DEVICE_INFO", SRC_TYPE_STRUCT}, {"ACPI_DEVICE_WALK_INFO", SRC_TYPE_STRUCT}, {"ACPI_DMTABLE_DATA", SRC_TYPE_STRUCT}, {"ACPI_DMTABLE_INFO", SRC_TYPE_STRUCT}, {"ACPI_DMTABLE_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_EFI_FILE", SRC_TYPE_SIMPLE}, {"ACPI_EVALUATE_INFO", SRC_TYPE_STRUCT}, {"ACPI_EVENT_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_EVENT_STATUS", SRC_TYPE_SIMPLE}, {"ACPI_EVENT_TYPE", SRC_TYPE_SIMPLE}, {"ACPI_EXCEPTION_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_EXCEPTION_INFO", SRC_TYPE_STRUCT}, {"ACPI_EXDUMP_INFO", SRC_TYPE_STRUCT}, {"ACPI_EXECUTE_OP", SRC_TYPE_SIMPLE}, {"ACPI_EXECUTE_TYPE", SRC_TYPE_SIMPLE}, {"ACPI_EXTERNAL_LIST", SRC_TYPE_STRUCT}, {"ACPI_EXTERNAL_FILE", SRC_TYPE_STRUCT}, {"ACPI_FADT_INFO", SRC_TYPE_STRUCT}, {"ACPI_FADT_PM_INFO", SRC_TYPE_STRUCT}, {"ACPI_FIELD_INFO", SRC_TYPE_STRUCT}, {"ACPI_FILE_NODE", SRC_TYPE_STRUCT}, {"ACPI_FIND_CONTEXT", SRC_TYPE_STRUCT}, {"ACPI_FIXED_EVENT_HANDLER", SRC_TYPE_STRUCT}, {"ACPI_FIXED_EVENT_INFO", SRC_TYPE_STRUCT}, {"ACPI_FFH_INFO", SRC_TYPE_STRUCT}, {"ACPI_GBL_EVENT_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_GENERIC_ADDRESS", SRC_TYPE_STRUCT}, {"ACPI_GENERIC_STATE", SRC_TYPE_UNION}, {"ACPI_GET_DEVICES_INFO", SRC_TYPE_STRUCT}, {"ACPI_GLOBAL_NOTIFY_HANDLER", SRC_TYPE_STRUCT}, {"ACPI_GPE_BLOCK_INFO", SRC_TYPE_STRUCT}, {"ACPI_GPE_CALLBACK", SRC_TYPE_SIMPLE}, {"ACPI_GPE_DEVICE_INFO", SRC_TYPE_STRUCT}, {"ACPI_GPE_EVENT_INFO", SRC_TYPE_STRUCT}, {"ACPI_GPE_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_GPE_HANDLER_INFO", SRC_TYPE_STRUCT}, {"ACPI_GPE_INDEX_INFO", SRC_TYPE_STRUCT}, {"ACPI_GPE_NOTIFY_INFO", SRC_TYPE_STRUCT}, {"ACPI_GPE_REGISTER_INFO", SRC_TYPE_STRUCT}, {"ACPI_GPE_WALK_INFO", SRC_TYPE_STRUCT}, {"ACPI_GPE_XRUPT_INFO", SRC_TYPE_STRUCT}, {"ACPI_GPIO_INFO", SRC_TYPE_STRUCT}, {"ACPI_HANDLE", SRC_TYPE_SIMPLE}, {"ACPI_HANDLER_INFO", SRC_TYPE_STRUCT}, {"ACPI_INIT_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_INTERFACE_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_IDENTIFIER_TABLE", SRC_TYPE_STRUCT}, {"ACPI_INIT_WALK_INFO", SRC_TYPE_STRUCT}, {"ACPI_INTEGER", SRC_TYPE_SIMPLE}, {"ACPI_INTEGER_OVERLAY", SRC_TYPE_STRUCT}, {"ACPI_INTEGRITY_INFO", SRC_TYPE_STRUCT}, {"ACPI_INTERFACE_INFO", SRC_TYPE_STRUCT}, {"ACPI_INTERNAL_METHOD", SRC_TYPE_SIMPLE}, {"ACPI_INTERPRETER_MODE", SRC_TYPE_SIMPLE}, {"ACPI_IO_ADDRESS", SRC_TYPE_SIMPLE}, {"ACPI_IO_ATTRIBUTE", SRC_TYPE_STRUCT}, {"ACPI_LPIT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_LPIT_IO", SRC_TYPE_STRUCT}, {"ACPI_LPIT_NATIVE", SRC_TYPE_STRUCT}, {"ACPI_MEM_MAPPING", SRC_TYPE_STRUCT}, {"ACPI_MEM_SPACE_CONTEXT", SRC_TYPE_STRUCT}, {"ACPI_MEMORY_ATTRIBUTE", SRC_TYPE_STRUCT}, {"ACPI_MEMORY_LIST", SRC_TYPE_STRUCT}, {"ACPI_METHOD_LOCAL", SRC_TYPE_STRUCT}, {"ACPI_MUTEX", SRC_TYPE_SIMPLE}, {"ACPI_MUTEX_HANDLE", SRC_TYPE_SIMPLE}, {"ACPI_MUTEX_INFO", SRC_TYPE_STRUCT}, {"ACPI_NAME", SRC_TYPE_SIMPLE}, {"ACPI_NAME_INFO", SRC_TYPE_STRUCT}, {"ACPI_NAME_UNION", SRC_TYPE_UNION}, {"ACPI_NAMESPACE_NODE", SRC_TYPE_STRUCT}, {"ACPI_NAMESTRING_INFO", SRC_TYPE_STRUCT}, {"ACPI_NATIVE_INT", SRC_TYPE_SIMPLE}, {"ACPI_NATIVE_UINT", SRC_TYPE_SIMPLE}, {"ACPI_NEW_TABLE_DESC", SRC_TYPE_STRUCT}, {"ACPI_NOTIFY_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_NOTIFY_INFO", SRC_TYPE_STRUCT}, {"ACPI_NS_SEARCH_DATA", SRC_TYPE_STRUCT}, {"ACPI_OBJ_INFO_HEADER", SRC_TYPE_STRUCT}, {"ACPI_OBJECT", SRC_TYPE_UNION}, {"ACPI_OBJECT_ADDR_HANDLER", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_BANK_FIELD", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_BUFFER", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_BUFFER_FIELD", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_CACHE_LIST", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_COMMON", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_CONVERTER", SRC_TYPE_SIMPLE}, {"ACPI_OBJECT_DATA", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_DEVICE", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_EVENT", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_EXTRA", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_FIELD_COMMON", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_OBJECT_INDEX_FIELD", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_INTEGER", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_INFO", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_LIST", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_METHOD", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_MUTEX", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_NOTIFY_COMMON", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_NOTIFY_HANDLER", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_PACKAGE", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_POWER_RESOURCE", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_PROCESSOR", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_REFERENCE", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_REGION", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_REGION_FIELD", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_STRING", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_THERMAL_ZONE", SRC_TYPE_STRUCT}, {"ACPI_OBJECT_TYPE", SRC_TYPE_SIMPLE}, {"ACPI_OBJECT_TYPE8", SRC_TYPE_SIMPLE}, {"ACPI_OP_WALK_INFO", SRC_TYPE_STRUCT}, {"ACPI_OPCODE_INFO", SRC_TYPE_STRUCT}, {"ACPI_OPERAND_OBJECT", SRC_TYPE_UNION}, {"ACPI_OSD_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_OSD_EXEC_CALLBACK", SRC_TYPE_SIMPLE}, {"ACPI_OWNER_ID", SRC_TYPE_SIMPLE}, {"ACPI_PACKAGE_INFO", SRC_TYPE_STRUCT}, {"ACPI_PACKAGE_INFO2", SRC_TYPE_STRUCT}, {"ACPI_PACKAGE_INFO3", SRC_TYPE_STRUCT}, {"ACPI_PACKAGE_INFO4", SRC_TYPE_STRUCT}, {"ACPI_PARSE_DOWNWARDS", SRC_TYPE_SIMPLE}, {"ACPI_PARSE_OBJ_ASL", SRC_TYPE_STRUCT}, {"ACPI_PARSE_OBJ_COMMON", SRC_TYPE_STRUCT}, {"ACPI_PARSE_OBJ_NAMED", SRC_TYPE_STRUCT}, {"ACPI_PARSE_OBJECT", SRC_TYPE_UNION}, {"ACPI_PARSE_STATE", SRC_TYPE_STRUCT}, {"ACPI_PARSE_UPWARDS", SRC_TYPE_SIMPLE}, {"ACPI_PARSE_VALUE", SRC_TYPE_UNION}, {"ACPI_PCC_INFO", SRC_TYPE_STRUCT}, {"ACPI_PCI_DEVICE", SRC_TYPE_STRUCT}, {"ACPI_PCI_ID", SRC_TYPE_STRUCT}, {"ACPI_PCI_ROUTING_TABLE", SRC_TYPE_STRUCT}, {"ACPI_PHYSICAL_ADDRESS", SRC_TYPE_SIMPLE}, {"ACPI_PKG_CALLBACK", SRC_TYPE_SIMPLE}, {"ACPI_PKG_INFO", SRC_TYPE_STRUCT}, {"ACPI_PKG_STATE", SRC_TYPE_STRUCT}, {"ACPI_PMTT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_PNP_DEVICE_ID", SRC_TYPE_STRUCT}, {"ACPI_PNP_DEVICE_ID_LIST", SRC_TYPE_STRUCT}, {"ACPI_POINTER", SRC_TYPE_STRUCT}, {"ACPI_POINTERS", SRC_TYPE_UNION}, {"ACPI_PORT_INFO", SRC_TYPE_STRUCT}, {"ACPI_PREDEFINED_DATA", SRC_TYPE_STRUCT}, {"ACPI_PREDEFINED_INFO", SRC_TYPE_UNION}, {"ACPI_PREDEFINED_NAMES", SRC_TYPE_STRUCT}, {"ACPI_PRUNE_INFO", SRC_TYPE_STRUCT}, {"ACPI_PSCOPE_STATE", SRC_TYPE_STRUCT}, {"ACPI_RASF_PARAMETER_BLOCK", SRC_TYPE_STRUCT}, {"ACPI_RASF_PATROL_SCRUB_PARAMETER", SRC_TYPE_STRUCT}, {"ACPI_RASF_SHARED_MEMORY", SRC_TYPE_STRUCT}, {"ACPI_RAS2_PARAMETER_BLOCK", SRC_TYPE_STRUCT}, {"ACPI_RAS2_PATROL_SCRUB_PARAM", SRC_TYPE_STRUCT}, {"ACPI_RAS2_LA2PA_TRANSLATION_PARAM", SRC_TYPE_STRUCT}, {"ACPI_RAS2_SHMEM", SRC_TYPE_STRUCT}, {"ACPI_REGION_WALK_INFO", SRC_TYPE_STRUCT}, {"ACPI_REPAIR_FUNCTION", SRC_TYPE_SIMPLE}, {"ACPI_REPAIR_INFO", SRC_TYPE_STRUCT}, {"ACPI_REG_WALK_INFO", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_RESOURCE_ADDRESS", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_ADDRESS16", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_ADDRESS32", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_ADDRESS64", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_COMMON_SERIALBUS", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_CSI2_SERIALBUS", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_EXTENDED_ADDRESS64", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_ATTRIBUTE", SRC_TYPE_UNION}, {"ACPI_RESOURCE_DATA", SRC_TYPE_UNION}, {"ACPI_RESOURCE_DMA", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_END_TAG", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_EXTENDED_IRQ", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_FIXED_DMA", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_FIXED_IO", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_FIXED_MEMORY32", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_GENERIC_REGISTER", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_GPIO", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_I2C_SERIALBUS", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_INFO", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_IO", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_IRQ", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_LABEL", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_MEMORY24", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_MEMORY32", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_PIN_CONFIG", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_PIN_FUNCTION", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_PIN_GROUP", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_PIN_GROUP_CONFIG", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_PIN_GROUP_FUNCTION", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_SOURCE", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_SPI_SERIALBUS", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_START_DEPENDENT", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_TAG", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_TYPE", SRC_TYPE_SIMPLE}, {"ACPI_RESOURCE_UART_SERIALBUS", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_VENDOR", SRC_TYPE_STRUCT}, {"ACPI_RESOURCE_VENDOR_TYPED", SRC_TYPE_STRUCT}, {"ACPI_RESULT_VALUES", SRC_TYPE_STRUCT}, {"ACPI_ROUND_UP_TO_32_BIT", SRC_TYPE_SIMPLE}, {"ACPI_RSCONVERT_INFO", SRC_TYPE_STRUCT}, {"ACPI_RSDUMP_INFO", SRC_TYPE_STRUCT}, {"ACPI_RW_LOCK", SRC_TYPE_STRUCT}, {"ACPI_S3PT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_SCI_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_SCI_HANDLER_INFO", SRC_TYPE_STRUCT}, {"ACPI_SCOPE_STATE", SRC_TYPE_STRUCT}, {"ACPI_SEMAPHORE", SRC_TYPE_SIMPLE}, {"ACPI_SERIAL_INFO", SRC_TYPE_STRUCT}, {"ACPI_SIGNAL_FATAL_INFO", SRC_TYPE_STRUCT}, {"ACPI_SIMPLE_REPAIR_INFO", SRC_TYPE_STRUCT}, {"ACPI_SIZE", SRC_TYPE_SIMPLE}, {"ACPI_SLEEP_FUNCTION", SRC_TYPE_SIMPLE}, {"ACPI_SLEEP_FUNCTIONS", SRC_TYPE_STRUCT}, {"ACPI_SPINLOCK", SRC_TYPE_SIMPLE}, {"ACPI_STATISTICS", SRC_TYPE_STRUCT}, {"ACPI_STATUS", SRC_TYPE_SIMPLE}, {"ACPI_STRING", SRC_TYPE_SIMPLE}, {"ACPI_STRING_TABLE", SRC_TYPE_STRUCT}, {"ACPI_SUBTABLE_HEADER", SRC_TYPE_STRUCT}, {"ACPI_SUBTBL_HDR_16", SRC_TYPE_STRUCT}, {"ACPI_SYSTEM_INFO", SRC_TYPE_STRUCT}, {"ACPI_TABLE_DESC", SRC_TYPE_STRUCT}, {"ACPI_TABLE_HANDLER", SRC_TYPE_SIMPLE}, {"ACPI_TABLE_HEADER", SRC_TYPE_STRUCT}, {"ACPI_TABLE_INFO", SRC_TYPE_STRUCT}, {"ACPI_TABLE_LIST", SRC_TYPE_STRUCT}, {"ACPI_TABLE_LPIT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_SUPPORT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_TYPE", SRC_TYPE_SIMPLE}, {"ACPI_TAG_INFO", SRC_TYPE_STRUCT}, {"ACPI_THREAD_ID", SRC_TYPE_SIMPLE}, {"ACPI_THREAD_STATE", SRC_TYPE_STRUCT}, {"ACPI_TRACE_EVENT_TYPE", SRC_TYPE_SIMPLE}, {"ACPI_TYPED_IDENTIFIER_TABLE", SRC_TYPE_STRUCT}, {"ACPI_UINTPTR_T", SRC_TYPE_SIMPLE}, {"ACPI_UPDATE_STATE", SRC_TYPE_STRUCT}, {"ACPI_UUID", SRC_TYPE_STRUCT}, {"ACPI_VENDOR_UUID", SRC_TYPE_STRUCT}, {"ACPI_VENDOR_WALK_INFO", SRC_TYPE_STRUCT}, {"ACPI_WALK_AML_CALLBACK", SRC_TYPE_SIMPLE}, {"ACPI_WALK_CALLBACK", SRC_TYPE_SIMPLE}, {"ACPI_WALK_RESOURCE_CALLBACK", SRC_TYPE_SIMPLE}, {"ACPI_WALK_INFO", SRC_TYPE_STRUCT}, {"ACPI_WALK_STATE", SRC_TYPE_STRUCT}, {"ACPI_WHEA_HEADER", SRC_TYPE_STRUCT}, /* Buffers related to predefined ACPI names (_PLD, etc.) */ {"ACPI_FDE_INFO", SRC_TYPE_STRUCT}, {"ACPI_GRT_INFO", SRC_TYPE_STRUCT}, {"ACPI_GTM_INFO", SRC_TYPE_STRUCT}, {"ACPI_PLD_INFO", SRC_TYPE_STRUCT}, /* Resources */ {"ACPI_RS_LENGTH", SRC_TYPE_SIMPLE}, {"ACPI_RSDESC_SIZE", SRC_TYPE_SIMPLE}, {"AML_RESOURCE", SRC_TYPE_UNION}, {"AML_RESOURCE_ADDRESS", SRC_TYPE_STRUCT}, {"AML_RESOURCE_ADDRESS16", SRC_TYPE_STRUCT}, {"AML_RESOURCE_ADDRESS32", SRC_TYPE_STRUCT}, {"AML_RESOURCE_ADDRESS64", SRC_TYPE_STRUCT}, {"AML_RESOURCE_COMMON_SERIALBUS", SRC_TYPE_STRUCT}, {"AML_RESOURCE_CSI2_SERIALBUS", SRC_TYPE_STRUCT}, {"AML_RESOURCE_DMA", SRC_TYPE_STRUCT}, {"AML_RESOURCE_END_DEPENDENT", SRC_TYPE_STRUCT}, {"AML_RESOURCE_END_TAG", SRC_TYPE_STRUCT}, {"AML_RESOURCE_EXTENDED_ADDRESS64", SRC_TYPE_STRUCT}, {"AML_RESOURCE_EXTENDED_IRQ", SRC_TYPE_STRUCT}, {"AML_RESOURCE_FIXED_DMA", SRC_TYPE_STRUCT}, {"AML_RESOURCE_FIXED_IO", SRC_TYPE_STRUCT}, {"AML_RESOURCE_FIXED_MEMORY32", SRC_TYPE_STRUCT}, {"AML_RESOURCE_GENERIC_REGISTER", SRC_TYPE_STRUCT}, {"AML_RESOURCE_GPIO", SRC_TYPE_STRUCT}, {"AML_RESOURCE_IO", SRC_TYPE_STRUCT}, {"AML_RESOURCE_I2C_SERIALBUS", SRC_TYPE_STRUCT}, {"AML_RESOURCE_IRQ", SRC_TYPE_STRUCT}, {"AML_RESOURCE_IRQ_NOFLAGS", SRC_TYPE_STRUCT}, {"AML_RESOURCE_LARGE_HEADER", SRC_TYPE_STRUCT}, {"AML_RESOURCE_MEMORY24", SRC_TYPE_STRUCT}, {"AML_RESOURCE_MEMORY32", SRC_TYPE_STRUCT}, {"AML_RESOURCE_PIN_CONFIG", SRC_TYPE_STRUCT}, {"AML_RESOURCE_PIN_FUNCTION", SRC_TYPE_STRUCT}, {"AML_RESOURCE_PIN_GROUP", SRC_TYPE_STRUCT}, {"AML_RESOURCE_PIN_GROUP_CONFIG", SRC_TYPE_STRUCT}, {"AML_RESOURCE_PIN_GROUP_FUNCTION", SRC_TYPE_STRUCT}, {"AML_RESOURCE_SMALL_HEADER", SRC_TYPE_STRUCT}, {"AML_RESOURCE_SPI_SERIALBUS", SRC_TYPE_STRUCT}, {"AML_RESOURCE_START_DEPENDENT", SRC_TYPE_STRUCT}, {"AML_RESOURCE_START_DEPENDENT_NOPRIO", SRC_TYPE_STRUCT}, {"AML_RESOURCE_UART_SERIALBUS", SRC_TYPE_STRUCT}, {"AML_RESOURCE_VENDOR_LARGE", SRC_TYPE_STRUCT}, {"AML_RESOURCE_VENDOR_SMALL", SRC_TYPE_STRUCT}, {"AS_BRACE_INFO", SRC_TYPE_STRUCT}, {"AS_SCAN_CALLBACK", SRC_TYPE_SIMPLE}, {"APIC_HEADER", SRC_TYPE_STRUCT}, {"AE_DEBUG_REGIONS", SRC_TYPE_STRUCT}, {"AE_REGION", SRC_TYPE_STRUCT}, {"ASL_ANALYSIS_WALK_INFO", SRC_TYPE_STRUCT}, {"ASL_CACHE_INFO", SRC_TYPE_STRUCT}, {"ASL_COMMENT_STATE", SRC_TYPE_STRUCT}, {"ASL_COMMENT_TYPES", SRC_TYPE_SIMPLE}, {"ASL_ERROR_MSG", SRC_TYPE_STRUCT}, {"ASL_EVENT_INFO", SRC_TYPE_STRUCT}, {"ASL_EXPECTED_MESSAGE", SRC_TYPE_STRUCT}, {"ASL_EXPECTED_MSG_NODE", SRC_TYPE_STRUCT}, {"ASL_FILE_DESC", SRC_TYPE_STRUCT}, {"ASL_FILE_INFO", SRC_TYPE_STRUCT}, {"ASL_FILE_NODE", SRC_TYPE_STRUCT}, {"ASL_FILE_STATUS", SRC_TYPE_STRUCT}, {"ASL_FILE_TYPES", SRC_TYPE_STRUCT}, {"ASL_GLOBAL_FILE_NODE", SRC_TYPE_STRUCT}, {"ASL_INCLUDE_DIR", SRC_TYPE_STRUCT}, {"ASL_LISTING_NODE", SRC_TYPE_STRUCT}, {"ASL_LOCATION_NODE", SRC_TYPE_STRUCT}, {"ASL_MAPPING_ENTRY", SRC_TYPE_STRUCT}, {"ASL_METHOD_INFO", SRC_TYPE_STRUCT}, {"ASL_METHOD_LOCAL", SRC_TYPE_STRUCT}, {"ASL_RESERVED_INFO", SRC_TYPE_STRUCT}, {"ASL_RESOURCE_INFO", SRC_TYPE_STRUCT}, {"ASL_RESOURCE_NODE", SRC_TYPE_STRUCT}, {"ASL_WALK_CALLBACK", SRC_TYPE_SIMPLE}, {"ASL_XREF_INFO", SRC_TYPE_STRUCT}, {"UINT64_OVERLAY", SRC_TYPE_UNION}, {"UINT64_STRUCT", SRC_TYPE_STRUCT}, /* * Acpi table definition names. */ {"ACPI_TABLE_AEST", SRC_TYPE_STRUCT}, {"ACPI_TABLE_AGDI", SRC_TYPE_STRUCT}, {"ACPI_TABLE_ASF", SRC_TYPE_STRUCT}, {"ACPI_TABLE_BDAT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_BERT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_BGRT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_BOOT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_CCEL", SRC_TYPE_STRUCT}, {"ACPI_TABLE_CDAT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_CEDT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_CPEP", SRC_TYPE_STRUCT}, {"ACPI_TABLE_CSRT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_DBG2", SRC_TYPE_STRUCT}, {"ACPI_TABLE_DBGP", SRC_TYPE_STRUCT}, {"ACPI_TABLE_DMAR", SRC_TYPE_STRUCT}, {"ACPI_TABLE_DRTM", SRC_TYPE_STRUCT}, {"ACPI_TABLE_ECDT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_EINJ", SRC_TYPE_STRUCT}, {"ACPI_TABLE_ERDT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_ERST", SRC_TYPE_STRUCT}, {"ACPI_TABLE_FACS", SRC_TYPE_STRUCT}, {"ACPI_TABLE_FADT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_FPDT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_GTDT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_HEST", SRC_TYPE_STRUCT}, {"ACPI_TABLE_HMAT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_HPET", SRC_TYPE_STRUCT}, {"ACPI_TABLE_IBFT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_IORT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_IVRS", SRC_TYPE_STRUCT}, {"ACPI_TABLE_MADT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_MCFG", SRC_TYPE_STRUCT}, {"ACPI_TABLE_MCHI", SRC_TYPE_STRUCT}, {"ACPI_TABLE_MPAM", SRC_TYPE_STRUCT}, {"ACPI_TABLE_MPST", SRC_TYPE_STRUCT}, {"ACPI_TABLE_MRRM", SRC_TYPE_STRUCT}, {"ACPI_TABLE_MSCT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_MSDM", SRC_TYPE_STRUCT}, {"ACPI_TABLE_NFIT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_NHLT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_PCCT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_PDTT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_PHAT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_PMTT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_PPTT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_PRMT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_RGRT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_RSDP", SRC_TYPE_STRUCT}, {"ACPI_TABLE_RSDT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_S3PT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_SBST", SRC_TYPE_STRUCT}, {"ACPI_TABLE_SDEV", SRC_TYPE_STRUCT}, {"ACPI_TABLE_SVKL", SRC_TYPE_STRUCT}, {"ACPI_TABLE_SLIC", SRC_TYPE_STRUCT}, {"ACPI_TABLE_SLIT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_SPCR", SRC_TYPE_STRUCT}, {"ACPI_TABLE_SPMI", SRC_TYPE_STRUCT}, {"ACPI_TABLE_SRAT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_STAO", SRC_TYPE_STRUCT}, {"ACPI_TABLE_TCPA", SRC_TYPE_STRUCT}, {"ACPI_TABLE_TDEL", SRC_TYPE_STRUCT}, {"ACPI_TABLE_TPM2", SRC_TYPE_STRUCT}, {"ACPI_TABLE_TPM23", SRC_TYPE_STRUCT}, {"ACPI_TABLE_UEFI", SRC_TYPE_STRUCT}, {"ACPI_TABLE_VIOT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_WAET", SRC_TYPE_STRUCT}, {"ACPI_TABLE_WDAT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_WDDT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_WDRT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_WPBT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_WSMT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_XENV", SRC_TYPE_STRUCT}, {"ACPI_TABLE_XSDT", SRC_TYPE_STRUCT}, /* Individual per-table names (typically subtables) */ {"ACPI_AEST_GIC", SRC_TYPE_STRUCT}, {"ACPI_AEST_HEADER", SRC_TYPE_STRUCT}, {"ACPI_AEST_MEMORY", SRC_TYPE_STRUCT}, {"ACPI_AEST_NODE_INTERFACE", SRC_TYPE_STRUCT}, {"ACPI_AEST_NODE_INTERRUPT", SRC_TYPE_STRUCT}, {"ACPI_AEST_NODE_INTERRUPT_V2", SRC_TYPE_STRUCT}, {"ACPI_AEST_PROCESSOR", SRC_TYPE_STRUCT}, {"ACPI_AEST_PROCESSOR_CACHE", SRC_TYPE_STRUCT}, {"ACPI_AEST_PROCESSOR_GENERIC", SRC_TYPE_STRUCT}, {"ACPI_AEST_PROCESSOR_TLB", SRC_TYPE_STRUCT}, {"ACPI_AEST_SMMU", SRC_TYPE_STRUCT}, {"ACPI_AEST_VENDOR", SRC_TYPE_STRUCT}, {"ACPI_AEST_VENDOR_V2", SRC_TYPE_STRUCT}, {"ACPI_ASF_ADDRESS", SRC_TYPE_STRUCT}, {"ACPI_ASF_ALERT", SRC_TYPE_STRUCT}, {"ACPI_ASF_ALERT_DATA", SRC_TYPE_STRUCT}, {"ACPI_ASF_CONTROL_DATA", SRC_TYPE_STRUCT}, {"ACPI_ASF_HEADER", SRC_TYPE_STRUCT}, {"ACPI_ASF_INFO", SRC_TYPE_STRUCT}, {"ACPI_ASF_REMOTE", SRC_TYPE_STRUCT}, {"ACPI_ASF_RMCP", SRC_TYPE_STRUCT}, {"ACPI_BERT_REGION", SRC_TYPE_STRUCT}, {"ACPI_CEDT_CHBS", SRC_TYPE_STRUCT}, {"ACPI_CEDT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_CPEP_POLLING", SRC_TYPE_STRUCT}, {"ACPI_CSRT_GROUP", SRC_TYPE_STRUCT}, {"ACPI_CSRT_DESCRIPTOR", SRC_TYPE_STRUCT}, {"ACPI_CSRT_SHARED_INFO", SRC_TYPE_STRUCT}, {"ACPI_DBG2_DEVICE", SRC_TYPE_STRUCT}, {"ACPI_DMAR_HEADER", SRC_TYPE_STRUCT}, {"ACPI_DMAR_DEVICE_SCOPE", SRC_TYPE_STRUCT}, {"ACPI_DMAR_ANDD", SRC_TYPE_STRUCT}, {"ACPI_DMAR_ATSR", SRC_TYPE_STRUCT}, {"ACPI_DMAR_RHSA", SRC_TYPE_STRUCT}, {"ACPI_DMAR_HARDWARE_UNIT", SRC_TYPE_STRUCT}, {"ACPI_DMAR_RESERVED_MEMORY", SRC_TYPE_STRUCT}, {"ACPI_DRTM_DPS_ID", SRC_TYPE_STRUCT}, {"ACPI_DRTM_RESOURCE", SRC_TYPE_STRUCT}, {"ACPI_DRTM_RESOURCE_LIST", SRC_TYPE_STRUCT}, {"ACPI_DRTM_VTABLE_LIST", SRC_TYPE_STRUCT}, {"ACPI_EINJ_ENTRY", SRC_TYPE_STRUCT}, {"ACPI_EINJ_TRIGGER", SRC_TYPE_STRUCT}, {"ACPI_ERDT_RMDD", SRC_TYPE_STRUCT}, {"ACPI_ERDT_CACD", SRC_TYPE_STRUCT}, {"ACPI_ERDT_DACD", SRC_TYPE_STRUCT}, {"ACPI_ERDT_DACD_PATHS", SRC_TYPE_STRUCT}, {"ACPI_ERDT_CMRC", SRC_TYPE_STRUCT}, {"ACPI_ERDT_MMRC", SRC_TYPE_STRUCT}, {"ACPI_ERDT_MARC", SRC_TYPE_STRUCT}, {"ACPI_ERDT_CARC", SRC_TYPE_STRUCT}, {"ACPI_ERDT_CMRD", SRC_TYPE_STRUCT}, {"ACPI_ERDT_IBRD", SRC_TYPE_STRUCT}, {"ACPI_ERDT_IBAD", SRC_TYPE_STRUCT}, {"ACPI_ERDT_CARD", SRC_TYPE_STRUCT}, {"ACPI_ERST_ENTRY", SRC_TYPE_STRUCT}, {"ACPI_ERST_INFO", SRC_TYPE_STRUCT}, {"ACPI_FPDT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_FPDT_BOOT", SRC_TYPE_STRUCT}, {"ACPI_FPDT_BOOT_POINTER", SRC_TYPE_STRUCT}, {"ACPI_FPDT_S3PT_POINTER", SRC_TYPE_STRUCT}, {"ACPI_GTDT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_GTDT_TIMER_BLOCK", SRC_TYPE_STRUCT}, {"ACPI_GTDT_TIMER_ENTRY", SRC_TYPE_STRUCT}, {"ACPI_GTDT_WATCHDOG", SRC_TYPE_STRUCT}, {"ACPI_HEST_AER_COMMON", SRC_TYPE_STRUCT}, {"ACPI_HEST_HEADER", SRC_TYPE_STRUCT}, {"ACPI_HEST_NOTIFY", SRC_TYPE_STRUCT}, {"ACPI_HEST_IA_ERROR_BANK", SRC_TYPE_STRUCT}, {"ACPI_HEST_IA_MACHINE_CHECK", SRC_TYPE_STRUCT}, {"ACPI_HEST_IA_CORRECTED", SRC_TYPE_STRUCT}, {"ACPI_HEST_IA_NMI", SRC_TYPE_STRUCT}, {"ACPI_HEST_AER_ROOT", SRC_TYPE_STRUCT}, {"ACPI_HEST_AER", SRC_TYPE_STRUCT}, {"ACPI_HEST_AER_BRIDGE", SRC_TYPE_STRUCT}, {"ACPI_HEST_GENERIC", SRC_TYPE_STRUCT}, {"ACPI_HEST_GENERIC_V2", SRC_TYPE_STRUCT}, {"ACPI_HEST_GENERIC_STATUS", SRC_TYPE_STRUCT}, {"ACPI_HEST_GENERIC_DATA", SRC_TYPE_STRUCT}, {"ACPI_HEST_GENERIC_DATA_V300", SRC_TYPE_STRUCT}, {"ACPI_HEST_IA_DEFERRED_CHECK", SRC_TYPE_STRUCT}, {"ACPI_HMAT_PROXIMITY_DOMAIN", SRC_TYPE_STRUCT}, {"ACPI_HMAT_CACHE", SRC_TYPE_STRUCT}, {"ACPI_HMAT_LOCALITY", SRC_TYPE_STRUCT}, {"ACPI_HMAT_STRUCTURE", SRC_TYPE_STRUCT}, {"ACPI_IBFT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_IBFT_CONTROL", SRC_TYPE_STRUCT}, {"ACPI_IBFT_INITIATOR", SRC_TYPE_STRUCT}, {"ACPI_IBFT_NIC", SRC_TYPE_STRUCT}, {"ACPI_IBFT_TARGET", SRC_TYPE_STRUCT}, {"ACPI_IORT_ID_MAPPING", SRC_TYPE_STRUCT}, {"ACPI_IORT_ITS_GROUP", SRC_TYPE_STRUCT}, {"ACPI_IORT_MEMORY_ACCESS", SRC_TYPE_STRUCT}, {"ACPI_IORT_NAMED_COMPONENT", SRC_TYPE_STRUCT}, {"ACPI_IORT_NODE", SRC_TYPE_STRUCT}, {"ACPI_IORT_ROOT_COMPLEX", SRC_TYPE_STRUCT}, {"ACPI_IORT_SMMU", SRC_TYPE_STRUCT}, {"ACPI_IORT_SMMU_GSI", SRC_TYPE_STRUCT}, {"ACPI_IORT_SMMU_V3", SRC_TYPE_STRUCT}, {"ACPI_IORT_PMCG", SRC_TYPE_STRUCT}, {"ACPI_IORT_RMR", SRC_TYPE_STRUCT}, {"ACPI_IORT_RMR_DESC", SRC_TYPE_STRUCT}, {"ACPI_IVRS_HEADER", SRC_TYPE_STRUCT}, {"ACPI_IVRS_HARDWARE", SRC_TYPE_STRUCT}, {"ACPI_IVRS_DE_HEADER", SRC_TYPE_STRUCT}, {"ACPI_IVRS_DEVICE4", SRC_TYPE_STRUCT}, {"ACPI_IVRS_DEVICE8A", SRC_TYPE_STRUCT}, {"ACPI_IVRS_DEVICE8B", SRC_TYPE_STRUCT}, {"ACPI_IVRS_DEVICE8C", SRC_TYPE_STRUCT}, {"ACPI_IVRS_MEMORY", SRC_TYPE_STRUCT}, {"ACPI_MADT_ADDRESS_OVERRIDE", SRC_TYPE_STRUCT}, {"ACPI_MADT_GENERIC_MSI_FRAME", SRC_TYPE_STRUCT}, {"ACPI_MADT_GENERIC_REDISTRIBUTOR", SRC_TYPE_STRUCT}, {"ACPI_MADT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_MADT_IO_APIC", SRC_TYPE_STRUCT}, {"ACPI_MADT_IO_SAPIC", SRC_TYPE_STRUCT}, {"ACPI_MADT_LOCAL_APIC", SRC_TYPE_STRUCT}, {"ACPI_MADT_LOCAL_APIC_NMI", SRC_TYPE_STRUCT}, {"ACPI_MADT_LOCAL_APIC_OVERRIDE", SRC_TYPE_STRUCT}, {"ACPI_MADT_LOCAL_SAPIC", SRC_TYPE_STRUCT}, {"ACPI_MADT_LOCAL_X2APIC", SRC_TYPE_STRUCT}, {"ACPI_MADT_LOCAL_X2APIC_NMI", SRC_TYPE_STRUCT}, {"ACPI_MADT_GENERIC_DISTRIBUTOR", SRC_TYPE_STRUCT}, {"ACPI_MADT_GENERIC_INTERRUPT", SRC_TYPE_STRUCT}, {"ACPI_MADT_INTERRUPT_OVERRIDE", SRC_TYPE_STRUCT}, {"ACPI_MADT_INTERRUPT_SOURCE", SRC_TYPE_STRUCT}, {"ACPI_MADT_NMI_SOURCE", SRC_TYPE_STRUCT}, {"ACPI_MADT_MULTIPROC_WAKEUP", SRC_TYPE_STRUCT}, {"ACPI_MADT_MULTIPROC_WAKEUP_MAILBOX", SRC_TYPE_STRUCT}, {"ACPI_MADT_PROCESSOR_APIC", SRC_TYPE_STRUCT}, {"ACPI_MCFG_ALLOCATION", SRC_TYPE_STRUCT}, {"ACPI_MPAM_MSC_NODE", SRC_TYPE_STRUCT}, {"ACPI_MPAM_RESOURCE_LOCATOR", SRC_TYPE_STRUCT}, {"ACPI_MPAM_RESOURCE_NODE", SRC_TYPE_STRUCT}, {"ACPI_MRRM_MEM_RANGE_ENTRY", SRC_TYPE_STRUCT}, {"ACPI_MPST_COMPONENT", SRC_TYPE_STRUCT}, {"ACPI_MPST_DATA_HDR", SRC_TYPE_STRUCT}, {"ACPI_MPST_POWER_DATA", SRC_TYPE_STRUCT}, {"ACPI_MPST_POWER_NODE", SRC_TYPE_STRUCT}, {"ACPI_MPST_POWER_STATE", SRC_TYPE_STRUCT}, {"ACPI_MSCT_PROXIMITY", SRC_TYPE_STRUCT}, {"ACPI_NFIT_CAPABILITIES", SRC_TYPE_STRUCT}, {"ACPI_NFIT_CONTROL_REGION", SRC_TYPE_STRUCT}, {"ACPI_NFIT_DATA_REGION", SRC_TYPE_STRUCT}, {"ACPI_NFIT_DEVICE_HANDLE", SRC_TYPE_STRUCT}, {"ACPI_NFIT_FLUSH_ADDRESS", SRC_TYPE_STRUCT}, {"ACPI_NFIT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_NFIT_INTERLEAVE", SRC_TYPE_STRUCT}, {"ACPI_NFIT_MEMORY_MAP", SRC_TYPE_STRUCT}, {"ACPI_NFIT_SMBIOS", SRC_TYPE_STRUCT}, {"ACPI_NFIT_SYSTEM_ADDRESS", SRC_TYPE_STRUCT}, {"ACPI_NHLT_ENDPOINT", SRC_TYPE_STRUCT}, {"ACPI_NHLT_CONFIG", SRC_TYPE_STRUCT}, {"ACPI_NHLT_GENDEVICE_CONFIG", SRC_TYPE_STRUCT}, {"ACPI_NHLT_MICDEVICE_CONFIG", SRC_TYPE_STRUCT}, {"ACPI_NHLT_VENDOR_MIC_CONFIG", SRC_TYPE_STRUCT}, {"ACPI_NHLT_VENDOR_MICDEVICE_CONFIG", SRC_TYPE_STRUCT}, {"ACPI_NHLT_DEVICE_CONFIG", SRC_TYPE_UNION}, {"ACPI_NHLT_WAVE_FORMATEXT", SRC_TYPE_STRUCT}, {"ACPI_NHLT_FORMAT_CONFIG", SRC_TYPE_STRUCT}, {"ACPI_NHLT_FORMATS_CONFIG", SRC_TYPE_STRUCT}, {"ACPI_NHLT_DEVICE_INFO", SRC_TYPE_STRUCT}, {"ACPI_NHLT_DEVICES_INFO", SRC_TYPE_STRUCT}, {"ACPI_PCCT_EXT_PCC_SHARED_MEMORY", SRC_TYPE_STRUCT}, {"ACPI_PCCT_HW_REDUCED", SRC_TYPE_STRUCT}, {"ACPI_PCCT_HW_REDUCED_TYPE2", SRC_TYPE_STRUCT}, {"ACPI_PCCT_EXT_PCC_MASTER", SRC_TYPE_STRUCT}, {"ACPI_PCCT_EXT_PCC_SLAVE", SRC_TYPE_STRUCT}, {"ACPI_PCCT_HW_REG", SRC_TYPE_STRUCT}, {"ACPI_PCCT_SHARED_MEMORY", SRC_TYPE_STRUCT}, {"ACPI_PCCT_SUBSPACE", SRC_TYPE_STRUCT}, {"ACPI_PDTT_CHANNEL", SRC_TYPE_STRUCT}, {"ACPI_PHAT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_PHAT_VERSION_DATA", SRC_TYPE_STRUCT}, {"ACPI_PHAT_VERSION_ELEMENT", SRC_TYPE_STRUCT}, {"ACPI_PHAT_HEALTH_DATA", SRC_TYPE_STRUCT}, {"ACPI_PMTT_CONTROLLER", SRC_TYPE_STRUCT}, {"ACPI_PMTT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_PMTT_PHYSICAL_COMPONENT", SRC_TYPE_STRUCT}, {"ACPI_PMTT_SOCKET", SRC_TYPE_STRUCT}, {"ACPI_PMTT_VENDOR_SPECIFIC", SRC_TYPE_STRUCT}, {"ACPI_PPTT_CACHE", SRC_TYPE_STRUCT}, {"ACPI_PPTT_CACHE_V1", SRC_TYPE_STRUCT}, {"ACPI_PPTT_ID", SRC_TYPE_STRUCT}, {"ACPI_PPTT_PROCESSOR", SRC_TYPE_STRUCT}, {"ACPI_TABLE_PRMT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_PRMT_MODULE_HEADER", SRC_TYPE_STRUCT}, {"ACPI_PRMT_MODULE_INFO", SRC_TYPE_STRUCT}, {"ACPI_PRMT_HANDLER_INFO", SRC_TYPE_STRUCT}, {"ACPI_RSDP_COMMON", SRC_TYPE_STRUCT}, {"ACPI_RSDP_EXTENSION", SRC_TYPE_STRUCT}, {"ACPI_S3PT_RESUME", SRC_TYPE_STRUCT}, {"ACPI_S3PT_SUSPEND", SRC_TYPE_STRUCT}, {"ACPI_SDEV_HEADER", SRC_TYPE_STRUCT}, {"ACPI_SDEV_NAMESPACE", SRC_TYPE_STRUCT}, {"ACPI_SDEV_PCIE", SRC_TYPE_STRUCT}, {"ACPI_SDEV_PCIE_PATH", SRC_TYPE_STRUCT}, {"ACPI_SVKL_KEY", SRC_TYPE_STRUCT}, {"ACPI_SRAT_CPU_AFFINITY", SRC_TYPE_STRUCT}, {"ACPI_SRAT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_SRAT_GIC_ITS_AFFINITY", SRC_TYPE_STRUCT}, {"ACPI_SRAT_GICC_AFFINITY", SRC_TYPE_STRUCT}, {"ACPI_SRAT_GENERIC_AFFINITY", SRC_TYPE_STRUCT}, {"ACPI_SRAT_MEM_AFFINITY", SRC_TYPE_STRUCT}, {"ACPI_SRAT_X2APIC_CPU_AFFINITY", SRC_TYPE_STRUCT}, {"ACPI_SRAT_RINTC_AFFINITY", SRC_TYPE_STRUCT}, {"ACPI_TABLE_TCPA_CLIENT", SRC_TYPE_STRUCT}, {"ACPI_TABLE_TCPA_SERVER", SRC_TYPE_STRUCT}, {"ACPI_TPM2_TRAILER", SRC_TYPE_STRUCT}, {"ACPI_TPM23_TRAILER", SRC_TYPE_STRUCT}, {"ACPI_TPM2_ARM_SMC", SRC_TYPE_STRUCT}, {"ACPI_VIOT_HEADER", SRC_TYPE_STRUCT}, {"ACPI_VIOT_PCI_RANGE", SRC_TYPE_STRUCT}, {"ACPI_VIOT_MMIO", SRC_TYPE_STRUCT}, {"ACPI_VIOT_VIRTIO_IOMMU_PCI", SRC_TYPE_STRUCT}, {"ACPI_VIOT_VIRTIO_IOMMU_MMIO", SRC_TYPE_STRUCT}, {"ACPI_WDAT_ENTRY", SRC_TYPE_STRUCT}, {"ACPI_WPBT_UNICODE", SRC_TYPE_STRUCT}, /* Data Table compiler */ {"DT_FIELD", SRC_TYPE_STRUCT}, {"DT_SUBTABLE", SRC_TYPE_STRUCT}, {"DT_WALK_CALLBACK", SRC_TYPE_SIMPLE}, /* iASL preprocessor */ {"PR_DEFINE_INFO", SRC_TYPE_STRUCT}, {"PR_DIRECTIVE_INFO", SRC_TYPE_STRUCT}, {"PR_FILE_NODE", SRC_TYPE_STRUCT}, {"PR_LINE_MAPPING", SRC_TYPE_STRUCT}, {"PR_MACRO_ARG", SRC_TYPE_STRUCT}, {"PR_OPERATOR_INFO", SRC_TYPE_STRUCT}, /* AcpiDump utility */ {"AP_DUMP_ACTION", SRC_TYPE_STRUCT}, /* AcpiHelp utility */ {"AH_AML_OPCODE", SRC_TYPE_STRUCT}, {"AH_ASL_OPERATOR", SRC_TYPE_STRUCT}, {"AH_ASL_KEYWORD", SRC_TYPE_STRUCT}, {"AH_DEVICE_ID", SRC_TYPE_STRUCT}, {"AH_PREDEFINED_NAME", SRC_TYPE_STRUCT}, {"AH_TABLE", SRC_TYPE_STRUCT}, {"AH_UUID", SRC_TYPE_STRUCT}, /* AcpiXtract utility */ {"AX_TABLE_INFO", SRC_TYPE_STRUCT}, /* OS service layers */ {"EXTERNAL_FIND_INFO", SRC_TYPE_STRUCT}, {"OSL_TABLE_INFO", SRC_TYPE_STRUCT}, {NULL, 0} }; ACPI_IDENTIFIER_TABLE LinuxAddStruct[] = { {"acpi_namespace_node"}, {"acpi_parse_object"}, {"acpi_table_desc"}, {"acpi_walk_state"}, {NULL} }; ACPI_IDENTIFIER_TABLE LinuxEliminateLines_C[] = { {"#define __"}, {NULL} }; ACPI_IDENTIFIER_TABLE LinuxEliminateLines_H[] = { {NULL} }; ACPI_IDENTIFIER_TABLE LinuxConditionalIdentifiers[] = { /* {"ACPI_USE_STANDARD_HEADERS"}, */ {"WIN32"}, {"_MSC_VER"}, {NULL} }; ACPI_STRING_TABLE LinuxSpecialStrings[] = { /* Include file paths */ {"\"acpi.h\"", "", REPLACE_WHOLE_WORD}, {"\"acpiosxf.h\"", "", REPLACE_WHOLE_WORD}, {"\"acpixf.h\"", "", REPLACE_WHOLE_WORD}, {"\"acbuffer.h\"", "", REPLACE_WHOLE_WORD}, {"\"acconfig.h\"", "", REPLACE_WHOLE_WORD}, {"\"acexcep.h\"", "", REPLACE_WHOLE_WORD}, {"\"acnames.h\"", "", REPLACE_WHOLE_WORD}, {"\"acoutput.h\"", "", REPLACE_WHOLE_WORD}, {"\"acrestyp.h\"", "", REPLACE_WHOLE_WORD}, {"\"actbl.h\"", "", REPLACE_WHOLE_WORD}, {"\"actbl1.h\"", "", REPLACE_WHOLE_WORD}, {"\"actbl2.h\"", "", REPLACE_WHOLE_WORD}, {"\"actbl3.h\"", "", REPLACE_WHOLE_WORD}, {"\"actypes.h\"", "", REPLACE_WHOLE_WORD}, {"\"platform/acenv.h\"", "", REPLACE_WHOLE_WORD}, {"\"platform/acenvex.h\"", "", REPLACE_WHOLE_WORD}, {"\"acgcc.h\"", "", REPLACE_WHOLE_WORD}, {"\"acintel.h\"", "", REPLACE_WHOLE_WORD}, {"\"aclinux.h\"", "", REPLACE_WHOLE_WORD}, {"\"aclinuxex.h\"", "", REPLACE_WHOLE_WORD}, {NULL, NULL, 0} }; ACPI_IDENTIFIER_TABLE LinuxSpecialMacros[] = { {"ACPI_DBG_DEPENDENT_RETURN_VOID"}, {"ACPI_EXPORT_SYMBOL"}, {"ACPI_EXPORT_SYMBOL_INIT"}, {"ACPI_EXTERNAL_RETURN_OK"}, {"ACPI_EXTERNAL_RETURN_PTR"}, {"ACPI_EXTERNAL_RETURN_STATUS"}, {"ACPI_EXTERNAL_RETURN_UINT32"}, {"ACPI_EXTERNAL_RETURN_VOID"}, {"ACPI_HW_DEPENDENT_RETURN_OK"}, {"ACPI_HW_DEPENDENT_RETURN_STATUS"}, {"ACPI_HW_DEPENDENT_RETURN_VOID"}, {"ACPI_MSG_DEPENDENT_RETURN_VOID"}, {NULL} }; ACPI_CONVERSION_TABLE LinuxConversionTable = { EmptyHeader, FLG_NO_CARRIAGE_RETURNS | FLG_LOWERCASE_DIRNAMES, AcpiIdentifiers, /* C source files */ "// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0\n", LinuxDataTypes, LinuxEliminateLines_C, NULL, NULL, AcpiIdentifiers, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_CHECK_BRACES | CVT_TRIM_LINES | CVT_BRACES_ON_SAME_LINE | CVT_MIXED_CASE_TO_UNDERSCORES | CVT_LOWER_CASE_IDENTIFIERS | CVT_REMOVE_DEBUG_MACROS | CVT_TRIM_WHITESPACE | CVT_REMOVE_EMPTY_BLOCKS | CVT_SPACES_TO_TABS8), /* C header files */ "/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */\n", LinuxDataTypes, LinuxEliminateLines_H, LinuxConditionalIdentifiers, NULL, AcpiIdentifiers, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_TRIM_LINES | CVT_MIXED_CASE_TO_UNDERSCORES | CVT_LOWER_CASE_IDENTIFIERS | CVT_TRIM_WHITESPACE | CVT_REMOVE_EMPTY_BLOCKS| CVT_REDUCE_TYPEDEFS | CVT_SPACES_TO_TABS8), /* Patch files */ LinuxDataTypes, NULL, NULL, NULL, AcpiIdentifiers, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_MIXED_CASE_TO_UNDERSCORES), }; /****************************************************************************** * * Code cleanup translation tables * ******************************************************************************/ ACPI_CONVERSION_TABLE CleanupConversionTable = { NULL, FLG_DEFAULT_FLAGS, NULL, /* C source files */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_CHECK_BRACES | CVT_TRIM_LINES | CVT_TRIM_WHITESPACE), /* C header files */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_TRIM_LINES | CVT_TRIM_WHITESPACE), /* Patch files */ NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES), }; ACPI_CONVERSION_TABLE StatsConversionTable = { NULL, FLG_NO_FILE_OUTPUT, NULL, /* C source files */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_COUNT_SHORTMULTILINE_COMMENTS), /* C header files */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_COUNT_SHORTMULTILINE_COMMENTS), /* Patch files */ NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_COUNT_SHORTMULTILINE_COMMENTS), }; /****************************************************************************** * * Dual License injection translation table * ******************************************************************************/ ACPI_CONVERSION_TABLE LicenseConversionTable = { DualLicenseHeader, FLG_DEFAULT_FLAGS, NULL, /* C source files */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_COUNT_SHORTMULTILINE_COMMENTS), /* C header files */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_COUNT_SHORTMULTILINE_COMMENTS), /* Patch files */ NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_COUNT_SHORTMULTILINE_COMMENTS), }; /****************************************************************************** * * Customizable translation tables * ******************************************************************************/ ACPI_STRING_TABLE CustomReplacements[] = { {"(c) 1999 - 2025", "(c) 1999 - 2025", REPLACE_WHOLE_WORD}, /* Main ACPICA source */ {"(c) 2006 - 2023", "(c) 2006 - 2025", REPLACE_WHOLE_WORD}, /* Test suites */ #if 0 {"SUPPORT, ASSISTANCE", "SUPPORT, ASSISTANCE", REPLACE_WHOLE_WORD}, /* Fix intel header */ {"(ACPI_INTEGER)", "(UINT64)", REPLACE_WHOLE_WORD}, {"ACPI_INTEGER ", "UINT64 ", REPLACE_WHOLE_WORD}, {"ACPI_INTEGER", "UINT64", REPLACE_WHOLE_WORD}, {"ACPI_INTEGER_MAX", "ACPI_UINT64_MAX", REPLACE_WHOLE_WORD}, {"#include \"acpi.h\"", "#include \"acpi.h\"\n#include \"accommon.h\"", REPLACE_SUBSTRINGS}, {"AcpiTbSumTable", "AcpiTbSumTable", REPLACE_WHOLE_WORD}, {"ACPI_SIG_BOOT", "ACPI_SIG_BOOT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_DBGP", "ACPI_SIG_DBGP", REPLACE_WHOLE_WORD}, {"ACPI_SIG_DSDT", "ACPI_SIG_DSDT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_ECDT", "ACPI_SIG_ECDT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_FACS", "ACPI_SIG_FACS", REPLACE_WHOLE_WORD}, {"ACPI_SIG_FADT", "ACPI_SIG_FADT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_HPET", "ACPI_SIG_HPET", REPLACE_WHOLE_WORD}, {"ACPI_SIG_MADT", "ACPI_SIG_MADT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_MCFG", "ACPI_SIG_MCFG", REPLACE_WHOLE_WORD}, {"ACPI_SIG_PSDT", "ACPI_SIG_PSDT", REPLACE_WHOLE_WORD}, {"ACPI_NAME_RSDP", "ACPI_NAME_RSDP", REPLACE_WHOLE_WORD}, {"ACPI_SIG_RSDP", "ACPI_SIG_RSDP", REPLACE_WHOLE_WORD}, {"ACPI_SIG_RSDT", "ACPI_SIG_RSDT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_SBST", "ACPI_SIG_SBST", REPLACE_WHOLE_WORD}, {"ACPI_SIG_SLIT", "ACPI_SIG_SLIT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_SPCR", "ACPI_SIG_SPCR", REPLACE_WHOLE_WORD}, {"ACPI_SIG_SPIC", "ACPI_SIG_SPIC", REPLACE_WHOLE_WORD}, {"ACPI_SIG_SPMI", "ACPI_SIG_SPMI", REPLACE_WHOLE_WORD}, {"ACPI_SIG_SRAT", "ACPI_SIG_SRAT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_SSDT", "ACPI_SIG_SSDT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_TCPA", "ACPI_SIG_TCPA", REPLACE_WHOLE_WORD}, {"ACPI_SIG_WDRT", "ACPI_SIG_WDRT", REPLACE_WHOLE_WORD}, {"ACPI_SIG_XSDT", "ACPI_SIG_XSDT", REPLACE_WHOLE_WORD}, {"ACPI_ALLOCATE_ZEROED", "ACPI_ALLOCATE_ZEROED", REPLACE_WHOLE_WORD}, {"ACPI_ALLOCATE", "ACPI_ALLOCATE", REPLACE_WHOLE_WORD}, {"ACPI_FREE", "ACPI_FREE", REPLACE_WHOLE_WORD}, "ACPI_NATIVE_UINT", "ACPI_NATIVE_UINT", REPLACE_WHOLE_WORD, "ACPI_NATIVE_UINT *", "ACPI_NATIVE_UINT *", REPLACE_WHOLE_WORD, "ACPI_NATIVE_UINT", "ACPI_NATIVE_UINT", REPLACE_WHOLE_WORD, "ACPI_NATIVE_INT", "ACPI_NATIVE_INT", REPLACE_WHOLE_WORD, "ACPI_NATIVE_INT *", "ACPI_NATIVE_INT *", REPLACE_WHOLE_WORD, "ACPI_NATIVE_INT", "ACPI_NATIVE_INT", REPLACE_WHOLE_WORD, #endif {NULL, NULL, 0} }; ACPI_CONVERSION_TABLE CustomConversionTable = { NULL, FLG_DEFAULT_FLAGS, NULL, /* C source files */ NULL, CustomReplacements, LinuxEliminateLines_H, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_TRIM_LINES | CVT_TRIM_WHITESPACE), /* C header files */ NULL, CustomReplacements, LinuxEliminateLines_H, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_TRIM_LINES | CVT_TRIM_WHITESPACE), /* C header files */ NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES), }; /****************************************************************************** * * Indentation result fixup table * ******************************************************************************/ ACPI_CONVERSION_TABLE IndentConversionTable = { NULL, FLG_NO_CARRIAGE_RETURNS, NULL, /* C source files */ NULL, LinuxSpecialStrings, NULL, NULL, NULL, NULL, LinuxSpecialMacros, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_TRIM_LINES | CVT_TRIM_WHITESPACE), /* C header files */ NULL, LinuxSpecialStrings, NULL, NULL, NULL, NULL, LinuxSpecialMacros, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES | CVT_TRIM_LINES | CVT_TRIM_WHITESPACE), /* C header files */ NULL, NULL, NULL, NULL, NULL, NULL, (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES), }; acpica-unix-20250404/source/tools/acpisrc/ascase.c0000775000175000017500000004423514773714134021242 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: ascase - Source conversion - lower/upper case utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpisrc.h" /* Local prototypes */ void AsUppercaseTokens ( char *Buffer, char *PrefixString); /****************************************************************************** * * FUNCTION: AsLowerCaseString * * DESCRIPTION: LowerCase all instances of a target string with a replacement * string. Returns count of the strings replaced. * ******************************************************************************/ int AsLowerCaseString ( char *Target, char *Buffer) { char *SubString1; char *SubString2; char *SubBuffer; int TargetLength; int LowerCaseCount = 0; int i; TargetLength = strlen (Target); SubBuffer = Buffer; SubString1 = Buffer; while (SubString1) { /* Find the target string */ SubString1 = strstr (SubBuffer, Target); if (!SubString1) { return (LowerCaseCount); } /* * Check for translation escape string -- means to ignore * blocks of code while replacing */ if (Gbl_IgnoreTranslationEscapes) { SubString2 = NULL; } else { SubString2 = strstr (SubBuffer, AS_START_IGNORE); } if ((SubString2) && (SubString2 < SubString1)) { /* Find end of the escape block starting at "Substring2" */ SubString2 = strstr (SubString2, AS_STOP_IGNORE); if (!SubString2) { /* Didn't find terminator */ return (LowerCaseCount); } /* Move buffer to end of escape block and continue */ SubBuffer = SubString2; } /* Do the actual replace if the target was found */ else { if (!AsMatchExactWord (SubString1, TargetLength)) { SubBuffer = SubString1 + 1; continue; } for (i = 0; i < TargetLength; i++) { SubString1[i] = (char) tolower ((int) SubString1[i]); } SubBuffer = SubString1 + TargetLength; if ((Gbl_WidenDeclarations) && (!Gbl_StructDefs)) { if ((SubBuffer[0] == ' ') && (SubBuffer[1] == ' ')) { AsInsertData (SubBuffer, " ", 8); } } LowerCaseCount++; } } return (LowerCaseCount); } /****************************************************************************** * * FUNCTION: AsMixedCaseToUnderscores * * DESCRIPTION: Converts mixed case identifiers to underscored identifiers. * for example, * * ThisUsefullyNamedIdentifier becomes: * * this_usefully_named_identifier * ******************************************************************************/ void AsMixedCaseToUnderscores ( char *Buffer, char *Filename) { UINT32 Length; char *SubBuffer = Buffer; char *TokenEnd; char *TokenStart = NULL; char *SubString; UINT32 LineNumber = 1; UINT32 Count; /* * Examine the entire buffer (contains the entire file) * We are only interested in these tokens: * Escape sequences - ignore entire sequence * Single-quoted constants - ignore * Quoted strings - ignore entire string * Translation escape - starts with /,*,! * Decimal and hex numeric constants - ignore entire token * Entire uppercase token - ignore, it is a macro or define * Starts with underscore, then a lowercase or digit: convert */ while (*SubBuffer) { if (*SubBuffer == '\n') { LineNumber++; SubBuffer++; continue; } /* Ignore standard escape sequences (\n, \r, etc.) Not Hex or Octal escapes */ if (*SubBuffer == '\\') { SubBuffer += 2; continue; } /* Ignore single-quoted characters */ if (*SubBuffer == '\'') { SubBuffer += 3; continue; } /* Ignore standard double-quoted strings */ if (*SubBuffer == '"') { SubBuffer++; Count = 0; while (*SubBuffer != '"') { Count++; if ((!*SubBuffer) || (Count > 8192)) { printf ("Found an unterminated quoted string!, line %u: %s\n", LineNumber, Filename); return; } /* Handle escape sequences */ if (*SubBuffer == '\\') { SubBuffer++; } SubBuffer++; } SubBuffer++; continue; } /* * Check for translation escape string. It means to ignore * blocks of code during this code conversion. */ if ((SubBuffer[0] == '/') && (SubBuffer[1] == '*') && (SubBuffer[2] == '!')) { SubBuffer = strstr (SubBuffer, "!*/"); if (!SubBuffer) { printf ("Found an unterminated translation escape!, line %u: %s\n", LineNumber, Filename); return; } continue; } /* Ignore anything that starts with a number (0-9) */ if (isdigit ((int) *SubBuffer)) { /* Ignore hex constants */ if ((SubBuffer[0] == '0') && ((SubBuffer[1] == 'x') || (SubBuffer[1] == 'X'))) { SubBuffer += 2; } /* Skip over all digits, both decimal and hex */ while (isxdigit ((int) *SubBuffer)) { SubBuffer++; } TokenStart = NULL; continue; } /* * Check for fully upper case identifiers. These are usually macros * or defines. Allow decimal digits and embedded underscores. */ if (isupper ((int) *SubBuffer)) { SubString = SubBuffer + 1; while ((isupper ((int) *SubString)) || (isdigit ((int) *SubString)) || (*SubString == '_')) { SubString++; } /* * For the next character, anything other than a lower case * means that the identifier has terminated, and contains * exclusively Uppers/Digits/Underscores. Ignore the entire * identifier. */ if (!islower ((int) *SubString)) { SubBuffer = SubString + 1; continue; } } /* * These forms may indicate an identifier that can be converted: * (Ax) * (An) */ if (isupper ((int) SubBuffer[0]) && ((islower ((int) SubBuffer[1])) || isdigit ((int) SubBuffer[1]))) { TokenStart = SubBuffer; SubBuffer++; while (1) { /* Walk over the lower case letters and decimal digits */ while (islower ((int) *SubBuffer) || isdigit ((int) *SubBuffer)) { SubBuffer++; } /* Check for end of line or end of token */ if (*SubBuffer == '\n') { LineNumber++; break; } if (*SubBuffer == ' ') { /* Check for form "Axx - " in a parameter header description */ while (*SubBuffer == ' ') { SubBuffer++; } SubBuffer--; if ((SubBuffer[1] == '-') && (SubBuffer[2] == ' ')) { if (TokenStart) { *TokenStart = (char) tolower ((int) *TokenStart); } } break; } /* * Ignore these combinations: * * * */ if (isdigit ((int) *SubBuffer)) { if (isalnum ((int) *(SubBuffer-1)) || *(SubBuffer-1) == '_') { break; } } /* Ignore token if next character is not uppercase or digit */ if (!isupper ((int) *SubBuffer) && !isdigit ((int) *SubBuffer)) { break; } /* * Form (AxxB): * Convert leading character of the token to lower case */ if (TokenStart) { *TokenStart = (char) tolower ((int) *TokenStart); TokenStart = NULL; } /* Find the end of this identifier (token) */ TokenEnd = SubBuffer - 1; while ((isalnum ((int) *TokenEnd)) || (*TokenEnd == '_')) { TokenEnd++; } SubString = TokenEnd; Length = 0; while (*SubString != '\n') { /* * If we have at least two trailing spaces, we can get rid of * one to make up for the newly inserted underscore. This will * help preserve the alignment of the text */ if ((SubString[0] == ' ') && (SubString[1] == ' ')) { Length = SubString - SubBuffer - 1; break; } SubString++; } if (!Length) { Length = strlen (&SubBuffer[0]); } /* * Within this identifier, convert this pair of letters that * matches the form: * * * to * */ Gbl_MadeChanges = TRUE; /* Insert the underscore */ memmove (&SubBuffer[1], &SubBuffer[0], Length + 1); SubBuffer[0] = '_'; /* * If we have , leave them as-is * Enables transforms like: * LocalFADT -> local_FADT */ if (isupper ((int) SubBuffer[2])) { SubBuffer += 1; break; } /* Lower case the original upper case letter */ SubBuffer[1] = (char) tolower ((int) SubBuffer[1]); SubBuffer += 2; } } SubBuffer++; } } /****************************************************************************** * * FUNCTION: AsLowerCaseIdentifiers * * DESCRIPTION: Converts mixed case identifiers to lower case. Leaves comments, * quoted strings, and all-upper-case macros alone. * ******************************************************************************/ void AsLowerCaseIdentifiers ( char *Buffer) { char *SubBuffer = Buffer; while (*SubBuffer) { /* * Check for translation escape string -- means to ignore * blocks of code while replacing */ if ((SubBuffer[0] == '/') && (SubBuffer[1] == '*') && (SubBuffer[2] == '!')) { SubBuffer = strstr (SubBuffer, "!*/"); if (!SubBuffer) { return; } } /* Ignore comments */ if ((SubBuffer[0] == '/') && (SubBuffer[1] == '*')) { SubBuffer = strstr (SubBuffer, "*/"); if (!SubBuffer) { return; } SubBuffer += 2; } /* Ignore quoted strings */ if ((SubBuffer[0] == '\"') && (SubBuffer[1] != '\'')) { SubBuffer++; /* Find the closing quote */ while (SubBuffer[0]) { /* Ignore escaped quote characters */ if (SubBuffer[0] == '\\') { SubBuffer++; } else if (SubBuffer[0] == '\"') { SubBuffer++; break; } SubBuffer++; } } if (!SubBuffer[0]) { return; } /* * Only lower case if we have an upper followed by a lower * This leaves the all-uppercase things (macros, etc.) intact */ if ((isupper ((int) SubBuffer[0])) && (islower ((int) SubBuffer[1]))) { Gbl_MadeChanges = TRUE; *SubBuffer = (char) tolower ((int) *SubBuffer); } SubBuffer++; } } /****************************************************************************** * * FUNCTION: AsUppercaseTokens * * DESCRIPTION: Force to uppercase all tokens that begin with the prefix string. * used to convert mixed-case macros and constants to uppercase. * ******************************************************************************/ void AsUppercaseTokens ( char *Buffer, char *PrefixString) { char *SubBuffer; char *TokenEnd; char *SubString; int i; UINT32 Length; SubBuffer = Buffer; while (SubBuffer) { SubBuffer = strstr (SubBuffer, PrefixString); if (SubBuffer) { TokenEnd = SubBuffer; while ((isalnum ((int) *TokenEnd)) || (*TokenEnd == '_')) { TokenEnd++; } for (i = 0; i < (TokenEnd - SubBuffer); i++) { if ((islower ((int) SubBuffer[i])) && (isupper ((int) SubBuffer[i+1]))) { SubString = TokenEnd; Length = 0; while (*SubString != '\n') { if ((SubString[0] == ' ') && (SubString[1] == ' ')) { Length = SubString - &SubBuffer[i] - 2; break; } SubString++; } if (!Length) { Length = strlen (&SubBuffer[i+1]); } memmove (&SubBuffer[i+2], &SubBuffer[i+1], (Length+1)); SubBuffer[i+1] = '_'; i +=2; TokenEnd++; } } for (i = 0; i < (TokenEnd - SubBuffer); i++) { SubBuffer[i] = (char) toupper ((int) SubBuffer[i]); } SubBuffer = TokenEnd; } } } acpica-unix-20250404/source/tools/acpisrc/asremove.c0000775000175000017500000004746114773714134021630 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asremove - Source conversion - removal functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpisrc.h" /* Local prototypes */ void AsRemoveStatement ( char *Buffer, char *Keyword, UINT32 Type); /****************************************************************************** * * FUNCTION: AsRemoveStatement * * DESCRIPTION: Remove all statements that contain the given keyword. * Limitations: Removes text from the start of the line that * contains the keyword to the next semicolon. Currently * doesn't ignore comments. * ******************************************************************************/ void AsRemoveStatement ( char *Buffer, char *Keyword, UINT32 Type) { char *SubString; char *SubBuffer; int KeywordLength; KeywordLength = strlen (Keyword); SubBuffer = Buffer; SubString = Buffer; while (SubString) { SubString = strstr (SubBuffer, Keyword); if (SubString) { SubBuffer = SubString; if ((Type == REPLACE_WHOLE_WORD) && (!AsMatchExactWord (SubString, KeywordLength))) { SubBuffer++; continue; } /* Find start of this line */ while (*SubString != '\n') { SubString--; } SubString++; /* Find end of this statement */ SubBuffer = AsSkipPastChar (SubBuffer, ';'); if (!SubBuffer) { return; } /* Find end of this line */ SubBuffer = AsSkipPastChar (SubBuffer, '\n'); if (!SubBuffer) { return; } /* If next line is blank, remove it too */ if (*SubBuffer == '\n') { SubBuffer++; } /* Remove the lines */ SubBuffer = AsRemoveData (SubString, SubBuffer); } } } /****************************************************************************** * * FUNCTION: AsRemoveConditionalCompile * * DESCRIPTION: Remove a "#ifdef" statement, and all text that it encompasses. * Limitations: cannot handle nested ifdefs. * ******************************************************************************/ void AsRemoveConditionalCompile ( char *Buffer, char *Keyword) { char *SubString; char *SubBuffer; char *IfPtr; char *EndifPtr; char *ElsePtr; char *Comment; int KeywordLength; KeywordLength = strlen (Keyword); SubString = Buffer; while (SubString) { SubBuffer = strstr (SubString, Keyword); if (!SubBuffer) { return; } /* * Check for translation escape string -- means to ignore * blocks of code while replacing */ if (Gbl_IgnoreTranslationEscapes) { Comment = NULL; } else { Comment = strstr (SubString, AS_START_IGNORE); } if ((Comment) && (Comment < SubBuffer)) { SubString = strstr (Comment, AS_STOP_IGNORE); if (!SubString) { return; } SubString += 3; continue; } /* Check for ordinary comment */ Comment = strstr (SubString, "/*"); if ((Comment) && (Comment < SubBuffer)) { SubString = strstr (Comment, "*/"); if (!SubString) { return; } SubString += 2; continue; } SubString = SubBuffer; if (!AsMatchExactWord (SubString, KeywordLength)) { SubString++; continue; } /* Find start of this line */ while (*SubString != '\n' && (SubString > Buffer)) { SubString--; } SubString++; /* Find the "#ifxxxx" */ IfPtr = strstr (SubString, "#if"); if (!IfPtr) { return; } if (IfPtr > SubBuffer) { /* Not the right #if */ SubString = SubBuffer + strlen (Keyword); continue; } /* Find closing #endif or #else */ EndifPtr = strstr (SubBuffer, "#endif"); if (!EndifPtr) { /* There has to be an #endif */ return; } ElsePtr = strstr (SubBuffer, "#else"); if ((ElsePtr) && (EndifPtr > ElsePtr)) { /* This #ifdef contains an #else clause */ /* Find end of this line */ SubBuffer = AsSkipPastChar (ElsePtr, '\n'); if (!SubBuffer) { return; } /* Remove the #ifdef .... #else code */ AsRemoveData (SubString, SubBuffer); /* Next, we will remove the #endif statement */ EndifPtr = strstr (SubString, "#endif"); if (!EndifPtr) { /* There has to be an #endif */ return; } SubString = EndifPtr; } /* Remove the ... #endif part */ /* Find end of this line */ SubBuffer = AsSkipPastChar (EndifPtr, '\n'); if (!SubBuffer) { return; } /* Remove the lines */ (void) AsRemoveData (SubString, SubBuffer); } } #ifdef _OBSOLETE_FUNCTIONS /****************************************************************************** * * FUNCTION: AsRemoveMacro * * DESCRIPTION: Remove every line that contains the keyword. Does not * skip comments. * ******************************************************************************/ NOTE: This function is no longer used and is commented out for now. Also, it appears to have one or more bugs in it. It can incorrectly remove lines of code, producing some garbage. void AsRemoveMacro ( char *Buffer, char *Keyword) { char *SubString; char *SubBuffer; int NestLevel; SubBuffer = Buffer; SubString = Buffer; while (SubString) { SubString = strstr (SubBuffer, Keyword); if (SubString) { SubBuffer = SubString; /* Find start of the macro parameters */ while (*SubString != '(') { SubString++; } SubString++; /* Remove the macro name and opening paren */ SubString = AsRemoveData (SubBuffer, SubString); NestLevel = 1; while (*SubString) { if (*SubString == '(') { NestLevel++; } else if (*SubString == ')') { NestLevel--; } SubString++; if (NestLevel == 0) { break; } } /* Remove the closing paren */ SubBuffer = AsRemoveData (SubString-1, SubString); } } } #endif /****************************************************************************** * * FUNCTION: AsRemoveLine * * DESCRIPTION: Remove every line that contains the keyword. Does not * skip comments. * ******************************************************************************/ void AsRemoveLine ( char *Buffer, char *Keyword) { char *SubString; char *SubBuffer; SubBuffer = Buffer; SubString = Buffer; while (SubString) { SubString = strstr (SubBuffer, Keyword); if (SubString) { SubBuffer = SubString; /* Find start of this line */ while (*SubString != '\n') { SubString--; } SubString++; /* Find end of this line */ SubBuffer = AsSkipPastChar (SubBuffer, '\n'); if (!SubBuffer) { return; } /* Remove the line */ SubBuffer = AsRemoveData (SubString, SubBuffer); } } } /****************************************************************************** * * FUNCTION: AsReduceTypedefs * * DESCRIPTION: Eliminate certain typedefs * ******************************************************************************/ void AsReduceTypedefs ( char *Buffer, char *Keyword) { char *SubString; char *SubBuffer; char *SubSubString; int NestLevel; SubBuffer = Buffer; SubString = Buffer; while (SubString) { SubString = strstr (SubBuffer, Keyword); if (SubString) { SubSubString = SubString + strlen (Keyword); /* skip spaces */ while (strchr(" \t\r\n", *SubSubString)) { SubSubString++; } /* skip type name */ while (!strchr(" \t\r\n", *SubSubString)) { SubSubString++; } /* skip spaces */ while (strchr(" \t\r\n", *SubSubString)) { SubSubString++; } if (*SubSubString == '{') { /* Remove the typedef itself */ SubBuffer = SubString + strlen ("typedef") + 1; (void) AsRemoveData (SubString, SubBuffer); /* Find the opening brace of the struct or union */ while (*SubString != '{') { SubString++; } SubString++; /* Find the closing brace. Handles nested braces */ NestLevel = 1; while (*SubString) { if (*SubString == '{') { NestLevel++; } else if (*SubString == '}') { NestLevel--; } SubString++; if (NestLevel == 0) { break; } } /* Remove an extra line feed if present */ if (!strncmp (SubString - 3, "\n\n", 2)) { *(SubString -2) = '}'; SubString--; } /* Find the end of the typedef name */ SubBuffer = AsSkipUntilChar (SubString, ';'); /* And remove the typedef name */ SubBuffer = AsRemoveData (SubString, SubBuffer); } else { /* Skip the entire definition */ SubString = strchr (SubString, ';') + 1; SubBuffer = SubString; } } } } /****************************************************************************** * * FUNCTION: AsRemoveEmptyBlocks * * DESCRIPTION: Remove any C blocks (e.g., if {}) that contain no code. This * can happen as a result of removing lines such as DEBUG_PRINT. * ******************************************************************************/ void AsRemoveEmptyBlocks ( char *Buffer, char *Filename) { char *SubBuffer; char *BlockStart; BOOLEAN EmptyBlock = TRUE; BOOLEAN AnotherPassRequired = TRUE; UINT32 BlockCount = 0; while (AnotherPassRequired) { SubBuffer = Buffer; AnotherPassRequired = FALSE; while (*SubBuffer) { if (*SubBuffer == '{') { BlockStart = SubBuffer; EmptyBlock = TRUE; SubBuffer++; while (*SubBuffer != '}') { if ((*SubBuffer != ' ') && (*SubBuffer != '\n')) { EmptyBlock = FALSE; break; } SubBuffer++; } if (EmptyBlock) { /* Find start of the first line of the block */ while (*BlockStart != '\n') { BlockStart--; } /* Find end of the last line of the block */ SubBuffer = AsSkipUntilChar (SubBuffer, '\n'); if (!SubBuffer) { break; } /* Remove the block */ SubBuffer = AsRemoveData (BlockStart, SubBuffer); BlockCount++; AnotherPassRequired = TRUE; continue; } } SubBuffer++; } } if (BlockCount) { Gbl_MadeChanges = TRUE; AsPrint ("Code blocks deleted", BlockCount, Filename); } } /****************************************************************************** * * FUNCTION: AsRemoveDebugMacros * * DESCRIPTION: Remove all "Debug" macros -- macros that produce debug output. * ******************************************************************************/ void AsRemoveDebugMacros ( char *Buffer) { AsRemoveConditionalCompile (Buffer, "ACPI_DEBUG_OUTPUT"); AsRemoveStatement (Buffer, "ACPI_DEBUG_PRINT", REPLACE_WHOLE_WORD); AsRemoveStatement (Buffer, "ACPI_DEBUG_PRINT_RAW", REPLACE_WHOLE_WORD); AsRemoveStatement (Buffer, "DEBUG_EXEC", REPLACE_WHOLE_WORD); AsRemoveStatement (Buffer, "FUNCTION_ENTRY", REPLACE_WHOLE_WORD); AsRemoveStatement (Buffer, "PROC_NAME", REPLACE_WHOLE_WORD); AsRemoveStatement (Buffer, "FUNCTION_TRACE", REPLACE_SUBSTRINGS); AsRemoveStatement (Buffer, "DUMP_", REPLACE_SUBSTRINGS); AsReplaceString ("return_VOID", "return", REPLACE_WHOLE_WORD, Buffer); AsReplaceString ("return_PTR", "return", REPLACE_WHOLE_WORD, Buffer); AsReplaceString ("return_STR", "return", REPLACE_WHOLE_WORD, Buffer); AsReplaceString ("return_ACPI_STATUS", "return", REPLACE_WHOLE_WORD, Buffer); AsReplaceString ("return_acpi_status", "return", REPLACE_WHOLE_WORD, Buffer); AsReplaceString ("return_VALUE", "return", REPLACE_WHOLE_WORD, Buffer); } /****************************************************************************** * * FUNCTION: AsCleanupSpecialMacro * * DESCRIPTION: For special macro invocations (invoked without ";" at the end * of the lines), do the following: * 1. Remove spaces appended by indent at the beginning of lines. * 2. Add an empty line between two special macro invocations. * ******************************************************************************/ void AsCleanupSpecialMacro ( char *Buffer, char *Keyword) { char *SubString; char *SubBuffer; char *CommentEnd; int NewLine; int NestLevel; SubBuffer = Buffer; SubString = Buffer; while (SubString) { SubString = strstr (SubBuffer, Keyword); if (SubString) { /* Find start of the macro parameters */ while (*SubString != '(') { SubString++; } SubString++; NestLevel = 1; while (*SubString) { if (*SubString == '(') { NestLevel++; } else if (*SubString == ')') { NestLevel--; } SubString++; if (NestLevel == 0) { break; } } SkipLine: /* Find end of the line */ NewLine = FALSE; while (!NewLine && *SubString) { if (*SubString == '\n' && *(SubString - 1) != '\\') { NewLine = TRUE; } SubString++; } /* Find end of the line */ if (*SubString == '#' || *SubString == '\n') { goto SkipLine; } SubBuffer = SubString; /* Find start of the non-space */ while (*SubString == ' ') { SubString++; } /* Find end of the line */ if (*SubString == '#' || *SubString == '\n') { goto SkipLine; } /* Find end of the line */ if (*SubString == '/' || *SubString == '*') { CommentEnd = strstr (SubString, "*/"); if (CommentEnd) { SubString = CommentEnd + 2; goto SkipLine; } } SubString = AsRemoveData (SubBuffer, SubString); } } } acpica-unix-20250404/source/tools/acpisrc/acpisrc.h0000775000175000017500000003205314773714134021427 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: acpisrc.h - Include file for AcpiSrc utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acapps.h" /* mkdir support */ #ifdef WIN32 #include #else #define mkdir(x) mkdir(x, 0770) #endif /* Constants */ #define LINES_IN_LEGAL_HEADER 115+36 /* intel+dual license. See legal header above at module start */ #define LEGAL_HEADER_SIGNATURE " * 2.1. This is your license from Intel Corp. under its intellectual property" #define LINES_IN_LINUX_HEADER 2 /* SPDX header is 1 line Intel copyright is another line */ #define LINUX_HEADER_SIGNATURE " * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS" #define LINES_IN_ASL_HEADER 29 /* Header as output from disassembler */ #define ASRC_MAX_FILE_SIZE (1024 * 100) #define FILE_TYPE_SOURCE 1 #define FILE_TYPE_HEADER 2 #define FILE_TYPE_DIRECTORY 3 #define FILE_TYPE_PATCH 4 #define CVT_COUNT_TABS 0x00000001 #define CVT_COUNT_NON_ANSI_COMMENTS 0x00000002 #define CVT_TRIM_LINES 0x00000004 #define CVT_CHECK_BRACES 0x00000008 #define CVT_COUNT_LINES 0x00000010 #define CVT_BRACES_ON_SAME_LINE 0x00000020 #define CVT_MIXED_CASE_TO_UNDERSCORES 0x00000040 #define CVT_LOWER_CASE_IDENTIFIERS 0x00000080 #define CVT_REMOVE_DEBUG_MACROS 0x00000100 #define CVT_TRIM_WHITESPACE 0x00000200 /* Should be after all line removal */ #define CVT_REMOVE_EMPTY_BLOCKS 0x00000400 /* Should be after trimming lines */ #define CVT_REDUCE_TYPEDEFS 0x00000800 #define CVT_COUNT_SHORTMULTILINE_COMMENTS 0x00001000 #define CVT_SPACES_TO_TABS4 0x40000000 /* Tab conversion should be last */ #define CVT_SPACES_TO_TABS8 0x80000000 /* Tab conversion should be last */ #define FLG_DEFAULT_FLAGS 0x00000000 #define FLG_NO_CARRIAGE_RETURNS 0x00000001 #define FLG_NO_FILE_OUTPUT 0x00000002 #define FLG_LOWERCASE_DIRNAMES 0x00000004 #define AS_START_IGNORE "/*!" #define AS_STOP_IGNORE "!*/" /* Globals */ extern UINT32 Gbl_Files; extern UINT32 Gbl_MissingBraces; extern UINT32 Gbl_Tabs; extern UINT32 Gbl_NonAnsiComments; extern UINT32 Gbl_SourceLines; extern UINT32 Gbl_WhiteLines; extern UINT32 Gbl_CommentLines; extern UINT32 Gbl_LongLines; extern UINT32 Gbl_TotalLines; extern UINT32 Gbl_HeaderSize; extern UINT32 Gbl_HeaderLines; extern struct stat Gbl_StatBuf; extern char *Gbl_FileBuffer; extern UINT32 Gbl_TotalSize; extern UINT32 Gbl_FileSize; extern UINT32 Gbl_FileType; extern BOOLEAN Gbl_VerboseMode; extern BOOLEAN Gbl_QuietMode; extern BOOLEAN Gbl_BatchMode; extern BOOLEAN Gbl_MadeChanges; extern BOOLEAN Gbl_Overwrite; extern BOOLEAN Gbl_WidenDeclarations; extern BOOLEAN Gbl_IgnoreLoneLineFeeds; extern BOOLEAN Gbl_HasLoneLineFeeds; extern BOOLEAN Gbl_Cleanup; extern BOOLEAN Gbl_IgnoreTranslationEscapes; extern BOOLEAN Gbl_CheckAscii; extern void *Gbl_StructDefs; #define PARAM_LIST(pl) pl #define TERSE_PRINT(a) if (!Gbl_VerboseMode) printf PARAM_LIST(a) #define VERBOSE_PRINT(a) if (Gbl_VerboseMode) printf PARAM_LIST(a) #define REPLACE_WHOLE_WORD 0x00 #define REPLACE_SUBSTRINGS 0x01 #define REPLACE_MASK 0x01 #define EXTRA_INDENT_C 0x02 /* Conversion table structs */ typedef struct acpi_string_table { char *Target; char *Replacement; UINT8 Type; } ACPI_STRING_TABLE; typedef struct acpi_typed_identifier_table { char *Identifier; UINT8 Type; } ACPI_TYPED_IDENTIFIER_TABLE; #define SRC_TYPE_SIMPLE 0 #define SRC_TYPE_STRUCT 1 #define SRC_TYPE_UNION 2 typedef struct acpi_identifier_table { char *Identifier; } ACPI_IDENTIFIER_TABLE; typedef struct acpi_conversion_table { char *NewHeader; UINT32 Flags; ACPI_TYPED_IDENTIFIER_TABLE *LowerCaseTable; char *SourceSpdxHeader; ACPI_STRING_TABLE *SourceStringTable; ACPI_IDENTIFIER_TABLE *SourceLineTable; ACPI_IDENTIFIER_TABLE *SourceConditionalTable; ACPI_IDENTIFIER_TABLE *SourceMacroTable; ACPI_TYPED_IDENTIFIER_TABLE *SourceStructTable; ACPI_IDENTIFIER_TABLE *SourceSpecialMacroTable; UINT32 SourceFunctions; char *HeaderSpdxHeader; ACPI_STRING_TABLE *HeaderStringTable; ACPI_IDENTIFIER_TABLE *HeaderLineTable; ACPI_IDENTIFIER_TABLE *HeaderConditionalTable; ACPI_IDENTIFIER_TABLE *HeaderMacroTable; ACPI_TYPED_IDENTIFIER_TABLE *HeaderStructTable; ACPI_IDENTIFIER_TABLE *HeaderSpecialMacroTable; UINT32 HeaderFunctions; /* SPDX header conversion for patches is not supported */ ACPI_STRING_TABLE *PatchStringTable; ACPI_IDENTIFIER_TABLE *PatchLineTable; ACPI_IDENTIFIER_TABLE *PatchConditionalTable; ACPI_IDENTIFIER_TABLE *PatchMacroTable; ACPI_TYPED_IDENTIFIER_TABLE *PatchStructTable; ACPI_IDENTIFIER_TABLE *PatchSpecialMacroTable; UINT32 PatchFunctions; } ACPI_CONVERSION_TABLE; /* Conversion tables */ extern ACPI_CONVERSION_TABLE LinuxConversionTable; extern ACPI_CONVERSION_TABLE CleanupConversionTable; extern ACPI_CONVERSION_TABLE StatsConversionTable; extern ACPI_CONVERSION_TABLE CustomConversionTable; extern ACPI_CONVERSION_TABLE LicenseConversionTable; extern ACPI_CONVERSION_TABLE IndentConversionTable; typedef char * (*AS_SCAN_CALLBACK) ( char *Buffer, char *Filename, UINT32 LineNumber); typedef struct as_brace_info { char *Operator; UINT32 Length; } AS_BRACE_INFO; /* Prototypes */ char * AsSkipUntilChar ( char *Buffer, char Target); char * AsSkipPastChar ( char *Buffer, char Target); char * AsReplaceData ( char *Buffer, UINT32 LengthToRemove, char *BufferToAdd, UINT32 LengthToAdd); int AsReplaceString ( char *Target, char *Replacement, UINT8 Type, char *Buffer); int AsLowerCaseString ( char *Target, char *Buffer); void AsRemoveLine ( char *Buffer, char *Keyword); void AsCheckForBraces ( char *Buffer, char *Filename); void AsTrimLines ( char *Buffer, char *Filename); void AsMixedCaseToUnderscores ( char *Buffer, char *Filename); void AsCountTabs ( char *Buffer, char *Filename); void AsBracesOnSameLine ( char *Buffer); void AsLowerCaseIdentifiers ( char *Buffer); void AsReduceTypedefs ( char *Buffer, char *Keyword); void AsRemoveDebugMacros ( char *Buffer); void AsRemoveEmptyBlocks ( char *Buffer, char *Filename); void AsCleanupSpecialMacro ( char *Buffer, char *Keyword); void AsCountSourceLines ( char *Buffer, char *Filename); void AsCountNonAnsiComments ( char *Buffer, char *Filename); void AsTrimWhitespace ( char *Buffer); void AsTabify4 ( char *Buffer); void AsTabify8 ( char *Buffer); void AsRemoveConditionalCompile ( char *Buffer, char *Keyword); ACPI_NATIVE_INT AsProcessTree ( ACPI_CONVERSION_TABLE *ConversionTable, char *SourcePath, char *TargetPath); int AsGetFile ( char *FileName, char **FileBuffer, UINT32 *FileSize); int AsPutFile ( char *Pathname, char *FileBuffer, UINT32 SystemFlags); void AsReplaceHeader ( char *Buffer, char *NewHeader); void AsDoSpdxHeader ( char *Buffer, char *SpdxHeader); void AsConvertFile ( ACPI_CONVERSION_TABLE *ConversionTable, char *FileBuffer, char *Filename, ACPI_NATIVE_INT FileType); ACPI_NATIVE_INT AsProcessOneFile ( ACPI_CONVERSION_TABLE *ConversionTable, char *SourcePath, char *TargetPath, int MaxPathLength, char *Filename, ACPI_NATIVE_INT FileType); ACPI_NATIVE_INT AsCheckForDirectory ( char *SourceDirPath, char *TargetDirPath, char *Filename, char **SourcePath, char **TargetPath); void AsRemoveExtraLines ( char *FileBuffer, char *Filename); void AsRemoveSpacesAfterPeriod ( char *FileBuffer, char *Filename); BOOLEAN AsMatchExactWord ( char *Word, UINT32 WordLength); void AsPrint ( char *Message, UINT32 Count, char *Filename); void AsInsertPrefix ( char *Buffer, char *Keyword, UINT8 Type); char * AsInsertData ( char *Buffer, char *BufferToAdd, UINT32 LengthToAdd); char * AsRemoveData ( char *StartPointer, char *EndPointer); void AsInsertCarriageReturns ( char *Buffer); void AsConvertToLineFeeds ( char *Buffer); acpica-unix-20250404/source/tools/acpisrc/asutils.c0000775000175000017500000001547314773714134021471 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asutils - common utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpisrc.h" /****************************************************************************** * * FUNCTION: AsSkipUntilChar * * DESCRIPTION: Find the next instance of the input character * ******************************************************************************/ char * AsSkipUntilChar ( char *Buffer, char Target) { while (*Buffer != Target) { if (!*Buffer) { return (NULL); } Buffer++; } return (Buffer); } /****************************************************************************** * * FUNCTION: AsSkipPastChar * * DESCRIPTION: Find the next instance of the input character, return a buffer * pointer to this character+1. * ******************************************************************************/ char * AsSkipPastChar ( char *Buffer, char Target) { while (*Buffer != Target) { if (!*Buffer) { return (NULL); } Buffer++; } Buffer++; return (Buffer); } /****************************************************************************** * * FUNCTION: AsReplaceData * * DESCRIPTION: This function inserts and removes data from the file buffer. * if more data is inserted than is removed, the data in the buffer * is moved to make room. If less data is inserted than is removed, * the remaining data is moved to close the hole. * ******************************************************************************/ char * AsReplaceData ( char *Buffer, UINT32 LengthToRemove, char *BufferToAdd, UINT32 LengthToAdd) { UINT32 BufferLength; /* * Buffer is a string, so the length must include the terminating zero */ BufferLength = strlen (Buffer) + 1; if (LengthToRemove != LengthToAdd) { /* * Move some of the existing data * 1) If adding more bytes than removing, make room for the new data * 2) if removing more bytes than adding, delete the extra space */ Gbl_MadeChanges = TRUE; memmove ((Buffer + LengthToAdd), (Buffer + LengthToRemove), (BufferLength - LengthToRemove)); } /* * Now we can move in the new data */ if (LengthToAdd > 0) { Gbl_MadeChanges = TRUE; memmove (Buffer, BufferToAdd, LengthToAdd); } return (Buffer + LengthToAdd); } /****************************************************************************** * * FUNCTION: AsInsertData * * DESCRIPTION: This function inserts and removes data from the file buffer. * if more data is inserted than is removed, the data in the buffer * is moved to make room. If less data is inserted than is removed, * the remaining data is moved to close the hole. * ******************************************************************************/ char * AsInsertData ( char *Buffer, char *BufferToAdd, UINT32 LengthToAdd) { UINT32 BufferLength; if (LengthToAdd > 0) { /* * Buffer is a string, so the length must include the terminating zero */ BufferLength = strlen (Buffer) + 1; /* * Move some of the existing data * 1) If adding more bytes than removing, make room for the new data * 2) if removing more bytes than adding, delete the extra space */ Gbl_MadeChanges = TRUE; memmove ((Buffer + LengthToAdd), Buffer, BufferLength); /* * Now we can move in the new data */ memmove (Buffer, BufferToAdd, LengthToAdd); } return (Buffer + LengthToAdd); } /****************************************************************************** * * FUNCTION: AsRemoveData * * DESCRIPTION: This function inserts and removes data from the file buffer. * if more data is inserted than is removed, the data in the buffer * is moved to make room. If less data is inserted than is removed, * the remaining data is moved to close the hole. * ******************************************************************************/ char * AsRemoveData ( char *StartPointer, char *EndPointer) { UINT32 BufferLength; /* * Buffer is a string, so the length must include the terminating zero */ BufferLength = strlen (EndPointer) + 1; Gbl_MadeChanges = TRUE; memmove (StartPointer, EndPointer, BufferLength); return (StartPointer); } acpica-unix-20250404/source/tools/acpisrc/asfile.c0000775000175000017500000005776614773714134021263 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asfile - Main module for the acpi source processor utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpisrc.h" /* Local prototypes */ void AsDoWildcard ( ACPI_CONVERSION_TABLE *ConversionTable, char *SourcePath, char *TargetPath, int MaxPathLength, int FileType, char *WildcardSpec); BOOLEAN AsDetectLoneLineFeeds ( char *Filename, char *Buffer); static BOOLEAN AsCheckForNonPrintableChars ( char *FileBuffer, UINT32 FileSize); static ACPI_INLINE int AsMaxInt (int a, int b) { return (a > b ? a : b); } /****************************************************************************** * * FUNCTION: AsDoWildcard * * DESCRIPTION: Process files via wildcards * ******************************************************************************/ void AsDoWildcard ( ACPI_CONVERSION_TABLE *ConversionTable, char *SourcePath, char *TargetPath, int MaxPathLength, int FileType, char *WildcardSpec) { void *DirInfo; char *Filename; char *SourceDirPath; char *TargetDirPath; char RequestedFileType; if (FileType == FILE_TYPE_DIRECTORY) { RequestedFileType = REQUEST_DIR_ONLY; } else { RequestedFileType = REQUEST_FILE_ONLY; } VERBOSE_PRINT (("Checking for %s source files in directory \"%s\"\n", WildcardSpec, SourcePath)); /* Open the directory for wildcard search */ DirInfo = AcpiOsOpenDirectory (SourcePath, WildcardSpec, RequestedFileType); if (DirInfo) { /* * Get all of the files that match both the * wildcard and the requested file type */ while ((Filename = AcpiOsGetNextFilename (DirInfo))) { /* Looking for directory files, must check file type */ switch (RequestedFileType) { case REQUEST_DIR_ONLY: /* If we actually have a dir, process the subtree */ if (!AsCheckForDirectory (SourcePath, TargetPath, Filename, &SourceDirPath, &TargetDirPath)) { VERBOSE_PRINT (("Subdirectory: %s\n", Filename)); AsProcessTree (ConversionTable, SourceDirPath, TargetDirPath); free (SourceDirPath); free (TargetDirPath); } break; case REQUEST_FILE_ONLY: /* Otherwise, this is a file, not a directory */ VERBOSE_PRINT (("File: %s\n", Filename)); AsProcessOneFile (ConversionTable, SourcePath, TargetPath, MaxPathLength, Filename, FileType); break; default: break; } } /* Cleanup */ AcpiOsCloseDirectory (DirInfo); } } /****************************************************************************** * * FUNCTION: AsProcessTree * * DESCRIPTION: Process the directory tree. Files with the extension ".C" and * ".H" are processed as the tree is traversed. * ******************************************************************************/ ACPI_NATIVE_INT AsProcessTree ( ACPI_CONVERSION_TABLE *ConversionTable, char *SourcePath, char *TargetPath) { int MaxPathLength; MaxPathLength = AsMaxInt (strlen (SourcePath), strlen (TargetPath)); if (!(ConversionTable->Flags & FLG_NO_FILE_OUTPUT)) { if (ConversionTable->Flags & FLG_LOWERCASE_DIRNAMES) { AcpiUtStrlwr (TargetPath); } VERBOSE_PRINT (("Creating Directory \"%s\"\n", TargetPath)); if (mkdir (TargetPath)) { if (errno != EEXIST) { printf ("Could not create target directory\n"); return (-1); } } } /* Do the C source files */ AsDoWildcard (ConversionTable, SourcePath, TargetPath, MaxPathLength, FILE_TYPE_SOURCE, "*.c"); /* Do the C header files */ AsDoWildcard (ConversionTable, SourcePath, TargetPath, MaxPathLength, FILE_TYPE_HEADER, "*.h"); /* Do the Lex file(s) */ AsDoWildcard (ConversionTable, SourcePath, TargetPath, MaxPathLength, FILE_TYPE_SOURCE, "*.l"); /* Do the yacc file(s) */ AsDoWildcard (ConversionTable, SourcePath, TargetPath, MaxPathLength, FILE_TYPE_SOURCE, "*.y"); /* Do any ASL files */ AsDoWildcard (ConversionTable, SourcePath, TargetPath, MaxPathLength, FILE_TYPE_HEADER, "*.asl"); /* Do any subdirectories */ AsDoWildcard (ConversionTable, SourcePath, TargetPath, MaxPathLength, FILE_TYPE_DIRECTORY, "*"); return (0); } /****************************************************************************** * * FUNCTION: AsDetectLoneLineFeeds * * DESCRIPTION: Find LF without CR. * ******************************************************************************/ BOOLEAN AsDetectLoneLineFeeds ( char *Filename, char *Buffer) { UINT32 i = 1; UINT32 LfCount = 0; UINT32 LineCount = 0; if (!Buffer[0]) { return (FALSE); } while (Buffer[i]) { if (Buffer[i] == 0x0A) { if (Buffer[i-1] != 0x0D) { LfCount++; } LineCount++; } i++; } if (LfCount) { if (LineCount == LfCount) { if (!Gbl_IgnoreLoneLineFeeds) { printf ("%s: ****File has UNIX format**** (LF only, not CR/LF) %u lines\n", Filename, LfCount); } } else { printf ("%s: %u lone linefeeds in file\n", Filename, LfCount); } return (TRUE); } return (FALSE); } /****************************************************************************** * * FUNCTION: AsConvertFile * * DESCRIPTION: Perform the requested transforms on the file buffer (as * determined by the ConversionTable and the FileType). * ******************************************************************************/ void AsConvertFile ( ACPI_CONVERSION_TABLE *ConversionTable, char *FileBuffer, char *Filename, ACPI_NATIVE_INT FileType) { UINT32 i; UINT32 Functions; ACPI_STRING_TABLE *StringTable; ACPI_IDENTIFIER_TABLE *ConditionalTable; ACPI_IDENTIFIER_TABLE *LineTable; ACPI_TYPED_IDENTIFIER_TABLE *StructTable; ACPI_IDENTIFIER_TABLE *SpecialMacroTable; char *SpdxHeader=NULL; switch (FileType) { case FILE_TYPE_SOURCE: Functions = ConversionTable->SourceFunctions; StringTable = ConversionTable->SourceStringTable; LineTable = ConversionTable->SourceLineTable; ConditionalTable = ConversionTable->SourceConditionalTable; StructTable = ConversionTable->SourceStructTable; SpecialMacroTable = ConversionTable->SourceSpecialMacroTable; SpdxHeader = ConversionTable->SourceSpdxHeader; break; case FILE_TYPE_HEADER: Functions = ConversionTable->HeaderFunctions; StringTable = ConversionTable->HeaderStringTable; LineTable = ConversionTable->HeaderLineTable; ConditionalTable = ConversionTable->HeaderConditionalTable; StructTable = ConversionTable->HeaderStructTable; SpecialMacroTable = ConversionTable->HeaderSpecialMacroTable; SpdxHeader = ConversionTable->HeaderSpdxHeader; break; case FILE_TYPE_PATCH: Functions = ConversionTable->PatchFunctions; StringTable = ConversionTable->PatchStringTable; LineTable = ConversionTable->PatchLineTable; ConditionalTable = ConversionTable->PatchConditionalTable; StructTable = ConversionTable->PatchStructTable; SpecialMacroTable = ConversionTable->PatchSpecialMacroTable; break; default: printf ("Unknown file type, cannot process\n"); return; } Gbl_StructDefs = strstr (FileBuffer, "/* acpisrc:StructDefs"); Gbl_Files++; VERBOSE_PRINT (("Processing %u bytes\n", (unsigned int) strlen (FileBuffer))); if (Gbl_Cleanup) { AsRemoveExtraLines (FileBuffer, Filename); AsRemoveSpacesAfterPeriod (FileBuffer, Filename); } if (ConversionTable->LowerCaseTable) { for (i = 0; ConversionTable->LowerCaseTable[i].Identifier; i++) { AsLowerCaseString (ConversionTable->LowerCaseTable[i].Identifier, FileBuffer); } } /* Process all the string replacements */ if (StringTable) { for (i = 0; StringTable[i].Target; i++) { AsReplaceString (StringTable[i].Target, StringTable[i].Replacement, StringTable[i].Type, FileBuffer); } } if (LineTable) { for (i = 0; LineTable[i].Identifier; i++) { AsRemoveLine (FileBuffer, LineTable[i].Identifier); } } if (ConditionalTable) { for (i = 0; ConditionalTable[i].Identifier; i++) { AsRemoveConditionalCompile (FileBuffer, ConditionalTable[i].Identifier); } } #ifdef _OBSOLETE_FUNCTIONS if (MacroTable) { for (i = 0; MacroTable[i].Identifier; i++) { AsRemoveMacro (FileBuffer, MacroTable[i].Identifier); } } #endif if (StructTable) { for (i = 0; StructTable[i].Identifier; i++) { AsInsertPrefix (FileBuffer, StructTable[i].Identifier, StructTable[i].Type); } } if (SpecialMacroTable) { for (i = 0; SpecialMacroTable[i].Identifier; i++) { AsCleanupSpecialMacro (FileBuffer, SpecialMacroTable[i].Identifier); } } /* Process the function table */ for (i = 0; i < 32; i++) { /* Decode the function bitmap */ switch (((UINT32) 1 << i) & Functions) { case 0: /* This function not configured */ break; case CVT_COUNT_TABS: AsCountTabs (FileBuffer, Filename); break; case CVT_COUNT_NON_ANSI_COMMENTS: AsCountNonAnsiComments (FileBuffer, Filename); break; case CVT_CHECK_BRACES: AsCheckForBraces (FileBuffer, Filename); break; case CVT_TRIM_LINES: AsTrimLines (FileBuffer, Filename); break; case CVT_COUNT_LINES: AsCountSourceLines (FileBuffer, Filename); break; case CVT_BRACES_ON_SAME_LINE: AsBracesOnSameLine (FileBuffer); break; case CVT_MIXED_CASE_TO_UNDERSCORES: AsMixedCaseToUnderscores (FileBuffer, Filename); break; case CVT_LOWER_CASE_IDENTIFIERS: AsLowerCaseIdentifiers (FileBuffer); break; case CVT_REMOVE_DEBUG_MACROS: AsRemoveDebugMacros (FileBuffer); break; case CVT_TRIM_WHITESPACE: AsTrimWhitespace (FileBuffer); break; case CVT_REMOVE_EMPTY_BLOCKS: AsRemoveEmptyBlocks (FileBuffer, Filename); break; case CVT_REDUCE_TYPEDEFS: AsReduceTypedefs (FileBuffer, "typedef union"); AsReduceTypedefs (FileBuffer, "typedef struct"); break; case CVT_SPACES_TO_TABS4: AsTabify4 (FileBuffer); break; case CVT_SPACES_TO_TABS8: AsTabify8 (FileBuffer); break; case CVT_COUNT_SHORTMULTILINE_COMMENTS: #ifdef ACPI_FUTURE_IMPLEMENTATION AsTrimComments (FileBuffer, Filename); #endif break; default: printf ("Unknown conversion subfunction opcode\n"); break; } } if (ConversionTable->NewHeader) { AsReplaceHeader (FileBuffer, ConversionTable->NewHeader); } if (SpdxHeader) { AsDoSpdxHeader (FileBuffer, SpdxHeader); } } /******************************************************************************* * * FUNCTION: AsCheckForNonPrintableChars * * PARAMETERS: FileBuffer - Buffer with contents of entire file * FileSize - Size of the file and buffer * * RETURN: TRUE if there are no non-printable characters * * DESCRIPTION: Scan a file for any non-printable ASCII bytes. * ******************************************************************************/ static BOOLEAN AsCheckForNonPrintableChars ( char *FileBuffer, UINT32 FileSize) { BOOLEAN Found = TRUE; UINT8 Byte; UINT32 i; /* Scan entire file for any non-printable characters */ for (i = 0; i < FileSize; i++) { Byte = FileBuffer[i]; if (!isprint (Byte) && !isspace (Byte)) { printf ( "Non-printable character (0x%2.2X) " "at file offset: %8u (0x%X)\n", Byte, i, i); Found = FALSE; } } return (Found); } /****************************************************************************** * * FUNCTION: AsProcessOneFile * * DESCRIPTION: Process one source file. The file is opened, read entirely * into a buffer, converted, then written to a new file. * ******************************************************************************/ ACPI_NATIVE_INT AsProcessOneFile ( ACPI_CONVERSION_TABLE *ConversionTable, char *SourcePath, char *TargetPath, int MaxPathLength, char *Filename, ACPI_NATIVE_INT FileType) { char *Pathname; char *OutPathname; int Status = 0; /* Allocate a file pathname buffer for both source and target */ Pathname = calloc (MaxPathLength + strlen (Filename) + 2, 1); if (!Pathname) { printf ("Could not allocate buffer for file pathnames\n"); return (-1); } Gbl_FileType = FileType; /* Generate the source pathname and read the file */ if (SourcePath) { strcpy (Pathname, SourcePath); strcat (Pathname, "/"); } strcat (Pathname, Filename); if (AsGetFile (Pathname, &Gbl_FileBuffer, &Gbl_FileSize)) { Status = -1; goto Exit1; } /* Exit now if simply checking the file for printable ascii chars */ if (Gbl_CheckAscii) { Status = 0; goto Exit2; } Gbl_HeaderSize = 0; if (strstr (Filename, ".asl")) { Gbl_HeaderSize = LINES_IN_ASL_HEADER; /* Lines in default ASL header */ } else if (strstr (Gbl_FileBuffer, LEGAL_HEADER_SIGNATURE)) { Gbl_HeaderSize = LINES_IN_LEGAL_HEADER; /* Normal C file and H header */ } else if (strstr (Gbl_FileBuffer, LINUX_HEADER_SIGNATURE)) { Gbl_HeaderSize = LINES_IN_LINUX_HEADER; /* Linuxized C file and H header */ } /* Process the file in the buffer */ Gbl_MadeChanges = FALSE; if (!Gbl_IgnoreLoneLineFeeds && Gbl_HasLoneLineFeeds) { /* * All lone LFs will be converted to CR/LF * (when file is written, Windows version only) */ printf ("Converting lone linefeeds\n"); Gbl_MadeChanges = TRUE; } AsConvertFile (ConversionTable, Gbl_FileBuffer, Pathname, FileType); if (!(ConversionTable->Flags & FLG_NO_FILE_OUTPUT)) { if (!(Gbl_Overwrite && !Gbl_MadeChanges)) { /* Generate the target pathname and write the file */ OutPathname = calloc (MaxPathLength + strlen (Filename) + 2 + strlen (TargetPath), 1); if (!OutPathname) { printf ("Could not allocate buffer for file pathnames\n"); Status = -1; goto Exit2; } strcpy (OutPathname, TargetPath); if (SourcePath) { strcat (OutPathname, "/"); strcat (OutPathname, Filename); } AsPutFile (OutPathname, Gbl_FileBuffer, ConversionTable->Flags); free (OutPathname); } } Exit2: free (Gbl_FileBuffer); Exit1: free (Pathname); return (Status); } /****************************************************************************** * * FUNCTION: AsCheckForDirectory * * DESCRIPTION: Check if the current file is a valid directory. If not, * construct the full pathname for the source and target paths. * Checks for the dot and dot-dot files (they are ignored) * ******************************************************************************/ ACPI_NATIVE_INT AsCheckForDirectory ( char *SourceDirPath, char *TargetDirPath, char *Filename, char **SourcePath, char **TargetPath) { char *SrcPath; char *TgtPath; if (!(strcmp (Filename, ".")) || !(strcmp (Filename, ".."))) { return (-1); } SrcPath = calloc (strlen (SourceDirPath) + strlen (Filename) + 2, 1); if (!SrcPath) { printf ("Could not allocate buffer for directory source pathname\n"); return (-1); } TgtPath = calloc (strlen (TargetDirPath) + strlen (Filename) + 2, 1); if (!TgtPath) { printf ("Could not allocate buffer for directory target pathname\n"); free (SrcPath); return (-1); } strcpy (SrcPath, SourceDirPath); strcat (SrcPath, "/"); strcat (SrcPath, Filename); strcpy (TgtPath, TargetDirPath); strcat (TgtPath, "/"); strcat (TgtPath, Filename); *SourcePath = SrcPath; *TargetPath = TgtPath; return (0); } /****************************************************************************** * * FUNCTION: AsGetFile * * DESCRIPTION: Open a file and read it entirely into a an allocated buffer * ******************************************************************************/ int AsGetFile ( char *Filename, char **FileBuffer, UINT32 *FileSize) { FILE *File; UINT32 Size; char *Buffer; size_t Actual; /* Binary mode leaves CR/LF pairs */ File = fopen (Filename, "rb"); if (!File) { printf ("Could not open file %s\n", Filename); return (-1); } /* Need file size to allocate a buffer */ Size = CmGetFileSize (File); if (Size == ACPI_UINT32_MAX) { printf ("Could not get file size for %s\n", Filename); goto ErrorExit; } /* * Create a buffer for the entire file * Add plenty extra buffer to accommodate string replacements */ Gbl_TotalSize += Size; Buffer = calloc (Size * 2, 1); if (!Buffer) { printf ("Could not allocate buffer of size %u\n", Size * 2); goto ErrorExit; } /* Read the entire file */ Actual = fread (Buffer, 1, Size, File); if (Actual != Size) { printf ("Could not read the input file %s (%u bytes)\n", Filename, Size); goto ErrorFree; } Buffer [Size] = 0; /* Null terminate the buffer */ fclose (File); /* This option checks the entire file for non-printable chars */ if (Gbl_CheckAscii) { if (AsCheckForNonPrintableChars (Buffer, Size)) { printf ("File contains only printable ASCII characters\n"); } free (Buffer); return (0); } /* Check for unix contamination */ Gbl_HasLoneLineFeeds = AsDetectLoneLineFeeds (Filename, Buffer); /* * Convert all CR/LF pairs to LF only. We do this locally so that * this code is portable across operating systems. */ AsConvertToLineFeeds (Buffer); *FileBuffer = Buffer; *FileSize = Size; return (0); ErrorFree: free (Buffer); ErrorExit: fclose (File); return (-1); } /****************************************************************************** * * FUNCTION: AsPutFile * * DESCRIPTION: Create a new output file and write the entire contents of the * buffer to the new file. Buffer must be a zero terminated string * ******************************************************************************/ int AsPutFile ( char *Pathname, char *FileBuffer, UINT32 SystemFlags) { FILE *File; UINT32 FileSize; size_t Actual; int Status = 0; /* Create the target file */ if (!(SystemFlags & FLG_NO_CARRIAGE_RETURNS)) { /* Put back the CR before each LF */ AsInsertCarriageReturns (FileBuffer); } File = fopen (Pathname, "w+b"); if (!File) { perror ("Could not create destination file"); printf ("Could not create destination file \"%s\"\n", Pathname); return (-1); } /* Write the buffer to the file */ FileSize = strlen (FileBuffer); Actual = fwrite (FileBuffer, 1, FileSize, File); if (Actual != FileSize) { printf ("Error writing output file \"%s\"\n", Pathname); Status = -1; } fclose (File); return (Status); } acpica-unix-20250404/source/tools/examples/0000775000175000017500000000000014773714134020016 5ustar ivanhuivanhuacpica-unix-20250404/source/tools/examples/examples.c0000775000175000017500000003470614773714134022015 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: examples - Example ACPICA initialization and execution code * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "examples.h" #define _COMPONENT ACPI_EXAMPLE ACPI_MODULE_NAME ("examples") /****************************************************************************** * * ACPICA Example Code * * This module contains examples of how the host OS should interface to the * ACPICA subsystem. * * 1) How to use the platform/acenv.h file and how to set configuration * options. * * 2) main - using the debug output mechanism and the error/warning output * macros. * * 3) Two examples of the ACPICA initialization sequence. The first is a * initialization with no "early" ACPI table access. The second shows * how to use ACPICA to obtain the tables very early during kernel * initialization, even before dynamic memory is available. * * 4) How to invoke a control method, including argument setup and how to * access the return value. * *****************************************************************************/ /* Local Prototypes */ static ACPI_STATUS InitializeFullAcpica (void); static ACPI_STATUS InstallHandlers (void); static void NotifyHandler ( ACPI_HANDLE Device, UINT32 Value, void *Context); static ACPI_STATUS RegionHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); static ACPI_STATUS RegionInit ( ACPI_HANDLE RegionHandle, UINT32 Function, void *HandlerContext, void **RegionContext); static void ExecuteMAIN (void); ACPI_STATUS InitializeAcpiTables ( void); ACPI_STATUS InitializeAcpi ( void); /****************************************************************************** * * FUNCTION: main * * PARAMETERS: argc, argv * * RETURN: Status * * DESCRIPTION: Main routine. Shows the use of the various output macros, as * well as the use of the debug layer/level globals. * *****************************************************************************/ int ACPI_SYSTEM_XFACE main ( int argc, char **argv) { ACPI_DEBUG_INITIALIZE (); /* For debug version only */ printf (ACPI_COMMON_SIGNON ("ACPI Example Code")); /* Initialize the local ACPI tables (RSDP/RSDT/XSDT/FADT/DSDT/FACS) */ ExInitializeAcpiTables (); /* Initialize the ACPICA subsystem */ InitializeFullAcpica (); /* Example warning and error output */ ACPI_INFO (("Example ACPICA info message")); ACPI_WARNING ((AE_INFO, "Example ACPICA warning message")); ACPI_ERROR ((AE_INFO, "Example ACPICA error message")); ACPI_EXCEPTION ((AE_INFO, AE_AML_OPERAND_TYPE, "Example ACPICA exception message")); ExecuteOSI (NULL, 0); ExecuteMAIN (); return (0); } /****************************************************************************** * * Example ACPICA initialization code. This shows a full initialization with * no early ACPI table access. * *****************************************************************************/ static ACPI_STATUS InitializeFullAcpica (void) { ACPI_STATUS Status; /* Initialize the ACPICA subsystem */ Status = AcpiInitializeSubsystem (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While initializing ACPICA")); return (Status); } /* Initialize the ACPICA Table Manager and get all ACPI tables */ ACPI_INFO (("Loading ACPI tables")); Status = AcpiInitializeTables (NULL, 16, FALSE); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While initializing Table Manager")); return (Status); } /* Install local handlers */ Status = InstallHandlers (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While installing handlers")); return (Status); } /* Initialize the ACPI hardware */ Status = AcpiEnableSubsystem (ACPI_FULL_INITIALIZATION); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While enabling ACPICA")); return (Status); } /* Create the ACPI namespace from ACPI tables */ Status = AcpiLoadTables (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While loading ACPI tables")); return (Status); } /* Complete the ACPI namespace object initialization */ Status = AcpiInitializeObjects (ACPI_FULL_INITIALIZATION); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While initializing ACPICA objects")); return (Status); } return (AE_OK); } /****************************************************************************** * * Example ACPICA initialization code with early ACPI table access. This shows * an initialization that requires early access to ACPI tables (before * kernel dynamic memory is available) * *****************************************************************************/ /* * The purpose of this static table array is to avoid the use of kernel * dynamic memory which may not be available during early ACPI table * access. */ #define ACPI_MAX_INIT_TABLES 16 static ACPI_TABLE_DESC TableArray[ACPI_MAX_INIT_TABLES]; /* * This function would be called early in kernel initialization. After this * is called, all ACPI tables are available to the host. */ ACPI_STATUS InitializeAcpiTables ( void) { ACPI_STATUS Status; /* Initialize the ACPICA Table Manager and get all ACPI tables */ Status = AcpiInitializeTables (TableArray, ACPI_MAX_INIT_TABLES, TRUE); return (Status); } /* * This function would be called after the kernel is initialized and * dynamic/virtual memory is available. It completes the initialization of * the ACPICA subsystem. */ ACPI_STATUS InitializeAcpi ( void) { ACPI_STATUS Status; /* Initialize the ACPICA subsystem */ Status = AcpiInitializeSubsystem (); if (ACPI_FAILURE (Status)) { return (Status); } /* Copy the root table list to dynamic memory */ Status = AcpiReallocateRootTable (); if (ACPI_FAILURE (Status)) { return (Status); } /* Install local handlers */ Status = InstallHandlers (); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While installing handlers")); return (Status); } /* Initialize the ACPI hardware */ Status = AcpiEnableSubsystem (ACPI_FULL_INITIALIZATION); if (ACPI_FAILURE (Status)) { return (Status); } /* Create the ACPI namespace from ACPI tables */ Status = AcpiLoadTables (); if (ACPI_FAILURE (Status)) { return (Status); } /* Complete the ACPI namespace object initialization */ Status = AcpiInitializeObjects (ACPI_FULL_INITIALIZATION); if (ACPI_FAILURE (Status)) { return (Status); } return (AE_OK); } /****************************************************************************** * * Example ACPICA handler and handler installation * *****************************************************************************/ static void NotifyHandler ( ACPI_HANDLE Device, UINT32 Value, void *Context) { ACPI_INFO (("Received a notify 0x%X", Value)); } static ACPI_STATUS RegionInit ( ACPI_HANDLE RegionHandle, UINT32 Function, void *HandlerContext, void **RegionContext) { if (Function == ACPI_REGION_DEACTIVATE) { *RegionContext = NULL; } else { *RegionContext = RegionHandle; } return (AE_OK); } static ACPI_STATUS RegionHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) { ACPI_INFO (("Received a region access")); return (AE_OK); } static ACPI_STATUS InstallHandlers (void) { ACPI_STATUS Status; /* Install global notify handler */ Status = AcpiInstallNotifyHandler (ACPI_ROOT_OBJECT, ACPI_SYSTEM_NOTIFY, NotifyHandler, NULL); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While installing Notify handler")); return (Status); } Status = AcpiInstallAddressSpaceHandler (ACPI_ROOT_OBJECT, ACPI_ADR_SPACE_SYSTEM_MEMORY, RegionHandler, RegionInit, NULL); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While installing an OpRegion handler")); return (Status); } return (AE_OK); } /****************************************************************************** * * Examples of control method execution. * * _OSI is a predefined method that is implemented internally within ACPICA. * * Shows the following elements: * * 1) How to setup a control method argument and argument list * 2) How to setup the return value object * 3) How to invoke AcpiEvaluateObject * 4) How to check the returned ACPI_STATUS * 5) How to analyze the return value * *****************************************************************************/ ACPI_STATUS ExecuteOSI ( char *OsiString, UINT64 ExpectedResult) { ACPI_STATUS Status; ACPI_OBJECT_LIST ArgList; ACPI_OBJECT Arg[1]; ACPI_BUFFER ReturnValue; ACPI_OBJECT *Object; ACPI_INFO (("Executing _OSI reserved method")); /* Setup input argument */ ArgList.Count = 1; ArgList.Pointer = Arg; Arg[0].Type = ACPI_TYPE_STRING; Arg[0].String.Pointer = "Windows 2001"; Arg[0].String.Length = strlen (Arg[0].String.Pointer); /* Ask ACPICA to allocate space for the return object */ ReturnValue.Length = ACPI_ALLOCATE_BUFFER; Status = AcpiEvaluateObject (NULL, "\\_OSI", &ArgList, &ReturnValue); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While executing _OSI")); return (AE_OK); } /* Ensure that the return object is large enough */ if (ReturnValue.Length < sizeof (ACPI_OBJECT)) { AcpiOsPrintf ("Return value from _OSI method too small, %.8X\n", (UINT32) ReturnValue.Length); goto ErrorExit; } /* Expect an integer return value from execution of _OSI */ Object = ReturnValue.Pointer; if (Object->Type != ACPI_TYPE_INTEGER) { AcpiOsPrintf ("Invalid return type from _OSI, %.2X\n", Object->Type); } ACPI_INFO (("_OSI returned 0x%8.8X", (UINT32) Object->Integer.Value)); ErrorExit: /* Free a buffer created via ACPI_ALLOCATE_BUFFER */ AcpiOsFree (ReturnValue.Pointer); return (AE_OK); } /****************************************************************************** * * Execute an actual control method in the DSDT (MAIN) * *****************************************************************************/ static void ExecuteMAIN (void) { ACPI_STATUS Status; ACPI_OBJECT_LIST ArgList; ACPI_OBJECT Arg[1]; ACPI_BUFFER ReturnValue; ACPI_OBJECT *Object; ACPI_INFO (("Executing MAIN method")); /* Setup input argument */ ArgList.Count = 1; ArgList.Pointer = Arg; Arg[0].Type = ACPI_TYPE_STRING; Arg[0].String.Pointer = "Method [MAIN] is executing"; Arg[0].String.Length = strlen (Arg[0].String.Pointer); /* Ask ACPICA to allocate space for the return object */ ReturnValue.Length = ACPI_ALLOCATE_BUFFER; Status = AcpiEvaluateObject (NULL, "\\MAIN", &ArgList, &ReturnValue); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "While executing MAIN")); return; } if (ReturnValue.Pointer) { /* Obtain and validate the returned ACPI_OBJECT */ Object = ReturnValue.Pointer; if (Object->Type == ACPI_TYPE_STRING) { AcpiOsPrintf ("Method [MAIN] returned: \"%s\"\n", Object->String.Pointer); } ACPI_FREE (ReturnValue.Pointer); } } acpica-unix-20250404/source/tools/examples/examples.h0000775000175000017500000000441614773714134022015 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: examples.h - Common include for Examples program * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef _EXAMPLES_H #define _EXAMPLES_H #include "acpi.h" #include "accommon.h" #include "acapps.h" #include "../acpiexec/aecommon.h" #include void ExInitializeAcpiTables ( void); #endif acpica-unix-20250404/source/tools/examples/extables.c0000775000175000017500000005203714773714134022003 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: extables - ACPI tables for Example program * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "examples.h" #include "actables.h" #define _COMPONENT ACPI_EXAMPLE ACPI_MODULE_NAME ("extables") /****************************************************************************** * * ACPICA Example tables and table setup * * This module contains the ACPI tables used for the example program. The * original source code for the tables appears at the end of the module. * *****************************************************************************/ /* These tables will be modified at runtime */ unsigned char RsdpCode[] = { 0x52,0x53,0x44,0x20,0x50,0x54,0x52,0x20, /* 00000000 "RSD PTR " */ 0x43,0x49,0x4E,0x54,0x45,0x4C,0x20,0x02, /* 00000008 "CINTEL ." */ 0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x00, /* 00000010 "....$..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000018 "........" */ 0xDC,0x00,0x00,0x00 /* 00000020 "...." */ }; unsigned char RsdtCode[] = { 0x52,0x53,0x44,0x54,0x28,0x00,0x00,0x00, /* 00000000 "RSDT(..." */ 0x01,0x10,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x15,0x11,0x13,0x20,0x01,0x00,0x00,0x00 /* 00000020 "... ...." */ }; unsigned char XsdtCode[] = { 0x58,0x53,0x44,0x54,0x2C,0x00,0x00,0x00, /* 00000000 "XSDT,..." */ 0x01,0x06,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x15,0x11,0x13,0x20,0x01,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00 /* 00000028 "...." */ }; unsigned char FadtCode[] = { 0x46,0x41,0x43,0x50,0x0C,0x01,0x00,0x00, /* 00000000 "FACP...." */ 0x05,0x64,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".dINTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x15,0x11,0x13,0x20,0x01,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000048 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x04,0x02,0x01,0x04,0x08,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x01, /* 00000070 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x01,0x20,0x00,0x02, /* 00000090 "..... .." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x01,0x10,0x00,0x02, /* 000000A8 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x00, /* 000000C0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C8 "........" */ 0x01,0x20,0x00,0x03,0x01,0x00,0x00,0x00, /* 000000D0 ". ......" */ 0x00,0x00,0x00,0x00,0x01,0x40,0x00,0x01, /* 000000D8 ".....@.." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x01, /* 000000F0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F8 "........" */ 0x01,0x08,0x00,0x01,0x00,0x00,0x00,0x00, /* 00000100 "........" */ 0x00,0x00,0x00,0x00 /* 00000108 "...." */ }; /* Fixed tables */ static unsigned char FacsCode[] = { 0x46,0x41,0x43,0x53,0x40,0x00,0x00,0x00, /* 00000000 "FACS@..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000008 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000010 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000018 "........" */ 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000020 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000038 "........" */ }; static unsigned char DsdtCode[] = { 0x44,0x53,0x44,0x54,0x8C,0x00,0x00,0x00, /* 00000000 "DSDT...." */ 0x02,0x76,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 ".vIntel." */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x24,0x04,0x14,0x20,0x5B,0x80,0x47,0x4E, /* 00000020 "$.. [.GN" */ 0x56,0x53,0x00,0x0C,0x98,0xEE,0xBB,0xDF, /* 00000028 "VS......" */ 0x0A,0x13,0x5B,0x81,0x0B,0x47,0x4E,0x56, /* 00000030 "..[..GNV" */ 0x53,0x00,0x46,0x4C,0x44,0x31,0x08,0x14, /* 00000038 "S.FLD1.." */ 0x4C,0x04,0x4D,0x41,0x49,0x4E,0x01,0x70, /* 00000040 "L.MAIN.p" */ 0x73,0x0D,0x4D,0x61,0x69,0x6E,0x2F,0x41, /* 00000048 "s.Main/A" */ 0x72,0x67,0x30,0x3A,0x20,0x00,0x68,0x00, /* 00000050 "rg0: .h." */ 0x5B,0x31,0x70,0x00,0x46,0x4C,0x44,0x31, /* 00000058 "[1p.FLD1" */ 0x86,0x5C,0x00,0x00,0xA4,0x0D,0x4D,0x61, /* 00000060 ".\....Ma" */ 0x69,0x6E,0x20,0x73,0x75,0x63,0x63,0x65, /* 00000068 "in succe" */ 0x73,0x73,0x66,0x75,0x6C,0x6C,0x79,0x20, /* 00000070 "ssfully " */ 0x63,0x6F,0x6D,0x70,0x6C,0x65,0x74,0x65, /* 00000078 "complete" */ 0x64,0x20,0x65,0x78,0x65,0x63,0x75,0x74, /* 00000080 "d execut" */ 0x69,0x6F,0x6E,0x00 /* 00000088 "ion." */ }; /* Useful pointers */ ACPI_TABLE_RSDP *Rsdp = ACPI_CAST_PTR (ACPI_TABLE_RSDP, RsdpCode); ACPI_TABLE_RSDT *Rsdt = ACPI_CAST_PTR (ACPI_TABLE_RSDT, RsdtCode); ACPI_TABLE_XSDT *Xsdt = ACPI_CAST_PTR (ACPI_TABLE_XSDT, XsdtCode); ACPI_TABLE_FADT *Fadt = ACPI_CAST_PTR (ACPI_TABLE_FADT, FadtCode); /****************************************************************************** * * Build the various required ACPI tables: * * 1) Setup RSDP to point to the RSDT and XSDT * 2) Setup RSDT/XSDT to point to the FADT * 3) Setup FADT to point to the DSDT and FACS * 4) Update checksums for all modified tables * *****************************************************************************/ void ExInitializeAcpiTables ( void) { /* Setup RSDP */ Rsdp->RsdtPhysicalAddress = (UINT32) ACPI_TO_INTEGER (RsdtCode); Rsdp->XsdtPhysicalAddress = (UINT64) ACPI_TO_INTEGER (XsdtCode); /* RSDT and XSDT */ Rsdt->TableOffsetEntry[0] = (UINT32) ACPI_TO_INTEGER (FadtCode); Xsdt->TableOffsetEntry[0] = (UINT64) ACPI_TO_INTEGER (FadtCode); /* FADT */ Fadt->Facs = 0; Fadt->Dsdt = 0; Fadt->XFacs = (UINT64) ACPI_TO_INTEGER (FacsCode); Fadt->XDsdt = (UINT64) ACPI_TO_INTEGER (DsdtCode); /* Set new checksums for the modified tables */ Rsdp->Checksum = 0; Rsdp->Checksum = (UINT8) -AcpiUtChecksum ( (void *) RsdpCode, ACPI_RSDP_CHECKSUM_LENGTH); Rsdt->Header.Checksum = 0; Rsdt->Header.Checksum = (UINT8) -AcpiUtChecksum ( (void *) Rsdt, Rsdt->Header.Length); Xsdt->Header.Checksum = 0; Xsdt->Header.Checksum = (UINT8) -AcpiUtChecksum ( (void *) Xsdt, Xsdt->Header.Length); Fadt->Header.Checksum = 0; Fadt->Header.Checksum = (UINT8) -AcpiUtChecksum ( (void *) Fadt, Fadt->Header.Length); } /****************************************************************************** * * OSL support - return the address of the RSDP * *****************************************************************************/ ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer ( void) { return (ACPI_PTR_TO_PHYSADDR (RsdpCode)); } #ifdef DO_NOT_COMPILE_ACPI_TABLE_CODE /****************************************************************************** * * ACPICA Example table source code * * This is the original source code for the tables above * *****************************************************************************/ /* RSDP */ [0008] Signature : "RSD PTR " [0001] Checksum : 43 [0006] Oem ID : "INTEL " [0001] Revision : 02 [0004] RSDT Address : 00000000 [0004] Length : 00000024 [0008] XSDT Address : 0000000000000000 [0001] Extended Checksum : DC [0003] Reserved : 000000 /* RSDT */ [0004] Signature : "RSDT" [Root System Description Table] [0004] Table Length : 00000044 [0001] Revision : 01 [0001] Checksum : B1 [0006] Oem ID : "INTEL " [0008] Oem Table ID : "TEMPLATE" [0004] Oem Revision : 00000001 [0004] Asl Compiler ID : "INTL" [0004] Asl Compiler Revision : 20100528 [0004] ACPI Table Address 0 : 00000001 /* XSDT */ [0004] Signature : "XSDT" [Extended System Description Table] [0004] Table Length : 00000064 [0001] Revision : 01 [0001] Checksum : 8B [0006] Oem ID : "INTEL " [0008] Oem Table ID : "TEMPLATE" [0004] Oem Revision : 00000001 [0004] Asl Compiler ID : "INTL" [0004] Asl Compiler Revision : 20100528 [0008] ACPI Table Address 0 : 0000000000000001 /* FADT */ [0004] Signature : "FACP" [Fixed ACPI Description Table (FADT)] [0004] Table Length : 0000010C [0001] Revision : 05 [0001] Checksum : 18 [0006] Oem ID : "INTEL " [0008] Oem Table ID : "TEMPLATE" [0004] Oem Revision : 00000000 [0004] Asl Compiler ID : "INTL" [0004] Asl Compiler Revision : 20111123 [0004] FACS Address : 00000001 [0004] DSDT Address : 00000001 [0001] Model : 00 [0001] PM Profile : 00 [Unspecified] [0002] SCI Interrupt : 0000 [0004] SMI Command Port : 00000000 [0001] ACPI Enable Value : 00 [0001] ACPI Disable Value : 00 [0001] S4BIOS Command : 00 [0001] P-State Control : 00 [0004] PM1A Event Block Address : 00000001 [0004] PM1B Event Block Address : 00000000 [0004] PM1A Control Block Address : 00000001 [0004] PM1B Control Block Address : 00000000 [0004] PM2 Control Block Address : 00000001 [0004] PM Timer Block Address : 00000001 [0004] GPE0 Block Address : 00000001 [0004] GPE1 Block Address : 00000000 [0001] PM1 Event Block Length : 04 [0001] PM1 Control Block Length : 02 [0001] PM2 Control Block Length : 01 [0001] PM Timer Block Length : 04 [0001] GPE0 Block Length : 08 [0001] GPE1 Block Length : 00 [0001] GPE1 Base Offset : 00 [0001] _CST Support : 00 [0002] C2 Latency : 0000 [0002] C3 Latency : 0000 [0002] CPU Cache Size : 0000 [0002] Cache Flush Stride : 0000 [0001] Duty Cycle Offset : 00 [0001] Duty Cycle Width : 00 [0001] RTC Day Alarm Index : 00 [0001] RTC Month Alarm Index : 00 [0001] RTC Century Index : 00 [0002] Boot Flags (decoded below) : 0000 Legacy Devices Supported (V2) : 0 8042 Present on ports 60/64 (V2) : 0 VGA Not Present (V4) : 0 MSI Not Supported (V4) : 0 PCIe ASPM Not Supported (V4) : 0 CMOS RTC Not Present (V5) : 0 [0001] Reserved : 00 [0004] Flags (decoded below) : 00000000 WBINVD instruction is operational (V1) : 0 WBINVD flushes all caches (V1) : 0 All CPUs support C1 (V1) : 0 C2 works on MP system (V1) : 0 Control Method Power Button (V1) : 0 Control Method Sleep Button (V1) : 0 RTC wake not in fixed reg space (V1) : 0 RTC can wake system from S4 (V1) : 0 32-bit PM Timer (V1) : 0 Docking Supported (V1) : 0 Reset Register Supported (V2) : 0 Sealed Case (V3) : 0 Headless - No Video (V3) : 0 Use native instr after SLP_TYPx (V3) : 0 PCIEXP_WAK Bits Supported (V4) : 0 Use Platform Timer (V4) : 0 RTC_STS valid on S4 wake (V4) : 0 Remote Power-on capable (V4) : 0 Use APIC Cluster Model (V4) : 0 Use APIC Physical Destination Mode (V4) : 0 Hardware Reduced (V5) : 0 Low Power S0 Idle (V5) : 0 [0012] Reset Register : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 08 [0001] Bit Offset : 00 [0001] Encoded Access Width : 01 [Byte Access:8] [0008] Address : 0000000000000001 [0001] Value to cause reset : 00 [0003] Reserved : 000000 [0008] FACS Address : 0000000000000001 [0008] DSDT Address : 0000000000000001 [0012] PM1A Event Block : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 20 [0001] Bit Offset : 00 [0001] Encoded Access Width : 02 [Word Access:16] [0008] Address : 0000000000000001 [0012] PM1B Event Block : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 00 [0001] Bit Offset : 00 [0001] Encoded Access Width : 00 [Undefined/Legacy] [0008] Address : 0000000000000000 [0012] PM1A Control Block : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 10 [0001] Bit Offset : 00 [0001] Encoded Access Width : 02 [Word Access:16] [0008] Address : 0000000000000001 [0012] PM1B Control Block : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 00 [0001] Bit Offset : 00 [0001] Encoded Access Width : 00 [Undefined/Legacy] [0008] Address : 0000000000000000 [0012] PM2 Control Block : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 08 [0001] Bit Offset : 00 [0001] Encoded Access Width : 00 [Undefined/Legacy] [0008] Address : 0000000000000001 [0012] PM Timer Block : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 20 [0001] Bit Offset : 00 [0001] Encoded Access Width : 03 [DWord Access:32] [0008] Address : 0000000000000001 [0012] GPE0 Block : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 40 [0001] Bit Offset : 00 [0001] Encoded Access Width : 01 [Byte Access:8] [0008] Address : 0000000000000001 [0012] GPE1 Block : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 00 [0001] Bit Offset : 00 [0001] Encoded Access Width : 00 [Undefined/Legacy] [0008] Address : 0000000000000000 [0012] Sleep Control Register : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 08 [0001] Bit Offset : 00 [0001] Encoded Access Width : 01 [Byte Access:8] [0008] Address : 0000000000000000 [0012] Sleep Status Register : [Generic Address Structure] [0001] Space ID : 01 [SystemIO] [0001] Bit Width : 08 [0001] Bit Offset : 00 [0001] Encoded Access Width : 01 [Byte Access:8] [0008] Address : 0000000000000000 /* FACS */ [0004] Signature : "FACS" [0004] Length : 00000040 [0004] Hardware Signature : 00000000 [0004] 32 Firmware Waking Vector : 00000000 [0004] Global Lock : 00000000 [0004] Flags (decoded below) : 00000000 S4BIOS Support Present : 0 64-bit Wake Supported (V2) : 0 [0008] 64 Firmware Waking Vector : 0000000000000000 [0001] Version : 02 [0003] Reserved : 000000 [0004] OspmFlags (decoded below) : 00000000 64-bit Wake Env Required (V2) : 0 /* DSDT - ASL code */ DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 0x00000001) { OperationRegion (GNVS, SystemMemory, 0xDFBBEE98, 0x00000013) Field (GNVS, AnyAcc, NoLock, Preserve) { FLD1, 8, } Method (MAIN, 1, NotSerialized) { Store (Concatenate ("Main/Arg0: ", Arg0), Debug) Store (Zero, FLD1) Notify (\, Zero) Return ("Main successfully completed execution") } } #endif acpica-unix-20250404/source/tools/examples/exstubs.c0000775000175000017500000000562414773714134021671 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: exstubs - Stub routines for the Example program * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "examples.h" #include #include #include #define _COMPONENT ACPI_EXAMPLE ACPI_MODULE_NAME ("exstubs") /****************************************************************************** * * DESCRIPTION: Stubs used to facilitate linkage of the example program * *****************************************************************************/ /* Hardware manager */ ACPI_STATUS AcpiHwReadPort ( ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width) { return (AE_OK); } ACPI_STATUS AcpiHwWritePort ( ACPI_IO_ADDRESS Address, UINT32 Value, UINT32 Width) { return (AE_OK); } /* Event manager */ ACPI_STATUS AcpiEvInitializeEvents ( void) { return (AE_OK); } acpica-unix-20250404/source/tools/acpiexec/0000775000175000017500000000000014773714134017761 5ustar ivanhuivanhuacpica-unix-20250404/source/tools/acpiexec/aetables.h0000775000175000017500000005273614773714134021732 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aetables.h - Precompiled AML ACPI tables for acpiexec * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __AETABLES_H__ #define __AETABLES_H__ /* * Miscellaneous pre-compiled AML ACPI tables to be installed */ /* Local DSDT used only if not present in the input */ static unsigned char LocalDsdtCode[] = { 0x44,0x53,0x44,0x54,0x24,0x00,0x00,0x00, /* 00000000 "DSDT$..." */ 0x02,0x2C,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 ".,Intel." */ 0x4C,0x6F,0x63,0x61,0x6C,0x00,0x00,0x00, /* 00000010 "Local..." */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x30,0x07,0x09,0x20, }; /* Several example SSDTs */ /* SSDT1 is used by ASLTS; if changed here, must also be changed in dtregions.asl */ static unsigned char Ssdt1Code[] = /* Has method _T98 */ { 0x53,0x53,0x44,0x54,0x3E,0x00,0x00,0x00, /* 00000000 "SSDT>..." */ 0x02,0x08,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 "..Intel." */ 0x73,0x73,0x64,0x74,0x31,0x00,0x00,0x00, /* 00000010 "ssdt1..." */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x20,0x06,0x12,0x20,0x14,0x19,0x5F,0x54, /* 00000020 " .. .._T" */ 0x39,0x38,0x01,0x70,0x0D,0x53,0x53,0x44, /* 00000028 "98.p.SSD" */ 0x54,0x31,0x20,0x2D,0x20,0x5F,0x54,0x39, /* 00000030 "T1 - _T9" */ 0x38,0x00,0x5B,0x31,0xA4,0x00 /* 00000038 "8.[1.." */ }; unsigned char Ssdt2Code[] = /* Has method _T99 */ { 0x53,0x53,0x44,0x54,0x3E,0x00,0x00,0x00, /* 00000000 "SSDT>..." */ 0x02,0xFE,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 "..Intel." */ 0x73,0x73,0x64,0x74,0x32,0x00,0x00,0x00, /* 00000010 "ssdt2..." */ 0x02,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x20,0x06,0x12,0x20,0x14,0x19,0x5F,0x54, /* 00000020 " .. .._T" */ 0x39,0x39,0x06,0x70,0x0D,0x53,0x53,0x44, /* 00000028 "99.p.SSD" */ 0x54,0x32,0x20,0x2D,0x20,0x5F,0x54,0x39, /* 00000030 "T2 - _T9" */ 0x39,0x00,0x5B,0x31,0xA4,0x00 /* 00000038 "9.[1.." */ }; unsigned char Ssdt3Code[] = /* OEM9: Has method _T97 */ { 0x4F,0x45,0x4D,0x39,0x30,0x00,0x00,0x00, /* 00000000 "OEM10..." */ 0x01,0xDD,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 "..Intel." */ 0x4D,0x61,0x6E,0x79,0x00,0x00,0x00,0x00, /* 00000010 "Many...." */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x24,0x04,0x03,0x20,0x14,0x0B,0x5F,0x54, /* 00000020 "$.. .._T" */ 0x39,0x37,0x00,0x70,0x0A,0x04,0x60,0xA4, /* 00000028 "97.p..`." */ }; unsigned char Ssdt4Code[] = /* Has method _T96 */ { 0x53,0x53,0x44,0x54,0x2D,0x00,0x00,0x00, /* 00000000 "SSDT-..." */ 0x02,0x2B,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 ".+Intel." */ 0x73,0x73,0x64,0x74,0x34,0x00,0x00,0x00, /* 00000010 "ssdt4..." */ 0x04,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x20,0x06,0x12,0x20,0x14,0x08,0x5F,0x54, /* 00000020 " .. .._T" */ 0x39,0x36,0x05,0xA4,0x00 /* 00000028 "96..." */ }; /* "Hardware-Reduced" ACPI 5.0 FADT (No FACS, no ACPI hardware) */ unsigned char HwReducedFadtCode[] = { 0x46,0x41,0x43,0x50,0x0C,0x01,0x00,0x00, /* 00000000 "FACP...." */ 0x05,0x8C,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x41,0x43,0x50,0x49,0x35,0x30,0x20,0x20, /* 00000010 "ACPI50 " */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x13,0x04,0x11,0x20,0x00,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x78,0x00,0x01,0x08,0x00,0x01, /* 00000070 "..x....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x01,0x20,0x00,0x02, /* 00000090 "..... .." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x01,0x10,0x00,0x02, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x00, /* 000000C0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C8 "........" */ 0x01,0x20,0x00,0x03,0x00,0x00,0x00,0x00, /* 000000D0 ". ......" */ 0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x01, /* 000000D8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x01, /* 000000F0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F8 "........" */ 0x01,0x08,0x00,0x01,0x01,0x00,0x00,0x00, /* 00000100 "........" */ 0x00,0x00,0x00,0x00 /* 00000108 "........" */ }; /* Example OEM table */ static unsigned char Oem1Code[] = { 0x4F,0x45,0x4D,0x31,0x38,0x00,0x00,0x00, /* 00000000 "OEM18..." */ 0x01,0x4B,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 ".KIntel." */ 0x4D,0x61,0x6E,0x79,0x00,0x00,0x00,0x00, /* 00000010 "Many...." */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x18,0x09,0x03,0x20,0x08,0x5F,0x58,0x54, /* 00000020 "... ._XT" */ 0x32,0x0A,0x04,0x14,0x0C,0x5F,0x58,0x54, /* 00000028 "2...._XT" */ 0x31,0x00,0x70,0x01,0x5F,0x58,0x54,0x32, /* 00000030 "1.p._XT2" */ }; /* ASL source for this table is at the end of this file */ static unsigned char OemxCode[] = { 0x4F,0x45,0x4D,0x58,0xB0,0x00,0x00,0x00, /* 00000000 "OEMX...." */ 0x02,0x54,0x4D,0x79,0x4F,0x45,0x4D,0x00, /* 00000008 ".TMyOEM." */ 0x54,0x65,0x73,0x74,0x00,0x00,0x00,0x00, /* 00000010 "Test...." */ 0x32,0x04,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "2...INTL" */ 0x31,0x03,0x10,0x20,0x14,0x1D,0x5F,0x49, /* 00000020 "1.. .._I" */ 0x4E,0x49,0x00,0x70,0x0D,0x54,0x61,0x62, /* 00000028 "NI.p.Tab" */ 0x6C,0x65,0x20,0x4F,0x45,0x4D,0x58,0x20, /* 00000030 "le OEMX " */ 0x72,0x75,0x6E,0x6E,0x69,0x6E,0x67,0x00, /* 00000038 "running." */ 0x5B,0x31,0x10,0x22,0x5C,0x5F,0x47,0x50, /* 00000040 "[1."\_GP" */ 0x45,0x14,0x06,0x5F,0x45,0x30,0x37,0x00, /* 00000048 "E.._E07." */ 0x14,0x06,0x5F,0x45,0x32,0x32,0x00,0x14, /* 00000050 ".._E22.." */ 0x06,0x5F,0x4C,0x33,0x31,0x00,0x14,0x06, /* 00000058 "._L31..." */ 0x5F,0x4C,0x36,0x36,0x00,0x5B,0x82,0x10, /* 00000060 "_L66.[.." */ 0x4F,0x45,0x4D,0x31,0x08,0x5F,0x50,0x52, /* 00000068 "OEM1._PR" */ 0x57,0x12,0x05,0x02,0x0A,0x07,0x00,0x5B, /* 00000070 "W......[" */ 0x82,0x10,0x4F,0x45,0x4D,0x32,0x08,0x5F, /* 00000078 "..OEM2._" */ 0x50,0x52,0x57,0x12,0x05,0x02,0x0A,0x66, /* 00000080 "PRW....f" */ 0x00,0x10,0x26,0x5C,0x47,0x50,0x45,0x32, /* 00000088 "..&\GPE2" */ 0x14,0x06,0x5F,0x4C,0x30,0x31,0x00,0x14, /* 00000090 ".._L01.." */ 0x06,0x5F,0x45,0x30,0x37,0x00,0x08,0x5F, /* 00000098 "._E07.._" */ 0x50,0x52,0x57,0x12,0x0C,0x02,0x12,0x08, /* 000000A0 "PRW....." */ 0x02,0x5C,0x47,0x50,0x45,0x32,0x01,0x00 /* 000000A8 ".\GPE2.." */ }; /* Example ECDT */ unsigned char EcdtCode[] = { 0x45,0x43,0x44,0x54,0x4E,0x00,0x00,0x00, /* 00000000 "ECDTN..." */ 0x01,0x94,0x20,0x49,0x6E,0x74,0x65,0x6C, /* 00000008 ".. Intel" */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x16,0x03,0x11,0x20,0x01,0x08,0x00,0x00, /* 00000020 "... ...." */ 0x66,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "f......." */ 0x01,0x08,0x00,0x00,0x62,0x00,0x00,0x00, /* 00000030 "....b..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x09,0x5C,0x5F,0x53,0x42,0x2E,0x50,0x43, /* 00000040 ".\_SB.PC" */ 0x49,0x30,0x2E,0x45,0x43,0x00 /* 00000048 "I0.EC." */ }; /* Test for multiple UEFI tables */ unsigned char Uefi1Code[] = { 0x55,0x45,0x46,0x49,0x36,0x00,0x00,0x00, /* 00000000 "UEFI6..." */ 0x01,0x6E,0x20,0x49,0x6E,0x74,0x65,0x6C, /* 00000008 ".n Intel" */ 0x20,0x20,0x20,0x55,0x45,0x46,0x49,0x31, /* 00000010 " UEFI1" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x23,0x08,0x13,0x20,0x06,0x07,0x08,0x09, /* 00000020 "#.. ...." */ 0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B, /* 00000028 "........" */ 0x0C,0x0D,0x0E,0x0F,0x36,0x00 /* 00000030 "....6." */ }; unsigned char Uefi2Code[] = { 0x55,0x45,0x46,0x49,0xAA,0x00,0x00,0x00, /* 00000000 "UEFI...." */ 0x01,0xE0,0x20,0x49,0x6E,0x74,0x65,0x6C, /* 00000008 ".. Intel" */ 0x20,0x20,0x20,0x55,0x45,0x46,0x49,0x32, /* 00000010 " UEFI2" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x23,0x08,0x13,0x20,0x67,0x45,0x23,0x01, /* 00000020 "#.. gE#." */ 0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B, /* 00000028 "........" */ 0x0C,0x0D,0x0E,0x0F,0x36,0x00,0x04,0x19, /* 00000030 "....6..." */ 0x00,0x56,0x34,0xF2,0x04,0x03,0x02,0x01, /* 00000038 ".V4....." */ 0x77,0x66,0x55,0x44,0x33,0x22,0x11,0x1E, /* 00000040 "wfUD3".." */ 0x1C,0x1F,0x14,0x10,0x0C,0x08,0x04,0xAB, /* 00000048 "........" */ 0x54,0x68,0x69,0x73,0x20,0x69,0x73,0x20, /* 00000050 "This is " */ 0x61,0x20,0x73,0x74,0x72,0x69,0x6E,0x67, /* 00000058 "a string" */ 0x00,0x5C,0x50,0x43,0x49,0x30,0x5C,0x41, /* 00000060 ".\PCI0\A" */ 0x42,0x43,0x44,0x00,0x36,0x00,0x55,0x00, /* 00000068 "BCD.6.U." */ 0x6E,0x00,0x69,0x00,0x63,0x00,0x6F,0x00, /* 00000070 "n.i.c.o." */ 0x64,0x00,0x65,0x00,0x20,0x00,0x53,0x00, /* 00000078 "d.e. .S." */ 0x74,0x00,0x72,0x00,0x69,0x00,0x6E,0x00, /* 00000080 "t.r.i.n." */ 0x67,0x00,0x00,0x00,0x58,0x5B,0x00,0x00, /* 00000088 "g...X[.." */ 0x00,0x00,0x00,0x00,0x41,0x42,0x43,0x44, /* 00000090 "....ABCD" */ 0x45,0x00,0x00,0x01,0x02,0x03,0x04,0x05, /* 00000098 "E......." */ 0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D, /* 000000A0 "........" */ 0x0E,0x0F /* 000000A8 ".." */ }; /* * Example installable control method * * DefinitionBlock ("", "DSDT", 2, "Intel", "MTHDTEST", 0x20090512) * { * Method (\_SI_._T97, 1, Serialized) * { * Store ("Example installed method", Debug) * Store (Arg0, Debug) * Return () * } * } * * Compiled byte code below. */ static unsigned char MethodCode[] = { 0x44,0x53,0x44,0x54,0x53,0x00,0x00,0x00, /* 00000000 "DSDTS..." */ 0x02,0xF9,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 "..Intel." */ 0x4D,0x54,0x48,0x44,0x54,0x45,0x53,0x54, /* 00000010 "MTHDTEST" */ 0x12,0x05,0x09,0x20,0x49,0x4E,0x54,0x4C, /* 00000018 "... INTL" */ 0x22,0x04,0x09,0x20,0x14,0x2E,0x2E,0x5F, /* 00000020 "".. ..._" */ 0x54,0x49,0x5F,0x5F,0x54,0x39,0x37,0x09, /* 00000028 "SI__T97." */ 0x70,0x0D,0x45,0x78,0x61,0x6D,0x70,0x6C, /* 00000030 "p.Exampl" */ 0x65,0x20,0x69,0x6E,0x73,0x74,0x61,0x6C, /* 00000038 "e instal" */ 0x6C,0x65,0x64,0x20,0x6D,0x65,0x74,0x68, /* 00000040 "led meth" */ 0x6F,0x64,0x00,0x5B,0x31,0x70,0x68,0x5B, /* 00000048 "od.[1ph[" */ 0x31,0xA4,0x00, }; #if 0 /****************************************************************************** * * DESCRIPTION: ASL tables that are used in RSDT/XSDT, also used to test * Load/LoadTable operators. * *****************************************************************************/ DefinitionBlock ("", "OEMX", 2, "MyOEM", "Test", 0x00000432) { External (GPE2, DeviceObj) Method (_INI) { Store ("Table OEMX running", Debug) } Scope (\_GPE) { Method (_E07) {} Method (_E22) {} Method (_L31) {} Method (_L66) {} } Device (OEM1) { Name (_PRW, Package(){7,0}) } Device (OEM2) { Name (_PRW, Package(){0x66,0}) } Scope (\GPE2) { Method (_L01) {} Method (_E07) {} Name (_PRW, Package() {Package() {\GPE2, 1}, 0}) } } /* Parent gr.asl file */ DefinitionBlock ("", "DSDT", 2, "Intel", "Many", 0x00000001) { Name (BUF1, Buffer() { 0x4F,0x45,0x4D,0x58,0xB0,0x00,0x00,0x00, /* 00000000 "OEMX...." */ 0x02,0x54,0x4D,0x79,0x4F,0x45,0x4D,0x00, /* 00000008 ".TMyOEM." */ 0x54,0x65,0x73,0x74,0x00,0x00,0x00,0x00, /* 00000010 "Test...." */ 0x32,0x04,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "2...INTL" */ 0x31,0x03,0x10,0x20,0x14,0x1D,0x5F,0x49, /* 00000020 "1.. .._I" */ 0x4E,0x49,0x00,0x70,0x0D,0x54,0x61,0x62, /* 00000028 "NI.p.Tab" */ 0x6C,0x65,0x20,0x4F,0x45,0x4D,0x58,0x20, /* 00000030 "le OEMX " */ 0x72,0x75,0x6E,0x6E,0x69,0x6E,0x67,0x00, /* 00000038 "running." */ 0x5B,0x31,0x10,0x22,0x5C,0x5F,0x47,0x50, /* 00000040 "[1."\_GP" */ 0x45,0x14,0x06,0x5F,0x45,0x30,0x37,0x00, /* 00000048 "E.._E07." */ 0x14,0x06,0x5F,0x45,0x32,0x32,0x00,0x14, /* 00000050 ".._E22.." */ 0x06,0x5F,0x4C,0x33,0x31,0x00,0x14,0x06, /* 00000058 "._L31..." */ 0x5F,0x4C,0x36,0x36,0x00,0x5B,0x82,0x10, /* 00000060 "_L66.[.." */ 0x4F,0x45,0x4D,0x31,0x08,0x5F,0x50,0x52, /* 00000068 "OEM1._PR" */ 0x57,0x12,0x05,0x02,0x0A,0x07,0x00,0x5B, /* 00000070 "W......[" */ 0x82,0x10,0x4F,0x45,0x4D,0x32,0x08,0x5F, /* 00000078 "..OEM2._" */ 0x50,0x52,0x57,0x12,0x05,0x02,0x0A,0x66, /* 00000080 "PRW....f" */ 0x00,0x10,0x26,0x5C,0x47,0x50,0x45,0x32, /* 00000088 "..&\GPE2" */ 0x14,0x06,0x5F,0x4C,0x30,0x31,0x00,0x14, /* 00000090 ".._L01.." */ 0x06,0x5F,0x45,0x30,0x37,0x00,0x08,0x5F, /* 00000098 "._E07.._" */ 0x50,0x52,0x57,0x12,0x0C,0x02,0x12,0x08, /* 000000A0 "PRW....." */ 0x02,0x5C,0x47,0x50,0x45,0x32,0x01,0x00 /* 000000A8 ".\GPE2.." */ }) Name (HNDL, 0) Method (LD) { Load (BUF1, HNDL) Store ("Load operator, handle:", Debug) Store (HNDL, Debug) } Method (MAIN, 0, NotSerialized) { Store ("Loading OEMX table", Debug) Store (LoadTable ("OEMX", "MyOEM", "Test"), Debug) } Scope (\_GPE) { Method (_L08) {} Method (_E08) {} Method (_L0B) {} } Device (DEV0) { Name (_PRW, Package() {0x11, 0}) } Device (\GPE2) { Method (_L00) {} } } /* SSDT1 */ DefinitionBlock ("ssdt1.aml", "SSDT", 2, "Intel", "ssdt1", 0x00000001) { Method (_T98, 1, NotSerialized) { Store ("SSDT1 - _T98", Debug) Return (Zero) } } /* SSDT2 */ DefinitionBlock ("ssdt2.aml", "SSDT", 2, "Intel", "ssdt2", 0x00000002) { Method (_T99, 6, NotSerialized) { Store ("SSDT2 - _T99", Debug) Return (Zero) } } /* SSDT4 */ DefinitionBlock ("ssdt4.aml", "SSDT", 2, "Intel", "ssdt4", 0x00000004) { Method (_T96, 5, NotSerialized) { Return (Zero) } } /* Example ECDT */ [000h 0000 4] Signature : "ECDT" /* Embedded Controller Boot Resources Table */ [004h 0004 4] Table Length : 0000004E [008h 0008 1] Revision : 01 [009h 0009 1] Checksum : 14 [00Ah 0010 6] Oem ID : " Intel" [010h 0016 8] Oem Table ID : "Template" [018h 0024 4] Oem Revision : 00000001 [01Ch 0028 4] Asl Compiler ID : "INTL" [020h 0032 4] Asl Compiler Revision : 20110316 [024h 0036 12] Command/Status Register : [024h 0036 1] Space ID : 01 (SystemIO) [025h 0037 1] Bit Width : 08 [026h 0038 1] Bit Offset : 00 [027h 0039 1] Encoded Access Width : 00 (Undefined/Legacy) [028h 0040 8] Address : 0000000000000066 [030h 0048 12] Data Register : [030h 0048 1] Space ID : 01 (SystemIO) [031h 0049 1] Bit Width : 08 [032h 0050 1] Bit Offset : 00 [033h 0051 1] Encoded Access Width : 00 (Undefined/Legacy) [034h 0052 8] Address : 0000000000000062 [03Ch 0060 4] UID : 00000000 [040h 0064 1] GPE Number : 09 [041h 0065 13] Namepath : "\_SB.PCI0.EC" /* Test multiple UEFI support */ [0004] Signature : "UEFI" [UEFI Boot Optimization Table] [0004] Table Length : 00000036 [0001] Revision : 01 [0001] Checksum : 9B [0006] Oem ID : " Intel" [0008] Oem Table ID : " UEFI1" [0004] Oem Revision : 00000001 [0004] Asl Compiler ID : "INTL" [0004] Asl Compiler Revision : 20100528 [0016] UUID Identifier : 09080706-0504-0706-0809-0A0B0C0D0E0F [0002] Data Offset : 0000 [004] Signature : "UEFI" /* UEFI Boot Optimization Table */ [004] Table Length : 00000036 [001] Revision : 01 [001] Checksum : 9B [006] Oem ID : " Intel" [008] Oem Table ID : " UEFI2" [004] Oem Revision : 00000001 [004] Asl Compiler ID : "INTL" [004] Asl Compiler Revision : 20100528 [016] UUID Identifier : 01234567-0504-0706-0809-0A0B0C0D0E0F [002] Data Offset : 0000 Label : StartRecord UINT8 : 4 UINT16 : $EndRecord - $StartRecord /* Should be 0x19 */ UINT24 : 123456 | F00000 UINT32 : 01020304 UINT56 : 11223344556677 UINT64 : 0102030405060708 * 4 - 200 / 100 | F0000 Label : EndRecord UINT8 : AB String : "This is a string" DevicePath : "\PCI0\ABCD" UINT16 : $StartRecord Unicode : "Unicode String" UINT64 : $EndRecord * 128 Buffer : 41 42 43 44 45 String : "" GUID : 03020100-0504-0706-0809-0A0B0C0D0E0F #endif #endif /* __AETABLES_H__ */ acpica-unix-20250404/source/tools/acpiexec/aeexception.c0000775000175000017500000002432314773714134022440 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aeexception - Exception and signal handlers * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aecommon.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("aeexception") /* Local prototypes */ static void AeDisplayMethodCallStack ( void); UINT32 SigintCount = 0; #define ACPI_MAX_CONTROL_C 5 /****************************************************************************** * * FUNCTION: AeExceptionHandler * * PARAMETERS: Standard exception handler parameters * * RETURN: Status * * DESCRIPTION: System exception handler for AcpiExec utility. Called from * the core ACPICA code after any exception during method * execution. * *****************************************************************************/ ACPI_STATUS AeExceptionHandler ( ACPI_STATUS AmlStatus, ACPI_NAME Name, UINT16 Opcode, UINT32 AmlOffset, void *Context) { ACPI_STATUS NewAmlStatus = AmlStatus; ACPI_STATUS Status; ACPI_BUFFER ReturnObj; ACPI_OBJECT_LIST ArgList; ACPI_OBJECT Arg[3]; const char *Exception; ACPI_HANDLE ErrHandle; Exception = AcpiFormatException (AmlStatus); if (AcpiGbl_VerboseHandlers) { AcpiOsPrintf (AE_PREFIX "Exception %s during execution\n", Exception); if (Name) { if (ACPI_COMPARE_NAMESEG (&Name, ACPI_ROOT_PATHNAME)) { AcpiOsPrintf (AE_PREFIX "Evaluating executable code at [%s]\n", ACPI_NAMESPACE_ROOT); } else { AcpiOsPrintf (AE_PREFIX "Evaluating Method or Node: [%4.4s]\n", (char *) &Name); } } /* Be terse about loop timeouts */ if ((AmlStatus == AE_AML_LOOP_TIMEOUT) && AcpiGbl_AbortLoopOnTimeout) { AcpiOsPrintf (AE_PREFIX "Aborting loop after timeout\n"); return (AE_OK); } AcpiOsPrintf ("\n" AE_PREFIX "AML Opcode [%s], Method Offset ~%5.5X\n", AcpiPsGetOpcodeName (Opcode), AmlOffset); } /* Invoke the _ERR method if present */ Status = AcpiGetHandle (NULL, "\\_ERR", &ErrHandle); if (ACPI_FAILURE (Status)) { goto Cleanup; } /* Setup parameter object */ ArgList.Count = 3; ArgList.Pointer = Arg; Arg[0].Type = ACPI_TYPE_INTEGER; Arg[0].Integer.Value = AmlStatus; Arg[1].Type = ACPI_TYPE_STRING; Arg[1].String.Pointer = ACPI_CAST_PTR (char, Exception); Arg[1].String.Length = strlen (Exception); Arg[2].Type = ACPI_TYPE_INTEGER; Arg[2].Integer.Value = AcpiOsGetThreadId(); /* Setup return buffer */ ReturnObj.Pointer = NULL; ReturnObj.Length = ACPI_ALLOCATE_BUFFER; Status = AcpiEvaluateObject (ErrHandle, NULL, &ArgList, &ReturnObj); if (ACPI_SUCCESS (Status)) { if (ReturnObj.Pointer) { /* Override original status */ NewAmlStatus = (ACPI_STATUS) ((ACPI_OBJECT *) ReturnObj.Pointer)->Integer.Value; /* Free a buffer created via ACPI_ALLOCATE_BUFFER */ AcpiOsFree (ReturnObj.Pointer); } } else if (Status != AE_NOT_FOUND) { AcpiOsPrintf (AE_PREFIX "Could not execute _ERR method, %s\n", AcpiFormatException (Status)); } Cleanup: if (AcpiGbl_IgnoreErrors) { /* Global option to ignore all method errors, just return OK */ NewAmlStatus = AE_OK; } if (NewAmlStatus != AmlStatus) { /* Request to override actual status with a different status */ AcpiOsPrintf (AE_PREFIX "Exception override, new status %s\n\n", AcpiFormatException (NewAmlStatus)); } return (NewAmlStatus); } /****************************************************************************** * * FUNCTION: AeSignalHandler * * PARAMETERS: Sig * * RETURN: none * * DESCRIPTION: Master signal handler. Currently handles SIGINT (ctrl-c), * and SIGSEGV (Segment violation). * *****************************************************************************/ void ACPI_SYSTEM_XFACE AeSignalHandler ( int Sig) { fflush(stdout); AcpiOsPrintf ("\n" AE_PREFIX); switch (Sig) { case SIGINT: signal(Sig, SIG_IGN); AcpiOsPrintf ("\n"); /* Force exit on multiple control-c */ SigintCount++; if (SigintCount >= ACPI_MAX_CONTROL_C) { _exit (0); } /* Abort the application if there are no methods executing */ if (!AcpiGbl_MethodExecuting) { break; } /* * Abort the method(s). This will also dump the method call * stack so there is no need to do it here. The application * will then drop back into the debugger interface. */ AcpiGbl_AbortMethod = TRUE; AcpiOsPrintf (AE_PREFIX "Control Method Call Stack:\n"); signal (SIGINT, AeSignalHandler); return; case SIGSEGV: AcpiOsPrintf ("Segmentation Fault\n"); AeDisplayMethodCallStack (); break; default: AcpiOsPrintf ("Unknown Signal, %X\n", Sig); break; } /* Terminate application -- cleanup then exit */ AcpiOsPrintf (AE_PREFIX "Terminating\n"); (void) AcpiOsTerminate (); _exit (0); } /****************************************************************************** * * FUNCTION: AeDisplayMethodCallStack * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display current method call stack, if possible. * * NOTE: Currently only called from a SIGSEGV, so AcpiExec is about * to terminate. * *****************************************************************************/ static void AeDisplayMethodCallStack ( void) { ACPI_WALK_STATE *WalkState; ACPI_THREAD_STATE *ThreadList = AcpiGbl_CurrentWalkList; char *FullPathname = NULL; if (!AcpiGbl_MethodExecuting) { AcpiOsPrintf (AE_PREFIX "No method is executing\n"); return; } /* * Try to find the currently executing control method(s) * * Note: The following code may fault if the data structures are * in an indeterminate state when the interrupt occurs. However, * in practice, this works quite well and can provide very * valuable information. * * 1) Walk the global thread list */ while (ThreadList && (ThreadList->DescriptorType == ACPI_DESC_TYPE_STATE_THREAD)) { /* 2) Walk the walk state list for this thread */ WalkState = ThreadList->WalkStateList; while (WalkState && (WalkState->DescriptorType == ACPI_DESC_TYPE_WALK)) { /* An executing control method */ if (WalkState->MethodNode) { FullPathname = AcpiNsGetExternalPathname ( WalkState->MethodNode); AcpiOsPrintf (AE_PREFIX "Executing Method: %s\n", FullPathname); } /* Execution of a deferred opcode/node */ if (WalkState->DeferredNode) { FullPathname = AcpiNsGetExternalPathname ( WalkState->DeferredNode); AcpiOsPrintf (AE_PREFIX "Evaluating deferred node: %s\n", FullPathname); } /* Get the currently executing AML opcode */ if ((WalkState->Opcode != AML_INT_METHODCALL_OP) && FullPathname) { AcpiOsPrintf (AE_PREFIX "Current AML Opcode in %s: [%s]-0x%4.4X at %p\n", FullPathname, AcpiPsGetOpcodeName (WalkState->Opcode), WalkState->Opcode, WalkState->Aml); } if (FullPathname) { ACPI_FREE (FullPathname); FullPathname = NULL; } WalkState = WalkState->Next; } ThreadList = ThreadList->Next; } } acpica-unix-20250404/source/tools/acpiexec/aetables.c0000775000175000017500000004362114773714134021716 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aetables - ACPI table setup/install for acpiexec utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aecommon.h" #include "aetables.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("aetables") /* Local prototypes */ static void AeInitializeTableHeader ( ACPI_TABLE_HEADER *Header, char *Signature, UINT32 Length); void AeTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable); /* User table (DSDT) */ static ACPI_TABLE_HEADER *DsdtToInstallOverride; /* Non-AML tables that are constructed locally and installed */ static ACPI_TABLE_RSDP LocalRSDP; static ACPI_TABLE_FACS LocalFACS; static ACPI_TABLE_HEADER LocalTEST; static ACPI_TABLE_HEADER LocalBADTABLE; /* * We need a local FADT so that the hardware subcomponent will function, * even though the underlying OSD HW access functions don't do anything. */ static ACPI_TABLE_FADT LocalFADT; /* * Use XSDT so that both 32- and 64-bit versions of this utility will * function automatically. */ static ACPI_TABLE_XSDT *LocalXSDT; #define BASE_XSDT_TABLES 9 #define BASE_XSDT_SIZE ((BASE_XSDT_TABLES) * sizeof (UINT64)) #define ACPI_MAX_INIT_TABLES (32) /****************************************************************************** * * FUNCTION: AeTableOverride * * DESCRIPTION: Local implementation of AcpiOsTableOverride. * Exercise the override mechanism * *****************************************************************************/ void AeTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable) { if (!AcpiGbl_LoadTestTables) { *NewTable = NULL; return; } /* This code exercises the table override mechanism in the core */ if (ACPI_COMPARE_NAMESEG (ExistingTable->Signature, ACPI_SIG_DSDT)) { *NewTable = DsdtToInstallOverride; } /* This code tests override of dynamically loaded tables */ else if (ACPI_COMPARE_NAMESEG (ExistingTable->Signature, "OEM9")) { *NewTable = ACPI_CAST_PTR (ACPI_TABLE_HEADER, Ssdt3Code); } } /****************************************************************************** * * FUNCTION: AeInitializeTableHeader * * PARAMETERS: Header - A valid standard ACPI table header * Signature - Signature to insert * Length - Length of the table * * RETURN: None. Header is modified. * * DESCRIPTION: Initialize the table header for a local ACPI table. * *****************************************************************************/ static void AeInitializeTableHeader ( ACPI_TABLE_HEADER *Header, char *Signature, UINT32 Length) { ACPI_COPY_NAMESEG (Header->Signature, Signature); Header->Length = Length; Header->OemRevision = 0x1001; memcpy (Header->OemId, "Intel ", ACPI_OEM_ID_SIZE); memcpy (Header->OemTableId, "AcpiExec", ACPI_OEM_TABLE_ID_SIZE); ACPI_COPY_NAMESEG (Header->AslCompilerId, "INTL"); Header->AslCompilerRevision = ACPI_CA_VERSION; /* Set the checksum, must set to zero first */ Header->Checksum = 0; Header->Checksum = (UINT8) -AcpiUtChecksum ( (void *) Header, Header->Length); } /****************************************************************************** * * FUNCTION: AeBuildLocalTables * * PARAMETERS: TableCount - Number of tables on the command line * ListHead - List of actual tables from files * * RETURN: Status * * DESCRIPTION: Build a complete ACPI table chain, with a local RSDP, XSDT, * FADT, and several other test tables. * *****************************************************************************/ ACPI_STATUS AeBuildLocalTables ( ACPI_NEW_TABLE_DESC *ListHead) { UINT32 TableCount = 1; ACPI_PHYSICAL_ADDRESS DsdtAddress = 0; UINT32 XsdtSize; ACPI_NEW_TABLE_DESC *NextTable; UINT32 NextIndex; ACPI_TABLE_FADT *ExternalFadt = NULL; /* * Update the table count. For the DSDT, it is not put into the XSDT. * For the FADT, this table is already accounted for since we usually * install a local FADT. */ NextTable = ListHead; while (NextTable) { if (!ACPI_COMPARE_NAMESEG (NextTable->Table->Signature, ACPI_SIG_DSDT) && !ACPI_COMPARE_NAMESEG (NextTable->Table->Signature, ACPI_SIG_FADT)) { TableCount++; } NextTable = NextTable->Next; } XsdtSize = (((TableCount + 1) * sizeof (UINT64)) + sizeof (ACPI_TABLE_HEADER)); if (AcpiGbl_LoadTestTables) { XsdtSize += BASE_XSDT_SIZE; } /* Build an XSDT */ LocalXSDT = AcpiOsAllocate (XsdtSize); if (!LocalXSDT) { return (AE_NO_MEMORY); } memset (LocalXSDT, 0, XsdtSize); LocalXSDT->TableOffsetEntry[0] = ACPI_PTR_TO_PHYSADDR (&LocalFADT); NextIndex = 1; /* * Install the user tables. The DSDT must be installed in the FADT. * All other tables are installed directly into the XSDT. */ NextTable = ListHead; while (NextTable) { /* * Incoming DSDT or FADT are special cases. All other tables are * just immediately installed into the XSDT. */ if (ACPI_COMPARE_NAMESEG (NextTable->Table->Signature, ACPI_SIG_DSDT)) { if (DsdtAddress) { printf ("Already found a DSDT, only one allowed\n"); return (AE_ALREADY_EXISTS); } /* The incoming user table is a DSDT */ DsdtAddress = ACPI_PTR_TO_PHYSADDR (NextTable->Table); DsdtToInstallOverride = NextTable->Table; } else if (ACPI_COMPARE_NAMESEG (NextTable->Table->Signature, ACPI_SIG_FADT)) { ExternalFadt = ACPI_CAST_PTR (ACPI_TABLE_FADT, NextTable->Table); LocalXSDT->TableOffsetEntry[0] = ACPI_PTR_TO_PHYSADDR (NextTable->Table); } else { /* Install the table in the XSDT */ LocalXSDT->TableOffsetEntry[NextIndex] = ACPI_PTR_TO_PHYSADDR (NextTable->Table); NextIndex++; } NextTable = NextTable->Next; } /* Install the optional extra local tables */ if (AcpiGbl_LoadTestTables) { LocalXSDT->TableOffsetEntry[NextIndex++] = ACPI_PTR_TO_PHYSADDR (&LocalTEST); LocalXSDT->TableOffsetEntry[NextIndex++] = ACPI_PTR_TO_PHYSADDR (&LocalBADTABLE); /* Install two SSDTs to test multiple table support */ LocalXSDT->TableOffsetEntry[NextIndex++] = ACPI_PTR_TO_PHYSADDR (&Ssdt1Code); LocalXSDT->TableOffsetEntry[NextIndex++] = ACPI_PTR_TO_PHYSADDR (&Ssdt2Code); /* Install the OEM1 table to test LoadTable */ LocalXSDT->TableOffsetEntry[NextIndex++] = ACPI_PTR_TO_PHYSADDR (&Oem1Code); /* Install the OEMx table to test LoadTable */ LocalXSDT->TableOffsetEntry[NextIndex++] = ACPI_PTR_TO_PHYSADDR (&OemxCode); /* Install the ECDT table to test _REG */ LocalXSDT->TableOffsetEntry[NextIndex++] = ACPI_PTR_TO_PHYSADDR (&EcdtCode); /* Install two UEFIs to test multiple table support */ LocalXSDT->TableOffsetEntry[NextIndex++] = ACPI_PTR_TO_PHYSADDR (&Uefi1Code); LocalXSDT->TableOffsetEntry[NextIndex++] = ACPI_PTR_TO_PHYSADDR (&Uefi2Code); } /* Build an RSDP. Contains a valid XSDT only, no RSDT */ memset (&LocalRSDP, 0, sizeof (ACPI_TABLE_RSDP)); ACPI_MAKE_RSDP_SIG (LocalRSDP.Signature); memcpy (LocalRSDP.OemId, "Intel", 6); LocalRSDP.Revision = 2; LocalRSDP.XsdtPhysicalAddress = ACPI_PTR_TO_PHYSADDR (LocalXSDT); LocalRSDP.Length = sizeof (ACPI_TABLE_RSDP); /* Set checksums for both XSDT and RSDP */ AeInitializeTableHeader ((void *) LocalXSDT, ACPI_SIG_XSDT, XsdtSize); LocalRSDP.Checksum = 0; LocalRSDP.Checksum = (UINT8) -AcpiUtChecksum ( (void *) &LocalRSDP, ACPI_RSDP_CHECKSUM_LENGTH); if (!DsdtAddress) { /* Use the local DSDT because incoming table(s) are all SSDT(s) */ DsdtAddress = ACPI_PTR_TO_PHYSADDR (LocalDsdtCode); DsdtToInstallOverride = ACPI_CAST_PTR (ACPI_TABLE_HEADER, LocalDsdtCode); } /* * Build an FADT. There are three options for the FADT: * 1) Incoming external FADT specified on the command line * 2) A "hardware reduced" local FADT * 3) A fully featured local FADT */ memset (&LocalFADT, 0, sizeof (ACPI_TABLE_FADT)); if (ExternalFadt) { /* * Use the external FADT, but we must update the DSDT/FACS * addresses as well as the checksum */ ExternalFadt->Dsdt = (UINT32) DsdtAddress; if (!AcpiGbl_ReducedHardware) { ExternalFadt->Facs = ACPI_PTR_TO_PHYSADDR (&LocalFACS); } /* * If there room in the FADT for the XDsdt and XFacs 64-bit * pointers, use them. */ if (ExternalFadt->Header.Length > ACPI_PTR_DIFF ( &ExternalFadt->XDsdt, ExternalFadt)) { ExternalFadt->Dsdt = 0; ExternalFadt->Facs = 0; ExternalFadt->XDsdt = DsdtAddress; if (!AcpiGbl_ReducedHardware) { ExternalFadt->XFacs = ACPI_PTR_TO_PHYSADDR (&LocalFACS); } } /* Complete the external FADT with the checksum */ ExternalFadt->Header.Checksum = 0; ExternalFadt->Header.Checksum = (UINT8) -AcpiUtChecksum ( (void *) ExternalFadt, ExternalFadt->Header.Length); } else if (AcpiGbl_UseHwReducedFadt) { memcpy (&LocalFADT, HwReducedFadtCode, ACPI_FADT_V5_SIZE); LocalFADT.Dsdt = 0; LocalFADT.XDsdt = DsdtAddress; } else { /* * Build a local FADT so we can test the hardware/event init */ LocalFADT.Header.Revision = 5; /* Setup FADT header and DSDT/FACS addresses */ LocalFADT.Dsdt = 0; LocalFADT.Facs = 0; LocalFADT.XDsdt = DsdtAddress; LocalFADT.XFacs = ACPI_PTR_TO_PHYSADDR (&LocalFACS); /* Miscellaneous FADT fields */ LocalFADT.Gpe0BlockLength = 0x20; LocalFADT.Gpe0Block = 0x00003210; LocalFADT.Gpe1BlockLength = 0x20; LocalFADT.Gpe1Block = 0x0000BA98; LocalFADT.Gpe1Base = 0x80; LocalFADT.Pm1EventLength = 4; LocalFADT.Pm1aEventBlock = 0x00001aaa; LocalFADT.Pm1bEventBlock = 0x00001bbb; LocalFADT.Pm1ControlLength = 2; LocalFADT.Pm1aControlBlock = 0xB0; LocalFADT.PmTimerLength = 4; LocalFADT.PmTimerBlock = 0xA0; LocalFADT.Pm2ControlBlock = 0xC0; LocalFADT.Pm2ControlLength = 1; /* Setup one example X-64 GAS field */ LocalFADT.XPm1bEventBlock.SpaceId = ACPI_ADR_SPACE_SYSTEM_IO; LocalFADT.XPm1bEventBlock.Address = LocalFADT.Pm1bEventBlock; LocalFADT.XPm1bEventBlock.BitWidth = (UINT8) ACPI_MUL_8 (LocalFADT.Pm1EventLength); } AeInitializeTableHeader ((void *) &LocalFADT, ACPI_SIG_FADT, sizeof (ACPI_TABLE_FADT)); /* Build a FACS */ memset (&LocalFACS, 0, sizeof (ACPI_TABLE_FACS)); ACPI_COPY_NAMESEG (LocalFACS.Signature, ACPI_SIG_FACS); LocalFACS.Length = sizeof (ACPI_TABLE_FACS); LocalFACS.GlobalLock = 0x11AA0011; /* Build the optional local tables */ if (AcpiGbl_LoadTestTables) { /* * Build a fake table [TEST] so that we make sure that the * ACPICA core ignores it */ memset (&LocalTEST, 0, sizeof (ACPI_TABLE_HEADER)); ACPI_COPY_NAMESEG (LocalTEST.Signature, "TEST"); LocalTEST.Revision = 1; LocalTEST.Length = sizeof (ACPI_TABLE_HEADER); LocalTEST.Checksum = 0; LocalTEST.Checksum = (UINT8) -AcpiUtChecksum ( (void *) &LocalTEST, LocalTEST.Length); /* * Build a fake table with a bad signature [BAD!] so that we make * sure that the ACPICA core ignores it */ memset (&LocalBADTABLE, 0, sizeof (ACPI_TABLE_HEADER)); ACPI_COPY_NAMESEG (LocalBADTABLE.Signature, "BAD!"); LocalBADTABLE.Revision = 1; LocalBADTABLE.Length = sizeof (ACPI_TABLE_HEADER); LocalBADTABLE.Checksum = 0; LocalBADTABLE.Checksum = (UINT8) -AcpiUtChecksum ( (void *) &LocalBADTABLE, LocalBADTABLE.Length); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AeInstallTables * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Install the various ACPI tables * *****************************************************************************/ ACPI_STATUS AeInstallTables ( void) { ACPI_STATUS Status; ACPI_TABLE_HEADER Header; ACPI_TABLE_HEADER *Table; UINT32 i; Status = AcpiInitializeTables (NULL, ACPI_MAX_INIT_TABLES, TRUE); ACPI_CHECK_OK (AcpiInitializeTables, Status); /* * The following code is prepared to test the deferred table * verification mechanism. When AcpiGbl_EnableTableValidation is set * to FALSE by default, AcpiReallocateRootTable() sets it back to TRUE * and triggers the deferred table verification mechanism accordingly. */ (void) AcpiReallocateRootTable (); if (AcpiGbl_LoadTestTables) { /* Test multiple table/UEFI support. First, get the headers */ Status = AcpiGetTableHeader (ACPI_SIG_UEFI, 1, &Header); ACPI_CHECK_OK (AcpiGetTableHeader, Status); Status = AcpiGetTableHeader (ACPI_SIG_UEFI, 2, &Header); ACPI_CHECK_OK (AcpiGetTableHeader, Status); Status = AcpiGetTableHeader (ACPI_SIG_UEFI, 3, &Header); ACPI_CHECK_STATUS (AcpiGetTableHeader, Status, AE_NOT_FOUND); /* Now get the actual tables */ Status = AcpiGetTable (ACPI_SIG_UEFI, 1, &Table); ACPI_CHECK_OK (AcpiGetTable, Status); Status = AcpiGetTable (ACPI_SIG_UEFI, 2, &Table); ACPI_CHECK_OK (AcpiGetTable, Status); Status = AcpiGetTable (ACPI_SIG_UEFI, 3, &Table); ACPI_CHECK_STATUS (AcpiGetTable, Status, AE_NOT_FOUND); } /* Check that we can get all of the ACPI tables */ for (i = 0; ; i++) { Status = AcpiGetTableByIndex (i, &Table); if ((Status == AE_BAD_PARAMETER) || !Table) { break; } ACPI_CHECK_OK (AcpiGetTableByIndex, Status); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AeLoadTables * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Load the definition block ACPI tables * *****************************************************************************/ ACPI_STATUS AeLoadTables ( void) { ACPI_STATUS Status; Status = AcpiLoadTables (); ACPI_CHECK_OK (AcpiLoadTables, Status); /* * Test run-time control method installation. Do it twice to test code * for an existing name. */ Status = AcpiInstallMethod (MethodCode); ACPI_CHECK_OK (AcpiInstallMethod, Status); Status = AcpiInstallMethod (MethodCode); ACPI_CHECK_OK (AcpiInstallMethod, Status); return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsGetRootPointer * * PARAMETERS: Flags - not used * Address - Where the root pointer is returned * * RETURN: Status * * DESCRIPTION: Return a local RSDP, used to dynamically load tables via the * standard ACPI mechanism. * *****************************************************************************/ ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer ( void) { return (ACPI_PTR_TO_PHYSADDR (&LocalRSDP)); } acpica-unix-20250404/source/tools/acpiexec/aetests.c0000775000175000017500000003715214773714134021610 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aetests - Miscellaneous tests for ACPICA public interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aecommon.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("aetests") /* Local prototypes */ static void AeMutexInterfaces ( void); static void AeHardwareInterfaces ( void); static void AeTestSleepData ( void); static void AeGlobalAddressRangeCheck( void); /****************************************************************************** * * FUNCTION: AeMiscellaneousTests * * DESCRIPTION: Various ACPICA validation tests. * *****************************************************************************/ void AeMiscellaneousTests ( void) { ACPI_BUFFER ReturnBuf; char Buffer[32]; ACPI_STATUS Status; ACPI_STATISTICS Stats; ACPI_HANDLE Handle; UINT32 TableIndex; #if (!ACPI_REDUCED_HARDWARE) UINT32 Temp; UINT32 LockHandle1; UINT32 LockHandle2; ACPI_VENDOR_UUID Uuid = {0, {ACPI_INIT_UUID (0,0,0,0,0,0,0,0,0,0,0)}}; #endif /* !ACPI_REDUCED_HARDWARE */ Status = AcpiGetHandle (NULL, "\\", &Handle); ACPI_CHECK_OK (AcpiGetHandle, Status); if (AcpiGbl_DoInterfaceTests) { /* * Tests for AcpiLoadTable and AcpiUnloadParentTable */ /* Attempt unload of DSDT, should fail */ Status = AcpiGetHandle (NULL, "\\_SB_", &Handle); ACPI_CHECK_OK (AcpiGetHandle, Status); Status = AcpiUnloadParentTable (Handle); ACPI_CHECK_STATUS (AcpiUnloadParentTable, Status, AE_TYPE); /* Load and unload SSDT4 */ Status = AcpiLoadTable ((ACPI_TABLE_HEADER *) Ssdt4Code, &TableIndex); ACPI_CHECK_OK (AcpiLoadTable, Status); Status = AcpiUnloadTable (TableIndex); ACPI_CHECK_OK (AcpiUnloadTable, Status); /* Re-load SSDT4 */ Status = AcpiLoadTable ((ACPI_TABLE_HEADER *) Ssdt4Code, NULL); ACPI_CHECK_OK (AcpiLoadTable, Status); /* Unload and re-load SSDT2 (SSDT2 is in the XSDT) */ Status = AcpiGetHandle (NULL, "\\_T99", &Handle); ACPI_CHECK_OK (AcpiGetHandle, Status); Status = AcpiUnloadParentTable (Handle); ACPI_CHECK_OK (AcpiUnloadParentTable, Status); Status = AcpiLoadTable ((ACPI_TABLE_HEADER *) Ssdt2Code, NULL); ACPI_CHECK_OK (AcpiLoadTable, Status); /* Load OEM9 table (causes table override) */ Status = AcpiLoadTable ((ACPI_TABLE_HEADER *) Ssdt3Code, NULL); ACPI_CHECK_OK (AcpiLoadTable, Status); } AeHardwareInterfaces (); AeGenericRegisters (); AeSetupConfiguration (Ssdt3Code); AeTestBufferArgument(); AeTestPackageArgument (); AeMutexInterfaces (); AeTestSleepData (); /* Test _OSI install/remove */ Status = AcpiInstallInterface (""); ACPI_CHECK_STATUS (AcpiInstallInterface, Status, AE_BAD_PARAMETER); Status = AcpiInstallInterface ("TestString"); ACPI_CHECK_OK (AcpiInstallInterface, Status); Status = AcpiInstallInterface ("TestString"); ACPI_CHECK_STATUS (AcpiInstallInterface, Status, AE_ALREADY_EXISTS); Status = AcpiRemoveInterface ("Windows 2006"); ACPI_CHECK_OK (AcpiRemoveInterface, Status); Status = AcpiRemoveInterface ("TestString"); ACPI_CHECK_OK (AcpiRemoveInterface, Status); Status = AcpiRemoveInterface ("XXXXXX"); ACPI_CHECK_STATUS (AcpiRemoveInterface, Status, AE_NOT_EXIST); Status = AcpiInstallInterface ("AnotherTestString"); ACPI_CHECK_OK (AcpiInstallInterface, Status); /* Test _OSI execution */ Status = ExecuteOSI ("Extended Address Space Descriptor", ACPI_UINT64_MAX); ACPI_CHECK_OK (ExecuteOSI, Status); Status = ExecuteOSI ("Windows 2001", ACPI_UINT64_MAX); ACPI_CHECK_OK (ExecuteOSI, Status); Status = ExecuteOSI ("MichiganTerminalSystem", 0); ACPI_CHECK_OK (ExecuteOSI, Status); ReturnBuf.Length = 32; ReturnBuf.Pointer = Buffer; Status = AcpiGetName (ACPI_ROOT_OBJECT, ACPI_FULL_PATHNAME_NO_TRAILING, &ReturnBuf); ACPI_CHECK_OK (AcpiGetName, Status); /* Get Devices */ Status = AcpiGetDevices (NULL, AeGetDevices, NULL, NULL); ACPI_CHECK_OK (AcpiGetDevices, Status); Status = AcpiGetStatistics (&Stats); ACPI_CHECK_OK (AcpiGetStatistics, Status); #if (!ACPI_REDUCED_HARDWARE) Status = AcpiInstallGlobalEventHandler (AeGlobalEventHandler, NULL); ACPI_CHECK_OK (AcpiInstallGlobalEventHandler, Status); /* If Hardware Reduced flag is set, we are all done */ if (AcpiGbl_ReducedHardware) { return; } Status = AcpiEnableEvent (ACPI_EVENT_GLOBAL, 0); ACPI_CHECK_OK (AcpiEnableEvent, Status); /* * GPEs: Handlers, enable/disable, etc. */ Status = AcpiInstallGpeHandler (NULL, 0, ACPI_GPE_LEVEL_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiEnableGpe (NULL, 0); ACPI_CHECK_OK (AcpiEnableGpe, Status); Status = AcpiRemoveGpeHandler (NULL, 0, AeGpeHandler); ACPI_CHECK_OK (AcpiRemoveGpeHandler, Status); Status = AcpiInstallGpeHandler (NULL, 0, ACPI_GPE_LEVEL_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiEnableGpe (NULL, 0); ACPI_CHECK_OK (AcpiEnableGpe, Status); Status = AcpiSetGpe (NULL, 0, ACPI_GPE_DISABLE); ACPI_CHECK_OK (AcpiSetGpe, Status); Status = AcpiSetGpe (NULL, 0, ACPI_GPE_ENABLE); ACPI_CHECK_OK (AcpiSetGpe, Status); Status = AcpiInstallGpeHandler (NULL, 1, ACPI_GPE_EDGE_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiEnableGpe (NULL, 1); ACPI_CHECK_OK (AcpiEnableGpe, Status); Status = AcpiInstallGpeHandler (NULL, 2, ACPI_GPE_LEVEL_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiEnableGpe (NULL, 2); ACPI_CHECK_OK (AcpiEnableGpe, Status); Status = AcpiInstallGpeHandler (NULL, 3, ACPI_GPE_EDGE_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiInstallGpeHandler (NULL, 4, ACPI_GPE_LEVEL_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiInstallGpeHandler (NULL, 5, ACPI_GPE_EDGE_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiGetHandle (NULL, "\\_SB", &Handle); ACPI_CHECK_OK (AcpiGetHandle, Status); Status = AcpiSetupGpeForWake (Handle, NULL, 5); ACPI_CHECK_OK (AcpiSetupGpeForWake, Status); Status = AcpiSetGpeWakeMask (NULL, 5, ACPI_GPE_ENABLE); ACPI_CHECK_OK (AcpiSetGpeWakeMask, Status); Status = AcpiSetupGpeForWake (Handle, NULL, 6); ACPI_CHECK_OK (AcpiSetupGpeForWake, Status); Status = AcpiSetupGpeForWake (ACPI_ROOT_OBJECT, NULL, 6); ACPI_CHECK_OK (AcpiSetupGpeForWake, Status); Status = AcpiSetupGpeForWake (Handle, NULL, 9); ACPI_CHECK_OK (AcpiSetupGpeForWake, Status); Status = AcpiInstallGpeHandler (NULL, 0x19, ACPI_GPE_LEVEL_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiEnableGpe (NULL, 0x19); ACPI_CHECK_OK (AcpiEnableGpe, Status); /* GPE block 1 */ Status = AcpiInstallGpeHandler (NULL, 101, ACPI_GPE_LEVEL_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiEnableGpe (NULL, 101); ACPI_CHECK_OK (AcpiEnableGpe, Status); Status = AcpiDisableGpe (NULL, 101); ACPI_CHECK_OK (AcpiDisableGpe, Status); AfInstallGpeBlock (); /* Here is where the GPEs are actually "enabled" */ Status = AcpiUpdateAllGpes (); ACPI_CHECK_OK (AcpiUpdateAllGpes, Status); Status = AcpiGetHandle (NULL, "RSRC", &Handle); if (ACPI_SUCCESS (Status)) { ReturnBuf.Length = ACPI_ALLOCATE_BUFFER; Status = AcpiGetVendorResource (Handle, "_CRS", &Uuid, &ReturnBuf); if (ACPI_SUCCESS (Status)) { AcpiOsFree (ReturnBuf.Pointer); } } /* Test global lock */ Status = AcpiAcquireGlobalLock (0xFFFF, &LockHandle1); ACPI_CHECK_OK (AcpiAcquireGlobalLock, Status); Status = AcpiAcquireGlobalLock (0x5, &LockHandle2); ACPI_CHECK_OK (AcpiAcquireGlobalLock, Status); Status = AcpiReleaseGlobalLock (LockHandle1); ACPI_CHECK_OK (AcpiReleaseGlobalLock, Status); Status = AcpiReleaseGlobalLock (LockHandle2); ACPI_CHECK_OK (AcpiReleaseGlobalLock, Status); /* Test timer interfaces */ Status = AcpiGetTimerResolution (&Temp); ACPI_CHECK_OK (AcpiGetTimerResolution, Status); Status = AcpiGetTimer (&Temp); ACPI_CHECK_OK (AcpiGetTimer, Status); Status = AcpiGetTimerDuration (0x1000, 0x2000, &Temp); ACPI_CHECK_OK (AcpiGetTimerDuration, Status); #endif /* !ACPI_REDUCED_HARDWARE */ } /****************************************************************************** * * FUNCTION: AeMutexInterfaces * * DESCRIPTION: Exercise the AML mutex access interfaces * *****************************************************************************/ static void AeMutexInterfaces ( void) { ACPI_STATUS Status; ACPI_HANDLE MutexHandle; /* Get a handle to an AML mutex */ Status = AcpiGetHandle (NULL, "\\MTX1", &MutexHandle); if (Status == AE_NOT_FOUND) { return; } ACPI_CHECK_OK (AcpiGetHandle, Status); if (ACPI_FAILURE (Status)) { return; } /* Acquire the mutex */ Status = AcpiAcquireMutex (NULL, "\\MTX1", 0xFFFF); ACPI_CHECK_OK (AcpiAcquireMutex, Status); if (ACPI_FAILURE (Status)) { return; } /* Release mutex with different parameters */ Status = AcpiReleaseMutex (MutexHandle, NULL); ACPI_CHECK_OK (AcpiReleaseMutex, Status); } /****************************************************************************** * * FUNCTION: AeHardwareInterfaces * * DESCRIPTION: Call various hardware support interfaces * *****************************************************************************/ static void AeHardwareInterfaces ( void) { #if (!ACPI_REDUCED_HARDWARE) ACPI_STATUS Status; UINT32 Value; /* If Hardware Reduced flag is set, we are all done */ if (AcpiGbl_ReducedHardware) { return; } Status = AcpiWriteBitRegister (ACPI_BITREG_WAKE_STATUS, 1); ACPI_CHECK_OK (AcpiWriteBitRegister, Status); Status = AcpiWriteBitRegister (ACPI_BITREG_GLOBAL_LOCK_ENABLE, 1); ACPI_CHECK_OK (AcpiWriteBitRegister, Status); Status = AcpiWriteBitRegister (ACPI_BITREG_SLEEP_ENABLE, 1); ACPI_CHECK_OK (AcpiWriteBitRegister, Status); Status = AcpiWriteBitRegister (ACPI_BITREG_ARB_DISABLE, 1); ACPI_CHECK_OK (AcpiWriteBitRegister, Status); Status = AcpiReadBitRegister (ACPI_BITREG_WAKE_STATUS, &Value); ACPI_CHECK_OK (AcpiReadBitRegister, Status); Status = AcpiReadBitRegister (ACPI_BITREG_GLOBAL_LOCK_ENABLE, &Value); ACPI_CHECK_OK (AcpiReadBitRegister, Status); Status = AcpiReadBitRegister (ACPI_BITREG_SLEEP_ENABLE, &Value); ACPI_CHECK_OK (AcpiReadBitRegister, Status); Status = AcpiReadBitRegister (ACPI_BITREG_ARB_DISABLE, &Value); ACPI_CHECK_OK (AcpiReadBitRegister, Status); #endif /* !ACPI_REDUCED_HARDWARE */ } /****************************************************************************** * * FUNCTION: AeTestSleepData * * DESCRIPTION: Exercise the sleep/wake support (_S0, _S1, etc.) * *****************************************************************************/ static void AeTestSleepData ( void) { int State; UINT8 TypeA; UINT8 TypeB; ACPI_STATUS Status; /* Attempt to get sleep data for all known sleep states */ for (State = ACPI_STATE_S0; State <= ACPI_S_STATES_MAX; State++) { Status = AcpiGetSleepTypeData ((UINT8) State, &TypeA, &TypeB); /* All sleep methods are optional */ if (Status != AE_NOT_FOUND) { ACPI_CHECK_OK (AcpiGetSleepTypeData, Status); } } } /****************************************************************************** * * FUNCTION: AeLateTest * * DESCRIPTION: Exercise tests that should be performed before shutdown. * *****************************************************************************/ void AeLateTest ( void) { AeGlobalAddressRangeCheck(); } /****************************************************************************** * * FUNCTION: AeGlobalAddressRangeCheck * * DESCRIPTION: There have been some issues in the past with adding and * removing items to the global address list from * OperationRegions declared in control methods. This test loops * over the list to ensure that dangling pointers do not exist in * the global address list. * *****************************************************************************/ static void AeGlobalAddressRangeCheck ( void) { ACPI_STATUS Status; ACPI_ADDRESS_RANGE *Current; ACPI_BUFFER ReturnBuffer; UINT32 i; for (i = 0; i < ACPI_ADDRESS_RANGE_MAX; i++) { Current = AcpiGbl_AddressRangeList[i]; while (Current) { ReturnBuffer.Length = ACPI_ALLOCATE_BUFFER; Status = AcpiGetName (Current->RegionNode, ACPI_SINGLE_NAME, &ReturnBuffer); ACPI_CHECK_OK (AcpiGetname, Status); AcpiOsFree (ReturnBuffer.Pointer); Current = Current->Next; } } } acpica-unix-20250404/source/tools/acpiexec/aecommon.h0000775000175000017500000001566614773714134021751 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aecommon - common include for the AcpiExec utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef _AECOMMON #define _AECOMMON #ifdef _MSC_VER /* disable some level-4 warnings */ #pragma warning(disable:4100) /* warning C4100: unreferenced formal parameter */ #endif #include "acpi.h" #include "accommon.h" #include "acparser.h" #include "amlcode.h" #include "acnamesp.h" #include "acdebug.h" #include "actables.h" #include "acinterp.h" #include "amlresrc.h" #include "acapps.h" /* * Debug Regions */ typedef struct ae_region { ACPI_PHYSICAL_ADDRESS Address; UINT32 Length; void *Buffer; void *NextRegion; UINT8 SpaceId; } AE_REGION; typedef struct ae_debug_regions { UINT32 NumberOfRegions; AE_REGION *RegionList; } AE_DEBUG_REGIONS; /* * Init file entry */ typedef struct init_file_entry { char *Name; char *Value; ACPI_OPERAND_OBJECT *ObjDesc; BOOLEAN IsUsed; } INIT_FILE_ENTRY; extern BOOLEAN AcpiGbl_UseLocalFaultHandler; extern BOOLEAN AcpiGbl_VerboseHandlers; extern BOOLEAN AcpiGbl_IgnoreErrors; extern BOOLEAN AcpiGbl_AbortLoopOnTimeout; extern UINT8 AcpiGbl_RegionFillValue; extern INIT_FILE_ENTRY *AcpiGbl_InitEntries; extern UINT32 AcpiGbl_InitFileLineCount; extern UINT8 AcpiGbl_UseHwReducedFadt; extern BOOLEAN AcpiGbl_DisplayRegionAccess; extern BOOLEAN AcpiGbl_DoInterfaceTests; extern BOOLEAN AcpiGbl_LoadTestTables; extern FILE *AcpiGbl_NamespaceInitFile; extern ACPI_CONNECTION_INFO AeMyContext; extern UINT8 Ssdt2Code[]; extern UINT8 Ssdt3Code[]; extern UINT8 Ssdt4Code[]; #define TEST_OUTPUT_LEVEL(lvl) if ((lvl) & OutputLevel) #define OSD_PRINT(lvl,fp) TEST_OUTPUT_LEVEL(lvl) {\ AcpiOsPrintf PARAM_LIST(fp);} #define AE_PREFIX "ACPI Exec: " void ACPI_SYSTEM_XFACE AeSignalHandler ( int Sig); ACPI_STATUS AeExceptionHandler ( ACPI_STATUS AmlStatus, ACPI_NAME Name, UINT16 Opcode, UINT32 AmlOffset, void *Context); ACPI_STATUS AeBuildLocalTables ( ACPI_NEW_TABLE_DESC *TableList); ACPI_STATUS AeInstallTables ( void); ACPI_STATUS AeLoadTables ( void); void AeDumpNamespace ( void); void AeDumpObject ( char *MethodName, ACPI_BUFFER *ReturnObj); void AeDumpBuffer ( UINT32 Address); void AeExecute ( char *Name); void AeSetScope ( char *Name); void AeCloseDebugFile ( void); void AeOpenDebugFile ( char *Name); ACPI_STATUS AeDisplayAllMethods ( UINT32 DisplayCount); /* aetests */ void AeMiscellaneousTests ( void); void AeLateTest ( void); /* aeregion */ ACPI_STATUS AeRegionHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext); /* aeinstall */ ACPI_STATUS AeInstallDeviceHandlers ( void); void AeInstallRegionHandlers ( void); void AeOverrideRegionHandlers ( void); /* aehandlers */ ACPI_STATUS AeInstallEarlyHandlers ( void); ACPI_STATUS AeInstallLateHandlers ( void); UINT32 AeGpeHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, void *Context); void AeGlobalEventHandler ( UINT32 Type, ACPI_HANDLE GpeDevice, UINT32 EventNumber, void *Context); /* aeinitfile */ int AeOpenInitializationFile ( char *Filename); ACPI_STATUS AeProcessInitFile ( void); ACPI_STATUS AeLookupInitFileEntry ( char *Pathname, ACPI_OPERAND_OBJECT **ObjDesc); void AeDisplayUnusedInitFileItems ( void); void AeDeleteInitFileList ( void); /* aeexec */ void AeTestBufferArgument ( void); void AeTestPackageArgument ( void); ACPI_STATUS AeGetDevices ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); ACPI_STATUS AeSetupConfiguration ( void *RegionAddr); ACPI_STATUS ExecuteOSI ( char *OsiString, UINT64 ExpectedResult); void AeGenericRegisters ( void); #if (!ACPI_REDUCED_HARDWARE) void AfInstallGpeBlock ( void); #endif /* !ACPI_REDUCED_HARDWARE */ #endif /* _AECOMMON */ acpica-unix-20250404/source/tools/acpiexec/aeregion.c0000775000175000017500000005136114773714134021727 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aeregion - Handler for operation regions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aecommon.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("aeregion") static AE_DEBUG_REGIONS AeRegions; /****************************************************************************** * * FUNCTION: AeRegionHandler * * PARAMETERS: Standard region handler parameters * * RETURN: Status * * DESCRIPTION: Test handler - Handles some dummy regions via memory that can * be manipulated in Ring 3. Simulates actual reads and writes. * *****************************************************************************/ ACPI_STATUS AeRegionHandler ( UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext) { ACPI_OPERAND_OBJECT *RegionObject = ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, RegionContext); UINT8 *Buffer = ACPI_CAST_PTR (UINT8, Value); UINT8 *OldBuffer; UINT8 *NewBuffer; ACPI_PHYSICAL_ADDRESS BaseAddress; ACPI_PHYSICAL_ADDRESS BaseAddressEnd; ACPI_PHYSICAL_ADDRESS RegionAddress; ACPI_PHYSICAL_ADDRESS RegionAddressEnd; UINT32 Length; UINT8 DataLength; UINT8 *DataBuffer; BOOLEAN BufferExists; BOOLEAN BufferResize; AE_REGION *RegionElement; void *BufferValue; ACPI_STATUS Status; UINT32 ByteWidth; UINT32 RegionLength; UINT32 i; UINT8 SpaceId; ACPI_CONNECTION_INFO *MyContext; UINT32 Value1; UINT32 Value2; ACPI_RESOURCE *Resource; char Uuid[ACPI_PRM_INPUT_BUFFER_SIZE + 1]; ACPI_FUNCTION_NAME (AeRegionHandler); /* If the object is not a region, simply return */ if (RegionObject->Region.Type != ACPI_TYPE_REGION) { return (AE_OK); } /* Check that we actually got back our context parameter */ if (HandlerContext != &AeMyContext) { AcpiOsPrintf ( "Region handler received incorrect context %p, should be %p\n", HandlerContext, &AeMyContext); } MyContext = ACPI_CAST_PTR (ACPI_CONNECTION_INFO, HandlerContext); /* * Find the region's address space and length before searching * the linked list. */ BaseAddress = RegionObject->Region.Address; Length = RegionObject->Region.Length; SpaceId = RegionObject->Region.SpaceId; ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, "Operation Region request on %s at 0x%X, BitWidth 0x%X, RegionLength 0x%X\n", AcpiUtGetRegionName (RegionObject->Region.SpaceId), (UINT32) Address, BitWidth, (UINT32) Length)); /* * Region support can be disabled with the -do option. * We use this to support dynamically loaded tables where we pass a valid * address to the AML. */ if (AcpiGbl_DbOpt_NoRegionSupport) { BufferValue = ACPI_TO_POINTER (Address); ByteWidth = (BitWidth / 8); if (BitWidth % 8) { ByteWidth += 1; } goto DoFunction; } switch (SpaceId) { case ACPI_ADR_SPACE_SYSTEM_IO: /* * For I/O space, exercise the port validation * Note: ReadPort currently always returns all ones, length=BitLength */ switch (Function & ACPI_IO_MASK) { case ACPI_READ: if (BitWidth == 64) { /* Split the 64-bit request into two 32-bit requests */ Status = AcpiHwReadPort (Address, &Value1, 32); ACPI_CHECK_OK (AcpiHwReadPort, Status); Status = AcpiHwReadPort (Address+4, &Value2, 32); ACPI_CHECK_OK (AcpiHwReadPort, Status); *Value = Value1 | ((UINT64) Value2 << 32); } else { Status = AcpiHwReadPort (Address, &Value1, BitWidth); ACPI_CHECK_OK (AcpiHwReadPort, Status); *Value = (UINT64) Value1; } break; case ACPI_WRITE: if (BitWidth == 64) { /* Split the 64-bit request into two 32-bit requests */ Status = AcpiHwWritePort (Address, ACPI_LODWORD (*Value), 32); ACPI_CHECK_OK (AcpiHwWritePort, Status); Status = AcpiHwWritePort (Address+4, ACPI_HIDWORD (*Value), 32); ACPI_CHECK_OK (AcpiHwWritePort, Status); } else { Status = AcpiHwWritePort (Address, (UINT32) *Value, BitWidth); ACPI_CHECK_OK (AcpiHwWritePort, Status); } break; default: Status = AE_BAD_PARAMETER; break; } if (ACPI_FAILURE (Status)) { return (Status); } /* Now go ahead and simulate the hardware */ break; /* * SMBus and GenericSerialBus support the various bidirectional * protocols. */ case ACPI_ADR_SPACE_SMBUS: case ACPI_ADR_SPACE_GSBUS: /* ACPI 5.0 */ Status = AcpiExGetProtocolBufferLength ((Function >> 16), &Length); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiExec: Invalid SMbus/GSbus protocol ID: 0x%X\n", (Function >> 16)); return (Status); } /* Adjust for fixed SMBus buffer size */ if ((SpaceId == ACPI_ADR_SPACE_SMBUS) && (Length > ACPI_SMBUS_DATA_SIZE)) { Length = ACPI_SMBUS_DATA_SIZE; /* SMBus buffer is fixed-length */ } if (AcpiGbl_DisplayRegionAccess) { AcpiOsPrintf ("AcpiExec: %s " "%s: Attr %X Addr %.4X BaseAddr %.4X Length %.2X BitWidth %X BufLen %X\n", AcpiUtGetRegionName (SpaceId), (Function & ACPI_IO_MASK) ? "Write" : "Read ", (UINT32) (Function >> 16), (UINT32) Address, (UINT32) BaseAddress, Length, BitWidth, Buffer[1]); /* GenericSerialBus has a Connection() parameter */ if ((SpaceId == ACPI_ADR_SPACE_GSBUS) && MyContext) { Status = AcpiBufferToResource (MyContext->Connection, MyContext->Length, &Resource); if (ACPI_SUCCESS (Status)) { ACPI_FREE (Resource); } AcpiOsPrintf (" [AccessLength %.2X Connection %p]", MyContext->AccessLength, MyContext->Connection); } AcpiOsPrintf ("\n"); } DataBuffer = &Buffer[2]; DataLength = (UINT8) Length; /* Setup the return buffer. Note: ASLTS depends on these fill values */ if (Length == ACPI_MAX_GSBUS_DATA_SIZE) { DataLength = 0x20; /* For ASLTS only */ } for (i = 0; i < Length; i++) { DataBuffer[i] = (UINT8) (0xA0 + i); } Buffer[0] = 0; /* Return Status, OK */ Buffer[1] = DataLength; /* Length of valid data */ return (AE_OK); case ACPI_ADR_SPACE_IPMI: /* ACPI 4.0 */ if (AcpiGbl_DisplayRegionAccess) { AcpiOsPrintf ("AcpiExec: IPMI " "%s: Attr %X Addr %.4X BaseAddr %.4X Len %.2X Width %X BufLen %X\n", (Function & ACPI_IO_MASK) ? "Write" : "Read ", (UINT32) (Function >> 16), (UINT32) Address, (UINT32) BaseAddress, Length, BitWidth, Buffer[1]); } /* * Regardless of a READ or WRITE, this handler is passed a 66-byte * buffer in which to return the IPMI status/length/data. * * Return some example data to show use of the bidirectional buffer */ Buffer[0] = 0; /* Status byte */ Buffer[1] = ACPI_IPMI_DATA_SIZE; /* Return buffer data length */ Buffer[2] = 0; /* Completion code */ Buffer[3] = 0; /* Reserved */ /* * Fill the 66-byte buffer with the return data. * Note: ASLTS depends on these fill values. */ for (i = 4; i < ACPI_IPMI_BUFFER_SIZE; i++) { Buffer[i] = (UINT8) (i); } return (AE_OK); /* * GPIO has some special semantics: * 1) Address is the pin number index into the Connection() pin list * 2) BitWidth is the actual number of bits (pins) defined by the field */ case ACPI_ADR_SPACE_GPIO: /* ACPI 5.0 */ if (AcpiGbl_DisplayRegionAccess) { AcpiOsPrintf ("AcpiExec: GPIO " "%s: Address %.4X Length %X BitWidth %X Conn %p\n", (Function & ACPI_IO_MASK) ? "Write" : "Read ", (UINT32) Address, Length, BitWidth, MyContext->Connection); } /* Now perform the "normal" SystemMemory handling, for AcpiExec only */ break; /* * PCC operation region will write the entire subspace's data and expect * a response from the hardware. For acpiexec, we'll fill the buffer with * default values. Note: ASLTS will depend on these values. */ case ACPI_ADR_SPACE_PLATFORM_COMM: /* ACPI 6.3 */ if (AcpiGbl_DisplayRegionAccess) { AcpiOsPrintf ("AcpiExec: PCC Write : Addr %.4X Width %X\n", (UINT32) Address, BitWidth); } for (i = 0; i < Length; ++i) { Buffer[i] = (UINT8) i; } return (AE_OK); case ACPI_ADR_SPACE_PLATFORM_RT: AcpiOsPrintf ("Acpiexec: PRM %s invoked\n", (Function & ACPI_IO_MASK) ? "Write" : "Read "); if ((Function & ACPI_IO_MASK) == ACPI_WRITE) { AcpiUtConvertUuidToString((char *) Buffer + 10, Uuid); AcpiOsPrintf ("Mode: %u GUID: %s\n", Buffer[0], Uuid); } /* Unpack the input buffer and print the contents for debug */ break; default: break; } /* * Search through the linked list for this region's buffer */ BufferExists = FALSE; BufferResize = FALSE; RegionElement = AeRegions.RegionList; if (AeRegions.NumberOfRegions) { BaseAddressEnd = BaseAddress + Length - 1; while (!BufferExists && RegionElement) { RegionAddress = RegionElement->Address; RegionAddressEnd = RegionElement->Address + RegionElement->Length - 1; RegionLength = RegionElement->Length; /* * Overlapping Region Support * * While searching through the region buffer list, determine if an * overlap exists between the requested buffer space and the current * RegionElement space. If there is an overlap then replace the old * buffer with a new buffer of increased size before continuing to * do the read or write */ if (RegionElement->SpaceId != SpaceId || BaseAddressEnd < RegionAddress || BaseAddress > RegionAddressEnd) { /* * Requested buffer is outside of the current RegionElement * bounds */ RegionElement = RegionElement->NextRegion; } else { /* * Some amount of buffer space sharing exists. There are 4 cases * to consider: * * 1. Right overlap * 2. Left overlap * 3. Left and right overlap * 4. Fully contained - no resizing required */ BufferExists = TRUE; if ((BaseAddress >= RegionAddress) && (BaseAddress <= RegionAddressEnd) && (BaseAddressEnd > RegionAddressEnd)) { /* Right overlap */ RegionElement->Length = (UINT32) (BaseAddress - RegionAddress + Length); BufferResize = TRUE; } else if ((BaseAddressEnd >= RegionAddress) && (BaseAddressEnd <= RegionAddressEnd) && (BaseAddress < RegionAddress)) { /* Left overlap */ RegionElement->Address = BaseAddress; RegionElement->Length = (UINT32) (RegionAddress - BaseAddress + RegionElement->Length); BufferResize = TRUE; } else if ((BaseAddress < RegionAddress) && (BaseAddressEnd > RegionAddressEnd)) { /* Left and right overlap */ RegionElement->Address = BaseAddress; RegionElement->Length = Length; BufferResize = TRUE; } /* * only remaining case is fully contained for which we don't * need to do anything */ if (BufferResize) { NewBuffer = AcpiOsAllocate (RegionElement->Length); if (!NewBuffer) { return (AE_NO_MEMORY); } OldBuffer = RegionElement->Buffer; RegionElement->Buffer = NewBuffer; NewBuffer = NULL; /* Initialize the region with the default fill value */ memset (RegionElement->Buffer, AcpiGbl_RegionFillValue, RegionElement->Length); /* * Get BufferValue to point (within the new buffer) to the * base address of the old buffer */ BufferValue = (UINT8 *) RegionElement->Buffer + (UINT64) RegionAddress - (UINT64) RegionElement->Address; /* * Copy the old buffer to its same location within the new * buffer */ memcpy (BufferValue, OldBuffer, RegionLength); AcpiOsFree (OldBuffer); } } } } /* * If the Region buffer does not exist, create it now */ if (!BufferExists) { /* Do the memory allocations first */ RegionElement = AcpiOsAllocate (sizeof (AE_REGION)); if (!RegionElement) { return (AE_NO_MEMORY); } RegionElement->Buffer = AcpiOsAllocate (Length); if (!RegionElement->Buffer) { AcpiOsFree (RegionElement); return (AE_NO_MEMORY); } /* Initialize the region with the default fill value */ memset (RegionElement->Buffer, AcpiGbl_RegionFillValue, Length); RegionElement->Address = BaseAddress; RegionElement->Length = Length; RegionElement->SpaceId = SpaceId; RegionElement->NextRegion = NULL; /* * Increment the number of regions and put this one * at the head of the list as it will probably get accessed * more often anyway. */ AeRegions.NumberOfRegions += 1; if (AeRegions.RegionList) { RegionElement->NextRegion = AeRegions.RegionList; } AeRegions.RegionList = RegionElement; } /* Calculate the size of the memory copy */ ByteWidth = (BitWidth / 8); if (BitWidth % 8) { ByteWidth += 1; } /* * The buffer exists and is pointed to by RegionElement. * We now need to verify the request is valid and perform the operation. * * NOTE: RegionElement->Length is in bytes, therefore it we compare against * ByteWidth (see above) */ if ((RegionObject->Region.SpaceId != ACPI_ADR_SPACE_GPIO) && ((UINT64) Address + ByteWidth) > ((UINT64)(RegionElement->Address) + RegionElement->Length)) { ACPI_WARNING ((AE_INFO, "Request on [%4.4s] is beyond region limit " "Req-0x%X+0x%X, Base=0x%X, Len-0x%X", (RegionObject->Region.Node)->Name.Ascii, (UINT32) Address, ByteWidth, (UINT32)(RegionElement->Address), RegionElement->Length)); return (AE_AML_REGION_LIMIT); } /* * Get BufferValue to point to the "address" in the buffer */ BufferValue = ((UINT8 *) RegionElement->Buffer + ((UINT64) Address - (UINT64) RegionElement->Address)); DoFunction: /* * Perform a read or write to the buffer space */ switch (Function) { case ACPI_READ: /* * Set the pointer Value to whatever is in the buffer */ memcpy (Value, BufferValue, ByteWidth); break; case ACPI_WRITE: /* * Write the contents of Value to the buffer */ memcpy (BufferValue, Value, ByteWidth); break; default: return (AE_BAD_PARAMETER); } if (AcpiGbl_DisplayRegionAccess) { switch (SpaceId) { case ACPI_ADR_SPACE_SYSTEM_MEMORY: AcpiOsPrintf ("AcpiExec: SystemMemory " "%s: Val %.8X Addr %.4X BitWidth %X [REGION: BaseAddr %.4X Len %.2X]\n", (Function & ACPI_IO_MASK) ? "Write" : "Read ", (UINT32) *Value, (UINT32) Address, BitWidth, (UINT32) BaseAddress, Length); break; case ACPI_ADR_SPACE_GSBUS: AcpiOsPrintf ("AcpiExec: GenericSerialBus\n"); break; case ACPI_ADR_SPACE_GPIO: /* ACPI 5.0 */ /* This space is required to always be ByteAcc */ Status = AcpiBufferToResource (MyContext->Connection, MyContext->Length, &Resource); AcpiOsPrintf ("AcpiExec: GeneralPurposeIo " "%s: %.8X Addr %.4X BaseAddr %.4X Length %.2X " "BitWidth %X AccLen %.2X Conn %p\n", (Function & ACPI_IO_MASK) ? "Write" : "Read ", (UINT32) *Value, (UINT32) Address, (UINT32) BaseAddress, Length, BitWidth, MyContext->AccessLength, MyContext->Connection); if (ACPI_SUCCESS (Status)) { ACPI_FREE (Resource); } break; default: AcpiOsPrintf ("AcpiExec: Region access on SpaceId %2.2X\n", SpaceId); break; } } return (AE_OK); } acpica-unix-20250404/source/tools/acpiexec/aemain.c0000775000175000017500000004671514773714134021377 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aemain - Main routine for the AcpiExec utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aecommon.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("aemain") /* * Main routine for the ACPI user-space execution utility. * * Portability note: The utility depends upon the host for command-line * wildcard support - it is not implemented locally. For example: * * Linux/Unix systems: Shell expands wildcards automatically. * * Windows: The setargv.obj module must be linked in to automatically * expand wildcards. */ /* Local prototypes */ static int AeDoOptions ( int argc, char **argv); #define AE_BUFFER_SIZE 1024 #define ASL_MAX_FILES 256 /* Execution modes */ #define AE_MODE_COMMAND_LOOP 0 /* Normal command execution loop */ #define AE_MODE_BATCH_MULTIPLE 1 /* -b option to execute a command line */ #define AE_MODE_BATCH_SINGLE 2 /* -m option to execute a single control method */ /* Globals */ BOOLEAN AcpiGbl_UseLocalFaultHandler = TRUE; BOOLEAN AcpiGbl_VerboseHandlers = FALSE; UINT8 AcpiGbl_RegionFillValue = 0; BOOLEAN AcpiGbl_IgnoreErrors = FALSE; BOOLEAN AcpiGbl_AbortLoopOnTimeout = FALSE; UINT8 AcpiGbl_UseHwReducedFadt = FALSE; BOOLEAN AcpiGbl_DoInterfaceTests = FALSE; BOOLEAN AcpiGbl_LoadTestTables = FALSE; BOOLEAN AcpiGbl_AeLoadOnly = FALSE; static UINT8 AcpiGbl_ExecutionMode = AE_MODE_COMMAND_LOOP; static char BatchBuffer[AE_BUFFER_SIZE]; /* Batch command buffer */ INIT_FILE_ENTRY *AcpiGbl_InitEntries = NULL; UINT32 AcpiGbl_InitFileLineCount = 0; #define ACPIEXEC_NAME "AML Execution/Debug Utility" #define AE_SUPPORTED_OPTIONS "?b:d:e:f^ghlm^rt^v^:x:" /* Stubs for the disassembler */ void MpSaveGpioInfo ( ACPI_PARSE_OBJECT *Op, AML_RESOURCE *Resource, UINT32 PinCount, UINT16 *PinList, char *DeviceName) { } void MpSaveSerialInfo ( ACPI_PARSE_OBJECT *Op, AML_RESOURCE *Resource, char *DeviceName) { } /****************************************************************************** * * FUNCTION: usage * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Print a usage message * *****************************************************************************/ static void usage ( void) { ACPI_USAGE_HEADER ("acpiexec [options] AMLfile1 AMLfile2 ..."); ACPI_OPTION ("-b \"CommandLine\"", "Batch mode command line execution (cmd1;cmd2;...)"); ACPI_OPTION ("-h -?", "Display this help message"); ACPI_OPTION ("-m [Method]", "Batch mode method execution. Default=MAIN"); printf ("\n"); ACPI_OPTION ("-da", "Disable method abort on error"); ACPI_OPTION ("-df", "Disable Local fault handler"); ACPI_OPTION ("-di", "Disable execution of STA/INI methods during init"); ACPI_OPTION ("-do", "Disable Operation Region address simulation"); ACPI_OPTION ("-dr", "Disable repair of method return values"); ACPI_OPTION ("-ds", "Disable method auto-serialization"); ACPI_OPTION ("-dt", "Disable allocation tracking (performance)"); printf ("\n"); ACPI_OPTION ("-ed", "Enable timer output for Debug Object"); ACPI_OPTION ("-ef", "Enable display of final memory statistics"); ACPI_OPTION ("-ei", "Enable additional tests for ACPICA interfaces"); ACPI_OPTION ("-el", "Enable loading of additional test tables"); ACPI_OPTION ("-eo", "Enable object evaluation log"); ACPI_OPTION ("-es", "Enable Interpreter Slack Mode"); ACPI_OPTION ("-et", "Enable debug semaphore timeout"); printf ("\n"); ACPI_OPTION ("-fi ", "Specify namespace initialization file"); ACPI_OPTION ("-fv ", "Operation Region initialization fill value"); printf ("\n"); ACPI_OPTION ("-l", "Load tables and namespace only"); ACPI_OPTION ("-r", "Use hardware-reduced FADT V5"); ACPI_OPTION ("-te", "Exit loop on timeout instead of aborting method"); ACPI_OPTION ("-to ", "Set timeout period for AML while loops"); printf ("\n"); ACPI_OPTION ("-v", "Display version information"); ACPI_OPTION ("-va", "Display verbose dump of any memory leaks"); ACPI_OPTION ("-vd", "Display build date and time"); ACPI_OPTION ("-vh", "Verbose exception handler output"); ACPI_OPTION ("-vi", "Verbose initialization output"); ACPI_OPTION ("-vr", "Verbose region handler output"); ACPI_OPTION ("-x ", "Debug output level"); printf ("\n From within the interactive mode, use '?' or \"help\" to see\n" " a list of available AML Debugger commands\n"); } /****************************************************************************** * * FUNCTION: AeDoOptions * * PARAMETERS: argc/argv - Standard argc/argv * * RETURN: Status * * DESCRIPTION: Command line option processing * *****************************************************************************/ static int AeDoOptions ( int argc, char **argv) { int j; UINT32 Temp; while ((j = AcpiGetopt (argc, argv, AE_SUPPORTED_OPTIONS)) != ACPI_OPT_END) switch (j) { case 'b': if (strlen (AcpiGbl_Optarg) > (AE_BUFFER_SIZE -1)) { printf ("**** The length of command line (%u) exceeded maximum (%d)\n", (UINT32) strlen (AcpiGbl_Optarg), (AE_BUFFER_SIZE -1)); return (-1); } AcpiGbl_ExecutionMode = AE_MODE_BATCH_MULTIPLE; strcpy (BatchBuffer, AcpiGbl_Optarg); break; case 'd': switch (AcpiGbl_Optarg[0]) { case 'a': AcpiGbl_IgnoreErrors = TRUE; break; case 'f': AcpiGbl_UseLocalFaultHandler = FALSE; break; case 'i': AcpiGbl_DbOpt_NoIniMethods = TRUE; break; case 'o': AcpiGbl_DbOpt_NoRegionSupport = TRUE; break; case 'r': AcpiGbl_DisableAutoRepair = TRUE; break; case 's': AcpiGbl_AutoSerializeMethods = FALSE; break; case 't': #ifdef ACPI_DBG_TRACK_ALLOCATIONS AcpiGbl_DisableMemTracking = TRUE; #endif break; default: printf ("Unknown option: -d%s\n", AcpiGbl_Optarg); return (-1); } break; case 'e': switch (AcpiGbl_Optarg[0]) { case 'd': AcpiGbl_DisplayDebugTimer = TRUE; break; case 'f': #ifdef ACPI_DBG_TRACK_ALLOCATIONS AcpiGbl_DisplayFinalMemStats = TRUE; #endif break; case 'i': AcpiGbl_DoInterfaceTests = TRUE; break; case 'l': AcpiGbl_LoadTestTables = TRUE; break; case 'o': AcpiDbgLevel |= ACPI_LV_EVALUATION; AcpiGbl_DbConsoleDebugLevel |= ACPI_LV_EVALUATION; break; case 's': AcpiGbl_EnableInterpreterSlack = TRUE; printf ("Enabling AML Interpreter slack mode\n"); break; case 't': AcpiGbl_DebugTimeout = TRUE; break; default: printf ("Unknown option: -e%s\n", AcpiGbl_Optarg); return (-1); } break; case 'f': switch (AcpiGbl_Optarg[0]) { case 'v': /* -fv: region fill value */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } AcpiGbl_RegionFillValue = (UINT8) strtoul (AcpiGbl_Optarg, NULL, 0); break; case 'i': /* -fi: specify initialization file */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } if (AeOpenInitializationFile (AcpiGbl_Optarg)) { return (-1); } break; default: printf ("Unknown option: -f%s\n", AcpiGbl_Optarg); return (-1); } break; case 'g': AcpiGbl_DbFilename = NULL; break; case 'h': case '?': usage(); return (1); case 'l': AcpiGbl_AeLoadOnly = TRUE; break; case 'm': AcpiGbl_ExecutionMode = AE_MODE_BATCH_SINGLE; switch (AcpiGbl_Optarg[0]) { case '^': strcpy (BatchBuffer, "MAIN"); break; default: strcpy (BatchBuffer, AcpiGbl_Optarg); break; } break; case 'r': AcpiGbl_UseHwReducedFadt = TRUE; printf ("Using ACPI 5.0 Hardware Reduced Mode via version 5 FADT\n"); break; case 't': switch (AcpiGbl_Optarg[0]) { case 'o': /* -to: Set loop timeout in seconds */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } Temp = strtoul (AcpiGbl_Optarg, NULL, 0); if (!Temp || (Temp > ACPI_UINT16_MAX)) { printf ("%s: Invalid loop timeout value\n", AcpiGbl_Optarg); return (-1); } AcpiGbl_MaxLoopIterations = (UINT16) Temp; printf ("Automatic loop timeout after %u seconds\n", AcpiGbl_MaxLoopIterations); break; case 'e': AcpiGbl_AbortLoopOnTimeout = TRUE; break; default: printf ("Unknown option: -t%s\n", AcpiGbl_Optarg); return (-1); } break; case 'v': switch (AcpiGbl_Optarg[0]) { case '^': /* -v: (Version): signon already emitted, just exit */ return (1); case 'a': AcpiGbl_VerboseLeakDump = TRUE; break; case 'd': printf (ACPI_COMMON_BUILD_TIME); return (1); case 'h': AcpiGbl_VerboseHandlers = TRUE; break; case 'i': AcpiDbgLevel |= ACPI_LV_INIT_NAMES; break; case 'r': AcpiGbl_DisplayRegionAccess = TRUE; break; default: printf ("Unknown option: -v%s\n", AcpiGbl_Optarg); return (-1); } break; case 'x': AcpiDbgLevel = strtoul (AcpiGbl_Optarg, NULL, 16); AcpiGbl_DbConsoleDebugLevel = AcpiDbgLevel; printf ("Debug Level: 0x%8.8X\n", AcpiDbgLevel); break; default: usage(); return (-1); } return (0); } /****************************************************************************** * * FUNCTION: main * * PARAMETERS: argc, argv * * RETURN: Status * * DESCRIPTION: Main routine for AcpiExec utility * *****************************************************************************/ int ACPI_SYSTEM_XFACE main ( int argc, char **argv) { ACPI_NEW_TABLE_DESC *ListHead = NULL; ACPI_STATUS Status; UINT32 InitFlags; int ExitCode = 0; ACPI_DEBUG_INITIALIZE (); /* For debug version only */ signal (SIGINT, AeSignalHandler); /* Init debug globals */ AcpiDbgLevel = ACPI_NORMAL_DEFAULT; AcpiDbgLayer = 0xFFFFFFFF; /* * Initialize ACPICA and start debugger thread. * * NOTE: After ACPICA initialization, AcpiTerminate MUST be called * before this procedure exits -- otherwise, the console may be * left in an incorrect state. */ Status = AcpiInitializeSubsystem (); ACPI_CHECK_OK (AcpiInitializeSubsystem, Status); if (ACPI_FAILURE (Status)) { ExitCode = -1; goto ErrorExit; } /* Use a shorter timeout value for acpiexec */ AcpiGbl_MaxLoopIterations = 10; /* Initialize the AML debugger */ Status = AcpiInitializeDebugger (); ACPI_CHECK_OK (AcpiInitializeDebugger, Status); if (ACPI_FAILURE (Status)) { ExitCode = -1; goto ErrorExit; } printf (ACPI_COMMON_SIGNON (ACPIEXEC_NAME)); if (argc < 2) { usage (); goto NormalExit; } /* Get the command line options */ ExitCode = AeDoOptions (argc, argv); if (ExitCode) { if (ExitCode > 0) { ExitCode = 0; } goto ErrorExit; } if (AcpiGbl_UseLocalFaultHandler) { signal (SIGSEGV, AeSignalHandler); } /* The remaining arguments are filenames for ACPI tables */ if (!argv[AcpiGbl_Optind]) { goto EnterDebugger; } AcpiGbl_CstyleDisassembly = FALSE; /* Not supported for AcpiExec */ /* Get each of the ACPI table files on the command line */ while (argv[AcpiGbl_Optind]) { /* Get all ACPI AML tables in this file */ Status = AcGetAllTablesFromFile (argv[AcpiGbl_Optind], ACPI_GET_ALL_TABLES, &ListHead); if (ACPI_FAILURE (Status)) { ExitCode = -1; goto ErrorExit; } AcpiGbl_Optind++; } printf ("\n"); /* Build a local RSDT with all tables and let ACPICA process the RSDT */ Status = AeBuildLocalTables (ListHead); if (ACPI_FAILURE (Status)) { ExitCode = -1; goto ErrorExit; } /* Install all of the ACPI tables */ Status = AeInstallTables (); if (ACPI_FAILURE (Status)) { printf ("**** Could not install ACPI tables, %s\n", AcpiFormatException (Status)); goto EnterDebugger; } /* * Install most of the handlers (Regions, Notify, Table, etc.) * Override the default region handlers, especially SystemMemory, * which is simulated in this utility. */ Status = AeInstallEarlyHandlers (); if (ACPI_FAILURE (Status)) { goto EnterDebugger; } /* Read the entire namespace initialization file if requested */ Status = AeProcessInitFile(); if (ACPI_FAILURE (Status)) { ExitCode = -1; goto ErrorExit; } Status = AeLoadTables (); if (ACPI_FAILURE (Status)) { printf ("**** Could not load ACPI tables, %s\n", AcpiFormatException (Status)); goto EnterDebugger; } /* * Exit namespace initialization for the "load namespace only" option. * No control methods will be executed. However, still enter the * the debugger. */ if (AcpiGbl_AeLoadOnly) { goto EnterDebugger; } /* Setup initialization flags for ACPICA */ InitFlags = (ACPI_NO_HANDLER_INIT | ACPI_NO_ACPI_ENABLE); if (AcpiGbl_DbOpt_NoIniMethods) { InitFlags |= (ACPI_NO_DEVICE_INIT | ACPI_NO_OBJECT_INIT); } /* * Main initialization for ACPICA subsystem * TBD: Need a way to call this after the ACPI table "LOAD" command? * * NOTE: This initialization does not match the _Lxx and _Exx methods * to individual GPEs, as there are no real GPEs when the hardware * is simulated - because there is no namespace until AeLoadTables is * executed. This may have to change if AcpiExec is ever run natively * on actual hardware (such as under UEFI). */ Status = AcpiEnableSubsystem (InitFlags); if (ACPI_FAILURE (Status)) { printf ("**** Could not EnableSubsystem, %s\n", AcpiFormatException (Status)); goto EnterDebugger; } /* * Install handlers for "device driver" space IDs (EC,SMBus, etc.) * and fixed event handlers */ AeInstallLateHandlers (); /* Finish the ACPICA initialization */ Status = AcpiInitializeObjects (InitFlags); if (ACPI_FAILURE (Status)) { printf ("**** Could not InitializeObjects, %s\n", AcpiFormatException (Status)); goto EnterDebugger; } AeDisplayUnusedInitFileItems (); AeMiscellaneousTests (); EnterDebugger: /* Exit if error above and we are in one of the batch modes */ if (ACPI_FAILURE (Status) && (AcpiGbl_ExecutionMode > 0)) { goto ErrorExit; } /* Run a batch command or enter the command loop */ switch (AcpiGbl_ExecutionMode) { default: case AE_MODE_COMMAND_LOOP: AcpiRunDebugger (NULL); break; case AE_MODE_BATCH_MULTIPLE: AcpiRunDebugger (BatchBuffer); break; case AE_MODE_BATCH_SINGLE: AcpiDbExecute (BatchBuffer, NULL, NULL, EX_NO_SINGLE_STEP); break; } /* Shut down the debugger and ACPICA */ AcpiTerminateDebugger (); /* re-enable debug output for AcpiTerminate output */ AcpiGbl_DbOutputFlags = ACPI_DB_CONSOLE_OUTPUT; NormalExit: ExitCode = 0; ErrorExit: AeLateTest (); AeDeleteInitFileList (); (void) AcpiTerminate (); AcDeleteTableList (ListHead); return (ExitCode); } acpica-unix-20250404/source/tools/acpiexec/aeinitfile.c0000775000175000017500000002444314773714134022250 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aeinitfile - Support for optional initialization file * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aecommon.h" #include "acdispat.h" #include "acnamesp.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("aeinitfile") #define AE_FILE_BUFFER_SIZE 512 static char LineBuffer[AE_FILE_BUFFER_SIZE]; static char NameBuffer[AE_FILE_BUFFER_SIZE]; static FILE *InitFile; /****************************************************************************** * * FUNCTION: AeOpenInitializationFile * * PARAMETERS: Filename - Path to the init file * * RETURN: Status * * DESCRIPTION: Open the initialization file for the -fi option * *****************************************************************************/ int AeOpenInitializationFile ( char *Filename) { InitFile = fopen (Filename, "r"); if (!InitFile) { fprintf (stderr, "Could not open initialization file: %s\n", Filename); return (-1); } AcpiOsPrintf ("Opened initialization file [%s]\n", Filename); return (0); } /****************************************************************************** * * FUNCTION: AeProcessInitFile * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Read the initialization file and perform all namespace * initializations. AcpiGbl_InitEntries will be used for all * object initialization. * * NOTE: The format of the file is multiple lines, each of format: * * *****************************************************************************/ ACPI_STATUS AeProcessInitFile ( void) { ACPI_WALK_STATE *WalkState; UINT64 idx; ACPI_STATUS Status = AE_OK; char *Token; char *ValueBuffer; char *TempNameBuffer; ACPI_OBJECT_TYPE Type; ACPI_OBJECT TempObject; if (!InitFile) { return (AE_OK); } /* Create needed objects to be reused for each init entry */ WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL); NameBuffer[0] = '\\'; NameBuffer[1] = 0; while (fgets (LineBuffer, AE_FILE_BUFFER_SIZE, InitFile) != NULL) { ++AcpiGbl_InitFileLineCount; } rewind (InitFile); /* * Allocate and populate the Gbl_InitEntries array */ AcpiGbl_InitEntries = AcpiOsAllocateZeroed (sizeof (INIT_FILE_ENTRY) * AcpiGbl_InitFileLineCount); for (idx = 0; fgets (LineBuffer, AE_FILE_BUFFER_SIZE, InitFile); ++idx) { TempNameBuffer = AcpiDbGetNextToken (LineBuffer, &Token, &Type); if (!TempNameBuffer) { AcpiGbl_InitEntries[idx].Name = NULL; continue; } if (LineBuffer[0] == '\\') { strcpy (NameBuffer, TempNameBuffer); } else { /* Add a root prefix if not present in the string */ strcpy (NameBuffer + 1, TempNameBuffer); } AcpiNsNormalizePathname (NameBuffer); AcpiGbl_InitEntries[idx].Name = AcpiOsAllocateZeroed (strnlen (NameBuffer, AE_FILE_BUFFER_SIZE) + 1); strcpy (AcpiGbl_InitEntries[idx].Name, NameBuffer); ValueBuffer = AcpiDbGetNextToken (Token, &Token, &Type); if (!ValueBuffer) { AcpiGbl_InitEntries[idx].Value = NULL; continue; } AcpiGbl_InitEntries[idx].Value = AcpiOsAllocateZeroed (strnlen (ValueBuffer, AE_FILE_BUFFER_SIZE) + 1); strcpy (AcpiGbl_InitEntries[idx].Value, ValueBuffer); if (Type == ACPI_TYPE_FIELD_UNIT) { Status = AcpiDbConvertToObject (ACPI_TYPE_BUFFER, ValueBuffer, &TempObject); } else { Status = AcpiDbConvertToObject (Type, ValueBuffer, &TempObject); } if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("%s[%s]: %s\n", NameBuffer, AcpiUtGetTypeName (Type), AcpiFormatException (Status)); goto CleanupAndExit; } Status = AcpiUtCopyEobjectToIobject (&TempObject, &AcpiGbl_InitEntries[idx].ObjDesc); /* Cleanup the external object created by DbConvertToObject above */ if (ACPI_SUCCESS (Status)) { if (Type == ACPI_TYPE_BUFFER || Type == ACPI_TYPE_FIELD_UNIT) { ACPI_FREE (TempObject.Buffer.Pointer); } else if (Type == ACPI_TYPE_PACKAGE) { AcpiDbDeleteObjects (1, &TempObject); } } else { AcpiOsPrintf ("%s[%s]: %s\n", NameBuffer, AcpiUtGetTypeName (Type), AcpiFormatException (Status)); goto CleanupAndExit; } /* * Initialize the namespace node with the value found in the init file. */ AcpiOsPrintf ("Namespace object init from file: %16s, Value \"%s\", Type %s\n", AcpiGbl_InitEntries[idx].Name, AcpiGbl_InitEntries[idx].Value, AcpiUtGetTypeName (Type)); } /* Cleanup */ CleanupAndExit: fclose (InitFile); AcpiDsDeleteWalkState (WalkState); return (Status); } /****************************************************************************** * * FUNCTION: AeLookupInitFileEntry * * PARAMETERS: Pathname - AML namepath in external format * ObjDesc - Where the object is returned if it exists * * RETURN: Status. AE_OK if a match was found * * DESCRIPTION: Search the init file for a particular name and its value. * *****************************************************************************/ ACPI_STATUS AeLookupInitFileEntry ( char *Pathname, ACPI_OPERAND_OBJECT **ObjDesc) { UINT32 i; ACPI_FUNCTION_TRACE (AeLookupInitFileEntry); ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Lookup: %s\n", Pathname)); if (!AcpiGbl_InitEntries) { return (AE_NOT_FOUND); } AcpiNsNormalizePathname (Pathname); for (i = 0; i < AcpiGbl_InitFileLineCount; ++i) { if (AcpiGbl_InitEntries[i].Name && !strcmp (AcpiGbl_InitEntries[i].Name, Pathname)) { *ObjDesc = AcpiGbl_InitEntries[i].ObjDesc; AcpiGbl_InitEntries[i].IsUsed = TRUE; ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "Found match: %s, %p\n", Pathname, *ObjDesc)); return_ACPI_STATUS (AE_OK); } } ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "No match found: %s\n", Pathname)); return_ACPI_STATUS (AE_NOT_FOUND); } /****************************************************************************** * * FUNCTION: AeDisplayUnusedInitFileItems * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display all init file items that have not been referenced * (i.e., items that have not been found in the namespace). * *****************************************************************************/ void AeDisplayUnusedInitFileItems ( void) { UINT32 i; if (!AcpiGbl_InitEntries) { return; } for (i = 0; i < AcpiGbl_InitFileLineCount; ++i) { if (AcpiGbl_InitEntries[i].Name && !AcpiGbl_InitEntries[i].IsUsed) { AcpiOsPrintf ("Init file entry not found in namespace " "(or is a non-data type): %s\n", AcpiGbl_InitEntries[i].Name); } } } /****************************************************************************** * * FUNCTION: AeDeleteInitFileList * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Delete the global namespace initialization file data * *****************************************************************************/ void AeDeleteInitFileList ( void) { UINT32 i; if (!AcpiGbl_InitEntries) { return; } for (i = 0; i < AcpiGbl_InitFileLineCount; ++i) { if ((AcpiGbl_InitEntries[i].ObjDesc) && (AcpiGbl_InitEntries[i].Value)) { /* Remove one reference on the object (and all subobjects) */ AcpiUtRemoveReference (AcpiGbl_InitEntries[i].ObjDesc); } } AcpiOsFree (AcpiGbl_InitEntries); } acpica-unix-20250404/source/tools/acpiexec/aeinstall.c0000775000175000017500000003207414773714134022112 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aeinstall - Installation of operation region handlers * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aecommon.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("aeinstall") static ACPI_STATUS AeRegionInit ( ACPI_HANDLE RegionHandle, UINT32 Function, void *HandlerContext, void **RegionContext); static ACPI_STATUS AeInstallEcHandler ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); static ACPI_STATUS AeInstallPciHandler ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); static ACPI_STATUS AeInstallGedHandler ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); BOOLEAN AcpiGbl_DisplayRegionAccess = FALSE; ACPI_CONNECTION_INFO AeMyContext; /* * We will override some of the default region handlers, especially * the SystemMemory handler, which must be implemented locally. * These handlers are installed "early" - before any _REG methods * are executed - since they are special in the sense that the ACPI spec * declares that they must "always be available". Cannot override the * DataTable region handler either -- needed for test execution. * * NOTE: The local region handler will simulate access to these address * spaces by creating a memory buffer behind each operation region. */ static ACPI_ADR_SPACE_TYPE DefaultSpaceIdList[] = { ACPI_ADR_SPACE_SYSTEM_MEMORY, ACPI_ADR_SPACE_SYSTEM_IO, ACPI_ADR_SPACE_PCI_CONFIG, ACPI_ADR_SPACE_EC }; /* * We will install handlers for some of the various address space IDs. * Test one user-defined address space (used by aslts). */ #define ACPI_ADR_SPACE_USER_DEFINED1 0x80 #define ACPI_ADR_SPACE_USER_DEFINED2 0xE4 static ACPI_ADR_SPACE_TYPE SpaceIdList[] = { ACPI_ADR_SPACE_SMBUS, ACPI_ADR_SPACE_CMOS, ACPI_ADR_SPACE_PCI_BAR_TARGET, ACPI_ADR_SPACE_IPMI, ACPI_ADR_SPACE_GPIO, ACPI_ADR_SPACE_GSBUS, ACPI_ADR_SPACE_PLATFORM_COMM, ACPI_ADR_SPACE_PLATFORM_RT, ACPI_ADR_SPACE_FIXED_HARDWARE, ACPI_ADR_SPACE_USER_DEFINED1, ACPI_ADR_SPACE_USER_DEFINED2 }; /****************************************************************************** * * FUNCTION: AeRegionInit * * PARAMETERS: Region init handler * * RETURN: Status * * DESCRIPTION: Opregion init function. * *****************************************************************************/ static ACPI_STATUS AeRegionInit ( ACPI_HANDLE RegionHandle, UINT32 Function, void *HandlerContext, void **RegionContext) { if (Function == ACPI_REGION_DEACTIVATE) { *RegionContext = NULL; } else { *RegionContext = RegionHandle; } return (AE_OK); } /****************************************************************************** * * FUNCTION: AeOverrideRegionHandlers * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Override the default region handlers for memory, i/o, and * pci_config. Also install a handler for EC. This is part of * the "install early handlers" functionality. * *****************************************************************************/ void AeOverrideRegionHandlers ( void) { UINT32 i; ACPI_STATUS Status; /* * Install handlers that will override the default handlers for some of * the space IDs. */ for (i = 0; i < ACPI_ARRAY_LENGTH (DefaultSpaceIdList); i++) { /* Install handler at the root object */ Status = AcpiInstallAddressSpaceHandler (ACPI_ROOT_OBJECT, DefaultSpaceIdList[i], AeRegionHandler, AeRegionInit, &AeMyContext); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not install an OpRegion handler for %s space(%u)", AcpiUtGetRegionName ((UINT8) DefaultSpaceIdList[i]), DefaultSpaceIdList[i])); } } } /****************************************************************************** * * FUNCTION: AeInstallRegionHandlers * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Install handlers for the address spaces other than * SystemMemory, SystemIO, and PCI_CONFIG. * *****************************************************************************/ void AeInstallRegionHandlers ( void) { UINT32 i; ACPI_STATUS Status; /* * Install handlers for some of the "device driver" address spaces * such as SMBus, etc. */ for (i = 0; i < ACPI_ARRAY_LENGTH (SpaceIdList); i++) { /* Install handler at the root object */ Status = AcpiInstallAddressSpaceHandler (ACPI_ROOT_OBJECT, SpaceIdList[i], AeRegionHandler, AeRegionInit, &AeMyContext); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not install an OpRegion handler for %s space(%u)", AcpiUtGetRegionName((UINT8) SpaceIdList[i]), SpaceIdList[i])); return; } } } /******************************************************************************* * * FUNCTION: AeInstallGedHandler * * PARAMETERS: ACPI_WALK_NAMESPACE callback * * RETURN: Status * * DESCRIPTION: Walk entire namespace, install a handler for every GED * device found. * ******************************************************************************/ static ACPI_STATUS AeInstallGedHandler ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_BUFFER ReturnBuffer; ACPI_STATUS Status; ACPI_RESOURCE *ResourceList; ACPI_RESOURCE_EXTENDED_IRQ *extended_irq_rsc; ACPI_NAMESPACE_NODE *Node; ACPI_NAMESPACE_NODE *EvtMethodNode; ACPI_FUNCTION_ENTRY(); /* Obtain the Namespace Node of this GED object handle. */ Node = AcpiNsValidateHandle (ObjHandle); if (!Node) { return (AE_BAD_PARAMETER); } /* * A GED device must have one _EVT method. * Obtain the _EVT method and store it in the global * GED register. */ Status = AcpiNsSearchOneScope ( *ACPI_CAST_PTR (ACPI_NAME, METHOD_NAME__EVT), Node, ACPI_TYPE_METHOD, &EvtMethodNode ); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Failed to obtain _EVT method for the GED device.\n"); return Status; } ReturnBuffer.Pointer = NULL; ReturnBuffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiGetCurrentResources (ObjHandle, &ReturnBuffer); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("AcpiGetCurrentResources failed: %s\n", AcpiFormatException (Status)); return Status; } /* Traverse the _CRS resource list */ ResourceList = ACPI_CAST_PTR (ACPI_RESOURCE, ReturnBuffer.Pointer); while (ResourceList->Type != ACPI_RESOURCE_TYPE_END_TAG) { switch (ResourceList->Type) { case ACPI_RESOURCE_TYPE_EXTENDED_IRQ: { /* * Found an Interrupt resource. Link the interrupt resource * and the _EVT method of this GED device in the GED event handler list. */ ACPI_GED_HANDLER_INFO *GedHandler = ACPI_ALLOCATE (sizeof (ACPI_SCI_HANDLER_INFO)); if (!GedHandler) { return AE_NO_MEMORY; } GedHandler->Next = AcpiGbl_GedHandlerList; AcpiGbl_GedHandlerList = GedHandler; extended_irq_rsc = &ResourceList->Data.ExtendedIrq; GedHandler->IntId = extended_irq_rsc->Interrupts[0]; GedHandler->EvtMethod = EvtMethodNode; AcpiOsPrintf ("Interrupt ID %d\n", extended_irq_rsc->Interrupts[0]); break; } default: AcpiOsPrintf ("Resource type %X\n", ResourceList->Type); } ResourceList = ACPI_NEXT_RESOURCE (ResourceList); } return AE_OK; } /******************************************************************************* * * FUNCTION: AeInstallDeviceHandlers * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Install handlers for all EC, PCI and GED devices in the namespace * ******************************************************************************/ ACPI_STATUS AeInstallDeviceHandlers ( void) { /* Find all Embedded Controller devices */ AcpiGetDevices ("PNP0C09", AeInstallEcHandler, NULL, NULL); /* Install a PCI handler */ AcpiGetDevices ("PNP0A08", AeInstallPciHandler, NULL, NULL); /* Install a GED handler */ AcpiGetDevices ("ACPI0013", AeInstallGedHandler, NULL, NULL); return (AE_OK); } /******************************************************************************* * * FUNCTION: AeInstallEcHandler * * PARAMETERS: ACPI_WALK_NAMESPACE callback * * RETURN: Status * * DESCRIPTION: Walk entire namespace, install a handler for every EC * device found. * ******************************************************************************/ static ACPI_STATUS AeInstallEcHandler ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_STATUS Status; /* Install the handler for this EC device */ Status = AcpiInstallAddressSpaceHandler (ObjHandle, ACPI_ADR_SPACE_EC, AeRegionHandler, AeRegionInit, &AeMyContext); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not install an OpRegion handler for EC device (%p)", ObjHandle)); } return (Status); } /******************************************************************************* * * FUNCTION: AeInstallPciHandler * * PARAMETERS: ACPI_WALK_NAMESPACE callback * * RETURN: Status * * DESCRIPTION: Walk entire namespace, install a handler for every PCI * device found. * ******************************************************************************/ static ACPI_STATUS AeInstallPciHandler ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_STATUS Status; /* Install memory and I/O handlers for the PCI device */ Status = AcpiInstallAddressSpaceHandler (ObjHandle, ACPI_ADR_SPACE_SYSTEM_IO, AeRegionHandler, AeRegionInit, &AeMyContext); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not install an OpRegion handler for PCI device (%p)", ObjHandle)); } Status = AcpiInstallAddressSpaceHandler (ObjHandle, ACPI_ADR_SPACE_SYSTEM_MEMORY, AeRegionHandler, AeRegionInit, &AeMyContext); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not install an OpRegion handler for PCI device (%p)", ObjHandle)); } return (AE_CTRL_TERMINATE); } acpica-unix-20250404/source/tools/acpiexec/aeexec.c0000775000175000017500000002756014773714134021374 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aeexec - Argument testing for control method execution. * Also some other miscellaneous tests. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aecommon.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("aeexec") /****************************************************************************** * * FUNCTION: AeSetupConfiguration * * PARAMETERS: RegionAddr - Address for an ACPI table to be loaded * dynamically. Test purposes only. * * RETURN: Status * * DESCRIPTION: Call AML _CFG configuration control method * *****************************************************************************/ ACPI_STATUS AeSetupConfiguration ( void *RegionAddr) { ACPI_OBJECT_LIST ArgList; ACPI_OBJECT Arg[3]; /* * Invoke _CFG method if present */ ArgList.Count = 1; ArgList.Pointer = Arg; Arg[0].Type = ACPI_TYPE_INTEGER; Arg[0].Integer.Value = ACPI_TO_INTEGER (RegionAddr); (void) AcpiEvaluateObject (NULL, "\\_CFG", &ArgList, NULL); return (AE_OK); } #if (!ACPI_REDUCED_HARDWARE) /****************************************************************************** * * FUNCTION: AfInstallGpeBlock * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Test GPE block device initialization. Requires test ASL with * A \GPE2 device. * *****************************************************************************/ void AfInstallGpeBlock ( void) { ACPI_STATUS Status; ACPI_HANDLE Handle; ACPI_GENERIC_ADDRESS BlockAddress; ACPI_HANDLE GpeDevice; ACPI_OBJECT_TYPE Type; /* _GPE should always exist */ Status = AcpiGetHandle (NULL, "\\_GPE", &Handle); ACPI_CHECK_OK (AcpiGetHandle, Status); if (ACPI_FAILURE (Status)) { return; } memset (&BlockAddress, 0, sizeof (ACPI_GENERIC_ADDRESS)); BlockAddress.SpaceId = ACPI_ADR_SPACE_SYSTEM_MEMORY; BlockAddress.Address = 0x76540000; /* Attempt to install a GPE block on GPE2 (if present) */ Status = AcpiGetHandle (NULL, "\\GPE2", &Handle); if (ACPI_SUCCESS (Status)) { Status = AcpiGetType (Handle, &Type); if (ACPI_FAILURE (Status) || (Type != ACPI_TYPE_DEVICE)) { return; } Status = AcpiInstallGpeBlock (Handle, &BlockAddress, 7, 8); ACPI_CHECK_OK (AcpiInstallGpeBlock, Status); Status = AcpiInstallGpeHandler (Handle, 8, ACPI_GPE_LEVEL_TRIGGERED, AeGpeHandler, NULL); ACPI_CHECK_OK (AcpiInstallGpeHandler, Status); Status = AcpiEnableGpe (Handle, 8); ACPI_CHECK_OK (AcpiEnableGpe, Status); Status = AcpiGetGpeDevice (0x30, &GpeDevice); ACPI_CHECK_OK (AcpiGetGpeDevice, Status); Status = AcpiGetGpeDevice (0x42, &GpeDevice); ACPI_CHECK_OK (AcpiGetGpeDevice, Status); Status = AcpiGetGpeDevice (AcpiCurrentGpeCount-1, &GpeDevice); ACPI_CHECK_OK (AcpiGetGpeDevice, Status); Status = AcpiGetGpeDevice (AcpiCurrentGpeCount, &GpeDevice); ACPI_CHECK_STATUS (AcpiGetGpeDevice, Status, AE_NOT_EXIST); Status = AcpiRemoveGpeHandler (Handle, 8, AeGpeHandler); ACPI_CHECK_OK (AcpiRemoveGpeHandler, Status); } /* Attempt to install a GPE block on GPE3 (if present) */ Status = AcpiGetHandle (NULL, "\\GPE3", &Handle); if (ACPI_SUCCESS (Status)) { Status = AcpiGetType (Handle, &Type); if (ACPI_FAILURE (Status) || (Type != ACPI_TYPE_DEVICE)) { return; } Status = AcpiInstallGpeBlock (Handle, &BlockAddress, 8, 11); ACPI_CHECK_OK (AcpiInstallGpeBlock, Status); } } #endif /* !ACPI_REDUCED_HARDWARE */ /****************************************************************************** * * FUNCTION: AeTestBufferArgument * * DESCRIPTION: Test using a Buffer object as a method argument * *****************************************************************************/ void AeTestBufferArgument ( void) { ACPI_OBJECT_LIST Params; ACPI_OBJECT BufArg; UINT8 Buffer[] = { 0,0,0,0, 4,0,0,0, 1,2,3,4 }; BufArg.Type = ACPI_TYPE_BUFFER; BufArg.Buffer.Length = 12; BufArg.Buffer.Pointer = Buffer; Params.Count = 1; Params.Pointer = &BufArg; (void) AcpiEvaluateObject (NULL, "\\BUF", &Params, NULL); } static ACPI_OBJECT PkgArg; static ACPI_OBJECT PkgElements[5]; static ACPI_OBJECT Pkg2Elements[5]; static ACPI_OBJECT_LIST Params; /****************************************************************************** * * FUNCTION: AeTestPackageArgument * * DESCRIPTION: Test using a Package object as a method argument * *****************************************************************************/ void AeTestPackageArgument ( void) { /* Main package */ PkgArg.Type = ACPI_TYPE_PACKAGE; PkgArg.Package.Count = 4; PkgArg.Package.Elements = PkgElements; /* Main package elements */ PkgElements[0].Type = ACPI_TYPE_INTEGER; PkgElements[0].Integer.Value = 0x22228888; PkgElements[1].Type = ACPI_TYPE_STRING; PkgElements[1].String.Length = sizeof ("Top-level package"); PkgElements[1].String.Pointer = "Top-level package"; PkgElements[2].Type = ACPI_TYPE_BUFFER; PkgElements[2].Buffer.Length = sizeof ("XXXX"); PkgElements[2].Buffer.Pointer = (UINT8 *) "XXXX"; PkgElements[3].Type = ACPI_TYPE_PACKAGE; PkgElements[3].Package.Count = 2; PkgElements[3].Package.Elements = Pkg2Elements; /* Subpackage elements */ Pkg2Elements[0].Type = ACPI_TYPE_INTEGER; Pkg2Elements[0].Integer.Value = 0xAAAABBBB; Pkg2Elements[1].Type = ACPI_TYPE_STRING; Pkg2Elements[1].String.Length = sizeof ("Nested Package"); Pkg2Elements[1].String.Pointer = "Nested Package"; /* Parameter object */ Params.Count = 1; Params.Pointer = &PkgArg; (void) AcpiEvaluateObject (NULL, "\\_PKG", &Params, NULL); } /****************************************************************************** * * FUNCTION: AeGetDevices * * DESCRIPTION: Stubbed at this time. * *****************************************************************************/ ACPI_STATUS AeGetDevices ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { return (AE_OK); } /****************************************************************************** * * FUNCTION: ExecuteOSI * * PARAMETERS: OsiString - String passed to _OSI method * ExpectedResult - 0 (FALSE) or ACPI_UINT64_MAX (TRUE) * * RETURN: Status * * DESCRIPTION: Execute the internally implemented (in ACPICA) _OSI method. * *****************************************************************************/ ACPI_STATUS ExecuteOSI ( char *OsiString, UINT64 ExpectedResult) { ACPI_STATUS Status; ACPI_OBJECT_LIST ArgList; ACPI_OBJECT Arg[1]; ACPI_BUFFER ReturnValue; ACPI_OBJECT *Obj; /* Setup input argument */ ArgList.Count = 1; ArgList.Pointer = Arg; Arg[0].Type = ACPI_TYPE_STRING; Arg[0].String.Pointer = OsiString; Arg[0].String.Length = strlen (Arg[0].String.Pointer); /* Ask ACPICA to allocate space for the return object */ ReturnValue.Length = ACPI_ALLOCATE_BUFFER; Status = AcpiEvaluateObject (NULL, "\\_OSI", &ArgList, &ReturnValue); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ( "Could not execute _OSI method, %s\n", AcpiFormatException (Status)); return (Status); } Status = AE_ERROR; if (ReturnValue.Length < sizeof (ACPI_OBJECT)) { AcpiOsPrintf ( "Return value from _OSI method too small, %.8X\n", (UINT32) ReturnValue.Length); goto ErrorExit; } Obj = ReturnValue.Pointer; if (Obj->Type != ACPI_TYPE_INTEGER) { AcpiOsPrintf ( "Invalid return type from _OSI method, %.2X\n", Obj->Type); goto ErrorExit; } if (Obj->Integer.Value != ExpectedResult) { AcpiOsPrintf ( "Invalid return value from _OSI, expected %8.8X%8.8X found %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (ExpectedResult), ACPI_FORMAT_UINT64 (Obj->Integer.Value)); goto ErrorExit; } Status = AE_OK; /* Reset the OSI data */ AcpiGbl_OsiData = 0; ErrorExit: /* Free a buffer created via ACPI_ALLOCATE_BUFFER */ AcpiOsFree (ReturnValue.Pointer); return (Status); } /****************************************************************************** * * FUNCTION: AeGenericRegisters * * DESCRIPTION: Call the AcpiRead/Write interfaces. * *****************************************************************************/ static ACPI_GENERIC_ADDRESS GenericRegister; void AeGenericRegisters ( void) { ACPI_STATUS Status; UINT64 Value; GenericRegister.Address = 0x1234; GenericRegister.BitWidth = 64; GenericRegister.BitOffset = 0; GenericRegister.SpaceId = ACPI_ADR_SPACE_SYSTEM_IO; Status = AcpiRead (&Value, &GenericRegister); ACPI_CHECK_OK (AcpiRead, Status); Status = AcpiWrite (Value, &GenericRegister); ACPI_CHECK_OK (AcpiWrite, Status); GenericRegister.Address = 0x12345678; GenericRegister.BitOffset = 0; GenericRegister.SpaceId = ACPI_ADR_SPACE_SYSTEM_MEMORY; Status = AcpiRead (&Value, &GenericRegister); ACPI_CHECK_OK (AcpiRead, Status); Status = AcpiWrite (Value, &GenericRegister); ACPI_CHECK_OK (AcpiWrite, Status); } acpica-unix-20250404/source/tools/acpiexec/aehandlers.c0000775000175000017500000005454214773714134022250 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aehandlers - Various handlers for acpiexec * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aecommon.h" #define _COMPONENT ACPI_TOOLS ACPI_MODULE_NAME ("aehandlers") /* Local prototypes */ static void AeNotifyHandler1 ( ACPI_HANDLE Device, UINT32 Value, void *Context); static void AeNotifyHandler2 ( ACPI_HANDLE Device, UINT32 Value, void *Context); static void AeCommonNotifyHandler ( ACPI_HANDLE Device, UINT32 Value, UINT32 HandlerId); static void AeDeviceNotifyHandler ( ACPI_HANDLE Device, UINT32 Value, void *Context); static ACPI_STATUS AeTableHandler ( UINT32 Event, void *Table, void *Context); static void AeAttachedDataHandler ( ACPI_HANDLE Object, void *Data); static void AeAttachedDataHandler2 ( ACPI_HANDLE Object, void *Data); static UINT32 AeInterfaceHandler ( ACPI_STRING InterfaceName, UINT32 Supported); #if (!ACPI_REDUCED_HARDWARE) static UINT32 AeEventHandler ( void *Context); static UINT32 AeSciHandler ( void *Context); static char *TableEvents[] = { "LOAD", "UNLOAD", "INSTALL", "UNINSTALL", "UNKNOWN" }; #endif /* !ACPI_REDUCED_HARDWARE */ static AE_DEBUG_REGIONS AeRegions; /****************************************************************************** * * FUNCTION: AeNotifyHandler(s) * * PARAMETERS: Standard notify handler parameters * * RETURN: Status * * DESCRIPTION: Notify handlers for AcpiExec utility. Used by the ASL * test suite(s) to communicate errors and other information to * this utility via the Notify() operator. Tests notify handling * and multiple notify handler support. * *****************************************************************************/ static void AeNotifyHandler1 ( ACPI_HANDLE Device, UINT32 Value, void *Context) { AeCommonNotifyHandler (Device, Value, 1); } static void AeNotifyHandler2 ( ACPI_HANDLE Device, UINT32 Value, void *Context) { AeCommonNotifyHandler (Device, Value, 2); } static void AeCommonNotifyHandler ( ACPI_HANDLE Device, UINT32 Value, UINT32 HandlerId) { char *Type; Type = "Device"; if (Value <= ACPI_MAX_SYS_NOTIFY) { Type = "System"; } switch (Value) { #if 0 case 0: printf (AE_PREFIX "Method Error 0x%X: Results not equal\n", Value); if (AcpiGbl_DebugFile) { AcpiOsPrintf (AE_PREFIX "Method Error: Results not equal\n"); } break; case 1: printf (AE_PREFIX "Method Error: Incorrect numeric result\n"); if (AcpiGbl_DebugFile) { AcpiOsPrintf (AE_PREFIX "Method Error: Incorrect numeric result\n"); } break; case 2: printf (AE_PREFIX "Method Error: An operand was overwritten\n"); if (AcpiGbl_DebugFile) { AcpiOsPrintf (AE_PREFIX "Method Error: An operand was overwritten\n"); } break; #endif default: printf (AE_PREFIX "Handler %u: Received a %s Notify on [%4.4s] %p Value 0x%2.2X (%s)\n", HandlerId, Type, AcpiUtGetNodeName (Device), Device, Value, AcpiUtGetNotifyName (Value, ACPI_TYPE_ANY)); if (AcpiGbl_DebugFile) { AcpiOsPrintf (AE_PREFIX "Handler %u: Received a %s notify, Value 0x%2.2X\n", HandlerId, Type, Value); } (void) AcpiEvaluateObject (Device, "_NOT", NULL, NULL); break; } } /****************************************************************************** * * FUNCTION: AeSystemNotifyHandler * * PARAMETERS: Standard notify handler parameters * * RETURN: Status * * DESCRIPTION: System notify handler for AcpiExec utility. Used by the ASL * test suite(s) to communicate errors and other information to * this utility via the Notify() operator. * *****************************************************************************/ static void AeSystemNotifyHandler ( ACPI_HANDLE Device, UINT32 Value, void *Context) { printf (AE_PREFIX "Global: Received a System Notify on [%4.4s] %p Value 0x%2.2X (%s)\n", AcpiUtGetNodeName (Device), Device, Value, AcpiUtGetNotifyName (Value, ACPI_TYPE_ANY)); if (AcpiGbl_DebugFile) { AcpiOsPrintf (AE_PREFIX "Global: Received a System Notify, Value 0x%2.2X\n", Value); } (void) AcpiEvaluateObject (Device, "_NOT", NULL, NULL); } /****************************************************************************** * * FUNCTION: AeDeviceNotifyHandler * * PARAMETERS: Standard notify handler parameters * * RETURN: Status * * DESCRIPTION: Device notify handler for AcpiExec utility. Used by the ASL * test suite(s) to communicate errors and other information to * this utility via the Notify() operator. * *****************************************************************************/ static void AeDeviceNotifyHandler ( ACPI_HANDLE Device, UINT32 Value, void *Context) { printf (AE_PREFIX "Global: Received a Device Notify on [%4.4s] %p Value 0x%2.2X (%s)\n", AcpiUtGetNodeName (Device), Device, Value, AcpiUtGetNotifyName (Value, ACPI_TYPE_ANY)); if (AcpiGbl_DebugFile) { AcpiOsPrintf (AE_PREFIX "Global: Received a Device Notify, Value 0x%2.2X\n", Value); } (void) AcpiEvaluateObject (Device, "_NOT", NULL, NULL); } /****************************************************************************** * * FUNCTION: AeTableHandler * * PARAMETERS: Table handler * * RETURN: Status * * DESCRIPTION: System table handler for AcpiExec utility. * *****************************************************************************/ static ACPI_STATUS AeTableHandler ( UINT32 Event, void *Table, void *Context) { #if (!ACPI_REDUCED_HARDWARE) ACPI_STATUS Status; #endif /* !ACPI_REDUCED_HARDWARE */ if (Event > ACPI_NUM_TABLE_EVENTS) { Event = ACPI_NUM_TABLE_EVENTS; } #if (!ACPI_REDUCED_HARDWARE) /* Enable any GPEs associated with newly-loaded GPE methods */ Status = AcpiUpdateAllGpes (); ACPI_CHECK_OK (AcpiUpdateAllGpes, Status); printf (AE_PREFIX "Table Event %s, [%4.4s] %p\n", TableEvents[Event], ((ACPI_TABLE_HEADER *) Table)->Signature, Table); #endif /* !ACPI_REDUCED_HARDWARE */ return (AE_OK); } /****************************************************************************** * * FUNCTION: AeGpeHandler * * DESCRIPTION: Common GPE handler for acpiexec * *****************************************************************************/ UINT32 AeGpeHandler ( ACPI_HANDLE GpeDevice, UINT32 GpeNumber, void *Context) { ACPI_NAMESPACE_NODE *DeviceNode = (ACPI_NAMESPACE_NODE *) GpeDevice; AcpiOsPrintf (AE_PREFIX "GPE Handler received GPE %02X (GPE block %4.4s)\n", GpeNumber, GpeDevice ? DeviceNode->Name.Ascii : "FADT"); return (ACPI_REENABLE_GPE); } /****************************************************************************** * * FUNCTION: AeGlobalEventHandler * * DESCRIPTION: Global GPE/Fixed event handler * *****************************************************************************/ void AeGlobalEventHandler ( UINT32 Type, ACPI_HANDLE Device, UINT32 EventNumber, void *Context) { char *TypeName; switch (Type) { case ACPI_EVENT_TYPE_GPE: TypeName = "GPE"; break; case ACPI_EVENT_TYPE_FIXED: TypeName = "FixedEvent"; break; default: TypeName = "UNKNOWN"; break; } AcpiOsPrintf (AE_PREFIX "Global Event Handler received: Type %s Number %.2X Dev %p\n", TypeName, EventNumber, Device); } /****************************************************************************** * * FUNCTION: AeAttachedDataHandler * * DESCRIPTION: Handler for deletion of nodes with attached data (attached via * AcpiAttachData) * *****************************************************************************/ static void AeAttachedDataHandler ( ACPI_HANDLE Object, void *Data) { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Data); ACPI_FUNCTION_NAME (AeAttachedDataHandler1); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Received an attached data deletion at handler 1 on %4.4s\n", Node->Name.Ascii)); } /****************************************************************************** * * FUNCTION: AeAttachedDataHandler2 * * DESCRIPTION: Handler for deletion of nodes with attached data (attached via * AcpiAttachData) * *****************************************************************************/ static void AeAttachedDataHandler2 ( ACPI_HANDLE Object, void *Data) { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Data); ACPI_FUNCTION_NAME (AeAttachedDataHandler2); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Received an attached data deletion at handler 2 on %4.4s\n", Node->Name.Ascii)); } /****************************************************************************** * * FUNCTION: AeInterfaceHandler * * DESCRIPTION: Handler for _OSI invocations * *****************************************************************************/ static UINT32 AeInterfaceHandler ( ACPI_STRING InterfaceName, UINT32 Supported) { ACPI_FUNCTION_NAME (AeInterfaceHandler); ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Received _OSI (\"%s\"), is %ssupported\n", InterfaceName, Supported == 0 ? "not " : "")); return (Supported); } #if (!ACPI_REDUCED_HARDWARE) /****************************************************************************** * * FUNCTION: AeEventHandler, AeSciHandler * * DESCRIPTION: Handler for Fixed Events and SCIs * *****************************************************************************/ static UINT32 AeEventHandler ( void *Context) { return (0); } static UINT32 AeSciHandler ( void *Context) { AcpiOsPrintf (AE_PREFIX "Received an SCI at handler\n"); return (0); } #endif /* !ACPI_REDUCED_HARDWARE */ /******************************************************************************* * * FUNCTION: AeInstallSciHandler * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Install handler for SCIs. Exercise the code by doing an * install/remove/install. * ******************************************************************************/ static ACPI_STATUS AeInstallSciHandler ( void) { ACPI_STATUS Status; Status = AcpiInstallSciHandler (AeSciHandler, &AeMyContext); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not install an SCI handler (1)")); } Status = AcpiRemoveSciHandler (AeSciHandler); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not remove an SCI handler")); } Status = AcpiInstallSciHandler (AeSciHandler, &AeMyContext); if (ACPI_FAILURE (Status)) { ACPI_EXCEPTION ((AE_INFO, Status, "Could not install an SCI handler (2)")); } return (Status); } /****************************************************************************** * * FUNCTION: AeInstallLateHandlers * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Install handlers for the AcpiExec utility. * *****************************************************************************/ ACPI_STATUS AeInstallLateHandlers ( void) { ACPI_STATUS Status; ACPI_HANDLE Handle; Status = AcpiGetHandle (NULL, "\\_TZ.TZ1", &Handle); if (ACPI_SUCCESS (Status)) { Status = AcpiInstallNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler1, ACPI_CAST_PTR (void, 0x01234567)); ACPI_CHECK_OK (AcpiInstallNotifyHandler, Status); Status = AcpiInstallNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler2, ACPI_CAST_PTR (void, 0x89ABCDEF)); ACPI_CHECK_OK (AcpiInstallNotifyHandler, Status); Status = AcpiRemoveNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler1); ACPI_CHECK_OK (AcpiInstallNotifyHandler, Status); Status = AcpiRemoveNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler2); ACPI_CHECK_OK (AcpiInstallNotifyHandler, Status); Status = AcpiInstallNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler2, ACPI_CAST_PTR (void, 0x89ABCDEF)); ACPI_CHECK_OK (AcpiInstallNotifyHandler, Status); Status = AcpiInstallNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler1, ACPI_CAST_PTR (void, 0x01234567)); ACPI_CHECK_OK (AcpiInstallNotifyHandler, Status); } Status = AcpiGetHandle (NULL, "\\_PR.CPU0", &Handle); if (ACPI_SUCCESS (Status)) { Status = AcpiInstallNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler1, ACPI_CAST_PTR (void, 0x01234567)); ACPI_CHECK_OK (AcpiInstallNotifyHandler, Status); Status = AcpiInstallNotifyHandler (Handle, ACPI_SYSTEM_NOTIFY, AeNotifyHandler2, ACPI_CAST_PTR (void, 0x89ABCDEF)); ACPI_CHECK_OK (AcpiInstallNotifyHandler, Status); } #if (!ACPI_REDUCED_HARDWARE) if (!AcpiGbl_ReducedHardware) { /* Install a user SCI handler */ Status = AeInstallSciHandler (); ACPI_CHECK_OK (AeInstallSciHandler, Status); /* Install some fixed event handlers */ Status = AcpiInstallFixedEventHandler ( ACPI_EVENT_GLOBAL, AeEventHandler, NULL); ACPI_CHECK_OK (AcpiInstallFixedEventHandler, Status); Status = AcpiInstallFixedEventHandler ( ACPI_EVENT_RTC, AeEventHandler, NULL); ACPI_CHECK_OK (AcpiInstallFixedEventHandler, Status); } #endif /* !ACPI_REDUCED_HARDWARE */ AeMyContext.Connection = NULL; AeMyContext.AccessLength = 0xA5; /* * We will install a handler for each EC device, directly under the EC * device definition. This is unlike the other handlers which we install * at the root node. Also install memory and I/O handlers at any PCI * devices. */ AeInstallDeviceHandlers (); /* * Install handlers for some of the "device driver" address spaces * such as SMBus, etc. */ AeInstallRegionHandlers (); return (AE_OK); } /****************************************************************************** * * FUNCTION: AeInstallEarlyHandlers * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Install handlers for the AcpiExec utility. * * Notes: Don't install handler for PCI_Config, we want to use the * default handler to exercise that code. * *****************************************************************************/ ACPI_STATUS AeInstallEarlyHandlers ( void) { ACPI_STATUS Status; ACPI_HANDLE Handle; ACPI_FUNCTION_ENTRY (); Status = AcpiInstallInterfaceHandler (AeInterfaceHandler); if (ACPI_FAILURE (Status)) { printf ("Could not install interface handler, %s\n", AcpiFormatException (Status)); } Status = AcpiInstallTableHandler (AeTableHandler, NULL); if (ACPI_FAILURE (Status)) { printf ("Could not install table handler, %s\n", AcpiFormatException (Status)); } Status = AcpiInstallExceptionHandler (AeExceptionHandler); if (ACPI_FAILURE (Status)) { printf ("Could not install exception handler, %s\n", AcpiFormatException (Status)); } /* Install global notify handlers */ Status = AcpiInstallNotifyHandler (ACPI_ROOT_OBJECT, ACPI_SYSTEM_NOTIFY, AeSystemNotifyHandler, NULL); if (ACPI_FAILURE (Status)) { printf ("Could not install a global system notify handler, %s\n", AcpiFormatException (Status)); } Status = AcpiInstallNotifyHandler (ACPI_ROOT_OBJECT, ACPI_DEVICE_NOTIFY, AeDeviceNotifyHandler, NULL); if (ACPI_FAILURE (Status)) { printf ("Could not install a global notify handler, %s\n", AcpiFormatException (Status)); } Status = AcpiGetHandle (NULL, "\\_SB", &Handle); if (ACPI_SUCCESS (Status)) { Status = AcpiInstallNotifyHandler (Handle, ACPI_SYSTEM_NOTIFY, AeNotifyHandler1, NULL); if (ACPI_FAILURE (Status)) { printf ("Could not install a notify handler, %s\n", AcpiFormatException (Status)); } Status = AcpiRemoveNotifyHandler (Handle, ACPI_SYSTEM_NOTIFY, AeNotifyHandler1); if (ACPI_FAILURE (Status)) { printf ("Could not remove a notify handler, %s\n", AcpiFormatException (Status)); } Status = AcpiInstallNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler1, NULL); ACPI_CHECK_OK (AcpiInstallNotifyHandler, Status); Status = AcpiRemoveNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler1); ACPI_CHECK_OK (AcpiRemoveNotifyHandler, Status); #if 0 Status = AcpiInstallNotifyHandler (Handle, ACPI_ALL_NOTIFY, AeNotifyHandler1, NULL); if (ACPI_FAILURE (Status)) { printf ("Could not install a notify handler, %s\n", AcpiFormatException (Status)); } #endif /* Install two handlers for _SB_ */ Status = AcpiInstallNotifyHandler (Handle, ACPI_SYSTEM_NOTIFY, AeNotifyHandler1, ACPI_CAST_PTR (void, 0x01234567)); ACPI_CHECK_OK(AcpiInstallNotifyHandler, Status); Status = AcpiInstallNotifyHandler (Handle, ACPI_SYSTEM_NOTIFY, AeNotifyHandler2, ACPI_CAST_PTR (void, 0x89ABCDEF)); ACPI_CHECK_OK(AcpiInstallNotifyHandler, Status); /* Attempt duplicate handler installation, should fail */ (void) AcpiInstallNotifyHandler (Handle, ACPI_SYSTEM_NOTIFY, AeNotifyHandler1, ACPI_CAST_PTR (void, 0x77777777)); Status = AcpiAttachData (Handle, AeAttachedDataHandler, Handle); ACPI_CHECK_OK (AcpiAttachData, Status); Status = AcpiDetachData (Handle, AeAttachedDataHandler); ACPI_CHECK_OK (AcpiDetachData, Status); /* Test attach data at the root object */ Status = AcpiAttachData (ACPI_ROOT_OBJECT, AeAttachedDataHandler, AcpiGbl_RootNode); ACPI_CHECK_OK (AcpiAttachData, Status); Status = AcpiAttachData (ACPI_ROOT_OBJECT, AeAttachedDataHandler2, AcpiGbl_RootNode); ACPI_CHECK_OK (AcpiAttachData, Status); /* Test support for multiple attaches */ Status = AcpiAttachData (Handle, AeAttachedDataHandler, Handle); ACPI_CHECK_OK (AcpiAttachData, Status); Status = AcpiAttachData (Handle, AeAttachedDataHandler2, Handle); ACPI_CHECK_OK (AcpiAttachData, Status); } else { printf ("No _SB_ found, %s\n", AcpiFormatException (Status)); } /* * Install handlers that will override the default handlers for some of * the space IDs. */ AeOverrideRegionHandlers (); /* * Initialize the global Region Handler space * MCW 3/23/00 */ AeRegions.NumberOfRegions = 0; AeRegions.RegionList = NULL; return (AE_OK); } acpica-unix-20250404/source/compiler/0000775000175000017500000000000014773714132016650 5ustar ivanhuivanhuacpica-unix-20250404/source/compiler/dtcompile.c0000775000175000017500000005274214773714131021010 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dtcompile.c - Front-end for data table compiler * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define _DECLARE_DT_GLOBALS #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtcompile") static char VersionString[9]; /* Local prototypes */ void DtInitialize ( void); static ACPI_STATUS DtCompileDataTable ( DT_FIELD **Field); static void DtInsertCompilerIds ( DT_FIELD *FieldList); /****************************************************************************** * * FUNCTION: DtDoCompile * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Main entry point for the data table compiler. * * Note: Assumes AslGbl_Files[ASL_FILE_INPUT] is initialized and the file is * open at seek offset zero. * *****************************************************************************/ ACPI_STATUS DtDoCompile ( void) { ACPI_STATUS Status; UINT8 Event; DT_FIELD *FieldList; ASL_GLOBAL_FILE_NODE *FileNode; /* Initialize globals */ DtInitialize (); /* Preprocessor */ if (AslGbl_PreprocessFlag) { /* Preprocessor */ Event = UtBeginEvent ("Preprocess input file"); PrDoPreprocess (); UtEndEvent (Event); if (AslGbl_PreprocessOnly) { return (AE_OK); } } /* Compile the parse tree */ if (AslGbl_DtLexBisonPrototype) { Event = UtBeginEvent ("Parse data table in prototype mode"); DtCompilerInitLexer (AslGbl_Files[ASL_FILE_INPUT].Handle); DtCompilerParserparse (); FieldList = AslGbl_FieldList; DtCompilerTerminateLexer (); UtEndEvent (Event); } else { /* * Scan the input file (file is already open) and * build the parse tree */ Event = UtBeginEvent ("Scan and parse input file"); FieldList = DtScanFile (AslGbl_Files[ASL_FILE_INPUT].Handle); UtEndEvent (Event); } /* Did the parse tree get successfully constructed? */ if (!FieldList) { /* TBD: temporary error message. Msgs should come from function above */ DtError (ASL_ERROR, ASL_MSG_SYNTAX, NULL, "Input file does not appear to be an ASL or data table source file"); return (AE_ERROR); } Event = UtBeginEvent ("Compile parse tree"); Status = DtCompileDataTable (&FieldList); UtEndEvent (Event); FileNode = FlGetCurrentFileNode (); FileNode->TotalLineCount = AslGbl_CurrentLineNumber; FileNode->OriginalInputFileSize = AslGbl_InputByteCount; DbgPrint (ASL_PARSE_OUTPUT, "Line count: %u input file size: %u\n", FileNode->TotalLineCount, FileNode->OriginalInputFileSize); if (ACPI_FAILURE (Status)) { FileNode->ParserErrorDetected = TRUE; /* TBD: temporary error message. Msgs should come from function above */ DtError (ASL_ERROR, ASL_MSG_SYNTAX, NULL, "Could not compile input file"); return (Status); } /* Create/open the binary output file */ AslGbl_Files[ASL_FILE_AML_OUTPUT].Filename = NULL; Status = FlOpenAmlOutputFile (AslGbl_OutputFilenamePrefix); if (ACPI_FAILURE (Status)) { return (Status); } /* Write the binary, then the optional hex file */ DtOutputBinary (AslGbl_RootTable); HxDoHexOutput (); DtWriteTableToListing (); /* Save the compile time statistics to the current file node */ FileNode->TotalFields = AslGbl_InputFieldCount; FileNode->OutputByteLength = AslGbl_TableLength; return (Status); } /****************************************************************************** * * FUNCTION: DtInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize data table compiler globals. Enables multiple * compiles per invocation. * *****************************************************************************/ void DtInitialize ( void) { AcpiUtSetIntegerWidth (2); /* Set width to 64 bits */ AslGbl_FieldList = NULL; AslGbl_RootTable = NULL; AslGbl_SubtableStack = NULL; sprintf (VersionString, "%X", (UINT32) ACPI_CA_VERSION); return; } /****************************************************************************** * * FUNCTION: DtInsertCompilerIds * * PARAMETERS: FieldList - Current field list pointer * * RETURN: None * * DESCRIPTION: Insert the IDs (Name, Version) of the current compiler into * the original ACPI table header. * *****************************************************************************/ static void DtInsertCompilerIds ( DT_FIELD *FieldList) { DT_FIELD *Next; UINT32 i; /* * Don't insert current compiler ID if requested. Used for compiler * debug/validation only. */ if (AslGbl_UseOriginalCompilerId) { return; } /* Walk to the Compiler fields at the end of the header */ Next = FieldList; for (i = 0; i < 7; i++) { Next = Next->Next; } Next->Value = ASL_CREATOR_ID; Next->Flags = DT_FIELD_NOT_ALLOCATED; Next = Next->Next; Next->Value = VersionString; Next->Flags = DT_FIELD_NOT_ALLOCATED; } /****************************************************************************** * * FUNCTION: DtCompileDataTable * * PARAMETERS: FieldList - Current field list pointer * * RETURN: Status * * DESCRIPTION: Entry point to compile one data table * *****************************************************************************/ static ACPI_STATUS DtCompileDataTable ( DT_FIELD **FieldList) { const ACPI_DMTABLE_DATA *TableData; DT_SUBTABLE *Subtable; char *Signature; ACPI_TABLE_HEADER *AcpiTableHeader; ACPI_STATUS Status; DT_FIELD *RootField = *FieldList; /* Verify that we at least have a table signature and save it */ Signature = DtGetFieldValue (*FieldList); if (!Signature) { sprintf (AslGbl_MsgBuffer, "Expected \"%s\"", "Signature"); DtNameError (ASL_ERROR, ASL_MSG_INVALID_FIELD_NAME, *FieldList, AslGbl_MsgBuffer); return (AE_ERROR); } AslGbl_Signature = UtLocalCacheCalloc (strlen (Signature) + 1); strcpy (AslGbl_Signature, Signature); /* * Handle tables that don't use the common ACPI table header structure. * Currently, these are the FACS and RSDP. Also check for an OEMx table, * these tables have user-defined contents. */ if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_FACS)) { Status = DtCompileFacs (FieldList); if (ACPI_FAILURE (Status)) { return (Status); } DtSetTableLength (); return (Status); } else if (ACPI_VALIDATE_RSDP_SIG (Signature)) { Status = DtCompileRsdp (FieldList); return (Status); } else if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_S3PT)) { Status = DtCompileS3pt (FieldList); if (ACPI_FAILURE (Status)) { return (Status); } DtSetTableLength (); return (Status); } /* * If the first field is named "CDAT Table Length" (not "Signature"), * assume that we have a CDAT table (whose table header does not have * a signature). Instead, the TableLength field is where the * signature would (normally) be. */ else if (!strcmp ((*FieldList)->Name, "CDAT Table Length")) { /* No longer true: (However, use this technique in the disassembler) * We are assuming that there * should be at least one non-ASCII byte in the 4-character * Signature field, (At least the high-order byte should be zero). */ Status = DtCompileTable (FieldList, AcpiDmTableInfoCdatTableHdr, &AslGbl_RootTable); if (ACPI_FAILURE (Status)) { return (Status); } /* Compile the CDAT */ DtPushSubtable (AslGbl_RootTable); Status = DtCompileCdat ((void **) FieldList); if (ACPI_FAILURE (Status)) { return (Status); } /* * Set the overall table length and the table checksum. * The entire compiled table (including the CDAT table header with * the table length and checksum) is in AslGbl_RootTable->Buffer. */ DtSetTableLength (); DtSetTableChecksum (&ACPI_CAST_PTR (ACPI_TABLE_CDAT, AslGbl_RootTable->Buffer)->Checksum); DtDumpFieldList (RootField); DtDumpSubtableList (); return (AE_OK); } /* * All other tables must use the common ACPI table header. Insert the * current iASL IDs (name, version), and compile the header now. */ DtInsertCompilerIds (*FieldList); Status = DtCompileTable (FieldList, AcpiDmTableInfoHeader, &AslGbl_RootTable); if (ACPI_FAILURE (Status)) { return (Status); } DtPushSubtable (AslGbl_RootTable); /* Validate the signature via the ACPI table list */ TableData = AcpiDmGetTableData (Signature); if (!TableData || AslGbl_CompileGeneric) { /* Unknown table signature and/or force generic compile */ DtCompileGeneric ((void **) FieldList, NULL, NULL); goto FinishHeader; } /* Dispatch to per-table compile */ if (TableData->CmTableHandler) { /* Complex table, has a handler */ Status = TableData->CmTableHandler ((void **) FieldList); if (ACPI_FAILURE (Status)) { return (Status); } } else if (TableData->TableInfo) { /* Simple table, just walk the info table, unless its empty */ if (FieldList && *FieldList) { Subtable = NULL; Status = DtCompileTable (FieldList, TableData->TableInfo, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (AslGbl_RootTable, Subtable); DtPopSubtable (); } } else { DtFatal (ASL_MSG_COMPILER_INTERNAL, *FieldList, "Missing table dispatch info"); return (AE_ERROR); } FinishHeader: /* Set the final table length and then the checksum */ DtSetTableLength (); AcpiTableHeader = ACPI_CAST_PTR ( ACPI_TABLE_HEADER, AslGbl_RootTable->Buffer); DtSetTableChecksum (&AcpiTableHeader->Checksum); DtDumpFieldList (RootField); DtDumpSubtableList (); return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileTable * * PARAMETERS: Field - Current field list pointer * Info - Info table for this ACPI table * RetSubtable - Compile result of table * * RETURN: Status * * DESCRIPTION: Compile a subtable * *****************************************************************************/ ACPI_STATUS DtCompileTable ( DT_FIELD **Field, ACPI_DMTABLE_INFO *Info, DT_SUBTABLE **RetSubtable) { DT_FIELD *LocalField; UINT32 Length; DT_SUBTABLE *Subtable; DT_SUBTABLE *InlineSubtable = NULL; UINT32 FieldLength = 0; UINT8 FieldType; UINT8 *Buffer; UINT8 *FlagBuffer = NULL; char *String; UINT32 CurrentFlagByteOffset = 0; ACPI_STATUS Status = AE_OK; if (!Field || !Info) { return (AE_BAD_PARAMETER); } if (!*Field) { /* * The field list is empty, this means that we are out of fields to * parse. In other words, we are at the end of the table. */ return (AE_END_OF_TABLE); } /* Ignore optional subtable if name does not match */ if ((Info->Flags & DT_OPTIONAL) && strcmp ((*Field)->Name, Info->Name)) { *RetSubtable = NULL; return (AE_OK); } Length = DtGetSubtableLength (*Field, Info); if (Length == ASL_EOF) { return (AE_ERROR); } Subtable = UtSubtableCacheCalloc (); if (Length > 0) { String = UtLocalCacheCalloc (Length); Subtable->Buffer = ACPI_CAST_PTR (UINT8, String); } Subtable->Length = Length; Subtable->TotalLength = Length; Buffer = Subtable->Buffer; LocalField = *Field; Subtable->Name = LocalField->Name; /* * Main loop walks the info table for this ACPI table or subtable */ for (; Info->Name; Info++) { if (Info->Opcode == ACPI_DMT_EXTRA_TEXT) { continue; } if (!LocalField) { sprintf (AslGbl_MsgBuffer, "Found NULL field - Field name \"%s\" needed", Info->Name); DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, AslGbl_MsgBuffer); Status = AE_BAD_DATA; goto Error; } /* Maintain table offsets */ LocalField->TableOffset = AslGbl_CurrentTableOffset; FieldLength = DtGetFieldLength (LocalField, Info); AslGbl_CurrentTableOffset += FieldLength; FieldType = DtGetFieldType (Info); AslGbl_InputFieldCount++; if (FieldType != DT_FIELD_TYPE_INLINE_SUBTABLE && strcmp (Info->Name, LocalField->Name)) { sprintf (AslGbl_MsgBuffer, "found \"%s\" expected \"%s\"", LocalField->Name, Info->Name); DtError (ASL_ERROR, ASL_MSG_INVALID_LABEL, LocalField, AslGbl_MsgBuffer); } switch (FieldType) { case DT_FIELD_TYPE_FLAGS_INTEGER: /* * Start of the definition of a flags field. * This master flags integer starts at value zero, in preparation * to compile and insert the flag fields from the individual bits */ LocalField = LocalField->Next; *Field = LocalField; FlagBuffer = Buffer; CurrentFlagByteOffset = Info->Offset; break; case DT_FIELD_TYPE_FLAG: /* Individual Flag field, can be multiple bits */ if (FlagBuffer) { /* * We must increment the FlagBuffer when we have crossed * into the next flags byte within the flags field * of type DT_FIELD_TYPE_FLAGS_INTEGER. */ FlagBuffer += (Info->Offset - CurrentFlagByteOffset); CurrentFlagByteOffset = Info->Offset; DtCompileFlag (FlagBuffer, LocalField, Info); } else { /* TBD - this is an internal error */ } LocalField = LocalField->Next; *Field = LocalField; break; case DT_FIELD_TYPE_INLINE_SUBTABLE: /* * Recursion (one level max): compile GAS (Generic Address) * or Notify in-line subtable */ *Field = LocalField; switch (Info->Opcode) { case ACPI_DMT_GAS: Status = DtCompileTable (Field, AcpiDmTableInfoGas, &InlineSubtable); break; case ACPI_DMT_HESTNTFY: Status = DtCompileTable (Field, AcpiDmTableInfoHestNotify, &InlineSubtable); break; case ACPI_DMT_IORTMEM: Status = DtCompileTable (Field, AcpiDmTableInfoIortAcc, &InlineSubtable); break; default: sprintf (AslGbl_MsgBuffer, "Invalid DMT opcode: 0x%.2X", Info->Opcode); DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, AslGbl_MsgBuffer); Status = AE_BAD_DATA; break; } if (ACPI_FAILURE (Status)) { goto Error; } DtSetSubtableLength (InlineSubtable); memcpy (Buffer, InlineSubtable->Buffer, FieldLength); LocalField = *Field; break; case DT_FIELD_TYPE_LABEL: DtWriteFieldToListing (Buffer, LocalField, 0); LocalField = LocalField->Next; break; default: /* Normal case for most field types (Integer, String, etc.) */ DtCompileOneField (Buffer, LocalField, FieldLength, FieldType, Info->Flags); DtWriteFieldToListing (Buffer, LocalField, FieldLength); LocalField = LocalField->Next; if (Info->Flags & DT_LENGTH) { /* Field is an Integer that will contain a subtable length */ Subtable->LengthField = Buffer; Subtable->SizeOfLengthField = FieldLength; } break; } Buffer += FieldLength; } *Field = LocalField; *RetSubtable = Subtable; return (AE_OK); Error: ACPI_FREE (Subtable->Buffer); ACPI_FREE (Subtable); return (Status); } /****************************************************************************** * * FUNCTION: DtCompileTwoSubtables * * PARAMETERS: List - Current field list pointer * TableInfo1 - Info table 1 * TableInfo1 - Info table 2 * * RETURN: Status * * DESCRIPTION: Compile tables with a header and one or more same subtables. * Include CPEP, EINJ, ERST, MCFG, MSCT, WDAT * *****************************************************************************/ ACPI_STATUS DtCompileTwoSubtables ( void **List, ACPI_DMTABLE_INFO *TableInfo1, ACPI_DMTABLE_INFO *TableInfo2) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; Status = DtCompileTable (PFieldList, TableInfo1, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); while (*PFieldList) { Status = DtCompileTable (PFieldList, TableInfo2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompilePadding * * PARAMETERS: Length - Padding field size * RetSubtable - Compile result of table * * RETURN: Status * * DESCRIPTION: Compile a subtable for padding purpose * *****************************************************************************/ ACPI_STATUS DtCompilePadding ( UINT32 Length, DT_SUBTABLE **RetSubtable) { DT_SUBTABLE *Subtable; /* UINT8 *Buffer; */ char *String; Subtable = UtSubtableCacheCalloc (); if (Length > 0) { String = UtLocalCacheCalloc (Length); Subtable->Buffer = ACPI_CAST_PTR (UINT8, String); } Subtable->Length = Length; Subtable->TotalLength = Length; /* Buffer = Subtable->Buffer; */ *RetSubtable = Subtable; return (AE_OK); } acpica-unix-20250404/source/compiler/asllistsup.c0000775000175000017500000004622514773714131021232 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asllistsup - Listing file support utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslistsup") /******************************************************************************* * * FUNCTION: LsDumpAscii * * PARAMETERS: FileId - ID of current listing file * Count - Number of bytes to convert * Buffer - Buffer of bytes to convert * * RETURN: None * * DESCRIPTION: Convert hex bytes to ascii * ******************************************************************************/ void LsDumpAscii ( UINT32 FileId, UINT32 Count, UINT8 *Buffer) { UINT8 BufChar; UINT32 i; FlPrintFile (FileId, " \""); for (i = 0; i < Count; i++) { BufChar = Buffer[i]; if (isprint (BufChar)) { FlPrintFile (FileId, "%c", BufChar); } else { /* Not a printable character, just put out a dot */ FlPrintFile (FileId, "."); } } FlPrintFile (FileId, "\""); } /******************************************************************************* * * FUNCTION: LsDumpAsciiInComment * * PARAMETERS: FileId - ID of current listing file * Count - Number of bytes to convert * Buffer - Buffer of bytes to convert * * RETURN: None * * DESCRIPTION: Convert hex bytes to ascii * ******************************************************************************/ void LsDumpAsciiInComment ( UINT32 FileId, UINT32 Count, UINT8 *Buffer) { UINT8 BufChar = 0; UINT8 LastChar; UINT32 i; FlPrintFile (FileId, " \""); for (i = 0; i < Count; i++) { LastChar = BufChar; BufChar = Buffer[i]; if (isprint (BufChar)) { /* Handle embedded C comment sequences */ if (((LastChar == '*') && (BufChar == '/')) || ((LastChar == '/') && (BufChar == '*'))) { /* Insert a space to break the sequence */ FlPrintFile (FileId, " "); } FlPrintFile (FileId, "%c", BufChar); } else { /* Not a printable character, just put out a dot */ FlPrintFile (FileId, "."); } } FlPrintFile (FileId, "\""); } /******************************************************************************* * * FUNCTION: LsCheckException * * PARAMETERS: LineNumber - Current logical (cumulative) line # * FileId - ID of output listing file * * RETURN: None * * DESCRIPTION: Check if there is an exception for this line, and if there is, * put it in the listing immediately. Handles multiple errors * per line. AslGbl_NextError points to the next error in the * sorted (by line #) list of compile errors/warnings. * ******************************************************************************/ void LsCheckException ( UINT32 LineNumber, UINT32 FileId) { if ((!AslGbl_NextError) || (LineNumber < AslGbl_NextError->LogicalLineNumber )) { return; } /* Handle multiple errors per line */ if (FileId == ASL_FILE_LISTING_OUTPUT) { while (AslGbl_NextError && (LineNumber >= AslGbl_NextError->LogicalLineNumber)) { AePrintException (FileId, AslGbl_NextError, "\n[****iasl****]\n"); AslGbl_NextError = AslGbl_NextError->Next; } FlPrintFile (FileId, "\n"); } } /******************************************************************************* * * FUNCTION: LsWriteListingHexBytes * * PARAMETERS: Buffer - AML code buffer * Length - Number of AML bytes to write * FileId - ID of current listing file. * * RETURN: None * * DESCRIPTION: Write the contents of the AML buffer to the listing file via * the listing buffer. The listing buffer is flushed every 16 * AML bytes. * ******************************************************************************/ void LsWriteListingHexBytes ( UINT8 *Buffer, UINT32 Length, UINT32 FileId) { UINT32 i; /* Transfer all requested bytes */ for (i = 0; i < Length; i++) { /* Print line header when buffer is empty */ if (AslGbl_CurrentHexColumn == 0) { if (AslGbl_HasIncludeFiles) { FlPrintFile (FileId, "%*s", 10, " "); } switch (FileId) { case ASL_FILE_LISTING_OUTPUT: FlPrintFile (FileId, "%8.8X%s", AslGbl_CurrentAmlOffset, ASL_LISTING_LINE_PREFIX); break; case ASL_FILE_ASM_SOURCE_OUTPUT: FlPrintFile (FileId, " db "); break; case ASL_FILE_C_SOURCE_OUTPUT: FlPrintFile (FileId, " "); break; default: /* No other types supported */ return; } } /* Transfer AML byte and update counts */ AslGbl_AmlBuffer[AslGbl_CurrentHexColumn] = Buffer[i]; AslGbl_CurrentHexColumn++; AslGbl_CurrentAmlOffset++; /* Flush buffer when it is full */ if (AslGbl_CurrentHexColumn >= HEX_LISTING_LINE_SIZE) { LsFlushListingBuffer (FileId); } } } /******************************************************************************* * * FUNCTION: LsWriteSourceLines * * PARAMETERS: ToLineNumber - * ToLogicalLineNumber - Write up to this source line number * FileId - ID of current listing file * * RETURN: None * * DESCRIPTION: Read then write source lines to the listing file until we have * reached the specified logical (cumulative) line number. This * automatically echos out comment blocks and other non-AML * generating text until we get to the actual AML-generating line * of ASL code specified by the logical line number. * ******************************************************************************/ void LsWriteSourceLines ( UINT32 ToLineNumber, UINT32 ToLogicalLineNumber, UINT32 FileId) { /* Nothing to do for these file types */ if ((FileId == ASL_FILE_ASM_INCLUDE_OUTPUT) || (FileId == ASL_FILE_C_INCLUDE_OUTPUT)) { return; } AslGbl_CurrentLine = ToLogicalLineNumber; /* Flush any hex bytes remaining from the last opcode */ LsFlushListingBuffer (FileId); /* Read lines and write them as long as we are not caught up */ if (AslGbl_SourceLine < AslGbl_CurrentLine) { /* * If we just completed writing some AML hex bytes, output a linefeed * to add some whitespace for readability. */ if (AslGbl_HexBytesWereWritten) { FlPrintFile (FileId, "\n"); AslGbl_HexBytesWereWritten = FALSE; } if (FileId == ASL_FILE_C_SOURCE_OUTPUT) { FlPrintFile (FileId, " /*\n"); } /* Write one line at a time until we have reached the target line # */ while ((AslGbl_SourceLine < AslGbl_CurrentLine) && LsWriteOneSourceLine (FileId)) { ; } if (FileId == ASL_FILE_C_SOURCE_OUTPUT) { FlPrintFile (FileId, " */"); } FlPrintFile (FileId, "\n"); } } /******************************************************************************* * * FUNCTION: LsWriteOneSourceLine * * PARAMETERS: FileId - ID of current listing file * * RETURN: FALSE on EOF (input source file), TRUE otherwise * * DESCRIPTION: Read one line from the input source file and echo it to the * listing file, prefixed with the line number, and if the source * file contains include files, prefixed with the current filename * ******************************************************************************/ UINT32 LsWriteOneSourceLine ( UINT32 FileId) { UINT8 FileByte; UINT32 Column = 0; UINT32 Index = 16; BOOLEAN StartOfLine = FALSE; BOOLEAN ProcessLongLine = FALSE; AslGbl_SourceLine++; AslGbl_ListingNode->LineNumber++; /* Ignore lines that are completely blank (but count the line above) */ if (FlReadFile (ASL_FILE_SOURCE_OUTPUT, &FileByte, 1) != AE_OK) { return (0); } if (FileByte == '\n') { return (1); } /* * This is a non-empty line, we will print the entire line with * the line number and possibly other prefixes and transforms. */ /* Line prefixes for special files, C and ASM output */ if (FileId == ASL_FILE_C_SOURCE_OUTPUT) { FlPrintFile (FileId, " *"); } if (FileId == ASL_FILE_ASM_SOURCE_OUTPUT) { FlPrintFile (FileId, "; "); } if (AslGbl_HasIncludeFiles) { /* * This file contains "include" statements, print the current * filename and line number within the current file */ FlPrintFile (FileId, "%12s %5d%s", AslGbl_ListingNode->Filename, AslGbl_ListingNode->LineNumber, ASL_LISTING_LINE_PREFIX); } else { /* No include files, just print the line number */ FlPrintFile (FileId, "%8u%s", AslGbl_SourceLine, ASL_LISTING_LINE_PREFIX); } /* Read the rest of this line (up to a newline or EOF) */ do { if (FileId == ASL_FILE_C_SOURCE_OUTPUT) { if (FileByte == '/') { FileByte = '*'; } } /* Split long input lines for readability in the listing */ Column++; if (Column >= 128) { if (!ProcessLongLine) { if ((FileByte != '}') && (FileByte != '{')) { goto WriteByte; } ProcessLongLine = TRUE; } if (FileByte == '{') { FlPrintFile (FileId, "\n%*s{\n", Index, " "); StartOfLine = TRUE; Index += 4; continue; } else if (FileByte == '}') { if (!StartOfLine) { FlPrintFile (FileId, "\n"); } StartOfLine = TRUE; Index -= 4; FlPrintFile (FileId, "%*s}\n", Index, " "); continue; } /* Ignore spaces/tabs at the start of line */ else if ((FileByte == ' ') && StartOfLine) { continue; } else if (StartOfLine) { StartOfLine = FALSE; FlPrintFile (FileId, "%*s", Index, " "); } WriteByte: FlWriteFile (FileId, &FileByte, 1); if (FileByte == '\n') { /* * This line has been completed. * Check if an error occurred on this source line during the compile. * If so, we print the error message after the source line. */ LsCheckException (AslGbl_SourceLine, FileId); return (1); } } else { FlWriteFile (FileId, &FileByte, 1); if (FileByte == '\n') { /* * This line has been completed. * Check if an error occurred on this source line during the compile. * If so, we print the error message after the source line. */ LsCheckException (AslGbl_SourceLine, FileId); return (1); } } } while (FlReadFile (ASL_FILE_SOURCE_OUTPUT, &FileByte, 1) == AE_OK); /* EOF on the input file was reached */ return (0); } /******************************************************************************* * * FUNCTION: LsFlushListingBuffer * * PARAMETERS: FileId - ID of the listing file * * RETURN: None * * DESCRIPTION: Flush out the current contents of the 16-byte hex AML code * buffer. Usually called at the termination of a single line * of source code or when the buffer is full. * ******************************************************************************/ void LsFlushListingBuffer ( UINT32 FileId) { UINT32 i; if (AslGbl_CurrentHexColumn == 0) { return; } /* Write the hex bytes */ switch (FileId) { case ASL_FILE_LISTING_OUTPUT: for (i = 0; i < AslGbl_CurrentHexColumn; i++) { FlPrintFile (FileId, "%2.2X ", AslGbl_AmlBuffer[i]); } for (i = 0; i < ((HEX_LISTING_LINE_SIZE - AslGbl_CurrentHexColumn) * 3); i++) { FlWriteFile (FileId, ".", 1); } /* Write the ASCII character associated with each of the bytes */ LsDumpAscii (FileId, AslGbl_CurrentHexColumn, AslGbl_AmlBuffer); break; case ASL_FILE_ASM_SOURCE_OUTPUT: for (i = 0; i < AslGbl_CurrentHexColumn; i++) { if (i > 0) { FlPrintFile (FileId, ","); } FlPrintFile (FileId, "0%2.2Xh", AslGbl_AmlBuffer[i]); } for (i = 0; i < ((HEX_LISTING_LINE_SIZE - AslGbl_CurrentHexColumn) * 5); i++) { FlWriteFile (FileId, " ", 1); } FlPrintFile (FileId, " ;%8.8X", AslGbl_CurrentAmlOffset - HEX_LISTING_LINE_SIZE); /* Write the ASCII character associated with each of the bytes */ LsDumpAscii (FileId, AslGbl_CurrentHexColumn, AslGbl_AmlBuffer); break; case ASL_FILE_C_SOURCE_OUTPUT: for (i = 0; i < AslGbl_CurrentHexColumn; i++) { FlPrintFile (FileId, "0x%2.2X,", AslGbl_AmlBuffer[i]); } /* Pad hex output with spaces if line is shorter than max line size */ for (i = 0; i < ((HEX_LISTING_LINE_SIZE - AslGbl_CurrentHexColumn) * 5); i++) { FlWriteFile (FileId, " ", 1); } /* AML offset for the start of the line */ FlPrintFile (FileId, " /* %8.8X", AslGbl_CurrentAmlOffset - AslGbl_CurrentHexColumn); /* Write the ASCII character associated with each of the bytes */ LsDumpAsciiInComment (FileId, AslGbl_CurrentHexColumn, AslGbl_AmlBuffer); FlPrintFile (FileId, " */"); break; default: /* No other types supported */ return; } FlPrintFile (FileId, "\n"); AslGbl_CurrentHexColumn = 0; AslGbl_HexBytesWereWritten = TRUE; } /******************************************************************************* * * FUNCTION: LsPushNode * * PARAMETERS: Filename - Pointer to the include filename * * RETURN: None * * DESCRIPTION: Push a listing node on the listing/include file stack. This * stack enables tracking of include files (infinitely nested) * and resumption of the listing of the parent file when the * include file is finished. * ******************************************************************************/ void LsPushNode ( char *Filename) { ASL_LISTING_NODE *Lnode; /* Create a new node */ Lnode = UtLocalCalloc (sizeof (ASL_LISTING_NODE)); /* Initialize */ Lnode->Filename = Filename; Lnode->LineNumber = 0; /* Link (push) */ Lnode->Next = AslGbl_ListingNode; AslGbl_ListingNode = Lnode; } /******************************************************************************* * * FUNCTION: LsPopNode * * PARAMETERS: None * * RETURN: List head after current head is popped off * * DESCRIPTION: Pop the current head of the list, free it, and return the * next node on the stack (the new current node). * ******************************************************************************/ ASL_LISTING_NODE * LsPopNode ( void) { ASL_LISTING_NODE *Lnode; /* Just grab the node at the head of the list */ Lnode = AslGbl_ListingNode; if ((!Lnode) || (!Lnode->Next)) { AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, NULL, "Could not pop empty listing stack"); return (AslGbl_ListingNode); } AslGbl_ListingNode = Lnode->Next; ACPI_FREE (Lnode); /* New "Current" node is the new head */ return (AslGbl_ListingNode); } acpica-unix-20250404/source/compiler/asldefine.h0000775000175000017500000001641414773714131020763 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asldefine.h - Common defines for the iASL compiler * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ASLDEFINE_H #define __ASLDEFINE_H /* * Compiler versions and names */ #define ASL_COMPILER_NAME "ASL+ Optimizing Compiler/Disassembler" #define AML_DISASSEMBLER_NAME "AML/ASL+ Disassembler" #define ASL_INVOCATION_NAME "iasl" #define ASL_CREATOR_ID "INTL" #define ASL_DEFINE "__IASL__" #define ASL_PREFIX "iASL: " #define ASL_COMPLIANCE "Supports ACPI Specification Revision 6.5" /* Configuration constants */ #define ASL_MAX_ERROR_COUNT 200 #define ASL_PARSEOP_CACHE_SIZE (1024 * 16) #define ASL_STRING_CACHE_SIZE (1024 * 64) #define ASL_FIRST_PARSE_OPCODE PARSEOP_ACCESSAS #define ASL_PARSE_OPCODE_BASE PARSEOP_ACCESSAS /* First Lex type */ /* * Per-parser-generator configuration. These values are used to cheat and * directly access the bison/yacc token name table (yyname or yytname). * Note: These values are the index in yyname for the first lex token * (PARSEOP_ACCCESSAS). */ #if defined (YYBISON) #define ASL_YYTNAME_START 3 /* Bison */ #elif defined (YYBYACC) #define ASL_YYTNAME_START 257 /* Berkeley yacc */ #endif /* * Macros */ #define ASL_RESDESC_OFFSET(m) ACPI_OFFSET (AML_RESOURCE, m) #define ASL_PTR_DIFF(a,b) ((UINT8 *)(b) - (UINT8 *)(a)) #define ASL_PTR_ADD(a,b) ((UINT8 *)(a) = ((UINT8 *)(a) + (b))) #define ASL_GET_CHILD_NODE(a) (a)->Asl.Child #define ASL_GET_PEER_NODE(a) (a)->Asl.Next #define OP_TABLE_ENTRY(a,b,c,d) {b,d,a,c} /* Internal AML opcodes */ #define AML_RAW_DATA_BYTE (UINT16) 0xAA01 /* write one raw byte */ #define AML_RAW_DATA_WORD (UINT16) 0xAA02 /* write 2 raw bytes */ #define AML_RAW_DATA_DWORD (UINT16) 0xAA04 /* write 4 raw bytes */ #define AML_RAW_DATA_QWORD (UINT16) 0xAA08 /* write 8 raw bytes */ #define AML_RAW_DATA_BUFFER (UINT16) 0xAA0B /* raw buffer with length */ #define AML_RAW_DATA_CHAIN (UINT16) 0xAA0C /* chain of raw buffers */ #define AML_PACKAGE_LENGTH (UINT16) 0xAA10 #define AML_UNASSIGNED_OPCODE (UINT16) 0xEEEE #define AML_DEFAULT_ARG_OP (UINT16) 0xDDDD /* Types for input files */ #define ASL_INPUT_TYPE_BINARY 0 #define ASL_INPUT_TYPE_BINARY_ACPI_TABLE 1 #define ASL_INPUT_TYPE_ASCII_ASL 2 #define ASL_INPUT_TYPE_ASCII_DATA 3 /* Misc */ #define ASL_EXTERNAL_METHOD_UNKNOWN_PARAMS 255 #define ASL_ABORT TRUE #define ASL_NO_ABORT FALSE #define ASL_EOF ACPI_UINT32_MAX #define ASL_IGNORE_LINE (ACPI_UINT32_MAX -1) #define ASL_ERROR_CODE_LENGTH 4 /* Listings */ #define ASL_LISTING_LINE_PREFIX ": " /* Support for reserved method names */ #define ACPI_VALID_RESERVED_NAME_MAX 0x80000000 #define ACPI_NOT_RESERVED_NAME ACPI_UINT32_MAX #define ACPI_PREDEFINED_NAME (ACPI_UINT32_MAX - 1) #define ACPI_EVENT_RESERVED_NAME (ACPI_UINT32_MAX - 2) #define ACPI_COMPILER_RESERVED_NAME (ACPI_UINT32_MAX - 3) /* Helper macros for resource tag creation */ #define RsCreateMultiBitField \ RsCreateResourceField #define RsCreateBitField(Op, Name, ByteOffset, BitOffset) \ RsCreateResourceField (Op, Name, ByteOffset, BitOffset, 1) #define RsCreateByteField(Op, Name, ByteOffset) \ RsCreateResourceField (Op, Name, ByteOffset, 0, 8); #define RsCreateWordField(Op, Name, ByteOffset) \ RsCreateResourceField (Op, Name, ByteOffset, 0, 16); #define RsCreateDwordField(Op, Name, ByteOffset) \ RsCreateResourceField (Op, Name, ByteOffset, 0, 32); #define RsCreateQwordField(Op, Name, ByteOffset) \ RsCreateResourceField (Op, Name, ByteOffset, 0, 64); /* * Macros for debug output */ #define DEBUG_MAX_LINE_LENGTH 61 #define DEBUG_SPACES_PER_INDENT 3 #define DEBUG_FULL_LINE_LENGTH 71 #define ASL_PARSE_TREE_FULL_LINE "\n%71.71s" /* Header/Trailer for original parse tree directly from the parser */ #define ASL_PARSE_TREE_HEADER1 \ "%*s Value P_Op Flags Line# End# LogL# EndL#\n", 65, " " #define ASL_PARSE_TREE_DEBUG1 \ " %4.4X %8.8X %5d %5d %5d %5d" /* Header/Trailer for processed parse tree used for AML generation */ #define ASL_PARSE_TREE_HEADER2 \ "%*s NameString Value P_Op A_Op OpLen PByts Len SubLen PSubLen OpPtr"\ " Parent Child Next Flags AcTyp Final Col"\ " Line# End# LogL# EndL#\n", 60, " " #define ASL_PARSE_TREE_DEBUG2 \ " %08X %04X %04X %01X %04X %04X %05X %05X "\ "%8p %8p %8p %8p %08X %08X %04X %02d %5d %5d %5d %5d" /* * Macros for ASL/ASL+ converter */ #define COMMENT_CAPTURE_ON AslGbl_CommentState.CaptureComments = TRUE; #define COMMENT_CAPTURE_OFF AslGbl_CommentState.CaptureComments = FALSE; /* * Special name segments - these must only be declared at the root scope */ #define NAMESEG__PTS "_PTS" #define NAMESEG__WAK "_WAK" #define NAMESEG__S0 "_S0_" #define NAMESEG__S1 "_S1_" #define NAMESEG__S2 "_S2_" #define NAMESEG__S3 "_S3_" #define NAMESEG__S4 "_S4_" #define NAMESEG__S5 "_S5_" #define NAMESEG__TTS "_TTS" #define MAX_SPECIAL_NAMES 9 #endif /* ASLDEFINE.H */ acpica-unix-20250404/source/compiler/aslopcodes.c0000775000175000017500000005476314773714131021171 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslopcode - AML opcode generation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslopcodes") /* Local prototypes */ static void OpcDoAccessAs ( ACPI_PARSE_OBJECT *Op); static void OpcDoConnection ( ACPI_PARSE_OBJECT *Op); static void OpcDoUnicode ( ACPI_PARSE_OBJECT *Op); static void OpcDoEisaId ( ACPI_PARSE_OBJECT *Op); static void OpcDoUuId ( ACPI_PARSE_OBJECT *Op); /******************************************************************************* * * FUNCTION: OpcAmlOpcodeUpdateWalk * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Opcode update walk, ascending callback * ******************************************************************************/ ACPI_STATUS OpcAmlOpcodeUpdateWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { /* * Handle the Package() case where the actual opcode cannot be determined * until the PackageLength operand has been folded and minimized. * (PackageOp versus VarPackageOp) * * This is (as of ACPI 3.0) the only case where the AML opcode can change * based upon the value of a parameter. * * The parser always inserts a VarPackage opcode, which can possibly be * optimized to a Package opcode. */ if (Op->Asl.ParseOpcode == PARSEOP_VAR_PACKAGE) { OpnDoPackage (Op); } return (AE_OK); } /******************************************************************************* * * FUNCTION: OpcAmlOpcodeWalk * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Parse tree walk to generate both the AML opcodes and the AML * operands. * ******************************************************************************/ ACPI_STATUS OpcAmlOpcodeWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { AslGbl_TotalParseNodes++; OpcGenerateAmlOpcode (Op); OpnGenerateAmlOperands (Op); return (AE_OK); } /******************************************************************************* * * FUNCTION: OpcGetIntegerWidth * * PARAMETERS: Op - DEFINITION BLOCK op * * RETURN: none * * DESCRIPTION: Extract integer width from the table revision * ******************************************************************************/ void OpcGetIntegerWidth ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Child; if (!Op) { return; } if (AslGbl_RevisionOverride) { AcpiUtSetIntegerWidth (AslGbl_RevisionOverride); } else { Child = Op->Asl.Child; Child = Child->Asl.Next; Child = Child->Asl.Next; /* Use the revision to set the integer width */ AcpiUtSetIntegerWidth ((UINT8) Child->Asl.Value.Integer); } } /******************************************************************************* * * FUNCTION: OpcSetOptimalIntegerSize * * PARAMETERS: Op - A parse tree node * * RETURN: Integer width, in bytes. Also sets the node AML opcode to the * optimal integer AML prefix opcode. * * DESCRIPTION: Determine the optimal AML encoding of an integer. All leading * zeros can be truncated to squeeze the integer into the * minimal number of AML bytes. * ******************************************************************************/ UINT32 OpcSetOptimalIntegerSize ( ACPI_PARSE_OBJECT *Op) { #if 0 /* * TBD: - we don't want to optimize integers in the block header, but the * code below does not work correctly. */ if (Op->Asl.Parent && Op->Asl.Parent->Asl.Parent && (Op->Asl.Parent->Asl.Parent->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK)) { return (0); } #endif /* * Check for the special AML integers first - Zero, One, Ones. * These are single-byte opcodes that are the smallest possible * representation of an integer. * * This optimization is optional. */ if (AslGbl_IntegerOptimizationFlag) { switch (Op->Asl.Value.Integer) { case 0: Op->Asl.AmlOpcode = AML_ZERO_OP; AslError (ASL_OPTIMIZATION, ASL_MSG_INTEGER_OPTIMIZATION, Op, "Zero"); return (1); case 1: Op->Asl.AmlOpcode = AML_ONE_OP; AslError (ASL_OPTIMIZATION, ASL_MSG_INTEGER_OPTIMIZATION, Op, "One"); return (1); case ACPI_UINT32_MAX: /* Check for table integer width (32 or 64) */ if (AcpiGbl_IntegerByteWidth == 4) { Op->Asl.AmlOpcode = AML_ONES_OP; AslError (ASL_OPTIMIZATION, ASL_MSG_INTEGER_OPTIMIZATION, Op, "Ones"); return (1); } break; case ACPI_UINT64_MAX: /* Check for table integer width (32 or 64) */ if (AcpiGbl_IntegerByteWidth == 8) { Op->Asl.AmlOpcode = AML_ONES_OP; AslError (ASL_OPTIMIZATION, ASL_MSG_INTEGER_OPTIMIZATION, Op, "Ones"); return (1); } break; default: break; } } /* Find the best fit using the various AML integer prefixes */ if (Op->Asl.Value.Integer <= ACPI_UINT8_MAX) { Op->Asl.AmlOpcode = AML_BYTE_OP; return (1); } if (Op->Asl.Value.Integer <= ACPI_UINT16_MAX) { Op->Asl.AmlOpcode = AML_WORD_OP; return (2); } if (Op->Asl.Value.Integer <= ACPI_UINT32_MAX) { Op->Asl.AmlOpcode = AML_DWORD_OP; return (4); } else /* 64-bit integer */ { if (AcpiGbl_IntegerByteWidth == 4) { AslError (ASL_WARNING, ASL_MSG_INTEGER_LENGTH, Op, NULL); if (!AslGbl_IgnoreErrors) { /* Truncate the integer to 32-bit */ Op->Asl.Value.Integer &= ACPI_UINT32_MAX; /* Now set the optimal integer size */ return (OpcSetOptimalIntegerSize (Op)); } } Op->Asl.AmlOpcode = AML_QWORD_OP; return (8); } } /******************************************************************************* * * FUNCTION: OpcDoAccessAs * * PARAMETERS: Op - Parse node * * RETURN: None * * DESCRIPTION: Implement the ACCESS_AS ASL keyword. * ******************************************************************************/ static void OpcDoAccessAs ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *TypeOp; ACPI_PARSE_OBJECT *AttribOp; ACPI_PARSE_OBJECT *LengthOp; UINT8 Attribute; Op->Asl.AmlOpcodeLength = 1; TypeOp = Op->Asl.Child; /* First child is the access type */ TypeOp->Asl.AmlOpcode = AML_RAW_DATA_BYTE; TypeOp->Asl.ParseOpcode = PARSEOP_RAW_DATA; /* Second child is the optional access attribute */ AttribOp = TypeOp->Asl.Next; if (AttribOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { AttribOp->Asl.Value.Integer = 0; } AttribOp->Asl.AmlOpcode = AML_RAW_DATA_BYTE; AttribOp->Asl.ParseOpcode = PARSEOP_RAW_DATA; /* Only a few AccessAttributes support AccessLength */ Attribute = (UINT8) AttribOp->Asl.Value.Integer; if ((Attribute != AML_FIELD_ATTRIB_BYTES) && (Attribute != AML_FIELD_ATTRIB_RAW_BYTES) && (Attribute != AML_FIELD_ATTRIB_RAW_PROCESS_BYTES)) { return; } Op->Asl.AmlOpcode = AML_FIELD_EXT_ACCESS_OP; /* * Child of Attributes is the AccessLength (required for Multibyte, * RawBytes, RawProcess.) */ LengthOp = AttribOp->Asl.Child; if (!LengthOp) { return; } /* TBD: probably can remove */ if (LengthOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { LengthOp->Asl.Value.Integer = 16; } LengthOp->Asl.AmlOpcode = AML_RAW_DATA_BYTE; LengthOp->Asl.ParseOpcode = PARSEOP_RAW_DATA; } /******************************************************************************* * * FUNCTION: OpcDoConnection * * PARAMETERS: Op - Parse node * * RETURN: None * * DESCRIPTION: Implement the Connection ASL keyword. * ******************************************************************************/ static void OpcDoConnection ( ACPI_PARSE_OBJECT *Op) { ASL_RESOURCE_NODE *Rnode; ACPI_PARSE_OBJECT *BufferOp; ACPI_PARSE_OBJECT *BufferLengthOp; ACPI_PARSE_OBJECT *BufferDataOp; ASL_RESOURCE_INFO Info; UINT8 State; Op->Asl.AmlOpcodeLength = 1; if (Op->Asl.Child->Asl.AmlOpcode == AML_INT_NAMEPATH_OP) { return; } BufferOp = Op->Asl.Child; BufferLengthOp = BufferOp->Asl.Child; BufferDataOp = BufferLengthOp->Asl.Next; Info.DescriptorTypeOp = BufferDataOp->Asl.Next; Info.CurrentByteOffset = 0; State = ACPI_RSTATE_NORMAL; Rnode = RsDoOneResourceDescriptor (&Info, &State); if (!Rnode) { return; /* error */ } /* * Transform the nodes into the following * * Op -> AML_BUFFER_OP * First Child -> BufferLength * Second Child -> Descriptor Buffer (raw byte data) */ BufferOp->Asl.ParseOpcode = PARSEOP_BUFFER; BufferOp->Asl.AmlOpcode = AML_BUFFER_OP; BufferOp->Asl.CompileFlags = OP_AML_PACKAGE | OP_IS_RESOURCE_DESC; UtSetParseOpName (BufferOp); BufferLengthOp->Asl.ParseOpcode = PARSEOP_INTEGER; BufferLengthOp->Asl.Value.Integer = Rnode->BufferLength; (void) OpcSetOptimalIntegerSize (BufferLengthOp); UtSetParseOpName (BufferLengthOp); BufferDataOp->Asl.ParseOpcode = PARSEOP_RAW_DATA; BufferDataOp->Asl.AmlOpcode = AML_RAW_DATA_CHAIN; BufferDataOp->Asl.AmlOpcodeLength = 0; BufferDataOp->Asl.AmlLength = Rnode->BufferLength; BufferDataOp->Asl.Value.Buffer = (UINT8 *) Rnode; UtSetParseOpName (BufferDataOp); } /******************************************************************************* * * FUNCTION: OpcDoUnicode * * PARAMETERS: Op - Parse node * * RETURN: None * * DESCRIPTION: Implement the UNICODE ASL "macro". Convert the input string * to a unicode buffer. There is no Unicode AML opcode. * * Note: The Unicode string is 16 bits per character, no leading signature, * with a 16-bit terminating NULL. * ******************************************************************************/ static void OpcDoUnicode ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *InitializerOp; UINT32 Length; UINT32 Count; UINT32 i; UINT8 *AsciiString; UINT16 *UnicodeString; ACPI_PARSE_OBJECT *BufferLengthOp; /* Change op into a buffer object */ Op->Asl.CompileFlags &= ~OP_COMPILE_TIME_CONST; Op->Asl.ParseOpcode = PARSEOP_BUFFER; UtSetParseOpName (Op); /* Buffer Length is first, followed by the string */ BufferLengthOp = Op->Asl.Child; InitializerOp = BufferLengthOp->Asl.Next; AsciiString = (UINT8 *) InitializerOp->Asl.Value.String; /* Create a new buffer for the Unicode string */ Count = strlen (InitializerOp->Asl.Value.String) + 1; Length = Count * sizeof (UINT16); UnicodeString = UtLocalCalloc (Length); /* Convert to Unicode string (including null terminator) */ for (i = 0; i < Count; i++) { UnicodeString[i] = (UINT16) AsciiString[i]; } /* * Just set the buffer size node to be the buffer length, regardless * of whether it was previously an integer or a default_arg placeholder */ BufferLengthOp->Asl.ParseOpcode = PARSEOP_INTEGER; BufferLengthOp->Asl.AmlOpcode = AML_DWORD_OP; BufferLengthOp->Asl.Value.Integer = Length; UtSetParseOpName (BufferLengthOp); (void) OpcSetOptimalIntegerSize (BufferLengthOp); /* The Unicode string is a raw data buffer */ InitializerOp->Asl.Value.Buffer = (UINT8 *) UnicodeString; InitializerOp->Asl.AmlOpcode = AML_RAW_DATA_BUFFER; InitializerOp->Asl.AmlLength = Length; InitializerOp->Asl.ParseOpcode = PARSEOP_RAW_DATA; InitializerOp->Asl.Child = NULL; UtSetParseOpName (InitializerOp); } /******************************************************************************* * * FUNCTION: OpcDoEisaId * * PARAMETERS: Op - Parse node * * RETURN: None * * DESCRIPTION: Convert a string EISA ID to numeric representation. See the * Pnp BIOS Specification for details. Here is an excerpt: * * A seven character ASCII representation of the product * identifier compressed into a 32-bit identifier. The seven * character ID consists of a three character manufacturer code, * a three character hexadecimal product identifier, and a one * character hexadecimal revision number. The manufacturer code * is a 3 uppercase character code that is compressed into 3 5-bit * values as follows: * 1) Find hex ASCII value for each letter * 2) Subtract 40h from each ASCII value * 3) Retain 5 least significant bits for each letter by * discarding upper 3 bits because they are always 0. * 4) Compressed code = concatenate 0 and the 3 5-bit values * * The format of the compressed product identifier is as follows: * Byte 0: Bit 7 - Reserved (0) * Bits 6-2: - 1st character of compressed mfg code * Bits 1-0 - Upper 2 bits of 2nd character of mfg code * Byte 1: Bits 7-5 - Lower 3 bits of 2nd character of mfg code * Bits 4-0 - 3rd character of mfg code * Byte 2: Bits 7-4 - 1st hex digit of product number * Bits 3-0 - 2nd hex digit of product number * Byte 3: Bits 7-4 - 3rd hex digit of product number * Bits 3-0 - Hex digit of the revision number * ******************************************************************************/ static void OpcDoEisaId ( ACPI_PARSE_OBJECT *Op) { UINT32 EisaId = 0; UINT32 BigEndianId; char *InString; ACPI_STATUS Status = AE_OK; UINT32 i; InString = (char *) Op->Asl.Value.String; /* * The EISAID string must be exactly 7 characters and of the form * "UUUXXXX" -- 3 uppercase letters and 4 hex digits (e.g., "PNP0001") */ if (strlen (InString) != 7) { Status = AE_BAD_PARAMETER; } else { /* Check all 7 characters for correct format */ for (i = 0; i < 7; i++) { /* First 3 characters must be uppercase letters */ if (i < 3) { if (!isupper ((int) InString[i])) { Status = AE_BAD_PARAMETER; } } /* Last 4 characters must be hex digits */ else if (!isxdigit ((int) InString[i])) { Status = AE_BAD_PARAMETER; } } } if (ACPI_FAILURE (Status)) { AslError (ASL_ERROR, ASL_MSG_INVALID_EISAID, Op, Op->Asl.Value.String); } else { /* Create ID big-endian first (bits are contiguous) */ BigEndianId = (UINT32) ((UINT8) (InString[0] - 0x40)) << 26 | (UINT32) ((UINT8) (InString[1] - 0x40)) << 21 | (UINT32) ((UINT8) (InString[2] - 0x40)) << 16 | (AcpiUtAsciiCharToHex (InString[3])) << 12 | (AcpiUtAsciiCharToHex (InString[4])) << 8 | (AcpiUtAsciiCharToHex (InString[5])) << 4 | AcpiUtAsciiCharToHex (InString[6]); /* Swap to little-endian to get final ID (see function header) */ EisaId = AcpiUtDwordByteSwap (BigEndianId); } /* * Morph the Op into an integer, regardless of whether there * was an error in the EISAID string */ Op->Asl.Value.Integer = EisaId; Op->Asl.CompileFlags &= ~OP_COMPILE_TIME_CONST; Op->Asl.ParseOpcode = PARSEOP_INTEGER; (void) OpcSetOptimalIntegerSize (Op); /* Op is now an integer */ UtSetParseOpName (Op); } /******************************************************************************* * * FUNCTION: OpcDoUuId * * PARAMETERS: Op - Parse node * * RETURN: None * * DESCRIPTION: Convert UUID string to 16-byte buffer * ******************************************************************************/ static void OpcDoUuId ( ACPI_PARSE_OBJECT *Op) { char *InString; UINT8 *Buffer; ACPI_STATUS Status = AE_OK; ACPI_PARSE_OBJECT *NewOp; InString = ACPI_CAST_PTR (char, Op->Asl.Value.String); Buffer = UtLocalCalloc (16); Status = AuValidateUuid (InString); if (ACPI_FAILURE (Status)) { AslError (ASL_ERROR, ASL_MSG_INVALID_UUID, Op, Op->Asl.Value.String); } else { /* Convert UUID string to a buffer, check for a known UUID */ AcpiUtConvertStringToUuid (InString, Buffer); if (!AcpiAhMatchUuid (Buffer)) { AslError (ASL_REMARK, ASL_MSG_UUID_NOT_FOUND, Op, NULL); } } /* Change Op to a Buffer */ Op->Asl.ParseOpcode = PARSEOP_BUFFER; Op->Common.AmlOpcode = AML_BUFFER_OP; /* Disable further optimization */ Op->Asl.CompileFlags &= ~OP_COMPILE_TIME_CONST; UtSetParseOpName (Op); /* Child node is the buffer length */ NewOp = TrAllocateOp (PARSEOP_INTEGER); NewOp->Asl.AmlOpcode = AML_BYTE_OP; NewOp->Asl.Value.Integer = 16; NewOp->Asl.Parent = Op; Op->Asl.Child = NewOp; Op = NewOp; /* Peer to the child is the raw buffer data */ NewOp = TrAllocateOp (PARSEOP_RAW_DATA); NewOp->Asl.AmlOpcode = AML_RAW_DATA_BUFFER; NewOp->Asl.AmlLength = 16; NewOp->Asl.Value.String = ACPI_CAST_PTR (char, Buffer); NewOp->Asl.Parent = Op->Asl.Parent; Op->Asl.Next = NewOp; } /******************************************************************************* * * FUNCTION: OpcGenerateAmlOpcode * * PARAMETERS: Op - Parse node * * RETURN: None * * DESCRIPTION: Generate the AML opcode associated with the node and its * parse (lex/flex) keyword opcode. Essentially implements * a mapping between the parse opcodes and the actual AML opcodes. * ******************************************************************************/ void OpcGenerateAmlOpcode ( ACPI_PARSE_OBJECT *Op) { UINT16 Index; Index = (UINT16) (Op->Asl.ParseOpcode - ASL_PARSE_OPCODE_BASE); Op->Asl.AmlOpcode = AslKeywordMapping[Index].AmlOpcode; Op->Asl.AcpiBtype = AslKeywordMapping[Index].AcpiBtype; Op->Asl.CompileFlags |= AslKeywordMapping[Index].Flags; if (!Op->Asl.Value.Integer) { Op->Asl.Value.Integer = AslKeywordMapping[Index].Value; } /* Special handling for some opcodes */ switch (Op->Asl.ParseOpcode) { case PARSEOP_INTEGER: /* * Set the opcode based on the size of the integer */ (void) OpcSetOptimalIntegerSize (Op); break; case PARSEOP_OFFSET: Op->Asl.AmlOpcodeLength = 1; break; case PARSEOP_ACCESSAS: OpcDoAccessAs (Op); break; case PARSEOP_CONNECTION: OpcDoConnection (Op); break; case PARSEOP_EISAID: OpcDoEisaId (Op); break; case PARSEOP_PRINTF: OpcDoPrintf (Op); break; case PARSEOP_FPRINTF: OpcDoFprintf (Op); break; case PARSEOP_TOPLD: OpcDoPld (Op); break; case PARSEOP_TOUUID: OpcDoUuId (Op); break; case PARSEOP_UNICODE: OpcDoUnicode (Op); break; case PARSEOP_INCLUDE: AslGbl_HasIncludeFiles = TRUE; break; case PARSEOP_TIMER: if (AcpiGbl_IntegerBitWidth == 32) { AslError (ASL_REMARK, ASL_MSG_TRUNCATION, Op, NULL); } break; default: /* Nothing to do for other opcodes */ break; } return; } acpica-unix-20250404/source/compiler/aslnamesp.c0000775000175000017500000003161714773714131021011 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslnamesp - Namespace output file generation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acnamesp.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslnamesp") /* Local prototypes */ static ACPI_STATUS NsDoOneNamespaceObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); static ACPI_STATUS NsDoOnePathname ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); /******************************************************************************* * * FUNCTION: NsSetupNamespaceListing * * PARAMETERS: Handle - local file handle * * RETURN: None * * DESCRIPTION: Set the namespace output file to the input handle * ******************************************************************************/ void NsSetupNamespaceListing ( void *Handle) { AslGbl_NsOutputFlag = TRUE; AslGbl_Files[ASL_FILE_NAMESPACE_OUTPUT].Handle = Handle; } /******************************************************************************* * * FUNCTION: NsDisplayNamespace * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Walk the namespace an display information about each node * in the tree. Information is written to the optional * namespace output file. * ******************************************************************************/ ACPI_STATUS NsDisplayNamespace ( void) { ACPI_STATUS Status; if (!AslGbl_NsOutputFlag) { return (AE_OK); } AslGbl_NumNamespaceObjects = 0; /* File header */ FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, "Contents of ACPI Namespace\n\n" "Count Depth Name - Type\n\n"); /* Walk entire namespace from the root */ Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, FALSE, NsDoOneNamespaceObject, NULL, NULL, NULL); if (ACPI_FAILURE (Status)) { return (Status); } /* Print the full pathname for each namespace node in the common namespace */ FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, "\nNamespace pathnames and where declared:\n" "\n\n"); Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, FALSE, NsDoOnePathname, NULL, NULL, NULL); /* * We just dumped the entire common namespace, we don't want to do it * again for other input files. */ AslGbl_NsOutputFlag = FALSE; return (Status); } /******************************************************************************* * * FUNCTION: NsDoOneNamespaceObject * * PARAMETERS: ACPI_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Dump a namespace object to the namespace output file. * Called during the walk of the namespace to dump all objects. * ******************************************************************************/ static ACPI_STATUS NsDoOneNamespaceObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_PARSE_OBJECT *Op; AslGbl_NumNamespaceObjects++; FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, "%5u [%u] %*s %4.4s - %s", AslGbl_NumNamespaceObjects, Level, (Level * 3), " ", &Node->Name.Ascii[0], AcpiUtGetTypeName (Node->Type)); Op = Node->Op; ObjDesc = ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, Node->Object); if (!Op) { FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, "\n"); return (AE_OK); } if ((ObjDesc) && (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_OPERAND)) { switch (Node->Type) { case ACPI_TYPE_INTEGER: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Initial Value 0x%8.8X%8.8X]", ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value)); break; case ACPI_TYPE_STRING: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Initial Value \"%s\"]", ObjDesc->String.Pointer); break; default: /* Nothing to do for other types */ break; } } else { switch (Node->Type) { case ACPI_TYPE_INTEGER: if (Op->Asl.ParseOpcode == PARSEOP_NAME) { Op = Op->Asl.Child; } if ((Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_NAMESTRING)) { Op = Op->Asl.Next; } FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Initial Value 0x%8.8X%8.8X]", ACPI_FORMAT_UINT64 (Op->Asl.Value.Integer)); break; case ACPI_TYPE_STRING: if (Op->Asl.ParseOpcode == PARSEOP_NAME) { Op = Op->Asl.Child; } if ((Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_NAMESTRING)) { Op = Op->Asl.Next; } FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Initial Value \"%s\"]", Op->Asl.Value.String); break; case ACPI_TYPE_LOCAL_REGION_FIELD: if ((Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_NAMESTRING)) { Op = Op->Asl.Child; } FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Offset 0x%04X Length 0x%04X bits]", Op->Asl.Parent->Asl.ExtraValue, (UINT32) Op->Asl.Value.Integer); break; case ACPI_TYPE_BUFFER_FIELD: switch (Op->Asl.ParseOpcode) { case PARSEOP_CREATEBYTEFIELD: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [BYTE ( 8 bit)]"); break; case PARSEOP_CREATEDWORDFIELD: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [DWORD (32 bit)]"); break; case PARSEOP_CREATEQWORDFIELD: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [QWORD (64 bit)]"); break; case PARSEOP_CREATEWORDFIELD: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [WORD (16 bit)]"); break; case PARSEOP_CREATEBITFIELD: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [BIT ( 1 bit)]"); break; case PARSEOP_CREATEFIELD: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Arbitrary Bit Field]"); break; default: break; } break; case ACPI_TYPE_PACKAGE: if (Op->Asl.ParseOpcode == PARSEOP_NAME) { Op = Op->Asl.Child; } if ((Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_NAMESTRING)) { Op = Op->Asl.Next; } Op = Op->Asl.Child; if ((Op->Asl.ParseOpcode == PARSEOP_BYTECONST) || (Op->Asl.ParseOpcode == PARSEOP_RAW_DATA)) { FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Initial Length 0x%.2X elements]", (UINT32) Op->Asl.Value.Integer); } break; case ACPI_TYPE_BUFFER: if (Op->Asl.ParseOpcode == PARSEOP_NAME) { Op = Op->Asl.Child; } if ((Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_NAMESTRING)) { Op = Op->Asl.Next; } Op = Op->Asl.Child; if (Op && (Op->Asl.ParseOpcode == PARSEOP_INTEGER)) { FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Initial Length 0x%.2X bytes]", (UINT32) Op->Asl.Value.Integer); } break; case ACPI_TYPE_METHOD: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Code Length 0x%.4X bytes]", Op->Asl.AmlSubtreeLength); break; case ACPI_TYPE_LOCAL_RESOURCE: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Desc Offset 0x%.4X Bytes]", Node->Value); break; case ACPI_TYPE_LOCAL_RESOURCE_FIELD: FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, " [Field Offset 0x%.4X Bits 0x%.4X Bytes] ", Node->Value, Node->Value / 8); if (Node->Flags & ANOBJ_IS_REFERENCED) { FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, "Referenced"); } else { FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, "Name not referenced"); } break; default: /* Nothing to do for other types */ break; } } FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, "\n"); return (AE_OK); } /******************************************************************************* * * FUNCTION: NsDoOnePathname * * PARAMETERS: ACPI_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Print the full pathname and additional info for a namespace * node. * ******************************************************************************/ static ACPI_STATUS NsDoOnePathname ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; ACPI_STATUS Status; ACPI_BUFFER TargetPath; /* Ignore predefined namespace nodes and External declarations */ if (!Node->Op || (Node->Flags & ANOBJ_IS_EXTERNAL)) { return (AE_OK); } TargetPath.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (Node, &TargetPath, FALSE); if (ACPI_FAILURE (Status)) { return (Status); } /* * Print the full pathname (and other information) * for each namespace node in the common namespace */ FlPrintFile (ASL_FILE_NAMESPACE_OUTPUT, "%-41s %-12s %s, %u\n", ACPI_CAST_PTR (char, TargetPath.Pointer), AcpiUtGetTypeName (Node->Type), Node->Op->Asl.Filename, Node->Op->Asl.LogicalLineNumber); ACPI_FREE (TargetPath.Pointer); return (AE_OK); } acpica-unix-20250404/source/compiler/dtparser.l0000775000175000017500000001061614773714132020660 0ustar ivanhuivanhu%{ /****************************************************************************** * * Module Name: dtparser.l - Flex input file for table compiler lexer * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "dtparser.y.h" #define YY_NO_INPUT /* No file input, we use strings only */ #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("dtscanner") %} %option noyywrap %option nounput Number [0-9a-fA-F]+ HexNumber 0[xX][0-9a-fA-F]+ DecimalNumber 0[dD][0-9]+ LabelRef $[a-zA-Z][0-9a-zA-Z]* WhiteSpace [ \t\v\r]+ NewLine [\n] %% \( return (OP_EXP_PAREN_OPEN); \) return (OP_EXP_PAREN_CLOSE); \~ return (OP_EXP_ONES_COMPLIMENT); \! return (OP_EXP_LOGICAL_NOT); \* return (OP_EXP_MULTIPLY); \/ return (OP_EXP_DIVIDE); \% return (OP_EXP_MODULO); \+ return (OP_EXP_ADD); \- return (OP_EXP_SUBTRACT); ">>" return (OP_EXP_SHIFT_RIGHT); "<<" return (OP_EXP_SHIFT_LEFT); \< return (OP_EXP_LESS); \> return (OP_EXP_GREATER); "<=" return (OP_EXP_LESS_EQUAL); ">=" return (OP_EXP_GREATER_EQUAL); "==" return (OP_EXP_EQUAL); "!=" return (OP_EXP_NOT_EQUAL); \& return (OP_EXP_AND); \^ return (OP_EXP_XOR); \| return (OP_EXP_OR); "&&" return (OP_EXP_LOGICAL_AND); "||" return (OP_EXP_LOGICAL_OR); <> return (OP_EXP_EOF); /* null end-of-string */ {LabelRef} return (OP_EXP_LABEL); {Number} return (OP_EXP_NUMBER); {HexNumber} return (OP_EXP_HEX_NUMBER); {NewLine} return (OP_EXP_NEW_LINE); {WhiteSpace} /* Ignore */ . return (OP_EXP_EOF); %% /* * Local support functions */ static YY_BUFFER_STATE LexBuffer; /****************************************************************************** * * FUNCTION: DtInitLexer, DtTerminateLexer * * PARAMETERS: String - Input string to be parsed * * RETURN: None * * DESCRIPTION: Initialization and termination routines for lexer. Lexer needs * a buffer to handle strings instead of a file. * *****************************************************************************/ int DtInitLexer ( char *String) { LexBuffer = yy_scan_string (String); return (LexBuffer == NULL); } void DtTerminateLexer ( void) { yy_delete_buffer (LexBuffer); } acpica-unix-20250404/source/compiler/aslcodegen.c0000775000175000017500000005147314773714131021134 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslcodegen - AML code generation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #include "acconvert.h" #include "actbinfo.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslcodegen") /* Local prototypes */ static ACPI_STATUS CgAmlWriteWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static void CgWriteAmlOpcode ( ACPI_PARSE_OBJECT *Op); static void CgWriteTableHeader ( ACPI_PARSE_OBJECT *Op); static void CgWriteNode ( ACPI_PARSE_OBJECT *Op); static void CgUpdateHeader ( ACPI_PARSE_OBJECT *Op); static void CgUpdateCdatHeader ( ACPI_PARSE_OBJECT *Op); /******************************************************************************* * * FUNCTION: CgGenerateAmlOutput * * PARAMETERS: None. * * RETURN: None * * DESCRIPTION: Generate AML code. Currently generates the listing file * simultaneously. * ******************************************************************************/ void CgGenerateAmlOutput ( void) { /* Generate the AML output file */ TrWalkParseTree (AslGbl_CurrentDB, ASL_WALK_VISIT_DOWNWARD | ASL_WALK_VISIT_DB_SEPARATELY, CgAmlWriteWalk, NULL, NULL); DbgPrint (ASL_TREE_OUTPUT, ASL_PARSE_TREE_HEADER2); if (AcpiGbl_CDAT) { CgUpdateCdatHeader (AslGbl_CurrentDB); } else { CgUpdateHeader (AslGbl_CurrentDB); } } /******************************************************************************* * * FUNCTION: CgAmlWriteWalk * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Parse tree walk to generate the AML code. * ******************************************************************************/ static ACPI_STATUS CgAmlWriteWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { /* Generate the AML for this node */ CgWriteNode (Op); if (!AslGbl_DebugFlag) { return (AE_OK); } /* Print header at level 0. Alignment assumes 32-bit pointers */ if (!Level) { DbgPrint (ASL_TREE_OUTPUT, "\nFinal parse tree used for AML output:\n"); DbgPrint (ASL_TREE_OUTPUT, ASL_PARSE_TREE_HEADER2); } /* Dump ParseOp name and possible value */ switch (Op->Asl.ParseOpcode) { case PARSEOP_NAMESEG: case PARSEOP_NAMESTRING: case PARSEOP_METHODCALL: case PARSEOP_STRING_LITERAL: UtDumpStringOp (Op, Level); break; default: UtDumpBasicOp (Op, Level); break; } DbgPrint (ASL_TREE_OUTPUT, ASL_PARSE_TREE_DEBUG2, /* 1 */ (UINT32) Op->Asl.Value.Integer, /* 2 */ Op->Asl.ParseOpcode, /* 3 */ Op->Asl.AmlOpcode, /* 4 */ Op->Asl.AmlOpcodeLength, /* 5 */ Op->Asl.AmlPkgLenBytes, /* 6 */ Op->Asl.AmlLength, /* 7 */ Op->Asl.AmlSubtreeLength, /* 8 */ Op->Asl.Parent ? Op->Asl.Parent->Asl.AmlSubtreeLength : 0, /* 9 */ Op, /* 10 */ Op->Asl.Parent, /* 11 */ Op->Asl.Child, /* 12 */ Op->Asl.Next, /* 13 */ Op->Asl.CompileFlags, /* 14 */ Op->Asl.AcpiBtype, /* 15 */ Op->Asl.FinalAmlLength, /* 16 */ Op->Asl.Column, /* 17 */ Op->Asl.LineNumber, /* 18 */ Op->Asl.EndLine, /* 19 */ Op->Asl.LogicalLineNumber, /* 20 */ Op->Asl.EndLogicalLine); TrPrintOpFlags (Op->Asl.CompileFlags, ASL_TREE_OUTPUT); DbgPrint (ASL_TREE_OUTPUT, "\n"); return (AE_OK); } /******************************************************************************* * * FUNCTION: CgLocalWriteAmlData * * PARAMETERS: Op - Current parse op * Buffer - Buffer to write * Length - Size of data in buffer * * RETURN: None * * DESCRIPTION: Write a buffer of AML data to the AML output file. * ******************************************************************************/ void CgLocalWriteAmlData ( ACPI_PARSE_OBJECT *Op, void *Buffer, UINT32 Length) { /* Write the raw data to the AML file */ FlWriteFile (ASL_FILE_AML_OUTPUT, Buffer, Length); /* Update the final AML length for this node (used for listings) */ if (Op) { Op->Asl.FinalAmlLength += Length; } } /******************************************************************************* * * FUNCTION: CgWriteAmlOpcode * * PARAMETERS: Op - Parse node with an AML opcode * * RETURN: None. * * DESCRIPTION: Write the AML opcode corresponding to a parse node. * ******************************************************************************/ static void CgWriteAmlOpcode ( ACPI_PARSE_OBJECT *Op) { UINT8 PkgLenFirstByte; UINT32 i; union { UINT16 Opcode; UINT8 OpcodeBytes[2]; } Aml; union { UINT32 Len; UINT8 LenBytes[4]; } PkgLen; /* We expect some DEFAULT_ARGs, just ignore them */ if (Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { return; } /* * Before printing the bytecode, generate comment byte codes * associated with this node. */ if (AcpiGbl_CaptureComments) { CgWriteAmlComment(Op); } switch (Op->Asl.AmlOpcode) { case AML_UNASSIGNED_OPCODE: /* These opcodes should not get here */ printf ("Found a node with an unassigned AML opcode\n"); FlPrintFile (ASL_FILE_STDERR, "Found a node with an unassigned AML opcode\n"); return; case AML_INT_RESERVEDFIELD_OP: /* Special opcodes for within a field definition */ Aml.Opcode = AML_FIELD_OFFSET_OP; break; case AML_INT_ACCESSFIELD_OP: Aml.Opcode = AML_FIELD_ACCESS_OP; break; case AML_INT_CONNECTION_OP: Aml.Opcode = AML_FIELD_CONNECTION_OP; break; default: Aml.Opcode = Op->Asl.AmlOpcode; break; } switch (Aml.Opcode) { case AML_PACKAGE_LENGTH: /* Value is the length to be encoded (Used in field definitions) */ PkgLen.Len = (UINT32) Op->Asl.Value.Integer; break; default: /* Check for two-byte opcode */ if (Aml.Opcode > 0x00FF) { /* Write the high byte first */ CgLocalWriteAmlData (Op, &Aml.OpcodeBytes[1], 1); } CgLocalWriteAmlData (Op, &Aml.OpcodeBytes[0], 1); /* Subtreelength doesn't include length of package length bytes */ PkgLen.Len = Op->Asl.AmlSubtreeLength + Op->Asl.AmlPkgLenBytes; break; } /* Does this opcode have an associated "PackageLength" field? */ if (Op->Asl.CompileFlags & OP_AML_PACKAGE) { if (Op->Asl.AmlPkgLenBytes == 1) { /* Simplest case -- no bytes to follow, just write the count */ CgLocalWriteAmlData (Op, &PkgLen.LenBytes[0], 1); } else if (Op->Asl.AmlPkgLenBytes != 0) { /* * Encode the "bytes to follow" in the first byte, top two bits. * The low-order nybble of the length is in the bottom 4 bits */ PkgLenFirstByte = (UINT8) (((UINT32) (Op->Asl.AmlPkgLenBytes - 1) << 6) | (PkgLen.LenBytes[0] & 0x0F)); CgLocalWriteAmlData (Op, &PkgLenFirstByte, 1); /* * Shift the length over by the 4 bits we just stuffed * in the first byte */ PkgLen.Len >>= 4; /* * Now we can write the remaining bytes - * either 1, 2, or 3 bytes */ for (i = 0; i < (UINT32) (Op->Asl.AmlPkgLenBytes - 1); i++) { CgLocalWriteAmlData (Op, &PkgLen.LenBytes[i], 1); } } } switch (Aml.Opcode) { case AML_BYTE_OP: CgLocalWriteAmlData (Op, &Op->Asl.Value.Integer, 1); break; case AML_WORD_OP: CgLocalWriteAmlData (Op, &Op->Asl.Value.Integer, 2); break; case AML_DWORD_OP: CgLocalWriteAmlData (Op, &Op->Asl.Value.Integer, 4); break; case AML_QWORD_OP: CgLocalWriteAmlData (Op, &Op->Asl.Value.Integer, 8); break; case AML_STRING_OP: CgLocalWriteAmlData (Op, Op->Asl.Value.String, Op->Asl.AmlLength); break; default: /* All data opcodes must appear above */ break; } } /******************************************************************************* * * FUNCTION: CgWriteTableHeader * * PARAMETERS: Op - The DEFINITIONBLOCK node * * RETURN: None * * DESCRIPTION: Write a table header corresponding to the DEFINITIONBLOCK * * NOTE: Input strings should be validated before this function is invoked. * ******************************************************************************/ static void CgWriteTableHeader ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Child; UINT32 CommentLength; ACPI_COMMENT_NODE *Current; memset (&AslGbl_TableHeader, 0, sizeof (ACPI_TABLE_HEADER)); /* AML filename */ Child = Op->Asl.Child; /* Signature */ Child = Child->Asl.Next; /* * For ASL-/ASL+ converter: replace the table signature with * "XXXX" and save the original table signature. This results in an AML * file with the signature "XXXX". The converter should remove this AML * file. In the event where this AML file does not get deleted, the * "XXXX" table signature prevents this AML file from running on the AML * interpreter. */ if (AcpiGbl_CaptureComments) { ACPI_COPY_NAMESEG (AcpiGbl_TableSig, Child->Asl.Value.String); Child->Asl.Value.String = ACPI_SIG_XXXX; } ACPI_COPY_NAMESEG (AslGbl_TableHeader.Signature, Child->Asl.Value.String); /* Revision */ Child = Child->Asl.Next; AslGbl_TableHeader.Revision = (UINT8) Child->Asl.Value.Integer; /* Command-line Revision override */ if (AslGbl_RevisionOverride) { AslGbl_TableHeader.Revision = AslGbl_RevisionOverride; } /* OEMID */ Child = Child->Asl.Next; memcpy (AslGbl_TableHeader.OemId, Child->Asl.Value.String, strlen (Child->Asl.Value.String)); /* OEM TableID */ Child = Child->Asl.Next; memcpy (AslGbl_TableHeader.OemTableId, Child->Asl.Value.String, strlen (Child->Asl.Value.String)); /* OEM Revision */ Child = Child->Asl.Next; AslGbl_TableHeader.OemRevision = (UINT32) Child->Asl.Value.Integer; /* Compiler ID */ ACPI_COPY_NAMESEG (AslGbl_TableHeader.AslCompilerId, ASL_CREATOR_ID); /* Compiler version */ AslGbl_TableHeader.AslCompilerRevision = ACPI_CA_VERSION; /* Table length. Checksum zero for now, will rewrite later */ AslGbl_TableHeader.Length = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength; /* Calculate the comment lengths for this definition block parseOp */ if (AcpiGbl_CaptureComments) { CvDbgPrint ("Calculating comment lengths for %s in write header\n", Op->Asl.ParseOpName); /* * Take the filename without extensions, add 3 for the new extension * and another 3 for the a908 bytecode and null terminator. */ AslGbl_TableHeader.Length += strrchr (AslGbl_ParseTreeRoot->Asl.Filename, '.') - AslGbl_ParseTreeRoot->Asl.Filename + 1 + 3 + 3; Op->Asl.AmlSubtreeLength += strlen (AslGbl_ParseTreeRoot->Asl.Filename) + 3; CvDbgPrint (" Length: %u\n", (UINT32) strlen (AslGbl_ParseTreeRoot->Asl.Filename) + 3); if (Op->Asl.CommentList) { Current = Op->Asl.CommentList; while (Current) { CommentLength = strlen (Current->Comment)+3; CvDbgPrint ("Length of standard comment): %d\n", CommentLength); CvDbgPrint (" Comment string: %s\n\n", Current->Comment); AslGbl_TableHeader.Length += CommentLength; Op->Asl.AmlSubtreeLength += CommentLength; Current = Current->Next; CvDbgPrint (" Length: %u\n", CommentLength); } } if (Op->Asl.CloseBraceComment) { CommentLength = strlen (Op->Asl.CloseBraceComment)+3; CvDbgPrint ("Length of inline comment +3: %d\n", CommentLength); CvDbgPrint (" Comment string: %s\n\n", Op->Asl.CloseBraceComment); AslGbl_TableHeader.Length += CommentLength; Op->Asl.AmlSubtreeLength += CommentLength; CvDbgPrint (" Length: %u\n", CommentLength); } } AslGbl_TableHeader.Checksum = 0; Op->Asl.FinalAmlOffset = ftell (AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle); /* Write entire header and clear the table header global */ CgLocalWriteAmlData (Op, &AslGbl_TableHeader, sizeof (ACPI_TABLE_HEADER)); memset (&AslGbl_TableHeader, 0, sizeof (ACPI_TABLE_HEADER)); } /******************************************************************************* * * FUNCTION: CgUpdateCdatHeader * * PARAMETERS: Op - Op for the Definition Block * * RETURN: None. * * DESCRIPTION: Complete the ACPI table by calculating the checksum and * re-writing the header for the input definition block * ******************************************************************************/ static void CgUpdateCdatHeader ( ACPI_PARSE_OBJECT *Op) { signed char Sum; UINT32 i; UINT32 Length; UINT8 FileByte; UINT8 Checksum; /* Calculate the checksum over the entire definition block */ Sum = 0; Length = sizeof (ACPI_TABLE_CDAT) + Op->Asl.AmlSubtreeLength; FlSeekFile (ASL_FILE_AML_OUTPUT, Op->Asl.FinalAmlOffset); for (i = 0; i < Length; i++) { if (FlReadFile (ASL_FILE_AML_OUTPUT, &FileByte, 1) != AE_OK) { AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, NULL, "Table length is greater than size of the input file"); return; } Sum = (signed char) (Sum + FileByte); } Checksum = (UINT8) (0 - Sum); DbgPrint (ASL_DEBUG_OUTPUT, "Computed checksum = %X\n", Checksum); /* Re-write the checksum byte */ FlSeekFile (ASL_FILE_AML_OUTPUT, Op->Asl.FinalAmlOffset + ACPI_CDAT_OFFSET (Checksum)); FlWriteFile (ASL_FILE_AML_OUTPUT, &Checksum, 1); /* * Seek to the end of the file. This is done to support multiple file * compilation. Doing this simplifies other parts of the codebase because * it eliminates the need to seek for a different starting place. */ FlSeekFile (ASL_FILE_AML_OUTPUT, Op->Asl.FinalAmlOffset + Length); } /******************************************************************************* * * FUNCTION: CgUpdateHeader * * PARAMETERS: Op - Op for the Definition Block * * RETURN: None. * * DESCRIPTION: Complete the ACPI table by calculating the checksum and * re-writing the header for the input definition block * ******************************************************************************/ static void CgUpdateHeader ( ACPI_PARSE_OBJECT *Op) { signed char Sum; UINT32 i; UINT32 Length; UINT8 FileByte; UINT8 Checksum; /* Calculate the checksum over the entire definition block */ Sum = 0; Length = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength; FlSeekFile (ASL_FILE_AML_OUTPUT, Op->Asl.FinalAmlOffset); for (i = 0; i < Length; i++) { if (FlReadFile (ASL_FILE_AML_OUTPUT, &FileByte, 1) != AE_OK) { AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, NULL, "Table length is greater than size of the input file"); return; } Sum = (signed char) (Sum + FileByte); } Checksum = (UINT8) (0 - Sum); /* Re-write the checksum byte */ FlSeekFile (ASL_FILE_AML_OUTPUT, Op->Asl.FinalAmlOffset + ACPI_OFFSET (ACPI_TABLE_HEADER, Checksum)); FlWriteFile (ASL_FILE_AML_OUTPUT, &Checksum, 1); /* * Seek to the end of the file. This is done to support multiple file * compilation. Doing this simplifies other parts of the codebase because * it eliminates the need to seek for a different starting place. */ FlSeekFile (ASL_FILE_AML_OUTPUT, Op->Asl.FinalAmlOffset + Length); } /******************************************************************************* * * FUNCTION: CgWriteNode * * PARAMETERS: Op - Parse node to write. * * RETURN: None. * * DESCRIPTION: Write the AML that corresponds to a parse node. * ******************************************************************************/ static void CgWriteNode ( ACPI_PARSE_OBJECT *Op) { ASL_RESOURCE_NODE *Rnode; /* Write all comments here. */ if (AcpiGbl_CaptureComments) { CgWriteAmlComment(Op); } /* Always check for DEFAULT_ARG and other "Noop" nodes */ /* TBD: this may not be the best place for this check */ if ((Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) || (Op->Asl.ParseOpcode == PARSEOP_INCLUDE) || (Op->Asl.ParseOpcode == PARSEOP_INCLUDE_END)) { return; } Op->Asl.FinalAmlLength = 0; switch (Op->Asl.AmlOpcode) { case AML_RAW_DATA_BYTE: case AML_RAW_DATA_WORD: case AML_RAW_DATA_DWORD: case AML_RAW_DATA_QWORD: CgLocalWriteAmlData (Op, &Op->Asl.Value.Integer, Op->Asl.AmlLength); return; case AML_RAW_DATA_BUFFER: CgLocalWriteAmlData (Op, Op->Asl.Value.Buffer, Op->Asl.AmlLength); return; case AML_RAW_DATA_CHAIN: Rnode = ACPI_CAST_PTR (ASL_RESOURCE_NODE, Op->Asl.Value.Buffer); while (Rnode) { CgLocalWriteAmlData (Op, Rnode->Buffer, Rnode->BufferLength); Rnode = Rnode->Next; } return; default: /* Internal data opcodes must all appear above */ break; } switch (Op->Asl.ParseOpcode) { case PARSEOP_DEFAULT_ARG: break; case PARSEOP_DEFINITION_BLOCK: CgWriteTableHeader (Op); if (AcpiGbl_CaptureComments) { CgWriteAmlDefBlockComment (Op); } break; case PARSEOP_NAMESEG: case PARSEOP_NAMESTRING: case PARSEOP_METHODCALL: CgLocalWriteAmlData (Op, Op->Asl.Value.String, Op->Asl.AmlLength); break; default: CgWriteAmlOpcode (Op); break; } } acpica-unix-20250404/source/compiler/aslresource.c0000775000175000017500000010040514773714131021345 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslresource - Resource template/descriptor utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslresource") /******************************************************************************* * * FUNCTION: RsSmallAddressCheck * * PARAMETERS: Minimum - Address Min value * Maximum - Address Max value * Length - Address range value * Alignment - Address alignment value * MinOp - Original Op for Address Min * MaxOp - Original Op for Address Max * LengthOp - Original Op for address range * AlignOp - Original Op for address alignment. If * NULL, means "zero value for alignment is * OK, and means 64K alignment" (for * Memory24 descriptor) * Op - Parent Op for entire construct * * RETURN: None. Adds error messages to error log if necessary * * DESCRIPTION: Perform common value checks for "small" address descriptors. * Currently: * Io, Memory24, Memory32 * ******************************************************************************/ void RsSmallAddressCheck ( UINT8 Type, UINT32 Minimum, UINT32 Maximum, UINT32 Length, UINT32 Alignment, ACPI_PARSE_OBJECT *MinOp, ACPI_PARSE_OBJECT *MaxOp, ACPI_PARSE_OBJECT *LengthOp, ACPI_PARSE_OBJECT *AlignOp, ACPI_PARSE_OBJECT *Op) { if (AslGbl_NoResourceChecking) { return; } /* * Check for a so-called "null descriptor". These are descriptors that are * created with most fields set to zero. The intent is that the descriptor * will be updated/completed at runtime via a BufferField. * * If the descriptor does NOT have a resource tag, it cannot be referenced * by a BufferField and we will flag this as an error. Conversely, if * the descriptor has a resource tag, we will assume that a BufferField * will be used to dynamically update it, so no error. * * A possible enhancement to this check would be to verify that in fact * a BufferField is created using the resource tag, and perhaps even * verify that a Store is performed to the BufferField. * * Note: for these descriptors, Alignment is allowed to be zero */ if (!Minimum && !Maximum && !Length) { if (!Op->Asl.ExternalName) { /* No resource tag. Descriptor is fixed and is also illegal */ AslError (ASL_ERROR, ASL_MSG_NULL_DESCRIPTOR, Op, NULL); } return; } /* * Range checks for Memory24 and Memory32. * IO descriptor has different definition of min/max, don't check. */ if (Type != ACPI_RESOURCE_NAME_IO) { /* Basic checks on Min/Max/Length */ if (Minimum > Maximum) { AslError (ASL_ERROR, ASL_MSG_INVALID_MIN_MAX, MinOp, NULL); } else if (Length > (Maximum - Minimum + 1)) { AslError (ASL_ERROR, ASL_MSG_INVALID_LENGTH, LengthOp, NULL); } /* Special case for Memory24, min/max values are compressed */ if (Type == ACPI_RESOURCE_NAME_MEMORY24) { if (!Alignment) /* Alignment==0 means 64K alignment */ { Alignment = ACPI_UINT16_MAX + 1; } Minimum <<= 8; Maximum <<= 8; } } /* Alignment of zero is not in ACPI spec, but is used to mean byte acc */ if (!Alignment) { Alignment = 1; } /* Addresses must be an exact multiple of the alignment value */ if (Minimum % Alignment) { AslError (ASL_ERROR, ASL_MSG_ALIGNMENT, MinOp, NULL); } if (Maximum % Alignment) { AslError (ASL_ERROR, ASL_MSG_ALIGNMENT, MaxOp, NULL); } } /******************************************************************************* * * FUNCTION: RsLargeAddressCheck * * PARAMETERS: Minimum - Address Min value * Maximum - Address Max value * Length - Address range value * Granularity - Address granularity value * Flags - General flags for address descriptors: * _MIF, _MAF, _DEC * MinOp - Original Op for Address Min * MaxOp - Original Op for Address Max * LengthOp - Original Op for address range * GranOp - Original Op for address granularity * Op - Parent Op for entire construct * * RETURN: None. Adds error messages to error log if necessary * * DESCRIPTION: Perform common value checks for "large" address descriptors. * Currently: * WordIo, WordBusNumber, WordSpace * DWordIo, DWordMemory, DWordSpace * QWordIo, QWordMemory, QWordSpace * ExtendedIo, ExtendedMemory, ExtendedSpace * * _MIF flag set means that the minimum address is fixed and is not relocatable * _MAF flag set means that the maximum address is fixed and is not relocatable * Length of zero means that the record size is variable * * This function implements the LEN/MIF/MAF/MIN/MAX/GRA rules within Table 6-40 * of the ACPI 4.0a specification. Added 04/2010. * ******************************************************************************/ void RsLargeAddressCheck ( UINT64 Minimum, UINT64 Maximum, UINT64 Length, UINT64 Granularity, UINT8 Flags, ACPI_PARSE_OBJECT *MinOp, ACPI_PARSE_OBJECT *MaxOp, ACPI_PARSE_OBJECT *LengthOp, ACPI_PARSE_OBJECT *GranOp, ACPI_PARSE_OBJECT *Op) { if (AslGbl_NoResourceChecking) { return; } /* * Check for a so-called "null descriptor". These are descriptors that are * created with most fields set to zero. The intent is that the descriptor * will be updated/completed at runtime via a BufferField. * * If the descriptor does NOT have a resource tag, it cannot be referenced * by a BufferField and we will flag this as an error. Conversely, if * the descriptor has a resource tag, we will assume that a BufferField * will be used to dynamically update it, so no error. * * A possible enhancement to this check would be to verify that in fact * a BufferField is created using the resource tag, and perhaps even * verify that a Store is performed to the BufferField. */ if (!Minimum && !Maximum && !Length && !Granularity) { if (!Op->Asl.ExternalName) { /* No resource tag. Descriptor is fixed and is also illegal */ AslError (ASL_ERROR, ASL_MSG_NULL_DESCRIPTOR, Op, NULL); } return; } /* Basic checks on Min/Max/Length */ if (Minimum > Maximum) { AslError (ASL_ERROR, ASL_MSG_INVALID_MIN_MAX, MinOp, NULL); return; } else if (Length > (Maximum - Minimum + 1)) { AslError (ASL_ERROR, ASL_MSG_INVALID_LENGTH, LengthOp, NULL); return; } /* If specified (non-zero), ensure granularity is a power-of-two minus one */ if (Granularity) { if ((Granularity + 1) & Granularity) { AslError (ASL_ERROR, ASL_MSG_INVALID_GRANULARITY, GranOp, NULL); return; } } /* * Check the various combinations of Length, MinFixed, and MaxFixed */ if (Length) { /* Fixed non-zero length */ switch (Flags & (ACPI_RESOURCE_FLAG_MIF | ACPI_RESOURCE_FLAG_MAF)) { case 0: /* * Fixed length, variable locations (both _MIN and _MAX). * Length must be a multiple of granularity */ if (Granularity & Length) { AslError (ASL_ERROR, ASL_MSG_ALIGNMENT, LengthOp, NULL); } break; case (ACPI_RESOURCE_FLAG_MIF | ACPI_RESOURCE_FLAG_MAF): /* Fixed length, fixed location. Granularity must be zero */ if (Granularity != 0) { AslError (ASL_ERROR, ASL_MSG_INVALID_GRAN_FIXED, GranOp, NULL); } /* Length must be exactly the size of the min/max window */ if (Length != (Maximum - Minimum + 1)) { AslError (ASL_ERROR, ASL_MSG_INVALID_LENGTH_FIXED, LengthOp, NULL); } break; /* All other combinations are invalid */ case ACPI_RESOURCE_FLAG_MIF: case ACPI_RESOURCE_FLAG_MAF: default: AslError (ASL_ERROR, ASL_MSG_INVALID_ADDR_FLAGS, LengthOp, NULL); } } else { /* Variable length (length==0) */ switch (Flags & (ACPI_RESOURCE_FLAG_MIF | ACPI_RESOURCE_FLAG_MAF)) { case 0: /* * Both _MIN and _MAX are variable. * No additional requirements, just exit */ break; case ACPI_RESOURCE_FLAG_MIF: /* _MIN is fixed. _MIN must be multiple of _GRA */ /* * The granularity is defined by the ACPI specification to be a * power-of-two minus one, therefore the granularity is a * bitmask which can be used to easily validate the addresses. */ if (Granularity & Minimum) { AslError (ASL_ERROR, ASL_MSG_ALIGNMENT, MinOp, NULL); } break; case ACPI_RESOURCE_FLAG_MAF: /* _MAX is fixed. (_MAX + 1) must be multiple of _GRA */ if (Granularity & (Maximum + 1)) { AslError (ASL_ERROR, ASL_MSG_ALIGNMENT, MaxOp, "-1"); } break; /* Both MIF/MAF set is invalid if length is zero */ case (ACPI_RESOURCE_FLAG_MIF | ACPI_RESOURCE_FLAG_MAF): default: AslError (ASL_ERROR, ASL_MSG_INVALID_ADDR_FLAGS, LengthOp, NULL); } } } /******************************************************************************* * * FUNCTION: RsGetStringDataLength * * PARAMETERS: InitializerOp - Start of a subtree of init nodes * * RETURN: Valid string length if a string node is found (otherwise 0) * * DESCRIPTION: In a list of peer nodes, find the first one that contains a * string and return the length of the string. * ******************************************************************************/ UINT16 RsGetStringDataLength ( ACPI_PARSE_OBJECT *InitializerOp) { while (InitializerOp) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_STRING_LITERAL) { return ((UINT16) (strlen (InitializerOp->Asl.Value.String) + 1)); } InitializerOp = ASL_GET_PEER_NODE (InitializerOp); } return (0); } /******************************************************************************* * * FUNCTION: RsAllocateResourceNode * * PARAMETERS: Size - Size of node in bytes * * RETURN: The allocated node - aborts on allocation failure * * DESCRIPTION: Allocate a resource description node and the resource * descriptor itself (the nodes are used to link descriptors). * ******************************************************************************/ ASL_RESOURCE_NODE * RsAllocateResourceNode ( UINT32 Size) { ASL_RESOURCE_NODE *Rnode; /* Allocate the node */ Rnode = UtLocalCalloc (sizeof (ASL_RESOURCE_NODE)); /* Allocate the resource descriptor itself */ Rnode->Buffer = UtLocalCalloc (Size); Rnode->BufferLength = Size; return (Rnode); } /******************************************************************************* * * FUNCTION: RsCreateResourceField * * PARAMETERS: Op - Resource field node * Name - Name of the field (Used only to reference * the field in the ASL, not in the AML) * ByteOffset - Offset from the field start * BitOffset - Additional bit offset * BitLength - Number of bits in the field * * RETURN: None, sets fields within the input node * * DESCRIPTION: Utility function to generate a named bit field within a * resource descriptor. Mark a node as 1) a field in a resource * descriptor, and 2) set the value to be a BIT offset * ******************************************************************************/ void RsCreateResourceField ( ACPI_PARSE_OBJECT *Op, char *Name, UINT32 ByteOffset, UINT32 BitOffset, UINT32 BitLength) { Op->Asl.ExternalName = Name; Op->Asl.CompileFlags |= OP_IS_RESOURCE_FIELD; Op->Asl.Value.Tag.BitOffset = (ByteOffset * 8) + BitOffset; Op->Asl.Value.Tag.BitLength = BitLength; } /******************************************************************************* * * FUNCTION: RsSetFlagBits * * PARAMETERS: *Flags - Pointer to the flag byte * Op - Flag initialization node * Position - Bit position within the flag byte * Default - Used if the node is DEFAULT. * * RETURN: Sets bits within the *Flags output byte. * * DESCRIPTION: Set a bit in a cumulative flags word from an initialization * node. Will use a default value if the node is DEFAULT, meaning * that no value was specified in the ASL. Used to merge multiple * keywords into a single flags byte. * ******************************************************************************/ void RsSetFlagBits ( UINT8 *Flags, ACPI_PARSE_OBJECT *Op, UINT8 Position, UINT8 DefaultBit) { if (Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { /* Use the default bit */ *Flags |= (DefaultBit << Position); } else { /* Use the bit specified in the initialization node */ *Flags |= (((UINT8) Op->Asl.Value.Integer) << Position); } } void RsSetFlagBits16 ( UINT16 *Flags, ACPI_PARSE_OBJECT *Op, UINT8 Position, UINT8 DefaultBit) { if (Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { /* Use the default bit */ *Flags |= (DefaultBit << Position); } else { /* Use the bit specified in the initialization node */ *Flags |= (((UINT16) Op->Asl.Value.Integer) << Position); } } /******************************************************************************* * * FUNCTION: RsCompleteNodeAndGetNext * * PARAMETERS: Op - Resource node to be completed * * RETURN: The next peer to the input node. * * DESCRIPTION: Mark the current node completed and return the next peer. * The node ParseOpcode is set to DEFAULT_ARG, meaning that * this node is to be ignored from now on. * ******************************************************************************/ ACPI_PARSE_OBJECT * RsCompleteNodeAndGetNext ( ACPI_PARSE_OBJECT *Op) { /* Mark this node unused */ Op->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; /* Move on to the next peer node in the initializer list */ return (ASL_GET_PEER_NODE (Op)); } /******************************************************************************* * * FUNCTION: RsCheckListForDuplicates * * PARAMETERS: Op - First op in the initializer list * * RETURN: None * * DESCRIPTION: Check an initializer list for duplicate values. Emits an error * if any duplicates are found. * ******************************************************************************/ void RsCheckListForDuplicates ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *NextValueOp = Op; ACPI_PARSE_OBJECT *NextOp; UINT32 Value; if (!Op) { return; } /* Search list once for each value in the list */ while (NextValueOp) { Value = (UINT32) NextValueOp->Asl.Value.Integer; /* Compare this value to all remaining values in the list */ NextOp = ASL_GET_PEER_NODE (NextValueOp); while (NextOp) { if (NextOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* Compare values */ if (Value == (UINT32) NextOp->Asl.Value.Integer) { /* Emit error only once per duplicate node */ if (!(NextOp->Asl.CompileFlags & OP_IS_DUPLICATE)) { NextOp->Asl.CompileFlags |= OP_IS_DUPLICATE; AslError (ASL_ERROR, ASL_MSG_DUPLICATE_ITEM, NextOp, NULL); } } } NextOp = ASL_GET_PEER_NODE (NextOp); } NextValueOp = ASL_GET_PEER_NODE (NextValueOp); } } /******************************************************************************* * * FUNCTION: RsDoOneResourceDescriptor * * PARAMETERS: DescriptorTypeOp - Parent parse node of the descriptor * CurrentByteOffset - Offset in the resource descriptor * buffer. * * RETURN: A valid resource node for the descriptor * * DESCRIPTION: Dispatches the processing of one resource descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoOneResourceDescriptor ( ASL_RESOURCE_INFO *Info, UINT8 *State) { ASL_RESOURCE_NODE *Rnode = NULL; /* Construct the resource */ switch (Info->DescriptorTypeOp->Asl.ParseOpcode) { case PARSEOP_CLOCKINPUT: Rnode = RsDoClockInputDescriptor(Info); break; case PARSEOP_DMA: Rnode = RsDoDmaDescriptor (Info); break; case PARSEOP_FIXEDDMA: Rnode = RsDoFixedDmaDescriptor (Info); break; case PARSEOP_DWORDIO: Rnode = RsDoDwordIoDescriptor (Info); break; case PARSEOP_DWORDMEMORY: Rnode = RsDoDwordMemoryDescriptor (Info); break; case PARSEOP_DWORDPCC: Rnode = RsDoDwordPccDescriptor (Info); break; case PARSEOP_DWORDSPACE: Rnode = RsDoDwordSpaceDescriptor (Info); break; case PARSEOP_ENDDEPENDENTFN: switch (*State) { case ACPI_RSTATE_NORMAL: AslError (ASL_ERROR, ASL_MSG_MISSING_STARTDEPENDENT, Info->DescriptorTypeOp, NULL); break; case ACPI_RSTATE_START_DEPENDENT: AslError (ASL_ERROR, ASL_MSG_DEPENDENT_NESTING, Info->DescriptorTypeOp, NULL); break; case ACPI_RSTATE_DEPENDENT_LIST: default: break; } *State = ACPI_RSTATE_NORMAL; Rnode = RsDoEndDependentDescriptor (Info); break; case PARSEOP_ENDTAG: Rnode = RsDoEndTagDescriptor (Info); break; case PARSEOP_EXTENDEDIO: Rnode = RsDoExtendedIoDescriptor (Info); break; case PARSEOP_EXTENDEDMEMORY: Rnode = RsDoExtendedMemoryDescriptor (Info); break; case PARSEOP_EXTENDEDSPACE: Rnode = RsDoExtendedSpaceDescriptor (Info); break; case PARSEOP_FIXEDIO: Rnode = RsDoFixedIoDescriptor (Info); break; case PARSEOP_INTERRUPT: Rnode = RsDoInterruptDescriptor (Info); break; case PARSEOP_IO: Rnode = RsDoIoDescriptor (Info); break; case PARSEOP_IRQ: Rnode = RsDoIrqDescriptor (Info); break; case PARSEOP_IRQNOFLAGS: Rnode = RsDoIrqNoFlagsDescriptor (Info); break; case PARSEOP_MEMORY24: Rnode = RsDoMemory24Descriptor (Info); break; case PARSEOP_MEMORY32: Rnode = RsDoMemory32Descriptor (Info); break; case PARSEOP_MEMORY32FIXED: Rnode = RsDoMemory32FixedDescriptor (Info); break; case PARSEOP_QWORDIO: Rnode = RsDoQwordIoDescriptor (Info); break; case PARSEOP_QWORDMEMORY: Rnode = RsDoQwordMemoryDescriptor (Info); break; case PARSEOP_QWORDPCC: Rnode = RsDoQwordPccDescriptor (Info); break; case PARSEOP_QWORDSPACE: Rnode = RsDoQwordSpaceDescriptor (Info); break; case PARSEOP_REGISTER: Rnode = RsDoGeneralRegisterDescriptor (Info); break; case PARSEOP_STARTDEPENDENTFN: switch (*State) { case ACPI_RSTATE_START_DEPENDENT: AslError (ASL_ERROR, ASL_MSG_DEPENDENT_NESTING, Info->DescriptorTypeOp, NULL); break; case ACPI_RSTATE_NORMAL: case ACPI_RSTATE_DEPENDENT_LIST: default: break; } *State = ACPI_RSTATE_START_DEPENDENT; Rnode = RsDoStartDependentDescriptor (Info); *State = ACPI_RSTATE_DEPENDENT_LIST; break; case PARSEOP_STARTDEPENDENTFN_NOPRI: switch (*State) { case ACPI_RSTATE_START_DEPENDENT: AslError (ASL_ERROR, ASL_MSG_DEPENDENT_NESTING, Info->DescriptorTypeOp, NULL); break; case ACPI_RSTATE_NORMAL: case ACPI_RSTATE_DEPENDENT_LIST: default: break; } *State = ACPI_RSTATE_START_DEPENDENT; Rnode = RsDoStartDependentNoPriDescriptor (Info); *State = ACPI_RSTATE_DEPENDENT_LIST; break; case PARSEOP_VENDORLONG: Rnode = RsDoVendorLargeDescriptor (Info); break; case PARSEOP_VENDORSHORT: Rnode = RsDoVendorSmallDescriptor (Info); break; case PARSEOP_WORDBUSNUMBER: Rnode = RsDoWordBusNumberDescriptor (Info); break; case PARSEOP_WORDIO: Rnode = RsDoWordIoDescriptor (Info); break; case PARSEOP_WORDPCC: Rnode = RsDoWordPccDescriptor (Info); break; case PARSEOP_WORDSPACE: Rnode = RsDoWordSpaceDescriptor (Info); break; case PARSEOP_GPIO_INT: Rnode = RsDoGpioIntDescriptor (Info); break; case PARSEOP_GPIO_IO: Rnode = RsDoGpioIoDescriptor (Info); break; case PARSEOP_I2C_SERIALBUS: case PARSEOP_I2C_SERIALBUS_V2: Rnode = RsDoI2cSerialBusDescriptor (Info); break; case PARSEOP_SPI_SERIALBUS: case PARSEOP_SPI_SERIALBUS_V2: Rnode = RsDoSpiSerialBusDescriptor (Info); break; case PARSEOP_UART_SERIALBUS: case PARSEOP_UART_SERIALBUS_V2: Rnode = RsDoUartSerialBusDescriptor (Info); break; case PARSEOP_CSI2_SERIALBUS: Rnode = RsDoCsi2SerialBusDescriptor (Info); break; case PARSEOP_PINCONFIG: Rnode = RsDoPinConfigDescriptor (Info); break; case PARSEOP_PINFUNCTION: Rnode = RsDoPinFunctionDescriptor (Info); break; case PARSEOP_PINGROUP: Rnode = RsDoPinGroupDescriptor (Info); break; case PARSEOP_PINGROUPFUNCTION: Rnode = RsDoPinGroupFunctionDescriptor (Info); break; case PARSEOP_PINGROUPCONFIG: Rnode = RsDoPinGroupConfigDescriptor (Info); break; case PARSEOP_DEFAULT_ARG: /* Just ignore any of these, they are used as fillers/placeholders */ break; default: printf ("Unknown resource descriptor type [%s]\n", Info->DescriptorTypeOp->Asl.ParseOpName); break; } /* * Mark original node as unused, but head of a resource descriptor. * This allows the resource to be installed in the namespace so that * references to the descriptor can be resolved. */ Info->DescriptorTypeOp->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; Info->DescriptorTypeOp->Asl.CompileFlags = OP_IS_RESOURCE_DESC; Info->DescriptorTypeOp->Asl.Value.Integer = Info->CurrentByteOffset; if (Rnode) { Info->DescriptorTypeOp->Asl.FinalAmlLength = Rnode->BufferLength; Info->DescriptorTypeOp->Asl.Extra = ((AML_RESOURCE *) Rnode->Buffer)->DescriptorType; } return (Rnode); } /******************************************************************************* * * FUNCTION: RsLinkDescriptorChain * * PARAMETERS: PreviousRnode - Pointer to the node that will be previous * to the linked node, At exit, set to the * last node in the new chain. * Rnode - Resource node to link into the list * * RETURN: Cumulative buffer byte offset of the new segment of chain * * DESCRIPTION: Link a descriptor chain at the end of an existing chain. * ******************************************************************************/ UINT32 RsLinkDescriptorChain ( ASL_RESOURCE_NODE **PreviousRnode, ASL_RESOURCE_NODE *Rnode) { ASL_RESOURCE_NODE *LastRnode; UINT32 CurrentByteOffset; /* Anything to do? */ if (!Rnode) { return (0); } /* Point the previous node to the new node */ (*PreviousRnode)->Next = Rnode; CurrentByteOffset = Rnode->BufferLength; /* Walk to the end of the chain headed by Rnode */ LastRnode = Rnode; while (LastRnode->Next) { LastRnode = LastRnode->Next; CurrentByteOffset += LastRnode->BufferLength; } /* Previous node becomes the last node in the chain */ *PreviousRnode = LastRnode; return (CurrentByteOffset); } /******************************************************************************* * * FUNCTION: RsDoResourceTemplate * * PARAMETERS: Op - Parent of a resource template list * * RETURN: None. Sets input node to point to a list of AML code * * DESCRIPTION: Merge a list of resource descriptors into a single AML buffer, * in preparation for output to the AML output file. * ******************************************************************************/ void RsDoResourceTemplate ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *BufferLengthOp; ACPI_PARSE_OBJECT *BufferOp; ACPI_PARSE_OBJECT *DescriptorTypeOp; ACPI_PARSE_OBJECT *LastOp = NULL; UINT32 CurrentByteOffset = 0; ASL_RESOURCE_NODE HeadRnode; ASL_RESOURCE_NODE *PreviousRnode; ASL_RESOURCE_NODE *Rnode; ASL_RESOURCE_INFO Info; UINT8 State; /* Mark parent as containing a resource template */ if (Op->Asl.Parent) { Op->Asl.Parent->Asl.CompileFlags |= OP_IS_RESOURCE_DESC; } /* ResourceTemplate Opcode is first (Op) */ /* Buffer Length node is first child */ BufferLengthOp = ASL_GET_CHILD_NODE (Op); /* Buffer Op is first peer */ BufferOp = ASL_GET_PEER_NODE (BufferLengthOp); /* First Descriptor type is next */ DescriptorTypeOp = ASL_GET_PEER_NODE (BufferOp); /* DEFAULT_ARG indicates null template - ResourceTemplate(){} */ if (DescriptorTypeOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { AslError (ASL_WARNING, ASL_MSG_NULL_RESOURCE_TEMPLATE, DescriptorTypeOp, DescriptorTypeOp->Asl.Value.String); } /* * Process all resource descriptors in the list * Note: It is assumed that the EndTag node has been automatically * inserted at the end of the template by the parser. */ State = ACPI_RSTATE_NORMAL; PreviousRnode = &HeadRnode; while (DescriptorTypeOp) { /* Save information for optional mapfile */ if (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CONNECTION) { Info.MappingOp = Op->Asl.Parent; } else { Info.MappingOp = DescriptorTypeOp; } Info.DescriptorTypeOp = DescriptorTypeOp; Info.CurrentByteOffset = CurrentByteOffset; DescriptorTypeOp->Asl.CompileFlags |= OP_IS_RESOURCE_DESC; Rnode = RsDoOneResourceDescriptor (&Info, &State); /* * Update current byte offset to indicate the number of bytes from the * start of the buffer. Buffer can include multiple descriptors, we * must keep track of the offset of not only each descriptor, but each * element (field) within each descriptor as well. */ CurrentByteOffset += RsLinkDescriptorChain (&PreviousRnode, Rnode); /* Get the next descriptor in the list */ LastOp = DescriptorTypeOp; DescriptorTypeOp = ASL_GET_PEER_NODE (DescriptorTypeOp); } if (State == ACPI_RSTATE_DEPENDENT_LIST) { if (LastOp) { LastOp = LastOp->Asl.Parent; } AslError (ASL_ERROR, ASL_MSG_MISSING_ENDDEPENDENT, LastOp, NULL); } /* * Transform the nodes into the following * * Op -> AML_BUFFER_OP * First Child -> BufferLength * Second Child -> Descriptor Buffer (raw byte data) */ Op->Asl.ParseOpcode = PARSEOP_BUFFER; Op->Asl.AmlOpcode = AML_BUFFER_OP; Op->Asl.CompileFlags = OP_AML_PACKAGE | OP_IS_RESOURCE_DESC; UtSetParseOpName (Op); BufferLengthOp->Asl.ParseOpcode = PARSEOP_INTEGER; BufferLengthOp->Asl.Value.Integer = CurrentByteOffset; (void) OpcSetOptimalIntegerSize (BufferLengthOp); UtSetParseOpName (BufferLengthOp); BufferOp->Asl.ParseOpcode = PARSEOP_RAW_DATA; BufferOp->Asl.AmlOpcode = AML_RAW_DATA_CHAIN; BufferOp->Asl.AmlOpcodeLength = 0; BufferOp->Asl.AmlLength = CurrentByteOffset; BufferOp->Asl.Value.Buffer = ACPI_CAST_PTR (UINT8, HeadRnode.Next); BufferOp->Asl.CompileFlags |= OP_IS_RESOURCE_DATA; UtSetParseOpName (BufferOp); return; } acpica-unix-20250404/source/compiler/dtutils.c0000775000175000017500000005176614773714132020526 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dtutils.c - Utility routines for the data table compiler * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "actables.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtutils") /* Local prototypes */ static void DtSum ( DT_SUBTABLE *Subtable, void *Context, void *ReturnValue); /****************************************************************************** * * FUNCTION: DtError * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * Op - Parse node where error happened * ExtraMessage - additional error message * * RETURN: None * * DESCRIPTION: Common error interface for data table compiler * *****************************************************************************/ void DtError ( UINT8 Level, UINT16 MessageId, DT_FIELD *FieldObject, char *ExtraMessage) { UINT32 Line = 0; /* Field object could be NULL */ if (FieldObject) { Line = FieldObject->Line; } /* Check if user wants to ignore this exception */ if (AslIsExceptionIgnored (AslGbl_Files[ASL_FILE_INPUT].Filename, Line, Level, MessageId)) { return; } if (FieldObject) { AslCommonError (Level, MessageId, FieldObject->Line, FieldObject->Line, FieldObject->ByteOffset, FieldObject->Column, AslGbl_Files[ASL_FILE_INPUT].Filename, ExtraMessage); } else { AslCommonError (Level, MessageId, 0, 0, 0, 0, 0, ExtraMessage); } } /****************************************************************************** * * FUNCTION: DtNameError * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * Op - Parse node where error happened * ExtraMessage - additional error message * * RETURN: None * * DESCRIPTION: Error interface for named objects * *****************************************************************************/ void DtNameError ( UINT8 Level, UINT16 MessageId, DT_FIELD *FieldObject, char *ExtraMessage) { switch (Level) { case ASL_WARNING2: case ASL_WARNING3: if (AslGbl_WarningLevel < Level) { return; } break; default: break; } if (FieldObject) { AslCommonError (Level, MessageId, FieldObject->Line, FieldObject->Line, FieldObject->ByteOffset, FieldObject->NameColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, ExtraMessage); } else { AslCommonError (Level, MessageId, 0, 0, 0, 0, 0, ExtraMessage); } } /******************************************************************************* * * FUNCTION: DtFatal * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Dump the error log and abort the compiler. Used for serious * compile or I/O errors * ******************************************************************************/ void DtFatal ( UINT16 MessageId, DT_FIELD *FieldObject, char *ExtraMessage) { DtError (ASL_ERROR, MessageId, FieldObject, ExtraMessage); /* * TBD: remove this entire function, DtFatal * * We cannot abort the compiler on error, because we may be compiling a * list of files. We must move on to the next file. */ #ifdef __OBSOLETE CmCleanupAndExit (); exit (1); #endif } /******************************************************************************* * * FUNCTION: DtDoConstant * * PARAMETERS: String - Only hex constants are supported, * regardless of whether the 0x prefix * is used * * RETURN: Converted Integer * * DESCRIPTION: Convert a string to an integer, with overflow/error checking. * ******************************************************************************/ UINT64 DtDoConstant ( char *String) { UINT64 ConvertedInteger; /* * TBD: The ImplicitStrtoul64 function does not report overflow * conditions. The input string is simply truncated. If it is * desired to report overflow to the table compiler, this should * somehow be added here. Note: integers that are prefixed with 0x * or not are both hex integers. */ ConvertedInteger = AcpiUtImplicitStrtoul64 (String); return (ConvertedInteger); } /****************************************************************************** * * FUNCTION: DtGetFieldValue * * PARAMETERS: Field - Current field list pointer * * RETURN: Field value * * DESCRIPTION: Get field value * *****************************************************************************/ char * DtGetFieldValue ( DT_FIELD *Field) { if (!Field) { return (NULL); } return (Field->Value); } /****************************************************************************** * * FUNCTION: DtGetFieldType * * PARAMETERS: Info - Data table info * * RETURN: Field type * * DESCRIPTION: Get field type * *****************************************************************************/ UINT8 DtGetFieldType ( ACPI_DMTABLE_INFO *Info) { UINT8 Type; /* DT_FLAG means that this is the start of a block of flag bits */ /* TBD - we can make these a separate opcode later */ if (Info->Flags & DT_FLAG) { return (DT_FIELD_TYPE_FLAGS_INTEGER); } /* Type is based upon the opcode for this field in the info table */ switch (Info->Opcode) { case ACPI_DMT_FLAG0: case ACPI_DMT_FLAG1: case ACPI_DMT_FLAG2: case ACPI_DMT_FLAG3: case ACPI_DMT_FLAG4: case ACPI_DMT_FLAG5: case ACPI_DMT_FLAG6: case ACPI_DMT_FLAG7: case ACPI_DMT_FLAGS0: case ACPI_DMT_FLAGS1: case ACPI_DMT_FLAGS2: case ACPI_DMT_FLAGS8_2: case ACPI_DMT_FLAGS4: case ACPI_DMT_FLAGS4_0: case ACPI_DMT_FLAGS4_4: case ACPI_DMT_FLAGS4_8: case ACPI_DMT_FLAGS4_12: case ACPI_DMT_FLAGS16_16: Type = DT_FIELD_TYPE_FLAG; break; case ACPI_DMT_NAME4: case ACPI_DMT_SIG: case ACPI_DMT_NAME6: case ACPI_DMT_NAME8: case ACPI_DMT_STRING: case ACPI_DMT_IVRS_UNTERMINATED_STRING: Type = DT_FIELD_TYPE_STRING; break; case ACPI_DMT_BUFFER: case ACPI_DMT_RAW_BUFFER: case ACPI_DMT_BUF7: case ACPI_DMT_BUF10: case ACPI_DMT_BUF11: case ACPI_DMT_BUF12: case ACPI_DMT_BUF16: case ACPI_DMT_BUF18: case ACPI_DMT_BUF24: case ACPI_DMT_BUF26: case ACPI_DMT_BUF32: case ACPI_DMT_BUF112: case ACPI_DMT_BUF128: case ACPI_DMT_PCI_PATH: case ACPI_DMT_PMTT_VENDOR: Type = DT_FIELD_TYPE_BUFFER; break; case ACPI_DMT_GAS: case ACPI_DMT_HESTNTFY: case ACPI_DMT_IORTMEM: Type = DT_FIELD_TYPE_INLINE_SUBTABLE; break; case ACPI_DMT_UNICODE: case ACPI_DMT_WPBT_UNICODE: Type = DT_FIELD_TYPE_UNICODE; break; case ACPI_DMT_UUID: Type = DT_FIELD_TYPE_UUID; break; case ACPI_DMT_DEVICE_PATH: Type = DT_FIELD_TYPE_DEVICE_PATH; break; case ACPI_DMT_LABEL: Type = DT_FIELD_TYPE_LABEL; break; default: Type = DT_FIELD_TYPE_INTEGER; break; } return (Type); } /****************************************************************************** * * FUNCTION: DtGetBufferLength * * PARAMETERS: Buffer - List of integers, * for example "10 3A 4F 2E" * * RETURN: Count of integer * * DESCRIPTION: Get length of bytes needed to store the integers * *****************************************************************************/ UINT32 DtGetBufferLength ( char *Buffer) { UINT32 ByteLength = 0; while (*Buffer) { if (*Buffer == ' ') { ByteLength++; while (*Buffer == ' ') { Buffer++; } } Buffer++; } return (++ByteLength); } /****************************************************************************** * * FUNCTION: DtGetFieldLength * * PARAMETERS: Field - Current field * Info - Data table info * * RETURN: Field length * * DESCRIPTION: Get length of bytes needed to compile the field * * Note: This function must remain in sync with AcpiDmDumpTable. * *****************************************************************************/ UINT32 DtGetFieldLength ( DT_FIELD *Field, ACPI_DMTABLE_INFO *Info) { UINT32 ByteLength = 0; char *Value; /* Length is based upon the opcode for this field in the info table */ switch (Info->Opcode) { case ACPI_DMT_FLAG0: case ACPI_DMT_FLAG1: case ACPI_DMT_FLAG2: case ACPI_DMT_FLAG3: case ACPI_DMT_FLAG4: case ACPI_DMT_FLAG5: case ACPI_DMT_FLAG6: case ACPI_DMT_FLAG7: case ACPI_DMT_FLAGS0: case ACPI_DMT_FLAGS1: case ACPI_DMT_FLAGS2: case ACPI_DMT_FLAGS8_2: case ACPI_DMT_FLAGS4: case ACPI_DMT_FLAGS4_0: case ACPI_DMT_FLAGS4_4: case ACPI_DMT_FLAGS4_8: case ACPI_DMT_FLAGS4_12: case ACPI_DMT_FLAGS16_16: case ACPI_DMT_LABEL: case ACPI_DMT_EXTRA_TEXT: ByteLength = 0; break; case ACPI_DMT_UINT8: case ACPI_DMT_CHKSUM: case ACPI_DMT_SPACEID: case ACPI_DMT_ACCWIDTH: case ACPI_DMT_CEDT: case ACPI_DMT_IVRS: case ACPI_DMT_IVRS_DE: case ACPI_DMT_GTDT: case ACPI_DMT_MADT: case ACPI_DMT_MPAM_LOCATOR: case ACPI_DMT_PCCT: case ACPI_DMT_PMTT: case ACPI_DMT_PPTT: case ACPI_DMT_RGRT: case ACPI_DMT_SDEV: case ACPI_DMT_SRAT: case ACPI_DMT_AEST: case ACPI_DMT_AEST_RES: case ACPI_DMT_AEST_XFACE: case ACPI_DMT_AEST_XRUPT: case ACPI_DMT_ASF: case ACPI_DMT_CDAT: case ACPI_DMT_HESTNTYP: case ACPI_DMT_FADTPM: case ACPI_DMT_EINJACT: case ACPI_DMT_EINJINST: case ACPI_DMT_ERSTACT: case ACPI_DMT_ERSTINST: case ACPI_DMT_DMAR_SCOPE: case ACPI_DMT_VIOT: ByteLength = 1; break; case ACPI_DMT_ASPT: case ACPI_DMT_UINT16: case ACPI_DMT_DMAR: case ACPI_DMT_ERDT: case ACPI_DMT_HEST: case ACPI_DMT_HMAT: case ACPI_DMT_NFIT: case ACPI_DMT_PCI_PATH: case ACPI_DMT_PHAT: ByteLength = 2; break; case ACPI_DMT_UINT24: ByteLength = 3; break; case ACPI_DMT_UINT32: case ACPI_DMT_AEST_CACHE: case ACPI_DMT_AEST_GIC: case ACPI_DMT_NAME4: case ACPI_DMT_SIG: case ACPI_DMT_LPIT: case ACPI_DMT_TPM2: ByteLength = 4; break; case ACPI_DMT_UINT40: ByteLength = 5; break; case ACPI_DMT_UINT48: case ACPI_DMT_NAME6: ByteLength = 6; break; case ACPI_DMT_UINT56: case ACPI_DMT_BUF7: ByteLength = 7; break; case ACPI_DMT_UINT64: case ACPI_DMT_NAME8: ByteLength = 8; break; case ACPI_DMT_STRING: Value = DtGetFieldValue (Field); if (Value) { ByteLength = strlen (Value) + 1; } else { /* At this point, this is a fatal error */ sprintf (AslGbl_MsgBuffer, "Expected \"%s\"", Info->Name); DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, AslGbl_MsgBuffer); return (0); } break; case ACPI_DMT_IVRS_UNTERMINATED_STRING: Value = DtGetFieldValue (Field); if (Value) { ByteLength = strlen (Value); } else { /* At this point, this is a fatal error */ sprintf (AslGbl_MsgBuffer, "Expected \"%s\"", Info->Name); DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, AslGbl_MsgBuffer); return (0); } break; case ACPI_DMT_GAS: ByteLength = sizeof (ACPI_GENERIC_ADDRESS); break; case ACPI_DMT_HESTNTFY: ByteLength = sizeof (ACPI_HEST_NOTIFY); break; case ACPI_DMT_IORTMEM: ByteLength = sizeof (ACPI_IORT_MEMORY_ACCESS); break; case ACPI_DMT_BUFFER: case ACPI_DMT_RAW_BUFFER: case ACPI_DMT_PMTT_VENDOR: Value = DtGetFieldValue (Field); if (Value) { ByteLength = DtGetBufferLength (Value); } else { /* At this point, this is a fatal error */ sprintf (AslGbl_MsgBuffer, "Expected \"%s\"", Info->Name); DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, AslGbl_MsgBuffer); return (0); } break; case ACPI_DMT_BUF10: ByteLength = 10; break; case ACPI_DMT_BUF11: ByteLength = 11; break; case ACPI_DMT_BUF12: ByteLength = 12; break; case ACPI_DMT_BUF16: case ACPI_DMT_UUID: ByteLength = 16; break; case ACPI_DMT_BUF18: ByteLength = 18; break; case ACPI_DMT_BUF24: ByteLength = 24; break; case ACPI_DMT_BUF26: ByteLength = 26; break; case ACPI_DMT_BUF32: ByteLength = 32; break; case ACPI_DMT_BUF112: ByteLength = 112; break; case ACPI_DMT_BUF128: ByteLength = 128; break; case ACPI_DMT_UNICODE: case ACPI_DMT_WPBT_UNICODE: Value = DtGetFieldValue (Field); /* TBD: error if Value is NULL? (as below?) */ ByteLength = (strlen (Value) + 1) * sizeof (UINT16); break; default: DtFatal (ASL_MSG_COMPILER_INTERNAL, Field, "Invalid table opcode"); return (0); } return (ByteLength); } /****************************************************************************** * * FUNCTION: DtSum * * PARAMETERS: DT_WALK_CALLBACK: * Subtable - Subtable * Context - Unused * ReturnValue - Store the checksum of subtable * * RETURN: Status * * DESCRIPTION: Get the checksum of subtable * *****************************************************************************/ static void DtSum ( DT_SUBTABLE *Subtable, void *Context, void *ReturnValue) { UINT8 Checksum; UINT8 *Sum = ReturnValue; Checksum = AcpiUtChecksum (Subtable->Buffer, Subtable->Length); *Sum = (UINT8) (*Sum + Checksum); } /****************************************************************************** * * FUNCTION: DtSetTableChecksum * * PARAMETERS: ChecksumPointer - Where to return the checksum * * RETURN: None * * DESCRIPTION: Set checksum of the whole data table into the checksum field * *****************************************************************************/ void DtSetTableChecksum ( UINT8 *ChecksumPointer) { UINT8 Checksum = 0; UINT8 OldSum; DtWalkTableTree (AslGbl_RootTable, DtSum, NULL, &Checksum); OldSum = *ChecksumPointer; Checksum = (UINT8) (Checksum - OldSum); /* Compute the final checksum */ Checksum = (UINT8) (0 - Checksum); *ChecksumPointer = Checksum; } /****************************************************************************** * * FUNCTION: DtSetTableLength * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Walk the subtables and set all the length fields * *****************************************************************************/ void DtSetTableLength ( void) { DT_SUBTABLE *ParentTable; DT_SUBTABLE *ChildTable; ParentTable = AslGbl_RootTable; ChildTable = NULL; if (!ParentTable) { return; } DtSetSubtableLength (ParentTable); while (1) { ChildTable = DtGetNextSubtable (ParentTable, ChildTable); if (ChildTable) { if (ChildTable->LengthField) { DtSetSubtableLength (ChildTable); } if (ChildTable->Child) { ParentTable = ChildTable; ChildTable = NULL; } else { ParentTable->TotalLength += ChildTable->TotalLength; if (ParentTable->LengthField) { DtSetSubtableLength (ParentTable); } } } else { ChildTable = ParentTable; if (ChildTable == AslGbl_RootTable) { break; } ParentTable = DtGetParentSubtable (ParentTable); ParentTable->TotalLength += ChildTable->TotalLength; if (ParentTable->LengthField) { DtSetSubtableLength (ParentTable); } } } } /****************************************************************************** * * FUNCTION: DtWalkTableTree * * PARAMETERS: StartTable - Subtable in the tree where walking begins * UserFunction - Called during the walk * Context - Passed to user function * ReturnValue - The return value of UserFunction * * RETURN: None * * DESCRIPTION: Performs a depth-first walk of the subtable tree * *****************************************************************************/ void DtWalkTableTree ( DT_SUBTABLE *StartTable, DT_WALK_CALLBACK UserFunction, void *Context, void *ReturnValue) { DT_SUBTABLE *ParentTable; DT_SUBTABLE *ChildTable; ParentTable = StartTable; ChildTable = NULL; if (!ParentTable) { return; } UserFunction (ParentTable, Context, ReturnValue); while (1) { ChildTable = DtGetNextSubtable (ParentTable, ChildTable); if (ChildTable) { UserFunction (ChildTable, Context, ReturnValue); if (ChildTable->Child) { ParentTable = ChildTable; ChildTable = NULL; } } else { ChildTable = ParentTable; if (ChildTable == AslGbl_RootTable) { break; } ParentTable = DtGetParentSubtable (ParentTable); if (ChildTable->Peer == StartTable) { break; } } } } acpica-unix-20250404/source/compiler/aslmapenter.c0000775000175000017500000002346114773714131021337 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslmapenter - Build resource descriptor/device maps * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acapps.h" #include "aslcompiler.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslmapenter") /* Local prototypes */ static ACPI_GPIO_INFO * MpCreateGpioInfo ( UINT16 PinNumber, char *DeviceName); static ACPI_SERIAL_INFO * MpCreateSerialInfo ( char *DeviceName, UINT16 Address); /******************************************************************************* * * FUNCTION: MpSaveGpioInfo * * PARAMETERS: Resource - GPIO resource descriptor * PinCount - From GPIO descriptor * PinList - From GPIO descriptor * DeviceName - The "ResourceSource" name * * RETURN: None * * DESCRIPTION: External Interface. * Save GPIO resource descriptor information. * Creates new GPIO info blocks, one for each pin defined by the * GPIO descriptor. * ******************************************************************************/ void MpSaveGpioInfo ( ACPI_PARSE_OBJECT *Op, AML_RESOURCE *Resource, UINT32 PinCount, UINT16 *PinList, char *DeviceName) { ACPI_GPIO_INFO *Info; UINT32 i; /* Mapfile option enabled? */ if (!AslGbl_MapfileFlag) { return; } /* Create an info block for each pin defined in the descriptor */ for (i = 0; i < PinCount; i++) { Info = MpCreateGpioInfo (PinList[i], DeviceName); Info->Op = Op; Info->DeviceName = DeviceName; Info->PinCount = PinCount; Info->PinIndex = i; Info->PinNumber = PinList[i]; Info->Type = Resource->Gpio.ConnectionType; Info->Direction = (UINT8) (Resource->Gpio.IntFlags & 0x0003); /* _IOR, for IO descriptor */ Info->Polarity = (UINT8) ((Resource->Gpio.IntFlags >> 1) & 0x0003); /* _POL, for INT descriptor */ } } /******************************************************************************* * * FUNCTION: MpSaveSerialInfo * * PARAMETERS: Resource - A Serial resource descriptor * DeviceName - The "ResourceSource" name. * * RETURN: None * * DESCRIPTION: External Interface. * Save serial resource descriptor information. * Creates a new serial info block. * ******************************************************************************/ void MpSaveSerialInfo ( ACPI_PARSE_OBJECT *Op, AML_RESOURCE *Resource, char *DeviceName) { ACPI_SERIAL_INFO *Info; UINT16 Address; UINT32 Speed; /* Mapfile option enabled? */ if (!AslGbl_MapfileFlag) { return; } if (Resource->DescriptorType != ACPI_RESOURCE_NAME_SERIAL_BUS) { return; } /* Extract address and speed from the resource descriptor */ switch (Resource->CommonSerialBus.Type) { case AML_RESOURCE_I2C_SERIALBUSTYPE: Address = Resource->I2cSerialBus.SlaveAddress; Speed = Resource->I2cSerialBus.ConnectionSpeed; break; case AML_RESOURCE_SPI_SERIALBUSTYPE: Address = Resource->SpiSerialBus.DeviceSelection; Speed = Resource->SpiSerialBus.ConnectionSpeed; break; case AML_RESOURCE_UART_SERIALBUSTYPE: Address = 0; Speed = Resource->UartSerialBus.DefaultBaudRate; break; default: /* Invalid bus subtype */ return; } Info = MpCreateSerialInfo (DeviceName, Address); Info->Op = Op; Info->DeviceName = DeviceName; Info->Resource = Resource; Info->Address = Address; Info->Speed = Speed; } /******************************************************************************* * * FUNCTION: MpCreateGpioInfo * * PARAMETERS: PinNumber - GPIO pin number * DeviceName - The "ResourceSource" name * * RETURN: New GPIO info block. * * DESCRIPTION: Create a new GPIO info block and place it on the global list. * The list is sorted by GPIO device names first, and pin numbers * secondarily. * ******************************************************************************/ static ACPI_GPIO_INFO * MpCreateGpioInfo ( UINT16 PinNumber, char *DeviceName) { ACPI_GPIO_INFO *Info; ACPI_GPIO_INFO *NextGpio; ACPI_GPIO_INFO *PrevGpio; char *Buffer; /* * Allocate a new info block and insert it into the global GPIO list * sorted by both source device name and then the pin number. There is * one block per pin. */ Buffer = UtLocalCacheCalloc (sizeof (ACPI_GPIO_INFO)); Info = ACPI_CAST_PTR (ACPI_GPIO_INFO, Buffer); NextGpio = AslGbl_GpioList; PrevGpio = NULL; if (!AslGbl_GpioList) { AslGbl_GpioList = Info; Info->Next = NULL; return (Info); } /* Sort on source DeviceName first */ while (NextGpio && (strcmp (DeviceName, NextGpio->DeviceName) > 0)) { PrevGpio = NextGpio; NextGpio = NextGpio->Next; } /* Now sort on the PinNumber */ while (NextGpio && (NextGpio->PinNumber < PinNumber) && !strcmp (DeviceName, NextGpio->DeviceName)) { PrevGpio = NextGpio; NextGpio = NextGpio->Next; } /* Finish the list insertion */ if (PrevGpio) { PrevGpio->Next = Info; } else { AslGbl_GpioList = Info; } Info->Next = NextGpio; return (Info); } /******************************************************************************* * * FUNCTION: MpCreateSerialInfo * * PARAMETERS: DeviceName - The "ResourceSource" name. * Address - Physical address for the device * * RETURN: New Serial info block. * * DESCRIPTION: Create a new Serial info block and place it on the global list. * The list is sorted by Serial device names first, and addresses * secondarily. * ******************************************************************************/ static ACPI_SERIAL_INFO * MpCreateSerialInfo ( char *DeviceName, UINT16 Address) { ACPI_SERIAL_INFO *Info; ACPI_SERIAL_INFO *NextSerial; ACPI_SERIAL_INFO *PrevSerial; char *Buffer; /* * Allocate a new info block and insert it into the global Serial list * sorted by both source device name and then the address. */ Buffer = UtLocalCacheCalloc (sizeof (ACPI_SERIAL_INFO)); Info = ACPI_CAST_PTR (ACPI_SERIAL_INFO, Buffer); NextSerial = AslGbl_SerialList; PrevSerial = NULL; if (!AslGbl_SerialList) { AslGbl_SerialList = Info; Info->Next = NULL; return (Info); } /* Sort on source DeviceName */ while (NextSerial && (strcmp (DeviceName, NextSerial->DeviceName) > 0)) { PrevSerial = NextSerial; NextSerial = NextSerial->Next; } /* Now sort on the Address */ while (NextSerial && (NextSerial->Address < Address) && !strcmp (DeviceName, NextSerial->DeviceName)) { PrevSerial = NextSerial; NextSerial = NextSerial->Next; } /* Finish the list insertion */ if (PrevSerial) { PrevSerial->Next = Info; } else { AslGbl_SerialList = Info; } Info->Next = NextSerial; return (Info); } acpica-unix-20250404/source/compiler/aslrestype2.c0000775000175000017500000003555414773714131021307 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslrestype2 - Miscellaneous Large resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslrestype2") /* * This module contains miscellaneous large resource descriptors: * * Register * Interrupt * VendorLong */ /******************************************************************************* * * FUNCTION: RsDoGeneralRegisterDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "Register" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoGeneralRegisterDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_GENERIC_REGISTER)); Descriptor = Rnode->Buffer; Descriptor->GenericReg.DescriptorType = ACPI_RESOURCE_NAME_GENERIC_REGISTER; Descriptor->GenericReg.ResourceLength = 12; /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Address space */ Descriptor->GenericReg.AddressSpaceId = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_ADDRESSSPACE, CurrentByteOffset + ASL_RESDESC_OFFSET (GenericReg.AddressSpaceId)); break; case 1: /* Register Bit Width */ Descriptor->GenericReg.BitWidth = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_REGISTERBITWIDTH, CurrentByteOffset + ASL_RESDESC_OFFSET (GenericReg.BitWidth)); break; case 2: /* Register Bit Offset */ Descriptor->GenericReg.BitOffset = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_REGISTERBITOFFSET, CurrentByteOffset + ASL_RESDESC_OFFSET (GenericReg.BitOffset)); break; case 3: /* Register Address */ Descriptor->GenericReg.Address = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_ADDRESS, CurrentByteOffset + ASL_RESDESC_OFFSET (GenericReg.Address)); break; case 4: /* Access Size (ACPI 3.0) */ Descriptor->GenericReg.AccessSize = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_ACCESSSIZE, CurrentByteOffset + ASL_RESDESC_OFFSET (GenericReg.AccessSize)); if (Descriptor->GenericReg.AddressSpaceId == ACPI_ADR_SPACE_PLATFORM_COMM) { break; } if (Descriptor->GenericReg.AccessSize > AML_FIELD_ACCESS_QWORD) { AslError (ASL_ERROR, ASL_MSG_INVALID_ACCESS_SIZE, InitializerOp, NULL); } break; case 5: /* ResourceTag (ACPI 3.0b) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoInterruptDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "Interrupt" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoInterruptDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; AML_RESOURCE *Rover = NULL; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN HasResSourceIndex = FALSE; UINT8 ResSourceIndex = 0; UINT8 *ResSourceString = NULL; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; StringLength = RsGetStringDataLength (InitializerOp); /* Count the interrupt numbers */ for (i = 0; InitializerOp; i++) { InitializerOp = ASL_GET_PEER_NODE (InitializerOp); if (i <= 6) { if (i == 3 && InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* * ResourceSourceIndex was specified, always make room for * it, even if the ResourceSource was omitted. */ OptionIndex++; } continue; } OptionIndex += 4; } InitializerOp = Info->DescriptorTypeOp->Asl.Child; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_EXTENDED_IRQ) + 1 + OptionIndex + StringLength); Descriptor = Rnode->Buffer; Descriptor->ExtendedIrq.DescriptorType = ACPI_RESOURCE_NAME_EXTENDED_IRQ; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ Descriptor->ExtendedIrq.ResourceLength = 2; /* Flags and table length byte */ Descriptor->ExtendedIrq.InterruptCount = 0; Rover = ACPI_CAST_PTR (AML_RESOURCE, (&(Descriptor->ExtendedIrq.Interrupts[0]))); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Usage (Default: consumer (1) */ RsSetFlagBits (&Descriptor->ExtendedIrq.Flags, InitializerOp, 0, 1); break; case 1: /* Interrupt Type (or Mode - edge/level) */ RsSetFlagBits (&Descriptor->ExtendedIrq.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtendedIrq.Flags), 1); break; case 2: /* Interrupt Level (or Polarity - Active high/low) */ RsSetFlagBits (&Descriptor->ExtendedIrq.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTLEVEL, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtendedIrq.Flags), 2); break; case 3: /* Share Type - Default: exclusive (0) */ RsSetFlagBits (&Descriptor->ExtendedIrq.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtendedIrq.Flags), 3); break; case 4: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { HasResSourceIndex = TRUE; ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; case 5: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { ResSourceString = (UINT8 *) InitializerOp->Asl.Value.String; } /* ResourceSourceIndex must also be valid */ if (!HasResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (HasResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 6: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: /* * Interrupt Numbers come through here, repeatedly */ /* Maximum 255 interrupts allowed for this descriptor */ if (Descriptor->ExtendedIrq.InterruptCount == 255) { AslError (ASL_ERROR, ASL_MSG_EX_INTERRUPT_LIST, InitializerOp, NULL); return (Rnode); } /* Each interrupt number must be a 32-bit value */ if (InitializerOp->Asl.Value.Integer > ACPI_UINT32_MAX) { AslError (ASL_ERROR, ASL_MSG_EX_INTERRUPT_NUMBER, InitializerOp, NULL); } /* Save the integer and move pointer to the next one */ Rover->DwordItem = (UINT32) InitializerOp->Asl.Value.Integer; Rover = ACPI_ADD_PTR (AML_RESOURCE, &(Rover->DwordItem), 4); Descriptor->ExtendedIrq.InterruptCount++; Descriptor->ExtendedIrq.ResourceLength += 4; /* Case 7: First interrupt number in list */ if (i == 7) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { /* Must be at least one interrupt */ AslError (ASL_ERROR, ASL_MSG_EX_INTERRUPT_LIST_MIN, InitializerOp, NULL); } /* Check now for duplicates in list */ RsCheckListForDuplicates (InitializerOp); /* Create a named field at the start of the list */ RsCreateDwordField (InitializerOp, ACPI_RESTAG_INTERRUPT, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtendedIrq.Interrupts[0])); } } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Add optional ResSourceIndex if present */ if (HasResSourceIndex) { Rover->ByteItem = ResSourceIndex; Rover = ACPI_ADD_PTR (AML_RESOURCE, &(Rover->ByteItem), 1); Descriptor->ExtendedIrq.ResourceLength += 1; } /* Add optional ResSource string if present */ if (StringLength && ResSourceString) { strcpy ((char *) Rover, (char *) ResSourceString); Descriptor->ExtendedIrq.ResourceLength = (UINT16) (Descriptor->ExtendedIrq.ResourceLength + StringLength); } Rnode->BufferLength = (ASL_RESDESC_OFFSET (ExtendedIrq.Interrupts[0]) - ASL_RESDESC_OFFSET (ExtendedIrq.DescriptorType)) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoVendorLargeDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "VendorLong" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoVendorLargeDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT8 *VendorData; UINT32 i; /* Count the number of data bytes */ InitializerOp = Info->DescriptorTypeOp->Asl.Child; InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); for (i = 0; InitializerOp; i++) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { break; } InitializerOp = InitializerOp->Asl.Next; } InitializerOp = Info->DescriptorTypeOp->Asl.Child; InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_VENDOR_LARGE) + i); Descriptor = Rnode->Buffer; Descriptor->VendorLarge.DescriptorType = ACPI_RESOURCE_NAME_VENDOR_LARGE; Descriptor->VendorLarge.ResourceLength = (UINT16) i; /* Point to end-of-descriptor for vendor data */ VendorData = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_LARGE_HEADER); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { break; } VendorData[i] = (UINT8) InitializerOp->Asl.Value.Integer; InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } acpica-unix-20250404/source/compiler/aslfold.c0000775000175000017500000006350114773714131020447 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslfold - Constant folding * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #include "acdispat.h" #include "acparser.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslfold") /* Local prototypes */ static ACPI_STATUS OpcAmlEvaluationWalk1 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS OpcAmlEvaluationWalk2 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS OpcAmlCheckForConstant ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static void OpcUpdateIntegerNode ( ACPI_PARSE_OBJECT *Op, UINT64 Value); static ACPI_STATUS TrTransformToStoreOp ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); static ACPI_STATUS TrSimpleConstantReduction ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); static void TrInstallReducedConstant ( ACPI_PARSE_OBJECT *Op, ACPI_OPERAND_OBJECT *ObjDesc); /******************************************************************************* * * FUNCTION: OpcAmlConstantWalk * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Reduce an Op and its subtree to a constant if possible. * Called during ascent of the parse tree. * ******************************************************************************/ ACPI_STATUS OpcAmlConstantWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState; ACPI_STATUS Status = AE_OK; if (Op->Asl.CompileFlags == 0) { return (AE_OK); } /* * Only interested in subtrees that could possibly contain * expressions that can be evaluated at this time */ if ((!(Op->Asl.CompileFlags & OP_COMPILE_TIME_CONST)) || (Op->Asl.CompileFlags & OP_IS_TARGET)) { return (AE_OK); } /* Create a new walk state */ WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL); if (!WalkState) { return (AE_NO_MEMORY); } WalkState->NextOp = NULL; WalkState->Params = NULL; /* * Examine the entire subtree -- all nodes must be constants * or type 3/4/5 opcodes */ Status = TrWalkParseTree (Op, ASL_WALK_VISIT_DOWNWARD, OpcAmlCheckForConstant, NULL, WalkState); /* * Did we find an entire subtree that contains all constants * and type 3/4/5 opcodes? */ switch (Status) { case AE_OK: /* Simple case, like Add(3,4) -> 7 */ Status = TrSimpleConstantReduction (Op, WalkState); break; case AE_CTRL_RETURN_VALUE: /* More complex case, like Add(3,4,Local0) -> Store(7,Local0) */ Status = TrTransformToStoreOp (Op, WalkState); break; case AE_TYPE: AcpiDsDeleteWalkState (WalkState); return (AE_OK); default: AcpiDsDeleteWalkState (WalkState); break; } if (ACPI_FAILURE (Status)) { DbgPrint (ASL_PARSE_OUTPUT, "Cannot resolve, %s\n", AcpiFormatException (Status)); /* We could not resolve the subtree for some reason */ AslError (ASL_ERROR, ASL_MSG_CONSTANT_EVALUATION, Op, (char *) AcpiFormatException (Status)); /* Set the subtree value to ZERO anyway. Eliminates further errors */ OpcUpdateIntegerNode (Op, 0); } return (AE_OK); } /******************************************************************************* * * FUNCTION: OpcAmlCheckForConstant * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Check one Op for a reducible type 3/4/5 AML opcode. * This is performed via an upward walk of the parse subtree. * ******************************************************************************/ static ACPI_STATUS OpcAmlCheckForConstant ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState = Context; ACPI_STATUS Status = AE_OK; ACPI_PARSE_OBJECT *NextOp; const ACPI_OPCODE_INFO *OpInfo; WalkState->Op = Op; WalkState->Opcode = Op->Common.AmlOpcode; WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); DbgPrint (ASL_PARSE_OUTPUT, "[%.4d] Opcode: %12.12s ", Op->Asl.LogicalLineNumber, Op->Asl.ParseOpName); /* * These opcodes do not appear in the OpcodeInfo table, but * they represent constants, so abort the constant walk now. */ if ((WalkState->Opcode == AML_RAW_DATA_BYTE) || (WalkState->Opcode == AML_RAW_DATA_WORD) || (WalkState->Opcode == AML_RAW_DATA_DWORD) || (WalkState->Opcode == AML_RAW_DATA_QWORD)) { DbgPrint (ASL_PARSE_OUTPUT, "RAW DATA"); Status = AE_TYPE; goto CleanupAndExit; } /* * Search upwards for a possible Name() operator. This is done * because a type 3/4/5 opcode within a Name() expression * MUST be reduced to a simple constant. */ NextOp = Op->Asl.Parent; while (NextOp) { /* Finished if we find a Name() opcode */ if (NextOp->Asl.AmlOpcode == AML_NAME_OP) { break; } /* * Any "deferred" opcodes contain one or more TermArg parameters, * and thus are not required to be folded to constants at compile * time. This affects things like Buffer() and Package() objects. * We just ignore them here. However, any sub-expressions can and * will still be typechecked. Note: These are called the * "deferred" opcodes in the AML interpreter. */ OpInfo = AcpiPsGetOpcodeInfo (NextOp->Common.AmlOpcode); if (OpInfo->Flags & AML_DEFER) { NextOp = NULL; break; } NextOp = NextOp->Asl.Parent; } /* Type 3/4/5 opcodes have the AML_CONSTANT flag set */ if (!(WalkState->OpInfo->Flags & AML_CONSTANT)) { /* * From the ACPI specification: * * "The Type 3/4/5 opcodes return a value and can be used in an * expression that evaluates to a constant. These opcodes may be * evaluated at ASL compile-time. To ensure that these opcodes * will evaluate to a constant, the following rules apply: The * term cannot have a destination (target) operand, and must have * either a Type3Opcode, Type4Opcode, Type5Opcode, ConstExprTerm, * Integer, BufferTerm, Package, or String for all arguments." */ /* * The value (second) operand for the Name() operator MUST * reduce to a single constant, as per the ACPI specification * (the operand is a DataObject). This also implies that there * can be no target operand. Name() is the only ASL operator * with a "DataObject" as an operand and is thus special- * cased here. */ if (NextOp) /* Inspect a Name() operator */ { /* Error if there is a target operand */ if (Op->Asl.CompileFlags & OP_IS_TARGET) { AslError (ASL_ERROR, ASL_MSG_INVALID_TARGET, Op, NULL); Status = AE_TYPE; } /* Error if expression cannot be reduced (folded) */ if (!(NextOp->Asl.CompileFlags & OP_COULD_NOT_REDUCE)) { /* Ensure only one error message per statement */ NextOp->Asl.CompileFlags |= OP_COULD_NOT_REDUCE; DbgPrint (ASL_PARSE_OUTPUT, "**** Could not reduce operands for NAME opcode ****\n"); AslError (ASL_ERROR, ASL_MSG_CONSTANT_REQUIRED, Op, "Constant is required for Name operator"); Status = AE_TYPE; } } if (ACPI_FAILURE (Status)) { goto CleanupAndExit; } /* This is not a 3/4/5 opcode, but maybe can convert to STORE */ if (Op->Asl.CompileFlags & OP_IS_TARGET) { DbgPrint (ASL_PARSE_OUTPUT, "**** Valid Target, transform to Store or CopyObject ****\n"); return (AE_CTRL_RETURN_VALUE); } /* Expression cannot be reduced */ DbgPrint (ASL_PARSE_OUTPUT, "**** Not a Type 3/4/5 opcode or cannot reduce/fold (%s) ****\n", Op->Asl.ParseOpName); Status = AE_TYPE; goto CleanupAndExit; } /* * TBD: Ignore buffer constants for now. The problem is that these * constants have been transformed into RAW_DATA at this point, from * the parse tree transform process which currently happens before * the constant folding process. We may need to defer this transform * for buffer until after the constant folding. */ if (WalkState->Opcode == AML_BUFFER_OP) { DbgPrint (ASL_PARSE_OUTPUT, "\nBuffer constant reduction is currently not supported\n"); if (NextOp) /* Found a Name() operator, error */ { AslError (ASL_ERROR, ASL_MSG_UNSUPPORTED, Op, "Buffer expression cannot be reduced"); } Status = AE_TYPE; goto CleanupAndExit; } /* Debug output */ DbgPrint (ASL_PARSE_OUTPUT, "TYPE_345"); if (Op->Asl.CompileFlags & OP_IS_TARGET) { if (Op->Asl.ParseOpcode == PARSEOP_ZERO) { DbgPrint (ASL_PARSE_OUTPUT, "%-16s", " NULL TARGET"); } else { DbgPrint (ASL_PARSE_OUTPUT, "%-16s", " VALID TARGET"); } } if (Op->Asl.CompileFlags & OP_IS_TERM_ARG) { DbgPrint (ASL_PARSE_OUTPUT, "%-16s", " TERMARG"); } CleanupAndExit: /* Dump the node compile flags also */ TrPrintOpFlags (Op->Asl.CompileFlags, ASL_PARSE_OUTPUT); DbgPrint (ASL_PARSE_OUTPUT, "\n"); return (Status); } /******************************************************************************* * * FUNCTION: TrSimpleConstantReduction * * PARAMETERS: Op - Parent operator to be transformed * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Reduce an entire AML operation to a single constant. The * operation must not have a target operand. * * Add (32,64) --> 96 * ******************************************************************************/ static ACPI_STATUS TrSimpleConstantReduction ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { ACPI_PARSE_OBJECT *RootOp; ACPI_PARSE_OBJECT *OriginalParentOp; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_STATUS Status; DbgPrint (ASL_PARSE_OUTPUT, "Simple subtree constant reduction, operator to constant\n"); /* Allocate a new temporary root for this subtree */ RootOp = TrAllocateOp (PARSEOP_INTEGER); if (!RootOp) { return (AE_NO_MEMORY); } RootOp->Common.AmlOpcode = AML_INT_EVAL_SUBTREE_OP; OriginalParentOp = Op->Common.Parent; Op->Common.Parent = RootOp; /* Hand off the subtree to the AML interpreter */ WalkState->CallerReturnDesc = &ObjDesc; Status = TrWalkParseTree (Op, ASL_WALK_VISIT_TWICE, OpcAmlEvaluationWalk1, OpcAmlEvaluationWalk2, WalkState); /* Restore original parse tree */ Op->Common.Parent = OriginalParentOp; if (ACPI_FAILURE (Status)) { DbgPrint (ASL_PARSE_OUTPUT, "Constant Subtree evaluation(1), %s\n", AcpiFormatException (Status)); return (Status); } /* Get the final result */ Status = AcpiDsResultPop (&ObjDesc, WalkState); if (ACPI_FAILURE (Status)) { DbgPrint (ASL_PARSE_OUTPUT, "Constant Subtree evaluation(2), %s\n", AcpiFormatException (Status)); return (Status); } /* Disconnect any existing children, install new constant */ Op->Asl.Child = NULL; TrInstallReducedConstant (Op, ObjDesc); UtSetParseOpName (Op); return (AE_OK); } /******************************************************************************* * * FUNCTION: TrTransformToStoreOp * * PARAMETERS: Op - Parent operator to be transformed * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Transforms a single AML operation with a constant and target * to a simple store operation: * * Add (32,64,DATA) --> Store (96,DATA) * ******************************************************************************/ static ACPI_STATUS TrTransformToStoreOp ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { ACPI_PARSE_OBJECT *OriginalTarget; ACPI_PARSE_OBJECT *NewTarget; ACPI_PARSE_OBJECT *Child1; ACPI_PARSE_OBJECT *Child2; ACPI_OPERAND_OBJECT *ObjDesc; ACPI_PARSE_OBJECT *NewParent; ACPI_PARSE_OBJECT *OriginalParent; ACPI_STATUS Status; UINT16 NewParseOpcode; UINT16 NewAmlOpcode; /* Extract the operands */ Child1 = Op->Asl.Child; Child2 = Child1->Asl.Next; /* * Special case for DIVIDE -- it has two targets. The first * is for the remainder and if present, we will not attempt * to reduce the expression. */ if (Op->Asl.ParseOpcode == PARSEOP_DIVIDE) { Child2 = Child2->Asl.Next; if (Child2->Asl.ParseOpcode != PARSEOP_ZERO) { DbgPrint (ASL_PARSE_OUTPUT, "Cannot reduce DIVIDE - has two targets\n\n"); return (AE_OK); } } switch (Op->Asl.ParseOpcode) { /* * Folding of the explicit conversion opcodes must use CopyObject * instead of Store. This can change the object type of the target * operand, as per the ACPI specification: * * "If the ASL operator is one of the explicit conversion operators * (ToString, ToInteger, etc., and the CopyObject operator), no * [implicit] conversion is performed. (In other words, the result * object is stored directly to the target and completely overwrites * any existing object already stored at the target)" */ case PARSEOP_TOINTEGER: case PARSEOP_TOSTRING: case PARSEOP_TOBUFFER: case PARSEOP_TODECIMALSTRING: case PARSEOP_TOHEXSTRING: case PARSEOP_TOBCD: case PARSEOP_FROMBCD: NewParseOpcode = PARSEOP_COPYOBJECT; NewAmlOpcode = AML_COPY_OBJECT_OP; DbgPrint (ASL_PARSE_OUTPUT, "Reduction/Transform to CopyObjectOp: CopyObject(%s, %s)\n", Child1->Asl.ParseOpName, Child2->Asl.ParseOpName); break; default: NewParseOpcode = PARSEOP_STORE; NewAmlOpcode = AML_STORE_OP; DbgPrint (ASL_PARSE_OUTPUT, "Reduction/Transform to StoreOp: Store(%s, %s)\n", Child1->Asl.ParseOpName, Child2->Asl.ParseOpName); break; } /* * Create a NULL (zero) target so that we can use the * interpreter to evaluate the expression. */ NewTarget = TrCreateNullTargetOp (); NewTarget->Common.AmlOpcode = AML_INT_NAMEPATH_OP; /* Handle one-operand cases (NOT, TOBCD, etc.) */ if (!Child2->Asl.Next) { Child2 = Child1; } /* Link in new NULL target as the last operand */ OriginalTarget = Child2->Asl.Next; Child2->Asl.Next = NewTarget; NewTarget->Asl.Parent = OriginalTarget->Asl.Parent; NewParent = TrAllocateOp (PARSEOP_INTEGER); NewParent->Common.AmlOpcode = AML_INT_EVAL_SUBTREE_OP; OriginalParent = Op->Common.Parent; Op->Common.Parent = NewParent; /* Hand off the subtree to the AML interpreter */ WalkState->CallerReturnDesc = &ObjDesc; Status = TrWalkParseTree (Op, ASL_WALK_VISIT_TWICE, OpcAmlEvaluationWalk1, OpcAmlEvaluationWalk2, WalkState); if (ACPI_FAILURE (Status)) { DbgPrint (ASL_PARSE_OUTPUT, "Constant Subtree evaluation(3), %s\n", AcpiFormatException (Status)); goto EvalError; } /* Get the final result */ Status = AcpiDsResultPop (&ObjDesc, WalkState); if (ACPI_FAILURE (Status)) { DbgPrint (ASL_PARSE_OUTPUT, "Constant Subtree evaluation(4), %s\n", AcpiFormatException (Status)); goto EvalError; } /* Truncate any subtree expressions, they have been evaluated */ Child1->Asl.Child = NULL; /* Folded constant is in ObjDesc, store into Child1 */ TrInstallReducedConstant (Child1, ObjDesc); /* Convert operator to STORE or COPYOBJECT */ Op->Asl.ParseOpcode = NewParseOpcode; Op->Asl.AmlOpcode = NewAmlOpcode; UtSetParseOpName (Op); Op->Common.Parent = OriginalParent; /* First child is the folded constant */ /* Second child will be the target */ Child1->Asl.Next = OriginalTarget; return (AE_OK); EvalError: /* Restore original links */ Op->Common.Parent = OriginalParent; Child2->Asl.Next = OriginalTarget; return (Status); } /******************************************************************************* * * FUNCTION: TrInstallReducedConstant * * PARAMETERS: Op - Parent operator to be transformed * ObjDesc - Reduced constant to be installed * * RETURN: None * * DESCRIPTION: Transform the original operator to a simple constant. * Handles Integers, Strings, and Buffers. * ******************************************************************************/ static void TrInstallReducedConstant ( ACPI_PARSE_OBJECT *Op, ACPI_OPERAND_OBJECT *ObjDesc) { ACPI_PARSE_OBJECT *LengthOp; ACPI_PARSE_OBJECT *DataOp; AslGbl_TotalFolds++; AslError (ASL_OPTIMIZATION, ASL_MSG_CONSTANT_FOLDED, Op, Op->Asl.ParseOpName); /* * Because we know we executed type 3/4/5 opcodes above, we know that * the result must be either an Integer, String, or Buffer. */ switch (ObjDesc->Common.Type) { case ACPI_TYPE_INTEGER: OpcUpdateIntegerNode (Op, ObjDesc->Integer.Value); DbgPrint (ASL_PARSE_OUTPUT, "Constant expression reduced to (%s) %8.8X%8.8X\n\n", Op->Asl.ParseOpName, ACPI_FORMAT_UINT64 (Op->Common.Value.Integer)); break; case ACPI_TYPE_STRING: Op->Asl.ParseOpcode = PARSEOP_STRING_LITERAL; Op->Common.AmlOpcode = AML_STRING_OP; Op->Asl.AmlLength = strlen (ObjDesc->String.Pointer) + 1; Op->Common.Value.String = ObjDesc->String.Pointer; DbgPrint (ASL_PARSE_OUTPUT, "Constant expression reduced to (STRING) %s\n\n", Op->Common.Value.String); break; case ACPI_TYPE_BUFFER: /* * Create a new parse subtree of the form: * * BUFFER (Buffer AML opcode) * INTEGER (Buffer length in bytes) * RAW_DATA (Buffer byte data) */ Op->Asl.ParseOpcode = PARSEOP_BUFFER; Op->Common.AmlOpcode = AML_BUFFER_OP; Op->Asl.CompileFlags = OP_AML_PACKAGE; UtSetParseOpName (Op); /* Child node is the buffer length */ LengthOp = TrAllocateOp (PARSEOP_INTEGER); LengthOp->Asl.AmlOpcode = AML_DWORD_OP; LengthOp->Asl.Value.Integer = ObjDesc->Buffer.Length; LengthOp->Asl.Parent = Op; (void) OpcSetOptimalIntegerSize (LengthOp); Op->Asl.Child = LengthOp; /* Next child is the raw buffer data */ DataOp = TrAllocateOp (PARSEOP_RAW_DATA); DataOp->Asl.AmlOpcode = AML_RAW_DATA_BUFFER; DataOp->Asl.AmlLength = ObjDesc->Buffer.Length; DataOp->Asl.Value.String = (char *) ObjDesc->Buffer.Pointer; DataOp->Asl.Parent = Op; LengthOp->Asl.Next = DataOp; DbgPrint (ASL_PARSE_OUTPUT, "Constant expression reduced to (BUFFER) length %X\n\n", ObjDesc->Buffer.Length); break; default: break; } } /******************************************************************************* * * FUNCTION: OpcUpdateIntegerNode * * PARAMETERS: Op - Current parse object * Value - Value for the integer op * * RETURN: None * * DESCRIPTION: Update node to the correct Integer type and value * ******************************************************************************/ static void OpcUpdateIntegerNode ( ACPI_PARSE_OBJECT *Op, UINT64 Value) { Op->Common.Value.Integer = Value; /* * The AmlLength is used by the parser to indicate a constant, * (if non-zero). Length is either (1/2/4/8) */ switch (Op->Asl.AmlLength) { case 1: TrSetOpIntegerValue (PARSEOP_BYTECONST, Op); Op->Asl.AmlOpcode = AML_RAW_DATA_BYTE; break; case 2: TrSetOpIntegerValue (PARSEOP_WORDCONST, Op); Op->Asl.AmlOpcode = AML_RAW_DATA_WORD; break; case 4: TrSetOpIntegerValue (PARSEOP_DWORDCONST, Op); Op->Asl.AmlOpcode = AML_RAW_DATA_DWORD; break; case 8: TrSetOpIntegerValue (PARSEOP_QWORDCONST, Op); Op->Asl.AmlOpcode = AML_RAW_DATA_QWORD; break; case 0: default: OpcSetOptimalIntegerSize (Op); TrSetOpIntegerValue (PARSEOP_INTEGER, Op); break; } Op->Asl.AmlLength = 0; } /******************************************************************************* * * FUNCTION: OpcAmlEvaluationWalk1 * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Descending callback for AML execution of constant subtrees * ******************************************************************************/ static ACPI_STATUS OpcAmlEvaluationWalk1 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState = Context; ACPI_STATUS Status; ACPI_PARSE_OBJECT *OutOp; WalkState->Op = Op; WalkState->Opcode = Op->Common.AmlOpcode; WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); /* Copy child pointer to Arg for compatibility with Interpreter */ if (Op->Asl.Child) { Op->Common.Value.Arg = Op->Asl.Child; } /* Call AML dispatcher */ Status = AcpiDsExecBeginOp (WalkState, &OutOp); if (ACPI_FAILURE (Status)) { DbgPrint (ASL_PARSE_OUTPUT, "%s Constant interpretation failed (1) - %s\n", Op->Asl.ParseOpName, AcpiFormatException (Status)); } return (Status); } /******************************************************************************* * * FUNCTION: OpcAmlEvaluationWalk2 * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Ascending callback for AML execution of constant subtrees * ******************************************************************************/ static ACPI_STATUS OpcAmlEvaluationWalk2 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState = Context; ACPI_STATUS Status; WalkState->Op = Op; WalkState->Opcode = Op->Common.AmlOpcode; WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode); /* Copy child pointer to Arg for compatibility with Interpreter */ if (Op->Asl.Child) { Op->Common.Value.Arg = Op->Asl.Child; } /* Call AML dispatcher */ Status = AcpiDsExecEndOp (WalkState); if (ACPI_FAILURE (Status)) { DbgPrint (ASL_PARSE_OUTPUT, "%s: Constant interpretation failed (2) - %s\n", Op->Asl.ParseOpName, AcpiFormatException (Status)); } return (Status); } acpica-unix-20250404/source/compiler/aslprune.c0000775000175000017500000001510214773714131020646 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslprune - Parse tree prune utility * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acapps.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslprune") /* Local prototypes */ static ACPI_STATUS PrTreePruneWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static void PrPrintObjectAtLevel ( UINT32 Level, const char *ObjectName); /* Structure used for the pruning parse tree walk */ typedef struct acpi_prune_info { UINT32 PruneLevel; UINT16 ParseOpcode; UINT16 Count; } ACPI_PRUNE_INFO; /******************************************************************************* * * FUNCTION: AslPruneParseTree * * PARAMETERS: PruneDepth - Number of levels to prune * Type - Prune type (Device, Method, etc.) * * RETURN: None * * DESCRIPTION: Prune off one or more levels of the ASL parse tree * ******************************************************************************/ void AslPruneParseTree ( UINT32 PruneDepth, UINT32 Type) { ACPI_PRUNE_INFO PruneObj; PruneObj.PruneLevel = PruneDepth; PruneObj.Count = 0; switch (Type) { case 0: PruneObj.ParseOpcode = (UINT16) PARSEOP_DEVICE; break; case 1: PruneObj.ParseOpcode = (UINT16) PARSEOP_METHOD; break; case 2: PruneObj.ParseOpcode = (UINT16) PARSEOP_IF; break; default: AcpiOsPrintf ("Unsupported type: %u\n", Type); return; } AcpiOsPrintf ("Pruning parse tree, from depth %u\n", PruneDepth); AcpiOsPrintf ("\nRemoving Objects:\n"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, PrTreePruneWalk, NULL, ACPI_CAST_PTR (void, &PruneObj)); AcpiOsPrintf ("\n%u Total Objects Removed\n", PruneObj.Count); } /******************************************************************************* * * FUNCTION: PrPrintObjectAtLevel * * PARAMETERS: Level - Current nesting level * ObjectName - ACPI name for the object * * RETURN: None * * DESCRIPTION: Print object name with indent * ******************************************************************************/ static void PrPrintObjectAtLevel ( UINT32 Level, const char *ObjectName) { UINT32 i; for (i = 0; i < Level; i++) { AcpiOsPrintf (" "); } AcpiOsPrintf ("[%s] at Level [%u]\n", ObjectName, Level); } /******************************************************************************* * * FUNCTION: PrTreePruneWalk * * PARAMETERS: Parse tree walk callback * * RETURN: Status * * DESCRIPTION: Prune off one or more levels of the ASL parse tree * * Current objects that can be pruned are: Devices, Methods, and If/Else * blocks. * ******************************************************************************/ static ACPI_STATUS PrTreePruneWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_PRUNE_INFO *PruneObj = (ACPI_PRUNE_INFO *) Context; /* We only care about objects below the Prune Level threshold */ if (Level <= PruneObj->PruneLevel) { return (AE_OK); } if ((Op->Asl.ParseOpcode != PruneObj->ParseOpcode) && !(Op->Asl.ParseOpcode == PARSEOP_ELSE && PruneObj->ParseOpcode == PARSEOP_IF)) { return (AE_OK); } switch (Op->Asl.ParseOpcode) { case PARSEOP_METHOD: AcpiOsPrintf ("Method"); PrPrintObjectAtLevel (Level, Op->Asl.Child->Asl.Value.Name); Op->Asl.Child->Asl.Next->Asl.Next->Asl.Next->Asl.Next->Asl.Next->Asl.Next = NULL; PruneObj->Count++; break; case PARSEOP_DEVICE: AcpiOsPrintf ("Device"); PrPrintObjectAtLevel (Level, Op->Asl.Child->Asl.Value.Name); Op->Asl.Child->Asl.Next = NULL; PruneObj->Count++; break; case PARSEOP_IF: case PARSEOP_ELSE: if (Op->Asl.ParseOpcode == PARSEOP_ELSE) { PrPrintObjectAtLevel(Level, "Else"); Op->Asl.Child = NULL; } else { PrPrintObjectAtLevel(Level, "If"); Op->Asl.Child->Asl.Next = NULL; } PruneObj->Count++; break; default: break; } return (AE_OK); } acpica-unix-20250404/source/compiler/dttable.c0000775000175000017500000002065714773714132020450 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dttable.c - handling for specific ACPI tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* Compile routines for the basic ACPI tables */ #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dttable") /****************************************************************************** * * FUNCTION: DtCompileRsdp * * PARAMETERS: PFieldList - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile RSDP. * *****************************************************************************/ ACPI_STATUS DtCompileRsdp ( DT_FIELD **PFieldList) { DT_SUBTABLE *Subtable; ACPI_TABLE_RSDP *Rsdp; ACPI_RSDP_EXTENSION *RsdpExtension; ACPI_STATUS Status; /* Compile the "common" RSDP (ACPI 1.0) */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoRsdp1, &AslGbl_RootTable); if (ACPI_FAILURE (Status)) { return (Status); } Rsdp = ACPI_CAST_PTR (ACPI_TABLE_RSDP, AslGbl_RootTable->Buffer); DtSetTableChecksum (&Rsdp->Checksum); if (Rsdp->Revision > 0) { /* Compile the "extended" part of the RSDP as a subtable */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoRsdp2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (AslGbl_RootTable, Subtable); /* Set length and extended checksum for entire RSDP */ RsdpExtension = ACPI_CAST_PTR (ACPI_RSDP_EXTENSION, Subtable->Buffer); RsdpExtension->Length = AslGbl_RootTable->Length + Subtable->Length; DtSetTableChecksum (&RsdpExtension->ExtendedChecksum); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileFadt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile FADT (signature FACP). * *****************************************************************************/ #define ACPI_XDSDT_LOCATION_IN_LIST 11 ACPI_STATUS DtCompileFadt ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *DsdtFieldList; ACPI_TABLE_FADT *Table; UINT8 Revision; UINT32 DsdtAddress; UINT64 X_DsdtAddress; UINT32 i; /* Get the table revision and 32-bit DSDT Address definition */ DsdtFieldList = (*PFieldList)->Next; Status = DtCompileTable (PFieldList, AcpiDmTableInfoFadt1, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Table = ACPI_CAST_PTR (ACPI_TABLE_FADT, ParentTable->Buffer); Revision = Table->Header.Revision; DsdtAddress = Table->Dsdt; /* FADT version 1 has only 32-bit addresses - error if DSDT address is NULL */ if ((Revision == 1) && (!DsdtAddress)) { DtError (ASL_ERROR, ASL_MSG_ZERO_VALUE, DsdtFieldList, NULL); } if (Revision == 2) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoFadt2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); } else if (Revision > 2) { /* * Rev 3 and greater have 64-bit addresses (as well as 32-bit). * Get the 64-bit DSDT (X_DSDT) Address definition. Note: This * appears at field list offset 11 within AcpiDmTableInfoFadt3. */ DsdtFieldList = *PFieldList; for (i = 0; i < ACPI_XDSDT_LOCATION_IN_LIST; i++) { DsdtFieldList = DsdtFieldList->Next; if (!DsdtFieldList) { return (ASL_MSG_BAD_PARSE_TREE); } } Status = DtCompileTable (PFieldList, AcpiDmTableInfoFadt3, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); Table = ACPI_CAST_PTR (ACPI_TABLE_FADT, ParentTable->Buffer); X_DsdtAddress = Table->XDsdt; /* * Error if both the 32-bit DSDT address and the * 64-bit X_DSDT address are zero. */ if ((!X_DsdtAddress) && (!DsdtAddress)) { DtError (ASL_ERROR, ASL_MSG_TWO_ZERO_VALUES, DsdtFieldList, NULL); } /* Fields specific to FADT Revision 5 (appended to previous) */ if (Revision >= 5) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoFadt5, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); } /* Fields specific to FADT Revision 6 (appended to previous) */ if (Revision >= 6) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoFadt6, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); } } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileFacs * * PARAMETERS: PFieldList - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile FACS. * *****************************************************************************/ ACPI_STATUS DtCompileFacs ( DT_FIELD **PFieldList) { DT_SUBTABLE *Subtable; UINT8 *ReservedBuffer; ACPI_STATUS Status; UINT32 ReservedSize; Status = DtCompileTable (PFieldList, AcpiDmTableInfoFacs, &AslGbl_RootTable); if (ACPI_FAILURE (Status)) { return (Status); } /* Large FACS reserved area at the end of the table */ ReservedSize = (UINT32) sizeof (((ACPI_TABLE_FACS *) NULL)->Reserved1); ReservedBuffer = UtLocalCalloc (ReservedSize); DtCreateSubtable (ReservedBuffer, ReservedSize, &Subtable); ACPI_FREE (ReservedBuffer); DtInsertSubtable (AslGbl_RootTable, Subtable); return (AE_OK); } acpica-unix-20250404/source/compiler/dtcompiler.h0000775000175000017500000004526114773714131021175 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dtcompiler.h - header for data table compiler * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define __DTCOMPILER_H__ #ifndef _DTCOMPILER #define _DTCOMPILER #include "acdisasm.h" #define ASL_FIELD_CACHE_SIZE 512 #define ASL_SUBTABLE_CACHE_SIZE 128 #undef DT_EXTERN #ifdef _DECLARE_DT_GLOBALS #define DT_EXTERN #define DT_INIT_GLOBAL(a,b) (a)=(b) #else #define DT_EXTERN extern #define DT_INIT_GLOBAL(a,b) (a) #endif /* Types for individual fields (one per input line) */ #define DT_FIELD_TYPE_STRING 0 #define DT_FIELD_TYPE_INTEGER 1 #define DT_FIELD_TYPE_BUFFER 2 #define DT_FIELD_TYPE_PCI_PATH 3 #define DT_FIELD_TYPE_FLAG 4 #define DT_FIELD_TYPE_FLAGS_INTEGER 5 #define DT_FIELD_TYPE_INLINE_SUBTABLE 6 #define DT_FIELD_TYPE_UUID 7 #define DT_FIELD_TYPE_UNICODE 8 #define DT_FIELD_TYPE_DEVICE_PATH 9 #define DT_FIELD_TYPE_LABEL 10 /* * Structure used for each individual field within an ACPI table */ typedef struct dt_field { char *Name; /* Field name (from name : value) */ char *Value; /* Field value (from name : value) */ UINT32 StringLength; /* Length of Value */ struct dt_field *Next; /* Next field */ struct dt_field *NextLabel; /* If field is a label, next label */ UINT32 Line; /* Line number for this field */ UINT32 ByteOffset; /* Offset in source file for field */ UINT32 NameColumn; /* Start column for field name */ UINT32 Column; /* Start column for field value */ UINT32 TableOffset; /* Binary offset within ACPI table */ UINT8 Flags; } DT_FIELD; /* Flags for above */ #define DT_FIELD_NOT_ALLOCATED 1 /* * Structure used for each individual key or value */ typedef struct dt_table_unit { char *Value; /* Field value (from name : value) */ UINT32 Line; /* Line number for this field */ UINT32 Column; /* Start column for field value */ } DT_TABLE_UNIT; /* * Structure used for individual subtables within an ACPI table */ typedef struct dt_subtable { struct dt_subtable *Parent; struct dt_subtable *Child; struct dt_subtable *Peer; struct dt_subtable *StackTop; UINT8 *Buffer; UINT8 *LengthField; char *Name; UINT32 Length; UINT32 TotalLength; UINT32 SizeOfLengthField; UINT16 Depth; UINT8 Flags; } DT_SUBTABLE; /* * Globals */ /* List of all field names and values from the input source */ DT_EXTERN DT_FIELD DT_INIT_GLOBAL (*AslGbl_FieldList, NULL); /* List of all compiled tables and subtables */ DT_EXTERN DT_SUBTABLE DT_INIT_GLOBAL (*AslGbl_RootTable, NULL); /* Stack for subtables */ DT_EXTERN DT_SUBTABLE DT_INIT_GLOBAL (*AslGbl_SubtableStack, NULL); /* List for defined labels */ DT_EXTERN DT_FIELD DT_INIT_GLOBAL (*AslGbl_LabelList, NULL); /* Current offset within the binary output table */ DT_EXTERN UINT32 DT_INIT_GLOBAL (AslGbl_CurrentTableOffset, 0); /* Data table compiler Flex/Bison prototype */ DT_EXTERN BOOLEAN DT_INIT_GLOBAL (AslGbl_DtLexBisonPrototype, FALSE); /* Local caches */ DT_EXTERN UINT32 DT_INIT_GLOBAL (AslGbl_SubtableCount, 0); DT_EXTERN ASL_CACHE_INFO DT_INIT_GLOBAL (*AslGbl_SubtableCacheList, NULL); DT_EXTERN DT_SUBTABLE DT_INIT_GLOBAL (*AslGbl_SubtableCacheNext, NULL); DT_EXTERN DT_SUBTABLE DT_INIT_GLOBAL (*AslGbl_SubtableCacheLast, NULL); DT_EXTERN UINT32 DT_INIT_GLOBAL (AslGbl_FieldCount, 0); DT_EXTERN ASL_CACHE_INFO DT_INIT_GLOBAL (*AslGbl_FieldCacheList, NULL); DT_EXTERN DT_FIELD DT_INIT_GLOBAL (*AslGbl_FieldCacheNext, NULL); DT_EXTERN DT_FIELD DT_INIT_GLOBAL (*AslGbl_FieldCacheLast, NULL); /* dtcompiler - main module */ ACPI_STATUS DtCompileTable ( DT_FIELD **Field, ACPI_DMTABLE_INFO *Info, DT_SUBTABLE **RetSubtable); ACPI_STATUS DtCompileTwoSubtables ( void **List, ACPI_DMTABLE_INFO *TableInfo1, ACPI_DMTABLE_INFO *TableInfo2); ACPI_STATUS DtCompilePadding ( UINT32 Length, DT_SUBTABLE **RetSubtable); /* dtio - binary and text input/output */ UINT32 DtGetNextLine ( FILE *Handle, UINT32 Flags); /* Flags for DtGetNextLine */ #define DT_ALLOW_MULTILINE_QUOTES 0x01 DT_FIELD * DtScanFile ( FILE *Handle); void DtOutputBinary ( DT_SUBTABLE *RootTable); void DtDumpSubtableList ( void); void DtDumpFieldList ( DT_FIELD *Field); void DtWriteFieldToListing ( UINT8 *Buffer, DT_FIELD *Field, UINT32 Length); void DtWriteTableToListing ( void); /* dtsubtable - compile subtables */ void DtCreateSubtable ( UINT8 *Buffer, UINT32 Length, DT_SUBTABLE **RetSubtable); UINT32 DtGetSubtableLength ( DT_FIELD *Field, ACPI_DMTABLE_INFO *Info); void DtSetSubtableLength ( DT_SUBTABLE *Subtable); void DtPushSubtable ( DT_SUBTABLE *Subtable); void DtPopSubtable ( void); DT_SUBTABLE * DtPeekSubtable ( void); void DtInsertSubtable ( DT_SUBTABLE *ParentTable, DT_SUBTABLE *Subtable); DT_SUBTABLE * DtGetNextSubtable ( DT_SUBTABLE *ParentTable, DT_SUBTABLE *ChildTable); DT_SUBTABLE * DtGetParentSubtable ( DT_SUBTABLE *Subtable); /* dtexpress - Integer expressions and labels */ ACPI_STATUS DtResolveIntegerExpression ( DT_FIELD *Field, UINT64 *ReturnValue); UINT64 DtDoOperator ( UINT64 LeftValue, UINT32 Operator, UINT64 RightValue); UINT64 DtResolveLabel ( char *LabelString); void DtDetectAllLabels ( DT_FIELD *FieldList); /* dtfield - Compile individual fields within a table */ void DtCompileOneField ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength, UINT8 Type, UINT8 Flags); void DtCompileInteger ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength, UINT8 Flags); UINT32 DtCompileBuffer ( UINT8 *Buffer, char *Value, DT_FIELD *Field, UINT32 ByteLength); void DtCompileFlag ( UINT8 *Buffer, DT_FIELD *Field, ACPI_DMTABLE_INFO *Info); /* dtfield - DT_FIELD operations */ void DtLinkField ( DT_FIELD *Field); void DtCreateField ( DT_TABLE_UNIT *FieldKey, DT_TABLE_UNIT *FieldValue, UINT32 Offset); DT_TABLE_UNIT * DtCreateTableUnit ( char *Data, UINT32 Line, UINT32 Column); /* dtparser - lex/yacc files */ int DtCompilerParserparse ( void); UINT64 DtEvaluateExpression ( char *ExprString); void DtCompilerInitLexer ( FILE *inFile); void DtCompilerTerminateLexer ( void); int DtInitLexer ( char *String); void DtTerminateLexer ( void); char * DtGetOpName ( UINT32 ParseOpcode); /* dtutils - Miscellaneous utilities */ typedef void (*DT_WALK_CALLBACK) ( DT_SUBTABLE *Subtable, void *Context, void *ReturnValue); void DtWalkTableTree ( DT_SUBTABLE *StartTable, DT_WALK_CALLBACK UserFunction, void *Context, void *ReturnValue); void DtError ( UINT8 Level, UINT16 MessageId, DT_FIELD *FieldObject, char *ExtraMessage); void DtNameError ( UINT8 Level, UINT16 MessageId, DT_FIELD *FieldObject, char *ExtraMessage); void DtFatal ( UINT16 MessageId, DT_FIELD *FieldObject, char *ExtraMessage); UINT64 DtDoConstant ( char *String); char* DtGetFieldValue ( DT_FIELD *Field); UINT8 DtGetFieldType ( ACPI_DMTABLE_INFO *Info); UINT32 DtGetBufferLength ( char *Buffer); UINT32 DtGetFieldLength ( DT_FIELD *Field, ACPI_DMTABLE_INFO *Info); void DtSetTableChecksum ( UINT8 *ChecksumPointer); void DtSetTableLength( void); /* dttable - individual table compilation */ ACPI_STATUS DtCompileFacs ( DT_FIELD **PFieldList); ACPI_STATUS DtCompileRsdp ( DT_FIELD **PFieldList); ACPI_STATUS DtCompileAest ( void **PFieldList); ACPI_STATUS DtCompileApmt ( void **PFieldList); ACPI_STATUS DtCompileAsf ( void **PFieldList); ACPI_STATUS DtCompileAspt ( void **PFieldList); ACPI_STATUS DtCompileCdat ( void **PFieldList); ACPI_STATUS DtCompileCedt ( void **PFieldList); ACPI_STATUS DtCompileCpep ( void **PFieldList); ACPI_STATUS DtCompileCsrt ( void **PFieldList); ACPI_STATUS DtCompileDbg2 ( void **PFieldList); ACPI_STATUS DtCompileDmar ( void **PFieldList); ACPI_STATUS DtCompileDrtm ( void **PFieldList); ACPI_STATUS DtCompileEinj ( void **PFieldList); ACPI_STATUS DtCompileErdt ( void **PFieldList); ACPI_STATUS DtCompileErst ( void **PFieldList); ACPI_STATUS DtCompileFadt ( void **PFieldList); ACPI_STATUS DtCompileFpdt ( void **PFieldList); ACPI_STATUS DtCompileGtdt ( void **PFieldList); ACPI_STATUS DtCompileHest ( void **PFieldList); ACPI_STATUS DtCompileHmat ( void **PFieldList); ACPI_STATUS DtCompileIort ( void **PFieldList); ACPI_STATUS DtCompileIvrs ( void **PFieldList); ACPI_STATUS DtCompileLpit ( void **PFieldList); ACPI_STATUS DtCompileMadt ( void **PFieldList); ACPI_STATUS DtCompileMcfg ( void **PFieldList); ACPI_STATUS DtCompileMpam ( void **PFieldList); ACPI_STATUS DtCompileMpst ( void **PFieldList); ACPI_STATUS DtCompileMrrm ( void **PFieldList); ACPI_STATUS DtCompileMsct ( void **PFieldList); ACPI_STATUS DtCompileNfit ( void **PFieldList); ACPI_STATUS DtCompilePcct ( void **PFieldList); ACPI_STATUS DtCompilePdtt ( void **PFieldList); ACPI_STATUS DtCompilePhat ( void **PFieldList); ACPI_STATUS DtCompilePmtt ( void **PFieldList); ACPI_STATUS DtCompilePptt ( void **PFieldList); ACPI_STATUS DtCompilePrmt ( void **PFieldList); ACPI_STATUS DtCompileRas2 ( void **PFieldList); ACPI_STATUS DtCompileRgrt ( void **PFieldList); ACPI_STATUS DtCompileRhct ( void **PFieldList); ACPI_STATUS DtCompileRimt ( void **PFieldList); ACPI_STATUS DtCompileRsdt ( void **PFieldList); ACPI_STATUS DtCompileS3pt ( DT_FIELD **PFieldList); ACPI_STATUS DtCompileSdev ( void **PFieldList); ACPI_STATUS DtCompileSlic ( void **PFieldList); ACPI_STATUS DtCompileSlit ( void **PFieldList); ACPI_STATUS DtCompileSrat ( void **PFieldList); ACPI_STATUS DtCompileStao ( void **PFieldList); ACPI_STATUS DtCompileSvkl ( void **PFieldList); ACPI_STATUS DtCompileTcpa ( void **PFieldList); ACPI_STATUS DtCompileTpm2 ( void **PFieldList); ACPI_STATUS DtCompileUefi ( void **PFieldList); ACPI_STATUS DtCompileViot ( void **PFieldList); ACPI_STATUS DtCompileWdat ( void **PFieldList); ACPI_STATUS DtCompileWpbt ( void **PFieldList); ACPI_STATUS DtCompileXsdt ( void **PFieldList); ACPI_STATUS DtCompileGeneric ( void **PFieldList, char *TermFieldName, UINT32 *PFieldLength); ACPI_DMTABLE_INFO * DtGetGenericTableInfo ( char *Name); /* ACPI Table templates */ extern const unsigned char TemplateAest[]; extern const unsigned char TemplateAgdi[]; extern const unsigned char TemplateApmt[]; extern const unsigned char TemplateAsf[]; extern const unsigned char TemplateAspt[]; extern const unsigned char TemplateBoot[]; extern const unsigned char TemplateBdat[]; extern const unsigned char TemplateBert[]; extern const unsigned char TemplateBgrt[]; extern const unsigned char TemplateCcel[]; extern const unsigned char TemplateCdat[]; extern const unsigned char TemplateCedt[]; extern const unsigned char TemplateCpep[]; extern const unsigned char TemplateCsrt[]; extern const unsigned char TemplateDbg2[]; extern const unsigned char TemplateDbgp[]; extern const unsigned char TemplateDmar[]; extern const unsigned char TemplateDrtm[]; extern const unsigned char TemplateEcdt[]; extern const unsigned char TemplateEinj[]; extern const unsigned char TemplateErdt[]; extern const unsigned char TemplateErst[]; extern const unsigned char TemplateFadt[]; extern const unsigned char TemplateFpdt[]; extern const unsigned char TemplateGtdt[]; extern const unsigned char TemplateHest[]; extern const unsigned char TemplateHmat[]; extern const unsigned char TemplateHpet[]; extern const unsigned char TemplateIort[]; extern const unsigned char TemplateIvrs[]; extern const unsigned char TemplateLpit[]; extern const unsigned char TemplateMadt[]; extern const unsigned char TemplateMcfg[]; extern const unsigned char TemplateMchi[]; extern const unsigned char TemplateMpam[]; extern const unsigned char TemplateMpst[]; extern const unsigned char TemplateMrrm[]; extern const unsigned char TemplateMsct[]; extern const unsigned char TemplateMsdm[]; extern const unsigned char TemplateNfit[]; extern const unsigned char TemplatePcct[]; extern const unsigned char TemplatePdtt[]; extern const unsigned char TemplatePhat[]; extern const unsigned char TemplatePmtt[]; extern const unsigned char TemplatePptt[]; extern const unsigned char TemplatePrmt[]; extern const unsigned char TemplateRasf[]; extern const unsigned char TemplateRas2[]; extern const unsigned char TemplateRgrt[]; extern const unsigned char TemplateRhct[]; extern const unsigned char TemplateRimt[]; extern const unsigned char TemplateRsdt[]; extern const unsigned char TemplateS3pt[]; extern const unsigned char TemplateSbst[]; extern const unsigned char TemplateSdei[]; extern const unsigned char TemplateSdev[]; extern const unsigned char TemplateSlic[]; extern const unsigned char TemplateSlit[]; extern const unsigned char TemplateSpcr[]; extern const unsigned char TemplateSpmi[]; extern const unsigned char TemplateSrat[]; extern const unsigned char TemplateStao[]; extern const unsigned char TemplateSvkl[]; extern const unsigned char TemplateTcpa[]; extern const unsigned char TemplateTdel[]; extern const unsigned char TemplateTpm2[]; extern const unsigned char TemplateUefi[]; extern const unsigned char TemplateViot[]; extern const unsigned char TemplateWaet[]; extern const unsigned char TemplateWdat[]; extern const unsigned char TemplateWddt[]; extern const unsigned char TemplateWdrt[]; extern const unsigned char TemplateWpbt[]; extern const unsigned char TemplateWsmt[]; extern const unsigned char TemplateXenv[]; extern const unsigned char TemplateXsdt[]; #endif acpica-unix-20250404/source/compiler/dtsubtable.c0000775000175000017500000002304214773714132021151 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dtsubtable.c - handling of subtables within ACPI tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtsubtable") /****************************************************************************** * * FUNCTION: DtCreateSubtable * * PARAMETERS: Buffer - Input buffer * Length - Buffer length * RetSubtable - Returned newly created subtable * * RETURN: None * * DESCRIPTION: Create a subtable that is not listed with ACPI_DMTABLE_INFO * For example, FACS has 24 bytes reserved at the end * and it's not listed at AcpiDmTableInfoFacs * *****************************************************************************/ void DtCreateSubtable ( UINT8 *Buffer, UINT32 Length, DT_SUBTABLE **RetSubtable) { DT_SUBTABLE *Subtable; char *String; Subtable = UtSubtableCacheCalloc (); /* Create a new buffer for the subtable data */ String = UtLocalCacheCalloc (Length); Subtable->Buffer = ACPI_CAST_PTR (UINT8, String); memcpy (Subtable->Buffer, Buffer, Length); Subtable->Length = Length; Subtable->TotalLength = Length; *RetSubtable = Subtable; } /****************************************************************************** * * FUNCTION: DtInsertSubtable * * PARAMETERS: ParentTable - The Parent of the new subtable * Subtable - The new subtable to insert * * RETURN: None * * DESCRIPTION: Insert the new subtable to the parent table * *****************************************************************************/ void DtInsertSubtable ( DT_SUBTABLE *ParentTable, DT_SUBTABLE *Subtable) { DT_SUBTABLE *ChildTable; Subtable->Peer = NULL; Subtable->Parent = ParentTable; Subtable->Depth = ParentTable->Depth + 1; /* Link the new entry into the child list */ if (!ParentTable->Child) { ParentTable->Child = Subtable; } else { /* Walk to the end of the child list */ ChildTable = ParentTable->Child; while (ChildTable->Peer) { ChildTable = ChildTable->Peer; } /* Add new subtable at the end of the child list */ ChildTable->Peer = Subtable; } } /****************************************************************************** * * FUNCTION: DtPushSubtable * * PARAMETERS: Subtable - Subtable to push * * RETURN: None * * DESCRIPTION: Push a subtable onto a subtable stack * *****************************************************************************/ void DtPushSubtable ( DT_SUBTABLE *Subtable) { Subtable->StackTop = AslGbl_SubtableStack; AslGbl_SubtableStack = Subtable; } /****************************************************************************** * * FUNCTION: DtPopSubtable * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Pop a subtable from a subtable stack. Uses global SubtableStack * *****************************************************************************/ void DtPopSubtable ( void) { DT_SUBTABLE *Subtable; Subtable = AslGbl_SubtableStack; if (Subtable) { AslGbl_SubtableStack = Subtable->StackTop; } } /****************************************************************************** * * FUNCTION: DtPeekSubtable * * PARAMETERS: None * * RETURN: The subtable on top of stack * * DESCRIPTION: Get the subtable on top of stack * *****************************************************************************/ DT_SUBTABLE * DtPeekSubtable ( void) { return (AslGbl_SubtableStack); } /****************************************************************************** * * FUNCTION: DtGetNextSubtable * * PARAMETERS: ParentTable - Parent table whose children we are * getting * ChildTable - Previous child that was found. * The NEXT child will be returned * * RETURN: Pointer to the NEXT child or NULL if none is found. * * DESCRIPTION: Return the next peer subtable within the tree. * *****************************************************************************/ DT_SUBTABLE * DtGetNextSubtable ( DT_SUBTABLE *ParentTable, DT_SUBTABLE *ChildTable) { ACPI_FUNCTION_ENTRY (); if (!ChildTable) { /* It's really the parent's _scope_ that we want */ return (ParentTable->Child); } /* Otherwise just return the next peer (NULL if at end-of-list) */ return (ChildTable->Peer); } /****************************************************************************** * * FUNCTION: DtGetParentSubtable * * PARAMETERS: Subtable - Current subtable * * RETURN: Parent of the given subtable * * DESCRIPTION: Get the parent of the given subtable in the tree * *****************************************************************************/ DT_SUBTABLE * DtGetParentSubtable ( DT_SUBTABLE *Subtable) { if (!Subtable) { return (NULL); } return (Subtable->Parent); } /****************************************************************************** * * FUNCTION: DtGetSubtableLength * * PARAMETERS: Field - Current field list pointer * Info - Data table info * * RETURN: Subtable length * * DESCRIPTION: Get length of bytes needed to compile the subtable * *****************************************************************************/ UINT32 DtGetSubtableLength ( DT_FIELD *Field, ACPI_DMTABLE_INFO *Info) { UINT32 ByteLength = 0; UINT8 Step; UINT8 i; /* Walk entire Info table; Null name terminates */ for (; Info->Name; Info++) { if (Info->Opcode == ACPI_DMT_EXTRA_TEXT) { continue; } if (!Field) { goto Error; } ByteLength += DtGetFieldLength (Field, Info); switch (Info->Opcode) { case ACPI_DMT_GAS: Step = 5; break; case ACPI_DMT_HESTNTFY: Step = 9; break; case ACPI_DMT_IORTMEM: Step = 10; break; default: Step = 1; break; } for (i = 0; i < Step; i++) { if (!Field) { goto Error; } Field = Field->Next; } } return (ByteLength); Error: if (!Field) { sprintf (AslGbl_MsgBuffer, "Found NULL field - Field name \"%s\" needed", Info->Name); DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, AslGbl_MsgBuffer); } return (ASL_EOF); } /****************************************************************************** * * FUNCTION: DtSetSubtableLength * * PARAMETERS: Subtable - Subtable * * RETURN: None * * DESCRIPTION: Set length of the subtable into its length field * *****************************************************************************/ void DtSetSubtableLength ( DT_SUBTABLE *Subtable) { if (!Subtable->LengthField) { return; } memcpy (Subtable->LengthField, &Subtable->TotalLength, Subtable->SizeOfLengthField); } acpica-unix-20250404/source/compiler/readme.txt0000775000175000017500000001043714773714132020656 0ustar ivanhuivanhu/* * Miscellaneous instructions for building and using the iASL compiler. */ Last update 9 December 2013. 1) Generating iASL from source ------------------------------ Generation of the ASL compiler from source code requires these items: 1) The ACPICA source code tree. 2) An ANSI C compiler. 3) The Flex (or Lex) lexical analyzer generator. 4) The Bison (or Yacc) parser generator. There are three major ACPICA source code components that are required to generate the compiler (Basically, the entire ACPICA source tree should be installed): 1) The ASL compiler source. 2) The ACPICA Core Subsystem source. In particular, the Namespace Manager component is used to create an internal ACPI namespace and symbol table, and the AML Interpreter is used to evaluate constant expressions. 3) The "common" source directory that is used for all ACPI components. 1a) Notes for Linux/Unix generation ----------------------------------- iASL has been generated with these versions of Flex/Bison: flex: Version 2.5.32 bison: Version 2.6.2 Other required packages: make gcc C compiler m4 (macro processor required by bison) On Linux/Unix systems, the following commands will build the compiler: cd acpica (or cd acpica/generate/unix) make clean make iasl 1b) Notes for Windows generation -------------------------------- On Windows, the Visual Studio 2008 project file appears in this directory: generate/msvc9/AcpiComponents.sln The Windows versions of GNU Flex/Bison must be installed, and they must be installed in a directory that contains no embedded spaces in the pathname. They cannot be installed in the default "c:\Program Files" directory. This is a bug in Bison. The default Windows project file for iASL assumes that these tools are installed at this location: c:\GnuWin32 Once the tools are installed, ensure that this path is added to the default system $Path environment variable: c:\GnuWin32\bin Goto: ControlPanel/System/AdvancedSystemSettings/EnvironmentVariables Important: Now Windows must be rebooted to make the system aware of the updated $Path. Otherwise, Bison will not be able to find the M4 interpreter library and will fail. iASL has been generated with these versions of Flex/Bison for Windows: Flex for Windows: V2.5.4a Bison for Windows: V2.4.1 Flex is available at: http://gnuwin32.sourceforge.net/packages/flex.htm Bison is available at: http://gnuwin32.sourceforge.net/packages/bison.htm 2) Integration as a custom tool for Visual Studio ------------------------------------------------- This procedure adds the iASL compiler as a custom tool that can be used to compile ASL source files. The output is sent to the VC output window. a) Select Tools->Customize. b) Select the "Tools" tab. c) Scroll down to the bottom of the "Menu Contents" window. There you will see an empty rectangle. Click in the rectangle to enter a name for this tool. d) Type "iASL Compiler" in the box and hit enter. You can now edit the other fields for this new custom tool. e) Enter the following into the fields: Command: C:\Acpi\iasl.exe Arguments: -vi "$(FilePath)" Initial Directory "$(FileDir)" Use Output Window "Command" must be the path to wherever you copied the compiler. "-vi" instructs the compiler to produce messages appropriate for VC. Quotes around FilePath and FileDir enable spaces in filenames. f) Select "Close". These steps will add the compiler to the tools menu as a custom tool. By enabling "Use Output Window", you can click on error messages in the output window and the source file and source line will be automatically displayed by VC. Also, you can use F4 to step through the messages and the corresponding source line(s). 3) Integrating iASL into a Visual Studio ASL project build ---------------------------------------------------------- This procedure creates a project that compiles ASL files to AML. a) Create a new, empty project and add your .ASL files to the project b) For all ASL files in the project, specify a custom build (under Project/Settings/CustomBuild with the following settings (or similar): Commands: c:\acpi\libraries\iasl.exe -vs -vi "$(InputPath)" Output: $(InputDir)\$(InputPath).aml acpica-unix-20250404/source/compiler/aslprepkg.c0000775000175000017500000006560114773714131021016 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslprepkg - support for ACPI predefined name package objects * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acpredef.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslprepkg") /* Local prototypes */ static ACPI_PARSE_OBJECT * ApCheckPackageElements ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op, UINT8 Type1, UINT32 Count1, UINT8 Type2, UINT32 Count2); static void ApCheckPackageList ( const char *PredefinedName, ACPI_PARSE_OBJECT *ParentOp, const ACPI_PREDEFINED_INFO *Package, UINT32 StartIndex, UINT32 Count); static void ApPackageTooSmall ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op, UINT32 Count, UINT32 ExpectedCount); static void ApZeroLengthPackage ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op); static void ApPackageTooLarge ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op, UINT32 Count, UINT32 ExpectedCount); static void ApCustomPackage ( ACPI_PARSE_OBJECT *ParentOp, const ACPI_PREDEFINED_INFO *Predefined); /******************************************************************************* * * FUNCTION: ApCheckPackage * * PARAMETERS: ParentOp - Parser op for the package * Predefined - Pointer to package-specific info for * the method * * RETURN: None * * DESCRIPTION: Top-level validation for predefined name return package * objects. * ******************************************************************************/ void ApCheckPackage ( ACPI_PARSE_OBJECT *ParentOp, const ACPI_PREDEFINED_INFO *Predefined) { ACPI_PARSE_OBJECT *Op; const ACPI_PREDEFINED_INFO *Package; ACPI_STATUS Status; UINT32 ExpectedCount; UINT32 Count; UINT32 i; /* The package info for this name is in the next table entry */ Package = Predefined + 1; /* First child is the package length */ Op = ParentOp->Asl.Child; Count = (UINT32) Op->Asl.Value.Integer; /* * Many of the variable-length top-level packages are allowed to simply * have zero elements. This allows the BIOS to tell the host that even * though the predefined name/method exists, the feature is not supported. * Other package types require one or more elements. In any case, there * is no need to continue validation. */ if (!Count) { switch (Package->RetInfo.Type) { case ACPI_PTYPE1_FIXED: case ACPI_PTYPE1_OPTION: case ACPI_PTYPE2_PKG_COUNT: case ACPI_PTYPE2_REV_FIXED: ApZeroLengthPackage (Predefined->Info.Name, ParentOp); break; case ACPI_PTYPE1_VAR: case ACPI_PTYPE2: case ACPI_PTYPE2_COUNT: case ACPI_PTYPE2_FIXED: case ACPI_PTYPE2_MIN: case ACPI_PTYPE2_FIX_VAR: case ACPI_PTYPE2_VAR_VAR: default: break; } return; } /* Get the first element of the package */ Op = Op->Asl.Next; /* Decode the package type */ switch (Package->RetInfo.Type) { case ACPI_PTYPE_CUSTOM: ApCustomPackage (ParentOp, Predefined); break; case ACPI_PTYPE1_FIXED: /* * The package count is fixed and there are no subpackages * * If package is too small, exit. * If package is larger than expected, issue warning but continue */ ExpectedCount = Package->RetInfo.Count1 + Package->RetInfo.Count2; if (Count < ExpectedCount) { goto PackageTooSmall; } else if (Count > ExpectedCount) { ApPackageTooLarge (Predefined->Info.Name, ParentOp, Count, ExpectedCount); } /* Validate all elements of the package */ ApCheckPackageElements (Predefined->Info.Name, Op, Package->RetInfo.ObjectType1, Package->RetInfo.Count1, Package->RetInfo.ObjectType2, Package->RetInfo.Count2); break; case ACPI_PTYPE1_VAR: /* * The package count is variable, there are no subpackages, * and all elements must be of the same type */ for (i = 0; i < Count; i++) { if (!Op) { /* * If we get to this point, it means that the package length * is larger than the initializer list. Stop processing the * package and return because we have run out of package * elements to analyze. */ return; } ApCheckObjectType (Predefined->Info.Name, Op, Package->RetInfo.ObjectType1, i); Op = Op->Asl.Next; } break; case ACPI_PTYPE1_OPTION: /* * The package count is variable, there are no subpackages. * There are a fixed number of required elements, and a variable * number of optional elements. * * Check if package is at least as large as the minimum required */ ExpectedCount = Package->RetInfo3.Count; if (Count < ExpectedCount) { goto PackageTooSmall; } /* Variable number of sub-objects */ for (i = 0; i < Count; i++) { if (i < Package->RetInfo3.Count) { /* These are the required package elements (0, 1, or 2) */ ApCheckObjectType (Predefined->Info.Name, Op, Package->RetInfo3.ObjectType[i], i); } else { /* These are the optional package elements */ ApCheckObjectType (Predefined->Info.Name, Op, Package->RetInfo3.TailObjectType, i); } Op = Op->Asl.Next; } break; case ACPI_PTYPE2_REV_FIXED: /* First element is the (Integer) revision */ ApCheckObjectType (Predefined->Info.Name, Op, ACPI_RTYPE_INTEGER, 0); Op = Op->Asl.Next; Count--; /* Examine the subpackages */ ApCheckPackageList (Predefined->Info.Name, Op, Package, 1, Count); break; case ACPI_PTYPE2_PKG_COUNT: /* First element is the (Integer) count of subpackages to follow */ Status = ApCheckObjectType (Predefined->Info.Name, Op, ACPI_RTYPE_INTEGER, 0); /* We must have an integer count from above (otherwise, use Count) */ if (ACPI_SUCCESS (Status)) { /* * Count cannot be larger than the parent package length, but * allow it to be smaller. The >= accounts for the Integer above. */ ExpectedCount = (UINT32) Op->Asl.Value.Integer; if (ExpectedCount >= Count) { goto PackageTooSmall; } Count = ExpectedCount; } Op = Op->Asl.Next; /* Examine the subpackages */ ApCheckPackageList (Predefined->Info.Name, Op, Package, 1, Count); break; case ACPI_PTYPE2_UUID_PAIR: /* The package contains a variable list of UUID Buffer/Package pairs */ /* The length of the package must be even */ if (Count & 1) { sprintf (AslGbl_MsgBuffer, "%4.4s: Package length, %d, must be even.", Predefined->Info.Name, Count); AslError (ASL_ERROR, ASL_MSG_RESERVED_PACKAGE_LENGTH, ParentOp->Asl.Child, AslGbl_MsgBuffer); } /* Validate the alternating types */ for (i = 0; i < Count; ++i) { if (i & 1) { ApCheckObjectType (Predefined->Info.Name, Op, Package->RetInfo.ObjectType2, i); } else { ApCheckObjectType (Predefined->Info.Name, Op, Package->RetInfo.ObjectType1, i); } Op = Op->Asl.Next; } break; case ACPI_PTYPE2_VAR_VAR: /* Check for minimum size (ints at beginning + 1 subpackage) */ ExpectedCount = Package->RetInfo4.Count1 + 1; if (Count < ExpectedCount) { goto PackageTooSmall; } /* Check the non-package elements at beginning of main package */ for (i = 0; i < Package->RetInfo4.Count1; ++i) { ApCheckObjectType (Predefined->Info.Name, Op, Package->RetInfo4.ObjectType1, i); Op = Op->Asl.Next; } /* Examine the variable-length list of subpackages */ ApCheckPackageList (Predefined->Info.Name, Op, Package, Package->RetInfo4.Count1, Count); break; case ACPI_PTYPE2: case ACPI_PTYPE2_FIXED: case ACPI_PTYPE2_MIN: case ACPI_PTYPE2_COUNT: case ACPI_PTYPE2_FIX_VAR: /* * These types all return a single Package that consists of a * variable number of subpackages. */ /* Examine the subpackages */ ApCheckPackageList (Predefined->Info.Name, Op, Package, 0, Count); break; default: return; } return; PackageTooSmall: ApPackageTooSmall (Predefined->Info.Name, ParentOp, Count, ExpectedCount); } /******************************************************************************* * * FUNCTION: ApCustomPackage * * PARAMETERS: ParentOp - Parse op for the package * Predefined - Pointer to package-specific info for * the method * * RETURN: None * * DESCRIPTION: Validate packages that don't fit into the standard model and * require custom code. * * NOTE: Currently used for the _BIX method only. When needed for two or more * methods, probably a detect/dispatch mechanism will be required. * ******************************************************************************/ static void ApCustomPackage ( ACPI_PARSE_OBJECT *ParentOp, const ACPI_PREDEFINED_INFO *Predefined) { ACPI_PARSE_OBJECT *Op; UINT32 Count; UINT32 ExpectedCount; UINT32 Version; /* First child is the package length */ Op = ParentOp->Asl.Child; Count = (UINT32) Op->Asl.Value.Integer; /* Get the version number, must be Integer */ Op = Op->Asl.Next; Version = (UINT32) Op->Asl.Value.Integer; if (Op->Asl.ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_RESERVED_OPERAND_TYPE, Op, AslGbl_MsgBuffer); return; } /* Validate count (# of elements) */ ExpectedCount = 21; /* Version 1 */ if (Version == 0) { ExpectedCount = 20; /* Version 0 */ } if (Count < ExpectedCount) { ApPackageTooSmall (Predefined->Info.Name, ParentOp, Count, ExpectedCount); return; } else if (Count > ExpectedCount) { ApPackageTooLarge (Predefined->Info.Name, ParentOp, Count, ExpectedCount); } /* Validate all elements of the package */ Op = ApCheckPackageElements (Predefined->Info.Name, Op, ACPI_RTYPE_INTEGER, 16, ACPI_RTYPE_STRING, 4); /* Version 1 has a single trailing integer */ if (Version > 0) { ApCheckPackageElements (Predefined->Info.Name, Op, ACPI_RTYPE_INTEGER, 1, 0, 0); } } /******************************************************************************* * * FUNCTION: ApCheckPackageElements * * PARAMETERS: PredefinedName - Name of the predefined object * Op - Parser op for the package * Type1 - Object type for first group * Count1 - Count for first group * Type2 - Object type for second group * Count2 - Count for second group * * RETURN: Next Op peer in the parse tree, after all specified elements * have been validated. Used for multiple validations (calls * to this function). * * DESCRIPTION: Validate all elements of a package. Works with packages that * are defined to contain up to two groups of different object * types. * ******************************************************************************/ static ACPI_PARSE_OBJECT * ApCheckPackageElements ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op, UINT8 Type1, UINT32 Count1, UINT8 Type2, UINT32 Count2) { UINT32 i; /* * Up to two groups of package elements are supported by the data * structure. All elements in each group must be of the same type. * The second group can have a count of zero. * * Aborts check upon a NULL package element, as this means (at compile * time) that the remainder of the package elements are also NULL * (This is the only way to create NULL package elements.) */ for (i = 0; (i < Count1) && Op; i++) { ApCheckObjectType (PredefinedName, Op, Type1, i); Op = Op->Asl.Next; } for (i = 0; (i < Count2) && Op; i++) { ApCheckObjectType (PredefinedName, Op, Type2, (i + Count1)); Op = Op->Asl.Next; } return (Op); } /******************************************************************************* * * FUNCTION: ApCheckPackageList * * PARAMETERS: PredefinedName - Name of the predefined object * ParentOp - Parser op of the parent package * Package - Package info for this predefined name * StartIndex - Index in parent package where list begins * ParentCount - Element count of parent package * * RETURN: None * * DESCRIPTION: Validate the individual package elements for a predefined name. * Handles the cases where the predefined name is defined as a * Package of Packages (subpackages). These are the types: * * ACPI_PTYPE2 * ACPI_PTYPE2_FIXED * ACPI_PTYPE2_MIN * ACPI_PTYPE2_COUNT * ACPI_PTYPE2_FIX_VAR * ACPI_PTYPE2_VAR_VAR * ******************************************************************************/ static void ApCheckPackageList ( const char *PredefinedName, ACPI_PARSE_OBJECT *ParentOp, const ACPI_PREDEFINED_INFO *Package, UINT32 StartIndex, UINT32 ParentCount) { ACPI_PARSE_OBJECT *SubPackageOp = ParentOp; ACPI_PARSE_OBJECT *Op; ACPI_STATUS Status; UINT32 Count; UINT32 ExpectedCount; UINT32 i; UINT32 j; /* * Validate each subpackage in the parent Package * * Note: We ignore NULL package elements on the assumption that * they will be initialized by the BIOS or other ASL code. */ for (i = 0; (i < ParentCount) && SubPackageOp; i++) { /* Each object in the list must be of type Package */ Status = ApCheckObjectType (PredefinedName, SubPackageOp, ACPI_RTYPE_PACKAGE, i + StartIndex); if (ACPI_FAILURE (Status)) { goto NextSubpackage; } /* Examine the different types of expected subpackages */ Op = SubPackageOp->Asl.Child; /* First child is the package length */ Count = (UINT32) Op->Asl.Value.Integer; Op = Op->Asl.Next; /* * Most subpackage must have at least one element, with * only rare exceptions. (_RDI) */ if (!Count && (Package->RetInfo.Type != ACPI_PTYPE2_VAR_VAR)) { ApZeroLengthPackage (PredefinedName, SubPackageOp); goto NextSubpackage; } /* * Decode the package type. * PTYPE2 indicates that a "package of packages" is expected for * this name. The various flavors of PTYPE2 indicate the number * and format of the subpackages. */ switch (Package->RetInfo.Type) { case ACPI_PTYPE2: case ACPI_PTYPE2_PKG_COUNT: case ACPI_PTYPE2_REV_FIXED: /* Each subpackage has a fixed number of elements */ ExpectedCount = Package->RetInfo.Count1 + Package->RetInfo.Count2; if (Count < ExpectedCount) { ApPackageTooSmall (PredefinedName, SubPackageOp, Count, ExpectedCount); break; } if (Count > ExpectedCount) { ApPackageTooLarge (PredefinedName, SubPackageOp, Count, ExpectedCount); break; } ApCheckPackageElements (PredefinedName, Op, Package->RetInfo.ObjectType1, Package->RetInfo.Count1, Package->RetInfo.ObjectType2, Package->RetInfo.Count2); break; case ACPI_PTYPE2_FIX_VAR: /* * Each subpackage has a fixed number of elements and an * optional element */ ExpectedCount = Package->RetInfo.Count1 + Package->RetInfo.Count2; if (Count < ExpectedCount) { ApPackageTooSmall (PredefinedName, SubPackageOp, Count, ExpectedCount); break; } ApCheckPackageElements (PredefinedName, Op, Package->RetInfo.ObjectType1, Package->RetInfo.Count1, Package->RetInfo.ObjectType2, Count - Package->RetInfo.Count1); break; case ACPI_PTYPE2_VAR_VAR: /* * Must have at least the minimum number elements. * A zero PkgCount means the number of elements is variable. */ ExpectedCount = Package->RetInfo4.PkgCount; if (ExpectedCount && (Count < ExpectedCount)) { ApPackageTooSmall (PredefinedName, SubPackageOp, Count, 1); break; } ApCheckPackageElements (PredefinedName, Op, Package->RetInfo4.SubObjectTypes, Package->RetInfo4.PkgCount, 0, 0); break; case ACPI_PTYPE2_FIXED: /* Each subpackage has a fixed length */ ExpectedCount = Package->RetInfo2.Count; if (Count < ExpectedCount) { ApPackageTooSmall (PredefinedName, SubPackageOp, Count, ExpectedCount); break; } if (Count > ExpectedCount) { ApPackageTooLarge (PredefinedName, SubPackageOp, Count, ExpectedCount); break; } /* Check each object/type combination */ for (j = 0; j < ExpectedCount; j++) { ApCheckObjectType (PredefinedName, Op, Package->RetInfo2.ObjectType[j], j); Op = Op->Asl.Next; } break; case ACPI_PTYPE2_MIN: /* Each subpackage has a variable but minimum length */ ExpectedCount = Package->RetInfo.Count1; if (Count < ExpectedCount) { ApPackageTooSmall (PredefinedName, SubPackageOp, Count, ExpectedCount); break; } /* Check the type of each subpackage element */ ApCheckPackageElements (PredefinedName, Op, Package->RetInfo.ObjectType1, Count, 0, 0); break; case ACPI_PTYPE2_COUNT: /* * First element is the (Integer) count of elements, including * the count field (the ACPI name is NumElements) */ Status = ApCheckObjectType (PredefinedName, Op, ACPI_RTYPE_INTEGER, 0); /* We must have an integer count from above (otherwise, use Count) */ if (ACPI_SUCCESS (Status)) { /* * Make sure package is large enough for the Count and is * is as large as the minimum size */ ExpectedCount = (UINT32) Op->Asl.Value.Integer; if (Count < ExpectedCount) { ApPackageTooSmall (PredefinedName, SubPackageOp, Count, ExpectedCount); break; } else if (Count > ExpectedCount) { ApPackageTooLarge (PredefinedName, SubPackageOp, Count, ExpectedCount); } /* Some names of this type have a minimum length */ if (Count < Package->RetInfo.Count1) { ExpectedCount = Package->RetInfo.Count1; ApPackageTooSmall (PredefinedName, SubPackageOp, Count, ExpectedCount); break; } Count = ExpectedCount; } /* Check the type of each subpackage element */ Op = Op->Asl.Next; ApCheckPackageElements (PredefinedName, Op, Package->RetInfo.ObjectType1, (Count - 1), 0, 0); break; default: break; } NextSubpackage: SubPackageOp = SubPackageOp->Asl.Next; } } /******************************************************************************* * * FUNCTION: ApPackageTooSmall * * PARAMETERS: PredefinedName - Name of the predefined object * Op - Current parser op * Count - Actual package element count * ExpectedCount - Expected package element count * * RETURN: None * * DESCRIPTION: Issue error message for a package that is smaller than * required. * ******************************************************************************/ static void ApPackageTooSmall ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op, UINT32 Count, UINT32 ExpectedCount) { sprintf (AslGbl_MsgBuffer, "%4.4s: length %u, required minimum is %u", PredefinedName, Count, ExpectedCount); AslError (ASL_ERROR, ASL_MSG_RESERVED_PACKAGE_LENGTH, Op, AslGbl_MsgBuffer); } /******************************************************************************* * * FUNCTION: ApZeroLengthPackage * * PARAMETERS: PredefinedName - Name of the predefined object * Op - Current parser op * * RETURN: None * * DESCRIPTION: Issue error message for a zero-length package (a package that * is required to have a non-zero length). Variable length * packages seem to be allowed to have zero length, however. * Even if not allowed, BIOS code does it. * ******************************************************************************/ static void ApZeroLengthPackage ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op) { sprintf (AslGbl_MsgBuffer, "%4.4s: length is zero", PredefinedName); AslError (ASL_ERROR, ASL_MSG_RESERVED_PACKAGE_LENGTH, Op, AslGbl_MsgBuffer); } /******************************************************************************* * * FUNCTION: ApPackageTooLarge * * PARAMETERS: PredefinedName - Name of the predefined object * Op - Current parser op * Count - Actual package element count * ExpectedCount - Expected package element count * * RETURN: None * * DESCRIPTION: Issue a remark for a package that is larger than expected. * ******************************************************************************/ static void ApPackageTooLarge ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op, UINT32 Count, UINT32 ExpectedCount) { sprintf (AslGbl_MsgBuffer, "%4.4s: length is %u, only %u required", PredefinedName, Count, ExpectedCount); AslError (ASL_REMARK, ASL_MSG_RESERVED_PACKAGE_LENGTH, Op, AslGbl_MsgBuffer); } acpica-unix-20250404/source/compiler/aslxrefout.c0000775000175000017500000005545014773714131021223 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslxrefout.c - support for optional cross-reference file * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acnamesp.h" #include "acparser.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslxrefout") /* Local prototypes */ static ACPI_STATUS OtXrefWalkPart2 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS OtXrefWalkPart3 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS OtXrefAnalysisWalkPart1 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS OtXrefAnalysisWalkPart2 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS OtXrefAnalysisWalkPart3 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); /******************************************************************************* * * FUNCTION: OtPrintHeaders * * PARAMETERS: Message - Main header message * * RETURN: None * * DESCRIPTION: Emits the main header message along with field descriptions * ******************************************************************************/ void OtPrintHeaders ( char *Message) { UINT32 Length; Length = strlen (Message); FlPrintFile (ASL_FILE_XREF_OUTPUT, "\n\n%s\n", Message); while (Length) { FlPrintFile (ASL_FILE_XREF_OUTPUT, "-"); Length--; } FlPrintFile (ASL_FILE_XREF_OUTPUT, "\n\nLineno %-40s Description\n", "Full Pathname"); } /******************************************************************************* * * FUNCTION: OtCreateXrefFile * * PARAMETERS: None * * RETURN: None * * DESCRIPTION Main entry point for parts 2 and 3 of the cross-reference * file. * ******************************************************************************/ void OtCreateXrefFile ( void) { ASL_XREF_INFO XrefInfo; /* Build cross-reference output file if requested */ if (!AslGbl_CrossReferenceOutput) { return; } memset (&XrefInfo, 0, sizeof (ASL_XREF_INFO)); /* Cross-reference output file, part 2 (Method invocations) */ OtPrintHeaders ("Part 2: Method Reference Map " "(Invocations of each user-defined control method)"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, OtXrefWalkPart2, NULL, &XrefInfo); /* Cross-reference output file, part 3 (All other object refs) */ OtPrintHeaders ("Part 3: Full Object Reference Map " "(Methods that reference each object in namespace"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, OtXrefWalkPart3, NULL, &XrefInfo); /* Cross-reference summary */ FlPrintFile (ASL_FILE_XREF_OUTPUT, "\n\nObject Summary\n"); FlPrintFile (ASL_FILE_XREF_OUTPUT, "\nTotal methods: %u\n", XrefInfo.TotalPredefinedMethods + XrefInfo.TotalUserMethods); FlPrintFile (ASL_FILE_XREF_OUTPUT, "Total predefined methods: %u\n", XrefInfo.TotalPredefinedMethods); FlPrintFile (ASL_FILE_XREF_OUTPUT, "\nTotal user methods: %u\n", XrefInfo.TotalUserMethods); FlPrintFile (ASL_FILE_XREF_OUTPUT, "Total unreferenced user methods %u\n", XrefInfo.TotalUnreferenceUserMethods); FlPrintFile (ASL_FILE_XREF_OUTPUT, "\nTotal defined objects: %u\n", XrefInfo.TotalObjects); FlPrintFile (ASL_FILE_XREF_OUTPUT, "Total unreferenced objects: %u\n", XrefInfo.TotalUnreferencedObjects); } /* * Part 1 of the cross reference file. This part emits the namespace objects * that are referenced by each control method in the namespace. * * Part 2 and 3 are below part 1. */ /******************************************************************************* * * FUNCTION: OtXrefWalkPart1 * * PARAMETERS: Op - Current parse Op * Level - Current tree nesting level * MethodInfo - Info block for the current method * * * RETURN: None * * DESCRIPTION: Entry point for the creation of the method call reference map. * For each control method in the namespace, all other methods * that invoke the method are listed. Predefined names/methods * that start with an underscore are ignored, because these are * essentially external/public interfaces. * DESCRIPTION: Entry point for the creation of the object reference map. * For each control method in the namespace, all objects that * are referenced by the method are listed. * * Called during a normal namespace walk, once per namespace * object. (MtMethodAnalysisWalkBegin) * ******************************************************************************/ void OtXrefWalkPart1 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, ASL_METHOD_INFO *MethodInfo) { ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *NextOp; ACPI_PARSE_OBJECT *FieldOp; char *ParentPath; UINT32 Length; ACPI_STATUS Status; switch (Op->Asl.ParseOpcode) { case PARSEOP_NAMESEG: case PARSEOP_NAMESTRING: case PARSEOP_METHODCALL: if (!MethodInfo || (MethodInfo->Op->Asl.Child == Op) || !Op->Asl.Node) { break; } MethodInfo->CurrentOp = Op; Node = Op->Asl.Node; /* Find all objects referenced by this method */ Status = TrWalkParseTree (MethodInfo->Op, ASL_WALK_VISIT_DOWNWARD, OtXrefAnalysisWalkPart1, NULL, MethodInfo); if (Status == AE_CTRL_TERMINATE) { ParentPath = AcpiNsGetNormalizedPathname (Node, TRUE); FlPrintFile (ASL_FILE_XREF_OUTPUT, " %-40s %s", ParentPath, AcpiUtGetTypeName (Node->Type)); ACPI_FREE (ParentPath); switch (Node->Type) { /* Handle externals */ case ACPI_TYPE_ANY: case ACPI_TYPE_FIELD_UNIT: FlPrintFile (ASL_FILE_XREF_OUTPUT, " "); break; case ACPI_TYPE_INTEGER: FlPrintFile (ASL_FILE_XREF_OUTPUT, " %8.8X%8.8X", ACPI_FORMAT_UINT64 (Op->Asl.Value.Integer)); break; case ACPI_TYPE_METHOD: FlPrintFile (ASL_FILE_XREF_OUTPUT, " Invocation (%u args)", Node->ArgCount); break; case ACPI_TYPE_BUFFER_FIELD: NextOp = Node->Op; /* Create Buffer Field Op */ switch (NextOp->Asl.ParseOpcode) { case PARSEOP_CREATEBITFIELD: Length = 1; break; case PARSEOP_CREATEBYTEFIELD: Length = 8; break; case PARSEOP_CREATEWORDFIELD: Length = 16; break; case PARSEOP_CREATEDWORDFIELD: Length = 32; break; case PARSEOP_CREATEQWORDFIELD: Length = 64; break; default: Length = 0; break; } NextOp = NextOp->Asl.Child; /* Buffer name */ if (!NextOp->Asl.ExternalName) { FlPrintFile (ASL_FILE_XREF_OUTPUT, " in Arg/Local"); } else { ParentPath = AcpiNsGetNormalizedPathname ( NextOp->Asl.Node, TRUE); FlPrintFile (ASL_FILE_XREF_OUTPUT, " (%.2u bit) in Buffer %s", Length, ParentPath); ACPI_FREE (ParentPath); } break; case ACPI_TYPE_LOCAL_REGION_FIELD: NextOp = Node->Op; FieldOp = NextOp->Asl.Parent; NextOp = FieldOp->Asl.Child; ParentPath = AcpiNsGetNormalizedPathname ( NextOp->Asl.Node, TRUE); FlPrintFile (ASL_FILE_XREF_OUTPUT, " (%.2u bit) in Region %s", (UINT32) Node->Op->Asl.Child->Asl.Value.Integer, ParentPath); ACPI_FREE (ParentPath); if (FieldOp->Asl.ParseOpcode == PARSEOP_FIELD) { Node = NextOp->Asl.Node; /* Region node */ NextOp = Node->Op; /* PARSEOP_REGION */ NextOp = NextOp->Asl.Child; /* Region name */ NextOp = NextOp->Asl.Next; /* Get region space/addr/len? */ FlPrintFile (ASL_FILE_XREF_OUTPUT, " (%s)", AcpiUtGetRegionName ((UINT8) NextOp->Asl.Value.Integer)); } break; default: break; } FlPrintFile (ASL_FILE_XREF_OUTPUT, "\n"); } break; case PARSEOP_METHOD: ParentPath = AcpiNsGetNormalizedPathname (Op->Asl.Node, TRUE); FlPrintFile (ASL_FILE_XREF_OUTPUT, "\n[%5u] %-40s %s Declaration (%u args)\n", Op->Asl.LogicalLineNumber, ParentPath, AcpiUtGetTypeName (Op->Asl.Node->Type), Op->Asl.Node->ArgCount); ACPI_FREE (ParentPath); break; default: break; } } /******************************************************************************* * * FUNCTION: OtXrefAnalysisWalkPart1 * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Secondary walk for cross-reference part 1. * ******************************************************************************/ static ACPI_STATUS OtXrefAnalysisWalkPart1 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ASL_METHOD_INFO *MethodInfo = (ASL_METHOD_INFO *) Context; ACPI_PARSE_OBJECT *Next; /* Only interested in name string Ops -- ignore all others */ if ((Op->Asl.ParseOpcode != PARSEOP_NAMESEG) && (Op->Asl.ParseOpcode != PARSEOP_NAMESTRING) && (Op->Asl.ParseOpcode != PARSEOP_METHODCALL)) { return (AE_OK); } /* No node means a locally declared object -- ignore */ if (!Op->Asl.Node) { return (AE_OK); } /* When we encounter the source Op, we are done */ Next = MethodInfo->CurrentOp; if (Next == Op) { return (AE_CTRL_TERMINATE); } /* If we have a name match, this Op is a duplicate */ if ((Next->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Next->Asl.ParseOpcode == PARSEOP_NAMESTRING) || (Next->Asl.ParseOpcode == PARSEOP_METHODCALL)) { if (!strcmp (Op->Asl.ExternalName, Next->Asl.ExternalName)) { return (AE_ALREADY_EXISTS); } } return (AE_OK); } /* * Part 2 of the cross reference file. This part emits the names of each * non-predefined method in the namespace (user methods), along with the * names of each control method that references that method. */ /******************************************************************************* * * FUNCTION: OtXrefWalkPart2 * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: For each control method in the namespace, we will re-walk the * namespace to find each and every invocation of that control * method. Brute force, but does not matter, even for large * namespaces. Ignore predefined names (start with underscore). * ******************************************************************************/ static ACPI_STATUS OtXrefWalkPart2 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ASL_XREF_INFO *XrefInfo = (ASL_XREF_INFO *) Context; ACPI_NAMESPACE_NODE *Node; char *ParentPath; /* Looking for Method Declaration Ops only */ if (!Op->Asl.Node || (Op->Asl.ParseOpcode != PARSEOP_METHOD)) { return (AE_OK); } /* Ignore predefined names */ if (Op->Asl.Node->Name.Ascii[0] == '_') { XrefInfo->TotalPredefinedMethods++; return (AE_OK); } Node = Op->Asl.Node; ParentPath = AcpiNsGetNormalizedPathname (Node, TRUE); FlPrintFile (ASL_FILE_XREF_OUTPUT, "\n[%5u] %-40s %s Declaration (%u args)\n", Op->Asl.LogicalLineNumber, ParentPath, AcpiUtGetTypeName (Node->Type), Node->ArgCount); XrefInfo->TotalUserMethods++; XrefInfo->ThisMethodInvocations = 0; XrefInfo->MethodOp = Op; (void) TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, OtXrefAnalysisWalkPart2, NULL, XrefInfo); if (!XrefInfo->ThisMethodInvocations) { FlPrintFile (ASL_FILE_XREF_OUTPUT, " Zero invocations of this method in this module\n"); XrefInfo->TotalUnreferenceUserMethods++; } else { FlPrintFile (ASL_FILE_XREF_OUTPUT, " %u invocations of method %s in this module\n", XrefInfo->ThisMethodInvocations, ParentPath); } ACPI_FREE (ParentPath); return (AE_OK); } /******************************************************************************* * * FUNCTION: OtXrefAnalysisWalkPart2 * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: For every Op that is a method invocation, emit a reference * line if the Op is invoking the target method. * ******************************************************************************/ static ACPI_STATUS OtXrefAnalysisWalkPart2 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ASL_XREF_INFO *XrefInfo = (ASL_XREF_INFO *) Context; ACPI_PARSE_OBJECT *CallerOp; char *CallerFullPathname; /* Looking for MethodCall Ops only */ if (!Op->Asl.Node || (Op->Asl.ParseOpcode != PARSEOP_METHODCALL)) { return (AE_OK); } /* If not a match to the target method, we are done */ if (Op->Asl.Node != XrefInfo->MethodOp->Asl.Node) { return (AE_CTRL_DEPTH); } /* Find parent method to get method caller namepath */ CallerOp = Op->Asl.Parent; while (CallerOp && (CallerOp->Asl.ParseOpcode != PARSEOP_METHOD)) { CallerOp = CallerOp->Asl.Parent; } /* There is no parent method for External() statements */ if (!CallerOp) { return (AE_OK); } CallerFullPathname = AcpiNsGetNormalizedPathname ( CallerOp->Asl.Node, TRUE); FlPrintFile (ASL_FILE_XREF_OUTPUT, "[%5u] %-40s Invocation path: %s\n", Op->Asl.LogicalLineNumber, CallerFullPathname, Op->Asl.ExternalName); ACPI_FREE (CallerFullPathname); XrefInfo->ThisMethodInvocations++; return (AE_OK); } /* * Part 3 of the cross reference file. This part emits the names of each * non-predefined method in the namespace (user methods), along with the * names of each control method that references that method. */ /******************************************************************************* * * FUNCTION: OtXrefWalkPart3 * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Cross-reference part 3. references to objects other than * control methods. * ******************************************************************************/ static ACPI_STATUS OtXrefWalkPart3 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ASL_XREF_INFO *XrefInfo = (ASL_XREF_INFO *) Context; ACPI_NAMESPACE_NODE *Node; char *ParentPath; const ACPI_OPCODE_INFO *OpInfo; /* Ignore method declarations */ if (!Op->Asl.Node || (Op->Asl.ParseOpcode == PARSEOP_METHOD)) { return (AE_OK); } OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); if (!(OpInfo->Class & AML_CLASS_NAMED_OBJECT)) { return (AE_OK); } /* Only care about named object creation opcodes */ if ((Op->Asl.ParseOpcode != PARSEOP_NAME) && (Op->Asl.ParseOpcode != PARSEOP_DEVICE) && (Op->Asl.ParseOpcode != PARSEOP_MUTEX) && (Op->Asl.ParseOpcode != PARSEOP_OPERATIONREGION) && (Op->Asl.ParseOpcode != PARSEOP_FIELD) && (Op->Asl.ParseOpcode != PARSEOP_EVENT)) { return (AE_OK); } /* Ignore predefined names */ if (Op->Asl.Node->Name.Ascii[0] == '_') { return (AE_OK); } Node = Op->Asl.Node; ParentPath = AcpiNsGetNormalizedPathname (Node, TRUE); FlPrintFile (ASL_FILE_XREF_OUTPUT, "\n[%5u] %-40s %s Declaration\n", Op->Asl.LogicalLineNumber, ParentPath, AcpiUtGetTypeName (Node->Type)); ACPI_FREE (ParentPath); XrefInfo->MethodOp = Op; XrefInfo->ThisObjectReferences = 0; XrefInfo->TotalObjects = 0; (void) TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, OtXrefAnalysisWalkPart3, NULL, XrefInfo); if (!XrefInfo->ThisObjectReferences) { FlPrintFile (ASL_FILE_XREF_OUTPUT, " Zero references to this object in this module\n"); XrefInfo->TotalUnreferencedObjects++; } else { FlPrintFile (ASL_FILE_XREF_OUTPUT, " %u references to this object in this module [%s]\n", XrefInfo->ThisObjectReferences, ParentPath); } return (AE_OK); } /******************************************************************************* * * FUNCTION: OtXrefAnalysisWalkPart3 * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Secondary walk for cross-reference part 3. * ******************************************************************************/ static ACPI_STATUS OtXrefAnalysisWalkPart3 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ASL_XREF_INFO *XrefInfo = (ASL_XREF_INFO *) Context; char *CallerFullPathname = NULL; ACPI_PARSE_OBJECT *CallerOp; const char *Operator; if (!Op->Asl.Node) { return (AE_OK); } XrefInfo->TotalObjects++; /* Ignore Op that actually defined the object */ if (Op == XrefInfo->MethodOp) { return (AE_OK); } /* Only interested in Ops that reference the target node */ if (Op->Asl.Node != XrefInfo->MethodOp->Asl.Node) { return (AE_OK); } /* Find parent "open scope" object to get method caller namepath */ CallerOp = Op->Asl.Parent; while (CallerOp && (CallerOp->Asl.ParseOpcode != PARSEOP_NAME) && (CallerOp->Asl.ParseOpcode != PARSEOP_METHOD) && (CallerOp->Asl.ParseOpcode != PARSEOP_DEVICE) && (CallerOp->Asl.ParseOpcode != PARSEOP_POWERRESOURCE) && (CallerOp->Asl.ParseOpcode != PARSEOP_PROCESSOR) && (CallerOp->Asl.ParseOpcode != PARSEOP_THERMALZONE)) { CallerOp = CallerOp->Asl.Parent; } if (CallerOp == XrefInfo->CurrentMethodOp) { return (AE_OK); } /* Null CallerOp means the caller is at the namespace root */ if (CallerOp) { CallerFullPathname = AcpiNsGetNormalizedPathname ( CallerOp->Asl.Node, TRUE); } /* There are some special cases for the oddball operators */ if (Op->Asl.ParseOpcode == PARSEOP_SCOPE) { Operator = "Scope"; } else if (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_ALIAS) { Operator = "Alias"; } else if (!CallerOp) { Operator = "ModLevel"; } else { Operator = AcpiUtGetTypeName (CallerOp->Asl.Node->Type); } FlPrintFile (ASL_FILE_XREF_OUTPUT, "[%5u] %-40s %-8s via path: %s, Operator: %s\n", Op->Asl.LogicalLineNumber, CallerFullPathname ? CallerFullPathname : "", Operator, Op->Asl.ExternalName, Op->Asl.Parent->Asl.ParseOpName); if (!CallerOp) { CallerOp = ACPI_TO_POINTER (0xFFFFFFFF); } if (CallerFullPathname) { ACPI_FREE (CallerFullPathname); } XrefInfo->CurrentMethodOp = CallerOp; XrefInfo->ThisObjectReferences++; return (AE_OK); } acpica-unix-20250404/source/compiler/aslexternal.c0000775000175000017500000003757114773714131021355 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslexternal - ASL External opcode compiler support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acparser.h" #include "amlcode.h" #include "acnamesp.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslexternal") /* Local prototypes */ static void ExInsertArgCount ( ACPI_PARSE_OBJECT *Op); static void ExMoveExternals ( ACPI_PARSE_OBJECT *DefinitionBlockOp); /******************************************************************************* * * FUNCTION: ExDoExternal * * PARAMETERS: Op - Current Parse node * * RETURN: None * * DESCRIPTION: Add an External() definition to the global list. This list * is used to generate External opcodes. * ******************************************************************************/ void ExDoExternal ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *ListOp; ACPI_PARSE_OBJECT *Prev; ACPI_PARSE_OBJECT *Next; ACPI_PARSE_OBJECT *ArgCountOp; ACPI_PARSE_OBJECT *TypeOp; ACPI_PARSE_OBJECT *ExternTypeOp = Op->Asl.Child->Asl.Next; UINT32 ExternType; UINT8 ParamCount = ASL_EXTERNAL_METHOD_UNKNOWN_PARAMS; UINT32 ParamTypes[ACPI_METHOD_NUM_ARGS]; ExternType = AnMapObjTypeToBtype (ExternTypeOp); if (ExternType != ACPI_BTYPE_METHOD) { /* * If this is not a method, it has zero parameters this local variable * is used only for methods */ ParamCount = 0; } /* * The parser allows optional parameter return types regardless of the * type. Check object type keyword emit error if optional parameter/return * types exist. * * Check the parameter return type */ TypeOp = ExternTypeOp->Asl.Next; if (TypeOp->Asl.Child) { /* Ignore the return type for now. */ (void) MtProcessTypeOp (TypeOp->Asl.Child); if (ExternType != ACPI_BTYPE_METHOD) { sprintf (AslGbl_MsgBuffer, "Found type [%s]", AcpiUtGetTypeName(ExternType)); AslError (ASL_ERROR, ASL_MSG_EXTERN_INVALID_RET_TYPE, TypeOp, AslGbl_MsgBuffer); } } /* Check the parameter types */ TypeOp = TypeOp->Asl.Next; if (TypeOp->Asl.Child) { ParamCount = MtProcessParameterTypeList (TypeOp->Asl.Child, ParamTypes); if (ExternType != ACPI_BTYPE_METHOD) { sprintf (AslGbl_MsgBuffer, "Found type [%s]", AcpiUtGetTypeName(ExternType)); AslError (ASL_ERROR, ASL_MSG_EXTERN_INVALID_PARAM_TYPE, TypeOp, AslGbl_MsgBuffer); } } ArgCountOp = Op->Asl.Child->Asl.Next->Asl.Next; ArgCountOp->Asl.AmlOpcode = AML_RAW_DATA_BYTE; ArgCountOp->Asl.ParseOpcode = PARSEOP_BYTECONST; ArgCountOp->Asl.Value.Integer = ParamCount; UtSetParseOpName (ArgCountOp); /* Create new list node of arbitrary type */ ListOp = TrAllocateOp (PARSEOP_DEFAULT_ARG); /* Store External node as child */ ListOp->Asl.Child = Op; ListOp->Asl.Next = NULL; if (AslGbl_ExternalsListHead) { /* Link new External to end of list */ Prev = AslGbl_ExternalsListHead; Next = Prev; while (Next) { Prev = Next; Next = Next->Asl.Next; } Prev->Asl.Next = ListOp; } else { AslGbl_ExternalsListHead = ListOp; } } /******************************************************************************* * * FUNCTION: ExInsertArgCount * * PARAMETERS: Op - Op for a method invocation * * RETURN: None * * DESCRIPTION: Obtain the number of arguments for a control method -- from * the actual invocation. * ******************************************************************************/ static void ExInsertArgCount ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; ACPI_PARSE_OBJECT *NameOp; ACPI_PARSE_OBJECT *Child; ACPI_PARSE_OBJECT *ArgCountOp; char * ExternalName; char * CallName; UINT16 ArgCount = 0; ACPI_STATUS Status; CallName = AcpiNsGetNormalizedPathname (Op->Asl.Node, TRUE); Next = AslGbl_ExternalsListHead; while (Next) { ArgCount = 0; /* Skip if External node already handled */ if (Next->Asl.Child->Asl.CompileFlags & OP_VISITED) { Next = Next->Asl.Next; continue; } NameOp = Next->Asl.Child->Asl.Child; ExternalName = AcpiNsGetNormalizedPathname (NameOp->Asl.Node, TRUE); if (strcmp (CallName, ExternalName)) { ACPI_FREE (ExternalName); Next = Next->Asl.Next; continue; } Next->Asl.Child->Asl.CompileFlags |= OP_VISITED; /* * Since we will reposition Externals to the Root, set Namepath * to the fully qualified name and recalculate the aml length */ Status = UtInternalizeName (ExternalName, &NameOp->Asl.Value.String); ACPI_FREE (ExternalName); if (ACPI_FAILURE (Status)) { AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, NULL, "- Could not Internalize External"); break; } NameOp->Asl.AmlLength = strlen (NameOp->Asl.Value.String); /* Get argument count */ Child = Op->Asl.Child; while (Child) { ArgCount++; Child = Child->Asl.Next; } /* Setup ArgCount operand */ ArgCountOp = Next->Asl.Child->Asl.Child->Asl.Next->Asl.Next; ArgCountOp->Asl.Value.Integer = ArgCount; break; } ACPI_FREE (CallName); } /******************************************************************************* * * FUNCTION: ExAmlExternalWalkBegin * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: None * * DESCRIPTION: Parse tree walk to create external opcode list for methods. * ******************************************************************************/ ACPI_STATUS ExAmlExternalWalkBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { /* External list head saved in the definition block op */ if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK) { AslGbl_ExternalsListHead = Op->Asl.Value.Arg; } if (!AslGbl_ExternalsListHead) { return (AE_OK); } if (Op->Asl.ParseOpcode != PARSEOP_METHODCALL) { return (AE_OK); } /* * The NameOp child under an ExternalOp gets turned into PARSE_METHODCALL * by XfNamespaceLocateBegin(). Ignore these. */ if (Op->Asl.Parent && Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_EXTERNAL) { return (AE_OK); } ExInsertArgCount (Op); return (AE_OK); } /******************************************************************************* * * FUNCTION: ExAmlExternalWalkEnd * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: None * * DESCRIPTION: Parse tree walk to create external opcode list for methods. * Here, we just want to catch the case where a definition block * has been completed. Then we move all of the externals into * a single block in the parse tree and thus the AML code. * ******************************************************************************/ ACPI_STATUS ExAmlExternalWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK) { /* * Process any existing external list. (Support for * multiple definition blocks in a single file/compile) */ ExMoveExternals (Op); AslGbl_ExternalsListHead = NULL; } return (AE_OK); } /******************************************************************************* * * FUNCTION: ExMoveExternals * * PARAMETERS: DefinitionBlockOp - Op for current definition block * * RETURN: None * * DESCRIPTION: Move all externals present in the source file into a single * block of AML code, surrounded by an "If (0)" to prevent * AML interpreters from attempting to execute the External * opcodes. * ******************************************************************************/ static void ExMoveExternals ( ACPI_PARSE_OBJECT *DefinitionBlockOp) { ACPI_PARSE_OBJECT *ParentOp; ACPI_PARSE_OBJECT *ExternalOp; ACPI_PARSE_OBJECT *PredicateOp; ACPI_PARSE_OBJECT *NextOp; ACPI_PARSE_OBJECT *Prev; ACPI_PARSE_OBJECT *Next; char *ExternalName; ACPI_OBJECT_TYPE ObjType; ACPI_STATUS Status; UINT32 i; if (!AslGbl_ExternalsListHead) { return; } /* Remove the External nodes from the tree */ NextOp = AslGbl_ExternalsListHead; while (NextOp) { /* * The External is stored in child pointer of each node in the * list */ ExternalOp = NextOp->Asl.Child; /* Get/set the fully qualified name */ ExternalName = AcpiNsGetNormalizedPathname (ExternalOp->Asl.Node, TRUE); ExternalOp->Asl.ExternalName = ExternalName; ExternalOp->Asl.Namepath = ExternalName; /* Set line numbers (for listings, etc.) */ ExternalOp->Asl.LineNumber = 0; ExternalOp->Asl.LogicalLineNumber = 0; Next = ExternalOp->Asl.Child; Next->Asl.LineNumber = 0; Next->Asl.LogicalLineNumber = 0; if (Next->Asl.ParseOpcode == PARSEOP_NAMESEG) { Next->Asl.ParseOpcode = PARSEOP_NAMESTRING; } Next->Asl.ExternalName = ExternalName; Status = UtInternalizeName (ExternalName, &Next->Asl.Value.String); if (ACPI_FAILURE (Status)) { AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, Next, "Could not internalize namestring"); return; } Next->Asl.AmlLength = strlen (Next->Asl.Value.String); Next = Next->Asl.Next; Next->Asl.LineNumber = 0; Next->Asl.LogicalLineNumber = 0; Next = Next->Asl.Next; Next->Asl.LineNumber = 0; Next->Asl.LogicalLineNumber = 0; Next = Next->Asl.Next; Next->Asl.LineNumber = 0; Next->Asl.LogicalLineNumber = 0; ParentOp = ExternalOp->Asl.Parent; Prev = Next = ParentOp->Asl.Child; /* Now find the External node's position in parse tree */ while (Next != ExternalOp) { Prev = Next; Next = Next->Asl.Next; } /* Remove the External from the parse tree */ if (Prev == ExternalOp) { /* External was the first child node */ ParentOp->Asl.Child = ExternalOp->Asl.Next; } Prev->Asl.Next = ExternalOp->Asl.Next; ExternalOp->Asl.Next = NULL; ExternalOp->Asl.Parent = AslGbl_ExternalsListHead; /* Point the External to the next in the list */ if (NextOp->Asl.Next) { ExternalOp->Asl.Next = NextOp->Asl.Next->Asl.Child; } NextOp = NextOp->Asl.Next; } /* * Loop again to remove MethodObj Externals for which * a MethodCall was not found (dead external reference) */ Prev = AslGbl_ExternalsListHead->Asl.Child; Next = Prev; while (Next) { ObjType = (ACPI_OBJECT_TYPE) Next->Asl.Child->Asl.Next->Asl.Value.Integer; if (ObjType == ACPI_TYPE_METHOD && !(Next->Asl.CompileFlags & OP_VISITED)) { if (Next == Prev) { AslGbl_ExternalsListHead->Asl.Child = Next->Asl.Next; Next->Asl.Next = NULL; Prev = AslGbl_ExternalsListHead->Asl.Child; Next = Prev; continue; } else { Prev->Asl.Next = Next->Asl.Next; Next->Asl.Next = NULL; Next = Prev->Asl.Next; continue; } } Prev = Next; Next = Next->Asl.Next; } /* If list is now empty, don't bother to make If (0) block */ if (!AslGbl_ExternalsListHead->Asl.Child) { return; } /* Convert Gbl_ExternalsListHead parent to If(). */ AslGbl_ExternalsListHead->Asl.ParseOpcode = PARSEOP_IF; AslGbl_ExternalsListHead->Asl.AmlOpcode = AML_IF_OP; AslGbl_ExternalsListHead->Asl.CompileFlags = OP_AML_PACKAGE; UtSetParseOpName (AslGbl_ExternalsListHead); /* Create a Zero op for the If predicate */ PredicateOp = TrAllocateOp (PARSEOP_ZERO); PredicateOp->Asl.AmlOpcode = AML_ZERO_OP; PredicateOp->Asl.Parent = AslGbl_ExternalsListHead; PredicateOp->Asl.Child = NULL; PredicateOp->Asl.Next = AslGbl_ExternalsListHead->Asl.Child; AslGbl_ExternalsListHead->Asl.Child = PredicateOp; /* Set line numbers (for listings, etc.) */ AslGbl_ExternalsListHead->Asl.LineNumber = 0; AslGbl_ExternalsListHead->Asl.LogicalLineNumber = 0; PredicateOp->Asl.LineNumber = 0; PredicateOp->Asl.LogicalLineNumber = 0; /* Insert block back in the list */ Prev = DefinitionBlockOp->Asl.Child; Next = Prev; /* Find last default arg */ for (i = 0; i < 6; i++) { Prev = Next; Next = Prev->Asl.Next; } if (Next) { /* Definition Block is not empty */ AslGbl_ExternalsListHead->Asl.Next = Next; } else { /* Definition Block is empty. */ AslGbl_ExternalsListHead->Asl.Next = NULL; } Prev->Asl.Next = AslGbl_ExternalsListHead; AslGbl_ExternalsListHead->Asl.Parent = Prev->Asl.Parent; } acpica-unix-20250404/source/compiler/asltypes.y0000775000175000017500000002715414773714131020721 0ustar ivanhuivanhuNoEcho(' /****************************************************************************** * * Module Name: asltypes.y - Bison/Yacc production types/names * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ ') /****************************************************************************** * * Production names * *****************************************************************************/ %type ArgList %type AslCode %type BufferData %type BufferTermData %type CompilerDirective %type DataObject %type DefinitionBlockTerm %type DefinitionBlockList %type IntegerData %type NamedObject %type NameSpaceModifier %type Object %type PackageData %type ParameterTypePackage %type ParameterTypePackageList %type ParameterTypesPackage %type ParameterTypesPackageList /* %type RequiredTarget */ %type SimpleName %type StringData %type StringLiteral %type Target %type Term %type TermArg %type TermList %type MethodInvocationTerm /* Type4Opcode is obsolete */ %type Type1Opcode %type Type2BufferOpcode %type Type2BufferOrStringOpcode %type Type2IntegerOpcode %type Type2Opcode %type Type2StringOpcode %type Type3Opcode %type Type5Opcode %type Type6Opcode %type AccessAsTerm %type ExternalTerm %type FieldUnit %type FieldUnitEntry %type FieldUnitList %type IncludeTerm %type OffsetTerm %type OptionalAccessAttribTerm /* Named Objects */ %type BankFieldTerm %type CreateBitFieldTerm %type CreateByteFieldTerm %type CreateDWordFieldTerm %type CreateFieldTerm %type CreateQWordFieldTerm %type CreateWordFieldTerm %type DataRegionTerm %type DeviceTerm %type EventTerm %type FieldTerm %type FunctionTerm %type IndexFieldTerm %type MethodTerm %type MutexTerm %type OpRegionTerm %type OpRegionSpaceIdTerm %type PowerResTerm %type ProcessorTerm %type ThermalZoneTerm /* Namespace modifiers */ %type AliasTerm %type NameTerm %type ScopeTerm /* Type 1 opcodes */ %type BreakPointTerm %type BreakTerm %type CaseDefaultTermList %type CaseTerm %type ContinueTerm %type DefaultTerm %type ElseTerm %type FatalTerm %type ElseIfTerm %type IfTerm %type LoadTerm %type NoOpTerm %type NotifyTerm %type ReleaseTerm %type ResetTerm %type ReturnTerm %type SignalTerm %type SleepTerm %type StallTerm %type SwitchTerm %type UnloadTerm %type WhileTerm /* %type CaseTermList */ /* Type 2 opcodes */ %type AcquireTerm %type AddTerm %type AndTerm %type ConcatResTerm %type ConcatTerm %type CondRefOfTerm %type CopyObjectTerm %type DecTerm %type DerefOfTerm %type DivideTerm %type FindSetLeftBitTerm %type FindSetRightBitTerm %type FromBCDTerm %type IncTerm %type IndexTerm %type LAndTerm %type LEqualTerm %type LGreaterEqualTerm %type LGreaterTerm %type LLessEqualTerm %type LLessTerm %type LNotEqualTerm %type LNotTerm %type LoadTableTerm %type LOrTerm %type MatchTerm %type MidTerm %type ModTerm %type MultiplyTerm %type NAndTerm %type NOrTerm %type NotTerm %type ObjectTypeTerm %type OrTerm %type RawDataBufferTerm %type RefOfTerm %type ShiftLeftTerm %type ShiftRightTerm %type SizeOfTerm %type StoreTerm %type SubtractTerm %type TimerTerm %type ToBCDTerm %type ToBufferTerm %type ToDecimalStringTerm %type ToHexStringTerm %type ToIntegerTerm %type ToStringTerm %type WaitTerm %type XOrTerm /* Keywords */ %type AccessAttribKeyword %type AccessTypeKeyword %type AddressingModeKeyword %type AddressKeyword %type AddressSpaceKeyword %type BitsPerByteKeyword %type ClockPhaseKeyword %type ClockPolarityKeyword %type DecodeKeyword %type DevicePolarityKeyword %type DMATypeKeyword %type EndianKeyword %type FlowControlKeyword %type InterruptLevel %type InterruptTypeKeyword %type IODecodeKeyword %type IoRestrictionKeyword %type LockRuleKeyword %type MatchOpKeyword %type MaxKeyword %type MemTypeKeyword %type MinKeyword %type ObjectTypeKeyword %type OptionalBusMasterKeyword %type OptionalReadWriteKeyword %type ParityTypeKeyword %type PinConfigByte %type PinConfigKeyword %type RangeTypeKeyword %type RegionSpaceKeyword %type ResourceTypeKeyword %type SerializeRuleKeyword %type ShareTypeKeyword %type SlaveModeKeyword %type StopBitsKeyword %type TranslationKeyword %type TypeKeyword %type UpdateRuleKeyword %type WireModeKeyword %type XferSizeKeyword %type XferTypeKeyword %type ClockScaleKeyword %type ClockModeKeyword /* Types */ %type SuperName %type ObjectTypeSource %type DerefOfSource %type RefOfSource %type CondRefOfSource %type ArgTerm %type LocalTerm %type DebugTerm %type Integer %type ByteConst %type WordConst %type DWordConst %type QWordConst %type String %type ConstTerm %type ConstExprTerm %type ByteConstExpr %type WordConstExpr %type DWordConstExpr %type QWordConstExpr %type DWordList %type BufferTerm %type ByteList %type PackageElement %type PackageList %type PackageTerm /* Macros */ %type EISAIDTerm %type ResourceMacroList %type ResourceMacroTerm %type ResourceTemplateTerm %type PldKeyword %type PldKeywordList %type ToPLDTerm %type ToUUIDTerm %type UnicodeTerm %type PrintfArgList %type PrintfTerm %type FprintfTerm %type ForTerm /* Resource Descriptors */ %type ClockInputTerm %type ConnectionTerm %type Csi2SerialBusTerm %type DMATerm %type DWordIOTerm %type DWordMemoryTerm %type DWordPccTerm %type DWordSpaceTerm %type EndDependentFnTerm %type ExtendedIOTerm %type ExtendedMemoryTerm %type ExtendedSpaceTerm %type FixedDmaTerm %type FixedIOTerm %type GpioIntTerm %type GpioIoTerm %type I2cSerialBusTerm %type I2cSerialBusTermV2 %type InterruptTerm %type IOTerm %type IRQNoFlagsTerm %type IRQTerm %type Memory24Term %type Memory32FixedTerm %type Memory32Term %type NameSeg %type NameString %type PinConfigTerm %type PinFunctionTerm %type PinGroupTerm %type PinGroupConfigTerm %type PinGroupFunctionTerm %type QWordIOTerm %type QWordMemoryTerm %type QWordPccTerm %type QWordSpaceTerm %type RegisterTerm %type SpiSerialBusTerm %type SpiSerialBusTermV2 %type StartDependentFnNoPriTerm %type StartDependentFnTerm %type UartSerialBusTerm %type UartSerialBusTermV2 %type VendorLongTerm %type VendorShortTerm %type WordBusNumberTerm %type WordIOTerm %type WordPccTerm %type WordSpaceTerm /* Local types that help construct the AML, not in ACPI spec */ %type AmlPackageLengthTerm %type IncludeEndTerm %type NameStringItem %type TermArgItem %type OptionalAccessSize %type OptionalAccessTypeKeyword %type OptionalAddressingMode %type OptionalAddressRange %type OptionalBitsPerByte %type OptionalBuffer_Last %type OptionalByteConstExpr %type OptionalCount %type OptionalDataCount %type OptionalDecodeType %type OptionalDevicePolarity %type OptionalDWordConstExpr %type OptionalEndian %type OptionalFlowControl %type OptionalIoRestriction %type OptionalListString %type OptionalLockRuleKeyword %type OptionalMaxType %type OptionalMemType %type OptionalMinType %type OptionalNameString %type OptionalNameString_First %type OptionalNameString_Last %type OptionalObjectTypeKeyword %type OptionalParameterTypePackage %type OptionalParameterTypesPackage %type OptionalParentheses %type OptionalParityType %type OptionalPredicate %type OptionalQWordConstExpr %type OptionalRangeType %type OptionalReference %type OptionalResourceType %type OptionalResourceType_First %type OptionalProducerResourceType %type OptionalReturnArg %type OptionalSerializeRuleKeyword %type OptionalShareType %type OptionalShareType_First %type OptionalSlaveMode %type OptionalSlaveMode_First %type OptionalStopBits %type OptionalStringData %type OptionalSyncLevel %type OptionalTermArg %type OptionalTranslationType_Last %type OptionalType %type OptionalType_Last %type OptionalUpdateRuleKeyword %type OptionalWireMode %type OptionalWordConst %type OptionalWordConstExpr %type OptionalXferSize /* * ASL+ (C-style) parser */ /* Expressions and symbolic operators */ %type Expression %type EqualsTerm %type IndexExpTerm /* ASL+ Named object declaration support */ /* %type NameTermAslPlus %type BufferBegin %type BufferEnd %type PackageBegin %type PackageEnd %type OptionalLength */ /* ASL+ Structure declarations */ /* %type StructureTerm %type StructureTermBegin %type StructureType %type StructureTag %type StructureElementList %type StructureElement %type StructureElementType %type OptionalStructureElementType %type StructureId */ /* Structure instantiantion */ /* %type StructureInstanceTerm %type StructureTagReference %type StructureInstanceEnd */ /* Pseudo-instantiantion for method Args/Locals */ /* %type MethodStructureTerm %type LocalStructureName */ /* Direct structure references via the Index operator */ /* %type StructureReference %type StructureIndexTerm %type StructurePointerTerm %type StructurePointerReference %type OptionalDefinePointer */ acpica-unix-20250404/source/compiler/prparser.tab.c0000775000175000017500000016313114773714132021427 0ustar ivanhuivanhu /* A Bison parser, made by GNU Bison 2.4.1. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.4.1" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* Using locations. */ #define YYLSP_NEEDED 0 /* Copy the first part of user declarations. */ /* Line 189 of yacc.c */ #line 1 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" /****************************************************************************** * * Module Name: prparser.y - Bison input file for preprocessor parser * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT ASL_PREPROCESSOR ACPI_MODULE_NAME ("prparser") void * AslLocalAllocate (unsigned int Size); /* Bison/yacc configuration */ #undef alloca #define alloca AslLocalAllocate int PrParserlex (void); int PrParserparse (void); void PrParsererror (char const *msg); extern char *PrParsertext; UINT64 PrParserResult; /* Expression return value */ /* Bison/yacc configuration */ #define yytname PrParsername #define YYDEBUG 1 /* Enable debug output */ #define YYERROR_VERBOSE 1 /* Verbose error messages */ #define YYFLAG -32768 /* Define YYMALLOC/YYFREE to prevent redefinition errors */ #define YYMALLOC malloc #define YYFREE free /* Line 189 of yacc.c */ #line 258 "prparser.tab.c" /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* Enabling the token table. */ #ifndef YYTOKEN_TABLE # define YYTOKEN_TABLE 0 #endif /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { EXPOP_EOF = 258, EXPOP_NEW_LINE = 259, EXPOP_NUMBER = 260, EXPOP_HEX_NUMBER = 261, EXPOP_RESERVED1 = 262, EXPOP_RESERVED2 = 263, EXPOP_PAREN_OPEN = 264, EXPOP_PAREN_CLOSE = 265, EXPOP_LOGICAL_OR = 266, EXPOP_LOGICAL_AND = 267, EXPOP_OR = 268, EXPOP_XOR = 269, EXPOP_AND = 270, EXPOP_NOT_EQUAL = 271, EXPOP_EQUAL = 272, EXPOP_LESS_EQUAL = 273, EXPOP_GREATER_EQUAL = 274, EXPOP_LESS = 275, EXPOP_GREATER = 276, EXPOP_SHIFT_LEFT = 277, EXPOP_SHIFT_RIGHT = 278, EXPOP_SUBTRACT = 279, EXPOP_ADD = 280, EXPOP_MODULO = 281, EXPOP_DIVIDE = 282, EXPOP_MULTIPLY = 283, EXPOP_LOGICAL_NOT = 284, EXPOP_ONES_COMPLIMENT = 285, EXPOP_DEFINE = 286, EXPOP_IDENTIFIER = 287 }; #endif #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 214 of yacc.c */ #line 186 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" UINT64 value; UINT32 op; char *str; /* Line 214 of yacc.c */ #line 334 "prparser.tab.c" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif /* Copy the second part of user declarations. */ /* Line 264 of yacc.c */ #line 346 "prparser.tab.c" #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ # define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int yyi) #else static int YYID (yyi) int yyi; #endif { return yyi; } #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 15 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 175 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 33 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 3 /* YYNRULES -- Number of rules. */ #define YYNRULES 29 /* YYNRULES -- Number of states. */ #define YYNSTATES 57 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 287 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint8 yyprhs[] = { 0, 0, 3, 6, 9, 12, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 96, 99, 101, 103 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int8 yyrhs[] = { 34, 0, -1, 35, 4, -1, 35, 3, -1, 29, 35, -1, 30, 35, -1, 35, 28, 35, -1, 35, 27, 35, -1, 35, 26, 35, -1, 35, 25, 35, -1, 35, 24, 35, -1, 35, 23, 35, -1, 35, 22, 35, -1, 35, 21, 35, -1, 35, 20, 35, -1, 35, 19, 35, -1, 35, 18, 35, -1, 35, 17, 35, -1, 35, 16, 35, -1, 35, 15, 35, -1, 35, 14, 35, -1, 35, 13, 35, -1, 35, 12, 35, -1, 35, 11, 35, -1, 9, 35, 10, -1, 31, 9, 32, 10, -1, 31, 32, -1, 32, -1, 5, -1, 6, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 244, 244, 245, 252, 253, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 278, 283, 286, 288, 292, 296 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "EXPOP_EOF", "EXPOP_NEW_LINE", "EXPOP_NUMBER", "EXPOP_HEX_NUMBER", "EXPOP_RESERVED1", "EXPOP_RESERVED2", "EXPOP_PAREN_OPEN", "EXPOP_PAREN_CLOSE", "EXPOP_LOGICAL_OR", "EXPOP_LOGICAL_AND", "EXPOP_OR", "EXPOP_XOR", "EXPOP_AND", "EXPOP_NOT_EQUAL", "EXPOP_EQUAL", "EXPOP_LESS_EQUAL", "EXPOP_GREATER_EQUAL", "EXPOP_LESS", "EXPOP_GREATER", "EXPOP_SHIFT_LEFT", "EXPOP_SHIFT_RIGHT", "EXPOP_SUBTRACT", "EXPOP_ADD", "EXPOP_MODULO", "EXPOP_DIVIDE", "EXPOP_MULTIPLY", "EXPOP_LOGICAL_NOT", "EXPOP_ONES_COMPLIMENT", "EXPOP_DEFINE", "EXPOP_IDENTIFIER", "$accept", "Value", "Expression", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 33, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 1, 1, 1 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint8 yydefact[] = { 0, 28, 29, 0, 0, 0, 0, 27, 0, 0, 0, 4, 5, 0, 26, 1, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 25 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { -1, 8, 9 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -22 static const yytype_int16 yypact[] = { 4, -22, -22, 4, 4, 4, 31, -22, 8, 34, 54, -22, -22, -20, -22, -22, -22, -22, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, -22, 1, 71, 87, 102, 116, 129, 140, 140, 147, 147, 147, 147, -21, -21, 15, 15, -22, -22, -22, -22 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -22, -22, -3 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -1 static const yytype_uint8 yytable[] = { 10, 11, 12, 31, 32, 33, 34, 35, 15, 1, 2, 56, 37, 3, 0, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 4, 5, 6, 7, 16, 17, 0, 13, 33, 34, 35, 0, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 14, 36, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 29, 30, 31, 32, 33, 34, 35 }; static const yytype_int8 yycheck[] = { 3, 4, 5, 24, 25, 26, 27, 28, 0, 5, 6, 10, 32, 9, -1, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 29, 30, 31, 32, 3, 4, -1, 9, 26, 27, 28, -1, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 32, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 22, 23, 24, 25, 26, 27, 28 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 5, 6, 9, 29, 30, 31, 32, 34, 35, 35, 35, 35, 9, 32, 0, 3, 4, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 10, 32, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 10 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) #else static void yy_stack_print (yybottom, yytop) yytype_int16 *yybottom; yytype_int16 *yytop; #endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_reduce_print (YYSTYPE *yyvsp, int yyrule) #else static void yy_reduce_print (yyvsp, yyrule) YYSTYPE *yyvsp; int yyrule; #endif { int yynrhs = yyr2[yyrule]; int yyi; unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) ); YYFPRINTF (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyvsp, Rule); \ } while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) #else static YYSIZE_T yystrlen (yystr) const char *yystr; #endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) #else static char * yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; #endif { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into YYRESULT an error message about the unexpected token YYCHAR while in state YYSTATE. Return the number of bytes copied, including the terminating null byte. If YYRESULT is null, do not copy anything; just return the number of bytes that would be copied. As a special case, return 0 if an ordinary "syntax error" message will do. Return YYSIZE_MAXIMUM if overflow occurs during size calculation. */ static YYSIZE_T yysyntax_error (char *yyresult, int yystate, int yychar) { int yyn = yypact[yystate]; if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) return 0; else { int yytype = YYTRANSLATE (yychar); YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; int yysize_overflow = 0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; int yyx; # if 0 /* This is so xgettext sees the translatable formats that are constructed on the fly. */ YY_("syntax error, unexpected %s"); YY_("syntax error, unexpected %s, expecting %s"); YY_("syntax error, unexpected %s, expecting %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); # endif char *yyfmt; char const *yyf; static char const yyunexpected[] = "syntax error, unexpected %s"; static char const yyexpecting[] = ", expecting %s"; static char const yyor[] = " or %s"; char yyformat[sizeof yyunexpected + sizeof yyexpecting - 1 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) * (sizeof yyor - 1))]; char const *yyprefix = yyexpecting; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 1; yyarg[0] = yytname[yytype]; yyfmt = yystpcpy (yyformat, yyunexpected); for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; yyformat[sizeof yyunexpected - 1] = '\0'; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; yyfmt = yystpcpy (yyfmt, yyprefix); yyprefix = yyor; } yyf = YY_(yyformat); yysize1 = yysize + yystrlen (yyf); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; if (yysize_overflow) return YYSIZE_MAXIMUM; if (yyresult) { /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ char *yyp = yyresult; int yyi = 0; while ((*yyp = *yyf) != '\0') { if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyf += 2; } else { yyp++; yyf++; } } } return yysize; } } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; /*-------------------------. | yyparse or yypush_parse. | `-------------------------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *YYPARSE_PARAM) #else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; #endif #else /* ! YYPARSE_PARAM */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void) #else int yyparse () #endif #endif { int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: `yyss': related to states. `yyvs': related to semantic values. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yytoken = 0; yyss = yyssa; yyvs = yyvsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; *++yyvsp = yylval; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 2: /* Line 1455 of yacc.c */ #line 244 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { PrParserResult=(yyvsp[(1) - (2)].value); return 0; ;} break; case 3: /* Line 1455 of yacc.c */ #line 245 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { PrParserResult=(yyvsp[(1) - (2)].value); return 0; ;} break; case 4: /* Line 1455 of yacc.c */ #line 252 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(2) - (2)].value), EXPOP_LOGICAL_NOT, (yyvsp[(2) - (2)].value));;} break; case 5: /* Line 1455 of yacc.c */ #line 253 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(2) - (2)].value), EXPOP_ONES_COMPLIMENT, (yyvsp[(2) - (2)].value));;} break; case 6: /* Line 1455 of yacc.c */ #line 257 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_MULTIPLY, (yyvsp[(3) - (3)].value));;} break; case 7: /* Line 1455 of yacc.c */ #line 258 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_DIVIDE, (yyvsp[(3) - (3)].value));;} break; case 8: /* Line 1455 of yacc.c */ #line 259 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_MODULO, (yyvsp[(3) - (3)].value));;} break; case 9: /* Line 1455 of yacc.c */ #line 260 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_ADD, (yyvsp[(3) - (3)].value));;} break; case 10: /* Line 1455 of yacc.c */ #line 261 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_SUBTRACT, (yyvsp[(3) - (3)].value));;} break; case 11: /* Line 1455 of yacc.c */ #line 262 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_SHIFT_RIGHT, (yyvsp[(3) - (3)].value));;} break; case 12: /* Line 1455 of yacc.c */ #line 263 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_SHIFT_LEFT, (yyvsp[(3) - (3)].value));;} break; case 13: /* Line 1455 of yacc.c */ #line 264 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_GREATER, (yyvsp[(3) - (3)].value));;} break; case 14: /* Line 1455 of yacc.c */ #line 265 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_LESS, (yyvsp[(3) - (3)].value));;} break; case 15: /* Line 1455 of yacc.c */ #line 266 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_GREATER_EQUAL, (yyvsp[(3) - (3)].value));;} break; case 16: /* Line 1455 of yacc.c */ #line 267 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_LESS_EQUAL, (yyvsp[(3) - (3)].value));;} break; case 17: /* Line 1455 of yacc.c */ #line 268 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_EQUAL, (yyvsp[(3) - (3)].value));;} break; case 18: /* Line 1455 of yacc.c */ #line 269 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_NOT_EQUAL, (yyvsp[(3) - (3)].value));;} break; case 19: /* Line 1455 of yacc.c */ #line 270 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_AND, (yyvsp[(3) - (3)].value));;} break; case 20: /* Line 1455 of yacc.c */ #line 271 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_XOR, (yyvsp[(3) - (3)].value));;} break; case 21: /* Line 1455 of yacc.c */ #line 272 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_OR, (yyvsp[(3) - (3)].value));;} break; case 22: /* Line 1455 of yacc.c */ #line 273 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_LOGICAL_AND, (yyvsp[(3) - (3)].value));;} break; case 23: /* Line 1455 of yacc.c */ #line 274 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), EXPOP_LOGICAL_OR, (yyvsp[(3) - (3)].value));;} break; case 24: /* Line 1455 of yacc.c */ #line 279 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = (yyvsp[(2) - (3)].value);;} break; case 25: /* Line 1455 of yacc.c */ #line 284 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = PrIsDefined (PrParserlval.str);;} break; case 26: /* Line 1455 of yacc.c */ #line 286 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = PrIsDefined (PrParserlval.str);;} break; case 27: /* Line 1455 of yacc.c */ #line 288 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { (yyval.value) = PrResolveDefine (PrParserlval.str);;} break; case 28: /* Line 1455 of yacc.c */ #line 292 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { AcpiUtStrtoul64 (PrParsertext, &(yyval.value));;} break; case 29: /* Line 1455 of yacc.c */ #line 296 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" { AcpiUtStrtoul64 (PrParsertext, &(yyval.value));;} break; /* Line 1455 of yacc.c */ #line 1800 "prparser.tab.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else { YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) { YYSIZE_T yyalloc = 2 * yysize; if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) yyalloc = YYSTACK_ALLOC_MAXIMUM; if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yyalloc); if (yymsg) yymsg_alloc = yyalloc; else { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; } } if (0 < yysize && yysize <= yymsg_alloc) { (void) yysyntax_error (yymsg, yystate, yychar); yyerror (yymsg); } else { yyerror (YY_("syntax error")); if (yysize != 0) goto yyexhaustedlab; } } #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule which action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } *++yyvsp = yylval; /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined(yyoverflow) || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif /* Make sure YYID is used. */ return YYID (yyresult); } /* Line 1675 of yacc.c */ #line 298 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.y" /* * Local support functions, including parser entry point */ #define PR_FIRST_PARSE_OPCODE EXPOP_EOF #define PR_YYTNAME_START 3 /****************************************************************************** * * FUNCTION: PrParsererror * * PARAMETERS: Message - Parser-generated error message * * RETURN: None * * DESCRIPTION: Handler for parser errors * *****************************************************************************/ void PrParsererror ( char const *Message) { sprintf (AslGbl_StringBuffer, "Preprocessor Parser : %s (near line %u)", Message, AslGbl_CurrentLineNumber); DtError (ASL_ERROR, ASL_MSG_SYNTAX, NULL, (char *) AslGbl_StringBuffer); } /****************************************************************************** * * FUNCTION: PrGetOpName * * PARAMETERS: ParseOpcode - Parser token (EXPOP_*) * * RETURN: Pointer to the opcode name * * DESCRIPTION: Get the ascii name of the parse opcode for debug output * *****************************************************************************/ char * PrGetOpName ( UINT32 ParseOpcode) { #ifdef ASL_YYTNAME_START /* * First entries (PR_YYTNAME_START) in yytname are special reserved names. * Ignore first 6 characters of name (EXPOP_) */ return ((char *) yytname [(ParseOpcode - PR_FIRST_PARSE_OPCODE) + PR_YYTNAME_START] + 6); #else return ("[Unknown parser generator]"); #endif } /****************************************************************************** * * FUNCTION: PrEvaluateExpression * * PARAMETERS: ExprString - Expression to be evaluated. Must be * terminated by either a newline or a NUL * string terminator * * RETURN: 64-bit value for the expression * * DESCRIPTION: Main entry point for the DT expression parser * *****************************************************************************/ UINT64 PrEvaluateExpression ( char *ExprString) { DbgPrint (ASL_DEBUG_OUTPUT, "**** Input expression: %s\n", ExprString); /* Point lexer to the input string */ if (PrInitLexer (ExprString)) { DtError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, NULL, "Could not initialize lexer"); return (0); } /* Parse/Evaluate the input string (value returned in PrParserResult) */ PrParserparse (); PrTerminateLexer (); DbgPrint (ASL_DEBUG_OUTPUT, "**** Parser returned value: %u (%8.8X%8.8X)\n", (UINT32) PrParserResult, ACPI_FORMAT_UINT64 (PrParserResult)); return (PrParserResult); } acpica-unix-20250404/source/compiler/aslerror.c0000775000175000017500000012771014773714131020657 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslerror - Error handling and statistics * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslerror") /* Local prototypes */ static void AeAddToErrorLog ( ASL_ERROR_MSG *Enode); static BOOLEAN AslIsExceptionExpected ( char *Filename, UINT32 LineNumber, UINT8 Level, UINT16 MessageId); static BOOLEAN AslIsExceptionDisabled ( UINT8 Level, UINT16 MessageId); static void AslInitEnode ( ASL_ERROR_MSG **Enode, UINT8 Level, UINT16 MessageId, UINT32 LineNumber, UINT32 LogicalLineNumber, UINT32 LogicalByteOffset, UINT32 Column, char *Filename, char *Message, char *SourceLine, ASL_ERROR_MSG *SubError); static void AslLogNewError ( UINT8 Level, UINT16 MessageId, UINT32 LineNumber, UINT32 LogicalLineNumber, UINT32 LogicalByteOffset, UINT32 Column, char *Filename, char *Message, char *SourceLine, ASL_ERROR_MSG *SubError); static void AePrintSubError ( FILE *OutputFile, ASL_ERROR_MSG *Enode); static UINT8 GetModifiedLevel ( UINT8 Level, UINT16 MessageId); /******************************************************************************* * * FUNCTION: AslAbort * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Dump the error log and abort the compiler. Used for serious * I/O errors. * ******************************************************************************/ void AslAbort ( void) { AePrintErrorLog (ASL_FILE_STDERR); if (AslGbl_DebugFlag) { /* Print error summary to stdout also */ AePrintErrorLog (ASL_FILE_STDOUT); } exit (1); } /******************************************************************************* * * FUNCTION: AeClearErrorLog * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Empty the error list * ******************************************************************************/ void AeClearErrorLog ( void) { ASL_ERROR_MSG *Enode = AslGbl_ErrorLog; ASL_ERROR_MSG *Next; /* Walk the error node list */ while (Enode) { Next = Enode->Next; ACPI_FREE (Enode); Enode = Next; } AslGbl_ErrorLog = NULL; } /******************************************************************************* * * FUNCTION: AeAddToErrorLog * * PARAMETERS: Enode - An error node to add to the log * * RETURN: None * * DESCRIPTION: Add a new error node to the error log. The error log is * ordered by the "logical" line number (cumulative line number * including all include files.) * ******************************************************************************/ static void AeAddToErrorLog ( ASL_ERROR_MSG *Enode) { ASL_ERROR_MSG *Next; ASL_ERROR_MSG *Prev; /* If Gbl_ErrorLog is null, this is the first error node */ if (!AslGbl_ErrorLog) { AslGbl_ErrorLog = Enode; return; } /* * Walk error list until we find a line number greater than ours. * List is sorted according to line number. */ Prev = NULL; Next = AslGbl_ErrorLog; while ((Next) && (Next->LogicalLineNumber <= Enode->LogicalLineNumber)) { Prev = Next; Next = Next->Next; } /* Found our place in the list */ Enode->Next = Next; if (Prev) { Prev->Next = Enode; } else { AslGbl_ErrorLog = Enode; } } /******************************************************************************* * * FUNCTION: AeDecodeErrorMessageId * * PARAMETERS: OutputFile - Output file * Enode - Error node to print * PrematureEOF - True = PrematureEOF has been reached * Total - Total length of line * * RETURN: None * * DESCRIPTION: Print the source line of an error. * ******************************************************************************/ static void AeDecodeErrorMessageId ( FILE *OutputFile, ASL_ERROR_MSG *Enode, BOOLEAN PrematureEOF, UINT32 Total) { UINT32 MsgLength; const char *MainMessage; char *ExtraMessage; UINT32 SourceColumn; UINT32 ErrorColumn; fprintf (OutputFile, "%s %4.4d -", AeDecodeExceptionLevel (Enode->Level), AeBuildFullExceptionCode (Enode->Level, Enode->MessageId)); MainMessage = AeDecodeMessageId (Enode->MessageId); ExtraMessage = Enode->Message; /* If a NULL line number, just print the decoded message */ if (!Enode->LineNumber) { fprintf (OutputFile, " %s %s\n\n", MainMessage, ExtraMessage); return; } MsgLength = strlen (MainMessage); if (MsgLength == 0) { /* Use the secondary/extra message as main message */ MainMessage = Enode->Message; if (!MainMessage) { MainMessage = ""; } MsgLength = strlen (MainMessage); ExtraMessage = NULL; } if (AslGbl_VerboseErrors && !PrematureEOF) { if (Total >= 256) { fprintf (OutputFile, " %s", MainMessage); } else { SourceColumn = Enode->Column + Enode->FilenameLength + 6 + 2; ErrorColumn = ASL_ERROR_LEVEL_LENGTH + 5 + 2 + 1; if ((MsgLength + ErrorColumn) < (SourceColumn - 1)) { fprintf (OutputFile, "%*s%s", (int) ((SourceColumn - 1) - ErrorColumn), MainMessage, " ^ "); } else { fprintf (OutputFile, "%*s %s", (int) ((SourceColumn - ErrorColumn) + 1), "^", MainMessage); } } } else { fprintf (OutputFile, " %s", MainMessage); } /* Print the extra info message if present */ if (ExtraMessage) { fprintf (OutputFile, " (%s)", ExtraMessage); } if (PrematureEOF) { fprintf (OutputFile, " and premature End-Of-File"); } fprintf (OutputFile, "\n"); if (AslGbl_VerboseErrors && !Enode->SubError) { fprintf (OutputFile, "\n"); } } /******************************************************************************* * * FUNCTION: AePrintErrorSourceLine * * PARAMETERS: OutputFile - Output file * Enode - Error node to print * PrematureEOF - True = PrematureEOF has been reached * Total - Number of characters printed so far * * * RETURN: Status * * DESCRIPTION: Print the source line of an error. * ******************************************************************************/ static ACPI_STATUS AePrintErrorSourceLine ( FILE *OutputFile, ASL_ERROR_MSG *Enode, BOOLEAN *PrematureEOF, UINT32 *Total) { UINT8 SourceByte; int Actual; size_t RActual; FILE *SourceFile = NULL; long FileSize; if (!Enode->SourceLine) { /* * Use the merged header/source file if present, otherwise * use input file */ SourceFile = FlGetFileHandle (ASL_FILE_SOURCE_OUTPUT, ASL_FILE_SOURCE_OUTPUT, Enode->SourceFilename); if (!SourceFile) { SourceFile = FlGetFileHandle (ASL_FILE_INPUT, ASL_FILE_INPUT, Enode->Filename); } if (SourceFile) { /* Determine if the error occurred at source file EOF */ fseek (SourceFile, 0, SEEK_END); FileSize = ftell (SourceFile); if ((long) Enode->LogicalByteOffset >= FileSize) { *PrematureEOF = TRUE; } } else { fprintf (OutputFile, "[*** iASL: Source File Does not exist ***]\n"); return AE_IO_ERROR; } } /* Print filename and line number if present and valid */ if (AslGbl_VerboseErrors) { fprintf (OutputFile, "%-8s", Enode->Filename); if (Enode->SourceLine && Enode->LineNumber) { fprintf (OutputFile, " %6u: %s", Enode->LineNumber, Enode->SourceLine); } else if (Enode->LineNumber) { fprintf (OutputFile, " %6u: ", Enode->LineNumber); /* * If not at EOF, get the corresponding source code line * and display it. Don't attempt this if we have a * premature EOF condition. */ if (*PrematureEOF) { fprintf (OutputFile, "\n"); return AE_OK; } /* * Seek to the offset in the combined source file, * read the source line, and write it to the output. */ Actual = fseek (SourceFile, (long) Enode->LogicalByteOffset, (int) SEEK_SET); if (Actual) { fprintf (OutputFile, "[*** iASL: Seek error on source code temp file %s ***]", AslGbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename); fprintf (OutputFile, "\n"); return AE_OK; } RActual = fread (&SourceByte, 1, 1, SourceFile); if (RActual != 1) { fprintf (OutputFile, "[*** iASL: Read error on source code temp file %s ***]", AslGbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename); return AE_IO_ERROR; } /* Read/write the source line, up to the maximum line length */ while (RActual && SourceByte && (SourceByte != '\n')) { if (*Total < 256) { /* After the max line length, we will just read the line, no write */ if (fwrite (&SourceByte, 1, 1, OutputFile) != 1) { printf ("[*** iASL: Write error on output file ***]\n"); return AE_IO_ERROR; } } else if (*Total == 256) { fprintf (OutputFile, "\n[*** iASL: Very long input line, message below refers to column %u ***]", Enode->Column); } RActual = fread (&SourceByte, 1, 1, SourceFile); if (RActual != 1) { fprintf (OutputFile, "[*** iASL: Read error on source code temp file %s ***]", AslGbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename); return AE_IO_ERROR; } *Total += 1; } fprintf (OutputFile, "\n"); } } else { /* * Less verbose version of the error message, enabled via the * -vi switch. The format is compatible with MS Visual Studio. */ fprintf (OutputFile, "%s", Enode->Filename); if (Enode->LineNumber) { fprintf (OutputFile, "(%u) : ", Enode->LineNumber); } } return AE_OK; } /******************************************************************************* * * FUNCTION: AePrintException * * PARAMETERS: FileId - ID of output file * Enode - Error node to print * Header - Additional text before each message * * RETURN: None * * DESCRIPTION: Print the contents of an error node. * * NOTE: We don't use the FlxxxFile I/O functions here because on error * they abort the compiler and call this function! Since we * are reporting errors here, we ignore most output errors and * just try to get out as much as we can. * ******************************************************************************/ void AePrintException ( UINT32 FileId, ASL_ERROR_MSG *Enode, char *Header) { FILE *OutputFile; BOOLEAN PrematureEOF = FALSE; UINT32 Total = 0; ACPI_STATUS Status; ASL_ERROR_MSG *Child = Enode->SubError; if (AslGbl_NoErrors) { return; } /* * Only listing files have a header, and remarks/optimizations * are always output */ if (!Header) { /* Ignore remarks if requested */ switch (Enode->Level) { case ASL_WARNING: case ASL_WARNING2: case ASL_WARNING3: if (!AslGbl_DisplayWarnings) { return; } break; case ASL_REMARK: if (!AslGbl_DisplayRemarks) { return; } break; case ASL_OPTIMIZATION: if (!AslGbl_DisplayOptimizations) { return; } break; default: break; } } /* Get the various required file handles */ OutputFile = AslGbl_Files[FileId].Handle; if (Header) { fprintf (OutputFile, "%s", Header); } if (!Enode->Filename) { AeDecodeErrorMessageId (OutputFile, Enode, PrematureEOF, Total); return; } Status = AePrintErrorSourceLine (OutputFile, Enode, &PrematureEOF, &Total); if (ACPI_FAILURE (Status)) { return; } /* If a NULL message ID, just print the raw message */ if (Enode->MessageId == 0) { fprintf (OutputFile, "%s\n", Enode->Message); return; } AeDecodeErrorMessageId (OutputFile, Enode, PrematureEOF, Total); while (Child) { fprintf (OutputFile, "\n"); AePrintSubError (OutputFile, Child); Child = Child->SubError; } } /******************************************************************************* * * FUNCTION: AePrintSubError * * PARAMETERS: OutputFile - Output file * Enode - Error node to print * * RETURN: None * * DESCRIPTION: Print the contents of an error node. This function is tailored * to print error nodes that are SubErrors within ASL_ERROR_MSG * ******************************************************************************/ static void AePrintSubError ( FILE *OutputFile, ASL_ERROR_MSG *Enode) { UINT32 Total = 0; BOOLEAN PrematureEOF = FALSE; const char *MainMessage; MainMessage = AeDecodeMessageId (Enode->MessageId); fprintf (OutputFile, " %s", MainMessage); if (Enode->Message) { fprintf (OutputFile, "(%s)", Enode->Message); } fprintf (OutputFile, "\n "); (void) AePrintErrorSourceLine (OutputFile, Enode, &PrematureEOF, &Total); fprintf (OutputFile, "\n"); } /******************************************************************************* * * FUNCTION: AePrintErrorLog * * PARAMETERS: FileId - Where to output the error log * * RETURN: None * * DESCRIPTION: Print the entire contents of the error log * ******************************************************************************/ void AePrintErrorLog ( UINT32 FileId) { ASL_ERROR_MSG *Enode = AslGbl_ErrorLog; /* Walk the error node list */ while (Enode) { AePrintException (FileId, Enode, NULL); Enode = Enode->Next; } } /******************************************************************************* * * FUNCTION: AslInitEnode * * PARAMETERS: InputEnode - Input Error node to initialize * Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * CurrentLineNumber - Actual file line number * LogicalLineNumber - Cumulative line number * LogicalByteOffset - Byte offset in source file * Column - Column in current line * Filename - Source filename * ExtraMessage - Additional error message * SourceLine - Line of error source code * SubError - SubError of this InputEnode * * RETURN: None * * DESCRIPTION: Initialize an Error node * ******************************************************************************/ static void AslInitEnode ( ASL_ERROR_MSG **InputEnode, UINT8 Level, UINT16 MessageId, UINT32 LineNumber, UINT32 LogicalLineNumber, UINT32 LogicalByteOffset, UINT32 Column, char *Filename, char *ExtraMessage, char *SourceLine, ASL_ERROR_MSG *SubError) { ASL_ERROR_MSG *Enode; ASL_GLOBAL_FILE_NODE *FileNode; *InputEnode = UtLocalCalloc (sizeof (ASL_ERROR_MSG)); Enode = *InputEnode; Enode->Level = Level; Enode->MessageId = MessageId; Enode->LineNumber = LineNumber; Enode->LogicalLineNumber = LogicalLineNumber; Enode->LogicalByteOffset = LogicalByteOffset; Enode->Column = Column; Enode->SubError = SubError; Enode->Message = NULL; Enode->SourceLine = NULL; Enode->Filename = NULL; if (ExtraMessage) { /* Allocate a buffer for the message and a new error node */ Enode->Message = UtLocalCacheCalloc (strlen (ExtraMessage) + 1); /* Keep a copy of the extra message */ strcpy (Enode->Message, ExtraMessage); } if (SourceLine) { Enode->SourceLine = UtLocalCalloc (strlen (SourceLine) + 1); strcpy (Enode->SourceLine, SourceLine); } if (Filename) { Enode->Filename = Filename; Enode->FilenameLength = strlen (Filename); if (Enode->FilenameLength < 6) { Enode->FilenameLength = 6; } /* * Attempt to get the file node of the filename listed in the parse * node. If the name doesn't exist in the global file node, it is * because the file is included by #include or ASL include. In this * case, get the current file node. The source output of the current * file will contain the contents of the file listed in the parse node. */ FileNode = FlGetFileNode (ASL_FILE_INPUT, Filename); if (!FileNode) { FileNode = FlGetCurrentFileNode (); } Enode->SourceFilename = FileNode->Files[ASL_FILE_SOURCE_OUTPUT].Filename; } } /******************************************************************************* * * FUNCTION: AslCommonError2 * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * LineNumber - Actual file line number * Column - Column in current line * SourceLine - Actual source code line * Filename - Source filename * ExtraMessage - Additional error message * * RETURN: None * * DESCRIPTION: Create a new error node and add it to the error log * ******************************************************************************/ void AslCommonError2 ( UINT8 Level, UINT16 MessageId, UINT32 LineNumber, UINT32 Column, char *SourceLine, char *Filename, char *ExtraMessage) { AslLogNewError (Level, MessageId, LineNumber, LineNumber, 0, Column, Filename, ExtraMessage, SourceLine, NULL); } /******************************************************************************* * * FUNCTION: AslCommonError * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * CurrentLineNumber - Actual file line number * LogicalLineNumber - Cumulative line number * LogicalByteOffset - Byte offset in source file * Column - Column in current line * Filename - Source filename * ExtraMessage - Additional error message * * RETURN: None * * DESCRIPTION: Create a new error node and add it to the error log * ******************************************************************************/ void AslCommonError ( UINT8 Level, UINT16 MessageId, UINT32 CurrentLineNumber, UINT32 LogicalLineNumber, UINT32 LogicalByteOffset, UINT32 Column, char *Filename, char *ExtraMessage) { /* Check if user wants to ignore this exception */ if (AslIsExceptionIgnored (Filename, LogicalLineNumber, Level, MessageId)) { return; } AslLogNewError (Level, MessageId, CurrentLineNumber, LogicalLineNumber, LogicalByteOffset, Column, Filename, ExtraMessage, NULL, NULL); } /******************************************************************************* * * FUNCTION: AslLogNewError * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * CurrentLineNumber - Actual file line number * LogicalLineNumber - Cumulative line number * LogicalByteOffset - Byte offset in source file * Column - Column in current line * Filename - Source filename * Message - Additional error message * SourceLine - Actual line of source code * SubError - Sub-error associated with this error * * RETURN: None * * DESCRIPTION: Create a new error node and add it to the error log * ******************************************************************************/ static void AslLogNewError ( UINT8 Level, UINT16 MessageId, UINT32 LineNumber, UINT32 LogicalLineNumber, UINT32 LogicalByteOffset, UINT32 Column, char *Filename, char *Message, char *SourceLine, ASL_ERROR_MSG *SubError) { ASL_ERROR_MSG *Enode = NULL; UINT8 ModifiedLevel = GetModifiedLevel (Level, MessageId); AslInitEnode (&Enode, ModifiedLevel, MessageId, LineNumber, LogicalLineNumber, LogicalByteOffset, Column, Filename, Message, SourceLine, SubError); /* Add the new node to the error node list */ AeAddToErrorLog (Enode); if (AslGbl_DebugFlag) { /* stderr is a file, send error to it immediately */ AePrintException (ASL_FILE_STDERR, Enode, NULL); } AslGbl_ExceptionCount[ModifiedLevel]++; if (!AslGbl_IgnoreErrors && AslGbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT) { printf ("\nMaximum error count (%u) exceeded (aslerror.c)\n", ASL_MAX_ERROR_COUNT); AslGbl_SourceLine = 0; AslGbl_NextError = AslGbl_ErrorLog; CmCleanupAndExit (); exit(1); } return; } /******************************************************************************* * * FUNCTION: GetModifiedLevel * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * * RETURN: UINT8 - Modified level * * DESCRIPTION: Get the modified level of exception codes that are reported as * errors from the -ww option. * ******************************************************************************/ static UINT8 GetModifiedLevel ( UINT8 Level, UINT16 MessageId) { UINT32 i; UINT16 ExceptionCode; ExceptionCode = AeBuildFullExceptionCode (Level, MessageId); for (i = 0; i < AslGbl_ElevatedMessagesIndex; i++) { if (ExceptionCode == AslGbl_ElevatedMessages[i]) { return (ASL_ERROR); } } return (Level); } /******************************************************************************* * * FUNCTION: AslIsExceptionIgnored * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * * RETURN: BOOLEAN * * DESCRIPTION: Check if a particular exception is ignored. In this case it * means that the exception is (expected or disabled. * ******************************************************************************/ BOOLEAN AslIsExceptionIgnored ( char *Filename, UINT32 LineNumber, UINT8 Level, UINT16 MessageId) { BOOLEAN ExceptionIgnored; /* Note: this allows exception to be disabled and expected */ ExceptionIgnored = AslIsExceptionDisabled (Level, MessageId); ExceptionIgnored |= AslIsExceptionExpected (Filename, LineNumber, Level, MessageId); return (AslGbl_AllExceptionsDisabled || ExceptionIgnored); } /******************************************************************************* * * FUNCTION: AslCheckExpectedException * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Check the global expected messages table and raise an error * for each message that has not been received. * ******************************************************************************/ void AslCheckExpectedExceptions ( void) { UINT32 i; ASL_EXPECTED_MSG_NODE *Current = AslGbl_ExpectedErrorCodeList; ASL_LOCATION_NODE *LocationNode; for (i = 0; i < AslGbl_ExpectedMessagesIndex; ++i) { if (!AslGbl_ExpectedMessages[i].MessageReceived) { AslError (ASL_ERROR, ASL_MSG_EXCEPTION_NOT_RECEIVED, NULL, AslGbl_ExpectedMessages[i].MessageIdStr); } } while (Current) { LocationNode = Current->LocationList; while (LocationNode) { if (!LocationNode->MessageReceived) { AslCommonError (ASL_ERROR, ASL_MSG_EXCEPTION_NOT_RECEIVED, LocationNode->LineNumber, LocationNode->LineNumber, LocationNode->LogicalByteOffset, LocationNode->Column, LocationNode->Filename, Current->MessageIdStr); } LocationNode = LocationNode->Next; } Current = Current->Next; } } /******************************************************************************* * * FUNCTION: AslLogExpectedException * * PARAMETERS: MessageIdString - ID of excepted exception during compile * * RETURN: Status * * DESCRIPTION: Enter a message ID into the global expected messages table * If these messages are not raised during the compilation, throw * an error. * ******************************************************************************/ ACPI_STATUS AslLogExpectedException ( char *MessageIdString) { UINT32 MessageId; /* Convert argument to an integer and validate it */ MessageId = (UINT32) strtoul (MessageIdString, NULL, 0); if (MessageId > 6999) { printf ("\"%s\" is not a valid warning/remark/error ID\n", MessageIdString); return (AE_BAD_PARAMETER); } /* Insert value into the global expected message array */ if (AslGbl_ExpectedMessagesIndex >= ASL_MAX_EXPECTED_MESSAGES) { printf ("Too many messages have been registered as expected (max %d)\n", ASL_MAX_DISABLED_MESSAGES); return (AE_LIMIT); } AslGbl_ExpectedMessages[AslGbl_ExpectedMessagesIndex].MessageId = MessageId; AslGbl_ExpectedMessages[AslGbl_ExpectedMessagesIndex].MessageIdStr = MessageIdString; AslGbl_ExpectedMessages[AslGbl_ExpectedMessagesIndex].MessageReceived = FALSE; AslGbl_ExpectedMessagesIndex++; return (AE_OK); } /******************************************************************************* * * FUNCTION: AslLogExpectedExceptionByLine * * PARAMETERS: MessageIdString - ID of excepted exception during compile * * RETURN: Status * * DESCRIPTION: Enter a message ID into the global expected messages table * based on file and line number. If these messages are not raised * during the compilation, throw an error. * ******************************************************************************/ void AslLogExpectedExceptionByLine ( char *MessageIdString) { ASL_LOCATION_NODE *NewErrorLocationNode; ASL_EXPECTED_MSG_NODE *Current = AslGbl_ExpectedErrorCodeList; UINT32 MessageId; NewErrorLocationNode = UtLocalCalloc (sizeof (ASL_LOCATION_NODE)); NewErrorLocationNode->LineNumber = AslGbl_CurrentLineNumber; NewErrorLocationNode->Filename = AslGbl_Files[ASL_FILE_INPUT].Filename; NewErrorLocationNode->LogicalByteOffset = AslGbl_CurrentLineOffset; NewErrorLocationNode->Column = AslGbl_CurrentColumn; MessageId = (UINT32) strtoul (MessageIdString, NULL, 0); /* search the existing list for a matching message ID */ while (Current && Current->MessageId != MessageId ) { Current = Current->Next; } if (!Current) { /* ID was not found, create a new node for this message ID */ Current = UtLocalCalloc (sizeof (ASL_EXPECTED_MSG_NODE)); Current->Next = AslGbl_ExpectedErrorCodeList; Current->MessageIdStr = MessageIdString; Current->MessageId = MessageId; AslGbl_ExpectedErrorCodeList = Current; } NewErrorLocationNode->Next = Current->LocationList; Current->LocationList = NewErrorLocationNode; } /******************************************************************************* * * FUNCTION: AslDisableException * * PARAMETERS: MessageIdString - ID to be disabled * * RETURN: Status * * DESCRIPTION: Enter a message ID into the global disabled messages table * ******************************************************************************/ ACPI_STATUS AslDisableException ( char *MessageIdString) { UINT32 MessageId; /* Convert argument to an integer and validate it */ MessageId = (UINT32) strtoul (MessageIdString, NULL, 0); if ((MessageId < 2000) || (MessageId > 6999)) { printf ("\"%s\" is not a valid warning/remark/error ID\n", MessageIdString); return (AE_BAD_PARAMETER); } /* Insert value into the global disabled message array */ if (AslGbl_DisabledMessagesIndex >= ASL_MAX_DISABLED_MESSAGES) { printf ("Too many messages have been disabled (max %d)\n", ASL_MAX_DISABLED_MESSAGES); return (AE_LIMIT); } AslGbl_DisabledMessages[AslGbl_DisabledMessagesIndex] = MessageId; AslGbl_DisabledMessagesIndex++; return (AE_OK); } /******************************************************************************* * * FUNCTION: AslElevateException * * PARAMETERS: MessageIdString - ID of excepted exception during compile * * RETURN: Status * * DESCRIPTION: Enter a message ID into the global elevated exceptions table. * These messages will be considered as compilation errors. * ******************************************************************************/ ACPI_STATUS AslElevateException ( char *MessageIdString) { UINT32 MessageId; /* Convert argument to an integer and validate it */ MessageId = (UINT32) strtoul (MessageIdString, NULL, 0); if (MessageId > 6999) { printf ("\"%s\" is not a valid warning/remark/error ID\n", MessageIdString); return (AE_BAD_PARAMETER); } /* Insert value into the global expected message array */ if (AslGbl_ElevatedMessagesIndex >= ASL_MAX_ELEVATED_MESSAGES) { printf ("Too many messages have been registered as elevated (max %d)\n", ASL_MAX_DISABLED_MESSAGES); return (AE_LIMIT); } AslGbl_ElevatedMessages[AslGbl_ElevatedMessagesIndex] = MessageId; AslGbl_ElevatedMessagesIndex++; return (AE_OK); } /******************************************************************************* * * FUNCTION: AslIsExceptionDisabled * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * * RETURN: TRUE if exception/message should be ignored * * DESCRIPTION: Check if the user has specified options such that this * exception should be ignored * ******************************************************************************/ static BOOLEAN AslIsExceptionExpected ( char *Filename, UINT32 LineNumber, UINT8 Level, UINT16 MessageId) { ASL_EXPECTED_MSG_NODE *Current = AslGbl_ExpectedErrorCodeList; ASL_LOCATION_NODE *CurrentErrorLocation; UINT32 EncodedMessageId; UINT32 i; /* Mark this exception as received */ EncodedMessageId = AeBuildFullExceptionCode (Level, MessageId); for (i = 0; i < AslGbl_ExpectedMessagesIndex; i++) { /* Simple implementation via fixed array */ if (EncodedMessageId == AslGbl_ExpectedMessages[i].MessageId) { return (AslGbl_ExpectedMessages[i].MessageReceived = TRUE); } } while (Current && Current->MessageId != EncodedMessageId) { Current = Current->Next; } if (!Current) { return (FALSE); } CurrentErrorLocation = Current->LocationList; while (CurrentErrorLocation) { if (!strcmp (CurrentErrorLocation->Filename, Filename) && CurrentErrorLocation->LineNumber == LineNumber) { return (CurrentErrorLocation->MessageReceived = TRUE); } CurrentErrorLocation = CurrentErrorLocation->Next; } return (FALSE); } /******************************************************************************* * * FUNCTION: AslIsExceptionDisabled * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * * RETURN: TRUE if exception/message should be ignored * * DESCRIPTION: Check if the user has specified options such that this * exception should be ignored * ******************************************************************************/ static BOOLEAN AslIsExceptionDisabled ( UINT8 Level, UINT16 MessageId) { UINT32 EncodedMessageId; UINT32 i; switch (Level) { case ASL_WARNING2: case ASL_WARNING3: /* Check for global disable via -w1/-w2/-w3 options */ if (Level > AslGbl_WarningLevel) { return (TRUE); } ACPI_FALLTHROUGH; case ASL_WARNING: case ASL_REMARK: case ASL_ERROR: /* * Ignore this error/warning/remark if it has been disabled by * the user (-vw option) */ EncodedMessageId = AeBuildFullExceptionCode (Level, MessageId); for (i = 0; i < AslGbl_DisabledMessagesIndex; i++) { /* Simple implementation via fixed array */ if (EncodedMessageId == AslGbl_DisabledMessages[i]) { return (TRUE); } } break; default: break; } return (FALSE); } /******************************************************************************* * * FUNCTION: AslDualParseOpError * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MainMsgId - Index into global message buffer * MainOp - Parse node where error happened * MainMsg - Message pertaining to the MainOp * SubMsgId - Index into global message buffer * SubOp - Additional parse node for better message * SubMsg - Message pertaining to SubOp * * * RETURN: None * * DESCRIPTION: Main error reporting routine for the ASL compiler for error * messages that point to multiple parse objects. * ******************************************************************************/ void AslDualParseOpError ( UINT8 Level, UINT16 MainMsgId, ACPI_PARSE_OBJECT *MainOp, char *MainMsg, UINT16 SubMsgId, ACPI_PARSE_OBJECT *SubOp, char *SubMsg) { ASL_ERROR_MSG *SubEnode = NULL; /* Check if user wants to ignore this exception */ if (!MainOp || AslIsExceptionIgnored (MainOp->Asl.Filename, MainOp->Asl.LogicalLineNumber, Level, MainMsgId)) { return; } if (SubOp) { AslInitEnode (&SubEnode, Level, SubMsgId, SubOp->Asl.LineNumber, SubOp->Asl.LogicalLineNumber, SubOp->Asl.LogicalByteOffset, SubOp->Asl.Column, SubOp->Asl.Filename, SubMsg, NULL, NULL); } AslLogNewError (Level, MainMsgId, MainOp->Asl.LineNumber, MainOp->Asl.LogicalLineNumber, MainOp->Asl.LogicalByteOffset, MainOp->Asl.Column, MainOp->Asl.Filename, MainMsg, NULL, SubEnode); } /******************************************************************************* * * FUNCTION: AslError * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * Op - Parse node where error happened * ExtraMessage - Additional error message * * RETURN: None * * DESCRIPTION: Main error reporting routine for the ASL compiler (all code * except the parser.) * ******************************************************************************/ void AslError ( UINT8 Level, UINT16 MessageId, ACPI_PARSE_OBJECT *Op, char *ExtraMessage) { if (Op) { AslCommonError (Level, MessageId, Op->Asl.LineNumber, Op->Asl.LogicalLineNumber, Op->Asl.LogicalByteOffset, Op->Asl.Column, Op->Asl.Filename, ExtraMessage); } else { AslCommonError (Level, MessageId, 0, 0, 0, 0, NULL, ExtraMessage); } } /******************************************************************************* * * FUNCTION: AslCoreSubsystemError * * PARAMETERS: Op - Parse node where error happened * Status - The ACPICA Exception * ExtraMessage - Additional error message * Abort - TRUE -> Abort compilation * * RETURN: None * * DESCRIPTION: Error reporting routine for exceptions returned by the ACPICA * core subsystem. * ******************************************************************************/ void AslCoreSubsystemError ( ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status, char *ExtraMessage, BOOLEAN Abort) { sprintf (AslGbl_MsgBuffer, "%s %s", AcpiFormatException (Status), ExtraMessage); if (Op) { AslCommonError (ASL_ERROR, ASL_MSG_CORE_EXCEPTION, Op->Asl.LineNumber, Op->Asl.LogicalLineNumber, Op->Asl.LogicalByteOffset, Op->Asl.Column, Op->Asl.Filename, AslGbl_MsgBuffer); } else { AslCommonError (ASL_ERROR, ASL_MSG_CORE_EXCEPTION, 0, 0, 0, 0, NULL, AslGbl_MsgBuffer); } if (Abort) { AslAbort (); } } /******************************************************************************* * * FUNCTION: AslCompilererror * * PARAMETERS: CompilerMessage - Error message from the parser * * RETURN: Status (0 for now) * * DESCRIPTION: Report an error situation discovered in a production * NOTE: don't change the name of this function, it is called * from the auto-generated parser. * ******************************************************************************/ int AslCompilererror ( const char *CompilerMessage) { AslGbl_SyntaxError++; AslCommonError (ASL_ERROR, ASL_MSG_SYNTAX, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, ACPI_CAST_PTR (char, CompilerMessage)); return (0); } acpica-unix-20250404/source/compiler/dtfield.c0000775000175000017500000004536314773714132020445 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dtfield.c - Code generation for individual source fields * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtfield") /* Local prototypes */ static void DtCompileString ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength); static void DtCompileUnicode ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength); static ACPI_STATUS DtCompileUuid ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength); static char * DtNormalizeBuffer ( char *Buffer, UINT32 *Count); /****************************************************************************** * * FUNCTION: DtCompileOneField * * PARAMETERS: Buffer - Output buffer * Field - Field to be compiled * ByteLength - Byte length of the field * Type - Field type * * RETURN: None * * DESCRIPTION: Compile a field value to binary * *****************************************************************************/ void DtCompileOneField ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength, UINT8 Type, UINT8 Flags) { ACPI_STATUS Status; switch (Type) { case DT_FIELD_TYPE_INTEGER: DtCompileInteger (Buffer, Field, ByteLength, Flags); break; case DT_FIELD_TYPE_STRING: DtCompileString (Buffer, Field, ByteLength); break; case DT_FIELD_TYPE_UUID: Status = DtCompileUuid (Buffer, Field, ByteLength); if (ACPI_SUCCESS (Status)) { break; } ACPI_FALLTHROUGH; case DT_FIELD_TYPE_BUFFER: DtCompileBuffer (Buffer, Field->Value, Field, ByteLength); break; case DT_FIELD_TYPE_UNICODE: DtCompileUnicode (Buffer, Field, ByteLength); break; case DT_FIELD_TYPE_DEVICE_PATH: break; default: DtFatal (ASL_MSG_COMPILER_INTERNAL, Field, "Invalid field type"); break; } } /****************************************************************************** * * FUNCTION: DtCompileString * * PARAMETERS: Buffer - Output buffer * Field - String to be copied to buffer * ByteLength - Maximum length of string * * RETURN: None * * DESCRIPTION: Copy string to the buffer * *****************************************************************************/ static void DtCompileString ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength) { UINT32 Length; Length = strlen (Field->Value); /* Check if the string is too long for the field */ if (Length > ByteLength) { sprintf (AslGbl_MsgBuffer, "Maximum %u characters, found %u characters [%.*s]", ByteLength, Length, (ASL_MSG_BUFFER_SIZE / 2), Field->Value); DtError (ASL_ERROR, ASL_MSG_STRING_LENGTH, Field, AslGbl_MsgBuffer); Length = ByteLength; } memcpy (Buffer, Field->Value, Length); } /****************************************************************************** * * FUNCTION: DtCompileUnicode * * PARAMETERS: Buffer - Output buffer * Field - String to be copied to buffer * ByteLength - Maximum length of string * * RETURN: None * * DESCRIPTION: Convert ASCII string to Unicode string * * Note: The Unicode string is 16 bits per character, no leading signature, * with a 16-bit terminating NULL. * *****************************************************************************/ static void DtCompileUnicode ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength) { UINT32 Count; UINT32 i; char *AsciiString; UINT16 *UnicodeString; AsciiString = Field->Value; UnicodeString = (UINT16 *) Buffer; Count = strlen (AsciiString) + 1; /* Convert to Unicode string (including null terminator) */ for (i = 0; i < Count; i++) { UnicodeString[i] = (UINT16) AsciiString[i]; } } /******************************************************************************* * * FUNCTION: DtCompileUuid * * PARAMETERS: Buffer - Output buffer * Field - String to be copied to buffer * ByteLength - Maximum length of string * * RETURN: None * * DESCRIPTION: Convert UUID string to 16-byte buffer * ******************************************************************************/ static ACPI_STATUS DtCompileUuid ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength) { char *InString; ACPI_STATUS Status; InString = Field->Value; Status = AuValidateUuid (InString); if (ACPI_FAILURE (Status)) { sprintf (AslGbl_MsgBuffer, "%s", Field->Value); DtNameError (ASL_ERROR, ASL_MSG_INVALID_UUID, Field, AslGbl_MsgBuffer); } else { AcpiUtConvertStringToUuid (InString, Buffer); } return (Status); } /****************************************************************************** * * FUNCTION: DtCompileInteger * * PARAMETERS: Buffer - Output buffer * Field - Field obj with Integer to be compiled * ByteLength - Byte length of the integer * Flags - Additional compile info * * RETURN: None * * DESCRIPTION: Compile an integer. Supports integer expressions with C-style * operators. * *****************************************************************************/ void DtCompileInteger ( UINT8 *Buffer, DT_FIELD *Field, UINT32 ByteLength, UINT8 Flags) { UINT64 Value; UINT64 MaxValue; ACPI_STATUS Status; /* Output buffer byte length must be in range 1-8 */ if ((ByteLength > 8) || (ByteLength == 0)) { DtFatal (ASL_MSG_COMPILER_INTERNAL, Field, "Invalid internal Byte length"); return; } /* Resolve integer expression to a single integer value */ Status = DtResolveIntegerExpression (Field, &Value); if (ACPI_FAILURE (Status)) { return; } /* * Ensure that reserved fields are set properly. Note: uses * the DT_NON_ZERO flag to indicate that the reserved value * must be exactly one. Otherwise, the value must be zero. * This is sufficient for now. */ /* TBD: Should use a flag rather than compare "Reserved" */ if (!strcmp (Field->Name, "Reserved")) { if (Flags & DT_NON_ZERO) { if (Value != 1) { DtError (ASL_ERROR, ASL_MSG_RESERVED_FIELD, Field, "Must be one, setting to one"); Value = 1; } } else if (Value != 0) { DtError (ASL_ERROR, ASL_MSG_RESERVED_FIELD, Field, "Must be zero, setting to zero"); Value = 0; } } /* Check if the value must be non-zero */ else if ((Flags & DT_NON_ZERO) && (Value == 0)) { DtError (ASL_ERROR, ASL_MSG_ZERO_VALUE, Field, NULL); } /* * Generate the maximum value for the data type (ByteLength) * Note: construct chosen for maximum portability */ MaxValue = ((UINT64) (-1)) >> (64 - (ByteLength * 8)); /* Validate that the input value is within range of the target */ if (Value > MaxValue) { sprintf (AslGbl_MsgBuffer, "%8.8X%8.8X - max %u bytes", ACPI_FORMAT_UINT64 (Value), ByteLength); DtError (ASL_ERROR, ASL_MSG_INTEGER_SIZE, Field, AslGbl_MsgBuffer); } memcpy (Buffer, &Value, ByteLength); return; } /****************************************************************************** * * FUNCTION: DtNormalizeBuffer * * PARAMETERS: Buffer - Input buffer * Count - Output the count of hex numbers in * the Buffer * * RETURN: The normalized buffer, must be freed by caller * * DESCRIPTION: [1A,2B,3C,4D] or 1A, 2B, 3C, 4D will be normalized * to 1A 2B 3C 4D * *****************************************************************************/ static char * DtNormalizeBuffer ( char *Buffer, UINT32 *Count) { char *NewBuffer; char *TmpBuffer; UINT32 BufferCount = 0; BOOLEAN Separator = TRUE; char c; NewBuffer = UtLocalCalloc (strlen (Buffer) + 1); TmpBuffer = NewBuffer; while ((c = *Buffer++)) { switch (c) { /* Valid separators */ case '[': case ']': case ' ': case ',': Separator = TRUE; break; default: if (Separator) { /* Insert blank as the standard separator */ if (NewBuffer[0]) { *TmpBuffer++ = ' '; BufferCount++; } Separator = FALSE; } *TmpBuffer++ = c; break; } } *Count = BufferCount + 1; return (NewBuffer); } /****************************************************************************** * * FUNCTION: DtCompileBuffer * * PARAMETERS: Buffer - Output buffer * StringValue - Integer list to be compiled * Field - Current field object * ByteLength - Byte length of the integer list * * RETURN: Count of remaining data in the input list * * DESCRIPTION: Compile and pack an integer list, for example * "AA 1F 20 3B" ==> Buffer[] = {0xAA,0x1F,0x20,0x3B} * *****************************************************************************/ UINT32 DtCompileBuffer ( UINT8 *Buffer, char *StringValue, DT_FIELD *Field, UINT32 ByteLength) { char *Substring; ACPI_STATUS Status; UINT32 Count; UINT32 i; /* Allow several different types of value separators */ StringValue = DtNormalizeBuffer (StringValue, &Count); Substring = StringValue; if (Count != ByteLength) { sprintf(AslGbl_MsgBuffer, "Found %u values, must match expected count: %u", Count, ByteLength); DtError (ASL_ERROR, ASL_MSG_BUFFER_LIST, Field, AslGbl_MsgBuffer); goto Exit; } /* Each element of StringValue is now three chars (2 hex + 1 space) */ for (i = 0; i < Count; i++, Substring += 3) { /* Check for byte value too long */ if (*(&Substring[2]) && (*(&Substring[2]) != ' ')) { DtError (ASL_ERROR, ASL_MSG_BUFFER_ELEMENT, Field, Substring); goto Exit; } /* Convert two ASCII characters to one hex byte */ Status = AcpiUtAsciiToHexByte (Substring, &Buffer[i]); if (ACPI_FAILURE (Status)) { DtError (ASL_ERROR, ASL_MSG_BUFFER_ELEMENT, Field, Substring); goto Exit; } } Exit: ACPI_FREE (StringValue); return (ByteLength - Count); } /****************************************************************************** * * FUNCTION: DtCompileFlag * * PARAMETERS: Buffer - Output buffer * Field - Field to be compiled * Info - Flag info * * RETURN: None * * DESCRIPTION: Compile a flag field. Handles flags up to 64 bits. * *****************************************************************************/ void DtCompileFlag ( UINT8 *Buffer, DT_FIELD *Field, ACPI_DMTABLE_INFO *Info) { UINT64 Value = 0; UINT32 BitLength = 1; UINT8 BitPosition = 0; Value = AcpiUtImplicitStrtoul64 (Field->Value); switch (Info->Opcode) { case ACPI_DMT_FLAG0: case ACPI_DMT_FLAG1: case ACPI_DMT_FLAG2: case ACPI_DMT_FLAG3: case ACPI_DMT_FLAG4: case ACPI_DMT_FLAG5: case ACPI_DMT_FLAG6: case ACPI_DMT_FLAG7: BitPosition = Info->Opcode; BitLength = 1; break; case ACPI_DMT_FLAGS0: BitPosition = 0; BitLength = 2; break; case ACPI_DMT_FLAGS1: BitPosition = 1; BitLength = 2; break; case ACPI_DMT_FLAGS2: BitPosition = 2; BitLength = 2; break; case ACPI_DMT_FLAGS8_2: BitPosition = 2; BitLength = 8; break; case ACPI_DMT_FLAGS4: BitPosition = 4; BitLength = 2; break; case ACPI_DMT_FLAGS4_0: BitPosition = 0; BitLength = 4; break; case ACPI_DMT_FLAGS4_4: BitPosition = 4; BitLength = 4; break; case ACPI_DMT_FLAGS4_8: BitPosition = 8; BitLength = 4; break; case ACPI_DMT_FLAGS4_12: BitPosition = 12; BitLength = 4; break; case ACPI_DMT_FLAGS16_16: BitPosition = 16; BitLength = 16; break; default: DtFatal (ASL_MSG_COMPILER_INTERNAL, Field, "Invalid flag opcode"); break; } /* Check range of the input flag value */ if (Value >= ((UINT64) 1 << BitLength)) { sprintf (AslGbl_MsgBuffer, "Maximum %u bit", BitLength); DtError (ASL_ERROR, ASL_MSG_FLAG_VALUE, Field, AslGbl_MsgBuffer); Value = 0; } *Buffer |= (UINT8) (Value << BitPosition); } /****************************************************************************** * * FUNCTION: DtCreateField * * PARAMETERS: Name * Value * Line * Offset * Column * NameColumn * * RETURN: None * * DESCRIPTION: Create a field * *****************************************************************************/ void DtCreateField ( DT_TABLE_UNIT *FieldKey, DT_TABLE_UNIT *FieldValue, UINT32 Offset) { DT_FIELD *Field = UtFieldCacheCalloc (); Field->StringLength = 0; if (FieldKey->Value) { Field->Name = strcpy (UtLocalCacheCalloc (strlen (FieldKey->Value) + 1), FieldKey->Value); } if (FieldValue->Value) { Field->StringLength = strlen (FieldValue->Value); Field->Value = strcpy (UtLocalCacheCalloc (Field->StringLength + 1), FieldValue->Value); } Field->Line = FieldValue->Line; Field->ByteOffset = Offset; Field->NameColumn = FieldKey->Column; Field->Column = FieldValue->Column; DtLinkField (Field); DtDumpFieldList (AslGbl_FieldList); } /****************************************************************************** * * FUNCTION: DtCreateTableUnit * * PARAMETERS: Data * Line * Column * * RETURN: a table unit * * DESCRIPTION: Create a table unit * *****************************************************************************/ DT_TABLE_UNIT * DtCreateTableUnit ( char *Data, UINT32 Line, UINT32 Column) { DT_TABLE_UNIT *Unit = (DT_TABLE_UNIT *) UtFieldCacheCalloc (); Unit->Value = Data; Unit->Line = Line; Unit->Column = Column; return (Unit); } /****************************************************************************** * * FUNCTION: DtLinkField * * PARAMETERS: Field - New field object to link * * RETURN: None * * DESCRIPTION: Link one field name and value to the list * *****************************************************************************/ void DtLinkField ( DT_FIELD *Field) { DT_FIELD *Prev; DT_FIELD *Next; Prev = Next = AslGbl_FieldList; while (Next) { Prev = Next; Next = Next->Next; } if (Prev) { Prev->Next = Field; } else { AslGbl_FieldList = Field; } } acpica-unix-20250404/source/compiler/prmacros.c0000775000175000017500000004113114773714132020645 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: prmacros - Preprocessor #define macro support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT ASL_PREPROCESSOR ACPI_MODULE_NAME ("prmacros") /******************************************************************************* * * FUNCTION: PrDumpPredefinedNames * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Dump the list of #defines. Used as the preprocessor starts, to * display the names that were defined on the command line. * Debug information only. * ******************************************************************************/ void PrDumpPredefinedNames ( void) { PR_DEFINE_INFO *DefineInfo; DefineInfo = AslGbl_DefineList; while (DefineInfo) { DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "Predefined #define: %s->%s\n", 0, DefineInfo->Identifier, DefineInfo->Replacement); DefineInfo = DefineInfo->Next; } } /******************************************************************************* * * FUNCTION: PrAddDefine * * PARAMETERS: Identifier - Name to be replaced * Replacement - Replacement for Identifier * Persist - Keep define across multiple compiles? * * RETURN: A new define_info struct. NULL on error. * * DESCRIPTION: Add a new #define to the global list * ******************************************************************************/ PR_DEFINE_INFO * PrAddDefine ( char *Identifier, char *Replacement, BOOLEAN Persist) { char *IdentifierString; char *ReplacementString; PR_DEFINE_INFO *DefineInfo; if (!Replacement) { Replacement = ""; } /* Check for already-defined first */ DefineInfo = PrMatchDefine (Identifier); if (DefineInfo) { DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "#define: name already exists: %s\n", AslGbl_CurrentLineNumber, Identifier); /* * Name already exists. This is only an error if the target name * is different. */ if (strcmp (Replacement, DefineInfo->Replacement)) { PrError (ASL_ERROR, ASL_MSG_EXISTING_NAME, THIS_TOKEN_OFFSET (Identifier)); return (NULL); } return (DefineInfo); } /* Copy input strings */ IdentifierString = UtLocalCalloc (strlen (Identifier) + 1); strcpy (IdentifierString, Identifier); ReplacementString = UtLocalCalloc (strlen (Replacement) + 1); strcpy (ReplacementString, Replacement); /* Init and link new define info struct */ DefineInfo = UtLocalCalloc (sizeof (PR_DEFINE_INFO)); DefineInfo->Replacement = ReplacementString; DefineInfo->Identifier = IdentifierString; DefineInfo->Persist = Persist; if (AslGbl_DefineList) { AslGbl_DefineList->Previous = DefineInfo; } DefineInfo->Next = AslGbl_DefineList; AslGbl_DefineList = DefineInfo; return (DefineInfo); } /******************************************************************************* * * FUNCTION: PrRemoveDefine * * PARAMETERS: DefineName - Name of define to be removed * * RETURN: None * * DESCRIPTION: Implements #undef. Remove a #define if found in the global * list. No error if the target of the #undef does not exist, * as per the C #undef definition. * ******************************************************************************/ void PrRemoveDefine ( char *DefineName) { PR_DEFINE_INFO *DefineInfo; /* Match name and delete the node */ DefineInfo = AslGbl_DefineList; while (DefineInfo) { if (!strcmp (DefineName, DefineInfo->Identifier)) { /* Remove from linked list */ if (DefineInfo->Previous) { (DefineInfo->Previous)->Next = DefineInfo->Next; } else { AslGbl_DefineList = DefineInfo->Next; } if (DefineInfo->Next) { (DefineInfo->Next)->Previous = DefineInfo->Previous; } free (DefineInfo); return; } DefineInfo = DefineInfo->Next; } /* * Name was not found. By definition of #undef, this is not * an error, however. */ DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "#undef: could not find %s\n", AslGbl_CurrentLineNumber, DefineName); } /******************************************************************************* * * FUNCTION: PrMatchDefine * * PARAMETERS: MatchString - Name associated with the #define * * RETURN: Matched string if found. NULL otherwise. * * DESCRIPTION: Find a name in global #define list * ******************************************************************************/ PR_DEFINE_INFO * PrMatchDefine ( char *MatchString) { PR_DEFINE_INFO *DefineInfo; DefineInfo = AslGbl_DefineList; while (DefineInfo) { if (!strcmp (MatchString, DefineInfo->Identifier)) { return (DefineInfo); } DefineInfo = DefineInfo->Next; } return (NULL); } /******************************************************************************* * * FUNCTION: PrAddMacro * * PARAMETERS: Name - Start of the macro definition * Next - "Next" buffer from GetNextToken * * RETURN: None * * DESCRIPTION: Add a new macro to the list of #defines. Handles argument * processing. * ******************************************************************************/ void PrAddMacro ( char *Name, char **Next) { char *Token = NULL; ACPI_SIZE TokenOffset; ACPI_SIZE MacroBodyOffset; PR_DEFINE_INFO *DefineInfo; PR_MACRO_ARG *Args; char *Body; char *BodyInSource; UINT32 i; UINT16 UseCount = 0; UINT16 ArgCount = 0; UINT32 Depth = 1; /*UINT32 Depth = 1;*/ UINT32 EndOfArgList; char BufferChar; /* Find the end of the arguments list */ TokenOffset = Name - AslGbl_MainTokenBuffer + strlen (Name) + 1; while (1) { BufferChar = AslGbl_CurrentLineBuffer[TokenOffset]; if (BufferChar == '(') { Depth++; } else if (BufferChar == ')') { Depth--; } else if (BufferChar == 0) { PrError (ASL_ERROR, ASL_MSG_MACRO_SYNTAX, TokenOffset); return; } if (Depth == 0) { /* Found arg list end */ EndOfArgList = TokenOffset; break; } TokenOffset++; } /* At this point, we know that we have a reasonable argument list */ Args = UtLocalCalloc (sizeof (PR_MACRO_ARG) * PR_MAX_MACRO_ARGS); /* Get the macro argument names */ for (i = 0; i < PR_MAX_MACRO_ARGS; i++) { Token = PrGetNextToken (NULL, PR_MACRO_SEPARATORS, Next); if (!Token) { /* This is the case for a NULL macro body */ BodyInSource = ""; goto AddMacroToList; } /* Don't go beyond the argument list */ TokenOffset = Token - AslGbl_MainTokenBuffer + strlen (Token); if (TokenOffset > EndOfArgList) { break; } DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "Macro param: %s\n", AslGbl_CurrentLineNumber, Token); Args[i].Name = UtLocalCalloc (strlen (Token) + 1); strcpy (Args[i].Name, Token); Args[i].UseCount = 0; ArgCount++; if (ArgCount >= PR_MAX_MACRO_ARGS) { PrError (ASL_ERROR, ASL_MSG_TOO_MANY_ARGUMENTS, TokenOffset); goto ErrorExit; } } /* Get the macro body. Token now points to start of body */ MacroBodyOffset = Token - AslGbl_MainTokenBuffer; /* Match each method arg in the macro body for later use */ while (Token) { /* Search the macro arg list for matching arg */ for (i = 0; ((i < PR_MAX_MACRO_ARGS) && Args[i].Name); i++) { /* * Save argument offset within macro body. This is the mechanism * used to expand the macro upon invocation. * * Handles multiple instances of the same argument */ if (!strcmp (Token, Args[i].Name)) { UseCount = Args[i].UseCount; Args[i].Offset[UseCount] = (Token - AslGbl_MainTokenBuffer) - MacroBodyOffset; DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "Macro Arg #%u: %s UseCount %u Offset %u\n", AslGbl_CurrentLineNumber, i, Token, UseCount+1, Args[i].Offset[UseCount]); Args[i].UseCount++; if (Args[i].UseCount >= PR_MAX_ARG_INSTANCES) { PrError (ASL_ERROR, ASL_MSG_TOO_MANY_ARGUMENTS, THIS_TOKEN_OFFSET (Token)); goto ErrorExit; } break; } } Token = PrGetNextToken (NULL, PR_MACRO_SEPARATORS, Next); } BodyInSource = &AslGbl_CurrentLineBuffer[MacroBodyOffset]; AddMacroToList: /* Check if name is already defined first */ DefineInfo = PrMatchDefine (Name); if (DefineInfo) { DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "#define: macro name already exists: %s\n", AslGbl_CurrentLineNumber, Name); /* Error only if not exactly the same macro */ if (strcmp (DefineInfo->Body, BodyInSource) || (DefineInfo->ArgCount != ArgCount)) { PrError (ASL_ERROR, ASL_MSG_EXISTING_NAME, THIS_TOKEN_OFFSET (Name)); } goto ErrorExit; } DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "Macro body: %s\n", AslGbl_CurrentLineNumber, BodyInSource); /* Add macro to the #define list */ DefineInfo = PrAddDefine (Name, BodyInSource, FALSE); if (DefineInfo) { Body = UtLocalCalloc (strlen (BodyInSource) + 1); strcpy (Body, BodyInSource); DefineInfo->Body = Body; DefineInfo->Args = Args; DefineInfo->ArgCount = ArgCount; } return; ErrorExit: ACPI_FREE (Args); return; } /******************************************************************************* * * FUNCTION: PrDoMacroInvocation * * PARAMETERS: TokenBuffer - Current line buffer * MacroStart - Start of the macro invocation within * the token buffer * DefineInfo - Info for this macro * Next - "Next" buffer from GetNextToken * * RETURN: None * * DESCRIPTION: Expand a macro invocation * ******************************************************************************/ void PrDoMacroInvocation ( char *TokenBuffer, char *MacroStart, PR_DEFINE_INFO *DefineInfo, char **Next) { PR_MACRO_ARG *Args; char *Token = NULL; UINT32 TokenOffset; UINT32 Length; UINT32 i; UINT32 Diff1; UINT32 Diff2; /* Take a copy of the macro body for expansion */ strcpy (AslGbl_MacroTokenBuffer, DefineInfo->Body); /* Replace each argument within the prototype body */ Args = DefineInfo->Args; if (!Args->Name) { /* This macro has no arguments */ Token = PrGetNextToken (NULL, PR_MACRO_ARGUMENTS, Next); if (!Token) { goto BadInvocation; } TokenOffset = (MacroStart - TokenBuffer); Length = Token - MacroStart + strlen (Token) + 1; PrReplaceData ( &AslGbl_CurrentLineBuffer[TokenOffset], Length, AslGbl_MacroTokenBuffer, strlen (AslGbl_MacroTokenBuffer)); return; } while (Args->Name) { /* Get the next argument from macro invocation */ Token = PrGetNextToken (NULL, PR_MACRO_SEPARATORS, Next); if (!Token) { goto BadInvocation; } /* * Avoid optimizing using just 1 signed int due to specific * non-portable implementations of signed ints */ Diff1 = strlen (Args->Name) > strlen (Token) ? strlen (Args->Name) - strlen (Token) : 0; Diff2 = strlen (Args->Name) < strlen (Token) ? strlen (Token) - strlen (Args->Name) : 0; /* Replace all instances of this argument */ for (i = 0; i < Args->UseCount; i++) { /* * To test the output of the preprocessed macro function that * is passed to the compiler */ /* * fprintf (stderr, "Current token = %s \t Current arg_name = %s \ * \t strlen (Token) = %u \t strlen (Args->Name) = %u \t Offset = %u \ * \t UseCount = %u \t", Token, Args->Name, strlen (Token), \ * strlen (Args->Name), Args->Offset[i], Args->UseCount); */ AslGbl_MacroTokenReplaceBuffer = (char *) calloc ((strlen (AslGbl_MacroTokenBuffer)), sizeof (char)); PrReplaceResizeSubstring (Args, Diff1, Diff2, i, Token); DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "ExpandArg: %s\n", AslGbl_CurrentLineNumber, AslGbl_MacroTokenBuffer); } Args++; } if (!Token) { return; } /* Replace the entire macro invocation with the expanded macro */ TokenOffset = (MacroStart - TokenBuffer); Length = Token - MacroStart + strlen (Token) + 1; PrReplaceData ( &AslGbl_CurrentLineBuffer[TokenOffset], Length, AslGbl_MacroTokenBuffer, strlen (AslGbl_MacroTokenBuffer)); return; BadInvocation: PrError (ASL_ERROR, ASL_MSG_INVALID_INVOCATION, THIS_TOKEN_OFFSET (MacroStart)); DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "Bad macro invocation: %s\n", AslGbl_CurrentLineNumber, AslGbl_MacroTokenBuffer); return; } acpica-unix-20250404/source/compiler/aslbtypes.c0000775000175000017500000003625614773714131021040 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslbtypes - Support for bitfield types * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslbtypes") /* Local prototypes */ static UINT32 AnMapEtypeToBtype ( UINT32 Etype); /******************************************************************************* * * FUNCTION: AnMapArgTypeToBtype * * PARAMETERS: ArgType - The ARGI required type(s) for this * argument, from the opcode info table * * RETURN: The corresponding Bit-encoded types * * DESCRIPTION: Convert an encoded ARGI required argument type code into a * bitfield type code. Implements the implicit source conversion * rules. * ******************************************************************************/ UINT32 AnMapArgTypeToBtype ( UINT32 ArgType) { switch (ArgType) { /* Simple types */ case ARGI_ANYTYPE: return (ACPI_BTYPE_OBJECTS_AND_REFS); case ARGI_PACKAGE: return (ACPI_BTYPE_PACKAGE); case ARGI_EVENT: return (ACPI_BTYPE_EVENT); case ARGI_MUTEX: return (ACPI_BTYPE_MUTEX); case ARGI_DDBHANDLE: /* * DDBHandleObject := SuperName * ACPI_BTYPE_REFERENCE_OBJECT: * Index reference as parameter of Load/Unload */ return (ACPI_BTYPE_DDB_HANDLE | ACPI_BTYPE_REFERENCE_OBJECT); /* Interchangeable types */ /* * Source conversion rules: * Integer, String, and Buffer are all interchangeable */ case ARGI_INTEGER: case ARGI_STRING: case ARGI_BUFFER: case ARGI_BUFFER_OR_STRING: case ARGI_COMPUTEDATA: return (ACPI_BTYPE_COMPUTE_DATA); /* References */ case ARGI_INTEGER_REF: return (ACPI_BTYPE_INTEGER); case ARGI_OBJECT_REF: return (ACPI_BTYPE_ALL_OBJECTS); case ARGI_DEVICE_REF: return (ACPI_BTYPE_DEVICE_OBJECTS); case ARGI_REFERENCE: return (ACPI_BTYPE_NAMED_REFERENCE); /* Name or Namestring */ case ARGI_TARGETREF: /* * Target operand for most math and logic operators. * Package objects not allowed as target. */ return (ACPI_BTYPE_COMPUTE_DATA | ACPI_BTYPE_DEBUG_OBJECT | ACPI_BTYPE_REFERENCE_OBJECT); case ARGI_STORE_TARGET: /* Special target for Store(), includes packages */ return (ACPI_BTYPE_DATA | ACPI_BTYPE_DEBUG_OBJECT | ACPI_BTYPE_REFERENCE_OBJECT); case ARGI_FIXED_TARGET: case ARGI_SIMPLE_TARGET: return (ACPI_BTYPE_OBJECTS_AND_REFS); /* Complex types */ case ARGI_DATAOBJECT: /* * Buffer, string, package or reference to a Op - * Used only by SizeOf operator */ return (ACPI_BTYPE_STRING | ACPI_BTYPE_BUFFER | ACPI_BTYPE_PACKAGE | ACPI_BTYPE_REFERENCE_OBJECT); case ARGI_COMPLEXOBJ: /* Buffer, String, or package */ return (ACPI_BTYPE_STRING | ACPI_BTYPE_BUFFER | ACPI_BTYPE_PACKAGE); case ARGI_REF_OR_STRING: /* Used by DeRefOf operator only */ return (ACPI_BTYPE_STRING | ACPI_BTYPE_REFERENCE_OBJECT); case ARGI_REGION_OR_BUFFER: /* Used by Load() only. Allow buffers in addition to regions/fields */ return (ACPI_BTYPE_REGION | ACPI_BTYPE_BUFFER | ACPI_BTYPE_FIELD_UNIT); case ARGI_DATAREFOBJ: /* Used by Store() only, as the source operand */ return (ACPI_BTYPE_DATA_REFERENCE | ACPI_BTYPE_REFERENCE_OBJECT); default: break; } return (ACPI_BTYPE_OBJECTS_AND_REFS); } /******************************************************************************* * * FUNCTION: AnMapEtypeToBtype * * PARAMETERS: Etype - Encoded ACPI Type * * RETURN: Btype corresponding to the Etype * * DESCRIPTION: Convert an encoded ACPI type to a bitfield type applying the * operand conversion rules. In other words, returns the type(s) * this Etype is implicitly converted to during interpretation. * ******************************************************************************/ static UINT32 AnMapEtypeToBtype ( UINT32 Etype) { if (Etype == ACPI_TYPE_ANY) { return (ACPI_BTYPE_OBJECTS_AND_REFS); } /* Try the standard ACPI data types */ if (Etype <= ACPI_TYPE_EXTERNAL_MAX) { /* * This switch statement implements the allowed operand conversion * rules as per the "ASL Data Types" section of the ACPI * specification. */ switch (Etype) { case ACPI_TYPE_INTEGER: return (ACPI_BTYPE_COMPUTE_DATA | ACPI_BTYPE_DDB_HANDLE); case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: return (ACPI_BTYPE_COMPUTE_DATA); case ACPI_TYPE_PACKAGE: return (ACPI_BTYPE_PACKAGE); case ACPI_TYPE_FIELD_UNIT: return (ACPI_BTYPE_COMPUTE_DATA | ACPI_BTYPE_FIELD_UNIT); case ACPI_TYPE_BUFFER_FIELD: return (ACPI_BTYPE_COMPUTE_DATA | ACPI_BTYPE_BUFFER_FIELD); case ACPI_TYPE_DDB_HANDLE: return (ACPI_BTYPE_INTEGER | ACPI_BTYPE_DDB_HANDLE); case ACPI_TYPE_DEBUG_OBJECT: /* Cannot be used as a source operand */ return (0); default: return (1 << (Etype - 1)); } } /* Try the internal data types */ switch (Etype) { case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: /* Named fields can be either Integer/Buffer/String */ return (ACPI_BTYPE_COMPUTE_DATA | ACPI_BTYPE_FIELD_UNIT); case ACPI_TYPE_LOCAL_ALIAS: return (ACPI_BTYPE_INTEGER); case ACPI_TYPE_LOCAL_RESOURCE: case ACPI_TYPE_LOCAL_RESOURCE_FIELD: return (ACPI_BTYPE_REFERENCE_OBJECT); default: printf ("Unhandled encoded type: %X\n", Etype); return (0); } } /******************************************************************************* * * FUNCTION: AnFormatBtype * * PARAMETERS: Btype - Bitfield of ACPI types * Buffer - Where to put the ascii string * * RETURN: None. * * DESCRIPTION: Convert a Btype to a string of ACPI types * ******************************************************************************/ void AnFormatBtype ( char *Buffer, UINT32 Btype) { UINT32 Type; BOOLEAN First = TRUE; *Buffer = 0; if (Btype == 0) { strcat (Buffer, "NoReturnValue"); return; } for (Type = 1; Type <= ACPI_TYPE_EXTERNAL_MAX; Type++) { if (Btype & 0x00000001) { if (!First) { strcat (Buffer, "|"); } First = FALSE; strcat (Buffer, AcpiUtGetTypeName (Type)); } Btype >>= 1; } if (Btype & 0x00000001) { if (!First) { strcat (Buffer, "|"); } First = FALSE; strcat (Buffer, "Reference"); } Btype >>= 1; if (Btype & 0x00000001) { if (!First) { strcat (Buffer, "|"); } strcat (Buffer, "Resource"); } } /******************************************************************************* * * FUNCTION: AnGetBtype * * PARAMETERS: Op - Parse node whose type will be returned. * * RETURN: The Btype associated with the Op. * * DESCRIPTION: Get the (bitfield) ACPI type associated with the parse node. * Handles the case where the node is a name or method call and * the actual type must be obtained from the namespace node. * ******************************************************************************/ UINT32 AnGetBtype ( ACPI_PARSE_OBJECT *Op) { ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *ReferencedNode; UINT32 ThisNodeBtype = 0; ACPI_FUNCTION_NAME (AnGetBtype); if (!Op) { AcpiOsPrintf ("Null Op in %s\n", ACPI_GET_FUNCTION_NAME); return (ACPI_UINT32_MAX); } if ((Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_NAMESTRING) || (Op->Asl.ParseOpcode == PARSEOP_METHODCALL)) { Node = Op->Asl.Node; if (!Node) { /* These are not expected to have a node at this time */ if ((Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CREATEWORDFIELD) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CREATEDWORDFIELD) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CREATEQWORDFIELD) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CREATEBYTEFIELD) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CREATEBITFIELD) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CREATEFIELD) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CONDREFOF)) { return (ACPI_UINT32_MAX - 1); } DbgPrint (ASL_DEBUG_OUTPUT, "No attached Nsnode: [%s] at line %u name [%s], " "ignoring typecheck. Parent [%s]\n", Op->Asl.ParseOpName, Op->Asl.LineNumber, Op->Asl.ExternalName, Op->Asl.Parent->Asl.ParseOpName); return (ACPI_UINT32_MAX - 1); } ThisNodeBtype = AnMapEtypeToBtype (Node->Type); if (!ThisNodeBtype) { AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, Op, "could not map type"); } if (Op->Asl.ParseOpcode == PARSEOP_METHODCALL) { ReferencedNode = Node->Op; if (!ReferencedNode) { /* Check for an internal method */ if (AnIsInternalMethod (Op)) { return (AnGetInternalMethodReturnType (Op)); } AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, Op, "null Op pointer"); return (ACPI_UINT32_MAX); } if (ReferencedNode->Asl.CompileFlags & OP_METHOD_TYPED) { ThisNodeBtype = ReferencedNode->Asl.AcpiBtype; } else { return (ACPI_UINT32_MAX -1); } } } else { ThisNodeBtype = Op->Asl.AcpiBtype; } return (ThisNodeBtype); } /******************************************************************************* * * FUNCTION: AnMapObjTypeToBtype * * PARAMETERS: Op - A parse node * * RETURN: A Btype * * DESCRIPTION: Map object to the associated "Btype" * ******************************************************************************/ UINT32 AnMapObjTypeToBtype ( ACPI_PARSE_OBJECT *Op) { switch (Op->Asl.ParseOpcode) { case PARSEOP_OBJECTTYPE_BFF: /* "BuffFieldObj" */ return (ACPI_BTYPE_BUFFER_FIELD); case PARSEOP_OBJECTTYPE_BUF: /* "BuffObj" */ return (ACPI_BTYPE_BUFFER); case PARSEOP_OBJECTTYPE_DDB: /* "DDBHandleObj" */ return (ACPI_BTYPE_DDB_HANDLE); case PARSEOP_OBJECTTYPE_DEV: /* "DeviceObj" */ return (ACPI_BTYPE_DEVICE); case PARSEOP_OBJECTTYPE_EVT: /* "EventObj" */ return (ACPI_BTYPE_EVENT); case PARSEOP_OBJECTTYPE_FLD: /* "FieldUnitObj" */ return (ACPI_BTYPE_FIELD_UNIT); case PARSEOP_OBJECTTYPE_INT: /* "IntObj" */ return (ACPI_BTYPE_INTEGER); case PARSEOP_OBJECTTYPE_MTH: /* "MethodObj" */ return (ACPI_BTYPE_METHOD); case PARSEOP_OBJECTTYPE_MTX: /* "MutexObj" */ return (ACPI_BTYPE_MUTEX); case PARSEOP_OBJECTTYPE_OPR: /* "OpRegionObj" */ return (ACPI_BTYPE_REGION); case PARSEOP_OBJECTTYPE_PKG: /* "PkgObj" */ return (ACPI_BTYPE_PACKAGE); case PARSEOP_OBJECTTYPE_POW: /* "PowerResObj" */ return (ACPI_BTYPE_POWER); case PARSEOP_OBJECTTYPE_STR: /* "StrObj" */ return (ACPI_BTYPE_STRING); case PARSEOP_OBJECTTYPE_THZ: /* "ThermalZoneObj" */ return (ACPI_BTYPE_THERMAL); case PARSEOP_OBJECTTYPE_UNK: /* "UnknownObj" */ return (ACPI_BTYPE_OBJECTS_AND_REFS); default: return (0); } } #ifdef ACPI_OBSOLETE_FUNCTIONS /******************************************************************************* * * FUNCTION: AnMapBtypeToEtype * * PARAMETERS: Btype - Bitfield of ACPI types * * RETURN: The Etype corresponding the Btype * * DESCRIPTION: Convert a bitfield type to an encoded type * ******************************************************************************/ UINT32 AnMapBtypeToEtype ( UINT32 Btype) { UINT32 i; UINT32 Etype; if (Btype == 0) { return (0); } Etype = 1; for (i = 1; i < Btype; i *= 2) { Etype++; } return (Etype); } #endif acpica-unix-20250404/source/compiler/aslload.c0000775000175000017500000012365414773714131020450 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslload - compiler namespace load callbacks * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "amlcode.h" #include "acdispat.h" #include "acnamesp.h" #include "acparser.h" #include "aslcompiler.y.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslload") /* Local prototypes */ static ACPI_STATUS LdLoadFieldElements ( UINT32 AmlType, ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); static ACPI_STATUS LdLoadResourceElements ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState); static ACPI_STATUS LdNamespace1Begin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS LdNamespace2Begin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS LdCommonNamespaceEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static void LdCheckSpecialNames ( ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op); static ACPI_STATUS LdAnalyzeExternals ( ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op, ACPI_OBJECT_TYPE ExternalOpType, ACPI_WALK_STATE *WalkState); /******************************************************************************* * * FUNCTION: LdLoadNamespace * * PARAMETERS: RootOp - Root of the parse tree * * RETURN: Status * * DESCRIPTION: Perform a walk of the parse tree that in turn loads all of the * named ASL/AML objects into the namespace. The namespace is * constructed in order to resolve named references and references * to named fields within resource templates/descriptors. * ******************************************************************************/ ACPI_STATUS LdLoadNamespace ( ACPI_PARSE_OBJECT *RootOp) { ACPI_WALK_STATE *WalkState; /* Create a new walk state */ WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL); if (!WalkState) { return (AE_NO_MEMORY); } /* Walk the entire parse tree, first pass */ TrWalkParseTree (RootOp, ASL_WALK_VISIT_TWICE, LdNamespace1Begin, LdCommonNamespaceEnd, WalkState); /* Second pass to handle forward references */ TrWalkParseTree (RootOp, ASL_WALK_VISIT_TWICE, LdNamespace2Begin, LdCommonNamespaceEnd, WalkState); /* Dump the namespace if debug is enabled */ if (AcpiDbgLevel & ACPI_LV_TABLES) { AcpiNsDumpTables (ACPI_NS_ALL, ACPI_UINT32_MAX); } ACPI_FREE (WalkState); return (AE_OK); } /******************************************************************************* * * FUNCTION: LdLoadFieldElements * * PARAMETERS: AmlType - Type to search * Op - Parent node (Field) * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Enter the named elements of the field (children of the parent) * into the namespace. * ******************************************************************************/ static ACPI_STATUS LdLoadFieldElements ( UINT32 AmlType, ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { ACPI_PARSE_OBJECT *Child = NULL; ACPI_PARSE_OBJECT *SourceRegion; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; char *ExternalPath; SourceRegion = UtGetArg (Op, 0); if (SourceRegion) { Status = AcpiNsLookup (WalkState->ScopeInfo, SourceRegion->Asl.Value.String, AmlType, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, NULL, &Node); if (Status == AE_NOT_FOUND) { /* * If the named object is not found, it means that it is either a * forward reference or the named object does not exist. */ SourceRegion->Asl.CompileFlags |= OP_NOT_FOUND_DURING_LOAD; } } /* Get the first named field element */ switch (Op->Asl.AmlOpcode) { case AML_BANK_FIELD_OP: Child = UtGetArg (Op, 6); break; case AML_INDEX_FIELD_OP: Child = UtGetArg (Op, 5); break; case AML_FIELD_OP: Child = UtGetArg (Op, 4); break; default: /* No other opcodes should arrive here */ return (AE_BAD_PARAMETER); } /* Enter all elements into the namespace */ while (Child) { switch (Child->Asl.AmlOpcode) { case AML_INT_RESERVEDFIELD_OP: case AML_INT_ACCESSFIELD_OP: case AML_INT_CONNECTION_OP: break; default: Status = AcpiNsLookup (WalkState->ScopeInfo, Child->Asl.Value.String, ACPI_TYPE_LOCAL_REGION_FIELD, ACPI_IMODE_LOAD_PASS1, ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE | ACPI_NS_ERROR_IF_FOUND, NULL, &Node); if (ACPI_FAILURE (Status)) { if (Status != AE_ALREADY_EXISTS) { AslError (ASL_ERROR, ASL_MSG_CORE_EXCEPTION, Child, Child->Asl.Value.String); return (Status); } else if (Status == AE_ALREADY_EXISTS && (Node->Flags & ANOBJ_IS_EXTERNAL)) { Node->Type = (UINT8) ACPI_TYPE_LOCAL_REGION_FIELD; Node->Flags &= ~ANOBJ_IS_EXTERNAL; } else { /* * The name already exists in this scope * But continue processing the elements */ ExternalPath = AcpiNsGetNormalizedPathname (Node, TRUE); AslDualParseOpError (ASL_ERROR, ASL_MSG_NAME_EXISTS, Child, ExternalPath, ASL_MSG_FOUND_HERE, Node->Op, ExternalPath); if (ExternalPath) { ACPI_FREE (ExternalPath); } } } else { Child->Asl.Node = Node; Node->Op = Child; } break; } Child = Child->Asl.Next; } return (AE_OK); } /******************************************************************************* * * FUNCTION: LdLoadResourceElements * * PARAMETERS: Op - Parent node (Resource Descriptor) * WalkState - Current walk state * * RETURN: Status * * DESCRIPTION: Enter the named elements of the resource descriptor (children * of the parent) into the namespace. * * NOTE: In the real AML namespace, these named elements never exist. But * we simply use the namespace here as a symbol table so we can look * them up as they are referenced. * ******************************************************************************/ static ACPI_STATUS LdLoadResourceElements ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { ACPI_PARSE_OBJECT *InitializerOp = NULL; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; char *ExternalPath; /* * Enter the resource name into the namespace. Name must not already exist. * This opens a scope, so later field names are guaranteed to be new/unique. */ Status = AcpiNsLookup (WalkState->ScopeInfo, Op->Asl.Namepath, ACPI_TYPE_LOCAL_RESOURCE, ACPI_IMODE_LOAD_PASS1, ACPI_NS_NO_UPSEARCH | ACPI_NS_ERROR_IF_FOUND, WalkState, &Node); if (ACPI_FAILURE (Status)) { if (Status == AE_ALREADY_EXISTS) { /* Actual node causing the error was saved in ParentMethod */ ExternalPath = AcpiNsGetNormalizedPathname (Node, TRUE); AslDualParseOpError (ASL_ERROR, ASL_MSG_NAME_EXISTS, (ACPI_PARSE_OBJECT *) Op->Asl.ParentMethod, ExternalPath, ASL_MSG_FOUND_HERE, Node->Op, ExternalPath); if (ExternalPath) { ACPI_FREE (ExternalPath); } return (AE_OK); } return (Status); } Node->Value = (UINT32) Op->Asl.Value.Integer; Node->Op = Op; Op->Asl.Node = Node; /* * Now enter the predefined fields, for easy lookup when referenced * by the source ASL */ InitializerOp = ASL_GET_CHILD_NODE (Op); while (InitializerOp) { if (InitializerOp->Asl.ExternalName) { Status = AcpiNsLookup (WalkState->ScopeInfo, InitializerOp->Asl.ExternalName, ACPI_TYPE_LOCAL_RESOURCE_FIELD, ACPI_IMODE_LOAD_PASS1, ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE, NULL, &Node); if (ACPI_FAILURE (Status)) { return (Status); } /* * Store the field offset and length in the namespace node * so it can be used when the field is referenced */ Node->Value = InitializerOp->Asl.Value.Tag.BitOffset; Node->Length = InitializerOp->Asl.Value.Tag.BitLength; InitializerOp->Asl.Node = Node; Node->Op = InitializerOp; } InitializerOp = ASL_GET_PEER_NODE (InitializerOp); } return (AE_OK); } /******************************************************************************* * * FUNCTION: LdNamespace1Begin * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Descending callback used during the parse tree walk. If this * is a named AML opcode, enter into the namespace * ******************************************************************************/ static ACPI_STATUS LdNamespace1Begin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState = (ACPI_WALK_STATE *) Context; ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *MethodOp; ACPI_STATUS Status; ACPI_OBJECT_TYPE ObjectType; char *Path; UINT32 Flags = ACPI_NS_NO_UPSEARCH; ACPI_PARSE_OBJECT *Arg; UINT32 i; BOOLEAN ForceNewScope = FALSE; const ACPI_OPCODE_INFO *OpInfo; ACPI_PARSE_OBJECT *ParentOp; char *ExternalPath; ACPI_FUNCTION_NAME (LdNamespace1Begin); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op %p [%s]\n", Op, Op->Asl.ParseOpName)); /* * We are only interested in opcodes that have an associated name * (or multiple names) */ switch (Op->Asl.AmlOpcode) { case AML_INDEX_FIELD_OP: Status = LdLoadFieldElements (ACPI_TYPE_LOCAL_REGION_FIELD, Op, WalkState); return (Status); case AML_BANK_FIELD_OP: case AML_FIELD_OP: Status = LdLoadFieldElements (ACPI_TYPE_REGION, Op, WalkState); return (Status); case AML_INT_CONNECTION_OP: if (Op->Asl.Child->Asl.AmlOpcode != AML_INT_NAMEPATH_OP) { break; } Arg = Op->Asl.Child; Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Asl.ExternalName, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &Node); if (ACPI_FAILURE (Status)) { break; } break; default: /* All other opcodes go below */ break; } /* Check if this object has already been installed in the namespace */ if (Op->Asl.Node) { return (AE_OK); } /* Check for a possible illegal forward reference */ if ((Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_NAMESTRING) || (Op->Asl.ParseOpcode == PARSEOP_METHODCALL)) { /* * Op->Asl.Namepath will be NULL for these opcodes. * These opcodes are guaranteed to have a parent. * Examine the parent opcode. */ ParentOp = Op->Asl.Parent; OpInfo = AcpiPsGetOpcodeInfo (ParentOp->Asl.AmlOpcode); /* * Exclude all operators that actually declare a new name: * Name (ABCD, 1) -> Ignore (AML_CLASS_NAMED_OBJECT) * We only want references to named objects: * Store (2, WXYZ) -> Attempt to resolve the name */ if ((Op->Asl.ParseOpcode != PARSEOP_METHODCALL) && (OpInfo->Class == AML_CLASS_NAMED_OBJECT)) { return (AE_OK); } /* * Check if the referenced object exists at this point during * the load: * 1) If it exists, then this cannot be a forward reference. * 2) If it does not exist, it could be a forward reference or * it truly does not exist (and no external declaration). */ Status = AcpiNsLookup (WalkState->ScopeInfo, Op->Asl.Value.Name, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, WalkState, &Node); if (Status == AE_NOT_FOUND) { /* * This is either a forward reference or the object truly * does not exist. The two cases can only be differentiated * during the cross-reference stage later. Mark the Op/Name * as not-found for now to indicate the need for further * processing. * * Special case: Allow forward references from elements of * Package objects. This provides compatibility with other * ACPI implementations. To correctly implement this, the * ACPICA table load defers package resolution until the entire * namespace has been loaded. */ if ((ParentOp->Asl.ParseOpcode != PARSEOP_PACKAGE) && (ParentOp->Asl.ParseOpcode != PARSEOP_VAR_PACKAGE)) { Op->Asl.CompileFlags |= OP_NOT_FOUND_DURING_LOAD; } return (AE_OK); } return (Status); } Path = Op->Asl.Namepath; if (!Path) { return (AE_OK); } /* Map the raw opcode into an internal object type */ switch (Op->Asl.ParseOpcode) { case PARSEOP_NAME: Arg = Op->Asl.Child; /* Get the NameSeg/NameString node */ Arg = Arg->Asl.Next; /* First peer is the object to be associated with the name */ /* * If this name refers to a ResourceTemplate, we will need to open * a new scope so that the resource subfield names can be entered into * the namespace underneath this name */ if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC) { ForceNewScope = TRUE; } /* Get the data type associated with the named object, not the name itself */ /* Log2 loop to convert from Btype (binary) to Etype (encoded) */ ObjectType = 1; for (i = 1; i < Arg->Asl.AcpiBtype; i *= 2) { ObjectType++; } break; case PARSEOP_EXTERNAL: /* * "External" simply enters a name and type into the namespace. * We must be careful to not open a new scope, however, no matter * what type the external name refers to (e.g., a method) * * first child is name, next child is ObjectType */ ObjectType = (UINT8) Op->Asl.Child->Asl.Next->Asl.Value.Integer; /* * We will mark every new node along the path as "External". This * allows some or all of the nodes to be created later in the ASL * code. Handles cases like this: * * External (\_SB_.PCI0.ABCD, IntObj) * Scope (_SB_) * { * Device (PCI0) * { * } * } * Method (X) * { * Store (\_SB_.PCI0.ABCD, Local0) * } */ Flags |= ACPI_NS_EXTERNAL | ACPI_NS_DONT_OPEN_SCOPE; break; case PARSEOP_DEFAULT_ARG: if (Op->Asl.CompileFlags == OP_IS_RESOURCE_DESC) { Status = LdLoadResourceElements (Op, WalkState); return_ACPI_STATUS (Status); } ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); break; case PARSEOP_SCOPE: /* * The name referenced by Scope(Name) must already exist at this point. * In other words, forward references for Scope() are not supported. * The only real reason for this is that the MS interpreter cannot * handle this case. Perhaps someday this case can go away. */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &Node); if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_FOUND) { /* The name was not found, go ahead and create it */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_LOCAL_SCOPE, ACPI_IMODE_LOAD_PASS1, Flags, WalkState, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* However, this is an error -- operand to Scope must exist */ if (strlen (Op->Asl.ExternalName) == ACPI_NAMESEG_SIZE) { AslError (ASL_ERROR, ASL_MSG_NOT_FOUND, Op, Op->Asl.ExternalName); } else { AslError (ASL_ERROR, ASL_MSG_NAMEPATH_NOT_EXIST, Op, Op->Asl.ExternalName); } goto FinishNode; } AslCoreSubsystemError (Op, Status, "Failure from namespace lookup", FALSE); return_ACPI_STATUS (Status); } else /* Status AE_OK */ { /* * Do not allow references to external scopes from the DSDT. * This is because the DSDT is always loaded first, and the * external reference cannot be resolved -- causing a runtime * error because Scope() must be resolved immediately. * 10/2015. */ if ((Node->Flags & ANOBJ_IS_EXTERNAL) && (ACPI_COMPARE_NAMESEG (AslGbl_TableSignature, "DSDT"))) { /* However, allowed if the reference is within a method */ MethodOp = Op->Asl.Parent; while (MethodOp && (MethodOp->Asl.ParseOpcode != PARSEOP_METHOD)) { MethodOp = MethodOp->Asl.Parent; } if (!MethodOp) { /* Not in a control method, error */ AslError (ASL_ERROR, ASL_MSG_CROSS_TABLE_SCOPE, Op, NULL); } } } /* We found a node with this name, now check the type */ switch (Node->Type) { case ACPI_TYPE_LOCAL_SCOPE: case ACPI_TYPE_DEVICE: case ACPI_TYPE_POWER: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: /* These are acceptable types - they all open a new scope */ break; case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* * These types we will allow, but we will change the type. * This enables some existing code of the form: * * Name (DEB, 0) * Scope (DEB) { ... } * * Which is used to workaround the fact that the MS interpreter * does not allow Scope() forward references. */ sprintf (AslGbl_MsgBuffer, "%s [%s], changing type to [Scope]", Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type)); AslError (ASL_REMARK, ASL_MSG_SCOPE_TYPE, Op, AslGbl_MsgBuffer); /* Switch the type to scope, open the new scope */ Node->Type = ACPI_TYPE_LOCAL_SCOPE; Status = AcpiDsScopeStackPush (Node, ACPI_TYPE_LOCAL_SCOPE, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } break; default: /* All other types are an error */ sprintf (AslGbl_MsgBuffer, "%s [%s]", Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type)); AslError (ASL_ERROR, ASL_MSG_SCOPE_TYPE, Op, AslGbl_MsgBuffer); /* * However, switch the type to be an actual scope so * that compilation can continue without generating a whole * cascade of additional errors. Open the new scope. */ Node->Type = ACPI_TYPE_LOCAL_SCOPE; Status = AcpiDsScopeStackPush (Node, ACPI_TYPE_LOCAL_SCOPE, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } break; } Status = AE_OK; goto FinishNode; default: ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); break; } ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Loading name: %s, (%s)\n", Op->Asl.ExternalName, AcpiUtGetTypeName (ObjectType))); /* The name must not already exist */ Flags |= ACPI_NS_ERROR_IF_FOUND; /* * For opcodes that enter new names into the namespace, * all prefix NameSegs must exist. */ WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); if (((WalkState->OpInfo->Flags & AML_NAMED) || (WalkState->OpInfo->Flags & AML_CREATE)) && (Op->Asl.AmlOpcode != AML_EXTERNAL_OP)) { Flags |= ACPI_NS_PREFIX_MUST_EXIST; } /* * Enter the named type into the internal namespace. We enter the name * as we go downward in the parse tree. Any necessary subobjects that * involve arguments to the opcode must be created as we go back up the * parse tree later. */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, ACPI_IMODE_LOAD_PASS1, Flags, WalkState, &Node); if (ACPI_FAILURE (Status)) { if (Status == AE_ALREADY_EXISTS) { /* The name already exists in this scope */ if (Node->Type == ACPI_TYPE_LOCAL_SCOPE) { /* Allow multiple references to the same scope */ Node->Type = (UINT8) ObjectType; Status = AE_OK; } else if ((Node->Flags & ANOBJ_IS_EXTERNAL) || (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL)) { Status = LdAnalyzeExternals (Node, Op, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { if (Status == AE_ERROR) { /* * The use of AE_ERROR here indicates that there was a * compiler error emitted in LdAnalyzeExternals which * means that the caller should proceed to the next Op * for analysis of subsequent parse objects. */ Status = AE_OK; } return_ACPI_STATUS (Status); } if (!(Node->Flags & ANOBJ_IS_EXTERNAL) && (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL)) { /* * If we get to here, it means that an actual definition of * the object declared external exists. Meaning that Op * loading this this Op should have no change to the ACPI * namespace. By going to FinishNode, we skip the * assignment of Node->Op = Op. */ goto FinishNode; } } else { /* Valid error, object already exists */ ExternalPath = AcpiNsGetNormalizedPathname (Node, TRUE); AslDualParseOpError (ASL_ERROR, ASL_MSG_NAME_EXISTS, Op, ExternalPath, ASL_MSG_FOUND_HERE, Node->Op, ExternalPath); if (ExternalPath) { ACPI_FREE (ExternalPath); } return_ACPI_STATUS (AE_OK); } } else if (AE_NOT_FOUND) { /* * One or more prefix NameSegs of the NamePath do not exist * (all of them must exist). Attempt to continue compilation * by setting the current scope to the root. */ Node = AcpiGbl_RootNode; Status = AE_OK; } else { /* Flag all other errors as coming from the ACPICA core */ AslCoreSubsystemError (Op, Status, "Failure from namespace lookup", FALSE); return_ACPI_STATUS (Status); } } /* Check special names like _WAK and _PTS */ LdCheckSpecialNames (Node, Op); if (ForceNewScope) { Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* Point the Node back to the original Parse node */ Node->Op = Op; FinishNode: /* Point the parse node to the new namespace node */ Op->Asl.Node = Node; if (Op->Asl.ParseOpcode == PARSEOP_METHOD) { /* * Get the method argument count from "Extra" and save * it in the namespace node */ Node->Value = (UINT32) Op->Asl.Extra; } else if (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL && Node->Type == ACPI_TYPE_METHOD && (Node->Flags & ANOBJ_IS_EXTERNAL)) { Node->Value = (UINT32) Op->Asl.Child->Asl.Next->Asl.Next->Asl.Value.Integer; } return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: LdMatchExternType * * PARAMETERS: Type1 * Type2 * * RETURN: BOOLEAN * * DESCRIPTION: Match Type1 and Type2 with the assumption that one might be * using external types and another might be using local types. * This should be used to compare the types found in external * declarations with types found in other external declarations or * named object declaration. This should not be used to match two * object type declarations. * ******************************************************************************/ static BOOLEAN LdMatchExternType ( ACPI_OBJECT_TYPE Type1, ACPI_OBJECT_TYPE Type2) { BOOLEAN Type1IsLocal = Type1 > ACPI_TYPE_EXTERNAL_MAX; BOOLEAN Type2IsLocal = Type2 > ACPI_TYPE_EXTERNAL_MAX; ACPI_OBJECT_TYPE ExternalType; ACPI_OBJECT_TYPE LocalType; /* * The inputs could represent types that are local to ACPICA or types that * are known externally. Some local types, such as the OperationRegion * field units, are defined with more granularity than ACPICA local types. * * Therefore, map the local types to the external types before matching. */ if (Type1IsLocal && !Type2IsLocal) { LocalType = Type1; ExternalType = Type2; } else if (!Type1IsLocal && Type2IsLocal) { LocalType = Type2; ExternalType = Type1; } else { return (Type1 == Type2); } switch (LocalType) { case ACPI_TYPE_LOCAL_REGION_FIELD: case ACPI_TYPE_LOCAL_BANK_FIELD: case ACPI_TYPE_LOCAL_INDEX_FIELD: LocalType = ACPI_TYPE_FIELD_UNIT; break; default: break; } return (LocalType == ExternalType); } /******************************************************************************* * * FUNCTION: LdAnalyzeExternals * * PARAMETERS: Node - Node that represents the named object * Op - Named object declaring this named object * ExternalOpType - Type of ExternalOp * WalkState - Current WalkState * * RETURN: Status * * DESCRIPTION: Node and Op represents an identically named object declaration * that is either declared by the ASL external keyword or declared * by operators that declare named objects (i.e. Name, Device, * OperationRegion, and etc.). This function ensures that the * declarations do not contradict each other. * ******************************************************************************/ static ACPI_STATUS LdAnalyzeExternals ( ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op, ACPI_OBJECT_TYPE ExternalOpType, ACPI_WALK_STATE *WalkState) { ACPI_STATUS Status = AE_OK; ACPI_OBJECT_TYPE ActualExternalOpType; ACPI_OBJECT_TYPE ActualOpType; ACPI_PARSE_OBJECT *ExternalOp; ACPI_PARSE_OBJECT *ActualOp; /* * The declaration represented by Node and Op must have the same type. * The type of the external Op is represented by ExternalOpType. However, * the type of the pre-existing declaration depends on whether if Op * is an external declaration or an actual declaration. */ if (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL) { ActualExternalOpType = ExternalOpType; ActualOpType = Node->Type; } else { ActualExternalOpType = Node->Type; ActualOpType = ExternalOpType; } if ((ActualOpType != ACPI_TYPE_ANY) && (ActualExternalOpType != ACPI_TYPE_ANY) && !LdMatchExternType (ActualExternalOpType, ActualOpType)) { if (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL && Node->Op->Asl.ParseOpcode == PARSEOP_EXTERNAL) { AslDualParseOpError (ASL_WARNING, ASL_MSG_DUPLICATE_EXTERN_MISMATCH, Op, NULL, ASL_MSG_DUPLICATE_EXTERN_FOUND_HERE, Node->Op, NULL); } else { if (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL && Node->Op->Asl.ParseOpcode != PARSEOP_EXTERNAL) { ExternalOp = Op; ActualOp = Node->Op; } else { ExternalOp = Node->Op; ActualOp = Op; } AslDualParseOpError (ASL_WARNING, ASL_MSG_DECLARATION_TYPE_MISMATCH, ExternalOp, NULL, ASL_MSG_TYPE_MISMATCH_FOUND_HERE, ActualOp, NULL); } } /* Set the object type of the external */ if ((Node->Flags & ANOBJ_IS_EXTERNAL) && (Op->Asl.ParseOpcode != PARSEOP_EXTERNAL)) { /* * Allow one create on an object or segment that was * previously declared External */ Node->Flags &= ~ANOBJ_IS_EXTERNAL; Node->Type = (UINT8) ActualOpType; /* Just retyped a node, probably will need to open a scope */ if (AcpiNsOpensScope (ActualOpType)) { Status = AcpiDsScopeStackPush (Node, ActualOpType, WalkState); if (ACPI_FAILURE (Status)) { return (Status); } } Status = AE_OK; } else if (!(Node->Flags & ANOBJ_IS_EXTERNAL) && (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL)) { /* * Allow externals in same scope as the definition of the * actual object. Similar to C. Allows multiple definition * blocks that refer to each other in the same file. */ Status = AE_OK; } else if ((Node->Flags & ANOBJ_IS_EXTERNAL) && (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL) && (ActualOpType == ACPI_TYPE_ANY)) { /* Allow update of externals of unknown type. */ Node->Type = (UINT8) ActualExternalOpType; Status = AE_OK; } return (Status); } /******************************************************************************* * * FUNCTION: LdCheckSpecialNames * * PARAMETERS: Node - Node that represents the named object * Op - Named object declaring this named object * * RETURN: None * * DESCRIPTION: Check if certain named objects are declared in the incorrect * scope. Special named objects are listed in * AslGbl_SpecialNamedObjects and can only be declared at the root * scope. _UID inside of a processor declaration must not be a * string. * ******************************************************************************/ static void LdCheckSpecialNames ( ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op) { UINT32 i; for (i = 0; i < MAX_SPECIAL_NAMES; i++) { if (ACPI_COMPARE_NAMESEG(Node->Name.Ascii, AslGbl_SpecialNamedObjects[i]) && Node->Parent != AcpiGbl_RootNode) { AslError (ASL_ERROR, ASL_MSG_INVALID_SPECIAL_NAME, Op, Op->Asl.ExternalName); return; } } if (ACPI_COMPARE_NAMESEG (Node->Name.Ascii, "_UID") && Node->Parent->Type == ACPI_TYPE_PROCESSOR && Node->Type == ACPI_TYPE_STRING) { AslError (ASL_ERROR, ASL_MSG_INVALID_PROCESSOR_UID , Op, "found a string"); } } /******************************************************************************* * * FUNCTION: LdNamespace2Begin * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Descending callback used during the pass 2 parse tree walk. * Second pass resolves some forward references. * * Notes: * Currently only needs to handle the Alias operator. * Could be used to allow forward references from the Scope() operator, but * the MS interpreter does not allow this, so this compiler does not either. * ******************************************************************************/ static ACPI_STATUS LdNamespace2Begin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState = (ACPI_WALK_STATE *) Context; ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; ACPI_OBJECT_TYPE ObjectType; BOOLEAN ForceNewScope = FALSE; ACPI_PARSE_OBJECT *Arg; char *Path; ACPI_NAMESPACE_NODE *TargetNode; ACPI_FUNCTION_NAME (LdNamespace2Begin); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op %p [%s]\n", Op, Op->Asl.ParseOpName)); /* Ignore Ops with no namespace node */ Node = Op->Asl.Node; if (!Node) { return (AE_OK); } /* Get the type to determine if we should push the scope */ if ((Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) && (Op->Asl.CompileFlags == OP_IS_RESOURCE_DESC)) { ObjectType = ACPI_TYPE_LOCAL_RESOURCE; } else { ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); } /* Push scope for Resource Templates */ if (Op->Asl.ParseOpcode == PARSEOP_NAME) { if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC) { ForceNewScope = TRUE; } } /* Push the scope stack */ if (ForceNewScope || AcpiNsOpensScope (ObjectType)) { Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } if (Op->Asl.ParseOpcode == PARSEOP_ALIAS) { /* * Complete the alias node by getting and saving the target node. * First child is the alias target */ Arg = Op->Asl.Child; /* Get the target pathname */ Path = Arg->Asl.Namepath; if (!Path) { Status = UtInternalizeName (Arg->Asl.ExternalName, &Path); if (ACPI_FAILURE (Status)) { return (Status); } } /* Get the NS node associated with the target. It must exist. */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, WalkState, &TargetNode); if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_FOUND) { /* Standalone NameSeg vs. NamePath */ if (strlen (Arg->Asl.ExternalName) == ACPI_NAMESEG_SIZE) { AslError (ASL_ERROR, ASL_MSG_NOT_FOUND, Op, Arg->Asl.ExternalName); } else { AslError (ASL_ERROR, ASL_MSG_NAMEPATH_NOT_EXIST, Op, Arg->Asl.ExternalName); } #if 0 /* * NOTE: Removed 10/2018 to enhance compiler error reporting. No * regressions seen. */ /* * The name was not found, go ahead and create it. * This prevents more errors later. */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_ANY, ACPI_IMODE_LOAD_PASS1, ACPI_NS_NO_UPSEARCH, WalkState, &Node); #endif return (Status); /* Removed: return (AE_OK)*/ } AslCoreSubsystemError (Op, Status, "Failure from namespace lookup", FALSE); return (AE_OK); } /* Save the target node within the alias node as well as type information */ Node->Object = ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, TargetNode); Node->Type = TargetNode->Type; if (Node->Type == ACPI_TYPE_METHOD) { /* Save the parameter count for methods */ Node->Value = TargetNode->Value; } } return (AE_OK); } /******************************************************************************* * * FUNCTION: LdCommonNamespaceEnd * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Ascending callback used during the loading of the namespace, * We only need to worry about managing the scope stack here. * ******************************************************************************/ static ACPI_STATUS LdCommonNamespaceEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState = (ACPI_WALK_STATE *) Context; ACPI_OBJECT_TYPE ObjectType; BOOLEAN ForceNewScope = FALSE; ACPI_FUNCTION_NAME (LdCommonNamespaceEnd); /* We are only interested in opcodes that have an associated name */ if (!Op->Asl.Namepath) { return (AE_OK); } /* Get the type to determine if we should pop the scope */ if ((Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) && (Op->Asl.CompileFlags == OP_IS_RESOURCE_DESC)) { /* TBD: Merge into AcpiDsMapNamedOpcodeToDataType */ ObjectType = ACPI_TYPE_LOCAL_RESOURCE; } else { ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); } /* Pop scope that was pushed for Resource Templates */ if (Op->Asl.ParseOpcode == PARSEOP_NAME) { if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC) { ForceNewScope = TRUE; } } /* Pop the scope stack */ if (ForceNewScope || AcpiNsOpensScope (ObjectType)) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "(%s): Popping scope for Op [%s] %p\n", AcpiUtGetTypeName (ObjectType), Op->Asl.ParseOpName, Op)); (void) AcpiDsScopeStackPop (WalkState); } return (AE_OK); } acpica-unix-20250404/source/compiler/aslrestype2w.c0000775000175000017500000007133414773714131021472 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslrestype2w - Large Word address resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslrestype2w") /* * This module contains the Word (16-bit) address space descriptors: * * WordIO * WordMemory * WordPcc * WordSpace */ /******************************************************************************* * * FUNCTION: RsDoWordIoDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "WordIO" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoWordIoDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS16) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address16.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS16; Descriptor->Address16.ResourceType = ACPI_ADDRESS_TYPE_IO_RANGE; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS16); Descriptor->Address16.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS16) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Usage */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 0, 1); break; case 1: /* MinType */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Flags), 2); break; case 2: /* MaxType */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Flags), 3); break; case 3: /* DecodeType */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Flags), 1); break; case 4: /* Range Type */ RsSetFlagBits (&Descriptor->Address16.SpecificFlags, InitializerOp, 0, 3); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_RANGETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.SpecificFlags), 0, 2); break; case 5: /* Address Granularity */ Descriptor->Address16.Granularity = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Granularity)); GranOp = InitializerOp; break; case 6: /* Address Min */ Descriptor->Address16.Minimum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Minimum)); MinOp = InitializerOp; break; case 7: /* Address Max */ Descriptor->Address16.Maximum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Maximum)); MaxOp = InitializerOp; break; case 8: /* Translation Offset */ Descriptor->Address16.TranslationOffset = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.TranslationOffset)); break; case 9: /* Address Length */ Descriptor->Address16.AddressLength = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.AddressLength)); LengthOp = InitializerOp; break; case 10: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address16.ResourceLength++; ResSourceIndex = TRUE; } break; case 11: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { Descriptor->Address16.ResourceLength = (UINT16) (Descriptor->Address16.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 12: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 13: /* Type */ RsSetFlagBits (&Descriptor->Address16.SpecificFlags, InitializerOp, 4, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.SpecificFlags), 4); break; case 14: /* Translation Type */ RsSetFlagBits (&Descriptor->Address16.SpecificFlags, InitializerOp, 5, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TRANSTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.SpecificFlags), 5); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( (UINT64) Descriptor->Address16.Minimum, (UINT64) Descriptor->Address16.Maximum, (UINT64) Descriptor->Address16.AddressLength, (UINT64) Descriptor->Address16.Granularity, Descriptor->Address16.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoWordBusNumberDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "WordBusNumber" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoWordBusNumberDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS16) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address16.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS16; Descriptor->Address16.ResourceType = ACPI_ADDRESS_TYPE_BUS_NUMBER_RANGE; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS16); Descriptor->Address16.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS16) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Usage */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 0, 1); break; case 1: /* MinType */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Flags), 2); break; case 2: /* MaxType */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Flags), 3); break; case 3: /* DecodeType */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Flags), 1); break; case 4: /* Address Granularity */ Descriptor->Address16.Granularity = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Granularity)); GranOp = InitializerOp; break; case 5: /* Min Address */ Descriptor->Address16.Minimum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Minimum)); MinOp = InitializerOp; break; case 6: /* Max Address */ Descriptor->Address16.Maximum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Maximum)); MaxOp = InitializerOp; break; case 7: /* Translation Offset */ Descriptor->Address16.TranslationOffset = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.TranslationOffset)); break; case 8: /* Address Length */ Descriptor->Address16.AddressLength = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.AddressLength)); LengthOp = InitializerOp; break; case 9: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address16.ResourceLength++; ResSourceIndex = TRUE; } break; case 10: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { Descriptor->Address16.ResourceLength = (UINT16) (Descriptor->Address16.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 11: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( (UINT64) Descriptor->Address16.Minimum, (UINT64) Descriptor->Address16.Maximum, (UINT64) Descriptor->Address16.AddressLength, (UINT64) Descriptor->Address16.Granularity, Descriptor->Address16.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoWordPccDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "WordPcc" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoWordPccDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT8 *OptionalFields; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS32) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address32.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS32; Descriptor->Address32.ResourceType = ACPI_ADDRESS_TYPE_PCC_NUMBER; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS32); Descriptor->Address32.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS32) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* * Bit [3] Max Address Fixed, _MAF: 1 (max address is fixed) * Bit [2] Min Address Fixed,_MIF: 1 (min address is fixed) * Bit [1] Decode Type, _DEC: 0 (do not care) * BIT [0] Ignored (must be zero) */ Descriptor->Address32.Flags = 0b1100; // No type specific flags. Set to 0. Descriptor->Address32.SpecificFlags = 0; // must be set to zero if _MAX == _MIN. Descriptor->Address32.Granularity = 0x0; /* Process all child initialization nodes */ // No translation offset. Descriptor->Address32.TranslationOffset = 0; // Pcc is unique address. Descriptor->Address32.AddressLength = 1; for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Address Min = Max */ Descriptor->Address32.Minimum = (UINT32) InitializerOp->Asl.Value.Integer; Descriptor->Address32.Maximum = (UINT32) InitializerOp->Asl.Value.Integer; break; case 1: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* Found a valid ResourceSourceIndex */ OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address32.ResourceLength++; ResSourceIndex = TRUE; } break; case 2: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { /* Found a valid ResourceSource */ Descriptor->Address32.ResourceLength = (UINT16) (Descriptor->Address32.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } break; case 3: // DescriptorName UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( (UINT64) Descriptor->Address32.Minimum, (UINT64) Descriptor->Address32.Maximum, (UINT64) Descriptor->Address32.AddressLength, (UINT64) Descriptor->Address32.Granularity, Descriptor->Address32.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoWordSpaceDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "WordSpace" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoWordSpaceDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS16) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address16.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS16; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS16); Descriptor->Address16.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS16) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Type */ Descriptor->Address16.ResourceType = (UINT8) InitializerOp->Asl.Value.Integer; break; case 1: /* Resource Usage */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 0, 1); break; case 2: /* DecodeType */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Flags), 1); break; case 3: /* MinType */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Flags), 2); break; case 4: /* MaxType */ RsSetFlagBits (&Descriptor->Address16.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Flags), 3); break; case 5: /* Type-Specific flags */ Descriptor->Address16.SpecificFlags = (UINT8) InitializerOp->Asl.Value.Integer; break; case 6: /* Address Granularity */ Descriptor->Address16.Granularity = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Granularity)); GranOp = InitializerOp; break; case 7: /* Min Address */ Descriptor->Address16.Minimum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Minimum)); MinOp = InitializerOp; break; case 8: /* Max Address */ Descriptor->Address16.Maximum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.Maximum)); MaxOp = InitializerOp; break; case 9: /* Translation Offset */ Descriptor->Address16.TranslationOffset = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.TranslationOffset)); break; case 10: /* Address Length */ Descriptor->Address16.AddressLength = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address16.AddressLength)); LengthOp = InitializerOp; break; case 11: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address16.ResourceLength++; ResSourceIndex = TRUE; } break; case 12: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { Descriptor->Address16.ResourceLength = (UINT16) (Descriptor->Address16.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 13: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( (UINT64) Descriptor->Address16.Minimum, (UINT64) Descriptor->Address16.Maximum, (UINT64) Descriptor->Address16.AddressLength, (UINT64) Descriptor->Address16.Granularity, Descriptor->Address16.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS16) + OptionIndex + StringLength; return (Rnode); } acpica-unix-20250404/source/compiler/prexpress.c0000775000175000017500000002217214773714132021056 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: prexpress - Preprocessor #if expression support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT ASL_PREPROCESSOR ACPI_MODULE_NAME ("prexpress") /* Local prototypes */ static char * PrExpandMacros ( char *Line); #ifdef _UNDER_DEVELOPMENT /****************************************************************************** * * FUNCTION: PrUnTokenize * * PARAMETERS: Buffer - Token Buffer * Next - "Next" buffer from GetNextToken * * RETURN: None * * DESCRIPTION: Un-tokenized the current token buffer. The implementation is * to simply set the null inserted by GetNextToken to a blank. * If Next is NULL, there were no tokens found in the Buffer, * so there is nothing to do. * *****************************************************************************/ static void PrUnTokenize ( char *Buffer, char *Next) { UINT32 Length = strlen (Buffer); if (!Next) { return; } if (Buffer[Length] != '\n') { Buffer[strlen(Buffer)] = ' '; } } #endif /****************************************************************************** * * FUNCTION: PrExpandMacros * * PARAMETERS: Line - Pointer into the current line * * RETURN: Updated pointer into the current line * * DESCRIPTION: Expand any macros found in the current line buffer. * *****************************************************************************/ static char * PrExpandMacros ( char *Line) { char *Token; char *ReplaceString; PR_DEFINE_INFO *DefineInfo; ACPI_SIZE TokenOffset; char *Next; int OffsetAdjust; strcpy (AslGbl_ExpressionTokenBuffer, AslGbl_CurrentLineBuffer); Token = PrGetNextToken (AslGbl_ExpressionTokenBuffer, PR_EXPR_SEPARATORS, &Next); OffsetAdjust = 0; while (Token) { DefineInfo = PrMatchDefine (Token); if (DefineInfo) { if (DefineInfo->Body) { /* This is a macro. TBD: Is this allowed? */ DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "Matched Macro: %s->%s\n", AslGbl_CurrentLineNumber, DefineInfo->Identifier, DefineInfo->Replacement); PrDoMacroInvocation (AslGbl_ExpressionTokenBuffer, Token, DefineInfo, &Next); } else { ReplaceString = DefineInfo->Replacement; /* Replace the name in the original line buffer */ TokenOffset = Token - AslGbl_ExpressionTokenBuffer + OffsetAdjust; PrReplaceData ( &AslGbl_CurrentLineBuffer[TokenOffset], strlen (Token), ReplaceString, strlen (ReplaceString)); /* Adjust for length difference between old and new name length */ OffsetAdjust += strlen (ReplaceString) - strlen (Token); DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "Matched #define within expression: %s->%s\n", AslGbl_CurrentLineNumber, Token, *ReplaceString ? ReplaceString : "(NULL STRING)"); } } Token = PrGetNextToken (NULL, PR_EXPR_SEPARATORS, &Next); } return (Line); } /****************************************************************************** * * FUNCTION: PrIsDefined * * PARAMETERS: Identifier - Name to be resolved * * RETURN: 64-bit boolean integer value * * DESCRIPTION: Returns TRUE if the name is defined, FALSE otherwise (0). * *****************************************************************************/ UINT64 PrIsDefined ( char *Identifier) { UINT64 Value; PR_DEFINE_INFO *DefineInfo; DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "**** Is defined?: %s\n", AslGbl_CurrentLineNumber, Identifier); Value = 0; /* Default is "Not defined" -- FALSE */ DefineInfo = PrMatchDefine (Identifier); if (DefineInfo) { Value = ACPI_UINT64_MAX; /* TRUE */ } DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "[#if defined %s] resolved to: %8.8X%8.8X\n", AslGbl_CurrentLineNumber, Identifier, ACPI_FORMAT_UINT64 (Value)); return (Value); } /****************************************************************************** * * FUNCTION: PrResolveDefine * * PARAMETERS: Identifier - Name to be resolved * * RETURN: A 64-bit boolean integer value * * DESCRIPTION: Returns TRUE if the name is defined, FALSE otherwise (0). * *****************************************************************************/ UINT64 PrResolveDefine ( char *Identifier) { UINT64 Value; PR_DEFINE_INFO *DefineInfo; DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "**** Resolve #define: %s\n", AslGbl_CurrentLineNumber, Identifier); Value = 0; /* Default is "Not defined" -- FALSE */ DefineInfo = PrMatchDefine (Identifier); if (DefineInfo) { Value = ACPI_UINT64_MAX; /* TRUE */ } DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "[#if defined %s] resolved to: %8.8X%8.8X\n", AslGbl_CurrentLineNumber, Identifier, ACPI_FORMAT_UINT64 (Value)); return (Value); } /****************************************************************************** * * FUNCTION: PrResolveIntegerExpression * * PARAMETERS: Line - Pointer to integer expression * ReturnValue - Where the resolved 64-bit integer is * returned. * * RETURN: Status * * DESCRIPTION: Resolve an integer expression to a single value. Supports * both integer constants and labels. * *****************************************************************************/ ACPI_STATUS PrResolveIntegerExpression ( char *Line, UINT64 *ReturnValue) { UINT64 Result; char *ExpandedLine; DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "**** Resolve #if: %s\n", AslGbl_CurrentLineNumber, Line); /* Expand all macros within the expression first */ ExpandedLine = PrExpandMacros (Line); /* Now we can evaluate the expression */ Result = PrEvaluateExpression (ExpandedLine); DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "**** Expression Resolved to: %8.8X%8.8X\n", AslGbl_CurrentLineNumber, ACPI_FORMAT_UINT64 (Result)); *ReturnValue = Result; return (AE_OK); #if 0 InvalidExpression: ACPI_FREE (EvalBuffer); PrError (ASL_ERROR, ASL_MSG_INVALID_EXPRESSION, 0); return (AE_ERROR); NormalExit: DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "**** Expression Resolved to: %8.8X%8.8X\n", AslGbl_CurrentLineNumber, ACPI_FORMAT_UINT64 (Value1)); *ReturnValue = Value1; return (AE_OK); #endif } acpica-unix-20250404/source/compiler/cvparser.c0000775000175000017500000006737714773714131020667 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: cvparser - Converter functions that are called from the AML * parser. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acparser.h" #include "acdispat.h" #include "amlcode.h" #include "acinterp.h" #include "acdisasm.h" #include "acconvert.h" /* local prototypes */ static BOOLEAN CvCommentExists ( UINT8 *Address); static BOOLEAN CvIsFilename ( char *Filename); static ACPI_FILE_NODE* CvFileAddressLookup( char *Address, ACPI_FILE_NODE *Head); static void CvAddToFileTree ( char *Filename, char *PreviousFilename); static void CvSetFileParent ( char *ChildFile, char *ParentFile); /******************************************************************************* * * FUNCTION: CvIsFilename * * PARAMETERS: filename - input filename * * RETURN: BOOLEAN - TRUE if all characters are between 0x20 and 0x7f * * DESCRIPTION: Take a given char * and see if it contains all printable * characters. If all characters have hexvalues 20-7f and ends with * .dsl, we will assume that it is a proper filename. * ******************************************************************************/ static BOOLEAN CvIsFilename ( char *Filename) { UINT64 Length = strlen(Filename); char *FileExt = Filename + Length - 4; UINT64 i; if ((Length > 4) && AcpiUtStricmp (FileExt, ".dsl")) { return (FALSE); } for(i = 0; iLength - sizeof (ACPI_TABLE_HEADER); AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)); CvDbgPrint ("AmlLength: %x\n", AmlLength); CvDbgPrint ("AmlStart: %p\n", AmlStart); CvDbgPrint ("AmlEnd: %p\n", AmlStart+AmlLength); AcpiGbl_FileTreeRoot = AcpiOsAcquireObject (AcpiGbl_FileCache); AcpiGbl_FileTreeRoot->FileStart = (char *)(AmlStart); AcpiGbl_FileTreeRoot->FileEnd = (char *)(AmlStart + Table->Length); AcpiGbl_FileTreeRoot->Next = NULL; AcpiGbl_FileTreeRoot->Parent = NULL; AcpiGbl_FileTreeRoot->Filename = (char *)(AmlStart+2); /* Set the root file to the current open file */ AcpiGbl_FileTreeRoot->File = RootFile; /* * Set this to true because we don't need to output * an include statement for the topmost file */ AcpiGbl_FileTreeRoot->IncludeWritten = TRUE; Filename = NULL; AcpiGbl_CurrentFilename = (char *)(AmlStart+2); AcpiGbl_RootFilename = (char *)(AmlStart+2); TreeAml = AmlStart; FileEnd = AmlStart + AmlLength; while (TreeAml <= FileEnd) { /* * Make sure that this filename contains all printable characters * and a .dsl extension at the end. If not, then it must be some * raw data that doesn't outline a filename. */ if ((*TreeAml == AML_COMMENT_OP) && (*(TreeAml +1) == FILENAME_COMMENT) && (CvIsFilename ((char *)(TreeAml +2)))) { CvDbgPrint ("A9 and a 08 file\n"); PreviousFilename = Filename; Filename = (char *) (TreeAml +2); CvAddToFileTree (Filename, PreviousFilename); ChildFilename = Filename; CvDbgPrint ("%s\n", Filename); } else if ((*TreeAml == AML_COMMENT_OP) && (*(TreeAml +1) == PARENTFILENAME_COMMENT) && (CvIsFilename ((char *)(TreeAml +2)))) { CvDbgPrint ("A9 and a 09 file\n"); ParentFilename = (char *)(TreeAml +2); CvSetFileParent (ChildFilename, ParentFilename); CvDbgPrint ("%s\n", ParentFilename); } ++TreeAml; } } /******************************************************************************* * * FUNCTION: CvClearOpComments * * PARAMETERS: Op -- clear all comments within this Op * * RETURN: None * * DESCRIPTION: Clear all converter-related fields of the given Op. * This is referred as ASL_CV_CLEAR_OP_COMMENTS. * ******************************************************************************/ void CvClearOpComments ( ACPI_PARSE_OBJECT *Op) { Op->Common.InlineComment = NULL; Op->Common.EndNodeComment = NULL; Op->Common.NameComment = NULL; Op->Common.CommentList = NULL; Op->Common.EndBlkComment = NULL; Op->Common.CloseBraceComment = NULL; Op->Common.CvFilename = NULL; Op->Common.CvParentFilename = NULL; } /******************************************************************************* * * FUNCTION: CvCommentExists * * PARAMETERS: Address - check if this address appears in the list * * RETURN: BOOLEAN - TRUE if the address exists. * * DESCRIPTION: Look at the pointer address and check if this appears in the * list of all addresses. If it exists in the list, return TRUE * if it exists. Otherwise add to the list and return FALSE. * ******************************************************************************/ static BOOLEAN CvCommentExists ( UINT8 *Address) { ACPI_COMMENT_ADDR_NODE *Current = AcpiGbl_CommentAddrListHead; UINT8 Option; if (!Address) { return (FALSE); } Option = *(Address + 1); /* * FILENAME_COMMENT and PARENTFILENAME_COMMENT are not treated as * comments. They serve as markers for where the file starts and ends. */ if ((Option == FILENAME_COMMENT) || (Option == PARENTFILENAME_COMMENT)) { return (FALSE); } if (!Current) { AcpiGbl_CommentAddrListHead = AcpiOsAcquireObject (AcpiGbl_RegCommentCache); AcpiGbl_CommentAddrListHead->Addr = Address; AcpiGbl_CommentAddrListHead->Next = NULL; return (FALSE); } else { while (Current) { if (Current->Addr != Address) { Current = Current->Next; } else { return (TRUE); } } /* * If the execution gets to this point, it means that this * address does not exists in the list. Add this address to the * beginning of the list. */ Current = AcpiGbl_CommentAddrListHead; AcpiGbl_CommentAddrListHead = AcpiOsAcquireObject (AcpiGbl_RegCommentCache); AcpiGbl_CommentAddrListHead->Addr = Address; AcpiGbl_CommentAddrListHead->Next = Current; return (FALSE); } } /******************************************************************************* * * FUNCTION: CvFilenameExists * * PARAMETERS: Filename - filename to search * * RETURN: ACPI_FILE_NODE - a pointer to a file node * * DESCRIPTION: Look for the given filename in the file dependency tree. * Returns the file node if it exists, returns NULL if it does not. * ******************************************************************************/ ACPI_FILE_NODE* CvFilenameExists( char *Filename, ACPI_FILE_NODE *Head) { ACPI_FILE_NODE *Current = Head; if (!Filename) { return (NULL); } while (Current) { if (!AcpiUtStricmp (Current->Filename, Filename)) { return (Current); } Current = Current->Next; } return (NULL); } /******************************************************************************* * * FUNCTION: CvFileAddressLookup * * PARAMETERS: Address - address to look up * Head - file dependency tree * * RETURN: ACPI_FILE_NODE - pointer to a file node containing the address * * DESCRIPTION: Look for the given address in the file dependency tree. * Returns the first file node where the given address is within * the file node's starting and ending address. * ******************************************************************************/ static ACPI_FILE_NODE * CvFileAddressLookup( char *Address, ACPI_FILE_NODE *Head) { ACPI_FILE_NODE *Current = Head; while (Current) { if ((Address >= Current->FileStart) && (Address < Current->FileEnd || !Current->FileEnd)) { return (Current); } Current = Current->Next; } return (NULL); } /******************************************************************************* * * FUNCTION: CvLabelFileNode * * PARAMETERS: Op * * RETURN: None * * DESCRIPTION: Takes a given parse op, looks up its Op->Common.Aml field * within the file tree and fills in appropriate file information * from a matching node within the tree. * This is referred as ASL_CV_LABEL_FILENODE. * ******************************************************************************/ void CvLabelFileNode( ACPI_PARSE_OBJECT *Op) { ACPI_FILE_NODE *Node; if (!Op) { return; } Node = CvFileAddressLookup ((char *) Op->Common.Aml, AcpiGbl_FileTreeRoot); if (!Node) { return; } Op->Common.CvFilename = Node->Filename; if (Node->Parent) { Op->Common.CvParentFilename = Node->Parent->Filename; } else { Op->Common.CvParentFilename = Node->Filename; } } /******************************************************************************* * * FUNCTION: CvAddToFileTree * * PARAMETERS: Filename - Address containing the name of the current * filename * PreviousFilename - Address containing the name of the previous * filename * * RETURN: None * * DESCRIPTION: Add this filename to the AcpiGbl_FileTree if it does not exist. * ******************************************************************************/ static void CvAddToFileTree ( char *Filename, char *PreviousFilename) { ACPI_FILE_NODE *Node; if (!AcpiUtStricmp(Filename, AcpiGbl_RootFilename) && PreviousFilename) { Node = CvFilenameExists (PreviousFilename, AcpiGbl_FileTreeRoot); if (Node) { /* * Set the end point of the PreviousFilename to the address * of Filename. */ Node->FileEnd = Filename; } } else if (!AcpiUtStricmp(Filename, AcpiGbl_RootFilename) && !PreviousFilename) { return; } Node = CvFilenameExists (Filename, AcpiGbl_FileTreeRoot); if (Node && PreviousFilename) { /* * Update the end of the previous file and all of their parents' * ending addresses. This is done to ensure that parent file * ranges extend to the end of their childrens' files. */ Node = CvFilenameExists (PreviousFilename, AcpiGbl_FileTreeRoot); if (Node && (Node->FileEnd < Filename)) { Node->FileEnd = Filename; Node = Node->Parent; while (Node) { if (Node->FileEnd < Filename) { Node->FileEnd = Filename; } Node = Node->Parent; } } } else { Node = AcpiGbl_FileTreeRoot; AcpiGbl_FileTreeRoot = AcpiOsAcquireObject (AcpiGbl_FileCache); AcpiGbl_FileTreeRoot->Next = Node; AcpiGbl_FileTreeRoot->Parent = NULL; AcpiGbl_FileTreeRoot->Filename = Filename; AcpiGbl_FileTreeRoot->FileStart = Filename; AcpiGbl_FileTreeRoot->IncludeWritten = FALSE; AcpiGbl_FileTreeRoot->File = fopen(Filename, "w+"); /* * If we can't open the file, we need to abort here before we * accidentally write to a NULL file. */ if (!AcpiGbl_FileTreeRoot->File) { /* delete the .xxx file */ FlDeleteFile (ASL_FILE_AML_OUTPUT); sprintf (AslGbl_MsgBuffer, "\"%s\" - %s", Filename, strerror (errno)); AslCommonError (ASL_ERROR, ASL_MSG_OPEN, 0, 0, 0, 0, NULL, AslGbl_MsgBuffer); AslAbort (); } } } /******************************************************************************* * * FUNCTION: CvSetFileParent * * PARAMETERS: ChildFile - contains the filename of the child file * ParentFile - contains the filename of the parent file. * * RETURN: None * * DESCRIPTION: Point the parent pointer of the Child to the node that * corresponds with the parent file node. * ******************************************************************************/ static void CvSetFileParent ( char *ChildFile, char *ParentFile) { ACPI_FILE_NODE *Child; ACPI_FILE_NODE *Parent; Child = CvFilenameExists (ChildFile, AcpiGbl_FileTreeRoot); Parent = CvFilenameExists (ParentFile, AcpiGbl_FileTreeRoot); if (Child && Parent) { Child->Parent = Parent; while (Child->Parent) { if (Child->Parent->FileEnd < Child->FileStart) { Child->Parent->FileEnd = Child->FileStart; } Child = Child->Parent; } } } /******************************************************************************* * * FUNCTION: CvCaptureCommentsOnly * * PARAMETERS: ParserState - A parser state object * * RETURN: None * * DESCRIPTION: Look at the aml that the parser state is pointing to, * capture any AML_COMMENT_OP and it's arguments and increment the * aml pointer past the comment. Comments are transferred to parse * nodes through CvTransferComments() as well as * AcpiPsBuildNamedOp(). * This is referred as ASL_CV_CAPTURE_COMMENTS_ONLY. * ******************************************************************************/ void CvCaptureCommentsOnly ( ACPI_PARSE_STATE *ParserState) { UINT8 *Aml = ParserState->Aml; UINT16 Opcode = (UINT16) ACPI_GET8 (Aml); UINT32 Length = 0; UINT8 CommentOption; BOOLEAN StdDefBlockFlag = FALSE; ACPI_COMMENT_NODE *CommentNode; ACPI_FILE_NODE *FileNode; if (!AcpiGbl_CaptureComments || Opcode != AML_COMMENT_OP) { return; } while (Opcode == AML_COMMENT_OP) { CvDbgPrint ("comment aml address: %p\n", Aml); if (CvCommentExists(ParserState->Aml)) { CvDbgPrint ("Avoiding capturing an existing comment.\n"); } else { CommentOption = *(Aml +1); /* * Increment past the comment option and point the * appropriate char pointers */ Aml += 2; /* Found a comment. Now, set pointers to these comments. */ switch (CommentOption) { case STD_DEFBLK_COMMENT: StdDefBlockFlag = TRUE; /* * Add to a linked list of nodes. This list will be * taken by the parse node created next. */ CommentNode = AcpiOsAcquireObject ( AcpiGbl_RegCommentCache); CommentNode->Comment = ACPI_CAST_PTR (char, Aml); CommentNode->Next = NULL; if (!AcpiGbl_DefBlkCommentListHead) { AcpiGbl_DefBlkCommentListHead = CommentNode; AcpiGbl_DefBlkCommentListTail = CommentNode; } else { AcpiGbl_DefBlkCommentListTail->Next = CommentNode; AcpiGbl_DefBlkCommentListTail = AcpiGbl_DefBlkCommentListTail->Next; } break; case STANDARD_COMMENT: CvDbgPrint ("found regular comment.\n"); /* * Add to a linked list of nodes. This list will be * taken by the parse node created next. */ CommentNode = AcpiOsAcquireObject ( AcpiGbl_RegCommentCache); CommentNode->Comment = ACPI_CAST_PTR (char, Aml); CommentNode->Next = NULL; if (!AcpiGbl_RegCommentListHead) { AcpiGbl_RegCommentListHead = CommentNode; AcpiGbl_RegCommentListTail = CommentNode; } else { AcpiGbl_RegCommentListTail->Next = CommentNode; AcpiGbl_RegCommentListTail = AcpiGbl_RegCommentListTail->Next; } break; case ENDBLK_COMMENT: CvDbgPrint ("found endblk comment.\n"); /* Add to a linked list of nodes. This will be * taken by the next created parse node. */ CommentNode = AcpiOsAcquireObject ( AcpiGbl_RegCommentCache); CommentNode->Comment = ACPI_CAST_PTR (char, Aml); CommentNode->Next = NULL; if (!AcpiGbl_EndBlkCommentListHead) { AcpiGbl_EndBlkCommentListHead = CommentNode; AcpiGbl_EndBlkCommentListTail = CommentNode; } else { AcpiGbl_EndBlkCommentListTail->Next = CommentNode; AcpiGbl_EndBlkCommentListTail = AcpiGbl_EndBlkCommentListTail->Next; } break; case INLINE_COMMENT: CvDbgPrint ("found inline comment.\n"); AcpiGbl_CurrentInlineComment = ACPI_CAST_PTR (char, Aml); break; case ENDNODE_COMMENT: CvDbgPrint ("found EndNode comment.\n"); AcpiGbl_CurrentEndNodeComment = ACPI_CAST_PTR (char, Aml); break; case CLOSE_BRACE_COMMENT: CvDbgPrint ("found close brace comment.\n"); AcpiGbl_CurrentCloseBraceComment = ACPI_CAST_PTR (char, Aml); break; case END_DEFBLK_COMMENT: CvDbgPrint ("Found comment that belongs after" " the } for a definition block.\n"); AcpiGbl_CurrentScope->Common.CloseBraceComment = ACPI_CAST_PTR (char, Aml); break; case FILENAME_COMMENT: CvDbgPrint ("Found a filename: %s\n", ACPI_CAST_PTR (char, Aml)); FileNode = CvFilenameExists ( ACPI_CAST_PTR (char, Aml), AcpiGbl_FileTreeRoot); /* * If there is an INCLUDE_COMMENT followed by a * FILENAME_COMMENT, then the INCLUDE_COMMENT is a comment * that is emitted before the #include for the file. * We will save the IncludeComment within the FileNode * associated with this FILENAME_COMMENT. */ if (FileNode && AcpiGbl_IncCommentListHead) { FileNode->IncludeComment = AcpiGbl_IncCommentListHead; AcpiGbl_IncCommentListHead = NULL; AcpiGbl_IncCommentListTail = NULL; } break; case PARENTFILENAME_COMMENT: CvDbgPrint (" Found a parent filename.\n"); break; case INCLUDE_COMMENT: /* * Add to a linked list. This list will be taken by the * parse node created next. See the FILENAME_COMMENT case * for more details */ CommentNode = AcpiOsAcquireObject ( AcpiGbl_RegCommentCache); CommentNode->Comment = ACPI_CAST_PTR (char, Aml); CommentNode->Next = NULL; if (!AcpiGbl_IncCommentListHead) { AcpiGbl_IncCommentListHead = CommentNode; AcpiGbl_IncCommentListTail = CommentNode; } else { AcpiGbl_IncCommentListTail->Next = CommentNode; AcpiGbl_IncCommentListTail = AcpiGbl_IncCommentListTail->Next; } CvDbgPrint ("Found a include comment: %s\n", CommentNode->Comment); break; default: /* Not a valid comment option. Revert the AML */ goto DefBlock; } /* End switch statement */ } /* End else */ /* Determine the length and move forward that amount */ Length = 0; while (ParserState->Aml[Length]) { Length++; } ParserState->Aml += Length + 1; /* Peek at the next Opcode. */ Aml = ParserState->Aml; Opcode = (UINT16) ACPI_GET8 (Aml); } DefBlock: if (StdDefBlockFlag) { /* * Give all of its comments to the current scope, which is known as * the definition block, since STD_DEFBLK_COMMENT only appears after * definition block headers. */ AcpiGbl_CurrentScope->Common.CommentList = AcpiGbl_DefBlkCommentListHead; AcpiGbl_DefBlkCommentListHead = NULL; AcpiGbl_DefBlkCommentListTail = NULL; } } /******************************************************************************* * * FUNCTION: CvCaptureComments * * PARAMETERS: ParserState - A parser state object * * RETURN: None * * DESCRIPTION: Wrapper function for CvCaptureCommentsOnly * This is referred as ASL_CV_CAPTURE_COMMENTS. * ******************************************************************************/ void CvCaptureComments ( ACPI_WALK_STATE *WalkState) { UINT8 *Aml; UINT16 Opcode; const ACPI_OPCODE_INFO *OpInfo; if (!AcpiGbl_CaptureComments) { return; } /* * Before parsing, check to see that comments that come directly * after deferred opcodes aren't being processed. */ Aml = WalkState->ParserState.Aml; Opcode = (UINT16) ACPI_GET8 (Aml); OpInfo = AcpiPsGetOpcodeInfo (Opcode); if (!(OpInfo->Flags & AML_DEFER) || ((OpInfo->Flags & AML_DEFER) && (WalkState->PassNumber != ACPI_IMODE_LOAD_PASS1))) { CvCaptureCommentsOnly (&WalkState->ParserState); WalkState->Aml = WalkState->ParserState.Aml; } } /******************************************************************************* * * FUNCTION: CvTransferComments * * PARAMETERS: Op - Transfer comments to this Op * * RETURN: None * * DESCRIPTION: Transfer all of the comments stored in global containers to the * given Op. This will be invoked shortly after the parser creates * a ParseOp. * This is referred as ASL_CV_TRANSFER_COMMENTS. * ******************************************************************************/ void CvTransferComments ( ACPI_PARSE_OBJECT *Op) { Op->Common.InlineComment = AcpiGbl_CurrentInlineComment; AcpiGbl_CurrentInlineComment = NULL; Op->Common.EndNodeComment = AcpiGbl_CurrentEndNodeComment; AcpiGbl_CurrentEndNodeComment = NULL; Op->Common.CloseBraceComment = AcpiGbl_CurrentCloseBraceComment; AcpiGbl_CurrentCloseBraceComment = NULL; Op->Common.CommentList = AcpiGbl_RegCommentListHead; AcpiGbl_RegCommentListHead = NULL; AcpiGbl_RegCommentListTail = NULL; Op->Common.EndBlkComment = AcpiGbl_EndBlkCommentListHead; AcpiGbl_EndBlkCommentListHead = NULL; AcpiGbl_EndBlkCommentListTail = NULL; } acpica-unix-20250404/source/compiler/new_table.txt0000775000175000017500000000677514773714132021373 0ustar ivanhuivanhuHow to add a new ACPI table to ACPICA and the iASL compiler. ------------------------------------------------------------ There are four main tasks that are needed to provide support for a new ACPI table: 1) Create a full definition of the table and any subtables in the ACPICA headers. 2) Add disassembler support for the new table 3) Add iASL table compiler support for the new table 4) Create a default template for the new table for iASL -T option. Notes for each of these tasks provided below. 1) Header Support ----------------- New tables should be added to the appropriate header: actbl2.h: Used for new tables that are not defined in the ACPI spec. actbl3.h: Used for new tables that are defined in the ACPI spec. Use ACPI_TABLE_HEADER for the common ACPI table header. Subtables should be defined separately from the main table. Don't add placeholder fields for subtables and other multiple data items. (Don't use xxxxx[1] for a field that can have multiple items.) The disassembler and data table compiler depends on this. For tables not defined in the ACPI spec, add a comment to indicate where the table came from. Use other table definitions for additional guidance. 2) iASL Disassembler Support ---------------------------- Add definition of the table (and subtables) in common/dmtbinfo.c Add table access macro(s) of the form ACPI_xxxx_OFFSET Add ACPI_DMT_TERMINATOR at the end of every table/subtable definition Add externals for the table/subtable definitions in acdisasm.h Add an entry for the new table in the AcpiDmTableData in common/dmtable.c If there are no subtables, add the AcpiDmTableInfoXXXX name to the AcpiDmTableData and it will automatically be disassembled. If there are subtables, a dump routine must be written: Add an AcpiDmDumpXXXX function to dmtbdump.c -- note, code for another similar table can often be ported for the new table. Add an external for this function to acdisasm.h Add this function to the AcpiDmTableData entry for the new ACPI table Debug/Test: Either find an existing example of the new ACPI table, or create one using the "generic ACPI table support" included in the iASL data table compiler. Use the -G option to force a generic compile. It is often best to create the table from scratch, since this clearly exposes the dependencies (lengths, offsets, etc.) that the Table Compiler support will need to generate. 3) iASL Table Compiler Support ------------------------------ Simple tables do not require a compile routine. The definition of the table in common/dmtbinfo.c (created in step 2 above) will suffice. Complex tables with subtables will require a compile routine with a name of the form DtCompileXXXX. Add a DtCompileXXXX function to the dttable.c module. Add an external for this function in dtcompiler.h Add this function to the AcpiDmTableData entry for the new ACPI table in common/dmtable.c 4) Template Support (-T iASL option) ------------------------------------ Create an example of the new ACPI table. This example should create multiple subtables (if supported), and multiple instances of any variable length data. Compile the example file with the -sc option. This will create a C array that contains the table contents. Add this array to the dttemplate.h file. Name the array TemplateXXXX. Add this array name to the AcpiDmTableData entry for the new ACPI table Debug/Test: Create the template file. Compile the file. Disassemble the file. Compile the disassembly file. acpica-unix-20250404/source/compiler/asllength.c0000775000175000017500000002756314773714131021014 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asllength - Tree walk to determine package and opcode lengths * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #include "acconvert.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asllength") /* Local prototypes */ static UINT8 CgGetPackageLenByteCount ( ACPI_PARSE_OBJECT *Op, UINT32 PackageLength); static void CgGenerateAmlOpcodeLength ( ACPI_PARSE_OBJECT *Op); #ifdef ACPI_OBSOLETE_FUNCTIONS void LnAdjustLengthToRoot ( ACPI_PARSE_OBJECT *Op, UINT32 LengthDelta); #endif /******************************************************************************* * * FUNCTION: LnInitLengthsWalk * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Walk callback to initialize (and re-initialize) the node * subtree length(s) to zero. The Subtree lengths are bubbled * up to the root node in order to get a total AML length. * ******************************************************************************/ ACPI_STATUS LnInitLengthsWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { Op->Asl.AmlSubtreeLength = 0; return (AE_OK); } /******************************************************************************* * * FUNCTION: LnPackageLengthWalk * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Walk callback to calculate the total AML length. * 1) Calculate the AML lengths (opcode, package length, etc.) for * THIS node. * 2) Bubbble up all of these lengths to the parent node by summing * them all into the parent subtree length. * * Note: The SubtreeLength represents the total AML length of all child nodes * in all subtrees under a given node. Therefore, once this walk is * complete, the Root Node subtree length is the AML length of the entire * tree (and thus, the entire ACPI table) * ******************************************************************************/ ACPI_STATUS LnPackageLengthWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { /* Generate the AML lengths for this node */ CgGenerateAmlLengths (Op); /* Bubble up all lengths (this node and all below it) to the parent */ if ((Op->Asl.Parent) && (Op->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG)) { Op->Asl.Parent->Asl.AmlSubtreeLength += ( Op->Asl.AmlLength + Op->Asl.AmlOpcodeLength + Op->Asl.AmlPkgLenBytes + Op->Asl.AmlSubtreeLength + CvCalculateCommentLengths (Op) ); } return (AE_OK); } /******************************************************************************* * * FUNCTION: CgGetPackageLenByteCount * * PARAMETERS: Op - Parse node * PackageLength - Length to be encoded * * RETURN: Required length of the package length encoding * * DESCRIPTION: Calculate the number of bytes required to encode the given * package length. * ******************************************************************************/ static UINT8 CgGetPackageLenByteCount ( ACPI_PARSE_OBJECT *Op, UINT32 PackageLength) { /* * Determine the number of bytes required to encode the package length * Note: the package length includes the number of bytes used to encode * the package length, so we must account for this also. */ if (PackageLength <= (0x0000003F - 1)) { return (1); } else if (PackageLength <= (0x00000FFF - 2)) { return (2); } else if (PackageLength <= (0x000FFFFF - 3)) { return (3); } else if (PackageLength <= (0x0FFFFFFF - 4)) { return (4); } else { /* Fatal error - the package length is too large to encode */ AslError (ASL_ERROR, ASL_MSG_ENCODING_LENGTH, Op, NULL); } return (0); } /******************************************************************************* * * FUNCTION: CgGenerateAmlOpcodeLength * * PARAMETERS: Op - Parse node whose AML opcode lengths will be * calculated * * RETURN: None. * * DESCRIPTION: Calculate the AmlOpcodeLength, AmlPkgLenBytes, and AmlLength * fields for this node. * ******************************************************************************/ static void CgGenerateAmlOpcodeLength ( ACPI_PARSE_OBJECT *Op) { /* Check for two-byte opcode */ if (Op->Asl.AmlOpcode > 0x00FF) { Op->Asl.AmlOpcodeLength = 2; } else { Op->Asl.AmlOpcodeLength = 1; } /* Does this opcode have an associated "PackageLength" field? */ Op->Asl.AmlPkgLenBytes = 0; if (Op->Asl.CompileFlags & OP_AML_PACKAGE) { Op->Asl.AmlPkgLenBytes = CgGetPackageLenByteCount ( Op, Op->Asl.AmlSubtreeLength); } /* Data opcode lengths are easy */ switch (Op->Asl.AmlOpcode) { case AML_BYTE_OP: Op->Asl.AmlLength = 1; break; case AML_WORD_OP: Op->Asl.AmlLength = 2; break; case AML_DWORD_OP: Op->Asl.AmlLength = 4; break; case AML_QWORD_OP: Op->Asl.AmlLength = 8; break; default: /* All data opcodes must be above */ break; } } /******************************************************************************* * * FUNCTION: CgGenerateAmlLengths * * PARAMETERS: Op - Parse node * * RETURN: None. * * DESCRIPTION: Generate internal length fields based on the AML opcode or * parse opcode. * ******************************************************************************/ void CgGenerateAmlLengths ( ACPI_PARSE_OBJECT *Op) { char *Buffer; ACPI_STATUS Status; switch (Op->Asl.AmlOpcode) { case AML_RAW_DATA_BYTE: Op->Asl.AmlOpcodeLength = 0; Op->Asl.AmlLength = 1; return; case AML_RAW_DATA_WORD: Op->Asl.AmlOpcodeLength = 0; Op->Asl.AmlLength = 2; return; case AML_RAW_DATA_DWORD: Op->Asl.AmlOpcodeLength = 0; Op->Asl.AmlLength = 4; return; case AML_RAW_DATA_QWORD: Op->Asl.AmlOpcodeLength = 0; Op->Asl.AmlLength = 8; return; case AML_RAW_DATA_BUFFER: /* Aml length is/was set by creator */ Op->Asl.AmlOpcodeLength = 0; return; case AML_RAW_DATA_CHAIN: /* Aml length is/was set by creator */ Op->Asl.AmlOpcodeLength = 0; return; default: break; } switch (Op->Asl.ParseOpcode) { case PARSEOP_DEFINITION_BLOCK: AslGbl_TableLength = sizeof (ACPI_TABLE_HEADER) + Op->Asl.AmlSubtreeLength; break; case PARSEOP_NAMESEG: Op->Asl.AmlOpcodeLength = 0; Op->Asl.AmlLength = 4; Op->Asl.ExternalName = Op->Asl.Value.String; break; case PARSEOP_NAMESTRING: case PARSEOP_METHODCALL: if (Op->Asl.CompileFlags & OP_NAME_INTERNALIZED) { break; } Op->Asl.AmlOpcodeLength = 0; Status = UtInternalizeName (Op->Asl.Value.String, &Buffer); if (ACPI_FAILURE (Status)) { DbgPrint (ASL_DEBUG_OUTPUT, "Failure from internalize name %X\n", Status); break; } Op->Asl.ExternalName = Op->Asl.Value.String; Op->Asl.Value.String = Buffer; Op->Asl.CompileFlags |= OP_NAME_INTERNALIZED; Op->Asl.AmlLength = strlen (Buffer); /* * Check for single backslash reference to root or reference to a name * consisting of only prefix (^) characters. Make it a null terminated * string in the AML. */ if (Op->Asl.AmlLength == 1 || UtNameContainsAllPrefix(Op)) { Op->Asl.AmlLength++; } break; case PARSEOP_STRING_LITERAL: Op->Asl.AmlOpcodeLength = 1; /* Get null terminator */ Op->Asl.AmlLength = strlen (Op->Asl.Value.String) + 1; break; case PARSEOP_PACKAGE_LENGTH: Op->Asl.AmlOpcodeLength = 0; Op->Asl.AmlPkgLenBytes = CgGetPackageLenByteCount (Op, (UINT32) Op->Asl.Value.Integer); break; case PARSEOP_RAW_DATA: Op->Asl.AmlOpcodeLength = 0; break; case PARSEOP_DEFAULT_ARG: case PARSEOP_INCLUDE: case PARSEOP_INCLUDE_END: /* Ignore the "default arg" nodes, they are extraneous at this point */ break; case PARSEOP_EXTERNAL: CgGenerateAmlOpcodeLength (Op); break; default: CgGenerateAmlOpcodeLength (Op); break; } } #ifdef ACPI_OBSOLETE_FUNCTIONS /******************************************************************************* * * FUNCTION: LnAdjustLengthToRoot * * PARAMETERS: Op - Node whose Length was changed * * RETURN: None. * * DESCRIPTION: Change the Subtree length of the given node, and bubble the * change all the way up to the root node. This allows for * last second changes to a package length (for example, if the * package length encoding gets shorter or longer.) * ******************************************************************************/ void LnAdjustLengthToRoot ( ACPI_PARSE_OBJECT *SubtreeOp, UINT32 LengthDelta) { ACPI_PARSE_OBJECT *Op; /* Adjust all subtree lengths up to the root */ Op = SubtreeOp->Asl.Parent; while (Op) { Op->Asl.AmlSubtreeLength -= LengthDelta; Op = Op->Asl.Parent; } /* Adjust the global table length */ AslGbl_TableLength -= LengthDelta; } #endif acpica-unix-20250404/source/compiler/dtcompilerparser.tab.c0000775000175000017500000013542414773714131023153 0ustar ivanhuivanhu /* A Bison parser, made by GNU Bison 2.4.1. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.4.1" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* Using locations. */ #define YYLSP_NEEDED 0 /* Copy the first part of user declarations. */ /* Line 189 of yacc.c */ #line 1 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" /****************************************************************************** * * Module Name: dtcompilerparser.y - Bison input file for table compiler parser * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtcompilerparser") void * AslLocalAllocate (unsigned int Size); /* Bison/yacc configuration */ #undef alloca #define alloca AslLocalAllocate int DtCompilerParserlex (void); int DtCompilerParserparse (void); void DtCompilerParsererror (char const *msg); extern char *DtCompilerParsertext; extern DT_FIELD *AslGbl_CurrentField; extern int DtLabelByteOffset; extern UINT64 DtCompilerParserlineno; /* Current line number */ extern UINT32 DtTokenFirstLine; extern UINT32 DtTokenFirstColumn; /* Bison/yacc configuration */ #define yytname DtCompilerParsername #define YYDEBUG 1 /* Enable debug output */ #define YYERROR_VERBOSE 1 /* Verbose error messages */ #define YYFLAG -32768 /* Define YYMALLOC/YYFREE to prevent redefinition errors */ #define YYMALLOC malloc #define YYFREE free /* Line 189 of yacc.c */ #line 265 "dtcompilerparser.tab.c" /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* Enabling the token table. */ #ifndef YYTOKEN_TABLE # define YYTOKEN_TABLE 0 #endif /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { DT_PARSEOP_DATA = 258, DT_PARSEOP_LABEL = 259, DT_PARSEOP_STRING_DATA = 260, DT_PARSEOP_LINE_CONTINUATION = 261 }; #endif #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 214 of yacc.c */ #line 193 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" char *s; DT_FIELD *f; DT_TABLE_UNIT *u; /* Line 214 of yacc.c */ #line 315 "dtcompilerparser.tab.c" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif /* Copy the second part of user declarations. */ /* Line 264 of yacc.c */ #line 327 "dtcompilerparser.tab.c" #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ # define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int yyi) #else static int YYID (yyi) int yyi; #endif { return yyi; } #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 6 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 16 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 8 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 8 /* YYNRULES -- Number of rules. */ #define YYNRULES 13 /* YYNRULES -- Number of states. */ #define YYNSTATES 18 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 261 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint8 yyprhs[] = { 0, 0, 3, 5, 8, 10, 14, 16, 18, 21, 24, 26, 29, 31 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int8 yyrhs[] = { 9, 0, -1, 10, -1, 11, 10, -1, 11, -1, 4, 7, 12, -1, 13, -1, 15, -1, 15, 13, -1, 13, 14, -1, 14, -1, 6, 15, -1, 3, -1, 5, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { 0, 215, 215, 219, 220, 224, 228, 229, 230, 234, 235, 239, 243, 247 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "DT_PARSEOP_DATA", "DT_PARSEOP_LABEL", "DT_PARSEOP_STRING_DATA", "DT_PARSEOP_LINE_CONTINUATION", "':'", "$accept", "Table", "FieldList", "Field", "Data", "MultiLineDataList", "MultiLineData", "Datum", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 58 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 8, 9, 10, 10, 11, 12, 12, 12, 13, 13, 14, 15, 15 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 1, 2, 1, 3, 1, 1, 2, 2, 1, 2, 1, 1 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint8 yydefact[] = { 0, 0, 0, 2, 4, 0, 1, 3, 12, 13, 0, 5, 6, 10, 7, 11, 9, 8 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { -1, 2, 3, 4, 11, 12, 13, 14 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -13 static const yytype_int8 yypact[] = { 5, -5, 7, -13, 5, -2, -13, -13, -13, -13, 3, -13, 4, -13, 4, -13, -13, 4 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -13, -13, 8, -13, -13, -3, -12, 6 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -1 static const yytype_uint8 yytable[] = { 16, 8, 5, 9, 10, 16, 8, 6, 9, 1, 10, 17, 7, 0, 0, 0, 15 }; static const yytype_int8 yycheck[] = { 12, 3, 7, 5, 6, 17, 3, 0, 5, 4, 6, 14, 4, -1, -1, -1, 10 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 4, 9, 10, 11, 7, 0, 10, 3, 5, 6, 12, 13, 14, 15, 15, 14, 13 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) #else static void yy_stack_print (yybottom, yytop) yytype_int16 *yybottom; yytype_int16 *yytop; #endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_reduce_print (YYSTYPE *yyvsp, int yyrule) #else static void yy_reduce_print (yyvsp, yyrule) YYSTYPE *yyvsp; int yyrule; #endif { int yynrhs = yyr2[yyrule]; int yyi; unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) ); YYFPRINTF (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyvsp, Rule); \ } while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) #else static YYSIZE_T yystrlen (yystr) const char *yystr; #endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) #else static char * yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; #endif { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into YYRESULT an error message about the unexpected token YYCHAR while in state YYSTATE. Return the number of bytes copied, including the terminating null byte. If YYRESULT is null, do not copy anything; just return the number of bytes that would be copied. As a special case, return 0 if an ordinary "syntax error" message will do. Return YYSIZE_MAXIMUM if overflow occurs during size calculation. */ static YYSIZE_T yysyntax_error (char *yyresult, int yystate, int yychar) { int yyn = yypact[yystate]; if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) return 0; else { int yytype = YYTRANSLATE (yychar); YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; int yysize_overflow = 0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; int yyx; # if 0 /* This is so xgettext sees the translatable formats that are constructed on the fly. */ YY_("syntax error, unexpected %s"); YY_("syntax error, unexpected %s, expecting %s"); YY_("syntax error, unexpected %s, expecting %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); # endif char *yyfmt; char const *yyf; static char const yyunexpected[] = "syntax error, unexpected %s"; static char const yyexpecting[] = ", expecting %s"; static char const yyor[] = " or %s"; char yyformat[sizeof yyunexpected + sizeof yyexpecting - 1 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) * (sizeof yyor - 1))]; char const *yyprefix = yyexpecting; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 1; yyarg[0] = yytname[yytype]; yyfmt = yystpcpy (yyformat, yyunexpected); for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; yyformat[sizeof yyunexpected - 1] = '\0'; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; yyfmt = yystpcpy (yyfmt, yyprefix); yyprefix = yyor; } yyf = YY_(yyformat); yysize1 = yysize + yystrlen (yyf); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; if (yysize_overflow) return YYSIZE_MAXIMUM; if (yyresult) { /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ char *yyp = yyresult; int yyi = 0; while ((*yyp = *yyf) != '\0') { if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyf += 2; } else { yyp++; yyf++; } } } return yysize; } } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; /*-------------------------. | yyparse or yypush_parse. | `-------------------------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *YYPARSE_PARAM) #else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; #endif #else /* ! YYPARSE_PARAM */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void) #else int yyparse () #endif #endif { int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: `yyss': related to states. `yyvs': related to semantic values. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yytoken = 0; yyss = yyssa; yyvs = yyvsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; *++yyvsp = yylval; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 2: /* Line 1455 of yacc.c */ #line 215 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { ;} break; case 5: /* Line 1455 of yacc.c */ #line 224 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { DtCreateField ((yyvsp[(1) - (3)].u), (yyvsp[(3) - (3)].u), DtLabelByteOffset); ;} break; case 6: /* Line 1455 of yacc.c */ #line 228 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { (yyval.u) = (yyvsp[(1) - (1)].u); ;} break; case 7: /* Line 1455 of yacc.c */ #line 229 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { (yyval.u) = (yyvsp[(1) - (1)].u); ;} break; case 8: /* Line 1455 of yacc.c */ #line 230 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { (yyval.u) = (yyvsp[(1) - (2)].u); ;} break; case 9: /* Line 1455 of yacc.c */ #line 234 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { (yyval.u) = DtCreateTableUnit (AcpiUtStrcat(AcpiUtStrcat((yyvsp[(1) - (2)].u)->Value, " "), (yyvsp[(2) - (2)].u)->Value), (yyvsp[(1) - (2)].u)->Line, (yyvsp[(1) - (2)].u)->Column); ;} break; case 10: /* Line 1455 of yacc.c */ #line 235 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { (yyval.u) = (yyvsp[(1) - (1)].u); ;} break; case 11: /* Line 1455 of yacc.c */ #line 239 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { DbgPrint (ASL_PARSE_OUTPUT, "line continuation detected\n"); (yyval.u) = (yyvsp[(2) - (2)].u); ;} break; case 12: /* Line 1455 of yacc.c */ #line 243 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { DbgPrint (ASL_PARSE_OUTPUT, "parser data: [%s]\n", DtCompilerParserlval.s); (yyval.u) = DtCreateTableUnit (AcpiUtStrdup(DtCompilerParserlval.s), DtTokenFirstLine, DtTokenFirstColumn); ;} break; case 13: /* Line 1455 of yacc.c */ #line 247 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" { DbgPrint (ASL_PARSE_OUTPUT, "parser string data: [%s]\n", DtCompilerParserlval.s); (yyval.u) = DtCreateTableUnit (AcpiUtStrdup(DtCompilerParserlval.s), DtTokenFirstLine, DtTokenFirstColumn); ;} break; /* Line 1455 of yacc.c */ #line 1595 "dtcompilerparser.tab.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else { YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) { YYSIZE_T yyalloc = 2 * yysize; if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) yyalloc = YYSTACK_ALLOC_MAXIMUM; if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yyalloc); if (yymsg) yymsg_alloc = yyalloc; else { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; } } if (0 < yysize && yysize <= yymsg_alloc) { (void) yysyntax_error (yymsg, yystate, yychar); yyerror (yymsg); } else { yyerror (YY_("syntax error")); if (yysize != 0) goto yyexhaustedlab; } } #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule which action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } *++yyvsp = yylval; /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined(yyoverflow) || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif /* Make sure YYID is used. */ return YYID (yyresult); } /* Line 1675 of yacc.c */ #line 254 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtcompilerparser.y" /* * Local support functions, including parser entry point */ /****************************************************************************** * * FUNCTION: DtCompilerParsererror * * PARAMETERS: Message - Parser-generated error message * * RETURN: None * * DESCRIPTION: Handler for parser errors * *****************************************************************************/ void DtCompilerParsererror ( char const *Message) { DtError (ASL_ERROR, ASL_MSG_SYNTAX, AslGbl_CurrentField, (char *) Message); } int DtCompilerParserwrap(void) { return (1); } acpica-unix-20250404/source/compiler/aslcompile.c0000775000175000017500000006347414773714131021164 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslcompile - top level compile module * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acnamesp.h" #include #include #include #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslcompile") /* * Main parser entry * External is here in case the parser emits the same external in the * generated header. (Newer versions of Bison) */ int AslCompilerparse( void); /* Local prototypes */ static void CmFlushSourceCode ( void); static void CmDumpAllEvents ( void); static void CmFinishFiles( BOOLEAN DeleteAmlFile); /******************************************************************************* * * FUNCTION: CmDoCompile * * PARAMETERS: None * * RETURN: Status (0 = OK) * * DESCRIPTION: This procedure performs the entire compile * ******************************************************************************/ ACPI_STATUS CmDoCompile ( void) { UINT8 FullCompile; UINT8 Event; ASL_GLOBAL_FILE_NODE *FileNode; FullCompile = UtBeginEvent ("*** Total Compile time ***"); Event = UtBeginEvent ("Open input and output files"); UtEndEvent (Event); Event = UtBeginEvent ("Preprocess input file"); if (AslGbl_PreprocessFlag) { /* Enter compiler name as a #define */ PrAddDefine (ASL_DEFINE, "", FALSE); /* Preprocessor */ PrDoPreprocess (); AslGbl_CurrentLineNumber = 1; AslGbl_LogicalLineNumber = 1; AslGbl_CurrentLineOffset = 0; if (AslGbl_PreprocessOnly) { UtEndEvent (Event); return (AE_OK); } } UtEndEvent (Event); /* Build the parse tree */ Event = UtBeginEvent ("Parse source code and build parse tree"); AslCompilerparse(); UtEndEvent (Event); /* Check for parser-detected syntax errors */ if (AslGbl_SyntaxError) { AslError (ASL_ERROR, ASL_MSG_SYNTAX, NULL, "Compiler aborting due to parser-detected syntax error(s)\n"); /* Flag this error in the FileNode for compilation summary */ FileNode = FlGetCurrentFileNode (); FileNode->ParserErrorDetected = TRUE; AslGbl_ParserErrorDetected = TRUE; LsDumpParseTree (); AePrintErrorLog(ASL_FILE_STDERR); goto ErrorExit; } /* Did the parse tree get successfully constructed? */ if (!AslGbl_ParseTreeRoot) { /* * If there are no errors, then we have some sort of * internal problem. */ AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, NULL, "- Could not resolve parse tree root node"); goto ErrorExit; } AePrintErrorLog(ASL_FILE_STDERR); /* Flush out any remaining source after parse tree is complete */ Event = UtBeginEvent ("Flush source input"); CmFlushSourceCode (); /* Prune the parse tree if requested (debug purposes only) */ if (AslGbl_PruneParseTree) { AslPruneParseTree (AslGbl_PruneDepth, AslGbl_PruneType); } /* Optional parse tree dump, compiler debug output only */ LsDumpParseTree (); AslGbl_ParserErrorDetected = FALSE; AslGbl_SyntaxError = FALSE; UtEndEvent (Event); UtEndEvent (FullCompile); AslGbl_ParserErrorDetected = FALSE; AslGbl_SyntaxError = FALSE; ErrorExit: UtEndEvent (FullCompile); return (AE_ERROR); } /******************************************************************************* * * FUNCTION: CmDoAslMiddleAndBackEnd * * PARAMETERS: None * * RETURN: Status of middle-end and back-end * * DESCRIPTION: Perform compiler middle-end (type checking and semantic * analysis) and back-end (code generation) * ******************************************************************************/ int CmDoAslMiddleAndBackEnd ( void) { UINT8 Event; ACPI_STATUS Status; OpcGetIntegerWidth (AslGbl_ParseTreeRoot->Asl.Child); /* Pre-process parse tree for any operator transforms */ Event = UtBeginEvent ("Parse tree transforms"); DbgPrint (ASL_DEBUG_OUTPUT, "\nParse tree transforms\n\n"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_TWICE, TrAmlTransformWalkBegin, TrAmlTransformWalkEnd, NULL); UtEndEvent (Event); /* Generate AML opcodes corresponding to the parse tokens */ Event = UtBeginEvent ("Generate AML opcodes"); DbgPrint (ASL_DEBUG_OUTPUT, "Generating AML opcodes\n\n"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD, NULL, OpcAmlOpcodeWalk, NULL); UtEndEvent (Event); /* Interpret and generate all compile-time constants */ Event = UtBeginEvent ("Constant folding via AML interpreter"); DbgPrint (ASL_DEBUG_OUTPUT, "Interpreting compile-time constant expressions\n\n"); if (AslGbl_FoldConstants) { TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD, NULL, OpcAmlConstantWalk, NULL); } else { DbgPrint (ASL_PARSE_OUTPUT, " Optional folding disabled\n"); } UtEndEvent (Event); /* Update AML opcodes if necessary, after constant folding */ Event = UtBeginEvent ("Updating AML opcodes after constant folding"); DbgPrint (ASL_DEBUG_OUTPUT, "Updating AML opcodes after constant folding\n\n"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD, NULL, OpcAmlOpcodeUpdateWalk, NULL); UtEndEvent (Event); /* Calculate all AML package lengths */ Event = UtBeginEvent ("Generate AML package lengths"); DbgPrint (ASL_DEBUG_OUTPUT, "Generating Package lengths\n\n"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD, NULL, LnPackageLengthWalk, NULL); UtEndEvent (Event); if (AslGbl_ParseOnlyFlag) { AePrintErrorLog (ASL_FILE_STDERR); UtDisplaySummary (ASL_FILE_STDERR); if (AslGbl_DebugFlag) { /* Print error summary to the stdout also */ AePrintErrorLog (ASL_FILE_STDOUT); UtDisplaySummary (ASL_FILE_STDOUT); } return (0); } /* * Create an internal namespace and use it as a symbol table */ /* Namespace loading */ Event = UtBeginEvent ("Create ACPI Namespace"); DbgPrint (ASL_DEBUG_OUTPUT, "Creating ACPI Namespace\n\n"); Status = LdLoadNamespace (AslGbl_ParseTreeRoot); UtEndEvent (Event); if (ACPI_FAILURE (Status)) { return (-1); } /* Namespace cross-reference */ AslGbl_NamespaceEvent = UtBeginEvent ( "Cross reference parse tree and Namespace"); DbgPrint (ASL_DEBUG_OUTPUT, "Cross referencing namespace\n\n"); Status = XfCrossReferenceNamespace (); if (ACPI_FAILURE (Status)) { return (-1); } /* Namespace - Check for non-referenced objects */ LkFindUnreferencedObjects (); UtEndEvent (AslGbl_NamespaceEvent); /* Resolve External Declarations */ Event = UtBeginEvent ("Resolve all Externals"); DbgPrint (ASL_DEBUG_OUTPUT, "\nResolve Externals\n\n"); if (AslGbl_DoExternalsInPlace) { TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, ExAmlExternalWalkBegin, NULL, NULL); } else { TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_TWICE, ExAmlExternalWalkBegin, ExAmlExternalWalkEnd, NULL); } UtEndEvent (Event); /* * Semantic analysis. This can happen only after the * namespace has been loaded and cross-referenced. * * part one - check control methods */ Event = UtBeginEvent ("Analyze control method return types"); AslGbl_AnalysisWalkInfo.MethodStack = NULL; DbgPrint (ASL_DEBUG_OUTPUT, "Semantic analysis - Method analysis\n\n"); if (AslGbl_CrossReferenceOutput) { OtPrintHeaders ("Part 1: Object Reference Map " "(Object references from within each control method)"); } TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_TWICE, MtMethodAnalysisWalkBegin, MtMethodAnalysisWalkEnd, &AslGbl_AnalysisWalkInfo); UtEndEvent (Event); /* Generate the object cross-reference file if requested */ Event = UtBeginEvent ("Generate cross-reference file"); OtCreateXrefFile (); UtEndEvent (Event); /* Semantic error checking part two - typing of method returns */ Event = UtBeginEvent ("Determine object types returned by methods"); DbgPrint (ASL_DEBUG_OUTPUT, "Semantic analysis - Method typing\n\n"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD, NULL, AnMethodTypingWalkEnd, NULL); UtEndEvent (Event); /* Semantic error checking part three - operand type checking */ Event = UtBeginEvent ("Analyze AML operand types"); DbgPrint (ASL_DEBUG_OUTPUT, "Semantic analysis - Operand type checking\n\n"); if (AslGbl_DoTypechecking) { TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD, NULL, AnOperandTypecheckWalkEnd, &AslGbl_AnalysisWalkInfo); } UtEndEvent (Event); /* Semantic error checking part four - other miscellaneous checks */ Event = UtBeginEvent ("Miscellaneous analysis"); DbgPrint (ASL_DEBUG_OUTPUT, "Semantic analysis - miscellaneous\n\n"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, AnOtherSemanticAnalysisWalkBegin, NULL, &AslGbl_AnalysisWalkInfo); UtEndEvent (Event); /* * ASL-/ASL+ converter: Gbl_ParseTreeRoot->CommentList contains the * very last comment of a given ASL file because it's the last constructed * node during compilation. We take the very last comment and save it in a * global for it to be used by the disassembler. */ if (AcpiGbl_CaptureComments) { AcpiGbl_LastListHead = AslGbl_ParseTreeRoot->Asl.CommentList; AslGbl_ParseTreeRoot->Asl.CommentList = NULL; } /* Calculate all AML package lengths */ Event = UtBeginEvent ("Finish AML package length generation"); DbgPrint (ASL_DEBUG_OUTPUT, "Generating Package lengths\n\n"); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD, NULL, LnInitLengthsWalk, NULL); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD, NULL, LnPackageLengthWalk, NULL); UtEndEvent (Event); /* Code generation - emit the AML */ Event = UtBeginEvent ("Generate AML code and write output files"); DbgPrint (ASL_DEBUG_OUTPUT, "Writing AML byte code\n\n"); AslGbl_CurrentDB = AslGbl_ParseTreeRoot->Asl.Child; while (AslGbl_CurrentDB) { switch (FlSwitchFileSet(AslGbl_CurrentDB->Asl.Filename)) { case SWITCH_TO_DIFFERENT_FILE: /* * Reset these parameters when definition blocks belong in * different files. If they belong in the same file, there is * no need to reset these parameters */ FlSeekFile (ASL_FILE_SOURCE_OUTPUT, 0); AslGbl_SourceLine = 0; AslGbl_NextError = AslGbl_ErrorLog; /* fall-through */ case SWITCH_TO_SAME_FILE: CgGenerateAmlOutput (); CmDoOutputFiles (); AslGbl_CurrentDB = AslGbl_CurrentDB->Asl.Next; break; default: /* FILE_NOT_FOUND */ /* The requested file could not be found. Get out of here */ AslGbl_CurrentDB = NULL; break; } } UtEndEvent (Event); Event = UtBeginEvent ("Write optional output files"); UtEndEvent (Event); return (0); } /******************************************************************************* * * FUNCTION: AslCompilerSignon * * PARAMETERS: FileId - ID of the output file * * RETURN: None * * DESCRIPTION: Display compiler signon * ******************************************************************************/ void AslCompilerSignon ( UINT32 FileId) { char *Prefix = ""; char *UtilityName; /* Set line prefix depending on the destination file type */ switch (FileId) { case ASL_FILE_ASM_SOURCE_OUTPUT: case ASL_FILE_ASM_INCLUDE_OUTPUT: Prefix = "; "; break; case ASL_FILE_HEX_OUTPUT: if (AslGbl_HexOutputFlag == HEX_OUTPUT_ASM) { Prefix = "; "; } else if ((AslGbl_HexOutputFlag == HEX_OUTPUT_C) || (AslGbl_HexOutputFlag == HEX_OUTPUT_ASL)) { FlPrintFile (ASL_FILE_HEX_OUTPUT, "/*\n"); Prefix = " * "; } break; case ASL_FILE_C_SOURCE_OUTPUT: case ASL_FILE_C_OFFSET_OUTPUT: case ASL_FILE_C_INCLUDE_OUTPUT: Prefix = " * "; break; default: /* No other output types supported */ break; } /* Running compiler or disassembler? */ if (AcpiGbl_DisasmFlag) { UtilityName = AML_DISASSEMBLER_NAME; } else { UtilityName = ASL_COMPILER_NAME; } /* Compiler signon with copyright */ FlPrintFile (FileId, "%s\n", Prefix); FlPrintFile (FileId, ACPI_COMMON_HEADER (UtilityName, Prefix)); } /******************************************************************************* * * FUNCTION: AslCompilerFileHeader * * PARAMETERS: FileId - ID of the output file * * RETURN: None * * DESCRIPTION: Header used at the beginning of output files * ******************************************************************************/ void AslCompilerFileHeader ( UINT32 FileId) { char *NewTime; time_t Aclock; char *Prefix = ""; /* Set line prefix depending on the destination file type */ switch (FileId) { case ASL_FILE_ASM_SOURCE_OUTPUT: case ASL_FILE_ASM_INCLUDE_OUTPUT: Prefix = "; "; break; case ASL_FILE_HEX_OUTPUT: if (AslGbl_HexOutputFlag == HEX_OUTPUT_ASM) { Prefix = "; "; } else if ((AslGbl_HexOutputFlag == HEX_OUTPUT_C) || (AslGbl_HexOutputFlag == HEX_OUTPUT_ASL)) { Prefix = " * "; } break; case ASL_FILE_C_SOURCE_OUTPUT: case ASL_FILE_C_OFFSET_OUTPUT: case ASL_FILE_C_INCLUDE_OUTPUT: Prefix = " * "; break; default: /* No other output types supported */ break; } /* Compilation header (with timestamp) */ FlPrintFile (FileId, "%sCompilation of \"%s\"", Prefix, AslGbl_Files[ASL_FILE_INPUT].Filename); if (!AslGbl_Deterministic) { Aclock = time (NULL); NewTime = ctime (&Aclock); if (NewTime) { FlPrintFile (FileId, " - %s%s\n", NewTime, Prefix); } } else { FlPrintFile (FileId, "\n"); } switch (FileId) { case ASL_FILE_C_SOURCE_OUTPUT: case ASL_FILE_C_OFFSET_OUTPUT: case ASL_FILE_C_INCLUDE_OUTPUT: FlPrintFile (FileId, " */\n"); break; default: /* Nothing to do for other output types */ break; } } /******************************************************************************* * * FUNCTION: CmFlushSourceCode * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Read in any remaining source code after the parse tree * has been constructed. * ******************************************************************************/ static void CmFlushSourceCode ( void) { char Buffer; while (FlReadFile (ASL_FILE_INPUT, &Buffer, 1) != AE_ERROR) { AslInsertLineBuffer ((int) Buffer); } AslResetCurrentLineBuffer (); } /******************************************************************************* * * FUNCTION: CmDoOutputFiles * * PARAMETERS: None * * RETURN: None. * * DESCRIPTION: Create all "listing" type files * ******************************************************************************/ void CmDoOutputFiles ( void) { /* Create listings and hex files */ LsDoListings (); HxDoHexOutput (); /* Dump the namespace to the .nsp file if requested */ (void) NsDisplayNamespace (); /* Dump the device mapping file */ MpEmitMappingInfo (); } /******************************************************************************* * * FUNCTION: CmDumpAllEvents * * PARAMETERS: None * * RETURN: None. * * DESCRIPTION: Dump all compiler events * ******************************************************************************/ static void CmDumpAllEvents ( void) { ASL_EVENT_INFO *Event; UINT32 Delta; UINT32 MicroSeconds; UINT32 MilliSeconds; UINT32 i; Event = AslGbl_Events; DbgPrint (ASL_DEBUG_OUTPUT, "\n\nElapsed time for major events\n\n"); if (AslGbl_CompileTimesFlag) { printf ("\nElapsed time for major events\n\n"); } for (i = 0; i < AslGbl_NextEvent; i++) { if (Event->Valid) { /* Delta will be in 100-nanosecond units */ Delta = (UINT32) (Event->EndTime - Event->StartTime); MicroSeconds = Delta / ACPI_100NSEC_PER_USEC; MilliSeconds = Delta / ACPI_100NSEC_PER_MSEC; /* Round milliseconds up */ if ((MicroSeconds - (MilliSeconds * ACPI_USEC_PER_MSEC)) >= 500) { MilliSeconds++; } DbgPrint (ASL_DEBUG_OUTPUT, "%8u usec %8u msec - %s\n", MicroSeconds, MilliSeconds, Event->EventName); if (AslGbl_CompileTimesFlag) { printf ("%8u usec %8u msec - %s\n", MicroSeconds, MilliSeconds, Event->EventName); } } Event++; } } /******************************************************************************* * * FUNCTION: CmCleanupAndExit * * PARAMETERS: None * * RETURN: None. * * DESCRIPTION: Close all open files and exit the compiler * ******************************************************************************/ int CmCleanupAndExit ( void) { int Status = 0; BOOLEAN DeleteAmlFile = FALSE; ASL_GLOBAL_FILE_NODE *CurrentFileNode = AslGbl_FilesList; /* Check if any errors occurred during compile */ (void) AslCheckForErrorExit (); AePrintErrorLog (ASL_FILE_STDERR); if (AslGbl_DebugFlag) { /* Print error summary to stdout also */ AePrintErrorLog (ASL_FILE_STDOUT); } /* Emit compile times if enabled */ CmDumpAllEvents (); if (AslGbl_CompileTimesFlag) { printf ("\nMiscellaneous compile statistics\n\n"); printf ("%11u : %s\n", AslGbl_TotalParseNodes, "Parse nodes"); printf ("%11u : %s\n", AslGbl_NsLookupCount, "Namespace searches"); printf ("%11u : %s\n", AslGbl_TotalNamedObjects, "Named objects"); printf ("%11u : %s\n", AslGbl_TotalMethods, "Control methods"); printf ("%11u : %s\n", AslGbl_TotalAllocations, "Memory Allocations"); printf ("%11u : %s\n", AslGbl_TotalAllocated, "Total allocated memory"); printf ("%11u : %s\n", AslGbl_TotalFolds, "Constant subtrees folded"); printf ("\n"); } if (AslGbl_NsLookupCount) { DbgPrint (ASL_DEBUG_OUTPUT, "\n\nMiscellaneous compile statistics\n\n"); DbgPrint (ASL_DEBUG_OUTPUT, "%32s : %u\n", "Total Namespace searches", AslGbl_NsLookupCount); DbgPrint (ASL_DEBUG_OUTPUT, "%32s : %u usec\n", "Time per search", ((UINT32) (AslGbl_Events[AslGbl_NamespaceEvent].EndTime - AslGbl_Events[AslGbl_NamespaceEvent].StartTime) / 10) / AslGbl_NsLookupCount); } if (AslGbl_ExceptionCount[ASL_ERROR] > ASL_MAX_ERROR_COUNT) { printf ("\nMaximum error count (%d) exceeded (aslcompile.c)\n", ASL_MAX_ERROR_COUNT); } UtDisplaySummary (ASL_FILE_STDOUT); /* * Delete the AML file if there are errors and the force AML output option * (-f) has not been used. * * Return -1 as a status of the compiler if no AML files are generated. If * the AML file is generated in the presence of errors, return 0. In the * latter case, the errors were ignored by the user so the compilation is * considered successful. */ if (AslGbl_ParserErrorDetected || AslGbl_PreprocessOnly || ((AslGbl_ExceptionCount[ASL_ERROR] > 0) && (!AslGbl_IgnoreErrors) && AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle)) { DeleteAmlFile = TRUE; Status = -1; } /* Close all open files */ while (CurrentFileNode) { /* * Set the program return status based on file errors. If there are any * errors and during compilation, the command is not considered * successful. */ if (Status != -1 && !AslGbl_IgnoreErrors && CurrentFileNode->ParserErrorDetected) { Status = -1; } switch (FlSwitchFileSet (CurrentFileNode->Files[ASL_FILE_INPUT].Filename)) { case SWITCH_TO_SAME_FILE: case SWITCH_TO_DIFFERENT_FILE: CmFinishFiles (DeleteAmlFile); CurrentFileNode = CurrentFileNode->Next; break; case FILE_NOT_FOUND: default: CurrentFileNode = NULL; break; } } /* Final cleanup after compiling one file */ if (!AslGbl_DoAslConversion) { UtDeleteLocalCaches (); } return (Status); } /******************************************************************************* * * FUNCTION: CmFinishFiles * * PARAMETERS: DeleteAmlFile * * RETURN: None. * * DESCRIPTION: Close all open files, delete AML files depending on the * function parameter is true. * ******************************************************************************/ static void CmFinishFiles( BOOLEAN DeleteAmlFile) { UINT32 i; /* * Take care with the preprocessor file (.pre), it might be the same * as the "input" file, depending on where the compiler has terminated * or aborted. Prevent attempt to close the same file twice in * loop below. */ if (AslGbl_Files[ASL_FILE_PREPROCESSOR].Handle == AslGbl_Files[ASL_FILE_INPUT].Handle) { AslGbl_Files[ASL_FILE_PREPROCESSOR].Handle = NULL; } /* Close the standard I/O files */ for (i = ASL_FILE_INPUT; i < ASL_MAX_FILE_TYPE; i++) { /* * Some files such as debug output files could be pointing to * stderr or stdout. Leave these alone. */ if (AslGbl_Files[i].Handle != stderr && AslGbl_Files[i].Handle != stdout) { FlCloseFile (i); } } /* Delete AML file if there are errors */ if (DeleteAmlFile) { FlDeleteFile (ASL_FILE_AML_OUTPUT); } /* Delete the preprocessor temp file unless full debug was specified */ if (AslGbl_PreprocessFlag && !AslGbl_KeepPreprocessorTempFile) { FlDeleteFile (ASL_FILE_PREPROCESSOR); } /* * Delete intermediate ("combined") source file (if -ls flag not set) * This file is created during normal ASL/AML compiles. It is not * created by the data table compiler. * * If the -ls flag is set, then the .SRC file should not be deleted. * In this case, Gbl_SourceOutputFlag is set to TRUE. * * Note: Handles are cleared by FlCloseFile above, so we look at the * filename instead, to determine if the .SRC file was actually * created. */ if (!AslGbl_SourceOutputFlag) { FlDeleteFile (ASL_FILE_SOURCE_OUTPUT); } } acpica-unix-20250404/source/compiler/asllookup.c0000775000175000017500000002326514773714131021037 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asllookup- Namespace lookup functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acparser.h" #include "amlcode.h" #include "acnamesp.h" #include "acdispat.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asllookup") /* Local prototypes */ static ACPI_STATUS LkIsObjectUsed ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); static ACPI_PARSE_OBJECT * LkGetNameOp ( ACPI_PARSE_OBJECT *Op); /******************************************************************************* * * FUNCTION: LkFindUnreferencedObjects * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Namespace walk to find objects that are not referenced in any * way. Must be called after the namespace has been cross * referenced. * ******************************************************************************/ void LkFindUnreferencedObjects ( void) { /* Walk entire namespace from the supplied root */ (void) AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, FALSE, LkIsObjectUsed, NULL, NULL, NULL); } /******************************************************************************* * * FUNCTION: LkIsObjectUsed * * PARAMETERS: ACPI_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Check for an unreferenced namespace object and emit a warning. * We have to be careful, because some types and names are * typically or always unreferenced, we don't want to issue * excessive warnings. Note: Names that are declared within a * control method are temporary, so we always issue a remark * if they are not referenced. * ******************************************************************************/ static ACPI_STATUS LkIsObjectUsed ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); ACPI_NAMESPACE_NODE *Next; ASL_METHOD_LOCAL *MethodLocals; ASL_METHOD_LOCAL *MethodArgs; UINT32 i; if (Node->Type == ACPI_TYPE_METHOD) { if (!Node->Op || !Node->MethodLocals) { return (AE_OK); } MethodLocals = (ASL_METHOD_LOCAL *) Node->MethodLocals; MethodArgs = (ASL_METHOD_LOCAL *) Node->MethodArgs; /* * Analysis of LocalX variables */ for (i = 0; i < ACPI_METHOD_NUM_LOCALS; i++) { /* Warn for Locals that are set but never referenced */ if ((MethodLocals[i].Flags & ASL_LOCAL_INITIALIZED) && (!(MethodLocals[i].Flags & ASL_LOCAL_REFERENCED))) { sprintf (AslGbl_MsgBuffer, "Local%u", i); AslError (ASL_WARNING, ASL_MSG_LOCAL_NOT_USED, MethodLocals[i].Op, AslGbl_MsgBuffer); } } /* * Analysis of ArgX variables (standard method arguments, * and remaining unused ArgX can also be used as locals) */ for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++) { if (MethodArgs[i].Flags & ASL_ARG_IS_LOCAL) { /* Warn if ArgX is being used as a local, but not referenced */ if ((MethodArgs[i].Flags & ASL_ARG_INITIALIZED) && (!(MethodArgs[i].Flags & ASL_ARG_REFERENCED))) { sprintf (AslGbl_MsgBuffer, "Arg%u", i); AslError (ASL_WARNING, ASL_MSG_ARG_AS_LOCAL_NOT_USED, MethodArgs[i].Op, AslGbl_MsgBuffer); } } else { /* * Remark if a normal method ArgX is not referenced. * We ignore the predefined methods since often, not * all arguments are needed or used. */ if ((Node->Name.Ascii[0] != '_') && (!(MethodArgs[i].Flags & ASL_ARG_REFERENCED))) { sprintf (AslGbl_MsgBuffer, "Arg%u", i); AslError (ASL_REMARK, ASL_MSG_ARG_NOT_USED, MethodArgs[i].Op, AslGbl_MsgBuffer); } } } } /* Referenced flag is set during the namespace xref */ if (Node->Flags & ANOBJ_IS_REFERENCED) { return (AE_OK); } if (!Node->Op) { return (AE_OK); } /* These types are typically never directly referenced, ignore them */ switch (Node->Type) { case ACPI_TYPE_DEVICE: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_POWER: case ACPI_TYPE_THERMAL: case ACPI_TYPE_LOCAL_RESOURCE: case ACPI_TYPE_LOCAL_RESOURCE_FIELD: /* Names assigned to descriptor elements */ return (AE_OK); default: break; } /* Determine if the name is within a control method */ Next = Node->Parent; while (Next) { if (Next->Type == ACPI_TYPE_METHOD) { /* * Name is within a method, therefore it is temporary. * Issue a remark even if it is a reserved name (starts * with an underscore). */ sprintf (AslGbl_MsgBuffer, "Name [%4.4s] is within a method [%4.4s]", Node->Name.Ascii, Next->Name.Ascii); AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED, LkGetNameOp (Node->Op), AslGbl_MsgBuffer); return (AE_OK); } Next = Next->Parent; } /* The name is not within a control method */ /* * Ignore names that start with an underscore. These are the reserved * ACPI names and are typically not referenced since they are meant * to be called by the host OS. */ if (Node->Name.Ascii[0] == '_') { return (AE_OK); } /* * What remains is an unresolved user name that is not within a method. * However, the object could be referenced via another table, so issue * the warning at level 2. */ AslError (ASL_WARNING2, ASL_MSG_NOT_REFERENCED, LkGetNameOp (Node->Op), NULL); return (AE_OK); } /******************************************************************************* * * FUNCTION: LkGetNameOp * * PARAMETERS: Op - Current Op * * RETURN: NameOp associated with the input op * * DESCRIPTION: Find the name declaration op associated with the operator * ******************************************************************************/ static ACPI_PARSE_OBJECT * LkGetNameOp ( ACPI_PARSE_OBJECT *Op) { const ACPI_OPCODE_INFO *OpInfo; ACPI_PARSE_OBJECT *NameOp = Op; OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); /* Get the NamePath from the appropriate place */ if (OpInfo->Flags & AML_NAMED) { /* For nearly all NAMED operators, the name reference is the first child */ NameOp = Op->Asl.Child; if (Op->Asl.AmlOpcode == AML_ALIAS_OP) { /* * ALIAS is the only oddball opcode, the name declaration * (alias name) is the second operand */ NameOp = Op->Asl.Child->Asl.Next; } } else if (OpInfo->Flags & AML_CREATE) { /* Name must appear as the last parameter */ NameOp = Op->Asl.Child; while (!(NameOp->Asl.CompileFlags & OP_IS_NAME_DECLARATION)) { NameOp = NameOp->Asl.Next; } } return (NameOp); } acpica-unix-20250404/source/compiler/prparser.l0000775000175000017500000001427614773714132020700 0ustar ivanhuivanhu%{ /****************************************************************************** * * Module Name: prparser.l - Flex input file for preprocessor lexer * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "prparser.y.h" /* Buffer to pass strings to the parser */ #define STRING_SETUP strcpy (AslGbl_StringBuffer, PrParsertext);\ PrParserlval.str = AslGbl_StringBuffer #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("prscanner") /* Local prototypes */ static char PrDoCommentType1 ( void); static char PrDoCommentType2 ( void); %} %option noyywrap Number [0-9a-fA-F]+ HexNumber 0[xX][0-9a-fA-F]+ WhiteSpace [ \t\v\r]+ NewLine [\n] Identifier [a-zA-Z][0-9a-zA-Z]* %% "/*" { if (!PrDoCommentType1 ()) {yyterminate ();} } "//" { if (!PrDoCommentType2 ()) {yyterminate ();} } \( return (EXPOP_PAREN_OPEN); \) return (EXPOP_PAREN_CLOSE); \~ return (EXPOP_ONES_COMPLIMENT); \! return (EXPOP_LOGICAL_NOT); \* return (EXPOP_MULTIPLY); \/ return (EXPOP_DIVIDE); \% return (EXPOP_MODULO); \+ return (EXPOP_ADD); \- return (EXPOP_SUBTRACT); ">>" return (EXPOP_SHIFT_RIGHT); "<<" return (EXPOP_SHIFT_LEFT); \< return (EXPOP_LESS); \> return (EXPOP_GREATER); "<=" return (EXPOP_LESS_EQUAL); ">=" return (EXPOP_GREATER_EQUAL); "==" return (EXPOP_EQUAL); "!=" return (EXPOP_NOT_EQUAL); \& return (EXPOP_AND); \^ return (EXPOP_XOR); \| return (EXPOP_OR); "&&" return (EXPOP_LOGICAL_AND); "||" return (EXPOP_LOGICAL_OR); "defined" return (EXPOP_DEFINE); {Identifier} {STRING_SETUP; return (EXPOP_IDENTIFIER);} <> return (EXPOP_EOF); /* null end-of-string */ {Number} return (EXPOP_NUMBER); {HexNumber} return (EXPOP_HEX_NUMBER); {NewLine} return (EXPOP_NEW_LINE); {WhiteSpace} /* Ignore */ . return (EXPOP_EOF); %% /* * Local support functions */ static YY_BUFFER_STATE LexBuffer; /****************************************************************************** * * FUNCTION: PrInitLexer * * PARAMETERS: String - Input string to be parsed * * RETURN: TRUE if parser returns NULL. FALSE otherwise. * * DESCRIPTION: Initialization routine for lexer. The lexer needs * a buffer to handle strings instead of a file. * *****************************************************************************/ int PrInitLexer ( char *String) { LexBuffer = yy_scan_string (String); return (LexBuffer == NULL); } /****************************************************************************** * * FUNCTION: PrTerminateLexer * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Termination routine for thelexer. * *****************************************************************************/ void PrTerminateLexer ( void) { yy_delete_buffer (LexBuffer); } /******************************************************************************** * * FUNCTION: PrDoCommentType1 * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Process a new legacy comment. Just toss it. * ******************************************************************************/ static char PrDoCommentType1 ( void) { int c; Loop: while (((c = input ()) != '*') && (c != EOF)) { } if (c == EOF) { return (FALSE); } if (((c = input ()) != '/') && (c != EOF)) { unput (c); goto Loop; } if (c == EOF) { return (FALSE); } return (TRUE); } /******************************************************************************** * * FUNCTION: PrDoCommentType2 * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Process a new "//" comment. Just toss it. * ******************************************************************************/ static char PrDoCommentType2 ( void) { int c; while (((c = input ()) != '\n') && (c != EOF)) { } if (c == EOF) { return (FALSE); } return (TRUE); } acpica-unix-20250404/source/compiler/aslmaputils.c0000775000175000017500000002644514773714131021367 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslmaputils - Utilities for the resource descriptor/device maps * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acapps.h" #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acinterp.h" #include "acnamesp.h" #include "amlcode.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslmaputils") /******************************************************************************* * * FUNCTION: MpGetHidFromParseTree * * PARAMETERS: HidNode - Node for a _HID object * * RETURN: An _HID string value. Automatically converts _HID integers * to strings. Never NULL. * * DESCRIPTION: Extract a _HID value from the parse tree, not the namespace. * Used when a fully initialized namespace is not available. * ******************************************************************************/ char * MpGetHidFromParseTree ( ACPI_NAMESPACE_NODE *HidNode) { ACPI_PARSE_OBJECT *Op; ACPI_PARSE_OBJECT *Arg; char *HidString; Op = HidNode->Op; if (!Op) { /* Object is not resolved, probably an External */ return ("Unresolved Symbol - referenced but not defined in this table"); } switch (Op->Asl.ParseOpcode) { case PARSEOP_NAME: Arg = Op->Asl.Child; /* Get the NameSeg/NameString node */ Arg = Arg->Asl.Next; /* First peer is the object to be associated with the name */ switch (Arg->Asl.ParseOpcode) { case PARSEOP_STRING_LITERAL: return (Arg->Asl.Value.String); case PARSEOP_INTEGER: /* Convert EISAID to a string */ HidString = UtLocalCacheCalloc (ACPI_EISAID_STRING_SIZE); AcpiExEisaIdToString (HidString, Arg->Asl.Value.Integer); return (HidString); default: return ("UNKNOWN"); } default: return ("-No HID-"); } } /******************************************************************************* * * FUNCTION: MpGetHidValue * * PARAMETERS: DeviceNode - Node for parent device * * RETURN: An _HID string value. Automatically converts _HID integers * to strings. Never NULL. * * DESCRIPTION: Extract _HID value from within a device scope. Does not * actually execute a method, just gets the string or integer * value for the _HID. * ******************************************************************************/ char * MpGetHidValue ( ACPI_NAMESPACE_NODE *DeviceNode) { ACPI_NAMESPACE_NODE *HidNode; char *HidString; ACPI_STATUS Status; Status = AcpiNsGetNode (DeviceNode, METHOD_NAME__HID, ACPI_NS_NO_UPSEARCH, &HidNode); if (ACPI_FAILURE (Status)) { goto ErrorExit; } /* If only partial namespace, get the _HID from the parse tree */ if (!HidNode->Object) { return (MpGetHidFromParseTree (HidNode)); } /* Handle the different _HID flavors */ switch (HidNode->Type) { case ACPI_TYPE_STRING: return (HidNode->Object->String.Pointer); case ACPI_TYPE_INTEGER: /* Convert EISAID to a string */ HidString = UtLocalCacheCalloc (ACPI_EISAID_STRING_SIZE); AcpiExEisaIdToString (HidString, HidNode->Object->Integer.Value); return (HidString); case ACPI_TYPE_METHOD: return ("-Method-"); default: FlPrintFile (ASL_FILE_MAP_OUTPUT, "BAD HID TYPE: %u", HidNode->Type); break; } ErrorExit: return ("-No HID-"); } /******************************************************************************* * * FUNCTION: MpGetHidViaNamestring * * PARAMETERS: DeviceName - Namepath for parent device * * RETURN: _HID string. Never NULL. * * DESCRIPTION: Get a _HID value via a device pathname (instead of just simply * a device node.) * ******************************************************************************/ char * MpGetHidViaNamestring ( char *DeviceName) { ACPI_NAMESPACE_NODE *DeviceNode; ACPI_STATUS Status; Status = AcpiNsGetNode (NULL, DeviceName, ACPI_NS_NO_UPSEARCH, &DeviceNode); if (ACPI_FAILURE (Status)) { goto ErrorExit; } return (MpGetHidValue (DeviceNode)); ErrorExit: return ("-No HID-"); } /******************************************************************************* * * FUNCTION: MpGetParentDeviceHid * * PARAMETERS: Op - Parse Op to be examined * TargetNode - Where the field node is returned * ParentDeviceName - Where the node path is returned * * RETURN: _HID string. Never NULL. * * DESCRIPTION: Find the parent Device or Scope Op, get the full pathname to * the parent, and get the _HID associated with the parent. * ******************************************************************************/ char * MpGetParentDeviceHid ( ACPI_PARSE_OBJECT *Op, ACPI_NAMESPACE_NODE **TargetNode, char **ParentDeviceName) { ACPI_NAMESPACE_NODE *DeviceNode; /* Find parent Device() or Scope() Op */ while (Op && (Op->Asl.AmlOpcode != AML_DEVICE_OP) && (Op->Asl.AmlOpcode != AML_SCOPE_OP)) { Op = Op->Asl.Parent; } if (!Op) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " No_Parent_Device "); goto ErrorExit; } /* Get the full pathname to the device and the _HID */ DeviceNode = Op->Asl.Node; if (!DeviceNode) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " No_Device_Node "); goto ErrorExit; } *ParentDeviceName = AcpiNsGetExternalPathname (DeviceNode); return (MpGetHidValue (DeviceNode)); ErrorExit: return ("-No HID-"); } /******************************************************************************* * * FUNCTION: MpGetDdnValue * * PARAMETERS: DeviceName - Namepath for parent device * * RETURN: _DDN description string. NULL on failure. * * DESCRIPTION: Execute the _DDN method for the device. * ******************************************************************************/ char * MpGetDdnValue ( char *DeviceName) { ACPI_NAMESPACE_NODE *DeviceNode; ACPI_NAMESPACE_NODE *DdnNode; ACPI_STATUS Status; Status = AcpiNsGetNode (NULL, DeviceName, ACPI_NS_NO_UPSEARCH, &DeviceNode); if (ACPI_FAILURE (Status)) { goto ErrorExit; } Status = AcpiNsGetNode (DeviceNode, METHOD_NAME__DDN, ACPI_NS_NO_UPSEARCH, &DdnNode); if (ACPI_FAILURE (Status)) { goto ErrorExit; } if ((DdnNode->Type != ACPI_TYPE_STRING) || !DdnNode->Object) { goto ErrorExit; } return (DdnNode->Object->String.Pointer); ErrorExit: return (NULL); } /******************************************************************************* * * FUNCTION: MpGetConnectionInfo * * PARAMETERS: Op - Parse Op to be examined * PinIndex - Index into GPIO PinList * TargetNode - Where the field node is returned * TargetName - Where the node path is returned * * RETURN: A substitute _HID string, indicating that the name is actually * a field. NULL if the Op does not refer to a Connection. * * DESCRIPTION: Get the Field Unit that corresponds to the PinIndex after * a Connection() invocation. * ******************************************************************************/ char * MpGetConnectionInfo ( ACPI_PARSE_OBJECT *Op, UINT32 PinIndex, ACPI_NAMESPACE_NODE **TargetNode, char **TargetName) { ACPI_PARSE_OBJECT *NextOp; UINT32 i; /* * Handle Connection() here. Find the next named FieldUnit. * Note: we look at the ParseOpcode for the compiler, look * at the AmlOpcode for the disassembler. */ if ((Op->Asl.AmlOpcode == AML_INT_CONNECTION_OP) || (Op->Asl.ParseOpcode == PARSEOP_CONNECTION)) { /* Find the correct field unit definition */ NextOp = Op; for (i = 0; i <= PinIndex;) { NextOp = NextOp->Asl.Next; while (NextOp && (NextOp->Asl.ParseOpcode != PARSEOP_NAMESEG) && (NextOp->Asl.AmlOpcode != AML_INT_NAMEDFIELD_OP)) { NextOp = NextOp->Asl.Next; } if (!NextOp) { return ("UNKNOWN"); } /* Add length of this field to the current pin index */ if (NextOp->Asl.ParseOpcode == PARSEOP_NAMESEG) { i += (UINT32) NextOp->Asl.Child->Asl.Value.Integer; } else /* AML_INT_NAMEDFIELD_OP */ { i += (UINT32) NextOp->Asl.Value.Integer; } } /* Return the node and pathname for the field unit */ *TargetNode = NextOp->Asl.Node; *TargetName = AcpiNsGetExternalPathname (*TargetNode); return ("-Field-"); } return (NULL); } acpica-unix-20250404/source/compiler/aslanalyze.c0000775000175000017500000004611614773714131021171 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslanalyze.c - Support functions for parse tree walks * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acnamesp.h" #include #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslanalyze") /* Local Prototypes */ static ACPI_STATUS ApDeviceSubtreeWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); /******************************************************************************* * * FUNCTION: AnIsInternalMethod * * PARAMETERS: Op - Current op * * RETURN: Boolean * * DESCRIPTION: Check for an internal control method. * ******************************************************************************/ BOOLEAN AnIsInternalMethod ( ACPI_PARSE_OBJECT *Op) { if ((!strcmp (Op->Asl.ExternalName, "\\_OSI")) || (!strcmp (Op->Asl.ExternalName, "_OSI"))) { return (TRUE); } return (FALSE); } /******************************************************************************* * * FUNCTION: AnGetInternalMethodReturnType * * PARAMETERS: Op - Current op * * RETURN: Btype * * DESCRIPTION: Get the return type of an internal method * ******************************************************************************/ UINT32 AnGetInternalMethodReturnType ( ACPI_PARSE_OBJECT *Op) { if ((!strcmp (Op->Asl.ExternalName, "\\_OSI")) || (!strcmp (Op->Asl.ExternalName, "_OSI"))) { return (ACPI_BTYPE_STRING); } return (0); } /******************************************************************************* * * FUNCTION: AnCheckId * * PARAMETERS: Op - Current parse op * Type - HID or CID * * RETURN: None * * DESCRIPTION: Perform various checks on _HID and _CID strings. Only limited * checks can be performed on _CID strings. * ******************************************************************************/ void AnCheckId ( ACPI_PARSE_OBJECT *Op, ACPI_NAME Type) { UINT32 i; ACPI_SIZE Length; /* Only care about string versions of _HID/_CID (integers are legal) */ if (Op->Asl.ParseOpcode != PARSEOP_STRING_LITERAL) { return; } /* For both _HID and _CID, the string must be non-null */ Length = strlen (Op->Asl.Value.String); if (!Length) { AslError (ASL_ERROR, ASL_MSG_NULL_STRING, Op, NULL); return; } /* * One of the things we want to catch here is the use of a leading * asterisk in the string -- an odd construct that certain platform * manufacturers are fond of. Technically, a leading asterisk is OK * for _CID, but a valid use of this has not been seen. */ if (*Op->Asl.Value.String == '*') { AslError (ASL_ERROR, ASL_MSG_LEADING_ASTERISK, Op, Op->Asl.Value.String); return; } /* _CID strings are bus-specific, no more checks can be performed */ if (Type == ASL_TYPE_CID) { return; } /* For _HID, all characters must be alphanumeric */ for (i = 0; Op->Asl.Value.String[i]; i++) { if (!isalnum ((int) Op->Asl.Value.String[i])) { AslError (ASL_ERROR, ASL_MSG_ALPHANUMERIC_STRING, Op, Op->Asl.Value.String); return; } } /* * _HID String must be one of these forms: * * "AAA####" A is an uppercase letter and # is a hex digit * "ACPI####" # is a hex digit * "NNNN####" N is an uppercase letter or decimal digit (0-9) * # is a hex digit (ACPI 5.0) */ if ((Length < 7) || (Length > 8)) { AslError (ASL_ERROR, ASL_MSG_HID_LENGTH, Op, Op->Asl.Value.String); return; } /* _HID Length is valid (7 or 8), now check prefix (first 3 or 4 chars) */ if (Length == 7) { /* AAA####: Ensure the alphabetic prefix is all uppercase */ for (i = 0; i < 3; i++) { if (!isupper ((int) Op->Asl.Value.String[i])) { AslError (ASL_ERROR, ASL_MSG_UPPER_CASE, Op, &Op->Asl.Value.String[i]); return; } } } else /* Length == 8 */ { /* * ACPI#### or NNNN####: * Ensure the prefix contains only uppercase alpha or decimal digits */ for (i = 0; i < 4; i++) { if (!isupper ((int) Op->Asl.Value.String[i]) && !isdigit ((int) Op->Asl.Value.String[i])) { AslError (ASL_ERROR, ASL_MSG_HID_PREFIX, Op, &Op->Asl.Value.String[i]); return; } } } /* Remaining characters (suffix) must be hex digits */ for (; i < Length; i++) { if (!isxdigit ((int) Op->Asl.Value.String[i])) { AslError (ASL_ERROR, ASL_MSG_HID_SUFFIX, Op, &Op->Asl.Value.String[i]); break; } } } /******************************************************************************* * * FUNCTION: AnLastStatementIsReturn * * PARAMETERS: Op - A method parse node * * RETURN: TRUE if last statement is an ASL RETURN. False otherwise * * DESCRIPTION: Walk down the list of top level statements within a method * to find the last one. Check if that last statement is in * fact a RETURN statement. * ******************************************************************************/ BOOLEAN AnLastStatementIsReturn ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; /* Check if last statement is a return */ Next = ASL_GET_CHILD_NODE (Op); while (Next) { if ((!Next->Asl.Next) && (Next->Asl.ParseOpcode == PARSEOP_RETURN)) { return (TRUE); } Next = ASL_GET_PEER_NODE (Next); } return (FALSE); } /******************************************************************************* * * FUNCTION: AnCheckMethodReturnValue * * PARAMETERS: Op - Parent * OpInfo - Parent info * ArgOp - Method invocation op * RequiredBtypes - What caller requires * ThisNodeBtype - What this node returns (if anything) * * RETURN: None * * DESCRIPTION: Check a method invocation for 1) A return value and if it does * in fact return a value, 2) check the type of the return value. * ******************************************************************************/ void AnCheckMethodReturnValue ( ACPI_PARSE_OBJECT *Op, const ACPI_OPCODE_INFO *OpInfo, ACPI_PARSE_OBJECT *ArgOp, UINT32 RequiredBtypes, UINT32 ThisNodeBtype) { ACPI_PARSE_OBJECT *OwningOp; ACPI_NAMESPACE_NODE *Node; char *ExternalPath; Node = ArgOp->Asl.Node; if (!Node) { /* No error message, this can happen and is OK */ return; } /* Examine the parent op of this method */ OwningOp = Node->Op; ExternalPath = AcpiNsGetNormalizedPathname (Node, TRUE); if (OwningOp->Asl.CompileFlags & OP_METHOD_NO_RETVAL) { /* Method NEVER returns a value */ AslError (ASL_ERROR, ASL_MSG_NO_RETVAL, Op, ExternalPath); } else if (OwningOp->Asl.CompileFlags & OP_METHOD_SOME_NO_RETVAL) { /* Method SOMETIMES returns a value, SOMETIMES not */ AslError (ASL_WARNING, ASL_MSG_SOME_NO_RETVAL, Op, ExternalPath); } else if (!(ThisNodeBtype & RequiredBtypes)) { /* Method returns a value, but the type is wrong */ AnFormatBtype (AslGbl_StringBuffer, ThisNodeBtype); AnFormatBtype (AslGbl_StringBuffer2, RequiredBtypes); /* * The case where the method does not return any value at all * was already handled in the namespace cross reference * -- Only issue an error if the method in fact returns a value, * but it is of the wrong type */ if (ThisNodeBtype != 0) { sprintf (AslGbl_MsgBuffer, "Method returns [%s], %s operator requires [%s]", AslGbl_StringBuffer, OpInfo->Name, AslGbl_StringBuffer2); AslError (ASL_WARNING, ASL_MSG_INVALID_TYPE, ArgOp, AslGbl_MsgBuffer); } } if (ExternalPath) { ACPI_FREE (ExternalPath); } } /******************************************************************************* * * FUNCTION: AnIsResultUsed * * PARAMETERS: Op - Parent op for the operator * * RETURN: TRUE if result from this operation is actually consumed * * DESCRIPTION: Determine if the function result value from an operator is * used. * ******************************************************************************/ BOOLEAN AnIsResultUsed ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Parent; switch (Op->Asl.ParseOpcode) { case PARSEOP_INCREMENT: case PARSEOP_DECREMENT: /* These are standalone operators, no return value */ return (TRUE); default: break; } /* Examine parent to determine if the return value is used */ Parent = Op->Asl.Parent; switch (Parent->Asl.ParseOpcode) { /* If/While - check if the operator is the predicate */ case PARSEOP_IF: case PARSEOP_WHILE: /* First child is the predicate */ if (Parent->Asl.Child == Op) { return (TRUE); } return (FALSE); /* Not used if one of these is the parent */ case PARSEOP_METHOD: case PARSEOP_DEFINITION_BLOCK: case PARSEOP_ELSE: return (FALSE); default: /* Any other type of parent means that the result is used */ return (TRUE); } } /******************************************************************************* * * FUNCTION: ApCheckForGpeNameConflict * * PARAMETERS: Op - Current parse op * * RETURN: None * * DESCRIPTION: Check for a conflict between GPE names within this scope. * Conflict means two GPE names with the same GPE number, but * different types -- such as _L1C and _E1C. * ******************************************************************************/ void ApCheckForGpeNameConflict ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *NextOp; UINT32 GpeNumber; char Name[ACPI_NAMESEG_SIZE + 1]; char Target[ACPI_NAMESEG_SIZE]; /* Need a null-terminated string version of NameSeg */ ACPI_MOVE_32_TO_32 (Name, Op->Asl.NameSeg); Name[ACPI_NAMESEG_SIZE] = 0; /* * For a GPE method: * 1st char must be underscore * 2nd char must be L or E * 3rd/4th chars must be a hex number */ if ((Name[0] != '_') || ((Name[1] != 'L') && (Name[1] != 'E'))) { return; } /* Verify 3rd/4th chars are a valid hex value */ GpeNumber = strtoul (&Name[2], NULL, 16); if (GpeNumber == ACPI_UINT32_MAX) { return; } /* * We are now sure we have an _Lxx or _Exx. * Create the target name that would cause collision (Flip E/L) */ ACPI_MOVE_32_TO_32 (Target, Name); /* Inject opposite letter ("L" versus "E") */ if (Name[1] == 'L') { Target[1] = 'E'; } else /* Name[1] == 'E' */ { Target[1] = 'L'; } /* Search all peers (objects within this scope) for target match */ NextOp = Op->Asl.Next; while (NextOp) { /* * We mostly care about methods, but check Name() constructs also, * even though they will get another error for not being a method. * All GPE names must be defined as control methods. */ if ((NextOp->Asl.ParseOpcode == PARSEOP_METHOD) || (NextOp->Asl.ParseOpcode == PARSEOP_NAME)) { if (ACPI_COMPARE_NAMESEG (Target, NextOp->Asl.NameSeg)) { /* Found both _Exy and _Lxy in the same scope, error */ AslError (ASL_ERROR, ASL_MSG_GPE_NAME_CONFLICT, NextOp, Name); return; } } NextOp = NextOp->Asl.Next; } /* OK, no conflict found */ return; } /******************************************************************************* * * FUNCTION: ApCheckRegMethod * * PARAMETERS: Op - Current parse op * * RETURN: None * * DESCRIPTION: Ensure that a _REG method has a corresponding Operation * Region declaration within the same scope. Note: _REG is defined * to have two arguments and must therefore be defined as a * control method. * ******************************************************************************/ void ApCheckRegMethod ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; ACPI_PARSE_OBJECT *Parent; /* We are only interested in _REG methods */ if (!ACPI_COMPARE_NAMESEG (METHOD_NAME__REG, &Op->Asl.NameSeg)) { return; } /* Get the start of the current scope */ Parent = Op->Asl.Parent; Next = Parent->Asl.Child; /* Search entire scope for an operation region declaration */ while (Next) { if (Next->Asl.ParseOpcode == PARSEOP_OPERATIONREGION) { return; /* Found region, OK */ } Next = Next->Asl.Next; } /* No region found, issue warning */ AslError (ASL_WARNING, ASL_MSG_NO_REGION, Op, NULL); } /******************************************************************************* * * FUNCTION: ApFindNameInDeviceTree * * PARAMETERS: Name - Name to search for * Op - Current parse op * * RETURN: TRUE if name found in the same scope as Op. * * DESCRIPTION: Determine if a name appears in the same scope as Op, as either * a Method() or a Name(). "Same scope" can mean under an If or * Else statement. * * NOTE: Detects _HID/_ADR in this type of construct (legal in ACPI 6.1+) * * Scope (\_SB.PCI0) * { * Device (I2C0) * { * If (SMD0 != 4) { * Name (_HID, "INT3442") * } Else { * Name (_ADR, 0x400) * } * } * } ******************************************************************************/ BOOLEAN ApFindNameInDeviceTree ( char *Name, ACPI_PARSE_OBJECT *Op) { ACPI_STATUS Status; Status = TrWalkParseTree (Op, ASL_WALK_VISIT_DOWNWARD, ApDeviceSubtreeWalk, NULL, Name); if (Status == AE_CTRL_TRUE) { return (TRUE); /* Found a match */ } return (FALSE); } /* Callback function for interface above */ static ACPI_STATUS ApDeviceSubtreeWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { char *Name = ACPI_CAST_PTR (char, Context); switch (Op->Asl.ParseOpcode) { case PARSEOP_DEVICE: /* Level 0 is the starting device, ignore it */ if (Level > 0) { /* Ignore sub-devices */ return (AE_CTRL_DEPTH); } break; case PARSEOP_NAME: case PARSEOP_METHOD: /* These are what we are looking for */ if (ACPI_COMPARE_NAMESEG (Name, Op->Asl.NameSeg)) { return (AE_CTRL_TRUE); } return (AE_CTRL_DEPTH); case PARSEOP_SCOPE: case PARSEOP_FIELD: case PARSEOP_OPERATIONREGION: /* * We want to ignore these, because either they can be large * subtrees or open a scope to somewhere else. */ return (AE_CTRL_DEPTH); default: break; } return (AE_OK); } /******************************************************************************* * * FUNCTION: ApFindNameInScope * * PARAMETERS: Name - Name to search for * Op - Current parse op * * RETURN: TRUE if name found in the same scope as Op. * * DESCRIPTION: Determine if a name appears in the same scope as Op, as either * a Method() or a Name(). * ******************************************************************************/ BOOLEAN ApFindNameInScope ( char *Name, ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; ACPI_PARSE_OBJECT *Parent; /* Get the start of the current scope */ Parent = Op->Asl.Parent; Next = Parent->Asl.Child; /* Search entire scope for a match to the name */ while (Next) { if ((Next->Asl.ParseOpcode == PARSEOP_METHOD) || (Next->Asl.ParseOpcode == PARSEOP_NAME)) { if (ACPI_COMPARE_NAMESEG (Name, Next->Asl.NameSeg)) { return (TRUE); } } Next = Next->Asl.Next; } return (FALSE); } acpica-unix-20250404/source/compiler/dttable1.c0000775000175000017500000027675514773714132020545 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dttable1.c - handling for specific ACPI tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* Compile all complex data tables, signatures starting with A-I */ #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dttable1") static ACPI_DMTABLE_INFO TableInfoAsfAddress[] = { {ACPI_DMT_BUFFER, 0, "Addresses", 0}, {ACPI_DMT_EXIT, 0, NULL, 0} }; static ACPI_DMTABLE_INFO TableInfoDmarPciPath[] = { {ACPI_DMT_PCI_PATH, 0, "PCI Path", 0}, {ACPI_DMT_EXIT, 0, NULL, 0} }; /****************************************************************************** * * FUNCTION: DtCompileAest * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile AEST. * * NOTE: Assumes the following table structure: * For all AEST Error Nodes: * 1) An AEST Error Node, followed immediately by: * 2) Any node-specific data * 3) An Interface Structure (one) * 4) A list (array) of Interrupt Structures, the count as specified * in the NodeInterruptCount field of the Error Node header. * * AEST - ARM Error Source table. Conforms to: * ACPI for the Armv8 RAS Extensions 1.1 Platform Design Document Sep 2020 * *****************************************************************************/ ACPI_STATUS DtCompileAest ( void **List) { ACPI_AEST_HEADER *ErrorNodeHeader; ACPI_AEST_PROCESSOR *AestProcessor; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_DMTABLE_INFO *InfoTable; ACPI_STATUS Status; UINT32 i; UINT32 Offset; DT_FIELD **PFieldList = (DT_FIELD **) List; ACPI_AEST_NODE_INTERFACE_HEADER *AestNodeHeader; UINT8 Revision; ACPI_TABLE_HEADER *Header; ParentTable = DtPeekSubtable (); Header = ACPI_CAST_PTR (ACPI_TABLE_HEADER, ParentTable->Buffer); Revision = Header->Revision; while (*PFieldList) { /* Compile the common error node header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoAestHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Everything past the error node header will be a subtable */ DtPushSubtable (Subtable); /* * Compile the node-specific structure (Based on the error * node header Type field) */ ErrorNodeHeader = ACPI_CAST_PTR (ACPI_AEST_HEADER, Subtable->Buffer); /* Point past the common error node header */ Offset = sizeof (ACPI_AEST_HEADER); ErrorNodeHeader->NodeSpecificOffset = Offset; /* Decode the error node type */ switch (ErrorNodeHeader->Type) { case ACPI_AEST_PROCESSOR_ERROR_NODE: InfoTable = AcpiDmTableInfoAestProcError; break; case ACPI_AEST_MEMORY_ERROR_NODE: InfoTable = AcpiDmTableInfoAestMemError; break; case ACPI_AEST_SMMU_ERROR_NODE: InfoTable = AcpiDmTableInfoAestSmmuError; break; case ACPI_AEST_VENDOR_ERROR_NODE: switch (Revision) { case 1: InfoTable = AcpiDmTableInfoAestVendorError; break; case 2: InfoTable = AcpiDmTableInfoAestVendorV2Error; break; default: AcpiOsPrintf ("Unknown AEST Vendor Error Revision: %X\n", Revision); return (AE_ERROR); } break; case ACPI_AEST_GIC_ERROR_NODE: InfoTable = AcpiDmTableInfoAestGicError; break; case ACPI_AEST_PCIE_ERROR_NODE: InfoTable = AcpiDmTableInfoAestPCIeError; break; case ACPI_AEST_PROXY_ERROR_NODE: InfoTable = AcpiDmTableInfoAestProxyError; break; /* Error case below */ default: AcpiOsPrintf ("Unknown AEST Subtable Type: %X\n", ErrorNodeHeader->Type); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } /* Point past the node-specific structure */ Offset += Subtable->Length; ErrorNodeHeader->NodeInterfaceOffset = Offset; ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Compile any additional node-specific substructures */ if (ErrorNodeHeader->Type == ACPI_AEST_PROCESSOR_ERROR_NODE) { /* * Special handling for PROCESSOR_ERROR_NODE subtables * (to handle the Resource Substructure via the ResourceType * field). */ AestProcessor = ACPI_CAST_PTR (ACPI_AEST_PROCESSOR, Subtable->Buffer); switch (AestProcessor->ResourceType) { case ACPI_AEST_CACHE_RESOURCE: InfoTable = AcpiDmTableInfoAestCacheRsrc; break; case ACPI_AEST_TLB_RESOURCE: InfoTable = AcpiDmTableInfoAestTlbRsrc; break; case ACPI_AEST_GENERIC_RESOURCE: InfoTable = AcpiDmTableInfoAestGenRsrc; AcpiOsPrintf ("Generic Resource Type (%X) is not supported at this time\n", AestProcessor->ResourceType); return (AE_ERROR); /* Error case below */ default: AcpiOsPrintf ("Unknown AEST Processor Resource Type: %X\n", AestProcessor->ResourceType); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } /* Point past the resource substructure subtable */ Offset += Subtable->Length; ErrorNodeHeader->NodeInterfaceOffset = Offset; ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); } /* Compile the (required) node interface structure */ if (Revision == 1) { InfoTable = AcpiDmTableInfoAestXface; } else if (Revision == 2) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoAestXfaceHeader, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Offset += Subtable->Length; AestNodeHeader = ACPI_CAST_PTR (ACPI_AEST_NODE_INTERFACE_HEADER, Subtable->Buffer); switch (AestNodeHeader->GroupFormat) { case ACPI_AEST_NODE_GROUP_FORMAT_4K: InfoTable = AcpiDmTableInfoAestXface4k; break; case ACPI_AEST_NODE_GROUP_FORMAT_16K: InfoTable = AcpiDmTableInfoAestXface16k; break; case ACPI_AEST_NODE_GROUP_FORMAT_64K: InfoTable = AcpiDmTableInfoAestXface64k; break; /* Error case below */ default: AcpiOsPrintf ("Unknown AEST Interface Group Format: %X\n", AestNodeHeader->GroupFormat); return (AE_ERROR); } } else { AcpiOsPrintf ("Unknown AEST Revision: %X\n", Revision); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ErrorNodeHeader->NodeInterruptOffset = 0; ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Compile each of the node interrupt structures */ if (ErrorNodeHeader->NodeInterruptCount) { /* Point to the first interrupt structure */ Offset += Subtable->Length; ErrorNodeHeader->NodeInterruptOffset = Offset; } /* Compile each of the interrupt structures */ for (i = 0; i < ErrorNodeHeader->NodeInterruptCount; i++) { switch (Revision) { case 1: InfoTable = AcpiDmTableInfoAestXrupt; break; case 2: InfoTable = AcpiDmTableInfoAestXruptV2; break; default: AcpiOsPrintf ("Unknown AEST Revision: %X\n", Revision); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); } /* Prepare for the next AEST Error node */ DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileApmt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile APMT. * *****************************************************************************/ ACPI_STATUS DtCompileApmt ( void **List) { ACPI_STATUS Status; ACPI_TABLE_HEADER *Header; ACPI_APMT_NODE *ApmtNode; ACPI_APMT_NODE *PeerApmtNode; DT_SUBTABLE *Subtable; DT_SUBTABLE *PeerSubtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD**)List; DT_FIELD *SubtableStart; UINT32 CurLength; char MsgBuffer[64] = ""; ParentTable = DtPeekSubtable(); Header = ACPI_CAST_PTR(ACPI_TABLE_HEADER, ParentTable->Buffer); CurLength = sizeof(ACPI_TABLE_HEADER); /* Walk the parse tree */ while (*PFieldList) { /* APMT Node Subtable */ SubtableStart = *PFieldList; Status = DtCompileTable(PFieldList, AcpiDmTableInfoApmtNode, &Subtable); if (ACPI_FAILURE(Status)) { return (Status); } ApmtNode = ACPI_CAST_PTR(ACPI_APMT_NODE, Subtable->Buffer); if (ApmtNode->Length != sizeof(ACPI_APMT_NODE)) { DtFatal(ASL_MSG_INVALID_LENGTH, SubtableStart, "APMT"); return (AE_ERROR); } if (ApmtNode->Type >= ACPI_APMT_NODE_TYPE_COUNT) { snprintf(MsgBuffer, 64, "Node Type : 0x%X", ApmtNode->Type); DtFatal(ASL_MSG_INVALID_TYPE, SubtableStart, MsgBuffer); return (AE_ERROR); } PeerSubtable = DtGetNextSubtable(ParentTable, NULL); /* Validate the node id needs to be unique. */ while(PeerSubtable) { PeerApmtNode = ACPI_CAST_PTR(ACPI_APMT_NODE, PeerSubtable->Buffer); if (PeerApmtNode->Id == ApmtNode->Id) { snprintf(MsgBuffer, 64, "Node Id : 0x%X existed", ApmtNode->Id); DtFatal(ASL_MSG_DUPLICATE_ITEM, SubtableStart, MsgBuffer); return (AE_ERROR); } PeerSubtable = DtGetNextSubtable(ParentTable, PeerSubtable); } CurLength += ApmtNode->Length; DtInsertSubtable(ParentTable, Subtable); } if (Header->Length != CurLength) { snprintf(MsgBuffer, 64, " - APMT Length : %u (expected: %u)", Header->Length, CurLength); DtFatal(ASL_MSG_INVALID_LENGTH, NULL, MsgBuffer); return (AE_ERROR); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileAsf * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile ASF!. * *****************************************************************************/ ACPI_STATUS DtCompileAsf ( void **List) { ACPI_ASF_INFO *AsfTable; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_DMTABLE_INFO *InfoTable; ACPI_DMTABLE_INFO *DataInfoTable = NULL; UINT32 DataCount = 0; ACPI_STATUS Status; UINT32 i; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoAsfHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); AsfTable = ACPI_CAST_PTR (ACPI_ASF_INFO, Subtable->Buffer); switch (AsfTable->Header.Type & 0x7F) /* Mask off top bit */ { case ACPI_ASF_TYPE_INFO: InfoTable = AcpiDmTableInfoAsf0; break; case ACPI_ASF_TYPE_ALERT: InfoTable = AcpiDmTableInfoAsf1; break; case ACPI_ASF_TYPE_CONTROL: InfoTable = AcpiDmTableInfoAsf2; break; case ACPI_ASF_TYPE_BOOT: InfoTable = AcpiDmTableInfoAsf3; break; case ACPI_ASF_TYPE_ADDRESS: InfoTable = AcpiDmTableInfoAsf4; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "ASF!"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); switch (AsfTable->Header.Type & 0x7F) /* Mask off top bit */ { case ACPI_ASF_TYPE_INFO: DataInfoTable = NULL; break; case ACPI_ASF_TYPE_ALERT: DataInfoTable = AcpiDmTableInfoAsf1a; DataCount = ACPI_CAST_PTR (ACPI_ASF_ALERT, ACPI_SUB_PTR (UINT8, Subtable->Buffer, sizeof (ACPI_ASF_HEADER)))->Alerts; break; case ACPI_ASF_TYPE_CONTROL: DataInfoTable = AcpiDmTableInfoAsf2a; DataCount = ACPI_CAST_PTR (ACPI_ASF_REMOTE, ACPI_SUB_PTR (UINT8, Subtable->Buffer, sizeof (ACPI_ASF_HEADER)))->Controls; break; case ACPI_ASF_TYPE_BOOT: DataInfoTable = NULL; break; case ACPI_ASF_TYPE_ADDRESS: DataInfoTable = TableInfoAsfAddress; DataCount = ACPI_CAST_PTR (ACPI_ASF_ADDRESS, ACPI_SUB_PTR (UINT8, Subtable->Buffer, sizeof (ACPI_ASF_HEADER)))->Devices; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "ASF!"); return (AE_ERROR); } if (DataInfoTable) { switch (AsfTable->Header.Type & 0x7F) { case ACPI_ASF_TYPE_ADDRESS: while (DataCount > 0) { Status = DtCompileTable (PFieldList, DataInfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); DataCount = DataCount - Subtable->Length; } break; default: for (i = 0; i < DataCount; i++) { Status = DtCompileTable (PFieldList, DataInfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); } break; } } DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileAspt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile ASPT. * *****************************************************************************/ ACPI_STATUS DtCompileAspt ( void **List) { ACPI_ASPT_HEADER *AsptTable; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_DMTABLE_INFO *InfoTable; ACPI_STATUS Status; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; Status = DtCompileTable (PFieldList, AcpiDmTableInfoAspt, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoAsptHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); AsptTable = ACPI_CAST_PTR (ACPI_ASPT_HEADER, Subtable->Buffer); switch (AsptTable->Type) /* Mask off top bit */ { case ACPI_ASPT_TYPE_GLOBAL_REGS: InfoTable = AcpiDmTableInfoAspt0; break; case ACPI_ASPT_TYPE_SEV_MBOX_REGS: InfoTable = AcpiDmTableInfoAspt1; break; case ACPI_ASPT_TYPE_ACPI_MBOX_REGS: InfoTable = AcpiDmTableInfoAspt2; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "ASPT"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileCdat * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile CDAT. * *****************************************************************************/ ACPI_STATUS DtCompileCdat ( void **List) { ACPI_STATUS Status = AE_OK; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; ACPI_CDAT_HEADER *CdatHeader; ACPI_DMTABLE_INFO *InfoTable = NULL; DT_FIELD *SubtableStart; /* Walk the parse tree. * * Note: Main table consists of only the CDAT table header * (This is not the standard ACPI table header, however)-- * Followed by some number of subtables. */ while (*PFieldList) { SubtableStart = *PFieldList; /* Compile the expected CDAT Subtable header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoCdatHeader, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); CdatHeader = ACPI_CAST_PTR (ACPI_CDAT_HEADER, Subtable->Buffer); /* Decode the subtable by type */ switch (CdatHeader->Type) { case ACPI_CDAT_TYPE_DSMAS: InfoTable = AcpiDmTableInfoCdat0; break; case ACPI_CDAT_TYPE_DSLBIS: InfoTable = AcpiDmTableInfoCdat1; break; case ACPI_CDAT_TYPE_DSMSCIS: InfoTable = AcpiDmTableInfoCdat2; break; case ACPI_CDAT_TYPE_DSIS: InfoTable = AcpiDmTableInfoCdat3; break; case ACPI_CDAT_TYPE_DSEMTS: InfoTable = AcpiDmTableInfoCdat4; break; case ACPI_CDAT_TYPE_SSLBIS: InfoTable = AcpiDmTableInfoCdat5; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "CDAT"); } /* Compile the CDAT subtable */ Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); switch (CdatHeader->Type) { /* Multiple entries supported for this type */ case ACPI_CDAT_TYPE_SSLBIS: /* * Check for multiple SSLBEs */ while (*PFieldList && !AcpiUtStricmp ((*PFieldList)->Name, "Port X ID")) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoCdatEntries, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); } break; default: break; } /* Pop off the CDAT Subtable header subtree */ DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileCedt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile CEDT. * *****************************************************************************/ ACPI_STATUS DtCompileCedt ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; ACPI_CEDT_HEADER *CedtHeader; DT_FIELD *SubtableStart; /* Walk the parse tree */ while (*PFieldList) { /* if CFMWS and has more than one target, then set to zero later */ int InsertFlag = 1; SubtableStart = *PFieldList; /* CEDT Header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoCedtHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); CedtHeader = ACPI_CAST_PTR (ACPI_CEDT_HEADER, Subtable->Buffer); switch (CedtHeader->Type) { case ACPI_CEDT_TYPE_CHBS: Status = DtCompileTable (PFieldList, AcpiDmTableInfoCedt0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_CEDT_TYPE_CFMWS: { unsigned char *dump; unsigned int idx, offset, max = 0; /* Compile table with first "Interleave target" */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoCedt1, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } /* Look in buffer for the number of targets */ offset = (unsigned int) ACPI_OFFSET (ACPI_CEDT_CFMWS, InterleaveWays); dump = (unsigned char *) Subtable->Buffer - 4; /* place at beginning of cedt1 */ max = 0x01 << dump[offset]; /* 2^max, so 0=1, 1=2, 2=4, 3=8. 8 is MAX */ if (max > 8) max=1; /* Error in encoding Interleaving Ways. */ if (max == 1) /* if only one target, then break here. */ break; /* break if only one target. */ /* We need to add more interleave targets, so write the current Subtable. */ ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Insert AcpiDmTableInfoCedt1 table so we can put in */ DtPushSubtable (Subtable); /* the targets > the first. */ /* Now, find out all interleave targets beyond the first. */ for (idx = 1; idx < max; idx++) { ParentTable = DtPeekSubtable (); if (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoCedt1_te, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (Subtable) { DtInsertSubtable (ParentTable, Subtable); /* got a target, so insert table. */ InsertFlag = 0; } } } DtPopSubtable (); ParentTable = DtPeekSubtable (); break; } case ACPI_CEDT_TYPE_CXIMS: { unsigned char *dump; unsigned int idx, offset, max = 0; /* Compile table with first "Xor map" */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoCedt2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } /* Look in buffer for the number of Xor maps */ offset = (unsigned int) ACPI_OFFSET (ACPI_CEDT_CXIMS, NrXormaps); dump = (unsigned char *) Subtable->Buffer - 4; /* place at beginning of cedt2 */ max = dump[offset]; /* We need to add more XOR maps, so write the current Subtable. */ ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Insert AcpiDmTableInfoCedt2 table so we can put in */ DtPushSubtable (Subtable); /* Now, find out all Xor maps beyond the first. */ for (idx = 1; idx < max; idx++) { ParentTable = DtPeekSubtable (); if (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoCedt2_te, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (Subtable) { DtInsertSubtable (ParentTable, Subtable); /* got an Xor map, so insert table. */ InsertFlag = 0; } } } DtPopSubtable (); ParentTable = DtPeekSubtable (); break; } default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "CEDT"); return (AE_ERROR); } ParentTable = DtPeekSubtable (); if (InsertFlag == 1) { DtInsertSubtable (ParentTable, Subtable); } DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileCpep * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile CPEP. * *****************************************************************************/ ACPI_STATUS DtCompileCpep ( void **List) { ACPI_STATUS Status; Status = DtCompileTwoSubtables (List, AcpiDmTableInfoCpep, AcpiDmTableInfoCpep0); return (Status); } /****************************************************************************** * * FUNCTION: DtCompileCsrt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile CSRT. * *****************************************************************************/ ACPI_STATUS DtCompileCsrt ( void **List) { ACPI_STATUS Status = AE_OK; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; UINT32 DescriptorCount; UINT32 GroupLength; /* Subtables (Resource Groups) */ ParentTable = DtPeekSubtable (); while (*PFieldList) { /* Resource group subtable */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoCsrt0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } /* Compute the number of resource descriptors */ GroupLength = (ACPI_CAST_PTR (ACPI_CSRT_GROUP, Subtable->Buffer))->Length - (ACPI_CAST_PTR (ACPI_CSRT_GROUP, Subtable->Buffer))->SharedInfoLength - sizeof (ACPI_CSRT_GROUP); DescriptorCount = (GroupLength / sizeof (ACPI_CSRT_DESCRIPTOR)); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); /* Shared info subtable (One per resource group) */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoCsrt1, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); /* Sub-Subtables (Resource Descriptors) */ while (*PFieldList && DescriptorCount) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoCsrt2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); if (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoCsrt2a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (Subtable) { DtInsertSubtable (ParentTable, Subtable); } } DtPopSubtable (); ParentTable = DtPeekSubtable (); DescriptorCount--; } DtPopSubtable (); ParentTable = DtPeekSubtable (); } return (Status); } /****************************************************************************** * * FUNCTION: DtCompileDbg2 * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile DBG2. * *****************************************************************************/ ACPI_STATUS DtCompileDbg2 ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; UINT32 SubtableCount; ACPI_DBG2_HEADER *Dbg2Header; ACPI_DBG2_DEVICE *DeviceInfo; UINT16 CurrentOffset; UINT32 i; /* Main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoDbg2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Main table fields */ Dbg2Header = ACPI_CAST_PTR (ACPI_DBG2_HEADER, Subtable->Buffer); Dbg2Header->InfoOffset = sizeof (ACPI_TABLE_HEADER) + ACPI_PTR_DIFF ( ACPI_ADD_PTR (UINT8, Dbg2Header, sizeof (ACPI_DBG2_HEADER)), Dbg2Header); SubtableCount = Dbg2Header->InfoCount; DtPushSubtable (Subtable); /* Process all Device Information subtables (Count = InfoCount) */ while (*PFieldList && SubtableCount) { /* Subtable: Debug Device Information */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoDbg2Device, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DeviceInfo = ACPI_CAST_PTR (ACPI_DBG2_DEVICE, Subtable->Buffer); CurrentOffset = (UINT16) sizeof (ACPI_DBG2_DEVICE); ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); /* BaseAddressRegister GAS array (Required, size is RegisterCount) */ DeviceInfo->BaseAddressOffset = CurrentOffset; for (i = 0; *PFieldList && (i < DeviceInfo->RegisterCount); i++) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoDbg2Addr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } CurrentOffset += (UINT16) sizeof (ACPI_GENERIC_ADDRESS); DtInsertSubtable (ParentTable, Subtable); } /* AddressSize array (Required, size = RegisterCount) */ DeviceInfo->AddressSizeOffset = CurrentOffset; for (i = 0; *PFieldList && (i < DeviceInfo->RegisterCount); i++) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoDbg2Size, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } CurrentOffset += (UINT16) sizeof (UINT32); DtInsertSubtable (ParentTable, Subtable); } /* NamespaceString device identifier (Required, size = NamePathLength) */ DeviceInfo->NamepathOffset = CurrentOffset; Status = DtCompileTable (PFieldList, AcpiDmTableInfoDbg2Name, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } /* Update the device info header */ DeviceInfo->NamepathLength = (UINT16) Subtable->Length; CurrentOffset += (UINT16) DeviceInfo->NamepathLength; DtInsertSubtable (ParentTable, Subtable); /* OemData - Variable-length data (Optional, size = OemDataLength) */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoDbg2OemData, &Subtable); if (Status == AE_END_OF_TABLE) { /* optional field was not found and we're at the end of the file */ goto subtableDone; } else if (ACPI_FAILURE (Status)) { return (Status); } /* Update the device info header (zeros if no OEM data present) */ DeviceInfo->OemDataOffset = 0; DeviceInfo->OemDataLength = 0; /* Optional subtable (OemData) */ if (Subtable && Subtable->Length) { DeviceInfo->OemDataOffset = CurrentOffset; DeviceInfo->OemDataLength = (UINT16) Subtable->Length; DtInsertSubtable (ParentTable, Subtable); } subtableDone: SubtableCount--; DtPopSubtable (); /* Get next Device Information subtable */ } DtPopSubtable (); return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileDmar * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile DMAR. * *****************************************************************************/ ACPI_STATUS DtCompileDmar ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_DMTABLE_INFO *InfoTable; ACPI_DMAR_HEADER *DmarHeader; ACPI_DMAR_DEVICE_SCOPE *DmarDeviceScope; UINT32 DeviceScopeLength; UINT32 PciPathLength; Status = DtCompileTable (PFieldList, AcpiDmTableInfoDmar, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); while (*PFieldList) { /* DMAR Header */ SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoDmarHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); DmarHeader = ACPI_CAST_PTR (ACPI_DMAR_HEADER, Subtable->Buffer); switch (DmarHeader->Type) { case ACPI_DMAR_TYPE_HARDWARE_UNIT: InfoTable = AcpiDmTableInfoDmar0; break; case ACPI_DMAR_TYPE_RESERVED_MEMORY: InfoTable = AcpiDmTableInfoDmar1; break; case ACPI_DMAR_TYPE_ROOT_ATS: InfoTable = AcpiDmTableInfoDmar2; break; case ACPI_DMAR_TYPE_HARDWARE_AFFINITY: InfoTable = AcpiDmTableInfoDmar3; break; case ACPI_DMAR_TYPE_NAMESPACE: InfoTable = AcpiDmTableInfoDmar4; break; case ACPI_DMAR_TYPE_SATC: InfoTable = AcpiDmTableInfoDmar5; break; case ACPI_DMAR_TYPE_SIDP: InfoTable = AcpiDmTableInfoDmar6; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "DMAR"); return (AE_ERROR); } /* DMAR Subtable */ Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* * Optional Device Scope subtables */ if ((DmarHeader->Type == ACPI_DMAR_TYPE_HARDWARE_AFFINITY) || (DmarHeader->Type == ACPI_DMAR_TYPE_NAMESPACE)) { /* These types do not support device scopes */ DtPopSubtable (); continue; } DtPushSubtable (Subtable); DeviceScopeLength = DmarHeader->Length - Subtable->Length - ParentTable->Length; while (DeviceScopeLength) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoDmarScope, &Subtable); if (Status == AE_NOT_FOUND) { break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); DmarDeviceScope = ACPI_CAST_PTR (ACPI_DMAR_DEVICE_SCOPE, Subtable->Buffer); /* Optional PCI Paths */ PciPathLength = DmarDeviceScope->Length - Subtable->Length; while (PciPathLength) { Status = DtCompileTable (PFieldList, TableInfoDmarPciPath, &Subtable); if (Status == AE_NOT_FOUND) { DtPopSubtable (); break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); PciPathLength -= Subtable->Length; } DtPopSubtable (); DeviceScopeLength -= DmarDeviceScope->Length; } DtPopSubtable (); DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileDrtm * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile DRTM. * *****************************************************************************/ ACPI_STATUS DtCompileDrtm ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; UINT32 Count; /* ACPI_TABLE_DRTM *Drtm; */ ACPI_DRTM_VTABLE_LIST *DrtmVtl; ACPI_DRTM_RESOURCE_LIST *DrtmRl; /* ACPI_DRTM_DPS_ID *DrtmDps; */ ParentTable = DtPeekSubtable (); /* Compile DRTM header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoDrtm, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); /* * Using ACPI_SUB_PTR, We needn't define a separate structure. Care * should be taken to avoid accessing ACPI_TABLE_HADER fields. */ #if 0 Drtm = ACPI_SUB_PTR (ACPI_TABLE_DRTM, Subtable->Buffer, sizeof (ACPI_TABLE_HEADER)); #endif /* Compile VTL */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoDrtm0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); DrtmVtl = ACPI_CAST_PTR (ACPI_DRTM_VTABLE_LIST, Subtable->Buffer); DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); Count = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoDrtm0a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); Count++; } DrtmVtl->ValidatedTableCount = Count; DtPopSubtable (); ParentTable = DtPeekSubtable (); /* Compile RL */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoDrtm1, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); DrtmRl = ACPI_CAST_PTR (ACPI_DRTM_RESOURCE_LIST, Subtable->Buffer); DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); Count = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoDrtm1a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); Count++; } DrtmRl->ResourceCount = Count; DtPopSubtable (); ParentTable = DtPeekSubtable (); /* Compile DPS */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoDrtm2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); /* DrtmDps = ACPI_CAST_PTR (ACPI_DRTM_DPS_ID, Subtable->Buffer);*/ return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileEinj * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile EINJ. * *****************************************************************************/ ACPI_STATUS DtCompileEinj ( void **List) { ACPI_STATUS Status; Status = DtCompileTwoSubtables (List, AcpiDmTableInfoEinj, AcpiDmTableInfoEinj0); return (Status); } /****************************************************************************** * * FUNCTION: DtCompileErdt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile ERST. Complex table with subtables and subsubtables. * *****************************************************************************/ ACPI_STATUS DtCompileErdt ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable, *RmddSubtable = NULL, *Subsubtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_SUBTBL_HDR_16 *ErdtHeader; ACPI_DMTABLE_INFO *InfoTable; ACPI_ERDT_MMRC *Mmrc; ACPI_ERDT_IBRD *Ibrd; UINT32 NumEntries; BOOLEAN SeenRmdd = FALSE; BOOLEAN SeenSubtable = FALSE; Status = DtCompileTable (PFieldList, AcpiDmTableInfoErdt, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoErdtHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ErdtHeader = ACPI_CAST_PTR (ACPI_SUBTBL_HDR_16, Subtable->Buffer); /* RMDD tables at top level. All others are subtables of preceeding RMDD */ if (ErdtHeader->Type == ACPI_ERDT_TYPE_RMDD) { if (SeenRmdd && SeenSubtable) DtPopSubtable (); SeenRmdd = TRUE; SeenSubtable = FALSE; RmddSubtable = Subtable; } else { if (!SeenSubtable) { DtPushSubtable (RmddSubtable); SeenSubtable = TRUE; } } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); switch (ErdtHeader->Type) { case ACPI_ERDT_TYPE_RMDD: InfoTable = AcpiDmTableInfoErdtRmdd; break; case ACPI_ERDT_TYPE_CACD: InfoTable = AcpiDmTableInfoErdtCacd; break; case ACPI_ERDT_TYPE_DACD: InfoTable = AcpiDmTableInfoErdtDacd; break; case ACPI_ERDT_TYPE_CMRC: InfoTable = AcpiDmTableInfoErdtCmrc; break; case ACPI_ERDT_TYPE_MMRC: InfoTable = AcpiDmTableInfoErdtMmrc; break; case ACPI_ERDT_TYPE_MARC: InfoTable = AcpiDmTableInfoErdtMarc; break; case ACPI_ERDT_TYPE_CARC: InfoTable = AcpiDmTableInfoErdtCarc; break; case ACPI_ERDT_TYPE_CMRD: InfoTable = AcpiDmTableInfoErdtCmrd; break; case ACPI_ERDT_TYPE_IBRD: InfoTable = AcpiDmTableInfoErdtIbrd; break; case ACPI_ERDT_TYPE_IBAD: InfoTable = AcpiDmTableInfoErdtIbad; break; case ACPI_ERDT_TYPE_CARD: InfoTable = AcpiDmTableInfoErdtCard; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "ERDT"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Some subtable types end with flex arrays */ switch (ErdtHeader->Type) { case ACPI_ERDT_TYPE_CACD: while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoErdtCacdX2apic, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); } break; case ACPI_ERDT_TYPE_DACD: while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoErdtDacdScope, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtPushSubtable (Subtable); while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoErdtDacdPath, &Subsubtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subsubtable) { break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subsubtable); } DtPopSubtable (); ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); } break; case ACPI_ERDT_TYPE_MMRC: Mmrc = ACPI_SUB_PTR (ACPI_ERDT_MMRC, Subtable->Buffer, sizeof(ACPI_SUBTBL_HDR_16)); NumEntries = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoErdtMmrcCorrFactor, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); NumEntries++; } Mmrc->CorrFactorListLen = NumEntries; break; case ACPI_ERDT_TYPE_IBRD: Ibrd = ACPI_SUB_PTR (ACPI_ERDT_IBRD, Subtable->Buffer, sizeof(ACPI_SUBTBL_HDR_16)); NumEntries = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoErdtIbrdCorrFactor, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); NumEntries++; } Ibrd->CorrFactorListLen = NumEntries; break; default: /* Already checked for valid subtable type above */ break; } DtPopSubtable (); } if (SeenSubtable) { DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileErst * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile ERST. * *****************************************************************************/ ACPI_STATUS DtCompileErst ( void **List) { ACPI_STATUS Status; Status = DtCompileTwoSubtables (List, AcpiDmTableInfoErst, AcpiDmTableInfoEinj0); return (Status); } /****************************************************************************** * * FUNCTION: DtCompileGtdt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile GTDT. * *****************************************************************************/ ACPI_STATUS DtCompileGtdt ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_SUBTABLE_HEADER *GtdtHeader; ACPI_DMTABLE_INFO *InfoTable; UINT32 GtCount; ACPI_TABLE_HEADER *Header; ParentTable = DtPeekSubtable (); Header = ACPI_CAST_PTR (ACPI_TABLE_HEADER, ParentTable->Buffer); /* Compile the main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoGtdt, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } /* GTDT revision 3 later contains 2 extra fields before subtables */ if (Header->Revision > 2) { ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Status = DtCompileTable (PFieldList, AcpiDmTableInfoGtdtEl2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoGtdtHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); GtdtHeader = ACPI_CAST_PTR (ACPI_SUBTABLE_HEADER, Subtable->Buffer); switch (GtdtHeader->Type) { case ACPI_GTDT_TYPE_TIMER_BLOCK: InfoTable = AcpiDmTableInfoGtdt0; break; case ACPI_GTDT_TYPE_WATCHDOG: InfoTable = AcpiDmTableInfoGtdt1; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "GTDT"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* * Additional GT block subtable data */ switch (GtdtHeader->Type) { case ACPI_GTDT_TYPE_TIMER_BLOCK: DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); GtCount = (ACPI_CAST_PTR (ACPI_GTDT_TIMER_BLOCK, Subtable->Buffer - sizeof(ACPI_GTDT_HEADER)))->TimerCount; while (GtCount) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoGtdt0a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); GtCount--; } DtPopSubtable (); break; default: break; } DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileFpdt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile FPDT. * *****************************************************************************/ ACPI_STATUS DtCompileFpdt ( void **List) { ACPI_STATUS Status; ACPI_FPDT_HEADER *FpdtHeader; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_DMTABLE_INFO *InfoTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoFpdtHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); FpdtHeader = ACPI_CAST_PTR (ACPI_FPDT_HEADER, Subtable->Buffer); switch (FpdtHeader->Type) { case ACPI_FPDT_TYPE_BOOT: InfoTable = AcpiDmTableInfoFpdt0; break; case ACPI_FPDT_TYPE_S3PERF: InfoTable = AcpiDmTableInfoFpdt1; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "FPDT"); return (AE_ERROR); break; } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileHest * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile HEST. * *****************************************************************************/ ACPI_STATUS DtCompileHest ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_DMTABLE_INFO *InfoTable; UINT16 Type; UINT32 BankCount; Status = DtCompileTable (PFieldList, AcpiDmTableInfoHest, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); while (*PFieldList) { /* Get subtable type */ SubtableStart = *PFieldList; DtCompileInteger ((UINT8 *) &Type, *PFieldList, 2, 0); switch (Type) { case ACPI_HEST_TYPE_IA32_CHECK: InfoTable = AcpiDmTableInfoHest0; break; case ACPI_HEST_TYPE_IA32_CORRECTED_CHECK: InfoTable = AcpiDmTableInfoHest1; break; case ACPI_HEST_TYPE_IA32_NMI: InfoTable = AcpiDmTableInfoHest2; break; case ACPI_HEST_TYPE_AER_ROOT_PORT: InfoTable = AcpiDmTableInfoHest6; break; case ACPI_HEST_TYPE_AER_ENDPOINT: InfoTable = AcpiDmTableInfoHest7; break; case ACPI_HEST_TYPE_AER_BRIDGE: InfoTable = AcpiDmTableInfoHest8; break; case ACPI_HEST_TYPE_GENERIC_ERROR: InfoTable = AcpiDmTableInfoHest9; break; case ACPI_HEST_TYPE_GENERIC_ERROR_V2: InfoTable = AcpiDmTableInfoHest10; break; case ACPI_HEST_TYPE_IA32_DEFERRED_CHECK: InfoTable = AcpiDmTableInfoHest11; break; default: /* Cannot continue on unknown type */ DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "HEST"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); /* * Additional subtable data - IA32 Error Bank(s) */ BankCount = 0; switch (Type) { case ACPI_HEST_TYPE_IA32_CHECK: BankCount = (ACPI_CAST_PTR (ACPI_HEST_IA_MACHINE_CHECK, Subtable->Buffer))->NumHardwareBanks; break; case ACPI_HEST_TYPE_IA32_CORRECTED_CHECK: BankCount = (ACPI_CAST_PTR (ACPI_HEST_IA_CORRECTED, Subtable->Buffer))->NumHardwareBanks; break; case ACPI_HEST_TYPE_IA32_DEFERRED_CHECK: BankCount = (ACPI_CAST_PTR (ACPI_HEST_IA_DEFERRED_CHECK, Subtable->Buffer))->NumHardwareBanks; break; default: break; } while (BankCount) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoHestBank, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); BankCount--; } } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileHmat * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile HMAT. * *****************************************************************************/ ACPI_STATUS DtCompileHmat ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; DT_FIELD *EntryStart; ACPI_HMAT_STRUCTURE *HmatStruct; ACPI_HMAT_LOCALITY *HmatLocality; ACPI_HMAT_CACHE *HmatCache; ACPI_DMTABLE_INFO *InfoTable; UINT32 IntPDNumber; UINT32 TgtPDNumber; UINT64 EntryNumber; UINT16 SMBIOSHandleNumber; ParentTable = DtPeekSubtable (); Status = DtCompileTable (PFieldList, AcpiDmTableInfoHmat, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); while (*PFieldList) { /* Compile HMAT structure header */ SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoHmatHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); HmatStruct = ACPI_CAST_PTR (ACPI_HMAT_STRUCTURE, Subtable->Buffer); HmatStruct->Length = Subtable->Length; /* Compile HMAT structure body */ switch (HmatStruct->Type) { case ACPI_HMAT_TYPE_ADDRESS_RANGE: InfoTable = AcpiDmTableInfoHmat0; break; case ACPI_HMAT_TYPE_LOCALITY: InfoTable = AcpiDmTableInfoHmat1; break; case ACPI_HMAT_TYPE_CACHE: InfoTable = AcpiDmTableInfoHmat2; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "HMAT"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); HmatStruct->Length += Subtable->Length; /* Compile HMAT structure additional */ switch (HmatStruct->Type) { case ACPI_HMAT_TYPE_LOCALITY: HmatLocality = ACPI_SUB_PTR (ACPI_HMAT_LOCALITY, Subtable->Buffer, sizeof (ACPI_HMAT_STRUCTURE)); /* Compile initiator proximity domain list */ IntPDNumber = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoHmat1a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); HmatStruct->Length += Subtable->Length; IntPDNumber++; } HmatLocality->NumberOfInitiatorPDs = IntPDNumber; /* Compile target proximity domain list */ TgtPDNumber = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoHmat1b, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); HmatStruct->Length += Subtable->Length; TgtPDNumber++; } HmatLocality->NumberOfTargetPDs = TgtPDNumber; /* Save start of the entries for reporting errors */ EntryStart = *PFieldList; /* Compile latency/bandwidth entries */ EntryNumber = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoHmat1c, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); HmatStruct->Length += Subtable->Length; EntryNumber++; } /* Validate number of entries */ if (EntryNumber != ((UINT64)IntPDNumber * (UINT64)TgtPDNumber)) { DtFatal (ASL_MSG_INVALID_EXPRESSION, EntryStart, "HMAT"); return (AE_ERROR); } break; case ACPI_HMAT_TYPE_CACHE: /* Compile SMBIOS handles */ HmatCache = ACPI_SUB_PTR (ACPI_HMAT_CACHE, Subtable->Buffer, sizeof (ACPI_HMAT_STRUCTURE)); SMBIOSHandleNumber = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoHmat2a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); HmatStruct->Length += Subtable->Length; SMBIOSHandleNumber++; } HmatCache->NumberOfSMBIOSHandles = SMBIOSHandleNumber; break; default: break; } } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileIort * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile IORT. * *****************************************************************************/ ACPI_STATUS DtCompileIort ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_TABLE_HEADER *Table; ACPI_TABLE_IORT *Iort; ACPI_IORT_NODE *IortNode; ACPI_IORT_ITS_GROUP *IortItsGroup; ACPI_IORT_SMMU *IortSmmu; ACPI_IORT_RMR *IortRmr; UINT32 NodeNumber; UINT32 NodeLength; UINT32 IdMappingNumber; UINT32 ItsNumber; UINT32 ContextIrptNumber; UINT32 PmuIrptNumber; UINT32 PaddingLength; UINT8 Revision; UINT32 RmrCount; ParentTable = DtPeekSubtable (); Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); Table = ACPI_CAST_PTR (ACPI_TABLE_HEADER, ParentTable->Buffer); Revision = Table->Revision; /* IORT Revisions E, E.a & E.c have known issues and are not supported */ if (Revision == 1 || Revision == 2 || Revision == 4) { DtError (ASL_ERROR, ASL_MSG_UNSUPPORTED, NULL, "IORT table revision"); return (AE_ERROR); } /* * Using ACPI_SUB_PTR, We needn't define a separate structure. Care * should be taken to avoid accessing ACPI_TABLE_HEADER fields. */ Iort = ACPI_SUB_PTR (ACPI_TABLE_IORT, Subtable->Buffer, sizeof (ACPI_TABLE_HEADER)); /* * OptionalPadding - Variable-length data * (Optional, size = OffsetToNodes - sizeof (ACPI_TABLE_IORT)) * Optionally allows the generic data types to be used for filling * this field. */ Iort->NodeOffset = sizeof (ACPI_TABLE_IORT); Status = DtCompileTable (PFieldList, AcpiDmTableInfoIortPad, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (Subtable) { DtInsertSubtable (ParentTable, Subtable); Iort->NodeOffset += Subtable->Length; } else { Status = DtCompileGeneric (ACPI_CAST_PTR (void *, PFieldList), AcpiDmTableInfoIortHdr[0].Name, &PaddingLength); if (ACPI_FAILURE (Status)) { return (Status); } Iort->NodeOffset += PaddingLength; } NodeNumber = 0; while (*PFieldList) { SubtableStart = *PFieldList; if (Revision == 0) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoIortHdr, &Subtable); } else if (Revision >= 3) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoIortHdr3, &Subtable); } if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); IortNode = ACPI_CAST_PTR (ACPI_IORT_NODE, Subtable->Buffer); NodeLength = ACPI_OFFSET (ACPI_IORT_NODE, NodeData); DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); switch (IortNode->Type) { case ACPI_IORT_NODE_ITS_GROUP: Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); IortItsGroup = ACPI_CAST_PTR (ACPI_IORT_ITS_GROUP, Subtable->Buffer); NodeLength += Subtable->Length; ItsNumber = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort0a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; ItsNumber++; } IortItsGroup->ItsCount = ItsNumber; break; case ACPI_IORT_NODE_NAMED_COMPONENT: Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort1, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; /* * Padding - Variable-length data * Optionally allows the offset of the ID mappings to be used * for filling this field. */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort1a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (Subtable) { DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; } else { if (NodeLength > IortNode->MappingOffset) { return (AE_BAD_DATA); } if (NodeLength < IortNode->MappingOffset) { Status = DtCompilePadding ( IortNode->MappingOffset - NodeLength, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); NodeLength = IortNode->MappingOffset; } } break; case ACPI_IORT_NODE_PCI_ROOT_COMPLEX: Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; break; case ACPI_IORT_NODE_SMMU: Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort3, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); IortSmmu = ACPI_CAST_PTR (ACPI_IORT_SMMU, Subtable->Buffer); NodeLength += Subtable->Length; /* Compile global interrupt array */ IortSmmu->GlobalInterruptOffset = NodeLength; Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort3a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; /* Compile context interrupt array */ ContextIrptNumber = 0; IortSmmu->ContextInterruptOffset = NodeLength; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort3b, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; ContextIrptNumber++; } IortSmmu->ContextInterruptCount = ContextIrptNumber; /* Compile PMU interrupt array */ PmuIrptNumber = 0; IortSmmu->PmuInterruptOffset = NodeLength; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort3c, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; PmuIrptNumber++; } IortSmmu->PmuInterruptCount = PmuIrptNumber; break; case ACPI_IORT_NODE_SMMU_V3: Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort4, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; break; case ACPI_IORT_NODE_PMCG: Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort5, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; break; case ACPI_IORT_NODE_RMR: Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort6, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); IortRmr = ACPI_CAST_PTR (ACPI_IORT_RMR, Subtable->Buffer); NodeLength += Subtable->Length; /* Compile RMR Descriptors */ RmrCount = 0; IortRmr->RmrOffset = NodeLength; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoIort6a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); NodeLength += sizeof (ACPI_IORT_RMR_DESC); RmrCount++; } IortRmr->RmrCount = RmrCount; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "IORT"); return (AE_ERROR); } /* Compile Array of ID mappings */ IortNode->MappingOffset = NodeLength; IdMappingNumber = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoIortMap, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); NodeLength += sizeof (ACPI_IORT_ID_MAPPING); IdMappingNumber++; } IortNode->MappingCount = IdMappingNumber; if (!IdMappingNumber) { IortNode->MappingOffset = 0; } /* * Node length can be determined by DT_LENGTH option * IortNode->Length = NodeLength; */ DtPopSubtable (); ParentTable = DtPeekSubtable (); NodeNumber++; } Iort->NodeCount = NodeNumber; return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileIvrs * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile IVRS. Notes: * The IVRS is essentially a flat table, with the following * structure: *
*
* * * ... * * * * ... * *****************************************************************************/ ACPI_STATUS DtCompileIvrs ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_SUBTABLE *MainSubtable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_DMTABLE_INFO *InfoTable = NULL; UINT8 SubtableType; UINT8 Temp64[16]; UINT8 Temp8; /* Main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoIvrs, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); /* Save a pointer to the main subtable */ MainSubtable = Subtable; while (*PFieldList) { SubtableStart = *PFieldList; /* Compile the SubtableType integer */ DtCompileInteger (&SubtableType, *PFieldList, 1, 0); switch (SubtableType) { /* Type 10h, IVHD (I/O Virtualization Hardware Definition) */ case ACPI_IVRS_TYPE_HARDWARE1: InfoTable = AcpiDmTableInfoIvrsHware1; break; /* Types 11h, 40h, IVHD (I/O Virtualization Hardware Definition) */ case ACPI_IVRS_TYPE_HARDWARE2: case ACPI_IVRS_TYPE_HARDWARE3: InfoTable = AcpiDmTableInfoIvrsHware23; break; /* Types 20h, 21h, 22h, IVMD (I/O Virtualization Memory Definition Block) */ case ACPI_IVRS_TYPE_MEMORY1: case ACPI_IVRS_TYPE_MEMORY2: case ACPI_IVRS_TYPE_MEMORY3: InfoTable = AcpiDmTableInfoIvrsMemory; break; /* 4-byte device entries */ case ACPI_IVRS_TYPE_PAD4: case ACPI_IVRS_TYPE_ALL: case ACPI_IVRS_TYPE_SELECT: case ACPI_IVRS_TYPE_START: case ACPI_IVRS_TYPE_END: InfoTable = AcpiDmTableInfoIvrs4; break; /* 8-byte device entries, type A */ case ACPI_IVRS_TYPE_ALIAS_SELECT: case ACPI_IVRS_TYPE_ALIAS_START: InfoTable = AcpiDmTableInfoIvrs8a; break; /* 8-byte device entries, type B */ case ACPI_IVRS_TYPE_EXT_SELECT: case ACPI_IVRS_TYPE_EXT_START: InfoTable = AcpiDmTableInfoIvrs8b; break; /* 8-byte device entries, type C */ case ACPI_IVRS_TYPE_SPECIAL: InfoTable = AcpiDmTableInfoIvrs8c; break; /* Variable device entries, type F0h */ case ACPI_IVRS_TYPE_HID: InfoTable = AcpiDmTableInfoIvrsHid; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "IVRS Device Entry"); return (AE_ERROR); } /* Compile the InfoTable from above */ Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); if (SubtableType != ACPI_IVRS_TYPE_HARDWARE1 && SubtableType != ACPI_IVRS_TYPE_HARDWARE2 && SubtableType != ACPI_IVRS_TYPE_HARDWARE3 && SubtableType != ACPI_IVRS_TYPE_HID && SubtableType != ACPI_IVRS_TYPE_MEMORY1 && SubtableType != ACPI_IVRS_TYPE_MEMORY2 && SubtableType != ACPI_IVRS_TYPE_MEMORY3) { if (ParentTable) DtInsertSubtable (ParentTable, Subtable); } switch (SubtableType) { case ACPI_IVRS_TYPE_HARDWARE1: case ACPI_IVRS_TYPE_HARDWARE2: case ACPI_IVRS_TYPE_HARDWARE3: case ACPI_IVRS_TYPE_MEMORY1: case ACPI_IVRS_TYPE_MEMORY2: case ACPI_IVRS_TYPE_MEMORY3: /* Insert these IVHDs/IVMDs at the root subtable */ DtInsertSubtable (MainSubtable, Subtable); DtPushSubtable (Subtable); break; case ACPI_IVRS_TYPE_HID: /* Special handling for the HID named device entry (0xF0) */ if (ParentTable) { DtInsertSubtable (ParentTable, Subtable); } /* * Process the HID value. First, get the HID value as a string. */ DtCompileOneField ((UINT8 *) &Temp64, *PFieldList, 16, DT_FIELD_TYPE_STRING, 0); /* * Determine if the HID is an integer or a string. * An integer is defined to be 32 bits, with the upper 32 bits * set to zero. (from the ACPI Spec): "The HID can be a 32-bit * integer or a character string. If an integer, the lower * 4 bytes of the field contain the integer and the upper * 4 bytes are padded with 0". */ if (UtIsIdInteger ((UINT8 *) &Temp64)) { /* Compile the HID value as an integer */ DtCompileOneField ((UINT8 *) &Temp64, *PFieldList, 8, DT_FIELD_TYPE_INTEGER, 0); Status = DtCompileTable (PFieldList, AcpiDmTableInfoIvrsHidInteger, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } } else { /* Compile the HID value as a string */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoIvrsHidString, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } } DtInsertSubtable (ParentTable, Subtable); /* * Process the CID value. First, get the CID value as a string. */ DtCompileOneField ((UINT8 *) &Temp64, *PFieldList, 16, DT_FIELD_TYPE_STRING, 0); if (UtIsIdInteger ((UINT8 *) &Temp64)) { /* Compile the CID value as an integer */ DtCompileOneField ((UINT8 *) &Temp64, *PFieldList, 8, DT_FIELD_TYPE_INTEGER, 0); Status = DtCompileTable (PFieldList, AcpiDmTableInfoIvrsCidInteger, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } } else { /* Compile the CID value as a string */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoIvrsCidString, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } } DtInsertSubtable (ParentTable, Subtable); /* * Process the UID value. First, get and decode the "UID Format" field (Integer). */ if (!*PFieldList) { return (AE_OK); } DtCompileOneField (&Temp8, *PFieldList, 1, DT_FIELD_TYPE_INTEGER, 0); switch (Temp8) { case ACPI_IVRS_UID_NOT_PRESENT: break; case ACPI_IVRS_UID_IS_INTEGER: Status = DtCompileTable (PFieldList, AcpiDmTableInfoIvrsUidInteger, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); break; case ACPI_IVRS_UID_IS_STRING: Status = DtCompileTable (PFieldList, AcpiDmTableInfoIvrsUidString, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); break; default: DtFatal (ASL_MSG_UNKNOWN_FORMAT, SubtableStart, "IVRS Device Entry"); return (AE_ERROR); } default: /* All other subtable types come through here */ break; } } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileRimt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile RIMT. * *****************************************************************************/ ACPI_STATUS DtCompileRimt ( void **List) { ACPI_RIMT_PLATFORM_DEVICE *PlatDevNode; ACPI_RIMT_PCIE_RC *PcieRcNode; ACPI_TABLE_RIMT *Rimt; ACPI_RIMT_IOMMU *IommuNode; ACPI_RIMT_NODE *RimtNode; ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; UINT32 NodeNumber; UINT32 NodeLength; UINT16 IdMappingNumber; UINT32 i; ParentTable = DtPeekSubtable (); Status = DtCompileTable (PFieldList, AcpiDmTableInfoRimt, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); /* * Using ACPI_SUB_PTR, We needn't define a separate structure. Care * should be taken to avoid accessing ACPI_TABLE_HEADER fields. */ Rimt = ACPI_SUB_PTR (ACPI_TABLE_RIMT, Subtable->Buffer, sizeof (ACPI_TABLE_HEADER)); NodeNumber = 0; while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoRimtNodeHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); RimtNode = ACPI_CAST_PTR (ACPI_RIMT_NODE, Subtable->Buffer); NodeLength = ACPI_OFFSET (ACPI_RIMT_NODE, NodeData); DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); switch (RimtNode->Type) { case ACPI_RIMT_NODE_TYPE_IOMMU: Status = DtCompileTable (PFieldList, AcpiDmTableInfoRimtIommu, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } IommuNode = ACPI_CAST_PTR (ACPI_RIMT_IOMMU, Subtable->Buffer); DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; for (i = 0; i < IommuNode->NumInterruptWires; i++) { while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoRimtIommuWire, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; } } break; case ACPI_RIMT_NODE_TYPE_PCIE_ROOT_COMPLEX: Status = DtCompileTable (PFieldList, AcpiDmTableInfoRimtPcieRc, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); PcieRcNode = ACPI_CAST_PTR (ACPI_RIMT_PCIE_RC, Subtable->Buffer); NodeLength += Subtable->Length; /* Compile Array of ID mappings */ PcieRcNode->IdMappingOffset = (UINT16) NodeLength; IdMappingNumber = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoRimtIdMapping, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); NodeLength += sizeof (ACPI_RIMT_ID_MAPPING); IdMappingNumber++; } PcieRcNode->NumIdMappings = IdMappingNumber; if (!IdMappingNumber) { PcieRcNode->IdMappingOffset = 0; } break; case ACPI_RIMT_NODE_TYPE_PLAT_DEVICE: Status = DtCompileTable (PFieldList, AcpiDmTableInfoRimtPlatDev, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); PlatDevNode = ACPI_CAST_PTR (ACPI_RIMT_PLATFORM_DEVICE, Subtable->Buffer); NodeLength += Subtable->Length; /* * Padding - Variable-length data * Optionally allows the offset of the ID mappings to be used * for filling this field. */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoRimtPlatDevPad, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (Subtable) { DtInsertSubtable (ParentTable, Subtable); NodeLength += Subtable->Length; } else { if (NodeLength > PlatDevNode->IdMappingOffset) { return (AE_BAD_DATA); } if (NodeLength < PlatDevNode->IdMappingOffset) { Status = DtCompilePadding ( PlatDevNode->IdMappingOffset - (UINT16) NodeLength, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); NodeLength = PlatDevNode->IdMappingOffset; } } /* Compile Array of ID mappings */ PlatDevNode->IdMappingOffset = (UINT16) NodeLength; IdMappingNumber = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoRimtIdMapping, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); NodeLength += sizeof (ACPI_RIMT_ID_MAPPING); IdMappingNumber++; } PlatDevNode->NumIdMappings = IdMappingNumber; if (!IdMappingNumber) { PlatDevNode->IdMappingOffset = 0; } break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "RIMT"); return (AE_ERROR); } DtPopSubtable (); ParentTable = DtPeekSubtable (); NodeNumber++; } Rimt->NumNodes = NodeNumber; return (AE_OK); } acpica-unix-20250404/source/compiler/cvdisasm.c0000775000175000017500000002765614773714131020647 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: cvcompiler - ASL-/ASL+ converter functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acparser.h" #include "amlcode.h" #include "acdebug.h" #include "acconvert.h" /* Local prototypes */ static void CvPrintInclude( ACPI_FILE_NODE *FNode, UINT32 Level); static BOOLEAN CvListIsSingleton ( ACPI_COMMENT_NODE *CommentList); /******************************************************************************* * * FUNCTION: CvPrintOneCommentList * * PARAMETERS: CommentList * Level * * RETURN: None * * DESCRIPTION: Prints all comments within the given list. * This is referred as ASL_CV_PRINT_ONE_COMMENT_LIST. * ******************************************************************************/ void CvPrintOneCommentList ( ACPI_COMMENT_NODE *CommentList, UINT32 Level) { ACPI_COMMENT_NODE *Current = CommentList; ACPI_COMMENT_NODE *Previous; while (Current) { Previous = Current; if (Current->Comment) { AcpiDmIndent(Level); AcpiOsPrintf("%s\n", Current->Comment); Current->Comment = NULL; } Current = Current->Next; AcpiOsReleaseObject(AcpiGbl_RegCommentCache, Previous); } } /******************************************************************************* * * FUNCTION: CvListIsSingleton * * PARAMETERS: CommentList - check to see if this is a single item list. * * RETURN: BOOLEAN * * DESCRIPTION: Returns TRUE if CommentList only contains 1 node. * ******************************************************************************/ static BOOLEAN CvListIsSingleton ( ACPI_COMMENT_NODE *CommentList) { if (!CommentList) { return (FALSE); } else if (CommentList->Next) { return (FALSE); } return (TRUE); } /******************************************************************************* * * FUNCTION: CvPrintOneCommentType * * PARAMETERS: Op * CommentType * EndStr - String to print after printing the comment * Level - indentation level for comment lists. * * RETURN: None * * DESCRIPTION: Prints all comments of CommentType within the given Op and * clears the printed comment from the Op. * This is referred as ASL_CV_PRINT_ONE_COMMENT. * ******************************************************************************/ void CvPrintOneCommentType ( ACPI_PARSE_OBJECT *Op, UINT8 CommentType, char* EndStr, UINT32 Level) { BOOLEAN CommentExists = FALSE; char **CommentToPrint = NULL; switch (CommentType) { case AML_COMMENT_STANDARD: if (CvListIsSingleton (Op->Common.CommentList)) { CvPrintOneCommentList (Op->Common.CommentList, Level); AcpiOsPrintf ("\n"); } else { CvPrintOneCommentList (Op->Common.CommentList, Level); } Op->Common.CommentList = NULL; return; case AML_COMMENT_ENDBLK: if (Op->Common.EndBlkComment) { CvPrintOneCommentList (Op->Common.EndBlkComment, Level); Op->Common.EndBlkComment = NULL; AcpiDmIndent(Level); } return; case AMLCOMMENT_INLINE: CommentToPrint = &Op->Common.InlineComment; break; case AML_COMMENT_END_NODE: CommentToPrint = &Op->Common.EndNodeComment; break; case AML_NAMECOMMENT: CommentToPrint = &Op->Common.NameComment; break; case AML_COMMENT_CLOSE_BRACE: CommentToPrint = &Op->Common.CloseBraceComment; break; default: return; } if (*CommentToPrint) { CommentExists = TRUE; AcpiOsPrintf ("%s", *CommentToPrint); *CommentToPrint = NULL; } if (CommentExists && EndStr) { AcpiOsPrintf ("%s", EndStr); } } /******************************************************************************* * * FUNCTION: CvCloseBraceWriteComment * * PARAMETERS: Op * Level * * RETURN: None * * DESCRIPTION: Print a close brace } and any open brace comments associated * with this parse object. * This is referred as ASL_CV_CLOSE_BRACE. * ******************************************************************************/ void CvCloseBraceWriteComment( ACPI_PARSE_OBJECT *Op, UINT32 Level) { if (!AcpiGbl_CaptureComments) { AcpiOsPrintf ("}"); return; } CvPrintOneCommentType (Op, AML_COMMENT_ENDBLK, NULL, Level); AcpiOsPrintf ("}"); CvPrintOneCommentType (Op, AML_COMMENT_CLOSE_BRACE, NULL, Level); } /******************************************************************************* * * FUNCTION: CvCloseParenWriteComment * * PARAMETERS: Op * Level * * RETURN: None * * DESCRIPTION: Print a closing paren ) and any end node comments associated * with this parse object. * This is referred as ASL_CV_CLOSE_PAREN. * ******************************************************************************/ void CvCloseParenWriteComment( ACPI_PARSE_OBJECT *Op, UINT32 Level) { if (!AcpiGbl_CaptureComments) { AcpiOsPrintf (")"); return; } /* * If this op has a BLOCK_BRACE, then output the comment when the * disassembler calls CvCloseBraceWriteComment */ if (AcpiDmBlockType (Op) == BLOCK_PAREN) { CvPrintOneCommentType (Op, AML_COMMENT_ENDBLK, NULL, Level); } AcpiOsPrintf (")"); if (Op->Common.EndNodeComment) { CvPrintOneCommentType (Op, AML_COMMENT_END_NODE, NULL, Level); } else if ((Op->Common.Parent->Common.AmlOpcode == AML_IF_OP) && Op->Common.Parent->Common.EndNodeComment) { CvPrintOneCommentType (Op->Common.Parent, AML_COMMENT_END_NODE, NULL, Level); } } /******************************************************************************* * * FUNCTION: CvFileHasSwitched * * PARAMETERS: Op * * RETURN: BOOLEAN * * DESCRIPTION: Determine whether if a file has switched. * TRUE - file has switched. * FALSE - file has not switched. * This is referred as ASL_CV_FILE_HAS_SWITCHED. * ******************************************************************************/ BOOLEAN CvFileHasSwitched( ACPI_PARSE_OBJECT *Op) { if (Op->Common.CvFilename && AcpiGbl_CurrentFilename && AcpiUtStricmp(Op->Common.CvFilename, AcpiGbl_CurrentFilename)) { return (TRUE); } return (FALSE); } /******************************************************************************* * * FUNCTION: CvPrintInclude * * PARAMETERS: FNode - Write an Include statement for the file that is pointed * by FNode->File. * Level - indentation level * * RETURN: None * * DESCRIPTION: Write the ASL Include statement for FNode->File in the file * indicated by FNode->Parent->File. Note this function emits * actual ASL code rather than comments. This switches the output * file to FNode->Parent->File. * ******************************************************************************/ static void CvPrintInclude( ACPI_FILE_NODE *FNode, UINT32 Level) { if (!FNode || FNode->IncludeWritten) { return; } CvDbgPrint ("Writing include for %s within %s\n", FNode->Filename, FNode->Parent->Filename); AcpiOsRedirectOutput (FNode->Parent->File); CvPrintOneCommentList (FNode->IncludeComment, Level); AcpiDmIndent (Level); AcpiOsPrintf ("Include (\"%s\")\n", FNode->Filename); CvDbgPrint ("emitted the following: Include (\"%s\")\n", FNode->Filename); FNode->IncludeWritten = TRUE; } /******************************************************************************* * * FUNCTION: CvSwitchFiles * * PARAMETERS: Level - indentation level * Op * * RETURN: None * * DESCRIPTION: Switch the outputfile and write ASL Include statement. Note, * this function emits actual ASL code rather than comments. * This is referred as ASL_CV_SWITCH_FILES. * ******************************************************************************/ void CvSwitchFiles( UINT32 Level, ACPI_PARSE_OBJECT *Op) { char *Filename = Op->Common.CvFilename; ACPI_FILE_NODE *FNode; ACPI_FILE_NODE *Current; CvDbgPrint ("Switching from %s to %s\n", AcpiGbl_CurrentFilename, Filename); FNode = CvFilenameExists (Filename, AcpiGbl_FileTreeRoot); if (!FNode) { /* * At this point, each Filename should exist in AcpiGbl_FileTreeRoot * if it does not exist, then abort. */ FlDeleteFile (ASL_FILE_AML_OUTPUT); sprintf (AslGbl_MsgBuffer, "\"Cannot find %s\" - %s", Filename, strerror (errno)); AslCommonError (ASL_ERROR, ASL_MSG_OPEN, 0, 0, 0, 0, NULL, AslGbl_MsgBuffer); AslAbort (); } Current = FNode; /* * If the previous file is a descendent of the current file, * make sure that Include statements from the current file * to the previous have been emitted. */ while (Current && Current->Parent && AcpiUtStricmp (Current->Filename, AcpiGbl_CurrentFilename)) { CvPrintInclude (Current, Level); Current = Current->Parent; } if (FNode) { /* Redirect output to Op->Common.CvFilename */ AcpiOsRedirectOutput (FNode->File); AcpiGbl_CurrentFilename = FNode->Filename; } } acpica-unix-20250404/source/compiler/asldebug.c0000775000175000017500000002512414773714131020610 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asldebug -- Debug output support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asldebug") /* Local prototypes */ static void UtDumpParseOpName ( ACPI_PARSE_OBJECT *Op, UINT32 Level, UINT32 DataLength); static char * UtCreateEscapeSequences ( char *InString); /******************************************************************************* * * FUNCTION: CvDbgPrint * * PARAMETERS: Type - Type of output * Fmt - Printf format string * ... - variable printf list * * RETURN: None * * DESCRIPTION: Print statement for debug messages within the converter. * ******************************************************************************/ void CvDbgPrint ( char *Fmt, ...) { va_list Args; if (!AcpiGbl_CaptureComments || !AcpiGbl_DebugAslConversion) { return; } va_start (Args, Fmt); (void) vfprintf (AcpiGbl_ConvDebugFile, Fmt, Args); va_end (Args); return; } /******************************************************************************* * * FUNCTION: UtDumpIntegerOp * * PARAMETERS: Op - Current parse op * Level - Current output indentation level * IntegerLength - Output length of the integer (2/4/8/16) * * RETURN: None * * DESCRIPTION: Emit formatted debug output for "integer" ops. * Note: IntegerLength must be one of 2,4,8,16. * ******************************************************************************/ void UtDumpIntegerOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, UINT32 IntegerLength) { /* Emit the ParseOp name, leaving room for the integer */ UtDumpParseOpName (Op, Level, IntegerLength); /* Emit the integer based upon length */ switch (IntegerLength) { case 2: /* Byte */ case 4: /* Word */ case 8: /* Dword */ DbgPrint (ASL_TREE_OUTPUT, "%*.*X", IntegerLength, IntegerLength, (UINT32) Op->Asl.Value.Integer); break; case 16: /* Qword and Integer */ DbgPrint (ASL_TREE_OUTPUT, "%8.8X%8.8X", ACPI_FORMAT_UINT64 (Op->Asl.Value.Integer)); break; default: break; } } /******************************************************************************* * * FUNCTION: UtDumpStringOp * * PARAMETERS: Op - Current parse op * Level - Current output indentation level * * RETURN: None * * DESCRIPTION: Emit formatted debug output for String/Pathname ops. * ******************************************************************************/ void UtDumpStringOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level) { char *String; String = Op->Asl.Value.String; if (Op->Asl.ParseOpcode != PARSEOP_STRING_LITERAL) { /* * For the "path" ops NAMEPATH, NAMESEG, METHODCALL -- if the * ExternalName is valid, it takes precedence. In these cases the * Value.String is the raw "internal" name from the AML code, which * we don't want to use, because it contains non-ascii characters. */ if (Op->Asl.ExternalName) { String = Op->Asl.ExternalName; } } if (!String) { DbgPrint (ASL_TREE_OUTPUT, " ERROR: Could not find a valid String/Path pointer\n"); return; } String = UtCreateEscapeSequences (String); /* Emit the ParseOp name, leaving room for the string */ UtDumpParseOpName (Op, Level, strlen (String)); DbgPrint (ASL_TREE_OUTPUT, "%s", String); } /******************************************************************************* * * FUNCTION: UtCreateEscapeSequences * * PARAMETERS: InString - ASCII string to be expanded * * RETURN: Expanded string * * DESCRIPTION: Expand all non-printable ASCII bytes (0-0x1F) to escape * sequences. For example, hex 14 becomes \x14 * * NOTE: Since this function is used for debug output only, it does * not attempt to translate into the "known" escape sequences * such as \a, \f, \t, etc. * ******************************************************************************/ static char * UtCreateEscapeSequences ( char *InString) { char *String = InString; char *OutString; char *OutStringPtr; UINT32 InStringLength = 0; UINT32 EscapeCount = 0; /* * Determine up front how many escapes are within the string. * Obtain the input string length while doing so. */ while (*String) { if ((*String <= 0x1F) || (*String >= 0x7F)) { EscapeCount++; } InStringLength++; String++; } if (!EscapeCount) { return (InString); /* No escapes, nothing to do */ } /* New string buffer, 3 extra chars per escape (4 total) */ OutString = UtLocalCacheCalloc (InStringLength + (EscapeCount * 3)); OutStringPtr = OutString; /* Convert non-ascii or non-printable chars to escape sequences */ while (*InString) { if ((*InString <= 0x1F) || (*InString >= 0x7F)) { /* Insert a \x hex escape sequence */ OutStringPtr[0] = '\\'; OutStringPtr[1] = 'x'; OutStringPtr[2] = AcpiUtHexToAsciiChar (*InString, 4); OutStringPtr[3] = AcpiUtHexToAsciiChar (*InString, 0); OutStringPtr += 4; } else /* Normal ASCII character */ { *OutStringPtr = *InString; OutStringPtr++; } InString++; } return (OutString); } /******************************************************************************* * * FUNCTION: UtDumpBasicOp * * PARAMETERS: Op - Current parse op * Level - Current output indentation level * * RETURN: None * * DESCRIPTION: Generic formatted debug output for "basic" ops that have no * associated strings or integer values. * ******************************************************************************/ void UtDumpBasicOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level) { /* Just print out the ParseOp name, there is no extra data */ UtDumpParseOpName (Op, Level, 0); } /******************************************************************************* * * FUNCTION: UtDumpParseOpName * * PARAMETERS: Op - Current parse op * Level - Current output indentation level * DataLength - Length of data to appear after the name * * RETURN: None * * DESCRIPTION: Indent and emit the ascii ParseOp name for the op * ******************************************************************************/ static void UtDumpParseOpName ( ACPI_PARSE_OBJECT *Op, UINT32 Level, UINT32 DataLength) { char *ParseOpName; UINT32 IndentLength; UINT32 NameLength; UINT32 LineLength; UINT32 PaddingLength; /* Emit the LineNumber/IndentLevel prefix on each output line */ DbgPrint (ASL_TREE_OUTPUT, "%5.5d [%2d]", Op->Asl.LogicalLineNumber, Level); ParseOpName = UtGetOpName (Op->Asl.ParseOpcode); /* Calculate various lengths for output alignment */ IndentLength = Level * DEBUG_SPACES_PER_INDENT; NameLength = strlen (ParseOpName); LineLength = IndentLength + 1 + NameLength + 1 + DataLength; PaddingLength = (DEBUG_MAX_LINE_LENGTH + 1) - LineLength; /* Parse tree indentation is based upon the nesting/indent level */ if (Level) { DbgPrint (ASL_TREE_OUTPUT, "%*s", IndentLength, " "); } /* Emit the actual name here */ DbgPrint (ASL_TREE_OUTPUT, " %s", ParseOpName); /* Emit extra padding blanks for alignment of later data items */ if (LineLength > DEBUG_MAX_LINE_LENGTH) { /* Split a long line immediately after the ParseOpName string */ DbgPrint (ASL_TREE_OUTPUT, "\n%*s", (DEBUG_FULL_LINE_LENGTH - DataLength), " "); } else { DbgPrint (ASL_TREE_OUTPUT, "%*s", PaddingLength, " "); } } acpica-unix-20250404/source/compiler/aslmessages.c0000775000175000017500000006671514773714131021344 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslmessages.c - Compiler error/warning message strings * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslmessages") /* * Strings for message reporting levels, must match error * type string tables in aslmessages.c */ const char *AslErrorLevel [ASL_NUM_REPORT_LEVELS] = { "Optimize", "Remark ", "Warning ", "Warning ", "Warning ", "Error " }; /* All lowercase versions for IDEs */ const char *AslErrorLevelIde [ASL_NUM_REPORT_LEVELS] = { "optimize", "remark ", "warning ", "warning ", "warning ", "error " }; /* * Actual message strings for each compiler message ID. There are currently * three distinct blocks of error messages (so that they can be expanded * individually): * Main ASL compiler * Data Table compiler * Preprocessor * * NOTE1: These tables must match the enum list of message IDs in the file * aslmessages.h exactly. * * NOTE2: With the introduction of the -vw option to disable specific messages, * new messages should only be added to the end of this list, so that values * for existing messages are not disturbed. As important, obsolete messages * cannot be removed from this list, as it will affect the -vw option. */ /* ASL compiler */ const char *AslCompilerMsgs [] = { /* The zeroth message is reserved */ "", /* ASL_MSG_ALIGNMENT */ "Must be a multiple of alignment/granularity value", /* ASL_MSG_ALPHANUMERIC_STRING */ "String must be entirely alphanumeric", /* ASL_MSG_AML_NOT_IMPLEMENTED */ "Opcode is not implemented in compiler AML code generator", /* ASL_MSG_ARG_COUNT_HI */ "Too many arguments", /* ASL_MSG_ARG_COUNT_LO */ "Too few arguments", /* ASL_MSG_ARG_INIT */ "Method argument is not initialized", /* ASL_MSG_BACKWARDS_OFFSET */ "Invalid backwards offset", /* ASL_MSG_BUFFER_LENGTH */ "Effective AML buffer length is zero", /* ASL_MSG_CLOSE */ "Could not close file", /* ASL_MSG_COMPILER_INTERNAL */ "Internal compiler error", /* ASL_MSG_COMPILER_RESERVED */ "Use of compiler reserved name", /* ASL_MSG_CONNECTION_MISSING */ "A Connection operator is required for this field SpaceId", /* ASL_MSG_CONNECTION_INVALID */ "Invalid OpRegion SpaceId for use of Connection operator", /* ASL_MSG_CONSTANT_EVALUATION */ "Could not evaluate constant expression", /* ASL_MSG_CONSTANT_FOLDED */ "Constant expression evaluated and reduced", /* ASL_MSG_CORE_EXCEPTION */ "From ACPICA Subsystem", /* ASL_MSG_DEBUG_FILE_OPEN */ "Could not open debug file", /* ASL_MSG_DEBUG_FILENAME */ "Could not create debug filename", /* ASL_MSG_DEPENDENT_NESTING */ "Dependent function macros cannot be nested", /* ASL_MSG_DMA_CHANNEL */ "Invalid DMA channel (must be 0-7)", /* ASL_MSG_DMA_LIST */ "Too many DMA channels (8 max)", /* ASL_MSG_DUPLICATE_CASE */ "Case value already specified", /* ASL_MSG_DUPLICATE_ITEM */ "Duplicate value in list", /* ASL_MSG_EARLY_EOF */ "Premature end-of-file reached", /* ASL_MSG_ENCODING_LENGTH */ "Package length too long to encode", /* ASL_MSG_EX_INTERRUPT_LIST */ "Too many interrupts (255 max)", /* ASL_MSG_EX_INTERRUPT_LIST_MIN */ "Too few interrupts (1 minimum required)", /* ASL_MSG_EX_INTERRUPT_NUMBER */ "Invalid interrupt number (must be 32 bits)", /* ASL_MSG_FIELD_ACCESS_WIDTH */ "Access width is greater than region size", /* ASL_MSG_FIELD_UNIT_ACCESS_WIDTH */ "Access width of Field Unit extends beyond region limit", /* ASL_MSG_FIELD_UNIT_OFFSET */ "Field Unit extends beyond region limit", /* ASL_MSG_GPE_NAME_CONFLICT */ "Name conflicts with a previous GPE method", /* ASL_MSG_HID_LENGTH */ "_HID string must be exactly 7 or 8 characters", /* ASL_MSG_HID_PREFIX */ "_HID prefix must be all uppercase or decimal digits", /* ASL_MSG_HID_SUFFIX */ "_HID suffix must be all hex digits", /* ASL_MSG_INCLUDE_FILE_OPEN */ "Could not open include file", /* ASL_MSG_INPUT_FILE_OPEN */ "Could not open input file", /* ASL_MSG_INTEGER_LENGTH */ "Truncating 64-bit constant found in 32-bit table", /* ASL_MSG_INTEGER_OPTIMIZATION */ "Integer optimized to single-byte AML opcode", /* ASL_MSG_INTERRUPT_LIST */ "Too many interrupts (16 max)", /* ASL_MSG_INTERRUPT_NUMBER */ "Invalid interrupt number (must be 0-15)", /* ASL_MSG_INVALID_ACCESS_SIZE */ "Invalid AccessSize (Maximum is 4 - QWord access)", /* ASL_MSG_INVALID_ADDR_FLAGS */ "Invalid combination of Length and Min/Max fixed flags", /* ASL_MSG_INVALID_CONSTANT_OP */ "Invalid operator in constant expression (not type 3/4/5)", /* ASL_MSG_INVALID_EISAID */ "EISAID string must be of the form \"UUUXXXX\" (3 uppercase, 4 hex digits)", /* ASL_MSG_INVALID_ESCAPE */ "Invalid or unknown escape sequence", /* ASL_MSG_INVALID_GRAN_FIXED */ "Granularity must be zero for fixed Min/Max", /* ASL_MSG_INVALID_GRANULARITY */ "Granularity must be zero or a power of two minus one", /* ASL_MSG_INVALID_LENGTH */ "Length is larger than Min/Max window", /* ASL_MSG_INVALID_LENGTH_FIXED */ "Length is not equal to fixed Min/Max window", /* ASL_MSG_INVALID_MIN_MAX */ "Address Min is greater than Address Max", /* ASL_MSG_INVALID_OPERAND */ "Invalid operand", /* ASL_MSG_INVALID_PERFORMANCE */ "Invalid performance/robustness value", /* ASL_MSG_INVALID_PRIORITY */ "Invalid priority value", /* ASL_MSG_INVALID_STRING */ "Invalid Hex/Octal Escape - Non-ASCII or NULL", /* ASL_MSG_INVALID_TARGET */ "Target operand not allowed in constant expression", /* ASL_MSG_INVALID_TIME */ "Time parameter too long (255 max)", /* ASL_MSG_INVALID_TYPE */ "Invalid type", /* ASL_MSG_INVALID_UUID */ "UUID string must be of the form \"aabbccdd-eeff-gghh-iijj-kkllmmnnoopp\"", /* ASL_MSG_ISA_ADDRESS */ "Maximum 10-bit ISA address (0x3FF)", /* ASL_MSG_LEADING_ASTERISK */ "Invalid leading asterisk", /* ASL_MSG_LIST_LENGTH_LONG */ "Initializer list longer than declared package length", /* ASL_MSG_LIST_LENGTH_SHORT */ "Initializer list shorter than declared package length", /* ASL_MSG_LISTING_FILE_OPEN */ "Could not open listing file", /* ASL_MSG_LISTING_FILENAME */ "Could not create listing filename", /* ASL_MSG_LOCAL_INIT */ "Method local variable is not initialized", /* ASL_MSG_LOCAL_OUTSIDE_METHOD */ "Local or Arg used outside a control method", /* ASL_MSG_LONG_LINE */ "Splitting long input line", /* ASL_MSG_MEMORY_ALLOCATION */ "Memory allocation failure", /* ASL_MSG_MISSING_ENDDEPENDENT */ "Missing EndDependentFn() macro in dependent resource list", /* ASL_MSG_MISSING_STARTDEPENDENT */ "Missing StartDependentFn() macro in dependent resource list", /* ASL_MSG_MULTIPLE_DEFAULT */ "More than one Default statement within Switch construct", /* ASL_MSG_MULTIPLE_TYPES */ "Multiple types", /* ASL_MSG_NAME_EXISTS */ "Name already exists in scope", /* ASL_MSG_NAME_OPTIMIZATION */ "NamePath optimized", /* ASL_MSG_NAMED_OBJECT_IN_WHILE */ "Creating a named object in a While loop", /* ASL_MSG_NESTED_COMMENT */ "Nested comment found", /* ASL_MSG_NO_CASES */ "No Case statements under Switch", /* ASL_MSG_NO_REGION */ "_REG has no corresponding Operation Region", /* ASL_MSG_NO_RETVAL */ "Called method returns no value", /* ASL_MSG_NO_WHILE */ "No enclosing While statement", /* ASL_MSG_NON_ASCII */ "Invalid characters found in file", /* ASL_MSG_BUFFER_FIELD_LENGTH */ "Field length must be non-zero", /* ASL_MSG_NOT_EXIST */ "Object does not exist", /* ASL_MSG_NOT_FOUND */ "Object not found or not accessible from current scope", /* ASL_MSG_NOT_METHOD */ "Not a control method, cannot invoke", /* ASL_MSG_NOT_PARAMETER */ "Not a parameter, used as local only", /* ASL_MSG_NOT_REACHABLE */ "Object is not accessible from this scope", /* ASL_MSG_NOT_REFERENCED */ "Object is not referenced", /* ASL_MSG_NULL_DESCRIPTOR */ "Min/Max/Length/Gran are all zero, but no resource tag", /* ASL_MSG_NULL_STRING */ "Invalid zero-length (null) string", /* ASL_MSG_OPEN */ "Could not open file", /* ASL_MSG_OUTPUT_FILE_OPEN */ "Could not open output AML file", /* ASL_MSG_OUTPUT_FILENAME */ "Could not create output filename", /* ASL_MSG_PACKAGE_LENGTH */ "Effective AML package length is zero", /* ASL_MSG_PREPROCESSOR_FILENAME */ "Could not create preprocessor filename", /* ASL_MSG_READ */ "Could not read file", /* ASL_MSG_RECURSION */ "Recursive method call", /* ASL_MSG_REGION_BUFFER_ACCESS */ "Host Operation Region requires BufferAcc access", /* ASL_MSG_REGION_BYTE_ACCESS */ "Host Operation Region requires ByteAcc access", /* ASL_MSG_RESERVED_ARG_COUNT_HI */ "Reserved method has too many arguments", /* ASL_MSG_RESERVED_ARG_COUNT_LO */ "Reserved method has too few arguments", /* ASL_MSG_RESERVED_METHOD */ "Reserved name must be a control method", /* ASL_MSG_RESERVED_NO_RETURN_VAL */ "Reserved method should not return a value", /* ASL_MSG_RESERVED_OPERAND_TYPE */ "Invalid object type for reserved name", /* ASL_MSG_RESERVED_PACKAGE_LENGTH */ "Invalid package length for reserved name", /* ASL_MSG_RESERVED_RETURN_VALUE */ "Reserved method must return a value", /* ASL_MSG_RESERVED_USE */ "Invalid use of reserved name", /* ASL_MSG_RESERVED_WORD */ "Use of reserved name", /* ASL_MSG_RESOURCE_FIELD */ "Resource field name cannot be used as a target", /* ASL_MSG_RESOURCE_INDEX */ "Missing ResourceSourceIndex (required)", /* ASL_MSG_RESOURCE_LIST */ "Too many resource items (internal error)", /* ASL_MSG_RESOURCE_SOURCE */ "Missing ResourceSource string (required)", /* ASL_MSG_RESULT_NOT_USED */ "Result is not used, operator has no effect", /* ASL_MSG_RETURN_TYPES */ "Not all control paths return a value", /* ASL_MSG_SCOPE_FWD_REF */ "Forward references from Scope operator not allowed", /* ASL_MSG_SCOPE_TYPE */ "Existing object has invalid type for Scope operator", /* ASL_MSG_SEEK */ "Could not seek file", /* ASL_MSG_SERIALIZED */ "Control Method marked Serialized", /* ASL_MSG_SERIALIZED_REQUIRED */ "Control Method should be made Serialized due to creation of named objects within", /* ASL_MSG_SINGLE_NAME_OPTIMIZATION */ "NamePath optimized to NameSeg (uses run-time search path)", /* ASL_MSG_SOME_NO_RETVAL */ "Called method may not always return a value", /* ASL_MSG_STRING_LENGTH */ "String literal too long", /* ASL_MSG_SWITCH_TYPE */ "Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer", /* ASL_MSG_SYNC_LEVEL */ "SyncLevel must be in the range 0-15", /* ASL_MSG_SYNTAX */ "", /* ASL_MSG_TABLE_SIGNATURE */ "Invalid Table Signature", /* ASL_MSG_TAG_LARGER */ "ResourceTag larger than Field", /* ASL_MSG_TAG_SMALLER */ "ResourceTag smaller than Field", /* ASL_MSG_TIMEOUT */ "Result is not used, possible operator timeout will be missed", /* ASL_MSG_TOO_MANY_TEMPS */ "Method requires too many temporary variables (_T_x)", /* ASL_MSG_TRUNCATION */ "64-bit return value will be truncated to 32 bits (DSDT or SSDT version < 2)", /* ASL_MSG_UNKNOWN_RESERVED_NAME */ "Unknown reserved name", /* ASL_MSG_UNREACHABLE_CODE */ "Statement is unreachable", /* ASL_MSG_UNSUPPORTED */ "Unsupported feature", /* ASL_MSG_UPPER_CASE */ "Non-hex letters must be upper case", /* ASL_MSG_VENDOR_LIST */ "Too many vendor data bytes (7 max)", /* ASL_MSG_WRITE */ "Could not write file", /* ASL_MSG_RANGE */ "Constant out of range", /* ASL_MSG_BUFFER_ALLOCATION */ "Could not allocate line buffer", /* ASL_MSG_MISSING_DEPENDENCY */ "Missing dependency", /* ASL_MSG_ILLEGAL_FORWARD_REF */ "Illegal forward reference", /* ASL_MSG_ILLEGAL_METHOD_REF */ "Object is declared in a different method", /* ASL_MSG_LOCAL_NOT_USED */ "Method Local is set but never used", /* ASL_MSG_ARG_AS_LOCAL_NOT_USED */ "Method Argument (as a local) is set but never used", /* ASL_MSG_ARG_NOT_USED */ "Method Argument is never used", /* ASL_MSG_CONSTANT_REQUIRED */ "Non-reducible expression", /* ASL_MSG_CROSS_TABLE_SCOPE */ "Illegal open scope on external object from within DSDT", /* ASL_MSG_EXCEPTION_NOT_RECEIVED */ "Expected remark, warning, or error did not occur. Message ID:", /* ASL_MSG_NULL_RESOURCE_TEMPLATE */ "Empty Resource Template (END_TAG only)", /* ASL_MSG_FOUND_HERE */ "Original name creation/declaration below: ", /* ASL_MSG_ILLEGAL_RECURSION */ "Illegal recursive call to method that creates named objects", /* ASL_MSG_DUPLICATE_INPUT_FILE */ "Duplicate input files detected:", /* ASL_MSG_WARNING_AS_ERROR */ "Warnings detected during compilation", /* ASL_MSG_OEM_TABLE_ID */ "Invalid OEM Table ID", /* ASL_MSG_OEM_ID */ "Invalid OEM ID", /* ASL_MSG_UNLOAD */ "Unload is not supported by all operating systems", /* ASL_MSG_OFFSET */ "Unnecessary/redundant use of Offset operator", /* ASL_MSG_LONG_SLEEP */ "Very long Sleep, greater than 1 second", /* ASL_MSG_PREFIX_NOT_EXIST */ "One or more prefix Scopes do not exist", /* ASL_MSG_NAMEPATH_NOT_EXIST */ "One or more objects within the Pathname do not exist", /* ASL_MSG_REGION_LENGTH */ "Operation Region declared with zero length", /* ASL_MSG_TEMPORARY_OBJECT */ "Object is created temporarily in another method and cannot be accessed", /* ASL_MSG_UNDEFINED_EXTERNAL */ "Named object was declared external but the actual definition does not exist", /* ASL_MSG_BUFFER_FIELD_OVERFLOW */ "Buffer field extends beyond end of target buffer", /* ASL_MSG_INVALID_SPECIAL_NAME */ "declaration of this named object outside root scope is illegal", /* ASL_MSG_INVALID_PROCESSOR_UID */ "_UID inside processor declaration must be an integer", /* ASL_MSG_LEGACY_PROCESSOR_OP */ "Legacy Processor() keyword detected. Use Device() keyword instead.", /* ASL_MSG_NAMESTRING_LENGTH */ "NameString contains too many NameSegs (>255)", /* ASL_MSG_CASE_FOUND_HERE */ "Original Case value below:", /* ASL_MSG_EXTERN_INVALID_RET_TYPE */ "Return type is only allowed for Externals declared as MethodObj", /* ASL_MSG_EXTERN_INVALID_PARAM_TYPE */ "Parameter type is only allowed for Externals declared as MethodObj", /* ASL_MSG_NAMED_OBJECT_CREATION */ "Creation of named objects within a method is highly inefficient, use globals or method local variables instead", /* ASL_MSG_ARG_COUNT_MISMATCH */ "Method NumArgs count does not match length of ParameterTypes list", /* ASL_MSG_STATIC_OPREGION_IN_METHOD */ "Static OperationRegion should be declared outside control method", /* ASL_MSG_DECLARATION_TYPE_MISMATCH */ "Type mismatch between external declaration and actual object declaration detected", /* ASL_MSG_TYPE_MISMATCH_FOUND_HERE */ "Actual object declaration:", /* ASL_MSG_DUPLICATE_EXTERN_MISMATCH */ "Type mismatch between multiple external declarations detected", /* ASL_MSG_DUPLICATE_EXTERN_FOUND_HERE */"Duplicate external declaration:", /* ASL_MSG_CONDREF_NEEDS_EXTERNAL_DECL */"CondRefOf parameter requires External() declaration", /* ASL_MSG_EXTERNAL_FOUND_HERE */ "External declaration below ", /* ASL_MSG_LOWER_CASE_NAMESEG */ "At least one lower case letter found in NameSeg, ASL is case insensitive - converting to upper case", /* ASL_MSG_LOWER_CASE_NAMEPATH */ "At least one lower case letter found in NamePath, ASL is case insensitive - converting to upper case", /* ASL_MSG_UUID_NOT_FOUND */ "Unknown UUID string", /* ASL_MSG_LEGACY_DDB_TYPE */ "DDBHandleObj has been deprecated along with the Unload operator. DDBHandlObj objects are only used in Unload" }; /* Table compiler */ const char *AslTableCompilerMsgs [] = { /* ASL_MSG_BUFFER_ELEMENT */ "Invalid element in buffer initializer list", /* ASL_MSG_DIVIDE_BY_ZERO */ "Expression contains divide-by-zero", /* ASL_MSG_FLAG_VALUE */ "Flag value is too large", /* ASL_MSG_INTEGER_SIZE */ "Integer too large for target", /* ASL_MSG_INVALID_EXPRESSION */ "Invalid expression", /* ASL_MSG_INVALID_FIELD_NAME */ "Invalid Field Name", /* ASL_MSG_INVALID_HEX_INTEGER */ "Invalid hex integer constant", /* ASL_MSG_OEM_TABLE */ "OEM table - unknown contents", /* ASL_MSG_RESERVED_FIELD */ "Reserved field", /* ASL_MSG_UNKNOWN_LABEL */ "Label is undefined", /* ASL_MSG_UNKNOWN_SUBTABLE */ "Unknown subtable type", /* ASL_MSG_UNKNOWN_TABLE */ "Unknown ACPI table signature", /* ASL_MSG_ZERO_VALUE */ "Value must be non-zero", /* ASL_MSG_INVALID_LABEL */ "Invalid field label detected", /* ASL_MSG_BUFFER_LIST */ "Invalid buffer initializer list", /* ASL_MSG_ENTRY_LIST */ "Invalid entry initializer list", /* ASL_MSG_UNKNOWN_FORMAT */ "Unknown format value", /* ASL_MSG_RESERVED_VALUE */ "Value for field is reserved or unknown", /* ASL_MSG_TWO_ZERO_VALUES */ "32-bit DSDT Address and 64-bit X_DSDT Address cannot both be zero", /* ASL_MSG_BAD_PARSE_TREE */ "Parse tree appears to be ill-defined" }; /* Preprocessor */ const char *AslPreprocessorMsgs [] = { /* ASL_MSG_DIRECTIVE_SYNTAX */ "Invalid directive syntax", /* ASL_MSG_ENDIF_MISMATCH */ "Mismatched #endif", /* ASL_MSG_ERROR_DIRECTIVE */ "#error", /* ASL_MSG_EXISTING_NAME */ "Name is already defined", /* ASL_MSG_INVALID_INVOCATION */ "Invalid macro invocation", /* ASL_MSG_MACRO_SYNTAX */ "Invalid macro syntax", /* ASL_MSG_TOO_MANY_ARGUMENTS */ "Too many macro arguments", /* ASL_MSG_UNKNOWN_DIRECTIVE */ "Unknown directive", /* ASL_MSG_UNKNOWN_PRAGMA */ "Unknown pragma", /* ASL_MSG_WARNING_DIRECTIVE */ "#warning", /* ASL_MSG_INCLUDE_FILE */ "Found a # preprocessor directive in ASL Include() file" }; /******************************************************************************* * * FUNCTION: AeDecodeMessageId * * PARAMETERS: MessageId - ASL message ID (exception code) to be * formatted. Possibly fully encoded. * * RETURN: A string containing the exception message text. * * DESCRIPTION: This function validates and translates an ASL message ID into * an ASCII string. * ******************************************************************************/ const char * AeDecodeMessageId ( UINT16 MessageId) { UINT32 Index; const char **MessageTable; /* Main ASL Compiler messages */ if (MessageId <= ASL_MSG_MAIN_COMPILER_END) { MessageTable = AslCompilerMsgs; Index = MessageId; if (Index >= ACPI_ARRAY_LENGTH (AslCompilerMsgs)) { return ("[Unknown iASL Compiler exception ID]"); } } /* Data Table Compiler messages */ else if (MessageId <= ASL_MSG_TABLE_COMPILER_END) { MessageTable = AslTableCompilerMsgs; Index = MessageId - ASL_MSG_TABLE_COMPILER; if (Index >= ACPI_ARRAY_LENGTH (AslTableCompilerMsgs)) { return ("[Unknown iASL Table Compiler exception ID]"); } } /* Preprocessor messages */ else if (MessageId <= ASL_MSG_PREPROCESSOR_END) { MessageTable = AslPreprocessorMsgs; Index = MessageId - ASL_MSG_PREPROCESSOR; if (Index >= ACPI_ARRAY_LENGTH (AslPreprocessorMsgs)) { return ("[Unknown iASL Preprocessor exception ID]"); } } /* Everything else is unknown */ else { return ("[Unknown iASL exception ID]"); } return (MessageTable[Index]); } /******************************************************************************* * * FUNCTION: AeDecodeExceptionLevel * * PARAMETERS: Level - The ASL error level to be decoded * * RETURN: A string containing the error level text * * DESCRIPTION: This function validates and translates an ASL error level into * an ASCII string. * ******************************************************************************/ const char * AeDecodeExceptionLevel ( UINT8 Level) { /* Range check on Level */ if (Level >= ACPI_ARRAY_LENGTH (AslErrorLevel)) { return ("Unknown exception level"); } /* Differentiate the string type to be used (IDE is all lower case) */ if (AslGbl_VerboseErrors) { return (AslErrorLevel[Level]); } return (AslErrorLevelIde[Level]); } /******************************************************************************* * * FUNCTION: AeBuildFullExceptionCode * * PARAMETERS: Level - ASL error level * MessageId - ASL exception code to be formatted * * RETURN: Fully encoded exception code * * DESCRIPTION: Build the full exception code from the error level and the * actual message ID. * ******************************************************************************/ UINT16 AeBuildFullExceptionCode ( UINT8 Level, UINT16 MessageId) { /* * Error level is in the thousands slot (error/warning/remark, etc.) * Error codes are 0 - 999 */ return (((Level + 1) * 1000) + MessageId); } #ifdef ACPI_HELP_APP /******************************************************************************* * * FUNCTION: AhDecodeAslException * * PARAMETERS: HexString - iASL status string from command line, in * hex. If null, display all exceptions. * * RETURN: None * * DESCRIPTION: Decode and display an iASL exception code. Note1: a * NULL string for HexString displays all known iASL exceptions. Note2: * implements the -x option for AcpiHelp. * ******************************************************************************/ #define AH_DISPLAY_ASL_EXCEPTION_TEXT(Status, Exception) \ printf ("%.4X: %s\n", Status, Exception) #define AH_DISPLAY_EXCEPTION(Status, Name) \ printf ("%.4X: %s\n", Status, Name) void AhDecodeAslException ( char *HexString) { UINT32 i; UINT32 MessageId; const char *OneException; UINT32 Index = 1; /* * A null input string means to decode and display all known * exception codes. */ if (!HexString) { printf ("All defined iASL exception codes:\n\n"); printf ("Main iASL exceptions:\n\n"); AH_DISPLAY_EXCEPTION (0, "AE_OK (No error occurred)"); /* Display codes in each block of exception types */ for (i = 1; Index < ACPI_ARRAY_LENGTH (AslCompilerMsgs); i++, Index++) { AH_DISPLAY_ASL_EXCEPTION_TEXT (Index, AslCompilerMsgs[i]); } printf ("\niASL Table Compiler exceptions:\n\n"); Index = ASL_MSG_TABLE_COMPILER; for (i = 0; i < ACPI_ARRAY_LENGTH (AslTableCompilerMsgs); i++, Index++) { AH_DISPLAY_ASL_EXCEPTION_TEXT (Index, AslTableCompilerMsgs[i]); } printf ("\niASL Preprocessor exceptions:\n\n"); Index = ASL_MSG_PREPROCESSOR; for (i = 0; i < ACPI_ARRAY_LENGTH (AslPreprocessorMsgs); i++, Index++) { AH_DISPLAY_ASL_EXCEPTION_TEXT (Index, AslPreprocessorMsgs[i]); } return; } /* HexString is valid - convert it to a MessageId and decode it */ MessageId = strtol (HexString, NULL, 16); OneException = AeDecodeMessageId ((UINT16) MessageId); AH_DISPLAY_ASL_EXCEPTION_TEXT (MessageId, OneException); } #endif acpica-unix-20250404/source/compiler/aslrestype2d.c0000775000175000017500000007420014773714131021442 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslrestype2d - Large DWord address resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslrestype2d") /* * This module contains the Dword (32-bit) address space descriptors: * * DWordPcc * DwordIO * DwordMemory * DwordSpace */ /******************************************************************************* * * FUNCTION: RsDoDwordPccDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "DWordPcc" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoDwordPccDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT8 *OptionalFields; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS32) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address32.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS32; Descriptor->Address32.ResourceType = ACPI_ADDRESS_TYPE_PCC_NUMBER; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS32); Descriptor->Address32.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS32) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* * Bit [3] Max Address Fixed, _MAF: 1 (max address is fixed) * Bit [2] Min Address Fixed,_MIF: 1 (min address is fixed) * Bit [1] Decode Type, _DEC: 0 (do not care) * BIT [0] Ignored (must be zero) */ Descriptor->Address32.Flags = 0b1100; // No type specific flags. Set to 0. Descriptor->Address32.SpecificFlags = 0; // must be set to zero if _MAX == _MIN. Descriptor->Address32.Granularity = 0x0; /* Process all child initialization nodes */ // No translation offset. Descriptor->Address32.TranslationOffset = 0; // Pcc is unique address. Descriptor->Address32.AddressLength = 1; for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Address Min = Max */ Descriptor->Address32.Minimum = (UINT32) InitializerOp->Asl.Value.Integer; Descriptor->Address32.Maximum = (UINT32) InitializerOp->Asl.Value.Integer; break; case 1: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* Found a valid ResourceSourceIndex */ OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address32.ResourceLength++; ResSourceIndex = TRUE; } break; case 2: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { /* Found a valid ResourceSource */ Descriptor->Address32.ResourceLength = (UINT16) (Descriptor->Address32.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } break; case 3: // DescriptorName UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( (UINT64) Descriptor->Address32.Minimum, (UINT64) Descriptor->Address32.Maximum, (UINT64) Descriptor->Address32.AddressLength, (UINT64) Descriptor->Address32.Granularity, Descriptor->Address32.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoDwordIoDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "DwordIO" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoDwordIoDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT8 *OptionalFields; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS32) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address32.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS32; Descriptor->Address32.ResourceType = ACPI_ADDRESS_TYPE_IO_RANGE; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS32); Descriptor->Address32.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS32) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Usage */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 0, 1); break; case 1: /* MinType */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Flags), 2); break; case 2: /* MaxType */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Flags), 3); break; case 3: /* DecodeType */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Flags), 1); break; case 4: /* Range Type */ RsSetFlagBits (&Descriptor->Address32.SpecificFlags, InitializerOp, 0, 3); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_RANGETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.SpecificFlags), 0, 2); break; case 5: /* Address Granularity */ Descriptor->Address32.Granularity = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Granularity)); GranOp = InitializerOp; break; case 6: /* Address Min */ Descriptor->Address32.Minimum = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Minimum)); MinOp = InitializerOp; break; case 7: /* Address Max */ Descriptor->Address32.Maximum = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Maximum)); MaxOp = InitializerOp; break; case 8: /* Translation Offset */ Descriptor->Address32.TranslationOffset = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.TranslationOffset)); break; case 9: /* Address Length */ Descriptor->Address32.AddressLength = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.AddressLength)); LengthOp = InitializerOp; break; case 10: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* Found a valid ResourceSourceIndex */ OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address32.ResourceLength++; ResSourceIndex = TRUE; } break; case 11: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { /* Found a valid ResourceSource */ Descriptor->Address32.ResourceLength = (UINT16) (Descriptor->Address32.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 12: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 13: /* Type */ RsSetFlagBits (&Descriptor->Address32.SpecificFlags, InitializerOp, 4, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.SpecificFlags), 4); break; case 14: /* Translation Type */ RsSetFlagBits (&Descriptor->Address32.SpecificFlags, InitializerOp, 5, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TRANSTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.SpecificFlags), 5); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( (UINT64) Descriptor->Address32.Minimum, (UINT64) Descriptor->Address32.Maximum, (UINT64) Descriptor->Address32.AddressLength, (UINT64) Descriptor->Address32.Granularity, Descriptor->Address32.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoDwordMemoryDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "DwordMemory" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoDwordMemoryDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS32) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address32.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS32; Descriptor->Address32.ResourceType = ACPI_ADDRESS_TYPE_MEMORY_RANGE; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS32); Descriptor->Address32.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS32) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Usage */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 0, 1); break; case 1: /* DecodeType */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Flags), 1); break; case 2: /* MinType */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Flags), 2); break; case 3: /* MaxType */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Flags), 3); break; case 4: /* Memory Type */ RsSetFlagBits (&Descriptor->Address32.SpecificFlags, InitializerOp, 1, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_MEMTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.SpecificFlags), 1, 2); break; case 5: /* Read/Write Type */ RsSetFlagBits (&Descriptor->Address32.SpecificFlags, InitializerOp, 0, 1); RsCreateBitField (InitializerOp, ACPI_RESTAG_READWRITETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.SpecificFlags), 0); break; case 6: /* Address Granularity */ Descriptor->Address32.Granularity = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Granularity)); GranOp = InitializerOp; break; case 7: /* Min Address */ Descriptor->Address32.Minimum = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Minimum)); MinOp = InitializerOp; break; case 8: /* Max Address */ Descriptor->Address32.Maximum = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Maximum)); MaxOp = InitializerOp; break; case 9: /* Translation Offset */ Descriptor->Address32.TranslationOffset = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.TranslationOffset)); break; case 10: /* Address Length */ Descriptor->Address32.AddressLength = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.AddressLength)); LengthOp = InitializerOp; break; case 11: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address32.ResourceLength++; ResSourceIndex = TRUE; } break; case 12: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { Descriptor->Address32.ResourceLength = (UINT16) (Descriptor->Address32.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 13: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 14: /* Address Range */ RsSetFlagBits (&Descriptor->Address32.SpecificFlags, InitializerOp, 3, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_MEMATTRIBUTES, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.SpecificFlags), 3, 2); break; case 15: /* Type */ RsSetFlagBits (&Descriptor->Address32.SpecificFlags, InitializerOp, 5, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.SpecificFlags), 5); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( (UINT64) Descriptor->Address32.Minimum, (UINT64) Descriptor->Address32.Maximum, (UINT64) Descriptor->Address32.AddressLength, (UINT64) Descriptor->Address32.Granularity, Descriptor->Address32.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoDwordSpaceDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "DwordSpace" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoDwordSpaceDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS32) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address32.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS32; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS32); Descriptor->Address32.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS32) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Type */ Descriptor->Address32.ResourceType = (UINT8) InitializerOp->Asl.Value.Integer; break; case 1: /* Resource Usage */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 0, 1); break; case 2: /* DecodeType */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Flags), 1); break; case 3: /* MinType */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Flags), 2); break; case 4: /* MaxType */ RsSetFlagBits (&Descriptor->Address32.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Flags), 3); break; case 5: /* Type-Specific flags */ Descriptor->Address32.SpecificFlags = (UINT8) InitializerOp->Asl.Value.Integer; break; case 6: /* Address Granularity */ Descriptor->Address32.Granularity = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Granularity)); GranOp = InitializerOp; break; case 7: /* Min Address */ Descriptor->Address32.Minimum = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Minimum)); MinOp = InitializerOp; break; case 8: /* Max Address */ Descriptor->Address32.Maximum = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.Maximum)); MaxOp = InitializerOp; break; case 9: /* Translation Offset */ Descriptor->Address32.TranslationOffset = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.TranslationOffset)); break; case 10: /* Address Length */ Descriptor->Address32.AddressLength = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address32.AddressLength)); LengthOp = InitializerOp; break; case 11: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address32.ResourceLength++; ResSourceIndex = TRUE; } break; case 12: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { Descriptor->Address32.ResourceLength = (UINT16) (Descriptor->Address32.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 13: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( (UINT64) Descriptor->Address32.Minimum, (UINT64) Descriptor->Address32.Maximum, (UINT64) Descriptor->Address32.AddressLength, (UINT64) Descriptor->Address32.Granularity, Descriptor->Address32.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); } acpica-unix-20250404/source/compiler/aslpld.c0000775000175000017500000004757014773714131020312 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslpld - Implementation of ASL ToPLD macro * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslpld") /* Local prototypes */ static UINT8 * OpcEncodePldBuffer ( ACPI_PLD_INFO *PldInfo); static BOOLEAN OpcFindName ( const char **List, char *Name, UINT32 *Index); /******************************************************************************* * * FUNCTION: OpcDoPld * * PARAMETERS: Op - Current parse node * * RETURN: None * * DESCRIPTION: Convert ToPLD macro to 20-byte buffer * * The ToPLD parse tree looks like this: * * TOPLD * PLD_REVISION * INTEGER * PLD_IGNORECOLOR * INTEGER * ... * etc. * ******************************************************************************/ void OpcDoPld ( ACPI_PARSE_OBJECT *Op) { ACPI_PLD_INFO PldInfo; UINT8 *Buffer; ACPI_PARSE_OBJECT *ThisOp; ACPI_PARSE_OBJECT *NewOp; UINT16 ParseOpcode; UINT32 Value; if (!Op) { AslError (ASL_ERROR, ASL_MSG_NOT_EXIST, Op, NULL); return; } if (Op->Asl.ParseOpcode != PARSEOP_TOPLD) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, Op, NULL); return; } memset (&PldInfo, 0, sizeof (ACPI_PLD_INFO)); /* Traverse the list of PLD Ops (one per PLD field) */ ThisOp = Op->Asl.Child; while (ThisOp) { /* Get child values */ ParseOpcode = ThisOp->Asl.Child->Asl.ParseOpcode; Value = (UINT32) ThisOp->Asl.Child->Asl.Value.Integer; switch (ThisOp->Asl.ParseOpcode) { case PARSEOP_PLD_REVISION: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 127) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } PldInfo.Revision = (UINT8) Value; break; case PARSEOP_PLD_IGNORECOLOR: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 1) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } PldInfo.IgnoreColor = (UINT8) Value; break; case PARSEOP_PLD_RED: case PARSEOP_PLD_GREEN: case PARSEOP_PLD_BLUE: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } if (Value > 255) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_RED) { PldInfo.Red = (UINT8) Value; } else if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_GREEN) { PldInfo.Green = (UINT8) Value; } else /* PARSEOP_PLD_BLUE */ { PldInfo.Blue = (UINT8) Value; } break; case PARSEOP_PLD_WIDTH: case PARSEOP_PLD_HEIGHT: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 65535) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_WIDTH) { PldInfo.Width = (UINT16) Value; } else /* PARSEOP_PLD_HEIGHT */ { PldInfo.Height = (UINT16) Value; } break; case PARSEOP_PLD_USERVISIBLE: case PARSEOP_PLD_DOCK: case PARSEOP_PLD_LID: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 1) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_USERVISIBLE) { PldInfo.UserVisible = (UINT8) Value; } else if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_DOCK) { PldInfo.Dock = (UINT8) Value; } else { PldInfo.Lid = (UINT8) Value; } break; case PARSEOP_PLD_PANEL: if (ParseOpcode == PARSEOP_INTEGER) { if (Value > 6) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } } else /* PARSEOP_STRING */ { if (!OpcFindName (AcpiGbl_PldPanelList, ThisOp->Asl.Child->Asl.Value.String, &Value)) { AslError (ASL_ERROR, ASL_MSG_INVALID_OPERAND, ThisOp, NULL); break; } } PldInfo.Panel = (UINT8) Value; break; case PARSEOP_PLD_VERTICALPOSITION: if (ParseOpcode == PARSEOP_INTEGER) { if (Value > 2) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } } else /* PARSEOP_STRING */ { if (!OpcFindName (AcpiGbl_PldVerticalPositionList, ThisOp->Asl.Child->Asl.Value.String, &Value)) { AslError (ASL_ERROR, ASL_MSG_INVALID_OPERAND, ThisOp, NULL); break; } } PldInfo.VerticalPosition = (UINT8) Value; break; case PARSEOP_PLD_HORIZONTALPOSITION: if (ParseOpcode == PARSEOP_INTEGER) { if (Value > 2) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } } else /* PARSEOP_STRING */ { if (!OpcFindName (AcpiGbl_PldHorizontalPositionList, ThisOp->Asl.Child->Asl.Value.String, &Value)) { AslError (ASL_ERROR, ASL_MSG_INVALID_OPERAND, ThisOp, NULL); break; } } PldInfo.HorizontalPosition = (UINT8) Value; break; case PARSEOP_PLD_SHAPE: if (ParseOpcode == PARSEOP_INTEGER) { if (Value > 8) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } } else /* PARSEOP_STRING */ { if (!OpcFindName (AcpiGbl_PldShapeList, ThisOp->Asl.Child->Asl.Value.String, &Value)) { AslError (ASL_ERROR, ASL_MSG_INVALID_OPERAND, ThisOp, NULL); break; } } PldInfo.Shape = (UINT8) Value; break; case PARSEOP_PLD_GROUPORIENTATION: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 1) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } PldInfo.GroupOrientation = (UINT8) Value; break; case PARSEOP_PLD_GROUPTOKEN: case PARSEOP_PLD_GROUPPOSITION: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 255) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_GROUPTOKEN) { PldInfo.GroupToken = (UINT8) Value; } else /* PARSEOP_PLD_GROUPPOSITION */ { PldInfo.GroupPosition = (UINT8) Value; } break; case PARSEOP_PLD_BAY: case PARSEOP_PLD_EJECTABLE: case PARSEOP_PLD_EJECTREQUIRED: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 1) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_BAY) { PldInfo.Bay = (UINT8) Value; } else if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_EJECTABLE) { PldInfo.Ejectable = (UINT8) Value; } else /* PARSEOP_PLD_EJECTREQUIRED */ { PldInfo.OspmEjectRequired = (UINT8) Value; } break; case PARSEOP_PLD_CABINETNUMBER: case PARSEOP_PLD_CARDCAGENUMBER: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 255) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_CABINETNUMBER) { PldInfo.CabinetNumber = (UINT8) Value; } else /* PARSEOP_PLD_CARDCAGENUMBER */ { PldInfo.CardCageNumber = (UINT8) Value; } break; case PARSEOP_PLD_REFERENCE: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 1) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } PldInfo.Reference = (UINT8) Value; break; case PARSEOP_PLD_ROTATION: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 7) { switch (Value) { case 45: Value = 1; break; case 90: Value = 2; break; case 135: Value = 3; break; case 180: Value = 4; break; case 225: Value = 5; break; case 270: Value = 6; break; case 315: Value = 7; break; default: AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } } PldInfo.Rotation = (UINT8) Value; break; case PARSEOP_PLD_ORDER: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 31) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } PldInfo.Order = (UINT8) Value; break; case PARSEOP_PLD_VERTICALOFFSET: case PARSEOP_PLD_HORIZONTALOFFSET: if (ParseOpcode != PARSEOP_INTEGER) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } if (Value > 65535) { AslError (ASL_ERROR, ASL_MSG_RANGE, ThisOp, NULL); break; } if (ThisOp->Asl.ParseOpcode == PARSEOP_PLD_VERTICALOFFSET) { PldInfo.VerticalOffset = (UINT16) Value; } else /* PARSEOP_PLD_HORIZONTALOFFSET */ { PldInfo.HorizontalOffset = (UINT16) Value; } break; default: AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ThisOp, NULL); break; } ThisOp = ThisOp->Asl.Next; } Buffer = OpcEncodePldBuffer (&PldInfo); /* Change Op to a Buffer */ Op->Asl.ParseOpcode = PARSEOP_BUFFER; Op->Common.AmlOpcode = AML_BUFFER_OP; /* Disable further optimization */ Op->Asl.CompileFlags &= ~OP_COMPILE_TIME_CONST; UtSetParseOpName (Op); /* Child node is the buffer length */ NewOp = TrAllocateOp (PARSEOP_INTEGER); NewOp->Asl.AmlOpcode = AML_BYTE_OP; NewOp->Asl.Value.Integer = 20; NewOp->Asl.Parent = Op; Op->Asl.Child = NewOp; Op = NewOp; /* Peer to the child is the raw buffer data */ NewOp = TrAllocateOp (PARSEOP_RAW_DATA); NewOp->Asl.AmlOpcode = AML_RAW_DATA_BUFFER; NewOp->Asl.AmlLength = 20; NewOp->Asl.Value.String = ACPI_CAST_PTR (char, Buffer); NewOp->Asl.Parent = Op->Asl.Parent; Op->Asl.Next = NewOp; } /******************************************************************************* * * FUNCTION: OpcEncodePldBuffer * * PARAMETERS: PldInfo - _PLD buffer struct (Using local struct) * * RETURN: Encode _PLD buffer suitable for return value from _PLD * * DESCRIPTION: Bit-packs a _PLD buffer struct. * ******************************************************************************/ static UINT8 * OpcEncodePldBuffer ( ACPI_PLD_INFO *PldInfo) { UINT32 *Buffer; UINT32 Dword; Buffer = ACPI_CAST_PTR (UINT32, UtLocalCacheCalloc (ACPI_PLD_BUFFER_SIZE)); /* First 32 bits */ Dword = 0; ACPI_PLD_SET_REVISION (&Dword, PldInfo->Revision); ACPI_PLD_SET_IGNORE_COLOR (&Dword, PldInfo->IgnoreColor); ACPI_PLD_SET_RED (&Dword, PldInfo->Red); ACPI_PLD_SET_GREEN (&Dword, PldInfo->Green); ACPI_PLD_SET_BLUE (&Dword, PldInfo->Blue); ACPI_MOVE_32_TO_32 (&Buffer[0], &Dword); /* Second 32 bits */ Dword = 0; ACPI_PLD_SET_WIDTH (&Dword, PldInfo->Width); ACPI_PLD_SET_HEIGHT (&Dword, PldInfo->Height); ACPI_MOVE_32_TO_32 (&Buffer[1], &Dword); /* Third 32 bits */ Dword = 0; ACPI_PLD_SET_USER_VISIBLE (&Dword, PldInfo->UserVisible); ACPI_PLD_SET_DOCK (&Dword, PldInfo->Dock); ACPI_PLD_SET_LID (&Dword, PldInfo->Lid); ACPI_PLD_SET_PANEL (&Dword, PldInfo->Panel); ACPI_PLD_SET_VERTICAL (&Dword, PldInfo->VerticalPosition); ACPI_PLD_SET_HORIZONTAL (&Dword, PldInfo->HorizontalPosition); ACPI_PLD_SET_SHAPE (&Dword, PldInfo->Shape); ACPI_PLD_SET_ORIENTATION (&Dword, PldInfo->GroupOrientation); ACPI_PLD_SET_TOKEN (&Dword, PldInfo->GroupToken); ACPI_PLD_SET_POSITION (&Dword, PldInfo->GroupPosition); ACPI_PLD_SET_BAY (&Dword, PldInfo->Bay); ACPI_MOVE_32_TO_32 (&Buffer[2], &Dword); /* Fourth 32 bits */ Dword = 0; ACPI_PLD_SET_EJECTABLE (&Dword, PldInfo->Ejectable); ACPI_PLD_SET_OSPM_EJECT (&Dword, PldInfo->OspmEjectRequired); ACPI_PLD_SET_CABINET (&Dword, PldInfo->CabinetNumber); ACPI_PLD_SET_CARD_CAGE (&Dword, PldInfo->CardCageNumber); ACPI_PLD_SET_REFERENCE (&Dword, PldInfo->Reference); ACPI_PLD_SET_ROTATION (&Dword, PldInfo->Rotation); ACPI_PLD_SET_ORDER (&Dword, PldInfo->Order); ACPI_MOVE_32_TO_32 (&Buffer[3], &Dword); /* Revision 2 adds an additional DWORD */ if (PldInfo->Revision >= 2) { /* Fifth 32 bits */ Dword = 0; ACPI_PLD_SET_VERT_OFFSET (&Dword, PldInfo->VerticalOffset); ACPI_PLD_SET_HORIZ_OFFSET (&Dword, PldInfo->HorizontalOffset); ACPI_MOVE_32_TO_32 (&Buffer[4], &Dword); } return (ACPI_CAST_PTR (UINT8, Buffer)); } /******************************************************************************* * * FUNCTION: OpcFindName * * PARAMETERS: List - Array of char strings to be searched * Name - Char string to string for * Index - Index value to set if found * * RETURN: TRUE if any names matched, FALSE otherwise * * DESCRIPTION: Match PLD name to value in lookup table. Sets Value to * equivalent parameter value. * ******************************************************************************/ static BOOLEAN OpcFindName ( const char **List, char *Name, UINT32 *Index) { const char *NameString; UINT32 i; AcpiUtStrupr (Name); for (i = 0, NameString = List[0]; NameString; i++, NameString = List[i]) { if (!(strncmp (NameString, Name, strlen (Name)))) { *Index = i; return (TRUE); } } return (FALSE); } acpica-unix-20250404/source/compiler/dttemplate.c0000775000175000017500000004000114773714132021155 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dttemplate - ACPI table template generation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acapps.h" #include "dttemplate.h" /* Contains the hex ACPI table templates */ #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dttemplate") /* Local prototypes */ static BOOLEAN AcpiUtIsSpecialTable ( char *Signature); static ACPI_STATUS DtCreateOneTemplateFile ( char *Signature, UINT32 TableCount); static ACPI_STATUS DtCreateOneTemplate ( char *Signature, UINT32 TableCount, const ACPI_DMTABLE_DATA *TableData); static ACPI_STATUS DtCreateAllTemplates ( void); static int DtEmitDefinitionBlock ( FILE *File, char *Filename, char *Signature, UINT32 Instance); /******************************************************************************* * * FUNCTION: AcpiUtIsSpecialTable * * PARAMETERS: Signature - ACPI table signature * * RETURN: TRUE if signature is a special ACPI table * * DESCRIPTION: Check for valid ACPI tables that are not in the main ACPI * table data structure (AcpiDmTableData). * ******************************************************************************/ static BOOLEAN AcpiUtIsSpecialTable ( char *Signature) { if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_DSDT) || ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_OSDT) || ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_SSDT) || ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_FACS) || ACPI_COMPARE_NAMESEG (Signature, ACPI_RSDP_NAME)) { return (TRUE); } return (FALSE); } /******************************************************************************* * * FUNCTION: DtCreateTemplates * * PARAMETERS: argv - Standard command line arguments * * RETURN: Status * * DESCRIPTION: Create one or more template files. * ******************************************************************************/ ACPI_STATUS DtCreateTemplates ( char **argv) { char *Signature; char *End; unsigned long TableCount; ACPI_STATUS Status = AE_OK; AslInitializeGlobals (); Status = AdInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* * Special cases for DSDT, ALL, and '*' */ /* Default (no signature option) is DSDT */ if (AcpiGbl_Optind < 3) { fprintf (stderr, "Creating default template: [DSDT]\n"); Status = DtCreateOneTemplateFile (ACPI_SIG_DSDT, 0); goto Exit; } AcpiGbl_Optind--; Signature = argv[AcpiGbl_Optind]; AcpiUtStrupr (Signature); /* * Multiple SSDT support (-T ) */ TableCount = strtoul (Signature, &End, 0); if (Signature != End) { /* The count is used for table ID and method name - max is 254(+1) */ if (TableCount > 254) { fprintf (stderr, "%u SSDTs requested, maximum is 254\n", (unsigned int) TableCount); Status = AE_LIMIT; goto Exit; } Status = DtCreateOneTemplateFile (ACPI_SIG_DSDT, TableCount); goto Exit; } if (!strcmp (Signature, "ALL")) { /* Create all available/known templates */ Status = DtCreateAllTemplates (); goto Exit; } /* * Normal case: Create template for each signature */ while (argv[AcpiGbl_Optind]) { Signature = argv[AcpiGbl_Optind]; AcpiUtStrupr (Signature); Status = DtCreateOneTemplateFile (Signature, 0); if (ACPI_FAILURE (Status)) { goto Exit; } AcpiGbl_Optind++; } Exit: /* Shutdown ACPICA subsystem */ (void) AcpiTerminate (); UtDeleteLocalCaches (); return (Status); } /******************************************************************************* * * FUNCTION: DtCreateOneTemplateFile * * PARAMETERS: Signature - ACPI table signature * * RETURN: Status * * DESCRIPTION: Create one template file of the requested signature. * ******************************************************************************/ static ACPI_STATUS DtCreateOneTemplateFile ( char *Signature, UINT32 TableCount) { const ACPI_DMTABLE_DATA *TableData; ACPI_STATUS Status; /* * Validate signature and get the template data: * 1) Signature must be 4 characters * 2) Signature must be a recognized ACPI table * 3) There must be a template associated with the signature */ if (strlen (Signature) != ACPI_NAMESEG_SIZE) { fprintf (stderr, "%s: Invalid ACPI table signature " "(length must be 4 characters)\n", Signature); return (AE_ERROR); } /* * Some slack for the two strange tables whose name is different than * their signatures: MADT->APIC and FADT->FACP. */ if (!strcmp (Signature, "MADT")) { Signature = "APIC"; } else if (!strcmp (Signature, "FADT")) { Signature = "FACP"; } /* TableData will point to the template */ TableData = AcpiDmGetTableData (Signature); if (TableData) { if (!TableData->Template) { fprintf (stderr, "%4.4s: No template available\n", Signature); return (AE_ERROR); } } else if (!AcpiUtIsSpecialTable (Signature)) { fprintf (stderr, "%4.4s: Unrecognized ACPI table signature\n", Signature); return (AE_ERROR); } Status = DtCreateOneTemplate (Signature, TableCount, TableData); return (Status); } /******************************************************************************* * * FUNCTION: DtCreateAllTemplates * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Create all currently defined template files * ******************************************************************************/ static ACPI_STATUS DtCreateAllTemplates ( void) { const ACPI_DMTABLE_DATA *TableData; ACPI_STATUS Status; fprintf (stderr, "Creating all supported Template files\n"); /* Walk entire ACPI table data structure */ for (TableData = AcpiDmTableData; TableData->Signature; TableData++) { /* If table has a template, create the template file */ if (TableData->Template) { Status = DtCreateOneTemplate (TableData->Signature, 0, TableData); if (ACPI_FAILURE (Status)) { return (Status); } } } /* * Create the special ACPI tables: * 1) DSDT/SSDT are AML tables, not data tables * 2) FACS and RSDP have non-standard headers */ Status = DtCreateOneTemplate (ACPI_SIG_DSDT, 0, NULL); if (ACPI_FAILURE (Status)) { return (Status); } Status = DtCreateOneTemplate (ACPI_SIG_SSDT, 0, NULL); if (ACPI_FAILURE (Status)) { return (Status); } Status = DtCreateOneTemplate (ACPI_SIG_OSDT, 0, NULL); if (ACPI_FAILURE (Status)) { return (Status); } Status = DtCreateOneTemplate (ACPI_SIG_FACS, 0, NULL); if (ACPI_FAILURE (Status)) { return (Status); } Status = DtCreateOneTemplate (ACPI_RSDP_NAME, 0, NULL); if (ACPI_FAILURE (Status)) { return (Status); } return (AE_OK); } /******************************************************************************* * * FUNCTION: DtCreateOneTemplate * * PARAMETERS: Signature - ACPI signature, NULL terminated. * TableCount - Used for SSDTs in same file as DSDT * TableData - Entry in ACPI table data structure. * NULL if a special ACPI table. * * RETURN: Status * * DESCRIPTION: Create one template source file for the requested ACPI table. * ******************************************************************************/ static ACPI_STATUS DtCreateOneTemplate ( char *Signature, UINT32 TableCount, const ACPI_DMTABLE_DATA *TableData) { char *DisasmFilename; FILE *File; ACPI_STATUS Status = AE_OK; int Actual; UINT32 i; /* New file will have a .asl suffix */ DisasmFilename = FlGenerateFilename ( Signature, FILE_SUFFIX_ASL_CODE); if (!DisasmFilename) { fprintf (stderr, "Could not generate output filename\n"); return (AE_ERROR); } AcpiUtStrlwr (DisasmFilename); if (!UtQueryForOverwrite (DisasmFilename)) { return (AE_OK); } File = fopen (DisasmFilename, "w+"); if (!File) { fprintf (stderr, "Could not open output file %s\n", DisasmFilename); return (AE_ERROR); } /* Emit the common file header */ AcpiOsRedirectOutput (File); AcpiOsPrintf ("/*\n"); AcpiOsPrintf (ACPI_COMMON_HEADER ("iASL Compiler/Disassembler", " * ")); if (TableCount == 0) { AcpiOsPrintf (" * Template for [%4.4s] ACPI Table", Signature); } else { AcpiOsPrintf (" * Template for [%4.4s] and %u [SSDT] ACPI Tables", Signature, TableCount); } /* Dump the actual ACPI table */ if (TableData) { /* Normal case, tables that appear in AcpiDmTableData */ AcpiOsPrintf (" (static data table)\n"); if (AslGbl_VerboseTemplates) { AcpiOsPrintf (" * Format: [HexOffset DecimalOffset ByteLength]" " FieldName : HexFieldValue\n */\n\n"); } else { AcpiOsPrintf (" * Format: [ByteLength]" " FieldName : HexFieldValue\n */\n"); } AcpiDmDumpDataTable (ACPI_CAST_PTR (ACPI_TABLE_HEADER, TableData->Template)); } else { /* Special ACPI tables - DSDT, SSDT, OSDT, FACS, RSDP */ AcpiOsPrintf (" (AML byte code table)\n"); AcpiOsPrintf (" */\n"); if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_DSDT)) { Actual = DtEmitDefinitionBlock ( File, DisasmFilename, ACPI_SIG_DSDT, 1); if (Actual < 0) { Status = AE_ERROR; goto Cleanup; } /* Emit any requested SSDTs into the same file */ for (i = 1; i <= TableCount; i++) { Actual = DtEmitDefinitionBlock ( File, DisasmFilename, ACPI_SIG_SSDT, i + 1); if (Actual < 0) { Status = AE_ERROR; goto Cleanup; } } } else if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_SSDT)) { Actual = DtEmitDefinitionBlock ( File, DisasmFilename, ACPI_SIG_SSDT, 1); if (Actual < 0) { Status = AE_ERROR; goto Cleanup; } } else if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_OSDT)) { Actual = DtEmitDefinitionBlock ( File, DisasmFilename, ACPI_SIG_OSDT, 1); if (Actual < 0) { Status = AE_ERROR; goto Cleanup; } } else if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_FACS)) { AcpiDmDumpDataTable (ACPI_CAST_PTR (ACPI_TABLE_HEADER, TemplateFacs)); } else if (ACPI_COMPARE_NAMESEG (Signature, ACPI_RSDP_NAME)) { AcpiDmDumpDataTable (ACPI_CAST_PTR (ACPI_TABLE_HEADER, TemplateRsdp)); } else { fprintf (stderr, "%4.4s, Unrecognized ACPI table signature\n", Signature); Status = AE_ERROR; goto Cleanup; } } if (TableCount == 0) { fprintf (stderr, "Created ACPI table template for [%4.4s], " "written to \"%s\"\n", Signature, DisasmFilename); } else { fprintf (stderr, "Created ACPI table templates for [%4.4s] " "and %u [SSDT] in same file, written to \"%s\"\n", Signature, TableCount, DisasmFilename); } Cleanup: fclose (File); AcpiOsRedirectOutput (stdout); return (Status); } /******************************************************************************* * * FUNCTION: DtEmitDefinitionBlock * * PARAMETERS: File - An open file for the block * Filename - Filename for same, for error msg(s) * Signature - ACPI signature for the block * Instance - Used for multiple SSDTs in the same file * * RETURN: Status from fprintf * * DESCRIPTION: Emit the raw ASL for a complete Definition Block (DSDT or SSDT) * * Note: The AMLFileName parameter for DefinitionBlock is left as a NULL * string. This allows the compiler to create the output AML filename from * the input filename. * ******************************************************************************/ static int DtEmitDefinitionBlock ( FILE *File, char *Filename, char *Signature, UINT32 Instance) { int Status; Status = fprintf (File, "DefinitionBlock (\"\", \"%4.4s\", 2, \"Intel\", \"_%4.4s_%.2X\", 0x00000001)\n" "{\n" " Method (%2.2s%.2X)\n" " {\n" " }\n" "}\n\n", Signature, Signature, Instance, Signature, Instance); if (Status < 0) { fprintf (stderr, "Could not write %4.4s to output file %s\n", Signature, Filename); } return (Status); } acpica-unix-20250404/source/compiler/dtcompilerparser.l0000775000175000017500000001370514773714131022414 0ustar ivanhuivanhu%{ /****************************************************************************** * * Module Name: dtcompilerparser.l - Flex input file for table compiler lexer * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "dtcompilerparser.y.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("dtcompilerscanner") /* handle locations */ int DtCompilerParsercolumn = 1; int DtLabelByteOffset = 0; int DtCompilerParserByteOffset = 0; UINT32 DtTokenFirstLine = 0; UINT32 DtTokenFirstColumn = 0; #define YY_USER_ACTION \ DtTokenFirstLine = DtCompilerParserlineno; \ DtTokenFirstColumn = DtCompilerParsercolumn; \ DtCompilerParsercolumn += DtCompilerParserleng; \ DtCompilerParserByteOffset += DtCompilerParserleng; \ DbgPrint (ASL_PARSE_OUTPUT,\ "user action occurred. DtCompilerParserlloc.first_line: %u\n",\ DtTokenFirstLine); %} %option nounput noinput yylineno /* Indicates a state used for parsing multiline C comments */ %x ML_COMMENT %x DATA_STATE WhiteSpace [ \t\v\r]+ NewLines [\n]+ /* Avoid ", \n, and [] as a part of label name. These are not valid characters of a label name */ LabelName [^ ":\n\[\]]([^":\n\[\]]*[^" :\n\[\]])? /* Avoid ", \n, \\, and [] as a part of data. These are not valid characters of data */ Data [^ \\":\n\[\]]([^":\n\[\]\\]*[^" :\n\[\]\\])? Text [^ ":\n][^":\n]* Comment \[[^\n\[\]]*\] CommentField {LabelName}{WhiteSpace}*:{WhiteSpace}{Comment}?$ %% {WhiteSpace}"\\\n" { DbgPrint(ASL_PARSE_OUTPUT,"Continuation matched\n"); return (DT_PARSEOP_LINE_CONTINUATION); } ":" { DbgPrint(ASL_PARSE_OUTPUT, ": Matched\n"); BEGIN (DATA_STATE); return (':'); } {WhiteSpace} { DbgPrint(ASL_PARSE_OUTPUT,"Whitespace matched\n"); } {Comment} { DbgPrint(ASL_PARSE_OUTPUT,"Comment matched\n"); } "/*" { BEGIN (ML_COMMENT); } "*/" { BEGIN (INITIAL); } "*/\n" { BEGIN (INITIAL); } ([^*]|\n)+|. /* Ignore */ "//".* /* Ignore */ {Data} { char *s; int size = strlen (DtCompilerParsertext); s=UtLocalCacheCalloc (size + 1); AcpiUtSafeStrncpy (s, DtCompilerParsertext, size + 1); DtCompilerParserlval.s = s; DbgPrint (ASL_PARSE_OUTPUT, "Data: %s\n", s); return (DT_PARSEOP_DATA); } {CommentField} /* ignore */ {LabelName} { char *s; int size = strlen (DtCompilerParsertext); s=UtLocalCacheCalloc (size + 1); AcpiUtSafeStrncpy (s, DtCompilerParsertext, size + 1); DtCompilerParserlval.u = (DT_TABLE_UNIT *) UtLocalCacheCalloc (sizeof (DT_TABLE_UNIT)); DtCompilerParserlval.u->Value = s; DtCompilerParserlval.u->Line = DtCompilerParserlineno; DtCompilerParserlval.u->Column = DtCompilerParsercolumn; DtLabelByteOffset = DtCompilerParserByteOffset; DbgPrint (ASL_PARSE_OUTPUT, "Label: %s\n", s); return (DT_PARSEOP_LABEL); } \"{Text}?\" { // remove outer quotes from the string, they are unnecessary char *s; int size = strlen (DtCompilerParsertext); s=UtLocalCacheCalloc (size - 1); AcpiUtSafeStrncpy (s, DtCompilerParsertext + 1, size - 1); DtCompilerParserlval.s = s; DbgPrint (ASL_PARSE_OUTPUT, "String Data: %s\n", s); BEGIN (INITIAL); return (DT_PARSEOP_STRING_DATA); } {NewLines} { DbgPrint(ASL_PARSE_OUTPUT, "Newline matched (data state). Current line number: %u\n",DtCompilerParserlineno); BEGIN (INITIAL); DtCompilerParsercolumn = 1; } %% /* * Local support functions */ void DtCompilerInitLexer ( FILE *inFile) { yyin = inFile; } void DtCompilerTerminateLexer ( void) { /* * Flex/Bison increments the lineno for the EOF so decrement by 1 to get * the correct number of lines. */ AslGbl_CurrentLineNumber = DtCompilerParserlineno - 1; AslGbl_InputByteCount = DtCompilerParserByteOffset; } acpica-unix-20250404/source/compiler/aslpredef.c0000775000175000017500000005747214773714131021002 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslpredef - support for ACPI predefined names * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define ACPI_CREATE_PREDEFINED_TABLE #define ACPI_CREATE_RESOURCE_TABLE #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acpredef.h" #include "acnamesp.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslpredef") /* Local prototypes */ static void ApCheckForUnexpectedReturnValue ( ACPI_PARSE_OBJECT *Op, ASL_METHOD_INFO *MethodInfo); static UINT32 ApCheckForSpecialName ( ACPI_PARSE_OBJECT *Op, char *Name); /******************************************************************************* * * FUNCTION: ApCheckForPredefinedMethod * * PARAMETERS: Op - A parse node of type "METHOD". * MethodInfo - Saved info about this method * * RETURN: None * * DESCRIPTION: If method is a predefined name, check that the number of * arguments and the return type (returns a value or not) * is correct. * ******************************************************************************/ BOOLEAN ApCheckForPredefinedMethod ( ACPI_PARSE_OBJECT *Op, ASL_METHOD_INFO *MethodInfo) { UINT32 Index; UINT32 RequiredArgCount; const ACPI_PREDEFINED_INFO *ThisName; /* Check for a match against the predefined name list */ Index = ApCheckForPredefinedName (Op, Op->Asl.NameSeg); switch (Index) { case ACPI_NOT_RESERVED_NAME: /* No underscore or _Txx or _xxx name not matched */ case ACPI_PREDEFINED_NAME: /* Resource Name or reserved scope name */ case ACPI_COMPILER_RESERVED_NAME: /* A _Txx that was not emitted by compiler */ /* Just return, nothing to do */ return (FALSE); case ACPI_EVENT_RESERVED_NAME: /* _Lxx/_Exx/_Wxx/_Qxx methods */ AslGbl_ReservedMethods++; /* NumArguments must be zero for all _Lxx/_Exx/_Wxx/_Qxx methods */ if (MethodInfo->NumArguments != 0) { sprintf (AslGbl_MsgBuffer, "%s requires %d", Op->Asl.ExternalName, 0); AslError (ASL_WARNING, ASL_MSG_RESERVED_ARG_COUNT_HI, Op, AslGbl_MsgBuffer); } break; default: /* * Matched a predefined method name - validate the ASL-defined * argument count against the ACPI specification. * * Some methods are allowed to have a "minimum" number of args * (_SCP) because their definition in ACPI has changed over time. */ AslGbl_ReservedMethods++; ThisName = &AcpiGbl_PredefinedMethods[Index]; RequiredArgCount = METHOD_GET_ARG_COUNT (ThisName->Info.ArgumentList); if (MethodInfo->NumArguments != RequiredArgCount) { sprintf (AslGbl_MsgBuffer, "%4.4s requires %u", ThisName->Info.Name, RequiredArgCount); if (MethodInfo->NumArguments < RequiredArgCount) { AslError (ASL_WARNING, ASL_MSG_RESERVED_ARG_COUNT_LO, Op, AslGbl_MsgBuffer); } else if ((MethodInfo->NumArguments > RequiredArgCount) && !(ThisName->Info.ArgumentList & ARG_COUNT_IS_MINIMUM)) { AslError (ASL_WARNING, ASL_MSG_RESERVED_ARG_COUNT_HI, Op, AslGbl_MsgBuffer); } } /* * Check if method returns no value, but the predefined name is * required to return a value */ if (MethodInfo->NumReturnNoValue && ThisName->Info.ExpectedBtypes) { AcpiUtGetExpectedReturnTypes (AslGbl_StringBuffer, ThisName->Info.ExpectedBtypes); sprintf (AslGbl_MsgBuffer, "%s required for %4.4s", AslGbl_StringBuffer, ThisName->Info.Name); AslError (ASL_WARNING, ASL_MSG_RESERVED_RETURN_VALUE, Op, AslGbl_MsgBuffer); } break; } return (TRUE); } /******************************************************************************* * * FUNCTION: ApCheckForUnexpectedReturnValue * * PARAMETERS: Op - A parse node of type "RETURN". * MethodInfo - Saved info about this method * * RETURN: None * * DESCRIPTION: Check for an unexpected return value from a predefined method. * Invoked for predefined methods that are defined to not return * any value. If there is a return value, issue a remark, since * the ASL writer may be confused as to the method definition * and/or functionality. * * Note: We ignore all return values of "Zero", since this is what a standalone * Return() statement will always generate -- so we ignore it here -- * i.e., there is no difference between Return() and Return(Zero). * Also, a null Return() will be disassembled to return(Zero) -- so, we * don't want to generate extraneous remarks/warnings for a disassembled * ASL file. * ******************************************************************************/ static void ApCheckForUnexpectedReturnValue ( ACPI_PARSE_OBJECT *Op, ASL_METHOD_INFO *MethodInfo) { ACPI_PARSE_OBJECT *ReturnValueOp; /* Ignore Return() and Return(Zero) (they are the same) */ ReturnValueOp = Op->Asl.Child; if (ReturnValueOp->Asl.ParseOpcode == PARSEOP_ZERO) { return; } /* We have a valid return value, but the reserved name did not expect it */ AslError (ASL_WARNING, ASL_MSG_RESERVED_NO_RETURN_VAL, Op, MethodInfo->Op->Asl.ExternalName); } /******************************************************************************* * * FUNCTION: ApCheckPredefinedReturnValue * * PARAMETERS: Op - A parse node of type "RETURN". * MethodInfo - Saved info about this method * * RETURN: None * * DESCRIPTION: If method is a predefined name, attempt to validate the return * value. Only "static" types can be validated - a simple return * of an integer/string/buffer/package or a named reference to * a static object. Values such as a Localx or Argx or a control * method invocation are not checked. Issue a warning if there is * a valid return value, but the reserved method defines no * return value. * ******************************************************************************/ void ApCheckPredefinedReturnValue ( ACPI_PARSE_OBJECT *Op, ASL_METHOD_INFO *MethodInfo) { UINT32 Index; ACPI_PARSE_OBJECT *ReturnValueOp; const ACPI_PREDEFINED_INFO *ThisName; /* * Check parent method for a match against the predefined name list. * * Note: Disable compiler errors/warnings because any errors will be * caught when analyzing the parent method. Eliminates duplicate errors. */ AslGbl_AllExceptionsDisabled = TRUE; Index = ApCheckForPredefinedName (MethodInfo->Op, MethodInfo->Op->Asl.NameSeg); AslGbl_AllExceptionsDisabled = FALSE; switch (Index) { case ACPI_EVENT_RESERVED_NAME: /* _Lxx/_Exx/_Wxx/_Qxx methods */ /* No return value expected, warn if there is one */ ApCheckForUnexpectedReturnValue (Op, MethodInfo); return; case ACPI_NOT_RESERVED_NAME: /* No underscore or _Txx or _xxx name not matched */ case ACPI_PREDEFINED_NAME: /* Resource Name or reserved scope name */ case ACPI_COMPILER_RESERVED_NAME: /* A _Txx that was not emitted by compiler */ /* Just return, nothing to do */ return; default: /* A standard predefined ACPI name */ ThisName = &AcpiGbl_PredefinedMethods[Index]; if (!ThisName->Info.ExpectedBtypes) { /* No return value expected, warn if there is one */ ApCheckForUnexpectedReturnValue (Op, MethodInfo); return; } /* Get the object returned, it is the next argument */ ReturnValueOp = Op->Asl.Child; switch (ReturnValueOp->Asl.ParseOpcode) { case PARSEOP_ZERO: case PARSEOP_ONE: case PARSEOP_ONES: case PARSEOP_INTEGER: case PARSEOP_STRING_LITERAL: case PARSEOP_BUFFER: case PARSEOP_PACKAGE: /* Static data return object - check against expected type */ ApCheckObjectType (ThisName->Info.Name, ReturnValueOp, ThisName->Info.ExpectedBtypes, ACPI_NOT_PACKAGE_ELEMENT); /* For packages, check the individual package elements */ if (ReturnValueOp->Asl.ParseOpcode == PARSEOP_PACKAGE) { ApCheckPackage (ReturnValueOp, ThisName); } break; default: /* * All other ops are very difficult or impossible to typecheck at * compile time. These include all Localx, Argx, and method * invocations. Also, NAMESEG and NAMESTRING because the type of * any named object can be changed at runtime (for example, * CopyObject will change the type of the target object.) */ break; } } } /******************************************************************************* * * FUNCTION: ApCheckForPredefinedObject * * PARAMETERS: Op - A parse node * Name - The ACPI name to be checked * * RETURN: None * * DESCRIPTION: Check for a predefined name for a static object (created via * the ASL Name operator). If it is a predefined ACPI name, ensure * that the name does not require any arguments (which would * require a control method implementation of the name), and that * the type of the object is one of the expected types for the * predefined name. * ******************************************************************************/ void ApCheckForPredefinedObject ( ACPI_PARSE_OBJECT *Op, char *Name) { UINT32 Index; ACPI_PARSE_OBJECT *ObjectOp; const ACPI_PREDEFINED_INFO *ThisName; /* * Check for a real predefined name -- not a resource descriptor name * or a predefined scope name */ Index = ApCheckForPredefinedName (Op, Name); switch (Index) { case ACPI_NOT_RESERVED_NAME: /* No underscore or _Txx or _xxx name not matched */ case ACPI_PREDEFINED_NAME: /* Resource Name or reserved scope name */ case ACPI_COMPILER_RESERVED_NAME: /* A _Txx that was not emitted by compiler */ /* Nothing to do */ return; case ACPI_EVENT_RESERVED_NAME: /* _Lxx/_Exx/_Wxx/_Qxx methods */ /* * These names must be control methods, by definition in ACPI spec. * Also because they are defined to return no value. None of them * require any arguments. */ AslError (ASL_ERROR, ASL_MSG_RESERVED_METHOD, Op, "with zero arguments"); return; default: break; } /* A standard predefined ACPI name */ /* * If this predefined name requires input arguments, then * it must be implemented as a control method */ ThisName = &AcpiGbl_PredefinedMethods[Index]; if (METHOD_GET_ARG_COUNT (ThisName->Info.ArgumentList) > 0) { AslError (ASL_ERROR, ASL_MSG_RESERVED_METHOD, Op, "with arguments"); return; } /* * If no return value is expected from this predefined name, then * it follows that it must be implemented as a control method * (with zero args, because the args > 0 case was handled above) * Examples are: _DIS, _INI, _IRC, _OFF, _ON, _PSx */ if (!ThisName->Info.ExpectedBtypes) { AslError (ASL_ERROR, ASL_MSG_RESERVED_METHOD, Op, "with zero arguments"); return; } /* Typecheck the actual object, it is the next argument */ ObjectOp = Op->Asl.Child->Asl.Next; ApCheckObjectType (ThisName->Info.Name, Op->Asl.Child->Asl.Next, ThisName->Info.ExpectedBtypes, ACPI_NOT_PACKAGE_ELEMENT); /* For packages, check the individual package elements */ if (ObjectOp->Asl.ParseOpcode == PARSEOP_PACKAGE) { ApCheckPackage (ObjectOp, ThisName); } } /******************************************************************************* * * FUNCTION: ApCheckForPredefinedName * * PARAMETERS: Op - A parse node * Name - NameSeg to check * * RETURN: None * * DESCRIPTION: Check a NameSeg against the reserved list. * ******************************************************************************/ UINT32 ApCheckForPredefinedName ( ACPI_PARSE_OBJECT *Op, char *Name) { UINT32 i; const ACPI_PREDEFINED_INFO *ThisName; if (Name[0] == 0) { AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, Op, "Zero length name found"); } /* All reserved names are prefixed with a single underscore */ if (Name[0] != '_') { return (ACPI_NOT_RESERVED_NAME); } /* Check for a standard predefined method name */ ThisName = AcpiGbl_PredefinedMethods; for (i = 0; ThisName->Info.Name[0]; i++) { if (ACPI_COMPARE_NAMESEG (Name, ThisName->Info.Name)) { /* Return index into predefined array */ return (i); } ThisName++; /* Does not account for extra package data, but is OK */ } /* Check for resource names and predefined scope names */ ThisName = AcpiGbl_ResourceNames; while (ThisName->Info.Name[0]) { if (ACPI_COMPARE_NAMESEG (Name, ThisName->Info.Name)) { return (ACPI_PREDEFINED_NAME); } ThisName++; } ThisName = AcpiGbl_ScopeNames; while (ThisName->Info.Name[0]) { if (ACPI_COMPARE_NAMESEG (Name, ThisName->Info.Name)) { return (ACPI_PREDEFINED_NAME); } ThisName++; } /* Check for _Lxx/_Exx/_Wxx/_Qxx/_T_x. Warning if unknown predefined name */ return (ApCheckForSpecialName (Op, Name)); } /******************************************************************************* * * FUNCTION: ApCheckForSpecialName * * PARAMETERS: Op - A parse node * Name - NameSeg to check * * RETURN: None * * DESCRIPTION: Check for the "special" predefined names - * _Lxx, _Exx, _Qxx, _Wxx, and _T_x * ******************************************************************************/ static UINT32 ApCheckForSpecialName ( ACPI_PARSE_OBJECT *Op, char *Name) { /* * Check for the "special" predefined names. We already know that the * first character is an underscore. * GPE: _Lxx * GPE: _Exx * GPE: _Wxx * EC: _Qxx */ if ((Name[1] == 'L') || (Name[1] == 'E') || (Name[1] == 'W') || (Name[1] == 'Q')) { /* The next two characters must be hex digits */ if ((isxdigit ((int) Name[2])) && (isxdigit ((int) Name[3]))) { return (ACPI_EVENT_RESERVED_NAME); } } /* Check for the names reserved for the compiler itself: _T_x */ else if ((Op->Asl.ExternalName[1] == 'T') && (Op->Asl.ExternalName[2] == '_')) { /* Ignore if actually emitted by the compiler */ if (Op->Asl.CompileFlags & OP_COMPILER_EMITTED) { return (ACPI_NOT_RESERVED_NAME); } /* * Was not actually emitted by the compiler. This is a special case, * however. If the ASL code being compiled was the result of a * disassembly, it may possibly contain valid compiler-emitted names * of the form "_T_x". We don't want to issue an error or even a * warning and force the user to manually change the names. So, we * will issue a remark instead. */ AslError (ASL_REMARK, ASL_MSG_COMPILER_RESERVED, Op, Op->Asl.ExternalName); return (ACPI_COMPILER_RESERVED_NAME); } /* * The name didn't match any of the known predefined names. Flag it as a * warning, since the entire namespace starting with an underscore is * reserved by the ACPI spec. */ AslError (ASL_WARNING, ASL_MSG_UNKNOWN_RESERVED_NAME, Op, Op->Asl.ExternalName); return (ACPI_NOT_RESERVED_NAME); } /******************************************************************************* * * FUNCTION: ApCheckObjectType * * PARAMETERS: PredefinedName - Name of the predefined object we are checking * Op - Current parse node * ExpectedBtypes - Bitmap of expected return type(s) * PackageIndex - Index of object within parent package (if * applicable - ACPI_NOT_PACKAGE_ELEMENT * otherwise) * * RETURN: None * * DESCRIPTION: Check if the object type is one of the types that is expected * by the predefined name. Only a limited number of object types * can be returned by the predefined names. * ******************************************************************************/ ACPI_STATUS ApCheckObjectType ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op, UINT32 ExpectedBtypes, UINT32 PackageIndex) { UINT32 ReturnBtype; char *TypeName; if (!Op) { return (AE_TYPE); } /* Map the parse opcode to a bitmapped return type (RTYPE) */ switch (Op->Asl.ParseOpcode) { case PARSEOP_ZERO: case PARSEOP_ONE: case PARSEOP_ONES: case PARSEOP_INTEGER: ReturnBtype = ACPI_RTYPE_INTEGER; TypeName = "Integer"; break; case PARSEOP_STRING_LITERAL: ReturnBtype = ACPI_RTYPE_STRING; TypeName = "String"; break; case PARSEOP_BUFFER: ReturnBtype = ACPI_RTYPE_BUFFER; TypeName = "Buffer"; break; case PARSEOP_PACKAGE: case PARSEOP_VAR_PACKAGE: ReturnBtype = ACPI_RTYPE_PACKAGE; TypeName = "Package"; break; case PARSEOP_NAMESEG: case PARSEOP_NAMESTRING: /* * Ignore any named references within a package object. * * For Package objects, references are allowed instead of any of the * standard data types (Integer/String/Buffer/Package). These * references are resolved at runtime. NAMESEG and NAMESTRING are * impossible to typecheck at compile time because the type of * any named object can be changed at runtime (for example, * CopyObject will change the type of the target object). */ if (PackageIndex != ACPI_NOT_PACKAGE_ELEMENT) { return (AE_OK); } ReturnBtype = ACPI_RTYPE_REFERENCE; TypeName = "Reference"; break; default: /* Not one of the supported object types */ TypeName = UtGetOpName (Op->Asl.ParseOpcode); goto TypeErrorExit; } /* Exit if the object is one of the expected types */ if (ReturnBtype & ExpectedBtypes) { return (AE_OK); } TypeErrorExit: /* Format the expected types and emit an error message */ AcpiUtGetExpectedReturnTypes (AslGbl_StringBuffer, ExpectedBtypes); if (PackageIndex == ACPI_NOT_PACKAGE_ELEMENT) { sprintf (AslGbl_MsgBuffer, "%4.4s: found %s, %s required", PredefinedName, TypeName, AslGbl_StringBuffer); } else { sprintf (AslGbl_MsgBuffer, "%4.4s: found %s at index %u, %s required", PredefinedName, TypeName, PackageIndex, AslGbl_StringBuffer); } AslError (ASL_ERROR, ASL_MSG_RESERVED_OPERAND_TYPE, Op, AslGbl_MsgBuffer); return (AE_TYPE); } /******************************************************************************* * * FUNCTION: ApDisplayReservedNames * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Dump information about the ACPI predefined names and predefined * resource descriptor names. * ******************************************************************************/ void ApDisplayReservedNames ( void) { const ACPI_PREDEFINED_INFO *ThisName; UINT32 Count; UINT32 NumTypes; /* * Predefined names/methods */ printf ("\nPredefined Name Information\n\n"); Count = 0; ThisName = AcpiGbl_PredefinedMethods; while (ThisName->Info.Name[0]) { AcpiUtDisplayPredefinedMethod (AslGbl_MsgBuffer, ThisName, FALSE); Count++; ThisName = AcpiUtGetNextPredefinedMethod (ThisName); } printf ("%u Predefined Names are recognized\n", Count); /* * Resource Descriptor names */ printf ("\nPredefined Names for Resource Descriptor Fields\n\n"); Count = 0; ThisName = AcpiGbl_ResourceNames; while (ThisName->Info.Name[0]) { NumTypes = AcpiUtGetResourceBitWidth (AslGbl_MsgBuffer, ThisName->Info.ArgumentList); printf ("%4.4s Field is %s bits wide%s\n", ThisName->Info.Name, AslGbl_MsgBuffer, (NumTypes > 1) ? " (depending on descriptor type)" : ""); Count++; ThisName++; } printf ("%u Resource Descriptor Field Names are recognized\n", Count); /* * Predefined scope names */ printf ("\nPredefined Scope/Device Names (automatically created at root)\n\n"); ThisName = AcpiGbl_ScopeNames; while (ThisName->Info.Name[0]) { printf ("%4.4s Scope/Device\n", ThisName->Info.Name); ThisName++; } } acpica-unix-20250404/source/compiler/aslutils.c0000775000175000017500000006662214773714131020672 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslutils -- compiler utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acdisasm.h" #include "acnamesp.h" #include "amlcode.h" #include "acapps.h" #include #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslutils") /* Local prototypes */ static void UtPadNameWithUnderscores ( char *NameSeg, char *PaddedNameSeg); static void UtAttachNameseg ( ACPI_PARSE_OBJECT *Op, char *Name); static void UtDisplayErrorSummary ( UINT32 FileId); /******************************************************************************* * * FUNCTION: UtIsBigEndianMachine * * PARAMETERS: None * * RETURN: TRUE if machine is big endian * FALSE if machine is little endian * * DESCRIPTION: Detect whether machine is little endian or big endian. * ******************************************************************************/ UINT8 UtIsBigEndianMachine ( void) { union { UINT32 Integer; UINT8 Bytes[4]; } Overlay = {0xFF000000}; return (Overlay.Bytes[0]); /* Returns 0xFF (TRUE) for big endian */ } /******************************************************************************* * * FUNCTION: UtIsIdInteger * * PARAMETERS: Pointer to an ACPI ID (HID, CID) string * * RETURN: TRUE if string is an integer * FALSE if string is not an integer * * DESCRIPTION: Determine whether the input ACPI ID string can be converted to * an integer value. * ******************************************************************************/ BOOLEAN UtIsIdInteger ( UINT8 *Target) { UINT32 i; /* The first three characters of the string must be alphabetic */ for (i = 0; i < 3; i++) { if (!isalpha ((int) Target[i])) { break; } } if (i < 3) { return (TRUE); } return (FALSE); } /****************************************************************************** * * FUNCTION: UtQueryForOverwrite * * PARAMETERS: Pathname - Output filename * * RETURN: TRUE if file does not exist or overwrite is authorized * * DESCRIPTION: Query for file overwrite if it already exists. * ******************************************************************************/ BOOLEAN UtQueryForOverwrite ( char *Pathname) { struct stat StatInfo; int InChar; if (!stat (Pathname, &StatInfo)) { fprintf (stderr, "Target file \"%s\" already exists, overwrite? [y|n] ", Pathname); InChar = fgetc (stdin); if (InChar == '\n') { InChar = fgetc (stdin); } if ((InChar != 'y') && (InChar != 'Y')) { return (FALSE); } } return (TRUE); } /******************************************************************************* * * FUNCTION: UtNodeIsDescendantOf * * PARAMETERS: Node1 - Child node * Node2 - Possible parent node * * RETURN: Boolean * * DESCRIPTION: Returns TRUE if Node1 is a descendant of Node2. Otherwise, * return FALSE. Note, we assume a NULL Node2 element to be the * topmost (root) scope. All nodes are descendants of the root. * Note: Nodes at the same level (siblings) are not considered * descendants. * ******************************************************************************/ BOOLEAN UtNodeIsDescendantOf ( ACPI_NAMESPACE_NODE *Node1, ACPI_NAMESPACE_NODE *Node2) { if (Node1 == Node2) { return (FALSE); } if (!Node2) { return (TRUE); /* All nodes descend from the root */ } /* Walk upward until the root is reached or parent is found */ while (Node1) { if (Node1 == Node2) { return (TRUE); } Node1 = Node1->Parent; } return (FALSE); } /******************************************************************************* * * FUNCTION: UtGetParentMethodNode * * PARAMETERS: Node - Namespace node for any object * * RETURN: Namespace node for the parent method * NULL - object is not within a method * * DESCRIPTION: Find the parent (owning) method node for a namespace object * ******************************************************************************/ ACPI_NAMESPACE_NODE * UtGetParentMethodNode ( ACPI_NAMESPACE_NODE *Node) { ACPI_NAMESPACE_NODE *ParentNode; if (!Node) { return (NULL); } /* Walk upward until a method is found, or the root is reached */ ParentNode = Node->Parent; while (ParentNode) { if (ParentNode->Type == ACPI_TYPE_METHOD) { return (ParentNode); } ParentNode = ParentNode->Parent; } return (NULL); /* Object is not within a control method */ } /******************************************************************************* * * FUNCTION: UtGetParentMethodOp * * PARAMETERS: Op - Parse Op to be checked * * RETURN: Control method Op if found. NULL otherwise * * DESCRIPTION: Find the control method parent of a parse op. Returns NULL if * the input Op is not within a control method. * ******************************************************************************/ ACPI_PARSE_OBJECT * UtGetParentMethodOp ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *NextOp; NextOp = Op->Asl.Parent; while (NextOp) { if (NextOp->Asl.AmlOpcode == AML_METHOD_OP) { return (NextOp); } NextOp = NextOp->Asl.Parent; } return (NULL); /* No parent method found */ } /******************************************************************************* * * FUNCTION: UtDisplaySupportedTables * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Print all supported ACPI table names. * ******************************************************************************/ void UtDisplaySupportedTables ( void) { const AH_TABLE *TableData; UINT32 i; printf ("\nACPI tables supported by iASL version %8.8X:\n" " (Compiler, Disassembler, Template Generator)\n", ACPI_CA_VERSION); /* All ACPI tables with the common table header */ printf ("\nKnown/Supported ACPI tables:\n"); for (TableData = AcpiGbl_SupportedTables, i = 1; TableData->Signature; TableData++, i++) { printf ("%8u) %s %s\n", i, TableData->Signature, TableData->Description); } printf ("\nTotal %u ACPI tables\n\n", i-1); } /******************************************************************************* * * FUNCTION: UtDisplayConstantOpcodes * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Print AML opcodes that can be used in constant expressions. * ******************************************************************************/ void UtDisplayConstantOpcodes ( void) { UINT32 i; printf ("Constant expression opcode information\n\n"); for (i = 0; i < sizeof (AcpiGbl_AmlOpInfo) / sizeof (ACPI_OPCODE_INFO); i++) { if (AcpiGbl_AmlOpInfo[i].Flags & AML_CONSTANT) { printf ("%s\n", AcpiGbl_AmlOpInfo[i].Name); } } } /******************************************************************************* * * FUNCTION: UtBeginEvent * * PARAMETERS: Name - Ascii name of this event * * RETURN: Event number (integer index) * * DESCRIPTION: Saves the current time with this event * ******************************************************************************/ UINT8 UtBeginEvent ( char *Name) { if (AslGbl_NextEvent >= ASL_NUM_EVENTS) { AcpiOsPrintf ("Ran out of compiler event structs!\n"); return (AslGbl_NextEvent); } /* Init event with current (start) time */ AslGbl_Events[AslGbl_NextEvent].StartTime = AcpiOsGetTimer (); AslGbl_Events[AslGbl_NextEvent].EventName = Name; AslGbl_Events[AslGbl_NextEvent].Valid = TRUE; return (AslGbl_NextEvent++); } /******************************************************************************* * * FUNCTION: UtEndEvent * * PARAMETERS: Event - Event number (integer index) * * RETURN: None * * DESCRIPTION: Saves the current time (end time) with this event * ******************************************************************************/ void UtEndEvent ( UINT8 Event) { if (Event >= ASL_NUM_EVENTS) { return; } /* Insert end time for event */ AslGbl_Events[Event].EndTime = AcpiOsGetTimer (); } /******************************************************************************* * * FUNCTION: DbgPrint * * PARAMETERS: Type - Type of output * Fmt - Printf format string * ... - variable printf list * * RETURN: None * * DESCRIPTION: Conditional print statement. Prints to stderr only if the * debug flag is set. * ******************************************************************************/ void DbgPrint ( UINT32 Type, char *Fmt, ...) { va_list Args; if (!AslGbl_DebugFlag) { return; } if ((Type == ASL_PARSE_OUTPUT) && (!(AslCompilerdebug))) { return; } va_start (Args, Fmt); (void) vfprintf (stderr, Fmt, Args); va_end (Args); return; } /******************************************************************************* * * FUNCTION: UtSetParseOpName * * PARAMETERS: Op - Parse op to be named. * * RETURN: None * * DESCRIPTION: Insert the ascii name of the parse opcode * ******************************************************************************/ void UtSetParseOpName ( ACPI_PARSE_OBJECT *Op) { AcpiUtSafeStrncpy (Op->Asl.ParseOpName, UtGetOpName (Op->Asl.ParseOpcode), ACPI_MAX_PARSEOP_NAME); } /******************************************************************************* * * FUNCTION: UtDisplayOneSummary * * PARAMETERS: FileID - ID of output file * * RETURN: None * * DESCRIPTION: Display compilation statistics for one input file * ******************************************************************************/ void UtDisplayOneSummary ( UINT32 FileId, BOOLEAN DisplayErrorSummary) { UINT32 i; ASL_GLOBAL_FILE_NODE *FileNode; BOOLEAN DisplayAMLSummary; DisplayAMLSummary = !AslGbl_PreprocessOnly && !AslGbl_ParserErrorDetected && ((AslGbl_ExceptionCount[ASL_ERROR] == 0) || AslGbl_IgnoreErrors) && AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle; if (FileId != ASL_FILE_STDOUT) { /* Compiler name and version number */ FlPrintFile (FileId, "%s version %X [%s]\n\n", ASL_COMPILER_NAME, (UINT32) ACPI_CA_VERSION, __DATE__); } /* Summary of main input and output files */ FileNode = FlGetCurrentFileNode (); if (FileNode->ParserErrorDetected) { FlPrintFile (FileId, "%-14s %s - Compilation aborted due to parser-detected syntax error(s)\n", "Input file:", AslGbl_Files[ASL_FILE_INPUT].Filename); } else if (FileNode->FileType == ASL_INPUT_TYPE_ASCII_DATA) { FlPrintFile (FileId, "%-14s %s - %7u bytes %6u fields %8u source lines\n", "Table Input:", AslGbl_Files[ASL_FILE_INPUT].Filename, FileNode->OriginalInputFileSize, FileNode->TotalFields, FileNode->TotalLineCount); FlPrintFile (FileId, "%-14s %s - %7u bytes\n", "Binary Output:", AslGbl_Files[ASL_FILE_AML_OUTPUT].Filename, FileNode->OutputByteLength); } else if (FileNode->FileType == ASL_INPUT_TYPE_ASCII_ASL) { FlPrintFile (FileId, "%-14s %s - %7u bytes %6u keywords %6u source lines\n", "ASL Input:", AslGbl_Files[ASL_FILE_INPUT].Filename, FileNode->OriginalInputFileSize, FileNode->TotalKeywords, FileNode->TotalLineCount); /* AML summary */ if (DisplayAMLSummary) { FlPrintFile (FileId, "%-14s %s - %7u bytes %6u opcodes %6u named objects\n", "AML Output:", AslGbl_Files[ASL_FILE_AML_OUTPUT].Filename, FlGetFileSize (ASL_FILE_AML_OUTPUT), FileNode->TotalExecutableOpcodes, FileNode->TotalNamedObjects); } } /* Display summary of any optional files */ for (i = ASL_FILE_SOURCE_OUTPUT; i <= ASL_MAX_FILE_TYPE; i++) { if (!AslGbl_Files[i].Filename || !AslGbl_Files[i].Handle) { continue; } /* .SRC is a temp file unless specifically requested */ if ((i == ASL_FILE_SOURCE_OUTPUT) && (!AslGbl_SourceOutputFlag)) { continue; } /* .PRE is the preprocessor intermediate file */ if ((i == ASL_FILE_PREPROCESSOR) && (!AslGbl_KeepPreprocessorTempFile)) { continue; } FlPrintFile (FileId, "%-14s %s - %7u bytes\n", AslGbl_FileDescs[i].ShortDescription, AslGbl_Files[i].Filename, FlGetFileSize (i)); } /* * Optionally emit an error summary for a file. This is used to enhance the * appearance of listing files. */ if (DisplayErrorSummary) { UtDisplayErrorSummary (FileId); } } /******************************************************************************* * * FUNCTION: UtDisplayErrorSummary * * PARAMETERS: FileID - ID of output file * * RETURN: None * * DESCRIPTION: Display compilation statistics for all input files * ******************************************************************************/ static void UtDisplayErrorSummary ( UINT32 FileId) { BOOLEAN ErrorDetected; ErrorDetected = AslGbl_ParserErrorDetected || ((AslGbl_ExceptionCount[ASL_ERROR] > 0) && !AslGbl_IgnoreErrors); if (ErrorDetected) { FlPrintFile (FileId, "\nCompilation failed. "); } else { FlPrintFile (FileId, "\nCompilation successful. "); } FlPrintFile (FileId, "%u Errors, %u Warnings, %u Remarks", AslGbl_ExceptionCount[ASL_ERROR], AslGbl_ExceptionCount[ASL_WARNING] + AslGbl_ExceptionCount[ASL_WARNING2] + AslGbl_ExceptionCount[ASL_WARNING3], AslGbl_ExceptionCount[ASL_REMARK]); if (AslGbl_FileType != ASL_INPUT_TYPE_ASCII_DATA) { if (AslGbl_ParserErrorDetected) { FlPrintFile (FileId, "\nNo AML files were generated due to syntax error(s)\n"); return; } else if (ErrorDetected) { FlPrintFile (FileId, "\nNo AML files were generated due to compiler error(s)\n"); return; } FlPrintFile (FileId, ", %u Optimizations", AslGbl_ExceptionCount[ASL_OPTIMIZATION]); if (AslGbl_TotalFolds) { FlPrintFile (FileId, ", %u Constants Folded", AslGbl_TotalFolds); } } FlPrintFile (FileId, "\n"); } /******************************************************************************* * * FUNCTION: UtDisplaySummary * * PARAMETERS: FileID - ID of output file * * RETURN: None * * DESCRIPTION: Display compilation statistics for all input files * ******************************************************************************/ void UtDisplaySummary ( UINT32 FileId) { ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; while (Current) { switch (FlSwitchFileSet(Current->Files[ASL_FILE_INPUT].Filename)) { case SWITCH_TO_SAME_FILE: case SWITCH_TO_DIFFERENT_FILE: UtDisplayOneSummary (FileId, FALSE); Current = Current->Next; break; case FILE_NOT_FOUND: default: Current = NULL; break; } } UtDisplayErrorSummary (FileId); } /******************************************************************************* * * FUNCTION: UtCheckIntegerRange * * PARAMETERS: Op - Integer parse node * LowValue - Smallest allowed value * HighValue - Largest allowed value * * RETURN: Op if OK, otherwise NULL * * DESCRIPTION: Check integer for an allowable range * ******************************************************************************/ ACPI_PARSE_OBJECT * UtCheckIntegerRange ( ACPI_PARSE_OBJECT *Op, UINT32 LowValue, UINT32 HighValue) { if (!Op) { return (NULL); } if ((Op->Asl.Value.Integer < LowValue) || (Op->Asl.Value.Integer > HighValue)) { sprintf (AslGbl_MsgBuffer, "0x%X, allowable: 0x%X-0x%X", (UINT32) Op->Asl.Value.Integer, LowValue, HighValue); AslError (ASL_ERROR, ASL_MSG_RANGE, Op, AslGbl_MsgBuffer); return (NULL); } return (Op); } /******************************************************************************* * * FUNCTION: UtInternalizeName * * PARAMETERS: ExternalName - Name to convert * ConvertedName - Where the converted name is returned * * RETURN: Status * * DESCRIPTION: Convert an external (ASL) name to an internal (AML) name * ******************************************************************************/ ACPI_STATUS UtInternalizeName ( char *ExternalName, char **ConvertedName) { ACPI_NAMESTRING_INFO Info; ACPI_STATUS Status; if (!ExternalName) { return (AE_OK); } /* Get the length of the new internal name */ Info.ExternalName = ExternalName; AcpiNsGetInternalNameLength (&Info); /* We need a segment to store the internal name */ Info.InternalName = UtLocalCacheCalloc (Info.Length); /* Build the name */ Status = AcpiNsBuildInternalName (&Info); if (ACPI_FAILURE (Status)) { return (Status); } *ConvertedName = Info.InternalName; return (AE_OK); } /******************************************************************************* * * FUNCTION: UtPadNameWithUnderscores * * PARAMETERS: NameSeg - Input nameseg * PaddedNameSeg - Output padded nameseg * * RETURN: Padded nameseg. * * DESCRIPTION: Pads a NameSeg with underscores if necessary to form a full * ACPI_NAME. * ******************************************************************************/ static void UtPadNameWithUnderscores ( char *NameSeg, char *PaddedNameSeg) { UINT32 i; for (i = 0; (i < ACPI_NAMESEG_SIZE); i++) { if (*NameSeg) { *PaddedNameSeg = *NameSeg; NameSeg++; } else { *PaddedNameSeg = '_'; } PaddedNameSeg++; } } /******************************************************************************* * * FUNCTION: UtAttachNameseg * * PARAMETERS: Op - Parent parse node * Name - Full ExternalName * * RETURN: None; Sets the NameSeg field in parent node * * DESCRIPTION: Extract the last nameseg of the ExternalName and store it * in the NameSeg field of the Op. * ******************************************************************************/ static void UtAttachNameseg ( ACPI_PARSE_OBJECT *Op, char *Name) { char *NameSeg; char PaddedNameSeg[4]; if (!Name) { return; } /* Look for the last dot in the namepath */ NameSeg = strrchr (Name, '.'); if (NameSeg) { /* Found last dot, we have also found the final nameseg */ NameSeg++; UtPadNameWithUnderscores (NameSeg, PaddedNameSeg); } else { /* No dots in the namepath, there is only a single nameseg. */ /* Handle prefixes */ while (ACPI_IS_ROOT_PREFIX (*Name) || ACPI_IS_PARENT_PREFIX (*Name)) { Name++; } /* Remaining string should be one single nameseg */ UtPadNameWithUnderscores (Name, PaddedNameSeg); } ACPI_COPY_NAMESEG (Op->Asl.NameSeg, PaddedNameSeg); } /******************************************************************************* * * FUNCTION: UtAttachNamepathToOwner * * PARAMETERS: Op - Parent parse node * NameOp - Node that contains the name * * RETURN: Sets the ExternalName and Namepath in the parent node * * DESCRIPTION: Store the name in two forms in the parent node: The original * (external) name, and the internalized name that is used within * the ACPI namespace manager. * ******************************************************************************/ void UtAttachNamepathToOwner ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *NameOp) { ACPI_STATUS Status; /* Full external path */ Op->Asl.ExternalName = NameOp->Asl.Value.String; /* Save the NameOp for possible error reporting later */ Op->Asl.ParentMethod = (void *) NameOp; /* Last nameseg of the path */ UtAttachNameseg (Op, Op->Asl.ExternalName); /* Create internalized path */ Status = UtInternalizeName (NameOp->Asl.Value.String, &Op->Asl.Namepath); if (ACPI_FAILURE (Status)) { /* TBD: abort on no memory */ } } /******************************************************************************* * * FUNCTION: UtNameContainsAllPrefix * * PARAMETERS: Op - Op containing NameString * * RETURN: NameString consists of all ^ characters * * DESCRIPTION: Determine if this Op contains a name segment that consists of * all '^' characters. * ******************************************************************************/ BOOLEAN UtNameContainsAllPrefix ( ACPI_PARSE_OBJECT *Op) { UINT32 Length = Op->Asl.AmlLength; UINT32 i; for (i = 0; i < Length; i++) { if (Op->Asl.Value.String[i] != '^') { return (FALSE); } } return (TRUE); } /******************************************************************************* * * FUNCTION: UtDoConstant * * PARAMETERS: String - Hex/Decimal/Octal * * RETURN: Converted Integer * * DESCRIPTION: Convert a string to an integer, with overflow/error checking. * ******************************************************************************/ UINT64 UtDoConstant ( char *String) { ACPI_STATUS Status; UINT64 ConvertedInteger; char ErrBuf[128]; const ACPI_EXCEPTION_INFO *ExceptionInfo; Status = AcpiUtStrtoul64 (String, &ConvertedInteger); if (ACPI_FAILURE (Status)) { ExceptionInfo = AcpiUtValidateException ((ACPI_STATUS) Status); sprintf (ErrBuf, " %s while converting to 64-bit integer", ExceptionInfo->Description); AslCommonError (ASL_ERROR, ASL_MSG_SYNTAX, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, ErrBuf); } return (ConvertedInteger); } /****************************************************************************** * * FUNCTION: AcpiUtStrdup * * PARAMETERS: String1 - string to duplicate * * RETURN: int that signifies string relationship. Zero means strings * are equal. * * DESCRIPTION: Duplicate the string using UtCacheAlloc to avoid manual memory * reclamation. * ******************************************************************************/ char * AcpiUtStrdup ( char *String) { char *NewString = (char *) UtLocalCalloc (strlen (String) + 1); strcpy (NewString, String); return (NewString); } /****************************************************************************** * * FUNCTION: AcpiUtStrcat * * PARAMETERS: String1 * String2 * * RETURN: New string with String1 concatenated with String2 * * DESCRIPTION: Concatenate string1 and string2 * ******************************************************************************/ char * AcpiUtStrcat ( char *String1, char *String2) { UINT32 String1Length = strlen (String1); char *NewString = (char *) UtLocalCalloc (strlen (String1) + strlen (String2) + 1); strcpy (NewString, String1); strcpy (NewString + String1Length, String2); return (NewString); } acpica-unix-20250404/source/compiler/aslrestype1.c0000775000175000017500000005040214773714131021273 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslrestype1 - Miscellaneous small resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslrestype1") /* * This module contains miscellaneous small resource descriptors: * * EndTag * EndDependentFn * Memory24 * Memory32 * Memory32Fixed * StartDependentFn * StartDependentFnNoPri * VendorShort */ /******************************************************************************* * * FUNCTION: RsDoEndTagDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "EndDependentFn" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoEndTagDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ASL_RESOURCE_NODE *Rnode; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_END_TAG)); Descriptor = Rnode->Buffer; Descriptor->EndTag.DescriptorType = ACPI_RESOURCE_NAME_END_TAG | ASL_RDESC_END_TAG_SIZE; Descriptor->EndTag.Checksum = 0; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoEndDependentDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "EndDependentFn" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoEndDependentDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ASL_RESOURCE_NODE *Rnode; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_END_DEPENDENT)); Descriptor = Rnode->Buffer; Descriptor->EndDpf.DescriptorType = ACPI_RESOURCE_NAME_END_DEPENDENT | ASL_RDESC_END_DEPEND_SIZE; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoMemory24Descriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "Memory24" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoMemory24Descriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_MEMORY24)); Descriptor = Rnode->Buffer; Descriptor->Memory24.DescriptorType = ACPI_RESOURCE_NAME_MEMORY24; Descriptor->Memory24.ResourceLength = 9; /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Read/Write type */ RsSetFlagBits (&Descriptor->Memory24.Flags, InitializerOp, 0, 1); RsCreateBitField (InitializerOp, ACPI_RESTAG_READWRITETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory24.Flags), 0); break; case 1: /* Min Address */ Descriptor->Memory24.Minimum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory24.Minimum)); MinOp = InitializerOp; break; case 2: /* Max Address */ Descriptor->Memory24.Maximum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory24.Maximum)); MaxOp = InitializerOp; break; case 3: /* Alignment */ Descriptor->Memory24.Alignment = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_ALIGNMENT, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory24.Alignment)); break; case 4: /* Length */ Descriptor->Memory24.AddressLength = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory24.AddressLength)); LengthOp = InitializerOp; break; case 5: /* Name */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Align values (Alignment==0 means 64K) */ RsSmallAddressCheck (ACPI_RESOURCE_NAME_MEMORY24, Descriptor->Memory24.Minimum, Descriptor->Memory24.Maximum, Descriptor->Memory24.AddressLength, Descriptor->Memory24.Alignment, MinOp, MaxOp, LengthOp, NULL, Info->DescriptorTypeOp); return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoMemory32Descriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "Memory32" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoMemory32Descriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *AlignOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_MEMORY32)); Descriptor = Rnode->Buffer; Descriptor->Memory32.DescriptorType = ACPI_RESOURCE_NAME_MEMORY32; Descriptor->Memory32.ResourceLength = 17; /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Read/Write type */ RsSetFlagBits (&Descriptor->Memory32.Flags, InitializerOp, 0, 1); RsCreateBitField (InitializerOp, ACPI_RESTAG_READWRITETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory32.Flags), 0); break; case 1: /* Min Address */ Descriptor->Memory32.Minimum = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory32.Minimum)); MinOp = InitializerOp; break; case 2: /* Max Address */ Descriptor->Memory32.Maximum = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory32.Maximum)); MaxOp = InitializerOp; break; case 3: /* Alignment */ Descriptor->Memory32.Alignment = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_ALIGNMENT, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory32.Alignment)); AlignOp = InitializerOp; break; case 4: /* Length */ Descriptor->Memory32.AddressLength = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Memory32.AddressLength)); LengthOp = InitializerOp; break; case 5: /* Name */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Align values */ RsSmallAddressCheck (ACPI_RESOURCE_NAME_MEMORY32, Descriptor->Memory32.Minimum, Descriptor->Memory32.Maximum, Descriptor->Memory32.AddressLength, Descriptor->Memory32.Alignment, MinOp, MaxOp, LengthOp, AlignOp, Info->DescriptorTypeOp); return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoMemory32FixedDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "Memory32Fixed" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoMemory32FixedDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_FIXED_MEMORY32)); Descriptor = Rnode->Buffer; Descriptor->FixedMemory32.DescriptorType = ACPI_RESOURCE_NAME_FIXED_MEMORY32; Descriptor->FixedMemory32.ResourceLength = 9; /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Read/Write type */ RsSetFlagBits (&Descriptor->FixedMemory32.Flags, InitializerOp, 0, 1); RsCreateBitField (InitializerOp, ACPI_RESTAG_READWRITETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedMemory32.Flags), 0); break; case 1: /* Address */ Descriptor->FixedMemory32.Address = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_BASEADDRESS, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedMemory32.Address)); break; case 2: /* Length */ Descriptor->FixedMemory32.AddressLength = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedMemory32.AddressLength)); break; case 3: /* Name */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoStartDependentDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "StartDependentFn" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoStartDependentDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; ASL_RESOURCE_NODE *PreviousRnode; ASL_RESOURCE_NODE *NextRnode; ASL_RESOURCE_INFO NextInfo; UINT32 CurrentByteOffset; UINT32 i; UINT8 State; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_START_DEPENDENT)); PreviousRnode = Rnode; Descriptor = Rnode->Buffer; /* Increment offset past StartDependent descriptor */ CurrentByteOffset += sizeof (AML_RESOURCE_START_DEPENDENT); /* Descriptor has priority byte */ Descriptor->StartDpf.DescriptorType = ACPI_RESOURCE_NAME_START_DEPENDENT | (ASL_RDESC_ST_DEPEND_SIZE + 0x01); /* Process all child initialization nodes */ State = ACPI_RSTATE_START_DEPENDENT; for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Compatibility Priority */ if ((UINT8) InitializerOp->Asl.Value.Integer > 2) { AslError (ASL_ERROR, ASL_MSG_INVALID_PRIORITY, InitializerOp, NULL); } RsSetFlagBits (&Descriptor->StartDpf.Flags, InitializerOp, 0, 0); break; case 1: /* Performance/Robustness Priority */ if ((UINT8) InitializerOp->Asl.Value.Integer > 2) { AslError (ASL_ERROR, ASL_MSG_INVALID_PERFORMANCE, InitializerOp, NULL); } RsSetFlagBits (&Descriptor->StartDpf.Flags, InitializerOp, 2, 0); break; default: NextInfo.CurrentByteOffset = CurrentByteOffset; NextInfo.DescriptorTypeOp = InitializerOp; NextRnode = RsDoOneResourceDescriptor (&NextInfo, &State); /* * Update current byte offset to indicate the number of bytes from the * start of the buffer. Buffer can include multiple descriptors, we * must keep track of the offset of not only each descriptor, but each * element (field) within each descriptor as well. */ CurrentByteOffset += RsLinkDescriptorChain ( &PreviousRnode, NextRnode); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoStartDependentNoPriDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "StartDependentNoPri" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoStartDependentNoPriDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; ASL_RESOURCE_NODE *PreviousRnode; ASL_RESOURCE_NODE *NextRnode; ASL_RESOURCE_INFO NextInfo; UINT32 CurrentByteOffset; UINT8 State; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_START_DEPENDENT_NOPRIO)); Descriptor = Rnode->Buffer; Descriptor->StartDpf.DescriptorType = ACPI_RESOURCE_NAME_START_DEPENDENT | ASL_RDESC_ST_DEPEND_SIZE; PreviousRnode = Rnode; /* Increment offset past StartDependentNoPri descriptor */ CurrentByteOffset += sizeof (AML_RESOURCE_START_DEPENDENT_NOPRIO); /* Process all child initialization nodes */ State = ACPI_RSTATE_START_DEPENDENT; while (InitializerOp) { NextInfo.CurrentByteOffset = CurrentByteOffset; NextInfo.DescriptorTypeOp = InitializerOp; NextRnode = RsDoOneResourceDescriptor (&NextInfo, &State); /* * Update current byte offset to indicate the number of bytes from the * start of the buffer. Buffer can include multiple descriptors, we * must keep track of the offset of not only each descriptor, but each * element (field) within each descriptor as well. */ CurrentByteOffset += RsLinkDescriptorChain (&PreviousRnode, NextRnode); InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoVendorSmallDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "VendorShort" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoVendorSmallDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT8 *VendorData; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; /* Allocate worst case - 7 vendor bytes */ Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_VENDOR_SMALL) + 7); Descriptor = Rnode->Buffer; Descriptor->VendorSmall.DescriptorType = ACPI_RESOURCE_NAME_VENDOR_SMALL; VendorData = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_SMALL_HEADER); /* Process all child initialization nodes */ InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); for (i = 0; InitializerOp; i++) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { break; } /* Maximum 7 vendor data bytes allowed (0-6) */ if (i >= 7) { AslError (ASL_ERROR, ASL_MSG_VENDOR_LIST, InitializerOp, NULL); /* Eat the excess initializers */ while (InitializerOp) { InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } break; } VendorData[i] = (UINT8) InitializerOp->Asl.Value.Integer; InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Adjust the Rnode buffer size, so correct number of bytes are emitted */ Rnode->BufferLength -= (7 - i); /* Set the length in the Type Tag */ Descriptor->VendorSmall.DescriptorType |= (UINT8) i; return (Rnode); } acpica-unix-20250404/source/compiler/asllisting.c0000775000175000017500000004642414773714131021201 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asllisting - Listing file generation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #include "acparser.h" #include "acnamesp.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asllisting") /* Local prototypes */ static void LsGenerateListing ( UINT32 FileId); static ACPI_STATUS LsAmlListingWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS LsTreeWriteWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static void LsWriteNodeToListing ( ACPI_PARSE_OBJECT *Op, UINT32 FileId); static void LsFinishSourceListing ( UINT32 FileId); /******************************************************************************* * * FUNCTION: LsDoListings * * PARAMETERS: None. Examines the various output file global flags. * * RETURN: None * * DESCRIPTION: Generate all requested listing files. * ******************************************************************************/ void LsDoListings ( void) { if (AslGbl_C_OutputFlag) { LsGenerateListing (ASL_FILE_C_SOURCE_OUTPUT); } if (AslGbl_ListingFlag) { LsGenerateListing (ASL_FILE_LISTING_OUTPUT); } if (AslGbl_AsmOutputFlag) { LsGenerateListing (ASL_FILE_ASM_SOURCE_OUTPUT); } if (AslGbl_C_IncludeOutputFlag) { LsGenerateListing (ASL_FILE_C_INCLUDE_OUTPUT); } if (AslGbl_AsmIncludeOutputFlag) { LsGenerateListing (ASL_FILE_ASM_INCLUDE_OUTPUT); } if (AslGbl_C_OffsetTableFlag) { LsGenerateListing (ASL_FILE_C_OFFSET_OUTPUT); } } /******************************************************************************* * * FUNCTION: LsGenerateListing * * PARAMETERS: FileId - ID of listing file * * RETURN: None * * DESCRIPTION: Generate a listing file. This can be one of the several types * of "listings" supported. * ******************************************************************************/ static void LsGenerateListing ( UINT32 FileId) { UINT32 WalkMode = ASL_WALK_VISIT_DOWNWARD | ASL_WALK_VISIT_DB_SEPARATELY; /* Start at the beginning of both the source and AML files */ FlSeekFile (ASL_FILE_SOURCE_OUTPUT, 0); FlSeekFile (ASL_FILE_AML_OUTPUT, 0); AslGbl_SourceLine = 0; AslGbl_CurrentHexColumn = 0; LsPushNode (AslGbl_Files[ASL_FILE_INPUT].Filename); if (FileId == ASL_FILE_C_OFFSET_OUTPUT) { AslGbl_CurrentAmlOffset = 0; /* Offset table file has a special header and footer */ LsDoOffsetTableHeader (FileId); TrWalkParseTree (AslGbl_CurrentDB, WalkMode, LsAmlOffsetWalk, NULL, (void *) ACPI_TO_POINTER (FileId)); LsDoOffsetTableFooter (FileId); return; } /* Process all parse nodes */ TrWalkParseTree (AslGbl_CurrentDB, WalkMode, LsAmlListingWalk, NULL, (void *) ACPI_TO_POINTER (FileId)); /* Final processing */ LsFinishSourceListing (FileId); } /******************************************************************************* * * FUNCTION: LsAmlListingWalk * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Process one node during a listing file generation. * ******************************************************************************/ static ACPI_STATUS LsAmlListingWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { UINT8 FileByte; UINT32 i; UINT32 FileId = (UINT32) ACPI_TO_INTEGER (Context); LsWriteNodeToListing (Op, FileId); if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DATA) { /* Buffer is a resource template, don't dump the data all at once */ return (AE_OK); } if ((FileId == ASL_FILE_ASM_INCLUDE_OUTPUT) || (FileId == ASL_FILE_C_INCLUDE_OUTPUT)) { return (AE_OK); } /* Write the hex bytes to the listing file(s) (if requested) */ for (i = 0; i < Op->Asl.FinalAmlLength; i++) { if (ACPI_FAILURE (FlReadFile (ASL_FILE_AML_OUTPUT, &FileByte, 1))) { FlFileError (ASL_FILE_AML_OUTPUT, ASL_MSG_READ); AslAbort (); } LsWriteListingHexBytes (&FileByte, 1, FileId); } return (AE_OK); } /******************************************************************************* * * FUNCTION: LsDumpParseTree, LsTreeWriteWalk * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Dump entire parse tree, for compiler debug only * ******************************************************************************/ void LsDumpParseTree ( void) { if (!AslGbl_DebugFlag) { return; } DbgPrint (ASL_TREE_OUTPUT, "\nOriginal parse tree from parser:\n\n"); DbgPrint (ASL_TREE_OUTPUT, ASL_PARSE_TREE_HEADER1); TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, LsTreeWriteWalk, NULL, NULL); DbgPrint (ASL_TREE_OUTPUT, ASL_PARSE_TREE_HEADER1); } static ACPI_STATUS LsTreeWriteWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { /* Dump ParseOp name and possible value */ switch (Op->Asl.ParseOpcode) { case PARSEOP_NAMESEG: case PARSEOP_NAMESTRING: case PARSEOP_METHODCALL: case PARSEOP_STRING_LITERAL: UtDumpStringOp (Op, Level); break; case PARSEOP_BYTECONST: UtDumpIntegerOp (Op, Level, 2); break; case PARSEOP_WORDCONST: case PARSEOP_PACKAGE_LENGTH: UtDumpIntegerOp (Op, Level, 4); break; case PARSEOP_DWORDCONST: case PARSEOP_EISAID: UtDumpIntegerOp (Op, Level, 8); break; case PARSEOP_QWORDCONST: case PARSEOP_INTEGER: case PARSEOP_ONE: case PARSEOP_ZERO: case PARSEOP_ONES: UtDumpIntegerOp (Op, Level, 16); break; case PARSEOP_INCLUDE: DbgPrint (ASL_TREE_OUTPUT, "Open: %s\n", Op->Asl.Value.String); return (AE_OK); case PARSEOP_INCLUDE_END: DbgPrint (ASL_TREE_OUTPUT, "Close: %s\n", Op->Asl.Filename); return (AE_OK); default: UtDumpBasicOp (Op, Level); break; } /* Dump the remaining data */ DbgPrint (ASL_TREE_OUTPUT, ASL_PARSE_TREE_DEBUG1, Op->Asl.ParseOpcode, Op->Asl.CompileFlags, Op->Asl.LineNumber, Op->Asl.EndLine, Op->Asl.LogicalLineNumber, Op->Asl.EndLogicalLine); TrPrintOpFlags (Op->Asl.CompileFlags, ASL_TREE_OUTPUT); DbgPrint (ASL_TREE_OUTPUT, "\n"); return (AE_OK); } /******************************************************************************* * * FUNCTION: LsWriteNodeToListing * * PARAMETERS: Op - Parse node to write to the listing file. * FileId - ID of current listing file * * RETURN: None. * * DESCRIPTION: Write "a node" to the listing file. This means to * 1) Write out all of the source text associated with the node * 2) Write out all of the AML bytes associated with the node * 3) Write any compiler exceptions associated with the node * ******************************************************************************/ static void LsWriteNodeToListing ( ACPI_PARSE_OBJECT *Op, UINT32 FileId) { const ACPI_OPCODE_INFO *OpInfo; UINT32 OpClass; char *Pathname; UINT32 Length; UINT32 i; OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); OpClass = OpInfo->Class; /* TBD: clean this up with a single flag that says: * I start a named output block */ if (FileId == ASL_FILE_C_SOURCE_OUTPUT) { switch (Op->Asl.ParseOpcode) { case PARSEOP_DEFINITION_BLOCK: case PARSEOP_METHODCALL: case PARSEOP_INCLUDE: case PARSEOP_INCLUDE_END: case PARSEOP_DEFAULT_ARG: break; default: switch (OpClass) { case AML_CLASS_NAMED_OBJECT: switch (Op->Asl.AmlOpcode) { case AML_SCOPE_OP: case AML_ALIAS_OP: break; default: if (Op->Asl.ExternalName) { LsFlushListingBuffer (FileId); FlPrintFile (FileId, " };\n"); } break; } break; default: /* Don't care about other objects */ break; } break; } } /* These cases do not have a corresponding AML opcode */ switch (Op->Asl.ParseOpcode) { case PARSEOP_DEFINITION_BLOCK: /* Always start a definition block at AML offset zero */ AslGbl_CurrentAmlOffset = 0; LsWriteSourceLines (Op->Asl.EndLine, Op->Asl.EndLogicalLine, FileId); /* Use the table Signature and TableId to build a unique name */ switch (FileId) { case ASL_FILE_ASM_SOURCE_OUTPUT: FlPrintFile (FileId, "%s_%s_Header \\\n", AslGbl_TableSignature, AslGbl_TableId); break; case ASL_FILE_C_SOURCE_OUTPUT: FlPrintFile (FileId, " unsigned char %s_%s_Header [] =\n {\n", AslGbl_TableSignature, AslGbl_TableId); break; case ASL_FILE_ASM_INCLUDE_OUTPUT: FlPrintFile (FileId, "extrn %s_%s_Header : byte\n", AslGbl_TableSignature, AslGbl_TableId); break; case ASL_FILE_C_INCLUDE_OUTPUT: FlPrintFile (FileId, "extern unsigned char %s_%s_Header [];\n", AslGbl_TableSignature, AslGbl_TableId); break; default: break; } return; case PARSEOP_METHODCALL: LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber, FileId); return; case PARSEOP_INCLUDE: /* Flush everything up to and including the include source line */ LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber, FileId); /* Create a new listing node and push it */ LsPushNode (Op->Asl.Value.String); return; case PARSEOP_INCLUDE_END: /* Flush out the rest of the include file */ LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber, FileId); /* Pop off this listing node and go back to the parent file */ (void) LsPopNode (); return; case PARSEOP_DEFAULT_ARG: if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC) { LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.EndLogicalLine, FileId); } return; default: /* All other opcodes have an AML opcode */ break; } /* * Otherwise, we look at the AML opcode because we can * switch on the opcode type, getting an entire class * at once */ switch (OpClass) { case AML_CLASS_ARGUMENT: /* argument type only */ case AML_CLASS_INTERNAL: break; case AML_CLASS_NAMED_OBJECT: switch (Op->Asl.AmlOpcode) { case AML_FIELD_OP: case AML_INDEX_FIELD_OP: case AML_BANK_FIELD_OP: /* * For fields, we want to dump all the AML after the * entire definition */ LsWriteSourceLines (Op->Asl.EndLine, Op->Asl.EndLogicalLine, FileId); break; case AML_NAME_OP: if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC) { LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber, FileId); } else { /* * For fields, we want to dump all the AML after the * entire definition */ LsWriteSourceLines (Op->Asl.EndLine, Op->Asl.EndLogicalLine, FileId); } break; default: LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber, FileId); break; } switch (Op->Asl.AmlOpcode) { case AML_SCOPE_OP: case AML_ALIAS_OP: /* These opcodes do not declare a new object, ignore them */ break; default: /* All other named object opcodes come here */ switch (FileId) { case ASL_FILE_ASM_SOURCE_OUTPUT: case ASL_FILE_C_SOURCE_OUTPUT: case ASL_FILE_ASM_INCLUDE_OUTPUT: case ASL_FILE_C_INCLUDE_OUTPUT: /* * For named objects, we will create a valid symbol so that the * AML code can be referenced from C or ASM */ if (Op->Asl.ExternalName) { /* Get the full pathname associated with this node */ Pathname = AcpiNsGetExternalPathname (Op->Asl.Node); Length = strlen (Pathname); if (Length >= 4) { /* Convert all dots in the path to underscores */ for (i = 0; i < Length; i++) { if (Pathname[i] == '.') { Pathname[i] = '_'; } } /* Create the appropriate symbol in the output file */ switch (FileId) { case ASL_FILE_ASM_SOURCE_OUTPUT: FlPrintFile (FileId, "%s_%s_%s \\\n", AslGbl_TableSignature, AslGbl_TableId, &Pathname[1]); break; case ASL_FILE_C_SOURCE_OUTPUT: FlPrintFile (FileId, " unsigned char %s_%s_%s [] =\n {\n", AslGbl_TableSignature, AslGbl_TableId, &Pathname[1]); break; case ASL_FILE_ASM_INCLUDE_OUTPUT: FlPrintFile (FileId, "extrn %s_%s_%s : byte\n", AslGbl_TableSignature, AslGbl_TableId, &Pathname[1]); break; case ASL_FILE_C_INCLUDE_OUTPUT: FlPrintFile (FileId, "extern unsigned char %s_%s_%s [];\n", AslGbl_TableSignature, AslGbl_TableId, &Pathname[1]); break; default: break; } } ACPI_FREE (Pathname); } break; default: /* Nothing to do for listing file */ break; } } break; case AML_CLASS_EXECUTE: case AML_CLASS_CREATE: default: if ((Op->Asl.ParseOpcode == PARSEOP_BUFFER) && (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC)) { return; } LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber, FileId); break; case AML_CLASS_UNKNOWN: break; } } /******************************************************************************* * * FUNCTION: LsFinishSourceListing * * PARAMETERS: FileId - ID of current listing file. * * RETURN: None * * DESCRIPTION: Cleanup routine for the listing file. Flush the hex AML * listing buffer, and flush out any remaining lines in the * source input file. * ******************************************************************************/ static void LsFinishSourceListing ( UINT32 FileId) { if ((FileId == ASL_FILE_ASM_INCLUDE_OUTPUT) || (FileId == ASL_FILE_C_INCLUDE_OUTPUT)) { return; } LsFlushListingBuffer (FileId); AslGbl_CurrentAmlOffset = 0; /* Flush any remaining text in the source file */ if (FileId == ASL_FILE_C_SOURCE_OUTPUT) { FlPrintFile (FileId, " /*\n"); } while (LsWriteOneSourceLine (FileId)) { ; } if (FileId == ASL_FILE_C_SOURCE_OUTPUT) { FlPrintFile (FileId, "\n */\n };\n"); } FlPrintFile (FileId, "\n"); if (FileId == ASL_FILE_LISTING_OUTPUT) { /* Print a summary of the compile exceptions */ FlPrintFile (FileId, "\n\nSummary of errors and warnings\n\n"); AePrintErrorLog (FileId); FlPrintFile (FileId, "\n"); UtDisplayOneSummary (FileId, TRUE); FlPrintFile (FileId, "\n"); } } acpica-unix-20250404/source/compiler/aslparseop.c0000775000175000017500000006144214773714131021176 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslparseop - Parse op create/allocate/cache interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acapps.h" #include "acconvert.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslparseop") /******************************************************************************* * * FUNCTION: TrCreateOp * * PARAMETERS: ParseOpcode - Opcode to be assigned to the op * NumChildren - Number of children to follow * ... - A list of child ops to link to the new * op. NumChildren long. * * RETURN: Pointer to the new op. Aborts on allocation failure * * DESCRIPTION: Create a new parse op and link together a list of child * ops underneath the new op. * ******************************************************************************/ ACPI_PARSE_OBJECT * TrCreateOp ( UINT32 ParseOpcode, UINT32 NumChildren, ...) { ACPI_PARSE_OBJECT *Op; ACPI_PARSE_OBJECT *Child; ACPI_PARSE_OBJECT *PrevChild; va_list ap; UINT32 i; BOOLEAN FirstChild; va_start (ap, NumChildren); /* Allocate one new op */ Op = TrAllocateOp (ParseOpcode); DbgPrint (ASL_PARSE_OUTPUT, "\nCreateOp Ln/Col %u/%u NewParent %p Child %u Op %s ", Op->Asl.LineNumber, Op->Asl.Column, Op, NumChildren, UtGetOpName(ParseOpcode)); /* Some extra debug output based on the parse opcode */ switch (ParseOpcode) { case PARSEOP_ASL_CODE: AslGbl_ParseTreeRoot = Op; Op->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; DbgPrint (ASL_PARSE_OUTPUT, "ASLCODE (Tree Completed)->"); break; case PARSEOP_DEFINITION_BLOCK: DbgPrint (ASL_PARSE_OUTPUT, "DEFINITION_BLOCK (Tree Completed)->"); break; case PARSEOP_OPERATIONREGION: DbgPrint (ASL_PARSE_OUTPUT, "OPREGION->"); break; case PARSEOP_OR: DbgPrint (ASL_PARSE_OUTPUT, "OR->"); break; default: /* Nothing to do for other opcodes */ break; } /* Link the new op to its children */ PrevChild = NULL; FirstChild = TRUE; for (i = 0; i < NumChildren; i++) { /* Get the next child */ Child = va_arg (ap, ACPI_PARSE_OBJECT *); DbgPrint (ASL_PARSE_OUTPUT, "%p, ", Child); /* * If child is NULL, this means that an optional argument * was omitted. We must create a placeholder with a special * opcode (DEFAULT_ARG) so that the code generator will know * that it must emit the correct default for this argument */ if (!Child) { Child = TrAllocateOp (PARSEOP_DEFAULT_ARG); } /* Link first child to parent */ if (FirstChild) { FirstChild = FALSE; Op->Asl.Child = Child; /* * For the ASL-/ASL+ converter: if the ParseOp is a Connection, * External, Offset or AccessAs, it means that the comments in the * FirstChild belongs to their parent due to the parsing order in * the .y files. To correct this, take the comments in the * FirstChild place it in the parent. This also means that * legitimate comments for the child gets put to the parent. */ if (AcpiGbl_CaptureComments && ((ParseOpcode == PARSEOP_CONNECTION) || (ParseOpcode == PARSEOP_EXTERNAL) || (ParseOpcode == PARSEOP_OFFSET) || (ParseOpcode == PARSEOP_ACCESSAS))) { Op->Asl.CommentList = Child->Asl.CommentList; Op->Asl.EndBlkComment = Child->Asl.EndBlkComment; Op->Asl.InlineComment = Child->Asl.InlineComment; Op->Asl.FileChanged = Child->Asl.FileChanged; Child->Asl.CommentList = NULL; Child->Asl.EndBlkComment = NULL; Child->Asl.InlineComment = NULL; Child->Asl.FileChanged = FALSE; /* * These do not need to be "passed off". They can be copied * because the code for these opcodes should be printed in the * same file. */ Op->Asl.Filename = Child->Asl.Filename; Op->Asl.ParentFilename = Child->Asl.ParentFilename; } } /* Point all children to parent */ Child->Asl.Parent = Op; /* Link children in a peer list */ if (PrevChild) { PrevChild->Asl.Next = Child; }; /* Get the comment from last child in the resource template call */ if (AcpiGbl_CaptureComments && (Op->Asl.ParseOpcode == PARSEOP_RESOURCETEMPLATE)) { CvDbgPrint ("Transferred current comment list to this op.\n"); Op->Asl.CommentList = Child->Asl.CommentList; Child->Asl.CommentList = NULL; Op->Asl.InlineComment = Child->Asl.InlineComment; Child->Asl.InlineComment = NULL; } /* * This child might be a list, point all ops in the list * to the same parent */ while (Child->Asl.Next) { Child = Child->Asl.Next; Child->Asl.Parent = Op; } PrevChild = Child; } va_end(ap); DbgPrint (ASL_PARSE_OUTPUT, "\n"); return (Op); } /******************************************************************************* * * FUNCTION: TrCreateLeafOp * * PARAMETERS: ParseOpcode - New opcode to be assigned to the op * * RETURN: Pointer to the new op. Aborts on allocation failure * * DESCRIPTION: Create a simple leaf op (no children or peers, and no value * assigned to the op) * ******************************************************************************/ ACPI_PARSE_OBJECT * TrCreateLeafOp ( UINT32 ParseOpcode) { ACPI_PARSE_OBJECT *Op; Op = TrAllocateOp (ParseOpcode); DbgPrint (ASL_PARSE_OUTPUT, "\nCreateLeafOp Ln/Col %u/%u NewOp %p Op %s\n\n", Op->Asl.LineNumber, Op->Asl.Column, Op, UtGetOpName (ParseOpcode)); return (Op); } /******************************************************************************* * * FUNCTION: TrCreateValuedLeafOp * * PARAMETERS: ParseOpcode - New opcode to be assigned to the op * Value - Value to be assigned to the op * * RETURN: Pointer to the new op. Aborts on allocation failure * * DESCRIPTION: Create a leaf op (no children or peers) with a value * assigned to it * ******************************************************************************/ ACPI_PARSE_OBJECT * TrCreateValuedLeafOp ( UINT32 ParseOpcode, UINT64 Value) { ACPI_PARSE_OBJECT *Op; UINT32 i; char *StringPtr = NULL; Op = TrAllocateOp (ParseOpcode); Op->Asl.Value.Integer = Value; DbgPrint (ASL_PARSE_OUTPUT, "\nCreateValuedLeafOp Ln/Col %u/%u NewOp %p " "Op %s Value %8.8X%8.8X ", Op->Asl.LineNumber, Op->Asl.Column, Op, UtGetOpName(ParseOpcode), ACPI_FORMAT_UINT64 (Value)); switch (ParseOpcode) { case PARSEOP_STRING_LITERAL: DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Op->Asl.Value.String); break; case PARSEOP_NAMESEG: /* Check for mixed case (or all lower case). Issue a remark in this case */ for (i = 0; i < ACPI_NAMESEG_SIZE; i++) { if (islower ((int) Op->Asl.Value.Name[i])) { AcpiUtStrupr (&Op->Asl.Value.Name[i]); AslError (ASL_REMARK, ASL_MSG_LOWER_CASE_NAMESEG, Op, Op->Asl.Value.Name); break; } } DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Op->Asl.Value.String); break; case PARSEOP_NAMESTRING: /* Check for mixed case (or all lower case). Issue a remark in this case */ StringPtr = Op->Asl.Value.Name; for (i = 0; *StringPtr; i++) { if (islower ((int) *StringPtr)) { AcpiUtStrupr (&Op->Asl.Value.Name[i]); AslError (ASL_REMARK, ASL_MSG_LOWER_CASE_NAMEPATH, Op, Op->Asl.Value.Name); break; } StringPtr++; } DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Op->Asl.Value.String); break; case PARSEOP_EISAID: DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Op->Asl.Value.String); break; case PARSEOP_METHOD: DbgPrint (ASL_PARSE_OUTPUT, "METHOD"); break; case PARSEOP_INTEGER: DbgPrint (ASL_PARSE_OUTPUT, "INTEGER->%8.8X%8.8X", ACPI_FORMAT_UINT64 (Value)); break; default: break; } DbgPrint (ASL_PARSE_OUTPUT, "\n\n"); return (Op); } /******************************************************************************* * * FUNCTION: TrCreateTargetOp * * PARAMETERS: OriginalOp - Op to be copied * * RETURN: Pointer to the new op. Aborts on allocation failure * * DESCRIPTION: Copy an existing op (and subtree). Used in ASL+ (C-style) * expressions where the target is the same as one of the * operands. A new op and subtree must be created from the * original so that the parse tree can be linked properly. * * NOTE: This code is specific to target operands that are the last * operand in an ASL/AML operator. Meaning that the top-level * parse Op in a possible subtree has a NULL Next pointer. * This simplifies the recursion. * * Subtree example: * DeRefOf (Local1) += 32 * * This gets converted to: * Add (DeRefOf (Local1), 32, DeRefOf (Local1)) * * Each DeRefOf has a single child, Local1. Even more complex * subtrees can be created via the Index and DeRefOf operators. * ******************************************************************************/ ACPI_PARSE_OBJECT * TrCreateTargetOp ( ACPI_PARSE_OBJECT *OriginalOp, ACPI_PARSE_OBJECT *ParentOp) { ACPI_PARSE_OBJECT *Op; if (!OriginalOp) { return (NULL); } Op = UtParseOpCacheCalloc (); /* Copy the pertinent values (omit link pointer fields) */ Op->Asl.Value = OriginalOp->Asl.Value; Op->Asl.Filename = OriginalOp->Asl.Filename; Op->Asl.LineNumber = OriginalOp->Asl.LineNumber; Op->Asl.LogicalLineNumber = OriginalOp->Asl.LogicalLineNumber; Op->Asl.LogicalByteOffset = OriginalOp->Asl.LogicalByteOffset; Op->Asl.Column = OriginalOp->Asl.Column; Op->Asl.Flags = OriginalOp->Asl.Flags; Op->Asl.CompileFlags = OriginalOp->Asl.CompileFlags; Op->Asl.AmlOpcode = OriginalOp->Asl.AmlOpcode; Op->Asl.ParseOpcode = OriginalOp->Asl.ParseOpcode; Op->Asl.Parent = ParentOp; UtSetParseOpName (Op); /* Copy a possible subtree below this op */ if (OriginalOp->Asl.Child) { Op->Asl.Child = TrCreateTargetOp (OriginalOp->Asl.Child, Op); } if (OriginalOp->Asl.Next) /* Null for top-level op */ { Op->Asl.Next = TrCreateTargetOp (OriginalOp->Asl.Next, ParentOp); } return (Op); } /******************************************************************************* * * FUNCTION: TrCreateAssignmentOp * * PARAMETERS: Target - Assignment target * Source - Assignment source * * RETURN: Pointer to the new op. Aborts on allocation failure * * DESCRIPTION: Implements the C-style '=' operator. It changes the parse * tree if possible to utilize the last argument of the math * operators which is a target operand -- thus saving invocation * of and additional Store() operator. An optimization. * ******************************************************************************/ ACPI_PARSE_OBJECT * TrCreateAssignmentOp ( ACPI_PARSE_OBJECT *Target, ACPI_PARSE_OBJECT *Source) { ACPI_PARSE_OBJECT *TargetOp; ACPI_PARSE_OBJECT *SourceOp1; ACPI_PARSE_OBJECT *SourceOp2; ACPI_PARSE_OBJECT *Operator; DbgPrint (ASL_PARSE_OUTPUT, "\nTrCreateAssignmentOp Line [%u to %u] Source %s Target %s\n", Source->Asl.LineNumber, Source->Asl.EndLine, UtGetOpName (Source->Asl.ParseOpcode), UtGetOpName (Target->Asl.ParseOpcode)); TrSetOpFlags (Target, OP_IS_TARGET); switch (Source->Asl.ParseOpcode) { /* * Only these operators can be optimized because they have * a target operand */ case PARSEOP_ADD: case PARSEOP_AND: case PARSEOP_DIVIDE: case PARSEOP_INDEX: case PARSEOP_MOD: case PARSEOP_MULTIPLY: case PARSEOP_NOT: case PARSEOP_OR: case PARSEOP_SHIFTLEFT: case PARSEOP_SHIFTRIGHT: case PARSEOP_SUBTRACT: case PARSEOP_XOR: break; /* Otherwise, just create a normal Store operator */ default: goto CannotOptimize; } /* * Transform the parse tree such that the target is moved to the * last operand of the operator */ SourceOp1 = Source->Asl.Child; SourceOp2 = SourceOp1->Asl.Next; /* NOT only has one operand, but has a target */ if (Source->Asl.ParseOpcode == PARSEOP_NOT) { SourceOp2 = SourceOp1; } /* DIVIDE has an extra target operand (remainder) */ if (Source->Asl.ParseOpcode == PARSEOP_DIVIDE) { SourceOp2 = SourceOp2->Asl.Next; } TargetOp = SourceOp2->Asl.Next; /* * Can't perform this optimization if there already is a target * for the operator (ZERO is a "no target" placeholder). */ if (TargetOp->Asl.ParseOpcode != PARSEOP_ZERO) { goto CannotOptimize; } /* Link in the target as the final operand */ SourceOp2->Asl.Next = Target; Target->Asl.Parent = Source; return (Source); CannotOptimize: Operator = TrAllocateOp (PARSEOP_STORE); TrLinkOpChildren (Operator, 2, Source, Target); /* Set the appropriate line numbers for the new op */ Operator->Asl.LineNumber = Target->Asl.LineNumber; Operator->Asl.LogicalLineNumber = Target->Asl.LogicalLineNumber; Operator->Asl.LogicalByteOffset = Target->Asl.LogicalByteOffset; Operator->Asl.Column = Target->Asl.Column; return (Operator); } /******************************************************************************* * * FUNCTION: TrCreateNullTargetOp * * PARAMETERS: None * * RETURN: Pointer to the new op. Aborts on allocation failure * * DESCRIPTION: Create a "null" target op. This is defined by the ACPI * specification to be a zero AML opcode, and indicates that * no target has been specified for the parent operation * ******************************************************************************/ ACPI_PARSE_OBJECT * TrCreateNullTargetOp ( void) { ACPI_PARSE_OBJECT *Op; Op = TrAllocateOp (PARSEOP_ZERO); Op->Asl.CompileFlags |= (OP_IS_TARGET | OP_COMPILE_TIME_CONST); DbgPrint (ASL_PARSE_OUTPUT, "\nCreateNullTargetOp Ln/Col %u/%u NewOp %p Op %s\n", Op->Asl.LineNumber, Op->Asl.Column, Op, UtGetOpName (Op->Asl.ParseOpcode)); return (Op); } /******************************************************************************* * * FUNCTION: TrCreateConstantLeafOp * * PARAMETERS: ParseOpcode - The constant opcode * * RETURN: Pointer to the new op. Aborts on allocation failure * * DESCRIPTION: Create a leaf op (no children or peers) for one of the * special constants - __LINE__, __FILE__, and __DATE__. * * Note: The fullimplemenation of __METHOD__ cannot happen here because we * don't have a full parse tree at this time and cannot find the parent * control method. __METHOD__ must be implemented later, after the parse * tree has been fully constructed. * ******************************************************************************/ ACPI_PARSE_OBJECT * TrCreateConstantLeafOp ( UINT32 ParseOpcode) { ACPI_PARSE_OBJECT *Op = NULL; time_t CurrentTime; char *StaticTimeString; char *TimeString; char *Filename = NULL; ACPI_STATUS Status; switch (ParseOpcode) { case PARSEOP___LINE__: Op = TrAllocateOp (PARSEOP_INTEGER); Op->Asl.Value.Integer = Op->Asl.LineNumber; break; case PARSEOP___METHOD__: /* Will become a string literal later */ Op = TrAllocateOp (PARSEOP___METHOD__); Op->Asl.Value.String = NULL; break; case PARSEOP___PATH__: Op = TrAllocateOp (PARSEOP_STRING_LITERAL); /* Op.Asl.Filename contains the full pathname to the file */ Op->Asl.Value.String = Op->Asl.Filename; break; case PARSEOP___FILE__: Op = TrAllocateOp (PARSEOP_STRING_LITERAL); /* Get the simple filename from the full path */ Status = FlSplitInputPathname (Op->Asl.Filename, NULL, &Filename); if (ACPI_FAILURE (Status)) { return (NULL); } Op->Asl.Value.String = Filename; break; case PARSEOP___DATE__: Op = TrAllocateOp (PARSEOP_STRING_LITERAL); /* Get a copy of the current time */ Op->Asl.Value.String = ""; CurrentTime = time (NULL); StaticTimeString = ctime (&CurrentTime); if (StaticTimeString) { TimeString = UtLocalCalloc (strlen (StaticTimeString) + 1); strcpy (TimeString, StaticTimeString); TimeString[strlen(TimeString) -1] = 0; /* Remove trailing newline */ Op->Asl.Value.String = TimeString; } break; default: /* This would be an internal error */ return (NULL); } DbgPrint (ASL_PARSE_OUTPUT, "\nCreateConstantLeafOp Ln/Col %u/%u NewOp %p " "Op %s Value %8.8X%8.8X\n", Op->Asl.LineNumber, Op->Asl.Column, Op, UtGetOpName (ParseOpcode), ACPI_FORMAT_UINT64 (Op->Asl.Value.Integer)); return (Op); } /******************************************************************************* * * FUNCTION: TrAllocateOp * * PARAMETERS: ParseOpcode - Opcode to be assigned to the op * * RETURN: New parse op. Aborts on allocation failure * * DESCRIPTION: Allocate and initialize a new parse op for the parse tree * ******************************************************************************/ ACPI_PARSE_OBJECT * TrAllocateOp ( UINT32 ParseOpcode) { ACPI_PARSE_OBJECT *Op; ACPI_PARSE_OBJECT *LatestOp; ACPI_FUNCTION_NAME (TrAllocateOp); Op = UtParseOpCacheCalloc (); Op->Asl.ParseOpcode = (UINT16) ParseOpcode; Op->Asl.Filename = AslGbl_Files[ASL_FILE_INPUT].Filename; Op->Asl.LineNumber = AslGbl_CurrentLineNumber; Op->Asl.LogicalLineNumber = AslGbl_LogicalLineNumber; Op->Asl.LogicalByteOffset = AslGbl_CurrentLineOffset; Op->Asl.Column = AslGbl_CurrentColumn; UtSetParseOpName (Op); /* The following is for capturing comments */ if (AcpiGbl_CaptureComments) { LatestOp = AslGbl_CommentState.LatestParseOp; Op->Asl.InlineComment = NULL; Op->Asl.EndNodeComment = NULL; Op->Asl.CommentList = NULL; Op->Asl.FileChanged = FALSE; /* * Check to see if the file name has changed before resetting the * latest parse op. */ if (LatestOp && (ParseOpcode != PARSEOP_INCLUDE) && (ParseOpcode != PARSEOP_INCLUDE_END) && strcmp (LatestOp->Asl.Filename, Op->Asl.Filename)) { CvDbgPrint ("latest op: %s\n", LatestOp->Asl.ParseOpName); Op->Asl.FileChanged = TRUE; if (AslGbl_IncludeFileStack) { Op->Asl.ParentFilename = AslGbl_IncludeFileStack->Filename; } else { Op->Asl.ParentFilename = NULL; } } AslGbl_CommentState.LatestParseOp = Op; CvDbgPrint ("%s=Set latest parse op to this op.\n", ACPI_GET_FUNCTION_NAME); CvDbgPrint (" Op->Asl.ParseOpName = %s\n", AslGbl_CommentState.LatestParseOp->Asl.ParseOpName); CvDbgPrint (" Op->Asl.ParseOpcode = 0x%x\n", ParseOpcode); if (Op->Asl.FileChanged) { CvDbgPrint(" file has been changed!\n"); } /* * if this parse op's syntax uses () and {} (i.e. Package(1){0x00}) then * set a flag in the comment state. This facilitates paring comments for * these types of opcodes. */ if ((CvParseOpBlockType(Op) == (BLOCK_PAREN | BLOCK_BRACE)) && (ParseOpcode != PARSEOP_DEFINITION_BLOCK)) { CvDbgPrint ("Parsing paren/Brace op now!\n"); AslGbl_CommentState.ParsingParenBraceNode = Op; } if (AslGbl_CommentListHead) { CvDbgPrint ("Transferring...\n"); Op->Asl.CommentList = AslGbl_CommentListHead; AslGbl_CommentListHead = NULL; AslGbl_CommentListTail = NULL; CvDbgPrint (" Transferred current comment list to this op.\n"); CvDbgPrint (" %s\n", Op->Asl.CommentList->Comment); } if (AslGbl_InlineCommentBuffer) { Op->Asl.InlineComment = AslGbl_InlineCommentBuffer; AslGbl_InlineCommentBuffer = NULL; CvDbgPrint ("Transferred current inline comment list to this op.\n"); } } return (Op); } /******************************************************************************* * * FUNCTION: TrPrintOpFlags * * PARAMETERS: Flags - Flags word to be decoded * OutputLevel - Debug output level: ASL_TREE_OUTPUT etc. * * RETURN: None * * DESCRIPTION: Decode a flags word to text. Displays all flags that are set. * ******************************************************************************/ void TrPrintOpFlags ( UINT32 Flags, UINT32 OutputLevel) { UINT32 FlagBit = 1; UINT32 i; for (i = 0; i < ACPI_NUM_OP_FLAGS; i++) { if (Flags & FlagBit) { DbgPrint (OutputLevel, " %s", AslGbl_OpFlagNames[i]); } FlagBit <<= 1; } } acpica-unix-20250404/source/compiler/aslrestype2s.c0000775000175000017500000023643414773714131021472 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslrestype2s - Serial Large resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslrestype2s") static UINT16 RsGetBufferDataLength ( ACPI_PARSE_OBJECT *InitializerOp); static UINT16 RsGetInterruptDataLength ( ACPI_PARSE_OBJECT *InitializerOp, UINT32 StartIndex); static BOOLEAN RsGetVendorData ( ACPI_PARSE_OBJECT *InitializerOp, UINT8 *VendorData, ACPI_SIZE DescriptorOffset); static UINT16 RsGetStringDataLengthAt ( ACPI_PARSE_OBJECT *InitializerOp, UINT32 StartIndex); /* * This module contains descriptors for serial buses and GPIO: * * GpioInt * GpioIo * I2cSerialBus * SpiSerialBus * UartSerialBus * PinFunction * PinConfig * PinGroup * PinGroupFunction * PinGroupConfig */ /******************************************************************************* * * FUNCTION: RsGetBufferDataLength * * PARAMETERS: InitializerOp - Current parse op, start of the resource * descriptor * * RETURN: Length of the data buffer * * DESCRIPTION: Get the length of a RawDataBuffer, used for vendor data. * ******************************************************************************/ static UINT16 RsGetBufferDataLength ( ACPI_PARSE_OBJECT *InitializerOp) { UINT16 ExtraDataSize = 0; ACPI_PARSE_OBJECT *DataList; /* Find the byte-initializer list */ while (InitializerOp) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DATABUFFER) { /* First child is the optional length (ignore it here) */ DataList = InitializerOp->Asl.Child; DataList = ASL_GET_PEER_NODE (DataList); /* Count the data items (each one is a byte of data) */ while (DataList) { ExtraDataSize++; DataList = ASL_GET_PEER_NODE (DataList); } return (ExtraDataSize); } InitializerOp = ASL_GET_PEER_NODE (InitializerOp); } return (ExtraDataSize); } /******************************************************************************* * * FUNCTION: RsGetInterruptDataLength * * PARAMETERS: InitializerOp - Current parse op, start of the resource * descriptor * StartIndex - Start index of interrupt/pin list * * RETURN: Length of the interrupt data list * * DESCRIPTION: Get the length of a list of interrupt DWORDs for the GPIO * descriptors. * ******************************************************************************/ static UINT16 RsGetInterruptDataLength ( ACPI_PARSE_OBJECT *InitializerOp, UINT32 StartIndex) { UINT16 InterruptLength; UINT32 i; /* Count the interrupt numbers */ InterruptLength = 0; for (i = 0; InitializerOp; i++) { InitializerOp = ASL_GET_PEER_NODE (InitializerOp); /* Interrupt list starts at offset StartIndex (Gpio descriptors) */ if (i >= StartIndex) { InterruptLength += 2; } } return (InterruptLength); } /******************************************************************************* * * FUNCTION: RsGetVendorData * * PARAMETERS: InitializerOp - Current parse op, start of the resource * descriptor. * VendorData - Where the vendor data is returned * DescriptorOffset - Where vendor data begins in descriptor * * RETURN: TRUE if valid vendor data was returned, FALSE otherwise. * * DESCRIPTION: Extract the vendor data and construct a vendor data buffer. * ******************************************************************************/ static BOOLEAN RsGetVendorData ( ACPI_PARSE_OBJECT *InitializerOp, UINT8 *VendorData, ACPI_SIZE DescriptorOffset) { ACPI_PARSE_OBJECT *BufferOp; UINT32 SpecifiedLength = ACPI_UINT32_MAX; UINT16 ActualLength = 0; /* Vendor Data field is always optional */ if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { return (FALSE); } BufferOp = InitializerOp->Asl.Child; if (!BufferOp) { AslError (ASL_ERROR, ASL_MSG_SYNTAX, InitializerOp, ""); return (FALSE); } /* First child is the optional buffer length (WORD) */ if (BufferOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { SpecifiedLength = (UINT16) BufferOp->Asl.Value.Integer; } /* Insert field tag _VEN */ RsCreateByteField (InitializerOp, ACPI_RESTAG_VENDORDATA, (UINT16) DescriptorOffset); /* Walk the list of buffer initializers (each is one byte) */ BufferOp = RsCompleteNodeAndGetNext (BufferOp); if (BufferOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { while (BufferOp) { *VendorData = (UINT8) BufferOp->Asl.Value.Integer; VendorData++; ActualLength++; BufferOp = RsCompleteNodeAndGetNext (BufferOp); } } /* Length validation. Buffer cannot be of zero length */ if ((SpecifiedLength == 0) || ((SpecifiedLength == ACPI_UINT32_MAX) && (ActualLength == 0))) { AslError (ASL_ERROR, ASL_MSG_BUFFER_LENGTH, InitializerOp, NULL); return (FALSE); } if (SpecifiedLength != ACPI_UINT32_MAX) { /* ActualLength > SpecifiedLength -> error */ if (ActualLength > SpecifiedLength) { AslError (ASL_ERROR, ASL_MSG_LIST_LENGTH_LONG, InitializerOp, NULL); return (FALSE); } /* ActualLength < SpecifiedLength -> remark */ else if (ActualLength < SpecifiedLength) { AslError (ASL_REMARK, ASL_MSG_LIST_LENGTH_SHORT, InitializerOp, NULL); return (FALSE); } } return (TRUE); } /******************************************************************************* * * FUNCTION: RsGetStringDataLengthAt * * PARAMETERS: InitializerOp - Start of a subtree of init nodes * StartIndex - Starting index of the string node * * RETURN: Valid string length if a string node is found at given * StartIndex or 0 otherwise. * * DESCRIPTION: In a list of peer nodes, find the first one at given index * that contains a string and return length. * ******************************************************************************/ static UINT16 RsGetStringDataLengthAt ( ACPI_PARSE_OBJECT *InitializerOp, UINT32 StartIndex) { UINT32 i; for (i = 0; InitializerOp; i++) { if (i == StartIndex && InitializerOp->Asl.ParseOpcode == PARSEOP_STRING_LITERAL) { return ((UINT16) (strlen (InitializerOp->Asl.Value.String) + 1)); } InitializerOp = ASL_GET_PEER_NODE (InitializerOp); } return (0); } /******************************************************************************* * * FUNCTION: RsDoGpioIntDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "GpioInt" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoGpioIntDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; UINT8 *VendorData = NULL; UINT16 *InterruptList = NULL; UINT16 *PinList = NULL; UINT16 ResSourceLength; UINT16 VendorLength; UINT16 InterruptLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 PinCount = 0; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Vendor Data buffer * 3) PIN (interrupt) list */ ResSourceLength = RsGetStringDataLength (InitializerOp); VendorLength = RsGetBufferDataLength (InitializerOp); InterruptLength = RsGetInterruptDataLength (InitializerOp, 10); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_GPIO) + ResSourceLength + VendorLength + InterruptLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->Gpio.ResourceLength = DescriptorSize; Descriptor->Gpio.DescriptorType = ACPI_RESOURCE_NAME_GPIO; Descriptor->Gpio.RevisionId = AML_RESOURCE_GPIO_REVISION; Descriptor->Gpio.ConnectionType = AML_RESOURCE_GPIO_TYPE_INT; /* Build pointers to optional areas */ InterruptList = ACPI_ADD_PTR (UINT16, Descriptor, sizeof (AML_RESOURCE_GPIO)); PinList = InterruptList; ResourceSource = ACPI_ADD_PTR (char, InterruptList, InterruptLength); VendorData = ACPI_ADD_PTR (UINT8, ResourceSource, ResSourceLength); /* Setup offsets within the descriptor */ Descriptor->Gpio.PinTableOffset = (UINT16) ACPI_PTR_DIFF (InterruptList, Descriptor); Descriptor->Gpio.ResSourceOffset = (UINT16) ACPI_PTR_DIFF (ResourceSource, Descriptor); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Interrupt Mode - edge/level [Flag] (_MOD) */ RsSetFlagBits16 (&Descriptor->Gpio.IntFlags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 0); break; case 1: /* Interrupt Polarity - Active high/low [Flags] (_POL) */ RsSetFlagBits16 (&Descriptor->Gpio.IntFlags, InitializerOp, 1, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_POLARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 1, 2); break; case 2: /* Share Type - Default: exclusive (0) [Flags] (_SHR) */ RsSetFlagBits16 (&Descriptor->Gpio.IntFlags, InitializerOp, 3, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 3, 2); break; case 3: /* Pin Config [BYTE] (_PPI) */ Descriptor->Gpio.PinConfig = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_PINCONFIG, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.PinConfig)); break; case 4: /* Debounce Timeout [WORD] (_DBT) */ Descriptor->Gpio.DebounceTimeout = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_DEBOUNCETIME, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.DebounceTimeout)); break; case 5: /* ResSource [Optional Field - STRING] */ if (ResSourceLength) { /* Copy string to the descriptor */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); } break; case 6: /* Resource Index */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { Descriptor->Gpio.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; case 7: /* Resource Usage (consumer/producer) */ RsSetFlagBits16 (&Descriptor->Gpio.Flags, InitializerOp, 0, 1); break; case 8: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 9: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ /* * Always set the VendorOffset even if there is no Vendor Data. * This field is required in order to calculate the length * of the ResourceSource at runtime. */ Descriptor->Gpio.VendorOffset = (UINT16) ACPI_PTR_DIFF (VendorData, Descriptor); if (RsGetVendorData (InitializerOp, VendorData, (CurrentByteOffset + Descriptor->Gpio.VendorOffset))) { Descriptor->Gpio.VendorLength = VendorLength; } break; default: /* * PINs come through here, repeatedly. Each PIN must be a WORD. * NOTE: there is no "length" field for this, so from ACPI spec: * The number of pins in the table can be calculated from: * PinCount = (Resource Source Name Offset - Pin Table Offset) / 2 * (implies resource source must immediately follow the pin list.) * Name: _PIN */ *InterruptList = (UINT16) InitializerOp->Asl.Value.Integer; InterruptList++; PinCount++; /* Case 10: First interrupt number in list */ if (i == 10) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { /* Must be at least one interrupt */ AslError (ASL_ERROR, ASL_MSG_EX_INTERRUPT_LIST_MIN, InitializerOp, NULL); } /* Check now for duplicates in list */ RsCheckListForDuplicates (InitializerOp); /* Create a named field at the start of the list */ RsCreateWordField (InitializerOp, ACPI_RESTAG_PIN, CurrentByteOffset + Descriptor->Gpio.PinTableOffset); } break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } MpSaveGpioInfo (Info->MappingOp, Descriptor, PinCount, PinList, ResourceSource); return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoGpioIoDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "GpioIo" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoGpioIoDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; UINT8 *VendorData = NULL; UINT16 *InterruptList = NULL; UINT16 *PinList = NULL; UINT16 ResSourceLength; UINT16 VendorLength; UINT16 InterruptLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 PinCount = 0; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Vendor Data buffer * 3) PIN (interrupt) list */ ResSourceLength = RsGetStringDataLength (InitializerOp); VendorLength = RsGetBufferDataLength (InitializerOp); InterruptLength = RsGetInterruptDataLength (InitializerOp, 10); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_GPIO) + ResSourceLength + VendorLength + InterruptLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->Gpio.ResourceLength = DescriptorSize; Descriptor->Gpio.DescriptorType = ACPI_RESOURCE_NAME_GPIO; Descriptor->Gpio.RevisionId = AML_RESOURCE_GPIO_REVISION; Descriptor->Gpio.ConnectionType = AML_RESOURCE_GPIO_TYPE_IO; /* Build pointers to optional areas */ InterruptList = ACPI_ADD_PTR (UINT16, Descriptor, sizeof (AML_RESOURCE_GPIO)); PinList = InterruptList; ResourceSource = ACPI_ADD_PTR (char, InterruptList, InterruptLength); VendorData = ACPI_ADD_PTR (UINT8, ResourceSource, ResSourceLength); /* Setup offsets within the descriptor */ Descriptor->Gpio.PinTableOffset = (UINT16) ACPI_PTR_DIFF (InterruptList, Descriptor); Descriptor->Gpio.ResSourceOffset = (UINT16) ACPI_PTR_DIFF (ResourceSource, Descriptor); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Share Type [Flags] (_SHR) */ RsSetFlagBits16 (&Descriptor->Gpio.IntFlags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 3); break; case 1: /* Pin Config [BYTE] (_PPI) */ Descriptor->Gpio.PinConfig = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_PINCONFIG, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.PinConfig)); break; case 2: /* Debounce Timeout [WORD] (_DBT) */ Descriptor->Gpio.DebounceTimeout = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_DEBOUNCETIME, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.DebounceTimeout)); break; case 3: /* Drive Strength [WORD] (_DRS) */ Descriptor->Gpio.DriveStrength = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_DRIVESTRENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.DriveStrength)); break; case 4: /* I/O Restriction [Flag] (_IOR) */ RsSetFlagBits16 (&Descriptor->Gpio.IntFlags, InitializerOp, 0, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_IORESTRICTION, CurrentByteOffset + ASL_RESDESC_OFFSET (Gpio.IntFlags), 0, 2); break; case 5: /* ResSource [Optional Field - STRING] */ if (ResSourceLength) { /* Copy string to the descriptor */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); } break; case 6: /* Resource Index */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { Descriptor->Gpio.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; case 7: /* Resource Usage (consumer/producer) */ RsSetFlagBits16 (&Descriptor->Gpio.Flags, InitializerOp, 0, 1); break; case 8: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 9: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ /* * Always set the VendorOffset even if there is no Vendor Data. * This field is required in order to calculate the length * of the ResourceSource at runtime. */ Descriptor->Gpio.VendorOffset = (UINT16) ACPI_PTR_DIFF (VendorData, Descriptor); if (RsGetVendorData (InitializerOp, VendorData, (CurrentByteOffset + Descriptor->Gpio.VendorOffset))) { Descriptor->Gpio.VendorLength = VendorLength; } break; default: /* * PINs come through here, repeatedly. Each PIN must be a WORD. * NOTE: there is no "length" field for this, so from ACPI spec: * The number of pins in the table can be calculated from: * PinCount = (Resource Source Name Offset - Pin Table Offset) / 2 * (implies resource source must immediately follow the pin list.) * Name: _PIN */ *InterruptList = (UINT16) InitializerOp->Asl.Value.Integer; InterruptList++; PinCount++; /* Case 10: First interrupt number in list */ if (i == 10) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { /* Must be at least one interrupt */ AslError (ASL_ERROR, ASL_MSG_EX_INTERRUPT_LIST_MIN, InitializerOp, NULL); } /* Check now for duplicates in list */ RsCheckListForDuplicates (InitializerOp); /* Create a named field at the start of the list */ RsCreateWordField (InitializerOp, ACPI_RESTAG_PIN, CurrentByteOffset + Descriptor->Gpio.PinTableOffset); } break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } MpSaveGpioInfo (Info->MappingOp, Descriptor, PinCount, PinList, ResourceSource); return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoI2cSerialBusDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "I2cSerialBus" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoI2cSerialBusDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; UINT8 *VendorData = NULL; UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Vendor Data buffer */ ResSourceLength = RsGetStringDataLength (InitializerOp); VendorLength = RsGetBufferDataLength (InitializerOp); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_I2C_SERIALBUS) + ResSourceLength + VendorLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->I2cSerialBus.ResourceLength = DescriptorSize; Descriptor->I2cSerialBus.DescriptorType = ACPI_RESOURCE_NAME_SERIAL_BUS; Descriptor->I2cSerialBus.RevisionId = AML_RESOURCE_I2C_REVISION; Descriptor->I2cSerialBus.TypeRevisionId = AML_RESOURCE_I2C_TYPE_REVISION; Descriptor->I2cSerialBus.Type = AML_RESOURCE_I2C_SERIALBUSTYPE; Descriptor->I2cSerialBus.TypeDataLength = AML_RESOURCE_I2C_MIN_DATA_LEN + VendorLength; if (Info->DescriptorTypeOp->Asl.ParseOpcode == PARSEOP_I2C_SERIALBUS_V2) { Descriptor->I2cSerialBus.RevisionId = 2; } /* Build pointers to optional areas */ VendorData = ACPI_ADD_PTR (UINT8, Descriptor, sizeof (AML_RESOURCE_I2C_SERIALBUS)); ResourceSource = ACPI_ADD_PTR (char, VendorData, VendorLength); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Slave Address [WORD] (_ADR) */ Descriptor->I2cSerialBus.SlaveAddress = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_ADDRESS, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.SlaveAddress)); break; case 1: /* Slave Mode [Flag] (_SLV) */ RsSetFlagBits (&Descriptor->I2cSerialBus.Flags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_SLAVEMODE, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.Flags), 0); break; case 2: /* Connection Speed [DWORD] (_SPE) */ Descriptor->I2cSerialBus.ConnectionSpeed = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_SPEED, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.ConnectionSpeed)); break; case 3: /* Addressing Mode [Flag] (_MOD) */ RsSetFlagBits16 (&Descriptor->I2cSerialBus.TypeSpecificFlags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MODE, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.TypeSpecificFlags), 0); break; case 4: /* ResSource [Optional Field - STRING] */ if (ResSourceLength) { /* Copy string to the descriptor */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); } break; case 5: /* Resource Index */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { Descriptor->I2cSerialBus.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; case 6: /* Resource Usage (consumer/producer) */ RsSetFlagBits (&Descriptor->I2cSerialBus.Flags, InitializerOp, 1, 1); break; case 7: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 8: /* * Connection Share - Added for V2 (ACPI 6.0) version of the descriptor * Note: For V1, the share bit will be zero (Op is DEFAULT_ARG from * the ASL parser) */ RsSetFlagBits (&Descriptor->I2cSerialBus.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.Flags), 2); break; case 9: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ RsGetVendorData (InitializerOp, VendorData, CurrentByteOffset + sizeof (AML_RESOURCE_I2C_SERIALBUS)); break; default: /* Ignore any extra nodes */ break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoSpiSerialBusDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "SPI Serial Bus" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoSpiSerialBusDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; UINT8 *VendorData = NULL; UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Vendor Data buffer */ ResSourceLength = RsGetStringDataLength (InitializerOp); VendorLength = RsGetBufferDataLength (InitializerOp); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_SPI_SERIALBUS) + ResSourceLength + VendorLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->SpiSerialBus.ResourceLength = DescriptorSize; Descriptor->SpiSerialBus.DescriptorType = ACPI_RESOURCE_NAME_SERIAL_BUS; Descriptor->SpiSerialBus.RevisionId = AML_RESOURCE_SPI_REVISION; Descriptor->SpiSerialBus.TypeRevisionId = AML_RESOURCE_SPI_TYPE_REVISION; Descriptor->SpiSerialBus.Type = AML_RESOURCE_SPI_SERIALBUSTYPE; Descriptor->SpiSerialBus.TypeDataLength = AML_RESOURCE_SPI_MIN_DATA_LEN + VendorLength; if (Info->DescriptorTypeOp->Asl.ParseOpcode == PARSEOP_SPI_SERIALBUS_V2) { Descriptor->I2cSerialBus.RevisionId = 2; } /* Build pointers to optional areas */ VendorData = ACPI_ADD_PTR (UINT8, Descriptor, sizeof (AML_RESOURCE_SPI_SERIALBUS)); ResourceSource = ACPI_ADD_PTR (char, VendorData, VendorLength); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Device Selection [WORD] (_ADR) */ Descriptor->SpiSerialBus.DeviceSelection = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_ADDRESS, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.DeviceSelection)); break; case 1: /* Device Polarity [Flag] (_DPL) */ RsSetFlagBits16 (&Descriptor->SpiSerialBus.TypeSpecificFlags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DEVICEPOLARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.TypeSpecificFlags), 1); break; case 2: /* Wire Mode [Flag] (_MOD) */ RsSetFlagBits16 (&Descriptor->SpiSerialBus.TypeSpecificFlags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MODE, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.TypeSpecificFlags), 0); break; case 3: /* Device Bit Length [BYTE] (_LEN) */ Descriptor->SpiSerialBus.DataBitLength = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.DataBitLength)); break; case 4: /* Slave Mode [Flag] (_SLV) */ RsSetFlagBits (&Descriptor->SpiSerialBus.Flags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_SLAVEMODE, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.Flags), 0); break; case 5: /* Connection Speed [DWORD] (_SPE) */ Descriptor->SpiSerialBus.ConnectionSpeed = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_SPEED, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.ConnectionSpeed)); break; case 6: /* Clock Polarity [BYTE] (_POL) */ Descriptor->SpiSerialBus.ClockPolarity = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_POLARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.ClockPolarity)); break; case 7: /* Clock Phase [BYTE] (_PHA) */ Descriptor->SpiSerialBus.ClockPhase = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_PHASE, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.ClockPhase)); break; case 8: /* ResSource [Optional Field - STRING] */ if (ResSourceLength) { /* Copy string to the descriptor */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); } break; case 9: /* Resource Index */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { Descriptor->SpiSerialBus.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; case 10: /* Resource Usage (consumer/producer) */ RsSetFlagBits (&Descriptor->SpiSerialBus.Flags, InitializerOp, 1, 1); break; case 11: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 12: /* * Connection Share - Added for V2 (ACPI 6.0) version of the descriptor * Note: For V1, the share bit will be zero (Op is DEFAULT_ARG from * the ASL parser) */ RsSetFlagBits (&Descriptor->SpiSerialBus.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (SpiSerialBus.Flags), 2); break; case 13: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ RsGetVendorData (InitializerOp, VendorData, CurrentByteOffset + sizeof (AML_RESOURCE_SPI_SERIALBUS)); break; default: /* Ignore any extra nodes */ break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoUartSerialBusDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "UART Serial Bus" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoUartSerialBusDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; UINT8 *VendorData = NULL; UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Vendor Data buffer */ ResSourceLength = RsGetStringDataLength (InitializerOp); VendorLength = RsGetBufferDataLength (InitializerOp); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_UART_SERIALBUS) + ResSourceLength + VendorLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->UartSerialBus.ResourceLength = DescriptorSize; Descriptor->UartSerialBus.DescriptorType = ACPI_RESOURCE_NAME_SERIAL_BUS; Descriptor->UartSerialBus.RevisionId = AML_RESOURCE_UART_REVISION; Descriptor->UartSerialBus.TypeRevisionId = AML_RESOURCE_UART_TYPE_REVISION; Descriptor->UartSerialBus.Type = AML_RESOURCE_UART_SERIALBUSTYPE; Descriptor->UartSerialBus.TypeDataLength = AML_RESOURCE_UART_MIN_DATA_LEN + VendorLength; if (Info->DescriptorTypeOp->Asl.ParseOpcode == PARSEOP_UART_SERIALBUS_V2) { Descriptor->I2cSerialBus.RevisionId = 2; } /* Build pointers to optional areas */ VendorData = ACPI_ADD_PTR (UINT8, Descriptor, sizeof (AML_RESOURCE_UART_SERIALBUS)); ResourceSource = ACPI_ADD_PTR (char, VendorData, VendorLength); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Connection Speed (Baud Rate) [DWORD] (_SPE) */ Descriptor->UartSerialBus.DefaultBaudRate = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_SPEED, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.DefaultBaudRate)); break; case 1: /* Bits Per Byte [Flags] (_LEN) */ RsSetFlagBits16 (&Descriptor->UartSerialBus.TypeSpecificFlags, InitializerOp, 4, 3); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TypeSpecificFlags), 4, 3); break; case 2: /* Stop Bits [Flags] (_STB) */ RsSetFlagBits16 (&Descriptor->UartSerialBus.TypeSpecificFlags, InitializerOp, 2, 1); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_STOPBITS, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TypeSpecificFlags), 2, 2); break; case 3: /* Lines In Use [BYTE] (_LIN) */ Descriptor->UartSerialBus.LinesEnabled = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_LINE, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.LinesEnabled)); break; case 4: /* Endianness [Flag] (_END) */ RsSetFlagBits16 (&Descriptor->UartSerialBus.TypeSpecificFlags, InitializerOp, 7, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_ENDIANNESS, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TypeSpecificFlags), 7); break; case 5: /* Parity [BYTE] (_PAR) */ Descriptor->UartSerialBus.Parity = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_PARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.Parity)); break; case 6: /* Flow Control [Flags] (_FLC) */ RsSetFlagBits16 (&Descriptor->UartSerialBus.TypeSpecificFlags, InitializerOp, 0, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_FLOWCONTROL, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TypeSpecificFlags), 0, 2); break; case 7: /* Rx Buffer Size [WORD] (_RXL) */ Descriptor->UartSerialBus.RxFifoSize = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH_RX, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.RxFifoSize)); break; case 8: /* Tx Buffer Size [WORD] (_TXL) */ Descriptor->UartSerialBus.TxFifoSize = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_LENGTH_TX, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.TxFifoSize)); break; case 9: /* ResSource [Optional Field - STRING] */ if (ResSourceLength) { /* Copy string to the descriptor */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); } break; case 10: /* Resource Index */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { Descriptor->UartSerialBus.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; case 11: /* Resource Usage (consumer/producer) */ RsSetFlagBits (&Descriptor->UartSerialBus.Flags, InitializerOp, 1, 1); /* * Slave Mode [Flag] (_SLV) * * Note: There is no SlaveMode argument to the UartSerialBus macro, but * we add this name anyway to allow the flag to be set by ASL in the * rare case where there is a slave mode associated with the UART. */ RsCreateBitField (InitializerOp, ACPI_RESTAG_SLAVEMODE, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.Flags), 0); break; case 12: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 13: /* * Connection Share - Added for V2 (ACPI 6.0) version of the descriptor * Note: For V1, the share bit will be zero (Op is DEFAULT_ARG from * the ASL parser) */ RsSetFlagBits (&Descriptor->UartSerialBus.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (UartSerialBus.Flags), 2); break; case 14: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ RsGetVendorData (InitializerOp, VendorData, CurrentByteOffset + sizeof (AML_RESOURCE_UART_SERIALBUS)); break; default: /* Ignore any extra nodes */ break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoCsi2SerialBusDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "Csi2SerialBus" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoCsi2SerialBusDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; UINT8 *VendorData = NULL; UINT16 ResSourceLength; UINT16 VendorLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Vendor Data buffer */ ResSourceLength = RsGetStringDataLength (InitializerOp); VendorLength = RsGetBufferDataLength (InitializerOp); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_CSI2_SERIALBUS) + ResSourceLength + VendorLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->Csi2SerialBus.ResourceLength = DescriptorSize; Descriptor->Csi2SerialBus.DescriptorType = ACPI_RESOURCE_NAME_SERIAL_BUS; Descriptor->Csi2SerialBus.RevisionId = AML_RESOURCE_CSI2_REVISION; Descriptor->Csi2SerialBus.TypeRevisionId = AML_RESOURCE_CSI2_TYPE_REVISION; Descriptor->Csi2SerialBus.Type = AML_RESOURCE_CSI2_SERIALBUSTYPE; Descriptor->Csi2SerialBus.TypeDataLength = AML_RESOURCE_CSI2_MIN_DATA_LEN + VendorLength; /* Build pointers to optional areas */ VendorData = ACPI_ADD_PTR (UINT8, Descriptor, sizeof (AML_RESOURCE_CSI2_SERIALBUS)); ResourceSource = ACPI_ADD_PTR (char, VendorData, VendorLength); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Slave Mode [Flag] (_SLV) */ RsSetFlagBits (&Descriptor->Csi2SerialBus.Flags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_SLAVEMODE, CurrentByteOffset + ASL_RESDESC_OFFSET (I2cSerialBus.Flags), 0); break; case 1: /* Phy Type [Flag] (_PHY) */ RsSetFlagBits16 ((UINT16 *) &Descriptor->Csi2SerialBus.TypeSpecificFlags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_PHYTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Csi2SerialBus.TypeSpecificFlags), 0); break; case 2: /* Local Port Instance [Integer] (_PRT) */ RsSetFlagBits16 ((UINT16 *) &Descriptor->Csi2SerialBus.TypeSpecificFlags, InitializerOp, 0, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_LOCALPORT, CurrentByteOffset + ASL_RESDESC_OFFSET (Csi2SerialBus.TypeSpecificFlags), 2, 6); break; case 3: /* ResSource [Optional Field - STRING] */ if (ResSourceLength) { /* Copy string to the descriptor */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); } break; case 4: /* Resource Index */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { Descriptor->Csi2SerialBus.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; case 5: /* Resource Usage (consumer/producer) */ RsSetFlagBits (&Descriptor->Csi2SerialBus.Flags, InitializerOp, 1, 1); break; case 6: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 7: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ RsGetVendorData (InitializerOp, VendorData, CurrentByteOffset + sizeof (AML_RESOURCE_CSI2_SERIALBUS)); break; default: /* Ignore any extra nodes */ break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } MpSaveSerialInfo (Info->MappingOp, Descriptor, ResourceSource); return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoPinFunctionDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "PinFunction" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoPinFunctionDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; UINT8 *VendorData = NULL; UINT16 *PinList = NULL; UINT16 ResSourceLength; UINT16 VendorLength; UINT16 PinListLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Vendor Data buffer * 3) PIN (interrupt) list */ ResSourceLength = RsGetStringDataLength (InitializerOp); VendorLength = RsGetBufferDataLength (InitializerOp); PinListLength = RsGetInterruptDataLength (InitializerOp, 8); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_FUNCTION) + ResSourceLength + VendorLength + PinListLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->PinFunction.ResourceLength = DescriptorSize; Descriptor->PinFunction.DescriptorType = ACPI_RESOURCE_NAME_PIN_FUNCTION; Descriptor->PinFunction.RevisionId = AML_RESOURCE_PIN_FUNCTION_REVISION; /* Build pointers to optional areas */ PinList = ACPI_ADD_PTR (UINT16, Descriptor, sizeof (AML_RESOURCE_PIN_FUNCTION)); ResourceSource = ACPI_ADD_PTR (char, PinList, PinListLength); VendorData = ACPI_ADD_PTR (UINT8, ResourceSource, ResSourceLength); /* Setup offsets within the descriptor */ Descriptor->PinFunction.PinTableOffset = (UINT16) ACPI_PTR_DIFF (PinList, Descriptor); Descriptor->PinFunction.ResSourceOffset = (UINT16) ACPI_PTR_DIFF (ResourceSource, Descriptor); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Share Type [Flags] (_SHR) */ RsSetFlagBits16 (&Descriptor->PinFunction.Flags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (PinFunction.Flags), 0); break; case 1: /* Pin Config [BYTE] (_PPI) */ Descriptor->PinFunction.PinConfig = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_PINCONFIG, CurrentByteOffset + ASL_RESDESC_OFFSET (PinFunction.PinConfig)); break; case 2: /* Function Number [WORD] (_FUN) */ Descriptor->PinFunction.FunctionNumber = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_FUNCTION, CurrentByteOffset + ASL_RESDESC_OFFSET (PinFunction.FunctionNumber)); break; case 3: /* ResSource [Optional Field - STRING] */ if (ResSourceLength) { /* Copy string to the descriptor */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); } break; case 4: /* Resource Index */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { Descriptor->PinFunction.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; case 5: /* Resource Usage (consumer/producer) */ /* Assumed to be consumer */ break; case 6: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 7: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ /* * Always set the VendorOffset even if there is no Vendor Data. * This field is required in order to calculate the length * of the ResourceSource at runtime. */ Descriptor->PinFunction.VendorOffset = (UINT16) ACPI_PTR_DIFF (VendorData, Descriptor); if (RsGetVendorData (InitializerOp, VendorData, (CurrentByteOffset + Descriptor->PinFunction.VendorOffset))) { Descriptor->PinFunction.VendorLength = VendorLength; } break; default: /* * PINs come through here, repeatedly. Each PIN must be a WORD. * Name: _PIN */ *PinList = (UINT16) InitializerOp->Asl.Value.Integer; PinList++; /* Case 8: First pin number in list */ if (i == 8) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { /* Must be at least one interrupt */ AslError (ASL_ERROR, ASL_MSG_EX_INTERRUPT_LIST_MIN, InitializerOp, NULL); } /* Check now for duplicates in list */ RsCheckListForDuplicates (InitializerOp); /* Create a named field at the start of the list */ RsCreateWordField (InitializerOp, ACPI_RESTAG_PIN, CurrentByteOffset + Descriptor->PinFunction.PinTableOffset); } break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoClockInputDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "ClockInput" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoClockInputDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSourceString = NULL; UINT8 *ResourceSourceIndex = NULL; UINT16 ResSourceLength; UINT16 DescriptorSize; UINT32 i; UINT32 CurrentByteOffset; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string */ ResSourceLength = RsGetStringDataLength (InitializerOp); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_CLOCK_INPUT) + ResSourceLength + 1; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->ClockInput.ResourceLength = DescriptorSize; Descriptor->ClockInput.DescriptorType = ACPI_RESOURCE_NAME_CLOCK_INPUT; Descriptor->ClockInput.RevisionId = AML_RESOURCE_CLOCK_INPUT_REVISION; /* Build pointers to optional areas */ if (ResSourceLength){ ResourceSourceIndex = ACPI_ADD_PTR (UINT8, Descriptor, sizeof (AML_RESOURCE_CLOCK_INPUT)); ResourceSourceString = ACPI_ADD_PTR (char, Descriptor, sizeof (AML_RESOURCE_CLOCK_INPUT) + 1); } /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: Descriptor->ClockInput.FrequencyNumerator = (UINT32)InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_FQN, CurrentByteOffset + ASL_RESDESC_OFFSET (ClockInput.FrequencyNumerator)); break; case 1: Descriptor->ClockInput.FrequencyDivisor = (UINT16)InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_FQD, CurrentByteOffset + ASL_RESDESC_OFFSET (ClockInput.FrequencyDivisor)); break; case 2: RsSetFlagBits16 (&Descriptor->ClockInput.Flags, InitializerOp, 1, 0); break; case 3: RsSetFlagBits16 (&Descriptor->ClockInput.Flags, InitializerOp, 0, 0); break; case 4: /* ResSource String [Optional Field] */ if (ResourceSourceString) { /* Copy string to the descriptor */ strcpy (ResourceSourceString, InitializerOp->Asl.Value.String); } break; case 5: /* ResSource Index [Optional Field] */ if (ResourceSourceIndex) { *ResourceSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; default: break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoPinConfigDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "PinConfig" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoPinConfigDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; UINT8 *VendorData = NULL; UINT16 *PinList = NULL; UINT16 ResSourceLength; UINT16 VendorLength; UINT16 PinListLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Vendor Data buffer * 3) PIN (interrupt) list */ ResSourceLength = RsGetStringDataLength (InitializerOp); VendorLength = RsGetBufferDataLength (InitializerOp); PinListLength = RsGetInterruptDataLength (InitializerOp, 8); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_CONFIG) + ResSourceLength + VendorLength + PinListLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->PinConfig.ResourceLength = DescriptorSize; Descriptor->PinConfig.DescriptorType = ACPI_RESOURCE_NAME_PIN_CONFIG; Descriptor->PinConfig.RevisionId = AML_RESOURCE_PIN_CONFIG_REVISION; /* Build pointers to optional areas */ PinList = ACPI_ADD_PTR (UINT16, Descriptor, sizeof (AML_RESOURCE_PIN_CONFIG)); ResourceSource = ACPI_ADD_PTR (char, PinList, PinListLength); VendorData = ACPI_ADD_PTR (UINT8, ResourceSource, ResSourceLength); /* Setup offsets within the descriptor */ Descriptor->PinConfig.PinTableOffset = (UINT16) ACPI_PTR_DIFF (PinList, Descriptor); Descriptor->PinConfig.ResSourceOffset = (UINT16) ACPI_PTR_DIFF (ResourceSource, Descriptor); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { BOOLEAN isValid; switch (i) { case 0: /* Share Type [Flags] (_SHR) */ RsSetFlagBits16 (&Descriptor->PinConfig.Flags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (PinConfig.Flags), 0); break; case 1: /* Pin Config Type [BYTE] (_TYP) */ isValid = InitializerOp->Asl.Value.Integer <= 0x0d; if (!isValid) { isValid = InitializerOp->Asl.Value.Integer >= 0x80 && InitializerOp->Asl.Value.Integer <= 0xff; } if (!isValid) { AslError (ASL_ERROR, ASL_MSG_RANGE, InitializerOp, NULL); } Descriptor->PinConfig.PinConfigType = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_PINCONFIG_TYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (PinConfig.PinConfigType)); break; case 2: /* Pin Config Value [DWORD] (_VAL) */ Descriptor->PinConfig.PinConfigValue = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_PINCONFIG_VALUE, CurrentByteOffset + ASL_RESDESC_OFFSET (PinConfig.PinConfigValue)); break; case 3: /* ResSource [Optional Field - STRING] */ if (ResSourceLength) { /* Copy string to the descriptor */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); } break; case 4: /* Resource Index */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { Descriptor->PinConfig.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; } break; case 5: /* Resource Usage (consumer/producer) */ RsSetFlagBits16 (&Descriptor->PinConfig.Flags, InitializerOp, 1, 1); break; case 6: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 7: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ /* * Always set the VendorOffset even if there is no Vendor Data. * This field is required in order to calculate the length * of the ResourceSource at runtime. */ Descriptor->PinConfig.VendorOffset = (UINT16) ACPI_PTR_DIFF (VendorData, Descriptor); if (RsGetVendorData (InitializerOp, VendorData, (CurrentByteOffset + Descriptor->PinConfig.VendorOffset))) { Descriptor->PinConfig.VendorLength = VendorLength; } break; default: /* * PINs come through here, repeatedly. Each PIN must be a WORD. * Name: _PIN */ *PinList = (UINT16) InitializerOp->Asl.Value.Integer; PinList++; /* Case 8: First pin number in list */ if (i == 8) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { /* Must be at least one interrupt */ AslError (ASL_ERROR, ASL_MSG_EX_INTERRUPT_LIST_MIN, InitializerOp, NULL); } /* Check now for duplicates in list */ RsCheckListForDuplicates (InitializerOp); /* Create a named field at the start of the list */ RsCreateWordField (InitializerOp, ACPI_RESTAG_PIN, CurrentByteOffset + Descriptor->PinConfig.PinTableOffset); } break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoPinGroupDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "PinGroup" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoPinGroupDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT8 *VendorData = NULL; UINT16 *PinList = NULL; char *Label = NULL; UINT16 LabelLength; UINT16 VendorLength; UINT16 PinListLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Label * 2) Vendor Data buffer * 3) PIN (interrupt) list */ LabelLength = RsGetStringDataLength (InitializerOp); VendorLength = RsGetBufferDataLength (InitializerOp); PinListLength = RsGetInterruptDataLength (InitializerOp, 4); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_GROUP) + LabelLength + VendorLength + PinListLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->PinGroup.ResourceLength = DescriptorSize; Descriptor->PinGroup.DescriptorType = ACPI_RESOURCE_NAME_PIN_GROUP; Descriptor->PinGroup.RevisionId = AML_RESOURCE_PIN_GROUP_REVISION; /* Build pointers to optional areas */ PinList = ACPI_ADD_PTR (UINT16, Descriptor, sizeof (AML_RESOURCE_PIN_GROUP)); Label = ACPI_ADD_PTR (char, PinList, PinListLength); VendorData = ACPI_ADD_PTR (UINT8, Label, LabelLength); /* Setup offsets within the descriptor */ Descriptor->PinGroup.PinTableOffset = (UINT16) ACPI_PTR_DIFF (PinList, Descriptor); Descriptor->PinGroup.LabelOffset = (UINT16) ACPI_PTR_DIFF (Label, Descriptor); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Label */ if (LabelLength < 2) { AslError(ASL_WARNING, ASL_MSG_NULL_STRING, InitializerOp, NULL); } strcpy (Label, InitializerOp->Asl.Value.String); break; case 1: /* Resource Usage (consumer/producer) */ RsSetFlagBits16 (&Descriptor->PinGroup.Flags, InitializerOp, 0, 0); break; case 2: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 3: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ /* * Always set the VendorOffset even if there is no Vendor Data. * This field is required in order to calculate the length * of the ResourceSource at runtime. */ Descriptor->PinGroup.VendorOffset = (UINT16) ACPI_PTR_DIFF (VendorData, Descriptor); if (RsGetVendorData (InitializerOp, VendorData, (CurrentByteOffset + Descriptor->PinGroup.VendorOffset))) { Descriptor->PinGroup.VendorLength = VendorLength; } break; default: /* * PINs come through here, repeatedly. Each PIN must be a WORD. * Name: _PIN */ *PinList = (UINT16) InitializerOp->Asl.Value.Integer; PinList++; /* Case 3: First pin number in list */ if (i == 4) { if (InitializerOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { /* Must be at least one interrupt */ AslError (ASL_ERROR, ASL_MSG_EX_INTERRUPT_LIST_MIN, InitializerOp, NULL); } /* Check now for duplicates in list */ RsCheckListForDuplicates (InitializerOp); /* Create a named field at the start of the list */ RsCreateWordField (InitializerOp, ACPI_RESTAG_PIN, CurrentByteOffset + Descriptor->PinGroup.PinTableOffset); } break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoPinGroupFunctionDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "PinGroupFunction" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoPinGroupFunctionDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; char *ResourceSourceLabel = NULL; UINT8 *VendorData = NULL; UINT16 ResSourceLength; UINT16 ResSourceLabelLength; UINT16 VendorLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Resource Source Label string * 3) Vendor Data buffer */ ResSourceLength = RsGetStringDataLengthAt (InitializerOp, 2); ResSourceLabelLength = RsGetStringDataLengthAt (InitializerOp, 4); VendorLength = RsGetBufferDataLength (InitializerOp); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_GROUP_FUNCTION) + ResSourceLength + ResSourceLabelLength + VendorLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->PinGroupFunction.ResourceLength = DescriptorSize; Descriptor->PinGroupFunction.DescriptorType = ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION; Descriptor->PinGroupFunction.RevisionId = AML_RESOURCE_PIN_GROUP_FUNCTION_REVISION; /* Build pointers to optional areas */ ResourceSource = ACPI_ADD_PTR (char, Descriptor, sizeof (AML_RESOURCE_PIN_GROUP_FUNCTION)); ResourceSourceLabel = ACPI_ADD_PTR (char, ResourceSource, ResSourceLength); VendorData = ACPI_ADD_PTR (UINT8, ResourceSourceLabel, ResSourceLabelLength); /* Setup offsets within the descriptor */ Descriptor->PinGroupFunction.ResSourceOffset = (UINT16) ACPI_PTR_DIFF (ResourceSource, Descriptor); Descriptor->PinGroupFunction.ResSourceLabelOffset = (UINT16) ACPI_PTR_DIFF (ResourceSourceLabel, Descriptor); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Share Type [Flags] (_SHR) */ RsSetFlagBits16 (&Descriptor->PinGroupFunction.Flags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (PinGroupFunction.Flags), 0); break; case 1: /* Function Number [WORD] */ Descriptor->PinGroupFunction.FunctionNumber = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_FUNCTION, CurrentByteOffset + ASL_RESDESC_OFFSET (PinGroupFunction.FunctionNumber)); break; case 2: /* ResourceSource [STRING] */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); break; case 3: /* Resource Index */ Descriptor->PinGroupFunction.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; break; case 4: /* ResourceSourceLabel [STRING] */ if (ResSourceLabelLength < 2) { AslError(ASL_WARNING, ASL_MSG_NULL_STRING, InitializerOp, NULL); } strcpy (ResourceSourceLabel, InitializerOp->Asl.Value.String); break; case 5: /* Resource Usage (consumer/producer) */ RsSetFlagBits16 (&Descriptor->PinGroupFunction.Flags, InitializerOp, 1, 1); break; case 6: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 7: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ /* * Always set the VendorOffset even if there is no Vendor Data. * This field is required in order to calculate the length * of the ResourceSource at runtime. */ Descriptor->PinGroupFunction.VendorOffset = (UINT16) ACPI_PTR_DIFF (VendorData, Descriptor); if (RsGetVendorData (InitializerOp, VendorData, (CurrentByteOffset + Descriptor->PinGroupFunction.VendorOffset))) { Descriptor->PinGroupFunction.VendorLength = VendorLength; } break; default: break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoPinGroupConfigDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "PinGroupConfig" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoPinGroupConfigDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; char *ResourceSource = NULL; char *ResourceSourceLabel = NULL; UINT8 *VendorData = NULL; UINT16 ResSourceLength; UINT16 ResSourceLabelLength; UINT16 VendorLength; UINT16 DescriptorSize; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; /* * Calculate lengths for fields that have variable length: * 1) Resource Source string * 2) Resource Source Label string * 3) Vendor Data buffer */ ResSourceLength = RsGetStringDataLengthAt (InitializerOp, 3); ResSourceLabelLength = RsGetStringDataLengthAt (InitializerOp, 5); VendorLength = RsGetBufferDataLength (InitializerOp); DescriptorSize = ACPI_AML_SIZE_LARGE (AML_RESOURCE_PIN_GROUP_CONFIG) + ResSourceLength + ResSourceLabelLength + VendorLength; /* Allocate the local resource node and initialize */ Rnode = RsAllocateResourceNode (DescriptorSize + sizeof (AML_RESOURCE_LARGE_HEADER)); Descriptor = Rnode->Buffer; Descriptor->PinGroupConfig.ResourceLength = DescriptorSize; Descriptor->PinGroupConfig.DescriptorType = ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG; Descriptor->PinGroupConfig.RevisionId = AML_RESOURCE_PIN_GROUP_CONFIG_REVISION; /* Build pointers to optional areas */ ResourceSource = ACPI_ADD_PTR (char, Descriptor, sizeof (AML_RESOURCE_PIN_GROUP_CONFIG)); ResourceSourceLabel = ACPI_ADD_PTR (char, ResourceSource, ResSourceLength); VendorData = ACPI_ADD_PTR (UINT8, ResourceSourceLabel, ResSourceLabelLength); /* Setup offsets within the descriptor */ Descriptor->PinGroupConfig.ResSourceOffset = (UINT16) ACPI_PTR_DIFF (ResourceSource, Descriptor); Descriptor->PinGroupConfig.ResSourceLabelOffset = (UINT16) ACPI_PTR_DIFF (ResourceSourceLabel, Descriptor); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { BOOLEAN isValid; switch (i) { case 0: /* Share Type [Flags] (_SHR) */ RsSetFlagBits16 (&Descriptor->PinGroupConfig.Flags, InitializerOp, 0, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (PinGroupConfig.Flags), 0); break; case 1: /* Pin Config Type [BYTE] (_TYP) */ isValid = InitializerOp->Asl.Value.Integer <= 0x0d; if (!isValid) { isValid = InitializerOp->Asl.Value.Integer >= 0x80 && InitializerOp->Asl.Value.Integer <= 0xff; } if (!isValid) { AslError (ASL_ERROR, ASL_MSG_RANGE, InitializerOp, NULL); } Descriptor->PinGroupConfig.PinConfigType = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_PINCONFIG_TYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (PinGroupConfig.PinConfigType)); break; case 2: /* Pin Config Value [DWORD] (_VAL) */ Descriptor->PinGroupConfig.PinConfigValue = (UINT32) InitializerOp->Asl.Value.Integer; RsCreateDwordField (InitializerOp, ACPI_RESTAG_PINCONFIG_VALUE, CurrentByteOffset + ASL_RESDESC_OFFSET (PinGroupConfig.PinConfigValue)); break; case 3: /* ResourceSource [STRING] */ /* Copy string to the descriptor */ strcpy (ResourceSource, InitializerOp->Asl.Value.String); break; case 4: /* Resource Index */ Descriptor->PinGroupConfig.ResSourceIndex = (UINT8) InitializerOp->Asl.Value.Integer; break; case 5: /* ResourceSourceLabel [STRING] */ if (ResSourceLabelLength < 2) { AslError(ASL_WARNING, ASL_MSG_NULL_STRING, InitializerOp, NULL); } strcpy (ResourceSourceLabel, InitializerOp->Asl.Value.String); break; case 6: /* Resource Usage (consumer/producer) */ RsSetFlagBits16 (&Descriptor->PinGroupConfig.Flags, InitializerOp, 1, 1); break; case 7: /* Resource Tag (Descriptor Name) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 8: /* Vendor Data (Optional - Buffer of BYTEs) (_VEN) */ /* * Always set the VendorOffset even if there is no Vendor Data. * This field is required in order to calculate the length * of the ResourceSource at runtime. */ Descriptor->PinGroupConfig.VendorOffset = (UINT16) ACPI_PTR_DIFF (VendorData, Descriptor); if (RsGetVendorData (InitializerOp, VendorData, (CurrentByteOffset + Descriptor->PinGroupConfig.VendorOffset))) { Descriptor->PinGroupConfig.VendorLength = VendorLength; } break; default: break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } acpica-unix-20250404/source/compiler/aslwalks.c0000775000175000017500000010111214773714131020633 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslwalks.c - Miscellaneous analytical parse tree walks * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acparser.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslwalks") /* Local prototypes */ static void AnAnalyzeStoreOperator ( ACPI_PARSE_OBJECT *Op); static BOOLEAN AnIsValidBufferConstant ( ACPI_PARSE_OBJECT *Op); static void AnValidateCreateBufferField ( ACPI_PARSE_OBJECT *CreateBufferFieldOp); /******************************************************************************* * * FUNCTION: AnMethodTypingWalkEnd * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Ascending callback for typing walk. Complete the method * return analysis. Check methods for: * 1) Initialized local variables * 2) Valid arguments * 3) Return types * ******************************************************************************/ ACPI_STATUS AnMethodTypingWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { UINT32 ThisOpBtype; switch (Op->Asl.ParseOpcode) { case PARSEOP_METHOD: Op->Asl.CompileFlags |= OP_METHOD_TYPED; break; case PARSEOP_RETURN: if ((Op->Asl.Child) && (Op->Asl.Child->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG)) { ThisOpBtype = AnGetBtype (Op->Asl.Child); if ((Op->Asl.Child->Asl.ParseOpcode == PARSEOP_METHODCALL) && (ThisOpBtype == (ACPI_UINT32_MAX -1))) { /* * The called method is untyped at this time (typically a * forward reference). * * Check for a recursive method call first. Note: the * Child->Node will be null if the method has not been * resolved. */ if (Op->Asl.Child->Asl.Node && (Op->Asl.ParentMethod != Op->Asl.Child->Asl.Node->Op)) { /* We must type the method here */ TrWalkParseTree (Op->Asl.Child->Asl.Node->Op, ASL_WALK_VISIT_UPWARD, NULL, AnMethodTypingWalkEnd, NULL); ThisOpBtype = AnGetBtype (Op->Asl.Child); } } /* Returns a value, save the value type */ if (Op->Asl.ParentMethod) { Op->Asl.ParentMethod->Asl.AcpiBtype |= ThisOpBtype; } } break; default: break; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AnOperandTypecheckWalkEnd * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Ascending callback for analysis walk. Complete method * return analysis. * ******************************************************************************/ ACPI_STATUS AnOperandTypecheckWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { const ACPI_OPCODE_INFO *OpInfo; UINT32 RuntimeArgTypes; UINT32 RuntimeArgTypes2; UINT32 RequiredBtypes; UINT32 ThisNodeBtype; UINT32 CommonBtypes; UINT32 OpcodeClass; ACPI_PARSE_OBJECT *ArgOp; UINT32 ArgType; switch (Op->Asl.AmlOpcode) { case AML_RAW_DATA_BYTE: case AML_RAW_DATA_WORD: case AML_RAW_DATA_DWORD: case AML_RAW_DATA_QWORD: case AML_RAW_DATA_BUFFER: case AML_RAW_DATA_CHAIN: case AML_PACKAGE_LENGTH: case AML_UNASSIGNED_OPCODE: case AML_DEFAULT_ARG_OP: /* Ignore the internal (compiler-only) AML opcodes */ return (AE_OK); default: break; } OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); if (!OpInfo) { return (AE_OK); } ArgOp = Op->Asl.Child; OpcodeClass = OpInfo->Class; RuntimeArgTypes = OpInfo->RuntimeArgs; #ifdef ASL_ERROR_NAMED_OBJECT_IN_WHILE /* * Update 11/2008: In practice, we can't perform this check. A simple * analysis is not sufficient. Also, it can cause errors when compiling * disassembled code because of the way Switch operators are implemented * (a While(One) loop with a named temp variable created within.) */ /* * If we are creating a named object, check if we are within a while loop * by checking if the parent is a WHILE op. This is a simple analysis, but * probably sufficient for many cases. * * Allow Scope(), Buffer(), and Package(). */ if (((OpcodeClass == AML_CLASS_NAMED_OBJECT) && (Op->Asl.AmlOpcode != AML_SCOPE_OP)) || ((OpcodeClass == AML_CLASS_CREATE) && (OpInfo->Flags & AML_NSNODE))) { if (Op->Asl.Parent->Asl.AmlOpcode == AML_WHILE_OP) { AslError (ASL_ERROR, ASL_MSG_NAMED_OBJECT_IN_WHILE, Op, NULL); } } #endif /* * Special case for control opcodes IF/RETURN/WHILE since they * have no runtime arg list (at this time) */ switch (Op->Asl.AmlOpcode) { case AML_IF_OP: case AML_WHILE_OP: case AML_RETURN_OP: if (ArgOp->Asl.ParseOpcode == PARSEOP_METHODCALL) { /* Check for an internal method */ if (AnIsInternalMethod (ArgOp)) { return (AE_OK); } /* The lone arg is a method call, check it */ RequiredBtypes = AnMapArgTypeToBtype (ARGI_INTEGER); if (Op->Asl.AmlOpcode == AML_RETURN_OP) { RequiredBtypes = 0xFFFFFFFF; } ThisNodeBtype = AnGetBtype (ArgOp); if (ThisNodeBtype == ACPI_UINT32_MAX) { return (AE_OK); } AnCheckMethodReturnValue (Op, OpInfo, ArgOp, RequiredBtypes, ThisNodeBtype); } return (AE_OK); case AML_EXTERNAL_OP: /* * Not really a "runtime" opcode since it used by disassembler only. * The parser will find any issues with the operands. */ return (AE_OK); default: break; } /* Ignore the non-executable opcodes */ if (RuntimeArgTypes == ARGI_INVALID_OPCODE) { return (AE_OK); } /* * Special handling for certain opcodes. */ switch (Op->Asl.AmlOpcode) { /* BankField has one TermArg */ case AML_BANK_FIELD_OP: OpcodeClass = AML_CLASS_EXECUTE; ArgOp = ArgOp->Asl.Next; ArgOp = ArgOp->Asl.Next; break; /* Operation Region has 2 TermArgs */ case AML_REGION_OP: OpcodeClass = AML_CLASS_EXECUTE; ArgOp = ArgOp->Asl.Next; ArgOp = ArgOp->Asl.Next; break; /* DataTableRegion has 3 TermArgs */ case AML_DATA_REGION_OP: OpcodeClass = AML_CLASS_EXECUTE; ArgOp = ArgOp->Asl.Next; break; /* Buffers/Packages have a length that is a TermArg */ case AML_BUFFER_OP: case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: /* If length is a constant, we are done */ if ((ArgOp->Asl.ParseOpcode == PARSEOP_INTEGER) || (ArgOp->Asl.ParseOpcode == PARSEOP_RAW_DATA)) { return (AE_OK); } break; /* Store can write any object to the Debug object */ case AML_STORE_OP: /* * If this is a Store() to the Debug object, we don't need * to perform any further validation -- because a Store of * any object to Debug is permitted and supported. */ if (ArgOp->Asl.Next->Asl.AmlOpcode == AML_DEBUG_OP) { return (AE_OK); } break; default: break; } switch (OpcodeClass) { case AML_CLASS_EXECUTE: case AML_CLASS_CREATE: case AML_CLASS_CONTROL: case AML_CLASS_RETURN_VALUE: /* Reverse the runtime argument list */ RuntimeArgTypes2 = 0; while ((ArgType = GET_CURRENT_ARG_TYPE (RuntimeArgTypes))) { RuntimeArgTypes2 <<= ARG_TYPE_WIDTH; RuntimeArgTypes2 |= ArgType; INCREMENT_ARG_LIST (RuntimeArgTypes); } /* Typecheck each argument */ while ((ArgType = GET_CURRENT_ARG_TYPE (RuntimeArgTypes2))) { /* Get the required type(s) for the argument */ RequiredBtypes = AnMapArgTypeToBtype (ArgType); if (!ArgOp) { AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, Op, "Null ArgOp in argument loop"); AslAbort (); } /* Get the actual type of the argument */ ThisNodeBtype = AnGetBtype (ArgOp); if (ThisNodeBtype == ACPI_UINT32_MAX) { goto NextArgument; } /* Examine the arg based on the required type of the arg */ switch (ArgType) { case ARGI_TARGETREF: if (ArgOp->Asl.ParseOpcode == PARSEOP_ZERO) { /* ZERO is the placeholder for "don't store result" */ ThisNodeBtype = RequiredBtypes; break; } ACPI_FALLTHROUGH; case ARGI_STORE_TARGET: if (ArgOp->Asl.ParseOpcode == PARSEOP_INTEGER) { /* * This is the case where an original reference to a resource * descriptor field has been replaced by an (Integer) offset. * These named fields are supported at compile-time only; * the names are not passed to the interpreter (via the AML). */ if ((ArgOp->Asl.Node->Type == ACPI_TYPE_LOCAL_RESOURCE_FIELD) || (ArgOp->Asl.Node->Type == ACPI_TYPE_LOCAL_RESOURCE)) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_FIELD, ArgOp, NULL); } else { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ArgOp, NULL); } } break; #ifdef __FUTURE_IMPLEMENTATION /* * Possible future typechecking support */ case ARGI_REFERENCE: /* References */ case ARGI_INTEGER_REF: case ARGI_OBJECT_REF: case ARGI_DEVICE_REF: switch (ArgOp->Asl.ParseOpcode) { case PARSEOP_LOCAL0: case PARSEOP_LOCAL1: case PARSEOP_LOCAL2: case PARSEOP_LOCAL3: case PARSEOP_LOCAL4: case PARSEOP_LOCAL5: case PARSEOP_LOCAL6: case PARSEOP_LOCAL7: /* TBD: implement analysis of current value (type) of the local */ /* For now, just treat any local as a typematch */ /*ThisNodeBtype = RequiredBtypes;*/ break; case PARSEOP_ARG0: case PARSEOP_ARG1: case PARSEOP_ARG2: case PARSEOP_ARG3: case PARSEOP_ARG4: case PARSEOP_ARG5: case PARSEOP_ARG6: /* Hard to analyze argument types, so we won't */ /* for now. Just treat any arg as a typematch */ /* ThisNodeBtype = RequiredBtypes; */ break; case PARSEOP_DEBUG: case PARSEOP_REFOF: case PARSEOP_INDEX: default: break; } break; #endif case ARGI_INTEGER: default: break; } /* Check for a type mismatch (required versus actual) */ CommonBtypes = ThisNodeBtype & RequiredBtypes; if (ArgOp->Asl.ParseOpcode == PARSEOP_METHODCALL) { if (AnIsInternalMethod (ArgOp)) { return (AE_OK); } /* Check a method call for a valid return value */ AnCheckMethodReturnValue (Op, OpInfo, ArgOp, RequiredBtypes, ThisNodeBtype); } /* * Now check if the actual type(s) match at least one * bit to the required type */ else if (!CommonBtypes) { /* No match -- this is a type mismatch error */ AnFormatBtype (AslGbl_StringBuffer, ThisNodeBtype); AnFormatBtype (AslGbl_StringBuffer2, RequiredBtypes); sprintf (AslGbl_MsgBuffer, "[%s] found, %s operator requires [%s]", AslGbl_StringBuffer, OpInfo->Name, AslGbl_StringBuffer2); AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, ArgOp, AslGbl_MsgBuffer); } NextArgument: ArgOp = ArgOp->Asl.Next; INCREMENT_ARG_LIST (RuntimeArgTypes2); } break; default: break; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AnOtherSemanticAnalysisWalkBegin * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Descending callback for the analysis walk. Checks for * miscellaneous issues in the code. * ******************************************************************************/ ACPI_STATUS AnOtherSemanticAnalysisWalkBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_PARSE_OBJECT *ArgOp; ACPI_PARSE_OBJECT *PrevArgOp = NULL; const ACPI_OPCODE_INFO *OpInfo; ACPI_NAMESPACE_NODE *Node; OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); if (OpInfo->Flags & AML_CREATE) { /* This group contains all of the Create Buffer Field operators */ AnValidateCreateBufferField (Op); return (AE_OK); } /* * Determine if an execution class operator actually does something by * checking if it has a target and/or the function return value is used. * (Target is optional, so a standalone statement can actually do nothing.) */ if ((OpInfo->Class == AML_CLASS_EXECUTE) && (OpInfo->Flags & AML_HAS_RETVAL) && (!AnIsResultUsed (Op))) { if (OpInfo->Flags & AML_HAS_TARGET) { /* * Find the target node, it is always the last child. If the target * is not specified in the ASL, a default node of type Zero was * created by the parser. */ ArgOp = Op->Asl.Child; while (ArgOp->Asl.Next) { PrevArgOp = ArgOp; ArgOp = ArgOp->Asl.Next; } /* Divide() is the only weird case, it has two targets */ if (Op->Asl.AmlOpcode == AML_DIVIDE_OP) { if ((ArgOp->Asl.ParseOpcode == PARSEOP_ZERO) && (PrevArgOp) && (PrevArgOp->Asl.ParseOpcode == PARSEOP_ZERO)) { AslError (ASL_ERROR, ASL_MSG_RESULT_NOT_USED, Op, Op->Asl.ExternalName); } } else if (ArgOp->Asl.ParseOpcode == PARSEOP_ZERO) { AslError (ASL_ERROR, ASL_MSG_RESULT_NOT_USED, Op, Op->Asl.ExternalName); } } else { /* * Has no target and the result is not used. Only a couple opcodes * can have this combination. */ switch (Op->Asl.ParseOpcode) { case PARSEOP_ACQUIRE: case PARSEOP_WAIT: case PARSEOP_LOADTABLE: break; default: AslError (ASL_ERROR, ASL_MSG_RESULT_NOT_USED, Op, Op->Asl.ExternalName); break; } } } /* * Semantic checks for individual ASL operators */ switch (Op->Asl.ParseOpcode) { case PARSEOP_STORE: if (AslGbl_DoTypechecking) { AnAnalyzeStoreOperator (Op); } break; case PARSEOP_ACQUIRE: case PARSEOP_WAIT: /* * Emit a warning if the timeout parameter for these operators is not * ACPI_WAIT_FOREVER, and the result value from the operator is not * checked, meaning that a timeout could happen, but the code * would not know about it. */ /* First child is the namepath, 2nd child is timeout */ ArgOp = Op->Asl.Child; ArgOp = ArgOp->Asl.Next; /* * Check for the WAIT_FOREVER case - defined by the ACPI spec to be * 0xFFFF or greater */ if (((ArgOp->Asl.ParseOpcode == PARSEOP_WORDCONST) || (ArgOp->Asl.ParseOpcode == PARSEOP_INTEGER)) && (ArgOp->Asl.Value.Integer >= (UINT64) ACPI_WAIT_FOREVER)) { break; } /* * The operation could timeout. If the return value is not used * (indicates timeout occurred), issue a warning */ if (!AnIsResultUsed (Op)) { AslError (ASL_WARNING, ASL_MSG_TIMEOUT, ArgOp, Op->Asl.ExternalName); } break; case PARSEOP_CONNECTION: /* * Ensure that the referenced operation region has the correct SPACE_ID. * From the grammar/parser, we know the parent is a FIELD definition. */ ArgOp = Op->Asl.Parent; /* Field definition */ ArgOp = ArgOp->Asl.Child; /* First child is the OpRegion Name */ Node = ArgOp->Asl.Node; /* OpRegion namespace node */ if (!Node) { break; } ArgOp = Node->Op; /* OpRegion definition */ ArgOp = ArgOp->Asl.Child; /* First child is the OpRegion Name */ ArgOp = ArgOp->Asl.Next; /* Next peer is the SPACE_ID (what we want) */ /* * The Connection() operator is only valid for the following operation * region SpaceIds: GeneralPurposeIo and GenericSerialBus. */ if ((ArgOp->Asl.Value.Integer != ACPI_ADR_SPACE_GPIO) && (ArgOp->Asl.Value.Integer != ACPI_ADR_SPACE_GSBUS)) { AslError (ASL_ERROR, ASL_MSG_CONNECTION_INVALID, Op, NULL); } break; case PARSEOP_FIELD: /* * Ensure that fields for GeneralPurposeIo and GenericSerialBus * contain at least one Connection() operator */ ArgOp = Op->Asl.Child; /* 1st child is the OpRegion Name */ Node = ArgOp->Asl.Node; /* OpRegion namespace node */ if (!Node) { break; } ArgOp = Node->Op; /* OpRegion definition */ ArgOp = ArgOp->Asl.Child; /* First child is the OpRegion Name */ ArgOp = ArgOp->Asl.Next; /* Next peer is the SPACE_ID (what we want) */ /* We are only interested in GeneralPurposeIo and GenericSerialBus */ if ((ArgOp->Asl.Value.Integer != ACPI_ADR_SPACE_GPIO) && (ArgOp->Asl.Value.Integer != ACPI_ADR_SPACE_GSBUS)) { break; } ArgOp = Op->Asl.Child; /* 1st child is the OpRegion Name */ ArgOp = ArgOp->Asl.Next; /* AccessType */ ArgOp = ArgOp->Asl.Next; /* LockRule */ ArgOp = ArgOp->Asl.Next; /* UpdateRule */ ArgOp = ArgOp->Asl.Next; /* Start of FieldUnitList */ /* Walk the FieldUnitList */ while (ArgOp) { if (ArgOp->Asl.ParseOpcode == PARSEOP_CONNECTION) { break; } else if (ArgOp->Asl.ParseOpcode == PARSEOP_NAMESEG) { AslError (ASL_ERROR, ASL_MSG_CONNECTION_MISSING, ArgOp, NULL); break; } ArgOp = ArgOp->Asl.Next; } break; default: break; } return (AE_OK); } /******************************************************************************* * * FUNCTION: AnValidateCreateBufferField * * PARAMETERS: Op - A create buffer field operator * * RETURN: None * * DESCRIPTION: Check if a buffer index argument to a create buffer field * operation is beyond the end of the target buffer. * * Validates these AML operators: * * AML_CREATE_FIELD_OP * AML_CREATE_BIT_FIELD_OP * AML_CREATE_BYTE_FIELD_OP * AML_CREATE_WORD_FIELD_OP * AML_CREATE_DWORD_FIELD_OP * AML_CREATE_QWORD_FIELD_OP * * There are two conditions that must be satisfied in order to enable * validation at compile time: * * 1) The length of the target buffer must be an integer constant * 2) The index specified in the create* must be an integer constant * 3) For CreateField, the bit length argument must be non-zero. * ******************************************************************************/ static void AnValidateCreateBufferField ( ACPI_PARSE_OBJECT *CreateBufferFieldOp) { ACPI_PARSE_OBJECT *TargetBufferOp; ACPI_PARSE_OBJECT *ArgOp; UINT32 TargetBufferLength; UINT32 LastFieldByteIndex; /* * 1) Get the length of the target buffer */ ArgOp = CreateBufferFieldOp->Asl.Child; /* Reference to target buffer */ /* * If no attached Node, the target buffer may be something like an * ArgX or LocalX and cannot be evaluated at compile time. */ if (!ArgOp->Asl.Node) { return; } TargetBufferOp = ArgOp->Asl.Node->Op; TargetBufferOp = TargetBufferOp->Asl.Child; /* Target buffer */ TargetBufferOp = TargetBufferOp->Asl.Next; /* "Buffer" keyword */ if (!TargetBufferOp) { /* Not a statement of the form NAME(XXXX, Buffer.... */ return; } /* Get the buffer length argument. It must be an integer constant */ ArgOp = TargetBufferOp->Asl.Child; if (!AnIsValidBufferConstant (ArgOp)) { return; } TargetBufferLength = (UINT32) ArgOp->Asl.Value.Integer; /* * 2) Get the value of the buffer index argument. It must be * an integer constant. */ ArgOp = CreateBufferFieldOp->Asl.Child; /* Reference to target buffer */ ArgOp = ArgOp->Asl.Next; /* Buffer Index argument*/ if (!AnIsValidBufferConstant (ArgOp)) { return; } LastFieldByteIndex = (UINT32) ArgOp->Asl.Value.Integer; /* Index can be in either bytes or bits */ /* * 3) Get the length of the new buffer field, in bytes. Also, * create the final target buffer index for the last byte of the field */ switch (CreateBufferFieldOp->Asl.ParseOpcode) { case PARSEOP_CREATEBITFIELD: /* A one bit field */ LastFieldByteIndex = ACPI_ROUND_BITS_DOWN_TO_BYTES (LastFieldByteIndex); break; case PARSEOP_CREATEBYTEFIELD: break; case PARSEOP_CREATEWORDFIELD: LastFieldByteIndex += (sizeof (UINT16) - 1); break; case PARSEOP_CREATEDWORDFIELD: LastFieldByteIndex += (sizeof (UINT32) - 1); break; case PARSEOP_CREATEQWORDFIELD: LastFieldByteIndex += (sizeof (UINT64) - 1); break; case PARSEOP_CREATEFIELD: /* Multi-bit field */ ArgOp = ArgOp->Asl.Next; /* Length argument, in bits */ if (!AnIsValidBufferConstant (ArgOp)) { return; } /* The buffer field length is not allowed to be zero */ if (ArgOp->Asl.Value.Integer == 0) { AslError (ASL_WARNING, ASL_MSG_BUFFER_FIELD_LENGTH, ArgOp, NULL); return; } LastFieldByteIndex += ((UINT32) ArgOp->Asl.Value.Integer - 1); /* Create final bit index */ /* Convert bit index to a byte index */ LastFieldByteIndex = ACPI_ROUND_BITS_DOWN_TO_BYTES (LastFieldByteIndex); break; default: return; } /* * 4) Check for an access (index) beyond the end of the target buffer, * or a zero length target buffer. */ if (!TargetBufferLength || (LastFieldByteIndex >= TargetBufferLength)) { AslError (ASL_WARNING, ASL_MSG_BUFFER_FIELD_OVERFLOW, ArgOp, NULL); } } /******************************************************************************* * * FUNCTION: AnIsValidBufferConstant * * PARAMETERS: Op - A buffer-related operand * * RETURN: TRUE if operand is valid constant, FALSE otherwise * * DESCRIPTION: Check if the input Op is valid constant that can be used * in compile-time analysis. * ******************************************************************************/ static BOOLEAN AnIsValidBufferConstant ( ACPI_PARSE_OBJECT *Op) { if (!Op) { return (FALSE); } if ((Op->Asl.ParseOpcode == PARSEOP_INTEGER) || (Op->Asl.ParseOpcode == PARSEOP_ZERO) || (Op->Asl.ParseOpcode == PARSEOP_ONE)) { return (TRUE); } return (FALSE); } /******************************************************************************* * * FUNCTION: AnAnalyzeStoreOperator * * PARAMETERS: Op - Store() operator * * RETURN: None * * DESCRIPTION: Analyze a store operator. Mostly for stores to/from package * objects where there are more restrictions than other data * types. * ******************************************************************************/ static void AnAnalyzeStoreOperator ( ACPI_PARSE_OBJECT *Op) { ACPI_NAMESPACE_NODE *SourceNode; ACPI_NAMESPACE_NODE *TargetNode; ACPI_PARSE_OBJECT *SourceOperandOp; ACPI_PARSE_OBJECT *TargetOperandOp; UINT32 SourceOperandBtype; UINT32 TargetOperandBtype; /* Extract the two operands for STORE */ SourceOperandOp = Op->Asl.Child; TargetOperandOp = SourceOperandOp->Asl.Next; /* * Ignore these Source operand opcodes, they cannot be typechecked, * the actual result is unknown here. */ switch (SourceOperandOp->Asl.ParseOpcode) { /* For these, type of the returned value is unknown at compile time */ case PARSEOP_DEREFOF: case PARSEOP_METHODCALL: case PARSEOP_STORE: case PARSEOP_COPYOBJECT: return; case PARSEOP_INDEX: case PARSEOP_REFOF: if (!AslGbl_EnableReferenceTypechecking) { return; } /* * These opcodes always return an object reference, and thus * the result can only be stored to a Local, Arg, or Debug. */ if (TargetOperandOp->Asl.AmlOpcode == AML_DEBUG_OP) { return; } if ((TargetOperandOp->Asl.AmlOpcode < AML_LOCAL0) || (TargetOperandOp->Asl.AmlOpcode > AML_ARG6)) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, TargetOperandOp, "Source [Reference], Target must be [Local/Arg/Debug]"); } return; default: break; } /* * Ignore these Target operand opcodes, they cannot be typechecked */ switch (TargetOperandOp->Asl.ParseOpcode) { case PARSEOP_DEBUG: case PARSEOP_DEREFOF: case PARSEOP_REFOF: case PARSEOP_INDEX: case PARSEOP_STORE: return; default: break; } /* * Ignore typecheck for External() operands of type "UnknownObj", * we don't know the actual type (source or target). */ SourceNode = SourceOperandOp->Asl.Node; if (SourceNode && (SourceNode->Flags & ANOBJ_IS_EXTERNAL) && (SourceNode->Type == ACPI_TYPE_ANY)) { return; } TargetNode = TargetOperandOp->Asl.Node; if (TargetNode && (TargetNode->Flags & ANOBJ_IS_EXTERNAL) && (TargetNode->Type == ACPI_TYPE_ANY)) { return; } /* * A NULL node with a namepath AML opcode indicates non-existent * name. Just return, the error message is generated elsewhere. */ if ((!SourceNode && (SourceOperandOp->Asl.AmlOpcode == AML_INT_NAMEPATH_OP)) || (!TargetNode && (TargetOperandOp->Asl.AmlOpcode == AML_INT_NAMEPATH_OP))) { return; } /* * Simple check for source same as target via NS node. * -- Could be expanded to locals and args. */ if (SourceNode && TargetNode) { if (SourceNode == TargetNode) { AslError (ASL_WARNING, ASL_MSG_DUPLICATE_ITEM, TargetOperandOp, "Source is the same as Target"); return; } } /* Ignore typecheck if either source or target is a local or arg */ if ((SourceOperandOp->Asl.AmlOpcode >= AML_LOCAL0) && (SourceOperandOp->Asl.AmlOpcode <= AML_ARG6)) { return; /* Cannot type a local/arg at compile time */ } if ((TargetOperandOp->Asl.AmlOpcode >= AML_LOCAL0) && (TargetOperandOp->Asl.AmlOpcode <= AML_ARG6)) { return; /* Cannot type a local/arg at compile time */ } /* * Package objects are a special case because they cannot by implicitly * converted to/from anything. Check for these two illegal cases: * * Store (non-package, package) * Store (package, non-package) */ SourceOperandBtype = AnGetBtype (SourceOperandOp); TargetOperandBtype = AnGetBtype (TargetOperandOp); /* Check source first for (package, non-package) case */ if (SourceOperandBtype & ACPI_BTYPE_PACKAGE) { /* If Source is PACKAGE-->Target must be PACKAGE */ if (!(TargetOperandBtype & ACPI_BTYPE_PACKAGE)) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, TargetOperandOp, "Source is [Package], Target must be a package also"); } } /* Else check target for (non-package, package) case */ else if (TargetOperandBtype & ACPI_BTYPE_PACKAGE) { /* If Target is PACKAGE, Source must be PACKAGE */ if (!(SourceOperandBtype & ACPI_BTYPE_PACKAGE)) { AslError (ASL_ERROR, ASL_MSG_INVALID_TYPE, SourceOperandOp, "Target is [Package], Source must be a package also"); } } } acpica-unix-20250404/source/compiler/aslsupport.y0000775000175000017500000000736414773714131021272 0ustar ivanhuivanhuNoEcho(' /****************************************************************************** * * Module Name: aslsupport.y - Bison/Yacc C support functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ ') /****************************************************************************** * * Local support functions * *****************************************************************************/ /*! [Begin] no source code translation */ int AslCompilerwrap(void) { return (1); } /*! [End] no source code translation !*/ void * AslLocalAllocate ( unsigned int Size) { void *Mem; DbgPrint (ASL_PARSE_OUTPUT, "\nAslLocalAllocate: Expanding Stack to %u\n\n", Size); Mem = ACPI_ALLOCATE_ZEROED (Size); if (!Mem) { AslCommonError (ASL_ERROR, ASL_MSG_MEMORY_ALLOCATION, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_InputByteCount, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, NULL); exit (1); } return (Mem); } ACPI_PARSE_OBJECT * AslDoError ( void) { return (TrCreateLeafOp (PARSEOP_ERRORNODE)); } /******************************************************************************* * * FUNCTION: UtGetOpName * * PARAMETERS: ParseOpcode - Parser keyword ID * * RETURN: Pointer to the opcode name * * DESCRIPTION: Get the ascii name of the parse opcode * ******************************************************************************/ char * UtGetOpName ( UINT32 ParseOpcode) { #ifdef ASL_YYTNAME_START /* * First entries (ASL_YYTNAME_START) in yytname are special reserved names. * Ignore first 8 characters of the name */ return ((char *) yytname [(ParseOpcode - ASL_FIRST_PARSE_OPCODE) + ASL_YYTNAME_START] + 8); #else return ("[Unknown parser generator]"); #endif } acpica-unix-20250404/source/compiler/aslresources.y0000775000175000017500000011501514773714131021561 0ustar ivanhuivanhuNoEcho(' /****************************************************************************** * * Module Name: aslresources.y - Bison/Yacc production rules for resources * - Keep this file synched with the * CvParseOpBlockType function in cvcompiler.c * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ ') /******************************************************************************* * * ASL Resource Template Terms * ******************************************************************************/ /* * Note: Create two default nodes to allow conversion to a Buffer AML opcode * Also, insert the EndTag at the end of the template. */ ResourceTemplateTerm : PARSEOP_RESOURCETEMPLATE {COMMENT_CAPTURE_OFF;} OptionalParentheses '{' ResourceMacroList '}' {$$ = TrCreateOp (PARSEOP_RESOURCETEMPLATE,4, TrCreateLeafOp (PARSEOP_DEFAULT_ARG), TrCreateLeafOp (PARSEOP_DEFAULT_ARG), $5, TrCreateLeafOp (PARSEOP_ENDTAG)); COMMENT_CAPTURE_ON;} ; OptionalParentheses : {$$ = NULL;} | PARSEOP_OPEN_PAREN PARSEOP_CLOSE_PAREN {$$ = NULL;} ; ResourceMacroList : {$$ = NULL;} | ResourceMacroList ResourceMacroTerm {$$ = TrLinkPeerOp ($1,$2);} ; ResourceMacroTerm : Csi2SerialBusTerm {} | DMATerm {} | DWordIOTerm {} | DWordMemoryTerm {} | DWordPccTerm {} | DWordSpaceTerm {} | EndDependentFnTerm {} | ExtendedIOTerm {} | ExtendedMemoryTerm {} | ExtendedSpaceTerm {} | FixedDmaTerm {} | FixedIOTerm {} | GpioIntTerm {} | GpioIoTerm {} | I2cSerialBusTerm {} | I2cSerialBusTermV2 {} | InterruptTerm {} | IOTerm {} | IRQNoFlagsTerm {} | IRQTerm {} | Memory24Term {} | Memory32FixedTerm {} | Memory32Term {} | PinConfigTerm {} | PinFunctionTerm {} | ClockInputTerm {} | PinGroupTerm {} | PinGroupConfigTerm {} | PinGroupFunctionTerm {} | QWordIOTerm {} | QWordMemoryTerm {} | QWordPccTerm {} | QWordSpaceTerm {} | RegisterTerm {} | SpiSerialBusTerm {} | SpiSerialBusTermV2 {} | StartDependentFnNoPriTerm {} | StartDependentFnTerm {} | UartSerialBusTerm {} | UartSerialBusTermV2 {} | VendorLongTerm {} | VendorShortTerm {} | WordBusNumberTerm {} | WordIOTerm {} | WordPccTerm {} | WordSpaceTerm {} ; Csi2SerialBusTerm : PARSEOP_CSI2_SERIALBUS PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CSI2_SERIALBUS);} OptionalSlaveMode_First {UtCheckIntegerRange ($4, 0x00, 0x01);} /* 04: SlaveMode */ ',' ByteConstExpr {UtCheckIntegerRange ($7, 0x00, 0x03);} /* 07: PhyType */ OptionalByteConstExpr {UtCheckIntegerRange ($9, 0x00, 0xFC);} /* 09: LocalPortInstance */ ',' StringData /* 12: ResourceSource */ ',' ByteConstExpr /* 14: ResourceSourceIndex */ OptionalResourceType /* 15; ResourceType (ResourceUsage) */ OptionalNameString /* 16: DescriptorName */ OptionalBuffer_Last /* 17: VendorData */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,8, $4,$7,$9,$12,$14,$15,$16,$17);} | PARSEOP_CSI2_SERIALBUS PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} DMATerm : PARSEOP_DMA PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DMA);} DMATypeKeyword OptionalBusMasterKeyword ',' XferTypeKeyword OptionalNameString_Last PARSEOP_CLOSE_PAREN '{' ByteList '}' {$$ = TrLinkOpChildren ($3,5,$4,$5,$7,$8,$11);} | PARSEOP_DMA PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; DWordIOTerm : PARSEOP_DWORDIO PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DWORDIO);} OptionalResourceType_First OptionalMinType OptionalMaxType OptionalDecodeType OptionalRangeType ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString OptionalType OptionalTranslationType_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,15, $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$19,$20,$21,$22,$23);} | PARSEOP_DWORDIO PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; DWordMemoryTerm : PARSEOP_DWORDMEMORY PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DWORDMEMORY);} OptionalResourceType_First OptionalDecodeType OptionalMinType OptionalMaxType OptionalMemType ',' OptionalReadWriteKeyword ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString OptionalAddressRange OptionalType_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,16, $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$20,$21,$22,$23,$24,$25);} | PARSEOP_DWORDMEMORY PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; DWordPccTerm : PARSEOP_DWORDPCC PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DWORDPCC);} ByteConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4, $4,$5,$6,$7);} | PARSEOP_DWORDPCC PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; DWordSpaceTerm : PARSEOP_DWORDSPACE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DWORDSPACE);} ByteConstExpr {UtCheckIntegerRange ($4, 0xC0, 0xFF);} OptionalResourceType OptionalDecodeType OptionalMinType OptionalMaxType ',' ByteConstExpr ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,14, $4,$6,$7,$8,$9,$11,$13,$15,$17,$19,$21,$22,$23,$24);} | PARSEOP_DWORDSPACE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; EndDependentFnTerm : PARSEOP_ENDDEPENDENTFN PARSEOP_OPEN_PAREN PARSEOP_CLOSE_PAREN {$$ = TrCreateLeafOp (PARSEOP_ENDDEPENDENTFN);} | PARSEOP_ENDDEPENDENTFN PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ExtendedIOTerm : PARSEOP_EXTENDEDIO PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_EXTENDEDIO);} OptionalResourceType_First OptionalMinType OptionalMaxType OptionalDecodeType OptionalRangeType ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr OptionalQWordConstExpr OptionalNameString OptionalType OptionalTranslationType_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,14, $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$19,$20,$21,$22);} | PARSEOP_EXTENDEDIO PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ExtendedMemoryTerm : PARSEOP_EXTENDEDMEMORY PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_EXTENDEDMEMORY);} OptionalResourceType_First OptionalDecodeType OptionalMinType OptionalMaxType OptionalMemType ',' OptionalReadWriteKeyword ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr OptionalQWordConstExpr OptionalNameString OptionalAddressRange OptionalType_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,15, $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$20,$21,$22,$23,$24);} | PARSEOP_EXTENDEDMEMORY PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ExtendedSpaceTerm : PARSEOP_EXTENDEDSPACE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_EXTENDEDSPACE);} ByteConstExpr {UtCheckIntegerRange ($4, 0xC0, 0xFF);} OptionalResourceType OptionalDecodeType OptionalMinType OptionalMaxType ',' ByteConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr OptionalQWordConstExpr OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,13, $4,$6,$7,$8,$9,$11,$13,$15,$17,$19,$21,$22,$23);} | PARSEOP_EXTENDEDSPACE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; FixedDmaTerm : PARSEOP_FIXEDDMA PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_FIXEDDMA);} WordConstExpr /* 04: DMA RequestLines */ ',' WordConstExpr /* 06: DMA Channels */ OptionalXferSize /* 07: DMA TransferSize */ OptionalNameString /* 08: DescriptorName */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4,$4,$6,$7,$8);} | PARSEOP_FIXEDDMA PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; FixedIOTerm : PARSEOP_FIXEDIO PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_FIXEDIO);} WordConstExpr ',' ByteConstExpr OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$6,$7);} | PARSEOP_FIXEDIO PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; GpioIntTerm : PARSEOP_GPIO_INT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_GPIO_INT);} InterruptTypeKeyword /* 04: InterruptType */ ',' InterruptLevel /* 06: InterruptLevel */ OptionalShareType /* 07: SharedType */ ',' PinConfigByte /* 09: PinConfig */ OptionalWordConstExpr /* 10: DebounceTimeout */ ',' StringData /* 12: ResourceSource */ OptionalByteConstExpr /* 13: ResourceSourceIndex */ OptionalResourceType /* 14: ResourceType */ OptionalNameString /* 15: DescriptorName */ OptionalBuffer_Last /* 16: VendorData */ PARSEOP_CLOSE_PAREN '{' DWordConstExpr '}' {$$ = TrLinkOpChildren ($3,11, $4,$6,$7,$9,$10,$12,$13,$14,$15,$16,$19);} | PARSEOP_GPIO_INT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; GpioIoTerm : PARSEOP_GPIO_IO PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_GPIO_IO);} OptionalShareType_First /* 04: SharedType */ ',' PinConfigByte /* 06: PinConfig */ OptionalWordConstExpr /* 07: DebounceTimeout */ OptionalWordConstExpr /* 08: DriveStrength */ OptionalIoRestriction /* 09: IoRestriction */ ',' StringData /* 11: ResourceSource */ OptionalByteConstExpr /* 12: ResourceSourceIndex */ OptionalResourceType /* 13: ResourceType */ OptionalNameString /* 14: DescriptorName */ OptionalBuffer_Last /* 15: VendorData */ PARSEOP_CLOSE_PAREN '{' DWordList '}' {$$ = TrLinkOpChildren ($3,11, $4,$6,$7,$8,$9,$11,$12,$13,$14,$15,$18);} | PARSEOP_GPIO_IO PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; I2cSerialBusTerm : PARSEOP_I2C_SERIALBUS PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_I2C_SERIALBUS);} WordConstExpr /* 04: SlaveAddress */ OptionalSlaveMode /* 05: SlaveMode */ ',' DWordConstExpr /* 07: ConnectionSpeed */ OptionalAddressingMode /* 08: AddressingMode */ ',' StringData /* 10: ResourceSource */ OptionalByteConstExpr /* 11: ResourceSourceIndex */ OptionalResourceType /* 12: ResourceType */ OptionalNameString /* 13: DescriptorName */ OptionalBuffer_Last /* 14: VendorData */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,10, $4,$5,$7,$8,$10,$11,$12,$13, TrCreateLeafOp (PARSEOP_DEFAULT_ARG),$14);} | PARSEOP_I2C_SERIALBUS PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; I2cSerialBusTermV2 : PARSEOP_I2C_SERIALBUS_V2 PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_I2C_SERIALBUS_V2);} WordConstExpr /* 04: SlaveAddress */ OptionalSlaveMode /* 05: SlaveMode */ ',' DWordConstExpr /* 07: ConnectionSpeed */ OptionalAddressingMode /* 08: AddressingMode */ ',' StringData /* 10: ResourceSource */ OptionalByteConstExpr /* 11: ResourceSourceIndex */ OptionalResourceType /* 12: ResourceType */ OptionalNameString /* 13: DescriptorName */ OptionalShareType /* 14: Share */ OptionalBuffer_Last /* 15: VendorData */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,10, $4,$5,$7,$8,$10,$11,$12,$13,$14,$15);} | PARSEOP_I2C_SERIALBUS_V2 PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; InterruptTerm : PARSEOP_INTERRUPT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_INTERRUPT);} OptionalResourceType_First ',' InterruptTypeKeyword ',' InterruptLevel OptionalShareType OptionalByteConstExpr OptionalStringData OptionalNameString_Last PARSEOP_CLOSE_PAREN '{' DWordList '}' {$$ = TrLinkOpChildren ($3,8, $4,$6,$8,$9,$10,$11,$12,$15);} | PARSEOP_INTERRUPT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; IOTerm : PARSEOP_IO PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_IO);} IODecodeKeyword ',' WordConstExpr ',' WordConstExpr ',' ByteConstExpr ',' ByteConstExpr OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,6,$4,$6,$8,$10,$12,$13);} | PARSEOP_IO PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; IRQNoFlagsTerm : PARSEOP_IRQNOFLAGS PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_IRQNOFLAGS);} OptionalNameString_First PARSEOP_CLOSE_PAREN '{' ByteList '}' {$$ = TrLinkOpChildren ($3,2,$4,$7);} | PARSEOP_IRQNOFLAGS PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; IRQTerm : PARSEOP_IRQ PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_IRQ);} InterruptTypeKeyword ',' InterruptLevel OptionalShareType OptionalNameString_Last PARSEOP_CLOSE_PAREN '{' ByteList '}' {$$ = TrLinkOpChildren ($3,5,$4,$6,$7,$8,$11);} | PARSEOP_IRQ PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; Memory24Term : PARSEOP_MEMORY24 PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_MEMORY24);} OptionalReadWriteKeyword ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,6,$4,$6,$8,$10,$12,$13);} | PARSEOP_MEMORY24 PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; Memory32FixedTerm : PARSEOP_MEMORY32FIXED PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_MEMORY32FIXED);} OptionalReadWriteKeyword ',' DWordConstExpr ',' DWordConstExpr OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4,$4,$6,$8,$9);} | PARSEOP_MEMORY32FIXED PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; Memory32Term : PARSEOP_MEMORY32 PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_MEMORY32);} OptionalReadWriteKeyword ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr ',' DWordConstExpr OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,6,$4,$6,$8,$10,$12,$13);} | PARSEOP_MEMORY32 PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; PinConfigTerm : PARSEOP_PINCONFIG PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_PINCONFIG);} OptionalShareType_First /* 04: SharedType */ ',' ByteConstExpr /* 06: PinConfigType */ ',' DWordConstExpr /* 08: PinConfigValue */ ',' StringData /* 10: ResourceSource */ OptionalByteConstExpr /* 11: ResourceSourceIndex */ OptionalResourceType /* 12: ResourceType */ OptionalNameString /* 13: DescriptorName */ OptionalBuffer_Last /* 14: VendorData */ PARSEOP_CLOSE_PAREN '{' DWordList '}' {$$ = TrLinkOpChildren ($3,9, $4,$6,$8,$10,$11,$12,$13,$14,$17);} | PARSEOP_PINCONFIG PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; PinFunctionTerm : PARSEOP_PINFUNCTION PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_PINFUNCTION);} OptionalShareType_First /* 04: SharedType */ ',' PinConfigByte /* 06: PinConfig */ ',' WordConstExpr /* 08: FunctionNumber */ ',' StringData /* 10: ResourceSource */ OptionalByteConstExpr /* 11: ResourceSourceIndex */ OptionalResourceType /* 12: ResourceType */ OptionalNameString /* 13: DescriptorName */ OptionalBuffer_Last /* 14: VendorData */ PARSEOP_CLOSE_PAREN '{' DWordList '}' {$$ = TrLinkOpChildren ($3,9, $4,$6,$8,$10,$11,$12,$13,$14,$17);} | PARSEOP_PINFUNCTION PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ClockInputTerm : PARSEOP_CLOCKINPUT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CLOCKINPUT);} DWordConstExpr /* 04: FrequencyNumerator */ ',' WordConstExpr /* 06: FrequencyDivisor */ ',' ClockScaleKeyword /* 08: Scale */ ',' ClockModeKeyword /* 10: Mode*/ OptionalStringData /* 11: ResourceSource */ OptionalByteConstExpr /* 12: ResourceSourceIndex */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,6,$4,$6,$8,$10,$11,$12);} | PARSEOP_CLOCKINPUT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; PinGroupTerm : PARSEOP_PINGROUP PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_PINGROUP);} StringData /* 04: ResourceLabel */ OptionalProducerResourceType /* 05: ResourceType */ OptionalNameString /* 06: DescriptorName */ OptionalBuffer_Last /* 07: VendorData */ PARSEOP_CLOSE_PAREN '{' DWordList '}' {$$ = TrLinkOpChildren ($3,5,$4,$5,$6,$7,$10);} | PARSEOP_PINGROUP PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; PinGroupConfigTerm : PARSEOP_PINGROUPCONFIG PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_PINGROUPCONFIG);} OptionalShareType_First /* 04: SharedType */ ',' ByteConstExpr /* 06: PinConfigType */ ',' DWordConstExpr /* 08: PinConfigValue */ ',' StringData /* 10: ResourceSource */ OptionalByteConstExpr /* 11: ResourceSourceIndex */ ',' StringData /* 13: ResourceSourceLabel */ OptionalResourceType /* 14: ResourceType */ OptionalNameString /* 15: DescriptorName */ OptionalBuffer_Last /* 16: VendorData */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,9, $4,$6,$8,$10,$11,$13,$14,$15,$16);} | PARSEOP_PINGROUPCONFIG PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; PinGroupFunctionTerm : PARSEOP_PINGROUPFUNCTION PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_PINGROUPFUNCTION);} OptionalShareType_First /* 04: SharedType */ ',' WordConstExpr /* 06: FunctionNumber */ ',' StringData /* 08: ResourceSource */ OptionalByteConstExpr /* 09: ResourceSourceIndex */ ',' StringData /* 11: ResourceSourceLabel */ OptionalResourceType /* 12: ResourceType */ OptionalNameString /* 13: DescriptorName */ OptionalBuffer_Last /* 14: VendorData */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,8, $4,$6,$8,$9,$11,$12,$13,$14);} | PARSEOP_PINGROUPFUNCTION PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; QWordIOTerm : PARSEOP_QWORDIO PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_QWORDIO);} OptionalResourceType_First OptionalMinType OptionalMaxType OptionalDecodeType OptionalRangeType ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString OptionalType OptionalTranslationType_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,15, $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$19,$20,$21,$22,$23);} | PARSEOP_QWORDIO PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; QWordMemoryTerm : PARSEOP_QWORDMEMORY PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_QWORDMEMORY);} OptionalResourceType_First OptionalDecodeType OptionalMinType OptionalMaxType OptionalMemType ',' OptionalReadWriteKeyword ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString OptionalAddressRange OptionalType_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,16, $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$20,$21,$22,$23,$24,$25);} | PARSEOP_QWORDMEMORY PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; QWordPccTerm : PARSEOP_QWORDPCC PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_QWORDPCC);} ByteConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4, $4,$5,$6,$7);} | PARSEOP_QWORDPCC PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; QWordSpaceTerm : PARSEOP_QWORDSPACE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_QWORDSPACE);} ByteConstExpr {UtCheckIntegerRange ($4, 0xC0, 0xFF);} OptionalResourceType OptionalDecodeType OptionalMinType OptionalMaxType ',' ByteConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr ',' QWordConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,14, $4,$6,$7,$8,$9,$11,$13,$15,$17,$19,$21,$22,$23,$24);} | PARSEOP_QWORDSPACE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; RegisterTerm : PARSEOP_REGISTER PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_REGISTER);} AddressSpaceKeyword ',' ByteConstExpr ',' ByteConstExpr ',' QWordConstExpr OptionalAccessSize OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,6,$4,$6,$8,$10,$11,$12);} | PARSEOP_REGISTER PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; SpiSerialBusTerm : PARSEOP_SPI_SERIALBUS PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SPI_SERIALBUS);} WordConstExpr /* 04: DeviceSelection */ OptionalDevicePolarity /* 05: DevicePolarity */ OptionalWireMode /* 06: WireMode */ ',' ByteConstExpr /* 08: DataBitLength */ OptionalSlaveMode /* 09: SlaveMode */ ',' DWordConstExpr /* 11: ConnectionSpeed */ ',' ClockPolarityKeyword /* 13: ClockPolarity */ ',' ClockPhaseKeyword /* 15: ClockPhase */ ',' StringData /* 17: ResourceSource */ OptionalByteConstExpr /* 18: ResourceSourceIndex */ OptionalResourceType /* 19: ResourceType */ OptionalNameString /* 20: DescriptorName */ OptionalBuffer_Last /* 21: VendorData */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,14, $4,$5,$6,$8,$9,$11,$13,$15,$17,$18,$19,$20, TrCreateLeafOp (PARSEOP_DEFAULT_ARG),$21);} | PARSEOP_SPI_SERIALBUS PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; SpiSerialBusTermV2 : PARSEOP_SPI_SERIALBUS_V2 PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SPI_SERIALBUS_V2);} WordConstExpr /* 04: DeviceSelection */ OptionalDevicePolarity /* 05: DevicePolarity */ OptionalWireMode /* 06: WireMode */ ',' ByteConstExpr /* 08: DataBitLength */ OptionalSlaveMode /* 09: SlaveMode */ ',' DWordConstExpr /* 11: ConnectionSpeed */ ',' ClockPolarityKeyword /* 13: ClockPolarity */ ',' ClockPhaseKeyword /* 15: ClockPhase */ ',' StringData /* 17: ResourceSource */ OptionalByteConstExpr /* 18: ResourceSourceIndex */ OptionalResourceType /* 19: ResourceType */ OptionalNameString /* 20: DescriptorName */ OptionalShareType /* 21: Share */ OptionalBuffer_Last /* 22: VendorData */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,14, $4,$5,$6,$8,$9,$11,$13,$15,$17,$18,$19,$20,$21,$22);} | PARSEOP_SPI_SERIALBUS_V2 PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; StartDependentFnNoPriTerm : PARSEOP_STARTDEPENDENTFN_NOPRI PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_STARTDEPENDENTFN_NOPRI);} PARSEOP_CLOSE_PAREN '{' ResourceMacroList '}' {$$ = TrLinkOpChildren ($3,1,$6);} | PARSEOP_STARTDEPENDENTFN_NOPRI PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; StartDependentFnTerm : PARSEOP_STARTDEPENDENTFN PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_STARTDEPENDENTFN);} ByteConstExpr ',' ByteConstExpr PARSEOP_CLOSE_PAREN '{' ResourceMacroList '}' {$$ = TrLinkOpChildren ($3,3,$4,$6,$9);} | PARSEOP_STARTDEPENDENTFN PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; UartSerialBusTerm : PARSEOP_UART_SERIALBUS PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_UART_SERIALBUS);} DWordConstExpr /* 04: ConnectionSpeed */ OptionalBitsPerByte /* 05: BitsPerByte */ OptionalStopBits /* 06: StopBits */ ',' ByteConstExpr /* 08: LinesInUse */ OptionalEndian /* 09: Endianness */ OptionalParityType /* 10: Parity */ OptionalFlowControl /* 11: FlowControl */ ',' WordConstExpr /* 13: Rx BufferSize */ ',' WordConstExpr /* 15: Tx BufferSize */ ',' StringData /* 17: ResourceSource */ OptionalByteConstExpr /* 18: ResourceSourceIndex */ OptionalResourceType /* 19: ResourceType */ OptionalNameString /* 20: DescriptorName */ OptionalBuffer_Last /* 21: VendorData */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,15, $4,$5,$6,$8,$9,$10,$11,$13,$15,$17,$18,$19,$20, TrCreateLeafOp (PARSEOP_DEFAULT_ARG),$21);} | PARSEOP_UART_SERIALBUS PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; UartSerialBusTermV2 : PARSEOP_UART_SERIALBUS_V2 PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_UART_SERIALBUS_V2);} DWordConstExpr /* 04: ConnectionSpeed */ OptionalBitsPerByte /* 05: BitsPerByte */ OptionalStopBits /* 06: StopBits */ ',' ByteConstExpr /* 08: LinesInUse */ OptionalEndian /* 09: Endianness */ OptionalParityType /* 10: Parity */ OptionalFlowControl /* 11: FlowControl */ ',' WordConstExpr /* 13: Rx BufferSize */ ',' WordConstExpr /* 15: Tx BufferSize */ ',' StringData /* 17: ResourceSource */ OptionalByteConstExpr /* 18: ResourceSourceIndex */ OptionalResourceType /* 19: ResourceType */ OptionalNameString /* 20: DescriptorName */ OptionalShareType /* 21: Share */ OptionalBuffer_Last /* 22: VendorData */ PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,15, $4,$5,$6,$8,$9,$10,$11,$13,$15,$17,$18,$19,$20,$21,$22);} | PARSEOP_UART_SERIALBUS_V2 PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; VendorLongTerm : PARSEOP_VENDORLONG PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_VENDORLONG);} OptionalNameString_First PARSEOP_CLOSE_PAREN '{' ByteList '}' {$$ = TrLinkOpChildren ($3,2,$4,$7);} | PARSEOP_VENDORLONG PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; VendorShortTerm : PARSEOP_VENDORSHORT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_VENDORSHORT);} OptionalNameString_First PARSEOP_CLOSE_PAREN '{' ByteList '}' {$$ = TrLinkOpChildren ($3,2,$4,$7);} | PARSEOP_VENDORSHORT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; WordBusNumberTerm : PARSEOP_WORDBUSNUMBER PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_WORDBUSNUMBER);} OptionalResourceType_First OptionalMinType OptionalMaxType OptionalDecodeType ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,12, $4,$5,$6,$7,$9,$11,$13,$15,$17,$18,$19,$20);} | PARSEOP_WORDBUSNUMBER PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; WordIOTerm : PARSEOP_WORDIO PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_WORDIO);} OptionalResourceType_First OptionalMinType OptionalMaxType OptionalDecodeType OptionalRangeType ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString OptionalType OptionalTranslationType_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,15, $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$19,$20,$21,$22,$23);} | PARSEOP_WORDIO PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; WordPccTerm : PARSEOP_WORDPCC PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_WORDPCC);} ByteConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4, $4,$5,$6,$7);} | PARSEOP_WORDPCC PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; WordSpaceTerm : PARSEOP_WORDSPACE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_WORDSPACE);} ByteConstExpr {UtCheckIntegerRange ($4, 0xC0, 0xFF);} OptionalResourceType OptionalDecodeType OptionalMinType OptionalMaxType ',' ByteConstExpr ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr ',' WordConstExpr OptionalByteConstExpr OptionalStringData OptionalNameString_Last PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,14, $4,$6,$7,$8,$9,$11,$13,$15,$17,$19,$21,$22,$23,$24);} | PARSEOP_WORDSPACE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; acpica-unix-20250404/source/compiler/asloptions.c0000775000175000017500000006042614773714131021221 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asloptions - compiler command line processing * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acapps.h" #include "acdisasm.h" #include "acglobal.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asloption") /* Local prototypes */ static int AslDoOptions ( int argc, char **argv, BOOLEAN IsResponseFile); static void AslMergeOptionTokens ( char *InBuffer, char *OutBuffer); static int AslDoResponseFile ( char *Filename); #define ASL_TOKEN_SEPARATORS " \t\n" #define ASL_SUPPORTED_OPTIONS "@:a:b|c|d^D:e:f^gh^i|I:l^m:no|p:P^q^r:s|:t|T+G^v^w|x:z" /******************************************************************************* * * FUNCTION: AslCommandLine * * PARAMETERS: argc/argv * * RETURN: Last argv index * * DESCRIPTION: Command line processing * ******************************************************************************/ int AslCommandLine ( int argc, char **argv) { int BadCommandLine = 0; ACPI_STATUS Status; /* Minimum command line contains at least the command and an input file */ if (argc < 2) { Usage (); exit (1); } /* Process all command line options */ BadCommandLine = AslDoOptions (argc, argv, FALSE); if (AslGbl_DoTemplates) { Status = DtCreateTemplates (argv); if (ACPI_FAILURE (Status)) { exit (-1); } exit (0); } /* Next parameter must be the input filename */ if (!argv[AcpiGbl_Optind] && !AcpiGbl_DisasmFlag) { printf ("Missing input filename\n"); BadCommandLine = TRUE; } if (AslGbl_DoSignon) { printf (ACPI_COMMON_SIGNON (ASL_COMPILER_NAME)); if (AslGbl_IgnoreErrors) { printf ("Ignoring all errors, forcing AML file generation\n\n"); } } if (BadCommandLine) { printf ("Use -h option for help information\n"); exit (1); } return (AcpiGbl_Optind); } /******************************************************************************* * * FUNCTION: AslDoOptions * * PARAMETERS: argc/argv - Standard argc/argv * IsResponseFile - TRUE if executing a response file. * * RETURN: Status * * DESCRIPTION: Command line option processing * ******************************************************************************/ static int AslDoOptions ( int argc, char **argv, BOOLEAN IsResponseFile) { ACPI_STATUS Status; INT32 j; /* Get the command line options */ while ((j = AcpiGetopt (argc, argv, ASL_SUPPORTED_OPTIONS)) != ACPI_OPT_END) switch (j) { case '@': /* Begin a response file */ if (IsResponseFile) { printf ("Nested command files are not supported\n"); return (-1); } if (AslDoResponseFile (AcpiGbl_Optarg)) { return (-1); } break; case 'a': /* Debug options */ switch (AcpiGbl_Optarg[0]) { case 'r': AslGbl_EnableReferenceTypechecking = TRUE; break; default: printf ("Unknown option: -a%s\n", AcpiGbl_Optarg); return (-1); } break; case 'b': /* Debug options */ switch (AcpiGbl_Optarg[0]) { case 'c': printf ("Debug ASL to ASL+ conversion\n"); AslGbl_DoAslConversion = TRUE; AslGbl_FoldConstants = FALSE; AslGbl_IntegerOptimizationFlag = FALSE; AslGbl_ReferenceOptimizationFlag = FALSE; AslGbl_OptimizeTrivialParseNodes = FALSE; AcpiGbl_CaptureComments = TRUE; AcpiGbl_DoDisassemblerOptimizations = FALSE; AcpiGbl_DebugAslConversion = TRUE; AcpiGbl_DmEmitExternalOpcodes = TRUE; AslGbl_DoExternalsInPlace = TRUE; return (0); case 'f': AslCompilerdebug = 1; /* same as yydebug */ DtParserdebug = 1; PrParserdebug = 1; AslGbl_DebugFlag = TRUE; AslGbl_KeepPreprocessorTempFile = TRUE; break; case 'p': /* Prune ASL parse tree */ /* Get the required argument */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } AslGbl_PruneParseTree = TRUE; AslGbl_PruneDepth = (UINT8) strtoul (AcpiGbl_Optarg, NULL, 0); break; case 's': AslGbl_DebugFlag = TRUE; break; case 't': /* Get the required argument */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } AslGbl_PruneType = (UINT8) strtoul (AcpiGbl_Optarg, NULL, 0); break; default: printf ("Unknown option: -b%s\n", AcpiGbl_Optarg); return (-1); } break; case 'c': switch (AcpiGbl_Optarg[0]) { case 'a': printf ("Convert ASL to ASL+ with comments\n"); AslGbl_DoAslConversion = TRUE; AslGbl_FoldConstants = FALSE; AslGbl_IntegerOptimizationFlag = FALSE; AslGbl_ReferenceOptimizationFlag = FALSE; AslGbl_OptimizeTrivialParseNodes = FALSE; AcpiGbl_CaptureComments = TRUE; AcpiGbl_DoDisassemblerOptimizations = FALSE; AcpiGbl_DmEmitExternalOpcodes = TRUE; AslGbl_DoExternalsInPlace = TRUE; return (0); case 'r': AslGbl_NoResourceChecking = TRUE; break; default: printf ("Unknown option: -c%s\n", AcpiGbl_Optarg); return (-1); } break; case 'd': /* Disassembler */ switch (AcpiGbl_Optarg[0]) { case '^': AslGbl_DoCompile = FALSE; break; case 'a': AslGbl_DoCompile = FALSE; AslGbl_DisassembleAll = TRUE; break; case 'b': /* Do not convert buffers to resource descriptors */ AcpiGbl_NoResourceDisassembly = TRUE; break; case 'c': break; case 'f': AcpiGbl_ForceAmlDisassembly = TRUE; break; case 'l': /* Use legacy ASL code (not ASL+) for disassembly */ AslGbl_DoCompile = FALSE; AcpiGbl_CstyleDisassembly = FALSE; break; case 's': /* Specify table signature (Only supported for CDAT table) */ /* Get the required argument */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } /* Check for exact string "CDAT" (upper or lower case) */ AcpiGbl_CDAT = ACPI_CAST_PTR (char, &AcpiGbl_Optarg); if (AcpiUtStricmp (AcpiGbl_Optarg, ACPI_SIG_CDAT)) { printf ("\nUnknown table signature: %s\n", AcpiGbl_Optarg); return (-1); } AcpiGbl_CDAT = malloc (5); AcpiUtSafeStrncpy ((char *) AcpiGbl_CDAT, ACPI_SIG_CDAT, 5); break; default: printf ("Unknown option: -d%s\n", AcpiGbl_Optarg); return (-1); } AcpiGbl_DisasmFlag = TRUE; break; case 'D': /* Define a symbol */ PrAddDefine (AcpiGbl_Optarg, NULL, TRUE); break; case 'e': /* External files for disassembler */ /* Get entire list of external files */ AcpiGbl_Optind--; argv[AcpiGbl_Optind] = AcpiGbl_Optarg; while (argv[AcpiGbl_Optind] && (argv[AcpiGbl_Optind][0] != '-')) { Status = AcpiDmAddToExternalFileList (argv[AcpiGbl_Optind]); if (ACPI_FAILURE (Status)) { printf ("Could not add %s to external list\n", argv[AcpiGbl_Optind]); return (-1); } AcpiGbl_Optind++; } break; case 'f': switch (AcpiGbl_Optarg[0]) { case '^': /* Ignore errors and force creation of aml file */ AslGbl_IgnoreErrors = TRUE; break; case 'e': /* Disassembler: Get external declaration file */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } AslGbl_ExternalRefFilename = AcpiGbl_Optarg; break; default: printf ("Unknown option: -f%s\n", AcpiGbl_Optarg); return (-1); } break; case 'G': AslGbl_CompileGeneric = TRUE; break; case 'g': /* Get all ACPI tables */ printf ("-g option is deprecated, use acpidump utility instead\n"); exit (1); case 'h': switch (AcpiGbl_Optarg[0]) { case '^': Usage (); exit (0); case 'c': UtDisplayConstantOpcodes (); exit (0); case 'd': AslDisassemblyHelp (); exit (0); case 'f': AslFilenameHelp (); exit (0); case 'r': /* reserved names */ ApDisplayReservedNames (); exit (0); case 't': UtDisplaySupportedTables (); exit (0); default: printf ("Unknown option: -h%s\n", AcpiGbl_Optarg); return (-1); } case 'I': /* Add an include file search directory */ FlAddIncludeDirectory (AcpiGbl_Optarg); break; case 'i': /* Output AML as an include file */ switch (AcpiGbl_Optarg[0]) { case 'a': /* Produce assembly code include file */ AslGbl_AsmIncludeOutputFlag = TRUE; break; case 'c': /* Produce C include file */ AslGbl_C_IncludeOutputFlag = TRUE; break; case 'n': /* Compiler/Disassembler: Ignore the NOOP operator */ AcpiGbl_IgnoreNoopOperator = TRUE; break; default: printf ("Unknown option: -i%s\n", AcpiGbl_Optarg); return (-1); } break; case 'l': /* Listing files */ switch (AcpiGbl_Optarg[0]) { case '^': /* Produce listing file (Mixed source/aml) */ AslGbl_ListingFlag = TRUE; AcpiGbl_DmOpt_Listing = TRUE; break; case 'd': /* Disable deterministic output, enabling timestamp */ AslGbl_Deterministic = FALSE; break; case 'i': /* Produce preprocessor output file */ AslGbl_PreprocessorOutputFlag = TRUE; break; case 'm': /* Produce hardware map summary file */ AslGbl_MapfileFlag = TRUE; break; case 'n': /* Produce namespace file */ AslGbl_NsOutputFlag = TRUE; break; case 's': /* Produce combined source file */ AslGbl_SourceOutputFlag = TRUE; break; case 'x': /* Produce cross-reference file */ AslGbl_CrossReferenceOutput = TRUE; break; default: printf ("Unknown option: -l%s\n", AcpiGbl_Optarg); return (-1); } break; case 'm': /* Set line buffer size */ AslGbl_LineBufferSize = (UINT32) strtoul (AcpiGbl_Optarg, NULL, 0) * 1024; if (AslGbl_LineBufferSize < ASL_DEFAULT_LINE_BUFFER_SIZE) { AslGbl_LineBufferSize = ASL_DEFAULT_LINE_BUFFER_SIZE; } printf ("Line Buffer Size: %u\n", AslGbl_LineBufferSize); break; case 'n': /* Parse only */ AslGbl_ParseOnlyFlag = TRUE; break; case 'o': /* Control compiler AML optimizations */ switch (AcpiGbl_Optarg[0]) { case 'a': /* Disable all optimizations */ AslGbl_FoldConstants = FALSE; AslGbl_IntegerOptimizationFlag = FALSE; AslGbl_ReferenceOptimizationFlag = FALSE; AslGbl_OptimizeTrivialParseNodes = FALSE; break; case 'c': /* Display compile time(s) */ AslGbl_CompileTimesFlag = TRUE; break; case 'd': /* Disable disassembler code optimizations */ AcpiGbl_DoDisassemblerOptimizations = FALSE; break; case 'e': /* Disassembler: Emit embedded external operators */ AcpiGbl_DmEmitExternalOpcodes = TRUE; break; case 'E': /* * iASL: keep External opcodes in place. * No affect if Gbl_DoExternals is false. */ AslGbl_DoExternalsInPlace = TRUE; break; case 'f': /* Disable folding on "normal" expressions */ AslGbl_FoldConstants = FALSE; break; case 'i': /* Disable integer optimization to constants */ AslGbl_IntegerOptimizationFlag = FALSE; break; case 'n': /* Disable named reference optimization */ AslGbl_ReferenceOptimizationFlag = FALSE; break; case 't': /* Disable heavy typechecking */ AslGbl_DoTypechecking = FALSE; break; default: printf ("Unknown option: -c%s\n", AcpiGbl_Optarg); return (-1); } break; case 'P': /* Preprocessor options */ switch (AcpiGbl_Optarg[0]) { case '^': /* Proprocess only, emit (.i) file */ AslGbl_PreprocessOnly = TRUE; AslGbl_PreprocessorOutputFlag = TRUE; break; case 'n': /* Disable preprocessor */ AslGbl_PreprocessFlag = FALSE; break; default: printf ("Unknown option: -P%s\n", AcpiGbl_Optarg); return (-1); } break; case 'p': /* Override default AML output filename */ AslGbl_OutputFilenamePrefix = AcpiGbl_Optarg; UtConvertBackslashes (AslGbl_OutputFilenamePrefix); AslGbl_UseDefaultAmlFilename = FALSE; break; case 'q': /* ASL/ASl+ converter: compile only and leave badaml. */ printf ("Convert ASL to ASL+ with comments\n"); AslGbl_FoldConstants = FALSE; AslGbl_IntegerOptimizationFlag = FALSE; AslGbl_ReferenceOptimizationFlag = FALSE; AslGbl_OptimizeTrivialParseNodes = FALSE; AslGbl_DoExternalsInPlace = TRUE; AcpiGbl_CaptureComments = TRUE; return (0); case 'r': /* Override revision found in table header */ AslGbl_RevisionOverride = (UINT8) strtoul (AcpiGbl_Optarg, NULL, 0); break; case 's': /* Create AML in a source code file */ switch (AcpiGbl_Optarg[0]) { case 'a': /* Produce assembly code output file */ AslGbl_AsmOutputFlag = TRUE; break; case 'c': /* Produce C hex output file */ AslGbl_C_OutputFlag = TRUE; break; case 'o': /* Produce AML offset table in C */ AslGbl_C_OffsetTableFlag = TRUE; break; default: printf ("Unknown option: -s%s\n", AcpiGbl_Optarg); return (-1); } break; case 't': /* Produce hex table output file */ switch (AcpiGbl_Optarg[0]) { case 'a': AslGbl_HexOutputFlag = HEX_OUTPUT_ASM; break; case 'c': AslGbl_HexOutputFlag = HEX_OUTPUT_C; break; case 'p': /* data table flex/bison prototype */ AslGbl_DtLexBisonPrototype = TRUE; break; case 's': AslGbl_HexOutputFlag = HEX_OUTPUT_ASL; break; default: printf ("Unknown option: -t%s\n", AcpiGbl_Optarg); return (-1); } break; case 'T': /* Create a ACPI table template file */ AslGbl_DoTemplates = TRUE; break; case 'v': /* Version and verbosity settings */ switch (AcpiGbl_Optarg[0]) { case '^': printf (ACPI_COMMON_SIGNON (ASL_COMPILER_NAME)); exit (0); case 'a': /* Disable all error/warning/remark messages */ AslGbl_NoErrors = TRUE; break; case 'd': printf (ACPI_COMMON_SIGNON (ASL_COMPILER_NAME)); printf (ACPI_COMMON_BUILD_TIME); exit (0); case 'e': /* Disable all warning/remark messages (errors only) */ AslGbl_DisplayRemarks = FALSE; AslGbl_DisplayWarnings = FALSE; break; case 'i': /* * Support for integrated development environment(s). * * 1) No compiler signon * 2) Send stderr messages to stdout * 3) Less verbose error messages (single line only for each) * 4) Error/warning messages are formatted appropriately to * be recognized by MS Visual Studio */ AslGbl_VerboseErrors = FALSE; AslGbl_DoSignon = FALSE; break; case 'o': AslGbl_DisplayOptimizations = TRUE; break; case 'r': AslGbl_DisplayRemarks = FALSE; break; case 's': AslGbl_DoSignon = FALSE; break; case 't': AslGbl_VerboseTemplates = TRUE; break; case 'w': /* Get the required argument */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } Status = AslDisableException (AcpiGbl_Optarg); if (ACPI_FAILURE (Status)) { return (-1); } break; case 'x': /* Get the required argument */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } Status = AslLogExpectedException (AcpiGbl_Optarg); if (ACPI_FAILURE (Status)) { return (-1); } break; default: printf ("Unknown option: -v%s\n", AcpiGbl_Optarg); return (-1); } break; case 'w': /* Set warning levels */ switch (AcpiGbl_Optarg[0]) { case '1': AslGbl_WarningLevel = ASL_WARNING; break; case '2': AslGbl_WarningLevel = ASL_WARNING2; break; case '3': AslGbl_WarningLevel = ASL_WARNING3; break; case 'e': AslGbl_WarningsAsErrors = TRUE; break; case 'w': /* Get the required argument */ if (AcpiGetoptArgument (argc, argv)) { return (-1); } Status = AslElevateException (AcpiGbl_Optarg); if (ACPI_FAILURE (Status)) { return (-1); } break; default: printf ("Unknown option: -w%s\n", AcpiGbl_Optarg); return (-1); } break; case 'x': /* Set debug print output level */ AcpiDbgLevel = strtoul (AcpiGbl_Optarg, NULL, 16); break; case 'z': AslGbl_UseOriginalCompilerId = TRUE; break; default: return (-1); } return (0); } /******************************************************************************* * * FUNCTION: AslMergeOptionTokens * * PARAMETERS: InBuffer - Input containing an option string * OutBuffer - Merged output buffer * * RETURN: None * * DESCRIPTION: Remove all whitespace from an option string. * ******************************************************************************/ static void AslMergeOptionTokens ( char *InBuffer, char *OutBuffer) { char *Token; *OutBuffer = 0; Token = strtok (InBuffer, ASL_TOKEN_SEPARATORS); while (Token) { strcat (OutBuffer, Token); Token = strtok (NULL, ASL_TOKEN_SEPARATORS); } } /******************************************************************************* * * FUNCTION: AslDoResponseFile * * PARAMETERS: Filename - Name of the response file * * RETURN: Status * * DESCRIPTION: Open a response file and process all options within. * ******************************************************************************/ static int AslDoResponseFile ( char *Filename) { char *argv = AslGbl_StringBuffer2; FILE *ResponseFile; int OptStatus = 0; int Opterr; int Optind; ResponseFile = fopen (Filename, "r"); if (!ResponseFile) { printf ("Could not open command file %s, %s\n", Filename, strerror (errno)); return (-1); } /* Must save the current GetOpt globals */ Opterr = AcpiGbl_Opterr; Optind = AcpiGbl_Optind; /* * Process all lines in the response file. There must be one complete * option per line */ while (fgets (AslGbl_StringBuffer, ASL_STRING_BUFFER_SIZE, ResponseFile)) { /* Compress all tokens, allowing us to use a single argv entry */ AslMergeOptionTokens (AslGbl_StringBuffer, AslGbl_StringBuffer2); /* Process the option */ AcpiGbl_Opterr = 0; AcpiGbl_Optind = 0; OptStatus = AslDoOptions (1, &argv, TRUE); if (OptStatus) { printf ("Invalid option in command file %s: %s\n", Filename, AslGbl_StringBuffer); break; } } /* Restore the GetOpt globals */ AcpiGbl_Opterr = Opterr; AcpiGbl_Optind = Optind; fclose (ResponseFile); return (OptStatus); } acpica-unix-20250404/source/compiler/aslmessages.h0000775000175000017500000002354214773714131021340 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslmessages.h - Compiler error/warning messages * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ASLMESSAGES_H #define __ASLMESSAGES_H /* These values must match error type string tables in aslmessages.c */ typedef enum { ASL_OPTIMIZATION = 0, ASL_REMARK, ASL_WARNING, ASL_WARNING2, ASL_WARNING3, ASL_ERROR, ASL_NUM_REPORT_LEVELS } ASL_MESSAGE_TYPES; #define ASL_ERROR_LEVEL_LENGTH 8 /* Length of strings for types above */ void AhDecodeAslException ( char *HexString); /* * Exception code blocks, 0 - 999 * Available for new exception blocks: 600 - 999 */ #define ASL_MSG_MAIN_COMPILER 0 /* 0 - 299 */ #define ASL_MSG_MAIN_COMPILER_END 299 #define ASL_MSG_TABLE_COMPILER 300 /* 300 - 499 */ #define ASL_MSG_TABLE_COMPILER_END 499 #define ASL_MSG_PREPROCESSOR 500 /* 500 - 599 */ #define ASL_MSG_PREPROCESSOR_END 599 /* * Values (message IDs) for all compiler messages. There are currently * three distinct blocks of error messages (so that they can be expanded * individually): * Main ASL compiler * Data Table compiler * Preprocessor * * NOTE1: This list must match the tables of message strings in the file * aslmessages.c exactly. * * NOTE2: With the introduction of the -vw option to disable specific * messages, new messages should only be added to the end of these * lists, so that values for existing messages are not disturbed. */ typedef enum { ASL_MSG_RESERVED = ASL_MSG_MAIN_COMPILER, ASL_MSG_ALIGNMENT, ASL_MSG_ALPHANUMERIC_STRING, ASL_MSG_AML_NOT_IMPLEMENTED, ASL_MSG_ARG_COUNT_HI, ASL_MSG_ARG_COUNT_LO, ASL_MSG_ARG_INIT, ASL_MSG_BACKWARDS_OFFSET, ASL_MSG_BUFFER_LENGTH, ASL_MSG_CLOSE, ASL_MSG_COMPILER_INTERNAL, ASL_MSG_COMPILER_RESERVED, ASL_MSG_CONNECTION_MISSING, ASL_MSG_CONNECTION_INVALID, ASL_MSG_CONSTANT_EVALUATION, ASL_MSG_CONSTANT_FOLDED, ASL_MSG_CORE_EXCEPTION, ASL_MSG_DEBUG_FILE_OPEN, ASL_MSG_DEBUG_FILENAME, ASL_MSG_DEPENDENT_NESTING, ASL_MSG_DMA_CHANNEL, ASL_MSG_DMA_LIST, ASL_MSG_DUPLICATE_CASE, ASL_MSG_DUPLICATE_ITEM, ASL_MSG_EARLY_EOF, ASL_MSG_ENCODING_LENGTH, ASL_MSG_EX_INTERRUPT_LIST, ASL_MSG_EX_INTERRUPT_LIST_MIN, ASL_MSG_EX_INTERRUPT_NUMBER, ASL_MSG_FIELD_ACCESS_WIDTH, ASL_MSG_FIELD_UNIT_ACCESS_WIDTH, ASL_MSG_FIELD_UNIT_OFFSET, ASL_MSG_GPE_NAME_CONFLICT, ASL_MSG_HID_LENGTH, ASL_MSG_HID_PREFIX, ASL_MSG_HID_SUFFIX, ASL_MSG_INCLUDE_FILE_OPEN, ASL_MSG_INPUT_FILE_OPEN, ASL_MSG_INTEGER_LENGTH, ASL_MSG_INTEGER_OPTIMIZATION, ASL_MSG_INTERRUPT_LIST, ASL_MSG_INTERRUPT_NUMBER, ASL_MSG_INVALID_ACCESS_SIZE, ASL_MSG_INVALID_ADDR_FLAGS, ASL_MSG_INVALID_CONSTANT_OP, ASL_MSG_INVALID_EISAID, ASL_MSG_INVALID_ESCAPE, ASL_MSG_INVALID_GRAN_FIXED, ASL_MSG_INVALID_GRANULARITY, ASL_MSG_INVALID_LENGTH, ASL_MSG_INVALID_LENGTH_FIXED, ASL_MSG_INVALID_MIN_MAX, ASL_MSG_INVALID_OPERAND, ASL_MSG_INVALID_PERFORMANCE, ASL_MSG_INVALID_PRIORITY, ASL_MSG_INVALID_STRING, ASL_MSG_INVALID_TARGET, ASL_MSG_INVALID_TIME, ASL_MSG_INVALID_TYPE, ASL_MSG_INVALID_UUID, ASL_MSG_ISA_ADDRESS, ASL_MSG_LEADING_ASTERISK, ASL_MSG_LIST_LENGTH_LONG, ASL_MSG_LIST_LENGTH_SHORT, ASL_MSG_LISTING_FILE_OPEN, ASL_MSG_LISTING_FILENAME, ASL_MSG_LOCAL_INIT, ASL_MSG_LOCAL_OUTSIDE_METHOD, ASL_MSG_LONG_LINE, ASL_MSG_MEMORY_ALLOCATION, ASL_MSG_MISSING_ENDDEPENDENT, ASL_MSG_MISSING_STARTDEPENDENT, ASL_MSG_MULTIPLE_DEFAULT, ASL_MSG_MULTIPLE_TYPES, ASL_MSG_NAME_EXISTS, ASL_MSG_NAME_OPTIMIZATION, ASL_MSG_NAMED_OBJECT_IN_WHILE, ASL_MSG_NESTED_COMMENT, ASL_MSG_NO_CASES, ASL_MSG_NO_REGION, ASL_MSG_NO_RETVAL, ASL_MSG_NO_WHILE, ASL_MSG_NON_ASCII, ASL_MSG_BUFFER_FIELD_LENGTH, ASL_MSG_NOT_EXIST, ASL_MSG_NOT_FOUND, ASL_MSG_NOT_METHOD, ASL_MSG_NOT_PARAMETER, ASL_MSG_NOT_REACHABLE, ASL_MSG_NOT_REFERENCED, ASL_MSG_NULL_DESCRIPTOR, ASL_MSG_NULL_STRING, ASL_MSG_OPEN, ASL_MSG_OUTPUT_FILE_OPEN, ASL_MSG_OUTPUT_FILENAME, ASL_MSG_PACKAGE_LENGTH, ASL_MSG_PREPROCESSOR_FILENAME, ASL_MSG_READ, ASL_MSG_RECURSION, ASL_MSG_REGION_BUFFER_ACCESS, ASL_MSG_REGION_BYTE_ACCESS, ASL_MSG_RESERVED_ARG_COUNT_HI, ASL_MSG_RESERVED_ARG_COUNT_LO, ASL_MSG_RESERVED_METHOD, ASL_MSG_RESERVED_NO_RETURN_VAL, ASL_MSG_RESERVED_OPERAND_TYPE, ASL_MSG_RESERVED_PACKAGE_LENGTH, ASL_MSG_RESERVED_RETURN_VALUE, ASL_MSG_RESERVED_USE, ASL_MSG_RESERVED_WORD, ASL_MSG_RESOURCE_FIELD, ASL_MSG_RESOURCE_INDEX, ASL_MSG_RESOURCE_LIST, ASL_MSG_RESOURCE_SOURCE, ASL_MSG_RESULT_NOT_USED, ASL_MSG_RETURN_TYPES, ASL_MSG_SCOPE_FWD_REF, ASL_MSG_SCOPE_TYPE, ASL_MSG_SEEK, ASL_MSG_SERIALIZED, ASL_MSG_SERIALIZED_REQUIRED, ASL_MSG_SINGLE_NAME_OPTIMIZATION, ASL_MSG_SOME_NO_RETVAL, ASL_MSG_STRING_LENGTH, ASL_MSG_SWITCH_TYPE, ASL_MSG_SYNC_LEVEL, ASL_MSG_SYNTAX, ASL_MSG_TABLE_SIGNATURE, ASL_MSG_TAG_LARGER, ASL_MSG_TAG_SMALLER, ASL_MSG_TIMEOUT, ASL_MSG_TOO_MANY_TEMPS, ASL_MSG_TRUNCATION, ASL_MSG_UNKNOWN_RESERVED_NAME, ASL_MSG_UNREACHABLE_CODE, ASL_MSG_UNSUPPORTED, ASL_MSG_UPPER_CASE, ASL_MSG_VENDOR_LIST, ASL_MSG_WRITE, ASL_MSG_RANGE, ASL_MSG_BUFFER_ALLOCATION, ASL_MSG_MISSING_DEPENDENCY, ASL_MSG_ILLEGAL_FORWARD_REF, ASL_MSG_ILLEGAL_METHOD_REF, ASL_MSG_LOCAL_NOT_USED, ASL_MSG_ARG_AS_LOCAL_NOT_USED, ASL_MSG_ARG_NOT_USED, ASL_MSG_CONSTANT_REQUIRED, ASL_MSG_CROSS_TABLE_SCOPE, ASL_MSG_EXCEPTION_NOT_RECEIVED, ASL_MSG_NULL_RESOURCE_TEMPLATE, ASL_MSG_FOUND_HERE, ASL_MSG_ILLEGAL_RECURSION, ASL_MSG_DUPLICATE_INPUT_FILE, ASL_MSG_WARNING_AS_ERROR, ASL_MSG_OEM_TABLE_ID, ASL_MSG_OEM_ID, ASL_MSG_UNLOAD, ASL_MSG_OFFSET, ASL_MSG_LONG_SLEEP, ASL_MSG_PREFIX_NOT_EXIST, ASL_MSG_NAMEPATH_NOT_EXIST, ASL_MSG_REGION_LENGTH, ASL_MSG_TEMPORARY_OBJECT, ASL_MSG_UNDEFINED_EXTERNAL, ASL_MSG_BUFFER_FIELD_OVERFLOW, ASL_MSG_INVALID_SPECIAL_NAME, ASL_MSG_INVALID_PROCESSOR_UID, ASL_MSG_LEGACY_PROCESSOR_OP, ASL_MSG_NAMESTRING_LENGTH, ASL_MSG_CASE_FOUND_HERE, ASL_MSG_EXTERN_INVALID_RET_TYPE, ASL_MSG_EXTERN_INVALID_PARAM_TYPE, ASL_MSG_NAMED_OBJECT_CREATION, ASL_MSG_ARG_COUNT_MISMATCH, ASL_MSG_STATIC_OPREGION_IN_METHOD, ASL_MSG_DECLARATION_TYPE_MISMATCH, ASL_MSG_TYPE_MISMATCH_FOUND_HERE, ASL_MSG_DUPLICATE_EXTERN_MISMATCH, ASL_MSG_DUPLICATE_EXTERN_FOUND_HERE, ASL_MSG_CONDREF_NEEDS_EXTERNAL_DECL, ASL_MSG_EXTERNAL_FOUND_HERE, ASL_MSG_LOWER_CASE_NAMESEG, ASL_MSG_LOWER_CASE_NAMEPATH, ASL_MSG_UUID_NOT_FOUND, ASL_MSG_LEGACY_DDB_TYPE, /* These messages are used by the Data Table compiler only */ ASL_MSG_BUFFER_ELEMENT = ASL_MSG_TABLE_COMPILER, ASL_MSG_DIVIDE_BY_ZERO, ASL_MSG_FLAG_VALUE, ASL_MSG_INTEGER_SIZE, ASL_MSG_INVALID_EXPRESSION, ASL_MSG_INVALID_FIELD_NAME, ASL_MSG_INVALID_HEX_INTEGER, ASL_MSG_OEM_TABLE, ASL_MSG_RESERVED_FIELD, ASL_MSG_UNKNOWN_LABEL, ASL_MSG_UNKNOWN_SUBTABLE, ASL_MSG_UNKNOWN_TABLE, ASL_MSG_ZERO_VALUE, ASL_MSG_INVALID_LABEL, ASL_MSG_BUFFER_LIST, ASL_MSG_ENTRY_LIST, ASL_MSG_UNKNOWN_FORMAT, ASL_MSG_RESERVED_VALUE, ASL_MSG_TWO_ZERO_VALUES, ASL_MSG_BAD_PARSE_TREE, /* These messages are used by the Preprocessor only */ ASL_MSG_DIRECTIVE_SYNTAX = ASL_MSG_PREPROCESSOR, ASL_MSG_ENDIF_MISMATCH, ASL_MSG_ERROR_DIRECTIVE, ASL_MSG_EXISTING_NAME, ASL_MSG_INVALID_INVOCATION, ASL_MSG_MACRO_SYNTAX, ASL_MSG_TOO_MANY_ARGUMENTS, ASL_MSG_UNKNOWN_DIRECTIVE, ASL_MSG_UNKNOWN_PRAGMA, ASL_MSG_WARNING_DIRECTIVE, ASL_MSG_INCLUDE_FILE } ASL_MESSAGE_IDS; #endif /* __ASLMESSAGES_H */ acpica-unix-20250404/source/compiler/dttemplate.h0000775000175000017500000045533114773714132021202 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dttemplate.h - ACPI table template definitions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __DTTEMPLATE_H #define __DTTEMPLATE_H /* Templates for ACPI data tables */ const unsigned char TemplateAest[] = { 0x41,0x45,0x53,0x54,0x90,0x03,0x00,0x00, /* 00000000 "AEST...." */ 0x02,0xE6,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x06,0x23,0x20,0x00,0xA0,0x00,0x00, /* 00000020 "(.# ...." */ 0x2C,0x00,0x00,0x00,0x44,0x00,0x00,0x00, /* 00000028 ",...D..." */ 0x94,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000030 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000038 "....gE#." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0xCD,0xFE,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000058 "....gE#." */ 0x33,0x33,0x22,0x22,0x00,0x00,0x00,0x00, /* 00000060 "33""...." */ 0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00, /* 00000068 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000070 "....gE#." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000078 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x11,0x11,0x11,0x01,0x00,0x00,0x00,0x00, /* 00000090 "........" */ 0x01,0x00,0x00,0x00,0xEF,0xCD,0xAB,0x78, /* 00000098 ".......x" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 000000a0 "....gE#." */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 000000a8 "....gE#." */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 000000b0 "....gE#." */ 0x01,0x00,0x00,0x00,0xEF,0xCD,0xAB,0x78, /* 000000b8 ".......x" */ 0x00,0x00,0x00,0x00,0x00,0x94,0x00,0x00, /* 000000c0 "........" */ 0x2C,0x00,0x00,0x00,0x44,0x00,0x00,0x00, /* 000000c8 ",...D..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000d0 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 000000d8 "....gE#." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000e0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000e8 "........" */ 0x11,0x11,0x00,0x00,0x01,0x00,0x01,0x00, /* 000000f0 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 000000f8 "....gE#." */ 0x67,0x67,0x67,0x67,0x00,0x00,0x00,0x00, /* 00000100 "gggg...." */ 0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 00000108 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000110 "....gE#." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000118 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000120 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000128 "........" */ 0x11,0x11,0x11,0x01,0x00,0x00,0x00,0x00, /* 00000130 "........" */ 0x01,0x00,0x00,0x00,0xEF,0xCD,0xAB,0x78, /* 00000138 ".......x" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000140 "....gE#." */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000148 "....gE#." */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000150 "....gE#." */ 0x01,0x80,0x00,0x00,0x2C,0x00,0x00,0x00, /* 00000158 "....,..." */ 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000160 "0......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000168 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000170 "........" */ 0x00,0x00,0x00,0x00,0xEF,0xCD,0xAB,0x89, /* 00000178 "........" */ 0x67,0x45,0x23,0x01,0xAA,0xAA,0x00,0x00, /* 00000180 "gE#....." */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000188 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000190 "....gE#." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000198 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001a0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001a8 "........" */ 0x11,0x11,0x11,0x01,0x00,0x00,0x00,0x00, /* 000001b0 "........" */ 0x01,0x00,0x00,0x00,0xEF,0xCD,0xAB,0x78, /* 000001b8 ".......x" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 000001c0 "....gE#." */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 000001c8 "....gE#." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001d0 "........" */ 0x02,0x84,0x00,0x00,0x2C,0x00,0x00,0x00, /* 000001d8 "....,..." */ 0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001e0 "4......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001e8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001f0 "........" */ 0x00,0x00,0x00,0x00,0xEF,0xCD,0xAB,0x89, /* 000001f8 "........" */ 0x67,0x45,0x23,0x01,0x55,0x55,0x55,0x55, /* 00000200 "gE#.UUUU" */ 0x66,0x66,0x66,0x66,0x01,0x00,0x00,0x00, /* 00000208 "ffff...." */ 0x03,0x00,0x00,0x00,0xEF,0xCD,0xAB,0x89, /* 00000210 "........" */ 0x67,0x45,0x23,0x01,0x00,0x00,0x00,0x00, /* 00000218 "gE#....." */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000220 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000228 "........" */ 0x00,0x00,0x00,0x00,0x11,0x11,0x11,0x01, /* 00000230 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000238 "........" */ 0xEF,0xCD,0xAB,0x78,0xEF,0xCD,0xAB,0x89, /* 00000240 "...x...." */ 0x67,0x45,0x23,0x01,0xEF,0xCD,0xAB,0x89, /* 00000248 "gE#....." */ 0x67,0x45,0x23,0x01,0xEF,0xCD,0xAB,0x89, /* 00000250 "gE#....." */ 0x67,0x45,0x23,0x01,0x03,0x98,0x00,0x00, /* 00000258 "gE#....." */ 0x2C,0x00,0x00,0x00,0x48,0x00,0x00,0x00, /* 00000260 ",...H..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000268 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000270 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000278 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000280 "....gE#." */ 0x33,0x33,0x33,0x33,0x22,0x22,0x22,0x22, /* 00000288 "3333""""" */ 0x44,0x44,0x44,0x44,0x12,0x23,0x34,0x45, /* 00000290 "DDDD.#4E" */ 0x56,0x67,0x78,0x89,0x9A,0xAB,0xBC,0xCD, /* 00000298 "Vgx....." */ 0xDE,0xEF,0xFF,0x55,0x01,0x00,0x00,0x00, /* 000002a0 "...U...." */ 0x02,0x00,0x00,0x00,0xEF,0xCD,0xAB,0x89, /* 000002a8 "........" */ 0x67,0x45,0x23,0x01,0x00,0x00,0x00,0x00, /* 000002b0 "gE#....." */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000002b8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000002c0 "........" */ 0x00,0x00,0x00,0x00,0x11,0x11,0x11,0x01, /* 000002c8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000002d0 "........" */ 0xEF,0xCD,0xAB,0x78,0xEF,0xCD,0xAB,0x89, /* 000002d8 "...x...." */ 0x67,0x45,0x23,0x01,0xEF,0xCD,0xAB,0x89, /* 000002e0 "gE#....." */ 0x67,0x45,0x23,0x01,0xEF,0xCD,0xAB,0x89, /* 000002e8 "gE#....." */ 0x67,0x45,0x23,0x01,0x04,0x9C,0x00,0x00, /* 000002f0 "gE#....." */ 0x2C,0x00,0x00,0x00,0x34,0x00,0x00,0x00, /* 000002f8 ",...4..." */ 0x84,0x00,0x00,0x00,0x02,0x00,0x00,0x00, /* 00000300 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000308 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000310 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000318 "....gE#." */ 0x03,0x00,0x00,0x00,0x88,0x88,0x77,0x77, /* 00000320 "......ww" */ 0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 00000328 "........" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000330 "....gE#." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000338 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000340 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000348 "........" */ 0x11,0x11,0x11,0x01,0x00,0x00,0x00,0x00, /* 00000350 "........" */ 0x01,0x00,0x00,0x00,0xEF,0xCD,0xAB,0x78, /* 00000358 ".......x" */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000360 "....gE#." */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000368 "....gE#." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000370 "........" */ 0x00,0x00,0x00,0x00,0xBB,0xBB,0xAA,0xAA, /* 00000378 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x01, /* 00000380 "........" */ 0xEF,0xCD,0xAB,0x78,0x00,0x00,0x00,0x00, /* 00000388 "...x...." */ }; const unsigned char TemplateAgdi[] = { 0x41,0x47,0x44,0x49,0x30,0x00,0x00,0x00, /* 00000000 "AGDI0..." */ 0x01,0xE4,0x41,0x4D,0x50,0x45,0x52,0x45, /* 00000008 "..AMPERE" */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x05,0x01,0x21,0x20,0x00,0x00,0x00,0x00, /* 00000020 "..! ...." */ 0x01,0x00,0x00,0x40,0x00,0x00,0x00,0x00 /* 00000028 "...@...." */ }; const unsigned char TemplateApmt[] = { 0x41,0x50,0x4D,0x54,0x94,0x00,0x00,0x00, /* 00000000 "APMT...." */ 0x00,0x79,0x4E,0x56,0x49,0x44,0x49,0x41, /* 00000008 ".yNVIDIA" */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x17,0x12,0x21,0x20,0x38,0x00,0x04,0x03, /* 00000020 "..! 8..." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 ". ......" */ 0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 ". ......" */ 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x6B,0x03,0x00,0x00,0x38,0x00,0x06,0x03, /* 00000058 "k...8..." */ 0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000070 ".0......" */ 0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 ".0......" */ 0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000088 "........" */ 0x6B,0x03,0x00,0x00 /* 00000090 "k..." */ }; const unsigned char TemplateAsf[] = { 0x41,0x53,0x46,0x21,0x72,0x00,0x00,0x00, /* 00000000 "ASF!r..." */ 0x10,0x0B,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x10,0x00, /* 00000020 "(.. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x14,0x00, /* 00000030 "........" */ 0x00,0x00,0x01,0x0C,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x02,0x00,0x0C,0x00,0x01,0x04,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x03,0x00,0x17,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x84,0x00,0x07,0x00,0x00, /* 00000068 "........" */ 0x01,0x00 /* 00000070 ".." */ }; const unsigned char TemplateAspt[] = { 0x41,0x53,0x50,0x54,0x88,0x00,0x00,0x00, /* 00000000 "ASPT...." */ 0x01,0x2D,0x56,0x52,0x54,0x55,0x41,0x4C, /* 00000008 "..VRTUAL" */ 0x4D,0x49,0x43,0x52,0x4F,0x53,0x46,0x54, /* 00000010 "MICROSFT" */ 0x01,0x00,0x00,0x00,0x4D,0x53,0x46,0x54, /* 00000018 "....INTL" */ 0x01,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 00000020 " ." ...." */ 0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00, /* 00000028 ".. ....." */ 0x00,0x00,0xB0,0xFE,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x04,0x00,0xB0,0xFE,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x08,0x00,0xB0,0xFE,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x01,0x00,0x20,0x00,0x01,0x00,0x00,0x00, /* 00000048 ".. ....." */ 0x10,0x00,0xB0,0xFE,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x14,0x00,0xB0,0xFE,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x18,0x00,0xB0,0xFE,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x02,0x00,0x20,0x00,0x00,0x00,0x00,0x00, /* 00000068 ".. ....." */ 0x20,0x00,0xB0,0xFE,0x00,0x00,0x00,0x00, /* 00000070 " ......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ }; const unsigned char TemplateBdat[] = { 0x42,0x44,0x41,0x54,0x30,0x00,0x00,0x00, /* 00000000 "BDAT0..." */ 0x01,0xED,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x31,0x03,0x21,0x20,0x01,0x08,0x00,0x01, /* 00000020 "1.! ...." */ 0xF0,0xDE,0xBC,0x9A,0x78,0x56,0x34,0x12 /* 00000028 "....xV4." */ }; const unsigned char TemplateBgrt[] = { 0x42,0x47,0x52,0x54,0x38,0x00,0x00,0x00, /* 00000000 "BGRT8..." */ 0x01,0x0D,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x23,0x06,0x11,0x20,0x01,0x00,0x00,0x00, /* 00000020 "#.. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000030 "........" */ }; const unsigned char TemplateBert[] = { 0x42,0x45,0x52,0x54,0x30,0x00,0x00,0x00, /* 00000000 "BERT0..." */ 0x01,0x15,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000028 "........" */ }; const unsigned char TemplateBoot[] = { 0x42,0x4F,0x4F,0x54,0x28,0x00,0x00,0x00, /* 00000000 "BOOT(..." */ 0x01,0x0D,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x04,0x06,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00 /* 00000020 "(.. ...." */ }; const unsigned char TemplateCcel[] = { 0x43,0x43,0x45,0x4C,0x38,0x00,0x00,0x00, /* 00000000 "CCEL8..." */ 0x04,0x1C,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x30,0x09,0x21,0x20,0x00,0x00,0x00,0x00, /* 00000020 "0.! ...." */ 0xEF,0xCD,0xAB,0x78,0x56,0x34,0x12,0x00, /* 00000028 "...xV4.." */ 0x78,0x56,0x34,0x12,0xEF,0xCD,0xAB,0x00 /* 00000030 "xV4....." */ }; const unsigned char TemplateCedt[] = { 0x43,0x45,0x44,0x54,0x9c,0x01,0x00,0x00, /* 00000000 "CEDT...." */ 0x01,0x87,0x49,0x4e,0x54,0x45,0x4c,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4d,0x50,0x4c,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4e,0x54,0x4c, /* 00000018 "....INTL" */ 0x17,0x12,0x21,0x20,0x00,0x00,0x20,0x00, /* 00000020 "..! .. ." */ 0x00,0x5e,0xba,0x00,0x00,0x00,0x00,0x00, /* 00000028 ".^......" */ 0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00, /* 00000038 "..... .." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00, /* 00000040 "...... ." */ 0x01,0x5e,0xba,0x00,0x00,0x00,0x00,0x00, /* 00000048 ".^......" */ 0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00, /* 00000050 "..... .." */ 0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00, /* 00000058 "..... .." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00, /* 00000060 "...... ." */ 0x02,0x5e,0xba,0x00,0x00,0x00,0x00,0x00, /* 00000068 ".^......" */ 0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00, /* 00000070 ".....0.." */ 0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00, /* 00000078 "..... .." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00, /* 00000080 "...... ." */ 0x03,0x5e,0xba,0x00,0x00,0x00,0x00,0x00, /* 00000088 ".^......" */ 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00, /* 00000090 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00, /* 00000098 "..... .." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x28,0x00, /* 000000a0 "......(." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000a8 "........" */ 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000b0 "........" */ 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000b8 "........" */ 0x03,0x00,0x00,0x00,0x06,0x00,0x01,0x00, /* 000000c0 "........" */ 0x00,0x5e,0xba,0x00,0x01,0x00,0x28,0x00, /* 000000c8 ".^....(." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000d0 "........" */ 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000d8 "........" */ 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000e0 "........" */ 0x03,0x00,0x00,0x00,0x06,0x00,0x01,0x00, /* 000000e8 "........" */ 0x01,0x5e,0xba,0x00,0x01,0x00,0x28,0x00, /* 000000f0 ".^....(." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000f8 "........" */ 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000100 "........" */ 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000108 "........" */ 0x03,0x00,0x00,0x00,0x06,0x00,0x01,0x00, /* 00000110 "........" */ 0x02,0x5e,0xba,0x00,0x01,0x00,0x28,0x00, /* 00000118 ".^....(." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000120 "........" */ 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000128 "........" */ 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000130 "........" */ 0x03,0x00,0x00,0x00,0x06,0x00,0x01,0x00, /* 00000138 "........" */ 0x03,0x5e,0xba,0x00,0x01,0x00,0x2c,0x00, /* 00000140 ".^....,." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000148 "........" */ 0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000150 "........" */ 0x00,0x01,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000158 "........" */ 0x03,0x00,0x00,0x00,0x06,0x00,0x01,0x00, /* 00000160 "........" */ 0x00,0x5e,0xba,0x00,0x01,0x5e,0xba,0x00, /* 00000160 ".^...^.." */ 0x01,0x00,0x2c,0x00,0x00,0x00,0x00,0x00, /* 00000170 "..,....." */ 0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00, /* 00000178 "........" */ 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, /* 00000180 "........" */ 0x01,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 00000188 "........" */ 0x0a,0x00,0x01,0x00,0x02,0x5e,0xba,0x00, /* 00000190 ".....^.." */ 0x03,0x5e,0xba,0x00 /* 00000198 ".^.." */ }; const unsigned char TemplateCdat[] = { 0xE4,0x00,0x00,0x00,0x01,0x0C,0x00,0x00, /* 00000000 "........" */ 0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00, /* 00000008 "........" */ 0x03,0x00,0x08,0x00,0x04,0x56,0x00,0x00, /* 00000010 ".....V.." */ 0x00,0x00,0x18,0x00,0xEF,0x01,0x00,0x00, /* 00000018 "........" */ 0x89,0x67,0x45,0x23,0x01,0x00,0x00,0x00, /* 00000020 ".gE#...." */ 0xAB,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x03,0x00,0x08,0x00,0x04,0x56,0x00,0x00, /* 00000030 ".....V.." */ 0x01,0x00,0x18,0x00,0x44,0x04,0x64,0x00, /* 00000038 "....D.d." */ 0xCD,0xAB,0x89,0x67,0x45,0x23,0x01,0x00, /* 00000040 "...gE#.." */ 0x33,0x22,0x44,0x33,0x55,0x44,0x00,0x00, /* 00000048 "3"D3UD.." */ 0x02,0x00,0x14,0x00,0x99,0x00,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x78,0x56,0x34,0x12, /* 00000058 "....xV4." */ 0x55,0x55,0x44,0x44,0x04,0x00,0x18,0x00, /* 00000060 "UUDD...." */ 0x88,0x32,0x00,0x00,0x77,0x77,0x77,0x77, /* 00000068 ".2..wwww" */ 0x11,0x11,0x11,0x11,0x88,0x88,0x88,0x88, /* 00000070 "........" */ 0x22,0x22,0x22,0x22,0x05,0x00,0x20,0x00, /* 00000078 """"".. ." */ 0x04,0x00,0x00,0x00,0x44,0x44,0x44,0x44, /* 00000080 "....DDDD" */ 0x33,0x33,0x33,0x33,0x44,0x44,0x55,0x55, /* 00000088 "3333DDUU" */ 0x66,0x66,0x00,0x00,0x77,0x77,0x88,0x88, /* 00000090 "ff..ww.." */ 0x99,0x99,0x00,0x00,0x05,0x00,0x18,0x00, /* 00000098 "........" */ 0x04,0x00,0x00,0x00,0x22,0x22,0x22,0x22, /* 000000A0 "....""""" */ 0x11,0x11,0x11,0x11,0x34,0x12,0x56,0x78, /* 000000A8 "....4.Vx" */ 0x11,0x11,0x00,0x00,0x05,0x00,0x30,0x00, /* 000000B0 "......0." */ 0x08,0x00,0x00,0x00,0x66,0x66,0x66,0x66, /* 000000B8 "....ffff" */ 0x55,0x55,0x55,0x55,0x44,0x44,0x55,0x55, /* 000000C0 "UUUUDDUU" */ 0x66,0x66,0x00,0x00,0x77,0x77,0x88,0x88, /* 000000C8 "ff..ww.." */ 0x99,0x99,0x00,0x00,0xAA,0xAA,0xBB,0xBB, /* 000000D0 "........" */ 0xCC,0xCC,0x00,0x00,0x55,0x55,0x44,0x44, /* 000000D8 "....UUDD" */ 0x33,0x33,0x00,0x00 /* 000000E0 "33.." */ }; const unsigned char TemplateCpep[] = { 0x43,0x50,0x45,0x50,0x34,0x00,0x00,0x00, /* 00000000 "CPEP4..." */ 0x01,0x0F,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00 /* 00000030 "...." */ }; const unsigned char TemplateCsrt[] = { 0x43,0x53,0x52,0x54,0x4C,0x01,0x00,0x00, /* 00000000 "CSRTL..." */ 0x01,0x0D,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x14,0x11,0x12,0x20,0x88,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x49,0x4E,0x54,0x4C,0x00,0x00,0x00,0x00, /* 00000028 "INTL...." */ 0x60,0x9C,0x00,0x00,0x02,0x00,0x00,0x00, /* 00000030 "`......." */ 0x1C,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0xA0,0xB3,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x2A,0x00,0x00,0x00,0x02,0x00,0x06,0x20, /* 00000048 "*...... " */ 0x00,0x00,0x10,0x00,0xFF,0x0F,0x00,0x00, /* 00000050 "........" */ 0x0C,0x00,0x00,0x00,0x03,0x00,0x01,0x00, /* 00000058 "........" */ 0x53,0x50,0x49,0x20,0x0C,0x00,0x00,0x00, /* 00000060 "SPI ...." */ 0x03,0x00,0x00,0x00,0x43,0x48,0x41,0x30, /* 00000068 "....CHA0" */ 0x0C,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 00000070 "........" */ 0x43,0x48,0x41,0x31,0x0C,0x00,0x00,0x00, /* 00000078 "CHA1...." */ 0x03,0x00,0x00,0x00,0x43,0x48,0x41,0x32, /* 00000080 "....CHA2" */ 0x0C,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 00000088 "........" */ 0x43,0x48,0x41,0x33,0x0C,0x00,0x00,0x00, /* 00000090 "CHA3...." */ 0x03,0x00,0x00,0x00,0x43,0x48,0x41,0x34, /* 00000098 "....CHA4" */ 0x0C,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 000000A0 "........" */ 0x43,0x48,0x41,0x35,0xA0,0x00,0x00,0x00, /* 000000A8 "CHA5...." */ 0x49,0x4E,0x54,0x4C,0x00,0x00,0x00,0x00, /* 000000B0 "INTL...." */ 0x60,0x9C,0x00,0x00,0x03,0x00,0x00,0x00, /* 000000B8 "`......." */ 0x1C,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000000C0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C8 "........" */ 0x2B,0x00,0x00,0x00,0x02,0x00,0x08,0x20, /* 000000D0 "+...... " */ 0x10,0x00,0x10,0x00,0xFF,0x0F,0x00,0x00, /* 000000D8 "........" */ 0x0C,0x00,0x00,0x00,0x03,0x00,0x01,0x00, /* 000000E0 "........" */ 0x49,0x32,0x43,0x20,0x0C,0x00,0x00,0x00, /* 000000E8 "I2C ...." */ 0x03,0x00,0x00,0x00,0x43,0x48,0x41,0x30, /* 000000F0 "....CHA0" */ 0x0C,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 000000F8 "........" */ 0x43,0x48,0x41,0x31,0x0C,0x00,0x00,0x00, /* 00000100 "CHA1...." */ 0x03,0x00,0x00,0x00,0x43,0x48,0x41,0x32, /* 00000108 "....CHA2" */ 0x0C,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 00000110 "........" */ 0x43,0x48,0x41,0x33,0x0C,0x00,0x00,0x00, /* 00000118 "CHA3...." */ 0x03,0x00,0x00,0x00,0x43,0x48,0x41,0x34, /* 00000120 "....CHA4" */ 0x0C,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 00000128 "........" */ 0x43,0x48,0x41,0x35,0x0C,0x00,0x00,0x00, /* 00000130 "CHA5...." */ 0x03,0x00,0x00,0x00,0x43,0x48,0x41,0x36, /* 00000138 "....CHA6" */ 0x0C,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 00000140 "........" */ 0x43,0x48,0x41,0x37 /* 00000148 "CHA7" */ }; const unsigned char TemplateDbg2[] = { 0x44,0x42,0x47,0x32,0xB2,0x00,0x00,0x00, /* 00000000 "DBG2...." */ 0x01,0xBA,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x15,0x11,0x13,0x20,0x2C,0x00,0x00,0x00, /* 00000020 "... ,..." */ 0x02,0x00,0x00,0x00,0xEE,0x3F,0x00,0x02, /* 00000028 ".....?.." */ 0x09,0x00,0x36,0x00,0x00,0x00,0x00,0x00, /* 00000030 "..6....." */ 0x00,0x80,0x00,0x00,0x00,0x00,0x16,0x00, /* 00000038 "........" */ 0x2E,0x00,0x01,0x32,0x00,0x03,0x88,0x77, /* 00000040 "...2...w" */ 0x66,0x55,0x44,0x33,0x22,0x11,0x01,0x64, /* 00000048 "fUD3"..d" */ 0x00,0x04,0x11,0x00,0xFF,0xEE,0xDD,0xCC, /* 00000050 "........" */ 0xBB,0xAA,0x10,0x32,0x54,0x76,0x98,0xBA, /* 00000058 "...2Tv.." */ 0xDC,0xFE,0x4D,0x79,0x44,0x65,0x76,0x69, /* 00000060 "..MyDevi" */ 0x63,0x65,0x00,0xEE,0x47,0x00,0x01,0x11, /* 00000068 "ce..G..." */ 0x00,0x26,0x00,0x10,0x00,0x37,0x00,0x00, /* 00000070 ".&...7.." */ 0x80,0x00,0x00,0x00,0x00,0x16,0x00,0x22, /* 00000078 "......."" */ 0x00,0x01,0x64,0x00,0x04,0x11,0x00,0xFF, /* 00000080 "..d....." */ 0xEE,0xDD,0xCC,0xBB,0xAA,0x98,0xBA,0xDC, /* 00000088 "........" */ 0xFE,0x5C,0x5C,0x5F,0x53,0x42,0x5F,0x2E, /* 00000090 ".\\_SB_." */ 0x50,0x43,0x49,0x30,0x2E,0x44,0x42,0x47, /* 00000098 "PCI0.DBG" */ 0x50,0x00,0x41,0x42,0x43,0x44,0x45,0x46, /* 000000A0 "P.ABCDEF" */ 0x47,0x48,0x49,0x50,0x51,0x52,0x53,0x54, /* 000000A8 "GHIPQRST" */ 0x55,0x56 /* 000000B0 "UV" */ }; const unsigned char TemplateDbgp[] = { 0x44,0x42,0x47,0x50,0x34,0x00,0x00,0x00, /* 00000000 "DBGP4..." */ 0x01,0x1A,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00 /* 00000030 "...." */ }; const unsigned char TemplateDmar[] = { 0x44,0x4D,0x41,0x52,0xAC,0x00,0x00,0x00, /* 00000000 "DMAR...." */ 0x01,0x87,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x17,0x12,0x21,0x20,0x2F,0x01,0x00,0x00, /* 00000020 "..! /..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x18,0x00,0x01,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x03,0x08,0x00,0x00,0x08,0x00,0x00,0x01, /* 00000040 "........" */ 0x01,0x00,0x20,0x00,0x00,0x00,0x00,0x00, /* 00000048 ".. ....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0xFF,0x0F,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x01,0x08,0x00,0x00,0x00,0x00,0x00,0x02, /* 00000060 "........" */ 0x02,0x00,0x10,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x02,0x08,0x00,0x00,0x00,0x00,0x00,0x03, /* 00000070 "........" */ 0x03,0x00,0x14,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x05,0x00,0x10,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x00, /* 00000090 "........" */ 0x00,0x00,0x00,0x02,0x06,0x00,0x10,0x00, /* 00000098 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x02 /* 000000A8 "...." */ }; const unsigned char TemplateDrtm[] = { 0x44,0x52,0x54,0x4D,0x94,0x00,0x00,0x00, /* 00000000 "DRTM...." */ 0x01,0xB9,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x10,0x04,0x15,0x20,0x00,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00 /* 00000090 "...." */ }; const unsigned char TemplateEcdt[] = { 0x45,0x43,0x44,0x54,0x42,0x00,0x00,0x00, /* 00000000 "ECDTB..." */ 0x01,0x2D,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".-INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x01,0x08,0x00,0x00, /* 00000020 "(.. ...." */ 0x66,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "f......." */ 0x01,0x08,0x00,0x00,0x62,0x00,0x00,0x00, /* 00000030 "....b..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x09,0x00 /* 00000040 ".." */ }; const unsigned char TemplateEinj[] = { 0x45,0x49,0x4E,0x4A,0x30,0x01,0x00,0x00, /* 00000000 "EINJ0..." */ 0x01,0x09,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x30,0x00,0x00,0x00, /* 00000020 "(.. 0..." */ 0x00,0x00,0x00,0x00,0x0A,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000030 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000048 "........" */ 0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000050 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000068 "........" */ 0x02,0x02,0x01,0x00,0x00,0x40,0x00,0x04, /* 00000070 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000088 "........" */ 0x03,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000090 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 000000A8 "........" */ 0x04,0x03,0x01,0x00,0x00,0x40,0x00,0x04, /* 000000B0 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C0 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 000000C8 "........" */ 0x05,0x03,0x01,0x00,0x01,0x10,0x00,0x02, /* 000000D0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E0 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 000000E8 "........" */ 0x06,0x01,0x00,0x00,0x00,0x40,0x00,0x04, /* 000000F0 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000100 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000108 "........" */ 0x07,0x00,0x01,0x00,0x00,0x40,0x00,0x04, /* 00000110 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000118 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000120 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF /* 00000128 "........" */ }; const unsigned char TemplateErdt[] = { 0x45,0x52,0x44,0x54,0x44,0x06,0x00,0x00, /* 00000000 "ERDTD..." */ 0x01,0x78,0x49,0x4e,0x54,0x45,0x4c,0x00, /* 00000008 ".xINTEL." */ 0x49,0x4e,0x54,0x45,0x4c,0x20,0x49,0x44, /* 00000010 "INTEL ID" */ 0x02,0x00,0x00,0x00,0x49,0x4e,0x54,0x4c, /* 00000018 "....INTL" */ 0x28,0x06,0x23,0x20,0x0f,0x00,0x00,0x00, /* 00000020 "(.# ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0xd2,0x00,0x01,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x0f,0x01,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0xfc,0xf7,0xff,0x1f,0x00,0x00, /* 00000058 "........" */ 0x01,0x00,0x01,0x00,0x18,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00, /* 00000068 "........" */ 0x00,0x00,0x08,0x00,0x00,0x00,0x0a,0x00, /* 00000070 "........" */ 0x00,0x00,0x03,0x00,0x30,0x00,0x00,0x00, /* 00000078 "....0..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x10,0xfb,0xf7,0xff,0x1f, /* 00000090 "........" */ 0x00,0x00,0x04,0x00,0x00,0x00,0x08,0x00, /* 00000098 "........" */ 0x00,0x02,0x00,0x10,0x01,0x00,0x00,0x00, /* 000000a0 "........" */ 0x00,0x00,0x04,0x00,0x38,0x00,0x00,0x00, /* 000000a8 "....8..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, /* 000000b0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000b8 "........" */ 0x00,0x00,0x00,0x80,0xfc,0xf7,0xff,0x1f, /* 000000c0 "........" */ 0x00,0x00,0x10,0x00,0x00,0x00,0x18,0x00, /* 000000c8 "........" */ 0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000d0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000d8 "........" */ 0x00,0x00,0x05,0x00,0x30,0x00,0x00,0x00, /* 000000e0 "....0..." */ 0x07,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 000000e8 "........" */ 0x00,0x00,0x00,0x10,0xfc,0xf7,0xff,0x1f, /* 000000f0 "........" */ 0x00,0x00,0x00,0x30,0xfc,0xf7,0xff,0x1f, /* 000000f8 "...0...." */ 0x00,0x00,0x00,0x20,0xfc,0xf7,0xff,0x1f, /* 00000100 "... ...." */ 0x00,0x00,0x01,0x00,0x00,0x00,0x08,0x00, /* 00000108 "........" */ 0x00,0x00,0x00,0x00,0xd2,0x00,0x01,0x00, /* 00000110 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000118 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x0f,0x01, /* 00000120 "........" */ 0x00,0x00,0x00,0x00,0xec,0xf7,0xff,0x1f, /* 00000128 "........" */ 0x00,0x00,0x01,0x00,0x01,0x00,0x18,0x00, /* 00000130 "........" */ 0x00,0x00,0x01,0x00,0x00,0x01,0x00,0x00, /* 00000138 "........" */ 0x02,0x01,0x00,0x00,0x08,0x01,0x00,0x00, /* 00000140 "........" */ 0x0a,0x01,0x00,0x00,0x03,0x00,0x30,0x00, /* 00000148 "......0." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000150 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000158 "........" */ 0x00,0x00,0x00,0x00,0x00,0x10,0xeb,0xf7, /* 00000160 "........" */ 0xff,0x1f,0x00,0x00,0x04,0x00,0x00,0x00, /* 00000168 "........" */ 0x08,0x00,0x00,0x02,0x00,0x10,0x01,0x00, /* 00000170 "........" */ 0x00,0x00,0x00,0x00,0x04,0x00,0x38,0x00, /* 00000178 "......8." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000180 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000188 "........" */ 0x00,0x00,0x00,0x00,0x00,0x80,0xec,0xf7, /* 00000190 "........" */ 0xff,0x1f,0x00,0x00,0x10,0x00,0x00,0x00, /* 00000198 "........" */ 0x18,0x00,0x10,0x01,0x00,0x00,0x00,0x00, /* 000001a0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001a8 "........" */ 0x00,0x00,0x00,0x00,0x05,0x00,0x30,0x00, /* 000001b0 "......0." */ 0x00,0x00,0x07,0x00,0x01,0x00,0x00,0x00, /* 000001b8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x10,0xec,0xf7, /* 000001c0 "........" */ 0xff,0x1f,0x00,0x00,0x00,0x30,0xec,0xf7, /* 000001c8 ".....0.." */ 0xff,0x1f,0x00,0x00,0x00,0x20,0xec,0xf7, /* 000001d0 "..... .." */ 0xff,0x1f,0x00,0x00,0x01,0x00,0x00,0x00, /* 000001d8 "........" */ 0x08,0x00,0x00,0x00,0x00,0x00,0xd2,0x00, /* 000001e0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001e8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00, /* 000001f0 "........" */ 0x0f,0x01,0x00,0x00,0x00,0x00,0xdc,0xf7, /* 000001f8 "........" */ 0xff,0x1f,0x00,0x00,0x01,0x00,0x01,0x00, /* 00000200 "........" */ 0x18,0x00,0x00,0x00,0x02,0x00,0x00,0x02, /* 00000208 "........" */ 0x00,0x00,0x02,0x02,0x00,0x00,0x08,0x02, /* 00000210 "........" */ 0x00,0x00,0x0a,0x02,0x00,0x00,0x03,0x00, /* 00000218 "........" */ 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000220 "0......." */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 00000228 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10, /* 00000230 "........" */ 0xdb,0xf7,0xff,0x1f,0x00,0x00,0x04,0x00, /* 00000238 "........" */ 0x00,0x00,0x08,0x00,0x00,0x02,0x00,0x10, /* 00000240 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x04,0x00, /* 00000248 "........" */ 0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000250 "8......." */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 00000258 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80, /* 00000260 "........" */ 0xdc,0xf7,0xff,0x1f,0x00,0x00,0x10,0x00, /* 00000268 "........" */ 0x00,0x00,0x18,0x00,0x10,0x01,0x00,0x00, /* 00000270 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000278 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x00, /* 00000280 "........" */ 0x30,0x00,0x00,0x00,0x07,0x00,0x01,0x00, /* 00000288 "0......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10, /* 00000290 "........" */ 0xdc,0xf7,0xff,0x1f,0x00,0x00,0x00,0x30, /* 00000298 ".......0" */ 0xdc,0xf7,0xff,0x1f,0x00,0x00,0x00,0x20, /* 000002a0 "....... " */ 0xdc,0xf7,0xff,0x1f,0x00,0x00,0x01,0x00, /* 000002a8 "........" */ 0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00, /* 000002b0 "........" */ 0xd2,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 000002b8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000002c0 "........" */ 0x03,0x00,0x0f,0x01,0x00,0x00,0x00,0x00, /* 000002c8 "........" */ 0xcc,0xf7,0xff,0x1f,0x00,0x00,0x01,0x00, /* 000002d0 "........" */ 0x01,0x00,0x18,0x00,0x00,0x00,0x03,0x00, /* 000002d8 "........" */ 0x00,0x03,0x00,0x00,0x02,0x03,0x00,0x00, /* 000002e0 "........" */ 0x08,0x03,0x00,0x00,0x0a,0x03,0x00,0x00, /* 000002e8 "........" */ 0x03,0x00,0x30,0x00,0x00,0x00,0x00,0x00, /* 000002f0 "..0....." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000002f8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000300 "........" */ 0x00,0x10,0xcb,0xf7,0xff,0x1f,0x00,0x00, /* 00000308 "........" */ 0x04,0x00,0x00,0x00,0x08,0x00,0x00,0x02, /* 00000310 "........" */ 0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x00, /* 00000318 "........" */ 0x04,0x00,0x38,0x00,0x00,0x00,0x00,0x00, /* 00000320 "..8....." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000328 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000330 "........" */ 0x00,0x80,0xcc,0xf7,0xff,0x1f,0x00,0x00, /* 00000338 "........" */ 0x10,0x00,0x00,0x00,0x18,0x00,0x10,0x01, /* 00000340 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000348 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000350 "........" */ 0x05,0x00,0x30,0x00,0x00,0x00,0x07,0x00, /* 00000358 "..0....." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000360 "........" */ 0x00,0x10,0xcc,0xf7,0xff,0x1f,0x00,0x00, /* 00000368 "........" */ 0x00,0x30,0xcc,0xf7,0xff,0x1f,0x00,0x00, /* 00000370 ".0......" */ 0x00,0x20,0xcc,0xf7,0xff,0x1f,0x00,0x00, /* 00000378 ". ......" */ 0x01,0x00,0x00,0x00,0x08,0x00,0x00,0x00, /* 00000380 "........" */ 0x00,0x00,0x92,0x01,0x02,0x00,0x10,0x00, /* 00000388 "........" */ 0x0b,0x08,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000390 "........" */ 0x00,0x00,0x10,0x00,0x7f,0x00,0x00,0x00, /* 00000398 "........" */ 0x00,0xb0,0xb8,0xf6,0xff,0x1f,0x00,0x00, /* 000003a0 "........" */ 0x01,0x00,0x02,0x00,0xd8,0x00,0x00,0x00, /* 000003a8 "........" */ 0x10,0x00,0x01,0x08,0x00,0x00,0x00,0x00, /* 000003b0 "........" */ 0x00,0x00,0x01,0x08,0x00,0x00,0x00,0x00, /* 000003b8 "........" */ 0x00,0x04,0x01,0x08,0x00,0x00,0x00,0x00, /* 000003c0 "........" */ 0x02,0x00,0x01,0x08,0x00,0x00,0x00,0x00, /* 000003c8 "........" */ 0x02,0x01,0x01,0x08,0x00,0x00,0x00,0x00, /* 000003d0 "........" */ 0x03,0x00,0x02,0x08,0x00,0x00,0x00,0x00, /* 000003d8 "........" */ 0x04,0x00,0x01,0x0a,0x00,0x00,0x00,0x00, /* 000003e0 "........" */ 0x04,0x00,0x00,0x00,0x02,0x08,0x00,0x00, /* 000003e8 "........" */ 0x00,0x00,0x05,0x00,0x01,0x0a,0x00,0x00, /* 000003f0 "........" */ 0x00,0x00,0x05,0x00,0x00,0x00,0x02,0x08, /* 000003f8 "........" */ 0x00,0x00,0x00,0x00,0x06,0x00,0x01,0x0a, /* 00000400 "........" */ 0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00, /* 00000408 "........" */ 0x02,0x08,0x00,0x00,0x00,0x00,0x07,0x00, /* 00000410 "........" */ 0x01,0x0a,0x00,0x00,0x00,0x00,0x07,0x00, /* 00000418 "........" */ 0x00,0x00,0x01,0x08,0x00,0x00,0x00,0x00, /* 00000420 "........" */ 0x1f,0x00,0x01,0x08,0x00,0x00,0x00,0x00, /* 00000428 "........" */ 0x1f,0x04,0x01,0x08,0x00,0x00,0x00,0x00, /* 00000430 "........" */ 0x1f,0x05,0x01,0x08,0x00,0x00,0x00,0x0d, /* 00000438 "........" */ 0x00,0x00,0x01,0x08,0x00,0x00,0x00,0x0e, /* 00000440 "........" */ 0x00,0x00,0x01,0x08,0x00,0x00,0x00,0x0f, /* 00000448 "........" */ 0x00,0x00,0x01,0x08,0x00,0x00,0x00,0x10, /* 00000450 "........" */ 0x00,0x00,0x01,0x08,0x00,0x00,0x00,0x10, /* 00000458 "........" */ 0x00,0x04,0x01,0x08,0x00,0x00,0x00,0x60, /* 00000460 ".......`" */ 0x00,0x00,0x01,0x08,0x00,0x00,0x00,0x60, /* 00000468 ".......`" */ 0x00,0x04,0x01,0x08,0x00,0x00,0x00,0xb0, /* 00000470 "........" */ 0x00,0x00,0x01,0x08,0x00,0x00,0x00,0xb0, /* 00000478 "........" */ 0x00,0x04,0x07,0x00,0x30,0x00,0x00,0x00, /* 00000480 "....0..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, /* 00000488 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000490 "........" */ 0x00,0x00,0x00,0xb0,0xb8,0xf6,0xff,0x1f, /* 00000498 "........" */ 0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x05, /* 000004a0 "........" */ 0x08,0x00,0xf8,0xff,0x07,0x00,0x00,0x00, /* 000004a8 "........" */ 0x00,0x00,0x08,0x00,0x40,0x00,0x00,0x00, /* 000004b0 "....@..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, /* 000004b8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000004c0 "........" */ 0x00,0x00,0x00,0xb0,0xb8,0xf6,0xff,0x1f, /* 000004c8 "........" */ 0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x03, /* 000004d0 "........" */ 0x00,0x04,0x08,0x00,0x08,0x00,0x00,0x00, /* 000004d8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x28,0xf8,0xff, /* 000004e0 ".....(.." */ 0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000004e8 "........" */ 0x00,0x00,0x0a,0x00,0x28,0x00,0x00,0x00, /* 000004f0 "....(..." */ 0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00, /* 000004f8 "........" */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 00000500 "........" */ 0x00,0x00,0x00,0xb0,0xb8,0xf6,0xff,0x1f, /* 00000508 "........" */ 0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x02, /* 00000510 "........" */ 0x10,0x00,0x00,0x00,0x2a,0x01,0x02,0x00, /* 00000518 "....*..." */ 0x10,0x00,0x0b,0x08,0x00,0x00,0x00,0x00, /* 00000520 "........" */ 0x00,0x00,0x00,0x00,0x11,0x00,0x7f,0x00, /* 00000528 "........" */ 0x00,0x00,0x00,0xb0,0x38,0xf6,0xff,0x1f, /* 00000530 "....8..." */ 0x00,0x00,0x01,0x00,0x02,0x00,0x70,0x00, /* 00000538 "......p." */ 0x00,0x00,0x11,0x00,0x01,0x08,0x01,0x00, /* 00000540 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x01,0x00, /* 00000548 "........" */ 0x00,0x00,0x00,0x04,0x01,0x08,0x01,0x00, /* 00000550 "........" */ 0x00,0x00,0x02,0x00,0x01,0x08,0x01,0x00, /* 00000558 "........" */ 0x00,0x00,0x02,0x01,0x01,0x08,0x01,0x00, /* 00000560 "........" */ 0x00,0x0d,0x00,0x00,0x01,0x08,0x01,0x00, /* 00000568 "........" */ 0x00,0x0e,0x00,0x00,0x01,0x08,0x01,0x00, /* 00000570 "........" */ 0x00,0x0f,0x00,0x00,0x01,0x08,0x01,0x00, /* 00000578 "........" */ 0x00,0x10,0x00,0x00,0x01,0x08,0x01,0x00, /* 00000580 "........" */ 0x00,0x10,0x00,0x04,0x01,0x08,0x01,0x00, /* 00000588 "........" */ 0x00,0x60,0x00,0x00,0x01,0x08,0x01,0x00, /* 00000590 ".`......" */ 0x00,0x60,0x00,0x04,0x01,0x08,0x01,0x00, /* 00000598 ".`......" */ 0x00,0xb0,0x00,0x00,0x01,0x08,0x01,0x00, /* 000005a0 "........" */ 0x00,0xb0,0x00,0x04,0x07,0x00,0x30,0x00, /* 000005a8 "......0." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000005b0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000005b8 "........" */ 0x00,0x00,0x00,0x00,0x00,0xb0,0x38,0xf6, /* 000005c0 "......8." */ 0xff,0x1f,0x00,0x00,0x10,0x00,0x00,0x00, /* 000005c8 "........" */ 0x00,0x05,0x08,0x00,0xf8,0xff,0x07,0x00, /* 000005d0 "........" */ 0x00,0x00,0x00,0x00,0x08,0x00,0x40,0x00, /* 000005d8 "......@." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000005e0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000005e8 "........" */ 0x00,0x00,0x00,0x00,0x00,0xb0,0x38,0xf6, /* 000005f0 "......8." */ 0xff,0x1f,0x00,0x00,0x10,0x00,0x00,0x00, /* 000005f8 "........" */ 0x00,0x03,0x00,0x04,0x08,0x00,0x08,0x00, /* 00000600 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x28, /* 00000608 ".......(" */ 0xf8,0xff,0x07,0x00,0x00,0x00,0x00,0x00, /* 00000610 "........" */ 0x00,0x00,0x00,0x00,0x0a,0x00,0x28,0x00, /* 00000618 "......(." */ 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00, /* 00000620 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000628 "........" */ 0x00,0x00,0x00,0x00,0x00,0xb0,0x38,0xf6, /* 00000630 "......8." */ 0xff,0x1f,0x00,0x00,0x10,0x00,0x00,0x00, /* 00000638 "........" */ 0x00,0x02,0x10,0x00, /* 00000640 "...." */ }; const unsigned char TemplateErst[] = { 0x45,0x52,0x53,0x54,0x30,0x02,0x00,0x00, /* 00000000 "ERST0..." */ 0x01,0xAB,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x30,0x00,0x00,0x00, /* 00000020 "(.. 0..." */ 0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x03,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000030 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000048 "........" */ 0x01,0x03,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000050 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000068 "........" */ 0x02,0x03,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000070 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000088 "........" */ 0x03,0x04,0x01,0x00,0x00,0x40,0x00,0x04, /* 00000090 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 000000A8 "........" */ 0x04,0x02,0x00,0x00,0x00,0x40,0x00,0x04, /* 000000B0 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C0 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 000000C8 "........" */ 0x05,0x03,0x00,0x00,0x01,0x08,0x00,0x01, /* 000000D0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E0 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 000000E8 "........" */ 0x06,0x01,0x00,0x00,0x00,0x40,0x00,0x04, /* 000000F0 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000100 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000108 "........" */ 0x07,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000110 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000118 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000120 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000128 "........" */ 0x08,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000130 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000138 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000140 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000148 "........" */ 0x09,0x02,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000150 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000158 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000160 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000168 "........" */ 0x0A,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000170 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000178 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000180 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000188 "........" */ 0x0B,0x03,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000190 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000198 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001A0 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 000001A8 "........" */ 0x0C,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 000001B0 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001B8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001C0 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 000001C8 "........" */ 0x0D,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 000001D0 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001D8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001E0 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 000001E8 "........" */ 0x0E,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 000001F0 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001F8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000200 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, /* 00000208 "........" */ 0x0F,0x00,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000210 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000218 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000220 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF /* 00000228 "........" */ }; const unsigned char TemplateFacs[] = { 0x46,0x41,0x43,0x53,0x40,0x00,0x00,0x00, /* 00000000 "FACS@..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000008 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000010 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000018 "........" */ 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000020 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000038 "........" */ }; /* Version 5 FADT */ const unsigned char TemplateFadt[] = { 0x46,0x41,0x43,0x50,0x14,0x01,0x00,0x00, /* 00000000 "FACP...." */ 0x06,0x8A,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x10,0x04,0x15,0x20,0x01,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000048 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x04,0x02,0x01,0x04,0x08,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x01, /* 00000070 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x01,0x20,0x00,0x02, /* 00000090 "..... .." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x01,0x10,0x00,0x02, /* 000000A8 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x00, /* 000000C0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C8 "........" */ 0x01,0x20,0x00,0x03,0x01,0x00,0x00,0x00, /* 000000D0 ". ......" */ 0x00,0x00,0x00,0x00,0x01,0x40,0x00,0x01, /* 000000D8 ".....@.." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E0 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x01, /* 000000F0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F8 "........" */ 0x01,0x08,0x00,0x01,0x00,0x00,0x00,0x00, /* 00000100 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000108 "........" */ 0x00,0x00,0x00,0x00 /* 00000110 "...." */ }; const unsigned char TemplateFpdt[] = { 0x46,0x50,0x44,0x54,0x64,0x00,0x00,0x00, /* 00000000 "FPDTd..." */ 0x01,0xBD,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x04,0x08,0x11,0x20,0x00,0x00,0x30,0x01, /* 00000020 "... ..0." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x10,0x01, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00 /* 00000060 "...." */ }; const unsigned char TemplateGtdt[] = { 0x47,0x54,0x44,0x54,0xE8,0x00,0x00,0x00, /* 00000000 "GTDT...." */ 0x03,0x5D,0x4C,0x49,0x4E,0x41,0x52,0x4F, /* 00000008 ".]LINARO" */ 0x52,0x54,0x53,0x4D,0x56,0x45,0x56,0x38, /* 00000010 "RTSMVEV8" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x08,0x01,0x19,0x20,0x00,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x1D,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000030 "........" */ 0x1E,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000038 "........" */ 0x1B,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000040 "........" */ 0x1A,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x02,0x00,0x00,0x00,0x60,0x00,0x00,0x00, /* 00000058 "....`..." */ 0x43,0x00,0x00,0x00,0x21,0x00,0x00,0x00, /* 00000060 "C...!..." */ 0x00,0x64,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 ".d......" */ 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00, /* 00000070 "........" */ 0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000090 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000098 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000000C0 "........" */ 0x00,0x00,0x00,0x00,0x01,0x1C,0x00,0x00, /* 000000C8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00 /* 000000E0 "........" */ }; const unsigned char TemplateHest[] = { 0x48,0x45,0x53,0x54,0x7C,0x02,0x00,0x00, /* 00000000 "HEST|..." */ 0x01,0x97,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x03,0x03,0x17,0x20,0x04,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, /* 00000028 "........" */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x01, /* 00000088 "........" */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000090 "........" */ 0x00,0x1C,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00, /* 000000B0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000000D0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E8 "........" */ 0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x01, /* 000000F0 "........" */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000000F8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000100 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000108 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000110 "........" */ 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00, /* 00000118 "........" */ 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, /* 00000120 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000128 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000130 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000138 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000140 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000148 "........" */ 0x00,0x00,0x00,0x00,0x09,0x00,0x02,0x00, /* 00000150 "........" */ 0xFF,0xFF,0x00,0x01,0x01,0x00,0x00,0x00, /* 00000158 "........" */ 0x01,0x00,0x00,0x00,0x00,0x10,0x00,0x00, /* 00000160 "........" */ 0x00,0x40,0x00,0x04,0x00,0x00,0x00,0x00, /* 00000168 ".@......" */ 0x00,0x00,0x00,0x00,0x03,0x1C,0x00,0x00, /* 00000170 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000178 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000180 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000188 "........" */ 0x00,0x10,0x00,0x00,0x09,0x00,0x03,0x00, /* 00000190 "........" */ 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, /* 00000198 "........" */ 0x01,0x00,0x00,0x00,0x00,0x10,0x00,0x00, /* 000001A0 "........" */ 0x00,0x40,0x00,0x04,0x00,0x00,0x00,0x00, /* 000001A8 ".@......" */ 0x00,0x00,0x00,0x00,0x04,0x1C,0x00,0x00, /* 000001B0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001B8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001C0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001C8 "........" */ 0x00,0x10,0x00,0x00,0x0A,0x00,0x03,0x00, /* 000001D0 "........" */ 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, /* 000001D8 "........" */ 0x01,0x00,0x00,0x00,0x00,0x10,0x00,0x00, /* 000001E0 "........" */ 0x00,0x40,0x00,0x04,0x00,0x00,0x00,0x00, /* 000001E8 ".@......" */ 0x00,0x00,0x00,0x00,0x04,0x1C,0x00,0x00, /* 000001F0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001F8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000200 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000208 "........" */ 0x00,0x10,0x00,0x00,0x00,0x40,0x00,0x04, /* 00000210 ".....@.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000218 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000220 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000228 "........" */ 0x0B,0x00,0x01,0x00,0x00,0x00,0x00,0x01, /* 00000230 "........" */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000238 "........" */ 0x00,0x1C,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000240 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000248 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000250 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000258 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000260 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000268 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000270 "........" */ 0x00,0x00,0x00,0x00 /* 00000278 "...." */ }; const unsigned char TemplateHmat[] = { 0x48,0x4D,0x41,0x54,0x9C,0x00,0x00,0x00, /* 00000000 "HMAT...." */ 0x02,0x4D,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".MINTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x08,0x01,0x19,0x20,0x00,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00,0x28,0x00,0x00,0x00, /* 00000028 "....(..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x01,0x00,0x00,0x00,0x2A,0x00,0x00,0x00, /* 00000050 "....*..." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000058 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x02,0x00,0x00,0x00,0x22,0x00, /* 00000078 "......"." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000090 "........" */ 0x01,0x00,0x00,0x00 /* 00000098 "...." */ }; const unsigned char TemplateHpet[] = { 0x48,0x50,0x45,0x54,0x38,0x00,0x00,0x00, /* 00000000 "HPET8..." */ 0x01,0x09,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000030 "........" */ }; const unsigned char TemplateIort[] = { 0x49,0x4F,0x52,0x54,0x3C,0x02,0x00,0x00, /* 00000000 "IORT<..." */ 0x05,0xCB,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x17,0x12,0x21,0x20,0x07,0x00,0x00,0x00, /* 00000020 "..! ...." */ 0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "4......." */ 0x49,0x4F,0x52,0x54,0x00,0x18,0x00,0x01, /* 00000030 "IORT...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x04, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000050 "........" */ 0x6C,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "l......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x5C,0x5F,0x53,0x42,0x2E,0x50,0x43, /* 00000068 ".\_SB.PC" */ 0x49,0x30,0x2E,0x44,0x45,0x56,0x30,0x00, /* 00000070 "I0.DEV0." */ 0x49,0x4F,0x52,0x54,0x3C,0x02,0x00,0x00, /* 00000078 "IORT<..." */ 0x03,0xF1,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000080 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000088 "Template" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000090 "....INTL" */ 0x05,0x01,0x21,0x20,0x07,0x00,0x00,0x00, /* 00000098 "..! ...." */ 0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "4......." */ 0x49,0x4F,0x52,0x54,0x00,0x18,0x00,0x01, /* 000000A8 "IORT...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C0 "........" */ 0x00,0x00,0x00,0x00,0x02,0x38,0x00,0x04, /* 000000C8 ".....8.." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000000D0 "........" */ 0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D8 "$......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F8 "........" */ 0x00,0x00,0x00,0x00,0x03,0x60,0x00,0x03, /* 00000100 ".....`.." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000108 "........" */ 0x4C,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000110 "L......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000118 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000120 "........" */ 0x00,0x00,0x00,0x00,0x3C,0x00,0x00,0x00, /* 00000128 "....<..." */ 0x00,0x00,0x00,0x00,0x4C,0x00,0x00,0x00, /* 00000130 "....L..." */ 0x00,0x00,0x00,0x00,0x4C,0x00,0x00,0x00, /* 00000138 "....L..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000140 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000148 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000150 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000158 "........" */ 0x00,0x00,0x00,0x00,0x04,0x58,0x00,0x04, /* 00000160 ".....X.." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000168 "........" */ 0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000170 "D......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000178 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000180 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000188 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000190 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000198 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001A0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001B0 "........" */ 0x00,0x00,0x00,0x00,0x05,0x3C,0x00,0x02, /* 000001B8 ".....<.." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000001C0 "........" */ 0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001C8 "(......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001D0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001D8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001E0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001E8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000001F0 "........" */ 0x06,0x44,0x00,0x03,0x00,0x00,0x00,0x00, /* 000001F8 ".D......" */ 0x01,0x00,0x00,0x00,0x30,0x00,0x00,0x00, /* 00000200 "....0..." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000208 "........" */ 0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000210 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000218 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000220 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000228 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000230 "........" */ 0x00,0x00,0x00,0x00 /* 00000238 "...." */ }; const unsigned char TemplateIvrs[] = { 0x49,0x56,0x52,0x53,0x10,0x02,0x00,0x00, /* 00000000 "IVRS...." */ 0x02,0x6C,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".lINTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x31,0x03,0x21,0x20,0x41,0x30,0x20,0x00, /* 00000020 "1.! A0 ." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x10,0xB0,0x64,0x00,0x02,0x00,0x40,0x00, /* 00000030 "..d...@." */ 0x00,0x00,0xF0,0xFD,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x6F,0x8F,0x04,0x80, /* 00000040 "....o..." */ 0x03,0x08,0x00,0x00,0x01,0x08,0x00,0x00, /* 00000048 "........" */ 0x02,0x08,0x00,0x00,0x04,0xFE,0xFF,0x00, /* 00000050 "........" */ 0x42,0x00,0xFF,0x00,0x00,0xA5,0x00,0x00, /* 00000058 "B......." */ 0x43,0x00,0xFF,0x00,0x00,0xA5,0x00,0x00, /* 00000060 "C......." */ 0x46,0x00,0xFF,0x00,0x44,0x33,0x22,0x11, /* 00000068 "F...D3"." */ 0x47,0x00,0xFF,0x00,0x44,0x33,0x22,0x11, /* 00000070 "G...D3"." */ 0x04,0xFF,0xFF,0x00,0x48,0x00,0x00,0x00, /* 00000078 "....H..." */ 0x00,0xA0,0x00,0x02,0x48,0x00,0x00,0xD7, /* 00000080 "....H..." */ 0x21,0xA0,0x00,0x01,0x48,0x00,0x00,0x00, /* 00000088 "!...H..." */ 0x22,0x01,0x00,0x01,0x11,0xB0,0x48,0x00, /* 00000090 "".....H." */ 0x02,0x00,0x40,0x00,0x00,0x00,0xF0,0xFD, /* 00000098 "..@....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x02,0x04,0x00,0xDE,0x4A,0x25,0x22, /* 000000A8 ".....J%"" */ 0xEF,0x73,0x6D,0x20,0x00,0x00,0x00,0x00, /* 000000B0 ".sm ...." */ 0x00,0x00,0x00,0x00,0x03,0x08,0x00,0x00, /* 000000B8 "........" */ 0x04,0xFE,0xFF,0x00,0x43,0x00,0xFF,0x00, /* 000000C0 "....C..." */ 0x00,0xA5,0x00,0x00,0x04,0xFF,0xFF,0x00, /* 000000C8 "........" */ 0x00,0x00,0x00,0x00,0x48,0x00,0x00,0x00, /* 000000D0 "....H..." */ 0x00,0xA0,0x00,0x02,0x40,0xB0,0xD4,0x00, /* 000000D8 "....@..." */ 0x02,0x00,0x40,0x00,0x00,0x00,0xF0,0xFD, /* 000000E0 "..@....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E8 "........" */ 0x00,0x02,0x04,0x00,0xDE,0x4A,0x25,0x22, /* 000000F0 ".....J%"" */ 0xEF,0x73,0x6D,0x20,0x00,0x00,0x00,0x00, /* 000000F8 ".sm ...." */ 0x00,0x00,0x00,0x00,0x03,0x08,0x00,0x00, /* 00000100 "........" */ 0x04,0xFE,0xFF,0x00,0x43,0x00,0xFF,0x00, /* 00000108 "....C..." */ 0x00,0xA5,0x00,0x00,0x04,0xFF,0xFF,0x00, /* 00000110 "........" */ 0x00,0x00,0x00,0x00,0x48,0x00,0x00,0x00, /* 00000118 "....H..." */ 0x00,0xA0,0x00,0x02,0x48,0x00,0x00,0xD7, /* 00000120 "....H..." */ 0x21,0xA0,0x00,0x01,0x48,0x00,0x00,0x00, /* 00000128 "!...H..." */ 0x22,0x01,0x00,0x01,0xF0,0xA5,0x00,0x40, /* 00000130 ""......@" */ 0x49,0x4E,0x54,0x43,0x30,0x30,0x32,0x30, /* 00000138 "INTC0020" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000140 "........" */ 0x02,0x09,0x5C,0x5F,0x53,0x42,0x2E,0x44, /* 00000148 "..\_SB.D" */ 0x45,0x56,0x30,0xF0,0xA5,0x00,0x40,0x49, /* 00000150 "EV0...@I" */ 0x4E,0x54,0x43,0x30,0x30,0x32,0x30,0x00, /* 00000158 "NTC0020." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02, /* 00000160 "........" */ 0x09,0x5C,0x5F,0x53,0x42,0x2E,0x44,0x45, /* 00000168 ".\_SB.DE" */ 0x56,0x31,0xF0,0xA5,0x00,0x40,0x49,0x4E, /* 00000170 "V1...@IN" */ 0x54,0x43,0x30,0x30,0x32,0x30,0x00,0x00, /* 00000178 "TC0020.." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x09, /* 00000180 "........" */ 0x5C,0x5F,0x53,0x42,0x2E,0x44,0x45,0x56, /* 00000188 "\_SB.DEV" */ 0x32,0xF0,0xA5,0x00,0x40,0x49,0x4E,0x54, /* 00000190 "2...@INT" */ 0x43,0x30,0x30,0x32,0x30,0x00,0x00,0x00, /* 00000198 "C0020..." */ 0x00,0x00,0x00,0x00,0x00,0x02,0x09,0x5C, /* 000001A0 ".......\" */ 0x5F,0x53,0x42,0x2E,0x44,0x45,0x56,0x33, /* 000001A8 "_SB.DEV3" */ 0x20,0x0D,0x20,0x00,0x22,0x11,0x00,0x00, /* 000001B0 " . ."..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001B8 "........" */ 0xCD,0xAB,0x78,0x56,0x34,0x12,0x00,0x00, /* 000001C0 "..xV4..." */ 0xDC,0xFE,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001C8 "........" */ 0x21,0x0D,0x20,0x00,0x22,0x11,0x00,0x00, /* 000001D0 "!. ."..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001D8 "........" */ 0xCD,0xAB,0x78,0x56,0x34,0x12,0x00,0x00, /* 000001E0 "..xV4..." */ 0xDC,0xFE,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001E8 "........" */ 0x22,0x0D,0x20,0x00,0x22,0x11,0x00,0x00, /* 000001F0 "". ."..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001F8 "........" */ 0xCD,0xAB,0x78,0x56,0x34,0x12,0x00,0x00, /* 00000200 "..xV4..." */ 0xDC,0xFE,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000208 "........" */ }; const unsigned char TemplateLpit[] = { 0x4C,0x50,0x49,0x54,0x94,0x00,0x00,0x00, /* 00000000 "LPIT...." */ 0x00,0xD8,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x10,0x04,0x15,0x20,0x00,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "8......." */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x01, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x7F,0x40,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 ".@......" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "8......." */ 0x00,0x00,0x00,0x00,0x01,0x08,0x00,0x01, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x7F,0x40,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 ".@......" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00 /* 00000090 "...." */ }; /* MADT with ACPI 6.0 subtables */ const unsigned char TemplateMadt[] = { 0x41,0x50,0x49,0x43,0x62,0x02,0x00,0x00, /* 00000000 "APICb..." */ 0x07,0x44,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".DINTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x06,0x23,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.# ...." */ 0x01,0x00,0x00,0x00,0x00,0x08,0x00,0x00, /* 00000028 "........" */ 0x01,0x00,0x00,0x00,0x01,0x0C,0x01,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x02,0x0A,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x03,0x08,0x0D,0x00,0x01,0x00, /* 00000048 "........" */ 0x00,0x00,0x04,0x06,0x00,0x05,0x00,0x01, /* 00000050 "........" */ 0x05,0x0C,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x06,0x10,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x07,0x16,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x5C,0x43,0x50,0x55, /* 00000080 "....\CPU" */ 0x30,0x00,0x08,0x10,0x05,0x00,0x00,0x00, /* 00000088 "0......." */ 0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00, /* 00000090 "........" */ 0x00,0x00,0x09,0x10,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x0A,0x0C,0x05,0x00,0x00,0x00, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x0B,0x52, /* 000000B0 ".......R" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 000000C0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x18, /* 00000100 "........" */ 0x0C,0x18,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000108 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000110 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000118 "........" */ 0x0D,0x18,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000120 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000128 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000130 "........" */ 0x0E,0x10,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000138 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000140 "........" */ 0x0F,0x14,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000148 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000150 "........" */ 0x00,0x00,0x00,0x00,0x10,0x10,0x00,0x00, /* 00000158 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000160 "........" */ 0x00,0x00,0x00,0x00,0x11,0x0F,0x01,0x01, /* 00000168 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, /* 00000170 "........" */ 0x00,0x00,0x00,0x12,0x17,0x01,0x00,0x14, /* 00000178 "........" */ 0xE0,0x1F,0x00,0x00,0x00,0x00,0x80,0x00, /* 00000180 "........" */ 0x02,0x03,0xFF,0xFF,0xFF,0x00,0x00,0x00, /* 00000188 "........" */ 0x00,0xFF,0x13,0x15,0x01,0x80,0x00,0x00, /* 00000190 "........" */ 0xFB,0xFD,0x0E,0x00,0x00,0x40,0x00,0x00, /* 00000198 ".....@.." */ 0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x14, /* 000001A0 "........" */ 0x0D,0x01,0x03,0x00,0x00,0x00,0x00,0x00, /* 000001A8 "........" */ 0x00,0x00,0x00,0x00,0x15,0x13,0x01,0x00, /* 000001B0 "........" */ 0x00,0xF0,0x2F,0x00,0x00,0x00,0x00,0x40, /* 000001B8 "../....@" */ 0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x16, /* 000001C0 "........" */ 0x11,0x01,0x00,0x00,0x00,0x10,0x00,0x00, /* 000001C8 "........" */ 0x00,0x00,0x00,0x10,0x00,0x00,0x40,0x00, /* 000001D0 "......@." */ 0x17,0x0E,0x01,0x00,0x20,0x00,0x10,0x00, /* 000001D8 ".... ..." */ 0x00,0x00,0x00,0x00,0x10,0x13,0x18,0x24, /* 000001E0 ".......$" */ 0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 000001E8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001F0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001F8 "........" */ 0x00,0x28,0x00,0x00,0x00,0x00,0x00,0x10, /* 00000200 ".(......" */ 0x00,0x00,0x19,0x10,0x01,0x00,0x00,0x00, /* 00000208 "........" */ 0x00,0x00,0xFF,0x00,0xFF,0x00,0x00,0x00, /* 00000210 "........" */ 0x00,0x18,0x1A,0x24,0x01,0x00,0x00,0x00, /* 00000218 "...$...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000220 "........" */ 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00, /* 00000228 "....`..." */ 0x00,0x00,0x00,0x00,0x00,0x0D,0x00,0x00, /* 00000230 "........" */ 0x00,0x00,0x00,0x80,0x00,0x00,0x1B,0x24, /* 00000238 ".......$" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000240 "........" */ 0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00, /* 00000248 "..`....." */ 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00, /* 00000250 "....`..." */ 0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000258 "........" */ 0x00,0x00 /* 00000260 ".." */ }; const unsigned char TemplateMcfg[] = { 0x4D,0x43,0x46,0x47,0x3C,0x00,0x00,0x00, /* 00000000 "MCFG<..." */ 0x01,0x19,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00 /* 00000038 "...." */ }; const unsigned char TemplateMchi[] = { 0x4D,0x43,0x48,0x49,0x45,0x00,0x00,0x00, /* 00000000 "MCHIE..." */ 0x01,0xE4,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x15,0x07,0x00,0x02,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x01,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x02,0x08,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00 /* 00000040 "....." */ }; const unsigned char TemplateMsdm[] = { 0x4D,0x53,0x44,0x4D,0x64,0x00,0x00,0x00, /* 00000000 "MSDMd..." */ 0x01,0x34,0x49,0x6E,0x74,0x65,0x6C,0x00, /* 00000008 ".4Intel." */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x03,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x04,0x02,0x15,0x20,0x00,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x0A,0x10,0x16,0x17,0x18,0x19,0x1A,0x1B, /* 00000028 "........" */ 0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23, /* 00000030 ".... !"#" */ 0x24,0x25,0x26,0x27,0x10,0x0A,0x15,0x16, /* 00000038 "$%&'...." */ 0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E, /* 00000040 "........" */ 0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26, /* 00000048 ". !"#$%&" */ 0x16,0x15,0x0A,0x10,0x16,0x17,0x18,0x19, /* 00000050 "........" */ 0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21, /* 00000058 "...... !" */ 0x22,0x23,0x24,0x25 /* 00000060 ""#$%" */ }; const unsigned char TemplateMpam[] = { 0x4D,0x50,0x41,0x4D,0xFC,0x00,0x00,0x00, /* 00000000 "MPAM...." */ 0x02,0x35,0x48,0x49,0x53,0x49,0x20,0x20, /* 00000008 ".5HISI " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x02,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x06,0x23,0x20,0x60,0x00,0x00,0x00, /* 00000020 "(.# `..." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0xC0, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "2......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x01,0x00,0x00,0x00,0x11,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x01,0x20,0x00,0x00,0x00, /* 00000070 ".... ..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x78,0x00,0x00,0x00, /* 00000080 "....x..." */ 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0xD0, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, /* 00000090 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "2......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C0 "........" */ 0x02,0x00,0x00,0x00,0x12,0x00,0x00,0x00, /* 000000C8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 000000D0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D8 "........" */ 0x00,0x00,0x00,0x00,0x13,0x00,0x00,0x00, /* 000000E0 "........" */ 0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00, /* 000000E8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F0 "........" */ 0x00,0x00,0x00,0x00 /* 000000F8 "...." */ }; const unsigned char TemplateMpst[] = { 0x4D,0x50,0x53,0x54,0xB6,0x00,0x00,0x00, /* 00000000 "MPST...." */ 0x01,0x77,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".wINTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x13,0x09,0x12,0x20,0x00,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00, /* 00000040 "........" */ 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x01,0x00,0x02,0x00,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, /* 00000068 "........" */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x02,0x00,0x00,0x00,0x01,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000090 "........" */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00 /* 000000B0 "......" */ }; const unsigned char TemplateMrrm[] = { 0x4D,0x52,0x52,0x4D,0xE0,0x00,0x00,0x00, /* 00000000 "MRRM...." */ 0x01,0x6F,0x49,0x4E,0x54,0x45,0x4C,0x00, /* 00000008 ".oINTEL." */ 0x49,0x4E,0x54,0x45,0x4C,0x20,0x49,0x44, /* 00000010 "INTEL ID" */ 0x02,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x06,0x23,0x20,0x02,0x00,0x00,0x00, /* 00000020 "(.# ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00, /* 00000040 ".. ....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00, /* 00000060 ".. ....." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0xFF,0x03,0x00,0x00, /* 00000070 "........" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00, /* 00000080 ".. ....." */ 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00, /* 00000090 "........" */ 0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00, /* 000000A0 ".. ....." */ 0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00, /* 000000B0 "........" */ 0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00, /* 000000C0 ".. ....." */ 0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00, /* 000000C8 "........" */ 0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00, /* 000000D0 "........" */ 0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00 /* 000000D8 "........" */ }; const unsigned char TemplateMsct[] = { 0x4D,0x53,0x43,0x54,0x90,0x00,0x00,0x00, /* 00000000 "MSCT...." */ 0x01,0xB7,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x38,0x00,0x00,0x00, /* 00000020 "(.. 8..." */ 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0x00,0x00, /* 00000030 "........" */ 0x01,0x16,0x00,0x00,0x00,0x00,0x03,0x00, /* 00000038 "........" */ 0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x40,0x00,0x00,0x00,0x01,0x16, /* 00000048 "..@....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x01,0x16,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x01,0x16,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000088 "........" */ }; const unsigned char TemplateNfit[] = { 0x4E,0x46,0x49,0x54,0x88,0x01,0x00,0x00, /* 00000000 "NFIT...." */ 0x01,0x81,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x13,0x11,0x20,0x20,0x00,0x00,0x00,0x00, /* 00000020 ".. ...." */ 0x00,0x00,0x40,0x00,0x01,0x00,0x00,0x00, /* 00000028 "..@....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x30,0x05,0xAF,0x91,0x86,0x5D,0x0E,0x47, /* 00000038 "0....].G" */ 0xA6,0xB0,0x0A,0x2D,0xB9,0x40,0x82,0x49, /* 00000040 "...-.@.I" */ 0x00,0x00,0x00,0x7C,0x03,0x00,0x00,0x00, /* 00000048 "...|...." */ 0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0xEF,0xCD,0xAB,0x78,0x56,0x34,0x12, /* 00000060 "....xV4." */ 0x01,0x00,0x30,0x00,0x01,0x00,0x00,0x00, /* 00000068 "..0....." */ 0x04,0x00,0x00,0x00,0x01,0x00,0x01,0x00, /* 00000070 "........" */ 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x01,0x00,0x03,0x00,0x2A,0x00,0x00,0x00, /* 00000090 "....*..." */ 0x02,0x00,0x20,0x00,0x01,0x00,0x00,0x00, /* 00000098 ".. ....." */ 0x04,0x00,0x00,0x00,0x00,0x01,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00, /* 000000A8 "........" */ 0x06,0x00,0x00,0x00,0x09,0x00,0x00,0x00, /* 000000B0 "........" */ 0x03,0x00,0x28,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "..(....." */ 0xB4,0x13,0x5D,0x40,0x91,0x0B,0x29,0x93, /* 000000C0 "..]@..)." */ 0x67,0xE8,0x23,0x4C,0x00,0x00,0x00,0x88, /* 000000C8 "g.#L...." */ 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77, /* 000000D0 ".."3DUfw" */ 0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF, /* 000000D8 "........" */ 0x04,0x00,0x50,0x00,0x01,0x00,0x86,0x80, /* 000000E0 "..P....." */ 0x17,0x20,0x01,0x00,0x86,0x80,0x17,0x20, /* 000000E8 ". ..... " */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F0 "........" */ 0x89,0x00,0x54,0x76,0x01,0x03,0x00,0x01, /* 000000F8 "..Tv...." */ 0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000100 ". ......" */ 0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00, /* 00000108 "........" */ 0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000110 "........" */ 0x00,0x10,0x80,0x00,0x00,0x00,0x00,0x00, /* 00000118 "........" */ 0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000120 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000128 "........" */ 0x05,0x00,0x28,0x00,0x01,0x00,0x00,0x01, /* 00000130 "..(....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000138 "........" */ 0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000140 ". ......" */ 0x00,0x00,0x00,0xE0,0x0F,0x00,0x00,0x00, /* 00000148 "........" */ 0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00, /* 00000150 "........" */ 0x06,0x00,0x20,0x00,0x01,0x00,0x00,0x00, /* 00000158 ".. ....." */ 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000160 "........" */ 0x00,0x00,0x00,0x18,0x04,0x00,0x00,0x00, /* 00000168 "........" */ 0x00,0x00,0x00,0x18,0x06,0x00,0x00,0x00, /* 00000170 "........" */ 0x07,0x00,0x10,0x00,0x00,0x00,0x00,0x00, /* 00000178 "........" */ 0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000180 "........" */ }; const unsigned char TemplatePcct[] = { 0x50,0x43,0x43,0x54,0xAE,0x02,0x00,0x00, /* 00000000 "PCCT...." */ 0x01,0xE6,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x25,0x09,0x20,0x20,0x01,0x00,0x00,0x00, /* 00000020 "%. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x3E,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 ".>......" */ 0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11, /* 00000038 "........" */ 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, /* 00000040 """""""""" */ 0x01,0x32,0x00,0x03,0x33,0x33,0x33,0x33, /* 00000048 ".2..3333" */ 0x33,0x33,0x33,0x33,0x44,0x44,0x44,0x44, /* 00000050 "3333DDDD" */ 0x44,0x44,0x44,0x44,0x55,0x55,0x55,0x55, /* 00000058 "DDDDUUUU" */ 0x55,0x55,0x55,0x55,0x66,0x66,0x66,0x66, /* 00000060 "UUUUffff" */ 0x77,0x77,0x77,0x77,0x88,0x88,0x01,0x3E, /* 00000068 "wwww...>" */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x32, /* 00000080 ".......2" */ 0x00,0x03,0x44,0x44,0x44,0x44,0x44,0x44, /* 00000088 "..DDDDDD" */ 0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44, /* 00000090 "DDDDDDDD" */ 0x44,0x44,0x55,0x55,0x55,0x55,0x55,0x55, /* 00000098 "DDUUUUUU" */ 0x55,0x55,0x66,0x66,0x66,0x66,0x77,0x77, /* 000000A0 "UUffffww" */ 0x77,0x77,0x88,0x88,0x02,0x5A,0x01,0x00, /* 000000A8 "ww...Z.." */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x01,0x32,0x00,0x03, /* 000000C0 ".....2.." */ 0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44, /* 000000C8 "DDDDDDDD" */ 0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44, /* 000000D0 "DDDDDDDD" */ 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55, /* 000000D8 "UUUUUUUU" */ 0x66,0x66,0x66,0x66,0x77,0x77,0x77,0x77, /* 000000E0 "ffffwwww" */ 0x88,0x88,0x01,0x32,0x00,0x03,0x33,0x33, /* 000000E8 "...2..33" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x44,0x44, /* 000000F0 "333333DD" */ 0x44,0x44,0x44,0x44,0x44,0x44,0x55,0x55, /* 000000F8 "DDDDDDUU" */ 0x55,0x55,0x55,0x55,0x55,0x55,0x03,0xA4, /* 00000100 "UUUUUU.." */ 0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000108 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000110 "........" */ 0x00,0x00,0x01,0x32,0x00,0x03,0x33,0x33, /* 00000118 "...2..33" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x44,0x44, /* 00000120 "333333DD" */ 0x44,0x44,0x44,0x44,0x44,0x44,0x55,0x55, /* 00000128 "DDDDDDUU" */ 0x55,0x55,0x55,0x55,0x55,0x55,0x66,0x66, /* 00000130 "UUUUUUff" */ 0x66,0x66,0x77,0x77,0x77,0x77,0x88,0x88, /* 00000138 "ffwwww.." */ 0x88,0x88,0x01,0x32,0x00,0x03,0x33,0x33, /* 00000140 "...2..33" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x99,0x99, /* 00000148 "333333.." */ 0x99,0x99,0x99,0x99,0x99,0x99,0x00,0x00, /* 00000150 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000158 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x32, /* 00000160 ".......2" */ 0x00,0x03,0x33,0x33,0x33,0x33,0x33,0x33, /* 00000168 "..333333" */ 0x33,0x33,0x22,0x22,0x22,0x22,0x22,0x22, /* 00000170 "33""""""" */ 0x22,0x22,0x01,0x32,0x00,0x03,0x33,0x33, /* 00000178 """.2..33" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33, /* 00000180 "33333333" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x44,0x44, /* 00000188 "333333DD" */ 0x44,0x44,0x44,0x44,0x44,0x44,0x01,0x32, /* 00000190 "DDDDDD.2" */ 0x00,0x03,0x33,0x33,0x33,0x33,0x33,0x33, /* 00000198 "..333333" */ 0x33,0x33,0x55,0x55,0x55,0x55,0x55,0x55, /* 000001A0 "33UUUUUU" */ 0x55,0x55,0x04,0xA4,0x01,0x00,0x00,0x00, /* 000001A8 "UU......" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001B0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x32, /* 000001B8 ".......2" */ 0x00,0x03,0x33,0x33,0x33,0x33,0x33,0x33, /* 000001C0 "..333333" */ 0x33,0x33,0x44,0x44,0x44,0x44,0x44,0x44, /* 000001C8 "33DDDDDD" */ 0x44,0x44,0x55,0x55,0x55,0x55,0x55,0x55, /* 000001D0 "DDUUUUUU" */ 0x55,0x55,0x66,0x66,0x66,0x66,0x77,0x77, /* 000001D8 "UUffffww" */ 0x77,0x77,0x88,0x88,0x88,0x88,0x01,0x32, /* 000001E0 "ww.....2" */ 0x00,0x03,0x33,0x33,0x33,0x33,0x33,0x33, /* 000001E8 "..333333" */ 0x33,0x33,0x99,0x99,0x99,0x99,0x99,0x99, /* 000001F0 "33......" */ 0x99,0x99,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001F8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000200 "........" */ 0x00,0x00,0x01,0x32,0x00,0x03,0x33,0x33, /* 00000208 "...2..33" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x22,0x22, /* 00000210 "333333""" */ 0x22,0x22,0x22,0x22,0x22,0x22,0x01,0x32, /* 00000218 """"""".2" */ 0x00,0x03,0x33,0x33,0x33,0x33,0x33,0x33, /* 00000220 "..333333" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33, /* 00000228 "33333333" */ 0x33,0x33,0x44,0x44,0x44,0x44,0x44,0x44, /* 00000230 "33DDDDDD" */ 0x44,0x44,0x01,0x32,0x00,0x03,0x33,0x33, /* 00000238 "DD.2..33" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x55,0x55, /* 00000240 "333333UU" */ 0x55,0x55,0x55,0x55,0x55,0x55,0x05,0x60, /* 00000248 "UUUUUU.`" */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000250 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000258 "........" */ 0x00,0x00,0x01,0x32,0x00,0x03,0x33,0x33, /* 00000260 "...2..33" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33, /* 00000268 "33333333" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33, /* 00000270 "33333333" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x01,0x32, /* 00000278 "333333.2" */ 0x00,0x03,0x33,0x33,0x33,0x33,0x33,0x33, /* 00000280 "..333333" */ 0x33,0x33,0x44,0x44,0x44,0x44,0x44,0x44, /* 00000288 "33DDDDDD" */ 0x44,0x44,0x01,0x32,0x00,0x03,0x33,0x33, /* 00000290 "DD.2..33" */ 0x33,0x33,0x33,0x33,0x33,0x33,0x55,0x55, /* 00000298 "333333UU" */ 0x55,0x55,0x55,0x55,0x55,0x55,0x03,0x00, /* 000002A0 "UUUUUU.." */ 0x00,0x00,0x05,0x00,0x00,0x00 /* 000002A8 "......" */ }; const unsigned char TemplatePdtt[] = { 0x50,0x44,0x54,0x54,0x34,0x00,0x00,0x00, /* 00000000 "PDTT4..." */ 0x01,0xCB,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x31,0x08,0x17,0x20,0x04,0x00,0x00,0x00, /* 00000020 "1.. ...." */ 0x2C,0x00,0x00,0x00,0xAA,0x03,0xBB,0x02, /* 00000028 ",......." */ 0xCC,0x01,0xDD,0x00 /* 00000030 "...." */ }; const unsigned char TemplatePhat [] = { 0x50,0x48,0x41,0x54,0xA2,0x00,0x00,0x00, /* 00000000 "PHAT...." */ 0x01,0xCA,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x31,0x03,0x22,0x20,0x00,0x00,0x28,0x00, /* 00000020 "1." ..(." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000028 "........" */ 0x30,0x05,0xAF,0x91,0x86,0x5D,0x0E,0x47, /* 00000030 "0....].G" */ 0xA6,0xB0,0x0A,0x2D,0xB9,0x40,0x82,0x49, /* 00000038 "...-.@.I" */ 0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01, /* 00000040 "........" */ 0x0C,0x0B,0x0A,0x09,0x01,0x00,0x2E,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x30,0x05,0xAF,0x91, /* 00000050 "....0..." */ 0x86,0x5D,0x0E,0x47,0xA6,0xB0,0x0A,0x2D, /* 00000058 ".].G...-" */ 0xB9,0x40,0x82,0x49,0x2A,0x00,0x00,0x00, /* 00000060 ".@.I*..." */ 0x41,0x00,0x42,0x00,0x43,0x00,0x44,0x00, /* 00000068 "A.B.C.D." */ 0x45,0x00,0x46,0x00,0x00,0x00,0x01,0x02, /* 00000070 "E.F....." */ 0x03,0x04,0x00,0x00,0x28,0x00,0x00,0x00, /* 00000078 "....(..." */ 0x00,0x00,0x01,0x00,0x00,0x00,0x30,0x05, /* 00000080 "......0." */ 0xAF,0x91,0x86,0x5D,0x0E,0x47,0xA6,0xB0, /* 00000088 "...].G.." */ 0x0A,0x2D,0xB9,0x40,0x82,0x49,0x08,0x07, /* 00000090 ".-.@.I.." */ 0x06,0x05,0x04,0x03,0x02,0x01,0x0C,0x0B, /* 00000098 "........" */ 0x0A,0x09 /* 000000A0 ".." */ }; const unsigned char TemplatePmtt[] = { 0x50,0x4D,0x54,0x54,0xBB,0x00,0x00,0x00, /* 00000000 "PMTT...." */ 0x02,0x2E,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x05,0x01,0x21,0x20,0x08,0x00,0x00,0x00, /* 00000020 "..! ...." */ 0x00,0x00,0x10,0x00,0x0D,0x00,0x00,0x00, /* 00000028 "........" */ 0x03,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000030 "........" */ 0x01,0x00,0x10,0x00,0x04,0x00,0x00,0x00, /* 00000038 "........" */ 0x02,0x00,0x00,0x00,0x44,0x44,0x00,0x00, /* 00000040 "....DD.." */ 0x02,0x00,0x10,0x00,0x04,0x00,0x00,0x00, /* 00000048 "........" */ 0x01,0x00,0x00,0x00,0x78,0x56,0x34,0x12, /* 00000050 "....xV4." */ 0xFF,0x00,0x23,0x00,0x0D,0x00,0x00,0x00, /* 00000058 "..#....." */ 0x03,0x00,0x00,0x00,0x03,0x02,0x01,0x00, /* 00000060 "........" */ 0x08,0x04,0x07,0x06,0x08,0x09,0x0A,0x0B, /* 00000068 "........" */ 0x0C,0x0D,0x0E,0x0F,0x55,0x66,0x77,0x88, /* 00000070 "....Ufw." */ 0x11,0xAA,0xBB,0x00,0x00,0x10,0x00,0x0D, /* 00000078 "........" */ 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x01, /* 00000080 "........" */ 0x00,0x00,0x00,0x01,0x00,0x10,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00, /* 00000090 "........" */ 0x00,0x00,0x00,0x02,0x00,0x10,0x00,0x04, /* 00000098 "........" */ 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x78, /* 000000A0 ".......x" */ 0x56,0x34,0x12,0x02,0x00,0x10,0x00,0x04, /* 000000A8 "V4......" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78, /* 000000B0 ".......x" */ 0x56,0x34,0x12 /* 000000B8 "V4." */ }; const unsigned char TemplatePptt[] = { 0x50,0x50,0x54,0x54,0x72,0x00,0x00,0x00, /* 00000000 "PPTTr..." */ 0x01,0x86,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x03,0x03,0x17,0x20,0x00,0x18,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x01,0x18,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x02,0x1E,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00 /* 00000070 ".." */ }; const unsigned char TemplatePrmt[] = { 0x50,0x52,0x4D,0x54,0xB8,0x02,0x00,0x00, /* 00000000 "PRMT...." */ 0x00,0x13,0x4F,0x45,0x4D,0x43,0x41,0x20, /* 00000008 "..OEMCA " */ 0x4F,0x45,0x4D,0x43,0x41,0x20,0x20,0x20, /* 00000010 "OEMCA " */ 0x02,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x17,0x07,0x20,0x20,0xA5,0x61,0x6B,0xB6, /* 00000020 ".. .ak." */ 0x01,0xA1,0x46,0xED,0xA6,0xA3,0xCA,0xC1, /* 00000028 "..F....." */ 0xC4,0xD1,0x30,0x1E,0x3C,0x00,0x00,0x00, /* 00000030 "..0.<..." */ 0x04,0x00,0x00,0x00,0x00,0x00,0xAA,0x00, /* 00000038 "........" */ 0xC2,0xB3,0x52,0x16,0xA1,0xA7,0xAC,0x46, /* 00000040 "..R....F" */ 0xAF,0x93,0xDD,0x6D,0xEE,0x44,0x66,0x69, /* 00000048 "...m.Dfi" */ 0x01,0x00,0x00,0x00,0x03,0x00,0x26,0x00, /* 00000050 "......&." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x2C,0x00,0x5F,0xAD, /* 00000060 "....,._." */ 0xF2,0xD5,0x47,0xA3,0x3E,0x4D,0x87,0xBC, /* 00000068 "..G.>M.." */ 0xC2,0xCE,0x63,0x02,0x9C,0xC8,0x90,0xC2, /* 00000070 "..c....." */ 0x5E,0x8A,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "^......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x2C,0x00,0xC3,0xAD,0xE7,0xA9,0xD0,0x8C, /* 00000090 ",......." */ 0x9A,0x42,0x89,0x15,0x10,0x94,0x6E,0xBD, /* 00000098 ".B....n." */ 0xE3,0x18,0xC0,0xC2,0x5E,0x8A,0x00,0x00, /* 000000A0 "....^..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x00,0x00,0x00,0x00,0x2C,0x00,0x14,0xC2, /* 000000B8 "....,..." */ 0x88,0xB6,0x81,0x40,0xEB,0x4E,0x8D,0x26, /* 000000C0 "...@.N.&" */ 0x1E,0xB5,0xA3,0xBC,0xF1,0x1A,0xF0,0xC2, /* 000000C8 "........" */ 0x5E,0x8A,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D0 "^......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000D8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E0 "........" */ 0x52,0x00,0xA6,0x58,0x2A,0xDC,0x27,0x59, /* 000000E8 "R..X*.'Y" */ 0x76,0x47,0xB9,0x95,0xD1,0x18,0xA2,0x73, /* 000000F0 "vG.....s" */ 0x35,0xA2,0x01,0x00,0x00,0x00,0x01,0x00, /* 000000F8 "5......." */ 0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000100 "&......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x2C,0x00, /* 00000108 "......,." */ 0x13,0x2D,0x4F,0x2E,0x40,0x62,0xD0,0x4E, /* 00000110 ".-O.@b.N" */ 0xA4,0x01,0xC7,0x23,0xFB,0xDC,0x34,0xE8, /* 00000118 "...#..4." */ 0x90,0x32,0x5E,0x8A,0x00,0x00,0x00,0x00, /* 00000120 ".2^....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000128 "........" */ 0xF8,0x7F,0x71,0x8A,0x00,0x00,0x00,0x00, /* 00000130 "..q....." */ 0x00,0x00,0x2E,0x01,0xD7,0x3E,0xF9,0x0E, /* 00000138 ".....>.." */ 0xAE,0x14,0x5B,0x42,0x92,0x8F,0xB8,0x5A, /* 00000140 "..[B...Z" */ 0x62,0x13,0xB5,0x7E,0x01,0x00,0x00,0x00, /* 00000148 "b..~...." */ 0x06,0x00,0x26,0x00,0x00,0x00,0xE0,0x3F, /* 00000150 "..&....?" */ 0x71,0x8A,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000158 "q......." */ 0x2C,0x00,0x3C,0xCD,0x20,0x21,0x8B,0x84, /* 00000160 ",.<. !.." */ 0x8F,0x4D,0xAB,0xBB,0x4B,0x74,0xCE,0x64, /* 00000168 ".M..Kt.d" */ 0xAC,0x89,0x4C,0xA6,0x5D,0x8A,0x00,0x00, /* 00000170 "..L.]..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000178 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000180 "........" */ 0x00,0x00,0x00,0x00,0x2C,0x00,0xA7,0x35, /* 00000188 "....,..5" */ 0x09,0xEA,0x6B,0x50,0x59,0x41,0xBB,0xBB, /* 00000190 "..kPYA.." */ 0x48,0xDE,0xEE,0xCB,0x6F,0x58,0x34,0xA7, /* 00000198 "H...oX4." */ 0x5D,0x8A,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001A0 "]......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001B0 "........" */ 0x2C,0x00,0xA9,0xBD,0xD1,0x1B,0x9A,0x90, /* 000001B8 ",......." */ 0x14,0x46,0x96,0x99,0x25,0xEC,0x0C,0x27, /* 000001C0 ".F..%..'" */ 0x83,0xF7,0x94,0xA7,0x5D,0x8A,0x00,0x00, /* 000001C8 "....]..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001D0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001D8 "........" */ 0x00,0x00,0x00,0x00,0x2C,0x00,0xE7,0xB4, /* 000001E0 "....,..." */ 0x28,0x5D,0x67,0x38,0xEE,0x4A,0xAA,0x09, /* 000001E8 "(]g8.J.." */ 0x51,0xFC,0x28,0x2C,0x3B,0x22,0x9C,0xA6, /* 000001F0 "Q.(,;".." */ 0x5D,0x8A,0x00,0x00,0x00,0x00,0x00,0x00, /* 000001F8 "]......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000200 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000208 "........" */ 0x2C,0x00,0x02,0xB7,0x64,0x4B,0x2B,0x4D, /* 00000210 ",...dK+M" */ 0xFE,0x4D,0xAC,0x5A,0x0B,0x41,0x10,0xA2, /* 00000218 ".M.Z.A.." */ 0xCA,0x47,0x48,0xA7,0x5D,0x8A,0x00,0x00, /* 00000220 ".GH.]..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000228 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000230 "........" */ 0x00,0x00,0x00,0x00,0x2C,0x00,0xDE,0xFD, /* 00000238 "....,..." */ 0x0E,0x8A,0xD0,0x78,0xF0,0x45,0xAE,0xA0, /* 00000240 "...x.E.." */ 0xC2,0x82,0x45,0xC7,0xE1,0xDB,0x98,0xA7, /* 00000248 "..E....." */ 0x5D,0x8A,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000250 "]......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000258 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000260 "........" */ 0x52,0x00,0x2B,0xF4,0x6C,0x5A,0xB4,0x8B, /* 00000268 "R.+.lZ.." */ 0x2C,0x47,0xA2,0x33,0x5C,0x4D,0xC4,0x03, /* 00000270 ",G.3\M.." */ 0x3D,0xC7,0x01,0x00,0x00,0x00,0x01,0x00, /* 00000278 "=......." */ 0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000280 "&......." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x2C,0x00, /* 00000288 "......,." */ 0x81,0x60,0x46,0xE1,0x62,0x75,0x0F,0x43, /* 00000290 ".`F.bu.C" */ 0x89,0x6B,0xB0,0xE5,0x23,0xDC,0x33,0x5A, /* 00000298 ".k..#.3Z" */ 0x90,0x12,0x5D,0x8A,0x00,0x00,0x00,0x00, /* 000002A0 "..]....." */ 0xE0,0x5F,0x71,0x8A,0x00,0x00,0x00,0x00, /* 000002A8 "._q....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 000002B0 "........" */ }; const unsigned char TemplateRasf[] = { 0x52,0x41,0x53,0x46,0x30,0x00,0x00,0x00, /* 00000000 "RASF0..." */ 0x01,0x31,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".1INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x27,0x05,0x16,0x20,0x00,0x00,0x00,0x00, /* 00000020 "'.. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000028 "........" */ }; const unsigned char TemplateRas2[] = { 0x52,0x41,0x53,0x32,0x38,0x00,0x00,0x00, /* 00000000 "RAS28..." */ 0x01,0x28,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".(INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x06,0x23,0x20,0x00,0x00,0x02,0x00, /* 00000020 "(.# ...." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000028 "........" */ 0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00 /* 00000030 "........" */ }; const unsigned char TemplateRgrt[] = { 0x52,0x47,0x52,0x54,0x50,0x00,0x00,0x00, /* 00000000 "RGRTP..." */ 0x01,0x33,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".3INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x31,0x03,0x21,0x20,0x01,0x00,0x01,0x00, /* 00000020 "1.! ...." */ 0xAA,0x01,0x02,0x03,0x04,0x05,0x06,0x07, /* 00000028 "........" */ 0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F, /* 00000030 "........" */ 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, /* 00000038 "........" */ 0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F, /* 00000040 "........" */ 0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27 /* 00000048 " !"#$%&'" */ }; const unsigned char TemplateRhct[] = { 0x52,0x48,0x43,0x54,0x96,0x00,0x00,0x00, /* 00000000 "RHCT|..." */ 0x01,0x24,0x4F,0x45,0x4D,0x43,0x41,0x00, /* 00000008 "..OEMCA." */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x09,0x22,0x20,0x00,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x80,0x96,0x98,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x02,0x00,0x00,0x00,0x38,0x00,0x00,0x00, /* 00000030 "....8..." */ 0x00,0x00,0x34,0x00,0x01,0x00,0x2B,0x00, /* 00000038 "..4...*." */ 0x72,0x76,0x36,0x34,0x69,0x6D,0x61,0x66, /* 00000040 "rv64imaf" */ 0x64,0x63,0x68,0x5F,0x7A,0x69,0x63,0x73, /* 00000048 "dch_zics" */ 0x72,0x5F,0x7A,0x69,0x66,0x65,0x6E,0x63, /* 00000050 "r_zifenc" */ 0x65,0x69,0x5F,0x7A,0x62,0x61,0x5F,0x7A, /* 00000058 "ei_zba_z" */ 0x62,0x62,0x5F,0x7A,0x62,0x63,0x5F,0x7A, /* 00000060 "bb_zbc_z" */ 0x62,0x73,0x00,0x00,0xFF,0xFF,0x18,0x00, /* 00000068 "bs......" */ 0x01,0x00,0x03,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x38,0x00,0x00,0x00,0x7c,0x00,0x00,0x00, /* 00000078 "........" */ 0x8E,0x00,0x00,0x00,0x01,0x00,0x0A,0x00, /* 00000080 "........" */ 0x01,0x00,0x00,0x06,0x06,0x06,0x02,0x00, /* 00000088 "........" */ 0x08,0x00,0x01,0x00,0x00,0x02 /* 00000090 "........" */ }; const unsigned char TemplateRimt[] = { 0x52,0x49,0x4d,0x54,0x80,0x00,0x00,0x00, /* 00000000 "RIMT...." */ 0x01,0xe1,0x42,0x4f,0x43,0x48,0x53,0x20, /* 00000008 ".pBOCHS " */ 0x42,0x58,0x50,0x43,0x20,0x20,0x20,0x20, /* 00000010 "BXPC " */ 0x01,0x00,0x00,0x00,0x42,0x58,0x50,0x43, /* 00000018 "....INTL" */ 0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00, /* 00000020 "..$ ...." */ 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "0......." */ 0x00,0x01,0x28,0x00,0x00,0x00,0x00,0x00, /* 00000030 "..(....." */ 0x52,0x53,0x43,0x56,0x30,0x30,0x30,0x34, /* 00000038 "RSCV0004" */ 0x00,0x00,0x01,0x03,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x00, /* 00000050 "......(." */ 0x01,0x01,0x28,0x00,0x00,0x00,0x01,0x00, /* 00000058 "..(....." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x14,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000078 "0......." */ }; const unsigned char TemplateRsdp[] = { 0x52,0x53,0x44,0x20,0x50,0x54,0x52,0x20, /* 00000000 "RSD PTR " */ 0x43,0x49,0x4E,0x54,0x45,0x4C,0x20,0x02, /* 00000008 "CINTEL ." */ 0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x00, /* 00000010 "....$..." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000018 "........" */ 0xDC,0x00,0x00,0x00 /* 00000020 "...." */ }; const unsigned char TemplateRsdt[] = { 0x52,0x53,0x44,0x54,0x44,0x00,0x00,0x00, /* 00000000 "RSDTD..." */ 0x01,0xB1,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x10,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x20,0x00,0x00,0x00,0x30,0x00,0x00,0x00, /* 00000028 " ...0..." */ 0x40,0x00,0x00,0x00,0x50,0x00,0x00,0x00, /* 00000030 "@...P..." */ 0x60,0x00,0x00,0x00,0x70,0x00,0x00,0x00, /* 00000038 "`...p..." */ 0x80,0x00,0x00,0x00 /* 00000040 "...." */ }; const unsigned char TemplateS3pt[] = { 0x53,0x33,0x50,0x54,0x34,0x00,0x00,0x00, /* 00000000 "S3PT4..." */ 0x00,0x00,0x18,0x01,0x00,0x00,0x00,0x00, /* 00000008 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000010 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000018 "........" */ 0x01,0x00,0x14,0x01,0x00,0x00,0x00,0x00, /* 00000020 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00 /* 00000030 "...." */ }; const unsigned char TemplateSbst[] = { 0x53,0x42,0x53,0x54,0x30,0x00,0x00,0x00, /* 00000000 "SBST0..." */ 0x01,0x06,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000028 "........" */ }; const unsigned char TemplateSdei[] = { 0x53,0x44,0x45,0x49,0x3e,0x00,0x00,0x00, /* 00000000 "SDEI>..." */ 0x01,0x59,0x41,0x52,0x4d,0x20,0x20,0x20, /* 00000008 ".mARM " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x30,0x09,0x16,0x20 /* 00000028 "0.. " */ }; const unsigned char TemplateSdev[] = { 0x53,0x44,0x45,0x56,0x89,0x00,0x00,0x00, /* 00000000 "SDEV...." */ 0x01,0x6E,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".nINTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x05,0x01,0x21,0x20,0x00,0x03,0x41,0x00, /* 00000020 "..! ..A." */ 0x23,0x00,0x16,0x00,0x39,0x00,0x08,0x00, /* 00000028 "#...9..." */ 0x10,0x00,0x13,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x01,0x00,0x03,0x02,0x05,0x04,0x07,0x06, /* 00000038 "........" */ 0x09,0x08,0x0A,0x0B,0x0C,0x0D,0x0E,0x5C, /* 00000040 ".......\" */ 0x5C,0x5F,0x53,0x42,0x5F,0x2E,0x50,0x43, /* 00000048 "\_SB_.PC" */ 0x49,0x30,0x2E,0x55,0x53,0x42,0x31,0x2E, /* 00000050 "I0.USB1." */ 0x53,0x55,0x42,0x31,0x00,0x00,0x11,0x22, /* 00000058 "SUB1..."" */ 0x33,0x44,0x55,0x66,0x77,0x01,0x01,0x24, /* 00000060 "3DUfw..$" */ 0x00,0x10,0x00,0x20,0x00,0x10,0x00,0x04, /* 00000068 "... ...." */ 0x00,0x14,0x00,0x10,0x00,0x11,0x22,0x33, /* 00000070 "......"3" */ 0x44,0xEE,0xDD,0xCC,0xBB,0xAA,0x55,0x66, /* 00000078 "D.....Uf" */ 0x77,0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE, /* 00000080 "w......." */ 0xFF /* 00000088 "." */ }; const unsigned char TemplateSlic[] = { 0x53,0x4C,0x49,0x43,0x76,0x01,0x00,0x00, /* 00000000 "SLICv..." */ 0x01,0x07,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x11,0x02,0x11,0x20,0x00,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x9C,0x00,0x00,0x00,0x06,0x02,0x00,0x00, /* 00000028 "........" */ 0x00,0x24,0x00,0x00,0x52,0x53,0x41,0x31, /* 00000030 ".$..RSA1" */ 0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000090 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000098 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B8 "........" */ 0x01,0x00,0x00,0x00,0xB6,0x00,0x00,0x00, /* 000000C0 "........" */ 0x00,0x00,0x02,0x00,0x49,0x4E,0x54,0x45, /* 000000C8 "....INTE" */ 0x4C,0x20,0x54,0x45,0x4D,0x50,0x4C,0x41, /* 000000D0 "L TEMPLA" */ 0x54,0x45,0x57,0x49,0x4E,0x44,0x4F,0x57, /* 000000D8 "TEWINDOW" */ 0x53,0x20,0x01,0x00,0x02,0x00,0x00,0x00, /* 000000E0 "S ......" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000E8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000F8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000100 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000108 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000110 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000118 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000120 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000128 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000130 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000138 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000140 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000148 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000150 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000158 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000160 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000168 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00 /* 00000170 "......" */ }; const unsigned char TemplateSlit[] = { 0x53,0x4C,0x49,0x54,0xBC,0x01,0x00,0x00, /* 00000000 "SLIT...." */ 0x01,0x00,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x16,0x03,0x11,0x20,0x14,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00,0x0A,0x10,0x16,0x17, /* 00000028 "........" */ 0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F, /* 00000030 "........" */ 0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27, /* 00000038 " !"#$%&'" */ 0x10,0x0A,0x15,0x16,0x17,0x18,0x19,0x1A, /* 00000040 "........" */ 0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22, /* 00000048 "..... !"" */ 0x23,0x24,0x25,0x26,0x16,0x15,0x0A,0x10, /* 00000050 "#$%&...." */ 0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D, /* 00000058 "........" */ 0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25, /* 00000060 ".. !"#$%" */ 0x17,0x16,0x10,0x0A,0x15,0x16,0x17,0x18, /* 00000068 "........" */ 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20, /* 00000070 "....... " */ 0x21,0x22,0x23,0x24,0x18,0x17,0x16,0x15, /* 00000078 "!"#$...." */ 0x0A,0x10,0x16,0x17,0x18,0x19,0x1A,0x1B, /* 00000080 "........" */ 0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23, /* 00000088 ".... !"#" */ 0x19,0x18,0x17,0x16,0x10,0x0A,0x15,0x16, /* 00000090 "........" */ 0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E, /* 00000098 "........" */ 0x1F,0x20,0x21,0x22,0x1A,0x19,0x18,0x17, /* 000000A0 ". !"...." */ 0x16,0x15,0x0A,0x10,0x16,0x17,0x18,0x19, /* 000000A8 "........" */ 0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21, /* 000000B0 "...... !" */ 0x1B,0x1A,0x19,0x18,0x17,0x16,0x10,0x0A, /* 000000B8 "........" */ 0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C, /* 000000C0 "........" */ 0x1D,0x1E,0x1F,0x20,0x1C,0x1B,0x1A,0x19, /* 000000C8 "... ...." */ 0x18,0x17,0x16,0x15,0x0A,0x10,0x16,0x17, /* 000000D0 "........" */ 0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F, /* 000000D8 "........" */ 0x1D,0x1C,0x1B,0x1A,0x19,0x18,0x17,0x16, /* 000000E0 "........" */ 0x10,0x0A,0x15,0x16,0x17,0x18,0x19,0x1A, /* 000000E8 "........" */ 0x1B,0x1C,0x1D,0x1E,0x1E,0x1D,0x1C,0x1B, /* 000000F0 "........" */ 0x1A,0x19,0x18,0x17,0x16,0x15,0x0A,0x10, /* 000000F8 "........" */ 0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D, /* 00000100 "........" */ 0x1F,0x1E,0x1D,0x1C,0x1B,0x1A,0x19,0x18, /* 00000108 "........" */ 0x17,0x16,0x10,0x0A,0x15,0x16,0x17,0x18, /* 00000110 "........" */ 0x19,0x1A,0x1B,0x1C,0x20,0x1F,0x1E,0x1D, /* 00000118 ".... ..." */ 0x1C,0x1B,0x1A,0x19,0x18,0x17,0x16,0x15, /* 00000120 "........" */ 0x0A,0x10,0x16,0x17,0x18,0x19,0x1A,0x1B, /* 00000128 "........" */ 0x21,0x20,0x1F,0x1E,0x1D,0x1C,0x1B,0x1A, /* 00000130 "! ......" */ 0x19,0x18,0x17,0x16,0x10,0x0A,0x15,0x16, /* 00000138 "........" */ 0x17,0x18,0x19,0x1A,0x22,0x21,0x20,0x1F, /* 00000140 "...."! ." */ 0x1E,0x1D,0x1C,0x1B,0x1A,0x19,0x18,0x17, /* 00000148 "........" */ 0x16,0x15,0x0A,0x10,0x16,0x17,0x18,0x19, /* 00000150 "........" */ 0x23,0x22,0x21,0x20,0x1F,0x1E,0x1D,0x1C, /* 00000158 "#"! ...." */ 0x1B,0x1A,0x19,0x18,0x17,0x16,0x10,0x0A, /* 00000160 "........" */ 0x15,0x16,0x17,0x18,0x24,0x23,0x22,0x21, /* 00000168 "....$#"!" */ 0x20,0x1F,0x1E,0x1D,0x1C,0x1B,0x1A,0x19, /* 00000170 " ......." */ 0x18,0x17,0x16,0x15,0x0A,0x10,0x16,0x17, /* 00000178 "........" */ 0x25,0x24,0x23,0x22,0x21,0x20,0x1F,0x1E, /* 00000180 "%$#"! .." */ 0x1D,0x1C,0x1B,0x1A,0x19,0x18,0x17,0x16, /* 00000188 "........" */ 0x10,0x0A,0x15,0x16,0x26,0x25,0x24,0x23, /* 00000190 "....&%$#" */ 0x22,0x21,0x20,0x1F,0x1E,0x1D,0x1C,0x1B, /* 00000198 ""! ....." */ 0x1A,0x19,0x18,0x17,0x16,0x15,0x0A,0x10, /* 000001A0 "........" */ 0x27,0x26,0x25,0x24,0x23,0x22,0x21,0x20, /* 000001A8 "'&%$#"! " */ 0x1F,0x1E,0x1D,0x1C,0x1B,0x1A,0x19,0x18, /* 000001B0 "........" */ 0x17,0x16,0x10,0x0A /* 000001B8 "...." */ }; const unsigned char TemplateSpcr[] = { 0x53,0x50,0x43,0x52,0x5A,0x00,0x00,0x00, /* 00000000 "SPCRZ..." */ 0x04,0x4E,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x02,0x00,0x58,0x00, /* 00000050 "......X." */ 0x2E,0x00 /* 00000058 ".." */ }; const unsigned char TemplateSpmi[] = { 0x53,0x50,0x4D,0x49,0x41,0x00,0x00,0x00, /* 00000000 "SPMIA..." */ 0x04,0x00,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x14,0x01,0x14,0x20,0x00,0x01,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x08,0x00,0x01,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x00 /* 00000040 "." */ }; const unsigned char TemplateSrat[] = { 0x53,0x52,0x41,0x54,0xD2,0x00,0x00,0x00, /* 00000000 "SRAT...." */ 0x03,0xB6,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x29,0x06,0x18,0x20,0x01,0x00,0x00,0x00, /* 00000020 ").. ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x10,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x01,0x28,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 ".(......" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0xFC,0x09,0x00,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x02,0x18,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000078 "........" */ 0x03,0x12,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000080 "........" */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 00000088 "........" */ 0x00,0x00,0x04,0x0C,0x00,0x00,0x00,0x00, /* 00000090 "........" */ 0x00,0x00,0x01,0x00,0x00,0x00,0x05,0x20, /* 00000098 "....... " */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000A8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000B0 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x14, /* 000000B8 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 000000C0 "........" */ 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, /* 000000C8 "........" */ 0x00,0x00 /* 000000D0 ".." */ }; const unsigned char TemplateStao[] = { 0x53,0x54,0x41,0x4F,0x7E,0x00,0x00,0x00, /* 00000000 "STAO~..." */ 0x01,0x7F,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x10,0x04,0x15,0x20,0x01,0x5C,0x5F,0x53, /* 00000020 "... .\_S" */ 0x42,0x30,0x2E,0x42,0x55,0x53,0x30,0x2E, /* 00000028 "B0.BUS0." */ 0x44,0x45,0x56,0x31,0x00,0x5C,0x5F,0x53, /* 00000030 "DEV1.\_S" */ 0x42,0x30,0x2E,0x42,0x55,0x53,0x30,0x2E, /* 00000038 "B0.BUS0." */ 0x44,0x45,0x56,0x32,0x00,0x5C,0x5F,0x53, /* 00000040 "DEV2.\_S" */ 0x42,0x30,0x2E,0x42,0x55,0x53,0x31,0x2E, /* 00000048 "B0.BUS1." */ 0x44,0x45,0x56,0x31,0x2E,0x44,0x45,0x56, /* 00000050 "DEV1.DEV" */ 0x32,0x00,0x5C,0x5F,0x53,0x42,0x30,0x2E, /* 00000058 "2.\_SB0." */ 0x42,0x55,0x53,0x31,0x2E,0x44,0x45,0x56, /* 00000060 "BUS1.DEV" */ 0x32,0x2E,0x44,0x45,0x56,0x32,0x00,0x5C, /* 00000068 "2.DEV2.\" */ 0x55,0x53,0x42,0x31,0x2E,0x48,0x55,0x42, /* 00000070 "USB1.HUB" */ 0x31,0x2E,0x50,0x54,0x31,0x00 /* 00000078 "1.PT1." */ }; const unsigned char TemplateSvkl[] = { 0x53,0x56,0x4B,0x4C,0x48,0x00,0x00,0x00, /* 00000000 "SVKLH..." */ 0x04,0xDB,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x31,0x03,0x21,0x20,0x02,0x00,0x00,0x00, /* 00000020 "1.! ...." */ 0x00,0x00,0x00,0x00,0x21,0x43,0xAA,0xAA, /* 00000028 "....!C.." */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01, /* 00000030 "....gE#." */ 0x00,0x00,0x00,0x00,0x21,0x43,0xBB,0xBB, /* 00000038 "....!C.." */ 0xEF,0xCD,0xAB,0x89,0x67,0x45,0x23,0x01 /* 00000040 "....gE#." */ }; const unsigned char TemplateTcpa[] = { 0x54,0x43,0x50,0x41,0x64,0x00,0x00,0x00, /* 00000000 "TCPAd..." */ 0x02,0xFF,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x80,0x31,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 ".1..INTL" */ 0x19,0x06,0x15,0x20,0x01,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x11,0x00,0xFF,0xEE,0xDD,0xCC,0xBB,0xAA, /* 00000030 "........" */ 0x02,0x01,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0x01,0x20,0x00,0x03, /* 00000040 "..... .." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x00,0x01,0x20,0x00,0x03, /* 00000050 "..... .." */ 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "........" */ 0x01,0x01,0x01,0x01 /* 00000060 "...." */ }; const unsigned char TemplateTdel[] = { 0x54,0x44,0x45,0x4C,0x38,0x00,0x00,0x00, /* 00000000 "TDEL8..." */ 0x04,0x1C,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x30,0x09,0x21,0x20,0x00,0x00,0x00,0x00, /* 00000020 "0.! ...." */ 0xEF,0xCD,0xAB,0x78,0x56,0x34,0x12,0x00, /* 00000028 "...xV4.." */ 0x78,0x56,0x34,0x12,0xEF,0xCD,0xAB,0x00 /* 00000030 "xV4....." */ }; const unsigned char TemplateTpm2[] = { 0x54,0x50,0x4D,0x32,0x4C,0x00,0x00,0x00, /* 00000000 "TPM2L..." */ 0x04,0xCB,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x13,0x12,0x18,0x20,0x01,0x00,0x00,0x00, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x08,0x00,0x00,0x00,0x01,0x02,0x03,0x04, /* 00000030 "........" */ 0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C, /* 00000038 "........" */ 0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "........" */ 0x00,0x00,0x00,0x00 /* 00000048 "...." */ }; const unsigned char TemplateUefi[] = { 0x55,0x45,0x46,0x49,0x36,0x00,0x00,0x00, /* 00000000 "UEFI6..." */ 0x01,0x9B,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x01,0x02,0x03, /* 00000020 "(.. ...." */ 0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B, /* 00000028 "........" */ 0x0C,0x0D,0x0E,0x0F,0x00,0x00 /* 00000030 "......" */ }; const unsigned char TemplateViot[] = { 0x56,0x49,0x4F,0x54,0x80,0x00,0x00,0x00, /* 00000000 "VIOT...." */ 0x00,0x52,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".RINTEL " */ 0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65, /* 00000010 "Template" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x05,0x01,0x21,0x20,0x04,0x00,0x30,0x00, /* 00000020 "..! ..0." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x01,0x00,0x18,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF, /* 00000038 "........" */ 0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000040 "`......." */ 0x02,0x00,0x18,0x00,0x00,0x00,0x01,0x00, /* 00000048 "........" */ 0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x00, /* 00000050 "........" */ 0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000058 "p......." */ 0x03,0x00,0x10,0x00,0x00,0x00,0x00,0x00, /* 00000060 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000068 "........" */ 0x04,0x00,0x10,0x00,0x00,0x00,0x00,0x00, /* 00000070 "........" */ 0x00,0x00,0x00,0x1D,0x00,0x00,0x00,0x00 /* 00000078 "........" */ }; const unsigned char TemplateWaet[] = { 0x57,0x41,0x45,0x54,0x28,0x00,0x00,0x00, /* 00000000 "WAET(..." */ 0x01,0x19,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00 /* 00000020 "(.. ...." */ }; const unsigned char TemplateWdat[] = { 0x57,0x44,0x41,0x54,0x5C,0x00,0x00,0x00, /* 00000000 "WDAT\..." */ 0x01,0xE3,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x20,0x00,0x00,0x00, /* 00000020 "(.. ..." */ 0xFF,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00, /* 00000028 "........" */ 0x58,0x02,0x00,0x00,0xFF,0x03,0x00,0x00, /* 00000030 "X......." */ 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000038 "........" */ 0x0E,0x00,0x00,0x00,0x01,0x02,0x00,0x00, /* 00000040 "........" */ 0x01,0x10,0x00,0x02,0x60,0x04,0x00,0x00, /* 00000048 "....`..." */ 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, /* 00000050 "........" */ 0x01,0x00,0x00,0x00 /* 00000058 "...." */ }; const unsigned char TemplateWddt[] = { 0x57,0x44,0x44,0x54,0x40,0x00,0x00,0x00, /* 00000000 "WDDT@..." */ 0x01,0x00,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x00,0x01,0xFF,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 "........" */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 /* 00000038 "........" */ }; const unsigned char TemplateWdrt[] = { 0x57,0x44,0x52,0x54,0x47,0x00,0x00,0x00, /* 00000000 "WDRTG..." */ 0x01,0xB0,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x00,0x20,0x00,0x00, /* 00000020 "(.. . .." */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000028 "........" */ 0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00, /* 00000030 ". ......" */ 0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF, /* 00000038 "........" */ 0x00,0x00,0x00,0x00,0xFF,0xFF,0x00 /* 00000040 "......." */ }; const unsigned char TemplateWpbt[] = { 0x57,0x50,0x42,0x54,0x98,0x00,0x00,0x00, /* 00000000 "WPBT...." */ 0x01,0x83,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x10,0x04,0x15,0x20,0x78,0x56,0x34,0x12, /* 00000020 "... xV4." */ 0x00,0x00,0x00,0xBB,0x00,0x00,0x00,0xAA, /* 00000028 "........" */ 0x33,0x88,0x64,0x00,0x34,0x00,0x20,0x00, /* 00000030 "3.d.4. ." */ 0x73,0x00,0x63,0x00,0x6F,0x00,0x72,0x00, /* 00000038 "s.c.o.r." */ 0x65,0x00,0x20,0x00,0x61,0x00,0x6E,0x00, /* 00000040 "e. .a.n." */ 0x64,0x00,0x20,0x00,0x37,0x00,0x20,0x00, /* 00000048 "d. .7. ." */ 0x79,0x00,0x65,0x00,0x61,0x00,0x72,0x00, /* 00000050 "y.e.a.r." */ 0x73,0x00,0x20,0x00,0x61,0x00,0x67,0x00, /* 00000058 "s. .a.g." */ 0x6F,0x00,0x20,0x00,0x6F,0x00,0x75,0x00, /* 00000060 "o. .o.u." */ 0x72,0x00,0x20,0x00,0x66,0x00,0x61,0x00, /* 00000068 "r. .f.a." */ 0x74,0x00,0x68,0x00,0x65,0x00,0x72,0x00, /* 00000070 "t.h.e.r." */ 0x73,0x00,0x20,0x00,0x62,0x00,0x72,0x00, /* 00000078 "s. .b.r." */ 0x6F,0x00,0x75,0x00,0x67,0x00,0x68,0x00, /* 00000080 "o.u.g.h." */ 0x74,0x00,0x20,0x00,0x66,0x00,0x6F,0x00, /* 00000088 "t. .f.o." */ 0x72,0x00,0x74,0x00,0x68,0x00,0x00,0x00 /* 00000090 "r.t.h..." */ }; const unsigned char TemplateWsmt[] = { 0x57,0x53,0x4D,0x54,0x28,0x00,0x00,0x00, /* 00000000 "WSMT(..." */ 0x00,0x08,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x00,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x19,0x01,0x17,0x20,0x05,0x00,0x00,0x00 /* 00000020 "... ...." */ }; const unsigned char TemplateXenv[] = { 0x58,0x45,0x4E,0x56,0x39,0x00,0x00,0x00, /* 00000000 "XENV9..." */ 0x01,0x3A,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 ".:INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x10,0x04,0x15,0x20,0x00,0x00,0x00,0x10, /* 00000020 "... ...." */ 0x00,0x00,0x00,0x0A,0x00,0x20,0x00,0x00, /* 00000028 "..... .." */ 0x00,0x00,0x00,0x0B,0x25,0x00,0xBB,0xAA, /* 00000030 "....%..." */ 0x03 /* 00000038 "." */ }; const unsigned char TemplateXsdt[] = { 0x58,0x53,0x44,0x54,0x64,0x00,0x00,0x00, /* 00000000 "XSDTd..." */ 0x01,0x8B,0x49,0x4E,0x54,0x45,0x4C,0x20, /* 00000008 "..INTEL " */ 0x54,0x45,0x4D,0x50,0x4C,0x41,0x54,0x45, /* 00000010 "TEMPLATE" */ 0x01,0x00,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "....INTL" */ 0x28,0x05,0x10,0x20,0x10,0x00,0x00,0x00, /* 00000020 "(.. ...." */ 0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00, /* 00000028 ".... ..." */ 0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00, /* 00000030 "....0..." */ 0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00, /* 00000038 "....@..." */ 0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x00, /* 00000040 "....P..." */ 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00, /* 00000048 "....`..." */ 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x00, /* 00000050 "....p..." */ 0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00, /* 00000058 "........" */ 0x00,0x00,0x00,0x00 /* 00000060 "...." */ }; #endif acpica-unix-20250404/source/compiler/preprocess.h0000775000175000017500000002023614773714132021214 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: preprocess.h - header for iASL Preprocessor * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define __PREPROCESS_H__ #ifndef _PREPROCESS #define _PREPROCESS #undef PR_EXTERN #ifdef _DECLARE_PR_GLOBALS #define PR_EXTERN #define PR_INIT_GLOBAL(a,b) (a)=(b) #else #define PR_EXTERN extern #define PR_INIT_GLOBAL(a,b) (a) #endif /* * Configuration */ #define PR_MAX_MACRO_ARGS 32 /* Max number of macro args */ #define PR_MAX_ARG_INSTANCES 24 /* Max instances of any one arg */ #define PR_LINES_PER_BLOCK 4096 /* Max input source lines per block */ /* * Local defines and macros */ #define PR_TOKEN_SEPARATORS " ,(){}\t\n" #define PR_MACRO_SEPARATORS " ,(){}~!*/%+-<>=&^|\"\t\n" #define PR_MACRO_ARGUMENTS " ,\t\n" #define PR_EXPR_SEPARATORS " ,(){}~!*/%+-<>=&^|\"\t\n" #define PR_PREFIX_ID "Pr(%.4u) - " /* Used for debug output */ #define THIS_TOKEN_OFFSET(t) ((AslGbl_MainTokenBuffer - t) + 1) /* * Preprocessor structures */ typedef struct pr_macro_arg { char *Name; UINT32 Offset[PR_MAX_ARG_INSTANCES]; UINT16 UseCount; } PR_MACRO_ARG; typedef struct pr_define_info { struct pr_define_info *Previous; struct pr_define_info *Next; char *Identifier; char *Replacement; char *Body; /* Macro body */ PR_MACRO_ARG *Args; /* Macro arg list */ UINT16 ArgCount; /* Macro arg count */ BOOLEAN Persist; /* Keep for entire compiler run */ } PR_DEFINE_INFO; typedef struct pr_directive_info { char *Name; /* Directive name */ UINT8 ArgCount; /* Required # of args */ } PR_DIRECTIVE_INFO; typedef struct pr_operator_info { char *Op; } PR_OPERATOR_INFO; typedef struct pr_file_node { struct pr_file_node *Next; FILE *File; char *Filename; UINT32 CurrentLineNumber; } PR_FILE_NODE; #define MAX_ARGUMENT_LENGTH 24 typedef struct directive_info { struct directive_info *Next; char Argument[MAX_ARGUMENT_LENGTH]; int Directive; BOOLEAN IgnoringThisCodeBlock; } DIRECTIVE_INFO; /* * Globals */ PR_EXTERN char PR_INIT_GLOBAL (*AslGbl_MainTokenBuffer, NULL); /* [ASL_LINE_BUFFER_SIZE]; */ PR_EXTERN char PR_INIT_GLOBAL (*AslGbl_MacroTokenBuffer, NULL); /* [ASL_LINE_BUFFER_SIZE]; */ PR_EXTERN char PR_INIT_GLOBAL (*AslGbl_MacroTokenReplaceBuffer, NULL); /* [ASL_LINE_BUFFER_SIZE]; */ PR_EXTERN char PR_INIT_GLOBAL (*AslGbl_ExpressionTokenBuffer, NULL); /* [ASL_LINE_BUFFER_SIZE]; */ PR_EXTERN UINT32 AslGbl_PreprocessorLineNumber; PR_EXTERN int AslGbl_IfDepth; PR_EXTERN PR_FILE_NODE *AslGbl_InputFileList; PR_EXTERN BOOLEAN PR_INIT_GLOBAL (AslGbl_PreprocessorError, FALSE); PR_EXTERN BOOLEAN PR_INIT_GLOBAL (AslGbl_IgnoringThisCodeBlock, FALSE); PR_EXTERN PR_DEFINE_INFO PR_INIT_GLOBAL (*AslGbl_DefineList, NULL); PR_EXTERN DIRECTIVE_INFO PR_INIT_GLOBAL (*AslGbl_DirectiveStack, NULL); #if 0 /* TBD for macros */ PR_EXTERN char PR_INIT_GLOBAL (*XXXEvalBuffer, NULL); /* [ASL_LINE_BUFFER_SIZE]; */ #endif /* * prscan - Preprocessor entry */ void PrInitializePreprocessor ( void); void PrInitializeGlobals ( void); void PrTerminatePreprocessor ( void); void PrDoPreprocess ( void); UINT64 PrIsDefined ( char *Identifier); UINT64 PrResolveDefine ( char *Identifier); int PrInitLexer ( char *String); void PrTerminateLexer ( void); /* * prmacros - Support for #defines and macros */ void PrDumpPredefinedNames ( void); PR_DEFINE_INFO * PrAddDefine ( char *Token, char *Token2, BOOLEAN Persist); void PrRemoveDefine ( char *DefineName); PR_DEFINE_INFO * PrMatchDefine ( char *MatchString); void PrAddMacro ( char *Name, char **Next); void PrDoMacroInvocation ( char *TokenBuffer, char *MacroStart, PR_DEFINE_INFO *DefineInfo, char **Next); /* * prexpress - #if expression support */ ACPI_STATUS PrResolveIntegerExpression ( char *Line, UINT64 *ReturnValue); char * PrPrioritizeExpression ( char *OriginalLine); /* * prparser - lex/yacc expression parser */ UINT64 PrEvaluateExpression ( char *ExprString); /* * prutils - Preprocessor utilities */ char * PrGetNextToken ( char *Buffer, char *MatchString, char **Next); void PrError ( UINT8 Level, UINT16 MessageId, UINT32 Column); void PrReplaceResizeSubstring( PR_MACRO_ARG *Args, UINT32 Diff1, UINT32 Diff2, UINT32 i, char *Token); char * PrReplaceData ( char *Buffer, UINT32 LengthToRemove, char *BufferToAdd, UINT32 LengthToAdd); FILE * PrOpenIncludeFile ( char *Filename, char *OpenMode, char **FullPathname); FILE * PrOpenIncludeWithPrefix ( char *PrefixDir, char *Filename, char *OpenMode, char **FullPathname); void PrPushInputFileStack ( FILE *InputFile, char *Filename); BOOLEAN PrPopInputFileStack ( void); #endif acpica-unix-20250404/source/compiler/aslstubs.c0000775000175000017500000001622414773714131020663 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslstubs - Stubs used to link to Aml interpreter * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acdispat.h" #include "actables.h" #include "acevents.h" #include "acinterp.h" #include "acnamesp.h" #include "acparser.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslstubs") /* * Stubs to simplify linkage to the ACPICA core subsystem. * Things like Events, Global Lock, etc. are not used * by the compiler, so they are stubbed out here. */ ACPI_STATUS AcpiNsInitializeObjects ( void) { return (AE_OK); } ACPI_STATUS AcpiPsExecuteTable ( ACPI_EVALUATE_INFO *Info) { return (AE_OK); } ACPI_STATUS AcpiHwReadPort ( ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width) { return (AE_OK); } ACPI_STATUS AcpiHwWritePort ( ACPI_IO_ADDRESS Address, UINT32 Value, UINT32 Width) { return (AE_OK); } ACPI_STATUS AcpiDsMethodError ( ACPI_STATUS Status, ACPI_WALK_STATE *WalkState) { return (Status); } ACPI_STATUS AcpiDsMethodDataGetValue ( UINT8 Type, UINT32 Index, ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT **DestDesc) { return (AE_OK); } ACPI_STATUS AcpiDsMethodDataGetNode ( UINT8 Type, UINT32 Index, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE **Node) { return (AE_OK); } ACPI_STATUS AcpiDsStoreObjectToLocal ( UINT8 Type, UINT32 Index, ACPI_OPERAND_OBJECT *SrcDesc, ACPI_WALK_STATE *WalkState) { return (AE_OK); } ACPI_STATUS AcpiEvInstallRegionHandlers ( void) { return (AE_OK); } ACPI_STATUS AcpiEvQueueNotifyRequest ( ACPI_NAMESPACE_NODE *Node, UINT32 NotifyValue) { return (AE_OK); } BOOLEAN AcpiEvIsNotifyObject ( ACPI_NAMESPACE_NODE *Node) { return (FALSE); } #if (!ACPI_REDUCED_HARDWARE) ACPI_STATUS AcpiEvDeleteGpeBlock ( ACPI_GPE_BLOCK_INFO *GpeBlock) { return (AE_OK); } void AcpiEvUpdateGpes ( ACPI_OWNER_ID TableOwnerId) { return; } ACPI_STATUS AcpiEvAcquireGlobalLock ( UINT16 Timeout) { return (AE_OK); } ACPI_STATUS AcpiEvReleaseGlobalLock ( void) { return (AE_OK); } #endif /* !ACPI_REDUCED_HARDWARE */ ACPI_STATUS AcpiEvInitializeRegion ( ACPI_OPERAND_OBJECT *RegionObj) { return (AE_OK); } ACPI_STATUS AcpiExReadDataFromField ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **RetBufferDesc) { return (AE_SUPPORT); } ACPI_STATUS AcpiExWriteDataToField ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT **ResultDesc) { return (AE_SUPPORT); } ACPI_STATUS AcpiExLoadTableOp ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT **ReturnDesc) { return (AE_SUPPORT); } ACPI_STATUS AcpiExUnloadTable ( ACPI_OPERAND_OBJECT *DdbHandle) { return (AE_SUPPORT); } ACPI_STATUS AcpiExLoadOp ( ACPI_OPERAND_OBJECT *ObjDesc, ACPI_OPERAND_OBJECT *Target, ACPI_WALK_STATE *WalkState) { return (AE_SUPPORT); } void AcpiExDoDebugObject ( ACPI_OPERAND_OBJECT *SourceDesc, UINT32 Level, UINT32 Index) { return; } void AcpiExStartTraceMethod ( ACPI_NAMESPACE_NODE *MethodNode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { return; } void AcpiExStopTraceMethod ( ACPI_NAMESPACE_NODE *MethodNode, ACPI_OPERAND_OBJECT *ObjDesc, ACPI_WALK_STATE *WalkState) { return; } void AcpiExStartTraceOpcode ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { return; } void AcpiExStopTraceOpcode ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { return; } void AcpiExTracePoint ( ACPI_TRACE_EVENT_TYPE Type, BOOLEAN Begin, UINT8 *Aml, char *Pathname) { return; } ACPI_STATUS AcpiTbFindTable ( char *Signature, char *OemId, char *OemTableId, UINT32 *TableIndex) { return (AE_SUPPORT); } ACPI_STATUS AcpiNsLoadTable ( UINT32 TableIndex, ACPI_NAMESPACE_NODE *Node) { return (AE_NOT_IMPLEMENTED); } ACPI_STATUS AcpiDsRestartControlMethod ( ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ReturnDesc) { return (AE_OK); } void AcpiDsTerminateControlMethod ( ACPI_OPERAND_OBJECT *MethodDesc, ACPI_WALK_STATE *WalkState) { return; } ACPI_STATUS AcpiDsCallControlMethod ( ACPI_THREAD_STATE *Thread, ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op) { return (AE_OK); } ACPI_STATUS AcpiDsMethodDataInitArgs ( ACPI_OPERAND_OBJECT **Params, UINT32 MaxParamCount, ACPI_WALK_STATE *WalkState) { return (AE_OK); } acpica-unix-20250404/source/compiler/aslmethod.c0000775000175000017500000007371314773714131021011 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslmethod.c - Control method analysis walk * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acnamesp.h" #include "acparser.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslmethod") /* Local prototypes */ static void MtCheckNamedObjectInMethod ( ACPI_PARSE_OBJECT *Op, ASL_METHOD_INFO *MethodInfo); static void MtCheckStaticOperationRegionInMethod ( ACPI_PARSE_OBJECT *Op); /******************************************************************************* * * FUNCTION: MtMethodAnalysisWalkBegin * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Descending callback for the analysis walk. Check methods for: * 1) Initialized local variables * 2) Valid arguments * 3) Return types * ******************************************************************************/ ACPI_STATUS MtMethodAnalysisWalkBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ASL_ANALYSIS_WALK_INFO *WalkInfo = (ASL_ANALYSIS_WALK_INFO *) Context; ASL_METHOD_INFO *MethodInfo = WalkInfo->MethodStack; ACPI_PARSE_OBJECT *Next; UINT32 RegisterNumber; UINT32 i; char LocalName[] = "Local0"; char ArgName[] = "Arg0"; ACPI_PARSE_OBJECT *ArgNode; ACPI_PARSE_OBJECT *NextType; UINT8 ActualArgs = 0; BOOLEAN HidExists; BOOLEAN AdrExists; BOOLEAN PrsExists; BOOLEAN CrsExists; BOOLEAN SrsExists; BOOLEAN DisExists; /* Build cross-reference output file if requested */ if (AslGbl_CrossReferenceOutput) { OtXrefWalkPart1 (Op, Level, MethodInfo); } switch (Op->Asl.ParseOpcode) { case PARSEOP_METHOD: AslGbl_TotalMethods++; /* Create and init method info */ MethodInfo = UtLocalCalloc (sizeof (ASL_METHOD_INFO)); MethodInfo->Next = WalkInfo->MethodStack; MethodInfo->Op = Op; WalkInfo->MethodStack = MethodInfo; /* * Special handling for _PSx methods. Dependency rules (same scope): * * 1) _PS0 - One of these must exist: _PS1, _PS2, _PS3 * 2) _PS1/_PS2/_PS3: A _PS0 must exist */ if (ACPI_COMPARE_NAMESEG (METHOD_NAME__PS0, Op->Asl.NameSeg)) { /* For _PS0, one of _PS1/_PS2/_PS3 must exist */ if ((!ApFindNameInScope (METHOD_NAME__PS1, Op)) && (!ApFindNameInScope (METHOD_NAME__PS2, Op)) && (!ApFindNameInScope (METHOD_NAME__PS3, Op))) { AslError (ASL_WARNING, ASL_MSG_MISSING_DEPENDENCY, Op, "_PS0 requires one of _PS1/_PS2/_PS3 in same scope"); } } else if ( ACPI_COMPARE_NAMESEG (METHOD_NAME__PS1, Op->Asl.NameSeg) || ACPI_COMPARE_NAMESEG (METHOD_NAME__PS2, Op->Asl.NameSeg) || ACPI_COMPARE_NAMESEG (METHOD_NAME__PS3, Op->Asl.NameSeg)) { /* For _PS1/_PS2/_PS3, a _PS0 must exist */ if (!ApFindNameInScope (METHOD_NAME__PS0, Op)) { sprintf (AslGbl_MsgBuffer, "%4.4s requires _PS0 in same scope", Op->Asl.NameSeg); AslError (ASL_WARNING, ASL_MSG_MISSING_DEPENDENCY, Op, AslGbl_MsgBuffer); } } /* Get the name node */ Next = Op->Asl.Child; /* Get the NumArguments node */ Next = Next->Asl.Next; MethodInfo->NumArguments = (UINT8) (((UINT8) Next->Asl.Value.Integer) & 0x07); /* Get the SerializeRule and SyncLevel nodes, ignored here */ Next = Next->Asl.Next; MethodInfo->ShouldBeSerialized = (UINT8) Next->Asl.Value.Integer; Next = Next->Asl.Next; ArgNode = Next; /* Get the ReturnType node */ Next = Next->Asl.Next; NextType = Next->Asl.Child; MethodInfo->ValidReturnTypes = MtProcessTypeOp (NextType); Op->Asl.AcpiBtype |= MethodInfo->ValidReturnTypes; /* Get the ParameterType node */ Next = Next->Asl.Next; NextType = Next->Asl.Child; if (!NextType) { /* * The optional parameter types list was omitted at the source * level. Use the Argument count parameter instead. */ ActualArgs = MethodInfo->NumArguments; } else { ActualArgs = MtProcessParameterTypeList (NextType, MethodInfo->ValidArgTypes); MethodInfo->NumArguments = ActualArgs; ArgNode->Asl.Value.Integer |= ActualArgs; } if ((MethodInfo->NumArguments) && (MethodInfo->NumArguments != ActualArgs)) { sprintf (AslGbl_MsgBuffer, "Length = %u", ActualArgs); AslError (ASL_ERROR, ASL_MSG_ARG_COUNT_MISMATCH, Op->Asl.Child->Asl.Next, AslGbl_MsgBuffer); } /* Allow numarguments == 0 for Function() */ if ((!MethodInfo->NumArguments) && (ActualArgs)) { MethodInfo->NumArguments = ActualArgs; ArgNode->Asl.Value.Integer |= ActualArgs; } /* * Actual arguments are initialized at method entry. * All other ArgX "registers" can be used as locals, so we * track their initialization. */ for (i = 0; i < MethodInfo->NumArguments; i++) { MethodInfo->ArgInitialized[i] = TRUE; } break; case PARSEOP_METHODCALL: /* Check for a recursive method call */ if (MethodInfo && (Op->Asl.Node == MethodInfo->Op->Asl.Node)) { if (MethodInfo->CreatesNamedObjects) { /* * This is an error, as it will fail at runtime on all ACPI * implementations. Any named object declarations will be * executed twice, causing failure the second time. Note, * this is independent of whether the method is declared * Serialized, because the same thread is attempting to * reenter the method, and this will always succeed. */ AslDualParseOpError (ASL_ERROR, ASL_MSG_ILLEGAL_RECURSION, Op, Op->Asl.Value.String, ASL_MSG_FOUND_HERE, MethodInfo->Op, MethodInfo->Op->Asl.ExternalName); } else { /* Method does not create objects, issue a remark */ AslError (ASL_REMARK, ASL_MSG_RECURSION, Op, Op->Asl.ExternalName); } } break; case PARSEOP_LOCAL0: case PARSEOP_LOCAL1: case PARSEOP_LOCAL2: case PARSEOP_LOCAL3: case PARSEOP_LOCAL4: case PARSEOP_LOCAL5: case PARSEOP_LOCAL6: case PARSEOP_LOCAL7: if (!MethodInfo) { /* * Local was used outside a control method, or there was an error * in the method declaration. */ AslError (ASL_REMARK, ASL_MSG_LOCAL_OUTSIDE_METHOD, Op, Op->Asl.ExternalName); return (AE_ERROR); } RegisterNumber = (Op->Asl.AmlOpcode & 0x0007); /* * If the local is being used as a target, mark the local * initialized */ if (Op->Asl.CompileFlags & OP_IS_TARGET) { MethodInfo->LocalInitialized[RegisterNumber] = TRUE; } /* * Otherwise, this is a reference, check if the local * has been previously initialized. * * The only operator that accepts an uninitialized value is ObjectType() */ else if ((!MethodInfo->LocalInitialized[RegisterNumber]) && (Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_OBJECTTYPE)) { LocalName[strlen (LocalName) -1] = (char) (RegisterNumber + 0x30); AslError (ASL_ERROR, ASL_MSG_LOCAL_INIT, Op, LocalName); } break; case PARSEOP_ARG0: case PARSEOP_ARG1: case PARSEOP_ARG2: case PARSEOP_ARG3: case PARSEOP_ARG4: case PARSEOP_ARG5: case PARSEOP_ARG6: if (!MethodInfo) { /* * Arg was used outside a control method, or there was an error * in the method declaration. */ AslError (ASL_REMARK, ASL_MSG_LOCAL_OUTSIDE_METHOD, Op, Op->Asl.ExternalName); return (AE_ERROR); } RegisterNumber = (Op->Asl.AmlOpcode & 0x000F) - 8; ArgName[strlen (ArgName) -1] = (char) (RegisterNumber + 0x30); /* * If the Arg is being used as a target, mark the local * initialized */ if (Op->Asl.CompileFlags & OP_IS_TARGET) { MethodInfo->ArgInitialized[RegisterNumber] = TRUE; } /* * Otherwise, this is a reference, check if the Arg * has been previously initialized. * * The only operator that accepts an uninitialized value is ObjectType() */ else if ((!MethodInfo->ArgInitialized[RegisterNumber]) && (Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_OBJECTTYPE)) { AslError (ASL_ERROR, ASL_MSG_ARG_INIT, Op, ArgName); } /* Flag this arg if it is not a "real" argument to the method */ if (RegisterNumber >= MethodInfo->NumArguments) { AslError (ASL_REMARK, ASL_MSG_NOT_PARAMETER, Op, ArgName); } break; case PARSEOP_RETURN: if (!MethodInfo) { /* * Probably was an error in the method declaration, * no additional error here */ ACPI_WARNING ((AE_INFO, "%p, No parent method", Op)); return (AE_ERROR); } /* * A child indicates a possible return value. A simple Return or * Return() is marked with OP_IS_NULL_RETURN by the parser so * that it is not counted as a "real" return-with-value, although * the AML code that is actually emitted is Return(0). The AML * definition of Return has a required parameter, so we are * forced to convert a null return to Return(0). */ if ((Op->Asl.Child) && (Op->Asl.Child->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (!(Op->Asl.Child->Asl.CompileFlags & OP_IS_NULL_RETURN))) { MethodInfo->NumReturnWithValue++; } else { MethodInfo->NumReturnNoValue++; } break; case PARSEOP_BREAK: case PARSEOP_CONTINUE: Next = Op->Asl.Parent; while (Next) { if (Next->Asl.ParseOpcode == PARSEOP_WHILE) { break; } Next = Next->Asl.Parent; } if (!Next) { AslError (ASL_ERROR, ASL_MSG_NO_WHILE, Op, NULL); } break; case PARSEOP_STALL: /* We can range check if the argument is an integer */ if ((Op->Asl.Child->Asl.ParseOpcode == PARSEOP_INTEGER) && (Op->Asl.Child->Asl.Value.Integer > ACPI_UINT8_MAX)) { AslError (ASL_ERROR, ASL_MSG_INVALID_TIME, Op, NULL); } break; case PARSEOP_DEVICE: /* Check usage of _HID and _ADR objects */ HidExists = ApFindNameInDeviceTree (METHOD_NAME__HID, Op); AdrExists = ApFindNameInDeviceTree (METHOD_NAME__ADR, Op); if (!HidExists && !AdrExists) { AslError (ASL_ERROR, ASL_MSG_MISSING_DEPENDENCY, Op, "Device object requires a _HID or _ADR"); } else if (HidExists && AdrExists) { /* * "A device object must contain either an _HID object or * an _ADR object, but must not contain both". * (ACPI spec 6.3, Errata A Section 6.1, page 327) */ AslError (ASL_WARNING, ASL_MSG_MULTIPLE_TYPES, Op, "Device object requires either a _HID or _ADR, but not both"); } /* * Check usage of _CRS, _DIS, _PRS, and _SRS objects (July 2021). * * Under the Device Object: * * 1) If _PRS present, must have _CRS and _SRS * 2) If _SRS present, must have _PRS (_PRS requires _CRS and _SRS) * 3) If _DIS present, must have _SRS (_SRS requires _PRS, _PRS requires _CRS and _SRS) * 4) If _SRS present, probably should have a _DIS (Remark only) */ CrsExists = ApFindNameInDeviceTree (METHOD_NAME__CRS, Op); DisExists = ApFindNameInDeviceTree (METHOD_NAME__DIS, Op); PrsExists = ApFindNameInDeviceTree (METHOD_NAME__PRS, Op); SrsExists = ApFindNameInDeviceTree (METHOD_NAME__SRS, Op); /* 1) If _PRS is present, must have a _CRS and _SRS */ if (PrsExists) { if (!CrsExists) { AslError (ASL_WARNING, ASL_MSG_MISSING_DEPENDENCY, Op, "Device has a _PRS, missing a _CRS, required"); } if (!SrsExists) { AslError (ASL_WARNING, ASL_MSG_MISSING_DEPENDENCY, Op, "Device has a _PRS, missing a _SRS, required"); } } /* 2) If _SRS is present, must have _PRS (_PRS requires _CRS and _SRS) */ if ((SrsExists) && (!PrsExists)) { AslError (ASL_WARNING, ASL_MSG_MISSING_DEPENDENCY, Op, "Device has a _SRS, missing a _PRS, required"); } /* 3) If _DIS is present, must have a _SRS */ if ((DisExists) && (!SrsExists)) { AslError (ASL_WARNING, ASL_MSG_MISSING_DEPENDENCY, Op, "Device has a _DIS, missing a _SRS, required"); } /* * 4) If _SRS is present, should have a _DIS (_PRS requires _CRS * and _SRS) Remark only. */ if ((SrsExists) && (!DisExists)) { AslError (ASL_REMARK, ASL_MSG_MISSING_DEPENDENCY, Op, "Device has a _SRS, no corresponding _DIS"); } break; case PARSEOP_EVENT: case PARSEOP_MUTEX: case PARSEOP_OPERATIONREGION: case PARSEOP_POWERRESOURCE: case PARSEOP_PROCESSOR: case PARSEOP_THERMALZONE: /* * The first operand is a name to be created in the namespace. * Check against the reserved list. */ i = ApCheckForPredefinedName (Op, Op->Asl.NameSeg); if (i < ACPI_VALID_RESERVED_NAME_MAX) { AslError (ASL_ERROR, ASL_MSG_RESERVED_USE, Op, Op->Asl.ExternalName); } MtCheckStaticOperationRegionInMethod (Op); break; case PARSEOP_NAME: /* Typecheck any predefined names statically defined with Name() */ ApCheckForPredefinedObject (Op, Op->Asl.NameSeg); /* Special typechecking for _HID */ if (ACPI_COMPARE_NAMESEG (METHOD_NAME__HID, Op->Asl.NameSeg)) { Next = Op->Asl.Child->Asl.Next; AnCheckId (Next, ASL_TYPE_HID); } /* Special typechecking for _CID */ else if (ACPI_COMPARE_NAMESEG (METHOD_NAME__CID, Op->Asl.NameSeg)) { Next = Op->Asl.Child->Asl.Next; if ((Next->Asl.ParseOpcode == PARSEOP_PACKAGE) || (Next->Asl.ParseOpcode == PARSEOP_VAR_PACKAGE)) { Next = Next->Asl.Child; while (Next) { AnCheckId (Next, ASL_TYPE_CID); Next = Next->Asl.Next; } } else { AnCheckId (Next, ASL_TYPE_CID); } } break; default: break; } /* Check for named object creation within a non-serialized method */ MtCheckNamedObjectInMethod (Op, MethodInfo); return (AE_OK); } /******************************************************************************* * * FUNCTION: MtProcessTypeOp * * PARAMETERS: Op - Op representing a btype * * RETURN: Btype represented by Op * * DESCRIPTION: Process a parse object that represents single parameter type or * a return type in method, function, and external declarations. * ******************************************************************************/ UINT32 MtProcessTypeOp ( ACPI_PARSE_OBJECT *TypeOp) { UINT32 Btype = ACPI_BTYPE_ANY; while (TypeOp) { Btype |= AnMapObjTypeToBtype (TypeOp); TypeOp->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; TypeOp = TypeOp->Asl.Next; } return (Btype); } /******************************************************************************* * * FUNCTION: MtProcessParameterTypeList * * PARAMETERS: Op - Op representing a btype * * RETURN: Btype represented by Op * * DESCRIPTION: Process a parse object that represents a parameter type list in * method, function, and external declarations. * ******************************************************************************/ UINT8 MtProcessParameterTypeList ( ACPI_PARSE_OBJECT *ParamTypeOp, UINT32 *TypeList) { UINT8 ParameterCount = 0; if (ParamTypeOp && ParamTypeOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* Special case for a single parameter without braces */ TypeList[ParameterCount] = MtProcessTypeOp (ParamTypeOp); return (1); } while (ParamTypeOp) { TypeList[ParameterCount] = MtProcessTypeOp (ParamTypeOp->Asl.Child); ParameterCount++; ParamTypeOp = ParamTypeOp->Asl.Next; } return (ParameterCount); } /******************************************************************************* * * FUNCTION: MtCheckNamedObjectInMethod * * PARAMETERS: Op - Current parser op * MethodInfo - Info for method being parsed * * RETURN: None * * DESCRIPTION: Detect if a non-serialized method is creating a named object, * which could possibly cause problems if two threads execute * the method concurrently. Emit a remark in this case. * ******************************************************************************/ static void MtCheckNamedObjectInMethod ( ACPI_PARSE_OBJECT *Op, ASL_METHOD_INFO *MethodInfo) { const ACPI_OPCODE_INFO *OpInfo; char *ExternalPath; /* We don't care about actual method declarations or scopes */ if ((Op->Asl.AmlOpcode == AML_METHOD_OP) || (Op->Asl.AmlOpcode == AML_SCOPE_OP)) { return; } /* Determine if we are creating a named object within a method */ if (!MethodInfo) { return; } OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); if ((OpInfo->Class == AML_CLASS_NAMED_OBJECT) && (Op->Asl.AmlOpcode != AML_FIELD_OP)) { /* * 1) Mark the method as a method that creates named objects. * * 2) Issue a remark indicating the inefficiency of creating named * objects within a method (Except for compiler-emitted temporary * variables). * * 3) If the method is non-serialized, emit a remark that the method * should be serialized. * * Reason: If a thread blocks within the method for any reason, and * another thread enters the method, the method will fail because * an attempt will be made to create the same object twice. * * Note: The Field opcode is disallowed here because Field() does not * create a new named object. */ ExternalPath = AcpiNsGetNormalizedPathname (MethodInfo->Op->Asl.Node, TRUE); /* No error for compiler temp variables (name starts with "_T_") */ if ((Op->Asl.NameSeg[0] != '_') && (Op->Asl.NameSeg[1] != 'T') && (Op->Asl.NameSeg[2] != '_')) { AslError (ASL_REMARK, ASL_MSG_NAMED_OBJECT_CREATION, Op, ExternalPath); } MethodInfo->CreatesNamedObjects = TRUE; if (!MethodInfo->ShouldBeSerialized) { AslError (ASL_REMARK, ASL_MSG_SERIALIZED_REQUIRED, MethodInfo->Op, ExternalPath); /* Emit message only ONCE per method */ MethodInfo->ShouldBeSerialized = TRUE; } if (ExternalPath) { ACPI_FREE (ExternalPath); } } } /******************************************************************************* * * FUNCTION: MtCheckStaticOperationRegionInMethod * * PARAMETERS: Op - Current parser op * * RETURN: None * * DESCRIPTION: Warns if an Operation Region with static address or length * is declared inside a control method * ******************************************************************************/ static void MtCheckStaticOperationRegionInMethod( ACPI_PARSE_OBJECT* Op) { ACPI_PARSE_OBJECT* AddressOp; ACPI_PARSE_OBJECT* LengthOp; if (Op->Asl.ParseOpcode != PARSEOP_OPERATIONREGION) { return; } /* * OperationRegion should have 4 arguments defined. At this point, we * assume that the parse tree is well-formed. */ AddressOp = Op->Asl.Child->Asl.Next->Asl.Next; LengthOp = Op->Asl.Child->Asl.Next->Asl.Next->Asl.Next; if (UtGetParentMethodOp (Op) && AddressOp->Asl.ParseOpcode == PARSEOP_INTEGER && LengthOp->Asl.ParseOpcode == PARSEOP_INTEGER) { /* * At this point, a static operation region declared inside of a * control method has been found. Throw a warning because this is * highly inefficient. */ AslError(ASL_WARNING, ASL_MSG_STATIC_OPREGION_IN_METHOD, Op, NULL); } return; } /******************************************************************************* * * FUNCTION: MtMethodAnalysisWalkEnd * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Ascending callback for analysis walk. Complete method * return analysis. * ******************************************************************************/ ACPI_STATUS MtMethodAnalysisWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ASL_ANALYSIS_WALK_INFO *WalkInfo = (ASL_ANALYSIS_WALK_INFO *) Context; ASL_METHOD_INFO *MethodInfo = WalkInfo->MethodStack; char *ExternalPath; switch (Op->Asl.ParseOpcode) { case PARSEOP_METHOD: case PARSEOP_RETURN: if (!MethodInfo) { printf ("No method info for method! [%s]\n", Op->Asl.Namepath); AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, Op, "No method info for this method"); CmCleanupAndExit (); return (AE_AML_INTERNAL); } break; default: break; } switch (Op->Asl.ParseOpcode) { case PARSEOP_METHOD: WalkInfo->MethodStack = MethodInfo->Next; /* * Check if there is no return statement at the end of the * method AND we can actually get there -- i.e., the execution * of the method can possibly terminate without a return statement. */ if ((!AnLastStatementIsReturn (Op)) && (!(Op->Asl.CompileFlags & OP_HAS_NO_EXIT))) { /* * No return statement, and execution can possibly exit * via this path. This is equivalent to Return () */ MethodInfo->NumReturnNoValue++; } /* * Check for case where some return statements have a return value * and some do not. Exit without a return statement is a return with * no value */ if (MethodInfo->NumReturnNoValue && MethodInfo->NumReturnWithValue) { ExternalPath = AcpiNsGetNormalizedPathname (Op->Asl.Node, TRUE); AslError (ASL_WARNING, ASL_MSG_RETURN_TYPES, Op, ExternalPath); if (ExternalPath) { ACPI_FREE (ExternalPath); } } /* * If there are any RETURN() statements with no value, or there is a * control path that allows the method to exit without a return value, * we mark the method as a method that does not return a value. This * knowledge can be used to check method invocations that expect a * returned value. */ if (MethodInfo->NumReturnNoValue) { if (MethodInfo->NumReturnWithValue) { Op->Asl.CompileFlags |= OP_METHOD_SOME_NO_RETVAL; } else { Op->Asl.CompileFlags |= OP_METHOD_NO_RETVAL; } } /* * Check predefined method names for correct return behavior * and correct number of arguments. Also, some special checks * For GPE and _REG methods. */ if (ApCheckForPredefinedMethod (Op, MethodInfo)) { /* Special check for two names like _L01 and _E01 in same scope */ ApCheckForGpeNameConflict (Op); /* * Special check for _REG: Must have an operation region definition * within the same scope! */ ApCheckRegMethod (Op); } ACPI_FREE (MethodInfo); break; case PARSEOP_NAME: /* Special check for two names like _L01 and _E01 in same scope */ ApCheckForGpeNameConflict (Op); break; case PARSEOP_RETURN: /* * If the parent is a predefined method name, attempt to typecheck * the return value. Only static types can be validated. */ ApCheckPredefinedReturnValue (Op, MethodInfo); /* * The parent block does not "exit" and continue execution -- the * method is terminated here with the Return() statement. */ Op->Asl.Parent->Asl.CompileFlags |= OP_HAS_NO_EXIT; /* Used in the "typing" pass later */ Op->Asl.ParentMethod = MethodInfo->Op; /* * If there is a peer node after the return statement, then this * node is unreachable code -- i.e., it won't be executed because of * the preceding Return() statement. */ if (Op->Asl.Next) { AslError (ASL_WARNING, ASL_MSG_UNREACHABLE_CODE, Op->Asl.Next, NULL); } break; case PARSEOP_IF: if ((Op->Asl.CompileFlags & OP_HAS_NO_EXIT) && (Op->Asl.Next) && (Op->Asl.Next->Asl.ParseOpcode == PARSEOP_ELSE)) { /* * This IF has a corresponding ELSE. The IF block has no exit, * (it contains an unconditional Return) * mark the ELSE block to remember this fact. */ Op->Asl.Next->Asl.CompileFlags |= OP_IF_HAS_NO_EXIT; } break; case PARSEOP_ELSE: if ((Op->Asl.CompileFlags & OP_HAS_NO_EXIT) && (Op->Asl.CompileFlags & OP_IF_HAS_NO_EXIT)) { /* * This ELSE block has no exit and the corresponding IF block * has no exit either. Therefore, the parent node has no exit. */ Op->Asl.Parent->Asl.CompileFlags |= OP_HAS_NO_EXIT; } break; default: if ((Op->Asl.CompileFlags & OP_HAS_NO_EXIT) && (Op->Asl.Parent)) { /* If this node has no exit, then the parent has no exit either */ Op->Asl.Parent->Asl.CompileFlags |= OP_HAS_NO_EXIT; } break; } return (AE_OK); } acpica-unix-20250404/source/compiler/aslmain.c0000775000175000017500000002173114773714131020446 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslmain - compiler main and utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define _DECLARE_GLOBALS #include "aslcompiler.h" #include "acapps.h" #include "acdisasm.h" #include #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslmain") /* * Main routine for the iASL compiler. * * Portability note: The compiler depends upon the host for command-line * wildcard support - it is not implemented locally. For example: * * Linux/Unix systems: Shell expands wildcards automatically. * * Windows: The setargv.obj module must be linked in to automatically * expand wildcards. */ /* Local prototypes */ static void ACPI_SYSTEM_XFACE AslSignalHandler ( int Sig); static void AslInitialize ( void); /******************************************************************************* * * FUNCTION: main * * PARAMETERS: Standard argc/argv * * RETURN: Program termination code * * DESCRIPTION: C main routine for the iASL Compiler/Disassembler. Process * command line options and begin the compile/disassembly for each file on * the command line (wildcards supported). * ******************************************************************************/ int ACPI_SYSTEM_XFACE main ( int argc, char **argv) { ACPI_STATUS Status; int Index1; int Index2; int ReturnStatus = 0; signal (SIGINT, AslSignalHandler); /* * Big-endian machines are not currently supported. ACPI tables must * be little-endian, and support for big-endian machines needs to * be implemented. */ if (UtIsBigEndianMachine ()) { fprintf (stderr, "iASL is not currently supported on big-endian machines.\n"); return (-1); } AcpiOsInitialize (); ACPI_DEBUG_INITIALIZE (); /* For debug version only */ /* Initialize preprocessor and compiler before command line processing */ AcpiGbl_ExternalFileList = NULL; AcpiDbgLevel = 0; PrInitializePreprocessor (); AslInitialize (); Index1 = Index2 = AslCommandLine (argc, argv); /* Allocate the line buffer(s), must be after command line */ AslGbl_LineBufferSize /= 2; UtExpandLineBuffers (); /* Perform global actions first/only */ if (AslGbl_DisassembleAll) { while (argv[Index1]) { Status = AcpiDmAddToExternalFileList (argv[Index1]); if (ACPI_FAILURE (Status)) { return (-1); } Index1++; } } /* ACPICA subsystem initialization */ Status = AdInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* Process each pathname/filename in the list, with possible wildcards */ while (argv[Index2]) { /* * If -p not specified, we will use the input filename as the * output filename prefix */ if (AslGbl_UseDefaultAmlFilename) { AslGbl_OutputFilenamePrefix = argv[Index2]; UtConvertBackslashes (AslGbl_OutputFilenamePrefix); } Status = AslDoOneFile (argv[Index2]); if (ACPI_FAILURE (Status)) { ReturnStatus = -1; } Index2++; } /* * At this point, compilation of a data table or disassembly is complete. * However, if there is a parse tree, perform compiler analysis and * generate AML. */ if (AslGbl_PreprocessOnly || AcpiGbl_DisasmFlag || !AslGbl_ParseTreeRoot) { goto CleanupAndExit; } CmDoAslMiddleAndBackEnd (); /* * At this point, all semantic analysis has been completed. Check * expected error messages before cleanup or conversion. */ AslCheckExpectedExceptions (); /* ASL-to-ASL+ conversion - Perform immediate disassembly */ if (AslGbl_DoAslConversion) { /* re-initialize ACPICA subsystem for disassembler */ Status = AdInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* * New input file is the output AML file from above. * New output is from the input ASL file from above. */ AslGbl_OutputFilenamePrefix = AslGbl_Files[ASL_FILE_INPUT].Filename; AslGbl_Files[ASL_FILE_INPUT].Filename = AslGbl_Files[ASL_FILE_AML_OUTPUT].Filename; CvDbgPrint ("Output filename: %s\n", AslGbl_OutputFilenamePrefix); fprintf (stderr, "\n"); AcpiGbl_DisasmFlag = TRUE; AslDoDisassembly (); AcpiGbl_DisasmFlag = FALSE; /* delete the AML file. This AML file should never be utilized by AML interpreters. */ FlDeleteFile (ASL_FILE_AML_OUTPUT); } CleanupAndExit: UtFreeLineBuffers (); AslParserCleanup (); AcpiDmClearExternalFileList(); (void) AcpiTerminate (); /* CmCleanupAndExit is intended for the compiler only */ if (!AcpiGbl_DisasmFlag) { ReturnStatus = CmCleanupAndExit (); } return (ReturnStatus); } /****************************************************************************** * * FUNCTION: AslSignalHandler * * PARAMETERS: Sig - Signal that invoked this handler * * RETURN: None * * DESCRIPTION: Signal interrupt handler. Delete any intermediate files and * any output files that may be left in an indeterminate state. * Currently handles SIGINT (control-c). * *****************************************************************************/ static void ACPI_SYSTEM_XFACE AslSignalHandler ( int Sig) { UINT32 i; signal (Sig, SIG_IGN); fflush (stdout); fflush (stderr); switch (Sig) { case SIGINT: printf ("\n" ASL_PREFIX "\n"); break; default: printf (ASL_PREFIX "Unknown interrupt signal (%d)\n", Sig); break; } /* * Close all open files * Note: the .pre file is the same as the input source file */ if (AslGbl_Files) { AslGbl_Files[ASL_FILE_PREPROCESSOR].Handle = NULL; for (i = ASL_FILE_INPUT; i < ASL_MAX_FILE_TYPE; i++) { FlCloseFile (i); } /* Delete any output files */ for (i = ASL_FILE_AML_OUTPUT; i < ASL_MAX_FILE_TYPE; i++) { FlDeleteFile (i); } } printf (ASL_PREFIX "Terminating\n"); _exit (0); } /******************************************************************************* * * FUNCTION: AslInitialize * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Initialize compiler globals * ******************************************************************************/ static void AslInitialize ( void) { AcpiGbl_DmOpt_Verbose = FALSE; /* Default integer width is 32 bits */ AcpiGbl_IntegerBitWidth = 32; AcpiGbl_IntegerNybbleWidth = 8; AcpiGbl_IntegerByteWidth = 4; } acpica-unix-20250404/source/compiler/aslglobal.h0000775000175000017500000004164614773714131020776 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslglobal.h - Global variable definitions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ASLGLOBAL_H #define __ASLGLOBAL_H /* * Global variables. Defined in aslmain.c only, externed in all other files */ #undef ASL_EXTERN #ifdef _DECLARE_GLOBALS #define ASL_EXTERN #define ASL_INIT_GLOBAL(a,b) (a)=(b) #else #define ASL_EXTERN extern #define ASL_INIT_GLOBAL(a,b) (a) #endif #ifdef _DECLARE_GLOBALS UINT32 AslGbl_ExceptionCount[ASL_NUM_REPORT_LEVELS] = {0,0,0,0,0,0}; /* Table below must match ASL_FILE_TYPES in asltypes.h */ ASL_FILE_DESC AslGbl_FileDescs [ASL_NUM_FILES] = { {"stdout: ", "Standard Output"}, {"stderr: ", "Standard Error"}, {"Table Input: ", "Source Input"}, {"Binary Output:", "AML Output"}, {"Source Output:", "Source Output"}, {"Preprocessor: ", "Preprocessor Output"}, {"Preprocessor: ", "Preprocessor Temp File"}, {"Listing File: ", "Listing Output"}, {"Hex Dump: ", "Hex Table Output"}, {"Namespace: ", "Namespace Output"}, {"Debug File: ", "Debug Output"}, {"ASM Source: ", "Assembly Code Output"}, {"C Source: ", "C Code Output"}, {"ASM Include: ", "Assembly Header Output"}, {"C Include: ", "C Header Output"}, {"Offset Table: ", "C Offset Table Output"}, {"Device Map: ", "Device Map Output"}, {"Cross Ref: ", "Cross-reference Output"}, {"Converter dbg:", "Converter debug Output"} }; /* Table below must match the defines with the same names in actypes.h */ const char *AslGbl_OpFlagNames[ACPI_NUM_OP_FLAGS] = { "OP_VISITED", "OP_AML_PACKAGE", "OP_IS_TARGET", "OP_IS_RESOURCE_DESC", "OP_IS_RESOURCE_FIELD", "OP_HAS_NO_EXIT", "OP_IF_HAS_NO_EXIT", "OP_NAME_INTERNALIZED", "OP_METHOD_NO_RETVAL", "OP_METHOD_SOME_NO_RETVAL", "OP_RESULT_NOT_USED", "OP_METHOD_TYPED", "OP_COULD_NOT_REDUCE", "OP_COMPILE_TIME_CONST", "OP_IS_TERM_ARG", "OP_WAS_ONES_OP", "OP_IS_NAME_DECLARATION", "OP_COMPILER_EMITTED", "OP_IS_DUPLICATE", "OP_IS_RESOURCE_DATA", "OP_IS_NULL_RETURN", "OP_NOT_FOUND_DURING_LOAD" }; const char *AslGbl_SpecialNamedObjects [MAX_SPECIAL_NAMES] = { NAMESEG__PTS, NAMESEG__WAK, NAMESEG__S0, NAMESEG__S1, NAMESEG__S2, NAMESEG__S3, NAMESEG__S4, NAMESEG__S5, NAMESEG__TTS }; #else extern ASL_FILE_DESC AslGbl_FileDescs [ASL_NUM_FILES]; extern UINT32 AslGbl_ExceptionCount[ASL_NUM_REPORT_LEVELS]; extern const char *AslGbl_OpFlagNames[ACPI_NUM_OP_FLAGS]; extern const char *AslGbl_SpecialNamedObjects[MAX_SPECIAL_NAMES]; #endif /* * Parser and other externals */ extern int yydebug; extern FILE *AslCompilerin; extern int DtParserdebug; extern int PrParserdebug; extern const ASL_MAPPING_ENTRY AslKeywordMapping[]; extern char *AslCompilertext; extern char *DtCompilerParsertext; /* * Older versions of Bison won't emit this external in the generated header. * Newer versions do emit the external, so we don't need to do it. */ #ifndef ASLCOMPILER_ASLCOMPILERPARSE_H extern int AslCompilerdebug; #endif #define ASL_DEFAULT_LINE_BUFFER_SIZE (1024 * 32) /* 32K */ #define ASL_MSG_BUFFER_SIZE (1024 * 128) /* 128k */ #define ASL_STRING_BUFFER_SIZE (1024 * 32) /* 32k */ #define ASL_MAX_DISABLED_MESSAGES 32 #define ASL_MAX_EXPECTED_MESSAGES 32 #define ASL_MAX_ELEVATED_MESSAGES 32 #define HEX_TABLE_LINE_SIZE 8 #define HEX_LISTING_LINE_SIZE 8 /* Source code buffers and pointers for error reporting */ ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_CurrentLineBuffer, NULL); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_LineBufPtr, NULL); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_LineBufferSize, ASL_DEFAULT_LINE_BUFFER_SIZE); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_CurrentColumn, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_CurrentLineNumber, 1); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_LogicalLineNumber, 1); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_CurrentLineOffset, 0); ASL_EXTERN UINT8 ASL_INIT_GLOBAL (AslGbl_SyntaxError, 0); /* Exception reporting */ ASL_EXTERN ASL_ERROR_MSG ASL_INIT_GLOBAL (*AslGbl_ErrorLog,NULL); ASL_EXTERN ASL_ERROR_MSG ASL_INIT_GLOBAL (*AslGbl_NextError,NULL); /* Option flags */ ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoCompile, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoSignon, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_PreprocessOnly, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_PreprocessFlag, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DisassembleAll, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_UseDefaultAmlFilename, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_MapfileFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_NsOutputFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_PreprocessorOutputFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_KeepPreprocessorTempFile, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DebugFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_CrossReferenceOutput, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_AsmOutputFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_C_OutputFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_C_OffsetTableFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_AsmIncludeOutputFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_C_IncludeOutputFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_ListingFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_IgnoreErrors, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_SourceOutputFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_ParseOnlyFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_ParserErrorDetected, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_CompileTimesFlag, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_FoldConstants, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_VerboseErrors, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_NoErrors, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_WarningsAsErrors, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_NoResourceChecking, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_IntegerOptimizationFlag, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_ReferenceOptimizationFlag, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DisplayRemarks, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DisplayWarnings, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DisplayOptimizations, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_Deterministic, TRUE); ASL_EXTERN UINT8 ASL_INIT_GLOBAL (AslGbl_WarningLevel, ASL_WARNING); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_UseOriginalCompilerId, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_VerboseTemplates, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoTemplates, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_CompileGeneric, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_AllExceptionsDisabled, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_PruneParseTree, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoTypechecking, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_EnableReferenceTypechecking, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoExternalsInPlace, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoAslConversion, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_OptimizeTrivialParseNodes, TRUE); #define HEX_OUTPUT_NONE 0 #define HEX_OUTPUT_C 1 #define HEX_OUTPUT_ASM 2 #define HEX_OUTPUT_ASL 3 ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_HexOutputFlag, HEX_OUTPUT_NONE); /* Files */ ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_HasIncludeFiles, FALSE); ASL_EXTERN char *AslGbl_DirectoryPath; ASL_EXTERN char *AslGbl_CurrentInputFilename; ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_IncludeFilename, NULL); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_OutputFilenamePrefix, NULL); ASL_EXTERN ASL_INCLUDE_DIR ASL_INIT_GLOBAL (*AslGbl_IncludeDirList, NULL); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_ExternalRefFilename, NULL); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_PreviousIncludeFilename, NULL); /* Statistics */ ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_InputByteCount, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_InputFieldCount, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_NsLookupCount, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_TotalKeywords, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_TotalNamedObjects, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_TotalExecutableOpcodes, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_TotalParseNodes, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_TotalMethods, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_TotalAllocations, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_TotalAllocated, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_TotalFolds, 0); /* Local caches */ ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_ParseOpCount, 0); ASL_EXTERN ASL_CACHE_INFO ASL_INIT_GLOBAL (*AslGbl_ParseOpCacheList, NULL); ASL_EXTERN ACPI_PARSE_OBJECT ASL_INIT_GLOBAL (*AslGbl_ParseOpCacheNext, NULL); ASL_EXTERN ACPI_PARSE_OBJECT ASL_INIT_GLOBAL (*AslGbl_ParseOpCacheLast, NULL); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_StringCount, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_StringSize, 0); ASL_EXTERN ASL_CACHE_INFO ASL_INIT_GLOBAL (*AslGbl_StringCacheList, NULL); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_StringCacheNext, NULL); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_StringCacheLast, NULL); /* Map file */ ASL_EXTERN ACPI_GPIO_INFO ASL_INIT_GLOBAL (*AslGbl_GpioList, NULL); ASL_EXTERN ACPI_SERIAL_INFO ASL_INIT_GLOBAL (*AslGbl_SerialList, NULL); /* Misc */ ASL_EXTERN UINT8 ASL_INIT_GLOBAL (AslGbl_RevisionOverride, 0); ASL_EXTERN UINT8 ASL_INIT_GLOBAL (AslGbl_TempCount, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_TableLength, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_SourceLine, 0); ASL_EXTERN UINT8 ASL_INIT_GLOBAL (AslGbl_FileType, 0); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_Signature, NULL); ASL_EXTERN ACPI_PARSE_OBJECT ASL_INIT_GLOBAL (*AslGbl_ParseTreeRoot, NULL); ASL_EXTERN ACPI_PARSE_OBJECT ASL_INIT_GLOBAL (*AslGbl_CurrentDB, NULL); ASL_EXTERN ACPI_PARSE_OBJECT ASL_INIT_GLOBAL (*AslGbl_ExternalsListHead, NULL); ASL_EXTERN ASL_LISTING_NODE ASL_INIT_GLOBAL (*AslGbl_ListingNode, NULL); ASL_EXTERN ACPI_PARSE_OBJECT *AslGbl_FirstLevelInsertionNode; ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_CurrentHexColumn, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_CurrentAmlOffset, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_CurrentLine, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_DisabledMessagesIndex, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_ExpectedMessagesIndex, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_ElevatedMessagesIndex, 0); ASL_EXTERN UINT8 ASL_INIT_GLOBAL (AslGbl_HexBytesWereWritten, FALSE); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_NumNamespaceObjects, 0); ASL_EXTERN UINT32 ASL_INIT_GLOBAL (AslGbl_ReservedMethods, 0); ASL_EXTERN UINT8 ASL_INIT_GLOBAL (AslGbl_PruneDepth, 0); ASL_EXTERN UINT16 ASL_INIT_GLOBAL (AslGbl_PruneType, 0); ASL_EXTERN ASL_FILE_NODE ASL_INIT_GLOBAL (*AslGbl_IncludeFileStack, NULL); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_TableSignature, "NO_SIG"); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_TableId, "NO_ID"); ASL_EXTERN ASL_FILE_INFO ASL_INIT_GLOBAL (*AslGbl_Files, NULL); ASL_EXTERN ASL_GLOBAL_FILE_NODE ASL_INIT_GLOBAL (*AslGbl_FilesList, NULL); ASL_EXTERN ASL_EXPECTED_MSG_NODE ASL_INIT_GLOBAL (*AslGbl_ExpectedErrorCodeList, NULL); /* Specific to the -q option */ ASL_EXTERN ASL_COMMENT_STATE AslGbl_CommentState; /* * Determines if an inline comment should be saved in the InlineComment or NodeEndComment * field of ACPI_PARSE_OBJECT. */ ASL_EXTERN ACPI_COMMENT_NODE ASL_INIT_GLOBAL (*AslGbl_CommentListHead, NULL); ASL_EXTERN ACPI_COMMENT_NODE ASL_INIT_GLOBAL (*AslGbl_CommentListTail, NULL); ASL_EXTERN char ASL_INIT_GLOBAL (*AslGbl_InlineCommentBuffer, NULL); /* Static structures */ ASL_EXTERN ASL_ANALYSIS_WALK_INFO AslGbl_AnalysisWalkInfo; ASL_EXTERN ACPI_TABLE_HEADER AslGbl_TableHeader; /* Event timing */ #define ASL_NUM_EVENTS 24 ASL_EXTERN ASL_EVENT_INFO AslGbl_Events[ASL_NUM_EVENTS]; ASL_EXTERN UINT8 AslGbl_NextEvent; ASL_EXTERN UINT8 AslGbl_NamespaceEvent; /* Scratch buffers */ ASL_EXTERN UINT8 AslGbl_AmlBuffer[HEX_LISTING_LINE_SIZE]; ASL_EXTERN char AslGbl_MsgBuffer[ASL_MSG_BUFFER_SIZE]; ASL_EXTERN char AslGbl_StringBuffer[ASL_STRING_BUFFER_SIZE]; ASL_EXTERN char AslGbl_StringBuffer2[ASL_STRING_BUFFER_SIZE]; ASL_EXTERN UINT32 AslGbl_DisabledMessages[ASL_MAX_DISABLED_MESSAGES]; ASL_EXTERN ASL_EXPECTED_MESSAGE AslGbl_ExpectedMessages[ASL_MAX_EXPECTED_MESSAGES]; ASL_EXTERN UINT32 AslGbl_ElevatedMessages[ASL_MAX_ELEVATED_MESSAGES]; #endif /* __ASLGLOBAL_H */ acpica-unix-20250404/source/compiler/aslparser.y0000775000175000017500000001032414773714131021040 0ustar ivanhuivanhu%{ /****************************************************************************** * * Module Name: aslparser.y - Master Bison/Yacc input file for iASL * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acpi.h" #include "accommon.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslparse") /* * Global Notes: * * October 2005: The following list terms have been optimized (from the * original ASL grammar in the ACPI specification) to force the immediate * reduction of each list item so that the parse stack use doesn't increase on * each list element and possibly overflow on very large lists (>4000 items). * This dramatically reduces use of the parse stack overall. * * ArgList, TermList, ByteList, DWordList, PackageList, * ResourceMacroList, and FieldUnitList */ void * AslLocalAllocate ( unsigned int Size); /* Bison/yacc configuration */ #define static #undef malloc #define malloc AslLocalAllocate #undef alloca #define alloca AslLocalAllocate #define yytname AslCompilername #define YYINITDEPTH 600 /* State stack depth */ #define YYDEBUG 1 /* Enable debug output */ #define YYERROR_VERBOSE 1 /* Verbose error messages */ #define YYFLAG -32768 /* Define YYMALLOC/YYFREE to prevent redefinition errors */ #define YYMALLOC AslLocalAllocate #define YYFREE ACPI_FREE %} /* * Declare the type of values in the grammar */ %union { UINT64 i; char *s; ACPI_PARSE_OBJECT *n; } /* * These shift/reduce conflicts are expected. There should be zero * reduce/reduce conflicts. */ %expect 134 /*! [Begin] no source code translation */ /* * The M4 macro processor is used to bring in the parser items, * in order to keep this master file smaller, and to break up * the various parser items. */ m4_define(NoEcho) /* Token types */ m4_include(asltokens.y) /* Production types/names */ m4_include(asltypes.y) %% /* Production rules */ m4_include(aslrules.y) m4_include(aslprimaries.y) m4_include(aslcstyle.y) m4_include(aslkeywords.y) m4_include(aslresources.y) m4_include(aslhelpers.y) %% /*! [End] no source code translation !*/ /* Local support functions in C */ m4_include(aslsupport.y) acpica-unix-20250404/source/compiler/asltokens.y0000775000175000017500000004134514773714131021056 0ustar ivanhuivanhuNoEcho(' /****************************************************************************** * * Module Name: asltokens.y - Bison/Yacc token types * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ ') /****************************************************************************** * * Token types: These are returned by the lexer * * NOTE: This list MUST match the AslKeywordMapping table found * in aslmap.c EXACTLY! Double check any changes! * *****************************************************************************/ /* * Most tokens are defined to return , which is a UINT64. * * These tokens return , a pointer to the associated lexed string: * * PARSEOP_NAMESEG * PARSEOP_NAMESTRING * PARSEOP_STRING_LITERAL * PARSEOP_STRUCTURE_NAMESTRING */ %token PARSEOP_ACCESSAS %token PARSEOP_ACCESSATTRIB_BLOCK %token PARSEOP_ACCESSATTRIB_BLOCK_CALL %token PARSEOP_ACCESSATTRIB_BYTE %token PARSEOP_ACCESSATTRIB_BYTES %token PARSEOP_ACCESSATTRIB_QUICK %token PARSEOP_ACCESSATTRIB_RAW_BYTES %token PARSEOP_ACCESSATTRIB_RAW_PROCESS %token PARSEOP_ACCESSATTRIB_SND_RCV %token PARSEOP_ACCESSATTRIB_WORD %token PARSEOP_ACCESSATTRIB_WORD_CALL %token PARSEOP_ACCESSTYPE_ANY %token PARSEOP_ACCESSTYPE_BUF %token PARSEOP_ACCESSTYPE_BYTE %token PARSEOP_ACCESSTYPE_DWORD %token PARSEOP_ACCESSTYPE_QWORD %token PARSEOP_ACCESSTYPE_WORD %token PARSEOP_ACQUIRE %token PARSEOP_ADD %token PARSEOP_ADDRESSINGMODE_7BIT %token PARSEOP_ADDRESSINGMODE_10BIT %token PARSEOP_ADDRESSTYPE_ACPI %token PARSEOP_ADDRESSTYPE_MEMORY %token PARSEOP_ADDRESSTYPE_NVS %token PARSEOP_ADDRESSTYPE_RESERVED %token PARSEOP_ALIAS %token PARSEOP_AND %token PARSEOP_ARG0 %token PARSEOP_ARG1 %token PARSEOP_ARG2 %token PARSEOP_ARG3 %token PARSEOP_ARG4 %token PARSEOP_ARG5 %token PARSEOP_ARG6 %token PARSEOP_BANKFIELD %token PARSEOP_BITSPERBYTE_EIGHT %token PARSEOP_BITSPERBYTE_FIVE %token PARSEOP_BITSPERBYTE_NINE %token PARSEOP_BITSPERBYTE_SEVEN %token PARSEOP_BITSPERBYTE_SIX %token PARSEOP_BREAK %token PARSEOP_BREAKPOINT %token PARSEOP_BUFFER %token PARSEOP_BUSMASTERTYPE_MASTER %token PARSEOP_BUSMASTERTYPE_NOTMASTER %token PARSEOP_BYTECONST %token PARSEOP_CASE %token PARSEOP_CLOCKPHASE_FIRST %token PARSEOP_CLOCKPHASE_SECOND %token PARSEOP_CLOCKPOLARITY_HIGH %token PARSEOP_CLOCKPOLARITY_LOW %token PARSEOP_CONCATENATE %token PARSEOP_CONCATENATERESTEMPLATE %token PARSEOP_CONDREFOF %token PARSEOP_CONNECTION %token PARSEOP_CONTINUE %token PARSEOP_COPYOBJECT %token PARSEOP_CREATEBITFIELD %token PARSEOP_CREATEBYTEFIELD %token PARSEOP_CREATEDWORDFIELD %token PARSEOP_CREATEFIELD %token PARSEOP_CREATEQWORDFIELD %token PARSEOP_CREATEWORDFIELD %token PARSEOP_DATABUFFER %token PARSEOP_DATATABLEREGION %token PARSEOP_DEBUG %token PARSEOP_DECODETYPE_POS %token PARSEOP_DECODETYPE_SUB %token PARSEOP_DECREMENT %token PARSEOP_DEFAULT %token PARSEOP_DEFAULT_ARG %token PARSEOP_DEFINITION_BLOCK %token PARSEOP_DEREFOF %token PARSEOP_DEVICE %token PARSEOP_DEVICEPOLARITY_HIGH %token PARSEOP_DEVICEPOLARITY_LOW %token PARSEOP_DIVIDE %token PARSEOP_DMA %token PARSEOP_DMATYPE_A %token PARSEOP_DMATYPE_COMPATIBILITY %token PARSEOP_DMATYPE_B %token PARSEOP_DMATYPE_F %token PARSEOP_DWORDCONST %token PARSEOP_DWORDIO %token PARSEOP_DWORDMEMORY %token PARSEOP_DWORDPCC %token PARSEOP_DWORDSPACE %token PARSEOP_EISAID %token PARSEOP_ELSE %token PARSEOP_ELSEIF %token PARSEOP_ENDDEPENDENTFN %token PARSEOP_ENDIAN_BIG %token PARSEOP_ENDIAN_LITTLE %token PARSEOP_ENDTAG %token PARSEOP_ERRORNODE %token PARSEOP_EVENT %token PARSEOP_EXTENDEDIO %token PARSEOP_EXTENDEDMEMORY %token PARSEOP_EXTENDEDSPACE %token PARSEOP_EXTERNAL %token PARSEOP_FATAL %token PARSEOP_FIELD %token PARSEOP_FINDSETLEFTBIT %token PARSEOP_FINDSETRIGHTBIT %token PARSEOP_FIXEDDMA %token PARSEOP_FIXEDIO %token PARSEOP_FLOWCONTROL_HW %token PARSEOP_FLOWCONTROL_NONE %token PARSEOP_FLOWCONTROL_SW %token PARSEOP_FROMBCD %token PARSEOP_FUNCTION %token PARSEOP_GPIO_INT %token PARSEOP_GPIO_IO %token PARSEOP_CSI2_SERIALBUS %token PARSEOP_I2C_SERIALBUS %token PARSEOP_I2C_SERIALBUS_V2 %token PARSEOP_IF %token PARSEOP_INCLUDE %token PARSEOP_INCLUDE_END %token PARSEOP_INCREMENT %token PARSEOP_INDEX %token PARSEOP_INDEXFIELD %token PARSEOP_INTEGER %token PARSEOP_INTERRUPT %token PARSEOP_INTLEVEL_ACTIVEBOTH %token PARSEOP_INTLEVEL_ACTIVEHIGH %token PARSEOP_INTLEVEL_ACTIVELOW %token PARSEOP_INTTYPE_EDGE %token PARSEOP_INTTYPE_LEVEL %token PARSEOP_IO %token PARSEOP_IODECODETYPE_10 %token PARSEOP_IODECODETYPE_16 %token PARSEOP_IORESTRICT_IN %token PARSEOP_IORESTRICT_NONE %token PARSEOP_IORESTRICT_OUT %token PARSEOP_IORESTRICT_PRESERVE %token PARSEOP_IRQ %token PARSEOP_IRQNOFLAGS %token PARSEOP_LAND %token PARSEOP_LEQUAL %token PARSEOP_LGREATER %token PARSEOP_LGREATEREQUAL %token PARSEOP_LLESS %token PARSEOP_LLESSEQUAL %token PARSEOP_LNOT %token PARSEOP_LNOTEQUAL %token PARSEOP_LOAD %token PARSEOP_LOADTABLE %token PARSEOP_LOCAL0 %token PARSEOP_LOCAL1 %token PARSEOP_LOCAL2 %token PARSEOP_LOCAL3 %token PARSEOP_LOCAL4 %token PARSEOP_LOCAL5 %token PARSEOP_LOCAL6 %token PARSEOP_LOCAL7 %token PARSEOP_LOCKRULE_LOCK %token PARSEOP_LOCKRULE_NOLOCK %token PARSEOP_LOR %token PARSEOP_MATCH %token PARSEOP_MATCHTYPE_MEQ %token PARSEOP_MATCHTYPE_MGE %token PARSEOP_MATCHTYPE_MGT %token PARSEOP_MATCHTYPE_MLE %token PARSEOP_MATCHTYPE_MLT %token PARSEOP_MATCHTYPE_MTR %token PARSEOP_MAXTYPE_FIXED %token PARSEOP_MAXTYPE_NOTFIXED %token PARSEOP_MEMORY24 %token PARSEOP_MEMORY32 %token PARSEOP_MEMORY32FIXED %token PARSEOP_MEMTYPE_CACHEABLE %token PARSEOP_MEMTYPE_NONCACHEABLE %token PARSEOP_MEMTYPE_PREFETCHABLE %token PARSEOP_MEMTYPE_WRITECOMBINING %token PARSEOP_METHOD %token PARSEOP_METHODCALL %token PARSEOP_MID %token PARSEOP_MINTYPE_FIXED %token PARSEOP_MINTYPE_NOTFIXED %token PARSEOP_MOD %token PARSEOP_MULTIPLY %token PARSEOP_MUTEX %token PARSEOP_NAME %token PARSEOP_NAMESEG %token PARSEOP_NAMESTRING %token PARSEOP_NAND %token PARSEOP_NOOP %token PARSEOP_NOR %token PARSEOP_NOT %token PARSEOP_NOTIFY %token PARSEOP_OBJECTTYPE %token PARSEOP_OBJECTTYPE_BFF %token PARSEOP_OBJECTTYPE_BUF %token PARSEOP_OBJECTTYPE_DDB %token PARSEOP_OBJECTTYPE_DEV %token PARSEOP_OBJECTTYPE_EVT %token PARSEOP_OBJECTTYPE_FLD %token PARSEOP_OBJECTTYPE_INT %token PARSEOP_OBJECTTYPE_MTH %token PARSEOP_OBJECTTYPE_MTX %token PARSEOP_OBJECTTYPE_OPR %token PARSEOP_OBJECTTYPE_PKG %token PARSEOP_OBJECTTYPE_POW %token PARSEOP_OBJECTTYPE_PRO %token PARSEOP_OBJECTTYPE_STR %token PARSEOP_OBJECTTYPE_THZ %token PARSEOP_OBJECTTYPE_UNK %token PARSEOP_OFFSET %token PARSEOP_ONE %token PARSEOP_ONES %token PARSEOP_OPERATIONREGION %token PARSEOP_OR %token PARSEOP_PACKAGE %token PARSEOP_PACKAGE_LENGTH %token PARSEOP_PARITYTYPE_EVEN %token PARSEOP_PARITYTYPE_MARK %token PARSEOP_PARITYTYPE_NONE %token PARSEOP_PARITYTYPE_ODD %token PARSEOP_PARITYTYPE_SPACE %token PARSEOP_PINCONFIG %token PARSEOP_PINFUNCTION %token PARSEOP_PINGROUP %token PARSEOP_PINGROUPCONFIG %token PARSEOP_PINGROUPFUNCTION %token PARSEOP_PIN_NOPULL %token PARSEOP_PIN_PULLDEFAULT %token PARSEOP_PIN_PULLDOWN %token PARSEOP_PIN_PULLUP %token PARSEOP_CLOCKINPUT %token PARSEOP_CLOCK_HZ %token PARSEOP_CLOCK_KHZ %token PARSEOP_CLOCK_MHZ %token PARSEOP_CLOCK_FIXED %token PARSEOP_CLOCK_VARIABLE %token PARSEOP_POWERRESOURCE %token PARSEOP_PROCESSOR %token PARSEOP_QWORDCONST %token PARSEOP_QWORDIO %token PARSEOP_QWORDMEMORY %token PARSEOP_QWORDPCC %token PARSEOP_QWORDSPACE %token PARSEOP_RANGETYPE_ENTIRE %token PARSEOP_RANGETYPE_ISAONLY %token PARSEOP_RANGETYPE_NONISAONLY %token PARSEOP_RAW_DATA %token PARSEOP_READWRITETYPE_BOTH %token PARSEOP_READWRITETYPE_READONLY %token PARSEOP_REFOF %token PARSEOP_REGIONSPACE_CMOS %token PARSEOP_REGIONSPACE_EC %token PARSEOP_REGIONSPACE_FFIXEDHW %token PARSEOP_REGIONSPACE_GPIO %token PARSEOP_REGIONSPACE_GSBUS %token PARSEOP_REGIONSPACE_IO %token PARSEOP_REGIONSPACE_IPMI %token PARSEOP_REGIONSPACE_MEM %token PARSEOP_REGIONSPACE_PCC %token PARSEOP_REGIONSPACE_PCI %token PARSEOP_REGIONSPACE_PCIBAR %token PARSEOP_REGIONSPACE_PRM %token PARSEOP_REGIONSPACE_SMBUS %token PARSEOP_REGISTER %token PARSEOP_RELEASE %token PARSEOP_RESERVED_BYTES %token PARSEOP_RESET %token PARSEOP_RESOURCETEMPLATE %token PARSEOP_RESOURCETYPE_CONSUMER %token PARSEOP_RESOURCETYPE_PRODUCER %token PARSEOP_RETURN %token PARSEOP_REVISION %token PARSEOP_SCOPE %token PARSEOP_SERIALIZERULE_NOTSERIAL %token PARSEOP_SERIALIZERULE_SERIAL %token PARSEOP_SHARETYPE_EXCLUSIVE %token PARSEOP_SHARETYPE_EXCLUSIVEWAKE %token PARSEOP_SHARETYPE_SHARED %token PARSEOP_SHARETYPE_SHAREDWAKE %token PARSEOP_SHIFTLEFT %token PARSEOP_SHIFTRIGHT %token PARSEOP_SIGNAL %token PARSEOP_SIZEOF %token PARSEOP_SLAVEMODE_CONTROLLERINIT %token PARSEOP_SLAVEMODE_DEVICEINIT %token PARSEOP_SLEEP %token PARSEOP_SPI_SERIALBUS %token PARSEOP_SPI_SERIALBUS_V2 %token PARSEOP_STALL %token PARSEOP_STARTDEPENDENTFN %token PARSEOP_STARTDEPENDENTFN_NOPRI %token PARSEOP_STOPBITS_ONE %token PARSEOP_STOPBITS_ONEPLUSHALF %token PARSEOP_STOPBITS_TWO %token PARSEOP_STOPBITS_ZERO %token PARSEOP_STORE %token PARSEOP_STRING_LITERAL %token PARSEOP_SUBTRACT %token PARSEOP_SWITCH %token PARSEOP_THERMALZONE %token PARSEOP_TIMER %token PARSEOP_TOBCD %token PARSEOP_TOBUFFER %token PARSEOP_TODECIMALSTRING %token PARSEOP_TOHEXSTRING %token PARSEOP_TOINTEGER %token PARSEOP_TOSTRING %token PARSEOP_TOUUID %token PARSEOP_TRANSLATIONTYPE_DENSE %token PARSEOP_TRANSLATIONTYPE_SPARSE %token PARSEOP_TYPE_STATIC %token PARSEOP_TYPE_TRANSLATION %token PARSEOP_UART_SERIALBUS %token PARSEOP_UART_SERIALBUS_V2 %token PARSEOP_UNICODE %token PARSEOP_UNLOAD %token PARSEOP_UPDATERULE_ONES %token PARSEOP_UPDATERULE_PRESERVE %token PARSEOP_UPDATERULE_ZEROS %token PARSEOP_VAR_PACKAGE %token PARSEOP_VENDORLONG %token PARSEOP_VENDORSHORT %token PARSEOP_WAIT %token PARSEOP_WHILE %token PARSEOP_WIREMODE_FOUR %token PARSEOP_WIREMODE_THREE %token PARSEOP_WORDBUSNUMBER %token PARSEOP_WORDCONST %token PARSEOP_WORDIO %token PARSEOP_WORDPCC %token PARSEOP_WORDSPACE %token PARSEOP_XFERSIZE_8 %token PARSEOP_XFERSIZE_16 %token PARSEOP_XFERSIZE_32 %token PARSEOP_XFERSIZE_64 %token PARSEOP_XFERSIZE_128 %token PARSEOP_XFERSIZE_256 %token PARSEOP_XFERTYPE_8 %token PARSEOP_XFERTYPE_8_16 %token PARSEOP_XFERTYPE_16 %token PARSEOP_XOR %token PARSEOP_ZERO /* ToPld macro */ %token PARSEOP_TOPLD %token PARSEOP_PLD_REVISION %token PARSEOP_PLD_IGNORECOLOR %token PARSEOP_PLD_RED %token PARSEOP_PLD_GREEN %token PARSEOP_PLD_BLUE %token PARSEOP_PLD_WIDTH %token PARSEOP_PLD_HEIGHT %token PARSEOP_PLD_USERVISIBLE %token PARSEOP_PLD_DOCK %token PARSEOP_PLD_LID %token PARSEOP_PLD_PANEL %token PARSEOP_PLD_VERTICALPOSITION %token PARSEOP_PLD_HORIZONTALPOSITION %token PARSEOP_PLD_SHAPE %token PARSEOP_PLD_GROUPORIENTATION %token PARSEOP_PLD_GROUPTOKEN %token PARSEOP_PLD_GROUPPOSITION %token PARSEOP_PLD_BAY %token PARSEOP_PLD_EJECTABLE %token PARSEOP_PLD_EJECTREQUIRED %token PARSEOP_PLD_CABINETNUMBER %token PARSEOP_PLD_CARDCAGENUMBER %token PARSEOP_PLD_REFERENCE %token PARSEOP_PLD_ROTATION %token PARSEOP_PLD_ORDER %token PARSEOP_PLD_RESERVED %token PARSEOP_PLD_VERTICALOFFSET %token PARSEOP_PLD_HORIZONTALOFFSET /* * C-style expression parser. These must appear after all of the * standard ASL operators and keywords. * * Note: The order of these tokens implements the precedence rules * (low precedence to high). See aslrules.y for an exhaustive list. */ %right PARSEOP_EXP_EQUALS PARSEOP_EXP_ADD_EQ PARSEOP_EXP_SUB_EQ PARSEOP_EXP_MUL_EQ PARSEOP_EXP_DIV_EQ PARSEOP_EXP_MOD_EQ PARSEOP_EXP_SHL_EQ PARSEOP_EXP_SHR_EQ PARSEOP_EXP_AND_EQ PARSEOP_EXP_XOR_EQ PARSEOP_EXP_OR_EQ %left PARSEOP_EXP_LOGICAL_OR %left PARSEOP_EXP_LOGICAL_AND %left PARSEOP_EXP_OR %left PARSEOP_EXP_XOR %left PARSEOP_EXP_AND %left PARSEOP_EXP_EQUAL PARSEOP_EXP_NOT_EQUAL %left PARSEOP_EXP_GREATER PARSEOP_EXP_LESS PARSEOP_EXP_GREATER_EQUAL PARSEOP_EXP_LESS_EQUAL %left PARSEOP_EXP_SHIFT_RIGHT PARSEOP_EXP_SHIFT_LEFT %left PARSEOP_EXP_ADD PARSEOP_EXP_SUBTRACT %left PARSEOP_EXP_MULTIPLY PARSEOP_EXP_DIVIDE PARSEOP_EXP_MODULO %right PARSEOP_EXP_NOT PARSEOP_EXP_LOGICAL_NOT %left PARSEOP_EXP_INCREMENT PARSEOP_EXP_DECREMENT %left PARSEOP_OPEN_PAREN PARSEOP_CLOSE_PAREN /* Brackets for Index() support */ %left PARSEOP_EXP_INDEX_LEFT %right PARSEOP_EXP_INDEX_RIGHT /* Macros */ %token PARSEOP_PRINTF %token PARSEOP_FPRINTF %token PARSEOP_FOR /* Structures */ %token PARSEOP_STRUCTURE %token PARSEOP_STRUCTURE_NAMESTRING %token PARSEOP_STRUCTURE_TAG %token PARSEOP_STRUCTURE_ELEMENT %token PARSEOP_STRUCTURE_INSTANCE %token PARSEOP_STRUCTURE_REFERENCE %token PARSEOP_STRUCTURE_POINTER /* Top level */ %token PARSEOP_ASL_CODE /******************************************************************************* * * Tokens below are not in the aslmap.c file * ******************************************************************************/ /* Tokens below this are not in the aslmap.c file */ /* Specific parentheses tokens are not used at this time */ /* PARSEOP_EXP_PAREN_OPEN */ /* PARSEOP_EXP_PAREN_CLOSE */ /* ASL+ variable creation */ %token PARSEOP_INTEGER_TYPE %token PARSEOP_STRING_TYPE %token PARSEOP_BUFFER_TYPE %token PARSEOP_PACKAGE_TYPE %token PARSEOP_REFERENCE_TYPE /* * Special functions. These should probably stay at the end of this * table. */ %token PARSEOP___DATE__ %token PARSEOP___FILE__ %token PARSEOP___LINE__ %token PARSEOP___PATH__ %token PARSEOP___METHOD__ acpica-unix-20250404/source/compiler/aslprimaries.y0000775000175000017500000013423114773714131021543 0ustar ivanhuivanhuNoEcho(' /****************************************************************************** * * Module Name: aslprimaries.y - Rules for primary ASL operators * - Keep this file synched with the * CvParseOpBlockType function in cvcompiler.c * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ ') /******************************************************************************* * * ASL Primary Terms * ******************************************************************************/ AccessAsTerm : PARSEOP_ACCESSAS PARSEOP_OPEN_PAREN AccessTypeKeyword OptionalAccessAttribTerm PARSEOP_CLOSE_PAREN {$$ = TrCreateOp (PARSEOP_ACCESSAS,2,$3,$4);} | PARSEOP_ACCESSAS PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; AcquireTerm : PARSEOP_ACQUIRE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp(PARSEOP_ACQUIRE);} SuperName ',' WordConstExpr PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$6);} | PARSEOP_ACQUIRE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; AddTerm : PARSEOP_ADD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_ADD);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_ADD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; AliasTerm : PARSEOP_ALIAS PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_ALIAS);} NameString NameStringItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4, TrSetOpFlags ($5, OP_IS_NAME_DECLARATION));} | PARSEOP_ALIAS PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; AndTerm : PARSEOP_AND PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_AND);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_AND PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ArgTerm : PARSEOP_ARG0 {$$ = TrCreateLeafOp (PARSEOP_ARG0);} | PARSEOP_ARG1 {$$ = TrCreateLeafOp (PARSEOP_ARG1);} | PARSEOP_ARG2 {$$ = TrCreateLeafOp (PARSEOP_ARG2);} | PARSEOP_ARG3 {$$ = TrCreateLeafOp (PARSEOP_ARG3);} | PARSEOP_ARG4 {$$ = TrCreateLeafOp (PARSEOP_ARG4);} | PARSEOP_ARG5 {$$ = TrCreateLeafOp (PARSEOP_ARG5);} | PARSEOP_ARG6 {$$ = TrCreateLeafOp (PARSEOP_ARG6);} ; BankFieldTerm : PARSEOP_BANKFIELD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_BANKFIELD);} NameString NameStringItem TermArgItem OptionalAccessTypeKeyword OptionalLockRuleKeyword OptionalUpdateRuleKeyword PARSEOP_CLOSE_PAREN '{' FieldUnitList '}' {$$ = TrLinkOpChildren ($3,7, $4,$5,$6,$7,$8,$9,$12);} | PARSEOP_BANKFIELD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN '{' error '}' {$$ = AslDoError(); yyclearin;} ; BreakTerm : PARSEOP_BREAK {$$ = TrCreateOp (PARSEOP_BREAK, 0);} ; BreakPointTerm : PARSEOP_BREAKPOINT {$$ = TrCreateOp (PARSEOP_BREAKPOINT, 0);} ; BufferTerm : PARSEOP_BUFFER {$$ = TrCreateLeafOp (PARSEOP_BUFFER); COMMENT_CAPTURE_OFF; } OptionalDataCount '{' BufferTermData '}' {$$ = TrLinkOpChildren ($2,2,$3,$5); COMMENT_CAPTURE_ON;} ; BufferTermData : ByteList {} | StringData {} ; CaseTerm : PARSEOP_CASE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CASE);} DataObject PARSEOP_CLOSE_PAREN '{' TermList '}' {$$ = TrLinkOpChildren ($3,2,$4,$7);} | PARSEOP_CASE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ConcatTerm : PARSEOP_CONCATENATE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CONCATENATE);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_CONCATENATE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ConcatResTerm : PARSEOP_CONCATENATERESTEMPLATE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp ( PARSEOP_CONCATENATERESTEMPLATE);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_CONCATENATERESTEMPLATE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; CondRefOfTerm : PARSEOP_CONDREFOF PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CONDREFOF);} CondRefOfSource Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_CONDREFOF PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ConnectionTerm : PARSEOP_CONNECTION PARSEOP_OPEN_PAREN NameString PARSEOP_CLOSE_PAREN {$$ = TrCreateOp (PARSEOP_CONNECTION,1,$3);} | PARSEOP_CONNECTION PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CONNECTION);} ResourceMacroTerm PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3, 1, TrLinkOpChildren ( TrCreateLeafOp (PARSEOP_RESOURCETEMPLATE), 3, TrCreateLeafOp (PARSEOP_DEFAULT_ARG), TrCreateLeafOp (PARSEOP_DEFAULT_ARG), $4));} | PARSEOP_CONNECTION PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ContinueTerm : PARSEOP_CONTINUE {$$ = TrCreateOp (PARSEOP_CONTINUE, 0);} ; CopyObjectTerm : PARSEOP_COPYOBJECT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_COPYOBJECT);} TermArg ',' SimpleName PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4, TrSetOpFlags ($6, OP_IS_TARGET));} | PARSEOP_COPYOBJECT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; CreateBitFieldTerm : PARSEOP_CREATEBITFIELD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CREATEBITFIELD);} TermArg TermArgItem NameStringItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5, TrSetOpFlags ($6, OP_IS_NAME_DECLARATION));} | PARSEOP_CREATEBITFIELD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; CreateByteFieldTerm : PARSEOP_CREATEBYTEFIELD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CREATEBYTEFIELD);} TermArg TermArgItem NameStringItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5, TrSetOpFlags ($6, OP_IS_NAME_DECLARATION));} | PARSEOP_CREATEBYTEFIELD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; CreateDWordFieldTerm : PARSEOP_CREATEDWORDFIELD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CREATEDWORDFIELD);} TermArg TermArgItem NameStringItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5, TrSetOpFlags ($6, OP_IS_NAME_DECLARATION));} | PARSEOP_CREATEDWORDFIELD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; CreateFieldTerm : PARSEOP_CREATEFIELD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CREATEFIELD);} TermArg TermArgItem TermArgItem NameStringItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4,$4,$5,$6, TrSetOpFlags ($7, OP_IS_NAME_DECLARATION));} | PARSEOP_CREATEFIELD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; CreateQWordFieldTerm : PARSEOP_CREATEQWORDFIELD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CREATEQWORDFIELD);} TermArg TermArgItem NameStringItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5, TrSetOpFlags ($6, OP_IS_NAME_DECLARATION));} | PARSEOP_CREATEQWORDFIELD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; CreateWordFieldTerm : PARSEOP_CREATEWORDFIELD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_CREATEWORDFIELD);} TermArg TermArgItem NameStringItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5, TrSetOpFlags ($6, OP_IS_NAME_DECLARATION));} | PARSEOP_CREATEWORDFIELD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; DataRegionTerm : PARSEOP_DATATABLEREGION PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DATATABLEREGION);} NameString TermArgItem TermArgItem TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION),$5,$6,$7);} | PARSEOP_DATATABLEREGION PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; DebugTerm : PARSEOP_DEBUG {$$ = TrCreateLeafOp (PARSEOP_DEBUG);} ; DecTerm : PARSEOP_DECREMENT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DECREMENT);} SuperName PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_DECREMENT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; DefaultTerm : PARSEOP_DEFAULT '{' {$$ = TrCreateLeafOp (PARSEOP_DEFAULT);} TermList '}' {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_DEFAULT '{' error '}' {$$ = AslDoError(); yyclearin;} ; DerefOfTerm : PARSEOP_DEREFOF PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DEREFOF);} DerefOfSource PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_DEREFOF PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; DeviceTerm : PARSEOP_DEVICE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DEVICE);} NameString PARSEOP_CLOSE_PAREN '{' TermList '}' {$$ = TrLinkOpChildren ($3,2, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION),$7);} | PARSEOP_DEVICE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; DivideTerm : PARSEOP_DIVIDE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DIVIDE);} TermArg TermArgItem Target Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4,$4,$5,$6,$7);} | PARSEOP_DIVIDE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; EISAIDTerm : PARSEOP_EISAID PARSEOP_OPEN_PAREN StringLiteral PARSEOP_CLOSE_PAREN {$$ = TrSetOpIntegerValue (PARSEOP_EISAID, $3);} | PARSEOP_EISAID PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ElseIfTerm : IfTerm ElseTerm {$$ = TrLinkPeerOp ($1,$2);} ; ElseTerm : {$$ = NULL;} | PARSEOP_ELSE '{' TermList {$$ = TrCreateLeafOp (PARSEOP_ELSE);} '}' {$$ = TrLinkOpChildren ($4,1,$3);} | PARSEOP_ELSE '{' error '}' {$$ = AslDoError(); yyclearin;} | PARSEOP_ELSE error {$$ = AslDoError(); yyclearin;} | PARSEOP_ELSEIF PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_ELSE);} TermArg {$$ = TrCreateLeafOp (PARSEOP_IF);} PARSEOP_CLOSE_PAREN '{' TermList '}' {TrLinkOpChildren ($5,2,$4,$8);} ElseTerm {TrLinkPeerOp ($5,$11);} {$$ = TrLinkOpChildren ($3,1,$5);} | PARSEOP_ELSEIF PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} | PARSEOP_ELSEIF error {$$ = AslDoError(); yyclearin;} ; EventTerm : PARSEOP_EVENT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_EVENT);} NameString PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION));} | PARSEOP_EVENT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ExternalTerm : PARSEOP_EXTERNAL PARSEOP_OPEN_PAREN NameString OptionalObjectTypeKeyword OptionalParameterTypePackage OptionalParameterTypesPackage PARSEOP_CLOSE_PAREN {$$ = TrCreateOp (PARSEOP_EXTERNAL,4,$3,$4,$5,$6);} | PARSEOP_EXTERNAL PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; FatalTerm : PARSEOP_FATAL PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_FATAL);} ByteConstExpr ',' DWordConstExpr TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$6,$7);} | PARSEOP_FATAL PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; FieldTerm : PARSEOP_FIELD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_FIELD);} NameString OptionalAccessTypeKeyword OptionalLockRuleKeyword OptionalUpdateRuleKeyword PARSEOP_CLOSE_PAREN '{' FieldUnitList '}' {$$ = TrLinkOpChildren ($3,5,$4,$5,$6,$7,$10);} | PARSEOP_FIELD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN '{' error '}' {$$ = AslDoError(); yyclearin;} ; FindSetLeftBitTerm : PARSEOP_FINDSETLEFTBIT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_FINDSETLEFTBIT);} TermArg Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_FINDSETLEFTBIT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; FindSetRightBitTerm : PARSEOP_FINDSETRIGHTBIT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_FINDSETRIGHTBIT);} TermArg Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_FINDSETRIGHTBIT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; /* Convert a For() loop to a While() loop */ ForTerm : PARSEOP_FOR PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_WHILE);} OptionalTermArg ',' {} OptionalPredicate ',' OptionalTermArg {$$ = TrLinkPeerOp ($4,$3); TrSetOpParent ($9,$3);} /* New parent is WHILE */ PARSEOP_CLOSE_PAREN '{' TermList '}' {$$ = TrLinkOpChildren ($3,2,$7,$13);} {$$ = TrLinkPeerOp ($13,$9); $$ = $10;} ; OptionalPredicate : {$$ = TrCreateValuedLeafOp (PARSEOP_INTEGER, 1);} | TermArg {$$ = $1;} ; FprintfTerm : PARSEOP_FPRINTF PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_FPRINTF);} TermArg ',' StringLiteral PrintfArgList PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$6,$7);} | PARSEOP_FPRINTF PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; FromBCDTerm : PARSEOP_FROMBCD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_FROMBCD);} TermArg Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_FROMBCD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; FunctionTerm : PARSEOP_FUNCTION PARSEOP_OPEN_PAREN {COMMENT_CAPTURE_OFF; $$ = TrCreateLeafOp (PARSEOP_METHOD); } NameString OptionalParameterTypePackage OptionalParameterTypesPackage PARSEOP_CLOSE_PAREN '{' {COMMENT_CAPTURE_ON; } TermList '}' {$$ = TrLinkOpChildren ($3,7, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION), TrCreateLeafOp (PARSEOP_DEFAULT_ARG), TrCreateLeafOp (PARSEOP_SERIALIZERULE_NOTSERIAL), TrCreateValuedLeafOp (PARSEOP_BYTECONST, 0),$5,$6,$10);} | PARSEOP_FUNCTION PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; IfTerm : PARSEOP_IF PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_IF);} TermArg PARSEOP_CLOSE_PAREN '{' TermList '}' {$$ = TrLinkOpChildren ($3,2,$4,$7);} | PARSEOP_IF PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; IncludeTerm : PARSEOP_INCLUDE PARSEOP_OPEN_PAREN String PARSEOP_CLOSE_PAREN {$$ = TrSetOpIntegerValue (PARSEOP_INCLUDE, $3); FlOpenIncludeFile ($3);} ; IncludeEndTerm : PARSEOP_INCLUDE_END {$$ = TrCreateLeafOp (PARSEOP_INCLUDE_END); TrSetOpCurrentFilename ($$);} ; IncTerm : PARSEOP_INCREMENT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_INCREMENT);} SuperName PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_INCREMENT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; IndexFieldTerm : PARSEOP_INDEXFIELD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_INDEXFIELD);} NameString NameStringItem OptionalAccessTypeKeyword OptionalLockRuleKeyword OptionalUpdateRuleKeyword PARSEOP_CLOSE_PAREN '{' FieldUnitList '}' {$$ = TrLinkOpChildren ($3,6,$4,$5,$6,$7,$8,$11);} | PARSEOP_INDEXFIELD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN '{' error '}' {$$ = AslDoError(); yyclearin;} ; IndexTerm : PARSEOP_INDEX PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_INDEX);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_INDEX PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LAndTerm : PARSEOP_LAND PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LAND);} TermArg TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_LAND PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LEqualTerm : PARSEOP_LEQUAL PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LEQUAL);} TermArg TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_LEQUAL PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LGreaterEqualTerm : PARSEOP_LGREATEREQUAL PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LLESS);} TermArg TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrCreateOp (PARSEOP_LNOT, 1, TrLinkOpChildren ($3,2,$4,$5));} | PARSEOP_LGREATEREQUAL PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LGreaterTerm : PARSEOP_LGREATER PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LGREATER);} TermArg TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_LGREATER PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LLessEqualTerm : PARSEOP_LLESSEQUAL PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LGREATER);} TermArg TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrCreateOp (PARSEOP_LNOT, 1, TrLinkOpChildren ($3,2,$4,$5));} | PARSEOP_LLESSEQUAL PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LLessTerm : PARSEOP_LLESS PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LLESS);} TermArg TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_LLESS PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LNotEqualTerm : PARSEOP_LNOTEQUAL PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LEQUAL);} TermArg TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrCreateOp (PARSEOP_LNOT, 1, TrLinkOpChildren ($3,2,$4,$5));} | PARSEOP_LNOTEQUAL PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LNotTerm : PARSEOP_LNOT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LNOT);} TermArg PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_LNOT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LoadTableTerm : PARSEOP_LOADTABLE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LOADTABLE);} TermArg TermArgItem TermArgItem OptionalListString OptionalListString OptionalReference PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,6,$4,$5,$6,$7,$8,$9);} | PARSEOP_LOADTABLE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LoadTerm : PARSEOP_LOAD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LOAD);} NameString Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_LOAD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; LocalTerm : PARSEOP_LOCAL0 {$$ = TrCreateLeafOp (PARSEOP_LOCAL0);} | PARSEOP_LOCAL1 {$$ = TrCreateLeafOp (PARSEOP_LOCAL1);} | PARSEOP_LOCAL2 {$$ = TrCreateLeafOp (PARSEOP_LOCAL2);} | PARSEOP_LOCAL3 {$$ = TrCreateLeafOp (PARSEOP_LOCAL3);} | PARSEOP_LOCAL4 {$$ = TrCreateLeafOp (PARSEOP_LOCAL4);} | PARSEOP_LOCAL5 {$$ = TrCreateLeafOp (PARSEOP_LOCAL5);} | PARSEOP_LOCAL6 {$$ = TrCreateLeafOp (PARSEOP_LOCAL6);} | PARSEOP_LOCAL7 {$$ = TrCreateLeafOp (PARSEOP_LOCAL7);} ; LOrTerm : PARSEOP_LOR PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_LOR);} TermArg TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_LOR PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; MatchTerm : PARSEOP_MATCH PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_MATCH);} TermArg ',' MatchOpKeyword TermArgItem ',' MatchOpKeyword TermArgItem TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,6,$4,$6,$7,$9,$10,$11);} | PARSEOP_MATCH PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; MethodTerm : PARSEOP_METHOD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_METHOD); COMMENT_CAPTURE_OFF;} NameString OptionalByteConstExpr {UtCheckIntegerRange ($5, 0, 7);} OptionalSerializeRuleKeyword OptionalByteConstExpr OptionalParameterTypePackage OptionalParameterTypesPackage PARSEOP_CLOSE_PAREN '{' {COMMENT_CAPTURE_ON;} TermList '}' {$$ = TrLinkOpChildren ($3,7, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION), $5,$7,$8,$9,$10,$14);} | PARSEOP_METHOD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; MidTerm : PARSEOP_MID PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_MID);} TermArg TermArgItem TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4,$4,$5,$6,$7);} | PARSEOP_MID PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ModTerm : PARSEOP_MOD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_MOD);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_MOD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; MultiplyTerm : PARSEOP_MULTIPLY PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_MULTIPLY);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_MULTIPLY PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; MutexTerm : PARSEOP_MUTEX PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_MUTEX);} NameString OptionalSyncLevel PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION),$5);} | PARSEOP_MUTEX PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; NameTerm : PARSEOP_NAME PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_NAME);} NameString ',' DataObject PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION),$6);} | PARSEOP_NAME PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; NAndTerm : PARSEOP_NAND PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_NAND);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_NAND PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; NoOpTerm : PARSEOP_NOOP {$$ = TrCreateOp (PARSEOP_NOOP, 0);} ; NOrTerm : PARSEOP_NOR PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_NOR);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_NOR PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; NotifyTerm : PARSEOP_NOTIFY PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_NOTIFY);} SuperName TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_NOTIFY PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; NotTerm : PARSEOP_NOT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_NOT);} TermArg Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_NOT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ObjectTypeTerm : PARSEOP_OBJECTTYPE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE);} ObjectTypeSource PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_OBJECTTYPE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; OffsetTerm : PARSEOP_OFFSET PARSEOP_OPEN_PAREN AmlPackageLengthTerm PARSEOP_CLOSE_PAREN {$$ = TrCreateOp (PARSEOP_OFFSET,1,$3);} | PARSEOP_OFFSET PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; OpRegionTerm : PARSEOP_OPERATIONREGION PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_OPERATIONREGION);} NameString ',' OpRegionSpaceIdTerm TermArgItem TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,4, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION), $6,$7,$8);} | PARSEOP_OPERATIONREGION PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; OpRegionSpaceIdTerm : RegionSpaceKeyword {} | ByteConst {$$ = UtCheckIntegerRange ($1, 0x80, 0xFF);} ; OrTerm : PARSEOP_OR PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_OR);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_OR PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; PackageTerm : PARSEOP_PACKAGE {$$ = TrCreateLeafOp (PARSEOP_VAR_PACKAGE);} OptionalDataCount '{' PackageList '}' {$$ = TrLinkOpChildren ($2,2,$3,$5);} PowerResTerm : PARSEOP_POWERRESOURCE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_POWERRESOURCE);} NameString ',' ByteConstExpr ',' WordConstExpr PARSEOP_CLOSE_PAREN '{' TermList '}' {$$ = TrLinkOpChildren ($3,4, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION), $6,$8,$11);} | PARSEOP_POWERRESOURCE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; PrintfTerm : PARSEOP_PRINTF PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_PRINTF);} StringLiteral PrintfArgList PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_PRINTF PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; PrintfArgList : {$$ = NULL;} | TermArg {$$ = $1;} | PrintfArgList ',' TermArg {$$ = TrLinkPeerOp ($1, $3);} ; ProcessorTerm : PARSEOP_PROCESSOR PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_PROCESSOR);} NameString ',' ByteConstExpr OptionalDWordConstExpr OptionalByteConstExpr PARSEOP_CLOSE_PAREN '{' TermList '}' {$$ = TrLinkOpChildren ($3,5, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION), $6,$7,$8,$11);} | PARSEOP_PROCESSOR PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; RawDataBufferTerm : PARSEOP_DATABUFFER PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DATABUFFER);} OptionalWordConst PARSEOP_CLOSE_PAREN '{' ByteList '}' {$$ = TrLinkOpChildren ($3,2,$4,$7);} | PARSEOP_DATABUFFER PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; /* * In RefOf, the node isn't really a target, but we can't keep track of it after * we've taken a pointer to it. (hard to tell if a local becomes initialized this way.) */ RefOfTerm : PARSEOP_REFOF PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_REFOF);} RefOfSource PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1, TrSetOpFlags ($4, OP_IS_TARGET));} | PARSEOP_REFOF PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ReleaseTerm : PARSEOP_RELEASE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_RELEASE);} SuperName PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_RELEASE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ResetTerm : PARSEOP_RESET PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_RESET);} SuperName PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_RESET PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ReturnTerm : PARSEOP_RETURN PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_RETURN);} OptionalReturnArg PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_RETURN {$$ = TrLinkOpChildren ( TrCreateLeafOp (PARSEOP_RETURN),1, TrSetOpFlags (TrCreateLeafOp (PARSEOP_ZERO), OP_IS_NULL_RETURN));} | PARSEOP_RETURN PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ScopeTerm : PARSEOP_SCOPE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SCOPE);} NameString PARSEOP_CLOSE_PAREN '{' TermList '}' {$$ = TrLinkOpChildren ($3,2, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION),$7);} | PARSEOP_SCOPE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ShiftLeftTerm : PARSEOP_SHIFTLEFT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SHIFTLEFT);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_SHIFTLEFT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ShiftRightTerm : PARSEOP_SHIFTRIGHT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SHIFTRIGHT);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_SHIFTRIGHT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; SignalTerm : PARSEOP_SIGNAL PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SIGNAL);} SuperName PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_SIGNAL PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; SizeOfTerm : PARSEOP_SIZEOF PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SIZEOF);} SuperName PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_SIZEOF PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; SleepTerm : PARSEOP_SLEEP PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SLEEP);} TermArg PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_SLEEP PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; StallTerm : PARSEOP_STALL PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_STALL);} TermArg PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_STALL PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; StoreTerm : PARSEOP_STORE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_STORE);} TermArg ',' SuperName PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4, TrSetOpFlags ($6, OP_IS_TARGET));} | PARSEOP_STORE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; SubtractTerm : PARSEOP_SUBTRACT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SUBTRACT);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_SUBTRACT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; SwitchTerm : PARSEOP_SWITCH PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_SWITCH);} TermArg PARSEOP_CLOSE_PAREN '{' CaseDefaultTermList '}' {$$ = TrLinkOpChildren ($3,2,$4,$7);} | PARSEOP_SWITCH PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ThermalZoneTerm : PARSEOP_THERMALZONE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_THERMALZONE);} NameString PARSEOP_CLOSE_PAREN '{' TermList '}' {$$ = TrLinkOpChildren ($3,2, TrSetOpFlags ($4, OP_IS_NAME_DECLARATION),$7);} | PARSEOP_THERMALZONE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; TimerTerm : PARSEOP_TIMER PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_TIMER);} PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,0);} | PARSEOP_TIMER {$$ = TrLinkOpChildren ( TrCreateLeafOp (PARSEOP_TIMER),0);} | PARSEOP_TIMER PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ToBCDTerm : PARSEOP_TOBCD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_TOBCD);} TermArg Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_TOBCD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ToBufferTerm : PARSEOP_TOBUFFER PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_TOBUFFER);} TermArg Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_TOBUFFER PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ToDecimalStringTerm : PARSEOP_TODECIMALSTRING PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_TODECIMALSTRING);} TermArg Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_TODECIMALSTRING PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ToHexStringTerm : PARSEOP_TOHEXSTRING PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_TOHEXSTRING);} TermArg Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_TOHEXSTRING PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ToIntegerTerm : PARSEOP_TOINTEGER PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_TOINTEGER);} TermArg Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_TOINTEGER PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ToPLDTerm : PARSEOP_TOPLD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_TOPLD);} PldKeywordList PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_TOPLD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; PldKeywordList : {$$ = NULL;} | PldKeyword PARSEOP_EXP_EQUALS Integer {$$ = TrLinkOpChildren ($1,1,$3);} | PldKeyword PARSEOP_EXP_EQUALS String {$$ = TrLinkOpChildren ($1,1,$3);} | PldKeywordList ',' /* Allows a trailing comma at list end */ | PldKeywordList ',' PldKeyword PARSEOP_EXP_EQUALS Integer {$$ = TrLinkPeerOp ($1,TrLinkOpChildren ($3,1,$5));} | PldKeywordList ',' PldKeyword PARSEOP_EXP_EQUALS String {$$ = TrLinkPeerOp ($1,TrLinkOpChildren ($3,1,$5));} ; ToStringTerm : PARSEOP_TOSTRING PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_TOSTRING);} TermArg OptionalCount Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_TOSTRING PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; ToUUIDTerm : PARSEOP_TOUUID PARSEOP_OPEN_PAREN StringLiteral PARSEOP_CLOSE_PAREN {$$ = TrSetOpIntegerValue (PARSEOP_TOUUID, $3);} | PARSEOP_TOUUID PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; UnicodeTerm : PARSEOP_UNICODE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_UNICODE);} StringLiteral PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,0,$4);} | PARSEOP_UNICODE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; UnloadTerm : PARSEOP_UNLOAD PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_UNLOAD);} SuperName PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_UNLOAD PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; WaitTerm : PARSEOP_WAIT PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_WAIT);} SuperName TermArgItem PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,2,$4,$5);} | PARSEOP_WAIT PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; XOrTerm : PARSEOP_XOR PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_XOR);} TermArg TermArgItem Target PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,3,$4,$5,$6);} | PARSEOP_XOR PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; WhileTerm : PARSEOP_WHILE PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_WHILE);} TermArg PARSEOP_CLOSE_PAREN '{' TermList '}' {$$ = TrLinkOpChildren ($3,2,$4,$7);} | PARSEOP_WHILE PARSEOP_OPEN_PAREN error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;} ; acpica-unix-20250404/source/compiler/aslascii.c0000775000175000017500000002001514773714131020604 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslascii - ASCII detection and support routines * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include #include #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslascii") /* Local prototypes */ static void FlConsumeAnsiComment ( FILE *Handle, ASL_FILE_STATUS *Status); static void FlConsumeNewComment ( FILE *Handle, ASL_FILE_STATUS *Status); /******************************************************************************* * * FUNCTION: FlIsFileAsciiSource * * PARAMETERS: Filename - Full input filename * DisplayErrors - TRUE if error messages desired * * RETURN: Status * * DESCRIPTION: Verify that the input file is entirely ASCII. Ignores characters * within comments. Note: does not handle nested comments and does * not handle comment delimiters within string literals. However, * on the rare chance this happens and an invalid character is * missed, the parser will catch the error by failing in some * spectacular manner. * ******************************************************************************/ ACPI_STATUS FlIsFileAsciiSource ( char *Filename, BOOLEAN DisplayErrors) { UINT8 Byte; UINT32 BadBytes = 0; BOOLEAN OpeningComment = FALSE; ASL_FILE_STATUS Status; FILE *Handle; /* Open file in text mode so file offset is always accurate */ Handle = fopen (Filename, "rb"); if (!Handle) { perror ("Could not open input file"); return (AE_ERROR); } Status.Line = 1; Status.Offset = 0; /* Read the entire file */ while (fread (&Byte, 1, 1, Handle) == 1) { /* Ignore comment fields (allow non-ASCII within) */ if (OpeningComment) { /* Check for second comment open delimiter */ if (Byte == '*') { FlConsumeAnsiComment (Handle, &Status); } if (Byte == '/') { FlConsumeNewComment (Handle, &Status); } /* Reset */ OpeningComment = FALSE; } else if (Byte == '/') { OpeningComment = TRUE; } /* Check for an ASCII character */ if (!ACPI_IS_ASCII (Byte)) { if ((BadBytes < 10) && (DisplayErrors)) { AcpiOsPrintf ( "Found non-ASCII character in source text: " "0x%2.2X in line %u, file offset 0x%2.2X\n", Byte, Status.Line, Status.Offset); } BadBytes++; } /* Ensure character is either printable or a "space" char */ else if (!isprint (Byte) && !isspace (Byte)) { if ((BadBytes < 10) && (DisplayErrors)) { AcpiOsPrintf ( "Found invalid character in source text: " "0x%2.2X in line %u, file offset 0x%2.2X\n", Byte, Status.Line, Status.Offset); } BadBytes++; } /* Update line counter as necessary */ if (Byte == 0x0A) { Status.Line++; } Status.Offset++; } fclose (Handle); /* Were there any non-ASCII characters in the file? */ if (BadBytes) { fprintf (stderr, "File appears to be binary: found %u non-ASCII characters, disassembling\n", BadBytes); if (DisplayErrors) { AcpiOsPrintf ( "Total %u invalid characters found in input source text, " "could be a binary file\n", BadBytes); AslError (ASL_ERROR, ASL_MSG_NON_ASCII, NULL, Filename); } return (AE_BAD_CHARACTER); } /* File is OK (100% ASCII) */ return (AE_OK); } /******************************************************************************* * * FUNCTION: FlConsumeAnsiComment * * PARAMETERS: Handle - Open input file * Status - File current status struct * * RETURN: Number of lines consumed * * DESCRIPTION: Step over a normal slash-star type comment * ******************************************************************************/ static void FlConsumeAnsiComment ( FILE *Handle, ASL_FILE_STATUS *Status) { UINT8 Byte; BOOLEAN ClosingComment = FALSE; while (fread (&Byte, 1, 1, Handle) == 1) { /* Scan until comment close is found */ if (ClosingComment) { if (Byte == '/') { Status->Offset++; return; } if (Byte != '*') { /* Reset */ ClosingComment = FALSE; } } else if (Byte == '*') { ClosingComment = TRUE; } /* Maintain line count */ if (Byte == 0x0A) { Status->Line++; } Status->Offset++; } } /******************************************************************************* * * FUNCTION: FlConsumeNewComment * * PARAMETERS: Handle - Open input file * Status - File current status struct * * RETURN: Number of lines consumed * * DESCRIPTION: Step over a slash-slash type of comment * ******************************************************************************/ static void FlConsumeNewComment ( FILE *Handle, ASL_FILE_STATUS *Status) { UINT8 Byte; while (fread (&Byte, 1, 1, Handle) == 1) { Status->Offset++; /* Comment ends at newline */ if (Byte == 0x0A) { Status->Line++; return; } } } acpica-unix-20250404/source/compiler/aslfiles.c0000775000175000017500000010242514773714131020624 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslfiles - File support functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acapps.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslfiles") /* Local prototypes */ static FILE * FlOpenIncludeWithPrefix ( char *PrefixDir, ACPI_PARSE_OBJECT *Op, char *Filename); static BOOLEAN FlInputFileExists ( char *InputFilename); #ifdef ACPI_OBSOLETE_FUNCTIONS ACPI_STATUS FlParseInputPathname ( char *InputFilename); #endif /******************************************************************************* * * FUNCTION: FlInitOneFile * * PARAMETERS: InputFilename - The user-specified ASL source file to be * compiled * * RETURN: Status * * DESCRIPTION: Initialize global file structure for one input file. This file * structure contains references to input, output, debugging, and * other miscellaneous files that are associated for a single * input ASL file. * ******************************************************************************/ ACPI_STATUS FlInitOneFile ( char *InputFilename) { UINT32 i; ASL_GLOBAL_FILE_NODE *NewFileNode; if (FlInputFileExists (InputFilename)) { AslError (ASL_ERROR, ASL_MSG_DUPLICATE_INPUT_FILE, NULL, InputFilename); return (AE_ALREADY_EXISTS); } NewFileNode = ACPI_CAST_PTR (ASL_GLOBAL_FILE_NODE, UtLocalCacheCalloc (sizeof (ASL_GLOBAL_FILE_NODE))); NewFileNode->ParserErrorDetected = FALSE; NewFileNode->Next = AslGbl_FilesList; AslGbl_FilesList = NewFileNode; AslGbl_Files = NewFileNode->Files; for (i = 0; i < ASL_NUM_FILES; i++) { AslGbl_Files[i].Handle = NULL; AslGbl_Files[i].Filename = NULL; } AslGbl_Files[ASL_FILE_STDOUT].Handle = stdout; AslGbl_Files[ASL_FILE_STDOUT].Filename = "STDOUT"; if (AslGbl_VerboseErrors) { AslGbl_Files[ASL_FILE_STDERR].Handle = stderr; } else { AslGbl_Files[ASL_FILE_STDERR].Handle = stdout; } AslGbl_Files[ASL_FILE_STDERR].Filename = "STDERR"; return (AE_OK); } /******************************************************************************* * * FUNCTION: FlInputFileExists * * PARAMETERS: Filename - File name to be searched * * RETURN: Status * * DESCRIPTION: Returns true if the file name already exists. * ******************************************************************************/ static BOOLEAN FlInputFileExists ( char *Filename) { ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; while (Current) { if (!strcmp (Filename, Current->Files[ASL_FILE_INPUT].Filename)) { return (TRUE); } Current = Current->Next; } return (FALSE); } /******************************************************************************* * * FUNCTION: FlSwitchFileSet * * PARAMETERS: Op - Parse node for the LINE asl statement * * RETURN: None. * * DESCRIPTION: Set the current line number * ******************************************************************************/ ASL_FILE_SWITCH_STATUS FlSwitchFileSet ( char *InputFilename) { ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; char *PrevFilename = Current->Files[ASL_FILE_INPUT].Filename; while (Current) { if (!strcmp(Current->Files[ASL_FILE_INPUT].Filename, InputFilename)) { AslGbl_Files = Current->Files; AslGbl_TableSignature = Current->TableSignature; AslGbl_TableId = Current->TableId; if (!strcmp (InputFilename, PrevFilename)) { return (SWITCH_TO_SAME_FILE); } else { return (SWITCH_TO_DIFFERENT_FILE); } } Current = Current->Next; } return (FILE_NOT_FOUND); } /******************************************************************************* * * FUNCTION: FlGetFileHandle * * PARAMETERS: OutFileId - denotes file type of output handle * InFileId - denotes file type of the input Filename * Filename * * RETURN: File handle * * DESCRIPTION: Get the file handle for a particular filename/FileId. This * function also allows the caller to specify the file Id of the * desired type. * ******************************************************************************/ FILE * FlGetFileHandle ( UINT32 OutFileId, UINT32 InFileId, char *Filename) { ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; if (!Filename) { return (NULL); } while (Current) { if (!((Current->FileType == ASL_INPUT_TYPE_ASCII_DATA) && (InFileId == ASL_FILE_SOURCE_OUTPUT)) && !strcmp (Current->Files[InFileId].Filename, Filename)) { return (Current->Files[OutFileId].Handle); } Current = Current->Next; } return (NULL); } /******************************************************************************* * * FUNCTION: FlGetFileNode * * PARAMETERS: FileId - File type (ID) of the input Filename * Filename - File to search for * * RETURN: A global file node * * DESCRIPTION: Get the file node for a particular filename/FileId. * ******************************************************************************/ ASL_GLOBAL_FILE_NODE * FlGetFileNode ( UINT32 FileId, char *Filename) { ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; if (!Filename) { return (NULL); } while (Current) { if (!strcmp (Current->Files[FileId].Filename, Filename)) { return (Current); } Current = Current->Next; } return (NULL); } /******************************************************************************* * * FUNCTION: FlGetCurrentFileNode * * PARAMETERS: None * * RETURN: Global file node * * DESCRIPTION: Get the current input file node * ******************************************************************************/ ASL_GLOBAL_FILE_NODE * FlGetCurrentFileNode ( void) { ASL_GLOBAL_FILE_NODE *FileNode = FlGetFileNode (ASL_FILE_INPUT,AslGbl_Files[ASL_FILE_INPUT].Filename); if (!FileNode) { /* * If the current file node does not exist after initializing the file * node structures, something went wrong and this is an unrecoverable * condition. */ FlFileError (ASL_FILE_INPUT, ASL_MSG_COMPILER_INTERNAL); AslAbort (); } return (FileNode); } /******************************************************************************* * * FUNCTION: FlSetLineNumber * * PARAMETERS: Op - Parse node for the LINE asl statement * * RETURN: None. * * DESCRIPTION: Set the current line number * ******************************************************************************/ void FlSetLineNumber ( UINT32 LineNumber) { DbgPrint (ASL_PARSE_OUTPUT, "\n#line: New line number %u (old %u)\n", LineNumber, AslGbl_LogicalLineNumber); AslGbl_CurrentLineNumber = LineNumber; } /******************************************************************************* * * FUNCTION: FlSetFilename * * PARAMETERS: Op - Parse node for the LINE asl statement * * RETURN: None. * * DESCRIPTION: Set the current filename * ******************************************************************************/ void FlSetFilename ( char *Filename) { DbgPrint (ASL_PARSE_OUTPUT, "\n#line: New filename %s (old %s)\n", Filename, AslGbl_Files[ASL_FILE_INPUT].Filename); /* No need to free any existing filename */ AslGbl_Files[ASL_FILE_INPUT].Filename = Filename; } /******************************************************************************* * * FUNCTION: FlAddIncludeDirectory * * PARAMETERS: Dir - Directory pathname string * * RETURN: None * * DESCRIPTION: Add a directory the list of include prefix directories. * ******************************************************************************/ void FlAddIncludeDirectory ( char *Dir) { ASL_INCLUDE_DIR *NewDir; ASL_INCLUDE_DIR *NextDir; ASL_INCLUDE_DIR *PrevDir = NULL; UINT32 NeedsSeparator = 0; size_t DirLength; DirLength = strlen (Dir); if (!DirLength) { return; } /* Make sure that the pathname ends with a path separator */ if ((Dir[DirLength-1] != '/') && (Dir[DirLength-1] != '\\')) { NeedsSeparator = 1; } NewDir = ACPI_CAST_PTR (ASL_INCLUDE_DIR, UtLocalCacheCalloc (sizeof (ASL_INCLUDE_DIR))); NewDir->Dir = UtLocalCacheCalloc (DirLength + 1 + NeedsSeparator); strcpy (NewDir->Dir, Dir); if (NeedsSeparator) { strcat (NewDir->Dir, "/"); } /* * Preserve command line ordering of -I options by adding new elements * at the end of the list */ NextDir = AslGbl_IncludeDirList; while (NextDir) { PrevDir = NextDir; NextDir = NextDir->Next; } if (PrevDir) { PrevDir->Next = NewDir; } else { AslGbl_IncludeDirList = NewDir; } } /******************************************************************************* * * FUNCTION: FlMergePathnames * * PARAMETERS: PrefixDir - Prefix directory pathname. Can be NULL or * a zero length string. * FilePathname - The include filename from the source ASL. * * RETURN: Merged pathname string * * DESCRIPTION: Merge two pathnames that (probably) have common elements, to * arrive at a minimal length string. Merge can occur if the * FilePathname is relative to the PrefixDir. * ******************************************************************************/ char * FlMergePathnames ( char *PrefixDir, char *FilePathname) { char *CommonPath; char *Pathname; char *LastElement; DbgPrint (ASL_PARSE_OUTPUT, "Include: Prefix path - \"%s\"\n" "Include: FilePathname - \"%s\"\n", PrefixDir, FilePathname); /* * If there is no prefix directory or if the file pathname is absolute, * just return the original file pathname */ if (!PrefixDir || (!*PrefixDir) || (*FilePathname == '/') || (FilePathname[1] == ':')) { Pathname = UtLocalCacheCalloc (strlen (FilePathname) + 1); strcpy (Pathname, FilePathname); goto ConvertBackslashes; } /* Need a local copy of the prefix directory path */ CommonPath = UtLocalCacheCalloc (strlen (PrefixDir) + 1); strcpy (CommonPath, PrefixDir); /* * Walk forward through the file path, and simultaneously backward * through the prefix directory path until there are no more * relative references at the start of the file path. */ while (*FilePathname && (!strncmp (FilePathname, "../", 3))) { /* Remove last element of the prefix directory path */ LastElement = strrchr (CommonPath, '/'); if (!LastElement) { goto ConcatenatePaths; } *LastElement = 0; /* Terminate CommonPath string */ FilePathname += 3; /* Point to next path element */ } /* * Remove the last element of the prefix directory path (it is the same as * the first element of the file pathname), and build the final merged * pathname. */ LastElement = strrchr (CommonPath, '/'); if (LastElement) { *LastElement = 0; } /* Build the final merged pathname */ ConcatenatePaths: Pathname = UtLocalCacheCalloc ( strlen (CommonPath) + strlen (FilePathname) + 2); if (LastElement && *CommonPath) { strcpy (Pathname, CommonPath); strcat (Pathname, "/"); } strcat (Pathname, FilePathname); /* Convert all backslashes to normal slashes */ ConvertBackslashes: UtConvertBackslashes (Pathname); DbgPrint (ASL_PARSE_OUTPUT, "Include: Merged Pathname - \"%s\"\n", Pathname); return (Pathname); } /******************************************************************************* * * FUNCTION: FlOpenIncludeWithPrefix * * PARAMETERS: PrefixDir - Prefix directory pathname. Can be a zero * length string. * Filename - The include filename from the source ASL. * * RETURN: Valid file descriptor if successful. Null otherwise. * * DESCRIPTION: Open an include file and push it on the input file stack. * ******************************************************************************/ static FILE * FlOpenIncludeWithPrefix ( char *PrefixDir, ACPI_PARSE_OBJECT *Op, char *Filename) { FILE *IncludeFile; char *Pathname; UINT32 OriginalLineNumber; /* Build the full pathname to the file */ Pathname = FlMergePathnames (PrefixDir, Filename); DbgPrint (ASL_PARSE_OUTPUT, "Include: Opening file - \"%s\"\n\n", Pathname); /* Attempt to open the file, push if successful */ IncludeFile = fopen (Pathname, "r"); if (!IncludeFile) { return (NULL); } /* * Check the entire include file for any # preprocessor directives. * This is because there may be some confusion between the #include * preprocessor directive and the ASL Include statement. A file included * by the ASL include cannot contain preprocessor directives because * the preprocessor has already run by the time the ASL include is * recognized (by the compiler, not the preprocessor.) * * Note: DtGetNextLine strips/ignores comments. * Save current line number since DtGetNextLine modifies it. */ AslGbl_CurrentLineNumber--; OriginalLineNumber = AslGbl_CurrentLineNumber; while (DtGetNextLine (IncludeFile, DT_ALLOW_MULTILINE_QUOTES) != ASL_EOF) { if (AslGbl_CurrentLineBuffer[0] == '#') { AslError (ASL_ERROR, ASL_MSG_INCLUDE_FILE, Op, "use #include instead"); } } AslGbl_CurrentLineNumber = OriginalLineNumber; /* Must seek back to the start of the file */ fseek (IncludeFile, 0, SEEK_SET); /* Push the include file on the open input file stack */ AslPushInputFileStack (IncludeFile, Pathname); return (IncludeFile); } /******************************************************************************* * * FUNCTION: FlOpenIncludeFile * * PARAMETERS: Op - Parse node for the INCLUDE ASL statement * * RETURN: None. * * DESCRIPTION: Open an include file and push it on the input file stack. * ******************************************************************************/ void FlOpenIncludeFile ( ACPI_PARSE_OBJECT *Op) { FILE *IncludeFile; ASL_INCLUDE_DIR *NextDir; /* Op must be valid */ if (!Op) { AslCommonError (ASL_ERROR, ASL_MSG_INCLUDE_FILE_OPEN, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_InputByteCount, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, " - Null parse node"); return; } /* * Flush out the "include ()" statement on this line, start * the actual include file on the next line */ AslResetCurrentLineBuffer (); FlPrintFile (ASL_FILE_SOURCE_OUTPUT, "\n"); AslGbl_CurrentLineOffset++; /* Attempt to open the include file */ /* If the file specifies an absolute path, just open it */ if ((Op->Asl.Value.String[0] == '/') || (Op->Asl.Value.String[0] == '\\') || (Op->Asl.Value.String[1] == ':')) { IncludeFile = FlOpenIncludeWithPrefix ("", Op, Op->Asl.Value.String); if (!IncludeFile) { goto ErrorExit; } return; } /* * The include filename is not an absolute path. * * First, search for the file within the "local" directory -- meaning * the same directory that contains the source file. * * Construct the file pathname from the global directory name. */ IncludeFile = FlOpenIncludeWithPrefix ( AslGbl_DirectoryPath, Op, Op->Asl.Value.String); if (IncludeFile) { return; } /* * Second, search for the file within the (possibly multiple) directories * specified by the -I option on the command line. */ NextDir = AslGbl_IncludeDirList; while (NextDir) { IncludeFile = FlOpenIncludeWithPrefix ( NextDir->Dir, Op, Op->Asl.Value.String); if (IncludeFile) { return; } NextDir = NextDir->Next; } /* We could not open the include file after trying very hard */ ErrorExit: sprintf (AslGbl_MsgBuffer, "%s, %s", Op->Asl.Value.String, strerror (errno)); AslError (ASL_ERROR, ASL_MSG_INCLUDE_FILE_OPEN, Op, AslGbl_MsgBuffer); } /******************************************************************************* * * FUNCTION: FlOpenInputFile * * PARAMETERS: InputFilename - The user-specified ASL source file to be * compiled * * RETURN: Status * * DESCRIPTION: Open the specified input file, and save the directory path to * the file so that include files can be opened in the same * directory. NOTE: File is opened in text mode. * ******************************************************************************/ ACPI_STATUS FlOpenInputFile ( char *InputFilename) { /* Open the input ASL file, text mode */ FlOpenFile (ASL_FILE_INPUT, InputFilename, "rt"); AslCompilerin = AslGbl_Files[ASL_FILE_INPUT].Handle; return (AE_OK); } /******************************************************************************* * * FUNCTION: FlOpenAmlOutputFile * * PARAMETERS: FilenamePrefix - The user-specified ASL source file * * RETURN: Status * * DESCRIPTION: Create the output filename (*.AML) and open the file. The file * is created in the same directory as the parent input file. * ******************************************************************************/ ACPI_STATUS FlOpenAmlOutputFile ( char *FilenamePrefix) { char *Filename; /* Output filename usually comes from the ASL itself */ Filename = AslGbl_Files[ASL_FILE_AML_OUTPUT].Filename; if (!Filename) { /* Create the output AML filename */ if (!AcpiGbl_CaptureComments) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_AML_CODE); } else { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_CONVERT_AML); } if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_OUTPUT_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } AslGbl_Files[ASL_FILE_AML_OUTPUT].Filename = Filename; } /* Open the output AML file in binary mode */ FlOpenFile (ASL_FILE_AML_OUTPUT, Filename, "w+b"); return (AE_OK); } /******************************************************************************* * * FUNCTION: FlOpenMiscOutputFiles * * PARAMETERS: FilenamePrefix - The user-specified ASL source file * * RETURN: Status * * DESCRIPTION: Create and open the various output files needed, depending on * the command line options * ******************************************************************************/ ACPI_STATUS FlOpenMiscOutputFiles ( char *FilenamePrefix) { char *Filename; /* Create/Open a map file if requested */ if (AslGbl_MapfileFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_MAP); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the hex file, text mode (closed at compiler exit) */ FlOpenFile (ASL_FILE_MAP_OUTPUT, Filename, "w+t"); AslCompilerSignon (ASL_FILE_MAP_OUTPUT); AslCompilerFileHeader (ASL_FILE_MAP_OUTPUT); } /* All done for disassembler */ if (AslGbl_FileType == ASL_INPUT_TYPE_BINARY_ACPI_TABLE) { return (AE_OK); } /* Create/Open a hex output file if asked */ if (AslGbl_HexOutputFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_HEX_DUMP); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the hex file, text mode */ FlOpenFile (ASL_FILE_HEX_OUTPUT, Filename, "w+t"); AslCompilerSignon (ASL_FILE_HEX_OUTPUT); AslCompilerFileHeader (ASL_FILE_HEX_OUTPUT); } /* Create/Open a debug output file if asked */ if (AslGbl_DebugFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_DEBUG); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_DEBUG_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the debug file as STDERR, text mode */ AslGbl_Files[ASL_FILE_DEBUG_OUTPUT].Filename = Filename; AslGbl_Files[ASL_FILE_DEBUG_OUTPUT].Handle = freopen (Filename, "w+t", stderr); if (!AslGbl_Files[ASL_FILE_DEBUG_OUTPUT].Handle) { /* * A problem with freopen is that on error, we no longer * have stderr and cannot emit normal error messages. * Emit error to stdout, close files, and exit. */ fprintf (stdout, "\nCould not open debug output file: %s\n\n", Filename); CmCleanupAndExit (); exit (1); } AslCompilerSignon (ASL_FILE_DEBUG_OUTPUT); AslCompilerFileHeader (ASL_FILE_DEBUG_OUTPUT); } /* Create/Open a cross-reference output file if asked */ if (AslGbl_CrossReferenceOutput) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_XREF); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_DEBUG_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } FlOpenFile (ASL_FILE_XREF_OUTPUT, Filename, "w+t"); AslCompilerSignon (ASL_FILE_XREF_OUTPUT); AslCompilerFileHeader (ASL_FILE_XREF_OUTPUT); } /* Create/Open a listing output file if asked */ if (AslGbl_ListingFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_LISTING); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the listing file, text mode */ FlOpenFile (ASL_FILE_LISTING_OUTPUT, Filename, "w+t"); AslCompilerSignon (ASL_FILE_LISTING_OUTPUT); AslCompilerFileHeader (ASL_FILE_LISTING_OUTPUT); } /* Create the preprocessor output temp file if preprocessor enabled */ if (AslGbl_PreprocessFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_PREPROCESSOR); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_PREPROCESSOR_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } FlOpenFile (ASL_FILE_PREPROCESSOR, Filename, "w+t"); } /* * Create the "user" preprocessor output file if -li flag set. * Note, this file contains no embedded #line directives. */ if (AslGbl_PreprocessorOutputFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_PREPROC_USER); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_PREPROCESSOR_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } FlOpenFile (ASL_FILE_PREPROCESSOR_USER, Filename, "w+t"); } /* All done for data table compiler */ if (AslGbl_FileType == ASL_INPUT_TYPE_ASCII_DATA) { return (AE_OK); } /* Create/Open a combined source output file */ Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_SOURCE); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* * Open the source output file, binary mode (so that LF does not get * expanded to CR/LF on some systems, messing up our seek * calculations.) */ FlOpenFile (ASL_FILE_SOURCE_OUTPUT, Filename, "w+b"); /* // TBD: TEMP // AslCompilerin = AslGbl_Files[ASL_FILE_SOURCE_OUTPUT].Handle; */ /* Create/Open a assembly code source output file if asked */ if (AslGbl_AsmOutputFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_ASM_SOURCE); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the assembly code source file, text mode */ FlOpenFile (ASL_FILE_ASM_SOURCE_OUTPUT, Filename, "w+t"); AslCompilerSignon (ASL_FILE_ASM_SOURCE_OUTPUT); AslCompilerFileHeader (ASL_FILE_ASM_SOURCE_OUTPUT); } /* Create/Open a C code source output file if asked */ if (AslGbl_C_OutputFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_C_SOURCE); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the C code source file, text mode */ FlOpenFile (ASL_FILE_C_SOURCE_OUTPUT, Filename, "w+t"); FlPrintFile (ASL_FILE_C_SOURCE_OUTPUT, "/*\n"); AslCompilerSignon (ASL_FILE_C_SOURCE_OUTPUT); AslCompilerFileHeader (ASL_FILE_C_SOURCE_OUTPUT); } /* Create/Open a C code source output file for the offset table if asked */ if (AslGbl_C_OffsetTableFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_C_OFFSET); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the C code source file, text mode */ FlOpenFile (ASL_FILE_C_OFFSET_OUTPUT, Filename, "w+t"); FlPrintFile (ASL_FILE_C_OFFSET_OUTPUT, "/*\n"); AslCompilerSignon (ASL_FILE_C_OFFSET_OUTPUT); AslCompilerFileHeader (ASL_FILE_C_OFFSET_OUTPUT); } /* Create/Open a assembly include output file if asked */ if (AslGbl_AsmIncludeOutputFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_ASM_INCLUDE); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the assembly include file, text mode */ FlOpenFile (ASL_FILE_ASM_INCLUDE_OUTPUT, Filename, "w+t"); AslCompilerSignon (ASL_FILE_ASM_INCLUDE_OUTPUT); AslCompilerFileHeader (ASL_FILE_ASM_INCLUDE_OUTPUT); } /* Create/Open a C include output file if asked */ if (AslGbl_C_IncludeOutputFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_C_INCLUDE); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the C include file, text mode */ FlOpenFile (ASL_FILE_C_INCLUDE_OUTPUT, Filename, "w+t"); FlPrintFile (ASL_FILE_C_INCLUDE_OUTPUT, "/*\n"); AslCompilerSignon (ASL_FILE_C_INCLUDE_OUTPUT); AslCompilerFileHeader (ASL_FILE_C_INCLUDE_OUTPUT); } /* Create a namespace output file if asked */ if (AslGbl_NsOutputFlag) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_NAMESPACE); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the namespace file, text mode */ FlOpenFile (ASL_FILE_NAMESPACE_OUTPUT, Filename, "w+t"); AslCompilerSignon (ASL_FILE_NAMESPACE_OUTPUT); AslCompilerFileHeader (ASL_FILE_NAMESPACE_OUTPUT); } /* Create a debug file for the converter */ if (AcpiGbl_DebugAslConversion) { Filename = FlGenerateFilename (FilenamePrefix, FILE_SUFFIX_CONVERT_DEBUG); if (!Filename) { AslCommonError (ASL_ERROR, ASL_MSG_LISTING_FILENAME, 0, 0, 0, 0, NULL, NULL); return (AE_ERROR); } /* Open the converter debug file, text mode */ FlOpenFile (ASL_FILE_CONV_DEBUG_OUTPUT, Filename, "w+t"); AslCompilerSignon (ASL_FILE_CONV_DEBUG_OUTPUT); AslCompilerFileHeader (ASL_FILE_CONV_DEBUG_OUTPUT); AcpiGbl_ConvDebugFile = AslGbl_Files[ASL_FILE_CONV_DEBUG_OUTPUT].Handle; } return (AE_OK); } #ifdef ACPI_OBSOLETE_FUNCTIONS /******************************************************************************* * * FUNCTION: FlParseInputPathname * * PARAMETERS: InputFilename - The user-specified ASL source file to be * compiled * * RETURN: Status * * DESCRIPTION: Split the input path into a directory and filename part * 1) Directory part used to open include files * 2) Filename part used to generate output filenames * ******************************************************************************/ ACPI_STATUS FlParseInputPathname ( char *InputFilename) { char *Substring; if (!InputFilename) { return (AE_OK); } /* Get the path to the input filename's directory */ AslGbl_DirectoryPath = strdup (InputFilename); if (!AslGbl_DirectoryPath) { return (AE_NO_MEMORY); } Substring = strrchr (AslGbl_DirectoryPath, '\\'); if (!Substring) { Substring = strrchr (AslGbl_DirectoryPath, '/'); if (!Substring) { Substring = strrchr (AslGbl_DirectoryPath, ':'); } } if (!Substring) { AslGbl_DirectoryPath[0] = 0; if (AslGbl_UseDefaultAmlFilename) { AslGbl_OutputFilenamePrefix = strdup (InputFilename); } } else { if (AslGbl_UseDefaultAmlFilename) { AslGbl_OutputFilenamePrefix = strdup (Substring + 1); } *(Substring+1) = 0; } UtConvertBackslashes (AslGbl_OutputFilenamePrefix); return (AE_OK); } #endif acpica-unix-20250404/source/compiler/asltransform.c0000775000175000017500000010602614773714131021536 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asltransform - Parse tree transforms * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acnamesp.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asltransform") /* Local prototypes */ static void TrTransformSubtree ( ACPI_PARSE_OBJECT *Op); static char * TrAmlGetNextTempName ( ACPI_PARSE_OBJECT *Op, UINT8 *TempCount); static void TrAmlInitLineNumbers ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *Neighbor); static void TrAmlInitNode ( ACPI_PARSE_OBJECT *Op, UINT16 ParseOpcode); static void TrAmlSetSubtreeParent ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *Parent); static void TrAmlInsertPeer ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *NewPeer); static void TrDoDefinitionBlock ( ACPI_PARSE_OBJECT *Op); static void TrDoSwitch ( ACPI_PARSE_OBJECT *StartNode); static void TrCheckForDuplicateCase ( ACPI_PARSE_OBJECT *CaseOp, ACPI_PARSE_OBJECT *Predicate1); static BOOLEAN TrCheckForBufferMatch ( ACPI_PARSE_OBJECT *Next1, ACPI_PARSE_OBJECT *Next2); static void TrDoMethod ( ACPI_PARSE_OBJECT *Op); /******************************************************************************* * * FUNCTION: TrAmlGetNextTempName * * PARAMETERS: Op - Current parse op * TempCount - Current temporary counter. Was originally * per-module; Currently per method, could be * expanded to per-scope. * * RETURN: A pointer to name (allocated here). * * DESCRIPTION: Generate an ACPI name of the form _T_x. These names are * reserved for use by the ASL compiler. (_T_0 through _T_Z) * ******************************************************************************/ static char * TrAmlGetNextTempName ( ACPI_PARSE_OBJECT *Op, UINT8 *TempCount) { char *TempName; if (*TempCount >= (10 + 26)) /* 0-35 valid: 0-9 and A-Z for TempName[3] */ { /* Too many temps */ AslError (ASL_ERROR, ASL_MSG_TOO_MANY_TEMPS, Op, NULL); return (NULL); } TempName = UtLocalCalloc (5); if (*TempCount < 10) /* 0-9 */ { TempName[3] = (char) (*TempCount + '0'); } else /* 10-35: A-Z */ { TempName[3] = (char) (*TempCount + ('A' - 10)); } (*TempCount)++; /* First three characters are always "_T_" */ TempName[0] = '_'; TempName[1] = 'T'; TempName[2] = '_'; return (TempName); } /******************************************************************************* * * FUNCTION: TrAmlInitLineNumbers * * PARAMETERS: Op - Op to be initialized * Neighbor - Op used for initialization values * * RETURN: None * * DESCRIPTION: Initialized the various line numbers for a parse node. * ******************************************************************************/ static void TrAmlInitLineNumbers ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *Neighbor) { Op->Asl.EndLine = Neighbor->Asl.EndLine; Op->Asl.EndLogicalLine = Neighbor->Asl.EndLogicalLine; Op->Asl.LineNumber = Neighbor->Asl.LineNumber; Op->Asl.LogicalByteOffset = Neighbor->Asl.LogicalByteOffset; Op->Asl.LogicalLineNumber = Neighbor->Asl.LogicalLineNumber; } /******************************************************************************* * * FUNCTION: TrAmlInitNode * * PARAMETERS: Op - Op to be initialized * ParseOpcode - Opcode for this node * * RETURN: None * * DESCRIPTION: Initialize a node with the parse opcode and opcode name. * ******************************************************************************/ static void TrAmlInitNode ( ACPI_PARSE_OBJECT *Op, UINT16 ParseOpcode) { Op->Asl.ParseOpcode = ParseOpcode; UtSetParseOpName (Op); } /******************************************************************************* * * FUNCTION: TrAmlSetSubtreeParent * * PARAMETERS: Op - First node in a list of peer nodes * Parent - Parent of the subtree * * RETURN: None * * DESCRIPTION: Set the parent for all peer nodes in a subtree * ******************************************************************************/ static void TrAmlSetSubtreeParent ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *Parent) { ACPI_PARSE_OBJECT *Next; Next = Op; while (Next) { Next->Asl.Parent = Parent; Next = Next->Asl.Next; } } /******************************************************************************* * * FUNCTION: TrAmlInsertPeer * * PARAMETERS: Op - First node in a list of peer nodes * NewPeer - Peer node to insert * * RETURN: None * * DESCRIPTION: Insert a new peer node into a list of peers. * ******************************************************************************/ static void TrAmlInsertPeer ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *NewPeer) { NewPeer->Asl.Next = Op->Asl.Next; Op->Asl.Next = NewPeer; } /******************************************************************************* * * FUNCTION: TrAmlTransformWalkBegin * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: None * * DESCRIPTION: Parse tree walk to generate both the AML opcodes and the AML * operands. * ******************************************************************************/ ACPI_STATUS TrAmlTransformWalkBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { TrTransformSubtree (Op); return (AE_OK); } /******************************************************************************* * * FUNCTION: TrAmlTransformWalkEnd * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: None * * DESCRIPTION: Parse tree walk to generate both the AML opcodes and the AML * operands. * ******************************************************************************/ ACPI_STATUS TrAmlTransformWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { /* Save possible Externals list in the DefintionBlock Op */ if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK) { Op->Asl.Value.Arg = AslGbl_ExternalsListHead; AslGbl_ExternalsListHead = NULL; } return (AE_OK); } /******************************************************************************* * * FUNCTION: TrTransformSubtree * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Prepare nodes to be output as AML data and operands. The more * complex AML opcodes require processing of the child nodes * (arguments/operands). * ******************************************************************************/ static void TrTransformSubtree ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *MethodOp; ACPI_NAMESTRING_INFO Info; if (Op->Asl.AmlOpcode == AML_RAW_DATA_BYTE) { return; } switch (Op->Asl.ParseOpcode) { case PARSEOP_DEFINITION_BLOCK: TrDoDefinitionBlock (Op); break; case PARSEOP_SWITCH: TrDoSwitch (Op); break; case PARSEOP_METHOD: TrDoMethod (Op); break; case PARSEOP_EXTERNAL: ExDoExternal (Op); break; case PARSEOP___METHOD__: /* Transform to a string op containing the parent method name */ Op->Asl.ParseOpcode = PARSEOP_STRING_LITERAL; UtSetParseOpName (Op); /* Find the parent control method op */ MethodOp = Op; while (MethodOp) { if (MethodOp->Asl.ParseOpcode == PARSEOP_METHOD) { /* First child contains the method name */ MethodOp = MethodOp->Asl.Child; Op->Asl.Value.String = MethodOp->Asl.Value.String; return; } MethodOp = MethodOp->Asl.Parent; } /* At the root, invocation not within a control method */ Op->Asl.Value.String = "\\"; break; case PARSEOP_NAMESTRING: /* * A NameString can be up to 255 (0xFF) individual NameSegs maximum * (with 254 dot separators) - as per the ACPI specification. Note: * Cannot check for NumSegments == 0 because things like * Scope(\) are legal and OK. */ Info.ExternalName = Op->Asl.Value.String; AcpiNsGetInternalNameLength (&Info); if (Info.NumSegments > 255) { AslError (ASL_ERROR, ASL_MSG_NAMESTRING_LENGTH, Op, NULL); } break; case PARSEOP_UNLOAD: AslError (ASL_WARNING, ASL_MSG_UNLOAD, Op, NULL); break; case PARSEOP_SLEEP: /* Remark for very long sleep values */ if (Op->Asl.Child->Asl.Value.Integer > 1000) { AslError (ASL_REMARK, ASL_MSG_LONG_SLEEP, Op, NULL); } break; case PARSEOP_PROCESSOR: AslError (ASL_WARNING, ASL_MSG_LEGACY_PROCESSOR_OP, Op, Op->Asl.ExternalName); break; case PARSEOP_OBJECTTYPE_DDB: AslError (ASL_WARNING, ASL_MSG_LEGACY_DDB_TYPE, Op, Op->Asl.ExternalName); break; default: /* Nothing to do here for other opcodes */ break; } } /******************************************************************************* * * FUNCTION: TrDoDefinitionBlock * * PARAMETERS: Op - Parse node * * RETURN: None * * DESCRIPTION: Find the end of the definition block and set a global to this * node. It is used by the compiler to insert compiler-generated * names at the root level of the namespace. * ******************************************************************************/ static void TrDoDefinitionBlock ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; UINT32 i; /* Reset external list when starting a definition block */ AslGbl_ExternalsListHead = NULL; Next = Op->Asl.Child; for (i = 0; i < 5; i++) { Next = Next->Asl.Next; if (i == 0) { /* * This is the table signature. Only the DSDT can be assumed * to be at the root of the namespace; Therefore, namepath * optimization can only be performed on the DSDT. */ if (!ACPI_COMPARE_NAMESEG (Next->Asl.Value.String, ACPI_SIG_DSDT)) { AslGbl_ReferenceOptimizationFlag = FALSE; } } } AslGbl_FirstLevelInsertionNode = Next; } /******************************************************************************* * * FUNCTION: TrDoSwitch * * PARAMETERS: StartNode - Parse node for SWITCH * * RETURN: None * * DESCRIPTION: Translate ASL SWITCH statement to if/else pairs. There is * no actual AML opcode for SWITCH -- it must be simulated. * ******************************************************************************/ static void TrDoSwitch ( ACPI_PARSE_OBJECT *StartNode) { ACPI_PARSE_OBJECT *Next; ACPI_PARSE_OBJECT *CaseOp = NULL; ACPI_PARSE_OBJECT *CaseBlock = NULL; ACPI_PARSE_OBJECT *DefaultOp = NULL; ACPI_PARSE_OBJECT *CurrentParentNode; ACPI_PARSE_OBJECT *Conditional = NULL; ACPI_PARSE_OBJECT *Predicate; ACPI_PARSE_OBJECT *Peer; ACPI_PARSE_OBJECT *NewOp; ACPI_PARSE_OBJECT *NewOp2; ACPI_PARSE_OBJECT *MethodOp; ACPI_PARSE_OBJECT *StoreOp; ACPI_PARSE_OBJECT *BreakOp; ACPI_PARSE_OBJECT *BufferOp; char *PredicateValueName; UINT16 Index; UINT32 Btype; /* Start node is the Switch() node */ CurrentParentNode = StartNode; /* Create a new temp name of the form _T_x */ PredicateValueName = TrAmlGetNextTempName (StartNode, &AslGbl_TempCount); if (!PredicateValueName) { return; } /* First child is the Switch() predicate */ Next = StartNode->Asl.Child; /* * Examine the return type of the Switch Value - * must be Integer/Buffer/String */ Index = (UINT16) (Next->Asl.ParseOpcode - ASL_PARSE_OPCODE_BASE); Btype = AslKeywordMapping[Index].AcpiBtype; if ((Btype != ACPI_BTYPE_INTEGER) && (Btype != ACPI_BTYPE_STRING) && (Btype != ACPI_BTYPE_BUFFER)) { AslError (ASL_WARNING, ASL_MSG_SWITCH_TYPE, Next, NULL); Btype = ACPI_BTYPE_INTEGER; } /* CASE statements start at next child */ Peer = Next->Asl.Next; while (Peer) { Next = Peer; Peer = Next->Asl.Next; if (Next->Asl.ParseOpcode == PARSEOP_CASE) { TrCheckForDuplicateCase (Next, Next->Asl.Child); if (CaseOp) { /* Add an ELSE to complete the previous CASE */ NewOp = TrCreateLeafOp (PARSEOP_ELSE); NewOp->Asl.Parent = Conditional->Asl.Parent; TrAmlInitLineNumbers (NewOp, NewOp->Asl.Parent); /* Link ELSE node as a peer to the previous IF */ TrAmlInsertPeer (Conditional, NewOp); CurrentParentNode = NewOp; } CaseOp = Next; Conditional = CaseOp; CaseBlock = CaseOp->Asl.Child->Asl.Next; Conditional->Asl.Child->Asl.Next = NULL; Predicate = CaseOp->Asl.Child; if ((Predicate->Asl.ParseOpcode == PARSEOP_PACKAGE) || (Predicate->Asl.ParseOpcode == PARSEOP_VAR_PACKAGE)) { /* * Convert the package declaration to this form: * * If (LNotEqual (Match (Package(){}, * MEQ, _T_x, MTR, Zero, Zero), Ones)) */ NewOp2 = TrCreateLeafOp (PARSEOP_MATCHTYPE_MEQ); Predicate->Asl.Next = NewOp2; TrAmlInitLineNumbers (NewOp2, Conditional); NewOp = NewOp2; NewOp2 = TrCreateValuedLeafOp (PARSEOP_NAMESTRING, (UINT64) ACPI_TO_INTEGER (PredicateValueName)); NewOp->Asl.Next = NewOp2; TrAmlInitLineNumbers (NewOp2, Predicate); NewOp = NewOp2; NewOp2 = TrCreateLeafOp (PARSEOP_MATCHTYPE_MTR); NewOp->Asl.Next = NewOp2; TrAmlInitLineNumbers (NewOp2, Predicate); NewOp = NewOp2; NewOp2 = TrCreateLeafOp (PARSEOP_ZERO); NewOp->Asl.Next = NewOp2; TrAmlInitLineNumbers (NewOp2, Predicate); NewOp = NewOp2; NewOp2 = TrCreateLeafOp (PARSEOP_ZERO); NewOp->Asl.Next = NewOp2; TrAmlInitLineNumbers (NewOp2, Predicate); NewOp2 = TrCreateLeafOp (PARSEOP_MATCH); NewOp2->Asl.Child = Predicate; /* PARSEOP_PACKAGE */ TrAmlInitLineNumbers (NewOp2, Conditional); TrAmlSetSubtreeParent (Predicate, NewOp2); NewOp = NewOp2; NewOp2 = TrCreateLeafOp (PARSEOP_ONES); NewOp->Asl.Next = NewOp2; TrAmlInitLineNumbers (NewOp2, Conditional); NewOp2 = TrCreateLeafOp (PARSEOP_LEQUAL); NewOp2->Asl.Child = NewOp; NewOp->Asl.Parent = NewOp2; TrAmlInitLineNumbers (NewOp2, Conditional); TrAmlSetSubtreeParent (NewOp, NewOp2); NewOp = NewOp2; NewOp2 = TrCreateLeafOp (PARSEOP_LNOT); NewOp2->Asl.Child = NewOp; NewOp2->Asl.Parent = Conditional; NewOp->Asl.Parent = NewOp2; TrAmlInitLineNumbers (NewOp2, Conditional); Conditional->Asl.Child = NewOp2; NewOp2->Asl.Next = CaseBlock; } else { /* * Integer and Buffer case. * * Change CaseOp() to: If (LEqual (SwitchValue, CaseValue)) {...} * Note: SwitchValue is first to allow the CaseValue to be implicitly * converted to the type of SwitchValue if necessary. * * CaseOp->Child is the case value * CaseOp->Child->Peer is the beginning of the case block */ NewOp = TrCreateValuedLeafOp (PARSEOP_NAMESTRING, (UINT64) ACPI_TO_INTEGER (PredicateValueName)); NewOp->Asl.Next = Predicate; TrAmlInitLineNumbers (NewOp, Predicate); NewOp2 = TrCreateLeafOp (PARSEOP_LEQUAL); NewOp2->Asl.Parent = Conditional; NewOp2->Asl.Child = NewOp; TrAmlInitLineNumbers (NewOp2, Conditional); TrAmlSetSubtreeParent (NewOp, NewOp2); Predicate = NewOp2; Predicate->Asl.Next = CaseBlock; TrAmlSetSubtreeParent (Predicate, Conditional); Conditional->Asl.Child = Predicate; } /* Reinitialize the CASE node to an IF node */ TrAmlInitNode (Conditional, PARSEOP_IF); /* * The first CASE(IF) is not nested under an ELSE. * All other CASEs are children of a parent ELSE. */ if (CurrentParentNode == StartNode) { Conditional->Asl.Next = NULL; } else { /* * The IF is a child of previous IF/ELSE. It * is therefore without peer. */ CurrentParentNode->Asl.Child = Conditional; Conditional->Asl.Parent = CurrentParentNode; Conditional->Asl.Next = NULL; } } else if (Next->Asl.ParseOpcode == PARSEOP_DEFAULT) { if (DefaultOp) { /* * More than one Default * (Parser does not catch this, must check here) */ AslError (ASL_ERROR, ASL_MSG_MULTIPLE_DEFAULT, Next, NULL); } else { /* Save the DEFAULT node for later, after CASEs */ DefaultOp = Next; } } else { /* Unknown peer opcode */ AcpiOsPrintf ("Unknown parse opcode for switch statement: %s (%u)\n", Next->Asl.ParseOpName, Next->Asl.ParseOpcode); } } /* Add the default case at the end of the if/else construct */ if (DefaultOp) { /* If no CASE statements, this is an error - see below */ if (CaseOp) { /* Convert the DEFAULT node to an ELSE */ TrAmlInitNode (DefaultOp, PARSEOP_ELSE); DefaultOp->Asl.Parent = Conditional->Asl.Parent; /* Link ELSE node as a peer to the previous IF */ TrAmlInsertPeer (Conditional, DefaultOp); } } if (!CaseOp) { AslError (ASL_ERROR, ASL_MSG_NO_CASES, StartNode, NULL); } /* * Create a Name(_T_x, ...) statement. This statement must appear at the * method level, in case a loop surrounds the switch statement and could * cause the name to be created twice (error). */ /* Create the Name node */ Predicate = StartNode->Asl.Child; NewOp = TrCreateLeafOp (PARSEOP_NAME); TrAmlInitLineNumbers (NewOp, StartNode); /* Find the parent method */ Next = StartNode; while ((Next->Asl.ParseOpcode != PARSEOP_METHOD) && (Next->Asl.ParseOpcode != PARSEOP_DEFINITION_BLOCK)) { Next = Next->Asl.Parent; } MethodOp = Next; NewOp->Asl.CompileFlags |= OP_COMPILER_EMITTED; NewOp->Asl.Parent = Next; /* Insert name after the method name and arguments */ Next = Next->Asl.Child; /* Name */ Next = Next->Asl.Next; /* NumArgs */ Next = Next->Asl.Next; /* SerializeRule */ /* * If method is not Serialized, we must make is so, because of the way * that Switch() must be implemented -- we cannot allow multiple threads * to execute this method concurrently since we need to create local * temporary name(s). */ if (Next->Asl.ParseOpcode != PARSEOP_SERIALIZERULE_SERIAL) { AslError (ASL_REMARK, ASL_MSG_SERIALIZED, MethodOp, "Due to use of Switch operator"); Next->Asl.ParseOpcode = PARSEOP_SERIALIZERULE_SERIAL; } Next = Next->Asl.Next; /* SyncLevel */ Next = Next->Asl.Next; /* ReturnType */ Next = Next->Asl.Next; /* ParameterTypes */ TrAmlInsertPeer (Next, NewOp); TrAmlInitLineNumbers (NewOp, Next); /* Create the NameSeg child for the Name node */ NewOp2 = TrCreateValuedLeafOp (PARSEOP_NAMESEG, (UINT64) ACPI_TO_INTEGER (PredicateValueName)); TrAmlInitLineNumbers (NewOp2, NewOp); NewOp2->Asl.CompileFlags |= OP_IS_NAME_DECLARATION; NewOp->Asl.Child = NewOp2; /* Create the initial value for the Name. Btype was already validated above */ switch (Btype) { case ACPI_BTYPE_INTEGER: NewOp2->Asl.Next = TrCreateValuedLeafOp (PARSEOP_ZERO, (UINT64) 0); TrAmlInitLineNumbers (NewOp2->Asl.Next, NewOp); break; case ACPI_BTYPE_STRING: NewOp2->Asl.Next = TrCreateValuedLeafOp (PARSEOP_STRING_LITERAL, (UINT64) ACPI_TO_INTEGER ("")); TrAmlInitLineNumbers (NewOp2->Asl.Next, NewOp); break; case ACPI_BTYPE_BUFFER: (void) TrLinkPeerOp (NewOp2, TrCreateValuedLeafOp (PARSEOP_BUFFER, (UINT64) 0)); Next = NewOp2->Asl.Next; TrAmlInitLineNumbers (Next, NewOp2); (void) TrLinkOpChildren (Next, 1, TrCreateValuedLeafOp (PARSEOP_ZERO, (UINT64) 1)); TrAmlInitLineNumbers (Next->Asl.Child, Next); BufferOp = TrCreateValuedLeafOp (PARSEOP_DEFAULT_ARG, (UINT64) 0); TrAmlInitLineNumbers (BufferOp, Next->Asl.Child); (void) TrLinkPeerOp (Next->Asl.Child, BufferOp); TrAmlSetSubtreeParent (Next->Asl.Child, Next); break; default: break; } TrAmlSetSubtreeParent (NewOp2, NewOp); /* * Transform the Switch() into a While(One)-Break node. * And create a Store() node which will be used to save the * Switch() value. The store is of the form: Store (Value, _T_x) * where _T_x is the temp variable. */ TrAmlInitNode (StartNode, PARSEOP_WHILE); NewOp = TrCreateLeafOp (PARSEOP_ONE); TrAmlInitLineNumbers (NewOp, StartNode); NewOp->Asl.Next = Predicate->Asl.Next; NewOp->Asl.Parent = StartNode; StartNode->Asl.Child = NewOp; /* Create a Store() node */ StoreOp = TrCreateLeafOp (PARSEOP_STORE); TrAmlInitLineNumbers (StoreOp, NewOp); StoreOp->Asl.Parent = StartNode; TrAmlInsertPeer (NewOp, StoreOp); /* Complete the Store subtree */ StoreOp->Asl.Child = Predicate; Predicate->Asl.Parent = StoreOp; NewOp = TrCreateValuedLeafOp (PARSEOP_NAMESEG, (UINT64) ACPI_TO_INTEGER (PredicateValueName)); TrAmlInitLineNumbers (NewOp, StoreOp); NewOp->Asl.Parent = StoreOp; Predicate->Asl.Next = NewOp; /* Create a Break() node and insert it into the end of While() */ Conditional = StartNode->Asl.Child; while (Conditional->Asl.Next) { Conditional = Conditional->Asl.Next; } BreakOp = TrCreateLeafOp (PARSEOP_BREAK); TrAmlInitLineNumbers (BreakOp, NewOp); BreakOp->Asl.Parent = StartNode; TrAmlInsertPeer (Conditional, BreakOp); } /******************************************************************************* * * FUNCTION: TrCheckForDuplicateCase * * PARAMETERS: CaseOp - Parse node for first Case statement in list * Predicate1 - Case value for the input CaseOp * * RETURN: None * * DESCRIPTION: Check for duplicate case values. Currently, only handles * Integers, Strings and Buffers. No support for Package objects. * ******************************************************************************/ static void TrCheckForDuplicateCase ( ACPI_PARSE_OBJECT *CaseOp, ACPI_PARSE_OBJECT *Predicate1) { ACPI_PARSE_OBJECT *Next; ACPI_PARSE_OBJECT *Predicate2; /* Walk the list of CASE opcodes */ Next = CaseOp->Asl.Next; while (Next) { if (Next->Asl.ParseOpcode == PARSEOP_CASE) { /* Emit error only once */ if (Next->Asl.CompileFlags & OP_IS_DUPLICATE) { goto NextCase; } /* Check for a duplicate plain integer */ Predicate2 = Next->Asl.Child; if ((Predicate1->Asl.ParseOpcode == PARSEOP_INTEGER) && (Predicate2->Asl.ParseOpcode == PARSEOP_INTEGER)) { if (Predicate1->Asl.Value.Integer == Predicate2->Asl.Value.Integer) { goto FoundDuplicate; } } /* Check for pairs of the constants ZERO, ONE, ONES */ else if (((Predicate1->Asl.ParseOpcode == PARSEOP_ZERO) && (Predicate2->Asl.ParseOpcode == PARSEOP_ZERO)) || ((Predicate1->Asl.ParseOpcode == PARSEOP_ONE) && (Predicate2->Asl.ParseOpcode == PARSEOP_ONE)) || ((Predicate1->Asl.ParseOpcode == PARSEOP_ONES) && (Predicate2->Asl.ParseOpcode == PARSEOP_ONES))) { goto FoundDuplicate; } /* Check for a duplicate string constant (literal) */ else if ((Predicate1->Asl.ParseOpcode == PARSEOP_STRING_LITERAL) && (Predicate2->Asl.ParseOpcode == PARSEOP_STRING_LITERAL)) { if (!strcmp (Predicate1->Asl.Value.String, Predicate2->Asl.Value.String)) { goto FoundDuplicate; } } /* Check for a duplicate buffer constant */ else if ((Predicate1->Asl.ParseOpcode == PARSEOP_BUFFER) && (Predicate2->Asl.ParseOpcode == PARSEOP_BUFFER)) { if (TrCheckForBufferMatch (Predicate1->Asl.Child, Predicate2->Asl.Child)) { goto FoundDuplicate; } } } goto NextCase; FoundDuplicate: /* Emit error message only once */ Next->Asl.CompileFlags |= OP_IS_DUPLICATE; AslDualParseOpError (ASL_ERROR, ASL_MSG_DUPLICATE_CASE, Next, Next->Asl.Value.String, ASL_MSG_CASE_FOUND_HERE, CaseOp, CaseOp->Asl.ExternalName); NextCase: Next = Next->Asl.Next; } } /******************************************************************************* * * FUNCTION: TrBufferIsAllZero * * PARAMETERS: Op - Parse node for first opcode in buffer initializer * list * * RETURN: TRUE if buffer contains all zeros or a DEFAULT_ARG * * DESCRIPTION: Check for duplicate Buffer case values. * ******************************************************************************/ static BOOLEAN TrBufferIsAllZero ( ACPI_PARSE_OBJECT *Op) { while (Op) { if (Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { return (TRUE); } else if (Op->Asl.Value.Integer != 0) { return (FALSE); } Op = Op->Asl.Next; } return (TRUE); } /******************************************************************************* * * FUNCTION: TrCheckForBufferMatch * * PARAMETERS: Next1 - Parse node for first opcode in first buffer list * (The DEFAULT_ARG or INTEGER node) * Next2 - Parse node for first opcode in second buffer list * (The DEFAULT_ARG or INTEGER node) * * RETURN: TRUE if buffers match, FALSE otherwise * * DESCRIPTION: Check for duplicate Buffer case values. * ******************************************************************************/ static BOOLEAN TrCheckForBufferMatch ( ACPI_PARSE_OBJECT *NextOp1, ACPI_PARSE_OBJECT *NextOp2) { /* * The buffer length can be a DEFAULT_ARG or INTEGER. If any of the nodes * are DEFAULT_ARG, it means that the length has yet to be computed. * However, the initializer list can be compared to determine if these two * buffers match. */ if ((NextOp1->Asl.ParseOpcode == PARSEOP_INTEGER && NextOp2->Asl.ParseOpcode == PARSEOP_INTEGER) && NextOp1->Asl.Value.Integer != NextOp2->Asl.Value.Integer) { return (FALSE); } /* * Buffers that have explicit lengths but no initializer lists are * filled with zeros at runtime. This is equivalent to buffers that have the * same length that are filled with zeros. * * In other words, the following buffers are equivalent: * * Buffer(0x4) {} * Buffer() {0x0, 0x0, 0x0, 0x0} * * This statement checks for matches where one buffer does not have an * initializer list and another buffer contains all zeros. */ if (NextOp1->Asl.ParseOpcode != NextOp2->Asl.ParseOpcode && TrBufferIsAllZero (NextOp1->Asl.Next) && TrBufferIsAllZero (NextOp2->Asl.Next)) { return (TRUE); } /* Start at the BYTECONST initializer node list */ NextOp1 = NextOp1->Asl.Next; NextOp2 = NextOp2->Asl.Next; /* * Walk both lists until either a mismatch is found, or one or more * end-of-lists are found */ while (NextOp1 && NextOp2) { if ((NextOp1->Asl.ParseOpcode == PARSEOP_STRING_LITERAL) && (NextOp2->Asl.ParseOpcode == PARSEOP_STRING_LITERAL)) { if (!strcmp (NextOp1->Asl.Value.String, NextOp2->Asl.Value.String)) { return (TRUE); } else { return (FALSE); } } if ((UINT8) NextOp1->Asl.Value.Integer != (UINT8) NextOp2->Asl.Value.Integer) { return (FALSE); } NextOp1 = NextOp1->Asl.Next; NextOp2 = NextOp2->Asl.Next; } /* Not a match if one of the lists is not at end-of-list */ if (NextOp1 || NextOp2) { return (FALSE); } /* Otherwise, the buffers match */ return (TRUE); } /******************************************************************************* * * FUNCTION: TrDoMethod * * PARAMETERS: Op - Parse node for SWITCH * * RETURN: None * * DESCRIPTION: Determine that parameter count of an ASL method node by * translating the parameter count parse node from * PARSEOP_DEFAULT_ARG to PARSEOP_BYTECONST. * ******************************************************************************/ static void TrDoMethod ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *ArgCountOp; UINT8 ArgCount; ACPI_PARSE_OBJECT *ParameterOp; /* * TBD: Zero the tempname (_T_x) count. Probably shouldn't be a global, * however */ AslGbl_TempCount = 0; ArgCountOp = Op->Asl.Child->Asl.Next; if (ArgCountOp->Asl.ParseOpcode == PARSEOP_BYTECONST) { /* * Parameter count for this method has already been recorded in the * method declaration. */ return; } /* * Parameter count has been omitted in the method declaration. * Count the amount of arguments here. */ ParameterOp = ArgCountOp->Asl.Next->Asl.Next->Asl.Next->Asl.Next; if (ParameterOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { ArgCount = 0; ParameterOp = ParameterOp->Asl.Child; while (ParameterOp) { ParameterOp = ParameterOp->Asl.Next; ArgCount++; } ArgCountOp->Asl.Value.Integer = ArgCount; ArgCountOp->Asl.ParseOpcode = PARSEOP_BYTECONST; } else { /* * Method parameters can be counted by analyzing the Parameter type * list. If the Parameter list contains more than 1 parameter, it * is nested under PARSEOP_DEFAULT_ARG. When there is only 1 * parameter, the parse tree contains a single node representing * that type. */ ArgCountOp->Asl.Value.Integer = 1; ArgCountOp->Asl.ParseOpcode = PARSEOP_BYTECONST; } } acpica-unix-20250404/source/compiler/cvcompiler.c0000775000175000017500000006452014773714131021170 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: cvcompiler - ASL-/ASL+ converter functions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #include "acapps.h" #include "acconvert.h" /******************************************************************************* * * FUNCTION: CvProcessComment * * PARAMETERS: CurrentState Current comment parse state * StringBuffer Buffer containing the comment being processed * c1 Current input * * RETURN: None * * DESCRIPTION: Process a single line comment of a c Style comment. This * function captures a line of a c style comment in a char* and * places the comment in the appropriate global buffer. * ******************************************************************************/ void CvProcessComment ( ASL_COMMENT_STATE CurrentState, char *StringBuffer, int c1) { UINT64 i; char *LineToken; char *FinalLineToken; BOOLEAN CharStart; char *CommentString; char *FinalCommentString; if (AcpiGbl_CaptureComments && CurrentState.CaptureComments) { *StringBuffer = (char) c1; ++StringBuffer; *StringBuffer = 0; CvDbgPrint ("Multi-line comment\n"); CommentString = UtLocalCacheCalloc (strlen (AslGbl_MsgBuffer) + 1); strcpy (CommentString, AslGbl_MsgBuffer); CvDbgPrint ("CommentString: %s\n", CommentString); /* * Determine whether if this comment spans multiple lines. If so, * break apart the comment by storing each line in a different node * within the comment list. This allows the disassembler to * properly indent a multi-line comment. */ LineToken = strtok (CommentString, "\n"); if (LineToken) { FinalLineToken = UtLocalCacheCalloc (strlen (LineToken) + 1); strcpy (FinalLineToken, LineToken); /* Get rid of any carriage returns */ if (FinalLineToken[strlen (FinalLineToken) - 1] == 0x0D) { FinalLineToken[strlen(FinalLineToken)-1] = 0; } CvAddToCommentList (FinalLineToken); LineToken = strtok (NULL, "\n"); while (LineToken != NULL) { /* * It is assumed that each line has some sort of indentation. * This means that we need to find the first character that * is not a white space within each line. */ CharStart = FALSE; for (i = 0; (i < (strlen (LineToken) + 1)) && !CharStart; i++) { if (LineToken[i] != ' ' && LineToken[i] != '\t') { CharStart = TRUE; LineToken += i-1; LineToken [0] = ' '; /* Pad for Formatting */ } } FinalLineToken = UtLocalCacheCalloc (strlen (LineToken) + 1); strcat (FinalLineToken, LineToken); /* Get rid of any carriage returns */ if (FinalLineToken[strlen (FinalLineToken) - 1] == 0x0D) { FinalLineToken[strlen(FinalLineToken) - 1] = 0; } CvAddToCommentList (FinalLineToken); LineToken = strtok (NULL,"\n"); } } /* * If this only spans a single line, check to see whether if this * comment appears on the same line as a line of code. If does, * retain it's position for stylistic reasons. If it doesn't, * add it to the comment list so that it can be associated with * the next node that's created. */ else { /* * If this is not a regular comment, pad with extra spaces that * appeared in the original source input to retain the original * spacing. */ FinalCommentString = UtLocalCacheCalloc (strlen (CommentString) + CurrentState.SpacesBefore + 1); for (i = 0; (CurrentState.CommentType != ASL_COMMENT_STANDARD) && (i < CurrentState.SpacesBefore); i++) { FinalCommentString[i] = ' '; } strcat (FinalCommentString, CommentString); CvPlaceComment (CurrentState.CommentType, FinalCommentString); } } } /******************************************************************************* * * FUNCTION: CvProcessCommentType2 * * PARAMETERS: CurrentState Current comment parse state * StringBuffer Buffer containing the comment being processed * * RETURN: none * * DESCRIPTION: Process a single line comment. This function captures a comment * in a char* and places the comment in the appropriate global * buffer through CvPlaceComment * ******************************************************************************/ void CvProcessCommentType2 ( ASL_COMMENT_STATE CurrentState, char *StringBuffer) { UINT32 i; char *CommentString; char *FinalCommentString; if (AcpiGbl_CaptureComments && CurrentState.CaptureComments) { *StringBuffer = 0; /* null terminate */ CvDbgPrint ("Single-line comment\n"); CommentString = UtLocalCacheCalloc (strlen (AslGbl_MsgBuffer) + 1); strcpy (CommentString, AslGbl_MsgBuffer); /* If this comment lies on the same line as the latest parse op, * assign it to that op's CommentAfter field. Saving in this field * will allow us to support comments that come after code on the * same line as the code itself. For example, * Name(A,"") //comment * * will be retained rather than transformed into * * Name(A,"") * //comment * * For this case, we only need to add one comment since * * Name(A,"") //comment1 //comment2 ... more comments here. * * would be lexically analyzed as a single comment. * * Create a new string with the appropriate spaces. Since we need * to account for the proper spacing, the actual comment, * extra 2 spaces so that this comment can be converted to the "/ *" * style and the null terminator, the string would look something * like: * * [ (spaces) (comment) ( * /) ('\0') ] * */ FinalCommentString = UtLocalCacheCalloc (CurrentState.SpacesBefore + strlen (CommentString) + 3 + 1); for (i = 0; (CurrentState.CommentType != 1) && (i < CurrentState.SpacesBefore); i++) { FinalCommentString[i] = ' '; } strcat (FinalCommentString, CommentString); /* convert to a "/ *" style comment */ strcat (FinalCommentString, " */"); FinalCommentString [CurrentState.SpacesBefore + strlen (CommentString) + 3] = 0; /* get rid of the carriage return */ if (FinalCommentString[strlen (FinalCommentString) - 1] == 0x0D) { FinalCommentString[strlen(FinalCommentString) - 1] = 0; } CvPlaceComment (CurrentState.CommentType, FinalCommentString); } } /******************************************************************************* * * FUNCTION: CgCalculateCommentLengths * * PARAMETERS: Op - Calculate all comments of this Op * * RETURN: TotalCommentLength - Length of all comments within this op. * * DESCRIPTION: Calculate the length that the each comment takes up within Op. * Comments look like the following: [0xA9 OptionBtye comment 0x00] * therefore, we add 1 + 1 + strlen (comment) + 1 to get the actual * length of this comment. * ******************************************************************************/ UINT32 CvCalculateCommentLengths( ACPI_PARSE_OBJECT *Op) { UINT32 CommentLength = 0; UINT32 TotalCommentLength = 0; ACPI_COMMENT_NODE *Current = NULL; if (!AcpiGbl_CaptureComments) { return (0); } CvDbgPrint ("==Calculating comment lengths for %s\n", Op->Asl.ParseOpName); if (Op->Asl.FileChanged) { TotalCommentLength += strlen (Op->Asl.Filename) + 3; if (Op->Asl.ParentFilename && AcpiUtStricmp (Op->Asl.Filename, Op->Asl.ParentFilename)) { TotalCommentLength += strlen (Op->Asl.ParentFilename) + 3; } } if (Op->Asl.CommentList) { Current = Op->Asl.CommentList; while (Current) { CommentLength = strlen (Current->Comment)+3; CvDbgPrint ("Length of standard comment: %d\n", CommentLength); CvDbgPrint (" Comment string: %s\n\n", Current->Comment); TotalCommentLength += CommentLength; Current = Current->Next; } } if (Op->Asl.EndBlkComment) { Current = Op->Asl.EndBlkComment; while (Current) { CommentLength = strlen (Current->Comment)+3; CvDbgPrint ("Length of endblkcomment: %d\n", CommentLength); CvDbgPrint (" Comment string: %s\n\n", Current->Comment); TotalCommentLength += CommentLength; Current = Current->Next; } } if (Op->Asl.InlineComment) { CommentLength = strlen (Op->Asl.InlineComment)+3; CvDbgPrint ("Length of inline comment: %d\n", CommentLength); CvDbgPrint (" Comment string: %s\n\n", Op->Asl.InlineComment); TotalCommentLength += CommentLength; } if (Op->Asl.EndNodeComment) { CommentLength = strlen(Op->Asl.EndNodeComment)+3; CvDbgPrint ("Length of end node comment +3: %d\n", CommentLength); CvDbgPrint (" Comment string: %s\n\n", Op->Asl.EndNodeComment); TotalCommentLength += CommentLength; } if (Op->Asl.CloseBraceComment) { CommentLength = strlen (Op->Asl.CloseBraceComment)+3; CvDbgPrint ("Length of close brace comment: %d\n", CommentLength); CvDbgPrint (" Comment string: %s\n\n", Op->Asl.CloseBraceComment); TotalCommentLength += CommentLength; } CvDbgPrint("\n\n"); return (TotalCommentLength); } /******************************************************************************* * * FUNCTION: CgWriteAmlDefBlockComment * * PARAMETERS: Op - Current parse op * * RETURN: None * * DESCRIPTION: Write all comments for a particular definition block. * For definition blocks, the comments need to come after the * definition block header. The regular comments above the * definition block would be categorized as * STD_DEFBLK_COMMENT and comments after the closing brace * is categorized as END_DEFBLK_COMMENT. * ******************************************************************************/ void CgWriteAmlDefBlockComment( ACPI_PARSE_OBJECT *Op) { UINT8 CommentOption; ACPI_COMMENT_NODE *Current; char *NewFilename; char *Position; char *DirectoryPosition; if (!AcpiGbl_CaptureComments || (Op->Asl.ParseOpcode != PARSEOP_DEFINITION_BLOCK)) { return; } CvDbgPrint ("Printing comments for a definition block..\n"); /* First, print the file name comment after changing .asl to .dsl */ NewFilename = UtLocalCacheCalloc (strlen (Op->Asl.Filename)); strcpy (NewFilename, Op->Asl.Filename); DirectoryPosition = strrchr (NewFilename, '/'); Position = strrchr (NewFilename, '.'); if (Position && (Position > DirectoryPosition)) { /* Tack on the new suffix */ Position++; *Position = 0; strcat (Position, FILE_SUFFIX_DISASSEMBLY); } else { /* No dot, add one and then the suffix */ strcat (NewFilename, "."); strcat (NewFilename, FILE_SUFFIX_DISASSEMBLY); } CommentOption = FILENAME_COMMENT; CgWriteOneAmlComment(Op, NewFilename, CommentOption); Current = Op->Asl.CommentList; CommentOption = STD_DEFBLK_COMMENT; while (Current) { CgWriteOneAmlComment(Op, Current->Comment, CommentOption); CvDbgPrint ("Printing comment: %s\n", Current->Comment); Current = Current->Next; } Op->Asl.CommentList = NULL; /* Print any Inline comments associated with this node */ if (Op->Asl.CloseBraceComment) { CommentOption = END_DEFBLK_COMMENT; CgWriteOneAmlComment(Op, Op->Asl.CloseBraceComment, CommentOption); Op->Asl.CloseBraceComment = NULL; } } /******************************************************************************* * * FUNCTION: CgWriteOneAmlComment * * PARAMETERS: Op - Current parse op * CommentToPrint - Comment that's printed * InputOption - Denotes the comment option. * * RETURN: None * * DESCRIPTION: write a single comment. * ******************************************************************************/ void CgWriteOneAmlComment( ACPI_PARSE_OBJECT *Op, char* CommentToPrint, UINT8 InputOption) { UINT8 CommentOption = InputOption; UINT8 CommentOpcode = (UINT8) AML_COMMENT_OP; if (!CommentToPrint) { return; } CgLocalWriteAmlData (Op, &CommentOpcode, 1); CgLocalWriteAmlData (Op, &CommentOption, 1); /* The strlen (..) + 1 is to include the null terminator */ CgLocalWriteAmlData (Op, CommentToPrint, strlen (CommentToPrint) + 1); } /******************************************************************************* * * FUNCTION: CgWriteAmlComment * * PARAMETERS: Op - Current parse op * * RETURN: None * * DESCRIPTION: Write all comments pertaining to the current parse op * ******************************************************************************/ void CgWriteAmlComment( ACPI_PARSE_OBJECT *Op) { ACPI_COMMENT_NODE *Current; UINT8 CommentOption; char *NewFilename; char *ParentFilename; if ((Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK) || !AcpiGbl_CaptureComments) { return; } /* Print out the filename comment if needed */ if (Op->Asl.FileChanged) { /* First, print the file name comment after changing .asl to .dsl */ NewFilename = FlGenerateFilename (Op->Asl.Filename, FILE_SUFFIX_DISASSEMBLY); if (NewFilename) { CvDbgPrint ("Writing file comment, \"%s\" for %s\n", NewFilename, Op->Asl.ParseOpName); } CgWriteOneAmlComment(Op, NewFilename, FILENAME_COMMENT); if (Op->Asl.ParentFilename && AcpiUtStricmp (Op->Asl.ParentFilename, Op->Asl.Filename)) { ParentFilename = FlGenerateFilename (Op->Asl.ParentFilename, FILE_SUFFIX_DISASSEMBLY); CgWriteOneAmlComment(Op, ParentFilename, PARENTFILENAME_COMMENT); } /* Prevent multiple writes of the same comment */ Op->Asl.FileChanged = FALSE; } /* * Regular comments are stored in a list of comments within an Op. * If there is a such list in this node, print out the comment * as byte code. */ Current = Op->Asl.CommentList; if (Op->Asl.ParseOpcode == PARSEOP_INCLUDE) { CommentOption = INCLUDE_COMMENT; } else { CommentOption = STANDARD_COMMENT; } while (Current) { CgWriteOneAmlComment(Op, Current->Comment, CommentOption); Current = Current->Next; } Op->Asl.CommentList = NULL; Current = Op->Asl.EndBlkComment; CommentOption = ENDBLK_COMMENT; while (Current) { CgWriteOneAmlComment(Op, Current->Comment, CommentOption); Current = Current->Next; } Op->Asl.EndBlkComment = NULL; /* Print any Inline comments associated with this node */ if (Op->Asl.InlineComment) { CommentOption = INLINE_COMMENT; CgWriteOneAmlComment(Op, Op->Asl.InlineComment, CommentOption); Op->Asl.InlineComment = NULL; } if (Op->Asl.EndNodeComment) { CommentOption = ENDNODE_COMMENT; CgWriteOneAmlComment(Op, Op->Asl.EndNodeComment, CommentOption); Op->Asl.EndNodeComment = NULL; } if (Op->Asl.CloseBraceComment) { CommentOption = CLOSE_BRACE_COMMENT; CgWriteOneAmlComment(Op, Op->Asl.CloseBraceComment, CommentOption); Op->Asl.CloseBraceComment = NULL; } } /******************************************************************************* * * FUNCTION: CvCommentNodeCalloc * * PARAMETERS: None * * RETURN: Pointer to the comment node. Aborts on allocation failure * * DESCRIPTION: Allocate a string node buffer. * ******************************************************************************/ ACPI_COMMENT_NODE * CvCommentNodeCalloc ( void) { ACPI_COMMENT_NODE *NewCommentNode; NewCommentNode = UtLocalCalloc (sizeof (ACPI_COMMENT_NODE)); NewCommentNode->Next = NULL; return (NewCommentNode); } /******************************************************************************* * * FUNCTION: CvParseOpBlockType * * PARAMETERS: Op - Object to be examined * * RETURN: BlockType - not a block, parens, braces, or even both. * * DESCRIPTION: Type of block for this ASL parseop (parens or braces) * keep this in sync with aslprimaries.y, aslresources.y and * aslrules.y * ******************************************************************************/ UINT32 CvParseOpBlockType ( ACPI_PARSE_OBJECT *Op) { if (!Op) { return (BLOCK_NONE); } switch (Op->Asl.ParseOpcode) { /* From aslprimaries.y */ case PARSEOP_VAR_PACKAGE: case PARSEOP_BANKFIELD: case PARSEOP_BUFFER: case PARSEOP_CASE: case PARSEOP_DEVICE: case PARSEOP_FIELD: case PARSEOP_FOR: case PARSEOP_FUNCTION: case PARSEOP_IF: case PARSEOP_ELSEIF: case PARSEOP_INDEXFIELD: case PARSEOP_METHOD: case PARSEOP_POWERRESOURCE: case PARSEOP_PROCESSOR: case PARSEOP_DATABUFFER: case PARSEOP_SCOPE: case PARSEOP_SWITCH: case PARSEOP_THERMALZONE: case PARSEOP_WHILE: /* From aslresources.y */ case PARSEOP_RESOURCETEMPLATE: /* optional parens */ case PARSEOP_VENDORLONG: case PARSEOP_VENDORSHORT: case PARSEOP_INTERRUPT: case PARSEOP_IRQNOFLAGS: case PARSEOP_IRQ: case PARSEOP_GPIO_INT: case PARSEOP_GPIO_IO: case PARSEOP_DMA: /* From aslrules.y */ case PARSEOP_DEFINITION_BLOCK: return (BLOCK_PAREN | BLOCK_BRACE); default: return (BLOCK_NONE); } } /******************************************************************************* * * FUNCTION: CvProcessCommentState * * PARAMETERS: Input - Input character * * RETURN: None * * DESCRIPTION: Take the given input. If this character is * defined as a comment table entry, then update the state * accordingly. * ******************************************************************************/ void CvProcessCommentState ( char Input) { if (Input != ' ') { AslGbl_CommentState.SpacesBefore = 0; } switch (Input) { case '\n': AslGbl_CommentState.CommentType = ASL_COMMENT_STANDARD; break; case ' ': /* Keep the CommentType the same */ AslGbl_CommentState.SpacesBefore++; break; case '(': AslGbl_CommentState.CommentType = ASL_COMMENT_OPEN_PAREN; break; case ')': AslGbl_CommentState.CommentType = ASL_COMMENT_CLOSE_PAREN; break; case '{': AslGbl_CommentState.CommentType = ASL_COMMENT_STANDARD; AslGbl_CommentState.ParsingParenBraceNode = NULL; CvDbgPrint ("End Parsing paren/Brace node!\n"); break; case '}': AslGbl_CommentState.CommentType = ASL_COMMENT_CLOSE_BRACE; break; case ',': AslGbl_CommentState.CommentType = ASLCOMMENT_INLINE; break; default: AslGbl_CommentState.CommentType = ASLCOMMENT_INLINE; break; } } /******************************************************************************* * * FUNCTION: CvAddToCommentList * * PARAMETERS: ToAdd - Contains the comment to be inserted * * RETURN: None * * DESCRIPTION: Add the given char* to a list of comments in the global list * of comments. * ******************************************************************************/ void CvAddToCommentList ( char *ToAdd) { if (AslGbl_CommentListHead) { AslGbl_CommentListTail->Next = CvCommentNodeCalloc (); AslGbl_CommentListTail = AslGbl_CommentListTail->Next; } else { AslGbl_CommentListHead = CvCommentNodeCalloc (); AslGbl_CommentListTail = AslGbl_CommentListHead; } AslGbl_CommentListTail->Comment = ToAdd; } /******************************************************************************* * * FUNCTION: CvAppendInlineComment * * PARAMETERS: InlineComment - Append to the end of this string. * toAdd - Contains the comment to be inserted * * RETURN: Str - toAdd appended to InlineComment * * DESCRIPTION: Concatenate ToAdd to InlineComment * ******************************************************************************/ char * CvAppendInlineComment ( char *InlineComment, char *ToAdd) { char* Str; UINT32 Size = 0; if (!InlineComment) { return (ToAdd); } if (!ToAdd) { return (InlineComment); } Size = strlen (ToAdd); Size += strlen (InlineComment); Str = UtLocalCacheCalloc (Size + 1); strcpy (Str, InlineComment); strcat (Str, ToAdd); Str[Size +1] = 0; return (Str); } /******************************************************************************* * * FUNCTION: CvPlaceComment * * PARAMETERS: UINT8 - Type * char * - CommentString * * RETURN: None * * DESCRIPTION: Given type and CommentString, this function places the * CommentString in the appropriate global comment list or char* * ******************************************************************************/ void CvPlaceComment( UINT8 Type, char *CommentString) { ACPI_PARSE_OBJECT *LatestParseNode; ACPI_PARSE_OBJECT *ParenBraceNode; LatestParseNode = AslGbl_CommentState.LatestParseOp; ParenBraceNode = AslGbl_CommentState.ParsingParenBraceNode; CvDbgPrint ("Placing comment %s for type %d\n", CommentString, Type); switch (Type) { case ASL_COMMENT_STANDARD: CvAddToCommentList (CommentString); break; case ASLCOMMENT_INLINE: LatestParseNode->Asl.InlineComment = CvAppendInlineComment (LatestParseNode->Asl.InlineComment, CommentString); break; case ASL_COMMENT_OPEN_PAREN: AslGbl_InlineCommentBuffer = CvAppendInlineComment(AslGbl_InlineCommentBuffer, CommentString); break; case ASL_COMMENT_CLOSE_PAREN: if (ParenBraceNode) { ParenBraceNode->Asl.EndNodeComment = CvAppendInlineComment (ParenBraceNode->Asl.EndNodeComment, CommentString); } else { LatestParseNode->Asl.EndNodeComment = CvAppendInlineComment (LatestParseNode->Asl.EndNodeComment, CommentString); } break; case ASL_COMMENT_CLOSE_BRACE: LatestParseNode->Asl.CloseBraceComment = CommentString; break; default: break; } } acpica-unix-20250404/source/compiler/aslxref.c0000775000175000017500000013032214773714131020463 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslxref - Namespace cross-reference * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acparser.h" #include "amlcode.h" #include "acnamesp.h" #include "acdispat.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslxref") /* Local prototypes */ static ACPI_STATUS XfNamespaceLocateBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static ACPI_STATUS XfNamespaceLocateEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); static BOOLEAN XfValidateCrossReference ( ACPI_PARSE_OBJECT *Op, const ACPI_OPCODE_INFO *OpInfo, ACPI_NAMESPACE_NODE *Node); static BOOLEAN XfObjectExists ( char *Name); static ACPI_STATUS XfCompareOneNamespaceObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue); static void XfCheckFieldRange ( ACPI_PARSE_OBJECT *Op, UINT32 RegionBitLength, UINT32 FieldBitOffset, UINT32 FieldBitLength, UINT32 AccessBitWidth); static BOOLEAN XfFindCondRefOfName ( ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op); static BOOLEAN XfRefIsGuardedByIfCondRefOf ( ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op); /******************************************************************************* * * FUNCTION: XfCrossReferenceNamespace * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Perform a cross reference check of the parse tree against the * namespace. Every named referenced within the parse tree * should be get resolved with a namespace lookup. If not, the * original reference in the ASL code is invalid -- i.e., refers * to a non-existent object. * * NOTE: The ASL "External" operator causes the name to be inserted into the * namespace so that references to the external name will be resolved * correctly here. * ******************************************************************************/ ACPI_STATUS XfCrossReferenceNamespace ( void) { ACPI_WALK_STATE *WalkState; /* * Create a new walk state for use when looking up names * within the namespace (Passed as context to the callbacks) */ WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL); if (!WalkState) { return (AE_NO_MEMORY); } /* Walk the entire parse tree */ TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_TWICE, XfNamespaceLocateBegin, XfNamespaceLocateEnd, WalkState); ACPI_FREE (WalkState); return (AE_OK); } /******************************************************************************* * * FUNCTION: XfObjectExists * * PARAMETERS: Name - 4 char ACPI name * * RETURN: TRUE if name exists in namespace * * DESCRIPTION: Walk the namespace to find an object * ******************************************************************************/ static BOOLEAN XfObjectExists ( char *Name) { ACPI_STATUS Status; /* Walk entire namespace from the supplied root */ Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, FALSE, XfCompareOneNamespaceObject, NULL, Name, NULL); if (Status == AE_CTRL_TRUE) { /* At least one instance of the name was found */ return (TRUE); } return (FALSE); } /******************************************************************************* * * FUNCTION: XfCompareOneNamespaceObject * * PARAMETERS: ACPI_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Compare name of one object. * ******************************************************************************/ static ACPI_STATUS XfCompareOneNamespaceObject ( ACPI_HANDLE ObjHandle, UINT32 Level, void *Context, void **ReturnValue) { ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle; /* Simply check the name */ if (*((UINT32 *) (Context)) == Node->Name.Integer) { /* Abort walk if we found one instance */ return (AE_CTRL_TRUE); } return (AE_OK); } /******************************************************************************* * * FUNCTION: XfCheckFieldRange * * PARAMETERS: RegionBitLength - Length of entire parent region * FieldBitOffset - Start of the field unit (within region) * FieldBitLength - Entire length of field unit * AccessBitWidth - Access width of the field unit * * RETURN: None * * DESCRIPTION: Check one field unit to make sure it fits in the parent * op region. * * Note: AccessBitWidth must be either 8,16,32, or 64 * ******************************************************************************/ static void XfCheckFieldRange ( ACPI_PARSE_OBJECT *Op, UINT32 RegionBitLength, UINT32 FieldBitOffset, UINT32 FieldBitLength, UINT32 AccessBitWidth) { UINT32 FieldEndBitOffset; /* * Check each field unit against the region size. The entire * field unit (start offset plus length) must fit within the * region. */ FieldEndBitOffset = FieldBitOffset + FieldBitLength; if (FieldEndBitOffset > RegionBitLength) { /* Field definition itself is beyond the end-of-region */ AslError (ASL_ERROR, ASL_MSG_FIELD_UNIT_OFFSET, Op, NULL); return; } /* * Now check that the field plus AccessWidth doesn't go beyond * the end-of-region. Assumes AccessBitWidth is a power of 2 */ FieldEndBitOffset = ACPI_ROUND_UP (FieldEndBitOffset, AccessBitWidth); if (FieldEndBitOffset > RegionBitLength) { /* Field definition combined with the access is beyond EOR */ AslError (ASL_ERROR, ASL_MSG_FIELD_UNIT_ACCESS_WIDTH, Op, NULL); } } /******************************************************************************* * * FUNCTION: XfNamespaceLocateBegin * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Descending callback used during cross-reference. For named * object references, attempt to locate the name in the * namespace. * * NOTE: ASL references to named fields within resource descriptors are * resolved to integer values here. Therefore, this step is an * important part of the code generation. We don't know that the * name refers to a resource descriptor until now. * ******************************************************************************/ static ACPI_STATUS XfNamespaceLocateBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState = (ACPI_WALK_STATE *) Context; ACPI_NAMESPACE_NODE *Node; ACPI_STATUS Status; ACPI_OBJECT_TYPE ObjectType; char *Path; UINT8 PassedArgs; ACPI_PARSE_OBJECT *NextOp; ACPI_PARSE_OBJECT *OwningOp; ACPI_PARSE_OBJECT *SpaceIdOp; UINT32 MinimumLength; UINT32 Offset; UINT32 FieldBitLength; UINT32 TagBitLength; UINT8 Message = 0; const ACPI_OPCODE_INFO *OpInfo; UINT32 Flags; ASL_METHOD_LOCAL *MethodLocals = NULL; ASL_METHOD_LOCAL *MethodArgs = NULL; int RegisterNumber; UINT32 i; ACPI_NAMESPACE_NODE *DeclarationParentMethod; ACPI_PARSE_OBJECT *ReferenceParentMethod; char *ExternalPath; ACPI_FUNCTION_TRACE_PTR (XfNamespaceLocateBegin, Op); if ((Op->Asl.AmlOpcode == AML_METHOD_OP) && Op->Asl.Node) { Node = Op->Asl.Node; /* Support for method LocalX/ArgX analysis */ if (!Node->MethodLocals) { /* Create local/arg info blocks */ MethodLocals = UtLocalCalloc ( sizeof (ASL_METHOD_LOCAL) * ACPI_METHOD_NUM_LOCALS); Node->MethodLocals = MethodLocals; MethodArgs = UtLocalCalloc ( sizeof (ASL_METHOD_LOCAL) * ACPI_METHOD_NUM_ARGS); Node->MethodArgs = MethodArgs; /* * Get the method argument count * First, get the name node */ NextOp = Op->Asl.Child; /* Get the NumArguments node */ NextOp = NextOp->Asl.Next; Node->ArgCount = (UINT8) (((UINT8) NextOp->Asl.Value.Integer) & 0x07); /* We will track all possible ArgXs */ for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++) { if (i < Node->ArgCount) { /* Real Args are always "initialized" */ MethodArgs[i].Flags = ASL_ARG_INITIALIZED; } else { /* Other ArgXs can be used as locals */ MethodArgs[i].Flags = ASL_ARG_IS_LOCAL; } MethodArgs[i].Op = Op; } } } /* * If this node is the actual declaration of a name * [such as the XXXX name in "Method (XXXX)"], * we are not interested in it here. We only care about names that are * references to other objects within the namespace and the parent objects * of name declarations */ if (Op->Asl.CompileFlags & OP_IS_NAME_DECLARATION) { return_ACPI_STATUS (AE_OK); } OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); /* Check method LocalX variables */ if (OpInfo->Type == AML_TYPE_LOCAL_VARIABLE) { /* Find parent method Op */ NextOp = UtGetParentMethodOp (Op); if (!NextOp) { return_ACPI_STATUS (AE_OK); } /* Get method node */ Node = NextOp->Asl.Node; RegisterNumber = Op->Asl.AmlOpcode & 0x0007; /* 0x60 through 0x67 */ MethodLocals = Node->MethodLocals; if (Op->Asl.CompileFlags & OP_IS_TARGET) { /* Local is being initialized */ MethodLocals[RegisterNumber].Flags |= ASL_LOCAL_INITIALIZED; MethodLocals[RegisterNumber].Op = Op; return_ACPI_STATUS (AE_OK); } /* Mark this Local as referenced */ MethodLocals[RegisterNumber].Flags |= ASL_LOCAL_REFERENCED; MethodLocals[RegisterNumber].Op = Op; return_ACPI_STATUS (AE_OK); } /* Check method ArgX variables */ if (OpInfo->Type == AML_TYPE_METHOD_ARGUMENT) { /* Find parent method Op */ NextOp = UtGetParentMethodOp (Op); if (!NextOp) { return_ACPI_STATUS (AE_OK); } /* Get method node */ Node = NextOp->Asl.Node; /* Get Arg # */ RegisterNumber = Op->Asl.AmlOpcode - AML_ARG0; /* 0x68 through 0x6F */ MethodArgs = Node->MethodArgs; /* Mark this Arg as referenced */ MethodArgs[RegisterNumber].Flags |= ASL_ARG_REFERENCED; MethodArgs[RegisterNumber].Op = Op; if (Op->Asl.CompileFlags & OP_IS_TARGET) { /* Arg is being initialized */ MethodArgs[RegisterNumber].Flags |= ASL_ARG_INITIALIZED; } return_ACPI_STATUS (AE_OK); } /* * After method ArgX and LocalX, we are only interested in opcodes * that have an associated name */ if ((!(OpInfo->Flags & AML_NAMED)) && (!(OpInfo->Flags & AML_CREATE)) && (Op->Asl.ParseOpcode != PARSEOP_NAMESTRING) && (Op->Asl.ParseOpcode != PARSEOP_NAMESEG) && (Op->Asl.ParseOpcode != PARSEOP_METHODCALL) && (Op->Asl.ParseOpcode != PARSEOP_EXTERNAL)) { return_ACPI_STATUS (AE_OK); } /* * We must enable the "search-to-root" for single NameSegs, but * we have to be very careful about opening up scopes */ Flags = ACPI_NS_SEARCH_PARENT; if ((Op->Asl.ParseOpcode == PARSEOP_NAMESTRING) || (Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_METHODCALL) || (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL) || (Op->Asl.ParseOpcode == PARSEOP_CONDREFOF)) { /* * These are name references, do not push the scope stack * for them. */ Flags |= ACPI_NS_DONT_OPEN_SCOPE; } /* Get the NamePath from the appropriate place */ if (OpInfo->Flags & AML_NAMED) { /* For nearly all NAMED operators, the name reference is the first child */ Path = Op->Asl.Child->Asl.Value.String; if (Op->Asl.AmlOpcode == AML_ALIAS_OP) { /* * ALIAS is the only oddball opcode, the name declaration * (alias name) is the second operand */ Path = Op->Asl.Child->Asl.Next->Asl.Value.String; } } else if (OpInfo->Flags & AML_CREATE) { /* Name must appear as the last parameter */ NextOp = Op->Asl.Child; while (!(NextOp->Asl.CompileFlags & OP_IS_NAME_DECLARATION)) { NextOp = NextOp->Asl.Next; } Path = NextOp->Asl.Value.String; } else { Path = Op->Asl.Value.String; } ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Type=%s\n", AcpiUtGetTypeName (ObjectType))); /* * Lookup the name in the namespace. Name must exist at this point, or it * is an invalid reference. * * The namespace is also used as a lookup table for references to resource * descriptors and the fields within them. */ AslGbl_NsLookupCount++; Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, ACPI_IMODE_EXECUTE, Flags, WalkState, &Node); if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_FOUND) { /* * We didn't find the name reference by path -- we can qualify this * a little better before we print an error message */ if ((Op->Asl.Parent) && (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CONDREFOF)) { /* * One special case: CondRefOf operator - if the name doesn't * exist at this point, it means that there's no actual or * external declaration. If the name is not found, just ignore * it, the point of the operator is to determine if the name * exists at runtime. We wanted to see if this named object * exists to facilitate analysis to allow protected usage of * undeclared externals. */ return_ACPI_STATUS (AE_OK); } else if (strlen (Path) == ACPI_NAMESEG_SIZE) { /* A simple, one-segment ACPI name */ if (XfObjectExists (Path)) { /* * There exists such a name, but we couldn't get to it * from this scope */ AslError (ASL_ERROR, ASL_MSG_NOT_REACHABLE, Op, Op->Asl.ExternalName); } else { /* The name doesn't exist, period */ AslError (ASL_ERROR, ASL_MSG_NOT_EXIST, Op, Op->Asl.ExternalName); } } else { /* The NamePath contains multiple NameSegs */ if ((OpInfo->Flags & AML_CREATE) || (OpInfo->ObjectType == ACPI_TYPE_LOCAL_ALIAS)) { /* * The new name is the last parameter. For the * CreateXXXXField and Alias operators */ NextOp = Op->Asl.Child; while (!(NextOp->Asl.CompileFlags & OP_IS_NAME_DECLARATION)) { NextOp = NextOp->Asl.Next; } AslError (ASL_ERROR, ASL_MSG_PREFIX_NOT_EXIST, NextOp, NextOp->Asl.ExternalName); } else if (OpInfo->Flags & AML_NAMED) { /* The new name is the first parameter */ AslError (ASL_ERROR, ASL_MSG_PREFIX_NOT_EXIST, Op, Op->Asl.ExternalName); } else if (Path[0] == AML_ROOT_PREFIX) { /* Full namepath from root, the object does not exist */ AslError (ASL_ERROR, ASL_MSG_NOT_EXIST, Op, Op->Asl.ExternalName); } else { /* * Generic "not found" error. Cannot determine whether it * doesn't exist or just can't be reached. However, we * can differentiate between a NameSeg vs. NamePath. */ if (strlen (Op->Asl.ExternalName) == ACPI_NAMESEG_SIZE) { AslError (ASL_ERROR, ASL_MSG_NOT_FOUND, Op, Op->Asl.ExternalName); } else { AslError (ASL_ERROR, ASL_MSG_NAMEPATH_NOT_EXIST, Op, Op->Asl.ExternalName); } } } Status = AE_OK; } return_ACPI_STATUS (Status); } /* Check for an attempt to access an object in another method */ if (!XfValidateCrossReference (Op, OpInfo, Node)) { AslError (ASL_ERROR, ASL_MSG_TEMPORARY_OBJECT, Op, Op->Asl.ExternalName); return_ACPI_STATUS (Status); } /* Object was found above, check for an illegal forward reference */ if (Op->Asl.CompileFlags & OP_NOT_FOUND_DURING_LOAD) { /* * During the load phase, this Op was flagged as a possible * illegal forward reference. In other words, Op is a name path or * name segment that refers to a named object declared after the * reference. In this scinario, Node refers to the actual declaration * and Op is a parse node that references the named object. * * Note: * * Object references inside of control methods are allowed to * refer to objects declared outside of control methods. * * If the declaration and reference are both contained inside of the * same method or outside of any method, this is a forward reference * and should be reported as a compiler error. */ DeclarationParentMethod = UtGetParentMethodNode (Node); ReferenceParentMethod = UtGetParentMethodOp (Op); /* case 1: declaration and reference are both outside of method */ if (!ReferenceParentMethod && !DeclarationParentMethod) { AslError (ASL_ERROR, ASL_MSG_ILLEGAL_FORWARD_REF, Op, Op->Asl.ExternalName); } /* case 2: declaration and reference are both inside of the same method */ else if (ReferenceParentMethod && DeclarationParentMethod && ReferenceParentMethod == DeclarationParentMethod->Op) { AslError (ASL_ERROR, ASL_MSG_ILLEGAL_FORWARD_REF, Op, Op->Asl.ExternalName); } } /* Check for a reference vs. name declaration */ if (!(OpInfo->Flags & AML_NAMED) && !(OpInfo->Flags & AML_CREATE)) { /* This node has been referenced, mark it for reference check */ Node->Flags |= ANOBJ_IS_REFERENCED; } /* * Attempt to optimize the NamePath * * One special case: CondRefOf operator - not all AML interpreter * implementations expect optimized namepaths as a parameter to this * operator. They require relative name paths with prefix operators or * namepaths starting with the root scope. * * Other AML interpreter implementations do not perform the namespace * search that starts at the current scope and recursively searching the * parent scope until the root scope. The lack of search is only known to * occur for the namestring parameter for the CondRefOf operator. */ if ((Op->Asl.Parent) && (Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_CONDREFOF)) { OptOptimizeNamePath (Op, OpInfo->Flags, WalkState, Path, Node); } /* * 1) Dereference an alias (A name reference that is an alias) * Aliases are not nested, the alias always points to the final object */ if ((Op->Asl.ParseOpcode != PARSEOP_ALIAS) && (Node->Type == ACPI_TYPE_LOCAL_ALIAS)) { /* This node points back to the original PARSEOP_ALIAS */ NextOp = Node->Op; /* The first child is the alias target op */ NextOp = NextOp->Asl.Child; /* That in turn points back to original target alias node */ if (NextOp->Asl.Node) { Node = NextOp->Asl.Node; } /* Else - forward reference to alias, will be resolved later */ } /* 2) Check for a reference to a resource descriptor */ if ((Node->Type == ACPI_TYPE_LOCAL_RESOURCE_FIELD) || (Node->Type == ACPI_TYPE_LOCAL_RESOURCE)) { /* * This was a reference to a field within a resource descriptor. * Extract the associated field offset (either a bit or byte * offset depending on the field type) and change the named * reference into an integer for AML code generation */ Offset = Node->Value; TagBitLength = Node->Length; /* * If a field is being created, generate the length (in bits) of * the field. Note: Opcodes other than CreateXxxField and Index * can come through here. For other opcodes, we just need to * convert the resource tag reference to an integer offset. */ switch (Op->Asl.Parent->Asl.AmlOpcode) { case AML_CREATE_FIELD_OP: /* Variable "Length" field, in bits */ /* * We know the length operand is an integer constant because * we know that it contains a reference to a resource * descriptor tag. */ FieldBitLength = (UINT32) Op->Asl.Next->Asl.Value.Integer; break; case AML_CREATE_BIT_FIELD_OP: FieldBitLength = 1; break; case AML_CREATE_BYTE_FIELD_OP: case AML_INDEX_OP: FieldBitLength = 8; break; case AML_CREATE_WORD_FIELD_OP: FieldBitLength = 16; break; case AML_CREATE_DWORD_FIELD_OP: FieldBitLength = 32; break; case AML_CREATE_QWORD_FIELD_OP: FieldBitLength = 64; break; default: FieldBitLength = 0; break; } /* Check the field length against the length of the resource tag */ if (FieldBitLength) { if (TagBitLength < FieldBitLength) { Message = ASL_MSG_TAG_SMALLER; } else if (TagBitLength > FieldBitLength) { Message = ASL_MSG_TAG_LARGER; } if (Message) { sprintf (AslGbl_MsgBuffer, "Size mismatch, Tag: %u bit%s, Field: %u bit%s", TagBitLength, (TagBitLength > 1) ? "s" : "", FieldBitLength, (FieldBitLength > 1) ? "s" : ""); AslError (ASL_WARNING, Message, Op, AslGbl_MsgBuffer); } } /* Convert the BitOffset to a ByteOffset for certain opcodes */ switch (Op->Asl.Parent->Asl.AmlOpcode) { case AML_CREATE_BYTE_FIELD_OP: case AML_CREATE_WORD_FIELD_OP: case AML_CREATE_DWORD_FIELD_OP: case AML_CREATE_QWORD_FIELD_OP: case AML_INDEX_OP: Offset = ACPI_DIV_8 (Offset); break; default: break; } /* Now convert this node to an integer whose value is the field offset */ Op->Asl.AmlLength = 0; Op->Asl.ParseOpcode = PARSEOP_INTEGER; Op->Asl.Value.Integer = (UINT64) Offset; Op->Asl.CompileFlags |= OP_IS_RESOURCE_FIELD; OpcGenerateAmlOpcode (Op); } /* 3) Check for a method invocation */ else if ((((Op->Asl.ParseOpcode == PARSEOP_NAMESTRING) || (Op->Asl.ParseOpcode == PARSEOP_NAMESEG)) && (Node->Type == ACPI_TYPE_METHOD) && (Op->Asl.Parent) && (Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_METHOD)) || (Op->Asl.ParseOpcode == PARSEOP_METHODCALL)) { /* * A reference to a method within one of these opcodes is not an * invocation of the method, it is simply a reference to the method. * * September 2016: Removed DeRefOf from this list * July 2020: Added Alias to this list */ if ((Op->Asl.Parent) && ((Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_REFOF) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_PACKAGE) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_VAR_PACKAGE)|| (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_OBJECTTYPE) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_ALIAS))) { return_ACPI_STATUS (AE_OK); } /* * There are two types of method invocation: * 1) Invocation with arguments -- the parser recognizes this * as a METHODCALL. * 2) Invocation with no arguments --the parser cannot determine that * this is a method invocation, therefore we have to figure it out * here. */ if (Node->Type != ACPI_TYPE_METHOD) { sprintf (AslGbl_MsgBuffer, "%s is a %s", Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type)); AslError (ASL_ERROR, ASL_MSG_NOT_METHOD, Op, AslGbl_MsgBuffer); return_ACPI_STATUS (AE_OK); } /* Save the method node in the caller's op */ Op->Asl.Node = Node; if (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CONDREFOF) { return_ACPI_STATUS (AE_OK); } /* * This is a method invocation, with or without arguments. * Count the number of arguments, each appears as a child * under the parent node */ Op->Asl.ParseOpcode = PARSEOP_METHODCALL; UtSetParseOpName (Op); PassedArgs = 0; NextOp = Op->Asl.Child; while (NextOp) { PassedArgs++; NextOp = NextOp->Asl.Next; } if (Node->Value != ASL_EXTERNAL_METHOD_UNKNOWN_PARAMS && Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_EXTERNAL) { /* * Check the parsed arguments with the number expected by the * method declaration itself */ if (PassedArgs != Node->Value) { if (Node->Flags & ANOBJ_IS_EXTERNAL) { sprintf (AslGbl_MsgBuffer, "according to previous use, %s requires %u", Op->Asl.ExternalName, Node->Value); } else { sprintf (AslGbl_MsgBuffer, "%s requires %u", Op->Asl.ExternalName, Node->Value); } if (PassedArgs < Node->Value) { AslError (ASL_ERROR, ASL_MSG_ARG_COUNT_LO, Op, AslGbl_MsgBuffer); } else { AslError (ASL_ERROR, ASL_MSG_ARG_COUNT_HI, Op, AslGbl_MsgBuffer); } } } /* * At this point, a method call to an external method has been * detected. As of 11/19/2019, iASL does not support parameter counts * for methods declared as external. Therefore, save the parameter * count of the first method call and use this count check other * method calls to ensure that the methods are being called with the * same amount of parameters. */ else if (Node->Type == ACPI_TYPE_METHOD && (Node->Flags & ANOBJ_IS_EXTERNAL) && Node->Value == ASL_EXTERNAL_METHOD_UNKNOWN_PARAMS && Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_EXTERNAL) { Node->Value = PassedArgs; } } /* 4) Check for an ASL Field definition */ else if ((Op->Asl.Parent) && ((Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_FIELD) || (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_BANKFIELD))) { /* * Offset checking for fields. If the parent operation region has a * constant length (known at compile time), we can check fields * defined in that region against the region length. This will catch * fields and field units that cannot possibly fit within the region. * * Note: Index fields do not directly reference an operation region, * thus they are not included in this check. */ if (Op == Op->Asl.Parent->Asl.Child) { /* * This is the first child of the field node, which is * the name of the region. Get the parse node for the * region -- which contains the length of the region. */ OwningOp = Node->Op; Op->Asl.Parent->Asl.ExtraValue = ACPI_MUL_8 ((UINT32) OwningOp->Asl.Value.Integer); /* Examine the field access width */ switch ((UINT8) Op->Asl.Parent->Asl.Value.Integer) { case AML_FIELD_ACCESS_ANY: case AML_FIELD_ACCESS_BYTE: case AML_FIELD_ACCESS_BUFFER: default: MinimumLength = 1; break; case AML_FIELD_ACCESS_WORD: MinimumLength = 2; break; case AML_FIELD_ACCESS_DWORD: MinimumLength = 4; break; case AML_FIELD_ACCESS_QWORD: MinimumLength = 8; break; } /* * Is the region at least as big as the access width? * Note: DataTableRegions have 0 length */ if (((UINT32) OwningOp->Asl.Value.Integer) && ((UINT32) OwningOp->Asl.Value.Integer < MinimumLength)) { AslError (ASL_ERROR, ASL_MSG_FIELD_ACCESS_WIDTH, Op, NULL); } /* * Check EC/CMOS/SMBUS fields to make sure that the correct * access type is used (BYTE for EC/CMOS, BUFFER for SMBUS) */ SpaceIdOp = OwningOp->Asl.Child->Asl.Next; switch ((UINT32) SpaceIdOp->Asl.Value.Integer) { case ACPI_ADR_SPACE_EC: case ACPI_ADR_SPACE_CMOS: case ACPI_ADR_SPACE_GPIO: if ((UINT8) Op->Asl.Parent->Asl.Value.Integer != AML_FIELD_ACCESS_BYTE) { AslError (ASL_ERROR, ASL_MSG_REGION_BYTE_ACCESS, Op, NULL); } break; case ACPI_ADR_SPACE_SMBUS: case ACPI_ADR_SPACE_IPMI: case ACPI_ADR_SPACE_GSBUS: if ((UINT8) Op->Asl.Parent->Asl.Value.Integer != AML_FIELD_ACCESS_BUFFER) { AslError (ASL_ERROR, ASL_MSG_REGION_BUFFER_ACCESS, Op, NULL); } break; default: /* Nothing to do for other address spaces */ break; } } else { /* * This is one element of the field list. Check to make sure * that it does not go beyond the end of the parent operation region. * * In the code below: * Op->Asl.Parent->Asl.ExtraValue - Region Length (bits) * Op->Asl.ExtraValue - Field start offset (bits) * Op->Asl.Child->Asl.Value.Integer32 - Field length (bits) * Op->Asl.Child->Asl.ExtraValue - Field access width (bits) */ if (Op->Asl.Parent->Asl.ExtraValue && Op->Asl.Child) { XfCheckFieldRange (Op, Op->Asl.Parent->Asl.ExtraValue, Op->Asl.ExtraValue, (UINT32) Op->Asl.Child->Asl.Value.Integer, Op->Asl.Child->Asl.ExtraValue); } } } /* * 5) Check for external resolution * * By this point, everything should be loaded in the namespace. If a * namespace lookup results in a namespace node that is an external, it * means that this named object was not defined in the input ASL. This * causes issues because there are plenty of incidents where developers * use the external keyword to suppress compiler errors about undefined * objects. Note: this only applies when compiling multiple definition * blocks. * * Do not check for external resolution in the following cases: * * case 1) External (ABCD) * * This declares ABCD as an external so there is no requirement for * ABCD to be loaded in the namespace when analyzing the actual * External() statement. * * case 2) CondRefOf (ABCD) * * This operator will query the ACPI namespace on the existence of * ABCD. If ABCD does not exist, this operator will return a 0 * without incurring AML runtime errors. Therefore, ABCD is allowed * to not exist when analyzing the CondRefOf operator. * * case 3) External (ABCD) * if (CondRefOf (ABCD)) * { * Store (0, ABCD) * } * * In this case, ABCD is accessed only if it exists due to the if * statement so there is no need to flag the ABCD nested in the * store operator. */ if (AslGbl_ParseTreeRoot->Asl.Child && AslGbl_ParseTreeRoot->Asl.Child->Asl.Next && (Node->Flags & ANOBJ_IS_EXTERNAL) && Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_EXTERNAL && Op->Asl.ParseOpcode != PARSEOP_EXTERNAL && Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_CONDREFOF && !XfRefIsGuardedByIfCondRefOf (Node, Op)) { ExternalPath = AcpiNsGetNormalizedPathname (Node, TRUE); sprintf (AslGbl_MsgBuffer, "full path of external object: %s", ExternalPath); AslDualParseOpError (ASL_ERROR, ASL_MSG_UNDEFINED_EXTERNAL, Op, NULL, ASL_MSG_EXTERNAL_FOUND_HERE, Node->Op, AslGbl_MsgBuffer); if (ExternalPath) { ACPI_FREE (ExternalPath); } } /* 5) Check for a connection object */ #if 0 else if (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CONNECTION) { return_ACPI_STATUS (Status); } #endif Op->Asl.Node = Node; return_ACPI_STATUS (Status); } /******************************************************************************* * * FUNCTION: XfRefIsGuardedByIfCondRefOf * * PARAMETERS: Node - Named object reference node * Op - Named object reference parse node * * RETURN: BOOLEAN * * DESCRIPTION: returns true if Op checked inside if (CondRefOf (...)) * refers to Node. * ******************************************************************************/ static BOOLEAN XfRefIsGuardedByIfCondRefOf ( ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Parent = Op->Asl.Parent; while (Parent) { if (Parent->Asl.ParseOpcode == PARSEOP_IF && XfFindCondRefOfName (Node, Parent->Asl.Child)) { return (TRUE); } Parent = Parent->Asl.Parent; } return (FALSE); } /******************************************************************************* * * FUNCTION: XfRefIsGuardedByIfCondRefOf * * PARAMETERS: Node - Named object reference node * Op - Named object reference parse node * * RETURN: BOOLEAN * * DESCRIPTION: returns true if Op checked inside if (CondRefOf (...)) * refers to Node. * ******************************************************************************/ static BOOLEAN XfFindCondRefOfName ( ACPI_NAMESPACE_NODE *Node, ACPI_PARSE_OBJECT *Op) { BOOLEAN CondRefOfFound = FALSE; if (!Op) { return (FALSE); } switch (Op->Asl.ParseOpcode) { case PARSEOP_CONDREFOF: return (Op->Asl.Child->Common.Node == Node); break; case PARSEOP_LAND: CondRefOfFound = XfFindCondRefOfName (Node, Op->Asl.Child); if (CondRefOfFound) { return (TRUE); } return (XfFindCondRefOfName (Node, Op->Asl.Child->Asl.Next)); break; default: return (FALSE); break; } } /******************************************************************************* * * FUNCTION: XfNamespaceLocateEnd * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Ascending callback used during cross reference. We only * need to worry about scope management here. * ******************************************************************************/ static ACPI_STATUS XfNamespaceLocateEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState = (ACPI_WALK_STATE *) Context; const ACPI_OPCODE_INFO *OpInfo; ACPI_FUNCTION_TRACE (XfNamespaceLocateEnd); /* We are only interested in opcodes that have an associated name */ OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); if (!(OpInfo->Flags & AML_NAMED)) { return_ACPI_STATUS (AE_OK); } /* Not interested in name references, we did not open a scope for them */ if ((Op->Asl.ParseOpcode == PARSEOP_NAMESTRING) || (Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_METHODCALL) || (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL)) { return_ACPI_STATUS (AE_OK); } /* Pop the scope stack if necessary */ if (AcpiNsOpensScope (AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode))) { ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "%s: Popping scope for Op %p\n", AcpiUtGetTypeName (OpInfo->ObjectType), Op)); (void) AcpiDsScopeStackPop (WalkState); } return_ACPI_STATUS (AE_OK); } /******************************************************************************* * * FUNCTION: XfValidateCrossReference * * PARAMETERS: Op - Parse Op that references the object * OpInfo - Parse Op info struct * Node - Node for the referenced object * * RETURN: TRUE if the reference is legal, FALSE otherwise * * DESCRIPTION: Determine if a reference to another object is allowed. * * EXAMPLE: * Method (A) {Name (INT1, 1)} Declaration of object INT1 * Method (B) (Store (2, \A.INT1)} Illegal reference to object INT1 * (INT1 is temporary, valid only during * execution of A) * * NOTES: * A null pointer returned by either UtGetParentMethodOp or * UtGetParentMethodNode indicates that the parameter object is not * within a control method. * * Five cases are handled: Case(Op, Node) * 1) Case(0,0): Op is not within a method, Node is not --> OK * 2) Case(0,1): Op is not within a method, but Node is --> Illegal * 3) Case(1,0): Op is within a method, Node is not --> OK * 4) Case(1,1): Both are within the same method --> OK * 5) Case(1,1): Both are in methods, but not same method --> Illegal * ******************************************************************************/ static BOOLEAN XfValidateCrossReference ( ACPI_PARSE_OBJECT *Op, const ACPI_OPCODE_INFO *OpInfo, ACPI_NAMESPACE_NODE *Node) { ACPI_PARSE_OBJECT *ReferencingMethodOp; ACPI_NAMESPACE_NODE *ReferencedMethodNode; /* Ignore actual named (and related) object declarations */ if (OpInfo->Flags & (AML_NAMED | AML_CREATE | AML_DEFER | AML_HAS_ARGS)) { return (TRUE); } /* * 1) Search upwards in parse tree for owner of the referencing object * 2) Search upwards in namespace to find the owner of the referenced object */ ReferencingMethodOp = UtGetParentMethodOp (Op); ReferencedMethodNode = UtGetParentMethodNode (Node); if (!ReferencingMethodOp && !ReferencedMethodNode) { /* * 1) Case (0,0): Both Op and Node are not within methods * --> OK */ return (TRUE); } if (!ReferencingMethodOp && ReferencedMethodNode) { /* * 2) Case (0,1): Op is not in a method, but Node is within a * method --> illegal */ return (FALSE); } else if (ReferencingMethodOp && !ReferencedMethodNode) { /* * 3) Case (1,0): Op is within a method, but Node is not * --> OK */ return (TRUE); } else if (ReferencingMethodOp->Asl.Node == ReferencedMethodNode) { /* * 4) Case (1,1): Both Op and Node are within the same method * --> OK */ return (TRUE); } else { /* * 5) Case (1,1), Op and Node are in different methods * --> Illegal */ return (FALSE); } } acpica-unix-20250404/source/compiler/prscan.c0000775000175000017500000010321214773714132020304 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: prscan - Preprocessor start-up and file scan module * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #define _DECLARE_PR_GLOBALS #include "aslcompiler.h" /* * TBDs: * * No nested macros, maybe never * Implement ASL "Include" as well as "#include" here? */ #define _COMPONENT ASL_PREPROCESSOR ACPI_MODULE_NAME ("prscan") /* Local prototypes */ static void PrPreprocessInputFile ( void); static void PrDoDirective ( char *DirectiveToken, char **Next); static void PrGetNextLineInit ( void); static UINT32 PrGetNextLine ( FILE *Handle); static int PrMatchDirective ( char *Directive); static void PrPushDirective ( int Directive, char *Argument); static ACPI_STATUS PrPopDirective ( void); static void PrDbgPrint ( char *Action, char *DirectiveName); static void PrDoIncludeBuffer ( char *Pathname, char *BufferName); static void PrDoIncludeFile ( char *Pathname); /* * Supported preprocessor directives * Each entry is of the form "Name, ArgumentCount" */ static const PR_DIRECTIVE_INFO AslGbl_DirectiveInfo[] = { {"define", 1}, {"elif", 0}, /* Converted to #else..#if internally */ {"else", 0}, {"endif", 0}, {"error", 1}, {"if", 1}, {"ifdef", 1}, {"ifndef", 1}, {"include", 0}, /* Argument is not standard format, so just use 0 here */ {"includebuffer", 0}, /* Argument is not standard format, so just use 0 here */ {"line", 1}, {"pragma", 1}, {"undef", 1}, {"warning", 1}, {NULL, 0} }; /* This table must match ordering of above table exactly */ enum Gbl_DirectiveIndexes { PR_DIRECTIVE_DEFINE = 0, PR_DIRECTIVE_ELIF, PR_DIRECTIVE_ELSE, PR_DIRECTIVE_ENDIF, PR_DIRECTIVE_ERROR, PR_DIRECTIVE_IF, PR_DIRECTIVE_IFDEF, PR_DIRECTIVE_IFNDEF, PR_DIRECTIVE_INCLUDE, PR_DIRECTIVE_INCLUDEBUFFER, PR_DIRECTIVE_LINE, PR_DIRECTIVE_PRAGMA, PR_DIRECTIVE_UNDEF, PR_DIRECTIVE_WARNING }; #define ASL_DIRECTIVE_NOT_FOUND -1 /******************************************************************************* * * FUNCTION: PrInitializePreprocessor * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Startup initialization for the Preprocessor. * ******************************************************************************/ void PrInitializePreprocessor ( void) { /* Init globals and the list of #defines */ PrInitializeGlobals (); AslGbl_DefineList = NULL; } /******************************************************************************* * * FUNCTION: PrInitializeGlobals * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Initialize globals for the Preprocessor. Used for startuup * initialization and re-initialization between compiles during * a multiple source file compile. * ******************************************************************************/ void PrInitializeGlobals ( void) { /* Init globals */ AslGbl_InputFileList = NULL; AslGbl_CurrentLineNumber = 1; AslGbl_PreprocessorLineNumber = 1; AslGbl_PreprocessorError = FALSE; /* These are used to track #if/#else blocks (possibly nested) */ AslGbl_IfDepth = 0; AslGbl_IgnoringThisCodeBlock = FALSE; AslGbl_DirectiveStack = NULL; } /******************************************************************************* * * FUNCTION: PrTerminatePreprocessor * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Termination of the preprocessor. Delete lists. Keep any * defines that were specified on the command line, in order to * support multiple compiles with a single compiler invocation. * ******************************************************************************/ void PrTerminatePreprocessor ( void) { PR_DEFINE_INFO *DefineInfo; /* * The persistent defines (created on the command line) are always at the * end of the list. We save them. */ while ((AslGbl_DefineList) && (!AslGbl_DefineList->Persist)) { DefineInfo = AslGbl_DefineList; AslGbl_DefineList = DefineInfo->Next; ACPI_FREE (DefineInfo->Replacement); ACPI_FREE (DefineInfo->Identifier); ACPI_FREE (DefineInfo); } } /******************************************************************************* * * FUNCTION: PrDoPreprocess * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Main entry point for the iASL Preprocessor. Input file must * be already open. Handles multiple input files via the * #include directive. * ******************************************************************************/ void PrDoPreprocess ( void) { BOOLEAN MoreInputFiles; DbgPrint (ASL_DEBUG_OUTPUT, "Starting preprocessing phase\n\n"); FlSeekFile (ASL_FILE_INPUT, 0); PrDumpPredefinedNames (); /* Main preprocessor loop, handles include files */ do { PrPreprocessInputFile (); MoreInputFiles = PrPopInputFileStack (); } while (MoreInputFiles); /* Point compiler input to the new preprocessor output file (.pre) */ FlCloseFile (ASL_FILE_INPUT); AslGbl_Files[ASL_FILE_INPUT].Handle = AslGbl_Files[ASL_FILE_PREPROCESSOR].Handle; AslCompilerin = AslGbl_Files[ASL_FILE_INPUT].Handle; /* Reset globals to allow compiler to run */ FlSeekFile (ASL_FILE_INPUT, 0); if (!AslGbl_PreprocessOnly) { AslGbl_CurrentLineNumber = 0; } DbgPrint (ASL_DEBUG_OUTPUT, "Preprocessing phase complete \n\n"); } /******************************************************************************* * * FUNCTION: PrPreprocessInputFile * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Preprocess one entire file, line-by-line. * * Input: Raw user ASL from ASL_FILE_INPUT * Output: Preprocessed file written to ASL_FILE_PREPROCESSOR and * (optionally) ASL_FILE_PREPROCESSOR_USER * ******************************************************************************/ static void PrPreprocessInputFile ( void) { UINT32 Status; char *Token; char *ReplaceString; PR_DEFINE_INFO *DefineInfo; ACPI_SIZE TokenOffset; char *Next; int OffsetAdjust; PrGetNextLineInit (); /* Scan source line-by-line and process directives. Then write the .i file */ while ((Status = PrGetNextLine (AslGbl_Files[ASL_FILE_INPUT].Handle)) != ASL_EOF) { AslGbl_CurrentLineNumber++; AslGbl_LogicalLineNumber++; if (Status == ASL_IGNORE_LINE) { goto WriteEntireLine; } /* Need a copy of the input line for strok() */ strcpy (AslGbl_MainTokenBuffer, AslGbl_CurrentLineBuffer); Token = PrGetNextToken (AslGbl_MainTokenBuffer, PR_TOKEN_SEPARATORS, &Next); OffsetAdjust = 0; /* All preprocessor directives must begin with '#' */ if (Token && (*Token == '#')) { if (strlen (Token) == 1) { Token = PrGetNextToken (NULL, PR_TOKEN_SEPARATORS, &Next); } else { Token++; /* Skip leading # */ } /* Execute the directive, do not write line to output file */ PrDoDirective (Token, &Next); continue; } /* * If we are currently within the part of an IF/ELSE block that is * FALSE, ignore the line and do not write it to the output file. * This continues until an #else or #endif is encountered. */ if (AslGbl_IgnoringThisCodeBlock) { continue; } /* Match and replace all #defined names within this source line */ while (Token) { DefineInfo = PrMatchDefine (Token); if (DefineInfo) { if (DefineInfo->Body) { /* This is a macro */ DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "Matched Macro: %s->%s\n", AslGbl_CurrentLineNumber, DefineInfo->Identifier, DefineInfo->Replacement); PrDoMacroInvocation (AslGbl_MainTokenBuffer, Token, DefineInfo, &Next); } else { ReplaceString = DefineInfo->Replacement; /* Replace the name in the original line buffer */ TokenOffset = Token - AslGbl_MainTokenBuffer + OffsetAdjust; PrReplaceData ( &AslGbl_CurrentLineBuffer[TokenOffset], strlen (Token), ReplaceString, strlen (ReplaceString)); /* Adjust for length difference between old and new name length */ OffsetAdjust += strlen (ReplaceString) - strlen (Token); DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID "Matched #define: %s->%s\n", AslGbl_CurrentLineNumber, Token, *ReplaceString ? ReplaceString : "(NULL STRING)"); } } Token = PrGetNextToken (NULL, PR_TOKEN_SEPARATORS, &Next); } AslGbl_PreprocessorLineNumber++; WriteEntireLine: /* * Now we can write the possibly modified source line to the * preprocessor file(s). */ FlWriteFile (ASL_FILE_PREPROCESSOR, AslGbl_CurrentLineBuffer, strlen (AslGbl_CurrentLineBuffer)); } } /******************************************************************************* * * FUNCTION: PrDoDirective * * PARAMETERS: Directive - Pointer to directive name token * Next - "Next" buffer from GetNextToken * * RETURN: None. * * DESCRIPTION: Main processing for all preprocessor directives * ******************************************************************************/ static void PrDoDirective ( char *DirectiveToken, char **Next) { char *Token = AslGbl_MainTokenBuffer; char *Token2 = NULL; char *End; UINT64 Value; ACPI_SIZE TokenOffset; int Directive; ACPI_STATUS Status; if (!DirectiveToken) { goto SyntaxError; } Directive = PrMatchDirective (DirectiveToken); if (Directive == ASL_DIRECTIVE_NOT_FOUND) { PrError (ASL_ERROR, ASL_MSG_UNKNOWN_DIRECTIVE, THIS_TOKEN_OFFSET (DirectiveToken)); DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "#%s: Unknown directive\n", AslGbl_CurrentLineNumber, DirectiveToken); return; } /* * Emit a line directive into the preprocessor file (.pre) after * every matched directive. This is passed through to the compiler * so that error/warning messages are kept in sync with the * original source file. */ FlPrintFile (ASL_FILE_PREPROCESSOR, "#line %u \"%s\" // #%s\n", AslGbl_CurrentLineNumber, AslGbl_Files[ASL_FILE_INPUT].Filename, AslGbl_DirectiveInfo[Directive].Name); /* * If we are currently ignoring this block and we encounter a #else or * #elif, we must ignore their blocks also if the parent block is also * being ignored. */ if (AslGbl_IgnoringThisCodeBlock) { switch (Directive) { case PR_DIRECTIVE_ELSE: case PR_DIRECTIVE_ELIF: if (AslGbl_DirectiveStack && AslGbl_DirectiveStack->IgnoringThisCodeBlock) { PrDbgPrint ("Ignoring", AslGbl_DirectiveInfo[Directive].Name); return; } break; default: break; } } /* * Need to always check for #else, #elif, #endif regardless of * whether we are ignoring the current code block, since these * are conditional code block terminators. */ switch (Directive) { case PR_DIRECTIVE_ELSE: AslGbl_IgnoringThisCodeBlock = !(AslGbl_IgnoringThisCodeBlock); PrDbgPrint ("Executing", "else block"); return; case PR_DIRECTIVE_ELIF: AslGbl_IgnoringThisCodeBlock = !(AslGbl_IgnoringThisCodeBlock); Directive = PR_DIRECTIVE_IF; if (AslGbl_IgnoringThisCodeBlock == TRUE) { /* Not executing the ELSE part -- all done here */ PrDbgPrint ("Ignoring", "elif block"); return; } /* * After this, we will execute the IF part further below. * First, however, pop off the original #if directive. */ if (ACPI_FAILURE (PrPopDirective ())) { PrError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, THIS_TOKEN_OFFSET (DirectiveToken)); } PrDbgPrint ("Executing", "elif block"); break; case PR_DIRECTIVE_ENDIF: PrDbgPrint ("Executing", "endif"); /* Pop the owning #if/#ifdef/#ifndef */ if (ACPI_FAILURE (PrPopDirective ())) { PrError (ASL_ERROR, ASL_MSG_ENDIF_MISMATCH, THIS_TOKEN_OFFSET (DirectiveToken)); } return; default: break; } /* Most directives have at least one argument */ if (AslGbl_DirectiveInfo[Directive].ArgCount >= 1) { Token = PrGetNextToken (NULL, PR_TOKEN_SEPARATORS, Next); if (!Token) { goto SyntaxError; } } if (AslGbl_DirectiveInfo[Directive].ArgCount >= 2) { Token2 = PrGetNextToken (NULL, PR_TOKEN_SEPARATORS, Next); if (!Token2) { goto SyntaxError; } } /* * At this point, if we are ignoring the current code block, * do not process any more directives (i.e., ignore them also.) * For "if" style directives, open/push a new block anyway. We * must do this to keep track of #endif directives */ if (AslGbl_IgnoringThisCodeBlock) { switch (Directive) { case PR_DIRECTIVE_IF: case PR_DIRECTIVE_IFDEF: case PR_DIRECTIVE_IFNDEF: PrPushDirective (Directive, Token); PrDbgPrint ("Ignoring", AslGbl_DirectiveInfo[Directive].Name); break; default: break; } return; } /* * Execute the directive */ PrDbgPrint ("Begin execution", AslGbl_DirectiveInfo[Directive].Name); switch (Directive) { case PR_DIRECTIVE_IF: TokenOffset = Token - AslGbl_MainTokenBuffer; /* Need to expand #define macros in the expression string first */ Status = PrResolveIntegerExpression ( &AslGbl_CurrentLineBuffer[TokenOffset-1], &Value); if (ACPI_FAILURE (Status)) { return; } PrPushDirective (Directive, Token); if (!Value) { AslGbl_IgnoringThisCodeBlock = TRUE; } DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "Resolved #if: %8.8X%8.8X %s\n", AslGbl_CurrentLineNumber, ACPI_FORMAT_UINT64 (Value), AslGbl_IgnoringThisCodeBlock ? "" : ""); break; case PR_DIRECTIVE_IFDEF: PrPushDirective (Directive, Token); if (!PrMatchDefine (Token)) { AslGbl_IgnoringThisCodeBlock = TRUE; } PrDbgPrint ("Evaluated", "ifdef"); break; case PR_DIRECTIVE_IFNDEF: PrPushDirective (Directive, Token); if (PrMatchDefine (Token)) { AslGbl_IgnoringThisCodeBlock = TRUE; } PrDbgPrint ("Evaluated", "ifndef"); break; case PR_DIRECTIVE_DEFINE: /* * By definition, if first char after the name is a paren, * this is a function macro. */ TokenOffset = Token - AslGbl_MainTokenBuffer + strlen (Token); if (*(&AslGbl_CurrentLineBuffer[TokenOffset]) == '(') { #ifdef MACROS_SUPPORTED AcpiOsPrintf( "%s ERROR - line %u: #define macros are not supported yet\n", AslGbl_CurrentLineBuffer, AslGbl_LogicalLineNumber); exit(1); #else PrAddMacro (Token, Next); #endif } else { /* Use the remainder of the line for the #define */ Token2 = *Next; if (Token2) { while ((*Token2 == ' ') || (*Token2 == '\t')) { Token2++; } End = Token2; while (*End != '\n') { End++; } *End = 0; } else { Token2 = ""; } #if 0 Token2 = PrGetNextToken (NULL, "\n", /*PR_TOKEN_SEPARATORS,*/ Next); if (!Token2) { Token2 = ""; } #endif DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "New #define: %s->%s\n", AslGbl_LogicalLineNumber, Token, Token2); PrAddDefine (Token, Token2, FALSE); } break; case PR_DIRECTIVE_ERROR: /* Note: No macro expansion */ PrError (ASL_ERROR, ASL_MSG_ERROR_DIRECTIVE, THIS_TOKEN_OFFSET (Token)); AslGbl_SourceLine = 0; AslGbl_NextError = AslGbl_ErrorLog; CmCleanupAndExit (); exit(1); case PR_DIRECTIVE_INCLUDE: Token = PrGetNextToken (NULL, " \"<>", Next); if (!Token) { goto SyntaxError; } DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "Start #include file \"%s\"\n", AslGbl_CurrentLineNumber, Token); PrDoIncludeFile (Token); break; case PR_DIRECTIVE_INCLUDEBUFFER: Token = PrGetNextToken (NULL, " \"<>", Next); if (!Token) { goto SyntaxError; } Token2 = PrGetNextToken (NULL, PR_TOKEN_SEPARATORS, Next); if (!Token2) { goto SyntaxError; } DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "Start #includebuffer input from file \"%s\", buffer name %s\n", AslGbl_CurrentLineNumber, Token, Token2); PrDoIncludeBuffer (Token, Token2); break; case PR_DIRECTIVE_LINE: TokenOffset = Token - AslGbl_MainTokenBuffer; Status = PrResolveIntegerExpression ( &AslGbl_CurrentLineBuffer[TokenOffset-1], &Value); if (ACPI_FAILURE (Status)) { return; } DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "User #line invocation %s\n", AslGbl_CurrentLineNumber, Token); AslGbl_CurrentLineNumber = (UINT32) Value; /* Emit #line into the preprocessor file */ FlPrintFile (ASL_FILE_PREPROCESSOR, "#line %u \"%s\"\n", AslGbl_CurrentLineNumber, AslGbl_Files[ASL_FILE_INPUT].Filename); break; case PR_DIRECTIVE_PRAGMA: if (!strcmp (Token, "disable")) { Token = PrGetNextToken (NULL, PR_TOKEN_SEPARATORS, Next); if (!Token) { goto SyntaxError; } TokenOffset = Token - AslGbl_MainTokenBuffer; AslDisableException (&AslGbl_CurrentLineBuffer[TokenOffset]); } else if (!strcmp (Token, "message")) { Token = PrGetNextToken (NULL, PR_TOKEN_SEPARATORS, Next); if (!Token) { goto SyntaxError; } TokenOffset = Token - AslGbl_MainTokenBuffer; AcpiOsPrintf ("%s\n", &AslGbl_CurrentLineBuffer[TokenOffset]); } else { PrError (ASL_ERROR, ASL_MSG_UNKNOWN_PRAGMA, THIS_TOKEN_OFFSET (Token)); return; } break; case PR_DIRECTIVE_UNDEF: DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "#undef: %s\n", AslGbl_CurrentLineNumber, Token); PrRemoveDefine (Token); break; case PR_DIRECTIVE_WARNING: PrError (ASL_WARNING, ASL_MSG_WARNING_DIRECTIVE, THIS_TOKEN_OFFSET (Token)); AslGbl_SourceLine = 0; AslGbl_NextError = AslGbl_ErrorLog; break; default: /* Should never get here */ DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "Unrecognized directive: %u\n", AslGbl_CurrentLineNumber, Directive); break; } return; SyntaxError: PrError (ASL_ERROR, ASL_MSG_DIRECTIVE_SYNTAX, THIS_TOKEN_OFFSET (DirectiveToken)); return; } /******************************************************************************* * * FUNCTION: PrGetNextLine, PrGetNextLineInit * * PARAMETERS: Handle - Open file handle for the source file * * RETURN: Status of the GetLine operation: * AE_OK - Normal line, OK status * ASL_IGNORE_LINE - Line is blank or part of a multi-line * comment * ASL_EOF - End-of-file reached * * DESCRIPTION: Get the next text line from the input file. Does not strip * comments. * ******************************************************************************/ #define PR_NORMAL_TEXT 0 #define PR_MULTI_LINE_COMMENT 1 #define PR_SINGLE_LINE_COMMENT 2 #define PR_QUOTED_STRING 3 static UINT8 AcpiGbl_LineScanState = PR_NORMAL_TEXT; static void PrGetNextLineInit ( void) { AcpiGbl_LineScanState = 0; } static UINT32 PrGetNextLine ( FILE *Handle) { UINT32 i; int c = 0; int PreviousChar; /* Always clear the global line buffer */ memset (AslGbl_CurrentLineBuffer, 0, AslGbl_LineBufferSize); for (i = 0; ;) { /* * If line is too long, expand the line buffers. Also increases * AslGbl_LineBufferSize. */ if (i >= AslGbl_LineBufferSize) { UtExpandLineBuffers (); } PreviousChar = c; c = getc (Handle); if (c == EOF) { /* * On EOF: If there is anything in the line buffer, terminate * it with a newline, and catch the EOF on the next call * to this function. */ if (i > 0) { AslGbl_CurrentLineBuffer[i] = '\n'; return (AE_OK); } return (ASL_EOF); } /* Update state machine as necessary */ switch (AcpiGbl_LineScanState) { case PR_NORMAL_TEXT: /* Check for multi-line comment start */ if ((PreviousChar == '/') && (c == '*')) { AcpiGbl_LineScanState = PR_MULTI_LINE_COMMENT; } /* Check for single-line comment start */ else if ((PreviousChar == '/') && (c == '/')) { AcpiGbl_LineScanState = PR_SINGLE_LINE_COMMENT; } /* Check for quoted string start */ else if (PreviousChar == '"') { AcpiGbl_LineScanState = PR_QUOTED_STRING; } break; case PR_QUOTED_STRING: if (PreviousChar == '"') { AcpiGbl_LineScanState = PR_NORMAL_TEXT; } break; case PR_MULTI_LINE_COMMENT: /* Check for multi-line comment end */ if ((PreviousChar == '*') && (c == '/')) { AcpiGbl_LineScanState = PR_NORMAL_TEXT; } break; case PR_SINGLE_LINE_COMMENT: /* Just ignore text until EOL */ default: break; } /* Always copy the character into line buffer */ AslGbl_CurrentLineBuffer[i] = (char) c; i++; /* Always exit on end-of-line */ if (c == '\n') { /* Handle multi-line comments */ if (AcpiGbl_LineScanState == PR_MULTI_LINE_COMMENT) { return (ASL_IGNORE_LINE); } /* End of single-line comment */ if (AcpiGbl_LineScanState == PR_SINGLE_LINE_COMMENT) { AcpiGbl_LineScanState = PR_NORMAL_TEXT; return (AE_OK); } /* Blank line */ if (i == 1) { return (ASL_IGNORE_LINE); } return (AE_OK); } } } /******************************************************************************* * * FUNCTION: PrMatchDirective * * PARAMETERS: Directive - Pointer to directive name token * * RETURN: Index into command array, -1 if not found * * DESCRIPTION: Lookup the incoming directive in the known directives table. * ******************************************************************************/ static int PrMatchDirective ( char *Directive) { int i; if (!Directive || Directive[0] == 0) { return (ASL_DIRECTIVE_NOT_FOUND); } for (i = 0; AslGbl_DirectiveInfo[i].Name; i++) { if (!strcmp (AslGbl_DirectiveInfo[i].Name, Directive)) { return (i); } } return (ASL_DIRECTIVE_NOT_FOUND); /* Command not recognized */ } /******************************************************************************* * * FUNCTION: PrPushDirective * * PARAMETERS: Directive - Encoded directive ID * Argument - String containing argument to the * directive * * RETURN: None * * DESCRIPTION: Push an item onto the directive stack. Used for processing * nested #if/#else type conditional compilation directives. * Specifically: Used on detection of #if/#ifdef/#ifndef to open * a block. * ******************************************************************************/ static void PrPushDirective ( int Directive, char *Argument) { DIRECTIVE_INFO *Info; /* Allocate and populate a stack info item */ Info = ACPI_CAST_PTR (DIRECTIVE_INFO, UtLocalCacheCalloc (sizeof (DIRECTIVE_INFO))); Info->Next = AslGbl_DirectiveStack; Info->Directive = Directive; Info->IgnoringThisCodeBlock = AslGbl_IgnoringThisCodeBlock; AcpiUtSafeStrncpy (Info->Argument, Argument, MAX_ARGUMENT_LENGTH); DbgPrint (ASL_DEBUG_OUTPUT, "Pr(%.4u) - [%u %s] %*s Pushed [#%s %s]: IgnoreFlag = %s\n", AslGbl_CurrentLineNumber, AslGbl_IfDepth, AslGbl_IgnoringThisCodeBlock ? "I" : "E", AslGbl_IfDepth * 4, " ", AslGbl_DirectiveInfo[Directive].Name, Argument, AslGbl_IgnoringThisCodeBlock ? "TRUE" : "FALSE"); /* Push new item */ AslGbl_DirectiveStack = Info; AslGbl_IfDepth++; } /******************************************************************************* * * FUNCTION: PrPopDirective * * PARAMETERS: None * * RETURN: Status. Error if the stack is empty. * * DESCRIPTION: Pop an item off the directive stack. Used for processing * nested #if/#else type conditional compilation directives. * Specifically: Used on detection of #elif and #endif to remove * the original #if/#ifdef/#ifndef from the stack and close * the block. * ******************************************************************************/ static ACPI_STATUS PrPopDirective ( void) { DIRECTIVE_INFO *Info; /* Check for empty stack */ Info = AslGbl_DirectiveStack; if (!Info) { return (AE_ERROR); } /* Pop one item, keep globals up-to-date */ AslGbl_IfDepth--; AslGbl_IgnoringThisCodeBlock = Info->IgnoringThisCodeBlock; AslGbl_DirectiveStack = Info->Next; DbgPrint (ASL_DEBUG_OUTPUT, "Pr(%.4u) - [%u %s] %*s Popped [#%s %s]: IgnoreFlag now = %s\n", AslGbl_CurrentLineNumber, AslGbl_IfDepth, AslGbl_IgnoringThisCodeBlock ? "I" : "E", AslGbl_IfDepth * 4, " ", AslGbl_DirectiveInfo[Info->Directive].Name, Info->Argument, AslGbl_IgnoringThisCodeBlock ? "TRUE" : "FALSE"); return (AE_OK); } /******************************************************************************* * * FUNCTION: PrDbgPrint * * PARAMETERS: Action - Action being performed * DirectiveName - Directive being processed * * RETURN: None * * DESCRIPTION: Special debug print for directive processing. * ******************************************************************************/ static void PrDbgPrint ( char *Action, char *DirectiveName) { DbgPrint (ASL_DEBUG_OUTPUT, "Pr(%.4u) - [%u %s] " "%*s %s #%s, IfDepth %u\n", AslGbl_CurrentLineNumber, AslGbl_IfDepth, AslGbl_IgnoringThisCodeBlock ? "I" : "E", AslGbl_IfDepth * 4, " ", Action, DirectiveName, AslGbl_IfDepth); } /******************************************************************************* * * FUNCTION: PrDoIncludeFile * * PARAMETERS: Pathname - Name of the input file * * RETURN: None. * * DESCRIPTION: Open an include file, from #include. * ******************************************************************************/ static void PrDoIncludeFile ( char *Pathname) { char *FullPathname; (void) PrOpenIncludeFile (Pathname, "r", &FullPathname); } /******************************************************************************* * * FUNCTION: PrDoIncludeBuffer * * PARAMETERS: Pathname - Name of the input binary file * BufferName - ACPI namepath of the buffer * * RETURN: None. * * DESCRIPTION: Create an ACPI buffer object from a binary file. The contents * of the file are emitted into the buffer object as ascii * hex data. From #includebuffer. * ******************************************************************************/ static void PrDoIncludeBuffer ( char *Pathname, char *BufferName) { char *FullPathname; FILE *BinaryBufferFile; UINT32 i = 0; UINT8 c; BinaryBufferFile = PrOpenIncludeFile (Pathname, "rb", &FullPathname); if (!BinaryBufferFile) { return; } /* Emit "Name (XXXX, Buffer() {" header */ FlPrintFile (ASL_FILE_PREPROCESSOR, "Name (%s, Buffer()\n{", BufferName); /* Dump the entire file in ascii hex format */ while (fread (&c, 1, 1, BinaryBufferFile)) { if (!(i % 8)) { FlPrintFile (ASL_FILE_PREPROCESSOR, "\n "); } FlPrintFile (ASL_FILE_PREPROCESSOR, " 0x%2.2X,", c); i++; } DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "#includebuffer: read %u bytes from %s\n", AslGbl_CurrentLineNumber, i, FullPathname); /* Close the Name() operator */ FlPrintFile (ASL_FILE_PREPROCESSOR, "\n})\n"); fclose (BinaryBufferFile); } acpica-unix-20250404/source/compiler/dttable2.c0000775000175000017500000026215414773714132020532 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dttable2.c - handling for specific ACPI tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* Compile all complex data tables, signatures starting with L-Z */ #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dttable2") /****************************************************************************** * * FUNCTION: DtCompileLpit * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile LPIT. * *****************************************************************************/ ACPI_STATUS DtCompileLpit ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_DMTABLE_INFO *InfoTable; ACPI_LPIT_HEADER *LpitHeader; /* Note: Main table consists only of the standard ACPI table header */ while (*PFieldList) { SubtableStart = *PFieldList; /* LPIT Subtable header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoLpitHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); LpitHeader = ACPI_CAST_PTR (ACPI_LPIT_HEADER, Subtable->Buffer); switch (LpitHeader->Type) { case ACPI_LPIT_TYPE_NATIVE_CSTATE: InfoTable = AcpiDmTableInfoLpit0; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "LPIT"); return (AE_ERROR); } /* LPIT Subtable */ Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileMadt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile MADT. * *****************************************************************************/ ACPI_STATUS DtCompileMadt ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_TABLE_HEADER *Table; ACPI_SUBTABLE_HEADER *MadtHeader; ACPI_DMTABLE_INFO *InfoTable; UINT8 Revision; Status = DtCompileTable (PFieldList, AcpiDmTableInfoMadt, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Table = ACPI_CAST_PTR (ACPI_TABLE_HEADER, ParentTable->Buffer); Revision = Table->Revision; while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoMadtHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); MadtHeader = ACPI_CAST_PTR (ACPI_SUBTABLE_HEADER, Subtable->Buffer); switch (MadtHeader->Type) { case ACPI_MADT_TYPE_LOCAL_APIC: InfoTable = AcpiDmTableInfoMadt0; break; case ACPI_MADT_TYPE_IO_APIC: InfoTable = AcpiDmTableInfoMadt1; break; case ACPI_MADT_TYPE_INTERRUPT_OVERRIDE: InfoTable = AcpiDmTableInfoMadt2; break; case ACPI_MADT_TYPE_NMI_SOURCE: InfoTable = AcpiDmTableInfoMadt3; break; case ACPI_MADT_TYPE_LOCAL_APIC_NMI: InfoTable = AcpiDmTableInfoMadt4; break; case ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE: InfoTable = AcpiDmTableInfoMadt5; break; case ACPI_MADT_TYPE_IO_SAPIC: InfoTable = AcpiDmTableInfoMadt6; break; case ACPI_MADT_TYPE_LOCAL_SAPIC: InfoTable = AcpiDmTableInfoMadt7; break; case ACPI_MADT_TYPE_INTERRUPT_SOURCE: InfoTable = AcpiDmTableInfoMadt8; break; case ACPI_MADT_TYPE_LOCAL_X2APIC: InfoTable = AcpiDmTableInfoMadt9; break; case ACPI_MADT_TYPE_LOCAL_X2APIC_NMI: InfoTable = AcpiDmTableInfoMadt10; break; case ACPI_MADT_TYPE_GENERIC_INTERRUPT: if (Revision > 6) InfoTable = AcpiDmTableInfoMadt11b; else if (Revision == 6) InfoTable = AcpiDmTableInfoMadt11a; else InfoTable = AcpiDmTableInfoMadt11; break; case ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR: InfoTable = AcpiDmTableInfoMadt12; break; case ACPI_MADT_TYPE_GENERIC_MSI_FRAME: InfoTable = AcpiDmTableInfoMadt13; break; case ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR: InfoTable = Revision > 6 ? AcpiDmTableInfoMadt14a : AcpiDmTableInfoMadt14; break; case ACPI_MADT_TYPE_GENERIC_TRANSLATOR: InfoTable = Revision > 6 ? AcpiDmTableInfoMadt15a : AcpiDmTableInfoMadt15; break; case ACPI_MADT_TYPE_MULTIPROC_WAKEUP: InfoTable = AcpiDmTableInfoMadt16; break; case ACPI_MADT_TYPE_CORE_PIC: InfoTable = AcpiDmTableInfoMadt17; break; case ACPI_MADT_TYPE_LIO_PIC: InfoTable = AcpiDmTableInfoMadt18; break; case ACPI_MADT_TYPE_HT_PIC: InfoTable = AcpiDmTableInfoMadt19; break; case ACPI_MADT_TYPE_EIO_PIC: InfoTable = AcpiDmTableInfoMadt20; break; case ACPI_MADT_TYPE_MSI_PIC: InfoTable = AcpiDmTableInfoMadt21; break; case ACPI_MADT_TYPE_BIO_PIC: InfoTable = AcpiDmTableInfoMadt22; break; case ACPI_MADT_TYPE_LPC_PIC: InfoTable = AcpiDmTableInfoMadt23; break; case ACPI_MADT_TYPE_RINTC: InfoTable = AcpiDmTableInfoMadt24; break; case ACPI_MADT_TYPE_IMSIC: InfoTable = AcpiDmTableInfoMadt25; break; case ACPI_MADT_TYPE_APLIC: InfoTable = AcpiDmTableInfoMadt26; break; case ACPI_MADT_TYPE_PLIC: InfoTable = AcpiDmTableInfoMadt27; break; default: if (MadtHeader->Type >= ACPI_MADT_TYPE_OEM_RESERVED) { InfoTable = AcpiDmTableInfoMadt128; } else { DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "MADT"); return (AE_ERROR); } break; } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileMcfg * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile MCFG. * *****************************************************************************/ ACPI_STATUS DtCompileMcfg ( void **List) { ACPI_STATUS Status; Status = DtCompileTwoSubtables (List, AcpiDmTableInfoMcfg, AcpiDmTableInfoMcfg0); return (Status); } /****************************************************************************** * * FUNCTION: DtCompileMpam * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile MPAM. * *****************************************************************************/ ACPI_STATUS DtCompileMpam ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *ParentTable; DT_SUBTABLE *Subtable; DT_FIELD *SubtableStart; DT_FIELD **PFieldList = (DT_FIELD **) List; ACPI_MPAM_MSC_NODE *MpamMscNode; ACPI_MPAM_RESOURCE_NODE *MpamResourceNode; UINT32 FuncDepsCount; UINT32 RisLength; ACPI_DMTABLE_INFO *InfoTable; ParentTable = DtPeekSubtable (); while (*PFieldList) { SubtableStart = *PFieldList; /* Main MSC Node table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpam0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } MpamMscNode = ACPI_CAST_PTR (ACPI_MPAM_MSC_NODE, Subtable->Buffer); ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); /* * RIS(es) per MSC node have variable lengths depending on how many RISes there and * any how many functional dependencies per RIS. Calculate it in order * to properly set the overall MSC length. */ RisLength = 0; /* Iterate over RIS subtables per MSC node */ for (UINT32 ris = 0; ris < MpamMscNode->NumResourceNodes; ris++) { /* Compile RIS subtable */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpam1, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } MpamResourceNode = ACPI_CAST_PTR (ACPI_MPAM_RESOURCE_NODE, Subtable->Buffer); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); ParentTable = DtPeekSubtable (); switch (MpamResourceNode->LocatorType) { case ACPI_MPAM_LOCATION_TYPE_PROCESSOR_CACHE: InfoTable = AcpiDmTableInfoMpam1A; break; case ACPI_MPAM_LOCATION_TYPE_MEMORY: InfoTable = AcpiDmTableInfoMpam1B; break; case ACPI_MPAM_LOCATION_TYPE_SMMU: InfoTable = AcpiDmTableInfoMpam1C; break; case ACPI_MPAM_LOCATION_TYPE_MEMORY_CACHE: InfoTable = AcpiDmTableInfoMpam1D; break; case ACPI_MPAM_LOCATION_TYPE_ACPI_DEVICE: InfoTable = AcpiDmTableInfoMpam1E; break; case ACPI_MPAM_LOCATION_TYPE_INTERCONNECT: InfoTable = AcpiDmTableInfoMpam1F; break; case ACPI_MPAM_LOCATION_TYPE_UNKNOWN: InfoTable = AcpiDmTableInfoMpam1G; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "Resource Locator Type"); return (AE_ERROR); } /* Compile Resource Locator Table */ Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); /* Compile the number of functional dependencies per RIS */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpam1Deps, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); FuncDepsCount = *ACPI_CAST_PTR (UINT32, Subtable->Buffer); RisLength += sizeof(ACPI_MPAM_RESOURCE_NODE) + FuncDepsCount * sizeof(ACPI_MPAM_FUNC_DEPS); /* Iterate over functional dependencies per RIS */ for (UINT32 funcDep = 0; funcDep < FuncDepsCount; funcDep++) { /* Compiler functional dependencies table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpam2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); } DtPopSubtable (); } /* Check if the length of the MSC is correct and override with the correct length */ if (MpamMscNode->Length != sizeof(ACPI_MPAM_MSC_NODE) + RisLength) { MpamMscNode->Length = (UINT16) (sizeof(ACPI_MPAM_MSC_NODE) + RisLength); DbgPrint (ASL_DEBUG_OUTPUT, "Overriding MSC->Length: %X\n", MpamMscNode->Length); } DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileMpst * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile MPST. * *****************************************************************************/ ACPI_STATUS DtCompileMpst ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; ACPI_MPST_CHANNEL *MpstChannelInfo; ACPI_MPST_POWER_NODE *MpstPowerNode; ACPI_MPST_DATA_HDR *MpstDataHeader; UINT16 SubtableCount; UINT32 PowerStateCount; UINT32 ComponentCount; /* Main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpst, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); MpstChannelInfo = ACPI_CAST_PTR (ACPI_MPST_CHANNEL, Subtable->Buffer); SubtableCount = MpstChannelInfo->PowerNodeCount; while (*PFieldList && SubtableCount) { /* Subtable: Memory Power Node(s) */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpst0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); MpstPowerNode = ACPI_CAST_PTR (ACPI_MPST_POWER_NODE, Subtable->Buffer); PowerStateCount = MpstPowerNode->NumPowerStates; ComponentCount = MpstPowerNode->NumPhysicalComponents; ParentTable = DtPeekSubtable (); /* Sub-subtables - Memory Power State Structure(s) */ while (*PFieldList && PowerStateCount) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpst0A, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); PowerStateCount--; } /* Sub-subtables - Physical Component ID Structure(s) */ while (*PFieldList && ComponentCount) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpst0B, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); ComponentCount--; } SubtableCount--; DtPopSubtable (); } /* Subtable: Count of Memory Power State Characteristic structures */ DtPopSubtable (); Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpst1, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); MpstDataHeader = ACPI_CAST_PTR (ACPI_MPST_DATA_HDR, Subtable->Buffer); SubtableCount = MpstDataHeader->CharacteristicsCount; ParentTable = DtPeekSubtable (); /* Subtable: Memory Power State Characteristics structure(s) */ while (*PFieldList && SubtableCount) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoMpst2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); SubtableCount--; } DtPopSubtable (); return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileMrrm * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile MRRM. * *****************************************************************************/ ACPI_STATUS DtCompileMrrm ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; /* Main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoMrrm, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Subtables (all are same type) */ while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoMrrm0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileMsct * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile MSCT. * *****************************************************************************/ ACPI_STATUS DtCompileMsct ( void **List) { ACPI_STATUS Status; Status = DtCompileTwoSubtables (List, AcpiDmTableInfoMsct, AcpiDmTableInfoMsct0); return (Status); } /****************************************************************************** * * FUNCTION: DtCompileNfit * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile NFIT. * *****************************************************************************/ ACPI_STATUS DtCompileNfit ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_NFIT_HEADER *NfitHeader; ACPI_DMTABLE_INFO *InfoTable; UINT32 Count; ACPI_NFIT_INTERLEAVE *Interleave = NULL; ACPI_NFIT_FLUSH_ADDRESS *Hint = NULL; /* Main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoNfit, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); /* Subtables */ while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoNfitHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); NfitHeader = ACPI_CAST_PTR (ACPI_NFIT_HEADER, Subtable->Buffer); switch (NfitHeader->Type) { case ACPI_NFIT_TYPE_SYSTEM_ADDRESS: InfoTable = AcpiDmTableInfoNfit0; break; case ACPI_NFIT_TYPE_MEMORY_MAP: InfoTable = AcpiDmTableInfoNfit1; break; case ACPI_NFIT_TYPE_INTERLEAVE: Interleave = ACPI_CAST_PTR (ACPI_NFIT_INTERLEAVE, Subtable->Buffer); InfoTable = AcpiDmTableInfoNfit2; break; case ACPI_NFIT_TYPE_SMBIOS: InfoTable = AcpiDmTableInfoNfit3; break; case ACPI_NFIT_TYPE_CONTROL_REGION: InfoTable = AcpiDmTableInfoNfit4; break; case ACPI_NFIT_TYPE_DATA_REGION: InfoTable = AcpiDmTableInfoNfit5; break; case ACPI_NFIT_TYPE_FLUSH_ADDRESS: Hint = ACPI_CAST_PTR (ACPI_NFIT_FLUSH_ADDRESS, Subtable->Buffer); InfoTable = AcpiDmTableInfoNfit6; break; case ACPI_NFIT_TYPE_CAPABILITIES: InfoTable = AcpiDmTableInfoNfit7; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "NFIT"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPopSubtable (); switch (NfitHeader->Type) { case ACPI_NFIT_TYPE_INTERLEAVE: Count = 0; DtPushSubtable (Subtable); while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoNfit2a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { DtPopSubtable (); break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Count++; } Interleave->LineCount = Count; break; case ACPI_NFIT_TYPE_SMBIOS: if (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoNfit3a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (Subtable) { DtInsertSubtable (ParentTable, Subtable); } } break; case ACPI_NFIT_TYPE_FLUSH_ADDRESS: Count = 0; DtPushSubtable (Subtable); while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoNfit6a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { DtPopSubtable (); break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Count++; } Hint->HintCount = (UINT16) Count; break; default: break; } } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompilePcct * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile PCCT. * *****************************************************************************/ ACPI_STATUS DtCompilePcct ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_SUBTABLE_HEADER *PcctHeader; ACPI_DMTABLE_INFO *InfoTable; /* Main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoPcct, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Subtables */ while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoPcctHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); PcctHeader = ACPI_CAST_PTR (ACPI_SUBTABLE_HEADER, Subtable->Buffer); switch (PcctHeader->Type) { case ACPI_PCCT_TYPE_GENERIC_SUBSPACE: InfoTable = AcpiDmTableInfoPcct0; break; case ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE: InfoTable = AcpiDmTableInfoPcct1; break; case ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2: InfoTable = AcpiDmTableInfoPcct2; break; case ACPI_PCCT_TYPE_EXT_PCC_MASTER_SUBSPACE: InfoTable = AcpiDmTableInfoPcct3; break; case ACPI_PCCT_TYPE_EXT_PCC_SLAVE_SUBSPACE: InfoTable = AcpiDmTableInfoPcct4; break; case ACPI_PCCT_TYPE_HW_REG_COMM_SUBSPACE: InfoTable = AcpiDmTableInfoPcct5; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "PCCT"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompilePdtt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile PDTT. * *****************************************************************************/ ACPI_STATUS DtCompilePdtt ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; ACPI_TABLE_PDTT *PdttHeader; UINT32 Count = 0; /* Main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoPdtt, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); PdttHeader = ACPI_CAST_PTR (ACPI_TABLE_PDTT, ParentTable->Buffer); PdttHeader->ArrayOffset = sizeof (ACPI_TABLE_PDTT); /* There is only one type of subtable at this time, no need to decode */ while (*PFieldList) { /* List of subchannel IDs, each 2 bytes */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoPdtt0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); Count++; } PdttHeader->TriggerCount = (UINT8) Count; return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompilePhat * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile Phat. * *****************************************************************************/ ACPI_STATUS DtCompilePhat ( void **List) { ACPI_STATUS Status = AE_OK; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; ACPI_PHAT_HEADER *PhatHeader; ACPI_DMTABLE_INFO *Info; ACPI_PHAT_VERSION_DATA *VersionData; UINT32 DeviceDataLength; UINT32 RecordCount; DT_FIELD *DataOffsetField; DT_FIELD *DevicePathField; UINT32 TableOffset = 0; UINT32 DataOffsetValue; UINT32 i; /* The table consists of subtables */ while (*PFieldList) { /* Compile the common subtable header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoPhatHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } TableOffset += Subtable->Length; DbgPrint (ASL_DEBUG_OUTPUT, "0 Subtable->Length: %X\n", Subtable->Length); ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); PhatHeader = ACPI_CAST_PTR (ACPI_PHAT_HEADER, Subtable->Buffer); switch (PhatHeader->Type) { case ACPI_PHAT_TYPE_FW_VERSION_DATA: /* Compile the middle portion of the Firmware Version Data */ Info = AcpiDmTableInfoPhat0; PhatHeader->Length = sizeof (ACPI_PHAT_VERSION_DATA); DataOffsetField = NULL; break; case ACPI_PHAT_TYPE_FW_HEALTH_DATA: DbgPrint (ASL_DEBUG_OUTPUT, "1 Offset: %X, Name: \"%s\" Length: %X\n", (*PFieldList)->TableOffset, (*PFieldList)->Name, Subtable->Length); DataOffsetField = *PFieldList; /* Walk the field list to get to the "Device-specific data Offset" field */ TableOffset = sizeof (ACPI_PHAT_HEALTH_DATA); for (i = 0; i < 3; i++) { DataOffsetField = DataOffsetField->Next; DbgPrint (ASL_DEBUG_OUTPUT, "2 Offset: %X, Name: \"%s\" Length: %X Value: %s:\n", TableOffset, DataOffsetField->Name, DataOffsetField->StringLength, DataOffsetField->Value); } /* Convert DataOffsetField->Value (a char * string) to an integer value */ sscanf (DataOffsetField->Value, "%X", &DataOffsetValue); /* * Get the next field (Device Path): * DataOffsetField points to "Device-Specific Offset", next field is * "Device Path". */ DevicePathField = DataOffsetField->Next; /* Compute the size of the input ASCII string as a unicode string (*2 + 2) */ DevicePathField->StringLength = (strlen ((const char *) DevicePathField->Value) * 2) + 2; TableOffset += DevicePathField->StringLength; DbgPrint (ASL_DEBUG_OUTPUT, "3 Offset: %X, Length: %X devicepathLength: %X\n", TableOffset, Subtable->Length, DevicePathField->StringLength); /* Set the DataOffsetField to the current TableOffset */ /* Must set the DataOffsetField here (not later) */ if (DataOffsetValue != 0) { snprintf (DataOffsetField->Value, Subtable->Length, "%X", TableOffset); } DbgPrint (ASL_DEBUG_OUTPUT, "4 Offset: %X, Length: %X\n", TableOffset, Subtable->Length); DbgPrint (ASL_DEBUG_OUTPUT, "5 TableOffset: %X, DataOffsetField->StringLength: " "%X DevicePathField Length: %X DevicePathField->Value: %s, DataOffsetField->Value: %s DataOffsetField->ByteOffset %X\n", TableOffset, DataOffsetField->StringLength, DevicePathField->StringLength, DevicePathField->Value, DataOffsetField->Value, DataOffsetField->ByteOffset); /* Compile the middle portion of the Health Data Record */ Info = AcpiDmTableInfoPhat1; PhatHeader->Length = sizeof (ACPI_PHAT_HEALTH_DATA); break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, *PFieldList, "PHAT"); return (AE_ERROR); } /* Compile either the Version Data or the Health Data */ Status = DtCompileTable (PFieldList, Info, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DbgPrint (ASL_DEBUG_OUTPUT, "6 Offset: %X, Name: \"%s\" SubtableLength: %X\n", TableOffset /* - StartTableOffset*/, (*PFieldList)->Name, Subtable->Length); ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); switch (PhatHeader->Type) { case ACPI_PHAT_TYPE_FW_VERSION_DATA: VersionData = ACPI_CAST_PTR (ACPI_PHAT_VERSION_DATA, (Subtable->Buffer - sizeof (ACPI_PHAT_HEADER))); RecordCount = VersionData->ElementCount; /* Compile all of the Version Elements */ while (RecordCount) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoPhat0a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); TableOffset += Subtable->Length; RecordCount--; PhatHeader->Length += sizeof (ACPI_PHAT_VERSION_ELEMENT); } DtPopSubtable (); break; case ACPI_PHAT_TYPE_FW_HEALTH_DATA: /* Compile the Device Path */ DeviceDataLength = Subtable->Length; TableOffset += Subtable->Length; DbgPrint (ASL_DEBUG_OUTPUT, "7 Device Path Length: %X FieldName: \"%s\" FieldLength: " "%s FieldValue: %s SubtableLength: %X TableOffset: %X\n", DeviceDataLength, (*PFieldList)->Name, DataOffsetField->Value, (*PFieldList)->Value, Subtable->Length, TableOffset); Status = DtCompileTable (PFieldList, AcpiDmTableInfoPhat1a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* *PFieldList will be null if previous field was at the end-of-ParseTree (EOF) */ if (!*PFieldList) { DbgPrint (ASL_DEBUG_OUTPUT, "8 Exit on end-of-ParseTree\n"); return (AE_OK); } DbgPrint (ASL_DEBUG_OUTPUT, "9 Device Data Length: %X FieldName: \"%s" " TableOffset: %X FieldLength: %X Field Value: %s SubtableLength: %X\n", DeviceDataLength, (*PFieldList)->Name, TableOffset, (*PFieldList)->StringLength, (*PFieldList)->Value, Subtable->Length); PhatHeader->Length += (UINT16) Subtable->Length; /* Convert DataOffsetField->Value (a hex char * string) to an integer value */ sscanf (DataOffsetField->Value, "%X", &DataOffsetValue); DbgPrint (ASL_DEBUG_OUTPUT, "10 Device-Specific Offset: %X Table Offset: %X\n", DataOffsetValue, TableOffset); if (DataOffsetValue != 0) { /* Compile Device-Specific Data - only if the Data Offset is non-zero */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoPhat1b, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DbgPrint (ASL_DEBUG_OUTPUT, "11 Subtable: %p Table Offset: %X\n", Subtable, TableOffset); if (Subtable) { DbgPrint (ASL_DEBUG_OUTPUT, "12 Device Specific Offset: " "%X FieldName \"%s\" SubtableLength %X\n", DeviceDataLength, DataOffsetField->Name, Subtable->Length); DeviceDataLength += Subtable->Length; ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); PhatHeader->Length += (UINT16) Subtable->Length; } } DtPopSubtable (); DbgPrint (ASL_DEBUG_OUTPUT, "13 FieldName: \"%s\" FieldLength: %X Field Value: %s\n", DataOffsetField->Name, DataOffsetField->StringLength, DataOffsetField->Value); break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, *PFieldList, "PHAT"); return (AE_ERROR); } } return (Status); } /****************************************************************************** * * FUNCTION: DtCompilePmtt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile PMTT. * *****************************************************************************/ ACPI_STATUS DtCompilePmtt ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; UINT16 Type; /* Main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoPmtt, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); /* Subtables */ while (*PFieldList) { SubtableStart = *PFieldList; DtCompileInteger ((UINT8 *) &Type, *PFieldList, 2, 0); switch (Type) { case ACPI_PMTT_TYPE_SOCKET: /* Subtable: Socket Structure */ DbgPrint (ASL_DEBUG_OUTPUT, "Compile PMTT_TYPE_SOCKET (0)\n"); Status = DtCompileTable (PFieldList, AcpiDmTableInfoPmtt0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_PMTT_TYPE_CONTROLLER: /* Subtable: Memory Controller Structure */ DbgPrint (ASL_DEBUG_OUTPUT, "Compile PMTT_TYPE_CONTROLLER (1)\n"); Status = DtCompileTable (PFieldList, AcpiDmTableInfoPmtt1, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_PMTT_TYPE_DIMM: /* Subtable: Physical Component (DIMM) Structure */ DbgPrint (ASL_DEBUG_OUTPUT, "Compile PMTT_TYPE_DIMM (2)\n"); Status = DtCompileTable (PFieldList, AcpiDmTableInfoPmtt2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } break; case ACPI_PMTT_TYPE_VENDOR: /* Subtable: Vendor-specific Structure */ DbgPrint (ASL_DEBUG_OUTPUT, "Compile PMTT_TYPE_VENDOR(FF)\n"); Status = DtCompileTable (PFieldList, AcpiDmTableInfoPmttVendor, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "PMTT"); return (AE_ERROR); } DtInsertSubtable (ParentTable, Subtable); } return (Status); } /****************************************************************************** * * FUNCTION: DtCompilePptt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile PPTT. * *****************************************************************************/ ACPI_STATUS DtCompilePptt ( void **List) { ACPI_STATUS Status; ACPI_SUBTABLE_HEADER *PpttHeader; ACPI_PPTT_PROCESSOR *PpttProcessor = NULL; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_DMTABLE_INFO *InfoTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_TABLE_HEADER *PpttAcpiHeader; ParentTable = DtPeekSubtable (); while (*PFieldList) { SubtableStart = *PFieldList; /* Compile PPTT subtable header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoPpttHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); PpttHeader = ACPI_CAST_PTR (ACPI_SUBTABLE_HEADER, Subtable->Buffer); PpttHeader->Length = (UINT8)(Subtable->Length); switch (PpttHeader->Type) { case ACPI_PPTT_TYPE_PROCESSOR: InfoTable = AcpiDmTableInfoPptt0; break; case ACPI_PPTT_TYPE_CACHE: InfoTable = AcpiDmTableInfoPptt1; break; case ACPI_PPTT_TYPE_ID: InfoTable = AcpiDmTableInfoPptt2; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "PPTT"); return (AE_ERROR); } /* Compile PPTT subtable body */ Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); PpttHeader->Length += (UINT8)(Subtable->Length); /* Compile PPTT subtable additional */ switch (PpttHeader->Type) { case ACPI_PPTT_TYPE_PROCESSOR: PpttProcessor = ACPI_SUB_PTR (ACPI_PPTT_PROCESSOR, Subtable->Buffer, sizeof (ACPI_SUBTABLE_HEADER)); if (PpttProcessor) { /* Compile initiator proximity domain list */ PpttProcessor->NumberOfPrivResources = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoPptt0a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); PpttHeader->Length += (UINT8)(Subtable->Length); PpttProcessor->NumberOfPrivResources++; } } break; case ACPI_PPTT_TYPE_CACHE: PpttAcpiHeader = ACPI_CAST_PTR (ACPI_TABLE_HEADER, AslGbl_RootTable->Buffer); if (PpttAcpiHeader->Revision < 3) { break; } Status = DtCompileTable (PFieldList, AcpiDmTableInfoPptt1a, &Subtable); DtInsertSubtable (ParentTable, Subtable); PpttHeader->Length += (UINT8)(Subtable->Length); break; default: break; } } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompilePrmt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile PRMT. * *****************************************************************************/ ACPI_STATUS DtCompilePrmt ( void **List) { ACPI_STATUS Status; ACPI_TABLE_PRMT_HEADER *PrmtHeader; ACPI_PRMT_MODULE_INFO *PrmtModuleInfo; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; UINT32 i, j; ParentTable = DtPeekSubtable (); /* Compile PRMT subtable header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoPrmtHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); PrmtHeader = ACPI_CAST_PTR (ACPI_TABLE_PRMT_HEADER, Subtable->Buffer); for (i = 0; i < PrmtHeader->ModuleInfoCount; i++) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoPrmtModule, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); PrmtModuleInfo = ACPI_CAST_PTR (ACPI_PRMT_MODULE_INFO, Subtable->Buffer); for (j = 0; j < PrmtModuleInfo->HandlerInfoCount; j++) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoPrmtHandler, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); } } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileRas2 * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile RAS2. * *****************************************************************************/ ACPI_STATUS DtCompileRas2 ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; ACPI_TABLE_RAS2 *Ras2Header; UINT32 Count = 0; /* Main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoRas2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Ras2Header = ACPI_CAST_PTR (ACPI_TABLE_RAS2, ParentTable->Buffer); /* There is only one type of subtable at this time, no need to decode */ while (*PFieldList) { /* List of RAS2 PCC descriptors, each 8 bytes */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoRas2PccDesc, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); Count++; } Ras2Header->NumPccDescs = (UINT8) Count; return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileRgrt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile RGRT. * *****************************************************************************/ ACPI_STATUS DtCompileRgrt ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; /* Compile the main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoRgrt, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Compile the "Subtable" -- actually just the binary (PNG) image */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoRgrt0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileRhct * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile RHCT. * *****************************************************************************/ ACPI_STATUS DtCompileRhct ( void **List) { ACPI_STATUS Status; ACPI_RHCT_NODE_HEADER *RhctHeader; ACPI_RHCT_HART_INFO *RhctHartInfo = NULL; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_DMTABLE_INFO *InfoTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; /* Compile the main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoRhct, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); while (*PFieldList) { SubtableStart = *PFieldList; /* Compile RHCT subtable header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoRhctNodeHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); RhctHeader = ACPI_CAST_PTR (ACPI_RHCT_NODE_HEADER, Subtable->Buffer); RhctHeader->Length = (UINT16)(Subtable->Length); switch (RhctHeader->Type) { case ACPI_RHCT_NODE_TYPE_ISA_STRING: InfoTable = AcpiDmTableInfoRhctIsa1; break; case ACPI_RHCT_NODE_TYPE_HART_INFO: InfoTable = AcpiDmTableInfoRhctHartInfo1; break; case ACPI_RHCT_NODE_TYPE_CMO: InfoTable = AcpiDmTableInfoRhctCmo1; break; case ACPI_RHCT_NODE_TYPE_MMU: InfoTable = AcpiDmTableInfoRhctMmu1; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "RHCT"); return (AE_ERROR); } /* Compile RHCT subtable body */ Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); RhctHeader->Length += (UINT16)(Subtable->Length); /* Compile RHCT subtable additionals */ switch (RhctHeader->Type) { case ACPI_RHCT_NODE_TYPE_HART_INFO: RhctHartInfo = ACPI_SUB_PTR (ACPI_RHCT_HART_INFO, Subtable->Buffer, sizeof (ACPI_RHCT_NODE_HEADER)); if (RhctHartInfo) { RhctHartInfo->NumOffsets = 0; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoRhctHartInfo2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } DtInsertSubtable (ParentTable, Subtable); RhctHeader->Length += (UINT16)(Subtable->Length); RhctHartInfo->NumOffsets++; } } break; default: break; } } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileRsdt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile RSDT. * *****************************************************************************/ ACPI_STATUS DtCompileRsdt ( void **List) { DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD *FieldList = *(DT_FIELD **) List; UINT32 Address; ParentTable = DtPeekSubtable (); while (FieldList) { DtCompileInteger ((UINT8 *) &Address, FieldList, 4, DT_NON_ZERO); DtCreateSubtable ((UINT8 *) &Address, 4, &Subtable); DtInsertSubtable (ParentTable, Subtable); FieldList = FieldList->Next; } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileS3pt * * PARAMETERS: PFieldList - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile S3PT (Pointed to by FPDT) * *****************************************************************************/ ACPI_STATUS DtCompileS3pt ( DT_FIELD **PFieldList) { ACPI_STATUS Status; ACPI_FPDT_HEADER *S3ptHeader; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_DMTABLE_INFO *InfoTable; DT_FIELD *SubtableStart; Status = DtCompileTable (PFieldList, AcpiDmTableInfoS3pt, &AslGbl_RootTable); if (ACPI_FAILURE (Status)) { return (Status); } DtPushSubtable (AslGbl_RootTable); while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoS3ptHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); S3ptHeader = ACPI_CAST_PTR (ACPI_FPDT_HEADER, Subtable->Buffer); switch (S3ptHeader->Type) { case ACPI_S3PT_TYPE_RESUME: InfoTable = AcpiDmTableInfoS3pt0; break; case ACPI_S3PT_TYPE_SUSPEND: InfoTable = AcpiDmTableInfoS3pt1; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "S3PT"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileSdev * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile SDEV. * *****************************************************************************/ ACPI_STATUS DtCompileSdev ( void **List) { ACPI_STATUS Status; ACPI_SDEV_HEADER *SdevHeader; ACPI_SDEV_HEADER *SecureComponentHeader; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_DMTABLE_INFO *InfoTable; ACPI_DMTABLE_INFO *SecureComponentInfoTable = NULL; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_SDEV_PCIE *Pcie = NULL; ACPI_SDEV_NAMESPACE *Namesp = NULL; UINT32 EntryCount; ACPI_SDEV_SECURE_COMPONENT *SecureComponent = NULL; UINT16 ComponentLength = 0; /* Subtables */ while (*PFieldList) { /* Compile common SDEV subtable header */ SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoSdevHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); SdevHeader = ACPI_CAST_PTR (ACPI_SDEV_HEADER, Subtable->Buffer); SdevHeader->Length = (UINT8)(sizeof (ACPI_SDEV_HEADER)); switch (SdevHeader->Type) { case ACPI_SDEV_TYPE_NAMESPACE_DEVICE: InfoTable = AcpiDmTableInfoSdev0; Namesp = ACPI_CAST_PTR (ACPI_SDEV_NAMESPACE, Subtable->Buffer); SecureComponent = ACPI_CAST_PTR (ACPI_SDEV_SECURE_COMPONENT, ACPI_ADD_PTR (UINT8, Subtable->Buffer, sizeof(ACPI_SDEV_NAMESPACE))); break; case ACPI_SDEV_TYPE_PCIE_ENDPOINT_DEVICE: InfoTable = AcpiDmTableInfoSdev1; Pcie = ACPI_CAST_PTR (ACPI_SDEV_PCIE, Subtable->Buffer); break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "SDEV"); return (AE_ERROR); } /* Compile SDEV subtable body */ Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Optional data fields are appended to the main subtable body */ switch (SdevHeader->Type) { case ACPI_SDEV_TYPE_NAMESPACE_DEVICE: /* * Device Id Offset will be be calculated differently depending on * the presence of secure access components. */ Namesp->DeviceIdOffset = 0; ComponentLength = 0; /* If the secure access component exists, get the structures */ if (SdevHeader->Flags & ACPI_SDEV_SECURE_COMPONENTS_PRESENT) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoSdev0b, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Namesp->DeviceIdOffset += sizeof (ACPI_SDEV_SECURE_COMPONENT); /* Compile a secure access component header */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoSdevSecCompHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Compile the secure access component */ SecureComponentHeader = ACPI_CAST_PTR (ACPI_SDEV_HEADER, Subtable->Buffer); switch (SecureComponentHeader->Type) { case ACPI_SDEV_TYPE_ID_COMPONENT: SecureComponentInfoTable = AcpiDmTableInfoSdevSecCompId; Namesp->DeviceIdOffset += sizeof (ACPI_SDEV_ID_COMPONENT); ComponentLength = sizeof (ACPI_SDEV_ID_COMPONENT); break; case ACPI_SDEV_TYPE_MEM_COMPONENT: SecureComponentInfoTable = AcpiDmTableInfoSdevSecCompMem; Namesp->DeviceIdOffset += sizeof (ACPI_SDEV_MEM_COMPONENT); ComponentLength = sizeof (ACPI_SDEV_MEM_COMPONENT); break; default: /* Any other secure component types are undefined */ return (AE_ERROR); } Status = DtCompileTable (PFieldList, SecureComponentInfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); SecureComponent->SecureComponentOffset = sizeof (ACPI_SDEV_NAMESPACE) + sizeof (ACPI_SDEV_SECURE_COMPONENT); SecureComponent->SecureComponentLength = ComponentLength; /* * Add the secure component to the subtable to be added for the * the namespace subtable's length */ ComponentLength += sizeof (ACPI_SDEV_SECURE_COMPONENT); } /* Append DeviceId namespace string */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoSdev0a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Namesp->DeviceIdOffset += sizeof (ACPI_SDEV_NAMESPACE); Namesp->DeviceIdLength = (UINT16) Subtable->Length; /* Append Vendor data */ Namesp->VendorDataLength = 0; Namesp->VendorDataOffset = 0; if (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoSdev1b, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (Subtable) { ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Namesp->VendorDataOffset = Namesp->DeviceIdOffset + Namesp->DeviceIdLength; Namesp->VendorDataLength = (UINT16) Subtable->Length; /* Final size of entire namespace structure */ SdevHeader->Length = (UINT16)(sizeof(ACPI_SDEV_NAMESPACE) + Subtable->Length + Namesp->DeviceIdLength) + ComponentLength; } } break; case ACPI_SDEV_TYPE_PCIE_ENDPOINT_DEVICE: /* Append the PCIe path info first */ EntryCount = 0; while (*PFieldList && !strcmp ((*PFieldList)->Name, "Device")) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoSdev1a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (!Subtable) { DtPopSubtable (); break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); EntryCount++; } /* Path offset will point immediately after the main subtable */ Pcie->PathOffset = sizeof (ACPI_SDEV_PCIE); Pcie->PathLength = (UINT16) (EntryCount * sizeof (ACPI_SDEV_PCIE_PATH)); /* Append the Vendor Data last */ Pcie->VendorDataLength = 0; Pcie->VendorDataOffset = 0; if (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoSdev1b, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } if (Subtable) { ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Pcie->VendorDataOffset = Pcie->PathOffset + Pcie->PathLength; Pcie->VendorDataLength = (UINT16) Subtable->Length; } } SdevHeader->Length = sizeof (ACPI_SDEV_PCIE) + Pcie->PathLength + Pcie->VendorDataLength; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "SDEV"); return (AE_ERROR); } DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileSlic * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile SLIC. * *****************************************************************************/ ACPI_STATUS DtCompileSlic ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoSlic, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileSlit * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile SLIT. * *****************************************************************************/ ACPI_STATUS DtCompileSlit ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *FieldList; DT_FIELD *EndOfFieldList = NULL; UINT32 Localities; UINT32 LocalityListLength; UINT8 *LocalityBuffer; Status = DtCompileTable (PFieldList, AcpiDmTableInfoSlit, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Localities = *ACPI_CAST_PTR (UINT32, Subtable->Buffer); LocalityBuffer = UtLocalCalloc (Localities); LocalityListLength = 0; /* Compile each locality buffer */ FieldList = *PFieldList; while (FieldList) { DtCompileBuffer (LocalityBuffer, FieldList->Value, FieldList, Localities); LocalityListLength++; DtCreateSubtable (LocalityBuffer, Localities, &Subtable); DtInsertSubtable (ParentTable, Subtable); EndOfFieldList = FieldList; FieldList = FieldList->Next; } if (LocalityListLength != Localities) { sprintf(AslGbl_MsgBuffer, "Found %u entries, must match LocalityCount: %u", LocalityListLength, Localities); DtError (ASL_ERROR, ASL_MSG_ENTRY_LIST, EndOfFieldList, AslGbl_MsgBuffer); ACPI_FREE (LocalityBuffer); return (AE_LIMIT); } ACPI_FREE (LocalityBuffer); return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileSrat * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile SRAT. * *****************************************************************************/ ACPI_STATUS DtCompileSrat ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_SUBTABLE_HEADER *SratHeader; ACPI_DMTABLE_INFO *InfoTable; Status = DtCompileTable (PFieldList, AcpiDmTableInfoSrat, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoSratHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); SratHeader = ACPI_CAST_PTR (ACPI_SUBTABLE_HEADER, Subtable->Buffer); switch (SratHeader->Type) { case ACPI_SRAT_TYPE_CPU_AFFINITY: InfoTable = AcpiDmTableInfoSrat0; break; case ACPI_SRAT_TYPE_MEMORY_AFFINITY: InfoTable = AcpiDmTableInfoSrat1; break; case ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY: InfoTable = AcpiDmTableInfoSrat2; break; case ACPI_SRAT_TYPE_GICC_AFFINITY: InfoTable = AcpiDmTableInfoSrat3; break; case ACPI_SRAT_TYPE_GIC_ITS_AFFINITY: InfoTable = AcpiDmTableInfoSrat4; break; case ACPI_SRAT_TYPE_GENERIC_AFFINITY: InfoTable = AcpiDmTableInfoSrat5; break; case ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY: InfoTable = AcpiDmTableInfoSrat6; break; case ACPI_SRAT_TYPE_RINTC_AFFINITY: InfoTable = AcpiDmTableInfoSrat7; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "SRAT"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPopSubtable (); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileStao * * PARAMETERS: PFieldList - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile STAO. * *****************************************************************************/ ACPI_STATUS DtCompileStao ( void **List) { DT_FIELD **PFieldList = (DT_FIELD **) List; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_STATUS Status; /* Compile the main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoStao, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Compile each ASCII namestring as a subtable */ while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoStaoStr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileSvkl * * PARAMETERS: PFieldList - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile SVKL. * * NOTES: SVKL is essentially a flat table, with a small main table and * a variable number of a single type of subtable. * *****************************************************************************/ ACPI_STATUS DtCompileSvkl ( void **List) { DT_FIELD **PFieldList = (DT_FIELD **) List; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_STATUS Status; /* Compile the main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoSvkl, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Compile each subtable */ while (*PFieldList) { Status = DtCompileTable (PFieldList, AcpiDmTableInfoSvkl0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileTcpa * * PARAMETERS: PFieldList - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile TCPA. * *****************************************************************************/ ACPI_STATUS DtCompileTcpa ( void **List) { DT_FIELD **PFieldList = (DT_FIELD **) List; DT_SUBTABLE *Subtable; ACPI_TABLE_TCPA_HDR *TcpaHeader; DT_SUBTABLE *ParentTable; ACPI_STATUS Status; /* Compile the main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoTcpaHdr, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* * Examine the PlatformClass field to determine the table type. * Either a client or server table. Only one. */ TcpaHeader = ACPI_CAST_PTR (ACPI_TABLE_TCPA_HDR, ParentTable->Buffer); switch (TcpaHeader->PlatformClass) { case ACPI_TCPA_CLIENT_TABLE: Status = DtCompileTable (PFieldList, AcpiDmTableInfoTcpaClient, &Subtable); break; case ACPI_TCPA_SERVER_TABLE: Status = DtCompileTable (PFieldList, AcpiDmTableInfoTcpaServer, &Subtable); break; default: AcpiOsPrintf ("\n**** Unknown TCPA Platform Class 0x%X\n", TcpaHeader->PlatformClass); Status = AE_ERROR; break; } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); return (Status); } /****************************************************************************** * * FUNCTION: DtCompileTpm2Rev3 * * PARAMETERS: PFieldList - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile TPM2 revision 3 * *****************************************************************************/ static ACPI_STATUS DtCompileTpm2Rev3 ( void **List) { DT_FIELD **PFieldList = (DT_FIELD **) List; DT_SUBTABLE *Subtable; ACPI_TABLE_TPM23 *Tpm23Header; DT_SUBTABLE *ParentTable; ACPI_STATUS Status = AE_OK; Status = DtCompileTable (PFieldList, AcpiDmTableInfoTpm23, &Subtable); ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Tpm23Header = ACPI_CAST_PTR (ACPI_TABLE_TPM23, ParentTable->Buffer); /* Subtable type depends on the StartMethod */ switch (Tpm23Header->StartMethod) { case ACPI_TPM23_ACPI_START_METHOD: /* Subtable specific to to ARM_SMC */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoTpm23a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); break; default: break; } return (Status); } /****************************************************************************** * * FUNCTION: DtCompileTpm2 * * PARAMETERS: PFieldList - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile TPM2. * *****************************************************************************/ ACPI_STATUS DtCompileTpm2 ( void **List) { DT_FIELD **PFieldList = (DT_FIELD **) List; DT_SUBTABLE *Subtable; ACPI_TABLE_TPM2 *Tpm2Header; DT_SUBTABLE *ParentTable; ACPI_STATUS Status = AE_OK; ACPI_TABLE_HEADER *Header; ParentTable = DtPeekSubtable (); Header = ACPI_CAST_PTR (ACPI_TABLE_HEADER, ParentTable->Buffer); if (Header->Revision == 3) { return (DtCompileTpm2Rev3 (List)); } /* Compile the main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoTpm2, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Tpm2Header = ACPI_CAST_PTR (ACPI_TABLE_TPM2, ParentTable->Buffer); /* Method parameters */ /* Optional: Log area minimum length */ /* Optional: Log area start address */ /* TBD: Optional fields above not fully implemented (not optional at this time) */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoTpm2a, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* Subtable type depends on the StartMethod */ switch (Tpm2Header->StartMethod) { case ACPI_TPM2_COMMAND_BUFFER_WITH_ARM_SMC: /* Subtable specific to to ARM_SMC */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoTpm211, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); break; case ACPI_TPM2_START_METHOD: case ACPI_TPM2_MEMORY_MAPPED: case ACPI_TPM2_COMMAND_BUFFER: case ACPI_TPM2_COMMAND_BUFFER_WITH_START_METHOD: break; case ACPI_TPM2_RESERVED1: case ACPI_TPM2_RESERVED3: case ACPI_TPM2_RESERVED4: case ACPI_TPM2_RESERVED5: case ACPI_TPM2_RESERVED9: case ACPI_TPM2_RESERVED10: AcpiOsPrintf ("\n**** Reserved TPM2 Start Method type 0x%X\n", Tpm2Header->StartMethod); Status = AE_ERROR; break; case ACPI_TPM2_NOT_ALLOWED: default: AcpiOsPrintf ("\n**** Unknown TPM2 Start Method type 0x%X\n", Tpm2Header->StartMethod); Status = AE_ERROR; break; } return (Status); } /****************************************************************************** * * FUNCTION: DtGetGenericTableInfo * * PARAMETERS: Name - Generic type name * * RETURN: Info entry * * DESCRIPTION: Obtain table info for a generic name entry * *****************************************************************************/ ACPI_DMTABLE_INFO * DtGetGenericTableInfo ( char *Name) { ACPI_DMTABLE_INFO *Info; UINT32 i; if (!Name) { return (NULL); } /* Search info table for name match */ for (i = 0; ; i++) { Info = AcpiDmTableInfoGeneric[i]; if (Info->Opcode == ACPI_DMT_EXIT) { Info = NULL; break; } /* Use caseless compare for generic keywords */ if (!AcpiUtStricmp (Name, Info->Name)) { break; } } return (Info); } /****************************************************************************** * * FUNCTION: DtCompileUefi * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile UEFI. * *****************************************************************************/ ACPI_STATUS DtCompileUefi ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; UINT16 *DataOffset; /* Compile the predefined portion of the UEFI table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoUefi, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DataOffset = (UINT16 *) (Subtable->Buffer + 16); *DataOffset = sizeof (ACPI_TABLE_UEFI); ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); /* * Compile the "generic" portion of the UEFI table. This * part of the table is not predefined and any of the generic * operators may be used. */ DtCompileGeneric ((void **) PFieldList, NULL, NULL); return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileViot * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile VIOT. * *****************************************************************************/ ACPI_STATUS DtCompileViot ( void **List) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; DT_FIELD *SubtableStart; ACPI_TABLE_VIOT *Viot; ACPI_VIOT_HEADER *ViotHeader; ACPI_DMTABLE_INFO *InfoTable; UINT16 NodeCount; ParentTable = DtPeekSubtable (); Status = DtCompileTable (PFieldList, AcpiDmTableInfoViot, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } DtInsertSubtable (ParentTable, Subtable); /* * Using ACPI_SUB_PTR, We needn't define a separate structure. Care * should be taken to avoid accessing ACPI_TABLE_HEADER fields. */ Viot = ACPI_SUB_PTR (ACPI_TABLE_VIOT, Subtable->Buffer, sizeof (ACPI_TABLE_HEADER)); Viot->NodeOffset = sizeof (ACPI_TABLE_VIOT); NodeCount = 0; while (*PFieldList) { SubtableStart = *PFieldList; Status = DtCompileTable (PFieldList, AcpiDmTableInfoViotHeader, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPushSubtable (Subtable); ViotHeader = ACPI_CAST_PTR (ACPI_VIOT_HEADER, Subtable->Buffer); switch (ViotHeader->Type) { case ACPI_VIOT_NODE_PCI_RANGE: InfoTable = AcpiDmTableInfoViot1; break; case ACPI_VIOT_NODE_MMIO: InfoTable = AcpiDmTableInfoViot2; break; case ACPI_VIOT_NODE_VIRTIO_IOMMU_PCI: InfoTable = AcpiDmTableInfoViot3; break; case ACPI_VIOT_NODE_VIRTIO_IOMMU_MMIO: InfoTable = AcpiDmTableInfoViot4; break; default: DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "VIOT"); return (AE_ERROR); } Status = DtCompileTable (PFieldList, InfoTable, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); DtPopSubtable (); NodeCount++; } Viot->NodeCount = NodeCount; return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileWdat * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile WDAT. * *****************************************************************************/ ACPI_STATUS DtCompileWdat ( void **List) { ACPI_STATUS Status; Status = DtCompileTwoSubtables (List, AcpiDmTableInfoWdat, AcpiDmTableInfoWdat0); return (Status); } /****************************************************************************** * * FUNCTION: DtCompileWpbt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile WPBT. * *****************************************************************************/ ACPI_STATUS DtCompileWpbt ( void **List) { DT_FIELD **PFieldList = (DT_FIELD **) List; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; ACPI_TABLE_WPBT *Table; ACPI_STATUS Status; /* Compile the main table */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoWpbt, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } ParentTable = DtPeekSubtable (); DtInsertSubtable (ParentTable, Subtable); Table = ACPI_CAST_PTR (ACPI_TABLE_WPBT, ParentTable->Buffer); /* * Exit now if there are no arguments specified. This is indicated by: * The "Command-line Arguments" field has not been specified (if specified, * it will be the last field in the field list -- after the main table). * Set the Argument Length in the main table to zero. */ if (!*PFieldList) { Table->ArgumentsLength = 0; return (AE_OK); } /* Compile the argument list subtable */ Status = DtCompileTable (PFieldList, AcpiDmTableInfoWpbt0, &Subtable); if (ACPI_FAILURE (Status)) { return (Status); } /* Extract the length of the Arguments buffer, insert into main table */ Table->ArgumentsLength = (UINT16) Subtable->TotalLength; DtInsertSubtable (ParentTable, Subtable); return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileXsdt * * PARAMETERS: List - Current field list pointer * * RETURN: Status * * DESCRIPTION: Compile XSDT. * *****************************************************************************/ ACPI_STATUS DtCompileXsdt ( void **List) { DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD *FieldList = *(DT_FIELD **) List; UINT64 Address; ParentTable = DtPeekSubtable (); while (FieldList) { DtCompileInteger ((UINT8 *) &Address, FieldList, 8, DT_NON_ZERO); DtCreateSubtable ((UINT8 *) &Address, 8, &Subtable); DtInsertSubtable (ParentTable, Subtable); FieldList = FieldList->Next; } return (AE_OK); } /****************************************************************************** * * FUNCTION: DtCompileGeneric * * PARAMETERS: List - Current field list pointer * Name - Field name to end generic compiling * Length - Compiled table length to return * * RETURN: Status * * DESCRIPTION: Compile generic unknown table. * *****************************************************************************/ ACPI_STATUS DtCompileGeneric ( void **List, char *Name, UINT32 *Length) { ACPI_STATUS Status; DT_SUBTABLE *Subtable; DT_SUBTABLE *ParentTable; DT_FIELD **PFieldList = (DT_FIELD **) List; ACPI_DMTABLE_INFO *Info; ParentTable = DtPeekSubtable (); /* * Compile the "generic" portion of the table. This * part of the table is not predefined and any of the generic * operators may be used. */ /* Find any and all labels in the entire generic portion */ DtDetectAllLabels (*PFieldList); /* Now we can actually compile the parse tree */ if (Length && *Length) { *Length = 0; } while (*PFieldList) { if (Name && !strcmp ((*PFieldList)->Name, Name)) { break; } Info = DtGetGenericTableInfo ((*PFieldList)->Name); if (!Info) { sprintf (AslGbl_MsgBuffer, "Generic data type \"%s\" not found", (*PFieldList)->Name); DtNameError (ASL_ERROR, ASL_MSG_INVALID_FIELD_NAME, (*PFieldList), AslGbl_MsgBuffer); *PFieldList = (*PFieldList)->Next; continue; } Status = DtCompileTable (PFieldList, Info, &Subtable); if (ACPI_SUCCESS (Status)) { DtInsertSubtable (ParentTable, Subtable); if (Length) { *Length += Subtable->Length; } } else { *PFieldList = (*PFieldList)->Next; if (Status == AE_NOT_FOUND) { sprintf (AslGbl_MsgBuffer, "Generic data type \"%s\" not found", (*PFieldList)->Name); DtNameError (ASL_ERROR, ASL_MSG_INVALID_FIELD_NAME, (*PFieldList), AslGbl_MsgBuffer); } } } return (AE_OK); } acpica-unix-20250404/source/compiler/aslallocate.c0000775000175000017500000001450514773714131021307 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslallocate -- Local memory allocation * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" /* * Local heap allocation wrappers. See aslcache.c for allocation from local * cache allocations */ /******************************************************************************* * * FUNCTION: UtLocalCalloc * * PARAMETERS: Size - Bytes to be allocated * * RETURN: Pointer to the allocated memory. If this function returns * (the compiler is not aborted), the pointer is guaranteed to * be valid. * * DESCRIPTION: Allocate zero-initialized memory. The point of this function * is to abort the compile on an allocation failure, on the * assumption that nothing more can be accomplished. * * NOTE: For allocation from the local caches, see aslcache.c * ******************************************************************************/ void * UtLocalCalloc ( UINT32 Size) { void *Allocated; Allocated = ACPI_ALLOCATE_ZEROED (Size); if (!Allocated) { AslCommonError (ASL_ERROR, ASL_MSG_MEMORY_ALLOCATION, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_InputByteCount, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, NULL); CmCleanupAndExit (); exit (1); } AslGbl_TotalAllocations++; AslGbl_TotalAllocated += Size; return (Allocated); } /****************************************************************************** * * FUNCTION: UtExpandLineBuffers * * PARAMETERS: None. Updates global line buffer pointers. * * RETURN: None. Reallocates the global line buffers * * DESCRIPTION: Called if the current line buffer becomes filled. Reallocates * all global line buffers and updates AslGbl_LineBufferSize. NOTE: * Also used for the initial allocation of the buffers, when * all of the buffer pointers are NULL. Initial allocations are * of size ASL_DEFAULT_LINE_BUFFER_SIZE * *****************************************************************************/ void UtExpandLineBuffers ( void) { UINT32 NewSize; /* Attempt to double the size of all line buffers */ NewSize = AslGbl_LineBufferSize * 2; if (AslGbl_CurrentLineBuffer) { DbgPrint (ASL_DEBUG_OUTPUT, "Increasing line buffer size from %u to %u\n", AslGbl_LineBufferSize, NewSize); } UtReallocLineBuffers (&AslGbl_CurrentLineBuffer, AslGbl_LineBufferSize, NewSize); UtReallocLineBuffers (&AslGbl_MainTokenBuffer, AslGbl_LineBufferSize, NewSize); UtReallocLineBuffers (&AslGbl_MacroTokenBuffer, AslGbl_LineBufferSize, NewSize); UtReallocLineBuffers (&AslGbl_ExpressionTokenBuffer, AslGbl_LineBufferSize, NewSize); AslGbl_LineBufPtr = AslGbl_CurrentLineBuffer; AslGbl_LineBufferSize = NewSize; } /****************************************************************************** * * FUNCTION: UtReallocLineBuffers * * PARAMETERS: Buffer - Buffer to realloc * OldSize - Old size of Buffer * NewSize - New size of Buffer * * RETURN: none * * DESCRIPTION: Reallocate and initialize Buffer * *****************************************************************************/ void UtReallocLineBuffers ( char **Buffer, UINT32 OldSize, UINT32 NewSize) { *Buffer = realloc (*Buffer, NewSize); if (*Buffer) { memset (*Buffer + OldSize, 0, NewSize - OldSize); return; } printf ("Could not increase line buffer size from %u to %u\n", OldSize, NewSize); AslError (ASL_ERROR, ASL_MSG_BUFFER_ALLOCATION, NULL, NULL); AslAbort (); } /****************************************************************************** * * FUNCTION: UtFreeLineBuffers * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Free all line buffers * *****************************************************************************/ void UtFreeLineBuffers ( void) { free (AslGbl_CurrentLineBuffer); free (AslGbl_MainTokenBuffer); free (AslGbl_MacroTokenBuffer); free (AslGbl_MacroTokenReplaceBuffer); free (AslGbl_ExpressionTokenBuffer); } acpica-unix-20250404/source/compiler/aslstartup.c0000775000175000017500000003504514773714131021227 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslstartup - Compiler startup routines, called from main * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "actables.h" #include "acdisasm.h" #include "acapps.h" #include "acconvert.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslstartup") /* Local prototypes */ static UINT8 AslDetectSourceFileType ( ASL_FILE_INFO *Info); /* Globals */ static BOOLEAN AslToFile = TRUE; /******************************************************************************* * * FUNCTION: AslInitializeGlobals * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Re-initialize globals needed to restart the compiler. This * allows multiple files to be disassembled and/or compiled. * ******************************************************************************/ void AslInitializeGlobals ( void) { UINT32 i; /* Init compiler globals */ AslGbl_SyntaxError = 0; AslGbl_CurrentColumn = 0; AslGbl_CurrentLineNumber = 1; AslGbl_LogicalLineNumber = 1; AslGbl_CurrentLineOffset = 0; AslGbl_InputFieldCount = 0; AslGbl_InputByteCount = 0; AslGbl_NsLookupCount = 0; AslGbl_LineBufPtr = AslGbl_CurrentLineBuffer; AslGbl_ErrorLog = NULL; AslGbl_NextError = NULL; AslGbl_Signature = NULL; AslGbl_FileType = 0; AslGbl_TotalExecutableOpcodes = 0; AslGbl_TotalNamedObjects = 0; AslGbl_TotalKeywords = 0; AslGbl_TotalParseNodes = 0; AslGbl_TotalMethods = 0; AslGbl_TotalAllocations = 0; AslGbl_TotalAllocated = 0; AslGbl_TotalFolds = 0; AslGbl_NextEvent = 0; for (i = 0; i < ASL_NUM_REPORT_LEVELS; i++) { AslGbl_ExceptionCount[i] = 0; } if (AcpiGbl_CaptureComments) { AslGbl_CommentState.SpacesBefore = 0; AslGbl_CommentState.CommentType = 1; AslGbl_CommentState.LatestParseOp = NULL; AslGbl_CommentState.ParsingParenBraceNode = NULL; AslGbl_CommentState.CaptureComments = TRUE; } } /******************************************************************************* * * FUNCTION: AslDetectSourceFileType * * PARAMETERS: Info - Name/Handle for the file (must be open) * * RETURN: File Type * * DESCRIPTION: Determine the type of the input file. Either binary (contains * non-ASCII characters), ASL file, or an ACPI Data Table file. * ******************************************************************************/ static UINT8 AslDetectSourceFileType ( ASL_FILE_INFO *Info) { char *FileChar; UINT8 Type = ASL_INPUT_TYPE_ASCII_DATA; /* default */ ACPI_STATUS Status; /* Check for 100% ASCII source file (comments are ignored) */ Status = FlIsFileAsciiSource (Info->Filename, FALSE); if (ACPI_SUCCESS (Status)) { /* * File contains ASCII source code. Determine if this is an ASL * file or an ACPI data table file. */ while (fgets (AslGbl_CurrentLineBuffer, AslGbl_LineBufferSize, Info->Handle)) { /* Uppercase the buffer for caseless compare */ FileChar = AslGbl_CurrentLineBuffer; while (*FileChar) { *FileChar = (char) toupper ((int) *FileChar); FileChar++; } /* Presence of "DefinitionBlock" indicates actual ASL code */ if (strstr (AslGbl_CurrentLineBuffer, "DEFINITIONBLOCK")) { /* Appears to be an ASL file */ Type = ASL_INPUT_TYPE_ASCII_ASL; goto Cleanup; } } /* Appears to be an ASCII data table source file */ Type = ASL_INPUT_TYPE_ASCII_DATA; goto Cleanup; } /* * We have some sort of binary table; reopen in binary mode, then * check for valid ACPI table */ fclose (Info->Handle); Info->Handle = fopen (Info->Filename, "rb"); if (!Info->Handle) { fprintf (stderr, "Could not open input file %s\n", Info->Filename); } Status = AcValidateTableHeader (Info->Handle, 0); if (ACPI_SUCCESS (Status)) { fprintf (stderr, "Binary file appears to be a valid ACPI table, disassembling\n"); Type = ASL_INPUT_TYPE_BINARY_ACPI_TABLE; goto Cleanup; } else { fprintf (stderr, "Binary file does not contain a valid standard ACPI table\n"); } Type = ASL_INPUT_TYPE_BINARY; Cleanup: /* Must seek back to the start of the file */ fseek (Info->Handle, 0, SEEK_SET); return (Type); } /******************************************************************************* * * FUNCTION: AslDoDisassembly * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initiate AML file disassembly. Uses ACPICA subsystem to build * namespace. This function assumes that the ACPI subsystem has * been initialized. The caller of the initialization will also * terminate the ACPI subsystem. * ******************************************************************************/ ACPI_STATUS AslDoDisassembly ( void) { ACPI_STATUS Status; Status = AcpiAllocateRootTable (4); if (ACPI_FAILURE (Status)) { AcpiOsPrintf ("Could not initialize ACPI Table Manager, %s\n", AcpiFormatException (Status)); return (Status); } /* This is where the disassembly happens */ AcpiGbl_DmOpt_Disasm = TRUE; Status = AdAmlDisassemble (AslToFile, AslGbl_Files[ASL_FILE_INPUT].Filename, AslGbl_OutputFilenamePrefix, &AslGbl_Files[ASL_FILE_INPUT].Filename); if (ACPI_FAILURE (Status)) { return (Status); } /* Check if any control methods were unresolved */ AcpiDmUnresolvedWarning (0); /* Clear Error log */ AeClearErrorLog (); /* * AslGbl_Files[ASL_FILE_INPUT].Filename was replaced with the * .DSL disassembly file, which can now be compiled if requested */ if (AslGbl_DoCompile) { AcpiOsPrintf ("\nCompiling \"%s\"\n", AslGbl_Files[ASL_FILE_INPUT].Filename); return (AE_CTRL_CONTINUE); } return (AE_OK); } /******************************************************************************* * * FUNCTION: AslDoOneFile * * PARAMETERS: Filename - Name of the file * * RETURN: Status * * DESCRIPTION: Process a single file - either disassemble, compile, or both * ******************************************************************************/ ACPI_STATUS AslDoOneFile ( char *Filename) { ACPI_STATUS Status; UINT8 Event; ASL_GLOBAL_FILE_NODE *FileNode; /* Re-initialize "some" compiler/preprocessor globals */ AslInitializeGlobals (); PrInitializeGlobals (); /* * Extract the directory path. This path is used for possible include * files and the optional AML filename embedded in the input file * DefinitionBlock declaration. */ Status = FlSplitInputPathname (Filename, &AslGbl_DirectoryPath, NULL); if (ACPI_FAILURE (Status)) { return (Status); } /* * There was an input file detected at this point. Each input ASL file is * associated with one global file node consisting of the input file and * all output files associated with it. This is useful when compiling * multiple files in one command. */ Status = FlInitOneFile(Filename); if (ACPI_FAILURE (Status)) { return (AE_ERROR); } /* Take a copy of the input filename, convert any backslashes */ AslGbl_Files[ASL_FILE_INPUT].Filename = UtLocalCacheCalloc (strlen (Filename) + 1); strcpy (AslGbl_Files[ASL_FILE_INPUT].Filename, Filename); UtConvertBackslashes (AslGbl_Files[ASL_FILE_INPUT].Filename); /* * Open the input file. Here, this could be an ASCII source file, * either an ASL file or a Data Table file, or a binary AML file * or binary data table file (For disassembly). */ Status = FlOpenInputFile (AslGbl_Files[ASL_FILE_INPUT].Filename); if (ACPI_FAILURE (Status)) { AePrintErrorLog (ASL_FILE_STDERR); return (AE_ERROR); } FileNode = FlGetCurrentFileNode(); /* Determine input file type */ AslGbl_FileType = AslDetectSourceFileType (&AslGbl_Files[ASL_FILE_INPUT]); FileNode->FileType = AslGbl_FileType; if (AslGbl_FileType == ASL_INPUT_TYPE_BINARY) { return (AE_ERROR); } FileNode->OriginalInputFileSize = FlGetFileSize (ASL_FILE_INPUT); /* * If -p not specified, we will use the input filename as the * output filename prefix */ if (AslGbl_UseDefaultAmlFilename) { AslGbl_OutputFilenamePrefix = AslGbl_Files[ASL_FILE_INPUT].Filename; } /* * Open the output file. Note: by default, the name of this file comes from * the table descriptor within the input file. */ if (AslGbl_FileType == ASL_INPUT_TYPE_ASCII_ASL) { Event = UtBeginEvent ("Open AML output file"); Status = FlOpenAmlOutputFile (AslGbl_OutputFilenamePrefix); UtEndEvent (Event); if (ACPI_FAILURE (Status)) { AePrintErrorLog (ASL_FILE_STDERR); return (AE_ERROR); } } /* Open the optional output files (listings, etc.) */ Status = FlOpenMiscOutputFiles (AslGbl_OutputFilenamePrefix); if (ACPI_FAILURE (Status)) { AePrintErrorLog (ASL_FILE_STDERR); return (AE_ERROR); } /* * Compilation of ASL source versus DataTable source uses different * compiler subsystems */ switch (AslGbl_FileType) { /* * Data Table Compilation */ case ASL_INPUT_TYPE_ASCII_DATA: Status = DtDoCompile (); if (ACPI_FAILURE (Status)) { return (Status); } if (AslGbl_Signature) { AslGbl_Signature = NULL; } /* Check if any errors occurred during compile */ Status = AslCheckForErrorExit (); if (ACPI_FAILURE (Status)) { return (Status); } /* Cleanup (for next source file) and exit */ AeClearErrorLog (); PrTerminatePreprocessor (); return (Status); /* * ASL Compilation */ case ASL_INPUT_TYPE_ASCII_ASL: Status = CmDoCompile (); if (ACPI_FAILURE (Status)) { PrTerminatePreprocessor (); return (Status); } /* * At this point, we know how many lines are in the input file. Save it * to display for post-compilation summary. */ FileNode->TotalLineCount = AslGbl_CurrentLineNumber; return (AE_OK); /* * Binary ACPI table was auto-detected, disassemble it */ case ASL_INPUT_TYPE_BINARY_ACPI_TABLE: /* We have what appears to be an ACPI table, disassemble it */ FlCloseFile (ASL_FILE_INPUT); AslGbl_DoCompile = FALSE; AcpiGbl_DisasmFlag = TRUE; Status = AslDoDisassembly (); return (Status); /* Unknown binary table */ case ASL_INPUT_TYPE_BINARY: AePrintErrorLog (ASL_FILE_STDERR); return (AE_ERROR); default: printf ("Unknown file type %X\n", AslGbl_FileType); return (AE_ERROR); } } /******************************************************************************* * * FUNCTION: AslCheckForErrorExit * * PARAMETERS: None. Examines global exception count array * * RETURN: Status * * DESCRIPTION: Determine if compiler should abort with error status * ******************************************************************************/ ACPI_STATUS AslCheckForErrorExit ( void) { /* * Return non-zero exit code if there have been errors, unless the * global ignore error flag has been set */ if (!AslGbl_IgnoreErrors) { if (AslGbl_ExceptionCount[ASL_ERROR] > 0) { return (AE_ERROR); } /* Optionally treat warnings as errors */ if (AslGbl_WarningsAsErrors) { if ((AslGbl_ExceptionCount[ASL_WARNING] > 0) || (AslGbl_ExceptionCount[ASL_WARNING2] > 0) || (AslGbl_ExceptionCount[ASL_WARNING3] > 0)) { AslError (ASL_ERROR, ASL_MSG_WARNING_AS_ERROR, NULL, "(reporting warnings as errors)"); return (AE_ERROR); } } } return (AE_OK); } acpica-unix-20250404/source/compiler/asluuid.c0000775000175000017500000000675014773714131020474 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asluuid-- compiler UUID support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asluuid") extern UINT8 AcpiGbl_MapToUuidOffset[UUID_BUFFER_LENGTH]; /******************************************************************************* * * FUNCTION: AuValiduateUuid * * PARAMETERS: InString - 36-byte formatted UUID string * * RETURN: Status * * DESCRIPTION: Check all 36 characters for correct format * ******************************************************************************/ ACPI_STATUS AuValidateUuid ( char *InString) { UINT32 i; if (!InString || (strlen (InString) != UUID_STRING_LENGTH)) { return (AE_BAD_PARAMETER); } /* Check all 36 characters for correct format */ for (i = 0; i < UUID_STRING_LENGTH; i++) { /* Must have 4 hyphens (dashes) in these positions: */ if ((i == UUID_HYPHEN1_OFFSET) || (i == UUID_HYPHEN2_OFFSET) || (i == UUID_HYPHEN3_OFFSET) || (i == UUID_HYPHEN4_OFFSET)) { if (InString[i] != '-') { return (AE_BAD_PARAMETER); } } else { /* All other positions must contain hex digits */ if (!isxdigit ((int) InString[i])) { return (AE_BAD_PARAMETER); } } } return (AE_OK); } acpica-unix-20250404/source/compiler/dtparser.y0000775000175000017500000002433314773714132020676 0ustar ivanhuivanhu%{ /****************************************************************************** * * Module Name: dtparser.y - Bison input file for table compiler parser * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtparser") void * AslLocalAllocate (unsigned int Size); /* Bison/yacc configuration */ #undef alloca #define alloca AslLocalAllocate int DtParserlex (void); int DtParserparse (void); void DtParsererror (char const *msg); extern char *DtParsertext; extern DT_FIELD *AslGbl_CurrentField; UINT64 DtParserResult; /* Expression return value */ /* Bison/yacc configuration */ #define yytname DtParsername #define YYDEBUG 1 /* Enable debug output */ #define YYERROR_VERBOSE 1 /* Verbose error messages */ #define YYFLAG -32768 /* Define YYMALLOC/YYFREE to prevent redefinition errors */ #define YYMALLOC malloc #define YYFREE free %} %union { UINT64 value; UINT32 op; } /*! [Begin] no source code translation */ %type Expression %token OP_EXP_EOF %token OP_EXP_NEW_LINE %token OP_EXP_NUMBER %token OP_EXP_HEX_NUMBER %token OP_EXP_DECIMAL_NUMBER %token OP_EXP_LABEL %token OP_EXP_PAREN_OPEN %token OP_EXP_PAREN_CLOSE %left OP_EXP_LOGICAL_OR %left OP_EXP_LOGICAL_AND %left OP_EXP_OR %left OP_EXP_XOR %left OP_EXP_AND %left OP_EXP_EQUAL OP_EXP_NOT_EQUAL %left OP_EXP_GREATER OP_EXP_LESS OP_EXP_GREATER_EQUAL OP_EXP_LESS_EQUAL %left OP_EXP_SHIFT_RIGHT OP_EXP_SHIFT_LEFT %left OP_EXP_ADD OP_EXP_SUBTRACT %left OP_EXP_MULTIPLY OP_EXP_DIVIDE OP_EXP_MODULO %right OP_EXP_ONES_COMPLIMENT OP_EXP_LOGICAL_NOT %% /* * Operator precedence rules (from K&R) * * 1) ( ) * 2) ! ~ (unary operators that are supported here) * 3) * / % * 4) + - * 5) >> << * 6) < > <= >= * 7) == != * 8) & * 9) ^ * 10) | * 11) && * 12) || */ Value : Expression OP_EXP_NEW_LINE { DtParserResult=$1; return 0; } /* End of line (newline) */ | Expression OP_EXP_EOF { DtParserResult=$1; return 0; } /* End of string (0) */ ; Expression /* Unary operators */ : OP_EXP_LOGICAL_NOT Expression { $$ = DtDoOperator ($2, OP_EXP_LOGICAL_NOT, $2);} | OP_EXP_ONES_COMPLIMENT Expression { $$ = DtDoOperator ($2, OP_EXP_ONES_COMPLIMENT, $2);} /* Binary operators */ | Expression OP_EXP_MULTIPLY Expression { $$ = DtDoOperator ($1, OP_EXP_MULTIPLY, $3);} | Expression OP_EXP_DIVIDE Expression { $$ = DtDoOperator ($1, OP_EXP_DIVIDE, $3);} | Expression OP_EXP_MODULO Expression { $$ = DtDoOperator ($1, OP_EXP_MODULO, $3);} | Expression OP_EXP_ADD Expression { $$ = DtDoOperator ($1, OP_EXP_ADD, $3);} | Expression OP_EXP_SUBTRACT Expression { $$ = DtDoOperator ($1, OP_EXP_SUBTRACT, $3);} | Expression OP_EXP_SHIFT_RIGHT Expression { $$ = DtDoOperator ($1, OP_EXP_SHIFT_RIGHT, $3);} | Expression OP_EXP_SHIFT_LEFT Expression { $$ = DtDoOperator ($1, OP_EXP_SHIFT_LEFT, $3);} | Expression OP_EXP_GREATER Expression { $$ = DtDoOperator ($1, OP_EXP_GREATER, $3);} | Expression OP_EXP_LESS Expression { $$ = DtDoOperator ($1, OP_EXP_LESS, $3);} | Expression OP_EXP_GREATER_EQUAL Expression { $$ = DtDoOperator ($1, OP_EXP_GREATER_EQUAL, $3);} | Expression OP_EXP_LESS_EQUAL Expression { $$ = DtDoOperator ($1, OP_EXP_LESS_EQUAL, $3);} | Expression OP_EXP_EQUAL Expression { $$ = DtDoOperator ($1, OP_EXP_EQUAL, $3);} | Expression OP_EXP_NOT_EQUAL Expression { $$ = DtDoOperator ($1, OP_EXP_NOT_EQUAL, $3);} | Expression OP_EXP_AND Expression { $$ = DtDoOperator ($1, OP_EXP_AND, $3);} | Expression OP_EXP_XOR Expression { $$ = DtDoOperator ($1, OP_EXP_XOR, $3);} | Expression OP_EXP_OR Expression { $$ = DtDoOperator ($1, OP_EXP_OR, $3);} | Expression OP_EXP_LOGICAL_AND Expression { $$ = DtDoOperator ($1, OP_EXP_LOGICAL_AND, $3);} | Expression OP_EXP_LOGICAL_OR Expression { $$ = DtDoOperator ($1, OP_EXP_LOGICAL_OR, $3);} /* Parentheses: '(' Expression ')' */ | OP_EXP_PAREN_OPEN Expression OP_EXP_PAREN_CLOSE { $$ = $2;} /* Label references (prefixed with $) */ | OP_EXP_LABEL { $$ = DtResolveLabel (DtParsertext);} /* * All constants for the data table compiler are in hex, whether a (optional) 0x * prefix is present or not. For example, these two input strings are equivalent: * 1234 * 0x1234 */ /* Non-prefixed hex number */ | OP_EXP_NUMBER { $$ = DtDoConstant (DtParsertext);} /* Standard hex number (0x1234) */ | OP_EXP_HEX_NUMBER { $$ = DtDoConstant (DtParsertext);} /* Possible TBD: Decimal number with prefix (0d1234) - Not supported this time */ | OP_EXP_DECIMAL_NUMBER { $$ = DtDoConstant (DtParsertext);} ; %% /*! [End] no source code translation !*/ /* * Local support functions, including parser entry point */ #define PR_FIRST_PARSE_OPCODE OP_EXP_EOF #define PR_YYTNAME_START 3 /****************************************************************************** * * FUNCTION: DtParsererror * * PARAMETERS: Message - Parser-generated error message * * RETURN: None * * DESCRIPTION: Handler for parser errors * *****************************************************************************/ void DtParsererror ( char const *Message) { DtError (ASL_ERROR, ASL_MSG_SYNTAX, AslGbl_CurrentField, (char *) Message); } /****************************************************************************** * * FUNCTION: DtGetOpName * * PARAMETERS: ParseOpcode - Parser token (OP_EXP_*) * * RETURN: Pointer to the opcode name * * DESCRIPTION: Get the ascii name of the parse opcode for debug output * *****************************************************************************/ char * DtGetOpName ( UINT32 ParseOpcode) { #ifdef ASL_YYTNAME_START /* * First entries (PR_YYTNAME_START) in yytname are special reserved names. * Ignore first 6 characters of name (OP_EXP_) */ return ((char *) yytname [(ParseOpcode - PR_FIRST_PARSE_OPCODE) + PR_YYTNAME_START] + 6); #else return ("[Unknown parser generator]"); #endif } /****************************************************************************** * * FUNCTION: DtEvaluateExpression * * PARAMETERS: ExprString - Expression to be evaluated. Must be * terminated by either a newline or a NUL * string terminator * * RETURN: 64-bit value for the expression * * DESCRIPTION: Main entry point for the DT expression parser * *****************************************************************************/ UINT64 DtEvaluateExpression ( char *ExprString) { DbgPrint (ASL_DEBUG_OUTPUT, "**** Input expression: %s (Base 16)\n", ExprString); /* Point lexer to the input string */ if (DtInitLexer (ExprString)) { DtError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, AslGbl_CurrentField, "Could not initialize lexer"); return (0); } /* Parse/Evaluate the input string (value returned in DtParserResult) */ DtParserparse (); DtTerminateLexer (); DbgPrint (ASL_DEBUG_OUTPUT, "**** Parser returned value: %u (%8.8X%8.8X)\n", (UINT32) DtParserResult, ACPI_FORMAT_UINT64 (DtParserResult)); return (DtParserResult); } acpica-unix-20250404/source/compiler/dtio.c0000775000175000017500000007052014773714132017762 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dtio.c - File I/O support for data table compiler * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acapps.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtio") /* Local prototypes */ static char * DtTrim ( char *String); static ACPI_STATUS DtParseLine ( char *LineBuffer, UINT32 Line, UINT32 Offset); static void DtWriteBinary ( DT_SUBTABLE *Subtable, void *Context, void *ReturnValue); static void DtDumpBuffer ( UINT32 FileId, UINT8 *Buffer, UINT32 Offset, UINT32 Length); static void DtDumpSubtableInfo ( DT_SUBTABLE *Subtable, void *Context, void *ReturnValue); static void DtDumpSubtableTree ( DT_SUBTABLE *Subtable, void *Context, void *ReturnValue); /* States for DtGetNextLine */ #define DT_NORMAL_TEXT 0 #define DT_START_QUOTED_STRING 1 #define DT_START_COMMENT 2 #define DT_SLASH_ASTERISK_COMMENT 3 #define DT_SLASH_SLASH_COMMENT 4 #define DT_END_COMMENT 5 #define DT_MERGE_LINES 6 #define DT_ESCAPE_SEQUENCE 7 static UINT32 AslGbl_NextLineOffset; /****************************************************************************** * * FUNCTION: DtTrim * * PARAMETERS: String - Current source code line to trim * * RETURN: Trimmed line. Must be freed by caller. * * DESCRIPTION: Trim left and right spaces * *****************************************************************************/ static char * DtTrim ( char *String) { char *Start; char *End; char *ReturnString; ACPI_SIZE Length; /* Skip lines that start with a space */ if (*String == 0 || !strcmp (String, " ")) { ReturnString = UtLocalCacheCalloc (1); return (ReturnString); } /* Setup pointers to start and end of input string */ Start = String; End = String + strlen (String) - 1; /* Find first non-whitespace character */ while ((Start <= End) && ((*Start == ' ') || (*Start == '\t'))) { Start++; } /* Find last non-space character */ while (End >= Start) { if (*End == '\n') { End--; continue; } if (*End != ' ') { break; } End--; } /* Remove any quotes around the string */ if (*Start == '\"') { Start++; } if (*End == '\"') { End--; } /* Create the trimmed return string */ Length = ACPI_PTR_DIFF (End, Start) + 1; ReturnString = UtLocalCacheCalloc (Length + 1); if (strlen (Start)) { memcpy (ReturnString, Start, Length); } ReturnString[Length] = 0; return (ReturnString); } /****************************************************************************** * * FUNCTION: DtParseLine * * PARAMETERS: LineBuffer - Current source code line * Line - Current line number in the source * Offset - Current byte offset of the line * * RETURN: Status * * DESCRIPTION: Parse one source line * *****************************************************************************/ static ACPI_STATUS DtParseLine ( char *LineBuffer, UINT32 Line, UINT32 Offset) { char *Start; char *End; char *TmpName; char *TmpValue; char *Name; char *Value; char *Colon; UINT32 Length; DT_FIELD *Field; UINT32 Column; UINT32 NameColumn; BOOLEAN IsNullString = FALSE; if (!LineBuffer) { return (AE_OK); } /* All lines after "Raw Table Data" are ignored */ if (strstr (LineBuffer, ACPI_RAW_TABLE_DATA_HEADER)) { return (AE_NOT_FOUND); } Colon = strchr (LineBuffer, ':'); if (!Colon) { return (AE_OK); } Start = LineBuffer; End = Colon; while (Start < Colon) { if (*Start == '[') { /* Found left bracket, go to the right bracket */ while (Start < Colon && *Start != ']') { Start++; } } else if (*Start != ' ') { break; } Start++; } /* * There are two column values. One for the field name, * and one for the field value. */ Column = ACPI_PTR_DIFF (Colon, LineBuffer) + 3; NameColumn = ACPI_PTR_DIFF (Start, LineBuffer) + 1; Length = ACPI_PTR_DIFF (End, Start); TmpName = UtLocalCalloc (Length + 1); memcpy (TmpName, Start, Length); Name = DtTrim (TmpName); ACPI_FREE (TmpName); Start = End = (Colon + 1); while (*End) { /* Found left quotation, go to the right quotation and break */ if (*End == '"') { End++; /* Check for an explicit null string */ if (*End == '"') { IsNullString = TRUE; } while (*End && (*End != '"')) { End++; } End++; break; } /* * Special "comment" fields at line end, ignore them. * Note: normal slash-slash and slash-asterisk comments are * stripped already by the DtGetNextLine parser. * * TBD: Perhaps DtGetNextLine should parse the following type * of comments also. */ if (*End == '[') { End--; break; } End++; } Length = ACPI_PTR_DIFF (End, Start); TmpValue = UtLocalCalloc (Length + 1); memcpy (TmpValue, Start, Length); Value = DtTrim (TmpValue); ACPI_FREE (TmpValue); /* Create a new field object only if we have a valid value field */ if ((Value && *Value) || IsNullString) { Field = UtFieldCacheCalloc (); Field->Name = Name; Field->Value = Value; Field->Line = Line; Field->ByteOffset = Offset; Field->NameColumn = NameColumn; Field->Column = Column; Field->StringLength = Length; DtLinkField (Field); } /* Else -- Ignore this field, it has no valid data */ return (AE_OK); } /****************************************************************************** * * FUNCTION: DtGetNextLine * * PARAMETERS: Handle - Open file handle for the source file * * RETURN: Filled line buffer and offset of start-of-line (ASL_EOF on EOF) * * DESCRIPTION: Get the next valid source line. Removes all comments. * Ignores empty lines. * * Handles both slash-asterisk and slash-slash comments. * Also, quoted strings, but no escapes within. * * Line is returned in AslGbl_CurrentLineBuffer. * Line number in original file is returned in AslGbl_CurrentLineNumber. * *****************************************************************************/ UINT32 DtGetNextLine ( FILE *Handle, UINT32 Flags) { BOOLEAN LineNotAllBlanks = FALSE; UINT32 State = DT_NORMAL_TEXT; UINT32 CurrentLineOffset; UINT32 i; int c; int c1; memset (AslGbl_CurrentLineBuffer, 0, AslGbl_LineBufferSize); for (i = 0; ;) { /* * If line is too long, expand the line buffers. Also increases * AslGbl_LineBufferSize. */ if (i >= AslGbl_LineBufferSize) { UtExpandLineBuffers (); } c = getc (Handle); if (c == EOF) { switch (State) { case DT_START_QUOTED_STRING: case DT_SLASH_ASTERISK_COMMENT: AcpiOsPrintf ("**** EOF within comment/string %u\n", State); break; default: break; } /* Standalone EOF is OK */ if (i == 0) { return (ASL_EOF); } /* * Received an EOF in the middle of a line. Terminate the * line with a newline. The next call to this function will * return a standalone EOF. Thus, the upper parsing software * never has to deal with an EOF within a valid line (or * the last line does not get tossed on the floor.) */ c = '\n'; State = DT_NORMAL_TEXT; } else if (c == '\r') { c1 = getc (Handle); if (c1 == '\n') { /* * Skip the carriage return as if it didn't exist. This is * onlt meant for input files in DOS format in unix. fopen in * unix may not support "text mode" and leaves CRLF intact. */ c = '\n'; } else { /* This was not a CRLF. Only a CR */ ungetc(c1, Handle); DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, "Carriage return without linefeed detected"); return (ASL_EOF); } } switch (State) { case DT_NORMAL_TEXT: /* Normal text, insert char into line buffer */ AslGbl_CurrentLineBuffer[i] = (char) c; switch (c) { case '/': State = DT_START_COMMENT; break; case '"': State = DT_START_QUOTED_STRING; LineNotAllBlanks = TRUE; i++; break; case '\\': /* * The continuation char MUST be last char on this line. * Otherwise, it will be assumed to be a valid ASL char. */ State = DT_MERGE_LINES; break; case '\n': CurrentLineOffset = AslGbl_NextLineOffset; AslGbl_NextLineOffset = (UINT32) ftell (Handle); AslGbl_CurrentLineNumber++; /* * Exit if line is complete. Ignore empty lines (only \n) * or lines that contain nothing but blanks. */ if ((i != 0) && LineNotAllBlanks) { if ((i + 1) >= AslGbl_LineBufferSize) { UtExpandLineBuffers (); } AslGbl_CurrentLineBuffer[i+1] = 0; /* Terminate string */ return (CurrentLineOffset); } /* Toss this line and start a new one */ i = 0; LineNotAllBlanks = FALSE; break; default: if (c != ' ') { LineNotAllBlanks = TRUE; } i++; break; } break; case DT_START_QUOTED_STRING: /* Insert raw chars until end of quoted string */ AslGbl_CurrentLineBuffer[i] = (char) c; i++; switch (c) { case '"': State = DT_NORMAL_TEXT; break; case '\\': State = DT_ESCAPE_SEQUENCE; break; case '\n': if (!(Flags & DT_ALLOW_MULTILINE_QUOTES)) { AcpiOsPrintf ( "ERROR at line %u: Unterminated quoted string\n", AslGbl_CurrentLineNumber++); State = DT_NORMAL_TEXT; } break; default: /* Get next character */ break; } break; case DT_ESCAPE_SEQUENCE: /* Just copy the escaped character. TBD: sufficient for table compiler? */ AslGbl_CurrentLineBuffer[i] = (char) c; i++; State = DT_START_QUOTED_STRING; break; case DT_START_COMMENT: /* Open comment if this character is an asterisk or slash */ switch (c) { case '*': State = DT_SLASH_ASTERISK_COMMENT; break; case '/': State = DT_SLASH_SLASH_COMMENT; break; default: /* Not a comment */ i++; /* Save the preceding slash */ if (i >= AslGbl_LineBufferSize) { UtExpandLineBuffers (); } AslGbl_CurrentLineBuffer[i] = (char) c; i++; State = DT_NORMAL_TEXT; break; } break; case DT_SLASH_ASTERISK_COMMENT: /* Ignore chars until an asterisk-slash is found */ switch (c) { case '\n': AslGbl_NextLineOffset = (UINT32) ftell (Handle); AslGbl_CurrentLineNumber++; break; case '*': State = DT_END_COMMENT; break; default: break; } break; case DT_SLASH_SLASH_COMMENT: /* Ignore chars until end-of-line */ if (c == '\n') { /* We will exit via the NORMAL_TEXT path */ ungetc (c, Handle); State = DT_NORMAL_TEXT; } break; case DT_END_COMMENT: /* End comment if this char is a slash */ switch (c) { case '/': State = DT_NORMAL_TEXT; break; case '\n': AslGbl_NextLineOffset = (UINT32) ftell (Handle); AslGbl_CurrentLineNumber++; break; case '*': /* Consume all adjacent asterisks */ break; default: State = DT_SLASH_ASTERISK_COMMENT; break; } break; case DT_MERGE_LINES: if (c != '\n') { /* * This is not a continuation backslash, it is a normal * normal ASL backslash - for example: Scope(\_SB_) */ i++; /* Keep the backslash that is already in the buffer */ ungetc (c, Handle); State = DT_NORMAL_TEXT; } else { /* * This is a continuation line -- a backlash followed * immediately by a newline. Insert a space between the * lines (overwrite the backslash) */ AslGbl_CurrentLineBuffer[i] = ' '; i++; /* Ignore newline, this will merge the lines */ AslGbl_NextLineOffset = (UINT32) ftell (Handle); AslGbl_CurrentLineNumber++; State = DT_NORMAL_TEXT; } break; default: DtFatal (ASL_MSG_COMPILER_INTERNAL, NULL, "Unknown input state"); return (ASL_EOF); } } } /****************************************************************************** * * FUNCTION: DtScanFile * * PARAMETERS: Handle - Open file handle for the source file * * RETURN: Pointer to start of the constructed parse tree. * * DESCRIPTION: Scan source file, link all field names and values * to the global parse tree: AslGbl_FieldList * *****************************************************************************/ DT_FIELD * DtScanFile ( FILE *Handle) { ACPI_STATUS Status; UINT32 Offset; ACPI_FUNCTION_NAME (DtScanFile); /* Get the file size */ AslGbl_InputByteCount = CmGetFileSize (Handle); if (AslGbl_InputByteCount == ACPI_UINT32_MAX) { AslAbort (); } AslGbl_CurrentLineNumber = 0; AslGbl_CurrentLineOffset = 0; AslGbl_NextLineOffset = 0; /* Scan line-by-line */ while ((Offset = DtGetNextLine (Handle, 0)) != ASL_EOF) { ACPI_DEBUG_PRINT ((ACPI_DB_PARSE, "Line %2.2u/%4.4X - %s", AslGbl_CurrentLineNumber, Offset, AslGbl_CurrentLineBuffer)); Status = DtParseLine (AslGbl_CurrentLineBuffer, AslGbl_CurrentLineNumber, Offset); if (Status == AE_NOT_FOUND) { break; } } /* Dump the parse tree if debug enabled */ DtDumpFieldList (AslGbl_FieldList); return (AslGbl_FieldList); } /* * Output functions */ /****************************************************************************** * * FUNCTION: DtWriteBinary * * PARAMETERS: DT_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Write one subtable of a binary ACPI table * *****************************************************************************/ static void DtWriteBinary ( DT_SUBTABLE *Subtable, void *Context, void *ReturnValue) { FlWriteFile (ASL_FILE_AML_OUTPUT, Subtable->Buffer, Subtable->Length); } /****************************************************************************** * * FUNCTION: DtOutputBinary * * PARAMETERS: * * RETURN: Status * * DESCRIPTION: Write entire binary ACPI table (result of compilation) * *****************************************************************************/ void DtOutputBinary ( DT_SUBTABLE *RootTable) { if (!RootTable) { return; } /* Walk the entire parse tree, emitting the binary data */ DtWalkTableTree (RootTable, DtWriteBinary, NULL, NULL); AslGbl_TableLength = CmGetFileSize (AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle); if (AslGbl_TableLength == ACPI_UINT32_MAX) { AslAbort (); } } /* * Listing support */ /****************************************************************************** * * FUNCTION: DtDumpBuffer * * PARAMETERS: FileID - Where to write buffer data * Buffer - Buffer to dump * Offset - Offset in current table * Length - Buffer Length * * RETURN: None * * DESCRIPTION: Another copy of DumpBuffer routine (unfortunately). * * TBD: merge dump buffer routines * *****************************************************************************/ static void DtDumpBuffer ( UINT32 FileId, UINT8 *Buffer, UINT32 Offset, UINT32 Length) { UINT32 i; UINT32 j; UINT8 BufChar; FlPrintFile (FileId, "Output: [%3.3Xh %4.4d %3.3Xh] ", Offset, Offset, Length); i = 0; while (i < Length) { if (i >= 16) { FlPrintFile (FileId, "%24s", ""); } /* Print 16 hex chars */ for (j = 0; j < 16;) { if (i + j >= Length) { /* Dump fill spaces */ FlPrintFile (FileId, " "); j++; continue; } FlPrintFile (FileId, "%02X ", Buffer[i+j]); j++; } FlPrintFile (FileId, " "); for (j = 0; j < 16; j++) { if (i + j >= Length) { FlPrintFile (FileId, "\n\n"); return; } BufChar = Buffer[(ACPI_SIZE) i + j]; if (isprint (BufChar)) { FlPrintFile (FileId, "%c", BufChar); } else { FlPrintFile (FileId, "."); } } /* Done with that line. */ FlPrintFile (FileId, "\n"); i += 16; } FlPrintFile (FileId, "\n\n"); } /****************************************************************************** * * FUNCTION: DtDumpFieldList * * PARAMETERS: Field - Root field * * RETURN: None * * DESCRIPTION: Dump the entire field list * *****************************************************************************/ void DtDumpFieldList ( DT_FIELD *Field) { if (!AslGbl_DebugFlag || !Field) { return; } DbgPrint (ASL_DEBUG_OUTPUT, "\nField List:\n" "LineNo ByteOff NameCol Column TableOff " "Flags %32s : %s\n\n", "Name", "Value"); while (Field) { DbgPrint (ASL_DEBUG_OUTPUT, "%.08X %.08X %.08X %.08X %.08X %2.2X %32s : %s\n", Field->Line, Field->ByteOffset, Field->NameColumn, Field->Column, Field->TableOffset, Field->Flags, Field->Name, Field->Value); Field = Field->Next; } DbgPrint (ASL_DEBUG_OUTPUT, "\n\n"); } /****************************************************************************** * * FUNCTION: DtDumpSubtableInfo, DtDumpSubtableTree * * PARAMETERS: DT_WALK_CALLBACK * * RETURN: None * * DESCRIPTION: Info - dump a subtable tree entry with extra information. * Tree - dump a subtable tree formatted by depth indentation. * *****************************************************************************/ static void DtDumpSubtableInfo ( DT_SUBTABLE *Subtable, void *Context, void *ReturnValue) { DbgPrint (ASL_DEBUG_OUTPUT, "[%.04X] %24s %.08X %.08X %.08X %.08X %p %p %p %p\n", Subtable->Depth, Subtable->Name, Subtable->Length, Subtable->TotalLength, Subtable->SizeOfLengthField, Subtable->Flags, Subtable, Subtable->Parent, Subtable->Child, Subtable->Peer); } static void DtDumpSubtableTree ( DT_SUBTABLE *Subtable, void *Context, void *ReturnValue) { DbgPrint (ASL_DEBUG_OUTPUT, "[%.04X] %24s %*s%p (%.02X) - (%.02X) %.02X\n", Subtable->Depth, Subtable->Name, (4 * Subtable->Depth), " ", Subtable, Subtable->Length, Subtable->TotalLength, *Subtable->Buffer); } /****************************************************************************** * * FUNCTION: DtDumpSubtableList * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Dump the raw list of subtables with information, and also * dump the subtable list in formatted tree format. Assists with * the development of new table code. * *****************************************************************************/ void DtDumpSubtableList ( void) { if (!AslGbl_DebugFlag || !AslGbl_RootTable) { return; } DbgPrint (ASL_DEBUG_OUTPUT, "Subtable Info:\n" "Depth Name Length TotalLen LenSize Flags " "This Parent Child Peer\n\n"); DtWalkTableTree (AslGbl_RootTable, DtDumpSubtableInfo, NULL, NULL); DbgPrint (ASL_DEBUG_OUTPUT, "\nSubtable Tree: (Depth, Name, Subtable, Length, TotalLength, Integer Value)\n\n"); DtWalkTableTree (AslGbl_RootTable, DtDumpSubtableTree, NULL, NULL); DbgPrint (ASL_DEBUG_OUTPUT, "\n"); } /****************************************************************************** * * FUNCTION: DtWriteFieldToListing * * PARAMETERS: Buffer - Contains the compiled data * Field - Field node for the input line * Length - Length of the output data * * RETURN: None * * DESCRIPTION: Write one field to the listing file (if listing is enabled). * *****************************************************************************/ void DtWriteFieldToListing ( UINT8 *Buffer, DT_FIELD *Field, UINT32 Length) { UINT8 FileByte; if (!AslGbl_ListingFlag || !Field) { return; } /* Dump the original source line */ FlPrintFile (ASL_FILE_LISTING_OUTPUT, "Input: "); FlSeekFile (ASL_FILE_INPUT, Field->ByteOffset); while (FlReadFile (ASL_FILE_INPUT, &FileByte, 1) == AE_OK) { FlWriteFile (ASL_FILE_LISTING_OUTPUT, &FileByte, 1); if (FileByte == '\n') { break; } } /* Dump the line as parsed and represented internally */ FlPrintFile (ASL_FILE_LISTING_OUTPUT, "Parsed: %*s : %.64s", Field->Column-4, Field->Name, Field->Value); if (strlen (Field->Value) > 64) { FlPrintFile (ASL_FILE_LISTING_OUTPUT, "...Additional data, length 0x%X\n", (UINT32) strlen (Field->Value)); } FlPrintFile (ASL_FILE_LISTING_OUTPUT, "\n"); /* Dump the hex data that will be output for this field */ DtDumpBuffer (ASL_FILE_LISTING_OUTPUT, Buffer, Field->TableOffset, Length); } /****************************************************************************** * * FUNCTION: DtWriteTableToListing * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Write the entire compiled table to the listing file * in hex format * *****************************************************************************/ void DtWriteTableToListing ( void) { UINT8 *Buffer; if (!AslGbl_ListingFlag) { return; } /* Read the entire table from the output file */ Buffer = UtLocalCalloc (AslGbl_TableLength); FlSeekFile (ASL_FILE_AML_OUTPUT, 0); FlReadFile (ASL_FILE_AML_OUTPUT, Buffer, AslGbl_TableLength); /* Dump the raw table data */ AcpiOsRedirectOutput (AslGbl_Files[ASL_FILE_LISTING_OUTPUT].Handle); AcpiOsPrintf ("\n%s: Length %d (0x%X)\n\n", ACPI_RAW_TABLE_DATA_HEADER, AslGbl_TableLength, AslGbl_TableLength); AcpiUtDumpBuffer (Buffer, AslGbl_TableLength, DB_BYTE_DISPLAY, 0); AcpiOsRedirectOutput (stdout); ACPI_FREE (Buffer); } acpica-unix-20250404/source/compiler/aslsupport.l0000775000175000017500000006016114773714131021247 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslsupport.l - Flex/lex scanner C support routines. * NOTE: Included into aslcompile.l, not compiled by itself. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* Configuration */ #define ASL_SPACES_PER_TAB 4 #define ASL_NORMAL_CHAR 0 #define ASL_ESCAPE_SEQUENCE 1 #define ASL_OCTAL_CONSTANT 2 #define ASL_HEX_CONSTANT 3 void yyerror (char const *s) { AcpiOsPrintf ("YYERROR: %s\n", s); } /******************************************************************************* * * FUNCTION: AslParserCleanup * * Used to delete the current buffer * ******************************************************************************/ void AslParserCleanup ( void) { yy_delete_buffer (YY_CURRENT_BUFFER); } /******************************************************************************* * * FUNCTION: AslDoLineDirective * * PARAMETERS: None. Uses input() to access current source code line * * RETURN: Updates global line number and filename * * DESCRIPTION: Handle #line directives emitted by the preprocessor. * * The #line directive is emitted by the preprocessor, and is used to * pass through line numbers from the original source code file to the * preprocessor output file (.i). This allows any compiler-generated * error messages to be displayed with the correct line number. * ******************************************************************************/ static void AslDoLineDirective ( void) { int c; char *Token; UINT32 LineNumber; char *Filename; UINT32 i; AslGbl_HasIncludeFiles = TRUE; /* Eat the entire line that contains the #line directive */ AslGbl_LineBufPtr = AslGbl_CurrentLineBuffer; while ((c = input()) != '\n' && c != EOF) { *AslGbl_LineBufPtr = (char) c; AslGbl_LineBufPtr++; } *AslGbl_LineBufPtr = 0; /* First argument is the actual line number */ Token = strtok (AslGbl_CurrentLineBuffer, " "); if (!Token) { goto ResetAndExit; } /* First argument is the line number */ LineNumber = (UINT32) UtDoConstant (Token); /* Emit the appropriate number of newlines */ AslGbl_CurrentColumn = 0; if (LineNumber > AslGbl_CurrentLineNumber) { for (i = 0; i < (LineNumber - AslGbl_CurrentLineNumber); i++) { FlWriteFile (ASL_FILE_SOURCE_OUTPUT, "\n", 1); AslGbl_CurrentColumn++; } } FlSetLineNumber (LineNumber); /* Second argument is the optional filename (in double quotes) */ Token = strtok (NULL, " \""); if (Token) { Filename = UtLocalCacheCalloc (strlen (Token) + 1); strcpy (Filename, Token); FlSetFilename (Filename); } /* Third argument is not supported at this time */ ResetAndExit: /* Reset globals for a new line */ AslGbl_CurrentLineOffset += AslGbl_CurrentColumn; AslGbl_CurrentColumn = 0; AslGbl_LineBufPtr = AslGbl_CurrentLineBuffer; } /******************************************************************************* * * FUNCTION: AslPopInputFileStack * * PARAMETERS: None * * RETURN: 0 if a node was popped, -1 otherwise * * DESCRIPTION: Pop the top of the input file stack and point the parser to * the saved parse buffer contained in the fnode. Also, set the * global line counters to the saved values. This function is * called when an include file reaches EOF. * ******************************************************************************/ int AslPopInputFileStack ( void) { ASL_FILE_NODE *Fnode; AslGbl_PreviousIncludeFilename = AslGbl_Files[ASL_FILE_INPUT].Filename; Fnode = AslGbl_IncludeFileStack; DbgPrint (ASL_PARSE_OUTPUT, "\nPop InputFile Stack, Fnode %p\n", Fnode); DbgPrint (ASL_PARSE_OUTPUT, "Include: Closing \"%s\"\n\n", AslGbl_Files[ASL_FILE_INPUT].Filename); if (!Fnode) { return (-1); } /* Close the current include file */ fclose (yyin); /* Update the top-of-stack */ AslGbl_IncludeFileStack = Fnode->Next; /* Reset global line counter and filename */ AslGbl_Files[ASL_FILE_INPUT].Filename = Fnode->Filename; AslGbl_CurrentLineNumber = Fnode->CurrentLineNumber; /* Point the parser to the popped file */ yy_delete_buffer (YY_CURRENT_BUFFER); yy_switch_to_buffer (Fnode->State); /* All done with this node */ ACPI_FREE (Fnode); return (0); } /******************************************************************************* * * FUNCTION: AslPushInputFileStack * * PARAMETERS: InputFile - Open file pointer * Filename - Name of the file * * RETURN: None * * DESCRIPTION: Push the InputFile onto the file stack, and point the parser * to this file. Called when an include file is successfully * opened. * ******************************************************************************/ void AslPushInputFileStack ( FILE *InputFile, char *Filename) { ASL_FILE_NODE *Fnode; YY_BUFFER_STATE State; /* Save the current state in an Fnode */ Fnode = UtLocalCalloc (sizeof (ASL_FILE_NODE)); Fnode->File = yyin; Fnode->Next = AslGbl_IncludeFileStack; Fnode->State = YY_CURRENT_BUFFER; Fnode->Filename = AslGbl_Files[ASL_FILE_INPUT].Filename; Fnode->CurrentLineNumber = AslGbl_CurrentLineNumber; /* Push it on the stack */ AslGbl_IncludeFileStack = Fnode; /* Point the parser to this file */ State = yy_create_buffer (InputFile, YY_BUF_SIZE); yy_switch_to_buffer (State); DbgPrint (ASL_PARSE_OUTPUT, "\nPush InputFile Stack, returning %p\n\n", InputFile); /* Reset the global line count and filename */ AslGbl_Files[ASL_FILE_INPUT].Filename = UtLocalCacheCalloc (strlen (Filename) + 1); strcpy (AslGbl_Files[ASL_FILE_INPUT].Filename, Filename); AslGbl_CurrentLineNumber = 1; yyin = InputFile; /* converter: reset the comment state to STANDARD_COMMENT */ AslGbl_CommentState.CommentType = STANDARD_COMMENT; } /******************************************************************************* * * FUNCTION: AslResetCurrentLineBuffer * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Reset the Line Buffer to zero, increment global line numbers. * ******************************************************************************/ void AslResetCurrentLineBuffer ( void) { if (AslGbl_Files[ASL_FILE_SOURCE_OUTPUT].Handle) { FlWriteFile (ASL_FILE_SOURCE_OUTPUT, AslGbl_CurrentLineBuffer, AslGbl_LineBufPtr - AslGbl_CurrentLineBuffer); } AslGbl_CurrentLineOffset += AslGbl_CurrentColumn; AslGbl_CurrentColumn = 0; AslGbl_CurrentLineNumber++; AslGbl_LogicalLineNumber++; AslGbl_LineBufPtr = AslGbl_CurrentLineBuffer; } /******************************************************************************* * * FUNCTION: AslInsertLineBuffer * * PARAMETERS: SourceChar - One char from the input ASL source file * * RETURN: None * * DESCRIPTION: Put one character of the source file into the temp line buffer * ******************************************************************************/ void AslInsertLineBuffer ( int SourceChar) { UINT32 i; UINT32 Count = 1; if (SourceChar == EOF) { return; } AslGbl_InputByteCount++; /* Handle tabs. Convert to spaces */ if (SourceChar == '\t') { SourceChar = ' '; Count = ASL_SPACES_PER_TAB - (AslGbl_CurrentColumn & (ASL_SPACES_PER_TAB-1)); } for (i = 0; i < Count; i++) { AslGbl_CurrentColumn++; /* Insert the character into the line buffer */ *AslGbl_LineBufPtr = (UINT8) SourceChar; AslGbl_LineBufPtr++; if (AslGbl_LineBufPtr > (AslGbl_CurrentLineBuffer + (AslGbl_LineBufferSize - 1))) { #if 0 /* * Warning if we have split a long source line. * */ sprintf (MsgBuffer, "Max %u", AslGbl_LineBufferSize); AslCommonError (ASL_WARNING, ASL_MSG_LONG_LINE, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, MsgBuffer); #endif AslResetCurrentLineBuffer (); } else if (SourceChar == '\n') { /* End of line */ AslResetCurrentLineBuffer (); } if (AcpiGbl_CaptureComments) { CvProcessCommentState ((char) SourceChar); } } } /******************************************************************************* * * FUNCTION: count * * PARAMETERS: yytext - Contains the matched keyword. * Type - Keyword/Character type: * 0 = anything except a keyword * 1 = pseudo-keywords * 2 = non-executable ASL keywords * 3 = executable ASL keywords * * RETURN: None * * DESCRIPTION: Count keywords and put them into the line buffer * ******************************************************************************/ static void count ( int Type) { char *p; switch (Type) { case 2: ++AslGbl_TotalKeywords; ++AslGbl_TotalNamedObjects; ++AslGbl_FilesList->TotalKeywords; ++AslGbl_FilesList->TotalNamedObjects; break; case 3: ++AslGbl_TotalKeywords; ++AslGbl_TotalExecutableOpcodes; ++AslGbl_FilesList->TotalKeywords; ++AslGbl_FilesList->TotalExecutableOpcodes; break; default: break; } for (p = yytext; *p != '\0'; p++) { AslInsertLineBuffer (*p); *AslGbl_LineBufPtr = 0; } } /******************************************************************************* * * FUNCTION: AslDoComment * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Process a standard comment. * ******************************************************************************/ static BOOLEAN AslDoComment ( void) { int c; int c1 = 0; char *StringBuffer = AslGbl_MsgBuffer; char *EndBuffer = AslGbl_MsgBuffer + ASL_MSG_BUFFER_SIZE; ASL_COMMENT_STATE CurrentState = AslGbl_CommentState; /* to reference later on */ AslInsertLineBuffer ('/'); AslInsertLineBuffer ('*'); if (AcpiGbl_CaptureComments && CurrentState.CaptureComments) { *StringBuffer = '/'; ++StringBuffer; *StringBuffer = '*'; ++StringBuffer; } loop: /* Eat chars until end-of-comment */ while (((c = input ()) != '*') && (c != EOF)) { AslInsertLineBuffer (c); if (AcpiGbl_CaptureComments && CurrentState.CaptureComments) { *StringBuffer = (char) c; ++StringBuffer; } c1 = c; } if (c == EOF) { goto EarlyEOF; } /* * Check for nested comment -- can help catch cases where a previous * comment was accidentally left unterminated */ if ((c1 == '/') && (c == '*')) { AslCommonError (ASL_WARNING, ASL_MSG_NESTED_COMMENT, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_InputByteCount, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, NULL); } /* Comment is closed only if the NEXT character is a slash */ AslInsertLineBuffer (c); if (AcpiGbl_CaptureComments && CurrentState.CaptureComments) { *StringBuffer = (char) c; ++StringBuffer; } if (((c1 = input ()) != '/') && (c1 != EOF)) { unput (c1); goto loop; } if (c1 == EOF) { goto EarlyEOF; } if (StringBuffer > EndBuffer) { goto BufferOverflow; } AslInsertLineBuffer (c1); CvProcessComment (CurrentState, StringBuffer, c1); return (TRUE); EarlyEOF: /* * Premature End-Of-File */ AslCommonError (ASL_ERROR, ASL_MSG_EARLY_EOF, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, NULL); return (FALSE); BufferOverflow: /* Comment was too long */ AslCommonError (ASL_ERROR, ASL_MSG_STRING_LENGTH, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, "Max length 4096"); return (FALSE); } /******************************************************************************* * * FUNCTION: AslDoCommentType2 * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Process a new "//" comment. Inline comments will be converted * to "/ *" standard comments. * ******************************************************************************/ static BOOLEAN AslDoCommentType2 ( void) { int c; char *StringBuffer = AslGbl_MsgBuffer; char *EndBuffer = AslGbl_MsgBuffer + ASL_MSG_BUFFER_SIZE; ASL_COMMENT_STATE CurrentState = AslGbl_CommentState; AslInsertLineBuffer ('/'); if (AcpiGbl_CaptureComments && CurrentState.CaptureComments) { AslInsertLineBuffer ('*'); *StringBuffer = '/'; ++StringBuffer; *StringBuffer = '*'; ++StringBuffer; } else { AslInsertLineBuffer ('/'); } while (((c = input ()) != '\n') && (c != EOF)) { AslInsertLineBuffer (c); if (AcpiGbl_CaptureComments && CurrentState.CaptureComments) { *StringBuffer = (char) c; ++StringBuffer; } } if (c == EOF) { /* End of file is OK, change to newline. Let parser detect EOF later */ c = '\n'; } if (StringBuffer > EndBuffer) { goto BufferOverflow; } AslInsertLineBuffer (c); CvProcessCommentType2 (CurrentState, StringBuffer); return (TRUE); BufferOverflow: /* Comment was too long */ AslCommonError (ASL_ERROR, ASL_MSG_STRING_LENGTH, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, "Max length 4096"); return (FALSE); } /******************************************************************************* * * FUNCTION: AslDoStringLiteral * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Process a string literal (surrounded by quotes) * ******************************************************************************/ static char AslDoStringLiteral ( void) { char *StringBuffer = AslGbl_MsgBuffer; char *EndBuffer = AslGbl_MsgBuffer + ASL_MSG_BUFFER_SIZE; char *CleanString; int StringChar; UINT32 State = ASL_NORMAL_CHAR; UINT32 i = 0; UINT8 Digit; char ConvertBuffer[4]; /* * Eat chars until end-of-literal. * NOTE: Put back the original surrounding quotes into the * source line buffer. */ AslInsertLineBuffer ('\"'); while ((StringChar = input()) != EOF) { AslInsertLineBuffer (StringChar); DoCharacter: switch (State) { case ASL_NORMAL_CHAR: switch (StringChar) { case '\\': /* * Special handling for backslash-escape sequence. We will * toss the backslash and translate the escape char(s). */ State = ASL_ESCAPE_SEQUENCE; continue; case '\"': /* String terminator */ goto CompletedString; default: break; } break; case ASL_ESCAPE_SEQUENCE: State = ASL_NORMAL_CHAR; switch (StringChar) { case 'a': StringChar = 0x07; /* BELL */ break; case 'b': StringChar = 0x08; /* BACKSPACE */ break; case 'f': StringChar = 0x0C; /* FORMFEED */ break; case 'n': StringChar = 0x0A; /* LINEFEED */ break; case 'r': StringChar = 0x0D; /* CARRIAGE RETURN*/ break; case 't': StringChar = 0x09; /* HORIZONTAL TAB */ break; case 'v': StringChar = 0x0B; /* VERTICAL TAB */ break; case 'x': State = ASL_HEX_CONSTANT; i = 0; continue; case '\'': /* Single Quote */ case '\"': /* Double Quote */ case '\\': /* Backslash */ break; default: /* Check for an octal digit (0-7) */ if (ACPI_IS_OCTAL_DIGIT (StringChar)) { State = ASL_OCTAL_CONSTANT; ConvertBuffer[0] = (char) StringChar; i = 1; continue; } /* Unknown escape sequence issue warning, but use the character */ AslCommonError (ASL_WARNING, ASL_MSG_INVALID_ESCAPE, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, NULL); break; } break; case ASL_OCTAL_CONSTANT: /* Up to three octal digits allowed */ if (!ACPI_IS_OCTAL_DIGIT (StringChar) || (i > 2)) { /* * Reached end of the constant. Convert the assembled ASCII * string and resume processing of the next character */ ConvertBuffer[i] = 0; Digit = (UINT8) strtoul (ConvertBuffer, NULL, 8); /* Check for NULL or non-ascii character (ignore if so) */ if ((Digit == 0) || (Digit > ACPI_ASCII_MAX)) { AslCommonError (ASL_WARNING, ASL_MSG_INVALID_STRING, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, NULL); } else { *StringBuffer = (char) Digit; StringBuffer++; if (StringBuffer >= EndBuffer) { goto BufferOverflow; } } State = ASL_NORMAL_CHAR; goto DoCharacter; break; } /* Append another digit of the constant */ ConvertBuffer[i] = (char) StringChar; i++; continue; case ASL_HEX_CONSTANT: /* Up to two hex digits allowed */ if (!isxdigit (StringChar) || (i > 1)) { /* * Reached end of the constant. Convert the assembled ASCII * string and resume processing of the next character */ ConvertBuffer[i] = 0; Digit = (UINT8) strtoul (ConvertBuffer, NULL, 16); /* Check for NULL or non-ascii character (ignore if so) */ if ((Digit == 0) || (Digit > ACPI_ASCII_MAX)) { AslCommonError (ASL_WARNING, ASL_MSG_INVALID_STRING, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, NULL); } else { *StringBuffer = (char) Digit; StringBuffer++; if (StringBuffer >= EndBuffer) { goto BufferOverflow; } } State = ASL_NORMAL_CHAR; goto DoCharacter; break; } /* Append another digit of the constant */ ConvertBuffer[i] = (char) StringChar; i++; continue; default: break; } /* Save the finished character */ *StringBuffer = (char) StringChar; StringBuffer++; if (StringBuffer >= EndBuffer) { goto BufferOverflow; } } /* * Premature End-Of-File */ AslCommonError (ASL_ERROR, ASL_MSG_EARLY_EOF, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, NULL); return (FALSE); CompletedString: /* * Null terminate the input string and copy string to a new buffer */ *StringBuffer = 0; CleanString = UtLocalCacheCalloc (strlen (AslGbl_MsgBuffer) + 1); strcpy (CleanString, AslGbl_MsgBuffer); AslCompilerlval.s = CleanString; return (TRUE); BufferOverflow: /* Literal was too long */ AslCommonError (ASL_ERROR, ASL_MSG_STRING_LENGTH, AslGbl_CurrentLineNumber, AslGbl_LogicalLineNumber, AslGbl_CurrentLineOffset, AslGbl_CurrentColumn, AslGbl_Files[ASL_FILE_INPUT].Filename, "Max length 4096"); return (FALSE); } acpica-unix-20250404/source/compiler/aslprintf.c0000775000175000017500000002565414773714131021034 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslprintf - ASL Printf/Fprintf macro support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslprintf") /* Local prototypes */ static void OpcCreateConcatenateNode ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *Node); static void OpcParsePrintf ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *DestOp); /******************************************************************************* * * FUNCTION: OpcDoPrintf * * PARAMETERS: Op - printf parse node * * RETURN: None * * DESCRIPTION: Convert printf macro to a Store(..., Debug) AML operation. * ******************************************************************************/ void OpcDoPrintf ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *DestOp; /* Store destination is the Debug op */ DestOp = TrAllocateOp (PARSEOP_DEBUG); DestOp->Asl.AmlOpcode = AML_DEBUG_OP; DestOp->Asl.Parent = Op; DestOp->Asl.LogicalLineNumber = Op->Asl.LogicalLineNumber; OpcParsePrintf (Op, DestOp); } /******************************************************************************* * * FUNCTION: OpcDoFprintf * * PARAMETERS: Op - fprintf parse node * * RETURN: None * * DESCRIPTION: Convert fprintf macro to a Store AML operation. * ******************************************************************************/ void OpcDoFprintf ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *DestOp; /* Store destination is the first argument of fprintf */ DestOp = Op->Asl.Child; Op->Asl.Child = DestOp->Asl.Next; DestOp->Asl.Next = NULL; OpcParsePrintf (Op, DestOp); } /******************************************************************************* * * FUNCTION: OpcParsePrintf * * PARAMETERS: Op - Printf parse node * DestOp - Destination of Store operation * * RETURN: None * * DESCRIPTION: Convert printf macro to a Store AML operation. The printf * macro parse tree is laid out as follows: * * Op - printf parse op * Op->Child - Format string * Op->Next - Format string arguments * ******************************************************************************/ static void OpcParsePrintf ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *DestOp) { char *Format; char *StartPosition = NULL; ACPI_PARSE_OBJECT *ArgNode; ACPI_PARSE_OBJECT *NextNode; UINT32 StringLength = 0; char *NewString; BOOLEAN StringToProcess = FALSE; ACPI_PARSE_OBJECT *NewOp; /* Get format string */ Format = ACPI_CAST_PTR (char, Op->Asl.Child->Asl.Value.String); ArgNode = Op->Asl.Child->Asl.Next; /* * Detach argument list so that we can use a NULL check to distinguish * the first concatenation operation we need to make */ Op->Asl.Child = NULL; for (; *Format; ++Format) { if (*Format != '%') { if (!StringToProcess) { /* Mark the beginning of a string */ StartPosition = Format; StringToProcess = TRUE; } ++StringLength; continue; } /* Save string, if any, to new string object and concat it */ if (StringToProcess) { NewString = UtLocalCacheCalloc (StringLength + 1); memcpy (NewString, StartPosition, StringLength); NewOp = TrAllocateOp (PARSEOP_STRING_LITERAL); NewOp->Asl.Value.String = NewString; NewOp->Asl.AmlOpcode = AML_STRING_OP; NewOp->Asl.AcpiBtype = ACPI_BTYPE_STRING; NewOp->Asl.LogicalLineNumber = Op->Asl.LogicalLineNumber; OpcCreateConcatenateNode(Op, NewOp); StringLength = 0; StringToProcess = FALSE; } ++Format; /* * We have a format parameter and will need an argument to go * with it */ if (!ArgNode || ArgNode->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { AslError(ASL_ERROR, ASL_MSG_ARG_COUNT_LO, Op, NULL); return; } /* * We do not support sub-specifiers of printf (flags, width, * precision, length). For specifiers we only support %x/%X for * hex or %s for strings. Also, %o for generic "acpi object". */ switch (*Format) { case 's': if (ArgNode->Asl.ParseOpcode != PARSEOP_STRING_LITERAL) { AslError(ASL_ERROR, ASL_MSG_INVALID_TYPE, ArgNode, "String required"); return; } NextNode = ArgNode->Asl.Next; ArgNode->Asl.Next = NULL; OpcCreateConcatenateNode(Op, ArgNode); ArgNode = NextNode; continue; case 'X': case 'x': case 'o': NextNode = ArgNode->Asl.Next; ArgNode->Asl.Next = NULL; /* * Append an empty string if the first argument is * not a string. This will implicitly convert the 2nd * concat source to a string per the ACPI specification. */ if (!Op->Asl.Child) { NewOp = TrAllocateOp (PARSEOP_STRING_LITERAL); NewOp->Asl.Value.String = ""; NewOp->Asl.AmlOpcode = AML_STRING_OP; NewOp->Asl.AcpiBtype = ACPI_BTYPE_STRING; NewOp->Asl.LogicalLineNumber = Op->Asl.LogicalLineNumber; OpcCreateConcatenateNode(Op, NewOp); } OpcCreateConcatenateNode(Op, ArgNode); ArgNode = NextNode; break; default: AslError(ASL_ERROR, ASL_MSG_INVALID_OPERAND, Op, "Unrecognized format specifier"); continue; } } /* Process any remaining string */ if (StringToProcess) { NewString = UtLocalCacheCalloc (StringLength + 1); memcpy (NewString, StartPosition, StringLength); NewOp = TrAllocateOp (PARSEOP_STRING_LITERAL); NewOp->Asl.Value.String = NewString; NewOp->Asl.AcpiBtype = ACPI_BTYPE_STRING; NewOp->Asl.AmlOpcode = AML_STRING_OP; NewOp->Asl.LogicalLineNumber = Op->Asl.LogicalLineNumber; OpcCreateConcatenateNode(Op, NewOp); } /* * If we get here and there's no child node then Format * was an empty string. Just make a no op. */ if (!Op->Asl.Child) { Op->Asl.ParseOpcode = PARSEOP_NOOP; AslError(ASL_WARNING, ASL_MSG_NULL_STRING, Op, "Converted to NOOP"); return; } /* Check for erroneous extra arguments */ if (ArgNode && ArgNode->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { AslError(ASL_WARNING, ASL_MSG_ARG_COUNT_HI, ArgNode, "Extra arguments ignored"); } /* Change Op to a Store */ Op->Asl.ParseOpcode = PARSEOP_STORE; Op->Common.AmlOpcode = AML_STORE_OP; Op->Asl.CompileFlags = 0; /* Disable further optimization */ Op->Asl.CompileFlags &= ~OP_COMPILE_TIME_CONST; UtSetParseOpName (Op); /* Set Store destination */ Op->Asl.Child->Asl.Next = DestOp; } /******************************************************************************* * * FUNCTION: OpcCreateConcatenateNode * * PARAMETERS: Op - Parse node * Node - Parse node to be concatenated * * RETURN: None * * DESCRIPTION: Make Node the child of Op. If child node already exists, then * concat child with Node and makes concat node the child of Op. * ******************************************************************************/ static void OpcCreateConcatenateNode ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *Node) { ACPI_PARSE_OBJECT *NewConcatOp; if (!Op->Asl.Child) { Op->Asl.Child = Node; Node->Asl.Parent = Op; return; } NewConcatOp = TrAllocateOp (PARSEOP_CONCATENATE); NewConcatOp->Asl.AmlOpcode = AML_CONCATENATE_OP; NewConcatOp->Asl.AcpiBtype = 0x7; NewConcatOp->Asl.LogicalLineNumber = Op->Asl.LogicalLineNumber; /* First arg is child of Op*/ NewConcatOp->Asl.Child = Op->Asl.Child; Op->Asl.Child->Asl.Parent = NewConcatOp; /* Second arg is Node */ NewConcatOp->Asl.Child->Asl.Next = Node; Node->Asl.Parent = NewConcatOp; /* Third arg is Zero (not used) */ NewConcatOp->Asl.Child->Asl.Next->Asl.Next = TrAllocateOp (PARSEOP_ZERO); NewConcatOp->Asl.Child->Asl.Next->Asl.Next->Asl.Parent = NewConcatOp; Op->Asl.Child = NewConcatOp; NewConcatOp->Asl.Parent = Op; } acpica-unix-20250404/source/compiler/aslkeywords.y0000775000175000017500000005017314773714131021421 0ustar ivanhuivanhuNoEcho(' /****************************************************************************** * * Module Name: aslkeywords.y - Rules for resource descriptor keywords * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ ') /******************************************************************************* * * ASL Parameter Keyword Terms * ******************************************************************************/ AccessAttribKeyword : PARSEOP_ACCESSATTRIB_BLOCK {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_BLOCK);} | PARSEOP_ACCESSATTRIB_BLOCK_CALL {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_BLOCK_CALL);} | PARSEOP_ACCESSATTRIB_BYTE {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_BYTE);} | PARSEOP_ACCESSATTRIB_QUICK {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_QUICK );} | PARSEOP_ACCESSATTRIB_SND_RCV {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_SND_RCV);} | PARSEOP_ACCESSATTRIB_WORD {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_WORD);} | PARSEOP_ACCESSATTRIB_WORD_CALL {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_WORD_CALL);} | PARSEOP_ACCESSATTRIB_BYTES PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_BYTES);} ByteConst PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_ACCESSATTRIB_RAW_BYTES PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_RAW_BYTES);} ByteConst PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} | PARSEOP_ACCESSATTRIB_RAW_PROCESS PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_ACCESSATTRIB_RAW_PROCESS);} ByteConst PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($3,1,$4);} ; AccessTypeKeyword : PARSEOP_ACCESSTYPE_ANY {$$ = TrCreateLeafOp (PARSEOP_ACCESSTYPE_ANY);} | PARSEOP_ACCESSTYPE_BYTE {$$ = TrCreateLeafOp (PARSEOP_ACCESSTYPE_BYTE);} | PARSEOP_ACCESSTYPE_WORD {$$ = TrCreateLeafOp (PARSEOP_ACCESSTYPE_WORD);} | PARSEOP_ACCESSTYPE_DWORD {$$ = TrCreateLeafOp (PARSEOP_ACCESSTYPE_DWORD);} | PARSEOP_ACCESSTYPE_QWORD {$$ = TrCreateLeafOp (PARSEOP_ACCESSTYPE_QWORD);} | PARSEOP_ACCESSTYPE_BUF {$$ = TrCreateLeafOp (PARSEOP_ACCESSTYPE_BUF);} ; AddressingModeKeyword : PARSEOP_ADDRESSINGMODE_7BIT {$$ = TrCreateLeafOp (PARSEOP_ADDRESSINGMODE_7BIT);} | PARSEOP_ADDRESSINGMODE_10BIT {$$ = TrCreateLeafOp (PARSEOP_ADDRESSINGMODE_10BIT);} ; AddressKeyword : PARSEOP_ADDRESSTYPE_MEMORY {$$ = TrCreateLeafOp (PARSEOP_ADDRESSTYPE_MEMORY);} | PARSEOP_ADDRESSTYPE_RESERVED {$$ = TrCreateLeafOp (PARSEOP_ADDRESSTYPE_RESERVED);} | PARSEOP_ADDRESSTYPE_NVS {$$ = TrCreateLeafOp (PARSEOP_ADDRESSTYPE_NVS);} | PARSEOP_ADDRESSTYPE_ACPI {$$ = TrCreateLeafOp (PARSEOP_ADDRESSTYPE_ACPI);} ; AddressSpaceKeyword : ByteConst {$$ = UtCheckIntegerRange ($1, ACPI_NUM_PREDEFINED_REGIONS, 0xFF);} | RegionSpaceKeyword {} ; BitsPerByteKeyword : PARSEOP_BITSPERBYTE_FIVE {$$ = TrCreateLeafOp (PARSEOP_BITSPERBYTE_FIVE);} | PARSEOP_BITSPERBYTE_SIX {$$ = TrCreateLeafOp (PARSEOP_BITSPERBYTE_SIX);} | PARSEOP_BITSPERBYTE_SEVEN {$$ = TrCreateLeafOp (PARSEOP_BITSPERBYTE_SEVEN);} | PARSEOP_BITSPERBYTE_EIGHT {$$ = TrCreateLeafOp (PARSEOP_BITSPERBYTE_EIGHT);} | PARSEOP_BITSPERBYTE_NINE {$$ = TrCreateLeafOp (PARSEOP_BITSPERBYTE_NINE);} ; ClockPhaseKeyword : PARSEOP_CLOCKPHASE_FIRST {$$ = TrCreateLeafOp (PARSEOP_CLOCKPHASE_FIRST);} | PARSEOP_CLOCKPHASE_SECOND {$$ = TrCreateLeafOp (PARSEOP_CLOCKPHASE_SECOND);} ; ClockPolarityKeyword : PARSEOP_CLOCKPOLARITY_LOW {$$ = TrCreateLeafOp (PARSEOP_CLOCKPOLARITY_LOW);} | PARSEOP_CLOCKPOLARITY_HIGH {$$ = TrCreateLeafOp (PARSEOP_CLOCKPOLARITY_HIGH);} ; DecodeKeyword : PARSEOP_DECODETYPE_POS {$$ = TrCreateLeafOp (PARSEOP_DECODETYPE_POS);} | PARSEOP_DECODETYPE_SUB {$$ = TrCreateLeafOp (PARSEOP_DECODETYPE_SUB);} ; DevicePolarityKeyword : PARSEOP_DEVICEPOLARITY_LOW {$$ = TrCreateLeafOp (PARSEOP_DEVICEPOLARITY_LOW);} | PARSEOP_DEVICEPOLARITY_HIGH {$$ = TrCreateLeafOp (PARSEOP_DEVICEPOLARITY_HIGH);} ; DMATypeKeyword : PARSEOP_DMATYPE_A {$$ = TrCreateLeafOp (PARSEOP_DMATYPE_A);} | PARSEOP_DMATYPE_COMPATIBILITY {$$ = TrCreateLeafOp (PARSEOP_DMATYPE_COMPATIBILITY);} | PARSEOP_DMATYPE_B {$$ = TrCreateLeafOp (PARSEOP_DMATYPE_B);} | PARSEOP_DMATYPE_F {$$ = TrCreateLeafOp (PARSEOP_DMATYPE_F);} ; EndianKeyword : PARSEOP_ENDIAN_LITTLE {$$ = TrCreateLeafOp (PARSEOP_ENDIAN_LITTLE);} | PARSEOP_ENDIAN_BIG {$$ = TrCreateLeafOp (PARSEOP_ENDIAN_BIG);} ; FlowControlKeyword : PARSEOP_FLOWCONTROL_HW {$$ = TrCreateLeafOp (PARSEOP_FLOWCONTROL_HW);} | PARSEOP_FLOWCONTROL_NONE {$$ = TrCreateLeafOp (PARSEOP_FLOWCONTROL_NONE);} | PARSEOP_FLOWCONTROL_SW {$$ = TrCreateLeafOp (PARSEOP_FLOWCONTROL_SW);} ; InterruptLevel : PARSEOP_INTLEVEL_ACTIVEBOTH {$$ = TrCreateLeafOp (PARSEOP_INTLEVEL_ACTIVEBOTH);} | PARSEOP_INTLEVEL_ACTIVEHIGH {$$ = TrCreateLeafOp (PARSEOP_INTLEVEL_ACTIVEHIGH);} | PARSEOP_INTLEVEL_ACTIVELOW {$$ = TrCreateLeafOp (PARSEOP_INTLEVEL_ACTIVELOW);} ; InterruptTypeKeyword : PARSEOP_INTTYPE_EDGE {$$ = TrCreateLeafOp (PARSEOP_INTTYPE_EDGE);} | PARSEOP_INTTYPE_LEVEL {$$ = TrCreateLeafOp (PARSEOP_INTTYPE_LEVEL);} ; IODecodeKeyword : PARSEOP_IODECODETYPE_16 {$$ = TrCreateLeafOp (PARSEOP_IODECODETYPE_16);} | PARSEOP_IODECODETYPE_10 {$$ = TrCreateLeafOp (PARSEOP_IODECODETYPE_10);} ; IoRestrictionKeyword : PARSEOP_IORESTRICT_IN {$$ = TrCreateLeafOp (PARSEOP_IORESTRICT_IN);} | PARSEOP_IORESTRICT_OUT {$$ = TrCreateLeafOp (PARSEOP_IORESTRICT_OUT);} | PARSEOP_IORESTRICT_NONE {$$ = TrCreateLeafOp (PARSEOP_IORESTRICT_NONE);} | PARSEOP_IORESTRICT_PRESERVE {$$ = TrCreateLeafOp (PARSEOP_IORESTRICT_PRESERVE);} ; LockRuleKeyword : PARSEOP_LOCKRULE_LOCK {$$ = TrCreateLeafOp (PARSEOP_LOCKRULE_LOCK);} | PARSEOP_LOCKRULE_NOLOCK {$$ = TrCreateLeafOp (PARSEOP_LOCKRULE_NOLOCK);} ; MatchOpKeyword : PARSEOP_MATCHTYPE_MTR {$$ = TrCreateLeafOp (PARSEOP_MATCHTYPE_MTR);} | PARSEOP_MATCHTYPE_MEQ {$$ = TrCreateLeafOp (PARSEOP_MATCHTYPE_MEQ);} | PARSEOP_MATCHTYPE_MLE {$$ = TrCreateLeafOp (PARSEOP_MATCHTYPE_MLE);} | PARSEOP_MATCHTYPE_MLT {$$ = TrCreateLeafOp (PARSEOP_MATCHTYPE_MLT);} | PARSEOP_MATCHTYPE_MGE {$$ = TrCreateLeafOp (PARSEOP_MATCHTYPE_MGE);} | PARSEOP_MATCHTYPE_MGT {$$ = TrCreateLeafOp (PARSEOP_MATCHTYPE_MGT);} ; MaxKeyword : PARSEOP_MAXTYPE_FIXED {$$ = TrCreateLeafOp (PARSEOP_MAXTYPE_FIXED);} | PARSEOP_MAXTYPE_NOTFIXED {$$ = TrCreateLeafOp (PARSEOP_MAXTYPE_NOTFIXED);} ; MemTypeKeyword : PARSEOP_MEMTYPE_CACHEABLE {$$ = TrCreateLeafOp (PARSEOP_MEMTYPE_CACHEABLE);} | PARSEOP_MEMTYPE_WRITECOMBINING {$$ = TrCreateLeafOp (PARSEOP_MEMTYPE_WRITECOMBINING);} | PARSEOP_MEMTYPE_PREFETCHABLE {$$ = TrCreateLeafOp (PARSEOP_MEMTYPE_PREFETCHABLE);} | PARSEOP_MEMTYPE_NONCACHEABLE {$$ = TrCreateLeafOp (PARSEOP_MEMTYPE_NONCACHEABLE);} ; MinKeyword : PARSEOP_MINTYPE_FIXED {$$ = TrCreateLeafOp (PARSEOP_MINTYPE_FIXED);} | PARSEOP_MINTYPE_NOTFIXED {$$ = TrCreateLeafOp (PARSEOP_MINTYPE_NOTFIXED);} ; ObjectTypeKeyword : PARSEOP_OBJECTTYPE_UNK {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_UNK);} | PARSEOP_OBJECTTYPE_INT {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_INT);} | PARSEOP_OBJECTTYPE_STR {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_STR);} | PARSEOP_OBJECTTYPE_BUF {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_BUF);} | PARSEOP_OBJECTTYPE_PKG {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_PKG);} | PARSEOP_OBJECTTYPE_FLD {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_FLD);} | PARSEOP_OBJECTTYPE_DEV {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_DEV);} | PARSEOP_OBJECTTYPE_EVT {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_EVT);} | PARSEOP_OBJECTTYPE_MTH {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_MTH);} | PARSEOP_OBJECTTYPE_MTX {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_MTX);} | PARSEOP_OBJECTTYPE_OPR {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_OPR);} | PARSEOP_OBJECTTYPE_POW {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_POW);} | PARSEOP_OBJECTTYPE_PRO {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_PRO);} | PARSEOP_OBJECTTYPE_THZ {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_THZ);} | PARSEOP_OBJECTTYPE_BFF {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_BFF);} | PARSEOP_OBJECTTYPE_DDB {$$ = TrCreateLeafOp (PARSEOP_OBJECTTYPE_DDB);} ; ParityTypeKeyword : PARSEOP_PARITYTYPE_SPACE {$$ = TrCreateLeafOp (PARSEOP_PARITYTYPE_SPACE);} | PARSEOP_PARITYTYPE_MARK {$$ = TrCreateLeafOp (PARSEOP_PARITYTYPE_MARK);} | PARSEOP_PARITYTYPE_ODD {$$ = TrCreateLeafOp (PARSEOP_PARITYTYPE_ODD);} | PARSEOP_PARITYTYPE_EVEN {$$ = TrCreateLeafOp (PARSEOP_PARITYTYPE_EVEN);} | PARSEOP_PARITYTYPE_NONE {$$ = TrCreateLeafOp (PARSEOP_PARITYTYPE_NONE);} ; PinConfigByte : PinConfigKeyword {$$ = $1;} | ByteConstExpr {$$ = UtCheckIntegerRange ($1, 0x80, 0xFF);} ; PinConfigKeyword : PARSEOP_PIN_NOPULL {$$ = TrCreateLeafOp (PARSEOP_PIN_NOPULL);} | PARSEOP_PIN_PULLDOWN {$$ = TrCreateLeafOp (PARSEOP_PIN_PULLDOWN);} | PARSEOP_PIN_PULLUP {$$ = TrCreateLeafOp (PARSEOP_PIN_PULLUP);} | PARSEOP_PIN_PULLDEFAULT {$$ = TrCreateLeafOp (PARSEOP_PIN_PULLDEFAULT);} ; PldKeyword : PARSEOP_PLD_REVISION {$$ = TrCreateLeafOp (PARSEOP_PLD_REVISION);} | PARSEOP_PLD_IGNORECOLOR {$$ = TrCreateLeafOp (PARSEOP_PLD_IGNORECOLOR);} | PARSEOP_PLD_RED {$$ = TrCreateLeafOp (PARSEOP_PLD_RED);} | PARSEOP_PLD_GREEN {$$ = TrCreateLeafOp (PARSEOP_PLD_GREEN);} | PARSEOP_PLD_BLUE {$$ = TrCreateLeafOp (PARSEOP_PLD_BLUE);} | PARSEOP_PLD_WIDTH {$$ = TrCreateLeafOp (PARSEOP_PLD_WIDTH);} | PARSEOP_PLD_HEIGHT {$$ = TrCreateLeafOp (PARSEOP_PLD_HEIGHT);} | PARSEOP_PLD_USERVISIBLE {$$ = TrCreateLeafOp (PARSEOP_PLD_USERVISIBLE);} | PARSEOP_PLD_DOCK {$$ = TrCreateLeafOp (PARSEOP_PLD_DOCK);} | PARSEOP_PLD_LID {$$ = TrCreateLeafOp (PARSEOP_PLD_LID);} | PARSEOP_PLD_PANEL {$$ = TrCreateLeafOp (PARSEOP_PLD_PANEL);} | PARSEOP_PLD_VERTICALPOSITION {$$ = TrCreateLeafOp (PARSEOP_PLD_VERTICALPOSITION);} | PARSEOP_PLD_HORIZONTALPOSITION {$$ = TrCreateLeafOp (PARSEOP_PLD_HORIZONTALPOSITION);} | PARSEOP_PLD_SHAPE {$$ = TrCreateLeafOp (PARSEOP_PLD_SHAPE);} | PARSEOP_PLD_GROUPORIENTATION {$$ = TrCreateLeafOp (PARSEOP_PLD_GROUPORIENTATION);} | PARSEOP_PLD_GROUPTOKEN {$$ = TrCreateLeafOp (PARSEOP_PLD_GROUPTOKEN);} | PARSEOP_PLD_GROUPPOSITION {$$ = TrCreateLeafOp (PARSEOP_PLD_GROUPPOSITION);} | PARSEOP_PLD_BAY {$$ = TrCreateLeafOp (PARSEOP_PLD_BAY);} | PARSEOP_PLD_EJECTABLE {$$ = TrCreateLeafOp (PARSEOP_PLD_EJECTABLE);} | PARSEOP_PLD_EJECTREQUIRED {$$ = TrCreateLeafOp (PARSEOP_PLD_EJECTREQUIRED);} | PARSEOP_PLD_CABINETNUMBER {$$ = TrCreateLeafOp (PARSEOP_PLD_CABINETNUMBER);} | PARSEOP_PLD_CARDCAGENUMBER {$$ = TrCreateLeafOp (PARSEOP_PLD_CARDCAGENUMBER);} | PARSEOP_PLD_REFERENCE {$$ = TrCreateLeafOp (PARSEOP_PLD_REFERENCE);} | PARSEOP_PLD_ROTATION {$$ = TrCreateLeafOp (PARSEOP_PLD_ROTATION);} | PARSEOP_PLD_ORDER {$$ = TrCreateLeafOp (PARSEOP_PLD_ORDER);} | PARSEOP_PLD_RESERVED {$$ = TrCreateLeafOp (PARSEOP_PLD_RESERVED);} | PARSEOP_PLD_VERTICALOFFSET {$$ = TrCreateLeafOp (PARSEOP_PLD_VERTICALOFFSET);} | PARSEOP_PLD_HORIZONTALOFFSET {$$ = TrCreateLeafOp (PARSEOP_PLD_HORIZONTALOFFSET);} ; RangeTypeKeyword : PARSEOP_RANGETYPE_ISAONLY {$$ = TrCreateLeafOp (PARSEOP_RANGETYPE_ISAONLY);} | PARSEOP_RANGETYPE_NONISAONLY {$$ = TrCreateLeafOp (PARSEOP_RANGETYPE_NONISAONLY);} | PARSEOP_RANGETYPE_ENTIRE {$$ = TrCreateLeafOp (PARSEOP_RANGETYPE_ENTIRE);} ; RegionSpaceKeyword : PARSEOP_REGIONSPACE_IO {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_IO);} | PARSEOP_REGIONSPACE_MEM {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_MEM);} | PARSEOP_REGIONSPACE_PCI {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_PCI);} | PARSEOP_REGIONSPACE_EC {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_EC);} | PARSEOP_REGIONSPACE_SMBUS {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_SMBUS);} | PARSEOP_REGIONSPACE_CMOS {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_CMOS);} | PARSEOP_REGIONSPACE_PCIBAR {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_PCIBAR);} | PARSEOP_REGIONSPACE_IPMI {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_IPMI);} | PARSEOP_REGIONSPACE_GPIO {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_GPIO);} | PARSEOP_REGIONSPACE_GSBUS {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_GSBUS);} | PARSEOP_REGIONSPACE_PCC {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_PCC);} | PARSEOP_REGIONSPACE_PRM {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_PRM);} | PARSEOP_REGIONSPACE_FFIXEDHW {$$ = TrCreateLeafOp (PARSEOP_REGIONSPACE_FFIXEDHW);} ; ResourceTypeKeyword : PARSEOP_RESOURCETYPE_CONSUMER {$$ = TrCreateLeafOp (PARSEOP_RESOURCETYPE_CONSUMER);} | PARSEOP_RESOURCETYPE_PRODUCER {$$ = TrCreateLeafOp (PARSEOP_RESOURCETYPE_PRODUCER);} ; SerializeRuleKeyword : PARSEOP_SERIALIZERULE_SERIAL {$$ = TrCreateLeafOp (PARSEOP_SERIALIZERULE_SERIAL);} | PARSEOP_SERIALIZERULE_NOTSERIAL {$$ = TrCreateLeafOp (PARSEOP_SERIALIZERULE_NOTSERIAL);} ; ShareTypeKeyword : PARSEOP_SHARETYPE_SHARED {$$ = TrCreateLeafOp (PARSEOP_SHARETYPE_SHARED);} | PARSEOP_SHARETYPE_EXCLUSIVE {$$ = TrCreateLeafOp (PARSEOP_SHARETYPE_EXCLUSIVE);} | PARSEOP_SHARETYPE_SHAREDWAKE {$$ = TrCreateLeafOp (PARSEOP_SHARETYPE_SHAREDWAKE);} | PARSEOP_SHARETYPE_EXCLUSIVEWAKE {$$ = TrCreateLeafOp (PARSEOP_SHARETYPE_EXCLUSIVEWAKE);} ; SlaveModeKeyword : PARSEOP_SLAVEMODE_CONTROLLERINIT {$$ = TrCreateLeafOp (PARSEOP_SLAVEMODE_CONTROLLERINIT);} | PARSEOP_SLAVEMODE_DEVICEINIT {$$ = TrCreateLeafOp (PARSEOP_SLAVEMODE_DEVICEINIT);} ; StopBitsKeyword : PARSEOP_STOPBITS_TWO {$$ = TrCreateLeafOp (PARSEOP_STOPBITS_TWO);} | PARSEOP_STOPBITS_ONEPLUSHALF {$$ = TrCreateLeafOp (PARSEOP_STOPBITS_ONEPLUSHALF);} | PARSEOP_STOPBITS_ONE {$$ = TrCreateLeafOp (PARSEOP_STOPBITS_ONE);} | PARSEOP_STOPBITS_ZERO {$$ = TrCreateLeafOp (PARSEOP_STOPBITS_ZERO);} ; TranslationKeyword : PARSEOP_TRANSLATIONTYPE_SPARSE {$$ = TrCreateLeafOp (PARSEOP_TRANSLATIONTYPE_SPARSE);} | PARSEOP_TRANSLATIONTYPE_DENSE {$$ = TrCreateLeafOp (PARSEOP_TRANSLATIONTYPE_DENSE);} ; TypeKeyword : PARSEOP_TYPE_TRANSLATION {$$ = TrCreateLeafOp (PARSEOP_TYPE_TRANSLATION);} | PARSEOP_TYPE_STATIC {$$ = TrCreateLeafOp (PARSEOP_TYPE_STATIC);} ; UpdateRuleKeyword : PARSEOP_UPDATERULE_PRESERVE {$$ = TrCreateLeafOp (PARSEOP_UPDATERULE_PRESERVE);} | PARSEOP_UPDATERULE_ONES {$$ = TrCreateLeafOp (PARSEOP_UPDATERULE_ONES);} | PARSEOP_UPDATERULE_ZEROS {$$ = TrCreateLeafOp (PARSEOP_UPDATERULE_ZEROS);} ; WireModeKeyword : PARSEOP_WIREMODE_FOUR {$$ = TrCreateLeafOp (PARSEOP_WIREMODE_FOUR);} | PARSEOP_WIREMODE_THREE {$$ = TrCreateLeafOp (PARSEOP_WIREMODE_THREE);} ; XferSizeKeyword : PARSEOP_XFERSIZE_8 {$$ = TrCreateValuedLeafOp (PARSEOP_XFERSIZE_8, 0);} | PARSEOP_XFERSIZE_16 {$$ = TrCreateValuedLeafOp (PARSEOP_XFERSIZE_16, 1);} | PARSEOP_XFERSIZE_32 {$$ = TrCreateValuedLeafOp (PARSEOP_XFERSIZE_32, 2);} | PARSEOP_XFERSIZE_64 {$$ = TrCreateValuedLeafOp (PARSEOP_XFERSIZE_64, 3);} | PARSEOP_XFERSIZE_128 {$$ = TrCreateValuedLeafOp (PARSEOP_XFERSIZE_128, 4);} | PARSEOP_XFERSIZE_256 {$$ = TrCreateValuedLeafOp (PARSEOP_XFERSIZE_256, 5);} ; XferTypeKeyword : PARSEOP_XFERTYPE_8 {$$ = TrCreateLeafOp (PARSEOP_XFERTYPE_8);} | PARSEOP_XFERTYPE_8_16 {$$ = TrCreateLeafOp (PARSEOP_XFERTYPE_8_16);} | PARSEOP_XFERTYPE_16 {$$ = TrCreateLeafOp (PARSEOP_XFERTYPE_16);} ; ClockScaleKeyword : PARSEOP_CLOCK_HZ {$$ = TrCreateLeafOp (PARSEOP_CLOCK_HZ);} | PARSEOP_CLOCK_KHZ {$$ = TrCreateLeafOp (PARSEOP_CLOCK_KHZ);} | PARSEOP_CLOCK_MHZ {$$ = TrCreateLeafOp (PARSEOP_CLOCK_MHZ);} ; ClockModeKeyword : PARSEOP_CLOCK_FIXED {$$ = TrCreateLeafOp (PARSEOP_CLOCK_FIXED);} | PARSEOP_CLOCK_VARIABLE {$$ = TrCreateLeafOp (PARSEOP_CLOCK_VARIABLE);} ; acpica-unix-20250404/source/compiler/dtcompilerparser.y0000775000175000017500000001303514773714132022426 0ustar ivanhuivanhu%{ /****************************************************************************** * * Module Name: dtcompilerparser.y - Bison input file for table compiler parser * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtcompilerparser") void * AslLocalAllocate (unsigned int Size); /* Bison/yacc configuration */ #undef alloca #define alloca AslLocalAllocate int DtCompilerParserlex (void); int DtCompilerParserparse (void); void DtCompilerParsererror (char const *msg); extern char *DtCompilerParsertext; extern DT_FIELD *AslGbl_CurrentField; extern int DtLabelByteOffset; extern UINT64 DtCompilerParserlineno; /* Current line number */ extern UINT32 DtTokenFirstLine; extern UINT32 DtTokenFirstColumn; /* Bison/yacc configuration */ #define yytname DtCompilerParsername #define YYDEBUG 1 /* Enable debug output */ #define YYERROR_VERBOSE 1 /* Verbose error messages */ #define YYFLAG -32768 /* Define YYMALLOC/YYFREE to prevent redefinition errors */ #define YYMALLOC malloc #define YYFREE free %} %union { char *s; DT_FIELD *f; DT_TABLE_UNIT *u; } %type Table %token DT_PARSEOP_DATA %token DT_PARSEOP_LABEL %token DT_PARSEOP_STRING_DATA %token DT_PARSEOP_LINE_CONTINUATION %type Data %type Datum %type MultiLineData %type MultiLineDataList %% Table : FieldList { } ; FieldList : Field FieldList | Field ; Field : DT_PARSEOP_LABEL ':' Data { DtCreateField ($1, $3, DtLabelByteOffset); } ; Data : MultiLineDataList { $$ = $1; } | Datum { $$ = $1; } | Datum MultiLineDataList { $$ = $1; } /* combine the string with strcat */ ; MultiLineDataList : MultiLineDataList MultiLineData { $$ = DtCreateTableUnit (AcpiUtStrcat(AcpiUtStrcat($1->Value, " "), $2->Value), $1->Line, $1->Column); } /* combine the strings with strcat */ | MultiLineData { $$ = $1; } ; MultiLineData : DT_PARSEOP_LINE_CONTINUATION Datum { DbgPrint (ASL_PARSE_OUTPUT, "line continuation detected\n"); $$ = $2; } ; Datum : DT_PARSEOP_DATA { DbgPrint (ASL_PARSE_OUTPUT, "parser data: [%s]\n", DtCompilerParserlval.s); $$ = DtCreateTableUnit (AcpiUtStrdup(DtCompilerParserlval.s), DtTokenFirstLine, DtTokenFirstColumn); } | DT_PARSEOP_STRING_DATA { DbgPrint (ASL_PARSE_OUTPUT, "parser string data: [%s]\n", DtCompilerParserlval.s); $$ = DtCreateTableUnit (AcpiUtStrdup(DtCompilerParserlval.s), DtTokenFirstLine, DtTokenFirstColumn); } ; %% /* * Local support functions, including parser entry point */ /****************************************************************************** * * FUNCTION: DtCompilerParsererror * * PARAMETERS: Message - Parser-generated error message * * RETURN: None * * DESCRIPTION: Handler for parser errors * *****************************************************************************/ void DtCompilerParsererror ( char const *Message) { DtError (ASL_ERROR, ASL_MSG_SYNTAX, AslGbl_CurrentField, (char *) Message); } int DtCompilerParserwrap(void) { return (1); } acpica-unix-20250404/source/compiler/aslrestype2e.c0000775000175000017500000005126614773714131021452 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslrestype2e - Large Extended address resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslrestype2e") /* * This module contains the Extended (64-bit) address space descriptors: * * ExtendedIO * ExtendedMemory * ExtendedSpace */ /******************************************************************************* * * FUNCTION: RsDoExtendedIoDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "ExtendedIO" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoExtendedIoDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->ExtAddress64.DescriptorType = ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64; Descriptor->ExtAddress64.ResourceType = ACPI_ADDRESS_TYPE_IO_RANGE; Descriptor->ExtAddress64.RevisionID = AML_RESOURCE_EXTENDED_ADDRESS_REVISION; Descriptor->ExtAddress64.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Usage */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 0, 1); break; case 1: /* MinType */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Flags), 2); break; case 2: /* MaxType */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Flags), 3); break; case 3: /* DecodeType */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Flags), 1); break; case 4: /* Range Type */ RsSetFlagBits (&Descriptor->ExtAddress64.SpecificFlags, InitializerOp, 0, 3); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_RANGETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.SpecificFlags), 0, 2); break; case 5: /* Address Granularity */ Descriptor->ExtAddress64.Granularity = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Granularity)); GranOp = InitializerOp; break; case 6: /* Address Min */ Descriptor->ExtAddress64.Minimum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Minimum)); MinOp = InitializerOp; break; case 7: /* Address Max */ Descriptor->ExtAddress64.Maximum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Maximum)); MaxOp = InitializerOp; break; case 8: /* Translation Offset */ Descriptor->ExtAddress64.TranslationOffset = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.TranslationOffset)); break; case 9: /* Address Length */ Descriptor->ExtAddress64.AddressLength = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.AddressLength)); LengthOp = InitializerOp; break; case 10: /* Type-Specific Attributes */ Descriptor->ExtAddress64.TypeSpecific = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_TYPESPECIFICATTRIBUTES, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.TypeSpecific)); break; case 11: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 12: /* Type */ RsSetFlagBits (&Descriptor->ExtAddress64.SpecificFlags, InitializerOp, 4, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.SpecificFlags), 4); break; case 13: /* Translation Type */ RsSetFlagBits (&Descriptor->ExtAddress64.SpecificFlags, InitializerOp, 5, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TRANSTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.SpecificFlags), 5); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( Descriptor->ExtAddress64.Minimum, Descriptor->ExtAddress64.Maximum, Descriptor->ExtAddress64.AddressLength, Descriptor->ExtAddress64.Granularity, Descriptor->ExtAddress64.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoExtendedMemoryDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "ExtendedMemory" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoExtendedMemoryDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->ExtAddress64.DescriptorType = ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64; Descriptor->ExtAddress64.ResourceType = ACPI_ADDRESS_TYPE_MEMORY_RANGE; Descriptor->ExtAddress64.RevisionID = AML_RESOURCE_EXTENDED_ADDRESS_REVISION; Descriptor->ExtAddress64.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Usage */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 0, 1); break; case 1: /* DecodeType */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Flags), 1); break; case 2: /* MinType */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Flags), 2); break; case 3: /* MaxType */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Flags), 3); break; case 4: /* Memory Type */ RsSetFlagBits (&Descriptor->ExtAddress64.SpecificFlags, InitializerOp, 1, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_MEMTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.SpecificFlags), 1, 2); break; case 5: /* Read/Write Type */ RsSetFlagBits (&Descriptor->ExtAddress64.SpecificFlags, InitializerOp, 0, 1); RsCreateBitField (InitializerOp, ACPI_RESTAG_READWRITETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.SpecificFlags), 0); break; case 6: /* Address Granularity */ Descriptor->ExtAddress64.Granularity = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Granularity)); GranOp = InitializerOp; break; case 7: /* Min Address */ Descriptor->ExtAddress64.Minimum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Minimum)); MinOp = InitializerOp; break; case 8: /* Max Address */ Descriptor->ExtAddress64.Maximum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Maximum)); MaxOp = InitializerOp; break; case 9: /* Translation Offset */ Descriptor->ExtAddress64.TranslationOffset = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.TranslationOffset)); break; case 10: /* Address Length */ Descriptor->ExtAddress64.AddressLength = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.AddressLength)); LengthOp = InitializerOp; break; case 11: /* Type-Specific Attributes */ Descriptor->ExtAddress64.TypeSpecific = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_TYPESPECIFICATTRIBUTES, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.TypeSpecific)); break; case 12: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 13: /* Address Range */ RsSetFlagBits (&Descriptor->ExtAddress64.SpecificFlags, InitializerOp, 3, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_MEMATTRIBUTES, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.SpecificFlags), 3, 2); break; case 14: /* Type */ RsSetFlagBits (&Descriptor->ExtAddress64.SpecificFlags, InitializerOp, 5, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.SpecificFlags), 5); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( Descriptor->ExtAddress64.Minimum, Descriptor->ExtAddress64.Maximum, Descriptor->ExtAddress64.AddressLength, Descriptor->ExtAddress64.Granularity, Descriptor->ExtAddress64.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoExtendedSpaceDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "ExtendedSpace" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoExtendedSpaceDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->ExtAddress64.DescriptorType = ACPI_RESOURCE_NAME_EXTENDED_ADDRESS64; Descriptor->ExtAddress64.RevisionID = AML_RESOURCE_EXTENDED_ADDRESS_REVISION; Descriptor->ExtAddress64.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Type */ Descriptor->ExtAddress64.ResourceType = (UINT8) InitializerOp->Asl.Value.Integer; break; case 1: /* Resource Usage */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 0, 1); break; case 2: /* DecodeType */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Flags), 1); break; case 3: /* MinType */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Flags), 2); break; case 4: /* MaxType */ RsSetFlagBits (&Descriptor->ExtAddress64.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Flags), 3); break; case 5: /* Type-Specific flags */ Descriptor->ExtAddress64.SpecificFlags = (UINT8) InitializerOp->Asl.Value.Integer; break; case 6: /* Address Granularity */ Descriptor->ExtAddress64.Granularity = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Granularity)); GranOp = InitializerOp; break; case 7: /* Min Address */ Descriptor->ExtAddress64.Minimum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Minimum)); MinOp = InitializerOp; break; case 8: /* Max Address */ Descriptor->ExtAddress64.Maximum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.Maximum)); MaxOp = InitializerOp; break; case 9: /* Translation Offset */ Descriptor->ExtAddress64.TranslationOffset = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.TranslationOffset)); break; case 10: /* Address Length */ Descriptor->ExtAddress64.AddressLength = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.AddressLength)); LengthOp = InitializerOp; break; case 11: /* Type-Specific Attributes */ Descriptor->ExtAddress64.TypeSpecific = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_TYPESPECIFICATTRIBUTES, CurrentByteOffset + ASL_RESDESC_OFFSET (ExtAddress64.TypeSpecific)); break; case 12: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( Descriptor->ExtAddress64.Minimum, Descriptor->ExtAddress64.Maximum, Descriptor->ExtAddress64.AddressLength, Descriptor->ExtAddress64.Granularity, Descriptor->ExtAddress64.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_EXTENDED_ADDRESS64) + StringLength; return (Rnode); } acpica-unix-20250404/source/compiler/aslcstyle.y0000775000175000017500000002657214773714131021063 0ustar ivanhuivanhuNoEcho(' /****************************************************************************** * * Module Name: aslcstyle.y - Production rules for symbolic operators * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ ') /******************************************************************************* * * Production rules for the symbolic (c-style) operators * ******************************************************************************/ /* * ASL Extensions: C-style math/logical operators and expressions. * The implementation transforms these operators into the standard * AML opcodes and syntax. * * Supported operators and precedence rules (high-to-low) * * NOTE: The operator precedence and associativity rules are * implemented by the tokens in asltokens.y * * (left-to-right): * 1) ( ) expr++ expr-- * * (right-to-left): * 2) ! ~ * * (left-to-right): * 3) * / % * 4) + - * 5) >> << * 6) < > <= >= * 7) == != * 8) & * 9) ^ * 10) | * 11) && * 12) || * * (right-to-left): * 13) = += -= *= /= %= <<= >>= &= ^= |= */ /******************************************************************************* * * Basic operations for math and logical expressions. * ******************************************************************************/ Expression /* Unary operators */ : PARSEOP_EXP_LOGICAL_NOT {$$ = TrCreateLeafOp (PARSEOP_LNOT);} TermArg {$$ = TrLinkOpChildren ($2,1,$3);} | PARSEOP_EXP_NOT {$$ = TrCreateLeafOp (PARSEOP_NOT);} TermArg {$$ = TrLinkOpChildren ($2,2,$3,TrCreateNullTargetOp ());} | SuperName PARSEOP_EXP_INCREMENT {$$ = TrCreateLeafOp (PARSEOP_INCREMENT);} {$$ = TrLinkOpChildren ($3,1,$1);} | SuperName PARSEOP_EXP_DECREMENT {$$ = TrCreateLeafOp (PARSEOP_DECREMENT);} {$$ = TrLinkOpChildren ($3,1,$1);} /* Binary operators: math and logical */ | TermArg PARSEOP_EXP_ADD {$$ = TrCreateLeafOp (PARSEOP_ADD);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4,TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_DIVIDE {$$ = TrCreateLeafOp (PARSEOP_DIVIDE);} TermArg {$$ = TrLinkOpChildren ($3,4,$1,$4,TrCreateNullTargetOp (), TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_MODULO {$$ = TrCreateLeafOp (PARSEOP_MOD);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4,TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_MULTIPLY {$$ = TrCreateLeafOp (PARSEOP_MULTIPLY);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4,TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_SHIFT_LEFT {$$ = TrCreateLeafOp (PARSEOP_SHIFTLEFT);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4,TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_SHIFT_RIGHT {$$ = TrCreateLeafOp (PARSEOP_SHIFTRIGHT);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4,TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_SUBTRACT {$$ = TrCreateLeafOp (PARSEOP_SUBTRACT);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4,TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_AND {$$ = TrCreateLeafOp (PARSEOP_AND);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4,TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_OR {$$ = TrCreateLeafOp (PARSEOP_OR);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4,TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_XOR {$$ = TrCreateLeafOp (PARSEOP_XOR);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4,TrCreateNullTargetOp ());} | TermArg PARSEOP_EXP_GREATER {$$ = TrCreateLeafOp (PARSEOP_LGREATER);} TermArg {$$ = TrLinkOpChildren ($3,2,$1,$4);} | TermArg PARSEOP_EXP_GREATER_EQUAL {$$ = TrCreateLeafOp (PARSEOP_LGREATEREQUAL);} TermArg {$$ = TrLinkOpChildren ($3,2,$1,$4);} | TermArg PARSEOP_EXP_LESS {$$ = TrCreateLeafOp (PARSEOP_LLESS);} TermArg {$$ = TrLinkOpChildren ($3,2,$1,$4);} | TermArg PARSEOP_EXP_LESS_EQUAL {$$ = TrCreateLeafOp (PARSEOP_LLESSEQUAL);} TermArg {$$ = TrLinkOpChildren ($3,2,$1,$4);} | TermArg PARSEOP_EXP_EQUAL {$$ = TrCreateLeafOp (PARSEOP_LEQUAL);} TermArg {$$ = TrLinkOpChildren ($3,2,$1,$4);} | TermArg PARSEOP_EXP_NOT_EQUAL {$$ = TrCreateLeafOp (PARSEOP_LNOTEQUAL);} TermArg {$$ = TrLinkOpChildren ($3,2,$1,$4);} | TermArg PARSEOP_EXP_LOGICAL_AND {$$ = TrCreateLeafOp (PARSEOP_LAND);} TermArg {$$ = TrLinkOpChildren ($3,2,$1,$4);} | TermArg PARSEOP_EXP_LOGICAL_OR {$$ = TrCreateLeafOp (PARSEOP_LOR);} TermArg {$$ = TrLinkOpChildren ($3,2,$1,$4);} /* Parentheses */ | PARSEOP_OPEN_PAREN Expression PARSEOP_CLOSE_PAREN {$$ = $2;} /* Index term -- "= BUF1[5]" on right-hand side of an equals (source) */ | IndexExpTerm ; /* * Index term -- "BUF1[5] = " or " = BUF1[5] on either the left side * of an equals (target) or the right side (source) * Currently used in these terms: * Expression * ObjectTypeSource * DerefOfSource * Type6Opcode */ IndexExpTerm : SuperName PARSEOP_EXP_INDEX_LEFT TermArg PARSEOP_EXP_INDEX_RIGHT {$$ = TrCreateLeafOp (PARSEOP_INDEX); TrLinkOpChildren ($$,3,$1,$3,TrCreateNullTargetOp ());} ; /******************************************************************************* * * All assignment-type operations -- math and logical. Includes simple * assignment and compound assignments. * ******************************************************************************/ EqualsTerm /* Allow parens anywhere */ : PARSEOP_OPEN_PAREN EqualsTerm PARSEOP_CLOSE_PAREN {$$ = $2;} /* Simple Store() operation */ | SuperName PARSEOP_EXP_EQUALS TermArg {$$ = TrCreateAssignmentOp ($1, $3);} /* Chained equals: (a=RefOf)=b, a=b=c=d etc. */ | PARSEOP_OPEN_PAREN EqualsTerm PARSEOP_CLOSE_PAREN PARSEOP_EXP_EQUALS TermArg {$$ = TrCreateAssignmentOp ($2, $5);} /* Compound assignments -- Add (operand, operand, target) */ | TermArg PARSEOP_EXP_ADD_EQ {$$ = TrCreateLeafOp (PARSEOP_ADD);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4, TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} | TermArg PARSEOP_EXP_DIV_EQ {$$ = TrCreateLeafOp (PARSEOP_DIVIDE);} TermArg {$$ = TrLinkOpChildren ($3,4,$1,$4,TrCreateNullTargetOp (), TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} | TermArg PARSEOP_EXP_MOD_EQ {$$ = TrCreateLeafOp (PARSEOP_MOD);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4, TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} | TermArg PARSEOP_EXP_MUL_EQ {$$ = TrCreateLeafOp (PARSEOP_MULTIPLY);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4, TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} | TermArg PARSEOP_EXP_SHL_EQ {$$ = TrCreateLeafOp (PARSEOP_SHIFTLEFT);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4, TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} | TermArg PARSEOP_EXP_SHR_EQ {$$ = TrCreateLeafOp (PARSEOP_SHIFTRIGHT);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4, TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} | TermArg PARSEOP_EXP_SUB_EQ {$$ = TrCreateLeafOp (PARSEOP_SUBTRACT);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4, TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} | TermArg PARSEOP_EXP_AND_EQ {$$ = TrCreateLeafOp (PARSEOP_AND);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4, TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} | TermArg PARSEOP_EXP_OR_EQ {$$ = TrCreateLeafOp (PARSEOP_OR);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4, TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} | TermArg PARSEOP_EXP_XOR_EQ {$$ = TrCreateLeafOp (PARSEOP_XOR);} TermArg {$$ = TrLinkOpChildren ($3,3,$1,$4, TrSetOpFlags (TrCreateTargetOp ($1, NULL), OP_IS_TARGET));} ; acpica-unix-20250404/source/compiler/dtparser.tab.c0000775000175000017500000016215214773714132021417 0ustar ivanhuivanhu /* A Bison parser, made by GNU Bison 2.4.1. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.4.1" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* Using locations. */ #define YYLSP_NEEDED 0 /* Copy the first part of user declarations. */ /* Line 189 of yacc.c */ #line 1 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" /****************************************************************************** * * Module Name: dtparser.y - Bison input file for table compiler parser * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtparser") void * AslLocalAllocate (unsigned int Size); /* Bison/yacc configuration */ #undef alloca #define alloca AslLocalAllocate int DtParserlex (void); int DtParserparse (void); void DtParsererror (char const *msg); extern char *DtParsertext; extern DT_FIELD *AslGbl_CurrentField; UINT64 DtParserResult; /* Expression return value */ /* Bison/yacc configuration */ #define yytname DtParsername #define YYDEBUG 1 /* Enable debug output */ #define YYERROR_VERBOSE 1 /* Verbose error messages */ #define YYFLAG -32768 /* Define YYMALLOC/YYFREE to prevent redefinition errors */ #define YYMALLOC malloc #define YYFREE free /* Line 189 of yacc.c */ #line 259 "dtparser.tab.c" /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* Enabling the token table. */ #ifndef YYTOKEN_TABLE # define YYTOKEN_TABLE 0 #endif /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { OP_EXP_EOF = 258, OP_EXP_NEW_LINE = 259, OP_EXP_NUMBER = 260, OP_EXP_HEX_NUMBER = 261, OP_EXP_DECIMAL_NUMBER = 262, OP_EXP_LABEL = 263, OP_EXP_PAREN_OPEN = 264, OP_EXP_PAREN_CLOSE = 265, OP_EXP_LOGICAL_OR = 266, OP_EXP_LOGICAL_AND = 267, OP_EXP_OR = 268, OP_EXP_XOR = 269, OP_EXP_AND = 270, OP_EXP_NOT_EQUAL = 271, OP_EXP_EQUAL = 272, OP_EXP_LESS_EQUAL = 273, OP_EXP_GREATER_EQUAL = 274, OP_EXP_LESS = 275, OP_EXP_GREATER = 276, OP_EXP_SHIFT_LEFT = 277, OP_EXP_SHIFT_RIGHT = 278, OP_EXP_SUBTRACT = 279, OP_EXP_ADD = 280, OP_EXP_MODULO = 281, OP_EXP_DIVIDE = 282, OP_EXP_MULTIPLY = 283, OP_EXP_LOGICAL_NOT = 284, OP_EXP_ONES_COMPLIMENT = 285 }; #endif #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 214 of yacc.c */ #line 187 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" UINT64 value; UINT32 op; /* Line 214 of yacc.c */ #line 332 "dtparser.tab.c" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif /* Copy the second part of user declarations. */ /* Line 264 of yacc.c */ #line 344 "dtparser.tab.c" #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ # define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int yyi) #else static int YYID (yyi) int yyi; #endif { return yyi; } #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 13 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 170 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 31 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 3 /* YYNRULES -- Number of rules. */ #define YYNRULES 28 /* YYNRULES -- Number of states. */ #define YYNSTATES 53 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 285 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint8 yyprhs[] = { 0, 0, 3, 6, 9, 12, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 93, 95, 97 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int8 yyrhs[] = { 32, 0, -1, 33, 4, -1, 33, 3, -1, 29, 33, -1, 30, 33, -1, 33, 28, 33, -1, 33, 27, 33, -1, 33, 26, 33, -1, 33, 25, 33, -1, 33, 24, 33, -1, 33, 23, 33, -1, 33, 22, 33, -1, 33, 21, 33, -1, 33, 20, 33, -1, 33, 19, 33, -1, 33, 18, 33, -1, 33, 17, 33, -1, 33, 16, 33, -1, 33, 15, 33, -1, 33, 14, 33, -1, 33, 13, 33, -1, 33, 12, 33, -1, 33, 11, 33, -1, 9, 33, 10, -1, 8, -1, 5, -1, 6, -1, 7, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 236, 236, 237, 244, 245, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 270, 275, 286, 290, 294 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "OP_EXP_EOF", "OP_EXP_NEW_LINE", "OP_EXP_NUMBER", "OP_EXP_HEX_NUMBER", "OP_EXP_DECIMAL_NUMBER", "OP_EXP_LABEL", "OP_EXP_PAREN_OPEN", "OP_EXP_PAREN_CLOSE", "OP_EXP_LOGICAL_OR", "OP_EXP_LOGICAL_AND", "OP_EXP_OR", "OP_EXP_XOR", "OP_EXP_AND", "OP_EXP_NOT_EQUAL", "OP_EXP_EQUAL", "OP_EXP_LESS_EQUAL", "OP_EXP_GREATER_EQUAL", "OP_EXP_LESS", "OP_EXP_GREATER", "OP_EXP_SHIFT_LEFT", "OP_EXP_SHIFT_RIGHT", "OP_EXP_SUBTRACT", "OP_EXP_ADD", "OP_EXP_MODULO", "OP_EXP_DIVIDE", "OP_EXP_MULTIPLY", "OP_EXP_LOGICAL_NOT", "OP_EXP_ONES_COMPLIMENT", "$accept", "Value", "Expression", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 31, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint8 yydefact[] = { 0, 26, 27, 28, 25, 0, 0, 0, 0, 0, 0, 4, 5, 1, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { -1, 8, 9 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -20 static const yytype_int16 yypact[] = { 27, -20, -20, -20, -20, 27, 27, 27, 10, 26, 48, -20, -20, -20, -20, -20, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, -20, 65, 81, 96, 110, 123, 134, 134, -19, -19, -19, -19, 139, 139, 142, 142, -20, -20, -20 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -20, -20, -5 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -1 static const yytype_uint8 yytable[] = { 10, 11, 12, 27, 28, 29, 30, 31, 32, 33, 13, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 14, 15, 0, 1, 2, 3, 4, 5, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 0, 6, 7, 34, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 29, 30, 31, 32, 33, 31, 32, 33 }; static const yytype_int8 yycheck[] = { 5, 6, 7, 22, 23, 24, 25, 26, 27, 28, 0, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 3, 4, -1, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, -1, 29, 30, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 24, 25, 26, 27, 28, 26, 27, 28 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 5, 6, 7, 8, 9, 29, 30, 32, 33, 33, 33, 33, 0, 3, 4, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 10, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) #else static void yy_stack_print (yybottom, yytop) yytype_int16 *yybottom; yytype_int16 *yytop; #endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_reduce_print (YYSTYPE *yyvsp, int yyrule) #else static void yy_reduce_print (yyvsp, yyrule) YYSTYPE *yyvsp; int yyrule; #endif { int yynrhs = yyr2[yyrule]; int yyi; unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) ); YYFPRINTF (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyvsp, Rule); \ } while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) #else static YYSIZE_T yystrlen (yystr) const char *yystr; #endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) #else static char * yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; #endif { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into YYRESULT an error message about the unexpected token YYCHAR while in state YYSTATE. Return the number of bytes copied, including the terminating null byte. If YYRESULT is null, do not copy anything; just return the number of bytes that would be copied. As a special case, return 0 if an ordinary "syntax error" message will do. Return YYSIZE_MAXIMUM if overflow occurs during size calculation. */ static YYSIZE_T yysyntax_error (char *yyresult, int yystate, int yychar) { int yyn = yypact[yystate]; if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) return 0; else { int yytype = YYTRANSLATE (yychar); YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; int yysize_overflow = 0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; int yyx; # if 0 /* This is so xgettext sees the translatable formats that are constructed on the fly. */ YY_("syntax error, unexpected %s"); YY_("syntax error, unexpected %s, expecting %s"); YY_("syntax error, unexpected %s, expecting %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); # endif char *yyfmt; char const *yyf; static char const yyunexpected[] = "syntax error, unexpected %s"; static char const yyexpecting[] = ", expecting %s"; static char const yyor[] = " or %s"; char yyformat[sizeof yyunexpected + sizeof yyexpecting - 1 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) * (sizeof yyor - 1))]; char const *yyprefix = yyexpecting; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 1; yyarg[0] = yytname[yytype]; yyfmt = yystpcpy (yyformat, yyunexpected); for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; yyformat[sizeof yyunexpected - 1] = '\0'; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; yyfmt = yystpcpy (yyfmt, yyprefix); yyprefix = yyor; } yyf = YY_(yyformat); yysize1 = yysize + yystrlen (yyf); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; if (yysize_overflow) return YYSIZE_MAXIMUM; if (yyresult) { /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ char *yyp = yyresult; int yyi = 0; while ((*yyp = *yyf) != '\0') { if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyf += 2; } else { yyp++; yyf++; } } } return yysize; } } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; /*-------------------------. | yyparse or yypush_parse. | `-------------------------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *YYPARSE_PARAM) #else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; #endif #else /* ! YYPARSE_PARAM */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void) #else int yyparse () #endif #endif { int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: `yyss': related to states. `yyvs': related to semantic values. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yytoken = 0; yyss = yyssa; yyvs = yyvsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; *++yyvsp = yylval; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 2: /* Line 1455 of yacc.c */ #line 236 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { DtParserResult=(yyvsp[(1) - (2)].value); return 0; ;} break; case 3: /* Line 1455 of yacc.c */ #line 237 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { DtParserResult=(yyvsp[(1) - (2)].value); return 0; ;} break; case 4: /* Line 1455 of yacc.c */ #line 244 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(2) - (2)].value), OP_EXP_LOGICAL_NOT, (yyvsp[(2) - (2)].value));;} break; case 5: /* Line 1455 of yacc.c */ #line 245 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(2) - (2)].value), OP_EXP_ONES_COMPLIMENT, (yyvsp[(2) - (2)].value));;} break; case 6: /* Line 1455 of yacc.c */ #line 249 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_MULTIPLY, (yyvsp[(3) - (3)].value));;} break; case 7: /* Line 1455 of yacc.c */ #line 250 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_DIVIDE, (yyvsp[(3) - (3)].value));;} break; case 8: /* Line 1455 of yacc.c */ #line 251 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_MODULO, (yyvsp[(3) - (3)].value));;} break; case 9: /* Line 1455 of yacc.c */ #line 252 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_ADD, (yyvsp[(3) - (3)].value));;} break; case 10: /* Line 1455 of yacc.c */ #line 253 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_SUBTRACT, (yyvsp[(3) - (3)].value));;} break; case 11: /* Line 1455 of yacc.c */ #line 254 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_SHIFT_RIGHT, (yyvsp[(3) - (3)].value));;} break; case 12: /* Line 1455 of yacc.c */ #line 255 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_SHIFT_LEFT, (yyvsp[(3) - (3)].value));;} break; case 13: /* Line 1455 of yacc.c */ #line 256 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_GREATER, (yyvsp[(3) - (3)].value));;} break; case 14: /* Line 1455 of yacc.c */ #line 257 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_LESS, (yyvsp[(3) - (3)].value));;} break; case 15: /* Line 1455 of yacc.c */ #line 258 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_GREATER_EQUAL, (yyvsp[(3) - (3)].value));;} break; case 16: /* Line 1455 of yacc.c */ #line 259 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_LESS_EQUAL, (yyvsp[(3) - (3)].value));;} break; case 17: /* Line 1455 of yacc.c */ #line 260 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_EQUAL, (yyvsp[(3) - (3)].value));;} break; case 18: /* Line 1455 of yacc.c */ #line 261 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_NOT_EQUAL, (yyvsp[(3) - (3)].value));;} break; case 19: /* Line 1455 of yacc.c */ #line 262 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_AND, (yyvsp[(3) - (3)].value));;} break; case 20: /* Line 1455 of yacc.c */ #line 263 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_XOR, (yyvsp[(3) - (3)].value));;} break; case 21: /* Line 1455 of yacc.c */ #line 264 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_OR, (yyvsp[(3) - (3)].value));;} break; case 22: /* Line 1455 of yacc.c */ #line 265 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_LOGICAL_AND, (yyvsp[(3) - (3)].value));;} break; case 23: /* Line 1455 of yacc.c */ #line 266 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoOperator ((yyvsp[(1) - (3)].value), OP_EXP_LOGICAL_OR, (yyvsp[(3) - (3)].value));;} break; case 24: /* Line 1455 of yacc.c */ #line 271 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = (yyvsp[(2) - (3)].value);;} break; case 25: /* Line 1455 of yacc.c */ #line 275 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtResolveLabel (DtParsertext);;} break; case 26: /* Line 1455 of yacc.c */ #line 286 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoConstant (DtParsertext);;} break; case 27: /* Line 1455 of yacc.c */ #line 290 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoConstant (DtParsertext);;} break; case 28: /* Line 1455 of yacc.c */ #line 294 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" { (yyval.value) = DtDoConstant (DtParsertext);;} break; /* Line 1455 of yacc.c */ #line 1790 "dtparser.tab.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else { YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) { YYSIZE_T yyalloc = 2 * yysize; if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) yyalloc = YYSTACK_ALLOC_MAXIMUM; if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yyalloc); if (yymsg) yymsg_alloc = yyalloc; else { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; } } if (0 < yysize && yysize <= yymsg_alloc) { (void) yysyntax_error (yymsg, yystate, yychar); yyerror (yymsg); } else { yyerror (YY_("syntax error")); if (yysize != 0) goto yyexhaustedlab; } } #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule which action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } *++yyvsp = yylval; /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined(yyoverflow) || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif /* Make sure YYID is used. */ return YYID (yyresult); } /* Line 1675 of yacc.c */ #line 296 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\dtparser.y" /*! [End] no source code translation !*/ /* * Local support functions, including parser entry point */ #define PR_FIRST_PARSE_OPCODE OP_EXP_EOF #define PR_YYTNAME_START 3 /****************************************************************************** * * FUNCTION: DtParsererror * * PARAMETERS: Message - Parser-generated error message * * RETURN: None * * DESCRIPTION: Handler for parser errors * *****************************************************************************/ void DtParsererror ( char const *Message) { DtError (ASL_ERROR, ASL_MSG_SYNTAX, AslGbl_CurrentField, (char *) Message); } /****************************************************************************** * * FUNCTION: DtGetOpName * * PARAMETERS: ParseOpcode - Parser token (OP_EXP_*) * * RETURN: Pointer to the opcode name * * DESCRIPTION: Get the ascii name of the parse opcode for debug output * *****************************************************************************/ char * DtGetOpName ( UINT32 ParseOpcode) { #ifdef ASL_YYTNAME_START /* * First entries (PR_YYTNAME_START) in yytname are special reserved names. * Ignore first 6 characters of name (OP_EXP_) */ return ((char *) yytname [(ParseOpcode - PR_FIRST_PARSE_OPCODE) + PR_YYTNAME_START] + 6); #else return ("[Unknown parser generator]"); #endif } /****************************************************************************** * * FUNCTION: DtEvaluateExpression * * PARAMETERS: ExprString - Expression to be evaluated. Must be * terminated by either a newline or a NUL * string terminator * * RETURN: 64-bit value for the expression * * DESCRIPTION: Main entry point for the DT expression parser * *****************************************************************************/ UINT64 DtEvaluateExpression ( char *ExprString) { DbgPrint (ASL_DEBUG_OUTPUT, "**** Input expression: %s (Base 16)\n", ExprString); /* Point lexer to the input string */ if (DtInitLexer (ExprString)) { DtError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, AslGbl_CurrentField, "Could not initialize lexer"); return (0); } /* Parse/Evaluate the input string (value returned in DtParserResult) */ DtParserparse (); DtTerminateLexer (); DbgPrint (ASL_DEBUG_OUTPUT, "**** Parser returned value: %u (%8.8X%8.8X)\n", (UINT32) DtParserResult, ACPI_FORMAT_UINT64 (DtParserResult)); return (DtParserResult); } acpica-unix-20250404/source/compiler/aslcompiler.h0000775000175000017500000007357614773714131021357 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslcompiler.h - common include file for iASL * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ASLCOMPILER_H #define __ASLCOMPILER_H #include "acpi.h" #include "accommon.h" #include "amlresrc.h" #include "acdebug.h" /* Microsoft-specific */ #if (defined WIN32 || defined WIN64) /* warn : used #pragma pack */ #pragma warning(disable:4103) /* warn : named type definition in parentheses */ #pragma warning(disable:4115) #endif #include #include #include #include #include /* Compiler headers */ #include "asldefine.h" #include "asltypes.h" #include "aslmessages.h" #include "aslglobal.h" #include "preprocess.h" #include "dtcompiler.h" /******************************************************************************* * * Compiler prototypes * ******************************************************************************/ /* * Main ASL parser - generated from flex/bison, lex/yacc, etc. */ ACPI_PARSE_OBJECT * AslDoError ( void); int AslCompilerlex( void); void AslResetCurrentLineBuffer ( void); void AslInsertLineBuffer ( int SourceChar); int AslPopInputFileStack ( void); void AslPushInputFileStack ( FILE *InputFile, char *Filename); void AslParserCleanup ( void); /* * aslstartup - entered from main() */ void AslInitializeGlobals ( void); typedef ACPI_STATUS (*ASL_PATHNAME_CALLBACK) ( char *); ACPI_STATUS AslDoOneFile ( char *Filename); ACPI_STATUS AslCheckForErrorExit ( void); /* * aslcompile - compile mainline */ void AslCompilerSignon ( UINT32 FileId); void AslCompilerFileHeader ( UINT32 FileId); ACPI_STATUS CmDoCompile ( void); int CmDoAslMiddleAndBackEnd ( void); void CmDoOutputFiles ( void); int CmCleanupAndExit ( void); ACPI_STATUS AslDoDisassembly ( void); /* * aslallocate - memory allocation */ void * UtLocalCalloc ( UINT32 Size); void UtExpandLineBuffers ( void); void UtReallocLineBuffers ( char **Buffer, UINT32 OldSize, UINT32 NewSize); void UtFreeLineBuffers ( void); /* * aslcache - local cache support */ char * UtLocalCacheCalloc ( UINT32 Length); ACPI_PARSE_OBJECT * UtParseOpCacheCalloc ( void); DT_SUBTABLE * UtSubtableCacheCalloc ( void); DT_FIELD * UtFieldCacheCalloc ( void); void UtDeleteLocalCaches ( void); /* * aslascii - ascii support */ ACPI_STATUS FlIsFileAsciiSource ( char *Filename, BOOLEAN DisplayErrors); /* * aslwalks - semantic analysis and parse tree walks */ ACPI_STATUS AnOtherSemanticAnalysisWalkBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); ACPI_STATUS AnOtherSemanticAnalysisWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); ACPI_STATUS AnOperandTypecheckWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); ACPI_STATUS AnMethodTypingWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); /* * aslmethod - Control method analysis walk */ ACPI_STATUS MtMethodAnalysisWalkBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); ACPI_STATUS MtMethodAnalysisWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); UINT32 MtProcessTypeOp ( ACPI_PARSE_OBJECT *TypeOp); UINT8 MtProcessParameterTypeList ( ACPI_PARSE_OBJECT *ParamTypeOp, UINT32 *TypeList); /* * aslbtypes - bitfield data types */ UINT32 AnMapObjTypeToBtype ( ACPI_PARSE_OBJECT *Op); UINT32 AnMapArgTypeToBtype ( UINT32 ArgType); UINT32 AnGetBtype ( ACPI_PARSE_OBJECT *Op); void AnFormatBtype ( char *Buffer, UINT32 Btype); /* * aslanalyze - Support functions for parse tree walks */ void AnCheckId ( ACPI_PARSE_OBJECT *Op, ACPI_NAME Type); /* Values for Type argument above */ #define ASL_TYPE_HID 0 #define ASL_TYPE_CID 1 BOOLEAN AnIsInternalMethod ( ACPI_PARSE_OBJECT *Op); UINT32 AnGetInternalMethodReturnType ( ACPI_PARSE_OBJECT *Op); BOOLEAN AnLastStatementIsReturn ( ACPI_PARSE_OBJECT *Op); void AnCheckMethodReturnValue ( ACPI_PARSE_OBJECT *Op, const ACPI_OPCODE_INFO *OpInfo, ACPI_PARSE_OBJECT *ArgOp, UINT32 RequiredBtypes, UINT32 ThisNodeBtype); BOOLEAN AnIsResultUsed ( ACPI_PARSE_OBJECT *Op); void ApCheckForGpeNameConflict ( ACPI_PARSE_OBJECT *Op); void ApCheckRegMethod ( ACPI_PARSE_OBJECT *Op); BOOLEAN ApFindNameInScope ( char *Name, ACPI_PARSE_OBJECT *Op); BOOLEAN ApFindNameInDeviceTree ( char *Name, ACPI_PARSE_OBJECT *Op); /* * aslerror - error handling/reporting */ void AslAbort ( void); void AslDualParseOpError ( UINT8 Level, UINT16 MainMessageId, ACPI_PARSE_OBJECT *MainOp, char *MainMessage, UINT16 SecondMessageId, ACPI_PARSE_OBJECT *SecondOp, char *SecondaryMessage); void AslError ( UINT8 Level, UINT16 MessageId, ACPI_PARSE_OBJECT *Op, char *ExtraMessage); void AslCheckExpectedExceptions ( void); ACPI_STATUS AslLogExpectedException ( char *MessageIdString); ACPI_STATUS AslElevateException ( char *MessageIdString); ACPI_STATUS AslDisableException ( char *MessageIdString); BOOLEAN AslIsExceptionIgnored ( char *Filename, UINT32 LineNumber, UINT8 Level, UINT16 MessageId); void AslLogExpectedExceptionByLine ( char *MessageIdString); void AslCoreSubsystemError ( ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status, char *ExtraMessage, BOOLEAN Abort); int AslCompilererror( const char *s); void AslCommonError ( UINT8 Level, UINT16 MessageId, UINT32 CurrentLineNumber, UINT32 LogicalLineNumber, UINT32 LogicalByteOffset, UINT32 Column, char *Filename, char *ExtraMessage); void AslCommonError2 ( UINT8 Level, UINT16 MessageId, UINT32 LineNumber, UINT32 Column, char *SourceLine, char *Filename, char *ExtraMessage); void AePrintException ( UINT32 FileId, ASL_ERROR_MSG *Enode, char *Header); void AePrintErrorLog ( UINT32 FileId); void AeClearErrorLog ( void); /* * asllisting - generate all "listing" type files */ void LsDoListings ( void); void LsWriteNodeToAsmListing ( ACPI_PARSE_OBJECT *Op); void LsWriteNode ( ACPI_PARSE_OBJECT *Op, UINT32 FileId); void LsDumpParseTree ( void); /* * asllistsup - Listing file support utilities */ void LsDumpAscii ( UINT32 FileId, UINT32 Count, UINT8 *Buffer); void LsDumpAsciiInComment ( UINT32 FileId, UINT32 Count, UINT8 *Buffer); void LsCheckException ( UINT32 LineNumber, UINT32 FileId); void LsFlushListingBuffer ( UINT32 FileId); void LsWriteListingHexBytes ( UINT8 *Buffer, UINT32 Length, UINT32 FileId); void LsWriteSourceLines ( UINT32 ToLineNumber, UINT32 ToLogicalLineNumber, UINT32 FileId); UINT32 LsWriteOneSourceLine ( UINT32 FileId); void LsPushNode ( char *Filename); ASL_LISTING_NODE * LsPopNode ( void); /* * aslhex - generate all "hex" output files (C, ASM, ASL) */ void HxDoHexOutput ( void); /* * aslfold - constant folding */ ACPI_STATUS OpcAmlConstantWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); /* * aslmessages - exception strings */ const char * AeDecodeMessageId ( UINT16 MessageId); const char * AeDecodeExceptionLevel ( UINT8 Level); UINT16 AeBuildFullExceptionCode ( UINT8 Level, UINT16 MessageId); /* * asloffset - generate C offset file for BIOS support */ ACPI_STATUS LsAmlOffsetWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); void LsDoOffsetTableHeader ( UINT32 FileId); void LsDoOffsetTableFooter ( UINT32 FileId); /* * aslopcodes - generate AML opcodes */ ACPI_STATUS OpcAmlOpcodeWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); ACPI_STATUS OpcAmlOpcodeUpdateWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); void OpcGenerateAmlOpcode ( ACPI_PARSE_OBJECT *Op); UINT32 OpcSetOptimalIntegerSize ( ACPI_PARSE_OBJECT *Op); void OpcGetIntegerWidth ( ACPI_PARSE_OBJECT *Op); /* * asloperands - generate AML operands for the AML opcodes */ ACPI_PARSE_OBJECT * UtGetArg ( ACPI_PARSE_OBJECT *Op, UINT32 Argn); void OpnGenerateAmlOperands ( ACPI_PARSE_OBJECT *Op); void OpnDoPackage ( ACPI_PARSE_OBJECT *Op); /* * aslopt - optimization */ void OptOptimizeNamePath ( ACPI_PARSE_OBJECT *Op, UINT32 Flags, ACPI_WALK_STATE *WalkState, char *AmlNameString, ACPI_NAMESPACE_NODE *TargetNode); /* * aslpld - ToPLD macro support */ void OpcDoPld ( ACPI_PARSE_OBJECT *Op); /* * aslprintf - Printf/Fprintf macros */ void OpcDoPrintf ( ACPI_PARSE_OBJECT *Op); void OpcDoFprintf ( ACPI_PARSE_OBJECT *Op); /* * aslprune - parse tree pruner */ void AslPruneParseTree ( UINT32 PruneDepth, UINT32 Type); /* * aslcodegen - code generation */ void CgGenerateAmlOutput ( void); void CgLocalWriteAmlData ( ACPI_PARSE_OBJECT *Op, void *Buffer, UINT32 Length); /* * aslfile */ void FlOpenFile ( UINT32 FileId, char *Filename, char *Mode); /* * asllength - calculate/adjust AML package lengths */ ACPI_STATUS LnPackageLengthWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); ACPI_STATUS LnInitLengthsWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); void CgGenerateAmlLengths ( ACPI_PARSE_OBJECT *Op); /* * aslmap - opcode mappings and reserved method names */ ACPI_OBJECT_TYPE AslMapNamedOpcodeToDataType ( UINT16 Opcode); /* * aslpredef - ACPI predefined names support */ BOOLEAN ApCheckForPredefinedMethod ( ACPI_PARSE_OBJECT *Op, ASL_METHOD_INFO *MethodInfo); void ApCheckPredefinedReturnValue ( ACPI_PARSE_OBJECT *Op, ASL_METHOD_INFO *MethodInfo); UINT32 ApCheckForPredefinedName ( ACPI_PARSE_OBJECT *Op, char *Name); void ApCheckForPredefinedObject ( ACPI_PARSE_OBJECT *Op, char *Name); ACPI_STATUS ApCheckObjectType ( const char *PredefinedName, ACPI_PARSE_OBJECT *Op, UINT32 ExpectedBtypes, UINT32 PackageIndex); void ApDisplayReservedNames ( void); /* * aslprepkg - ACPI predefined names support for packages */ void ApCheckPackage ( ACPI_PARSE_OBJECT *ParentOp, const ACPI_PREDEFINED_INFO *Predefined); /* * asltransform - parse tree transformations */ ACPI_STATUS TrAmlTransformWalkBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); ACPI_STATUS TrAmlTransformWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); /* * aslexternal - External opcode support */ ACPI_STATUS ExAmlExternalWalkBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); ACPI_STATUS ExAmlExternalWalkEnd ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); void ExDoExternal ( ACPI_PARSE_OBJECT *Op); /* Values for "Visitation" parameter above */ #define ASL_WALK_VISIT_DOWNWARD 0x01 #define ASL_WALK_VISIT_UPWARD 0x02 #define ASL_WALK_VISIT_DB_SEPARATELY 0x04 #define ASL_WALK_VISIT_TWICE (ASL_WALK_VISIT_DOWNWARD | ASL_WALK_VISIT_UPWARD) /* * aslparseop.c - Parse op create/allocate/cache */ ACPI_PARSE_OBJECT * TrCreateOp ( UINT32 ParseOpcode, UINT32 NumChildren, ...); ACPI_PARSE_OBJECT * TrCreateLeafOp ( UINT32 ParseOpcode); ACPI_PARSE_OBJECT * TrCreateNullTargetOp ( void); ACPI_PARSE_OBJECT * TrCreateAssignmentOp ( ACPI_PARSE_OBJECT *Target, ACPI_PARSE_OBJECT *Source); ACPI_PARSE_OBJECT * TrCreateTargetOp ( ACPI_PARSE_OBJECT *OriginalOp, ACPI_PARSE_OBJECT *ParentOp); ACPI_PARSE_OBJECT * TrCreateValuedLeafOp ( UINT32 ParseOpcode, UINT64 Value); ACPI_PARSE_OBJECT * TrCreateConstantLeafOp ( UINT32 ParseOpcode); ACPI_PARSE_OBJECT * TrAllocateOp ( UINT32 ParseOpcode); void TrPrintOpFlags ( UINT32 Flags, UINT32 OutputLevel); /* * asltree.c - Parse tree management */ void TrSetOpParent ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *ParentOp); ACPI_PARSE_OBJECT * TrSetOpIntegerValue ( UINT32 ParseOpcode, ACPI_PARSE_OBJECT *Op); void TrSetOpEndLineNumber ( ACPI_PARSE_OBJECT *Op); void TrSetOpCurrentFilename ( ACPI_PARSE_OBJECT *Op); void TrSetOpIntegerWidth ( ACPI_PARSE_OBJECT *TableSignature, ACPI_PARSE_OBJECT *Revision); ACPI_PARSE_OBJECT * TrLinkOpChildren ( ACPI_PARSE_OBJECT *Op, UINT32 NumChildren, ...); ACPI_PARSE_OBJECT * TrLinkPeerOp ( ACPI_PARSE_OBJECT *Op1, ACPI_PARSE_OBJECT *Op2); ACPI_PARSE_OBJECT * TrLinkChildOp ( ACPI_PARSE_OBJECT *Op1, ACPI_PARSE_OBJECT *Op2); ACPI_PARSE_OBJECT * TrSetOpFlags ( ACPI_PARSE_OBJECT *Op, UINT32 Flags); ACPI_PARSE_OBJECT * TrSetOpAmlLength ( ACPI_PARSE_OBJECT *Op, UINT32 Length); ACPI_PARSE_OBJECT * TrLinkPeerOps ( UINT32 NumPeers, ...); ACPI_STATUS TrWalkParseTree ( ACPI_PARSE_OBJECT *Op, UINT32 Visitation, ASL_WALK_CALLBACK DescendingCallback, ASL_WALK_CALLBACK AscendingCallback, void *Context); /* * aslfiles - File I/O support */ void FlAddIncludeDirectory ( char *Dir); char * FlMergePathnames ( char *PrefixDir, char *FilePathname); void FlOpenIncludeFile ( ACPI_PARSE_OBJECT *Op); void FlFileError ( UINT32 FileId, UINT8 ErrorId); UINT32 FlGetFileSize ( UINT32 FileId); ACPI_STATUS FlReadFile ( UINT32 FileId, void *Buffer, UINT32 Length); void FlWriteFile ( UINT32 FileId, void *Buffer, UINT32 Length); void FlSeekFile ( UINT32 FileId, long Offset); void FlSeekFileSet ( UINT32 FileId, long Offset); void FlCloseFile ( UINT32 FileId); ACPI_PRINTF_LIKE (2) void FlPrintFile ( UINT32 FileId, char *Format, ...); void FlDeleteFile ( UINT32 FileId); void FlSetLineNumber ( UINT32 LineNumber); void FlSetFilename ( char *Filename); ACPI_STATUS FlOpenInputFile ( char *InputFilename); ACPI_STATUS FlOpenAmlOutputFile ( char *InputFilename); ACPI_STATUS FlOpenMiscOutputFiles ( char *InputFilename); ACPI_STATUS FlInitOneFile ( char *InputFilename); ASL_FILE_SWITCH_STATUS FlSwitchFileSet ( char *InputFilename); FILE * FlGetFileHandle ( UINT32 OutFileId, UINT32 InFileId, char *Filename); ASL_GLOBAL_FILE_NODE * FlGetFileNode ( UINT32 FileId, char *Filename); ASL_GLOBAL_FILE_NODE * FlGetCurrentFileNode ( void); /* * aslhwmap - hardware map summary */ void MpEmitMappingInfo ( void); /* * asload - load namespace in prep for cross reference */ ACPI_STATUS LdLoadNamespace ( ACPI_PARSE_OBJECT *RootOp); /* * asllookup - namespace lookup functions */ void LkFindUnreferencedObjects ( void); /* * aslhelp - help screens */ void Usage ( void); void AslFilenameHelp ( void); void AslDisassemblyHelp ( void); /* * aslnamesp - namespace output file generation */ ACPI_STATUS NsDisplayNamespace ( void); void NsSetupNamespaceListing ( void *Handle); /* * asloptions - command line processing */ int AslCommandLine ( int argc, char **argv); /* * aslxref - namespace cross reference */ ACPI_STATUS XfCrossReferenceNamespace ( void); /* * aslxrefout */ void OtPrintHeaders ( char *Message); void OtCreateXrefFile ( void); void OtXrefWalkPart1 ( ACPI_PARSE_OBJECT *Op, UINT32 Level, ASL_METHOD_INFO *MethodInfo); /* * aslutils - common compiler utilities */ ACPI_PRINTF_LIKE(2) void DbgPrint ( UINT32 Type, char *Format, ...); /* Type values for above */ #define ASL_DEBUG_OUTPUT 0 #define ASL_PARSE_OUTPUT 1 #define ASL_TREE_OUTPUT 2 BOOLEAN UtIsIdInteger ( UINT8 *Target); UINT8 UtIsBigEndianMachine ( void); BOOLEAN UtQueryForOverwrite ( char *Pathname); void UtDumpStringOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level); void UtDumpIntegerOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level, UINT32 IntegerLength); void UtDumpBasicOp ( ACPI_PARSE_OBJECT *Op, UINT32 Level); ACPI_NAMESPACE_NODE * UtGetParentMethodNode ( ACPI_NAMESPACE_NODE *Node); ACPI_PARSE_OBJECT * UtGetParentMethodOp ( ACPI_PARSE_OBJECT *Op); BOOLEAN UtNodeIsDescendantOf ( ACPI_NAMESPACE_NODE *Node1, ACPI_NAMESPACE_NODE *Node2); void UtDisplaySupportedTables ( void); void UtDisplayConstantOpcodes ( void); UINT8 UtBeginEvent ( char *Name); void UtEndEvent ( UINT8 Event); void UtDisplaySummary ( UINT32 FileId); void UtDisplayOneSummary ( UINT32 FileId, BOOLEAN DisplayErrorSummary); void UtConvertByteToHex ( UINT8 RawByte, UINT8 *Buffer); void UtConvertByteToAsmHex ( UINT8 RawByte, UINT8 *Buffer); char * UtGetOpName ( UINT32 ParseOpcode); void UtSetParseOpName ( ACPI_PARSE_OBJECT *Op); ACPI_STATUS UtInternalizeName ( char *ExternalName, char **ConvertedName); BOOLEAN UtNameContainsAllPrefix ( ACPI_PARSE_OBJECT *Op); void UtAttachNamepathToOwner ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *NameNode); ACPI_PARSE_OBJECT * UtCheckIntegerRange ( ACPI_PARSE_OBJECT *Op, UINT32 LowValue, UINT32 HighValue); UINT64 UtDoConstant ( char *String); char * AcpiUtStrdup ( char *String); char * AcpiUtStrcat ( char *String1, char *String2); /* * asluuid - UUID support */ ACPI_STATUS AuValidateUuid ( char *InString); ACPI_STATUS AuConvertUuidToString ( char *UuIdBuffer, char *OutString); /* * aslresource - Resource template generation utilities */ void RsSmallAddressCheck ( UINT8 Type, UINT32 Minimum, UINT32 Maximum, UINT32 Length, UINT32 Alignment, ACPI_PARSE_OBJECT *MinOp, ACPI_PARSE_OBJECT *MaxOp, ACPI_PARSE_OBJECT *LengthOp, ACPI_PARSE_OBJECT *AlignOp, ACPI_PARSE_OBJECT *Op); void RsLargeAddressCheck ( UINT64 Minimum, UINT64 Maximum, UINT64 Length, UINT64 Granularity, UINT8 Flags, ACPI_PARSE_OBJECT *MinOp, ACPI_PARSE_OBJECT *MaxOp, ACPI_PARSE_OBJECT *LengthOp, ACPI_PARSE_OBJECT *GranOp, ACPI_PARSE_OBJECT *Op); UINT16 RsGetStringDataLength ( ACPI_PARSE_OBJECT *InitializerOp); ASL_RESOURCE_NODE * RsAllocateResourceNode ( UINT32 Size); void RsCreateResourceField ( ACPI_PARSE_OBJECT *Op, char *Name, UINT32 ByteOffset, UINT32 BitOffset, UINT32 BitLength); void RsSetFlagBits ( UINT8 *Flags, ACPI_PARSE_OBJECT *Op, UINT8 Position, UINT8 DefaultBit); void RsSetFlagBits16 ( UINT16 *Flags, ACPI_PARSE_OBJECT *Op, UINT8 Position, UINT8 DefaultBit); ACPI_PARSE_OBJECT * RsCompleteNodeAndGetNext ( ACPI_PARSE_OBJECT *Op); void RsCheckListForDuplicates ( ACPI_PARSE_OBJECT *Op); ASL_RESOURCE_NODE * RsDoOneResourceDescriptor ( ASL_RESOURCE_INFO *Info, UINT8 *State); /* Values for State above */ #define ACPI_RSTATE_NORMAL 0 #define ACPI_RSTATE_START_DEPENDENT 1 #define ACPI_RSTATE_DEPENDENT_LIST 2 UINT32 RsLinkDescriptorChain ( ASL_RESOURCE_NODE **PreviousRnode, ASL_RESOURCE_NODE *Rnode); void RsDoResourceTemplate ( ACPI_PARSE_OBJECT *Op); /* * aslrestype1 - Miscellaneous Small descriptors */ ASL_RESOURCE_NODE * RsDoEndTagDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoEndDependentDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoMemory24Descriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoMemory32Descriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoMemory32FixedDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoStartDependentDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoStartDependentNoPriDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoVendorSmallDescriptor ( ASL_RESOURCE_INFO *Info); /* * aslrestype1i - I/O-related Small descriptors */ ASL_RESOURCE_NODE * RsDoDmaDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoFixedDmaDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoFixedIoDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoIoDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoIrqDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoIrqNoFlagsDescriptor ( ASL_RESOURCE_INFO *Info); /* * aslrestype2 - Large resource descriptors */ ASL_RESOURCE_NODE * RsDoInterruptDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoVendorLargeDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoGeneralRegisterDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoGpioIntDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoGpioIoDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoI2cSerialBusDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoSpiSerialBusDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoUartSerialBusDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoCsi2SerialBusDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoPinFunctionDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoPinConfigDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoPinGroupDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoPinGroupFunctionDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoPinGroupConfigDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoClockInputDescriptor ( ASL_RESOURCE_INFO *Info); /* * aslrestype2d - DWord address descriptors */ ASL_RESOURCE_NODE * RsDoDwordIoDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoDwordMemoryDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoDwordPccDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoDwordSpaceDescriptor ( ASL_RESOURCE_INFO *Info); /* * aslrestype2e - Extended address descriptors */ ASL_RESOURCE_NODE * RsDoExtendedIoDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoExtendedMemoryDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoExtendedSpaceDescriptor ( ASL_RESOURCE_INFO *Info); /* * aslrestype2q - QWord address descriptors */ ASL_RESOURCE_NODE * RsDoQwordIoDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoQwordMemoryDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoQwordPccDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoQwordSpaceDescriptor ( ASL_RESOURCE_INFO *Info); /* * aslrestype2w - Word address descriptors */ ASL_RESOURCE_NODE * RsDoWordIoDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoWordPccDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoWordSpaceDescriptor ( ASL_RESOURCE_INFO *Info); ASL_RESOURCE_NODE * RsDoWordBusNumberDescriptor ( ASL_RESOURCE_INFO *Info); /* * Entry to data table compiler subsystem */ ACPI_STATUS DtDoCompile( void); ACPI_STATUS DtCreateTemplates ( char **argv); /* * ASL/ASL+ converter debug */ ACPI_PRINTF_LIKE (1) void CvDbgPrint ( char *Fmt, ...); #endif /* __ASLCOMPILER_H */ acpica-unix-20250404/source/compiler/lex.yy.c0000775000175000017500000013372514773714132020262 0ustar ivanhuivanhu/* A lexical scanner generated by flex */ /* Scanner skeleton version: * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #include /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus #ifndef __cplusplus #define __cplusplus #endif #endif #ifdef __cplusplus #include #include /* Use prototypes in function declarations. */ #define YY_USE_PROTOS /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ #if __STDC__ #define YY_USE_PROTOS #define YY_USE_CONST #endif /* __STDC__ */ #endif /* ! __cplusplus */ #ifdef __TURBOC__ #pragma warn -rch #pragma warn -use #include #include #define YY_USE_CONST #define YY_USE_PROTOS #endif #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif #ifdef YY_USE_PROTOS #define YY_PROTO(proto) proto #else #define YY_PROTO(proto) () #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN yy_start = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START ((yy_start - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #define YY_BUF_SIZE 16384 typedef struct yy_buffer_state *YY_BUFFER_STATE; extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 /* The funky do-while in the following #define is used to turn the definition * int a single C statement (which needs a semi-colon terminator). This * avoids problems with code like: * * if ( condition_holds ) * yyless( 5 ); * else * do_something_else(); * * Prior to using the do-while the compiler would get upset at the * "else" because it interpreted the "if" statement as being all * done when it reached the ';' after the yyless() call. */ /* Return all but the first 'n' matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, yytext_ptr ) /* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */ typedef unsigned int yy_size_t; struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; static YY_BUFFER_STATE yy_current_buffer = 0; /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". */ #define YY_CURRENT_BUFFER yy_current_buffer /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 1; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart YY_PROTO(( FILE *input_file )); void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); void yy_load_buffer_state YY_PROTO(( void )); YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); static void *yy_flex_alloc YY_PROTO(( yy_size_t )); static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); static void yy_flex_free YY_PROTO(( void * )); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) #define yywrap() 1 #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state YY_PROTO(( void )); static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); static int yy_get_next_buffer YY_PROTO(( void )); static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; #define YY_NUM_RULES 32 #define YY_END_OF_BUFFER 33 static yyconst short int yy_accept[50] = { 0, 0, 0, 33, 31, 30, 29, 6, 9, 20, 3, 4, 7, 10, 11, 8, 27, 27, 14, 31, 15, 26, 26, 21, 26, 22, 5, 30, 19, 23, 1, 2, 27, 0, 13, 16, 18, 17, 12, 26, 26, 26, 24, 28, 26, 26, 26, 26, 25, 0 } ; static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 1, 1, 1, 5, 6, 1, 7, 8, 9, 10, 1, 11, 1, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 1, 1, 15, 16, 17, 1, 1, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 19, 19, 1, 1, 1, 21, 1, 1, 18, 18, 18, 22, 23, 24, 19, 19, 25, 19, 19, 19, 19, 26, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 19, 19, 1, 27, 1, 28, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst int yy_meta[29] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 3, 4, 1, 2, 2, 2, 3, 3, 1, 1 } ; static yyconst short int yy_base[54] = { 0, 0, 0, 72, 73, 69, 73, 54, 73, 63, 73, 73, 73, 73, 73, 20, 48, 47, 15, 50, 17, 16, 0, 73, 24, 38, 73, 62, 73, 73, 73, 73, 43, 0, 73, 73, 73, 73, 73, 39, 0, 14, 73, 0, 20, 35, 37, 30, 0, 73, 49, 52, 55, 46 } ; static yyconst short int yy_def[54] = { 0, 49, 1, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 49, 49, 49, 51, 52, 49, 51, 49, 49, 49, 49, 49, 49, 49, 50, 53, 49, 49, 49, 49, 49, 24, 52, 24, 49, 53, 51, 52, 52, 52, 52, 0, 49, 49, 49, 49 } ; static yyconst short int yy_nxt[102] = { 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 22, 23, 24, 21, 21, 22, 22, 25, 26, 30, 34, 35, 31, 37, 38, 40, 40, 39, 44, 40, 40, 40, 40, 40, 40, 45, 40, 41, 43, 40, 40, 32, 48, 32, 39, 39, 39, 40, 40, 40, 47, 46, 39, 49, 27, 42, 36, 49, 33, 29, 28, 27, 49, 3, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49 } ; static yyconst short int yy_chk[102] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 18, 18, 15, 20, 20, 21, 21, 41, 41, 44, 44, 21, 21, 24, 24, 44, 44, 24, 53, 24, 24, 50, 47, 50, 51, 51, 51, 52, 52, 52, 46, 45, 39, 32, 27, 25, 19, 17, 16, 9, 7, 5, 3, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" #define INITIAL 0 #line 2 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" /****************************************************************************** * * Module Name: prparser.l - Flex input file for preprocessor lexer * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "prparser.y.h" /* Buffer to pass strings to the parser */ #define STRING_SETUP strcpy (AslGbl_StringBuffer, PrParsertext);\ PrParserlval.str = AslGbl_StringBuffer #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("prscanner") /* Local prototypes */ static char PrDoCommentType1 ( void); static char PrDoCommentType2 ( void); #line 577 "lex.yy.c" /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap YY_PROTO(( void )); #else extern int yywrap YY_PROTO(( void )); #endif #endif #ifndef YY_NO_UNPUT static void yyunput YY_PROTO(( int c, char *buf_ptr )); #endif #ifndef yytext_ptr static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen YY_PROTO(( yyconst char * )); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput YY_PROTO(( void )); #else static int input YY_PROTO(( void )); #endif #endif #if YY_STACK_USED static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = 0; #ifndef YY_NO_PUSH_STATE static void yy_push_state YY_PROTO(( int new_state )); #endif #ifndef YY_NO_POP_STATE static void yy_pop_state YY_PROTO(( void )); #endif #ifndef YY_NO_TOP_STATE static int yy_top_state YY_PROTO(( void )); #endif #else #define YY_NO_PUSH_STATE 1 #define YY_NO_POP_STATE 1 #define YY_NO_TOP_STATE 1 #endif #ifdef YY_MALLOC_DECL YY_MALLOC_DECL #else #if __STDC__ #ifndef __cplusplus #include #endif #else /* Just try to get by without declaring the routines. This will fail * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) * or sizeof(void*) != sizeof(int). */ #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( yy_current_buffer->yy_is_interactive ) \ { \ int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL int yylex YY_PROTO(( void )) #endif /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ YY_USER_ACTION YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 184 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" #line 730 "lex.yy.c" if ( yy_init ) { yy_init = 0; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! yy_start ) yy_start = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_load_buffer_state(); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = yy_c_buf_p; /* Support of yytext. */ *yy_cp = yy_hold_char; /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = yy_start; yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 50 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 73 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = yy_last_accepting_cpos; yy_current_state = yy_last_accepting_state; yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = yy_hold_char; yy_cp = yy_last_accepting_cpos; yy_current_state = yy_last_accepting_state; goto yy_find_action; case 1: YY_RULE_SETUP #line 185 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" { if (!PrDoCommentType1 ()) {yyterminate ();} } YY_BREAK case 2: YY_RULE_SETUP #line 186 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" { if (!PrDoCommentType2 ()) {yyterminate ();} } YY_BREAK case 3: YY_RULE_SETUP #line 188 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_PAREN_OPEN); YY_BREAK case 4: YY_RULE_SETUP #line 189 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_PAREN_CLOSE); YY_BREAK case 5: YY_RULE_SETUP #line 190 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_ONES_COMPLIMENT); YY_BREAK case 6: YY_RULE_SETUP #line 191 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_LOGICAL_NOT); YY_BREAK case 7: YY_RULE_SETUP #line 192 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_MULTIPLY); YY_BREAK case 8: YY_RULE_SETUP #line 193 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_DIVIDE); YY_BREAK case 9: YY_RULE_SETUP #line 194 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_MODULO); YY_BREAK case 10: YY_RULE_SETUP #line 195 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_ADD); YY_BREAK case 11: YY_RULE_SETUP #line 196 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_SUBTRACT); YY_BREAK case 12: YY_RULE_SETUP #line 197 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_SHIFT_RIGHT); YY_BREAK case 13: YY_RULE_SETUP #line 198 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_SHIFT_LEFT); YY_BREAK case 14: YY_RULE_SETUP #line 199 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_LESS); YY_BREAK case 15: YY_RULE_SETUP #line 200 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_GREATER); YY_BREAK case 16: YY_RULE_SETUP #line 201 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_LESS_EQUAL); YY_BREAK case 17: YY_RULE_SETUP #line 202 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_GREATER_EQUAL); YY_BREAK case 18: YY_RULE_SETUP #line 203 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_EQUAL); YY_BREAK case 19: YY_RULE_SETUP #line 204 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_NOT_EQUAL); YY_BREAK case 20: YY_RULE_SETUP #line 205 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_AND); YY_BREAK case 21: YY_RULE_SETUP #line 206 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_XOR); YY_BREAK case 22: YY_RULE_SETUP #line 207 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_OR); YY_BREAK case 23: YY_RULE_SETUP #line 208 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_LOGICAL_AND); YY_BREAK case 24: YY_RULE_SETUP #line 209 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_LOGICAL_OR); YY_BREAK case 25: YY_RULE_SETUP #line 211 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_DEFINE); YY_BREAK case 26: YY_RULE_SETUP #line 212 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" {STRING_SETUP; return (EXPOP_IDENTIFIER);} YY_BREAK case YY_STATE_EOF(INITIAL): #line 214 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_EOF); /* null end-of-string */ YY_BREAK case 27: YY_RULE_SETUP #line 216 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_NUMBER); YY_BREAK case 28: YY_RULE_SETUP #line 217 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_HEX_NUMBER); YY_BREAK case 29: YY_RULE_SETUP #line 218 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_NEW_LINE); YY_BREAK case 30: YY_RULE_SETUP #line 219 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" /* Ignore */ YY_BREAK case 31: YY_RULE_SETUP #line 221 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" return (EXPOP_EOF); YY_BREAK case 32: YY_RULE_SETUP #line 222 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" ECHO; YY_BREAK #line 977 "lex.yy.c" case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = yy_hold_char; YY_RESTORE_YY_MORE_OFFSET if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between yy_current_buffer and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ yy_n_chars = yy_current_buffer->yy_n_chars; yy_current_buffer->yy_input_file = yyin; yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) { /* This was really a NUL. */ yy_state_type yy_next_state; yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = yytext_ptr + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++yy_c_buf_p; yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = yy_c_buf_p; goto yy_find_action; } } else switch ( yy_get_next_buffer() ) { case EOB_ACT_END_OF_FILE: { yy_did_buffer_switch_on_eof = 0; if ( yywrap() ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: yy_c_buf_p = &yy_current_buffer->yy_ch_buf[yy_n_chars]; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer() { register char *dest = yy_current_buffer->yy_ch_buf; register char *source = yytext_ptr; register int number_to_move, i; int ret_val; if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( yy_current_buffer->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ yy_current_buffer->yy_n_chars = yy_n_chars = 0; else { int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ #ifdef YY_USES_REJECT YY_FATAL_ERROR( "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); #else /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = yy_current_buffer; int yy_c_buf_p_offset = (int) (yy_c_buf_p - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yy_flex_realloc( (void *) b->yy_ch_buf, b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; #endif } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), yy_n_chars, num_to_read ); yy_current_buffer->yy_n_chars = yy_n_chars; } if ( yy_n_chars == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart( yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; yy_current_buffer->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; yy_n_chars += number_to_move; yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state() { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = yy_start; for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 50 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ #ifdef YY_USE_PROTOS static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) #else static yy_state_type yy_try_NUL_trans( yy_current_state ) yy_state_type yy_current_state; #endif { register int yy_is_jam; register char *yy_cp = yy_c_buf_p; register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 50 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 49); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT #ifdef YY_USE_PROTOS static void yyunput( int c, register char *yy_bp ) #else static void yyunput( c, yy_bp ) int c; register char *yy_bp; #endif { register char *yy_cp = yy_c_buf_p; /* undo effects of setting up yytext */ *yy_cp = yy_hold_char; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ register int number_to_move = yy_n_chars + 2; register char *dest = &yy_current_buffer->yy_ch_buf[ yy_current_buffer->yy_buf_size + 2]; register char *source = &yy_current_buffer->yy_ch_buf[number_to_move]; while ( source > yy_current_buffer->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); yy_current_buffer->yy_n_chars = yy_n_chars = yy_current_buffer->yy_buf_size; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; yytext_ptr = yy_bp; yy_hold_char = *yy_cp; yy_c_buf_p = yy_cp; } #endif /* ifndef YY_NO_UNPUT */ #ifdef __cplusplus static int yyinput() #else static int input() #endif { int c; *yy_c_buf_p = yy_hold_char; if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) /* This was really a NUL. */ *yy_c_buf_p = '\0'; else { /* need more input */ int offset = yy_c_buf_p - yytext_ptr; ++yy_c_buf_p; switch ( yy_get_next_buffer() ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart( yyin ); /* fall through */ case EOB_ACT_END_OF_FILE: { if ( yywrap() ) return EOF; if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + offset; break; } } } c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ *yy_c_buf_p = '\0'; /* preserve yytext */ yy_hold_char = *++yy_c_buf_p; return c; } #ifdef YY_USE_PROTOS void yyrestart( FILE *input_file ) #else void yyrestart( input_file ) FILE *input_file; #endif { if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_init_buffer( yy_current_buffer, input_file ); yy_load_buffer_state(); } #ifdef YY_USE_PROTOS void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) #else void yy_switch_to_buffer( new_buffer ) YY_BUFFER_STATE new_buffer; #endif { if ( yy_current_buffer == new_buffer ) return; if ( yy_current_buffer ) { /* Flush out information for old buffer. */ *yy_c_buf_p = yy_hold_char; yy_current_buffer->yy_buf_pos = yy_c_buf_p; yy_current_buffer->yy_n_chars = yy_n_chars; } yy_current_buffer = new_buffer; yy_load_buffer_state(); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ yy_did_buffer_switch_on_eof = 1; } #ifdef YY_USE_PROTOS void yy_load_buffer_state( void ) #else void yy_load_buffer_state() #endif { yy_n_chars = yy_current_buffer->yy_n_chars; yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; yyin = yy_current_buffer->yy_input_file; yy_hold_char = *yy_c_buf_p; } #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) #else YY_BUFFER_STATE yy_create_buffer( file, size ) FILE *file; int size; #endif { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer( b, file ); return b; } #ifdef YY_USE_PROTOS void yy_delete_buffer( YY_BUFFER_STATE b ) #else void yy_delete_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; if ( b == yy_current_buffer ) yy_current_buffer = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yy_flex_free( (void *) b->yy_ch_buf ); yy_flex_free( (void *) b ); } #ifndef YY_ALWAYS_INTERACTIVE #ifndef YY_NEVER_INTERACTIVE extern int isatty YY_PROTO(( int )); #endif #endif #ifdef YY_USE_PROTOS void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) #else void yy_init_buffer( b, file ) YY_BUFFER_STATE b; FILE *file; #endif { yy_flush_buffer( b ); b->yy_input_file = file; b->yy_fill_buffer = 1; #if YY_ALWAYS_INTERACTIVE b->yy_is_interactive = 1; #else #if YY_NEVER_INTERACTIVE b->yy_is_interactive = 0; #else b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; #endif #endif } #ifdef YY_USE_PROTOS void yy_flush_buffer( YY_BUFFER_STATE b ) #else void yy_flush_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == yy_current_buffer ) yy_load_buffer_state(); } #ifndef YY_NO_SCAN_BUFFER #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) #else YY_BUFFER_STATE yy_scan_buffer( base, size ) char *base; yy_size_t size; #endif { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer( b ); return b; } #endif #ifndef YY_NO_SCAN_STRING #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) #else YY_BUFFER_STATE yy_scan_string( yy_str ) yyconst char *yy_str; #endif { int len; for ( len = 0; yy_str[len]; ++len ) ; return yy_scan_bytes( yy_str, len ); } #endif #ifndef YY_NO_SCAN_BYTES #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) #else YY_BUFFER_STATE yy_scan_bytes( bytes, len ) yyconst char *bytes; int len; #endif { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = len + 2; buf = (char *) yy_flex_alloc( n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < len; ++i ) buf[i] = bytes[i]; buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer( buf, n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #endif #ifndef YY_NO_PUSH_STATE #ifdef YY_USE_PROTOS static void yy_push_state( int new_state ) #else static void yy_push_state( new_state ) int new_state; #endif { if ( yy_start_stack_ptr >= yy_start_stack_depth ) { yy_size_t new_size; yy_start_stack_depth += YY_START_STACK_INCR; new_size = yy_start_stack_depth * sizeof( int ); if ( ! yy_start_stack ) yy_start_stack = (int *) yy_flex_alloc( new_size ); else yy_start_stack = (int *) yy_flex_realloc( (void *) yy_start_stack, new_size ); if ( ! yy_start_stack ) YY_FATAL_ERROR( "out of memory expanding start-condition stack" ); } yy_start_stack[yy_start_stack_ptr++] = YY_START; BEGIN(new_state); } #endif #ifndef YY_NO_POP_STATE static void yy_pop_state() { if ( --yy_start_stack_ptr < 0 ) YY_FATAL_ERROR( "start-condition stack underflow" ); BEGIN(yy_start_stack[yy_start_stack_ptr]); } #endif #ifndef YY_NO_TOP_STATE static int yy_top_state() { return yy_start_stack[yy_start_stack_ptr - 1]; } #endif #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif #ifdef YY_USE_PROTOS static void yy_fatal_error( yyconst char msg[] ) #else static void yy_fatal_error( msg ) char msg[]; #endif { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ yytext[yyleng] = yy_hold_char; \ yy_c_buf_p = yytext + n; \ yy_hold_char = *yy_c_buf_p; \ *yy_c_buf_p = '\0'; \ yyleng = n; \ } \ while ( 0 ) /* Internal utility routines. */ #ifndef yytext_ptr #ifdef YY_USE_PROTOS static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) #else static void yy_flex_strncpy( s1, s2, n ) char *s1; yyconst char *s2; int n; #endif { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN #ifdef YY_USE_PROTOS static int yy_flex_strlen( yyconst char *s ) #else static int yy_flex_strlen( s ) yyconst char *s; #endif { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif #ifdef YY_USE_PROTOS static void *yy_flex_alloc( yy_size_t size ) #else static void *yy_flex_alloc( size ) yy_size_t size; #endif { return (void *) malloc( size ); } #ifdef YY_USE_PROTOS static void *yy_flex_realloc( void *ptr, yy_size_t size ) #else static void *yy_flex_realloc( ptr, size ) void *ptr; yy_size_t size; #endif { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } #ifdef YY_USE_PROTOS static void yy_flex_free( void *ptr ) #else static void yy_flex_free( ptr ) void *ptr; #endif { free( ptr ); } #if YY_MAIN int main() { yylex(); return 0; } #endif #line 222 "C:\\Users\\sdumbre\\testclone\\source\\compiler\\prparser.l" /* * Local support functions */ static YY_BUFFER_STATE LexBuffer; /****************************************************************************** * * FUNCTION: PrInitLexer * * PARAMETERS: String - Input string to be parsed * * RETURN: TRUE if parser returns NULL. FALSE otherwise. * * DESCRIPTION: Initialization routine for lexer. The lexer needs * a buffer to handle strings instead of a file. * *****************************************************************************/ int PrInitLexer ( char *String) { LexBuffer = yy_scan_string (String); return (LexBuffer == NULL); } /****************************************************************************** * * FUNCTION: PrTerminateLexer * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Termination routine for thelexer. * *****************************************************************************/ void PrTerminateLexer ( void) { yy_delete_buffer (LexBuffer); } /******************************************************************************** * * FUNCTION: PrDoCommentType1 * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Process a new legacy comment. Just toss it. * ******************************************************************************/ static char PrDoCommentType1 ( void) { int c; Loop: while (((c = input ()) != '*') && (c != EOF)) { } if (c == EOF) { return (FALSE); } if (((c = input ()) != '/') && (c != EOF)) { unput (c); goto Loop; } if (c == EOF) { return (FALSE); } return (TRUE); } /******************************************************************************** * * FUNCTION: PrDoCommentType2 * * PARAMETERS: none * * RETURN: none * * DESCRIPTION: Process a new "//" comment. Just toss it. * ******************************************************************************/ static char PrDoCommentType2 ( void) { int c; while (((c = input ()) != '\n') && (c != EOF)) { } if (c == EOF) { return (FALSE); } return (TRUE); } acpica-unix-20250404/source/compiler/aslrestype1i.c0000775000175000017500000005062414773714131021452 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslrestype1i - Small I/O-related resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslrestype1i") /* * This module contains the I/O-related small resource descriptors: * * DMA * FixedDMA * FixedIO * IO * IRQ * IRQNoFlags */ /******************************************************************************* * * FUNCTION: RsDoDmaDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "DMA" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoDmaDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT32 CurrentByteOffset; UINT32 i; UINT8 DmaChannelMask = 0; UINT8 DmaChannels = 0; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_DMA)); Descriptor = Rnode->Buffer; Descriptor->Dma.DescriptorType = ACPI_RESOURCE_NAME_DMA | ASL_RDESC_DMA_SIZE; /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* DMA type */ RsSetFlagBits (&Descriptor->Dma.Flags, InitializerOp, 5, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_DMATYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Dma.Flags), 5, 2); break; case 1: /* Bus Master */ RsSetFlagBits (&Descriptor->Dma.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_BUSMASTER, CurrentByteOffset + ASL_RESDESC_OFFSET (Dma.Flags), 2); break; case 2: /* Xfer Type (transfer width) */ RsSetFlagBits (&Descriptor->Dma.Flags, InitializerOp, 0, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_XFERTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Dma.Flags), 0, 2); break; case 3: /* Name */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: /* All DMA channel bytes are handled here, after flags and name */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* Up to 8 channels can be specified in the list */ DmaChannels++; if (DmaChannels > 8) { AslError (ASL_ERROR, ASL_MSG_DMA_LIST, InitializerOp, NULL); return (Rnode); } /* Only DMA channels 0-7 are allowed (mask is 8 bits) */ if (InitializerOp->Asl.Value.Integer > 7) { AslError (ASL_ERROR, ASL_MSG_DMA_CHANNEL, InitializerOp, NULL); } /* Build the mask */ DmaChannelMask |= (1 << ((UINT8) InitializerOp->Asl.Value.Integer)); } if (i == 4) /* case 4: First DMA byte */ { /* Check now for duplicates in list */ RsCheckListForDuplicates (InitializerOp); /* Create a named field at the start of the list */ RsCreateByteField (InitializerOp, ACPI_RESTAG_DMA, CurrentByteOffset + ASL_RESDESC_OFFSET (Dma.DmaChannelMask)); } break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Now we can set the channel mask */ Descriptor->Dma.DmaChannelMask = DmaChannelMask; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoFixedDmaDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "FixedDMA" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoFixedDmaDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_FIXED_DMA)); Descriptor = Rnode->Buffer; Descriptor->FixedDma.DescriptorType = ACPI_RESOURCE_NAME_FIXED_DMA | ASL_RDESC_FIXED_DMA_SIZE; /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* DMA Request Lines [WORD] (_DMA) */ Descriptor->FixedDma.RequestLines = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_DMA, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedDma.RequestLines)); break; case 1: /* DMA Channel [WORD] (_TYP) */ Descriptor->FixedDma.Channels = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_DMATYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedDma.Channels)); break; case 2: /* Transfer Width [BYTE] (_SIZ) */ Descriptor->FixedDma.Width = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_XFERTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedDma.Width)); break; case 3: /* Descriptor Name (optional) */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: /* Ignore any extra nodes */ break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoFixedIoDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "FixedIO" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoFixedIoDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *AddressOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_FIXED_IO)); Descriptor = Rnode->Buffer; Descriptor->Io.DescriptorType = ACPI_RESOURCE_NAME_FIXED_IO | ASL_RDESC_FIXED_IO_SIZE; /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Base Address */ Descriptor->FixedIo.Address = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_BASEADDRESS, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedIo.Address)); AddressOp = InitializerOp; break; case 1: /* Length */ Descriptor->FixedIo.AddressLength = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (FixedIo.AddressLength)); break; case 2: /* Name */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Error checks */ if (Descriptor->FixedIo.Address > 0x03FF) { AslError (ASL_WARNING, ASL_MSG_ISA_ADDRESS, AddressOp, NULL); } return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoIoDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "IO" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoIoDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *AlignOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_IO)); Descriptor = Rnode->Buffer; Descriptor->Io.DescriptorType = ACPI_RESOURCE_NAME_IO | ASL_RDESC_IO_SIZE; /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Decode size */ RsSetFlagBits (&Descriptor->Io.Flags, InitializerOp, 0, 1); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Io.Flags), 0); break; case 1: /* Min Address */ Descriptor->Io.Minimum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Io.Minimum)); MinOp = InitializerOp; break; case 2: /* Max Address */ Descriptor->Io.Maximum = (UINT16) InitializerOp->Asl.Value.Integer; RsCreateWordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Io.Maximum)); MaxOp = InitializerOp; break; case 3: /* Alignment */ Descriptor->Io.Alignment = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_ALIGNMENT, CurrentByteOffset + ASL_RESDESC_OFFSET (Io.Alignment)); AlignOp = InitializerOp; break; case 4: /* Length */ Descriptor->Io.AddressLength = (UINT8) InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Io.AddressLength)); LengthOp = InitializerOp; break; case 5: /* Name */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Align values */ RsSmallAddressCheck (ACPI_RESOURCE_NAME_IO, Descriptor->Io.Minimum, Descriptor->Io.Maximum, Descriptor->Io.AddressLength, Descriptor->Io.Alignment, MinOp, MaxOp, LengthOp, AlignOp, Info->DescriptorTypeOp); return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoIrqDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "IRQ" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoIrqDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT32 Interrupts = 0; UINT16 IrqMask = 0; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_IRQ)); /* Length = 3 (with flag byte) */ Descriptor = Rnode->Buffer; Descriptor->Irq.DescriptorType = ACPI_RESOURCE_NAME_IRQ | (ASL_RDESC_IRQ_SIZE + 0x01); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Interrupt Type (or Mode - edge/level) */ RsSetFlagBits (&Descriptor->Irq.Flags, InitializerOp, 0, 1); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Irq.Flags), 0); break; case 1: /* Interrupt Level (or Polarity - Active high/low) */ RsSetFlagBits (&Descriptor->Irq.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTLEVEL, CurrentByteOffset + ASL_RESDESC_OFFSET (Irq.Flags), 3); break; case 2: /* Share Type - Default: exclusive (0) */ RsSetFlagBits (&Descriptor->Irq.Flags, InitializerOp, 4, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_INTERRUPTSHARE, CurrentByteOffset + ASL_RESDESC_OFFSET (Irq.Flags), 4); break; case 3: /* Name */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: /* All IRQ bytes are handled here, after the flags and name */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* Up to 16 interrupts can be specified in the list */ Interrupts++; if (Interrupts > 16) { AslError (ASL_ERROR, ASL_MSG_INTERRUPT_LIST, InitializerOp, NULL); return (Rnode); } /* Only interrupts 0-15 are allowed (mask is 16 bits) */ if (InitializerOp->Asl.Value.Integer > 15) { AslError (ASL_ERROR, ASL_MSG_INTERRUPT_NUMBER, InitializerOp, NULL); } else { IrqMask |= (1 << (UINT8) InitializerOp->Asl.Value.Integer); } } /* Case 4: First IRQ value in list */ if (i == 4) { /* Check now for duplicates in list */ RsCheckListForDuplicates (InitializerOp); /* Create a named field at the start of the list */ RsCreateWordField (InitializerOp, ACPI_RESTAG_INTERRUPT, CurrentByteOffset + ASL_RESDESC_OFFSET (Irq.IrqMask)); } break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Now we can set the channel mask */ Descriptor->Irq.IrqMask = IrqMask; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoIrqNoFlagsDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a short "IRQNoFlags" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoIrqNoFlagsDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ASL_RESOURCE_NODE *Rnode; UINT16 IrqMask = 0; UINT32 Interrupts = 0; UINT32 CurrentByteOffset; UINT32 i; InitializerOp = Info->DescriptorTypeOp->Asl.Child; CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode (sizeof (AML_RESOURCE_IRQ_NOFLAGS)); Descriptor = Rnode->Buffer; Descriptor->Irq.DescriptorType = ACPI_RESOURCE_NAME_IRQ | ASL_RDESC_IRQ_SIZE; /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Name */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: /* IRQ bytes are handled here, after the flags and name */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* Up to 16 interrupts can be specified in the list */ Interrupts++; if (Interrupts > 16) { AslError (ASL_ERROR, ASL_MSG_INTERRUPT_LIST, InitializerOp, NULL); return (Rnode); } /* Only interrupts 0-15 are allowed (mask is 16 bits) */ if (InitializerOp->Asl.Value.Integer > 15) { AslError (ASL_ERROR, ASL_MSG_INTERRUPT_NUMBER, InitializerOp, NULL); } else { IrqMask |= (1 << ((UINT8) InitializerOp->Asl.Value.Integer)); } } /* Case 1: First IRQ value in list */ if (i == 1) { /* Check now for duplicates in list */ RsCheckListForDuplicates (InitializerOp); /* Create a named field at the start of the list */ RsCreateWordField (InitializerOp, ACPI_RESTAG_INTERRUPT, CurrentByteOffset + ASL_RESDESC_OFFSET (Irq.IrqMask)); } break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Now we can set the interrupt mask */ Descriptor->Irq.IrqMask = IrqMask; return (Rnode); } acpica-unix-20250404/source/compiler/aslhelpers.y0000775000175000017500000002666614773714131021226 0ustar ivanhuivanhuNoEcho(' /****************************************************************************** * * Module Name: aslhelpers.y - helper and option terms * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ ') /******************************************************************************* * * ASL Helper Terms * ******************************************************************************/ OptionalBusMasterKeyword : ',' {$$ = TrCreateLeafOp ( PARSEOP_BUSMASTERTYPE_MASTER);} | ',' PARSEOP_BUSMASTERTYPE_MASTER {$$ = TrCreateLeafOp ( PARSEOP_BUSMASTERTYPE_MASTER);} | ',' PARSEOP_BUSMASTERTYPE_NOTMASTER {$$ = TrCreateLeafOp ( PARSEOP_BUSMASTERTYPE_NOTMASTER);} ; OptionalAccessAttribTerm : {$$ = NULL;} | ',' {$$ = NULL;} | ',' ByteConstExpr {$$ = $2;} | ',' AccessAttribKeyword {$$ = $2;} ; OptionalAccessSize : {$$ = TrCreateValuedLeafOp ( PARSEOP_BYTECONST, 0);} | ',' {$$ = TrCreateValuedLeafOp ( PARSEOP_BYTECONST, 0);} | ',' ByteConstExpr {$$ = $2;} ; OptionalAccessTypeKeyword /* Default: AnyAcc */ : {$$ = TrCreateLeafOp ( PARSEOP_ACCESSTYPE_ANY);} | ',' {$$ = TrCreateLeafOp ( PARSEOP_ACCESSTYPE_ANY);} | ',' AccessTypeKeyword {$$ = $2;} ; OptionalAddressingMode : ',' {$$ = NULL;} | ',' AddressingModeKeyword {$$ = $2;} ; OptionalAddressRange : {$$ = NULL;} | ',' {$$ = NULL;} | ',' AddressKeyword {$$ = $2;} ; OptionalBitsPerByte : ',' {$$ = NULL;} | ',' BitsPerByteKeyword {$$ = $2;} ; OptionalBuffer_Last : {$$ = NULL;} | ',' {$$ = NULL;} | ',' RawDataBufferTerm {$$ = $2;} ; OptionalByteConstExpr : {$$ = NULL;} | ',' {$$ = NULL;} | ',' ByteConstExpr {$$ = $2;} ; OptionalDecodeType : ',' {$$ = NULL;} | ',' DecodeKeyword {$$ = $2;} ; OptionalDevicePolarity : ',' {$$ = NULL;} | ',' DevicePolarityKeyword {$$ = $2;} ; OptionalDWordConstExpr : {$$ = NULL;} | ',' {$$ = NULL;} | ',' DWordConstExpr {$$ = $2;} ; OptionalEndian : ',' {$$ = NULL;} | ',' EndianKeyword {$$ = $2;} ; OptionalFlowControl : ',' {$$ = NULL;} | ',' FlowControlKeyword {$$ = $2;} ; OptionalIoRestriction : ',' {$$ = NULL;} | ',' IoRestrictionKeyword {$$ = $2;} ; OptionalListString : {$$ = TrCreateValuedLeafOp ( PARSEOP_STRING_LITERAL, ACPI_TO_INTEGER (""));} /* Placeholder is a NULL string */ | ',' {$$ = TrCreateValuedLeafOp ( PARSEOP_STRING_LITERAL, ACPI_TO_INTEGER (""));} /* Placeholder is a NULL string */ | ',' TermArg {$$ = $2;} ; OptionalLockRuleKeyword /* Default: NoLock */ : {$$ = TrCreateLeafOp ( PARSEOP_LOCKRULE_NOLOCK);} | ',' {$$ = TrCreateLeafOp ( PARSEOP_LOCKRULE_NOLOCK);} | ',' LockRuleKeyword {$$ = $2;} ; OptionalMaxType : ',' {$$ = NULL;} | ',' MaxKeyword {$$ = $2;} ; OptionalMemType : ',' {$$ = NULL;} | ',' MemTypeKeyword {$$ = $2;} ; OptionalMinType : ',' {$$ = NULL;} | ',' MinKeyword {$$ = $2;} ; OptionalNameString : {$$ = NULL;} | ',' {$$ = NULL;} | ',' NameString {$$ = $2;} ; OptionalNameString_Last : {$$ = NULL;} | ',' {$$ = NULL;} | ',' NameString {$$ = $2;} ; OptionalNameString_First : {$$ = TrCreateLeafOp ( PARSEOP_ZERO);} | NameString {$$ = $1;} ; OptionalObjectTypeKeyword : {$$ = TrCreateLeafOp ( PARSEOP_OBJECTTYPE_UNK);} | ',' ObjectTypeKeyword {$$ = $2;} ; OptionalParityType : ',' {$$ = NULL;} | ',' ParityTypeKeyword {$$ = $2;} ; OptionalQWordConstExpr : {$$ = NULL;} | ',' {$$ = NULL;} | ',' QWordConstExpr {$$ = $2;} ; OptionalRangeType : ',' {$$ = NULL;} | ',' RangeTypeKeyword {$$ = $2;} ; OptionalReadWriteKeyword : {$$ = TrCreateLeafOp ( PARSEOP_READWRITETYPE_BOTH);} | PARSEOP_READWRITETYPE_BOTH {$$ = TrCreateLeafOp ( PARSEOP_READWRITETYPE_BOTH);} | PARSEOP_READWRITETYPE_READONLY {$$ = TrCreateLeafOp ( PARSEOP_READWRITETYPE_READONLY);} ; OptionalResourceType_First : {$$ = TrCreateLeafOp ( PARSEOP_RESOURCETYPE_CONSUMER);} | ResourceTypeKeyword {$$ = $1;} ; OptionalResourceType : {$$ = TrCreateLeafOp ( PARSEOP_RESOURCETYPE_CONSUMER);} | ',' {$$ = TrCreateLeafOp ( PARSEOP_RESOURCETYPE_CONSUMER);} | ',' ResourceTypeKeyword {$$ = $2;} ; /* Same as above except default is producer */ OptionalProducerResourceType : {$$ = TrCreateLeafOp ( PARSEOP_RESOURCETYPE_PRODUCER);} | ',' {$$ = TrCreateLeafOp ( PARSEOP_RESOURCETYPE_PRODUCER);} | ',' ResourceTypeKeyword {$$ = $2;} ; OptionalSlaveMode : ',' {$$ = NULL;} | ',' SlaveModeKeyword {$$ = $2;} ; OptionalSlaveMode_First : {$$ = NULL;} | SlaveModeKeyword {$$ = $1;} ; OptionalShareType : {$$ = NULL;} | ',' {$$ = NULL;} | ',' ShareTypeKeyword {$$ = $2;} ; OptionalShareType_First : {$$ = NULL;} | ShareTypeKeyword {$$ = $1;} ; OptionalStopBits : ',' {$$ = NULL;} | ',' StopBitsKeyword {$$ = $2;} ; OptionalStringData : {$$ = NULL;} | ',' {$$ = NULL;} | ',' StringData {$$ = $2;} ; OptionalSyncLevel /* Default: 0 */ : {$$ = TrCreateValuedLeafOp ( PARSEOP_BYTECONST, 0);} | ',' {$$ = TrCreateValuedLeafOp ( PARSEOP_BYTECONST, 0);} | ',' ByteConstExpr {$$ = $2;} ; OptionalTranslationType_Last : {$$ = NULL;} | ',' {$$ = NULL;} | ',' TranslationKeyword {$$ = $2;} ; OptionalType : {$$ = NULL;} | ',' {$$ = NULL;} | ',' TypeKeyword {$$ = $2;} ; OptionalType_Last : {$$ = NULL;} | ',' {$$ = NULL;} | ',' TypeKeyword {$$ = $2;} ; OptionalUpdateRuleKeyword /* Default: Preserve */ : {$$ = TrCreateLeafOp ( PARSEOP_UPDATERULE_PRESERVE);} | ',' {$$ = TrCreateLeafOp ( PARSEOP_UPDATERULE_PRESERVE);} | ',' UpdateRuleKeyword {$$ = $2;} ; OptionalWireMode : ',' {$$ = NULL;} | ',' WireModeKeyword {$$ = $2;} ; OptionalWordConstExpr : ',' {$$ = NULL;} | ',' WordConstExpr {$$ = $2;} ; OptionalXferSize : {$$ = TrCreateValuedLeafOp ( PARSEOP_XFERSIZE_32, 2);} | ',' {$$ = TrCreateValuedLeafOp ( PARSEOP_XFERSIZE_32, 2);} | ',' XferSizeKeyword {$$ = $2;} ; acpica-unix-20250404/source/compiler/asltree.c0000775000175000017500000006074714773714131020473 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asltree - Parse tree management * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acapps.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asltree") /******************************************************************************* * * FUNCTION: TrSetOpIntegerValue * * PARAMETERS: ParseOpcode - New opcode to be assigned to the op * Op - An existing parse op * * RETURN: The updated op * * DESCRIPTION: Used to set the integer value of a op, * usually to a specific size (8, 16, 32, or 64 bits) * ******************************************************************************/ ACPI_PARSE_OBJECT * TrSetOpIntegerValue ( UINT32 ParseOpcode, ACPI_PARSE_OBJECT *Op) { if (!Op) { return (NULL); } DbgPrint (ASL_PARSE_OUTPUT, "\nUpdateOp: Old - %s, New - %s\n", UtGetOpName (Op->Asl.ParseOpcode), UtGetOpName (ParseOpcode)); /* Assign new opcode and name */ if (Op->Asl.ParseOpcode == PARSEOP_ONES) { switch (ParseOpcode) { case PARSEOP_BYTECONST: Op->Asl.Value.Integer = ACPI_UINT8_MAX; break; case PARSEOP_WORDCONST: Op->Asl.Value.Integer = ACPI_UINT16_MAX; break; case PARSEOP_DWORDCONST: Op->Asl.Value.Integer = ACPI_UINT32_MAX; break; /* Don't need to do the QWORD case */ default: /* Don't care about others */ break; } } Op->Asl.ParseOpcode = (UINT16) ParseOpcode; UtSetParseOpName (Op); /* * For the BYTE, WORD, and DWORD constants, make sure that the integer * that was passed in will actually fit into the data type */ switch (ParseOpcode) { case PARSEOP_BYTECONST: UtCheckIntegerRange (Op, 0x00, ACPI_UINT8_MAX); Op->Asl.Value.Integer &= ACPI_UINT8_MAX; break; case PARSEOP_WORDCONST: UtCheckIntegerRange (Op, 0x00, ACPI_UINT16_MAX); Op->Asl.Value.Integer &= ACPI_UINT16_MAX; break; case PARSEOP_DWORDCONST: UtCheckIntegerRange (Op, 0x00, ACPI_UINT32_MAX); Op->Asl.Value.Integer &= ACPI_UINT32_MAX; break; default: /* Don't care about others, don't need to check QWORD */ break; } /* Converter: if this is a method invocation, turn off capture comments */ if (AcpiGbl_CaptureComments && (ParseOpcode == PARSEOP_METHODCALL)) { AslGbl_CommentState.CaptureComments = FALSE; } return (Op); } /******************************************************************************* * * FUNCTION: TrSetOpFlags * * PARAMETERS: Op - An existing parse op * Flags - New flags word * * RETURN: The updated parser op * * DESCRIPTION: Set bits in the op flags word. Will not clear bits, only set * ******************************************************************************/ ACPI_PARSE_OBJECT * TrSetOpFlags ( ACPI_PARSE_OBJECT *Op, UINT32 Flags) { if (!Op) { return (NULL); } DbgPrint (ASL_PARSE_OUTPUT, "\nSetOpFlags: %s Op %p, %8.8X", Op->Asl.ParseOpName, Op, Flags); TrPrintOpFlags (Flags, ASL_PARSE_OUTPUT); DbgPrint (ASL_PARSE_OUTPUT, "\n\n"); Op->Asl.CompileFlags |= Flags; return (Op); } /******************************************************************************* * * FUNCTION: TrSetOpAmlLength * * PARAMETERS: Op - An existing parse op * Length - AML Length * * RETURN: The updated parser op * * DESCRIPTION: Set the AML Length in a op. Used by the parser to indicate * the presence of a op that must be reduced to a fixed length * constant. * ******************************************************************************/ ACPI_PARSE_OBJECT * TrSetOpAmlLength ( ACPI_PARSE_OBJECT *Op, UINT32 Length) { DbgPrint (ASL_PARSE_OUTPUT, "\nSetOpAmlLength: Op %p, %8.8X\n", Op, Length); if (!Op) { return (NULL); } Op->Asl.AmlLength = Length; return (Op); } /******************************************************************************* * * FUNCTION: TrSetOpParent * * PARAMETERS: Op - To be set to new parent * ParentOp - The parent * * RETURN: None, sets Op parent directly * * DESCRIPTION: Change the parent of a parse op. * ******************************************************************************/ void TrSetOpParent ( ACPI_PARSE_OBJECT *Op, ACPI_PARSE_OBJECT *ParentOp) { Op->Asl.Parent = ParentOp; } /******************************************************************************* * * FUNCTION: TrSetOpCurrentFilename * * PARAMETERS: Op - An existing parse op * * RETURN: None * * DESCRIPTION: Save the include file filename. Used for debug output only. * ******************************************************************************/ void TrSetOpCurrentFilename ( ACPI_PARSE_OBJECT *Op) { Op->Asl.Filename = AslGbl_PreviousIncludeFilename; } /******************************************************************************* * * FUNCTION: TrSetOpIntegerWidth * * PARAMETERS: Op - An existing parse op * * RETURN: None * * DESCRIPTION: * ******************************************************************************/ void TrSetOpIntegerWidth ( ACPI_PARSE_OBJECT *TableSignatureOp, ACPI_PARSE_OBJECT *RevisionOp) { /* TBD: Check table sig? (DSDT vs. SSDT) */ /* Handle command-line version override */ if (AslGbl_RevisionOverride) { AcpiUtSetIntegerWidth (AslGbl_RevisionOverride); } else { AcpiUtSetIntegerWidth ((UINT8) RevisionOp->Asl.Value.Integer); } } /******************************************************************************* * * FUNCTION: TrSetOpEndLineNumber * * PARAMETERS: Op - An existing parse op * * RETURN: None. * * DESCRIPTION: Set the ending line numbers (file line and logical line) of a * parse op to the current line numbers. * ******************************************************************************/ void TrSetOpEndLineNumber ( ACPI_PARSE_OBJECT *Op) { /* If the end line # is already set, just return */ if (Op->Asl.EndLine) { return; } Op->Asl.EndLine = AslGbl_CurrentLineNumber; Op->Asl.EndLogicalLine = AslGbl_LogicalLineNumber; } /******************************************************************************* * * FUNCTION: TrLinkOpChildren * * PARAMETERS: Op - An existing parse op * NumChildren - Number of children to follow * ... - A list of child ops to link to the new * op. NumChildren long. * * RETURN: The updated (linked) op * * DESCRIPTION: Link a group of ops to an existing parse op * ******************************************************************************/ ACPI_PARSE_OBJECT * TrLinkOpChildren ( ACPI_PARSE_OBJECT *Op, UINT32 NumChildren, ...) { ACPI_PARSE_OBJECT *Child; ACPI_PARSE_OBJECT *PrevChild; ACPI_PARSE_OBJECT *LastSibling; va_list ap; UINT32 i; BOOLEAN FirstChild; ACPI_FUNCTION_NAME (TrLinkOpChildren); va_start (ap, NumChildren); TrSetOpEndLineNumber (Op); DbgPrint (ASL_PARSE_OUTPUT, "\nLinkChildren Line [%u to %u] NewParent %p Child %u Op %s ", Op->Asl.LineNumber, Op->Asl.EndLine, Op, NumChildren, UtGetOpName(Op->Asl.ParseOpcode)); switch (Op->Asl.ParseOpcode) { case PARSEOP_ASL_CODE: if (!AslGbl_ParseTreeRoot) { DbgPrint (ASL_PARSE_OUTPUT, "Creating first Definition Block\n"); AslGbl_ParseTreeRoot = Op; Op->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; } else { DbgPrint (ASL_PARSE_OUTPUT, "Creating subsequent Definition Block\n"); Op = AslGbl_ParseTreeRoot; } DbgPrint (ASL_PARSE_OUTPUT, "ASLCODE (Tree Completed)->"); break; case PARSEOP_DEFINITION_BLOCK: DbgPrint (ASL_PARSE_OUTPUT, "DEFINITION_BLOCK (Tree Completed)->"); break; case PARSEOP_OPERATIONREGION: DbgPrint (ASL_PARSE_OUTPUT, "OPREGION->"); break; case PARSEOP_OR: DbgPrint (ASL_PARSE_OUTPUT, "OR->"); break; default: /* Nothing to do for other opcodes */ break; } /* The following is for capturing comments */ if (AcpiGbl_CaptureComments) { /* * If there are "regular comments" detected at this point, * then is an endBlk comment. Categorize it as so and distribute * all regular comments to this parse op. */ if (AslGbl_CommentListHead) { Op->Asl.EndBlkComment = AslGbl_CommentListHead; CvDbgPrint ("EndBlk Comment for %s: %s", Op->Asl.ParseOpName, AslGbl_CommentListHead->Comment); AslGbl_CommentListHead = NULL; AslGbl_CommentListTail = NULL; } } /* Link the new op to it's children */ PrevChild = NULL; FirstChild = TRUE; for (i = 0; i < NumChildren; i++) { Child = va_arg (ap, ACPI_PARSE_OBJECT *); if ((Child == PrevChild) && (Child != NULL)) { AslError (ASL_WARNING, ASL_MSG_COMPILER_INTERNAL, Child, "Child op list invalid"); va_end(ap); return (Op); } DbgPrint (ASL_PARSE_OUTPUT, "%p, ", Child); /* * If child is NULL, this means that an optional argument * was omitted. We must create a placeholder with a special * opcode (DEFAULT_ARG) so that the code generator will know * that it must emit the correct default for this argument */ if (!Child) { Child = TrAllocateOp (PARSEOP_DEFAULT_ARG); } /* Link first child to parent */ if (FirstChild) { FirstChild = FALSE; /* * In the case that multiple definition blocks are being compiled, * append the definition block to the end of the child list as the * last sibling. This is done to facilitate namespace cross- * reference between multiple definition blocks. */ if (Op->Asl.Child && (Op->Asl.Child->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK)) { LastSibling = Op->Asl.Child; while (LastSibling->Asl.Next) { LastSibling = LastSibling->Asl.Next; } LastSibling->Asl.Next = Child; } else { Op->Asl.Child = Child; } } /* Point all children to parent */ Child->Asl.Parent = Op; /* Link children in a peer list */ if (PrevChild) { PrevChild->Asl.Next = Child; } /* * This child might be a list, point all ops in the list * to the same parent */ while (Child->Asl.Next) { Child = Child->Asl.Next; Child->Asl.Parent = Op; } PrevChild = Child; } va_end(ap); DbgPrint (ASL_PARSE_OUTPUT, "\n\n"); if (AcpiGbl_CaptureComments) { AslGbl_CommentState.LatestParseOp = Op; CvDbgPrint ("%s=====Set latest parse op to this op.\n", ACPI_GET_FUNCTION_NAME); } return (Op); } /******************************************************************************* * * FUNCTION: TrLinkPeerOp * * PARAMETERS: Op1 - First peer * Op2 - Second peer * * RETURN: Op1 or the non-null op. * * DESCRIPTION: Link two ops as peers. Handles cases where one peer is null. * ******************************************************************************/ ACPI_PARSE_OBJECT * TrLinkPeerOp ( ACPI_PARSE_OBJECT *Op1, ACPI_PARSE_OBJECT *Op2) { ACPI_PARSE_OBJECT *Next; DbgPrint (ASL_PARSE_OUTPUT, "\nLinkPeerOp: 1=%p (%s), 2=%p (%s)\n", Op1, Op1 ? UtGetOpName(Op1->Asl.ParseOpcode) : NULL, Op2, Op2 ? UtGetOpName(Op2->Asl.ParseOpcode) : NULL); if ((!Op1) && (!Op2)) { DbgPrint (ASL_PARSE_OUTPUT, "\nTwo Null ops!\n"); return (Op1); } /* If one of the ops is null, just return the non-null op */ if (!Op2) { return (Op1); } if (!Op1) { return (Op2); } if (Op1 == Op2) { DbgPrint (ASL_DEBUG_OUTPUT, "\n************* Internal error, linking op to itself %p\n", Op1); AslError (ASL_WARNING, ASL_MSG_COMPILER_INTERNAL, Op1, "Linking op to itself"); return (Op1); } Op1->Asl.Parent = Op2->Asl.Parent; /* * Op 1 may already have a peer list (such as an IF/ELSE pair), * so we must walk to the end of the list and attach the new * peer at the end */ Next = Op1; while (Next->Asl.Next) { Next = Next->Asl.Next; } Next->Asl.Next = Op2; return (Op1); } /******************************************************************************* * * FUNCTION: TrLinkPeerOps * * PARAMETERS: NumPeers - The number of ops in the list to follow * ... - A list of ops to link together as peers * * RETURN: The first op in the list (head of the peer list) * * DESCRIPTION: Link together an arbitrary number of peer ops. * ******************************************************************************/ ACPI_PARSE_OBJECT * TrLinkPeerOps ( UINT32 NumPeers, ...) { ACPI_PARSE_OBJECT *This; ACPI_PARSE_OBJECT *Next; va_list ap; UINT32 i; ACPI_PARSE_OBJECT *Start; DbgPrint (ASL_PARSE_OUTPUT, "\nLinkPeerOps: (%u) ", NumPeers); va_start (ap, NumPeers); This = va_arg (ap, ACPI_PARSE_OBJECT *); Start = This; /* * Link all peers */ for (i = 0; i < (NumPeers -1); i++) { DbgPrint (ASL_PARSE_OUTPUT, "%u=%p ", (i+1), This); while (This->Asl.Next) { This = This->Asl.Next; } /* Get another peer op */ Next = va_arg (ap, ACPI_PARSE_OBJECT *); if (!Next) { Next = TrAllocateOp (PARSEOP_DEFAULT_ARG); } /* link new op to the current op */ This->Asl.Next = Next; This = Next; } va_end (ap); DbgPrint (ASL_PARSE_OUTPUT,"\n"); return (Start); } /******************************************************************************* * * FUNCTION: TrLinkChildOp * * PARAMETERS: Op1 - Parent op * Op2 - Op to become a child * * RETURN: The parent op * * DESCRIPTION: Link two ops together as a parent and child * ******************************************************************************/ ACPI_PARSE_OBJECT * TrLinkChildOp ( ACPI_PARSE_OBJECT *Op1, ACPI_PARSE_OBJECT *Op2) { ACPI_PARSE_OBJECT *Next; DbgPrint (ASL_PARSE_OUTPUT, "\nLinkChildOp: Parent=%p (%s), Child=%p (%s)\n", Op1, Op1 ? UtGetOpName(Op1->Asl.ParseOpcode): NULL, Op2, Op2 ? UtGetOpName(Op2->Asl.ParseOpcode): NULL); /* * Converter: if TrLinkChildOp is called to link a method call, * turn on capture comments as it signifies that we are done parsing * a method call. */ if (AcpiGbl_CaptureComments && Op1) { if (Op1->Asl.ParseOpcode == PARSEOP_METHODCALL) { AslGbl_CommentState.CaptureComments = TRUE; } AslGbl_CommentState.LatestParseOp = Op1; } if (!Op1 || !Op2) { return (Op1); } Op1->Asl.Child = Op2; /* Set the child and all peers of the child to point to the parent */ Next = Op2; while (Next) { Next->Asl.Parent = Op1; Next = Next->Asl.Next; } return (Op1); } /******************************************************************************* * * FUNCTION: TrWalkParseTree * * PARAMETERS: Op - Walk starting point * Visitation - Type of walk * DescendingCallback - Called during tree descent * AscendingCallback - Called during tree ascent * Context - To be passed to the callbacks * * RETURN: Status from callback(s) * * DESCRIPTION: Walk the entire parse tree. * ******************************************************************************/ ACPI_STATUS TrWalkParseTree ( ACPI_PARSE_OBJECT *Op, UINT32 Visitation, ASL_WALK_CALLBACK DescendingCallback, ASL_WALK_CALLBACK AscendingCallback, void *Context) { UINT32 Level; BOOLEAN OpPreviouslyVisited; ACPI_PARSE_OBJECT *StartOp = Op; ACPI_STATUS Status; ACPI_PARSE_OBJECT *Restore = NULL; BOOLEAN WalkOneDefinitionBlock = Visitation & ASL_WALK_VISIT_DB_SEPARATELY; if (!AslGbl_ParseTreeRoot) { return (AE_OK); } Level = 0; OpPreviouslyVisited = FALSE; if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK && WalkOneDefinitionBlock) { Restore = Op->Asl.Next; Op->Asl.Next = NULL; } switch (Visitation & ~ASL_WALK_VISIT_DB_SEPARATELY) { case ASL_WALK_VISIT_DOWNWARD: while (Op) { if (!OpPreviouslyVisited) { /* Let the callback process the op. */ Status = DescendingCallback (Op, Level, Context); if (ACPI_SUCCESS (Status)) { /* Visit children first, once */ if (Op->Asl.Child) { Level++; Op = Op->Asl.Child; continue; } } else if (Status != AE_CTRL_DEPTH) { /* Exit immediately on any error */ goto ErrorExit; } } /* Terminate walk at start op */ if (Op == StartOp) { break; } /* No more children, visit peers */ if (Op->Asl.Next) { Op = Op->Asl.Next; OpPreviouslyVisited = FALSE; } else { /* No children or peers, re-visit parent */ if (Level != 0 ) { Level--; } Op = Op->Asl.Parent; OpPreviouslyVisited = TRUE; } } break; case ASL_WALK_VISIT_UPWARD: while (Op) { /* Visit leaf op (no children) or parent op on return trip */ if ((!Op->Asl.Child) || (OpPreviouslyVisited)) { /* Let the callback process the op. */ Status = AscendingCallback (Op, Level, Context); if (ACPI_FAILURE (Status)) { goto ErrorExit; } } else { /* Visit children first, once */ Level++; Op = Op->Asl.Child; continue; } /* Terminate walk at start op */ if (Op == StartOp) { break; } /* No more children, visit peers */ if (Op->Asl.Next) { Op = Op->Asl.Next; OpPreviouslyVisited = FALSE; } else { /* No children or peers, re-visit parent */ if (Level != 0 ) { Level--; } Op = Op->Asl.Parent; OpPreviouslyVisited = TRUE; } } break; case ASL_WALK_VISIT_TWICE: while (Op) { if (OpPreviouslyVisited) { Status = AscendingCallback (Op, Level, Context); if (ACPI_FAILURE (Status)) { goto ErrorExit; } } else { /* Let the callback process the op. */ Status = DescendingCallback (Op, Level, Context); if (ACPI_SUCCESS (Status)) { /* Visit children first, once */ if (Op->Asl.Child) { Level++; Op = Op->Asl.Child; continue; } } else if (Status != AE_CTRL_DEPTH) { /* Exit immediately on any error */ goto ErrorExit; } } /* Terminate walk at start op */ if (Op == StartOp) { break; } /* No more children, visit peers */ if (Op->Asl.Next) { Op = Op->Asl.Next; OpPreviouslyVisited = FALSE; } else { /* No children or peers, re-visit parent */ if (Level != 0 ) { Level--; } Op = Op->Asl.Parent; OpPreviouslyVisited = TRUE; } } break; default: /* No other types supported */ break; } /* If we get here, the walk completed with no errors */ if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK && WalkOneDefinitionBlock) { Op->Asl.Next = Restore; } return (AE_OK); ErrorExit: if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK && WalkOneDefinitionBlock) { Op->Asl.Next = Restore; } return (Status); } acpica-unix-20250404/source/compiler/aslmapoutput.c0000775000175000017500000004273214773714131021564 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslmapoutput - Output/emit the resource descriptor/device maps * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acapps.h" #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acinterp.h" #include "acparser.h" #include "acnamesp.h" #include "amlcode.h" /* This module used for application-level code only */ #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslmapoutput") /* Local prototypes */ static void MpEmitGpioInfo ( void); static void MpEmitSerialInfo ( void); static void MpEmitDeviceTree ( void); static ACPI_STATUS MpEmitOneDevice ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue); static void MpXrefDevices ( ACPI_GPIO_INFO *Info); static ACPI_STATUS MpNamespaceXrefBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); /* Strings used to decode flag bits */ const char *DirectionDecode[] = { "Both I/O ", "InputOnly ", "OutputOnly ", "Preserve " }; const char *PolarityDecode[] = { "ActiveHigh", "ActiveLow ", "ActiveBoth", "Reserved " }; /******************************************************************************* * * FUNCTION: MpEmitMappingInfo * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: External interface. * Map file has already been opened. Emit all of the collected * hardware mapping information. Includes: GPIO information, * Serial information, and a dump of the entire ACPI device tree. * ******************************************************************************/ void MpEmitMappingInfo ( void) { /* Mapfile option enabled? */ if (!AslGbl_MapfileFlag) { return; } if (!AslGbl_GpioList) { FlPrintFile (ASL_FILE_MAP_OUTPUT, "\nNo GPIO devices found\n"); } if (!AslGbl_SerialList) { FlPrintFile (ASL_FILE_MAP_OUTPUT, "\nNo Serial devices found (I2C/SPI/UART)\n"); } if (!AslGbl_GpioList && !AslGbl_SerialList) { return; } /* Headers */ FlPrintFile (ASL_FILE_MAP_OUTPUT, "\nResource Descriptor Connectivity Map\n"); FlPrintFile (ASL_FILE_MAP_OUTPUT, "------------------------------------\n"); /* Emit GPIO and Serial descriptors, then entire ACPI device tree */ MpEmitGpioInfo (); MpEmitSerialInfo (); MpEmitDeviceTree (); /* Clear the lists - no need to free memory here */ AslGbl_SerialList = NULL; AslGbl_GpioList = NULL; } /******************************************************************************* * * FUNCTION: MpEmitGpioInfo * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Emit the info about all GPIO devices found during the * compile or disassembly. * ******************************************************************************/ static void MpEmitGpioInfo ( void) { ACPI_GPIO_INFO *Info; char *Type; char *PrevDeviceName = NULL; const char *Direction; const char *Polarity; char *ParentPathname; const char *Description; char *HidString; const AH_DEVICE_ID *HidInfo; /* Walk the GPIO descriptor list */ Info = AslGbl_GpioList; while (Info) { HidString = MpGetHidViaNamestring (Info->DeviceName); /* Print header info for the controller itself */ if (!PrevDeviceName || strcmp (PrevDeviceName, Info->DeviceName)) { FlPrintFile (ASL_FILE_MAP_OUTPUT, "\n\nGPIO Controller: %-8s %-28s", HidString, Info->DeviceName); HidInfo = AcpiAhMatchHardwareId (HidString); if (HidInfo) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // %s", HidInfo->Description); } FlPrintFile (ASL_FILE_MAP_OUTPUT, "\n\nPin Type Direction Polarity" " Dest _HID Destination\n"); } PrevDeviceName = Info->DeviceName; /* Setup various strings based upon the type (GpioInt or GpioIo) */ switch (Info->Type) { case AML_RESOURCE_GPIO_TYPE_INT: Type = "GpioInt"; Direction = "-Interrupt-"; Polarity = PolarityDecode[Info->Polarity]; break; case AML_RESOURCE_GPIO_TYPE_IO: Type = "GpioIo "; Direction = DirectionDecode[Info->Direction]; Polarity = " "; break; default: continue; } /* Emit the GPIO info */ FlPrintFile (ASL_FILE_MAP_OUTPUT, "%4.4X %s %s %s ", Info->PinNumber, Type, Direction, Polarity); ParentPathname = NULL; HidString = MpGetConnectionInfo (Info->Op, Info->PinIndex, &Info->TargetNode, &ParentPathname); if (HidString) { /* * This is a Connection() field * Attempt to find all references to the field. */ FlPrintFile (ASL_FILE_MAP_OUTPUT, "%8s %-28s", HidString, ParentPathname); MpXrefDevices (Info); } else { /* * For Devices, attempt to get the _HID description string. * Failing that (many _HIDs are not recognized), attempt to * get the _DDN description string. */ HidString = MpGetParentDeviceHid (Info->Op, &Info->TargetNode, &ParentPathname); FlPrintFile (ASL_FILE_MAP_OUTPUT, "%8s %-28s", HidString, ParentPathname); /* Get the _HID description or _DDN string */ HidInfo = AcpiAhMatchHardwareId (HidString); if (HidInfo) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // %s", HidInfo->Description); } else if ((Description = MpGetDdnValue (ParentPathname))) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // %s (_DDN)", Description); } } FlPrintFile (ASL_FILE_MAP_OUTPUT, "\n"); ACPI_FREE (ParentPathname); Info = Info->Next; } } /******************************************************************************* * * FUNCTION: MpEmitSerialInfo * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Emit the info about all Serial devices found during the * compile or disassembly. * ******************************************************************************/ static void MpEmitSerialInfo ( void) { ACPI_SERIAL_INFO *Info; char *Type; char *ParentPathname; char *PrevDeviceName = NULL; char *HidString; const AH_DEVICE_ID *HidInfo; const char *Description; AML_RESOURCE *Resource; /* Walk the constructed serial descriptor list */ Info = AslGbl_SerialList; while (Info) { Resource = Info->Resource; switch (Resource->CommonSerialBus.Type) { case AML_RESOURCE_I2C_SERIALBUSTYPE: Type = "I2C "; break; case AML_RESOURCE_SPI_SERIALBUSTYPE: Type = "SPI "; break; case AML_RESOURCE_UART_SERIALBUSTYPE: Type = "UART"; break; default: Type = "UNKN"; break; } HidString = MpGetHidViaNamestring (Info->DeviceName); /* Print header info for the controller itself */ if (!PrevDeviceName || strcmp (PrevDeviceName, Info->DeviceName)) { FlPrintFile (ASL_FILE_MAP_OUTPUT, "\n\n%s Controller: ", Type); FlPrintFile (ASL_FILE_MAP_OUTPUT, "%-8s %-28s", HidString, Info->DeviceName); HidInfo = AcpiAhMatchHardwareId (HidString); if (HidInfo) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // %s", HidInfo->Description); } FlPrintFile (ASL_FILE_MAP_OUTPUT, "\n\n"); FlPrintFile (ASL_FILE_MAP_OUTPUT, "Type Address Speed Dest _HID Destination\n"); } PrevDeviceName = Info->DeviceName; FlPrintFile (ASL_FILE_MAP_OUTPUT, "%s %4.4X %8.8X ", Type, Info->Address, Info->Speed); ParentPathname = NULL; HidString = MpGetConnectionInfo (Info->Op, 0, &Info->TargetNode, &ParentPathname); if (HidString) { /* * This is a Connection() field * Attempt to find all references to the field. */ FlPrintFile (ASL_FILE_MAP_OUTPUT, "%8s %-28s", HidString, ParentPathname); } else { /* Normal resource template */ HidString = MpGetParentDeviceHid (Info->Op, &Info->TargetNode, &ParentPathname); FlPrintFile (ASL_FILE_MAP_OUTPUT, "%8s %-28s", HidString, ParentPathname); /* Get the _HID description or _DDN string */ HidInfo = AcpiAhMatchHardwareId (HidString); if (HidInfo) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // %s", HidInfo->Description); } else if ((Description = MpGetDdnValue (ParentPathname))) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // %s (_DDN)", Description); } } FlPrintFile (ASL_FILE_MAP_OUTPUT, "\n"); ACPI_FREE (ParentPathname); Info = Info->Next; } } /******************************************************************************* * * FUNCTION: MpEmitDeviceTree * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Emit information about all devices within the ACPI namespace. * ******************************************************************************/ static void MpEmitDeviceTree ( void) { FlPrintFile (ASL_FILE_MAP_OUTPUT, "\n\nACPI Device Tree\n"); FlPrintFile (ASL_FILE_MAP_OUTPUT, "----------------\n\n"); FlPrintFile (ASL_FILE_MAP_OUTPUT, "Device Pathname " "_HID Description\n\n"); /* Walk the namespace from the root */ (void) AcpiNsWalkNamespace (ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, FALSE, MpEmitOneDevice, NULL, NULL, NULL); } /******************************************************************************* * * FUNCTION: MpEmitOneDevice * * PARAMETERS: ACPI_NAMESPACE_WALK callback * * RETURN: Status * * DESCRIPTION: Emit information about one ACPI device in the namespace. Used * during dump of all device objects within the namespace. * ******************************************************************************/ static ACPI_STATUS MpEmitOneDevice ( ACPI_HANDLE ObjHandle, UINT32 NestingLevel, void *Context, void **ReturnValue) { char *DevicePathname; char *DdnString; char *HidString; const AH_DEVICE_ID *HidInfo; /* Device pathname */ DevicePathname = AcpiNsGetExternalPathname ( ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle)); FlPrintFile (ASL_FILE_MAP_OUTPUT, "%-32s", DevicePathname); /* _HID or _DDN */ HidString = MpGetHidValue ( ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle)); FlPrintFile (ASL_FILE_MAP_OUTPUT, "%8s", HidString); HidInfo = AcpiAhMatchHardwareId (HidString); if (HidInfo) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // %s", HidInfo->Description); } else if ((DdnString = MpGetDdnValue (DevicePathname))) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // %s (_DDN)", DdnString); } FlPrintFile (ASL_FILE_MAP_OUTPUT, "\n"); ACPI_FREE (DevicePathname); return (AE_OK); } /******************************************************************************* * * FUNCTION: MpXrefDevices * * PARAMETERS: Info - A GPIO Info block * * RETURN: None * * DESCRIPTION: Cross-reference the parse tree and find all references to the * specified GPIO device. * ******************************************************************************/ static void MpXrefDevices ( ACPI_GPIO_INFO *Info) { /* Walk the entire parse tree */ TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, MpNamespaceXrefBegin, NULL, Info); if (!Info->References) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // **** No references in table"); } } /******************************************************************************* * * FUNCTION: MpNamespaceXrefBegin * * PARAMETERS: WALK_PARSE_TREE callback * * RETURN: Status * * DESCRIPTION: Walk parse tree callback used to cross-reference GPIO pins. * ******************************************************************************/ static ACPI_STATUS MpNamespaceXrefBegin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_GPIO_INFO *Info = ACPI_CAST_PTR (ACPI_GPIO_INFO, Context); const ACPI_OPCODE_INFO *OpInfo; char *DevicePathname; ACPI_PARSE_OBJECT *ParentOp; char *HidString; ACPI_FUNCTION_TRACE_PTR (MpNamespaceXrefBegin, Op); /* * If this node is the actual declaration of a name * [such as the XXXX name in "Method (XXXX)"], * we are not interested in it here. We only care about names that * are references to other objects within the namespace and the * parent objects of name declarations */ if (Op->Asl.CompileFlags & OP_IS_NAME_DECLARATION) { return (AE_OK); } /* We are only interested in opcodes that have an associated name */ OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); if ((OpInfo->Flags & AML_NAMED) || (OpInfo->Flags & AML_CREATE)) { return (AE_OK); } if ((Op->Asl.ParseOpcode != PARSEOP_NAMESTRING) && (Op->Asl.ParseOpcode != PARSEOP_NAMESEG) && (Op->Asl.ParseOpcode != PARSEOP_METHODCALL)) { return (AE_OK); } if (!Op->Asl.Node) { return (AE_OK); } ParentOp = Op->Asl.Parent; if (ParentOp->Asl.ParseOpcode == PARSEOP_FIELD) { return (AE_OK); } if (Op->Asl.Node == Info->TargetNode) { while (ParentOp && (!ParentOp->Asl.Node)) { ParentOp = ParentOp->Asl.Parent; } if (ParentOp) { DevicePathname = AcpiNsGetExternalPathname ( ParentOp->Asl.Node); if (!Info->References) { FlPrintFile (ASL_FILE_MAP_OUTPUT, " // References:"); } HidString = MpGetHidViaNamestring (DevicePathname); FlPrintFile (ASL_FILE_MAP_OUTPUT, " %s [%s]", DevicePathname, HidString); Info->References++; ACPI_FREE (DevicePathname); } } return (AE_OK); } acpica-unix-20250404/source/compiler/aslhelp.c0000775000175000017500000002625714773714131020462 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslhelp - iASL help screens * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acapps.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslhelp") /******************************************************************************* * * FUNCTION: Usage * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display option help message. * Optional items in square brackets. * ******************************************************************************/ void Usage ( void) { printf (ACPI_COMMON_SIGNON (ASL_COMPILER_NAME)); printf ("%s\n\n", ASL_COMPLIANCE); ACPI_USAGE_HEADER ("iasl [Options] [Files]"); printf ("\nGeneral:\n"); ACPI_OPTION ("-@ ", "Specify command file"); ACPI_OPTION ("-I ", "Specify additional include directory"); ACPI_OPTION ("-p ", "Specify path/filename prefix for all output files"); ACPI_OPTION ("-v", "Display compiler version"); ACPI_OPTION ("-vd", "Display compiler build date and time"); ACPI_OPTION ("-vo", "Enable optimization comments"); ACPI_OPTION ("-vs", "Disable signon"); ACPI_OPTION ("-ld", "Disable deterministic output"); printf ("\nHelp:\n"); ACPI_OPTION ("-h", "This message"); ACPI_OPTION ("-hc", "Display operators allowed in constant expressions"); ACPI_OPTION ("-hd", "Info for obtaining and disassembling binary ACPI tables"); ACPI_OPTION ("-hf", "Display help for output filename generation"); ACPI_OPTION ("-hr", "Display ACPI reserved method names"); ACPI_OPTION ("-ht", "Display currently supported ACPI table names"); printf ("\nPreprocessor:\n"); ACPI_OPTION ("-D ", "Define symbol for preprocessor use"); ACPI_OPTION ("-li", "Create preprocessed output file (*.i)"); ACPI_OPTION ("-P", "Preprocess only and create preprocessor output file (*.i)"); ACPI_OPTION ("-Pn", "Disable preprocessor"); printf ("\nErrors, Warnings, and Remarks:\n"); ACPI_OPTION ("-va", "Disable all errors/warnings/remarks"); ACPI_OPTION ("-ve", "Report only errors (ignore warnings and remarks)"); ACPI_OPTION ("-vi", "Less verbose errors and warnings for use with IDEs"); ACPI_OPTION ("-vr", "Disable remarks"); ACPI_OPTION ("-vw ", "Ignore specific error, warning or remark"); ACPI_OPTION ("-vx ", "Expect a specific warning, remark, or error"); ACPI_OPTION ("-w <1|2|3>", "Set warning reporting level"); ACPI_OPTION ("-we", "Report warnings as errors"); ACPI_OPTION ("-ww ", "Report specific warning or remark as error"); printf ("\nAML Bytecode Generation (*.aml):\n"); ACPI_OPTION ("-oa", "Disable all optimizations (compatibility mode)"); ACPI_OPTION ("-of", "Disable constant folding"); ACPI_OPTION ("-oi", "Disable integer optimization to Zero/One/Ones"); ACPI_OPTION ("-on", "Disable named reference string optimization"); ACPI_OPTION ("-ot", "Disable typechecking"); ACPI_OPTION ("-cr", "Disable Resource Descriptor error checking"); ACPI_OPTION ("-in", "Ignore NoOp operators"); ACPI_OPTION ("-r ", "Override table header Revision (1-255)"); printf ("\nListings:\n"); ACPI_OPTION ("-l", "Create mixed listing file (ASL source and AML) (*.lst)"); ACPI_OPTION ("-lm", "Create hardware summary map file (*.map)"); ACPI_OPTION ("-ln", "Create namespace file (*.nsp)"); ACPI_OPTION ("-ls", "Create combined source file (expanded includes) (*.src)"); ACPI_OPTION ("-lx", "Create cross-reference file (*.xrf)"); printf ("\nFirmware Support - C Text Output:\n"); ACPI_OPTION ("-tc", "Create hex AML table in C (*.hex)"); ACPI_OPTION ("-sc", "Create named hex AML arrays in C (*.c)"); ACPI_OPTION ("-ic", "Create include file in C for -sc symbols (*.h)"); ACPI_OPTION ("-so", "Create namespace AML offset table in C (*.offset.h)"); printf ("\nFirmware Support - Assembler Text Output:\n"); ACPI_OPTION ("-ta", "Create hex AML table in assembler (*.hex)"); ACPI_OPTION ("-sa", "Create named hex AML arrays in assembler (*.asm)"); ACPI_OPTION ("-ia", "Create include file in assembler for -sa symbols (*.inc)"); printf ("\nFirmware Support - ASL Text Output:\n"); ACPI_OPTION ("-ts", "Create hex AML table in ASL (Buffer object) (*.hex)"); printf ("\nLegacy-ASL to ASL+ Converter:\n"); ACPI_OPTION ("-ca ", "Convert legacy-ASL source file to new ASL+ file"); ACPI_OPTION ("", " (Original comments are passed through to ASL+ file)"); printf ("\nData Table Compiler:\n"); ACPI_OPTION ("-tp", "Compile tables with flex/bison prototype"); ACPI_OPTION ("-G", "Compile custom table that contains generic operators"); ACPI_OPTION ("-T |ALL", "Create ACPI table template/example files"); ACPI_OPTION ("-T ", "Emit DSDT and SSDTs to same file"); ACPI_OPTION ("-vt", "Create verbose template files (full disassembly)"); printf ("\nAML Disassembler:\n"); ACPI_OPTION ("-d ", "Disassemble or decode binary ACPI tables to file (*.dsl)"); ACPI_OPTION ("", " (Optional, file type is automatically detected)"); ACPI_OPTION ("-da ", "Disassemble multiple tables from single namespace"); ACPI_OPTION ("-db", "Do not translate Buffers to Resource Templates"); ACPI_OPTION ("-dc ", "Disassemble AML and immediately compile it"); ACPI_OPTION ("", " (Obtain DSDT from current system if no input file)"); ACPI_OPTION ("-df", "Force disassembler to assume table contains valid AML"); ACPI_OPTION ("-dl", "Emit legacy ASL code only (no C-style operators)"); ACPI_OPTION ("-ds ", "Specify a table signature(4) (CDAT table only)"); ACPI_OPTION ("-e ", "Include ACPI table(s) for external symbol resolution"); ACPI_OPTION ("-fe ", "Specify external symbol declaration file"); ACPI_OPTION ("-in", "Ignore NoOp opcodes"); ACPI_OPTION ("-l", "Disassemble to mixed ASL and AML code"); ACPI_OPTION ("-vt", "Dump binary table data in hex format within output file"); printf ("\nDebug Options:\n"); ACPI_OPTION ("-bc", "Create converter debug file (*.cdb)"); ACPI_OPTION ("-bf", "Create debug file (full output) (*.txt)"); ACPI_OPTION ("-bs", "Create debug file (parse tree only) (*.txt)"); ACPI_OPTION ("-bp ", "Prune ASL parse tree"); ACPI_OPTION ("-bt ", "Object type to be pruned from the parse tree"); ACPI_OPTION ("-f", "Ignore errors, force creation of AML output file(s)"); ACPI_OPTION ("-m ", "Set internal line buffer size (in Kbytes)"); ACPI_OPTION ("-n", "Parse only, no output generation"); ACPI_OPTION ("-oc", "Display compile times and statistics"); ACPI_OPTION ("-x ", "Set debug level for trace output"); ACPI_OPTION ("-z", "Do not insert new compiler ID for DataTables"); } /******************************************************************************* * * FUNCTION: FilenameHelp * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display help message for output filename generation * ******************************************************************************/ void AslFilenameHelp ( void) { printf ("\nAML output filename generation:\n"); printf (" Output filenames are generated by appending an extension to a common\n"); printf (" filename prefix. The filename prefix is obtained via one of the\n"); printf (" following methods (in priority order):\n"); printf (" 1) The -p option specifies the prefix\n"); printf (" 2) The prefix of the AMLFileName in the ASL Definition Block\n"); printf (" 3) The prefix of the input filename\n"); printf ("\n"); } /******************************************************************************* * * FUNCTION: AslDisassemblyHelp * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Display help message for obtaining and disassembling AML/ASL * files. * ******************************************************************************/ void AslDisassemblyHelp ( void) { printf ("\nObtaining binary ACPI tables and disassembling to ASL source code.\n\n"); printf ("Use the following ACPICA toolchain:\n"); printf (" AcpiDump: Dump all ACPI tables to a hex ascii file\n"); printf (" AcpiXtract: Extract one or more binary ACPI tables from AcpiDump output\n"); printf (" iASL -d : Disassemble a binary ACPI table to ASL source code\n"); printf ("\n"); } acpica-unix-20250404/source/compiler/asloperands.c0000775000175000017500000010443014773714131021333 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asloperands - AML operand processing * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asloperands") /* Local prototypes */ static void OpnDoField ( ACPI_PARSE_OBJECT *Op); static void OpnDoBankField ( ACPI_PARSE_OBJECT *Op); static void OpnDoBuffer ( ACPI_PARSE_OBJECT *Op); static void OpnDoDefinitionBlock ( ACPI_PARSE_OBJECT *Op); static void OpnDoFieldCommon ( ACPI_PARSE_OBJECT *FieldOp, ACPI_PARSE_OBJECT *Op); static void OpnDoIndexField ( ACPI_PARSE_OBJECT *Op); static void OpnDoLoadTable ( ACPI_PARSE_OBJECT *Op); static void OpnDoMethod ( ACPI_PARSE_OBJECT *Op); static void OpnDoMutex ( ACPI_PARSE_OBJECT *Op); static void OpnDoRegion ( ACPI_PARSE_OBJECT *Op); static void OpnAttachNameToNode ( ACPI_PARSE_OBJECT *Op); /******************************************************************************* * * FUNCTION: OpnDoMutex * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the operands for the MUTEX ASL keyword. * ******************************************************************************/ static void OpnDoMutex ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; Next = Op->Asl.Child; Next = Next->Asl.Next; if (Next->Asl.Value.Integer > 15) { AslError (ASL_ERROR, ASL_MSG_SYNC_LEVEL, Next, NULL); } return; } /******************************************************************************* * * FUNCTION: OpnDoMethod * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the operands for the METHOD ASL keyword. * ******************************************************************************/ static void OpnDoMethod ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; /* Optional arguments for this opcode with defaults */ UINT8 NumArgs = 0; UINT8 Serialized = 0; UINT8 Concurrency = 0; UINT8 MethodFlags; /* Opcode and package length first */ /* Method name */ Next = Op->Asl.Child; /* Num args */ Next = Next->Asl.Next; if (Next->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { NumArgs = (UINT8) Next->Asl.Value.Integer; Next->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; } /* Serialized Flag */ Next = Next->Asl.Next; if (Next->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { Serialized = (UINT8) Next->Asl.Value.Integer; Next->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; } /* Concurrency value (valid values are 0-15) */ Next = Next->Asl.Next; if (Next->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* This is a ByteConstExpr, so eval the constant now */ OpcAmlConstantWalk (Next, 0, NULL); if (Next->Asl.Value.Integer > 15) { AslError (ASL_ERROR, ASL_MSG_SYNC_LEVEL, Next, NULL); } Concurrency = (UINT8) Next->Asl.Value.Integer; } /* Put the bits in their proper places */ MethodFlags = (UINT8) ((NumArgs & 0x7) | ((Serialized & 0x1) << 3) | ((Concurrency & 0xF) << 4)); /* Use the last node for the combined flags byte */ Next->Asl.Value.Integer = MethodFlags; Next->Asl.AmlOpcode = AML_RAW_DATA_BYTE; Next->Asl.AmlLength = 1; Next->Asl.ParseOpcode = PARSEOP_RAW_DATA; /* Save the arg count in the first node */ Op->Asl.Extra = NumArgs; } /******************************************************************************* * * FUNCTION: OpnDoFieldCommon * * PARAMETERS: FieldOp - Node for an ASL field * Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the AML operands for the various field keywords, * FIELD, BANKFIELD, INDEXFIELD * ******************************************************************************/ static void OpnDoFieldCommon ( ACPI_PARSE_OBJECT *FieldOp, ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; ACPI_PARSE_OBJECT *PkgLengthNode; UINT32 CurrentBitOffset; UINT32 NewBitOffset; UINT8 AccessType; UINT8 LockRule; UINT8 UpdateRule; UINT8 FieldFlags; UINT32 MinimumLength; /* AccessType -- not optional, so no need to check for DEFAULT_ARG */ AccessType = (UINT8) Op->Asl.Value.Integer; Op->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; /* Set the access type in the parent (field) node for use later */ FieldOp->Asl.Value.Integer = AccessType; /* LockRule -- not optional, so no need to check for DEFAULT_ARG */ Next = Op->Asl.Next; LockRule = (UINT8) Next->Asl.Value.Integer; Next->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; /* UpdateRule -- not optional, so no need to check for DEFAULT_ARG */ Next = Next->Asl.Next; UpdateRule = (UINT8) Next->Asl.Value.Integer; /* * Generate the flags byte. The various fields are already * in the right bit position via translation from the * keywords by the parser. */ FieldFlags = (UINT8) (AccessType | LockRule | UpdateRule); /* Use the previous node to be the FieldFlags node */ /* Set the node to RAW_DATA */ Next->Asl.Value.Integer = FieldFlags; Next->Asl.AmlOpcode = AML_RAW_DATA_BYTE; Next->Asl.AmlLength = 1; Next->Asl.ParseOpcode = PARSEOP_RAW_DATA; /* Process the FieldUnitList */ Next = Next->Asl.Next; CurrentBitOffset = 0; while (Next) { /* Save the offset of this field unit */ Next->Asl.ExtraValue = CurrentBitOffset; switch (Next->Asl.ParseOpcode) { case PARSEOP_ACCESSAS: PkgLengthNode = Next->Asl.Child; AccessType = (UINT8) PkgLengthNode->Asl.Value.Integer; /* Nothing additional to do */ break; case PARSEOP_OFFSET: /* New offset into the field */ PkgLengthNode = Next->Asl.Child; NewBitOffset = ((UINT32) PkgLengthNode->Asl.Value.Integer) * 8; /* * Examine the specified offset in relation to the * current offset counter. */ if (NewBitOffset < CurrentBitOffset) { /* * Not allowed to specify a backwards offset! * Issue error and ignore this node. */ AslError (ASL_ERROR, ASL_MSG_BACKWARDS_OFFSET, PkgLengthNode, NULL); Next->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; PkgLengthNode->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; } #ifdef _OBSOLETE_CODE /* * January 2022: removed this check due to complaints by users * for too many (invalid) remarks. */ else if (NewBitOffset == CurrentBitOffset) { /* * This Offset() operator is redundant and not needed, * because the offset value is the same as the current * offset. */ AslError (ASL_REMARK, ASL_MSG_OFFSET, PkgLengthNode, NULL); if (AslGbl_OptimizeTrivialParseNodes) { /* * Optimize this Offset() operator by removing/ignoring * it. Set the related nodes to default. */ Next->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; PkgLengthNode->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; AslError (ASL_OPTIMIZATION, ASL_MSG_OFFSET, PkgLengthNode, "Optimizer has removed statement"); } else { /* Optimization is disabled, treat as a valid Offset */ PkgLengthNode->Asl.Value.Integer = NewBitOffset - CurrentBitOffset; CurrentBitOffset = NewBitOffset; } } #endif else { /* * Valid new offset - set the value to be inserted into the AML * and update the offset counter. */ PkgLengthNode->Asl.Value.Integer = NewBitOffset - CurrentBitOffset; CurrentBitOffset = NewBitOffset; } break; case PARSEOP_NAMESEG: case PARSEOP_RESERVED_BYTES: /* Named or reserved field entry */ PkgLengthNode = Next->Asl.Child; NewBitOffset = (UINT32) PkgLengthNode->Asl.Value.Integer; CurrentBitOffset += NewBitOffset; if ((NewBitOffset == 0) && (Next->Asl.ParseOpcode == PARSEOP_RESERVED_BYTES) && AslGbl_OptimizeTrivialParseNodes) { /* * Unnamed field with a bit length of zero. We can * safely just ignore this. However, we will not ignore * a named field of zero length, we don't want to just * toss out a name. */ Next->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; PkgLengthNode->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; break; } /* Save the current AccessAs value for error checking later */ switch (AccessType) { case AML_FIELD_ACCESS_ANY: case AML_FIELD_ACCESS_BYTE: case AML_FIELD_ACCESS_BUFFER: default: MinimumLength = 8; break; case AML_FIELD_ACCESS_WORD: MinimumLength = 16; break; case AML_FIELD_ACCESS_DWORD: MinimumLength = 32; break; case AML_FIELD_ACCESS_QWORD: MinimumLength = 64; break; } PkgLengthNode->Asl.ExtraValue = MinimumLength; break; default: /* All supported field opcodes must appear above */ break; } /* Move on to next entry in the field list */ Next = Next->Asl.Next; } } /******************************************************************************* * * FUNCTION: OpnDoField * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the AML operands for the FIELD ASL keyword * ******************************************************************************/ static void OpnDoField ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; /* Opcode is parent node */ /* First child is field name */ Next = Op->Asl.Child; /* Second child is the AccessType */ OpnDoFieldCommon (Op, Next->Asl.Next); } /******************************************************************************* * * FUNCTION: OpnDoIndexField * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the AML operands for the INDEXFIELD ASL keyword * ******************************************************************************/ static void OpnDoIndexField ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; /* Opcode is parent node */ /* First child is the index name */ Next = Op->Asl.Child; /* Second child is the data name */ Next = Next->Asl.Next; /* Third child is the AccessType */ OpnDoFieldCommon (Op, Next->Asl.Next); } /******************************************************************************* * * FUNCTION: OpnDoBankField * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the AML operands for the BANKFIELD ASL keyword * ******************************************************************************/ static void OpnDoBankField ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; /* Opcode is parent node */ /* First child is the region name */ Next = Op->Asl.Child; /* Second child is the bank name */ Next = Next->Asl.Next; /* Third child is the bank value */ Next = Next->Asl.Next; /* Fourth child is the AccessType */ OpnDoFieldCommon (Op, Next->Asl.Next); } /******************************************************************************* * * FUNCTION: OpnDoRegion * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Tries to get the length of the region. Can only do this at * compile time if the length is a constant. * ******************************************************************************/ static void OpnDoRegion ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; ACPI_ADR_SPACE_TYPE SpaceId; /* Opcode is parent node */ /* First child is the region name */ Next = Op->Asl.Child; /* Second child is the space ID */ Next = Next->Asl.Next; SpaceId = (ACPI_ADR_SPACE_TYPE) Next->Common.Value.Integer; /* Third child is the region offset */ Next = Next->Asl.Next; /* Fourth child is the region length */ Next = Next->Asl.Next; if (Next->Asl.ParseOpcode == PARSEOP_INTEGER) { /* Check for zero length */ Op->Asl.Value.Integer = Next->Asl.Value.Integer; if (!Op->Asl.Value.Integer && (SpaceId < ACPI_NUM_PREDEFINED_REGIONS)) { AslError (ASL_ERROR, ASL_MSG_REGION_LENGTH, Op, NULL); } } else { Op->Asl.Value.Integer = ACPI_UINT64_MAX; } } /******************************************************************************* * * FUNCTION: OpnDoBuffer * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the AML operands for the BUFFER ASL keyword. We * build a single raw byte buffer from the initialization nodes, * each parse node contains a buffer byte. * ******************************************************************************/ static void OpnDoBuffer ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *BufferLengthOp; /* Optional arguments for this opcode with defaults */ UINT32 BufferLength = 0; /* Opcode and package length first */ /* Buffer Length is next, followed by the initializer list */ BufferLengthOp = Op->Asl.Child; InitializerOp = BufferLengthOp->Asl.Next; /* * If the BufferLength is not an INTEGER or was not specified in the ASL * (DEFAULT_ARG), it is a TermArg that is * evaluated at run-time, and we are therefore finished. */ if ((BufferLengthOp->Asl.ParseOpcode != PARSEOP_INTEGER) && (BufferLengthOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG)) { return; } /* * We want to count the number of items in the initializer list, because if * it is larger than the buffer length, we will define the buffer size * to be the size of the initializer list (as per the ACPI Specification) */ switch (InitializerOp->Asl.ParseOpcode) { case PARSEOP_INTEGER: case PARSEOP_BYTECONST: case PARSEOP_WORDCONST: case PARSEOP_DWORDCONST: /* The peer list contains the byte list (if any...) */ while (InitializerOp) { /* For buffers, this is a list of raw bytes */ InitializerOp->Asl.AmlOpcode = AML_RAW_DATA_BYTE; InitializerOp->Asl.AmlLength = 1; InitializerOp->Asl.ParseOpcode = PARSEOP_RAW_DATA; BufferLength++; InitializerOp = ASL_GET_PEER_NODE (InitializerOp); } break; case PARSEOP_STRING_LITERAL: /* * Only one initializer, the string. Buffer must be big enough to hold * the string plus the null termination byte */ BufferLength = strlen (InitializerOp->Asl.Value.String) + 1; InitializerOp->Asl.AmlOpcode = AML_RAW_DATA_BUFFER; InitializerOp->Asl.AmlLength = BufferLength; InitializerOp->Asl.ParseOpcode = PARSEOP_RAW_DATA; break; case PARSEOP_RAW_DATA: /* Buffer nodes are already initialized (e.g. Unicode operator) */ return; case PARSEOP_DEFAULT_ARG: break; default: AslError (ASL_ERROR, ASL_MSG_INVALID_OPERAND, InitializerOp, "Unknown buffer initializer opcode"); printf ("Unknown buffer initializer opcode [%s]\n", UtGetOpName (InitializerOp->Asl.ParseOpcode)); return; } /* Check if initializer list is longer than the buffer length */ if (BufferLengthOp->Asl.Value.Integer > BufferLength) { BufferLength = (UINT32) BufferLengthOp->Asl.Value.Integer; } if (!BufferLength) { /* No length AND no items -- issue notice */ AslError (ASL_REMARK, ASL_MSG_BUFFER_LENGTH, BufferLengthOp, NULL); /* But go ahead and put the buffer length of zero into the AML */ } /* * Just set the buffer size node to be the buffer length, regardless * of whether it was previously an integer or a default_arg placeholder */ BufferLengthOp->Asl.ParseOpcode = PARSEOP_INTEGER; BufferLengthOp->Asl.AmlOpcode = AML_DWORD_OP; BufferLengthOp->Asl.Value.Integer = BufferLength; (void) OpcSetOptimalIntegerSize (BufferLengthOp); UtSetParseOpName (BufferLengthOp); /* Remaining nodes are handled via the tree walk */ } /******************************************************************************* * * FUNCTION: OpnDoPackage * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the AML operands for the PACKAGE ASL keyword. NOTE: * can only be called after constants have been folded, to ensure * that the PackageLength operand has been fully reduced. * ******************************************************************************/ void OpnDoPackage ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *PackageLengthOp; UINT32 PackageLength = 0; /* Opcode and package length first, followed by the initializer list */ PackageLengthOp = Op->Asl.Child; InitializerOp = PackageLengthOp->Asl.Next; /* Count the number of items in the initializer list */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* The peer list contains the byte list (if any...) */ while (InitializerOp) { PackageLength++; InitializerOp = InitializerOp->Asl.Next; } } /* If package length is a constant, compare to the initializer list */ if ((PackageLengthOp->Asl.ParseOpcode == PARSEOP_INTEGER) || (PackageLengthOp->Asl.ParseOpcode == PARSEOP_QWORDCONST)) { if (PackageLengthOp->Asl.Value.Integer > PackageLength) { /* * Allow package length to be longer than the initializer * list -- but if the length of initializer list is nonzero, * issue a message since this is probably a coding error, * even though technically legal. */ if (PackageLength > 0) { AslError (ASL_REMARK, ASL_MSG_LIST_LENGTH_SHORT, PackageLengthOp, NULL); } PackageLength = (UINT32) PackageLengthOp->Asl.Value.Integer; } else if (PackageLengthOp->Asl.Value.Integer < PackageLength) { /* * The package length is smaller than the length of the * initializer list. This is an error as per the ACPI spec. */ AslError (ASL_ERROR, ASL_MSG_LIST_LENGTH_LONG, PackageLengthOp, NULL); } } if (PackageLengthOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) { /* * This is the case if the PackageLength was left empty - Package() * The package length becomes the length of the initializer list */ Op->Asl.Child->Asl.ParseOpcode = PARSEOP_INTEGER; Op->Asl.Child->Asl.Value.Integer = PackageLength; UtSetParseOpName (Op); /* Set the AML opcode */ (void) OpcSetOptimalIntegerSize (Op->Asl.Child); } /* If not a variable-length package, check for a zero package length */ if ((PackageLengthOp->Asl.ParseOpcode == PARSEOP_INTEGER) || (PackageLengthOp->Asl.ParseOpcode == PARSEOP_QWORDCONST) || (PackageLengthOp->Asl.ParseOpcode == PARSEOP_ZERO) || (PackageLengthOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG)) { if (!PackageLength) { /* No length AND no initializer list -- issue a remark */ AslError (ASL_REMARK, ASL_MSG_PACKAGE_LENGTH, PackageLengthOp, NULL); /* But go ahead and put the buffer length of zero into the AML */ } } /* * If the PackageLength is a constant <= 255, we can change the * AML opcode from VarPackage to a simple (ACPI 1.0) Package opcode. */ if (((Op->Asl.Child->Asl.ParseOpcode == PARSEOP_INTEGER) && (Op->Asl.Child->Asl.Value.Integer <= 255)) || (Op->Asl.Child->Asl.ParseOpcode == PARSEOP_ONE) || (Op->Asl.Child->Asl.ParseOpcode == PARSEOP_ONES)|| (Op->Asl.Child->Asl.ParseOpcode == PARSEOP_ZERO)) { Op->Asl.AmlOpcode = AML_PACKAGE_OP; Op->Asl.ParseOpcode = PARSEOP_PACKAGE; /* * Just set the package size node to be the package length, regardless * of whether it was previously an integer or a default_arg placeholder */ PackageLengthOp->Asl.AmlOpcode = AML_RAW_DATA_BYTE; PackageLengthOp->Asl.AmlLength = 1; PackageLengthOp->Asl.ParseOpcode = PARSEOP_RAW_DATA; PackageLengthOp->Asl.Value.Integer = PackageLength; } /* Remaining nodes are handled via the tree walk */ } /******************************************************************************* * * FUNCTION: OpnDoLoadTable * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the AML operands for the LOADTABLE ASL keyword. * ******************************************************************************/ static void OpnDoLoadTable ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Next; /* Opcode is parent node */ /* First child is the table signature */ Next = Op->Asl.Child; /* Second child is the OEM ID*/ Next = Next->Asl.Next; /* Third child is the OEM table ID */ Next = Next->Asl.Next; /* Fourth child is the RootPath string */ Next = Next->Asl.Next; if (Next->Asl.ParseOpcode == PARSEOP_ZERO) { Next->Asl.ParseOpcode = PARSEOP_STRING_LITERAL; Next->Asl.Value.String = "\\"; Next->Asl.AmlLength = 2; OpcGenerateAmlOpcode (Next); } #ifdef ASL_FUTURE_IMPLEMENTATION /* TBD: NOT IMPLEMENTED */ /* Fifth child is the [optional] ParameterPathString */ /* Sixth child is the [optional] ParameterData */ Next = Next->Asl.Next; if (Next->Asl.ParseOpcode == DEFAULT_ARG) { Next->Asl.AmlLength = 1; Next->Asl.ParseOpcode = ZERO; OpcGenerateAmlOpcode (Next); } Next = Next->Asl.Next; if (Next->Asl.ParseOpcode == DEFAULT_ARG) { Next->Asl.AmlLength = 1; Next->Asl.ParseOpcode = ZERO; OpcGenerateAmlOpcode (Next); } #endif } /******************************************************************************* * * FUNCTION: OpnDoDefinitionBlock * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Construct the AML operands for the DEFINITIONBLOCK ASL keyword * ******************************************************************************/ static void OpnDoDefinitionBlock ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Child; ACPI_SIZE Length; UINT32 i; char *Filename; ACPI_STATUS Status; /* * These nodes get stuffed into the table header. They are special * cased when the table is written to the output file. * * Mark all of these nodes as non-usable so they won't get output * as AML opcodes! */ /* Get AML filename. Use it if non-null */ Child = Op->Asl.Child; if (Child->Asl.Value.Buffer && *Child->Asl.Value.Buffer && (AslGbl_UseDefaultAmlFilename)) { /* * The walk may traverse multiple definition blocks. Switch files * to ensure that the correct files are manipulated. */ FlSwitchFileSet (Op->Asl.Filename); /* * We will use the AML filename that is embedded in the source file * for the output filename. */ Filename = UtLocalCacheCalloc (strlen (AslGbl_DirectoryPath) + strlen ((char *) Child->Asl.Value.Buffer) + 1); /* Prepend the current directory path */ strcpy (Filename, AslGbl_DirectoryPath); strcat (Filename, (char *) Child->Asl.Value.Buffer); AslGbl_OutputFilenamePrefix = Filename; UtConvertBackslashes (AslGbl_OutputFilenamePrefix); /* * Use the definition block file parameter instead of the input * filename. Since all files were opened previously, remove the * existing file and open a new file with the name of this * definition block parameter. Since AML code generation has yet * to happen, the previous file can be removed without any impacts. */ FlCloseFile (ASL_FILE_AML_OUTPUT); FlDeleteFile (ASL_FILE_AML_OUTPUT); Status = FlOpenAmlOutputFile (AslGbl_OutputFilenamePrefix); if (ACPI_FAILURE (Status)) { AslError (ASL_ERROR, ASL_MSG_OUTPUT_FILE_OPEN, NULL, NULL); return; } } Child->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; /* Signature */ Child = Child->Asl.Next; Child->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; if (Child->Asl.Value.String) { AslGbl_FilesList->TableSignature = Child->Asl.Value.String; AslGbl_TableSignature = Child->Asl.Value.String; if (strlen (AslGbl_TableSignature) != ACPI_NAMESEG_SIZE) { AslError (ASL_ERROR, ASL_MSG_TABLE_SIGNATURE, Child, "Length must be exactly 4 characters"); } for (i = 0; i < ACPI_NAMESEG_SIZE; i++) { if (!isalnum ((int) AslGbl_TableSignature[i])) { AslError (ASL_ERROR, ASL_MSG_TABLE_SIGNATURE, Child, "Contains non-alphanumeric characters"); } } } /* Revision */ Child = Child->Asl.Next; Child->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; /* * We used the revision to set the integer width earlier */ /* OEMID */ Child = Child->Asl.Next; Child->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; if (Child->Asl.Value.String && strlen (Child->Asl.Value.String) > ACPI_OEM_ID_SIZE) { AslError (ASL_ERROR, ASL_MSG_OEM_ID, Child, "Length cannot exceed 6 characters"); } /* OEM TableID */ Child = Child->Asl.Next; Child->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; if (Child->Asl.Value.String) { Length = strlen (Child->Asl.Value.String); if (Length > ACPI_OEM_TABLE_ID_SIZE) { AslError (ASL_ERROR, ASL_MSG_OEM_TABLE_ID, Child, "Length cannot exceed 8 characters"); } AslGbl_TableId = UtLocalCacheCalloc (Length + 1); strcpy (AslGbl_TableId, Child->Asl.Value.String); AslGbl_FilesList->TableId = AslGbl_TableId; /* * Convert anything non-alphanumeric to an underscore. This * allows us to use the TableID to generate unique C symbols. */ for (i = 0; i < Length; i++) { if (!isalnum ((int) AslGbl_TableId[i])) { AslGbl_TableId[i] = '_'; } } } /* OEM Revision */ Child = Child->Asl.Next; Child->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; } /******************************************************************************* * * FUNCTION: UtGetArg * * PARAMETERS: Op - Get an argument for this op * Argn - Nth argument to get * * RETURN: The argument (as an Op object). NULL if argument does not exist * * DESCRIPTION: Get the specified op's argument (peer) * ******************************************************************************/ ACPI_PARSE_OBJECT * UtGetArg ( ACPI_PARSE_OBJECT *Op, UINT32 Argn) { ACPI_PARSE_OBJECT *Arg = NULL; /* Get the requested argument object */ Arg = Op->Asl.Child; while (Arg && Argn) { Argn--; Arg = Arg->Asl.Next; } return (Arg); } /******************************************************************************* * * FUNCTION: OpnAttachNameToNode * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: For the named ASL/AML operators, get the actual name from the * argument list and attach it to the parent node so that we * can get to it quickly later. * ******************************************************************************/ static void OpnAttachNameToNode ( ACPI_PARSE_OBJECT *Op) { ACPI_PARSE_OBJECT *Child = NULL; switch (Op->Asl.AmlOpcode) { case AML_DATA_REGION_OP: case AML_DEVICE_OP: case AML_EVENT_OP: case AML_EXTERNAL_OP: case AML_METHOD_OP: case AML_MUTEX_OP: case AML_REGION_OP: case AML_POWER_RESOURCE_OP: case AML_PROCESSOR_OP: case AML_THERMAL_ZONE_OP: case AML_NAME_OP: case AML_SCOPE_OP: Child = UtGetArg (Op, 0); break; case AML_ALIAS_OP: Child = UtGetArg (Op, 1); break; case AML_CREATE_BIT_FIELD_OP: case AML_CREATE_BYTE_FIELD_OP: case AML_CREATE_WORD_FIELD_OP: case AML_CREATE_DWORD_FIELD_OP: case AML_CREATE_QWORD_FIELD_OP: Child = UtGetArg (Op, 2); break; case AML_CREATE_FIELD_OP: Child = UtGetArg (Op, 3); break; case AML_BANK_FIELD_OP: case AML_INDEX_FIELD_OP: case AML_FIELD_OP: return; default: return; } if (Child) { UtAttachNamepathToOwner (Op, Child); } } /******************************************************************************* * * FUNCTION: OpnGenerateAmlOperands * * PARAMETERS: Op - The parent parse node * * RETURN: None * * DESCRIPTION: Prepare nodes to be output as AML data and operands. The more * complex AML opcodes require processing of the child nodes * (arguments/operands). * ******************************************************************************/ void OpnGenerateAmlOperands ( ACPI_PARSE_OBJECT *Op) { if (Op->Asl.AmlOpcode == AML_RAW_DATA_BYTE) { return; } switch (Op->Asl.ParseOpcode) { case PARSEOP_DEFINITION_BLOCK: OpnDoDefinitionBlock (Op); break; case PARSEOP_METHOD: OpnDoMethod (Op); break; case PARSEOP_MUTEX: OpnDoMutex (Op); break; case PARSEOP_FIELD: OpnDoField (Op); break; case PARSEOP_INDEXFIELD: OpnDoIndexField (Op); break; case PARSEOP_BANKFIELD: OpnDoBankField (Op); break; case PARSEOP_BUFFER: OpnDoBuffer (Op); break; case PARSEOP_LOADTABLE: OpnDoLoadTable (Op); break; case PARSEOP_OPERATIONREGION: OpnDoRegion (Op); break; case PARSEOP_RESOURCETEMPLATE: RsDoResourceTemplate (Op); break; case PARSEOP_NAMESEG: case PARSEOP_NAMESTRING: case PARSEOP_METHODCALL: case PARSEOP_STRING_LITERAL: default: break; } /* TBD: move */ OpnAttachNameToNode (Op); } acpica-unix-20250404/source/compiler/asltypes.h0000775000175000017500000003217314773714131020675 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asltypes.h - compiler data types and struct definitions * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ASLTYPES_H #define __ASLTYPES_H /******************************************************************************* * * Structure definitions * ******************************************************************************/ /* Op flags for the ACPI_PARSE_OBJECT */ #define OP_VISITED 0x00000001 #define OP_AML_PACKAGE 0x00000002 #define OP_IS_TARGET 0x00000004 #define OP_IS_RESOURCE_DESC 0x00000008 #define OP_IS_RESOURCE_FIELD 0x00000010 #define OP_HAS_NO_EXIT 0x00000020 #define OP_IF_HAS_NO_EXIT 0x00000040 #define OP_NAME_INTERNALIZED 0x00000080 #define OP_METHOD_NO_RETVAL 0x00000100 #define OP_METHOD_SOME_NO_RETVAL 0x00000200 #define OP_RESULT_NOT_USED 0x00000400 #define OP_METHOD_TYPED 0x00000800 #define OP_COULD_NOT_REDUCE 0x00001000 #define OP_COMPILE_TIME_CONST 0x00002000 #define OP_IS_TERM_ARG 0x00004000 #define OP_WAS_ONES_OP 0x00008000 #define OP_IS_NAME_DECLARATION 0x00010000 #define OP_COMPILER_EMITTED 0x00020000 #define OP_IS_DUPLICATE 0x00040000 #define OP_IS_RESOURCE_DATA 0x00080000 #define OP_IS_NULL_RETURN 0x00100000 #define OP_NOT_FOUND_DURING_LOAD 0x00200000 #define ACPI_NUM_OP_FLAGS 0x22 /* Keeps information about individual control methods */ typedef struct asl_method_info { ACPI_PARSE_OBJECT *Op; ACPI_PARSE_OBJECT *CurrentOp; struct asl_method_info *Next; UINT32 ValidArgTypes[ACPI_METHOD_NUM_ARGS]; UINT32 ValidReturnTypes; UINT32 NumReturnNoValue; UINT32 NumReturnWithValue; UINT8 NumArguments; UINT8 LocalInitialized[ACPI_METHOD_NUM_LOCALS]; UINT8 ArgInitialized[ACPI_METHOD_NUM_ARGS]; UINT8 HasBeenTyped; UINT8 ShouldBeSerialized; UINT8 CreatesNamedObjects; } ASL_METHOD_INFO; /* Parse tree walk info for control method analysis */ typedef struct asl_analysis_walk_info { ASL_METHOD_INFO *MethodStack; } ASL_ANALYSIS_WALK_INFO; /* An entry in the ParseOpcode to AmlOpcode mapping table */ typedef struct asl_mapping_entry { UINT32 Value; UINT32 AcpiBtype; /* Object type or return type */ UINT16 AmlOpcode; UINT8 Flags; } ASL_MAPPING_ENTRY; /* Parse tree walk info structure */ typedef struct asl_walk_info { ACPI_PARSE_OBJECT **NodePtr; UINT32 *LevelPtr; } ASL_WALK_INFO; /* File info */ typedef struct asl_file_info { FILE *Handle; char *Filename; } ASL_FILE_INFO; typedef struct asl_file_status { UINT32 Line; UINT32 Offset; } ASL_FILE_STATUS; typedef UINT32 ASL_FILE_SWITCH_STATUS; /* File switch status */ #define SWITCH_TO_DIFFERENT_FILE 0 #define SWITCH_TO_SAME_FILE 1 #define FILE_NOT_FOUND 2 /* * File types. Note: Any changes to this table must also be reflected * in the Gbl_Files array. * * Corresponding filename suffixes are in comments * * NOTE: Don't move the first 4 file types * * .xxx file extension: this is used as a temporary .aml file for * the ASL/ASL+ converter and is deleted after conversion. This file * should never be used in the interpreter. */ typedef enum { ASL_FILE_STDOUT = 0, ASL_FILE_STDERR, ASL_FILE_INPUT, /* .asl */ ASL_FILE_AML_OUTPUT, /* .aml */ ASL_FILE_SOURCE_OUTPUT, /* .src */ ASL_FILE_PREPROCESSOR, /* .pre */ ASL_FILE_PREPROCESSOR_USER, /* .i */ ASL_FILE_LISTING_OUTPUT, /* .lst */ ASL_FILE_HEX_OUTPUT, /* .hex */ ASL_FILE_NAMESPACE_OUTPUT, /* .nsp */ ASL_FILE_DEBUG_OUTPUT, /* .txt */ ASL_FILE_ASM_SOURCE_OUTPUT, /* .asm */ ASL_FILE_C_SOURCE_OUTPUT, /* .c */ ASL_FILE_ASM_INCLUDE_OUTPUT,/* .inc */ ASL_FILE_C_INCLUDE_OUTPUT, /* .h */ ASL_FILE_C_OFFSET_OUTPUT, /* .offset.h */ ASL_FILE_MAP_OUTPUT, /* .map */ ASL_FILE_XREF_OUTPUT, /* .xrf */ ASL_FILE_CONV_DEBUG_OUTPUT, /* .cdb */ ASL_FILE_CONV_OUTPUT /* .xxx */ } ASL_FILE_TYPES; #define ASL_MAX_FILE_TYPE 18 #define ASL_NUM_FILES (ASL_MAX_FILE_TYPE + 1) typedef struct asl_file_desc { const char *ShortDescription; const char *Description; } ASL_FILE_DESC; /* Name suffixes used to create filenames for output files */ #define FILE_SUFFIX_ASL_CODE "asl" #define FILE_SUFFIX_AML_CODE "aml" #define FILE_SUFFIX_SOURCE "src" #define FILE_SUFFIX_PREPROCESSOR "pre" #define FILE_SUFFIX_PREPROC_USER "i" #define FILE_SUFFIX_LISTING "lst" #define FILE_SUFFIX_HEX_DUMP "hex" #define FILE_SUFFIX_NAMESPACE "nsp" #define FILE_SUFFIX_DEBUG "txt" #define FILE_SUFFIX_ASM_SOURCE "asm" #define FILE_SUFFIX_C_SOURCE "c" #define FILE_SUFFIX_ASM_INCLUDE "inc" #define FILE_SUFFIX_C_INCLUDE "h" #define FILE_SUFFIX_C_OFFSET "offset.h" #define FILE_SUFFIX_MAP "map" #define FILE_SUFFIX_XREF "xrf" #define FILE_SUFFIX_CONVERT_AML "xxx" #define FILE_SUFFIX_CONVERT_DEBUG "cdb" /* Cache block structure for ParseOps and Strings */ typedef struct asl_cache_info { void *Next; char Buffer[]; } ASL_CACHE_INFO; typedef struct asl_include_dir { char *Dir; struct asl_include_dir *Next; } ASL_INCLUDE_DIR; /* * An entry in the exception list, one for each error/warning * Note: SubError nodes would be treated with the same messageId and Level * as the parent error node. * * The source filename represents the name of the .src of where the error * occurred. This is useful for errors that occur inside of include files. * Since include files aren't recorded as a part of the global files list, * this provides a way to get the included file. */ typedef struct asl_error_msg { UINT32 LineNumber; UINT32 LogicalLineNumber; UINT32 LogicalByteOffset; UINT32 Column; char *Message; struct asl_error_msg *Next; struct asl_error_msg *SubError; char *Filename; char *SourceLine; char *SourceFilename; UINT32 FilenameLength; UINT16 MessageId; UINT8 Level; } ASL_ERROR_MSG; /* An entry in the expected messages array */ typedef struct asl_expected_message { UINT32 MessageId; char *MessageIdStr; BOOLEAN MessageReceived; } ASL_EXPECTED_MESSAGE; /* * An entry in the line-based expected messages list * * TBD: might be possible to merge this with ASL_EXPECTED_MESSAGE */ typedef struct asl_expected_msg_node { struct asl_expected_msg_node *Next; UINT32 MessageId; char *MessageIdStr; struct asl_location_node *LocationList; } ASL_EXPECTED_MSG_NODE; typedef struct asl_location_node { struct asl_location_node *Next; char *Filename; UINT32 LineNumber; UINT32 Column; UINT32 LogicalByteOffset; BOOLEAN MessageReceived; } ASL_LOCATION_NODE; /* An entry in the listing file stack (for include files) */ typedef struct asl_listing_node { char *Filename; UINT32 LineNumber; struct asl_listing_node *Next; } ASL_LISTING_NODE; /* Callback interface for a parse tree walk */ /* * TBD - another copy of this is in adisasm.h, fix */ #ifndef ASL_WALK_CALLBACK_DEFINED typedef ACPI_STATUS (*ASL_WALK_CALLBACK) ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context); #define ASL_WALK_CALLBACK_DEFINED #endif typedef struct asl_event_info { UINT64 StartTime; UINT64 EndTime; char *EventName; BOOLEAN Valid; } ASL_EVENT_INFO; /* Hardware mapping file structures */ typedef struct acpi_gpio_info { struct acpi_gpio_info *Next; ACPI_PARSE_OBJECT *Op; char *DeviceName; ACPI_NAMESPACE_NODE *TargetNode; UINT32 References; UINT32 PinCount; UINT32 PinIndex; UINT16 PinNumber; UINT8 Type; UINT8 Direction; UINT8 Polarity; } ACPI_GPIO_INFO; typedef struct acpi_serial_info { struct acpi_serial_info *Next; ACPI_PARSE_OBJECT *Op; char *DeviceName; ACPI_NAMESPACE_NODE *TargetNode; AML_RESOURCE *Resource; UINT32 Speed; UINT16 Address; } ACPI_SERIAL_INFO; typedef struct asl_method_local { ACPI_PARSE_OBJECT *Op; UINT8 Flags; } ASL_METHOD_LOCAL; /* Values for Flags field above */ #define ASL_LOCAL_INITIALIZED (1) #define ASL_LOCAL_REFERENCED (1<<1) #define ASL_ARG_IS_LOCAL (1<<2) #define ASL_ARG_INITIALIZED (1<<3) #define ASL_ARG_REFERENCED (1<<4) /* Info used to track method counts for cross reference output file */ typedef struct asl_xref_info { UINT32 ThisMethodInvocations; UINT32 TotalPredefinedMethods; UINT32 TotalUserMethods; UINT32 TotalUnreferenceUserMethods; UINT32 ThisObjectReferences; UINT32 TotalObjects; UINT32 TotalUnreferencedObjects; ACPI_PARSE_OBJECT *MethodOp; ACPI_PARSE_OBJECT *CurrentMethodOp; } ASL_XREF_INFO; typedef struct asl_file_node { FILE *File; UINT32 CurrentLineNumber; void *State; char *Filename; struct asl_file_node *Next; } ASL_FILE_NODE; typedef struct asl_files_node { struct asl_file_info Files[ASL_NUM_FILES]; struct asl_files_node *Next; char *TableSignature; char *TableId; UINT32 TotalLineCount; UINT32 OriginalInputFileSize; UINT32 TotalKeywords; UINT32 TotalFields; UINT32 OutputByteLength; UINT32 TotalNamedObjects; UINT32 TotalExecutableOpcodes; BOOLEAN ParserErrorDetected; UINT8 FileType; } ASL_GLOBAL_FILE_NODE; #endif /* __ASLTYPES_H */ acpica-unix-20250404/source/compiler/prutils.c0000775000175000017500000005133414773714132020527 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: prutils - Preprocessor utilities * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT ASL_PREPROCESSOR ACPI_MODULE_NAME ("prutils") /****************************************************************************** * * FUNCTION: PrGetNextToken * * PARAMETERS: Buffer - Current line buffer * MatchString - String with valid token delimiters * Next - Set to next possible token in buffer * * RETURN: Next token (null-terminated). Modifies the input line. * Remainder of line is stored in *Next. * * DESCRIPTION: Local implementation of strtok() with local storage for the * next pointer. Not only thread-safe, but allows multiple * parsing of substrings such as expressions. * *****************************************************************************/ char * PrGetNextToken ( char *Buffer, char *MatchString, char **Next) { char *TokenStart; if (!Buffer) { /* Use Next if it is valid */ Buffer = *Next; if (!(*Next)) { return (NULL); } } /* Skip any leading delimiters */ while (*Buffer) { if (strchr (MatchString, *Buffer)) { Buffer++; } else { break; } } /* Anything left on the line? */ if (!(*Buffer)) { *Next = NULL; return (NULL); } TokenStart = Buffer; /* Find the end of this token */ while (*Buffer) { if (strchr (MatchString, *Buffer)) { *Buffer = 0; *Next = Buffer+1; if (!**Next) { *Next = NULL; } return (TokenStart); } Buffer++; } *Next = NULL; return (TokenStart); } /******************************************************************************* * * FUNCTION: PrError * * PARAMETERS: Level - Seriousness (Warning/error, etc.) * MessageId - Index into global message buffer * Column - Column in current line * * RETURN: None * * DESCRIPTION: Preprocessor error reporting. Front end to AslCommonError2 * ******************************************************************************/ void PrError ( UINT8 Level, UINT16 MessageId, UINT32 Column) { #if 0 AcpiOsPrintf ("%s (%u) : %s", AslGbl_Files[ASL_FILE_INPUT].Filename, AslGbl_CurrentLineNumber, AslGbl_CurrentLineBuffer); #endif if (Column > 120) { Column = 0; } /* TBD: Need Logical line number? */ AslCommonError2 (Level, MessageId, AslGbl_CurrentLineNumber, Column, AslGbl_CurrentLineBuffer, AslGbl_Files[ASL_FILE_INPUT].Filename, "Preprocessor"); AslGbl_PreprocessorError = TRUE; } /******************************************************************************* * * FUNCTION: PrReplaceResizeSubstring * * PARAMETERS: Args - Struct containing name, offset & usecount * Diff1 - Difference in lengths when new < old * Diff2 - Difference in lengths when new > old * i - The curr. no. of iteration of replacement * Token - Substring that replaces Args->Name * * RETURN: None * * DESCRIPTION: Advanced substring replacement in a string using resized buffer. * ******************************************************************************/ void PrReplaceResizeSubstring( PR_MACRO_ARG *Args, UINT32 Diff1, UINT32 Diff2, UINT32 i, char *Token) { UINT32 b, PrevOffset; char *temp; char macro_sep[64]; AslGbl_MacroTokenReplaceBuffer = (char *) realloc (AslGbl_MacroTokenReplaceBuffer, (2 * (strlen (AslGbl_MacroTokenBuffer)))); strcpy (macro_sep, "~,() {}!*/%+-<>=&^|\"\t\n"); /* * When the replacement argument (during invocation) length * < replaced parameter (in the macro function definition * and its expansion) length */ if (Diff1 != 0) { /* * We save the offset value to reset it after replacing each * instance of each arg and setting the offset value to * the start of the arg to be replaced since it changes * with each iteration when arg length != token length */ PrevOffset = Args->Offset[i]; temp = strstr (AslGbl_MacroTokenBuffer, Args->Name); if (temp == NULL) { return; } ResetHere1: temp = strstr (temp, Args->Name); if (temp == NULL) { return; } Args->Offset[i] = strlen (AslGbl_MacroTokenBuffer) - strlen (temp); if (Args->Offset[i] == 0) { goto JumpHere1; } if ((strchr (macro_sep, AslGbl_MacroTokenBuffer[(Args->Offset[i] - 1)])) && (strchr (macro_sep, AslGbl_MacroTokenBuffer[(Args->Offset[i] + strlen (Args->Name))]))) { Args->Offset[i] += 0; } else { temp += strlen (Args->Name); goto ResetHere1; } /* * For now, we simply set the extra char positions (generated * due to longer name replaced by shorter name) to whitespace * chars so it will be ignored during compilation */ JumpHere1: b = strlen (Token) + Args->Offset[i]; memset (&AslGbl_MacroTokenBuffer[b], ' ', Diff1); # if 0 /* Work in progress as of 03/08/2023 - experimental 'if' block * to test code for removing extra whitespaces from the macro * replacement when replacement arg < replaced param */ char Buff[8192]; /* char* Replace; */ /* Replace = Buff; */ for (j = 0; j < strlen (AslGbl_MacroTokenBuffer); j++) { Buff[j] = AslGbl_MacroTokenBuffer[j]; } Buff[strlen (AslGbl_MacroTokenBuffer)] = '\0'; /* fprintf(stderr, "Buff: %s\n", Buff); */ UINT32 len = strlen (Buff); for (j = 0; j < len; j++) { if (Buff[0] == ' ') { for (j = 0; j < (len - 1); j++) { Buff[j] = Buff[j + 1]; } Buff[j] = '\0'; len--; j = -1; continue; } if (Buff[j] == ' ' && Buff[j + 1] == ' ') { for (k = 0; k < (len - 1); k++) { Buff[j] = Buff[j + 1]; } Buff[j] = '\0'; len--; j--; } } /* fprintf(stderr, "Buff: %s\n", Buff); */ for (k = 0; k < strlen (Buff); k++) { AslGbl_MacroTokenBuffer[k] = Buff[k]; } #endif PrReplaceData ( &AslGbl_MacroTokenBuffer[Args->Offset[i]], strlen (Token), Token, strlen (Token)); temp = NULL; Args->Offset[i] = PrevOffset; } /* * When the replacement argument (during invocation) length * > replaced parameter (in the macro function definition * and its expansion) length */ else if (Diff2 != 0) { /* Doing the same thing with offset value as for prev case */ PrevOffset = Args->Offset[i]; temp = strstr (AslGbl_MacroTokenBuffer, Args->Name); if (temp == NULL) { return; } ResetHere2: temp = strstr (temp, Args->Name); if (temp == NULL) { return; } Args->Offset[i] = strlen (AslGbl_MacroTokenBuffer) - strlen (temp); if (Args->Offset[i] == 0) { goto JumpHere2; } if ((strchr (macro_sep, AslGbl_MacroTokenBuffer[(Args->Offset[i] - 1)])) && (strchr (macro_sep, AslGbl_MacroTokenBuffer[(Args->Offset[i] + strlen (Args->Name))]))) { Args->Offset[i] += 0; } else { temp+= strlen (Args->Name); goto ResetHere2; } /* * We will need to allocate some extra space in our buffer to * accommodate the increase in the replacement string length * over the shorter outgoing arg string and do the replacement * at the correct offset value which is resetted every iteration */ JumpHere2: memcpy (AslGbl_MacroTokenReplaceBuffer, AslGbl_MacroTokenBuffer, Args->Offset[i]); strcat (AslGbl_MacroTokenReplaceBuffer, Token); strcat (AslGbl_MacroTokenReplaceBuffer, (AslGbl_MacroTokenBuffer + (Args->Offset[i] + strlen (Args->Name)))); strcpy (AslGbl_MacroTokenBuffer, AslGbl_MacroTokenReplaceBuffer); temp = NULL; Args->Offset[i] = PrevOffset; } /* * When the replacement argument (during invocation) length = * replaced parameter (in the macro function definition and * its expansion) length */ else { /* * We still need to reset the offset for each iteration even when * arg and param lengths are same since any macro func invocation * could use various cases for each separate arg-param pair */ PrevOffset = Args->Offset[i]; temp = strstr (AslGbl_MacroTokenBuffer, Args->Name); if (temp == NULL) { return; } ResetHere3: temp = strstr (temp, Args->Name); if (temp == NULL) { return; } Args->Offset[i] = strlen (AslGbl_MacroTokenBuffer) - strlen (temp); if (Args->Offset[i] == 0) { goto JumpHere3; } if ((strchr (macro_sep, AslGbl_MacroTokenBuffer[(Args->Offset[i] - 1)])) && (strchr (macro_sep, AslGbl_MacroTokenBuffer[(Args->Offset[i] + strlen (Args->Name))]))) { Args->Offset[i] += 0; } else { temp += strlen (Args->Name); goto ResetHere3; } JumpHere3: PrReplaceData ( &AslGbl_MacroTokenBuffer[Args->Offset[i]], strlen (Args->Name), Token, strlen (Token)); temp = NULL; Args->Offset[i] = PrevOffset; } } /******************************************************************************* * * FUNCTION: PrReplaceData * * PARAMETERS: Buffer - Original(target) buffer pointer * LengthToRemove - Length to be removed from target buffer * BufferToAdd - Data to be inserted into target buffer * LengthToAdd - Length of BufferToAdd * * RETURN: Pointer to where the buffer is replaced with data * * DESCRIPTION: Generic buffer data replacement. * ******************************************************************************/ char * PrReplaceData ( char *Buffer, UINT32 LengthToRemove, char *BufferToAdd, UINT32 LengthToAdd) { UINT32 BufferLength; /* Buffer is a string, so the length must include the terminating zero */ BufferLength = strlen (Buffer) + 1; if (LengthToRemove != LengthToAdd) { /* * Move some of the existing data * 1) If adding more bytes than removing, make room for the new data * 2) if removing more bytes than adding, delete the extra space */ if (LengthToRemove > 0) { memmove ((Buffer + LengthToAdd), (Buffer + LengthToRemove), (BufferLength - LengthToRemove)); } } /* Now we can move in the new data */ if (LengthToAdd > 0) { memmove (Buffer, BufferToAdd, LengthToAdd); } return (Buffer + LengthToAdd); } /******************************************************************************* * * FUNCTION: PrOpenIncludeFile * * PARAMETERS: Filename - Filename or pathname for include file * * RETURN: None. * * DESCRIPTION: Open an include file and push it on the input file stack. * ******************************************************************************/ FILE * PrOpenIncludeFile ( char *Filename, char *OpenMode, char **FullPathname) { FILE *IncludeFile; ASL_INCLUDE_DIR *NextDir; /* Start the actual include file on the next line */ AslGbl_CurrentLineOffset++; /* Attempt to open the include file */ /* If the file specifies an absolute path, just open it */ if ((Filename[0] == '/') || (Filename[0] == '\\') || (Filename[1] == ':')) { IncludeFile = PrOpenIncludeWithPrefix ( "", Filename, OpenMode, FullPathname); if (!IncludeFile) { goto ErrorExit; } return (IncludeFile); } /* * The include filename is not an absolute path. * * First, search for the file within the "local" directory -- meaning * the same directory that contains the source file. * * Construct the file pathname from the global directory name. */ IncludeFile = PrOpenIncludeWithPrefix ( AslGbl_DirectoryPath, Filename, OpenMode, FullPathname); if (IncludeFile) { return (IncludeFile); } /* * Second, search for the file within the (possibly multiple) * directories specified by the -I option on the command line. */ NextDir = AslGbl_IncludeDirList; while (NextDir) { IncludeFile = PrOpenIncludeWithPrefix ( NextDir->Dir, Filename, OpenMode, FullPathname); if (IncludeFile) { return (IncludeFile); } NextDir = NextDir->Next; } /* We could not open the include file after trying very hard */ ErrorExit: sprintf (AslGbl_MainTokenBuffer, "%s, %s", Filename, strerror (errno)); PrError (ASL_ERROR, ASL_MSG_INCLUDE_FILE_OPEN, 0); return (NULL); } /******************************************************************************* * * FUNCTION: FlOpenIncludeWithPrefix * * PARAMETERS: PrefixDir - Prefix directory pathname. Can be a zero * length string. * Filename - The include filename from the source ASL. * * RETURN: Valid file descriptor if successful. Null otherwise. * * DESCRIPTION: Open an include file and push it on the input file stack. * ******************************************************************************/ FILE * PrOpenIncludeWithPrefix ( char *PrefixDir, char *Filename, char *OpenMode, char **FullPathname) { FILE *IncludeFile; char *Pathname; /* Build the full pathname to the file */ Pathname = FlMergePathnames (PrefixDir, Filename); DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "Include: Opening file - \"%s\"\n", AslGbl_CurrentLineNumber, Pathname); /* Attempt to open the file, push if successful */ IncludeFile = fopen (Pathname, OpenMode); if (!IncludeFile) { return (NULL); } /* Push the include file on the open input file stack */ PrPushInputFileStack (IncludeFile, Pathname); *FullPathname = Pathname; return (IncludeFile); } /******************************************************************************* * * FUNCTION: AslPushInputFileStack * * PARAMETERS: InputFile - Open file pointer * Filename - Name of the file * * RETURN: None * * DESCRIPTION: Push the InputFile onto the file stack, and point the parser * to this file. Called when an include file is successfully * opened. * ******************************************************************************/ void PrPushInputFileStack ( FILE *InputFile, char *Filename) { PR_FILE_NODE *Fnode; AslGbl_HasIncludeFiles = TRUE; /* Save the current state in an Fnode */ Fnode = UtLocalCalloc (sizeof (PR_FILE_NODE)); Fnode->File = AslGbl_Files[ASL_FILE_INPUT].Handle; Fnode->Next = AslGbl_InputFileList; Fnode->Filename = AslGbl_Files[ASL_FILE_INPUT].Filename; Fnode->CurrentLineNumber = AslGbl_CurrentLineNumber; /* Push it on the stack */ AslGbl_InputFileList = Fnode; DbgPrint (ASL_PARSE_OUTPUT, PR_PREFIX_ID "Push InputFile Stack: handle %p\n\n", AslGbl_CurrentLineNumber, InputFile); /* Reset the global line count and filename */ AslGbl_Files[ASL_FILE_INPUT].Filename = UtLocalCacheCalloc (strlen (Filename) + 1); strcpy (AslGbl_Files[ASL_FILE_INPUT].Filename, Filename); AslGbl_Files[ASL_FILE_INPUT].Handle = InputFile; AslGbl_CurrentLineNumber = 1; /* Emit a new #line directive for the include file */ FlPrintFile (ASL_FILE_PREPROCESSOR, "#line %u \"%s\"\n", 1, Filename); } /******************************************************************************* * * FUNCTION: AslPopInputFileStack * * PARAMETERS: None * * RETURN: 0 if a node was popped, -1 otherwise * * DESCRIPTION: Pop the top of the input file stack and point the parser to * the saved parse buffer contained in the fnode. Also, set the * global line counters to the saved values. This function is * called when an include file reaches EOF. * ******************************************************************************/ BOOLEAN PrPopInputFileStack ( void) { PR_FILE_NODE *Fnode; Fnode = AslGbl_InputFileList; DbgPrint (ASL_PARSE_OUTPUT, "\n" PR_PREFIX_ID "Pop InputFile Stack, Fnode %p\n\n", AslGbl_CurrentLineNumber, Fnode); if (!Fnode) { return (FALSE); } /* Close the current include file */ fclose (AslGbl_Files[ASL_FILE_INPUT].Handle); /* Update the top-of-stack */ AslGbl_InputFileList = Fnode->Next; /* Reset global line counter and filename */ AslGbl_Files[ASL_FILE_INPUT].Filename = Fnode->Filename; AslGbl_Files[ASL_FILE_INPUT].Handle = Fnode->File; AslGbl_CurrentLineNumber = Fnode->CurrentLineNumber; /* Emit a new #line directive after the include file */ FlPrintFile (ASL_FILE_PREPROCESSOR, "#line %u \"%s\"\n", AslGbl_CurrentLineNumber, Fnode->Filename); /* All done with this node */ ACPI_FREE (Fnode); return (TRUE); } acpica-unix-20250404/source/compiler/prparser.y0000775000175000017500000002431314773714132020706 0ustar ivanhuivanhu%{ /****************************************************************************** * * Module Name: prparser.y - Bison input file for preprocessor parser * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #define _COMPONENT ASL_PREPROCESSOR ACPI_MODULE_NAME ("prparser") void * AslLocalAllocate (unsigned int Size); /* Bison/yacc configuration */ #undef alloca #define alloca AslLocalAllocate int PrParserlex (void); int PrParserparse (void); void PrParsererror (char const *msg); extern char *PrParsertext; UINT64 PrParserResult; /* Expression return value */ /* Bison/yacc configuration */ #define yytname PrParsername #define YYDEBUG 1 /* Enable debug output */ #define YYERROR_VERBOSE 1 /* Verbose error messages */ #define YYFLAG -32768 /* Define YYMALLOC/YYFREE to prevent redefinition errors */ #define YYMALLOC malloc #define YYFREE free %} %union { UINT64 value; UINT32 op; char *str; } /*! [Begin] no source code translation */ %type Expression %token EXPOP_EOF %token EXPOP_NEW_LINE %token EXPOP_NUMBER %token EXPOP_HEX_NUMBER %token EXPOP_RESERVED1 %token EXPOP_RESERVED2 %token EXPOP_PAREN_OPEN %token EXPOP_PAREN_CLOSE %left EXPOP_LOGICAL_OR %left EXPOP_LOGICAL_AND %left EXPOP_OR %left EXPOP_XOR %left EXPOP_AND %left EXPOP_EQUAL EXPOP_NOT_EQUAL %left EXPOP_GREATER EXPOP_LESS EXPOP_GREATER_EQUAL EXPOP_LESS_EQUAL %left EXPOP_SHIFT_RIGHT EXPOP_SHIFT_LEFT %left EXPOP_ADD EXPOP_SUBTRACT %left EXPOP_MULTIPLY EXPOP_DIVIDE EXPOP_MODULO %right EXPOP_ONES_COMPLIMENT EXPOP_LOGICAL_NOT /* Tokens above must be kept in synch with dtparser.y */ %token EXPOP_DEFINE %token EXPOP_IDENTIFIER %% /* * Operator precedence rules (from K&R) * * 1) ( ) * 2) ! ~ (unary operators that are supported here) * 3) * / % * 4) + - * 5) >> << * 6) < > <= >= * 7) == != * 8) & * 9) ^ * 10) | * 11) && * 12) || */ /*! [End] no source code translation !*/ Value : Expression EXPOP_NEW_LINE { PrParserResult=$1; return 0; } /* End of line (newline) */ | Expression EXPOP_EOF { PrParserResult=$1; return 0; } /* End of string (0) */ ; Expression /* Unary operators */ : EXPOP_LOGICAL_NOT Expression { $$ = DtDoOperator ($2, EXPOP_LOGICAL_NOT, $2);} | EXPOP_ONES_COMPLIMENT Expression { $$ = DtDoOperator ($2, EXPOP_ONES_COMPLIMENT, $2);} /* Binary operators */ | Expression EXPOP_MULTIPLY Expression { $$ = DtDoOperator ($1, EXPOP_MULTIPLY, $3);} | Expression EXPOP_DIVIDE Expression { $$ = DtDoOperator ($1, EXPOP_DIVIDE, $3);} | Expression EXPOP_MODULO Expression { $$ = DtDoOperator ($1, EXPOP_MODULO, $3);} | Expression EXPOP_ADD Expression { $$ = DtDoOperator ($1, EXPOP_ADD, $3);} | Expression EXPOP_SUBTRACT Expression { $$ = DtDoOperator ($1, EXPOP_SUBTRACT, $3);} | Expression EXPOP_SHIFT_RIGHT Expression { $$ = DtDoOperator ($1, EXPOP_SHIFT_RIGHT, $3);} | Expression EXPOP_SHIFT_LEFT Expression { $$ = DtDoOperator ($1, EXPOP_SHIFT_LEFT, $3);} | Expression EXPOP_GREATER Expression { $$ = DtDoOperator ($1, EXPOP_GREATER, $3);} | Expression EXPOP_LESS Expression { $$ = DtDoOperator ($1, EXPOP_LESS, $3);} | Expression EXPOP_GREATER_EQUAL Expression { $$ = DtDoOperator ($1, EXPOP_GREATER_EQUAL, $3);} | Expression EXPOP_LESS_EQUAL Expression { $$ = DtDoOperator ($1, EXPOP_LESS_EQUAL, $3);} | Expression EXPOP_EQUAL Expression { $$ = DtDoOperator ($1, EXPOP_EQUAL, $3);} | Expression EXPOP_NOT_EQUAL Expression { $$ = DtDoOperator ($1, EXPOP_NOT_EQUAL, $3);} | Expression EXPOP_AND Expression { $$ = DtDoOperator ($1, EXPOP_AND, $3);} | Expression EXPOP_XOR Expression { $$ = DtDoOperator ($1, EXPOP_XOR, $3);} | Expression EXPOP_OR Expression { $$ = DtDoOperator ($1, EXPOP_OR, $3);} | Expression EXPOP_LOGICAL_AND Expression { $$ = DtDoOperator ($1, EXPOP_LOGICAL_AND, $3);} | Expression EXPOP_LOGICAL_OR Expression { $$ = DtDoOperator ($1, EXPOP_LOGICAL_OR, $3);} /* Parentheses: '(' Expression ')' */ | EXPOP_PAREN_OPEN Expression EXPOP_PAREN_CLOSE { $$ = $2;} /* #if defined (ID) or #if defined ID */ | EXPOP_DEFINE EXPOP_PAREN_OPEN EXPOP_IDENTIFIER EXPOP_PAREN_CLOSE { $$ = PrIsDefined (PrParserlval.str);} | EXPOP_DEFINE EXPOP_IDENTIFIER { $$ = PrIsDefined (PrParserlval.str);} | EXPOP_IDENTIFIER { $$ = PrResolveDefine (PrParserlval.str);} /* Default base for a non-prefixed integer is 10 */ | EXPOP_NUMBER { AcpiUtStrtoul64 (PrParsertext, &$$);} /* Standard hex number (0x1234) */ | EXPOP_HEX_NUMBER { AcpiUtStrtoul64 (PrParsertext, &$$);} ; %% /* * Local support functions, including parser entry point */ #define PR_FIRST_PARSE_OPCODE EXPOP_EOF #define PR_YYTNAME_START 3 /****************************************************************************** * * FUNCTION: PrParsererror * * PARAMETERS: Message - Parser-generated error message * * RETURN: None * * DESCRIPTION: Handler for parser errors * *****************************************************************************/ void PrParsererror ( char const *Message) { sprintf (AslGbl_StringBuffer, "Preprocessor Parser : %s (near line %u)", Message, AslGbl_CurrentLineNumber); DtError (ASL_ERROR, ASL_MSG_SYNTAX, NULL, (char *) AslGbl_StringBuffer); } /****************************************************************************** * * FUNCTION: PrGetOpName * * PARAMETERS: ParseOpcode - Parser token (EXPOP_*) * * RETURN: Pointer to the opcode name * * DESCRIPTION: Get the ascii name of the parse opcode for debug output * *****************************************************************************/ char * PrGetOpName ( UINT32 ParseOpcode) { #ifdef ASL_YYTNAME_START /* * First entries (PR_YYTNAME_START) in yytname are special reserved names. * Ignore first 6 characters of name (EXPOP_) */ return ((char *) yytname [(ParseOpcode - PR_FIRST_PARSE_OPCODE) + PR_YYTNAME_START] + 6); #else return ("[Unknown parser generator]"); #endif } /****************************************************************************** * * FUNCTION: PrEvaluateExpression * * PARAMETERS: ExprString - Expression to be evaluated. Must be * terminated by either a newline or a NUL * string terminator * * RETURN: 64-bit value for the expression * * DESCRIPTION: Main entry point for the DT expression parser * *****************************************************************************/ UINT64 PrEvaluateExpression ( char *ExprString) { DbgPrint (ASL_DEBUG_OUTPUT, "**** Input expression: %s\n", ExprString); /* Point lexer to the input string */ if (PrInitLexer (ExprString)) { DtError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, NULL, "Could not initialize lexer"); return (0); } /* Parse/Evaluate the input string (value returned in PrParserResult) */ PrParserparse (); PrTerminateLexer (); DbgPrint (ASL_DEBUG_OUTPUT, "**** Parser returned value: %u (%8.8X%8.8X)\n", (UINT32) PrParserResult, ACPI_FORMAT_UINT64 (PrParserResult)); return (PrParserResult); } acpica-unix-20250404/source/compiler/aslcompiler.l0000775000175000017500000012206414773714131021346 0ustar ivanhuivanhu%{ /****************************************************************************** * * Module Name: aslcompiler.l - Flex/lex input file * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acconvert.h" #include #include /* * Generation: Use the following command line: * * flex.exe -PAslCompiler -i -o$(InputPath).c $(InputPath) * * -i: Scanner must be case-insensitive */ #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslscanner") /* Local prototypes */ static void AslDoLineDirective (void); static BOOLEAN AslDoComment (void); static BOOLEAN AslDoCommentType2 (void); static char AslDoStringLiteral (void); static void count (int type); /*! [Begin] no source code translation */ %} /* Definitions */ LeadNameChar [A-Za-z_] DigitChar [0-9] ErrorCode [(][ ]*[1-9][0-9][0-9][0-9][ ]*[)] OctalChar [0-7] HexDigitChar [A-Fa-f0-9] RootChar [\\] Nothing [] NameChar [A-Za-z_0-9] NameSeg1 {LeadNameChar}{NameChar} NameSeg2 {LeadNameChar}{NameChar}{NameChar} NameSeg3 {LeadNameChar}{NameChar}{NameChar}{NameChar} NameSeg {LeadNameChar}|{NameSeg1}|{NameSeg2}|{NameSeg3} NameString {RootChar}|{RootChar}{NamePath}|[\^]+{NamePath}|{NonEmptyNamePath} NamePath {NonEmptyNamePath}? NonEmptyNamePath {NameSeg}{NamePathTail}* NamePathTail [.]{NameSeg} %% /* Rules */ [ ] { count (0); } [\n] { count (0); } /* Handle files with both LF and CR/LF */ [\r] { count (0); } /* termination on both Unix and Windows */ [ \t] { count (0); } "/*" { if (!AslDoComment ()) {yyterminate ();} } "//" { if (!AslDoCommentType2 ()) {yyterminate ();} } "\"" { if (AslDoStringLiteral ()) {return (PARSEOP_STRING_LITERAL);} else {yyterminate ();} } ";" { count (0); return(';'); } /* ASL Extension: Standard C operators */ "~" { count (3); return (PARSEOP_EXP_NOT); } "!" { count (3); return (PARSEOP_EXP_LOGICAL_NOT); } "*" { count (3); return (PARSEOP_EXP_MULTIPLY); } "/" { count (3); return (PARSEOP_EXP_DIVIDE); } "%" { count (3); return (PARSEOP_EXP_MODULO); } "+" { count (3); return (PARSEOP_EXP_ADD); } "-" { count (3); return (PARSEOP_EXP_SUBTRACT); } ">>" { count (3); return (PARSEOP_EXP_SHIFT_RIGHT); } "<<" { count (3); return (PARSEOP_EXP_SHIFT_LEFT); } "<" { count (3); return (PARSEOP_EXP_LESS); } ">" { count (3); return (PARSEOP_EXP_GREATER); } "&" { count (3); return (PARSEOP_EXP_AND); } "<=" { count (3); return (PARSEOP_EXP_LESS_EQUAL); } ">=" { count (3); return (PARSEOP_EXP_GREATER_EQUAL); } "==" { count (3); return (PARSEOP_EXP_EQUAL); } "!=" { count (3); return (PARSEOP_EXP_NOT_EQUAL); } "|" { count (3); return (PARSEOP_EXP_OR); } "&&" { count (3); return (PARSEOP_EXP_LOGICAL_AND); } "||" { count (3); return (PARSEOP_EXP_LOGICAL_OR); } "++" { count (3); return (PARSEOP_EXP_INCREMENT); } "--" { count (3); return (PARSEOP_EXP_DECREMENT); } "^ " { count (3); return (PARSEOP_EXP_XOR); } /* ASL Extension: Standard C assignment operators */ "=" { count (3); return (PARSEOP_EXP_EQUALS); } "+=" { count (3); return (PARSEOP_EXP_ADD_EQ); } "-=" { count (3); return (PARSEOP_EXP_SUB_EQ); } "*=" { count (3); return (PARSEOP_EXP_MUL_EQ); } "/=" { count (3); return (PARSEOP_EXP_DIV_EQ); } "%=" { count (3); return (PARSEOP_EXP_MOD_EQ); } "<<=" { count (3); return (PARSEOP_EXP_SHL_EQ); } ">>=" { count (3); return (PARSEOP_EXP_SHR_EQ); } "&=" { count (3); return (PARSEOP_EXP_AND_EQ); } "^=" { count (3); return (PARSEOP_EXP_XOR_EQ); } "|=" { count (3); return (PARSEOP_EXP_OR_EQ); } "[" { count (3); return (PARSEOP_EXP_INDEX_LEFT); } "]" { count (0); return (PARSEOP_EXP_INDEX_RIGHT); } "(" { count (0); return (PARSEOP_OPEN_PAREN); } ")" { count (0); return (PARSEOP_CLOSE_PAREN); } "{" { count (0); return ('{'); } "}" { count (0); return ('}'); } "," { count (0); return (','); } /* * Begin standard ASL grammar */ [0-9][a-zA-Z0-9]* { count (1); AslCompilerlval.i = UtDoConstant ((char *) AslCompilertext); return (PARSEOP_INTEGER); } "Include" { count (1); return (PARSEOP_INCLUDE); } "External" { count (1); return (PARSEOP_EXTERNAL); } /* * The #line directive is emitted by the preprocessor and handled * here in the main iASL lexer - simply set the line number and * optionally the current filename. */ "#line" { AslDoLineDirective ();} /**************************************************************************** * * Main ASL operators * ****************************************************************************/ "AccessAs" { count (1); return (PARSEOP_ACCESSAS); } "Acquire" { count (3); return (PARSEOP_ACQUIRE); } "Add" { count (3); return (PARSEOP_ADD); } "Alias" { count (2); return (PARSEOP_ALIAS); } "And" { count (3); return (PARSEOP_AND); } "BankField" { count (2); return (PARSEOP_BANKFIELD); } "Break" { count (3); return (PARSEOP_BREAK); } "BreakPoint" { count (3); return (PARSEOP_BREAKPOINT); } "Buffer" { count (1); return (PARSEOP_BUFFER); } "Case" { count (3); return (PARSEOP_CASE); } "Concatenate" { count (3); return (PARSEOP_CONCATENATE); } "ConcatenateResTemplate" { count (3); return (PARSEOP_CONCATENATERESTEMPLATE); } "CondRefOf" { count (3); return (PARSEOP_CONDREFOF); } "Connection" { count (2); return (PARSEOP_CONNECTION); } "Continue" { count (3); return (PARSEOP_CONTINUE); } "CopyObject" { count (3); return (PARSEOP_COPYOBJECT); } "CreateBitField" { count (2); return (PARSEOP_CREATEBITFIELD); } "CreateByteField" { count (2); return (PARSEOP_CREATEBYTEFIELD); } "CreateDWordField" { count (2); return (PARSEOP_CREATEDWORDFIELD); } "CreateField" { count (2); return (PARSEOP_CREATEFIELD); } "CreateQWordField" { count (2); return (PARSEOP_CREATEQWORDFIELD); } "CreateWordField" { count (2); return (PARSEOP_CREATEWORDFIELD); } "DataTableRegion" { count (2); return (PARSEOP_DATATABLEREGION); } "Debug" { count (1); return (PARSEOP_DEBUG); } "Decrement" { count (3); return (PARSEOP_DECREMENT); } "Default" { count (3); return (PARSEOP_DEFAULT); } "DefinitionBlock" { count (1); return (PARSEOP_DEFINITION_BLOCK); } "DeRefOf" { count (3); return (PARSEOP_DEREFOF); } "Device" { count (2); return (PARSEOP_DEVICE); } "Divide" { count (3); return (PARSEOP_DIVIDE); } "Eisaid" { count (1); return (PARSEOP_EISAID); } "Else" { count (3); return (PARSEOP_ELSE); } "ElseIf" { count (3); return (PARSEOP_ELSEIF); } "Event" { count (2); return (PARSEOP_EVENT); } "Fatal" { count (3); return (PARSEOP_FATAL); } "Field" { count (2); return (PARSEOP_FIELD); } "FindSetLeftBit" { count (3); return (PARSEOP_FINDSETLEFTBIT); } "FindSetRightBit" { count (3); return (PARSEOP_FINDSETRIGHTBIT); } "FromBcd" { count (3); return (PARSEOP_FROMBCD); } "Function" { count (2); return (PARSEOP_FUNCTION); } "If" { count (3); return (PARSEOP_IF); } "Increment" { count (3); return (PARSEOP_INCREMENT); } "Index" { count (3); return (PARSEOP_INDEX); } "IndexField" { count (2); return (PARSEOP_INDEXFIELD); } "LAnd" { count (3); return (PARSEOP_LAND); } "LEqual" { count (3); return (PARSEOP_LEQUAL); } "LGreater" { count (3); return (PARSEOP_LGREATER); } "LGreaterEqual" { count (3); return (PARSEOP_LGREATEREQUAL); } "LLess" { count (3); return (PARSEOP_LLESS); } "LLessEqual" { count (3); return (PARSEOP_LLESSEQUAL); } "LNot" { count (3); return (PARSEOP_LNOT); } "LNotEqual" { count (3); return (PARSEOP_LNOTEQUAL); } "Load" { count (3); return (PARSEOP_LOAD); } "LoadTable" { count (3); return (PARSEOP_LOADTABLE); } "LOr" { count (3); return (PARSEOP_LOR); } "Match" { count (3); return (PARSEOP_MATCH); } "Method" { count (2); return (PARSEOP_METHOD); } "Mid" { count (3); return (PARSEOP_MID); } "Mod" { count (3); return (PARSEOP_MOD); } "Multiply" { count (3); return (PARSEOP_MULTIPLY); } "Mutex" { count (2); return (PARSEOP_MUTEX); } "Name" { count (2); return (PARSEOP_NAME); } "NAnd" { count (3); return (PARSEOP_NAND); } "Noop" { if (!AcpiGbl_IgnoreNoopOperator) {count (3); return (PARSEOP_NOOP);} } "NOr" { count (3); return (PARSEOP_NOR); } "Not" { count (3); return (PARSEOP_NOT); } "Notify" { count (3); return (PARSEOP_NOTIFY); } "ObjectType" { count (3); return (PARSEOP_OBJECTTYPE); } "Offset" { count (1); return (PARSEOP_OFFSET); } "One" { count (1); return (PARSEOP_ONE); } "Ones" { count (1); return (PARSEOP_ONES); } "OperationRegion" { count (2); return (PARSEOP_OPERATIONREGION); } "Or" { count (3); return (PARSEOP_OR); } "Package" { count (1); return (PARSEOP_PACKAGE); } "PowerResource" { count (2); return (PARSEOP_POWERRESOURCE); } "Processor" { count (2); return (PARSEOP_PROCESSOR); } "RefOf" { count (3); return (PARSEOP_REFOF); } "Release" { count (3); return (PARSEOP_RELEASE); } "Reset" { count (3); return (PARSEOP_RESET); } "Return" { count (3); return (PARSEOP_RETURN); } "Revision" { count (1); return (PARSEOP_REVISION); } "Scope" { count (2); return (PARSEOP_SCOPE); } "ShiftLeft" { count (3); return (PARSEOP_SHIFTLEFT); } "ShiftRight" { count (3); return (PARSEOP_SHIFTRIGHT); } "Signal" { count (3); return (PARSEOP_SIGNAL); } "SizeOf" { count (3); return (PARSEOP_SIZEOF); } "Sleep" { count (3); return (PARSEOP_SLEEP); } "Stall" { count (3); return (PARSEOP_STALL); } "Store" { count (3); return (PARSEOP_STORE); } "Subtract" { count (3); return (PARSEOP_SUBTRACT); } "Switch" { count (3); return (PARSEOP_SWITCH); } "ThermalZone" { count (2); return (PARSEOP_THERMALZONE); } "Timer" { count (3); return (PARSEOP_TIMER); } "ToBcd" { count (3); return (PARSEOP_TOBCD); } "ToBuffer" { count (3); return (PARSEOP_TOBUFFER); } "ToDecimalString" { count (3); return (PARSEOP_TODECIMALSTRING); } "ToHexString" { count (3); return (PARSEOP_TOHEXSTRING); } "ToInteger" { count (3); return (PARSEOP_TOINTEGER); } "ToString" { count (3); return (PARSEOP_TOSTRING); } "ToUuid" { count (1); return (PARSEOP_TOUUID); } "Unicode" { count (1); return (PARSEOP_UNICODE); } "Unload" { count (3); return (PARSEOP_UNLOAD); } "Wait" { count (3); return (PARSEOP_WAIT); } "While" { count (3); return (PARSEOP_WHILE); } "XOr" { count (3); return (PARSEOP_XOR); } "Zero" { count (1); return (PARSEOP_ZERO); } /* Control method arguments and locals */ "Arg0" { count (1); return (PARSEOP_ARG0); } "Arg1" { count (1); return (PARSEOP_ARG1); } "Arg2" { count (1); return (PARSEOP_ARG2); } "Arg3" { count (1); return (PARSEOP_ARG3); } "Arg4" { count (1); return (PARSEOP_ARG4); } "Arg5" { count (1); return (PARSEOP_ARG5); } "Arg6" { count (1); return (PARSEOP_ARG6); } "Local0" { count (1); return (PARSEOP_LOCAL0); } "Local1" { count (1); return (PARSEOP_LOCAL1); } "Local2" { count (1); return (PARSEOP_LOCAL2); } "Local3" { count (1); return (PARSEOP_LOCAL3); } "Local4" { count (1); return (PARSEOP_LOCAL4); } "Local5" { count (1); return (PARSEOP_LOCAL5); } "Local6" { count (1); return (PARSEOP_LOCAL6); } "Local7" { count (1); return (PARSEOP_LOCAL7); } /**************************************************************************** * * Resource Descriptor macros * ****************************************************************************/ "ResourceTemplate" { count (1); return (PARSEOP_RESOURCETEMPLATE); } "RawDataBuffer" { count (1); return (PARSEOP_DATABUFFER); } "Csi2Bus" { count (1); return (PARSEOP_CSI2_SERIALBUS); } "DMA" { count (1); return (PARSEOP_DMA); } "DWordIO" { count (1); return (PARSEOP_DWORDIO); } "DWordMemory" { count (1); return (PARSEOP_DWORDMEMORY); } "DWordPcc" { count (1); return (PARSEOP_DWORDPCC); } "DWordSpace" { count (1); return (PARSEOP_DWORDSPACE); } "EndDependentFn" { count (1); return (PARSEOP_ENDDEPENDENTFN); } "ExtendedIO" { count (1); return (PARSEOP_EXTENDEDIO); } "ExtendedMemory" { count (1); return (PARSEOP_EXTENDEDMEMORY); } "ExtendedSpace" { count (1); return (PARSEOP_EXTENDEDSPACE); } "FixedDma" { count (1); return (PARSEOP_FIXEDDMA); } "FixedIO" { count (1); return (PARSEOP_FIXEDIO); } "GpioInt" { count (1); return (PARSEOP_GPIO_INT); } "GpioIo" { count (1); return (PARSEOP_GPIO_IO); } "I2cSerialBus" { count (1); return (PARSEOP_I2C_SERIALBUS); } "I2cSerialBusV2" { count (1); return (PARSEOP_I2C_SERIALBUS_V2); } "Interrupt" { count (1); return (PARSEOP_INTERRUPT); } "IO" { count (1); return (PARSEOP_IO); } "IRQ" { count (1); return (PARSEOP_IRQ); } "IRQNoFlags" { count (1); return (PARSEOP_IRQNOFLAGS); } "Memory24" { count (1); return (PARSEOP_MEMORY24); } "Memory32" { count (1); return (PARSEOP_MEMORY32); } "Memory32Fixed" { count (1); return (PARSEOP_MEMORY32FIXED); } "PinConfig" { count (1); return (PARSEOP_PINCONFIG); } "PinFunction" { count (1); return (PARSEOP_PINFUNCTION); } "PinGroup" { count (1); return (PARSEOP_PINGROUP); } "PinGroupConfig" { count (1); return (PARSEOP_PINGROUPCONFIG); } "PinGroupFunction" { count (1); return (PARSEOP_PINGROUPFUNCTION); } "ClockInput" { count (1); return (PARSEOP_CLOCKINPUT); } "QWordIO" { count (1); return (PARSEOP_QWORDIO); } "QWordMemory" { count (1); return (PARSEOP_QWORDMEMORY); } "QWordPcc" { count (1); return (PARSEOP_DWORDPCC); } "QWordSpace" { count (1); return (PARSEOP_QWORDSPACE); } "Register" { count (1); return (PARSEOP_REGISTER); } "SpiSerialBus" { count (1); return (PARSEOP_SPI_SERIALBUS); } "SpiSerialBusV2" { count (1); return (PARSEOP_SPI_SERIALBUS_V2); } "StartDependentFn" { count (1); return (PARSEOP_STARTDEPENDENTFN); } "StartDependentFnNoPri" { count (1); return (PARSEOP_STARTDEPENDENTFN_NOPRI); } "UartSerialBus" { count (1); return (PARSEOP_UART_SERIALBUS); } "UartSerialBusV2" { count (1); return (PARSEOP_UART_SERIALBUS_V2); } "VendorLong" { count (1); return (PARSEOP_VENDORLONG); } "VendorShort" { count (1); return (PARSEOP_VENDORSHORT); } "WordBusNumber" { count (1); return (PARSEOP_WORDBUSNUMBER); } "WordIO" { count (1); return (PARSEOP_WORDIO); } "WordPcc" { count (1); return (PARSEOP_DWORDPCC); } "WordSpace" { count (1); return (PARSEOP_WORDSPACE); } /**************************************************************************** * * Keywords used as arguments to ASL operators and macros * ****************************************************************************/ /* AccessAttribKeyword: Serial Bus Attributes (ACPI 5.0) */ "AttribQuick" { count (0); return (PARSEOP_ACCESSATTRIB_QUICK); } "AttribSendReceive" { count (0); return (PARSEOP_ACCESSATTRIB_SND_RCV); } "AttribByte" { count (0); return (PARSEOP_ACCESSATTRIB_BYTE); } "AttribWord" { count (0); return (PARSEOP_ACCESSATTRIB_WORD); } "AttribBlock" { count (0); return (PARSEOP_ACCESSATTRIB_BLOCK); } "AttribProcessCall" { count (0); return (PARSEOP_ACCESSATTRIB_WORD_CALL); } "AttribBlockProcessCall" { count (0); return (PARSEOP_ACCESSATTRIB_BLOCK_CALL); } /* AccessAttribKeyword: Legacy synonyms for above (pre-ACPI 5.0) */ "SMBQuick" { count (0); return (PARSEOP_ACCESSATTRIB_QUICK); } "SMBSendReceive" { count (0); return (PARSEOP_ACCESSATTRIB_SND_RCV); } "SMBByte" { count (0); return (PARSEOP_ACCESSATTRIB_BYTE); } "SMBWord" { count (0); return (PARSEOP_ACCESSATTRIB_WORD); } "SMBBlock" { count (0); return (PARSEOP_ACCESSATTRIB_BLOCK); } "SMBProcessCall" { count (0); return (PARSEOP_ACCESSATTRIB_WORD_CALL); } "SMBBlockProcessCall" { count (0); return (PARSEOP_ACCESSATTRIB_BLOCK_CALL); } /* AccessTypeKeyword: Field Access Types */ "AnyAcc" { count (0); return (PARSEOP_ACCESSTYPE_ANY); } "ByteAcc" { count (0); return (PARSEOP_ACCESSTYPE_BYTE); } "WordAcc" { count (0); return (PARSEOP_ACCESSTYPE_WORD); } "DWordAcc" { count (0); return (PARSEOP_ACCESSTYPE_DWORD); } "QWordAcc" { count (0); return (PARSEOP_ACCESSTYPE_QWORD); } "BufferAcc" { count (0); return (PARSEOP_ACCESSTYPE_BUF); } /* AddressingModeKeyword: Mode - Resource Descriptors (ACPI 5.0) */ "AddressingMode7Bit" { count (0); return (PARSEOP_ADDRESSINGMODE_7BIT); } "AddressingMode10Bit" { count (0); return (PARSEOP_ADDRESSINGMODE_10BIT); } /* AddressKeyword: ACPI memory range types */ "AddressRangeMemory" { count (0); return (PARSEOP_ADDRESSTYPE_MEMORY); } "AddressRangeReserved" { count (0); return (PARSEOP_ADDRESSTYPE_RESERVED); } "AddressRangeNVS" { count (0); return (PARSEOP_ADDRESSTYPE_NVS); } "AddressRangeACPI" { count (0); return (PARSEOP_ADDRESSTYPE_ACPI); } /* BusMasterKeyword: DMA Bus Mastering */ "BusMaster" { count (0); return (PARSEOP_BUSMASTERTYPE_MASTER); } "NotBusMaster" { count (0); return (PARSEOP_BUSMASTERTYPE_NOTMASTER); } /* ByteLengthKeyword: Bits per Byte - Resource Descriptors (ACPI 5.0) */ "DataBitsFive" { count (0); return (PARSEOP_BITSPERBYTE_FIVE); } "DataBitsSix" { count (0); return (PARSEOP_BITSPERBYTE_SIX); } "DataBitsSeven" { count (0); return (PARSEOP_BITSPERBYTE_SEVEN); } "DataBitsEight" { count (0); return (PARSEOP_BITSPERBYTE_EIGHT); } "DataBitsNine" { count (0); return (PARSEOP_BITSPERBYTE_NINE); } /* ClockPhaseKeyword: Resource Descriptors (ACPI 5.0) */ "ClockPhaseFirst" { count (0); return (PARSEOP_CLOCKPHASE_FIRST); } "ClockPhaseSecond" { count (0); return (PARSEOP_CLOCKPHASE_SECOND); } /* ClockPolarityKeyword: Resource Descriptors (ACPI 5.0) */ "ClockPolarityLow" { count (0); return (PARSEOP_CLOCKPOLARITY_LOW); } "ClockPolarityHigh" { count (0); return (PARSEOP_CLOCKPOLARITY_HIGH); } /* DecodeKeyword: Type of Memory Decoding - Resource Descriptors */ "PosDecode" { count (0); return (PARSEOP_DECODETYPE_POS); } "SubDecode" { count (0); return (PARSEOP_DECODETYPE_SUB); } /* DmaTypeKeyword: DMA Types - DMA Resource Descriptor */ "Compatibility" { count (0); return (PARSEOP_DMATYPE_COMPATIBILITY); } "TypeA" { count (0); return (PARSEOP_DMATYPE_A); } "TypeB" { count (0); return (PARSEOP_DMATYPE_B); } "TypeF" { count (0); return (PARSEOP_DMATYPE_F); } /* EndianKeyword: Endian type - Resource Descriptor (ACPI 5.0) */ "LittleEndian" { count (0); return (PARSEOP_ENDIAN_LITTLE); } "BigEndian" { count (0); return (PARSEOP_ENDIAN_BIG); } /* ExtendedAttribKeyword: Bus attributes, AccessAs operator (ACPI 5.0) */ "AttribBytes" { count (0); return (PARSEOP_ACCESSATTRIB_BYTES); } "AttribRawBytes" { count (0); return (PARSEOP_ACCESSATTRIB_RAW_BYTES); } "AttribRawProcessBytes" { count (0); return (PARSEOP_ACCESSATTRIB_RAW_PROCESS); } /* FlowControlKeyword: Resource Descriptors (ACPI 5.0) */ "FlowControlHardware" { count (0); return (PARSEOP_FLOWCONTROL_HW); } "FlowControlNone" { count (0); return (PARSEOP_FLOWCONTROL_NONE); } "FlowControlXon" { count (0); return (PARSEOP_FLOWCONTROL_SW); } /* InterruptLevelKeyword: Interrupt Active Types */ "ActiveBoth" { count (0); return (PARSEOP_INTLEVEL_ACTIVEBOTH); } "ActiveHigh" { count (0); return (PARSEOP_INTLEVEL_ACTIVEHIGH); } "ActiveLow" { count (0); return (PARSEOP_INTLEVEL_ACTIVELOW); } /* InterruptTypeKeyword: Interrupt Types */ "Edge" { count (0); return (PARSEOP_INTTYPE_EDGE); } "Level" { count (0); return (PARSEOP_INTTYPE_LEVEL); } /* IoDecodeKeyword: Type of Memory Decoding - Resource Descriptors */ "Decode10" { count (0); return (PARSEOP_IODECODETYPE_10); } "Decode16" { count (0); return (PARSEOP_IODECODETYPE_16); } /* IoRestrictionKeyword: I/O Restriction - GPIO Resource Descriptors (ACPI 5.0) */ "IoRestrictionNone" { count (0); return (PARSEOP_IORESTRICT_NONE); } "IoRestrictionInputOnly" { count (0); return (PARSEOP_IORESTRICT_IN); } "IoRestrictionOutputOnly" { count (0); return (PARSEOP_IORESTRICT_OUT); } "IoRestrictionNoneAndPreserve" { count (0); return (PARSEOP_IORESTRICT_PRESERVE); } /* LockRuleKeyword: Global Lock use for Field Operator */ "Lock" { count (0); return (PARSEOP_LOCKRULE_LOCK); } "NoLock" { count (0); return (PARSEOP_LOCKRULE_NOLOCK); } /* MatchOpKeyword: Types for Match Operator */ "MTR" { count (0); return (PARSEOP_MATCHTYPE_MTR); } "MEQ" { count (0); return (PARSEOP_MATCHTYPE_MEQ); } "MLE" { count (0); return (PARSEOP_MATCHTYPE_MLE); } "MLT" { count (0); return (PARSEOP_MATCHTYPE_MLT); } "MGE" { count (0); return (PARSEOP_MATCHTYPE_MGE); } "MGT" { count (0); return (PARSEOP_MATCHTYPE_MGT); } /* MaxKeyword: Max Range Type - Resource Descriptors */ "MaxFixed" { count (0); return (PARSEOP_MAXTYPE_FIXED); } "MaxNotFixed" { count (0); return (PARSEOP_MAXTYPE_NOTFIXED); } /* MemTypeKeyword: Memory Types - Resource Descriptors */ "Cacheable" { count (0); return (PARSEOP_MEMTYPE_CACHEABLE); } "WriteCombining" { count (0); return (PARSEOP_MEMTYPE_WRITECOMBINING); } "Prefetchable" { count (0); return (PARSEOP_MEMTYPE_PREFETCHABLE); } "NonCacheable" { count (0); return (PARSEOP_MEMTYPE_NONCACHEABLE); } /* MinKeyword: Min Range Type - Resource Descriptors */ "MinFixed" { count (0); return (PARSEOP_MINTYPE_FIXED); } "MinNotFixed" { count (0); return (PARSEOP_MINTYPE_NOTFIXED); } /* ObjectTypeKeyword: ACPI Object Types */ "UnknownObj" { count (0); return (PARSEOP_OBJECTTYPE_UNK); } "IntObj" { count (0); return (PARSEOP_OBJECTTYPE_INT); } "StrObj" { count (0); return (PARSEOP_OBJECTTYPE_STR); } "BuffObj" { count (0); return (PARSEOP_OBJECTTYPE_BUF); } "PkgObj" { count (0); return (PARSEOP_OBJECTTYPE_PKG); } "FieldUnitObj" { count (0); return (PARSEOP_OBJECTTYPE_FLD); } "DeviceObj" { count (0); return (PARSEOP_OBJECTTYPE_DEV); } "EventObj" { count (0); return (PARSEOP_OBJECTTYPE_EVT); } "MethodObj" { count (0); return (PARSEOP_OBJECTTYPE_MTH); } "MutexObj" { count (0); return (PARSEOP_OBJECTTYPE_MTX); } "OpRegionObj" { count (0); return (PARSEOP_OBJECTTYPE_OPR); } "PowerResObj" { count (0); return (PARSEOP_OBJECTTYPE_POW); } "ProcessorObj" { count (0); return (PARSEOP_OBJECTTYPE_PRO); } "ThermalZoneObj" { count (0); return (PARSEOP_OBJECTTYPE_THZ); } "BuffFieldObj" { count (0); return (PARSEOP_OBJECTTYPE_BFF); } "DDBHandleObj" { count (0); return (PARSEOP_OBJECTTYPE_DDB); } /* ParityKeyword: Resource Descriptors (ACPI 5.0) */ "ParityTypeSpace" { count (0); return (PARSEOP_PARITYTYPE_SPACE); } "ParityTypeMark" { count (0); return (PARSEOP_PARITYTYPE_MARK); } "ParityTypeOdd" { count (0); return (PARSEOP_PARITYTYPE_ODD); } "ParityTypeEven" { count (0); return (PARSEOP_PARITYTYPE_EVEN); } "ParityTypeNone" { count (0); return (PARSEOP_PARITYTYPE_NONE); } /* PinConfigKeyword: Pin Configuration - GPIO Resource Descriptors (ACPI 5.0) */ "PullDefault" { count (0); return (PARSEOP_PIN_PULLDEFAULT); } "PullUp" { count (0); return (PARSEOP_PIN_PULLUP); } "PullDown" { count (0); return (PARSEOP_PIN_PULLDOWN); } "PullNone" { count (0); return (PARSEOP_PIN_NOPULL); } /* ClockScaleKeyword: Resource Descriptors (ACPI 6.5) */ "Hz" { count (0); return (PARSEOP_CLOCK_HZ); } "KHz" { count (0); return (PARSEOP_CLOCK_KHZ); } "MHz" { count (0); return (PARSEOP_CLOCK_MHZ); } /* ClockModeKeyword: Resource Descriptors (ACPI 6.5) */ "Fixed" { count (0); return (PARSEOP_CLOCK_FIXED); } "Variable" { count (0); return (PARSEOP_CLOCK_VARIABLE); } /* PolarityKeyword: Resource Descriptors (ACPI 5.0) */ "PolarityLow" { count (0); return (PARSEOP_DEVICEPOLARITY_LOW); } "PolarityHigh" { count (0); return (PARSEOP_DEVICEPOLARITY_HIGH); } /* RangeTypeKeyword: I/O Range Types - Resource Descriptors */ "ISAOnlyRanges" { count (0); return (PARSEOP_RANGETYPE_ISAONLY); } "NonISAOnlyRanges" { count (0); return (PARSEOP_RANGETYPE_NONISAONLY); } "EntireRange" { count (0); return (PARSEOP_RANGETYPE_ENTIRE); } /* ReadWriteKeyword: Memory Access Types - Resource Descriptors */ "ReadWrite" { count (0); return (PARSEOP_READWRITETYPE_BOTH); } "ReadOnly" { count (0); return (PARSEOP_READWRITETYPE_READONLY); } /* RegionSpaceKeyword: Operation Region Address Space Types */ "SystemIO" { count (0); return (PARSEOP_REGIONSPACE_IO); } "SystemMemory" { count (0); return (PARSEOP_REGIONSPACE_MEM); } "PCI_Config" { count (0); return (PARSEOP_REGIONSPACE_PCI); } "EmbeddedControl" { count (0); return (PARSEOP_REGIONSPACE_EC); } "SMBus" { count (0); return (PARSEOP_REGIONSPACE_SMBUS); } "SystemCMOS" { count (0); return (PARSEOP_REGIONSPACE_CMOS); } "PciBarTarget" { count (0); return (PARSEOP_REGIONSPACE_PCIBAR); } "IPMI" { count (0); return (PARSEOP_REGIONSPACE_IPMI); } "GeneralPurposeIo" { count (0); return (PARSEOP_REGIONSPACE_GPIO); } /* ACPI 5.0 */ "GenericSerialBus" { count (0); return (PARSEOP_REGIONSPACE_GSBUS); } /* ACPI 5.0 */ "PCC" { count (0); return (PARSEOP_REGIONSPACE_PCC); } /* ACPI 5.0 */ "PlatformRtMechanism" { count (0); return (PARSEOP_REGIONSPACE_PRM); } "FFixedHW" { count (0); return (PARSEOP_REGIONSPACE_FFIXEDHW); } /* ResourceTypeKeyword: Resource Usage - Resource Descriptors */ "ResourceConsumer" { count (0); return (PARSEOP_RESOURCETYPE_CONSUMER); } "ResourceProducer" { count (0); return (PARSEOP_RESOURCETYPE_PRODUCER); } /* SerializeRuleKeyword: Control Method Serialization */ "Serialized" { count (0); return (PARSEOP_SERIALIZERULE_SERIAL); } "NotSerialized" { count (0); return (PARSEOP_SERIALIZERULE_NOTSERIAL); } /* ShareTypeKeyword: Interrupt Sharing - Resource Descriptors */ "Shared" { count (0); return (PARSEOP_SHARETYPE_SHARED); } "Exclusive" { count (0); return (PARSEOP_SHARETYPE_EXCLUSIVE); } "SharedAndWake" { count (0); return (PARSEOP_SHARETYPE_SHAREDWAKE); } /* ACPI 5.0 */ "ExclusiveAndWake" { count (0); return (PARSEOP_SHARETYPE_EXCLUSIVEWAKE); } /* ACPI 5.0 */ /* SlaveModeKeyword: Resource Descriptors (ACPI 5.0) */ "ControllerInitiated" { count (0); return (PARSEOP_SLAVEMODE_CONTROLLERINIT); } "DeviceInitiated" { count (0); return (PARSEOP_SLAVEMODE_DEVICEINIT); } /* StopBitsKeyword: Resource Descriptors (ACPI 5.0) */ "StopBitsOne" { count (0); return (PARSEOP_STOPBITS_ONE); } "StopBitsOnePlusHalf" { count (0); return (PARSEOP_STOPBITS_ONEPLUSHALF); } "StopBitsTwo" { count (0); return (PARSEOP_STOPBITS_TWO); } "StopBitsZero" { count (0); return (PARSEOP_STOPBITS_ZERO); } /* TransferWidthKeyword: DMA Widths - Fixed DMA Resource Descriptor (ACPI 5.0) */ "Width8bit" { count (0); return (PARSEOP_XFERSIZE_8); } "Width16bit" { count (0); return (PARSEOP_XFERSIZE_16); } "Width32bit" { count (0); return (PARSEOP_XFERSIZE_32); } "Width64bit" { count (0); return (PARSEOP_XFERSIZE_64); } "Width128bit" { count (0); return (PARSEOP_XFERSIZE_128); } "Width256bit" { count (0); return (PARSEOP_XFERSIZE_256); } /* TranslationKeyword: Translation Density Types - Resource Descriptors */ "SparseTranslation" { count (0); return (PARSEOP_TRANSLATIONTYPE_SPARSE); } "DenseTranslation" { count (0); return (PARSEOP_TRANSLATIONTYPE_DENSE); } /* TypeKeyword: Translation Types - Resource Descriptors */ "TypeTranslation" { count (0); return (PARSEOP_TYPE_TRANSLATION); } "TypeStatic" { count (0); return (PARSEOP_TYPE_STATIC); } /* UpdateRuleKeyword: Field Update Rules */ "Preserve" { count (0); return (PARSEOP_UPDATERULE_PRESERVE); } "WriteAsOnes" { count (0); return (PARSEOP_UPDATERULE_ONES); } "WriteAsZeros" { count (0); return (PARSEOP_UPDATERULE_ZEROS); } /* WireModeKeyword: SPI Wire Mode - Resource Descriptors (ACPI 5.0) */ "FourWireMode" { count (0); return (PARSEOP_WIREMODE_FOUR); } "ThreeWireMode" { count (0); return (PARSEOP_WIREMODE_THREE); } /* XferTypeKeyword: DMA Transfer Types */ "Transfer8" { count (0); return (PARSEOP_XFERTYPE_8); } "Transfer8_16" { count (0); return (PARSEOP_XFERTYPE_8_16); } "Transfer16" { count (0); return (PARSEOP_XFERTYPE_16); } /* ToPld macro */ "ToPLD" { count (0); return (PARSEOP_TOPLD); } "PLD_Revision" { count (0); return (PARSEOP_PLD_REVISION); } "PLD_IgnoreColor" { count (0); return (PARSEOP_PLD_IGNORECOLOR); } "PLD_Red" { count (0); return (PARSEOP_PLD_RED); } "PLD_Green" { count (0); return (PARSEOP_PLD_GREEN); } "PLD_Blue" { count (0); return (PARSEOP_PLD_BLUE); } "PLD_Width" { count (0); return (PARSEOP_PLD_WIDTH); } "PLD_Height" { count (0); return (PARSEOP_PLD_HEIGHT); } "PLD_UserVisible" { count (0); return (PARSEOP_PLD_USERVISIBLE); } "PLD_Dock" { count (0); return (PARSEOP_PLD_DOCK); } "PLD_Lid" { count (0); return (PARSEOP_PLD_LID); } "PLD_Panel" { count (0); return (PARSEOP_PLD_PANEL); } "PLD_VerticalPosition" { count (0); return (PARSEOP_PLD_VERTICALPOSITION); } "PLD_HorizontalPosition" { count (0); return (PARSEOP_PLD_HORIZONTALPOSITION); } "PLD_Shape" { count (0); return (PARSEOP_PLD_SHAPE); } "PLD_GroupOrientation" { count (0); return (PARSEOP_PLD_GROUPORIENTATION); } "PLD_GroupToken" { count (0); return (PARSEOP_PLD_GROUPTOKEN); } "PLD_GroupPosition" { count (0); return (PARSEOP_PLD_GROUPPOSITION); } "PLD_Bay" { count (0); return (PARSEOP_PLD_BAY); } "PLD_Ejectable" { count (0); return (PARSEOP_PLD_EJECTABLE); } "PLD_EjectRequired" { count (0); return (PARSEOP_PLD_EJECTREQUIRED); } "PLD_CabinetNumber" { count (0); return (PARSEOP_PLD_CABINETNUMBER); } "PLD_CardCageNumber" { count (0); return (PARSEOP_PLD_CARDCAGENUMBER); } "PLD_Reference" { count (0); return (PARSEOP_PLD_REFERENCE); } "PLD_Rotation" { count (0); return (PARSEOP_PLD_ROTATION); } "PLD_Order" { count (0); return (PARSEOP_PLD_ORDER); } "PLD_Reserved" { count (0); return (PARSEOP_PLD_RESERVED); } "PLD_VerticalOffset" { count (0); return (PARSEOP_PLD_VERTICALOFFSET); } "PLD_HorizontalOffset" { count (0); return (PARSEOP_PLD_HORIZONTALOFFSET); } /* printf debug macros */ "printf" { count (0); return (PARSEOP_PRINTF); } "fprintf" { count (0); return (PARSEOP_FPRINTF); } /* Other macros */ "For" { count (0); return (PARSEOP_FOR); } /* Predefined compiler names */ "__DATE__" { count (0); return (PARSEOP___DATE__); } "__FILE__" { count (0); return (PARSEOP___FILE__); } "__LINE__" { count (0); return (PARSEOP___LINE__); } "__PATH__" { count (0); return (PARSEOP___PATH__); } "__METHOD__" { count (0); return (PARSEOP___METHOD__); } "__EXPECT__"{ErrorCode} { char *s; unsigned int index = 0; count (0); while (!isdigit ((int) AslCompilertext[index])) { index++; } /* * The error code is contained inside the * {ErrorCode} pattern. Extract it and log it * as the expected error code. */ s = UtLocalCacheCalloc (ASL_ERROR_CODE_LENGTH + 1); memcpy (s, AslCompilertext + index, ASL_ERROR_CODE_LENGTH); AslLogExpectedExceptionByLine (s); } {NameSeg} { char *s; count (0); s=UtLocalCacheCalloc (ACPI_NAMESEG_SIZE + 1); if (strcmp (AslCompilertext, "\\")) { /* * According to the ACPI specification, * NameSegments must have length of 4. If * the NameSegment has length less than 4, * they are padded with underscores to meet * the required length. */ strcpy (s, "____"); } memcpy (s, AslCompilertext, strlen (AslCompilertext)); AslCompilerlval.s = s; DbgPrint (ASL_PARSE_OUTPUT, "NameSeg: %s\n", s); return (PARSEOP_NAMESEG); } {NameString} { char *s; count (0); s=UtLocalCacheCalloc (strlen (AslCompilertext)+1); strcpy (s, AslCompilertext); AslCompilerlval.s = s; DbgPrint (ASL_PARSE_OUTPUT, "NameString: %s\n", s); return (PARSEOP_NAMESTRING); } . { count (1); if (isprint ((int) *AslCompilertext)) { sprintf (AslGbl_MsgBuffer, "Invalid character (%c), expecting ASL keyword or name", *AslCompilertext); } else { sprintf (AslGbl_MsgBuffer, "Invalid character (0x%2.2X), expecting ASL keyword or name", *AslCompilertext); } AslCompilererror (AslGbl_MsgBuffer);} <> { if (AslPopInputFileStack ()) {yyterminate();} else {return (PARSEOP_INCLUDE_END);} }; %% /*! [End] no source code translation !*/ /* * Bring in the scanner support routines */ #include "aslsupport.l" acpica-unix-20250404/source/compiler/aslcache.c0000775000175000017500000002616014773714131020566 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslcache -- Local cache support for iASL * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" /* * Local caches. The caches are fully deleted after the compilation/disassembly * of each individual input file. Thus, individual allocations from the cache * memory do not need to be freed or even released back into the cache. * * See aslallocate.c for standard heap allocations. */ /******************************************************************************* * * FUNCTION: UtLocalCacheCalloc * * PARAMETERS: Length - Size of buffer requested * * RETURN: Pointer to the buffer. Aborts compiler on allocation failure * * DESCRIPTION: Allocate a string buffer. Bypass the local * dynamic memory manager for performance reasons (This has a * major impact on the speed of the compiler.) * ******************************************************************************/ char * UtLocalCacheCalloc ( UINT32 Length) { char *Buffer; ASL_CACHE_INFO *Cache; UINT32 CacheSize = ASL_STRING_CACHE_SIZE; #ifdef ACPI_MISALIGNMENT_NOT_SUPPORTED /* Used for objects other than strings, so keep allocations aligned */ Length = ACPI_ROUND_UP_TO_NATIVE_WORD (Length); #endif if (Length > CacheSize) { CacheSize = Length; if (AslGbl_StringCacheList) { Cache = UtLocalCalloc (sizeof (Cache->Next) + CacheSize); /* Link new cache buffer just following head of list */ Cache->Next = AslGbl_StringCacheList->Next; AslGbl_StringCacheList->Next = Cache; /* Leave cache management pointers alone as they pertain to head */ AslGbl_StringCount++; AslGbl_StringSize += Length; return (Cache->Buffer); } } if ((!AslGbl_StringCacheNext) || ((AslGbl_StringCacheNext + Length) >= AslGbl_StringCacheLast)) { /* Allocate a new buffer */ Cache = UtLocalCalloc (sizeof (Cache->Next) + CacheSize); /* Link new cache buffer to head of list */ Cache->Next = AslGbl_StringCacheList; AslGbl_StringCacheList = Cache; /* Setup cache management pointers */ AslGbl_StringCacheNext = Cache->Buffer; AslGbl_StringCacheLast = AslGbl_StringCacheNext + CacheSize; } AslGbl_StringCount++; AslGbl_StringSize += Length; Buffer = AslGbl_StringCacheNext; AslGbl_StringCacheNext += Length; return (Buffer); } /******************************************************************************* * * FUNCTION: UtParseOpCacheCalloc * * PARAMETERS: None * * RETURN: New parse op. Aborts on allocation failure * * DESCRIPTION: Allocate a new parse op for the parse tree. Bypass the local * dynamic memory manager for performance reasons (This has a * major impact on the speed of the compiler.) * ******************************************************************************/ ACPI_PARSE_OBJECT * UtParseOpCacheCalloc ( void) { ASL_CACHE_INFO *Cache; if (AslGbl_ParseOpCacheNext >= AslGbl_ParseOpCacheLast) { /* Allocate a new buffer */ Cache = UtLocalCalloc (sizeof (Cache->Next) + (sizeof (ACPI_PARSE_OBJECT) * ASL_PARSEOP_CACHE_SIZE)); /* Link new cache buffer to head of list */ Cache->Next = AslGbl_ParseOpCacheList; AslGbl_ParseOpCacheList = Cache; /* Setup cache management pointers */ AslGbl_ParseOpCacheNext = ACPI_CAST_PTR (ACPI_PARSE_OBJECT, Cache->Buffer); AslGbl_ParseOpCacheLast = AslGbl_ParseOpCacheNext + ASL_PARSEOP_CACHE_SIZE; } AslGbl_ParseOpCount++; return (AslGbl_ParseOpCacheNext++); } /******************************************************************************* * * FUNCTION: UtSubtableCacheCalloc - Data Table compiler * * PARAMETERS: None * * RETURN: Pointer to the buffer. Aborts on allocation failure * * DESCRIPTION: Allocate a subtable object buffer. Bypass the local * dynamic memory manager for performance reasons (This has a * major impact on the speed of the compiler.) * ******************************************************************************/ DT_SUBTABLE * UtSubtableCacheCalloc ( void) { ASL_CACHE_INFO *Cache; if (AslGbl_SubtableCacheNext >= AslGbl_SubtableCacheLast) { /* Allocate a new buffer */ Cache = UtLocalCalloc (sizeof (Cache->Next) + (sizeof (DT_SUBTABLE) * ASL_SUBTABLE_CACHE_SIZE)); /* Link new cache buffer to head of list */ Cache->Next = AslGbl_SubtableCacheList; AslGbl_SubtableCacheList = Cache; /* Setup cache management pointers */ AslGbl_SubtableCacheNext = ACPI_CAST_PTR (DT_SUBTABLE, Cache->Buffer); AslGbl_SubtableCacheLast = AslGbl_SubtableCacheNext + ASL_SUBTABLE_CACHE_SIZE; } AslGbl_SubtableCount++; return (AslGbl_SubtableCacheNext++); } /******************************************************************************* * * FUNCTION: UtFieldCacheCalloc - Data Table compiler * * PARAMETERS: None * * RETURN: Pointer to the buffer. Aborts on allocation failure * * DESCRIPTION: Allocate a field object buffer. Bypass the local * dynamic memory manager for performance reasons (This has a * major impact on the speed of the compiler.) * ******************************************************************************/ DT_FIELD * UtFieldCacheCalloc ( void) { ASL_CACHE_INFO *Cache; if (AslGbl_FieldCacheNext >= AslGbl_FieldCacheLast) { /* Allocate a new buffer */ Cache = UtLocalCalloc (sizeof (Cache->Next) + (sizeof (DT_FIELD) * ASL_FIELD_CACHE_SIZE)); /* Link new cache buffer to head of list */ Cache->Next = AslGbl_FieldCacheList; AslGbl_FieldCacheList = Cache; /* Setup cache management pointers */ AslGbl_FieldCacheNext = ACPI_CAST_PTR (DT_FIELD, Cache->Buffer); AslGbl_FieldCacheLast =AslGbl_FieldCacheNext + ASL_FIELD_CACHE_SIZE; } AslGbl_FieldCount++; return (AslGbl_FieldCacheNext++); } /******************************************************************************* * * FUNCTION: UtDeleteLocalCaches * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Delete all local cache buffer blocks * ******************************************************************************/ void UtDeleteLocalCaches ( void) { UINT32 BufferCount; ASL_CACHE_INFO *Next; /* * Generic cache, arbitrary size allocations */ BufferCount = 0; while (AslGbl_StringCacheList) { Next = AslGbl_StringCacheList->Next; ACPI_FREE (AslGbl_StringCacheList); AslGbl_StringCacheList = Next; BufferCount++; } DbgPrint (ASL_DEBUG_OUTPUT, "%u Strings (%u bytes), Buffer size: %u bytes, %u Buffers\n", AslGbl_StringCount, AslGbl_StringSize, ASL_STRING_CACHE_SIZE, BufferCount); /* Reset cache globals */ AslGbl_StringSize = 0; AslGbl_StringCount = 0; AslGbl_StringCacheNext = NULL; AslGbl_StringCacheLast = NULL; /* * Parse Op cache */ BufferCount = 0; while (AslGbl_ParseOpCacheList) { Next = AslGbl_ParseOpCacheList->Next; ACPI_FREE (AslGbl_ParseOpCacheList); AslGbl_ParseOpCacheList = Next; BufferCount++; } DbgPrint (ASL_DEBUG_OUTPUT, "%u ParseOps, Buffer size: %u ops (%u bytes), %u Buffers\n", AslGbl_ParseOpCount, ASL_PARSEOP_CACHE_SIZE, ((UINT32) sizeof (ACPI_PARSE_OBJECT) * ASL_PARSEOP_CACHE_SIZE), BufferCount); /* Reset cache globals */ AslGbl_ParseOpCount = 0; AslGbl_ParseOpCacheNext = NULL; AslGbl_ParseOpCacheLast = NULL; AslGbl_ParseTreeRoot = NULL; /* * Table Compiler - Field cache */ BufferCount = 0; while (AslGbl_FieldCacheList) { Next = AslGbl_FieldCacheList->Next; ACPI_FREE (AslGbl_FieldCacheList); AslGbl_FieldCacheList = Next; BufferCount++; } DbgPrint (ASL_DEBUG_OUTPUT, "%u Fields, Buffer size: %u fields (%u bytes), %u Buffers\n", AslGbl_FieldCount, ASL_FIELD_CACHE_SIZE, ((UINT32) sizeof (DT_FIELD) * ASL_FIELD_CACHE_SIZE), BufferCount); /* Reset cache globals */ AslGbl_FieldCount = 0; AslGbl_FieldCacheNext = NULL; AslGbl_FieldCacheLast = NULL; /* * Table Compiler - Subtable cache */ BufferCount = 0; while (AslGbl_SubtableCacheList) { Next = AslGbl_SubtableCacheList->Next; ACPI_FREE (AslGbl_SubtableCacheList); AslGbl_SubtableCacheList = Next; BufferCount++; } DbgPrint (ASL_DEBUG_OUTPUT, "%u Subtables, Buffer size: %u subtables (%u bytes), %u Buffers\n", AslGbl_SubtableCount, ASL_SUBTABLE_CACHE_SIZE, ((UINT32) sizeof (DT_SUBTABLE) * ASL_SUBTABLE_CACHE_SIZE), BufferCount); /* Reset cache globals */ AslGbl_SubtableCount = 0; AslGbl_SubtableCacheNext = NULL; AslGbl_SubtableCacheLast = NULL; } acpica-unix-20250404/source/compiler/dtexpress.c0000775000175000017500000002531714773714132021050 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: dtexpress.c - Support for integer expressions and labels * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "dtparser.y.h" #define _COMPONENT DT_COMPILER ACPI_MODULE_NAME ("dtexpress") /* Local prototypes */ static void DtInsertLabelField ( DT_FIELD *Field); static DT_FIELD * DtLookupLabel ( char *Name); /* Global used for errors during parse and related functions */ DT_FIELD *AslGbl_CurrentField; /****************************************************************************** * * FUNCTION: DtResolveIntegerExpression * * PARAMETERS: Field - Field object with Integer expression * ReturnValue - Where the integer is returned * * RETURN: Status, and the resolved 64-bit integer value * * DESCRIPTION: Resolve an integer expression to a single value. Supports * both integer constants and labels. * *****************************************************************************/ ACPI_STATUS DtResolveIntegerExpression ( DT_FIELD *Field, UINT64 *ReturnValue) { UINT64 Result; DbgPrint (ASL_DEBUG_OUTPUT, "Full Integer expression: %s\n", Field->Value); AslGbl_CurrentField = Field; Result = DtEvaluateExpression (Field->Value); *ReturnValue = Result; return (AE_OK); } /****************************************************************************** * * FUNCTION: DtDoOperator * * PARAMETERS: LeftValue - First 64-bit operand * Operator - Parse token for the operator (OP_EXP_*) * RightValue - Second 64-bit operand * * RETURN: 64-bit result of the requested operation * * DESCRIPTION: Perform the various 64-bit integer math functions * *****************************************************************************/ UINT64 DtDoOperator ( UINT64 LeftValue, UINT32 Operator, UINT64 RightValue) { UINT64 Result; /* Perform the requested operation */ switch (Operator) { case OP_EXP_ONES_COMPLIMENT: Result = ~RightValue; break; case OP_EXP_LOGICAL_NOT: Result = !RightValue; break; case OP_EXP_MULTIPLY: Result = LeftValue * RightValue; break; case OP_EXP_DIVIDE: if (!RightValue) { DtError (ASL_ERROR, ASL_MSG_DIVIDE_BY_ZERO, AslGbl_CurrentField, NULL); return (0); } Result = LeftValue / RightValue; break; case OP_EXP_MODULO: if (!RightValue) { DtError (ASL_ERROR, ASL_MSG_DIVIDE_BY_ZERO, AslGbl_CurrentField, NULL); return (0); } Result = LeftValue % RightValue; break; case OP_EXP_ADD: Result = LeftValue + RightValue; break; case OP_EXP_SUBTRACT: Result = LeftValue - RightValue; break; case OP_EXP_SHIFT_RIGHT: Result = LeftValue >> RightValue; break; case OP_EXP_SHIFT_LEFT: Result = LeftValue << RightValue; break; case OP_EXP_LESS: Result = LeftValue < RightValue; break; case OP_EXP_GREATER: Result = LeftValue > RightValue; break; case OP_EXP_LESS_EQUAL: Result = LeftValue <= RightValue; break; case OP_EXP_GREATER_EQUAL: Result = LeftValue >= RightValue; break; case OP_EXP_EQUAL: Result = LeftValue == RightValue; break; case OP_EXP_NOT_EQUAL: Result = LeftValue != RightValue; break; case OP_EXP_AND: Result = LeftValue & RightValue; break; case OP_EXP_XOR: Result = LeftValue ^ RightValue; break; case OP_EXP_OR: Result = LeftValue | RightValue; break; case OP_EXP_LOGICAL_AND: Result = LeftValue && RightValue; break; case OP_EXP_LOGICAL_OR: Result = LeftValue || RightValue; break; default: /* Unknown operator */ DtFatal (ASL_MSG_INVALID_EXPRESSION, AslGbl_CurrentField, NULL); return (0); } DbgPrint (ASL_DEBUG_OUTPUT, "IntegerEval: (%8.8X%8.8X %s %8.8X%8.8X) = %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (LeftValue), DtGetOpName (Operator), ACPI_FORMAT_UINT64 (RightValue), ACPI_FORMAT_UINT64 (Result)); return (Result); } /****************************************************************************** * * FUNCTION: DtResolveLabel * * PARAMETERS: LabelString - Contains the label * * RETURN: Table offset associated with the label * * DESCRIPTION: Lookup a label and return its value. * *****************************************************************************/ UINT64 DtResolveLabel ( char *LabelString) { DT_FIELD *LabelField; DbgPrint (ASL_DEBUG_OUTPUT, "Resolve Label: %s\n", LabelString); /* Resolve a label reference to an integer (table offset) */ if (*LabelString != '$') { return (0); } LabelField = DtLookupLabel (LabelString); if (!LabelField) { DtError (ASL_ERROR, ASL_MSG_UNKNOWN_LABEL, AslGbl_CurrentField, LabelString); return (0); } /* All we need from the label is the offset in the table */ DbgPrint (ASL_DEBUG_OUTPUT, "Resolved Label: 0x%8.8X\n", LabelField->TableOffset); return (LabelField->TableOffset); } /****************************************************************************** * * FUNCTION: DtDetectAllLabels * * PARAMETERS: FieldList - Field object at start of generic list * * RETURN: None * * DESCRIPTION: Detect all labels in a list of "generic" opcodes (such as * a UEFI table.) and insert them into the global label list. * *****************************************************************************/ void DtDetectAllLabels ( DT_FIELD *FieldList) { ACPI_DMTABLE_INFO *Info; DT_FIELD *GenericField; UINT32 TableOffset; TableOffset = AslGbl_CurrentTableOffset; GenericField = FieldList; /* * Process all "Label:" fields within the parse tree. We need * to know the offsets for all labels before we can compile * the parse tree in order to handle forward references. Traverse * tree and get/set all field lengths of all operators in order to * determine the label offsets. */ while (GenericField) { Info = DtGetGenericTableInfo (GenericField->Name); if (Info) { /* Maintain table offsets */ GenericField->TableOffset = TableOffset; TableOffset += DtGetFieldLength (GenericField, Info); /* Insert all labels in the global label list */ if (Info->Opcode == ACPI_DMT_LABEL) { DtInsertLabelField (GenericField); } } GenericField = GenericField->Next; } } /****************************************************************************** * * FUNCTION: DtInsertLabelField * * PARAMETERS: Field - Field object with Label to be inserted * * RETURN: None * * DESCRIPTION: Insert a label field into the global label list * *****************************************************************************/ static void DtInsertLabelField ( DT_FIELD *Field) { ACPI_FUNCTION_NAME (DtInsertLabelField); DbgPrint (ASL_DEBUG_OUTPUT, "%s: Found Label : %s at output table offset %X\n", ACPI_GET_FUNCTION_NAME, Field->Value, Field->TableOffset); Field->NextLabel = AslGbl_LabelList; AslGbl_LabelList = Field; } /****************************************************************************** * * FUNCTION: DtLookupLabel * * PARAMETERS: Name - Label to be resolved * * RETURN: Field object associated with the label * * DESCRIPTION: Lookup a label in the global label list. Used during the * resolution of integer expressions. * *****************************************************************************/ static DT_FIELD * DtLookupLabel ( char *Name) { DT_FIELD *LabelField; /* Skip a leading $ */ if (*Name == '$') { Name++; } /* Search global list */ LabelField = AslGbl_LabelList; while (LabelField) { if (!strcmp (Name, LabelField->Value)) { return (LabelField); } LabelField = LabelField->NextLabel; } return (NULL); } acpica-unix-20250404/source/compiler/aslhex.c0000775000175000017500000002774114773714131020315 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslhex - ASCII hex output file generation (C, ASM, and ASL) * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acapps.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("ashex") /* * This module emits ASCII hex output files in either C, ASM, or ASL format */ /* Local prototypes */ static void HxDoHexOutputC ( void); static void HxDoHexOutputAsl ( void); static void HxDoHexOutputAsm ( void); static UINT32 HxReadAmlOutputFile ( UINT8 *Buffer); /******************************************************************************* * * FUNCTION: HxDoHexOutput * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Create the hex output file. Note: data is obtained by reading * the entire AML output file that was previously generated. * ******************************************************************************/ void HxDoHexOutput ( void) { switch (AslGbl_HexOutputFlag) { case HEX_OUTPUT_C: HxDoHexOutputC (); break; case HEX_OUTPUT_ASM: HxDoHexOutputAsm (); break; case HEX_OUTPUT_ASL: HxDoHexOutputAsl (); break; default: /* No other output types supported */ break; } } /******************************************************************************* * * FUNCTION: HxReadAmlOutputFile * * PARAMETERS: Buffer - Where to return data * * RETURN: None * * DESCRIPTION: Read a line of the AML output prior to formatting the data * ******************************************************************************/ static UINT32 HxReadAmlOutputFile ( UINT8 *Buffer) { UINT32 Actual; Actual = fread (Buffer, 1, HEX_TABLE_LINE_SIZE, AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle); if (ferror (AslGbl_Files[ASL_FILE_AML_OUTPUT].Handle)) { FlFileError (ASL_FILE_AML_OUTPUT, ASL_MSG_READ); AslAbort (); } return (Actual); } /******************************************************************************* * * FUNCTION: HxDoHexOutputC * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Create the hex output file. This is the same data as the AML * output file, but formatted into hex/ascii bytes suitable for * inclusion into a C source file. * * Note: the base name of the hex output file is prepended to * all symbols as they are output to the file. * ******************************************************************************/ static void HxDoHexOutputC ( void) { UINT8 FileData[HEX_TABLE_LINE_SIZE]; UINT32 LineLength; UINT32 Offset = 0; UINT32 AmlFileSize; UINT32 i; char *FileBasename; /* Obtain the file basename (filename with no extension) */ FileBasename = FlGetFileBasename (AslGbl_Files [ASL_FILE_HEX_OUTPUT].Filename); /* Get AML size, seek back to start */ AmlFileSize = FlGetFileSize (ASL_FILE_AML_OUTPUT); FlSeekFile (ASL_FILE_AML_OUTPUT, 0); /* Finish the file header and emit the non-data symbols */ FlPrintFile (ASL_FILE_HEX_OUTPUT, " * C source code output\n"); FlPrintFile (ASL_FILE_HEX_OUTPUT, " * AML code block contains 0x%X bytes\n *\n */\n", AmlFileSize); FlPrintFile (ASL_FILE_HEX_OUTPUT, "#ifndef __%s_HEX__\n", FileBasename); FlPrintFile (ASL_FILE_HEX_OUTPUT, "#define __%s_HEX__\n\n", FileBasename); AcpiUtStrlwr (FileBasename); FlPrintFile (ASL_FILE_HEX_OUTPUT, "unsigned char %s_aml_code[] =\n{\n", FileBasename); while (Offset < AmlFileSize) { /* Read enough bytes needed for one output line */ LineLength = HxReadAmlOutputFile (FileData); if (!LineLength) { break; } FlPrintFile (ASL_FILE_HEX_OUTPUT, " "); for (i = 0; i < LineLength; i++) { /* * Output each hex byte in the form: "0xnn," * Add a comma until the very last byte of the AML file * (Some C compilers complain about a trailing comma) */ FlPrintFile (ASL_FILE_HEX_OUTPUT, "0x%2.2X", FileData[i]); if ((Offset + i + 1) < AmlFileSize) { FlPrintFile (ASL_FILE_HEX_OUTPUT, ","); } else { FlPrintFile (ASL_FILE_HEX_OUTPUT, " "); } } /* Add fill spaces if needed for last line */ if (LineLength < HEX_TABLE_LINE_SIZE) { FlPrintFile (ASL_FILE_HEX_OUTPUT, "%*s", 5 * (HEX_TABLE_LINE_SIZE - LineLength), " "); } /* Emit the offset and ascii dump for the entire line */ FlPrintFile (ASL_FILE_HEX_OUTPUT, " /* %8.8X", Offset); LsDumpAsciiInComment (ASL_FILE_HEX_OUTPUT, LineLength, FileData); FlPrintFile (ASL_FILE_HEX_OUTPUT, "%*s*/\n", HEX_TABLE_LINE_SIZE - LineLength + 1, " "); Offset += LineLength; } FlPrintFile (ASL_FILE_HEX_OUTPUT, "};\n\n"); FlPrintFile (ASL_FILE_HEX_OUTPUT, "#endif\n"); } /******************************************************************************* * * FUNCTION: HxDoHexOutputAsl * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Create the hex output file. This is the same data as the AML * output file, but formatted into hex/ascii bytes suitable for * inclusion into a C source file. * ******************************************************************************/ static void HxDoHexOutputAsl ( void) { UINT8 FileData[HEX_TABLE_LINE_SIZE]; UINT32 LineLength; UINT32 Offset = 0; UINT32 AmlFileSize; UINT32 i; /* Get AML size, seek back to start */ AmlFileSize = FlGetFileSize (ASL_FILE_AML_OUTPUT); FlSeekFile (ASL_FILE_AML_OUTPUT, 0); FlPrintFile (ASL_FILE_HEX_OUTPUT, " * ASL source code output\n"); FlPrintFile (ASL_FILE_HEX_OUTPUT, " * AML code block contains 0x%X bytes\n *\n */\n", AmlFileSize); FlPrintFile (ASL_FILE_HEX_OUTPUT, " Name (BUF1, Buffer()\n {\n"); while (Offset < AmlFileSize) { /* Read enough bytes needed for one output line */ LineLength = HxReadAmlOutputFile (FileData); if (!LineLength) { break; } FlPrintFile (ASL_FILE_HEX_OUTPUT, " "); for (i = 0; i < LineLength; i++) { /* * Print each hex byte. * Add a comma until the very last byte of the AML file * (Some C compilers complain about a trailing comma) */ FlPrintFile (ASL_FILE_HEX_OUTPUT, "0x%2.2X", FileData[i]); if ((Offset + i + 1) < AmlFileSize) { FlPrintFile (ASL_FILE_HEX_OUTPUT, ","); } else { FlPrintFile (ASL_FILE_HEX_OUTPUT, " "); } } /* Add fill spaces if needed for last line */ if (LineLength < HEX_TABLE_LINE_SIZE) { FlPrintFile (ASL_FILE_HEX_OUTPUT, "%*s", 5 * (HEX_TABLE_LINE_SIZE - LineLength), " "); } /* Emit the offset and ascii dump for the entire line */ FlPrintFile (ASL_FILE_HEX_OUTPUT, " /* %8.8X", Offset); LsDumpAsciiInComment (ASL_FILE_HEX_OUTPUT, LineLength, FileData); FlPrintFile (ASL_FILE_HEX_OUTPUT, "%*s*/\n", HEX_TABLE_LINE_SIZE - LineLength + 1, " "); Offset += LineLength; } FlPrintFile (ASL_FILE_HEX_OUTPUT, " })\n"); } /******************************************************************************* * * FUNCTION: HxDoHexOutputAsm * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Create the hex output file. This is the same data as the AML * output file, but formatted into hex/ascii bytes suitable for * inclusion into a ASM source file. * ******************************************************************************/ static void HxDoHexOutputAsm ( void) { UINT8 FileData[HEX_TABLE_LINE_SIZE]; UINT32 LineLength; UINT32 Offset = 0; UINT32 AmlFileSize; UINT32 i; /* Get AML size, seek back to start */ AmlFileSize = FlGetFileSize (ASL_FILE_AML_OUTPUT); FlSeekFile (ASL_FILE_AML_OUTPUT, 0); FlPrintFile (ASL_FILE_HEX_OUTPUT, "; Assembly code source output\n"); FlPrintFile (ASL_FILE_HEX_OUTPUT, "; AML code block contains 0x%X bytes\n;\n", AmlFileSize); while (Offset < AmlFileSize) { /* Read enough bytes needed for one output line */ LineLength = HxReadAmlOutputFile (FileData); if (!LineLength) { break; } FlPrintFile (ASL_FILE_HEX_OUTPUT, " db "); for (i = 0; i < LineLength; i++) { /* * Print each hex byte. * Add a comma until the last byte of the line */ FlPrintFile (ASL_FILE_HEX_OUTPUT, "0%2.2Xh", FileData[i]); if ((i + 1) < LineLength) { FlPrintFile (ASL_FILE_HEX_OUTPUT, ","); } } FlPrintFile (ASL_FILE_HEX_OUTPUT, " "); /* Add fill spaces if needed for last line */ if (LineLength < HEX_TABLE_LINE_SIZE) { FlPrintFile (ASL_FILE_HEX_OUTPUT, "%*s", 5 * (HEX_TABLE_LINE_SIZE - LineLength), " "); } /* Emit the offset and ascii dump for the entire line */ FlPrintFile (ASL_FILE_HEX_OUTPUT, " ; %8.8X", Offset); LsDumpAsciiInComment (ASL_FILE_HEX_OUTPUT, LineLength, FileData); FlPrintFile (ASL_FILE_HEX_OUTPUT, "\n"); Offset += LineLength; } FlPrintFile (ASL_FILE_HEX_OUTPUT, "\n"); } acpica-unix-20250404/source/compiler/aslopt.c0000775000175000017500000006400014773714131020320 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslopt- Compiler optimizations * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "acparser.h" #include "amlcode.h" #include "acnamesp.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslopt") static UINT32 OptTotal = 0; /* Local prototypes */ static ACPI_STATUS OptSearchToRoot ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *CurrentNode, ACPI_NAMESPACE_NODE *TargetNode, ACPI_BUFFER *TargetPath, char **NewPath); static ACPI_STATUS OptBuildShortestPath ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *CurrentNode, ACPI_NAMESPACE_NODE *TargetNode, ACPI_BUFFER *CurrentPath, ACPI_BUFFER *TargetPath, ACPI_SIZE AmlNameStringLength, UINT8 IsDeclaration, char **ReturnNewPath); static ACPI_STATUS OptOptimizeNameDeclaration ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *CurrentNode, ACPI_NAMESPACE_NODE *TargetNode, char *AmlNameString, char **NewPath); /******************************************************************************* * * FUNCTION: OptSearchToRoot * * PARAMETERS: Op - Current parser op * WalkState - Current state * CurrentNode - Where we are in the namespace * TargetNode - Node to which we are referring * TargetPath - External full path to the target node * NewPath - Where the optimized path is returned * * RETURN: Status * * DESCRIPTION: Attempt to optimize a reference to a single 4-character ACPI * name utilizing the search-to-root name resolution algorithm * that is used by AML interpreters. * ******************************************************************************/ static ACPI_STATUS OptSearchToRoot ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *CurrentNode, ACPI_NAMESPACE_NODE *TargetNode, ACPI_BUFFER *TargetPath, char **NewPath) { ACPI_NAMESPACE_NODE *Node; ACPI_GENERIC_STATE ScopeInfo; ACPI_STATUS Status; char *Path; ACPI_FUNCTION_NAME (OptSearchToRoot); /* * Check if search-to-root can be utilized. Use the last NameSeg of * the NamePath and 1) See if can be found and 2) If found, make * sure that it is the same node that we want. If there is another * name in the search path before the one we want, the nodes will * not match, and we cannot use this optimization. */ Path = &(((char *) TargetPath->Pointer)[ TargetPath->Length - ACPI_NAMESEG_SIZE]); ScopeInfo.Scope.Node = CurrentNode; /* Lookup the NameSeg using SEARCH_PARENT (search-to-root) */ Status = AcpiNsLookup (&ScopeInfo, Path, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, WalkState, &(Node)); if (ACPI_FAILURE (Status)) { return (Status); } /* * We found the name, but we must check to make sure that the node * matches. Otherwise, there is another identical name in the search * path that precludes the use of this optimization. */ if (Node != TargetNode) { /* * This means that another object with the same name was found first, * and we cannot use this optimization. */ return (AE_NOT_FOUND); } /* Found the node, we can use this optimization */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "NAMESEG: %-24s", Path)); /* We must allocate a new string for the name (TargetPath gets deleted) */ *NewPath = UtLocalCacheCalloc (ACPI_NAMESEG_SIZE + 1); strcpy (*NewPath, Path); if (strncmp (*NewPath, "_T_", 3)) { AslError (ASL_OPTIMIZATION, ASL_MSG_SINGLE_NAME_OPTIMIZATION, Op, *NewPath); } return (AE_OK); } /******************************************************************************* * * FUNCTION: OptBuildShortestPath * * PARAMETERS: Op - Current parser op * WalkState - Current state * CurrentNode - Where we are in the namespace * TargetNode - Node to which we are referring * CurrentPath - External full path to the current node * TargetPath - External full path to the target node * AmlNameStringLength - Length of the original namepath * IsDeclaration - TRUE for declaration, FALSE for reference * ReturnNewPath - Where the optimized path is returned * * RETURN: Status * * DESCRIPTION: Build an optimal NamePath using carats * ******************************************************************************/ static ACPI_STATUS OptBuildShortestPath ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *CurrentNode, ACPI_NAMESPACE_NODE *TargetNode, ACPI_BUFFER *CurrentPath, ACPI_BUFFER *TargetPath, ACPI_SIZE AmlNameStringLength, UINT8 IsDeclaration, char **ReturnNewPath) { UINT32 NumCommonSegments; UINT32 MaxCommonSegments; UINT32 Index; UINT32 NumCarats; UINT32 i; char *NewPathInternal; char *NewPathExternal; ACPI_NAMESPACE_NODE *Node; ACPI_GENERIC_STATE ScopeInfo; ACPI_STATUS Status; BOOLEAN SubPath = FALSE; ACPI_FUNCTION_NAME (OptBuildShortestPath); ScopeInfo.Scope.Node = CurrentNode; /* * Determine the maximum number of NameSegs that the Target and Current paths * can possibly have in common. (To optimize, we have to have at least 1) * * Note: The external NamePath string lengths are always a multiple of 5 * (ACPI_NAMESEG_SIZE + separator) */ MaxCommonSegments = TargetPath->Length / ACPI_PATH_SEGMENT_LENGTH; if (CurrentPath->Length < TargetPath->Length) { MaxCommonSegments = CurrentPath->Length / ACPI_PATH_SEGMENT_LENGTH; } /* * Determine how many NameSegs the two paths have in common. * (Starting from the root) */ for (NumCommonSegments = 0; NumCommonSegments < MaxCommonSegments; NumCommonSegments++) { /* Compare two single NameSegs */ Index = (NumCommonSegments * ACPI_PATH_SEGMENT_LENGTH) + 1; if (!ACPI_COMPARE_NAMESEG ( &(ACPI_CAST_PTR (char, TargetPath->Pointer)) [Index], &(ACPI_CAST_PTR (char, CurrentPath->Pointer)) [Index])) { /* Mismatch */ break; } } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " COMMON: %u", NumCommonSegments)); /* There must be at least 1 common NameSeg in order to optimize */ if (NumCommonSegments == 0) { return (AE_NOT_FOUND); } if (NumCommonSegments == MaxCommonSegments) { if (CurrentPath->Length == TargetPath->Length) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " SAME PATH")); return (AE_NOT_FOUND); } else { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " SUBPATH")); SubPath = TRUE; } } /* Determine how many prefix Carats are required */ NumCarats = (CurrentPath->Length / ACPI_PATH_SEGMENT_LENGTH) - NumCommonSegments; /* * Construct a new target string */ NewPathExternal = UtLocalCacheCalloc (TargetPath->Length + NumCarats + 1); /* Insert the Carats into the Target string */ for (i = 0; i < NumCarats; i++) { NewPathExternal[i] = AML_PARENT_PREFIX; } /* * Copy only the necessary (optimal) segments from the original * target string */ Index = (NumCommonSegments * ACPI_PATH_SEGMENT_LENGTH) + 1; /* Special handling for exact subpath in a name declaration */ if (IsDeclaration && SubPath && (CurrentPath->Length > TargetPath->Length)) { /* * The current path is longer than the target, and the target is a * subpath of the current path. We must include one more NameSeg of * the target path */ Index -= ACPI_PATH_SEGMENT_LENGTH; /* Special handling for Scope() operator */ if (Op->Asl.AmlOpcode == AML_SCOPE_OP) { NewPathExternal[i] = AML_PARENT_PREFIX; i++; ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "(EXTRA ^)")); } } /* Make sure we haven't gone off the end of the target path */ if (Index > TargetPath->Length) { Index = TargetPath->Length; } strcpy (&NewPathExternal[i], &(ACPI_CAST_PTR (char, TargetPath->Pointer))[Index]); ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " %-24s", NewPathExternal)); /* * Internalize the new target string and check it against the original * string to make sure that this is in fact an optimization. If the * original string is already optimal, there is no point in continuing. */ Status = AcpiNsInternalizeName (NewPathExternal, &NewPathInternal); if (ACPI_FAILURE (Status)) { AslCoreSubsystemError (Op, Status, "Internalizing new NamePath", ASL_NO_ABORT); goto Cleanup; } if (strlen (NewPathInternal) >= AmlNameStringLength) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " NOT SHORTER (New %u old %u)", (UINT32) strlen (NewPathInternal), (UINT32) AmlNameStringLength)); ACPI_FREE (NewPathInternal); Status = AE_NOT_FOUND; goto Cleanup; } /* * Check to make sure that the optimization finds the node we are * looking for. This is simply a sanity check on the new * path that has been created. */ Status = AcpiNsLookup (&ScopeInfo, NewPathInternal, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_DONT_OPEN_SCOPE, WalkState, &(Node)); if (ACPI_SUCCESS (Status)) { /* Found the namepath, but make sure the node is correct */ if (Node == TargetNode) { /* The lookup matched the node, accept this optimization */ AslError (ASL_OPTIMIZATION, ASL_MSG_NAME_OPTIMIZATION, Op, NewPathExternal); *ReturnNewPath = NewPathInternal; } else { /* Node is not correct, do not use this optimization */ Status = AE_NOT_FOUND; ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " ***** WRONG NODE")); AslError (ASL_WARNING, ASL_MSG_COMPILER_INTERNAL, Op, "Not using optimized name - found wrong node"); } } else { /* The lookup failed, we obviously cannot use this optimization */ ACPI_FREE (NewPathInternal); ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " ***** NOT FOUND")); AslError (ASL_WARNING, ASL_MSG_COMPILER_INTERNAL, Op, "Not using optimized name - did not find node"); } Cleanup: return (Status); } /******************************************************************************* * * FUNCTION: OptOptimizeNameDeclaration * * PARAMETERS: Op - Current parser op * WalkState - Current state * CurrentNode - Where we are in the namespace * AmlNameString - Unoptimized namepath * NewPath - Where the optimized path is returned * * RETURN: Status. AE_OK If path is optimized * * DESCRIPTION: Perform a simple optimization of removing an extraneous * backslash prefix if we are already at the root scope. * ******************************************************************************/ static ACPI_STATUS OptOptimizeNameDeclaration ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE *CurrentNode, ACPI_NAMESPACE_NODE *TargetNode, char *AmlNameString, char **NewPath) { ACPI_STATUS Status; char *NewPathExternal; ACPI_NAMESPACE_NODE *Node; ACPI_FUNCTION_TRACE (OptOptimizeNameDeclaration); if (((CurrentNode == AcpiGbl_RootNode) || (Op->Common.Parent->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK)) && (ACPI_IS_ROOT_PREFIX (AmlNameString[0]))) { /* * The current scope is the root, and the namepath has a root prefix * that is therefore extraneous. Remove it. */ *NewPath = &AmlNameString[1]; /* Debug output */ Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, *NewPath, NULL, &NewPathExternal); if (ACPI_FAILURE (Status)) { AslCoreSubsystemError (Op, Status, "Externalizing NamePath", ASL_NO_ABORT); return (Status); } /* * Check to make sure that the optimization finds the node we are * looking for. This is simply a sanity check on the new * path that has been created. * * We know that we are at the root, so NULL is used for the scope. */ Status = AcpiNsLookup (NULL, *NewPath, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_DONT_OPEN_SCOPE, WalkState, &(Node)); if (ACPI_SUCCESS (Status)) { /* Found the namepath, but make sure the node is correct */ if (Node == TargetNode) { /* The lookup matched the node, accept this optimization */ AslError (ASL_OPTIMIZATION, ASL_MSG_NAME_OPTIMIZATION, Op, NewPathExternal); ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "AT ROOT: %-24s", NewPathExternal)); } else { /* Node is not correct, do not use this optimization */ Status = AE_NOT_FOUND; ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " ***** WRONG NODE")); AslError (ASL_WARNING, ASL_MSG_COMPILER_INTERNAL, Op, "Not using optimized name - found wrong node"); } } else { /* The lookup failed, we obviously cannot use this optimization */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " ***** NOT FOUND")); AslError (ASL_WARNING, ASL_MSG_COMPILER_INTERNAL, Op, "Not using optimized name - did not find node"); } ACPI_FREE (NewPathExternal); return (Status); } /* Could not optimize */ return (AE_NOT_FOUND); } /******************************************************************************* * * FUNCTION: OptOptimizeNamePath * * PARAMETERS: Op - Current parser op * Flags - Opcode info flags * WalkState - Current state * AmlNameString - Unoptimized namepath * TargetNode - Node to which AmlNameString refers * * RETURN: None. If path is optimized, the Op is updated with new path * * DESCRIPTION: Optimize a Named Declaration or Reference to the minimal length. * Must take into account both the current location in the * namespace and the actual reference path. * ******************************************************************************/ void OptOptimizeNamePath ( ACPI_PARSE_OBJECT *Op, UINT32 Flags, ACPI_WALK_STATE *WalkState, char *AmlNameString, ACPI_NAMESPACE_NODE *TargetNode) { ACPI_STATUS Status; ACPI_BUFFER TargetPath; ACPI_BUFFER CurrentPath; ACPI_SIZE AmlNameStringLength; ACPI_NAMESPACE_NODE *CurrentNode; char *ExternalNameString; char *NewPath = NULL; ACPI_SIZE HowMuchShorter; ACPI_PARSE_OBJECT *NextOp; ACPI_FUNCTION_TRACE (OptOptimizeNamePath); /* This is an optional optimization */ if (!AslGbl_ReferenceOptimizationFlag) { return_VOID; } /* Various required items */ if (!TargetNode || !WalkState || !AmlNameString || !Op->Common.Parent) { return_VOID; } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "PATH OPTIMIZE: Line %5d ParentOp [%12.12s] ThisOp [%12.12s] ", Op->Asl.LogicalLineNumber, AcpiPsGetOpcodeName (Op->Common.Parent->Common.AmlOpcode), AcpiPsGetOpcodeName (Op->Common.AmlOpcode))); if (!(Flags & (AML_NAMED | AML_CREATE))) { if (Op->Asl.CompileFlags & OP_IS_NAME_DECLARATION) { /* We don't want to fuss with actual name declaration nodes here */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "******* NAME DECLARATION\n")); return_VOID; } } /* * The original path must be longer than one NameSeg (4 chars) for there * to be any possibility that it can be optimized to a shorter string */ AmlNameStringLength = strlen (AmlNameString); if (AmlNameStringLength <= ACPI_NAMESEG_SIZE) { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "NAMESEG %4.4s\n", AmlNameString)); return_VOID; } /* * We need to obtain the node that represents the current scope -- where * we are right now in the namespace. We will compare this path * against the Namepath, looking for commonality. */ CurrentNode = AcpiGbl_RootNode; if (WalkState->ScopeInfo) { CurrentNode = WalkState->ScopeInfo->Scope.Node; } if (Flags & (AML_NAMED | AML_CREATE)) { /* This is the declaration of a new name */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "NAME\n")); /* * The node of interest is the parent of this node (the containing * scope). The actual namespace node may be up more than one level * of parse op or it may not exist at all (if we traverse back * up to the root.) */ NextOp = Op->Asl.Parent; while (NextOp && (!NextOp->Asl.Node)) { NextOp = NextOp->Asl.Parent; } if (NextOp && NextOp->Asl.Node) { CurrentNode = NextOp->Asl.Node; } else { CurrentNode = AcpiGbl_RootNode; } } else { /* This is a reference to an existing named object */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "REFERENCE\n")); } /* * Obtain the full paths to the two nodes that we are interested in * (Target and current namespace location) in external * format -- something we can easily manipulate */ TargetPath.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (TargetNode, &TargetPath, FALSE); if (ACPI_FAILURE (Status)) { AslCoreSubsystemError (Op, Status, "Getting Target NamePath", ASL_NO_ABORT); return_VOID; } TargetPath.Length--; /* Subtract one for null terminator */ /* CurrentPath is the path to this scope (where we are in the namespace) */ CurrentPath.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (CurrentNode, &CurrentPath, FALSE); if (ACPI_FAILURE (Status)) { AslCoreSubsystemError (Op, Status, "Getting Current NamePath", ASL_NO_ABORT); return_VOID; } CurrentPath.Length--; /* Subtract one for null terminator */ /* Debug output only */ Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, AmlNameString, NULL, &ExternalNameString); if (ACPI_FAILURE (Status)) { AslCoreSubsystemError (Op, Status, "Externalizing NamePath", ASL_NO_ABORT); return_VOID; } ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "CURRENT SCOPE: (%2u) %-37s FULL PATH TO NAME: (%2u) %-32s ACTUAL AML:%-32s\n", (UINT32) CurrentPath.Length, (char *) CurrentPath.Pointer, (UINT32) TargetPath.Length, (char *) TargetPath.Pointer, ExternalNameString)); ACPI_FREE (ExternalNameString); /* * Attempt an optimization depending on the type of namepath */ if (Flags & (AML_NAMED | AML_CREATE)) { /* * This is a named opcode and the namepath is a name declaration, not * a reference. */ Status = OptOptimizeNameDeclaration (Op, WalkState, CurrentNode, TargetNode, AmlNameString, &NewPath); if (ACPI_FAILURE (Status)) { /* * 2) now attempt to * optimize the namestring with carats (up-arrow) */ Status = OptBuildShortestPath (Op, WalkState, CurrentNode, TargetNode, &CurrentPath, &TargetPath, AmlNameStringLength, 1, &NewPath); } } else { /* * This is a reference to an existing named object * * 1) Check if search-to-root can be utilized using the last * NameSeg of the NamePath */ Status = OptSearchToRoot (Op, WalkState, CurrentNode, TargetNode, &TargetPath, &NewPath); if (ACPI_FAILURE (Status)) { /* * 2) Search-to-root could not be used, now attempt to * optimize the namestring with carats (up-arrow) */ Status = OptBuildShortestPath (Op, WalkState, CurrentNode, TargetNode, &CurrentPath, &TargetPath, AmlNameStringLength, 0, &NewPath); } } /* * Success from above indicates that the NamePath was successfully * optimized. We need to update the parse op with the new name */ if (ACPI_SUCCESS (Status)) { HowMuchShorter = (AmlNameStringLength - strlen (NewPath)); OptTotal += HowMuchShorter; ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " REDUCED BY %2u (TOTAL SAVED %2u)", (UINT32) HowMuchShorter, OptTotal)); if (Flags & AML_NAMED) { if (Op->Asl.AmlOpcode == AML_ALIAS_OP) { /* * ALIAS is the only oddball opcode, the name declaration * (alias name) is the second operand */ Op->Asl.Child->Asl.Next->Asl.Value.String = NewPath; Op->Asl.Child->Asl.Next->Asl.AmlLength = strlen (NewPath); } else { Op->Asl.Child->Asl.Value.String = NewPath; Op->Asl.Child->Asl.AmlLength = strlen (NewPath); } } else if (Flags & AML_CREATE) { /* Name must appear as the last parameter */ NextOp = Op->Asl.Child; while (!(NextOp->Asl.CompileFlags & OP_IS_NAME_DECLARATION)) { NextOp = NextOp->Asl.Next; } /* Update the parse node with the new NamePath */ NextOp->Asl.Value.String = NewPath; NextOp->Asl.AmlLength = strlen (NewPath); } else { /* Update the parse node with the new NamePath */ Op->Asl.Value.String = NewPath; Op->Asl.AmlLength = strlen (NewPath); } } else { ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, " ALREADY OPTIMAL")); } /* Cleanup path buffers */ ACPI_FREE (TargetPath.Pointer); ACPI_FREE (CurrentPath.Pointer); ACPI_DEBUG_PRINT_RAW ((ACPI_DB_OPTIMIZATIONS, "\n")); return_VOID; } acpica-unix-20250404/source/compiler/asloffset.c0000775000175000017500000003600414773714131021007 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: asloffset - Generate a C "offset table" for BIOS use. * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #include "amlcode.h" #include "acnamesp.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("asloffset") /* Local prototypes */ static void LsEmitOffsetTableEntry ( UINT32 FileId, ACPI_NAMESPACE_NODE *Node, UINT32 NamepathOffset, UINT32 Offset, char *OpName, UINT64 Value, UINT8 AmlOpcode, UINT16 ParentOpcode); /******************************************************************************* * * FUNCTION: LsAmlOffsetWalk * * PARAMETERS: ASL_WALK_CALLBACK * * RETURN: Status * * DESCRIPTION: Process one node during a offset table file generation. * * Three types of objects are currently emitted to the offset table: * 1) Tagged (named) resource descriptors * 2) Named integer objects with constant integer values * 3) Named package objects * 4) Operation Regions that have constant Offset (address) parameters * 5) Control methods * * The offset table allows the BIOS to dynamically update the values of these * objects at boot time. * ******************************************************************************/ ACPI_STATUS LsAmlOffsetWalk ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { UINT32 FileId = (UINT32) ACPI_TO_INTEGER (Context); ACPI_NAMESPACE_NODE *Node; UINT32 Length; UINT32 NamepathOffset; UINT32 DataOffset; ACPI_PARSE_OBJECT *NextOp; /* Ignore actual data blocks for resource descriptors */ if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DATA) { return (AE_OK); /* Do NOT update the global AML offset */ } /* We are only interested in named objects (have a namespace node) */ Node = Op->Asl.Node; if (!Node) { AslGbl_CurrentAmlOffset += Op->Asl.FinalAmlLength; return (AE_OK); } /* Named resource descriptor (has a descriptor tag) */ if ((Node->Type == ACPI_TYPE_LOCAL_RESOURCE) && (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC)) { LsEmitOffsetTableEntry (FileId, Node, 0, AslGbl_CurrentAmlOffset, Op->Asl.ParseOpName, 0, Op->Asl.Extra, AML_BUFFER_OP); AslGbl_CurrentAmlOffset += Op->Asl.FinalAmlLength; return (AE_OK); } switch (Op->Asl.AmlOpcode) { case AML_NAME_OP: /* Named object -- Name (NameString, DataRefObject) */ if (!Op->Asl.Child) { FlPrintFile (FileId, "%s NO CHILD!\n", AslGbl_MsgBuffer); return (AE_OK); } Length = Op->Asl.FinalAmlLength; /* Get to the NameSeg/NamePath Op (and length of the name) */ Op = Op->Asl.Child; /* Get offset of last nameseg and the actual data */ NamepathOffset = AslGbl_CurrentAmlOffset + Length + (Op->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE); DataOffset = AslGbl_CurrentAmlOffset + Length + Op->Asl.FinalAmlLength; /* Get actual value associated with the name */ Op = Op->Asl.Next; switch (Op->Asl.AmlOpcode) { case AML_BYTE_OP: case AML_WORD_OP: case AML_DWORD_OP: case AML_QWORD_OP: /* The +1 is to handle the integer size prefix (opcode) */ LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, (DataOffset + 1), Op->Asl.ParseOpName, Op->Asl.Value.Integer, (UINT8) Op->Asl.AmlOpcode, AML_NAME_OP); break; case AML_ONE_OP: case AML_ONES_OP: case AML_ZERO_OP: /* For these, offset will point to the opcode */ LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, DataOffset, Op->Asl.ParseOpName, Op->Asl.Value.Integer, (UINT8) Op->Asl.AmlOpcode, AML_NAME_OP); break; case AML_PACKAGE_OP: case AML_VARIABLE_PACKAGE_OP: /* Get the package element count */ NextOp = Op->Asl.Child; LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, DataOffset, Op->Asl.ParseOpName, NextOp->Asl.Value.Integer, (UINT8) Op->Asl.AmlOpcode, AML_NAME_OP); break; default: break; } AslGbl_CurrentAmlOffset += Length; return (AE_OK); case AML_REGION_OP: /* OperationRegion (NameString, RegionSpace, RegionOffset, RegionLength) */ Length = Op->Asl.FinalAmlLength; /* Get the name/namepath node */ NextOp = Op->Asl.Child; /* Get offset of last nameseg and the actual data */ NamepathOffset = AslGbl_CurrentAmlOffset + Length + (NextOp->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE); DataOffset = AslGbl_CurrentAmlOffset + Length + (NextOp->Asl.FinalAmlLength + 1); /* Get the SpaceId node, then the Offset (address) node */ NextOp = NextOp->Asl.Next; NextOp = NextOp->Asl.Next; switch (NextOp->Asl.AmlOpcode) { /* * We are only interested in integer constants that can be changed * at boot time. Note, the One/Ones/Zero opcodes are considered * non-changeable, so we ignore them here. */ case AML_BYTE_OP: case AML_WORD_OP: case AML_DWORD_OP: case AML_QWORD_OP: LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, (DataOffset + 1), Op->Asl.ParseOpName, NextOp->Asl.Value.Integer, (UINT8) NextOp->Asl.AmlOpcode, AML_REGION_OP); AslGbl_CurrentAmlOffset += Length; return (AE_OK); default: break; } break; case AML_METHOD_OP: /* Method (Namepath, ...) */ Length = Op->Asl.FinalAmlLength; /* Get the NameSeg/NamePath Op */ NextOp = Op->Asl.Child; /* Get offset of last nameseg and the actual data (flags byte) */ NamepathOffset = AslGbl_CurrentAmlOffset + Length + (NextOp->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE); DataOffset = AslGbl_CurrentAmlOffset + Length + NextOp->Asl.FinalAmlLength; /* Get the flags byte Op */ NextOp = NextOp->Asl.Next; LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, DataOffset, Op->Asl.ParseOpName, NextOp->Asl.Value.Integer, (UINT8) Op->Asl.AmlOpcode, AML_METHOD_OP); break; case AML_PROCESSOR_OP: /* Processor (Namepath, ProcessorId, Address, Length) */ Length = Op->Asl.FinalAmlLength; NextOp = Op->Asl.Child; /* Get Namepath */ /* Get offset of last nameseg and the actual data (PBlock address) */ NamepathOffset = AslGbl_CurrentAmlOffset + Length + (NextOp->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE); DataOffset = AslGbl_CurrentAmlOffset + Length + (NextOp->Asl.FinalAmlLength + 1); NextOp = NextOp->Asl.Next; /* Get ProcessorID (BYTE) */ NextOp = NextOp->Asl.Next; /* Get Address (DWORD) */ LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, DataOffset, Op->Asl.ParseOpName, NextOp->Asl.Value.Integer, (UINT8) AML_DWORD_OP, AML_PROCESSOR_OP); break; case AML_DEVICE_OP: case AML_SCOPE_OP: case AML_THERMAL_ZONE_OP: /* Device/Scope/ThermalZone (Namepath) */ Length = Op->Asl.FinalAmlLength; NextOp = Op->Asl.Child; /* Get Namepath */ /* Get offset of last nameseg */ NamepathOffset = AslGbl_CurrentAmlOffset + Length + (NextOp->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE); LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, 0, Op->Asl.ParseOpName, 0, (UINT8) 0, Op->Asl.AmlOpcode); break; default: break; } AslGbl_CurrentAmlOffset += Op->Asl.FinalAmlLength; return (AE_OK); } /******************************************************************************* * * FUNCTION: LsEmitOffsetTableEntry * * PARAMETERS: FileId - ID of current listing file * Node - Namespace node associated with the name * Offset - Offset of the value within the AML table * OpName - Name of the AML opcode * Value - Current value of the AML field * AmlOpcode - Opcode associated with the field * ObjectType - ACPI object type * * RETURN: None * * DESCRIPTION: Emit a line of the offset table (-so option) * ******************************************************************************/ static void LsEmitOffsetTableEntry ( UINT32 FileId, ACPI_NAMESPACE_NODE *Node, UINT32 NamepathOffset, UINT32 Offset, char *OpName, UINT64 Value, UINT8 AmlOpcode, UINT16 ParentOpcode) { ACPI_BUFFER TargetPath; ACPI_STATUS Status; /* Get the full pathname to the namespace node */ TargetPath.Length = ACPI_ALLOCATE_LOCAL_BUFFER; Status = AcpiNsHandleToPathname (Node, &TargetPath, FALSE); if (ACPI_FAILURE (Status)) { return; } /* [1] - Skip the opening backslash for the path */ strcpy (AslGbl_MsgBuffer, "\""); strcat (AslGbl_MsgBuffer, &((char *) TargetPath.Pointer)[1]); strcat (AslGbl_MsgBuffer, "\","); ACPI_FREE (TargetPath.Pointer); /* * Max offset is 4G, constrained by 32-bit ACPI table length. * Max Length for Integers is 8 bytes. */ FlPrintFile (FileId, " {%-29s 0x%4.4X, 0x%8.8X, 0x%2.2X, 0x%8.8X, 0x%8.8X%8.8X}, /* %s */\n", AslGbl_MsgBuffer, ParentOpcode, NamepathOffset, AmlOpcode, Offset, ACPI_FORMAT_UINT64 (Value), OpName); } /******************************************************************************* * * FUNCTION: LsDoOffsetTableHeader, LsDoOffsetTableFooter * * PARAMETERS: FileId - ID of current listing file * * RETURN: None * * DESCRIPTION: Header and footer for the offset table file. * ******************************************************************************/ void LsDoOffsetTableHeader ( UINT32 FileId) { FlPrintFile (FileId, "#ifndef __AML_OFFSET_TABLE_H\n" "#define __AML_OFFSET_TABLE_H\n\n"); FlPrintFile (FileId, "typedef struct {\n" " char *Pathname; /* Full pathname (from root) to the object */\n" " unsigned short ParentOpcode; /* AML opcode for the parent object */\n" " unsigned long NamesegOffset; /* Offset of last nameseg in the parent namepath */\n" " unsigned char Opcode; /* AML opcode for the data */\n" " unsigned long Offset; /* Offset for the data */\n" " unsigned long long Value; /* Original value of the data (as applicable) */\n" "} AML_OFFSET_TABLE_ENTRY;\n\n"); FlPrintFile (FileId, "#endif /* __AML_OFFSET_TABLE_H */\n\n"); FlPrintFile (FileId, "/*\n" " * Information specific to the supported object types:\n" " *\n" " * Integers:\n" " * Opcode is the integer prefix, indicates length of the data\n" " * (One of: BYTE, WORD, DWORD, QWORD, ZERO, ONE, ONES)\n" " * Offset points to the actual integer data\n" " * Value is the existing value in the AML\n" " *\n" " * Packages:\n" " * Opcode is the package or var_package opcode\n" " * Offset points to the package opcode\n" " * Value is the package element count\n" " *\n" " * Operation Regions:\n" " * Opcode is the address integer prefix, indicates length of the data\n" " * Offset points to the region address\n" " * Value is the existing address value in the AML\n" " *\n" " * Control Methods:\n" " * Offset points to the method flags byte\n" " * Value is the existing flags value in the AML\n" " *\n" " * Processors:\n" " * Offset points to the first byte of the PBlock Address\n" " *\n" " * Resource Descriptors:\n" " * Opcode is the descriptor type\n" " * Offset points to the start of the descriptor\n" " *\n" " * Scopes/Devices/ThermalZones:\n" " * Nameseg offset only\n" " */\n"); FlPrintFile (FileId, "AML_OFFSET_TABLE_ENTRY %s_%s_OffsetTable[] =\n{\n", AslGbl_TableSignature, AslGbl_TableId); } void LsDoOffsetTableFooter ( UINT32 FileId) { FlPrintFile (FileId, " {NULL,0,0,0,0,0} /* Table terminator */\n};\n\n"); AslGbl_CurrentAmlOffset = 0; } acpica-unix-20250404/source/compiler/aslrules.y0000775000175000017500000006613314773714131020707 0ustar ivanhuivanhuNoEcho(' /****************************************************************************** * * Module Name: aslrules.y - Main Bison/Yacc production rules * - Keep this file synched with the * CvParseOpBlockType function in cvcompiler.c * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ ') /******************************************************************************* * * ASL Root and Secondary Terms * ******************************************************************************/ /* * Root term. Allow multiple #line directives before the definition block * to handle output from preprocessors */ AslCode : DefinitionBlockList {$$ = TrLinkOpChildren ( TrCreateLeafOp (PARSEOP_ASL_CODE),1, $1);} | error {YYABORT; $$ = NULL;} ; /* * Note concerning support for "module-level code". * * ACPI 1.0 allowed Type1 and Type2 executable opcodes outside of control * methods (the so-called module-level code.) This support was explicitly * removed in ACPI 2.0, but this type of code continues to be created by * BIOS vendors. In order to support the disassembly and recompilation of * such code (and the porting of ASL code to iASL), iASL supports this * code in violation of the current ACPI specification. * * The grammar change to support module-level code is to revert the * {ObjectList} portion of the DefinitionBlockTerm in ACPI 2.0 to the * original use of {TermList} instead (see below.) This allows the use * of Type1 and Type2 opcodes at module level. * * 04/2016: The module-level code is now allowed in the following terms: * DeviceTerm, PowerResTerm, ProcessorTerm, ScopeTerm, ThermalZoneTerm. * The ObjectList term is obsolete and has been removed. */ DefinitionBlockTerm : PARSEOP_DEFINITION_BLOCK PARSEOP_OPEN_PAREN {$$ = TrCreateLeafOp (PARSEOP_DEFINITION_BLOCK); COMMENT_CAPTURE_OFF;} String ',' String ',' ByteConst ',' String ',' String ',' DWordConst PARSEOP_CLOSE_PAREN {TrSetOpIntegerWidth ($6,$8); TrSetOpEndLineNumber ($3); COMMENT_CAPTURE_ON;} '{' TermList '}' {$$ = TrLinkOpChildren ($3,7, $4,$6,$8,$10,$12,$14,$18);} ; DefinitionBlockList : DefinitionBlockTerm | DefinitionBlockTerm DefinitionBlockList {$$ = TrLinkPeerOps (2, $1,$2);} ; /******* Basic ASCII identifiers **************************************************/ /* Allow IO, DMA, IRQ Resource macro and FOR macro names to also be used as identifiers */ NameString : NameSeg {} | PARSEOP_NAMESTRING {$$ = TrCreateValuedLeafOp (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) $1);} | PARSEOP_IO {$$ = TrCreateValuedLeafOp (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) "IO");} | PARSEOP_DMA {$$ = TrCreateValuedLeafOp (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) "DMA");} | PARSEOP_IRQ {$$ = TrCreateValuedLeafOp (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) "IRQ");} | PARSEOP_FOR {$$ = TrCreateValuedLeafOp (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) "FOR");} ; /* NameSeg : PARSEOP_NAMESEG {$$ = TrCreateValuedLeafOp (PARSEOP_NAMESEG, (ACPI_NATIVE_INT) TrNormalizeNameSeg ($1));} ; */ NameSeg : PARSEOP_NAMESEG {$$ = TrCreateValuedLeafOp (PARSEOP_NAMESEG, (ACPI_NATIVE_INT) AslCompilerlval.s);} ; /******* Fundamental argument/statement types ***********************************/ Term : Object {} | Type1Opcode {} | Type2Opcode {} | Type2IntegerOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | Type2StringOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | Type2BufferOpcode {} | Type2BufferOrStringOpcode {} | error {$$ = AslDoError(); yyclearin;} ; SuperName : SimpleName {} | DebugTerm {} | Type6Opcode {} ; Target : {$$ = TrCreateNullTargetOp ();} /* Placeholder is a ZeroOp object */ | ',' {$$ = TrCreateNullTargetOp ();} /* Placeholder is a ZeroOp object */ | ',' SuperName {$$ = TrSetOpFlags ($2, OP_IS_TARGET);} ; /* RequiredTarget : ',' SuperName {$$ = TrSetOpFlags ($2, OP_IS_TARGET);} ; */ TermArg : SimpleName {$$ = TrSetOpFlags ($1, OP_IS_TERM_ARG);} | Type2Opcode {$$ = TrSetOpFlags ($1, OP_IS_TERM_ARG);} | DataObject {$$ = TrSetOpFlags ($1, OP_IS_TERM_ARG);} | PARSEOP_OPEN_PAREN TermArg PARSEOP_CLOSE_PAREN {$$ = TrSetOpFlags ($2, OP_IS_TERM_ARG);} ; /* NOTE: Removed from TermArg due to reduce/reduce conflicts: | Type2IntegerOpcode {$$ = TrSetOpFlags ($1, OP_IS_TERM_ARG);} | Type2StringOpcode {$$ = TrSetOpFlags ($1, OP_IS_TERM_ARG);} | Type2BufferOpcode {$$ = TrSetOpFlags ($1, OP_IS_TERM_ARG);} | Type2BufferOrStringOpcode {$$ = TrSetOpFlags ($1, OP_IS_TERM_ARG);} */ MethodInvocationTerm : NameString PARSEOP_OPEN_PAREN {TrSetOpIntegerValue (PARSEOP_METHODCALL, $1); COMMENT_CAPTURE_OFF;} ArgList PARSEOP_CLOSE_PAREN {$$ = TrLinkChildOp ($1,$4); COMMENT_CAPTURE_ON;} ; /* OptionalCount must appear before ByteList or an incorrect reduction will result */ OptionalCount : {$$ = TrCreateLeafOp (PARSEOP_ONES);} /* Placeholder is a OnesOp object */ | ',' {$$ = TrCreateLeafOp (PARSEOP_ONES);} /* Placeholder is a OnesOp object */ | ',' TermArg {$$ = $2;} ; /* * Data count for buffers and packages (byte count for buffers, * element count for packages). */ OptionalDataCount /* Legacy ASL */ : {$$ = NULL;} | PARSEOP_OPEN_PAREN TermArg PARSEOP_CLOSE_PAREN {$$ = $2;} | PARSEOP_OPEN_PAREN PARSEOP_CLOSE_PAREN {$$ = NULL;} /* C-style (ASL+) -- adds equals term */ | PARSEOP_EXP_EQUALS {$$ = NULL;} | PARSEOP_OPEN_PAREN TermArg PARSEOP_CLOSE_PAREN PARSEOP_EXP_EQUALS {$$ = $2;} | PARSEOP_OPEN_PAREN PARSEOP_CLOSE_PAREN String PARSEOP_EXP_EQUALS {$$ = NULL;} ; /******* List Terms **************************************************/ /* ACPI 3.0 -- allow semicolons between terms */ TermList : {$$ = NULL;} | TermList Term {$$ = TrLinkPeerOp ( TrSetOpFlags ($1, OP_RESULT_NOT_USED),$2);} | TermList Term ';' {$$ = TrLinkPeerOp ( TrSetOpFlags ($1, OP_RESULT_NOT_USED),$2);} | TermList ';' Term {$$ = TrLinkPeerOp ( TrSetOpFlags ($1, OP_RESULT_NOT_USED),$3);} | TermList ';' Term ';' {$$ = TrLinkPeerOp ( TrSetOpFlags ($1, OP_RESULT_NOT_USED),$3);} ; ArgList : {$$ = NULL;} | TermArg | ArgList ',' /* Allows a trailing comma at list end */ | ArgList ',' TermArg {$$ = TrLinkPeerOp ($1,$3);} ; ByteList : {$$ = NULL;} | ByteConstExpr | ByteList ',' /* Allows a trailing comma at list end */ | ByteList ',' ByteConstExpr {$$ = TrLinkPeerOp ($1,$3);} ; DWordList : {$$ = NULL;} | DWordConstExpr | DWordList ',' /* Allows a trailing comma at list end */ | DWordList ',' DWordConstExpr {$$ = TrLinkPeerOp ($1,$3);} ; FieldUnitList : {$$ = NULL;} | FieldUnit | FieldUnitList ',' /* Allows a trailing comma at list end */ | FieldUnitList ',' FieldUnit {$$ = TrLinkPeerOp ($1,$3);} ; FieldUnit : FieldUnitEntry {} | OffsetTerm {} | AccessAsTerm {} | ConnectionTerm {} ; FieldUnitEntry : ',' AmlPackageLengthTerm {$$ = TrCreateOp (PARSEOP_RESERVED_BYTES,1,$2);} | NameSeg ',' AmlPackageLengthTerm {$$ = TrLinkChildOp ($1,$3);} ; Object : CompilerDirective {} | NamedObject {} | NameSpaceModifier {} /* | StructureTerm {} */ ; PackageList : {$$ = NULL;} | PackageElement | PackageList ',' /* Allows a trailing comma at list end */ | PackageList ',' PackageElement {$$ = TrLinkPeerOp ($1,$3);} ; PackageElement : DataObject {} | NameString {} ; /* Rules for specifying the type of one method argument or return value */ ParameterTypePackage : {$$ = NULL;} | ObjectTypeKeyword {$$ = $1;} | ParameterTypePackage ',' ObjectTypeKeyword {$$ = TrLinkPeerOps (2,$1,$3);} ; ParameterTypePackageList : {$$ = NULL;} | ObjectTypeKeyword {$$ = TrLinkOpChildren ( TrCreateLeafOp (PARSEOP_DEFAULT_ARG),1,$1);} | '{' ParameterTypePackage '}' {$$ = TrLinkOpChildren ( TrCreateLeafOp (PARSEOP_DEFAULT_ARG),1,$2);} ; OptionalParameterTypePackage : {$$ = NULL;} | ',' ParameterTypePackageList {$$ = $2;} ; /* Rules for specifying the types for method arguments */ ParameterTypesPackage : ParameterTypePackageList {$$ = $1;} | ParameterTypesPackage ',' ParameterTypePackageList {$$ = TrLinkPeerOps (2,$1,$3);} ; ParameterTypesPackageList : {$$ = NULL;} | ObjectTypeKeyword {$$ = TrLinkOpChildren ( TrCreateLeafOp (PARSEOP_DEFAULT_ARG),1,$1);} | '{' ParameterTypesPackage '}' {$$ = TrLinkOpChildren ( TrCreateLeafOp (PARSEOP_DEFAULT_ARG),1,$2);} ; OptionalParameterTypesPackage : {$$ = NULL;} | ',' ParameterTypesPackageList {$$ = $2;} ; /* * Case-Default list; allow only one Default term and unlimited Case terms */ CaseDefaultTermList : {$$ = NULL;} | CaseTerm {} | DefaultTerm {} | CaseDefaultTermList CaseTerm {$$ = TrLinkPeerOp ($1,$2);} | CaseDefaultTermList DefaultTerm {$$ = TrLinkPeerOp ($1,$2);} /* Original - attempts to force zero or one default term within the switch */ /* CaseDefaultTermList : {$$ = NULL;} | CaseTermList DefaultTerm CaseTermList {$$ = TrLinkPeerOp ($1,TrLinkPeerOp ($2, $3));} | CaseTermList CaseTerm {$$ = TrLinkPeerOp ($1,$2);} ; CaseTermList : {$$ = NULL;} | CaseTerm {} | CaseTermList CaseTerm {$$ = TrLinkPeerOp ($1,$2);} ; */ /******************************************************************************* * * ASL Data and Constant Terms * ******************************************************************************/ DataObject : BufferData {} | PackageData {} | IntegerData {} | StringData {} ; BufferData : Type5Opcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | Type2BufferOrStringOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | Type2BufferOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | BufferTerm {} ; PackageData : PackageTerm {} ; IntegerData : Type2IntegerOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | Type3Opcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | Integer {} | ConstTerm {} ; StringData : Type2StringOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | String {} ; StringLiteral : String {} ; ByteConst : Integer {$$ = TrSetOpIntegerValue (PARSEOP_BYTECONST, $1);} ; WordConst : Integer {$$ = TrSetOpIntegerValue (PARSEOP_WORDCONST, $1);} ; DWordConst : Integer {$$ = TrSetOpIntegerValue (PARSEOP_DWORDCONST, $1);} ; QWordConst : Integer {$$ = TrSetOpIntegerValue (PARSEOP_QWORDCONST, $1);} ; /* * The OP_COMPILE_TIME_CONST flag in the following constant expressions * enables compile-time constant folding to reduce the Type3Opcodes/Type2IntegerOpcodes * to simple integers. It is an error if these types of expressions cannot be * reduced, since the AML grammar for ****ConstExpr requires a simple constant. * Note: The required byte length of the constant is passed through to the * constant folding code in the node AmlLength field. */ ByteConstExpr : Type3Opcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST); TrSetOpAmlLength ($1, 1);} | Type2IntegerOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST); TrSetOpAmlLength ($1, 1);} | ConstExprTerm {$$ = TrSetOpIntegerValue (PARSEOP_BYTECONST, $1);} | ByteConst {} ; WordConstExpr : Type3Opcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST); TrSetOpAmlLength ($1, 2);} | Type2IntegerOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST); TrSetOpAmlLength ($1, 2);} | ConstExprTerm {$$ = TrSetOpIntegerValue (PARSEOP_WORDCONST, $1);} | WordConst {} ; DWordConstExpr : Type3Opcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST); TrSetOpAmlLength ($1, 4);} | Type2IntegerOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST); TrSetOpAmlLength ($1, 4);} | ConstExprTerm {$$ = TrSetOpIntegerValue (PARSEOP_DWORDCONST, $1);} | DWordConst {} ; QWordConstExpr : Type3Opcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST); TrSetOpAmlLength ($1, 8);} | Type2IntegerOpcode {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST); TrSetOpAmlLength ($1, 8);} | ConstExprTerm {$$ = TrSetOpIntegerValue (PARSEOP_QWORDCONST, $1);} | QWordConst {} ; ConstTerm : ConstExprTerm {} | PARSEOP_REVISION {$$ = TrCreateLeafOp (PARSEOP_REVISION);} ; ConstExprTerm : PARSEOP_ZERO {$$ = TrCreateValuedLeafOp (PARSEOP_ZERO, 0);} | PARSEOP_ONE {$$ = TrCreateValuedLeafOp (PARSEOP_ONE, 1);} | PARSEOP_ONES {$$ = TrCreateValuedLeafOp (PARSEOP_ONES, ACPI_UINT64_MAX);} | PARSEOP___DATE__ {$$ = TrCreateConstantLeafOp (PARSEOP___DATE__);} | PARSEOP___FILE__ {$$ = TrCreateConstantLeafOp (PARSEOP___FILE__);} | PARSEOP___LINE__ {$$ = TrCreateConstantLeafOp (PARSEOP___LINE__);} | PARSEOP___PATH__ {$$ = TrCreateConstantLeafOp (PARSEOP___PATH__);} | PARSEOP___METHOD__ {$$ = TrCreateConstantLeafOp (PARSEOP___METHOD__);} ; Integer : PARSEOP_INTEGER {$$ = TrCreateValuedLeafOp (PARSEOP_INTEGER, AslCompilerlval.i);} ; String : PARSEOP_STRING_LITERAL {$$ = TrCreateValuedLeafOp (PARSEOP_STRING_LITERAL, (ACPI_NATIVE_INT) AslCompilerlval.s);} ; /******************************************************************************* * * ASL Opcode Terms * ******************************************************************************/ CompilerDirective : IncludeTerm {} | IncludeEndTerm {} | ExternalTerm {} ; NamedObject : BankFieldTerm {} | CreateBitFieldTerm {} | CreateByteFieldTerm {} | CreateDWordFieldTerm {} | CreateFieldTerm {} | CreateQWordFieldTerm {} | CreateWordFieldTerm {} | DataRegionTerm {} | DeviceTerm {} | EventTerm {} | FieldTerm {} | FunctionTerm {} | IndexFieldTerm {} | MethodTerm {} | MutexTerm {} | OpRegionTerm {} | PowerResTerm {} | ProcessorTerm {} | ThermalZoneTerm {} ; NameSpaceModifier : AliasTerm {} | NameTerm {} /* | NameTermAslPlus {} */ | ScopeTerm {} ; SimpleName : NameString {} | LocalTerm {} | ArgTerm {} ; /* For ObjectType(), SuperName except for MethodInvocationTerm */ ObjectTypeSource : SimpleName {} | DebugTerm {} | RefOfTerm {} | DerefOfTerm {} | IndexTerm {} | IndexExpTerm {} ; /* For DeRefOf(), SuperName except for DerefOf and Debug */ DerefOfSource : SimpleName {} | RefOfTerm {} | DerefOfTerm {} | IndexTerm {} | IndexExpTerm {} | StoreTerm {} | EqualsTerm {} | MethodInvocationTerm {} ; /* For RefOf(), SuperName except for RefOf and MethodInvocationTerm */ RefOfSource : SimpleName {} | DebugTerm {} | DerefOfTerm {} | IndexTerm {} | IndexExpTerm {} ; /* For CondRefOf(), SuperName except for RefOf and MethodInvocationTerm */ CondRefOfSource : SimpleName {} | DebugTerm {} | DerefOfTerm {} | IndexTerm {} | IndexExpTerm {} ; /* * Opcode types, as defined in the ACPI specification */ Type1Opcode : BreakTerm {} | BreakPointTerm {} | ContinueTerm {} | FatalTerm {} | ForTerm {} | ElseIfTerm {} | NoOpTerm {} | NotifyTerm {} | ReleaseTerm {} | ResetTerm {} | ReturnTerm {} | SignalTerm {} | SleepTerm {} | StallTerm {} | SwitchTerm {} | UnloadTerm {} | WhileTerm {} ; Type2Opcode : AcquireTerm {} | CondRefOfTerm {} | CopyObjectTerm {} | DerefOfTerm {} | LoadTerm {} /* Moved from Type1 -- now returns an integer (ACPI 6.4) */ | ObjectTypeTerm {} | RefOfTerm {} | SizeOfTerm {} | StoreTerm {} | EqualsTerm {} | TimerTerm {} | WaitTerm {} | MethodInvocationTerm {} ; /* * Type 3/4/5 opcodes */ Type2IntegerOpcode /* "Type3" opcodes */ : Expression {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | AddTerm {} | AndTerm {} | DecTerm {} | DivideTerm {} | FindSetLeftBitTerm {} | FindSetRightBitTerm {} | FromBCDTerm {} | IncTerm {} | IndexTerm {} /* | StructureIndexTerm {} */ /* | StructurePointerTerm {} */ | LAndTerm {} | LEqualTerm {} | LGreaterTerm {} | LGreaterEqualTerm {} | LLessTerm {} | LLessEqualTerm {} | LNotTerm {} | LNotEqualTerm {} | LoadTableTerm {} | LOrTerm {} | MatchTerm {} | ModTerm {} | MultiplyTerm {} | NAndTerm {} | NOrTerm {} | NotTerm {} | OrTerm {} | ShiftLeftTerm {} | ShiftRightTerm {} | SubtractTerm {} | ToBCDTerm {} | ToIntegerTerm {} | XOrTerm {} ; Type2StringOpcode /* "Type4" Opcodes */ : ToDecimalStringTerm {} | ToHexStringTerm {} | ToStringTerm {} ; Type2BufferOpcode /* "Type5" Opcodes */ : ToBufferTerm {} | ConcatResTerm {} ; Type2BufferOrStringOpcode : ConcatTerm {$$ = TrSetOpFlags ($1, OP_COMPILE_TIME_CONST);} | PrintfTerm {} | FprintfTerm {} | MidTerm {} ; /* * A type 3 opcode evaluates to an Integer and cannot have a destination operand */ Type3Opcode : EISAIDTerm {} ; /* Obsolete Type4Opcode : ConcatTerm {} | ToDecimalStringTerm {} | ToHexStringTerm {} | MidTerm {} | ToStringTerm {} ; */ /* Type 5 opcodes are a subset of Type2 opcodes, and return a constant */ Type5Opcode : ResourceTemplateTerm {} | UnicodeTerm {} | ToPLDTerm {} | ToUUIDTerm {} ; Type6Opcode : RefOfTerm {} | DerefOfTerm {} | IndexTerm {} | IndexExpTerm {} /* | StructureIndexTerm {} */ /* | StructurePointerTerm {} */ | MethodInvocationTerm {} ; /******************************************************************************* * * ASL Helper Terms * ******************************************************************************/ AmlPackageLengthTerm : Integer {$$ = TrSetOpIntegerValue (PARSEOP_PACKAGE_LENGTH, (ACPI_PARSE_OBJECT *) $1);} ; NameStringItem : ',' NameString {$$ = $2;} | ',' error {$$ = AslDoError (); yyclearin;} ; TermArgItem : ',' TermArg {$$ = $2;} | ',' error {$$ = AslDoError (); yyclearin;} ; OptionalReference : {$$ = TrCreateLeafOp (PARSEOP_ZERO);} /* Placeholder is a ZeroOp object */ | ',' {$$ = TrCreateLeafOp (PARSEOP_ZERO);} /* Placeholder is a ZeroOp object */ | ',' TermArg {$$ = $2;} ; OptionalReturnArg : {$$ = TrSetOpFlags (TrCreateLeafOp (PARSEOP_ZERO), OP_IS_NULL_RETURN);} /* Placeholder is a ZeroOp object */ | TermArg {$$ = $1;} ; OptionalSerializeRuleKeyword : {$$ = NULL;} | ',' {$$ = NULL;} | ',' SerializeRuleKeyword {$$ = $2;} ; OptionalTermArg : {$$ = TrCreateLeafOp (PARSEOP_DEFAULT_ARG);} | TermArg {$$ = $1;} ; OptionalWordConst : {$$ = NULL;} | WordConst {$$ = $1;} ; acpica-unix-20250404/source/compiler/aslfileio.c0000775000175000017500000002474414773714131021000 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslfileio - File I/O support * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "acapps.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslfileio") /******************************************************************************* * * FUNCTION: FlFileError * * PARAMETERS: FileId - Index into file info array * ErrorId - Index into error message array * * RETURN: None * * DESCRIPTION: Decode errno to an error message and add the entire error * to the error log. * ******************************************************************************/ void FlFileError ( UINT32 FileId, UINT8 ErrorId) { sprintf (AslGbl_MsgBuffer, "\"%s\" (%s) - %s", AslGbl_Files[FileId].Filename, AslGbl_FileDescs[FileId].Description, strerror (errno)); AslCommonError (ASL_ERROR, ErrorId, 0, 0, 0, 0, NULL, AslGbl_MsgBuffer); } /******************************************************************************* * * FUNCTION: FlOpenFile * * PARAMETERS: FileId - Index into file info array * Filename - file pathname to open * Mode - Open mode for fopen * * RETURN: None * * DESCRIPTION: Open a file. * NOTE: Aborts compiler on any error. * ******************************************************************************/ void FlOpenFile ( UINT32 FileId, char *Filename, char *Mode) { FILE *File; AslGbl_Files[FileId].Filename = Filename; AslGbl_Files[FileId].Handle = NULL; File = fopen (Filename, Mode); if (!File) { FlFileError (FileId, ASL_MSG_OPEN); AslAbort (); } AslGbl_Files[FileId].Handle = File; } /******************************************************************************* * * FUNCTION: FlGetFileSize * * PARAMETERS: FileId - Index into file info array * * RETURN: File Size * * DESCRIPTION: Get current file size. Uses common seek-to-EOF function. * File must be open. Aborts compiler on error. * ******************************************************************************/ UINT32 FlGetFileSize ( UINT32 FileId) { UINT32 FileSize; FileSize = CmGetFileSize (AslGbl_Files[FileId].Handle); if (FileSize == ACPI_UINT32_MAX) { AslAbort(); } return (FileSize); } /******************************************************************************* * * FUNCTION: FlReadFile * * PARAMETERS: FileId - Index into file info array * Buffer - Where to place the data * Length - Amount to read * * RETURN: Status. AE_ERROR indicates EOF. * * DESCRIPTION: Read data from an open file. * NOTE: Aborts compiler on any error. * ******************************************************************************/ ACPI_STATUS FlReadFile ( UINT32 FileId, void *Buffer, UINT32 Length) { UINT32 Actual; /* Read and check for error */ Actual = fread (Buffer, 1, Length, AslGbl_Files[FileId].Handle); if (Actual < Length) { if (feof (AslGbl_Files[FileId].Handle)) { /* End-of-file, just return error */ return (AE_ERROR); } FlFileError (FileId, ASL_MSG_READ); AslAbort (); } return (AE_OK); } /******************************************************************************* * * FUNCTION: FlWriteFile * * PARAMETERS: FileId - Index into file info array * Buffer - Data to write * Length - Amount of data to write * * RETURN: None * * DESCRIPTION: Write data to an open file. * NOTE: Aborts compiler on any error. * ******************************************************************************/ void FlWriteFile ( UINT32 FileId, void *Buffer, UINT32 Length) { UINT32 Actual; /* Write and check for error */ Actual = fwrite ((char *) Buffer, 1, Length, AslGbl_Files[FileId].Handle); if (Actual != Length) { FlFileError (FileId, ASL_MSG_WRITE); AslAbort (); } if ((FileId == ASL_FILE_PREPROCESSOR) && AslGbl_PreprocessorOutputFlag) { /* Duplicate the output to the user preprocessor (.i) file */ Actual = fwrite ((char *) Buffer, 1, Length, AslGbl_Files[ASL_FILE_PREPROCESSOR_USER].Handle); if (Actual != Length) { FlFileError (FileId, ASL_MSG_WRITE); AslAbort (); } } } /******************************************************************************* * * FUNCTION: FlPrintFile * * PARAMETERS: FileId - Index into file info array * Format - Printf format string * ... - Printf arguments * * RETURN: None * * DESCRIPTION: Formatted write to an open file. * NOTE: Aborts compiler on any error. * ******************************************************************************/ void FlPrintFile ( UINT32 FileId, char *Format, ...) { INT32 Actual; va_list Args; va_start (Args, Format); Actual = vfprintf (AslGbl_Files[FileId].Handle, Format, Args); va_end (Args); if (Actual == -1) { FlFileError (FileId, ASL_MSG_WRITE); AslAbort (); } if ((FileId == ASL_FILE_PREPROCESSOR) && AslGbl_PreprocessorOutputFlag) { /* * Duplicate the output to the user preprocessor (.i) file, * except: no #line directives. */ if (!strncmp (Format, "#line", 5)) { return; } va_start (Args, Format); Actual = vfprintf (AslGbl_Files[ASL_FILE_PREPROCESSOR_USER].Handle, Format, Args); va_end (Args); if (Actual == -1) { FlFileError (FileId, ASL_MSG_WRITE); AslAbort (); } } } /******************************************************************************* * * FUNCTION: FlSeekFile * * PARAMETERS: FileId - Index into file info array * Offset - Absolute byte offset in file * * RETURN: None * * DESCRIPTION: Seek to absolute offset. * NOTE: Aborts compiler on any error. * ******************************************************************************/ void FlSeekFile ( UINT32 FileId, long Offset) { int Error; Error = fseek (AslGbl_Files[FileId].Handle, Offset, SEEK_SET); if (Error) { FlFileError (FileId, ASL_MSG_SEEK); AslAbort (); } } /******************************************************************************* * * FUNCTION: FlCloseFile * * PARAMETERS: FileId - Index into file info array * * RETURN: None * * DESCRIPTION: Close an open file. Aborts compiler on error * ******************************************************************************/ void FlCloseFile ( UINT32 FileId) { int Error; if (!AslGbl_Files[FileId].Handle) { return; } Error = fclose (AslGbl_Files[FileId].Handle); if (Error) { FlFileError (FileId, ASL_MSG_CLOSE); AslAbort (); } /* Do not clear/free the filename string */ AslGbl_Files[FileId].Handle = NULL; return; } /******************************************************************************* * * FUNCTION: FlDeleteFile * * PARAMETERS: FileId - Index into file info array * * RETURN: None * * DESCRIPTION: Delete a file. * ******************************************************************************/ void FlDeleteFile ( UINT32 FileId) { ASL_FILE_INFO *Info = &AslGbl_Files[FileId]; if (!Info->Filename) { return; } if (remove (Info->Filename)) { printf ("%s (%s file) ", Info->Filename, AslGbl_FileDescs[FileId].Description); perror ("Could not delete"); } Info->Filename = NULL; return; } acpica-unix-20250404/source/compiler/aslrestype2q.c0000775000175000017500000007301714773714131021464 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslrestype2q - Large QWord address resource descriptors * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "aslcompiler.y.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslrestype2q") /* * This module contains the QWord (64-bit) address space descriptors: * * QWordIO * QWordMemory * QwordPcc * QWordSpace */ /******************************************************************************* * * FUNCTION: RsDoQwordIoDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "QwordIO" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoQwordIoDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS64) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address64.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS64; Descriptor->Address64.ResourceType = ACPI_ADDRESS_TYPE_IO_RANGE; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS64); Descriptor->Address64.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS64) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Usage */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 0, 1); break; case 1: /* MinType */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Flags), 2); break; case 2: /* MaxType */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Flags), 3); break; case 3: /* DecodeType */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Flags), 1); break; case 4: /* Range Type */ RsSetFlagBits (&Descriptor->Address64.SpecificFlags, InitializerOp, 0, 3); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_RANGETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.SpecificFlags), 0, 2); break; case 5: /* Address Granularity */ Descriptor->Address64.Granularity = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Granularity)); GranOp = InitializerOp; break; case 6: /* Address Min */ Descriptor->Address64.Minimum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Minimum)); MinOp = InitializerOp; break; case 7: /* Address Max */ Descriptor->Address64.Maximum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Maximum)); MaxOp = InitializerOp; break; case 8: /* Translation Offset */ Descriptor->Address64.TranslationOffset = InitializerOp->Asl.Value.Integer; RsCreateByteField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.TranslationOffset)); break; case 9: /* Address Length */ Descriptor->Address64.AddressLength = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.AddressLength)); LengthOp = InitializerOp; break; case 10: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address64.ResourceLength++; ResSourceIndex = TRUE; } break; case 11: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { Descriptor->Address64.ResourceLength = (UINT16) (Descriptor->Address64.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 12: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 13: /* Type */ RsSetFlagBits (&Descriptor->Address64.SpecificFlags, InitializerOp, 4, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.SpecificFlags), 4); break; case 14: /* Translation Type */ RsSetFlagBits (&Descriptor->Address64.SpecificFlags, InitializerOp, 5, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TRANSTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.SpecificFlags), 5); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( Descriptor->Address64.Minimum, Descriptor->Address64.Maximum, Descriptor->Address64.AddressLength, Descriptor->Address64.Granularity, Descriptor->Address64.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoQwordMemoryDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "QwordMemory" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoQwordMemoryDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS64) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address64.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS64; Descriptor->Address64.ResourceType = ACPI_ADDRESS_TYPE_MEMORY_RANGE; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS64); Descriptor->Address64.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS64) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Usage */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 0, 1); break; case 1: /* DecodeType */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Flags), 1); break; case 2: /* MinType */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Flags), 2); break; case 3: /* MaxType */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Flags), 3); break; case 4: /* Memory Type */ RsSetFlagBits (&Descriptor->Address64.SpecificFlags, InitializerOp, 1, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_MEMTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.SpecificFlags), 1, 2); break; case 5: /* Read/Write Type */ RsSetFlagBits (&Descriptor->Address64.SpecificFlags, InitializerOp, 0, 1); RsCreateBitField (InitializerOp, ACPI_RESTAG_READWRITETYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.SpecificFlags), 0); break; case 6: /* Address Granularity */ Descriptor->Address64.Granularity = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Granularity)); GranOp = InitializerOp; break; case 7: /* Min Address */ Descriptor->Address64.Minimum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Minimum)); MinOp = InitializerOp; break; case 8: /* Max Address */ Descriptor->Address64.Maximum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Maximum)); MaxOp = InitializerOp; break; case 9: /* Translation Offset */ Descriptor->Address64.TranslationOffset = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.TranslationOffset)); break; case 10: /* Address Length */ Descriptor->Address64.AddressLength = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.AddressLength)); LengthOp = InitializerOp; break; case 11: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address64.ResourceLength++; ResSourceIndex = TRUE; } break; case 12: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { Descriptor->Address64.ResourceLength = (UINT16) (Descriptor->Address64.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 13: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; case 14: /* Address Range */ RsSetFlagBits (&Descriptor->Address64.SpecificFlags, InitializerOp, 3, 0); RsCreateMultiBitField (InitializerOp, ACPI_RESTAG_MEMATTRIBUTES, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.SpecificFlags), 3, 2); break; case 15: /* Type */ RsSetFlagBits (&Descriptor->Address64.SpecificFlags, InitializerOp, 5, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_TYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.SpecificFlags), 5); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( Descriptor->Address64.Minimum, Descriptor->Address64.Maximum, Descriptor->Address64.AddressLength, Descriptor->Address64.Granularity, Descriptor->Address64.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoQwordPccDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "QWordPcc" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoQwordPccDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT8 *OptionalFields; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS32) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address32.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS32; Descriptor->Address32.ResourceType = ACPI_ADDRESS_TYPE_PCC_NUMBER; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS32); Descriptor->Address32.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS32) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* * Bit [3] Max Address Fixed, _MAF: 1 (max address is fixed) * Bit [2] Min Address Fixed,_MIF: 1 (min address is fixed) * Bit [1] Decode Type, _DEC: 0 (do not care) * BIT [0] Ignored (must be zero) */ Descriptor->Address32.Flags = 0b1100; // No type specific flags. Set to 0. Descriptor->Address32.SpecificFlags = 0; // must be set to zero if _MAX == _MIN. Descriptor->Address32.Granularity = 0x0; /* Process all child initialization nodes */ // No translation offset. Descriptor->Address32.TranslationOffset = 0; // Pcc is unique address. Descriptor->Address32.AddressLength = 1; for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Address Min = Max */ Descriptor->Address32.Minimum = (UINT32) InitializerOp->Asl.Value.Integer; Descriptor->Address32.Maximum = (UINT32) InitializerOp->Asl.Value.Integer; break; case 1: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { /* Found a valid ResourceSourceIndex */ OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address32.ResourceLength++; ResSourceIndex = TRUE; } break; case 2: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { /* Found a valid ResourceSource */ Descriptor->Address32.ResourceLength = (UINT16) (Descriptor->Address32.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } break; case 3: // DescriptorName UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( (UINT64) Descriptor->Address32.Minimum, (UINT64) Descriptor->Address32.Maximum, (UINT64) Descriptor->Address32.AddressLength, (UINT64) Descriptor->Address32.Granularity, Descriptor->Address32.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS32) + OptionIndex + StringLength; return (Rnode); } /******************************************************************************* * * FUNCTION: RsDoQwordSpaceDescriptor * * PARAMETERS: Info - Parse Op and resource template offset * * RETURN: Completed resource node * * DESCRIPTION: Construct a long "QwordSpace" descriptor * ******************************************************************************/ ASL_RESOURCE_NODE * RsDoQwordSpaceDescriptor ( ASL_RESOURCE_INFO *Info) { AML_RESOURCE *Descriptor; ACPI_PARSE_OBJECT *InitializerOp; ACPI_PARSE_OBJECT *MinOp = NULL; ACPI_PARSE_OBJECT *MaxOp = NULL; ACPI_PARSE_OBJECT *LengthOp = NULL; ACPI_PARSE_OBJECT *GranOp = NULL; ASL_RESOURCE_NODE *Rnode; UINT8 *OptionalFields; UINT16 StringLength = 0; UINT32 OptionIndex = 0; UINT32 CurrentByteOffset; UINT32 i; BOOLEAN ResSourceIndex = FALSE; InitializerOp = Info->DescriptorTypeOp->Asl.Child; StringLength = RsGetStringDataLength (InitializerOp); CurrentByteOffset = Info->CurrentByteOffset; Rnode = RsAllocateResourceNode ( sizeof (AML_RESOURCE_ADDRESS64) + 1 + StringLength); Descriptor = Rnode->Buffer; Descriptor->Address64.DescriptorType = ACPI_RESOURCE_NAME_ADDRESS64; /* * Initial descriptor length -- may be enlarged if there are * optional fields present */ OptionalFields = ((UINT8 *) Descriptor) + sizeof (AML_RESOURCE_ADDRESS64); Descriptor->Address64.ResourceLength = (UINT16) (sizeof (AML_RESOURCE_ADDRESS64) - sizeof (AML_RESOURCE_LARGE_HEADER)); /* Process all child initialization nodes */ for (i = 0; InitializerOp; i++) { switch (i) { case 0: /* Resource Type */ Descriptor->Address64.ResourceType = (UINT8) InitializerOp->Asl.Value.Integer; break; case 1: /* Resource Usage */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 0, 1); break; case 2: /* DecodeType */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 1, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_DECODE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Flags), 1); break; case 3: /* MinType */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 2, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MINTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Flags), 2); break; case 4: /* MaxType */ RsSetFlagBits (&Descriptor->Address64.Flags, InitializerOp, 3, 0); RsCreateBitField (InitializerOp, ACPI_RESTAG_MAXTYPE, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Flags), 3); break; case 5: /* Type-Specific flags */ Descriptor->Address64.SpecificFlags = (UINT8) InitializerOp->Asl.Value.Integer; break; case 6: /* Address Granularity */ Descriptor->Address64.Granularity = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_GRANULARITY, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Granularity)); GranOp = InitializerOp; break; case 7: /* Min Address */ Descriptor->Address64.Minimum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MINADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Minimum)); MinOp = InitializerOp; break; case 8: /* Max Address */ Descriptor->Address64.Maximum = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_MAXADDR, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.Maximum)); MaxOp = InitializerOp; break; case 9: /* Translation Offset */ Descriptor->Address64.TranslationOffset = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_TRANSLATION, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.TranslationOffset)); break; case 10: /* Address Length */ Descriptor->Address64.AddressLength = InitializerOp->Asl.Value.Integer; RsCreateQwordField (InitializerOp, ACPI_RESTAG_LENGTH, CurrentByteOffset + ASL_RESDESC_OFFSET (Address64.AddressLength)); LengthOp = InitializerOp; break; case 11: /* ResSourceIndex [Optional Field - BYTE] */ if (InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) { OptionalFields[0] = (UINT8) InitializerOp->Asl.Value.Integer; OptionIndex++; Descriptor->Address64.ResourceLength++; ResSourceIndex = TRUE; } break; case 12: /* ResSource [Optional Field - STRING] */ if ((InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG) && (InitializerOp->Asl.Value.String)) { if (StringLength) { Descriptor->Address64.ResourceLength = (UINT16) (Descriptor->Address64.ResourceLength + StringLength); strcpy ((char *) &OptionalFields[OptionIndex], InitializerOp->Asl.Value.String); /* ResourceSourceIndex must also be valid */ if (!ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_INDEX, InitializerOp, NULL); } } } #if 0 /* * Not a valid ResourceSource, ResourceSourceIndex must also * be invalid */ else if (ResSourceIndex) { AslError (ASL_ERROR, ASL_MSG_RESOURCE_SOURCE, InitializerOp, NULL); } #endif break; case 13: /* ResourceTag */ UtAttachNamepathToOwner (Info->DescriptorTypeOp, InitializerOp); break; default: AslError (ASL_ERROR, ASL_MSG_RESOURCE_LIST, InitializerOp, NULL); break; } InitializerOp = RsCompleteNodeAndGetNext (InitializerOp); } /* Validate the Min/Max/Len/Gran values */ RsLargeAddressCheck ( Descriptor->Address64.Minimum, Descriptor->Address64.Maximum, Descriptor->Address64.AddressLength, Descriptor->Address64.Granularity, Descriptor->Address64.Flags, MinOp, MaxOp, LengthOp, GranOp, Info->DescriptorTypeOp); Rnode->BufferLength = sizeof (AML_RESOURCE_ADDRESS64) + OptionIndex + StringLength; return (Rnode); } acpica-unix-20250404/source/compiler/aslmap.c0000775000175000017500000015443714773714131020311 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: aslmap - parser to AML opcode mapping table * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "aslcompiler.h" #include "amlcode.h" #include "acparser.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslmap") /******************************************************************************* * * FUNCTION: AslMapNamedOpcodeToDataType * * PARAMETERS: Opcode - The Named AML opcode to map * * RETURN: The ACPI type associated with the named opcode * * DESCRIPTION: Convert a raw Named AML opcode to the associated data type. * Named opcodes are a subset of the AML opcodes. * ******************************************************************************/ ACPI_OBJECT_TYPE AslMapNamedOpcodeToDataType ( UINT16 Opcode) { const ACPI_OPCODE_INFO *OpInfo; /* * There are some differences from the opcode table types, we * catch them here. */ OpInfo = AcpiPsGetOpcodeInfo (Opcode); if (Opcode == AML_INT_NAMEPATH_OP) { return (ACPI_TYPE_ANY); } if (Opcode == AML_INT_METHODCALL_OP) { return (ACPI_TYPE_ANY); } if (OpInfo->Flags & AML_NSOBJECT) { return (OpInfo->ObjectType); } return (ACPI_TYPE_ANY); } /******************************************************************************* * * DATA STRUCTURE: AslKeywordMapping * * DESCRIPTION: Maps the ParseOpcode to the actual AML opcode. The parse * opcodes are generated from Bison, and this table must * track any additions to them. * * Each entry in the table contains the following items: * * AML opcode - Opcode that is written to the AML file * Value - Value of the object to be written (if applicable) * Flags - 1) Whether this opcode opens an AML "package". * ******************************************************************************/ /* * TBD: * AccessAttrib * AccessType * AMlop for DMA? * ObjectType keywords * Register */ const ASL_MAPPING_ENTRY AslKeywordMapping [] = { /*! [Begin] no source code translation (keep the table structure) */ /* AML Opcode Value Flags Btype */ /* ACCESSAS */ OP_TABLE_ENTRY (AML_INT_ACCESSFIELD_OP, 0, 0, 0), /* ACCESSATTRIB_BLOCK */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_BLOCK, 0, 0), /* ACCESSATTRIB_BLOCK_PROCESS_CALL */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_BLOCK_PROCESS_CALL, 0, 0), /* ACCESSATTRIB_BYTE */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_BYTE, 0, 0), /* ACCESSATTRIB_BYTES */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_BYTES, 0, 0), /* ACCESSATTRIB_QUICK */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_QUICK, 0, 0), /* ACCESSATTRIB_RAW_BYTES */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_RAW_BYTES, 0, 0), /* ACCESSATTRIB_RAW_PROCESS_BYTES */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_RAW_PROCESS_BYTES, 0, 0), /* ACCESSATTRIB_SEND_RECEIVE */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_SEND_RECEIVE, 0, 0), /* ACCESSATTRIB_WORD */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_WORD, 0, 0), /* ACCESSATTRIB_PROCESS_CALL */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_PROCESS_CALL, 0, 0), /* ACCESSTYPE_ANY */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_ANY, 0, 0), /* ACCESSTYPE_BUF */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_BUFFER, 0, 0), /* ACCESSTYPE_BYTE */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_BYTE, 0, 0), /* ACCESSTYPE_DWORD */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_DWORD, 0, 0), /* ACCESSTYPE_QWORD */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_QWORD, 0, 0), /* ACCESSTYPE_WORD */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_WORD, 0, 0), /* ACQUIRE */ OP_TABLE_ENTRY (AML_ACQUIRE_OP, 0, 0, ACPI_BTYPE_INTEGER), /* ADD */ OP_TABLE_ENTRY (AML_ADD_OP, 0, 0, ACPI_BTYPE_INTEGER), /* ADDRESSINGMODE_7BIT */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* ADDRESSINGMODE_10BIT */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* ADDRESSTYPE_ACPI */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* ADDRESSTYPE_MEMORY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* ADDRESSTYPE_NVS */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* ADDRESSTYPE_RESERVED */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* ALIAS */ OP_TABLE_ENTRY (AML_ALIAS_OP, 0, 0, 0), /* AND */ OP_TABLE_ENTRY (AML_BIT_AND_OP, 0, 0, ACPI_BTYPE_INTEGER), /* ARG0 */ OP_TABLE_ENTRY (AML_ARG0, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* ARG1 */ OP_TABLE_ENTRY (AML_ARG1, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* ARG2 */ OP_TABLE_ENTRY (AML_ARG2, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* ARG3 */ OP_TABLE_ENTRY (AML_ARG3, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* ARG4 */ OP_TABLE_ENTRY (AML_ARG4, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* ARG5 */ OP_TABLE_ENTRY (AML_ARG5, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* ARG6 */ OP_TABLE_ENTRY (AML_ARG6, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* BANKFIELD */ OP_TABLE_ENTRY (AML_BANK_FIELD_OP, 0, OP_AML_PACKAGE, 0), /* BITSPERBYTE_EIGHT */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* BITSPERBYTE_FIVE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* BITSPERBYTE_NINE */ OP_TABLE_ENTRY (AML_BYTE_OP, 4, 0, 0), /* BITSPERBYTE_SEVEN */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* BITSPERBYTE_SIX */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* BREAK */ OP_TABLE_ENTRY (AML_BREAK_OP, 0, 0, 0), /* BREAKPOINT */ OP_TABLE_ENTRY (AML_BREAKPOINT_OP, 0, 0, 0), /* BUFFER */ OP_TABLE_ENTRY (AML_BUFFER_OP, 0, OP_AML_PACKAGE, ACPI_BTYPE_BUFFER), /* BUSMASTERTYPE_MASTER */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* BUSMASTERTYPE_NOTMASTER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* BYTECONST */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, 0, 0, ACPI_BTYPE_INTEGER), /* CASE */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* CLOCKPHASE_FIRST */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* CLOCKPHASE_SECOND */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* CLOCKPOLARITY_HIGH */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* CLOCKPOLARITY_LOW */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* CONCATENATE */ OP_TABLE_ENTRY (AML_CONCATENATE_OP, 0, 0, ACPI_BTYPE_COMPUTE_DATA), /* CONCATENATERESTEMPLATE */ OP_TABLE_ENTRY (AML_CONCATENATE_TEMPLATE_OP,0, 0, ACPI_BTYPE_BUFFER), /* CONDREFOF */ OP_TABLE_ENTRY (AML_CONDITIONAL_REF_OF_OP, 0, 0, ACPI_BTYPE_INTEGER), /* CONNECTION */ OP_TABLE_ENTRY (AML_INT_CONNECTION_OP, 0, 0, 0), /* CONTINUE */ OP_TABLE_ENTRY (AML_CONTINUE_OP, 0, 0, 0), /* COPYOBJECT */ OP_TABLE_ENTRY (AML_COPY_OBJECT_OP, 0, 0, ACPI_BTYPE_DATA_REFERENCE), /* CREATEBITFIELD */ OP_TABLE_ENTRY (AML_CREATE_BIT_FIELD_OP, 0, 0, 0), /* CREATEBYTEFIELD */ OP_TABLE_ENTRY (AML_CREATE_BYTE_FIELD_OP, 0, 0, 0), /* CREATEDWORDFIELD */ OP_TABLE_ENTRY (AML_CREATE_DWORD_FIELD_OP, 0, 0, 0), /* CREATEFIELD */ OP_TABLE_ENTRY (AML_CREATE_FIELD_OP, 0, 0, 0), /* CREATEQWORDFIELD */ OP_TABLE_ENTRY (AML_CREATE_QWORD_FIELD_OP, 0, 0, 0), /* CREATEWORDFIELD */ OP_TABLE_ENTRY (AML_CREATE_WORD_FIELD_OP, 0, 0, 0), /* DATABUFFER */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* DATATABLEREGION */ OP_TABLE_ENTRY (AML_DATA_REGION_OP, 0, 0, 0), /* DEBUG */ OP_TABLE_ENTRY (AML_DEBUG_OP, 0, 0, ACPI_BTYPE_DEBUG_OBJECT), /* DECODETYPE_POS */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* DECODETYPE_SUB */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* DECREMENT */ OP_TABLE_ENTRY (AML_DECREMENT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* DEFAULT */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* DEFAULT_ARG */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* DEFINITIONBLOCK */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* DEREFOF */ OP_TABLE_ENTRY (AML_DEREF_OF_OP, 0, 0, ACPI_BTYPE_DATA_REFERENCE | ACPI_BTYPE_STRING), /* DEVICE */ OP_TABLE_ENTRY (AML_DEVICE_OP, 0, OP_AML_PACKAGE, 0), /* DEVICEPOLARITY_HIGH */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* DEVICEPOLARITY_LOW */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* DIVIDE */ OP_TABLE_ENTRY (AML_DIVIDE_OP, 0, 0, ACPI_BTYPE_INTEGER), /* DMA */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* DMATYPE_A */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* DMATYPE_COMPATIBILITY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* DMATYPE_B */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* DMATYPE_F */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* DWORDCONST */ OP_TABLE_ENTRY (AML_RAW_DATA_DWORD, 0, 0, ACPI_BTYPE_INTEGER), /* DWORDIO */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* DWORDMEMORY */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* DWORDPCC */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* DWORDSPACE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* EISAID */ OP_TABLE_ENTRY (AML_DWORD_OP, 0, 0, ACPI_BTYPE_INTEGER), /* ELSE */ OP_TABLE_ENTRY (AML_ELSE_OP, 0, OP_AML_PACKAGE, 0), /* ELSEIF */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, OP_AML_PACKAGE, 0), /* ENDDEPENDENTFN */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* ENDIAN_BIG */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* ENDIAN_LITTLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* ENDTAG */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* ERRORNODE */ OP_TABLE_ENTRY (AML_NOOP_OP, 0, 0, 0), /* EVENT */ OP_TABLE_ENTRY (AML_EVENT_OP, 0, 0, 0), /* EXTENDEDIO */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* EXTENDEDMEMORY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* EXTENDEDSPACE */ OP_TABLE_ENTRY (AML_RAW_DATA_QWORD, 0, 0, ACPI_BTYPE_INTEGER), /* EXTERNAL */ OP_TABLE_ENTRY (AML_EXTERNAL_OP, 0, 0, 0), /* FATAL */ OP_TABLE_ENTRY (AML_FATAL_OP, 0, 0, 0), /* FIELD */ OP_TABLE_ENTRY (AML_FIELD_OP, 0, OP_AML_PACKAGE, 0), /* FINDSETLEFTBIT */ OP_TABLE_ENTRY (AML_FIND_SET_LEFT_BIT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* FINDSETRIGHTBIT */ OP_TABLE_ENTRY (AML_FIND_SET_RIGHT_BIT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* FIXEDDMA */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* FIXEDIO */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* FLOWCONTROL_HW */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* FLOWCONTROL_NONE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* FLOWCONTROL_SW */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* FROMBCD */ OP_TABLE_ENTRY (AML_FROM_BCD_OP, 0, 0, ACPI_BTYPE_INTEGER), /* FUNCTION */ OP_TABLE_ENTRY (AML_METHOD_OP, 0, OP_AML_PACKAGE, 0), /* GPIOINT */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* GPIOIO */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* CSI2SERIALBUS */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* I2CSERIALBUS */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* I2CSERIALBUSV2 */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* IF */ OP_TABLE_ENTRY (AML_IF_OP, 0, OP_AML_PACKAGE, 0), /* INCLUDE */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* INCLUDE_END */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* INCREMENT */ OP_TABLE_ENTRY (AML_INCREMENT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* INDEX */ OP_TABLE_ENTRY (AML_INDEX_OP, 0, 0, ACPI_BTYPE_REFERENCE_OBJECT), /* INDEXFIELD */ OP_TABLE_ENTRY (AML_INDEX_FIELD_OP, 0, OP_AML_PACKAGE, 0), /* INTEGER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, ACPI_BTYPE_INTEGER), /* INTERRUPT */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* INTLEVEL_ACTIVEBOTH */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* INTLEVEL_ACTIVEHIGH */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* INTLEVEL_ACTIVELOW */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* INTTYPE_EDGE */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* INTTYPE_LEVEL */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* IO */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* IODECODETYPE_10 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* IODECODETYPE_16 */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* IORESTRICT_IN */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* IORESTRICT_NONE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* IORESTRICT_OUT */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* IORESTRICT_PRESERVE */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* IRQ */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* IRQNOFLAGS */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* LAND */ OP_TABLE_ENTRY (AML_LOGICAL_AND_OP, 0, 0, ACPI_BTYPE_INTEGER), /* LEQUAL */ OP_TABLE_ENTRY (AML_LOGICAL_EQUAL_OP, 0, 0, ACPI_BTYPE_INTEGER), /* LGREATER */ OP_TABLE_ENTRY (AML_LOGICAL_GREATER_OP, 0, 0, ACPI_BTYPE_INTEGER), /* LGREATEREQUAL */ OP_TABLE_ENTRY (AML_LOGICAL_GREATER_EQUAL_OP,0, 0, ACPI_BTYPE_INTEGER), /* LLESS */ OP_TABLE_ENTRY (AML_LOGICAL_LESS_OP, 0, 0, ACPI_BTYPE_INTEGER), /* LLESSEQUAL */ OP_TABLE_ENTRY (AML_LOGICAL_LESS_EQUAL_OP, 0, 0, ACPI_BTYPE_INTEGER), /* LNOT */ OP_TABLE_ENTRY (AML_LOGICAL_NOT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* LNOTEQUAL */ OP_TABLE_ENTRY (AML_LOGICAL_NOT_EQUAL_OP, 0, 0, ACPI_BTYPE_INTEGER), /* LOAD */ OP_TABLE_ENTRY (AML_LOAD_OP, 0, 0, ACPI_BTYPE_INTEGER), /* LOADTABLE */ OP_TABLE_ENTRY (AML_LOAD_TABLE_OP, 0, 0, ACPI_BTYPE_INTEGER), /* LOCAL0 */ OP_TABLE_ENTRY (AML_LOCAL0, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* LOCAL1 */ OP_TABLE_ENTRY (AML_LOCAL1, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* LOCAL2 */ OP_TABLE_ENTRY (AML_LOCAL2, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* LOCAL3 */ OP_TABLE_ENTRY (AML_LOCAL3, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* LOCAL4 */ OP_TABLE_ENTRY (AML_LOCAL4, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* LOCAL5 */ OP_TABLE_ENTRY (AML_LOCAL5, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* LOCAL6 */ OP_TABLE_ENTRY (AML_LOCAL6, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* LOCAL7 */ OP_TABLE_ENTRY (AML_LOCAL7, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* LOCKRULE_LOCK */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_LOCK_ALWAYS, 0, 0), /* LOCKRULE_NOLOCK */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_LOCK_NEVER, 0, 0), /* LOR */ OP_TABLE_ENTRY (AML_LOGICAL_OR_OP, 0, 0, ACPI_BTYPE_INTEGER), /* MATCH */ OP_TABLE_ENTRY (AML_MATCH_OP, 0, 0, ACPI_BTYPE_INTEGER), /* MATCHTYPE_MEQ */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MEQ, 0, ACPI_BTYPE_INTEGER), /* MATCHTYPE_MGE */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MGE, 0, ACPI_BTYPE_INTEGER), /* MATCHTYPE_MGT */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MGT, 0, ACPI_BTYPE_INTEGER), /* MATCHTYPE_MLE */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MLE, 0, ACPI_BTYPE_INTEGER), /* MATCHTYPE_MLT */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MLT, 0, ACPI_BTYPE_INTEGER), /* MATCHTYPE_MTR */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MTR, 0, ACPI_BTYPE_INTEGER), /* MAXTYPE_FIXED */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* MAXTYPE_NOTFIXED */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* MEMORY24 */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* MEMORY32 */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* MEMORY32FIXED */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* MEMTYPE_CACHEABLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* MEMTYPE_NONCACHEABLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* MEMTYPE_PREFETCHABLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* MEMTYPE_WRITECOMBINING */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* METHOD */ OP_TABLE_ENTRY (AML_METHOD_OP, 0, OP_AML_PACKAGE, 0), /* METHODCALL */ OP_TABLE_ENTRY (AML_INT_METHODCALL_OP, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), /* MID */ OP_TABLE_ENTRY (AML_MID_OP, 0, 0, ACPI_BTYPE_STRING | ACPI_BTYPE_BUFFER), /* MINTYPE_FIXED */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* MINTYPE_NOTFIXED */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* MOD */ OP_TABLE_ENTRY (AML_MOD_OP, 0, 0, ACPI_BTYPE_INTEGER), /* MULTIPLY */ OP_TABLE_ENTRY (AML_MULTIPLY_OP, 0, 0, ACPI_BTYPE_INTEGER), /* MUTEX */ OP_TABLE_ENTRY (AML_MUTEX_OP, 0, 0, 0), /* NAME */ OP_TABLE_ENTRY (AML_NAME_OP, 0, 0, 0), /* NAMESEG */ OP_TABLE_ENTRY (AML_INT_NAMEPATH_OP, 0, 0, 0), /* NAMESTRING */ OP_TABLE_ENTRY (AML_INT_NAMEPATH_OP, 0, 0, 0), /* NAND */ OP_TABLE_ENTRY (AML_BIT_NAND_OP, 0, 0, ACPI_BTYPE_INTEGER), /* NOOP */ OP_TABLE_ENTRY (AML_NOOP_OP, 0, 0, 0), /* NOR */ OP_TABLE_ENTRY (AML_BIT_NOR_OP, 0, 0, ACPI_BTYPE_INTEGER), /* NOT */ OP_TABLE_ENTRY (AML_BIT_NOT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* NOTIFY */ OP_TABLE_ENTRY (AML_NOTIFY_OP, 0, 0, 0), /* OBJECTTYPE */ OP_TABLE_ENTRY (AML_OBJECT_TYPE_OP, 0, 0, ACPI_BTYPE_INTEGER), /* OBJECTTYPE_BFF */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_BUFFER_FIELD, 0, 0), /* OBJECTTYPE_BUF */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_BUFFER, 0, 0), /* OBJECTTYPE_DDB */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_DDB_HANDLE, 0, 0), /* OBJECTTYPE_DEV */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_DEVICE, 0, 0), /* OBJECTTYPE_EVT */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_EVENT, 0, 0), /* OBJECTTYPE_FLD */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_FIELD_UNIT, 0, 0), /* OBJECTTYPE_INT */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_INTEGER, 0, 0), /* OBJECTTYPE_MTH */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_METHOD, 0, 0), /* OBJECTTYPE_MTX */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_MUTEX, 0, 0), /* OBJECTTYPE_OPR */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_REGION, 0, 0), /* OBJECTTYPE_PKG */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_PACKAGE, 0, 0), /* OBJECTTYPE_POW */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_POWER, 0, 0), /* OBJECTTYPE_PRO */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_PROCESSOR, 0, 0), /* OBJECTTYPE_STR */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_STRING, 0, 0), /* OBJECTTYPE_THZ */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_THERMAL, 0, 0), /* OBJECTTYPE_UNK */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_TYPE_ANY, 0, 0), /* OFFSET */ OP_TABLE_ENTRY (AML_INT_RESERVEDFIELD_OP, 0, 0, 0), /* ONE */ OP_TABLE_ENTRY (AML_ONE_OP, 0, 0, ACPI_BTYPE_INTEGER), /* ONES */ OP_TABLE_ENTRY (AML_ONES_OP, 0, 0, ACPI_BTYPE_INTEGER), /* OPERATIONREGION */ OP_TABLE_ENTRY (AML_REGION_OP, 0, 0, 0), /* OR */ OP_TABLE_ENTRY (AML_BIT_OR_OP, 0, 0, ACPI_BTYPE_INTEGER), /* PACKAGE */ OP_TABLE_ENTRY (AML_PACKAGE_OP, 0, OP_AML_PACKAGE, ACPI_BTYPE_PACKAGE), /* PACKAGEP_LENGTH */ OP_TABLE_ENTRY (AML_PACKAGE_LENGTH, 0, OP_AML_PACKAGE, 0), /* PARITYTYPE_EVEN */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* PARITYTYPE_MARK */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* PARITYTYPE_NONE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* PARITYTYPE_ODD */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* PARITYTYPE_SPACE */ OP_TABLE_ENTRY (AML_BYTE_OP, 4, 0, 0), /* PINCONFIG */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* PINFUNCTION */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* PINGROUP */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* PINGROUPCONFIG */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* PINGROUPFUNCTION */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* PIN_NOPULL */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* PIN_PULLDEFAULT */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* PIN_PULLDOWN */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* PIN_PULLUP */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* CLOCKINPUT */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* CLOCK_HZ */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* CLOCK_KHZ */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* CLOCK_MHZ */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* CLOCK_FIXED */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* CLOCK_VARIABLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* POWERRESOURCE */ OP_TABLE_ENTRY (AML_POWER_RESOURCE_OP, 0, OP_AML_PACKAGE, 0), /* PROCESSOR */ OP_TABLE_ENTRY (AML_PROCESSOR_OP, 0, OP_AML_PACKAGE, 0), /* QWORDCONST */ OP_TABLE_ENTRY (AML_RAW_DATA_QWORD, 0, 0, ACPI_BTYPE_INTEGER), /* QWORDIO */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* QWORDMEMORY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* QWORDPCC */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* QWORDSPACE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* RANGE_TYPE_ENTIRE */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* RANGE_TYPE_ISAONLY */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* RANGE_TYPE_NONISAONLY */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* RAW_DATA */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* READWRITETYPE_BOTH */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* READWRITETYPE_READONLY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* REFOF */ OP_TABLE_ENTRY (AML_REF_OF_OP, 0, 0, ACPI_BTYPE_REFERENCE_OBJECT), /* REGIONSPACE_CMOS */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_CMOS, 0, 0), /* REGIONSPACE_EC */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_EC, 0, 0), /* REGIONSPACE_FFIXEDHW */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_FIXED_HARDWARE, 0, 0), /* REGIONSPACE_GPIO */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_GPIO, 0, 0), /* REGIONSPACE_GSBUS */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_GSBUS, 0, 0), /* REGIONSPACE_IO */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_SYSTEM_IO, 0, 0), /* REGIONSPACE_IPMI */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_IPMI, 0, 0), /* REGIONSPACE_MEM */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_SYSTEM_MEMORY, 0, 0), /* REGIONSPACE_PCC */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_PLATFORM_COMM, 0, 0), /* REGIONSPACE_PCI */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_PCI_CONFIG, 0, 0), /* REGIONSPACE_PCIBAR */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_PCI_BAR_TARGET, 0, 0), /* REGIONSPACE_PRM */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_PLATFORM_RT, 0, 0), /* REGIONSPACE_SMBUS */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, ACPI_ADR_SPACE_SMBUS, 0, 0), /* REGISTER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* RELEASE */ OP_TABLE_ENTRY (AML_RELEASE_OP, 0, 0, 0), /* RESERVED_BYTES */ OP_TABLE_ENTRY (AML_INT_RESERVEDFIELD_OP, 0, 0, 0), /* RESET */ OP_TABLE_ENTRY (AML_RESET_OP, 0, 0, 0), /* RESOURCETEMPLATE */ OP_TABLE_ENTRY (AML_BUFFER_OP, 0, 0, ACPI_BTYPE_BUFFER), /* RESOURCETYPE_CONSUMER */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* RESOURCETYPE_PRODUCER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* RETURN */ OP_TABLE_ENTRY (AML_RETURN_OP, 0, 0, 0), /* REVISION */ OP_TABLE_ENTRY (AML_REVISION_OP, 0, 0, ACPI_BTYPE_INTEGER), /* SCOPE */ OP_TABLE_ENTRY (AML_SCOPE_OP, 0, OP_AML_PACKAGE, 0), /* SERIALIZERULE_NOTSERIAL */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* SERIALIZERULE_SERIAL */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* SHARETYPE_EXCLUSIVE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* SHARETYPE_EXCLUSIVEWAKE */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* SHARETYPE_SHARED */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* SHARETYPE_SHAREDWAKE */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* SHIFTLEFT */ OP_TABLE_ENTRY (AML_SHIFT_LEFT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* SHIFTRIGHT */ OP_TABLE_ENTRY (AML_SHIFT_RIGHT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* SIGNAL */ OP_TABLE_ENTRY (AML_SIGNAL_OP, 0, 0, 0), /* SIZEOF */ OP_TABLE_ENTRY (AML_SIZE_OF_OP, 0, 0, ACPI_BTYPE_INTEGER), /* SLAVEMODE_CONTROLLERINIT */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* SLAVEMODE_DEVICEINIT */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* SLEEP */ OP_TABLE_ENTRY (AML_SLEEP_OP, 0, 0, 0), /* SPISERIALBUS */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* SPISERIALBUSV2 */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* STALL */ OP_TABLE_ENTRY (AML_STALL_OP, 0, 0, 0), /* STARTDEPENDENTFN */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* STARTDEPENDENTFN_NOPRI */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* STOPBITS_ONE */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* STOPBITS_ONEPLUSHALF */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* STOPBITS_TWO */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), /* STOPBITS_ZERO */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* STORE */ OP_TABLE_ENTRY (AML_STORE_OP, 0, 0, ACPI_BTYPE_DATA_REFERENCE), /* STRING_LITERAL */ OP_TABLE_ENTRY (AML_STRING_OP, 0, 0, ACPI_BTYPE_STRING), /* SUBTRACT */ OP_TABLE_ENTRY (AML_SUBTRACT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* SWITCH */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* THERMALZONE */ OP_TABLE_ENTRY (AML_THERMAL_ZONE_OP, 0, OP_AML_PACKAGE, 0), /* TIMER */ OP_TABLE_ENTRY (AML_TIMER_OP, 0, 0, ACPI_BTYPE_INTEGER), /* TOBCD */ OP_TABLE_ENTRY (AML_TO_BCD_OP, 0, 0, ACPI_BTYPE_INTEGER), /* TOBUFFER */ OP_TABLE_ENTRY (AML_TO_BUFFER_OP, 0, 0, ACPI_BTYPE_BUFFER), /* TODECIMALSTRING */ OP_TABLE_ENTRY (AML_TO_DECIMAL_STRING_OP, 0, 0, ACPI_BTYPE_STRING), /* TOHEXSTRING */ OP_TABLE_ENTRY (AML_TO_HEX_STRING_OP, 0, 0, ACPI_BTYPE_STRING), /* TOINTEGER */ OP_TABLE_ENTRY (AML_TO_INTEGER_OP, 0, 0, ACPI_BTYPE_INTEGER), /* TOSTRING */ OP_TABLE_ENTRY (AML_TO_STRING_OP, 0, 0, ACPI_BTYPE_STRING), /* TOUUID */ OP_TABLE_ENTRY (AML_DWORD_OP, 0, OP_AML_PACKAGE, ACPI_BTYPE_INTEGER), /* TRANSLATIONTYPE_DENSE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* TRANSLATIONTYPE_SPARSE */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* TYPE_STATIC */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* TYPE_TRANSLATION */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* UART_SERIALBUS */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* UART_SERIALBUSV2 */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* UNICODE */ OP_TABLE_ENTRY (AML_BUFFER_OP, 0, OP_AML_PACKAGE, ACPI_BTYPE_BUFFER), /* UNLOAD */ OP_TABLE_ENTRY (AML_UNLOAD_OP, 0, 0, 0), /* UPDATERULE_ONES */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_UPDATE_WRITE_AS_ONES, 0, 0), /* UPDATERULE_PRESERVE */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_UPDATE_PRESERVE, 0, 0), /* UPDATERULE_ZEROS */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_UPDATE_WRITE_AS_ZEROS,0, 0), /* VARIABLE_PACKAGE */ OP_TABLE_ENTRY (AML_VARIABLE_PACKAGE_OP, 0, OP_AML_PACKAGE, ACPI_BTYPE_PACKAGE), /* VENDORLONG */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* VENDORSHORT */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* WAIT */ OP_TABLE_ENTRY (AML_WAIT_OP, 0, 0, ACPI_BTYPE_INTEGER), /* WHILE */ OP_TABLE_ENTRY (AML_WHILE_OP, 0, OP_AML_PACKAGE, 0), /* WIREMODE_FOUR */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* WIREMODE_THREE */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* WORDBUSNUMBER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* WORDCONST */ OP_TABLE_ENTRY (AML_RAW_DATA_WORD, 0, 0, ACPI_BTYPE_INTEGER), /* WORDIO */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* WORDPCC */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), /* WORDSPACE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* XFERSIZE_8 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* XFERSIZE_16 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* XFERSIZE_32 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* XFERSIZE_64 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* XFERSIZE_128 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* XFERSIZE_256 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* XFERTYPE_8 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* XFERTYPE_8_16 */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), /* XFERTYPE_16 */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), /* XOR */ OP_TABLE_ENTRY (AML_BIT_XOR_OP, 0, 0, ACPI_BTYPE_INTEGER), /* ZERO */ OP_TABLE_ENTRY (AML_ZERO_OP, 0, 0, ACPI_BTYPE_INTEGER), /* TOPLD */ OP_TABLE_ENTRY (AML_DWORD_OP, 0, OP_AML_PACKAGE, ACPI_BTYPE_INTEGER), /* XFERSIZE_128 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* REVISION */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* IGNORECOLOR */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* RED */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* GREEN */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* BLUE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* WIDTH */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* HEIGHT */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* USERVISIBLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* DOCK */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* LID */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* PANEL */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* VERTICALPOSITION */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* HORIZONTALPOSITION */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* SHAPE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* GROUPORIENTATION */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* GROUPTOKEN */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* GROUPPOSITION */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* BAY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* EJECTABLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* EJECTREQUIRED */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* CABINETNUMBER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* CARDCAGENUMBER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* REFERENCE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* ROTATION */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* ORDER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* RESERVED */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* VERTICALOFFSET */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* HORIZONTALOFFSET */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), /* PRINTF */ OP_TABLE_ENTRY (AML_STORE_OP, 0, 0, ACPI_BTYPE_DATA_REFERENCE), /* FPRINTF */ OP_TABLE_ENTRY (AML_STORE_OP, 0, 0, ACPI_BTYPE_DATA_REFERENCE), /* ASLCODE */ OP_TABLE_ENTRY (0, 0, 0, 0) /*! [End] no source code translation !*/ }; acpica-unix-20250404/source/os_specific/0000775000175000017500000000000014773713560017330 5ustar ivanhuivanhuacpica-unix-20250404/source/os_specific/service_layers/0000775000175000017500000000000014773714133022344 5ustar ivanhuivanhuacpica-unix-20250404/source/os_specific/service_layers/osunixdir.c0000775000175000017500000001563114773714133024545 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: osunixdir - Unix directory access interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include #include #include #include #include #include #include /* * Allocated structure returned from OsOpenDirectory */ typedef struct ExternalFindInfo { char *DirPathname; DIR *DirPtr; char temp_buffer[256]; char *WildcardSpec; char RequestedFileType; } EXTERNAL_FIND_INFO; /******************************************************************************* * * FUNCTION: AcpiOsOpenDirectory * * PARAMETERS: DirPathname - Full pathname to the directory * WildcardSpec - string of the form "*.c", etc. * * RETURN: A directory "handle" to be used in subsequent search operations. * NULL returned on failure. * * DESCRIPTION: Open a directory in preparation for a wildcard search * ******************************************************************************/ void * AcpiOsOpenDirectory ( char *DirPathname, char *WildcardSpec, char RequestedFileType) { EXTERNAL_FIND_INFO *ExternalInfo; DIR *dir; /* Allocate the info struct that will be returned to the caller */ ExternalInfo = calloc (1, sizeof (EXTERNAL_FIND_INFO)); if (!ExternalInfo) { return (NULL); } /* Get the directory stream */ dir = opendir (DirPathname); if (!dir) { fprintf (stderr, "Cannot open directory - %s\n", DirPathname); free (ExternalInfo); return (NULL); } /* Save the info in the return structure */ ExternalInfo->WildcardSpec = WildcardSpec; ExternalInfo->RequestedFileType = RequestedFileType; ExternalInfo->DirPathname = DirPathname; ExternalInfo->DirPtr = dir; return (ExternalInfo); } /******************************************************************************* * * FUNCTION: AcpiOsGetNextFilename * * PARAMETERS: DirHandle - Created via AcpiOsOpenDirectory * * RETURN: Next filename matched. NULL if no more matches. * * DESCRIPTION: Get the next file in the directory that matches the wildcard * specification. * ******************************************************************************/ char * AcpiOsGetNextFilename ( void *DirHandle) { EXTERNAL_FIND_INFO *ExternalInfo = DirHandle; struct dirent *dir_entry; char *temp_str; int str_len; struct stat temp_stat; int err; while ((dir_entry = readdir (ExternalInfo->DirPtr))) { if (!fnmatch (ExternalInfo->WildcardSpec, dir_entry->d_name, 0)) { if (dir_entry->d_name[0] == '.') { continue; } str_len = strlen (dir_entry->d_name) + strlen (ExternalInfo->DirPathname) + 2; temp_str = calloc (str_len, 1); if (!temp_str) { fprintf (stderr, "Could not allocate buffer for temporary string\n"); return (NULL); } strcpy (temp_str, ExternalInfo->DirPathname); strcat (temp_str, "/"); strcat (temp_str, dir_entry->d_name); err = stat (temp_str, &temp_stat); if (err == -1) { fprintf (stderr, "Cannot stat file (should not happen) - %s\n", temp_str); free (temp_str); return (NULL); } free (temp_str); if ((S_ISDIR (temp_stat.st_mode) && (ExternalInfo->RequestedFileType == REQUEST_DIR_ONLY)) || ((!S_ISDIR (temp_stat.st_mode) && ExternalInfo->RequestedFileType == REQUEST_FILE_ONLY))) { /* copy to a temp buffer because dir_entry struct is on the stack */ strcpy (ExternalInfo->temp_buffer, dir_entry->d_name); return (ExternalInfo->temp_buffer); } } } return (NULL); } /******************************************************************************* * * FUNCTION: AcpiOsCloseDirectory * * PARAMETERS: DirHandle - Created via AcpiOsOpenDirectory * * RETURN: None. * * DESCRIPTION: Close the open directory and cleanup. * ******************************************************************************/ void AcpiOsCloseDirectory ( void *DirHandle) { EXTERNAL_FIND_INFO *ExternalInfo = DirHandle; /* Close the directory and free allocations */ closedir (ExternalInfo->DirPtr); free (DirHandle); } acpica-unix-20250404/source/os_specific/service_layers/osunixmap.c0000775000175000017500000001214314773714133024537 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: osunixmap - Unix OSL for file mappings * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpidump.h" #include #include #ifdef _FreeBSD #include #endif #define _COMPONENT ACPI_OS_SERVICES ACPI_MODULE_NAME ("osunixmap") #ifndef O_BINARY #define O_BINARY 0 #endif #if defined(_DragonFly) || defined(_FreeBSD) || defined(_QNX) #define MMAP_FLAGS MAP_SHARED #else #define MMAP_FLAGS MAP_PRIVATE #endif #define SYSTEM_MEMORY "/dev/mem" /******************************************************************************* * * FUNCTION: AcpiOsGetPageSize * * PARAMETERS: None * * RETURN: Page size of the platform. * * DESCRIPTION: Obtain page size of the platform. * ******************************************************************************/ static ACPI_SIZE AcpiOsGetPageSize ( void) { #ifdef PAGE_SIZE return PAGE_SIZE; #else return sysconf (_SC_PAGESIZE); #endif } /****************************************************************************** * * FUNCTION: AcpiOsMapMemory * * PARAMETERS: Where - Physical address of memory to be mapped * Length - How much memory to map * * RETURN: Pointer to mapped memory. Null on error. * * DESCRIPTION: Map physical memory into local address space. * *****************************************************************************/ void * AcpiOsMapMemory ( ACPI_PHYSICAL_ADDRESS Where, ACPI_SIZE Length) { UINT8 *MappedMemory; ACPI_PHYSICAL_ADDRESS Offset; ACPI_SIZE PageSize; int fd; fd = open (SYSTEM_MEMORY, O_RDONLY | O_BINARY); if (fd < 0) { fprintf (stderr, "Cannot open %s\n", SYSTEM_MEMORY); return (NULL); } /* Align the offset to use mmap */ PageSize = AcpiOsGetPageSize (); Offset = Where % PageSize; /* Map the table header to get the length of the full table */ MappedMemory = mmap (NULL, (Length + Offset), PROT_READ, MMAP_FLAGS, fd, (Where - Offset)); if (MappedMemory == MAP_FAILED) { fprintf (stderr, "Cannot map %s\n", SYSTEM_MEMORY); close (fd); return (NULL); } close (fd); return (ACPI_CAST8 (MappedMemory + Offset)); } /****************************************************************************** * * FUNCTION: AcpiOsUnmapMemory * * PARAMETERS: Where - Logical address of memory to be unmapped * Length - How much memory to unmap * * RETURN: None. * * DESCRIPTION: Delete a previously created mapping. Where and Length must * correspond to a previous mapping exactly. * *****************************************************************************/ void AcpiOsUnmapMemory ( void *Where, ACPI_SIZE Length) { ACPI_PHYSICAL_ADDRESS Offset; ACPI_SIZE PageSize; PageSize = AcpiOsGetPageSize (); Offset = ACPI_TO_INTEGER (Where) % PageSize; munmap ((UINT8 *) Where - Offset, (Length + Offset)); } acpica-unix-20250404/source/os_specific/service_layers/oslinuxtbl.c0000775000175000017500000012343614773714133024727 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: oslinuxtbl - Linux OSL for obtaining ACPI tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpidump.h" #define _COMPONENT ACPI_OS_SERVICES ACPI_MODULE_NAME ("oslinuxtbl") #ifndef PATH_MAX #define PATH_MAX 256 #endif /* List of information about obtained ACPI tables */ typedef struct osl_table_info { struct osl_table_info *Next; UINT32 Instance; char Signature[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; } OSL_TABLE_INFO; /* Local prototypes */ static ACPI_STATUS OslTableInitialize ( void); static ACPI_STATUS OslTableNameFromFile ( char *Filename, char *Signature, UINT32 *Instance); static ACPI_STATUS OslAddTableToList ( char *Signature, UINT32 Instance); static ACPI_STATUS OslReadTableFromFile ( char *Filename, ACPI_SIZE FileOffset, ACPI_TABLE_HEADER **Table); static ACPI_STATUS OslMapTable ( ACPI_SIZE Address, char *Signature, ACPI_TABLE_HEADER **Table); static void OslUnmapTable ( ACPI_TABLE_HEADER *Table); static ACPI_PHYSICAL_ADDRESS OslFindRsdpViaEfiByKeyword ( FILE *File, const char *Keyword); static ACPI_PHYSICAL_ADDRESS OslFindRsdpViaEfi ( void); static ACPI_STATUS OslLoadRsdp ( void); static ACPI_STATUS OslListCustomizedTables ( char *Directory); static ACPI_STATUS OslGetCustomizedTable ( char *Pathname, char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address); static ACPI_STATUS OslListBiosTables ( void); static ACPI_STATUS OslGetBiosTable ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address); static ACPI_STATUS OslGetLastStatus ( ACPI_STATUS DefaultStatus); /* File locations */ #define DYNAMIC_TABLE_DIR "/sys/firmware/acpi/tables/dynamic" #define STATIC_TABLE_DIR "/sys/firmware/acpi/tables" #define EFI_SYSTAB "/sys/firmware/efi/systab" /* Should we get dynamically loaded SSDTs from DYNAMIC_TABLE_DIR? */ UINT8 Gbl_DumpDynamicTables = TRUE; /* Initialization flags */ UINT8 Gbl_TableListInitialized = FALSE; /* Local copies of main ACPI tables */ ACPI_TABLE_RSDP Gbl_Rsdp; ACPI_TABLE_FADT *Gbl_Fadt = NULL; ACPI_TABLE_RSDT *Gbl_Rsdt = NULL; ACPI_TABLE_XSDT *Gbl_Xsdt = NULL; /* Table addresses */ ACPI_PHYSICAL_ADDRESS Gbl_FadtAddress = 0; ACPI_PHYSICAL_ADDRESS Gbl_RsdpAddress = 0; /* Revision of RSD PTR */ UINT8 Gbl_Revision = 0; OSL_TABLE_INFO *Gbl_TableListHead = NULL; UINT32 Gbl_TableCount = 0; /****************************************************************************** * * FUNCTION: OslGetLastStatus * * PARAMETERS: DefaultStatus - Default error status to return * * RETURN: Status; Converted from errno. * * DESCRIPTION: Get last errno and convert it to ACPI_STATUS. * *****************************************************************************/ static ACPI_STATUS OslGetLastStatus ( ACPI_STATUS DefaultStatus) { switch (errno) { case EACCES: case EPERM: return (AE_ACCESS); case ENOENT: return (AE_NOT_FOUND); case ENOMEM: return (AE_NO_MEMORY); default: return (DefaultStatus); } } /****************************************************************************** * * FUNCTION: AcpiOsGetTableByAddress * * PARAMETERS: Address - Physical address of the ACPI table * Table - Where a pointer to the table is returned * * RETURN: Status; Table buffer is returned if AE_OK. * AE_NOT_FOUND: A valid table was not found at the address * * DESCRIPTION: Get an ACPI table via a physical memory address. * *****************************************************************************/ ACPI_STATUS AcpiOsGetTableByAddress ( ACPI_PHYSICAL_ADDRESS Address, ACPI_TABLE_HEADER **Table) { UINT32 TableLength; ACPI_TABLE_HEADER *MappedTable; ACPI_TABLE_HEADER *LocalTable = NULL; ACPI_STATUS Status = AE_OK; /* Get main ACPI tables from memory on first invocation of this function */ Status = OslTableInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* Map the table and validate it */ Status = OslMapTable (Address, NULL, &MappedTable); if (ACPI_FAILURE (Status)) { return (Status); } /* Copy table to local buffer and return it */ TableLength = ApGetTableLength (MappedTable); if (TableLength == 0) { Status = AE_BAD_HEADER; goto Exit; } LocalTable = calloc (1, TableLength); if (!LocalTable) { Status = AE_NO_MEMORY; goto Exit; } memcpy (LocalTable, MappedTable, TableLength); Exit: OslUnmapTable (MappedTable); *Table = LocalTable; return (Status); } /****************************************************************************** * * FUNCTION: AcpiOsGetTableByName * * PARAMETERS: Signature - ACPI Signature for desired table. Must be * a null terminated 4-character string. * Instance - Multiple table support for SSDT/UEFI (0...n) * Must be 0 for other tables. * Table - Where a pointer to the table is returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer and physical address returned if AE_OK. * AE_LIMIT: Instance is beyond valid limit * AE_NOT_FOUND: A table with the signature was not found * * NOTE: Assumes the input signature is uppercase. * *****************************************************************************/ ACPI_STATUS AcpiOsGetTableByName ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address) { ACPI_STATUS Status; /* Get main ACPI tables from memory on first invocation of this function */ Status = OslTableInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* Not a main ACPI table, attempt to extract it from the RSDT/XSDT */ if (!Gbl_DumpCustomizedTables) { /* Attempt to get the table from the memory */ Status = OslGetBiosTable (Signature, Instance, Table, Address); } else { /* Attempt to get the table from the static directory */ Status = OslGetCustomizedTable (STATIC_TABLE_DIR, Signature, Instance, Table, Address); } if (ACPI_FAILURE (Status) && Status == AE_LIMIT) { if (Gbl_DumpDynamicTables) { /* Attempt to get a dynamic table */ Status = OslGetCustomizedTable (DYNAMIC_TABLE_DIR, Signature, Instance, Table, Address); } } return (Status); } /****************************************************************************** * * FUNCTION: OslAddTableToList * * PARAMETERS: Signature - Table signature * Instance - Table instance * * RETURN: Status; Successfully added if AE_OK. * AE_NO_MEMORY: Memory allocation error * * DESCRIPTION: Insert a table structure into OSL table list. * *****************************************************************************/ static ACPI_STATUS OslAddTableToList ( char *Signature, UINT32 Instance) { OSL_TABLE_INFO *NewInfo; OSL_TABLE_INFO *Next; UINT32 NextInstance = 0; BOOLEAN Found = FALSE; NewInfo = calloc (1, sizeof (OSL_TABLE_INFO)); if (!NewInfo) { return (AE_NO_MEMORY); } ACPI_COPY_NAMESEG (NewInfo->Signature, Signature); if (!Gbl_TableListHead) { Gbl_TableListHead = NewInfo; } else { Next = Gbl_TableListHead; while (1) { if (ACPI_COMPARE_NAMESEG (Next->Signature, Signature)) { if (Next->Instance == Instance) { Found = TRUE; } if (Next->Instance >= NextInstance) { NextInstance = Next->Instance + 1; } } if (!Next->Next) { break; } Next = Next->Next; } Next->Next = NewInfo; } if (Found) { if (Instance) { fprintf (stderr, "%4.4s: Warning unmatched table instance %d, expected %d\n", Signature, Instance, NextInstance); } Instance = NextInstance; } NewInfo->Instance = Instance; Gbl_TableCount++; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsGetTableByIndex * * PARAMETERS: Index - Which table to get * Table - Where a pointer to the table is returned * Instance - Where a pointer to the table instance no. is * returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer and physical address returned if AE_OK. * AE_LIMIT: Index is beyond valid limit * * DESCRIPTION: Get an ACPI table via an index value (0 through n). Returns * AE_LIMIT when an invalid index is reached. Index is not * necessarily an index into the RSDT/XSDT. * *****************************************************************************/ ACPI_STATUS AcpiOsGetTableByIndex ( UINT32 Index, ACPI_TABLE_HEADER **Table, UINT32 *Instance, ACPI_PHYSICAL_ADDRESS *Address) { OSL_TABLE_INFO *Info; ACPI_STATUS Status; UINT32 i; /* Get main ACPI tables from memory on first invocation of this function */ Status = OslTableInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* Validate Index */ if (Index >= Gbl_TableCount) { return (AE_LIMIT); } /* Point to the table list entry specified by the Index argument */ Info = Gbl_TableListHead; for (i = 0; i < Index; i++) { Info = Info->Next; } /* Now we can just get the table via the signature */ Status = AcpiOsGetTableByName (Info->Signature, Info->Instance, Table, Address); if (ACPI_SUCCESS (Status)) { *Instance = Info->Instance; } return (Status); } /****************************************************************************** * * FUNCTION: OslFindRsdpViaEfiByKeyword * * PARAMETERS: Keyword - Character string indicating ACPI GUID version * in the EFI table * * RETURN: RSDP address if found * * DESCRIPTION: Find RSDP address via EFI using keyword indicating the ACPI * GUID version. * *****************************************************************************/ static ACPI_PHYSICAL_ADDRESS OslFindRsdpViaEfiByKeyword ( FILE *File, const char *Keyword) { char Buffer[80]; unsigned long long Address = 0; char Format[32]; snprintf (Format, 32, "%s=%s", Keyword, "%llx"); fseek (File, 0, SEEK_SET); while (fgets (Buffer, 80, File)) { if (sscanf (Buffer, Format, &Address) == 1) { break; } } return ((ACPI_PHYSICAL_ADDRESS) (Address)); } /****************************************************************************** * * FUNCTION: OslFindRsdpViaEfi * * PARAMETERS: None * * RETURN: RSDP address if found * * DESCRIPTION: Find RSDP address via EFI. * *****************************************************************************/ static ACPI_PHYSICAL_ADDRESS OslFindRsdpViaEfi ( void) { FILE *File; ACPI_PHYSICAL_ADDRESS Address = 0; File = fopen (EFI_SYSTAB, "r"); if (File) { Address = OslFindRsdpViaEfiByKeyword (File, "ACPI20"); if (!Address) { Address = OslFindRsdpViaEfiByKeyword (File, "ACPI"); } fclose (File); } return (Address); } /****************************************************************************** * * FUNCTION: OslLoadRsdp * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Scan and load RSDP. * *****************************************************************************/ static ACPI_STATUS OslLoadRsdp ( void) { ACPI_TABLE_HEADER *MappedTable; UINT8 *RsdpAddress; ACPI_PHYSICAL_ADDRESS RsdpBase; ACPI_SIZE RsdpSize; /* Get RSDP from memory */ RsdpSize = sizeof (ACPI_TABLE_RSDP); if (Gbl_RsdpBase) { RsdpBase = Gbl_RsdpBase; } else { RsdpBase = OslFindRsdpViaEfi (); } if (!RsdpBase) { RsdpBase = ACPI_HI_RSDP_WINDOW_BASE; RsdpSize = ACPI_HI_RSDP_WINDOW_SIZE; } RsdpAddress = AcpiOsMapMemory (RsdpBase, RsdpSize); if (!RsdpAddress) { return (OslGetLastStatus (AE_BAD_ADDRESS)); } /* Search low memory for the RSDP */ MappedTable = ACPI_CAST_PTR (ACPI_TABLE_HEADER, AcpiTbScanMemoryForRsdp (RsdpAddress, RsdpSize)); if (!MappedTable) { AcpiOsUnmapMemory (RsdpAddress, RsdpSize); return (AE_NOT_FOUND); } Gbl_RsdpAddress = RsdpBase + (ACPI_CAST8 (MappedTable) - RsdpAddress); memcpy (&Gbl_Rsdp, MappedTable, sizeof (ACPI_TABLE_RSDP)); AcpiOsUnmapMemory (RsdpAddress, RsdpSize); return (AE_OK); } /****************************************************************************** * * FUNCTION: OslCanUseXsdt * * PARAMETERS: None * * RETURN: TRUE if XSDT is allowed to be used. * * DESCRIPTION: This function collects logic that can be used to determine if * XSDT should be used instead of RSDT. * *****************************************************************************/ static BOOLEAN OslCanUseXsdt ( void) { if (Gbl_Revision && !AcpiGbl_DoNotUseXsdt) { return (TRUE); } else { return (FALSE); } } /****************************************************************************** * * FUNCTION: OslTableInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize ACPI table data. Get and store main ACPI tables to * local variables. Main ACPI tables include RSDT, FADT, RSDT, * and/or XSDT. * *****************************************************************************/ static ACPI_STATUS OslTableInitialize ( void) { ACPI_STATUS Status; ACPI_PHYSICAL_ADDRESS Address; if (Gbl_TableListInitialized) { return (AE_OK); } if (!Gbl_DumpCustomizedTables) { /* Get RSDP from memory */ Status = OslLoadRsdp (); if (ACPI_FAILURE (Status)) { return (Status); } /* Get XSDT from memory */ if (Gbl_Rsdp.Revision && !Gbl_DoNotDumpXsdt) { if (Gbl_Xsdt) { free (Gbl_Xsdt); Gbl_Xsdt = NULL; } Gbl_Revision = 2; Status = OslGetBiosTable (ACPI_SIG_XSDT, 0, ACPI_CAST_PTR (ACPI_TABLE_HEADER *, &Gbl_Xsdt), &Address); if (ACPI_FAILURE (Status)) { return (Status); } } /* Get RSDT from memory */ if (Gbl_Rsdp.RsdtPhysicalAddress) { if (Gbl_Rsdt) { free (Gbl_Rsdt); Gbl_Rsdt = NULL; } Status = OslGetBiosTable (ACPI_SIG_RSDT, 0, ACPI_CAST_PTR (ACPI_TABLE_HEADER *, &Gbl_Rsdt), &Address); if (ACPI_FAILURE (Status)) { return (Status); } } /* Get FADT from memory */ if (Gbl_Fadt) { free (Gbl_Fadt); Gbl_Fadt = NULL; } Status = OslGetBiosTable (ACPI_SIG_FADT, 0, ACPI_CAST_PTR (ACPI_TABLE_HEADER *, &Gbl_Fadt), &Gbl_FadtAddress); if (ACPI_FAILURE (Status)) { return (Status); } /* Add mandatory tables to global table list first */ Status = OslAddTableToList (ACPI_RSDP_NAME, 0); if (ACPI_FAILURE (Status)) { return (Status); } Status = OslAddTableToList (ACPI_SIG_RSDT, 0); if (ACPI_FAILURE (Status)) { return (Status); } if (Gbl_Revision == 2) { Status = OslAddTableToList (ACPI_SIG_XSDT, 0); if (ACPI_FAILURE (Status)) { return (Status); } } Status = OslAddTableToList (ACPI_SIG_DSDT, 0); if (ACPI_FAILURE (Status)) { return (Status); } Status = OslAddTableToList (ACPI_SIG_FACS, 0); if (ACPI_FAILURE (Status)) { return (Status); } /* Add all tables found in the memory */ Status = OslListBiosTables (); if (ACPI_FAILURE (Status)) { return (Status); } } else { /* Add all tables found in the static directory */ Status = OslListCustomizedTables (STATIC_TABLE_DIR); if (ACPI_FAILURE (Status)) { return (Status); } } if (Gbl_DumpDynamicTables) { /* Add all dynamically loaded tables in the dynamic directory */ Status = OslListCustomizedTables (DYNAMIC_TABLE_DIR); if (ACPI_FAILURE (Status)) { return (Status); } } Gbl_TableListInitialized = TRUE; return (AE_OK); } /****************************************************************************** * * FUNCTION: OslListBiosTables * * PARAMETERS: None * * RETURN: Status; Table list is initialized if AE_OK. * * DESCRIPTION: Add ACPI tables to the table list from memory. * * NOTE: This works on Linux as table customization does not modify the * addresses stored in RSDP/RSDT/XSDT/FADT. * *****************************************************************************/ static ACPI_STATUS OslListBiosTables ( void) { ACPI_TABLE_HEADER *MappedTable = NULL; UINT8 *TableData; UINT8 NumberOfTables; UINT8 ItemSize; ACPI_PHYSICAL_ADDRESS TableAddress = 0; ACPI_STATUS Status = AE_OK; UINT32 i; if (OslCanUseXsdt ()) { ItemSize = sizeof (UINT64); TableData = ACPI_CAST8 (Gbl_Xsdt) + sizeof (ACPI_TABLE_HEADER); NumberOfTables = (UINT8) ((Gbl_Xsdt->Header.Length - sizeof (ACPI_TABLE_HEADER)) / ItemSize); } else /* Use RSDT if XSDT is not available */ { ItemSize = sizeof (UINT32); TableData = ACPI_CAST8 (Gbl_Rsdt) + sizeof (ACPI_TABLE_HEADER); NumberOfTables = (UINT8) ((Gbl_Rsdt->Header.Length - sizeof (ACPI_TABLE_HEADER)) / ItemSize); } /* Search RSDT/XSDT for the requested table */ for (i = 0; i < NumberOfTables; ++i, TableData += ItemSize) { if (OslCanUseXsdt ()) { TableAddress = (ACPI_PHYSICAL_ADDRESS) (*ACPI_CAST64 (TableData)); } else { TableAddress = (ACPI_PHYSICAL_ADDRESS) (*ACPI_CAST32 (TableData)); } /* Skip NULL entries in RSDT/XSDT */ if (TableAddress == 0) { continue; } Status = OslMapTable (TableAddress, NULL, &MappedTable); if (ACPI_FAILURE (Status)) { return (Status); } OslAddTableToList (MappedTable->Signature, 0); OslUnmapTable (MappedTable); } return (AE_OK); } /****************************************************************************** * * FUNCTION: OslGetBiosTable * * PARAMETERS: Signature - ACPI Signature for common table. Must be * a null terminated 4-character string. * Instance - Multiple table support for SSDT/UEFI (0...n) * Must be 0 for other tables. * Table - Where a pointer to the table is returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer and physical address returned if AE_OK. * AE_LIMIT: Instance is beyond valid limit * AE_NOT_FOUND: A table with the signature was not found * * DESCRIPTION: Get a BIOS provided ACPI table * * NOTE: Assumes the input signature is uppercase. * *****************************************************************************/ static ACPI_STATUS OslGetBiosTable ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address) { ACPI_TABLE_HEADER *LocalTable = NULL; ACPI_TABLE_HEADER *MappedTable = NULL; UINT8 *TableData; UINT8 NumberOfTables; UINT8 ItemSize; UINT32 CurrentInstance = 0; ACPI_PHYSICAL_ADDRESS TableAddress; ACPI_PHYSICAL_ADDRESS FirstTableAddress = 0; UINT32 TableLength = 0; ACPI_STATUS Status = AE_OK; UINT32 i; /* Handle special tables whose addresses are not in RSDT/XSDT */ if (ACPI_COMPARE_NAMESEG (Signature, ACPI_RSDP_NAME) || ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_RSDT) || ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_XSDT) || ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_DSDT) || ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_FACS)) { FindNextInstance: TableAddress = 0; /* * Get the appropriate address, either 32-bit or 64-bit. Be very * careful about the FADT length and validate table addresses. * Note: The 64-bit addresses have priority. */ if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_DSDT)) { if (CurrentInstance < 2) { if ((Gbl_Fadt->Header.Length >= MIN_FADT_FOR_XDSDT) && Gbl_Fadt->XDsdt && CurrentInstance == 0) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Fadt->XDsdt; } else if ((Gbl_Fadt->Header.Length >= MIN_FADT_FOR_DSDT) && Gbl_Fadt->Dsdt != FirstTableAddress) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Fadt->Dsdt; } } } else if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_FACS)) { if (CurrentInstance < 2) { if ((Gbl_Fadt->Header.Length >= MIN_FADT_FOR_XFACS) && Gbl_Fadt->XFacs && CurrentInstance == 0) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Fadt->XFacs; } else if ((Gbl_Fadt->Header.Length >= MIN_FADT_FOR_FACS) && Gbl_Fadt->Facs != FirstTableAddress) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Fadt->Facs; } } } else if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_XSDT)) { if (!Gbl_Revision) { return (AE_BAD_SIGNATURE); } if (CurrentInstance == 0) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Rsdp.XsdtPhysicalAddress; } } else if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_RSDT)) { if (CurrentInstance == 0) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Rsdp.RsdtPhysicalAddress; } } else { if (CurrentInstance == 0) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_RsdpAddress; Signature = ACPI_SIG_RSDP; } } if (TableAddress == 0) { goto ExitFindTable; } /* Now we can get the requested special table */ Status = OslMapTable (TableAddress, Signature, &MappedTable); if (ACPI_FAILURE (Status)) { return (Status); } TableLength = ApGetTableLength (MappedTable); if (FirstTableAddress == 0) { FirstTableAddress = TableAddress; } /* Match table instance */ if (CurrentInstance != Instance) { OslUnmapTable (MappedTable); MappedTable = NULL; CurrentInstance++; goto FindNextInstance; } } else /* Case for a normal ACPI table */ { if (OslCanUseXsdt ()) { ItemSize = sizeof (UINT64); TableData = ACPI_CAST8 (Gbl_Xsdt) + sizeof (ACPI_TABLE_HEADER); NumberOfTables = (UINT8) ((Gbl_Xsdt->Header.Length - sizeof (ACPI_TABLE_HEADER)) / ItemSize); } else /* Use RSDT if XSDT is not available */ { ItemSize = sizeof (UINT32); TableData = ACPI_CAST8 (Gbl_Rsdt) + sizeof (ACPI_TABLE_HEADER); NumberOfTables = (UINT8) ((Gbl_Rsdt->Header.Length - sizeof (ACPI_TABLE_HEADER)) / ItemSize); } /* Search RSDT/XSDT for the requested table */ for (i = 0; i < NumberOfTables; ++i, TableData += ItemSize) { if (OslCanUseXsdt ()) { TableAddress = (ACPI_PHYSICAL_ADDRESS) (*ACPI_CAST64 (TableData)); } else { TableAddress = (ACPI_PHYSICAL_ADDRESS) (*ACPI_CAST32 (TableData)); } /* Skip NULL entries in RSDT/XSDT */ if (TableAddress == 0) { continue; } Status = OslMapTable (TableAddress, NULL, &MappedTable); if (ACPI_FAILURE (Status)) { return (Status); } TableLength = MappedTable->Length; /* Does this table match the requested signature? */ if (!ACPI_COMPARE_NAMESEG (MappedTable->Signature, Signature)) { OslUnmapTable (MappedTable); MappedTable = NULL; continue; } /* Match table instance (for SSDT/UEFI tables) */ if (CurrentInstance != Instance) { OslUnmapTable (MappedTable); MappedTable = NULL; CurrentInstance++; continue; } break; } } ExitFindTable: if (!MappedTable) { return (AE_LIMIT); } if (TableLength == 0) { Status = AE_BAD_HEADER; goto Exit; } /* Copy table to local buffer and return it */ LocalTable = calloc (1, TableLength); if (!LocalTable) { Status = AE_NO_MEMORY; goto Exit; } memcpy (LocalTable, MappedTable, TableLength); *Address = TableAddress; *Table = LocalTable; Exit: OslUnmapTable (MappedTable); return (Status); } /****************************************************************************** * * FUNCTION: OslListCustomizedTables * * PARAMETERS: Directory - Directory that contains the tables * * RETURN: Status; Table list is initialized if AE_OK. * * DESCRIPTION: Add ACPI tables to the table list from a directory. * *****************************************************************************/ static ACPI_STATUS OslListCustomizedTables ( char *Directory) { void *TableDir; UINT32 Instance; char TempName[ACPI_NAMESEG_SIZE]; char *Filename; ACPI_STATUS Status = AE_OK; /* Open the requested directory */ TableDir = AcpiOsOpenDirectory (Directory, "*", REQUEST_FILE_ONLY); if (!TableDir) { return (OslGetLastStatus (AE_NOT_FOUND)); } /* Examine all entries in this directory */ while ((Filename = AcpiOsGetNextFilename (TableDir))) { /* Extract table name and instance number */ Status = OslTableNameFromFile (Filename, TempName, &Instance); /* Ignore meaningless files */ if (ACPI_FAILURE (Status)) { continue; } /* Add new info node to global table list */ Status = OslAddTableToList (TempName, Instance); if (ACPI_FAILURE (Status)) { break; } } AcpiOsCloseDirectory (TableDir); return (Status); } /****************************************************************************** * * FUNCTION: OslMapTable * * PARAMETERS: Address - Address of the table in memory * Signature - Optional ACPI Signature for desired table. * Null terminated 4-character string. * Table - Where a pointer to the mapped table is * returned * * RETURN: Status; Mapped table is returned if AE_OK. * AE_NOT_FOUND: A valid table was not found at the address * * DESCRIPTION: Map entire ACPI table into caller's address space. * *****************************************************************************/ static ACPI_STATUS OslMapTable ( ACPI_SIZE Address, char *Signature, ACPI_TABLE_HEADER **Table) { ACPI_TABLE_HEADER *MappedTable; UINT32 Length; if (!Address) { return (AE_BAD_ADDRESS); } /* * Map the header so we can get the table length. * Use sizeof (ACPI_TABLE_HEADER) as: * 1. it is bigger than 24 to include RSDP->Length * 2. it is smaller than sizeof (ACPI_TABLE_RSDP) */ MappedTable = AcpiOsMapMemory (Address, sizeof (ACPI_TABLE_HEADER)); if (!MappedTable) { fprintf (stderr, "Could not map table header at 0x%8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Address)); return (OslGetLastStatus (AE_BAD_ADDRESS)); } /* If specified, signature must match */ if (Signature) { if (ACPI_VALIDATE_RSDP_SIG (Signature)) { if (!ACPI_VALIDATE_RSDP_SIG (MappedTable->Signature)) { AcpiOsUnmapMemory (MappedTable, sizeof (ACPI_TABLE_HEADER)); return (AE_BAD_SIGNATURE); } } else if (!ACPI_COMPARE_NAMESEG (Signature, MappedTable->Signature)) { AcpiOsUnmapMemory (MappedTable, sizeof (ACPI_TABLE_HEADER)); return (AE_BAD_SIGNATURE); } } /* Map the entire table */ Length = ApGetTableLength (MappedTable); AcpiOsUnmapMemory (MappedTable, sizeof (ACPI_TABLE_HEADER)); if (Length == 0) { return (AE_BAD_HEADER); } MappedTable = AcpiOsMapMemory (Address, Length); if (!MappedTable) { fprintf (stderr, "Could not map table at 0x%8.8X%8.8X length %8.8X\n", ACPI_FORMAT_UINT64 (Address), Length); return (OslGetLastStatus (AE_INVALID_TABLE_LENGTH)); } (void) ApIsValidChecksum (MappedTable); *Table = MappedTable; return (AE_OK); } /****************************************************************************** * * FUNCTION: OslUnmapTable * * PARAMETERS: Table - A pointer to the mapped table * * RETURN: None * * DESCRIPTION: Unmap entire ACPI table. * *****************************************************************************/ static void OslUnmapTable ( ACPI_TABLE_HEADER *Table) { if (Table) { AcpiOsUnmapMemory (Table, ApGetTableLength (Table)); } } /****************************************************************************** * * FUNCTION: OslTableNameFromFile * * PARAMETERS: Filename - File that contains the desired table * Signature - Pointer to 4-character buffer to store * extracted table signature. * Instance - Pointer to integer to store extracted * table instance number. * * RETURN: Status; Table name is extracted if AE_OK. * * DESCRIPTION: Extract table signature and instance number from a table file * name. * *****************************************************************************/ static ACPI_STATUS OslTableNameFromFile ( char *Filename, char *Signature, UINT32 *Instance) { /* Ignore meaningless files */ if (strlen (Filename) < ACPI_NAMESEG_SIZE) { return (AE_BAD_SIGNATURE); } /* Extract instance number */ if (isdigit ((int) Filename[ACPI_NAMESEG_SIZE])) { sscanf (&Filename[ACPI_NAMESEG_SIZE], "%u", Instance); } else if (strlen (Filename) != ACPI_NAMESEG_SIZE) { return (AE_BAD_SIGNATURE); } else { *Instance = 0; } /* Extract signature */ ACPI_COPY_NAMESEG (Signature, Filename); return (AE_OK); } /****************************************************************************** * * FUNCTION: OslReadTableFromFile * * PARAMETERS: Filename - File that contains the desired table * FileOffset - Offset of the table in file * Table - Where a pointer to the table is returned * * RETURN: Status; Table buffer is returned if AE_OK. * * DESCRIPTION: Read a ACPI table from a file. * *****************************************************************************/ static ACPI_STATUS OslReadTableFromFile ( char *Filename, ACPI_SIZE FileOffset, ACPI_TABLE_HEADER **Table) { FILE *TableFile; ACPI_TABLE_HEADER Header; ACPI_TABLE_HEADER *LocalTable = NULL; UINT32 TableLength; INT32 Count; ACPI_STATUS Status = AE_OK; /* Open the file */ TableFile = fopen (Filename, "rb"); if (TableFile == NULL) { fprintf (stderr, "Could not open table file: %s\n", Filename); return (OslGetLastStatus (AE_NOT_FOUND)); } fseek (TableFile, FileOffset, SEEK_SET); /* Read the Table header to get the table length */ Count = fread (&Header, 1, sizeof (ACPI_TABLE_HEADER), TableFile); if (Count != sizeof (ACPI_TABLE_HEADER)) { fprintf (stderr, "Could not read table header: %s\n", Filename); Status = AE_BAD_HEADER; goto Exit; } #ifdef ACPI_OBSOLETE_FUNCTIONS /* If signature is specified, it must match the table */ if (Signature) { if (ACPI_VALIDATE_RSDP_SIG (Signature)) { if (!ACPI_VALIDATE_RSDP_SIG (Header.Signature)) { fprintf (stderr, "Incorrect RSDP signature: found %8.8s\n", Header.Signature); Status = AE_BAD_SIGNATURE; goto Exit; } } else if (!ACPI_COMPARE_NAMESEG (Signature, Header.Signature)) { fprintf (stderr, "Incorrect signature: Expecting %4.4s, found %4.4s\n", Signature, Header.Signature); Status = AE_BAD_SIGNATURE; goto Exit; } } #endif TableLength = ApGetTableLength (&Header); if (TableLength == 0) { Status = AE_BAD_HEADER; goto Exit; } /* Read the entire table into a local buffer */ LocalTable = calloc (1, TableLength); if (!LocalTable) { fprintf (stderr, "%4.4s: Could not allocate buffer for table of length %X\n", Header.Signature, TableLength); Status = AE_NO_MEMORY; goto Exit; } fseek (TableFile, FileOffset, SEEK_SET); Count = fread (LocalTable, 1, TableLength, TableFile); if (Count != TableLength) { fprintf (stderr, "%4.4s: Could not read table content\n", Header.Signature); Status = AE_INVALID_TABLE_LENGTH; goto Exit; } /* Validate checksum */ (void) ApIsValidChecksum (LocalTable); Exit: fclose (TableFile); *Table = LocalTable; return (Status); } /****************************************************************************** * * FUNCTION: OslGetCustomizedTable * * PARAMETERS: Pathname - Directory to find Linux customized table * Signature - ACPI Signature for desired table. Must be * a null terminated 4-character string. * Instance - Multiple table support for SSDT/UEFI (0...n) * Must be 0 for other tables. * Table - Where a pointer to the table is returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer is returned if AE_OK. * AE_LIMIT: Instance is beyond valid limit * AE_NOT_FOUND: A table with the signature was not found * * DESCRIPTION: Get an OS customized table. * *****************************************************************************/ static ACPI_STATUS OslGetCustomizedTable ( char *Pathname, char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address) { void *TableDir; UINT32 CurrentInstance = 0; char TempName[ACPI_NAMESEG_SIZE]; char TableFilename[PATH_MAX]; char *Filename; ACPI_STATUS Status; /* Open the directory for customized tables */ TableDir = AcpiOsOpenDirectory (Pathname, "*", REQUEST_FILE_ONLY); if (!TableDir) { return (OslGetLastStatus (AE_NOT_FOUND)); } /* Attempt to find the table in the directory */ while ((Filename = AcpiOsGetNextFilename (TableDir))) { /* Ignore meaningless files */ if (!ACPI_COMPARE_NAMESEG (Filename, Signature)) { continue; } /* Extract table name and instance number */ Status = OslTableNameFromFile (Filename, TempName, &CurrentInstance); /* Ignore meaningless files */ if (ACPI_FAILURE (Status) || CurrentInstance != Instance) { continue; } /* Create the table pathname */ if (Instance != 0) { sprintf (TableFilename, "%s/%4.4s%d", Pathname, TempName, Instance); } else { sprintf (TableFilename, "%s/%4.4s", Pathname, TempName); } break; } AcpiOsCloseDirectory (TableDir); if (!Filename) { return (AE_LIMIT); } /* There is no physical address saved for customized tables, use zero */ *Address = 0; Status = OslReadTableFromFile (TableFilename, 0, Table); return (Status); } acpica-unix-20250404/source/os_specific/service_layers/osunixxf.c0000775000175000017500000011275114773714133024405 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: osunixxf - UNIX OSL interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * These interfaces are required in order to compile the ASL compiler and the * various ACPICA tools under Linux or other Unix-like system. */ #include "acpi.h" #include "accommon.h" #include "amlcode.h" #include "acparser.h" #include "acdebug.h" #include #include #include #include #include #include #include #include #define _COMPONENT ACPI_OS_SERVICES ACPI_MODULE_NAME ("osunixxf") /* Upcalls to AcpiExec */ void AeTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable); typedef void* (*PTHREAD_CALLBACK) (void *); /* Buffer used by AcpiOsVprintf */ #define ACPI_VPRINTF_BUFFER_SIZE 512 #define _ASCII_NEWLINE '\n' /* Terminal support for AcpiExec only */ #ifdef ACPI_EXEC_APP #include struct termios OriginalTermAttributes; int TermAttributesWereSet = 0; ACPI_STATUS AcpiUtReadLine ( char *Buffer, UINT32 BufferLength, UINT32 *BytesRead); static void OsEnterLineEditMode ( void); static void OsExitLineEditMode ( void); /****************************************************************************** * * FUNCTION: OsEnterLineEditMode, OsExitLineEditMode * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Enter/Exit the raw character input mode for the terminal. * * Interactive line-editing support for the AML debugger. Used with the * common/acgetline module. * * readline() is not used because of non-portability. It is not available * on all systems, and if it is, often the package must be manually installed. * * Therefore, we use the POSIX tcgetattr/tcsetattr and do the minimal line * editing that we need in AcpiOsGetLine. * * If the POSIX tcgetattr/tcsetattr interfaces are unavailable, these * calls will also work: * For OsEnterLineEditMode: system ("stty cbreak -echo") * For OsExitLineEditMode: system ("stty cooked echo") * *****************************************************************************/ static void OsEnterLineEditMode ( void) { struct termios LocalTermAttributes; TermAttributesWereSet = 0; /* STDIN must be a terminal */ if (!isatty (STDIN_FILENO)) { return; } /* Get and keep the original attributes */ if (tcgetattr (STDIN_FILENO, &OriginalTermAttributes)) { fprintf (stderr, "Could not get terminal attributes!\n"); return; } /* Set the new attributes to enable raw character input */ memcpy (&LocalTermAttributes, &OriginalTermAttributes, sizeof (struct termios)); LocalTermAttributes.c_lflag &= ~(ICANON | ECHO); LocalTermAttributes.c_cc[VMIN] = 1; LocalTermAttributes.c_cc[VTIME] = 0; if (tcsetattr (STDIN_FILENO, TCSANOW, &LocalTermAttributes)) { fprintf (stderr, "Could not set terminal attributes!\n"); return; } TermAttributesWereSet = 1; } static void OsExitLineEditMode ( void) { if (!TermAttributesWereSet) { return; } /* Set terminal attributes back to the original values */ if (tcsetattr (STDIN_FILENO, TCSANOW, &OriginalTermAttributes)) { fprintf (stderr, "Could not restore terminal attributes!\n"); } } #else /* These functions are not needed for other ACPICA utilities */ #define OsEnterLineEditMode() #define OsExitLineEditMode() #endif /****************************************************************************** * * FUNCTION: AcpiOsInitialize, AcpiOsTerminate * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize and terminate this module. * *****************************************************************************/ ACPI_STATUS AcpiOsInitialize ( void) { ACPI_STATUS Status; AcpiGbl_OutputFile = stdout; OsEnterLineEditMode (); Status = AcpiOsCreateLock (&AcpiGbl_PrintLock); if (ACPI_FAILURE (Status)) { return (Status); } return (AE_OK); } ACPI_STATUS AcpiOsTerminate ( void) { OsExitLineEditMode (); return (AE_OK); } #ifndef ACPI_USE_NATIVE_RSDP_POINTER /****************************************************************************** * * FUNCTION: AcpiOsGetRootPointer * * PARAMETERS: None * * RETURN: RSDP physical address * * DESCRIPTION: Gets the ACPI root pointer (RSDP) * *****************************************************************************/ ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer ( void) { return (0); } #endif /****************************************************************************** * * FUNCTION: AcpiOsPredefinedOverride * * PARAMETERS: InitVal - Initial value of the predefined object * NewVal - The new value for the object * * RETURN: Status, pointer to value. Null pointer returned if not * overriding. * * DESCRIPTION: Allow the OS to override predefined names * *****************************************************************************/ ACPI_STATUS AcpiOsPredefinedOverride ( const ACPI_PREDEFINED_NAMES *InitVal, ACPI_STRING *NewVal) { if (!InitVal || !NewVal) { return (AE_BAD_PARAMETER); } *NewVal = NULL; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsTableOverride * * PARAMETERS: ExistingTable - Header of current table (probably * firmware) * NewTable - Where an entire new table is returned. * * RETURN: Status, pointer to new table. Null pointer returned if no * table is available to override * * DESCRIPTION: Return a different version of a table if one is available * *****************************************************************************/ ACPI_STATUS AcpiOsTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable) { if (!ExistingTable || !NewTable) { return (AE_BAD_PARAMETER); } *NewTable = NULL; #ifdef ACPI_EXEC_APP AeTableOverride (ExistingTable, NewTable); return (AE_OK); #else return (AE_NO_ACPI_TABLES); #endif } /****************************************************************************** * * FUNCTION: AcpiOsPhysicalTableOverride * * PARAMETERS: ExistingTable - Header of current table (probably firmware) * NewAddress - Where new table address is returned * (Physical address) * NewTableLength - Where new table length is returned * * RETURN: Status, address/length of new table. Null pointer returned * if no table is available to override. * * DESCRIPTION: Returns AE_SUPPORT, function not used in user space. * *****************************************************************************/ ACPI_STATUS AcpiOsPhysicalTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_PHYSICAL_ADDRESS *NewAddress, UINT32 *NewTableLength) { return (AE_SUPPORT); } /****************************************************************************** * * FUNCTION: AcpiOsEnterSleep * * PARAMETERS: SleepState - Which sleep state to enter * RegaValue - Register A value * RegbValue - Register B value * * RETURN: Status * * DESCRIPTION: A hook before writing sleep registers to enter the sleep * state. Return AE_CTRL_TERMINATE to skip further sleep register * writes. * *****************************************************************************/ ACPI_STATUS AcpiOsEnterSleep ( UINT8 SleepState, UINT32 RegaValue, UINT32 RegbValue) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsRedirectOutput * * PARAMETERS: Destination - An open file handle/pointer * * RETURN: None * * DESCRIPTION: Causes redirect of AcpiOsPrintf and AcpiOsVprintf * *****************************************************************************/ void AcpiOsRedirectOutput ( void *Destination) { AcpiGbl_OutputFile = Destination; } /****************************************************************************** * * FUNCTION: AcpiOsPrintf * * PARAMETERS: fmt, ... - Standard printf format * * RETURN: None * * DESCRIPTION: Formatted output. Note: very similar to AcpiOsVprintf * (performance), changes should be tracked in both functions. * *****************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf ( const char *Fmt, ...) { va_list Args; UINT8 Flags; Flags = AcpiGbl_DbOutputFlags; if (Flags & ACPI_DB_REDIRECTABLE_OUTPUT) { /* Output is directable to either a file (if open) or the console */ if (AcpiGbl_DebugFile) { /* Output file is open, send the output there */ va_start (Args, Fmt); vfprintf (AcpiGbl_DebugFile, Fmt, Args); va_end (Args); } else { /* No redirection, send output to console (once only!) */ Flags |= ACPI_DB_CONSOLE_OUTPUT; } } if (Flags & ACPI_DB_CONSOLE_OUTPUT) { va_start (Args, Fmt); vfprintf (AcpiGbl_OutputFile, Fmt, Args); va_end (Args); } } /****************************************************************************** * * FUNCTION: AcpiOsVprintf * * PARAMETERS: fmt - Standard printf format * args - Argument list * * RETURN: None * * DESCRIPTION: Formatted output with argument list pointer. Note: very * similar to AcpiOsPrintf, changes should be tracked in both * functions. * *****************************************************************************/ void AcpiOsVprintf ( const char *Fmt, va_list Args) { UINT8 Flags; char Buffer[ACPI_VPRINTF_BUFFER_SIZE]; /* * We build the output string in a local buffer because we may be * outputting the buffer twice. Using vfprintf is problematic because * some implementations modify the args pointer/structure during * execution. Thus, we use the local buffer for portability. * * Note: Since this module is intended for use by the various ACPICA * utilities/applications, we can safely declare the buffer on the stack. * Also, This function is used for relatively small error messages only. */ vsnprintf (Buffer, ACPI_VPRINTF_BUFFER_SIZE, Fmt, Args); Flags = AcpiGbl_DbOutputFlags; if (Flags & ACPI_DB_REDIRECTABLE_OUTPUT) { /* Output is directable to either a file (if open) or the console */ if (AcpiGbl_DebugFile) { /* Output file is open, send the output there */ fputs (Buffer, AcpiGbl_DebugFile); } else { /* No redirection, send output to console (once only!) */ Flags |= ACPI_DB_CONSOLE_OUTPUT; } } if (Flags & ACPI_DB_CONSOLE_OUTPUT) { fputs (Buffer, AcpiGbl_OutputFile); } } #ifndef ACPI_EXEC_APP /****************************************************************************** * * FUNCTION: AcpiOsGetLine * * PARAMETERS: Buffer - Where to return the command line * BufferLength - Maximum length of Buffer * BytesRead - Where the actual byte count is returned * * RETURN: Status and actual bytes read * * DESCRIPTION: Get the next input line from the terminal. NOTE: For the * AcpiExec utility, we use the acgetline module instead to * provide line-editing and history support. * *****************************************************************************/ ACPI_STATUS AcpiOsGetLine ( char *Buffer, UINT32 BufferLength, UINT32 *BytesRead) { int InputChar; UINT32 EndOfLine; /* Standard AcpiOsGetLine for all utilities except AcpiExec */ for (EndOfLine = 0; ; EndOfLine++) { if (EndOfLine >= BufferLength) { return (AE_BUFFER_OVERFLOW); } if ((InputChar = getchar ()) == EOF) { return (AE_ERROR); } if (!InputChar || InputChar == _ASCII_NEWLINE) { break; } Buffer[EndOfLine] = (char) InputChar; } /* Null terminate the buffer */ Buffer[EndOfLine] = 0; /* Return the number of bytes in the string */ if (BytesRead) { *BytesRead = EndOfLine; } return (AE_OK); } #endif #ifndef ACPI_USE_NATIVE_MEMORY_MAPPING /****************************************************************************** * * FUNCTION: AcpiOsMapMemory * * PARAMETERS: where - Physical address of memory to be mapped * length - How much memory to map * * RETURN: Pointer to mapped memory. Null on error. * * DESCRIPTION: Map physical memory into caller's address space * *****************************************************************************/ void * AcpiOsMapMemory ( ACPI_PHYSICAL_ADDRESS where, ACPI_SIZE length) { return (ACPI_TO_POINTER ((ACPI_SIZE) where)); } /****************************************************************************** * * FUNCTION: AcpiOsUnmapMemory * * PARAMETERS: where - Logical address of memory to be unmapped * length - How much memory to unmap * * RETURN: None. * * DESCRIPTION: Delete a previously created mapping. Where and Length must * correspond to a previous mapping exactly. * *****************************************************************************/ void AcpiOsUnmapMemory ( void *where, ACPI_SIZE length) { return; } #endif /****************************************************************************** * * FUNCTION: AcpiOsAllocate * * PARAMETERS: Size - Amount to allocate, in bytes * * RETURN: Pointer to the new allocation. Null on error. * * DESCRIPTION: Allocate memory. Algorithm is dependent on the OS. * *****************************************************************************/ void * AcpiOsAllocate ( ACPI_SIZE size) { void *Mem; Mem = (void *) malloc ((size_t) size); return (Mem); } #ifdef USE_NATIVE_ALLOCATE_ZEROED /****************************************************************************** * * FUNCTION: AcpiOsAllocateZeroed * * PARAMETERS: Size - Amount to allocate, in bytes * * RETURN: Pointer to the new allocation. Null on error. * * DESCRIPTION: Allocate and zero memory. Algorithm is dependent on the OS. * *****************************************************************************/ void * AcpiOsAllocateZeroed ( ACPI_SIZE size) { void *Mem; Mem = (void *) calloc (1, (size_t) size); return (Mem); } #endif /****************************************************************************** * * FUNCTION: AcpiOsFree * * PARAMETERS: mem - Pointer to previously allocated memory * * RETURN: None. * * DESCRIPTION: Free memory allocated via AcpiOsAllocate * *****************************************************************************/ void AcpiOsFree ( void *mem) { free (mem); } #ifdef ACPI_SINGLE_THREADED /****************************************************************************** * * FUNCTION: Semaphore stub functions * * DESCRIPTION: Stub functions used for single-thread applications that do * not require semaphore synchronization. Full implementations * of these functions appear after the stubs. * *****************************************************************************/ ACPI_STATUS AcpiOsCreateSemaphore ( UINT32 MaxUnits, UINT32 InitialUnits, ACPI_HANDLE *OutHandle) { *OutHandle = (ACPI_HANDLE) 1; return (AE_OK); } ACPI_STATUS AcpiOsDeleteSemaphore ( ACPI_HANDLE Handle) { return (AE_OK); } ACPI_STATUS AcpiOsWaitSemaphore ( ACPI_HANDLE Handle, UINT32 Units, UINT16 Timeout) { return (AE_OK); } ACPI_STATUS AcpiOsSignalSemaphore ( ACPI_HANDLE Handle, UINT32 Units) { return (AE_OK); } #else /****************************************************************************** * * FUNCTION: AcpiOsCreateSemaphore * * PARAMETERS: InitialUnits - Units to be assigned to the new semaphore * OutHandle - Where a handle will be returned * * RETURN: Status * * DESCRIPTION: Create an OS semaphore * *****************************************************************************/ ACPI_STATUS AcpiOsCreateSemaphore ( UINT32 MaxUnits, UINT32 InitialUnits, ACPI_HANDLE *OutHandle) { sem_t *Sem; if (!OutHandle) { return (AE_BAD_PARAMETER); } #ifdef __APPLE__ { static int SemaphoreCount = 0; char SemaphoreName[32]; snprintf (SemaphoreName, sizeof (SemaphoreName), "acpi_sem_%d", SemaphoreCount++); printf ("%s\n", SemaphoreName); Sem = sem_open (SemaphoreName, O_EXCL|O_CREAT, 0755, InitialUnits); if (!Sem) { return (AE_NO_MEMORY); } sem_unlink (SemaphoreName); /* This just deletes the name */ } #else Sem = AcpiOsAllocate (sizeof (sem_t)); if (!Sem) { return (AE_NO_MEMORY); } if (sem_init (Sem, 0, InitialUnits) == -1) { AcpiOsFree (Sem); return (AE_BAD_PARAMETER); } #endif *OutHandle = (ACPI_HANDLE) Sem; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsDeleteSemaphore * * PARAMETERS: Handle - Handle returned by AcpiOsCreateSemaphore * * RETURN: Status * * DESCRIPTION: Delete an OS semaphore * *****************************************************************************/ ACPI_STATUS AcpiOsDeleteSemaphore ( ACPI_HANDLE Handle) { sem_t *Sem = (sem_t *) Handle; if (!Sem) { return (AE_BAD_PARAMETER); } #ifdef __APPLE__ if (sem_close (Sem) == -1) { return (AE_BAD_PARAMETER); } #else if (sem_destroy (Sem) == -1) { return (AE_BAD_PARAMETER); } #endif return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWaitSemaphore * * PARAMETERS: Handle - Handle returned by AcpiOsCreateSemaphore * Units - How many units to wait for * MsecTimeout - How long to wait (milliseconds) * * RETURN: Status * * DESCRIPTION: Wait for units * *****************************************************************************/ ACPI_STATUS AcpiOsWaitSemaphore ( ACPI_HANDLE Handle, UINT32 Units, UINT16 MsecTimeout) { ACPI_STATUS Status = AE_OK; sem_t *Sem = (sem_t *) Handle; int RetVal; #ifndef ACPI_USE_ALTERNATE_TIMEOUT struct timespec Time; #endif if (!Sem) { return (AE_BAD_PARAMETER); } switch (MsecTimeout) { /* * No Wait: * -------- * A zero timeout value indicates that we shouldn't wait - just * acquire the semaphore if available otherwise return AE_TIME * (a.k.a. 'would block'). */ case 0: if (sem_trywait(Sem) == -1) { Status = (AE_TIME); } break; /* Wait Indefinitely */ case ACPI_WAIT_FOREVER: while (((RetVal = sem_wait (Sem)) == -1) && (errno == EINTR)) { continue; /* Restart if interrupted */ } if (RetVal != 0) { Status = (AE_TIME); } break; /* Wait with MsecTimeout */ default: #ifdef ACPI_USE_ALTERNATE_TIMEOUT /* * Alternate timeout mechanism for environments where * sem_timedwait is not available or does not work properly. */ while (MsecTimeout) { if (sem_trywait (Sem) == 0) { /* Got the semaphore */ return (AE_OK); } if (MsecTimeout >= 10) { MsecTimeout -= 10; usleep (10 * ACPI_USEC_PER_MSEC); /* ten milliseconds */ } else { MsecTimeout--; usleep (ACPI_USEC_PER_MSEC); /* one millisecond */ } } Status = (AE_TIME); #else /* * The interface to sem_timedwait is an absolute time, so we need to * get the current time, then add in the millisecond Timeout value. */ if (clock_gettime (CLOCK_REALTIME, &Time) == -1) { perror ("clock_gettime"); return (AE_TIME); } Time.tv_sec += (MsecTimeout / ACPI_MSEC_PER_SEC); Time.tv_nsec += ((MsecTimeout % ACPI_MSEC_PER_SEC) * ACPI_NSEC_PER_MSEC); /* Handle nanosecond overflow (field must be less than one second) */ if (Time.tv_nsec >= ACPI_NSEC_PER_SEC) { Time.tv_sec += (Time.tv_nsec / ACPI_NSEC_PER_SEC); Time.tv_nsec = (Time.tv_nsec % ACPI_NSEC_PER_SEC); } while (((RetVal = sem_timedwait (Sem, &Time)) == -1) && (errno == EINTR)) { continue; /* Restart if interrupted */ } if (RetVal != 0) { if (errno != ETIMEDOUT) { perror ("sem_timedwait"); } Status = (AE_TIME); } #endif break; } return (Status); } /****************************************************************************** * * FUNCTION: AcpiOsSignalSemaphore * * PARAMETERS: Handle - Handle returned by AcpiOsCreateSemaphore * Units - Number of units to send * * RETURN: Status * * DESCRIPTION: Send units * *****************************************************************************/ ACPI_STATUS AcpiOsSignalSemaphore ( ACPI_HANDLE Handle, UINT32 Units) { sem_t *Sem = (sem_t *)Handle; if (!Sem) { return (AE_BAD_PARAMETER); } if (sem_post (Sem) == -1) { return (AE_LIMIT); } return (AE_OK); } #endif /* ACPI_SINGLE_THREADED */ /****************************************************************************** * * FUNCTION: Spinlock interfaces * * DESCRIPTION: Map these interfaces to semaphore interfaces * *****************************************************************************/ ACPI_STATUS AcpiOsCreateLock ( ACPI_SPINLOCK *OutHandle) { return (AcpiOsCreateSemaphore (1, 1, OutHandle)); } void AcpiOsDeleteLock ( ACPI_SPINLOCK Handle) { AcpiOsDeleteSemaphore (Handle); } ACPI_CPU_FLAGS AcpiOsAcquireLock ( ACPI_HANDLE Handle) { AcpiOsWaitSemaphore (Handle, 1, 0xFFFF); return (0); } void AcpiOsReleaseLock ( ACPI_SPINLOCK Handle, ACPI_CPU_FLAGS Flags) { AcpiOsSignalSemaphore (Handle, 1); } /****************************************************************************** * * FUNCTION: AcpiOsInstallInterruptHandler * * PARAMETERS: InterruptNumber - Level handler should respond to. * Isr - Address of the ACPI interrupt handler * ExceptPtr - Where status is returned * * RETURN: Handle to the newly installed handler. * * DESCRIPTION: Install an interrupt handler. Used to install the ACPI * OS-independent handler. * *****************************************************************************/ UINT32 AcpiOsInstallInterruptHandler ( UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine, void *Context) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsRemoveInterruptHandler * * PARAMETERS: Handle - Returned when handler was installed * * RETURN: Status * * DESCRIPTION: Uninstalls an interrupt handler. * *****************************************************************************/ ACPI_STATUS AcpiOsRemoveInterruptHandler ( UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsStall * * PARAMETERS: microseconds - Time to sleep * * RETURN: Blocks until sleep is completed. * * DESCRIPTION: Sleep at microsecond granularity * *****************************************************************************/ void AcpiOsStall ( UINT32 microseconds) { if (microseconds) { usleep (microseconds); } } /****************************************************************************** * * FUNCTION: AcpiOsSleep * * PARAMETERS: milliseconds - Time to sleep * * RETURN: Blocks until sleep is completed. * * DESCRIPTION: Sleep at millisecond granularity * *****************************************************************************/ void AcpiOsSleep ( UINT64 milliseconds) { /* Sleep for whole seconds */ sleep (milliseconds / ACPI_MSEC_PER_SEC); /* * Sleep for remaining microseconds. * Arg to usleep() is in usecs and must be less than 1,000,000 (1 second). */ usleep ((milliseconds % ACPI_MSEC_PER_SEC) * ACPI_USEC_PER_MSEC); } /****************************************************************************** * * FUNCTION: AcpiOsGetTimer * * PARAMETERS: None * * RETURN: Current time in 100 nanosecond units * * DESCRIPTION: Get the current system time * *****************************************************************************/ UINT64 AcpiOsGetTimer ( void) { struct timeval time; /* This timer has sufficient resolution for user-space application code */ gettimeofday (&time, NULL); /* (Seconds * 10^7 = 100ns(10^-7)) + (Microseconds(10^-6) * 10^1 = 100ns) */ return (((UINT64) time.tv_sec * ACPI_100NSEC_PER_SEC) + ((UINT64) time.tv_usec * ACPI_100NSEC_PER_USEC)); } /****************************************************************************** * * FUNCTION: AcpiOsReadPciConfiguration * * PARAMETERS: PciId - Seg/Bus/Dev * PciRegister - Device Register * Value - Buffer where value is placed * Width - Number of bits * * RETURN: Status * * DESCRIPTION: Read data from PCI configuration space * *****************************************************************************/ ACPI_STATUS AcpiOsReadPciConfiguration ( ACPI_PCI_ID *PciId, UINT32 PciRegister, UINT64 *Value, UINT32 Width) { *Value = 0; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWritePciConfiguration * * PARAMETERS: PciId - Seg/Bus/Dev * PciRegister - Device Register * Value - Value to be written * Width - Number of bits * * RETURN: Status. * * DESCRIPTION: Write data to PCI configuration space * *****************************************************************************/ ACPI_STATUS AcpiOsWritePciConfiguration ( ACPI_PCI_ID *PciId, UINT32 PciRegister, UINT64 Value, UINT32 Width) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsReadPort * * PARAMETERS: Address - Address of I/O port/register to read * Value - Where value is placed * Width - Number of bits * * RETURN: Value read from port * * DESCRIPTION: Read data from an I/O port or register * *****************************************************************************/ ACPI_STATUS AcpiOsReadPort ( ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width) { switch (Width) { case 8: *Value = 0xFF; break; case 16: *Value = 0xFFFF; break; case 32: *Value = 0xFFFFFFFF; break; default: return (AE_BAD_PARAMETER); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWritePort * * PARAMETERS: Address - Address of I/O port/register to write * Value - Value to write * Width - Number of bits * * RETURN: None * * DESCRIPTION: Write data to an I/O port or register * *****************************************************************************/ ACPI_STATUS AcpiOsWritePort ( ACPI_IO_ADDRESS Address, UINT32 Value, UINT32 Width) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsReadMemory * * PARAMETERS: Address - Physical Memory Address to read * Value - Where value is placed * Width - Number of bits (8,16,32, or 64) * * RETURN: Value read from physical memory address. Always returned * as a 64-bit integer, regardless of the read width. * * DESCRIPTION: Read data from a physical memory address * *****************************************************************************/ ACPI_STATUS AcpiOsReadMemory ( ACPI_PHYSICAL_ADDRESS Address, UINT64 *Value, UINT32 Width) { switch (Width) { case 8: case 16: case 32: case 64: *Value = 0; break; default: return (AE_BAD_PARAMETER); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWriteMemory * * PARAMETERS: Address - Physical Memory Address to write * Value - Value to write * Width - Number of bits (8,16,32, or 64) * * RETURN: None * * DESCRIPTION: Write data to a physical memory address * *****************************************************************************/ ACPI_STATUS AcpiOsWriteMemory ( ACPI_PHYSICAL_ADDRESS Address, UINT64 Value, UINT32 Width) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsReadable * * PARAMETERS: Pointer - Area to be verified * Length - Size of area * * RETURN: TRUE if readable for entire length * * DESCRIPTION: Verify that a pointer is valid for reading * *****************************************************************************/ BOOLEAN AcpiOsReadable ( void *Pointer, ACPI_SIZE Length) { return (TRUE); } /****************************************************************************** * * FUNCTION: AcpiOsWritable * * PARAMETERS: Pointer - Area to be verified * Length - Size of area * * RETURN: TRUE if writable for entire length * * DESCRIPTION: Verify that a pointer is valid for writing * *****************************************************************************/ BOOLEAN AcpiOsWritable ( void *Pointer, ACPI_SIZE Length) { return (TRUE); } /****************************************************************************** * * FUNCTION: AcpiOsSignal * * PARAMETERS: Function - ACPI A signal function code * Info - Pointer to function-dependent structure * * RETURN: Status * * DESCRIPTION: Miscellaneous functions. Example implementation only. * *****************************************************************************/ ACPI_STATUS AcpiOsSignal ( UINT32 Function, void *Info) { switch (Function) { case ACPI_SIGNAL_FATAL: break; case ACPI_SIGNAL_BREAKPOINT: break; default: break; } return (AE_OK); } /* Optional multi-thread support */ #ifndef ACPI_SINGLE_THREADED /****************************************************************************** * * FUNCTION: AcpiOsGetThreadId * * PARAMETERS: None * * RETURN: Id of the running thread * * DESCRIPTION: Get the ID of the current (running) thread * *****************************************************************************/ ACPI_THREAD_ID AcpiOsGetThreadId ( void) { pthread_t thread; thread = pthread_self(); return (ACPI_CAST_PTHREAD_T (thread)); } /****************************************************************************** * * FUNCTION: AcpiOsExecute * * PARAMETERS: Type - Type of execution * Function - Address of the function to execute * Context - Passed as a parameter to the function * * RETURN: Status. * * DESCRIPTION: Execute a new thread * *****************************************************************************/ ACPI_STATUS AcpiOsExecute ( ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function, void *Context) { pthread_t thread; int ret; ret = pthread_create (&thread, NULL, (PTHREAD_CALLBACK) Function, Context); if (ret) { AcpiOsPrintf("Create thread failed"); } return (0); } #else /* ACPI_SINGLE_THREADED */ ACPI_THREAD_ID AcpiOsGetThreadId ( void) { return (1); } ACPI_STATUS AcpiOsExecute ( ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function, void *Context) { Function (Context); return (AE_OK); } #endif /* ACPI_SINGLE_THREADED */ /****************************************************************************** * * FUNCTION: AcpiOsWaitEventsComplete * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Wait for all asynchronous events to complete. This * implementation does nothing. * *****************************************************************************/ void AcpiOsWaitEventsComplete ( void) { return; } acpica-unix-20250404/source/os_specific/service_layers/oswintbl.c0000775000175000017500000004526214773714133024365 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: oswintbl - Windows OSL for obtaining ACPI tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acutils.h" #include #ifdef WIN32 #pragma warning(disable:4115) /* warning C4115: (caused by rpcasync.h) */ #include #elif WIN64 #include #endif #define _COMPONENT ACPI_OS_SERVICES ACPI_MODULE_NAME ("oswintbl") /* Local prototypes */ static char * WindowsFormatException ( LONG WinStatus); /* Globals */ #define LOCAL_BUFFER_SIZE 64 static char KeyBuffer[LOCAL_BUFFER_SIZE]; static char ErrorBuffer[LOCAL_BUFFER_SIZE]; /* * List of table signatures reported by EnumSystemFirmwareTables () */ UINT32 *Gbl_AvailableTableSignatures; UINT32 Gbl_TableCount = 0; UINT32 Gbl_SsdtInstance = 0; BOOLEAN Gbl_TableListInitialized = FALSE; static ACPI_STATUS OslTableInitialize ( void); /****************************************************************************** * * FUNCTION: WindowsFormatException * * PARAMETERS: WinStatus - Status from a Windows system call * * RETURN: Formatted (ascii) exception code. Front-end to Windows * FormatMessage interface. * * DESCRIPTION: Decode a windows exception * *****************************************************************************/ static char * WindowsFormatException ( LONG WinStatus) { ErrorBuffer[0] = 0; FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM, NULL, WinStatus, 0, ErrorBuffer, LOCAL_BUFFER_SIZE, NULL); return (ErrorBuffer); } /****************************************************************************** * * FUNCTION: AcpiOsGetTableByAddress * * PARAMETERS: Address - Physical address of the ACPI table * Table - Where a pointer to the table is returned * * RETURN: Status; Table buffer is returned if AE_OK. * AE_NOT_FOUND: A valid table was not found at the address * * DESCRIPTION: Get an ACPI table via a physical memory address. * * NOTE: Cannot be implemented without a Windows device driver. * *****************************************************************************/ ACPI_STATUS AcpiOsGetTableByAddress ( ACPI_PHYSICAL_ADDRESS Address, ACPI_TABLE_HEADER **Table) { fprintf (stderr, "Get table by address is not supported on Windows\n"); return (AE_SUPPORT); } /****************************************************************************** * * FUNCTION: AcpiOsGetTableByIndex * * PARAMETERS: Index - Which table to get * Table - Where a pointer to the table is returned * Instance - Where a pointer to the table instance no. is * returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer and physical address returned if AE_OK. * AE_LIMIT: Index is beyond valid limit * * DESCRIPTION: Get an ACPI table via an index value (0 through n). Returns * AE_LIMIT when an invalid index is reached. Index is not * necessarily an index into the RSDT/XSDT. * SSDT tables are obtained from the Windows registry. All other * tables are obtained through GetSystemFirmwareTable (). * * NOTE: Cannot get the physical address from the windows registry; * zero is returned instead. * *****************************************************************************/ ACPI_STATUS AcpiOsGetTableByIndex ( UINT32 Index, ACPI_TABLE_HEADER **Table, UINT32 *Instance, ACPI_PHYSICAL_ADDRESS *Address) { ACPI_STATUS Status; char *Signature; UINT32 CurrentInstance; /* Enumerate all ACPI table signatures on first invocation of this function */ Status = OslTableInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* Validate Index */ if (Index < Gbl_TableCount) { Signature = malloc (ACPI_NAMESEG_SIZE + 1); if (!Signature) { return (AE_NO_MEMORY); } Signature = memmove (Signature, &Gbl_AvailableTableSignatures[Index], ACPI_NAMESEG_SIZE); } else { return (AE_LIMIT); } if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_SSDT)) { CurrentInstance = Gbl_SsdtInstance; Gbl_SsdtInstance++; } else { CurrentInstance = 0; } Status = AcpiOsGetTableByName (Signature, CurrentInstance, Table, Address); if (ACPI_SUCCESS (Status)) { *Instance = CurrentInstance; } else if (Status == AE_NOT_FOUND && ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_SSDT)) { /* Treat SSDTs that are not found as invalid index. */ Status = AE_LIMIT; } free (Signature); return (Status); } /****************************************************************************** * * FUNCTION: OslTableInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize ACPI table data. Enumerate all ACPI table signatures * and save them to a global list. * *****************************************************************************/ static ACPI_STATUS OslTableInitialize ( void) { UINT32 ResultSize; UINT32 DataSize; if (Gbl_TableListInitialized) { return (AE_OK); } /* * ACPI table signatures are always 4 characters. Therefore, the data size * buffer should be a multiple of 4 */ DataSize = EnumSystemFirmwareTables ('ACPI', NULL, 0); if (DataSize % ACPI_NAMESEG_SIZE) { return (AE_ERROR); } /* * EnumSystemFirmwareTables () does not report the DSDT or XSDT. Work around this * by adding these entries manually. */ Gbl_TableCount = 2 + DataSize / ACPI_NAMESEG_SIZE; Gbl_AvailableTableSignatures = malloc (Gbl_TableCount * ACPI_NAMESEG_SIZE); if (!Gbl_AvailableTableSignatures) { return (AE_NO_MEMORY); } ResultSize = EnumSystemFirmwareTables ('ACPI', Gbl_AvailableTableSignatures, DataSize); if (ResultSize > DataSize) { return (AE_ERROR); } /* Insert the DSDT and XSDT tables signatures */ Gbl_AvailableTableSignatures [Gbl_TableCount - 1] = 'TDSD'; Gbl_AvailableTableSignatures [Gbl_TableCount - 2] = 'TDSX'; Gbl_TableListInitialized = TRUE; return (AE_OK); } /****************************************************************************** * * FUNCTION: WindowsGetTableFromRegistry * * PARAMETERS: Signature - ACPI Signature for desired table. Must be * a null terminated 4-character string. * Instance - For SSDTs (0...n). Use 0 otherwise. * Table - Where a pointer to the table is returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer and physical address returned if AE_OK. * AE_LIMIT: Instance is beyond valid limit * AE_NOT_FOUND: A table with the signature was not found * * DESCRIPTION: Get an ACPI table via a table signature (4 ASCII characters). * Returns AE_LIMIT when an invalid instance is reached. * Table is obtained from the Windows registry. * * NOTE: Assumes the input signature is uppercase. * Cannot get the physical address from the windows registry; * zero is returned instead. * *****************************************************************************/ static ACPI_STATUS WindowsGetTableFromRegistry ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address) { HKEY Handle = NULL; LONG WinStatus; ULONG Type; ULONG NameSize; ULONG DataSize; HKEY SubKey; ULONG i; ACPI_TABLE_HEADER *ReturnTable; ACPI_STATUS Status = AE_OK; /* Get a handle to the table key */ while (1) { strcpy(KeyBuffer, "HARDWARE\\ACPI\\"); if (AcpiUtSafeStrcat(KeyBuffer, sizeof(KeyBuffer), Signature)) { return (AE_BUFFER_OVERFLOW); } /* * Windows stores SSDT at SSDT, SSD1, ..., SSD9, SSDA, ..., SSDS, SSDT, * SSDU, ..., SSDY. If the first (0th) and the 29th tables have the same * OEM ID, Table ID and Revision, then the 29th entry will overwrite the * first entry... Let's hope that we do not have that many entries. */ if (Instance > 0 && ACPI_COMPARE_NAMESEG(Signature, ACPI_SIG_SSDT)) { if (Instance < 10) { KeyBuffer[strlen(KeyBuffer) - 1] = '0' + (char)Instance; } else if (Instance < 29) { KeyBuffer[strlen(KeyBuffer) - 1] = 'A' + (char)(Instance - 10); } else { return (AE_LIMIT); } } WinStatus = RegOpenKeyEx(HKEY_LOCAL_MACHINE, KeyBuffer, 0L, KEY_READ, &Handle); if (WinStatus != ERROR_SUCCESS) { /* * Somewhere along the way, MS changed the registry entry for * the FADT from * HARDWARE/ACPI/FACP to * HARDWARE/ACPI/FADT. * * This code allows for both. */ if (ACPI_COMPARE_NAMESEG(Signature, "FACP")) { Signature = "FADT"; } else if (ACPI_COMPARE_NAMESEG(Signature, "XSDT")) { Signature = "RSDT"; } else if (ACPI_COMPARE_NAMESEG(Signature, ACPI_SIG_SSDT)) { /* * SSDT may not be present on older Windows versions, but it is * also possible that the index is not found. */ return (AE_NOT_FOUND); } else { fprintf(stderr, "Could not find %s in registry at %s: %s (WinStatus=0x%X)\n", Signature, KeyBuffer, WindowsFormatException(WinStatus), WinStatus); return (AE_NOT_FOUND); } } else { break; } } /* Actual data for the table is down a couple levels */ for (i = 0; ;) { WinStatus = RegEnumKey(Handle, i, KeyBuffer, sizeof(KeyBuffer)); i++; if (WinStatus == ERROR_NO_MORE_ITEMS) { break; } WinStatus = RegOpenKey(Handle, KeyBuffer, &SubKey); if (WinStatus != ERROR_SUCCESS) { fprintf(stderr, "Could not open %s entry: %s\n", Signature, WindowsFormatException(WinStatus)); Status = AE_ERROR; goto Cleanup; } RegCloseKey(Handle); Handle = SubKey; i = 0; } /* Find the (binary) table entry */ for (i = 0; ; i++) { NameSize = sizeof(KeyBuffer); WinStatus = RegEnumValue(Handle, i, KeyBuffer, &NameSize, NULL, &Type, NULL, 0); if (WinStatus != ERROR_SUCCESS) { fprintf(stderr, "Could not get %s registry entry: %s\n", Signature, WindowsFormatException(WinStatus)); Status = AE_ERROR; goto Cleanup; } if (Type == REG_BINARY) { break; } } /* Get the size of the table */ WinStatus = RegQueryValueEx(Handle, KeyBuffer, NULL, NULL, NULL, &DataSize); if (WinStatus != ERROR_SUCCESS) { fprintf(stderr, "Could not read the %s table size: %s\n", Signature, WindowsFormatException(WinStatus)); Status = AE_ERROR; goto Cleanup; } /* Allocate a new buffer for the table */ ReturnTable = malloc(DataSize); if (!ReturnTable) { Status = AE_NO_MEMORY; goto Cleanup; } /* Get the actual table from the registry */ WinStatus = RegQueryValueEx(Handle, KeyBuffer, NULL, NULL, (UCHAR *)ReturnTable, &DataSize); if (WinStatus != ERROR_SUCCESS) { fprintf(stderr, "Could not read %s data: %s\n", Signature, WindowsFormatException(WinStatus)); free(ReturnTable); Status = AE_ERROR; goto Cleanup; } *Table = ReturnTable; *Address = 0; Cleanup: RegCloseKey(Handle); return (Status); } /****************************************************************************** * * FUNCTION: AcpiOsGetTableByName * * PARAMETERS: Signature - ACPI Signature for desired table. Must be * a null terminated 4-character string. * Instance - For SSDTs (0...n). Use 0 otherwise. * Table - Where a pointer to the table is returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer and physical address returned if AE_OK. * AE_LIMIT: Instance is beyond valid limit * AE_NOT_FOUND: A table with the signature was not found * * DESCRIPTION: Get an ACPI table via a table signature (4 ASCII characters). * Returns AE_LIMIT when an invalid instance is reached. * Table is obtained from the Windows registry. * * NOTE: Assumes the input signature is uppercase. * Cannot get the physical address from the windows registry; * zero is returned instead. * *****************************************************************************/ ACPI_STATUS AcpiOsGetTableByName( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address) { LONG Result; ACPI_STATUS Status = AE_OK; UINT32 DataSize; ACPI_TABLE_HEADER *ReturnTable; UINT32 UIntSignature = 0; /* Multiple instances are only supported for SSDT tables. */ if (Instance > 0 && !ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_SSDT)) { return (AE_LIMIT); } if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_SSDT)) { Status = WindowsGetTableFromRegistry ("SSDT", Instance, Table, Address); return (Status); } /* GetSystemFirmwareTable requires the table signature to be UINT32 */ UIntSignature = *ACPI_CAST_PTR (UINT32, Signature); DataSize = GetSystemFirmwareTable('ACPI', UIntSignature, NULL, 0); if (!DataSize) { fprintf(stderr, "The table signature %s does not exist.", Signature); return (AE_ERROR); } ReturnTable = malloc(DataSize); if (!ReturnTable) { return (AE_NO_MEMORY); } Result = GetSystemFirmwareTable('ACPI', UIntSignature, ReturnTable, DataSize); if (Result > (LONG) DataSize) { /* Clean up */ fprintf (stderr, "Could not read %s data\n", Signature); free (ReturnTable); return (AE_ERROR); } *Table = ReturnTable; return (Status); } /* These are here for acpidump only, so we don't need to link oswinxf */ #ifdef ACPI_DUMP_APP /****************************************************************************** * * FUNCTION: AcpiOsMapMemory * * PARAMETERS: Where - Physical address of memory to be mapped * Length - How much memory to map * * RETURN: Pointer to mapped memory. Null on error. * * DESCRIPTION: Map physical memory into caller's address space * *****************************************************************************/ void * AcpiOsMapMemory ( ACPI_PHYSICAL_ADDRESS Where, ACPI_SIZE Length) { return (ACPI_TO_POINTER ((ACPI_SIZE) Where)); } /****************************************************************************** * * FUNCTION: AcpiOsUnmapMemory * * PARAMETERS: Where - Logical address of memory to be unmapped * Length - How much memory to unmap * * RETURN: None. * * DESCRIPTION: Delete a previously created mapping. Where and Length must * correspond to a previous mapping exactly. * *****************************************************************************/ void AcpiOsUnmapMemory ( void *Where, ACPI_SIZE Length) { return; } #endif acpica-unix-20250404/source/os_specific/service_layers/oswinxf.c0000775000175000017500000011225614773714133024217 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: oswinxf - Windows OSL * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #ifdef WIN32 #pragma warning(disable:4115) /* warning C4115: named type definition in parentheses (caused by rpcasync.h> */ #include #include #elif WIN64 #include #endif #include #include #include #include #include #define _COMPONENT ACPI_OS_SERVICES ACPI_MODULE_NAME ("oswinxf") UINT64 TimerFrequency; char TableName[ACPI_NAMESEG_SIZE + 1]; #define ACPI_OS_DEBUG_TIMEOUT 30000 /* 30 seconds */ /* Upcalls to AcpiExec application */ void AeTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable); /* * Real semaphores are only used for a multi-threaded application */ #ifndef ACPI_SINGLE_THREADED /* Semaphore information structure */ typedef struct acpi_os_semaphore_info { UINT16 MaxUnits; UINT16 CurrentUnits; void *OsHandle; } ACPI_OS_SEMAPHORE_INFO; /* Need enough semaphores to run the large aslts suite */ #define ACPI_OS_MAX_SEMAPHORES 256 ACPI_OS_SEMAPHORE_INFO AcpiGbl_Semaphores[ACPI_OS_MAX_SEMAPHORES]; #endif /* ACPI_SINGLE_THREADED */ /****************************************************************************** * * FUNCTION: AcpiOsTerminate * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Nothing to do for windows * *****************************************************************************/ ACPI_STATUS AcpiOsTerminate ( void) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Init this OSL * *****************************************************************************/ ACPI_STATUS AcpiOsInitialize ( void) { ACPI_STATUS Status; LARGE_INTEGER LocalTimerFrequency; #ifndef ACPI_SINGLE_THREADED /* Clear the semaphore info array */ memset (AcpiGbl_Semaphores, 0x00, sizeof (AcpiGbl_Semaphores)); #endif AcpiGbl_OutputFile = stdout; /* Get the timer frequency for use in AcpiOsGetTimer */ TimerFrequency = 0; if (QueryPerformanceFrequency (&LocalTimerFrequency)) { /* Frequency is in ticks per second */ TimerFrequency = LocalTimerFrequency.QuadPart; } Status = AcpiOsCreateLock (&AcpiGbl_PrintLock); if (ACPI_FAILURE (Status)) { return (Status); } return (AE_OK); } #ifndef ACPI_USE_NATIVE_RSDP_POINTER /****************************************************************************** * * FUNCTION: AcpiOsGetRootPointer * * PARAMETERS: None * * RETURN: RSDP physical address * * DESCRIPTION: Gets the root pointer (RSDP) * *****************************************************************************/ ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer ( void) { return (0); } #endif /****************************************************************************** * * FUNCTION: AcpiOsPredefinedOverride * * PARAMETERS: InitVal - Initial value of the predefined object * NewVal - The new value for the object * * RETURN: Status, pointer to value. Null pointer returned if not * overriding. * * DESCRIPTION: Allow the OS to override predefined names * *****************************************************************************/ ACPI_STATUS AcpiOsPredefinedOverride ( const ACPI_PREDEFINED_NAMES *InitVal, ACPI_STRING *NewVal) { if (!InitVal || !NewVal) { return (AE_BAD_PARAMETER); } *NewVal = NULL; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsTableOverride * * PARAMETERS: ExistingTable - Header of current table (probably firmware) * NewTable - Where an entire new table is returned. * * RETURN: Status, pointer to new table. Null pointer returned if no * table is available to override * * DESCRIPTION: Return a different version of a table if one is available * *****************************************************************************/ ACPI_STATUS AcpiOsTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable) { if (!ExistingTable || !NewTable) { return (AE_BAD_PARAMETER); } *NewTable = NULL; #ifdef ACPI_EXEC_APP /* Call back up to AcpiExec */ AeTableOverride (ExistingTable, NewTable); #endif return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsPhysicalTableOverride * * PARAMETERS: ExistingTable - Header of current table (probably firmware) * NewAddress - Where new table address is returned * (Physical address) * NewTableLength - Where new table length is returned * * RETURN: Status, address/length of new table. Null pointer returned * if no table is available to override. * * DESCRIPTION: Returns AE_SUPPORT, function not used in user space. * *****************************************************************************/ ACPI_STATUS AcpiOsPhysicalTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_PHYSICAL_ADDRESS *NewAddress, UINT32 *NewTableLength) { return (AE_SUPPORT); } /****************************************************************************** * * FUNCTION: AcpiOsEnterSleep * * PARAMETERS: SleepState - Which sleep state to enter * RegaValue - Register A value * RegbValue - Register B value * * RETURN: Status * * DESCRIPTION: A hook before writing sleep registers to enter the sleep * state. Return AE_CTRL_SKIP to skip further sleep register * writes. * *****************************************************************************/ ACPI_STATUS AcpiOsEnterSleep ( UINT8 SleepState, UINT32 RegaValue, UINT32 RegbValue) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsGetTimer * * PARAMETERS: None * * RETURN: Current ticks in 100-nanosecond units * * DESCRIPTION: Get the value of a system timer * ******************************************************************************/ UINT64 AcpiOsGetTimer ( void) { LARGE_INTEGER Timer; /* Attempt to use hi-granularity timer first */ if (TimerFrequency && QueryPerformanceCounter (&Timer)) { /* Convert to 100 nanosecond ticks */ return ((UINT64) ((Timer.QuadPart * (UINT64) ACPI_100NSEC_PER_SEC) / TimerFrequency)); } /* Fall back to the lo-granularity timer */ else { /* Convert milliseconds to 100 nanosecond ticks */ return (GetTickCount64() * ACPI_100NSEC_PER_MSEC); } } /****************************************************************************** * * FUNCTION: AcpiOsReadable * * PARAMETERS: Pointer - Area to be verified * Length - Size of area * * RETURN: TRUE if readable for entire length * * DESCRIPTION: Verify that a pointer is valid for reading * *****************************************************************************/ BOOLEAN AcpiOsReadable ( void *Pointer, ACPI_SIZE Length) { return ((BOOLEAN) !IsBadReadPtr (Pointer, Length)); } /****************************************************************************** * * FUNCTION: AcpiOsWritable * * PARAMETERS: Pointer - Area to be verified * Length - Size of area * * RETURN: TRUE if writable for entire length * * DESCRIPTION: Verify that a pointer is valid for writing * *****************************************************************************/ BOOLEAN AcpiOsWritable ( void *Pointer, ACPI_SIZE Length) { return ((BOOLEAN) !IsBadWritePtr (Pointer, Length)); } /****************************************************************************** * * FUNCTION: AcpiOsRedirectOutput * * PARAMETERS: Destination - An open file handle/pointer * * RETURN: None * * DESCRIPTION: Causes redirect of AcpiOsPrintf and AcpiOsVprintf * *****************************************************************************/ void AcpiOsRedirectOutput ( void *Destination) { AcpiGbl_OutputFile = Destination; } /****************************************************************************** * * FUNCTION: AcpiOsPrintf * * PARAMETERS: Fmt, ... - Standard printf format * * RETURN: None * * DESCRIPTION: Formatted output * *****************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf ( const char *Fmt, ...) { va_list Args; UINT8 Flags; Flags = AcpiGbl_DbOutputFlags; if (Flags & ACPI_DB_REDIRECTABLE_OUTPUT) { /* Output is directable to either a file (if open) or the console */ if (AcpiGbl_DebugFile) { /* Output file is open, send the output there */ va_start (Args, Fmt); vfprintf (AcpiGbl_DebugFile, Fmt, Args); va_end (Args); } else { /* No redirection, send output to console (once only!) */ Flags |= ACPI_DB_CONSOLE_OUTPUT; } } if (Flags & ACPI_DB_CONSOLE_OUTPUT) { va_start (Args, Fmt); vfprintf (AcpiGbl_OutputFile, Fmt, Args); va_end (Args); } return; } /****************************************************************************** * * FUNCTION: AcpiOsVprintf * * PARAMETERS: Fmt - Standard printf format * Args - Argument list * * RETURN: None * * DESCRIPTION: Formatted output with argument list pointer * *****************************************************************************/ void AcpiOsVprintf ( const char *Fmt, va_list Args) { INT32 Count = 0; UINT8 Flags; Flags = AcpiGbl_DbOutputFlags; if (Flags & ACPI_DB_REDIRECTABLE_OUTPUT) { /* Output is directable to either a file (if open) or the console */ if (AcpiGbl_DebugFile) { /* Output file is open, send the output there */ Count = vfprintf (AcpiGbl_DebugFile, Fmt, Args); } else { /* No redirection, send output to console (once only!) */ Flags |= ACPI_DB_CONSOLE_OUTPUT; } } if (Flags & ACPI_DB_CONSOLE_OUTPUT) { Count = vfprintf (AcpiGbl_OutputFile, Fmt, Args); } return; } /****************************************************************************** * * FUNCTION: AcpiOsGetLine * * PARAMETERS: Buffer - Where to return the command line * BufferLength - Maximum length of Buffer * BytesRead - Where the actual byte count is returned * * RETURN: Status and actual bytes read * * DESCRIPTION: Formatted input with argument list pointer * *****************************************************************************/ ACPI_STATUS AcpiOsGetLine ( char *Buffer, UINT32 BufferLength, UINT32 *BytesRead) { int Temp; UINT32 i; for (i = 0; ; i++) { if (i >= BufferLength) { return (AE_BUFFER_OVERFLOW); } if ((Temp = getchar ()) == EOF) { return (AE_ERROR); } if (!Temp || Temp == '\n') { break; } Buffer [i] = (char) Temp; } /* Null terminate the buffer */ Buffer [i] = 0; /* Return the number of bytes in the string */ if (BytesRead) { *BytesRead = i; } return (AE_OK); } #ifndef ACPI_USE_NATIVE_MEMORY_MAPPING /****************************************************************************** * * FUNCTION: AcpiOsMapMemory * * PARAMETERS: Where - Physical address of memory to be mapped * Length - How much memory to map * * RETURN: Pointer to mapped memory. Null on error. * * DESCRIPTION: Map physical memory into caller's address space * *****************************************************************************/ void * AcpiOsMapMemory ( ACPI_PHYSICAL_ADDRESS Where, ACPI_SIZE Length) { return (ACPI_TO_POINTER ((ACPI_SIZE) Where)); } /****************************************************************************** * * FUNCTION: AcpiOsUnmapMemory * * PARAMETERS: Where - Logical address of memory to be unmapped * Length - How much memory to unmap * * RETURN: None. * * DESCRIPTION: Delete a previously created mapping. Where and Length must * correspond to a previous mapping exactly. * *****************************************************************************/ void AcpiOsUnmapMemory ( void *Where, ACPI_SIZE Length) { return; } #endif /****************************************************************************** * * FUNCTION: AcpiOsAllocate * * PARAMETERS: Size - Amount to allocate, in bytes * * RETURN: Pointer to the new allocation. Null on error. * * DESCRIPTION: Allocate memory. Algorithm is dependent on the OS. * *****************************************************************************/ void * AcpiOsAllocate ( ACPI_SIZE Size) { void *Mem; Mem = (void *) malloc ((size_t) Size); return (Mem); } #ifdef USE_NATIVE_ALLOCATE_ZEROED /****************************************************************************** * * FUNCTION: AcpiOsAllocateZeroed * * PARAMETERS: Size - Amount to allocate, in bytes * * RETURN: Pointer to the new allocation. Null on error. * * DESCRIPTION: Allocate and zero memory. Algorithm is dependent on the OS. * *****************************************************************************/ void * AcpiOsAllocateZeroed ( ACPI_SIZE Size) { void *Mem; Mem = (void *) calloc (1, (size_t) Size); return (Mem); } #endif /****************************************************************************** * * FUNCTION: AcpiOsFree * * PARAMETERS: Mem - Pointer to previously allocated memory * * RETURN: None. * * DESCRIPTION: Free memory allocated via AcpiOsAllocate * *****************************************************************************/ void AcpiOsFree ( void *Mem) { free (Mem); } #ifdef ACPI_SINGLE_THREADED /****************************************************************************** * * FUNCTION: Semaphore stub functions * * DESCRIPTION: Stub functions used for single-thread applications that do * not require semaphore synchronization. Full implementations * of these functions appear after the stubs. * *****************************************************************************/ ACPI_STATUS AcpiOsCreateSemaphore ( UINT32 MaxUnits, UINT32 InitialUnits, ACPI_HANDLE *OutHandle) { *OutHandle = (ACPI_HANDLE) 1; return (AE_OK); } ACPI_STATUS AcpiOsDeleteSemaphore ( ACPI_HANDLE Handle) { return (AE_OK); } ACPI_STATUS AcpiOsWaitSemaphore ( ACPI_HANDLE Handle, UINT32 Units, UINT16 Timeout) { return (AE_OK); } ACPI_STATUS AcpiOsSignalSemaphore ( ACPI_HANDLE Handle, UINT32 Units) { return (AE_OK); } #else /****************************************************************************** * * FUNCTION: AcpiOsCreateSemaphore * * PARAMETERS: MaxUnits - Maximum units that can be sent * InitialUnits - Units to be assigned to the new semaphore * OutHandle - Where a handle will be returned * * RETURN: Status * * DESCRIPTION: Create an OS semaphore * *****************************************************************************/ ACPI_STATUS AcpiOsCreateSemaphore ( UINT32 MaxUnits, UINT32 InitialUnits, ACPI_SEMAPHORE *OutHandle) { void *Mutex; UINT32 i; ACPI_FUNCTION_NAME (OsCreateSemaphore); if (MaxUnits == ACPI_UINT32_MAX) { MaxUnits = 255; } if (InitialUnits == ACPI_UINT32_MAX) { InitialUnits = MaxUnits; } if (InitialUnits > MaxUnits) { return (AE_BAD_PARAMETER); } /* Find an empty slot */ for (i = 0; i < ACPI_OS_MAX_SEMAPHORES; i++) { if (!AcpiGbl_Semaphores[i].OsHandle) { break; } } if (i >= ACPI_OS_MAX_SEMAPHORES) { ACPI_EXCEPTION ((AE_INFO, AE_LIMIT, "Reached max semaphores (%u), could not create", ACPI_OS_MAX_SEMAPHORES)); return (AE_LIMIT); } /* Create an OS semaphore */ Mutex = CreateSemaphore (NULL, InitialUnits, MaxUnits, NULL); if (!Mutex) { ACPI_ERROR ((AE_INFO, "Could not create semaphore")); return (AE_NO_MEMORY); } AcpiGbl_Semaphores[i].MaxUnits = (UINT16) MaxUnits; AcpiGbl_Semaphores[i].CurrentUnits = (UINT16) InitialUnits; AcpiGbl_Semaphores[i].OsHandle = Mutex; ACPI_DEBUG_PRINT ((ACPI_DB_MUTEX, "Handle=%u, Max=%u, Current=%u, OsHandle=%p\n", i, MaxUnits, InitialUnits, Mutex)); *OutHandle = (void *) i; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsDeleteSemaphore * * PARAMETERS: Handle - Handle returned by AcpiOsCreateSemaphore * * RETURN: Status * * DESCRIPTION: Delete an OS semaphore * *****************************************************************************/ ACPI_STATUS AcpiOsDeleteSemaphore ( ACPI_SEMAPHORE Handle) { UINT32 Index = (UINT32) Handle; if ((Index >= ACPI_OS_MAX_SEMAPHORES) || !AcpiGbl_Semaphores[Index].OsHandle) { return (AE_BAD_PARAMETER); } CloseHandle (AcpiGbl_Semaphores[Index].OsHandle); AcpiGbl_Semaphores[Index].OsHandle = NULL; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWaitSemaphore * * PARAMETERS: Handle - Handle returned by AcpiOsCreateSemaphore * Units - How many units to wait for * Timeout - How long to wait * * RETURN: Status * * DESCRIPTION: Wait for units * *****************************************************************************/ ACPI_STATUS AcpiOsWaitSemaphore ( ACPI_SEMAPHORE Handle, UINT32 Units, UINT16 Timeout) { UINT32 Index = (UINT32) Handle; UINT32 WaitStatus; UINT32 OsTimeout = Timeout; ACPI_FUNCTION_ENTRY (); if ((Index >= ACPI_OS_MAX_SEMAPHORES) || !AcpiGbl_Semaphores[Index].OsHandle) { return (AE_BAD_PARAMETER); } if (Units > 1) { printf ("WaitSemaphore: Attempt to receive %u units\n", Units); return (AE_NOT_IMPLEMENTED); } if (Timeout == ACPI_WAIT_FOREVER) { OsTimeout = INFINITE; if (AcpiGbl_DebugTimeout) { /* The debug timeout will prevent hang conditions */ OsTimeout = ACPI_OS_DEBUG_TIMEOUT; } } else { /* Add 10ms to account for clock tick granularity */ OsTimeout += 10; } WaitStatus = WaitForSingleObject ( AcpiGbl_Semaphores[Index].OsHandle, OsTimeout); if (WaitStatus == WAIT_TIMEOUT) { if (AcpiGbl_DebugTimeout) { ACPI_EXCEPTION ((AE_INFO, AE_TIME, "Debug timeout on semaphore 0x%04X (%ums)\n", Index, ACPI_OS_DEBUG_TIMEOUT)); } return (AE_TIME); } if (AcpiGbl_Semaphores[Index].CurrentUnits == 0) { ACPI_ERROR ((AE_INFO, "%s - No unit received. Timeout 0x%X, OS_Status 0x%X", AcpiUtGetMutexName (Index), Timeout, WaitStatus)); return (AE_OK); } AcpiGbl_Semaphores[Index].CurrentUnits--; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsSignalSemaphore * * PARAMETERS: Handle - Handle returned by AcpiOsCreateSemaphore * Units - Number of units to send * * RETURN: Status * * DESCRIPTION: Send units * *****************************************************************************/ ACPI_STATUS AcpiOsSignalSemaphore ( ACPI_SEMAPHORE Handle, UINT32 Units) { UINT32 Index = (UINT32) Handle; ACPI_FUNCTION_ENTRY (); if (Index >= ACPI_OS_MAX_SEMAPHORES) { printf ("SignalSemaphore: Index/Handle out of range: %2.2X\n", Index); return (AE_BAD_PARAMETER); } if (!AcpiGbl_Semaphores[Index].OsHandle) { printf ("SignalSemaphore: Null OS handle, Index %2.2X\n", Index); return (AE_BAD_PARAMETER); } if (Units > 1) { printf ("SignalSemaphore: Attempt to signal %u units, Index %2.2X\n", Units, Index); return (AE_NOT_IMPLEMENTED); } if ((AcpiGbl_Semaphores[Index].CurrentUnits + 1) > AcpiGbl_Semaphores[Index].MaxUnits) { ACPI_ERROR ((AE_INFO, "Oversignalled semaphore[%u]! Current %u Max %u", Index, AcpiGbl_Semaphores[Index].CurrentUnits, AcpiGbl_Semaphores[Index].MaxUnits)); return (AE_LIMIT); } AcpiGbl_Semaphores[Index].CurrentUnits++; ReleaseSemaphore (AcpiGbl_Semaphores[Index].OsHandle, Units, NULL); return (AE_OK); } #endif /* ACPI_SINGLE_THREADED */ /****************************************************************************** * * FUNCTION: Spinlock interfaces * * DESCRIPTION: Map these interfaces to semaphore interfaces * *****************************************************************************/ ACPI_STATUS AcpiOsCreateLock ( ACPI_SPINLOCK *OutHandle) { return (AcpiOsCreateSemaphore (1, 1, OutHandle)); } void AcpiOsDeleteLock ( ACPI_SPINLOCK Handle) { AcpiOsDeleteSemaphore (Handle); } ACPI_CPU_FLAGS AcpiOsAcquireLock ( ACPI_SPINLOCK Handle) { AcpiOsWaitSemaphore (Handle, 1, 0xFFFF); return (0); } void AcpiOsReleaseLock ( ACPI_SPINLOCK Handle, ACPI_CPU_FLAGS Flags) { AcpiOsSignalSemaphore (Handle, 1); } #if ACPI_FUTURE_IMPLEMENTATION /* Mutex interfaces, just implement with a semaphore */ ACPI_STATUS AcpiOsCreateMutex ( ACPI_MUTEX *OutHandle) { return (AcpiOsCreateSemaphore (1, 1, OutHandle)); } void AcpiOsDeleteMutex ( ACPI_MUTEX Handle) { AcpiOsDeleteSemaphore (Handle); } ACPI_STATUS AcpiOsAcquireMutex ( ACPI_MUTEX Handle, UINT16 Timeout) { AcpiOsWaitSemaphore (Handle, 1, Timeout); return (0); } void AcpiOsReleaseMutex ( ACPI_MUTEX Handle) { AcpiOsSignalSemaphore (Handle, 1); } #endif /****************************************************************************** * * FUNCTION: AcpiOsInstallInterruptHandler * * PARAMETERS: InterruptNumber - Level handler should respond to. * ServiceRoutine - Address of the ACPI interrupt handler * Context - User context * * RETURN: Handle to the newly installed handler. * * DESCRIPTION: Install an interrupt handler. Used to install the ACPI * OS-independent handler. * *****************************************************************************/ UINT32 AcpiOsInstallInterruptHandler ( UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine, void *Context) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsRemoveInterruptHandler * * PARAMETERS: Handle - Returned when handler was installed * * RETURN: Status * * DESCRIPTION: Uninstalls an interrupt handler. * *****************************************************************************/ ACPI_STATUS AcpiOsRemoveInterruptHandler ( UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsStall * * PARAMETERS: Microseconds - Time to stall * * RETURN: None. Blocks until stall is completed. * * DESCRIPTION: Sleep at microsecond granularity * *****************************************************************************/ void AcpiOsStall ( UINT32 Microseconds) { Sleep ((Microseconds / ACPI_USEC_PER_MSEC) + 1); return; } /****************************************************************************** * * FUNCTION: AcpiOsSleep * * PARAMETERS: Milliseconds - Time to sleep * * RETURN: None. Blocks until sleep is completed. * * DESCRIPTION: Sleep at millisecond granularity * *****************************************************************************/ void AcpiOsSleep ( UINT64 Milliseconds) { /* Add 10ms to account for clock tick granularity */ Sleep (((unsigned long) Milliseconds) + 10); return; } /****************************************************************************** * * FUNCTION: AcpiOsReadPciConfiguration * * PARAMETERS: PciId - Seg/Bus/Dev * Register - Device Register * Value - Buffer where value is placed * Width - Number of bits * * RETURN: Status * * DESCRIPTION: Read data from PCI configuration space * *****************************************************************************/ ACPI_STATUS AcpiOsReadPciConfiguration ( ACPI_PCI_ID *PciId, UINT32 Register, UINT64 *Value, UINT32 Width) { *Value = 0; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWritePciConfiguration * * PARAMETERS: PciId - Seg/Bus/Dev * Register - Device Register * Value - Value to be written * Width - Number of bits * * RETURN: Status * * DESCRIPTION: Write data to PCI configuration space * *****************************************************************************/ ACPI_STATUS AcpiOsWritePciConfiguration ( ACPI_PCI_ID *PciId, UINT32 Register, UINT64 Value, UINT32 Width) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsReadPort * * PARAMETERS: Address - Address of I/O port/register to read * Value - Where value is placed * Width - Number of bits * * RETURN: Value read from port * * DESCRIPTION: Read data from an I/O port or register * *****************************************************************************/ ACPI_STATUS AcpiOsReadPort ( ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width) { ACPI_FUNCTION_NAME (OsReadPort); switch (Width) { case 8: *Value = 0xFF; break; case 16: *Value = 0xFFFF; break; case 32: *Value = 0xFFFFFFFF; break; default: ACPI_ERROR ((AE_INFO, "Bad width parameter: %X", Width)); return (AE_BAD_PARAMETER); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWritePort * * PARAMETERS: Address - Address of I/O port/register to write * Value - Value to write * Width - Number of bits * * RETURN: None * * DESCRIPTION: Write data to an I/O port or register * *****************************************************************************/ ACPI_STATUS AcpiOsWritePort ( ACPI_IO_ADDRESS Address, UINT32 Value, UINT32 Width) { ACPI_FUNCTION_NAME (OsWritePort); if ((Width == 8) || (Width == 16) || (Width == 32)) { return (AE_OK); } ACPI_ERROR ((AE_INFO, "Bad width parameter: %X", Width)); return (AE_BAD_PARAMETER); } /****************************************************************************** * * FUNCTION: AcpiOsReadMemory * * PARAMETERS: Address - Physical Memory Address to read * Value - Where value is placed * Width - Number of bits (8,16,32, or 64) * * RETURN: Value read from physical memory address. Always returned * as a 64-bit integer, regardless of the read width. * * DESCRIPTION: Read data from a physical memory address * *****************************************************************************/ ACPI_STATUS AcpiOsReadMemory ( ACPI_PHYSICAL_ADDRESS Address, UINT64 *Value, UINT32 Width) { switch (Width) { case 8: case 16: case 32: case 64: *Value = 0; break; default: return (AE_BAD_PARAMETER); break; } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWriteMemory * * PARAMETERS: Address - Physical Memory Address to write * Value - Value to write * Width - Number of bits (8,16,32, or 64) * * RETURN: None * * DESCRIPTION: Write data to a physical memory address * *****************************************************************************/ ACPI_STATUS AcpiOsWriteMemory ( ACPI_PHYSICAL_ADDRESS Address, UINT64 Value, UINT32 Width) { return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsSignal * * PARAMETERS: Function - ACPICA signal function code * Info - Pointer to function-dependent structure * * RETURN: Status * * DESCRIPTION: Miscellaneous functions. Example implementation only. * *****************************************************************************/ ACPI_STATUS AcpiOsSignal ( UINT32 Function, void *Info) { switch (Function) { case ACPI_SIGNAL_FATAL: break; case ACPI_SIGNAL_BREAKPOINT: break; default: break; } return (AE_OK); } /****************************************************************************** * * FUNCTION: Local cache interfaces * * DESCRIPTION: Implements cache interfaces via malloc/free for testing * purposes only. * *****************************************************************************/ #ifndef ACPI_USE_LOCAL_CACHE ACPI_STATUS AcpiOsCreateCache ( char *CacheName, UINT16 ObjectSize, UINT16 MaxDepth, ACPI_CACHE_T **ReturnCache) { ACPI_MEMORY_LIST *NewCache; NewCache = malloc (sizeof (ACPI_MEMORY_LIST)); if (!NewCache) { return (AE_NO_MEMORY); } memset (NewCache, 0, sizeof (ACPI_MEMORY_LIST)); NewCache->ListName = CacheName; NewCache->ObjectSize = ObjectSize; NewCache->MaxDepth = MaxDepth; *ReturnCache = (ACPI_CACHE_T) NewCache; return (AE_OK); } ACPI_STATUS AcpiOsDeleteCache ( ACPI_CACHE_T *Cache) { free (Cache); return (AE_OK); } ACPI_STATUS AcpiOsPurgeCache ( ACPI_CACHE_T *Cache) { return (AE_OK); } void * AcpiOsAcquireObject ( ACPI_CACHE_T *Cache) { void *NewObject; NewObject = malloc (((ACPI_MEMORY_LIST *) Cache)->ObjectSize); memset (NewObject, 0, ((ACPI_MEMORY_LIST *) Cache)->ObjectSize); return (NewObject); } ACPI_STATUS AcpiOsReleaseObject ( ACPI_CACHE_T *Cache, void *Object) { free (Object); return (AE_OK); } #endif /* ACPI_USE_LOCAL_CACHE */ /* Optional multi-thread support */ #ifndef ACPI_SINGLE_THREADED /****************************************************************************** * * FUNCTION: AcpiOsGetThreadId * * PARAMETERS: None * * RETURN: Id of the running thread * * DESCRIPTION: Get the Id of the current (running) thread * *****************************************************************************/ ACPI_THREAD_ID AcpiOsGetThreadId ( void) { DWORD ThreadId; /* Ensure ID is never 0 */ ThreadId = GetCurrentThreadId (); return ((ACPI_THREAD_ID) (ThreadId + 1)); } /****************************************************************************** * * FUNCTION: AcpiOsExecute * * PARAMETERS: Type - Type of execution * Function - Address of the function to execute * Context - Passed as a parameter to the function * * RETURN: Status * * DESCRIPTION: Execute a new thread * *****************************************************************************/ ACPI_STATUS AcpiOsExecute ( ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function, void *Context) { _beginthread (Function, (unsigned) 0, Context); return (0); } #else /* ACPI_SINGLE_THREADED */ ACPI_THREAD_ID AcpiOsGetThreadId ( void) { return (1); } ACPI_STATUS AcpiOsExecute ( ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function, void *Context) { Function (Context); return (AE_OK); } #endif /* ACPI_SINGLE_THREADED */ /****************************************************************************** * * FUNCTION: AcpiOsWaitEventsComplete * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Wait for all asynchronous events to complete. This * implementation does nothing. * *****************************************************************************/ void AcpiOsWaitEventsComplete ( void) { return; } acpica-unix-20250404/source/os_specific/service_layers/osgendbg.c0000775000175000017500000002320514773714133024305 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: osgendbg - Generic debugger command signalling * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acdebug.h" #define _COMPONENT ACPI_CA_DEBUGGER ACPI_MODULE_NAME ("osgendbg") /* Local prototypes */ static void AcpiDbRunRemoteDebugger ( char *BatchBuffer); static ACPI_MUTEX AcpiGbl_DbCommandReady; static ACPI_MUTEX AcpiGbl_DbCommandComplete; static BOOLEAN AcpiGbl_DbCommandSignalsInitialized = FALSE; /****************************************************************************** * * FUNCTION: AcpiDbRunRemoteDebugger * * PARAMETERS: BatchBuffer - Buffer containing commands running in * the batch mode * * RETURN: None * * DESCRIPTION: Run multi-threading debugger remotely * *****************************************************************************/ static void AcpiDbRunRemoteDebugger ( char *BatchBuffer) { ACPI_STATUS Status; char *Ptr = BatchBuffer; char *Cmd = Ptr; while (!AcpiGbl_DbTerminateLoop) { if (BatchBuffer) { if (*Ptr) { while (*Ptr) { if (*Ptr == ',') { /* Convert commas to spaces */ *Ptr = ' '; } else if (*Ptr == ';') { *Ptr = '\0'; continue; } Ptr++; } AcpiUtSafeStrncpy (AcpiGbl_DbLineBuf, Cmd, ACPI_DB_LINE_BUFFER_SIZE); Ptr++; Cmd = Ptr; } else { return; } } else { /* Force output to console until a command is entered */ AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); /* Different prompt if method is executing */ if (!AcpiGbl_MethodExecuting) { AcpiOsPrintf ("%1c ", ACPI_DEBUGGER_COMMAND_PROMPT); } else { AcpiOsPrintf ("%1c ", ACPI_DEBUGGER_EXECUTE_PROMPT); } /* Get the user input line */ Status = AcpiOsGetLine (AcpiGbl_DbLineBuf, ACPI_DB_LINE_BUFFER_SIZE, NULL); if (ACPI_FAILURE (Status)) { return; } } /* * Signal the debug thread that we have a command to execute, * and wait for the command to complete. */ AcpiOsReleaseMutex (AcpiGbl_DbCommandReady); Status = AcpiOsAcquireMutex (AcpiGbl_DbCommandComplete, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { return; } } } /****************************************************************************** * * FUNCTION: AcpiOsWaitCommandReady * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Negotiate with the debugger foreground thread (the user * thread) to wait the readiness of a command. * *****************************************************************************/ ACPI_STATUS AcpiOsWaitCommandReady ( void) { ACPI_STATUS Status = AE_OK; if (AcpiGbl_DebuggerConfiguration == DEBUGGER_MULTI_THREADED) { Status = AE_TIME; while (Status == AE_TIME) { if (AcpiGbl_DbTerminateLoop) { Status = AE_CTRL_TERMINATE; } else { Status = AcpiOsAcquireMutex (AcpiGbl_DbCommandReady, 1000); } } } else { /* Force output to console until a command is entered */ AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT); /* Different prompt if method is executing */ if (!AcpiGbl_MethodExecuting) { AcpiOsPrintf ("%1c ", ACPI_DEBUGGER_COMMAND_PROMPT); } else { AcpiOsPrintf ("%1c ", ACPI_DEBUGGER_EXECUTE_PROMPT); } /* Get the user input line */ Status = AcpiOsGetLine (AcpiGbl_DbLineBuf, ACPI_DB_LINE_BUFFER_SIZE, NULL); } if (ACPI_FAILURE (Status) && Status != AE_CTRL_TERMINATE) { ACPI_EXCEPTION ((AE_INFO, Status, "While parsing/handling command line")); } return (Status); } /****************************************************************************** * * FUNCTION: AcpiOsNotifyCommandComplete * * PARAMETERS: void * * RETURN: Status * * DESCRIPTION: Negotiate with the debugger foreground thread (the user * thread) to notify the completion of a command. * *****************************************************************************/ ACPI_STATUS AcpiOsNotifyCommandComplete ( void) { if (AcpiGbl_DebuggerConfiguration == DEBUGGER_MULTI_THREADED) { AcpiOsReleaseMutex (AcpiGbl_DbCommandComplete); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsInitializeDebugger * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize OSPM specific part of the debugger * *****************************************************************************/ ACPI_STATUS AcpiOsInitializeDebugger ( void) { ACPI_STATUS Status; /* Create command signals */ Status = AcpiOsCreateMutex (&AcpiGbl_DbCommandReady); if (ACPI_FAILURE (Status)) { return (Status); } Status = AcpiOsCreateMutex (&AcpiGbl_DbCommandComplete); if (ACPI_FAILURE (Status)) { goto ErrorReady; } /* Initialize the states of the command signals */ Status = AcpiOsAcquireMutex (AcpiGbl_DbCommandComplete, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { goto ErrorComplete; } Status = AcpiOsAcquireMutex (AcpiGbl_DbCommandReady, ACPI_WAIT_FOREVER); if (ACPI_FAILURE (Status)) { goto ErrorComplete; } AcpiGbl_DbCommandSignalsInitialized = TRUE; return (Status); ErrorComplete: AcpiOsDeleteMutex (AcpiGbl_DbCommandComplete); ErrorReady: AcpiOsDeleteMutex (AcpiGbl_DbCommandReady); return (Status); } /****************************************************************************** * * FUNCTION: AcpiOsTerminateDebugger * * PARAMETERS: None * * RETURN: None * * DESCRIPTION: Terminate signals used by the multi-threading debugger * *****************************************************************************/ void AcpiOsTerminateDebugger ( void) { if (AcpiGbl_DbCommandSignalsInitialized) { AcpiOsDeleteMutex (AcpiGbl_DbCommandReady); AcpiOsDeleteMutex (AcpiGbl_DbCommandComplete); } } /****************************************************************************** * * FUNCTION: AcpiRunDebugger * * PARAMETERS: BatchBuffer - Buffer containing commands running in * the batch mode * * RETURN: None * * DESCRIPTION: Run a local/remote debugger * *****************************************************************************/ void AcpiRunDebugger ( char *BatchBuffer) { /* Check for single or multithreaded debug */ if (AcpiGbl_DebuggerConfiguration & DEBUGGER_MULTI_THREADED) { AcpiDbRunRemoteDebugger (BatchBuffer); } else { AcpiDbUserCommands (); } } ACPI_EXPORT_SYMBOL (AcpiRunDebugger) acpica-unix-20250404/source/os_specific/service_layers/osbsdtbl.c0000775000175000017500000006155214773714133024340 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: osbsdtbl - BSD OSL for obtaining ACPI tables * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpidump.h" #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined (__DragonFly__) #include #endif #include #include #include #define _COMPONENT ACPI_OS_SERVICES ACPI_MODULE_NAME ("osbsdtbl") /* Local prototypes */ static ACPI_STATUS OslTableInitialize ( void); static ACPI_STATUS OslMapTable ( ACPI_SIZE Address, char *Signature, ACPI_TABLE_HEADER **Table); static ACPI_STATUS OslAddTablesToList ( void); static ACPI_STATUS OslGetTableViaRoot ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address); /* Hints for RSDP */ #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) #define SYSTEM_KENV "hint.acpi.0.rsdp" #define SYSTEM_SYSCTL "machdep.acpi_root" #elif defined(__NetBSD__) #define SYSTEM_SYSCTL "hw.acpi.root" #endif /* Initialization flags */ UINT8 Gbl_TableListInitialized = FALSE; UINT8 Gbl_MainTableObtained = FALSE; /* Local copies of main ACPI tables */ ACPI_TABLE_RSDP Gbl_Rsdp; ACPI_TABLE_FADT *Gbl_Fadt; ACPI_TABLE_RSDT *Gbl_Rsdt; ACPI_TABLE_XSDT *Gbl_Xsdt; /* Fadt address */ ACPI_PHYSICAL_ADDRESS Gbl_FadtAddress; /* Revision of RSD PTR */ UINT8 Gbl_Revision; /* List of information about obtained ACPI tables */ typedef struct table_info { struct table_info *Next; char Signature[4]; UINT32 Instance; ACPI_PHYSICAL_ADDRESS Address; } OSL_TABLE_INFO; OSL_TABLE_INFO *Gbl_TableListHead = NULL; /****************************************************************************** * * FUNCTION: AcpiOsGetTableByAddress * * PARAMETERS: Address - Physical address of the ACPI table * Table - Where a pointer to the table is returned * * RETURN: Status; Table buffer is returned if AE_OK. * AE_NOT_FOUND: A valid table was not found at the address * * DESCRIPTION: Get an ACPI table via a physical memory address. * *****************************************************************************/ ACPI_STATUS AcpiOsGetTableByAddress ( ACPI_PHYSICAL_ADDRESS Address, ACPI_TABLE_HEADER **Table) { ACPI_TABLE_HEADER *MappedTable; ACPI_TABLE_HEADER *LocalTable; ACPI_STATUS Status; /* Validate the input physical address to avoid program crash */ if (Address < ACPI_HI_RSDP_WINDOW_BASE) { fprintf (stderr, "Invalid table address: 0x%8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Address)); return (AE_BAD_ADDRESS); } /* Map the table and validate it */ Status = OslMapTable (Address, NULL, &MappedTable); if (ACPI_FAILURE (Status)) { return (Status); } /* Copy table to local buffer and return it */ LocalTable = calloc (1, MappedTable->Length); if (!LocalTable) { AcpiOsUnmapMemory (MappedTable, MappedTable->Length); return (AE_NO_MEMORY); } memcpy (LocalTable, MappedTable, MappedTable->Length); AcpiOsUnmapMemory (MappedTable, MappedTable->Length); *Table = LocalTable; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsGetTableByName * * PARAMETERS: Signature - ACPI Signature for desired table. Must be * a null terminated 4-character string. * Instance - Multiple table support for SSDT/UEFI (0...n) * Must be 0 for other tables. * Table - Where a pointer to the table is returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer and physical address returned if AE_OK. * AE_LIMIT: Instance is beyond valid limit * AE_NOT_FOUND: A table with the signature was not found * * NOTE: Assumes the input signature is uppercase. * *****************************************************************************/ ACPI_STATUS AcpiOsGetTableByName ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address) { ACPI_STATUS Status; /* Instance is only valid for SSDT/UEFI tables */ if (Instance && !ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_SSDT) && !ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_UEFI)) { return (AE_LIMIT); } /* Initialize main tables */ Status = OslTableInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* * If one of the main ACPI tables was requested (RSDT/XSDT/FADT), * simply return it immediately. */ if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_XSDT)) { if (!Gbl_Revision) { return (AE_NOT_FOUND); } *Address = Gbl_Rsdp.XsdtPhysicalAddress; *Table = (ACPI_TABLE_HEADER *) Gbl_Xsdt; return (AE_OK); } if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_RSDT)) { if (!Gbl_Rsdp.RsdtPhysicalAddress) { return (AE_NOT_FOUND); } *Address = Gbl_Rsdp.RsdtPhysicalAddress; *Table = (ACPI_TABLE_HEADER *) Gbl_Rsdt; return (AE_OK); } if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_FADT)) { *Address = Gbl_FadtAddress; *Table = (ACPI_TABLE_HEADER *) Gbl_Fadt; return (AE_OK); } /* Not a main ACPI table, attempt to extract it from the RSDT/XSDT */ Status = OslGetTableViaRoot (Signature, Instance, Table, Address); if (ACPI_FAILURE (Status)) { return (Status); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsGetTableByIndex * * PARAMETERS: Index - Which table to get * Table - Where a pointer to the table is returned * Instance - Where a pointer to the table instance no. is * returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer and physical address returned if AE_OK. * AE_LIMIT: Index is beyond valid limit * * DESCRIPTION: Get an ACPI table via an index value (0 through n). Returns * AE_LIMIT when an invalid index is reached. Index is not * necessarily an index into the RSDT/XSDT. * *****************************************************************************/ ACPI_STATUS AcpiOsGetTableByIndex ( UINT32 Index, ACPI_TABLE_HEADER **Table, UINT32 *Instance, ACPI_PHYSICAL_ADDRESS *Address) { OSL_TABLE_INFO *Info; ACPI_STATUS Status; UINT32 i; /* Initialize main tables */ Status = OslTableInitialize (); if (ACPI_FAILURE (Status)) { return (Status); } /* Add all tables to list */ Status = OslAddTablesToList (); if (ACPI_FAILURE (Status)) { return (Status); } /* Validate Index */ if (Index >= Gbl_TableListHead->Instance) { return (AE_LIMIT); } /* Point to the table list entry specified by the Index argument */ Info = Gbl_TableListHead; for (i = 0; i <= Index; i++) { Info = Info->Next; } /* Now we can just get the table via the address or name */ if (Info->Address) { Status = AcpiOsGetTableByAddress (Info->Address, Table); if (ACPI_SUCCESS (Status)) { *Address = Info->Address; } } else { Status = AcpiOsGetTableByName (Info->Signature, Info->Instance, Table, Address); } if (ACPI_SUCCESS (Status)) { *Instance = Info->Instance; } return (Status); } /****************************************************************************** * * FUNCTION: OslTableInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Initialize ACPI table data. Get and store main ACPI tables to * local variables. Main ACPI tables include RSDP, FADT, RSDT, * and/or XSDT. * *****************************************************************************/ static ACPI_STATUS OslTableInitialize ( void) { #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) char Buffer[32]; #endif ACPI_TABLE_HEADER *MappedTable; UINT8 *TableAddress; UINT8 *RsdpAddress; ACPI_PHYSICAL_ADDRESS RsdpBase; ACPI_SIZE RsdpSize; ACPI_STATUS Status; u_long Address = 0; #if defined(SYSTEM_SYSCTL) size_t Length = sizeof (Address); #endif /* Get main ACPI tables from memory on first invocation of this function */ if (Gbl_MainTableObtained) { return (AE_OK); } /* Attempt to use kenv or sysctl to find RSD PTR record. */ if (Gbl_RsdpBase) { Address = Gbl_RsdpBase; } #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined (__DragonFly__) else if (kenv (KENV_GET, SYSTEM_KENV, Buffer, sizeof (Buffer)) > 0) { Address = strtoul (Buffer, NULL, 0); } #endif #if defined(SYSTEM_SYSCTL) if (!Address) { if (sysctlbyname (SYSTEM_SYSCTL, &Address, &Length, NULL, 0) != 0) { Address = 0; } } #endif if (Address) { RsdpBase = Address; RsdpSize = sizeof (Gbl_Rsdp); } else { RsdpBase = ACPI_HI_RSDP_WINDOW_BASE; RsdpSize = ACPI_HI_RSDP_WINDOW_SIZE; } /* Get RSDP from memory */ RsdpAddress = AcpiOsMapMemory (RsdpBase, RsdpSize); if (!RsdpAddress) { return (AE_BAD_ADDRESS); } /* Search low memory for the RSDP */ TableAddress = AcpiTbScanMemoryForRsdp (RsdpAddress, RsdpSize); if (!TableAddress) { AcpiOsUnmapMemory (RsdpAddress, RsdpSize); return (AE_ERROR); } memcpy (&Gbl_Rsdp, TableAddress, sizeof (Gbl_Rsdp)); AcpiOsUnmapMemory (RsdpAddress, RsdpSize); /* Get XSDT from memory */ if (Gbl_Rsdp.Revision) { Status = OslMapTable (Gbl_Rsdp.XsdtPhysicalAddress, ACPI_SIG_XSDT, &MappedTable); if (ACPI_FAILURE (Status)) { return (Status); } Gbl_Revision = 2; Gbl_Xsdt = calloc (1, MappedTable->Length); if (!Gbl_Xsdt) { fprintf (stderr, "XSDT: Could not allocate buffer for table of length %X\n", MappedTable->Length); AcpiOsUnmapMemory (MappedTable, MappedTable->Length); return (AE_NO_MEMORY); } memcpy (Gbl_Xsdt, MappedTable, MappedTable->Length); AcpiOsUnmapMemory (MappedTable, MappedTable->Length); } /* Get RSDT from memory */ if (Gbl_Rsdp.RsdtPhysicalAddress) { Status = OslMapTable (Gbl_Rsdp.RsdtPhysicalAddress, ACPI_SIG_RSDT, &MappedTable); if (ACPI_FAILURE (Status)) { return (Status); } Gbl_Rsdt = calloc (1, MappedTable->Length); if (!Gbl_Rsdt) { fprintf (stderr, "RSDT: Could not allocate buffer for table of length %X\n", MappedTable->Length); AcpiOsUnmapMemory (MappedTable, MappedTable->Length); return (AE_NO_MEMORY); } memcpy (Gbl_Rsdt, MappedTable, MappedTable->Length); AcpiOsUnmapMemory (MappedTable, MappedTable->Length); } /* Get FADT from memory */ if (Gbl_Revision) { Gbl_FadtAddress = Gbl_Xsdt->TableOffsetEntry[0]; } else { Gbl_FadtAddress = Gbl_Rsdt->TableOffsetEntry[0]; } if (!Gbl_FadtAddress) { fprintf(stderr, "FADT: Table could not be found\n"); return (AE_ERROR); } Status = OslMapTable (Gbl_FadtAddress, ACPI_SIG_FADT, &MappedTable); if (ACPI_FAILURE (Status)) { return (Status); } Gbl_Fadt = calloc (1, MappedTable->Length); if (!Gbl_Fadt) { fprintf (stderr, "FADT: Could not allocate buffer for table of length %X\n", MappedTable->Length); AcpiOsUnmapMemory (MappedTable, MappedTable->Length); return (AE_NO_MEMORY); } memcpy (Gbl_Fadt, MappedTable, MappedTable->Length); AcpiOsUnmapMemory (MappedTable, MappedTable->Length); Gbl_MainTableObtained = TRUE; return (AE_OK); } /****************************************************************************** * * FUNCTION: OslGetTableViaRoot * * PARAMETERS: Signature - ACPI Signature for common table. Must be * a null terminated 4-character string. * Instance - Multiple table support for SSDT/UEFI (0...n) * Must be 0 for other tables. * Table - Where a pointer to the table is returned * Address - Where the table physical address is returned * * RETURN: Status; Table buffer and physical address returned if AE_OK. * AE_LIMIT: Instance is beyond valid limit * AE_NOT_FOUND: A table with the signature was not found * * DESCRIPTION: Get an ACPI table via the root table (RSDT/XSDT) * * NOTE: Assumes the input signature is uppercase. * *****************************************************************************/ static ACPI_STATUS OslGetTableViaRoot ( char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table, ACPI_PHYSICAL_ADDRESS *Address) { ACPI_TABLE_HEADER *LocalTable = NULL; ACPI_TABLE_HEADER *MappedTable = NULL; UINT8 NumberOfTables; UINT32 CurrentInstance = 0; ACPI_PHYSICAL_ADDRESS TableAddress = 0; ACPI_STATUS Status; UINT32 i; /* DSDT and FACS address must be extracted from the FADT */ if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_DSDT) || ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_FACS)) { /* * Get the appropriate address, either 32-bit or 64-bit. Be very * careful about the FADT length and validate table addresses. * Note: The 64-bit addresses have priority. */ if (ACPI_COMPARE_NAMESEG (Signature, ACPI_SIG_DSDT)) { if ((Gbl_Fadt->Header.Length >= MIN_FADT_FOR_XDSDT) && Gbl_Fadt->XDsdt) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Fadt->XDsdt; } else if ((Gbl_Fadt->Header.Length >= MIN_FADT_FOR_DSDT) && Gbl_Fadt->Dsdt) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Fadt->Dsdt; } } else /* FACS */ { if ((Gbl_Fadt->Header.Length >= MIN_FADT_FOR_XFACS) && Gbl_Fadt->XFacs) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Fadt->XFacs; } else if ((Gbl_Fadt->Header.Length >= MIN_FADT_FOR_FACS) && Gbl_Fadt->Facs) { TableAddress = (ACPI_PHYSICAL_ADDRESS) Gbl_Fadt->Facs; } } } else /* Case for a normal ACPI table */ { if (Gbl_Revision) { NumberOfTables = (Gbl_Xsdt->Header.Length - sizeof (Gbl_Xsdt->Header)) / sizeof (Gbl_Xsdt->TableOffsetEntry[0]); } else /* Use RSDT if XSDT is not available */ { NumberOfTables = (Gbl_Rsdt->Header.Length - sizeof (Gbl_Rsdt->Header)) / sizeof (Gbl_Rsdt->TableOffsetEntry[0]); } /* Search RSDT/XSDT for the requested table */ for (i = 0; i < NumberOfTables; i++) { if (Gbl_Revision) { TableAddress = Gbl_Xsdt->TableOffsetEntry[i]; } else { TableAddress = Gbl_Rsdt->TableOffsetEntry[i]; } MappedTable = AcpiOsMapMemory (TableAddress, sizeof (*MappedTable)); if (!MappedTable) { return (AE_BAD_ADDRESS); } /* Does this table match the requested signature? */ if (ACPI_COMPARE_NAMESEG (MappedTable->Signature, Signature)) { /* Match table instance (for SSDT/UEFI tables) */ if (CurrentInstance == Instance) { AcpiOsUnmapMemory (MappedTable, sizeof (*MappedTable)); break; } CurrentInstance++; } AcpiOsUnmapMemory (MappedTable, MappedTable->Length); TableAddress = 0; } } if (!TableAddress) { if (CurrentInstance) { return (AE_LIMIT); } return (AE_NOT_FOUND); } /* Now we can get the requested table */ Status = OslMapTable (TableAddress, Signature, &MappedTable); if (ACPI_FAILURE (Status)) { return (Status); } /* Copy table to local buffer and return it */ LocalTable = calloc (1, MappedTable->Length); if (!LocalTable) { AcpiOsUnmapMemory (MappedTable, MappedTable->Length); return (AE_NO_MEMORY); } memcpy (LocalTable, MappedTable, MappedTable->Length); AcpiOsUnmapMemory (MappedTable, MappedTable->Length); *Table = LocalTable; *Address = TableAddress; return (AE_OK); } /****************************************************************************** * * FUNCTION: OslAddTablesToList * * PARAMETERS: None * * RETURN: Status; Table list is initialized if AE_OK. * * DESCRIPTION: Add ACPI tables to the table list. * *****************************************************************************/ static ACPI_STATUS OslAddTablesToList( void) { ACPI_PHYSICAL_ADDRESS TableAddress; OSL_TABLE_INFO *Info = NULL; OSL_TABLE_INFO *NewInfo; ACPI_TABLE_HEADER *Table; UINT8 Instance; UINT8 NumberOfTables; int i; /* Initialize the table list on first invocation */ if (Gbl_TableListInitialized) { return (AE_OK); } /* Add mandatory tables to global table list first */ for (i = 0; i < 4; i++) { NewInfo = calloc (1, sizeof (*NewInfo)); if (!NewInfo) { return (AE_NO_MEMORY); } switch (i) { case 0: Gbl_TableListHead = Info = NewInfo; continue; case 1: ACPI_COPY_NAMESEG (NewInfo->Signature, Gbl_Revision ? ACPI_SIG_XSDT : ACPI_SIG_RSDT); break; case 2: ACPI_COPY_NAMESEG (NewInfo->Signature, ACPI_SIG_FACS); break; default: ACPI_COPY_NAMESEG (NewInfo->Signature, ACPI_SIG_DSDT); } Info->Next = NewInfo; Info = NewInfo; Gbl_TableListHead->Instance++; } /* Add normal tables from RSDT/XSDT to global list */ if (Gbl_Revision) { NumberOfTables = (Gbl_Xsdt->Header.Length - sizeof (Gbl_Xsdt->Header)) / sizeof (Gbl_Xsdt->TableOffsetEntry[0]); } else { NumberOfTables = (Gbl_Rsdt->Header.Length - sizeof (Gbl_Rsdt->Header)) / sizeof (Gbl_Rsdt->TableOffsetEntry[0]); } for (i = 0; i < NumberOfTables; i++) { if (Gbl_Revision) { TableAddress = Gbl_Xsdt->TableOffsetEntry[i]; } else { TableAddress = Gbl_Rsdt->TableOffsetEntry[i]; } Table = AcpiOsMapMemory (TableAddress, sizeof (*Table)); if (!Table) { return (AE_BAD_ADDRESS); } Instance = 0; NewInfo = Gbl_TableListHead; while (NewInfo->Next != NULL) { NewInfo = NewInfo->Next; if (ACPI_COMPARE_NAMESEG (Table->Signature, NewInfo->Signature)) { Instance++; } } NewInfo = calloc (1, sizeof (*NewInfo)); if (!NewInfo) { AcpiOsUnmapMemory (Table, sizeof (*Table)); return (AE_NO_MEMORY); } ACPI_COPY_NAMESEG (NewInfo->Signature, Table->Signature); AcpiOsUnmapMemory (Table, sizeof (*Table)); NewInfo->Instance = Instance; NewInfo->Address = TableAddress; Info->Next = NewInfo; Info = NewInfo; Gbl_TableListHead->Instance++; } Gbl_TableListInitialized = TRUE; return (AE_OK); } /****************************************************************************** * * FUNCTION: OslMapTable * * PARAMETERS: Address - Address of the table in memory * Signature - Optional ACPI Signature for desired table. * Null terminated 4-character string. * Table - Where a pointer to the mapped table is * returned * * RETURN: Status; Mapped table is returned if AE_OK. * * DESCRIPTION: Map entire ACPI table into caller's address space. Also * validates the table and checksum. * *****************************************************************************/ static ACPI_STATUS OslMapTable ( ACPI_SIZE Address, char *Signature, ACPI_TABLE_HEADER **Table) { ACPI_TABLE_HEADER *MappedTable; UINT32 Length; /* Map the header so we can get the table length */ MappedTable = AcpiOsMapMemory (Address, sizeof (*MappedTable)); if (!MappedTable) { return (AE_BAD_ADDRESS); } /* Check if table is valid */ if (!ApIsValidHeader (MappedTable)) { AcpiOsUnmapMemory (MappedTable, sizeof (*MappedTable)); return (AE_BAD_HEADER); } /* If specified, signature must match */ if (Signature && !ACPI_COMPARE_NAMESEG (Signature, MappedTable->Signature)) { AcpiOsUnmapMemory (MappedTable, sizeof (*MappedTable)); return (AE_NOT_EXIST); } /* Map the entire table */ Length = MappedTable->Length; AcpiOsUnmapMemory (MappedTable, sizeof (*MappedTable)); MappedTable = AcpiOsMapMemory (Address, Length); if (!MappedTable) { return (AE_BAD_ADDRESS); } (void) ApIsValidChecksum (MappedTable); *Table = MappedTable; return (AE_OK); } acpica-unix-20250404/source/os_specific/service_layers/oszephyr.c0000775000175000017500000006141514773714133024405 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: oszephyr - Zephyr OSL * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include "acpi.h" #include "accommon.h" #include "acapps.h" #include "aslcompiler.h" #include #include #include #include #include LOG_MODULE_DECLARE(acpica, LOG_LEVEL_ERR); typedef void (*zephyr_irq_t)(const void *); /* Global variables use from acpica lib. */ BOOLEAN AslGbl_DoTemplates = FALSE; BOOLEAN AslGbl_VerboseTemplates = FALSE; char AslGbl_MsgBuffer[ASL_MSG_BUFFER_SIZE]; static BOOLEAN EnDbgPrint; static ACPI_PHYSICAL_ADDRESS RsdpPhyAdd; /****************************************************************************** * * FUNCTION: AcpiOsReadable * * PARAMETERS: Pointer - Area to be verified * Length - Size of area * * RETURN: TRUE if readable for entire Length * * DESCRIPTION: Verify that a pointer is valid for reading * *****************************************************************************/ BOOLEAN AcpiOsReadable ( void *Pointer, ACPI_SIZE Length) { return (TRUE); } /****************************************************************************** * * FUNCTION: AcpiEnableDbgPrint * * PARAMETERS: en, - Enable/Disable debug print * * RETURN: None * * DESCRIPTION: Formatted output * *****************************************************************************/ void AcpiEnableDbgPrint ( bool Enable) { if (Enable) { EnDbgPrint = TRUE; } else { EnDbgPrint = FALSE; } } /****************************************************************************** * * FUNCTION: AcpiOsPrintf * * PARAMETERS: Fmt, ... - Standard printf format * * RETURN: None * * DESCRIPTION: Formatted output * *****************************************************************************/ void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf ( const char *Fmt, ...) { va_list args; va_start (args, Fmt); if (EnDbgPrint) { vprintk (Fmt, args); } va_end (args); } /****************************************************************************** * * FUNCTION: AcpiOsGetLine * * PARAMETERS: Buffer - Where to return the command line * BufferLength - Maximum Length of Buffer * BytesRead - Where the actual byte count is returned * * RETURN: Status and actual bytes read * * DESCRIPTION: Formatted input with argument list pointer * *****************************************************************************/ ACPI_STATUS AcpiOsGetLine ( char *Buffer, UINT32 BufferLength, UINT32 *BytesRead) { return (-1); } /****************************************************************************** * * FUNCTION: AcpiOsAllocate * * PARAMETERS: Size - Amount to allocate, in bytes * * RETURN: Pointer to the new allocation. Null on error. * * DESCRIPTION: Allocate memory. Algorithm is dependent on the OS. * *****************************************************************************/ void * AcpiOsAllocate ( ACPI_SIZE Size) { return (k_malloc (Size)); } #ifdef USE_NATIVE_ALLOCATE_ZEROED /****************************************************************************** * * FUNCTION: AcpiOsAllocateZeroed * * PARAMETERS: Size - Amount to allocate, in bytes * * RETURN: Pointer to the new allocation. Null on error. * * DESCRIPTION: Allocate and zero memory. Algorithm is dependent on the OS. * *****************************************************************************/ void * AcpiOsAllocateZeroed ( ACPI_SIZE Size) { void *mem; mem = AcpiOsAllocate (Size); if (mem) { memset (mem, 0, Size); } return (mem); } #endif /****************************************************************************** * * FUNCTION: AcpiOsFree * * PARAMETERS: Mem - Pointer to previously allocated memory * * RETURN: None. * * DESCRIPTION: Free memory allocated via AcpiOsAllocate * *****************************************************************************/ void AcpiOsFree ( void *Mem) { k_free (Mem); } /****************************************************************************** * * FUNCTION: AcpiOsReadMemory * * PARAMETERS: Address - Physical Memory Address to read * Value - Where Value is placed * Width - Number of bits (8,16,32, or 64) * * RETURN: Value read from physical memory Address. Always returned * as a 64-bit integer, regardless of the read Width. * * DESCRIPTION: Read data from a physical memory Address * *****************************************************************************/ ACPI_STATUS AcpiOsReadMemory ( ACPI_PHYSICAL_ADDRESS Address, UINT64 *Value, UINT32 Width) { switch (Width) { case 8: *((UINT8 *) Value) = sys_read8 (Address); break; case 16: *((UINT16 *) Value) = sys_read16 (Address); break; case 32: *((UINT32 *) Value) = sys_read32 (Address); break; #if defined(__x86_64__) case 64: *((UINT64 *) Value) = sys_read64 (Address); break; #endif default: return (AE_BAD_PARAMETER); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWriteMemory * * PARAMETERS: Address - Physical Memory Address to write * Value - Value to write * Width - Number of bits (8,16,32, or 64) * * RETURN: None * * DESCRIPTION: Write data to a physical memory Address * *****************************************************************************/ ACPI_STATUS AcpiOsWriteMemory ( ACPI_PHYSICAL_ADDRESS Address, UINT64 Value, UINT32 Width) { switch (Width) { case 8: sys_write8 ((UINT8) Value, Address); break; case 16: sys_write16 ((UINT16) Value, Address); break; case 32: sys_write32 ((UINT32) Value, Address); break; #if defined(__x86_64__) case 64: sys_write64 ((UINT64) Value, Address); break; #endif default: return (AE_BAD_PARAMETER); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsReadPort * * PARAMETERS: Address - Address of I/O port/register to read * Value - Where Value is placed * Width - Number of bits * * RETURN: Value read from port * * DESCRIPTION: Read data from an I/O port or register * *****************************************************************************/ ACPI_STATUS AcpiOsReadPort ( ACPI_IO_ADDRESS Address, UINT32 *Value, UINT32 Width) { switch (Width) { case 8: *((UINT8 *) Value) = sys_in8 (Address); break; case 16: *((UINT16 *) Value) = sys_in16 (Address); break; case 32: *((UINT32 *) Value) = sys_in32 (Address); break; case 64: *((UINT32 *) Value) = sys_in32 (Address); *((UINT32 *) Value + 4) = sys_in32 (Address + 4); break; default: return (AE_BAD_PARAMETER); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWritePort * * PARAMETERS: Address - Address of I/O port/register to write * Value - Value to write * Width - Number of bits * * RETURN: None * * DESCRIPTION: Write data to an I/O port or register * *****************************************************************************/ ACPI_STATUS AcpiOsWritePort ( ACPI_IO_ADDRESS Address, UINT32 Value, UINT32 Width) { switch (Width) { case 8: sys_out8 ((UINT8) Value, Address); break; case 16: sys_out16 ((UINT16) Value, Address); break; case 32: sys_out32 ((UINT32) Value, Address); break; case 64: sys_out32 ((UINT32) Value, Address); sys_out32 ((UINT32) (Value + 4), (Address + 4)); break; default: return (AE_BAD_PARAMETER); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsWritePciConfiguration * * PARAMETERS: PciId - Seg/Bus/Dev * Register - Device Register * Value - Value to be written * Width - Number of bits * * RETURN: Status * * DESCRIPTION: Write data to PCI configuration space * *****************************************************************************/ ACPI_STATUS AcpiOsWritePciConfiguration ( ACPI_PCI_ID *PciId, UINT32 Register, UINT64 Value, UINT32 Width) { UINT32 value32; pcie_bdf_t bdf = PCIE_BDF (PciId->Bus, PciId->Device, PciId->Function); switch (Width) { case 8: value32 = pcie_conf_read (bdf, Register); value32 = (value32 & 0xffffff00) | (UINT8) Value; pcie_conf_write (bdf, Register, value32); break; case 16: value32 = pcie_conf_read (bdf, Register); value32 = (value32 & 0xffff0000) | (UINT16) Value; pcie_conf_write (bdf, Register, value32); break; case 32: pcie_conf_write (bdf, Register, (UINT32) Value); break; case 64: pcie_conf_write (bdf, Register, (UINT32) Value); pcie_conf_write (bdf, (Register + 4), (UINT32) (Value >> 32)); break; default: return (AE_BAD_PARAMETER); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsReadPciConfiguration * * PARAMETERS: PciId - Seg/Bus/Dev * Register - Device Register * Value - Buffer Where Value is placed * Width - Number of bits * * RETURN: Status * * DESCRIPTION: Read data from PCI configuration space * *****************************************************************************/ ACPI_STATUS AcpiOsReadPciConfiguration ( ACPI_PCI_ID *PciId, UINT32 Register, UINT64 *Value, UINT32 Width) { pcie_bdf_t bdf = PCIE_BDF (PciId->Bus, PciId->Device, PciId->Function); switch (Width) { case 8: *((UINT8 *) Value) = (UINT8) pcie_conf_read (bdf, Register); break; case 16: *((UINT16 *) Value) = (UINT16) pcie_conf_read (bdf, Register); break; case 32: *((UINT32 *) Value) = (UINT32) pcie_conf_read (bdf, Register); break; case 64: *((UINT32 *) Value) = (UINT32) pcie_conf_read (bdf, Register); *((UINT32 *) Value + 1) = (UINT32) pcie_conf_read (bdf, (Register + 4)); break; default: return (AE_BAD_PARAMETER); } return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsRedirectOutput * * PARAMETERS: Destination - An open file handle/pointer * * RETURN: None * * DESCRIPTION: Causes redirect of AcpiOsPrintf and AcpiOsVprintf * *****************************************************************************/ void AcpiOsRedirectOutput ( void *Destination) { } /****************************************************************************** * * FUNCTION: AcpiOsPredefinedOverride * * PARAMETERS: InitVal - Initial Value of the predefined object * NewVal - The new Value for the object * * RETURN: Status, pointer to Value. Null pointer returned if not * overriding. * * DESCRIPTION: Allow the OS to override predefined names * *****************************************************************************/ ACPI_STATUS AcpiOsPredefinedOverride ( const ACPI_PREDEFINED_NAMES *InitVal, ACPI_STRING *NewVal) { if (!InitVal || !NewVal) { return (AE_BAD_PARAMETER); } *NewVal = NULL; return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsTableOverride * * PARAMETERS: ExistingTable - Header of current table (probably firmware) * NewTable - Where an entire new table is returned. * * RETURN: Status, pointer to new table. Null pointer returned if no * table is available to override * * DESCRIPTION: Return a different version of a table if one is available * *****************************************************************************/ ACPI_STATUS AcpiOsTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable) { if (!ExistingTable || !NewTable) { return (AE_BAD_PARAMETER); } *NewTable = NULL; return (AE_NO_ACPI_TABLES); } /****************************************************************************** * * FUNCTION: AcpiOsGetRootPointer * * PARAMETERS: None * * RETURN: RSDP physical Address * * DESCRIPTION: Gets the root pointer (RSDP) * *****************************************************************************/ ACPI_PHYSICAL_ADDRESS AcpiOsGetRootPointer ( void) { LOG_DBG (""); if(RsdpPhyAdd) { return RsdpPhyAdd; } RsdpPhyAdd = (ACPI_PHYSICAL_ADDRESS)acpi_rsdp_get(); return RsdpPhyAdd; } #ifndef ACPI_USE_NATIVE_MEMORY_MAPPING /****************************************************************************** * * FUNCTION: AcpiOsMapMemory * * PARAMETERS: Where - Physical Address of memory to be mapped * Length - How much memory to map * * RETURN: Pointer to mapped memory. Null on error. * * DESCRIPTION: Map physical memory into caller's Address space * *****************************************************************************/ void * AcpiOsMapMemory ( ACPI_PHYSICAL_ADDRESS Where, ACPI_SIZE Length) { uint8_t *VirtlAdd; LOG_DBG (""); z_phys_map (&VirtlAdd, Where, Length, K_MEM_PERM_RW); return ((void *) VirtlAdd); } #endif /****************************************************************************** * * FUNCTION: AcpiOsUnmapMemory * * PARAMETERS: Where - Logical Address of memory to be unmapped * Length - How much memory to unmap * * RETURN: None. * * DESCRIPTION: Delete a previously created mapping. Where and Length must * correspond to a previous mapping exactly. * *****************************************************************************/ void AcpiOsUnmapMemory ( void *Where, ACPI_SIZE Length) { LOG_DBG (""); z_phys_unmap (Where, Length); } /****************************************************************************** * * FUNCTION: AcpiOsPhysicalTableOverride * * PARAMETERS: ExistingTable - Header of current table (probably firmware) * NewAddress - Where new table Address is returned * (Physical Address) * NewTableLength - Where new table Length is returned * * RETURN: Status, Address/Length of new table. Null pointer returned * if no table is available to override. * * DESCRIPTION: Returns AE_SUPPORT, function not used in user space. * *****************************************************************************/ ACPI_STATUS AcpiOsPhysicalTableOverride ( ACPI_TABLE_HEADER *ExistingTable, ACPI_PHYSICAL_ADDRESS *NewAddress, UINT32 *NewTableLength) { LOG_DBG (""); return (AE_SUPPORT); } /****************************************************************************** * * FUNCTION: AcpiOsInitialize * * PARAMETERS: None * * RETURN: Status * * DESCRIPTION: Init this OSL * *****************************************************************************/ ACPI_STATUS AcpiOsInitialize ( void) { LOG_DBG (""); return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsStall * * PARAMETERS: Microseconds - Time to stall * * RETURN: None. Blocks until stall is completed. * * DESCRIPTION: Sleep at microsecond granularity * *****************************************************************************/ void AcpiOsStall ( UINT32 Microseconds) { k_busy_wait (Microseconds); } /****************************************************************************** * * FUNCTION: AcpiOsSleep * * PARAMETERS: Milliseconds - Time to sleep * * RETURN: None. Blocks until sleep is completed. * * DESCRIPTION: Sleep at millisecond granularity * *****************************************************************************/ void AcpiOsSleep ( UINT64 Milliseconds) { k_msleep ((UINT32) Milliseconds); } /****************************************************************************** * * FUNCTION: AcpiOsEnterSleep * * PARAMETERS: SleepState - Which sleep state to enter * RegaValue - Register A Value * RegbValue - Register B Value * * RETURN: Status * * DESCRIPTION: A hook before writing sleep registers to enter the sleep * state. Return AE_CTRL_SKIP to skip further sleep register * writes. * *****************************************************************************/ ACPI_STATUS AcpiOsEnterSleep ( UINT8 SleepState, UINT32 RegaValue, UINT32 RegbValue) { __ASSERT (FALSE, "function Not implemented"); return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsGetTimer * * PARAMETERS: None * * RETURN: Current ticks in 100-nanosecond units * * DESCRIPTION: Get the Value of a system timer * ******************************************************************************/ UINT64 AcpiOsGetTimer ( void) { return acpi_timer_get(); } /****************************************************************************** * * FUNCTION: AcpiOsInstallInterruptHandler * * PARAMETERS: InterruptNumber - Level handler should respond to. * ServiceRoutine - Address of the ACPI interrupt handler * Context - User context * * RETURN: Handle to the newly installed handler. * * DESCRIPTION: Install an interrupt handler. Used to install the ACPI * OS-independent handler. * *****************************************************************************/ UINT32 AcpiOsInstallInterruptHandler ( UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine, void *Context) { LOG_DBG (""); irq_connect_dynamic (InterruptNumber, 3, (zephyr_irq_t) ServiceRoutine, Context, IRQ_TYPE_LOWEST_LEVEL_LOW); irq_enable (InterruptNumber); return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsRemoveInterruptHandler * * PARAMETERS: Handle - Returned when handler was installed * * RETURN: Status * * DESCRIPTION: Uninstalls an interrupt handler. * *****************************************************************************/ ACPI_STATUS AcpiOsRemoveInterruptHandler ( UINT32 InterruptNumber, ACPI_OSD_HANDLER ServiceRoutine) { LOG_DBG (""); irq_disable (InterruptNumber); return (AE_OK); } /****************************************************************************** * * FUNCTION: AcpiOsSignal * * PARAMETERS: Function - ACPICA signal function code * Info - Pointer to function-dependent structure * * RETURN: Status * * DESCRIPTION: Miscellaneous functions. Example implementation only. * *****************************************************************************/ ACPI_STATUS AcpiOsSignal ( UINT32 Function, void *Info) { switch (Function) { case ACPI_SIGNAL_FATAL: LOG_DBG ("ACPI_SIGNAL_FATAL error"); break; case ACPI_SIGNAL_BREAKPOINT: LOG_DBG ("ACPI_SIGNAL_BREAKPOINT"); break; default: break; } return (AE_OK); } /****************************************************************************** * * FUNCTION: Spinlock/Semaphore interfaces * * DESCRIPTION: Map these interfaces to semaphore interfaces * *****************************************************************************/ #ifdef ACPI_SINGLE_THREADED ACPI_STATUS AcpiOsCreateLock ( ACPI_SPINLOCK *OutHandle) { LOG_DBG (""); return (AE_OK); } void AcpiOsDeleteLock ( ACPI_SPINLOCK Handle) { LOG_DBG (""); } ACPI_CPU_FLAGS AcpiOsAcquireLock ( ACPI_SPINLOCK Handle) { LOG_DBG (""); return (0); } void AcpiOsReleaseLock ( ACPI_SPINLOCK Handle, ACPI_CPU_FLAGS Flags) { LOG_DBG (""); } ACPI_STATUS AcpiOsCreateSemaphore ( UINT32 MaxUnits, UINT32 InitialUnits, ACPI_HANDLE *OutHandle) { *OutHandle = (ACPI_HANDLE) 1; return (AE_OK); } ACPI_STATUS AcpiOsDeleteSemaphore ( ACPI_HANDLE Handle) { return (AE_OK); } ACPI_STATUS AcpiOsWaitSemaphore ( ACPI_HANDLE Handle, UINT32 Units, UINT16 Timeout) { return (AE_OK); } ACPI_STATUS AcpiOsSignalSemaphore ( ACPI_HANDLE Handle, UINT32 Units) { return (AE_OK); } ACPI_THREAD_ID AcpiOsGetThreadId ( void) { LOG_DBG (""); return (1); } ACPI_STATUS AcpiOsExecute ( ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function, void *Context) { Function (Context); return (AE_OK); } #endif acpica-unix-20250404/source/os_specific/service_layers/oswindir.c0000775000175000017500000001663714773714133024366 0ustar ivanhuivanhu/****************************************************************************** * * Module Name: oswindir - Windows directory access interfaces * *****************************************************************************/ /* * Copyright (C) 2000 - 2025, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #include #include #include #include #include typedef struct ExternalFindInfo { struct _finddata_t DosInfo; char *FullWildcardSpec; long FindHandle; char State; char RequestedFileType; } EXTERNAL_FIND_INFO; /******************************************************************************* * * FUNCTION: AcpiOsOpenDirectory * * PARAMETERS: DirPathname - Full pathname to the directory * WildcardSpec - string of the form "*.c", etc. * RequestedFileType - Either a directory or normal file * * RETURN: A directory "handle" to be used in subsequent search operations. * NULL returned on failure. * * DESCRIPTION: Open a directory in preparation for a wildcard search * ******************************************************************************/ void * AcpiOsOpenDirectory ( char *DirPathname, char *WildcardSpec, char RequestedFileType) { long FindHandle; char *FullWildcardSpec; EXTERNAL_FIND_INFO *SearchInfo; /* No directory path means "use current directory" - use a dot */ if (!DirPathname || strlen (DirPathname) == 0) { DirPathname = "."; } /* Allocate the info struct that will be returned to the caller */ SearchInfo = calloc (sizeof (EXTERNAL_FIND_INFO), 1); if (!SearchInfo) { return (NULL); } /* Allocate space for the full wildcard path */ FullWildcardSpec = calloc ( strlen (DirPathname) + strlen (WildcardSpec) + 2, 1); if (!FullWildcardSpec) { printf ("Could not allocate buffer for wildcard pathname\n"); free (SearchInfo); return (NULL); } /* Create the full wildcard path */ strcpy (FullWildcardSpec, DirPathname); strcat (FullWildcardSpec, "/"); strcat (FullWildcardSpec, WildcardSpec); /* Initialize the find functions, get first match */ FindHandle = _findfirst (FullWildcardSpec, &SearchInfo->DosInfo); if (FindHandle == -1) { /* Failure means that no match was found */ free (FullWildcardSpec); free (SearchInfo); return (NULL); } /* Save the info in the return structure */ SearchInfo->RequestedFileType = RequestedFileType; SearchInfo->FullWildcardSpec = FullWildcardSpec; SearchInfo->FindHandle = FindHandle; SearchInfo->State = 0; return (SearchInfo); } /******************************************************************************* * * FUNCTION: AcpiOsGetNextFilename * * PARAMETERS: DirHandle - Created via AcpiOsOpenDirectory * * RETURN: Next filename matched. NULL if no more matches. * * DESCRIPTION: Get the next file in the directory that matches the wildcard * specification. * ******************************************************************************/ char * AcpiOsGetNextFilename ( void *DirHandle) { EXTERNAL_FIND_INFO *SearchInfo = DirHandle; int Status; char FileTypeNotMatched = 1; /* * Loop while we have matched files but not found any files of * the requested type. */ while (FileTypeNotMatched) { /* On the first call, we already have the first match */ if (SearchInfo->State == 0) { /* No longer the first match */ SearchInfo->State = 1; } else { /* Get the next match */ Status = _findnext (SearchInfo->FindHandle, &SearchInfo->DosInfo); if (Status != 0) { return (NULL); } } /* * Found a match, now check to make sure that the file type * matches the requested file type (directory or normal file) * * NOTE: use of the attrib field saves us from doing a very * expensive stat() on the file! */ switch (SearchInfo->RequestedFileType) { case REQUEST_FILE_ONLY: /* Anything other than A_SUBDIR is OK */ if (!(SearchInfo->DosInfo.attrib & _A_SUBDIR)) { FileTypeNotMatched = 0; } break; case REQUEST_DIR_ONLY: /* Must have A_SUBDIR bit set */ if (SearchInfo->DosInfo.attrib & _A_SUBDIR) { FileTypeNotMatched = 0; } break; default: return (NULL); } } return (SearchInfo->DosInfo.name); } /******************************************************************************* * * FUNCTION: AcpiOsCloseDirectory * * PARAMETERS: DirHandle - Created via AcpiOsOpenDirectory * * RETURN: None * * DESCRIPTION: Close the open directory and cleanup. * ******************************************************************************/ void AcpiOsCloseDirectory ( void *DirHandle) { EXTERNAL_FIND_INFO *SearchInfo = DirHandle; /* Close the directory and free allocations */ _findclose (SearchInfo->FindHandle); free (SearchInfo->FullWildcardSpec); free (DirHandle); } acpica-unix-20250404/changes.txt0000775000175000017500000277026314773714131015732 0ustar ivanhuivanhu---------------------------------------- 4 April 2025. Summary of changes for version 20250404: Major changes: Update all the copyright continuation year to 2025 in the license header of all files Add complete support for 3 new ACPI tables ? MRRM,ERDT and RIMT (Tony Luck & V L Sunil) Add a license file to the project which is a great improvement (Dionna Glaze) Update DMAR and TPM2 tables to support their latest versions (Alexey Neyman and Stuart Yoder) A few fixes including local cache allocation, FFixedHW Region, attribute packing, string vs. non-string char array, vsnprintf()etc. along with some comments, spelling errors and code alignment (multiple awesome contributors) ---------------------------------------- 12 December 2024. Summary of changes for version 20241212: Major changes: Fix 2 critical CVE addressing memory leaks - Seunghun Han EINJ V2 updates ? Zaid Alali (Ampere Computing) CDAT updates ? Ira Weiny (Intel Corporation) Fix mutex handling, don?t release ones that were never acquired ? Daniil Tatianin Experiment with new tag name format Ryyyy_mm_dd to solve chronological sorting problems ---------------------------------------- 27 September 2024. Summary of changes for version 20240927: Major changes: Fix the acpixf.h file which caused issues for the last release (before this) 20240827 Fix the pointer offset for the SLIC table Verify the local environment and GitHub commits are all in sync which was a problem with the second from last release (before this)20240322 (aka 20240323 – date issue) ---------------------------------------- 27 August 2024. Summary of changes for version 20240827: Major changes: Fix the PHAT table working: ensure that the PHAT firmware health record offset works correctly, fix various sub-table offsets, prevent segmentation faults when encountering invalid device paths. Contributed by: Armin Wolf Fix the optional table 4-byte signature. Contributed by: Daniil Tatianin <99danilt@gmail.com> Correct the dumping of SLIC and DBG2 tables. Contributed by: Al Stone (Fedora) Add support for QWordPCC and DWordPCC by Jose Marinho (ARM) Fix the integer to hex string conversions by Armin Wolf Detecting FACS in reduced HW mode and allowing setting waking vector thereby waking up from S3 state Fixing issues with crossing page boundaries when mapping operation regions by Raju Rangoju, Sanath S and Mario Limonciello (AMD) Update the support for IORT, HMAT, MPAM, AEST, CEDT, SPCR etc. tables Fix multiple issues with table parsing, compilation and disassembly by Myra DeMere (Google) Allow for more flexibility in _DSM usage. ---------------------------------------- 22 March 2024. Summary of changes for version 20240322: Major changes: Update all the license header year from 2023 to 2024. Fix table argument ordering to work properly with iasl. Get rid of the annoying repeated warning types in MSVC and Windows. Fix a test in ASLTS with edge case failure. Fix a couple of issues with how GPEs are counted and enabled. Add new tables for various architectures/OS, mainly RISC-V and also update many more. Add an option to either make the output deterministic or non-deterministic. Remove redundant checks, duplicated code and fix spellings in various files. Fix flex arrays for C++ compilers and also make ACPICA overall more compatible with different compilers which throw warnings related to memory sanitization etc. ---------------------------------------- 28 June 2023. Summary of changes for version 20230628: 0) Global changes: Fixed a problem with the ASL/AML Timer() operator. Discovered by UBSAN: ?array-index-out-of-bounds in acpica/dswexec.c:401:12 index -1 is out of range for type 'acpi_operand_object?. Added AML_NO_OPERAND_RESOLVE flag to Timer (since there are no runtime arguments). Reported by: Abhishek Mainkar abmainkar@nvidia.com. Added a define for size of acpi_srat_generic_affinity DeviceHandle. Replaced a magic number with a define. The Linux kernel code will utilize this. Reported by Dave Jiang dave.jiang@intel.com. Added support for _DSC (Deepest State for Configuration) as per ACPI 6.5. 1) ACPICA kernel-resident subsystem: Added port definitions for CDAT SSLBIS. Add upstream port and any port definitions for SSLBIS. Reported by: Dave Jiang dave.jiang@intel.com. Fixed misspelled CDAT DSMAS define: ACPI_CEDT_DSMAS_NON_VOLATILE -> ACPI_CDAT_DSMAS_NON_VOLATILE. Reported by: Dave Jiang dave.jiang@intel.com. 1) ACPICA kernel-resident subsystem: Fix GCC 12 dangling-pointer warning. We're storing a persistent pointer to an ephemeral local variable which technically is a dangling pointer and the compiler is correct. However, since we never indirect the pointer, this is a safe operation and we can suppress the warning. Also, some C run-times (like MUSL) aren't including indirectly so we must include it explicitly or we won't have the type definition for uintptr_t. 2) iASL Compiler/Disassembler and ACPICA tools:. IASL/RHCT: Enable dumping and compiling newly added nodes. The RHCT table is updated with new nodes. Add compile and dump functionality for these new structures. AcpiExec: Added a new command, ?interrupt?. The Interrupt command simulates an interrupt with a IntID (GSIV) equal to the first argument of the call/invocation. The acpiexec code simulates the behavior by OSPM: execute the _EVT method of the GED device associated with that IntID. Submitted by: Jose Marinho jose.marinho@arm.com. AcpiExec: Detect GED device and keep track of _EVT. The GED device is described by a _HID of ACPI0013. This code traverses the namespace identifying all GED devices. For each GED device in the namespace we record the Interrupt object and the _EVT method. This information is used when an interrupt is simulated via the ?interrupt? command. Submitted by: Jose Marinho jose.marinho@arm.com. ---------------------------------------- 31 March 2023. Summary of changes for version 20230331: This release is available at https://acpica.org/downloads 0) Global changes: Update all copyright notices to the year 2023. This effects all source modules, as well as utility signons. Add OS-specific support for Zephyr RTOS. Fix miscellaneous code that accesses various objects. Remove some dead code. Add C ?Flexible Array? support. Add support for 64 bit LoongArch compilation. Add first batch of RISC-V related definitions. Performed a global automated update to remove tabs, fix indentation issues, etc. 1) ACPICA kernel-resident subsystem: hwvalid: Drop port I/O validation. 2) ACPICA tools and utilities: iASL: Added full macro support in the preprocessor. Example: #define ABCD(a,b,c,d) a+b+c-d Known macro support limitations (at this time): No support for multi-line #define macros (backslash continuation lines) No support for the C-style ternary operator No support for the stringizing operator (#) No support for the concatenation (token pasting) operator (##) No support for variable number of macro arguments Add support for AMD Secure Processor Table (ASPT) version 1. Add support for Arm's MPAM ACPI table version 2. ACPI 6.5: MADT: add support for trace buffer extension in GICC. Headers: Delete bogus NodeArray array of pointers from AEST table. PHAT table support is still ongoing. ---------------------------------------- 20 October 2022. Summary of changes for version 20221020: This release is available at https://acpica.org/downloads 0) Global changes: Allow disabling of -Werror. For distro maintainers having `-Werror` can delay update of GCC. Since every GCC release might add new warnings that were not yet captured, it might break the build of packages. With this change, distros can now build with `NOWERROR=TRUE` instead of patching either the errors or the makefiles. The default behavior keeps on using `-Werror`. 1) ACPICA kernel-resident subsystem: Added support for FFH Operation Region special context data. FFH(Fixed Function Hardware) Opregion is approved to be added in ACPI 6.5 via code first approach[1]. It requires special context data similar to GPIO and Generic Serial Bus as it needs to know platform specific offset and length. Reverted this commit "executer/exsystem: Warn about sleeps greater than 10 ms." Due to user complaints about valid sleeps greater than 10ms seen in some existing machines -- generating lots of warnings. Do not touch VGA memory when EBDA < 1KiB. The ACPICA code assumes that EBDA region must be at least 1KiB in size. Because this is not guaranteed, it might happen that while scanning the memory for RSDP pointer, the kernel touches memory above 640KiB. This is unwanted as the VGA memory range may not be decoded or even present when running under virtualization. Check that EBDA pointer is in valid memory. If the memory at 0x40e is uninitialized, the retrieved physical memory address of EBDA may be beyond the low memory (i.e. above 640K). If so, the kernel may unintentionally access the VGA memory, that might not be decoded or even present in case of virtualization. 2) iASL Compiler/Disassembler and ACPICA tools: Completed the existing partial support for the CDAT "table". Although this isn't technically an ACPI table (It doesn't go into the XSDT), it is possible to support this table in the Data Table compiler. Created one new file, "utilities/utcksum.c", used to centralize checksum generation/validation into one location. Includes changes to makefiles and MSVC project files. Updated support for the IORT table - update to version E.e Added CXL 3.0 structures (CXIMS & RDPAS) to the CEDT table iASL: Added CCEL table to both compiler/disassembler. iASL: NHLT table: Fixed compilation of optional undocumented fields iASL: Fix iASL compile error due to ACPI_TDEL_OFFSET. Commit # 10e4763 ("iASL: Add CCEL table to both compiler/disassembler") introduced the iASL build issue. The issue is due to using ACPI_TDEL_OFFSET for CCEL table member reference. To fix it, change ACPI_TDEL_OFFSET with ACPI_CCEL_OFFSET. ---------------------------------------- 31 March 2022. Summary of changes for version 20220331: 0) Global changes: Update all copyright notices to the year 2022. This effects all source modules, as well as utility signons. 1) ACPICA kernel-resident subsystem: For the ASL Sleep() operator, issue a warning if the sleep value is greater than 10 Milliseconds. Quick boottime is important, so warn about sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350 ms, so excessive delays should be called out. 10 ms is chosen randomly, but three of such delays would already make up ten percent of the boottime. Namespace: Avoid attempting to walk the Namespace if the Namespace does not exist. AML interpreter/iASL compiler: Add new Acpi 6.4 semantics for the LoadTable and Load operators. DDB_HANDLE is gone, now loadtable returns a pass/fail integer. Now load returns a pass/fail integer, as well as storing the return value in an optional 2nd argument. Headers: Use uintptr_t and offsetof() in Linux kernel builds. To avoid "performing pointer subtraction with a null pointer has undefined behavior" compiler warnings, use uintptr_t and offsetof() that are always available during Linux kernel builds to define ACPI_UINTPTR_T and the ACPI_TO_INTEGER() and ACPI_OFFSET() macros when building the ACPICA code in the Linux kernel. Added support for the Windows 11 _OSI string ("Windows 2021"). Submitted by superm1. executer/exsystem: Inform users about ACPI spec violation for the Stall() operator. Values greater than 100 microseconds violate the ACPI specification, so warn users about it. From the ACPI Specification version 6.2 Errata A, 19.6.128 *Stall (Stall for a Short Time)*: > The implementation of Stall is OS-specific, but must not relinquish > control of the processor. Because of this, delays longer than 100 > microseconds must use Sleep instead of Stall. 2) iASL Compiler/Disassembler and ACPICA tools: Data Table Compiler/Disassembler: Add support for the APMT table - ARM Performance Monitoring Unit table. Submitted by @bwicaksononv. Data Table Compiler/Disassembler: For MADT, add support for the OEM- defined subtables (Types 0x80-0x7F). Data Table Compiler: Fixed a problem with support for the SDEV table, where a subtable Length was not computed correctly. Data Table Compiler/Disassembler: Add/fix the CFMWS subtable to the CEDT Acpi table support. Data Table Compiler/Disassembler: Fix a compile issue with the CEDT and add template. Submitted by MasterDrogo. Data Table Compiler/Disassembler: NHLT Changes provided by Piotr Maziarz: iASL/NHLT: Rename linux specific structures to DeviceInfo to improve readability of the code. iASL/NHLT: Fix parsing undocumented bytes at the end of Endpoint. Undocumented bytes at the end of Endpoint Descriptor can be present independently of Linux-specific structures. Their size can also vary. iASL/NHLT: Treat TableTerminator as SpecificConfig. SpecificConfig has 4 bytes of size and then an amount of bytes specified by size. All of the terminators that I've seen had a size equal to 4, but theoretically it can vary. iASL/AcpiExec: Use _exit instead of exit in signal handers (ctrl-C). iASL: Remove a remark due to excessive output. Removed a remark for duplicate Offset() operators, due to a user complaint. ---------------------------------------- 17 December 2021. Summary of changes for version 20211217: 1) ACPICA kernel-resident subsystem: Hardware: Do not flush CPU cache when entering S4 and S5. According to ACPI 6.4, Section 16.2, the CPU cache flushing is required on entering to S1, S2, and S3, but the ACPICA code flushes the CPU cache regardless of the sleep state. Blind cache flush on entering S5 causes problems for TDX. Avoid subobject buffer overflow when validating RSDP signature. Since the Signature member is accessed through an ACPI_TABLE_HEADER, the pointer to it is only to a 4-char array, and so trying to read past the 4th character, as will be done when it is an RSDP, reads beyond the bounds of the accessed member. Contributed by jrtc27. Add support for PCC Opregion special context data. PCC Opregion added in ACPIC 6.3 requires special context data similar to GPIO and Generic Serial Bus as it needs to know the internal PCC buffer and its length as well as the PCC channel index when the opregion handler is being executed by the OSPM. Adds support for the special context data needed by PCC Opregion. Submitted by Sudeep Holla 2) iASL Compiler/Disassembler and ACPICA tools: iASL: Completed compiler support for the NHLT ACPI table. iASL/NHLT table: Fixed a reported problem where a fault would occur during disassembly of a "Linux-Specific" section if the "Specific Data" part was not present. iASL: Added full support (compiler and disassembler) for the AGDI ACPI table. Contributed by: Ilkka Koskinen . iASL: Added full support for the TDEL ACPI table. iASL table compiler: FADT support updates: 1) Allow the 32-bit DSDT address to be zero. 2) Issue error if both the 32-bit and 64-bit DSDT addresses are zero. iASL: Fix unaligned accesses to local cache allocations. Contributed by jrtc27. iASL: Open binary input files in binary mode, not text mode Affects binary input AML files, as well as binary data table files, for disassembly. ---------------------------------------- 30 September 2021. Summary of changes for version 20210930: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: Hardware: Avoid evaluating methods too early during system resume. During wakeup from system-wide sleep states, AcpiGetSleepTypeData() is called and it tries to get memory from the OS in order to evaluate a control method, but if KFENCE is enabled in the Linux kernel, the memory allocation attempt causes an IRQ work to be queued and a self-IPI to be sent to the CPU running the code which requires the memory controller to be ready, so if that happens too early in the wakeup path, it doesn't work. Prevent that from taking place by calling AcpiGetSleepTypeData() for S0 upfront, when preparing to enter a given sleep state, and saving the data obtained by it for later use during system wakeup. Added a new _OSI string, "Windows 2020". Posted by superm1. 2) iASL Compiler/Disassembler and ACPICA tools: iASL compiler: Updated the check for usage of _CRS, _DIS, _PRS, and _SRS objects: New/latest rules: Under a Device Object: 1) If _PRS is present, must have _CRS and _SRS 2) If _SRS is present, must have _PRS (_PRS requires _CRS and _SRS) 3) If _DIS is present, must have _SRS (_SRS requires _PRS, _PRS requires _CRS and _SRS) 4) If _SRS is present, probably should have a _DIS (Remark only) iASL table disassembler: Added disassembly support for the NHLT ACPI table. Note: support for Vendor-defined microphone arrays and SNR extensions are not supported at this time -- mostly due to a lack of example tables. Actual compiler support for NHLT is forthcoming. Added a new subtable type for ACPI 6.4 SRAT Generic Port Affinity. It uses the same subtable structure as the existing Generic Initiator Affinity type. Added the flag for online capable in the MADT, introduced in ACPI 6.3. Posted by superm1. 3) ACPICA documentation: Updated the legal info (that appears at the start of the Documents) to clarify distribution rights that are granted. ---------------------------------------- 30 July 2021. Summary of changes for version 20210730: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: 2) iASL Compiler/Disassembler and ACPICA tools: iasl: Check usage of _CRS, _DIS, _PRS, and _SRS objects (July 2021). Under the Device Object: 1) If _DIS is present, must have a _CRS and _SRS 2) If _PRS is present, must have a _CRS, _DIS, and _SRS 3) If _SRS is present, must have a _CRS and _DIS A warning will be issued for each of these cases. Note: For existing ASL/projects, these warnings may be disabled by specifying this on the command line: "-vw 3141" iASL Table Disassembler/Table compiler: Fix for WPBT table with no command-line arguments. Handle the case where the Command-line Arguments table field does not exist (zero). Headers: Add new DBG2 Serial Port Subtypes The Microsoft Debug Port Table 2 (DBG2) specification revision September 21, 2020 comprises additional Serial Port Subtypes [1]. Reflect that in the actbl1.h header file. Submitted by: semihalf-wojtas-marcin iASL: Add full support for the AEST table (data compiler) Includes support in the table compiler and the disassembler. Add PRMT module header to facilitate parsing. This structure is used in to parse PRMT in other Operating Systems that relies on using subtable headers in order to parse ACPI tables. Although the PRMT doesn't have "subtables" it has a list of module information structures that act as subtables. iASL: Table disassembler: Add missing strings to decode subtable types. Includes the MADT and CEDT tables. ---------------------------------------- 04 June 2021. Summary of changes for version 20210604: 1) ACPICA kernel-resident subsystem: Cleaned up (delete) the context mutex during local address handler object deletion. Fixed a memory leak caused by the _CID repair function. Added support for PlatformRtMechanism OperationRegion handler. Adds a new utility function, AcpiUtConvertUuidToString. Writing a buffer to a PlatformRtMechanism fieldunit invokes a bidirectional transaction. The input buffer contains 26 bytes containing 9 bytes of status, a command byte and a 16-byte UUID. This change will simply pass this incoming buffer to a handler registered by the OS. 2) iASL Compiler/Disassembler and ACPICA tools: Added full support for the PRMT ACPI table (Platform Runtime Mechanism Table). Includes support in the iASL compiler, the disassembler, and the template generator. Added full support for the BDAT (BIOS Data ACPI Table) ACPI table. Added full support for the RGRT (Regulatory Graphics Resource Table) ACPI table. Added full support for the SVKL (Storage Volume Key Location Table) ACPI table. Header file support from Kuppuswamy Sathyanarayanan . Completed full support for the IVRS (I/O Virtualization Reporting Structure) ACPI table. Added compiler support for IVRS, updated disassembler support. Adds a new utility, UtIsIdInteger, to determine if a HID/CID is an integer or a string. Headers: Added more structs to the CEDT table: CXL fixed memory window structure. ACPI 6.4: MADT: added Multiprocessor Wakeup Mailbox Structure. ---------------------------------------- 31 March 2021. Summary of changes for version 20210331: This release is available at https://acpica.org/downloads, and includes all ACPI 6.4 support 1) ACPICA kernel-resident subsystem: ACPI 6.4: iASL: deprecate DDBHandleObj keyword Always create namespace nodes using AcpiNsCreateNode(). ACPICA is allocating an object using kmalloc(), but then frees it using kmem_cache_free(<"Acpi-Namespace" kmem_cache>). This is wrong. Fixed a race condition in generic serial bus operation region handler. Fixed by Hans de Goede. 2) iASL Compiler/Disassembler and ACPICA tools: ACPI 6.4: NFIT: add Location Cookie field ACPI 6.4: HMAT: add new fields/flags ACPI 6.4: Add new flags in SRAT ACPI 6.4: add SDEV secure access components ACPI 6.4: add Csi2Bus resource template ACPI 6.4: add support for PHAT table ACPI 6.4: add support for PMTT table Add disassembly support for the IVRS table. Compilation of the table is not yet complete. Fixed a potential infinite loop due to type mismatch. The for-loop is using a UINT8 counter and comparing the upper limit against a UINT32 AslGbl_ExpectedMessagesIndex maximum. In the case where AslGbl_ExpectedMessagesIndex is > 255 the counter i will wrap around to zero and the loop will never exit. I suspect the AslGbl_ExpectedMessagesIndex is never that high, but fixing this does future proof the code and cleans up static analysis warnings.Colin King. iASL/TableCompiler: update it with IORT table E.b revision changes. From shamiali2008. iASL/TableCompiler: Add compilation support for the VIOT table. Signed- off-by: Jean-Philippe Brucker. iASL/TableCompiler: Add compilation support for CEDT table. Also, update the CEDT template. ---------------------------------------- 05 January 2021. Summary of changes for version 20210105: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: Updated all copyrights to 2021. This affects all ACPICA source code modules. 2) iASL Compiler/Disassembler and ACPICA tools: ASL test suite (ASLTS): Updated all copyrights to 2021. Tools and utilities: Updated all signon copyrights to 2021. iASL Table Compiler: Removed support for obsolete ACPI tables: VRTC, MTMR. Al Stone. ---------------------------------------- 17 December 2020. Summary of changes for version 20201217: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: Note: The implementation of ACPI 6.4 is underway, and is expected to be mostly finished next month, when ACPI 6.4 is released. From qzed:- fixed-ae-class-macros. Fix exception code class checks. Added several new macros, such as ACPI_CNTL_EXCEPTION(Status) in order to enable this. AcpiExec/iASL/AcpiHelp: Added a few changes for support of GCC 10.2.0. These included a few casts, as well as a null pointer check. Fix -Wfallthrough: GCC 7.1 gained -Wimplicit-fallthrough to warn on implicit fallthrough, as well as __attribute__((__fallthrough__)) and comments to explicitly denote that cases of fallthrough were intentional. Clang also supports this warning and statement attribute, but not the comment form. Added a new macro, ACPI_FALLTHROUGH to support this feature of GCC. With assistance from @nickdesaulniers. 2) iASL Compiler/Disassembler and ACPICA tools: Added improvement to method call analysis by saving the return type and relaxing certain cases of type checking. iASL Table Compiler: Improved info messages. Added a message to the -T option for when the default template (DSDT) is used. Also added a note for when multiple SSDTs are created with a DSDT that the SSDTs are created in the same file as the DSDT. ---------------------------------------- 13 November 2020. Summary of changes for version 20201113: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: Interpreter: fixed a memory leak by using use existing buffer in _HID repair. There was a memory leak that occurred when a _CID object is defined as a package containing string objects. When _CID is checked for any possible repairs, it calls a helper function to repair _HID (because _CID basically contains multiple _HID entries). The _HID repair function assumes that string objects are standalone objects that are not contained inside of any packages. The _HID repair function replaced the string object with a brand new object and attempted to delete the old object by decrementing the reference count of the old object. Strings inside of packages have a reference count of 2 so the _HID repair function leaves this object in a dangling state and causes a memory leak. Instead of allocating a brand new object and removing the old object, use the existing object when repairing the _HID object. Added function trace macros to improve namespace debugging. The namespace repair mechanism does not have function tracing macros. Add several trace macros to improve debuggability. Handle "orphan" _REG methods for GPIO OpRegions. Before this change AcpiEvExecuteRegMethods() had special handling to handle "orphan" (no matching OpRegion declared) _REG methods for EC nodes. On Intel Cherry Trail devices there are 2 possible ACPI OpRegions for accessing GPIOs. The standard GeneralPurposeIo OpRegion and the Cherry Trail - specific UserDefined 0x9X OpRegions. Having 2 different types of OpRegions leads to potential issues with checks for OpRegion availability, or in other words checks if _REG has been called for the OpRegion which the ACPI code wants to use. Except for the "orphan" EC handling, ACPICA core does not call _REG on an ACPI node which does not define an OpRegion matching the type being registered; and the reference design DSDT, from which most Cherry Trail DSDTs are derived, does not define GeneralPurposeIo, nor UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because no pins were assigned ACPI controlled functions in the reference design. Together this leads to the perfect storm, at least on the Cherry Trail based Medion Akayo E1239T. This design does use a GPO2 pin from its ACPI code and has added the Cherry Trail specific UserDefined(0x93) opregion to its GPO2 ACPI node to access this pin. But it uses a "has _REG been called" availability check for the standard GeneralPurposeIo OpRegion. This clearly is a bug in the DSDT, but this does work under Windows. This issue leads to the intel vbtn driver reporting the device always being in tablet-mode at boot, even if it is in laptop mode. Which in turn causes userspace to ignore touchpad events. So in other words, this issue causes the touchpad to not work at boot. This change fixes this by extending the "orphan" _REG method handling to also apply to GPIO address-space handlers. 2) iASL Compiler/Disassembler and ACPICA tools: iASL: Added more info to namespace dump file (-ln option). In a separate section of the dump file (after the main namespace dump), emit the full pathname for each namespace node, its type, and the ASL filename and line number where it is declared. AcpiHelp: Added an option to display/decode iASL exceptions. Option is: - x [Hex Value] where "Hex Value" is the iASL exception code. If Hex Value is omitted, all iASL exceptions are displayed. iASL: Use StringLiteral instead of StringData for some ASL macros. The use of the stringData rule allows for some "string" oriented opcodes (Such as ToString, ToHexString, etc.) None of which make sense with the macros in question. This change modifies the StringData part of the rule for these macros to a simple string literal - thus disallowing the use of ToString, ToHexString, etc. The following ASL operators (macros) are affected: EisaId Fprintf Printf ToUuid Unicode Note: The MS compiler requires the use of string literals for these operators also. iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND. Search the list of "known" UUIDs for the input to the ToUUID macro. Added 5 new UUIDs to the known UUID table. All related to NVDIMM and the NFIT table. ---------------------------------------- 25 September 2020. Summary of changes for version 20200925: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: Preserve memory opregion mappings. The ACPICA's strategy with respect to the handling of memory mappings associated with memory operation regions is to avoid mapping the entire region at once which may be problematic at least in principle (for example, it may lead to conflicts with overlapping mappings having different attributes created by drivers). It may also be wasteful, because memory opregions on some systems take up vastchunks of address space while the fields in those regions actually accessed by AML are sparsely distributed. For this reason, a one-page "window" is mapped for a given opregion on the first memory access through it and if that "window" does not cover an address range accessed through that opregion subsequently, it is unmapped and a new "window" is mapped to replace it. Next, if the new "window" is not sufficient to access memory through the opregion in question in the future, it will be replaced with yet another "window" and so on. That may lead to a suboptimal sequence of memory mapping and unmapping operations, for example if two fields in one opregion separated from each other by a sufficiently wide chunk of unused address space are accessed in an alternating pattern. Added support for 64 bit risc-v compilation. Useful for acpica tools and incorporating ACPICA into the Firmware Test Suite. Colin Ian King . Added support for SMBus predefined names (from SMBus Control Method Interface Specification, Version 1.0, December 10, 1999. New predefined names: _SBA _SBI _SBR _SBT _SBW AML Disassembler: Added a new command, "All ". This command will evaluate all objects in the current namespace whose NameString contains the input NameSeg as the last element of the NameString. Useful for debugging. 2) iASL Compiler/Disassembler and ACPICA tools: iASL: fixed a crash that occurred when predefined objects return packages with lengths that exceed the initializer list. iASL: added more detail to external resolution error message when compiling multiple definition blocks. iASL: added a remark for an attempt to create a nameseg or namestring containing lower-case letters. This should prevent declaring multiple namesegs or namestrings in an attempt to refer to different objects (with different cases), but actually refer to the same object(s). iASL: improve alias analysis by saving object type. If the alias is a method type, the parameter count is also recorded. AcpiExec: Increase the default loop timeout value. Was 1 second, is now 10 seconds. Prevents unnecessary timeouts when executing control methods from the command line. AcpiHelp/disassembler: Added a bunch of "known" UUIDs to the internal list. Includes: Memory Device Generic Buttons Device NVDIMM Root Device Control Method Battery Device Graphs for _DSD method Hierarchical Data Extension ....ARM CoreSight Graph ---------------------------------------- 17 July 2020. Summary of changes for version 20200717: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: Do not increment OperationRegion reference counts for field units. Recent server firmware has revealed that this reference count can overflow on large servers that declare many field units (thousands) under the same OperationRegion. This occurs because each field unit declaration will add a reference count to the source OperationRegion. This release solves the reference count overflow for OperationRegion objects by preventing fieldUnits from incrementing their parent OperationRegion's reference count. Replaced one-element arrays with flexible-arrays, which were introduced in C99. Restored the readme file containing the directions for generation of ACPICA from source on MSVC 2017. Updated the file for MSVC 2017. File is located at: generate/msvc2017/readme.txt 2) iASL Compiler/Disassembler and ACPICA tools: iASL: Fixed a regression found in version 20200214. Prevent iASL from emitting an extra byte of garbage data when control methods declared a single parameter type without using braces. This extra byte is known to cause a blue screen on the Windows AML interpreter. iASL: Made a change to allow external declarations to specify the type of a named object even when some name segments are not defined. This change allows the following ASL code to compile (When DEV0 is not defined or not defined yet): External (\_SB.DEV0.OBJ1, IntObj) External (\_SB.DEV0, DeviceObj) iASL: Fixed a problem where method names in "Alias ()" statement could be misinterpreted. They are now interpreted correctly as method invocations. iASL: capture a method parameter count (Within the Method info segment, as well as the argument node) when using parameter type lists. ---------------------------------------- 28 May 2020. Summary of changes for version 20200528: 1) ACPICA kernel-resident subsystem: Removed old/obsolete Visual Studio files which were used to build the Windows versions of the ACPICA tools. Since we have moved to Visual Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 project files. The new subdirectory and solution file are located at: acpica/generate/msvc2017/AcpiComponents.sln 2) iASL Compiler/Disassembler and ACPICA tools: iASL: added support for a new OperationRegion Address Space (subtype): PlatformRtMechanism. Support for this new keyword is being released for early prototyping. It will appear in the next release of the ACPI specification. iASL: do not optimize the NameString parameter of the CondRefOf operator. In the previous iASL compiler release, the NameString parameter of the CondRefOf was optimized. There is evidence that some implementations of the AML interpreter do not perform the recursive search-to-parent search during the execution of the CondRefOf operator. Therefore, the CondRefOf operator behaves differently when the NameString parameter is a single name segment (a NameSeg) as opposed to a full NamePath (starting at the root scope) or a NameString containing parent prefixes. iASL: Prevent an inadvertent remark message. This change prevents a remark if within a control method the following exist: 1) An Operation Region is defined, and 2) A Field operator is defined that refers to the region. This happens because at the top level, the Field operator does not actually create a new named object, it simply references the operation region. Removed support for the acpinames utility. The acpinames was a simple utility used to populate and display the ACPI namespace without executing any AML code. However, ACPICA now supports executable opcodes outside of control methods. This means that executable AML opcodes such as If and Store opcodes need to be executed during table load. Therefore, acpinames would need to be updated to match the same behavior as the acpiexec utility and since acpiexec can already dump the entire namespace (via the 'namespace' command), we no longer have the need to maintain acpinames. In order to dump the contents of the ACPI namespace using acpiexec, execute the following command from the command line: acpiexec -b "n" [aml files] ---------------------------------------- 30 April 2020. Summary of changes for version 20200430: 1) ACPICA kernel-resident subsystem: Cleaned up the coding style of a couple of global variables (AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers. AcpiProtocolLengths was made static, and the definition of AcpiGbl_NextCmdNum was moved to acglobal.h. 2) iASL Compiler/Disassembler and ACPICA tools: iASL DataTable Compiler: Fixed a segfault on errors that aren't directly associated with a field. Disassembler: has been made more resilient so that it will continue to parse AML even if the AML generates ACPI namespace errors. This enables iASL to disassemble some AML that may have been compiled using older versions of iASL that no longer compile with newer versions of iASL. iASL: Fixed the required parameters for _NIH and _NIG. Previously, there was a mixup where _NIG required one parameter and _NIH required zero parameters. This change swaps these parameter requirements. Now it is required that _NIH must be called with one parameter and _NIG requires zero parameters. iASL: Allow use of undefined externals as long as they are protected by an if (CondRefOf (...)) block when compiling multiple definition blocks. iASL: Fixed the type override behavior of named objects that are declared as External. External declarations will no longer override the type of the actual definition if it already exists. AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable command line wildcard support on Windows. Note: the AcpiNames utility is essentially redundant with the AcpiExec utility (using the "namespace" command) and is therefore deprecated. It will be removed in future releases of ACPICA. Disassembler: ignore AE_ALREADY_EXISTS status when parsing create* operators. The disassembler is intended to emit existing ASL code as-is. Therefore, error messages emitted during disassembly should be ignored or handled in a way such that the disassembler can continue to parse the AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op parsing for create operators in order to complete parsing ASL termlists. iASL DataTable Compiler: IVRS table: fix potentially uninitialized variable warning. Some compilers catch potential uninitialized variables. This is done by examining branches of if/else statements. This change replaces an "else if" with an "else" to fix the uninitialized variable warning. ---------------------------------------- 26 March 2020. Summary of changes for version 20200326: 1) ACPICA kernel-resident subsystem: Performed a code clean-up to prevent build errors on early versions of GCC-10. Added the NHLT table signature. iASL data table compiler/disassembler support for this table is coming soon. 2) iASL Compiler/Disassembler and ACPICA tools: AcpiExec: Fixed several problems with the namespace initialization file (-fi option). Includes fixes to prevent AE_ALREADY_EXISTS errors, several seg faults, and enhancements to line parsing within the init file. In addition, each object found in the init file and it's new value is displayed, as well as any such entries that do not have a corresponding name in the namespace. For reference, the syntax for the various supported data types are presented below: PCHG 0x777788889999BBBB // Integer \DEV1.STR1 "XYZ" // String BUF1 (88 99 AA) // Buffer PKG1 [0x1111 0x2222] // Package \BF1 0x7980 // BufferField RCRV 0x0123456789ABCDEF // Field Unit iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro can be used anywhere in a given ASL file to configure iASL to expect an iASL compiler error code on the line where this macro was placed. If the error code does not exist, an error is generated. This is intended to be used for ACPICA's ASL test suite, but can be used by ASL developers as well. iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD IVRS table parsing supported only IVHD type 10h structures. Parsing an IVHD type 11h caused the iasl to report unknown subtable type. Add necessary structure definition for IVHD type 11h and apply correct parsing method based on subtable type. Micha? ?ygowski. iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name According to AMD IOMMU Specification Revision 3.05 the reserved field should be IOMMU Feature Reporting. Change the name of the field to the correct one. Micha? ?ygowski. acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch based on suggestions by David Seifert and Benjamin Berg. iASL: table compiler: removed an unused variable (DtCompilerParserResult) causing linking errors. Patch based on suggestions by David Seifert and Benjamin Berg. iASL: table compiler: make LexBuffer static to avoid linking errors in newer compilers. Patch based on suggestions by David Seifert and Benjamin Berg. iASL: fixed type matching between External and Named objects. External object types can only be expressed with ACPI object type values that are defined in the ACPI spec. However, iASL uses ACPI object type values that are local to ACPICA in addition to the values defined in the ACPI spec. This change implements type matching to map some object type values specific to ACPICA to ones that are defined in the ACPI spec. iASL: Dropped the type mismatch compiler error that can arise from External declarations to a warning. This warning can occur when there is a type difference between the external declaration and the actual object declaration (when compiling multiple files/modules simultaneously). iASL: removed an incorrect error message regarding externals. This change removes an incorrect error that is emitted when a duplicate external declaration does not contain a type that opens a scope. This is incorrect because the duplicate external with conflicting types are already caught by iASL and it doesn't make any sense to enforce what this conflicting type should be. AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be surrounded by parens. Otherwise, a logical statement that applies a logical not operator to this macro could result in a computation that applies the operator to the left side of the logical and but not the right. Reported-by: John Levon Fixed a problem with the local version of sprint(): On 32-bit, the provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX, String + Size will wrap, meaning End < Start, and AcpiUtBoundStringOutput() will never output anything as a result. The symptom seen of this was acpixtract failing to output anything -- with a custom build that included utprint.c. Signed-off-by: John Levon iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the ACPI specification. ---------------------------------------- 14 February 2020. Summary of changes for version 20200214: 1) ACPICA kernel-resident subsystem: Enable sleep button on ACPI legacy wake: Hibernation (S4) is triggered in a guest when it receives a sleep trigger from the hypervisor. When the guest resumes from this power state, it does not see the SleepEnabled bit. In other words, the sleepHibernation (S4) is triggered in a guest when it receives a sleep trigger from the hypervisor. When the guest resumes from this power state, it does not see the SleepEnabled bit. In other words, the sleep button is not enabled on waking from an S4 state. This causes subsequent invocation of sleep state to fail since the guest.button is not enabled on waking from an S4 state. This causes subsequent invocation of sleep state to fail in the guest. Fix this problem by enabling the sleep button in ACPI legacy wake. From Anchal Agarwal . Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used for checking the status bits of all enabled GPEs in one go. It is needed to distinguish spurious SCIs from genuine ones when deciding whether or not to wake up the system from suspend-to-idle. Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be using HOST in their environment to represent the host name for their machines. Avoid this problem by renaming this variable from HOST to ACPI_HOST. MSVC 2017 project files: Enable multiprocessor generation to improve build performance. Added a macro to get the byte width of a Generic Address structure. New ACPI_ACCESS_BYTE_WIDTH is in addition to the existing ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg. 2) iASL Compiler/Disassembler and ACPICA tools: iASL: Implemented full support for the (optional, rarely used) ReturnType and ParameterTypesList for the Method, Function, and External operators. For Method declarations, the number of individual ParameterTypes must match the declaration of the number of arguments (NumArgs). This also Fixes a problem with the External operator where extra/extraneous bytes were emitted in the AML code if the optional ReturnType/ParameterTypes were specified for a MethodObj declaration. New error message: 1) Method NumArgs count does not match length of ParameterTypes list iASL: Implemented detection of type mismatches between External declarations and named object declarations. Also, detect type mismatches between multiple External declarations of the same Name. New error messages: 1) Type mismatch between external declaration and actual object declaration detected 2) Type mismatch between multiple external declarations detected iASL: Implemented new error messages for External operators that specify a ReturnType and/or ParameterTypesList for any object type other than control methods (MethodObj). New error messages: 1) Return type is only allowed for Externals declared as MethodObj 2) Parameter type is only allowed for Externals declared as MethodObj iASL: Implemented two new remark/warning messages for ASL code that creates named objects from within a control method. This is very inefficient since the named object must be created and deleted each time the method is executed. New messages: 1) Creation of named objects within a method is highly inefficient, use globals or method local variables instead (remark) 2) Static OperationRegion should be declared outside control method (warning) iASL: Improved illegal forward reference detection by adding support to detect forward-reference method invocations. iASL: Detect and issue an error message for NameStrings that contain too many individual NameSegs (>255). This is an AML limitation that is defined in the ACPI specification. New message: 1) NameString contains too many NameSegs (>255) acpidump: windows: use GetSystemFirmwareTable API for all tables except SSDT. By using this API, acpidump is able to get all tables in the XSDT iASL: Removed unused parser file and updated msvc2017 project files. Removed the obsolete AslCompiler.y from the repository. iASL: msvc2017: Fixed macros in the file dependency list to prevent unnecessary rebuilds. Replace %(Directory) with %(RelativeDir). Disassembler: Prevent spilling error messages to the output file. All errors are directed to the console instead. These error messages prevented re-compilation of the resulting disassembled ASL output file (.DSL). ---------------------------------------- 10 January 2020. Summary of changes for version 20200110: 1) ACPICA kernel-resident subsystem: Updated all copyrights to 2020. This affects all ACPICA source code modules. 2) iASL Compiler/Disassembler and ACPICA tools: ASL test suite (ASLTS): Updated all copyrights to 2020. Tools and utilities: Updated all signon copyrights to 2020. iASL: fix forward reference analysis for field declarations. Fixes forward reference analysis for field declarations by searching the parent scope for the named object when the object is not present in the current scope. iASL: Improved the error output for ALREADY_EXISTS errors. Now, the full pathname of the name that already exists is printed. iASL: Enhance duplicate Case() detection for buffers. Add check for buffers with no initializer list (these buffers will be filled with zeros at runtime.) ---------------------------------------- 13 December 2019. Summary of changes for version 20191213: 1) ACPICA kernel-resident subsystem: Return a Buffer object for all fields created via the CreateField operator. Previously, an Integer would be returned if the size of the field was less than or equal to the current size of an Integer. Although this goes against the ACPI specification, it provides compatibility with other ACPI implementations. Also updated the ASLTS test suite to reflect this new behavior. 2) iASL Compiler/Disassembler and ACPICA tools: iASL: Implemented detection of (and throw an error for) duplicate values for Case statements within a single Switch statement. Duplicate Integers, Strings, and Buffers are supported. iASL: Fix error logging issue during multiple file compilation -- Switch to the correct input file during error node creation. iASL: For duplicate named object creation, now emit an error instead of a warning - since this will cause a runtime error. AcpiSrc: Add unix line-ending support for non-Windows builds. iASL: Add an error condition for an attempt to create a NameString with > 255 NameSegs (the max allowable via the AML definition). ---------------------------------------- 18 October 2019. Summary of changes for version 20191018: 1) ACPICA kernel-resident subsystem: Debugger: added a new command: ?Fields [address space ID]?. This command dumps the contents of all field units that are defined within the namespace with a particular address space ID. Modified the external interface AcpiLoadTable() to return a table index. This table index can be used for unloading a table for debugging. ACPI_STATUS AcpiLoadTable ( ACPI_TABLE_HEADER *Table, UINT32 *TableIndex)) Implemented a new external interface: AcpiUnloadTable() This new function takes a table index as an argument and unloads the table. Useful for debugging only. ACPI_STATUS AcpiUnloadTable ( UINT32 TableIndex)) Ported the AcpiNames utility to use the new table initialization sequence. The utility was broken before this change. Also, it was required to include most of the AML interpreter into the utility in order to process table initialization (module-level code execution.) Update for results from running Clang V8.0.1. This fixes all "dead assignment" warnings. There are still several "Dereference of NULL pointer" warnings, but these have been found to be false positive warnings. 2) iASL Compiler/Disassembler and ACPICA tools: iASL: numerous table compiler changes to ensure that the usage of yacc/bison syntax is POSIX-compliant. iASL/disassembler: several simple bug fixes in the data table disassembler. Acpiexec: expanded the initialization file (the -fi option) to initialize strings, buffers, packages, and field units. ---------------------------------------- 16 August 2019. Summary of changes for version 20190816: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: Modified the OwnerId mechanism to allow for more Owner Ids. The previous limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT exceptions on machines with a large number of initialization threads, many CPU cores and nested initialization control methods. Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for checking if the given GPE (as represented by a GPE device handle and a GPE number) is currently active and dispatching it (if that's the case) outside of interrupt context. Table load: exit the interpreter before initializing objects within the new table This prevents re-acquiring the interpreter lock when loading tables Added the "Windows 2019" string to the _OSI support (version 1903). Jung- uk Kim Macros: removed pointer math on a null pointer. Causes warnings on some compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR instead of using arithmetic. Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used across all "printf-like" internal functions. Also, cleanup all calls to such functions (both in 32-bit mode and 64-bit mode) now that they are analyzed by the gcc compiler via ACPI_PRINTF_LIKE. 2) iASL Compiler/Disassembler and ACPICA tools: iASL: implemented a new data table compiler flex/bison front-end. This change is internal and is not intended to result in changes to the compiled code. This new compiler front-end can be invoked using the -tp option for now, until the old mechanism is removed. ASLTS: Implemented a new data table compiler test suite. This test suite generates all table templates and compile/disassemble/re-compile/binary- compare each file. iASL: return -1 if AML files were not generated due to compiler errors iASL: added a warning on use of the now-legacy ASL Processor () keyword. iASL: added an error on _UID object declaration that returns a String within a Processor () declaration. A _UID for a processor must be an Integer. iASL: added a null terminator to name strings that consist only of multiple parent prefixes (^) iASL: added support to compile both ASL and data table files in a single command. Updated the tool generation project files that were recently migrated to MSVC 2017 to eliminate all new warnings. The new project files appear in the directory \acpica\generate\msvc2017. This change effectively deprecates the older project files in \acpica\generate\msvc9. ---------------------------------------- 03 July 2019. Summary of changes for version 20190703: 1) ACPICA kernel-resident subsystem: Remove legacy module-level support code. There were still some remnants of the legacy module-level code executions. Since we no longer support this option, this is essentially dead code and has been removed from the ACPICA source. iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root scope. If these named objects are declared outside the root scope, they will not be invoked by any host Operating System. Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC one) can be enabled in two situations. First, the GPEs with existing _Lxx and _Exx methods are enabled implicitly by ACPICA during system initialization. Second, the GPEs without these methods (like GPEs listed by _PRW objects for wakeup devices) need to be enabled directly by the code that is going to use them (e.g. ACPI power management or device drivers). In the former case, if the status of a given GPE is set to start with, its handler method (either _Lxx or _Exx) needs to be invoked to take care of the events (possibly) signaled before the GPE was enabled. In the latter case, however, the first caller of AcpiEnableGpe() for a given GPE should not be expected to care about any events that might be signaled through it earlier. In that case, it is better to clear the status of the GPE before enabling it, to prevent stale events from triggering unwanted actions (like spurious system resume, for example). For this reason, modify AcpiEvAddGpeReference() to take an additional boolean argument indicating whether or not the GPE status needs to be cleared when its reference counter changes from zero to one and make AcpiEnableGpe() pass TRUE to it through that new argument. 2) iASL Compiler/Disassembler and ACPICA tools: The tool generation process has been migrated to MSVC 2017, and all project files have been upgraded. The new project files appear in the directory \acpica\generate\msvc2017. This change effectively deprecates the older project files in \acpica\generate\msvc9. iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root scope. If these named objects are declared outside the root scope, they will not be invoked by any host Operating System ---------------------------------------- 09 May 2019. Summary of changes for version 20190509: 1) ACPICA kernel-resident subsystem: Revert commit 6c43e1a ("ACPICA: Clear status of GPEs before enabling them") that causes problems with Thunderbolt controllers to occur if a dock device is connected at init time (the xhci_hcd and thunderbolt modules crash which prevents peripherals connected through them from working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA: Dispatch active GPEs at init time") to get undone, so the problem addressed by commit ecc1165b8b74 appears again as a result of it. 2) iASL Compiler/Disassembler and ACPICA tools: Reverted iASL: Additional forward reference detection. This change reverts forward reference detection for field declarations. The feature unintentionally emitted AML bytecode with incorrect package lengths for some ASL code related to Fields and OperationRegions. This malformed AML can cause systems to crash during boot. The malformed AML bytecode is emitted in iASL version 20190329 and 20190405. iASL: improve forward reference detection. This change improves forward reference detection for named objects inside of scopes. If a parse object has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to a named object that is declared later in the AML bytecode. This is allowed if the reference is inside of a method and the declaration is outside of a method like so: DefinitionBlock(...) { Method (TEST) { Return (NUM0) } Name (NUM0,0) } However, if the declaration and reference are both in the same method or outside any methods, this is a forward reference and should be marked as an error because it would result in runtime errors. DefinitionBlock(...) { Name (BUFF, Buffer (NUM0) {}) // Forward reference Name (NUM0, 0x0) Method (TEST) { Local0 = NUM1 Name (NUM1, 0x1) // Forward reference return (Local0) } } iASL: Implemented additional buffer overflow analysis for BufferField declarations. Check if a buffer index argument to a create buffer field operation is beyond the end of the target buffer. This affects these AML operators: AML_CREATE_FIELD_OP AML_CREATE_BIT_FIELD_OP AML_CREATE_BYTE_FIELD_OP AML_CREATE_WORD_FIELD_OP AML_CREATE_DWORD_FIELD_OP AML_CREATE_QWORD_FIELD_OP There are three conditions that must be satisfied in order to allow this validation at compile time: 1) The length of the target buffer must be an integer constant 2) The index specified in the create* must be an integer constant 3) For CreateField, the bit length argument must be non-zero. Example: Name (BUF1, Buffer() {1,2}) CreateField (BUF1, 7, 9, CF03) // 3: ERR dsdt.asl 14: CreateField (BUF1, 7, 9, CF03) // 3: ERR Error 6165 - ^ Buffer index beyond end of target buffer ---------------------------------------- 05 April 2019. Summary of changes for version 20190405: 1) ACPICA kernel-resident subsystem: Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume") was added earlier to stop clearing of event status bits unconditionally on suspend and resume paths. Though this change fixed an issue on suspend path, it introduced regressions on several resume paths. In the case of S0ix, events are enabled as part of device suspend path. If status bits for the events are set when they are enabled, it could result in premature wake from S0ix. If status is cleared for any event that is being enabled so that any stale events are cleared out. In case of S0ix, events are enabled as part of device suspend path. If status bits for the events are set when they are enabled, it could result in premature wake from S0ix. This change ensures that status is cleared for any event that is being enabled so that any stale events are cleared out. 2) iASL Compiler/Disassembler and ACPICA tools: iASL: Implemented an enhanced multiple file compilation that combines named objects from all input files to a single namespace. With this feature, any unresolved external declarations as well as duplicate named object declarations can be detected during compilation rather than generating errors much later at runtime. The following commands are examples that utilize this feature: iasl dsdt.asl ssdt.asl iasl dsdt.asl ssdt1.asl ssdt2.asl iasl dsdt.asl ssdt*.asl ---------------------------------------- 29 March 2019. Summary of changes for version 20190329: 1) ACPICA kernel-resident subsystem: Namespace support: Remove the address nodes from global list after method termination. The global address list contains pointers to namespace nodes that represent Operation Regions. This change properly removes Operation Region namespace nodes that are declared dynamically during method execution. Linux: Use a different debug default than ACPICA. There was a divergence between Linux and the ACPICA codebases. In order to resolve this divergence, Linux now declares its own debug default in aclinux.h Renamed some internal macros to improve code understanding and maintenance. The macros below all operate on single 4-character ACPI NameSegs, not generic strings (old -> new): ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG ACPI_MOVE_NAME -> ACPI_COPY_NAMESEG Fix for missing comma in array declaration for the AcpiGbl_GenericNotify table. Test suite: Update makefiles, add PCC operation region support 2) iASL Compiler/Disassembler and Tools: iASL: Implemented additional illegal forward reference detection. Now detect and emit an error upon detection of a forward reference from a Field to an Operation Region. This will fail at runtime if allowed to pass the compiler. AcpiExec: Add an address list check for dynamic Operation Regions. This feature performs a sanity test for each node the global address list. This is done in order to ensure that all dynamic operation regions are properly removed from the global address list and no dangling pointers are left behind. Disassembler: Improved generation of resource pathnames. This change improves the code that generates resource descriptor and resource tag pathnames. The original code used a bunch of str* C library functions that caused warnings on some compilers. iASL: Removed some uses of strncpy and replaced with memmove. The strncpy function can overwrite buffers if the calling code is not very careful. In the case of generating a module/table header, use of memmove is a better implementation. 3) Status of new features that have not been completed at this time: iASL: Implementing an enhanced multiple file compilation into a single namespace feature (Status): This feature will be released soon, and allows multiple ASL files to be compiled into the same single namespace. By doing so, any unresolved external declarations as well as duplicate named object declarations can be detected during compilation (rather than later during runtime). The following commands are examples that utilize this feature: iasl dsdt.asl ssdt.asl iasl dsdt.asl ssdt1.asl ssdt2.asl iasl dsdt.asl ssdt*.asl ASL tutorial status: Feedback is being gathered internally and the current plan is to publish this tutorial on the ACPICA website after a final review by a tech writer. ---------------------------------------- 15 February 2019. Summary of changes for version 20190215: 0) Support for ACPI specification version 6.3: Add PCC operation region support for the AML interpreter. This adds PCC operation region support in the AML interpreter and a default handler for acpiexec. The change also renames the PCC region address space keyword to PlatformCommChannel. Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG. These methods provide OSPM with health information and device boot status. PDTT: Add TriggerOrder to the PCC Identifier structure. The field value defines if the trigger needs to be invoked by OSPM before or at the end of kernel crash dump processing/handling operation. SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT is used for describing devices such as heterogeneous processors, accelerators, GPUs, and IO devices with integrated compute or DMA engines. MADT: Add support for statistical profiling in GICC. Statistical profiling extension (SPE) is an architecture-specific feature for ARM. MADT: Add online capable flag. If this bit is set, system hardware supports enabling this processor during OS runtime. New Error Disconnect Recover Notification value. There are a number of scenarios where system Firmware in collaboration with hardware may disconnect one or more devices from the rest of the system for purposes of error containment. Firmware can use this new notification value to alert OSPM of such a removal. PPTT: New additional fields in Processor Structure Flags. These flags provide more information about processor topology. NFIT/Disassembler: Change a field name from "Address Range" to "Region Type". HMAT updates: make several existing fields to be reserved as well as rename subtable 0 to "memory proximity domain attributes". GTDT: Add support for new GTDT Revision 3. This revision adds information for the EL2 timer. iASL: Update the HMAT example template for new fields. iASL: Add support for the new revision of the GTDT (Rev 3). 1) ACPICA kernel-resident subsystem: AML Parser: fix the main AML parse loop to correctly skip erroneous extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2- byte extended opcodes. If an error occurs during an AML table load, the AML parser will continue loading the table by skipping the offending opcode. This implements a "load table at any cost" philosophy. 2) iASL Compiler/Disassembler and Tools: iASL: Add checks for illegal object references, such as a reference outside of method to an object within a method. Such an object is only temporary. iASL: Emit error for creation of a zero-length operation region. Such a region is rather pointless. If encountered, a runtime error is also implemented in the interpreter. Debugger: Fix a possible fault with the "test objects" command. iASL: Makefile: support parent directory filenames containing embedded spaces. iASL: Update the TPM2 template to revision 4. iASL: Add the ability to report specific warnings or remarks as errors. Disassembler: Disassemble OEMx tables as actual AML byte code. Previously, these tables were treated as "unknown table". iASL: Add definition and disassembly for TPM2 revision 3. iASL: Add support for TPM2 rev 3 compilation. ---------------------------------------- 08 January 2019. Summary of changes for version 20190108: 1) ACPICA kernel-resident subsystem: Updated all copyrights to 2019. This affects all source code modules. 2) iASL Compiler/Disassembler and Tools: ASL test suite (ASLTS): Updated all copyrights to 2019. Tools: Updated all signon copyrights to 2019. AcpiExec: Added a new option to dump extra information concerning any memory leaks detected by the internal object/cache tracking mechanism. - va iASL: Updated the table template for the TPM2 table to the newest version of the table (Revision 4) ---------------------------------------- 13 December 2018. Summary of changes for version 20181213: 1) ACPICA Kernel-resident Subsystem: Fixed some buffer length issues with the GenericSerialBus, related to two of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes, which are rarely seen in the field. For these, the LEN field of the ASL buffer is now ignored. Hans de Goede Implemented a new object evaluation trace mechanism for control methods and data objects. This includes nested control methods. It is particularly useful for examining the ACPI execution during system initialization since the output is relatively terse. The flag below enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface: #define ACPI_LV_EVALUATION 0x00080000 Examples: Enter evaluation : _SB.PCI0._INI (Method) Exit evaluation : _SB.PCI0._INI Enter evaluation : _OSI (Method) Exit evaluation : _OSI Enter evaluation : _SB.PCI0.TEST (Method) Nested method call : _SB.PCI0.NST1 Exit nested method : _SB.PCI0.NST1 Exit evaluation : _SB.PCI0.TEST Added two recently-defined _OSI strings. See https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi- osi. "Windows 2018" "Windows 2018.2" Update for buffer-to-string conversions via the ToHexString ASL operator. A "0x" is now prepended to each of the hex values in the output string. This provides compatibility with other ACPI implementations. The ACPI specification is somewhat vague on this issue. Example output string after conversion: "0x01,0x02,0x03,0x04,0x05,0x06" Return a run-time error for TermArg expressions within individual package elements. Although this is technically supported by the ASL grammar, other ACPI implementations do not support this either. Also, this fixes a fault if this type of construct is ever encountered (it never has been). 2) iASL Compiler/Disassembler and Tools: iASL: Implemented a new compile option (-ww) that will promote individual warnings and remarks to errors. This is intended to enhance the firmware build process. AcpiExec: Implemented a new command-line option (-eo) to support the new object evaluation trace mechanism described above. Disassembler: Added support to disassemble OEMx tables as AML/ASL tables instead of a "unknown table" message. AcpiHelp: Improved support for the "special" predefined names such as _Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be used for "xx" and "x". ---------------------------------------- 31 October 2018. Summary of changes for version 20181031: An Operation Region regression was fixed by properly adding address ranges to a global list during initialization. This allows OS to accurately check for overlapping regions between native devices (such as PCI) and Operation regions as well as checking for region conflicts between two Operation Regions. Added support for the 2-byte extended opcodes in the code/feature that attempts to continue parsing during the table load phase. Skip parsing Device declarations (and other extended opcodes) when an error occurs during parsing. Previously, only single-byte opcodes were supported. Cleanup: Simplified the module-level code support by eliminating a useless global variable (AcpiGbl_GroupModuleLeveCode). 2) iASL Compiler/Disassembler and Tools: iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE could cause a fault in the preprocessor. This was an inadvertent side- effect from moving more allocations/frees to the local cache/memory mechanism. iASL: Enhanced error detection by validating that all NameSeg elements within a NamePatch actually exist. The previous behavior was spotty at best, and such errors could be improperly ignored at compiler time (never at runtime, however. There are two new error messages, as shown in the examples below: dsdt.asl 33: CreateByteField (TTTT.BXXX, 1, CBF1) Error 6161 - ^ One or more objects within the Pathname do not exist (TTTT.BXXX) dsdt.asl 34: CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1) Error 6160 - One or more prefix Scopes do not exist ^ (BBBB.CBF1) iASL: Disassembler/table-compiler: Added support for the static data table TPM2 revision 3 (an older version of TPM2). The support has been added for the compiler and the disassembler. Fixed compilation of DOS format data table file on Unix/Linux systems. iASL now properly detects line continuations (\) for DOS format data table definition language files on when executing on Unix/Linux. ---------------------------------------- 03 October 2018. Summary of changes for version 20181003: 2) iASL Compiler/Disassembler and Tools: Fixed a regression introduced in version 20180927 that could cause the compiler to fault, especially with NamePaths containing one or more carats (^). Such as: ^^_SB_PCI0 Added a new remark for the Sleep() operator when the sleep time operand is larger than one second. This is a very long time for the ASL/BIOS code and may not be what was intended by the ASL writer. ---------------------------------------- 27 September 2018. Summary of changes for version 20180927: 1) ACPICA kernel-resident subsystem: Updated the GPE support to clear the status of all ACPI events when entering any/all sleep states in order to avoid premature wakeups. In theory, this may cause some wakeup events to be missed, but the likelihood of this is small. This change restores the original behavior of the ACPICA code in order to fix a regression seen from the previous "Stop unconditionally clearing ACPI IRQs during suspend/resume" change. This regression could cause some systems to incorrectly wake immediately. Updated the execution of the _REG methods during initialization and namespace loading to bring the behavior into closer conformance to the ACPI specification and other ACPI implementations: From the ACPI specification 6.2A, section 6.5.4 "_REG (Region): "Control methods must assume all operation regions are inaccessible until the _REG(RegionSpace, 1) method is executed" "The exceptions to this rule are: 1. OSPM must guarantee that the following operation regions are always accessible: SystemIO operation regions. SystemMemory operation regions when accessing memory returned by the System Address Map reporting interfaces." Since the state of both the SystemIO and SystemMemory address spaces are defined by the specification to never change, this ACPICA change ensures that now _REG is never called on them. This solves some problems seen in the field and provides compatibility with other ACPI implementations. An update to the upcoming new version of the ACPI specification will help clarify this behavior. Updated the implementation of support for the Generic Serial Bus. For the "bidirectional" protocols, the internal implementation now automatically creates a return data buffer of the maximum size (255). This handles the worst-case for data that is returned from the serial bus handler, and fixes some problems seen in the field. This new buffer is directly returned to the ASL. As such, there is no true "bidirectional" buffer, which matches the ACPI specification. This is the reason for the "double store" seen in the example ASL code in the specification, shown below: Word Process Call (AttribProcessCall): OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100) Field(TOP1, BufferAcc, NoLock, Preserve) { FLD1, 8, // Virtual register at command value 1. } Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer // as BUFF CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word) Store(0x5416, DATA) // Save 0x5416 into the data buffer Store(Store(BUFF, FLD1), BUFF) // Invoke a write/read Process Call transaction // This is the "double store". The write to // FLD1 returns a new buffer, which is stored // back into BUFF with the second Store. 2) iASL Compiler/Disassembler and Tools: iASL: Implemented detection of extraneous/redundant uses of the Offset() operator within a Field Unit list. A remark is now issued for these. For example, the first two of the Offset() operators below are extraneous. Because both the compiler and the interpreter track the offsets automatically, these Offsets simply refer to the current offset and are unnecessary. Note, when optimization is enabled, the iASL compiler will in fact remove the redundant Offset operators and will not emit any AML code for them. OperationRegion (OPR1, SystemMemory, 0x100, 0x100) Field (OPR1) { Offset (0), // Never needed FLD1, 32, Offset (4), // Redundant, offset is already 4 (bytes) FLD2, 8, Offset (64), // OK use of Offset. FLD3, 16, } dsdt.asl 14: Offset (0), Remark 2158 - ^ Unnecessary/redundant use of Offset operator dsdt.asl 16: Offset (4), Remark 2158 - ^ Unnecessary/redundant use of Offset operator ---------------------------------------- 10 August 2018. Summary of changes for version 20180810: 1) ACPICA kernel-resident subsystem: Initial ACPI table loading: Attempt to continue loading ACPI tables regardless of malformed AML. Since migrating table initialization to the new module-level code support, the AML interpreter rejected tables upon any ACPI error encountered during table load. This is a problem because non-serious ACPI errors during table load do not necessarily mean that the entire definition block (DSDT or SSDT) is invalid. This change improves the table loading by ignoring some types of errors that can be generated by incorrect AML. This can range from object type errors, scope errors, and index errors. Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs during suspend/resume. The status of ACPI events is no longer cleared when entering the ACPI S5 system state (power off) which caused some systems to power up immediately after turning off power in certain situations. This was a functional regression. It was fixed by clearing the status of all ACPI events again when entering S5 (for system-wide suspend or hibernation the clearing of the status of all events is not desirable, as it might cause the kernel to miss wakeup events sometimes). Rafael Wysocki. 2) iASL Compiler/Disassembler and Tools: AcpiExec: Enhanced the -fi option (Namespace initialization file). Field elements listed in the initialization file were previously initialized after the table load and before executing module-level code blocks. Recent changes in the module-level code support means that the table load becomes a large control method execution. If fields are used within module-level code and we are executing with the -fi option, the initialization values were used to initialize the namespace object(s) only after the table was finished loading. This change Provides an early initialization of objects specified in the initialization file so that field unit values are populated during the table load (not after the load). AcpiExec: Fixed a small memory leak regression that could result in warnings during exit of the utility. These warnings were similar to these: 0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small] 0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001 ---------------------------------------- 29 June 2018. Summary of changes for version 20180629: 1) iASL Compiler/Disassembler and Tools: iASL: Fixed a regression related to the use of the ASL External statement. Error checking for the use of the External() statement has been relaxed. Previously, a restriction on the use of External meant that the referenced named object was required to be defined in a different table (an SSDT). Thus it would be an error to declare an object as an external and then define the same named object in the same table. For example: DefinitionBlock (...) { External (DEV1) Device (DEV1){...} // This was an error } However, this behavior has caused regressions in some existing ASL code, because there is code that depends on named objects and externals (with the same name) being declared in the same table. This change will allow the ASL code above to compile without errors or warnings. iASL: Implemented ASL language extensions for four operators to make some of their arguments optional instead of required: 1) Field (RegionName, AccessType, LockRule, UpdateRule) 2) BankField (RegionName, BankName, BankValue, AccessType, LockRule, UpdateRule) 3) IndexField (IndexName, DataName, AccessType, LockRule, UpdateRule) For the Field operators above, the AccessType, LockRule, and UpdateRule are now optional arguments. The default values are: AccessType: AnyAcc LockRule: NoLock UpdateRule: Preserve 4) Mutex (MutexName, SyncLevel) For this operator, the SyncLevel argument is now optional. This argument is rarely used in any meaningful way by ASL code, and thus it makes sense to make it optional. The default value is: SyncLevel: 0 iASL: Attempted use of the ASL Unload() operator now results in the following warning: "Unload is not supported by all operating systems" This is in fact very true, and the Unload operator may be completely deprecated in the near future. AcpiExec: Fixed a regression for the -fi option (Namespace initialization file. Recent changes in the ACPICA module-level code support altered the table load/initialization sequence . This means that the table load has become a large method execution of the table itself. If Operation Region Fields are used within any module-level code and the -fi option was specified, the initialization values were populated only after the table had completely finished loading (and thus the module-level code had already been executed). This change moves the initialization of objects listed in the initialization file to before the table is executed as a method. Field unit values are now initialized before the table execution is performed. ---------------------------------------- 31 May 2018. Summary of changes for version 20180531: 1) ACPICA kernel-resident Subsystem: Implemented additional support to help ensure that a DSDT or SSDT is fully loaded even if errors are incurred during the load. The majority of the problems that are seen is the failure of individual AML operators that occur during execution of any module-level code (MLC) existing in the table. This support adds a mechanism to abort the current ASL statement (AML opcode), emit an error message, and to simply move on to the next opcode -- instead of aborting the entire table load. This is different than the execution of a control method where the entire method is aborted upon any error. The goal is to perform a very "best effort" to load the ACPI tables. The most common MLC errors that have been seen in the field are direct references to unresolved ASL/AML symbols (referenced directly without the use of the CondRefOf operator to validate the symbol). This new ACPICA behavior is now compatible with other ACPI implementations. Interpreter: The Unload AML operator is no longer supported for the reasons below. An AE_NOT_IMPLEMENTED exception is returned. 1) A correct implementation on at least some hosts may not be possible. 2) Other ACPI implementations do not correctly/fully support it. 3) It requires host device driver support which is not known to exist. (To properly support namespace unload out from underneath.) 4) This AML operator has never been seen in the field. Parser: Added a debug option to dump AML parse sub-trees as they are being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is ACPI_DB_PARSE_TREES. Debugger: Reduced the verbosity for errors incurred during table load and module-level code execution. Completed an investigation into adding a namespace node "owner list" instead of the current "owner ID" associated with namespace nodes. This list would link together all nodes that are owned by an individual control method. The purpose would be to enhance control method execution by speeding up cleanup during method exit (all namespace nodes created by a method are deleted upon method termination.) Currently, the entire namespace must be searched for matching owner IDs if (and only if) the method creates named objects outside of the local scope. However, by far the most common case is that methods create objects locally, not outside the method scope. There is already an ACPICA optimization in place that only searches the entire namespace in the rare case of a method creating objects elsewhere in the namespace. Therefore, it is felt that the overhead of adding an additional pointer to each namespace node to implement the owner list makes this feature unnecessary. 2) iASL Compiler/Disassembler and Tools: iASL, Disassembler, and Template generator: Implemented support for Revision D of the IORT table. Adds a new subtable that is used to specify SMMUv3 PMCGs. rmurphy-arm. Disassembler: Restored correct table header validation for the "special" ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI table header and must be special-cased. This was a regression that has been present for apparently a long time. AcpiExec: Reduced verbosity of the local exception handler implemented within acpiexec. This handler is invoked by ACPICA upon any exceptions generated during control method execution. A new option was added: -vh restores the original verbosity level if desired. AcpiExec: Changed the default base from decimal to hex for the -x option (set debug level). This simplifies the use of this option and matches the behavior of the corresponding iASL -x option. AcpiExec: Restored a force-exit on multiple control-c (sigint) interrupts. This allows program termination even if other issues cause the control-c to fail. ASL test suite (ASLTS): Added tests for the recently implemented package element resolution mechanism that allows forward references to named objects from individual package elements (this mechanism provides compatibility with other ACPI implementations.) ---------------------------------------- 8 May 2018. Summary of changes for version 20180508: 1) ACPICA kernel-resident subsystem: Completed the new (recently deployed) package resolution mechanism for the Load and LoadTable ASL/AML operators. This fixes a regression that was introduced in version 20180209 that could result in an AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table (SSDT) that contains package objects. 2) iASL Compiler/Disassembler and Tools: AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than 1 MB. This change allows for table offsets within the acpidump file to be up to 8 characters. These changes are backwards compatible with existing acpidump files. ---------------------------------------- 27 April 2018. Summary of changes for version 20180427: 1) ACPICA kernel-resident subsystem: Debugger: Added support for Package objects in the "Test Objects" command. This command walks the entire namespace and evaluates all named data objects (Integers, Strings, Buffers, and now Packages). Improved error messages for the namespace root node. Originally, the root was referred to by the confusing string "\___". This has been replaced by "Namespace Root" for clarification. Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin Ian King . 2) iASL Compiler/Disassembler and Tools: iASL: Implemented support to detect and flag illegal forward references. For compatibility with other ACPI implementations, these references are now illegal at the root level of the DSDT or SSDTs. Forward references have always been illegal within control methods. This change should not affect existing ASL/AML code because of the fact that these references have always been illegal in the other ACPI implementation. iASL: Added error messages for the case where a table OEM ID and OEM TABLE ID strings are longer than the ACPI-defined length. Previously, these strings were simply silently truncated. iASL: Enhanced the -tc option (which creates an AML hex file in C, suitable for import into a firmware project): 1) Create a unique name for the table, to simplify use of multiple SSDTs. 2) Add a protection #ifdef in the file, similar to a .h header file. With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd, evan.lloyd@arm.com AcpiExec: Added a new option, -df, to disable the local fault handler. This is useful during debugging, where it may be desired to drop into a debugger on a fault. ---------------------------------------- 13 March 2018. Summary of changes for version 20180313: 1) ACPICA kernel-resident subsystem: Implemented various improvements to the GPE support: 1) Dispatch all active GPEs at initialization time so that no GPEs are lost. 2) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled before devices are enumerated. 3) Don't unconditionally clear ACPI IRQs during suspend/resume, so that IRQs are not lost. 4) Add parallel GPE handling to eliminate the possibility of dispatching the same GPE twice. 5) Dispatch any pending GPEs after enabling for the first time. AcpiGetObjectInfo - removed support for the _STA method. This was causing problems on some platforms. Added a new _OSI string, "Windows 2017.2". Cleaned up and simplified the module-level code support. These changes are in preparation for the eventual removal of the legacy MLC support (deferred execution), replaced by the new MLC architecture which executes the MLC as a table is loaded (DSDT/SSDTs). Changed a compile-time option to a runtime option. Changes the option to ignore ACPI table load-time package resolution errors into a runtime option. Used only for platforms that generate many AE_NOT_FOUND errors during boot. AcpiGbl_IgnorePackageResolutionErrors. Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid compilation errors from unused variables (seen with some compilers). 2) iASL Compiler/Disassembler and Tools: ASLTS: parallelized execution in order to achieve an (approximately) 2X performance increase. ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves error reporting. ---------------------------------------- 09 February 2018. Summary of changes for version 20180209: 1) ACPICA kernel-resident subsystem: Completed the final integration of the recent changes to Package Object handling and the module-level AML code support. This allows forward references from individual package elements when the package object is declared from within module-level code blocks. Provides compatibility with other ACPI implementations. The new architecture for the AML module-level code has been completed and is now the default for the ACPICA code. This new architecture executes the module-level code in-line as the ACPI table is loaded/parsed instead of the previous architecture which deferred this code until after the table was fully loaded. This solves some ASL code ordering issues and provides compatibility with other ACPI implementations. At this time, there is an option to fallback to the earlier architecture, but this support is deprecated and is planned to be completely removed later this year. Added a compile-time option to ignore AE_NOT_FOUND exceptions during resolution of named reference elements within Package objects. Although this is potentially a serious problem, it can generate a lot of noise/errors on platforms whose firmware carries around a bunch of unused Package objects. To disable these errors, define ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All errors are always reported for ACPICA applications such as AcpiExec. Fixed a regression related to the explicit type-conversion AML operators (ToXXXX). The regression was introduced early in 2017 but was not seen until recently because these operators are not fully supported by other ACPI implementations and are thus rarely used by firmware developers. The operators are defined by the ACPI specification to not implement the "implicit result object conversion". The regression incorrectly introduced this object conversion for the following explicit conversion operators: ToInteger ToString ToBuffer ToDecimalString ToHexString ToBCD FromBCD 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a problem with the compiler constant folding feature as related to the ToXXXX explicit conversion operators. These operators do not support the "implicit result object conversion" by definition. Thus, ASL expressions that use these operators cannot be folded to a simple Store operator because Store implements the implicit conversion. This change uses the CopyObject operator for the ToXXXX operator folding instead. CopyObject is defined to not implement implicit result conversions and is thus appropriate for folding the ToXXXX operators. iASL: Changed the severity of an error condition to a simple warning for the case where a symbol is declared both locally and as an external symbol. This accommodates existing ASL code. AcpiExec: The -ep option to enable the new architecture for module-level code has been removed. It is replaced by the -dp option which instead has the opposite effect: it disables the new architecture (the default) and enables the legacy architecture. When the legacy code is removed in the future, the -dp option will be removed also. ---------------------------------------- 05 January 2018. Summary of changes for version 20180105: 1) ACPICA kernel-resident subsystem: Updated all copyrights to 2018. This affects all source code modules. Fixed a possible build error caused by an unresolved reference to the AcpiUtSafeStrncpy function. Removed NULL pointer arithmetic in the various pointer manipulation macros. All "(void *) NULL" constructs are converted to "(void *) 0". This eliminates warnings/errors in newer C compilers. Jung-uk Kim. Added support for A32 ABI compilation, which uses the ILP32 model. Anuj Mittal. 2) iASL Compiler/Disassembler and Tools: ASLTS: Updated all copyrights to 2018. Tools: Updated all signon copyrights to 2018. AcpiXtract: Fixed a regression related to ACPI table signatures where the signature was truncated to 3 characters (instead of 4). AcpiExec: Restore the original terminal mode after the use of the -v and -vd options. ASLTS: Deployed the iASL __METHOD__ macro across the test suite. ---------------------------------------- 14 December 2017. Summary of changes for version 20171214: 1) ACPICA kernel-resident subsystem: Fixed a regression in the external (public) AcpiEvaluateObjectTyped interface where the optional "pathname" argument had inadvertently become a required argument returning an error if omitted (NULL pointer argument). Fixed two possible memory leaks related to the recently developed "late resolution" of reference objects within ASL Package Object definitions. Added two recently defined _OSI strings: "Windows 2016" and "Windows 2017". Mario Limonciello. Implemented and deployed a safer version of the C library function strncpy: AcpiUtSafeStrncpy. The intent is to at least prevent the creation of unterminated strings as a possible result of a standard strncpy. Cleaned up and restructured the global variable file (acglobal.h). There are many changes, but no functional changes. 2) iASL Compiler/Disassembler and Tools: iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the optional OemData field at the end of the table was incorrectly required for proper compilation. It is now correctly an optional field. ASLTS: The entire suite was converted from standard ASL to the ASL+ language, using the ASL-to-ASL+ converter which is integrated into the iASL compiler. A binary compare of all output files has verified the correctness of the conversion. iASL: Fixed the source code build for platforms where "char" is unsigned. This affected the iASL lexer only. Jung-uk Kim. ---------------------------------------- 10 November 2017. Summary of changes for version 20171110: 1) ACPICA kernel-resident subsystem: This release implements full support for ACPI 6.2A: NFIT - Added a new subtable, "Platform Capabilities Structure" No other changes to ACPICA were required, since ACPI 6.2A is primarily an errata release of the specification. Other ACPI table changes: IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy Linton Utilities: Modified the string/integer conversion functions to use internal 64-bit divide support instead of a native divide. On 32-bit platforms, a 64-bit divide typically requires a library function which may not be present in the build (kernel or otherwise). Implemented a targeted error message for timeouts returned from the Embedded Controller device driver. This is seen frequently enough to special-case an AE_TIME returned from an EC operation region access: "Timeout from EC hardware or EC device driver" Changed the "ACPI Exception" message prefix to "ACPI Error" so that all runtime error messages have the identical prefix. 2) iASL Compiler/Disassembler and Tools: AcpiXtract: Fixed a problem with table header detection within the acpidump file. Processing a table could be ended early if a 0x40 (@) appears in the original binary table, resulting in the @ symbol appearing in the decoded ASCII field at the end of the acpidump text line. The symbol caused acpixtract to incorrectly think it had reached the end of the current table and the beginning of a new table. AcpiXtract: Added an option (-f) to ignore some errors during table extraction. This initial implementation ignores non-ASCII and non- printable characters found in the acpidump text file. TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics for ASLTS. This feature is used to track memory allocations from different memory caches within the ACPICA code. At the end of an ASLTS run, these memory statistics are recorded and stored in a log file. Debugger (user-space version): Implemented a simple "Background" command. Creates a new thread to execute a control method in the background, while control returns to the debugger prompt to allow additional commands. Syntax: Background [Arguments] ---------------------------------------- 29 September 2017. Summary of changes for version 20170929: 1) ACPICA kernel-resident subsystem: Redesigned and implemented an improved ASL While() loop timeout mechanism. This mechanism is used to prevent infinite loops in the kernel AML interpreter caused by either non-responsive hardware or incorrect AML code. The new implementation uses AcpiOsGetTimer instead of a simple maximum loop count, and is thus more accurate and constant across different machines. The default timeout is currently 30 seconds, but this may be adjusted later. Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to better reflect the new implementation of the loop timeout mechanism. Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support and to fix an off-by-one error. Jung-uk Kim. Fixed an EFI build problem by updating the makefiles to for a new file that was added, utstrsuppt.c 2) iASL Compiler/Disassembler and Tools: Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This includes support in the table disassembler, compiler, and template generator. iASL: Added an exception for an illegal type of recursive method invocation. If a method creates named objects, the first recursive call will fail at runtime. This change adds an error detection at compile time to catch the problem up front. Note: Marking such a method as "serialized" will not help with this problem, because the same thread can acquire the method mutex more than once. Example compiler and runtime output: Method (MTH1) { Name (INT1, 1) MTH1 () } dsdt.asl 22: MTH1 () Error 6152 - ^ Illegal recursive call to method that creates named objects (MTH1) Previous runtime exception: ACPI Error: [INT1] Namespace lookup failure, AE_ALREADY_EXISTS (20170831/dswload2-465) iASL: Updated support for External() opcodes to improve namespace management and error detection. These changes are related to issues seen with multiple-segment namespace pathnames within External declarations, such as below: External(\_SB.PCI0.GFX0, DeviceObj) External(\_SB.PCI0.GFX0.ALSI) iASL: Implemented support for multi-line error/warning messages. This enables more detailed and helpful error messages as below, from the initial deployment for the duplicate names error: DSDT.iiii 1692: Device(PEG2) { Error 6074 - ^ Name already exists in scope (PEG2) Original name creation/declaration below: DSDT.iiii 93: External(\_SB.PCI0.PEG2, DeviceObj) AcpiXtract: Added additional flexibility to support differing input hex dump formats. Specifically, hex dumps that contain partial disassembly and/or comments within the ACPI table data definition. There exist some dump utilities seen in the field that create this type of hex dump (such as Simics). For example: DSDT @ 0xdfffd0c0 (10999 bytes) Signature DSDT Length 10999 Revision 1 Checksum 0xf3 (Ok) OEM_ID BXPC OEM_table_id BXDSDT OEM_revision 1 Creator_id 1280593481 Creator_revision 537399345 0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00 ... 2af0: 5f 4c 30 46 00 a4 01 Test suite: Miscellaneous changes/fixes: More cleanup and simplification of makefiles Continue compilation of test cases after a compile failure Do not perform binary compare unless both files actually exist iASL: Performed some code/module restructuring. Moved all memory allocation functions to new modules. Two new files, aslallocate.c and aslcache.c ---------------------------------------- 31 August 2017. Summary of changes for version 20170831: 1) ACPICA kernel-resident subsystem: Implemented internal support for full 64-bit addresses that appear in all Generic Address Structure (GAS) structures. Previously, only the lower 32 bits were used. Affects the use of GAS structures in the FADT and other tables, as well as the GAS structures passed to the AcpiRead and AcpiWrite public external interfaces that are used by drivers. Lv Zheng. Added header support for the PDTT ACPI table (Processor Debug Trigger Table). Full support in the iASL Data Table Compiler and disassembler is forthcoming. 2) iASL Compiler/Disassembler and Tools: iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor Properties Topology Table) where a flag bit was specified in the wrong bit position ("Line Size Valid", bit 6). iASL: Implemented support for Octal integer constants as defined by the ASL language grammar, per the ACPI specification. Any integer constant that starts with a zero is an octal constant. For example, Store (037777, Local0) /* Octal constant */ Store (0x3FFF, Local0) /* Hex equivalent */ Store (16383, Local0) /* Decimal equivalent */ iASL: Improved overflow detection for 64-bit string conversions during compilation of integer constants. "Overflow" in this case means a string that represents an integer that is too large to fit into a 64-bit value. Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to the low-order 32 bits with a warning, as previously implemented. Several new exceptions are defined that indicate a 64-bit overflow, as well as the base (radix) that was used during the attempted conversion. Examples: Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF // AE_HEX_OVERFLOW Local0 = 01111222233334444555566667777 // AE_OCTAL_OVERFLOW Local0 = 11112222333344445555666677778888 // AE_DECIMAL_OVERFLOW iASL: Added a warning for the case where a ResourceTemplate is declared with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In this case, the resulting template is created with a single END_TAG descriptor, which is essentially useless. iASL: Expanded the -vw option (ignore specific warnings/remarks) to include compilation error codes as well. ---------------------------------------- 28 July 2017. Summary of changes for version 20170728: 1) ACPICA kernel-resident subsystem: Fixed a regression seen with small resource descriptors that could cause an inadvertent AE_AML_NO_RESOURCE_END_TAG exception. AML interpreter: Implemented a new feature that allows forward references from individual named references within package objects that are contained within blocks of "module-level code". This provides compatibility with other ACPI implementations and supports existing firmware that depends on this feature. Example: Name (ABCD, 1) If (ABCD) /* An If() at module-level */ { Name (PKG1, Package() { INT1 /* Forward reference to object INT1 */ }) Name (INT1, 0x1234) } AML Interpreter: Fixed a problem with the Alias() operator where aliases to some ASL objects were not handled properly. Objects affected are: Mutex, Event, and OperationRegion. AML Debugger: Enhanced to properly handle AML Alias objects. These objects have one level of indirection which was not fully supported by the debugger. Table Manager: Added support to detect and ignore duplicate SSDTs within the XSDT/RSDT. This error in the XSDT has been seen in the field. EFI and EDK2 support: Enabled /WX flag for MSVC builds Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer Added local support for 64-bit multiply and shift operations Added support to compile acpidump.efi on Windows Added OSL function stubs for interfaces not used under EFI Added additional support for the _DMA predefined name. _DMA returns a buffer containing a resource template. This change add support within the resource manager (AcpiWalkResourceBuffer) to walk and parse this list of resource descriptors. Lorenzo Pieralisi 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a problem where the internal input line buffer(s) could overflow if there are very long lines in the input ASL source code file. Implemented buffer management that automatically increases the size of the buffers as necessary. iASL: Added an option (-vx) to "expect" particular remarks, warnings and errors. If the specified exception is not raised during compilation, the compiler emits an error. This is intended to support the ASL test suite, but may be useful in other contexts. iASL: Implemented a new predefined macro, __METHOD__, which returns a string containing the name of the current control method that is being compiled. iASL: Implemented debugger and table compiler support for the SDEI ACPI table (Software Delegated Exception Interface). James Morse Unix/Linux makefiles: Added an option to disable compile optimizations. The disable occurs when the NOOPT flag is set to TRUE. theracermaster@gmail.com Acpidump: Added support for multiple DSDT and FACS tables. This can occur when there are different tables for 32-bit versus 64-bit. Enhanced error reporting for the ASL test suite (ASLTS) by removing unnecessary/verbose text, and emit the actual line number where an error has occurred. These changes are intended to improve the usefulness of the test suite. ---------------------------------------- 29 June 2017. Summary of changes for version 20170629: 1) ACPICA kernel-resident subsystem: Tables: Implemented a deferred ACPI table verification. This is useful for operating systems where the tables cannot be verified in the early initialization stage due to early memory mapping limitations on some architectures. Lv Zheng. Tables: Removed the signature validation for dynamically loaded tables. Provides compatibility with other ACPI implementations. Previously, only SSDT tables were allowed, as per the ACPI specification. Now, any table signature can be used via the Load() operator. Lv Zheng. Tables: Fixed several mutex issues that could cause errors during table acquisition. Lv Zheng. Tables: Fixed a problem where an ACPI warning could be generated if a null pointer was passed to the AcpiPutTable interface. Lv Zheng. Tables: Added a mechanism to handle imbalances for the AcpiGetTable and AcpiPutTable interfaces. This applies to the "late stage" table loading when the use of AcpiPutTable is no longer required (since the system memory manager is fully running and available). Lv Zheng. Fixed/Reverted a regression during processing of resource descriptors that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG exception in this case. Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the I/O Remapping specification. Robin Murphy Interpreter: Fixed a possible fault if an Alias operator with an invalid or duplicate target is encountered during Alias creation in AcpiExCreateAlias. Alex James Added an option to use designated initializers for function pointers. Kees Cook 2) iASL Compiler/Disassembler and Tools: iASL: Allow compilation of External declarations with target pathnames that refer to existing named objects within the table. Erik Schmauss. iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a FieldUnit name also is declared via External in the same table. Erik Schmauss. iASL: Allow existing scope names within pathnames used in External statements. For example: External (ABCD.EFGH) // ABCD exists, but EFGH is truly external Device (ABCD) iASL: IORT ACPI table: Implemented changes required to decode the new Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table compiler. Ganapatrao Kulkarni Disassembler: Don't abort disassembly on errors from External() statements. Erik Schmauss. Disassembler: fixed a possible fault when one of the Create*Field operators references a Resource Template. ACPICA Bugzilla 1396. iASL: In the source code, resolved some naming inconsistences across the parsing support. Fixes confusion between "Parse Op" and "Parse Node". Adds a new file, aslparseop.c ---------------------------------------- 31 May 2017. Summary of changes for version 20170531: 0) ACPI 6.2 support: The ACPI specification version 6.2 has been released and is available at http://uefi.org/specifications This version of ACPICA fully supports the ACPI 6.2 specification. Changes are summarized below. New ACPI tables (Table Compiler/Disassembler/Templates): HMAT (Heterogeneous Memory Attributes Table) WSMT (Windows SMM Security Mitigation Table) PPTT (Processor Properties Topology Table) New subtables for existing ACPI tables: HEST (New subtable, Arch-deferred machine check) SRAT (New subtable, Arch-specific affinity structure) PCCT (New subtables, Extended PCC subspaces (types 3 and 4)) Simple updates for existing ACPI tables: BGRT (two new flag bits) HEST (New bit defined for several subtables, GHES_ASSIST) New Resource Descriptors and Resource macros (Compiler/Disassembler): PinConfig() PinFunction() PinGroup() PinGroupConfig() PinGroupFunction() New type for hardware error notification (section 18.3.2.9) New predefined names/methods (Compiler/Interpreter): _HMA (Heterogeneous Memory Attributes) _LSI (Label Storage Information) _LSR (Label Storage Read) _LSW (Label Storage Write) ASL grammar/macro changes (Compiler): For() ASL macro, implemented with the AML while operator Extensions to Concatenate operator Support for multiple definition blocks in same ASL file Clarification for Buffer operator Allow executable AML code underneath all scopes (Devices, etc.) Clarification/change for the _OSI return value ASL grammar update for reference operators Allow a zero-length string for AML filename in DefinitionBlock Miscellaneous: New device object notification value Remove a notify value (0x0C) for graceful shutdown New UUIDs for processor/cache properties and physical package property New _HID, ACPI0014 (Wireless Power Calibration Device) 1) ACPICA kernel-resident subsystem: Added support to disable ACPI events on hardware-reduced platforms. Eliminates error messages of the form "Could not enable fixed event". Lv Zheng Fixed a problem using Device/Thermal objects with the ObjectType and DerefOf ASL operators. This support had not been fully/properly implemented. Fixed a problem where if a Buffer object containing a resource template was longer than the actual resource template, an error was generated -- even though the AML is legal. This case has been seen in the field. Fixed a problem with the header definition of the MADT PCAT_COMPAT flag. The values for DUAL_PIC and MULTIPLE_APIC were reversed. Added header file changes for the TPM2 ACPI table. Update to new version of the TCG specification. Adds a new TPM2 subtable for ARM SMC. Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex. These interfaces are intended to be used only in conjunction with the predefined _DLM method (Device Lock Method). "This object appears in a device scope when AML access to the device must be synchronized with the OS environment". Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total Debug Version: 204.0K Code, 84.3K Data, 288.3K Total Previous Release: Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a problem where an External() declaration could not refer to a Field Unit. Erik Schmauss. Disassembler: Improved support for the Switch/Case operators. This feature will disassemble AML code back to the original Switch operators when possible, instead of an If..Else sequence. David Box iASL and disassembler: Improved the handling of multiple extraneous parentheses for both ASL input and disassembled ASL output. Improved the behavior of the iASL compiler and disassembler to detect improper use of external declarations Disassembler: Now aborts immediately upon detection of an unknown AML opcode. The AML parser has no real way to recover from this, and can result in the creation of an ill-formed parse tree that causes errors later during the disassembly. All tools: Fixed a problem where the Unix application OSL did not handle control-c correctly. For example, a control-c could incorrectly wake the debugger. AcpiExec: Improved the Control-C handling and added a handler for segmentation faults (SIGSEGV). Supports both Windows and Unix-like environments. Reduced the verbosity of the generic unix makefiles. Previously, each compilation displayed the full set of compiler options. This has been eliminated as the options are easily inspected within the makefiles. Each compilation now results in a single line of output. ---------------------------------------- 03 March 2017. Summary of changes for version 20170303: 0) ACPICA licensing: The licensing information at the start of each source code module has been updated. In addition to the Intel license, the dual GPLv2/BSD license has been added for completeness. Now, a single version of the source code should be suitable for all ACPICA customers. This is the major change for this release since it affects all source code modules. 1) ACPICA kernel-resident subsystem: Fixed two issues with the common asltypes.h header that could cause problems in some environments: (Kim Jung-uk) Removed typedef for YY_BUFFER_STATE ? Fixes an error with earlier versions of Flex. Removed use of FILE typedef (which is only defined in stdio.h) 2) iASL Compiler/Disassembler and Tools: Disassembler: fixed a regression introduced in 20170224. A fix for a memory leak related to resource descriptor tags (names) could fault when the disassembler was generated with 64-bit compilers. The ASLTS test suite has been updated to implement a new testing architecture. During generation of the suite from ASL source, both the ASL and ASL+ compilers are now validated, as well as the disassembler itself (Erik Schmauss). The architecture executes as follows: For every ASL source module: Compile (legacy ASL compilation) Disassemble the resulting AML to ASL+ source code Compile the new ASL+ module Perform a binary compare on the legacy AML and the new ASL+ AML The ASLTS suite then executes normally using the AML binaries. ---------------------------------------- 24 February 2017. Summary of changes for version 20170224: 1) ACPICA kernel-resident subsystem: Interpreter: Fixed two issues with the control method return value auto- repair feature, where an attempt to double-delete an internal object could result in an ACPICA warning (for _CID repair and others). No fault occurs, however, because the attempted deletion (actually a release to an internal cache) is detected and ignored via object poisoning. Debugger: Fixed an AML interpreter mutex issue during the single stepping of control methods. If certain debugger commands are executed during stepping, a mutex acquire/release error could occur. Lv Zheng. Fixed some issues generating ACPICA with the Intel C compiler by restoring the original behavior and compiler-specific include file in acenv.h. Lv Zheng. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total Debug Version: 207.5K Code, 82.7K Data, 290.2K Total Previous Release: Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 2) iASL Compiler/Disassembler and Tools: iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion tool has been designed, implemented, and included in this release. The key feature of this utility is that the original comments within the input ASL file are preserved during the conversion process, and included within the converted ASL+ file -- thus creating a transparent conversion of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss. Usage: iasl -ca // Output is a .dsl file with converted code iASL/Disassembler: Improved the detection and correct disassembly of Switch/Case operators. This feature detects sequences of if/elseif/else operators that originated from ASL Switch/Case/Default operators and emits the original operators. David Box. iASL: Improved the IORT ACPI table support in the following areas. Lv Zheng: Clear MappingOffset if the MappingCount is zero. Fix the disassembly of the SMMU GSU interrupt offset. Update the template file for the IORT table. Disassembler: Enhanced the detection and disassembly of resource template/descriptor within a Buffer object. An EndTag descriptor is now required to have a zero second byte, since all known ASL compilers emit this. This helps eliminate incorrect decisions when a buffer is disassembled (false positives on resource templates). ---------------------------------------- 19 January 2017. Summary of changes for version 20170119: 1) General ACPICA software: Entire source code base: Added the 2017 copyright to all source code legal/licensing module headers and utility/tool signons. This includes the standard Linux dual-license header. This affects virtually every file in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and the ACPICA test suite. 2) iASL Compiler/Disassembler and Tools: iASL: Removed/fixed an inadvertent remark when a method argument containing a reference is used as a target operand within the method (and never used as a simple argument), as in the example below. Jeffrey Hugo. dsdt.asl 1507: Store(0x1, Arg0) Remark 2146 - ^ Method Argument is never used (Arg0) All tools: Removed the bit width of the compiler that generated the tool from the common signon for all user space tools. This proved to be confusing and unnecessary. This includes similar removal of HARDWARE_NAME from the generic makefiles (Thomas Petazzoni). Example below. Old: ASL+ Optimizing Compiler version 20170119-32 ASL+ Optimizing Compiler version 20170119-64 New: ASL+ Optimizing Compiler version 20170119 ---------------------------------------- 22 December 2016. Summary of changes for version 20161222: 1) ACPICA kernel-resident subsystem: AML Debugger: Implemented a new mechanism to simplify and enhance debugger integration into all environments, including kernel debuggers and user-space utilities, as well as remote debug services. This mechanism essentially consists of new OSL interfaces to support debugger initialization/termination, as well as wait/notify interfaces to perform the debugger handshake with the host. Lv Zheng. New OSL interfaces: AcpiOsInitializeDebugger (void) AcpiOsTerminateDebugger (void) AcpiOsWaitCommandReady (void) AcpiOsNotifyCommandComplete (void) New OS services layer: osgendbg.c -- Example implementation, and used for AcpiExec Update for Generic Address Space (GAS) support: Although the AccessWidth and/or BitOffset fields of the GAS are not often used, this change now fully supports these fields. This affects the internal support for FADT registers, registers in other ACPI data tables, and the AcpiRead and AcpiWrite public interfaces. Lv Zheng. Sleep support: In order to simplify integration of ACPI sleep for the various host operating systems, a new OSL interface has been introduced. AcpiOsEnterSleep allows the host to perform any required operations before the final write to the sleep control register(s) is performed by ACPICA. Lv Zheng. New OSL interface: AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue) Called from these internal interfaces: AcpiHwLegacySleep AcpiHwExtendedSleep EFI support: Added a very small EFI/ACPICA example application. Provides a simple demo for EFI integration, as well as assisting with resolution of issues related to customer ACPICA/EFI integration. Lv Zheng. See: source/tools/efihello/efihello.c Local C library: Implemented several new functions to enhance ACPICA portability, for environments where these clib functions are not available (such as EFI). Lv Zheng: putchar getchar strpbrk strtok memmove Fixed a regression where occasionally a valid resource descriptor was incorrectly detected as invalid at runtime, and a AE_AML_NO_RESOURCE_END_TAG was returned. Fixed a problem with the recently implemented support that enables control method invocations as Target operands to many ASL operators. Warnings of this form: "Needed type [Reference], found [Processor]" were seen at runtime for some method invocations. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total Debug Version: 201.7K Code, 82.7K Data, 284.4K Total Previous Release: Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Enhanced output by adding the capability to detect and disassemble ASL Switch/Case statements back to the original ASL source code instead of if/else blocks. David Box. AcpiHelp: Split a large file into separate files based upon functionality/purpose. New files are: ahaml.c ahasl.c ---------------------------------------- 17 November 2016. Summary of changes for version 20161117: 1) ACPICA kernel-resident subsystem: Table Manager: Fixed a regression introduced in 20160729, "FADT support cleanup". This was an attempt to remove all references in the source to the FADT version 2, which never was a legal version number. It was skipped because it was an early version of 64-bit support that was eventually abandoned for the current 64-bit support. Interpreter: Fixed a problem where runtime implicit conversion was incorrectly disabled for the ASL operators below. This brings the behavior into compliance with the ACPI specification: FromBCD ToBCD ToDecimalString ToHexString ToInteger ToBuffer Table Manager: Added a new public interface, AcpiPutTable, used to release and free an ACPI table returned by AcpiGetTable and related interfaces. Lv Zheng. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total Debug Version: 201.3K Code, 82.7K Data, 284.0K Total Previous Release: Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Fixed a regression for disassembly of Resource Template. Detection of templates in the AML stream missed some types of templates. iASL: Fixed a problem where an Access Size error was returned for the PCC address space when the AccessSize of the GAS register is greater than a DWORD. Hoan Tran. iASL: Implemented several grammar changes for the operators below. These changes are slated for the next version of the ACPI specification: RefOf - Disallow method invocation as an operand CondRefOf - Disallow method invocation as an operand DerefOf - Disallow operands that use the result from operators that do not return a reference (Changed TermArg to SuperName). iASL: Control method invocations are now allowed for Target operands, as per the ACPI specification. Removed error for using a control method invocation as a Target operand. Disassembler: Improved detection of Resource Templates, Unicode, and Strings within Buffer objects. These subtypes do not contain a specific opcode to indicate the originating ASL code, and they must be detected by other means within the disassembler. iASL: Implemented an optimization improvement for 32-bit ACPI tables (DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode only after 64-bit to 32-bit truncation. A truncation warning message is still emitted, however. AcpiXtract: Implemented handling for both types of line terminators (LF or CR/LF) so that it can accept AcpiDump output files from any system. Peter Wu. AcpiBin: Added two new options for comparing AML files: -a: compare and display ALL mismatches -o: start compare at this offset into the second file ---------------------------------------- 30 September 2016. Summary of changes for version 20160930: 1) ACPICA kernel-resident subsystem: Fixed a regression in the internal AcpiTbFindTable function where a non AE_OK exception could inadvertently be returned even if the function did not fail. This problem affects the following operators: DataTableRegion LoadTable Fixed a regression in the LoadTable operator where a load to any namespace location other than the root no longer worked properly. Increased the maximum loop count value that will result in the AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to prevent infinite loops within the AML interpreter and thus the host OS kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to 1,048,575). Moved the AcpiGbl_MaxLoopIterations configuration variable to the public acpixf.h file. This allows hosts to easily configure the maximum loop count at runtime. Removed an illegal character in the strtoul64.c file. This character caused errors with some C compilers. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total Debug Version: 200.7K Code, 82.1K Data, 282.8K Total Previous Release: Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Fixed a problem with the conversion of Else{If{ blocks into the simpler ASL ElseIf keyword. During the conversion, a trailing If block could be lost and missing from the disassembled output. iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+, the missing rule caused a parse error when using the Index operator as an operand to ObjectType. This construct now compiles properly. Example: ObjectType(PKG1[4]). iASL: Correctly handle unresolved symbols in the hardware map file (-lm option). Previously, unresolved symbols could cause a protection fault. Such symbols are now marked as unresolved in the map file. iASL: Implemented support to allow control method invocations as an operand to the ASL DeRefOf operator. Example: DeRefOf(MTH1(Local0)) Disassembler: Improved support for the ToPLD ASL macro. Detection of a possible _PLD buffer now includes examination of both the normal buffer length (16 or 20) as well as the surrounding AML package length. Disassembler: Fixed a problem with the decoding of complex expressions within the Divide operator for ASL+. For the case where both the quotient and remainder targets are specified, the entire statement cannot be disassembled. Previously, the output incorrectly contained a mix of ASL- and ASL+ operators. This mixed statement causes a syntax error when compiled. Example: Divide (Add (INT1, 6), 128, RSLT, QUOT) // was incorrectly disassembled to: Divide (INT1 + 6, 128, RSLT, QUOT) iASL/Tools: Added support to process AML and non-AML ACPI tables consistently. For the disassembler and AcpiExec, allow all types of ACPI tables (AML and data tables). For the iASL -e option, allow only AML tables (DSDT/SSDT). ---------------------------------------- 31 August 2016. Summary of changes for version 20160831: 1) ACPICA kernel-resident subsystem: Improve support for the so-called "module-level code", which is defined to be math, logical and control AML opcodes that appear outside of any control method. This change improves the support by adding more opcodes that can be executed in the manner. Some other issues have been solved, and the ASL grammar changes to support such code under all scope operators (Device, etc.) are complete. Lv Zheng. UEFI support: these OSL functions have been implemented. This is an additional step toward supporting the AcpiExec utility natively (with full hardware access) under UEFI. Marcelo Ferreira. AcpiOsReadPciConfiguration AcpiOsWritePciConfiguration Fixed a possible mutex error during control method auto-serialization. Lv Zheng. Updated support for the Generic Address Structure by fully implementing all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv Zheng. Updated the return value for the internal _OSI method. Instead of 0xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF for 64-bit ACPI tables. This fixes an incompatibility with other ACPI implementations, and will be reflected and clarified in the next version of the ACPI specification. Implemented two new table events that can be passed to an ACPICA table handler. These events are used to indicate a table installation or uninstallation. These events are used in addition to existed table load and unload events. Lv Zheng. Implemented a cleanup for all internal string-to-integer conversions. Consolidate multiple versions of this functionality and limit possible bases to either 10 or 16 to simplify the code. Adds a new file, utstrtoul64. Cleanup the inclusion order of the various compiler-specific headers. This simplifies build configuration management. The compiler-specific headers are now split out from the host-specific headers. Lv Zheng. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 2) iASL Compiler/Disassembler and Tools: iASL/AcpiExec: Added a command line option to display the build date/time of the tool (-vd). This can be useful to verify that the correct version of the tools are being used. AML Debugger: Implemented a new subcommand ("execute predef") to execute all predefined control methods and names within the current namespace. This can be useful for debugging problems with ACPI tables and the ACPI namespace. ---------------------------------------- 29 July 2016. Summary of changes for version 20160729: 1) ACPICA kernel-resident subsystem: Implemented basic UEFI support for the various ACPICA tools. This includes: 1) An OSL to implement the various AcpiOs* interfaces on UEFI. 2) Support to obtain the ACPI tables on UEFI. 3) Local implementation of required C library functions not available on UEFI. 4) A front-end (main) function for the tools for UEFI-related initialization. The initial deployment of this support is the AcpiDump utility executing as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit"). Current environments supported are Linux/Unix. MSVC generation is not supported at this time. See the generate/efi/README file for build instructions. Lv Zheng. Future plans include porting the AcpiExec utility to execute natively on the platform with I/O and memory access. This will allow viewing/dump of the platform namespace and native execution of ACPI control methods that access the actual hardware. To fully implement this support, the OSL functions below must be implemented with UEFI interfaces. Any community help in the implementation of these functions would be appreciated: AcpiOsReadPort AcpiOsWritePort AcpiOsReadMemory AcpiOsWriteMemory AcpiOsReadPciConfiguration AcpiOsWritePciConfiguration Restructured and standardized the C library configuration for ACPICA, resulting in the various configuration options below. This includes a global restructuring of the compiler-dependent and platform-dependent include files. These changes may affect the existing platform-dependent configuration files on some hosts. Lv Zheng. The current C library configuration options appear below. For any issues, it may be helpful to examine the existing compiler-dependent and platform-dependent files as examples. Lv Zheng. 1) Linux kernel: ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C library. ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 2) Unix/Windows/BSD applications: ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C library. ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 3) UEFI applications: ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C library. ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library. 4) UEFI applications (EDK2/StdLib): ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library. ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library. AML interpreter: "module-level code" support. Allows for execution of so- called "executable" AML code (math/logical operations, etc.) outside of control methods not just at the module level (top level) but also within any scope declared outside of a control method - Scope{}, Device{}, Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng. Simplified the configuration of the "maximum AML loops" global option by adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be modified at runtime. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total Debug Version: 199.0K Code, 81.8K Data, 280.8K Total 2) iASL Compiler/Disassembler and Tools: iASL: Add full support for the RASF ACPI table (RAS Features Table). Includes disassembler, data table compiler, and header support. iASL Expand "module-level code" support. Allows for compilation/disassembly of so-called "executable" AML code (math/logical operations, etc.) outside of control methods not just at the module level (top level) but also within any scope declared outside of a control method - Scope{}, Device{}, Processor{}, PowerResource{}, and ThermalZone{}. AcpiDump: Added support for dumping all SSDTs on newer versions of Windows. These tables are now easily available -- SSDTs are not available through the registry on older versions. ---------------------------------------- 27 May 2016. Summary of changes for version 20160527: 1) ACPICA kernel-resident subsystem: Temporarily reverted the new arbitrary bit length/alignment support in AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been a number of regressions with the new code that need to be fully resolved and tested before this support can be finally integrated into ACPICA. Apologies for any inconveniences these issues may have caused. The ACPI message macros are not configurable (ACPI_MSG_ERROR, ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR, and ACPI_MSG_BIOS_WARNING). Lv Zheng. Fixed a couple of GCC warnings associated with the use of the -Wcast-qual option. Adds a new return macro, return_STR. Junk-uk Kim. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total Debug Version: 201.5K Code, 82.2K Data, 283.7K Total Previous Release: Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total Debug Version: 200.9K Code, 82.2K Data, 283.1K Total ---------------------------------------- 22 April 2016. Summary of changes for version 20160422: 1) ACPICA kernel-resident subsystem: Fixed a regression in the GAS (generic address structure) arbitrary bit support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior and incorrect return values. Lv Zheng. ACPICA BZ 1270. ACPI 6.0: Added support for new/renamed resource macros. One new argument was added to each of these macros, and the original name has been deprecated. The AML disassembler will always disassemble to the new names. Support for the new macros was added to iASL, disassembler, resource manager, and the acpihelp utility. ACPICA BZ 1274. I2cSerialBus -> I2cSerialBusV2 SpiSerialBus -> SpiSerialBusV2 UartSerialBus -> UartSerialBusV2 ACPI 6.0: Added support for a new integer field that was appended to the package object returned by the _BIX method. This adds iASL compile-time and AML runtime error checking. ACPICA BZ 1273. ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm Subspace Type2" (Headers, Disassembler, and data table compiler). Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total Debug Version: 201.5K Code, 82.2K Data, 283.7K Total Previous Release: Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented an ASL grammar extension to allow/enable executable "module-level code" to be created and executed under the various operators that create new scopes. This type of AML code is already supported in all known AML interpreters, and the grammar change will appear in the next version of the ACPI specification. Simplifies the conditional runtime creation of named objects under these object types: Device PowerResource Processor Scope ThermalZone iASL: Implemented a new ASL extension, a "For" loop macro to add greater ease-of-use to the ASL language. The syntax is similar to the corresponding C operator, and is implemented with the existing AML While opcode -- thus requiring no changes to existing AML interpreters. For (Initialize, Predicate, Update) {TermList} Grammar: ForTerm := For ( Initializer // Nothing | TermArg => ComputationalData Predicate // Nothing | TermArg => ComputationalData Update // Nothing | TermArg => ComputationalData ) {TermList} iASL: The _HID/_ADR detection and validation has been enhanced to search under conditionals in order to allow these objects to be conditionally created at runtime. iASL: Fixed several issues with the constant folding feature. The improvement allows better detection and resolution of statements that can be folded at compile time. ACPICA BZ 1266. iASL/Disassembler: Fixed a couple issues with the Else{If{}...} conversion to the ASL ElseIf operator where incorrect ASL code could be generated. iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where sometimes an extra (and extraneous) set of parentheses were emitted for some combinations of operators. Although this did not cause any problems with recompilation of the disassembled code, it made the code more difficult to read. David Box. ACPICA BZ 1231. iASL: Changed to ignore the unreferenced detection for predefined names of resource descriptor elements, when the resource descriptor is created/defined within a control method. iASL: Disassembler: Fix a possible fault with externally declared Buffer objects. ---------------------------------------- 18 March 2016. Summary of changes for version 20160318: 1) ACPICA kernel-resident subsystem: Added support for arbitrary bit lengths and bit offsets for registers defined by the Generic Address Structure. Previously, only aligned bit lengths of 8/16/32/64 were supported. This was sufficient for many years, but recently some machines have been seen that require arbitrary bit- level support. ACPICA BZ 1240. Lv Zheng. Fixed an issue where the \_SB._INI method sometimes must be evaluated before any _REG methods are evaluated. Lv Zheng. Implemented several changes related to ACPI table support (Headers/Disassembler/TableCompiler): NFIT: For ACPI 6.1, updated to add some additional new fields and constants. FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 6). DMAR: Added new constants per the 10/2014 DMAR spec. IORT: Added new subtable per the 10/2015 IORT spec. HEST: For ACPI 6.1, added new constants and new subtable. DBG2: Added new constants per the 12/2015 DBG2 spec. FPDT: Fixed several incorrect fields, add the FPDT boot record structure. ACPICA BZ 1249. ERST/EINJ: Updated disassembler with new "Execute Timings" actions. Updated header support for the DMAR table to match the current version of the related spec. Added extensions to the ASL Concatenate operator to allow any ACPI object to be passed as an operand. Any object other than Integer/String/Buffer simply returns a string containing the object type. This extends the usefulness of the Printf macros. Previously, Concatenate would abort the control method if a non-data object was encountered. ACPICA source code: Deployed the C "const" keyword across the source code where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD). Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total Debug Version: 201.0K Code, 82.0K Data, 283.0K Total Previous Release: Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 2) iASL Compiler/Disassembler and Tools: iASL/Disassembler: Improved the heuristic used to determine the number of arguments for an externally defined control method (a method in another table). Although this is an improvement, there is no deterministic way to "guess" the number of method arguments. Only the ACPI 6.0 External opcode will completely solve this problem as it is deployed (automatically) in newer BIOS code. iASL/Disassembler: Fixed an ordering issue for emitted External() ASL statements that could cause errors when the disassembled file is compiled. ACPICA BZ 1243. David Box. iASL: Fixed a regression caused by the merger of the two versions of the local strtoul64. Because of a dependency on a global variable, strtoul64 could return an error for integers greater than a 32-bit value. ACPICA BZ 1260. iASL: Fixed a regression where a fault could occur for an ASL Return statement if it invokes a control method that is not resolved. ACPICA BZ 1264. AcpiXtract: Improved input file validation: detection of binary files and non-acpidump text files. ---------------------------------------- 12 February 2016. Summary of changes for version 20160212: 1) ACPICA kernel-resident subsystem: Implemented full support for the ACPI 6.1 specification (released in January). This version of the specification is available at: http://www.uefi.org/specifications Only a relatively small number of changes were required in ACPICA to support ACPI 6.1, in these areas: - New predefined names - New _HID values - A new subtable for HEST - A few other header changes for new values Ensure \_SB_._INI is executed before any _REG methods are executed. There appears to be existing BIOS code that relies on this behavior. Lv Zheng. Reverted a change made in version 20151218 which enabled method invocations to be targets of various ASL operators (SuperName and Target grammar elements). While the new behavior is supported by the ACPI specification, other AML interpreters do not support this behavior and never will. The ACPI specification will be updated for ACPI 6.2 to remove this support. Therefore, the change was reverted to the original ACPICA behavior. ACPICA now supports the GCC 6 compiler. Current Release: (Note: build changes increased sizes) Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total Debug Version: 200.4K Code, 82.0K Data, 282.4K Total Previous Release: Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total Debug Version: 200.4K Code, 81.9K Data, 282.3K Total 2) iASL Compiler/Disassembler and Tools: Completed full support for the ACPI 6.0 External() AML opcode. The compiler emits an external AML opcode for each ASL External statement. This opcode is used by the disassembler to assist with the disassembly of external control methods by specifying the required number of arguments for the method. AML interpreters do not use this opcode. To ensure that interpreters do not even see the opcode, a block of one or more external opcodes is surrounded by an "If(0)" construct. As this feature becomes commonly deployed in BIOS code, the ability of disassemblers to correctly disassemble AML code will be greatly improved. David Box. iASL: Implemented support for an optional cross-reference output file. The -lx option will create a the cross-reference file with the suffix "xrf". Three different types of cross-reference are created in this file: - List of object references made from within each control method - Invocation (caller) list for each user-defined control method - List of references to each non-method object in the namespace iASL: Method invocations as ASL Target operands are now disallowed and flagged as errors in preparation for ACPI 6.2 (see the description of the problem above). ---------------------------------------- 8 January 2016. Summary of changes for version 20160108: 1) ACPICA kernel-resident subsystem: Updated all ACPICA copyrights and signons to 2016: Added the 2016 copyright to all source code module headers and utility/tool signons. This includes the standard Linux dual-license header. This affects virtually every file in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and the ACPICA test suite. Fixed a regression introduced in version 20151218 concerning the execution of so-called module-level ASL/AML code. Namespace objects created under a module-level If() construct were not properly/fully entered into the namespace and could cause an interpreter fault when accessed. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total Debug Version: 200.4K Code, 81.9K Data, 282.4K Total Previous Release: Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 2) iASL Compiler/Disassembler and Tools: Fixed a problem with the compilation of the GpioIo and GpioInt resource descriptors. The _PIN field name was incorrectly defined to be an array of 32-bit values, but the _PIN values are in fact 16 bits each. This would cause incorrect bit width warnings when using Word (16-bit) fields to access the descriptors. ---------------------------------------- 18 December 2015. Summary of changes for version 20151218: 1) ACPICA kernel-resident subsystem: Implemented per-AML-table execution of "module-level code" as individual ACPI tables are loaded into the namespace during ACPICA initialization. In other words, any module-level code within an AML table is executed immediately after the table is loaded, instead of batched and executed after all of the tables have been loaded. This provides compatibility with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, David Box. To fully support the feature above, the default operation region handlers for the SystemMemory, SystemIO, and PCI_Config address spaces are now installed before any ACPI tables are loaded. This enables module-level code to access these address spaces during the table load and module- level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David Box. Implemented several changes to the internal _REG support in conjunction with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples utilities for the changes above. Although these tools were changed, host operating systems that simply use the default handlers for SystemMemory, SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. For example, in the code below, DEV1 is conditionally added to the namespace by the DSDT via module-level code that accesses an operation region. The SSDT references DEV1 via the Scope operator. DEV1 must be created immediately after the DSDT is loaded in order for the SSDT to successfully reference DEV1. Previously, this code would cause an AE_NOT_EXIST exception during the load of the SSDT. Now, this code is fully supported by ACPICA. DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) { OperationRegion (OPR1, SystemMemory, 0x400, 32) Field (OPR1, AnyAcc, NoLock, Preserve) { FLD1, 1 } If (FLD1) { Device (\DEV1) { } } } DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) { External (\DEV1, DeviceObj) Scope (\DEV1) { } } Fixed an AML interpreter problem where control method invocations were not handled correctly when the invocation was itself a SuperName argument to another ASL operator. In these cases, the method was not invoked. ACPICA BZ 1002. Affects the following ASL operators that have a SuperName argument: Store Acquire, Wait CondRefOf, RefOf Decrement, Increment Load, Unload Notify Signal, Release, Reset SizeOf Implemented automatic String-to-ObjectReference conversion support for packages returned by predefined names (such as _DEP). A common BIOS error is to add double quotes around an ObjectReference namepath, which turns the reference into an unexpected string object. This support detects the problem and corrects it before the package is returned to the caller that invoked the method. Lv Zheng. Implemented extensions to the Concatenate operator. Concatenate now accepts any type of object, it is not restricted to simply Integer/String/Buffer. For objects other than these 3 basic data types, the argument is treated as a string containing the name of the object type. This expands the utility of Concatenate and the Printf/Fprintf macros. ACPICA BZ 1222. Cleaned up the output of the ASL Debug object. The timer() value is now optional and no longer emitted by default. Also, the basic data types of Integer/String/Buffer are simply emitted as their values, without a data type string -- since the data type is obvious from the output. ACPICA BZ 1221. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total Debug Version: 200.3K Code, 81.9K Data, 282.3K Total Previous Release: Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed some issues with the ASL Include() operator. This operator was incorrectly defined in the iASL parser rules, causing a new scope to be opened for the code within the include file. This could lead to several issues, including allowing ASL code that is technically illegal and not supported by AML interpreters. Note, this does not affect the related #include preprocessor operator. ACPICA BZ 1212. iASL/Disassembler: Implemented support for the ASL ElseIf operator. This operator is essentially an ASL macro since there is no AML opcode associated with it. The code emitted by the iASL compiler for ElseIf is an Else opcode followed immediately by an If opcode. The disassembler will now emit an ElseIf if it finds an Else immediately followed by an If. This simplifies the decoded ASL, especially for deeply nested If..Else and large Switch constructs. Thus, the disassembled code more closely follows the original source ASL. ACPICA BZ 1211. Example: Old disassembly: Else { If (Arg0 == 0x02) { Local0 = 0x05 } } New disassembly: ElseIf (Arg0 == 0x02) { Local0 = 0x05 } AcpiExec: Added support for the new module level code behavior and the early region installation. This required a small change to the initialization, since AcpiExec must install its own operation region handlers. AcpiExec: Added support to make the debug object timer optional. Default is timer disabled. This cleans up the debug object output -- the timer data is rarely used. AcpiExec: Multiple ACPI tables are now loaded in the order that they appear on the command line. This can be important when there are interdependencies/references between the tables. iASL/Templates. Add support to generate template files with multiple SSDTs within a single output file. Also added ommand line support to specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 1223, 1225. ---------------------------------------- 24 November 2015. Summary of changes for version 20151124: 1) ACPICA kernel-resident subsystem: Fixed a possible regression for a previous update to FADT handling. The FADT no longer has a fixed table ID, causing some issues with code that was hardwired to a specific ID. Lv Zheng. Fixed a problem where the method auto-serialization could interfere with the current SyncLevel. This change makes the auto-serialization support transparent to the SyncLevel support and management. Removed support for the _SUB predefined name in AcpiGetObjectInfo. This interface is intended for early access to the namespace during the initial namespace device discovery walk. The _SUB method has been seen to access operation regions in some cases, causing errors because the operation regions are not fully initialized. AML Debugger: Fixed some issues with the terminate/quit/exit commands that can cause faults. Lv Zheng. AML Debugger: Add thread ID support so that single-step mode only applies to the AML Debugger thread. This prevents runtime errors within some kernels. Lv Zheng. Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx methods that are invoked by this interface are optional, removed warnings emitted for the case where one or more of these methods do not exist. ACPICA BZ 1208, original change by Prarit Bhargava. Made a major pass through the entire ACPICA source code base to standardize formatting that has diverged a bit over time. There are no functional changes, but this will of course cause quite a few code differences from the previous ACPICA release. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total Debug Version: 199.6K Code, 81.8K Data, 281.4K Total Previous Release: Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 2) iASL Compiler/Disassembler and Tools: iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple definition blocks within a single ASL file and the resulting AML file. Support for this type of file was also added to the various tools that use binary AML files: acpiexec, acpixtract, and the AML disassembler. The example code below shows two definition blocks within the same file: DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 0x12345678) { } DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) { } iASL: Enhanced typechecking for the Name() operator. All expressions for the value of the named object must be reduced/folded to a single constant at compile time, as per the ACPI specification (the AML definition of Name()). iASL: Fixed some code indentation issues for the -ic and -ia options (C and assembly headers). Now all emitted code correctly begins in column 1. iASL: Added an error message for an attempt to open a Scope() on an object defined in an SSDT. The DSDT is always loaded into the namespace first, so any attempt to open a Scope on an SSDT object will fail at runtime. ---------------------------------------- 30 September 2015. Summary of changes for version 20150930: 1) ACPICA kernel-resident subsystem: Debugger: Implemented several changes and bug fixes to assist support for the in-kernel version of the AML debugger. Lv Zheng. - Fix the "predefined" command for in-kernel debugger. - Do not enter debug command loop for the help and version commands. - Disallow "execute" command during execution/single-step of a method. Interpreter: Updated runtime typechecking for all operators that have target operands. The operand is resolved and validated that it is legal. For example, the target cannot be a non-data object such as a Device, Mutex, ThermalZone, etc., as per the ACPI specification. Debugger: Fixed the double-mutex user I/O handshake to work when local deadlock detection is enabled. Debugger: limited display of method locals and arguments (LocalX and ArgX) to only those that have actually been initialized. This prevents lines of extraneous output. Updated the definition of the NFIT table to correct the bit polarity of one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total Debug Version: 199.3K Code, 81.4K Data, 280.7K Total Previous Release: Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 2) iASL Compiler/Disassembler and Tools: iASL: Improved the compile-time typechecking for operands of many of the ASL operators: -- Added an option to disable compiler operand/operator typechecking (- ot). -- For the following operators, the TermArg operands are now validated when possible to be Integer data objects: BankField, OperationRegion, DataTableRegion, Buffer, and Package. -- Store (Source, Target): Both the source and target operands are resolved and checked that the operands are both legal. For example, neither operand can be a non-data object such as a Device, Mutex, ThermalZone, etc. Note, as per the ACPI specification, the CopyObject operator can be used to store an object to any type of target object. -- Store (Source, Target): If the source is a Package object, the target must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target is a Package, the source must also be a Package. -- Store (Source, Target): A warning is issued if the source and target resolve to the identical named object. -- Store (Source, ): An error is generated for the target method invocation, as this construct is not supported by the AML interpreter. -- For all ASL math and logic operators, the target operand must be a data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This includes the function return value also. -- External declarations are also included in the typechecking where possible. External objects defined using the UnknownObj keyword cannot be typechecked, however. iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index operator: - Legacy code: Index(PKG1, 3) - New ASL+ code: PKG1[3] This completes the ACPI 6.0 ASL+ support as it was the only operator not supported. iASL: Fixed the file suffix for the preprocessor output file (.i). Two spaces were inadvertently appended to the filename, causing file access and deletion problems on some systems. ASL Test Suite (ASLTS): Updated the master makefile to generate all possible compiler output files when building the test suite -- thus exercising these features of the compiler. These files are automatically deleted when the test suite exits. ---------------------------------------- 18 August 2015. Summary of changes for version 20150818: 1) ACPICA kernel-resident subsystem: Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv Zheng. ACPICA BZ 1186. Completed development to ensure that the ACPICA Disassembler and Debugger are fully standalone components of ACPICA. Removed cross-component dependences. Lv Zheng. The max-number-of-AML-loops is now runtime configurable (previously was compile-time only). This is essentially a loop timeout to force-abort infinite AML loops. ACPCIA BZ 1192. Debugger: Cleanup output to dump ACPI names and namepaths without any trailing underscores. Lv Zheng. ACPICA BZ 1135. Removed unnecessary conditional compilations across the Debugger and Disassembler components where entire modules could be left uncompiled. The aapits test is deprecated and has been removed from the ACPICA git tree. The test has never been completed and has not been maintained, thus becoming rather useless. ACPICA BZ 1015, 794. A batch of small changes to close bugzilla and other reports: - Remove duplicate code for _PLD processing. ACPICA BZ 1176. - Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. - iASL: Support POSIX yacc again in makefile. Jung-uk Kim. - ACPI table support: general cleanup and simplification. Lv Zheng, Bob Moore. - ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. ACPICA BZ 1184. - Enhance parameter validation for DataTableRegion and LoadTable ASL/AML operators. - Debugger: Split debugger initialization/termination interfaces. Lv Zheng. - AcpiExec: Emit OemTableId for SSDTs during the load phase for table identification. - AcpiExec: Add debug message during _REG method phase during table load/init. - AcpiNames: Fix a regression where some output was missing and no longer emitted. - Debugger: General cleanup and simplification. Lv Zheng. - Disassembler: Cleanup use of several global option variables. Lv Zheng. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total Debug Version: 198.6K Code, 80.9K Data, 279.5K Total Previous Release: Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 2) iASL Compiler/Disassembler and Tools: AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT were not handled properly and caused load errors. Now, properly invoke and use the ACPICA auto-reallocate mechanism for ACPI table data structures. ACPICA BZ 1188 AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA BZ 1190. AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For AcpiExec, this means that no control methods (like _REG/_INI/_STA) are executed during initialization. ACPICA BZ 1187, 1189. iASL/Disassembler: Implemented a prototype "listing" mode that emits AML that corresponds to each disassembled ASL statement, to simplify debugging. ACPICA BZ 1191. Debugger: Add option to the "objects" command to display a summary of the current namespace objects (Object type and count). This is displayed if the command is entered with no arguments. AcpiNames: Add -x option to specify debug level, similar to AcpiExec. ---------------------------------------- 17 July 2015. Summary of changes for version 20150717: 1) ACPICA kernel-resident subsystem: Improved the partitioning between the Debugger and Disassembler components. This allows the Debugger to be used standalone within kernel code without the Disassembler (which is used for single stepping also). This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. Debugger: Implemented a new command to trace the execution of control methods (Trace). This is especially useful for the in-kernel version of the debugger when file I/O may not be available for method trace output. See the ACPICA reference for more information. Lv Zheng. Moved all C library prototypes (used for the local versions of these functions when requested) to a new header, acclib.h Cleaned up the use of non-ANSI C library functions. These functions are implemented locally in ACPICA. Moved all such functions to a common source file, utnonansi.c Debugger: Fixed a problem with the "!!" command (get last command executed) where the debugger could enter an infinite loop and eventually crash. Removed the use of local macros that were used for some of the standard C library functions to automatically cast input parameters. This mostly affected the is* functions where the input parameter is defined to be an int. This required a few modifications to the main ACPICA source code to provide casting for these functions and eliminate possible compiler warnings for these parameters. Across the source code, added additional status/error checking to resolve issues discovered by static source code analysis tools such as Coverity. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total Debug Version: 197.8K Code, 81.5K Data, 279.3K Total Previous Release: Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a regression where the device map file feature no longer worked properly when used in conjunction with the disassembler. It only worked properly with the compiler itself. iASL: Implemented a new warning for method LocalX variables that are set but never used (similar to a C compiler such as gcc). This also applies to ArgX variables that are not defined by the parent method, and are instead (legally) used as local variables. iASL/Preprocessor: Finished the pass-through of line numbers from the preprocessor to the compiler. This ensures that compiler errors/warnings have the correct original line numbers and filenames, regardless of any #include files. iASL/Preprocessor: Fixed a couple of issues with comment handling and the pass-through of comments to the preprocessor output file (which becomes the compiler input file). Also fixed a problem with // comments that appear after a math expression. iASL: Added support for the TCPA server table to the table compiler and template generator. (The client table was already previously supported) iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to identify the iASL compiler. Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined multiple times. The new names are ACPI_SIGN_NEGATIVE and ACPI_SIGN_POSITIVE. AcpiHelp: Update to expand help messages for the iASL preprocessor directives. ---------------------------------------- 19 June 2015. Summary of changes for version 20150619: Two regressions in version 20150616 have been addressed: Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, etc.) This update changes ACPICA to only use the standard headers for functions, or the prototypes for the local versions of the C library functions. Across the source code, this required some additional casts for some Clib invocations for portability. Moved all local prototypes to a new file, acclib.h Fixes several problems with recent changes to the handling of the FACS table that could cause some systems not to boot. ---------------------------------------- 16 June 2015. Summary of changes for version 20150616: 1) ACPICA kernel-resident subsystem: Across the entire ACPICA source code base, the various macros for the C library functions (such as ACPI_STRLEN, etc.) have been removed and replaced by the standard C library names (strlen, etc.) The original purpose for these macros is no longer applicable. This simplification reduces the number of macros used in the ACPICA source code significantly, improving readability and maintainability. Implemented support for a new ACPI table, the OSDT. This table, the "override" SDT, can be loaded directly by the host OS at boot time. It enables the replacement of existing namespace objects that were installed via the DSDT and/or SSDTs. The primary purpose for this is to replace buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob Moore. Added support for systems with (improperly) two FACS tables -- a "32-bit" table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit X field). This change will support both automatically. There continues to be systems found with this issue. This support requires a change to the AcpiSetFirmwareWakingVector interface. Also, a public global variable has been added to allow the host to select which FACS is desired (AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more details Lv Zheng. Added a new feature to allow for systems that do not contain an FACS. Although this is already supported on hardware-reduced platforms, the feature has been extended for all platforms. The reasoning is that we do not want to abort the entire ACPICA initialization just because the system is seriously buggy and has no FACS. Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were not correctly transcribed from the ACPI specification in ACPICA version 20150515. Implemented support for the _CLS object in the AcpiGetObjectInfo external interface. Updated the definitions of the TCPA and TPM2 ACPI tables to the more recent TCG ACPI Specification, December 14, 2014. Table disassembler and compiler also updated. Note: The TCPA "server" table is not supported by the disassembler/table-compiler at this time. ACPI 6.0: Added definitions for the new GIC version field in the MADT. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total Debug Version: 196.2K Code, 81.0K Data, 277.2K Total Previous Release: Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Fixed a problem with the new symbolic operator disassembler where incorrect ASL code could be emitted in some cases for the "non- commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and ShiftRight. The actual problem cases seem to be rather unusual in common ASL code, however. David Box. Modified the linux version of acpidump to obtain ACPI tables from not just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv Zheng. iASL: Fixed a problem where the user preprocessor output file (.i) contained extra data that was not expected. The compiler was using this file as a temporary file and passed through #line directives in order to keep compiler error messages in sync with the input file and line number across multiple include files. The (.i) is no longer a temporary file as the compiler uses a new, different file for the original purpose. iASL: Fixed a problem where comments within the original ASL source code file were not passed through to the preprocessor output file, nor any listing files. iASL: Fixed some issues for the handling of the "#include" preprocessor directive and the similar (but not the same) "Include" ASL operator. iASL: Add support for the new OSDT in both the disassembler and compiler. iASL: Fixed a problem with the constant folding support where a Buffer object could be incorrectly generated (incorrectly formed) during a conversion to a Store() operator. AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new description text for the _REV predefined name. _REV now permanently returns 2, as per the ACPI 6.0 specification. Debugger: Enhanced the output of the Debug ASL object for references produced by the Index operator. For Buffers and strings, only output the actual byte pointed to by the index. For packages, only print the single package element decoded by the index. Previously, the entire buffer/string/package was emitted. iASL/Table-compiler: Fixed a regression where the "generic" data types were no longer recognized, causing errors. ---------------------------------------- 15 May 2015. Summary of changes for version 20150515: This release implements most of ACPI 6.0 as described below. 1) ACPICA kernel-resident subsystem: Implemented runtime argument checking and return value checking for all new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, _MTL, _PRR, _RDI, _RST, _TFP, _TSN. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total Debug Version: 195.2K Code, 80.8K Data, 276.0K Total Previous Release: Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 2) iASL Compiler/Disassembler and Tools: iASL compiler: Added compile-time support for all new ACPI 6.0 predefined names (argument count validation and return value typechecking.) iASL disassembler and table compiler: implemented support for all new ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. iASL disassembler and table compiler: Added ACPI 6.0 changes to existing tables: FADT, MADT. iASL preprocessor: Added a new directive to enable inclusion of binary blobs into ASL code. The new directive is #includebuffer. It takes a binary file as input and emits a named ascii buffer object into the ASL code. AcpiHelp: Added support for all new ACPI 6.0 predefined names. AcpiHelp: Added a new option, -d, to display all iASL preprocessor directives. AcpiHelp: Added a new option, -t, to display all known/supported ACPI tables. ---------------------------------------- 10 April 2015. Summary of changes for version 20150410: Reverted a change introduced in version 20150408 that caused a regression in the disassembler where incorrect operator symbols could be emitted. ---------------------------------------- 08 April 2015. Summary of changes for version 20150408: 1) ACPICA kernel-resident subsystem: Permanently set the return value for the _REV predefined name. It now returns 2 (was 5). This matches other ACPI implementations. _REV will be deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 for ACPI 2.0 and later. It should never be used to differentiate or identify operating systems. Added the "Windows 2015" string to the _OSI support. ACPICA will now return TRUE to a query with this string. Fixed several issues with the local version of the printf function. Added the C99 compiler option (-std=c99) to the Unix makefiles. Current Release: Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total Debug Version: 195.2K Code, 80.7K Data, 275.9K Total Previous Release: Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented an enhancement to the constant folding feature to transform the parse tree to a simple Store operation whenever possible: Add (2, 3, X) ==> is converted to: Store (5, X) X = 2 + 3 ==> is converted to: Store (5, X) Updated support for the SLIC table (Software Licensing Description Table) in both the Data Table compiler and the disassembler. The SLIC table support now conforms to "Microsoft Software Licensing Tables (SLIC and MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data following the ACPI header is now defined to be "Proprietary Data", and as such, can only be entered or displayed as a hex data block. Implemented full support for the MSDM table as described in the document above. Note: The format of MSDM is similar to SLIC. Any MSDM data following the ACPI header is defined to be "Proprietary Data", and can only be entered or displayed as a hex data block. Implemented the -Pn option for the iASL Table Compiler (was only implemented for the ASL compiler). This option disables the iASL preprocessor. Disassembler: For disassembly of Data Tables, added a comment field around the Ascii equivalent data that is emitted as part of the "Raw Table Data" block. This prevents the iASL Preprocessor from possible confusion if/when the table is compiled. Disassembler: Added an option (-df) to force the disassembler to assume that the table being disassembled contains valid AML. This feature is useful for disassembling AML files that contain ACPI signatures other than DSDT or SSDT (such as OEMx or other signatures). Changes for the EFI version of the tools: 1) Fixed a build error/issue 2) Fixed a cast warning iASL: Fixed a path issue with the __FILE__ operator by making the directory prefix optional within the internal SplitInputFilename function. Debugger: Removed some unused global variables. Tests: Updated the makefile for proper generation of the AAPITS suite. ---------------------------------------- 04 February 2015. Summary of changes for version 20150204: ACPICA kernel-resident subsystem: Updated all ACPICA copyrights and signons to 2014. Added the 2014 copyright to all module headers and signons, including the standard Linux header. This affects virtually every file in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and the test suites. Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. A raw gpe handling mechanism was created to allow better handling of GPE storms that aren't easily managed by the normal handler. The raw handler allows disabling/renabling of the GPE so that interrupt storms can be avoided in cases where events cannot be timely serviced. In this scenario, handlers should use the AcpiSetGpe() API to disable/enable the GPE. This API will leave the reference counts undisturbed, thereby preventing unintentional clearing of the GPE when the intent in only to temporarily disable it. Raw handlers allow enabling and disabling of a GPE by removing GPE register locking. As such, raw handlers much provide their own locks while using GPE API's to protect access to GPE data structures. Lv Zheng Events: Always modify GPE registers under the GPE lock. Applies GPE lock around AcpiFinishGpe() to protect access to GPE register values. Reported as bug by joe.liu@apple.com. Unix makefiles: Separate option to disable optimizations and _FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the NOOPT disable option and creates a separate flag (NOFORTIFY) for this purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined errors when building ACPICA. This allows disabling the option without also having to disable optimazations. David Box Current Release: Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total Debug Version: 199.2K Code, 82.4K Data, 281.6K Total -- -------------------------------------- 07 November 2014. Summary of changes for version 20141107: This release is available at https://acpica.org/downloads This release introduces and implements language extensions to ASL that provide support for symbolic ("C-style") operators and expressions. These language extensions are known collectively as ASL+. 1) iASL Compiler/Disassembler and Tools: Disassembler: Fixed a problem with disassembly of the UartSerialBus macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. Box. Disassembler: Fixed the Unicode macro support to add escape sequences. All non-printable ASCII values are emitted as escape sequences, as well as the standard escapes for quote and backslash. Ensures that the disassembled macro can be correctly recompiled. iASL: Added Printf/Fprintf macros for formatted output. These macros are translated to existing AML Concatenate and Store operations. Printf writes to the ASL Debug object. Fprintf allows the specification of an ASL name as the target. Only a single format specifier is required, %o, since the AML interpreter dynamically converts objects to the required type. David E. Box. (old) Store (Concatenate (Concatenate (Concatenate (Concatenate (Concatenate (Concatenate (Concatenate ("", Arg0), ": Unexpected value for "), Arg1), ", "), Arg2), " at line "), Arg3), Debug) (new) Printf ("%o: Unexpected value for %o, %o at line %o", Arg0, Arg1, Arg2, Arg3) (old) Store (Concatenate (Concatenate (Concatenate (Concatenate ("", Arg1), ": "), Arg0), " Successful"), STR1) (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) iASL: Added debug options (-bp, -bt) to dynamically prune levels of the ASL parse tree before the AML code is generated. This allows blocks of ASL code to be removed in order to help locate and identify problem devices and/or code. David E. Box. AcpiExec: Added support (-fi) for an optional namespace object initialization file. This file specifies initial values for namespace objects as necessary for debugging and testing different ASL code paths that may be taken as a result of BIOS options. 2) Overview of symbolic operator support for ASL (ASL+) ------------------------------------------------------- As an extension to the ASL language, iASL implements support for symbolic (C-style) operators for math and logical expressions. This can greatly simplify ASL code as well as improve both readability and maintainability. These language extensions can exist concurrently with all legacy ASL code and expressions. The symbolic extensions are 100% compatible with existing AML interpreters, since no new AML opcodes are created. To implement the extensions, the iASL compiler transforms the symbolic expressions into the legacy ASL/AML equivalents at compile time. Full symbolic expressions are supported, along with the standard C precedence and associativity rules. Full disassembler support for the symbolic expressions is provided, and creates an automatic migration path for existing ASL code to ASL+ code via the disassembly process. By default, the disassembler now emits ASL+ code with symbolic expressions. An option (-dl) is provided to force the disassembler to emit legacy ASL code if desired. Below is the complete list of the currently supported symbolic operators with examples. See the iASL User Guide for additional information. ASL+ Syntax Legacy ASL Equivalent ----------- --------------------- // Math operators Z = X + Y Add (X, Y, Z) Z = X - Y Subtract (X, Y, Z) Z = X * Y Multiply (X, Y, Z) Z = X / Y Divide (X, Y, , Z) Z = X % Y Mod (X, Y, Z) Z = X << Y ShiftLeft (X, Y, Z) Z = X >> Y ShiftRight (X, Y, Z) Z = X & Y And (X, Y, Z) Z = X | Y Or (X, Y, Z) Z = X ^ Y Xor (X, Y, Z) Z = ~X Not (X, Z) X++ Increment (X) X-- Decrement (X) // Logical operators (X == Y) LEqual (X, Y) (X != Y) LNotEqual (X, Y) (X < Y) LLess (X, Y) (X > Y) LGreater (X, Y) (X <= Y) LLessEqual (X, Y) (X >= Y) LGreaterEqual (X, Y) (X && Y) LAnd (X, Y) (X || Y) LOr (X, Y) (!X) LNot (X) // Assignment and compound assignment operations X = Y Store (Y, X) X += Y Add (X, Y, X) X -= Y Subtract (X, Y, X) X *= Y Multiply (X, Y, X) X /= Y Divide (X, Y, , X) X %= Y Mod (X, Y, X) X <<= Y ShiftLeft (X, Y, X) X >>= Y ShiftRight (X, Y, X) X &= Y And (X, Y, X) X |= Y Or (X, Y, X) X ^= Y Xor (X, Y, X) 3) ASL+ Examples: ----------------- Legacy ASL: If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 0x03FB), 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) { And (MEMB, 0xFFFFFFF0, SRMB) Store (MEMB, Local2) Store (PDBM, Local1) And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) Store (SRMB, MEMB) Or (PDBM, 0x02, PDBM) } ASL+ version: If (((R510 & 0x03FB) == 0x02E0) || ((R520 & 0x03FB) == 0x02E0) || ((R530 & 0x03FB) == 0x02E0) || ((R540 & 0x03FB) == 0x02E0)) { SRMB = (MEMB & 0xFFFFFFF0) Local2 = MEMB Local1 = PDBM PDBM &= 0xFFFFFFFFFFFFFFF9 MEMB = SRMB PDBM |= 0x02 } Legacy ASL: Store (0x1234, Local1) Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) Store (Index (PKG1, 0x03), Local6) Store (Add (Local3, Local2), Debug) Add (Local1, 0x0F, Local2) Add (Local1, Multiply (Local2, Local3), Local2) Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) ASL+ version: Local1 = 0x1234 Local3 = (((Local1 + TEST) + 0x20) * Local2) Local3 = (Local2 * ((Local1 + TEST) + 0x20)) Local3 = (Local1 + (TEST + (0x20 * Local2))) Local6 = Index (PKG1, 0x03) Debug = (Local3 + Local2) Local2 = (Local1 + 0x0F) Local2 = (Local1 + (Local2 * Local3)) Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) ---------------------------------------- 26 September 2014. Summary of changes for version 20140926: 1) ACPICA kernel-resident subsystem: Updated the GPIO operation region handler interface (GeneralPurposeIo). In order to support GPIO Connection objects with multiple pins, along with the related Field objects, the following changes to the interface have been made: The Address is now defined to be the offset in bits of the field unit from the previous invocation of a Connection. It can be viewed as a "Pin Number Index" into the connection resource descriptor. The BitWidth is the exact bit width of the field. It is usually one bit, but not always. See the ACPICA reference guide (section 8.8.6.2.1) for additional information and examples. GPE support: During ACPICA/GPE initialization, ensure that all GPEs with corresponding _Lxx/_Exx methods are disabled (they may have been enabled by the firmware), so that they cannot fire until they are enabled via AcpiUpdateAllGpes. Rafael J. Wysocki. Added a new return flag for the Event/GPE status interfaces -- AcpiGetEventStatus and AcpiGetGpeStatus. The new ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or GPE currently has a handler associated with it, and can thus actually affect the system. Lv Zheng. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total Debug Version: 192.8K Code, 79.9K Data, 272.7K Total Previous Release: Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a memory allocation/free regression introduced in 20140828 that could cause the compiler to crash. This was introduced inadvertently during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 1113. iASL: Removed two error messages that have been found to create false positives, until they can be fixed and fully validated (ACPICA BZ 1112): 1) Illegal forward reference within a method 2) Illegal reference across two methods iASL: Implemented a new option (-lm) to create a hardware mapping file that summarizes all GPIO, I2C, SPI, and UART connections. This option works for both the compiler and disassembler. See the iASL compiler user guide for additional information and examples (section 6.4.6). AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to version 2. This corrects the AE_BAD_HEADER exception seen on systems with a version 1 RSDP. Lv Zheng ACPICA BZ 1097. AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode unless STDIN is actually a terminal. Assists with batch-mode processing. ACPICA BZ 1114. Disassembler/AcpiHelp: Added another large group of recognized _HID values. ---------------------------------------- 28 August 2014. Summary of changes for version 20140828: 1) ACPICA kernel-resident subsystem: Fixed a problem related to the internal use of the Timer() operator where a 64-bit divide could cause an attempted link to a double-precision math library. This divide is not actually necessary, so the code was restructured to eliminate it. Lv Zheng. ACPI 5.1: Added support for the runtime validation of the _DSD package (similar to the iASL support). ACPI 5.1/Headers: Added support for the GICC affinity subtable to the SRAT table. Hanjun Guo . Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total Debug Version: 192.1K Code, 79.8K Data, 271.9K Total Previous Release: Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 2) iASL Compiler/Disassembler and Tools: AcpiExec: Fixed a problem on unix systems where the original terminal state was not always properly restored upon exit. Seen when using the -v option. ACPICA BZ 1104. iASL: Fixed a problem with the validation of the ranges/length within the Memory24 resource descriptor. There was a boundary condition when the range was equal to the (length -1) caused by the fact that these values are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 Disassembler: Fixed a problem with the GpioInt descriptor interrupt polarity flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword is now supported properly. ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported in the disassembler, data table compiler, and table template generator. iASL: Added a requirement for Device() objects that one of either a _HID or _ADR must exist within the scope of a Device, as per the ACPI specification. Remove a similar requirement that was incorrectly in place for the _DSD object. iASL: Added error detection for illegal named references within control methods that would cause runtime failures. Now trapped as errors are: 1) References to objects within a non-parent control method. 2) Forward references (within a method) -- for control methods, AML interpreters use a one-pass parse of control methods. ACPICA BZ 1008. iASL: Added error checking for dependencies related to the _PSx power methods. ACPICA BZ 1029. 1) For _PS0, one of these must exist within the same scope: _PS1, _PS2, _PS3. 2) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same scope. iASL and table compiler: Cleanup miscellaneous memory leaks by fully deploying the existing object and string caches and adding new caches for the table compiler. iASL: Split the huge parser source file into multiple subfiles to improve manageability. Generation now requires the M4 macro preprocessor, which is part of the Bison distribution on both unix and windows platforms. AcpiSrc: Fixed and removed all extraneous warnings generated during entire ACPICA source code scan and/or conversion. ---------------------------------------- 24 July 2014. Summary of changes for version 20140724: The ACPI 5.1 specification has been released and is available at: http://uefi.org/specs/access 0) ACPI 5.1 support in ACPICA: ACPI 5.1 is fully supported in ACPICA as of this release. New predefined names. Support includes iASL and runtime ACPICA validation. _CCA (Cache Coherency Attribute). _DSD (Device-Specific Data). David Box. Modifications to existing ACPI tables. Support includes headers, iASL Data Table compiler, disassembler, and the template generator. FADT - New fields and flags. Graeme Gregory. GTDT - One new subtable and new fields. Tomasz Nowicki. MADT - Two new subtables. Tomasz Nowicki. PCCT - One new subtable. Miscellaneous. New notification type for System Resource Affinity change events. 1) ACPICA kernel-resident subsystem: Fixed a regression introduced in 20140627 where a fault can happen during the deletion of Alias AML namespace objects. The problem affected both the core ACPICA and the ACPICA tools including iASL and AcpiExec. Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a simple mechanism to enable wake GPEs that have no associated handler or control method. Rafael Wysocki. Updated the AcpiEnableGpe interface to disallow the enable if there is no handler or control method associated with the particular GPE. This will help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. Updated GPE handling and dispatch by disabling the GPE before clearing the status bit for edge-triggered GPEs. Lv Zheng. Added Timer() support to the AML Debug object. The current timer value is now displayed with each invocation of (Store to) the debug object to enable simple generation of execution times for AML code (method execution for example.) ACPICA BZ 1093. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total Debug Version: 192.0K Code, 79.7K Data, 271.7K Total Previous Release: Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 2) iASL Compiler/Disassembler and Tools: Fixed an issue with the recently added local printf implementation, concerning width/precision specifiers that could cause incorrect output. Lv Zheng. ACPICA BZ 1094. Disassembler: Added support to detect buffers that contain UUIDs and disassemble them to an invocation of the ToUUID operator. Also emit commented descriptions of known ACPI-related UUIDs. AcpiHelp: Added support to display known ACPI-related UUIDs. New option, -u. Adds three new files. iASL: Update table compiler and disassembler for DMAR table changes that were introduced in September 2013. With assistance by David Woodhouse. ---------------------------------------- 27 June 2014. Summary of changes for version 20140627: 1) ACPICA kernel-resident subsystem: Formatted Output: Implemented local versions of standard formatted output utilities such as printf, etc. Over time, it has been discovered that there are in fact many portability issues with printf, and the addition of this feature will fix/prevent these issues once and for all. Some known issues are summarized below: 1) Output of 64-bit values is not portable. For example, UINT64 is %ull for the Linux kernel and is %uI64 for some MSVC versions. 2) Invoking printf consistently in a manner that is portable across both 32-bit and 64-bit platforms is difficult at best in many situations. 3) The output format for pointers varies from system to system (leading zeros especially), and leads to inconsistent output from ACPICA across platforms. 4) Certain platform-specific printf formats may conflict with ACPICA use. 5) If there is no local C library available, ACPICA now has local support for printf. -- To address these printf issues in a complete manner, ACPICA now directly implements a small subset of printf format specifiers, only those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. Implemented support for ACPICA generation within the EFI environment. Initially, the AcpiDump utility is supported in the UEFI shell environment. Lv Zheng. Added a new external interface, AcpiLogError, to improve ACPICA portability. This allows the host to redirect error messages from the ACPICA utilities. Lv Zheng. Added and deployed new OSL file I/O interfaces to improve ACPICA portability: AcpiOsOpenFile AcpiOsCloseFile AcpiOsReadFile AcpiOsWriteFile AcpiOsGetFileOffset AcpiOsSetFileOffset There are C library implementations of these functions in the new file service_layers/oslibcfs.c -- however, the functions can be implemented by the local host in any way necessary. Lv Zheng. Implemented a mechanism to disable/enable ACPI table checksum validation at runtime. This can be useful when loading tables very early during OS initialization when it may not be possible to map the entire table in order to compute the checksum. Lv Zheng. Fixed a buffer allocation issue for the Generic Serial Bus support. Originally, a fixed buffer length was used. This change allows for variable-length buffers based upon the protocol indicated by the field access attributes. Reported by Lan Tianyu. Lv Zheng. Fixed a problem where an object detached from a namespace node was not properly terminated/cleared and could cause a circular list problem if reattached. ACPICA BZ 1063. David Box. Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. Fixed a possible memory leak in an error return path within the function AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total Debug Version: 191.7K Code, 79.6K Data, 271.3K Total Previous Release: Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Add dump of ASCII equivalent text within a comment at the end of each line of the output for the Buffer() ASL operator. AcpiDump: Miscellaneous changes: Fixed repetitive table dump in -n mode. For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if the ACPI 2.0 GUID fails. iASL: Fixed a problem where the compiler could fault if incorrectly given an acpidump output file as input. ACPICA BZ 1088. David Box. AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if they are invoked without any arguments. Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 1086. Colin Ian King. Disassembler: Cleaned up a block of code that extracts a parent Op object. Added a comment that explains that the parent is guaranteed to be valid in this case. ACPICA BZ 1069. ---------------------------------------- 24 April 2014. Summary of changes for version 20140424: 1) ACPICA kernel-resident subsystem: Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. Some of these tables are known to contain a trailing NULL entry. Lv Zheng. Removed an extraneous error message for the case where there are a large number of system GPEs (> 124). This was the "32-bit FADT register is too long to convert to GAS struct" message, which is irrelevant for GPEs since the GPEx_BLK_LEN fields of the FADT are always used instead of the (limited capacity) GAS bit length. Also, several changes to ensure proper support for GPE numbers > 255, where some "GPE number" fields were 8-bits internally. Implemented and deployed additional configuration support for the public ACPICA external interfaces. Entire classes of interfaces can now be easily modified or configured out, replaced by stubbed inline functions by default. Lv Zheng. Moved all public ACPICA runtime configuration globals to the public ACPICA external interface file for convenience. Also, removed some obsolete/unused globals. See the file acpixf.h. Lv Zheng. Documentation: Added a new section to the ACPICA reference describing the maximum number of GPEs that can be supported by the FADT-defined GPEs in block zero and one. About 1200 total. See section 4.4.1 of the ACPICA reference. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total Debug Version: 189.5K Code, 79.7K Data, 269.2K Total Previous Release: Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 2) iASL Compiler/Disassembler and Tools: iASL and disassembler: Add full support for the LPIT table (Low Power Idle Table). Includes support in the disassembler, data table compiler, and template generator. AcpiDump utility: 1) Add option to force the use of the RSDT (over the XSDT). 2) Improve validation of the RSDP signature (use 8 chars instead of 4). iASL: Add check for predefined packages that are too large. For predefined names that contain subpackages, check if each subpackage is too large. (Check for too small already exists.) Debugger: Updated the GPE command (which simulates a GPE by executing the GPE code paths in ACPICA). The GPE device is now optional, and defaults to the GPE 0/1 FADT-defined blocks. Unix application OSL: Update line-editing support. Add additional error checking and take care not to reset terminal attributes on exit if they were never set. This should help guarantee that the terminal is always left in the previous state on program exit. ---------------------------------------- 25 March 2014. Summary of changes for version 20140325: 1) ACPICA kernel-resident subsystem: Updated the auto-serialize feature for control methods. This feature automatically serializes all methods that create named objects in order to prevent runtime errors. The update adds support to ignore the currently executing AML SyncLevel when invoking such a method, in order to prevent disruption of any existing SyncLevel priorities that may exist in the AML code. Although the use of SyncLevels is relatively rare, this change fixes a regression where an AE_AML_MUTEX_ORDER exception can appear on some machines starting with the 20140214 release. Added a new external interface to allow the host to install ACPI tables very early, before the namespace is even created. AcpiInstallTable gives the host additional flexibility for ACPI table management. Tables can be installed directly by the host as if they had originally appeared in the XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables (anything except the DSDT and FACS). Adds a new file, tbdata.c, along with additional internal restructuring and cleanup. See the ACPICA Reference for interface details. Lv Zheng. Added validation of the checksum for all incoming dynamically loaded tables (via external interfaces or via AML Load/LoadTable operators). Lv Zheng. Updated the use of the AcpiOsWaitEventsComplete interface during Notify and GPE handler removal. Restructured calls to eliminate possible race conditions. Lv Zheng. Added a warning for the use/execution of the ASL/AML Unload (table) operator. This will help detect and identify machines that use this operator if and when it is ever used. This operator has never been seen in the field and the usage model and possible side-effects of the drastic runtime action of a full table removal are unknown. Reverted the use of #pragma push/pop which was introduced in the 20140214 release. It appears that push and pop are not implemented by enough compilers to make the use of this feature feasible for ACPICA at this time. However, these operators may be deployed in a future ACPICA release. Added the missing EXPORT_SYMBOL macros for the install and remove SCI handler interfaces. Source code generation: 1) Disabled the use of the "strchr" macro for the gcc-specific generation. For some versions of gcc, this macro can periodically expose a compiler bug which in turn causes compile-time error(s). 2) Added support for PPC64 compilation. Colin Ian King. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total Debug Version: 189.7K Code, 79.5K Data, 269.2K Total Previous Release: Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Added several new features to improve the readability of the resulting ASL code. Extra information is emitted within comment fields in the ASL code: 1) Known _HID/_CID values are decoded to descriptive text. 2) Standard values for the Notify() operator are decoded to descriptive text. 3) Target operands are expanded to full pathnames (in a comment) when possible. Disassembler: Miscellaneous updates for extern() handling: 1) Abort compiler if file specified by -fe option does not exist. 2) Silence unnecessary warnings about argument count mismatches. 3) Update warning messages concerning unresolved method externals. 4) Emit "UnknownObj" keyword for externals whose type cannot be determined. AcpiHelp utility: 1) Added the -a option to display both the ASL syntax and the AML encoding for an input ASL operator. This effectively displays all known information about an ASL operator with one AcpiHelp invocation. 2) Added substring match support (similar to a wildcard) for the -i (_HID/PNP IDs) option. iASL/Disassembler: Since this tool does not yet support execution on big- endian machines, added detection of endianness and an error message if execution is attempted on big-endian. Support for big-endian within iASL is a feature that is on the ACPICA to-be-done list. AcpiBin utility: 1) Remove option to extract binary files from an acpidump; this function is made obsolete by the AcpiXtract utility. 2) General cleanup of open files and allocated buffers. ---------------------------------------- 14 February 2014. Summary of changes for version 20140214: 1) ACPICA kernel-resident subsystem: Implemented a new mechanism to proactively prevent problems with ill- behaved reentrant control methods that create named ACPI objects. This behavior is illegal as per the ACPI specification, but is nonetheless frequently seen in the field. Previously, this could lead to an AE_ALREADY_EXISTS exception if the method was actually entered by more than one thread. This new mechanism detects such methods at table load time and marks them "serialized" to prevent reentrancy. A new global option, AcpiGbl_AutoSerializeMethods, has been added to disable this feature if desired. This mechanism and global option obsoletes and supersedes the previous AcpiGbl_SerializeAllMethods option. Added the "Windows 2013" string to the _OSI support. ACPICA will now respond TRUE to _OSI queries with this string. It is the stated policy of ACPICA to add new strings to the _OSI support as soon as possible after they are defined. See the full ACPICA _OSI policy which has been added to the utilities/utosi.c file. Hardened/updated the _PRT return value auto-repair code: 1) Do not abort the repair on a single subpackage failure, continue to check all subpackages. 2) Add check for the minimum subpackage length (4). 3) Properly handle extraneous NULL package elements. Added support to avoid the possibility of infinite loops when traversing object linked lists. Never allow an infinite loop, even in the face of corrupted object lists. ACPICA headers: Deployed the use of #pragma pack(push) and #pragma pack(pop) directives to ensure that the ACPICA headers are independent of compiler settings or other host headers. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total Debug Version: 188.6K Code, 79.0K Data, 267.6K Total Previous Release: Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 2) iASL Compiler/Disassembler and Tools: iASL/Table-compiler: Fixed a problem with support for the SPMI table. The first reserved field was incorrectly forced to have a value of zero. This change correctly forces the field to have a value of one. ACPICA BZ 1081. Debugger: Added missing support for the "Extra" and "Data" subobjects when displaying object data. Debugger: Added support to display entire object linked lists when displaying object data. iASL: Removed the obsolete -g option to obtain ACPI tables from the Windows registry. This feature has been superseded by the acpidump utility. ---------------------------------------- 14 January 2014. Summary of changes for version 20140114: 1) ACPICA kernel-resident subsystem: Updated all ACPICA copyrights and signons to 2014. Added the 2014 copyright to all module headers and signons, including the standard Linux header. This affects virtually every file in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and the test suites. Improved parameter validation for AcpiInstallGpeBlock. Added the following checks: 1) The incoming device handle refers to type ACPI_TYPE_DEVICE. 2) There is not already a GPE block attached to the device. Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a device. Correctly support "references" in the ACPI_OBJECT. This change fixes the support to allow references (namespace nodes) to be passed as arguments to control methods via the evaluate object interface. This is probably most useful for testing purposes, however. Improved support for 32/64 bit physical addresses in printf()-like output. This change improves the support for physical addresses in printf debug statements and other output on both 32-bit and 64-bit hosts. It consistently outputs the appropriate number of bytes for each host. The %p specifier is unsatisfactory since it does not emit uniform output on all hosts/clib implementations (on some, leading zeros are not supported, leading to difficult-to-read output). Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total Debug Version: 187.5K Code, 78.3K Data, 265.8K Total Previous Release: Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fix a possible fault when using the Connection() operator. Fixes a problem if the parent Field definition for the Connection operator refers to an operation region that does not exist. ACPICA BZ 1064. AcpiExec: Load of local test tables is now optional. The utility has the capability to load some various tables to test features of ACPICA. However, there are enough of them that the output of the utility became confusing. With this change, only the required local tables are displayed (RSDP, XSDT, etc.) along with the actual tables loaded via the command line specification. This makes the default output simler and easier to understand. The -el command line option restores the original behavior for testing purposes. AcpiExec: Added support for overlapping operation regions. This change expands the simulation of operation regions by supporting regions that overlap within the given address space. Supports SystemMemory and SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. AcpiExec: Added region handler support for PCI_Config and EC spaces. This allows AcpiExec to simulate these address spaces, similar to the current support for SystemMemory and SystemIO. Debugger: Added new command to read/write/compare all namespace objects. The command "test objects" will exercise the entire namespace by writing new values to each data object, and ensuring that the write was successful. The original value is then restored and verified. Debugger: Added the "test predefined" command. This change makes this test public and puts it under the new "test" command. The test executes each and every predefined name within the current namespace. ---------------------------------------- 18 December 2013. Summary of changes for version 20131218: Global note: The ACPI 5.0A specification was released this month. There are no changes needed for ACPICA since this release of ACPI is an errata/clarification release. The specification is available at acpi.info. 1) ACPICA kernel-resident subsystem: Added validation of the XSDT root table if it is present. Some older platforms contain an XSDT that is ill-formed or otherwise invalid (such as containing some or all entries that are NULL pointers). This change adds a new function to validate the XSDT before actually using it. If the XSDT is found to be invalid, ACPICA will now automatically fall back to using the RSDT instead. Original implementation by Zhao Yakui. Ported to ACPICA and enhanced by Lv Zheng and Bob Moore. Added a runtime option to ignore the XSDT and force the use of the RSDT. This change adds a runtime option that will force ACPICA to use the RSDT instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec requires that an XSDT be used instead of the RSDT, the XSDT has been found to be corrupt or ill-formed on some machines. Lv Zheng. Added a runtime option to favor 32-bit FADT register addresses over the 64-bit addresses. This change adds an option to favor 32-bit FADT addresses when there is a conflict between the 32-bit and 64-bit versions of the same register. The default behavior is to use the 64-bit version in accordance with the ACPI specification. This can now be overridden via the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. During the change above, the internal "Convert FADT" and "Verify FADT" functions have been merged to simplify the code, making it easier to understand and maintain. ACPICA BZ 933. Improve exception reporting and handling for GPE block installation. Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. Added helper macros to extract bus/segment numbers from the HEST table. This change adds two macros to extract the encoded bus and segment numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. Betty Dall Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used by ACPICA. It is not a public macro, so it should have no effect on existing OSV code. Lv Zheng. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total Debug Version: 185.6K Code, 77.3K Data, 262.9K Total Previous Release: Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Improved pathname support for emitted External() statements. This change adds full pathname support for external names that have been resolved internally by the inclusion of additional ACPI tables (via the iASL -e option). Without this change, the disassembler can emit multiple externals for the same object, or it become confused when the Scope() operator is used on an external object. Overall, greatly improves the ability to actually recompile the emitted ASL code when objects a referenced across multiple ACPI tables. Reported by Michael Tsirkin (mst@redhat.com). Tests/ASLTS: Updated functional control suite to execute with no errors. David Box. Fixed several errors related to the testing of the interpreter slack mode. Lv Zheng. iASL: Added support to detect names that are declared within a control method, but are unused (these are temporary names that are only valid during the time the method is executing). A remark is issued for these cases. ACPICA BZ 1022. iASL: Added full support for the DBG2 table. Adds full disassembler, table compiler, and template generator support for the DBG2 table (Debug Port 2 table). iASL: Added full support for the PCCT table, update the table definition. Updates the PCCT table definition in the actbl3.h header and adds table compiler and template generator support. iASL: Added an option to emit only error messages (no warnings/remarks). The -ve option will enable only error messages, warnings and remarks are suppressed. This can simplify debugging when only the errors are important, such as when an ACPI table is disassembled and there are many warnings and remarks -- but only the actual errors are of real interest. Example ACPICA code (source/tools/examples): Updated the example code so that it builds to an actual working program, not just example code. Added ACPI tables and execution of an example control method in the DSDT. Added makefile support for Unix generation. ---------------------------------------- 15 November 2013. Summary of changes for version 20131115: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: Resource Manager: Fixed loop termination for the "get AML length" function. The loop previously had an error termination on a NULL resource pointer, which can never happen since the loop simply increments a valid resource pointer. This fix changes the loop to terminate with an error on an invalid end-of-buffer condition. The problem can be seen as an infinite loop by callers to AcpiSetCurrentResources with an invalid or corrupted resource descriptor, or a resource descriptor that is missing an END_TAG descriptor. Reported by Dan Carpenter . Lv Zheng, Bob Moore. Table unload and ACPICA termination: Delete all attached data objects during namespace node deletion. This fix updates namespace node deletion to delete the entire list of attached objects (attached via AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 1024. Tomasz Nowicki (tomasz.nowicki@linaro.org). ACPICA termination: Added support to delete all objects attached to the root namespace node. This fix deletes any and all objects that have been attached to the root node via AcpiAttachData. Previously, none of these objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. Debug output: Do not emit the function nesting level for the in-kernel build. The nesting level is really only useful during a single-thread execution. Therefore, only enable this output for the AcpiExec utility. Also, only emit the thread ID when executing under AcpiExec (Context switches are still always detected and a message is emitted). ACPICA BZ 972. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total Debug Version: 185.1K Code, 77.2K Data, 262.3K Total Previous Release: Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 2) iASL Compiler/Disassembler and Tools: AcpiExec/Unix-OSL: Use instead of . This is the correct portable POSIX header for terminal control functions. Disassembler: Fixed control method invocation issues related to the use of the CondRefOf() operator. The problem is seen in the disassembly where control method invocations may not be disassembled properly if the control method name has been used previously as an argument to CondRefOf. The solution is to not attempt to emit an external declaration for the CondRefOf target (it is not necessary in the first place). This prevents disassembler object type confusion. ACPICA BZ 988. Unix Makefiles: Added an option to disable compiler optimizations and the _FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA with optimizations (reportedly, gcc 4.4 for example). This change adds a command line option for make (NOOPT) that disables all compiler optimizations and the _FORTIFY_SOURCE compiler flag. The default optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 1034. Lv Zheng, Bob Moore. Tests/ASLTS: Added options to specify individual test cases and modes. This allows testers running aslts.sh to optionally specify individual test modes and test cases. Also added an option to disable the forced generation of the ACPICA tools from source if desired. Lv Zheng. ---------------------------------------- 27 September 2013. Summary of changes for version 20130927: This release is available at https://acpica.org/downloads 1) ACPICA kernel-resident subsystem: Fixed a problem with store operations to reference objects. This change fixes a problem where a Store operation to an ArgX object that contained a reference to a field object did not complete the automatic dereference and then write to the actual field object. Instead, the object type of the field object was inadvertently changed to match the type of the source operand. The new behavior will actually write to the field object (buffer field or field unit), thus matching the correct ACPI-defined behavior. Implemented support to allow the host to redefine individual OSL prototypes. This change enables the host to redefine OSL prototypes found in the acpiosxf.h file. This allows the host to implement OSL interfaces with a macro or inlined function. Further, it allows the host to add any additional required modifiers such as __iomem, __init, __exit, etc., as necessary on a per-interface basis. Enables maximum flexibility for the OSL interfaces. Lv Zheng. Hardcoded the access width for the FADT-defined reset register. The ACPI specification requires the reset register width to be 8 bits. ACPICA now hardcodes the width to 8 and ignores the FADT width value. This provides compatibility with other ACPI implementations that have allowed BIOS code with bad register width values to go unnoticed. Matthew Garett, Bob Moore, Lv Zheng. Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is used in the OSL header (acpiosxf). The change modifies the position of this macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid build issues if the OSL defines the implementation of the interface to be an inline stub function. Lv Zheng. Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA initialization interfaces. This change adds a new macro for the main init and terminate external interfaces in order to support hosts that require additional or different processing for these functions. Changed from ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv Zheng, Bob Moore. Cleaned up the memory allocation macros for configurability. In the common case, the ACPI_ALLOCATE and related macros now resolve directly to their respective AcpiOs* OSL interfaces. Two options: 1) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 2) For AcpiExec (and for debugging), the macros can optionally be resolved to the local ACPICA interfaces that track each allocation (local tracking is used to immediately detect memory leaks). Lv Zheng. Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel to predefine this macro to either TRUE or FALSE during the system build. Replaced __FUNCTION_ with __func__ in the gcc-specific header. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total Debug Version: 185.2K Code, 77.2K Data, 262.4K Total Previous Release: Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented wildcard support for the -e option. This simplifies use when there are many SSDTs that must be included to resolve external method declarations. ACPICA BZ 1041. Example: iasl -e ssdt*.dat -d dsdt.dat AcpiExec: Add history/line-editing for Unix/Linux systems. This change adds a portable module that implements full history and limited line editing for Unix and Linux systems. It does not use readline() due to portability issues. Instead it uses the POSIX termio interface to put the terminal in raw input mode so that the various special keys can be trapped (such as up/down-arrow for history support and left/right-arrow for line editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. AcpiXtract: Add support to handle (ignore) "empty" lines containing only one or more spaces. This provides compatible with early or different versions of the AcpiDump utility. ACPICA BZ 1044. AcpiDump: Do not ignore tables that contain only an ACPI table header. Apparently, some BIOSs create SSDTs that contain an ACPI table header but no other data. This change adds support to dump these tables. Any tables shorter than the length of an ACPI table header remain in error (an error message is emitted). Reported by Yi Li. Debugger: Echo actual command along with the "unknown command" message. ---------------------------------------- 23 August 2013. Summary of changes for version 20130823: 1) ACPICA kernel-resident subsystem: Implemented support for host-installed System Control Interrupt (SCI) handlers. Certain ACPI functionality requires the host to handle raw SCIs. For example, the "SCI Doorbell" that is defined for memory power state support requires the host device driver to handle SCIs to examine if the doorbell has been activated. Multiple SCI handlers can be installed to allow for future expansion. New external interfaces are AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for details. Lv Zheng, Bob Moore. ACPICA BZ 1032. Operation region support: Never locally free the handler "context" pointer. This change removes some dangerous code that attempts to free the handler context pointer in some (rare) circumstances. The owner of the handler owns this pointer and the ACPICA code should never touch it. Although not seen to be an issue in any kernel, it did show up as a problem (fault) under AcpiExec. Also, set the internal storage field for the context pointer to zero when the region is deactivated, simply for sanity. David Box. ACPICA BZ 1039. AcpiRead: On error, do not modify the return value target location. If an error happens in the middle of a split 32/32 64-bit I/O operation, do not modify the target of the return value pointer. Makes the code consistent with the rest of ACPICA. Bjorn Helgaas. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total Debug Version: 184.4K Code, 76.8K Data, 261.2K Total Previous Release: Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 2) iASL Compiler/Disassembler and Tools: AcpiDump: Implemented several new features and fixed some problems: 1) Added support to dump the RSDP, RSDT, and XSDT tables. 2) Added support for multiple table instances (SSDT, UEFI). 3) Added option to dump "customized" (overridden) tables (-c). 4) Fixed a problem where some table filenames were improperly constructed. 5) Improved some error messages, removed some unnecessary messages. iASL: Implemented additional support for disassembly of ACPI tables that contain invocations of external control methods. The -fe option allows the import of a file that specifies the external methods along with the required number of arguments for each -- allowing for the correct disassembly of the table. This is a workaround for a limitation of AML code where the disassembler often cannot determine the number of arguments required for an external control method and generates incorrect ASL code. See the iASL reference for details. ACPICA BZ 1030. Debugger: Implemented a new command (paths) that displays the full pathnames (namepaths) and object types of all objects in the namespace. This is an alternative to the namespace command. Debugger: Implemented a new command (sci) that invokes the SCI dispatch mechanism and any installed handlers. iASL: Fixed a possible segfault for "too many parent prefixes" condition. This can occur if there are too many parent prefixes in a namepath (for example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. Application OSLs: Set the return value for the PCI read functions. These functions simply return AE_OK, but should set the return value to zero also. This change implements this. ACPICA BZ 1038. Debugger: Prevent possible command line buffer overflow. Increase the size of a couple of the debugger line buffers, and ensure that overflow cannot happen. ACPICA BZ 1037. iASL: Changed to abort immediately on serious errors during the parsing phase. Due to the nature of ASL, there is no point in attempting to compile these types of errors, and they typically end up causing a cascade of hundreds of errors which obscure the original problem. ---------------------------------------- 25 July 2013. Summary of changes for version 20130725: 1) ACPICA kernel-resident subsystem: Fixed a problem with the DerefOf operator where references to FieldUnits and BufferFields incorrectly returned the parent object, not the actual value of the object. After this change, a dereference of a FieldUnit reference results in a read operation on the field to get the value, and likewise, the appropriate BufferField value is extracted from the target buffer. Fixed a problem where the _WAK method could cause a fault under these circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK method returned no value. The problem is rarely seen because most kernels run ACPICA in slack mode. For the DerefOf operator, a fatal error now results if an attempt is made to dereference a reference (created by the Index operator) to a NULL package element. Provides compatibility with other ACPI implementations, and this behavior will be added to a future version of the ACPI specification. The ACPI Power Management Timer (defined in the FADT) is now optional. This provides compatibility with other ACPI implementations and will appear in the next version of the ACPI specification. If there is no PM Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of zero in the FADT indicates no PM timer. Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This allows the host to globally enable/disable all vendor strings, all feature strings, or both. Intended to be primarily used for debugging purposes only. Lv Zheng. Expose the collected _OSI data to the host via a global variable. This data tracks the highest level vendor ID that has been invoked by the BIOS so that the host (and potentially ACPICA itself) can change behaviors based upon the age of the BIOS. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total Debug Version: 184.4K Code, 76.8K Data, 261.2K Total Previous Release: Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 2) iASL Compiler/Disassembler and Tools: iASL: Created the following enhancements for the -so option (create offset table): 1)Add offsets for the last nameseg in each namepath for every supported object type 2)Add support for Processor, Device, Thermal Zone, and Scope objects 3)Add the actual AML opcode for the parent object of every supported object type 4)Add support for the ZERO/ONE/ONES AML opcodes for integer objects Disassembler: Emit all unresolved external symbols in a single block. These are external references to control methods that could not be resolved, and thus, the disassembler had to make a guess at the number of arguments to parse. iASL: The argument to the -T option (create table template) is now optional. If not specified, the default table is a DSDT, typically the most common case. ---------------------------------------- 26 June 2013. Summary of changes for version 20130626: 1) ACPICA kernel-resident subsystem: Fixed an issue with runtime repair of the _CST object. Null or invalid elements were not always removed properly. Lv Zheng. Removed an arbitrary restriction of 256 GPEs per GPE block (such as the FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, the maximum number of GPEs is 1016. Use of multiple GPE block devices makes the system-wide number of GPEs essentially unlimited. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total Debug Version: 184.1K Code, 76.7K Data, 260.8K Total Previous Release: Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 2) iASL Compiler/Disassembler and Tools: Portable AcpiDump: Implemented full support for the Linux and FreeBSD hosts. Now supports Linux, FreeBSD, and Windows. Disassembler: Added some missing types for the HEST and EINJ tables: "Set Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". iASL/Preprocessor: Implemented full support for nested #if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. Disassembler: Expanded maximum output string length to 64K. Was 256 bytes max. The original purpose of this constraint was to limit the amount of debug output. However, the string function in question (UtPrintString) is now used for the disassembler also, where 256 bytes is insufficient. Reported by RehabMan@GitHub. iASL/DataTables: Fixed some problems and issues with compilation of DMAR tables. ACPICA BZ 999. Lv Zheng. iASL: Fixed a couple of error exit issues that could result in a "Could not delete " message during ASL compilation. AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though the actual signatures for these tables are "FACP" and "APIC", respectively. AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI tables are allowed to have multiple instances. ---------------------------------------- 17 May 2013. Summary of changes for version 20130517: 1) ACPICA kernel-resident subsystem: Fixed a regression introduced in version 20130328 for _INI methods. This change fixes a problem introduced in 20130328 where _INI methods are no longer executed properly because of a memory block that was not initialized correctly. ACPICA BZ 1016. Tomasz Nowicki . Fixed a possible problem with the new extended sleep registers in the ACPI 5.0 FADT. Do not use these registers (even if populated) unless the HW- reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 1020. Lv Zheng. Implemented return value repair code for _CST predefined objects: Sort the list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. Implemented a debug-only option to disable loading of SSDTs from the RSDT/XSDT during ACPICA initialization. This can be useful for debugging ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in acglobal.h - ACPICA BZ 1005. Lv Zheng. Fixed some issues in the ACPICA initialization and termination code: Tomasz Nowicki 1) Clear events initialized flag upon event component termination. ACPICA BZ 1013. 2) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 3) Delete global lock pending lock during termination. ACPICA BZ 1012. 4) Clear debug buffer global on termination to prevent possible multiple delete. ACPICA BZ 1010. Standardized all switch() blocks across the entire source base. After many years, different formatting for switch() had crept in. This change makes the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. Split some files to enhance ACPICA modularity and configurability: 1) Split buffer dump routines into utilities/utbuffer.c 2) Split internal error message routines into utilities/uterror.c 3) Split table print utilities into tables/tbprint.c 4) Split iASL command-line option processing into asloptions.c Makefile enhancements: 1) Support for all new files above. 2) Abort make on errors from any subcomponent. Chao Guan. 3) Add build support for Apple Mac OS X. Liang Qi. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total Debug Version: 184.1K Code, 76.8K Data, 260.9K Total Previous Release: Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2) iASL Compiler/Disassembler and Tools: New utility: Implemented an easily portable version of the acpidump utility to extract ACPI tables from the system (or a file) in an ASCII hex dump format. The top-level code implements the various command line options, file I/O, and table dump routines. To port to a new host, only three functions need to be implemented to get tables -- since this functionality is OS-dependent. See the tools/acpidump/apmain.c module and the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 1) The Windows version obtains the ACPI tables from the Registry. 2) The Linux version is under development. 3) Other hosts - If an OS-dependent module is submitted, it will be distributed with ACPICA. iASL: Fixed a regression for -D preprocessor option (define symbol). A restructuring/change to the initialization sequence caused this option to no longer work properly. iASL: Implemented a mechanism to disable specific warnings and remarks. Adds a new command line option, "-vw as well as "#pragma disable ". ACPICA BZ 989. Chao Guan, Bob Moore. iASL: Fix for too-strict package object validation. The package object validation for return values from the predefined names is a bit too strict, it does not allow names references within the package (which will be resolved at runtime.) These types of references cannot be validated at compile time. This change ignores named references within package objects for names that return or define static packages. Debugger: Fixed the 80-character command line limitation for the History command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. iASL: Added control method and package support for the -so option (generates AML offset table for BIOS support.) iASL: issue a remark if a non-serialized method creates named objects. If a thread blocks within the method for any reason, and another thread enters the method, the method will fail because an attempt will be made to create the same (named) object twice. In this case, issue a remark that the method should be marked serialized. NOTE: may become a warning later. ACPICA BZ 909. ---------------------------------------- 18 April 2013. Summary of changes for version 20130418: 1) ACPICA kernel-resident subsystem: Fixed a possible buffer overrun during some rare but specific field unit read operations. This overrun can only happen if the DSDT version is 1 -- meaning that all AML integers are 32 bits -- and the field length is between 33 and 55 bits long. During the read, an internal buffer object is created for the field unit because the field is larger than an integer (32 bits). However, in this case, the buffer will be incorrectly written beyond the end because the buffer length is less than the internal minimum of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes long, but a full 8 bytes will be written. Updated the Embedded Controller "orphan" _REG method support. This refers to _REG methods under the EC device that have no corresponding operation region. This is allowed by the ACPI specification. This update removes a dependency on the existence an ECDT table. It will execute an orphan _REG method as long as the operation region handler for the EC is installed at the EC device node and not the namespace root. Rui Zhang (original update), Bob Moore (update/integrate). Implemented run-time argument typechecking for all predefined ACPI names (_STA, _BIF, etc.) This change performs object typechecking on all incoming arguments for all predefined names executed via AcpiEvaluateObject. This ensures that ACPI-related device drivers are passing correct object types as well as the correct number of arguments (therefore identifying any issues immediately). Also, the ASL/namespace definition of the predefined name is checked against the ACPI specification for the proper argument count. Adds one new file, nsarguments.c Changed an exception code for the ASL UnLoad() operator. Changed the exception code for the case where the input DdbHandle is invalid, from AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the global makefile. The use of this flag causes compiler errors on earlier versions of GCC, so it has been removed for compatibility. Miscellaneous cleanup: 1) Removed some unused/obsolete macros 2) Fixed a possible memory leak in the _OSI support 3) Removed an unused variable in the predefined name support 4) Windows OSL: remove obsolete reference to a memory list field Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Current Release: Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total Debug Version: 183.0K Code, 76.0K Data, 259.0K Total Previous Release: Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2) iASL Compiler/Disassembler and Tools: AcpiExec: Added installation of a handler for the SystemCMOS address space. This prevents control method abort if a method accesses this space. AcpiExec: Added support for multiple EC devices, and now install EC operation region handler(s) at the actual EC device instead of the namespace root. This reflects the typical behavior of host operating systems. AcpiExec: Updated to ensure that all operation region handlers are installed before the _REG methods are executed. This prevents a _REG method from aborting if it accesses an address space has no handler. AcpiExec installs a handler for every possible address space. Debugger: Enhanced the "handlers" command to display non-root handlers. This change enhances the handlers command to display handlers associated with individual devices throughout the namespace, in addition to the currently supported display of handlers associated with the root namespace node. ASL Test Suite: Several test suite errors have been identified and resolved, reducing the total error count during execution. Chao Guan. ---------------------------------------- 28 March 2013. Summary of changes for version 20130328: 1) ACPICA kernel-resident subsystem: Fixed several possible race conditions with the internal object reference counting mechanism. Some of the external ACPICA interfaces update object reference counts without holding the interpreter or namespace lock. This change adds a spinlock to protect reference count updates on the internal ACPICA objects. Reported by and with assistance from Andriy Gapon (avg@FreeBSD.org). FADT support: Removed an extraneous warning for very large GPE register sets. This change removes a size mismatch warning if the legacy length field for a GPE register set is larger than the 64-bit GAS structure can accommodate. GPE register sets can be larger than the 255-bit width limitation of the GAS structure. Linn Crosetto (linn@hp.com). _OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error return from this interface. Handles a possible timeout case if ACPI_WAIT_FOREVER is modified by the host to be a value less than "forever". Jung-uk Kim. Predefined name support: Add allowed/required argument type information to the master predefined info table. This change adds the infrastructure to enable typechecking on incoming arguments for all predefined methods/objects. It does not actually contain the code that will fully utilize this information, this is still under development. Also condenses some duplicate code for the predefined names into a new module, utilities/utpredef.c Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total Debug Version: 182.9K Code, 75.6K Data, 258.5K Total Current Release: Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented a new option to simplify the development of ACPI- related BIOS code. Adds support for a new "offset table" output file. The -so option will create a C table containing the AML table offsets of various named objects in the namespace so that BIOS code can modify them easily at boot time. This can simplify BIOS runtime code by eliminating expensive searches for "magic values", enhancing boot times and adding greater reliability. With assistance from Lee Hamel. iASL: Allow additional predefined names to return zero-length packages. Now, all predefined names that are defined by the ACPI specification to return a "variable-length package of packages" are allowed to return a zero length top-level package. This allows the BIOS to tell the host that the requested feature is not supported, and supports existing BIOS/ASL code and practices. iASL: Changed the "result not used" warning to an error. This is the case where an ASL operator is effectively a NOOP because the result of the operation is not stored anywhere. For example: Add (4, Local0) There is no target (missing 3rd argument), nor is the function return value used. This is potentially a very serious problem -- since the code was probably intended to do something, but for whatever reason, the value was not stored. Therefore, this issue has been upgraded from a warning to an error. AcpiHelp: Added allowable/required argument types to the predefined names info display. This feature utilizes the recent update to the predefined names table (above). ---------------------------------------- 14 February 2013. Summary of changes for version 20130214: 1) ACPICA Kernel-resident Subsystem: Fixed a possible regression on some hosts: Reinstated the safe return macros (return_ACPI_STATUS, etc.) that ensure that the argument is evaluated only once. Although these macros are not needed for the ACPICA code itself, they are often used by ACPI-related host device drivers where the safe feature may be necessary. Fixed several issues related to the ACPI 5.0 reduced hardware support (SOC): Now ensure that if the platform declares itself as hardware- reduced via the FADT, the following functions become NOOPs (and always return AE_OK) because ACPI is always enabled by definition on these machines: AcpiEnable AcpiDisable AcpiHwGetMode AcpiHwSetMode Dynamic Object Repair: Implemented additional runtime repairs for predefined name return values. Both of these repairs can simplify code in the related device drivers that invoke these methods: 1) For the _STR and _MLS names, automatically repair/convert an ASCII string to a Unicode buffer. 2) For the _CRS, _PRS, and _DMA names, return a resource descriptor with a lone end tag descriptor in the following cases: A Return(0) was executed, a null buffer was returned, or no object at all was returned (non-slack mode only). Adds a new file, nsconvert.c ACPICA BZ 998. Bob Moore, Lv Zheng. Resource Manager: Added additional code to prevent possible infinite loops while traversing corrupted or ill-formed resource template buffers. Check for zero-length resource descriptors in all code that loops through resource templates (the length field is used to index through the template). This change also hardens the external AcpiWalkResources and AcpiWalkResourceBuffer interfaces. Local Cache Manager: Enhanced the main data structure to eliminate an unnecessary mechanism to access the next object in the list. Actually provides a small performance enhancement for hosts that use the local ACPICA cache manager. Jung-uk Kim. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total Debug Version: 182.3K Code, 75.0K Data, 257.3K Total Current Release: Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 2) iASL Compiler/Disassembler and Tools: iASL/Disassembler: Fixed several issues with the definition of the ACPI 5.0 RASF table (RAS Feature Table). This change incorporates late changes that were made to the ACPI 5.0 specification. iASL/Disassembler: Added full support for the following new ACPI tables: 1) The MTMR table (MID Timer Table) 2) The VRTC table (Virtual Real Time Clock Table). Includes header file, disassembler, table compiler, and template support for both tables. iASL: Implemented compile-time validation of package objects returned by predefined names. This new feature validates static package objects returned by the various predefined names defined to return packages. Both object types and package lengths are validated, for both parent packages and sub-packages, if any. The code is similar in structure and behavior to the runtime repair mechanism within the AML interpreter and uses the existing predefined name information table. Adds a new file, aslprepkg.c. ACPICA BZ 938. iASL: Implemented auto-detection of binary ACPI tables for disassembly. This feature detects a binary file with a valid ACPI table header and invokes the disassembler automatically. Eliminates the need to specifically invoke the disassembler with the -d option. ACPICA BZ 862. iASL/Disassembler: Added several warnings for the case where there are unresolved control methods during the disassembly. This can potentially cause errors when the output file is compiled, because the disassembler assumes zero method arguments in these cases (it cannot determine the actual number of arguments without resolution/definition of the method). Debugger: Added support to display all resources with a single command. Invocation of the resources command with no arguments will now display all resources within the current namespace. AcpiHelp: Added descriptive text for each ACPICA exception code displayed via the -e option. ---------------------------------------- 17 January 2013. Summary of changes for version 20130117: 1) ACPICA Kernel-resident Subsystem: Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to return either 1 or 2 integers. Although the ACPI spec defines the \_Sx objects to return a package containing one integer, most BIOS code returns two integers and the previous code reflects that. However, we also need to support BIOS code that actually implements to the ACPI spec, and this change reflects this. Fixed two issues with the ACPI_DEBUG_PRINT macros: 1) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for C compilers that require this support. 2) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since ACPI_DEBUG is already used by many of the various hosts. Updated all ACPICA copyrights and signons to 2013. Added the 2013 copyright to all module headers and signons, including the standard Linux header. This affects virtually every file in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and the test suites. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total Debug Version: 182.2K Code, 74.9K Data, 257.1K Total Current Release: Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 2) iASL Compiler/Disassembler and Tools: Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and prevent a possible fault on some hosts. Some C libraries modify the arg pointer parameter to vfprintf making it difficult to call it twice in the AcpiOsVprintf function. Use a local buffer to workaround this issue. This does not affect the Windows OSL since the Win C library does not modify the arg pointer. Chao Guan, Bob Moore. iASL: Fixed a possible infinite loop when the maximum error count is reached. If an output file other than the .AML file is specified (such as a listing file), and the maximum number of errors is reached, do not attempt to flush data to the output file(s) as the compiler is aborting. This can cause an infinite loop as the max error count code essentially keeps calling itself. iASL/Disassembler: Added an option (-in) to ignore NOOP opcodes/operators. Implemented for both the compiler and the disassembler. Often, the NOOP opcode is used as padding for packages that are changed dynamically by the BIOS. When disassembled and recompiled, these NOOPs will cause syntax errors. This option causes the disassembler to ignore all NOOP opcodes (0xA3), and it also causes the compiler to ignore all ASL source code NOOP statements as well. Debugger: Enhanced the Sleep command to execute all sleep states. This change allows Sleep to be invoked with no arguments and causes the debugger to execute all of the sleep states, 0-5, automatically. ---------------------------------------- 20 December 2012. Summary of changes for version 20121220: 1) ACPICA Kernel-resident Subsystem: Implemented a new interface, AcpiWalkResourceBuffer. This interface is an alternate entry point for AcpiWalkResources and improves the usability of the resource manager by accepting as input a buffer containing the output of either a _CRS, _PRS, or _AEI method. The key functionality is that the input buffer is not deleted by this interface so that it can be used by the host later. See the ACPICA reference for details. Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table (DSDT version < 2). The constant will be truncated and this warning reflects that behavior. Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, ExtendedInterrupt, and GpioInt descriptors. This change adds support to both get and set the new wake bit in these descriptors, separately from the existing share bit. Reported by Aaron Lu. Interpreter: Fix Store() when an implicit conversion is not possible. For example, in the cases such as a store of a string to an existing package object, implement the store as a CopyObject(). This is a small departure from the ACPI specification which states that the control method should be aborted in this case. However, the ASLTS suite depends on this behavior. Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT macros: check if debug output is currently enabled as soon as possible to minimize performance impact if debug is in fact not enabled. Source code restructuring: Cleanup to improve modularity. The following new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. Associated makefiles and project files have been updated. Changed an exception code for LoadTable operator. For the case where one of the input strings is too long, change the returned exception code from AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. Fixed a possible memory leak in dispatcher error path. On error, delete the mutex object created during method mutex creation. Reported by tim.gardner@canonical.com. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total Debug Version: 175.5K Code, 74.5K Data, 250.0K Total Current Release: Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 2) iASL Compiler/Disassembler and Tools: iASL: Disallow a method call as argument to the ObjectType ASL operator. This change tracks an errata to the ACPI 5.0 document. The AML grammar will not allow the interpreter to differentiate between a method and a method invocation when these are used as an argument to the ObjectType operator. The ACPI specification change is to disallow a method invocation (UserTerm) for the ObjectType operator. Finish support for the TPM2 and CSRT tables in the headers, table compiler, and disassembler. Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout always expires immediately if the semaphore is not available. The original code was using a relative-time timeout, but sem_timedwait requires the use of an absolute time. iASL: Added a remark if the Timer() operator is used within a 32-bit table. This operator returns a 64-bit time value that will be truncated within a 32-bit table. iASL Source code restructuring: Cleanup to improve modularity. The following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, aslmethod.c, and aslfileio.c. Associated makefiles and project files have been updated. ---------------------------------------- 14 November 2012. Summary of changes for version 20121114: 1) ACPICA Kernel-resident Subsystem: Implemented a performance enhancement for ACPI/AML Package objects. This change greatly increases the performance of Package objects within the interpreter. It changes the processing of reference counts for packages by optimizing for the most common case where the package sub-objects are either Integers, Strings, or Buffers. Increases the overall performance of the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 2X.) Chao Guan. ACPICA BZ 943. Implemented and deployed common macros to extract flag bits from resource descriptors. Improves readability and maintainability of the code. Fixes a problem with the UART serial bus descriptor for the number of data bits flags (was incorrectly 2 bits, should be 3). Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation of the macros and changed the SETx macros to the style of (destination, source). Also added ACPI_CASTx companion macros. Lv Zheng. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total Debug Version: 175.5K Code, 74.5K Data, 250.0K Total Current Release: Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change adds the ShareAndWake and ExclusiveAndWake flags which were added to the Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. Disassembler: Fixed a problem with external declaration generation. Fixes a problem where an incorrect pathname could be generated for an external declaration if the original reference to the object includes leading carats (^). ACPICA BZ 984. Debugger: Completed a major update for the Disassemble command. This command was out-of-date and did not properly disassemble control methods that had any reasonable complexity. This fix brings the command up to the same level as the rest of the disassembler. Adds one new file, dmdeferred.c, which is existing code that is now common with the main disassembler and the debugger disassemble command. ACPICA MZ 978. iASL: Moved the parser entry prototype to avoid a duplicate declaration. Newer versions of Bison emit this prototype, so moved the prototype out of the iASL header to where it is actually used in order to avoid a duplicate declaration. iASL/Tools: Standardized use of the stream I/O functions: 1) Ensure check for I/O error after every fopen/fread/fwrite 2) Ensure proper order of size/count arguments for fread/fwrite 3) Use test of (Actual != Requested) after all fwrite, and most fread 4) Standardize I/O error messages Improves reliability and maintainability of the code. Bob Moore, Lv Zheng. ACPICA BZ 981. Disassembler: Prevent duplicate External() statements. During generation of external statements, detect similar pathnames that are actually duplicates such as these: External (\ABCD) External (ABCD) Remove all leading '\' characters from pathnames during the external statement generation so that duplicates will be detected and tossed. ACPICA BZ 985. Tools: Replace low-level I/O with stream I/O functions. Replace open/read/write/close with the stream I/O equivalents fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob Moore. AcpiBin: Fix for the dump-to-hex function. Now correctly output the table name header so that AcpiXtract recognizes the output file/table. iASL: Remove obsolete -2 option flag. Originally intended to force the compiler/disassembler into an ACPI 2.0 mode, this was never implemented and the entire concept is now obsolete. ---------------------------------------- 18 October 2012. Summary of changes for version 20121018: 1) ACPICA Kernel-resident Subsystem: Updated support for the ACPI 5.0 MPST table. Fixes some problems introduced by late changes to the table as it was added to the ACPI 5.0 specification. Includes header, disassembler, and data table compiler support as well as a new version of the MPST template. AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 5.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID methods: _HID, _CID, and _UID. Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) names for their various drivers. Affects the AcpiGetObjectInfo external interface, and other internal interfaces as well. Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME on machines that support non-aligned transfers. Optimizes for this case rather than using a strncpy. With assistance from Zheng Lv. Resource Manager: Small fix for buffer size calculation. Fixed a one byte error in the output buffer calculation. Feng Tang. ACPICA BZ 849. Added a new debug print message for AML mutex objects that are force- released. At control method termination, any currently acquired mutex objects are force-released. Adds a new debug-only message for each one that is released. Audited/updated all ACPICA return macros and the function debug depth counter: 1) Ensure that all functions that use the various TRACE macros also use the appropriate ACPICA return macros. 2) Ensure that all normal return statements surround the return expression (value) with parens to ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, Zheng Lv, Bob Moore. ACPICA Bugzilla 972. Global source code changes/maintenance: All extra lines at the start and end of each source file have been removed for consistency. Also, within comments, all new sentences start with a single space instead of a double space, again for consistency across the code base. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total Debug Version: 175.0K Code, 74.4K Data, 249.4K Total Current Release: Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2) iASL Compiler/Disassembler and Tools: AcpiExec: Improved the algorithm used for memory leak/corruption detection. Added some intelligence to the code that maintains the global list of allocated memory. The list is now ordered by allocated memory address, significantly improving performance. When running AcpiExec on the ASLTS test suite, speed improvements of 3X to 5X are seen, depending on the platform and/or the environment. Note, this performance enhancement affects the AcpiExec utility only, not the kernel-resident ACPICA code. Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix incorrect table offset reported for invalid opcodes. Report the original 32-bit value for bad ACPI_NAMEs (as well as the repaired name.) Disassembler: Enhanced the -vt option to emit the binary table data in hex format to assist with debugging. Fixed a potential filename buffer overflow in osunixdir.c. Increased the size of file structure. Colin Ian King. ---------------------------------------- 13 September 2012. Summary of changes for version 20120913: 1) ACPICA Kernel-resident Subsystem: ACPI 5.0: Added two new notify types for the Hardware Error Notification Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) and MCE(6). Table Manager: Merged/removed duplicate code in the root table resize functions. One function is external, the other is internal. Lv Zheng, ACPICA BZ 846. Makefiles: Completely removed the obsolete "Linux" makefiles under acpica/generate/linux. These makefiles are obsolete and have been replaced by the generic unix makefiles under acpica/generate/unix. Makefiles: Ensure that binary files always copied properly. Minor rule change to ensure that the final binary output files are always copied up to the appropriate binary directory (bin32 or bin64.) Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total Debug Version: 175.7K Code, 74.8K Data, 250.5K Total Current Release: Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Fixed a possible fault during the disassembly of resource descriptors when a second parse is required because of the invocation of external control methods within the table. With assistance from adq@lidskialf.net. ACPICA BZ 976. iASL: Fixed a namepath optimization problem. An error can occur if the parse node that contains the namepath to be optimized does not have a parent node that is a named object. This change fixes the problem. iASL: Fixed a regression where the AML file is not deleted on errors. The AML output file should be deleted if there are any errors during the compiler. The only exception is if the -f (force output) option is used. ACPICA BZ 974. iASL: Added a feature to automatically increase internal line buffer sizes. Via realloc(), automatically increase the internal line buffer sizes as necessary to support very long source code lines. The current version of the preprocessor requires a buffer long enough to contain full source code lines. This change increases the line buffer(s) if the input lines go beyond the current buffer size. This eliminates errors that occurred when a source code line was longer than the buffer. iASL: Fixed a problem with constant folding in method declarations. The SyncLevel term is a ByteConstExpr, and incorrect code would be generated if a Type3 opcode was used. Debugger: Improved command help support. For incorrect argument count, display full help for the command. For help command itself, allow an argument to specify a command. Test Suites: Several bug fixes for the ASLTS suite reduces the number of errors during execution of the suite. Guan Chao. ---------------------------------------- 16 August 2012. Summary of changes for version 20120816: 1) ACPICA Kernel-resident Subsystem: Removed all use of the deprecated _GTS and _BFS predefined methods. The _GTS (Going To Sleep) and _BFS (Back From Sleep) methods are essentially deprecated and will probably be removed from the ACPI specification. Windows does not invoke them, and reportedly never will. The final nail in the coffin is that the ACPI specification states that these methods must be run with interrupts off, which is not going to happen in a kernel interpreter. Note: Linux has removed all use of the methods also. It was discovered that invoking these functions caused failures on some machines, probably because they were never tested since Windows does not call them. Affects two external interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. ACPICA BZ 969. Implemented support for complex bit-packed buffers returned from the _PLD (Physical Location of Device) predefined method. Adds a new external interface, AcpiDecodePldBuffer that parses the buffer into a more usable C structure. Note: C Bitfields cannot be used for this type of predefined structure since the memory layout of individual bitfields is not defined by the C language. In addition, there are endian concerns where a compiler will change the bitfield ordering based on the machine type. The new ACPICA interface eliminates these issues, and should be called after _PLD is executed. ACPICA BZ 954. Implemented a change to allow a scope change to root (via "Scope (\)") during execution of module-level ASL code (code that is executed at table load time.) Lin Ming. Added the Windows8/Server2012 string for the _OSI method. This change adds a new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 2012. Added header support for the new ACPI tables DBG2 (Debug Port Table Type 2) and CSRT (Core System Resource Table). Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined names. This simplifies access to the buffers returned by these predefined names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. GPE support: Removed an extraneous parameter from the various low-level internal GPE functions. Tang Feng. Removed the linux makefiles from the unix packages. The generate/linux makefiles are obsolete and have been removed from the unix tarball release packages. The replacement makefiles are under generate/unix, and there is a top-level makefile under the main acpica directory. ACPICA BZ 967, 912. Updates for Unix makefiles: 1) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 2) Update linker flags (move to end of command line) for AcpiExec utility. Guan Chao. Split ACPICA initialization functions to new file, utxfinit.c. Split from utxface.c to improve modularity and reduce file size. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total Debug Version: 173.7K Code, 74.0K Data, 247.7K Total Current Release: Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a problem with constant folding for fixed-length constant expressions. The constant-folding code was not being invoked for constant expressions that allow the use of type 3/4/5 opcodes to generate constants for expressions such as ByteConstExpr, WordConstExpr, etc. This could result in the generation of invalid AML bytecode. ACPICA BZ 970. iASL: Fixed a generation issue on newer versions of Bison. Newer versions apparently automatically emit some of the necessary externals. This change handles these versions in order to eliminate generation warnings. Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. Disassembler: Add support to decode _PLD buffers. The decoded buffer appears within comments in the output file. Debugger: Fixed a regression with the "Threads" command where AE_BAD_PARAMETER was always returned. ---------------------------------------- 11 July 2012. Summary of changes for version 20120711: 1) ACPICA Kernel-resident Subsystem: Fixed a possible fault in the return package object repair code. Fixes a problem that can occur when a lone package object is wrapped with an outer package object in order to force conformance to the ACPI specification. Can affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, _DLM, _CSD, _PSD, _TSD. Removed code to disable/enable bus master arbitration (ARB_DIS bit in the PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the ARB_DIS bit must be implemented in the host-dependent C3 processor power state support. Note, ARB_DIS is obsolete and only applies to older chipsets, both Intel and other vendors. (for Intel: ICH4-M and earlier) This change removes the code to disable/enable bus master arbitration during suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register causes resume problems on some machines. The change has been in use for over seven years within Linux. Implemented two new external interfaces to support host-directed dynamic ACPI table load and unload. They are intended to simplify the host implementation of hot-plug support: AcpiLoadTable: Load an SSDT from a buffer into the namespace. AcpiUnloadParentTable: Unload an SSDT via a named object owned by the table. See the ACPICA reference for additional details. Adds one new file, components/tables/tbxfload.c Implemented and deployed two new interfaces for errors and warnings that are known to be caused by BIOS/firmware issues: AcpiBiosError: Prints "ACPI Firmware Error" message. AcpiBiosWarning: Prints "ACPI Firmware Warning" message. Deployed these new interfaces in the ACPICA Table Manager code for ACPI table and FADT errors. Additional deployment to be completed as appropriate in the future. The associated conditional macros are ACPI_BIOS_ERROR and ACPI_BIOS_WARNING. See the ACPICA reference for additional details. ACPICA BZ 843. Implicit notify support: ensure that no memory allocation occurs within a critical region. This fix moves a memory allocation outside of the time that a spinlock is held. Fixes issues on systems that do not allow this behavior. Jung-uk Kim. Split exception code utilities and tables into a new file, utilities/utexcep.c Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total Debug Version: 172.9K Code, 73.6K Data, 246.5K Total Current Release: Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead of 0. Jung-uk Kim. Debugger: Enhanced the "tables" command to emit additional information about the current set of ACPI tables, including the owner ID and flags decode. Debugger: Reimplemented the "unload" command to use the new AcpiUnloadParentTable external interface. This command was disable previously due to need for an unload interface. AcpiHelp: Added a new option to decode ACPICA exception codes. The -e option will decode 16-bit hex status codes (ACPI_STATUS) to name strings. ---------------------------------------- 20 June 2012. Summary of changes for version 20120620: 1) ACPICA Kernel-resident Subsystem: Implemented support to expand the "implicit notify" feature to allow multiple devices to be notified by a single GPE. This feature automatically generates a runtime device notification in the absence of a BIOS-provided GPE control method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit notify is provided by ACPICA for Windows compatibility, and is a workaround for BIOS AML code errors. See the description of the AcpiSetupGpeForWake interface in the APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. Changed some comments and internal function names to simplify and ensure correctness of the Linux code translation. No functional changes. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total Debug Version: 172.7K Code, 73.6K Data, 246.3K Total Current Release: Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Added support to emit short, commented descriptions for the ACPI predefined names in order to improve the readability of the disassembled output. ACPICA BZ 959. Changes include: 1) Emit descriptions for all standard predefined names (_INI, _STA, _PRW, etc.) 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, etc.) AcpiSrc: Fixed several long-standing Linux code translation issues. Argument descriptions in function headers are now translated properly to lower case and underscores. ACPICA BZ 961. Also fixes translation problems such as these: (old -> new) i_aSL -> iASL 00-7_f -> 00-7F 16_k -> 16K local_fADT -> local_FADT execute_oSI -> execute_OSI iASL: Fixed a problem where null bytes were inadvertently emitted into some listing files. iASL: Added the existing debug options to the standard help screen. There are no longer two different help screens. ACPICA BZ 957. AcpiHelp: Fixed some typos in the various predefined name descriptions. Also expand some of the descriptions where appropriate. iASL: Fixed the -ot option (display compile times/statistics). Was not working properly for standard output; only worked for the debug file case. ---------------------------------------- 18 May 2012. Summary of changes for version 20120518: 1) ACPICA Core Subsystem: Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is defined to block until asynchronous events such as notifies and GPEs have completed. Within ACPICA, it is only called before a notify or GPE handler is removed/uninstalled. It also may be useful for the host OS within related drivers such as the Embedded Controller driver. See the ACPICA reference for additional information. ACPICA BZ 868. ACPI Tables: Added a new error message for a possible overflow failure during the conversion of FADT 32-bit legacy register addresses to internal common 64- bit GAS structure representation. The GAS has a one-byte "bit length" field, thus limiting the register length to 255 bits. ACPICA BZ 953. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total Debug Version: 172.6K Code, 73.4K Data, 246.0K Total Current Release: Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 2) iASL Compiler/Disassembler and Tools: iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL macro. This keyword was added late in the ACPI 5.0 release cycle and was not implemented until now. Disassembler: Added support for Operation Region externals. Adds missing support for operation regions that are defined in another table, and referenced locally via a Field or BankField ASL operator. Now generates the correct External statement. Disassembler: Several additional fixes for the External() statement generation related to some ASL operators. Also, order the External() statements alphabetically in the disassembler output. Fixes the External() generation for the Create* field, Alias, and Scope operators: 1) Create* buffer field operators - fix type mismatch warning on disassembly 2) Alias - implement missing External support 3) Scope - fix to make sure all necessary externals are emitted. iASL: Improved pathname support. For include files, merge the prefix pathname with the file pathname and eliminate unnecessary components. Convert backslashes in all pathnames to forward slashes, for readability. Include file pathname changes affect both #include and Include() type operators. iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the end of a valid line by inserting a newline and then returning the EOF during the next call to GetNextLine. Prevents the line from being ignored due to EOF condition. iASL: Implemented some changes to enhance the IDE support (-vi option.) Error and Warning messages are now correctly recognized for both the source code browser and the global error and warning counts. ---------------------------------------- 20 April 2012. Summary of changes for version 20120420: 1) ACPICA Core Subsystem: Implemented support for multiple notify handlers. This change adds support to allow multiple system and device notify handlers on Device, Thermal Zone, and Processor objects. This can simplify the host OS notification implementation. Also re-worked and restructured the entire notify support code to simplify handler installation, handler removal, notify event queuing, and notify dispatch to handler(s). Note: there can still only be two global notify handlers - one for system notifies and one for device notifies. There are no changes to the existing handler install/remove interfaces. Lin Ming, Bob Moore, Rafael Wysocki. Fixed a regression in the package repair code where the object reference count was calculated incorrectly. Regression was introduced in the commit "Support to add Package wrappers". Fixed a couple possible memory leaks in the AML parser, in the error recovery path. Jesper Juhl, Lin Ming. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total Debug Version: 172.5K Code, 73.2K Data, 245.7K Total Current Release: Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a problem with the resource descriptor support where the length of the StartDependentFn and StartDependentFnNoPrio descriptors were not included in cumulative descriptor offset, resulting in incorrect values for resource tags within resource descriptors appearing after a StartDependent* descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. iASL and Preprocessor: Implemented full support for the #line directive to correctly track original source file line numbers through the .i preprocessor output file - for error and warning messages. iASL: Expand the allowable byte constants for address space IDs. Previously, the allowable range was 0x80-0xFF (user-defined spaces), now the range is 0x0A-0xFF to allow for custom and new IDs without changing the compiler. iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. iASL: Add option to completely disable the preprocessor (-Pn). iASL: Now emit all error/warning messages to standard error (stderr) by default (instead of the previous stdout). ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). Update for resource descriptor offset fix above. Update/cleanup error output routines. Enable and send iASL errors/warnings to an error logfile (error.txt). Send all other iASL output to a logfile (compiler.txt). Fixed several extraneous "unrecognized operator" messages. ---------------------------------------- 20 March 2012. Summary of changes for version 20120320: 1) ACPICA Core Subsystem: Enhanced the sleep/wake interfaces to optionally execute the _GTS method (Going To Sleep) and the _BFS method (Back From Sleep). Windows apparently does not execute these methods, and therefore these methods are often untested. It has been seen on some systems where the execution of these methods causes errors and also prevents the machine from entering S5. It is therefore suggested that host operating systems do not execute these methods by default. In the future, perhaps these methods can be optionally executed based on the age of the system and/or what is the newest version of Windows that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState and AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin Ming. Fixed a problem where the length of the local/common FADT was set too early. The local FADT table length cannot be set to the common length until the original length has been examined. There is code that checks the table length and sets various fields appropriately. This can affect older machines with early FADT versions. For example, this can cause inadvertent writes to the CST_CNT register. Julian Anastasov. Fixed a mapping issue related to a physical table override. Use the deferred mapping mechanism for tables loaded via the physical override OSL interface. This allows for early mapping before the virtual memory manager is available. Thomas Renninger, Bob Moore. Enhanced the automatic return-object repair code: Repair a common problem with predefined methods that are defined to return a variable-length Package of sub-objects. If there is only one sub-object, some BIOS ASL code mistakenly simply returns the single object instead of a Package with one sub- object. This new support will repair this error by wrapping a Package object around the original object, creating the correct and expected Package with one sub- object. Names that can be repaired in this manner include: _ALR, _CSD, _HPX, _MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 939. Changed the exception code returned for invalid ACPI paths passed as parameters to external interfaces such as AcpiEvaluateObject. Was AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total Debug Version: 172.5K Code, 73.2K Data, 245.7K Total Current Release: Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 2) iASL Compiler/Disassembler and Tools: iASL: Added the infrastructure and initial implementation of a integrated C- like preprocessor. This will simplify BIOS development process by eliminating the need for a separate preprocessing step during builds. On Windows, it also eliminates the need to install a separate C compiler. ACPICA BZ 761. Some features including full #define() macro support are still under development. These preprocessor directives are supported: #define #elif #else #endif #error #if #ifdef #ifndef #include #pragma message #undef #warning In addition, these new command line options are supported: -D Define symbol for preprocessor use -li Create preprocessed output file (*.i) -P Preprocess only and create preprocessor output file (*.i) Table Compiler: Fixed a problem where the equals operator within an expression did not work properly. Updated iASL to use the current versions of Bison/Flex. Updated the Windows project file to invoke these tools from the standard location. ACPICA BZ 904. Versions supported: Flex for Windows: V2.5.4 Bison for Windows: V2.4.1 ---------------------------------------- 15 February 2012. Summary of changes for version 20120215: 1) ACPICA Core Subsystem: There have been some major changes to the sleep/wake support code, as described below (a - e). a) The AcpiLeaveSleepState has been split into two interfaces, similar to AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is AcpiLeaveSleepStatePrep. This allows the host to perform actions between the time the _BFS method is called and the _WAK method is called. NOTE: all hosts must update their wake/resume code or else sleep/wake will not work properly. Rafael Wysocki. b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the _WAK method. Some machines require that the GPEs are enabled before the _WAK method is executed. Thomas Renninger. c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) bit. Some BIOS code assumes that WAK_STS will be cleared on resume and use it to determine whether the system is rebooting or resuming. Matthew Garrett. d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From Sleep) to match the ACPI specification requirement. Rafael Wysocki. e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl registers within the V5 FADT. This support adds two new files: hardware/hwesleep.c implements the support for the new registers. Moved all sleep/wake external interfaces to hardware/hwxfsleep.c. Added a new OSL interface for ACPI table overrides, AcpiOsPhysicalTableOverride. This interface allows the host to override a table via a physical address, instead of the logical address required by AcpiOsTableOverride. This simplifies the host implementation. Initial implementation by Thomas Renninger. The ACPICA implementation creates a single shared function for table overrides that attempts both a logical and a physical override. Expanded the OSL memory read/write interfaces to 64-bit data (AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory transfer support for GAS register structures passed to AcpiRead and AcpiWrite. Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a custom build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) model. See the ACPICA reference for details. ACPICA BZ 942. This option removes about 10% of the code and 5% of the static data, and the following hardware ACPI features become unavailable: PM Event and Control registers SCI interrupt (and handler) Fixed Events General Purpose Events (GPEs) Global Lock ACPI PM timer Updated the unix tarball directory structure to match the ACPICA git source tree. This ensures that the generic unix makefiles work properly (in generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 867. Updated the return value of the _REV predefined method to integer value 5 to reflect ACPI 5.0 support. Moved the external ACPI PM timer interface prototypes to the public acpixf.h file where they belong. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total Debug Version: 171.7K Code, 72.9K Data, 244.5K Total Current Release: Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Fixed a problem with the new ACPI 5.0 serial resource descriptors (I2C, SPI, UART) where the resource produce/consumer bit was incorrectly displayed. AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI specification. ---------------------------------------- 11 January 2012. Summary of changes for version 20120111: 1) ACPICA Core Subsystem: Implemented a new mechanism to allow host device drivers to check for address range conflicts with ACPI Operation Regions. Both SystemMemory and SystemIO address spaces are supported. A new external interface, AcpiCheckAddressRange, allows drivers to check an address range against the ACPI namespace. See the ACPICA reference for additional details. Adds one new file, utilities/utaddress.c. Lin Ming, Bob Moore. Fixed several issues with the ACPI 5.0 FADT support: Add the sleep Control and Status registers, update the ACPI 5.0 flags, and update internal data structures to handle an FADT larger than 256 bytes. The size of the ACPI 5.0 FADT is 268 bytes. Updated all ACPICA copyrights and signons to 2012. Added the 2012 copyright to all module headers and signons, including the standard Linux header. This affects virtually every file in the ACPICA core subsystem, iASL compiler, and all ACPICA utilities. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total Debug Version: 170.8K Code, 72.6K Data, 243.4K Total Current Release: Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: fixed a problem with the automatic resource tag generation support. Fixes a problem where the resource tags are inadvertently not constructed if the table being disassembled contains external references to control methods. Moved the actual construction of the tags to after the final namespace is constructed (after 2nd parse is invoked due to external control method references.) ACPICA BZ 941. Table Compiler: Make all "generic" operators caseless. These are the operators like UINT8, String, etc. Making these caseless improves ease-of-use. ACPICA BZ 934. ---------------------------------------- 23 November 2011. Summary of changes for version 20111123: 0) ACPI 5.0 Support: This release contains full support for the ACPI 5.0 specification, as summarized below. Reduced Hardware Support: ------------------------- This support allows for ACPI systems without the usual ACPI hardware. This support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA will not attempt to initialize or use any of the usual ACPI hardware. Note, when this flag is set, all of the following ACPI hardware is assumed to be not present and is not initialized or accessed: General Purpose Events (GPEs) Fixed Events (PM1a/PM1b and PM Control) Power Management Timer and Console Buttons (power/sleep) Real-time Clock Alarm Global Lock System Control Interrupt (SCI) The FACS is assumed to be non-existent ACPI Tables: ------------ All new tables and updates to existing tables are fully supported in the ACPICA headers (for use by device drivers), the disassembler, and the iASL Data Table Compiler. ACPI 5.0 defines these new tables: BGRT /* Boot Graphics Resource Table */ DRTM /* Dynamic Root of Trust for Measurement table */ FPDT /* Firmware Performance Data Table */ GTDT /* Generic Timer Description Table */ MPST /* Memory Power State Table */ PCCT /* Platform Communications Channel Table */ PMTT /* Platform Memory Topology Table */ RASF /* RAS Feature table */ Operation Regions/SpaceIDs: --------------------------- All new operation regions are fully supported by the iASL compiler, the disassembler, and the ACPICA runtime code (for dispatch to region handlers.) The new operation region Space IDs are: GeneralPurposeIo GenericSerialBus Resource Descriptors: --------------------- All new ASL resource descriptors are fully supported by the iASL compiler, the ASL/AML disassembler, and the ACPICA runtime Resource Manager code (including all new predefined resource tags). New descriptors are: FixedDma GpioIo GpioInt I2cSerialBus SpiSerialBus UartSerialBus ASL/AML Operators, New and Modified: ------------------------------------ One new operator is added, the Connection operator, which is used to associate a GeneralPurposeIo or GenericSerialBus resource descriptor with individual field objects within an operation region. Several new protocols are associated with the AccessAs operator. All are fully supported by the iASL compiler, disassembler, and runtime ACPICA AML interpreter: Connection // Declare Field Connection attributes AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes Protocol AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol RawDataBuffer // Data type for Vendor Data fields Predefined ASL/AML Objects: --------------------------- All new predefined objects/control-methods are supported by the iASL compiler and the ACPICA runtime validation/repair (arguments and return values.) New predefined names include the following: Standard Predefined Names (Objects or Control Methods): _AEI, _CLS, _CPC, _CWS, _DEP, _DLM, _EVT, _GCP, _CRT, _GWS, _HRV, _PRE, _PSE, _SRT, _SUB. Resource Tags (Names used to access individual fields within resource descriptors): _DBT, _DPL, _DRS, _END, _FLC, _IOR, _LIN, _MOD, _PAR, _PHA, _PIN, _PPI, _POL, _RXL, _SLV, _SPE, _STB, _TXL, _VEN. ACPICA External Interfaces: --------------------------- Several new interfaces have been defined for use by ACPI-related device drivers and other host OS services: AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS to acquire and release AML mutexes that are defined in the DSDT/SSDT tables provided by the BIOS. They are intended to be used in conjunction with the ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level mutual exclusion with the AML code/interpreter. AcpiGetEventResources: Returns the (formatted) resource descriptors as defined by the ACPI 5.0 _AEI object (ACPI Event Information). This object provides resource descriptors associated with hardware-reduced platform events, similar to the AcpiGetCurrentResources interface. Operation Region Handlers: For General Purpose IO and Generic Serial Bus operation regions, information about the Connection() object and any optional length information is passed to the region handler within the Context parameter. AcpiBufferToResource: This interface converts a raw AML buffer containing a resource template or resource descriptor to the ACPI_RESOURCE internal format suitable for use by device drivers. Can be used by an operation region handler to convert the Connection() buffer object into a ACPI_RESOURCE. Miscellaneous/Tools/TestSuites: ------------------------------- Support for extended _HID names (Four alpha characters instead of three). Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. Support for ACPI 5.0 features in the ASLTS test suite. Fully updated documentation (ACPICA and iASL reference documents.) ACPI Table Definition Language: ------------------------------- Support for this language was implemented and released as a subsystem of the iASL compiler in 2010. (See the iASL compiler User Guide.) Non-ACPI 5.0 changes for this release: -------------------------------------- 1) ACPICA Core Subsystem: Fix a problem with operation region declarations where a failure can occur if the region name and an argument that evaluates to an object (such as the region address) are in different namespace scopes. Lin Ming, ACPICA BZ 937. Do not abort an ACPI table load if an invalid space ID is found within. This will be caught later if the offending method is executed. ACPICA BZ 925. Fixed an issue with the FFixedHW space ID where the ID was not always recognized properly (Both ACPICA and iASL). ACPICA BZ 926. Fixed a problem with the 32-bit generation of the unix-specific OSL (osunixxf.c). Lin Ming, ACPICA BZ 936. Several changes made to enable generation with the GCC 4.6 compiler. ACPICA BZ 935. New error messages: Unsupported I/O requests (not 8/16/32 bit), and Index/Bank field registers out-of-range. 2) iASL Compiler/Disassembler and Tools: iASL: Implemented the __PATH__ operator, which returns the full pathname of the current source file. AcpiHelp: Automatically display expanded keyword information for all ASL operators. Debugger: Add "Template" command to disassemble/dump resource template buffers. Added a new master script to generate and execute the ASLTS test suite. Automatically handles 32- and 64-bit generation. See tests/aslts.sh iASL: Fix problem with listing generation during processing of the Switch() operator where AML listing was disabled until the entire Switch block was completed. iASL: Improve support for semicolon statement terminators. Fix "invalid character" message for some cases when the semicolon is used. Semicolons are now allowed after every grammar element. ACPICA BZ 927. iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 923. Disassembler: Fix problem with disassembly of the DataTableRegion operator where an inadvertent "Unhandled deferred opcode" message could be generated. 3) Example Code and Data Size These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total Debug Version: 165.6K Code, 68.4K Data, 234.0K Total Current Release: Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total Debug Version: 170.8K Code, 72.6K Data, 243.4K Total ---------------------------------------- 22 September 2011. Summary of changes for version 20110922: 0) ACPI 5.0 News: Support for ACPI 5.0 in ACPICA has been underway for several months and will be released at the same time that ACPI 5.0 is officially released. The ACPI 5.0 specification is on track for release in the next few months. 1) ACPICA Core Subsystem: Fixed a problem where the maximum sleep time for the Sleep() operator was intended to be limited to two seconds, but was inadvertently limited to 20 seconds instead. Linux and Unix makefiles: Added header file dependencies to ensure correct generation of ACPICA core code and utilities. Also simplified the makefiles considerably through the use of the vpath variable to specify search paths. ACPICA BZ 924. 2) iASL Compiler/Disassembler and Tools: iASL: Implemented support to check the access length for all fields created to access named Resource Descriptor fields. For example, if a resource field is defined to be two bits, a warning is issued if a CreateXxxxField() is used with an incorrect bit length. This is implemented for all current resource descriptor names. ACPICA BZ 930. Disassembler: Fixed a byte ordering problem with the output of 24-bit and 56- bit integers. iASL: Fixed a couple of issues associated with variable-length package objects. 1) properly handle constants like One, Ones, Zero -- do not make a VAR_PACKAGE when these are used as a package length. 2) Allow the VAR_PACKAGE opcode (in addition to PACKAGE) when validating object types for predefined names. iASL: Emit statistics for all output files (instead of just the ASL input and AML output). Includes listings, hex files, etc. iASL: Added -G option to the table compiler to allow the compilation of custom ACPI tables. The only part of a table that is required is the standard 36- byte ACPI header. AcpiXtract: Ported to the standard ACPICA environment (with ACPICA headers), which also adds correct 64-bit support. Also, now all output filenames are completely lower case. AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when loading table files. A warning is issued for any such tables. The only exception is an FADT. This also fixes a possible fault when attempting to load non-AML tables. ACPICA BZ 932. AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where a missing table terminator could cause a fault when using the -p option. AcpiSrc: Fixed a possible divide-by-zero fault when generating file statistics. 3) Example Code and Data Size These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release (VC 9.0): Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total Debug Version: 165.6K Code, 68.4K Data, 234.0K Total Current Release (VC 9.0): Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total Debug Version: 165.6K Code, 68.4K Data, 234.0K Total ---------------------------------------- 23 June 2011. Summary of changes for version 20110623: 1) ACPI CA Core Subsystem: Updated the predefined name repair mechanism to not attempt repair of a _TSS return object if a _PSS object is present. We can only sort the _TSS return package if there is no _PSS within the same scope. This is because if _PSS is present, the ACPI specification dictates that the _TSS Power Dissipation field is to be ignored, and therefore some BIOSs leave garbage values in the _TSS Power field(s). In this case, it is best to just return the _TSS package as- is. Reported by, and fixed with assistance from Fenghua Yu. Added an option to globally disable the control method return value validation and repair. This runtime option can be used to disable return value repair if this is causing a problem on a particular machine. Also added an option to AcpiExec (-dr) to set this disable flag. All makefiles and project files: Major changes to improve generation of ACPICA tools. ACPICA BZ 912: Reduce default optimization levels to improve compatibility For Linux, add strict-aliasing=0 for gcc 4 Cleanup and simplify use of command line defines Cleanup multithread library support Improve usage messages Linux-specific header: update handling of THREAD_ID and pthread. For the 32- bit case, improve casting to eliminate possible warnings, especially with the acpica tools. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release (VC 9.0): Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total Debug Version: 165.6K Code, 68.4K Data, 234.0K Total Current Release (VC 9.0): Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 2) iASL Compiler/Disassembler and Tools: With this release, a new utility named "acpihelp" has been added to the ACPICA package. This utility summarizes the ACPI specification chapters for the ASL and AML languages. It generates under Linux/Unix as well as Windows, and provides the following functionality: Find/display ASL operator(s) -- with description and syntax. Find/display ASL keyword(s) -- with exact spelling and descriptions. Find/display ACPI predefined name(s) -- with description, number of arguments, and the return value data type. Find/display AML opcode name(s) -- with opcode, arguments, and grammar. Decode/display AML opcode -- with opcode name, arguments, and grammar. Service Layers: Make multi-thread support configurable. Conditionally compile the multi-thread support so that threading libraries will not be linked if not necessary. The only tool that requires multi-thread support is AcpiExec. iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions of Bison appear to want the interface to yyerror to be a const char * (or at least this is a problem when generating iASL on some systems.) ACPICA BZ 923 Pierre Lejeune. Tools: Fix for systems where O_BINARY is not defined. Only used for Windows versions of the tools. ---------------------------------------- 27 May 2011. Summary of changes for version 20110527: 1) ACPI CA Core Subsystem: ASL Load() operator: Reinstate most restrictions on the incoming ACPI table signature. Now, only allow SSDT, OEMx, and a null signature. History: 1) Originally, we checked the table signature for "SSDT" or "PSDT". (PSDT is now obsolete.) 2) We added support for OEMx tables, signature "OEM" plus a fourth "don't care" character. 3) Valid tables were encountered with a null signature, so we just gave up on validating the signature, (05/2008). 4) We encountered non-AML tables such as the MADT, which caused interpreter errors and kernel faults. So now, we once again allow only SSDT, OEMx, and now, also a null signature. (05/2011). Added the missing _TDL predefined name to the global name list in order to enable validation. Affects both the core ACPICA code and the iASL compiler. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release (VC 9.0): Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total Debug Version: 164.5K Code, 68.0K Data, 232.5K Total Current Release (VC 9.0): Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 2) iASL Compiler/Disassembler and Tools: Debugger/AcpiExec: Implemented support for "complex" method arguments on the debugger command line. This adds support beyond simple integers -- including Strings, Buffers, and Packages. Includes support for nested packages. Increased the default command line buffer size to accommodate these arguments. See the ACPICA reference for details and syntax. ACPICA BZ 917. Debugger/AcpiExec: Implemented support for "default" method arguments for the Execute/Debug command. Now, the debugger will always invoke a control method with the required number of arguments -- even if the command line specifies none or insufficient arguments. It uses default integer values for any missing arguments. Also fixes a bug where only six method arguments maximum were supported instead of the required seven. Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine and also return status in order to prevent buffer overruns. See the ACPICA reference for details and syntax. ACPICA BZ 921 iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and makefiles to simplify support for the two different but similar parser generators, bison and yacc. Updated the generic unix makefile for gcc 4. The default gcc version is now expected to be 4 or greater, since options specific to gcc 4 are used. ---------------------------------------- 13 April 2011. Summary of changes for version 20110413: 1) ACPI CA Core Subsystem: Implemented support to execute a so-called "orphan" _REG method under the EC device. This change will force the execution of a _REG method underneath the EC device even if there is no corresponding operation region of type EmbeddedControl. Fixes a problem seen on some machines and apparently is compatible with Windows behavior. ACPICA BZ 875. Added more predefined methods that are eligible for automatic NULL package element removal. This change adds another group of predefined names to the list of names that can be repaired by having NULL package elements dynamically removed. This group are those methods that return a single variable- length package containing simple data types such as integers, buffers, strings. This includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, _PSL, _Sx, and _TZD. ACPICA BZ 914. Split and segregated all internal global lock functions to a new file, evglock.c. Updated internal address SpaceID for DataTable regions. Moved this internal space id in preparation for ACPI 5.0 changes that will include some new space IDs. This change should not affect user/host code. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release (VC 9.0): Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total Debug Version: 164.2K Code, 67.9K Data, 232.1K Total Current Release (VC 9.0): Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 2) iASL Compiler/Disassembler and Tools: iASL/DTC: Major update for new grammar features. Allow generic data types in custom ACPI tables. Field names are now optional. Any line can be split to multiple lines using the continuation char (\). Large buffers now use line- continuation character(s) and no colon on the continuation lines. See the grammar update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob Moore. iASL: Mark ASL "Return()" and the simple "Return" as "Null" return statements. Since the parser stuffs a "zero" as the return value for these statements (due to the underlying AML grammar), they were seen as "return with value" by the iASL semantic checking. They are now seen correctly as "null" return statements. iASL: Check if a_REG declaration has a corresponding Operation Region. Adds a check for each _REG to ensure that there is in fact a corresponding operation region declaration in the same scope. If not, the _REG method is not very useful since it probably won't be executed. ACPICA BZ 915. iASL/DTC: Finish support for expression evaluation. Added a new expression parser that implements c-style operator precedence and parenthesization. ACPICA bugzilla 908. Disassembler/DTC: Remove support for () and <> style comments in data tables. Now that DTC has full expression support, we don't want to have comment strings that start with a parentheses or a less-than symbol. Now, only the standard /* and // comments are supported, as well as the bracket [] comments. AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have "unusual" headers in the acpidump file. Update the header validation to support these tables. Problem introduced in previous AcpiXtract version in the change to support "wrong checksum" error messages emitted by acpidump utility. iASL: Add a * option to generate all template files (as a synonym for ALL) as in "iasl -T *" or "iasl -T ALL". iASL/DTC: Do not abort compiler on fatal errors. We do not want to completely abort the compiler on "fatal" errors, simply should abort the current compile. This allows multiple compiles with a single (possibly wildcard) compiler invocation. ---------------------------------------- 16 March 2011. Summary of changes for version 20110316: 1) ACPI CA Core Subsystem: Fixed a problem caused by a _PRW method appearing at the namespace root scope during the setup of wake GPEs. A fault could occur if a _PRW directly under the root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. Implemented support for "spurious" Global Lock interrupts. On some systems, a global lock interrupt can occur without the pending flag being set. Upon a GL interrupt, we now ensure that a thread is actually waiting for the lock before signaling GL availability. Rafael Wysocki, Bob Moore. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release (VC 9.0): Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total Debug Version: 163.9K Code, 67.5K Data, 231.4K Total Current Release (VC 9.0): Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 2) iASL Compiler/Disassembler and Tools: Implemented full support for the "SLIC" ACPI table. Includes support in the header files, disassembler, table compiler, and template generator. Bob Moore, Lin Ming. AcpiXtract: Correctly handle embedded comments and messages from AcpiDump. Apparently some or all versions of acpidump will occasionally emit a comment like "Wrong checksum", etc., into the dump file. This was causing problems for AcpiXtract. ACPICA BZ 905. iASL: Fix the Linux makefile by removing an inadvertent double file inclusion. ACPICA BZ 913. AcpiExec: Update installation of operation region handlers. Install one handler for a user-defined address space. This is used by the ASL test suite (ASLTS). ---------------------------------------- 11 February 2011. Summary of changes for version 20110211: 1) ACPI CA Core Subsystem: Added a mechanism to defer _REG methods for some early-installed handlers. Most user handlers should be installed before call to AcpiEnableSubsystem. However, Event handlers and region handlers should be installed after AcpiInitializeObjects. Override handlers for the "default" regions should be installed early, however. This change executes all _REG methods for the default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any chicken/egg issues between them. ACPICA BZ 848. Implemented an optimization for GPE detection. This optimization will simply ignore GPE registers that contain no enabled GPEs -- there is no need to read the register since this information is available internally. This becomes more important on machines with a large GPE space. ACPICA bugzilla 884. Lin Ming. Suggestion from Joe Liu. Removed all use of the highly unreliable FADT revision field. The revision number in the FADT has been found to be completely unreliable and cannot be trusted. Only the actual table length can be used to infer the version. This change updates the ACPICA core and the disassembler so that both no longer even look at the FADT version and instead depend solely upon the FADT length. Fix an unresolved name issue for the no-debug and no-error-message source generation cases. The _AcpiModuleName was left undefined in these cases, but it is actually needed as a parameter to some interfaces. Define _AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. Split several large files (makefiles and project files updated) utglobal.c -> utdecode.c dbcomds.c -> dbmethod.c dbnames.c dsopcode.c -> dsargs.c dscontrol.c dsload.c -> dsload2.c aslanalyze.c -> aslbtypes.c aslwalks.c Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release (VC 9.0): Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total Debug Version: 163.9K Code, 67.5K Data, 231.4K Total Current Release (VC 9.0): Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. These are useful C-style macros with the standard definitions. ACPICA bugzilla 898. iASL/DTC: Added support for integer expressions and labels. Support for full expressions for all integer fields in all ACPI tables. Support for labels in "generic" portions of tables such as UEFI. See the iASL reference manual. Debugger: Added a command to display the status of global handlers. The "handlers" command will display op region, fixed event, and miscellaneous global handlers. installation status -- and for op regions, whether default or user-installed handler will be used. iASL: Warn if reserved method incorrectly returns a value. Many predefined names are defined such that they do not return a value. If implemented as a method, issue a warning if such a name explicitly returns a value. ACPICA Bugzilla 855. iASL: Added detection of GPE method name conflicts. Detects a conflict where there are two GPE methods of the form _Lxy and _Exy in the same scope. (For example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. iASL/DTC: Fixed a couple input scanner issues with comments and line numbers. Comment remover could get confused and miss a comment ending. Fixed a problem with line counter maintenance. iASL/DTC: Reduced the severity of some errors from fatal to error. There is no need to abort on simple errors within a field definition. Debugger: Simplified the output of the help command. All help output now in a single screen, instead of help subcommands. ACPICA Bugzilla 897. ---------------------------------------- 12 January 2011. Summary of changes for version 20110112: 1) ACPI CA Core Subsystem: Fixed a race condition between method execution and namespace walks that can possibly cause a fault. The problem was apparently introduced in version 20100528 as a result of a performance optimization that reduces the number of namespace walks upon method exit by using the delete_namespace_subtree function instead of the delete_namespace_by_owner function used previously. Bug is a missing namespace lock in the delete_namespace_subtree function. dana.myers@oracle.com Fixed several issues and a possible fault with the automatic "serialized" method support. History: This support changes a method to "serialized" on the fly if the method generates an AE_ALREADY_EXISTS error, indicating the possibility that it cannot handle reentrancy. This fix repairs a couple of issues seen in the field, especially on machines with many cores: 1) Delete method children only upon the exit of the last thread, so as to not delete objects out from under other running threads (and possibly causing a fault.) 2) Set the "serialized" bit for the method only upon the exit of the Last thread, so as to not cause deadlock when running threads attempt to exit. 3) Cleanup the use of the AML "MethodFlags" and internal method flags so that there is no longer any confusion between the two. Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. Debugger: Now lock the namespace for duration of a namespace dump. Prevents issues if the namespace is changing dynamically underneath the debugger. Especially affects temporary namespace nodes, since the debugger displays these also. Updated the ordering of include files. The ACPICA headers should appear before any compiler-specific headers (stdio.h, etc.) so that acenv.h can set any necessary compiler-specific defines, etc. Affects the ACPI-related tools and utilities. Updated all ACPICA copyrights and signons to 2011. Added the 2011 copyright to all module headers and signons, including the Linux header. This affects virtually every file in the ACPICA core subsystem, iASL compiler, and all utilities. Added project files for MS Visual Studio 2008 (VC++ 9.0). The original project files for VC++ 6.0 are now obsolete. New project files can be found under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for details. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release (VC 6.0): Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total Debug Version: 166.6K Code, 52.1K Data, 218.7K Total Current Release (VC 9.0): Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2) iASL Compiler/Disassembler and Tools: iASL: Added generic data types to the Data Table compiler. Add "generic" data types such as UINT32, String, Unicode, etc., to simplify the generation of platform-defined tables such as UEFI. Lin Ming. iASL: Added listing support for the Data Table Compiler. Adds listing support (-l) to display actual binary output for each line of input code. ---------------------------------------- 09 December 2010. Summary of changes for version 20101209: 1) ACPI CA Core Subsystem: Completed the major overhaul of the GPE support code that was begun in July 2010. Major features include: removal of _PRW execution in ACPICA (host executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, changes to existing interfaces, simplification of GPE handler operation, and a handful of new interfaces: AcpiUpdateAllGpes AcpiFinishGpe AcpiSetupGpeForWake AcpiSetGpeWakeMask One new file, evxfgpe.c to consolidate all external GPE interfaces. See the ACPICA Programmer Reference for full details and programming information. See the new section 4.4 "General Purpose Event (GPE) Support" for a full overview, and section 8.7 "ACPI General Purpose Event Management" for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin Ming, Bob Moore, Rafael Wysocki. Implemented a new GPE feature for Windows compatibility, the "Implicit Wake GPE Notify". This feature will automatically issue a Notify(2) on a device when a Wake GPE is received if there is no corresponding GPE method or handler. ACPICA BZ 870. Fixed a problem with the Scope() operator during table parse and load phase. During load phase (table load or method execution), the scope operator should not enter the target into the namespace. Instead, it should open a new scope at the target location. Linux BZ 19462, ACPICA BZ 882. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total Debug Version: 166.6K Code, 52.1K Data, 218.7K Total Current Release: Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2) iASL Compiler/Disassembler and Tools: iASL: Relax the alphanumeric restriction on _CID strings. These strings are "bus-specific" per the ACPI specification, and therefore any characters are acceptable. The only checks that can be performed are for a null string and perhaps for a leading asterisk. ACPICA BZ 886. iASL: Fixed a problem where a syntax error that caused a premature EOF condition on the source file emitted a very confusing error message. The premature EOF is now detected correctly. ACPICA BZ 891. Disassembler: Decode the AccessSize within a Generic Address Structure (byte access, word access, etc.) Note, this field does not allow arbitrary bit access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. New: AcpiNames utility - Example namespace dump utility. Shows an example of ACPICA configuration for a minimal namespace dump utility. Uses table and namespace managers, but no AML interpreter. Does not add any functionality over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to partition and configure ACPICA. ACPICA BZ 883. AML Debugger: Increased the debugger buffer size for method return objects. Was 4K, increased to 16K. Also enhanced error messages for debugger method execution, including the buffer overflow case. ---------------------------------------- 13 October 2010. Summary of changes for version 20101013: 1) ACPI CA Core Subsystem: Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, now clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. Changed the type of the predefined namespace object _TZ from ThermalZone to Device. This was found to be confusing to the host software that processes the various thermal zones, since _TZ is not really a ThermalZone. However, a Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui Zhang. Added Windows Vista SP2 to the list of supported _OSI strings. The actual string is "Windows 2006 SP2". Eliminated duplicate code in AcpiUtExecute* functions. Now that the nsrepair code automatically repairs _HID-related strings, this type of code is no longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 878. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total Debug Version: 166.3K Code, 52.1K Data, 218.4K Total Current Release: Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented additional compile-time validation for _HID strings. The non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length of the string must be exactly seven or eight characters. For both _HID and _CID strings, all characters must be alphanumeric. ACPICA BZ 874. iASL: Allow certain "null" resource descriptors. Some BIOS code creates descriptors that are mostly or all zeros, with the expectation that they will be filled in at runtime. iASL now allows this as long as there is a "resource tag" (name) associated with the descriptor, which gives the ASL a handle needed to modify the descriptor. ACPICA BZ 873. Added single-thread support to the generic Unix application OSL. Primarily for iASL support, this change removes the use of semaphores in the single- threaded ACPICA tools/applications - increasing performance. The _MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED option. ACPICA BZ 879. AcpiExec: several fixes for the 64-bit version. Adds XSDT support and support for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. iASL: Moved all compiler messages to a new file, aslmessages.h. ---------------------------------------- 15 September 2010. Summary of changes for version 20100915: 1) ACPI CA Core Subsystem: Removed the AcpiOsDerivePciId OSL interface. The various host implementations of this function were not OS-dependent and are now obsolete and can be removed from all host OSLs. This function has been replaced by AcpiHwDerivePciId, which is now part of the ACPICA core code. AcpiHwDerivePciId has been implemented without recursion. Adds one new module, hwpci.c. ACPICA BZ 857. Implemented a dynamic repair for _HID and _CID strings. The following problems are now repaired at runtime: 1) Remove a leading asterisk in the string, and 2) the entire string is uppercased. Both repairs are in accordance with the ACPI specification and will simplify host driver code. ACPICA BZ 871. The ACPI_THREAD_ID type is no longer configurable, internally it is now always UINT64. This simplifies the ACPICA code, especially any printf output. UINT64 is the only common data type for all thread_id types across all operating systems. It is now up to the host OSL to cast the native thread_id type to UINT64 before returning the value to ACPICA (via AcpiOsGetThreadId). Lin Ming, Bob Moore. Added the ACPI_INLINE type to enhance the ACPICA configuration. The "inline" keyword is not standard across compilers, and this type allows inline to be configured on a per-compiler basis. Lin Ming. Made the system global AcpiGbl_SystemAwakeAndRunning publicly available. Added an extern for this boolean in acpixf.h. Some hosts utilize this value during suspend/restore operations. ACPICA BZ 869. All code that implements error/warning messages with the "ACPI:" prefix has been moved to a new module, utxferror.c. The UINT64_OVERLAY was moved to utmath.c, which is the only module where it is used. ACPICA BZ 829. Lin Ming, Bob Moore. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total Debug Version: 165.1K Code, 51.9K Data, 217.0K Total Current Release: Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2) iASL Compiler/Disassembler and Tools: iASL/Disassembler: Write ACPI errors to stderr instead of the output file. This keeps the output files free of random error messages that may originate from within the namespace/interpreter code. Used this opportunity to merge all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 866. Lin Ming, Bob Moore. Tools: update some printfs for ansi warnings on size_t. Handle width change of size_t on 32-bit versus 64-bit generations. Lin Ming. ---------------------------------------- 06 August 2010. Summary of changes for version 20100806: 1) ACPI CA Core Subsystem: Designed and implemented a new host interface to the _OSI support code. This will allow the host to dynamically add or remove multiple _OSI strings, as well as install an optional handler that is called for each _OSI invocation. Also added a new AML debugger command, 'osi' to display and modify the global _OSI string table, and test support in the AcpiExec utility. See the ACPICA reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. New Functions: AcpiInstallInterface - Add an _OSI string. AcpiRemoveInterface - Delete an _OSI string. AcpiInstallInterfaceHandler - Install optional _OSI handler. Obsolete Functions: AcpiOsValidateInterface - no longer used. New Files: source/components/utilities/utosi.c Re-introduced the support to enable multi-byte transfers for Embedded Controller (EC) operation regions. A reported problem was found to be a bug in the host OS, not in the multi-byte support. Previously, the maximum data size passed to the EC operation region handler was a single byte. There are often EC Fields larger than one byte that need to be transferred, and it is useful for the EC driver to lock these as a single transaction. This change enables single transfers larger than 8 bits. This effectively changes the access to the EC space from ByteAcc to AnyAcc, and will probably require changes to the host OS Embedded Controller driver to enable 16/32/64/256- bit transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The prototype in acpiosxf.h had the output value pointer as a (void *). It should be a (UINT64 *). This may affect some host OSL code. Fixed a couple problems with the recently modified Linux makefiles for iASL and AcpiExec. These new makefiles place the generated object files in the local directory so that there can be no collisions between the files that are shared between them that are compiled with different options. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total Debug Version: 164.0K Code, 51.5K Data, 215.5K Total Current Release: Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 2) iASL Compiler/Disassembler and Tools: iASL/Disassembler: Added a new option (-da, "disassemble all") to load the namespace from and disassemble an entire group of AML files. Useful for loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) and disassembling with one simple command. ACPICA BZ 865. Lin Ming. iASL: Allow multiple invocations of -e option. This change allows multiple uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 834. Lin Ming. ---------------------------------------- 02 July 2010. Summary of changes for version 20100702: 1) ACPI CA Core Subsystem: Implemented several updates to the recently added GPE reference count support. The model for "wake" GPEs is changing to give the host OS complete control of these GPEs. Eventually, the ACPICA core will not execute any _PRW methods, since the host already must execute them. Also, additional changes were made to help ensure that the reference counts are kept in proper synchronization with reality. Rafael J. Wysocki. 1) Ensure that GPEs are not enabled twice during initialization. 2) Ensure that GPE enable masks stay in sync with the reference count. 3) Do not inadvertently enable GPEs when writing GPE registers. 4) Remove the internal wake reference counter and add new AcpiGpeWakeup interface. This interface will set or clear individual GPEs for wakeup. 5) Remove GpeType argument from AcpiEnable and AcpiDisable. These interfaces are now used for "runtime" GPEs only. Changed the behavior of the GPE install/remove handler interfaces. The GPE is no longer disabled during this process, as it was found to cause problems on some machines. Rafael J. Wysocki. Reverted a change introduced in version 20100528 to enable Embedded Controller multi-byte transfers. This change was found to cause problems with Index Fields and possibly Bank Fields. It will be reintroduced when these problems have been resolved. Fixed a problem with references to Alias objects within Package Objects. A reference to an Alias within the definition of a Package was not always resolved properly. Aliases to objects like Processors, Thermal zones, etc. were resolved to the actual object instead of a reference to the object as it should be. Package objects are only allowed to contain integer, string, buffer, package, and reference objects. Redhat bugzilla 608648. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total Debug Version: 164.1K Code, 51.5K Data, 215.6K Total Current Release: Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented a new compiler subsystem to allow definition and compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. These are called "ACPI Data Tables", and the new compiler is the "Data Table Compiler". This compiler is intended to simplify the existing error-prone process of creating these tables for the BIOS, as well as allowing the disassembly, modification, recompilation, and override of existing ACPI data tables. See the iASL User Guide for detailed information. iASL: Implemented a new Template Generator option in support of the new Data Table Compiler. This option will create examples of all known ACPI tables that can be used as the basis for table development. See the iASL documentation and the -T option. Disassembler and headers: Added support for the WDDT ACPI table (Watchdog Descriptor Table). Updated the Linux makefiles for iASL and AcpiExec to place the generated object files in the local directory so that there can be no collisions between the shared files between them that are generated with different options. Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. Use the #define __APPLE__ to enable this support. ---------------------------------------- 28 May 2010. Summary of changes for version 20100528: Note: The ACPI 4.0a specification was released on April 5, 2010 and is available at www.acpi.info. This is primarily an errata release. 1) ACPI CA Core Subsystem: Undefined ACPI tables: We are looking for the definitions for the following ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. Implemented support to enable multi-byte transfers for Embedded Controller (EC) operation regions. Previously, the maximum data size passed to the EC operation region handler was a single byte. There are often EC Fields larger than one byte that need to be transferred, and it is useful for the EC driver to lock these as a single transaction. This change enables single transfers larger than 8 bits. This effectively changes the access to the EC space from ByteAcc to AnyAcc, and will probably require changes to the host OS Embedded Controller driver to enable 16/32/64/256-bit transfers in addition to 8- bit transfers. Alexey Starikovskiy, Lin Ming Implemented a performance enhancement for namespace search and access. This change enhances the performance of namespace searches and walks by adding a backpointer to the parent in each namespace node. On large namespaces, this change can improve overall ACPI performance by up to 9X. Adding a pointer to each namespace node increases the overall size of the internal namespace by about 5%, since each namespace entry usually consists of both a namespace node and an ACPI operand object. However, this is the first growth of the namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. Implemented a performance optimization that reduces the number of namespace walks. On control method exit, only walk the namespace if the method is known to have created namespace objects outside of its local scope. Previously, the entire namespace was traversed on each control method exit. This change can improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob Moore. Added support to truncate I/O addresses to 16 bits for Windows compatibility. Some ASL code has been seen in the field that inadvertently has bits set above bit 15. This feature is optional and is enabled if the BIOS requests any Windows OSI strings. It can also be enabled by the host OS. Matthew Garrett, Bob Moore. Added support to limit the maximum time for the ASL Sleep() operator. To prevent accidental deep sleeps, limit the maximum time that Sleep() will actually sleep. Configurable, the default maximum is two seconds. ACPICA bugzilla 854. Added run-time validation support for the _WDG and_WED Microsoft predefined methods. These objects are defined by "Windows Instrumentation", and are not part of the ACPI spec. ACPICA BZ 860. Expanded all statistic counters used during namespace and device initialization from 16 to 32 bits in order to support very large namespaces. Replaced all instances of %d in printf format specifiers with %u since nearly all integers in ACPICA are unsigned. Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly returned as AE_NO_HANDLER. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total Debug Version: 164.2K Code, 51.5K Data, 215.7K Total Current Release: Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 2) iASL Compiler/Disassembler and Tools: iASL: Added compiler support for the _WDG and_WED Microsoft predefined methods. These objects are defined by "Windows Instrumentation", and are not part of the ACPI spec. ACPICA BZ 860. AcpiExec: added option to disable the memory tracking mechanism. The -dt option will disable the tracking mechanism, which improves performance considerably. AcpiExec: Restructured the command line options into -d (disable) and -e (enable) options. ---------------------------------------- 28 April 2010. Summary of changes for version 20100428: 1) ACPI CA Core Subsystem: Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, including FADT-based and GPE Block Devices, execute any _PRW methods in the new table, and process any _Lxx/_Exx GPE methods in the new table. Any runtime GPE that is referenced by an _Lxx/_Exx method in the new table is immediately enabled. Handles the FADT-defined GPEs as well as GPE Block Devices. Provides compatibility with other ACPI implementations. Two new files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob Moore. Fixed a regression introduced in version 20100331 within the table manager where initial table loading could fail. This was introduced in the fix for AcpiReallocateRootTable. Also, renamed some of fields in the table manager data structures to clarify their meaning and use. Fixed a possible allocation overrun during internal object copy in AcpiUtCopySimpleObject. The original code did not correctly handle the case where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 847. Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a possible access beyond end-of-allocation. Also, now fully validate descriptor (size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total Debug Version: 163.5K Code, 51.3K Data, 214.8K Total Current Release: Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented Min/Max/Len/Gran validation for address resource descriptors. This change implements validation for the address fields that are common to all address-type resource descriptors. These checks are implemented: Checks for valid Min/Max, length within the Min/Max window, valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per table 6-40 in the ACPI 4.0a specification. Also split the large aslrestype1.c and aslrestype2.c files into five new files. ACPICA BZ 840. iASL: Added support for the _Wxx predefined names. This support was missing and these names were not recognized by the compiler as valid predefined names. ACPICA BZ 851. iASL: Added an error for all predefined names that are defined to return no value and thus must be implemented as Control Methods. These include all of the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. iASL: Implemented the -ts option to emit hex AML data in ASL format, as an ASL Buffer. Allows ACPI tables to be easily included within ASL files, to be dynamically loaded via the Load() operator. Also cleaned up output for the - ta and -tc options. ACPICA BZ 853. Tests: Added a new file with examples of extended iASL error checking. Demonstrates the advanced error checking ability of the iASL compiler. Available at tests/misc/badcode.asl. ---------------------------------------- 31 March 2010. Summary of changes for version 20100331: 1) ACPI CA Core Subsystem: Completed a major update for the GPE support in order to improve support for shared GPEs and to simplify both host OS and ACPICA code. Added a reference count mechanism to support shared GPEs that require multiple device drivers. Several external interfaces have changed. One external interface has been removed. One new external interface was added. Most of the GPE external interfaces now use the GPE spinlock instead of the events mutex (and the Flags parameter for many GPE interfaces has been removed.) See the updated ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, Rafael Wysocki. ACPICA BZ 831. Changed: AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus Removed: AcpiSetGpeType New: AcpiSetGpe Implemented write support for DataTable operation regions. These regions are defined via the DataTableRegion() operator. Previously, only read support was implemented. The ACPI specification allows DataTableRegions to be read/write, however. Implemented a new subsystem option to force a copy of the DSDT to local memory. Optionally copy the entire DSDT to local memory (instead of simply mapping it.) There are some (albeit very rare) BIOSs that corrupt or replace the original DSDT, creating the need for this option. Default is FALSE, do not copy the DSDT. Implemented detection of a corrupted or replaced DSDT. This change adds support to detect a DSDT that has been corrupted and/or replaced from outside the OS (by firmware). This is typically catastrophic for the system, but has been seen on some machines. Once this problem has been detected, the DSDT copy option can be enabled via system configuration. Lin Ming, Bob Moore. Fixed two problems with AcpiReallocateRootTable during the root table copy. When copying the root table to the new allocation, the length used was incorrect. The new size was used instead of the current table size, meaning too much data was copied. Also, the count of available slots for ACPI tables was not set correctly. Alexey Starikovskiy, Bob Moore. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total Debug Version: 163.4K Code, 51.1K Data, 214.5K Total Current Release: Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implement limited typechecking for values returned from predefined control methods. The type of any returned static (unnamed) object is now validated. For example, Return(1). ACPICA BZ 786. iASL: Fixed a predefined name object verification regression. Fixes a problem introduced in version 20100304. An error is incorrectly generated if a predefined name is declared as a static named object with a value defined using the keywords "Zero", "One", or "Ones". Lin Ming. iASL: Added Windows 7 support for the -g option (get local ACPI tables) by reducing the requested registry access rights. ACPICA BZ 842. Disassembler: fixed a possible fault when generating External() statements. Introduced in commit ae7d6fd: Properly handle externals with parent- prefix (carat). Fixes a string length allocation calculation. Lin Ming. ---------------------------------------- 04 March 2010. Summary of changes for version 20100304: 1) ACPI CA Core Subsystem: Fixed a possible problem with the AML Mutex handling function AcpiExReleaseMutex where the function could fault under the very rare condition when the interpreter has blocked, the interpreter lock is released, the interpreter is then reentered via the same thread, and attempts to acquire an AML mutex that was previously acquired. FreeBSD report 140979. Lin Ming. Implemented additional configuration support for the AML "Debug Object". Output from the debug object can now be enabled via a global variable, AcpiGbl_EnableAmlDebugObject. This will assist with remote machine debugging. This debug output is now available in the release version of ACPICA instead of just the debug version. Also, the entire debug output module can now be configured out of the ACPICA build if desired. One new file added, executer/exdebug.c. Lin Ming, Bob Moore. Added header support for the ACPI MCHI table (Management Controller Host Interface Table). This table was added in ACPI 4.0, but the defining document has only recently become available. Standardized output of integer values for ACPICA warnings/errors. Always use 0x prefix for hex output, always use %u for unsigned integer decimal output. Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 invocations.) These invocations were converted from the original ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total Debug Version: 163.5K Code, 50.9K Data, 214.4K Total Current Release: Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented typechecking support for static (non-control method) predefined named objects that are declared with the Name() operator. For example, the type of this object is now validated to be of type Integer: Name(_BBN, 1). This change migrates the compiler to using the core predefined name table instead of maintaining a local version. Added a new file, aslpredef.c. ACPICA BZ 832. Disassembler: Added support for the ACPI 4.0 MCHI table. ---------------------------------------- 21 January 2010. Summary of changes for version 20100121: 1) ACPI CA Core Subsystem: Added the 2010 copyright to all module headers and signons. This affects virtually every file in the ACPICA core subsystem, the iASL compiler, the tools/utilities, and the test suites. Implemented a change to the AcpiGetDevices interface to eliminate unnecessary invocations of the _STA method. In the case where a specific _HID is requested, do not run _STA until a _HID match is found. This eliminates potentially dozens of _STA calls during a search for a particular device/HID, which in turn can improve boot times. ACPICA BZ 828. Lin Ming. Implemented an additional repair for predefined method return values. Attempt to repair unexpected NULL elements within returned Package objects. Create an Integer of value zero, a NULL String, or a zero-length Buffer as appropriate. ACPICA BZ 818. Lin Ming, Bob Moore. Removed the obsolete ACPI_INTEGER data type. This type was introduced as the code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 64-bit AML integers). It is now obsolete and this change removes it from the ACPICA code base, replaced by UINT64. The original typedef has been retained for now for compatibility with existing device driver code. ACPICA BZ 824. Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in the parse tree object. Added additional warning options for the gcc-4 generation. Updated the source accordingly. This includes some code restructuring to eliminate unreachable code, elimination of some gotos, elimination of unused return values, some additional casting, and removal of redundant declarations. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total Debug Version: 163.4K Code, 50.8K Data, 214.2K Total Current Release: Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 2) iASL Compiler/Disassembler and Tools: No functional changes for this release. ---------------------------------------- 14 December 2009. Summary of changes for version 20091214: 1) ACPI CA Core Subsystem: Enhanced automatic data type conversions for predefined name repairs. This change expands the automatic repairs/conversions for predefined name return values to make Integers, Strings, and Buffers fully interchangeable. Also, a Buffer can be converted to a Package of Integers if necessary. The nsrepair.c module was completely restructured. Lin Ming, Bob Moore. Implemented automatic removal of null package elements during predefined name repairs. This change will automatically remove embedded and trailing NULL package elements from returned package objects that are defined to contain a variable number of sub-packages. The driver is then presented with a package with no null elements to deal with. ACPICA BZ 819. Implemented a repair for the predefined _FDE and _GTM names. The expected return value for both names is a Buffer of 5 DWORDs. This repair fixes two possible problems (both seen in the field), where a package of integers is returned, or a buffer of BYTEs is returned. With assistance from Jung-uk Kim. Implemented additional module-level code support. This change will properly execute module-level code that is not at the root of the namespace (under a Device object, etc.). Now executes the code within the current scope instead of the root. ACPICA BZ 762. Lin Ming. Fixed possible mutex acquisition errors when running _REG methods. Fixes a problem where mutex errors can occur when running a _REG method that is in the same scope as a method-defined operation region or an operation region under a module-level IF block. This type of code is rare, so the problem has not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. Fixed a possible memory leak during module-level code execution. An object could be leaked for each block of executed module-level code if the interpreter slack mode is enabled This change deletes any implicitly returned object from the module-level code block. Lin Ming. Removed messages for successful predefined repair(s). The repair mechanism was considered too wordy. Now, messages are only unconditionally emitted if the return object cannot be repaired. Existing messages for successful repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total Debug Version: 162.7K Code, 50.8K Data, 213.5K Total Current Release: Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a regression introduced in 20091112 where intermediate .SRC files were no longer automatically removed at the termination of the compile. acpiexec: Implemented the -f option to specify default region fill value. This option specifies the value used to initialize buffers that simulate operation regions. Default value is zero. Useful for debugging problems that depend on a specific initial value for a region or field. ---------------------------------------- 12 November 2009. Summary of changes for version 20091112: 1) ACPI CA Core Subsystem: Implemented a post-order callback to AcpiWalkNamespace. The existing interface only has a pre-order callback. This change adds an additional parameter for a post-order callback which will be more useful for bus scans. ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. Modified the behavior of the operation region memory mapping cache for SystemMemory. Ensure that the memory mappings created for operation regions do not cross 4K page boundaries. Crossing a page boundary while mapping regions can cause kernel warnings on some hosts if the pages have different attributes. Such regions are probably BIOS bugs, and this is the workaround. Linux BZ 14445. Lin Ming. Implemented an automatic repair for predefined methods that must return sorted lists. This change will repair (by sorting) packages returned by _ALR, _PSS, and _TSS. Drivers can now assume that the packages are correctly sorted and do not contain NULL package elements. Adds one new file, namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. Fixed a possible fault during predefined name validation if a return Package object contains NULL elements. Also adds a warning if a NULL element is followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may include repair or removal of all such NULL elements where possible. Implemented additional module-level executable AML code support. This change will execute module-level code that is not at the root of the namespace (under a Device object, etc.) at table load time. Module-level executable AML code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. Implemented a new internal function to create Integer objects. This function simplifies miscellaneous object creation code. ACPICA BZ 823. Reduced the severity of predefined repair messages, Warning to Info. Since the object was successfully repaired, a warning is too severe. Reduced to an info message for now. These messages may eventually be changed to debug- only. ACPICA BZ 812. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total Debug Version: 161.8K Code, 50.6K Data, 212.4K Total Current Release: Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 2) iASL Compiler/Disassembler and Tools: iASL: Implemented Switch() with While(1) so that Break works correctly. This change correctly implements the Switch operator with a surrounding While(1) so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. iASL: Added a message if a package initializer list is shorter than package length. Adds a new remark for a Package() declaration if an initializer list exists, but is shorter than the declared length of the package. Although technically legal, this is probably a coding error and it is seen in the field. ACPICA BZ 815. Lin Ming, Bob Moore. iASL: Fixed a problem where the compiler could fault after the maximum number of errors was reached (200). acpixtract: Fixed a possible warning for pointer cast if the compiler warning level set very high. ---------------------------------------- 13 October 2009. Summary of changes for version 20091013: 1) ACPI CA Core Subsystem: Fixed a problem where an Operation Region _REG method could be executed more than once. If a custom address space handler is installed by the host before the "initialize operation regions" phase of the ACPICA initialization, any _REG methods for that address space could be executed twice. This change fixes the problem. ACPICA BZ 427. Lin Ming. Fixed a possible memory leak for the Scope() ASL operator. When the exact invocation of "Scope(\)" is executed (change scope to root), one internal operand object was leaked. Lin Ming. Implemented a run-time repair for the _MAT predefined method. If the _MAT return value is defined as a Field object in the AML, and the field size is less than or equal to the default width of an integer (32 or 64),_MAT can incorrectly return an Integer instead of a Buffer. ACPICA now automatically repairs this problem. ACPICA BZ 810. Implemented a run-time repair for the _BIF and _BIX predefined methods. The "OEM Information" field is often incorrectly returned as an Integer with value zero if the field is not supported by the platform. This is due to an ambiguity in the ACPI specification. The field should always be a string. ACPICA now automatically repairs this problem by returning a NULL string within the returned Package. ACPICA BZ 807. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total Debug Version: 161.7K Code, 50.9K Data, 212.6K Total Current Release: Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Fixed a problem where references to external symbols that contained one or more parent-prefixes (carats) were not handled correctly, possibly causing a fault. ACPICA BZ 806. Lin Ming. Disassembler: Restructured the code so that all functions that handle external symbols are in a single module. One new file is added, common/dmextern.c. AML Debugger: Added a max count argument for the Batch command (which executes multiple predefined methods within the namespace.) iASL: Updated the compiler documentation (User Reference.) Available at http://www.acpica.org/documentation/. ACPICA BZ 750. AcpiXtract: Updated for Lint and other formatting changes. Close all open files. ---------------------------------------- 03 September 2009. Summary of changes for version 20090903: 1) ACPI CA Core Subsystem: For Windows Vista compatibility, added the automatic execution of an _INI method located at the namespace root (\_INI). This method is executed at table load time. This support is in addition to the automatic execution of \_SB._INI. Lin Ming. Fixed a possible memory leak in the interpreter for AML package objects if the package initializer list is longer than the defined size of the package. This apparently can only happen if the BIOS changes the package size on the fly (seen in a _PSS object), as ASL compilers do not allow this. The interpreter will truncate the package to the defined size (and issue an error message), but previously could leave the extra objects undeleted if they were pre-created during the argument processing (such is the case if the package consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. Fixed a problem seen when a Buffer or String is stored to itself via ASL. This has been reported in the field. Previously, ACPICA would zero out the buffer/string. Now, the operation is treated as a noop. Provides Windows compatibility. ACPICA BZ 803. Lin Ming. Removed an extraneous error message for ASL constructs of the form Store(LocalX,LocalX) when LocalX is uninitialized. These curious statements are seen in many BIOSs and are once again treated as NOOPs and no error is emitted when they are encountered. ACPICA BZ 785. Fixed an extraneous warning message if a _DSM reserved method returns a Package object. _DSM can return any type of object, so validation on the return type cannot be performed. ACPICA BZ 802. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total Debug Version: 161.6K Code, 50.9K Data, 212.5K Total Current Release: Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a problem with the use of the Alias operator and Resource Templates. The correct alias is now constructed and no error is emitted. ACPICA BZ 738. iASL: Implemented the -I option to specify additional search directories for include files. Allows multiple additional search paths for include files. Directories are searched in the order specified on the command line (after the local directory is searched.) ACPICA BZ 800. iASL: Fixed a problem where the full pathname for include files was not emitted for warnings/errors. This caused the IDE support to not work properly. ACPICA BZ 765. iASL: Implemented the -@ option to specify a Windows-style response file containing additional command line options. ACPICA BZ 801. AcpiExec: Added support to load multiple AML files simultaneously (such as a DSDT and multiple SSDTs). Also added support for wildcards within the AML pathname. These features allow all machine tables to be easily loaded and debugged together. ACPICA BZ 804. Disassembler: Added missing support for disassembly of HEST table Error Bank subtables. ---------------------------------------- 30 July 2009. Summary of changes for version 20090730: The ACPI 4.0 implementation for ACPICA is complete with this release. 1) ACPI CA Core Subsystem: ACPI 4.0: Added header file support for all new and changed ACPI tables. Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There have been some ACPI 4.0 changes to other existing tables. Split the large actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. ACPI 4.0: Implemented predefined name validation for all new names. There are 31 new names in ACPI 4.0. The predefined validation module was split into two files. The new file is namespace/nsrepair.c. ACPICA BZ 770. Implemented support for so-called "module-level executable code". This is executable AML code that exists outside of any control method and is intended to be executed at table load time. Although illegal since ACPI 2.0, this type of code still exists and is apparently still being created. Blocks of this code are now detected and executed as intended. Currently, the code blocks must exist under either an If, Else, or While construct; these are the typical cases seen in the field. ACPICA BZ 762. Lin Ming. Implemented an automatic dynamic repair for predefined names that return nested Package objects. This applies to predefined names that are defined to return a variable-length Package of sub-packages. If the number of sub- packages is one, BIOS code is occasionally seen that creates a simple single package with no sub-packages. This code attempts to fix the problem by wrapping a new package object around the existing package. These methods can be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 790. Fixed a regression introduced in 20090625 for the AcpiGetDevices interface. The _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA BZ 793. Fixed a problem with AcpiReset where the reset would silently fail if the register was one of the protected I/O ports. AcpiReset now bypasses the port validation mechanism. This may eventually be driven into the AcpiRead/Write interfaces. Fixed a regression related to the recent update of the AcpiRead/Write interfaces. A sleep/suspend could fail if the optional PM2 Control register does not exist during an attempt to write the Bus Master Arbitration bit. (However, some hosts already delete the code that writes this bit, and the code may in fact be obsolete at this date.) ACPICA BZ 799. Fixed a problem where AcpiTerminate could fault if inadvertently called twice in succession. ACPICA BZ 795. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total Debug Version: 160.5K Code, 50.6K Data, 211.1K Total Current Release: Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 2) iASL Compiler/Disassembler and Tools: ACPI 4.0: Implemented disassembler support for all new ACPI tables and changes to existing tables. ACPICA BZ 775. ---------------------------------------- 25 June 2009. Summary of changes for version 20090625: The ACPI 4.0 Specification was released on June 16 and is available at www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will continue for the next few releases. 1) ACPI CA Core Subsystem: ACPI 4.0: Implemented interpreter support for the IPMI operation region address space. Includes support for bi-directional data buffers and an IPMI address space handler (to be installed by an IPMI device driver.) ACPICA BZ 773. Lin Ming. ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes support in both the header files and the disassembler. Completed a major update for the AcpiGetObjectInfo external interface. Changes include: - Support for variable, unlimited length HID, UID, and CID strings. - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) - Call the _SxW power methods on behalf of a device object. - Determine if a device is a PCI root bridge. - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. These changes will require an update to all callers of this interface. See the updated ACPICA Programmer Reference for details. One new source file has been added - utilities/utids.c. ACPICA BZ 368, 780. Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit transfers. The Value parameter has been extended from 32 bits to 64 bits in order to support new ACPI 4.0 tables. These changes will require an update to all callers of these interfaces. See the ACPICA Programmer Reference for details. ACPICA BZ 768. Fixed several problems with AcpiAttachData. The handler was not invoked when the host node was deleted. The data sub-object was not automatically deleted when the host node was deleted. The interface to the handler had an unused parameter, this was removed. ACPICA BZ 778. Enhanced the function that dumps ACPI table headers. All non-printable characters in the string fields are now replaced with '?' (Signature, OemId, OemTableId, and CompilerId.) ACPI tables with non-printable characters in these fields are occasionally seen in the field. ACPICA BZ 788. Fixed a problem with predefined method repair code where the code that attempts to repair/convert an object of incorrect type is only executed on the first time the predefined method is called. The mechanism that disables warnings on subsequent calls was interfering with the repair mechanism. ACPICA BZ 781. Fixed a possible memory leak in the predefined validation/repair code when a buffer is automatically converted to an expected string object. Removed obsolete 16-bit files from the distribution and from the current git tree head. ACPICA BZ 776. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total Debug Version: 158.9K Code, 50.0K Data, 208.9K Total Current Release: Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 2) iASL Compiler/Disassembler and Tools: ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI operation region keyword. ACPICA BZ 771, 772. Lin Ming. ACPI 4.0: iASL - implemented compile-time validation support for all new predefined names and control methods (31 total). ACPICA BZ 769. ---------------------------------------- 21 May 2009. Summary of changes for version 20090521: 1) ACPI CA Core Subsystem: Disabled the preservation of the SCI enable bit in the PM1 control register. The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be a "preserved" bit - "OSPM always preserves this bit position", section 4.7.3.2.1. However, some machines fail if this bit is in fact preserved because the bit needs to be explicitly set by the OS as a workaround. No machines fail if the bit is not preserved. Therefore, ACPICA no longer attempts to preserve this bit. Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or incorrectly formed _PRT package could cause a fault. Added validation to ensure that each package element is actually a sub-package. Implemented a new interface to install or override a single control method, AcpiInstallMethod. This interface is useful when debugging in order to repair an existing method or to install a missing method without having to override the entire ACPI table. See the ACPICA Programmer Reference for use and examples. Lin Ming, Bob Moore. Fixed several reference count issues with the DdbHandle object that is created from a Load or LoadTable operator. Prevent premature deletion of the object. Also, mark the object as invalid once the table has been unloaded. This is needed because the handle itself may not be deleted after the table unload, depending on whether it has been stored in a named object by the caller. Lin Ming. Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple mutexes of the same sync level are acquired but then not released in strict opposite order, the internally maintained Current Sync Level becomes confused and can cause subsequent execution errors. ACPICA BZ 471. Changed the allowable release order for ASL mutex objects. The ACPI 4.0 specification has been changed to make the SyncLevel for mutex objects more useful. When releasing a mutex, the SyncLevel of the mutex must now be the same as the current sync level. This makes more sense than the previous rule (SyncLevel less than or equal). This change updates the code to match the specification. Fixed a problem with the local version of the AcpiOsPurgeCache function. The (local) cache must be locked during all cache object deletions. Andrew Baumann. Updated the Load operator to use operation region interfaces. This replaces direct memory mapping with region access calls. Now, all region accesses go through the installed region handler as they should. Simplified and optimized the NsGetNextNode function. Reduced parameter count and reduced code for this frequently used function. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total Debug Version: 158.0K Code, 49.9K Data, 207.9K Total Current Release: Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems with sub-table disassembly and handling invalid sub-tables. Attempt recovery after an invalid sub-table ID. ---------------------------------------- 22 April 2009. Summary of changes for version 20090422: 1) ACPI CA Core Subsystem: Fixed a compatibility issue with the recently released I/O port protection mechanism. For windows compatibility, 1) On a port protection violation, simply ignore the request and do not return an exception (allow the control method to continue execution.) 2) If only part of the request overlaps a protected port, read/write the individual ports that are not protected. Linux BZ 13036. Lin Ming Enhanced the execution of the ASL/AML BreakPoint operator so that it actually breaks into the AML debugger if the debugger is present. This matches the ACPI-defined behavior. Fixed several possible warnings related to the use of the configurable ACPI_THREAD_ID. This type can now be configured as either an integer or a pointer with no warnings. Also fixes several warnings in printf-like statements for the 64-bit build when the type is configured as a pointer. ACPICA BZ 766, 767. Fixed a number of possible warnings when compiling with gcc 4+ (depending on warning options.) Examples include printf formats, aliasing, unused globals, missing prototypes, missing switch default statements, use of non-ANSI library functions, use of non-ANSI constructs. See generate/unix/Makefile for a list of warning options used with gcc 3 and 4. ACPICA BZ 735. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total Debug Version: 157.7K Code, 49.9K Data, 207.6K Total Current Release: Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 2) iASL Compiler/Disassembler and Tools: iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on the 64-bit build. iASL: Fixed a problem where the Unix/Linux versions of the compiler could not correctly digest Windows/DOS formatted files (with CR/LF). iASL: Added a new option for "quiet mode" (-va) that produces only the compilation summary, not individual errors and warnings. Useful for large batch compilations. AcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex timeout that can be used to detect hang conditions during execution of AML code (includes both internal semaphores and AML-defined mutexes and events.) Added new makefiles for the generation of acpica in a generic unix-like environment. These makefiles are intended to generate the acpica tools and utilities from the original acpica git source tree structure. Test Suites: Updated and cleaned up the documentation files. Updated the copyrights to 2009, affecting all source files. Use the new version of iASL with quiet mode. Increased the number of available semaphores in the Windows OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added an alternate implementation of the semaphore timeout to allow aslts to execute fully on Cygwin. ---------------------------------------- 20 March 2009. Summary of changes for version 20090320: 1) ACPI CA Core Subsystem: Fixed a possible race condition between AcpiWalkNamespace and dynamic table unloads. Added a reader/writer locking mechanism to allow multiple concurrent namespace walks (readers), but block a dynamic table unload until it can gain exclusive write access to the namespace. This fixes a problem where a table unload could (possibly catastrophically) delete the portion of the namespace that is currently being examined by a walk. Adds a new file, utlock.c, that implements the reader/writer lock mechanism. ACPICA BZ 749. Fixed a regression introduced in version 20090220 where a change to the FADT handling could cause the ACPICA subsystem to access non-existent I/O ports. Modified the handling of FADT register and table (FACS/DSDT) addresses. The FADT can contain both 32-bit and 64-bit versions of these addresses. Previously, the 64-bit versions were favored, meaning that if both 32 and 64 versions were valid, but not equal, the 64-bit version was used. This was found to cause some machines to fail. Now, in this case, the 32-bit version is used instead. This now matches the Windows behavior. Implemented a new mechanism to protect certain I/O ports. Provides Microsoft compatibility and protects the standard PC I/O ports from access via AML code. Adds a new file, hwvalid.c Fixed a possible extraneous warning message from the FADT support. The message warns of a 32/64 length mismatch between the legacy and GAS definitions for a register. Removed the obsolete AcpiOsValidateAddress OSL interface. This interface is made obsolete by the port protection mechanism above. It was previously used to validate the entire address range of an operation region, which could be incorrect if the range included illegal ports, but fields within the operation region did not actually access those ports. Validation is now performed on a per-field basis instead of the entire region. Modified the handling of the PM1 Status Register ignored bit (bit 11.) Ignored bits must be "preserved" according to the ACPI spec. Usually, this means a read/modify/write when writing to the register. However, for status registers, writing a one means clear the event. Writing a zero means preserve the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, and the ACPICA code now simply always writes a zero to the ignored bit. Modified the handling of ignored bits for the PM1 A/B Control Registers. As per the ACPI specification, for the control registers, preserve (read/modify/write) all bits that are defined as either reserved or ignored. Updated the handling of write-only bits in the PM1 A/B Control Registers. When reading the register, zero the write-only bits as per the ACPI spec. ACPICA BZ 443. Lin Ming. Removed "Linux" from the list of supported _OSI strings. Linux no longer wants to reply true to this request. The Windows strings are the only paths through the AML that are tested and known to work properly. Previous Release: Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total Debug Version: 156.9K Code, 49.8K Data, 206.7K Total Current Release: Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 2) iASL Compiler/Disassembler and Tools: Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c and aetables.c ---------------------------------------- 20 February 2009. Summary of changes for version 20090220: 1) ACPI CA Core Subsystem: Optimized the ACPI register locking. Removed locking for reads from the ACPI bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is not required when reading the single-bit registers. The AcpiGetRegisterUnlocked function is no longer needed and has been removed. This will improve performance for reads on these registers. ACPICA BZ 760. Fixed the parameter validation for AcpiRead/Write. Now return AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if the register has an address of zero. Previously, these cases simply returned AE_OK. For optional registers such as PM1B status/enable/control, the caller should check for a valid register address before calling. ACPICA BZ 748. Renamed the external ACPI bit register access functions. Renamed AcpiGetRegister and AcpiSetRegister to clarify the purpose of these functions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. Also, restructured the code for these functions by simplifying the code path and condensing duplicate code to reduce code size. Added new functions to transparently handle the possibly split PM1 A/B registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions now handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 746. Added a function to handle the PM1 control registers, AcpiHwWritePm1Control. This function writes both of the PM1 control registers (A/B). These registers are different than the PM1 A/B status and enable registers in that different values can be written to the A/B registers. Most notably, the SLP_TYP bits can be different, as per the values returned from the _Sx predefined methods. Removed an extra register write within AcpiHwClearAcpiStatus. This function was writing an optional PM1B status register twice. The existing call to the low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B register. ACPICA BZ 751. Split out the PM1 Status registers from the FADT. Added new globals for these registers (A/B), similar to the way the PM1 Enable registers are handled. Instead of overloading the FADT Event Register blocks. This makes the code clearer and less prone to error. Fixed the warning message for when the platform contains too many ACPI tables for the default size of the global root table data structure. The calculation for the truncation value was incorrect. Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this obsolete macro, since it is now a simple reference to ->common.type. There were about 150 invocations of the macro across 41 files. ACPICA BZ 755. Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to simply SLEEP_TYPE. ACPICA BZ 754. Conditionally compile the AcpiSetFirmwareWakingVector64 function. This function is only needed on 64-bit host operating systems and is thus not included for 32-bit hosts. Debug output: print the input and result for invocations of the _OSI reserved control method via the ACPI_LV_INFO debug level. Also, reduced some of the verbosity of this debug level. Len Brown. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total Debug Version: 157.3K Code, 49.8K Data, 207.1K Total Current Release: Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the various legal performance profiles. ---------------------------------------- 23 January 2009. Summary of changes for version 20090123: 1) ACPI CA Core Subsystem: Added the 2009 copyright to all module headers and signons. This affects virtually every file in the ACPICA core subsystem, the iASL compiler, and the tools/utilities. Implemented a change to allow the host to override any ACPI table, including dynamically loaded tables. Previously, only the DSDT could be replaced by the host. With this change, the AcpiOsTableOverride interface is called for each table found in the RSDT/XSDT during ACPICA initialization, and also whenever a table is dynamically loaded via the AML Load operator. Updated FADT flag definitions, especially the Boot Architecture flags. Debugger: For the Find command, automatically pad the input ACPI name with underscores if the name is shorter than 4 characters. This enables a match with the actual namespace entry which is itself padded with underscores. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total Debug Version: 157.1K Code, 49.7K Data, 206.8K Total Current Release: Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 2) iASL Compiler/Disassembler and Tools: Fix build error under Bison-2.4. Disassembler: Enhanced FADT support. Added decoding of the Boot Architecture flags. Now decode all flags, regardless of the FADT version. Flag output includes the FADT version which first defined each flag. The iASL -g option now dumps the RSDT to a file (in addition to the FADT and DSDT). Windows only. ---------------------------------------- 04 December 2008. Summary of changes for version 20081204: 1) ACPI CA Core Subsystem: The ACPICA Programmer Reference has been completely updated and revamped for this release. This includes updates to the external interfaces, OSL interfaces, the overview sections, and the debugger reference. Several new ACPICA interfaces have been implemented and documented in the programmer reference: AcpiReset - Writes the reset value to the FADT-defined reset register. AcpiDisableAllGpes - Disable all available GPEs. AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. AcpiGetGpeDevice - Get the GPE block device associated with a GPE. AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) Most of the public ACPI hardware-related interfaces have been moved to a new file, components/hardware/hwxface.c Enhanced the FADT parsing and low-level ACPI register access: The ACPI register lengths within the FADT are now used, and the low level ACPI register access no longer hardcodes the ACPI register lengths. Given that there may be some risk in actually trusting the FADT register lengths, a run- time option was added to fall back to the default hardcoded lengths if the FADT proves to contain incorrect values - UseDefaultRegisterWidths. This option is set to true for now, and a warning is issued if a suspicious FADT register length is overridden with the default value. Fixed a reference count issue in NsRepairObject. This problem was introduced in version 20081031 as part of a fix to repair Buffer objects within Packages. Lin Ming. Added semaphore support to the Linux/Unix application OS-services layer (OSL). ACPICA BZ 448. Lin Ming. Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes will be implemented in the OSL, or will binary semaphores be used instead. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total Debug Version: 156.4K Code, 49.4K Data, 205.8K Total Current Release: Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 2) iASL Compiler/Disassembler and Tools: iASL: Completed the '-e' option to include additional ACPI tables in order to aid with disassembly and External statement generation. ACPICA BZ 742. Lin Ming. iASL: Removed the "named object in while loop" error. The compiler cannot determine how many times a loop will execute. ACPICA BZ 730. Disassembler: Implemented support for FADT revision 2 (MS extension). ACPICA BZ 743. Disassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). ---------------------------------------- 31 October 2008. Summary of changes for version 20081031: 1) ACPI CA Core Subsystem: Restructured the ACPICA header files into public/private. acpi.h now includes only the "public" acpica headers. All other acpica headers are "private" and should not be included by acpica users. One new file, accommon.h is used to include the commonly used private headers for acpica code generation. Future plans include moving all private headers to a new subdirectory. Implemented an automatic Buffer->String return value conversion for predefined ACPI methods. For these methods (such as _BIF), added automatic conversion for return objects that are required to be a String, but a Buffer was found instead. This can happen when reading string battery data from an operation region, because it used to be difficult to convert the data from buffer to string from within the ASL. Ensures that the host OS is provided with a valid null-terminated string. Linux BZ 11822. Updated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector into two: one for the 32-bit vector, another for the 64-bit vector. This is required because the host OS must setup the wake much differently for each vector (real vs. protected mode, etc.) and the interface itself should not be deciding which vector to use. Also, eliminated the GetFirmwareWakingVector interface, as it served no purpose (only the firmware reads the vector, OS only writes the vector.) ACPICA BZ 731. Implemented a mechanism to escape infinite AML While() loops. Added a loop counter to force exit from AML While loops if the count becomes too large. This can occur in poorly written AML when the hardware does not respond within a while loop and the loop does not implement a timeout. The maximum loop count is configurable. A new exception code is returned when a loop is broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. Optimized the execution of AML While loops. Previously, a control state object was allocated and freed for each execution of the loop. The optimization is to simply reuse the control state for each iteration. This speeds up the raw loop execution time by about 5%. Enhanced the implicit return mechanism. For Windows compatibility, return an implicit integer of value zero for methods that contain no executable code. Such methods are seen in the field as stubs (presumably), and can cause drivers to fail if they expect a return value. Lin Ming. Allow multiple backslashes as root prefixes in namepaths. In a fully qualified namepath, allow multiple backslash prefixes. This can happen (and is seen in the field) because of the use of a double-backslash in strings (since backslash is the escape character) causing confusion. ACPICA BZ 739 Lin Ming. Emit a warning if two different FACS or DSDT tables are discovered in the FADT. Checks if there are two valid but different addresses for the FACS and DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) Consolidated the method argument count validation code. Merged the code that validates control method argument counts into the predefined validation module. Eliminates possible multiple warnings for incorrect argument counts. Implemented ACPICA example code. Includes code for ACPICA initialization, handler installation, and calling a control method. Available at source/tools/examples. Added a global pointer for FACS table to simplify internal FACS access. Use the global pointer instead of using AcpiGetTableByIndex for each FACS access. This simplifies the code for the Global Lock and the Firmware Waking Vector(s). Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total Debug Version: 155.8K Code, 49.1K Data, 204.9K Total Current Release: Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2) iASL Compiler/Disassembler and Tools: iASL: Improved disassembly of external method calls. Added the -e option to allow the inclusion of additional ACPI tables to help with the disassembly of method invocations and the generation of external declarations during the disassembly. Certain external method invocations cannot be disassembled properly without the actual declaration of the method. Use the -e option to include the table where the external method(s) are actually declared. Most useful for disassembling SSDTs that make method calls back to the master DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d -e dsdt.aml ssdt1.aml iASL: Fix to allow references to aliases within ASL namepaths. Fixes a problem where the use of an alias within a namepath would result in a not found error or cause the compiler to fault. Also now allows forward references from the Alias operator itself. ACPICA BZ 738. ---------------------------------------- 26 September 2008. Summary of changes for version 20080926: 1) ACPI CA Core Subsystem: Designed and implemented a mechanism to validate predefined ACPI methods and objects. This code validates the predefined ACPI objects (objects whose names start with underscore) that appear in the namespace, at the time they are evaluated. The argument count and the type of the returned object are validated against the ACPI specification. The purpose of this validation is to detect problems with the BIOS-implemented predefined ACPI objects before the results are returned to the ACPI-related drivers. Future enhancements may include actual repair of incorrect return objects where possible. Two new files are nspredef.c and acpredef.h. Fixed a fault in the AML parser if a memory allocation fails during the Op completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. Fixed an issue with implicit return compatibility. This change improves the implicit return mechanism to be more compatible with the MS interpreter. Lin Ming, ACPICA BZ 349. Implemented support for zero-length buffer-to-string conversions. Allow zero length strings during interpreter buffer-to-string conversions. For example, during the ToDecimalString and ToHexString operators, as well as implicit conversions. Fiodor Suietov, ACPICA BZ 585. Fixed two possible memory leaks in the error exit paths of AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are similar in that they use a stack of state objects in order to eliminate recursion. The stack must be fully unwound and deallocated if an error occurs. Lin Ming. ACPICA BZ 383. Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global ACPI register table. This bit does not exist and is unused. Lin Ming, Bob Moore ACPICA BZ 442. Removed the obsolete version number in module headers. Removed the "$Revision" number that appeared in each module header. This version number was useful under SourceSafe and CVS, but has no meaning under git. It is not only incorrect, it could also be misleading. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total Debug Version: 153.7K Code, 48.2K Data, 201.9K Total Current Release: Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total Debug Version: 155.8K Code, 49.1K Data, 204.9K Total ---------------------------------------- 29 August 2008. Summary of changes for version 20080829: 1) ACPI CA Core Subsystem: Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type Reference. Changes include the elimination of cheating on the Object field for the DdbHandle subtype, addition of a reference class field to differentiate the various reference types (instead of an AML opcode), and the cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 Reduce an error to a warning for an incorrect method argument count. Previously aborted with an error if too few arguments were passed to a control method via the external ACPICA interface. Now issue a warning instead and continue. Handles the case where the method inadvertently declares too many arguments, but does not actually use the extra ones. Applies mainly to the predefined methods. Lin Ming. Linux BZ 11032. Disallow the evaluation of named object types with no intrinsic value. Return AE_TYPE for objects that have no value and therefore evaluation is undefined: Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of these types were allowed, but an exception would be generated at some point during the evaluation. Now, the error is generated up front. Fixed a possible memory leak in the AcpiNsGetExternalPathname function (nsnames.c). Fixes a leak in the error exit path. Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION interfaces. Also added ACPI_DB_EVENTS to correspond with the existing ACPI_LV_EVENTS. Removed obsolete and/or unused exception codes from the acexcep.h header. There is the possibility that certain device drivers may be affected if they use any of these exceptions. The ACPICA documentation has been added to the public git source tree, under acpica/documents. Included are the ACPICA programmer reference, the iASL compiler reference, and the changes.txt release logfile. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total Debug Version: 153.9K Code, 48.4K Data, 202.3K Total Current Release: Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 2) iASL Compiler/Disassembler and Tools: Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 defines _SCP with 3 arguments. Previous versions defined it with only 1 argument. iASL now allows both definitions. iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- length subtables when disassembling ACPI tables. Also fixed a couple of errors where a full 16-bit table type field was not extracted from the input properly. acpisrc: Improve comment counting mechanism for generating source code statistics. Count first and last lines of multi-line comments as whitespace, not comment lines. Handle Linux legal header in addition to standard acpica header. ---------------------------------------- 29 July 2008. Summary of changes for version 20080729: 1) ACPI CA Core Subsystem: Fix a possible deadlock in the GPE dispatch. Remove call to AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt to acquire the GPE lock but can deadlock since the GPE lock is already held at dispatch time. This code was introduced in version 20060831 as a response to Linux BZ 6881 and has since been removed from Linux. Add a function to dereference returned reference objects. Examines the return object from a call to AcpiEvaluateObject. Any Index or RefOf references are automatically dereferenced in an attempt to return something useful (these reference types cannot be converted into an external ACPI_OBJECT.) Provides MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new subtables for the MADT and one new subtable for the SRAT. Includes disassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC Specification, June 2008. Additional error checking for pathname utilities. Add error check after all calls to AcpiNsGetPathnameLength. Add status return from AcpiNsBuildExternalPath and check after all calls. Add parameter validation to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. Return status from the global init function AcpiUtGlobalInitialize. This is used by both the kernel subsystem and the utilities such as iASL compiler. The function could possibly fail when the caches are initialized. Yang Yi. Add a function to decode reference object types to strings. Created for improved error messages. Improve object conversion error messages. Better error messages during object conversion from internal to the external ACPI_OBJECT. Used for external calls to AcpiEvaluateObject. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total Debug Version: 153.5K Code, 48.2K Data, 201.7K Total Current Release: Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 2) iASL Compiler/Disassembler and Tools: Debugger: fix a possible hang when evaluating non-methods. Fixes a problem introduced in version 20080701. If the object being evaluated (via execute command) is not a method, the debugger can hang while trying to obtain non- existent parameters. iASL: relax error for using reserved "_T_x" identifiers. These names can appear in a disassembled ASL file if they were emitted by the original compiler. Instead of issuing an error or warning and forcing the user to manually change these names, issue a remark instead. iASL: error if named object created in while loop. Emit an error if any named object is created within a While loop. If allowed, this code will generate a run-time error on the second iteration of the loop when an attempt is made to create the same named object twice. ACPICA bugzilla 730. iASL: Support absolute pathnames for include files. Add support for absolute pathnames within the Include operator. previously, only relative pathnames were supported. iASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. The ACPI spec requires one interrupt minimum. BZ 423 iASL: Handle a missing ResourceSource arg, with a present SourceIndex. Handles the case for the Interrupt Resource Descriptor where the ResourceSource argument is omitted but ResourceSourceIndex is present. Now leave room for the Index. BZ 426 iASL: Prevent error message if CondRefOf target does not exist. Fixes cases where an error message is emitted if the target does not exist. BZ 516 iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option (get ACPI tables on Windows). This was apparently broken in version 20070919. AcpiXtract: Handle EOF while extracting data. Correctly handle the case where the EOF happens immediately after the last table in the input file. Print completion message. Previously, no message was displayed in this case. ---------------------------------------- 01 July 2008. Summary of changes for version 20080701: 0) Git source tree / acpica.org Fixed a problem where a git-clone from http would not transfer the entire source tree. 1) ACPI CA Core Subsystem: Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one enable bit. Now performs a read-change-write of the enable register instead of simply writing out the cached enable mask. This will prevent inadvertent enabling of GPEs if a rogue GPE is received during initialization (before GPE handlers are installed.) Implemented a copy for dynamically loaded tables. Previously, dynamically loaded tables were simply mapped - but on some machines this memory is corrupted after suspend. Now copy the table to a local buffer. For the OpRegion case, added checksum verify. Use the table length from the table header, not the region length. For the Buffer case, use the table length also. Dennis Noordsij, Bob Moore. BZ 10734 Fixed a problem where the same ACPI table could not be dynamically loaded and unloaded more than once. Without this change, a table cannot be loaded again once it has been loaded/unloaded one time. The current mechanism does not unregister a table upon an unload. During a load, if the same table is found, this no longer returns an exception. BZ 722 Fixed a problem where the wrong descriptor length was calculated for the EndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag are calculated as 12 bytes long, but the actual length in the internal descriptor is 16 because of the round-up to 8 on the 64-bit build. Reported by Linn Crosetto. BZ 728 Fixed a possible memory leak in the Unload operator. The DdbHandle returned by Load() did not have its reference count decremented during unload, leading to a memory leak. Lin Ming. BZ 727 Fixed a possible memory leak when deleting thermal/processor objects. Any associated notify handlers (and objects) were not being deleted. Fiodor Suietov. BZ 506 Fixed the ordering of the ASCII names in the global mutex table to match the actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. Vegard Nossum. BZ 726 Enhanced the AcpiGetObjectInfo interface to return the number of required arguments if the object is a control method. Added this call to the debugger so the proper number of default arguments are passed to a method. This prevents a warning when executing methods from AcpiExec. Added a check for an invalid handle in AcpiGetObjectInfo. Return AE_BAD_PARAMETER if input handle is invalid. BZ 474 Fixed an extraneous warning from exconfig.c on the 64-bit build. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total Debug Version: 153.0K Code, 48.2K Data, 201.2K Total Current Release: Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 2) iASL Compiler/Disassembler and Tools: iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both resource descriptor names. iASL: Detect invalid ASCII characters in input (windows version). Removed the "-CF" flag from the flex compile, enables correct detection of non-ASCII characters in the input. BZ 441 iASL: Eliminate warning when result of LoadTable is not used. Eliminate the "result of operation not used" warning when the DDB handle returned from LoadTable is not used. The warning is not needed. BZ 590 AcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to pass address of table to the AML. Added option to disable OpRegion simulation to allow creation of an OpRegion with a real address that was passed to _CFG. All of this allows testing of the Load and Unload operators from AcpiExec. Debugger: update tables command for unloaded tables. Handle unloaded tables and use the standard table header output routine. ---------------------------------------- 09 June 2008. Summary of changes for version 20080609: 1) ACPI CA Core Subsystem: Implemented a workaround for reversed _PRT entries. A significant number of BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This change dynamically detects and repairs this problem. Provides compatibility with MS ACPI. BZ 6859 Simplified the internal ACPI hardware interfaces to eliminate the locking flag parameter from Register Read/Write. Added a new external interface, AcpiGetRegisterUnlocked. Fixed a problem where the invocation of a GPE control method could hang. This was a regression introduced in 20080514. The new method argument count validation mechanism can enter an infinite loop when a GPE method is dispatched. Problem fixed by removing the obsolete code that passed GPE block information to the notify handler via the control method parameter pointer. Fixed a problem where the _SST execution status was incorrectly returned to the caller of AcpiEnterSleepStatePrep. This was a regression introduced in 20080514. _SST is optional and a NOT_FOUND exception should never be returned. BZ 716 Fixed a problem where a deleted object could be accessed from within the AML parser. This was a regression introduced in version 20080123 as a fix for the Unload operator. Lin Ming. BZ 10669 Cleaned up the debug operand dump mechanism. Eliminated unnecessary operands and eliminated the use of a negative index in a loop. Operands are now displayed in the correct order, not backwards. This also fixes a regression introduced in 20080514 on 64-bit systems where the elimination of ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 Fixed a possible memory leak in EvPciConfigRegionSetup where the error exit path did not delete a locally allocated structure. Updated definitions for the DMAR and SRAT tables to synchronize with the current specifications. Includes disassembler support. Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect loop termination value was used. Loop terminated on iteration early, missing one mutex. Linn Crosetto Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total Debug Version: 153.3K Code, 48.3K Data, 201.6K Total Current Release: Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Implemented support for EisaId() within _CID objects. Now disassemble integer _CID objects back to EisaId invocations, including multiple integers within _CID packages. Includes single-step support for debugger also. Disassembler: Added support for DMAR and SRAT table definition changes. ---------------------------------------- 14 May 2008. Summary of changes for version 20080514: 1) ACPI CA Core Subsystem: Fixed a problem where GPEs were enabled too early during the ACPICA initialization. This could lead to "handler not installed" errors on some machines. Moved GPE enable until after _REG/_STA/_INI methods are run. This ensures that all operation regions and devices throughout the namespace have been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. Implemented a change to the enter sleep code. Moved execution of the _GTS method to just before setting sleep enable bit. The execution was moved from AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed immediately before the SLP_EN bit is set, as per the ACPI specification. Luming Yu, BZ 1653. Implemented a fix to disable unknown GPEs (2nd version). Now always disable the GPE, even if ACPICA thinks that that it is already disabled. It is possible that the AML or some other code has enabled the GPE unbeknownst to the ACPICA code. Fixed a problem with the Field operator where zero-length fields would return an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL field declarations in Field(), BankField(), and IndexField(). BZ 10606. Implemented a fix for the Load operator, now load the table at the namespace root. This reverts a change introduced in version 20071019. The table is now loaded at the namespace root even though this goes against the ACPI specification. This provides compatibility with other ACPI implementations. The ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. Fixed a problem where ACPICA would not Load() tables with unusual signatures. Now ignore ACPI table signature for Load() operator. Only "SSDT" is acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. Therefore, signature validation is worthless. Apparently MS ACPI accepts such signatures, ACPICA must be compatible. BZ 10454. Fixed a possible negative array index in AcpiUtValidateException. Added NULL fields to the exception string arrays to eliminate a -1 subtraction on the SubStatus field. Updated the debug tracking macros to reduce overall code and data size. Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings instead of pointers to static strings. Jan Beulich and Bob Moore. Implemented argument count checking in control method invocation via AcpiEvaluateObject. Now emit an error if too few arguments, warning if too many. This applies only to extern programmatic control method execution, not method-to-method calls within the AML. Lin Ming. Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no longer needed, especially with the removal of 16-bit support. It was replaced mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 32/64-bit platforms is required. Added the C const qualifier for appropriate string constants -- mostly MODULE_NAME and printf format strings. Jan Beulich. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total Debug Version: 159.4K Code, 64.4K Data, 223.8K Total Current Release: Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 2) iASL Compiler/Disassembler and Tools: Implemented ACPI table revision ID validation in the disassembler. Zero is always invalid. For DSDTs, the ID controls the interpreter integer width. 1 means 32-bit and this is unusual. 2 or greater is 64-bit. ---------------------------------------- 21 March 2008. Summary of changes for version 20080321: 1) ACPI CA Core Subsystem: Implemented an additional change to the GPE support in order to suppress spurious or stray GPEs. The AcpiEvDisableGpe function will now permanently disable incoming GPEs that are neither enabled nor disabled -- meaning that the GPE is unknown to the system. This should prevent future interrupt floods from that GPE. BZ 6217 (Zhang Rui) Fixed a problem where NULL package elements were not returned to the AcpiEvaluateObject interface correctly. The element was simply ignored instead of returning a NULL ACPI_OBJECT package element, potentially causing a buffer overflow and/or confusing the caller who expected a fixed number of elements. BZ 10132 (Lin Ming, Bob Moore) Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, Qword), Field, BankField, and IndexField operators when invoked from inside an executing control method. In this case, these operators created namespace nodes that were incorrectly left marked as permanent nodes instead of temporary nodes. This could cause a problem if there is race condition between an exiting control method and a running namespace walk. (Reported by Linn Crosetto) Fixed a problem where the CreateField and CreateXXXField operators would incorrectly allow duplicate names (the name of the field) with no exception generated. Implemented several changes for Notify handling. Added support for new Notify values (ACPI 2.0+) and improved the Notify debug output. Notify on PowerResource objects is no longer allowed, as per the ACPI specification. (Bob Moore, Zhang Rui) All Reference Objects returned via the AcpiEvaluateObject interface are now marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for NULL objects - either NULL package elements or unresolved named references. Fixed a problem where an extraneous debug message was produced for package objects (when debugging enabled). The message "Package List length larger than NumElements count" is now produced in the correct case, and is now an error message rather than a debug message. Added a debug message for the opposite case, where NumElements is larger than the Package List (the package will be padded out with NULL elements as per the ACPI spec.) Implemented several improvements for the output of the ASL "Debug" object to clarify and keep all data for a given object on one output line. Fixed two size calculation issues with the variable-length Start Dependent resource descriptor. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total Debug Version: 158.9K Code, 64.0K Data, 222.9K Total Current Release: Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 2) iASL Compiler/Disassembler and Tools: Fixed a problem with the use of the Switch operator where execution of the containing method by multiple concurrent threads could cause an AE_ALREADY_EXISTS exception. This is caused by the fact that there is no actual Switch opcode, it must be simulated with local named temporary variables and if/else pairs. The solution chosen was to mark any method that uses Switch as Serialized, thus preventing multiple thread entries. BZ 469. ---------------------------------------- 13 February 2008. Summary of changes for version 20080213: 1) ACPI CA Core Subsystem: Implemented another MS compatibility design change for GPE/Notify handling. GPEs are now cleared/enabled asynchronously to allow all pending notifies to complete first. It is expected that the OSL will queue the enable request behind all pending notify requests (may require changes to the local host OSL in AcpiOsExecute). Alexey Starikovskiy. Fixed a problem where buffer and package objects passed as arguments to a control method via the external AcpiEvaluateObject interface could cause an AE_AML_INTERNAL exception depending on the order and type of operators executed by the target control method. Fixed a problem where resource descriptor size optimization could cause a problem when a _CRS resource template is passed to a _SRS method. The _SRS resource template must use the same descriptors (with the same size) as returned from _CRS. This change affects the following resource descriptors: IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) Fixed a problem where a CopyObject to RegionField, BankField, and IndexField objects did not perform an implicit conversion as it should. These types must retain their initial type permanently as per the ACPI specification. However, a CopyObject to all other object types should not perform an implicit conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 Fixed a problem with the AcpiGetDevices interface where the mechanism to match device CIDs did not examine the entire list of available CIDs, but instead aborted on the first non-matching CID. Andrew Patterson. Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was inadvertently changed to return a 16-bit value instead of a 32-bit value, truncating the upper dword of a 64-bit value. This macro is only used to display debug output, so no incorrect calculations were made. Also, reimplemented the macro so that a 64-bit shift is not performed by inefficient compilers. Added missing va_end statements that should correspond with each va_start statement. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total Debug Version: 159.0K Code, 63.8K Data, 222.8K Total Current Release: Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 2) iASL Compiler/Disassembler and Tools: Implemented full disassembler support for the following new ACPI tables: BERT, EINJ, and ERST. Implemented partial disassembler support for the complicated HEST table. These tables support the Windows Hardware Error Architecture (WHEA). ---------------------------------------- 23 January 2008. Summary of changes for version 20080123: 1) ACPI CA Core Subsystem: Added the 2008 copyright to all module headers and signons. This affects virtually every file in the ACPICA core subsystem, the iASL compiler, and the tools/utilities. Fixed a problem with the SizeOf operator when used with Package and Buffer objects. These objects have deferred execution for some arguments, and the execution is now completed before the SizeOf is executed. This problem caused unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 9558 Implemented an enhancement to the interpreter "slack mode". In the absence of an explicit return or an implicitly returned object from the last executed opcode, a control method will now implicitly return an integer of value 0 for Microsoft compatibility. (Lin Ming) BZ 392 Fixed a problem with the Load operator where an exception was not returned in the case where the table is already loaded. (Lin Ming) BZ 463 Implemented support for the use of DDBHandles as an Indexed Reference, as per the ACPI spec. (Lin Ming) BZ 486 Implemented support for UserTerm (Method invocation) for the Unload operator as per the ACPI spec. (Lin Ming) BZ 580 Fixed a problem with the LoadTable operator where the OemId and OemTableId input strings could cause unexpected failures if they were shorter than the maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 Implemented support for UserTerm (Method invocation) for the Unload operator as per the ACPI spec. (Lin Ming) BZ 580 Implemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, IBFT, UEFI, WDAT. Disassembler support is forthcoming. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total Debug Version: 158.6K Code, 63.8K Data, 222.4K Total Current Release: Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 2) iASL Compiler/Disassembler and Tools: Implemented support in the disassembler for checksum validation on incoming binary DSDTs and SSDTs. If incorrect, a message is displayed within the table header dump at the start of the disassembly. Implemented additional debugging information in the namespace listing file created during compilation. In addition to the namespace hierarchy, the full pathname to each namespace object is displayed. Fixed a problem with the disassembler where invalid ACPI tables could cause faults or infinite loops. Fixed an unexpected parse error when using the optional "parameter types" list in a control method declaration. (Lin Ming) BZ 397 Fixed a problem where two External declarations with the same name did not cause an error (Lin Ming) BZ 509 Implemented support for full TermArgs (adding Argx, Localx and method invocation) for the ParameterData parameter to the LoadTable operator. (Lin Ming) BZ 583,587 ---------------------------------------- 19 December 2007. Summary of changes for version 20071219: 1) ACPI CA Core Subsystem: Implemented full support for deferred execution for the TermArg string arguments for DataTableRegion. This enables forward references and full operand resolution for the three string arguments. Similar to OperationRegion deferred argument execution.) Lin Ming. BZ 430 Implemented full argument resolution support for the BankValue argument to BankField. Previously, only constants were supported, now any TermArg may be used. Lin Ming BZ 387, 393 Fixed a problem with AcpiGetDevices where the search of a branch of the device tree could be terminated prematurely. In accordance with the ACPI specification, the search down the current branch is terminated if a device is both not present and not functional (instead of just not present.) Yakui Zhao. Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly if the underlying AML code changed the GPE enable registers. Now, any unknown incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled instead of simply ignored. Rui Zhang. Fixed a problem with Index Fields where the Index register was incorrectly limited to a maximum of 32 bits. Now any size may be used. Fixed a couple memory leaks associated with "implicit return" objects when the AML Interpreter slack mode is enabled. Lin Ming BZ 349 Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total Debug Version: 157.9K Code, 63.6K Data, 221.5K Total Current Release: Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total Debug Version: 158.6K Code, 63.8K Data, 222.4K Total ---------------------------------------- 14 November 2007. Summary of changes for version 20071114: 1) ACPI CA Core Subsystem: Implemented event counters for each of the Fixed Events, the ACPI SCI (interrupt) itself, and control methods executed. Named AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These should be useful for debugging and statistics. Implemented a new external interface, AcpiGetStatistics, to retrieve the contents of the various event counters. Returns the current values for AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and AcpiMethodCount. The interface can be expanded in the future if new counters are added. Device drivers should use this interface rather than access the counters directly. Fixed a problem with the FromBCD and ToBCD operators. With some compilers, the ShortDivide function worked incorrectly, causing problems with the BCD functions with large input values. A truncation from 64-bit to 32-bit inadvertently occurred. Internal BZ 435. Lin Ming Fixed a problem with Index references passed as method arguments. References passed as arguments to control methods were dereferenced immediately (before control was passed to the called method). The references are now correctly passed directly to the called method. BZ 5389. Lin Ming Fixed a problem with CopyObject used in conjunction with the Index operator. The reference was incorrectly dereferenced before the copy. The reference is now correctly copied. BZ 5391. Lin Ming Fixed a problem with Control Method references within Package objects. These references are now correctly generated. This completes the package construction overhaul that began in version 20071019. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total Debug Version: 157.2K Code, 63.4K Data, 220.6K Total Current Release: Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 2) iASL Compiler/Disassembler and Tools: The AcpiExec utility now installs handlers for all of the predefined Operation Region types. New types supported are: PCI_Config, CMOS, and PCIBARTarget. Fixed a problem with the 64-bit version of AcpiExec where the extended (64- bit) address fields for the DSDT and FACS within the FADT were not being used, causing truncation of the upper 32-bits of these addresses. Lin Ming and Bob Moore ---------------------------------------- 19 October 2007. Summary of changes for version 20071019: 1) ACPI CA Core Subsystem: Fixed a problem with the Alias operator when the target of the alias is a named ASL operator that opens a new scope -- Scope, Device, PowerResource, Processor, and ThermalZone. In these cases, any children of the original operator could not be accessed via the alias, potentially causing unexpected AE_NOT_FOUND exceptions. (BZ 9067) Fixed a problem with the Package operator where all named references were created as object references and left otherwise unresolved. According to the ACPI specification, a Package can only contain Data Objects or references to control methods. The implication is that named references to Data Objects (Integer, Buffer, String, Package, BufferField, Field) should be resolved immediately upon package creation. This is the approach taken with this change. References to all other named objects (Methods, Devices, Scopes, etc.) are all now properly created as reference objects. (BZ 5328) Reverted a change to Notify handling that was introduced in version 20070508. This version changed the Notify handling from asynchronous to fully synchronous (Device driver Notify handling with respect to the Notify ASL operator). It was found that this change caused more problems than it solved and was removed by most users. Fixed a problem with the Increment and Decrement operators where the type of the target object could be unexpectedly and incorrectly changed. (BZ 353) Lin Ming. Fixed a problem with the Load and LoadTable operators where the table location within the namespace was ignored. Instead, the table was always loaded into the root or current scope. Lin Ming. Fixed a problem with the Load operator when loading a table from a buffer object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) Fixed a problem with the Debug object where a store of a DdbHandle reference object to the Debug object could cause a fault. Added a table checksum verification for the Load operator, in the case where the load is from a buffer. (BZ 578). Implemented additional parameter validation for the LoadTable operator. The length of the input strings SignatureString, OemIdString, and OemTableId are now checked for maximum lengths. (BZ 582) Lin Ming. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total Debug Version: 156.7K Code, 63.2K Data, 219.9K Total Current Release: Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 2) iASL Compiler/Disassembler: Fixed a problem where if a single file was specified and the file did not exist, no error message was emitted. (Introduced with wildcard support in version 20070917.) ---------------------------------------- 19 September 2007. Summary of changes for version 20070919: 1) ACPI CA Core Subsystem: Designed and implemented new external interfaces to install and remove handlers for ACPI table-related events. Current events that are defined are LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as they are dynamically loaded and unloaded. See AcpiInstallTableHandler and AcpiRemoveTableHandler. (Lin Ming and Bob Moore) Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag (acpi_serialized option on Linux) could cause some systems to hang during initialization. (Bob Moore) BZ 8171 Fixed a problem where objects of certain types (Device, ThermalZone, Processor, PowerResource) can be not found if they are declared and referenced from within the same control method (Lin Ming) BZ 341 Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total Debug Version: 156.3K Code, 63.1K Data, 219.4K Total Current Release: Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 2) iASL Compiler/Disassembler: Implemented support to allow multiple files to be compiled/disassembled in a single invocation. This includes command line wildcard support for both the Windows and Unix versions of the compiler. This feature simplifies the disassembly and compilation of multiple ACPI tables in a single directory. ---------------------------------------- 08 May 2007. Summary of changes for version 20070508: 1) ACPI CA Core Subsystem: Implemented a Microsoft compatibility design change for the handling of the Notify AML operator. Previously, notify handlers were dispatched and executed completely asynchronously in a deferred thread. The new design still executes the notify handlers in a different thread, but the original thread that executed the Notify() now waits at a synchronization point for the notify handler to complete. Some machines depend on a synchronous Notify operator in order to operate correctly. Implemented support to allow Package objects to be passed as method arguments to the external AcpiEvaluateObject interface. Previously, this would return the AE_NOT_IMPLEMENTED exception. This feature had not been implemented since there were no reserved control methods that required it until recently. Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that contained invalid non-zero values in reserved fields could cause later failures because these fields have meaning in later revisions of the FADT. For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) Fixed a problem where the Global Lock handle was not properly updated if a thread that acquired the Global Lock via executing AML code then attempted to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe Liu. Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list could be corrupted if the interrupt being removed was at the head of the list. Reported by Linn Crosetto. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total Debug Version: 155.9K Code, 63.1K Data, 219.0K Total Current Release: Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total Debug Version: 156.3K Code, 63.1K Data, 219.4K Total ---------------------------------------- 20 March 2007. Summary of changes for version 20070320: 1) ACPI CA Core Subsystem: Implemented a change to the order of interpretation and evaluation of AML operand objects within the AML interpreter. The interpreter now evaluates operands in the order that they appear in the AML stream (and the corresponding ASL code), instead of in the reverse order (after the entire operand list has been parsed). The previous behavior caused several subtle incompatibilities with the Microsoft AML interpreter as well as being somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. Implemented a change to the ACPI Global Lock support. All interfaces to the global lock now allow the same thread to acquire the lock multiple times. This affects the AcpiAcquireGlobalLock external interface to the global lock as well as the internal use of the global lock to support AML fields -- a control method that is holding the global lock can now simultaneously access AML fields that require global lock protection. Previously, in both cases, this would have resulted in an AE_ALREADY_ACQUIRED exception. The change to AcpiAcquireGlobalLock is of special interest to drivers for the Embedded Controller. There is no change to the behavior of the AML Acquire operator, as this can already be used to acquire a mutex multiple times by the same thread. BZ 8066. With assistance from Alexey Starikovskiy. Fixed a problem where invalid objects could be referenced in the AML Interpreter after error conditions. During operand evaluation, ensure that the internal "Return Object" field is cleared on error and only valid pointers are stored there. Caused occasional access to deleted objects that resulted in "large reference count" warning messages. Valery Podrezov. Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur on deeply nested control method invocations. BZ 7873, local BZ 487. Valery Podrezov. Fixed an internal problem with the handling of result objects on the interpreter result stack. BZ 7872. Valery Podrezov. Removed obsolete code that handled the case where AML_NAME_OP is the target of a reference (Reference.Opcode). This code was no longer necessary. BZ 7874. Valery Podrezov. Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a remnant from the previously discontinued 16-bit support. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total Debug Version: 155.8K Code, 63.3K Data, 219.1K Total Current Release: Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total Debug Version: 155.9K Code, 63.1K Data, 219.0K Total ---------------------------------------- 26 January 2007. Summary of changes for version 20070126: 1) ACPI CA Core Subsystem: Added the 2007 copyright to all module headers and signons. This affects virtually every file in the ACPICA core subsystem, the iASL compiler, and the utilities. Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable during a table load. A bad pointer was passed in the case where the DSDT is overridden, causing a fault in this case. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total Debug Version: 155.8K Code, 63.3K Data, 219.1K Total Current Release: Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total Debug Version: 155.8K Code, 63.3K Data, 219.1K Total ---------------------------------------- 15 December 2006. Summary of changes for version 20061215: 1) ACPI CA Core Subsystem: Support for 16-bit ACPICA has been completely removed since it is no longer necessary and it clutters the code. All 16-bit macros, types, and conditional compiles have been removed, cleaning up and simplifying the code across the entire subsystem. DOS support is no longer needed since the bootable Linux firmware kit is now available. The handler for the Global Lock is now removed during AcpiTerminate to enable a clean subsystem restart, via the implementation of the AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, HP) Implemented enhancements to the multithreading support within the debugger to enable improved multithreading debugging and evaluation of the subsystem. (Valery Podrezov) Debugger: Enhanced the Statistics/Memory command to emit the total (maximum) memory used during the execution, as well as the maximum memory consumed by each of the various object types. (Valery Podrezov) Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total Debug Version: 155.2K Code, 63.1K Data, 218.3K Total Current Release: Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 2) iASL Compiler/Disassembler and Tools: AcpiExec: Implemented a new option (-m) to display full memory use statistics upon subsystem/program termination. (Valery Podrezov) ---------------------------------------- 09 November 2006. Summary of changes for version 20061109: 1) ACPI CA Core Subsystem: Optimized the Load ASL operator in the case where the source operand is an operation region. Simply map the operation region memory, instead of performing a bytewise read. (Region must be of type SystemMemory, see below.) Fixed the Load ASL operator for the case where the source operand is a region field. A buffer object is also allowed as the source operand. BZ 480 Fixed a problem where the Load ASL operator allowed the source operand to be an operation region of any type. It is now restricted to regions of type SystemMemory, as per the ACPI specification. BZ 481 Additional cleanup and optimizations for the new Table Manager code. AcpiEnable will now fail if all of the required ACPI tables are not loaded (FADT, FACS, DSDT). BZ 477 Added #pragma pack(8/4) to acobject.h to ensure that the structures in this header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been manually optimized to be aligned and will not work if it is byte-packed. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total Debug Version: 155.4K Code, 63.1K Data, 218.5K Total Current Release: Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 2) iASL Compiler/Disassembler and Tools: Fixed a problem where the presence of the _OSI predefined control method within complex expressions could cause an internal compiler error. AcpiExec: Implemented full region support for multiple address spaces. SpaceId is now part of the REGION object. BZ 429 ---------------------------------------- 11 October 2006. Summary of changes for version 20061011: 1) ACPI CA Core Subsystem: Completed an AML interpreter performance enhancement for control method execution. Previously a 2-pass parse/execution, control methods are now completely parsed and executed in a single pass. This improves overall interpreter performance by ~25%, reduces code size, and reduces CPU stack use. (Valery Podrezov + interpreter changes in version 20051202 that eliminated namespace loading during the pass one parse.) Implemented _CID support for PCI Root Bridge detection. If the _HID does not match the predefined PCI Root Bridge IDs, the _CID list (if present) is now obtained and also checked for an ID match. Implemented additional support for the PCI _ADR execution: upsearch until a device scope is found before executing _ADR. This allows PCI_Config operation regions to be declared locally within control methods underneath PCI device objects. Fixed a problem with a possible race condition between threads executing AcpiWalkNamespace and the AML interpreter. This condition was removed by modifying AcpiWalkNamespace to (by default) ignore all temporary namespace entries created during any concurrent control method execution. An additional namespace race condition is known to exist between AcpiWalkNamespace and the Load/Unload ASL operators and is still under investigation. Restructured the AML ParseLoop function, breaking it into several subfunctions in order to reduce CPU stack use and improve maintainability. (Mikhail Kouzmich) AcpiGetHandle: Fix for parameter validation to detect invalid combinations of prefix handle and pathname. BZ 478 Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total Debug Version: 154.6K Code, 63.0K Data, 217.6K Total Current Release: Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 2) iASL Compiler/Disassembler and Tools: Ported the -g option (get local ACPI tables) to the new ACPICA Table Manager to restore original behavior. ---------------------------------------- 27 September 2006. Summary of changes for version 20060927: 1) ACPI CA Core Subsystem: Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. These functions now use a spinlock for mutual exclusion and the interrupt level indication flag is not needed. Fixed a problem with the Global Lock where the lock could appear to be obtained before it is actually obtained. The global lock semaphore was inadvertently created with one unit instead of zero units. (BZ 464) Fiodor Suietov. Fixed a possible memory leak and fault in AcpiExResolveObjectToValue during a read from a buffer or region field. (BZ 458) Fiodor Suietov. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total Debug Version: 154.7K Code, 63.0K Data, 217.7K Total Current Release: Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 2) iASL Compiler/Disassembler and Tools: Fixed a compilation problem with the pre-defined Resource Descriptor field names where an "object does not exist" error could be incorrectly generated if the parent ResourceTemplate pathname places the template within a different namespace scope than the current scope. (BZ 7212) Fixed a problem where the compiler could hang after syntax errors detected in an ElseIf construct. (BZ 453) Fixed a problem with the AmlFilename parameter to the DefinitionBlock() operator. An incorrect output filename was produced when this parameter was a null string (""). Now, the original input filename is used as the AML output filename, with an ".aml" extension. Implemented a generic batch command mode for the AcpiExec utility (execute any AML debugger command) (Valery Podrezov). ---------------------------------------- 12 September 2006. Summary of changes for version 20060912: 1) ACPI CA Core Subsystem: Enhanced the implementation of the "serialized mode" of the interpreter (enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is specified, instead of creating a serialization semaphore per control method, the interpreter lock is simply no longer released before a blocking operation during control method execution. This effectively makes the AML Interpreter single-threaded. The overhead of a semaphore per-method is eliminated. Fixed a regression where an error was no longer emitted if a control method attempts to create 2 objects of the same name. This once again returns AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that will dynamically serialize the control method to possible prevent future errors. (BZ 440) Integrated a fix for a problem with PCI Express HID detection in the PCI Config Space setup procedure. (BZ 7145) Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the AcpiHwInitialize function - the FADT registers are now validated when the table is loaded. Added two new warnings during FADT verification - 1) if the FADT is larger than the largest known FADT version, and 2) if there is a mismatch between a 32-bit block address and the 64-bit X counterpart (when both are non- zero.) Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total Debug Version: 154.9K Code, 62.6K Data, 217.5K Total Current Release: Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 2) iASL Compiler/Disassembler and Tools: Fixed a problem with the implementation of the Switch() operator where the temporary variable was declared too close to the actual Switch, instead of at method level. This could cause a problem if the Switch() operator is within a while loop, causing an error on the second iteration. (BZ 460) Disassembler - fix for error emitted for unknown type for target of scope operator. Now, ignore it and continue. Disassembly of an FADT now verifies the input FADT and reports any errors found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. Disassembly of raw data buffers with byte initialization data now prefixes each output line with the current buffer offset. Disassembly of ASF! table now includes all variable-length data fields at the end of some of the subtables. The disassembler now emits a comment if a buffer appears to be a ResourceTemplate, but cannot be disassembled as such because the EndTag does not appear at the very end of the buffer. AcpiExec - Added the "-t" command line option to enable the serialized mode of the AML interpreter. ---------------------------------------- 31 August 2006. Summary of changes for version 20060831: 1) ACPI CA Core Subsystem: Miscellaneous fixes for the Table Manager: - Correctly initialize internal common FADT for all 64-bit "X" fields - Fixed a couple table mapping issues during table load - Fixed a couple alignment issues for IA64 - Initialize input array to zero in AcpiInitializeTables - Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, AcpiGetTableByIndex Change for GPE support: when a "wake" GPE is received, all wake GPEs are now immediately disabled to prevent the waking GPE from firing again and to prevent other wake GPEs from interrupting the wake process. Added the AcpiGpeCount global that tracks the number of processed GPEs, to be used for debugging systems with a large number of ACPI interrupts. Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in both the ACPICA headers and the disassembler. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total Debug Version: 154.6K Code, 62.3K Data, 216.9K Total Current Release: Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 2) iASL Compiler/Disassembler and Tools: Disassembler support for the DMAR ACPI table. ---------------------------------------- 23 August 2006. Summary of changes for version 20060823: 1) ACPI CA Core Subsystem: The Table Manager component has been completely redesigned and reimplemented. The new design is much simpler, and reduces the overall code and data size of the kernel-resident ACPICA by approximately 5%. Also, it is now possible to obtain the ACPI tables very early during kernel initialization, even before dynamic memory management is initialized. (Alexey Starikovskiy, Fiodor Suietov, Bob Moore) Obsolete ACPICA interfaces: - AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init time). - AcpiLoadTable: Not needed. - AcpiUnloadTable: Not needed. New ACPICA interfaces: - AcpiInitializeTables: Must be called before the table manager can be used. - AcpiReallocateRootTable: Used to transfer the root table to dynamically allocated memory after it becomes available. - AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables in the RSDT/XSDT. Other ACPICA changes: - AcpiGetTableHeader returns the actual mapped table header, not a copy. Use AcpiOsUnmapMemory to free this mapping. - AcpiGetTable returns the actual mapped table. The mapping is managed internally and must not be deleted by the caller. Use of this interface causes no additional dynamic memory allocation. - AcpiFindRootPointer: Support for physical addressing has been eliminated, it appeared to be unused. - The interface to AcpiOsMapMemory has changed to be consistent with the other allocation interfaces. - The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary parameters. - ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- bit platforms. Was previously 64 bits on all platforms. - The interface to the ACPI Global Lock acquire/release macros have changed slightly since ACPICA no longer keeps a local copy of the FACS with a constructed pointer to the actual global lock. Porting to the new table manager: - AcpiInitializeTables: Must be called once, and can be called anytime during the OS initialization process. It allows the host to specify an area of memory to be used to store the internal version of the RSDT/XSDT (root table). This allows the host to access ACPI tables before memory management is initialized and running. - AcpiReallocateRootTable: Can be called after memory management is running to copy the root table to a dynamically allocated array, freeing up the scratch memory specified in the call to AcpiInitializeTables. - AcpiSubsystemInitialize: This existing interface is independent of the Table Manager, and does not have to be called before the Table Manager can be used, it only must be called before the rest of ACPICA can be used. - ACPI Tables: Some changes have been made to the names and structure of the actbl.h and actbl1.h header files and may require changes to existing code. For example, bitfields have been completely removed because of their lack of portability across C compilers. - Update interfaces to the Global Lock acquire/release macros if local versions are used. (see acwin.h) Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c New files: tbfind.c Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total Debug Version: 161.0K Code, 65.1K Data, 226.1K Total Current Release: Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2) iASL Compiler/Disassembler and Tools: No changes for this release. ---------------------------------------- 21 July 2006. Summary of changes for version 20060721: 1) ACPI CA Core Subsystem: The full source code for the ASL test suite used to validate the iASL compiler and the ACPICA core subsystem is being released with the ACPICA source for the first time. The source is contained in a separate package and consists of over 1100 files that exercise all ASL/AML operators. The package should appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor Suietov) Completed a new design and implementation for support of the ACPI Global Lock. On the OS side, the global lock is now treated as a standard AML mutex. Previously, multiple OS threads could "acquire" the global lock simultaneously. However, this could cause the BIOS to be starved out of the lock - especially in cases such as the Embedded Controller driver where there is a tight coupling between the OS and the BIOS. Implemented an optimization for the ACPI Global Lock interrupt mechanism. The Global Lock interrupt handler no longer queues the execution of a separate thread to signal the global lock semaphore. Instead, the semaphore is signaled directly from the interrupt handler. Implemented support within the AML interpreter for package objects that contain a larger AML length (package list length) than the package element count. In this case, the length of the package is truncated to match the package element count. Some BIOS code apparently modifies the package length on the fly, and this change supports this behavior. Provides compatibility with the MS AML interpreter. (With assistance from Fiodor Suietov) Implemented a temporary fix for the BankValue parameter of a Bank Field to support all constant values, now including the Zero and One opcodes. Evaluation of this parameter must eventually be converted to a full TermArg evaluation. A not-implemented error is now returned (temporarily) for non- constant values for this parameter. Fixed problem reports (Fiodor Suietov) integrated: - Fix for premature object deletion after CopyObject on Operation Region (BZ 350) Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total Debug Version: 160.9K Code, 65.1K Data, 226.0K Total Current Release: Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2) iASL Compiler/Disassembler and Tools: No changes for this release. ---------------------------------------- 07 July 2006. Summary of changes for version 20060707: 1) ACPI CA Core Subsystem: Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers that do not allow the initialization of address pointers within packed structures - even though the hardware itself may support misaligned transfers. Some of the debug data structures are packed by default to minimize size. Added an error message for the case where AcpiOsGetThreadId() returns zero. A non-zero value is required by the core ACPICA code to ensure the proper operation of AML mutexes and recursive control methods. The DSDT is now the only ACPI table that determines whether the AML interpreter is in 32-bit or 64-bit mode. Not really a functional change, but the hooks for per-table 32/64 switching have been removed from the code. A clarification to the ACPI specification is forthcoming in ACPI 3.0B. Fixed a possible leak of an OwnerID in the error path of AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID deletion to a single place in AcpiTbUninstallTable to correct possible leaks when using the AcpiTbDeleteTablesByType interface (with assistance from Lance Ortiz.) Fixed a problem with Serialized control methods where the semaphore associated with the method could be over-signaled after multiple method invocations. Fixed two issues with the locking of the internal namespace data structure. Both the Unload() operator and AcpiUnloadTable interface now lock the namespace during the namespace deletion associated with the table unload (with assistance from Linn Crosetto.) Fixed problem reports (Valery Podrezov) integrated: - Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) Fixed problem reports (Fiodor Suietov) integrated: - Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) - On Address Space handler deletion, needless deactivation call (BZ 374) - AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) - Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone (BZ 376) - AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) - Minimum Length of RSDT should be validated (BZ 379) - AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no Handler (BZ (380) - AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded (BZ 381) Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total Debug Version: 160.8K Code, 64.8K Data, 225.6K Total Current Release: Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2) iASL Compiler/Disassembler and Tools: Fixed problem reports: Compiler segfault when ASL contains a long (>1024) String declaration (BZ 436) ---------------------------------------- 23 June 2006. Summary of changes for version 20060623: 1) ACPI CA Core Subsystem: Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This allows the type to be customized to the host OS for improved efficiency (since a spinlock is usually a very small object.) Implemented support for "ignored" bits in the ACPI registers. According to the ACPI specification, these bits should be preserved when writing the registers via a read/modify/write cycle. There are 3 bits preserved in this manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. Implemented the initial deployment of new OSL mutex interfaces. Since some host operating systems have separate mutex and semaphore objects, this feature was requested. The base code now uses mutexes (and the new mutex interfaces) wherever a binary semaphore was used previously. However, for the current release, the mutex interfaces are defined as macros to map them to the existing semaphore interfaces. Therefore, no OSL changes are required at this time. (See acpiosxf.h) Fixed several problems with the support for the control method SyncLevel parameter. The SyncLevel now works according to the ACPI specification and in concert with the Mutex SyncLevel parameter, since the current SyncLevel is a property of the executing thread. Mutual exclusion for control methods is now implemented with a mutex instead of a semaphore. Fixed three instances of the use of the C shift operator in the bitfield support code (exfldio.c) to avoid the use of a shift value larger than the target data width. The behavior of C compilers is undefined in this case and can cause unpredictable results, and therefore the case must be detected and avoided. (Fiodor Suietov) Added an info message whenever an SSDT or OEM table is loaded dynamically via the Load() or LoadTable() ASL operators. This should improve debugging capability since it will show exactly what tables have been loaded (beyond the tables present in the RSDT/XSDT.) Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total Debug Version: 160.2K Code, 64.7K Data, 224.9K Total Current Release: Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 2) iASL Compiler/Disassembler and Tools: No changes for this release. ---------------------------------------- 08 June 2006. Summary of changes for version 20060608: 1) ACPI CA Core Subsystem: Converted the locking mutex used for the ACPI hardware to a spinlock. This change should eliminate all problems caused by attempting to acquire a semaphore at interrupt level, and it means that all ACPICA external interfaces that directly access the ACPI hardware can be safely called from interrupt level. OSL code that implements the semaphore interfaces should be able to eliminate any workarounds for being called at interrupt level. Fixed a regression introduced in 20060526 where the ACPI device initialization could be prematurely aborted with an AE_NOT_FOUND if a device did not have an optional _INI method. Fixed an IndexField issue where a write to the Data Register should be limited in size to the AccessSize (width) of the IndexField itself. (BZ 433, Fiodor Suietov) Fixed problem reports (Valery Podrezov) integrated: - Allow store of ThermalZone objects to Debug object (BZ 5369/5370) Fixed problem reports (Fiodor Suietov) integrated: - AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) Removed four global mutexes that were obsolete and were no longer being used. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total Debug Version: 160.3K Code, 64.9K Data, 225.2K Total Current Release: Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 2) iASL Compiler/Disassembler and Tools: Fixed a fault when using -g option (get tables from registry) on Windows machines. Fixed problem reports integrated: - Generate error if CreateField NumBits parameter is zero. (BZ 405) - Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor Suietov) - Global table revision override (-r) is ignored (BZ 413) ---------------------------------------- 26 May 2006. Summary of changes for version 20060526: 1) ACPI CA Core Subsystem: Restructured, flattened, and simplified the internal interfaces for namespace object evaluation - resulting in smaller code, less CPU stack use, and fewer interfaces. (With assistance from Mikhail Kouzmich) Fixed a problem with the CopyObject operator where the first parameter was not typed correctly for the parser, interpreter, compiler, and disassembler. Caused various errors and unexpected behavior. Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits produced incorrect results with some C compilers. Since the behavior of C compilers when the shift value is larger than the datatype width is apparently not well defined, the interpreter now detects this condition and simply returns zero as expected in all such cases. (BZ 395) Fixed problem reports (Valery Podrezov) integrated: - Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) - Allow interpreter to handle nested method declarations (BZ 5361) Fixed problem reports (Fiodor Suietov) integrated: - AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) - After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) - AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) - Resource Manager should return AE_TYPE for non-device objects (BZ 358) - Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) - Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) - Incomplete cleanup branch in AcpiPsParseAml (BZ 361) - Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) - AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) - Status of the Global Initialization Handler call not used (BZ 366) - Incorrect object parameter to Global Initialization Handler (BZ 367) Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total Debug Version: 160.5K Code, 65.1K Data, 225.6K Total Current Release: Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 2) iASL Compiler/Disassembler and Tools: Modified the parser to allow the names IO, DMA, and IRQ to be used as namespace identifiers with no collision with existing resource descriptor macro names. This provides compatibility with other ASL compilers and is most useful for disassembly/recompilation of existing tables without parse errors. (With assistance from Thomas Renninger) Disassembler: fixed an incorrect disassembly problem with the DataTableRegion and CopyObject operators. Fixed a possible fault during disassembly of some Alias operators. ---------------------------------------- 12 May 2006. Summary of changes for version 20060512: 1) ACPI CA Core Subsystem: Replaced the AcpiOsQueueForExecution interface with a new interface named AcpiOsExecute. The major difference is that the new interface does not have a Priority parameter, this appeared to be useless and has been replaced by a Type parameter. The Type tells the host what type of execution is being requested, such as global lock handler, notify handler, GPE handler, etc. This allows the host to queue and execute the request as appropriate for the request type, possibly using different work queues and different priorities for the various request types. This enables fixes for multithreading deadlock problems such as BZ #5534, and will require changes to all existing OS interface layers. (Alexey Starikovskiy and Bob Moore) Fixed a possible memory leak associated with the support for the so- called "implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor Suietov) Fixed a problem with the Load() operator where a table load from an operation region could overwrite an internal table buffer by up to 7 bytes and cause alignment faults on IPF systems. (With assistance from Luming Yu) Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total Debug Version: 160.1K Code, 65.2K Data, 225.3K Total Current Release: Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Implemented support to cross reference the internal namespace and automatically generate ASL External() statements for symbols not defined within the current table being disassembled. This will simplify the disassembly and recompilation of interdependent tables such as SSDTs since these statements will no longer have to be added manually. Disassembler: Implemented experimental support to automatically detect invocations of external control methods and generate appropriate External() statements. This is problematic because the AML cannot be correctly parsed until the number of arguments for each control method is known. Currently, standalone method invocations and invocations as the source operand of a Store() statement are supported. Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code more readable and likely closer to the original ASL source. ---------------------------------------- 21 April 2006. Summary of changes for version 20060421: 1) ACPI CA Core Subsystem: Removed a device initialization optimization introduced in 20051216 where the _STA method was not run unless an _INI was also present for the same device. This optimization could cause problems because it could allow _INI methods to be run within a not-present device subtree. (If a not-present device had no _INI, _STA would not be run, the not-present status would not be discovered, and the children of the device would be incorrectly traversed.) Implemented a new _STA optimization where namespace subtrees that do not contain _INI are identified and ignored during device initialization. Selectively running _STA can significantly improve boot time on large machines (with assistance from Len Brown.) Implemented support for the device initialization case where the returned _STA flags indicate a device not-present but functioning. In this case, _INI is not run, but the device children are examined for presence, as per the ACPI specification. Implemented an additional change to the IndexField support in order to conform to MS behavior. The value written to the Index Register is not simply a byte offset, it is a byte offset in units of the access width of the parent Index Field. (Fiodor Suietov) Defined and deployed a new OSL interface, AcpiOsValidateAddress. This interface is called during the creation of all AML operation regions, and allows the host OS to exert control over what addresses it will allow the AML code to access. Operation Regions whose addresses are disallowed will cause a runtime exception when they are actually accessed (will not affect or abort table loading.) See oswinxf or osunixxf for an example implementation. Defined and deployed a new OSL interface, AcpiOsValidateInterface. This interface allows the host OS to match the various "optional" interface/behavior strings for the _OSI predefined control method as appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf for an example implementation. Restructured and corrected various problems in the exception handling code paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod (with assistance from Takayoshi Kochi.) Modified the Linux source converter to ignore quoted string literals while converting identifiers from mixed to lower case. This will correct problems with the disassembler and other areas where such strings must not be modified. The ACPI_FUNCTION_* macros no longer require quotes around the function name. This allows the Linux source converter to convert the names, now that the converter ignores quoted strings. Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total Debug Version: 158.9K Code, 64.9K Data, 223.8K Total Current Release: Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 2) iASL Compiler/Disassembler and Tools: Implemented 3 new warnings for iASL, and implemented multiple warning levels (w2 flag). 1) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not WAIT_FOREVER (0xFFFF) and the code does not examine the return value to check for the possible timeout, a warning is issued. 2) Useless operators: If an ASL operator does not specify an optional target operand and it also does not use the function return value from the operator, a warning is issued since the operator effectively does nothing. 3) Unreferenced objects: If a namespace object is created, but never referenced, a warning is issued. This is a warning level 2 since there are cases where this is ok, such as when a secondary table is loaded that uses the unreferenced objects. Even so, care is taken to only flag objects that don't look like they will ever be used. For example, the reserved methods (starting with an underscore) are usually not referenced because it is expected that the OS will invoke them. ---------------------------------------- 31 March 2006. Summary of changes for version 20060331: 1) ACPI CA Core Subsystem: Implemented header file support for the following additional ACPI tables: ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, all current and known ACPI tables are now defined in the ACPICA headers and are available for use by device drivers and other software. Implemented support to allow tables that contain ACPI names with invalid characters to be loaded. Previously, this would cause the table load to fail, but since there are several known cases of such tables on existing machines, this change was made to enable ACPI support for them. Also, this matches the behavior of the Microsoft ACPI implementation. Fixed a couple regressions introduced during the memory optimization in the 20060317 release. The namespace node definition required additional reorganization and an internal datatype that had been changed to 8-bit was restored to 32-bit. (Valery Podrezov) Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState could be passed through to AcpiOsReleaseObject which is unexpected. Such null pointers are now trapped and ignored, matching the behavior of the previous implementation before the deployment of AcpiOsReleaseObject. (Valery Podrezov, Fiodor Suietov) Fixed a memory mapping leak during the deletion of a SystemMemory operation region where a cached memory mapping was not deleted. This became a noticeable problem for operation regions that are defined within frequently used control methods. (Dana Meyers) Reorganized the ACPI table header files into two main files: one for the ACPI tables consumed by the ACPICA core, and another for the miscellaneous ACPI tables that are consumed by the drivers and other software. The various FADT definitions were merged into one common section and three different tables (ACPI 1.0, 1.0+, and 2.0) Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Previous Release: Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total Debug Version: 158.7K Code, 64.8K Data, 223.5K Total Current Release: Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 2) iASL Compiler/Disassembler and Tools: Disassembler: Implemented support to decode and format all non-AML ACPI tables (tables other than DSDTs and SSDTs.) This includes the new tables added to the ACPICA headers, therefore all current and known ACPI tables are supported. Disassembler: The change to allow ACPI names with invalid characters also enables the disassembly of such tables. Invalid characters within names are changed to '*' to make the name printable; the iASL compiler will still generate an error for such names, however, since this is an invalid ACPI character. Implemented an option for AcpiXtract (-a) to extract all tables found in the input file. The default invocation extracts only the DSDTs and SSDTs. Fixed a couple of gcc generation issues for iASL and AcpiExec and added a makefile for the AcpiXtract utility. ---------------------------------------- 17 March 2006. Summary of changes for version 20060317: 1) ACPI CA Core Subsystem: Implemented the use of a cache object for all internal namespace nodes. Since there are about 1000 static nodes in a typical system, this will decrease memory use for cache implementations that minimize per- allocation overhead (such as a slab allocator.) Removed the reference count mechanism for internal namespace nodes, since it was deemed unnecessary. This reduces the size of each namespace node by about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, and 32 bytes for the 64-bit case. Optimized several internal data structures to reduce object size on 64- bit platforms by packing data within the 64-bit alignment. This includes the frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static instances corresponding to the namespace objects. Added two new strings for the predefined _OSI method: "Windows 2001.1 SP1" and "Windows 2006". Split the allocation tracking mechanism out to a separate file, from utalloc.c to uttrack.c. This mechanism appears to be only useful for application-level code. Kernels may wish to not include uttrack.c in distributions. Removed all remnants of the obsolete ACPI_REPORT_* macros and the associated code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING macros.) Code and Data Size: These are the sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total Debug Version: 161.6K Code, 65.7K Data, 227.3K Total Current Release: Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 2) iASL Compiler/Disassembler and Tools: Implemented an ANSI C version of the acpixtract utility. This version will automatically extract the DSDT and all SSDTs from the input acpidump text file and dump the binary output to separate files. It can also display a summary of the input file including the headers for each table found and will extract any single ACPI table, with any signature. (See source/tools/acpixtract) ---------------------------------------- 10 March 2006. Summary of changes for version 20060310: 1) ACPI CA Core Subsystem: Tagged all external interfaces to the subsystem with the new ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL macro. The default definition is NULL. Added the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. This allows the host to define this as necessary to simplify kernel integration. The default definition is ACPI_NATIVE_UINT. Fixed two interpreter problems related to error processing, the deletion of objects, and placing invalid pointers onto the internal operator result stack. BZ 6028, 6151 (Valery Podrezov) Increased the reference count threshold where a warning is emitted for large reference counts in order to eliminate unnecessary warnings on systems with large namespaces (especially 64-bit.) Increased the value from 0x400 to 0x800. Due to universal disagreement as to the meaning of the 'c' in the calloc() function, the ACPI_MEM_CALLOCATE macro has been renamed to ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and ACPI_FREE. Code and Data Size: These are the sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total Debug Version: 161.4K Code, 65.7K Data, 227.1K Total Current Release: Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 2) iASL Compiler/Disassembler: Disassembler: implemented support for symbolic resource descriptor references. If a CreateXxxxField operator references a fixed offset within a resource descriptor, a name is assigned to the descriptor and the offset is translated to the appropriate resource tag and pathname. The addition of this support brings the disassembled code very close to the original ASL source code and helps eliminate run-time errors when the disassembled code is modified (and recompiled) in such a way as to invalidate the original fixed offsets. Implemented support for a Descriptor Name as the last parameter to the ASL Register() macro. This parameter was inadvertently left out of the ACPI specification, and will be added for ACPI 3.0b. Fixed a problem where the use of the "_OSI" string (versus the full path "\_OSI") caused an internal compiler error. ("No back ptr to op") Fixed a problem with the error message that occurs when an invalid string is used for a _HID object (such as one with an embedded asterisk: "*PNP010A".) The correct message is now displayed. ---------------------------------------- 17 February 2006. Summary of changes for version 20060217: 1) ACPI CA Core Subsystem: Implemented a change to the IndexField support to match the behavior of the Microsoft AML interpreter. The value written to the Index register is now a byte offset, no longer an index based upon the width of the Data register. This should fix IndexField problems seen on some machines where the Data register is not exactly one byte wide. The ACPI specification will be clarified on this point. Fixed a problem where several resource descriptor types could overrun the internal descriptor buffer due to size miscalculation: VendorShort, VendorLong, and Interrupt. This was noticed on IA64 machines, but could affect all platforms. Fixed a problem where individual resource descriptors were misaligned within the internal buffer, causing alignment faults on IA64 platforms. Code and Data Size: These are the sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total Debug Version: 161.3K Code, 65.6K Data, 226.9K Total Current Release: Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 2) iASL Compiler/Disassembler: Implemented support for new reserved names: _WDG and _WED are Microsoft extensions for Windows Instrumentation Management, _TDL is a new ACPI- defined method (Throttling Depth Limit.) Fixed a problem where a zero-length VendorShort or VendorLong resource descriptor was incorrectly emitted as a descriptor of length one. ---------------------------------------- 10 February 2006. Summary of changes for version 20060210: 1) ACPI CA Core Subsystem: Removed a couple of extraneous ACPI_ERROR messages that appeared during normal execution. These became apparent after the conversion from ACPI_DEBUG_PRINT. Fixed a problem where the CreateField operator could hang if the BitIndex or NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) Fixed a problem where a DeRefOf operation on a buffer object incorrectly failed with an exception. This also fixes a couple of related RefOf and DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead of AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 5480) Implemented a memory cleanup at the end of the execution of each iteration of an AML While() loop, preventing the accumulation of outstanding objects. (Valery Podrezov, BZ 5427) Eliminated a chunk of duplicate code in the object resolution code. (Valery Podrezov, BZ 5336) Fixed several warnings during the 64-bit code generation. The AcpiSrc source code conversion tool now inserts one line of whitespace after an if() statement that is followed immediately by a comment, improving readability of the Linux code. Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total Debug Version: 161.3K Code, 65.7K Data, 227.0K Total Current Release: Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 2) iASL Compiler/Disassembler: Fixed a problem with the disassembly of a BankField operator with a complex expression for the BankValue parameter. ---------------------------------------- 27 January 2006. Summary of changes for version 20060127: 1) ACPI CA Core Subsystem: Implemented support in the Resource Manager to allow unresolved namestring references within resource package objects for the _PRT method. This support is in addition to the previously implemented unresolved reference support within the AML parser. If the interpreter slack mode is enabled, these unresolved references will be passed through to the caller as a NULL package entry. Implemented and deployed new macros and functions for error and warning messages across the subsystem. These macros are simpler and generate less code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older macros remain defined to allow ACPI drivers time to migrate to the new macros. Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of the Acquire/Release Lock OSL interfaces. Fixed a problem where Alias ASL operators are sometimes not correctly resolved, in both the interpreter and the iASL compiler. Fixed several problems with the implementation of the ConcatenateResTemplate ASL operator. As per the ACPI specification, zero length buffers are now treated as a single EndTag. One-length buffers always cause a fatal exception. Non-zero length buffers that do not end with a full 2-byte EndTag cause a fatal exception. Fixed a possible structure overwrite in the AcpiGetObjectInfo external interface. (With assistance from Thomas Renninger) Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total Debug Version: 163.2K Code, 66.2K Data, 229.4K Total Current Release: Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 2) iASL Compiler/Disassembler: Fixed an internal error that was generated for any forward references to ASL Alias objects. ---------------------------------------- 13 January 2006. Summary of changes for version 20060113: 1) ACPI CA Core Subsystem: Added 2006 copyright to all module headers and signons. This affects virtually every file in the ACPICA core subsystem, iASL compiler, and the utilities. Enhanced the ACPICA error reporting in order to simplify user migration to the non-debug version of ACPICA. Replaced all instances of the ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, respectively. This preserves all error and warning messages in the non- debug version of the ACPICA code (this has been referred to as the "debug lite" option.) Over 200 cases were converted to create a total of over 380 error/warning messages across the ACPICA code. This increases the code and data size of the default non-debug version of the code somewhat (about 13K), but all error/warning reporting may be disabled if desired (and code eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time configuration option. The size of the debug version of ACPICA remains about the same. Fixed a memory leak within the AML Debugger "Set" command. One object was not properly deleted for every successful invocation of the command. Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total Debug Version: 163.7K Code, 67.5K Data, 231.2K Total Current Release: Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 2) iASL Compiler/Disassembler: The compiler now officially supports the ACPI 3.0a specification that was released on December 30, 2005. (Specification is available at www.acpi.info) ---------------------------------------- 16 December 2005. Summary of changes for version 20051216: 1) ACPI CA Core Subsystem: Implemented optional support to allow unresolved names within ASL Package objects. A null object is inserted in the package when a named reference cannot be located in the current namespace. Enabled via the interpreter slack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines that contain such code. Implemented an optimization to the initialization sequence that can improve boot time. During ACPI device initialization, the _STA method is now run if and only if the _INI method exists. The _STA method is used to determine if the device is present; An _INI can only be run if _STA returns present, but it is a waste of time to run the _STA method if the _INI does not exist. (Prototype and assistance from Dong Wei) Implemented use of the C99 uintptr_t for the pointer casting macros if it is available in the current compiler. Otherwise, the default (void *) cast is used as before. Fixed some possible memory leaks found within the execution path of the Break, Continue, If, and CreateField operators. (Valery Podrezov) Fixed a problem introduced in the 20051202 release where an exception is generated during method execution if a control method attempts to declare another method. Moved resource descriptor string constants that are used by both the AML disassembler and AML debugger to the common utilities directory so that these components are independent. Implemented support in the AcpiExec utility (-e switch) to globally ignore exceptions during control method execution (method is not aborted.) Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix generation. Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total Debug Version: 163.2K Code, 67.4K Data, 230.6K Total Current Release: Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 2) iASL Compiler/Disassembler: Fixed a problem where a CPU stack overflow fault could occur if a recursive method call was made from within a Return statement. ---------------------------------------- 02 December 2005. Summary of changes for version 20051202: 1) ACPI CA Core Subsystem: Modified the parsing of control methods to no longer create namespace objects during the first pass of the parse. Objects are now created only during the execute phase, at the moment the namespace creation operator is encountered in the AML (Name, OperationRegion, CreateByteField, etc.) This should eliminate ALREADY_EXISTS exceptions seen on some machines where reentrant control methods are protected by an AML mutex. The mutex will now correctly block multiple threads from attempting to create the same object more than once. Increased the number of available Owner Ids for namespace object tracking from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on some machines with a large number of ACPI tables (either static or dynamic). Fixed a problem with the AcpiExec utility where a fault could occur when the -b switch (batch mode) is used. Enhanced the namespace dump routine to output the owner ID for each namespace object. Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total Debug Version: 163.0K Code, 67.4K Data, 230.4K Total Current Release: Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 2) iASL Compiler/Disassembler: Fixed a parse error during compilation of certain Switch/Case constructs. To simplify the parse, the grammar now allows for multiple Default statements and this error is now detected and flagged during the analysis phase. Disassembler: The disassembly now includes the contents of the original table header within a comment at the start of the file. This includes the name and version of the original ASL compiler. ---------------------------------------- 17 November 2005. Summary of changes for version 20051117: 1) ACPI CA Core Subsystem: Fixed a problem in the AML parser where the method thread count could be decremented below zero if any errors occurred during the method parse phase. This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. This also fixed a related regression with the mechanism that detects and corrects methods that cannot properly handle reentrancy (related to the deployment of the new OwnerId mechanism.) Eliminated the pre-parsing of control methods (to detect errors) during table load. Related to the problem above, this was causing unwind issues if any errors occurred during the parse, and it seemed to be overkill. A table load should not be aborted if there are problems with any single control method, thus rendering this feature rather pointless. Fixed a problem with the new table-driven resource manager where an internal buffer overflow could occur for small resource templates. Implemented a new external interface, AcpiGetVendorResource. This interface will find and return a vendor-defined resource descriptor within a _CRS or _PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. Removed the length limit (200) on string objects as per the upcoming ACPI 3.0A specification. This affects the following areas of the interpreter: 1) any implicit conversion of a Buffer to a String, 2) a String object result of the ASL Concatenate operator, 3) the String object result of the ASL ToString operator. Fixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER on a semaphore object would incorrectly timeout. This allows the multithreading features of the AcpiExec utility to work properly under Windows. Updated the Linux makefiles for the iASL compiler and AcpiExec to include the recently added file named "utresrc.c". Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total Debug Version: 163.0K Code, 67.4K Data, 230.4K Total Current Release: Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 2) iASL Compiler/Disassembler: Removed the limit (200) on string objects as per the upcoming ACPI 3.0A specification. For the iASL compiler, this means that string literals within the source ASL can be of any length. Enhanced the listing output to dump the AML code for resource descriptors immediately after the ASL code for each descriptor, instead of in a block at the end of the entire resource template. Enhanced the compiler debug output to dump the entire original parse tree constructed during the parse phase, before any transforms are applied to the tree. The transformed tree is dumped also. ---------------------------------------- 02 November 2005. Summary of changes for version 20051102: 1) ACPI CA Core Subsystem: Modified the subsystem initialization sequence to improve GPE support. The GPE initialization has been split into two parts in order to defer execution of the _PRW methods (Power Resources for Wake) until after the hardware is fully initialized and the SCI handler is installed. This allows the _PRW methods to access fields protected by the Global Lock. This will fix systems where a NO_GLOBAL_LOCK exception has been seen during initialization. Converted the ACPI internal object disassemble and display code within the AML debugger to fully table-driven operation, reducing code size and increasing maintainability. Fixed a regression with the ConcatenateResTemplate() ASL operator introduced in the 20051021 release. Implemented support for "local" internal ACPI object types within the debugger "Object" command and the AcpiWalkNamespace external interfaces. These local types include RegionFields, BankFields, IndexFields, Alias, and reference objects. Moved common AML resource handling code into a new file, "utresrc.c". This code is shared by both the Resource Manager and the AML Debugger. Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total Debug Version: 163.5K Code, 67.0K Data, 230.5K Total Current Release: Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 2) iASL Compiler/Disassembler: Fixed a problem with very large initializer lists (more than 4000 elements) for both Buffer and Package objects where the parse stack could overflow. Enhanced the pre-compile source code scan for non-ASCII characters to ignore characters within comment fields. The scan is now always performed and is no longer optional, detecting invalid characters within a source file immediately rather than during the parse phase or later. Enhanced the ASL grammar definition to force early reductions on all list- style grammar elements so that the overall parse stack usage is greatly reduced. This should improve performance and reduce the possibility of parse stack overflow. Eliminated all reduce/reduce conflicts in the iASL parser generation. Also, with the addition of a %expected statement, the compiler generates from source with no warnings. Fixed a possible segment fault in the disassembler if the input filename does not contain a "dot" extension (Thomas Renninger). ---------------------------------------- 21 October 2005. Summary of changes for version 20051021: 1) ACPI CA Core Subsystem: Implemented support for the EM64T and other x86-64 processors. This essentially entails recognizing that these processors support non-aligned memory transfers. Previously, all 64-bit processors were assumed to lack hardware support for non-aligned transfers. Completed conversion of the Resource Manager to nearly full table-driven operation. Specifically, the resource conversion code (convert AML to internal format and the reverse) and the debug code to dump internal resource descriptors are fully table-driven, reducing code and data size and improving maintainability. The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word on 64-bit processors instead of a fixed 32-bit word. (With assistance from Alexey Starikovskiy) Implemented support within the resource conversion code for the Type- Specific byte within the various ACPI 3.0 *WordSpace macros. Fixed some issues within the resource conversion code for the type- specific flags for both Memory and I/O address resource descriptors. For Memory, implemented support for the MTP and TTP flags. For I/O, split the TRS and TTP flags into two separate fields. Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total Debug Version: 168.0K Code, 68.3K Data, 236.3K Total Current Release: Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 2) iASL Compiler/Disassembler: Relaxed a compiler restriction that disallowed a ResourceIndex byte if the corresponding ResourceSource string was not also present in a resource descriptor declaration. This restriction caused problems with existing AML/ASL code that includes the Index byte without the string. When such AML was disassembled, it could not be compiled without modification. Further, the modified code created a resource template with a different size than the original, breaking code that used fixed offsets into the resource template buffer. Removed a recent feature of the disassembler to ignore a lone ResourceIndex byte. This byte is now emitted if present so that the exact AML can be reproduced when the disassembled code is recompiled. Improved comments and text alignment for the resource descriptor code emitted by the disassembler. Implemented disassembler support for the ACPI 3.0 AccessSize field within a Register() resource descriptor. ---------------------------------------- 30 September 2005. Summary of changes for version 20050930: 1) ACPI CA Core Subsystem: Completed a major overhaul of the Resource Manager code - specifically, optimizations in the area of the AML/internal resource conversion code. The code has been optimized to simplify and eliminate duplicated code, CPU stack use has been decreased by optimizing function parameters and local variables, and naming conventions across the manager have been standardized for clarity and ease of maintenance (this includes function, parameter, variable, and struct/typedef names.) The update may force changes in some driver code, depending on how resources are handled by the host OS. All Resource Manager dispatch and information tables have been moved to a single location for clarity and ease of maintenance. One new file was created, named "rsinfo.c". The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to guarantee that the argument is not evaluated twice, making them less prone to macro side-effects. However, since there exists the possibility of additional stack use if a particular compiler cannot optimize them (such as in the debug generation case), the original macros are optionally available. Note that some invocations of the return_VALUE macro may now cause size mismatch warnings; the return_UINT8 and return_UINT32 macros are provided to eliminate these. (From Randy Dunlap) Implemented a new mechanism to enable debug tracing for individual control methods. A new external interface, AcpiDebugTrace, is provided to enable this mechanism. The intent is to allow the host OS to easily enable and disable tracing for problematic control methods. This interface can be easily exposed to a user or debugger interface if desired. See the file psxface.c for details. AcpiUtCallocate will now return a valid pointer if a length of zero is specified - a length of one is used and a warning is issued. This matches the behavior of AcpiUtAllocate. Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total Debug Version: 168.1K Code, 68.4K Data, 236.5K Total Current Release: Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 2) iASL Compiler/Disassembler: A remark is issued if the effective compile-time length of a package or buffer is zero. Previously, this was a warning. ---------------------------------------- 16 September 2005. Summary of changes for version 20050916: 1) ACPI CA Core Subsystem: Fixed a problem within the Resource Manager where support for the Generic Register descriptor was not fully implemented. This descriptor is now fully recognized, parsed, disassembled, and displayed. Completely restructured the Resource Manager code to utilize table-driven dispatch and lookup, eliminating many of the large switch() statements. This reduces overall subsystem code size and code complexity. Affects the resource parsing and construction, disassembly, and debug dump output. Cleaned up and restructured the debug dump output for all resource descriptors. Improved readability of the output and reduced code size. Fixed a problem where changes to internal data structures caused the optional ACPI_MUTEX_DEBUG code to fail compilation if specified. Code and Data Size: The current and previous library sizes for the core subsystem are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total Debug Version: 169.6K Code, 69.9K Data, 239.5K Total Current Release: Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 2) iASL Compiler/Disassembler: Updated the disassembler to automatically insert an EndDependentFn() macro into the ASL stream if this macro is missing in the original AML code, simplifying compilation of the resulting ASL module. Fixed a problem in the disassembler where a disassembled ResourceSource string (within a large resource descriptor) was not surrounded by quotes and not followed by a comma, causing errors when the resulting ASL module was compiled. Also, escape sequences within a ResourceSource string are now handled correctly (especially "\\") ---------------------------------------- 02 September 2005. Summary of changes for version 20050902: 1) ACPI CA Core Subsystem: Fixed a problem with the internal Owner ID allocation and deallocation mechanisms for control method execution and recursive method invocation. This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" messages seen on some systems. Recursive method invocation depth is currently limited to 255. (Alexey Starikovskiy) Completely eliminated all vestiges of support for the "module-level executable code" until this support is fully implemented and debugged. This should eliminate the NO_RETURN_VALUE exceptions seen during table load on some systems that invoke this support. Fixed a problem within the resource manager code where the transaction flags for a 64-bit address descriptor were handled incorrectly in the type- specific flag byte. Consolidated duplicate code within the address descriptor resource manager code, reducing overall subsystem code size. Fixed a fault when using the AML debugger "disassemble" command to disassemble individual control methods. Removed references to the "release_current" directory within the Unix release package. Code and Data Size: The current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler. These values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total Debug Version: 170.0K Code, 69.9K Data, 239.9K Total Current Release: Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 2) iASL Compiler/Disassembler: Implemented an error check for illegal duplicate values in the interrupt and dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and Interrupt(). Implemented error checking for the Irq() and IrqNoFlags() macros to detect too many values in the interrupt list (16 max) and invalid values in the list (range 0 - 15) The maximum length string literal within an ASL file is now restricted to 200 characters as per the ACPI specification. Fixed a fault when using the -ln option (generate namespace listing). Implemented an error check to determine if a DescriptorName within a resource descriptor has already been used within the current scope. ---------------------------------------- 15 August 2005. Summary of changes for version 20050815: 1) ACPI CA Core Subsystem: Implemented a full bytewise compare to determine if a table load request is attempting to load a duplicate table. The compare is performed if the table signatures and table lengths match. This will allow different tables with the same OEM Table ID and revision to be loaded - probably against the ACPI specification, but discovered in the field nonetheless. Added the changes.txt logfile to each of the zipped release packages. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total Debug Version: 167.0K Code, 69.9K Data, 236.9K Total Current Release: Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 2) iASL Compiler/Disassembler: Fixed a problem where incorrect AML code could be generated for Package objects if optimization is disabled (via the -oa switch). Fixed a problem with where incorrect AML code is generated for variable- length packages when the package length is not specified and the number of initializer values is greater than 255. ---------------------------------------- 29 July 2005. Summary of changes for version 20050729: 1) ACPI CA Core Subsystem: Implemented support to ignore an attempt to install/load a particular ACPI table more than once. Apparently there exists BIOS code that repeatedly attempts to load the same SSDT upon certain events. With assistance from Venkatesh Pallipadi. Restructured the main interface to the AML parser in order to correctly handle all exceptional conditions. This will prevent leakage of the OwnerId resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some machines. With assistance from Alexey Starikovskiy. Support for "module level code" has been disabled in this version due to a number of issues that have appeared on various machines. The support can be enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem compilation. When the issues are fully resolved, the code will be enabled by default again. Modified the internal functions for debug print support to define the FunctionName parameter as a (const char *) for compatibility with compiler built-in macros such as __FUNCTION__, etc. Linted the entire ACPICA source tree for both 32-bit and 64-bit. Implemented support to display an object count summary for the AML Debugger commands Object and Methods. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total Debug Version: 170.0K Code, 69.7K Data, 239.7K Total Current Release: Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 2) iASL Compiler/Disassembler: Fixed a regression that appeared in the 20050708 version of the compiler where an error message was inadvertently emitted for invocations of the _OSI reserved control method. ---------------------------------------- 08 July 2005. Summary of changes for version 20050708: 1) ACPI CA Core Subsystem: The use of the CPU stack in the debug version of the subsystem has been considerably reduced. Previously, a debug structure was declared in every function that used the debug macros. This structure has been removed in favor of declaring the individual elements as parameters to the debug functions. This reduces the cumulative stack use during nested execution of ACPI function calls at the cost of a small increase in the code size of the debug version of the subsystem. With assistance from Alexey Starikovskiy and Len Brown. Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent headers to define a macro that will return the current function name at runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the compiler-dependent header, the function name is saved on the CPU stack (one pointer per function.) This mechanism is used because apparently there exists no standard ANSI-C defined macro that that returns the function name. Redesigned and reimplemented the "Owner ID" mechanism used to track namespace objects created/deleted by ACPI tables and control method execution. A bitmap is now used to allocate and free the IDs, thus solving the wraparound problem present in the previous implementation. The size of the namespace node descriptor was reduced by 2 bytes as a result (Alexey Starikovskiy). Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield flag definitions within the headers for the predefined ACPI tables. These have been replaced by UINT8_BIT in order to increase the code portability of the subsystem. If the use of UINT8 remains a problem, we may be forced to eliminate bitfields entirely because of a lack of portability. Enhanced the performance of the AcpiUtUpdateObjectReference procedure. This is a frequently used function and this improvement increases the performance of the entire subsystem (Alexey Starikovskiy). Fixed several possible memory leaks and the inverse - premature object deletion (Alexey Starikovskiy). Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total Debug Version: 165.2K Code, 69.6K Data, 234.8K Total Current Release: Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total Debug Version: 170.0K Code, 69.7K Data, 239.7K Total ---------------------------------------- 24 June 2005. Summary of changes for version 20050624: 1) ACPI CA Core Subsystem: Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for the host-defined cache object. This allows the OSL implementation to define and type this object in any manner desired, simplifying the OSL implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for Linux, and should be defined in the OS-specific header file for other operating systems as required. Changed the interface to AcpiOsAcquireObject to directly return the requested object as the function return (instead of ACPI_STATUS.) This change was made for performance reasons, since this is the purpose of the interface in the first place. AcpiOsAcquireObject is now similar to the AcpiOsAllocate interface. Implemented a new AML debugger command named Businfo. This command displays information about all devices that have an associate _PRT object. The _ADR, _HID, _UID, and _CID are displayed for these devices. Modified the initialization sequence in AcpiInitializeSubsystem to call the OSL interface AcpiOslInitialize first, before any local initialization. This change was required because the global initialization now calls OSL interfaces. Enhanced the Dump command to display the entire contents of Package objects (including all sub-objects and their values.) Restructured the code base to split some files because of size and/or because the code logically belonged in a separate file. New files are listed below. All makefiles and project files included in the ACPI CA release have been updated. utilities/utcache.c /* Local cache interfaces */ utilities/utmutex.c /* Local mutex support */ utilities/utstate.c /* State object support */ interpreter/parser/psloop.c /* Main AML parse loop */ Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total Debug Version: 164.0K Code, 69.1K Data, 233.1K Total Current Release: Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 2) iASL Compiler/Disassembler: Fixed a regression introduced in version 20050513 where the use of a Package object within a Case() statement caused a compile time exception. The original behavior has been restored (a Match() operator is emitted.) ---------------------------------------- 17 June 2005. Summary of changes for version 20050617: 1) ACPI CA Core Subsystem: Moved the object cache operations into the OS interface layer (OSL) to allow the host OS to handle these operations if desired (for example, the Linux OSL will invoke the slab allocator). This support is optional; the compile time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache code in the ACPI CA core. The new OSL interfaces are shown below. See utalloc.c for an example implementation, and acpiosxf.h for the exact interface definitions. With assistance from Alexey Starikovskiy. AcpiOsCreateCache AcpiOsDeleteCache AcpiOsPurgeCache AcpiOsAcquireObject AcpiOsReleaseObject Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return and restore a flags parameter. This fits better with many OS lock models. Note: the current execution state (interrupt handler or not) is no longer passed to these interfaces. If necessary, the OSL must determine this state by itself, a simple and fast operation. With assistance from Alexey Starikovskiy. Fixed a problem in the ACPI table handling where a valid XSDT was assumed present if the revision of the RSDP was 2 or greater. According to the ACPI specification, the XSDT is optional in all cases, and the table manager therefore now checks for both an RSDP >=2 and a valid XSDT pointer. Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain only the RSDT. Fixed an interpreter problem with the Mid() operator in the case of an input string where the resulting output string is of zero length. It now correctly returns a valid, null terminated string object instead of a string object with a null pointer. Fixed a problem with the control method argument handling to allow a store to an Arg object that already contains an object of type Device. The Device object is now correctly overwritten. Previously, an error was returned. Enhanced the debugger Find command to emit object values in addition to the found object pathnames. The output format is the same as the dump namespace command. Enhanced the debugger Set command. It now has the ability to set the value of any Named integer object in the namespace (Previously, only method locals and args could be set.) Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total Debug Version: 164.0K Code, 69.3K Data, 233.3K Total Current Release: Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 2) iASL Compiler/Disassembler: Fixed a regression in the disassembler where if/else/while constructs were output incorrectly. This problem was introduced in the previous release (20050526). This problem also affected the single-step disassembly in the debugger. Fixed a problem where compiling the reserved _OSI method would randomly (but rarely) produce compile errors. Enhanced the disassembler to emit compilable code in the face of incorrect AML resource descriptors. If the optional ResourceSourceIndex is present, but the ResourceSource is not, do not emit the ResourceSourceIndex in the disassembly. Otherwise, the resulting code cannot be compiled without errors. ---------------------------------------- 26 May 2005. Summary of changes for version 20050526: 1) ACPI CA Core Subsystem: Implemented support to execute Type 1 and Type 2 AML opcodes appearing at the module level (not within a control method.) These opcodes are executed exactly once at the time the table is loaded. This type of code was legal up until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in order to provide backwards compatibility with earlier BIOS implementations. This eliminates the "Encountered executable code at module level" warning that was previously generated upon detection of such code. Fixed a problem in the interpreter where an AE_NOT_FOUND exception could inadvertently be generated during the lookup of namespace objects in the second pass parse of ACPI tables and control methods. It appears that this problem could occur during the resolution of forward references to namespace objects. Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This allows the deadlock detection debug code to be compiled out in the normal case, improving mutex performance (and overall subsystem performance) considerably. Implemented a handful of miscellaneous fixes for possible memory leaks on error conditions and error handling control paths. These fixes were suggested by FreeBSD and the Coverity Prevent source code analysis tool. Added a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) to prevent a fault in this error case. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total Debug Version: 163.7K Code, 69.3K Data, 233.0K Total Current Release: Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 2) iASL Compiler/Disassembler: Implemented support to allow Type 1 and Type 2 ASL operators to appear at the module level (not within a control method.) These operators will be executed once at the time the table is loaded. This type of code was legal up until the release of ACPI 2.0B (2002) and is now supported by the iASL compiler in order to provide backwards compatibility with earlier BIOS ASL code. The ACPI integer width (specified via the table revision ID or the -r override, 32 or 64 bits) is now used internally during compile-time constant folding to ensure that constants are truncated to 32 bits if necessary. Previously, the revision ID value was only emitted in the AML table header. An error message is now generated for the Mutex and Method operators if the SyncLevel parameter is outside the legal range of 0 through 15. Fixed a problem with the Method operator ParameterTypes list handling (ACPI 3.0). Previously, more than 2 types or 2 arguments generated a syntax error. The actual underlying implementation of method argument typechecking is still under development, however. ---------------------------------------- 13 May 2005. Summary of changes for version 20050513: 1) ACPI CA Core Subsystem: Implemented support for PCI Express root bridges -- added support for device PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. The interpreter now automatically truncates incoming 64-bit constants to 32 bits if currently executing out of a 32-bit ACPI table (Revision < 2). This also affects the iASL compiler constant folding. (Note: as per below, the iASL compiler no longer allows 64-bit constants within 32-bit tables.) Fixed a problem where string and buffer objects with "static" pointers (pointers to initialization data within an ACPI table) were not handled consistently. The internal object copy operation now always copies the data to a newly allocated buffer, regardless of whether the source object is static or not. Fixed a problem with the FromBCD operator where an implicit result conversion was improperly performed while storing the result to the target operand. Since this is an "explicit conversion" operator, the implicit conversion should never be performed on the output. Fixed a problem with the CopyObject operator where a copy to an existing named object did not always completely overwrite the existing object stored at name. Specifically, a buffer-to-buffer copy did not delete the existing buffer. Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and structs for consistency. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total Debug Version: 163.7K Code, 69.3K Data, 233.0K Total Current Release: (Same sizes) Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 2) iASL Compiler/Disassembler: The compiler now emits a warning if an attempt is made to generate a 64- bit integer constant from within a 32-bit ACPI table (Revision < 2). The integer is truncated to 32 bits. Fixed a problem with large package objects: if the static length of the package is greater than 255, the "variable length package" opcode is emitted. Previously, this caused an error. This requires an update to the ACPI spec, since it currently (incorrectly) states that packages larger than 255 elements are not allowed. The disassembler now correctly handles variable length packages and packages larger than 255 elements. ---------------------------------------- 08 April 2005. Summary of changes for version 20050408: 1) ACPI CA Core Subsystem: Fixed three cases in the interpreter where an "index" argument to an ASL function was still (internally) 32 bits instead of the required 64 bits. This was the Index argument to the Index, Mid, and Match operators. The "strupr" function is now permanently local (AcpiUtStrupr), since this is not a POSIX-defined function and not present in most kernel-level C libraries. All references to the C library strupr function have been removed from the headers. Completed the deployment of static functions/prototypes. All prototypes with the static attribute have been moved from the headers to the owning C file. Implemented an extract option (-e) for the AcpiBin utility (AML binary utility). This option allows the utility to extract individual ACPI tables from the output of AcpiDmp. It provides the same functionality of the acpixtract.pl perl script without the worry of setting the correct perl options. AcpiBin runs on Windows and has not yet been generated/validated in the Linux/Unix environment (but should be soon). Updated and fixed the table dump option for AcpiBin (-d). This option converts a single ACPI table to a hex/ascii file, similar to the output of AcpiDmp. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total Debug Version: 163.5K Code, 69.3K Data, 232.8K Total Current Release: Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 2) iASL Compiler/Disassembler: Disassembler fix: Added a check to ensure that the table length found in the ACPI table header within the input file is not longer than the actual input file size. This indicates some kind of file or table corruption. ---------------------------------------- 29 March 2005. Summary of changes for version 20050329: 1) ACPI CA Core Subsystem: An error is now generated if an attempt is made to create a Buffer Field of length zero (A CreateField with a length operand of zero.) The interpreter now issues a warning whenever executable code at the module level is detected during ACPI table load. This will give some idea of the prevalence of this type of code. Implemented support for references to named objects (other than control methods) within package objects. Enhanced package object output for the debug object. Package objects are now completely dumped, showing all elements. Enhanced miscellaneous object output for the debug object. Any object can now be written to the debug object (for example, a device object can be written, and the type of the object will be displayed.) The "static" qualifier has been added to all local functions across both the core subsystem and the iASL compiler. The number of "long" lines (> 80 chars) within the source has been significantly reduced, by about 1/3. Cleaned up all header files to ensure that all CA/iASL functions are prototyped (even static functions) and the formatting is consistent. Two new header files have been added, acopcode.h and acnames.h. Removed several obsolete functions that were no longer used. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total Debug Version: 165.4K Code, 69.7K Data, 236.1K Total Current Release: Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 2) iASL Compiler/Disassembler: Fixed a problem with the resource descriptor generation/support. For the ResourceSourceIndex and the ResourceSource fields, both must be present, or both must be not present - can't have one without the other. The compiler now returns non-zero from the main procedure if any errors have occurred during the compilation. ---------------------------------------- 09 March 2005. Summary of changes for version 20050309: 1) ACPI CA Core Subsystem: The string-to-buffer implicit conversion code has been modified again after a change to the ACPI specification. In order to match the behavior of the other major ACPI implementation, the target buffer is no longer truncated if the source string is smaller than an existing target buffer. This change requires an update to the ACPI spec, and should eliminate the recent AE_AML_BUFFER_LIMIT issues. The "implicit return" support was rewritten to a new algorithm that solves the general case. Rather than attempt to determine when a method is about to exit, the result of every ASL operator is saved momentarily until the very next ASL operator is executed. Therefore, no matter how the method exits, there will always be a saved implicit return value. This feature is only enabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate AE_AML_NO_RETURN_VALUE errors when enabled. Implemented implicit conversion support for the predicate (operand) of the If, Else, and While operators. String and Buffer arguments are automatically converted to Integers. Changed the string-to-integer conversion behavior to match the new ACPI errata: "If no integer object exists, a new integer is created. The ASCII string is interpreted as a hexadecimal constant. Each string character is interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting with the first character as the most significant digit, and ending with the first non-hexadecimal character or end-of-string." This means that the first non-hex character terminates the conversion and this is the code that was changed. Fixed a problem where the ObjectType operator would fail (fault) when used on an Index of a Package which pointed to a null package element. The operator now properly returns zero (Uninitialized) in this case. Fixed a problem where the While operator used excessive memory by not properly popping the result stack during execution. There was no memory leak after execution, however. (Code provided by Valery Podrezov.) Fixed a problem where references to control methods within Package objects caused the method to be invoked, instead of producing a reference object pointing to the method. Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to improve performance and reduce code size. (Code provided by Alexey Starikovskiy.) Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total Debug Version: 165.4K Code, 69.6K Data, 236.0K Total Current Release: Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 2) iASL Compiler/Disassembler: Fixed a problem with the Return operator with no arguments. Since the AML grammar for the byte encoding requires an operand for the Return opcode, the compiler now emits a Return(Zero) for this case. An ACPI specification update has been written for this case. For tables other than the DSDT, namepath optimization is automatically disabled. This is because SSDTs can be loaded anywhere in the namespace, the compiler has no knowledge of where, and thus cannot optimize namepaths. Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was inadvertently omitted from the ACPI specification, and will require an update to the spec. The source file scan for ASCII characters is now optional (-a). This change was made because some vendors place non-ascii characters within comments. However, the scan is simply a brute-force byte compare to ensure all characters in the file are in the range 0x00 to 0x7F. Fixed a problem with the CondRefOf operator where the compiler was inappropriately checking for the existence of the target. Since the point of the operator is to check for the existence of the target at run-time, the compiler no longer checks for the target existence. Fixed a problem where errors generated from the internal AML interpreter during constant folding were not handled properly, causing a fault. Fixed a problem with overly aggressive range checking for the Stall operator. The valid range (max 255) is now only checked if the operand is of type Integer. All other operand types cannot be statically checked. Fixed a problem where control method references within the RefOf, DeRefOf, and ObjectType operators were not treated properly. They are now treated as actual references, not method invocations. Fixed and enhanced the "list namespace" option (-ln). This option was broken a number of releases ago. Improved error handling for the Field, IndexField, and BankField operators. The compiler now cleanly reports and recovers from errors in the field component (FieldUnit) list. Fixed a disassembler problem where the optional ResourceDescriptor fields TRS and TTP were not always handled correctly. Disassembler - Comments in output now use "//" instead of "/*" ---------------------------------------- 28 February 2005. Summary of changes for version 20050228: 1) ACPI CA Core Subsystem: Fixed a problem where the result of an Index() operator (an object reference) must increment the reference count on the target object for the life of the object reference. Implemented AML Interpreter and Debugger support for the new ACPI 3.0 Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace resource descriptors. Implemented support in the _OSI method for the ACPI 3.0 "Extended Address Space Descriptor" string, indicating interpreter support for the descriptors above. Implemented header support for the new ACPI 3.0 FADT flag bits. Implemented header support for the new ACPI 3.0 PCI Express bits for the PM1 status/enable registers. Updated header support for the MADT processor local Apic struct and MADT platform interrupt source struct for new ACPI 3.0 fields. Implemented header support for the SRAT and SLIT ACPI tables. Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag at runtime. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total Debug Version: 164.9K Code, 69.2K Data, 234.1K Total Current Release: Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 2) iASL Compiler/Disassembler: Fixed a problem with the internal 64-bit String-to-integer conversion with strings less than two characters long. Fixed a problem with constant folding where the result of the Index() operator can not be considered a constant. This means that Index() cannot be a type3 opcode and this will require an update to the ACPI specification. Disassembler: Implemented support for the TTP, MTP, and TRS resource descriptor fields. These fields were inadvertently ignored and not output in the disassembly of the resource descriptor. ---------------------------------------- 11 February 2005. Summary of changes for version 20050211: 1) ACPI CA Core Subsystem: Implemented ACPI 3.0 support for implicit conversion within the Match() operator. MatchObjects can now be of type integer, buffer, or string instead of just type integer. Package elements are implicitly converted to the type of the MatchObject. This change aligns the behavior of Match() with the behavior of the other logical operators (LLess(), etc.) It also requires an errata change to the ACPI specification as this support was intended for ACPI 3.0, but was inadvertently omitted. Fixed a problem with the internal implicit "to buffer" conversion. Strings that are converted to buffers will cause buffer truncation if the string is smaller than the target buffer. Integers that are converted to buffers will not cause buffer truncation, only zero extension (both as per the ACPI spec.) The problem was introduced when code was added to truncate the buffer, but this should not be performed in all cases, only the string case. Fixed a problem with the Buffer and Package operators where the interpreter would get confused if two such operators were used as operands to an ASL operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result stack was not being popped after the execution of these operators, resulting in an AE_NO_RETURN_VALUE exception. Fixed a problem with constructs of the form Store(Index(...),...). The reference object returned from Index was inadvertently resolved to an actual value. This problem was introduced in version 20050114 when the behavior of Store() was modified to restrict the object types that can be used as the source operand (to match the ACPI specification.) Reduced excessive stack use within the AcpiGetObjectInfo procedure. Added a fix to aclinux.h to allow generation of AcpiExec on Linux. Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total Debug Version: 164.8K Code, 69.2K Data, 234.0K Total Current Release: Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 2) iASL Compiler/Disassembler: Fixed a code generation problem in the constant folding optimization code where incorrect code was generated if a constant was reduced to a buffer object (i.e., a reduced type 5 opcode.) Fixed a typechecking problem for the ToBuffer operator. Caused by an incorrect return type in the internal opcode information table. ---------------------------------------- 25 January 2005. Summary of changes for version 20050125: 1) ACPI CA Core Subsystem: Fixed a recently introduced problem with the Global Lock where the underlying semaphore was not created. This problem was introduced in version 20050114, and caused an AE_AML_NO_OPERAND exception during an Acquire() operation on _GL. The local object cache is now optional, and is disabled by default. Both AcpiExec and the iASL compiler enable the cache because they run in user mode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE to enable the local cache. Fixed an issue in the internal function AcpiUtEvaluateObject concerning the optional "implicit return" support where an error was returned if no return object was expected, but one was implicitly returned. AE_OK is now returned in this case and the implicitly returned object is deleted. AcpiUtEvaluateObject is only occasionally used, and only to execute reserved methods such as _STA and _INI where the return type is known up front. Fixed a few issues with the internal convert-to-integer code. It now returns an error if an attempt is made to convert a null string, a string of only blanks/tabs, or a zero-length buffer. This affects both implicit conversion and explicit conversion via the ToInteger() operator. The internal debug code in AcpiUtAcquireMutex has been commented out. It is not needed for normal operation and should increase the performance of the entire subsystem. The code remains in case it is needed for debug purposes again. The AcpiExec source and makefile are included in the Unix/Linux package for the first time. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total Debug Version: 165.4K Code, 69.4K Data, 234.8K Total Current Release: Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 2) iASL Compiler/Disassembler: Switch/Case support: A warning is now issued if the type of the Switch value cannot be determined at compile time. For example, Switch(Arg0) will generate the warning, and the type is assumed to be an integer. As per the ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the warning. Switch/Case support: Implemented support for buffer and string objects as the switch value. This is an ACPI 3.0 feature, now that LEqual supports buffers and strings. Switch/Case support: The emitted code for the LEqual() comparisons now uses the switch value as the first operand, not the second. The case value is now the second operand, and this allows the case value to be implicitly converted to the type of the switch value, not the other way around. Switch/Case support: Temporary variables are now emitted immediately within the control method, not at the global level. This means that there are now 36 temps available per-method, not 36 temps per-module as was the case with the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) ---------------------------------------- 14 January 2005. Summary of changes for version 20050114: Added 2005 copyright to all module headers. This affects every module in the core subsystem, iASL compiler, and the utilities. 1) ACPI CA Core Subsystem: Fixed an issue with the String-to-Buffer conversion code where the string null terminator was not included in the buffer after conversion, but there is existing ASL that assumes the string null terminator is included. This is the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was introduced in the previous version when the code was updated to correctly set the converted buffer size as per the ACPI specification. The ACPI spec is ambiguous and will be updated to specify that the null terminator must be included in the converted buffer. This also affects the ToBuffer() ASL operator. Fixed a problem with the Mid() ASL/AML operator where it did not work correctly on Buffer objects. Newly created sub-buffers were not being marked as initialized. Fixed a problem in AcpiTbFindTable where incorrect string compares were performed on the OemId and OemTableId table header fields. These fields are not null terminated, so strncmp is now used instead of strcmp. Implemented a restriction on the Store() ASL/AML operator to align the behavior with the ACPI specification. Previously, any object could be used as the source operand. Now, the only objects that may be used are Integers, Buffers, Strings, Packages, Object References, and DDB Handles. If necessary, the original behavior can be restored by enabling the EnableInterpreterSlack flag. Enhanced the optional "implicit return" support to allow an implicit return value from methods that are invoked externally via the AcpiEvaluateObject interface. This enables implicit returns from the _STA and _INI methods, for example. Changed the Revision() ASL/AML operator to return the current version of the AML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned the supported ACPI version (This is the function of the _REV method). Updated the _REV predefined method to return the currently supported version of ACPI, now 3. Implemented batch mode option for the AcpiExec utility (-b). Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total Debug Version: 165.3K Code, 69.4K Data, 234.7K Total Current Release: Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total Debug Version: 165.4K Code, 69.4K Data, 234.8K Total ---------------------------------------- 10 December 2004. Summary of changes for version 20041210: ACPI 3.0 support is nearing completion in both the iASL compiler and the ACPI CA core subsystem. 1) ACPI CA Core Subsystem: Fixed a problem in the ToDecimalString operator where the resulting string length was incorrectly calculated. The length is now calculated exactly, eliminating incorrect AE_STRING_LIMIT exceptions. Fixed a problem in the ToHexString operator to allow a maximum 200 character string to be produced. Fixed a problem in the internal string-to-buffer and buffer-to-buffer copy routine where the length of the resulting buffer was not truncated to the new size (if the target buffer already existed). Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total Debug Version: 164.7K Code, 68.5K Data, 233.2K Total Current Release: Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 2) iASL Compiler/Disassembler: Implemented the new ACPI 3.0 resource template macros - DWordSpace, ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. Includes support in the disassembler. Implemented support for the new (ACPI 3.0) parameter to the Register macro, AccessSize. Fixed a problem where the _HE resource name for the Interrupt macro was referencing bit 0 instead of bit 1. Implemented check for maximum 255 interrupts in the Interrupt macro. Fixed a problem with the predefined resource descriptor names where incorrect AML code was generated if the offset within the resource buffer was 0 or 1. The optimizer shortened the AML code to a single byte opcode but did not update the surrounding package lengths. Changes to the Dma macro: All channels within the channel list must be in the range 0-7. Maximum 8 channels can be specified. BusMaster operand is optional (default is BusMaster). Implemented check for maximum 7 data bytes for the VendorShort macro. The ReadWrite parameter is now optional for the Memory32 and similar macros. ---------------------------------------- 03 December 2004. Summary of changes for version 20041203: 1) ACPI CA Core Subsystem: The low-level field insertion/extraction code (exfldio) has been completely rewritten to eliminate unnecessary complexity, bugs, and boundary conditions. Fixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString operators where the input operand could be inadvertently deleted if no conversion was necessary (e.g., if the input to ToInteger was an Integer object.) Fixed a problem with the ToDecimalString and ToHexString where an incorrect exception code was returned if the resulting string would be > 200 chars. AE_STRING_LIMIT is now returned. Fixed a problem with the Concatenate operator where AE_OK was always returned, even if the operation failed. Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 semaphores to be allocated. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total Debug Version: 165.2K Code, 68.6K Data, 233.8K Total Current Release: Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 2) iASL Compiler/Disassembler: Fixed typechecking for the ObjectType and SizeOf operators. Problem was recently introduced in 20041119. Fixed a problem with the ToUUID macro where the upper nybble of each buffer byte was inadvertently set to zero. ---------------------------------------- 19 November 2004. Summary of changes for version 20041119: 1) ACPI CA Core Subsystem: Fixed a problem in the internal ConvertToInteger routine where new integers were not truncated to 32 bits for 32-bit ACPI tables. This routine converts buffers and strings to integers. Implemented support to store a value to an Index() on a String object. This is an ACPI 2.0 feature that had not yet been implemented. Implemented new behavior for storing objects to individual package elements (via the Index() operator). The previous behavior was to invoke the implicit conversion rules if an object was already present at the index. The new behavior is to simply delete any existing object and directly store the new object. Although the ACPI specification seems unclear on this subject, other ACPI implementations behave in this manner. (This is the root of the AE_BAD_HEX_CONSTANT issue.) Modified the RSDP memory scan mechanism to support the extended checksum for ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid RSDP signature is found with a valid checksum. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total Debug Version: 165.2K Code, 68.6K Data, 233.8K Total Current Release: Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 2) iASL Compiler/Disassembler: Fixed a missing semicolon in the aslcompiler.y file. ---------------------------------------- 05 November 2004. Summary of changes for version 20041105: 1) ACPI CA Core Subsystem: Implemented support for FADT revision 2. This was an interim table (between ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. Implemented optional support to allow uninitialized LocalX and ArgX variables in a control method. The variables are initialized to an Integer object with a value of zero. This support is enabled by setting the AcpiGbl_EnableInterpreterSlack flag to TRUE. Implemented support for Integer objects for the SizeOf operator. Either 4 or 8 is returned, depending on the current integer size (32-bit or 64- bit, depending on the parent table revision). Fixed a problem in the implementation of the SizeOf and ObjectType operators where the operand was resolved to a value too early, causing incorrect return values for some objects. Fixed some possible memory leaks during exceptional conditions. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total Debug Version: 164.8K Code, 68.6K Data, 233.4K Total Current Release: Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 2) iASL Compiler/Disassembler: Implemented support for all ACPI 3.0 reserved names and methods. Implemented all ACPI 3.0 grammar elements in the front-end, including support for semicolons. Implemented the ACPI 3.0 Function() and ToUUID() macros Fixed a problem in the disassembler where a Scope() operator would not be emitted properly if the target of the scope was in another table. ---------------------------------------- 15 October 2004. Summary of changes for version 20041015: Note: ACPI CA is currently undergoing an in-depth and complete formal evaluation to test/verify the following areas. Other suggestions are welcome. This will result in an increase in the frequency of releases and the number of bug fixes in the next few months. - Functional tests for all ASL/AML operators - All implicit/explicit type conversions - Bit fields and operation regions - 64-bit math support and 32-bit-only "truncated" math support - Exceptional conditions, both compiler and interpreter - Dynamic object deletion and memory leaks - ACPI 3.0 support when implemented - External interfaces to the ACPI subsystem 1) ACPI CA Core Subsystem: Fixed two alignment issues on 64-bit platforms - within debug statements in AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address field within the non-aligned ACPI generic address structure. Fixed a problem in the Increment and Decrement operators where incorrect operand resolution could result in the inadvertent modification of the original integer when the integer is passed into another method as an argument and the arg is then incremented/decremented. Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- bit BCD number were truncated during conversion. Fixed a problem in the ToDecimal operator where the length of the resulting string could be set incorrectly too long if the input operand was a Buffer object. Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) within a buffer would prematurely terminate a compare between buffer objects. Added a check for string overflow (>200 characters as per the ACPI specification) during the Concatenate operator with two string operands. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total Debug Version: 164.6K Code, 68.5K Data, 233.1K Total Current Release: Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 2) iASL Compiler/Disassembler: Allow the use of the ObjectType operator on uninitialized Locals and Args (returns 0 as per the ACPI specification). Fixed a problem where the compiler would fault if there was a syntax error in the FieldName of all of the various CreateXXXField operators. Disallow the use of lower case letters within the EISAID macro, as per the ACPI specification. All EISAID strings must be of the form "UUUNNNN" Where U is an uppercase letter and N is a hex digit. ---------------------------------------- 06 October 2004. Summary of changes for version 20041006: 1) ACPI CA Core Subsystem: Implemented support for the ACPI 3.0 Timer operator. This ASL function implements a 64-bit timer with 100 nanosecond granularity. Defined a new OSL interface, AcpiOsGetTimer. This interface is used to implement the ACPI 3.0 Timer operator. This allows the host OS to implement the timer with the best clock available. Also, it keeps the core subsystem out of the clock handling business, since the host OS (usually) performs this function. Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) functions use a 64-bit address which is part of the packed ACPI Generic Address Structure. Since the structure is non-aligned, the alignment macros are now used to extract the address to a local variable before use. Fixed a problem where the ToInteger operator assumed all input strings were hexadecimal. The operator now handles both decimal strings and hex strings (prefixed with "0x"). Fixed a problem where the string length in the string object created as a result of the internal ConvertToString procedure could be incorrect. This potentially affected all implicit conversions and also the ToDecimalString and ToHexString operators. Fixed two problems in the ToString operator. If the length parameter was zero, an incorrect string object was created and the value of the input length parameter was inadvertently changed from zero to Ones. Fixed a problem where the optional ResourceSource string in the ExtendedIRQ resource macro was ignored. Simplified the interfaces to the internal division functions, reducing code size and complexity. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total Debug Version: 164.5K Code, 68.3K Data, 232.8K Total Current Release: Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 2) iASL Compiler/Disassembler: Implemented support for the ACPI 3.0 Timer operator. Fixed a problem where the Default() operator was inadvertently ignored in a Switch/Case block. This was a problem in the translation of the Switch statement to If...Else pairs. Added support to allow a standalone Return operator, with no parentheses (or operands). Fixed a problem with code generation for the ElseIf operator where the translated Else...If parse tree was improperly constructed leading to the loss of some code. ---------------------------------------- 22 September 2004. Summary of changes for version 20040922: 1) ACPI CA Core Subsystem: Fixed a problem with the implementation of the LNot() operator where "Ones" was not returned for the TRUE case. Changed the code to return Ones instead of (!Arg) which was usually 1. This change affects iASL constant folding for this operator also. Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was not initialized properly -- Now zero the entire buffer in this case where the buffer already exists. Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all related code considerably. This will require changes/updates to all OS interface layers (OSLs.) Implemented a new external interface, AcpiInstallExceptionHandler, to allow a system exception handler to be installed. This handler is invoked upon any run-time exception that occurs during control method execution. Added support for the DSDT in AcpiTbFindTable. This allows the DataTableRegion() operator to access the local copy of the DSDT. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total Debug Version: 164.2K Code, 68.2K Data, 232.4K Total Current Release: Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 2) iASL Compiler/Disassembler: Fixed a problem with constant folding and the LNot operator. LNot was returning 1 in the TRUE case, not Ones as per the ACPI specification. This could result in the generation of an incorrect folded/reduced constant. End-Of-File is now allowed within a "//"-style comment. A parse error no longer occurs if such a comment is at the very end of the input ASL source file. Implemented the "-r" option to override the Revision in the table header. The initial use of this option will be to simplify the evaluation of the AML interpreter by allowing a single ASL source module to be compiled for either 32-bit or 64-bit integers. ---------------------------------------- 27 August 2004. Summary of changes for version 20040827: 1) ACPI CA Core Subsystem: - Implemented support for implicit object conversion in the non-numeric logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; the second operand is implicitly converted on the fly to match the type of the first operand. For example: LEqual (Source1, Source2) Source1 and Source2 must each evaluate to an integer, a string, or a buffer. The data type of Source1 dictates the required type of Source2. Source2 is implicitly converted if necessary to match the type of Source1. - Updated and corrected the behavior of the string conversion support. The rules concerning conversion of buffers to strings (according to the ACPI specification) are as follows: ToDecimalString - explicit byte-wise conversion of buffer to string of decimal values (0-255) separated by commas. ToHexString - explicit byte- wise conversion of buffer to string of hex values (0-FF) separated by commas. ToString - explicit byte-wise conversion of buffer to string. Byte-by- byte copy with no transform except NULL terminated. Any other implicit buffer- to- string conversion - byte-wise conversion of buffer to string of hex values (0-FF) separated by spaces. - Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. - Fixed a problem in AcpiNsGetPathnameLength where the returned length was one byte too short in the case of a node in the root scope. This could cause a fault during debug output. - Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total Debug Version: 164.1K Code, 68.3K Data, 232.4K Total Current Release: Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 2) iASL Compiler/Disassembler: - Fixed a Linux generation error. ---------------------------------------- 16 August 2004. Summary of changes for version 20040816: 1) ACPI CA Core Subsystem: Designed and implemented support within the AML interpreter for the so- called "implicit return". This support returns the result of the last ASL operation within a control method, in the absence of an explicit Return() operator. A few machines depend on this behavior, even though it is not explicitly supported by the ASL language. It is optional support that can be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. Removed support for the PCI_Config address space from the internal low level hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This support was not used internally, and would not work correctly anyway because the PCI bus number and segment number were not supported. There are separate interfaces for PCI configuration space access because of the unique interface. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total Debug Version: 164.1K Code, 68.2K Data, 232.3K Total Current Release: Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 2) iASL Compiler/Disassembler: Fixed a problem where constants in ASL expressions at the root level (not within a control method) could be inadvertently truncated during code generation. This problem was introduced in the 20040715 release. ---------------------------------------- 15 July 2004. Summary of changes for version 20040715: 1) ACPI CA Core Subsystem: Restructured the internal HW GPE interfaces to pass/track the current state of interrupts (enabled/disabled) in order to avoid possible deadlock and increase flexibility of the interfaces. Implemented a "lexicographical compare" for String and Buffer objects within the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - - as per further clarification to the ACPI specification. Behavior is similar to C library "strcmp". Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable external function. In the 32-bit non-debug case, the stack use has been reduced from 168 bytes to 32 bytes. Deployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, whose purpose is to allow the AML interpreter to forgive certain bad AML constructs. Default setting is FALSE. Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO support code. If enabled, it allows field access to go beyond the end of a region definition if the field is within the region length rounded up to the next access width boundary (a common coding error.) Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these symbols are lowercase by the latest version of the AcpiSrc tool. The prototypes for the PCI interfaces in acpiosxf.h have been updated to rename "Register" to simply "Reg" to prevent certain compilers from complaining. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total Debug Version: 163.8K Code, 68.2K Data, 232.0K Total Current Release: Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 2) iASL Compiler/Disassembler: Implemented full support for Package objects within the Case() operator. Note: The Break() operator is currently not supported within Case blocks (TermLists) as there is some question about backward compatibility with ACPI 1.0 interpreters. Fixed a problem where complex terms were not supported properly within the Switch() operator. Eliminated extraneous warning for compiler-emitted reserved names of the form "_T_x". (Used in Switch/Case operators.) Eliminated optimization messages for "_T_x" objects and small constants within the DefinitionBlock operator. ---------------------------------------- 15 June 2004. Summary of changes for version 20040615: 1) ACPI CA Core Subsystem: Implemented support for Buffer and String objects (as per ACPI 2.0) for the following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and LLessEqual. All directory names in the entire source package are lower case, as they were in earlier releases. Implemented "Disassemble" command in the AML debugger that will disassemble a single control method. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total Debug Version: 163.3K Code, 67.2K Data, 230.5K Total Current Release: Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 2) iASL Compiler/Disassembler: Implemented support for Buffer and String objects (as per ACPI 2.0) for the following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and LLessEqual. All directory names in the entire source package are lower case, as they were in earlier releases. Fixed a fault when using the -g or -d options if the FADT was not found. Fixed an issue with the Windows version of the compiler where later versions of Windows place the FADT in the registry under the name "FADT" and not "FACP" as earlier versions did. This applies when using the -g or - d options. The compiler now looks for both strings as necessary. Fixed a problem with compiler namepath optimization where a namepath within the Scope() operator could not be optimized if the namepath was a subpath of the current scope path. ---------------------------------------- 27 May 2004. Summary of changes for version 20040527: 1) ACPI CA Core Subsystem: Completed a new design and implementation for EBDA (Extended BIOS Data Area) support in the RSDP scan code. The original code improperly scanned for the EBDA by simply scanning from memory location 0 to 0x400. The correct method is to first obtain the EBDA pointer from within the BIOS data area, then scan 1K of memory starting at the EBDA pointer. There appear to be few if any machines that place the RSDP in the EBDA, however. Integrated a fix for a possible fault during evaluation of BufferField arguments. Obsolete code that was causing the problem was removed. Found and fixed a problem in the Field Support Code where data could be corrupted on a bit field read that starts on an aligned boundary but does not end on an aligned boundary. Merged the read/write "datum length" calculation code into a common procedure. Rolled in a couple of changes to the FreeBSD-specific header. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total Debug Version: 163.2K Code, 67.2K Data, 230.4K Total Current Release: Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 2) iASL Compiler/Disassembler: Fixed a generation warning produced by some overly-verbose compilers for a 64-bit constant. ---------------------------------------- 14 May 2004. Summary of changes for version 20040514: 1) ACPI CA Core Subsystem: Fixed a problem where hardware GPE enable bits sometimes not set properly during and after GPE method execution. Result of 04/27 changes. Removed extra "clear all GPEs" when sleeping/waking. Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to the new AcpiEv* calls as appropriate. ACPI_OS_NAME was removed from the OS-specific headers. The default name is now "Microsoft Windows NT" for maximum compatibility. However this can be changed by modifying the acconfig.h file. Allow a single invocation of AcpiInstallNotifyHandler for a handler that traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. Run _INI methods on ThermalZone objects. This is against the ACPI specification, but there is apparently ASL code in the field that has these _INI methods, and apparently "other" AML interpreters execute them. Performed a full 16/32/64 bit lint that resulted in some small changes. Added a sleep simulation command to the AML debugger to test sleep code. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total Debug Version: 162.9K Code, 67.0K Data, 229.9K Total Current Release: Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total Debug Version: 163.2K Code, 67.2K Data, 230.4K Total ---------------------------------------- 27 April 2004. Summary of changes for version 20040427: 1) ACPI CA Core Subsystem: Completed a major overhaul of the GPE handling within ACPI CA. There are now three types of GPEs: wake-only, runtime-only, and combination wake/run. The only GPEs allowed to be combination wake/run are for button-style devices such as a control-method power button, control-method sleep button, or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not referenced by any _PRW methods are marked for "runtime" and hardware enabled. Any GPE that is referenced by a _PRW method is marked for "wake" (and disabled at runtime). However, at sleep time, only those GPEs that have been specifically enabled for wake via the AcpiEnableGpe interface will actually be hardware enabled. A new external interface has been added, AcpiSetGpeType(), that is meant to be used by device drivers to force a GPE to a particular type. It will be especially useful for the drivers for the button devices mentioned above. Completed restructuring of the ACPI CA initialization sequence so that default operation region handlers are installed before GPEs are initialized and the _PRW methods are executed. This will prevent errors when the _PRW methods attempt to access system memory or I/O space. GPE enable/disable no longer reads the GPE enable register. We now keep the enable info for runtime and wake separate and in the GPE_EVENT_INFO. We thus no longer depend on the hardware to maintain these bits. Always clear the wake status and fixed/GPE status bits before sleep, even for state S5. Improved the AML debugger output for displaying the GPE blocks and their current status. Added new strings for the _OSI method, of the form "Windows 2001 SPx" where x = 0,1,2,3,4. Fixed a problem where the physical address was incorrectly calculated when the Load() operator was used to directly load from an Operation Region (vs. loading from a Field object.) Also added check for minimum table length for this case. Fix for multiple mutex acquisition. Restore original thread SyncLevel on mutex release. Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for consistency with the other fields returned. Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such structure for each GPE in the system, so the size of this structure is important. CPU stack requirement reduction: Cleaned up the method execution and object evaluation paths so that now a parameter structure is passed, instead of copying the various method parameters over and over again. In evregion.c: Correctly exit and reenter the interpreter region if and only if dispatching an operation region request to a user-installed handler. Do not exit/reenter when dispatching to a default handler (e.g., default system memory or I/O handlers) Notes for updating drivers for the new GPE support. The following changes must be made to ACPI-related device drivers that are attached to one or more GPEs: (This information will be added to the ACPI CA Programmer Reference.) 1) AcpiInstallGpeHandler no longer automatically enables the GPE, you must explicitly call AcpiEnableGpe. 2) There is a new interface called AcpiSetGpeType. This should be called before enabling the GPE. Also, this interface will automatically disable the GPE if it is currently enabled. 3) AcpiEnableGpe no longer supports a GPE type flag. Specific drivers that must be changed: 1) EC driver: AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, AeGpeHandler, NULL); AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 2) Button Drivers (Power, Lid, Sleep): Run _PRW method under parent device If _PRW exists: /* This is a control-method button */ Extract GPE number and possibly GpeDevice AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); For all other devices that have _PRWs, we automatically set the GPE type to ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This must be done on a selective basis, usually requiring some kind of user app to allow the user to pick the wake devices. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total Debug Version: 161.0K Code, 66.3K Data, 227.3K Total Current Release: Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total Debug Version: 162.9K Code, 67.0K Data, 229.9K Total ---------------------------------------- 02 April 2004. Summary of changes for version 20040402: 1) ACPI CA Core Subsystem: Fixed an interpreter problem where an indirect store through an ArgX parameter was incorrectly applying the "implicit conversion rules" during the store. From the ACPI specification: "If the target is a method local or argument (LocalX or ArgX), no conversion is performed and the result is stored directly to the target". The new behavior is to disable implicit conversion during ALL stores to an ArgX. Changed the behavior of the _PRW method scan to ignore any and all errors returned by a given _PRW. This prevents the scan from aborting from the failure of any single _PRW. Moved the runtime configuration parameters from the global init procedure to static variables in acglobal.h. This will allow the host to override the default values easily. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total Debug Version: 160.8K Code, 66.1K Data, 226.9K Total Current Release: Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 2) iASL Compiler/Disassembler: iASL now fully disassembles SSDTs. However, External() statements are not generated automatically for unresolved symbols at this time. This is a planned feature for future implementation. Fixed a scoping problem in the disassembler that occurs when the type of the target of a Scope() operator is overridden. This problem caused an incorrectly nested internal namespace to be constructed. Any warnings or errors that are emitted during disassembly are now commented out automatically so that the resulting file can be recompiled without any hand editing. ---------------------------------------- 26 March 2004. Summary of changes for version 20040326: 1) ACPI CA Core Subsystem: Implemented support for "wake" GPEs via interaction between GPEs and the _PRW methods. Every GPE that is pointed to by one or more _PRWs is identified as a WAKE GPE and by default will no longer be enabled at runtime. Previously, we were blindly enabling all GPEs with a corresponding _Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We believe this has been the cause of thousands of "spurious" GPEs on some systems. This new GPE behavior is can be reverted to the original behavior (enable ALL GPEs at runtime) via a runtime flag. Fixed a problem where aliased control methods could not access objects properly. The proper scope within the namespace was not initialized (transferred to the target of the aliased method) before executing the target method. Fixed a potential race condition on internal object deletion on the return object in AcpiEvaluateObject. Integrated a fix for resource descriptors where both _MEM and _MTP were being extracted instead of just _MEM. (i.e. bitmask was incorrectly too wide, 0x0F instead of 0x03.) Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a fault in some cases. Updated Notify() values for debug statements in evmisc.c Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total Debug Version: 160.3K Code, 66.0K Data, 226.3K Total Current Release: Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total Debug Version: 160.8K Code, 66.1K Data, 226.9K Total ---------------------------------------- 11 March 2004. Summary of changes for version 20040311: 1) ACPI CA Core Subsystem: Fixed a problem where errors occurring during the parse phase of control method execution did not abort cleanly. For example, objects created and installed in the namespace were not deleted. This caused all subsequent invocations of the method to return the AE_ALREADY_EXISTS exception. Implemented a mechanism to force a control method to "Serialized" execution if the method attempts to create namespace objects. (The root of the AE_ALREADY_EXISTS problem.) Implemented support for the predefined _OSI "internal" control method. Initial supported strings are "Linux", "Windows 2000", "Windows 2001", and "Windows 2001.1", and can be easily upgraded for new strings as necessary. This feature will allow "other" operating systems to execute the fully tested, "Windows" code path through the ASL code Global Lock Support: Now allows multiple acquires and releases with any internal thread. Removed concept of "owning thread" for this special mutex. Fixed two functions that were inappropriately declaring large objects on the CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during method execution considerably. Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs defined on the machine. Implemented two runtime options: One to force all control method execution to "Serialized" to mimic Windows behavior, another to disable _OSI support if it causes problems on a given machine. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total Debug Version: 158.7K Code, 65.1K Data, 223.8K Total Current Release: Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 2) iASL Compiler/Disassembler: Fixed an array size problem for FreeBSD that would cause the compiler to fault. ---------------------------------------- 20 February 2004. Summary of changes for version 20040220: 1) ACPI CA Core Subsystem: Implemented execution of _SxD methods for Device objects in the GetObjectInfo interface. Fixed calls to _SST method to pass the correct arguments. Added a call to _SST on wake to restore to "working" state. Check for End-Of-Buffer failure case in the WalkResources interface. Integrated fix for 64-bit alignment issue in acglobal.h by moving two structures to the beginning of the file. After wake, clear GPE status register(s) before enabling GPEs. After wake, clear/enable power button. (Perhaps we should clear/enable all fixed events upon wake.) Fixed a couple of possible memory leaks in the Namespace manager. Integrated latest acnetbsd.h file. ---------------------------------------- 11 February 2004. Summary of changes for version 20040211: 1) ACPI CA Core Subsystem: Completed investigation and implementation of the call-by-reference mechanism for control method arguments. Fixed a problem where a store of an object into an indexed package could fail if the store occurs within a different method than the method that created the package. Fixed a problem where the ToDecimal operator could return incorrect results. Fixed a problem where the CopyObject operator could fail on some of the more obscure objects (e.g., Reference objects.) Improved the output of the Debug object to display buffer, package, and index objects. Fixed a problem where constructs of the form "RefOf (ArgX)" did not return the expected result. Added permanent ACPI_REPORT_ERROR macros for all instances of the ACPI_AML_INTERNAL exception. Integrated latest version of acfreebsd.h ---------------------------------------- 16 January 2004. Summary of changes for version 20040116: The purpose of this release is primarily to update the copyright years in each module, thus causing a huge number of diffs. There are a few small functional changes, however. 1) ACPI CA Core Subsystem: Improved error messages when there is a problem finding one or more of the required base ACPI tables Reintroduced the definition of APIC_HEADER in actbl.h Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) Removed extraneous reference to NewObj in dsmthdat.c 2) iASL compiler Fixed a problem introduced in December that disabled the correct disassembly of Resource Templates ---------------------------------------- 03 December 2003. Summary of changes for version 20031203: 1) ACPI CA Core Subsystem: Changed the initialization of Operation Regions during subsystem init to perform two entire walks of the ACPI namespace; The first to initialize the regions themselves, the second to execute the _REG methods. This fixed some interdependencies across _REG methods found on some machines. Fixed a problem where a Store(Local0, Local1) could simply update the object reference count, and not create a new copy of the object if the Local1 is uninitialized. Implemented support for the _SST reserved method during sleep transitions. Implemented support to clear the SLP_TYP and SLP_EN bits when waking up, this is apparently required by some machines. When sleeping, clear the wake status only if SleepState is not S5. Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect pointer arithmetic advanced a string pointer too far. Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer could be returned if the requested table has not been loaded. Within the support for IRQ resources, restructured the handling of the active and edge/level bits. Fixed a few problems in AcpiPsxExecute() where memory could be leaked under certain error conditions. Improved error messages for the cases where the ACPI mode could not be entered. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (20031029): Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total Debug Version: 158.3K Code, 65.0K Data, 223.3K Total Current Release: Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 2) iASL Compiler/Disassembler: Implemented a fix for the iASL disassembler where a bad index was generated. This was most noticeable on 64-bit platforms ---------------------------------------- 29 October 2003. Summary of changes for version 20031029: 1) ACPI CA Core Subsystem: Fixed a problem where a level-triggered GPE with an associated _Lxx control method was incorrectly cleared twice. Fixed a problem with the Field support code where an access can occur beyond the end-of-region if the field is non-aligned but extends to the very end of the parent region (resulted in an AE_AML_REGION_LIMIT exception.) Fixed a problem with ACPI Fixed Events where an RT Clock handler would not get invoked on an RTC event. The RTC event bitmasks for the PM1 registers were not being initialized properly. Implemented support for executing _STA and _INI methods for Processor objects. Although this is currently not part of the ACPI specification, there is existing ASL code that depends on the init-time execution of these methods. Implemented and deployed a GetDescriptorName function to decode the various types of internal descriptors. Guards against null descriptors during debug output also. Implemented and deployed a GetNodeName function to extract the 4- character namespace node name. This function simplifies the debug and error output, as well as guarding against null pointers during output. Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to simplify the debug and error output of 64-bit integers. This macro replaces the HIDWORD and LODWORD macros for dumping these integers. Updated the implementation of the Stall() operator to only call AcpiOsStall(), and also return an error if the operand is larger than 255. This preserves the required behavior of not relinquishing the processor, as would happen if AcpiOsSleep() was called for "long stalls". Constructs of the form "Store(LocalX,LocalX)" where LocalX is not initialized are now treated as NOOPs. Cleaned up a handful of warnings during 64-bit generation. Fixed a reported error where and incorrect GPE number was passed to the GPE dispatch handler. This value is only used for error output, however. Used this opportunity to clean up and streamline the GPE dispatch code. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (20031002): Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total Debug Version: 157.9K Code, 64.8K Data, 222.7K Total Current Release: Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 2) iASL Compiler/Disassembler: Updated the iASL compiler to return an error if the operand to the Stall() operator is larger than 255. ---------------------------------------- 02 October 2003. Summary of changes for version 20031002: 1) ACPI CA Core Subsystem: Fixed a problem with Index Fields where the index was not incremented for fields that require multiple writes to the index/data registers (Fields that are wider than the data register.) Fixed a problem with all Field objects where a write could go beyond the end-of-field if the field was larger than the access granularity and therefore required multiple writes to complete the request. An extra write beyond the end of the field could happen inadvertently. Fixed a problem with Index Fields where a BUFFER_OVERFLOW error would incorrectly be returned if the width of the Data Register was larger than the specified field access width. Completed fixes for LoadTable() and Unload() and verified their operation. Implemented full support for the "DdbHandle" object throughout the ACPI CA subsystem. Implemented full support for the MADT and ECDT tables in the ACPI CA header files. Even though these tables are not directly consumed by ACPI CA, the header definitions are useful for ACPI device drivers. Integrated resource descriptor fixes posted to the Linux ACPI list. This included checks for minimum descriptor length, and support for trailing NULL strings within descriptors that have optional string elements. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (20030918): Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total Debug Version: 157.3K Code, 64.5K Data, 221.8K Total Current Release: Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 2) iASL Compiler: Implemented detection of non-ASCII characters within the input source ASL file. This catches attempts to compile binary (AML) files early in the compile, with an informative error message. Fixed a problem where the disassembler would fault if the output filename could not be generated or if the output file could not be opened. ---------------------------------------- 18 September 2003. Summary of changes for version 20030918: 1) ACPI CA Core Subsystem: Found and fixed a longstanding problem with the late execution of the various deferred AML opcodes (such as Operation Regions, Buffer Fields, Buffers, and Packages). If the name string specified for the name of the new object placed the object in a scope other than the current scope, the initialization/execution of the opcode failed. The solution to this problem was to implement a mechanism where the late execution of such opcodes does not attempt to lookup/create the name a second time in an incorrect scope. This fixes the "region size computed incorrectly" problem. Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a Global Lock AE_BAD_PARAMETER error. Fixed several 64-bit issues with prototypes, casting and data types. Removed duplicate prototype from acdisasm.h Fixed an issue involving EC Operation Region Detach (Shaohua Li) Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release: Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total Debug Version: 156.9K Code, 64.2K Data, 221.1K Total Current Release: Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 2) Linux: Fixed the AcpiOsSleep implementation in osunixxf.c to pass the correct sleep time in seconds. ---------------------------------------- 14 July 2003. Summary of changes for version 20030619: 1) ACPI CA Core Subsystem: Parse SSDTs in order discovered, as opposed to reverse order (Hrvoje Habjanic) Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas Klausner, Nate Lawson) 2) Linux: Dynamically allocate SDT list (suggested by Andi Kleen) proc function return value cleanups (Andi Kleen) Correctly handle NMI watchdog during long stalls (Andrew Morton) Make it so acpismp=force works (reported by Andrew Morton) ---------------------------------------- 19 June 2003. Summary of changes for version 20030619: 1) ACPI CA Core Subsystem: Fix To/FromBCD, eliminating the need for an arch-specific #define. Do not acquire a semaphore in the S5 shutdown path. Fix ex_digits_needed for 0. (Takayoshi Kochi) Fix sleep/stall code reversal. (Andi Kleen) Revert a change having to do with control method calling semantics. 2) Linux: acpiphp update (Takayoshi Kochi) Export acpi_disabled for sonypi (Stelian Pop) Mention acpismp=force in config help Re-add acpitable.c and acpismp=force. This improves backwards compatibility and also cleans up the code to a significant degree. Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) ---------------------------------------- 22 May 2003. Summary of changes for version 20030522: 1) ACPI CA Core Subsystem: Found and fixed a reported problem where an AE_NOT_FOUND error occurred occasionally during _BST evaluation. This turned out to be an Owner ID allocation issue where a called method did not get a new ID assigned to it. Eventually, (after 64k calls), the Owner ID UINT16 would wraparound so that the ID would be the same as the caller's and the called method would delete the caller's namespace. Implemented extended error reporting for control methods that are aborted due to a run-time exception. Output includes the exact AML instruction that caused the method abort, a dump of the method locals and arguments at the time of the abort, and a trace of all nested control method calls. Modified the interpreter to allow the creation of buffers of zero length from the AML code. Implemented new code to ensure that no attempt is made to actually allocate a memory buffer (of length zero) - instead, a simple buffer object with a NULL buffer pointer and length zero is created. A warning is no longer issued when the AML attempts to create a zero-length buffer. Implemented a workaround for the "leading asterisk issue" in _HIDs, _UIDs, and _CIDs in the AML interpreter. One leading asterisk is automatically removed if present in any HID, UID, or CID strings. The iASL compiler will still flag this asterisk as an error, however. Implemented full support for _CID methods that return a package of multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface now additionally returns a device _CID list if present. This required a change to the external interface in order to pass an ACPI_BUFFER object as a parameter since the _CID list is of variable length. Fixed a problem with the new AE_SAME_HANDLER exception where handler initialization code did not know about this exception. Code and Data Size: Current and previous core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (20030509): Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total Debug Version: 156.1K Code, 63.9K Data, 220.0K Total Current Release: Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 2) Linux: Fixed a bug in which we would reinitialize the ACPI interrupt after it was already working, thus disabling all ACPI and the IRQs for any other device sharing the interrupt. (Thanks to Stian Jordet) Toshiba driver update (John Belmonte) Return only 0 or 1 for our interrupt handler status (Andrew Morton) 3) iASL Compiler: Fixed a reported problem where multiple (nested) ElseIf() statements were not handled correctly by the compiler, resulting in incorrect warnings and incorrect AML code. This was a problem in both the ASL parser and the code generator. 4) Documentation: Added changes to existing interfaces, new exception codes, and new text concerning reference count object management versus garbage collection. ---------------------------------------- 09 May 2003. Summary of changes for version 20030509. 1) ACPI CA Core Subsystem: Changed the subsystem initialization sequence to hold off installation of address space handlers until the hardware has been initialized and the system has entered ACPI mode. This is because the installation of space handlers can cause _REG methods to be run. Previously, the _REG methods could potentially be run before ACPI mode was enabled. Fixed some memory leak issues related to address space handler and notify handler installation. There were some problems with the reference count mechanism caused by the fact that the handler objects are shared across several namespace objects. Fixed a reported problem where reference counts within the namespace were not properly updated when named objects created by method execution were deleted. Fixed a reported problem where multiple SSDTs caused a deletion issue during subsystem termination. Restructured the table data structures to simplify the linked lists and the related code. Fixed a problem where the table ID associated with secondary tables (SSDTs) was not being propagated into the namespace objects created by those tables. This would only present a problem for tables that are unloaded at run-time, however. Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE type as the length parameter (instead of UINT32). Solved a long-standing problem where an ALREADY_EXISTS error appears on various systems. This problem could happen when there are multiple PCI_Config operation regions under a single PCI root bus. This doesn't happen very frequently, but there are some systems that do this in the ASL. Fixed a reported problem where the internal DeleteNode function was incorrectly handling the case where a namespace node was the first in the parent's child list, and had additional peers (not the only child, but first in the list of children.) Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total Debug Version: 156.1K Code, 63.6K Data, 219.7K Total Current Release: Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 2) Linux: Allow ":" in OS override string (Ducrot Bruno) Kobject fix (Greg KH) 3 iASL Compiler/Disassembler: Fixed a problem in the generation of the C source code files (AML is emitted in C source statements for BIOS inclusion) where the Ascii dump that appears within a C comment at the end of each line could cause a compile time error if the AML sequence happens to have an open comment or close comment sequence embedded. ---------------------------------------- 24 April 2003. Summary of changes for version 20030424. 1) ACPI CA Core Subsystem: Support for big-endian systems has been implemented. Most of the support has been invisibly added behind big-endian versions of the ACPI_MOVE_* macros. Fixed a problem in AcpiHwDisableGpeBlock() and AcpiHwClearGpeBlock() where an incorrect offset was passed to the low level hardware write routine. The offset parameter was actually eliminated from the low level read/write routines because they had become obsolete. Fixed a problem where a handler object was deleted twice during the removal of a fixed event handler. 2) Linux: A fix for SMP systems with link devices was contributed by Compaq's Dan Zink. (2.5) Return whether we handled the interrupt in our IRQ handler. (Linux ISRs no longer return void, so we can propagate the handler return value from the ACPI CA core back to the OS.) 3) Documentation: The ACPI CA Programmer Reference has been updated to reflect new interfaces and changes to existing interfaces. ---------------------------------------- 28 March 2003. Summary of changes for version 20030328. 1) ACPI CA Core Subsystem: The GPE Block Device support has been completed. New interfaces are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event interfaces (enable, disable, clear, getstatus) have been split into separate interfaces for Fixed Events and General Purpose Events (GPEs) in order to support GPE Block Devices properly. Fixed a problem where the error message "Failed to acquire semaphore" would appear during operations on the embedded controller (EC). Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total Debug Version: 154.0K Code, 63.4K Data, 217.4K Total Current Release: Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total Debug Version: 156.1K Code, 63.6K Data, 219.7K Total ---------------------------------------- 28 February 2003. Summary of changes for version 20030228. 1) ACPI CA Core Subsystem: The GPE handling and dispatch code has been completely overhauled in preparation for support of GPE Block Devices (ID ACPI0006). This affects internal data structures and code only; there should be no differences visible externally. One new file has been added, evgpeblk.c The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only fields that are used to determine the GPE block lengths. The REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address structures are ignored. This is per the ACPI specification but it isn't very clear. The full 256 Block 0/1 GPEs are now supported (the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). In the SCI interrupt handler, removed the read of the PM1_CONTROL register to look at the SCI_EN bit. On some machines, this read causes an SMI event and greatly slows down SCI events. (This may in fact be the cause of slow battery status response on some systems.) Fixed a problem where a store of a NULL string to a package object could cause the premature deletion of the object. This was seen during execution of the battery _BIF method on some systems, resulting in no battery data being returned. Added AcpiWalkResources interface to simplify parsing of resource lists. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total Debug Version: 153.0K Code, 62.9K Data, 215.9K Total Current Release: Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 2) Linux S3 fixes (Ole Rohne) Update ACPI PHP driver with to use new acpi_walk_resource API (Bjorn Helgaas) Add S4BIOS support (Pavel Machek) Map in entire table before performing checksum (John Stultz) Expand the mem= cmdline to allow the specification of reserved and ACPI DATA blocks (Pavel Machek) Never use ACPI on VISWS Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) Revert a change that allowed P_BLK lengths to be 4 or 5. This is causing us to think that some systems support C2 when they really don't. Do not count processor objects for non-present CPUs (Thanks to Dominik Brodowski) 3) iASL Compiler: Fixed a problem where ASL include files could not be found and opened. Added support for the _PDC reserved name. ---------------------------------------- 22 January 2003. Summary of changes for version 20030122. 1) ACPI CA Core Subsystem: Added a check for constructs of the form: Store (Local0, Local0) where Local0 is not initialized. Apparently, some BIOS programmers believe that this is a NOOP. Since this store doesn't do anything anyway, the new prototype behavior will ignore this error. This is a case where we can relax the strict checking in the interpreter in the name of compatibility. 2) Linux The AcpiSrc Source Conversion Utility has been released with the Linux package for the first time. This is the utility that is used to convert the ACPI CA base source code to the Linux version. (Both) Handle P_BLK lengths shorter than 6 more gracefully (Both) Move more headers to include/acpi, and delete an unused header. (Both) Move drivers/acpi/include directory to include/acpi (Both) Boot functions don't use cmdline, so don't pass it around (Both) Remove include of unused header (Adrian Bunk) (Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since the former now also includes the latter, acpiphp.h only needs the one, now. (2.5) Make it possible to select method of bios restoring after S3 resume. [=> no more ugly ifdefs] (Pavel Machek) (2.5) Make proc write interfaces work (Pavel Machek) (2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) (2.5) Break out ACPI Perf code into its own module, under cpufreq (Dominik Brodowski) (2.4) S4BIOS support (Ducrot Bruno) (2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio Visinoni) 3) iASL Compiler: Added support to disassemble SSDT and PSDTs. Implemented support to obtain SSDTs from the Windows registry if available. ---------------------------------------- 09 January 2003. Summary of changes for version 20030109. 1) ACPI CA Core Subsystem: Changed the behavior of the internal Buffer-to-String conversion function. The current ACPI specification states that the contents of the buffer are "converted to a string of two-character hexadecimal numbers, each separated by a space". Unfortunately, this definition is not backwards compatible with existing ACPI 1.0 implementations (although the behavior was not defined in the ACPI 1.0 specification). The new behavior simply copies data from the buffer to the string until a null character is found or the end of the buffer is reached. The new String object is always null terminated. This problem was seen during the generation of _BIF battery data where incorrect strings were returned for battery type, etc. This will also require an errata to the ACPI specification. Renamed all instances of NATIVE_UINT and NATIVE_INT to ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. Copyright in all module headers (both Linux and non-Linux) has be updated to 2003. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total Debug Version: 153.0K Code, 62.9K Data, 215.9K Total Current Release: Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 2) Linux Fixed an oops on module insertion/removal (Matthew Tippett) (2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) (2.5) Replace pr_debug (Randy Dunlap) (2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) (Both) Eliminate spawning of thread from timer callback, in favor of schedule_work() (Both) Show Lid status in /proc (Zdenek OGAR Skalak) (Both) Added define for Fixed Function HW region (Matthew Wilcox) (Both) Add missing statics to button.c (Pavel Machek) Several changes have been made to the source code translation utility that generates the Linux Code in order to make the code more "Linux-like": All typedefs on structs and unions have been removed in keeping with the Linux coding style. Removed the non-Linux SourceSafe module revision number from each module header. Completed major overhaul of symbols to be lowercase for linux. Doubled the number of symbols that are lowercase. Fixed a problem where identifiers within procedure headers and within quotes were not fully lower cased (they were left with a starting capital.) Some C macros whose only purpose is to allow the generation of 16- bit code are now completely removed in the Linux code, increasing readability and maintainability. ---------------------------------------- 12 December 2002. Summary of changes for version 20021212. 1) ACPI CA Core Subsystem: Fixed a problem where the creation of a zero-length AML Buffer would cause a fault. Fixed a problem where a Buffer object that pointed to a static AML buffer (in an ACPI table) could inadvertently be deleted, causing memory corruption. Fixed a problem where a user buffer (passed in to the external ACPI CA interfaces) could be overwritten if the buffer was too small to complete the operation, causing memory corruption. Fixed a problem in the Buffer-to-String conversion code where a string of length one was always returned, regardless of the size of the input Buffer object. Removed the NATIVE_CHAR data type across the entire source due to lack of need and lack of consistent use. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total Debug Version: 152.7K Code, 62.7K Data, 215.4K Total Current Release: Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total Debug Version: 153.0K Code, 62.9K Data, 215.9K Total ---------------------------------------- 05 December 2002. Summary of changes for version 20021205. 1) ACPI CA Core Subsystem: Fixed a problem where a store to a String or Buffer object could cause corruption of the DSDT if the object type being stored was the same as the target object type and the length of the object being stored was equal to or smaller than the original (existing) target object. This was seen to cause corruption of battery _BIF buffers if the _BIF method modified the buffer on the fly. Fixed a problem where an internal error was generated if a control method invocation was used in an OperationRegion, Buffer, or Package declaration. This was caused by the deferred parsing of the control method and thus the deferred creation of the internal method object. The solution to this problem was to create the internal method object at the moment the method is encountered in the first pass - so that subsequent references to the method will able to obtain the required parameter count and thus properly parse the method invocation. This problem presented itself as an AE_AML_INTERNAL during the pass 1 parse phase during table load. Fixed a problem where the internal String object copy routine did not always allocate sufficient memory for the target String object and caused memory corruption. This problem was seen to cause "Allocation already present in list!" errors as memory allocation became corrupted. Implemented a new function for the evaluation of namespace objects that allows the specification of the allowable return object types. This simplifies a lot of code that checks for a return object of one or more specific objects returned from the evaluation (such as _STA, etc.) This may become and external function if it would be useful to ACPI-related drivers. Completed another round of prefixing #defines with "ACPI_" for clarity. Completed additional code restructuring to allow more modular linking for iASL compiler and AcpiExec. Several files were split creating new files. New files: nsparse.c dsinit.c evgpe.c Implemented an abort mechanism to terminate an executing control method via the AML debugger. This feature is useful for debugging control methods that depend (wait) for specific hardware responses. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total Debug Version: 152.9K Code, 63.3K Data, 216.2K Total Current Release: Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 2) iASL Compiler/Disassembler Fixed a compiler code generation problem for "Interrupt" Resource Descriptors. If specified in the ASL, the optional "Resource Source Index" and "Resource Source" fields were not inserted into the correct location within the AML resource descriptor, creating an invalid descriptor. Fixed a disassembler problem for "Interrupt" resource descriptors. The optional "Resource Source Index" and "Resource Source" fields were ignored. ---------------------------------------- 22 November 2002. Summary of changes for version 20021122. 1) ACPI CA Core Subsystem: Fixed a reported problem where an object stored to a Method Local or Arg was not copied to a new object during the store - the object pointer was simply copied to the Local/Arg. This caused all subsequent operations on the Local/Arg to also affect the original source of the store operation. Fixed a problem where a store operation to a Method Local or Arg was not completed properly if the Local/Arg contained a reference (from RefOf) to a named field. The general-purpose store-to- namespace-node code is now used so that this case is handled automatically. Fixed a problem where the internal object copy routine would cause a protection fault if the object being copied was a Package and contained either 1) a NULL package element or 2) a nested sub- package. Fixed a problem with the GPE initialization that resulted from an ambiguity in the ACPI specification. One section of the specification states that both the address and length of the GPE block must be zero if the block is not supported. Another section implies that only the address need be zero if the block is not supported. The code has been changed so that both the address and the length must be non-zero to indicate a valid GPE block (i.e., if either the address or the length is zero, the GPE block is invalid.) Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total Debug Version: 152.7K Code, 63.2K Data, 215.5K Total Current Release: Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 2) Linux Cleaned up EC driver. Exported an external EC read/write interface. By going through this, other drivers (most notably sonypi) will be able to serialize access to the EC. 3) iASL Compiler/Disassembler Implemented support to optionally generate include files for both ASM and C (the -i switch). This simplifies BIOS development by automatically creating include files that contain external declarations for the symbols that are created within the (optionally generated) ASM and C AML source files. ---------------------------------------- 15 November 2002. Summary of changes for version 20021115. 1) ACPI CA Core Subsystem: Fixed a memory leak problem where an error during resolution of method arguments during a method invocation from another method failed to cleanup properly by deleting all successfully resolved argument objects. Fixed a problem where the target of the Index() operator was not correctly constructed if the source object was a package. This problem has not been detected because the use of a target operand with Index() is very rare. Fixed a problem with the Index() operator where an attempt was made to delete the operand objects twice. Fixed a problem where an attempt was made to delete an operand twice during execution of the CondRefOf() operator if the target did not exist. Implemented the first of perhaps several internal create object functions that create and initialize a specific object type. This consolidates duplicated code wherever the object is created, thus shrinking the size of the subsystem. Implemented improved debug/error messages for errors that occur during nested method invocations. All executing method pathnames are displayed (with the error) as the call stack is unwound - thus simplifying debug. Fixed a problem introduced in the 10/02 release that caused premature deletion of a buffer object if a buffer was used as an ASL operand where an integer operand is required (Thus causing an implicit object conversion from Buffer to Integer.) The change in the 10/02 release was attempting to fix a memory leak (albeit incorrectly.) Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total Debug Version: 153.1K Code, 63.3K Data, 216.4K Total Current Release: Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 2) Linux Changed the implementation of the ACPI semaphores to use down() instead of down_interruptable(). It is important that the execution of ACPI control methods not be interrupted by signals. Methods must run to completion, or the system may be left in an unknown/unstable state. Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. (Shawn Starr) 3) iASL Compiler/Disassembler Changed the default location of output files. All output files are now placed in the current directory by default instead of in the directory of the source file. This change may affect some existing makefiles, but it brings the behavior of the compiler in line with other similar tools. The location of the output files can be overridden with the -p command line switch. ---------------------------------------- 11 November 2002. Summary of changes for version 20021111. 0) ACPI Specification 2.0B is released and is now available at: http://www.acpi.info/index.html 1) ACPI CA Core Subsystem: Implemented support for the ACPI 2.0 SMBus Operation Regions. This includes the early detection and handoff of the request to the SMBus region handler (avoiding all of the complex field support code), and support for the bidirectional return packet from an SMBus write operation. This paves the way for the development of SMBus drivers in each host operating system. Fixed a problem where the semaphore WAIT_FOREVER constant was defined as 32 bits, but must be 16 bits according to the ACPI specification. This had the side effect of causing ASL Mutex/Event timeouts even though the ASL code requested a wait forever. Changed all internal references to the ACPI timeout parameter to 16 bits to prevent future problems. Changed the name of WAIT_FOREVER to ACPI_WAIT_FOREVER. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total Debug Version: 152.3K Code, 63.0K Data, 215.3K Total Current Release: Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 2) Linux Module loading/unloading fixes (John Cagle) 3) iASL Compiler/Disassembler Added support for the SMBBlockProcessCall keyword (ACPI 2.0) Implemented support for the disassembly of all SMBus protocol keywords (SMBQuick, SMBWord, etc.) ---------------------------------------- 01 November 2002. Summary of changes for version 20021101. 1) ACPI CA Core Subsystem: Fixed a problem where platforms that have a GPE1 block but no GPE0 block were not handled correctly. This resulted in a "GPE overlap" error message. GPE0 is no longer required. Removed code added in the previous release that inserted nodes into the namespace in alphabetical order. This caused some side- effects on various machines. The root cause of the problem is still under investigation since in theory, the internal ordering of the namespace nodes should not matter. Enhanced error reporting for the case where a named object is not found during control method execution. The full ACPI namepath (name reference) of the object that was not found is displayed in this case. Note: as a result of the overhaul of the namespace object types in the previous release, the namespace nodes for the predefined scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE instead of ACPI_TYPE_ANY. This simplifies the namespace management code but may affect code that walks the namespace tree looking for specific object types. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total Debug Version: 151.7K Code, 62.4K Data, 214.1K Total Current Release: Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 2) Linux Fixed a problem introduced in the previous release where the Processor and Thermal objects were not recognized and installed in /proc. This was related to the scope type change described above. 3) iASL Compiler/Disassembler Implemented the -g option to get all of the required ACPI tables from the registry and save them to files (Windows version of the compiler only.) The required tables are the FADT, FACS, and DSDT. Added ACPI table checksum validation during table disassembly in order to catch corrupted tables. ---------------------------------------- 22 October 2002. Summary of changes for version 20021022. 1) ACPI CA Core Subsystem: Implemented a restriction on the Scope operator that the target must already exist in the namespace at the time the operator is encountered (during table load or method execution). In other words, forward references are not allowed and Scope() cannot create a new object. This changes the previous behavior where the interpreter would create the name if not found. This new behavior correctly enables the search-to-root algorithm during namespace lookup of the target name. Because of this upsearch, this fixes the known Compaq _SB_.OKEC problem and makes both the AML interpreter and iASL compiler compatible with other ACPI implementations. Completed a major overhaul of the internal ACPI object types for the ACPI Namespace and the associated operand objects. Many of these types had become obsolete with the introduction of the two- pass namespace load. This cleanup simplifies the code and makes the entire namespace load mechanism much clearer and easier to understand. Improved debug output for tracking scope opening/closing to help diagnose scoping issues. The old scope name as well as the new scope name are displayed. Also improved error messages for problems with ASL Mutex objects and error messages for GPE problems. Cleaned up the namespace dump code, removed obsolete code. All string output (for all namespace/object dumps) now uses the common ACPI string output procedure which handles escapes properly and does not emit non-printable characters. Fixed some issues with constants in the 64-bit version of the local C library (utclib.c) 2) Linux EC Driver: No longer attempts to acquire the Global Lock at interrupt level. 3) iASL Compiler/Disassembler Implemented ACPI 2.0B grammar change that disallows all Type 1 and 2 opcodes outside of a control method. This means that the "executable" operators (versus the "namespace" operators) cannot be used at the table level; they can only be used within a control method. Implemented the restriction on the Scope() operator where the target must already exist in the namespace at the time the operator is encountered (during ASL compilation). In other words, forward references are not allowed and Scope() cannot create a new object. This makes the iASL compiler compatible with other ACPI implementations and makes the Scope() implementation adhere to the ACPI specification. Fixed a problem where namepath optimization for the Alias operator was optimizing the wrong path (of the two namepaths.) This caused a "Missing alias link" error message. Fixed a problem where an "unknown reserved name" warning could be incorrectly generated for names like "_SB" when the trailing underscore is not used in the original ASL. Fixed a problem where the reserved name check did not handle NamePaths with multiple NameSegs correctly. The first nameseg of the NamePath was examined instead of the last NameSeg. ---------------------------------------- 02 October 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem version 20021002: Fixed a problem where a store/copy of a string to an existing string did not always set the string length properly in the String object. Fixed a reported problem with the ToString operator where the behavior was identical to the ToHexString operator instead of just simply converting a raw buffer to a string data type. Fixed a problem where CopyObject and the other "explicit" conversion operators were not updating the internal namespace node type as part of the store operation. Fixed a memory leak during implicit source operand conversion where the original object was not deleted if it was converted to a new object of a different type. Enhanced error messages for all problems associated with namespace lookups. Common procedure generates and prints the lookup name as well as the formatted status. Completed implementation of a new design for the Alias support within the namespace. The existing design did not handle the case where a new object was assigned to one of the two names due to the use of an explicit conversion operator, resulting in the two names pointing to two different objects. The new design simply points the Alias name to the original name node - not to the object. This results in a level of indirection that must be handled in the name resolution mechanism. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total Debug Version: 150.0K Code, 61.7K Data, 211.7K Total Current Release: Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 2) Linux Initialize thermal driver's timer before it is used. (Knut Neumann) Allow handling negative celsius values. (Kochi Takayoshi) Fix thermal management and make trip points. R/W (Pavel Machek) Fix /proc/acpi/sleep. (P. Christeas) IA64 fixes. (David Mosberger) Fix reversed logic in blacklist code. (Sergio Monteiro Basto) Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik Brodowski) 3) iASL Compiler/Disassembler Clarified some warning/error messages. ---------------------------------------- 18 September 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem version 20020918: Fixed a reported problem with reference chaining (via the Index() and RefOf() operators) in the ObjectType() and SizeOf() operators. The definition of these operators includes the dereferencing of all chained references to return information on the base object. Fixed a problem with stores to indexed package elements - the existing code would not complete the store if an "implicit conversion" was not performed. In other words, if the existing object (package element) was to be replaced completely, the code didn't handle this case. Relaxed typechecking on the ASL "Scope" operator to allow the target name to refer to an object of type Integer, String, or Buffer, in addition to the scoping object types (Device, predefined Scopes, Processor, PowerResource, and ThermalZone.) This allows existing AML code that has workarounds for a bug in Windows to function properly. A warning is issued, however. This affects both the AML interpreter and the iASL compiler. Below is an example of this type of ASL code: Name(DEB,0x00) Scope(DEB) { Fixed some reported problems with 64-bit integer support in the local implementation of C library functions (clib.c) 2) Linux Use ACPI fix map region instead of IOAPIC region, since it is undefined in non-SMP. Ensure that the SCI has the proper polarity and trigger, even on systems that do not have an interrupt override entry in the MADT. 2.5 big driver reorganization (Pat Mochel) Use early table mapping code from acpitable.c (Andi Kleen) New blacklist entries (Andi Kleen) Blacklist improvements. Split blacklist code out into a separate file. Move checking the blacklist to very early. Previously, we would use ACPI tables, and then halfway through init, check the blacklist -- too late. Now, it's early enough to completely fall- back to non-ACPI. 3) iASL Compiler/Disassembler version 20020918: Fixed a problem where the typechecking code didn't know that an alias could point to a method. In other words, aliases were not being dereferenced during typechecking. ---------------------------------------- 29 August 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem Version 20020829: If the target of a Scope() operator already exists, it must be an object type that actually opens a scope -- such as a Device, Method, Scope, etc. This is a fatal runtime error. Similar error check has been added to the iASL compiler also. Tightened up the namespace load to disallow multiple names in the same scope. This previously was allowed if both objects were of the same type. (i.e., a lookup was the same as entering a new name). 2) Linux Ensure that the ACPI interrupt has the proper trigger and polarity. local_irq_disable is extraneous. (Matthew Wilcox) Make "acpi=off" actually do what it says, and not use the ACPI interpreter *or* the tables. Added arch-neutral support for parsing SLIT and SRAT tables (Kochi Takayoshi) 3) iASL Compiler/Disassembler Version 20020829: Implemented namepath optimization for name declarations. For example, a declaration like "Method (\_SB_.ABCD)" would get optimized to "Method (ABCD)" if the declaration is within the \_SB_ scope. This optimization is in addition to the named reference path optimization first released in the previous version. This would seem to complete all possible optimizations for namepaths within the ASL/AML. If the target of a Scope() operator already exists, it must be an object type that actually opens a scope -- such as a Device, Method, Scope, etc. Implemented a check and warning for unreachable code in the same block below a Return() statement. Fixed a problem where the listing file was not generated if the compiler aborted if the maximum error count was exceeded (200). Fixed a problem where the typechecking of method return values was broken. This includes the check for a return value when the method is invoked as a TermArg (a return value is expected.) Fixed a reported problem where EOF conditions during a quoted string or comment caused a fault. ---------------------------------------- 15 August 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem Version 20020815: Fixed a reported problem where a Store to a method argument that contains a reference did not perform the indirect store correctly. This problem was created during the conversion to the new reference object model - the indirect store to a method argument code was not updated to reflect the new model. Reworked the ACPI mode change code to better conform to ACPI 2.0, handle corner cases, and improve code legibility (Kochi Takayoshi) Fixed a problem with the pathname parsing for the carat (^) prefix. The heavy use of the carat operator by the new namepath optimization in the iASL compiler uncovered a problem with the AML interpreter handling of this prefix. In the case where one or more carats precede a single nameseg, the nameseg was treated as standalone and the search rule (to root) was inadvertently applied. This could cause both the iASL compiler and the interpreter to find the wrong object or to miss the error that should occur if the object does not exist at that exact pathname. Found and fixed the problem where the HP Pavilion DSDT would not load. This was a relatively minor tweak to the table loading code (a problem caused by the unexpected encounter with a method invocation not within a control method), but it does not solve the overall issue of the execution of AML code at the table level. This investigation is still ongoing. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total Debug Version: 149.4K Code, 61.6K Data, 211.0K Total Current Release: Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 2) Linux Remove redundant slab.h include (Brad Hards) Fix several bugs in thermal.c (Herbert Nachtnebel) Make CONFIG_ACPI_BOOT work properly (Pavel Machek) Change acpi_system_suspend to use updated irq functions (Pavel Machek) Export acpi_get_firmware_table (Matthew Wilcox) Use proper root proc entry for ACPI (Kochi Takayoshi) Fix early-boot table parsing (Bjorn Helgaas) 3) iASL Compiler/Disassembler Reworked the compiler options to make them more consistent and to use two-letter options where appropriate. We were running out of sensible letters. This may break some makefiles, so check the current options list by invoking the compiler with no parameters. Completed the design and implementation of the ASL namepath optimization option for the compiler. This option optimizes all references to named objects to the shortest possible path. The first attempt tries to utilize a single nameseg (4 characters) and the "search-to-root" algorithm used by the interpreter. If that cannot be used (because either the name is not in the search path or there is a conflict with another object with the same name), the pathname is optimized using the carat prefix (usually a shorter string than specifying the entire path from the root.) Implemented support to obtain the DSDT from the Windows registry (when the disassembly option is specified with no input file). Added this code as the implementation for AcpiOsTableOverride in the Windows OSL. Migrated the 16-bit code (used in the AcpiDump utility) to scan memory for the DSDT to the AcpiOsTableOverride function in the DOS OSL to make the disassembler truly OS independent. Implemented a new option to disassemble and compile in one step. When used without an input filename, this option will grab the DSDT from the local machine, disassemble it, and compile it in one step. Added a warning message for invalid escapes (a backslash followed by any character other than the allowable escapes). This catches the quoted string error "\_SB_" (which should be "\\_SB_" ). Also, there are numerous instances in the ACPI specification where this error occurs. Added a compiler option to disable all optimizations. This is basically the "compatibility mode" because by using this option, the AML code will come out exactly the same as other ASL compilers. Added error messages for incorrectly ordered dependent resource functions. This includes: missing EndDependentFn macro at end of dependent resource list, nested dependent function macros (both start and end), and missing StartDependentFn macro. These are common errors that should be caught at compile time. Implemented _OSI support for the disassembler and compiler. _OSI must be included in the namespace for proper disassembly (because the disassembler must know the number of arguments.) Added an "optimization" message type that is optional (off by default). This message is used for all optimizations - including constant folding, integer optimization, and namepath optimization. ---------------------------------------- 25 July 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem Version 20020725: The AML Disassembler has been enhanced to produce compilable ASL code and has been integrated into the iASL compiler (see below) as well as the single-step disassembly for the AML debugger and the disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, resource templates and macros are fully supported. The disassembler has been tested on over 30 different AML files, producing identical AML when the resulting disassembled ASL file is recompiled with the same ASL compiler. Modified the Resource Manager to allow zero interrupts and zero dma channels during the GetCurrentResources call. This was causing problems on some platforms. Added the AcpiOsRedirectOutput interface to the OSL to simplify output redirection for the AcpiOsPrintf and AcpiOsVprintf interfaces. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total Debug Version: 142.9K Code, 58.7K Data, 201.6K Total Current Release: Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 2) Linux Fixed a panic in the EC driver (Dominik Brodowski) Implemented checksum of the R/XSDT itself during Linux table scan (Richard Schaal) 3) iASL compiler The AML disassembler is integrated into the compiler. The "-d" option invokes the disassembler to completely disassemble an input AML file, producing as output a text ASL file with the extension ".dsl" (to avoid name collisions with existing .asl source files.) A future enhancement will allow the disassembler to obtain the BIOS DSDT from the registry under Windows. Fixed a problem with the VendorShort and VendorLong resource descriptors where an invalid AML sequence was created. Implemented a fix for BufferData term in the ASL parser. It was inadvertently defined twice, allowing invalid syntax to pass and causing reduction conflicts. Fixed a problem where the Ones opcode could get converted to a value of zero if "Ones" was used where a byte, word or dword value was expected. The 64-bit value is now truncated to the correct size with the correct value. ---------------------------------------- 02 July 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem Version 20020702: The Table Manager code has been restructured to add several new features. Tables that are not required by the core subsystem (other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer validated in any way and are returned from AcpiGetFirmwareTable if requested. The AcpiOsTableOverride interface is now called for each table that is loaded by the subsystem in order to allow the host to override any table it chooses. Previously, only the DSDT could be overridden. Added one new files, tbrsdt.c and tbgetall.c. Fixed a problem with the conversion of internal package objects to external objects (when a package is returned from a control method.) The return buffer length was set to zero instead of the proper length of the package object. Fixed a reported problem with the use of the RefOf and DeRefOf operators when passing reference arguments to control methods. A new type of Reference object is used internally for references produced by the RefOf operator. Added additional error messages in the Resource Manager to explain AE_BAD_DATA errors when they occur during resource parsing. Split the AcpiEnableSubsystem into two primitives to enable a finer granularity initialization sequence. These two calls should be called in this order: AcpiEnableSubsystem (flags), AcpiInitializeObjects (flags). The flags parameter remains the same. 2) Linux Updated the ACPI utilities module to understand the new style of fully resolved package objects that are now returned from the core subsystem. This eliminates errors of the form: ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] acpi_utils-0430 [145] acpi_evaluate_reference: Invalid element in package (not a device reference) The method evaluation utility uses the new buffer allocation scheme instead of calling AcpiEvaluate Object twice. Added support for ECDT. This allows the use of the Embedded Controller before the namespace has been fully initialized, which is necessary for ACPI 2.0 support, and for some laptops to initialize properly. (Laptops using ECDT are still rare, so only limited testing was performed of the added functionality.) Fixed memory leaks in the EC driver. Eliminated a brittle code structure in acpi_bus_init(). Eliminated the acpi_evaluate() helper function in utils.c. It is no longer needed since acpi_evaluate_object can optionally allocate memory for the return object. Implemented fix for keyboard hang when getting battery readings on some systems (Stephen White) PCI IRQ routing update (Dominik Brodowski) Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC support ---------------------------------------- 11 June 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem Version 20020611: Fixed a reported problem where constants such as Zero and One appearing within _PRT packages were not handled correctly within the resource manager code. Originally reported against the ASL compiler because the code generator now optimizes integers to their minimal AML representation (i.e. AML constants if possible.) The _PRT code now handles all AML constant opcodes correctly (Zero, One, Ones, Revision). Fixed a problem with the Concatenate operator in the AML interpreter where a buffer result object was incorrectly marked as not fully evaluated, causing a run-time error of AE_AML_INTERNAL. All package sub-objects are now fully resolved before they are returned from the external ACPI interfaces. This means that name strings are resolved to object handles, and constant operators (Zero, One, Ones, Revision) are resolved to Integers. Implemented immediate resolution of the AML Constant opcodes (Zero, One, Ones, Revision) to Integer objects upon detection within the AML stream. This has simplified and reduced the generated code size of the subsystem by eliminating about 10 switch statements for these constants (which previously were contained in Reference objects.) The complicating issues are that the Zero opcode is used as a "placeholder" for unspecified optional target operands and stores to constants are defined to be no-ops. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total Debug Version: 143.8K Code, 58.8K Data, 202.6K Total Current Release: Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 2) Linux Added preliminary support for obtaining _TRA data for PCI root bridges (Bjorn Helgaas). 3) iASL Compiler Version X2046: Fixed a problem where the "_DDN" reserved name was defined to be a control method with one argument. There are no arguments, and _DDN does not have to be a control method. Fixed a problem with the Linux version of the compiler where the source lines printed with error messages were the wrong lines. This turned out to be the "LF versus CR/LF" difference between Windows and Unix. This appears to be the longstanding issue concerning listing output and error messages. Fixed a problem with the Linux version of compiler where opcode names within error messages were wrong. This was caused by a slight difference in the output of the Flex tool on Linux versus Windows. Fixed a problem with the Linux compiler where the hex output files contained some garbage data caused by an internal buffer overrun. ---------------------------------------- 17 May 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem Version 20020517: Implemented a workaround to an BIOS bug discovered on the HP OmniBook where the FADT revision number and the table size are inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new behavior is to fallback to using only the ACPI 1.0 fields of the FADT if the table is too small to be a ACPI 2.0 table as claimed by the revision number. Although this is a BIOS bug, this is a case where the workaround is simple enough and with no side effects, so it seemed prudent to add it. A warning message is issued, however. Implemented minimum size checks for the fixed-length ACPI tables - - the FADT and FACS, as well as consistency checks between the revision number and the table size. Fixed a reported problem in the table override support where the new table pointer was incorrectly treated as a physical address instead of a logical address. Eliminated the use of the AE_AML_ERROR exception and replaced it with more descriptive codes. Fixed a problem where an exception would occur if an ASL Field was defined with no named Field Units underneath it (used by some index fields). Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total Debug Version: 142.9K Code, 58.4K Data, 201.3K Total Current Release: Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 2) Linux Much work done on ACPI init (MADT and PCI IRQ routing support). (Paul D. and Dominik Brodowski) Fix PCI IRQ-related panic on boot (Sam Revitch) Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) Fix "MHz" typo (Dominik Brodowski) Fix RTC year 2000 issue (Dominik Brodowski) Preclude multiple button proc entries (Eric Brunet) Moved arch-specific code out of include/platform/aclinux.h 3) iASL Compiler Version X2044: Implemented error checking for the string used in the EISAID macro (Usually used in the definition of the _HID object.) The code now strictly enforces the PnP format - exactly 7 characters, 3 uppercase letters and 4 hex digits. If a raw string is used in the definition of the _HID object (instead of the EISAID macro), the string must contain all alphanumeric characters (e.g., "*PNP0011" is not allowed because of the asterisk.) Implemented checking for invalid use of ACPI reserved names for most of the name creation operators (Name, Device, Event, Mutex, OperationRegion, PowerResource, Processor, and ThermalZone.) Previously, this check was only performed for control methods. Implemented an additional check on the Name operator to emit an error if a reserved name that must be implemented in ASL as a control method is used. We know that a reserved name must be a method if it is defined with input arguments. The warning emitted when a namespace object reference is not found during the cross reference phase has been changed into an error. The "External" directive should be used for names defined in other modules. 4) Tools and Utilities The 16-bit tools (adump16 and aexec16) have been regenerated and tested. Fixed a problem with the output of both acpidump and adump16 where the indentation of closing parentheses and brackets was not aligned properly with the parent block. ---------------------------------------- 03 May 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem Version 20020503: Added support a new OSL interface that allows the host operating system software to override the DSDT found in the firmware - AcpiOsTableOverride. With this interface, the OSL can examine the version of the firmware DSDT and replace it with a different one if desired. Added new external interfaces for accessing ACPI registers from device drivers and other system software - AcpiGetRegister and AcpiSetRegister. This was simply an externalization of the existing AcpiHwBitRegister interfaces. Fixed a regression introduced in the previous build where the ASL/AML CreateField operator always returned an error, "destination must be a NS Node". Extended the maximum time (before failure) to successfully enable ACPI mode to 3 seconds. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total Debug Version: 142.4K Code, 58.3K Data, 200.7K Total Current Release: Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 2) Linux Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- free. While 3 out of 4 of our in-house systems work fine, the last one still hangs when testing the LAPIC timer. Renamed many files in 2.5 kernel release to omit "acpi_" from the name. Added warning on boot for Presario 711FR. Sleep improvements (Pavel Machek) ACPI can now be built without CONFIG_PCI enabled. IA64: Fixed memory map functions (JI Lee) 3) iASL Compiler Version X2043: Added support to allow the compiler to be integrated into the MS VC++ development environment for one-button compilation of single files or entire projects -- with error-to-source-line mapping. Implemented support for compile-time constant folding for the Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 specification. This allows the ASL writer to use expressions instead of Integer/Buffer/String constants in terms that must evaluate to constants at compile time and will also simplify the emitted AML in any such sub-expressions that can be folded (evaluated at compile-time.) This increases the size of the compiler significantly because a portion of the ACPI CA AML interpreter is included within the compiler in order to pre- evaluate constant expressions. Fixed a problem with the "Unicode" ASL macro that caused the compiler to fault. (This macro is used in conjunction with the _STR reserved name.) Implemented an AML opcode optimization to use the Zero, One, and Ones opcodes where possible to further reduce the size of integer constants and thus reduce the overall size of the generated AML code. Implemented error checking for new reserved terms for ACPI version 2.0A. Implemented the -qr option to display the current list of ACPI reserved names known to the compiler. Implemented the -qc option to display the current list of ASL operators that are allowed within constant expressions and can therefore be folded at compile time if the operands are constants. 4) Documentation Updated the Programmer's Reference for new interfaces, data types, and memory allocation model options. Updated the iASL Compiler User Reference to apply new format and add information about new features and options. ---------------------------------------- 19 April 2002. Summary of changes for this release. 1) ACPI CA Core Subsystem Version 20020419: The source code base for the Core Subsystem has been completely cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit versions. The Lint option files used are included in the /acpi/generate/lint directory. Implemented enhanced status/error checking across the entire Hardware manager subsystem. Any hardware errors (reported from the OSL) are now bubbled up and will abort a running control method. Fixed a problem where the per-ACPI-table integer width (32 or 64) was stored only with control method nodes, causing a fault when non-control method code was executed during table loading. The solution implemented uses a global variable to indicate table width across the entire ACPI subsystem. Therefore, ACPI CA does not support mixed integer widths across different ACPI tables (DSDT, SSDT). Fixed a problem where NULL extended fields (X fields) in an ACPI 2.0 ACPI FADT caused the table load to fail. Although the existing ACPI specification is a bit fuzzy on this topic, the new behavior is to fall back on a ACPI 1.0 field if the corresponding ACPI 2.0 X field is zero (even though the table revision indicates a full ACPI 2.0 table.) The ACPI specification will be updated to clarify this issue. Fixed a problem with the SystemMemory operation region handler where memory was always accessed byte-wise even if the AML- specified access width was larger than a byte. This caused problems on systems with memory-mapped I/O. Memory is now accessed with the width specified. On systems that do not support non-aligned transfers, a check is made to guarantee proper address alignment before proceeding in order to avoid an AML-caused alignment fault within the kernel. Fixed a problem with the ExtendedIrq resource where only one byte of the 4-byte Irq field was extracted. Fixed the AcpiExDigitsNeeded() procedure to support _UID. This function was out of date and required a rewrite. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total Debug Version: 139.8K Code, 57.4K Data, 197.2K Total Current Release: Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 2) Linux PCI IRQ routing fixes (Dominik Brodowski) 3) iASL Compiler Version X2042: Implemented an additional compile-time error check for a field unit whose size + minimum access width would cause a run-time access beyond the end-of-region. Previously, only the field size itself was checked. The Core subsystem and iASL compiler now share a common parse object in preparation for compile-time evaluation of the type 3/4/5 ASL operators. ---------------------------------------- Summary of changes for this release: 03_29_02 1) ACPI CA Core Subsystem Version 20020329: Implemented support for late evaluation of TermArg operands to Buffer and Package objects. This allows complex expressions to be used in the declarations of these object types. Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 1.0, if the field was larger than 32 bits, it was returned as a buffer - otherwise it was returned as an integer. In ACPI 2.0, the field is returned as a buffer only if the field is larger than 64 bits. The TableRevision is now considered when making this conversion to avoid incompatibility with existing ASL code. Implemented logical addressing for AcpiOsGetRootPointer. This allows an RSDP with either a logical or physical address. With this support, the host OS can now override all ACPI tables with one logical RSDP. Includes implementation of "typed" pointer support to allow a common data type for both physical and logical pointers internally. This required a change to the AcpiOsGetRootPointer interface. Implemented the use of ACPI 2.0 Generic Address Structures for all GPE, Fixed Event, and PM Timer I/O. This allows the use of memory mapped I/O for these ACPI features. Initialization now ignores not only non-required tables (All tables other than the FADT, FACS, DSDT, and SSDTs), but also does not validate the table headers of unrecognized tables. Fixed a problem where a notify handler could only be installed/removed on an object of type Device. All "notify" objects are now supported -- Devices, Processor, Power, and Thermal. Removed most verbosity from the ACPI_DB_INFO debug level. Only critical information is returned when this debug level is enabled. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total Debug Version: 138.0K Code, 56.6K Data, 194.6K Total Current Release: Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 2) Linux: The processor driver (acpi_processor.c) now fully supports ACPI 2.0-based processor performance control (e.g. Intel(R) SpeedStep(TM) technology) Note that older laptops that only have the Intel "applet" interface are not supported through this. The 'limit' and 'performance' interface (/proc) are fully functional. [Note that basic policy for controlling performance state transitions will be included in the next version of ospmd.] The idle handler was modified to more aggressively use C2, and PIIX4 errata handling underwent a complete overhaul (big thanks to Dominik Brodowski). Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- based devices in the ACPI namespace are now dynamically bound (associated) with their PCI counterparts (e.g. PCI1->01:00.0). This allows, among other things, ACPI to resolve bus numbers for subordinate PCI bridges. Enhanced PCI IRQ routing to get the proper bus number for _PRT entries defined underneath PCI bridges. Added IBM 600E to bad bios list due to invalid _ADR value for PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. In the process of adding full MADT support (e.g. IOAPIC) for IA32 (acpi.c, mpparse.c) -- stay tuned. Added back visual differentiation between fixed-feature and control-method buttons in dmesg. Buttons are also subtyped (e.g. button/power/PWRF) to simplify button identification. We no longer use -Wno-unused when compiling debug. Please ignore any "_THIS_MODULE defined but not used" messages. Can now shut down the system using "magic sysrq" key. 3) iASL Compiler version 2041: Fixed a problem where conversion errors for hex/octal/decimal constants were not reported. Implemented a fix for the General Register template Address field. This field was 8 bits when it should be 64. Fixed a problem where errors/warnings were no longer being emitted within the listing output file. Implemented the ACPI 2.0A restriction on ACPI Table Signatures to exactly 4 characters, alphanumeric only. ---------------------------------------- Summary of changes for this release: 03_08_02 1) ACPI CA Core Subsystem Version 20020308: Fixed a problem with AML Fields where the use of the "AccessAny" keyword could cause an interpreter error due to attempting to read or write beyond the end of the parent Operation Region. Fixed a problem in the SystemMemory Operation Region handler where an attempt was made to map memory beyond the end of the region. This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" errors on some Linux systems. Fixed a problem where the interpreter/namespace "search to root" algorithm was not functioning for some object types. Relaxed the internal restriction on the search to allow upsearches for all external object types as well as most internal types. 2) Linux: We now use safe_halt() macro versus individual calls to sti | hlt. Writing to the processor limit interface should now work. "echo 1" will increase the limit, 2 will decrease, and 0 will reset to the default. 3) ASL compiler: Fixed segfault on Linux version. ---------------------------------------- Summary of changes for this release: 02_25_02 1) ACPI CA Core Subsystem: Fixed a problem where the GPE bit masks were not initialized properly, causing erratic GPE behavior. Implemented limited support for multiple calling conventions. The code can be generated with either the VPL (variable parameter list, or "C") convention, or the FPL (fixed parameter list, or "Pascal") convention. The core subsystem is about 3.4% smaller when generated with FPL. 2) Linux Re-add some /proc/acpi/event functionality that was lost during the rewrite Resolved issue with /proc events for fixed-feature buttons showing up as the system device. Fixed checks on C2/C3 latencies to be inclusive of maximum values. Replaced AE_ERRORs in acpi_osl.c with more specific error codes. Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" Fixed limit interface & usage to fix bugs with passive cooling hysterisis. Restructured PRT support. ---------------------------------------- Summary of changes for this label: 02_14_02 1) ACPI CA Core Subsystem: Implemented support in AcpiLoadTable to allow loading of FACS and FADT tables. Support for the now-obsolete interim 0.71 64-bit ACPI tables has been removed. All 64-bit platforms should be migrated to the ACPI 2.0 tables. The actbl71.h header has been removed from the source tree. All C macros defined within the subsystem have been prefixed with "ACPI_" to avoid collision with other system include files. Removed the return value for the two AcpiOsPrint interfaces, since it is never used and causes lint warnings for ignoring the return value. Added error checking to all internal mutex acquire and release calls. Although a failure from one of these interfaces is probably a fatal system error, these checks will cause the immediate abort of the currently executing method or interface. Fixed a problem where the AcpiSetCurrentResources interface could fault. This was a side effect of the deployment of the new memory allocation model. Fixed a couple of problems with the Global Lock support introduced in the last major build. The "common" (1.0/2.0) internal FACS was being overwritten with the FACS signature and clobbering the Global Lock pointer. Also, the actual firmware FACS was being unmapped after construction of the "common" FACS, preventing access to the actual Global Lock field within it. The "common" internal FACS is no longer installed as an actual ACPI table; it is used simply as a global. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (02_07_01) Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total Debug Version: 136.9K Code, 56.4K Data, 193.3K Total Current Release: Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 2) Linux Updated Linux-specific code for core macro and OSL interface changes described above. Improved /proc/acpi/event. It now can be opened only once and has proper poll functionality. Fixed and restructured power management (acpi_bus). Only create /proc "view by type" when devices of that class exist. Fixed "charging/discharging" bug (and others) in acpi_battery. Improved thermal zone code. 3) ASL Compiler, version X2039: Implemented the new compiler restriction on ASL String hex/octal escapes to non-null, ASCII values. An error results if an invalid value is used. (This will require an ACPI 2.0 specification change.) AML object labels that are output to the optional C and ASM source are now prefixed with both the ACPI table signature and table ID to help guarantee uniqueness within a large BIOS project. ---------------------------------------- Summary of changes for this label: 02_01_02 1) ACPI CA Core Subsystem: ACPI 2.0 support is complete in the entire Core Subsystem and the ASL compiler. All new ACPI 2.0 operators are implemented and all other changes for ACPI 2.0 support are complete. With simultaneous code and data optimizations throughout the subsystem, ACPI 2.0 support has been implemented with almost no additional cost in terms of code and data size. Implemented a new mechanism for allocation of return buffers. If the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will be allocated on behalf of the caller. Consolidated all return buffer validation and allocation to a common procedure. Return buffers will be allocated via the primary OSL allocation interface since it appears that a separate pool is not needed by most users. If a separate pool is required for these buffers, the caller can still use the original mechanism and pre-allocate the buffer(s). Implemented support for string operands within the DerefOf operator. Restructured the Hardware and Event managers to be table driven, simplifying the source code and reducing the amount of generated code. Split the common read/write low-level ACPI register bitfield procedure into a separate read and write, simplifying the code considerably. Obsoleted the AcpiOsCallocate OSL interface. This interface was used only a handful of times and didn't have enough critical mass for a separate interface. Replaced with a common calloc procedure in the core. Fixed a reported problem with the GPE number mapping mechanism that allows GPE1 numbers to be non-contiguous with GPE0. Reorganized the GPE information and shrunk a large array that was originally large enough to hold info for all possible GPEs (256) to simply large enough to hold all GPEs up to the largest GPE number on the machine. Fixed a reported problem with resource structure alignment on 64- bit platforms. Changed the AcpiEnableEvent and AcpiDisableEvent external interfaces to not require any flags for the common case of enabling/disabling a GPE. Implemented support to allow a "Notify" on a Processor object. Most TBDs in comments within the source code have been resolved and eliminated. Fixed a problem in the interpreter where a standalone parent prefix (^) was not handled correctly in the interpreter and debugger. Removed obsolete and unnecessary GPE save/restore code. Implemented Field support in the ASL Load operator. This allows a table to be loaded from a named field, in addition to loading a table directly from an Operation Region. Implemented timeout and handle support in the external Global Lock interfaces. Fixed a problem in the AcpiDump utility where pathnames were no longer being generated correctly during the dump of named objects. Modified the AML debugger to give a full display of if/while predicates instead of just one AML opcode at a time. (The predicate can have several nested ASL statements.) The old method was confusing during single stepping. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (12_18_01) Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total Debug Version: 138.3K Code, 55.9K Data, 194.2K Total Current Release: Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 2) Linux Implemented fix for PIIX reverse throttling errata (Processor driver) Added new Limit interface (Processor and Thermal drivers) New thermal policy (Thermal driver) Many updates to /proc Battery "low" event support (Battery driver) Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) IA32 - IA64 initialization unification, no longer experimental Menuconfig options redesigned 3) ASL Compiler, version X2037: Implemented several new output features to simplify integration of AML code into firmware: 1) Output the AML in C source code with labels for each named ASL object. The original ASL source code is interleaved as C comments. 2) Output the AML in ASM source code with labels and interleaved ASL source. 3) Output the AML in raw hex table form, in either C or ASM. Implemented support for optional string parameters to the LoadTable operator. Completed support for embedded escape sequences within string literals. The compiler now supports all single character escapes as well as the Octal and Hex escapes. Note: the insertion of a null byte into a string literal (via the hex/octal escape) causes the string to be immediately terminated. A warning is issued. Fixed a problem where incorrect AML was generated for the case where an ASL namepath consists of a single parent prefix ( ) with no trailing name segments. The compiler has been successfully generated with a 64-bit C compiler. ---------------------------------------- Summary of changes for this label: 12_18_01 1) Linux Enhanced blacklist with reason and severity fields. Any table's signature may now be used to identify a blacklisted system. Call _PIC control method to inform the firmware which interrupt model the OS is using. Turn on any disabled link devices. Cleaned up busmgr /proc error handling (Andreas Dilger) 2) ACPI CA Core Subsystem: Implemented ACPI 2.0 semantics for the "Break" operator (Exit from while loop) Completed implementation of the ACPI 2.0 "Continue", "ConcatenateResTemplate", "DataTableRegion", and "LoadTable" operators. All new ACPI 2.0 operators are now implemented in both the ASL compiler and the AML interpreter. The only remaining ACPI 2.0 task is support for the String data type in the DerefOf operator. Fixed a problem with AcquireMutex where the status code was lost if the caller had to actually wait for the mutex. Increased the maximum ASL Field size from 64K bits to 4G bits. Completed implementation of the external Global Lock interfaces -- AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and Handler parameters were added. Completed another pass at removing warnings and issues when compiling with 64-bit compilers. The code now compiles cleanly with the Intel 64-bit C/C++ compiler. Most notably, the pointer add and subtract (diff) macros have changed considerably. Created and deployed a new ACPI_SIZE type that is 64-bits wide on 64-bit platforms, 32-bits on all others. This type is used wherever memory allocation and/or the C sizeof() operator is used, and affects the OSL memory allocation interfaces AcpiOsAllocate and AcpiOsCallocate. Implemented sticky user breakpoints in the AML debugger. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (12_05_01) Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total Debug Version: 136.2K Code, 55.6K Data, 191.8K Total Current Release: Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 3) ASL Compiler, version X2034: Now checks for (and generates an error if detected) the use of a Break or Continue statement without an enclosing While statement. Successfully generated the compiler with the Intel 64-bit C compiler. ---------------------------------------- Summary of changes for this label: 12_05_01 1) ACPI CA Core Subsystem: The ACPI 2.0 CopyObject operator is fully implemented. This operator creates a new copy of an object (and is also used to bypass the "implicit conversion" mechanism of the Store operator.) The ACPI 2.0 semantics for the SizeOf operator are fully implemented. The change is that performing a SizeOf on a reference object causes an automatic dereference of the object to the actual value before the size is evaluated. This behavior was undefined in ACPI 1.0. The ACPI 2.0 semantics for the Extended IRQ resource descriptor have been implemented. The interrupt polarity and mode are now independently set. Fixed a problem where ASL Constants (Zero, One, Ones, Revision) appearing in Package objects were not properly converted to integers when the internal Package was converted to an external object (via the AcpiEvaluateObject interface.) Fixed a problem with the namespace object deletion mechanism for objects created by control methods. There were two parts to this problem: 1) Objects created during the initialization phase method parse were not being deleted, and 2) The object owner ID mechanism to track objects was broken. Fixed a problem where the use of the ASL Scope operator within a control method would result in an invalid opcode exception. Fixed a problem introduced in the previous label where the buffer length required for the _PRT structure was not being returned correctly. Code and Data Size: Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (11_20_01) Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total Debug Version: 135.1K Code, 55.4K Data, 190.5K Total Current Release: Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 2) Linux: Updated all files to apply cleanly against 2.4.16. Added basic PCI Interrupt Routing Table (PRT) support for IA32 (acpi_pci.c), and unified the PRT code for IA32 and IA64. This version supports both static and dynamic PRT entries, but dynamic entries are treated as if they were static (not yet reconfigurable). Architecture- specific code to use this data is absent on IA32 but should be available shortly. Changed the initialization sequence to start the ACPI interpreter (acpi_init) prior to initialization of the PCI driver (pci_init) in init/main.c. This ordering is required to support PRT and facilitate other (future) enhancement. A side effect is that the ACPI bus driver and certain device drivers can no longer be loaded as modules. Modified the 'make menuconfig' options to allow PCI Interrupt Routing support to be included without the ACPI Bus and other device drivers. 3) ASL Compiler, version X2033: Fixed some issues with the use of the new CopyObject and DataTableRegion operators. Both are fully functional. ---------------------------------------- Summary of changes for this label: 11_20_01 20 November 2001. Summary of changes for this release. 1) ACPI CA Core Subsystem: Updated Index support to match ACPI 2.0 semantics. Storing a Integer, String, or Buffer to an Index of a Buffer will store only the least-significant byte of the source to the Indexed buffer byte. Multiple writes are not performed. Fixed a problem where the access type used in an AccessAs ASL operator was not recorded correctly into the field object. Fixed a problem where ASL Event objects were created in a signalled state. Events are now created in an unsignalled state. The internal object cache is now purged after table loading and initialization to reduce the use of dynamic kernel memory -- on the assumption that object use is greatest during the parse phase of the entire table (versus the run-time use of individual control methods.) ACPI 2.0 variable-length packages are now fully operational. Code and Data Size: Code and Data optimizations have permitted new feature development with an actual reduction in the library size. Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (11_09_01): Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total Debug Version: 134.5K Code, 55.4K Data, 189.9K Total Current Release: Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 2) Linux: Enhanced the ACPI boot-time initialization code to allow the use of Local APIC tables for processor enumeration on IA-32, and to pave the way for a fully MPS-free boot (on SMP systems) in the near future. This functionality replaces arch/i386/kernel/acpitables.c, which was introduced in an earlier 2.4.15-preX release. To enable this feature you must add "acpi_boot=on" to the kernel command line -- see the help entry for CONFIG_ACPI_BOOT for more information. An IA-64 release is in the works... Restructured the configuration options to allow boot-time table parsing support without inclusion of the ACPI Interpreter (and other) code. NOTE: This release does not include fixes for the reported events, power-down, and thermal passive cooling issues (coming soon). 3) ASL Compiler: Added additional typechecking for Fields within restricted access Operation Regions. All fields within EC and CMOS regions must be declared with ByteAcc. All fields within SMBus regions must be declared with the BufferAcc access type. Fixed a problem where the listing file output of control methods no longer interleaved the actual AML code with the ASL source code. ---------------------------------------- Summary of changes for this label: 11_09_01 1) ACPI CA Core Subsystem: Implemented ACPI 2.0-defined support for writes to fields with a Buffer, String, or Integer source operand that is smaller than the target field. In these cases, the source operand is zero-extended to fill the target field. Fixed a problem where a Field starting bit offset (within the parent operation region) was calculated incorrectly if the alignment of the field differed from the access width. This affected CreateWordField, CreateDwordField, CreateQwordField, and possibly other fields that use the "AccessAny" keyword. Fixed a problem introduced in the 11_02_01 release where indirect stores through method arguments did not operate correctly. 2) Linux: Implemented boot-time ACPI table parsing support (CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than legacy BIOS interfaces (e.g. MPS) for the configuration of system processors, memory, and interrupts during setup_arch(). Note that this patch does not include the required architecture-specific changes required to apply this information -- subsequent patches will be posted for both IA32 and IA64 to achieve this. Added low-level sleep support for IA32 platforms, courtesy of Pat Mochel. This allows IA32 systems to transition to/from various sleeping states (e.g. S1, S3), although the lack of a centralized driver model and power-manageable drivers will prevent its (successful) use on most systems. Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" submenu, unified IA32 and IA64 options, added new "Boot using ACPI tables" option, etc. Increased the default timeout for the EC driver from 1ms to 10ms (1000 cycles of 10us) to try to address AE_TIME errors during EC transactions. ---------------------------------------- Summary of changes for this label: 11_02_01 1) ACPI CA Core Subsystem: ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access (QWordAcc keyword). All ACPI 2.0 64-bit support is now implemented. OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required changes to support ACPI 2.0 Qword field access. Read/Write PciConfiguration(), Read/Write Memory(), and Read/Write Port() now accept an ACPI_INTEGER (64 bits) as the value parameter. Also, the value parameter for the address space handler interface is now an ACPI_INTEGER. OSL implementations of these interfaces must now handle the case where the Width parameter is 64. Index Fields: Fixed a problem where unaligned bit assembly and disassembly for IndexFields was not supported correctly. Index and Bank Fields: Nested Index and Bank Fields are now supported. During field access, a check is performed to ensure that the value written to an Index or Bank register is not out of the range of the register. The Index (or Bank) register is written before each access to the field data. Future support will include allowing individual IndexFields to be wider than the DataRegister width. Fields: Fixed a problem where the AML interpreter was incorrectly attempting to write beyond the end of a Field/OpRegion. This was a boundary case that occurred when a DWORD field was written to a BYTE access OpRegion, forcing multiple writes and causing the interpreter to write one datum too many. Fields: Fixed a problem with Field/OpRegion access where the starting bit address of a field was incorrectly calculated if the current access type was wider than a byte (WordAcc, DwordAcc, or QwordAcc). Fields: Fixed a problem where forward references to individual FieldUnits (individual Field names within a Field definition) were not resolved during the AML table load. Fields: Fixed a problem where forward references from a Field definition to the parent Operation Region definition were not resolved during the AML table load. Fields: Duplicate FieldUnit names within a scope are now detected during AML table load. Acpi Interfaces: Fixed a problem where the AcpiGetName() interface returned an incorrect name for the root node. Code and Data Size: Code and Data optimizations have permitted new feature development with an actual reduction in the library size. Current core subsystem library sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the debug output trace mechanism and has a larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Release (10_18_01): Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total Debug Version: 136.7K Code, 57.4K Data, 194.2K Total Current Release: Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 2) Linux: Improved /proc processor output (Pavel Machek) Re-added MODULE_LICENSE("GPL") to all modules. 3) ASL Compiler version X2030: Duplicate FieldUnit names within a scope are now detected and flagged as errors. 4) Documentation: Programmer Reference updated to reflect OSL and address space handler interface changes described above. ---------------------------------------- Summary of changes for this label: 10_18_01 ACPI CA Core Subsystem: Fixed a problem with the internal object reference count mechanism that occasionally caused premature object deletion. This resolves all of the outstanding problem reports where an object is deleted in the middle of an interpreter evaluation. Although this problem only showed up in rather obscure cases, the solution to the problem involved an adjustment of all reference counts involving objects attached to namespace nodes. Fixed a problem with Field support in the interpreter where writing to an aligned field whose length is an exact multiple (2 or greater) of the field access granularity would cause an attempt to write beyond the end of the field. The top level AML opcode execution functions within the interpreter have been renamed with a more meaningful and consistent naming convention. The modules exmonad.c and exdyadic.c were eliminated. New modules are exoparg1.c, exoparg2.c, exoparg3.c, and exoparg6.c. Support for the ACPI 2.0 "Mid" ASL operator has been implemented. Fixed a problem where the AML debugger was causing some internal objects to not be deleted during subsystem termination. Fixed a problem with the external AcpiEvaluateObject interface where the subsystem would fault if the named object to be evaluated referred to a constant such as Zero, Ones, etc. Fixed a problem with IndexFields and BankFields where the subsystem would fault if the index, data, or bank registers were not defined in the same scope as the field itself. Added printf format string checking for compilers that support this feature. Corrected more than 50 instances of issues with format specifiers within invocations of ACPI_DEBUG_PRINT throughout the core subsystem code. The ASL "Revision" operator now returns the ACPI support level implemented in the core - the value "2" since the ACPI 2.0 support is more than 50% implemented. Enhanced the output of the AML debugger "dump namespace" command to output in a more human-readable form. Current core subsystem library code sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the full debug trace mechanism -- leading to a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Previous Label (09_20_01): Non-Debug Version: 65K Code, 5K Data, 70K Total Debug Version: 138K Code, 58K Data, 196K Total This Label: Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total Debug Version: 136.7K Code, 57.4K Data, 194.2K Total Linux: Implemented a "Bad BIOS Blacklist" to track machines that have known ASL/AML problems. Enhanced the /proc interface for the thermal zone driver and added support for _HOT (the critical suspend trip point). The 'info' file now includes threshold/policy information, and allows setting of _SCP (cooling preference) and _TZP (polling frequency) values to the 'info' file. Examples: "echo tzp=5 > info" sets the polling frequency to 5 seconds, and "echo scp=1 > info" sets the cooling preference to the passive/quiet mode (if supported by the ASL). Implemented a workaround for a gcc bug that resuted in an OOPs when loading the control method battery driver. ---------------------------------------- Summary of changes for this label: 09_20_01 ACPI CA Core Subsystem: The AcpiEnableEvent and AcpiDisableEvent interfaces have been modified to allow individual GPE levels to be flagged as wake- enabled (i.e., these GPEs are to remain enabled when the platform sleeps.) The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now support wake-enabled GPEs. This means that upon entering the sleep state, all GPEs that are not wake-enabled are disabled. When leaving the sleep state, these GPEs are re-enabled. A local double-precision divide/modulo module has been added to enhance portability to OS kernels where a 64-bit math library is not available. The new module is "utmath.c". Several optimizations have been made to reduce the use of CPU stack. Originally over 2K, the maximum stack usage is now below 2K at 1860 bytes (1.82k) Fixed a problem with the AcpiGetFirmwareTable interface where the root table pointer was not mapped into a logical address properly. Fixed a problem where a NULL pointer was being dereferenced in the interpreter code for the ASL Notify operator. Fixed a problem where the use of the ASL Revision operator returned an error. This operator now returns the current version of the ACPI CA core subsystem. Fixed a problem where objects passed as control method parameters to AcpiEvaluateObject were always deleted at method termination. However, these objects may end up being stored into the namespace by the called method. The object reference count mechanism was applied to these objects instead of a force delete. Fixed a problem where static strings or buffers (contained in the AML code) that are declared as package elements within the ASL code could cause a fault because the interpreter would attempt to delete them. These objects are now marked with the "static object" flag to prevent any attempt to delete them. Implemented an interpreter optimization to use operands directly from the state object instead of extracting the operands to local variables. This reduces stack use and code size, and improves performance. The module exxface.c was eliminated as it was an unnecessary extra layer of code. Current core subsystem library code sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the full debug trace mechanism -- leading to a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Non-Debug Version: 65K Code, 5K Data, 70K Total (Previously 69K) Debug Version: 138K Code, 58K Data, 196K Total (Previously 195K) Linux: Support for ACPI 2.0 64-bit integers has been added. All ACPI Integer objects are now 64 bits wide All Acpi data types and structures are now in lower case. Only Acpi macros are upper case for differentiation. Documentation: Changes to the external interfaces as described above. ---------------------------------------- Summary of changes for this label: 08_31_01 ACPI CA Core Subsystem: A bug with interpreter implementation of the ASL Divide operator was found and fixed. The implicit function return value (not the explicit store operands) was returning the remainder instead of the quotient. This was a longstanding bug and it fixes several known outstanding issues on various platforms. The ACPI_DEBUG_PRINT and function trace entry/exit macros have been further optimized for size. There are 700 invocations of the DEBUG_PRINT macro alone, so each optimization reduces the size of the debug version of the subsystem significantly. A stack trace mechanism has been implemented. The maximum stack usage is about 2K on 32-bit platforms. The debugger command "stat stack" will display the current maximum stack usage. All public symbols and global variables within the subsystem are now prefixed with the string "Acpi". This keeps all of the symbols grouped together in a kernel map, and avoids conflicts with other kernel subsystems. Most of the internal fixed lookup tables have been moved into the code segment via the const operator. Several enhancements have been made to the interpreter to both reduce the code size and improve performance. Current core subsystem library code sizes are shown below. These are the code and data sizes for the acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and these values do not include any ACPI driver or OSPM code. The debug version of the code includes the full debug trace mechanism which contains over 700 invocations of the DEBUG_PRINT macro, 500 function entry macro invocations, and over 900 function exit macro invocations -- leading to a much larger code and data size. Note that these values will vary depending on the efficiency of the compiler and the compiler options used during generation. Non-Debug Version: 64K Code, 5K Data, 69K Total Debug Version: 137K Code, 58K Data, 195K Total Linux: Implemented wbinvd() macro, pending a kernel-wide definition. Fixed /proc/acpi/event to handle poll() and short reads. ASL Compiler, version X2026: Fixed a problem introduced in the previous label where the AML code emitted for package objects produced packages with zero length. ---------------------------------------- Summary of changes for this label: 08_16_01 ACPI CA Core Subsystem: The following ACPI 2.0 ASL operators have been implemented in the AML interpreter (These are already supported by the Intel ASL compiler): ToDecimalString, ToHexString, ToString, ToInteger, and ToBuffer. Support for 64-bit AML constants is implemented in the AML parser, debugger, and disassembler. The internal memory tracking mechanism (leak detection code) has been upgraded to reduce the memory overhead (a separate tracking block is no longer allocated for each memory allocation), and now supports all of the internal object caches. The data structures and code for the internal object caches have been coelesced and optimized so that there is a single cache and memory list data structure and a single group of functions that implement generic cache management. This has reduced the code size in both the debug and release versions of the subsystem. The DEBUG_PRINT macro(s) have been optimized for size and replaced by ACPI_DEBUG_PRINT. The syntax for this macro is slightly different, because it generates a single call to an internal function. This results in a savings of about 90 bytes per invocation, resulting in an overall code and data savings of about 16% in the debug version of the subsystem. Linux: Fixed C3 disk corruption problems and re-enabled C3 on supporting machines. Integrated low-level sleep code by Patrick Mochel. Further tweaked source code Linuxization. Other minor fixes. ASL Compiler: Support for ACPI 2.0 variable length packages is fixed/completed. Fixed a problem where the optional length parameter for the ACPI 2.0 ToString operator. Fixed multiple extraneous error messages when a syntax error is detected within the declaration line of a control method. ---------------------------------------- Summary of changes for this label: 07_17_01 ACPI CA Core Subsystem: Added a new interface named AcpiGetFirmwareTable to obtain any ACPI table via the ACPI signature. The interface can be called at any time during kernel initialization, even before the kernel virtual memory manager is initialized and paging is enabled. This allows kernel subsystems to obtain ACPI tables very early, even before the ACPI CA subsystem is initialized. Fixed a problem where Fields defined with the AnyAcc attribute could be resolved to the incorrect address under the following conditions: 1) the field width is larger than 8 bits and 2) the parent operation region is not defined on a DWORD boundary. Fixed a problem where the interpreter is not being locked during namespace initialization (during execution of the _INI control methods), causing an error when an attempt is made to release it later. ACPI 2.0 support in the AML Interpreter has begun and will be ongoing throughout the rest of this year. In this label, The Mod operator is implemented. Added a new data type to contain full PCI addresses named ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, and Function values. Linux: Enhanced the Linux version of the source code to change most capitalized ACPI type names to lowercase. For example, all instances of ACPI_STATUS are changed to acpi_status. This will result in a large diff, but the change is strictly cosmetic and aligns the CA code closer to the Linux coding standard. OSL Interfaces: The interfaces to the PCI configuration space have been changed to add the PCI Segment number and to split the single 32-bit combined DeviceFunction field into two 16-bit fields. This was accomplished by moving the four values that define an address in PCI configuration space (segment, bus, device, and function) to the new ACPI_PCI_ID structure. The changes to the PCI configuration space interfaces led to a reexamination of the complete set of address space access interfaces for PCI, I/O, and Memory. The previously existing 18 interfaces have proven difficult to maintain (any small change must be propagated across at least 6 interfaces) and do not easily allow for future expansion to 64 bits if necessary. Also, on some systems, it would not be appropriate to demultiplex the access width (8, 16, 32,or 64) before calling the OSL if the corresponding native OS interfaces contain a similar access width parameter. For these reasons, the 18 address space interfaces have been replaced by these 6 new ones: AcpiOsReadPciConfiguration AcpiOsWritePciConfiguration AcpiOsReadMemory AcpiOsWriteMemory AcpiOsReadPort AcpiOsWritePort Added a new interface named AcpiOsGetRootPointer to allow the OSL to perform the platform and/or OS-specific actions necessary to obtain the ACPI RSDP table pointer. On IA-32 platforms, this interface will simply call down to the CA core to perform the low- memory search for the table. On IA-64, the RSDP is obtained from EFI. Migrating this interface to the OSL allows the CA core to remain OS and platform independent. Added a new interface named AcpiOsSignal to provide a generic "function code and pointer" interface for various miscellaneous signals and notifications that must be made to the host OS. The first such signals are intended to support the ASL Fatal and Breakpoint operators. In the latter case, the AcpiOsBreakpoint interface has been obsoleted. The definition of the AcpiFormatException interface has been changed to simplify its use. The caller no longer must supply a buffer to the call; A pointer to a const string is now returned directly. This allows the call to be easily used in printf statements, etc. since the caller does not have to manage a local buffer. ASL Compiler, Version X2025: The ACPI 2.0 Switch/Case/Default operators have been implemented and are fully functional. They will work with all ACPI 1.0 interpreters, since the operators are simply translated to If/Else pairs. The ACPI 2.0 ElseIf operator is implemented and will also work with 1.0 interpreters, for the same reason. Implemented support for ACPI 2.0 variable-length packages. These packages have a separate opcode, and their size is determined by the interpreter at run-time. Documentation The ACPI CA Programmer Reference has been updated to reflect the new interfaces and changes to existing interfaces. ------------------------------------------ Summary of changes for this label: 06_15_01 ACPI CA Core Subsystem: Fixed a problem where a DWORD-accessed field within a Buffer object would get its byte address inadvertently rounded down to the nearest DWORD. Buffers are always Byte-accessible. ASL Compiler, version X2024: Fixed a problem where the Switch() operator would either fault or hang the compiler. Note however, that the AML code for this ACPI 2.0 operator is not yet implemented. Compiler uses the new AcpiOsGetTimer interface to obtain compile timings. Implementation of the CreateField operator automatically converts a reference to a named field within a resource descriptor from a byte offset to a bit offset if required. Added some missing named fields from the resource descriptor support. These are the names that are automatically created by the compiler to reference fields within a descriptor. They are only valid at compile time and are not passed through to the AML interpreter. Resource descriptor named fields are now typed as Integers and subject to compile-time typechecking when used in expressions. ------------------------------------------ Summary of changes for this label: 05_18_01 ACPI CA Core Subsystem: Fixed a couple of problems in the Field support code where bits from adjacent fields could be returned along with the proper field bits. Restructured the field support code to improve performance, readability and maintainability. New DEBUG_PRINTP macro automatically inserts the procedure name into the output, saving hundreds of copies of procedure name strings within the source, shrinking the memory footprint of the debug version of the core subsystem. Source Code Structure: The source code directory tree was restructured to reflect the current organization of the component architecture. Some files and directories have been moved and/or renamed. Linux: Fixed leaking kacpidpc processes. Fixed queueing event data even when /proc/acpi/event is not opened. ASL Compiler, version X2020: Memory allocation performance enhancement - over 24X compile time improvement on large ASL files. Parse nodes and namestring buffers are now allocated from a large internal compiler buffer. The temporary .SRC file is deleted unless the "-s" option is specified The "-d" debug output option now sends all output to the .DBG file instead of the console. "External" second parameter is now optional "ElseIf" syntax now properly allows the predicate Last operand to "Load" now recognized as a Target operand Debug object can now be used anywhere as a normal object. ResourceTemplate now returns an object of type BUFFER EISAID now returns an object of type INTEGER "Index" now works with a STRING operand "LoadTable" now accepts optional parameters "ToString" length parameter is now optional "Interrupt (ResourceType," parse error fixed. "Register" with a user-defined region space parse error fixed Escaped backslash at the end of a string ("\\") scan/parse error fixed "Revision" is now an object of type INTEGER. ------------------------------------------ Summary of changes for this label: 05_02_01 Linux: /proc/acpi/event now blocks properly. Removed /proc/sys/acpi. You can still dump your DSDT from /proc/acpi/dsdt. ACPI CA Core Subsystem: Fixed a problem introduced in the previous label where some of the "small" resource descriptor types were not recognized. Improved error messages for the case where an ASL Field is outside the range of the parent operation region. ASL Compiler, version X2018: Added error detection for ASL Fields that extend beyond the length of the parent operation region (only if the length of the region is known at compile time.) This includes fields that have a minimum access width that is smaller than the parent region, and individual field units that are partially or entirely beyond the extent of the parent. ------------------------------------------ Summary of changes for this label: 04_27_01 ACPI CA Core Subsystem: Fixed a problem where the namespace mutex could be released at the wrong time during execution of AcpiRemoveAddressSpaceHandler. Added optional thread ID output for debug traces, to simplify debugging of multiple threads. Added context switch notification when the debug code realizes that a different thread is now executing ACPI code. Some additional external data types have been prefixed with the string "ACPI_" for consistency. This may effect existing code. The data types affected are the external callback typedefs - e.g., WALK_CALLBACK becomes ACPI_WALK_CALLBACK. Linux: Fixed an issue with the OSL semaphore implementation where a thread was waking up with an error from receiving a SIGCHLD signal. Linux version of ACPI CA now uses the system C library for string manipulation routines instead of a local implementation. Cleaned up comments and removed TBDs. ASL Compiler, version X2017: Enhanced error detection and reporting for all file I/O operations. Documentation: Programmer Reference updated to version 1.06. ------------------------------------------ Summary of changes for this label: 04_13_01 ACPI CA Core Subsystem: Restructured support for BufferFields and RegionFields. BankFields support is now fully operational. All known 32-bit limitations on field sizes have been removed. Both BufferFields and (Operation) RegionFields are now supported by the same field management code. Resource support now supports QWORD address and IO resources. The 16/32/64 bit address structures and the Extended IRQ structure have been changed to properly handle Source Resource strings. A ThreadId of -1 is now used to indicate a "mutex not acquired" condition internally and must never be returned by AcpiOsThreadId. This reserved value was changed from 0 since Unix systems allow a thread ID of 0. Linux: Driver code reorganized to enhance portability Added a kernel configuration option to control ACPI_DEBUG Fixed the EC driver to honor _GLK. ASL Compiler, version X2016: Fixed support for the "FixedHw" keyword. Previously, the FixedHw address space was set to 0, not 0x7f as it should be. ------------------------------------------ Summary of changes for this label: 03_13_01 ACPI CA Core Subsystem: During ACPI initialization, the _SB_._INI method is now run if present. Notify handler fix - notifies are deferred until the parent method completes execution. This fixes the "mutex already acquired" issue seen occasionally. Part of the "implicit conversion" rules in ACPI 2.0 have been found to cause compatibility problems with existing ASL/AML. The convert "result-to-target-type" implementation has been removed for stores to method Args and Locals. Source operand conversion is still fully implemented. Possible changes to ACPI 2.0 specification pending. Fix to AcpiRsCalculatePciRoutingTableLength to return correct length. Fix for compiler warnings for 64-bit compiles. Linux: /proc output aligned for easier parsing. Release-version compile problem fixed. New kernel configuration options documented in Configure.help. IBM 600E - Fixed Sleep button may generate "Invalid context" message. OSPM: Power resource driver integrated with bus manager. Fixed kernel fault during active cooling for thermal zones. Source Code: The source code tree has been restructured. ------------------------------------------ Summary of changes for this label: 03_02_01 Linux OS Services Layer (OSL): Major revision of all Linux-specific code. Modularized all ACPI-specific drivers. Added new thermal zone and power resource drivers. Revamped /proc interface (new functionality is under /proc/acpi). New kernel configuration options. Linux known issues: New kernel configuration options not documented in Configure.help yet. Module dependencies not currently implemented. If used, they should be loaded in this order: busmgr, power, ec, system, processor, battery, ac_adapter, button, thermal. Modules will not load if CONFIG_MODVERSION is set. IBM 600E - entering S5 may reboot instead of shutting down. IBM 600E - Sleep button may generate "Invalid context" message. Some systems may fail with "execution mutex already acquired" message. ACPI CA Core Subsystem: Added a new OSL Interface, AcpiOsGetThreadId. This was required for the deadlock detection code. Defined to return a non-zero, 32- bit thread ID for the currently executing thread. May be a non- zero constant integer on single-thread systems. Implemented deadlock detection for internal subsystem mutexes. We may add conditional compilation for this code (debug only) later. ASL/AML Mutex object semantics are now fully supported. This includes multiple acquires/releases by owner and support for the Mutex SyncLevel parameter. A new "Force Release" mechanism automatically frees all ASL Mutexes that have been acquired but not released when a thread exits the interpreter. This forces conformance to the ACPI spec ("All mutexes must be released when an invocation exits") and prevents deadlocked ASL threads. This mechanism can be expanded (later) to monitor other resource acquisitions if OEM ASL code continues to misbehave (which it will). Several new ACPI exception codes have been added for the Mutex support. Recursive method calls are now allowed and supported (the ACPI spec does in fact allow recursive method calls.) The number of recursive calls is subject to the restrictions imposed by the SERIALIZED method keyword and SyncLevel (ACPI 2.0) method parameter. Implemented support for the SyncLevel parameter for control methods (ACPI 2.0 feature) Fixed a deadlock problem when multiple threads attempted to use the interpreter. Fixed a problem where the string length of a String package element was not always set in a package returned from AcpiEvaluateObject. Fixed a problem where the length of a String package element was not always included in the length of the overall package returned from AcpiEvaluateObject. Added external interfaces (Acpi*) to the ACPI debug memory manager. This manager keeps a list of all outstanding allocations, and can therefore detect memory leaks and attempts to free memory blocks more than once. Useful for code such as the power manager, etc. May not be appropriate for device drivers. Performance with the debug code enabled is slow. The ACPI Global Lock is now an optional hardware element. ASL Compiler Version X2015: Integrated changes to allow the compiler to be generated on multiple platforms. Linux makefile added to generate the compiler on Linux Source Code: All platform-specific headers have been moved to their own subdirectory, Include/Platform. New source file added, Interpreter/ammutex.c New header file, Include/acstruct.h Documentation: The programmer reference has been updated for the following new interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree ------------------------------------------ Summary of changes for this label: 02_08_01 Core ACPI CA Subsystem: Fixed a problem where an error was incorrectly returned if the return resource buffer was larger than the actual data (in the resource interfaces). References to named objects within packages are resolved to the full pathname string before packages are returned directly (via the AcpiEvaluateObject interface) or indirectly via the resource interfaces. Linux OS Services Layer (OSL): Improved /proc battery interface. Added C-state debugging output and other miscellaneous fixes. ASL Compiler Version X2014: All defined method arguments can now be used as local variables, including the ones that are not actually passed in as parameters. The compiler tracks initialization of the arguments and issues an exception if they are used without prior assignment (just like locals). The -o option now specifies a filename prefix that is used for all output files, including the AML output file. Otherwise, the default behavior is as follows: 1) the AML goes to the file specified in the DSDT. 2) all other output files use the input source filename as the base. ------------------------------------------ Summary of changes for this label: 01_25_01 Core ACPI CA Subsystem: Restructured the implementation of object store support within the interpreter. This includes support for the Store operator as well as any ASL operators that include a target operand. Partially implemented support for Implicit Result-to-Target conversion. This is when a result object is converted on the fly to the type of an existing target object. Completion of this support is pending further analysis of the ACPI specification concerning this matter. CPU-specific code has been removed from the subsystem (hardware directory). New Power Management Timer functions added Linux OS Services Layer (OSL): Moved system state transition code to the core, fixed it, and modified Linux OSL accordingly. Fixed C2 and C3 latency calculations. We no longer use the compilation date for the version message on initialization, but retrieve the version from AcpiGetSystemInfo(). Incorporated for fix Sony VAIO machines. Documentation: The Programmer Reference has been updated and reformatted. ASL Compiler: Version X2013: Fixed a problem where the line numbering and error reporting could get out of sync in the presence of multiple include files. ------------------------------------------ Summary of changes for this label: 01_15_01 Core ACPI CA Subsystem: Implemented support for type conversions in the execution of the ASL Concatenate operator (The second operand is converted to match the type of the first operand before concatenation.) Support for implicit source operand conversion is partially implemented. The ASL source operand types Integer, Buffer, and String are freely interchangeable for most ASL operators and are converted by the interpreter on the fly as required. Implicit Target operand conversion (where the result is converted to the target type before storing) is not yet implemented. Support for 32-bit and 64-bit BCD integers is implemented. Problem fixed where a field read on an aligned field could cause a read past the end of the field. New exception, AE_AML_NO_RETURN_VALUE, is returned when a method does not return a value, but the caller expects one. (The ASL compiler flags this as a warning.) ASL Compiler: Version X2011: 1. Static typechecking of all operands is implemented. This prevents the use of invalid objects (such as using a Package where an Integer is required) at compile time instead of at interpreter run-time. 2. The ASL source line is printed with ALL errors and warnings. 3. Bug fix for source EOF without final linefeed. 4. Debug option is split into a parse trace and a namespace trace. 5. Namespace output option (-n) includes initial values for integers and strings. 6. Parse-only option added for quick syntax checking. 7. Compiler checks for duplicate ACPI name declarations Version X2012: 1. Relaxed typechecking to allow interchangeability between strings, integers, and buffers. These types are now converted by the interpreter at runtime. 2. Compiler reports time taken by each internal subsystem in the debug output file. ------------------------------------------ Summary of changes for this label: 12_14_00 ASL Compiler: This is the first official release of the compiler. Since the compiler requires elements of the Core Subsystem, this label synchronizes everything. ------------------------------------------ Summary of changes for this label: 12_08_00 Fixed a problem where named references within the ASL definition of both OperationRegions and CreateXXXFields did not work properly. The symptom was an AE_AML_OPERAND_TYPE during initialization of the region/field. This is similar (but not related internally) to the problem that was fixed in the last label. Implemented both 32-bit and 64-bit support for the BCD ASL functions ToBCD and FromBCD. Updated all legal headers to include "2000" in the copyright years. ------------------------------------------ Summary of changes for this label: 12_01_00 Fixed a problem where method invocations within the ASL definition of both OperationRegions and CreateXXXFields did not work properly. The symptom was an AE_AML_OPERAND_TYPE during initialization of the region/field: nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments [DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) (0x3005) Fixed a problem where operators with more than one nested subexpression would fail. The symptoms were varied, by mostly AE_AML_OPERAND_TYPE errors. This was actually a rather serious problem that has gone unnoticed until now. Subtract (Add (1,2), Multiply (3,4)) Fixed a problem where AcpiGetHandle didn't quite get fixed in the previous build (The prefix part of a relative path was handled incorrectly). Fixed a problem where Operation Region initialization failed if the operation region name was a "namepath" instead of a simple "nameseg". Symptom was an AE_NO_OPERAND error. Fixed a problem where an assignment to a local variable via the indirect RefOf mechanism only worked for the first such assignment. Subsequent assignments were ignored. ------------------------------------------ Summary of changes for this label: 11_15_00 ACPI 2.0 table support with backwards support for ACPI 1.0 and the 0.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, the AML interpreter does NOT have support for the new 2.0 ASL grammar terms at this time. All ACPI hardware access is via the GAS structures in the ACPI 2.0 FADT. All physical memory addresses across all platforms are now 64 bits wide. Logical address width remains dependent on the platform (i.e., "void *"). AcpiOsMapMemory interface changed to a 64-bit physical address. The AML interpreter integer size is now 64 bits, as per the ACPI 2.0 specification. For backwards compatibility with ACPI 1.0, ACPI tables with a revision number less than 2 use 32-bit integers only. Fixed a problem where the evaluation of OpRegion operands did not always resolve them to numbers properly. ------------------------------------------ Summary of changes for this label: 10_20_00 Fix for CBN_._STA issue. This fix will allow correct access to CBN_ OpRegions when the _STA returns 0x8. Support to convert ACPI constants (Ones, Zeros, One) to actual values before a package object is returned Fix for method call as predicate to if/while construct causing incorrect if/while behavior Fix for Else block package lengths sometimes calculated wrong (if block > 63 bytes) Fix for Processor object length field, was always zero Table load abort if FACP sanity check fails Fix for problem with Scope(name) if name already exists Warning emitted if a named object referenced cannot be found (resolved) during method execution. ------------------------------------------ Summary of changes for this label: 9_29_00 New table initialization interfaces: AcpiInitializeSubsystem no longer has any parameters AcpiFindRootPointer - Find the RSDP (if necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- >RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by AcpiLoadTables Note: These interface changes require changes to all existing OSDs The PCI_Config default address space handler is always installed at the root namespace object. ------------------------------------------- Summary of changes for this label: 09_15_00 The new initialization architecture is implemented. New interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace (Namespace is automatically loaded when a table is loaded) The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 52 bytes to 32 bytes. There is usually one of these for every namespace object, so the memory savings is significant. Implemented just-in-time evaluation of the CreateField operators. Bug fixes for IA-64 support have been integrated. Additional code review comments have been implemented The so-called "third pass parse" has been replaced by a final walk through the namespace to initialize all operation regions (address spaces) and fields that have not yet been initialized during the execution of the various _INI and REG methods. New file - namespace/nsinit.c ------------------------------------------- Summary of changes for this label: 09_01_00 Namespace manager data structures have been reworked to change the primary object from a table to a single object. This has resulted in dynamic memory savings of 3X within the namespace and 2X overall in the ACPI CA subsystem. Fixed problem where the call to AcpiEvFindPciRootBuses was inadvertently left commented out. Reduced the warning count when generating the source with the GCC compiler. Revision numbers added to each module header showing the SourceSafe version of the file. Please refer to this version number when giving us feedback or comments on individual modules. The main object types within the subsystem have been renamed to clarify their purpose: ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE NOTE: no changes to the initialization sequence are included in this label. ------------------------------------------- Summary of changes for this label: 08_23_00 Fixed problem where TerminateControlMethod was being called multiple times per method Fixed debugger problem where single stepping caused a semaphore to be oversignalled Improved performance through additional parse object caching - added ACPI_EXTENDED_OP type ------------------------------------------- Summary of changes for this label: 08_10_00 Parser/Interpreter integration: Eliminated the creation of complete parse trees for ACPI tables and control methods. Instead, parse subtrees are created and then deleted as soon as they are processed (Either entered into the namespace or executed by the interpreter). This reduces the use of dynamic kernel memory significantly. (about 10X) Exception codes broken into classes and renumbered. Be sure to recompile all code that includes acexcep.h. Hopefully we won't have to renumber the codes again now that they are split into classes (environment, programmer, AML code, ACPI table, and internal). Fixed some additional alignment issues in the Resource Manager subcomponent Implemented semaphore tracking in the AcpiExec utility, and fixed several places where mutexes/semaphores were being unlocked without a corresponding lock operation. There are no known semaphore or mutex "leaks" at this time. Fixed the case where an ASL Return operator is used to return an unnamed package. ------------------------------------------- Summary of changes for this label: 07_28_00 Fixed a problem with the way addresses were calculated in AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem manifested itself when a Field was created with WordAccess or DwordAccess, but the field unit defined within the Field was less than a Word or Dword. Fixed a problem in AmlDumpOperands() module's loop to pull operands off of the operand stack to display information. The problem manifested itself as a TLB error on 64-bit systems when accessing an operand stack with two or more operands. Fixed a problem with the PCI configuration space handlers where context was getting confused between accesses. This required a change to the generic address space handler and address space setup definitions. Handlers now get both a global handler context (this is the one passed in by the user when executing AcpiInstallAddressSpaceHandler() and a specific region context that is unique to each region (For example, the _ADR, _SEG and _BBN values associated with a specific region). The generic function definitions have changed to the following: typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, UINT32 Address, UINT32 BitWidth, UINT32 *Value, void *HandlerContext, // This used to be void *Context void *RegionContext); // This is an additional parameter typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE RegionHandle, UINT32 Function, void *HandlerContext, void **RegionContext); // This used to be **ReturnContext ------------------------------------------- Summary of changes for this label: 07_21_00 Major file consolidation and rename. All files within the interpreter have been renamed as well as most header files. This was done to prevent collisions with existing files in the host OSs -- filenames such as "config.h" and "global.h" seem to be quite common. The VC project files have been updated. All makefiles will require modification. The parser/interpreter integration continues in Phase 5 with the implementation of a complete 2-pass parse (the AML is parsed twice) for each table; This avoids the construction of a huge parse tree and therefore reduces the amount of dynamic memory required by the subsystem. Greater use of the parse object cache means that performance is unaffected. Many comments from the two code reviews have been rolled in. The 64-bit alignment support is complete. ------------------------------------------- Summary of changes for this label: 06_30_00 With a nod and a tip of the hat to the technology of yesteryear, we've added support in the source code for 80 column output devices. The code is now mostly constrained to 80 columns or less to support environments and editors that 1) cannot display or print more than 80 characters on a single line, and 2) cannot disable line wrapping. A major restructuring of the namespace data structure has been completed. The result is 1) cleaner and more understandable/maintainable code, and 2) a significant reduction in the dynamic memory requirement for each named ACPI object (almost half). ------------------------------------------- Summary of changes for this label: 06_23_00 Linux support has been added. In order to obtain approval to get the ACPI CA subsystem into the Linux kernel, we've had to make quite a few changes to the base subsystem that will affect all users (all the changes are generic and OS- independent). The effects of these global changes have been somewhat far reaching. Files have been merged and/or renamed and interfaces have been renamed. The major changes are described below. Osd* interfaces renamed to AcpiOs* to eliminate namespace pollution/confusion within our target kernels. All OSD interfaces must be modified to match the new naming convention. Files merged across the subsystem. A number of the smaller source and header files have been merged to reduce the file count and increase the density of the existing files. There are too many to list here. In general, makefiles that call out individual files will require rebuilding. Interpreter files renamed. All interpreter files now have the prefix am* instead of ie* and is*. Header files renamed: The acapi.h file is now acpixf.h. The acpiosd.h file is now acpiosxf.h. We are removing references to the acronym "API" since it is somewhat windowsy. The new name is "external interface" or xface or xf in the filenames.j All manifest constants have been forced to upper case (some were mixed case.) Also, the string "ACPI_" has been prepended to many (not all) of the constants, typedefs, and structs. The globals "DebugLevel" and "DebugLayer" have been renamed "AcpiDbgLevel" and "AcpiDbgLayer" respectively. All other globals within the subsystem are now prefixed with "AcpiGbl_" Internal procedures within the subsystem are now prefixed with "Acpi" (with only a few exceptions). The original two-letter abbreviation for the subcomponent remains after "Acpi" - for example, CmCallocate became AcpiCmCallocate. Added a source code translation/conversion utility. Used to generate the Linux source code, it can be modified to generate other types of source as well. Can also be used to cleanup existing source by removing extraneous spaces and blank lines. Found in tools/acpisrc/* OsdUnMapMemory was renamed to OsdUnmapMemory and then AcpiOsUnmapMemory. (UnMap became Unmap). A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. When set to one, this indicates that the caller wants to use the semaphore as a mutex, not a counting semaphore. ACPI CA uses both types. However, implementers of this call may want to use different OS primitives depending on the type of semaphore requested. For example, some operating systems provide separate "mutex" and "semaphore" interfaces - where the mutex interface is much faster because it doesn't have all the overhead of a full semaphore implementation. Fixed a deadlock problem where a method that accesses the PCI address space can block forever if it is the first access to the space. ------------------------------------------- Summary of changes for this label: 06_02_00 Support for environments that cannot handle unaligned data accesses (e.g. firmware and OS environments devoid of alignment handler technology namely SAL/EFI and the IA-64 Linux kernel) has been added (via configurable macros) in these three areas: - Transfer of data from the raw AML byte stream is done via byte moves instead of word/dword/qword moves. - External objects are aligned within the user buffer, including package elements (sub- objects). - Conversion of name strings to UINT32 Acpi Names is now done byte-wise. The Store operator was modified to mimic Microsoft's implementation when storing to a Buffer Field. Added a check of the BM_STS bit before entering C3. The methods subdirectory has been obsoleted and removed. A new file, cmeval.c subsumes the functionality. A 16-bit (DOS) version of AcpiExec has been developed. The makefile is under the acpiexec directory.